@headspace/protos-events 1.144.0 → 1.145.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 CHANGED
@@ -18909,6 +18909,108 @@ export class UserEmailVerificationRequested implements IUserEmailVerificationReq
18909
18909
  public toJSON(): { [k: string]: any };
18910
18910
  }
18911
18911
 
18912
+ /** Properties of a UserEmailVerificationCompleted. */
18913
+ export interface IUserEmailVerificationCompleted {
18914
+
18915
+ /** UserEmailVerificationCompleted hsId */
18916
+ hsId?: (string|null);
18917
+
18918
+ /** UserEmailVerificationCompleted email */
18919
+ email?: (string|null);
18920
+
18921
+ /** UserEmailVerificationCompleted timestamp */
18922
+ timestamp?: (number|Long|null);
18923
+ }
18924
+
18925
+ /** Represents a UserEmailVerificationCompleted. */
18926
+ export class UserEmailVerificationCompleted implements IUserEmailVerificationCompleted {
18927
+
18928
+ /**
18929
+ * Constructs a new UserEmailVerificationCompleted.
18930
+ * @param [properties] Properties to set
18931
+ */
18932
+ constructor(properties?: IUserEmailVerificationCompleted);
18933
+
18934
+ /** UserEmailVerificationCompleted hsId. */
18935
+ public hsId: string;
18936
+
18937
+ /** UserEmailVerificationCompleted email. */
18938
+ public email: string;
18939
+
18940
+ /** UserEmailVerificationCompleted timestamp. */
18941
+ public timestamp: (number|Long);
18942
+
18943
+ /**
18944
+ * Creates a new UserEmailVerificationCompleted instance using the specified properties.
18945
+ * @param [properties] Properties to set
18946
+ * @returns UserEmailVerificationCompleted instance
18947
+ */
18948
+ public static create(properties?: IUserEmailVerificationCompleted): UserEmailVerificationCompleted;
18949
+
18950
+ /**
18951
+ * Encodes the specified UserEmailVerificationCompleted message. Does not implicitly {@link UserEmailVerificationCompleted.verify|verify} messages.
18952
+ * @param message UserEmailVerificationCompleted message or plain object to encode
18953
+ * @param [writer] Writer to encode to
18954
+ * @returns Writer
18955
+ */
18956
+ public static encode(message: IUserEmailVerificationCompleted, writer?: $protobuf.Writer): $protobuf.Writer;
18957
+
18958
+ /**
18959
+ * Encodes the specified UserEmailVerificationCompleted message, length delimited. Does not implicitly {@link UserEmailVerificationCompleted.verify|verify} messages.
18960
+ * @param message UserEmailVerificationCompleted message or plain object to encode
18961
+ * @param [writer] Writer to encode to
18962
+ * @returns Writer
18963
+ */
18964
+ public static encodeDelimited(message: IUserEmailVerificationCompleted, writer?: $protobuf.Writer): $protobuf.Writer;
18965
+
18966
+ /**
18967
+ * Decodes a UserEmailVerificationCompleted message from the specified reader or buffer.
18968
+ * @param reader Reader or buffer to decode from
18969
+ * @param [length] Message length if known beforehand
18970
+ * @returns UserEmailVerificationCompleted
18971
+ * @throws {Error} If the payload is not a reader or valid buffer
18972
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
18973
+ */
18974
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): UserEmailVerificationCompleted;
18975
+
18976
+ /**
18977
+ * Decodes a UserEmailVerificationCompleted message from the specified reader or buffer, length delimited.
18978
+ * @param reader Reader or buffer to decode from
18979
+ * @returns UserEmailVerificationCompleted
18980
+ * @throws {Error} If the payload is not a reader or valid buffer
18981
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
18982
+ */
18983
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): UserEmailVerificationCompleted;
18984
+
18985
+ /**
18986
+ * Verifies a UserEmailVerificationCompleted message.
18987
+ * @param message Plain object to verify
18988
+ * @returns `null` if valid, otherwise the reason why it is not
18989
+ */
18990
+ public static verify(message: { [k: string]: any }): (string|null);
18991
+
18992
+ /**
18993
+ * Creates a UserEmailVerificationCompleted message from a plain object. Also converts values to their respective internal types.
18994
+ * @param object Plain object
18995
+ * @returns UserEmailVerificationCompleted
18996
+ */
18997
+ public static fromObject(object: { [k: string]: any }): UserEmailVerificationCompleted;
18998
+
18999
+ /**
19000
+ * Creates a plain object from a UserEmailVerificationCompleted message. Also converts values to other types if specified.
19001
+ * @param message UserEmailVerificationCompleted
19002
+ * @param [options] Conversion options
19003
+ * @returns Plain object
19004
+ */
19005
+ public static toObject(message: UserEmailVerificationCompleted, options?: $protobuf.IConversionOptions): { [k: string]: any };
19006
+
19007
+ /**
19008
+ * Converts this UserEmailVerificationCompleted to JSON.
19009
+ * @returns JSON object
19010
+ */
19011
+ public toJSON(): { [k: string]: any };
19012
+ }
19013
+
18912
19014
  /** Properties of a UserPasswordResetRequested. */
18913
19015
  export interface IUserPasswordResetRequested {
18914
19016
 
package/lib/index.js CHANGED
@@ -53036,6 +53036,252 @@ $root.UserEmailVerificationRequested = (function() {
53036
53036
  return UserEmailVerificationRequested;
53037
53037
  })();
53038
53038
 
53039
+ $root.UserEmailVerificationCompleted = (function() {
53040
+
53041
+ /**
53042
+ * Properties of a UserEmailVerificationCompleted.
53043
+ * @exports IUserEmailVerificationCompleted
53044
+ * @interface IUserEmailVerificationCompleted
53045
+ * @property {string|null} [hsId] UserEmailVerificationCompleted hsId
53046
+ * @property {string|null} [email] UserEmailVerificationCompleted email
53047
+ * @property {number|Long|null} [timestamp] UserEmailVerificationCompleted timestamp
53048
+ */
53049
+
53050
+ /**
53051
+ * Constructs a new UserEmailVerificationCompleted.
53052
+ * @exports UserEmailVerificationCompleted
53053
+ * @classdesc Represents a UserEmailVerificationCompleted.
53054
+ * @implements IUserEmailVerificationCompleted
53055
+ * @constructor
53056
+ * @param {IUserEmailVerificationCompleted=} [properties] Properties to set
53057
+ */
53058
+ function UserEmailVerificationCompleted(properties) {
53059
+ if (properties)
53060
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
53061
+ if (properties[keys[i]] != null)
53062
+ this[keys[i]] = properties[keys[i]];
53063
+ }
53064
+
53065
+ /**
53066
+ * UserEmailVerificationCompleted hsId.
53067
+ * @member {string} hsId
53068
+ * @memberof UserEmailVerificationCompleted
53069
+ * @instance
53070
+ */
53071
+ UserEmailVerificationCompleted.prototype.hsId = "";
53072
+
53073
+ /**
53074
+ * UserEmailVerificationCompleted email.
53075
+ * @member {string} email
53076
+ * @memberof UserEmailVerificationCompleted
53077
+ * @instance
53078
+ */
53079
+ UserEmailVerificationCompleted.prototype.email = "";
53080
+
53081
+ /**
53082
+ * UserEmailVerificationCompleted timestamp.
53083
+ * @member {number|Long} timestamp
53084
+ * @memberof UserEmailVerificationCompleted
53085
+ * @instance
53086
+ */
53087
+ UserEmailVerificationCompleted.prototype.timestamp = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
53088
+
53089
+ /**
53090
+ * Creates a new UserEmailVerificationCompleted instance using the specified properties.
53091
+ * @function create
53092
+ * @memberof UserEmailVerificationCompleted
53093
+ * @static
53094
+ * @param {IUserEmailVerificationCompleted=} [properties] Properties to set
53095
+ * @returns {UserEmailVerificationCompleted} UserEmailVerificationCompleted instance
53096
+ */
53097
+ UserEmailVerificationCompleted.create = function create(properties) {
53098
+ return new UserEmailVerificationCompleted(properties);
53099
+ };
53100
+
53101
+ /**
53102
+ * Encodes the specified UserEmailVerificationCompleted message. Does not implicitly {@link UserEmailVerificationCompleted.verify|verify} messages.
53103
+ * @function encode
53104
+ * @memberof UserEmailVerificationCompleted
53105
+ * @static
53106
+ * @param {IUserEmailVerificationCompleted} message UserEmailVerificationCompleted message or plain object to encode
53107
+ * @param {$protobuf.Writer} [writer] Writer to encode to
53108
+ * @returns {$protobuf.Writer} Writer
53109
+ */
53110
+ UserEmailVerificationCompleted.encode = function encode(message, writer) {
53111
+ if (!writer)
53112
+ writer = $Writer.create();
53113
+ if (message.hsId != null && message.hasOwnProperty("hsId"))
53114
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.hsId);
53115
+ if (message.email != null && message.hasOwnProperty("email"))
53116
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.email);
53117
+ if (message.timestamp != null && message.hasOwnProperty("timestamp"))
53118
+ writer.uint32(/* id 3, wireType 0 =*/24).uint64(message.timestamp);
53119
+ return writer;
53120
+ };
53121
+
53122
+ /**
53123
+ * Encodes the specified UserEmailVerificationCompleted message, length delimited. Does not implicitly {@link UserEmailVerificationCompleted.verify|verify} messages.
53124
+ * @function encodeDelimited
53125
+ * @memberof UserEmailVerificationCompleted
53126
+ * @static
53127
+ * @param {IUserEmailVerificationCompleted} message UserEmailVerificationCompleted message or plain object to encode
53128
+ * @param {$protobuf.Writer} [writer] Writer to encode to
53129
+ * @returns {$protobuf.Writer} Writer
53130
+ */
53131
+ UserEmailVerificationCompleted.encodeDelimited = function encodeDelimited(message, writer) {
53132
+ return this.encode(message, writer).ldelim();
53133
+ };
53134
+
53135
+ /**
53136
+ * Decodes a UserEmailVerificationCompleted message from the specified reader or buffer.
53137
+ * @function decode
53138
+ * @memberof UserEmailVerificationCompleted
53139
+ * @static
53140
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
53141
+ * @param {number} [length] Message length if known beforehand
53142
+ * @returns {UserEmailVerificationCompleted} UserEmailVerificationCompleted
53143
+ * @throws {Error} If the payload is not a reader or valid buffer
53144
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
53145
+ */
53146
+ UserEmailVerificationCompleted.decode = function decode(reader, length) {
53147
+ if (!(reader instanceof $Reader))
53148
+ reader = $Reader.create(reader);
53149
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.UserEmailVerificationCompleted();
53150
+ while (reader.pos < end) {
53151
+ var tag = reader.uint32();
53152
+ switch (tag >>> 3) {
53153
+ case 1:
53154
+ message.hsId = reader.string();
53155
+ break;
53156
+ case 2:
53157
+ message.email = reader.string();
53158
+ break;
53159
+ case 3:
53160
+ message.timestamp = reader.uint64();
53161
+ break;
53162
+ default:
53163
+ reader.skipType(tag & 7);
53164
+ break;
53165
+ }
53166
+ }
53167
+ return message;
53168
+ };
53169
+
53170
+ /**
53171
+ * Decodes a UserEmailVerificationCompleted message from the specified reader or buffer, length delimited.
53172
+ * @function decodeDelimited
53173
+ * @memberof UserEmailVerificationCompleted
53174
+ * @static
53175
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
53176
+ * @returns {UserEmailVerificationCompleted} UserEmailVerificationCompleted
53177
+ * @throws {Error} If the payload is not a reader or valid buffer
53178
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
53179
+ */
53180
+ UserEmailVerificationCompleted.decodeDelimited = function decodeDelimited(reader) {
53181
+ if (!(reader instanceof $Reader))
53182
+ reader = new $Reader(reader);
53183
+ return this.decode(reader, reader.uint32());
53184
+ };
53185
+
53186
+ /**
53187
+ * Verifies a UserEmailVerificationCompleted message.
53188
+ * @function verify
53189
+ * @memberof UserEmailVerificationCompleted
53190
+ * @static
53191
+ * @param {Object.<string,*>} message Plain object to verify
53192
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
53193
+ */
53194
+ UserEmailVerificationCompleted.verify = function verify(message) {
53195
+ if (typeof message !== "object" || message === null)
53196
+ return "object expected";
53197
+ if (message.hsId != null && message.hasOwnProperty("hsId"))
53198
+ if (!$util.isString(message.hsId))
53199
+ return "hsId: string expected";
53200
+ if (message.email != null && message.hasOwnProperty("email"))
53201
+ if (!$util.isString(message.email))
53202
+ return "email: string expected";
53203
+ if (message.timestamp != null && message.hasOwnProperty("timestamp"))
53204
+ if (!$util.isInteger(message.timestamp) && !(message.timestamp && $util.isInteger(message.timestamp.low) && $util.isInteger(message.timestamp.high)))
53205
+ return "timestamp: integer|Long expected";
53206
+ return null;
53207
+ };
53208
+
53209
+ /**
53210
+ * Creates a UserEmailVerificationCompleted message from a plain object. Also converts values to their respective internal types.
53211
+ * @function fromObject
53212
+ * @memberof UserEmailVerificationCompleted
53213
+ * @static
53214
+ * @param {Object.<string,*>} object Plain object
53215
+ * @returns {UserEmailVerificationCompleted} UserEmailVerificationCompleted
53216
+ */
53217
+ UserEmailVerificationCompleted.fromObject = function fromObject(object) {
53218
+ if (object instanceof $root.UserEmailVerificationCompleted)
53219
+ return object;
53220
+ var message = new $root.UserEmailVerificationCompleted();
53221
+ if (object.hsId != null)
53222
+ message.hsId = String(object.hsId);
53223
+ if (object.email != null)
53224
+ message.email = String(object.email);
53225
+ if (object.timestamp != null)
53226
+ if ($util.Long)
53227
+ (message.timestamp = $util.Long.fromValue(object.timestamp)).unsigned = true;
53228
+ else if (typeof object.timestamp === "string")
53229
+ message.timestamp = parseInt(object.timestamp, 10);
53230
+ else if (typeof object.timestamp === "number")
53231
+ message.timestamp = object.timestamp;
53232
+ else if (typeof object.timestamp === "object")
53233
+ message.timestamp = new $util.LongBits(object.timestamp.low >>> 0, object.timestamp.high >>> 0).toNumber(true);
53234
+ return message;
53235
+ };
53236
+
53237
+ /**
53238
+ * Creates a plain object from a UserEmailVerificationCompleted message. Also converts values to other types if specified.
53239
+ * @function toObject
53240
+ * @memberof UserEmailVerificationCompleted
53241
+ * @static
53242
+ * @param {UserEmailVerificationCompleted} message UserEmailVerificationCompleted
53243
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
53244
+ * @returns {Object.<string,*>} Plain object
53245
+ */
53246
+ UserEmailVerificationCompleted.toObject = function toObject(message, options) {
53247
+ if (!options)
53248
+ options = {};
53249
+ var object = {};
53250
+ if (options.defaults) {
53251
+ object.hsId = "";
53252
+ object.email = "";
53253
+ if ($util.Long) {
53254
+ var long = new $util.Long(0, 0, true);
53255
+ object.timestamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
53256
+ } else
53257
+ object.timestamp = options.longs === String ? "0" : 0;
53258
+ }
53259
+ if (message.hsId != null && message.hasOwnProperty("hsId"))
53260
+ object.hsId = message.hsId;
53261
+ if (message.email != null && message.hasOwnProperty("email"))
53262
+ object.email = message.email;
53263
+ if (message.timestamp != null && message.hasOwnProperty("timestamp"))
53264
+ if (typeof message.timestamp === "number")
53265
+ object.timestamp = options.longs === String ? String(message.timestamp) : message.timestamp;
53266
+ else
53267
+ 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;
53268
+ return object;
53269
+ };
53270
+
53271
+ /**
53272
+ * Converts this UserEmailVerificationCompleted to JSON.
53273
+ * @function toJSON
53274
+ * @memberof UserEmailVerificationCompleted
53275
+ * @instance
53276
+ * @returns {Object.<string,*>} JSON object
53277
+ */
53278
+ UserEmailVerificationCompleted.prototype.toJSON = function toJSON() {
53279
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
53280
+ };
53281
+
53282
+ return UserEmailVerificationCompleted;
53283
+ })();
53284
+
53039
53285
  $root.UserPasswordResetRequested = (function() {
53040
53286
 
53041
53287
  /**
package/package.json CHANGED
@@ -16,5 +16,5 @@
16
16
  "main": "lib/index.js",
17
17
  "name": "@headspace/protos-events",
18
18
  "typings": "lib/index.d.ts",
19
- "version": "1.144.0"
19
+ "version": "1.145.0"
20
20
  }