Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3388142
D9792.id32984.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
29 KB
Referenced Files
None
Subscribers
None
D9792.id32984.diff
View Options
diff --git a/web/protobufs/identity-client.cjs b/web/protobufs/identity-client.cjs
--- a/web/protobufs/identity-client.cjs
+++ b/web/protobufs/identity-client.cjs
@@ -563,6 +563,67 @@
};
+/**
+ * @const
+ * @type {!grpc.web.MethodDescriptor<
+ * !proto.identity.client.ReservedWalletLoginRequest,
+ * !proto.identity.client.WalletLoginResponse>}
+ */
+const methodDescriptor_IdentityClientService_LoginReservedWalletUser = new grpc.web.MethodDescriptor(
+ '/identity.client.IdentityClientService/LoginReservedWalletUser',
+ grpc.web.MethodType.UNARY,
+ proto.identity.client.ReservedWalletLoginRequest,
+ proto.identity.client.WalletLoginResponse,
+ /**
+ * @param {!proto.identity.client.ReservedWalletLoginRequest} request
+ * @return {!Uint8Array}
+ */
+ function(request) {
+ return request.serializeBinary();
+ },
+ proto.identity.client.WalletLoginResponse.deserializeBinary
+);
+
+
+/**
+ * @param {!proto.identity.client.ReservedWalletLoginRequest} request The
+ * request proto
+ * @param {?Object<string, string>} metadata User defined
+ * call metadata
+ * @param {function(?grpc.web.RpcError, ?proto.identity.client.WalletLoginResponse)}
+ * callback The callback function(error, response)
+ * @return {!grpc.web.ClientReadableStream<!proto.identity.client.WalletLoginResponse>|undefined}
+ * The XHR Node Readable Stream
+ */
+proto.identity.client.IdentityClientServiceClient.prototype.loginReservedWalletUser =
+ function(request, metadata, callback) {
+ return this.client_.rpcCall(this.hostname_ +
+ '/identity.client.IdentityClientService/LoginReservedWalletUser',
+ request,
+ metadata || {},
+ methodDescriptor_IdentityClientService_LoginReservedWalletUser,
+ callback);
+};
+
+
+/**
+ * @param {!proto.identity.client.ReservedWalletLoginRequest} request The
+ * request proto
+ * @param {?Object<string, string>=} metadata User defined
+ * call metadata
+ * @return {!Promise<!proto.identity.client.WalletLoginResponse>}
+ * Promise that resolves to the response
+ */
+proto.identity.client.IdentityClientServicePromiseClient.prototype.loginReservedWalletUser =
+ function(request, metadata) {
+ return this.client_.unaryCall(this.hostname_ +
+ '/identity.client.IdentityClientService/LoginReservedWalletUser',
+ request,
+ metadata || {},
+ methodDescriptor_IdentityClientService_LoginReservedWalletUser);
+};
+
+
/**
* @const
* @type {!grpc.web.MethodDescriptor<
@@ -929,67 +990,6 @@
};
-/**
- * @const
- * @type {!grpc.web.MethodDescriptor<
- * !proto.identity.client.RefreshUserPreKeysRequest,
- * !proto.identity.client.Empty>}
- */
-const methodDescriptor_IdentityClientService_RefreshUserPreKeys = new grpc.web.MethodDescriptor(
- '/identity.client.IdentityClientService/RefreshUserPreKeys',
- grpc.web.MethodType.UNARY,
- proto.identity.client.RefreshUserPreKeysRequest,
- proto.identity.client.Empty,
- /**
- * @param {!proto.identity.client.RefreshUserPreKeysRequest} request
- * @return {!Uint8Array}
- */
- function(request) {
- return request.serializeBinary();
- },
- proto.identity.client.Empty.deserializeBinary
-);
-
-
-/**
- * @param {!proto.identity.client.RefreshUserPreKeysRequest} request The
- * request proto
- * @param {?Object<string, string>} metadata User defined
- * call metadata
- * @param {function(?grpc.web.RpcError, ?proto.identity.client.Empty)}
- * callback The callback function(error, response)
- * @return {!grpc.web.ClientReadableStream<!proto.identity.client.Empty>|undefined}
- * The XHR Node Readable Stream
- */
-proto.identity.client.IdentityClientServiceClient.prototype.refreshUserPreKeys =
- function(request, metadata, callback) {
- return this.client_.rpcCall(this.hostname_ +
- '/identity.client.IdentityClientService/RefreshUserPreKeys',
- request,
- metadata || {},
- methodDescriptor_IdentityClientService_RefreshUserPreKeys,
- callback);
-};
-
-
-/**
- * @param {!proto.identity.client.RefreshUserPreKeysRequest} request The
- * request proto
- * @param {?Object<string, string>=} metadata User defined
- * call metadata
- * @return {!Promise<!proto.identity.client.Empty>}
- * Promise that resolves to the response
- */
-proto.identity.client.IdentityClientServicePromiseClient.prototype.refreshUserPreKeys =
- function(request, metadata) {
- return this.client_.unaryCall(this.hostname_ +
- '/identity.client.IdentityClientService/RefreshUserPreKeys',
- request,
- metadata || {},
- methodDescriptor_IdentityClientService_RefreshUserPreKeys);
-};
-
-
/**
* @const
* @type {!grpc.web.MethodDescriptor<
@@ -1173,5 +1173,66 @@
};
+/**
+ * @const
+ * @type {!grpc.web.MethodDescriptor<
+ * !proto.identity.client.Empty,
+ * !proto.identity.client.Empty>}
+ */
+const methodDescriptor_IdentityClientService_Ping = new grpc.web.MethodDescriptor(
+ '/identity.client.IdentityClientService/Ping',
+ grpc.web.MethodType.UNARY,
+ proto.identity.client.Empty,
+ proto.identity.client.Empty,
+ /**
+ * @param {!proto.identity.client.Empty} request
+ * @return {!Uint8Array}
+ */
+ function(request) {
+ return request.serializeBinary();
+ },
+ proto.identity.client.Empty.deserializeBinary
+);
+
+
+/**
+ * @param {!proto.identity.client.Empty} request The
+ * request proto
+ * @param {?Object<string, string>} metadata User defined
+ * call metadata
+ * @param {function(?grpc.web.RpcError, ?proto.identity.client.Empty)}
+ * callback The callback function(error, response)
+ * @return {!grpc.web.ClientReadableStream<!proto.identity.client.Empty>|undefined}
+ * The XHR Node Readable Stream
+ */
+proto.identity.client.IdentityClientServiceClient.prototype.ping =
+ function(request, metadata, callback) {
+ return this.client_.rpcCall(this.hostname_ +
+ '/identity.client.IdentityClientService/Ping',
+ request,
+ metadata || {},
+ methodDescriptor_IdentityClientService_Ping,
+ callback);
+};
+
+
+/**
+ * @param {!proto.identity.client.Empty} request The
+ * request proto
+ * @param {?Object<string, string>=} metadata User defined
+ * call metadata
+ * @return {!Promise<!proto.identity.client.Empty>}
+ * Promise that resolves to the response
+ */
+proto.identity.client.IdentityClientServicePromiseClient.prototype.ping =
+ function(request, metadata) {
+ return this.client_.unaryCall(this.hostname_ +
+ '/identity.client.IdentityClientService/Ping',
+ request,
+ metadata || {},
+ methodDescriptor_IdentityClientService_Ping);
+};
+
+
module.exports = proto.identity.client;
diff --git a/web/protobufs/identity-client.cjs.flow b/web/protobufs/identity-client.cjs.flow
--- a/web/protobufs/identity-client.cjs.flow
+++ b/web/protobufs/identity-client.cjs.flow
@@ -65,6 +65,13 @@
response: identityStructs.WalletLoginResponse) => void
): grpcWeb.ClientReadableStream<identityStructs.WalletLoginResponse>;
+ loginReservedWalletUser(
+ request: identityStructs.ReservedWalletLoginRequest,
+ metadata: grpcWeb.Metadata | void,
+ callback: (err: grpcWeb.RpcError,
+ response: identityStructs.WalletLoginResponse) => void
+ ): grpcWeb.ClientReadableStream<identityStructs.WalletLoginResponse>;
+
logOutUser(
request: identityStructs.LogoutRequest,
metadata: grpcWeb.Metadata | void,
@@ -107,13 +114,6 @@
response: identityStructs.Empty) => void
): grpcWeb.ClientReadableStream<identityStructs.Empty>;
- refreshUserPreKeys(
- request: identityStructs.RefreshUserPreKeysRequest,
- metadata: grpcWeb.Metadata | void,
- callback: (err: grpcWeb.RpcError,
- response: identityStructs.Empty) => void
- ): grpcWeb.ClientReadableStream<identityStructs.Empty>;
-
verifyUserAccessToken(
request: identityStructs.VerifyUserAccessTokenRequest,
metadata: grpcWeb.Metadata | void,
@@ -135,6 +135,13 @@
response: identityStructs.Empty) => void
): grpcWeb.ClientReadableStream<identityStructs.Empty>;
+ ping(
+ request: identityStructs.Empty,
+ metadata: grpcWeb.Metadata | void,
+ callback: (err: grpcWeb.RpcError,
+ response: identityStructs.Empty) => void
+ ): grpcWeb.ClientReadableStream<identityStructs.Empty>;
+
}
declare export class IdentityClientServicePromiseClient {
@@ -182,6 +189,11 @@
metadata?: grpcWeb.Metadata
): Promise<identityStructs.WalletLoginResponse>;
+ loginReservedWalletUser(
+ request: identityStructs.ReservedWalletLoginRequest,
+ metadata?: grpcWeb.Metadata
+ ): Promise<identityStructs.WalletLoginResponse>;
+
logOutUser(
request: identityStructs.LogoutRequest,
metadata?: grpcWeb.Metadata
@@ -212,11 +224,6 @@
metadata?: grpcWeb.Metadata
): Promise<identityStructs.Empty>;
- refreshUserPreKeys(
- request: identityStructs.RefreshUserPreKeysRequest,
- metadata?: grpcWeb.Metadata
- ): Promise<identityStructs.Empty>;
-
verifyUserAccessToken(
request: identityStructs.VerifyUserAccessTokenRequest,
metadata?: grpcWeb.Metadata
@@ -232,4 +239,9 @@
metadata?: grpcWeb.Metadata
): Promise<identityStructs.Empty>;
+ ping(
+ request: identityStructs.Empty,
+ metadata?: grpcWeb.Metadata
+ ): Promise<identityStructs.Empty>;
+
}
diff --git a/web/protobufs/identity-structs.cjs b/web/protobufs/identity-structs.cjs
--- a/web/protobufs/identity-structs.cjs
+++ b/web/protobufs/identity-structs.cjs
@@ -43,13 +43,13 @@
goog.exportSymbol('proto.identity.client.OutboundKeysForUserRequest.IdentifierCase', null, global);
goog.exportSymbol('proto.identity.client.OutboundKeysForUserResponse', null, global);
goog.exportSymbol('proto.identity.client.PreKey', null, global);
-goog.exportSymbol('proto.identity.client.RefreshUserPreKeysRequest', null, global);
goog.exportSymbol('proto.identity.client.RegistrationFinishRequest', null, global);
goog.exportSymbol('proto.identity.client.RegistrationFinishResponse', null, global);
goog.exportSymbol('proto.identity.client.RegistrationStartRequest', null, global);
goog.exportSymbol('proto.identity.client.RegistrationStartResponse', null, global);
goog.exportSymbol('proto.identity.client.RemoveReservedUsernameRequest', null, global);
goog.exportSymbol('proto.identity.client.ReservedRegistrationStartRequest', null, global);
+goog.exportSymbol('proto.identity.client.ReservedWalletLoginRequest', null, global);
goog.exportSymbol('proto.identity.client.UpdateUserPasswordFinishRequest', null, global);
goog.exportSymbol('proto.identity.client.UpdateUserPasswordStartRequest', null, global);
goog.exportSymbol('proto.identity.client.UpdateUserPasswordStartResponse', null, global);
@@ -415,6 +415,27 @@
*/
proto.identity.client.WalletLoginRequest.displayName = 'proto.identity.client.WalletLoginRequest';
}
+/**
+ * Generated by JsPbCodeGenerator.
+ * @param {Array=} opt_data Optional initial data array, typically from a
+ * server response, or constructed directly in Javascript. The array is used
+ * in place and becomes part of the constructed object. It is not cloned.
+ * If no data is provided, the constructed object will be empty, but still
+ * valid.
+ * @extends {jspb.Message}
+ * @constructor
+ */
+proto.identity.client.ReservedWalletLoginRequest = function(opt_data) {
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
+};
+goog.inherits(proto.identity.client.ReservedWalletLoginRequest, jspb.Message);
+if (goog.DEBUG && !COMPILED) {
+ /**
+ * @public
+ * @override
+ */
+ proto.identity.client.ReservedWalletLoginRequest.displayName = 'proto.identity.client.ReservedWalletLoginRequest';
+}
/**
* Generated by JsPbCodeGenerator.
* @param {Array=} opt_data Optional initial data array, typically from a
@@ -646,27 +667,6 @@
*/
proto.identity.client.UploadOneTimeKeysRequest.displayName = 'proto.identity.client.UploadOneTimeKeysRequest';
}
-/**
- * Generated by JsPbCodeGenerator.
- * @param {Array=} opt_data Optional initial data array, typically from a
- * server response, or constructed directly in Javascript. The array is used
- * in place and becomes part of the constructed object. It is not cloned.
- * If no data is provided, the constructed object will be empty, but still
- * valid.
- * @extends {jspb.Message}
- * @constructor
- */
-proto.identity.client.RefreshUserPreKeysRequest = function(opt_data) {
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
-};
-goog.inherits(proto.identity.client.RefreshUserPreKeysRequest, jspb.Message);
-if (goog.DEBUG && !COMPILED) {
- /**
- * @public
- * @override
- */
- proto.identity.client.RefreshUserPreKeysRequest.displayName = 'proto.identity.client.RefreshUserPreKeysRequest';
-}
/**
* Generated by JsPbCodeGenerator.
* @param {Array=} opt_data Optional initial data array, typically from a
@@ -4255,6 +4255,277 @@
+if (jspb.Message.GENERATE_TO_OBJECT) {
+/**
+ * Creates an object representation of this proto.
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
+ * Optional fields that are not set will be set to undefined.
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
+ * For the list of reserved names please see:
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
+ * JSPB instance for transitional soy proto support:
+ * http://goto/soy-param-migration
+ * @return {!Object}
+ */
+proto.identity.client.ReservedWalletLoginRequest.prototype.toObject = function(opt_includeInstance) {
+ return proto.identity.client.ReservedWalletLoginRequest.toObject(opt_includeInstance, this);
+};
+
+
+/**
+ * Static version of the {@see toObject} method.
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
+ * the JSPB instance for transitional soy proto support:
+ * http://goto/soy-param-migration
+ * @param {!proto.identity.client.ReservedWalletLoginRequest} msg The msg instance to transform.
+ * @return {!Object}
+ * @suppress {unusedLocalVariables} f is only used for nested messages
+ */
+proto.identity.client.ReservedWalletLoginRequest.toObject = function(includeInstance, msg) {
+ var f, obj = {
+ siwemessage: jspb.Message.getFieldWithDefault(msg, 1, ""),
+ siwesignature: jspb.Message.getFieldWithDefault(msg, 2, ""),
+ devicekeyupload: (f = msg.getDevicekeyupload()) && proto.identity.client.DeviceKeyUpload.toObject(includeInstance, f),
+ keyservermessage: jspb.Message.getFieldWithDefault(msg, 4, ""),
+ keyserversignature: jspb.Message.getFieldWithDefault(msg, 5, "")
+ };
+
+ if (includeInstance) {
+ obj.$jspbMessageInstance = msg;
+ }
+ return obj;
+};
+}
+
+
+/**
+ * Deserializes binary data (in protobuf wire format).
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
+ * @return {!proto.identity.client.ReservedWalletLoginRequest}
+ */
+proto.identity.client.ReservedWalletLoginRequest.deserializeBinary = function(bytes) {
+ var reader = new jspb.BinaryReader(bytes);
+ var msg = new proto.identity.client.ReservedWalletLoginRequest;
+ return proto.identity.client.ReservedWalletLoginRequest.deserializeBinaryFromReader(msg, reader);
+};
+
+
+/**
+ * Deserializes binary data (in protobuf wire format) from the
+ * given reader into the given message object.
+ * @param {!proto.identity.client.ReservedWalletLoginRequest} msg The message object to deserialize into.
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
+ * @return {!proto.identity.client.ReservedWalletLoginRequest}
+ */
+proto.identity.client.ReservedWalletLoginRequest.deserializeBinaryFromReader = function(msg, reader) {
+ while (reader.nextField()) {
+ if (reader.isEndGroup()) {
+ break;
+ }
+ var field = reader.getFieldNumber();
+ switch (field) {
+ case 1:
+ var value = /** @type {string} */ (reader.readString());
+ msg.setSiwemessage(value);
+ break;
+ case 2:
+ var value = /** @type {string} */ (reader.readString());
+ msg.setSiwesignature(value);
+ break;
+ case 3:
+ var value = new proto.identity.client.DeviceKeyUpload;
+ reader.readMessage(value,proto.identity.client.DeviceKeyUpload.deserializeBinaryFromReader);
+ msg.setDevicekeyupload(value);
+ break;
+ case 4:
+ var value = /** @type {string} */ (reader.readString());
+ msg.setKeyservermessage(value);
+ break;
+ case 5:
+ var value = /** @type {string} */ (reader.readString());
+ msg.setKeyserversignature(value);
+ break;
+ default:
+ reader.skipField();
+ break;
+ }
+ }
+ return msg;
+};
+
+
+/**
+ * Serializes the message to binary data (in protobuf wire format).
+ * @return {!Uint8Array}
+ */
+proto.identity.client.ReservedWalletLoginRequest.prototype.serializeBinary = function() {
+ var writer = new jspb.BinaryWriter();
+ proto.identity.client.ReservedWalletLoginRequest.serializeBinaryToWriter(this, writer);
+ return writer.getResultBuffer();
+};
+
+
+/**
+ * Serializes the given message to binary data (in protobuf wire
+ * format), writing to the given BinaryWriter.
+ * @param {!proto.identity.client.ReservedWalletLoginRequest} message
+ * @param {!jspb.BinaryWriter} writer
+ * @suppress {unusedLocalVariables} f is only used for nested messages
+ */
+proto.identity.client.ReservedWalletLoginRequest.serializeBinaryToWriter = function(message, writer) {
+ var f = undefined;
+ f = message.getSiwemessage();
+ if (f.length > 0) {
+ writer.writeString(
+ 1,
+ f
+ );
+ }
+ f = message.getSiwesignature();
+ if (f.length > 0) {
+ writer.writeString(
+ 2,
+ f
+ );
+ }
+ f = message.getDevicekeyupload();
+ if (f != null) {
+ writer.writeMessage(
+ 3,
+ f,
+ proto.identity.client.DeviceKeyUpload.serializeBinaryToWriter
+ );
+ }
+ f = message.getKeyservermessage();
+ if (f.length > 0) {
+ writer.writeString(
+ 4,
+ f
+ );
+ }
+ f = message.getKeyserversignature();
+ if (f.length > 0) {
+ writer.writeString(
+ 5,
+ f
+ );
+ }
+};
+
+
+/**
+ * optional string siweMessage = 1;
+ * @return {string}
+ */
+proto.identity.client.ReservedWalletLoginRequest.prototype.getSiwemessage = function() {
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
+};
+
+
+/**
+ * @param {string} value
+ * @return {!proto.identity.client.ReservedWalletLoginRequest} returns this
+ */
+proto.identity.client.ReservedWalletLoginRequest.prototype.setSiwemessage = function(value) {
+ return jspb.Message.setProto3StringField(this, 1, value);
+};
+
+
+/**
+ * optional string siweSignature = 2;
+ * @return {string}
+ */
+proto.identity.client.ReservedWalletLoginRequest.prototype.getSiwesignature = function() {
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
+};
+
+
+/**
+ * @param {string} value
+ * @return {!proto.identity.client.ReservedWalletLoginRequest} returns this
+ */
+proto.identity.client.ReservedWalletLoginRequest.prototype.setSiwesignature = function(value) {
+ return jspb.Message.setProto3StringField(this, 2, value);
+};
+
+
+/**
+ * optional DeviceKeyUpload deviceKeyUpload = 3;
+ * @return {?proto.identity.client.DeviceKeyUpload}
+ */
+proto.identity.client.ReservedWalletLoginRequest.prototype.getDevicekeyupload = function() {
+ return /** @type{?proto.identity.client.DeviceKeyUpload} */ (
+ jspb.Message.getWrapperField(this, proto.identity.client.DeviceKeyUpload, 3));
+};
+
+
+/**
+ * @param {?proto.identity.client.DeviceKeyUpload|undefined} value
+ * @return {!proto.identity.client.ReservedWalletLoginRequest} returns this
+*/
+proto.identity.client.ReservedWalletLoginRequest.prototype.setDevicekeyupload = function(value) {
+ return jspb.Message.setWrapperField(this, 3, value);
+};
+
+
+/**
+ * Clears the message field making it undefined.
+ * @return {!proto.identity.client.ReservedWalletLoginRequest} returns this
+ */
+proto.identity.client.ReservedWalletLoginRequest.prototype.clearDevicekeyupload = function() {
+ return this.setDevicekeyupload(undefined);
+};
+
+
+/**
+ * Returns whether this field is set.
+ * @return {boolean}
+ */
+proto.identity.client.ReservedWalletLoginRequest.prototype.hasDevicekeyupload = function() {
+ return jspb.Message.getField(this, 3) != null;
+};
+
+
+/**
+ * optional string keyserverMessage = 4;
+ * @return {string}
+ */
+proto.identity.client.ReservedWalletLoginRequest.prototype.getKeyservermessage = function() {
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
+};
+
+
+/**
+ * @param {string} value
+ * @return {!proto.identity.client.ReservedWalletLoginRequest} returns this
+ */
+proto.identity.client.ReservedWalletLoginRequest.prototype.setKeyservermessage = function(value) {
+ return jspb.Message.setProto3StringField(this, 4, value);
+};
+
+
+/**
+ * optional string keyserverSignature = 5;
+ * @return {string}
+ */
+proto.identity.client.ReservedWalletLoginRequest.prototype.getKeyserversignature = function() {
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
+};
+
+
+/**
+ * @param {string} value
+ * @return {!proto.identity.client.ReservedWalletLoginRequest} returns this
+ */
+proto.identity.client.ReservedWalletLoginRequest.prototype.setKeyserversignature = function(value) {
+ return jspb.Message.setProto3StringField(this, 5, value);
+};
+
+
+
+
+
if (jspb.Message.GENERATE_TO_OBJECT) {
/**
* Creates an object representation of this proto.
@@ -6534,187 +6805,6 @@
-if (jspb.Message.GENERATE_TO_OBJECT) {
-/**
- * Creates an object representation of this proto.
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
- * Optional fields that are not set will be set to undefined.
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
- * For the list of reserved names please see:
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
- * JSPB instance for transitional soy proto support:
- * http://goto/soy-param-migration
- * @return {!Object}
- */
-proto.identity.client.RefreshUserPreKeysRequest.prototype.toObject = function(opt_includeInstance) {
- return proto.identity.client.RefreshUserPreKeysRequest.toObject(opt_includeInstance, this);
-};
-
-
-/**
- * Static version of the {@see toObject} method.
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
- * the JSPB instance for transitional soy proto support:
- * http://goto/soy-param-migration
- * @param {!proto.identity.client.RefreshUserPreKeysRequest} msg The msg instance to transform.
- * @return {!Object}
- * @suppress {unusedLocalVariables} f is only used for nested messages
- */
-proto.identity.client.RefreshUserPreKeysRequest.toObject = function(includeInstance, msg) {
- var f, obj = {
- accesstoken: jspb.Message.getFieldWithDefault(msg, 1, ""),
- newprekeys: (f = msg.getNewprekeys()) && proto.identity.client.PreKey.toObject(includeInstance, f)
- };
-
- if (includeInstance) {
- obj.$jspbMessageInstance = msg;
- }
- return obj;
-};
-}
-
-
-/**
- * Deserializes binary data (in protobuf wire format).
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
- * @return {!proto.identity.client.RefreshUserPreKeysRequest}
- */
-proto.identity.client.RefreshUserPreKeysRequest.deserializeBinary = function(bytes) {
- var reader = new jspb.BinaryReader(bytes);
- var msg = new proto.identity.client.RefreshUserPreKeysRequest;
- return proto.identity.client.RefreshUserPreKeysRequest.deserializeBinaryFromReader(msg, reader);
-};
-
-
-/**
- * Deserializes binary data (in protobuf wire format) from the
- * given reader into the given message object.
- * @param {!proto.identity.client.RefreshUserPreKeysRequest} msg The message object to deserialize into.
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
- * @return {!proto.identity.client.RefreshUserPreKeysRequest}
- */
-proto.identity.client.RefreshUserPreKeysRequest.deserializeBinaryFromReader = function(msg, reader) {
- while (reader.nextField()) {
- if (reader.isEndGroup()) {
- break;
- }
- var field = reader.getFieldNumber();
- switch (field) {
- case 1:
- var value = /** @type {string} */ (reader.readString());
- msg.setAccesstoken(value);
- break;
- case 2:
- var value = new proto.identity.client.PreKey;
- reader.readMessage(value,proto.identity.client.PreKey.deserializeBinaryFromReader);
- msg.setNewprekeys(value);
- break;
- default:
- reader.skipField();
- break;
- }
- }
- return msg;
-};
-
-
-/**
- * Serializes the message to binary data (in protobuf wire format).
- * @return {!Uint8Array}
- */
-proto.identity.client.RefreshUserPreKeysRequest.prototype.serializeBinary = function() {
- var writer = new jspb.BinaryWriter();
- proto.identity.client.RefreshUserPreKeysRequest.serializeBinaryToWriter(this, writer);
- return writer.getResultBuffer();
-};
-
-
-/**
- * Serializes the given message to binary data (in protobuf wire
- * format), writing to the given BinaryWriter.
- * @param {!proto.identity.client.RefreshUserPreKeysRequest} message
- * @param {!jspb.BinaryWriter} writer
- * @suppress {unusedLocalVariables} f is only used for nested messages
- */
-proto.identity.client.RefreshUserPreKeysRequest.serializeBinaryToWriter = function(message, writer) {
- var f = undefined;
- f = message.getAccesstoken();
- if (f.length > 0) {
- writer.writeString(
- 1,
- f
- );
- }
- f = message.getNewprekeys();
- if (f != null) {
- writer.writeMessage(
- 2,
- f,
- proto.identity.client.PreKey.serializeBinaryToWriter
- );
- }
-};
-
-
-/**
- * optional string accessToken = 1;
- * @return {string}
- */
-proto.identity.client.RefreshUserPreKeysRequest.prototype.getAccesstoken = function() {
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
-};
-
-
-/**
- * @param {string} value
- * @return {!proto.identity.client.RefreshUserPreKeysRequest} returns this
- */
-proto.identity.client.RefreshUserPreKeysRequest.prototype.setAccesstoken = function(value) {
- return jspb.Message.setProto3StringField(this, 1, value);
-};
-
-
-/**
- * optional PreKey newPreKeys = 2;
- * @return {?proto.identity.client.PreKey}
- */
-proto.identity.client.RefreshUserPreKeysRequest.prototype.getNewprekeys = function() {
- return /** @type{?proto.identity.client.PreKey} */ (
- jspb.Message.getWrapperField(this, proto.identity.client.PreKey, 2));
-};
-
-
-/**
- * @param {?proto.identity.client.PreKey|undefined} value
- * @return {!proto.identity.client.RefreshUserPreKeysRequest} returns this
-*/
-proto.identity.client.RefreshUserPreKeysRequest.prototype.setNewprekeys = function(value) {
- return jspb.Message.setWrapperField(this, 2, value);
-};
-
-
-/**
- * Clears the message field making it undefined.
- * @return {!proto.identity.client.RefreshUserPreKeysRequest} returns this
- */
-proto.identity.client.RefreshUserPreKeysRequest.prototype.clearNewprekeys = function() {
- return this.setNewprekeys(undefined);
-};
-
-
-/**
- * Returns whether this field is set.
- * @return {boolean}
- */
-proto.identity.client.RefreshUserPreKeysRequest.prototype.hasNewprekeys = function() {
- return jspb.Message.getField(this, 2) != null;
-};
-
-
-
-
-
if (jspb.Message.GENERATE_TO_OBJECT) {
/**
* Creates an object representation of this proto.
diff --git a/web/protobufs/identity-structs.cjs.flow b/web/protobufs/identity-structs.cjs.flow
--- a/web/protobufs/identity-structs.cjs.flow
+++ b/web/protobufs/identity-structs.cjs.flow
@@ -427,6 +427,40 @@
devicekeyupload?: DeviceKeyUploadObject,
};
+declare export class ReservedWalletLoginRequest extends Message {
+ getSiwemessage(): string;
+ setSiwemessage(value: string): ReservedWalletLoginRequest;
+
+ getSiwesignature(): string;
+ setSiwesignature(value: string): ReservedWalletLoginRequest;
+
+ getDevicekeyupload(): DeviceKeyUpload | void;
+ setDevicekeyupload(value?: DeviceKeyUpload): ReservedWalletLoginRequest;
+ hasDevicekeyupload(): boolean;
+ clearDevicekeyupload(): ReservedWalletLoginRequest;
+
+ getKeyservermessage(): string;
+ setKeyservermessage(value: string): ReservedWalletLoginRequest;
+
+ getKeyserversignature(): string;
+ setKeyserversignature(value: string): ReservedWalletLoginRequest;
+
+ serializeBinary(): Uint8Array;
+ toObject(includeInstance?: boolean): ReservedWalletLoginRequestObject;
+ static toObject(includeInstance: boolean, msg: ReservedWalletLoginRequest): ReservedWalletLoginRequestObject;
+ static serializeBinaryToWriter(message: ReservedWalletLoginRequest, writer: BinaryWriter): void;
+ static deserializeBinary(bytes: Uint8Array): ReservedWalletLoginRequest;
+ static deserializeBinaryFromReader(message: ReservedWalletLoginRequest, reader: BinaryReader): ReservedWalletLoginRequest;
+}
+
+export type ReservedWalletLoginRequestObject = {
+ siwemessage: string,
+ siwesignature: string,
+ devicekeyupload?: DeviceKeyUploadObject,
+ keyservermessage: string,
+ keyserversignature: string,
+};
+
declare export class WalletLoginResponse extends Message {
getUserid(): string;
setUserid(value: string): WalletLoginResponse;
@@ -698,28 +732,6 @@
notifonetimeprekeysList: Array<string>,
};
-declare export class RefreshUserPreKeysRequest extends Message {
- getAccesstoken(): string;
- setAccesstoken(value: string): RefreshUserPreKeysRequest;
-
- getNewprekeys(): PreKey | void;
- setNewprekeys(value?: PreKey): RefreshUserPreKeysRequest;
- hasNewprekeys(): boolean;
- clearNewprekeys(): RefreshUserPreKeysRequest;
-
- serializeBinary(): Uint8Array;
- toObject(includeInstance?: boolean): RefreshUserPreKeysRequestObject;
- static toObject(includeInstance: boolean, msg: RefreshUserPreKeysRequest): RefreshUserPreKeysRequestObject;
- static serializeBinaryToWriter(message: RefreshUserPreKeysRequest, writer: BinaryWriter): void;
- static deserializeBinary(bytes: Uint8Array): RefreshUserPreKeysRequest;
- static deserializeBinaryFromReader(message: RefreshUserPreKeysRequest, reader: BinaryReader): RefreshUserPreKeysRequest;
-}
-
-export type RefreshUserPreKeysRequestObject = {
- accesstoken: string,
- newprekeys?: PreKeyObject,
-};
-
declare export class VerifyUserAccessTokenRequest extends Message {
getUserid(): string;
setUserid(value: string): VerifyUserAccessTokenRequest;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Nov 30, 12:58 PM (21 h, 7 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2600676
Default Alt Text
D9792.id32984.diff (29 KB)
Attached To
Mode
D9792: [web] update grpc-web codegen'd files
Attached
Detach File
Event Timeline
Log In to Comment