protobuf-platform 1.1.97 → 1.1.99

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.1.97",
3
+ "version": "1.1.99",
4
4
  "description": "Protobuf structures",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/user/user.proto CHANGED
@@ -55,6 +55,8 @@ service User {
55
55
  //Confirmations
56
56
  rpc attemptEmailConfirmation(EmailConfirmationRequest) returns (ConfirmationStatusResponse);
57
57
  rpc setEmailConfirmed(EmailConfirmedRequest) returns (ConfirmationStatusResponse);
58
+ rpc attemptResetPasswordConfirmation(ResetPasswordConfirmationRequest) returns (ConfirmationStatusResponse);
59
+ rpc setNewPassword(SetNewPasswordConfirmedRequest) returns (ConfirmationStatusResponse);
58
60
  }
59
61
  //Technical
60
62
  message PingRequest { string ping = 1; }
@@ -572,9 +574,16 @@ message TournamentRulesInfoResponse {
572
574
  message EmailConfirmationRequest {
573
575
  int32 user_id = 1;
574
576
  }
577
+ message ResetPasswordConfirmationRequest {
578
+ string user_email = 1;
579
+ }
575
580
  message ConfirmationStatusResponse {
576
581
  string status = 1;
577
582
  }
578
583
  message EmailConfirmedRequest {
579
584
  string token = 1;
580
- }
585
+ }
586
+ message SetNewPasswordConfirmedRequest {
587
+ string token = 1;
588
+ string new_password = 2;
589
+ }
@@ -257,6 +257,17 @@ function deserialize_user_RegistrationRequest(buffer_arg) {
257
257
  return user_pb.RegistrationRequest.deserializeBinary(new Uint8Array(buffer_arg));
258
258
  }
259
259
 
260
+ function serialize_user_ResetPasswordConfirmationRequest(arg) {
261
+ if (!(arg instanceof user_pb.ResetPasswordConfirmationRequest)) {
262
+ throw new Error('Expected argument of type user.ResetPasswordConfirmationRequest');
263
+ }
264
+ return Buffer.from(arg.serializeBinary());
265
+ }
266
+
267
+ function deserialize_user_ResetPasswordConfirmationRequest(buffer_arg) {
268
+ return user_pb.ResetPasswordConfirmationRequest.deserializeBinary(new Uint8Array(buffer_arg));
269
+ }
270
+
260
271
  function serialize_user_RiskStatusItemsResponse(arg) {
261
272
  if (!(arg instanceof user_pb.RiskStatusItemsResponse)) {
262
273
  throw new Error('Expected argument of type user.RiskStatusItemsResponse');
@@ -378,6 +389,17 @@ function deserialize_user_SegmentStatusResponse(buffer_arg) {
378
389
  return user_pb.SegmentStatusResponse.deserializeBinary(new Uint8Array(buffer_arg));
379
390
  }
380
391
 
392
+ function serialize_user_SetNewPasswordConfirmedRequest(arg) {
393
+ if (!(arg instanceof user_pb.SetNewPasswordConfirmedRequest)) {
394
+ throw new Error('Expected argument of type user.SetNewPasswordConfirmedRequest');
395
+ }
396
+ return Buffer.from(arg.serializeBinary());
397
+ }
398
+
399
+ function deserialize_user_SetNewPasswordConfirmedRequest(buffer_arg) {
400
+ return user_pb.SetNewPasswordConfirmedRequest.deserializeBinary(new Uint8Array(buffer_arg));
401
+ }
402
+
381
403
  function serialize_user_SumSubApplicantRequest(arg) {
382
404
  if (!(arg instanceof user_pb.SumSubApplicantRequest)) {
383
405
  throw new Error('Expected argument of type user.SumSubApplicantRequest');
@@ -965,6 +987,28 @@ attemptEmailConfirmation: {
965
987
  responseSerialize: serialize_user_ConfirmationStatusResponse,
966
988
  responseDeserialize: deserialize_user_ConfirmationStatusResponse,
967
989
  },
990
+ attemptResetPasswordConfirmation: {
991
+ path: '/user.User/attemptResetPasswordConfirmation',
992
+ requestStream: false,
993
+ responseStream: false,
994
+ requestType: user_pb.ResetPasswordConfirmationRequest,
995
+ responseType: user_pb.ConfirmationStatusResponse,
996
+ requestSerialize: serialize_user_ResetPasswordConfirmationRequest,
997
+ requestDeserialize: deserialize_user_ResetPasswordConfirmationRequest,
998
+ responseSerialize: serialize_user_ConfirmationStatusResponse,
999
+ responseDeserialize: deserialize_user_ConfirmationStatusResponse,
1000
+ },
1001
+ setNewPassword: {
1002
+ path: '/user.User/setNewPassword',
1003
+ requestStream: false,
1004
+ responseStream: false,
1005
+ requestType: user_pb.SetNewPasswordConfirmedRequest,
1006
+ responseType: user_pb.ConfirmationStatusResponse,
1007
+ requestSerialize: serialize_user_SetNewPasswordConfirmedRequest,
1008
+ requestDeserialize: deserialize_user_SetNewPasswordConfirmedRequest,
1009
+ responseSerialize: serialize_user_ConfirmationStatusResponse,
1010
+ responseDeserialize: deserialize_user_ConfirmationStatusResponse,
1011
+ },
968
1012
  };
969
1013
 
970
1014
  exports.UserClient = grpc.makeGenericClientConstructor(UserService);
package/user/user_pb.js CHANGED
@@ -47,6 +47,7 @@ goog.exportSymbol('proto.user.PaginationRequest', null, global);
47
47
  goog.exportSymbol('proto.user.PingRequest', null, global);
48
48
  goog.exportSymbol('proto.user.PongResponse', null, global);
49
49
  goog.exportSymbol('proto.user.RegistrationRequest', null, global);
50
+ goog.exportSymbol('proto.user.ResetPasswordConfirmationRequest', null, global);
50
51
  goog.exportSymbol('proto.user.RiskStatus', null, global);
51
52
  goog.exportSymbol('proto.user.RiskStatusItemsResponse', null, global);
52
53
  goog.exportSymbol('proto.user.Role', null, global);
@@ -70,6 +71,7 @@ goog.exportSymbol('proto.user.SegmentSearchParams', null, global);
70
71
  goog.exportSymbol('proto.user.SegmentSessionRuleItem', null, global);
71
72
  goog.exportSymbol('proto.user.SegmentSessionRuleRequest', null, global);
72
73
  goog.exportSymbol('proto.user.SegmentStatusResponse', null, global);
74
+ goog.exportSymbol('proto.user.SetNewPasswordConfirmedRequest', null, global);
73
75
  goog.exportSymbol('proto.user.SumSubApplicantRequest', null, global);
74
76
  goog.exportSymbol('proto.user.SumSubDocumentItemRequest', null, global);
75
77
  goog.exportSymbol('proto.user.SumSubDocumentRequest', null, global);
@@ -1432,6 +1434,27 @@ if (goog.DEBUG && !COMPILED) {
1432
1434
  */
1433
1435
  proto.user.EmailConfirmationRequest.displayName = 'proto.user.EmailConfirmationRequest';
1434
1436
  }
1437
+ /**
1438
+ * Generated by JsPbCodeGenerator.
1439
+ * @param {Array=} opt_data Optional initial data array, typically from a
1440
+ * server response, or constructed directly in Javascript. The array is used
1441
+ * in place and becomes part of the constructed object. It is not cloned.
1442
+ * If no data is provided, the constructed object will be empty, but still
1443
+ * valid.
1444
+ * @extends {jspb.Message}
1445
+ * @constructor
1446
+ */
1447
+ proto.user.ResetPasswordConfirmationRequest = function(opt_data) {
1448
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
1449
+ };
1450
+ goog.inherits(proto.user.ResetPasswordConfirmationRequest, jspb.Message);
1451
+ if (goog.DEBUG && !COMPILED) {
1452
+ /**
1453
+ * @public
1454
+ * @override
1455
+ */
1456
+ proto.user.ResetPasswordConfirmationRequest.displayName = 'proto.user.ResetPasswordConfirmationRequest';
1457
+ }
1435
1458
  /**
1436
1459
  * Generated by JsPbCodeGenerator.
1437
1460
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -1474,6 +1497,27 @@ if (goog.DEBUG && !COMPILED) {
1474
1497
  */
1475
1498
  proto.user.EmailConfirmedRequest.displayName = 'proto.user.EmailConfirmedRequest';
1476
1499
  }
1500
+ /**
1501
+ * Generated by JsPbCodeGenerator.
1502
+ * @param {Array=} opt_data Optional initial data array, typically from a
1503
+ * server response, or constructed directly in Javascript. The array is used
1504
+ * in place and becomes part of the constructed object. It is not cloned.
1505
+ * If no data is provided, the constructed object will be empty, but still
1506
+ * valid.
1507
+ * @extends {jspb.Message}
1508
+ * @constructor
1509
+ */
1510
+ proto.user.SetNewPasswordConfirmedRequest = function(opt_data) {
1511
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
1512
+ };
1513
+ goog.inherits(proto.user.SetNewPasswordConfirmedRequest, jspb.Message);
1514
+ if (goog.DEBUG && !COMPILED) {
1515
+ /**
1516
+ * @public
1517
+ * @override
1518
+ */
1519
+ proto.user.SetNewPasswordConfirmedRequest.displayName = 'proto.user.SetNewPasswordConfirmedRequest';
1520
+ }
1477
1521
 
1478
1522
 
1479
1523
 
@@ -25312,6 +25356,136 @@ proto.user.EmailConfirmationRequest.prototype.setUserId = function(value) {
25312
25356
 
25313
25357
 
25314
25358
 
25359
+ if (jspb.Message.GENERATE_TO_OBJECT) {
25360
+ /**
25361
+ * Creates an object representation of this proto.
25362
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
25363
+ * Optional fields that are not set will be set to undefined.
25364
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
25365
+ * For the list of reserved names please see:
25366
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
25367
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
25368
+ * JSPB instance for transitional soy proto support:
25369
+ * http://goto/soy-param-migration
25370
+ * @return {!Object}
25371
+ */
25372
+ proto.user.ResetPasswordConfirmationRequest.prototype.toObject = function(opt_includeInstance) {
25373
+ return proto.user.ResetPasswordConfirmationRequest.toObject(opt_includeInstance, this);
25374
+ };
25375
+
25376
+
25377
+ /**
25378
+ * Static version of the {@see toObject} method.
25379
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
25380
+ * the JSPB instance for transitional soy proto support:
25381
+ * http://goto/soy-param-migration
25382
+ * @param {!proto.user.ResetPasswordConfirmationRequest} msg The msg instance to transform.
25383
+ * @return {!Object}
25384
+ * @suppress {unusedLocalVariables} f is only used for nested messages
25385
+ */
25386
+ proto.user.ResetPasswordConfirmationRequest.toObject = function(includeInstance, msg) {
25387
+ var f, obj = {
25388
+ userEmail: jspb.Message.getFieldWithDefault(msg, 1, "")
25389
+ };
25390
+
25391
+ if (includeInstance) {
25392
+ obj.$jspbMessageInstance = msg;
25393
+ }
25394
+ return obj;
25395
+ };
25396
+ }
25397
+
25398
+
25399
+ /**
25400
+ * Deserializes binary data (in protobuf wire format).
25401
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
25402
+ * @return {!proto.user.ResetPasswordConfirmationRequest}
25403
+ */
25404
+ proto.user.ResetPasswordConfirmationRequest.deserializeBinary = function(bytes) {
25405
+ var reader = new jspb.BinaryReader(bytes);
25406
+ var msg = new proto.user.ResetPasswordConfirmationRequest;
25407
+ return proto.user.ResetPasswordConfirmationRequest.deserializeBinaryFromReader(msg, reader);
25408
+ };
25409
+
25410
+
25411
+ /**
25412
+ * Deserializes binary data (in protobuf wire format) from the
25413
+ * given reader into the given message object.
25414
+ * @param {!proto.user.ResetPasswordConfirmationRequest} msg The message object to deserialize into.
25415
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
25416
+ * @return {!proto.user.ResetPasswordConfirmationRequest}
25417
+ */
25418
+ proto.user.ResetPasswordConfirmationRequest.deserializeBinaryFromReader = function(msg, reader) {
25419
+ while (reader.nextField()) {
25420
+ if (reader.isEndGroup()) {
25421
+ break;
25422
+ }
25423
+ var field = reader.getFieldNumber();
25424
+ switch (field) {
25425
+ case 1:
25426
+ var value = /** @type {string} */ (reader.readString());
25427
+ msg.setUserEmail(value);
25428
+ break;
25429
+ default:
25430
+ reader.skipField();
25431
+ break;
25432
+ }
25433
+ }
25434
+ return msg;
25435
+ };
25436
+
25437
+
25438
+ /**
25439
+ * Serializes the message to binary data (in protobuf wire format).
25440
+ * @return {!Uint8Array}
25441
+ */
25442
+ proto.user.ResetPasswordConfirmationRequest.prototype.serializeBinary = function() {
25443
+ var writer = new jspb.BinaryWriter();
25444
+ proto.user.ResetPasswordConfirmationRequest.serializeBinaryToWriter(this, writer);
25445
+ return writer.getResultBuffer();
25446
+ };
25447
+
25448
+
25449
+ /**
25450
+ * Serializes the given message to binary data (in protobuf wire
25451
+ * format), writing to the given BinaryWriter.
25452
+ * @param {!proto.user.ResetPasswordConfirmationRequest} message
25453
+ * @param {!jspb.BinaryWriter} writer
25454
+ * @suppress {unusedLocalVariables} f is only used for nested messages
25455
+ */
25456
+ proto.user.ResetPasswordConfirmationRequest.serializeBinaryToWriter = function(message, writer) {
25457
+ var f = undefined;
25458
+ f = message.getUserEmail();
25459
+ if (f.length > 0) {
25460
+ writer.writeString(
25461
+ 1,
25462
+ f
25463
+ );
25464
+ }
25465
+ };
25466
+
25467
+
25468
+ /**
25469
+ * optional string user_email = 1;
25470
+ * @return {string}
25471
+ */
25472
+ proto.user.ResetPasswordConfirmationRequest.prototype.getUserEmail = function() {
25473
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
25474
+ };
25475
+
25476
+
25477
+ /**
25478
+ * @param {string} value
25479
+ * @return {!proto.user.ResetPasswordConfirmationRequest} returns this
25480
+ */
25481
+ proto.user.ResetPasswordConfirmationRequest.prototype.setUserEmail = function(value) {
25482
+ return jspb.Message.setProto3StringField(this, 1, value);
25483
+ };
25484
+
25485
+
25486
+
25487
+
25488
+
25315
25489
  if (jspb.Message.GENERATE_TO_OBJECT) {
25316
25490
  /**
25317
25491
  * Creates an object representation of this proto.
@@ -25569,4 +25743,164 @@ proto.user.EmailConfirmedRequest.prototype.setToken = function(value) {
25569
25743
  };
25570
25744
 
25571
25745
 
25746
+
25747
+
25748
+
25749
+ if (jspb.Message.GENERATE_TO_OBJECT) {
25750
+ /**
25751
+ * Creates an object representation of this proto.
25752
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
25753
+ * Optional fields that are not set will be set to undefined.
25754
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
25755
+ * For the list of reserved names please see:
25756
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
25757
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
25758
+ * JSPB instance for transitional soy proto support:
25759
+ * http://goto/soy-param-migration
25760
+ * @return {!Object}
25761
+ */
25762
+ proto.user.SetNewPasswordConfirmedRequest.prototype.toObject = function(opt_includeInstance) {
25763
+ return proto.user.SetNewPasswordConfirmedRequest.toObject(opt_includeInstance, this);
25764
+ };
25765
+
25766
+
25767
+ /**
25768
+ * Static version of the {@see toObject} method.
25769
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
25770
+ * the JSPB instance for transitional soy proto support:
25771
+ * http://goto/soy-param-migration
25772
+ * @param {!proto.user.SetNewPasswordConfirmedRequest} msg The msg instance to transform.
25773
+ * @return {!Object}
25774
+ * @suppress {unusedLocalVariables} f is only used for nested messages
25775
+ */
25776
+ proto.user.SetNewPasswordConfirmedRequest.toObject = function(includeInstance, msg) {
25777
+ var f, obj = {
25778
+ token: jspb.Message.getFieldWithDefault(msg, 1, ""),
25779
+ newPassword: jspb.Message.getFieldWithDefault(msg, 2, "")
25780
+ };
25781
+
25782
+ if (includeInstance) {
25783
+ obj.$jspbMessageInstance = msg;
25784
+ }
25785
+ return obj;
25786
+ };
25787
+ }
25788
+
25789
+
25790
+ /**
25791
+ * Deserializes binary data (in protobuf wire format).
25792
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
25793
+ * @return {!proto.user.SetNewPasswordConfirmedRequest}
25794
+ */
25795
+ proto.user.SetNewPasswordConfirmedRequest.deserializeBinary = function(bytes) {
25796
+ var reader = new jspb.BinaryReader(bytes);
25797
+ var msg = new proto.user.SetNewPasswordConfirmedRequest;
25798
+ return proto.user.SetNewPasswordConfirmedRequest.deserializeBinaryFromReader(msg, reader);
25799
+ };
25800
+
25801
+
25802
+ /**
25803
+ * Deserializes binary data (in protobuf wire format) from the
25804
+ * given reader into the given message object.
25805
+ * @param {!proto.user.SetNewPasswordConfirmedRequest} msg The message object to deserialize into.
25806
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
25807
+ * @return {!proto.user.SetNewPasswordConfirmedRequest}
25808
+ */
25809
+ proto.user.SetNewPasswordConfirmedRequest.deserializeBinaryFromReader = function(msg, reader) {
25810
+ while (reader.nextField()) {
25811
+ if (reader.isEndGroup()) {
25812
+ break;
25813
+ }
25814
+ var field = reader.getFieldNumber();
25815
+ switch (field) {
25816
+ case 1:
25817
+ var value = /** @type {string} */ (reader.readString());
25818
+ msg.setToken(value);
25819
+ break;
25820
+ case 2:
25821
+ var value = /** @type {string} */ (reader.readString());
25822
+ msg.setNewPassword(value);
25823
+ break;
25824
+ default:
25825
+ reader.skipField();
25826
+ break;
25827
+ }
25828
+ }
25829
+ return msg;
25830
+ };
25831
+
25832
+
25833
+ /**
25834
+ * Serializes the message to binary data (in protobuf wire format).
25835
+ * @return {!Uint8Array}
25836
+ */
25837
+ proto.user.SetNewPasswordConfirmedRequest.prototype.serializeBinary = function() {
25838
+ var writer = new jspb.BinaryWriter();
25839
+ proto.user.SetNewPasswordConfirmedRequest.serializeBinaryToWriter(this, writer);
25840
+ return writer.getResultBuffer();
25841
+ };
25842
+
25843
+
25844
+ /**
25845
+ * Serializes the given message to binary data (in protobuf wire
25846
+ * format), writing to the given BinaryWriter.
25847
+ * @param {!proto.user.SetNewPasswordConfirmedRequest} message
25848
+ * @param {!jspb.BinaryWriter} writer
25849
+ * @suppress {unusedLocalVariables} f is only used for nested messages
25850
+ */
25851
+ proto.user.SetNewPasswordConfirmedRequest.serializeBinaryToWriter = function(message, writer) {
25852
+ var f = undefined;
25853
+ f = message.getToken();
25854
+ if (f.length > 0) {
25855
+ writer.writeString(
25856
+ 1,
25857
+ f
25858
+ );
25859
+ }
25860
+ f = message.getNewPassword();
25861
+ if (f.length > 0) {
25862
+ writer.writeString(
25863
+ 2,
25864
+ f
25865
+ );
25866
+ }
25867
+ };
25868
+
25869
+
25870
+ /**
25871
+ * optional string token = 1;
25872
+ * @return {string}
25873
+ */
25874
+ proto.user.SetNewPasswordConfirmedRequest.prototype.getToken = function() {
25875
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
25876
+ };
25877
+
25878
+
25879
+ /**
25880
+ * @param {string} value
25881
+ * @return {!proto.user.SetNewPasswordConfirmedRequest} returns this
25882
+ */
25883
+ proto.user.SetNewPasswordConfirmedRequest.prototype.setToken = function(value) {
25884
+ return jspb.Message.setProto3StringField(this, 1, value);
25885
+ };
25886
+
25887
+
25888
+ /**
25889
+ * optional string new_password = 2;
25890
+ * @return {string}
25891
+ */
25892
+ proto.user.SetNewPasswordConfirmedRequest.prototype.getNewPassword = function() {
25893
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
25894
+ };
25895
+
25896
+
25897
+ /**
25898
+ * @param {string} value
25899
+ * @return {!proto.user.SetNewPasswordConfirmedRequest} returns this
25900
+ */
25901
+ proto.user.SetNewPasswordConfirmedRequest.prototype.setNewPassword = function(value) {
25902
+ return jspb.Message.setProto3StringField(this, 2, value);
25903
+ };
25904
+
25905
+
25572
25906
  goog.object.extend(exports, proto.user);