protobuf-platform 1.2.553 → 1.2.556

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "protobuf-platform",
3
- "version": "1.2.553",
3
+ "version": "1.2.556",
4
4
  "description": "Protobuf structures",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -417,6 +417,8 @@ message AttemptDepositRequest {
417
417
  optional string request_currency = 46;
418
418
  optional string antifraud_session = 47;
419
419
  optional int32 bonus_id = 48;
420
+ optional int32 window_width = 49;
421
+ optional int32 window_height = 50;
420
422
  }
421
423
  message GetDepositRequest {
422
424
  int32 id = 1;
@@ -15947,7 +15947,9 @@ proto.payment.AttemptDepositRequest.toObject = function(includeInstance, msg) {
15947
15947
  cryptoWallet: jspb.Message.getFieldWithDefault(msg, 45, ""),
15948
15948
  requestCurrency: jspb.Message.getFieldWithDefault(msg, 46, ""),
15949
15949
  antifraudSession: jspb.Message.getFieldWithDefault(msg, 47, ""),
15950
- bonusId: jspb.Message.getFieldWithDefault(msg, 48, 0)
15950
+ bonusId: jspb.Message.getFieldWithDefault(msg, 48, 0),
15951
+ windowWidth: jspb.Message.getFieldWithDefault(msg, 49, 0),
15952
+ windowHeight: jspb.Message.getFieldWithDefault(msg, 50, 0)
15951
15953
  };
15952
15954
 
15953
15955
  if (includeInstance) {
@@ -16176,6 +16178,14 @@ proto.payment.AttemptDepositRequest.deserializeBinaryFromReader = function(msg,
16176
16178
  var value = /** @type {number} */ (reader.readInt32());
16177
16179
  msg.setBonusId(value);
16178
16180
  break;
16181
+ case 49:
16182
+ var value = /** @type {number} */ (reader.readInt32());
16183
+ msg.setWindowWidth(value);
16184
+ break;
16185
+ case 50:
16186
+ var value = /** @type {number} */ (reader.readInt32());
16187
+ msg.setWindowHeight(value);
16188
+ break;
16179
16189
  default:
16180
16190
  reader.skipField();
16181
16191
  break;
@@ -16541,6 +16551,20 @@ proto.payment.AttemptDepositRequest.serializeBinaryToWriter = function(message,
16541
16551
  f
16542
16552
  );
16543
16553
  }
16554
+ f = /** @type {number} */ (jspb.Message.getField(message, 49));
16555
+ if (f != null) {
16556
+ writer.writeInt32(
16557
+ 49,
16558
+ f
16559
+ );
16560
+ }
16561
+ f = /** @type {number} */ (jspb.Message.getField(message, 50));
16562
+ if (f != null) {
16563
+ writer.writeInt32(
16564
+ 50,
16565
+ f
16566
+ );
16567
+ }
16544
16568
  };
16545
16569
 
16546
16570
 
@@ -18218,6 +18242,78 @@ proto.payment.AttemptDepositRequest.prototype.hasBonusId = function() {
18218
18242
  };
18219
18243
 
18220
18244
 
18245
+ /**
18246
+ * optional int32 window_width = 49;
18247
+ * @return {number}
18248
+ */
18249
+ proto.payment.AttemptDepositRequest.prototype.getWindowWidth = function() {
18250
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 49, 0));
18251
+ };
18252
+
18253
+
18254
+ /**
18255
+ * @param {number} value
18256
+ * @return {!proto.payment.AttemptDepositRequest} returns this
18257
+ */
18258
+ proto.payment.AttemptDepositRequest.prototype.setWindowWidth = function(value) {
18259
+ return jspb.Message.setField(this, 49, value);
18260
+ };
18261
+
18262
+
18263
+ /**
18264
+ * Clears the field making it undefined.
18265
+ * @return {!proto.payment.AttemptDepositRequest} returns this
18266
+ */
18267
+ proto.payment.AttemptDepositRequest.prototype.clearWindowWidth = function() {
18268
+ return jspb.Message.setField(this, 49, undefined);
18269
+ };
18270
+
18271
+
18272
+ /**
18273
+ * Returns whether this field is set.
18274
+ * @return {boolean}
18275
+ */
18276
+ proto.payment.AttemptDepositRequest.prototype.hasWindowWidth = function() {
18277
+ return jspb.Message.getField(this, 49) != null;
18278
+ };
18279
+
18280
+
18281
+ /**
18282
+ * optional int32 window_height = 50;
18283
+ * @return {number}
18284
+ */
18285
+ proto.payment.AttemptDepositRequest.prototype.getWindowHeight = function() {
18286
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 50, 0));
18287
+ };
18288
+
18289
+
18290
+ /**
18291
+ * @param {number} value
18292
+ * @return {!proto.payment.AttemptDepositRequest} returns this
18293
+ */
18294
+ proto.payment.AttemptDepositRequest.prototype.setWindowHeight = function(value) {
18295
+ return jspb.Message.setField(this, 50, value);
18296
+ };
18297
+
18298
+
18299
+ /**
18300
+ * Clears the field making it undefined.
18301
+ * @return {!proto.payment.AttemptDepositRequest} returns this
18302
+ */
18303
+ proto.payment.AttemptDepositRequest.prototype.clearWindowHeight = function() {
18304
+ return jspb.Message.setField(this, 50, undefined);
18305
+ };
18306
+
18307
+
18308
+ /**
18309
+ * Returns whether this field is set.
18310
+ * @return {boolean}
18311
+ */
18312
+ proto.payment.AttemptDepositRequest.prototype.hasWindowHeight = function() {
18313
+ return jspb.Message.getField(this, 50) != null;
18314
+ };
18315
+
18316
+
18221
18317
 
18222
18318
 
18223
18319
 
package/user/user.proto CHANGED
@@ -141,6 +141,8 @@ service User {
141
141
  rpc getUserProfileDataVerification(GetUserProfileDataVerificationRequest) returns (GetUserProfileDataVerificationResponse);
142
142
  // Approves a single platform-owned verification capability; does not set global KYC confirmation.
143
143
  rpc approveVerification(ApproveVerificationRequest) returns (ApproveVerificationResponse);
144
+ // Provider-agnostic KYC capability-level verification read for FE/BO (not field-level profile data).
145
+ rpc getUserVerification(GetUserVerificationRequest) returns (GetUserVerificationResponse);
144
146
  //Dashboard
145
147
  rpc getDashboardInfo(DashboardRequest) returns (DashboardResponse);
146
148
  //Notes
@@ -1707,12 +1709,40 @@ message UserKycRequirementStatusResponse {
1707
1709
  enum VerificationCapability {
1708
1710
  VERIFICATION_CAPABILITY_UNSPECIFIED = 0;
1709
1711
  VERIFICATION_CAPABILITY_PROFILE_DATA = 1;
1712
+ VERIFICATION_CAPABILITY_IDENTITY = 2;
1713
+ VERIFICATION_CAPABILITY_PROOF_OF_ADDRESS = 3;
1714
+ VERIFICATION_CAPABILITY_PROVIDER_PHONE = 4;
1710
1715
  }
1711
1716
  enum VerificationCapabilityStatus {
1712
1717
  VERIFICATION_CAPABILITY_STATUS_UNSPECIFIED = 0;
1713
1718
  VERIFICATION_CAPABILITY_STATUS_APPROVED = 1;
1714
1719
  VERIFICATION_CAPABILITY_STATUS_PENDING = 2;
1715
1720
  VERIFICATION_CAPABILITY_STATUS_MISSING = 3;
1721
+ VERIFICATION_CAPABILITY_STATUS_REJECTED = 4;
1722
+ VERIFICATION_CAPABILITY_STATUS_REQUIRES_REVIEW = 5;
1723
+ VERIFICATION_CAPABILITY_STATUS_EXPIRED = 6;
1724
+ }
1725
+ enum UserVerificationOverallStatus {
1726
+ USER_VERIFICATION_OVERALL_STATUS_UNSPECIFIED = 0;
1727
+ USER_VERIFICATION_OVERALL_STATUS_NONE = 1;
1728
+ USER_VERIFICATION_OVERALL_STATUS_PENDING = 2;
1729
+ USER_VERIFICATION_OVERALL_STATUS_APPROVED = 3;
1730
+ USER_VERIFICATION_OVERALL_STATUS_REJECTED = 4;
1731
+ USER_VERIFICATION_OVERALL_STATUS_EXPIRED = 5;
1732
+ USER_VERIFICATION_OVERALL_STATUS_REQUIRES_REVIEW = 6;
1733
+ }
1734
+ message UserVerificationCapabilityState {
1735
+ VerificationCapability capability = 1;
1736
+ VerificationCapabilityStatus status = 2;
1737
+ bool required = 3;
1738
+ }
1739
+ message GetUserVerificationRequest {
1740
+ int32 user_id = 1;
1741
+ }
1742
+ message GetUserVerificationResponse {
1743
+ UserVerificationOverallStatus overall_status = 1;
1744
+ bool is_kyc_confirmed = 2;
1745
+ repeated UserVerificationCapabilityState capabilities = 3;
1716
1746
  }
1717
1747
  message GetUserProfileDataVerificationRequest {
1718
1748
  int32 user_id = 1;
@@ -532,6 +532,28 @@ function deserialize_user_GetUserSegmentIdsRequest(buffer_arg) {
532
532
  return user_pb.GetUserSegmentIdsRequest.deserializeBinary(new Uint8Array(buffer_arg));
533
533
  }
534
534
 
535
+ function serialize_user_GetUserVerificationRequest(arg) {
536
+ if (!(arg instanceof user_pb.GetUserVerificationRequest)) {
537
+ throw new Error('Expected argument of type user.GetUserVerificationRequest');
538
+ }
539
+ return Buffer.from(arg.serializeBinary());
540
+ }
541
+
542
+ function deserialize_user_GetUserVerificationRequest(buffer_arg) {
543
+ return user_pb.GetUserVerificationRequest.deserializeBinary(new Uint8Array(buffer_arg));
544
+ }
545
+
546
+ function serialize_user_GetUserVerificationResponse(arg) {
547
+ if (!(arg instanceof user_pb.GetUserVerificationResponse)) {
548
+ throw new Error('Expected argument of type user.GetUserVerificationResponse');
549
+ }
550
+ return Buffer.from(arg.serializeBinary());
551
+ }
552
+
553
+ function deserialize_user_GetUserVerificationResponse(buffer_arg) {
554
+ return user_pb.GetUserVerificationResponse.deserializeBinary(new Uint8Array(buffer_arg));
555
+ }
556
+
535
557
  function serialize_user_GetUserWalletBalancesRequest(arg) {
536
558
  if (!(arg instanceof user_pb.GetUserWalletBalancesRequest)) {
537
559
  throw new Error('Expected argument of type user.GetUserWalletBalancesRequest');
@@ -3249,6 +3271,18 @@ approveVerification: {
3249
3271
  responseSerialize: serialize_user_ApproveVerificationResponse,
3250
3272
  responseDeserialize: deserialize_user_ApproveVerificationResponse,
3251
3273
  },
3274
+ // Provider-agnostic KYC capability-level verification read for FE/BO (not field-level profile data).
3275
+ getUserVerification: {
3276
+ path: '/user.User/getUserVerification',
3277
+ requestStream: false,
3278
+ responseStream: false,
3279
+ requestType: user_pb.GetUserVerificationRequest,
3280
+ responseType: user_pb.GetUserVerificationResponse,
3281
+ requestSerialize: serialize_user_GetUserVerificationRequest,
3282
+ requestDeserialize: deserialize_user_GetUserVerificationRequest,
3283
+ responseSerialize: serialize_user_GetUserVerificationResponse,
3284
+ responseDeserialize: deserialize_user_GetUserVerificationResponse,
3285
+ },
3252
3286
  // Dashboard
3253
3287
  getDashboardInfo: {
3254
3288
  path: '/user.User/getDashboardInfo',
package/user/user_pb.js CHANGED
@@ -73,6 +73,8 @@ goog.exportSymbol('proto.user.GetUserLimitsRequest', null, global);
73
73
  goog.exportSymbol('proto.user.GetUserProfileDataVerificationRequest', null, global);
74
74
  goog.exportSymbol('proto.user.GetUserProfileDataVerificationResponse', null, global);
75
75
  goog.exportSymbol('proto.user.GetUserSegmentIdsRequest', null, global);
76
+ goog.exportSymbol('proto.user.GetUserVerificationRequest', null, global);
77
+ goog.exportSymbol('proto.user.GetUserVerificationResponse', null, global);
76
78
  goog.exportSymbol('proto.user.GetUserWalletBalancesRequest', null, global);
77
79
  goog.exportSymbol('proto.user.GoogleLoginRequest', null, global);
78
80
  goog.exportSymbol('proto.user.IngestUserKycDocumentToProviderRequest', null, global);
@@ -239,6 +241,8 @@ goog.exportSymbol('proto.user.UserSearchParams', null, global);
239
241
  goog.exportSymbol('proto.user.UserSegmentIdsResponse', null, global);
240
242
  goog.exportSymbol('proto.user.UserStatusResponse', null, global);
241
243
  goog.exportSymbol('proto.user.UserToggleGameStatusResponse', null, global);
244
+ goog.exportSymbol('proto.user.UserVerificationCapabilityState', null, global);
245
+ goog.exportSymbol('proto.user.UserVerificationOverallStatus', null, global);
242
246
  goog.exportSymbol('proto.user.UserWalletBalanceItem', null, global);
243
247
  goog.exportSymbol('proto.user.UserWalletBalancesResponse', null, global);
244
248
  goog.exportSymbol('proto.user.UsersResponse', null, global);
@@ -4197,6 +4201,69 @@ if (goog.DEBUG && !COMPILED) {
4197
4201
  */
4198
4202
  proto.user.UserKycRequirementStatusResponse.displayName = 'proto.user.UserKycRequirementStatusResponse';
4199
4203
  }
4204
+ /**
4205
+ * Generated by JsPbCodeGenerator.
4206
+ * @param {Array=} opt_data Optional initial data array, typically from a
4207
+ * server response, or constructed directly in Javascript. The array is used
4208
+ * in place and becomes part of the constructed object. It is not cloned.
4209
+ * If no data is provided, the constructed object will be empty, but still
4210
+ * valid.
4211
+ * @extends {jspb.Message}
4212
+ * @constructor
4213
+ */
4214
+ proto.user.UserVerificationCapabilityState = function(opt_data) {
4215
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
4216
+ };
4217
+ goog.inherits(proto.user.UserVerificationCapabilityState, jspb.Message);
4218
+ if (goog.DEBUG && !COMPILED) {
4219
+ /**
4220
+ * @public
4221
+ * @override
4222
+ */
4223
+ proto.user.UserVerificationCapabilityState.displayName = 'proto.user.UserVerificationCapabilityState';
4224
+ }
4225
+ /**
4226
+ * Generated by JsPbCodeGenerator.
4227
+ * @param {Array=} opt_data Optional initial data array, typically from a
4228
+ * server response, or constructed directly in Javascript. The array is used
4229
+ * in place and becomes part of the constructed object. It is not cloned.
4230
+ * If no data is provided, the constructed object will be empty, but still
4231
+ * valid.
4232
+ * @extends {jspb.Message}
4233
+ * @constructor
4234
+ */
4235
+ proto.user.GetUserVerificationRequest = function(opt_data) {
4236
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
4237
+ };
4238
+ goog.inherits(proto.user.GetUserVerificationRequest, jspb.Message);
4239
+ if (goog.DEBUG && !COMPILED) {
4240
+ /**
4241
+ * @public
4242
+ * @override
4243
+ */
4244
+ proto.user.GetUserVerificationRequest.displayName = 'proto.user.GetUserVerificationRequest';
4245
+ }
4246
+ /**
4247
+ * Generated by JsPbCodeGenerator.
4248
+ * @param {Array=} opt_data Optional initial data array, typically from a
4249
+ * server response, or constructed directly in Javascript. The array is used
4250
+ * in place and becomes part of the constructed object. It is not cloned.
4251
+ * If no data is provided, the constructed object will be empty, but still
4252
+ * valid.
4253
+ * @extends {jspb.Message}
4254
+ * @constructor
4255
+ */
4256
+ proto.user.GetUserVerificationResponse = function(opt_data) {
4257
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.user.GetUserVerificationResponse.repeatedFields_, null);
4258
+ };
4259
+ goog.inherits(proto.user.GetUserVerificationResponse, jspb.Message);
4260
+ if (goog.DEBUG && !COMPILED) {
4261
+ /**
4262
+ * @public
4263
+ * @override
4264
+ */
4265
+ proto.user.GetUserVerificationResponse.displayName = 'proto.user.GetUserVerificationResponse';
4266
+ }
4200
4267
  /**
4201
4268
  * Generated by JsPbCodeGenerator.
4202
4269
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -72244,6 +72311,546 @@ proto.user.UserKycRequirementStatusResponse.prototype.hasPresetId = function() {
72244
72311
 
72245
72312
 
72246
72313
 
72314
+ if (jspb.Message.GENERATE_TO_OBJECT) {
72315
+ /**
72316
+ * Creates an object representation of this proto.
72317
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
72318
+ * Optional fields that are not set will be set to undefined.
72319
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
72320
+ * For the list of reserved names please see:
72321
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
72322
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
72323
+ * JSPB instance for transitional soy proto support:
72324
+ * http://goto/soy-param-migration
72325
+ * @return {!Object}
72326
+ */
72327
+ proto.user.UserVerificationCapabilityState.prototype.toObject = function(opt_includeInstance) {
72328
+ return proto.user.UserVerificationCapabilityState.toObject(opt_includeInstance, this);
72329
+ };
72330
+
72331
+
72332
+ /**
72333
+ * Static version of the {@see toObject} method.
72334
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
72335
+ * the JSPB instance for transitional soy proto support:
72336
+ * http://goto/soy-param-migration
72337
+ * @param {!proto.user.UserVerificationCapabilityState} msg The msg instance to transform.
72338
+ * @return {!Object}
72339
+ * @suppress {unusedLocalVariables} f is only used for nested messages
72340
+ */
72341
+ proto.user.UserVerificationCapabilityState.toObject = function(includeInstance, msg) {
72342
+ var f, obj = {
72343
+ capability: jspb.Message.getFieldWithDefault(msg, 1, 0),
72344
+ status: jspb.Message.getFieldWithDefault(msg, 2, 0),
72345
+ required: jspb.Message.getBooleanFieldWithDefault(msg, 3, false)
72346
+ };
72347
+
72348
+ if (includeInstance) {
72349
+ obj.$jspbMessageInstance = msg;
72350
+ }
72351
+ return obj;
72352
+ };
72353
+ }
72354
+
72355
+
72356
+ /**
72357
+ * Deserializes binary data (in protobuf wire format).
72358
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
72359
+ * @return {!proto.user.UserVerificationCapabilityState}
72360
+ */
72361
+ proto.user.UserVerificationCapabilityState.deserializeBinary = function(bytes) {
72362
+ var reader = new jspb.BinaryReader(bytes);
72363
+ var msg = new proto.user.UserVerificationCapabilityState;
72364
+ return proto.user.UserVerificationCapabilityState.deserializeBinaryFromReader(msg, reader);
72365
+ };
72366
+
72367
+
72368
+ /**
72369
+ * Deserializes binary data (in protobuf wire format) from the
72370
+ * given reader into the given message object.
72371
+ * @param {!proto.user.UserVerificationCapabilityState} msg The message object to deserialize into.
72372
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
72373
+ * @return {!proto.user.UserVerificationCapabilityState}
72374
+ */
72375
+ proto.user.UserVerificationCapabilityState.deserializeBinaryFromReader = function(msg, reader) {
72376
+ while (reader.nextField()) {
72377
+ if (reader.isEndGroup()) {
72378
+ break;
72379
+ }
72380
+ var field = reader.getFieldNumber();
72381
+ switch (field) {
72382
+ case 1:
72383
+ var value = /** @type {!proto.user.VerificationCapability} */ (reader.readEnum());
72384
+ msg.setCapability(value);
72385
+ break;
72386
+ case 2:
72387
+ var value = /** @type {!proto.user.VerificationCapabilityStatus} */ (reader.readEnum());
72388
+ msg.setStatus(value);
72389
+ break;
72390
+ case 3:
72391
+ var value = /** @type {boolean} */ (reader.readBool());
72392
+ msg.setRequired(value);
72393
+ break;
72394
+ default:
72395
+ reader.skipField();
72396
+ break;
72397
+ }
72398
+ }
72399
+ return msg;
72400
+ };
72401
+
72402
+
72403
+ /**
72404
+ * Serializes the message to binary data (in protobuf wire format).
72405
+ * @return {!Uint8Array}
72406
+ */
72407
+ proto.user.UserVerificationCapabilityState.prototype.serializeBinary = function() {
72408
+ var writer = new jspb.BinaryWriter();
72409
+ proto.user.UserVerificationCapabilityState.serializeBinaryToWriter(this, writer);
72410
+ return writer.getResultBuffer();
72411
+ };
72412
+
72413
+
72414
+ /**
72415
+ * Serializes the given message to binary data (in protobuf wire
72416
+ * format), writing to the given BinaryWriter.
72417
+ * @param {!proto.user.UserVerificationCapabilityState} message
72418
+ * @param {!jspb.BinaryWriter} writer
72419
+ * @suppress {unusedLocalVariables} f is only used for nested messages
72420
+ */
72421
+ proto.user.UserVerificationCapabilityState.serializeBinaryToWriter = function(message, writer) {
72422
+ var f = undefined;
72423
+ f = message.getCapability();
72424
+ if (f !== 0.0) {
72425
+ writer.writeEnum(
72426
+ 1,
72427
+ f
72428
+ );
72429
+ }
72430
+ f = message.getStatus();
72431
+ if (f !== 0.0) {
72432
+ writer.writeEnum(
72433
+ 2,
72434
+ f
72435
+ );
72436
+ }
72437
+ f = message.getRequired();
72438
+ if (f) {
72439
+ writer.writeBool(
72440
+ 3,
72441
+ f
72442
+ );
72443
+ }
72444
+ };
72445
+
72446
+
72447
+ /**
72448
+ * optional VerificationCapability capability = 1;
72449
+ * @return {!proto.user.VerificationCapability}
72450
+ */
72451
+ proto.user.UserVerificationCapabilityState.prototype.getCapability = function() {
72452
+ return /** @type {!proto.user.VerificationCapability} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
72453
+ };
72454
+
72455
+
72456
+ /**
72457
+ * @param {!proto.user.VerificationCapability} value
72458
+ * @return {!proto.user.UserVerificationCapabilityState} returns this
72459
+ */
72460
+ proto.user.UserVerificationCapabilityState.prototype.setCapability = function(value) {
72461
+ return jspb.Message.setProto3EnumField(this, 1, value);
72462
+ };
72463
+
72464
+
72465
+ /**
72466
+ * optional VerificationCapabilityStatus status = 2;
72467
+ * @return {!proto.user.VerificationCapabilityStatus}
72468
+ */
72469
+ proto.user.UserVerificationCapabilityState.prototype.getStatus = function() {
72470
+ return /** @type {!proto.user.VerificationCapabilityStatus} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
72471
+ };
72472
+
72473
+
72474
+ /**
72475
+ * @param {!proto.user.VerificationCapabilityStatus} value
72476
+ * @return {!proto.user.UserVerificationCapabilityState} returns this
72477
+ */
72478
+ proto.user.UserVerificationCapabilityState.prototype.setStatus = function(value) {
72479
+ return jspb.Message.setProto3EnumField(this, 2, value);
72480
+ };
72481
+
72482
+
72483
+ /**
72484
+ * optional bool required = 3;
72485
+ * @return {boolean}
72486
+ */
72487
+ proto.user.UserVerificationCapabilityState.prototype.getRequired = function() {
72488
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 3, false));
72489
+ };
72490
+
72491
+
72492
+ /**
72493
+ * @param {boolean} value
72494
+ * @return {!proto.user.UserVerificationCapabilityState} returns this
72495
+ */
72496
+ proto.user.UserVerificationCapabilityState.prototype.setRequired = function(value) {
72497
+ return jspb.Message.setProto3BooleanField(this, 3, value);
72498
+ };
72499
+
72500
+
72501
+
72502
+
72503
+
72504
+ if (jspb.Message.GENERATE_TO_OBJECT) {
72505
+ /**
72506
+ * Creates an object representation of this proto.
72507
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
72508
+ * Optional fields that are not set will be set to undefined.
72509
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
72510
+ * For the list of reserved names please see:
72511
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
72512
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
72513
+ * JSPB instance for transitional soy proto support:
72514
+ * http://goto/soy-param-migration
72515
+ * @return {!Object}
72516
+ */
72517
+ proto.user.GetUserVerificationRequest.prototype.toObject = function(opt_includeInstance) {
72518
+ return proto.user.GetUserVerificationRequest.toObject(opt_includeInstance, this);
72519
+ };
72520
+
72521
+
72522
+ /**
72523
+ * Static version of the {@see toObject} method.
72524
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
72525
+ * the JSPB instance for transitional soy proto support:
72526
+ * http://goto/soy-param-migration
72527
+ * @param {!proto.user.GetUserVerificationRequest} msg The msg instance to transform.
72528
+ * @return {!Object}
72529
+ * @suppress {unusedLocalVariables} f is only used for nested messages
72530
+ */
72531
+ proto.user.GetUserVerificationRequest.toObject = function(includeInstance, msg) {
72532
+ var f, obj = {
72533
+ userId: jspb.Message.getFieldWithDefault(msg, 1, 0)
72534
+ };
72535
+
72536
+ if (includeInstance) {
72537
+ obj.$jspbMessageInstance = msg;
72538
+ }
72539
+ return obj;
72540
+ };
72541
+ }
72542
+
72543
+
72544
+ /**
72545
+ * Deserializes binary data (in protobuf wire format).
72546
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
72547
+ * @return {!proto.user.GetUserVerificationRequest}
72548
+ */
72549
+ proto.user.GetUserVerificationRequest.deserializeBinary = function(bytes) {
72550
+ var reader = new jspb.BinaryReader(bytes);
72551
+ var msg = new proto.user.GetUserVerificationRequest;
72552
+ return proto.user.GetUserVerificationRequest.deserializeBinaryFromReader(msg, reader);
72553
+ };
72554
+
72555
+
72556
+ /**
72557
+ * Deserializes binary data (in protobuf wire format) from the
72558
+ * given reader into the given message object.
72559
+ * @param {!proto.user.GetUserVerificationRequest} msg The message object to deserialize into.
72560
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
72561
+ * @return {!proto.user.GetUserVerificationRequest}
72562
+ */
72563
+ proto.user.GetUserVerificationRequest.deserializeBinaryFromReader = function(msg, reader) {
72564
+ while (reader.nextField()) {
72565
+ if (reader.isEndGroup()) {
72566
+ break;
72567
+ }
72568
+ var field = reader.getFieldNumber();
72569
+ switch (field) {
72570
+ case 1:
72571
+ var value = /** @type {number} */ (reader.readInt32());
72572
+ msg.setUserId(value);
72573
+ break;
72574
+ default:
72575
+ reader.skipField();
72576
+ break;
72577
+ }
72578
+ }
72579
+ return msg;
72580
+ };
72581
+
72582
+
72583
+ /**
72584
+ * Serializes the message to binary data (in protobuf wire format).
72585
+ * @return {!Uint8Array}
72586
+ */
72587
+ proto.user.GetUserVerificationRequest.prototype.serializeBinary = function() {
72588
+ var writer = new jspb.BinaryWriter();
72589
+ proto.user.GetUserVerificationRequest.serializeBinaryToWriter(this, writer);
72590
+ return writer.getResultBuffer();
72591
+ };
72592
+
72593
+
72594
+ /**
72595
+ * Serializes the given message to binary data (in protobuf wire
72596
+ * format), writing to the given BinaryWriter.
72597
+ * @param {!proto.user.GetUserVerificationRequest} message
72598
+ * @param {!jspb.BinaryWriter} writer
72599
+ * @suppress {unusedLocalVariables} f is only used for nested messages
72600
+ */
72601
+ proto.user.GetUserVerificationRequest.serializeBinaryToWriter = function(message, writer) {
72602
+ var f = undefined;
72603
+ f = message.getUserId();
72604
+ if (f !== 0) {
72605
+ writer.writeInt32(
72606
+ 1,
72607
+ f
72608
+ );
72609
+ }
72610
+ };
72611
+
72612
+
72613
+ /**
72614
+ * optional int32 user_id = 1;
72615
+ * @return {number}
72616
+ */
72617
+ proto.user.GetUserVerificationRequest.prototype.getUserId = function() {
72618
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
72619
+ };
72620
+
72621
+
72622
+ /**
72623
+ * @param {number} value
72624
+ * @return {!proto.user.GetUserVerificationRequest} returns this
72625
+ */
72626
+ proto.user.GetUserVerificationRequest.prototype.setUserId = function(value) {
72627
+ return jspb.Message.setProto3IntField(this, 1, value);
72628
+ };
72629
+
72630
+
72631
+
72632
+ /**
72633
+ * List of repeated fields within this message type.
72634
+ * @private {!Array<number>}
72635
+ * @const
72636
+ */
72637
+ proto.user.GetUserVerificationResponse.repeatedFields_ = [3];
72638
+
72639
+
72640
+
72641
+ if (jspb.Message.GENERATE_TO_OBJECT) {
72642
+ /**
72643
+ * Creates an object representation of this proto.
72644
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
72645
+ * Optional fields that are not set will be set to undefined.
72646
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
72647
+ * For the list of reserved names please see:
72648
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
72649
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
72650
+ * JSPB instance for transitional soy proto support:
72651
+ * http://goto/soy-param-migration
72652
+ * @return {!Object}
72653
+ */
72654
+ proto.user.GetUserVerificationResponse.prototype.toObject = function(opt_includeInstance) {
72655
+ return proto.user.GetUserVerificationResponse.toObject(opt_includeInstance, this);
72656
+ };
72657
+
72658
+
72659
+ /**
72660
+ * Static version of the {@see toObject} method.
72661
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
72662
+ * the JSPB instance for transitional soy proto support:
72663
+ * http://goto/soy-param-migration
72664
+ * @param {!proto.user.GetUserVerificationResponse} msg The msg instance to transform.
72665
+ * @return {!Object}
72666
+ * @suppress {unusedLocalVariables} f is only used for nested messages
72667
+ */
72668
+ proto.user.GetUserVerificationResponse.toObject = function(includeInstance, msg) {
72669
+ var f, obj = {
72670
+ overallStatus: jspb.Message.getFieldWithDefault(msg, 1, 0),
72671
+ isKycConfirmed: jspb.Message.getBooleanFieldWithDefault(msg, 2, false),
72672
+ capabilitiesList: jspb.Message.toObjectList(msg.getCapabilitiesList(),
72673
+ proto.user.UserVerificationCapabilityState.toObject, includeInstance)
72674
+ };
72675
+
72676
+ if (includeInstance) {
72677
+ obj.$jspbMessageInstance = msg;
72678
+ }
72679
+ return obj;
72680
+ };
72681
+ }
72682
+
72683
+
72684
+ /**
72685
+ * Deserializes binary data (in protobuf wire format).
72686
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
72687
+ * @return {!proto.user.GetUserVerificationResponse}
72688
+ */
72689
+ proto.user.GetUserVerificationResponse.deserializeBinary = function(bytes) {
72690
+ var reader = new jspb.BinaryReader(bytes);
72691
+ var msg = new proto.user.GetUserVerificationResponse;
72692
+ return proto.user.GetUserVerificationResponse.deserializeBinaryFromReader(msg, reader);
72693
+ };
72694
+
72695
+
72696
+ /**
72697
+ * Deserializes binary data (in protobuf wire format) from the
72698
+ * given reader into the given message object.
72699
+ * @param {!proto.user.GetUserVerificationResponse} msg The message object to deserialize into.
72700
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
72701
+ * @return {!proto.user.GetUserVerificationResponse}
72702
+ */
72703
+ proto.user.GetUserVerificationResponse.deserializeBinaryFromReader = function(msg, reader) {
72704
+ while (reader.nextField()) {
72705
+ if (reader.isEndGroup()) {
72706
+ break;
72707
+ }
72708
+ var field = reader.getFieldNumber();
72709
+ switch (field) {
72710
+ case 1:
72711
+ var value = /** @type {!proto.user.UserVerificationOverallStatus} */ (reader.readEnum());
72712
+ msg.setOverallStatus(value);
72713
+ break;
72714
+ case 2:
72715
+ var value = /** @type {boolean} */ (reader.readBool());
72716
+ msg.setIsKycConfirmed(value);
72717
+ break;
72718
+ case 3:
72719
+ var value = new proto.user.UserVerificationCapabilityState;
72720
+ reader.readMessage(value,proto.user.UserVerificationCapabilityState.deserializeBinaryFromReader);
72721
+ msg.addCapabilities(value);
72722
+ break;
72723
+ default:
72724
+ reader.skipField();
72725
+ break;
72726
+ }
72727
+ }
72728
+ return msg;
72729
+ };
72730
+
72731
+
72732
+ /**
72733
+ * Serializes the message to binary data (in protobuf wire format).
72734
+ * @return {!Uint8Array}
72735
+ */
72736
+ proto.user.GetUserVerificationResponse.prototype.serializeBinary = function() {
72737
+ var writer = new jspb.BinaryWriter();
72738
+ proto.user.GetUserVerificationResponse.serializeBinaryToWriter(this, writer);
72739
+ return writer.getResultBuffer();
72740
+ };
72741
+
72742
+
72743
+ /**
72744
+ * Serializes the given message to binary data (in protobuf wire
72745
+ * format), writing to the given BinaryWriter.
72746
+ * @param {!proto.user.GetUserVerificationResponse} message
72747
+ * @param {!jspb.BinaryWriter} writer
72748
+ * @suppress {unusedLocalVariables} f is only used for nested messages
72749
+ */
72750
+ proto.user.GetUserVerificationResponse.serializeBinaryToWriter = function(message, writer) {
72751
+ var f = undefined;
72752
+ f = message.getOverallStatus();
72753
+ if (f !== 0.0) {
72754
+ writer.writeEnum(
72755
+ 1,
72756
+ f
72757
+ );
72758
+ }
72759
+ f = message.getIsKycConfirmed();
72760
+ if (f) {
72761
+ writer.writeBool(
72762
+ 2,
72763
+ f
72764
+ );
72765
+ }
72766
+ f = message.getCapabilitiesList();
72767
+ if (f.length > 0) {
72768
+ writer.writeRepeatedMessage(
72769
+ 3,
72770
+ f,
72771
+ proto.user.UserVerificationCapabilityState.serializeBinaryToWriter
72772
+ );
72773
+ }
72774
+ };
72775
+
72776
+
72777
+ /**
72778
+ * optional UserVerificationOverallStatus overall_status = 1;
72779
+ * @return {!proto.user.UserVerificationOverallStatus}
72780
+ */
72781
+ proto.user.GetUserVerificationResponse.prototype.getOverallStatus = function() {
72782
+ return /** @type {!proto.user.UserVerificationOverallStatus} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
72783
+ };
72784
+
72785
+
72786
+ /**
72787
+ * @param {!proto.user.UserVerificationOverallStatus} value
72788
+ * @return {!proto.user.GetUserVerificationResponse} returns this
72789
+ */
72790
+ proto.user.GetUserVerificationResponse.prototype.setOverallStatus = function(value) {
72791
+ return jspb.Message.setProto3EnumField(this, 1, value);
72792
+ };
72793
+
72794
+
72795
+ /**
72796
+ * optional bool is_kyc_confirmed = 2;
72797
+ * @return {boolean}
72798
+ */
72799
+ proto.user.GetUserVerificationResponse.prototype.getIsKycConfirmed = function() {
72800
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false));
72801
+ };
72802
+
72803
+
72804
+ /**
72805
+ * @param {boolean} value
72806
+ * @return {!proto.user.GetUserVerificationResponse} returns this
72807
+ */
72808
+ proto.user.GetUserVerificationResponse.prototype.setIsKycConfirmed = function(value) {
72809
+ return jspb.Message.setProto3BooleanField(this, 2, value);
72810
+ };
72811
+
72812
+
72813
+ /**
72814
+ * repeated UserVerificationCapabilityState capabilities = 3;
72815
+ * @return {!Array<!proto.user.UserVerificationCapabilityState>}
72816
+ */
72817
+ proto.user.GetUserVerificationResponse.prototype.getCapabilitiesList = function() {
72818
+ return /** @type{!Array<!proto.user.UserVerificationCapabilityState>} */ (
72819
+ jspb.Message.getRepeatedWrapperField(this, proto.user.UserVerificationCapabilityState, 3));
72820
+ };
72821
+
72822
+
72823
+ /**
72824
+ * @param {!Array<!proto.user.UserVerificationCapabilityState>} value
72825
+ * @return {!proto.user.GetUserVerificationResponse} returns this
72826
+ */
72827
+ proto.user.GetUserVerificationResponse.prototype.setCapabilitiesList = function(value) {
72828
+ return jspb.Message.setRepeatedWrapperField(this, 3, value);
72829
+ };
72830
+
72831
+
72832
+ /**
72833
+ * @param {!proto.user.UserVerificationCapabilityState=} opt_value
72834
+ * @param {number=} opt_index
72835
+ * @return {!proto.user.UserVerificationCapabilityState}
72836
+ */
72837
+ proto.user.GetUserVerificationResponse.prototype.addCapabilities = function(opt_value, opt_index) {
72838
+ return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.user.UserVerificationCapabilityState, opt_index);
72839
+ };
72840
+
72841
+
72842
+ /**
72843
+ * Clears the list making it empty but non-null.
72844
+ * @return {!proto.user.GetUserVerificationResponse} returns this
72845
+ */
72846
+ proto.user.GetUserVerificationResponse.prototype.clearCapabilitiesList = function() {
72847
+ return this.setCapabilitiesList([]);
72848
+ };
72849
+
72850
+
72851
+
72852
+
72853
+
72247
72854
  if (jspb.Message.GENERATE_TO_OBJECT) {
72248
72855
  /**
72249
72856
  * Creates an object representation of this proto.
@@ -79945,7 +80552,10 @@ proto.user.UserGameIdsFilterResponse.prototype.clearGameIdsList = function() {
79945
80552
  */
79946
80553
  proto.user.VerificationCapability = {
79947
80554
  VERIFICATION_CAPABILITY_UNSPECIFIED: 0,
79948
- VERIFICATION_CAPABILITY_PROFILE_DATA: 1
80555
+ VERIFICATION_CAPABILITY_PROFILE_DATA: 1,
80556
+ VERIFICATION_CAPABILITY_IDENTITY: 2,
80557
+ VERIFICATION_CAPABILITY_PROOF_OF_ADDRESS: 3,
80558
+ VERIFICATION_CAPABILITY_PROVIDER_PHONE: 4
79949
80559
  };
79950
80560
 
79951
80561
  /**
@@ -79955,7 +80565,23 @@ proto.user.VerificationCapabilityStatus = {
79955
80565
  VERIFICATION_CAPABILITY_STATUS_UNSPECIFIED: 0,
79956
80566
  VERIFICATION_CAPABILITY_STATUS_APPROVED: 1,
79957
80567
  VERIFICATION_CAPABILITY_STATUS_PENDING: 2,
79958
- VERIFICATION_CAPABILITY_STATUS_MISSING: 3
80568
+ VERIFICATION_CAPABILITY_STATUS_MISSING: 3,
80569
+ VERIFICATION_CAPABILITY_STATUS_REJECTED: 4,
80570
+ VERIFICATION_CAPABILITY_STATUS_REQUIRES_REVIEW: 5,
80571
+ VERIFICATION_CAPABILITY_STATUS_EXPIRED: 6
80572
+ };
80573
+
80574
+ /**
80575
+ * @enum {number}
80576
+ */
80577
+ proto.user.UserVerificationOverallStatus = {
80578
+ USER_VERIFICATION_OVERALL_STATUS_UNSPECIFIED: 0,
80579
+ USER_VERIFICATION_OVERALL_STATUS_NONE: 1,
80580
+ USER_VERIFICATION_OVERALL_STATUS_PENDING: 2,
80581
+ USER_VERIFICATION_OVERALL_STATUS_APPROVED: 3,
80582
+ USER_VERIFICATION_OVERALL_STATUS_REJECTED: 4,
80583
+ USER_VERIFICATION_OVERALL_STATUS_EXPIRED: 5,
80584
+ USER_VERIFICATION_OVERALL_STATUS_REQUIRES_REVIEW: 6
79959
80585
  };
79960
80586
 
79961
80587
  goog.object.extend(exports, proto.user);