@sellout/models 0.0.429 → 0.0.430

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.
@@ -59486,6 +59486,1518 @@ $root.VerifyUserEmailResponse = (function() {
59486
59486
  return VerifyUserEmailResponse;
59487
59487
  })();
59488
59488
 
59489
+ $root.SendRegistrationEmailCodeRequest = (function() {
59490
+
59491
+ /**
59492
+ * Properties of a SendRegistrationEmailCodeRequest.
59493
+ * @exports ISendRegistrationEmailCodeRequest
59494
+ * @interface ISendRegistrationEmailCodeRequest
59495
+ * @property {string|null} [spanContext] SendRegistrationEmailCodeRequest spanContext
59496
+ * @property {string|null} [email] SendRegistrationEmailCodeRequest email
59497
+ */
59498
+
59499
+ /**
59500
+ * Constructs a new SendRegistrationEmailCodeRequest.
59501
+ * @exports SendRegistrationEmailCodeRequest
59502
+ * @classdesc Represents a SendRegistrationEmailCodeRequest.
59503
+ * @implements ISendRegistrationEmailCodeRequest
59504
+ * @constructor
59505
+ * @param {ISendRegistrationEmailCodeRequest=} [properties] Properties to set
59506
+ */
59507
+ function SendRegistrationEmailCodeRequest(properties) {
59508
+ if (properties)
59509
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
59510
+ if (properties[keys[i]] != null)
59511
+ this[keys[i]] = properties[keys[i]];
59512
+ }
59513
+
59514
+ /**
59515
+ * SendRegistrationEmailCodeRequest spanContext.
59516
+ * @member {string} spanContext
59517
+ * @memberof SendRegistrationEmailCodeRequest
59518
+ * @instance
59519
+ */
59520
+ SendRegistrationEmailCodeRequest.prototype.spanContext = "";
59521
+
59522
+ /**
59523
+ * SendRegistrationEmailCodeRequest email.
59524
+ * @member {string} email
59525
+ * @memberof SendRegistrationEmailCodeRequest
59526
+ * @instance
59527
+ */
59528
+ SendRegistrationEmailCodeRequest.prototype.email = "";
59529
+
59530
+ /**
59531
+ * Creates a new SendRegistrationEmailCodeRequest instance using the specified properties.
59532
+ * @function create
59533
+ * @memberof SendRegistrationEmailCodeRequest
59534
+ * @static
59535
+ * @param {ISendRegistrationEmailCodeRequest=} [properties] Properties to set
59536
+ * @returns {SendRegistrationEmailCodeRequest} SendRegistrationEmailCodeRequest instance
59537
+ */
59538
+ SendRegistrationEmailCodeRequest.create = function create(properties) {
59539
+ return new SendRegistrationEmailCodeRequest(properties);
59540
+ };
59541
+
59542
+ /**
59543
+ * Encodes the specified SendRegistrationEmailCodeRequest message. Does not implicitly {@link SendRegistrationEmailCodeRequest.verify|verify} messages.
59544
+ * @function encode
59545
+ * @memberof SendRegistrationEmailCodeRequest
59546
+ * @static
59547
+ * @param {ISendRegistrationEmailCodeRequest} message SendRegistrationEmailCodeRequest message or plain object to encode
59548
+ * @param {$protobuf.Writer} [writer] Writer to encode to
59549
+ * @returns {$protobuf.Writer} Writer
59550
+ */
59551
+ SendRegistrationEmailCodeRequest.encode = function encode(message, writer) {
59552
+ if (!writer)
59553
+ writer = $Writer.create();
59554
+ if (message.spanContext != null && Object.hasOwnProperty.call(message, "spanContext"))
59555
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.spanContext);
59556
+ if (message.email != null && Object.hasOwnProperty.call(message, "email"))
59557
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.email);
59558
+ return writer;
59559
+ };
59560
+
59561
+ /**
59562
+ * Encodes the specified SendRegistrationEmailCodeRequest message, length delimited. Does not implicitly {@link SendRegistrationEmailCodeRequest.verify|verify} messages.
59563
+ * @function encodeDelimited
59564
+ * @memberof SendRegistrationEmailCodeRequest
59565
+ * @static
59566
+ * @param {ISendRegistrationEmailCodeRequest} message SendRegistrationEmailCodeRequest message or plain object to encode
59567
+ * @param {$protobuf.Writer} [writer] Writer to encode to
59568
+ * @returns {$protobuf.Writer} Writer
59569
+ */
59570
+ SendRegistrationEmailCodeRequest.encodeDelimited = function encodeDelimited(message, writer) {
59571
+ return this.encode(message, writer).ldelim();
59572
+ };
59573
+
59574
+ /**
59575
+ * Decodes a SendRegistrationEmailCodeRequest message from the specified reader or buffer.
59576
+ * @function decode
59577
+ * @memberof SendRegistrationEmailCodeRequest
59578
+ * @static
59579
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
59580
+ * @param {number} [length] Message length if known beforehand
59581
+ * @returns {SendRegistrationEmailCodeRequest} SendRegistrationEmailCodeRequest
59582
+ * @throws {Error} If the payload is not a reader or valid buffer
59583
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
59584
+ */
59585
+ SendRegistrationEmailCodeRequest.decode = function decode(reader, length) {
59586
+ if (!(reader instanceof $Reader))
59587
+ reader = $Reader.create(reader);
59588
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.SendRegistrationEmailCodeRequest();
59589
+ while (reader.pos < end) {
59590
+ var tag = reader.uint32();
59591
+ switch (tag >>> 3) {
59592
+ case 1:
59593
+ message.spanContext = reader.string();
59594
+ break;
59595
+ case 2:
59596
+ message.email = reader.string();
59597
+ break;
59598
+ default:
59599
+ reader.skipType(tag & 7);
59600
+ break;
59601
+ }
59602
+ }
59603
+ return message;
59604
+ };
59605
+
59606
+ /**
59607
+ * Decodes a SendRegistrationEmailCodeRequest message from the specified reader or buffer, length delimited.
59608
+ * @function decodeDelimited
59609
+ * @memberof SendRegistrationEmailCodeRequest
59610
+ * @static
59611
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
59612
+ * @returns {SendRegistrationEmailCodeRequest} SendRegistrationEmailCodeRequest
59613
+ * @throws {Error} If the payload is not a reader or valid buffer
59614
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
59615
+ */
59616
+ SendRegistrationEmailCodeRequest.decodeDelimited = function decodeDelimited(reader) {
59617
+ if (!(reader instanceof $Reader))
59618
+ reader = new $Reader(reader);
59619
+ return this.decode(reader, reader.uint32());
59620
+ };
59621
+
59622
+ /**
59623
+ * Verifies a SendRegistrationEmailCodeRequest message.
59624
+ * @function verify
59625
+ * @memberof SendRegistrationEmailCodeRequest
59626
+ * @static
59627
+ * @param {Object.<string,*>} message Plain object to verify
59628
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
59629
+ */
59630
+ SendRegistrationEmailCodeRequest.verify = function verify(message) {
59631
+ if (typeof message !== "object" || message === null)
59632
+ return "object expected";
59633
+ if (message.spanContext != null && message.hasOwnProperty("spanContext"))
59634
+ if (!$util.isString(message.spanContext))
59635
+ return "spanContext: string expected";
59636
+ if (message.email != null && message.hasOwnProperty("email"))
59637
+ if (!$util.isString(message.email))
59638
+ return "email: string expected";
59639
+ return null;
59640
+ };
59641
+
59642
+ /**
59643
+ * Creates a SendRegistrationEmailCodeRequest message from a plain object. Also converts values to their respective internal types.
59644
+ * @function fromObject
59645
+ * @memberof SendRegistrationEmailCodeRequest
59646
+ * @static
59647
+ * @param {Object.<string,*>} object Plain object
59648
+ * @returns {SendRegistrationEmailCodeRequest} SendRegistrationEmailCodeRequest
59649
+ */
59650
+ SendRegistrationEmailCodeRequest.fromObject = function fromObject(object) {
59651
+ if (object instanceof $root.SendRegistrationEmailCodeRequest)
59652
+ return object;
59653
+ var message = new $root.SendRegistrationEmailCodeRequest();
59654
+ if (object.spanContext != null)
59655
+ message.spanContext = String(object.spanContext);
59656
+ if (object.email != null)
59657
+ message.email = String(object.email);
59658
+ return message;
59659
+ };
59660
+
59661
+ /**
59662
+ * Creates a plain object from a SendRegistrationEmailCodeRequest message. Also converts values to other types if specified.
59663
+ * @function toObject
59664
+ * @memberof SendRegistrationEmailCodeRequest
59665
+ * @static
59666
+ * @param {SendRegistrationEmailCodeRequest} message SendRegistrationEmailCodeRequest
59667
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
59668
+ * @returns {Object.<string,*>} Plain object
59669
+ */
59670
+ SendRegistrationEmailCodeRequest.toObject = function toObject(message, options) {
59671
+ if (!options)
59672
+ options = {};
59673
+ var object = {};
59674
+ if (options.defaults) {
59675
+ object.spanContext = "";
59676
+ object.email = "";
59677
+ }
59678
+ if (message.spanContext != null && message.hasOwnProperty("spanContext"))
59679
+ object.spanContext = message.spanContext;
59680
+ if (message.email != null && message.hasOwnProperty("email"))
59681
+ object.email = message.email;
59682
+ return object;
59683
+ };
59684
+
59685
+ /**
59686
+ * Converts this SendRegistrationEmailCodeRequest to JSON.
59687
+ * @function toJSON
59688
+ * @memberof SendRegistrationEmailCodeRequest
59689
+ * @instance
59690
+ * @returns {Object.<string,*>} JSON object
59691
+ */
59692
+ SendRegistrationEmailCodeRequest.prototype.toJSON = function toJSON() {
59693
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
59694
+ };
59695
+
59696
+ return SendRegistrationEmailCodeRequest;
59697
+ })();
59698
+
59699
+ $root.SendRegistrationEmailCodeResponse = (function() {
59700
+
59701
+ /**
59702
+ * Properties of a SendRegistrationEmailCodeResponse.
59703
+ * @exports ISendRegistrationEmailCodeResponse
59704
+ * @interface ISendRegistrationEmailCodeResponse
59705
+ * @property {StatusCode|null} [status] SendRegistrationEmailCodeResponse status
59706
+ * @property {Array.<IError>|null} [errors] SendRegistrationEmailCodeResponse errors
59707
+ */
59708
+
59709
+ /**
59710
+ * Constructs a new SendRegistrationEmailCodeResponse.
59711
+ * @exports SendRegistrationEmailCodeResponse
59712
+ * @classdesc Represents a SendRegistrationEmailCodeResponse.
59713
+ * @implements ISendRegistrationEmailCodeResponse
59714
+ * @constructor
59715
+ * @param {ISendRegistrationEmailCodeResponse=} [properties] Properties to set
59716
+ */
59717
+ function SendRegistrationEmailCodeResponse(properties) {
59718
+ this.errors = [];
59719
+ if (properties)
59720
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
59721
+ if (properties[keys[i]] != null)
59722
+ this[keys[i]] = properties[keys[i]];
59723
+ }
59724
+
59725
+ /**
59726
+ * SendRegistrationEmailCodeResponse status.
59727
+ * @member {StatusCode} status
59728
+ * @memberof SendRegistrationEmailCodeResponse
59729
+ * @instance
59730
+ */
59731
+ SendRegistrationEmailCodeResponse.prototype.status = 0;
59732
+
59733
+ /**
59734
+ * SendRegistrationEmailCodeResponse errors.
59735
+ * @member {Array.<IError>} errors
59736
+ * @memberof SendRegistrationEmailCodeResponse
59737
+ * @instance
59738
+ */
59739
+ SendRegistrationEmailCodeResponse.prototype.errors = $util.emptyArray;
59740
+
59741
+ /**
59742
+ * Creates a new SendRegistrationEmailCodeResponse instance using the specified properties.
59743
+ * @function create
59744
+ * @memberof SendRegistrationEmailCodeResponse
59745
+ * @static
59746
+ * @param {ISendRegistrationEmailCodeResponse=} [properties] Properties to set
59747
+ * @returns {SendRegistrationEmailCodeResponse} SendRegistrationEmailCodeResponse instance
59748
+ */
59749
+ SendRegistrationEmailCodeResponse.create = function create(properties) {
59750
+ return new SendRegistrationEmailCodeResponse(properties);
59751
+ };
59752
+
59753
+ /**
59754
+ * Encodes the specified SendRegistrationEmailCodeResponse message. Does not implicitly {@link SendRegistrationEmailCodeResponse.verify|verify} messages.
59755
+ * @function encode
59756
+ * @memberof SendRegistrationEmailCodeResponse
59757
+ * @static
59758
+ * @param {ISendRegistrationEmailCodeResponse} message SendRegistrationEmailCodeResponse message or plain object to encode
59759
+ * @param {$protobuf.Writer} [writer] Writer to encode to
59760
+ * @returns {$protobuf.Writer} Writer
59761
+ */
59762
+ SendRegistrationEmailCodeResponse.encode = function encode(message, writer) {
59763
+ if (!writer)
59764
+ writer = $Writer.create();
59765
+ if (message.status != null && Object.hasOwnProperty.call(message, "status"))
59766
+ writer.uint32(/* id 1, wireType 0 =*/8).int32(message.status);
59767
+ if (message.errors != null && message.errors.length)
59768
+ for (var i = 0; i < message.errors.length; ++i)
59769
+ $root.Error.encode(message.errors[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
59770
+ return writer;
59771
+ };
59772
+
59773
+ /**
59774
+ * Encodes the specified SendRegistrationEmailCodeResponse message, length delimited. Does not implicitly {@link SendRegistrationEmailCodeResponse.verify|verify} messages.
59775
+ * @function encodeDelimited
59776
+ * @memberof SendRegistrationEmailCodeResponse
59777
+ * @static
59778
+ * @param {ISendRegistrationEmailCodeResponse} message SendRegistrationEmailCodeResponse message or plain object to encode
59779
+ * @param {$protobuf.Writer} [writer] Writer to encode to
59780
+ * @returns {$protobuf.Writer} Writer
59781
+ */
59782
+ SendRegistrationEmailCodeResponse.encodeDelimited = function encodeDelimited(message, writer) {
59783
+ return this.encode(message, writer).ldelim();
59784
+ };
59785
+
59786
+ /**
59787
+ * Decodes a SendRegistrationEmailCodeResponse message from the specified reader or buffer.
59788
+ * @function decode
59789
+ * @memberof SendRegistrationEmailCodeResponse
59790
+ * @static
59791
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
59792
+ * @param {number} [length] Message length if known beforehand
59793
+ * @returns {SendRegistrationEmailCodeResponse} SendRegistrationEmailCodeResponse
59794
+ * @throws {Error} If the payload is not a reader or valid buffer
59795
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
59796
+ */
59797
+ SendRegistrationEmailCodeResponse.decode = function decode(reader, length) {
59798
+ if (!(reader instanceof $Reader))
59799
+ reader = $Reader.create(reader);
59800
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.SendRegistrationEmailCodeResponse();
59801
+ while (reader.pos < end) {
59802
+ var tag = reader.uint32();
59803
+ switch (tag >>> 3) {
59804
+ case 1:
59805
+ message.status = reader.int32();
59806
+ break;
59807
+ case 2:
59808
+ if (!(message.errors && message.errors.length))
59809
+ message.errors = [];
59810
+ message.errors.push($root.Error.decode(reader, reader.uint32()));
59811
+ break;
59812
+ default:
59813
+ reader.skipType(tag & 7);
59814
+ break;
59815
+ }
59816
+ }
59817
+ return message;
59818
+ };
59819
+
59820
+ /**
59821
+ * Decodes a SendRegistrationEmailCodeResponse message from the specified reader or buffer, length delimited.
59822
+ * @function decodeDelimited
59823
+ * @memberof SendRegistrationEmailCodeResponse
59824
+ * @static
59825
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
59826
+ * @returns {SendRegistrationEmailCodeResponse} SendRegistrationEmailCodeResponse
59827
+ * @throws {Error} If the payload is not a reader or valid buffer
59828
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
59829
+ */
59830
+ SendRegistrationEmailCodeResponse.decodeDelimited = function decodeDelimited(reader) {
59831
+ if (!(reader instanceof $Reader))
59832
+ reader = new $Reader(reader);
59833
+ return this.decode(reader, reader.uint32());
59834
+ };
59835
+
59836
+ /**
59837
+ * Verifies a SendRegistrationEmailCodeResponse message.
59838
+ * @function verify
59839
+ * @memberof SendRegistrationEmailCodeResponse
59840
+ * @static
59841
+ * @param {Object.<string,*>} message Plain object to verify
59842
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
59843
+ */
59844
+ SendRegistrationEmailCodeResponse.verify = function verify(message) {
59845
+ if (typeof message !== "object" || message === null)
59846
+ return "object expected";
59847
+ if (message.status != null && message.hasOwnProperty("status"))
59848
+ switch (message.status) {
59849
+ default:
59850
+ return "status: enum value expected";
59851
+ case 0:
59852
+ case 200:
59853
+ case 400:
59854
+ case 401:
59855
+ case 403:
59856
+ case 422:
59857
+ case 404:
59858
+ case 500:
59859
+ case 504:
59860
+ break;
59861
+ }
59862
+ if (message.errors != null && message.hasOwnProperty("errors")) {
59863
+ if (!Array.isArray(message.errors))
59864
+ return "errors: array expected";
59865
+ for (var i = 0; i < message.errors.length; ++i) {
59866
+ var error = $root.Error.verify(message.errors[i]);
59867
+ if (error)
59868
+ return "errors." + error;
59869
+ }
59870
+ }
59871
+ return null;
59872
+ };
59873
+
59874
+ /**
59875
+ * Creates a SendRegistrationEmailCodeResponse message from a plain object. Also converts values to their respective internal types.
59876
+ * @function fromObject
59877
+ * @memberof SendRegistrationEmailCodeResponse
59878
+ * @static
59879
+ * @param {Object.<string,*>} object Plain object
59880
+ * @returns {SendRegistrationEmailCodeResponse} SendRegistrationEmailCodeResponse
59881
+ */
59882
+ SendRegistrationEmailCodeResponse.fromObject = function fromObject(object) {
59883
+ if (object instanceof $root.SendRegistrationEmailCodeResponse)
59884
+ return object;
59885
+ var message = new $root.SendRegistrationEmailCodeResponse();
59886
+ switch (object.status) {
59887
+ case "UNKNOWN_CODE":
59888
+ case 0:
59889
+ message.status = 0;
59890
+ break;
59891
+ case "OK":
59892
+ case 200:
59893
+ message.status = 200;
59894
+ break;
59895
+ case "BAD_REQUEST":
59896
+ case 400:
59897
+ message.status = 400;
59898
+ break;
59899
+ case "UNAUTHORIZED":
59900
+ case 401:
59901
+ message.status = 401;
59902
+ break;
59903
+ case "FORBIDDEN":
59904
+ case 403:
59905
+ message.status = 403;
59906
+ break;
59907
+ case "UNPROCESSABLE_ENTITY":
59908
+ case 422:
59909
+ message.status = 422;
59910
+ break;
59911
+ case "NOT_FOUND":
59912
+ case 404:
59913
+ message.status = 404;
59914
+ break;
59915
+ case "INTERNAL_SERVER_ERROR":
59916
+ case 500:
59917
+ message.status = 500;
59918
+ break;
59919
+ case "GATEWAY_TIMEOUT":
59920
+ case 504:
59921
+ message.status = 504;
59922
+ break;
59923
+ }
59924
+ if (object.errors) {
59925
+ if (!Array.isArray(object.errors))
59926
+ throw TypeError(".SendRegistrationEmailCodeResponse.errors: array expected");
59927
+ message.errors = [];
59928
+ for (var i = 0; i < object.errors.length; ++i) {
59929
+ if (typeof object.errors[i] !== "object")
59930
+ throw TypeError(".SendRegistrationEmailCodeResponse.errors: object expected");
59931
+ message.errors[i] = $root.Error.fromObject(object.errors[i]);
59932
+ }
59933
+ }
59934
+ return message;
59935
+ };
59936
+
59937
+ /**
59938
+ * Creates a plain object from a SendRegistrationEmailCodeResponse message. Also converts values to other types if specified.
59939
+ * @function toObject
59940
+ * @memberof SendRegistrationEmailCodeResponse
59941
+ * @static
59942
+ * @param {SendRegistrationEmailCodeResponse} message SendRegistrationEmailCodeResponse
59943
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
59944
+ * @returns {Object.<string,*>} Plain object
59945
+ */
59946
+ SendRegistrationEmailCodeResponse.toObject = function toObject(message, options) {
59947
+ if (!options)
59948
+ options = {};
59949
+ var object = {};
59950
+ if (options.arrays || options.defaults)
59951
+ object.errors = [];
59952
+ if (options.defaults)
59953
+ object.status = options.enums === String ? "UNKNOWN_CODE" : 0;
59954
+ if (message.status != null && message.hasOwnProperty("status"))
59955
+ object.status = options.enums === String ? $root.StatusCode[message.status] : message.status;
59956
+ if (message.errors && message.errors.length) {
59957
+ object.errors = [];
59958
+ for (var j = 0; j < message.errors.length; ++j)
59959
+ object.errors[j] = $root.Error.toObject(message.errors[j], options);
59960
+ }
59961
+ return object;
59962
+ };
59963
+
59964
+ /**
59965
+ * Converts this SendRegistrationEmailCodeResponse to JSON.
59966
+ * @function toJSON
59967
+ * @memberof SendRegistrationEmailCodeResponse
59968
+ * @instance
59969
+ * @returns {Object.<string,*>} JSON object
59970
+ */
59971
+ SendRegistrationEmailCodeResponse.prototype.toJSON = function toJSON() {
59972
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
59973
+ };
59974
+
59975
+ return SendRegistrationEmailCodeResponse;
59976
+ })();
59977
+
59978
+ $root.VerifyRegistrationEmailCodeRequest = (function() {
59979
+
59980
+ /**
59981
+ * Properties of a VerifyRegistrationEmailCodeRequest.
59982
+ * @exports IVerifyRegistrationEmailCodeRequest
59983
+ * @interface IVerifyRegistrationEmailCodeRequest
59984
+ * @property {string|null} [spanContext] VerifyRegistrationEmailCodeRequest spanContext
59985
+ * @property {string|null} [email] VerifyRegistrationEmailCodeRequest email
59986
+ * @property {string|null} [code] VerifyRegistrationEmailCodeRequest code
59987
+ */
59988
+
59989
+ /**
59990
+ * Constructs a new VerifyRegistrationEmailCodeRequest.
59991
+ * @exports VerifyRegistrationEmailCodeRequest
59992
+ * @classdesc Represents a VerifyRegistrationEmailCodeRequest.
59993
+ * @implements IVerifyRegistrationEmailCodeRequest
59994
+ * @constructor
59995
+ * @param {IVerifyRegistrationEmailCodeRequest=} [properties] Properties to set
59996
+ */
59997
+ function VerifyRegistrationEmailCodeRequest(properties) {
59998
+ if (properties)
59999
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
60000
+ if (properties[keys[i]] != null)
60001
+ this[keys[i]] = properties[keys[i]];
60002
+ }
60003
+
60004
+ /**
60005
+ * VerifyRegistrationEmailCodeRequest spanContext.
60006
+ * @member {string} spanContext
60007
+ * @memberof VerifyRegistrationEmailCodeRequest
60008
+ * @instance
60009
+ */
60010
+ VerifyRegistrationEmailCodeRequest.prototype.spanContext = "";
60011
+
60012
+ /**
60013
+ * VerifyRegistrationEmailCodeRequest email.
60014
+ * @member {string} email
60015
+ * @memberof VerifyRegistrationEmailCodeRequest
60016
+ * @instance
60017
+ */
60018
+ VerifyRegistrationEmailCodeRequest.prototype.email = "";
60019
+
60020
+ /**
60021
+ * VerifyRegistrationEmailCodeRequest code.
60022
+ * @member {string} code
60023
+ * @memberof VerifyRegistrationEmailCodeRequest
60024
+ * @instance
60025
+ */
60026
+ VerifyRegistrationEmailCodeRequest.prototype.code = "";
60027
+
60028
+ /**
60029
+ * Creates a new VerifyRegistrationEmailCodeRequest instance using the specified properties.
60030
+ * @function create
60031
+ * @memberof VerifyRegistrationEmailCodeRequest
60032
+ * @static
60033
+ * @param {IVerifyRegistrationEmailCodeRequest=} [properties] Properties to set
60034
+ * @returns {VerifyRegistrationEmailCodeRequest} VerifyRegistrationEmailCodeRequest instance
60035
+ */
60036
+ VerifyRegistrationEmailCodeRequest.create = function create(properties) {
60037
+ return new VerifyRegistrationEmailCodeRequest(properties);
60038
+ };
60039
+
60040
+ /**
60041
+ * Encodes the specified VerifyRegistrationEmailCodeRequest message. Does not implicitly {@link VerifyRegistrationEmailCodeRequest.verify|verify} messages.
60042
+ * @function encode
60043
+ * @memberof VerifyRegistrationEmailCodeRequest
60044
+ * @static
60045
+ * @param {IVerifyRegistrationEmailCodeRequest} message VerifyRegistrationEmailCodeRequest message or plain object to encode
60046
+ * @param {$protobuf.Writer} [writer] Writer to encode to
60047
+ * @returns {$protobuf.Writer} Writer
60048
+ */
60049
+ VerifyRegistrationEmailCodeRequest.encode = function encode(message, writer) {
60050
+ if (!writer)
60051
+ writer = $Writer.create();
60052
+ if (message.spanContext != null && Object.hasOwnProperty.call(message, "spanContext"))
60053
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.spanContext);
60054
+ if (message.email != null && Object.hasOwnProperty.call(message, "email"))
60055
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.email);
60056
+ if (message.code != null && Object.hasOwnProperty.call(message, "code"))
60057
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.code);
60058
+ return writer;
60059
+ };
60060
+
60061
+ /**
60062
+ * Encodes the specified VerifyRegistrationEmailCodeRequest message, length delimited. Does not implicitly {@link VerifyRegistrationEmailCodeRequest.verify|verify} messages.
60063
+ * @function encodeDelimited
60064
+ * @memberof VerifyRegistrationEmailCodeRequest
60065
+ * @static
60066
+ * @param {IVerifyRegistrationEmailCodeRequest} message VerifyRegistrationEmailCodeRequest message or plain object to encode
60067
+ * @param {$protobuf.Writer} [writer] Writer to encode to
60068
+ * @returns {$protobuf.Writer} Writer
60069
+ */
60070
+ VerifyRegistrationEmailCodeRequest.encodeDelimited = function encodeDelimited(message, writer) {
60071
+ return this.encode(message, writer).ldelim();
60072
+ };
60073
+
60074
+ /**
60075
+ * Decodes a VerifyRegistrationEmailCodeRequest message from the specified reader or buffer.
60076
+ * @function decode
60077
+ * @memberof VerifyRegistrationEmailCodeRequest
60078
+ * @static
60079
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
60080
+ * @param {number} [length] Message length if known beforehand
60081
+ * @returns {VerifyRegistrationEmailCodeRequest} VerifyRegistrationEmailCodeRequest
60082
+ * @throws {Error} If the payload is not a reader or valid buffer
60083
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
60084
+ */
60085
+ VerifyRegistrationEmailCodeRequest.decode = function decode(reader, length) {
60086
+ if (!(reader instanceof $Reader))
60087
+ reader = $Reader.create(reader);
60088
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.VerifyRegistrationEmailCodeRequest();
60089
+ while (reader.pos < end) {
60090
+ var tag = reader.uint32();
60091
+ switch (tag >>> 3) {
60092
+ case 1:
60093
+ message.spanContext = reader.string();
60094
+ break;
60095
+ case 2:
60096
+ message.email = reader.string();
60097
+ break;
60098
+ case 3:
60099
+ message.code = reader.string();
60100
+ break;
60101
+ default:
60102
+ reader.skipType(tag & 7);
60103
+ break;
60104
+ }
60105
+ }
60106
+ return message;
60107
+ };
60108
+
60109
+ /**
60110
+ * Decodes a VerifyRegistrationEmailCodeRequest message from the specified reader or buffer, length delimited.
60111
+ * @function decodeDelimited
60112
+ * @memberof VerifyRegistrationEmailCodeRequest
60113
+ * @static
60114
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
60115
+ * @returns {VerifyRegistrationEmailCodeRequest} VerifyRegistrationEmailCodeRequest
60116
+ * @throws {Error} If the payload is not a reader or valid buffer
60117
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
60118
+ */
60119
+ VerifyRegistrationEmailCodeRequest.decodeDelimited = function decodeDelimited(reader) {
60120
+ if (!(reader instanceof $Reader))
60121
+ reader = new $Reader(reader);
60122
+ return this.decode(reader, reader.uint32());
60123
+ };
60124
+
60125
+ /**
60126
+ * Verifies a VerifyRegistrationEmailCodeRequest message.
60127
+ * @function verify
60128
+ * @memberof VerifyRegistrationEmailCodeRequest
60129
+ * @static
60130
+ * @param {Object.<string,*>} message Plain object to verify
60131
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
60132
+ */
60133
+ VerifyRegistrationEmailCodeRequest.verify = function verify(message) {
60134
+ if (typeof message !== "object" || message === null)
60135
+ return "object expected";
60136
+ if (message.spanContext != null && message.hasOwnProperty("spanContext"))
60137
+ if (!$util.isString(message.spanContext))
60138
+ return "spanContext: string expected";
60139
+ if (message.email != null && message.hasOwnProperty("email"))
60140
+ if (!$util.isString(message.email))
60141
+ return "email: string expected";
60142
+ if (message.code != null && message.hasOwnProperty("code"))
60143
+ if (!$util.isString(message.code))
60144
+ return "code: string expected";
60145
+ return null;
60146
+ };
60147
+
60148
+ /**
60149
+ * Creates a VerifyRegistrationEmailCodeRequest message from a plain object. Also converts values to their respective internal types.
60150
+ * @function fromObject
60151
+ * @memberof VerifyRegistrationEmailCodeRequest
60152
+ * @static
60153
+ * @param {Object.<string,*>} object Plain object
60154
+ * @returns {VerifyRegistrationEmailCodeRequest} VerifyRegistrationEmailCodeRequest
60155
+ */
60156
+ VerifyRegistrationEmailCodeRequest.fromObject = function fromObject(object) {
60157
+ if (object instanceof $root.VerifyRegistrationEmailCodeRequest)
60158
+ return object;
60159
+ var message = new $root.VerifyRegistrationEmailCodeRequest();
60160
+ if (object.spanContext != null)
60161
+ message.spanContext = String(object.spanContext);
60162
+ if (object.email != null)
60163
+ message.email = String(object.email);
60164
+ if (object.code != null)
60165
+ message.code = String(object.code);
60166
+ return message;
60167
+ };
60168
+
60169
+ /**
60170
+ * Creates a plain object from a VerifyRegistrationEmailCodeRequest message. Also converts values to other types if specified.
60171
+ * @function toObject
60172
+ * @memberof VerifyRegistrationEmailCodeRequest
60173
+ * @static
60174
+ * @param {VerifyRegistrationEmailCodeRequest} message VerifyRegistrationEmailCodeRequest
60175
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
60176
+ * @returns {Object.<string,*>} Plain object
60177
+ */
60178
+ VerifyRegistrationEmailCodeRequest.toObject = function toObject(message, options) {
60179
+ if (!options)
60180
+ options = {};
60181
+ var object = {};
60182
+ if (options.defaults) {
60183
+ object.spanContext = "";
60184
+ object.email = "";
60185
+ object.code = "";
60186
+ }
60187
+ if (message.spanContext != null && message.hasOwnProperty("spanContext"))
60188
+ object.spanContext = message.spanContext;
60189
+ if (message.email != null && message.hasOwnProperty("email"))
60190
+ object.email = message.email;
60191
+ if (message.code != null && message.hasOwnProperty("code"))
60192
+ object.code = message.code;
60193
+ return object;
60194
+ };
60195
+
60196
+ /**
60197
+ * Converts this VerifyRegistrationEmailCodeRequest to JSON.
60198
+ * @function toJSON
60199
+ * @memberof VerifyRegistrationEmailCodeRequest
60200
+ * @instance
60201
+ * @returns {Object.<string,*>} JSON object
60202
+ */
60203
+ VerifyRegistrationEmailCodeRequest.prototype.toJSON = function toJSON() {
60204
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
60205
+ };
60206
+
60207
+ return VerifyRegistrationEmailCodeRequest;
60208
+ })();
60209
+
60210
+ $root.VerifyRegistrationEmailCodeResponse = (function() {
60211
+
60212
+ /**
60213
+ * Properties of a VerifyRegistrationEmailCodeResponse.
60214
+ * @exports IVerifyRegistrationEmailCodeResponse
60215
+ * @interface IVerifyRegistrationEmailCodeResponse
60216
+ * @property {StatusCode|null} [status] VerifyRegistrationEmailCodeResponse status
60217
+ * @property {Array.<IError>|null} [errors] VerifyRegistrationEmailCodeResponse errors
60218
+ * @property {boolean|null} [emailVerified] VerifyRegistrationEmailCodeResponse emailVerified
60219
+ */
60220
+
60221
+ /**
60222
+ * Constructs a new VerifyRegistrationEmailCodeResponse.
60223
+ * @exports VerifyRegistrationEmailCodeResponse
60224
+ * @classdesc Represents a VerifyRegistrationEmailCodeResponse.
60225
+ * @implements IVerifyRegistrationEmailCodeResponse
60226
+ * @constructor
60227
+ * @param {IVerifyRegistrationEmailCodeResponse=} [properties] Properties to set
60228
+ */
60229
+ function VerifyRegistrationEmailCodeResponse(properties) {
60230
+ this.errors = [];
60231
+ if (properties)
60232
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
60233
+ if (properties[keys[i]] != null)
60234
+ this[keys[i]] = properties[keys[i]];
60235
+ }
60236
+
60237
+ /**
60238
+ * VerifyRegistrationEmailCodeResponse status.
60239
+ * @member {StatusCode} status
60240
+ * @memberof VerifyRegistrationEmailCodeResponse
60241
+ * @instance
60242
+ */
60243
+ VerifyRegistrationEmailCodeResponse.prototype.status = 0;
60244
+
60245
+ /**
60246
+ * VerifyRegistrationEmailCodeResponse errors.
60247
+ * @member {Array.<IError>} errors
60248
+ * @memberof VerifyRegistrationEmailCodeResponse
60249
+ * @instance
60250
+ */
60251
+ VerifyRegistrationEmailCodeResponse.prototype.errors = $util.emptyArray;
60252
+
60253
+ /**
60254
+ * VerifyRegistrationEmailCodeResponse emailVerified.
60255
+ * @member {boolean} emailVerified
60256
+ * @memberof VerifyRegistrationEmailCodeResponse
60257
+ * @instance
60258
+ */
60259
+ VerifyRegistrationEmailCodeResponse.prototype.emailVerified = false;
60260
+
60261
+ /**
60262
+ * Creates a new VerifyRegistrationEmailCodeResponse instance using the specified properties.
60263
+ * @function create
60264
+ * @memberof VerifyRegistrationEmailCodeResponse
60265
+ * @static
60266
+ * @param {IVerifyRegistrationEmailCodeResponse=} [properties] Properties to set
60267
+ * @returns {VerifyRegistrationEmailCodeResponse} VerifyRegistrationEmailCodeResponse instance
60268
+ */
60269
+ VerifyRegistrationEmailCodeResponse.create = function create(properties) {
60270
+ return new VerifyRegistrationEmailCodeResponse(properties);
60271
+ };
60272
+
60273
+ /**
60274
+ * Encodes the specified VerifyRegistrationEmailCodeResponse message. Does not implicitly {@link VerifyRegistrationEmailCodeResponse.verify|verify} messages.
60275
+ * @function encode
60276
+ * @memberof VerifyRegistrationEmailCodeResponse
60277
+ * @static
60278
+ * @param {IVerifyRegistrationEmailCodeResponse} message VerifyRegistrationEmailCodeResponse message or plain object to encode
60279
+ * @param {$protobuf.Writer} [writer] Writer to encode to
60280
+ * @returns {$protobuf.Writer} Writer
60281
+ */
60282
+ VerifyRegistrationEmailCodeResponse.encode = function encode(message, writer) {
60283
+ if (!writer)
60284
+ writer = $Writer.create();
60285
+ if (message.status != null && Object.hasOwnProperty.call(message, "status"))
60286
+ writer.uint32(/* id 1, wireType 0 =*/8).int32(message.status);
60287
+ if (message.errors != null && message.errors.length)
60288
+ for (var i = 0; i < message.errors.length; ++i)
60289
+ $root.Error.encode(message.errors[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
60290
+ if (message.emailVerified != null && Object.hasOwnProperty.call(message, "emailVerified"))
60291
+ writer.uint32(/* id 3, wireType 0 =*/24).bool(message.emailVerified);
60292
+ return writer;
60293
+ };
60294
+
60295
+ /**
60296
+ * Encodes the specified VerifyRegistrationEmailCodeResponse message, length delimited. Does not implicitly {@link VerifyRegistrationEmailCodeResponse.verify|verify} messages.
60297
+ * @function encodeDelimited
60298
+ * @memberof VerifyRegistrationEmailCodeResponse
60299
+ * @static
60300
+ * @param {IVerifyRegistrationEmailCodeResponse} message VerifyRegistrationEmailCodeResponse message or plain object to encode
60301
+ * @param {$protobuf.Writer} [writer] Writer to encode to
60302
+ * @returns {$protobuf.Writer} Writer
60303
+ */
60304
+ VerifyRegistrationEmailCodeResponse.encodeDelimited = function encodeDelimited(message, writer) {
60305
+ return this.encode(message, writer).ldelim();
60306
+ };
60307
+
60308
+ /**
60309
+ * Decodes a VerifyRegistrationEmailCodeResponse message from the specified reader or buffer.
60310
+ * @function decode
60311
+ * @memberof VerifyRegistrationEmailCodeResponse
60312
+ * @static
60313
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
60314
+ * @param {number} [length] Message length if known beforehand
60315
+ * @returns {VerifyRegistrationEmailCodeResponse} VerifyRegistrationEmailCodeResponse
60316
+ * @throws {Error} If the payload is not a reader or valid buffer
60317
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
60318
+ */
60319
+ VerifyRegistrationEmailCodeResponse.decode = function decode(reader, length) {
60320
+ if (!(reader instanceof $Reader))
60321
+ reader = $Reader.create(reader);
60322
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.VerifyRegistrationEmailCodeResponse();
60323
+ while (reader.pos < end) {
60324
+ var tag = reader.uint32();
60325
+ switch (tag >>> 3) {
60326
+ case 1:
60327
+ message.status = reader.int32();
60328
+ break;
60329
+ case 2:
60330
+ if (!(message.errors && message.errors.length))
60331
+ message.errors = [];
60332
+ message.errors.push($root.Error.decode(reader, reader.uint32()));
60333
+ break;
60334
+ case 3:
60335
+ message.emailVerified = reader.bool();
60336
+ break;
60337
+ default:
60338
+ reader.skipType(tag & 7);
60339
+ break;
60340
+ }
60341
+ }
60342
+ return message;
60343
+ };
60344
+
60345
+ /**
60346
+ * Decodes a VerifyRegistrationEmailCodeResponse message from the specified reader or buffer, length delimited.
60347
+ * @function decodeDelimited
60348
+ * @memberof VerifyRegistrationEmailCodeResponse
60349
+ * @static
60350
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
60351
+ * @returns {VerifyRegistrationEmailCodeResponse} VerifyRegistrationEmailCodeResponse
60352
+ * @throws {Error} If the payload is not a reader or valid buffer
60353
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
60354
+ */
60355
+ VerifyRegistrationEmailCodeResponse.decodeDelimited = function decodeDelimited(reader) {
60356
+ if (!(reader instanceof $Reader))
60357
+ reader = new $Reader(reader);
60358
+ return this.decode(reader, reader.uint32());
60359
+ };
60360
+
60361
+ /**
60362
+ * Verifies a VerifyRegistrationEmailCodeResponse message.
60363
+ * @function verify
60364
+ * @memberof VerifyRegistrationEmailCodeResponse
60365
+ * @static
60366
+ * @param {Object.<string,*>} message Plain object to verify
60367
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
60368
+ */
60369
+ VerifyRegistrationEmailCodeResponse.verify = function verify(message) {
60370
+ if (typeof message !== "object" || message === null)
60371
+ return "object expected";
60372
+ if (message.status != null && message.hasOwnProperty("status"))
60373
+ switch (message.status) {
60374
+ default:
60375
+ return "status: enum value expected";
60376
+ case 0:
60377
+ case 200:
60378
+ case 400:
60379
+ case 401:
60380
+ case 403:
60381
+ case 422:
60382
+ case 404:
60383
+ case 500:
60384
+ case 504:
60385
+ break;
60386
+ }
60387
+ if (message.errors != null && message.hasOwnProperty("errors")) {
60388
+ if (!Array.isArray(message.errors))
60389
+ return "errors: array expected";
60390
+ for (var i = 0; i < message.errors.length; ++i) {
60391
+ var error = $root.Error.verify(message.errors[i]);
60392
+ if (error)
60393
+ return "errors." + error;
60394
+ }
60395
+ }
60396
+ if (message.emailVerified != null && message.hasOwnProperty("emailVerified"))
60397
+ if (typeof message.emailVerified !== "boolean")
60398
+ return "emailVerified: boolean expected";
60399
+ return null;
60400
+ };
60401
+
60402
+ /**
60403
+ * Creates a VerifyRegistrationEmailCodeResponse message from a plain object. Also converts values to their respective internal types.
60404
+ * @function fromObject
60405
+ * @memberof VerifyRegistrationEmailCodeResponse
60406
+ * @static
60407
+ * @param {Object.<string,*>} object Plain object
60408
+ * @returns {VerifyRegistrationEmailCodeResponse} VerifyRegistrationEmailCodeResponse
60409
+ */
60410
+ VerifyRegistrationEmailCodeResponse.fromObject = function fromObject(object) {
60411
+ if (object instanceof $root.VerifyRegistrationEmailCodeResponse)
60412
+ return object;
60413
+ var message = new $root.VerifyRegistrationEmailCodeResponse();
60414
+ switch (object.status) {
60415
+ case "UNKNOWN_CODE":
60416
+ case 0:
60417
+ message.status = 0;
60418
+ break;
60419
+ case "OK":
60420
+ case 200:
60421
+ message.status = 200;
60422
+ break;
60423
+ case "BAD_REQUEST":
60424
+ case 400:
60425
+ message.status = 400;
60426
+ break;
60427
+ case "UNAUTHORIZED":
60428
+ case 401:
60429
+ message.status = 401;
60430
+ break;
60431
+ case "FORBIDDEN":
60432
+ case 403:
60433
+ message.status = 403;
60434
+ break;
60435
+ case "UNPROCESSABLE_ENTITY":
60436
+ case 422:
60437
+ message.status = 422;
60438
+ break;
60439
+ case "NOT_FOUND":
60440
+ case 404:
60441
+ message.status = 404;
60442
+ break;
60443
+ case "INTERNAL_SERVER_ERROR":
60444
+ case 500:
60445
+ message.status = 500;
60446
+ break;
60447
+ case "GATEWAY_TIMEOUT":
60448
+ case 504:
60449
+ message.status = 504;
60450
+ break;
60451
+ }
60452
+ if (object.errors) {
60453
+ if (!Array.isArray(object.errors))
60454
+ throw TypeError(".VerifyRegistrationEmailCodeResponse.errors: array expected");
60455
+ message.errors = [];
60456
+ for (var i = 0; i < object.errors.length; ++i) {
60457
+ if (typeof object.errors[i] !== "object")
60458
+ throw TypeError(".VerifyRegistrationEmailCodeResponse.errors: object expected");
60459
+ message.errors[i] = $root.Error.fromObject(object.errors[i]);
60460
+ }
60461
+ }
60462
+ if (object.emailVerified != null)
60463
+ message.emailVerified = Boolean(object.emailVerified);
60464
+ return message;
60465
+ };
60466
+
60467
+ /**
60468
+ * Creates a plain object from a VerifyRegistrationEmailCodeResponse message. Also converts values to other types if specified.
60469
+ * @function toObject
60470
+ * @memberof VerifyRegistrationEmailCodeResponse
60471
+ * @static
60472
+ * @param {VerifyRegistrationEmailCodeResponse} message VerifyRegistrationEmailCodeResponse
60473
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
60474
+ * @returns {Object.<string,*>} Plain object
60475
+ */
60476
+ VerifyRegistrationEmailCodeResponse.toObject = function toObject(message, options) {
60477
+ if (!options)
60478
+ options = {};
60479
+ var object = {};
60480
+ if (options.arrays || options.defaults)
60481
+ object.errors = [];
60482
+ if (options.defaults) {
60483
+ object.status = options.enums === String ? "UNKNOWN_CODE" : 0;
60484
+ object.emailVerified = false;
60485
+ }
60486
+ if (message.status != null && message.hasOwnProperty("status"))
60487
+ object.status = options.enums === String ? $root.StatusCode[message.status] : message.status;
60488
+ if (message.errors && message.errors.length) {
60489
+ object.errors = [];
60490
+ for (var j = 0; j < message.errors.length; ++j)
60491
+ object.errors[j] = $root.Error.toObject(message.errors[j], options);
60492
+ }
60493
+ if (message.emailVerified != null && message.hasOwnProperty("emailVerified"))
60494
+ object.emailVerified = message.emailVerified;
60495
+ return object;
60496
+ };
60497
+
60498
+ /**
60499
+ * Converts this VerifyRegistrationEmailCodeResponse to JSON.
60500
+ * @function toJSON
60501
+ * @memberof VerifyRegistrationEmailCodeResponse
60502
+ * @instance
60503
+ * @returns {Object.<string,*>} JSON object
60504
+ */
60505
+ VerifyRegistrationEmailCodeResponse.prototype.toJSON = function toJSON() {
60506
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
60507
+ };
60508
+
60509
+ return VerifyRegistrationEmailCodeResponse;
60510
+ })();
60511
+
60512
+ $root.ClearExpiredRegistrationEmailCodesRequest = (function() {
60513
+
60514
+ /**
60515
+ * Properties of a ClearExpiredRegistrationEmailCodesRequest.
60516
+ * @exports IClearExpiredRegistrationEmailCodesRequest
60517
+ * @interface IClearExpiredRegistrationEmailCodesRequest
60518
+ * @property {string|null} [spanContext] ClearExpiredRegistrationEmailCodesRequest spanContext
60519
+ */
60520
+
60521
+ /**
60522
+ * Constructs a new ClearExpiredRegistrationEmailCodesRequest.
60523
+ * @exports ClearExpiredRegistrationEmailCodesRequest
60524
+ * @classdesc Represents a ClearExpiredRegistrationEmailCodesRequest.
60525
+ * @implements IClearExpiredRegistrationEmailCodesRequest
60526
+ * @constructor
60527
+ * @param {IClearExpiredRegistrationEmailCodesRequest=} [properties] Properties to set
60528
+ */
60529
+ function ClearExpiredRegistrationEmailCodesRequest(properties) {
60530
+ if (properties)
60531
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
60532
+ if (properties[keys[i]] != null)
60533
+ this[keys[i]] = properties[keys[i]];
60534
+ }
60535
+
60536
+ /**
60537
+ * ClearExpiredRegistrationEmailCodesRequest spanContext.
60538
+ * @member {string} spanContext
60539
+ * @memberof ClearExpiredRegistrationEmailCodesRequest
60540
+ * @instance
60541
+ */
60542
+ ClearExpiredRegistrationEmailCodesRequest.prototype.spanContext = "";
60543
+
60544
+ /**
60545
+ * Creates a new ClearExpiredRegistrationEmailCodesRequest instance using the specified properties.
60546
+ * @function create
60547
+ * @memberof ClearExpiredRegistrationEmailCodesRequest
60548
+ * @static
60549
+ * @param {IClearExpiredRegistrationEmailCodesRequest=} [properties] Properties to set
60550
+ * @returns {ClearExpiredRegistrationEmailCodesRequest} ClearExpiredRegistrationEmailCodesRequest instance
60551
+ */
60552
+ ClearExpiredRegistrationEmailCodesRequest.create = function create(properties) {
60553
+ return new ClearExpiredRegistrationEmailCodesRequest(properties);
60554
+ };
60555
+
60556
+ /**
60557
+ * Encodes the specified ClearExpiredRegistrationEmailCodesRequest message. Does not implicitly {@link ClearExpiredRegistrationEmailCodesRequest.verify|verify} messages.
60558
+ * @function encode
60559
+ * @memberof ClearExpiredRegistrationEmailCodesRequest
60560
+ * @static
60561
+ * @param {IClearExpiredRegistrationEmailCodesRequest} message ClearExpiredRegistrationEmailCodesRequest message or plain object to encode
60562
+ * @param {$protobuf.Writer} [writer] Writer to encode to
60563
+ * @returns {$protobuf.Writer} Writer
60564
+ */
60565
+ ClearExpiredRegistrationEmailCodesRequest.encode = function encode(message, writer) {
60566
+ if (!writer)
60567
+ writer = $Writer.create();
60568
+ if (message.spanContext != null && Object.hasOwnProperty.call(message, "spanContext"))
60569
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.spanContext);
60570
+ return writer;
60571
+ };
60572
+
60573
+ /**
60574
+ * Encodes the specified ClearExpiredRegistrationEmailCodesRequest message, length delimited. Does not implicitly {@link ClearExpiredRegistrationEmailCodesRequest.verify|verify} messages.
60575
+ * @function encodeDelimited
60576
+ * @memberof ClearExpiredRegistrationEmailCodesRequest
60577
+ * @static
60578
+ * @param {IClearExpiredRegistrationEmailCodesRequest} message ClearExpiredRegistrationEmailCodesRequest message or plain object to encode
60579
+ * @param {$protobuf.Writer} [writer] Writer to encode to
60580
+ * @returns {$protobuf.Writer} Writer
60581
+ */
60582
+ ClearExpiredRegistrationEmailCodesRequest.encodeDelimited = function encodeDelimited(message, writer) {
60583
+ return this.encode(message, writer).ldelim();
60584
+ };
60585
+
60586
+ /**
60587
+ * Decodes a ClearExpiredRegistrationEmailCodesRequest message from the specified reader or buffer.
60588
+ * @function decode
60589
+ * @memberof ClearExpiredRegistrationEmailCodesRequest
60590
+ * @static
60591
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
60592
+ * @param {number} [length] Message length if known beforehand
60593
+ * @returns {ClearExpiredRegistrationEmailCodesRequest} ClearExpiredRegistrationEmailCodesRequest
60594
+ * @throws {Error} If the payload is not a reader or valid buffer
60595
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
60596
+ */
60597
+ ClearExpiredRegistrationEmailCodesRequest.decode = function decode(reader, length) {
60598
+ if (!(reader instanceof $Reader))
60599
+ reader = $Reader.create(reader);
60600
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ClearExpiredRegistrationEmailCodesRequest();
60601
+ while (reader.pos < end) {
60602
+ var tag = reader.uint32();
60603
+ switch (tag >>> 3) {
60604
+ case 1:
60605
+ message.spanContext = reader.string();
60606
+ break;
60607
+ default:
60608
+ reader.skipType(tag & 7);
60609
+ break;
60610
+ }
60611
+ }
60612
+ return message;
60613
+ };
60614
+
60615
+ /**
60616
+ * Decodes a ClearExpiredRegistrationEmailCodesRequest message from the specified reader or buffer, length delimited.
60617
+ * @function decodeDelimited
60618
+ * @memberof ClearExpiredRegistrationEmailCodesRequest
60619
+ * @static
60620
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
60621
+ * @returns {ClearExpiredRegistrationEmailCodesRequest} ClearExpiredRegistrationEmailCodesRequest
60622
+ * @throws {Error} If the payload is not a reader or valid buffer
60623
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
60624
+ */
60625
+ ClearExpiredRegistrationEmailCodesRequest.decodeDelimited = function decodeDelimited(reader) {
60626
+ if (!(reader instanceof $Reader))
60627
+ reader = new $Reader(reader);
60628
+ return this.decode(reader, reader.uint32());
60629
+ };
60630
+
60631
+ /**
60632
+ * Verifies a ClearExpiredRegistrationEmailCodesRequest message.
60633
+ * @function verify
60634
+ * @memberof ClearExpiredRegistrationEmailCodesRequest
60635
+ * @static
60636
+ * @param {Object.<string,*>} message Plain object to verify
60637
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
60638
+ */
60639
+ ClearExpiredRegistrationEmailCodesRequest.verify = function verify(message) {
60640
+ if (typeof message !== "object" || message === null)
60641
+ return "object expected";
60642
+ if (message.spanContext != null && message.hasOwnProperty("spanContext"))
60643
+ if (!$util.isString(message.spanContext))
60644
+ return "spanContext: string expected";
60645
+ return null;
60646
+ };
60647
+
60648
+ /**
60649
+ * Creates a ClearExpiredRegistrationEmailCodesRequest message from a plain object. Also converts values to their respective internal types.
60650
+ * @function fromObject
60651
+ * @memberof ClearExpiredRegistrationEmailCodesRequest
60652
+ * @static
60653
+ * @param {Object.<string,*>} object Plain object
60654
+ * @returns {ClearExpiredRegistrationEmailCodesRequest} ClearExpiredRegistrationEmailCodesRequest
60655
+ */
60656
+ ClearExpiredRegistrationEmailCodesRequest.fromObject = function fromObject(object) {
60657
+ if (object instanceof $root.ClearExpiredRegistrationEmailCodesRequest)
60658
+ return object;
60659
+ var message = new $root.ClearExpiredRegistrationEmailCodesRequest();
60660
+ if (object.spanContext != null)
60661
+ message.spanContext = String(object.spanContext);
60662
+ return message;
60663
+ };
60664
+
60665
+ /**
60666
+ * Creates a plain object from a ClearExpiredRegistrationEmailCodesRequest message. Also converts values to other types if specified.
60667
+ * @function toObject
60668
+ * @memberof ClearExpiredRegistrationEmailCodesRequest
60669
+ * @static
60670
+ * @param {ClearExpiredRegistrationEmailCodesRequest} message ClearExpiredRegistrationEmailCodesRequest
60671
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
60672
+ * @returns {Object.<string,*>} Plain object
60673
+ */
60674
+ ClearExpiredRegistrationEmailCodesRequest.toObject = function toObject(message, options) {
60675
+ if (!options)
60676
+ options = {};
60677
+ var object = {};
60678
+ if (options.defaults)
60679
+ object.spanContext = "";
60680
+ if (message.spanContext != null && message.hasOwnProperty("spanContext"))
60681
+ object.spanContext = message.spanContext;
60682
+ return object;
60683
+ };
60684
+
60685
+ /**
60686
+ * Converts this ClearExpiredRegistrationEmailCodesRequest to JSON.
60687
+ * @function toJSON
60688
+ * @memberof ClearExpiredRegistrationEmailCodesRequest
60689
+ * @instance
60690
+ * @returns {Object.<string,*>} JSON object
60691
+ */
60692
+ ClearExpiredRegistrationEmailCodesRequest.prototype.toJSON = function toJSON() {
60693
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
60694
+ };
60695
+
60696
+ return ClearExpiredRegistrationEmailCodesRequest;
60697
+ })();
60698
+
60699
+ $root.ClearExpiredRegistrationEmailCodesResponse = (function() {
60700
+
60701
+ /**
60702
+ * Properties of a ClearExpiredRegistrationEmailCodesResponse.
60703
+ * @exports IClearExpiredRegistrationEmailCodesResponse
60704
+ * @interface IClearExpiredRegistrationEmailCodesResponse
60705
+ * @property {StatusCode|null} [status] ClearExpiredRegistrationEmailCodesResponse status
60706
+ * @property {Array.<IError>|null} [errors] ClearExpiredRegistrationEmailCodesResponse errors
60707
+ * @property {number|null} [deletedCount] ClearExpiredRegistrationEmailCodesResponse deletedCount
60708
+ */
60709
+
60710
+ /**
60711
+ * Constructs a new ClearExpiredRegistrationEmailCodesResponse.
60712
+ * @exports ClearExpiredRegistrationEmailCodesResponse
60713
+ * @classdesc Represents a ClearExpiredRegistrationEmailCodesResponse.
60714
+ * @implements IClearExpiredRegistrationEmailCodesResponse
60715
+ * @constructor
60716
+ * @param {IClearExpiredRegistrationEmailCodesResponse=} [properties] Properties to set
60717
+ */
60718
+ function ClearExpiredRegistrationEmailCodesResponse(properties) {
60719
+ this.errors = [];
60720
+ if (properties)
60721
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
60722
+ if (properties[keys[i]] != null)
60723
+ this[keys[i]] = properties[keys[i]];
60724
+ }
60725
+
60726
+ /**
60727
+ * ClearExpiredRegistrationEmailCodesResponse status.
60728
+ * @member {StatusCode} status
60729
+ * @memberof ClearExpiredRegistrationEmailCodesResponse
60730
+ * @instance
60731
+ */
60732
+ ClearExpiredRegistrationEmailCodesResponse.prototype.status = 0;
60733
+
60734
+ /**
60735
+ * ClearExpiredRegistrationEmailCodesResponse errors.
60736
+ * @member {Array.<IError>} errors
60737
+ * @memberof ClearExpiredRegistrationEmailCodesResponse
60738
+ * @instance
60739
+ */
60740
+ ClearExpiredRegistrationEmailCodesResponse.prototype.errors = $util.emptyArray;
60741
+
60742
+ /**
60743
+ * ClearExpiredRegistrationEmailCodesResponse deletedCount.
60744
+ * @member {number} deletedCount
60745
+ * @memberof ClearExpiredRegistrationEmailCodesResponse
60746
+ * @instance
60747
+ */
60748
+ ClearExpiredRegistrationEmailCodesResponse.prototype.deletedCount = 0;
60749
+
60750
+ /**
60751
+ * Creates a new ClearExpiredRegistrationEmailCodesResponse instance using the specified properties.
60752
+ * @function create
60753
+ * @memberof ClearExpiredRegistrationEmailCodesResponse
60754
+ * @static
60755
+ * @param {IClearExpiredRegistrationEmailCodesResponse=} [properties] Properties to set
60756
+ * @returns {ClearExpiredRegistrationEmailCodesResponse} ClearExpiredRegistrationEmailCodesResponse instance
60757
+ */
60758
+ ClearExpiredRegistrationEmailCodesResponse.create = function create(properties) {
60759
+ return new ClearExpiredRegistrationEmailCodesResponse(properties);
60760
+ };
60761
+
60762
+ /**
60763
+ * Encodes the specified ClearExpiredRegistrationEmailCodesResponse message. Does not implicitly {@link ClearExpiredRegistrationEmailCodesResponse.verify|verify} messages.
60764
+ * @function encode
60765
+ * @memberof ClearExpiredRegistrationEmailCodesResponse
60766
+ * @static
60767
+ * @param {IClearExpiredRegistrationEmailCodesResponse} message ClearExpiredRegistrationEmailCodesResponse message or plain object to encode
60768
+ * @param {$protobuf.Writer} [writer] Writer to encode to
60769
+ * @returns {$protobuf.Writer} Writer
60770
+ */
60771
+ ClearExpiredRegistrationEmailCodesResponse.encode = function encode(message, writer) {
60772
+ if (!writer)
60773
+ writer = $Writer.create();
60774
+ if (message.status != null && Object.hasOwnProperty.call(message, "status"))
60775
+ writer.uint32(/* id 1, wireType 0 =*/8).int32(message.status);
60776
+ if (message.errors != null && message.errors.length)
60777
+ for (var i = 0; i < message.errors.length; ++i)
60778
+ $root.Error.encode(message.errors[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
60779
+ if (message.deletedCount != null && Object.hasOwnProperty.call(message, "deletedCount"))
60780
+ writer.uint32(/* id 3, wireType 0 =*/24).int32(message.deletedCount);
60781
+ return writer;
60782
+ };
60783
+
60784
+ /**
60785
+ * Encodes the specified ClearExpiredRegistrationEmailCodesResponse message, length delimited. Does not implicitly {@link ClearExpiredRegistrationEmailCodesResponse.verify|verify} messages.
60786
+ * @function encodeDelimited
60787
+ * @memberof ClearExpiredRegistrationEmailCodesResponse
60788
+ * @static
60789
+ * @param {IClearExpiredRegistrationEmailCodesResponse} message ClearExpiredRegistrationEmailCodesResponse message or plain object to encode
60790
+ * @param {$protobuf.Writer} [writer] Writer to encode to
60791
+ * @returns {$protobuf.Writer} Writer
60792
+ */
60793
+ ClearExpiredRegistrationEmailCodesResponse.encodeDelimited = function encodeDelimited(message, writer) {
60794
+ return this.encode(message, writer).ldelim();
60795
+ };
60796
+
60797
+ /**
60798
+ * Decodes a ClearExpiredRegistrationEmailCodesResponse message from the specified reader or buffer.
60799
+ * @function decode
60800
+ * @memberof ClearExpiredRegistrationEmailCodesResponse
60801
+ * @static
60802
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
60803
+ * @param {number} [length] Message length if known beforehand
60804
+ * @returns {ClearExpiredRegistrationEmailCodesResponse} ClearExpiredRegistrationEmailCodesResponse
60805
+ * @throws {Error} If the payload is not a reader or valid buffer
60806
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
60807
+ */
60808
+ ClearExpiredRegistrationEmailCodesResponse.decode = function decode(reader, length) {
60809
+ if (!(reader instanceof $Reader))
60810
+ reader = $Reader.create(reader);
60811
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ClearExpiredRegistrationEmailCodesResponse();
60812
+ while (reader.pos < end) {
60813
+ var tag = reader.uint32();
60814
+ switch (tag >>> 3) {
60815
+ case 1:
60816
+ message.status = reader.int32();
60817
+ break;
60818
+ case 2:
60819
+ if (!(message.errors && message.errors.length))
60820
+ message.errors = [];
60821
+ message.errors.push($root.Error.decode(reader, reader.uint32()));
60822
+ break;
60823
+ case 3:
60824
+ message.deletedCount = reader.int32();
60825
+ break;
60826
+ default:
60827
+ reader.skipType(tag & 7);
60828
+ break;
60829
+ }
60830
+ }
60831
+ return message;
60832
+ };
60833
+
60834
+ /**
60835
+ * Decodes a ClearExpiredRegistrationEmailCodesResponse message from the specified reader or buffer, length delimited.
60836
+ * @function decodeDelimited
60837
+ * @memberof ClearExpiredRegistrationEmailCodesResponse
60838
+ * @static
60839
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
60840
+ * @returns {ClearExpiredRegistrationEmailCodesResponse} ClearExpiredRegistrationEmailCodesResponse
60841
+ * @throws {Error} If the payload is not a reader or valid buffer
60842
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
60843
+ */
60844
+ ClearExpiredRegistrationEmailCodesResponse.decodeDelimited = function decodeDelimited(reader) {
60845
+ if (!(reader instanceof $Reader))
60846
+ reader = new $Reader(reader);
60847
+ return this.decode(reader, reader.uint32());
60848
+ };
60849
+
60850
+ /**
60851
+ * Verifies a ClearExpiredRegistrationEmailCodesResponse message.
60852
+ * @function verify
60853
+ * @memberof ClearExpiredRegistrationEmailCodesResponse
60854
+ * @static
60855
+ * @param {Object.<string,*>} message Plain object to verify
60856
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
60857
+ */
60858
+ ClearExpiredRegistrationEmailCodesResponse.verify = function verify(message) {
60859
+ if (typeof message !== "object" || message === null)
60860
+ return "object expected";
60861
+ if (message.status != null && message.hasOwnProperty("status"))
60862
+ switch (message.status) {
60863
+ default:
60864
+ return "status: enum value expected";
60865
+ case 0:
60866
+ case 200:
60867
+ case 400:
60868
+ case 401:
60869
+ case 403:
60870
+ case 422:
60871
+ case 404:
60872
+ case 500:
60873
+ case 504:
60874
+ break;
60875
+ }
60876
+ if (message.errors != null && message.hasOwnProperty("errors")) {
60877
+ if (!Array.isArray(message.errors))
60878
+ return "errors: array expected";
60879
+ for (var i = 0; i < message.errors.length; ++i) {
60880
+ var error = $root.Error.verify(message.errors[i]);
60881
+ if (error)
60882
+ return "errors." + error;
60883
+ }
60884
+ }
60885
+ if (message.deletedCount != null && message.hasOwnProperty("deletedCount"))
60886
+ if (!$util.isInteger(message.deletedCount))
60887
+ return "deletedCount: integer expected";
60888
+ return null;
60889
+ };
60890
+
60891
+ /**
60892
+ * Creates a ClearExpiredRegistrationEmailCodesResponse message from a plain object. Also converts values to their respective internal types.
60893
+ * @function fromObject
60894
+ * @memberof ClearExpiredRegistrationEmailCodesResponse
60895
+ * @static
60896
+ * @param {Object.<string,*>} object Plain object
60897
+ * @returns {ClearExpiredRegistrationEmailCodesResponse} ClearExpiredRegistrationEmailCodesResponse
60898
+ */
60899
+ ClearExpiredRegistrationEmailCodesResponse.fromObject = function fromObject(object) {
60900
+ if (object instanceof $root.ClearExpiredRegistrationEmailCodesResponse)
60901
+ return object;
60902
+ var message = new $root.ClearExpiredRegistrationEmailCodesResponse();
60903
+ switch (object.status) {
60904
+ case "UNKNOWN_CODE":
60905
+ case 0:
60906
+ message.status = 0;
60907
+ break;
60908
+ case "OK":
60909
+ case 200:
60910
+ message.status = 200;
60911
+ break;
60912
+ case "BAD_REQUEST":
60913
+ case 400:
60914
+ message.status = 400;
60915
+ break;
60916
+ case "UNAUTHORIZED":
60917
+ case 401:
60918
+ message.status = 401;
60919
+ break;
60920
+ case "FORBIDDEN":
60921
+ case 403:
60922
+ message.status = 403;
60923
+ break;
60924
+ case "UNPROCESSABLE_ENTITY":
60925
+ case 422:
60926
+ message.status = 422;
60927
+ break;
60928
+ case "NOT_FOUND":
60929
+ case 404:
60930
+ message.status = 404;
60931
+ break;
60932
+ case "INTERNAL_SERVER_ERROR":
60933
+ case 500:
60934
+ message.status = 500;
60935
+ break;
60936
+ case "GATEWAY_TIMEOUT":
60937
+ case 504:
60938
+ message.status = 504;
60939
+ break;
60940
+ }
60941
+ if (object.errors) {
60942
+ if (!Array.isArray(object.errors))
60943
+ throw TypeError(".ClearExpiredRegistrationEmailCodesResponse.errors: array expected");
60944
+ message.errors = [];
60945
+ for (var i = 0; i < object.errors.length; ++i) {
60946
+ if (typeof object.errors[i] !== "object")
60947
+ throw TypeError(".ClearExpiredRegistrationEmailCodesResponse.errors: object expected");
60948
+ message.errors[i] = $root.Error.fromObject(object.errors[i]);
60949
+ }
60950
+ }
60951
+ if (object.deletedCount != null)
60952
+ message.deletedCount = object.deletedCount | 0;
60953
+ return message;
60954
+ };
60955
+
60956
+ /**
60957
+ * Creates a plain object from a ClearExpiredRegistrationEmailCodesResponse message. Also converts values to other types if specified.
60958
+ * @function toObject
60959
+ * @memberof ClearExpiredRegistrationEmailCodesResponse
60960
+ * @static
60961
+ * @param {ClearExpiredRegistrationEmailCodesResponse} message ClearExpiredRegistrationEmailCodesResponse
60962
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
60963
+ * @returns {Object.<string,*>} Plain object
60964
+ */
60965
+ ClearExpiredRegistrationEmailCodesResponse.toObject = function toObject(message, options) {
60966
+ if (!options)
60967
+ options = {};
60968
+ var object = {};
60969
+ if (options.arrays || options.defaults)
60970
+ object.errors = [];
60971
+ if (options.defaults) {
60972
+ object.status = options.enums === String ? "UNKNOWN_CODE" : 0;
60973
+ object.deletedCount = 0;
60974
+ }
60975
+ if (message.status != null && message.hasOwnProperty("status"))
60976
+ object.status = options.enums === String ? $root.StatusCode[message.status] : message.status;
60977
+ if (message.errors && message.errors.length) {
60978
+ object.errors = [];
60979
+ for (var j = 0; j < message.errors.length; ++j)
60980
+ object.errors[j] = $root.Error.toObject(message.errors[j], options);
60981
+ }
60982
+ if (message.deletedCount != null && message.hasOwnProperty("deletedCount"))
60983
+ object.deletedCount = message.deletedCount;
60984
+ return object;
60985
+ };
60986
+
60987
+ /**
60988
+ * Converts this ClearExpiredRegistrationEmailCodesResponse to JSON.
60989
+ * @function toJSON
60990
+ * @memberof ClearExpiredRegistrationEmailCodesResponse
60991
+ * @instance
60992
+ * @returns {Object.<string,*>} JSON object
60993
+ */
60994
+ ClearExpiredRegistrationEmailCodesResponse.prototype.toJSON = function toJSON() {
60995
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
60996
+ };
60997
+
60998
+ return ClearExpiredRegistrationEmailCodesResponse;
60999
+ })();
61000
+
59489
61001
  $root.SendUserPhoneVerificationRequest = (function() {
59490
61002
 
59491
61003
  /**
@@ -75617,6 +77129,105 @@ $root.UserService = (function() {
75617
77129
  * @variation 2
75618
77130
  */
75619
77131
 
77132
+ /**
77133
+ * Callback as used by {@link UserService#sendRegistrationEmailCode}.
77134
+ * @memberof UserService
77135
+ * @typedef sendRegistrationEmailCodeCallback
77136
+ * @type {function}
77137
+ * @param {Error|null} error Error, if any
77138
+ * @param {SendRegistrationEmailCodeResponse} [response] SendRegistrationEmailCodeResponse
77139
+ */
77140
+
77141
+ /**
77142
+ * Calls sendRegistrationEmailCode.
77143
+ * @function sendRegistrationEmailCode
77144
+ * @memberof UserService
77145
+ * @instance
77146
+ * @param {ISendRegistrationEmailCodeRequest} request SendRegistrationEmailCodeRequest message or plain object
77147
+ * @param {UserService.sendRegistrationEmailCodeCallback} callback Node-style callback called with the error, if any, and SendRegistrationEmailCodeResponse
77148
+ * @returns {undefined}
77149
+ * @variation 1
77150
+ */
77151
+ Object.defineProperty(UserService.prototype.sendRegistrationEmailCode = function sendRegistrationEmailCode(request, callback) {
77152
+ return this.rpcCall(sendRegistrationEmailCode, $root.SendRegistrationEmailCodeRequest, $root.SendRegistrationEmailCodeResponse, request, callback);
77153
+ }, "name", { value: "sendRegistrationEmailCode" });
77154
+
77155
+ /**
77156
+ * Calls sendRegistrationEmailCode.
77157
+ * @function sendRegistrationEmailCode
77158
+ * @memberof UserService
77159
+ * @instance
77160
+ * @param {ISendRegistrationEmailCodeRequest} request SendRegistrationEmailCodeRequest message or plain object
77161
+ * @returns {Promise<SendRegistrationEmailCodeResponse>} Promise
77162
+ * @variation 2
77163
+ */
77164
+
77165
+ /**
77166
+ * Callback as used by {@link UserService#verifyRegistrationEmailCode}.
77167
+ * @memberof UserService
77168
+ * @typedef verifyRegistrationEmailCodeCallback
77169
+ * @type {function}
77170
+ * @param {Error|null} error Error, if any
77171
+ * @param {VerifyRegistrationEmailCodeResponse} [response] VerifyRegistrationEmailCodeResponse
77172
+ */
77173
+
77174
+ /**
77175
+ * Calls verifyRegistrationEmailCode.
77176
+ * @function verifyRegistrationEmailCode
77177
+ * @memberof UserService
77178
+ * @instance
77179
+ * @param {IVerifyRegistrationEmailCodeRequest} request VerifyRegistrationEmailCodeRequest message or plain object
77180
+ * @param {UserService.verifyRegistrationEmailCodeCallback} callback Node-style callback called with the error, if any, and VerifyRegistrationEmailCodeResponse
77181
+ * @returns {undefined}
77182
+ * @variation 1
77183
+ */
77184
+ Object.defineProperty(UserService.prototype.verifyRegistrationEmailCode = function verifyRegistrationEmailCode(request, callback) {
77185
+ return this.rpcCall(verifyRegistrationEmailCode, $root.VerifyRegistrationEmailCodeRequest, $root.VerifyRegistrationEmailCodeResponse, request, callback);
77186
+ }, "name", { value: "verifyRegistrationEmailCode" });
77187
+
77188
+ /**
77189
+ * Calls verifyRegistrationEmailCode.
77190
+ * @function verifyRegistrationEmailCode
77191
+ * @memberof UserService
77192
+ * @instance
77193
+ * @param {IVerifyRegistrationEmailCodeRequest} request VerifyRegistrationEmailCodeRequest message or plain object
77194
+ * @returns {Promise<VerifyRegistrationEmailCodeResponse>} Promise
77195
+ * @variation 2
77196
+ */
77197
+
77198
+ /**
77199
+ * Callback as used by {@link UserService#clearExpiredRegistrationEmailCodes}.
77200
+ * @memberof UserService
77201
+ * @typedef clearExpiredRegistrationEmailCodesCallback
77202
+ * @type {function}
77203
+ * @param {Error|null} error Error, if any
77204
+ * @param {ClearExpiredRegistrationEmailCodesResponse} [response] ClearExpiredRegistrationEmailCodesResponse
77205
+ */
77206
+
77207
+ /**
77208
+ * Calls clearExpiredRegistrationEmailCodes.
77209
+ * @function clearExpiredRegistrationEmailCodes
77210
+ * @memberof UserService
77211
+ * @instance
77212
+ * @param {IClearExpiredRegistrationEmailCodesRequest} request ClearExpiredRegistrationEmailCodesRequest message or plain object
77213
+ * @param {UserService.clearExpiredRegistrationEmailCodesCallback} callback Node-style callback called with the error, if any, and ClearExpiredRegistrationEmailCodesResponse
77214
+ * @returns {undefined}
77215
+ * @variation 1
77216
+ */
77217
+ Object.defineProperty(UserService.prototype.clearExpiredRegistrationEmailCodes = function clearExpiredRegistrationEmailCodes(request, callback) {
77218
+ return this.rpcCall(clearExpiredRegistrationEmailCodes, $root.ClearExpiredRegistrationEmailCodesRequest, $root.ClearExpiredRegistrationEmailCodesResponse, request, callback);
77219
+ }, "name", { value: "clearExpiredRegistrationEmailCodes" });
77220
+
77221
+ /**
77222
+ * Calls clearExpiredRegistrationEmailCodes.
77223
+ * @function clearExpiredRegistrationEmailCodes
77224
+ * @memberof UserService
77225
+ * @instance
77226
+ * @param {IClearExpiredRegistrationEmailCodesRequest} request ClearExpiredRegistrationEmailCodesRequest message or plain object
77227
+ * @returns {Promise<ClearExpiredRegistrationEmailCodesResponse>} Promise
77228
+ * @variation 2
77229
+ */
77230
+
75620
77231
  /**
75621
77232
  * Callback as used by {@link UserService#sendUserPhoneVerification}.
75622
77233
  * @memberof UserService