@headspace/protos-events 1.412.0 → 1.414.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
@@ -120,6 +120,13 @@ export namespace auth {
120
120
  AUTH_LOGIN_TAG_UNKNOWN = 0,
121
121
  AUTH_LOGIN_TAG_FIRST_LOGIN = 1
122
122
  }
123
+
124
+ /** AuthEmailVerification enum. */
125
+ enum AuthEmailVerification {
126
+ AUTH_EMAIL_UNKNOWN = 0,
127
+ AUTH_EMAIL_VERIFIED = 1,
128
+ AUTH_EMAIL_UNVERIFIED = 2
129
+ }
123
130
  }
124
131
 
125
132
  /** Namespace auth0. */
@@ -30189,6 +30196,114 @@ export class AuthLoggedIn implements IAuthLoggedIn {
30189
30196
  public toJSON(): { [k: string]: any };
30190
30197
  }
30191
30198
 
30199
+ /** Properties of an AuthEmailVerificationUpdated. */
30200
+ export interface IAuthEmailVerificationUpdated {
30201
+
30202
+ /** HSUSER identifier */
30203
+ userId?: (string|null);
30204
+
30205
+ /** epoch millis of event */
30206
+ timestamp?: (number|Long|null);
30207
+
30208
+ /** email verification status */
30209
+ verificationStatus?: (auth.AuthEmailVerification|null);
30210
+
30211
+ /** email address that was verified */
30212
+ email?: (string|null);
30213
+ }
30214
+
30215
+ /** Signals when email verification status has changed */
30216
+ export class AuthEmailVerificationUpdated implements IAuthEmailVerificationUpdated {
30217
+
30218
+ /**
30219
+ * Constructs a new AuthEmailVerificationUpdated.
30220
+ * @param [properties] Properties to set
30221
+ */
30222
+ constructor(properties?: IAuthEmailVerificationUpdated);
30223
+
30224
+ /** HSUSER identifier */
30225
+ public userId: string;
30226
+
30227
+ /** epoch millis of event */
30228
+ public timestamp: (number|Long);
30229
+
30230
+ /** email verification status */
30231
+ public verificationStatus: auth.AuthEmailVerification;
30232
+
30233
+ /** email address that was verified */
30234
+ public email: string;
30235
+
30236
+ /**
30237
+ * Creates a new AuthEmailVerificationUpdated instance using the specified properties.
30238
+ * @param [properties] Properties to set
30239
+ * @returns AuthEmailVerificationUpdated instance
30240
+ */
30241
+ public static create(properties?: IAuthEmailVerificationUpdated): AuthEmailVerificationUpdated;
30242
+
30243
+ /**
30244
+ * Encodes the specified AuthEmailVerificationUpdated message. Does not implicitly {@link AuthEmailVerificationUpdated.verify|verify} messages.
30245
+ * @param message AuthEmailVerificationUpdated message or plain object to encode
30246
+ * @param [writer] Writer to encode to
30247
+ * @returns Writer
30248
+ */
30249
+ public static encode(message: IAuthEmailVerificationUpdated, writer?: $protobuf.Writer): $protobuf.Writer;
30250
+
30251
+ /**
30252
+ * Encodes the specified AuthEmailVerificationUpdated message, length delimited. Does not implicitly {@link AuthEmailVerificationUpdated.verify|verify} messages.
30253
+ * @param message AuthEmailVerificationUpdated message or plain object to encode
30254
+ * @param [writer] Writer to encode to
30255
+ * @returns Writer
30256
+ */
30257
+ public static encodeDelimited(message: IAuthEmailVerificationUpdated, writer?: $protobuf.Writer): $protobuf.Writer;
30258
+
30259
+ /**
30260
+ * Decodes an AuthEmailVerificationUpdated message from the specified reader or buffer.
30261
+ * @param reader Reader or buffer to decode from
30262
+ * @param [length] Message length if known beforehand
30263
+ * @returns AuthEmailVerificationUpdated
30264
+ * @throws {Error} If the payload is not a reader or valid buffer
30265
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
30266
+ */
30267
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): AuthEmailVerificationUpdated;
30268
+
30269
+ /**
30270
+ * Decodes an AuthEmailVerificationUpdated message from the specified reader or buffer, length delimited.
30271
+ * @param reader Reader or buffer to decode from
30272
+ * @returns AuthEmailVerificationUpdated
30273
+ * @throws {Error} If the payload is not a reader or valid buffer
30274
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
30275
+ */
30276
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): AuthEmailVerificationUpdated;
30277
+
30278
+ /**
30279
+ * Verifies an AuthEmailVerificationUpdated message.
30280
+ * @param message Plain object to verify
30281
+ * @returns `null` if valid, otherwise the reason why it is not
30282
+ */
30283
+ public static verify(message: { [k: string]: any }): (string|null);
30284
+
30285
+ /**
30286
+ * Creates an AuthEmailVerificationUpdated message from a plain object. Also converts values to their respective internal types.
30287
+ * @param object Plain object
30288
+ * @returns AuthEmailVerificationUpdated
30289
+ */
30290
+ public static fromObject(object: { [k: string]: any }): AuthEmailVerificationUpdated;
30291
+
30292
+ /**
30293
+ * Creates a plain object from an AuthEmailVerificationUpdated message. Also converts values to other types if specified.
30294
+ * @param message AuthEmailVerificationUpdated
30295
+ * @param [options] Conversion options
30296
+ * @returns Plain object
30297
+ */
30298
+ public static toObject(message: AuthEmailVerificationUpdated, options?: $protobuf.IConversionOptions): { [k: string]: any };
30299
+
30300
+ /**
30301
+ * Converts this AuthEmailVerificationUpdated to JSON.
30302
+ * @returns JSON object
30303
+ */
30304
+ public toJSON(): { [k: string]: any };
30305
+ }
30306
+
30192
30307
  /** Properties of an OrganizationCreated. */
30193
30308
  export interface IOrganizationCreated {
30194
30309
 
package/lib/index.js CHANGED
@@ -287,6 +287,22 @@ $root.auth = (function() {
287
287
  return values;
288
288
  })();
289
289
 
290
+ /**
291
+ * AuthEmailVerification enum.
292
+ * @name auth.AuthEmailVerification
293
+ * @enum {string}
294
+ * @property {number} AUTH_EMAIL_UNKNOWN=0 AUTH_EMAIL_UNKNOWN value
295
+ * @property {number} AUTH_EMAIL_VERIFIED=1 AUTH_EMAIL_VERIFIED value
296
+ * @property {number} AUTH_EMAIL_UNVERIFIED=2 AUTH_EMAIL_UNVERIFIED value
297
+ */
298
+ auth.AuthEmailVerification = (function() {
299
+ var valuesById = {}, values = Object.create(valuesById);
300
+ values[valuesById[0] = "AUTH_EMAIL_UNKNOWN"] = 0;
301
+ values[valuesById[1] = "AUTH_EMAIL_VERIFIED"] = 1;
302
+ values[valuesById[2] = "AUTH_EMAIL_UNVERIFIED"] = 2;
303
+ return values;
304
+ })();
305
+
290
306
  return auth;
291
307
  })();
292
308
 
@@ -84073,6 +84089,292 @@ $root.AuthLoggedIn = (function() {
84073
84089
  return AuthLoggedIn;
84074
84090
  })();
84075
84091
 
84092
+ $root.AuthEmailVerificationUpdated = (function() {
84093
+
84094
+ /**
84095
+ * Properties of an AuthEmailVerificationUpdated.
84096
+ * @exports IAuthEmailVerificationUpdated
84097
+ * @interface IAuthEmailVerificationUpdated
84098
+ * @property {string|null} [userId] HSUSER identifier
84099
+ * @property {number|Long|null} [timestamp] epoch millis of event
84100
+ * @property {auth.AuthEmailVerification|null} [verificationStatus] email verification status
84101
+ * @property {string|null} [email] email address that was verified
84102
+ */
84103
+
84104
+ /**
84105
+ * Constructs a new AuthEmailVerificationUpdated.
84106
+ * @exports AuthEmailVerificationUpdated
84107
+ * @classdesc Signals when email verification status has changed
84108
+ * @implements IAuthEmailVerificationUpdated
84109
+ * @constructor
84110
+ * @param {IAuthEmailVerificationUpdated=} [properties] Properties to set
84111
+ */
84112
+ function AuthEmailVerificationUpdated(properties) {
84113
+ if (properties)
84114
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
84115
+ if (properties[keys[i]] != null)
84116
+ this[keys[i]] = properties[keys[i]];
84117
+ }
84118
+
84119
+ /**
84120
+ * HSUSER identifier
84121
+ * @member {string} userId
84122
+ * @memberof AuthEmailVerificationUpdated
84123
+ * @instance
84124
+ */
84125
+ AuthEmailVerificationUpdated.prototype.userId = "";
84126
+
84127
+ /**
84128
+ * epoch millis of event
84129
+ * @member {number|Long} timestamp
84130
+ * @memberof AuthEmailVerificationUpdated
84131
+ * @instance
84132
+ */
84133
+ AuthEmailVerificationUpdated.prototype.timestamp = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
84134
+
84135
+ /**
84136
+ * email verification status
84137
+ * @member {auth.AuthEmailVerification} verificationStatus
84138
+ * @memberof AuthEmailVerificationUpdated
84139
+ * @instance
84140
+ */
84141
+ AuthEmailVerificationUpdated.prototype.verificationStatus = 0;
84142
+
84143
+ /**
84144
+ * email address that was verified
84145
+ * @member {string} email
84146
+ * @memberof AuthEmailVerificationUpdated
84147
+ * @instance
84148
+ */
84149
+ AuthEmailVerificationUpdated.prototype.email = "";
84150
+
84151
+ /**
84152
+ * Creates a new AuthEmailVerificationUpdated instance using the specified properties.
84153
+ * @function create
84154
+ * @memberof AuthEmailVerificationUpdated
84155
+ * @static
84156
+ * @param {IAuthEmailVerificationUpdated=} [properties] Properties to set
84157
+ * @returns {AuthEmailVerificationUpdated} AuthEmailVerificationUpdated instance
84158
+ */
84159
+ AuthEmailVerificationUpdated.create = function create(properties) {
84160
+ return new AuthEmailVerificationUpdated(properties);
84161
+ };
84162
+
84163
+ /**
84164
+ * Encodes the specified AuthEmailVerificationUpdated message. Does not implicitly {@link AuthEmailVerificationUpdated.verify|verify} messages.
84165
+ * @function encode
84166
+ * @memberof AuthEmailVerificationUpdated
84167
+ * @static
84168
+ * @param {IAuthEmailVerificationUpdated} message AuthEmailVerificationUpdated message or plain object to encode
84169
+ * @param {$protobuf.Writer} [writer] Writer to encode to
84170
+ * @returns {$protobuf.Writer} Writer
84171
+ */
84172
+ AuthEmailVerificationUpdated.encode = function encode(message, writer) {
84173
+ if (!writer)
84174
+ writer = $Writer.create();
84175
+ if (message.userId != null && message.hasOwnProperty("userId"))
84176
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.userId);
84177
+ if (message.timestamp != null && message.hasOwnProperty("timestamp"))
84178
+ writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.timestamp);
84179
+ if (message.verificationStatus != null && message.hasOwnProperty("verificationStatus"))
84180
+ writer.uint32(/* id 3, wireType 0 =*/24).int32(message.verificationStatus);
84181
+ if (message.email != null && message.hasOwnProperty("email"))
84182
+ writer.uint32(/* id 4, wireType 2 =*/34).string(message.email);
84183
+ return writer;
84184
+ };
84185
+
84186
+ /**
84187
+ * Encodes the specified AuthEmailVerificationUpdated message, length delimited. Does not implicitly {@link AuthEmailVerificationUpdated.verify|verify} messages.
84188
+ * @function encodeDelimited
84189
+ * @memberof AuthEmailVerificationUpdated
84190
+ * @static
84191
+ * @param {IAuthEmailVerificationUpdated} message AuthEmailVerificationUpdated message or plain object to encode
84192
+ * @param {$protobuf.Writer} [writer] Writer to encode to
84193
+ * @returns {$protobuf.Writer} Writer
84194
+ */
84195
+ AuthEmailVerificationUpdated.encodeDelimited = function encodeDelimited(message, writer) {
84196
+ return this.encode(message, writer).ldelim();
84197
+ };
84198
+
84199
+ /**
84200
+ * Decodes an AuthEmailVerificationUpdated message from the specified reader or buffer.
84201
+ * @function decode
84202
+ * @memberof AuthEmailVerificationUpdated
84203
+ * @static
84204
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
84205
+ * @param {number} [length] Message length if known beforehand
84206
+ * @returns {AuthEmailVerificationUpdated} AuthEmailVerificationUpdated
84207
+ * @throws {Error} If the payload is not a reader or valid buffer
84208
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
84209
+ */
84210
+ AuthEmailVerificationUpdated.decode = function decode(reader, length) {
84211
+ if (!(reader instanceof $Reader))
84212
+ reader = $Reader.create(reader);
84213
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.AuthEmailVerificationUpdated();
84214
+ while (reader.pos < end) {
84215
+ var tag = reader.uint32();
84216
+ switch (tag >>> 3) {
84217
+ case 1:
84218
+ message.userId = reader.string();
84219
+ break;
84220
+ case 2:
84221
+ message.timestamp = reader.uint64();
84222
+ break;
84223
+ case 3:
84224
+ message.verificationStatus = reader.int32();
84225
+ break;
84226
+ case 4:
84227
+ message.email = reader.string();
84228
+ break;
84229
+ default:
84230
+ reader.skipType(tag & 7);
84231
+ break;
84232
+ }
84233
+ }
84234
+ return message;
84235
+ };
84236
+
84237
+ /**
84238
+ * Decodes an AuthEmailVerificationUpdated message from the specified reader or buffer, length delimited.
84239
+ * @function decodeDelimited
84240
+ * @memberof AuthEmailVerificationUpdated
84241
+ * @static
84242
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
84243
+ * @returns {AuthEmailVerificationUpdated} AuthEmailVerificationUpdated
84244
+ * @throws {Error} If the payload is not a reader or valid buffer
84245
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
84246
+ */
84247
+ AuthEmailVerificationUpdated.decodeDelimited = function decodeDelimited(reader) {
84248
+ if (!(reader instanceof $Reader))
84249
+ reader = new $Reader(reader);
84250
+ return this.decode(reader, reader.uint32());
84251
+ };
84252
+
84253
+ /**
84254
+ * Verifies an AuthEmailVerificationUpdated message.
84255
+ * @function verify
84256
+ * @memberof AuthEmailVerificationUpdated
84257
+ * @static
84258
+ * @param {Object.<string,*>} message Plain object to verify
84259
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
84260
+ */
84261
+ AuthEmailVerificationUpdated.verify = function verify(message) {
84262
+ if (typeof message !== "object" || message === null)
84263
+ return "object expected";
84264
+ if (message.userId != null && message.hasOwnProperty("userId"))
84265
+ if (!$util.isString(message.userId))
84266
+ return "userId: string expected";
84267
+ if (message.timestamp != null && message.hasOwnProperty("timestamp"))
84268
+ if (!$util.isInteger(message.timestamp) && !(message.timestamp && $util.isInteger(message.timestamp.low) && $util.isInteger(message.timestamp.high)))
84269
+ return "timestamp: integer|Long expected";
84270
+ if (message.verificationStatus != null && message.hasOwnProperty("verificationStatus"))
84271
+ switch (message.verificationStatus) {
84272
+ default:
84273
+ return "verificationStatus: enum value expected";
84274
+ case 0:
84275
+ case 1:
84276
+ case 2:
84277
+ break;
84278
+ }
84279
+ if (message.email != null && message.hasOwnProperty("email"))
84280
+ if (!$util.isString(message.email))
84281
+ return "email: string expected";
84282
+ return null;
84283
+ };
84284
+
84285
+ /**
84286
+ * Creates an AuthEmailVerificationUpdated message from a plain object. Also converts values to their respective internal types.
84287
+ * @function fromObject
84288
+ * @memberof AuthEmailVerificationUpdated
84289
+ * @static
84290
+ * @param {Object.<string,*>} object Plain object
84291
+ * @returns {AuthEmailVerificationUpdated} AuthEmailVerificationUpdated
84292
+ */
84293
+ AuthEmailVerificationUpdated.fromObject = function fromObject(object) {
84294
+ if (object instanceof $root.AuthEmailVerificationUpdated)
84295
+ return object;
84296
+ var message = new $root.AuthEmailVerificationUpdated();
84297
+ if (object.userId != null)
84298
+ message.userId = String(object.userId);
84299
+ if (object.timestamp != null)
84300
+ if ($util.Long)
84301
+ (message.timestamp = $util.Long.fromValue(object.timestamp)).unsigned = true;
84302
+ else if (typeof object.timestamp === "string")
84303
+ message.timestamp = parseInt(object.timestamp, 10);
84304
+ else if (typeof object.timestamp === "number")
84305
+ message.timestamp = object.timestamp;
84306
+ else if (typeof object.timestamp === "object")
84307
+ message.timestamp = new $util.LongBits(object.timestamp.low >>> 0, object.timestamp.high >>> 0).toNumber(true);
84308
+ switch (object.verificationStatus) {
84309
+ case "AUTH_EMAIL_UNKNOWN":
84310
+ case 0:
84311
+ message.verificationStatus = 0;
84312
+ break;
84313
+ case "AUTH_EMAIL_VERIFIED":
84314
+ case 1:
84315
+ message.verificationStatus = 1;
84316
+ break;
84317
+ case "AUTH_EMAIL_UNVERIFIED":
84318
+ case 2:
84319
+ message.verificationStatus = 2;
84320
+ break;
84321
+ }
84322
+ if (object.email != null)
84323
+ message.email = String(object.email);
84324
+ return message;
84325
+ };
84326
+
84327
+ /**
84328
+ * Creates a plain object from an AuthEmailVerificationUpdated message. Also converts values to other types if specified.
84329
+ * @function toObject
84330
+ * @memberof AuthEmailVerificationUpdated
84331
+ * @static
84332
+ * @param {AuthEmailVerificationUpdated} message AuthEmailVerificationUpdated
84333
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
84334
+ * @returns {Object.<string,*>} Plain object
84335
+ */
84336
+ AuthEmailVerificationUpdated.toObject = function toObject(message, options) {
84337
+ if (!options)
84338
+ options = {};
84339
+ var object = {};
84340
+ if (options.defaults) {
84341
+ object.userId = "";
84342
+ if ($util.Long) {
84343
+ var long = new $util.Long(0, 0, true);
84344
+ object.timestamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
84345
+ } else
84346
+ object.timestamp = options.longs === String ? "0" : 0;
84347
+ object.verificationStatus = options.enums === String ? "AUTH_EMAIL_UNKNOWN" : 0;
84348
+ object.email = "";
84349
+ }
84350
+ if (message.userId != null && message.hasOwnProperty("userId"))
84351
+ object.userId = message.userId;
84352
+ if (message.timestamp != null && message.hasOwnProperty("timestamp"))
84353
+ if (typeof message.timestamp === "number")
84354
+ object.timestamp = options.longs === String ? String(message.timestamp) : message.timestamp;
84355
+ else
84356
+ 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;
84357
+ if (message.verificationStatus != null && message.hasOwnProperty("verificationStatus"))
84358
+ object.verificationStatus = options.enums === String ? $root.auth.AuthEmailVerification[message.verificationStatus] : message.verificationStatus;
84359
+ if (message.email != null && message.hasOwnProperty("email"))
84360
+ object.email = message.email;
84361
+ return object;
84362
+ };
84363
+
84364
+ /**
84365
+ * Converts this AuthEmailVerificationUpdated to JSON.
84366
+ * @function toJSON
84367
+ * @memberof AuthEmailVerificationUpdated
84368
+ * @instance
84369
+ * @returns {Object.<string,*>} JSON object
84370
+ */
84371
+ AuthEmailVerificationUpdated.prototype.toJSON = function toJSON() {
84372
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
84373
+ };
84374
+
84375
+ return AuthEmailVerificationUpdated;
84376
+ })();
84377
+
84076
84378
  $root.OrganizationCreated = (function() {
84077
84379
 
84078
84380
  /**
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.412.0"
19
+ "version": "1.414.0"
20
20
  }