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