@sniipwebmaster/user-service-client-grpcweb-ts 24.1.10991 → 24.1.11014

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.
@@ -4082,6 +4082,135 @@ export class SniipUserServiceServiceClient {
4082
4082
  this.methodDescriptorSendVerificationCode);
4083
4083
  }
4084
4084
 
4085
+ methodDescriptorSendVerificationSms = new grpcWeb.MethodDescriptor(
4086
+ '/sniipuserservice.SniipUserServiceService/SendVerificationSms',
4087
+ grpcWeb.MethodType.UNARY,
4088
+ service_pb.VerificationCodeRequest,
4089
+ service_pb.ResponseCode,
4090
+ (request: service_pb.VerificationCodeRequest) => {
4091
+ return request.serializeBinary();
4092
+ },
4093
+ service_pb.ResponseCode.deserializeBinary
4094
+ );
4095
+
4096
+ sendVerificationSms(
4097
+ request: service_pb.VerificationCodeRequest,
4098
+ metadata: grpcWeb.Metadata | null): Promise<service_pb.ResponseCode>;
4099
+
4100
+ sendVerificationSms(
4101
+ request: service_pb.VerificationCodeRequest,
4102
+ metadata: grpcWeb.Metadata | null,
4103
+ callback: (err: grpcWeb.RpcError,
4104
+ response: service_pb.ResponseCode) => void): grpcWeb.ClientReadableStream<service_pb.ResponseCode>;
4105
+
4106
+ sendVerificationSms(
4107
+ request: service_pb.VerificationCodeRequest,
4108
+ metadata: grpcWeb.Metadata | null,
4109
+ callback?: (err: grpcWeb.RpcError,
4110
+ response: service_pb.ResponseCode) => void) {
4111
+ if (callback !== undefined) {
4112
+ return this.client_.rpcCall(
4113
+ this.hostname_ +
4114
+ '/sniipuserservice.SniipUserServiceService/SendVerificationSms',
4115
+ request,
4116
+ metadata || {},
4117
+ this.methodDescriptorSendVerificationSms,
4118
+ callback);
4119
+ }
4120
+ return this.client_.unaryCall(
4121
+ this.hostname_ +
4122
+ '/sniipuserservice.SniipUserServiceService/SendVerificationSms',
4123
+ request,
4124
+ metadata || {},
4125
+ this.methodDescriptorSendVerificationSms);
4126
+ }
4127
+
4128
+ methodDescriptorInternalValidateVerificationCodePhone = new grpcWeb.MethodDescriptor(
4129
+ '/sniipuserservice.SniipUserServiceService/InternalValidateVerificationCodePhone',
4130
+ grpcWeb.MethodType.UNARY,
4131
+ service_pb.ValidateVerificationCodeRequest,
4132
+ service_pb.ResponseCode,
4133
+ (request: service_pb.ValidateVerificationCodeRequest) => {
4134
+ return request.serializeBinary();
4135
+ },
4136
+ service_pb.ResponseCode.deserializeBinary
4137
+ );
4138
+
4139
+ internalValidateVerificationCodePhone(
4140
+ request: service_pb.ValidateVerificationCodeRequest,
4141
+ metadata: grpcWeb.Metadata | null): Promise<service_pb.ResponseCode>;
4142
+
4143
+ internalValidateVerificationCodePhone(
4144
+ request: service_pb.ValidateVerificationCodeRequest,
4145
+ metadata: grpcWeb.Metadata | null,
4146
+ callback: (err: grpcWeb.RpcError,
4147
+ response: service_pb.ResponseCode) => void): grpcWeb.ClientReadableStream<service_pb.ResponseCode>;
4148
+
4149
+ internalValidateVerificationCodePhone(
4150
+ request: service_pb.ValidateVerificationCodeRequest,
4151
+ metadata: grpcWeb.Metadata | null,
4152
+ callback?: (err: grpcWeb.RpcError,
4153
+ response: service_pb.ResponseCode) => void) {
4154
+ if (callback !== undefined) {
4155
+ return this.client_.rpcCall(
4156
+ this.hostname_ +
4157
+ '/sniipuserservice.SniipUserServiceService/InternalValidateVerificationCodePhone',
4158
+ request,
4159
+ metadata || {},
4160
+ this.methodDescriptorInternalValidateVerificationCodePhone,
4161
+ callback);
4162
+ }
4163
+ return this.client_.unaryCall(
4164
+ this.hostname_ +
4165
+ '/sniipuserservice.SniipUserServiceService/InternalValidateVerificationCodePhone',
4166
+ request,
4167
+ metadata || {},
4168
+ this.methodDescriptorInternalValidateVerificationCodePhone);
4169
+ }
4170
+
4171
+ methodDescriptorInternalValidateVerificationCodeEmail = new grpcWeb.MethodDescriptor(
4172
+ '/sniipuserservice.SniipUserServiceService/InternalValidateVerificationCodeEmail',
4173
+ grpcWeb.MethodType.UNARY,
4174
+ service_pb.ValidateVerificationCodeRequest,
4175
+ service_pb.ResponseCode,
4176
+ (request: service_pb.ValidateVerificationCodeRequest) => {
4177
+ return request.serializeBinary();
4178
+ },
4179
+ service_pb.ResponseCode.deserializeBinary
4180
+ );
4181
+
4182
+ internalValidateVerificationCodeEmail(
4183
+ request: service_pb.ValidateVerificationCodeRequest,
4184
+ metadata: grpcWeb.Metadata | null): Promise<service_pb.ResponseCode>;
4185
+
4186
+ internalValidateVerificationCodeEmail(
4187
+ request: service_pb.ValidateVerificationCodeRequest,
4188
+ metadata: grpcWeb.Metadata | null,
4189
+ callback: (err: grpcWeb.RpcError,
4190
+ response: service_pb.ResponseCode) => void): grpcWeb.ClientReadableStream<service_pb.ResponseCode>;
4191
+
4192
+ internalValidateVerificationCodeEmail(
4193
+ request: service_pb.ValidateVerificationCodeRequest,
4194
+ metadata: grpcWeb.Metadata | null,
4195
+ callback?: (err: grpcWeb.RpcError,
4196
+ response: service_pb.ResponseCode) => void) {
4197
+ if (callback !== undefined) {
4198
+ return this.client_.rpcCall(
4199
+ this.hostname_ +
4200
+ '/sniipuserservice.SniipUserServiceService/InternalValidateVerificationCodeEmail',
4201
+ request,
4202
+ metadata || {},
4203
+ this.methodDescriptorInternalValidateVerificationCodeEmail,
4204
+ callback);
4205
+ }
4206
+ return this.client_.unaryCall(
4207
+ this.hostname_ +
4208
+ '/sniipuserservice.SniipUserServiceService/InternalValidateVerificationCodeEmail',
4209
+ request,
4210
+ metadata || {},
4211
+ this.methodDescriptorInternalValidateVerificationCodeEmail);
4212
+ }
4213
+
4085
4214
  methodDescriptorSetPasswordEmail = new grpcWeb.MethodDescriptor(
4086
4215
  '/sniipuserservice.SniipUserServiceService/SetPasswordEmail',
4087
4216
  grpcWeb.MethodType.UNARY,
@@ -5071,6 +5200,49 @@ export class SniipUserServiceServiceClient {
5071
5200
  this.methodDescriptorValidatePassword);
5072
5201
  }
5073
5202
 
5203
+ methodDescriptorInternalValidatePassword = new grpcWeb.MethodDescriptor(
5204
+ '/sniipuserservice.SniipUserServiceService/InternalValidatePassword',
5205
+ grpcWeb.MethodType.UNARY,
5206
+ service_pb.InternalValidatePasswordRequest,
5207
+ service_pb.ResponseCode,
5208
+ (request: service_pb.InternalValidatePasswordRequest) => {
5209
+ return request.serializeBinary();
5210
+ },
5211
+ service_pb.ResponseCode.deserializeBinary
5212
+ );
5213
+
5214
+ internalValidatePassword(
5215
+ request: service_pb.InternalValidatePasswordRequest,
5216
+ metadata: grpcWeb.Metadata | null): Promise<service_pb.ResponseCode>;
5217
+
5218
+ internalValidatePassword(
5219
+ request: service_pb.InternalValidatePasswordRequest,
5220
+ metadata: grpcWeb.Metadata | null,
5221
+ callback: (err: grpcWeb.RpcError,
5222
+ response: service_pb.ResponseCode) => void): grpcWeb.ClientReadableStream<service_pb.ResponseCode>;
5223
+
5224
+ internalValidatePassword(
5225
+ request: service_pb.InternalValidatePasswordRequest,
5226
+ metadata: grpcWeb.Metadata | null,
5227
+ callback?: (err: grpcWeb.RpcError,
5228
+ response: service_pb.ResponseCode) => void) {
5229
+ if (callback !== undefined) {
5230
+ return this.client_.rpcCall(
5231
+ this.hostname_ +
5232
+ '/sniipuserservice.SniipUserServiceService/InternalValidatePassword',
5233
+ request,
5234
+ metadata || {},
5235
+ this.methodDescriptorInternalValidatePassword,
5236
+ callback);
5237
+ }
5238
+ return this.client_.unaryCall(
5239
+ this.hostname_ +
5240
+ '/sniipuserservice.SniipUserServiceService/InternalValidatePassword',
5241
+ request,
5242
+ metadata || {},
5243
+ this.methodDescriptorInternalValidatePassword);
5244
+ }
5245
+
5074
5246
  methodDescriptorValidatePin = new grpcWeb.MethodDescriptor(
5075
5247
  '/sniipuserservice.SniipUserServiceService/ValidatePin',
5076
5248
  grpcWeb.MethodType.UNARY,
@@ -5114,6 +5286,49 @@ export class SniipUserServiceServiceClient {
5114
5286
  this.methodDescriptorValidatePin);
5115
5287
  }
5116
5288
 
5289
+ methodDescriptorInternalValidatePin = new grpcWeb.MethodDescriptor(
5290
+ '/sniipuserservice.SniipUserServiceService/InternalValidatePin',
5291
+ grpcWeb.MethodType.UNARY,
5292
+ service_pb.InternalValidatePinRequest,
5293
+ service_pb.PinResponse,
5294
+ (request: service_pb.InternalValidatePinRequest) => {
5295
+ return request.serializeBinary();
5296
+ },
5297
+ service_pb.PinResponse.deserializeBinary
5298
+ );
5299
+
5300
+ internalValidatePin(
5301
+ request: service_pb.InternalValidatePinRequest,
5302
+ metadata: grpcWeb.Metadata | null): Promise<service_pb.PinResponse>;
5303
+
5304
+ internalValidatePin(
5305
+ request: service_pb.InternalValidatePinRequest,
5306
+ metadata: grpcWeb.Metadata | null,
5307
+ callback: (err: grpcWeb.RpcError,
5308
+ response: service_pb.PinResponse) => void): grpcWeb.ClientReadableStream<service_pb.PinResponse>;
5309
+
5310
+ internalValidatePin(
5311
+ request: service_pb.InternalValidatePinRequest,
5312
+ metadata: grpcWeb.Metadata | null,
5313
+ callback?: (err: grpcWeb.RpcError,
5314
+ response: service_pb.PinResponse) => void) {
5315
+ if (callback !== undefined) {
5316
+ return this.client_.rpcCall(
5317
+ this.hostname_ +
5318
+ '/sniipuserservice.SniipUserServiceService/InternalValidatePin',
5319
+ request,
5320
+ metadata || {},
5321
+ this.methodDescriptorInternalValidatePin,
5322
+ callback);
5323
+ }
5324
+ return this.client_.unaryCall(
5325
+ this.hostname_ +
5326
+ '/sniipuserservice.SniipUserServiceService/InternalValidatePin',
5327
+ request,
5328
+ metadata || {},
5329
+ this.methodDescriptorInternalValidatePin);
5330
+ }
5331
+
5117
5332
  methodDescriptorValidateVerificationCodeEmail = new grpcWeb.MethodDescriptor(
5118
5333
  '/sniipuserservice.SniipUserServiceService/ValidateVerificationCodeEmail',
5119
5334
  grpcWeb.MethodType.UNARY,
@@ -1486,6 +1486,54 @@ export namespace DuplicateUsersResponse {
1486
1486
  }
1487
1487
  }
1488
1488
 
1489
+ export class VerificationCodeRequest extends jspb.Message {
1490
+ getScope(): VerificationScope;
1491
+ setScope(value: VerificationScope): VerificationCodeRequest;
1492
+
1493
+ serializeBinary(): Uint8Array;
1494
+ toObject(includeInstance?: boolean): VerificationCodeRequest.AsObject;
1495
+ static toObject(includeInstance: boolean, msg: VerificationCodeRequest): VerificationCodeRequest.AsObject;
1496
+ static serializeBinaryToWriter(message: VerificationCodeRequest, writer: jspb.BinaryWriter): void;
1497
+ static deserializeBinary(bytes: Uint8Array): VerificationCodeRequest;
1498
+ static deserializeBinaryFromReader(message: VerificationCodeRequest, reader: jspb.BinaryReader): VerificationCodeRequest;
1499
+ }
1500
+
1501
+ export namespace VerificationCodeRequest {
1502
+ export type AsObject = {
1503
+ scope: VerificationScope,
1504
+ }
1505
+ }
1506
+
1507
+ export class ValidateVerificationCodeRequest extends jspb.Message {
1508
+ getVerificationcode(): string;
1509
+ setVerificationcode(value: string): ValidateVerificationCodeRequest;
1510
+
1511
+ getVerificationscope(): VerificationScope;
1512
+ setVerificationscope(value: VerificationScope): ValidateVerificationCodeRequest;
1513
+
1514
+ getDonotrevokecode(): boolean;
1515
+ setDonotrevokecode(value: boolean): ValidateVerificationCodeRequest;
1516
+
1517
+ getUserid(): number;
1518
+ setUserid(value: number): ValidateVerificationCodeRequest;
1519
+
1520
+ serializeBinary(): Uint8Array;
1521
+ toObject(includeInstance?: boolean): ValidateVerificationCodeRequest.AsObject;
1522
+ static toObject(includeInstance: boolean, msg: ValidateVerificationCodeRequest): ValidateVerificationCodeRequest.AsObject;
1523
+ static serializeBinaryToWriter(message: ValidateVerificationCodeRequest, writer: jspb.BinaryWriter): void;
1524
+ static deserializeBinary(bytes: Uint8Array): ValidateVerificationCodeRequest;
1525
+ static deserializeBinaryFromReader(message: ValidateVerificationCodeRequest, reader: jspb.BinaryReader): ValidateVerificationCodeRequest;
1526
+ }
1527
+
1528
+ export namespace ValidateVerificationCodeRequest {
1529
+ export type AsObject = {
1530
+ verificationcode: string,
1531
+ verificationscope: VerificationScope,
1532
+ donotrevokecode: boolean,
1533
+ userid: number,
1534
+ }
1535
+ }
1536
+
1489
1537
  export class FeedbackRequest extends jspb.Message {
1490
1538
  getEvent(): string;
1491
1539
  setEvent(value: string): FeedbackRequest;
@@ -5130,6 +5178,28 @@ export namespace ValidatePasswordRequest {
5130
5178
  }
5131
5179
  }
5132
5180
 
5181
+ export class InternalValidatePasswordRequest extends jspb.Message {
5182
+ getPassword(): string;
5183
+ setPassword(value: string): InternalValidatePasswordRequest;
5184
+
5185
+ getUserid(): number;
5186
+ setUserid(value: number): InternalValidatePasswordRequest;
5187
+
5188
+ serializeBinary(): Uint8Array;
5189
+ toObject(includeInstance?: boolean): InternalValidatePasswordRequest.AsObject;
5190
+ static toObject(includeInstance: boolean, msg: InternalValidatePasswordRequest): InternalValidatePasswordRequest.AsObject;
5191
+ static serializeBinaryToWriter(message: InternalValidatePasswordRequest, writer: jspb.BinaryWriter): void;
5192
+ static deserializeBinary(bytes: Uint8Array): InternalValidatePasswordRequest;
5193
+ static deserializeBinaryFromReader(message: InternalValidatePasswordRequest, reader: jspb.BinaryReader): InternalValidatePasswordRequest;
5194
+ }
5195
+
5196
+ export namespace InternalValidatePasswordRequest {
5197
+ export type AsObject = {
5198
+ password: string,
5199
+ userid: number,
5200
+ }
5201
+ }
5202
+
5133
5203
  export class ValidatePinRequest extends jspb.Message {
5134
5204
  getPin(): string;
5135
5205
  setPin(value: string): ValidatePinRequest;
@@ -5152,6 +5222,32 @@ export namespace ValidatePinRequest {
5152
5222
  }
5153
5223
  }
5154
5224
 
5225
+ export class InternalValidatePinRequest extends jspb.Message {
5226
+ getPin(): string;
5227
+ setPin(value: string): InternalValidatePinRequest;
5228
+
5229
+ getShouldgetpin(): boolean;
5230
+ setShouldgetpin(value: boolean): InternalValidatePinRequest;
5231
+
5232
+ getUserid(): number;
5233
+ setUserid(value: number): InternalValidatePinRequest;
5234
+
5235
+ serializeBinary(): Uint8Array;
5236
+ toObject(includeInstance?: boolean): InternalValidatePinRequest.AsObject;
5237
+ static toObject(includeInstance: boolean, msg: InternalValidatePinRequest): InternalValidatePinRequest.AsObject;
5238
+ static serializeBinaryToWriter(message: InternalValidatePinRequest, writer: jspb.BinaryWriter): void;
5239
+ static deserializeBinary(bytes: Uint8Array): InternalValidatePinRequest;
5240
+ static deserializeBinaryFromReader(message: InternalValidatePinRequest, reader: jspb.BinaryReader): InternalValidatePinRequest;
5241
+ }
5242
+
5243
+ export namespace InternalValidatePinRequest {
5244
+ export type AsObject = {
5245
+ pin: string,
5246
+ shouldgetpin: boolean,
5247
+ userid: number,
5248
+ }
5249
+ }
5250
+
5155
5251
  export class ValidateVerificationCodeEmailRequest extends jspb.Message {
5156
5252
  getEmail(): string;
5157
5253
  setEmail(value: string): ValidateVerificationCodeEmailRequest;
@@ -5405,3 +5501,12 @@ export enum KycUserStatus {
5405
5501
  KYC_USER_VERIFIED = 1,
5406
5502
  KYC_USER_UNVERIFIED = 2,
5407
5503
  }
5504
+ export enum VerificationScope {
5505
+ UNKNOWN = 0,
5506
+ CREATE_ACCOUNT = 1,
5507
+ RESET_PASSWORD = 2,
5508
+ UPDATE_PHONE = 3,
5509
+ VERIFY_EMAIL = 4,
5510
+ VERIFY_USER = 5,
5511
+ VERIFY_PAYMENT = 6,
5512
+ }
@@ -89,6 +89,8 @@ goog.exportSymbol('proto.sniipuserservice.GetUserDevicesHistoryResponse', null,
89
89
  goog.exportSymbol('proto.sniipuserservice.GetUserStatusRequest', null, global);
90
90
  goog.exportSymbol('proto.sniipuserservice.GetUserStatusResponse', null, global);
91
91
  goog.exportSymbol('proto.sniipuserservice.GiveFeedbackRequest', null, global);
92
+ goog.exportSymbol('proto.sniipuserservice.InternalValidatePasswordRequest', null, global);
93
+ goog.exportSymbol('proto.sniipuserservice.InternalValidatePinRequest', null, global);
92
94
  goog.exportSymbol('proto.sniipuserservice.IsEmailVerifiedRequest', null, global);
93
95
  goog.exportSymbol('proto.sniipuserservice.IsEmailVerifiedResponse', null, global);
94
96
  goog.exportSymbol('proto.sniipuserservice.IsPhoneValidRequest', null, global);
@@ -202,6 +204,9 @@ goog.exportSymbol('proto.sniipuserservice.ValidatePasswordRequest', null, global
202
204
  goog.exportSymbol('proto.sniipuserservice.ValidatePinRequest', null, global);
203
205
  goog.exportSymbol('proto.sniipuserservice.ValidateVerificationCodeEmailRequest', null, global);
204
206
  goog.exportSymbol('proto.sniipuserservice.ValidateVerificationCodeMobileRequest', null, global);
207
+ goog.exportSymbol('proto.sniipuserservice.ValidateVerificationCodeRequest', null, global);
208
+ goog.exportSymbol('proto.sniipuserservice.VerificationCodeRequest', null, global);
209
+ goog.exportSymbol('proto.sniipuserservice.VerificationScope', null, global);
205
210
  goog.exportSymbol('proto.sniipuserservice.VerifyEmailAddressRequest', null, global);
206
211
  goog.exportSymbol('proto.sniipuserservice.VerifyEmailRequest', null, global);
207
212
  goog.exportSymbol('proto.sniipuserservice.VerifyPhoneRequest', null, global);
@@ -1150,6 +1155,48 @@ if (goog.DEBUG && !COMPILED) {
1150
1155
  */
1151
1156
  proto.sniipuserservice.DuplicateUsersResponse.displayName = 'proto.sniipuserservice.DuplicateUsersResponse';
1152
1157
  }
1158
+ /**
1159
+ * Generated by JsPbCodeGenerator.
1160
+ * @param {Array=} opt_data Optional initial data array, typically from a
1161
+ * server response, or constructed directly in Javascript. The array is used
1162
+ * in place and becomes part of the constructed object. It is not cloned.
1163
+ * If no data is provided, the constructed object will be empty, but still
1164
+ * valid.
1165
+ * @extends {jspb.Message}
1166
+ * @constructor
1167
+ */
1168
+ proto.sniipuserservice.VerificationCodeRequest = function(opt_data) {
1169
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
1170
+ };
1171
+ goog.inherits(proto.sniipuserservice.VerificationCodeRequest, jspb.Message);
1172
+ if (goog.DEBUG && !COMPILED) {
1173
+ /**
1174
+ * @public
1175
+ * @override
1176
+ */
1177
+ proto.sniipuserservice.VerificationCodeRequest.displayName = 'proto.sniipuserservice.VerificationCodeRequest';
1178
+ }
1179
+ /**
1180
+ * Generated by JsPbCodeGenerator.
1181
+ * @param {Array=} opt_data Optional initial data array, typically from a
1182
+ * server response, or constructed directly in Javascript. The array is used
1183
+ * in place and becomes part of the constructed object. It is not cloned.
1184
+ * If no data is provided, the constructed object will be empty, but still
1185
+ * valid.
1186
+ * @extends {jspb.Message}
1187
+ * @constructor
1188
+ */
1189
+ proto.sniipuserservice.ValidateVerificationCodeRequest = function(opt_data) {
1190
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
1191
+ };
1192
+ goog.inherits(proto.sniipuserservice.ValidateVerificationCodeRequest, jspb.Message);
1193
+ if (goog.DEBUG && !COMPILED) {
1194
+ /**
1195
+ * @public
1196
+ * @override
1197
+ */
1198
+ proto.sniipuserservice.ValidateVerificationCodeRequest.displayName = 'proto.sniipuserservice.ValidateVerificationCodeRequest';
1199
+ }
1153
1200
  /**
1154
1201
  * Generated by JsPbCodeGenerator.
1155
1202
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -3901,6 +3948,27 @@ if (goog.DEBUG && !COMPILED) {
3901
3948
  */
3902
3949
  proto.sniipuserservice.ValidatePasswordRequest.displayName = 'proto.sniipuserservice.ValidatePasswordRequest';
3903
3950
  }
3951
+ /**
3952
+ * Generated by JsPbCodeGenerator.
3953
+ * @param {Array=} opt_data Optional initial data array, typically from a
3954
+ * server response, or constructed directly in Javascript. The array is used
3955
+ * in place and becomes part of the constructed object. It is not cloned.
3956
+ * If no data is provided, the constructed object will be empty, but still
3957
+ * valid.
3958
+ * @extends {jspb.Message}
3959
+ * @constructor
3960
+ */
3961
+ proto.sniipuserservice.InternalValidatePasswordRequest = function(opt_data) {
3962
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
3963
+ };
3964
+ goog.inherits(proto.sniipuserservice.InternalValidatePasswordRequest, jspb.Message);
3965
+ if (goog.DEBUG && !COMPILED) {
3966
+ /**
3967
+ * @public
3968
+ * @override
3969
+ */
3970
+ proto.sniipuserservice.InternalValidatePasswordRequest.displayName = 'proto.sniipuserservice.InternalValidatePasswordRequest';
3971
+ }
3904
3972
  /**
3905
3973
  * Generated by JsPbCodeGenerator.
3906
3974
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -3922,6 +3990,27 @@ if (goog.DEBUG && !COMPILED) {
3922
3990
  */
3923
3991
  proto.sniipuserservice.ValidatePinRequest.displayName = 'proto.sniipuserservice.ValidatePinRequest';
3924
3992
  }
3993
+ /**
3994
+ * Generated by JsPbCodeGenerator.
3995
+ * @param {Array=} opt_data Optional initial data array, typically from a
3996
+ * server response, or constructed directly in Javascript. The array is used
3997
+ * in place and becomes part of the constructed object. It is not cloned.
3998
+ * If no data is provided, the constructed object will be empty, but still
3999
+ * valid.
4000
+ * @extends {jspb.Message}
4001
+ * @constructor
4002
+ */
4003
+ proto.sniipuserservice.InternalValidatePinRequest = function(opt_data) {
4004
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
4005
+ };
4006
+ goog.inherits(proto.sniipuserservice.InternalValidatePinRequest, jspb.Message);
4007
+ if (goog.DEBUG && !COMPILED) {
4008
+ /**
4009
+ * @public
4010
+ * @override
4011
+ */
4012
+ proto.sniipuserservice.InternalValidatePinRequest.displayName = 'proto.sniipuserservice.InternalValidatePinRequest';
4013
+ }
3925
4014
  /**
3926
4015
  * Generated by JsPbCodeGenerator.
3927
4016
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -15254,6 +15343,356 @@ proto.sniipuserservice.DuplicateUsersResponse.prototype.hasResponsecode = functi
15254
15343
 
15255
15344
 
15256
15345
 
15346
+ if (jspb.Message.GENERATE_TO_OBJECT) {
15347
+ /**
15348
+ * Creates an object representation of this proto.
15349
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
15350
+ * Optional fields that are not set will be set to undefined.
15351
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
15352
+ * For the list of reserved names please see:
15353
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
15354
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
15355
+ * JSPB instance for transitional soy proto support:
15356
+ * http://goto/soy-param-migration
15357
+ * @return {!Object}
15358
+ */
15359
+ proto.sniipuserservice.VerificationCodeRequest.prototype.toObject = function(opt_includeInstance) {
15360
+ return proto.sniipuserservice.VerificationCodeRequest.toObject(opt_includeInstance, this);
15361
+ };
15362
+
15363
+
15364
+ /**
15365
+ * Static version of the {@see toObject} method.
15366
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
15367
+ * the JSPB instance for transitional soy proto support:
15368
+ * http://goto/soy-param-migration
15369
+ * @param {!proto.sniipuserservice.VerificationCodeRequest} msg The msg instance to transform.
15370
+ * @return {!Object}
15371
+ * @suppress {unusedLocalVariables} f is only used for nested messages
15372
+ */
15373
+ proto.sniipuserservice.VerificationCodeRequest.toObject = function(includeInstance, msg) {
15374
+ var f, obj = {
15375
+ scope: jspb.Message.getFieldWithDefault(msg, 1, 0)
15376
+ };
15377
+
15378
+ if (includeInstance) {
15379
+ obj.$jspbMessageInstance = msg;
15380
+ }
15381
+ return obj;
15382
+ };
15383
+ }
15384
+
15385
+
15386
+ /**
15387
+ * Deserializes binary data (in protobuf wire format).
15388
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
15389
+ * @return {!proto.sniipuserservice.VerificationCodeRequest}
15390
+ */
15391
+ proto.sniipuserservice.VerificationCodeRequest.deserializeBinary = function(bytes) {
15392
+ var reader = new jspb.BinaryReader(bytes);
15393
+ var msg = new proto.sniipuserservice.VerificationCodeRequest;
15394
+ return proto.sniipuserservice.VerificationCodeRequest.deserializeBinaryFromReader(msg, reader);
15395
+ };
15396
+
15397
+
15398
+ /**
15399
+ * Deserializes binary data (in protobuf wire format) from the
15400
+ * given reader into the given message object.
15401
+ * @param {!proto.sniipuserservice.VerificationCodeRequest} msg The message object to deserialize into.
15402
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
15403
+ * @return {!proto.sniipuserservice.VerificationCodeRequest}
15404
+ */
15405
+ proto.sniipuserservice.VerificationCodeRequest.deserializeBinaryFromReader = function(msg, reader) {
15406
+ while (reader.nextField()) {
15407
+ if (reader.isEndGroup()) {
15408
+ break;
15409
+ }
15410
+ var field = reader.getFieldNumber();
15411
+ switch (field) {
15412
+ case 1:
15413
+ var value = /** @type {!proto.sniipuserservice.VerificationScope} */ (reader.readEnum());
15414
+ msg.setScope(value);
15415
+ break;
15416
+ default:
15417
+ reader.skipField();
15418
+ break;
15419
+ }
15420
+ }
15421
+ return msg;
15422
+ };
15423
+
15424
+
15425
+ /**
15426
+ * Serializes the message to binary data (in protobuf wire format).
15427
+ * @return {!Uint8Array}
15428
+ */
15429
+ proto.sniipuserservice.VerificationCodeRequest.prototype.serializeBinary = function() {
15430
+ var writer = new jspb.BinaryWriter();
15431
+ proto.sniipuserservice.VerificationCodeRequest.serializeBinaryToWriter(this, writer);
15432
+ return writer.getResultBuffer();
15433
+ };
15434
+
15435
+
15436
+ /**
15437
+ * Serializes the given message to binary data (in protobuf wire
15438
+ * format), writing to the given BinaryWriter.
15439
+ * @param {!proto.sniipuserservice.VerificationCodeRequest} message
15440
+ * @param {!jspb.BinaryWriter} writer
15441
+ * @suppress {unusedLocalVariables} f is only used for nested messages
15442
+ */
15443
+ proto.sniipuserservice.VerificationCodeRequest.serializeBinaryToWriter = function(message, writer) {
15444
+ var f = undefined;
15445
+ f = message.getScope();
15446
+ if (f !== 0.0) {
15447
+ writer.writeEnum(
15448
+ 1,
15449
+ f
15450
+ );
15451
+ }
15452
+ };
15453
+
15454
+
15455
+ /**
15456
+ * optional VerificationScope scope = 1;
15457
+ * @return {!proto.sniipuserservice.VerificationScope}
15458
+ */
15459
+ proto.sniipuserservice.VerificationCodeRequest.prototype.getScope = function() {
15460
+ return /** @type {!proto.sniipuserservice.VerificationScope} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
15461
+ };
15462
+
15463
+
15464
+ /**
15465
+ * @param {!proto.sniipuserservice.VerificationScope} value
15466
+ * @return {!proto.sniipuserservice.VerificationCodeRequest} returns this
15467
+ */
15468
+ proto.sniipuserservice.VerificationCodeRequest.prototype.setScope = function(value) {
15469
+ return jspb.Message.setProto3EnumField(this, 1, value);
15470
+ };
15471
+
15472
+
15473
+
15474
+
15475
+
15476
+ if (jspb.Message.GENERATE_TO_OBJECT) {
15477
+ /**
15478
+ * Creates an object representation of this proto.
15479
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
15480
+ * Optional fields that are not set will be set to undefined.
15481
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
15482
+ * For the list of reserved names please see:
15483
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
15484
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
15485
+ * JSPB instance for transitional soy proto support:
15486
+ * http://goto/soy-param-migration
15487
+ * @return {!Object}
15488
+ */
15489
+ proto.sniipuserservice.ValidateVerificationCodeRequest.prototype.toObject = function(opt_includeInstance) {
15490
+ return proto.sniipuserservice.ValidateVerificationCodeRequest.toObject(opt_includeInstance, this);
15491
+ };
15492
+
15493
+
15494
+ /**
15495
+ * Static version of the {@see toObject} method.
15496
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
15497
+ * the JSPB instance for transitional soy proto support:
15498
+ * http://goto/soy-param-migration
15499
+ * @param {!proto.sniipuserservice.ValidateVerificationCodeRequest} msg The msg instance to transform.
15500
+ * @return {!Object}
15501
+ * @suppress {unusedLocalVariables} f is only used for nested messages
15502
+ */
15503
+ proto.sniipuserservice.ValidateVerificationCodeRequest.toObject = function(includeInstance, msg) {
15504
+ var f, obj = {
15505
+ verificationcode: jspb.Message.getFieldWithDefault(msg, 1, ""),
15506
+ verificationscope: jspb.Message.getFieldWithDefault(msg, 2, 0),
15507
+ donotrevokecode: jspb.Message.getBooleanFieldWithDefault(msg, 3, false),
15508
+ userid: jspb.Message.getFieldWithDefault(msg, 4, 0)
15509
+ };
15510
+
15511
+ if (includeInstance) {
15512
+ obj.$jspbMessageInstance = msg;
15513
+ }
15514
+ return obj;
15515
+ };
15516
+ }
15517
+
15518
+
15519
+ /**
15520
+ * Deserializes binary data (in protobuf wire format).
15521
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
15522
+ * @return {!proto.sniipuserservice.ValidateVerificationCodeRequest}
15523
+ */
15524
+ proto.sniipuserservice.ValidateVerificationCodeRequest.deserializeBinary = function(bytes) {
15525
+ var reader = new jspb.BinaryReader(bytes);
15526
+ var msg = new proto.sniipuserservice.ValidateVerificationCodeRequest;
15527
+ return proto.sniipuserservice.ValidateVerificationCodeRequest.deserializeBinaryFromReader(msg, reader);
15528
+ };
15529
+
15530
+
15531
+ /**
15532
+ * Deserializes binary data (in protobuf wire format) from the
15533
+ * given reader into the given message object.
15534
+ * @param {!proto.sniipuserservice.ValidateVerificationCodeRequest} msg The message object to deserialize into.
15535
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
15536
+ * @return {!proto.sniipuserservice.ValidateVerificationCodeRequest}
15537
+ */
15538
+ proto.sniipuserservice.ValidateVerificationCodeRequest.deserializeBinaryFromReader = function(msg, reader) {
15539
+ while (reader.nextField()) {
15540
+ if (reader.isEndGroup()) {
15541
+ break;
15542
+ }
15543
+ var field = reader.getFieldNumber();
15544
+ switch (field) {
15545
+ case 1:
15546
+ var value = /** @type {string} */ (reader.readString());
15547
+ msg.setVerificationcode(value);
15548
+ break;
15549
+ case 2:
15550
+ var value = /** @type {!proto.sniipuserservice.VerificationScope} */ (reader.readEnum());
15551
+ msg.setVerificationscope(value);
15552
+ break;
15553
+ case 3:
15554
+ var value = /** @type {boolean} */ (reader.readBool());
15555
+ msg.setDonotrevokecode(value);
15556
+ break;
15557
+ case 4:
15558
+ var value = /** @type {number} */ (reader.readInt64());
15559
+ msg.setUserid(value);
15560
+ break;
15561
+ default:
15562
+ reader.skipField();
15563
+ break;
15564
+ }
15565
+ }
15566
+ return msg;
15567
+ };
15568
+
15569
+
15570
+ /**
15571
+ * Serializes the message to binary data (in protobuf wire format).
15572
+ * @return {!Uint8Array}
15573
+ */
15574
+ proto.sniipuserservice.ValidateVerificationCodeRequest.prototype.serializeBinary = function() {
15575
+ var writer = new jspb.BinaryWriter();
15576
+ proto.sniipuserservice.ValidateVerificationCodeRequest.serializeBinaryToWriter(this, writer);
15577
+ return writer.getResultBuffer();
15578
+ };
15579
+
15580
+
15581
+ /**
15582
+ * Serializes the given message to binary data (in protobuf wire
15583
+ * format), writing to the given BinaryWriter.
15584
+ * @param {!proto.sniipuserservice.ValidateVerificationCodeRequest} message
15585
+ * @param {!jspb.BinaryWriter} writer
15586
+ * @suppress {unusedLocalVariables} f is only used for nested messages
15587
+ */
15588
+ proto.sniipuserservice.ValidateVerificationCodeRequest.serializeBinaryToWriter = function(message, writer) {
15589
+ var f = undefined;
15590
+ f = message.getVerificationcode();
15591
+ if (f.length > 0) {
15592
+ writer.writeString(
15593
+ 1,
15594
+ f
15595
+ );
15596
+ }
15597
+ f = message.getVerificationscope();
15598
+ if (f !== 0.0) {
15599
+ writer.writeEnum(
15600
+ 2,
15601
+ f
15602
+ );
15603
+ }
15604
+ f = message.getDonotrevokecode();
15605
+ if (f) {
15606
+ writer.writeBool(
15607
+ 3,
15608
+ f
15609
+ );
15610
+ }
15611
+ f = message.getUserid();
15612
+ if (f !== 0) {
15613
+ writer.writeInt64(
15614
+ 4,
15615
+ f
15616
+ );
15617
+ }
15618
+ };
15619
+
15620
+
15621
+ /**
15622
+ * optional string verificationCode = 1;
15623
+ * @return {string}
15624
+ */
15625
+ proto.sniipuserservice.ValidateVerificationCodeRequest.prototype.getVerificationcode = function() {
15626
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
15627
+ };
15628
+
15629
+
15630
+ /**
15631
+ * @param {string} value
15632
+ * @return {!proto.sniipuserservice.ValidateVerificationCodeRequest} returns this
15633
+ */
15634
+ proto.sniipuserservice.ValidateVerificationCodeRequest.prototype.setVerificationcode = function(value) {
15635
+ return jspb.Message.setProto3StringField(this, 1, value);
15636
+ };
15637
+
15638
+
15639
+ /**
15640
+ * optional VerificationScope verificationScope = 2;
15641
+ * @return {!proto.sniipuserservice.VerificationScope}
15642
+ */
15643
+ proto.sniipuserservice.ValidateVerificationCodeRequest.prototype.getVerificationscope = function() {
15644
+ return /** @type {!proto.sniipuserservice.VerificationScope} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
15645
+ };
15646
+
15647
+
15648
+ /**
15649
+ * @param {!proto.sniipuserservice.VerificationScope} value
15650
+ * @return {!proto.sniipuserservice.ValidateVerificationCodeRequest} returns this
15651
+ */
15652
+ proto.sniipuserservice.ValidateVerificationCodeRequest.prototype.setVerificationscope = function(value) {
15653
+ return jspb.Message.setProto3EnumField(this, 2, value);
15654
+ };
15655
+
15656
+
15657
+ /**
15658
+ * optional bool doNotRevokeCode = 3;
15659
+ * @return {boolean}
15660
+ */
15661
+ proto.sniipuserservice.ValidateVerificationCodeRequest.prototype.getDonotrevokecode = function() {
15662
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 3, false));
15663
+ };
15664
+
15665
+
15666
+ /**
15667
+ * @param {boolean} value
15668
+ * @return {!proto.sniipuserservice.ValidateVerificationCodeRequest} returns this
15669
+ */
15670
+ proto.sniipuserservice.ValidateVerificationCodeRequest.prototype.setDonotrevokecode = function(value) {
15671
+ return jspb.Message.setProto3BooleanField(this, 3, value);
15672
+ };
15673
+
15674
+
15675
+ /**
15676
+ * optional int64 userId = 4;
15677
+ * @return {number}
15678
+ */
15679
+ proto.sniipuserservice.ValidateVerificationCodeRequest.prototype.getUserid = function() {
15680
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
15681
+ };
15682
+
15683
+
15684
+ /**
15685
+ * @param {number} value
15686
+ * @return {!proto.sniipuserservice.ValidateVerificationCodeRequest} returns this
15687
+ */
15688
+ proto.sniipuserservice.ValidateVerificationCodeRequest.prototype.setUserid = function(value) {
15689
+ return jspb.Message.setProto3IntField(this, 4, value);
15690
+ };
15691
+
15692
+
15693
+
15694
+
15695
+
15257
15696
  if (jspb.Message.GENERATE_TO_OBJECT) {
15258
15697
  /**
15259
15698
  * Creates an object representation of this proto.
@@ -42566,6 +43005,166 @@ proto.sniipuserservice.ValidatePasswordRequest.prototype.setPassword = function(
42566
43005
 
42567
43006
 
42568
43007
 
43008
+ if (jspb.Message.GENERATE_TO_OBJECT) {
43009
+ /**
43010
+ * Creates an object representation of this proto.
43011
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
43012
+ * Optional fields that are not set will be set to undefined.
43013
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
43014
+ * For the list of reserved names please see:
43015
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
43016
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
43017
+ * JSPB instance for transitional soy proto support:
43018
+ * http://goto/soy-param-migration
43019
+ * @return {!Object}
43020
+ */
43021
+ proto.sniipuserservice.InternalValidatePasswordRequest.prototype.toObject = function(opt_includeInstance) {
43022
+ return proto.sniipuserservice.InternalValidatePasswordRequest.toObject(opt_includeInstance, this);
43023
+ };
43024
+
43025
+
43026
+ /**
43027
+ * Static version of the {@see toObject} method.
43028
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
43029
+ * the JSPB instance for transitional soy proto support:
43030
+ * http://goto/soy-param-migration
43031
+ * @param {!proto.sniipuserservice.InternalValidatePasswordRequest} msg The msg instance to transform.
43032
+ * @return {!Object}
43033
+ * @suppress {unusedLocalVariables} f is only used for nested messages
43034
+ */
43035
+ proto.sniipuserservice.InternalValidatePasswordRequest.toObject = function(includeInstance, msg) {
43036
+ var f, obj = {
43037
+ password: jspb.Message.getFieldWithDefault(msg, 1, ""),
43038
+ userid: jspb.Message.getFieldWithDefault(msg, 2, 0)
43039
+ };
43040
+
43041
+ if (includeInstance) {
43042
+ obj.$jspbMessageInstance = msg;
43043
+ }
43044
+ return obj;
43045
+ };
43046
+ }
43047
+
43048
+
43049
+ /**
43050
+ * Deserializes binary data (in protobuf wire format).
43051
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
43052
+ * @return {!proto.sniipuserservice.InternalValidatePasswordRequest}
43053
+ */
43054
+ proto.sniipuserservice.InternalValidatePasswordRequest.deserializeBinary = function(bytes) {
43055
+ var reader = new jspb.BinaryReader(bytes);
43056
+ var msg = new proto.sniipuserservice.InternalValidatePasswordRequest;
43057
+ return proto.sniipuserservice.InternalValidatePasswordRequest.deserializeBinaryFromReader(msg, reader);
43058
+ };
43059
+
43060
+
43061
+ /**
43062
+ * Deserializes binary data (in protobuf wire format) from the
43063
+ * given reader into the given message object.
43064
+ * @param {!proto.sniipuserservice.InternalValidatePasswordRequest} msg The message object to deserialize into.
43065
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
43066
+ * @return {!proto.sniipuserservice.InternalValidatePasswordRequest}
43067
+ */
43068
+ proto.sniipuserservice.InternalValidatePasswordRequest.deserializeBinaryFromReader = function(msg, reader) {
43069
+ while (reader.nextField()) {
43070
+ if (reader.isEndGroup()) {
43071
+ break;
43072
+ }
43073
+ var field = reader.getFieldNumber();
43074
+ switch (field) {
43075
+ case 1:
43076
+ var value = /** @type {string} */ (reader.readString());
43077
+ msg.setPassword(value);
43078
+ break;
43079
+ case 2:
43080
+ var value = /** @type {number} */ (reader.readInt64());
43081
+ msg.setUserid(value);
43082
+ break;
43083
+ default:
43084
+ reader.skipField();
43085
+ break;
43086
+ }
43087
+ }
43088
+ return msg;
43089
+ };
43090
+
43091
+
43092
+ /**
43093
+ * Serializes the message to binary data (in protobuf wire format).
43094
+ * @return {!Uint8Array}
43095
+ */
43096
+ proto.sniipuserservice.InternalValidatePasswordRequest.prototype.serializeBinary = function() {
43097
+ var writer = new jspb.BinaryWriter();
43098
+ proto.sniipuserservice.InternalValidatePasswordRequest.serializeBinaryToWriter(this, writer);
43099
+ return writer.getResultBuffer();
43100
+ };
43101
+
43102
+
43103
+ /**
43104
+ * Serializes the given message to binary data (in protobuf wire
43105
+ * format), writing to the given BinaryWriter.
43106
+ * @param {!proto.sniipuserservice.InternalValidatePasswordRequest} message
43107
+ * @param {!jspb.BinaryWriter} writer
43108
+ * @suppress {unusedLocalVariables} f is only used for nested messages
43109
+ */
43110
+ proto.sniipuserservice.InternalValidatePasswordRequest.serializeBinaryToWriter = function(message, writer) {
43111
+ var f = undefined;
43112
+ f = message.getPassword();
43113
+ if (f.length > 0) {
43114
+ writer.writeString(
43115
+ 1,
43116
+ f
43117
+ );
43118
+ }
43119
+ f = message.getUserid();
43120
+ if (f !== 0) {
43121
+ writer.writeInt64(
43122
+ 2,
43123
+ f
43124
+ );
43125
+ }
43126
+ };
43127
+
43128
+
43129
+ /**
43130
+ * optional string password = 1;
43131
+ * @return {string}
43132
+ */
43133
+ proto.sniipuserservice.InternalValidatePasswordRequest.prototype.getPassword = function() {
43134
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
43135
+ };
43136
+
43137
+
43138
+ /**
43139
+ * @param {string} value
43140
+ * @return {!proto.sniipuserservice.InternalValidatePasswordRequest} returns this
43141
+ */
43142
+ proto.sniipuserservice.InternalValidatePasswordRequest.prototype.setPassword = function(value) {
43143
+ return jspb.Message.setProto3StringField(this, 1, value);
43144
+ };
43145
+
43146
+
43147
+ /**
43148
+ * optional int64 userId = 2;
43149
+ * @return {number}
43150
+ */
43151
+ proto.sniipuserservice.InternalValidatePasswordRequest.prototype.getUserid = function() {
43152
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
43153
+ };
43154
+
43155
+
43156
+ /**
43157
+ * @param {number} value
43158
+ * @return {!proto.sniipuserservice.InternalValidatePasswordRequest} returns this
43159
+ */
43160
+ proto.sniipuserservice.InternalValidatePasswordRequest.prototype.setUserid = function(value) {
43161
+ return jspb.Message.setProto3IntField(this, 2, value);
43162
+ };
43163
+
43164
+
43165
+
43166
+
43167
+
42569
43168
  if (jspb.Message.GENERATE_TO_OBJECT) {
42570
43169
  /**
42571
43170
  * Creates an object representation of this proto.
@@ -42726,6 +43325,196 @@ proto.sniipuserservice.ValidatePinRequest.prototype.setShouldgetpin = function(v
42726
43325
 
42727
43326
 
42728
43327
 
43328
+ if (jspb.Message.GENERATE_TO_OBJECT) {
43329
+ /**
43330
+ * Creates an object representation of this proto.
43331
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
43332
+ * Optional fields that are not set will be set to undefined.
43333
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
43334
+ * For the list of reserved names please see:
43335
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
43336
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
43337
+ * JSPB instance for transitional soy proto support:
43338
+ * http://goto/soy-param-migration
43339
+ * @return {!Object}
43340
+ */
43341
+ proto.sniipuserservice.InternalValidatePinRequest.prototype.toObject = function(opt_includeInstance) {
43342
+ return proto.sniipuserservice.InternalValidatePinRequest.toObject(opt_includeInstance, this);
43343
+ };
43344
+
43345
+
43346
+ /**
43347
+ * Static version of the {@see toObject} method.
43348
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
43349
+ * the JSPB instance for transitional soy proto support:
43350
+ * http://goto/soy-param-migration
43351
+ * @param {!proto.sniipuserservice.InternalValidatePinRequest} msg The msg instance to transform.
43352
+ * @return {!Object}
43353
+ * @suppress {unusedLocalVariables} f is only used for nested messages
43354
+ */
43355
+ proto.sniipuserservice.InternalValidatePinRequest.toObject = function(includeInstance, msg) {
43356
+ var f, obj = {
43357
+ pin: jspb.Message.getFieldWithDefault(msg, 1, ""),
43358
+ shouldgetpin: jspb.Message.getBooleanFieldWithDefault(msg, 2, false),
43359
+ userid: jspb.Message.getFieldWithDefault(msg, 3, 0)
43360
+ };
43361
+
43362
+ if (includeInstance) {
43363
+ obj.$jspbMessageInstance = msg;
43364
+ }
43365
+ return obj;
43366
+ };
43367
+ }
43368
+
43369
+
43370
+ /**
43371
+ * Deserializes binary data (in protobuf wire format).
43372
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
43373
+ * @return {!proto.sniipuserservice.InternalValidatePinRequest}
43374
+ */
43375
+ proto.sniipuserservice.InternalValidatePinRequest.deserializeBinary = function(bytes) {
43376
+ var reader = new jspb.BinaryReader(bytes);
43377
+ var msg = new proto.sniipuserservice.InternalValidatePinRequest;
43378
+ return proto.sniipuserservice.InternalValidatePinRequest.deserializeBinaryFromReader(msg, reader);
43379
+ };
43380
+
43381
+
43382
+ /**
43383
+ * Deserializes binary data (in protobuf wire format) from the
43384
+ * given reader into the given message object.
43385
+ * @param {!proto.sniipuserservice.InternalValidatePinRequest} msg The message object to deserialize into.
43386
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
43387
+ * @return {!proto.sniipuserservice.InternalValidatePinRequest}
43388
+ */
43389
+ proto.sniipuserservice.InternalValidatePinRequest.deserializeBinaryFromReader = function(msg, reader) {
43390
+ while (reader.nextField()) {
43391
+ if (reader.isEndGroup()) {
43392
+ break;
43393
+ }
43394
+ var field = reader.getFieldNumber();
43395
+ switch (field) {
43396
+ case 1:
43397
+ var value = /** @type {string} */ (reader.readString());
43398
+ msg.setPin(value);
43399
+ break;
43400
+ case 2:
43401
+ var value = /** @type {boolean} */ (reader.readBool());
43402
+ msg.setShouldgetpin(value);
43403
+ break;
43404
+ case 3:
43405
+ var value = /** @type {number} */ (reader.readInt64());
43406
+ msg.setUserid(value);
43407
+ break;
43408
+ default:
43409
+ reader.skipField();
43410
+ break;
43411
+ }
43412
+ }
43413
+ return msg;
43414
+ };
43415
+
43416
+
43417
+ /**
43418
+ * Serializes the message to binary data (in protobuf wire format).
43419
+ * @return {!Uint8Array}
43420
+ */
43421
+ proto.sniipuserservice.InternalValidatePinRequest.prototype.serializeBinary = function() {
43422
+ var writer = new jspb.BinaryWriter();
43423
+ proto.sniipuserservice.InternalValidatePinRequest.serializeBinaryToWriter(this, writer);
43424
+ return writer.getResultBuffer();
43425
+ };
43426
+
43427
+
43428
+ /**
43429
+ * Serializes the given message to binary data (in protobuf wire
43430
+ * format), writing to the given BinaryWriter.
43431
+ * @param {!proto.sniipuserservice.InternalValidatePinRequest} message
43432
+ * @param {!jspb.BinaryWriter} writer
43433
+ * @suppress {unusedLocalVariables} f is only used for nested messages
43434
+ */
43435
+ proto.sniipuserservice.InternalValidatePinRequest.serializeBinaryToWriter = function(message, writer) {
43436
+ var f = undefined;
43437
+ f = message.getPin();
43438
+ if (f.length > 0) {
43439
+ writer.writeString(
43440
+ 1,
43441
+ f
43442
+ );
43443
+ }
43444
+ f = message.getShouldgetpin();
43445
+ if (f) {
43446
+ writer.writeBool(
43447
+ 2,
43448
+ f
43449
+ );
43450
+ }
43451
+ f = message.getUserid();
43452
+ if (f !== 0) {
43453
+ writer.writeInt64(
43454
+ 3,
43455
+ f
43456
+ );
43457
+ }
43458
+ };
43459
+
43460
+
43461
+ /**
43462
+ * optional string pin = 1;
43463
+ * @return {string}
43464
+ */
43465
+ proto.sniipuserservice.InternalValidatePinRequest.prototype.getPin = function() {
43466
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
43467
+ };
43468
+
43469
+
43470
+ /**
43471
+ * @param {string} value
43472
+ * @return {!proto.sniipuserservice.InternalValidatePinRequest} returns this
43473
+ */
43474
+ proto.sniipuserservice.InternalValidatePinRequest.prototype.setPin = function(value) {
43475
+ return jspb.Message.setProto3StringField(this, 1, value);
43476
+ };
43477
+
43478
+
43479
+ /**
43480
+ * optional bool shouldGetPin = 2;
43481
+ * @return {boolean}
43482
+ */
43483
+ proto.sniipuserservice.InternalValidatePinRequest.prototype.getShouldgetpin = function() {
43484
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false));
43485
+ };
43486
+
43487
+
43488
+ /**
43489
+ * @param {boolean} value
43490
+ * @return {!proto.sniipuserservice.InternalValidatePinRequest} returns this
43491
+ */
43492
+ proto.sniipuserservice.InternalValidatePinRequest.prototype.setShouldgetpin = function(value) {
43493
+ return jspb.Message.setProto3BooleanField(this, 2, value);
43494
+ };
43495
+
43496
+
43497
+ /**
43498
+ * optional int64 userId = 3;
43499
+ * @return {number}
43500
+ */
43501
+ proto.sniipuserservice.InternalValidatePinRequest.prototype.getUserid = function() {
43502
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
43503
+ };
43504
+
43505
+
43506
+ /**
43507
+ * @param {number} value
43508
+ * @return {!proto.sniipuserservice.InternalValidatePinRequest} returns this
43509
+ */
43510
+ proto.sniipuserservice.InternalValidatePinRequest.prototype.setUserid = function(value) {
43511
+ return jspb.Message.setProto3IntField(this, 3, value);
43512
+ };
43513
+
43514
+
43515
+
43516
+
43517
+
42729
43518
  if (jspb.Message.GENERATE_TO_OBJECT) {
42730
43519
  /**
42731
43520
  * Creates an object representation of this proto.
@@ -44568,4 +45357,17 @@ proto.sniipuserservice.KycUserStatus = {
44568
45357
  KYC_USER_UNVERIFIED: 2
44569
45358
  };
44570
45359
 
45360
+ /**
45361
+ * @enum {number}
45362
+ */
45363
+ proto.sniipuserservice.VerificationScope = {
45364
+ UNKNOWN: 0,
45365
+ CREATE_ACCOUNT: 1,
45366
+ RESET_PASSWORD: 2,
45367
+ UPDATE_PHONE: 3,
45368
+ VERIFY_EMAIL: 4,
45369
+ VERIFY_USER: 5,
45370
+ VERIFY_PAYMENT: 6
45371
+ };
45372
+
44571
45373
  goog.object.extend(exports, proto.sniipuserservice);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sniipwebmaster/user-service-client-grpcweb-ts",
3
- "version": "24.1.10991",
3
+ "version": "24.1.11014",
4
4
  "description": "user-service-client-grpcweb-ts",
5
5
  "author": "Sniip Development Team",
6
6
  "license": "MIT",