protobuf-platform 1.2.728 → 1.2.730

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.728",
3
+ "version": "1.2.730",
4
4
  "description": "Protobuf structures",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -705,6 +705,12 @@ message AttemptWithdrawalRequest {
705
705
  optional string user_agent = 41;
706
706
  // Card security code for the withdrawal attempt. Consumers must keep it transient.
707
707
  optional string cvv = 42;
708
+ // Player withdrawal 2FA correlation token. Absent on the first attempt.
709
+ optional string two_fa_temp_token = 43;
710
+ // Player withdrawal TOTP code. Absent until the player confirms the challenge.
711
+ optional string two_fa_code = 44;
712
+ // Authenticated session that must match the withdrawal challenge.
713
+ optional string user_session_id = 45;
708
714
  }
709
715
  message GetWithdrawalRequest {
710
716
  int32 id = 1;
@@ -27518,7 +27518,10 @@ proto.payment.AttemptWithdrawalRequest.toObject = function(includeInstance, msg)
27518
27518
  requestCurrency: jspb.Message.getFieldWithDefault(msg, 39, ""),
27519
27519
  antifraudSession: jspb.Message.getFieldWithDefault(msg, 40, ""),
27520
27520
  userAgent: jspb.Message.getFieldWithDefault(msg, 41, ""),
27521
- cvv: jspb.Message.getFieldWithDefault(msg, 42, "")
27521
+ cvv: jspb.Message.getFieldWithDefault(msg, 42, ""),
27522
+ twoFaTempToken: jspb.Message.getFieldWithDefault(msg, 43, ""),
27523
+ twoFaCode: jspb.Message.getFieldWithDefault(msg, 44, ""),
27524
+ userSessionId: jspb.Message.getFieldWithDefault(msg, 45, "")
27522
27525
  };
27523
27526
 
27524
27527
  if (includeInstance) {
@@ -27723,6 +27726,18 @@ proto.payment.AttemptWithdrawalRequest.deserializeBinaryFromReader = function(ms
27723
27726
  var value = /** @type {string} */ (reader.readString());
27724
27727
  msg.setCvv(value);
27725
27728
  break;
27729
+ case 43:
27730
+ var value = /** @type {string} */ (reader.readString());
27731
+ msg.setTwoFaTempToken(value);
27732
+ break;
27733
+ case 44:
27734
+ var value = /** @type {string} */ (reader.readString());
27735
+ msg.setTwoFaCode(value);
27736
+ break;
27737
+ case 45:
27738
+ var value = /** @type {string} */ (reader.readString());
27739
+ msg.setUserSessionId(value);
27740
+ break;
27726
27741
  default:
27727
27742
  reader.skipField();
27728
27743
  break;
@@ -28046,6 +28061,27 @@ proto.payment.AttemptWithdrawalRequest.serializeBinaryToWriter = function(messag
28046
28061
  f
28047
28062
  );
28048
28063
  }
28064
+ f = /** @type {string} */ (jspb.Message.getField(message, 43));
28065
+ if (f != null) {
28066
+ writer.writeString(
28067
+ 43,
28068
+ f
28069
+ );
28070
+ }
28071
+ f = /** @type {string} */ (jspb.Message.getField(message, 44));
28072
+ if (f != null) {
28073
+ writer.writeString(
28074
+ 44,
28075
+ f
28076
+ );
28077
+ }
28078
+ f = /** @type {string} */ (jspb.Message.getField(message, 45));
28079
+ if (f != null) {
28080
+ writer.writeString(
28081
+ 45,
28082
+ f
28083
+ );
28084
+ }
28049
28085
  };
28050
28086
 
28051
28087
 
@@ -29507,6 +29543,114 @@ proto.payment.AttemptWithdrawalRequest.prototype.hasCvv = function() {
29507
29543
  };
29508
29544
 
29509
29545
 
29546
+ /**
29547
+ * optional string two_fa_temp_token = 43;
29548
+ * @return {string}
29549
+ */
29550
+ proto.payment.AttemptWithdrawalRequest.prototype.getTwoFaTempToken = function() {
29551
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 43, ""));
29552
+ };
29553
+
29554
+
29555
+ /**
29556
+ * @param {string} value
29557
+ * @return {!proto.payment.AttemptWithdrawalRequest} returns this
29558
+ */
29559
+ proto.payment.AttemptWithdrawalRequest.prototype.setTwoFaTempToken = function(value) {
29560
+ return jspb.Message.setField(this, 43, value);
29561
+ };
29562
+
29563
+
29564
+ /**
29565
+ * Clears the field making it undefined.
29566
+ * @return {!proto.payment.AttemptWithdrawalRequest} returns this
29567
+ */
29568
+ proto.payment.AttemptWithdrawalRequest.prototype.clearTwoFaTempToken = function() {
29569
+ return jspb.Message.setField(this, 43, undefined);
29570
+ };
29571
+
29572
+
29573
+ /**
29574
+ * Returns whether this field is set.
29575
+ * @return {boolean}
29576
+ */
29577
+ proto.payment.AttemptWithdrawalRequest.prototype.hasTwoFaTempToken = function() {
29578
+ return jspb.Message.getField(this, 43) != null;
29579
+ };
29580
+
29581
+
29582
+ /**
29583
+ * optional string two_fa_code = 44;
29584
+ * @return {string}
29585
+ */
29586
+ proto.payment.AttemptWithdrawalRequest.prototype.getTwoFaCode = function() {
29587
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 44, ""));
29588
+ };
29589
+
29590
+
29591
+ /**
29592
+ * @param {string} value
29593
+ * @return {!proto.payment.AttemptWithdrawalRequest} returns this
29594
+ */
29595
+ proto.payment.AttemptWithdrawalRequest.prototype.setTwoFaCode = function(value) {
29596
+ return jspb.Message.setField(this, 44, value);
29597
+ };
29598
+
29599
+
29600
+ /**
29601
+ * Clears the field making it undefined.
29602
+ * @return {!proto.payment.AttemptWithdrawalRequest} returns this
29603
+ */
29604
+ proto.payment.AttemptWithdrawalRequest.prototype.clearTwoFaCode = function() {
29605
+ return jspb.Message.setField(this, 44, undefined);
29606
+ };
29607
+
29608
+
29609
+ /**
29610
+ * Returns whether this field is set.
29611
+ * @return {boolean}
29612
+ */
29613
+ proto.payment.AttemptWithdrawalRequest.prototype.hasTwoFaCode = function() {
29614
+ return jspb.Message.getField(this, 44) != null;
29615
+ };
29616
+
29617
+
29618
+ /**
29619
+ * optional string user_session_id = 45;
29620
+ * @return {string}
29621
+ */
29622
+ proto.payment.AttemptWithdrawalRequest.prototype.getUserSessionId = function() {
29623
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 45, ""));
29624
+ };
29625
+
29626
+
29627
+ /**
29628
+ * @param {string} value
29629
+ * @return {!proto.payment.AttemptWithdrawalRequest} returns this
29630
+ */
29631
+ proto.payment.AttemptWithdrawalRequest.prototype.setUserSessionId = function(value) {
29632
+ return jspb.Message.setField(this, 45, value);
29633
+ };
29634
+
29635
+
29636
+ /**
29637
+ * Clears the field making it undefined.
29638
+ * @return {!proto.payment.AttemptWithdrawalRequest} returns this
29639
+ */
29640
+ proto.payment.AttemptWithdrawalRequest.prototype.clearUserSessionId = function() {
29641
+ return jspb.Message.setField(this, 45, undefined);
29642
+ };
29643
+
29644
+
29645
+ /**
29646
+ * Returns whether this field is set.
29647
+ * @return {boolean}
29648
+ */
29649
+ proto.payment.AttemptWithdrawalRequest.prototype.hasUserSessionId = function() {
29650
+ return jspb.Message.getField(this, 45) != null;
29651
+ };
29652
+
29653
+
29510
29654
 
29511
29655
 
29512
29656
 
package/user/user.proto CHANGED
@@ -23,6 +23,9 @@ service User {
23
23
  rpc confirmUserTwoFa(ConfirmTwoFaRequest) returns (LoggedInResponse);
24
24
  rpc beginUserTwoFaSetup(BeginUserTwoFaSetupRequest) returns (BeginUserTwoFaSetupResponse);
25
25
  rpc confirmUserTwoFaAction(ConfirmUserTwoFaActionRequest) returns (ConfirmUserTwoFaActionResponse);
26
+ // Player withdrawal step-up. Does not create a session or a payment.
27
+ rpc beginWithdrawalTwoFaAuthorization(BeginWithdrawalTwoFaAuthorizationRequest) returns (BeginWithdrawalTwoFaAuthorizationResponse);
28
+ rpc verifyWithdrawalTwoFaAuthorization(VerifyWithdrawalTwoFaAuthorizationRequest) returns (VerifyWithdrawalTwoFaAuthorizationResponse);
26
29
  rpc getUserData(UserDataRequest) returns (UserDataResponse);
27
30
  rpc getUserBalance(UserDataRequest) returns (UserDataResponse);
28
31
  rpc updateUserBalance(UserBalanceRequest) returns (UserDataResponse);
@@ -558,6 +561,30 @@ message ConfirmUserTwoFaActionResponse {
558
561
  // Optional JSON metadata for future purpose-specific results.
559
562
  optional string metadata = 6;
560
563
  }
564
+ // Starts a withdrawal TOTP challenge. Never enables 2FA and never returns a secret.
565
+ message BeginWithdrawalTwoFaAuthorizationRequest {
566
+ int32 user_id = 1;
567
+ string user_session_id = 2;
568
+ string intent_hash = 3;
569
+ }
570
+ message BeginWithdrawalTwoFaAuthorizationResponse {
571
+ // challenge_required or setup_required.
572
+ string status = 1;
573
+ optional string temp_token = 2;
574
+ optional int32 expires_in_seconds = 3;
575
+ }
576
+ // Checks a withdrawal TOTP code without consuming the financial authorization.
577
+ message VerifyWithdrawalTwoFaAuthorizationRequest {
578
+ int32 user_id = 1;
579
+ string user_session_id = 2;
580
+ string intent_hash = 3;
581
+ string temp_token = 4;
582
+ string code = 5;
583
+ }
584
+ message VerifyWithdrawalTwoFaAuthorizationResponse {
585
+ // valid, invalid_otp, or expired.
586
+ string status = 1;
587
+ }
561
588
  message UserDataRequest {
562
589
  optional int32 id = 1;
563
590
  optional string requested_area = 2;
@@ -147,6 +147,28 @@ function deserialize_user_BeginUserTwoFaSetupResponse(buffer_arg) {
147
147
  return user_pb.BeginUserTwoFaSetupResponse.deserializeBinary(new Uint8Array(buffer_arg));
148
148
  }
149
149
 
150
+ function serialize_user_BeginWithdrawalTwoFaAuthorizationRequest(arg) {
151
+ if (!(arg instanceof user_pb.BeginWithdrawalTwoFaAuthorizationRequest)) {
152
+ throw new Error('Expected argument of type user.BeginWithdrawalTwoFaAuthorizationRequest');
153
+ }
154
+ return Buffer.from(arg.serializeBinary());
155
+ }
156
+
157
+ function deserialize_user_BeginWithdrawalTwoFaAuthorizationRequest(buffer_arg) {
158
+ return user_pb.BeginWithdrawalTwoFaAuthorizationRequest.deserializeBinary(new Uint8Array(buffer_arg));
159
+ }
160
+
161
+ function serialize_user_BeginWithdrawalTwoFaAuthorizationResponse(arg) {
162
+ if (!(arg instanceof user_pb.BeginWithdrawalTwoFaAuthorizationResponse)) {
163
+ throw new Error('Expected argument of type user.BeginWithdrawalTwoFaAuthorizationResponse');
164
+ }
165
+ return Buffer.from(arg.serializeBinary());
166
+ }
167
+
168
+ function deserialize_user_BeginWithdrawalTwoFaAuthorizationResponse(buffer_arg) {
169
+ return user_pb.BeginWithdrawalTwoFaAuthorizationResponse.deserializeBinary(new Uint8Array(buffer_arg));
170
+ }
171
+
150
172
  function serialize_user_CategoryItemsResponse(arg) {
151
173
  if (!(arg instanceof user_pb.CategoryItemsResponse)) {
152
174
  throw new Error('Expected argument of type user.CategoryItemsResponse');
@@ -2578,6 +2600,28 @@ function deserialize_user_VerifySmsResetPasswordCodeResponse(buffer_arg) {
2578
2600
  return user_pb.VerifySmsResetPasswordCodeResponse.deserializeBinary(new Uint8Array(buffer_arg));
2579
2601
  }
2580
2602
 
2603
+ function serialize_user_VerifyWithdrawalTwoFaAuthorizationRequest(arg) {
2604
+ if (!(arg instanceof user_pb.VerifyWithdrawalTwoFaAuthorizationRequest)) {
2605
+ throw new Error('Expected argument of type user.VerifyWithdrawalTwoFaAuthorizationRequest');
2606
+ }
2607
+ return Buffer.from(arg.serializeBinary());
2608
+ }
2609
+
2610
+ function deserialize_user_VerifyWithdrawalTwoFaAuthorizationRequest(buffer_arg) {
2611
+ return user_pb.VerifyWithdrawalTwoFaAuthorizationRequest.deserializeBinary(new Uint8Array(buffer_arg));
2612
+ }
2613
+
2614
+ function serialize_user_VerifyWithdrawalTwoFaAuthorizationResponse(arg) {
2615
+ if (!(arg instanceof user_pb.VerifyWithdrawalTwoFaAuthorizationResponse)) {
2616
+ throw new Error('Expected argument of type user.VerifyWithdrawalTwoFaAuthorizationResponse');
2617
+ }
2618
+ return Buffer.from(arg.serializeBinary());
2619
+ }
2620
+
2621
+ function deserialize_user_VerifyWithdrawalTwoFaAuthorizationResponse(buffer_arg) {
2622
+ return user_pb.VerifyWithdrawalTwoFaAuthorizationResponse.deserializeBinary(new Uint8Array(buffer_arg));
2623
+ }
2624
+
2581
2625
  function serialize_user_VkCommonIdLoginRequest(arg) {
2582
2626
  if (!(arg instanceof user_pb.VkCommonIdLoginRequest)) {
2583
2627
  throw new Error('Expected argument of type user.VkCommonIdLoginRequest');
@@ -2804,6 +2848,29 @@ inspectPlayerInvitation: {
2804
2848
  responseSerialize: serialize_user_ConfirmUserTwoFaActionResponse,
2805
2849
  responseDeserialize: deserialize_user_ConfirmUserTwoFaActionResponse,
2806
2850
  },
2851
+ // Player withdrawal step-up. Does not create a session or a payment.
2852
+ beginWithdrawalTwoFaAuthorization: {
2853
+ path: '/user.User/beginWithdrawalTwoFaAuthorization',
2854
+ requestStream: false,
2855
+ responseStream: false,
2856
+ requestType: user_pb.BeginWithdrawalTwoFaAuthorizationRequest,
2857
+ responseType: user_pb.BeginWithdrawalTwoFaAuthorizationResponse,
2858
+ requestSerialize: serialize_user_BeginWithdrawalTwoFaAuthorizationRequest,
2859
+ requestDeserialize: deserialize_user_BeginWithdrawalTwoFaAuthorizationRequest,
2860
+ responseSerialize: serialize_user_BeginWithdrawalTwoFaAuthorizationResponse,
2861
+ responseDeserialize: deserialize_user_BeginWithdrawalTwoFaAuthorizationResponse,
2862
+ },
2863
+ verifyWithdrawalTwoFaAuthorization: {
2864
+ path: '/user.User/verifyWithdrawalTwoFaAuthorization',
2865
+ requestStream: false,
2866
+ responseStream: false,
2867
+ requestType: user_pb.VerifyWithdrawalTwoFaAuthorizationRequest,
2868
+ responseType: user_pb.VerifyWithdrawalTwoFaAuthorizationResponse,
2869
+ requestSerialize: serialize_user_VerifyWithdrawalTwoFaAuthorizationRequest,
2870
+ requestDeserialize: deserialize_user_VerifyWithdrawalTwoFaAuthorizationRequest,
2871
+ responseSerialize: serialize_user_VerifyWithdrawalTwoFaAuthorizationResponse,
2872
+ responseDeserialize: deserialize_user_VerifyWithdrawalTwoFaAuthorizationResponse,
2873
+ },
2807
2874
  getUserData: {
2808
2875
  path: '/user.User/getUserData',
2809
2876
  requestStream: false,