@headspace/protos-events 1.340.0 → 1.341.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
@@ -13324,6 +13324,108 @@ export class BlockedUnverifiedEmail implements IBlockedUnverifiedEmail {
13324
13324
  public toJSON(): { [k: string]: any };
13325
13325
  }
13326
13326
 
13327
+ /** Properties of a UserMFAEnrollmentInitiated. */
13328
+ export interface IUserMFAEnrollmentInitiated {
13329
+
13330
+ /** UserMFAEnrollmentInitiated userId */
13331
+ userId?: (string|null);
13332
+
13333
+ /** UserMFAEnrollmentInitiated enabled */
13334
+ enabled?: (boolean|null);
13335
+
13336
+ /** UserMFAEnrollmentInitiated timestamp */
13337
+ timestamp?: (number|Long|null);
13338
+ }
13339
+
13340
+ /** Represents a UserMFAEnrollmentInitiated. */
13341
+ export class UserMFAEnrollmentInitiated implements IUserMFAEnrollmentInitiated {
13342
+
13343
+ /**
13344
+ * Constructs a new UserMFAEnrollmentInitiated.
13345
+ * @param [properties] Properties to set
13346
+ */
13347
+ constructor(properties?: IUserMFAEnrollmentInitiated);
13348
+
13349
+ /** UserMFAEnrollmentInitiated userId. */
13350
+ public userId: string;
13351
+
13352
+ /** UserMFAEnrollmentInitiated enabled. */
13353
+ public enabled: boolean;
13354
+
13355
+ /** UserMFAEnrollmentInitiated timestamp. */
13356
+ public timestamp: (number|Long);
13357
+
13358
+ /**
13359
+ * Creates a new UserMFAEnrollmentInitiated instance using the specified properties.
13360
+ * @param [properties] Properties to set
13361
+ * @returns UserMFAEnrollmentInitiated instance
13362
+ */
13363
+ public static create(properties?: IUserMFAEnrollmentInitiated): UserMFAEnrollmentInitiated;
13364
+
13365
+ /**
13366
+ * Encodes the specified UserMFAEnrollmentInitiated message. Does not implicitly {@link UserMFAEnrollmentInitiated.verify|verify} messages.
13367
+ * @param message UserMFAEnrollmentInitiated message or plain object to encode
13368
+ * @param [writer] Writer to encode to
13369
+ * @returns Writer
13370
+ */
13371
+ public static encode(message: IUserMFAEnrollmentInitiated, writer?: $protobuf.Writer): $protobuf.Writer;
13372
+
13373
+ /**
13374
+ * Encodes the specified UserMFAEnrollmentInitiated message, length delimited. Does not implicitly {@link UserMFAEnrollmentInitiated.verify|verify} messages.
13375
+ * @param message UserMFAEnrollmentInitiated message or plain object to encode
13376
+ * @param [writer] Writer to encode to
13377
+ * @returns Writer
13378
+ */
13379
+ public static encodeDelimited(message: IUserMFAEnrollmentInitiated, writer?: $protobuf.Writer): $protobuf.Writer;
13380
+
13381
+ /**
13382
+ * Decodes a UserMFAEnrollmentInitiated message from the specified reader or buffer.
13383
+ * @param reader Reader or buffer to decode from
13384
+ * @param [length] Message length if known beforehand
13385
+ * @returns UserMFAEnrollmentInitiated
13386
+ * @throws {Error} If the payload is not a reader or valid buffer
13387
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
13388
+ */
13389
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): UserMFAEnrollmentInitiated;
13390
+
13391
+ /**
13392
+ * Decodes a UserMFAEnrollmentInitiated message from the specified reader or buffer, length delimited.
13393
+ * @param reader Reader or buffer to decode from
13394
+ * @returns UserMFAEnrollmentInitiated
13395
+ * @throws {Error} If the payload is not a reader or valid buffer
13396
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
13397
+ */
13398
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): UserMFAEnrollmentInitiated;
13399
+
13400
+ /**
13401
+ * Verifies a UserMFAEnrollmentInitiated message.
13402
+ * @param message Plain object to verify
13403
+ * @returns `null` if valid, otherwise the reason why it is not
13404
+ */
13405
+ public static verify(message: { [k: string]: any }): (string|null);
13406
+
13407
+ /**
13408
+ * Creates a UserMFAEnrollmentInitiated message from a plain object. Also converts values to their respective internal types.
13409
+ * @param object Plain object
13410
+ * @returns UserMFAEnrollmentInitiated
13411
+ */
13412
+ public static fromObject(object: { [k: string]: any }): UserMFAEnrollmentInitiated;
13413
+
13414
+ /**
13415
+ * Creates a plain object from a UserMFAEnrollmentInitiated message. Also converts values to other types if specified.
13416
+ * @param message UserMFAEnrollmentInitiated
13417
+ * @param [options] Conversion options
13418
+ * @returns Plain object
13419
+ */
13420
+ public static toObject(message: UserMFAEnrollmentInitiated, options?: $protobuf.IConversionOptions): { [k: string]: any };
13421
+
13422
+ /**
13423
+ * Converts this UserMFAEnrollmentInitiated to JSON.
13424
+ * @returns JSON object
13425
+ */
13426
+ public toJSON(): { [k: string]: any };
13427
+ }
13428
+
13327
13429
  /** Properties of an Auth0PasswordResetCompleted. */
13328
13430
  export interface IAuth0PasswordResetCompleted {
13329
13431
 
package/lib/index.js CHANGED
@@ -33091,6 +33091,252 @@ $root.BlockedUnverifiedEmail = (function() {
33091
33091
  return BlockedUnverifiedEmail;
33092
33092
  })();
33093
33093
 
33094
+ $root.UserMFAEnrollmentInitiated = (function() {
33095
+
33096
+ /**
33097
+ * Properties of a UserMFAEnrollmentInitiated.
33098
+ * @exports IUserMFAEnrollmentInitiated
33099
+ * @interface IUserMFAEnrollmentInitiated
33100
+ * @property {string|null} [userId] UserMFAEnrollmentInitiated userId
33101
+ * @property {boolean|null} [enabled] UserMFAEnrollmentInitiated enabled
33102
+ * @property {number|Long|null} [timestamp] UserMFAEnrollmentInitiated timestamp
33103
+ */
33104
+
33105
+ /**
33106
+ * Constructs a new UserMFAEnrollmentInitiated.
33107
+ * @exports UserMFAEnrollmentInitiated
33108
+ * @classdesc Represents a UserMFAEnrollmentInitiated.
33109
+ * @implements IUserMFAEnrollmentInitiated
33110
+ * @constructor
33111
+ * @param {IUserMFAEnrollmentInitiated=} [properties] Properties to set
33112
+ */
33113
+ function UserMFAEnrollmentInitiated(properties) {
33114
+ if (properties)
33115
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
33116
+ if (properties[keys[i]] != null)
33117
+ this[keys[i]] = properties[keys[i]];
33118
+ }
33119
+
33120
+ /**
33121
+ * UserMFAEnrollmentInitiated userId.
33122
+ * @member {string} userId
33123
+ * @memberof UserMFAEnrollmentInitiated
33124
+ * @instance
33125
+ */
33126
+ UserMFAEnrollmentInitiated.prototype.userId = "";
33127
+
33128
+ /**
33129
+ * UserMFAEnrollmentInitiated enabled.
33130
+ * @member {boolean} enabled
33131
+ * @memberof UserMFAEnrollmentInitiated
33132
+ * @instance
33133
+ */
33134
+ UserMFAEnrollmentInitiated.prototype.enabled = false;
33135
+
33136
+ /**
33137
+ * UserMFAEnrollmentInitiated timestamp.
33138
+ * @member {number|Long} timestamp
33139
+ * @memberof UserMFAEnrollmentInitiated
33140
+ * @instance
33141
+ */
33142
+ UserMFAEnrollmentInitiated.prototype.timestamp = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
33143
+
33144
+ /**
33145
+ * Creates a new UserMFAEnrollmentInitiated instance using the specified properties.
33146
+ * @function create
33147
+ * @memberof UserMFAEnrollmentInitiated
33148
+ * @static
33149
+ * @param {IUserMFAEnrollmentInitiated=} [properties] Properties to set
33150
+ * @returns {UserMFAEnrollmentInitiated} UserMFAEnrollmentInitiated instance
33151
+ */
33152
+ UserMFAEnrollmentInitiated.create = function create(properties) {
33153
+ return new UserMFAEnrollmentInitiated(properties);
33154
+ };
33155
+
33156
+ /**
33157
+ * Encodes the specified UserMFAEnrollmentInitiated message. Does not implicitly {@link UserMFAEnrollmentInitiated.verify|verify} messages.
33158
+ * @function encode
33159
+ * @memberof UserMFAEnrollmentInitiated
33160
+ * @static
33161
+ * @param {IUserMFAEnrollmentInitiated} message UserMFAEnrollmentInitiated message or plain object to encode
33162
+ * @param {$protobuf.Writer} [writer] Writer to encode to
33163
+ * @returns {$protobuf.Writer} Writer
33164
+ */
33165
+ UserMFAEnrollmentInitiated.encode = function encode(message, writer) {
33166
+ if (!writer)
33167
+ writer = $Writer.create();
33168
+ if (message.userId != null && message.hasOwnProperty("userId"))
33169
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.userId);
33170
+ if (message.enabled != null && message.hasOwnProperty("enabled"))
33171
+ writer.uint32(/* id 2, wireType 0 =*/16).bool(message.enabled);
33172
+ if (message.timestamp != null && message.hasOwnProperty("timestamp"))
33173
+ writer.uint32(/* id 3, wireType 0 =*/24).uint64(message.timestamp);
33174
+ return writer;
33175
+ };
33176
+
33177
+ /**
33178
+ * Encodes the specified UserMFAEnrollmentInitiated message, length delimited. Does not implicitly {@link UserMFAEnrollmentInitiated.verify|verify} messages.
33179
+ * @function encodeDelimited
33180
+ * @memberof UserMFAEnrollmentInitiated
33181
+ * @static
33182
+ * @param {IUserMFAEnrollmentInitiated} message UserMFAEnrollmentInitiated message or plain object to encode
33183
+ * @param {$protobuf.Writer} [writer] Writer to encode to
33184
+ * @returns {$protobuf.Writer} Writer
33185
+ */
33186
+ UserMFAEnrollmentInitiated.encodeDelimited = function encodeDelimited(message, writer) {
33187
+ return this.encode(message, writer).ldelim();
33188
+ };
33189
+
33190
+ /**
33191
+ * Decodes a UserMFAEnrollmentInitiated message from the specified reader or buffer.
33192
+ * @function decode
33193
+ * @memberof UserMFAEnrollmentInitiated
33194
+ * @static
33195
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
33196
+ * @param {number} [length] Message length if known beforehand
33197
+ * @returns {UserMFAEnrollmentInitiated} UserMFAEnrollmentInitiated
33198
+ * @throws {Error} If the payload is not a reader or valid buffer
33199
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
33200
+ */
33201
+ UserMFAEnrollmentInitiated.decode = function decode(reader, length) {
33202
+ if (!(reader instanceof $Reader))
33203
+ reader = $Reader.create(reader);
33204
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.UserMFAEnrollmentInitiated();
33205
+ while (reader.pos < end) {
33206
+ var tag = reader.uint32();
33207
+ switch (tag >>> 3) {
33208
+ case 1:
33209
+ message.userId = reader.string();
33210
+ break;
33211
+ case 2:
33212
+ message.enabled = reader.bool();
33213
+ break;
33214
+ case 3:
33215
+ message.timestamp = reader.uint64();
33216
+ break;
33217
+ default:
33218
+ reader.skipType(tag & 7);
33219
+ break;
33220
+ }
33221
+ }
33222
+ return message;
33223
+ };
33224
+
33225
+ /**
33226
+ * Decodes a UserMFAEnrollmentInitiated message from the specified reader or buffer, length delimited.
33227
+ * @function decodeDelimited
33228
+ * @memberof UserMFAEnrollmentInitiated
33229
+ * @static
33230
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
33231
+ * @returns {UserMFAEnrollmentInitiated} UserMFAEnrollmentInitiated
33232
+ * @throws {Error} If the payload is not a reader or valid buffer
33233
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
33234
+ */
33235
+ UserMFAEnrollmentInitiated.decodeDelimited = function decodeDelimited(reader) {
33236
+ if (!(reader instanceof $Reader))
33237
+ reader = new $Reader(reader);
33238
+ return this.decode(reader, reader.uint32());
33239
+ };
33240
+
33241
+ /**
33242
+ * Verifies a UserMFAEnrollmentInitiated message.
33243
+ * @function verify
33244
+ * @memberof UserMFAEnrollmentInitiated
33245
+ * @static
33246
+ * @param {Object.<string,*>} message Plain object to verify
33247
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
33248
+ */
33249
+ UserMFAEnrollmentInitiated.verify = function verify(message) {
33250
+ if (typeof message !== "object" || message === null)
33251
+ return "object expected";
33252
+ if (message.userId != null && message.hasOwnProperty("userId"))
33253
+ if (!$util.isString(message.userId))
33254
+ return "userId: string expected";
33255
+ if (message.enabled != null && message.hasOwnProperty("enabled"))
33256
+ if (typeof message.enabled !== "boolean")
33257
+ return "enabled: boolean expected";
33258
+ if (message.timestamp != null && message.hasOwnProperty("timestamp"))
33259
+ if (!$util.isInteger(message.timestamp) && !(message.timestamp && $util.isInteger(message.timestamp.low) && $util.isInteger(message.timestamp.high)))
33260
+ return "timestamp: integer|Long expected";
33261
+ return null;
33262
+ };
33263
+
33264
+ /**
33265
+ * Creates a UserMFAEnrollmentInitiated message from a plain object. Also converts values to their respective internal types.
33266
+ * @function fromObject
33267
+ * @memberof UserMFAEnrollmentInitiated
33268
+ * @static
33269
+ * @param {Object.<string,*>} object Plain object
33270
+ * @returns {UserMFAEnrollmentInitiated} UserMFAEnrollmentInitiated
33271
+ */
33272
+ UserMFAEnrollmentInitiated.fromObject = function fromObject(object) {
33273
+ if (object instanceof $root.UserMFAEnrollmentInitiated)
33274
+ return object;
33275
+ var message = new $root.UserMFAEnrollmentInitiated();
33276
+ if (object.userId != null)
33277
+ message.userId = String(object.userId);
33278
+ if (object.enabled != null)
33279
+ message.enabled = Boolean(object.enabled);
33280
+ if (object.timestamp != null)
33281
+ if ($util.Long)
33282
+ (message.timestamp = $util.Long.fromValue(object.timestamp)).unsigned = true;
33283
+ else if (typeof object.timestamp === "string")
33284
+ message.timestamp = parseInt(object.timestamp, 10);
33285
+ else if (typeof object.timestamp === "number")
33286
+ message.timestamp = object.timestamp;
33287
+ else if (typeof object.timestamp === "object")
33288
+ message.timestamp = new $util.LongBits(object.timestamp.low >>> 0, object.timestamp.high >>> 0).toNumber(true);
33289
+ return message;
33290
+ };
33291
+
33292
+ /**
33293
+ * Creates a plain object from a UserMFAEnrollmentInitiated message. Also converts values to other types if specified.
33294
+ * @function toObject
33295
+ * @memberof UserMFAEnrollmentInitiated
33296
+ * @static
33297
+ * @param {UserMFAEnrollmentInitiated} message UserMFAEnrollmentInitiated
33298
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
33299
+ * @returns {Object.<string,*>} Plain object
33300
+ */
33301
+ UserMFAEnrollmentInitiated.toObject = function toObject(message, options) {
33302
+ if (!options)
33303
+ options = {};
33304
+ var object = {};
33305
+ if (options.defaults) {
33306
+ object.userId = "";
33307
+ object.enabled = false;
33308
+ if ($util.Long) {
33309
+ var long = new $util.Long(0, 0, true);
33310
+ object.timestamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
33311
+ } else
33312
+ object.timestamp = options.longs === String ? "0" : 0;
33313
+ }
33314
+ if (message.userId != null && message.hasOwnProperty("userId"))
33315
+ object.userId = message.userId;
33316
+ if (message.enabled != null && message.hasOwnProperty("enabled"))
33317
+ object.enabled = message.enabled;
33318
+ if (message.timestamp != null && message.hasOwnProperty("timestamp"))
33319
+ if (typeof message.timestamp === "number")
33320
+ object.timestamp = options.longs === String ? String(message.timestamp) : message.timestamp;
33321
+ else
33322
+ 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;
33323
+ return object;
33324
+ };
33325
+
33326
+ /**
33327
+ * Converts this UserMFAEnrollmentInitiated to JSON.
33328
+ * @function toJSON
33329
+ * @memberof UserMFAEnrollmentInitiated
33330
+ * @instance
33331
+ * @returns {Object.<string,*>} JSON object
33332
+ */
33333
+ UserMFAEnrollmentInitiated.prototype.toJSON = function toJSON() {
33334
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
33335
+ };
33336
+
33337
+ return UserMFAEnrollmentInitiated;
33338
+ })();
33339
+
33094
33340
  $root.Auth0PasswordResetCompleted = (function() {
33095
33341
 
33096
33342
  /**
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.340.0"
19
+ "version": "1.341.0"
20
20
  }