@headspace/protos-events 1.16.0 → 1.17.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
|
@@ -2792,6 +2792,108 @@ export class UserEmailVerificationRequested implements IUserEmailVerificationReq
|
|
|
2792
2792
|
public toJSON(): { [k: string]: any };
|
|
2793
2793
|
}
|
|
2794
2794
|
|
|
2795
|
+
/** Properties of a UserPasswordResetRequested. */
|
|
2796
|
+
export interface IUserPasswordResetRequested {
|
|
2797
|
+
|
|
2798
|
+
/** UserPasswordResetRequested userId */
|
|
2799
|
+
userId?: (string|null);
|
|
2800
|
+
|
|
2801
|
+
/** UserPasswordResetRequested resetCode */
|
|
2802
|
+
resetCode?: (string|null);
|
|
2803
|
+
|
|
2804
|
+
/** UserPasswordResetRequested timestamp */
|
|
2805
|
+
timestamp?: (number|Long|null);
|
|
2806
|
+
}
|
|
2807
|
+
|
|
2808
|
+
/** Represents a UserPasswordResetRequested. */
|
|
2809
|
+
export class UserPasswordResetRequested implements IUserPasswordResetRequested {
|
|
2810
|
+
|
|
2811
|
+
/**
|
|
2812
|
+
* Constructs a new UserPasswordResetRequested.
|
|
2813
|
+
* @param [properties] Properties to set
|
|
2814
|
+
*/
|
|
2815
|
+
constructor(properties?: IUserPasswordResetRequested);
|
|
2816
|
+
|
|
2817
|
+
/** UserPasswordResetRequested userId. */
|
|
2818
|
+
public userId: string;
|
|
2819
|
+
|
|
2820
|
+
/** UserPasswordResetRequested resetCode. */
|
|
2821
|
+
public resetCode: string;
|
|
2822
|
+
|
|
2823
|
+
/** UserPasswordResetRequested timestamp. */
|
|
2824
|
+
public timestamp: (number|Long);
|
|
2825
|
+
|
|
2826
|
+
/**
|
|
2827
|
+
* Creates a new UserPasswordResetRequested instance using the specified properties.
|
|
2828
|
+
* @param [properties] Properties to set
|
|
2829
|
+
* @returns UserPasswordResetRequested instance
|
|
2830
|
+
*/
|
|
2831
|
+
public static create(properties?: IUserPasswordResetRequested): UserPasswordResetRequested;
|
|
2832
|
+
|
|
2833
|
+
/**
|
|
2834
|
+
* Encodes the specified UserPasswordResetRequested message. Does not implicitly {@link UserPasswordResetRequested.verify|verify} messages.
|
|
2835
|
+
* @param message UserPasswordResetRequested message or plain object to encode
|
|
2836
|
+
* @param [writer] Writer to encode to
|
|
2837
|
+
* @returns Writer
|
|
2838
|
+
*/
|
|
2839
|
+
public static encode(message: IUserPasswordResetRequested, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
2840
|
+
|
|
2841
|
+
/**
|
|
2842
|
+
* Encodes the specified UserPasswordResetRequested message, length delimited. Does not implicitly {@link UserPasswordResetRequested.verify|verify} messages.
|
|
2843
|
+
* @param message UserPasswordResetRequested message or plain object to encode
|
|
2844
|
+
* @param [writer] Writer to encode to
|
|
2845
|
+
* @returns Writer
|
|
2846
|
+
*/
|
|
2847
|
+
public static encodeDelimited(message: IUserPasswordResetRequested, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
2848
|
+
|
|
2849
|
+
/**
|
|
2850
|
+
* Decodes a UserPasswordResetRequested message from the specified reader or buffer.
|
|
2851
|
+
* @param reader Reader or buffer to decode from
|
|
2852
|
+
* @param [length] Message length if known beforehand
|
|
2853
|
+
* @returns UserPasswordResetRequested
|
|
2854
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
2855
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
2856
|
+
*/
|
|
2857
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): UserPasswordResetRequested;
|
|
2858
|
+
|
|
2859
|
+
/**
|
|
2860
|
+
* Decodes a UserPasswordResetRequested message from the specified reader or buffer, length delimited.
|
|
2861
|
+
* @param reader Reader or buffer to decode from
|
|
2862
|
+
* @returns UserPasswordResetRequested
|
|
2863
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
2864
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
2865
|
+
*/
|
|
2866
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): UserPasswordResetRequested;
|
|
2867
|
+
|
|
2868
|
+
/**
|
|
2869
|
+
* Verifies a UserPasswordResetRequested message.
|
|
2870
|
+
* @param message Plain object to verify
|
|
2871
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
2872
|
+
*/
|
|
2873
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
2874
|
+
|
|
2875
|
+
/**
|
|
2876
|
+
* Creates a UserPasswordResetRequested message from a plain object. Also converts values to their respective internal types.
|
|
2877
|
+
* @param object Plain object
|
|
2878
|
+
* @returns UserPasswordResetRequested
|
|
2879
|
+
*/
|
|
2880
|
+
public static fromObject(object: { [k: string]: any }): UserPasswordResetRequested;
|
|
2881
|
+
|
|
2882
|
+
/**
|
|
2883
|
+
* Creates a plain object from a UserPasswordResetRequested message. Also converts values to other types if specified.
|
|
2884
|
+
* @param message UserPasswordResetRequested
|
|
2885
|
+
* @param [options] Conversion options
|
|
2886
|
+
* @returns Plain object
|
|
2887
|
+
*/
|
|
2888
|
+
public static toObject(message: UserPasswordResetRequested, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
2889
|
+
|
|
2890
|
+
/**
|
|
2891
|
+
* Converts this UserPasswordResetRequested to JSON.
|
|
2892
|
+
* @returns JSON object
|
|
2893
|
+
*/
|
|
2894
|
+
public toJSON(): { [k: string]: any };
|
|
2895
|
+
}
|
|
2896
|
+
|
|
2795
2897
|
/** Properties of a UserPasswordUpdated. */
|
|
2796
2898
|
export interface IUserPasswordUpdated {
|
|
2797
2899
|
|
package/lib/index.js
CHANGED
|
@@ -6762,6 +6762,252 @@ $root.UserEmailVerificationRequested = (function() {
|
|
|
6762
6762
|
return UserEmailVerificationRequested;
|
|
6763
6763
|
})();
|
|
6764
6764
|
|
|
6765
|
+
$root.UserPasswordResetRequested = (function() {
|
|
6766
|
+
|
|
6767
|
+
/**
|
|
6768
|
+
* Properties of a UserPasswordResetRequested.
|
|
6769
|
+
* @exports IUserPasswordResetRequested
|
|
6770
|
+
* @interface IUserPasswordResetRequested
|
|
6771
|
+
* @property {string|null} [userId] UserPasswordResetRequested userId
|
|
6772
|
+
* @property {string|null} [resetCode] UserPasswordResetRequested resetCode
|
|
6773
|
+
* @property {number|Long|null} [timestamp] UserPasswordResetRequested timestamp
|
|
6774
|
+
*/
|
|
6775
|
+
|
|
6776
|
+
/**
|
|
6777
|
+
* Constructs a new UserPasswordResetRequested.
|
|
6778
|
+
* @exports UserPasswordResetRequested
|
|
6779
|
+
* @classdesc Represents a UserPasswordResetRequested.
|
|
6780
|
+
* @implements IUserPasswordResetRequested
|
|
6781
|
+
* @constructor
|
|
6782
|
+
* @param {IUserPasswordResetRequested=} [properties] Properties to set
|
|
6783
|
+
*/
|
|
6784
|
+
function UserPasswordResetRequested(properties) {
|
|
6785
|
+
if (properties)
|
|
6786
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
6787
|
+
if (properties[keys[i]] != null)
|
|
6788
|
+
this[keys[i]] = properties[keys[i]];
|
|
6789
|
+
}
|
|
6790
|
+
|
|
6791
|
+
/**
|
|
6792
|
+
* UserPasswordResetRequested userId.
|
|
6793
|
+
* @member {string} userId
|
|
6794
|
+
* @memberof UserPasswordResetRequested
|
|
6795
|
+
* @instance
|
|
6796
|
+
*/
|
|
6797
|
+
UserPasswordResetRequested.prototype.userId = "";
|
|
6798
|
+
|
|
6799
|
+
/**
|
|
6800
|
+
* UserPasswordResetRequested resetCode.
|
|
6801
|
+
* @member {string} resetCode
|
|
6802
|
+
* @memberof UserPasswordResetRequested
|
|
6803
|
+
* @instance
|
|
6804
|
+
*/
|
|
6805
|
+
UserPasswordResetRequested.prototype.resetCode = "";
|
|
6806
|
+
|
|
6807
|
+
/**
|
|
6808
|
+
* UserPasswordResetRequested timestamp.
|
|
6809
|
+
* @member {number|Long} timestamp
|
|
6810
|
+
* @memberof UserPasswordResetRequested
|
|
6811
|
+
* @instance
|
|
6812
|
+
*/
|
|
6813
|
+
UserPasswordResetRequested.prototype.timestamp = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
6814
|
+
|
|
6815
|
+
/**
|
|
6816
|
+
* Creates a new UserPasswordResetRequested instance using the specified properties.
|
|
6817
|
+
* @function create
|
|
6818
|
+
* @memberof UserPasswordResetRequested
|
|
6819
|
+
* @static
|
|
6820
|
+
* @param {IUserPasswordResetRequested=} [properties] Properties to set
|
|
6821
|
+
* @returns {UserPasswordResetRequested} UserPasswordResetRequested instance
|
|
6822
|
+
*/
|
|
6823
|
+
UserPasswordResetRequested.create = function create(properties) {
|
|
6824
|
+
return new UserPasswordResetRequested(properties);
|
|
6825
|
+
};
|
|
6826
|
+
|
|
6827
|
+
/**
|
|
6828
|
+
* Encodes the specified UserPasswordResetRequested message. Does not implicitly {@link UserPasswordResetRequested.verify|verify} messages.
|
|
6829
|
+
* @function encode
|
|
6830
|
+
* @memberof UserPasswordResetRequested
|
|
6831
|
+
* @static
|
|
6832
|
+
* @param {IUserPasswordResetRequested} message UserPasswordResetRequested message or plain object to encode
|
|
6833
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
6834
|
+
* @returns {$protobuf.Writer} Writer
|
|
6835
|
+
*/
|
|
6836
|
+
UserPasswordResetRequested.encode = function encode(message, writer) {
|
|
6837
|
+
if (!writer)
|
|
6838
|
+
writer = $Writer.create();
|
|
6839
|
+
if (message.userId != null && message.hasOwnProperty("userId"))
|
|
6840
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.userId);
|
|
6841
|
+
if (message.resetCode != null && message.hasOwnProperty("resetCode"))
|
|
6842
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.resetCode);
|
|
6843
|
+
if (message.timestamp != null && message.hasOwnProperty("timestamp"))
|
|
6844
|
+
writer.uint32(/* id 3, wireType 0 =*/24).uint64(message.timestamp);
|
|
6845
|
+
return writer;
|
|
6846
|
+
};
|
|
6847
|
+
|
|
6848
|
+
/**
|
|
6849
|
+
* Encodes the specified UserPasswordResetRequested message, length delimited. Does not implicitly {@link UserPasswordResetRequested.verify|verify} messages.
|
|
6850
|
+
* @function encodeDelimited
|
|
6851
|
+
* @memberof UserPasswordResetRequested
|
|
6852
|
+
* @static
|
|
6853
|
+
* @param {IUserPasswordResetRequested} message UserPasswordResetRequested message or plain object to encode
|
|
6854
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
6855
|
+
* @returns {$protobuf.Writer} Writer
|
|
6856
|
+
*/
|
|
6857
|
+
UserPasswordResetRequested.encodeDelimited = function encodeDelimited(message, writer) {
|
|
6858
|
+
return this.encode(message, writer).ldelim();
|
|
6859
|
+
};
|
|
6860
|
+
|
|
6861
|
+
/**
|
|
6862
|
+
* Decodes a UserPasswordResetRequested message from the specified reader or buffer.
|
|
6863
|
+
* @function decode
|
|
6864
|
+
* @memberof UserPasswordResetRequested
|
|
6865
|
+
* @static
|
|
6866
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
6867
|
+
* @param {number} [length] Message length if known beforehand
|
|
6868
|
+
* @returns {UserPasswordResetRequested} UserPasswordResetRequested
|
|
6869
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
6870
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
6871
|
+
*/
|
|
6872
|
+
UserPasswordResetRequested.decode = function decode(reader, length) {
|
|
6873
|
+
if (!(reader instanceof $Reader))
|
|
6874
|
+
reader = $Reader.create(reader);
|
|
6875
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.UserPasswordResetRequested();
|
|
6876
|
+
while (reader.pos < end) {
|
|
6877
|
+
var tag = reader.uint32();
|
|
6878
|
+
switch (tag >>> 3) {
|
|
6879
|
+
case 1:
|
|
6880
|
+
message.userId = reader.string();
|
|
6881
|
+
break;
|
|
6882
|
+
case 2:
|
|
6883
|
+
message.resetCode = reader.string();
|
|
6884
|
+
break;
|
|
6885
|
+
case 3:
|
|
6886
|
+
message.timestamp = reader.uint64();
|
|
6887
|
+
break;
|
|
6888
|
+
default:
|
|
6889
|
+
reader.skipType(tag & 7);
|
|
6890
|
+
break;
|
|
6891
|
+
}
|
|
6892
|
+
}
|
|
6893
|
+
return message;
|
|
6894
|
+
};
|
|
6895
|
+
|
|
6896
|
+
/**
|
|
6897
|
+
* Decodes a UserPasswordResetRequested message from the specified reader or buffer, length delimited.
|
|
6898
|
+
* @function decodeDelimited
|
|
6899
|
+
* @memberof UserPasswordResetRequested
|
|
6900
|
+
* @static
|
|
6901
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
6902
|
+
* @returns {UserPasswordResetRequested} UserPasswordResetRequested
|
|
6903
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
6904
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
6905
|
+
*/
|
|
6906
|
+
UserPasswordResetRequested.decodeDelimited = function decodeDelimited(reader) {
|
|
6907
|
+
if (!(reader instanceof $Reader))
|
|
6908
|
+
reader = new $Reader(reader);
|
|
6909
|
+
return this.decode(reader, reader.uint32());
|
|
6910
|
+
};
|
|
6911
|
+
|
|
6912
|
+
/**
|
|
6913
|
+
* Verifies a UserPasswordResetRequested message.
|
|
6914
|
+
* @function verify
|
|
6915
|
+
* @memberof UserPasswordResetRequested
|
|
6916
|
+
* @static
|
|
6917
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
6918
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
6919
|
+
*/
|
|
6920
|
+
UserPasswordResetRequested.verify = function verify(message) {
|
|
6921
|
+
if (typeof message !== "object" || message === null)
|
|
6922
|
+
return "object expected";
|
|
6923
|
+
if (message.userId != null && message.hasOwnProperty("userId"))
|
|
6924
|
+
if (!$util.isString(message.userId))
|
|
6925
|
+
return "userId: string expected";
|
|
6926
|
+
if (message.resetCode != null && message.hasOwnProperty("resetCode"))
|
|
6927
|
+
if (!$util.isString(message.resetCode))
|
|
6928
|
+
return "resetCode: string expected";
|
|
6929
|
+
if (message.timestamp != null && message.hasOwnProperty("timestamp"))
|
|
6930
|
+
if (!$util.isInteger(message.timestamp) && !(message.timestamp && $util.isInteger(message.timestamp.low) && $util.isInteger(message.timestamp.high)))
|
|
6931
|
+
return "timestamp: integer|Long expected";
|
|
6932
|
+
return null;
|
|
6933
|
+
};
|
|
6934
|
+
|
|
6935
|
+
/**
|
|
6936
|
+
* Creates a UserPasswordResetRequested message from a plain object. Also converts values to their respective internal types.
|
|
6937
|
+
* @function fromObject
|
|
6938
|
+
* @memberof UserPasswordResetRequested
|
|
6939
|
+
* @static
|
|
6940
|
+
* @param {Object.<string,*>} object Plain object
|
|
6941
|
+
* @returns {UserPasswordResetRequested} UserPasswordResetRequested
|
|
6942
|
+
*/
|
|
6943
|
+
UserPasswordResetRequested.fromObject = function fromObject(object) {
|
|
6944
|
+
if (object instanceof $root.UserPasswordResetRequested)
|
|
6945
|
+
return object;
|
|
6946
|
+
var message = new $root.UserPasswordResetRequested();
|
|
6947
|
+
if (object.userId != null)
|
|
6948
|
+
message.userId = String(object.userId);
|
|
6949
|
+
if (object.resetCode != null)
|
|
6950
|
+
message.resetCode = String(object.resetCode);
|
|
6951
|
+
if (object.timestamp != null)
|
|
6952
|
+
if ($util.Long)
|
|
6953
|
+
(message.timestamp = $util.Long.fromValue(object.timestamp)).unsigned = true;
|
|
6954
|
+
else if (typeof object.timestamp === "string")
|
|
6955
|
+
message.timestamp = parseInt(object.timestamp, 10);
|
|
6956
|
+
else if (typeof object.timestamp === "number")
|
|
6957
|
+
message.timestamp = object.timestamp;
|
|
6958
|
+
else if (typeof object.timestamp === "object")
|
|
6959
|
+
message.timestamp = new $util.LongBits(object.timestamp.low >>> 0, object.timestamp.high >>> 0).toNumber(true);
|
|
6960
|
+
return message;
|
|
6961
|
+
};
|
|
6962
|
+
|
|
6963
|
+
/**
|
|
6964
|
+
* Creates a plain object from a UserPasswordResetRequested message. Also converts values to other types if specified.
|
|
6965
|
+
* @function toObject
|
|
6966
|
+
* @memberof UserPasswordResetRequested
|
|
6967
|
+
* @static
|
|
6968
|
+
* @param {UserPasswordResetRequested} message UserPasswordResetRequested
|
|
6969
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
6970
|
+
* @returns {Object.<string,*>} Plain object
|
|
6971
|
+
*/
|
|
6972
|
+
UserPasswordResetRequested.toObject = function toObject(message, options) {
|
|
6973
|
+
if (!options)
|
|
6974
|
+
options = {};
|
|
6975
|
+
var object = {};
|
|
6976
|
+
if (options.defaults) {
|
|
6977
|
+
object.userId = "";
|
|
6978
|
+
object.resetCode = "";
|
|
6979
|
+
if ($util.Long) {
|
|
6980
|
+
var long = new $util.Long(0, 0, true);
|
|
6981
|
+
object.timestamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
6982
|
+
} else
|
|
6983
|
+
object.timestamp = options.longs === String ? "0" : 0;
|
|
6984
|
+
}
|
|
6985
|
+
if (message.userId != null && message.hasOwnProperty("userId"))
|
|
6986
|
+
object.userId = message.userId;
|
|
6987
|
+
if (message.resetCode != null && message.hasOwnProperty("resetCode"))
|
|
6988
|
+
object.resetCode = message.resetCode;
|
|
6989
|
+
if (message.timestamp != null && message.hasOwnProperty("timestamp"))
|
|
6990
|
+
if (typeof message.timestamp === "number")
|
|
6991
|
+
object.timestamp = options.longs === String ? String(message.timestamp) : message.timestamp;
|
|
6992
|
+
else
|
|
6993
|
+
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;
|
|
6994
|
+
return object;
|
|
6995
|
+
};
|
|
6996
|
+
|
|
6997
|
+
/**
|
|
6998
|
+
* Converts this UserPasswordResetRequested to JSON.
|
|
6999
|
+
* @function toJSON
|
|
7000
|
+
* @memberof UserPasswordResetRequested
|
|
7001
|
+
* @instance
|
|
7002
|
+
* @returns {Object.<string,*>} JSON object
|
|
7003
|
+
*/
|
|
7004
|
+
UserPasswordResetRequested.prototype.toJSON = function toJSON() {
|
|
7005
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
7006
|
+
};
|
|
7007
|
+
|
|
7008
|
+
return UserPasswordResetRequested;
|
|
7009
|
+
})();
|
|
7010
|
+
|
|
6765
7011
|
$root.UserPasswordUpdated = (function() {
|
|
6766
7012
|
|
|
6767
7013
|
/**
|
package/package.json
CHANGED