protobuf-platform 1.2.450 → 1.2.452

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.450",
3
+ "version": "1.2.452",
4
4
  "description": "Protobuf structures",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/user/user.proto CHANGED
@@ -224,6 +224,8 @@ message RegistrationRequest {
224
224
  optional string preset_code = 25;
225
225
  optional string antifraud_session = 26;
226
226
  optional string fraudnetic_token = 27;
227
+ // Gateway IP-derived country; distinct from profile country.
228
+ optional string ip_country = 28;
227
229
  }
228
230
  message LoggedInResponse {
229
231
  int32 id = 1;
@@ -270,6 +272,8 @@ message TelegramLoginRequest {
270
272
  optional string affiliate_info = 12;
271
273
  optional int32 affiliate_id = 13;
272
274
  optional string promo_code = 14;
275
+ // Gateway IP-derived country; distinct from profile country.
276
+ optional string ip_country = 15;
273
277
  }
274
278
  message GoogleLoginRequest {
275
279
  string code = 1;
@@ -288,6 +292,8 @@ message GoogleLoginRequest {
288
292
  optional string correlation_id = 14;
289
293
  optional string user_agent = 15;
290
294
  optional string antifraud_session = 16;
295
+ // Gateway IP-derived country; distinct from profile country.
296
+ optional string ip_country = 17;
291
297
  }
292
298
  message AppleLoginRequest {
293
299
  string code = 1;
@@ -311,6 +317,8 @@ message AppleLoginRequest {
311
317
  optional string email = 19;
312
318
  optional string nonce = 20;
313
319
  optional string antifraud_session = 21;
320
+ // Gateway IP-derived country; distinct from profile country.
321
+ optional string ip_country = 22;
314
322
  }
315
323
  message XLoginRequest {
316
324
  string x_user_id = 1;
@@ -334,6 +342,8 @@ message XLoginRequest {
334
342
  optional string user_agent = 19;
335
343
  optional string antifraud_session = 20;
336
344
  optional string preset_code = 21;
345
+ // Gateway IP-derived country; distinct from profile country.
346
+ optional string ip_country = 22;
337
347
  }
338
348
  message ConfirmTwoFaRequest {
339
349
  string code = 1;
package/user/user_pb.js CHANGED
@@ -6466,7 +6466,8 @@ proto.user.RegistrationRequest.toObject = function(includeInstance, msg) {
6466
6466
  seonSession: jspb.Message.getFieldWithDefault(msg, 24, ""),
6467
6467
  presetCode: jspb.Message.getFieldWithDefault(msg, 25, ""),
6468
6468
  antifraudSession: jspb.Message.getFieldWithDefault(msg, 26, ""),
6469
- fraudneticToken: jspb.Message.getFieldWithDefault(msg, 27, "")
6469
+ fraudneticToken: jspb.Message.getFieldWithDefault(msg, 27, ""),
6470
+ ipCountry: jspb.Message.getFieldWithDefault(msg, 28, "")
6470
6471
  };
6471
6472
 
6472
6473
  if (includeInstance) {
@@ -6611,6 +6612,10 @@ proto.user.RegistrationRequest.deserializeBinaryFromReader = function(msg, reade
6611
6612
  var value = /** @type {string} */ (reader.readString());
6612
6613
  msg.setFraudneticToken(value);
6613
6614
  break;
6615
+ case 28:
6616
+ var value = /** @type {string} */ (reader.readString());
6617
+ msg.setIpCountry(value);
6618
+ break;
6614
6619
  default:
6615
6620
  reader.skipField();
6616
6621
  break;
@@ -6829,6 +6834,13 @@ proto.user.RegistrationRequest.serializeBinaryToWriter = function(message, write
6829
6834
  f
6830
6835
  );
6831
6836
  }
6837
+ f = /** @type {string} */ (jspb.Message.getField(message, 28));
6838
+ if (f != null) {
6839
+ writer.writeString(
6840
+ 28,
6841
+ f
6842
+ );
6843
+ }
6832
6844
  };
6833
6845
 
6834
6846
 
@@ -7750,6 +7762,42 @@ proto.user.RegistrationRequest.prototype.hasFraudneticToken = function() {
7750
7762
  };
7751
7763
 
7752
7764
 
7765
+ /**
7766
+ * optional string ip_country = 28;
7767
+ * @return {string}
7768
+ */
7769
+ proto.user.RegistrationRequest.prototype.getIpCountry = function() {
7770
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 28, ""));
7771
+ };
7772
+
7773
+
7774
+ /**
7775
+ * @param {string} value
7776
+ * @return {!proto.user.RegistrationRequest} returns this
7777
+ */
7778
+ proto.user.RegistrationRequest.prototype.setIpCountry = function(value) {
7779
+ return jspb.Message.setField(this, 28, value);
7780
+ };
7781
+
7782
+
7783
+ /**
7784
+ * Clears the field making it undefined.
7785
+ * @return {!proto.user.RegistrationRequest} returns this
7786
+ */
7787
+ proto.user.RegistrationRequest.prototype.clearIpCountry = function() {
7788
+ return jspb.Message.setField(this, 28, undefined);
7789
+ };
7790
+
7791
+
7792
+ /**
7793
+ * Returns whether this field is set.
7794
+ * @return {boolean}
7795
+ */
7796
+ proto.user.RegistrationRequest.prototype.hasIpCountry = function() {
7797
+ return jspb.Message.getField(this, 28) != null;
7798
+ };
7799
+
7800
+
7753
7801
 
7754
7802
 
7755
7803
 
@@ -9171,7 +9219,8 @@ proto.user.TelegramLoginRequest.toObject = function(includeInstance, msg) {
9171
9219
  userAgent: jspb.Message.getFieldWithDefault(msg, 11, ""),
9172
9220
  affiliateInfo: jspb.Message.getFieldWithDefault(msg, 12, ""),
9173
9221
  affiliateId: jspb.Message.getFieldWithDefault(msg, 13, 0),
9174
- promoCode: jspb.Message.getFieldWithDefault(msg, 14, "")
9222
+ promoCode: jspb.Message.getFieldWithDefault(msg, 14, ""),
9223
+ ipCountry: jspb.Message.getFieldWithDefault(msg, 15, "")
9175
9224
  };
9176
9225
 
9177
9226
  if (includeInstance) {
@@ -9264,6 +9313,10 @@ proto.user.TelegramLoginRequest.deserializeBinaryFromReader = function(msg, read
9264
9313
  var value = /** @type {string} */ (reader.readString());
9265
9314
  msg.setPromoCode(value);
9266
9315
  break;
9316
+ case 15:
9317
+ var value = /** @type {string} */ (reader.readString());
9318
+ msg.setIpCountry(value);
9319
+ break;
9267
9320
  default:
9268
9321
  reader.skipField();
9269
9322
  break;
@@ -9391,6 +9444,13 @@ proto.user.TelegramLoginRequest.serializeBinaryToWriter = function(message, writ
9391
9444
  f
9392
9445
  );
9393
9446
  }
9447
+ f = /** @type {string} */ (jspb.Message.getField(message, 15));
9448
+ if (f != null) {
9449
+ writer.writeString(
9450
+ 15,
9451
+ f
9452
+ );
9453
+ }
9394
9454
  };
9395
9455
 
9396
9456
 
@@ -9880,6 +9940,42 @@ proto.user.TelegramLoginRequest.prototype.hasPromoCode = function() {
9880
9940
  };
9881
9941
 
9882
9942
 
9943
+ /**
9944
+ * optional string ip_country = 15;
9945
+ * @return {string}
9946
+ */
9947
+ proto.user.TelegramLoginRequest.prototype.getIpCountry = function() {
9948
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 15, ""));
9949
+ };
9950
+
9951
+
9952
+ /**
9953
+ * @param {string} value
9954
+ * @return {!proto.user.TelegramLoginRequest} returns this
9955
+ */
9956
+ proto.user.TelegramLoginRequest.prototype.setIpCountry = function(value) {
9957
+ return jspb.Message.setField(this, 15, value);
9958
+ };
9959
+
9960
+
9961
+ /**
9962
+ * Clears the field making it undefined.
9963
+ * @return {!proto.user.TelegramLoginRequest} returns this
9964
+ */
9965
+ proto.user.TelegramLoginRequest.prototype.clearIpCountry = function() {
9966
+ return jspb.Message.setField(this, 15, undefined);
9967
+ };
9968
+
9969
+
9970
+ /**
9971
+ * Returns whether this field is set.
9972
+ * @return {boolean}
9973
+ */
9974
+ proto.user.TelegramLoginRequest.prototype.hasIpCountry = function() {
9975
+ return jspb.Message.getField(this, 15) != null;
9976
+ };
9977
+
9978
+
9883
9979
 
9884
9980
 
9885
9981
 
@@ -9927,7 +10023,8 @@ proto.user.GoogleLoginRequest.toObject = function(includeInstance, msg) {
9927
10023
  requestId: jspb.Message.getFieldWithDefault(msg, 13, ""),
9928
10024
  correlationId: jspb.Message.getFieldWithDefault(msg, 14, ""),
9929
10025
  userAgent: jspb.Message.getFieldWithDefault(msg, 15, ""),
9930
- antifraudSession: jspb.Message.getFieldWithDefault(msg, 16, "")
10026
+ antifraudSession: jspb.Message.getFieldWithDefault(msg, 16, ""),
10027
+ ipCountry: jspb.Message.getFieldWithDefault(msg, 17, "")
9931
10028
  };
9932
10029
 
9933
10030
  if (includeInstance) {
@@ -10028,6 +10125,10 @@ proto.user.GoogleLoginRequest.deserializeBinaryFromReader = function(msg, reader
10028
10125
  var value = /** @type {string} */ (reader.readString());
10029
10126
  msg.setAntifraudSession(value);
10030
10127
  break;
10128
+ case 17:
10129
+ var value = /** @type {string} */ (reader.readString());
10130
+ msg.setIpCountry(value);
10131
+ break;
10031
10132
  default:
10032
10133
  reader.skipField();
10033
10134
  break;
@@ -10169,6 +10270,13 @@ proto.user.GoogleLoginRequest.serializeBinaryToWriter = function(message, writer
10169
10270
  f
10170
10271
  );
10171
10272
  }
10273
+ f = /** @type {string} */ (jspb.Message.getField(message, 17));
10274
+ if (f != null) {
10275
+ writer.writeString(
10276
+ 17,
10277
+ f
10278
+ );
10279
+ }
10172
10280
  };
10173
10281
 
10174
10282
 
@@ -10712,6 +10820,42 @@ proto.user.GoogleLoginRequest.prototype.hasAntifraudSession = function() {
10712
10820
  };
10713
10821
 
10714
10822
 
10823
+ /**
10824
+ * optional string ip_country = 17;
10825
+ * @return {string}
10826
+ */
10827
+ proto.user.GoogleLoginRequest.prototype.getIpCountry = function() {
10828
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 17, ""));
10829
+ };
10830
+
10831
+
10832
+ /**
10833
+ * @param {string} value
10834
+ * @return {!proto.user.GoogleLoginRequest} returns this
10835
+ */
10836
+ proto.user.GoogleLoginRequest.prototype.setIpCountry = function(value) {
10837
+ return jspb.Message.setField(this, 17, value);
10838
+ };
10839
+
10840
+
10841
+ /**
10842
+ * Clears the field making it undefined.
10843
+ * @return {!proto.user.GoogleLoginRequest} returns this
10844
+ */
10845
+ proto.user.GoogleLoginRequest.prototype.clearIpCountry = function() {
10846
+ return jspb.Message.setField(this, 17, undefined);
10847
+ };
10848
+
10849
+
10850
+ /**
10851
+ * Returns whether this field is set.
10852
+ * @return {boolean}
10853
+ */
10854
+ proto.user.GoogleLoginRequest.prototype.hasIpCountry = function() {
10855
+ return jspb.Message.getField(this, 17) != null;
10856
+ };
10857
+
10858
+
10715
10859
 
10716
10860
 
10717
10861
 
@@ -10764,7 +10908,8 @@ proto.user.AppleLoginRequest.toObject = function(includeInstance, msg) {
10764
10908
  lastName: jspb.Message.getFieldWithDefault(msg, 18, ""),
10765
10909
  email: jspb.Message.getFieldWithDefault(msg, 19, ""),
10766
10910
  nonce: jspb.Message.getFieldWithDefault(msg, 20, ""),
10767
- antifraudSession: jspb.Message.getFieldWithDefault(msg, 21, "")
10911
+ antifraudSession: jspb.Message.getFieldWithDefault(msg, 21, ""),
10912
+ ipCountry: jspb.Message.getFieldWithDefault(msg, 22, "")
10768
10913
  };
10769
10914
 
10770
10915
  if (includeInstance) {
@@ -10885,6 +11030,10 @@ proto.user.AppleLoginRequest.deserializeBinaryFromReader = function(msg, reader)
10885
11030
  var value = /** @type {string} */ (reader.readString());
10886
11031
  msg.setAntifraudSession(value);
10887
11032
  break;
11033
+ case 22:
11034
+ var value = /** @type {string} */ (reader.readString());
11035
+ msg.setIpCountry(value);
11036
+ break;
10888
11037
  default:
10889
11038
  reader.skipField();
10890
11039
  break;
@@ -11061,6 +11210,13 @@ proto.user.AppleLoginRequest.serializeBinaryToWriter = function(message, writer)
11061
11210
  f
11062
11211
  );
11063
11212
  }
11213
+ f = /** @type {string} */ (jspb.Message.getField(message, 22));
11214
+ if (f != null) {
11215
+ writer.writeString(
11216
+ 22,
11217
+ f
11218
+ );
11219
+ }
11064
11220
  };
11065
11221
 
11066
11222
 
@@ -11784,6 +11940,42 @@ proto.user.AppleLoginRequest.prototype.hasAntifraudSession = function() {
11784
11940
  };
11785
11941
 
11786
11942
 
11943
+ /**
11944
+ * optional string ip_country = 22;
11945
+ * @return {string}
11946
+ */
11947
+ proto.user.AppleLoginRequest.prototype.getIpCountry = function() {
11948
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 22, ""));
11949
+ };
11950
+
11951
+
11952
+ /**
11953
+ * @param {string} value
11954
+ * @return {!proto.user.AppleLoginRequest} returns this
11955
+ */
11956
+ proto.user.AppleLoginRequest.prototype.setIpCountry = function(value) {
11957
+ return jspb.Message.setField(this, 22, value);
11958
+ };
11959
+
11960
+
11961
+ /**
11962
+ * Clears the field making it undefined.
11963
+ * @return {!proto.user.AppleLoginRequest} returns this
11964
+ */
11965
+ proto.user.AppleLoginRequest.prototype.clearIpCountry = function() {
11966
+ return jspb.Message.setField(this, 22, undefined);
11967
+ };
11968
+
11969
+
11970
+ /**
11971
+ * Returns whether this field is set.
11972
+ * @return {boolean}
11973
+ */
11974
+ proto.user.AppleLoginRequest.prototype.hasIpCountry = function() {
11975
+ return jspb.Message.getField(this, 22) != null;
11976
+ };
11977
+
11978
+
11787
11979
 
11788
11980
 
11789
11981
 
@@ -11836,7 +12028,8 @@ proto.user.XLoginRequest.toObject = function(includeInstance, msg) {
11836
12028
  correlationId: jspb.Message.getFieldWithDefault(msg, 18, ""),
11837
12029
  userAgent: jspb.Message.getFieldWithDefault(msg, 19, ""),
11838
12030
  antifraudSession: jspb.Message.getFieldWithDefault(msg, 20, ""),
11839
- presetCode: jspb.Message.getFieldWithDefault(msg, 21, "")
12031
+ presetCode: jspb.Message.getFieldWithDefault(msg, 21, ""),
12032
+ ipCountry: jspb.Message.getFieldWithDefault(msg, 22, "")
11840
12033
  };
11841
12034
 
11842
12035
  if (includeInstance) {
@@ -11957,6 +12150,10 @@ proto.user.XLoginRequest.deserializeBinaryFromReader = function(msg, reader) {
11957
12150
  var value = /** @type {string} */ (reader.readString());
11958
12151
  msg.setPresetCode(value);
11959
12152
  break;
12153
+ case 22:
12154
+ var value = /** @type {string} */ (reader.readString());
12155
+ msg.setIpCountry(value);
12156
+ break;
11960
12157
  default:
11961
12158
  reader.skipField();
11962
12159
  break;
@@ -12133,6 +12330,13 @@ proto.user.XLoginRequest.serializeBinaryToWriter = function(message, writer) {
12133
12330
  f
12134
12331
  );
12135
12332
  }
12333
+ f = /** @type {string} */ (jspb.Message.getField(message, 22));
12334
+ if (f != null) {
12335
+ writer.writeString(
12336
+ 22,
12337
+ f
12338
+ );
12339
+ }
12136
12340
  };
12137
12341
 
12138
12342
 
@@ -12874,6 +13078,42 @@ proto.user.XLoginRequest.prototype.hasPresetCode = function() {
12874
13078
  };
12875
13079
 
12876
13080
 
13081
+ /**
13082
+ * optional string ip_country = 22;
13083
+ * @return {string}
13084
+ */
13085
+ proto.user.XLoginRequest.prototype.getIpCountry = function() {
13086
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 22, ""));
13087
+ };
13088
+
13089
+
13090
+ /**
13091
+ * @param {string} value
13092
+ * @return {!proto.user.XLoginRequest} returns this
13093
+ */
13094
+ proto.user.XLoginRequest.prototype.setIpCountry = function(value) {
13095
+ return jspb.Message.setField(this, 22, value);
13096
+ };
13097
+
13098
+
13099
+ /**
13100
+ * Clears the field making it undefined.
13101
+ * @return {!proto.user.XLoginRequest} returns this
13102
+ */
13103
+ proto.user.XLoginRequest.prototype.clearIpCountry = function() {
13104
+ return jspb.Message.setField(this, 22, undefined);
13105
+ };
13106
+
13107
+
13108
+ /**
13109
+ * Returns whether this field is set.
13110
+ * @return {boolean}
13111
+ */
13112
+ proto.user.XLoginRequest.prototype.hasIpCountry = function() {
13113
+ return jspb.Message.getField(this, 22) != null;
13114
+ };
13115
+
13116
+
12877
13117
 
12878
13118
 
12879
13119