@headspace/protos-events 1.233.0 → 1.235.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
@@ -19084,6 +19084,9 @@ export interface IEnterpriseUserEnrollmentCreated {
19084
19084
 
19085
19085
  /** EnterpriseUserEnrollmentCreated isTelehealthEnabled */
19086
19086
  isTelehealthEnabled?: (boolean|null);
19087
+
19088
+ /** EnterpriseUserEnrollmentCreated ssoLinked */
19089
+ ssoLinked?: (boolean|null);
19087
19090
  }
19088
19091
 
19089
19092
  /** Represents an EnterpriseUserEnrollmentCreated. */
@@ -19149,6 +19152,9 @@ export class EnterpriseUserEnrollmentCreated implements IEnterpriseUserEnrollmen
19149
19152
  /** EnterpriseUserEnrollmentCreated isTelehealthEnabled. */
19150
19153
  public isTelehealthEnabled: boolean;
19151
19154
 
19155
+ /** EnterpriseUserEnrollmentCreated ssoLinked. */
19156
+ public ssoLinked: boolean;
19157
+
19152
19158
  /**
19153
19159
  * Creates a new EnterpriseUserEnrollmentCreated instance using the specified properties.
19154
19160
  * @param [properties] Properties to set
@@ -19279,6 +19285,9 @@ export interface IEnterpriseUserEnrollmentRemoved {
19279
19285
 
19280
19286
  /** EnterpriseUserEnrollmentRemoved isTelehealthEnabled */
19281
19287
  isTelehealthEnabled?: (boolean|null);
19288
+
19289
+ /** EnterpriseUserEnrollmentRemoved ssoLinked */
19290
+ ssoLinked?: (boolean|null);
19282
19291
  }
19283
19292
 
19284
19293
  /** Represents an EnterpriseUserEnrollmentRemoved. */
@@ -19347,6 +19356,9 @@ export class EnterpriseUserEnrollmentRemoved implements IEnterpriseUserEnrollmen
19347
19356
  /** EnterpriseUserEnrollmentRemoved isTelehealthEnabled. */
19348
19357
  public isTelehealthEnabled: boolean;
19349
19358
 
19359
+ /** EnterpriseUserEnrollmentRemoved ssoLinked. */
19360
+ public ssoLinked: boolean;
19361
+
19350
19362
  /**
19351
19363
  * Creates a new EnterpriseUserEnrollmentRemoved instance using the specified properties.
19352
19364
  * @param [properties] Properties to set
@@ -19474,6 +19486,9 @@ export interface IEnterpriseUserEnrollmentAmended {
19474
19486
 
19475
19487
  /** EnterpriseUserEnrollmentAmended isTelehealthEnabled */
19476
19488
  isTelehealthEnabled?: (boolean|null);
19489
+
19490
+ /** EnterpriseUserEnrollmentAmended ssoLinked */
19491
+ ssoLinked?: (boolean|null);
19477
19492
  }
19478
19493
 
19479
19494
  /** Represents an EnterpriseUserEnrollmentAmended. */
@@ -19539,6 +19554,9 @@ export class EnterpriseUserEnrollmentAmended implements IEnterpriseUserEnrollmen
19539
19554
  /** EnterpriseUserEnrollmentAmended isTelehealthEnabled. */
19540
19555
  public isTelehealthEnabled: boolean;
19541
19556
 
19557
+ /** EnterpriseUserEnrollmentAmended ssoLinked. */
19558
+ public ssoLinked: boolean;
19559
+
19542
19560
  /**
19543
19561
  * Creates a new EnterpriseUserEnrollmentAmended instance using the specified properties.
19544
19562
  * @param [properties] Properties to set
@@ -28220,6 +28238,108 @@ export class UserLanguagePreferenceUpdated implements IUserLanguagePreferenceUpd
28220
28238
  public toJSON(): { [k: string]: any };
28221
28239
  }
28222
28240
 
28241
+ /** Properties of a UserConsentUpdated. */
28242
+ export interface IUserConsentUpdated {
28243
+
28244
+ /** UserConsentUpdated userId */
28245
+ userId?: (string|null);
28246
+
28247
+ /** UserConsentUpdated code */
28248
+ code?: (string|null);
28249
+
28250
+ /** UserConsentUpdated status */
28251
+ status?: (string|null);
28252
+ }
28253
+
28254
+ /** Represents a UserConsentUpdated. */
28255
+ export class UserConsentUpdated implements IUserConsentUpdated {
28256
+
28257
+ /**
28258
+ * Constructs a new UserConsentUpdated.
28259
+ * @param [properties] Properties to set
28260
+ */
28261
+ constructor(properties?: IUserConsentUpdated);
28262
+
28263
+ /** UserConsentUpdated userId. */
28264
+ public userId: string;
28265
+
28266
+ /** UserConsentUpdated code. */
28267
+ public code: string;
28268
+
28269
+ /** UserConsentUpdated status. */
28270
+ public status: string;
28271
+
28272
+ /**
28273
+ * Creates a new UserConsentUpdated instance using the specified properties.
28274
+ * @param [properties] Properties to set
28275
+ * @returns UserConsentUpdated instance
28276
+ */
28277
+ public static create(properties?: IUserConsentUpdated): UserConsentUpdated;
28278
+
28279
+ /**
28280
+ * Encodes the specified UserConsentUpdated message. Does not implicitly {@link UserConsentUpdated.verify|verify} messages.
28281
+ * @param message UserConsentUpdated message or plain object to encode
28282
+ * @param [writer] Writer to encode to
28283
+ * @returns Writer
28284
+ */
28285
+ public static encode(message: IUserConsentUpdated, writer?: $protobuf.Writer): $protobuf.Writer;
28286
+
28287
+ /**
28288
+ * Encodes the specified UserConsentUpdated message, length delimited. Does not implicitly {@link UserConsentUpdated.verify|verify} messages.
28289
+ * @param message UserConsentUpdated message or plain object to encode
28290
+ * @param [writer] Writer to encode to
28291
+ * @returns Writer
28292
+ */
28293
+ public static encodeDelimited(message: IUserConsentUpdated, writer?: $protobuf.Writer): $protobuf.Writer;
28294
+
28295
+ /**
28296
+ * Decodes a UserConsentUpdated message from the specified reader or buffer.
28297
+ * @param reader Reader or buffer to decode from
28298
+ * @param [length] Message length if known beforehand
28299
+ * @returns UserConsentUpdated
28300
+ * @throws {Error} If the payload is not a reader or valid buffer
28301
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
28302
+ */
28303
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): UserConsentUpdated;
28304
+
28305
+ /**
28306
+ * Decodes a UserConsentUpdated message from the specified reader or buffer, length delimited.
28307
+ * @param reader Reader or buffer to decode from
28308
+ * @returns UserConsentUpdated
28309
+ * @throws {Error} If the payload is not a reader or valid buffer
28310
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
28311
+ */
28312
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): UserConsentUpdated;
28313
+
28314
+ /**
28315
+ * Verifies a UserConsentUpdated message.
28316
+ * @param message Plain object to verify
28317
+ * @returns `null` if valid, otherwise the reason why it is not
28318
+ */
28319
+ public static verify(message: { [k: string]: any }): (string|null);
28320
+
28321
+ /**
28322
+ * Creates a UserConsentUpdated message from a plain object. Also converts values to their respective internal types.
28323
+ * @param object Plain object
28324
+ * @returns UserConsentUpdated
28325
+ */
28326
+ public static fromObject(object: { [k: string]: any }): UserConsentUpdated;
28327
+
28328
+ /**
28329
+ * Creates a plain object from a UserConsentUpdated message. Also converts values to other types if specified.
28330
+ * @param message UserConsentUpdated
28331
+ * @param [options] Conversion options
28332
+ * @returns Plain object
28333
+ */
28334
+ public static toObject(message: UserConsentUpdated, options?: $protobuf.IConversionOptions): { [k: string]: any };
28335
+
28336
+ /**
28337
+ * Converts this UserConsentUpdated to JSON.
28338
+ * @returns JSON object
28339
+ */
28340
+ public toJSON(): { [k: string]: any };
28341
+ }
28342
+
28223
28343
  /** Properties of a VirginPulseAccountLinked. */
28224
28344
  export interface IVirginPulseAccountLinked {
28225
28345
 
package/lib/index.js CHANGED
@@ -52664,6 +52664,7 @@ $root.EnterpriseUserEnrollmentCreated = (function() {
52664
52664
  * @property {number|null} [orgMemberSubscriptionId] EnterpriseUserEnrollmentCreated orgMemberSubscriptionId
52665
52665
  * @property {string|null} [orgMemberCustomFields] EnterpriseUserEnrollmentCreated orgMemberCustomFields
52666
52666
  * @property {boolean|null} [isTelehealthEnabled] EnterpriseUserEnrollmentCreated isTelehealthEnabled
52667
+ * @property {boolean|null} [ssoLinked] EnterpriseUserEnrollmentCreated ssoLinked
52667
52668
  */
52668
52669
 
52669
52670
  /**
@@ -52825,6 +52826,14 @@ $root.EnterpriseUserEnrollmentCreated = (function() {
52825
52826
  */
52826
52827
  EnterpriseUserEnrollmentCreated.prototype.isTelehealthEnabled = false;
52827
52828
 
52829
+ /**
52830
+ * EnterpriseUserEnrollmentCreated ssoLinked.
52831
+ * @member {boolean} ssoLinked
52832
+ * @memberof EnterpriseUserEnrollmentCreated
52833
+ * @instance
52834
+ */
52835
+ EnterpriseUserEnrollmentCreated.prototype.ssoLinked = false;
52836
+
52828
52837
  /**
52829
52838
  * Creates a new EnterpriseUserEnrollmentCreated instance using the specified properties.
52830
52839
  * @function create
@@ -52885,6 +52894,8 @@ $root.EnterpriseUserEnrollmentCreated = (function() {
52885
52894
  writer.uint32(/* id 19, wireType 2 =*/154).string(message.orgMemberCustomFields);
52886
52895
  if (message.isTelehealthEnabled != null && message.hasOwnProperty("isTelehealthEnabled"))
52887
52896
  writer.uint32(/* id 20, wireType 0 =*/160).bool(message.isTelehealthEnabled);
52897
+ if (message.ssoLinked != null && message.hasOwnProperty("ssoLinked"))
52898
+ writer.uint32(/* id 21, wireType 0 =*/168).bool(message.ssoLinked);
52888
52899
  return writer;
52889
52900
  };
52890
52901
 
@@ -52973,6 +52984,9 @@ $root.EnterpriseUserEnrollmentCreated = (function() {
52973
52984
  case 20:
52974
52985
  message.isTelehealthEnabled = reader.bool();
52975
52986
  break;
52987
+ case 21:
52988
+ message.ssoLinked = reader.bool();
52989
+ break;
52976
52990
  default:
52977
52991
  reader.skipType(tag & 7);
52978
52992
  break;
@@ -53078,6 +53092,9 @@ $root.EnterpriseUserEnrollmentCreated = (function() {
53078
53092
  if (message.isTelehealthEnabled != null && message.hasOwnProperty("isTelehealthEnabled"))
53079
53093
  if (typeof message.isTelehealthEnabled !== "boolean")
53080
53094
  return "isTelehealthEnabled: boolean expected";
53095
+ if (message.ssoLinked != null && message.hasOwnProperty("ssoLinked"))
53096
+ if (typeof message.ssoLinked !== "boolean")
53097
+ return "ssoLinked: boolean expected";
53081
53098
  return null;
53082
53099
  };
53083
53100
 
@@ -53204,6 +53221,8 @@ $root.EnterpriseUserEnrollmentCreated = (function() {
53204
53221
  message.orgMemberCustomFields = String(object.orgMemberCustomFields);
53205
53222
  if (object.isTelehealthEnabled != null)
53206
53223
  message.isTelehealthEnabled = Boolean(object.isTelehealthEnabled);
53224
+ if (object.ssoLinked != null)
53225
+ message.ssoLinked = Boolean(object.ssoLinked);
53207
53226
  return message;
53208
53227
  };
53209
53228
 
@@ -53259,6 +53278,7 @@ $root.EnterpriseUserEnrollmentCreated = (function() {
53259
53278
  object.orgMemberSubscriptionId = 0;
53260
53279
  object.orgMemberCustomFields = "";
53261
53280
  object.isTelehealthEnabled = false;
53281
+ object.ssoLinked = false;
53262
53282
  }
53263
53283
  if (message.userId != null && message.hasOwnProperty("userId"))
53264
53284
  object.userId = message.userId;
@@ -53311,6 +53331,8 @@ $root.EnterpriseUserEnrollmentCreated = (function() {
53311
53331
  object.orgMemberCustomFields = message.orgMemberCustomFields;
53312
53332
  if (message.isTelehealthEnabled != null && message.hasOwnProperty("isTelehealthEnabled"))
53313
53333
  object.isTelehealthEnabled = message.isTelehealthEnabled;
53334
+ if (message.ssoLinked != null && message.hasOwnProperty("ssoLinked"))
53335
+ object.ssoLinked = message.ssoLinked;
53314
53336
  return object;
53315
53337
  };
53316
53338
 
@@ -53353,6 +53375,7 @@ $root.EnterpriseUserEnrollmentRemoved = (function() {
53353
53375
  * @property {number|null} [orgMemberSubscriptionId] EnterpriseUserEnrollmentRemoved orgMemberSubscriptionId
53354
53376
  * @property {string|null} [orgMemberCustomFields] EnterpriseUserEnrollmentRemoved orgMemberCustomFields
53355
53377
  * @property {boolean|null} [isTelehealthEnabled] EnterpriseUserEnrollmentRemoved isTelehealthEnabled
53378
+ * @property {boolean|null} [ssoLinked] EnterpriseUserEnrollmentRemoved ssoLinked
53356
53379
  */
53357
53380
 
53358
53381
  /**
@@ -53522,6 +53545,14 @@ $root.EnterpriseUserEnrollmentRemoved = (function() {
53522
53545
  */
53523
53546
  EnterpriseUserEnrollmentRemoved.prototype.isTelehealthEnabled = false;
53524
53547
 
53548
+ /**
53549
+ * EnterpriseUserEnrollmentRemoved ssoLinked.
53550
+ * @member {boolean} ssoLinked
53551
+ * @memberof EnterpriseUserEnrollmentRemoved
53552
+ * @instance
53553
+ */
53554
+ EnterpriseUserEnrollmentRemoved.prototype.ssoLinked = false;
53555
+
53525
53556
  /**
53526
53557
  * Creates a new EnterpriseUserEnrollmentRemoved instance using the specified properties.
53527
53558
  * @function create
@@ -53584,6 +53615,8 @@ $root.EnterpriseUserEnrollmentRemoved = (function() {
53584
53615
  writer.uint32(/* id 20, wireType 2 =*/162).string(message.orgMemberCustomFields);
53585
53616
  if (message.isTelehealthEnabled != null && message.hasOwnProperty("isTelehealthEnabled"))
53586
53617
  writer.uint32(/* id 21, wireType 0 =*/168).bool(message.isTelehealthEnabled);
53618
+ if (message.ssoLinked != null && message.hasOwnProperty("ssoLinked"))
53619
+ writer.uint32(/* id 22, wireType 0 =*/176).bool(message.ssoLinked);
53587
53620
  return writer;
53588
53621
  };
53589
53622
 
@@ -53675,6 +53708,9 @@ $root.EnterpriseUserEnrollmentRemoved = (function() {
53675
53708
  case 21:
53676
53709
  message.isTelehealthEnabled = reader.bool();
53677
53710
  break;
53711
+ case 22:
53712
+ message.ssoLinked = reader.bool();
53713
+ break;
53678
53714
  default:
53679
53715
  reader.skipType(tag & 7);
53680
53716
  break;
@@ -53793,6 +53829,9 @@ $root.EnterpriseUserEnrollmentRemoved = (function() {
53793
53829
  if (message.isTelehealthEnabled != null && message.hasOwnProperty("isTelehealthEnabled"))
53794
53830
  if (typeof message.isTelehealthEnabled !== "boolean")
53795
53831
  return "isTelehealthEnabled: boolean expected";
53832
+ if (message.ssoLinked != null && message.hasOwnProperty("ssoLinked"))
53833
+ if (typeof message.ssoLinked !== "boolean")
53834
+ return "ssoLinked: boolean expected";
53796
53835
  return null;
53797
53836
  };
53798
53837
 
@@ -53949,6 +53988,8 @@ $root.EnterpriseUserEnrollmentRemoved = (function() {
53949
53988
  message.orgMemberCustomFields = String(object.orgMemberCustomFields);
53950
53989
  if (object.isTelehealthEnabled != null)
53951
53990
  message.isTelehealthEnabled = Boolean(object.isTelehealthEnabled);
53991
+ if (object.ssoLinked != null)
53992
+ message.ssoLinked = Boolean(object.ssoLinked);
53952
53993
  return message;
53953
53994
  };
53954
53995
 
@@ -54005,6 +54046,7 @@ $root.EnterpriseUserEnrollmentRemoved = (function() {
54005
54046
  object.orgMemberSubscriptionId = 0;
54006
54047
  object.orgMemberCustomFields = "";
54007
54048
  object.isTelehealthEnabled = false;
54049
+ object.ssoLinked = false;
54008
54050
  }
54009
54051
  if (message.userId != null && message.hasOwnProperty("userId"))
54010
54052
  object.userId = message.userId;
@@ -54059,6 +54101,8 @@ $root.EnterpriseUserEnrollmentRemoved = (function() {
54059
54101
  object.orgMemberCustomFields = message.orgMemberCustomFields;
54060
54102
  if (message.isTelehealthEnabled != null && message.hasOwnProperty("isTelehealthEnabled"))
54061
54103
  object.isTelehealthEnabled = message.isTelehealthEnabled;
54104
+ if (message.ssoLinked != null && message.hasOwnProperty("ssoLinked"))
54105
+ object.ssoLinked = message.ssoLinked;
54062
54106
  return object;
54063
54107
  };
54064
54108
 
@@ -54100,6 +54144,7 @@ $root.EnterpriseUserEnrollmentAmended = (function() {
54100
54144
  * @property {number|null} [orgMemberSubscriptionId] EnterpriseUserEnrollmentAmended orgMemberSubscriptionId
54101
54145
  * @property {string|null} [orgMemberCustomFields] EnterpriseUserEnrollmentAmended orgMemberCustomFields
54102
54146
  * @property {boolean|null} [isTelehealthEnabled] EnterpriseUserEnrollmentAmended isTelehealthEnabled
54147
+ * @property {boolean|null} [ssoLinked] EnterpriseUserEnrollmentAmended ssoLinked
54103
54148
  */
54104
54149
 
54105
54150
  /**
@@ -54261,6 +54306,14 @@ $root.EnterpriseUserEnrollmentAmended = (function() {
54261
54306
  */
54262
54307
  EnterpriseUserEnrollmentAmended.prototype.isTelehealthEnabled = false;
54263
54308
 
54309
+ /**
54310
+ * EnterpriseUserEnrollmentAmended ssoLinked.
54311
+ * @member {boolean} ssoLinked
54312
+ * @memberof EnterpriseUserEnrollmentAmended
54313
+ * @instance
54314
+ */
54315
+ EnterpriseUserEnrollmentAmended.prototype.ssoLinked = false;
54316
+
54264
54317
  /**
54265
54318
  * Creates a new EnterpriseUserEnrollmentAmended instance using the specified properties.
54266
54319
  * @function create
@@ -54321,6 +54374,8 @@ $root.EnterpriseUserEnrollmentAmended = (function() {
54321
54374
  writer.uint32(/* id 19, wireType 2 =*/154).string(message.orgMemberCustomFields);
54322
54375
  if (message.isTelehealthEnabled != null && message.hasOwnProperty("isTelehealthEnabled"))
54323
54376
  writer.uint32(/* id 20, wireType 0 =*/160).bool(message.isTelehealthEnabled);
54377
+ if (message.ssoLinked != null && message.hasOwnProperty("ssoLinked"))
54378
+ writer.uint32(/* id 21, wireType 0 =*/168).bool(message.ssoLinked);
54324
54379
  return writer;
54325
54380
  };
54326
54381
 
@@ -54409,6 +54464,9 @@ $root.EnterpriseUserEnrollmentAmended = (function() {
54409
54464
  case 20:
54410
54465
  message.isTelehealthEnabled = reader.bool();
54411
54466
  break;
54467
+ case 21:
54468
+ message.ssoLinked = reader.bool();
54469
+ break;
54412
54470
  default:
54413
54471
  reader.skipType(tag & 7);
54414
54472
  break;
@@ -54514,6 +54572,9 @@ $root.EnterpriseUserEnrollmentAmended = (function() {
54514
54572
  if (message.isTelehealthEnabled != null && message.hasOwnProperty("isTelehealthEnabled"))
54515
54573
  if (typeof message.isTelehealthEnabled !== "boolean")
54516
54574
  return "isTelehealthEnabled: boolean expected";
54575
+ if (message.ssoLinked != null && message.hasOwnProperty("ssoLinked"))
54576
+ if (typeof message.ssoLinked !== "boolean")
54577
+ return "ssoLinked: boolean expected";
54517
54578
  return null;
54518
54579
  };
54519
54580
 
@@ -54640,6 +54701,8 @@ $root.EnterpriseUserEnrollmentAmended = (function() {
54640
54701
  message.orgMemberCustomFields = String(object.orgMemberCustomFields);
54641
54702
  if (object.isTelehealthEnabled != null)
54642
54703
  message.isTelehealthEnabled = Boolean(object.isTelehealthEnabled);
54704
+ if (object.ssoLinked != null)
54705
+ message.ssoLinked = Boolean(object.ssoLinked);
54643
54706
  return message;
54644
54707
  };
54645
54708
 
@@ -54695,6 +54758,7 @@ $root.EnterpriseUserEnrollmentAmended = (function() {
54695
54758
  object.orgMemberSubscriptionId = 0;
54696
54759
  object.orgMemberCustomFields = "";
54697
54760
  object.isTelehealthEnabled = false;
54761
+ object.ssoLinked = false;
54698
54762
  }
54699
54763
  if (message.userId != null && message.hasOwnProperty("userId"))
54700
54764
  object.userId = message.userId;
@@ -54747,6 +54811,8 @@ $root.EnterpriseUserEnrollmentAmended = (function() {
54747
54811
  object.orgMemberCustomFields = message.orgMemberCustomFields;
54748
54812
  if (message.isTelehealthEnabled != null && message.hasOwnProperty("isTelehealthEnabled"))
54749
54813
  object.isTelehealthEnabled = message.isTelehealthEnabled;
54814
+ if (message.ssoLinked != null && message.hasOwnProperty("ssoLinked"))
54815
+ object.ssoLinked = message.ssoLinked;
54750
54816
  return object;
54751
54817
  };
54752
54818
 
@@ -80446,6 +80512,238 @@ $root.UserLanguagePreferenceUpdated = (function() {
80446
80512
  return UserLanguagePreferenceUpdated;
80447
80513
  })();
80448
80514
 
80515
+ $root.UserConsentUpdated = (function() {
80516
+
80517
+ /**
80518
+ * Properties of a UserConsentUpdated.
80519
+ * @exports IUserConsentUpdated
80520
+ * @interface IUserConsentUpdated
80521
+ * @property {string|null} [userId] UserConsentUpdated userId
80522
+ * @property {string|null} [code] UserConsentUpdated code
80523
+ * @property {string|null} [status] UserConsentUpdated status
80524
+ */
80525
+
80526
+ /**
80527
+ * Constructs a new UserConsentUpdated.
80528
+ * @exports UserConsentUpdated
80529
+ * @classdesc Represents a UserConsentUpdated.
80530
+ * @implements IUserConsentUpdated
80531
+ * @constructor
80532
+ * @param {IUserConsentUpdated=} [properties] Properties to set
80533
+ */
80534
+ function UserConsentUpdated(properties) {
80535
+ if (properties)
80536
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
80537
+ if (properties[keys[i]] != null)
80538
+ this[keys[i]] = properties[keys[i]];
80539
+ }
80540
+
80541
+ /**
80542
+ * UserConsentUpdated userId.
80543
+ * @member {string} userId
80544
+ * @memberof UserConsentUpdated
80545
+ * @instance
80546
+ */
80547
+ UserConsentUpdated.prototype.userId = "";
80548
+
80549
+ /**
80550
+ * UserConsentUpdated code.
80551
+ * @member {string} code
80552
+ * @memberof UserConsentUpdated
80553
+ * @instance
80554
+ */
80555
+ UserConsentUpdated.prototype.code = "";
80556
+
80557
+ /**
80558
+ * UserConsentUpdated status.
80559
+ * @member {string} status
80560
+ * @memberof UserConsentUpdated
80561
+ * @instance
80562
+ */
80563
+ UserConsentUpdated.prototype.status = "";
80564
+
80565
+ /**
80566
+ * Creates a new UserConsentUpdated instance using the specified properties.
80567
+ * @function create
80568
+ * @memberof UserConsentUpdated
80569
+ * @static
80570
+ * @param {IUserConsentUpdated=} [properties] Properties to set
80571
+ * @returns {UserConsentUpdated} UserConsentUpdated instance
80572
+ */
80573
+ UserConsentUpdated.create = function create(properties) {
80574
+ return new UserConsentUpdated(properties);
80575
+ };
80576
+
80577
+ /**
80578
+ * Encodes the specified UserConsentUpdated message. Does not implicitly {@link UserConsentUpdated.verify|verify} messages.
80579
+ * @function encode
80580
+ * @memberof UserConsentUpdated
80581
+ * @static
80582
+ * @param {IUserConsentUpdated} message UserConsentUpdated message or plain object to encode
80583
+ * @param {$protobuf.Writer} [writer] Writer to encode to
80584
+ * @returns {$protobuf.Writer} Writer
80585
+ */
80586
+ UserConsentUpdated.encode = function encode(message, writer) {
80587
+ if (!writer)
80588
+ writer = $Writer.create();
80589
+ if (message.userId != null && message.hasOwnProperty("userId"))
80590
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.userId);
80591
+ if (message.code != null && message.hasOwnProperty("code"))
80592
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.code);
80593
+ if (message.status != null && message.hasOwnProperty("status"))
80594
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.status);
80595
+ return writer;
80596
+ };
80597
+
80598
+ /**
80599
+ * Encodes the specified UserConsentUpdated message, length delimited. Does not implicitly {@link UserConsentUpdated.verify|verify} messages.
80600
+ * @function encodeDelimited
80601
+ * @memberof UserConsentUpdated
80602
+ * @static
80603
+ * @param {IUserConsentUpdated} message UserConsentUpdated message or plain object to encode
80604
+ * @param {$protobuf.Writer} [writer] Writer to encode to
80605
+ * @returns {$protobuf.Writer} Writer
80606
+ */
80607
+ UserConsentUpdated.encodeDelimited = function encodeDelimited(message, writer) {
80608
+ return this.encode(message, writer).ldelim();
80609
+ };
80610
+
80611
+ /**
80612
+ * Decodes a UserConsentUpdated message from the specified reader or buffer.
80613
+ * @function decode
80614
+ * @memberof UserConsentUpdated
80615
+ * @static
80616
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
80617
+ * @param {number} [length] Message length if known beforehand
80618
+ * @returns {UserConsentUpdated} UserConsentUpdated
80619
+ * @throws {Error} If the payload is not a reader or valid buffer
80620
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
80621
+ */
80622
+ UserConsentUpdated.decode = function decode(reader, length) {
80623
+ if (!(reader instanceof $Reader))
80624
+ reader = $Reader.create(reader);
80625
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.UserConsentUpdated();
80626
+ while (reader.pos < end) {
80627
+ var tag = reader.uint32();
80628
+ switch (tag >>> 3) {
80629
+ case 1:
80630
+ message.userId = reader.string();
80631
+ break;
80632
+ case 2:
80633
+ message.code = reader.string();
80634
+ break;
80635
+ case 3:
80636
+ message.status = reader.string();
80637
+ break;
80638
+ default:
80639
+ reader.skipType(tag & 7);
80640
+ break;
80641
+ }
80642
+ }
80643
+ return message;
80644
+ };
80645
+
80646
+ /**
80647
+ * Decodes a UserConsentUpdated message from the specified reader or buffer, length delimited.
80648
+ * @function decodeDelimited
80649
+ * @memberof UserConsentUpdated
80650
+ * @static
80651
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
80652
+ * @returns {UserConsentUpdated} UserConsentUpdated
80653
+ * @throws {Error} If the payload is not a reader or valid buffer
80654
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
80655
+ */
80656
+ UserConsentUpdated.decodeDelimited = function decodeDelimited(reader) {
80657
+ if (!(reader instanceof $Reader))
80658
+ reader = new $Reader(reader);
80659
+ return this.decode(reader, reader.uint32());
80660
+ };
80661
+
80662
+ /**
80663
+ * Verifies a UserConsentUpdated message.
80664
+ * @function verify
80665
+ * @memberof UserConsentUpdated
80666
+ * @static
80667
+ * @param {Object.<string,*>} message Plain object to verify
80668
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
80669
+ */
80670
+ UserConsentUpdated.verify = function verify(message) {
80671
+ if (typeof message !== "object" || message === null)
80672
+ return "object expected";
80673
+ if (message.userId != null && message.hasOwnProperty("userId"))
80674
+ if (!$util.isString(message.userId))
80675
+ return "userId: string expected";
80676
+ if (message.code != null && message.hasOwnProperty("code"))
80677
+ if (!$util.isString(message.code))
80678
+ return "code: string expected";
80679
+ if (message.status != null && message.hasOwnProperty("status"))
80680
+ if (!$util.isString(message.status))
80681
+ return "status: string expected";
80682
+ return null;
80683
+ };
80684
+
80685
+ /**
80686
+ * Creates a UserConsentUpdated message from a plain object. Also converts values to their respective internal types.
80687
+ * @function fromObject
80688
+ * @memberof UserConsentUpdated
80689
+ * @static
80690
+ * @param {Object.<string,*>} object Plain object
80691
+ * @returns {UserConsentUpdated} UserConsentUpdated
80692
+ */
80693
+ UserConsentUpdated.fromObject = function fromObject(object) {
80694
+ if (object instanceof $root.UserConsentUpdated)
80695
+ return object;
80696
+ var message = new $root.UserConsentUpdated();
80697
+ if (object.userId != null)
80698
+ message.userId = String(object.userId);
80699
+ if (object.code != null)
80700
+ message.code = String(object.code);
80701
+ if (object.status != null)
80702
+ message.status = String(object.status);
80703
+ return message;
80704
+ };
80705
+
80706
+ /**
80707
+ * Creates a plain object from a UserConsentUpdated message. Also converts values to other types if specified.
80708
+ * @function toObject
80709
+ * @memberof UserConsentUpdated
80710
+ * @static
80711
+ * @param {UserConsentUpdated} message UserConsentUpdated
80712
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
80713
+ * @returns {Object.<string,*>} Plain object
80714
+ */
80715
+ UserConsentUpdated.toObject = function toObject(message, options) {
80716
+ if (!options)
80717
+ options = {};
80718
+ var object = {};
80719
+ if (options.defaults) {
80720
+ object.userId = "";
80721
+ object.code = "";
80722
+ object.status = "";
80723
+ }
80724
+ if (message.userId != null && message.hasOwnProperty("userId"))
80725
+ object.userId = message.userId;
80726
+ if (message.code != null && message.hasOwnProperty("code"))
80727
+ object.code = message.code;
80728
+ if (message.status != null && message.hasOwnProperty("status"))
80729
+ object.status = message.status;
80730
+ return object;
80731
+ };
80732
+
80733
+ /**
80734
+ * Converts this UserConsentUpdated to JSON.
80735
+ * @function toJSON
80736
+ * @memberof UserConsentUpdated
80737
+ * @instance
80738
+ * @returns {Object.<string,*>} JSON object
80739
+ */
80740
+ UserConsentUpdated.prototype.toJSON = function toJSON() {
80741
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
80742
+ };
80743
+
80744
+ return UserConsentUpdated;
80745
+ })();
80746
+
80449
80747
  $root.VirginPulseAccountLinked = (function() {
80450
80748
 
80451
80749
  /**
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.233.0"
19
+ "version": "1.235.0"
20
20
  }