@headspace/protos-events 1.355.0 → 1.356.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
@@ -40703,6 +40703,110 @@ export class SubscriptionMemberSubscribed implements ISubscriptionMemberSubscrib
40703
40703
  public toJSON(): { [k: string]: any };
40704
40704
  }
40705
40705
 
40706
+
40707
+ /** Properties of a UserMFAEnrollmentInitiated. */
40708
+ export interface IUserMFAEnrollmentInitiated {
40709
+
40710
+ /** UserMFAEnrollmentInitiated userId */
40711
+ userId?: (string|null);
40712
+
40713
+ /** UserMFAEnrollmentInitiated enabled */
40714
+ enabled?: (boolean|null);
40715
+
40716
+ /** UserMFAEnrollmentInitiated timestamp */
40717
+ timestamp?: (number|Long|null);
40718
+ }
40719
+
40720
+ /** Represents a UserMFAEnrollmentInitiated. */
40721
+ export class UserMFAEnrollmentInitiated implements IUserMFAEnrollmentInitiated {
40722
+
40723
+ /**
40724
+ * Constructs a new UserMFAEnrollmentInitiated.
40725
+ * @param [properties] Properties to set
40726
+ */
40727
+ constructor(properties?: IUserMFAEnrollmentInitiated);
40728
+
40729
+ /** UserMFAEnrollmentInitiated userId. */
40730
+ public userId: string;
40731
+
40732
+ /** UserMFAEnrollmentInitiated enabled. */
40733
+ public enabled: boolean;
40734
+
40735
+ /** UserMFAEnrollmentInitiated timestamp. */
40736
+ public timestamp: (number|Long);
40737
+
40738
+ /**
40739
+ * Creates a new UserMFAEnrollmentInitiated instance using the specified properties.
40740
+ * @param [properties] Properties to set
40741
+ * @returns UserMFAEnrollmentInitiated instance
40742
+ */
40743
+ public static create(properties?: IUserMFAEnrollmentInitiated): UserMFAEnrollmentInitiated;
40744
+
40745
+ /**
40746
+ * Encodes the specified UserMFAEnrollmentInitiated message. Does not implicitly {@link UserMFAEnrollmentInitiated.verify|verify} messages.
40747
+ * @param message UserMFAEnrollmentInitiated message or plain object to encode
40748
+ * @param [writer] Writer to encode to
40749
+ * @returns Writer
40750
+ */
40751
+ public static encode(message: IUserMFAEnrollmentInitiated, writer?: $protobuf.Writer): $protobuf.Writer;
40752
+
40753
+ /**
40754
+ * Encodes the specified UserMFAEnrollmentInitiated message, length delimited. Does not implicitly {@link UserMFAEnrollmentInitiated.verify|verify} messages.
40755
+ * @param message UserMFAEnrollmentInitiated message or plain object to encode
40756
+ * @param [writer] Writer to encode to
40757
+ * @returns Writer
40758
+ */
40759
+ public static encodeDelimited(message: IUserMFAEnrollmentInitiated, writer?: $protobuf.Writer): $protobuf.Writer;
40760
+
40761
+ /**
40762
+ * Decodes a UserMFAEnrollmentInitiated message from the specified reader or buffer.
40763
+ * @param reader Reader or buffer to decode from
40764
+ * @param [length] Message length if known beforehand
40765
+ * @returns UserMFAEnrollmentInitiated
40766
+ * @throws {Error} If the payload is not a reader or valid buffer
40767
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
40768
+ */
40769
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): UserMFAEnrollmentInitiated;
40770
+
40771
+ /**
40772
+ * Decodes a UserMFAEnrollmentInitiated message from the specified reader or buffer, length delimited.
40773
+ * @param reader Reader or buffer to decode from
40774
+ * @returns UserMFAEnrollmentInitiated
40775
+ * @throws {Error} If the payload is not a reader or valid buffer
40776
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
40777
+ */
40778
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): UserMFAEnrollmentInitiated;
40779
+
40780
+ /**
40781
+ * Verifies a UserMFAEnrollmentInitiated message.
40782
+ * @param message Plain object to verify
40783
+ * @returns `null` if valid, otherwise the reason why it is not
40784
+ */
40785
+ public static verify(message: { [k: string]: any }): (string|null);
40786
+
40787
+ /**
40788
+ * Creates a UserMFAEnrollmentInitiated message from a plain object. Also converts values to their respective internal types.
40789
+ * @param object Plain object
40790
+ * @returns UserMFAEnrollmentInitiated
40791
+ */
40792
+ public static fromObject(object: { [k: string]: any }): UserMFAEnrollmentInitiated;
40793
+
40794
+ /**
40795
+ * Creates a plain object from a UserMFAEnrollmentInitiated message. Also converts values to other types if specified.
40796
+ * @param message UserMFAEnrollmentInitiated
40797
+ * @param [options] Conversion options
40798
+ * @returns Plain object
40799
+ */
40800
+ public static toObject(message: UserMFAEnrollmentInitiated, options?: $protobuf.IConversionOptions): { [k: string]: any };
40801
+
40802
+ /**
40803
+ * Converts this UserMFAEnrollmentInitiated to JSON.
40804
+ * @returns JSON object
40805
+ */
40806
+ public toJSON(): { [k: string]: any };
40807
+ }
40808
+
40809
+
40706
40810
  /** Properties of a SubscriptionMemberRenewed. */
40707
40811
  export interface ISubscriptionMemberRenewed {
40708
40812
 
package/lib/index.js CHANGED
@@ -116330,6 +116330,255 @@ $root.UserDoubleOptInEmailRequested = (function() {
116330
116330
  return UserDoubleOptInEmailRequested;
116331
116331
  })();
116332
116332
 
116333
+
116334
+
116335
+ $root.UserMFAEnrollmentInitiated = (function() {
116336
+
116337
+ /**
116338
+ * Properties of a UserMFAEnrollmentInitiated.
116339
+ * @exports IUserMFAEnrollmentInitiated
116340
+ * @interface IUserMFAEnrollmentInitiated
116341
+ * @property {string|null} [userId] UserMFAEnrollmentInitiated userId
116342
+ * @property {boolean|null} [enabled] UserMFAEnrollmentInitiated enabled
116343
+ * @property {number|Long|null} [timestamp] UserMFAEnrollmentInitiated timestamp
116344
+ */
116345
+
116346
+ /**
116347
+ * Constructs a new UserMFAEnrollmentInitiated.
116348
+ * @exports UserMFAEnrollmentInitiated
116349
+ * @classdesc Represents a UserMFAEnrollmentInitiated.
116350
+ * @implements IUserMFAEnrollmentInitiated
116351
+ * @constructor
116352
+ * @param {IUserMFAEnrollmentInitiated=} [properties] Properties to set
116353
+ */
116354
+ function UserMFAEnrollmentInitiated(properties) {
116355
+ if (properties)
116356
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
116357
+ if (properties[keys[i]] != null)
116358
+ this[keys[i]] = properties[keys[i]];
116359
+ }
116360
+
116361
+ /**
116362
+ * UserMFAEnrollmentInitiated userId.
116363
+ * @member {string} userId
116364
+ * @memberof UserMFAEnrollmentInitiated
116365
+ * @instance
116366
+ */
116367
+ UserMFAEnrollmentInitiated.prototype.userId = "";
116368
+
116369
+ /**
116370
+ * UserMFAEnrollmentInitiated enabled.
116371
+ * @member {boolean} enabled
116372
+ * @memberof UserMFAEnrollmentInitiated
116373
+ * @instance
116374
+ */
116375
+ UserMFAEnrollmentInitiated.prototype.enabled = false;
116376
+
116377
+ /**
116378
+ * UserMFAEnrollmentInitiated timestamp.
116379
+ * @member {number|Long} timestamp
116380
+ * @memberof UserMFAEnrollmentInitiated
116381
+ * @instance
116382
+ */
116383
+ UserMFAEnrollmentInitiated.prototype.timestamp = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
116384
+
116385
+ /**
116386
+ * Creates a new UserMFAEnrollmentInitiated instance using the specified properties.
116387
+ * @function create
116388
+ * @memberof UserMFAEnrollmentInitiated
116389
+ * @static
116390
+ * @param {IUserMFAEnrollmentInitiated=} [properties] Properties to set
116391
+ * @returns {UserMFAEnrollmentInitiated} UserMFAEnrollmentInitiated instance
116392
+ */
116393
+ UserMFAEnrollmentInitiated.create = function create(properties) {
116394
+ return new UserMFAEnrollmentInitiated(properties);
116395
+ };
116396
+
116397
+ /**
116398
+ * Encodes the specified UserMFAEnrollmentInitiated message. Does not implicitly {@link UserMFAEnrollmentInitiated.verify|verify} messages.
116399
+ * @function encode
116400
+ * @memberof UserMFAEnrollmentInitiated
116401
+ * @static
116402
+ * @param {IUserMFAEnrollmentInitiated} message UserMFAEnrollmentInitiated message or plain object to encode
116403
+ * @param {$protobuf.Writer} [writer] Writer to encode to
116404
+ * @returns {$protobuf.Writer} Writer
116405
+ */
116406
+ UserMFAEnrollmentInitiated.encode = function encode(message, writer) {
116407
+ if (!writer)
116408
+ writer = $Writer.create();
116409
+ if (message.userId != null && message.hasOwnProperty("userId"))
116410
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.userId);
116411
+ if (message.enabled != null && message.hasOwnProperty("enabled"))
116412
+ writer.uint32(/* id 2, wireType 0 =*/16).bool(message.enabled);
116413
+ if (message.timestamp != null && message.hasOwnProperty("timestamp"))
116414
+ writer.uint32(/* id 3, wireType 0 =*/24).uint64(message.timestamp);
116415
+ return writer;
116416
+ };
116417
+
116418
+ /**
116419
+ * Encodes the specified UserMFAEnrollmentInitiated message, length delimited. Does not implicitly {@link UserMFAEnrollmentInitiated.verify|verify} messages.
116420
+ * @function encodeDelimited
116421
+ * @memberof UserMFAEnrollmentInitiated
116422
+ * @static
116423
+ * @param {IUserMFAEnrollmentInitiated} message UserMFAEnrollmentInitiated message or plain object to encode
116424
+ * @param {$protobuf.Writer} [writer] Writer to encode to
116425
+ * @returns {$protobuf.Writer} Writer
116426
+ */
116427
+ UserMFAEnrollmentInitiated.encodeDelimited = function encodeDelimited(message, writer) {
116428
+ return this.encode(message, writer).ldelim();
116429
+ };
116430
+
116431
+ /**
116432
+ * Decodes a UserMFAEnrollmentInitiated message from the specified reader or buffer.
116433
+ * @function decode
116434
+ * @memberof UserMFAEnrollmentInitiated
116435
+ * @static
116436
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
116437
+ * @param {number} [length] Message length if known beforehand
116438
+ * @returns {UserMFAEnrollmentInitiated} UserMFAEnrollmentInitiated
116439
+ * @throws {Error} If the payload is not a reader or valid buffer
116440
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
116441
+ */
116442
+ UserMFAEnrollmentInitiated.decode = function decode(reader, length) {
116443
+ if (!(reader instanceof $Reader))
116444
+ reader = $Reader.create(reader);
116445
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.UserMFAEnrollmentInitiated();
116446
+ while (reader.pos < end) {
116447
+ var tag = reader.uint32();
116448
+ switch (tag >>> 3) {
116449
+ case 1:
116450
+ message.userId = reader.string();
116451
+ break;
116452
+ case 2:
116453
+ message.enabled = reader.bool();
116454
+ break;
116455
+ case 3:
116456
+ message.timestamp = reader.uint64();
116457
+ break;
116458
+ default:
116459
+ reader.skipType(tag & 7);
116460
+ break;
116461
+ }
116462
+ }
116463
+ return message;
116464
+ };
116465
+
116466
+ /**
116467
+ * Decodes a UserMFAEnrollmentInitiated message from the specified reader or buffer, length delimited.
116468
+ * @function decodeDelimited
116469
+ * @memberof UserMFAEnrollmentInitiated
116470
+ * @static
116471
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
116472
+ * @returns {UserMFAEnrollmentInitiated} UserMFAEnrollmentInitiated
116473
+ * @throws {Error} If the payload is not a reader or valid buffer
116474
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
116475
+ */
116476
+ UserMFAEnrollmentInitiated.decodeDelimited = function decodeDelimited(reader) {
116477
+ if (!(reader instanceof $Reader))
116478
+ reader = new $Reader(reader);
116479
+ return this.decode(reader, reader.uint32());
116480
+ };
116481
+
116482
+ /**
116483
+ * Verifies a UserMFAEnrollmentInitiated message.
116484
+ * @function verify
116485
+ * @memberof UserMFAEnrollmentInitiated
116486
+ * @static
116487
+ * @param {Object.<string,*>} message Plain object to verify
116488
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
116489
+ */
116490
+ UserMFAEnrollmentInitiated.verify = function verify(message) {
116491
+ if (typeof message !== "object" || message === null)
116492
+ return "object expected";
116493
+ if (message.userId != null && message.hasOwnProperty("userId"))
116494
+ if (!$util.isString(message.userId))
116495
+ return "userId: string expected";
116496
+ if (message.enabled != null && message.hasOwnProperty("enabled"))
116497
+ if (typeof message.enabled !== "boolean")
116498
+ return "enabled: boolean expected";
116499
+ if (message.timestamp != null && message.hasOwnProperty("timestamp"))
116500
+ if (!$util.isInteger(message.timestamp) && !(message.timestamp && $util.isInteger(message.timestamp.low) && $util.isInteger(message.timestamp.high)))
116501
+ return "timestamp: integer|Long expected";
116502
+ return null;
116503
+ };
116504
+
116505
+ /**
116506
+ * Creates a UserMFAEnrollmentInitiated message from a plain object. Also converts values to their respective internal types.
116507
+ * @function fromObject
116508
+ * @memberof UserMFAEnrollmentInitiated
116509
+ * @static
116510
+ * @param {Object.<string,*>} object Plain object
116511
+ * @returns {UserMFAEnrollmentInitiated} UserMFAEnrollmentInitiated
116512
+ */
116513
+ UserMFAEnrollmentInitiated.fromObject = function fromObject(object) {
116514
+ if (object instanceof $root.UserMFAEnrollmentInitiated)
116515
+ return object;
116516
+ var message = new $root.UserMFAEnrollmentInitiated();
116517
+ if (object.userId != null)
116518
+ message.userId = String(object.userId);
116519
+ if (object.enabled != null)
116520
+ message.enabled = Boolean(object.enabled);
116521
+ if (object.timestamp != null)
116522
+ if ($util.Long)
116523
+ (message.timestamp = $util.Long.fromValue(object.timestamp)).unsigned = true;
116524
+ else if (typeof object.timestamp === "string")
116525
+ message.timestamp = parseInt(object.timestamp, 10);
116526
+ else if (typeof object.timestamp === "number")
116527
+ message.timestamp = object.timestamp;
116528
+ else if (typeof object.timestamp === "object")
116529
+ message.timestamp = new $util.LongBits(object.timestamp.low >>> 0, object.timestamp.high >>> 0).toNumber(true);
116530
+ return message;
116531
+ };
116532
+
116533
+ /**
116534
+ * Creates a plain object from a UserMFAEnrollmentInitiated message. Also converts values to other types if specified.
116535
+ * @function toObject
116536
+ * @memberof UserMFAEnrollmentInitiated
116537
+ * @static
116538
+ * @param {UserMFAEnrollmentInitiated} message UserMFAEnrollmentInitiated
116539
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
116540
+ * @returns {Object.<string,*>} Plain object
116541
+ */
116542
+ UserMFAEnrollmentInitiated.toObject = function toObject(message, options) {
116543
+ if (!options)
116544
+ options = {};
116545
+ var object = {};
116546
+ if (options.defaults) {
116547
+ object.userId = "";
116548
+ object.enabled = false;
116549
+ if ($util.Long) {
116550
+ var long = new $util.Long(0, 0, true);
116551
+ object.timestamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
116552
+ } else
116553
+ object.timestamp = options.longs === String ? "0" : 0;
116554
+ }
116555
+ if (message.userId != null && message.hasOwnProperty("userId"))
116556
+ object.userId = message.userId;
116557
+ if (message.enabled != null && message.hasOwnProperty("enabled"))
116558
+ object.enabled = message.enabled;
116559
+ if (message.timestamp != null && message.hasOwnProperty("timestamp"))
116560
+ if (typeof message.timestamp === "number")
116561
+ object.timestamp = options.longs === String ? String(message.timestamp) : message.timestamp;
116562
+ else
116563
+ 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;
116564
+ return object;
116565
+ };
116566
+
116567
+ /**
116568
+ * Converts this UserMFAEnrollmentInitiated to JSON.
116569
+ * @function toJSON
116570
+ * @memberof UserMFAEnrollmentInitiated
116571
+ * @instance
116572
+ * @returns {Object.<string,*>} JSON object
116573
+ */
116574
+ UserMFAEnrollmentInitiated.prototype.toJSON = function toJSON() {
116575
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
116576
+ };
116577
+
116578
+ return UserMFAEnrollmentInitiated;
116579
+ })();
116580
+
116581
+
116333
116582
  $root.UserEmailUpdated = (function() {
116334
116583
 
116335
116584
  /**
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.355.0"
19
+ "version": "1.356.0"
20
20
  }