@sniipwebmaster/user-service-client-grpcweb 24.1.10991 → 24.1.11005

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -5812,6 +5812,189 @@ proto.sniipuserservice.SniipUserServiceServicePromiseClient.prototype.sendVerifi
5812
5812
  };
5813
5813
 
5814
5814
 
5815
+ /**
5816
+ * @const
5817
+ * @type {!grpc.web.MethodDescriptor<
5818
+ * !proto.sniipuserservice.VerificationCodeRequest,
5819
+ * !proto.sniipuserservice.ResponseCode>}
5820
+ */
5821
+ const methodDescriptor_SniipUserServiceService_SendVerificationSms = new grpc.web.MethodDescriptor(
5822
+ '/sniipuserservice.SniipUserServiceService/SendVerificationSms',
5823
+ grpc.web.MethodType.UNARY,
5824
+ proto.sniipuserservice.VerificationCodeRequest,
5825
+ proto.sniipuserservice.ResponseCode,
5826
+ /**
5827
+ * @param {!proto.sniipuserservice.VerificationCodeRequest} request
5828
+ * @return {!Uint8Array}
5829
+ */
5830
+ function(request) {
5831
+ return request.serializeBinary();
5832
+ },
5833
+ proto.sniipuserservice.ResponseCode.deserializeBinary
5834
+ );
5835
+
5836
+
5837
+ /**
5838
+ * @param {!proto.sniipuserservice.VerificationCodeRequest} request The
5839
+ * request proto
5840
+ * @param {?Object<string, string>} metadata User defined
5841
+ * call metadata
5842
+ * @param {function(?grpc.web.RpcError, ?proto.sniipuserservice.ResponseCode)}
5843
+ * callback The callback function(error, response)
5844
+ * @return {!grpc.web.ClientReadableStream<!proto.sniipuserservice.ResponseCode>|undefined}
5845
+ * The XHR Node Readable Stream
5846
+ */
5847
+ proto.sniipuserservice.SniipUserServiceServiceClient.prototype.sendVerificationSms =
5848
+ function(request, metadata, callback) {
5849
+ return this.client_.rpcCall(this.hostname_ +
5850
+ '/sniipuserservice.SniipUserServiceService/SendVerificationSms',
5851
+ request,
5852
+ metadata || {},
5853
+ methodDescriptor_SniipUserServiceService_SendVerificationSms,
5854
+ callback);
5855
+ };
5856
+
5857
+
5858
+ /**
5859
+ * @param {!proto.sniipuserservice.VerificationCodeRequest} request The
5860
+ * request proto
5861
+ * @param {?Object<string, string>=} metadata User defined
5862
+ * call metadata
5863
+ * @return {!Promise<!proto.sniipuserservice.ResponseCode>}
5864
+ * Promise that resolves to the response
5865
+ */
5866
+ proto.sniipuserservice.SniipUserServiceServicePromiseClient.prototype.sendVerificationSms =
5867
+ function(request, metadata) {
5868
+ return this.client_.unaryCall(this.hostname_ +
5869
+ '/sniipuserservice.SniipUserServiceService/SendVerificationSms',
5870
+ request,
5871
+ metadata || {},
5872
+ methodDescriptor_SniipUserServiceService_SendVerificationSms);
5873
+ };
5874
+
5875
+
5876
+ /**
5877
+ * @const
5878
+ * @type {!grpc.web.MethodDescriptor<
5879
+ * !proto.sniipuserservice.ValidateVerificationCodeRequest,
5880
+ * !proto.sniipuserservice.ResponseCode>}
5881
+ */
5882
+ const methodDescriptor_SniipUserServiceService_InternalValidateVerificationCodePhone = new grpc.web.MethodDescriptor(
5883
+ '/sniipuserservice.SniipUserServiceService/InternalValidateVerificationCodePhone',
5884
+ grpc.web.MethodType.UNARY,
5885
+ proto.sniipuserservice.ValidateVerificationCodeRequest,
5886
+ proto.sniipuserservice.ResponseCode,
5887
+ /**
5888
+ * @param {!proto.sniipuserservice.ValidateVerificationCodeRequest} request
5889
+ * @return {!Uint8Array}
5890
+ */
5891
+ function(request) {
5892
+ return request.serializeBinary();
5893
+ },
5894
+ proto.sniipuserservice.ResponseCode.deserializeBinary
5895
+ );
5896
+
5897
+
5898
+ /**
5899
+ * @param {!proto.sniipuserservice.ValidateVerificationCodeRequest} request The
5900
+ * request proto
5901
+ * @param {?Object<string, string>} metadata User defined
5902
+ * call metadata
5903
+ * @param {function(?grpc.web.RpcError, ?proto.sniipuserservice.ResponseCode)}
5904
+ * callback The callback function(error, response)
5905
+ * @return {!grpc.web.ClientReadableStream<!proto.sniipuserservice.ResponseCode>|undefined}
5906
+ * The XHR Node Readable Stream
5907
+ */
5908
+ proto.sniipuserservice.SniipUserServiceServiceClient.prototype.internalValidateVerificationCodePhone =
5909
+ function(request, metadata, callback) {
5910
+ return this.client_.rpcCall(this.hostname_ +
5911
+ '/sniipuserservice.SniipUserServiceService/InternalValidateVerificationCodePhone',
5912
+ request,
5913
+ metadata || {},
5914
+ methodDescriptor_SniipUserServiceService_InternalValidateVerificationCodePhone,
5915
+ callback);
5916
+ };
5917
+
5918
+
5919
+ /**
5920
+ * @param {!proto.sniipuserservice.ValidateVerificationCodeRequest} request The
5921
+ * request proto
5922
+ * @param {?Object<string, string>=} metadata User defined
5923
+ * call metadata
5924
+ * @return {!Promise<!proto.sniipuserservice.ResponseCode>}
5925
+ * Promise that resolves to the response
5926
+ */
5927
+ proto.sniipuserservice.SniipUserServiceServicePromiseClient.prototype.internalValidateVerificationCodePhone =
5928
+ function(request, metadata) {
5929
+ return this.client_.unaryCall(this.hostname_ +
5930
+ '/sniipuserservice.SniipUserServiceService/InternalValidateVerificationCodePhone',
5931
+ request,
5932
+ metadata || {},
5933
+ methodDescriptor_SniipUserServiceService_InternalValidateVerificationCodePhone);
5934
+ };
5935
+
5936
+
5937
+ /**
5938
+ * @const
5939
+ * @type {!grpc.web.MethodDescriptor<
5940
+ * !proto.sniipuserservice.ValidateVerificationCodeRequest,
5941
+ * !proto.sniipuserservice.ResponseCode>}
5942
+ */
5943
+ const methodDescriptor_SniipUserServiceService_InternalValidateVerificationCodeEmail = new grpc.web.MethodDescriptor(
5944
+ '/sniipuserservice.SniipUserServiceService/InternalValidateVerificationCodeEmail',
5945
+ grpc.web.MethodType.UNARY,
5946
+ proto.sniipuserservice.ValidateVerificationCodeRequest,
5947
+ proto.sniipuserservice.ResponseCode,
5948
+ /**
5949
+ * @param {!proto.sniipuserservice.ValidateVerificationCodeRequest} request
5950
+ * @return {!Uint8Array}
5951
+ */
5952
+ function(request) {
5953
+ return request.serializeBinary();
5954
+ },
5955
+ proto.sniipuserservice.ResponseCode.deserializeBinary
5956
+ );
5957
+
5958
+
5959
+ /**
5960
+ * @param {!proto.sniipuserservice.ValidateVerificationCodeRequest} request The
5961
+ * request proto
5962
+ * @param {?Object<string, string>} metadata User defined
5963
+ * call metadata
5964
+ * @param {function(?grpc.web.RpcError, ?proto.sniipuserservice.ResponseCode)}
5965
+ * callback The callback function(error, response)
5966
+ * @return {!grpc.web.ClientReadableStream<!proto.sniipuserservice.ResponseCode>|undefined}
5967
+ * The XHR Node Readable Stream
5968
+ */
5969
+ proto.sniipuserservice.SniipUserServiceServiceClient.prototype.internalValidateVerificationCodeEmail =
5970
+ function(request, metadata, callback) {
5971
+ return this.client_.rpcCall(this.hostname_ +
5972
+ '/sniipuserservice.SniipUserServiceService/InternalValidateVerificationCodeEmail',
5973
+ request,
5974
+ metadata || {},
5975
+ methodDescriptor_SniipUserServiceService_InternalValidateVerificationCodeEmail,
5976
+ callback);
5977
+ };
5978
+
5979
+
5980
+ /**
5981
+ * @param {!proto.sniipuserservice.ValidateVerificationCodeRequest} request The
5982
+ * request proto
5983
+ * @param {?Object<string, string>=} metadata User defined
5984
+ * call metadata
5985
+ * @return {!Promise<!proto.sniipuserservice.ResponseCode>}
5986
+ * Promise that resolves to the response
5987
+ */
5988
+ proto.sniipuserservice.SniipUserServiceServicePromiseClient.prototype.internalValidateVerificationCodeEmail =
5989
+ function(request, metadata) {
5990
+ return this.client_.unaryCall(this.hostname_ +
5991
+ '/sniipuserservice.SniipUserServiceService/InternalValidateVerificationCodeEmail',
5992
+ request,
5993
+ metadata || {},
5994
+ methodDescriptor_SniipUserServiceService_InternalValidateVerificationCodeEmail);
5995
+ };
5996
+
5997
+
5815
5998
  /**
5816
5999
  * @const
5817
6000
  * @type {!grpc.web.MethodDescriptor<
@@ -202,6 +202,9 @@ goog.exportSymbol('proto.sniipuserservice.ValidatePasswordRequest', null, global
202
202
  goog.exportSymbol('proto.sniipuserservice.ValidatePinRequest', null, global);
203
203
  goog.exportSymbol('proto.sniipuserservice.ValidateVerificationCodeEmailRequest', null, global);
204
204
  goog.exportSymbol('proto.sniipuserservice.ValidateVerificationCodeMobileRequest', null, global);
205
+ goog.exportSymbol('proto.sniipuserservice.ValidateVerificationCodeRequest', null, global);
206
+ goog.exportSymbol('proto.sniipuserservice.VerificationCodeRequest', null, global);
207
+ goog.exportSymbol('proto.sniipuserservice.VerificationScope', null, global);
205
208
  goog.exportSymbol('proto.sniipuserservice.VerifyEmailAddressRequest', null, global);
206
209
  goog.exportSymbol('proto.sniipuserservice.VerifyEmailRequest', null, global);
207
210
  goog.exportSymbol('proto.sniipuserservice.VerifyPhoneRequest', null, global);
@@ -1150,6 +1153,48 @@ if (goog.DEBUG && !COMPILED) {
1150
1153
  */
1151
1154
  proto.sniipuserservice.DuplicateUsersResponse.displayName = 'proto.sniipuserservice.DuplicateUsersResponse';
1152
1155
  }
1156
+ /**
1157
+ * Generated by JsPbCodeGenerator.
1158
+ * @param {Array=} opt_data Optional initial data array, typically from a
1159
+ * server response, or constructed directly in Javascript. The array is used
1160
+ * in place and becomes part of the constructed object. It is not cloned.
1161
+ * If no data is provided, the constructed object will be empty, but still
1162
+ * valid.
1163
+ * @extends {jspb.Message}
1164
+ * @constructor
1165
+ */
1166
+ proto.sniipuserservice.VerificationCodeRequest = function(opt_data) {
1167
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
1168
+ };
1169
+ goog.inherits(proto.sniipuserservice.VerificationCodeRequest, jspb.Message);
1170
+ if (goog.DEBUG && !COMPILED) {
1171
+ /**
1172
+ * @public
1173
+ * @override
1174
+ */
1175
+ proto.sniipuserservice.VerificationCodeRequest.displayName = 'proto.sniipuserservice.VerificationCodeRequest';
1176
+ }
1177
+ /**
1178
+ * Generated by JsPbCodeGenerator.
1179
+ * @param {Array=} opt_data Optional initial data array, typically from a
1180
+ * server response, or constructed directly in Javascript. The array is used
1181
+ * in place and becomes part of the constructed object. It is not cloned.
1182
+ * If no data is provided, the constructed object will be empty, but still
1183
+ * valid.
1184
+ * @extends {jspb.Message}
1185
+ * @constructor
1186
+ */
1187
+ proto.sniipuserservice.ValidateVerificationCodeRequest = function(opt_data) {
1188
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
1189
+ };
1190
+ goog.inherits(proto.sniipuserservice.ValidateVerificationCodeRequest, jspb.Message);
1191
+ if (goog.DEBUG && !COMPILED) {
1192
+ /**
1193
+ * @public
1194
+ * @override
1195
+ */
1196
+ proto.sniipuserservice.ValidateVerificationCodeRequest.displayName = 'proto.sniipuserservice.ValidateVerificationCodeRequest';
1197
+ }
1153
1198
  /**
1154
1199
  * Generated by JsPbCodeGenerator.
1155
1200
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -15254,6 +15299,356 @@ proto.sniipuserservice.DuplicateUsersResponse.prototype.hasResponsecode = functi
15254
15299
 
15255
15300
 
15256
15301
 
15302
+ if (jspb.Message.GENERATE_TO_OBJECT) {
15303
+ /**
15304
+ * Creates an object representation of this proto.
15305
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
15306
+ * Optional fields that are not set will be set to undefined.
15307
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
15308
+ * For the list of reserved names please see:
15309
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
15310
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
15311
+ * JSPB instance for transitional soy proto support:
15312
+ * http://goto/soy-param-migration
15313
+ * @return {!Object}
15314
+ */
15315
+ proto.sniipuserservice.VerificationCodeRequest.prototype.toObject = function(opt_includeInstance) {
15316
+ return proto.sniipuserservice.VerificationCodeRequest.toObject(opt_includeInstance, this);
15317
+ };
15318
+
15319
+
15320
+ /**
15321
+ * Static version of the {@see toObject} method.
15322
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
15323
+ * the JSPB instance for transitional soy proto support:
15324
+ * http://goto/soy-param-migration
15325
+ * @param {!proto.sniipuserservice.VerificationCodeRequest} msg The msg instance to transform.
15326
+ * @return {!Object}
15327
+ * @suppress {unusedLocalVariables} f is only used for nested messages
15328
+ */
15329
+ proto.sniipuserservice.VerificationCodeRequest.toObject = function(includeInstance, msg) {
15330
+ var f, obj = {
15331
+ scope: jspb.Message.getFieldWithDefault(msg, 1, 0)
15332
+ };
15333
+
15334
+ if (includeInstance) {
15335
+ obj.$jspbMessageInstance = msg;
15336
+ }
15337
+ return obj;
15338
+ };
15339
+ }
15340
+
15341
+
15342
+ /**
15343
+ * Deserializes binary data (in protobuf wire format).
15344
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
15345
+ * @return {!proto.sniipuserservice.VerificationCodeRequest}
15346
+ */
15347
+ proto.sniipuserservice.VerificationCodeRequest.deserializeBinary = function(bytes) {
15348
+ var reader = new jspb.BinaryReader(bytes);
15349
+ var msg = new proto.sniipuserservice.VerificationCodeRequest;
15350
+ return proto.sniipuserservice.VerificationCodeRequest.deserializeBinaryFromReader(msg, reader);
15351
+ };
15352
+
15353
+
15354
+ /**
15355
+ * Deserializes binary data (in protobuf wire format) from the
15356
+ * given reader into the given message object.
15357
+ * @param {!proto.sniipuserservice.VerificationCodeRequest} msg The message object to deserialize into.
15358
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
15359
+ * @return {!proto.sniipuserservice.VerificationCodeRequest}
15360
+ */
15361
+ proto.sniipuserservice.VerificationCodeRequest.deserializeBinaryFromReader = function(msg, reader) {
15362
+ while (reader.nextField()) {
15363
+ if (reader.isEndGroup()) {
15364
+ break;
15365
+ }
15366
+ var field = reader.getFieldNumber();
15367
+ switch (field) {
15368
+ case 1:
15369
+ var value = /** @type {!proto.sniipuserservice.VerificationScope} */ (reader.readEnum());
15370
+ msg.setScope(value);
15371
+ break;
15372
+ default:
15373
+ reader.skipField();
15374
+ break;
15375
+ }
15376
+ }
15377
+ return msg;
15378
+ };
15379
+
15380
+
15381
+ /**
15382
+ * Serializes the message to binary data (in protobuf wire format).
15383
+ * @return {!Uint8Array}
15384
+ */
15385
+ proto.sniipuserservice.VerificationCodeRequest.prototype.serializeBinary = function() {
15386
+ var writer = new jspb.BinaryWriter();
15387
+ proto.sniipuserservice.VerificationCodeRequest.serializeBinaryToWriter(this, writer);
15388
+ return writer.getResultBuffer();
15389
+ };
15390
+
15391
+
15392
+ /**
15393
+ * Serializes the given message to binary data (in protobuf wire
15394
+ * format), writing to the given BinaryWriter.
15395
+ * @param {!proto.sniipuserservice.VerificationCodeRequest} message
15396
+ * @param {!jspb.BinaryWriter} writer
15397
+ * @suppress {unusedLocalVariables} f is only used for nested messages
15398
+ */
15399
+ proto.sniipuserservice.VerificationCodeRequest.serializeBinaryToWriter = function(message, writer) {
15400
+ var f = undefined;
15401
+ f = message.getScope();
15402
+ if (f !== 0.0) {
15403
+ writer.writeEnum(
15404
+ 1,
15405
+ f
15406
+ );
15407
+ }
15408
+ };
15409
+
15410
+
15411
+ /**
15412
+ * optional VerificationScope scope = 1;
15413
+ * @return {!proto.sniipuserservice.VerificationScope}
15414
+ */
15415
+ proto.sniipuserservice.VerificationCodeRequest.prototype.getScope = function() {
15416
+ return /** @type {!proto.sniipuserservice.VerificationScope} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
15417
+ };
15418
+
15419
+
15420
+ /**
15421
+ * @param {!proto.sniipuserservice.VerificationScope} value
15422
+ * @return {!proto.sniipuserservice.VerificationCodeRequest} returns this
15423
+ */
15424
+ proto.sniipuserservice.VerificationCodeRequest.prototype.setScope = function(value) {
15425
+ return jspb.Message.setProto3EnumField(this, 1, value);
15426
+ };
15427
+
15428
+
15429
+
15430
+
15431
+
15432
+ if (jspb.Message.GENERATE_TO_OBJECT) {
15433
+ /**
15434
+ * Creates an object representation of this proto.
15435
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
15436
+ * Optional fields that are not set will be set to undefined.
15437
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
15438
+ * For the list of reserved names please see:
15439
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
15440
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
15441
+ * JSPB instance for transitional soy proto support:
15442
+ * http://goto/soy-param-migration
15443
+ * @return {!Object}
15444
+ */
15445
+ proto.sniipuserservice.ValidateVerificationCodeRequest.prototype.toObject = function(opt_includeInstance) {
15446
+ return proto.sniipuserservice.ValidateVerificationCodeRequest.toObject(opt_includeInstance, this);
15447
+ };
15448
+
15449
+
15450
+ /**
15451
+ * Static version of the {@see toObject} method.
15452
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
15453
+ * the JSPB instance for transitional soy proto support:
15454
+ * http://goto/soy-param-migration
15455
+ * @param {!proto.sniipuserservice.ValidateVerificationCodeRequest} msg The msg instance to transform.
15456
+ * @return {!Object}
15457
+ * @suppress {unusedLocalVariables} f is only used for nested messages
15458
+ */
15459
+ proto.sniipuserservice.ValidateVerificationCodeRequest.toObject = function(includeInstance, msg) {
15460
+ var f, obj = {
15461
+ verificationcode: jspb.Message.getFieldWithDefault(msg, 1, ""),
15462
+ verificationscope: jspb.Message.getFieldWithDefault(msg, 2, 0),
15463
+ donotrevokecode: jspb.Message.getBooleanFieldWithDefault(msg, 3, false),
15464
+ userid: jspb.Message.getFieldWithDefault(msg, 4, 0)
15465
+ };
15466
+
15467
+ if (includeInstance) {
15468
+ obj.$jspbMessageInstance = msg;
15469
+ }
15470
+ return obj;
15471
+ };
15472
+ }
15473
+
15474
+
15475
+ /**
15476
+ * Deserializes binary data (in protobuf wire format).
15477
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
15478
+ * @return {!proto.sniipuserservice.ValidateVerificationCodeRequest}
15479
+ */
15480
+ proto.sniipuserservice.ValidateVerificationCodeRequest.deserializeBinary = function(bytes) {
15481
+ var reader = new jspb.BinaryReader(bytes);
15482
+ var msg = new proto.sniipuserservice.ValidateVerificationCodeRequest;
15483
+ return proto.sniipuserservice.ValidateVerificationCodeRequest.deserializeBinaryFromReader(msg, reader);
15484
+ };
15485
+
15486
+
15487
+ /**
15488
+ * Deserializes binary data (in protobuf wire format) from the
15489
+ * given reader into the given message object.
15490
+ * @param {!proto.sniipuserservice.ValidateVerificationCodeRequest} msg The message object to deserialize into.
15491
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
15492
+ * @return {!proto.sniipuserservice.ValidateVerificationCodeRequest}
15493
+ */
15494
+ proto.sniipuserservice.ValidateVerificationCodeRequest.deserializeBinaryFromReader = function(msg, reader) {
15495
+ while (reader.nextField()) {
15496
+ if (reader.isEndGroup()) {
15497
+ break;
15498
+ }
15499
+ var field = reader.getFieldNumber();
15500
+ switch (field) {
15501
+ case 1:
15502
+ var value = /** @type {string} */ (reader.readString());
15503
+ msg.setVerificationcode(value);
15504
+ break;
15505
+ case 2:
15506
+ var value = /** @type {!proto.sniipuserservice.VerificationScope} */ (reader.readEnum());
15507
+ msg.setVerificationscope(value);
15508
+ break;
15509
+ case 3:
15510
+ var value = /** @type {boolean} */ (reader.readBool());
15511
+ msg.setDonotrevokecode(value);
15512
+ break;
15513
+ case 4:
15514
+ var value = /** @type {number} */ (reader.readInt64());
15515
+ msg.setUserid(value);
15516
+ break;
15517
+ default:
15518
+ reader.skipField();
15519
+ break;
15520
+ }
15521
+ }
15522
+ return msg;
15523
+ };
15524
+
15525
+
15526
+ /**
15527
+ * Serializes the message to binary data (in protobuf wire format).
15528
+ * @return {!Uint8Array}
15529
+ */
15530
+ proto.sniipuserservice.ValidateVerificationCodeRequest.prototype.serializeBinary = function() {
15531
+ var writer = new jspb.BinaryWriter();
15532
+ proto.sniipuserservice.ValidateVerificationCodeRequest.serializeBinaryToWriter(this, writer);
15533
+ return writer.getResultBuffer();
15534
+ };
15535
+
15536
+
15537
+ /**
15538
+ * Serializes the given message to binary data (in protobuf wire
15539
+ * format), writing to the given BinaryWriter.
15540
+ * @param {!proto.sniipuserservice.ValidateVerificationCodeRequest} message
15541
+ * @param {!jspb.BinaryWriter} writer
15542
+ * @suppress {unusedLocalVariables} f is only used for nested messages
15543
+ */
15544
+ proto.sniipuserservice.ValidateVerificationCodeRequest.serializeBinaryToWriter = function(message, writer) {
15545
+ var f = undefined;
15546
+ f = message.getVerificationcode();
15547
+ if (f.length > 0) {
15548
+ writer.writeString(
15549
+ 1,
15550
+ f
15551
+ );
15552
+ }
15553
+ f = message.getVerificationscope();
15554
+ if (f !== 0.0) {
15555
+ writer.writeEnum(
15556
+ 2,
15557
+ f
15558
+ );
15559
+ }
15560
+ f = message.getDonotrevokecode();
15561
+ if (f) {
15562
+ writer.writeBool(
15563
+ 3,
15564
+ f
15565
+ );
15566
+ }
15567
+ f = message.getUserid();
15568
+ if (f !== 0) {
15569
+ writer.writeInt64(
15570
+ 4,
15571
+ f
15572
+ );
15573
+ }
15574
+ };
15575
+
15576
+
15577
+ /**
15578
+ * optional string verificationCode = 1;
15579
+ * @return {string}
15580
+ */
15581
+ proto.sniipuserservice.ValidateVerificationCodeRequest.prototype.getVerificationcode = function() {
15582
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
15583
+ };
15584
+
15585
+
15586
+ /**
15587
+ * @param {string} value
15588
+ * @return {!proto.sniipuserservice.ValidateVerificationCodeRequest} returns this
15589
+ */
15590
+ proto.sniipuserservice.ValidateVerificationCodeRequest.prototype.setVerificationcode = function(value) {
15591
+ return jspb.Message.setProto3StringField(this, 1, value);
15592
+ };
15593
+
15594
+
15595
+ /**
15596
+ * optional VerificationScope verificationScope = 2;
15597
+ * @return {!proto.sniipuserservice.VerificationScope}
15598
+ */
15599
+ proto.sniipuserservice.ValidateVerificationCodeRequest.prototype.getVerificationscope = function() {
15600
+ return /** @type {!proto.sniipuserservice.VerificationScope} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
15601
+ };
15602
+
15603
+
15604
+ /**
15605
+ * @param {!proto.sniipuserservice.VerificationScope} value
15606
+ * @return {!proto.sniipuserservice.ValidateVerificationCodeRequest} returns this
15607
+ */
15608
+ proto.sniipuserservice.ValidateVerificationCodeRequest.prototype.setVerificationscope = function(value) {
15609
+ return jspb.Message.setProto3EnumField(this, 2, value);
15610
+ };
15611
+
15612
+
15613
+ /**
15614
+ * optional bool doNotRevokeCode = 3;
15615
+ * @return {boolean}
15616
+ */
15617
+ proto.sniipuserservice.ValidateVerificationCodeRequest.prototype.getDonotrevokecode = function() {
15618
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 3, false));
15619
+ };
15620
+
15621
+
15622
+ /**
15623
+ * @param {boolean} value
15624
+ * @return {!proto.sniipuserservice.ValidateVerificationCodeRequest} returns this
15625
+ */
15626
+ proto.sniipuserservice.ValidateVerificationCodeRequest.prototype.setDonotrevokecode = function(value) {
15627
+ return jspb.Message.setProto3BooleanField(this, 3, value);
15628
+ };
15629
+
15630
+
15631
+ /**
15632
+ * optional int64 userId = 4;
15633
+ * @return {number}
15634
+ */
15635
+ proto.sniipuserservice.ValidateVerificationCodeRequest.prototype.getUserid = function() {
15636
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
15637
+ };
15638
+
15639
+
15640
+ /**
15641
+ * @param {number} value
15642
+ * @return {!proto.sniipuserservice.ValidateVerificationCodeRequest} returns this
15643
+ */
15644
+ proto.sniipuserservice.ValidateVerificationCodeRequest.prototype.setUserid = function(value) {
15645
+ return jspb.Message.setProto3IntField(this, 4, value);
15646
+ };
15647
+
15648
+
15649
+
15650
+
15651
+
15257
15652
  if (jspb.Message.GENERATE_TO_OBJECT) {
15258
15653
  /**
15259
15654
  * Creates an object representation of this proto.
@@ -44568,4 +44963,17 @@ proto.sniipuserservice.KycUserStatus = {
44568
44963
  KYC_USER_UNVERIFIED: 2
44569
44964
  };
44570
44965
 
44966
+ /**
44967
+ * @enum {number}
44968
+ */
44969
+ proto.sniipuserservice.VerificationScope = {
44970
+ UNKNOWN: 0,
44971
+ CREATE_ACCOUNT: 1,
44972
+ RESET_PASSWORD: 2,
44973
+ UPDATE_PHONE: 3,
44974
+ VERIFY_EMAIL: 4,
44975
+ VERIFY_USER: 5,
44976
+ VERIFY_PAYMENT: 6
44977
+ };
44978
+
44571
44979
  goog.object.extend(exports, proto.sniipuserservice);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sniipwebmaster/user-service-client-grpcweb",
3
- "version": "24.1.10991",
3
+ "version": "24.1.11005",
4
4
  "description": "user-service-client-grpcweb",
5
5
  "author": "Sniip Development Team",
6
6
  "license": "MIT",