@sniipwebmaster/user-service-client-grpcweb-ts 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.
|
@@ -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,
|
|
@@ -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;
|
|
@@ -5405,3 +5453,12 @@ export enum KycUserStatus {
|
|
|
5405
5453
|
KYC_USER_VERIFIED = 1,
|
|
5406
5454
|
KYC_USER_UNVERIFIED = 2,
|
|
5407
5455
|
}
|
|
5456
|
+
export enum VerificationScope {
|
|
5457
|
+
UNKNOWN = 0,
|
|
5458
|
+
CREATE_ACCOUNT = 1,
|
|
5459
|
+
RESET_PASSWORD = 2,
|
|
5460
|
+
UPDATE_PHONE = 3,
|
|
5461
|
+
VERIFY_EMAIL = 4,
|
|
5462
|
+
VERIFY_USER = 5,
|
|
5463
|
+
VERIFY_PAYMENT = 6,
|
|
5464
|
+
}
|
|
@@ -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);
|