protobuf-platform 1.2.729 → 1.2.731

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/bonus/bonus.proto CHANGED
@@ -40,6 +40,8 @@ service Bonus {
40
40
  rpc getUserBonusesHistory(PaginationRequest) returns (UserBonusItemsResponse);
41
41
  rpc getUserBonusHistory(GetUserBonusHistoryRequest) returns (UserBonusHistoryResponse);
42
42
  rpc getDepositEligibleUserBonuses(GetDepositEligibleUserBonusesRequest) returns (DepositEligibleUserBonusesResponse);
43
+ // Brand-local primary SQL status only, independent of expiry and wagering progress.
44
+ rpc checkUserWageringStatus(CheckUserWageringStatusRequest) returns (CheckUserWageringStatusResponse);
43
45
  rpc getActiveWageringUserBonuses(GetActiveWageringUserBonusesRequest) returns (ActiveWageringUserBonusesResponse);
44
46
  rpc getCommonUserBonusItems(GetCommonUserBonusItemsRequest) returns (GetCommonUserBonusItemsResponse);
45
47
  // Validates one selected wagering user bonus for a game wager list and balance type; returns authoritative state for game-service Redis snapshot.
@@ -619,6 +621,14 @@ message DepositEligibleUserBonusItem {
619
621
  optional string portrait_image = 18;
620
622
  optional string portrait_image_cdn = 19;
621
623
  }
624
+ message CheckUserWageringStatusRequest {
625
+ int32 user_id = 1;
626
+ }
627
+ message CheckUserWageringStatusResponse {
628
+ // Absence means the lookup cannot authorize admission.
629
+ optional bool has_wagering_bonus = 1;
630
+ }
631
+
622
632
  message GetActiveWageringUserBonusesRequest {
623
633
  int32 user_id = 1;
624
634
  int32 wager_games_list_id = 2;
@@ -181,6 +181,28 @@ function deserialize_bonus_BonusTypesResponse(buffer_arg) {
181
181
  return bonus_bonus_pb.BonusTypesResponse.deserializeBinary(new Uint8Array(buffer_arg));
182
182
  }
183
183
 
184
+ function serialize_bonus_CheckUserWageringStatusRequest(arg) {
185
+ if (!(arg instanceof bonus_bonus_pb.CheckUserWageringStatusRequest)) {
186
+ throw new Error('Expected argument of type bonus.CheckUserWageringStatusRequest');
187
+ }
188
+ return Buffer.from(arg.serializeBinary());
189
+ }
190
+
191
+ function deserialize_bonus_CheckUserWageringStatusRequest(buffer_arg) {
192
+ return bonus_bonus_pb.CheckUserWageringStatusRequest.deserializeBinary(new Uint8Array(buffer_arg));
193
+ }
194
+
195
+ function serialize_bonus_CheckUserWageringStatusResponse(arg) {
196
+ if (!(arg instanceof bonus_bonus_pb.CheckUserWageringStatusResponse)) {
197
+ throw new Error('Expected argument of type bonus.CheckUserWageringStatusResponse');
198
+ }
199
+ return Buffer.from(arg.serializeBinary());
200
+ }
201
+
202
+ function deserialize_bonus_CheckUserWageringStatusResponse(buffer_arg) {
203
+ return bonus_bonus_pb.CheckUserWageringStatusResponse.deserializeBinary(new Uint8Array(buffer_arg));
204
+ }
205
+
184
206
  function serialize_bonus_DashboardRequest(arg) {
185
207
  if (!(arg instanceof bonus_bonus_pb.DashboardRequest)) {
186
208
  throw new Error('Expected argument of type bonus.DashboardRequest');
@@ -924,6 +946,18 @@ grantDynamicUserBonus: {
924
946
  responseSerialize: serialize_bonus_DepositEligibleUserBonusesResponse,
925
947
  responseDeserialize: deserialize_bonus_DepositEligibleUserBonusesResponse,
926
948
  },
949
+ // Brand-local primary SQL status only, independent of expiry and wagering progress.
950
+ checkUserWageringStatus: {
951
+ path: '/bonus.Bonus/checkUserWageringStatus',
952
+ requestStream: false,
953
+ responseStream: false,
954
+ requestType: bonus_bonus_pb.CheckUserWageringStatusRequest,
955
+ responseType: bonus_bonus_pb.CheckUserWageringStatusResponse,
956
+ requestSerialize: serialize_bonus_CheckUserWageringStatusRequest,
957
+ requestDeserialize: deserialize_bonus_CheckUserWageringStatusRequest,
958
+ responseSerialize: serialize_bonus_CheckUserWageringStatusResponse,
959
+ responseDeserialize: deserialize_bonus_CheckUserWageringStatusResponse,
960
+ },
927
961
  getActiveWageringUserBonuses: {
928
962
  path: '/bonus.Bonus/getActiveWageringUserBonuses',
929
963
  requestStream: false,
package/bonus/bonus_pb.js CHANGED
@@ -54,6 +54,8 @@ goog.exportSymbol('proto.bonus.BonusTranslationUpsertRequest', null, global);
54
54
  goog.exportSymbol('proto.bonus.BonusTranslationUpsertRequest.RequestCase', null, global);
55
55
  goog.exportSymbol('proto.bonus.BonusType', null, global);
56
56
  goog.exportSymbol('proto.bonus.BonusTypesResponse', null, global);
57
+ goog.exportSymbol('proto.bonus.CheckUserWageringStatusRequest', null, global);
58
+ goog.exportSymbol('proto.bonus.CheckUserWageringStatusResponse', null, global);
57
59
  goog.exportSymbol('proto.bonus.CommonUserBonusItems', null, global);
58
60
  goog.exportSymbol('proto.bonus.CurrencyStatusItem', null, global);
59
61
  goog.exportSymbol('proto.bonus.DashboardRequest', null, global);
@@ -1253,6 +1255,48 @@ if (goog.DEBUG && !COMPILED) {
1253
1255
  */
1254
1256
  proto.bonus.DepositEligibleUserBonusItem.displayName = 'proto.bonus.DepositEligibleUserBonusItem';
1255
1257
  }
1258
+ /**
1259
+ * Generated by JsPbCodeGenerator.
1260
+ * @param {Array=} opt_data Optional initial data array, typically from a
1261
+ * server response, or constructed directly in Javascript. The array is used
1262
+ * in place and becomes part of the constructed object. It is not cloned.
1263
+ * If no data is provided, the constructed object will be empty, but still
1264
+ * valid.
1265
+ * @extends {jspb.Message}
1266
+ * @constructor
1267
+ */
1268
+ proto.bonus.CheckUserWageringStatusRequest = function(opt_data) {
1269
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
1270
+ };
1271
+ goog.inherits(proto.bonus.CheckUserWageringStatusRequest, jspb.Message);
1272
+ if (goog.DEBUG && !COMPILED) {
1273
+ /**
1274
+ * @public
1275
+ * @override
1276
+ */
1277
+ proto.bonus.CheckUserWageringStatusRequest.displayName = 'proto.bonus.CheckUserWageringStatusRequest';
1278
+ }
1279
+ /**
1280
+ * Generated by JsPbCodeGenerator.
1281
+ * @param {Array=} opt_data Optional initial data array, typically from a
1282
+ * server response, or constructed directly in Javascript. The array is used
1283
+ * in place and becomes part of the constructed object. It is not cloned.
1284
+ * If no data is provided, the constructed object will be empty, but still
1285
+ * valid.
1286
+ * @extends {jspb.Message}
1287
+ * @constructor
1288
+ */
1289
+ proto.bonus.CheckUserWageringStatusResponse = function(opt_data) {
1290
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
1291
+ };
1292
+ goog.inherits(proto.bonus.CheckUserWageringStatusResponse, jspb.Message);
1293
+ if (goog.DEBUG && !COMPILED) {
1294
+ /**
1295
+ * @public
1296
+ * @override
1297
+ */
1298
+ proto.bonus.CheckUserWageringStatusResponse.displayName = 'proto.bonus.CheckUserWageringStatusResponse';
1299
+ }
1256
1300
  /**
1257
1301
  * Generated by JsPbCodeGenerator.
1258
1302
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -25612,6 +25656,284 @@ proto.bonus.DepositEligibleUserBonusItem.prototype.hasPortraitImageCdn = functio
25612
25656
 
25613
25657
 
25614
25658
 
25659
+ if (jspb.Message.GENERATE_TO_OBJECT) {
25660
+ /**
25661
+ * Creates an object representation of this proto.
25662
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
25663
+ * Optional fields that are not set will be set to undefined.
25664
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
25665
+ * For the list of reserved names please see:
25666
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
25667
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
25668
+ * JSPB instance for transitional soy proto support:
25669
+ * http://goto/soy-param-migration
25670
+ * @return {!Object}
25671
+ */
25672
+ proto.bonus.CheckUserWageringStatusRequest.prototype.toObject = function(opt_includeInstance) {
25673
+ return proto.bonus.CheckUserWageringStatusRequest.toObject(opt_includeInstance, this);
25674
+ };
25675
+
25676
+
25677
+ /**
25678
+ * Static version of the {@see toObject} method.
25679
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
25680
+ * the JSPB instance for transitional soy proto support:
25681
+ * http://goto/soy-param-migration
25682
+ * @param {!proto.bonus.CheckUserWageringStatusRequest} msg The msg instance to transform.
25683
+ * @return {!Object}
25684
+ * @suppress {unusedLocalVariables} f is only used for nested messages
25685
+ */
25686
+ proto.bonus.CheckUserWageringStatusRequest.toObject = function(includeInstance, msg) {
25687
+ var f, obj = {
25688
+ userId: jspb.Message.getFieldWithDefault(msg, 1, 0)
25689
+ };
25690
+
25691
+ if (includeInstance) {
25692
+ obj.$jspbMessageInstance = msg;
25693
+ }
25694
+ return obj;
25695
+ };
25696
+ }
25697
+
25698
+
25699
+ /**
25700
+ * Deserializes binary data (in protobuf wire format).
25701
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
25702
+ * @return {!proto.bonus.CheckUserWageringStatusRequest}
25703
+ */
25704
+ proto.bonus.CheckUserWageringStatusRequest.deserializeBinary = function(bytes) {
25705
+ var reader = new jspb.BinaryReader(bytes);
25706
+ var msg = new proto.bonus.CheckUserWageringStatusRequest;
25707
+ return proto.bonus.CheckUserWageringStatusRequest.deserializeBinaryFromReader(msg, reader);
25708
+ };
25709
+
25710
+
25711
+ /**
25712
+ * Deserializes binary data (in protobuf wire format) from the
25713
+ * given reader into the given message object.
25714
+ * @param {!proto.bonus.CheckUserWageringStatusRequest} msg The message object to deserialize into.
25715
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
25716
+ * @return {!proto.bonus.CheckUserWageringStatusRequest}
25717
+ */
25718
+ proto.bonus.CheckUserWageringStatusRequest.deserializeBinaryFromReader = function(msg, reader) {
25719
+ while (reader.nextField()) {
25720
+ if (reader.isEndGroup()) {
25721
+ break;
25722
+ }
25723
+ var field = reader.getFieldNumber();
25724
+ switch (field) {
25725
+ case 1:
25726
+ var value = /** @type {number} */ (reader.readInt32());
25727
+ msg.setUserId(value);
25728
+ break;
25729
+ default:
25730
+ reader.skipField();
25731
+ break;
25732
+ }
25733
+ }
25734
+ return msg;
25735
+ };
25736
+
25737
+
25738
+ /**
25739
+ * Serializes the message to binary data (in protobuf wire format).
25740
+ * @return {!Uint8Array}
25741
+ */
25742
+ proto.bonus.CheckUserWageringStatusRequest.prototype.serializeBinary = function() {
25743
+ var writer = new jspb.BinaryWriter();
25744
+ proto.bonus.CheckUserWageringStatusRequest.serializeBinaryToWriter(this, writer);
25745
+ return writer.getResultBuffer();
25746
+ };
25747
+
25748
+
25749
+ /**
25750
+ * Serializes the given message to binary data (in protobuf wire
25751
+ * format), writing to the given BinaryWriter.
25752
+ * @param {!proto.bonus.CheckUserWageringStatusRequest} message
25753
+ * @param {!jspb.BinaryWriter} writer
25754
+ * @suppress {unusedLocalVariables} f is only used for nested messages
25755
+ */
25756
+ proto.bonus.CheckUserWageringStatusRequest.serializeBinaryToWriter = function(message, writer) {
25757
+ var f = undefined;
25758
+ f = message.getUserId();
25759
+ if (f !== 0) {
25760
+ writer.writeInt32(
25761
+ 1,
25762
+ f
25763
+ );
25764
+ }
25765
+ };
25766
+
25767
+
25768
+ /**
25769
+ * optional int32 user_id = 1;
25770
+ * @return {number}
25771
+ */
25772
+ proto.bonus.CheckUserWageringStatusRequest.prototype.getUserId = function() {
25773
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
25774
+ };
25775
+
25776
+
25777
+ /**
25778
+ * @param {number} value
25779
+ * @return {!proto.bonus.CheckUserWageringStatusRequest} returns this
25780
+ */
25781
+ proto.bonus.CheckUserWageringStatusRequest.prototype.setUserId = function(value) {
25782
+ return jspb.Message.setProto3IntField(this, 1, value);
25783
+ };
25784
+
25785
+
25786
+
25787
+
25788
+
25789
+ if (jspb.Message.GENERATE_TO_OBJECT) {
25790
+ /**
25791
+ * Creates an object representation of this proto.
25792
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
25793
+ * Optional fields that are not set will be set to undefined.
25794
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
25795
+ * For the list of reserved names please see:
25796
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
25797
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
25798
+ * JSPB instance for transitional soy proto support:
25799
+ * http://goto/soy-param-migration
25800
+ * @return {!Object}
25801
+ */
25802
+ proto.bonus.CheckUserWageringStatusResponse.prototype.toObject = function(opt_includeInstance) {
25803
+ return proto.bonus.CheckUserWageringStatusResponse.toObject(opt_includeInstance, this);
25804
+ };
25805
+
25806
+
25807
+ /**
25808
+ * Static version of the {@see toObject} method.
25809
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
25810
+ * the JSPB instance for transitional soy proto support:
25811
+ * http://goto/soy-param-migration
25812
+ * @param {!proto.bonus.CheckUserWageringStatusResponse} msg The msg instance to transform.
25813
+ * @return {!Object}
25814
+ * @suppress {unusedLocalVariables} f is only used for nested messages
25815
+ */
25816
+ proto.bonus.CheckUserWageringStatusResponse.toObject = function(includeInstance, msg) {
25817
+ var f, obj = {
25818
+ hasWageringBonus: jspb.Message.getBooleanFieldWithDefault(msg, 1, false)
25819
+ };
25820
+
25821
+ if (includeInstance) {
25822
+ obj.$jspbMessageInstance = msg;
25823
+ }
25824
+ return obj;
25825
+ };
25826
+ }
25827
+
25828
+
25829
+ /**
25830
+ * Deserializes binary data (in protobuf wire format).
25831
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
25832
+ * @return {!proto.bonus.CheckUserWageringStatusResponse}
25833
+ */
25834
+ proto.bonus.CheckUserWageringStatusResponse.deserializeBinary = function(bytes) {
25835
+ var reader = new jspb.BinaryReader(bytes);
25836
+ var msg = new proto.bonus.CheckUserWageringStatusResponse;
25837
+ return proto.bonus.CheckUserWageringStatusResponse.deserializeBinaryFromReader(msg, reader);
25838
+ };
25839
+
25840
+
25841
+ /**
25842
+ * Deserializes binary data (in protobuf wire format) from the
25843
+ * given reader into the given message object.
25844
+ * @param {!proto.bonus.CheckUserWageringStatusResponse} msg The message object to deserialize into.
25845
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
25846
+ * @return {!proto.bonus.CheckUserWageringStatusResponse}
25847
+ */
25848
+ proto.bonus.CheckUserWageringStatusResponse.deserializeBinaryFromReader = function(msg, reader) {
25849
+ while (reader.nextField()) {
25850
+ if (reader.isEndGroup()) {
25851
+ break;
25852
+ }
25853
+ var field = reader.getFieldNumber();
25854
+ switch (field) {
25855
+ case 1:
25856
+ var value = /** @type {boolean} */ (reader.readBool());
25857
+ msg.setHasWageringBonus(value);
25858
+ break;
25859
+ default:
25860
+ reader.skipField();
25861
+ break;
25862
+ }
25863
+ }
25864
+ return msg;
25865
+ };
25866
+
25867
+
25868
+ /**
25869
+ * Serializes the message to binary data (in protobuf wire format).
25870
+ * @return {!Uint8Array}
25871
+ */
25872
+ proto.bonus.CheckUserWageringStatusResponse.prototype.serializeBinary = function() {
25873
+ var writer = new jspb.BinaryWriter();
25874
+ proto.bonus.CheckUserWageringStatusResponse.serializeBinaryToWriter(this, writer);
25875
+ return writer.getResultBuffer();
25876
+ };
25877
+
25878
+
25879
+ /**
25880
+ * Serializes the given message to binary data (in protobuf wire
25881
+ * format), writing to the given BinaryWriter.
25882
+ * @param {!proto.bonus.CheckUserWageringStatusResponse} message
25883
+ * @param {!jspb.BinaryWriter} writer
25884
+ * @suppress {unusedLocalVariables} f is only used for nested messages
25885
+ */
25886
+ proto.bonus.CheckUserWageringStatusResponse.serializeBinaryToWriter = function(message, writer) {
25887
+ var f = undefined;
25888
+ f = /** @type {boolean} */ (jspb.Message.getField(message, 1));
25889
+ if (f != null) {
25890
+ writer.writeBool(
25891
+ 1,
25892
+ f
25893
+ );
25894
+ }
25895
+ };
25896
+
25897
+
25898
+ /**
25899
+ * optional bool has_wagering_bonus = 1;
25900
+ * @return {boolean}
25901
+ */
25902
+ proto.bonus.CheckUserWageringStatusResponse.prototype.getHasWageringBonus = function() {
25903
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 1, false));
25904
+ };
25905
+
25906
+
25907
+ /**
25908
+ * @param {boolean} value
25909
+ * @return {!proto.bonus.CheckUserWageringStatusResponse} returns this
25910
+ */
25911
+ proto.bonus.CheckUserWageringStatusResponse.prototype.setHasWageringBonus = function(value) {
25912
+ return jspb.Message.setField(this, 1, value);
25913
+ };
25914
+
25915
+
25916
+ /**
25917
+ * Clears the field making it undefined.
25918
+ * @return {!proto.bonus.CheckUserWageringStatusResponse} returns this
25919
+ */
25920
+ proto.bonus.CheckUserWageringStatusResponse.prototype.clearHasWageringBonus = function() {
25921
+ return jspb.Message.setField(this, 1, undefined);
25922
+ };
25923
+
25924
+
25925
+ /**
25926
+ * Returns whether this field is set.
25927
+ * @return {boolean}
25928
+ */
25929
+ proto.bonus.CheckUserWageringStatusResponse.prototype.hasHasWageringBonus = function() {
25930
+ return jspb.Message.getField(this, 1) != null;
25931
+ };
25932
+
25933
+
25934
+
25935
+
25936
+
25615
25937
  if (jspb.Message.GENERATE_TO_OBJECT) {
25616
25938
  /**
25617
25939
  * Creates an object representation of this proto.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "protobuf-platform",
3
- "version": "1.2.729",
3
+ "version": "1.2.731",
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;
@@ -1161,6 +1188,8 @@ message UserCalculatedRestrictionItem {
1161
1188
  optional string source = 3;
1162
1189
  optional string reason = 4;
1163
1190
  optional CalculatedRestrictionLimit limit = 5;
1191
+ // Present on allowed withdrawal decisions from admission-aware User producers.
1192
+ optional bool requires_no_active_bonus = 6;
1164
1193
  }
1165
1194
  message CalculatedRestrictionLimit {
1166
1195
  int64 amount_minor = 1;