@headspace/protos-events 1.302.0 → 1.303.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
@@ -40606,6 +40606,198 @@ export class UserConsentUpdated implements IUserConsentUpdated {
40606
40606
  public toJSON(): { [k: string]: any };
40607
40607
  }
40608
40608
 
40609
+ /** Properties of a UserBedtimeNotificationsSettingUpdated. */
40610
+ export interface IUserBedtimeNotificationsSettingUpdated {
40611
+
40612
+ /** UserBedtimeNotificationsSettingUpdated userId */
40613
+ userId?: (string|null);
40614
+
40615
+ /** UserBedtimeNotificationsSettingUpdated isEnabled */
40616
+ isEnabled?: (boolean|null);
40617
+ }
40618
+
40619
+ /** Represents a UserBedtimeNotificationsSettingUpdated. */
40620
+ export class UserBedtimeNotificationsSettingUpdated implements IUserBedtimeNotificationsSettingUpdated {
40621
+
40622
+ /**
40623
+ * Constructs a new UserBedtimeNotificationsSettingUpdated.
40624
+ * @param [properties] Properties to set
40625
+ */
40626
+ constructor(properties?: IUserBedtimeNotificationsSettingUpdated);
40627
+
40628
+ /** UserBedtimeNotificationsSettingUpdated userId. */
40629
+ public userId: string;
40630
+
40631
+ /** UserBedtimeNotificationsSettingUpdated isEnabled. */
40632
+ public isEnabled: boolean;
40633
+
40634
+ /**
40635
+ * Creates a new UserBedtimeNotificationsSettingUpdated instance using the specified properties.
40636
+ * @param [properties] Properties to set
40637
+ * @returns UserBedtimeNotificationsSettingUpdated instance
40638
+ */
40639
+ public static create(properties?: IUserBedtimeNotificationsSettingUpdated): UserBedtimeNotificationsSettingUpdated;
40640
+
40641
+ /**
40642
+ * Encodes the specified UserBedtimeNotificationsSettingUpdated message. Does not implicitly {@link UserBedtimeNotificationsSettingUpdated.verify|verify} messages.
40643
+ * @param message UserBedtimeNotificationsSettingUpdated message or plain object to encode
40644
+ * @param [writer] Writer to encode to
40645
+ * @returns Writer
40646
+ */
40647
+ public static encode(message: IUserBedtimeNotificationsSettingUpdated, writer?: $protobuf.Writer): $protobuf.Writer;
40648
+
40649
+ /**
40650
+ * Encodes the specified UserBedtimeNotificationsSettingUpdated message, length delimited. Does not implicitly {@link UserBedtimeNotificationsSettingUpdated.verify|verify} messages.
40651
+ * @param message UserBedtimeNotificationsSettingUpdated message or plain object to encode
40652
+ * @param [writer] Writer to encode to
40653
+ * @returns Writer
40654
+ */
40655
+ public static encodeDelimited(message: IUserBedtimeNotificationsSettingUpdated, writer?: $protobuf.Writer): $protobuf.Writer;
40656
+
40657
+ /**
40658
+ * Decodes a UserBedtimeNotificationsSettingUpdated message from the specified reader or buffer.
40659
+ * @param reader Reader or buffer to decode from
40660
+ * @param [length] Message length if known beforehand
40661
+ * @returns UserBedtimeNotificationsSettingUpdated
40662
+ * @throws {Error} If the payload is not a reader or valid buffer
40663
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
40664
+ */
40665
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): UserBedtimeNotificationsSettingUpdated;
40666
+
40667
+ /**
40668
+ * Decodes a UserBedtimeNotificationsSettingUpdated message from the specified reader or buffer, length delimited.
40669
+ * @param reader Reader or buffer to decode from
40670
+ * @returns UserBedtimeNotificationsSettingUpdated
40671
+ * @throws {Error} If the payload is not a reader or valid buffer
40672
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
40673
+ */
40674
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): UserBedtimeNotificationsSettingUpdated;
40675
+
40676
+ /**
40677
+ * Verifies a UserBedtimeNotificationsSettingUpdated message.
40678
+ * @param message Plain object to verify
40679
+ * @returns `null` if valid, otherwise the reason why it is not
40680
+ */
40681
+ public static verify(message: { [k: string]: any }): (string|null);
40682
+
40683
+ /**
40684
+ * Creates a UserBedtimeNotificationsSettingUpdated message from a plain object. Also converts values to their respective internal types.
40685
+ * @param object Plain object
40686
+ * @returns UserBedtimeNotificationsSettingUpdated
40687
+ */
40688
+ public static fromObject(object: { [k: string]: any }): UserBedtimeNotificationsSettingUpdated;
40689
+
40690
+ /**
40691
+ * Creates a plain object from a UserBedtimeNotificationsSettingUpdated message. Also converts values to other types if specified.
40692
+ * @param message UserBedtimeNotificationsSettingUpdated
40693
+ * @param [options] Conversion options
40694
+ * @returns Plain object
40695
+ */
40696
+ public static toObject(message: UserBedtimeNotificationsSettingUpdated, options?: $protobuf.IConversionOptions): { [k: string]: any };
40697
+
40698
+ /**
40699
+ * Converts this UserBedtimeNotificationsSettingUpdated to JSON.
40700
+ * @returns JSON object
40701
+ */
40702
+ public toJSON(): { [k: string]: any };
40703
+ }
40704
+
40705
+ /** Properties of a UserWindDownNotificationsSettingUpdated. */
40706
+ export interface IUserWindDownNotificationsSettingUpdated {
40707
+
40708
+ /** UserWindDownNotificationsSettingUpdated userId */
40709
+ userId?: (string|null);
40710
+
40711
+ /** UserWindDownNotificationsSettingUpdated isEnabled */
40712
+ isEnabled?: (boolean|null);
40713
+ }
40714
+
40715
+ /** Represents a UserWindDownNotificationsSettingUpdated. */
40716
+ export class UserWindDownNotificationsSettingUpdated implements IUserWindDownNotificationsSettingUpdated {
40717
+
40718
+ /**
40719
+ * Constructs a new UserWindDownNotificationsSettingUpdated.
40720
+ * @param [properties] Properties to set
40721
+ */
40722
+ constructor(properties?: IUserWindDownNotificationsSettingUpdated);
40723
+
40724
+ /** UserWindDownNotificationsSettingUpdated userId. */
40725
+ public userId: string;
40726
+
40727
+ /** UserWindDownNotificationsSettingUpdated isEnabled. */
40728
+ public isEnabled: boolean;
40729
+
40730
+ /**
40731
+ * Creates a new UserWindDownNotificationsSettingUpdated instance using the specified properties.
40732
+ * @param [properties] Properties to set
40733
+ * @returns UserWindDownNotificationsSettingUpdated instance
40734
+ */
40735
+ public static create(properties?: IUserWindDownNotificationsSettingUpdated): UserWindDownNotificationsSettingUpdated;
40736
+
40737
+ /**
40738
+ * Encodes the specified UserWindDownNotificationsSettingUpdated message. Does not implicitly {@link UserWindDownNotificationsSettingUpdated.verify|verify} messages.
40739
+ * @param message UserWindDownNotificationsSettingUpdated message or plain object to encode
40740
+ * @param [writer] Writer to encode to
40741
+ * @returns Writer
40742
+ */
40743
+ public static encode(message: IUserWindDownNotificationsSettingUpdated, writer?: $protobuf.Writer): $protobuf.Writer;
40744
+
40745
+ /**
40746
+ * Encodes the specified UserWindDownNotificationsSettingUpdated message, length delimited. Does not implicitly {@link UserWindDownNotificationsSettingUpdated.verify|verify} messages.
40747
+ * @param message UserWindDownNotificationsSettingUpdated message or plain object to encode
40748
+ * @param [writer] Writer to encode to
40749
+ * @returns Writer
40750
+ */
40751
+ public static encodeDelimited(message: IUserWindDownNotificationsSettingUpdated, writer?: $protobuf.Writer): $protobuf.Writer;
40752
+
40753
+ /**
40754
+ * Decodes a UserWindDownNotificationsSettingUpdated message from the specified reader or buffer.
40755
+ * @param reader Reader or buffer to decode from
40756
+ * @param [length] Message length if known beforehand
40757
+ * @returns UserWindDownNotificationsSettingUpdated
40758
+ * @throws {Error} If the payload is not a reader or valid buffer
40759
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
40760
+ */
40761
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): UserWindDownNotificationsSettingUpdated;
40762
+
40763
+ /**
40764
+ * Decodes a UserWindDownNotificationsSettingUpdated message from the specified reader or buffer, length delimited.
40765
+ * @param reader Reader or buffer to decode from
40766
+ * @returns UserWindDownNotificationsSettingUpdated
40767
+ * @throws {Error} If the payload is not a reader or valid buffer
40768
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
40769
+ */
40770
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): UserWindDownNotificationsSettingUpdated;
40771
+
40772
+ /**
40773
+ * Verifies a UserWindDownNotificationsSettingUpdated message.
40774
+ * @param message Plain object to verify
40775
+ * @returns `null` if valid, otherwise the reason why it is not
40776
+ */
40777
+ public static verify(message: { [k: string]: any }): (string|null);
40778
+
40779
+ /**
40780
+ * Creates a UserWindDownNotificationsSettingUpdated message from a plain object. Also converts values to their respective internal types.
40781
+ * @param object Plain object
40782
+ * @returns UserWindDownNotificationsSettingUpdated
40783
+ */
40784
+ public static fromObject(object: { [k: string]: any }): UserWindDownNotificationsSettingUpdated;
40785
+
40786
+ /**
40787
+ * Creates a plain object from a UserWindDownNotificationsSettingUpdated message. Also converts values to other types if specified.
40788
+ * @param message UserWindDownNotificationsSettingUpdated
40789
+ * @param [options] Conversion options
40790
+ * @returns Plain object
40791
+ */
40792
+ public static toObject(message: UserWindDownNotificationsSettingUpdated, options?: $protobuf.IConversionOptions): { [k: string]: any };
40793
+
40794
+ /**
40795
+ * Converts this UserWindDownNotificationsSettingUpdated to JSON.
40796
+ * @returns JSON object
40797
+ */
40798
+ public toJSON(): { [k: string]: any };
40799
+ }
40800
+
40609
40801
  /** Properties of a VirginPulseAccountLinked. */
40610
40802
  export interface IVirginPulseAccountLinked {
40611
40803
 
package/lib/index.js CHANGED
@@ -114505,6 +114505,426 @@ $root.UserConsentUpdated = (function() {
114505
114505
  return UserConsentUpdated;
114506
114506
  })();
114507
114507
 
114508
+ $root.UserBedtimeNotificationsSettingUpdated = (function() {
114509
+
114510
+ /**
114511
+ * Properties of a UserBedtimeNotificationsSettingUpdated.
114512
+ * @exports IUserBedtimeNotificationsSettingUpdated
114513
+ * @interface IUserBedtimeNotificationsSettingUpdated
114514
+ * @property {string|null} [userId] UserBedtimeNotificationsSettingUpdated userId
114515
+ * @property {boolean|null} [isEnabled] UserBedtimeNotificationsSettingUpdated isEnabled
114516
+ */
114517
+
114518
+ /**
114519
+ * Constructs a new UserBedtimeNotificationsSettingUpdated.
114520
+ * @exports UserBedtimeNotificationsSettingUpdated
114521
+ * @classdesc Represents a UserBedtimeNotificationsSettingUpdated.
114522
+ * @implements IUserBedtimeNotificationsSettingUpdated
114523
+ * @constructor
114524
+ * @param {IUserBedtimeNotificationsSettingUpdated=} [properties] Properties to set
114525
+ */
114526
+ function UserBedtimeNotificationsSettingUpdated(properties) {
114527
+ if (properties)
114528
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
114529
+ if (properties[keys[i]] != null)
114530
+ this[keys[i]] = properties[keys[i]];
114531
+ }
114532
+
114533
+ /**
114534
+ * UserBedtimeNotificationsSettingUpdated userId.
114535
+ * @member {string} userId
114536
+ * @memberof UserBedtimeNotificationsSettingUpdated
114537
+ * @instance
114538
+ */
114539
+ UserBedtimeNotificationsSettingUpdated.prototype.userId = "";
114540
+
114541
+ /**
114542
+ * UserBedtimeNotificationsSettingUpdated isEnabled.
114543
+ * @member {boolean} isEnabled
114544
+ * @memberof UserBedtimeNotificationsSettingUpdated
114545
+ * @instance
114546
+ */
114547
+ UserBedtimeNotificationsSettingUpdated.prototype.isEnabled = false;
114548
+
114549
+ /**
114550
+ * Creates a new UserBedtimeNotificationsSettingUpdated instance using the specified properties.
114551
+ * @function create
114552
+ * @memberof UserBedtimeNotificationsSettingUpdated
114553
+ * @static
114554
+ * @param {IUserBedtimeNotificationsSettingUpdated=} [properties] Properties to set
114555
+ * @returns {UserBedtimeNotificationsSettingUpdated} UserBedtimeNotificationsSettingUpdated instance
114556
+ */
114557
+ UserBedtimeNotificationsSettingUpdated.create = function create(properties) {
114558
+ return new UserBedtimeNotificationsSettingUpdated(properties);
114559
+ };
114560
+
114561
+ /**
114562
+ * Encodes the specified UserBedtimeNotificationsSettingUpdated message. Does not implicitly {@link UserBedtimeNotificationsSettingUpdated.verify|verify} messages.
114563
+ * @function encode
114564
+ * @memberof UserBedtimeNotificationsSettingUpdated
114565
+ * @static
114566
+ * @param {IUserBedtimeNotificationsSettingUpdated} message UserBedtimeNotificationsSettingUpdated message or plain object to encode
114567
+ * @param {$protobuf.Writer} [writer] Writer to encode to
114568
+ * @returns {$protobuf.Writer} Writer
114569
+ */
114570
+ UserBedtimeNotificationsSettingUpdated.encode = function encode(message, writer) {
114571
+ if (!writer)
114572
+ writer = $Writer.create();
114573
+ if (message.userId != null && message.hasOwnProperty("userId"))
114574
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.userId);
114575
+ if (message.isEnabled != null && message.hasOwnProperty("isEnabled"))
114576
+ writer.uint32(/* id 2, wireType 0 =*/16).bool(message.isEnabled);
114577
+ return writer;
114578
+ };
114579
+
114580
+ /**
114581
+ * Encodes the specified UserBedtimeNotificationsSettingUpdated message, length delimited. Does not implicitly {@link UserBedtimeNotificationsSettingUpdated.verify|verify} messages.
114582
+ * @function encodeDelimited
114583
+ * @memberof UserBedtimeNotificationsSettingUpdated
114584
+ * @static
114585
+ * @param {IUserBedtimeNotificationsSettingUpdated} message UserBedtimeNotificationsSettingUpdated message or plain object to encode
114586
+ * @param {$protobuf.Writer} [writer] Writer to encode to
114587
+ * @returns {$protobuf.Writer} Writer
114588
+ */
114589
+ UserBedtimeNotificationsSettingUpdated.encodeDelimited = function encodeDelimited(message, writer) {
114590
+ return this.encode(message, writer).ldelim();
114591
+ };
114592
+
114593
+ /**
114594
+ * Decodes a UserBedtimeNotificationsSettingUpdated message from the specified reader or buffer.
114595
+ * @function decode
114596
+ * @memberof UserBedtimeNotificationsSettingUpdated
114597
+ * @static
114598
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
114599
+ * @param {number} [length] Message length if known beforehand
114600
+ * @returns {UserBedtimeNotificationsSettingUpdated} UserBedtimeNotificationsSettingUpdated
114601
+ * @throws {Error} If the payload is not a reader or valid buffer
114602
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
114603
+ */
114604
+ UserBedtimeNotificationsSettingUpdated.decode = function decode(reader, length) {
114605
+ if (!(reader instanceof $Reader))
114606
+ reader = $Reader.create(reader);
114607
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.UserBedtimeNotificationsSettingUpdated();
114608
+ while (reader.pos < end) {
114609
+ var tag = reader.uint32();
114610
+ switch (tag >>> 3) {
114611
+ case 1:
114612
+ message.userId = reader.string();
114613
+ break;
114614
+ case 2:
114615
+ message.isEnabled = reader.bool();
114616
+ break;
114617
+ default:
114618
+ reader.skipType(tag & 7);
114619
+ break;
114620
+ }
114621
+ }
114622
+ return message;
114623
+ };
114624
+
114625
+ /**
114626
+ * Decodes a UserBedtimeNotificationsSettingUpdated message from the specified reader or buffer, length delimited.
114627
+ * @function decodeDelimited
114628
+ * @memberof UserBedtimeNotificationsSettingUpdated
114629
+ * @static
114630
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
114631
+ * @returns {UserBedtimeNotificationsSettingUpdated} UserBedtimeNotificationsSettingUpdated
114632
+ * @throws {Error} If the payload is not a reader or valid buffer
114633
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
114634
+ */
114635
+ UserBedtimeNotificationsSettingUpdated.decodeDelimited = function decodeDelimited(reader) {
114636
+ if (!(reader instanceof $Reader))
114637
+ reader = new $Reader(reader);
114638
+ return this.decode(reader, reader.uint32());
114639
+ };
114640
+
114641
+ /**
114642
+ * Verifies a UserBedtimeNotificationsSettingUpdated message.
114643
+ * @function verify
114644
+ * @memberof UserBedtimeNotificationsSettingUpdated
114645
+ * @static
114646
+ * @param {Object.<string,*>} message Plain object to verify
114647
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
114648
+ */
114649
+ UserBedtimeNotificationsSettingUpdated.verify = function verify(message) {
114650
+ if (typeof message !== "object" || message === null)
114651
+ return "object expected";
114652
+ if (message.userId != null && message.hasOwnProperty("userId"))
114653
+ if (!$util.isString(message.userId))
114654
+ return "userId: string expected";
114655
+ if (message.isEnabled != null && message.hasOwnProperty("isEnabled"))
114656
+ if (typeof message.isEnabled !== "boolean")
114657
+ return "isEnabled: boolean expected";
114658
+ return null;
114659
+ };
114660
+
114661
+ /**
114662
+ * Creates a UserBedtimeNotificationsSettingUpdated message from a plain object. Also converts values to their respective internal types.
114663
+ * @function fromObject
114664
+ * @memberof UserBedtimeNotificationsSettingUpdated
114665
+ * @static
114666
+ * @param {Object.<string,*>} object Plain object
114667
+ * @returns {UserBedtimeNotificationsSettingUpdated} UserBedtimeNotificationsSettingUpdated
114668
+ */
114669
+ UserBedtimeNotificationsSettingUpdated.fromObject = function fromObject(object) {
114670
+ if (object instanceof $root.UserBedtimeNotificationsSettingUpdated)
114671
+ return object;
114672
+ var message = new $root.UserBedtimeNotificationsSettingUpdated();
114673
+ if (object.userId != null)
114674
+ message.userId = String(object.userId);
114675
+ if (object.isEnabled != null)
114676
+ message.isEnabled = Boolean(object.isEnabled);
114677
+ return message;
114678
+ };
114679
+
114680
+ /**
114681
+ * Creates a plain object from a UserBedtimeNotificationsSettingUpdated message. Also converts values to other types if specified.
114682
+ * @function toObject
114683
+ * @memberof UserBedtimeNotificationsSettingUpdated
114684
+ * @static
114685
+ * @param {UserBedtimeNotificationsSettingUpdated} message UserBedtimeNotificationsSettingUpdated
114686
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
114687
+ * @returns {Object.<string,*>} Plain object
114688
+ */
114689
+ UserBedtimeNotificationsSettingUpdated.toObject = function toObject(message, options) {
114690
+ if (!options)
114691
+ options = {};
114692
+ var object = {};
114693
+ if (options.defaults) {
114694
+ object.userId = "";
114695
+ object.isEnabled = false;
114696
+ }
114697
+ if (message.userId != null && message.hasOwnProperty("userId"))
114698
+ object.userId = message.userId;
114699
+ if (message.isEnabled != null && message.hasOwnProperty("isEnabled"))
114700
+ object.isEnabled = message.isEnabled;
114701
+ return object;
114702
+ };
114703
+
114704
+ /**
114705
+ * Converts this UserBedtimeNotificationsSettingUpdated to JSON.
114706
+ * @function toJSON
114707
+ * @memberof UserBedtimeNotificationsSettingUpdated
114708
+ * @instance
114709
+ * @returns {Object.<string,*>} JSON object
114710
+ */
114711
+ UserBedtimeNotificationsSettingUpdated.prototype.toJSON = function toJSON() {
114712
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
114713
+ };
114714
+
114715
+ return UserBedtimeNotificationsSettingUpdated;
114716
+ })();
114717
+
114718
+ $root.UserWindDownNotificationsSettingUpdated = (function() {
114719
+
114720
+ /**
114721
+ * Properties of a UserWindDownNotificationsSettingUpdated.
114722
+ * @exports IUserWindDownNotificationsSettingUpdated
114723
+ * @interface IUserWindDownNotificationsSettingUpdated
114724
+ * @property {string|null} [userId] UserWindDownNotificationsSettingUpdated userId
114725
+ * @property {boolean|null} [isEnabled] UserWindDownNotificationsSettingUpdated isEnabled
114726
+ */
114727
+
114728
+ /**
114729
+ * Constructs a new UserWindDownNotificationsSettingUpdated.
114730
+ * @exports UserWindDownNotificationsSettingUpdated
114731
+ * @classdesc Represents a UserWindDownNotificationsSettingUpdated.
114732
+ * @implements IUserWindDownNotificationsSettingUpdated
114733
+ * @constructor
114734
+ * @param {IUserWindDownNotificationsSettingUpdated=} [properties] Properties to set
114735
+ */
114736
+ function UserWindDownNotificationsSettingUpdated(properties) {
114737
+ if (properties)
114738
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
114739
+ if (properties[keys[i]] != null)
114740
+ this[keys[i]] = properties[keys[i]];
114741
+ }
114742
+
114743
+ /**
114744
+ * UserWindDownNotificationsSettingUpdated userId.
114745
+ * @member {string} userId
114746
+ * @memberof UserWindDownNotificationsSettingUpdated
114747
+ * @instance
114748
+ */
114749
+ UserWindDownNotificationsSettingUpdated.prototype.userId = "";
114750
+
114751
+ /**
114752
+ * UserWindDownNotificationsSettingUpdated isEnabled.
114753
+ * @member {boolean} isEnabled
114754
+ * @memberof UserWindDownNotificationsSettingUpdated
114755
+ * @instance
114756
+ */
114757
+ UserWindDownNotificationsSettingUpdated.prototype.isEnabled = false;
114758
+
114759
+ /**
114760
+ * Creates a new UserWindDownNotificationsSettingUpdated instance using the specified properties.
114761
+ * @function create
114762
+ * @memberof UserWindDownNotificationsSettingUpdated
114763
+ * @static
114764
+ * @param {IUserWindDownNotificationsSettingUpdated=} [properties] Properties to set
114765
+ * @returns {UserWindDownNotificationsSettingUpdated} UserWindDownNotificationsSettingUpdated instance
114766
+ */
114767
+ UserWindDownNotificationsSettingUpdated.create = function create(properties) {
114768
+ return new UserWindDownNotificationsSettingUpdated(properties);
114769
+ };
114770
+
114771
+ /**
114772
+ * Encodes the specified UserWindDownNotificationsSettingUpdated message. Does not implicitly {@link UserWindDownNotificationsSettingUpdated.verify|verify} messages.
114773
+ * @function encode
114774
+ * @memberof UserWindDownNotificationsSettingUpdated
114775
+ * @static
114776
+ * @param {IUserWindDownNotificationsSettingUpdated} message UserWindDownNotificationsSettingUpdated message or plain object to encode
114777
+ * @param {$protobuf.Writer} [writer] Writer to encode to
114778
+ * @returns {$protobuf.Writer} Writer
114779
+ */
114780
+ UserWindDownNotificationsSettingUpdated.encode = function encode(message, writer) {
114781
+ if (!writer)
114782
+ writer = $Writer.create();
114783
+ if (message.userId != null && message.hasOwnProperty("userId"))
114784
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.userId);
114785
+ if (message.isEnabled != null && message.hasOwnProperty("isEnabled"))
114786
+ writer.uint32(/* id 2, wireType 0 =*/16).bool(message.isEnabled);
114787
+ return writer;
114788
+ };
114789
+
114790
+ /**
114791
+ * Encodes the specified UserWindDownNotificationsSettingUpdated message, length delimited. Does not implicitly {@link UserWindDownNotificationsSettingUpdated.verify|verify} messages.
114792
+ * @function encodeDelimited
114793
+ * @memberof UserWindDownNotificationsSettingUpdated
114794
+ * @static
114795
+ * @param {IUserWindDownNotificationsSettingUpdated} message UserWindDownNotificationsSettingUpdated message or plain object to encode
114796
+ * @param {$protobuf.Writer} [writer] Writer to encode to
114797
+ * @returns {$protobuf.Writer} Writer
114798
+ */
114799
+ UserWindDownNotificationsSettingUpdated.encodeDelimited = function encodeDelimited(message, writer) {
114800
+ return this.encode(message, writer).ldelim();
114801
+ };
114802
+
114803
+ /**
114804
+ * Decodes a UserWindDownNotificationsSettingUpdated message from the specified reader or buffer.
114805
+ * @function decode
114806
+ * @memberof UserWindDownNotificationsSettingUpdated
114807
+ * @static
114808
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
114809
+ * @param {number} [length] Message length if known beforehand
114810
+ * @returns {UserWindDownNotificationsSettingUpdated} UserWindDownNotificationsSettingUpdated
114811
+ * @throws {Error} If the payload is not a reader or valid buffer
114812
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
114813
+ */
114814
+ UserWindDownNotificationsSettingUpdated.decode = function decode(reader, length) {
114815
+ if (!(reader instanceof $Reader))
114816
+ reader = $Reader.create(reader);
114817
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.UserWindDownNotificationsSettingUpdated();
114818
+ while (reader.pos < end) {
114819
+ var tag = reader.uint32();
114820
+ switch (tag >>> 3) {
114821
+ case 1:
114822
+ message.userId = reader.string();
114823
+ break;
114824
+ case 2:
114825
+ message.isEnabled = reader.bool();
114826
+ break;
114827
+ default:
114828
+ reader.skipType(tag & 7);
114829
+ break;
114830
+ }
114831
+ }
114832
+ return message;
114833
+ };
114834
+
114835
+ /**
114836
+ * Decodes a UserWindDownNotificationsSettingUpdated message from the specified reader or buffer, length delimited.
114837
+ * @function decodeDelimited
114838
+ * @memberof UserWindDownNotificationsSettingUpdated
114839
+ * @static
114840
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
114841
+ * @returns {UserWindDownNotificationsSettingUpdated} UserWindDownNotificationsSettingUpdated
114842
+ * @throws {Error} If the payload is not a reader or valid buffer
114843
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
114844
+ */
114845
+ UserWindDownNotificationsSettingUpdated.decodeDelimited = function decodeDelimited(reader) {
114846
+ if (!(reader instanceof $Reader))
114847
+ reader = new $Reader(reader);
114848
+ return this.decode(reader, reader.uint32());
114849
+ };
114850
+
114851
+ /**
114852
+ * Verifies a UserWindDownNotificationsSettingUpdated message.
114853
+ * @function verify
114854
+ * @memberof UserWindDownNotificationsSettingUpdated
114855
+ * @static
114856
+ * @param {Object.<string,*>} message Plain object to verify
114857
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
114858
+ */
114859
+ UserWindDownNotificationsSettingUpdated.verify = function verify(message) {
114860
+ if (typeof message !== "object" || message === null)
114861
+ return "object expected";
114862
+ if (message.userId != null && message.hasOwnProperty("userId"))
114863
+ if (!$util.isString(message.userId))
114864
+ return "userId: string expected";
114865
+ if (message.isEnabled != null && message.hasOwnProperty("isEnabled"))
114866
+ if (typeof message.isEnabled !== "boolean")
114867
+ return "isEnabled: boolean expected";
114868
+ return null;
114869
+ };
114870
+
114871
+ /**
114872
+ * Creates a UserWindDownNotificationsSettingUpdated message from a plain object. Also converts values to their respective internal types.
114873
+ * @function fromObject
114874
+ * @memberof UserWindDownNotificationsSettingUpdated
114875
+ * @static
114876
+ * @param {Object.<string,*>} object Plain object
114877
+ * @returns {UserWindDownNotificationsSettingUpdated} UserWindDownNotificationsSettingUpdated
114878
+ */
114879
+ UserWindDownNotificationsSettingUpdated.fromObject = function fromObject(object) {
114880
+ if (object instanceof $root.UserWindDownNotificationsSettingUpdated)
114881
+ return object;
114882
+ var message = new $root.UserWindDownNotificationsSettingUpdated();
114883
+ if (object.userId != null)
114884
+ message.userId = String(object.userId);
114885
+ if (object.isEnabled != null)
114886
+ message.isEnabled = Boolean(object.isEnabled);
114887
+ return message;
114888
+ };
114889
+
114890
+ /**
114891
+ * Creates a plain object from a UserWindDownNotificationsSettingUpdated message. Also converts values to other types if specified.
114892
+ * @function toObject
114893
+ * @memberof UserWindDownNotificationsSettingUpdated
114894
+ * @static
114895
+ * @param {UserWindDownNotificationsSettingUpdated} message UserWindDownNotificationsSettingUpdated
114896
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
114897
+ * @returns {Object.<string,*>} Plain object
114898
+ */
114899
+ UserWindDownNotificationsSettingUpdated.toObject = function toObject(message, options) {
114900
+ if (!options)
114901
+ options = {};
114902
+ var object = {};
114903
+ if (options.defaults) {
114904
+ object.userId = "";
114905
+ object.isEnabled = false;
114906
+ }
114907
+ if (message.userId != null && message.hasOwnProperty("userId"))
114908
+ object.userId = message.userId;
114909
+ if (message.isEnabled != null && message.hasOwnProperty("isEnabled"))
114910
+ object.isEnabled = message.isEnabled;
114911
+ return object;
114912
+ };
114913
+
114914
+ /**
114915
+ * Converts this UserWindDownNotificationsSettingUpdated to JSON.
114916
+ * @function toJSON
114917
+ * @memberof UserWindDownNotificationsSettingUpdated
114918
+ * @instance
114919
+ * @returns {Object.<string,*>} JSON object
114920
+ */
114921
+ UserWindDownNotificationsSettingUpdated.prototype.toJSON = function toJSON() {
114922
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
114923
+ };
114924
+
114925
+ return UserWindDownNotificationsSettingUpdated;
114926
+ })();
114927
+
114508
114928
  $root.VirginPulseAccountLinked = (function() {
114509
114929
 
114510
114930
  /**
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.302.0"
19
+ "version": "1.303.0"
20
20
  }