@headspace/protos-events 1.812.0 → 1.814.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.
Files changed (3) hide show
  1. package/lib/index.d.ts +48 -42
  2. package/lib/index.js +102 -73
  3. package/package.json +1 -1
package/lib/index.d.ts CHANGED
@@ -104055,136 +104055,142 @@ export namespace UserDeletionRevoked {
104055
104055
  }
104056
104056
 
104057
104057
  /**
104058
- * Properties of a UserAppleHealthConnectionSettingUpdated.
104059
- * @deprecated Use UserAppleHealthConnectionSettingUpdated.$Properties instead.
104058
+ * Properties of a UserConnectedDeviceSettingUpdated.
104059
+ * @deprecated Use UserConnectedDeviceSettingUpdated.$Properties instead.
104060
104060
  */
104061
- export interface IUserAppleHealthConnectionSettingUpdated extends UserAppleHealthConnectionSettingUpdated.$Properties {
104061
+ export interface IUserConnectedDeviceSettingUpdated extends UserConnectedDeviceSettingUpdated.$Properties {
104062
104062
  }
104063
104063
 
104064
104064
  /**
104065
- * Sent when a user's Apple Health connection setting is updated.
104065
+ * Sent when a user's connected device setting is updated.
104066
104066
  * Responsible team: Consumer Growth
104067
104067
  *
104068
104068
  */
104069
- export class UserAppleHealthConnectionSettingUpdated {
104069
+ export class UserConnectedDeviceSettingUpdated {
104070
104070
 
104071
104071
  /**
104072
- * Constructs a new UserAppleHealthConnectionSettingUpdated.
104072
+ * Constructs a new UserConnectedDeviceSettingUpdated.
104073
104073
  * @param [properties] Properties to set
104074
104074
  */
104075
- constructor(properties?: UserAppleHealthConnectionSettingUpdated.$Properties);
104075
+ constructor(properties?: UserConnectedDeviceSettingUpdated.$Properties);
104076
104076
 
104077
104077
  /** Unknown fields preserved while decoding */
104078
104078
  $unknowns?: Uint8Array[];
104079
104079
 
104080
- /** UserAppleHealthConnectionSettingUpdated hsUserId. */
104080
+ /** UserConnectedDeviceSettingUpdated hsUserId. */
104081
104081
  hsUserId: string;
104082
104082
 
104083
- /** UserAppleHealthConnectionSettingUpdated settingValue. */
104083
+ /** UserConnectedDeviceSettingUpdated settingValue. */
104084
104084
  settingValue: string;
104085
104085
 
104086
- /** UserAppleHealthConnectionSettingUpdated updatedAt. */
104086
+ /** UserConnectedDeviceSettingUpdated updatedAt. */
104087
104087
  updatedAt: (number|Long);
104088
104088
 
104089
+ /** UserConnectedDeviceSettingUpdated source. */
104090
+ source: string;
104091
+
104089
104092
  /**
104090
- * Creates a new UserAppleHealthConnectionSettingUpdated instance using the specified properties.
104093
+ * Creates a new UserConnectedDeviceSettingUpdated instance using the specified properties.
104091
104094
  * @param [properties] Properties to set
104092
- * @returns UserAppleHealthConnectionSettingUpdated instance
104095
+ * @returns UserConnectedDeviceSettingUpdated instance
104093
104096
  */
104094
- static create(properties: UserAppleHealthConnectionSettingUpdated.$Shape): UserAppleHealthConnectionSettingUpdated & UserAppleHealthConnectionSettingUpdated.$Shape;
104095
- static create(properties?: UserAppleHealthConnectionSettingUpdated.$Properties): UserAppleHealthConnectionSettingUpdated;
104097
+ static create(properties: UserConnectedDeviceSettingUpdated.$Shape): UserConnectedDeviceSettingUpdated & UserConnectedDeviceSettingUpdated.$Shape;
104098
+ static create(properties?: UserConnectedDeviceSettingUpdated.$Properties): UserConnectedDeviceSettingUpdated;
104096
104099
 
104097
104100
  /**
104098
- * Encodes the specified UserAppleHealthConnectionSettingUpdated message. Does not implicitly {@link UserAppleHealthConnectionSettingUpdated.verify|verify} messages.
104099
- * @param message UserAppleHealthConnectionSettingUpdated message or plain object to encode
104101
+ * Encodes the specified UserConnectedDeviceSettingUpdated message. Does not implicitly {@link UserConnectedDeviceSettingUpdated.verify|verify} messages.
104102
+ * @param message UserConnectedDeviceSettingUpdated message or plain object to encode
104100
104103
  * @param [writer] Writer to encode to
104101
104104
  * @returns Writer
104102
104105
  */
104103
- static encode(message: UserAppleHealthConnectionSettingUpdated.$Properties, writer?: $protobuf.Writer): $protobuf.Writer;
104106
+ static encode(message: UserConnectedDeviceSettingUpdated.$Properties, writer?: $protobuf.Writer): $protobuf.Writer;
104104
104107
 
104105
104108
  /**
104106
- * Encodes the specified UserAppleHealthConnectionSettingUpdated message, length delimited. Does not implicitly {@link UserAppleHealthConnectionSettingUpdated.verify|verify} messages.
104107
- * @param message UserAppleHealthConnectionSettingUpdated message or plain object to encode
104109
+ * Encodes the specified UserConnectedDeviceSettingUpdated message, length delimited. Does not implicitly {@link UserConnectedDeviceSettingUpdated.verify|verify} messages.
104110
+ * @param message UserConnectedDeviceSettingUpdated message or plain object to encode
104108
104111
  * @param [writer] Writer to encode to
104109
104112
  * @returns Writer
104110
104113
  */
104111
- static encodeDelimited(message: UserAppleHealthConnectionSettingUpdated.$Properties, writer?: $protobuf.Writer): $protobuf.Writer;
104114
+ static encodeDelimited(message: UserConnectedDeviceSettingUpdated.$Properties, writer?: $protobuf.Writer): $protobuf.Writer;
104112
104115
 
104113
104116
  /**
104114
- * Decodes a UserAppleHealthConnectionSettingUpdated message from the specified reader or buffer.
104117
+ * Decodes a UserConnectedDeviceSettingUpdated message from the specified reader or buffer.
104115
104118
  * @param reader Reader or buffer to decode from
104116
104119
  * @param [length] Message length if known beforehand
104117
- * @returns {UserAppleHealthConnectionSettingUpdated & UserAppleHealthConnectionSettingUpdated.$Shape} UserAppleHealthConnectionSettingUpdated
104120
+ * @returns {UserConnectedDeviceSettingUpdated & UserConnectedDeviceSettingUpdated.$Shape} UserConnectedDeviceSettingUpdated
104118
104121
  * @throws {Error} If the payload is not a reader or valid buffer
104119
104122
  * @throws {$protobuf.util.ProtocolError} If required fields are missing
104120
104123
  */
104121
- static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): UserAppleHealthConnectionSettingUpdated & UserAppleHealthConnectionSettingUpdated.$Shape;
104124
+ static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): UserConnectedDeviceSettingUpdated & UserConnectedDeviceSettingUpdated.$Shape;
104122
104125
 
104123
104126
  /**
104124
- * Decodes a UserAppleHealthConnectionSettingUpdated message from the specified reader or buffer, length delimited.
104127
+ * Decodes a UserConnectedDeviceSettingUpdated message from the specified reader or buffer, length delimited.
104125
104128
  * @param reader Reader or buffer to decode from
104126
- * @returns {UserAppleHealthConnectionSettingUpdated & UserAppleHealthConnectionSettingUpdated.$Shape} UserAppleHealthConnectionSettingUpdated
104129
+ * @returns {UserConnectedDeviceSettingUpdated & UserConnectedDeviceSettingUpdated.$Shape} UserConnectedDeviceSettingUpdated
104127
104130
  * @throws {Error} If the payload is not a reader or valid buffer
104128
104131
  * @throws {$protobuf.util.ProtocolError} If required fields are missing
104129
104132
  */
104130
- static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): UserAppleHealthConnectionSettingUpdated & UserAppleHealthConnectionSettingUpdated.$Shape;
104133
+ static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): UserConnectedDeviceSettingUpdated & UserConnectedDeviceSettingUpdated.$Shape;
104131
104134
 
104132
104135
  /**
104133
- * Verifies a UserAppleHealthConnectionSettingUpdated message.
104136
+ * Verifies a UserConnectedDeviceSettingUpdated message.
104134
104137
  * @param message Plain object to verify
104135
104138
  * @returns `null` if valid, otherwise the reason why it is not
104136
104139
  */
104137
104140
  static verify(message: { [k: string]: any }): (string|null);
104138
104141
 
104139
104142
  /**
104140
- * Creates a UserAppleHealthConnectionSettingUpdated message from a plain object. Also converts values to their respective internal types.
104143
+ * Creates a UserConnectedDeviceSettingUpdated message from a plain object. Also converts values to their respective internal types.
104141
104144
  * @param object Plain object
104142
- * @returns UserAppleHealthConnectionSettingUpdated
104145
+ * @returns UserConnectedDeviceSettingUpdated
104143
104146
  */
104144
- static fromObject(object: { [k: string]: any }): UserAppleHealthConnectionSettingUpdated;
104147
+ static fromObject(object: { [k: string]: any }): UserConnectedDeviceSettingUpdated;
104145
104148
 
104146
104149
  /**
104147
- * Creates a plain object from a UserAppleHealthConnectionSettingUpdated message. Also converts values to other types if specified.
104148
- * @param message UserAppleHealthConnectionSettingUpdated
104150
+ * Creates a plain object from a UserConnectedDeviceSettingUpdated message. Also converts values to other types if specified.
104151
+ * @param message UserConnectedDeviceSettingUpdated
104149
104152
  * @param [options] Conversion options
104150
104153
  * @returns Plain object
104151
104154
  */
104152
- static toObject(message: UserAppleHealthConnectionSettingUpdated, options?: $protobuf.IConversionOptions): { [k: string]: any };
104155
+ static toObject(message: UserConnectedDeviceSettingUpdated, options?: $protobuf.IConversionOptions): { [k: string]: any };
104153
104156
 
104154
104157
  /**
104155
- * Converts this UserAppleHealthConnectionSettingUpdated to JSON.
104158
+ * Converts this UserConnectedDeviceSettingUpdated to JSON.
104156
104159
  * @returns JSON object
104157
104160
  */
104158
104161
  toJSON(): { [k: string]: any };
104159
104162
 
104160
104163
  /**
104161
- * Gets the type url for UserAppleHealthConnectionSettingUpdated
104164
+ * Gets the type url for UserConnectedDeviceSettingUpdated
104162
104165
  * @param [prefix] Custom type url prefix, defaults to `"type.googleapis.com"`
104163
104166
  * @returns The type url
104164
104167
  */
104165
104168
  static getTypeUrl(prefix?: string): string;
104166
104169
  }
104167
104170
 
104168
- export namespace UserAppleHealthConnectionSettingUpdated {
104171
+ export namespace UserConnectedDeviceSettingUpdated {
104169
104172
 
104170
- /** Properties of a UserAppleHealthConnectionSettingUpdated. */
104173
+ /** Properties of a UserConnectedDeviceSettingUpdated. */
104171
104174
  interface $Properties {
104172
104175
 
104173
- /** UserAppleHealthConnectionSettingUpdated hsUserId */
104176
+ /** UserConnectedDeviceSettingUpdated hsUserId */
104174
104177
  hsUserId?: (string|null);
104175
104178
 
104176
- /** UserAppleHealthConnectionSettingUpdated settingValue */
104179
+ /** UserConnectedDeviceSettingUpdated settingValue */
104177
104180
  settingValue?: (string|null);
104178
104181
 
104179
- /** UserAppleHealthConnectionSettingUpdated updatedAt */
104182
+ /** UserConnectedDeviceSettingUpdated updatedAt */
104180
104183
  updatedAt?: (number|Long|null);
104181
104184
 
104185
+ /** UserConnectedDeviceSettingUpdated source */
104186
+ source?: (string|null);
104187
+
104182
104188
  /** Unknown fields preserved while decoding */
104183
104189
  $unknowns?: Uint8Array[];
104184
104190
  }
104185
104191
 
104186
- /** Shape of a UserAppleHealthConnectionSettingUpdated. */
104187
- type $Shape = UserAppleHealthConnectionSettingUpdated.$Properties;
104192
+ /** Shape of a UserConnectedDeviceSettingUpdated. */
104193
+ type $Shape = UserConnectedDeviceSettingUpdated.$Properties;
104188
104194
  }
104189
104195
 
104190
104196
  /**
package/lib/index.js CHANGED
@@ -304763,42 +304763,43 @@ $root.UserDeletionRevoked = (function() {
304763
304763
  return UserDeletionRevoked;
304764
304764
  })();
304765
304765
 
304766
- $root.UserAppleHealthConnectionSettingUpdated = (function() {
304766
+ $root.UserConnectedDeviceSettingUpdated = (function() {
304767
304767
 
304768
304768
  /**
304769
- * Properties of a UserAppleHealthConnectionSettingUpdated.
304770
- * @typedef {Object} UserAppleHealthConnectionSettingUpdated.$Properties
304771
- * @property {string|null} [hsUserId] UserAppleHealthConnectionSettingUpdated hsUserId
304772
- * @property {string|null} [settingValue] UserAppleHealthConnectionSettingUpdated settingValue
304773
- * @property {number|Long|null} [updatedAt] UserAppleHealthConnectionSettingUpdated updatedAt
304769
+ * Properties of a UserConnectedDeviceSettingUpdated.
304770
+ * @typedef {Object} UserConnectedDeviceSettingUpdated.$Properties
304771
+ * @property {string|null} [hsUserId] UserConnectedDeviceSettingUpdated hsUserId
304772
+ * @property {string|null} [settingValue] UserConnectedDeviceSettingUpdated settingValue
304773
+ * @property {number|Long|null} [updatedAt] UserConnectedDeviceSettingUpdated updatedAt
304774
+ * @property {string|null} [source] UserConnectedDeviceSettingUpdated source
304774
304775
  * @property {Array.<Uint8Array>} [$unknowns] Unknown fields preserved while decoding
304775
304776
  */
304776
304777
 
304777
304778
  /**
304778
- * Properties of a UserAppleHealthConnectionSettingUpdated.
304779
- * @name IUserAppleHealthConnectionSettingUpdated
304780
- * @interface IUserAppleHealthConnectionSettingUpdated
304781
- * @augments UserAppleHealthConnectionSettingUpdated.$Properties
304782
- * @deprecated Use UserAppleHealthConnectionSettingUpdated.$Properties instead.
304779
+ * Properties of a UserConnectedDeviceSettingUpdated.
304780
+ * @name IUserConnectedDeviceSettingUpdated
304781
+ * @interface IUserConnectedDeviceSettingUpdated
304782
+ * @augments UserConnectedDeviceSettingUpdated.$Properties
304783
+ * @deprecated Use UserConnectedDeviceSettingUpdated.$Properties instead.
304783
304784
  */
304784
304785
 
304785
304786
  /**
304786
- * Shape of a UserAppleHealthConnectionSettingUpdated.
304787
- * @typedef {UserAppleHealthConnectionSettingUpdated.$Properties} UserAppleHealthConnectionSettingUpdated.$Shape
304787
+ * Shape of a UserConnectedDeviceSettingUpdated.
304788
+ * @typedef {UserConnectedDeviceSettingUpdated.$Properties} UserConnectedDeviceSettingUpdated.$Shape
304788
304789
  */
304789
304790
 
304790
304791
  /**
304791
- * Constructs a new UserAppleHealthConnectionSettingUpdated.
304792
- * @name UserAppleHealthConnectionSettingUpdated
304793
- * @classdesc Sent when a user's Apple Health connection setting is updated.
304792
+ * Constructs a new UserConnectedDeviceSettingUpdated.
304793
+ * @name UserConnectedDeviceSettingUpdated
304794
+ * @classdesc Sent when a user's connected device setting is updated.
304794
304795
  * Responsible team: Consumer Growth
304795
304796
  *
304796
304797
  * @example User links their Apple Health, transitioning the setting from "pending" to "active".
304797
304798
  * @constructor
304798
- * @param {UserAppleHealthConnectionSettingUpdated.$Properties=} [properties] Properties to set
304799
+ * @param {UserConnectedDeviceSettingUpdated.$Properties=} [properties] Properties to set
304799
304800
  * @property {Array.<Uint8Array>} [$unknowns] Unknown fields preserved while decoding
304800
304801
  */
304801
- function UserAppleHealthConnectionSettingUpdated(properties) {
304802
+ function UserConnectedDeviceSettingUpdated(properties) {
304802
304803
  if (properties)
304803
304804
  for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
304804
304805
  if (properties[keys[i]] != null && keys[i] !== "__proto__")
@@ -304806,55 +304807,63 @@ $root.UserAppleHealthConnectionSettingUpdated = (function() {
304806
304807
  }
304807
304808
 
304808
304809
  /**
304809
- * UserAppleHealthConnectionSettingUpdated hsUserId.
304810
+ * UserConnectedDeviceSettingUpdated hsUserId.
304810
304811
  * @member {string} hsUserId
304811
- * @memberof UserAppleHealthConnectionSettingUpdated
304812
+ * @memberof UserConnectedDeviceSettingUpdated
304812
304813
  * @instance
304813
304814
  */
304814
- UserAppleHealthConnectionSettingUpdated.prototype.hsUserId = "";
304815
+ UserConnectedDeviceSettingUpdated.prototype.hsUserId = "";
304815
304816
 
304816
304817
  /**
304817
- * UserAppleHealthConnectionSettingUpdated settingValue.
304818
+ * UserConnectedDeviceSettingUpdated settingValue.
304818
304819
  * @member {string} settingValue
304819
- * @memberof UserAppleHealthConnectionSettingUpdated
304820
+ * @memberof UserConnectedDeviceSettingUpdated
304820
304821
  * @instance
304821
304822
  */
304822
- UserAppleHealthConnectionSettingUpdated.prototype.settingValue = "";
304823
+ UserConnectedDeviceSettingUpdated.prototype.settingValue = "";
304823
304824
 
304824
304825
  /**
304825
- * UserAppleHealthConnectionSettingUpdated updatedAt.
304826
+ * UserConnectedDeviceSettingUpdated updatedAt.
304826
304827
  * @member {number|Long} updatedAt
304827
- * @memberof UserAppleHealthConnectionSettingUpdated
304828
+ * @memberof UserConnectedDeviceSettingUpdated
304828
304829
  * @instance
304829
304830
  */
304830
- UserAppleHealthConnectionSettingUpdated.prototype.updatedAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
304831
+ UserConnectedDeviceSettingUpdated.prototype.updatedAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
304831
304832
 
304832
304833
  /**
304833
- * Creates a new UserAppleHealthConnectionSettingUpdated instance using the specified properties.
304834
+ * UserConnectedDeviceSettingUpdated source.
304835
+ * @member {string} source
304836
+ * @memberof UserConnectedDeviceSettingUpdated
304837
+ * @instance
304838
+ */
304839
+ UserConnectedDeviceSettingUpdated.prototype.source = "";
304840
+
304841
+ /**
304842
+ * Creates a new UserConnectedDeviceSettingUpdated instance using the specified properties.
304834
304843
  * @function create
304835
- * @memberof UserAppleHealthConnectionSettingUpdated
304844
+ * @memberof UserConnectedDeviceSettingUpdated
304836
304845
  * @static
304837
- * @param {UserAppleHealthConnectionSettingUpdated.$Properties=} [properties] Properties to set
304838
- * @returns {UserAppleHealthConnectionSettingUpdated} UserAppleHealthConnectionSettingUpdated instance
304846
+ * @param {UserConnectedDeviceSettingUpdated.$Properties=} [properties] Properties to set
304847
+ * @returns {UserConnectedDeviceSettingUpdated} UserConnectedDeviceSettingUpdated instance
304839
304848
  * @type {{
304840
- * (properties: UserAppleHealthConnectionSettingUpdated.$Shape): UserAppleHealthConnectionSettingUpdated & UserAppleHealthConnectionSettingUpdated.$Shape;
304841
- * (properties?: UserAppleHealthConnectionSettingUpdated.$Properties): UserAppleHealthConnectionSettingUpdated;
304849
+ * (properties: UserConnectedDeviceSettingUpdated.$Shape): UserConnectedDeviceSettingUpdated & UserConnectedDeviceSettingUpdated.$Shape;
304850
+ * (properties?: UserConnectedDeviceSettingUpdated.$Properties): UserConnectedDeviceSettingUpdated;
304842
304851
  * }}
304843
304852
  */
304844
- UserAppleHealthConnectionSettingUpdated.create = function create(properties) {
304845
- return new UserAppleHealthConnectionSettingUpdated(properties);
304853
+ UserConnectedDeviceSettingUpdated.create = function create(properties) {
304854
+ return new UserConnectedDeviceSettingUpdated(properties);
304846
304855
  };
304847
304856
 
304848
304857
  /**
304849
- * Encodes the specified UserAppleHealthConnectionSettingUpdated message. Does not implicitly {@link UserAppleHealthConnectionSettingUpdated.verify|verify} messages.
304858
+ * Encodes the specified UserConnectedDeviceSettingUpdated message. Does not implicitly {@link UserConnectedDeviceSettingUpdated.verify|verify} messages.
304850
304859
  * @function encode
304851
- * @memberof UserAppleHealthConnectionSettingUpdated
304860
+ * @memberof UserConnectedDeviceSettingUpdated
304852
304861
  * @static
304853
- * @param {UserAppleHealthConnectionSettingUpdated.$Properties} message UserAppleHealthConnectionSettingUpdated message or plain object to encode
304862
+ * @param {UserConnectedDeviceSettingUpdated.$Properties} message UserConnectedDeviceSettingUpdated message or plain object to encode
304854
304863
  * @param {$protobuf.Writer} [writer] Writer to encode to
304855
304864
  * @returns {$protobuf.Writer} Writer
304856
304865
  */
304857
- UserAppleHealthConnectionSettingUpdated.encode = function encode(message, writer) {
304866
+ UserConnectedDeviceSettingUpdated.encode = function encode(message, writer) {
304858
304867
  if (!writer)
304859
304868
  writer = $Writer.create();
304860
304869
  if (message.hsUserId != null && Object.hasOwnProperty.call(message, "hsUserId"))
@@ -304863,6 +304872,8 @@ $root.UserAppleHealthConnectionSettingUpdated = (function() {
304863
304872
  writer.uint32(/* id 2, wireType 2 =*/18).string(message.settingValue);
304864
304873
  if (message.updatedAt != null && Object.hasOwnProperty.call(message, "updatedAt"))
304865
304874
  writer.uint32(/* id 3, wireType 0 =*/24).uint64(message.updatedAt);
304875
+ if (message.source != null && Object.hasOwnProperty.call(message, "source"))
304876
+ writer.uint32(/* id 4, wireType 2 =*/34).string(message.source);
304866
304877
  if (message.$unknowns != null && Object.hasOwnProperty.call(message, "$unknowns"))
304867
304878
  for (var i = 0; i < message.$unknowns.length; ++i)
304868
304879
  writer.raw(message.$unknowns[i]);
@@ -304870,37 +304881,37 @@ $root.UserAppleHealthConnectionSettingUpdated = (function() {
304870
304881
  };
304871
304882
 
304872
304883
  /**
304873
- * Encodes the specified UserAppleHealthConnectionSettingUpdated message, length delimited. Does not implicitly {@link UserAppleHealthConnectionSettingUpdated.verify|verify} messages.
304884
+ * Encodes the specified UserConnectedDeviceSettingUpdated message, length delimited. Does not implicitly {@link UserConnectedDeviceSettingUpdated.verify|verify} messages.
304874
304885
  * @function encodeDelimited
304875
- * @memberof UserAppleHealthConnectionSettingUpdated
304886
+ * @memberof UserConnectedDeviceSettingUpdated
304876
304887
  * @static
304877
- * @param {UserAppleHealthConnectionSettingUpdated.$Properties} message UserAppleHealthConnectionSettingUpdated message or plain object to encode
304888
+ * @param {UserConnectedDeviceSettingUpdated.$Properties} message UserConnectedDeviceSettingUpdated message or plain object to encode
304878
304889
  * @param {$protobuf.Writer} [writer] Writer to encode to
304879
304890
  * @returns {$protobuf.Writer} Writer
304880
304891
  */
304881
- UserAppleHealthConnectionSettingUpdated.encodeDelimited = function encodeDelimited(message, writer) {
304892
+ UserConnectedDeviceSettingUpdated.encodeDelimited = function encodeDelimited(message, writer) {
304882
304893
  return this.encode(message, writer).ldelim();
304883
304894
  };
304884
304895
 
304885
304896
  /**
304886
- * Decodes a UserAppleHealthConnectionSettingUpdated message from the specified reader or buffer.
304897
+ * Decodes a UserConnectedDeviceSettingUpdated message from the specified reader or buffer.
304887
304898
  * @function decode
304888
- * @memberof UserAppleHealthConnectionSettingUpdated
304899
+ * @memberof UserConnectedDeviceSettingUpdated
304889
304900
  * @static
304890
304901
  * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
304891
304902
  * @param {number} [length] Message length if known beforehand
304892
- * @returns {UserAppleHealthConnectionSettingUpdated & UserAppleHealthConnectionSettingUpdated.$Shape} UserAppleHealthConnectionSettingUpdated
304903
+ * @returns {UserConnectedDeviceSettingUpdated & UserConnectedDeviceSettingUpdated.$Shape} UserConnectedDeviceSettingUpdated
304893
304904
  * @throws {Error} If the payload is not a reader or valid buffer
304894
304905
  * @throws {$protobuf.util.ProtocolError} If required fields are missing
304895
304906
  */
304896
- UserAppleHealthConnectionSettingUpdated.decode = function decode(reader, length, _end, _depth, _target) {
304907
+ UserConnectedDeviceSettingUpdated.decode = function decode(reader, length, _end, _depth, _target) {
304897
304908
  if (!(reader instanceof $Reader))
304898
304909
  reader = $Reader.create(reader);
304899
304910
  if (_depth === undefined)
304900
304911
  _depth = 0;
304901
304912
  if (_depth > $Reader.recursionLimit)
304902
304913
  throw Error("max depth exceeded");
304903
- var end = length === undefined ? reader.len : reader.pos + length, message = _target || new $root.UserAppleHealthConnectionSettingUpdated(), value;
304914
+ var end = length === undefined ? reader.len : reader.pos + length, message = _target || new $root.UserConnectedDeviceSettingUpdated(), value;
304904
304915
  while (reader.pos < end) {
304905
304916
  var start = reader.pos;
304906
304917
  var tag = reader.tag();
@@ -304937,6 +304948,15 @@ $root.UserAppleHealthConnectionSettingUpdated = (function() {
304937
304948
  delete message.updatedAt;
304938
304949
  continue;
304939
304950
  }
304951
+ case 4: {
304952
+ if (wireType !== 2)
304953
+ break;
304954
+ if ((value = reader.string()).length)
304955
+ message.source = value;
304956
+ else
304957
+ delete message.source;
304958
+ continue;
304959
+ }
304940
304960
  }
304941
304961
  reader.skipType(wireType, _depth, tag);
304942
304962
  $util.makeProp(message, "$unknowns", false);
@@ -304948,30 +304968,30 @@ $root.UserAppleHealthConnectionSettingUpdated = (function() {
304948
304968
  };
304949
304969
 
304950
304970
  /**
304951
- * Decodes a UserAppleHealthConnectionSettingUpdated message from the specified reader or buffer, length delimited.
304971
+ * Decodes a UserConnectedDeviceSettingUpdated message from the specified reader or buffer, length delimited.
304952
304972
  * @function decodeDelimited
304953
- * @memberof UserAppleHealthConnectionSettingUpdated
304973
+ * @memberof UserConnectedDeviceSettingUpdated
304954
304974
  * @static
304955
304975
  * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
304956
- * @returns {UserAppleHealthConnectionSettingUpdated & UserAppleHealthConnectionSettingUpdated.$Shape} UserAppleHealthConnectionSettingUpdated
304976
+ * @returns {UserConnectedDeviceSettingUpdated & UserConnectedDeviceSettingUpdated.$Shape} UserConnectedDeviceSettingUpdated
304957
304977
  * @throws {Error} If the payload is not a reader or valid buffer
304958
304978
  * @throws {$protobuf.util.ProtocolError} If required fields are missing
304959
304979
  */
304960
- UserAppleHealthConnectionSettingUpdated.decodeDelimited = function decodeDelimited(reader) {
304980
+ UserConnectedDeviceSettingUpdated.decodeDelimited = function decodeDelimited(reader) {
304961
304981
  if (!(reader instanceof $Reader))
304962
304982
  reader = new $Reader(reader);
304963
304983
  return this.decode(reader, reader.uint32());
304964
304984
  };
304965
304985
 
304966
304986
  /**
304967
- * Verifies a UserAppleHealthConnectionSettingUpdated message.
304987
+ * Verifies a UserConnectedDeviceSettingUpdated message.
304968
304988
  * @function verify
304969
- * @memberof UserAppleHealthConnectionSettingUpdated
304989
+ * @memberof UserConnectedDeviceSettingUpdated
304970
304990
  * @static
304971
304991
  * @param {Object.<string,*>} message Plain object to verify
304972
304992
  * @returns {string|null} `null` if valid, otherwise the reason why it is not
304973
304993
  */
304974
- UserAppleHealthConnectionSettingUpdated.verify = function verify(message, _depth) {
304994
+ UserConnectedDeviceSettingUpdated.verify = function verify(message, _depth) {
304975
304995
  if (typeof message !== "object" || message === null)
304976
304996
  return "object expected";
304977
304997
  if (_depth === undefined)
@@ -304987,25 +305007,28 @@ $root.UserAppleHealthConnectionSettingUpdated = (function() {
304987
305007
  if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
304988
305008
  if (!$util.isInteger(message.updatedAt) && !(message.updatedAt && $util.isInteger(message.updatedAt.low) && $util.isInteger(message.updatedAt.high)))
304989
305009
  return "updatedAt: integer|Long expected";
305010
+ if (message.source != null && message.hasOwnProperty("source"))
305011
+ if (!$util.isString(message.source))
305012
+ return "source: string expected";
304990
305013
  return null;
304991
305014
  };
304992
305015
 
304993
305016
  /**
304994
- * Creates a UserAppleHealthConnectionSettingUpdated message from a plain object. Also converts values to their respective internal types.
305017
+ * Creates a UserConnectedDeviceSettingUpdated message from a plain object. Also converts values to their respective internal types.
304995
305018
  * @function fromObject
304996
- * @memberof UserAppleHealthConnectionSettingUpdated
305019
+ * @memberof UserConnectedDeviceSettingUpdated
304997
305020
  * @static
304998
305021
  * @param {Object.<string,*>} object Plain object
304999
- * @returns {UserAppleHealthConnectionSettingUpdated} UserAppleHealthConnectionSettingUpdated
305022
+ * @returns {UserConnectedDeviceSettingUpdated} UserConnectedDeviceSettingUpdated
305000
305023
  */
305001
- UserAppleHealthConnectionSettingUpdated.fromObject = function fromObject(object, _depth) {
305002
- if (object instanceof $root.UserAppleHealthConnectionSettingUpdated)
305024
+ UserConnectedDeviceSettingUpdated.fromObject = function fromObject(object, _depth) {
305025
+ if (object instanceof $root.UserConnectedDeviceSettingUpdated)
305003
305026
  return object;
305004
305027
  if (_depth === undefined)
305005
305028
  _depth = 0;
305006
305029
  if (_depth > $util.recursionLimit)
305007
305030
  throw Error("max depth exceeded");
305008
- var message = new $root.UserAppleHealthConnectionSettingUpdated();
305031
+ var message = new $root.UserConnectedDeviceSettingUpdated();
305009
305032
  if (object.hsUserId != null)
305010
305033
  if (typeof object.hsUserId !== "string" || object.hsUserId.length)
305011
305034
  message.hsUserId = String(object.hsUserId);
@@ -305022,19 +305045,22 @@ $root.UserAppleHealthConnectionSettingUpdated = (function() {
305022
305045
  message.updatedAt = object.updatedAt;
305023
305046
  else if (typeof object.updatedAt === "object")
305024
305047
  message.updatedAt = new $util.LongBits(object.updatedAt.low >>> 0, object.updatedAt.high >>> 0).toNumber(true);
305048
+ if (object.source != null)
305049
+ if (typeof object.source !== "string" || object.source.length)
305050
+ message.source = String(object.source);
305025
305051
  return message;
305026
305052
  };
305027
305053
 
305028
305054
  /**
305029
- * Creates a plain object from a UserAppleHealthConnectionSettingUpdated message. Also converts values to other types if specified.
305055
+ * Creates a plain object from a UserConnectedDeviceSettingUpdated message. Also converts values to other types if specified.
305030
305056
  * @function toObject
305031
- * @memberof UserAppleHealthConnectionSettingUpdated
305057
+ * @memberof UserConnectedDeviceSettingUpdated
305032
305058
  * @static
305033
- * @param {UserAppleHealthConnectionSettingUpdated} message UserAppleHealthConnectionSettingUpdated
305059
+ * @param {UserConnectedDeviceSettingUpdated} message UserConnectedDeviceSettingUpdated
305034
305060
  * @param {$protobuf.IConversionOptions} [options] Conversion options
305035
305061
  * @returns {Object.<string,*>} Plain object
305036
305062
  */
305037
- UserAppleHealthConnectionSettingUpdated.toObject = function toObject(message, options) {
305063
+ UserConnectedDeviceSettingUpdated.toObject = function toObject(message, options) {
305038
305064
  if (!options)
305039
305065
  options = {};
305040
305066
  var object = {};
@@ -305046,6 +305072,7 @@ $root.UserAppleHealthConnectionSettingUpdated = (function() {
305046
305072
  object.updatedAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long;
305047
305073
  } else
305048
305074
  object.updatedAt = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0;
305075
+ object.source = "";
305049
305076
  }
305050
305077
  if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
305051
305078
  object.hsUserId = message.hsUserId;
@@ -305058,35 +305085,37 @@ $root.UserAppleHealthConnectionSettingUpdated = (function() {
305058
305085
  object.updatedAt = options.longs === String ? String(message.updatedAt) : message.updatedAt;
305059
305086
  else
305060
305087
  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;
305088
+ if (message.source != null && message.hasOwnProperty("source"))
305089
+ object.source = message.source;
305061
305090
  return object;
305062
305091
  };
305063
305092
 
305064
305093
  /**
305065
- * Converts this UserAppleHealthConnectionSettingUpdated to JSON.
305094
+ * Converts this UserConnectedDeviceSettingUpdated to JSON.
305066
305095
  * @function toJSON
305067
- * @memberof UserAppleHealthConnectionSettingUpdated
305096
+ * @memberof UserConnectedDeviceSettingUpdated
305068
305097
  * @instance
305069
305098
  * @returns {Object.<string,*>} JSON object
305070
305099
  */
305071
- UserAppleHealthConnectionSettingUpdated.prototype.toJSON = function toJSON() {
305100
+ UserConnectedDeviceSettingUpdated.prototype.toJSON = function toJSON() {
305072
305101
  return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
305073
305102
  };
305074
305103
 
305075
305104
  /**
305076
- * Gets the type url for UserAppleHealthConnectionSettingUpdated
305105
+ * Gets the type url for UserConnectedDeviceSettingUpdated
305077
305106
  * @function getTypeUrl
305078
- * @memberof UserAppleHealthConnectionSettingUpdated
305107
+ * @memberof UserConnectedDeviceSettingUpdated
305079
305108
  * @static
305080
305109
  * @param {string} [prefix] Custom type url prefix, defaults to `"type.googleapis.com"`
305081
305110
  * @returns {string} The type url
305082
305111
  */
305083
- UserAppleHealthConnectionSettingUpdated.getTypeUrl = function getTypeUrl(prefix) {
305112
+ UserConnectedDeviceSettingUpdated.getTypeUrl = function getTypeUrl(prefix) {
305084
305113
  if (prefix === undefined)
305085
305114
  prefix = "type.googleapis.com";
305086
- return prefix + "/UserAppleHealthConnectionSettingUpdated";
305115
+ return prefix + "/UserConnectedDeviceSettingUpdated";
305087
305116
  };
305088
305117
 
305089
- return UserAppleHealthConnectionSettingUpdated;
305118
+ return UserConnectedDeviceSettingUpdated;
305090
305119
  })();
305091
305120
 
305092
305121
  /**
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.812.0"
19
+ "version": "1.814.0"
20
20
  }