protobuf-platform 1.2.516 → 1.2.517

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.516",
3
+ "version": "1.2.517",
4
4
  "description": "Protobuf structures",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/user/user.proto CHANGED
@@ -268,6 +268,8 @@ message LoginRequest {
268
268
  optional string city = 8;
269
269
  optional int32 two_fa = 9;
270
270
  optional string nick_name = 10;
271
+ optional string antifraud_session = 11;
272
+ optional string user_agent = 12;
271
273
  }
272
274
  message TelegramLoginRequest {
273
275
  string telegram_user_id = 1;
@@ -392,6 +394,8 @@ message ConfirmTwoFaRequest {
392
394
  optional string purpose = 8;
393
395
  // Optional JSON metadata for purpose-specific context.
394
396
  optional string metadata = 9;
397
+ optional string antifraud_session = 10;
398
+ optional string user_agent = 11;
395
399
  }
396
400
  // Begins player 2FA setup; returns pending secret/QR without enabling 2FA.
397
401
  message BeginUserTwoFaSetupRequest {
@@ -427,6 +431,8 @@ message ConfirmUserTwoFaActionRequest {
427
431
  optional string device = 9;
428
432
  optional string country = 10;
429
433
  optional string city = 11;
434
+ optional string antifraud_session = 12;
435
+ optional string user_agent = 13;
430
436
  }
431
437
  message ConfirmUserTwoFaActionResponse {
432
438
  // Expected value on success: success.
package/user/user_pb.js CHANGED
@@ -9035,7 +9035,9 @@ proto.user.LoginRequest.toObject = function(includeInstance, msg) {
9035
9035
  country: jspb.Message.getFieldWithDefault(msg, 7, ""),
9036
9036
  city: jspb.Message.getFieldWithDefault(msg, 8, ""),
9037
9037
  twoFa: jspb.Message.getFieldWithDefault(msg, 9, 0),
9038
- nickName: jspb.Message.getFieldWithDefault(msg, 10, "")
9038
+ nickName: jspb.Message.getFieldWithDefault(msg, 10, ""),
9039
+ antifraudSession: jspb.Message.getFieldWithDefault(msg, 11, ""),
9040
+ userAgent: jspb.Message.getFieldWithDefault(msg, 12, "")
9039
9041
  };
9040
9042
 
9041
9043
  if (includeInstance) {
@@ -9112,6 +9114,14 @@ proto.user.LoginRequest.deserializeBinaryFromReader = function(msg, reader) {
9112
9114
  var value = /** @type {string} */ (reader.readString());
9113
9115
  msg.setNickName(value);
9114
9116
  break;
9117
+ case 11:
9118
+ var value = /** @type {string} */ (reader.readString());
9119
+ msg.setAntifraudSession(value);
9120
+ break;
9121
+ case 12:
9122
+ var value = /** @type {string} */ (reader.readString());
9123
+ msg.setUserAgent(value);
9124
+ break;
9115
9125
  default:
9116
9126
  reader.skipField();
9117
9127
  break;
@@ -9211,6 +9221,20 @@ proto.user.LoginRequest.serializeBinaryToWriter = function(message, writer) {
9211
9221
  f
9212
9222
  );
9213
9223
  }
9224
+ f = /** @type {string} */ (jspb.Message.getField(message, 11));
9225
+ if (f != null) {
9226
+ writer.writeString(
9227
+ 11,
9228
+ f
9229
+ );
9230
+ }
9231
+ f = /** @type {string} */ (jspb.Message.getField(message, 12));
9232
+ if (f != null) {
9233
+ writer.writeString(
9234
+ 12,
9235
+ f
9236
+ );
9237
+ }
9214
9238
  };
9215
9239
 
9216
9240
 
@@ -9556,6 +9580,78 @@ proto.user.LoginRequest.prototype.hasNickName = function() {
9556
9580
  };
9557
9581
 
9558
9582
 
9583
+ /**
9584
+ * optional string antifraud_session = 11;
9585
+ * @return {string}
9586
+ */
9587
+ proto.user.LoginRequest.prototype.getAntifraudSession = function() {
9588
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 11, ""));
9589
+ };
9590
+
9591
+
9592
+ /**
9593
+ * @param {string} value
9594
+ * @return {!proto.user.LoginRequest} returns this
9595
+ */
9596
+ proto.user.LoginRequest.prototype.setAntifraudSession = function(value) {
9597
+ return jspb.Message.setField(this, 11, value);
9598
+ };
9599
+
9600
+
9601
+ /**
9602
+ * Clears the field making it undefined.
9603
+ * @return {!proto.user.LoginRequest} returns this
9604
+ */
9605
+ proto.user.LoginRequest.prototype.clearAntifraudSession = function() {
9606
+ return jspb.Message.setField(this, 11, undefined);
9607
+ };
9608
+
9609
+
9610
+ /**
9611
+ * Returns whether this field is set.
9612
+ * @return {boolean}
9613
+ */
9614
+ proto.user.LoginRequest.prototype.hasAntifraudSession = function() {
9615
+ return jspb.Message.getField(this, 11) != null;
9616
+ };
9617
+
9618
+
9619
+ /**
9620
+ * optional string user_agent = 12;
9621
+ * @return {string}
9622
+ */
9623
+ proto.user.LoginRequest.prototype.getUserAgent = function() {
9624
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 12, ""));
9625
+ };
9626
+
9627
+
9628
+ /**
9629
+ * @param {string} value
9630
+ * @return {!proto.user.LoginRequest} returns this
9631
+ */
9632
+ proto.user.LoginRequest.prototype.setUserAgent = function(value) {
9633
+ return jspb.Message.setField(this, 12, value);
9634
+ };
9635
+
9636
+
9637
+ /**
9638
+ * Clears the field making it undefined.
9639
+ * @return {!proto.user.LoginRequest} returns this
9640
+ */
9641
+ proto.user.LoginRequest.prototype.clearUserAgent = function() {
9642
+ return jspb.Message.setField(this, 12, undefined);
9643
+ };
9644
+
9645
+
9646
+ /**
9647
+ * Returns whether this field is set.
9648
+ * @return {boolean}
9649
+ */
9650
+ proto.user.LoginRequest.prototype.hasUserAgent = function() {
9651
+ return jspb.Message.getField(this, 12) != null;
9652
+ };
9653
+
9654
+
9559
9655
 
9560
9656
 
9561
9657
 
@@ -14506,7 +14602,9 @@ proto.user.ConfirmTwoFaRequest.toObject = function(includeInstance, msg) {
14506
14602
  country: jspb.Message.getFieldWithDefault(msg, 6, ""),
14507
14603
  city: jspb.Message.getFieldWithDefault(msg, 7, ""),
14508
14604
  purpose: jspb.Message.getFieldWithDefault(msg, 8, ""),
14509
- metadata: jspb.Message.getFieldWithDefault(msg, 9, "")
14605
+ metadata: jspb.Message.getFieldWithDefault(msg, 9, ""),
14606
+ antifraudSession: jspb.Message.getFieldWithDefault(msg, 10, ""),
14607
+ userAgent: jspb.Message.getFieldWithDefault(msg, 11, "")
14510
14608
  };
14511
14609
 
14512
14610
  if (includeInstance) {
@@ -14579,6 +14677,14 @@ proto.user.ConfirmTwoFaRequest.deserializeBinaryFromReader = function(msg, reade
14579
14677
  var value = /** @type {string} */ (reader.readString());
14580
14678
  msg.setMetadata(value);
14581
14679
  break;
14680
+ case 10:
14681
+ var value = /** @type {string} */ (reader.readString());
14682
+ msg.setAntifraudSession(value);
14683
+ break;
14684
+ case 11:
14685
+ var value = /** @type {string} */ (reader.readString());
14686
+ msg.setUserAgent(value);
14687
+ break;
14582
14688
  default:
14583
14689
  reader.skipField();
14584
14690
  break;
@@ -14671,6 +14777,20 @@ proto.user.ConfirmTwoFaRequest.serializeBinaryToWriter = function(message, write
14671
14777
  f
14672
14778
  );
14673
14779
  }
14780
+ f = /** @type {string} */ (jspb.Message.getField(message, 10));
14781
+ if (f != null) {
14782
+ writer.writeString(
14783
+ 10,
14784
+ f
14785
+ );
14786
+ }
14787
+ f = /** @type {string} */ (jspb.Message.getField(message, 11));
14788
+ if (f != null) {
14789
+ writer.writeString(
14790
+ 11,
14791
+ f
14792
+ );
14793
+ }
14674
14794
  };
14675
14795
 
14676
14796
 
@@ -14962,6 +15082,78 @@ proto.user.ConfirmTwoFaRequest.prototype.hasMetadata = function() {
14962
15082
  };
14963
15083
 
14964
15084
 
15085
+ /**
15086
+ * optional string antifraud_session = 10;
15087
+ * @return {string}
15088
+ */
15089
+ proto.user.ConfirmTwoFaRequest.prototype.getAntifraudSession = function() {
15090
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 10, ""));
15091
+ };
15092
+
15093
+
15094
+ /**
15095
+ * @param {string} value
15096
+ * @return {!proto.user.ConfirmTwoFaRequest} returns this
15097
+ */
15098
+ proto.user.ConfirmTwoFaRequest.prototype.setAntifraudSession = function(value) {
15099
+ return jspb.Message.setField(this, 10, value);
15100
+ };
15101
+
15102
+
15103
+ /**
15104
+ * Clears the field making it undefined.
15105
+ * @return {!proto.user.ConfirmTwoFaRequest} returns this
15106
+ */
15107
+ proto.user.ConfirmTwoFaRequest.prototype.clearAntifraudSession = function() {
15108
+ return jspb.Message.setField(this, 10, undefined);
15109
+ };
15110
+
15111
+
15112
+ /**
15113
+ * Returns whether this field is set.
15114
+ * @return {boolean}
15115
+ */
15116
+ proto.user.ConfirmTwoFaRequest.prototype.hasAntifraudSession = function() {
15117
+ return jspb.Message.getField(this, 10) != null;
15118
+ };
15119
+
15120
+
15121
+ /**
15122
+ * optional string user_agent = 11;
15123
+ * @return {string}
15124
+ */
15125
+ proto.user.ConfirmTwoFaRequest.prototype.getUserAgent = function() {
15126
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 11, ""));
15127
+ };
15128
+
15129
+
15130
+ /**
15131
+ * @param {string} value
15132
+ * @return {!proto.user.ConfirmTwoFaRequest} returns this
15133
+ */
15134
+ proto.user.ConfirmTwoFaRequest.prototype.setUserAgent = function(value) {
15135
+ return jspb.Message.setField(this, 11, value);
15136
+ };
15137
+
15138
+
15139
+ /**
15140
+ * Clears the field making it undefined.
15141
+ * @return {!proto.user.ConfirmTwoFaRequest} returns this
15142
+ */
15143
+ proto.user.ConfirmTwoFaRequest.prototype.clearUserAgent = function() {
15144
+ return jspb.Message.setField(this, 11, undefined);
15145
+ };
15146
+
15147
+
15148
+ /**
15149
+ * Returns whether this field is set.
15150
+ * @return {boolean}
15151
+ */
15152
+ proto.user.ConfirmTwoFaRequest.prototype.hasUserAgent = function() {
15153
+ return jspb.Message.getField(this, 11) != null;
15154
+ };
15155
+
15156
+
14965
15157
 
14966
15158
 
14967
15159
 
@@ -15756,7 +15948,9 @@ proto.user.ConfirmUserTwoFaActionRequest.toObject = function(includeInstance, ms
15756
15948
  userIp: jspb.Message.getFieldWithDefault(msg, 8, ""),
15757
15949
  device: jspb.Message.getFieldWithDefault(msg, 9, ""),
15758
15950
  country: jspb.Message.getFieldWithDefault(msg, 10, ""),
15759
- city: jspb.Message.getFieldWithDefault(msg, 11, "")
15951
+ city: jspb.Message.getFieldWithDefault(msg, 11, ""),
15952
+ antifraudSession: jspb.Message.getFieldWithDefault(msg, 12, ""),
15953
+ userAgent: jspb.Message.getFieldWithDefault(msg, 13, "")
15760
15954
  };
15761
15955
 
15762
15956
  if (includeInstance) {
@@ -15837,6 +16031,14 @@ proto.user.ConfirmUserTwoFaActionRequest.deserializeBinaryFromReader = function(
15837
16031
  var value = /** @type {string} */ (reader.readString());
15838
16032
  msg.setCity(value);
15839
16033
  break;
16034
+ case 12:
16035
+ var value = /** @type {string} */ (reader.readString());
16036
+ msg.setAntifraudSession(value);
16037
+ break;
16038
+ case 13:
16039
+ var value = /** @type {string} */ (reader.readString());
16040
+ msg.setUserAgent(value);
16041
+ break;
15840
16042
  default:
15841
16043
  reader.skipField();
15842
16044
  break;
@@ -15943,6 +16145,20 @@ proto.user.ConfirmUserTwoFaActionRequest.serializeBinaryToWriter = function(mess
15943
16145
  f
15944
16146
  );
15945
16147
  }
16148
+ f = /** @type {string} */ (jspb.Message.getField(message, 12));
16149
+ if (f != null) {
16150
+ writer.writeString(
16151
+ 12,
16152
+ f
16153
+ );
16154
+ }
16155
+ f = /** @type {string} */ (jspb.Message.getField(message, 13));
16156
+ if (f != null) {
16157
+ writer.writeString(
16158
+ 13,
16159
+ f
16160
+ );
16161
+ }
15946
16162
  };
15947
16163
 
15948
16164
 
@@ -16306,6 +16522,78 @@ proto.user.ConfirmUserTwoFaActionRequest.prototype.hasCity = function() {
16306
16522
  };
16307
16523
 
16308
16524
 
16525
+ /**
16526
+ * optional string antifraud_session = 12;
16527
+ * @return {string}
16528
+ */
16529
+ proto.user.ConfirmUserTwoFaActionRequest.prototype.getAntifraudSession = function() {
16530
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 12, ""));
16531
+ };
16532
+
16533
+
16534
+ /**
16535
+ * @param {string} value
16536
+ * @return {!proto.user.ConfirmUserTwoFaActionRequest} returns this
16537
+ */
16538
+ proto.user.ConfirmUserTwoFaActionRequest.prototype.setAntifraudSession = function(value) {
16539
+ return jspb.Message.setField(this, 12, value);
16540
+ };
16541
+
16542
+
16543
+ /**
16544
+ * Clears the field making it undefined.
16545
+ * @return {!proto.user.ConfirmUserTwoFaActionRequest} returns this
16546
+ */
16547
+ proto.user.ConfirmUserTwoFaActionRequest.prototype.clearAntifraudSession = function() {
16548
+ return jspb.Message.setField(this, 12, undefined);
16549
+ };
16550
+
16551
+
16552
+ /**
16553
+ * Returns whether this field is set.
16554
+ * @return {boolean}
16555
+ */
16556
+ proto.user.ConfirmUserTwoFaActionRequest.prototype.hasAntifraudSession = function() {
16557
+ return jspb.Message.getField(this, 12) != null;
16558
+ };
16559
+
16560
+
16561
+ /**
16562
+ * optional string user_agent = 13;
16563
+ * @return {string}
16564
+ */
16565
+ proto.user.ConfirmUserTwoFaActionRequest.prototype.getUserAgent = function() {
16566
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 13, ""));
16567
+ };
16568
+
16569
+
16570
+ /**
16571
+ * @param {string} value
16572
+ * @return {!proto.user.ConfirmUserTwoFaActionRequest} returns this
16573
+ */
16574
+ proto.user.ConfirmUserTwoFaActionRequest.prototype.setUserAgent = function(value) {
16575
+ return jspb.Message.setField(this, 13, value);
16576
+ };
16577
+
16578
+
16579
+ /**
16580
+ * Clears the field making it undefined.
16581
+ * @return {!proto.user.ConfirmUserTwoFaActionRequest} returns this
16582
+ */
16583
+ proto.user.ConfirmUserTwoFaActionRequest.prototype.clearUserAgent = function() {
16584
+ return jspb.Message.setField(this, 13, undefined);
16585
+ };
16586
+
16587
+
16588
+ /**
16589
+ * Returns whether this field is set.
16590
+ * @return {boolean}
16591
+ */
16592
+ proto.user.ConfirmUserTwoFaActionRequest.prototype.hasUserAgent = function() {
16593
+ return jspb.Message.getField(this, 13) != null;
16594
+ };
16595
+
16596
+
16309
16597
 
16310
16598
 
16311
16599