@headspace/protos-events 1.54.0 → 1.56.0

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.
Files changed (3) hide show
  1. package/lib/index.d.ts +313 -103
  2. package/lib/index.js +706 -197
  3. package/package.json +1 -1
package/lib/index.js CHANGED
@@ -3602,25 +3602,25 @@ $root.UserRoleUpdated = (function() {
3602
3602
  return UserRoleUpdated;
3603
3603
  })();
3604
3604
 
3605
- $root.UserCreated = (function() {
3605
+ $root.UserDomainCreated = (function() {
3606
3606
 
3607
3607
  /**
3608
- * Properties of a UserCreated.
3609
- * @exports IUserCreated
3610
- * @interface IUserCreated
3611
- * @property {userdomain.IUser|null} [user] UserCreated user
3612
- * @property {number|Long|null} [createdAt] UserCreated createdAt
3608
+ * Properties of a UserDomainCreated.
3609
+ * @exports IUserDomainCreated
3610
+ * @interface IUserDomainCreated
3611
+ * @property {userdomain.IUser|null} [user] UserDomainCreated user
3612
+ * @property {number|Long|null} [createdAt] UserDomainCreated createdAt
3613
3613
  */
3614
3614
 
3615
3615
  /**
3616
- * Constructs a new UserCreated.
3617
- * @exports UserCreated
3618
- * @classdesc Represents a UserCreated.
3619
- * @implements IUserCreated
3616
+ * Constructs a new UserDomainCreated.
3617
+ * @exports UserDomainCreated
3618
+ * @classdesc Represents a UserDomainCreated.
3619
+ * @implements IUserDomainCreated
3620
3620
  * @constructor
3621
- * @param {IUserCreated=} [properties] Properties to set
3621
+ * @param {IUserDomainCreated=} [properties] Properties to set
3622
3622
  */
3623
- function UserCreated(properties) {
3623
+ function UserDomainCreated(properties) {
3624
3624
  if (properties)
3625
3625
  for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
3626
3626
  if (properties[keys[i]] != null)
@@ -3628,43 +3628,43 @@ $root.UserCreated = (function() {
3628
3628
  }
3629
3629
 
3630
3630
  /**
3631
- * UserCreated user.
3631
+ * UserDomainCreated user.
3632
3632
  * @member {userdomain.IUser|null|undefined} user
3633
- * @memberof UserCreated
3633
+ * @memberof UserDomainCreated
3634
3634
  * @instance
3635
3635
  */
3636
- UserCreated.prototype.user = null;
3636
+ UserDomainCreated.prototype.user = null;
3637
3637
 
3638
3638
  /**
3639
- * UserCreated createdAt.
3639
+ * UserDomainCreated createdAt.
3640
3640
  * @member {number|Long} createdAt
3641
- * @memberof UserCreated
3641
+ * @memberof UserDomainCreated
3642
3642
  * @instance
3643
3643
  */
3644
- UserCreated.prototype.createdAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
3644
+ UserDomainCreated.prototype.createdAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
3645
3645
 
3646
3646
  /**
3647
- * Creates a new UserCreated instance using the specified properties.
3647
+ * Creates a new UserDomainCreated instance using the specified properties.
3648
3648
  * @function create
3649
- * @memberof UserCreated
3649
+ * @memberof UserDomainCreated
3650
3650
  * @static
3651
- * @param {IUserCreated=} [properties] Properties to set
3652
- * @returns {UserCreated} UserCreated instance
3651
+ * @param {IUserDomainCreated=} [properties] Properties to set
3652
+ * @returns {UserDomainCreated} UserDomainCreated instance
3653
3653
  */
3654
- UserCreated.create = function create(properties) {
3655
- return new UserCreated(properties);
3654
+ UserDomainCreated.create = function create(properties) {
3655
+ return new UserDomainCreated(properties);
3656
3656
  };
3657
3657
 
3658
3658
  /**
3659
- * Encodes the specified UserCreated message. Does not implicitly {@link UserCreated.verify|verify} messages.
3659
+ * Encodes the specified UserDomainCreated message. Does not implicitly {@link UserDomainCreated.verify|verify} messages.
3660
3660
  * @function encode
3661
- * @memberof UserCreated
3661
+ * @memberof UserDomainCreated
3662
3662
  * @static
3663
- * @param {IUserCreated} message UserCreated message or plain object to encode
3663
+ * @param {IUserDomainCreated} message UserDomainCreated message or plain object to encode
3664
3664
  * @param {$protobuf.Writer} [writer] Writer to encode to
3665
3665
  * @returns {$protobuf.Writer} Writer
3666
3666
  */
3667
- UserCreated.encode = function encode(message, writer) {
3667
+ UserDomainCreated.encode = function encode(message, writer) {
3668
3668
  if (!writer)
3669
3669
  writer = $Writer.create();
3670
3670
  if (message.user != null && message.hasOwnProperty("user"))
@@ -3675,33 +3675,33 @@ $root.UserCreated = (function() {
3675
3675
  };
3676
3676
 
3677
3677
  /**
3678
- * Encodes the specified UserCreated message, length delimited. Does not implicitly {@link UserCreated.verify|verify} messages.
3678
+ * Encodes the specified UserDomainCreated message, length delimited. Does not implicitly {@link UserDomainCreated.verify|verify} messages.
3679
3679
  * @function encodeDelimited
3680
- * @memberof UserCreated
3680
+ * @memberof UserDomainCreated
3681
3681
  * @static
3682
- * @param {IUserCreated} message UserCreated message or plain object to encode
3682
+ * @param {IUserDomainCreated} message UserDomainCreated message or plain object to encode
3683
3683
  * @param {$protobuf.Writer} [writer] Writer to encode to
3684
3684
  * @returns {$protobuf.Writer} Writer
3685
3685
  */
3686
- UserCreated.encodeDelimited = function encodeDelimited(message, writer) {
3686
+ UserDomainCreated.encodeDelimited = function encodeDelimited(message, writer) {
3687
3687
  return this.encode(message, writer).ldelim();
3688
3688
  };
3689
3689
 
3690
3690
  /**
3691
- * Decodes a UserCreated message from the specified reader or buffer.
3691
+ * Decodes a UserDomainCreated message from the specified reader or buffer.
3692
3692
  * @function decode
3693
- * @memberof UserCreated
3693
+ * @memberof UserDomainCreated
3694
3694
  * @static
3695
3695
  * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
3696
3696
  * @param {number} [length] Message length if known beforehand
3697
- * @returns {UserCreated} UserCreated
3697
+ * @returns {UserDomainCreated} UserDomainCreated
3698
3698
  * @throws {Error} If the payload is not a reader or valid buffer
3699
3699
  * @throws {$protobuf.util.ProtocolError} If required fields are missing
3700
3700
  */
3701
- UserCreated.decode = function decode(reader, length) {
3701
+ UserDomainCreated.decode = function decode(reader, length) {
3702
3702
  if (!(reader instanceof $Reader))
3703
3703
  reader = $Reader.create(reader);
3704
- var end = length === undefined ? reader.len : reader.pos + length, message = new $root.UserCreated();
3704
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.UserDomainCreated();
3705
3705
  while (reader.pos < end) {
3706
3706
  var tag = reader.uint32();
3707
3707
  switch (tag >>> 3) {
@@ -3720,30 +3720,30 @@ $root.UserCreated = (function() {
3720
3720
  };
3721
3721
 
3722
3722
  /**
3723
- * Decodes a UserCreated message from the specified reader or buffer, length delimited.
3723
+ * Decodes a UserDomainCreated message from the specified reader or buffer, length delimited.
3724
3724
  * @function decodeDelimited
3725
- * @memberof UserCreated
3725
+ * @memberof UserDomainCreated
3726
3726
  * @static
3727
3727
  * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
3728
- * @returns {UserCreated} UserCreated
3728
+ * @returns {UserDomainCreated} UserDomainCreated
3729
3729
  * @throws {Error} If the payload is not a reader or valid buffer
3730
3730
  * @throws {$protobuf.util.ProtocolError} If required fields are missing
3731
3731
  */
3732
- UserCreated.decodeDelimited = function decodeDelimited(reader) {
3732
+ UserDomainCreated.decodeDelimited = function decodeDelimited(reader) {
3733
3733
  if (!(reader instanceof $Reader))
3734
3734
  reader = new $Reader(reader);
3735
3735
  return this.decode(reader, reader.uint32());
3736
3736
  };
3737
3737
 
3738
3738
  /**
3739
- * Verifies a UserCreated message.
3739
+ * Verifies a UserDomainCreated message.
3740
3740
  * @function verify
3741
- * @memberof UserCreated
3741
+ * @memberof UserDomainCreated
3742
3742
  * @static
3743
3743
  * @param {Object.<string,*>} message Plain object to verify
3744
3744
  * @returns {string|null} `null` if valid, otherwise the reason why it is not
3745
3745
  */
3746
- UserCreated.verify = function verify(message) {
3746
+ UserDomainCreated.verify = function verify(message) {
3747
3747
  if (typeof message !== "object" || message === null)
3748
3748
  return "object expected";
3749
3749
  if (message.user != null && message.hasOwnProperty("user")) {
@@ -3758,20 +3758,20 @@ $root.UserCreated = (function() {
3758
3758
  };
3759
3759
 
3760
3760
  /**
3761
- * Creates a UserCreated message from a plain object. Also converts values to their respective internal types.
3761
+ * Creates a UserDomainCreated message from a plain object. Also converts values to their respective internal types.
3762
3762
  * @function fromObject
3763
- * @memberof UserCreated
3763
+ * @memberof UserDomainCreated
3764
3764
  * @static
3765
3765
  * @param {Object.<string,*>} object Plain object
3766
- * @returns {UserCreated} UserCreated
3766
+ * @returns {UserDomainCreated} UserDomainCreated
3767
3767
  */
3768
- UserCreated.fromObject = function fromObject(object) {
3769
- if (object instanceof $root.UserCreated)
3768
+ UserDomainCreated.fromObject = function fromObject(object) {
3769
+ if (object instanceof $root.UserDomainCreated)
3770
3770
  return object;
3771
- var message = new $root.UserCreated();
3771
+ var message = new $root.UserDomainCreated();
3772
3772
  if (object.user != null) {
3773
3773
  if (typeof object.user !== "object")
3774
- throw TypeError(".UserCreated.user: object expected");
3774
+ throw TypeError(".UserDomainCreated.user: object expected");
3775
3775
  message.user = $root.userdomain.User.fromObject(object.user);
3776
3776
  }
3777
3777
  if (object.createdAt != null)
@@ -3787,15 +3787,15 @@ $root.UserCreated = (function() {
3787
3787
  };
3788
3788
 
3789
3789
  /**
3790
- * Creates a plain object from a UserCreated message. Also converts values to other types if specified.
3790
+ * Creates a plain object from a UserDomainCreated message. Also converts values to other types if specified.
3791
3791
  * @function toObject
3792
- * @memberof UserCreated
3792
+ * @memberof UserDomainCreated
3793
3793
  * @static
3794
- * @param {UserCreated} message UserCreated
3794
+ * @param {UserDomainCreated} message UserDomainCreated
3795
3795
  * @param {$protobuf.IConversionOptions} [options] Conversion options
3796
3796
  * @returns {Object.<string,*>} Plain object
3797
3797
  */
3798
- UserCreated.toObject = function toObject(message, options) {
3798
+ UserDomainCreated.toObject = function toObject(message, options) {
3799
3799
  if (!options)
3800
3800
  options = {};
3801
3801
  var object = {};
@@ -3818,39 +3818,39 @@ $root.UserCreated = (function() {
3818
3818
  };
3819
3819
 
3820
3820
  /**
3821
- * Converts this UserCreated to JSON.
3821
+ * Converts this UserDomainCreated to JSON.
3822
3822
  * @function toJSON
3823
- * @memberof UserCreated
3823
+ * @memberof UserDomainCreated
3824
3824
  * @instance
3825
3825
  * @returns {Object.<string,*>} JSON object
3826
3826
  */
3827
- UserCreated.prototype.toJSON = function toJSON() {
3827
+ UserDomainCreated.prototype.toJSON = function toJSON() {
3828
3828
  return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
3829
3829
  };
3830
3830
 
3831
- return UserCreated;
3831
+ return UserDomainCreated;
3832
3832
  })();
3833
3833
 
3834
- $root.UserUpdated = (function() {
3834
+ $root.UserDomainEmailUpdated = (function() {
3835
3835
 
3836
3836
  /**
3837
- * Properties of a UserUpdated.
3838
- * @exports IUserUpdated
3839
- * @interface IUserUpdated
3840
- * @property {string|null} [hsId] UserUpdated hsId
3841
- * @property {number|Long|null} [updatedAt] UserUpdated updatedAt
3842
- * @property {userdomain.IUser|null} [user] UserUpdated user
3837
+ * Properties of a UserDomainEmailUpdated.
3838
+ * @exports IUserDomainEmailUpdated
3839
+ * @interface IUserDomainEmailUpdated
3840
+ * @property {string|null} [hsId] UserDomainEmailUpdated hsId
3841
+ * @property {string|null} [email] UserDomainEmailUpdated email
3842
+ * @property {number|Long|null} [updatedAt] UserDomainEmailUpdated updatedAt
3843
3843
  */
3844
3844
 
3845
3845
  /**
3846
- * Constructs a new UserUpdated.
3847
- * @exports UserUpdated
3848
- * @classdesc Represents a UserUpdated.
3849
- * @implements IUserUpdated
3846
+ * Constructs a new UserDomainEmailUpdated.
3847
+ * @exports UserDomainEmailUpdated
3848
+ * @classdesc Represents a UserDomainEmailUpdated.
3849
+ * @implements IUserDomainEmailUpdated
3850
3850
  * @constructor
3851
- * @param {IUserUpdated=} [properties] Properties to set
3851
+ * @param {IUserDomainEmailUpdated=} [properties] Properties to set
3852
3852
  */
3853
- function UserUpdated(properties) {
3853
+ function UserDomainEmailUpdated(properties) {
3854
3854
  if (properties)
3855
3855
  for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
3856
3856
  if (properties[keys[i]] != null)
@@ -3858,90 +3858,90 @@ $root.UserUpdated = (function() {
3858
3858
  }
3859
3859
 
3860
3860
  /**
3861
- * UserUpdated hsId.
3861
+ * UserDomainEmailUpdated hsId.
3862
3862
  * @member {string} hsId
3863
- * @memberof UserUpdated
3863
+ * @memberof UserDomainEmailUpdated
3864
3864
  * @instance
3865
3865
  */
3866
- UserUpdated.prototype.hsId = "";
3866
+ UserDomainEmailUpdated.prototype.hsId = "";
3867
3867
 
3868
3868
  /**
3869
- * UserUpdated updatedAt.
3870
- * @member {number|Long} updatedAt
3871
- * @memberof UserUpdated
3869
+ * UserDomainEmailUpdated email.
3870
+ * @member {string} email
3871
+ * @memberof UserDomainEmailUpdated
3872
3872
  * @instance
3873
3873
  */
3874
- UserUpdated.prototype.updatedAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
3874
+ UserDomainEmailUpdated.prototype.email = "";
3875
3875
 
3876
3876
  /**
3877
- * UserUpdated user.
3878
- * @member {userdomain.IUser|null|undefined} user
3879
- * @memberof UserUpdated
3877
+ * UserDomainEmailUpdated updatedAt.
3878
+ * @member {number|Long} updatedAt
3879
+ * @memberof UserDomainEmailUpdated
3880
3880
  * @instance
3881
3881
  */
3882
- UserUpdated.prototype.user = null;
3882
+ UserDomainEmailUpdated.prototype.updatedAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
3883
3883
 
3884
3884
  /**
3885
- * Creates a new UserUpdated instance using the specified properties.
3885
+ * Creates a new UserDomainEmailUpdated instance using the specified properties.
3886
3886
  * @function create
3887
- * @memberof UserUpdated
3887
+ * @memberof UserDomainEmailUpdated
3888
3888
  * @static
3889
- * @param {IUserUpdated=} [properties] Properties to set
3890
- * @returns {UserUpdated} UserUpdated instance
3889
+ * @param {IUserDomainEmailUpdated=} [properties] Properties to set
3890
+ * @returns {UserDomainEmailUpdated} UserDomainEmailUpdated instance
3891
3891
  */
3892
- UserUpdated.create = function create(properties) {
3893
- return new UserUpdated(properties);
3892
+ UserDomainEmailUpdated.create = function create(properties) {
3893
+ return new UserDomainEmailUpdated(properties);
3894
3894
  };
3895
3895
 
3896
3896
  /**
3897
- * Encodes the specified UserUpdated message. Does not implicitly {@link UserUpdated.verify|verify} messages.
3897
+ * Encodes the specified UserDomainEmailUpdated message. Does not implicitly {@link UserDomainEmailUpdated.verify|verify} messages.
3898
3898
  * @function encode
3899
- * @memberof UserUpdated
3899
+ * @memberof UserDomainEmailUpdated
3900
3900
  * @static
3901
- * @param {IUserUpdated} message UserUpdated message or plain object to encode
3901
+ * @param {IUserDomainEmailUpdated} message UserDomainEmailUpdated message or plain object to encode
3902
3902
  * @param {$protobuf.Writer} [writer] Writer to encode to
3903
3903
  * @returns {$protobuf.Writer} Writer
3904
3904
  */
3905
- UserUpdated.encode = function encode(message, writer) {
3905
+ UserDomainEmailUpdated.encode = function encode(message, writer) {
3906
3906
  if (!writer)
3907
3907
  writer = $Writer.create();
3908
3908
  if (message.hsId != null && message.hasOwnProperty("hsId"))
3909
3909
  writer.uint32(/* id 1, wireType 2 =*/10).string(message.hsId);
3910
+ if (message.email != null && message.hasOwnProperty("email"))
3911
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.email);
3910
3912
  if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
3911
- writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.updatedAt);
3912
- if (message.user != null && message.hasOwnProperty("user"))
3913
- $root.userdomain.User.encode(message.user, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
3913
+ writer.uint32(/* id 3, wireType 0 =*/24).uint64(message.updatedAt);
3914
3914
  return writer;
3915
3915
  };
3916
3916
 
3917
3917
  /**
3918
- * Encodes the specified UserUpdated message, length delimited. Does not implicitly {@link UserUpdated.verify|verify} messages.
3918
+ * Encodes the specified UserDomainEmailUpdated message, length delimited. Does not implicitly {@link UserDomainEmailUpdated.verify|verify} messages.
3919
3919
  * @function encodeDelimited
3920
- * @memberof UserUpdated
3920
+ * @memberof UserDomainEmailUpdated
3921
3921
  * @static
3922
- * @param {IUserUpdated} message UserUpdated message or plain object to encode
3922
+ * @param {IUserDomainEmailUpdated} message UserDomainEmailUpdated message or plain object to encode
3923
3923
  * @param {$protobuf.Writer} [writer] Writer to encode to
3924
3924
  * @returns {$protobuf.Writer} Writer
3925
3925
  */
3926
- UserUpdated.encodeDelimited = function encodeDelimited(message, writer) {
3926
+ UserDomainEmailUpdated.encodeDelimited = function encodeDelimited(message, writer) {
3927
3927
  return this.encode(message, writer).ldelim();
3928
3928
  };
3929
3929
 
3930
3930
  /**
3931
- * Decodes a UserUpdated message from the specified reader or buffer.
3931
+ * Decodes a UserDomainEmailUpdated message from the specified reader or buffer.
3932
3932
  * @function decode
3933
- * @memberof UserUpdated
3933
+ * @memberof UserDomainEmailUpdated
3934
3934
  * @static
3935
3935
  * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
3936
3936
  * @param {number} [length] Message length if known beforehand
3937
- * @returns {UserUpdated} UserUpdated
3937
+ * @returns {UserDomainEmailUpdated} UserDomainEmailUpdated
3938
3938
  * @throws {Error} If the payload is not a reader or valid buffer
3939
3939
  * @throws {$protobuf.util.ProtocolError} If required fields are missing
3940
3940
  */
3941
- UserUpdated.decode = function decode(reader, length) {
3941
+ UserDomainEmailUpdated.decode = function decode(reader, length) {
3942
3942
  if (!(reader instanceof $Reader))
3943
3943
  reader = $Reader.create(reader);
3944
- var end = length === undefined ? reader.len : reader.pos + length, message = new $root.UserUpdated();
3944
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.UserDomainEmailUpdated();
3945
3945
  while (reader.pos < end) {
3946
3946
  var tag = reader.uint32();
3947
3947
  switch (tag >>> 3) {
@@ -3949,10 +3949,10 @@ $root.UserUpdated = (function() {
3949
3949
  message.hsId = reader.string();
3950
3950
  break;
3951
3951
  case 2:
3952
- message.updatedAt = reader.uint64();
3952
+ message.email = reader.string();
3953
3953
  break;
3954
3954
  case 3:
3955
- message.user = $root.userdomain.User.decode(reader, reader.uint32());
3955
+ message.updatedAt = reader.uint64();
3956
3956
  break;
3957
3957
  default:
3958
3958
  reader.skipType(tag & 7);
@@ -3963,60 +3963,325 @@ $root.UserUpdated = (function() {
3963
3963
  };
3964
3964
 
3965
3965
  /**
3966
- * Decodes a UserUpdated message from the specified reader or buffer, length delimited.
3966
+ * Decodes a UserDomainEmailUpdated message from the specified reader or buffer, length delimited.
3967
3967
  * @function decodeDelimited
3968
- * @memberof UserUpdated
3968
+ * @memberof UserDomainEmailUpdated
3969
3969
  * @static
3970
3970
  * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
3971
- * @returns {UserUpdated} UserUpdated
3971
+ * @returns {UserDomainEmailUpdated} UserDomainEmailUpdated
3972
3972
  * @throws {Error} If the payload is not a reader or valid buffer
3973
3973
  * @throws {$protobuf.util.ProtocolError} If required fields are missing
3974
3974
  */
3975
- UserUpdated.decodeDelimited = function decodeDelimited(reader) {
3975
+ UserDomainEmailUpdated.decodeDelimited = function decodeDelimited(reader) {
3976
3976
  if (!(reader instanceof $Reader))
3977
3977
  reader = new $Reader(reader);
3978
3978
  return this.decode(reader, reader.uint32());
3979
3979
  };
3980
3980
 
3981
3981
  /**
3982
- * Verifies a UserUpdated message.
3982
+ * Verifies a UserDomainEmailUpdated message.
3983
3983
  * @function verify
3984
- * @memberof UserUpdated
3984
+ * @memberof UserDomainEmailUpdated
3985
3985
  * @static
3986
3986
  * @param {Object.<string,*>} message Plain object to verify
3987
3987
  * @returns {string|null} `null` if valid, otherwise the reason why it is not
3988
3988
  */
3989
- UserUpdated.verify = function verify(message) {
3989
+ UserDomainEmailUpdated.verify = function verify(message) {
3990
3990
  if (typeof message !== "object" || message === null)
3991
3991
  return "object expected";
3992
3992
  if (message.hsId != null && message.hasOwnProperty("hsId"))
3993
3993
  if (!$util.isString(message.hsId))
3994
3994
  return "hsId: string expected";
3995
+ if (message.email != null && message.hasOwnProperty("email"))
3996
+ if (!$util.isString(message.email))
3997
+ return "email: string expected";
3995
3998
  if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
3996
3999
  if (!$util.isInteger(message.updatedAt) && !(message.updatedAt && $util.isInteger(message.updatedAt.low) && $util.isInteger(message.updatedAt.high)))
3997
4000
  return "updatedAt: integer|Long expected";
3998
- if (message.user != null && message.hasOwnProperty("user")) {
3999
- var error = $root.userdomain.User.verify(message.user);
4000
- if (error)
4001
- return "user." + error;
4001
+ return null;
4002
+ };
4003
+
4004
+ /**
4005
+ * Creates a UserDomainEmailUpdated message from a plain object. Also converts values to their respective internal types.
4006
+ * @function fromObject
4007
+ * @memberof UserDomainEmailUpdated
4008
+ * @static
4009
+ * @param {Object.<string,*>} object Plain object
4010
+ * @returns {UserDomainEmailUpdated} UserDomainEmailUpdated
4011
+ */
4012
+ UserDomainEmailUpdated.fromObject = function fromObject(object) {
4013
+ if (object instanceof $root.UserDomainEmailUpdated)
4014
+ return object;
4015
+ var message = new $root.UserDomainEmailUpdated();
4016
+ if (object.hsId != null)
4017
+ message.hsId = String(object.hsId);
4018
+ if (object.email != null)
4019
+ message.email = String(object.email);
4020
+ if (object.updatedAt != null)
4021
+ if ($util.Long)
4022
+ (message.updatedAt = $util.Long.fromValue(object.updatedAt)).unsigned = true;
4023
+ else if (typeof object.updatedAt === "string")
4024
+ message.updatedAt = parseInt(object.updatedAt, 10);
4025
+ else if (typeof object.updatedAt === "number")
4026
+ message.updatedAt = object.updatedAt;
4027
+ else if (typeof object.updatedAt === "object")
4028
+ message.updatedAt = new $util.LongBits(object.updatedAt.low >>> 0, object.updatedAt.high >>> 0).toNumber(true);
4029
+ return message;
4030
+ };
4031
+
4032
+ /**
4033
+ * Creates a plain object from a UserDomainEmailUpdated message. Also converts values to other types if specified.
4034
+ * @function toObject
4035
+ * @memberof UserDomainEmailUpdated
4036
+ * @static
4037
+ * @param {UserDomainEmailUpdated} message UserDomainEmailUpdated
4038
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
4039
+ * @returns {Object.<string,*>} Plain object
4040
+ */
4041
+ UserDomainEmailUpdated.toObject = function toObject(message, options) {
4042
+ if (!options)
4043
+ options = {};
4044
+ var object = {};
4045
+ if (options.defaults) {
4046
+ object.hsId = "";
4047
+ object.email = "";
4048
+ if ($util.Long) {
4049
+ var long = new $util.Long(0, 0, true);
4050
+ object.updatedAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
4051
+ } else
4052
+ object.updatedAt = options.longs === String ? "0" : 0;
4002
4053
  }
4054
+ if (message.hsId != null && message.hasOwnProperty("hsId"))
4055
+ object.hsId = message.hsId;
4056
+ if (message.email != null && message.hasOwnProperty("email"))
4057
+ object.email = message.email;
4058
+ if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
4059
+ if (typeof message.updatedAt === "number")
4060
+ object.updatedAt = options.longs === String ? String(message.updatedAt) : message.updatedAt;
4061
+ else
4062
+ object.updatedAt = options.longs === String ? $util.Long.prototype.toString.call(message.updatedAt) : options.longs === Number ? new $util.LongBits(message.updatedAt.low >>> 0, message.updatedAt.high >>> 0).toNumber(true) : message.updatedAt;
4063
+ return object;
4064
+ };
4065
+
4066
+ /**
4067
+ * Converts this UserDomainEmailUpdated to JSON.
4068
+ * @function toJSON
4069
+ * @memberof UserDomainEmailUpdated
4070
+ * @instance
4071
+ * @returns {Object.<string,*>} JSON object
4072
+ */
4073
+ UserDomainEmailUpdated.prototype.toJSON = function toJSON() {
4074
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
4075
+ };
4076
+
4077
+ return UserDomainEmailUpdated;
4078
+ })();
4079
+
4080
+ $root.UserDomainNameUpdated = (function() {
4081
+
4082
+ /**
4083
+ * Properties of a UserDomainNameUpdated.
4084
+ * @exports IUserDomainNameUpdated
4085
+ * @interface IUserDomainNameUpdated
4086
+ * @property {string|null} [hsId] UserDomainNameUpdated hsId
4087
+ * @property {string|null} [firstName] UserDomainNameUpdated firstName
4088
+ * @property {string|null} [lastName] UserDomainNameUpdated lastName
4089
+ * @property {number|Long|null} [updatedAt] UserDomainNameUpdated updatedAt
4090
+ */
4091
+
4092
+ /**
4093
+ * Constructs a new UserDomainNameUpdated.
4094
+ * @exports UserDomainNameUpdated
4095
+ * @classdesc Represents a UserDomainNameUpdated.
4096
+ * @implements IUserDomainNameUpdated
4097
+ * @constructor
4098
+ * @param {IUserDomainNameUpdated=} [properties] Properties to set
4099
+ */
4100
+ function UserDomainNameUpdated(properties) {
4101
+ if (properties)
4102
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
4103
+ if (properties[keys[i]] != null)
4104
+ this[keys[i]] = properties[keys[i]];
4105
+ }
4106
+
4107
+ /**
4108
+ * UserDomainNameUpdated hsId.
4109
+ * @member {string} hsId
4110
+ * @memberof UserDomainNameUpdated
4111
+ * @instance
4112
+ */
4113
+ UserDomainNameUpdated.prototype.hsId = "";
4114
+
4115
+ /**
4116
+ * UserDomainNameUpdated firstName.
4117
+ * @member {string} firstName
4118
+ * @memberof UserDomainNameUpdated
4119
+ * @instance
4120
+ */
4121
+ UserDomainNameUpdated.prototype.firstName = "";
4122
+
4123
+ /**
4124
+ * UserDomainNameUpdated lastName.
4125
+ * @member {string} lastName
4126
+ * @memberof UserDomainNameUpdated
4127
+ * @instance
4128
+ */
4129
+ UserDomainNameUpdated.prototype.lastName = "";
4130
+
4131
+ /**
4132
+ * UserDomainNameUpdated updatedAt.
4133
+ * @member {number|Long} updatedAt
4134
+ * @memberof UserDomainNameUpdated
4135
+ * @instance
4136
+ */
4137
+ UserDomainNameUpdated.prototype.updatedAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
4138
+
4139
+ /**
4140
+ * Creates a new UserDomainNameUpdated instance using the specified properties.
4141
+ * @function create
4142
+ * @memberof UserDomainNameUpdated
4143
+ * @static
4144
+ * @param {IUserDomainNameUpdated=} [properties] Properties to set
4145
+ * @returns {UserDomainNameUpdated} UserDomainNameUpdated instance
4146
+ */
4147
+ UserDomainNameUpdated.create = function create(properties) {
4148
+ return new UserDomainNameUpdated(properties);
4149
+ };
4150
+
4151
+ /**
4152
+ * Encodes the specified UserDomainNameUpdated message. Does not implicitly {@link UserDomainNameUpdated.verify|verify} messages.
4153
+ * @function encode
4154
+ * @memberof UserDomainNameUpdated
4155
+ * @static
4156
+ * @param {IUserDomainNameUpdated} message UserDomainNameUpdated message or plain object to encode
4157
+ * @param {$protobuf.Writer} [writer] Writer to encode to
4158
+ * @returns {$protobuf.Writer} Writer
4159
+ */
4160
+ UserDomainNameUpdated.encode = function encode(message, writer) {
4161
+ if (!writer)
4162
+ writer = $Writer.create();
4163
+ if (message.hsId != null && message.hasOwnProperty("hsId"))
4164
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.hsId);
4165
+ if (message.firstName != null && message.hasOwnProperty("firstName"))
4166
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.firstName);
4167
+ if (message.lastName != null && message.hasOwnProperty("lastName"))
4168
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.lastName);
4169
+ if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
4170
+ writer.uint32(/* id 4, wireType 0 =*/32).uint64(message.updatedAt);
4171
+ return writer;
4172
+ };
4173
+
4174
+ /**
4175
+ * Encodes the specified UserDomainNameUpdated message, length delimited. Does not implicitly {@link UserDomainNameUpdated.verify|verify} messages.
4176
+ * @function encodeDelimited
4177
+ * @memberof UserDomainNameUpdated
4178
+ * @static
4179
+ * @param {IUserDomainNameUpdated} message UserDomainNameUpdated message or plain object to encode
4180
+ * @param {$protobuf.Writer} [writer] Writer to encode to
4181
+ * @returns {$protobuf.Writer} Writer
4182
+ */
4183
+ UserDomainNameUpdated.encodeDelimited = function encodeDelimited(message, writer) {
4184
+ return this.encode(message, writer).ldelim();
4185
+ };
4186
+
4187
+ /**
4188
+ * Decodes a UserDomainNameUpdated message from the specified reader or buffer.
4189
+ * @function decode
4190
+ * @memberof UserDomainNameUpdated
4191
+ * @static
4192
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
4193
+ * @param {number} [length] Message length if known beforehand
4194
+ * @returns {UserDomainNameUpdated} UserDomainNameUpdated
4195
+ * @throws {Error} If the payload is not a reader or valid buffer
4196
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
4197
+ */
4198
+ UserDomainNameUpdated.decode = function decode(reader, length) {
4199
+ if (!(reader instanceof $Reader))
4200
+ reader = $Reader.create(reader);
4201
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.UserDomainNameUpdated();
4202
+ while (reader.pos < end) {
4203
+ var tag = reader.uint32();
4204
+ switch (tag >>> 3) {
4205
+ case 1:
4206
+ message.hsId = reader.string();
4207
+ break;
4208
+ case 2:
4209
+ message.firstName = reader.string();
4210
+ break;
4211
+ case 3:
4212
+ message.lastName = reader.string();
4213
+ break;
4214
+ case 4:
4215
+ message.updatedAt = reader.uint64();
4216
+ break;
4217
+ default:
4218
+ reader.skipType(tag & 7);
4219
+ break;
4220
+ }
4221
+ }
4222
+ return message;
4223
+ };
4224
+
4225
+ /**
4226
+ * Decodes a UserDomainNameUpdated message from the specified reader or buffer, length delimited.
4227
+ * @function decodeDelimited
4228
+ * @memberof UserDomainNameUpdated
4229
+ * @static
4230
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
4231
+ * @returns {UserDomainNameUpdated} UserDomainNameUpdated
4232
+ * @throws {Error} If the payload is not a reader or valid buffer
4233
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
4234
+ */
4235
+ UserDomainNameUpdated.decodeDelimited = function decodeDelimited(reader) {
4236
+ if (!(reader instanceof $Reader))
4237
+ reader = new $Reader(reader);
4238
+ return this.decode(reader, reader.uint32());
4239
+ };
4240
+
4241
+ /**
4242
+ * Verifies a UserDomainNameUpdated message.
4243
+ * @function verify
4244
+ * @memberof UserDomainNameUpdated
4245
+ * @static
4246
+ * @param {Object.<string,*>} message Plain object to verify
4247
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
4248
+ */
4249
+ UserDomainNameUpdated.verify = function verify(message) {
4250
+ if (typeof message !== "object" || message === null)
4251
+ return "object expected";
4252
+ if (message.hsId != null && message.hasOwnProperty("hsId"))
4253
+ if (!$util.isString(message.hsId))
4254
+ return "hsId: string expected";
4255
+ if (message.firstName != null && message.hasOwnProperty("firstName"))
4256
+ if (!$util.isString(message.firstName))
4257
+ return "firstName: string expected";
4258
+ if (message.lastName != null && message.hasOwnProperty("lastName"))
4259
+ if (!$util.isString(message.lastName))
4260
+ return "lastName: string expected";
4261
+ if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
4262
+ if (!$util.isInteger(message.updatedAt) && !(message.updatedAt && $util.isInteger(message.updatedAt.low) && $util.isInteger(message.updatedAt.high)))
4263
+ return "updatedAt: integer|Long expected";
4003
4264
  return null;
4004
4265
  };
4005
4266
 
4006
4267
  /**
4007
- * Creates a UserUpdated message from a plain object. Also converts values to their respective internal types.
4268
+ * Creates a UserDomainNameUpdated message from a plain object. Also converts values to their respective internal types.
4008
4269
  * @function fromObject
4009
- * @memberof UserUpdated
4270
+ * @memberof UserDomainNameUpdated
4010
4271
  * @static
4011
4272
  * @param {Object.<string,*>} object Plain object
4012
- * @returns {UserUpdated} UserUpdated
4273
+ * @returns {UserDomainNameUpdated} UserDomainNameUpdated
4013
4274
  */
4014
- UserUpdated.fromObject = function fromObject(object) {
4015
- if (object instanceof $root.UserUpdated)
4275
+ UserDomainNameUpdated.fromObject = function fromObject(object) {
4276
+ if (object instanceof $root.UserDomainNameUpdated)
4016
4277
  return object;
4017
- var message = new $root.UserUpdated();
4278
+ var message = new $root.UserDomainNameUpdated();
4018
4279
  if (object.hsId != null)
4019
4280
  message.hsId = String(object.hsId);
4281
+ if (object.firstName != null)
4282
+ message.firstName = String(object.firstName);
4283
+ if (object.lastName != null)
4284
+ message.lastName = String(object.lastName);
4020
4285
  if (object.updatedAt != null)
4021
4286
  if ($util.Long)
4022
4287
  (message.updatedAt = $util.Long.fromValue(object.updatedAt)).unsigned = true;
@@ -4026,81 +4291,325 @@ $root.UserUpdated = (function() {
4026
4291
  message.updatedAt = object.updatedAt;
4027
4292
  else if (typeof object.updatedAt === "object")
4028
4293
  message.updatedAt = new $util.LongBits(object.updatedAt.low >>> 0, object.updatedAt.high >>> 0).toNumber(true);
4029
- if (object.user != null) {
4030
- if (typeof object.user !== "object")
4031
- throw TypeError(".UserUpdated.user: object expected");
4032
- message.user = $root.userdomain.User.fromObject(object.user);
4294
+ return message;
4295
+ };
4296
+
4297
+ /**
4298
+ * Creates a plain object from a UserDomainNameUpdated message. Also converts values to other types if specified.
4299
+ * @function toObject
4300
+ * @memberof UserDomainNameUpdated
4301
+ * @static
4302
+ * @param {UserDomainNameUpdated} message UserDomainNameUpdated
4303
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
4304
+ * @returns {Object.<string,*>} Plain object
4305
+ */
4306
+ UserDomainNameUpdated.toObject = function toObject(message, options) {
4307
+ if (!options)
4308
+ options = {};
4309
+ var object = {};
4310
+ if (options.defaults) {
4311
+ object.hsId = "";
4312
+ object.firstName = "";
4313
+ object.lastName = "";
4314
+ if ($util.Long) {
4315
+ var long = new $util.Long(0, 0, true);
4316
+ object.updatedAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
4317
+ } else
4318
+ object.updatedAt = options.longs === String ? "0" : 0;
4319
+ }
4320
+ if (message.hsId != null && message.hasOwnProperty("hsId"))
4321
+ object.hsId = message.hsId;
4322
+ if (message.firstName != null && message.hasOwnProperty("firstName"))
4323
+ object.firstName = message.firstName;
4324
+ if (message.lastName != null && message.hasOwnProperty("lastName"))
4325
+ object.lastName = message.lastName;
4326
+ if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
4327
+ if (typeof message.updatedAt === "number")
4328
+ object.updatedAt = options.longs === String ? String(message.updatedAt) : message.updatedAt;
4329
+ else
4330
+ object.updatedAt = options.longs === String ? $util.Long.prototype.toString.call(message.updatedAt) : options.longs === Number ? new $util.LongBits(message.updatedAt.low >>> 0, message.updatedAt.high >>> 0).toNumber(true) : message.updatedAt;
4331
+ return object;
4332
+ };
4333
+
4334
+ /**
4335
+ * Converts this UserDomainNameUpdated to JSON.
4336
+ * @function toJSON
4337
+ * @memberof UserDomainNameUpdated
4338
+ * @instance
4339
+ * @returns {Object.<string,*>} JSON object
4340
+ */
4341
+ UserDomainNameUpdated.prototype.toJSON = function toJSON() {
4342
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
4343
+ };
4344
+
4345
+ return UserDomainNameUpdated;
4346
+ })();
4347
+
4348
+ $root.UserDomainCountryUpdated = (function() {
4349
+
4350
+ /**
4351
+ * Properties of a UserDomainCountryUpdated.
4352
+ * @exports IUserDomainCountryUpdated
4353
+ * @interface IUserDomainCountryUpdated
4354
+ * @property {string|null} [hsId] UserDomainCountryUpdated hsId
4355
+ * @property {string|null} [countryCode] UserDomainCountryUpdated countryCode
4356
+ * @property {number|Long|null} [updatedAt] UserDomainCountryUpdated updatedAt
4357
+ */
4358
+
4359
+ /**
4360
+ * Constructs a new UserDomainCountryUpdated.
4361
+ * @exports UserDomainCountryUpdated
4362
+ * @classdesc Represents a UserDomainCountryUpdated.
4363
+ * @implements IUserDomainCountryUpdated
4364
+ * @constructor
4365
+ * @param {IUserDomainCountryUpdated=} [properties] Properties to set
4366
+ */
4367
+ function UserDomainCountryUpdated(properties) {
4368
+ if (properties)
4369
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
4370
+ if (properties[keys[i]] != null)
4371
+ this[keys[i]] = properties[keys[i]];
4372
+ }
4373
+
4374
+ /**
4375
+ * UserDomainCountryUpdated hsId.
4376
+ * @member {string} hsId
4377
+ * @memberof UserDomainCountryUpdated
4378
+ * @instance
4379
+ */
4380
+ UserDomainCountryUpdated.prototype.hsId = "";
4381
+
4382
+ /**
4383
+ * UserDomainCountryUpdated countryCode.
4384
+ * @member {string} countryCode
4385
+ * @memberof UserDomainCountryUpdated
4386
+ * @instance
4387
+ */
4388
+ UserDomainCountryUpdated.prototype.countryCode = "";
4389
+
4390
+ /**
4391
+ * UserDomainCountryUpdated updatedAt.
4392
+ * @member {number|Long} updatedAt
4393
+ * @memberof UserDomainCountryUpdated
4394
+ * @instance
4395
+ */
4396
+ UserDomainCountryUpdated.prototype.updatedAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
4397
+
4398
+ /**
4399
+ * Creates a new UserDomainCountryUpdated instance using the specified properties.
4400
+ * @function create
4401
+ * @memberof UserDomainCountryUpdated
4402
+ * @static
4403
+ * @param {IUserDomainCountryUpdated=} [properties] Properties to set
4404
+ * @returns {UserDomainCountryUpdated} UserDomainCountryUpdated instance
4405
+ */
4406
+ UserDomainCountryUpdated.create = function create(properties) {
4407
+ return new UserDomainCountryUpdated(properties);
4408
+ };
4409
+
4410
+ /**
4411
+ * Encodes the specified UserDomainCountryUpdated message. Does not implicitly {@link UserDomainCountryUpdated.verify|verify} messages.
4412
+ * @function encode
4413
+ * @memberof UserDomainCountryUpdated
4414
+ * @static
4415
+ * @param {IUserDomainCountryUpdated} message UserDomainCountryUpdated message or plain object to encode
4416
+ * @param {$protobuf.Writer} [writer] Writer to encode to
4417
+ * @returns {$protobuf.Writer} Writer
4418
+ */
4419
+ UserDomainCountryUpdated.encode = function encode(message, writer) {
4420
+ if (!writer)
4421
+ writer = $Writer.create();
4422
+ if (message.hsId != null && message.hasOwnProperty("hsId"))
4423
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.hsId);
4424
+ if (message.countryCode != null && message.hasOwnProperty("countryCode"))
4425
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.countryCode);
4426
+ if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
4427
+ writer.uint32(/* id 3, wireType 0 =*/24).uint64(message.updatedAt);
4428
+ return writer;
4429
+ };
4430
+
4431
+ /**
4432
+ * Encodes the specified UserDomainCountryUpdated message, length delimited. Does not implicitly {@link UserDomainCountryUpdated.verify|verify} messages.
4433
+ * @function encodeDelimited
4434
+ * @memberof UserDomainCountryUpdated
4435
+ * @static
4436
+ * @param {IUserDomainCountryUpdated} message UserDomainCountryUpdated message or plain object to encode
4437
+ * @param {$protobuf.Writer} [writer] Writer to encode to
4438
+ * @returns {$protobuf.Writer} Writer
4439
+ */
4440
+ UserDomainCountryUpdated.encodeDelimited = function encodeDelimited(message, writer) {
4441
+ return this.encode(message, writer).ldelim();
4442
+ };
4443
+
4444
+ /**
4445
+ * Decodes a UserDomainCountryUpdated message from the specified reader or buffer.
4446
+ * @function decode
4447
+ * @memberof UserDomainCountryUpdated
4448
+ * @static
4449
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
4450
+ * @param {number} [length] Message length if known beforehand
4451
+ * @returns {UserDomainCountryUpdated} UserDomainCountryUpdated
4452
+ * @throws {Error} If the payload is not a reader or valid buffer
4453
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
4454
+ */
4455
+ UserDomainCountryUpdated.decode = function decode(reader, length) {
4456
+ if (!(reader instanceof $Reader))
4457
+ reader = $Reader.create(reader);
4458
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.UserDomainCountryUpdated();
4459
+ while (reader.pos < end) {
4460
+ var tag = reader.uint32();
4461
+ switch (tag >>> 3) {
4462
+ case 1:
4463
+ message.hsId = reader.string();
4464
+ break;
4465
+ case 2:
4466
+ message.countryCode = reader.string();
4467
+ break;
4468
+ case 3:
4469
+ message.updatedAt = reader.uint64();
4470
+ break;
4471
+ default:
4472
+ reader.skipType(tag & 7);
4473
+ break;
4474
+ }
4033
4475
  }
4034
4476
  return message;
4035
4477
  };
4036
4478
 
4037
4479
  /**
4038
- * Creates a plain object from a UserUpdated message. Also converts values to other types if specified.
4480
+ * Decodes a UserDomainCountryUpdated message from the specified reader or buffer, length delimited.
4481
+ * @function decodeDelimited
4482
+ * @memberof UserDomainCountryUpdated
4483
+ * @static
4484
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
4485
+ * @returns {UserDomainCountryUpdated} UserDomainCountryUpdated
4486
+ * @throws {Error} If the payload is not a reader or valid buffer
4487
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
4488
+ */
4489
+ UserDomainCountryUpdated.decodeDelimited = function decodeDelimited(reader) {
4490
+ if (!(reader instanceof $Reader))
4491
+ reader = new $Reader(reader);
4492
+ return this.decode(reader, reader.uint32());
4493
+ };
4494
+
4495
+ /**
4496
+ * Verifies a UserDomainCountryUpdated message.
4497
+ * @function verify
4498
+ * @memberof UserDomainCountryUpdated
4499
+ * @static
4500
+ * @param {Object.<string,*>} message Plain object to verify
4501
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
4502
+ */
4503
+ UserDomainCountryUpdated.verify = function verify(message) {
4504
+ if (typeof message !== "object" || message === null)
4505
+ return "object expected";
4506
+ if (message.hsId != null && message.hasOwnProperty("hsId"))
4507
+ if (!$util.isString(message.hsId))
4508
+ return "hsId: string expected";
4509
+ if (message.countryCode != null && message.hasOwnProperty("countryCode"))
4510
+ if (!$util.isString(message.countryCode))
4511
+ return "countryCode: string expected";
4512
+ if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
4513
+ if (!$util.isInteger(message.updatedAt) && !(message.updatedAt && $util.isInteger(message.updatedAt.low) && $util.isInteger(message.updatedAt.high)))
4514
+ return "updatedAt: integer|Long expected";
4515
+ return null;
4516
+ };
4517
+
4518
+ /**
4519
+ * Creates a UserDomainCountryUpdated message from a plain object. Also converts values to their respective internal types.
4520
+ * @function fromObject
4521
+ * @memberof UserDomainCountryUpdated
4522
+ * @static
4523
+ * @param {Object.<string,*>} object Plain object
4524
+ * @returns {UserDomainCountryUpdated} UserDomainCountryUpdated
4525
+ */
4526
+ UserDomainCountryUpdated.fromObject = function fromObject(object) {
4527
+ if (object instanceof $root.UserDomainCountryUpdated)
4528
+ return object;
4529
+ var message = new $root.UserDomainCountryUpdated();
4530
+ if (object.hsId != null)
4531
+ message.hsId = String(object.hsId);
4532
+ if (object.countryCode != null)
4533
+ message.countryCode = String(object.countryCode);
4534
+ if (object.updatedAt != null)
4535
+ if ($util.Long)
4536
+ (message.updatedAt = $util.Long.fromValue(object.updatedAt)).unsigned = true;
4537
+ else if (typeof object.updatedAt === "string")
4538
+ message.updatedAt = parseInt(object.updatedAt, 10);
4539
+ else if (typeof object.updatedAt === "number")
4540
+ message.updatedAt = object.updatedAt;
4541
+ else if (typeof object.updatedAt === "object")
4542
+ message.updatedAt = new $util.LongBits(object.updatedAt.low >>> 0, object.updatedAt.high >>> 0).toNumber(true);
4543
+ return message;
4544
+ };
4545
+
4546
+ /**
4547
+ * Creates a plain object from a UserDomainCountryUpdated message. Also converts values to other types if specified.
4039
4548
  * @function toObject
4040
- * @memberof UserUpdated
4549
+ * @memberof UserDomainCountryUpdated
4041
4550
  * @static
4042
- * @param {UserUpdated} message UserUpdated
4551
+ * @param {UserDomainCountryUpdated} message UserDomainCountryUpdated
4043
4552
  * @param {$protobuf.IConversionOptions} [options] Conversion options
4044
4553
  * @returns {Object.<string,*>} Plain object
4045
4554
  */
4046
- UserUpdated.toObject = function toObject(message, options) {
4555
+ UserDomainCountryUpdated.toObject = function toObject(message, options) {
4047
4556
  if (!options)
4048
4557
  options = {};
4049
4558
  var object = {};
4050
4559
  if (options.defaults) {
4051
4560
  object.hsId = "";
4561
+ object.countryCode = "";
4052
4562
  if ($util.Long) {
4053
4563
  var long = new $util.Long(0, 0, true);
4054
4564
  object.updatedAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
4055
4565
  } else
4056
4566
  object.updatedAt = options.longs === String ? "0" : 0;
4057
- object.user = null;
4058
4567
  }
4059
4568
  if (message.hsId != null && message.hasOwnProperty("hsId"))
4060
4569
  object.hsId = message.hsId;
4570
+ if (message.countryCode != null && message.hasOwnProperty("countryCode"))
4571
+ object.countryCode = message.countryCode;
4061
4572
  if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
4062
4573
  if (typeof message.updatedAt === "number")
4063
4574
  object.updatedAt = options.longs === String ? String(message.updatedAt) : message.updatedAt;
4064
4575
  else
4065
4576
  object.updatedAt = options.longs === String ? $util.Long.prototype.toString.call(message.updatedAt) : options.longs === Number ? new $util.LongBits(message.updatedAt.low >>> 0, message.updatedAt.high >>> 0).toNumber(true) : message.updatedAt;
4066
- if (message.user != null && message.hasOwnProperty("user"))
4067
- object.user = $root.userdomain.User.toObject(message.user, options);
4068
4577
  return object;
4069
4578
  };
4070
4579
 
4071
4580
  /**
4072
- * Converts this UserUpdated to JSON.
4581
+ * Converts this UserDomainCountryUpdated to JSON.
4073
4582
  * @function toJSON
4074
- * @memberof UserUpdated
4583
+ * @memberof UserDomainCountryUpdated
4075
4584
  * @instance
4076
4585
  * @returns {Object.<string,*>} JSON object
4077
4586
  */
4078
- UserUpdated.prototype.toJSON = function toJSON() {
4587
+ UserDomainCountryUpdated.prototype.toJSON = function toJSON() {
4079
4588
  return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
4080
4589
  };
4081
4590
 
4082
- return UserUpdated;
4591
+ return UserDomainCountryUpdated;
4083
4592
  })();
4084
4593
 
4085
- $root.UserDeleted = (function() {
4594
+ $root.UserDomainDeleted = (function() {
4086
4595
 
4087
4596
  /**
4088
- * Properties of a UserDeleted.
4089
- * @exports IUserDeleted
4090
- * @interface IUserDeleted
4091
- * @property {string|null} [hsId] UserDeleted hsId
4092
- * @property {number|Long|null} [deletedAt] UserDeleted deletedAt
4597
+ * Properties of a UserDomainDeleted.
4598
+ * @exports IUserDomainDeleted
4599
+ * @interface IUserDomainDeleted
4600
+ * @property {string|null} [hsId] UserDomainDeleted hsId
4601
+ * @property {number|Long|null} [deletedAt] UserDomainDeleted deletedAt
4093
4602
  */
4094
4603
 
4095
4604
  /**
4096
- * Constructs a new UserDeleted.
4097
- * @exports UserDeleted
4098
- * @classdesc Represents a UserDeleted.
4099
- * @implements IUserDeleted
4605
+ * Constructs a new UserDomainDeleted.
4606
+ * @exports UserDomainDeleted
4607
+ * @classdesc Represents a UserDomainDeleted.
4608
+ * @implements IUserDomainDeleted
4100
4609
  * @constructor
4101
- * @param {IUserDeleted=} [properties] Properties to set
4610
+ * @param {IUserDomainDeleted=} [properties] Properties to set
4102
4611
  */
4103
- function UserDeleted(properties) {
4612
+ function UserDomainDeleted(properties) {
4104
4613
  if (properties)
4105
4614
  for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
4106
4615
  if (properties[keys[i]] != null)
@@ -4108,43 +4617,43 @@ $root.UserDeleted = (function() {
4108
4617
  }
4109
4618
 
4110
4619
  /**
4111
- * UserDeleted hsId.
4620
+ * UserDomainDeleted hsId.
4112
4621
  * @member {string} hsId
4113
- * @memberof UserDeleted
4622
+ * @memberof UserDomainDeleted
4114
4623
  * @instance
4115
4624
  */
4116
- UserDeleted.prototype.hsId = "";
4625
+ UserDomainDeleted.prototype.hsId = "";
4117
4626
 
4118
4627
  /**
4119
- * UserDeleted deletedAt.
4628
+ * UserDomainDeleted deletedAt.
4120
4629
  * @member {number|Long} deletedAt
4121
- * @memberof UserDeleted
4630
+ * @memberof UserDomainDeleted
4122
4631
  * @instance
4123
4632
  */
4124
- UserDeleted.prototype.deletedAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
4633
+ UserDomainDeleted.prototype.deletedAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
4125
4634
 
4126
4635
  /**
4127
- * Creates a new UserDeleted instance using the specified properties.
4636
+ * Creates a new UserDomainDeleted instance using the specified properties.
4128
4637
  * @function create
4129
- * @memberof UserDeleted
4638
+ * @memberof UserDomainDeleted
4130
4639
  * @static
4131
- * @param {IUserDeleted=} [properties] Properties to set
4132
- * @returns {UserDeleted} UserDeleted instance
4640
+ * @param {IUserDomainDeleted=} [properties] Properties to set
4641
+ * @returns {UserDomainDeleted} UserDomainDeleted instance
4133
4642
  */
4134
- UserDeleted.create = function create(properties) {
4135
- return new UserDeleted(properties);
4643
+ UserDomainDeleted.create = function create(properties) {
4644
+ return new UserDomainDeleted(properties);
4136
4645
  };
4137
4646
 
4138
4647
  /**
4139
- * Encodes the specified UserDeleted message. Does not implicitly {@link UserDeleted.verify|verify} messages.
4648
+ * Encodes the specified UserDomainDeleted message. Does not implicitly {@link UserDomainDeleted.verify|verify} messages.
4140
4649
  * @function encode
4141
- * @memberof UserDeleted
4650
+ * @memberof UserDomainDeleted
4142
4651
  * @static
4143
- * @param {IUserDeleted} message UserDeleted message or plain object to encode
4652
+ * @param {IUserDomainDeleted} message UserDomainDeleted message or plain object to encode
4144
4653
  * @param {$protobuf.Writer} [writer] Writer to encode to
4145
4654
  * @returns {$protobuf.Writer} Writer
4146
4655
  */
4147
- UserDeleted.encode = function encode(message, writer) {
4656
+ UserDomainDeleted.encode = function encode(message, writer) {
4148
4657
  if (!writer)
4149
4658
  writer = $Writer.create();
4150
4659
  if (message.hsId != null && message.hasOwnProperty("hsId"))
@@ -4155,33 +4664,33 @@ $root.UserDeleted = (function() {
4155
4664
  };
4156
4665
 
4157
4666
  /**
4158
- * Encodes the specified UserDeleted message, length delimited. Does not implicitly {@link UserDeleted.verify|verify} messages.
4667
+ * Encodes the specified UserDomainDeleted message, length delimited. Does not implicitly {@link UserDomainDeleted.verify|verify} messages.
4159
4668
  * @function encodeDelimited
4160
- * @memberof UserDeleted
4669
+ * @memberof UserDomainDeleted
4161
4670
  * @static
4162
- * @param {IUserDeleted} message UserDeleted message or plain object to encode
4671
+ * @param {IUserDomainDeleted} message UserDomainDeleted message or plain object to encode
4163
4672
  * @param {$protobuf.Writer} [writer] Writer to encode to
4164
4673
  * @returns {$protobuf.Writer} Writer
4165
4674
  */
4166
- UserDeleted.encodeDelimited = function encodeDelimited(message, writer) {
4675
+ UserDomainDeleted.encodeDelimited = function encodeDelimited(message, writer) {
4167
4676
  return this.encode(message, writer).ldelim();
4168
4677
  };
4169
4678
 
4170
4679
  /**
4171
- * Decodes a UserDeleted message from the specified reader or buffer.
4680
+ * Decodes a UserDomainDeleted message from the specified reader or buffer.
4172
4681
  * @function decode
4173
- * @memberof UserDeleted
4682
+ * @memberof UserDomainDeleted
4174
4683
  * @static
4175
4684
  * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
4176
4685
  * @param {number} [length] Message length if known beforehand
4177
- * @returns {UserDeleted} UserDeleted
4686
+ * @returns {UserDomainDeleted} UserDomainDeleted
4178
4687
  * @throws {Error} If the payload is not a reader or valid buffer
4179
4688
  * @throws {$protobuf.util.ProtocolError} If required fields are missing
4180
4689
  */
4181
- UserDeleted.decode = function decode(reader, length) {
4690
+ UserDomainDeleted.decode = function decode(reader, length) {
4182
4691
  if (!(reader instanceof $Reader))
4183
4692
  reader = $Reader.create(reader);
4184
- var end = length === undefined ? reader.len : reader.pos + length, message = new $root.UserDeleted();
4693
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.UserDomainDeleted();
4185
4694
  while (reader.pos < end) {
4186
4695
  var tag = reader.uint32();
4187
4696
  switch (tag >>> 3) {
@@ -4200,30 +4709,30 @@ $root.UserDeleted = (function() {
4200
4709
  };
4201
4710
 
4202
4711
  /**
4203
- * Decodes a UserDeleted message from the specified reader or buffer, length delimited.
4712
+ * Decodes a UserDomainDeleted message from the specified reader or buffer, length delimited.
4204
4713
  * @function decodeDelimited
4205
- * @memberof UserDeleted
4714
+ * @memberof UserDomainDeleted
4206
4715
  * @static
4207
4716
  * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
4208
- * @returns {UserDeleted} UserDeleted
4717
+ * @returns {UserDomainDeleted} UserDomainDeleted
4209
4718
  * @throws {Error} If the payload is not a reader or valid buffer
4210
4719
  * @throws {$protobuf.util.ProtocolError} If required fields are missing
4211
4720
  */
4212
- UserDeleted.decodeDelimited = function decodeDelimited(reader) {
4721
+ UserDomainDeleted.decodeDelimited = function decodeDelimited(reader) {
4213
4722
  if (!(reader instanceof $Reader))
4214
4723
  reader = new $Reader(reader);
4215
4724
  return this.decode(reader, reader.uint32());
4216
4725
  };
4217
4726
 
4218
4727
  /**
4219
- * Verifies a UserDeleted message.
4728
+ * Verifies a UserDomainDeleted message.
4220
4729
  * @function verify
4221
- * @memberof UserDeleted
4730
+ * @memberof UserDomainDeleted
4222
4731
  * @static
4223
4732
  * @param {Object.<string,*>} message Plain object to verify
4224
4733
  * @returns {string|null} `null` if valid, otherwise the reason why it is not
4225
4734
  */
4226
- UserDeleted.verify = function verify(message) {
4735
+ UserDomainDeleted.verify = function verify(message) {
4227
4736
  if (typeof message !== "object" || message === null)
4228
4737
  return "object expected";
4229
4738
  if (message.hsId != null && message.hasOwnProperty("hsId"))
@@ -4236,17 +4745,17 @@ $root.UserDeleted = (function() {
4236
4745
  };
4237
4746
 
4238
4747
  /**
4239
- * Creates a UserDeleted message from a plain object. Also converts values to their respective internal types.
4748
+ * Creates a UserDomainDeleted message from a plain object. Also converts values to their respective internal types.
4240
4749
  * @function fromObject
4241
- * @memberof UserDeleted
4750
+ * @memberof UserDomainDeleted
4242
4751
  * @static
4243
4752
  * @param {Object.<string,*>} object Plain object
4244
- * @returns {UserDeleted} UserDeleted
4753
+ * @returns {UserDomainDeleted} UserDomainDeleted
4245
4754
  */
4246
- UserDeleted.fromObject = function fromObject(object) {
4247
- if (object instanceof $root.UserDeleted)
4755
+ UserDomainDeleted.fromObject = function fromObject(object) {
4756
+ if (object instanceof $root.UserDomainDeleted)
4248
4757
  return object;
4249
- var message = new $root.UserDeleted();
4758
+ var message = new $root.UserDomainDeleted();
4250
4759
  if (object.hsId != null)
4251
4760
  message.hsId = String(object.hsId);
4252
4761
  if (object.deletedAt != null)
@@ -4262,15 +4771,15 @@ $root.UserDeleted = (function() {
4262
4771
  };
4263
4772
 
4264
4773
  /**
4265
- * Creates a plain object from a UserDeleted message. Also converts values to other types if specified.
4774
+ * Creates a plain object from a UserDomainDeleted message. Also converts values to other types if specified.
4266
4775
  * @function toObject
4267
- * @memberof UserDeleted
4776
+ * @memberof UserDomainDeleted
4268
4777
  * @static
4269
- * @param {UserDeleted} message UserDeleted
4778
+ * @param {UserDomainDeleted} message UserDomainDeleted
4270
4779
  * @param {$protobuf.IConversionOptions} [options] Conversion options
4271
4780
  * @returns {Object.<string,*>} Plain object
4272
4781
  */
4273
- UserDeleted.toObject = function toObject(message, options) {
4782
+ UserDomainDeleted.toObject = function toObject(message, options) {
4274
4783
  if (!options)
4275
4784
  options = {};
4276
4785
  var object = {};
@@ -4293,17 +4802,17 @@ $root.UserDeleted = (function() {
4293
4802
  };
4294
4803
 
4295
4804
  /**
4296
- * Converts this UserDeleted to JSON.
4805
+ * Converts this UserDomainDeleted to JSON.
4297
4806
  * @function toJSON
4298
- * @memberof UserDeleted
4807
+ * @memberof UserDomainDeleted
4299
4808
  * @instance
4300
4809
  * @returns {Object.<string,*>} JSON object
4301
4810
  */
4302
- UserDeleted.prototype.toJSON = function toJSON() {
4811
+ UserDomainDeleted.prototype.toJSON = function toJSON() {
4303
4812
  return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
4304
4813
  };
4305
4814
 
4306
- return UserDeleted;
4815
+ return UserDomainDeleted;
4307
4816
  })();
4308
4817
 
4309
4818
  $root.UserPasswordResetCreated = (function() {