@headspace/protos-events 1.7.0 → 1.9.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.
- package/lib/index.d.ts +102 -0
- package/lib/index.js +246 -0
- package/package.json +1 -1
package/lib/index.d.ts
CHANGED
|
@@ -1827,3 +1827,105 @@ export class UserPasswordUpdated implements IUserPasswordUpdated {
|
|
|
1827
1827
|
*/
|
|
1828
1828
|
public toJSON(): { [k: string]: any };
|
|
1829
1829
|
}
|
|
1830
|
+
|
|
1831
|
+
/** Properties of a UserEmailVerificationRequested. */
|
|
1832
|
+
export interface IUserEmailVerificationRequested {
|
|
1833
|
+
|
|
1834
|
+
/** UserEmailVerificationRequested userId */
|
|
1835
|
+
userId?: (string|null);
|
|
1836
|
+
|
|
1837
|
+
/** UserEmailVerificationRequested verificationCode */
|
|
1838
|
+
verificationCode?: (string|null);
|
|
1839
|
+
|
|
1840
|
+
/** UserEmailVerificationRequested timestamp */
|
|
1841
|
+
timestamp?: (number|Long|null);
|
|
1842
|
+
}
|
|
1843
|
+
|
|
1844
|
+
/** Represents a UserEmailVerificationRequested. */
|
|
1845
|
+
export class UserEmailVerificationRequested implements IUserEmailVerificationRequested {
|
|
1846
|
+
|
|
1847
|
+
/**
|
|
1848
|
+
* Constructs a new UserEmailVerificationRequested.
|
|
1849
|
+
* @param [properties] Properties to set
|
|
1850
|
+
*/
|
|
1851
|
+
constructor(properties?: IUserEmailVerificationRequested);
|
|
1852
|
+
|
|
1853
|
+
/** UserEmailVerificationRequested userId. */
|
|
1854
|
+
public userId: string;
|
|
1855
|
+
|
|
1856
|
+
/** UserEmailVerificationRequested verificationCode. */
|
|
1857
|
+
public verificationCode: string;
|
|
1858
|
+
|
|
1859
|
+
/** UserEmailVerificationRequested timestamp. */
|
|
1860
|
+
public timestamp: (number|Long);
|
|
1861
|
+
|
|
1862
|
+
/**
|
|
1863
|
+
* Creates a new UserEmailVerificationRequested instance using the specified properties.
|
|
1864
|
+
* @param [properties] Properties to set
|
|
1865
|
+
* @returns UserEmailVerificationRequested instance
|
|
1866
|
+
*/
|
|
1867
|
+
public static create(properties?: IUserEmailVerificationRequested): UserEmailVerificationRequested;
|
|
1868
|
+
|
|
1869
|
+
/**
|
|
1870
|
+
* Encodes the specified UserEmailVerificationRequested message. Does not implicitly {@link UserEmailVerificationRequested.verify|verify} messages.
|
|
1871
|
+
* @param message UserEmailVerificationRequested message or plain object to encode
|
|
1872
|
+
* @param [writer] Writer to encode to
|
|
1873
|
+
* @returns Writer
|
|
1874
|
+
*/
|
|
1875
|
+
public static encode(message: IUserEmailVerificationRequested, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
1876
|
+
|
|
1877
|
+
/**
|
|
1878
|
+
* Encodes the specified UserEmailVerificationRequested message, length delimited. Does not implicitly {@link UserEmailVerificationRequested.verify|verify} messages.
|
|
1879
|
+
* @param message UserEmailVerificationRequested message or plain object to encode
|
|
1880
|
+
* @param [writer] Writer to encode to
|
|
1881
|
+
* @returns Writer
|
|
1882
|
+
*/
|
|
1883
|
+
public static encodeDelimited(message: IUserEmailVerificationRequested, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
1884
|
+
|
|
1885
|
+
/**
|
|
1886
|
+
* Decodes a UserEmailVerificationRequested message from the specified reader or buffer.
|
|
1887
|
+
* @param reader Reader or buffer to decode from
|
|
1888
|
+
* @param [length] Message length if known beforehand
|
|
1889
|
+
* @returns UserEmailVerificationRequested
|
|
1890
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
1891
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
1892
|
+
*/
|
|
1893
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): UserEmailVerificationRequested;
|
|
1894
|
+
|
|
1895
|
+
/**
|
|
1896
|
+
* Decodes a UserEmailVerificationRequested message from the specified reader or buffer, length delimited.
|
|
1897
|
+
* @param reader Reader or buffer to decode from
|
|
1898
|
+
* @returns UserEmailVerificationRequested
|
|
1899
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
1900
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
1901
|
+
*/
|
|
1902
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): UserEmailVerificationRequested;
|
|
1903
|
+
|
|
1904
|
+
/**
|
|
1905
|
+
* Verifies a UserEmailVerificationRequested message.
|
|
1906
|
+
* @param message Plain object to verify
|
|
1907
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
1908
|
+
*/
|
|
1909
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
1910
|
+
|
|
1911
|
+
/**
|
|
1912
|
+
* Creates a UserEmailVerificationRequested message from a plain object. Also converts values to their respective internal types.
|
|
1913
|
+
* @param object Plain object
|
|
1914
|
+
* @returns UserEmailVerificationRequested
|
|
1915
|
+
*/
|
|
1916
|
+
public static fromObject(object: { [k: string]: any }): UserEmailVerificationRequested;
|
|
1917
|
+
|
|
1918
|
+
/**
|
|
1919
|
+
* Creates a plain object from a UserEmailVerificationRequested message. Also converts values to other types if specified.
|
|
1920
|
+
* @param message UserEmailVerificationRequested
|
|
1921
|
+
* @param [options] Conversion options
|
|
1922
|
+
* @returns Plain object
|
|
1923
|
+
*/
|
|
1924
|
+
public static toObject(message: UserEmailVerificationRequested, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
1925
|
+
|
|
1926
|
+
/**
|
|
1927
|
+
* Converts this UserEmailVerificationRequested to JSON.
|
|
1928
|
+
* @returns JSON object
|
|
1929
|
+
*/
|
|
1930
|
+
public toJSON(): { [k: string]: any };
|
|
1931
|
+
}
|
package/lib/index.js
CHANGED
|
@@ -4586,4 +4586,250 @@ $root.UserPasswordUpdated = (function() {
|
|
|
4586
4586
|
return UserPasswordUpdated;
|
|
4587
4587
|
})();
|
|
4588
4588
|
|
|
4589
|
+
$root.UserEmailVerificationRequested = (function() {
|
|
4590
|
+
|
|
4591
|
+
/**
|
|
4592
|
+
* Properties of a UserEmailVerificationRequested.
|
|
4593
|
+
* @exports IUserEmailVerificationRequested
|
|
4594
|
+
* @interface IUserEmailVerificationRequested
|
|
4595
|
+
* @property {string|null} [userId] UserEmailVerificationRequested userId
|
|
4596
|
+
* @property {string|null} [verificationCode] UserEmailVerificationRequested verificationCode
|
|
4597
|
+
* @property {number|Long|null} [timestamp] UserEmailVerificationRequested timestamp
|
|
4598
|
+
*/
|
|
4599
|
+
|
|
4600
|
+
/**
|
|
4601
|
+
* Constructs a new UserEmailVerificationRequested.
|
|
4602
|
+
* @exports UserEmailVerificationRequested
|
|
4603
|
+
* @classdesc Represents a UserEmailVerificationRequested.
|
|
4604
|
+
* @implements IUserEmailVerificationRequested
|
|
4605
|
+
* @constructor
|
|
4606
|
+
* @param {IUserEmailVerificationRequested=} [properties] Properties to set
|
|
4607
|
+
*/
|
|
4608
|
+
function UserEmailVerificationRequested(properties) {
|
|
4609
|
+
if (properties)
|
|
4610
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
4611
|
+
if (properties[keys[i]] != null)
|
|
4612
|
+
this[keys[i]] = properties[keys[i]];
|
|
4613
|
+
}
|
|
4614
|
+
|
|
4615
|
+
/**
|
|
4616
|
+
* UserEmailVerificationRequested userId.
|
|
4617
|
+
* @member {string} userId
|
|
4618
|
+
* @memberof UserEmailVerificationRequested
|
|
4619
|
+
* @instance
|
|
4620
|
+
*/
|
|
4621
|
+
UserEmailVerificationRequested.prototype.userId = "";
|
|
4622
|
+
|
|
4623
|
+
/**
|
|
4624
|
+
* UserEmailVerificationRequested verificationCode.
|
|
4625
|
+
* @member {string} verificationCode
|
|
4626
|
+
* @memberof UserEmailVerificationRequested
|
|
4627
|
+
* @instance
|
|
4628
|
+
*/
|
|
4629
|
+
UserEmailVerificationRequested.prototype.verificationCode = "";
|
|
4630
|
+
|
|
4631
|
+
/**
|
|
4632
|
+
* UserEmailVerificationRequested timestamp.
|
|
4633
|
+
* @member {number|Long} timestamp
|
|
4634
|
+
* @memberof UserEmailVerificationRequested
|
|
4635
|
+
* @instance
|
|
4636
|
+
*/
|
|
4637
|
+
UserEmailVerificationRequested.prototype.timestamp = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
4638
|
+
|
|
4639
|
+
/**
|
|
4640
|
+
* Creates a new UserEmailVerificationRequested instance using the specified properties.
|
|
4641
|
+
* @function create
|
|
4642
|
+
* @memberof UserEmailVerificationRequested
|
|
4643
|
+
* @static
|
|
4644
|
+
* @param {IUserEmailVerificationRequested=} [properties] Properties to set
|
|
4645
|
+
* @returns {UserEmailVerificationRequested} UserEmailVerificationRequested instance
|
|
4646
|
+
*/
|
|
4647
|
+
UserEmailVerificationRequested.create = function create(properties) {
|
|
4648
|
+
return new UserEmailVerificationRequested(properties);
|
|
4649
|
+
};
|
|
4650
|
+
|
|
4651
|
+
/**
|
|
4652
|
+
* Encodes the specified UserEmailVerificationRequested message. Does not implicitly {@link UserEmailVerificationRequested.verify|verify} messages.
|
|
4653
|
+
* @function encode
|
|
4654
|
+
* @memberof UserEmailVerificationRequested
|
|
4655
|
+
* @static
|
|
4656
|
+
* @param {IUserEmailVerificationRequested} message UserEmailVerificationRequested message or plain object to encode
|
|
4657
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
4658
|
+
* @returns {$protobuf.Writer} Writer
|
|
4659
|
+
*/
|
|
4660
|
+
UserEmailVerificationRequested.encode = function encode(message, writer) {
|
|
4661
|
+
if (!writer)
|
|
4662
|
+
writer = $Writer.create();
|
|
4663
|
+
if (message.userId != null && message.hasOwnProperty("userId"))
|
|
4664
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.userId);
|
|
4665
|
+
if (message.verificationCode != null && message.hasOwnProperty("verificationCode"))
|
|
4666
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.verificationCode);
|
|
4667
|
+
if (message.timestamp != null && message.hasOwnProperty("timestamp"))
|
|
4668
|
+
writer.uint32(/* id 3, wireType 0 =*/24).uint64(message.timestamp);
|
|
4669
|
+
return writer;
|
|
4670
|
+
};
|
|
4671
|
+
|
|
4672
|
+
/**
|
|
4673
|
+
* Encodes the specified UserEmailVerificationRequested message, length delimited. Does not implicitly {@link UserEmailVerificationRequested.verify|verify} messages.
|
|
4674
|
+
* @function encodeDelimited
|
|
4675
|
+
* @memberof UserEmailVerificationRequested
|
|
4676
|
+
* @static
|
|
4677
|
+
* @param {IUserEmailVerificationRequested} message UserEmailVerificationRequested message or plain object to encode
|
|
4678
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
4679
|
+
* @returns {$protobuf.Writer} Writer
|
|
4680
|
+
*/
|
|
4681
|
+
UserEmailVerificationRequested.encodeDelimited = function encodeDelimited(message, writer) {
|
|
4682
|
+
return this.encode(message, writer).ldelim();
|
|
4683
|
+
};
|
|
4684
|
+
|
|
4685
|
+
/**
|
|
4686
|
+
* Decodes a UserEmailVerificationRequested message from the specified reader or buffer.
|
|
4687
|
+
* @function decode
|
|
4688
|
+
* @memberof UserEmailVerificationRequested
|
|
4689
|
+
* @static
|
|
4690
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
4691
|
+
* @param {number} [length] Message length if known beforehand
|
|
4692
|
+
* @returns {UserEmailVerificationRequested} UserEmailVerificationRequested
|
|
4693
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
4694
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
4695
|
+
*/
|
|
4696
|
+
UserEmailVerificationRequested.decode = function decode(reader, length) {
|
|
4697
|
+
if (!(reader instanceof $Reader))
|
|
4698
|
+
reader = $Reader.create(reader);
|
|
4699
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.UserEmailVerificationRequested();
|
|
4700
|
+
while (reader.pos < end) {
|
|
4701
|
+
var tag = reader.uint32();
|
|
4702
|
+
switch (tag >>> 3) {
|
|
4703
|
+
case 1:
|
|
4704
|
+
message.userId = reader.string();
|
|
4705
|
+
break;
|
|
4706
|
+
case 2:
|
|
4707
|
+
message.verificationCode = reader.string();
|
|
4708
|
+
break;
|
|
4709
|
+
case 3:
|
|
4710
|
+
message.timestamp = reader.uint64();
|
|
4711
|
+
break;
|
|
4712
|
+
default:
|
|
4713
|
+
reader.skipType(tag & 7);
|
|
4714
|
+
break;
|
|
4715
|
+
}
|
|
4716
|
+
}
|
|
4717
|
+
return message;
|
|
4718
|
+
};
|
|
4719
|
+
|
|
4720
|
+
/**
|
|
4721
|
+
* Decodes a UserEmailVerificationRequested message from the specified reader or buffer, length delimited.
|
|
4722
|
+
* @function decodeDelimited
|
|
4723
|
+
* @memberof UserEmailVerificationRequested
|
|
4724
|
+
* @static
|
|
4725
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
4726
|
+
* @returns {UserEmailVerificationRequested} UserEmailVerificationRequested
|
|
4727
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
4728
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
4729
|
+
*/
|
|
4730
|
+
UserEmailVerificationRequested.decodeDelimited = function decodeDelimited(reader) {
|
|
4731
|
+
if (!(reader instanceof $Reader))
|
|
4732
|
+
reader = new $Reader(reader);
|
|
4733
|
+
return this.decode(reader, reader.uint32());
|
|
4734
|
+
};
|
|
4735
|
+
|
|
4736
|
+
/**
|
|
4737
|
+
* Verifies a UserEmailVerificationRequested message.
|
|
4738
|
+
* @function verify
|
|
4739
|
+
* @memberof UserEmailVerificationRequested
|
|
4740
|
+
* @static
|
|
4741
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
4742
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
4743
|
+
*/
|
|
4744
|
+
UserEmailVerificationRequested.verify = function verify(message) {
|
|
4745
|
+
if (typeof message !== "object" || message === null)
|
|
4746
|
+
return "object expected";
|
|
4747
|
+
if (message.userId != null && message.hasOwnProperty("userId"))
|
|
4748
|
+
if (!$util.isString(message.userId))
|
|
4749
|
+
return "userId: string expected";
|
|
4750
|
+
if (message.verificationCode != null && message.hasOwnProperty("verificationCode"))
|
|
4751
|
+
if (!$util.isString(message.verificationCode))
|
|
4752
|
+
return "verificationCode: string expected";
|
|
4753
|
+
if (message.timestamp != null && message.hasOwnProperty("timestamp"))
|
|
4754
|
+
if (!$util.isInteger(message.timestamp) && !(message.timestamp && $util.isInteger(message.timestamp.low) && $util.isInteger(message.timestamp.high)))
|
|
4755
|
+
return "timestamp: integer|Long expected";
|
|
4756
|
+
return null;
|
|
4757
|
+
};
|
|
4758
|
+
|
|
4759
|
+
/**
|
|
4760
|
+
* Creates a UserEmailVerificationRequested message from a plain object. Also converts values to their respective internal types.
|
|
4761
|
+
* @function fromObject
|
|
4762
|
+
* @memberof UserEmailVerificationRequested
|
|
4763
|
+
* @static
|
|
4764
|
+
* @param {Object.<string,*>} object Plain object
|
|
4765
|
+
* @returns {UserEmailVerificationRequested} UserEmailVerificationRequested
|
|
4766
|
+
*/
|
|
4767
|
+
UserEmailVerificationRequested.fromObject = function fromObject(object) {
|
|
4768
|
+
if (object instanceof $root.UserEmailVerificationRequested)
|
|
4769
|
+
return object;
|
|
4770
|
+
var message = new $root.UserEmailVerificationRequested();
|
|
4771
|
+
if (object.userId != null)
|
|
4772
|
+
message.userId = String(object.userId);
|
|
4773
|
+
if (object.verificationCode != null)
|
|
4774
|
+
message.verificationCode = String(object.verificationCode);
|
|
4775
|
+
if (object.timestamp != null)
|
|
4776
|
+
if ($util.Long)
|
|
4777
|
+
(message.timestamp = $util.Long.fromValue(object.timestamp)).unsigned = true;
|
|
4778
|
+
else if (typeof object.timestamp === "string")
|
|
4779
|
+
message.timestamp = parseInt(object.timestamp, 10);
|
|
4780
|
+
else if (typeof object.timestamp === "number")
|
|
4781
|
+
message.timestamp = object.timestamp;
|
|
4782
|
+
else if (typeof object.timestamp === "object")
|
|
4783
|
+
message.timestamp = new $util.LongBits(object.timestamp.low >>> 0, object.timestamp.high >>> 0).toNumber(true);
|
|
4784
|
+
return message;
|
|
4785
|
+
};
|
|
4786
|
+
|
|
4787
|
+
/**
|
|
4788
|
+
* Creates a plain object from a UserEmailVerificationRequested message. Also converts values to other types if specified.
|
|
4789
|
+
* @function toObject
|
|
4790
|
+
* @memberof UserEmailVerificationRequested
|
|
4791
|
+
* @static
|
|
4792
|
+
* @param {UserEmailVerificationRequested} message UserEmailVerificationRequested
|
|
4793
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
4794
|
+
* @returns {Object.<string,*>} Plain object
|
|
4795
|
+
*/
|
|
4796
|
+
UserEmailVerificationRequested.toObject = function toObject(message, options) {
|
|
4797
|
+
if (!options)
|
|
4798
|
+
options = {};
|
|
4799
|
+
var object = {};
|
|
4800
|
+
if (options.defaults) {
|
|
4801
|
+
object.userId = "";
|
|
4802
|
+
object.verificationCode = "";
|
|
4803
|
+
if ($util.Long) {
|
|
4804
|
+
var long = new $util.Long(0, 0, true);
|
|
4805
|
+
object.timestamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
4806
|
+
} else
|
|
4807
|
+
object.timestamp = options.longs === String ? "0" : 0;
|
|
4808
|
+
}
|
|
4809
|
+
if (message.userId != null && message.hasOwnProperty("userId"))
|
|
4810
|
+
object.userId = message.userId;
|
|
4811
|
+
if (message.verificationCode != null && message.hasOwnProperty("verificationCode"))
|
|
4812
|
+
object.verificationCode = message.verificationCode;
|
|
4813
|
+
if (message.timestamp != null && message.hasOwnProperty("timestamp"))
|
|
4814
|
+
if (typeof message.timestamp === "number")
|
|
4815
|
+
object.timestamp = options.longs === String ? String(message.timestamp) : message.timestamp;
|
|
4816
|
+
else
|
|
4817
|
+
object.timestamp = options.longs === String ? $util.Long.prototype.toString.call(message.timestamp) : options.longs === Number ? new $util.LongBits(message.timestamp.low >>> 0, message.timestamp.high >>> 0).toNumber(true) : message.timestamp;
|
|
4818
|
+
return object;
|
|
4819
|
+
};
|
|
4820
|
+
|
|
4821
|
+
/**
|
|
4822
|
+
* Converts this UserEmailVerificationRequested to JSON.
|
|
4823
|
+
* @function toJSON
|
|
4824
|
+
* @memberof UserEmailVerificationRequested
|
|
4825
|
+
* @instance
|
|
4826
|
+
* @returns {Object.<string,*>} JSON object
|
|
4827
|
+
*/
|
|
4828
|
+
UserEmailVerificationRequested.prototype.toJSON = function toJSON() {
|
|
4829
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
4830
|
+
};
|
|
4831
|
+
|
|
4832
|
+
return UserEmailVerificationRequested;
|
|
4833
|
+
})();
|
|
4834
|
+
|
|
4589
4835
|
module.exports = $root;
|
package/package.json
CHANGED