diff --git a/src/core/engines/gows/grpc/gows.ts b/src/core/engines/gows/grpc/gows.ts index d47313cb..9f1c6b39 100644 --- a/src/core/engines/gows/grpc/gows.ts +++ b/src/core/engines/gows/grpc/gows.ts @@ -1132,6 +1132,99 @@ export namespace messages { return PairCodeResponse.deserialize(bytes); } } + export class PasskeyResponseRequest extends pb_1.Message { + #one_of_decls: number[][] = []; + constructor(data?: any[] | { + session?: Session; + response_json?: string; + }) { + super(); + pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], this.#one_of_decls); + if (!Array.isArray(data) && typeof data == "object") { + if ("session" in data && data.session != undefined) { + this.session = data.session; + } + if ("response_json" in data && data.response_json != undefined) { + this.response_json = data.response_json; + } + } + } + get session() { + return pb_1.Message.getWrapperField(this, Session, 1) as Session; + } + set session(value: Session) { + pb_1.Message.setWrapperField(this, 1, value); + } + get has_session() { + return pb_1.Message.getField(this, 1) != null; + } + get response_json() { + return pb_1.Message.getFieldWithDefault(this, 2, "") as string; + } + set response_json(value: string) { + pb_1.Message.setField(this, 2, value); + } + static fromObject(data: { + session?: ReturnType; + response_json?: string; + }): PasskeyResponseRequest { + const message = new PasskeyResponseRequest({}); + if (data.session != null) { + message.session = Session.fromObject(data.session); + } + if (data.response_json != null) { + message.response_json = data.response_json; + } + return message; + } + toObject() { + const data: { + session?: ReturnType; + response_json?: string; + } = {}; + if (this.session != null) { + data.session = this.session.toObject(); + } + if (this.response_json != null) { + data.response_json = this.response_json; + } + return data; + } + serialize(): Uint8Array; + serialize(w: pb_1.BinaryWriter): void; + serialize(w?: pb_1.BinaryWriter): Uint8Array | void { + const writer = w || new pb_1.BinaryWriter(); + if (this.has_session) + writer.writeMessage(1, this.session, () => this.session.serialize(writer)); + if (this.response_json.length) + writer.writeString(2, this.response_json); + if (!w) + return writer.getResultBuffer(); + } + static deserialize(bytes: Uint8Array | pb_1.BinaryReader): PasskeyResponseRequest { + const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new PasskeyResponseRequest(); + while (reader.nextField()) { + if (reader.isEndGroup()) + break; + switch (reader.getFieldNumber()) { + case 1: + reader.readMessage(message.session, () => message.session = Session.deserialize(reader)); + break; + case 2: + message.response_json = reader.readString(); + break; + default: reader.skipField(); + } + } + return message; + } + serializeBinary(): Uint8Array { + return this.serialize(); + } + static deserializeBinary(bytes: Uint8Array): PasskeyResponseRequest { + return PasskeyResponseRequest.deserialize(bytes); + } + } export class Empty extends pb_1.Message { #one_of_decls: number[][] = []; constructor(data?: any[] | {}) { @@ -11053,6 +11146,24 @@ export namespace messages { responseSerialize: (message: PairCodeResponse) => Buffer.from(message.serialize()), responseDeserialize: (bytes: Buffer) => PairCodeResponse.deserialize(new Uint8Array(bytes)) }, + SubmitPasskeyResponse: { + path: "/messages.MessageService/SubmitPasskeyResponse", + requestStream: false, + responseStream: false, + requestSerialize: (message: PasskeyResponseRequest) => Buffer.from(message.serialize()), + requestDeserialize: (bytes: Buffer) => PasskeyResponseRequest.deserialize(new Uint8Array(bytes)), + responseSerialize: (message: Empty) => Buffer.from(message.serialize()), + responseDeserialize: (bytes: Buffer) => Empty.deserialize(new Uint8Array(bytes)) + }, + ConfirmPasskey: { + path: "/messages.MessageService/ConfirmPasskey", + requestStream: false, + responseStream: false, + requestSerialize: (message: Session) => Buffer.from(message.serialize()), + requestDeserialize: (bytes: Buffer) => Session.deserialize(new Uint8Array(bytes)), + responseSerialize: (message: Empty) => Buffer.from(message.serialize()), + responseDeserialize: (bytes: Buffer) => Empty.deserialize(new Uint8Array(bytes)) + }, Logout: { path: "/messages.MessageService/Logout", requestStream: false, @@ -11599,6 +11710,8 @@ export namespace messages { abstract StopSession(call: grpc_1.ServerUnaryCall, callback: grpc_1.sendUnaryData): void; abstract GetSessionState(call: grpc_1.ServerUnaryCall, callback: grpc_1.sendUnaryData): void; abstract RequestCode(call: grpc_1.ServerUnaryCall, callback: grpc_1.sendUnaryData): void; + abstract SubmitPasskeyResponse(call: grpc_1.ServerUnaryCall, callback: grpc_1.sendUnaryData): void; + abstract ConfirmPasskey(call: grpc_1.ServerUnaryCall, callback: grpc_1.sendUnaryData): void; abstract Logout(call: grpc_1.ServerUnaryCall, callback: grpc_1.sendUnaryData): void; abstract SetProfileName(call: grpc_1.ServerUnaryCall, callback: grpc_1.sendUnaryData): void; abstract SetProfileStatus(call: grpc_1.ServerUnaryCall, callback: grpc_1.sendUnaryData): void; @@ -11676,6 +11789,12 @@ export namespace messages { RequestCode: GrpcUnaryServiceInterface = (message: PairCodeRequest, metadata: grpc_1.Metadata | grpc_1.CallOptions | grpc_1.requestCallback, options?: grpc_1.CallOptions | grpc_1.requestCallback, callback?: grpc_1.requestCallback): grpc_1.ClientUnaryCall => { return super.RequestCode(message, metadata, options, callback); }; + SubmitPasskeyResponse: GrpcUnaryServiceInterface = (message: PasskeyResponseRequest, metadata: grpc_1.Metadata | grpc_1.CallOptions | grpc_1.requestCallback, options?: grpc_1.CallOptions | grpc_1.requestCallback, callback?: grpc_1.requestCallback): grpc_1.ClientUnaryCall => { + return super.SubmitPasskeyResponse(message, metadata, options, callback); + }; + ConfirmPasskey: GrpcUnaryServiceInterface = (message: Session, metadata: grpc_1.Metadata | grpc_1.CallOptions | grpc_1.requestCallback, options?: grpc_1.CallOptions | grpc_1.requestCallback, callback?: grpc_1.requestCallback): grpc_1.ClientUnaryCall => { + return super.ConfirmPasskey(message, metadata, options, callback); + }; Logout: GrpcUnaryServiceInterface = (message: Session, metadata: grpc_1.Metadata | grpc_1.CallOptions | grpc_1.requestCallback, options?: grpc_1.CallOptions | grpc_1.requestCallback, callback?: grpc_1.requestCallback): grpc_1.ClientUnaryCall => { return super.Logout(message, metadata, options, callback); }; diff --git a/src/core/engines/gows/grpc/gows_grpc_pb.js b/src/core/engines/gows/grpc/gows_grpc_pb.js index 6c98bde1..e220f4e0 100644 --- a/src/core/engines/gows/grpc/gows_grpc_pb.js +++ b/src/core/engines/gows/grpc/gows_grpc_pb.js @@ -488,6 +488,17 @@ function deserialize_messages_PairCodeResponse(buffer_arg) { return gows_pb.PairCodeResponse.deserializeBinary(new Uint8Array(buffer_arg)); } +function serialize_messages_PasskeyResponseRequest(arg) { + if (!(arg instanceof gows_pb.PasskeyResponseRequest)) { + throw new Error('Expected argument of type messages.PasskeyResponseRequest'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_messages_PasskeyResponseRequest(buffer_arg) { + return gows_pb.PasskeyResponseRequest.deserializeBinary(new Uint8Array(buffer_arg)); +} + function serialize_messages_PresenceRequest(arg) { if (!(arg instanceof gows_pb.PresenceRequest)) { throw new Error('Expected argument of type messages.PresenceRequest'); @@ -764,6 +775,28 @@ startSession: { responseSerialize: serialize_messages_PairCodeResponse, responseDeserialize: deserialize_messages_PairCodeResponse, }, + submitPasskeyResponse: { + path: '/messages.MessageService/SubmitPasskeyResponse', + requestStream: false, + responseStream: false, + requestType: gows_pb.PasskeyResponseRequest, + responseType: gows_pb.Empty, + requestSerialize: serialize_messages_PasskeyResponseRequest, + requestDeserialize: deserialize_messages_PasskeyResponseRequest, + responseSerialize: serialize_messages_Empty, + responseDeserialize: deserialize_messages_Empty, + }, + confirmPasskey: { + path: '/messages.MessageService/ConfirmPasskey', + requestStream: false, + responseStream: false, + requestType: gows_pb.Session, + responseType: gows_pb.Empty, + requestSerialize: serialize_messages_Session, + requestDeserialize: deserialize_messages_Session, + responseSerialize: serialize_messages_Empty, + responseDeserialize: deserialize_messages_Empty, + }, logout: { path: '/messages.MessageService/Logout', requestStream: false, diff --git a/src/core/engines/gows/grpc/gows_pb.js b/src/core/engines/gows/grpc/gows_pb.js index b974b1fa..43998831 100644 --- a/src/core/engines/gows/grpc/gows_pb.js +++ b/src/core/engines/gows/grpc/gows_pb.js @@ -84,6 +84,7 @@ goog.exportSymbol('proto.messages.Pagination', null, global); goog.exportSymbol('proto.messages.PairCodeRequest', null, global); goog.exportSymbol('proto.messages.PairCodeResponse', null, global); goog.exportSymbol('proto.messages.ParticipantAction', null, global); +goog.exportSymbol('proto.messages.PasskeyResponseRequest', null, global); goog.exportSymbol('proto.messages.PhoneInfo', null, global); goog.exportSymbol('proto.messages.PollMessage', null, global); goog.exportSymbol('proto.messages.PollVoteMessage', null, global); @@ -395,6 +396,27 @@ if (goog.DEBUG && !COMPILED) { */ proto.messages.PairCodeResponse.displayName = 'proto.messages.PairCodeResponse'; } +/** + * 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.messages.PasskeyResponseRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.messages.PasskeyResponseRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.messages.PasskeyResponseRequest.displayName = 'proto.messages.PasskeyResponseRequest'; +} /** * Generated by JsPbCodeGenerator. * @param {Array=} opt_data Optional initial data array, typically from a @@ -4190,6 +4212,187 @@ proto.messages.PairCodeResponse.prototype.setCode = function(value) { +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_, 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.messages.PasskeyResponseRequest.prototype.toObject = function(opt_includeInstance) { + return proto.messages.PasskeyResponseRequest.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.messages.PasskeyResponseRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.messages.PasskeyResponseRequest.toObject = function(includeInstance, msg) { + var f, obj = { + session: (f = msg.getSession()) && proto.messages.Session.toObject(includeInstance, f), + responseJson: jspb.Message.getFieldWithDefault(msg, 2, "") + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.messages.PasskeyResponseRequest} + */ +proto.messages.PasskeyResponseRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.messages.PasskeyResponseRequest; + return proto.messages.PasskeyResponseRequest.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.messages.PasskeyResponseRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.messages.PasskeyResponseRequest} + */ +proto.messages.PasskeyResponseRequest.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new proto.messages.Session; + reader.readMessage(value,proto.messages.Session.deserializeBinaryFromReader); + msg.setSession(value); + break; + case 2: + var value = /** @type {string} */ (reader.readString()); + msg.setResponseJson(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.messages.PasskeyResponseRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.messages.PasskeyResponseRequest.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.messages.PasskeyResponseRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.messages.PasskeyResponseRequest.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getSession(); + if (f != null) { + writer.writeMessage( + 1, + f, + proto.messages.Session.serializeBinaryToWriter + ); + } + f = message.getResponseJson(); + if (f.length > 0) { + writer.writeString( + 2, + f + ); + } +}; + + +/** + * optional Session session = 1; + * @return {?proto.messages.Session} + */ +proto.messages.PasskeyResponseRequest.prototype.getSession = function() { + return /** @type{?proto.messages.Session} */ ( + jspb.Message.getWrapperField(this, proto.messages.Session, 1)); +}; + + +/** + * @param {?proto.messages.Session|undefined} value + * @return {!proto.messages.PasskeyResponseRequest} returns this +*/ +proto.messages.PasskeyResponseRequest.prototype.setSession = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.messages.PasskeyResponseRequest} returns this + */ +proto.messages.PasskeyResponseRequest.prototype.clearSession = function() { + return this.setSession(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.messages.PasskeyResponseRequest.prototype.hasSession = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * optional string response_json = 2; + * @return {string} + */ +proto.messages.PasskeyResponseRequest.prototype.getResponseJson = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +}; + + +/** + * @param {string} value + * @return {!proto.messages.PasskeyResponseRequest} returns this + */ +proto.messages.PasskeyResponseRequest.prototype.setResponseJson = function(value) { + return jspb.Message.setProto3StringField(this, 2, value); +}; + + + + + if (jspb.Message.GENERATE_TO_OBJECT) { /** * Creates an object representation of this proto. diff --git a/waha.config.json b/waha.config.json index 996a7689..0a76c158 100644 --- a/waha.config.json +++ b/waha.config.json @@ -2,7 +2,7 @@ "waha": { "gows": { "repo": "devlikeapro/gows-plus", - "ref": "v1.0.42" + "ref": "v1.0.43" }, "dashboard": { "repo": "devlikeapro/dashboard",