@headspace/protos-events 1.809.0 → 1.811.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
@@ -89805,6 +89805,143 @@ export namespace PartnerSignalStateAssigned {
89805
89805
  type $Shape = PartnerSignalStateAssigned.$Properties;
89806
89806
  }
89807
89807
 
89808
+ /**
89809
+ * Properties of a PartnerSignalWindDownScheduled.
89810
+ * @deprecated Use PartnerSignalWindDownScheduled.$Properties instead.
89811
+ */
89812
+ export interface IPartnerSignalWindDownScheduled extends PartnerSignalWindDownScheduled.$Properties {
89813
+ }
89814
+
89815
+ /**
89816
+ * Published when a user submits a new night of Apple HealthKit sleep data and has enough history
89817
+ * (≥1 prior night with a recorded sleep start time) to compute a personalized wind-down reminder time.
89818
+ * Used to schedule a push notification 30 minutes before the user's average historical bedtime.
89819
+ */
89820
+ export class PartnerSignalWindDownScheduled {
89821
+
89822
+ /**
89823
+ * Constructs a new PartnerSignalWindDownScheduled.
89824
+ * @param [properties] Properties to set
89825
+ */
89826
+ constructor(properties?: PartnerSignalWindDownScheduled.$Properties);
89827
+
89828
+ /** Unknown fields preserved while decoding */
89829
+ $unknowns?: Uint8Array[];
89830
+
89831
+ /** Headspace user that should receive the wind-down push notification (e.g. HSUSER_ABC123). */
89832
+ hsUserId: string;
89833
+
89834
+ /**
89835
+ * ISO 8601 UTC datetime at which the wind-down push should be delivered.
89836
+ * Computed as the circular mean of the user's recent sleep start times minus 30 minutes,
89837
+ * projected onto today's date (e.g. "2026-05-30T21:30:00.000Z").
89838
+ * Only set if this time is still in the future at the moment of publishing.
89839
+ */
89840
+ scheduledTimeIso: string;
89841
+
89842
+ /**
89843
+ * Creates a new PartnerSignalWindDownScheduled instance using the specified properties.
89844
+ * @param [properties] Properties to set
89845
+ * @returns PartnerSignalWindDownScheduled instance
89846
+ */
89847
+ static create(properties: PartnerSignalWindDownScheduled.$Shape): PartnerSignalWindDownScheduled & PartnerSignalWindDownScheduled.$Shape;
89848
+ static create(properties?: PartnerSignalWindDownScheduled.$Properties): PartnerSignalWindDownScheduled;
89849
+
89850
+ /**
89851
+ * Encodes the specified PartnerSignalWindDownScheduled message. Does not implicitly {@link PartnerSignalWindDownScheduled.verify|verify} messages.
89852
+ * @param message PartnerSignalWindDownScheduled message or plain object to encode
89853
+ * @param [writer] Writer to encode to
89854
+ * @returns Writer
89855
+ */
89856
+ static encode(message: PartnerSignalWindDownScheduled.$Properties, writer?: $protobuf.Writer): $protobuf.Writer;
89857
+
89858
+ /**
89859
+ * Encodes the specified PartnerSignalWindDownScheduled message, length delimited. Does not implicitly {@link PartnerSignalWindDownScheduled.verify|verify} messages.
89860
+ * @param message PartnerSignalWindDownScheduled message or plain object to encode
89861
+ * @param [writer] Writer to encode to
89862
+ * @returns Writer
89863
+ */
89864
+ static encodeDelimited(message: PartnerSignalWindDownScheduled.$Properties, writer?: $protobuf.Writer): $protobuf.Writer;
89865
+
89866
+ /**
89867
+ * Decodes a PartnerSignalWindDownScheduled message from the specified reader or buffer.
89868
+ * @param reader Reader or buffer to decode from
89869
+ * @param [length] Message length if known beforehand
89870
+ * @returns {PartnerSignalWindDownScheduled & PartnerSignalWindDownScheduled.$Shape} PartnerSignalWindDownScheduled
89871
+ * @throws {Error} If the payload is not a reader or valid buffer
89872
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
89873
+ */
89874
+ static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): PartnerSignalWindDownScheduled & PartnerSignalWindDownScheduled.$Shape;
89875
+
89876
+ /**
89877
+ * Decodes a PartnerSignalWindDownScheduled message from the specified reader or buffer, length delimited.
89878
+ * @param reader Reader or buffer to decode from
89879
+ * @returns {PartnerSignalWindDownScheduled & PartnerSignalWindDownScheduled.$Shape} PartnerSignalWindDownScheduled
89880
+ * @throws {Error} If the payload is not a reader or valid buffer
89881
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
89882
+ */
89883
+ static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): PartnerSignalWindDownScheduled & PartnerSignalWindDownScheduled.$Shape;
89884
+
89885
+ /**
89886
+ * Verifies a PartnerSignalWindDownScheduled message.
89887
+ * @param message Plain object to verify
89888
+ * @returns `null` if valid, otherwise the reason why it is not
89889
+ */
89890
+ static verify(message: { [k: string]: any }): (string|null);
89891
+
89892
+ /**
89893
+ * Creates a PartnerSignalWindDownScheduled message from a plain object. Also converts values to their respective internal types.
89894
+ * @param object Plain object
89895
+ * @returns PartnerSignalWindDownScheduled
89896
+ */
89897
+ static fromObject(object: { [k: string]: any }): PartnerSignalWindDownScheduled;
89898
+
89899
+ /**
89900
+ * Creates a plain object from a PartnerSignalWindDownScheduled message. Also converts values to other types if specified.
89901
+ * @param message PartnerSignalWindDownScheduled
89902
+ * @param [options] Conversion options
89903
+ * @returns Plain object
89904
+ */
89905
+ static toObject(message: PartnerSignalWindDownScheduled, options?: $protobuf.IConversionOptions): { [k: string]: any };
89906
+
89907
+ /**
89908
+ * Converts this PartnerSignalWindDownScheduled to JSON.
89909
+ * @returns JSON object
89910
+ */
89911
+ toJSON(): { [k: string]: any };
89912
+
89913
+ /**
89914
+ * Gets the type url for PartnerSignalWindDownScheduled
89915
+ * @param [prefix] Custom type url prefix, defaults to `"type.googleapis.com"`
89916
+ * @returns The type url
89917
+ */
89918
+ static getTypeUrl(prefix?: string): string;
89919
+ }
89920
+
89921
+ export namespace PartnerSignalWindDownScheduled {
89922
+
89923
+ /** Properties of a PartnerSignalWindDownScheduled. */
89924
+ interface $Properties {
89925
+
89926
+ /** Headspace user that should receive the wind-down push notification (e.g. HSUSER_ABC123). */
89927
+ hsUserId?: (string|null);
89928
+
89929
+ /**
89930
+ * ISO 8601 UTC datetime at which the wind-down push should be delivered.
89931
+ * Computed as the circular mean of the user's recent sleep start times minus 30 minutes,
89932
+ * projected onto today's date (e.g. "2026-05-30T21:30:00.000Z").
89933
+ * Only set if this time is still in the future at the moment of publishing.
89934
+ */
89935
+ scheduledTimeIso?: (string|null);
89936
+
89937
+ /** Unknown fields preserved while decoding */
89938
+ $unknowns?: Uint8Array[];
89939
+ }
89940
+
89941
+ /** Shape of a PartnerSignalWindDownScheduled. */
89942
+ type $Shape = PartnerSignalWindDownScheduled.$Properties;
89943
+ }
89944
+
89808
89945
  /**
89809
89946
  * Properties of a PHQAssessmentAssigned.
89810
89947
  * @deprecated Use PHQAssessmentAssigned.$Properties instead.
@@ -103372,6 +103509,133 @@ export namespace UserAppleWatchNotificationSettingUpdated {
103372
103509
  type $Shape = UserAppleWatchNotificationSettingUpdated.$Properties;
103373
103510
  }
103374
103511
 
103512
+ /**
103513
+ * Properties of a UserAppleHealthSleepNudgeSettingUpdated.
103514
+ * @deprecated Use UserAppleHealthSleepNudgeSettingUpdated.$Properties instead.
103515
+ */
103516
+ export interface IUserAppleHealthSleepNudgeSettingUpdated extends UserAppleHealthSleepNudgeSettingUpdated.$Properties {
103517
+ }
103518
+
103519
+ /**
103520
+ * Sent when a user updates their Apple Health sleep nudge notification setting.
103521
+ * Responsible team: Consumer Growth
103522
+ *
103523
+ */
103524
+ export class UserAppleHealthSleepNudgeSettingUpdated {
103525
+
103526
+ /**
103527
+ * Constructs a new UserAppleHealthSleepNudgeSettingUpdated.
103528
+ * @param [properties] Properties to set
103529
+ */
103530
+ constructor(properties?: UserAppleHealthSleepNudgeSettingUpdated.$Properties);
103531
+
103532
+ /** Unknown fields preserved while decoding */
103533
+ $unknowns?: Uint8Array[];
103534
+
103535
+ /** UserAppleHealthSleepNudgeSettingUpdated hsUserId. */
103536
+ hsUserId: string;
103537
+
103538
+ /** UserAppleHealthSleepNudgeSettingUpdated isEnabled. */
103539
+ isEnabled: boolean;
103540
+
103541
+ /**
103542
+ * Creates a new UserAppleHealthSleepNudgeSettingUpdated instance using the specified properties.
103543
+ * @param [properties] Properties to set
103544
+ * @returns UserAppleHealthSleepNudgeSettingUpdated instance
103545
+ */
103546
+ static create(properties: UserAppleHealthSleepNudgeSettingUpdated.$Shape): UserAppleHealthSleepNudgeSettingUpdated & UserAppleHealthSleepNudgeSettingUpdated.$Shape;
103547
+ static create(properties?: UserAppleHealthSleepNudgeSettingUpdated.$Properties): UserAppleHealthSleepNudgeSettingUpdated;
103548
+
103549
+ /**
103550
+ * Encodes the specified UserAppleHealthSleepNudgeSettingUpdated message. Does not implicitly {@link UserAppleHealthSleepNudgeSettingUpdated.verify|verify} messages.
103551
+ * @param message UserAppleHealthSleepNudgeSettingUpdated message or plain object to encode
103552
+ * @param [writer] Writer to encode to
103553
+ * @returns Writer
103554
+ */
103555
+ static encode(message: UserAppleHealthSleepNudgeSettingUpdated.$Properties, writer?: $protobuf.Writer): $protobuf.Writer;
103556
+
103557
+ /**
103558
+ * Encodes the specified UserAppleHealthSleepNudgeSettingUpdated message, length delimited. Does not implicitly {@link UserAppleHealthSleepNudgeSettingUpdated.verify|verify} messages.
103559
+ * @param message UserAppleHealthSleepNudgeSettingUpdated message or plain object to encode
103560
+ * @param [writer] Writer to encode to
103561
+ * @returns Writer
103562
+ */
103563
+ static encodeDelimited(message: UserAppleHealthSleepNudgeSettingUpdated.$Properties, writer?: $protobuf.Writer): $protobuf.Writer;
103564
+
103565
+ /**
103566
+ * Decodes a UserAppleHealthSleepNudgeSettingUpdated message from the specified reader or buffer.
103567
+ * @param reader Reader or buffer to decode from
103568
+ * @param [length] Message length if known beforehand
103569
+ * @returns {UserAppleHealthSleepNudgeSettingUpdated & UserAppleHealthSleepNudgeSettingUpdated.$Shape} UserAppleHealthSleepNudgeSettingUpdated
103570
+ * @throws {Error} If the payload is not a reader or valid buffer
103571
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
103572
+ */
103573
+ static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): UserAppleHealthSleepNudgeSettingUpdated & UserAppleHealthSleepNudgeSettingUpdated.$Shape;
103574
+
103575
+ /**
103576
+ * Decodes a UserAppleHealthSleepNudgeSettingUpdated message from the specified reader or buffer, length delimited.
103577
+ * @param reader Reader or buffer to decode from
103578
+ * @returns {UserAppleHealthSleepNudgeSettingUpdated & UserAppleHealthSleepNudgeSettingUpdated.$Shape} UserAppleHealthSleepNudgeSettingUpdated
103579
+ * @throws {Error} If the payload is not a reader or valid buffer
103580
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
103581
+ */
103582
+ static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): UserAppleHealthSleepNudgeSettingUpdated & UserAppleHealthSleepNudgeSettingUpdated.$Shape;
103583
+
103584
+ /**
103585
+ * Verifies a UserAppleHealthSleepNudgeSettingUpdated message.
103586
+ * @param message Plain object to verify
103587
+ * @returns `null` if valid, otherwise the reason why it is not
103588
+ */
103589
+ static verify(message: { [k: string]: any }): (string|null);
103590
+
103591
+ /**
103592
+ * Creates a UserAppleHealthSleepNudgeSettingUpdated message from a plain object. Also converts values to their respective internal types.
103593
+ * @param object Plain object
103594
+ * @returns UserAppleHealthSleepNudgeSettingUpdated
103595
+ */
103596
+ static fromObject(object: { [k: string]: any }): UserAppleHealthSleepNudgeSettingUpdated;
103597
+
103598
+ /**
103599
+ * Creates a plain object from a UserAppleHealthSleepNudgeSettingUpdated message. Also converts values to other types if specified.
103600
+ * @param message UserAppleHealthSleepNudgeSettingUpdated
103601
+ * @param [options] Conversion options
103602
+ * @returns Plain object
103603
+ */
103604
+ static toObject(message: UserAppleHealthSleepNudgeSettingUpdated, options?: $protobuf.IConversionOptions): { [k: string]: any };
103605
+
103606
+ /**
103607
+ * Converts this UserAppleHealthSleepNudgeSettingUpdated to JSON.
103608
+ * @returns JSON object
103609
+ */
103610
+ toJSON(): { [k: string]: any };
103611
+
103612
+ /**
103613
+ * Gets the type url for UserAppleHealthSleepNudgeSettingUpdated
103614
+ * @param [prefix] Custom type url prefix, defaults to `"type.googleapis.com"`
103615
+ * @returns The type url
103616
+ */
103617
+ static getTypeUrl(prefix?: string): string;
103618
+ }
103619
+
103620
+ export namespace UserAppleHealthSleepNudgeSettingUpdated {
103621
+
103622
+ /** Properties of a UserAppleHealthSleepNudgeSettingUpdated. */
103623
+ interface $Properties {
103624
+
103625
+ /** UserAppleHealthSleepNudgeSettingUpdated hsUserId */
103626
+ hsUserId?: (string|null);
103627
+
103628
+ /** UserAppleHealthSleepNudgeSettingUpdated isEnabled */
103629
+ isEnabled?: (boolean|null);
103630
+
103631
+ /** Unknown fields preserved while decoding */
103632
+ $unknowns?: Uint8Array[];
103633
+ }
103634
+
103635
+ /** Shape of a UserAppleHealthSleepNudgeSettingUpdated. */
103636
+ type $Shape = UserAppleHealthSleepNudgeSettingUpdated.$Properties;
103637
+ }
103638
+
103375
103639
  /**
103376
103640
  * Properties of a UserOuraNotificationSettingUpdated.
103377
103641
  * @deprecated Use UserOuraNotificationSettingUpdated.$Properties instead.
@@ -103775,6 +104039,139 @@ export namespace UserDeletionRevoked {
103775
104039
  type $Shape = UserDeletionRevoked.$Properties;
103776
104040
  }
103777
104041
 
104042
+ /**
104043
+ * Properties of a UserAppleHealthConnectionSettingUpdated.
104044
+ * @deprecated Use UserAppleHealthConnectionSettingUpdated.$Properties instead.
104045
+ */
104046
+ export interface IUserAppleHealthConnectionSettingUpdated extends UserAppleHealthConnectionSettingUpdated.$Properties {
104047
+ }
104048
+
104049
+ /**
104050
+ * Sent when a user's Apple Health connection setting is updated.
104051
+ * Responsible team: Consumer Growth
104052
+ *
104053
+ */
104054
+ export class UserAppleHealthConnectionSettingUpdated {
104055
+
104056
+ /**
104057
+ * Constructs a new UserAppleHealthConnectionSettingUpdated.
104058
+ * @param [properties] Properties to set
104059
+ */
104060
+ constructor(properties?: UserAppleHealthConnectionSettingUpdated.$Properties);
104061
+
104062
+ /** Unknown fields preserved while decoding */
104063
+ $unknowns?: Uint8Array[];
104064
+
104065
+ /** UserAppleHealthConnectionSettingUpdated hsUserId. */
104066
+ hsUserId: string;
104067
+
104068
+ /** UserAppleHealthConnectionSettingUpdated settingValue. */
104069
+ settingValue: string;
104070
+
104071
+ /** UserAppleHealthConnectionSettingUpdated updatedAt. */
104072
+ updatedAt: (number|Long);
104073
+
104074
+ /**
104075
+ * Creates a new UserAppleHealthConnectionSettingUpdated instance using the specified properties.
104076
+ * @param [properties] Properties to set
104077
+ * @returns UserAppleHealthConnectionSettingUpdated instance
104078
+ */
104079
+ static create(properties: UserAppleHealthConnectionSettingUpdated.$Shape): UserAppleHealthConnectionSettingUpdated & UserAppleHealthConnectionSettingUpdated.$Shape;
104080
+ static create(properties?: UserAppleHealthConnectionSettingUpdated.$Properties): UserAppleHealthConnectionSettingUpdated;
104081
+
104082
+ /**
104083
+ * Encodes the specified UserAppleHealthConnectionSettingUpdated message. Does not implicitly {@link UserAppleHealthConnectionSettingUpdated.verify|verify} messages.
104084
+ * @param message UserAppleHealthConnectionSettingUpdated message or plain object to encode
104085
+ * @param [writer] Writer to encode to
104086
+ * @returns Writer
104087
+ */
104088
+ static encode(message: UserAppleHealthConnectionSettingUpdated.$Properties, writer?: $protobuf.Writer): $protobuf.Writer;
104089
+
104090
+ /**
104091
+ * Encodes the specified UserAppleHealthConnectionSettingUpdated message, length delimited. Does not implicitly {@link UserAppleHealthConnectionSettingUpdated.verify|verify} messages.
104092
+ * @param message UserAppleHealthConnectionSettingUpdated message or plain object to encode
104093
+ * @param [writer] Writer to encode to
104094
+ * @returns Writer
104095
+ */
104096
+ static encodeDelimited(message: UserAppleHealthConnectionSettingUpdated.$Properties, writer?: $protobuf.Writer): $protobuf.Writer;
104097
+
104098
+ /**
104099
+ * Decodes a UserAppleHealthConnectionSettingUpdated message from the specified reader or buffer.
104100
+ * @param reader Reader or buffer to decode from
104101
+ * @param [length] Message length if known beforehand
104102
+ * @returns {UserAppleHealthConnectionSettingUpdated & UserAppleHealthConnectionSettingUpdated.$Shape} UserAppleHealthConnectionSettingUpdated
104103
+ * @throws {Error} If the payload is not a reader or valid buffer
104104
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
104105
+ */
104106
+ static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): UserAppleHealthConnectionSettingUpdated & UserAppleHealthConnectionSettingUpdated.$Shape;
104107
+
104108
+ /**
104109
+ * Decodes a UserAppleHealthConnectionSettingUpdated message from the specified reader or buffer, length delimited.
104110
+ * @param reader Reader or buffer to decode from
104111
+ * @returns {UserAppleHealthConnectionSettingUpdated & UserAppleHealthConnectionSettingUpdated.$Shape} UserAppleHealthConnectionSettingUpdated
104112
+ * @throws {Error} If the payload is not a reader or valid buffer
104113
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
104114
+ */
104115
+ static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): UserAppleHealthConnectionSettingUpdated & UserAppleHealthConnectionSettingUpdated.$Shape;
104116
+
104117
+ /**
104118
+ * Verifies a UserAppleHealthConnectionSettingUpdated message.
104119
+ * @param message Plain object to verify
104120
+ * @returns `null` if valid, otherwise the reason why it is not
104121
+ */
104122
+ static verify(message: { [k: string]: any }): (string|null);
104123
+
104124
+ /**
104125
+ * Creates a UserAppleHealthConnectionSettingUpdated message from a plain object. Also converts values to their respective internal types.
104126
+ * @param object Plain object
104127
+ * @returns UserAppleHealthConnectionSettingUpdated
104128
+ */
104129
+ static fromObject(object: { [k: string]: any }): UserAppleHealthConnectionSettingUpdated;
104130
+
104131
+ /**
104132
+ * Creates a plain object from a UserAppleHealthConnectionSettingUpdated message. Also converts values to other types if specified.
104133
+ * @param message UserAppleHealthConnectionSettingUpdated
104134
+ * @param [options] Conversion options
104135
+ * @returns Plain object
104136
+ */
104137
+ static toObject(message: UserAppleHealthConnectionSettingUpdated, options?: $protobuf.IConversionOptions): { [k: string]: any };
104138
+
104139
+ /**
104140
+ * Converts this UserAppleHealthConnectionSettingUpdated to JSON.
104141
+ * @returns JSON object
104142
+ */
104143
+ toJSON(): { [k: string]: any };
104144
+
104145
+ /**
104146
+ * Gets the type url for UserAppleHealthConnectionSettingUpdated
104147
+ * @param [prefix] Custom type url prefix, defaults to `"type.googleapis.com"`
104148
+ * @returns The type url
104149
+ */
104150
+ static getTypeUrl(prefix?: string): string;
104151
+ }
104152
+
104153
+ export namespace UserAppleHealthConnectionSettingUpdated {
104154
+
104155
+ /** Properties of a UserAppleHealthConnectionSettingUpdated. */
104156
+ interface $Properties {
104157
+
104158
+ /** UserAppleHealthConnectionSettingUpdated hsUserId */
104159
+ hsUserId?: (string|null);
104160
+
104161
+ /** UserAppleHealthConnectionSettingUpdated settingValue */
104162
+ settingValue?: (string|null);
104163
+
104164
+ /** UserAppleHealthConnectionSettingUpdated updatedAt */
104165
+ updatedAt?: (number|Long|null);
104166
+
104167
+ /** Unknown fields preserved while decoding */
104168
+ $unknowns?: Uint8Array[];
104169
+ }
104170
+
104171
+ /** Shape of a UserAppleHealthConnectionSettingUpdated. */
104172
+ type $Shape = UserAppleHealthConnectionSettingUpdated.$Properties;
104173
+ }
104174
+
103778
104175
  /**
103779
104176
  * User Deletion Request Origin
103780
104177
  *
package/lib/index.js CHANGED
@@ -263439,6 +263439,292 @@ $root.PartnerSignalStateAssigned = (function() {
263439
263439
  return PartnerSignalStateAssigned;
263440
263440
  })();
263441
263441
 
263442
+ $root.PartnerSignalWindDownScheduled = (function() {
263443
+
263444
+ /**
263445
+ * Properties of a PartnerSignalWindDownScheduled.
263446
+ * @typedef {Object} PartnerSignalWindDownScheduled.$Properties
263447
+ * @property {string|null} [hsUserId] Headspace user that should receive the wind-down push notification (e.g. HSUSER_ABC123).
263448
+ * @property {string|null} [scheduledTimeIso] ISO 8601 UTC datetime at which the wind-down push should be delivered.
263449
+ * Computed as the circular mean of the user's recent sleep start times minus 30 minutes,
263450
+ * projected onto today's date (e.g. "2026-05-30T21:30:00.000Z").
263451
+ * Only set if this time is still in the future at the moment of publishing.
263452
+ * @property {Array.<Uint8Array>} [$unknowns] Unknown fields preserved while decoding
263453
+ */
263454
+
263455
+ /**
263456
+ * Properties of a PartnerSignalWindDownScheduled.
263457
+ * @name IPartnerSignalWindDownScheduled
263458
+ * @interface IPartnerSignalWindDownScheduled
263459
+ * @augments PartnerSignalWindDownScheduled.$Properties
263460
+ * @deprecated Use PartnerSignalWindDownScheduled.$Properties instead.
263461
+ */
263462
+
263463
+ /**
263464
+ * Shape of a PartnerSignalWindDownScheduled.
263465
+ * @typedef {PartnerSignalWindDownScheduled.$Properties} PartnerSignalWindDownScheduled.$Shape
263466
+ */
263467
+
263468
+ /**
263469
+ * Constructs a new PartnerSignalWindDownScheduled.
263470
+ * @name PartnerSignalWindDownScheduled
263471
+ * @classdesc Published when a user submits a new night of Apple HealthKit sleep data and has enough history
263472
+ * (≥1 prior night with a recorded sleep start time) to compute a personalized wind-down reminder time.
263473
+ * Used to schedule a push notification 30 minutes before the user's average historical bedtime.
263474
+ * @constructor
263475
+ * @param {PartnerSignalWindDownScheduled.$Properties=} [properties] Properties to set
263476
+ * @property {Array.<Uint8Array>} [$unknowns] Unknown fields preserved while decoding
263477
+ */
263478
+ function PartnerSignalWindDownScheduled(properties) {
263479
+ if (properties)
263480
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
263481
+ if (properties[keys[i]] != null && keys[i] !== "__proto__")
263482
+ this[keys[i]] = properties[keys[i]];
263483
+ }
263484
+
263485
+ /**
263486
+ * Headspace user that should receive the wind-down push notification (e.g. HSUSER_ABC123).
263487
+ * @member {string} hsUserId
263488
+ * @memberof PartnerSignalWindDownScheduled
263489
+ * @instance
263490
+ */
263491
+ PartnerSignalWindDownScheduled.prototype.hsUserId = "";
263492
+
263493
+ /**
263494
+ * ISO 8601 UTC datetime at which the wind-down push should be delivered.
263495
+ * Computed as the circular mean of the user's recent sleep start times minus 30 minutes,
263496
+ * projected onto today's date (e.g. "2026-05-30T21:30:00.000Z").
263497
+ * Only set if this time is still in the future at the moment of publishing.
263498
+ * @member {string} scheduledTimeIso
263499
+ * @memberof PartnerSignalWindDownScheduled
263500
+ * @instance
263501
+ */
263502
+ PartnerSignalWindDownScheduled.prototype.scheduledTimeIso = "";
263503
+
263504
+ /**
263505
+ * Creates a new PartnerSignalWindDownScheduled instance using the specified properties.
263506
+ * @function create
263507
+ * @memberof PartnerSignalWindDownScheduled
263508
+ * @static
263509
+ * @param {PartnerSignalWindDownScheduled.$Properties=} [properties] Properties to set
263510
+ * @returns {PartnerSignalWindDownScheduled} PartnerSignalWindDownScheduled instance
263511
+ * @type {{
263512
+ * (properties: PartnerSignalWindDownScheduled.$Shape): PartnerSignalWindDownScheduled & PartnerSignalWindDownScheduled.$Shape;
263513
+ * (properties?: PartnerSignalWindDownScheduled.$Properties): PartnerSignalWindDownScheduled;
263514
+ * }}
263515
+ */
263516
+ PartnerSignalWindDownScheduled.create = function create(properties) {
263517
+ return new PartnerSignalWindDownScheduled(properties);
263518
+ };
263519
+
263520
+ /**
263521
+ * Encodes the specified PartnerSignalWindDownScheduled message. Does not implicitly {@link PartnerSignalWindDownScheduled.verify|verify} messages.
263522
+ * @function encode
263523
+ * @memberof PartnerSignalWindDownScheduled
263524
+ * @static
263525
+ * @param {PartnerSignalWindDownScheduled.$Properties} message PartnerSignalWindDownScheduled message or plain object to encode
263526
+ * @param {$protobuf.Writer} [writer] Writer to encode to
263527
+ * @returns {$protobuf.Writer} Writer
263528
+ */
263529
+ PartnerSignalWindDownScheduled.encode = function encode(message, writer) {
263530
+ if (!writer)
263531
+ writer = $Writer.create();
263532
+ if (message.hsUserId != null && Object.hasOwnProperty.call(message, "hsUserId"))
263533
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.hsUserId);
263534
+ if (message.scheduledTimeIso != null && Object.hasOwnProperty.call(message, "scheduledTimeIso"))
263535
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.scheduledTimeIso);
263536
+ if (message.$unknowns != null && Object.hasOwnProperty.call(message, "$unknowns"))
263537
+ for (var i = 0; i < message.$unknowns.length; ++i)
263538
+ writer.raw(message.$unknowns[i]);
263539
+ return writer;
263540
+ };
263541
+
263542
+ /**
263543
+ * Encodes the specified PartnerSignalWindDownScheduled message, length delimited. Does not implicitly {@link PartnerSignalWindDownScheduled.verify|verify} messages.
263544
+ * @function encodeDelimited
263545
+ * @memberof PartnerSignalWindDownScheduled
263546
+ * @static
263547
+ * @param {PartnerSignalWindDownScheduled.$Properties} message PartnerSignalWindDownScheduled message or plain object to encode
263548
+ * @param {$protobuf.Writer} [writer] Writer to encode to
263549
+ * @returns {$protobuf.Writer} Writer
263550
+ */
263551
+ PartnerSignalWindDownScheduled.encodeDelimited = function encodeDelimited(message, writer) {
263552
+ return this.encode(message, writer).ldelim();
263553
+ };
263554
+
263555
+ /**
263556
+ * Decodes a PartnerSignalWindDownScheduled message from the specified reader or buffer.
263557
+ * @function decode
263558
+ * @memberof PartnerSignalWindDownScheduled
263559
+ * @static
263560
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
263561
+ * @param {number} [length] Message length if known beforehand
263562
+ * @returns {PartnerSignalWindDownScheduled & PartnerSignalWindDownScheduled.$Shape} PartnerSignalWindDownScheduled
263563
+ * @throws {Error} If the payload is not a reader or valid buffer
263564
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
263565
+ */
263566
+ PartnerSignalWindDownScheduled.decode = function decode(reader, length, _end, _depth, _target) {
263567
+ if (!(reader instanceof $Reader))
263568
+ reader = $Reader.create(reader);
263569
+ if (_depth === undefined)
263570
+ _depth = 0;
263571
+ if (_depth > $Reader.recursionLimit)
263572
+ throw Error("max depth exceeded");
263573
+ var end = length === undefined ? reader.len : reader.pos + length, message = _target || new $root.PartnerSignalWindDownScheduled(), value;
263574
+ while (reader.pos < end) {
263575
+ var start = reader.pos;
263576
+ var tag = reader.tag();
263577
+ if (tag === _end) {
263578
+ _end = undefined;
263579
+ break;
263580
+ }
263581
+ var wireType = tag & 7;
263582
+ switch (tag >>>= 3) {
263583
+ case 1: {
263584
+ if (wireType !== 2)
263585
+ break;
263586
+ if ((value = reader.string()).length)
263587
+ message.hsUserId = value;
263588
+ else
263589
+ delete message.hsUserId;
263590
+ continue;
263591
+ }
263592
+ case 2: {
263593
+ if (wireType !== 2)
263594
+ break;
263595
+ if ((value = reader.string()).length)
263596
+ message.scheduledTimeIso = value;
263597
+ else
263598
+ delete message.scheduledTimeIso;
263599
+ continue;
263600
+ }
263601
+ }
263602
+ reader.skipType(wireType, _depth, tag);
263603
+ $util.makeProp(message, "$unknowns", false);
263604
+ (message.$unknowns || (message.$unknowns = [])).push(reader.raw(start, reader.pos));
263605
+ }
263606
+ if (_end !== undefined)
263607
+ throw Error("missing end group");
263608
+ return message;
263609
+ };
263610
+
263611
+ /**
263612
+ * Decodes a PartnerSignalWindDownScheduled message from the specified reader or buffer, length delimited.
263613
+ * @function decodeDelimited
263614
+ * @memberof PartnerSignalWindDownScheduled
263615
+ * @static
263616
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
263617
+ * @returns {PartnerSignalWindDownScheduled & PartnerSignalWindDownScheduled.$Shape} PartnerSignalWindDownScheduled
263618
+ * @throws {Error} If the payload is not a reader or valid buffer
263619
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
263620
+ */
263621
+ PartnerSignalWindDownScheduled.decodeDelimited = function decodeDelimited(reader) {
263622
+ if (!(reader instanceof $Reader))
263623
+ reader = new $Reader(reader);
263624
+ return this.decode(reader, reader.uint32());
263625
+ };
263626
+
263627
+ /**
263628
+ * Verifies a PartnerSignalWindDownScheduled message.
263629
+ * @function verify
263630
+ * @memberof PartnerSignalWindDownScheduled
263631
+ * @static
263632
+ * @param {Object.<string,*>} message Plain object to verify
263633
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
263634
+ */
263635
+ PartnerSignalWindDownScheduled.verify = function verify(message, _depth) {
263636
+ if (typeof message !== "object" || message === null)
263637
+ return "object expected";
263638
+ if (_depth === undefined)
263639
+ _depth = 0;
263640
+ if (_depth > $util.recursionLimit)
263641
+ return "max depth exceeded";
263642
+ if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
263643
+ if (!$util.isString(message.hsUserId))
263644
+ return "hsUserId: string expected";
263645
+ if (message.scheduledTimeIso != null && message.hasOwnProperty("scheduledTimeIso"))
263646
+ if (!$util.isString(message.scheduledTimeIso))
263647
+ return "scheduledTimeIso: string expected";
263648
+ return null;
263649
+ };
263650
+
263651
+ /**
263652
+ * Creates a PartnerSignalWindDownScheduled message from a plain object. Also converts values to their respective internal types.
263653
+ * @function fromObject
263654
+ * @memberof PartnerSignalWindDownScheduled
263655
+ * @static
263656
+ * @param {Object.<string,*>} object Plain object
263657
+ * @returns {PartnerSignalWindDownScheduled} PartnerSignalWindDownScheduled
263658
+ */
263659
+ PartnerSignalWindDownScheduled.fromObject = function fromObject(object, _depth) {
263660
+ if (object instanceof $root.PartnerSignalWindDownScheduled)
263661
+ return object;
263662
+ if (_depth === undefined)
263663
+ _depth = 0;
263664
+ if (_depth > $util.recursionLimit)
263665
+ throw Error("max depth exceeded");
263666
+ var message = new $root.PartnerSignalWindDownScheduled();
263667
+ if (object.hsUserId != null)
263668
+ if (typeof object.hsUserId !== "string" || object.hsUserId.length)
263669
+ message.hsUserId = String(object.hsUserId);
263670
+ if (object.scheduledTimeIso != null)
263671
+ if (typeof object.scheduledTimeIso !== "string" || object.scheduledTimeIso.length)
263672
+ message.scheduledTimeIso = String(object.scheduledTimeIso);
263673
+ return message;
263674
+ };
263675
+
263676
+ /**
263677
+ * Creates a plain object from a PartnerSignalWindDownScheduled message. Also converts values to other types if specified.
263678
+ * @function toObject
263679
+ * @memberof PartnerSignalWindDownScheduled
263680
+ * @static
263681
+ * @param {PartnerSignalWindDownScheduled} message PartnerSignalWindDownScheduled
263682
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
263683
+ * @returns {Object.<string,*>} Plain object
263684
+ */
263685
+ PartnerSignalWindDownScheduled.toObject = function toObject(message, options) {
263686
+ if (!options)
263687
+ options = {};
263688
+ var object = {};
263689
+ if (options.defaults) {
263690
+ object.hsUserId = "";
263691
+ object.scheduledTimeIso = "";
263692
+ }
263693
+ if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
263694
+ object.hsUserId = message.hsUserId;
263695
+ if (message.scheduledTimeIso != null && message.hasOwnProperty("scheduledTimeIso"))
263696
+ object.scheduledTimeIso = message.scheduledTimeIso;
263697
+ return object;
263698
+ };
263699
+
263700
+ /**
263701
+ * Converts this PartnerSignalWindDownScheduled to JSON.
263702
+ * @function toJSON
263703
+ * @memberof PartnerSignalWindDownScheduled
263704
+ * @instance
263705
+ * @returns {Object.<string,*>} JSON object
263706
+ */
263707
+ PartnerSignalWindDownScheduled.prototype.toJSON = function toJSON() {
263708
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
263709
+ };
263710
+
263711
+ /**
263712
+ * Gets the type url for PartnerSignalWindDownScheduled
263713
+ * @function getTypeUrl
263714
+ * @memberof PartnerSignalWindDownScheduled
263715
+ * @static
263716
+ * @param {string} [prefix] Custom type url prefix, defaults to `"type.googleapis.com"`
263717
+ * @returns {string} The type url
263718
+ */
263719
+ PartnerSignalWindDownScheduled.getTypeUrl = function getTypeUrl(prefix) {
263720
+ if (prefix === undefined)
263721
+ prefix = "type.googleapis.com";
263722
+ return prefix + "/PartnerSignalWindDownScheduled";
263723
+ };
263724
+
263725
+ return PartnerSignalWindDownScheduled;
263726
+ })();
263727
+
263442
263728
  $root.PHQAssessmentAssigned = (function() {
263443
263729
 
263444
263730
  /**
@@ -303142,6 +303428,288 @@ $root.UserAppleWatchNotificationSettingUpdated = (function() {
303142
303428
  return UserAppleWatchNotificationSettingUpdated;
303143
303429
  })();
303144
303430
 
303431
+ $root.UserAppleHealthSleepNudgeSettingUpdated = (function() {
303432
+
303433
+ /**
303434
+ * Properties of a UserAppleHealthSleepNudgeSettingUpdated.
303435
+ * @typedef {Object} UserAppleHealthSleepNudgeSettingUpdated.$Properties
303436
+ * @property {string|null} [hsUserId] UserAppleHealthSleepNudgeSettingUpdated hsUserId
303437
+ * @property {boolean|null} [isEnabled] UserAppleHealthSleepNudgeSettingUpdated isEnabled
303438
+ * @property {Array.<Uint8Array>} [$unknowns] Unknown fields preserved while decoding
303439
+ */
303440
+
303441
+ /**
303442
+ * Properties of a UserAppleHealthSleepNudgeSettingUpdated.
303443
+ * @name IUserAppleHealthSleepNudgeSettingUpdated
303444
+ * @interface IUserAppleHealthSleepNudgeSettingUpdated
303445
+ * @augments UserAppleHealthSleepNudgeSettingUpdated.$Properties
303446
+ * @deprecated Use UserAppleHealthSleepNudgeSettingUpdated.$Properties instead.
303447
+ */
303448
+
303449
+ /**
303450
+ * Shape of a UserAppleHealthSleepNudgeSettingUpdated.
303451
+ * @typedef {UserAppleHealthSleepNudgeSettingUpdated.$Properties} UserAppleHealthSleepNudgeSettingUpdated.$Shape
303452
+ */
303453
+
303454
+ /**
303455
+ * Constructs a new UserAppleHealthSleepNudgeSettingUpdated.
303456
+ * @name UserAppleHealthSleepNudgeSettingUpdated
303457
+ * @classdesc Sent when a user updates their Apple Health sleep nudge notification setting.
303458
+ * Responsible team: Consumer Growth
303459
+ *
303460
+ * @example User opts in to Apple Health sleep nudge push notifications.
303461
+ * Apple Health sleep nudge ticket: https://headspace.atlassian.net/browse/GROW-853
303462
+ * @constructor
303463
+ * @param {UserAppleHealthSleepNudgeSettingUpdated.$Properties=} [properties] Properties to set
303464
+ * @property {Array.<Uint8Array>} [$unknowns] Unknown fields preserved while decoding
303465
+ */
303466
+ function UserAppleHealthSleepNudgeSettingUpdated(properties) {
303467
+ if (properties)
303468
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
303469
+ if (properties[keys[i]] != null && keys[i] !== "__proto__")
303470
+ this[keys[i]] = properties[keys[i]];
303471
+ }
303472
+
303473
+ /**
303474
+ * UserAppleHealthSleepNudgeSettingUpdated hsUserId.
303475
+ * @member {string} hsUserId
303476
+ * @memberof UserAppleHealthSleepNudgeSettingUpdated
303477
+ * @instance
303478
+ */
303479
+ UserAppleHealthSleepNudgeSettingUpdated.prototype.hsUserId = "";
303480
+
303481
+ /**
303482
+ * UserAppleHealthSleepNudgeSettingUpdated isEnabled.
303483
+ * @member {boolean} isEnabled
303484
+ * @memberof UserAppleHealthSleepNudgeSettingUpdated
303485
+ * @instance
303486
+ */
303487
+ UserAppleHealthSleepNudgeSettingUpdated.prototype.isEnabled = false;
303488
+
303489
+ /**
303490
+ * Creates a new UserAppleHealthSleepNudgeSettingUpdated instance using the specified properties.
303491
+ * @function create
303492
+ * @memberof UserAppleHealthSleepNudgeSettingUpdated
303493
+ * @static
303494
+ * @param {UserAppleHealthSleepNudgeSettingUpdated.$Properties=} [properties] Properties to set
303495
+ * @returns {UserAppleHealthSleepNudgeSettingUpdated} UserAppleHealthSleepNudgeSettingUpdated instance
303496
+ * @type {{
303497
+ * (properties: UserAppleHealthSleepNudgeSettingUpdated.$Shape): UserAppleHealthSleepNudgeSettingUpdated & UserAppleHealthSleepNudgeSettingUpdated.$Shape;
303498
+ * (properties?: UserAppleHealthSleepNudgeSettingUpdated.$Properties): UserAppleHealthSleepNudgeSettingUpdated;
303499
+ * }}
303500
+ */
303501
+ UserAppleHealthSleepNudgeSettingUpdated.create = function create(properties) {
303502
+ return new UserAppleHealthSleepNudgeSettingUpdated(properties);
303503
+ };
303504
+
303505
+ /**
303506
+ * Encodes the specified UserAppleHealthSleepNudgeSettingUpdated message. Does not implicitly {@link UserAppleHealthSleepNudgeSettingUpdated.verify|verify} messages.
303507
+ * @function encode
303508
+ * @memberof UserAppleHealthSleepNudgeSettingUpdated
303509
+ * @static
303510
+ * @param {UserAppleHealthSleepNudgeSettingUpdated.$Properties} message UserAppleHealthSleepNudgeSettingUpdated message or plain object to encode
303511
+ * @param {$protobuf.Writer} [writer] Writer to encode to
303512
+ * @returns {$protobuf.Writer} Writer
303513
+ */
303514
+ UserAppleHealthSleepNudgeSettingUpdated.encode = function encode(message, writer) {
303515
+ if (!writer)
303516
+ writer = $Writer.create();
303517
+ if (message.hsUserId != null && Object.hasOwnProperty.call(message, "hsUserId"))
303518
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.hsUserId);
303519
+ if (message.isEnabled != null && Object.hasOwnProperty.call(message, "isEnabled"))
303520
+ writer.uint32(/* id 2, wireType 0 =*/16).bool(message.isEnabled);
303521
+ if (message.$unknowns != null && Object.hasOwnProperty.call(message, "$unknowns"))
303522
+ for (var i = 0; i < message.$unknowns.length; ++i)
303523
+ writer.raw(message.$unknowns[i]);
303524
+ return writer;
303525
+ };
303526
+
303527
+ /**
303528
+ * Encodes the specified UserAppleHealthSleepNudgeSettingUpdated message, length delimited. Does not implicitly {@link UserAppleHealthSleepNudgeSettingUpdated.verify|verify} messages.
303529
+ * @function encodeDelimited
303530
+ * @memberof UserAppleHealthSleepNudgeSettingUpdated
303531
+ * @static
303532
+ * @param {UserAppleHealthSleepNudgeSettingUpdated.$Properties} message UserAppleHealthSleepNudgeSettingUpdated message or plain object to encode
303533
+ * @param {$protobuf.Writer} [writer] Writer to encode to
303534
+ * @returns {$protobuf.Writer} Writer
303535
+ */
303536
+ UserAppleHealthSleepNudgeSettingUpdated.encodeDelimited = function encodeDelimited(message, writer) {
303537
+ return this.encode(message, writer).ldelim();
303538
+ };
303539
+
303540
+ /**
303541
+ * Decodes a UserAppleHealthSleepNudgeSettingUpdated message from the specified reader or buffer.
303542
+ * @function decode
303543
+ * @memberof UserAppleHealthSleepNudgeSettingUpdated
303544
+ * @static
303545
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
303546
+ * @param {number} [length] Message length if known beforehand
303547
+ * @returns {UserAppleHealthSleepNudgeSettingUpdated & UserAppleHealthSleepNudgeSettingUpdated.$Shape} UserAppleHealthSleepNudgeSettingUpdated
303548
+ * @throws {Error} If the payload is not a reader or valid buffer
303549
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
303550
+ */
303551
+ UserAppleHealthSleepNudgeSettingUpdated.decode = function decode(reader, length, _end, _depth, _target) {
303552
+ if (!(reader instanceof $Reader))
303553
+ reader = $Reader.create(reader);
303554
+ if (_depth === undefined)
303555
+ _depth = 0;
303556
+ if (_depth > $Reader.recursionLimit)
303557
+ throw Error("max depth exceeded");
303558
+ var end = length === undefined ? reader.len : reader.pos + length, message = _target || new $root.UserAppleHealthSleepNudgeSettingUpdated(), value;
303559
+ while (reader.pos < end) {
303560
+ var start = reader.pos;
303561
+ var tag = reader.tag();
303562
+ if (tag === _end) {
303563
+ _end = undefined;
303564
+ break;
303565
+ }
303566
+ var wireType = tag & 7;
303567
+ switch (tag >>>= 3) {
303568
+ case 1: {
303569
+ if (wireType !== 2)
303570
+ break;
303571
+ if ((value = reader.string()).length)
303572
+ message.hsUserId = value;
303573
+ else
303574
+ delete message.hsUserId;
303575
+ continue;
303576
+ }
303577
+ case 2: {
303578
+ if (wireType !== 0)
303579
+ break;
303580
+ if (value = reader.bool())
303581
+ message.isEnabled = value;
303582
+ else
303583
+ delete message.isEnabled;
303584
+ continue;
303585
+ }
303586
+ }
303587
+ reader.skipType(wireType, _depth, tag);
303588
+ $util.makeProp(message, "$unknowns", false);
303589
+ (message.$unknowns || (message.$unknowns = [])).push(reader.raw(start, reader.pos));
303590
+ }
303591
+ if (_end !== undefined)
303592
+ throw Error("missing end group");
303593
+ return message;
303594
+ };
303595
+
303596
+ /**
303597
+ * Decodes a UserAppleHealthSleepNudgeSettingUpdated message from the specified reader or buffer, length delimited.
303598
+ * @function decodeDelimited
303599
+ * @memberof UserAppleHealthSleepNudgeSettingUpdated
303600
+ * @static
303601
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
303602
+ * @returns {UserAppleHealthSleepNudgeSettingUpdated & UserAppleHealthSleepNudgeSettingUpdated.$Shape} UserAppleHealthSleepNudgeSettingUpdated
303603
+ * @throws {Error} If the payload is not a reader or valid buffer
303604
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
303605
+ */
303606
+ UserAppleHealthSleepNudgeSettingUpdated.decodeDelimited = function decodeDelimited(reader) {
303607
+ if (!(reader instanceof $Reader))
303608
+ reader = new $Reader(reader);
303609
+ return this.decode(reader, reader.uint32());
303610
+ };
303611
+
303612
+ /**
303613
+ * Verifies a UserAppleHealthSleepNudgeSettingUpdated message.
303614
+ * @function verify
303615
+ * @memberof UserAppleHealthSleepNudgeSettingUpdated
303616
+ * @static
303617
+ * @param {Object.<string,*>} message Plain object to verify
303618
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
303619
+ */
303620
+ UserAppleHealthSleepNudgeSettingUpdated.verify = function verify(message, _depth) {
303621
+ if (typeof message !== "object" || message === null)
303622
+ return "object expected";
303623
+ if (_depth === undefined)
303624
+ _depth = 0;
303625
+ if (_depth > $util.recursionLimit)
303626
+ return "max depth exceeded";
303627
+ if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
303628
+ if (!$util.isString(message.hsUserId))
303629
+ return "hsUserId: string expected";
303630
+ if (message.isEnabled != null && message.hasOwnProperty("isEnabled"))
303631
+ if (typeof message.isEnabled !== "boolean")
303632
+ return "isEnabled: boolean expected";
303633
+ return null;
303634
+ };
303635
+
303636
+ /**
303637
+ * Creates a UserAppleHealthSleepNudgeSettingUpdated message from a plain object. Also converts values to their respective internal types.
303638
+ * @function fromObject
303639
+ * @memberof UserAppleHealthSleepNudgeSettingUpdated
303640
+ * @static
303641
+ * @param {Object.<string,*>} object Plain object
303642
+ * @returns {UserAppleHealthSleepNudgeSettingUpdated} UserAppleHealthSleepNudgeSettingUpdated
303643
+ */
303644
+ UserAppleHealthSleepNudgeSettingUpdated.fromObject = function fromObject(object, _depth) {
303645
+ if (object instanceof $root.UserAppleHealthSleepNudgeSettingUpdated)
303646
+ return object;
303647
+ if (_depth === undefined)
303648
+ _depth = 0;
303649
+ if (_depth > $util.recursionLimit)
303650
+ throw Error("max depth exceeded");
303651
+ var message = new $root.UserAppleHealthSleepNudgeSettingUpdated();
303652
+ if (object.hsUserId != null)
303653
+ if (typeof object.hsUserId !== "string" || object.hsUserId.length)
303654
+ message.hsUserId = String(object.hsUserId);
303655
+ if (object.isEnabled != null)
303656
+ if (object.isEnabled)
303657
+ message.isEnabled = Boolean(object.isEnabled);
303658
+ return message;
303659
+ };
303660
+
303661
+ /**
303662
+ * Creates a plain object from a UserAppleHealthSleepNudgeSettingUpdated message. Also converts values to other types if specified.
303663
+ * @function toObject
303664
+ * @memberof UserAppleHealthSleepNudgeSettingUpdated
303665
+ * @static
303666
+ * @param {UserAppleHealthSleepNudgeSettingUpdated} message UserAppleHealthSleepNudgeSettingUpdated
303667
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
303668
+ * @returns {Object.<string,*>} Plain object
303669
+ */
303670
+ UserAppleHealthSleepNudgeSettingUpdated.toObject = function toObject(message, options) {
303671
+ if (!options)
303672
+ options = {};
303673
+ var object = {};
303674
+ if (options.defaults) {
303675
+ object.hsUserId = "";
303676
+ object.isEnabled = false;
303677
+ }
303678
+ if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
303679
+ object.hsUserId = message.hsUserId;
303680
+ if (message.isEnabled != null && message.hasOwnProperty("isEnabled"))
303681
+ object.isEnabled = message.isEnabled;
303682
+ return object;
303683
+ };
303684
+
303685
+ /**
303686
+ * Converts this UserAppleHealthSleepNudgeSettingUpdated to JSON.
303687
+ * @function toJSON
303688
+ * @memberof UserAppleHealthSleepNudgeSettingUpdated
303689
+ * @instance
303690
+ * @returns {Object.<string,*>} JSON object
303691
+ */
303692
+ UserAppleHealthSleepNudgeSettingUpdated.prototype.toJSON = function toJSON() {
303693
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
303694
+ };
303695
+
303696
+ /**
303697
+ * Gets the type url for UserAppleHealthSleepNudgeSettingUpdated
303698
+ * @function getTypeUrl
303699
+ * @memberof UserAppleHealthSleepNudgeSettingUpdated
303700
+ * @static
303701
+ * @param {string} [prefix] Custom type url prefix, defaults to `"type.googleapis.com"`
303702
+ * @returns {string} The type url
303703
+ */
303704
+ UserAppleHealthSleepNudgeSettingUpdated.getTypeUrl = function getTypeUrl(prefix) {
303705
+ if (prefix === undefined)
303706
+ prefix = "type.googleapis.com";
303707
+ return prefix + "/UserAppleHealthSleepNudgeSettingUpdated";
303708
+ };
303709
+
303710
+ return UserAppleHealthSleepNudgeSettingUpdated;
303711
+ })();
303712
+
303145
303713
  $root.UserOuraNotificationSettingUpdated = (function() {
303146
303714
 
303147
303715
  /**
@@ -304160,6 +304728,332 @@ $root.UserDeletionRevoked = (function() {
304160
304728
  return UserDeletionRevoked;
304161
304729
  })();
304162
304730
 
304731
+ $root.UserAppleHealthConnectionSettingUpdated = (function() {
304732
+
304733
+ /**
304734
+ * Properties of a UserAppleHealthConnectionSettingUpdated.
304735
+ * @typedef {Object} UserAppleHealthConnectionSettingUpdated.$Properties
304736
+ * @property {string|null} [hsUserId] UserAppleHealthConnectionSettingUpdated hsUserId
304737
+ * @property {string|null} [settingValue] UserAppleHealthConnectionSettingUpdated settingValue
304738
+ * @property {number|Long|null} [updatedAt] UserAppleHealthConnectionSettingUpdated updatedAt
304739
+ * @property {Array.<Uint8Array>} [$unknowns] Unknown fields preserved while decoding
304740
+ */
304741
+
304742
+ /**
304743
+ * Properties of a UserAppleHealthConnectionSettingUpdated.
304744
+ * @name IUserAppleHealthConnectionSettingUpdated
304745
+ * @interface IUserAppleHealthConnectionSettingUpdated
304746
+ * @augments UserAppleHealthConnectionSettingUpdated.$Properties
304747
+ * @deprecated Use UserAppleHealthConnectionSettingUpdated.$Properties instead.
304748
+ */
304749
+
304750
+ /**
304751
+ * Shape of a UserAppleHealthConnectionSettingUpdated.
304752
+ * @typedef {UserAppleHealthConnectionSettingUpdated.$Properties} UserAppleHealthConnectionSettingUpdated.$Shape
304753
+ */
304754
+
304755
+ /**
304756
+ * Constructs a new UserAppleHealthConnectionSettingUpdated.
304757
+ * @name UserAppleHealthConnectionSettingUpdated
304758
+ * @classdesc Sent when a user's Apple Health connection setting is updated.
304759
+ * Responsible team: Consumer Growth
304760
+ *
304761
+ * @example User links their Apple Health, transitioning the setting from "pending" to "active".
304762
+ * @constructor
304763
+ * @param {UserAppleHealthConnectionSettingUpdated.$Properties=} [properties] Properties to set
304764
+ * @property {Array.<Uint8Array>} [$unknowns] Unknown fields preserved while decoding
304765
+ */
304766
+ function UserAppleHealthConnectionSettingUpdated(properties) {
304767
+ if (properties)
304768
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
304769
+ if (properties[keys[i]] != null && keys[i] !== "__proto__")
304770
+ this[keys[i]] = properties[keys[i]];
304771
+ }
304772
+
304773
+ /**
304774
+ * UserAppleHealthConnectionSettingUpdated hsUserId.
304775
+ * @member {string} hsUserId
304776
+ * @memberof UserAppleHealthConnectionSettingUpdated
304777
+ * @instance
304778
+ */
304779
+ UserAppleHealthConnectionSettingUpdated.prototype.hsUserId = "";
304780
+
304781
+ /**
304782
+ * UserAppleHealthConnectionSettingUpdated settingValue.
304783
+ * @member {string} settingValue
304784
+ * @memberof UserAppleHealthConnectionSettingUpdated
304785
+ * @instance
304786
+ */
304787
+ UserAppleHealthConnectionSettingUpdated.prototype.settingValue = "";
304788
+
304789
+ /**
304790
+ * UserAppleHealthConnectionSettingUpdated updatedAt.
304791
+ * @member {number|Long} updatedAt
304792
+ * @memberof UserAppleHealthConnectionSettingUpdated
304793
+ * @instance
304794
+ */
304795
+ UserAppleHealthConnectionSettingUpdated.prototype.updatedAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
304796
+
304797
+ /**
304798
+ * Creates a new UserAppleHealthConnectionSettingUpdated instance using the specified properties.
304799
+ * @function create
304800
+ * @memberof UserAppleHealthConnectionSettingUpdated
304801
+ * @static
304802
+ * @param {UserAppleHealthConnectionSettingUpdated.$Properties=} [properties] Properties to set
304803
+ * @returns {UserAppleHealthConnectionSettingUpdated} UserAppleHealthConnectionSettingUpdated instance
304804
+ * @type {{
304805
+ * (properties: UserAppleHealthConnectionSettingUpdated.$Shape): UserAppleHealthConnectionSettingUpdated & UserAppleHealthConnectionSettingUpdated.$Shape;
304806
+ * (properties?: UserAppleHealthConnectionSettingUpdated.$Properties): UserAppleHealthConnectionSettingUpdated;
304807
+ * }}
304808
+ */
304809
+ UserAppleHealthConnectionSettingUpdated.create = function create(properties) {
304810
+ return new UserAppleHealthConnectionSettingUpdated(properties);
304811
+ };
304812
+
304813
+ /**
304814
+ * Encodes the specified UserAppleHealthConnectionSettingUpdated message. Does not implicitly {@link UserAppleHealthConnectionSettingUpdated.verify|verify} messages.
304815
+ * @function encode
304816
+ * @memberof UserAppleHealthConnectionSettingUpdated
304817
+ * @static
304818
+ * @param {UserAppleHealthConnectionSettingUpdated.$Properties} message UserAppleHealthConnectionSettingUpdated message or plain object to encode
304819
+ * @param {$protobuf.Writer} [writer] Writer to encode to
304820
+ * @returns {$protobuf.Writer} Writer
304821
+ */
304822
+ UserAppleHealthConnectionSettingUpdated.encode = function encode(message, writer) {
304823
+ if (!writer)
304824
+ writer = $Writer.create();
304825
+ if (message.hsUserId != null && Object.hasOwnProperty.call(message, "hsUserId"))
304826
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.hsUserId);
304827
+ if (message.settingValue != null && Object.hasOwnProperty.call(message, "settingValue"))
304828
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.settingValue);
304829
+ if (message.updatedAt != null && Object.hasOwnProperty.call(message, "updatedAt"))
304830
+ writer.uint32(/* id 3, wireType 0 =*/24).uint64(message.updatedAt);
304831
+ if (message.$unknowns != null && Object.hasOwnProperty.call(message, "$unknowns"))
304832
+ for (var i = 0; i < message.$unknowns.length; ++i)
304833
+ writer.raw(message.$unknowns[i]);
304834
+ return writer;
304835
+ };
304836
+
304837
+ /**
304838
+ * Encodes the specified UserAppleHealthConnectionSettingUpdated message, length delimited. Does not implicitly {@link UserAppleHealthConnectionSettingUpdated.verify|verify} messages.
304839
+ * @function encodeDelimited
304840
+ * @memberof UserAppleHealthConnectionSettingUpdated
304841
+ * @static
304842
+ * @param {UserAppleHealthConnectionSettingUpdated.$Properties} message UserAppleHealthConnectionSettingUpdated message or plain object to encode
304843
+ * @param {$protobuf.Writer} [writer] Writer to encode to
304844
+ * @returns {$protobuf.Writer} Writer
304845
+ */
304846
+ UserAppleHealthConnectionSettingUpdated.encodeDelimited = function encodeDelimited(message, writer) {
304847
+ return this.encode(message, writer).ldelim();
304848
+ };
304849
+
304850
+ /**
304851
+ * Decodes a UserAppleHealthConnectionSettingUpdated message from the specified reader or buffer.
304852
+ * @function decode
304853
+ * @memberof UserAppleHealthConnectionSettingUpdated
304854
+ * @static
304855
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
304856
+ * @param {number} [length] Message length if known beforehand
304857
+ * @returns {UserAppleHealthConnectionSettingUpdated & UserAppleHealthConnectionSettingUpdated.$Shape} UserAppleHealthConnectionSettingUpdated
304858
+ * @throws {Error} If the payload is not a reader or valid buffer
304859
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
304860
+ */
304861
+ UserAppleHealthConnectionSettingUpdated.decode = function decode(reader, length, _end, _depth, _target) {
304862
+ if (!(reader instanceof $Reader))
304863
+ reader = $Reader.create(reader);
304864
+ if (_depth === undefined)
304865
+ _depth = 0;
304866
+ if (_depth > $Reader.recursionLimit)
304867
+ throw Error("max depth exceeded");
304868
+ var end = length === undefined ? reader.len : reader.pos + length, message = _target || new $root.UserAppleHealthConnectionSettingUpdated(), value;
304869
+ while (reader.pos < end) {
304870
+ var start = reader.pos;
304871
+ var tag = reader.tag();
304872
+ if (tag === _end) {
304873
+ _end = undefined;
304874
+ break;
304875
+ }
304876
+ var wireType = tag & 7;
304877
+ switch (tag >>>= 3) {
304878
+ case 1: {
304879
+ if (wireType !== 2)
304880
+ break;
304881
+ if ((value = reader.string()).length)
304882
+ message.hsUserId = value;
304883
+ else
304884
+ delete message.hsUserId;
304885
+ continue;
304886
+ }
304887
+ case 2: {
304888
+ if (wireType !== 2)
304889
+ break;
304890
+ if ((value = reader.string()).length)
304891
+ message.settingValue = value;
304892
+ else
304893
+ delete message.settingValue;
304894
+ continue;
304895
+ }
304896
+ case 3: {
304897
+ if (wireType !== 0)
304898
+ break;
304899
+ if (typeof (value = reader.uint64()) === "object" ? value.low || value.high : value !== 0)
304900
+ message.updatedAt = value;
304901
+ else
304902
+ delete message.updatedAt;
304903
+ continue;
304904
+ }
304905
+ }
304906
+ reader.skipType(wireType, _depth, tag);
304907
+ $util.makeProp(message, "$unknowns", false);
304908
+ (message.$unknowns || (message.$unknowns = [])).push(reader.raw(start, reader.pos));
304909
+ }
304910
+ if (_end !== undefined)
304911
+ throw Error("missing end group");
304912
+ return message;
304913
+ };
304914
+
304915
+ /**
304916
+ * Decodes a UserAppleHealthConnectionSettingUpdated message from the specified reader or buffer, length delimited.
304917
+ * @function decodeDelimited
304918
+ * @memberof UserAppleHealthConnectionSettingUpdated
304919
+ * @static
304920
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
304921
+ * @returns {UserAppleHealthConnectionSettingUpdated & UserAppleHealthConnectionSettingUpdated.$Shape} UserAppleHealthConnectionSettingUpdated
304922
+ * @throws {Error} If the payload is not a reader or valid buffer
304923
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
304924
+ */
304925
+ UserAppleHealthConnectionSettingUpdated.decodeDelimited = function decodeDelimited(reader) {
304926
+ if (!(reader instanceof $Reader))
304927
+ reader = new $Reader(reader);
304928
+ return this.decode(reader, reader.uint32());
304929
+ };
304930
+
304931
+ /**
304932
+ * Verifies a UserAppleHealthConnectionSettingUpdated message.
304933
+ * @function verify
304934
+ * @memberof UserAppleHealthConnectionSettingUpdated
304935
+ * @static
304936
+ * @param {Object.<string,*>} message Plain object to verify
304937
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
304938
+ */
304939
+ UserAppleHealthConnectionSettingUpdated.verify = function verify(message, _depth) {
304940
+ if (typeof message !== "object" || message === null)
304941
+ return "object expected";
304942
+ if (_depth === undefined)
304943
+ _depth = 0;
304944
+ if (_depth > $util.recursionLimit)
304945
+ return "max depth exceeded";
304946
+ if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
304947
+ if (!$util.isString(message.hsUserId))
304948
+ return "hsUserId: string expected";
304949
+ if (message.settingValue != null && message.hasOwnProperty("settingValue"))
304950
+ if (!$util.isString(message.settingValue))
304951
+ return "settingValue: string expected";
304952
+ if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
304953
+ if (!$util.isInteger(message.updatedAt) && !(message.updatedAt && $util.isInteger(message.updatedAt.low) && $util.isInteger(message.updatedAt.high)))
304954
+ return "updatedAt: integer|Long expected";
304955
+ return null;
304956
+ };
304957
+
304958
+ /**
304959
+ * Creates a UserAppleHealthConnectionSettingUpdated message from a plain object. Also converts values to their respective internal types.
304960
+ * @function fromObject
304961
+ * @memberof UserAppleHealthConnectionSettingUpdated
304962
+ * @static
304963
+ * @param {Object.<string,*>} object Plain object
304964
+ * @returns {UserAppleHealthConnectionSettingUpdated} UserAppleHealthConnectionSettingUpdated
304965
+ */
304966
+ UserAppleHealthConnectionSettingUpdated.fromObject = function fromObject(object, _depth) {
304967
+ if (object instanceof $root.UserAppleHealthConnectionSettingUpdated)
304968
+ return object;
304969
+ if (_depth === undefined)
304970
+ _depth = 0;
304971
+ if (_depth > $util.recursionLimit)
304972
+ throw Error("max depth exceeded");
304973
+ var message = new $root.UserAppleHealthConnectionSettingUpdated();
304974
+ if (object.hsUserId != null)
304975
+ if (typeof object.hsUserId !== "string" || object.hsUserId.length)
304976
+ message.hsUserId = String(object.hsUserId);
304977
+ if (object.settingValue != null)
304978
+ if (typeof object.settingValue !== "string" || object.settingValue.length)
304979
+ message.settingValue = String(object.settingValue);
304980
+ if (object.updatedAt != null)
304981
+ if (typeof object.updatedAt === "object" ? object.updatedAt.low || object.updatedAt.high : Number(object.updatedAt) !== 0)
304982
+ if ($util.Long)
304983
+ (message.updatedAt = $util.Long.fromValue(object.updatedAt)).unsigned = true;
304984
+ else if (typeof object.updatedAt === "string")
304985
+ message.updatedAt = parseInt(object.updatedAt, 10);
304986
+ else if (typeof object.updatedAt === "number")
304987
+ message.updatedAt = object.updatedAt;
304988
+ else if (typeof object.updatedAt === "object")
304989
+ message.updatedAt = new $util.LongBits(object.updatedAt.low >>> 0, object.updatedAt.high >>> 0).toNumber(true);
304990
+ return message;
304991
+ };
304992
+
304993
+ /**
304994
+ * Creates a plain object from a UserAppleHealthConnectionSettingUpdated message. Also converts values to other types if specified.
304995
+ * @function toObject
304996
+ * @memberof UserAppleHealthConnectionSettingUpdated
304997
+ * @static
304998
+ * @param {UserAppleHealthConnectionSettingUpdated} message UserAppleHealthConnectionSettingUpdated
304999
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
305000
+ * @returns {Object.<string,*>} Plain object
305001
+ */
305002
+ UserAppleHealthConnectionSettingUpdated.toObject = function toObject(message, options) {
305003
+ if (!options)
305004
+ options = {};
305005
+ var object = {};
305006
+ if (options.defaults) {
305007
+ object.hsUserId = "";
305008
+ object.settingValue = "";
305009
+ if ($util.Long) {
305010
+ var long = new $util.Long(0, 0, true);
305011
+ object.updatedAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long;
305012
+ } else
305013
+ object.updatedAt = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0;
305014
+ }
305015
+ if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
305016
+ object.hsUserId = message.hsUserId;
305017
+ if (message.settingValue != null && message.hasOwnProperty("settingValue"))
305018
+ object.settingValue = message.settingValue;
305019
+ if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
305020
+ if (typeof BigInt !== "undefined" && options.longs === BigInt)
305021
+ object.updatedAt = typeof message.updatedAt === "number" ? BigInt(message.updatedAt) : $util.Long.fromBits(message.updatedAt.low >>> 0, message.updatedAt.high >>> 0, true).toBigInt();
305022
+ else if (typeof message.updatedAt === "number")
305023
+ object.updatedAt = options.longs === String ? String(message.updatedAt) : message.updatedAt;
305024
+ else
305025
+ object.updatedAt = options.longs === String ? $util.Long.prototype.toString.call(message.updatedAt) : options.longs === Number ? new $util.LongBits(message.updatedAt.low >>> 0, message.updatedAt.high >>> 0).toNumber(true) : message.updatedAt;
305026
+ return object;
305027
+ };
305028
+
305029
+ /**
305030
+ * Converts this UserAppleHealthConnectionSettingUpdated to JSON.
305031
+ * @function toJSON
305032
+ * @memberof UserAppleHealthConnectionSettingUpdated
305033
+ * @instance
305034
+ * @returns {Object.<string,*>} JSON object
305035
+ */
305036
+ UserAppleHealthConnectionSettingUpdated.prototype.toJSON = function toJSON() {
305037
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
305038
+ };
305039
+
305040
+ /**
305041
+ * Gets the type url for UserAppleHealthConnectionSettingUpdated
305042
+ * @function getTypeUrl
305043
+ * @memberof UserAppleHealthConnectionSettingUpdated
305044
+ * @static
305045
+ * @param {string} [prefix] Custom type url prefix, defaults to `"type.googleapis.com"`
305046
+ * @returns {string} The type url
305047
+ */
305048
+ UserAppleHealthConnectionSettingUpdated.getTypeUrl = function getTypeUrl(prefix) {
305049
+ if (prefix === undefined)
305050
+ prefix = "type.googleapis.com";
305051
+ return prefix + "/UserAppleHealthConnectionSettingUpdated";
305052
+ };
305053
+
305054
+ return UserAppleHealthConnectionSettingUpdated;
305055
+ })();
305056
+
304163
305057
  /**
304164
305058
  * User Deletion Request Origin
304165
305059
  *
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.809.0"
19
+ "version": "1.811.0"
20
20
  }