@headspace/protos-events 1.190.0 → 1.195.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
@@ -3318,7 +3318,8 @@ export namespace b2b {
3318
3318
  REMOVAL_REASON_GRACEFUL_EXIT = 1,
3319
3319
  REMOVAL_REASON_MANUAL = 2,
3320
3320
  REMOVAL_REASON_EXPIRATION = 3,
3321
- REMOVAL_REASON_MERGE_ORGS = 4
3321
+ REMOVAL_REASON_MERGE_ORGS = 4,
3322
+ REMOVAL_REASON_ROLLOVER = 5
3322
3323
  }
3323
3324
 
3324
3325
  /** OrgMemberPlan enum. */
@@ -4602,6 +4603,12 @@ export namespace userdomain {
4602
4603
  CONNSRC_SPOTIFY = 3,
4603
4604
  CONNSRC_APPLE = 4
4604
4605
  }
4606
+
4607
+ /** UserDeleteReason enum. */
4608
+ enum UserDeleteReason {
4609
+ UNKNOWN_REASON = 0,
4610
+ INACTIVE = 1
4611
+ }
4605
4612
  }
4606
4613
  }
4607
4614
 
@@ -8375,6 +8382,9 @@ export interface IContentfulActivityGroupCreated {
8375
8382
 
8376
8383
  /** ContentfulActivityGroupCreated createdAt */
8377
8384
  createdAt?: (number|Long|null);
8385
+
8386
+ /** ContentfulActivityGroupCreated playerBackgroundMedia */
8387
+ playerBackgroundMedia?: ({ [k: string]: contentful.IIdReference }|null);
8378
8388
  }
8379
8389
 
8380
8390
  /** Represents a ContentfulActivityGroupCreated. */
@@ -8446,6 +8456,9 @@ export class ContentfulActivityGroupCreated implements IContentfulActivityGroupC
8446
8456
  /** ContentfulActivityGroupCreated createdAt. */
8447
8457
  public createdAt: (number|Long);
8448
8458
 
8459
+ /** ContentfulActivityGroupCreated playerBackgroundMedia. */
8460
+ public playerBackgroundMedia: { [k: string]: contentful.IIdReference };
8461
+
8449
8462
  /**
8450
8463
  * Creates a new ContentfulActivityGroupCreated instance using the specified properties.
8451
8464
  * @param [properties] Properties to set
@@ -8579,6 +8592,9 @@ export interface IContentfulActivityGroupUpdated {
8579
8592
 
8580
8593
  /** ContentfulActivityGroupUpdated updatedAt */
8581
8594
  updatedAt?: (number|Long|null);
8595
+
8596
+ /** ContentfulActivityGroupUpdated playerBackgroundMedia */
8597
+ playerBackgroundMedia?: ({ [k: string]: contentful.IIdReference }|null);
8582
8598
  }
8583
8599
 
8584
8600
  /** Represents a ContentfulActivityGroupUpdated. */
@@ -8650,6 +8666,9 @@ export class ContentfulActivityGroupUpdated implements IContentfulActivityGroupU
8650
8666
  /** ContentfulActivityGroupUpdated updatedAt. */
8651
8667
  public updatedAt: (number|Long);
8652
8668
 
8669
+ /** ContentfulActivityGroupUpdated playerBackgroundMedia. */
8670
+ public playerBackgroundMedia: { [k: string]: contentful.IIdReference };
8671
+
8653
8672
  /**
8654
8673
  * Creates a new ContentfulActivityGroupUpdated instance using the specified properties.
8655
8674
  * @param [properties] Properties to set
@@ -11855,6 +11874,9 @@ export interface IUserDomainDeleted {
11855
11874
 
11856
11875
  /** UserDomainDeleted deletedAt */
11857
11876
  deletedAt?: (number|Long|null);
11877
+
11878
+ /** UserDomainDeleted deleteReason */
11879
+ deleteReason?: (userdomain.users.UserDeleteReason|null);
11858
11880
  }
11859
11881
 
11860
11882
  /** Represents a UserDomainDeleted. */
@@ -11872,6 +11894,9 @@ export class UserDomainDeleted implements IUserDomainDeleted {
11872
11894
  /** UserDomainDeleted deletedAt. */
11873
11895
  public deletedAt: (number|Long);
11874
11896
 
11897
+ /** UserDomainDeleted deleteReason. */
11898
+ public deleteReason: userdomain.users.UserDeleteReason;
11899
+
11875
11900
  /**
11876
11901
  * Creates a new UserDomainDeleted instance using the specified properties.
11877
11902
  * @param [properties] Properties to set
@@ -14758,8 +14783,8 @@ export interface ISleepcastCreated {
14758
14783
  /** SleepcastCreated entityId */
14759
14784
  entityId?: (string|null);
14760
14785
 
14761
- /** SleepcastCreated tileBackgroundMedia */
14762
- tileBackgroundMedia?: ({ [k: string]: contentful.IIdReference }|null);
14786
+ /** SleepcastCreated tileBackgroundMediaId */
14787
+ tileBackgroundMediaId?: (number|null);
14763
14788
 
14764
14789
  /** SleepcastCreated accessGroup */
14765
14790
  accessGroup?: (contentful.ISlugReference[]|null);
@@ -14783,8 +14808,8 @@ export class SleepcastCreated implements ISleepcastCreated {
14783
14808
  /** SleepcastCreated entityId. */
14784
14809
  public entityId: string;
14785
14810
 
14786
- /** SleepcastCreated tileBackgroundMedia. */
14787
- public tileBackgroundMedia: { [k: string]: contentful.IIdReference };
14811
+ /** SleepcastCreated tileBackgroundMediaId. */
14812
+ public tileBackgroundMediaId: number;
14788
14813
 
14789
14814
  /** SleepcastCreated accessGroup. */
14790
14815
  public accessGroup: contentful.ISlugReference[];
@@ -14872,8 +14897,8 @@ export interface ISleepcastUpdated {
14872
14897
  /** SleepcastUpdated entityId */
14873
14898
  entityId?: (string|null);
14874
14899
 
14875
- /** SleepcastUpdated tileBackgroundMedia */
14876
- tileBackgroundMedia?: ({ [k: string]: contentful.IIdReference }|null);
14900
+ /** SleepcastUpdated tileBackgroundMediaId */
14901
+ tileBackgroundMediaId?: (number|null);
14877
14902
 
14878
14903
  /** SleepcastUpdated accessGroup */
14879
14904
  accessGroup?: (contentful.ISlugReference[]|null);
@@ -14897,8 +14922,8 @@ export class SleepcastUpdated implements ISleepcastUpdated {
14897
14922
  /** SleepcastUpdated entityId. */
14898
14923
  public entityId: string;
14899
14924
 
14900
- /** SleepcastUpdated tileBackgroundMedia. */
14901
- public tileBackgroundMedia: { [k: string]: contentful.IIdReference };
14925
+ /** SleepcastUpdated tileBackgroundMediaId. */
14926
+ public tileBackgroundMediaId: number;
14902
14927
 
14903
14928
  /** SleepcastUpdated accessGroup. */
14904
14929
  public accessGroup: contentful.ISlugReference[];
package/lib/index.js CHANGED
@@ -7522,6 +7522,7 @@ $root.b2b = (function() {
7522
7522
  * @property {number} REMOVAL_REASON_MANUAL=2 REMOVAL_REASON_MANUAL value
7523
7523
  * @property {number} REMOVAL_REASON_EXPIRATION=3 REMOVAL_REASON_EXPIRATION value
7524
7524
  * @property {number} REMOVAL_REASON_MERGE_ORGS=4 REMOVAL_REASON_MERGE_ORGS value
7525
+ * @property {number} REMOVAL_REASON_ROLLOVER=5 REMOVAL_REASON_ROLLOVER value
7525
7526
  */
7526
7527
  b2b.OrgMemberRemovalReason = (function() {
7527
7528
  var valuesById = {}, values = Object.create(valuesById);
@@ -7530,6 +7531,7 @@ $root.b2b = (function() {
7530
7531
  values[valuesById[2] = "REMOVAL_REASON_MANUAL"] = 2;
7531
7532
  values[valuesById[3] = "REMOVAL_REASON_EXPIRATION"] = 3;
7532
7533
  values[valuesById[4] = "REMOVAL_REASON_MERGE_ORGS"] = 4;
7534
+ values[valuesById[5] = "REMOVAL_REASON_ROLLOVER"] = 5;
7533
7535
  return values;
7534
7536
  })();
7535
7537
 
@@ -11049,6 +11051,20 @@ $root.userdomain = (function() {
11049
11051
  return values;
11050
11052
  })();
11051
11053
 
11054
+ /**
11055
+ * UserDeleteReason enum.
11056
+ * @name userdomain.users.UserDeleteReason
11057
+ * @enum {string}
11058
+ * @property {number} UNKNOWN_REASON=0 UNKNOWN_REASON value
11059
+ * @property {number} INACTIVE=1 INACTIVE value
11060
+ */
11061
+ users.UserDeleteReason = (function() {
11062
+ var valuesById = {}, values = Object.create(valuesById);
11063
+ values[valuesById[0] = "UNKNOWN_REASON"] = 0;
11064
+ values[valuesById[1] = "INACTIVE"] = 1;
11065
+ return values;
11066
+ })();
11067
+
11052
11068
  return users;
11053
11069
  })();
11054
11070
 
@@ -22323,6 +22339,7 @@ $root.ContentfulActivityGroupCreated = (function() {
22323
22339
  * @property {Array.<contentful.ISlugReference>|null} [related] ContentfulActivityGroupCreated related
22324
22340
  * @property {Array.<contentful.ISlugReference>|null} [accessGroup] ContentfulActivityGroupCreated accessGroup
22325
22341
  * @property {number|Long|null} [createdAt] ContentfulActivityGroupCreated createdAt
22342
+ * @property {Object.<string,contentful.IIdReference>|null} [playerBackgroundMedia] ContentfulActivityGroupCreated playerBackgroundMedia
22326
22343
  */
22327
22344
 
22328
22345
  /**
@@ -22343,6 +22360,7 @@ $root.ContentfulActivityGroupCreated = (function() {
22343
22360
  this.techniques = [];
22344
22361
  this.related = [];
22345
22362
  this.accessGroup = [];
22363
+ this.playerBackgroundMedia = {};
22346
22364
  if (properties)
22347
22365
  for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
22348
22366
  if (properties[keys[i]] != null)
@@ -22509,6 +22527,14 @@ $root.ContentfulActivityGroupCreated = (function() {
22509
22527
  */
22510
22528
  ContentfulActivityGroupCreated.prototype.createdAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
22511
22529
 
22530
+ /**
22531
+ * ContentfulActivityGroupCreated playerBackgroundMedia.
22532
+ * @member {Object.<string,contentful.IIdReference>} playerBackgroundMedia
22533
+ * @memberof ContentfulActivityGroupCreated
22534
+ * @instance
22535
+ */
22536
+ ContentfulActivityGroupCreated.prototype.playerBackgroundMedia = $util.emptyObject;
22537
+
22512
22538
  /**
22513
22539
  * Creates a new ContentfulActivityGroupCreated instance using the specified properties.
22514
22540
  * @function create
@@ -22586,6 +22612,11 @@ $root.ContentfulActivityGroupCreated = (function() {
22586
22612
  $root.contentful.SlugReference.encode(message.accessGroup[i], writer.uint32(/* id 19, wireType 2 =*/154).fork()).ldelim();
22587
22613
  if (message.createdAt != null && message.hasOwnProperty("createdAt"))
22588
22614
  writer.uint32(/* id 20, wireType 0 =*/160).uint64(message.createdAt);
22615
+ if (message.playerBackgroundMedia != null && message.hasOwnProperty("playerBackgroundMedia"))
22616
+ for (var keys = Object.keys(message.playerBackgroundMedia), i = 0; i < keys.length; ++i) {
22617
+ writer.uint32(/* id 21, wireType 2 =*/170).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]);
22618
+ $root.contentful.IdReference.encode(message.playerBackgroundMedia[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim();
22619
+ }
22589
22620
  return writer;
22590
22621
  };
22591
22622
 
@@ -22713,6 +22744,14 @@ $root.ContentfulActivityGroupCreated = (function() {
22713
22744
  case 20:
22714
22745
  message.createdAt = reader.uint64();
22715
22746
  break;
22747
+ case 21:
22748
+ reader.skip().pos++;
22749
+ if (message.playerBackgroundMedia === $util.emptyObject)
22750
+ message.playerBackgroundMedia = {};
22751
+ key = reader.string();
22752
+ reader.pos++;
22753
+ message.playerBackgroundMedia[key] = $root.contentful.IdReference.decode(reader, reader.uint32());
22754
+ break;
22716
22755
  default:
22717
22756
  reader.skipType(tag & 7);
22718
22757
  break;
@@ -22861,6 +22900,16 @@ $root.ContentfulActivityGroupCreated = (function() {
22861
22900
  if (message.createdAt != null && message.hasOwnProperty("createdAt"))
22862
22901
  if (!$util.isInteger(message.createdAt) && !(message.createdAt && $util.isInteger(message.createdAt.low) && $util.isInteger(message.createdAt.high)))
22863
22902
  return "createdAt: integer|Long expected";
22903
+ if (message.playerBackgroundMedia != null && message.hasOwnProperty("playerBackgroundMedia")) {
22904
+ if (!$util.isObject(message.playerBackgroundMedia))
22905
+ return "playerBackgroundMedia: object expected";
22906
+ var key = Object.keys(message.playerBackgroundMedia);
22907
+ for (var i = 0; i < key.length; ++i) {
22908
+ var error = $root.contentful.IdReference.verify(message.playerBackgroundMedia[key[i]]);
22909
+ if (error)
22910
+ return "playerBackgroundMedia." + error;
22911
+ }
22912
+ }
22864
22913
  return null;
22865
22914
  };
22866
22915
 
@@ -22986,6 +23035,16 @@ $root.ContentfulActivityGroupCreated = (function() {
22986
23035
  message.createdAt = object.createdAt;
22987
23036
  else if (typeof object.createdAt === "object")
22988
23037
  message.createdAt = new $util.LongBits(object.createdAt.low >>> 0, object.createdAt.high >>> 0).toNumber(true);
23038
+ if (object.playerBackgroundMedia) {
23039
+ if (typeof object.playerBackgroundMedia !== "object")
23040
+ throw TypeError(".ContentfulActivityGroupCreated.playerBackgroundMedia: object expected");
23041
+ message.playerBackgroundMedia = {};
23042
+ for (var keys = Object.keys(object.playerBackgroundMedia), i = 0; i < keys.length; ++i) {
23043
+ if (typeof object.playerBackgroundMedia[keys[i]] !== "object")
23044
+ throw TypeError(".ContentfulActivityGroupCreated.playerBackgroundMedia: object expected");
23045
+ message.playerBackgroundMedia[keys[i]] = $root.contentful.IdReference.fromObject(object.playerBackgroundMedia[keys[i]]);
23046
+ }
23047
+ }
22989
23048
  return message;
22990
23049
  };
22991
23050
 
@@ -23014,6 +23073,7 @@ $root.ContentfulActivityGroupCreated = (function() {
23014
23073
  object.description = {};
23015
23074
  object.bannerMedia = {};
23016
23075
  object.patternMedia = {};
23076
+ object.playerBackgroundMedia = {};
23017
23077
  }
23018
23078
  if (options.defaults) {
23019
23079
  object.slug = "";
@@ -23103,6 +23163,11 @@ $root.ContentfulActivityGroupCreated = (function() {
23103
23163
  object.createdAt = options.longs === String ? String(message.createdAt) : message.createdAt;
23104
23164
  else
23105
23165
  object.createdAt = options.longs === String ? $util.Long.prototype.toString.call(message.createdAt) : options.longs === Number ? new $util.LongBits(message.createdAt.low >>> 0, message.createdAt.high >>> 0).toNumber(true) : message.createdAt;
23166
+ if (message.playerBackgroundMedia && (keys2 = Object.keys(message.playerBackgroundMedia)).length) {
23167
+ object.playerBackgroundMedia = {};
23168
+ for (var j = 0; j < keys2.length; ++j)
23169
+ object.playerBackgroundMedia[keys2[j]] = $root.contentful.IdReference.toObject(message.playerBackgroundMedia[keys2[j]], options);
23170
+ }
23106
23171
  return object;
23107
23172
  };
23108
23173
 
@@ -23146,6 +23211,7 @@ $root.ContentfulActivityGroupUpdated = (function() {
23146
23211
  * @property {Array.<contentful.ISlugReference>|null} [related] ContentfulActivityGroupUpdated related
23147
23212
  * @property {Array.<contentful.ISlugReference>|null} [accessGroup] ContentfulActivityGroupUpdated accessGroup
23148
23213
  * @property {number|Long|null} [updatedAt] ContentfulActivityGroupUpdated updatedAt
23214
+ * @property {Object.<string,contentful.IIdReference>|null} [playerBackgroundMedia] ContentfulActivityGroupUpdated playerBackgroundMedia
23149
23215
  */
23150
23216
 
23151
23217
  /**
@@ -23166,6 +23232,7 @@ $root.ContentfulActivityGroupUpdated = (function() {
23166
23232
  this.techniques = [];
23167
23233
  this.related = [];
23168
23234
  this.accessGroup = [];
23235
+ this.playerBackgroundMedia = {};
23169
23236
  if (properties)
23170
23237
  for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
23171
23238
  if (properties[keys[i]] != null)
@@ -23332,6 +23399,14 @@ $root.ContentfulActivityGroupUpdated = (function() {
23332
23399
  */
23333
23400
  ContentfulActivityGroupUpdated.prototype.updatedAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
23334
23401
 
23402
+ /**
23403
+ * ContentfulActivityGroupUpdated playerBackgroundMedia.
23404
+ * @member {Object.<string,contentful.IIdReference>} playerBackgroundMedia
23405
+ * @memberof ContentfulActivityGroupUpdated
23406
+ * @instance
23407
+ */
23408
+ ContentfulActivityGroupUpdated.prototype.playerBackgroundMedia = $util.emptyObject;
23409
+
23335
23410
  /**
23336
23411
  * Creates a new ContentfulActivityGroupUpdated instance using the specified properties.
23337
23412
  * @function create
@@ -23409,6 +23484,11 @@ $root.ContentfulActivityGroupUpdated = (function() {
23409
23484
  $root.contentful.SlugReference.encode(message.accessGroup[i], writer.uint32(/* id 19, wireType 2 =*/154).fork()).ldelim();
23410
23485
  if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
23411
23486
  writer.uint32(/* id 20, wireType 0 =*/160).uint64(message.updatedAt);
23487
+ if (message.playerBackgroundMedia != null && message.hasOwnProperty("playerBackgroundMedia"))
23488
+ for (var keys = Object.keys(message.playerBackgroundMedia), i = 0; i < keys.length; ++i) {
23489
+ writer.uint32(/* id 21, wireType 2 =*/170).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]);
23490
+ $root.contentful.IdReference.encode(message.playerBackgroundMedia[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim();
23491
+ }
23412
23492
  return writer;
23413
23493
  };
23414
23494
 
@@ -23536,6 +23616,14 @@ $root.ContentfulActivityGroupUpdated = (function() {
23536
23616
  case 20:
23537
23617
  message.updatedAt = reader.uint64();
23538
23618
  break;
23619
+ case 21:
23620
+ reader.skip().pos++;
23621
+ if (message.playerBackgroundMedia === $util.emptyObject)
23622
+ message.playerBackgroundMedia = {};
23623
+ key = reader.string();
23624
+ reader.pos++;
23625
+ message.playerBackgroundMedia[key] = $root.contentful.IdReference.decode(reader, reader.uint32());
23626
+ break;
23539
23627
  default:
23540
23628
  reader.skipType(tag & 7);
23541
23629
  break;
@@ -23684,6 +23772,16 @@ $root.ContentfulActivityGroupUpdated = (function() {
23684
23772
  if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
23685
23773
  if (!$util.isInteger(message.updatedAt) && !(message.updatedAt && $util.isInteger(message.updatedAt.low) && $util.isInteger(message.updatedAt.high)))
23686
23774
  return "updatedAt: integer|Long expected";
23775
+ if (message.playerBackgroundMedia != null && message.hasOwnProperty("playerBackgroundMedia")) {
23776
+ if (!$util.isObject(message.playerBackgroundMedia))
23777
+ return "playerBackgroundMedia: object expected";
23778
+ var key = Object.keys(message.playerBackgroundMedia);
23779
+ for (var i = 0; i < key.length; ++i) {
23780
+ var error = $root.contentful.IdReference.verify(message.playerBackgroundMedia[key[i]]);
23781
+ if (error)
23782
+ return "playerBackgroundMedia." + error;
23783
+ }
23784
+ }
23687
23785
  return null;
23688
23786
  };
23689
23787
 
@@ -23809,6 +23907,16 @@ $root.ContentfulActivityGroupUpdated = (function() {
23809
23907
  message.updatedAt = object.updatedAt;
23810
23908
  else if (typeof object.updatedAt === "object")
23811
23909
  message.updatedAt = new $util.LongBits(object.updatedAt.low >>> 0, object.updatedAt.high >>> 0).toNumber(true);
23910
+ if (object.playerBackgroundMedia) {
23911
+ if (typeof object.playerBackgroundMedia !== "object")
23912
+ throw TypeError(".ContentfulActivityGroupUpdated.playerBackgroundMedia: object expected");
23913
+ message.playerBackgroundMedia = {};
23914
+ for (var keys = Object.keys(object.playerBackgroundMedia), i = 0; i < keys.length; ++i) {
23915
+ if (typeof object.playerBackgroundMedia[keys[i]] !== "object")
23916
+ throw TypeError(".ContentfulActivityGroupUpdated.playerBackgroundMedia: object expected");
23917
+ message.playerBackgroundMedia[keys[i]] = $root.contentful.IdReference.fromObject(object.playerBackgroundMedia[keys[i]]);
23918
+ }
23919
+ }
23812
23920
  return message;
23813
23921
  };
23814
23922
 
@@ -23837,6 +23945,7 @@ $root.ContentfulActivityGroupUpdated = (function() {
23837
23945
  object.description = {};
23838
23946
  object.bannerMedia = {};
23839
23947
  object.patternMedia = {};
23948
+ object.playerBackgroundMedia = {};
23840
23949
  }
23841
23950
  if (options.defaults) {
23842
23951
  object.slug = "";
@@ -23926,6 +24035,11 @@ $root.ContentfulActivityGroupUpdated = (function() {
23926
24035
  object.updatedAt = options.longs === String ? String(message.updatedAt) : message.updatedAt;
23927
24036
  else
23928
24037
  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;
24038
+ if (message.playerBackgroundMedia && (keys2 = Object.keys(message.playerBackgroundMedia)).length) {
24039
+ object.playerBackgroundMedia = {};
24040
+ for (var j = 0; j < keys2.length; ++j)
24041
+ object.playerBackgroundMedia[keys2[j]] = $root.contentful.IdReference.toObject(message.playerBackgroundMedia[keys2[j]], options);
24042
+ }
23929
24043
  return object;
23930
24044
  };
23931
24045
 
@@ -33143,6 +33257,7 @@ $root.UserDomainDeleted = (function() {
33143
33257
  * @interface IUserDomainDeleted
33144
33258
  * @property {string|null} [hsId] UserDomainDeleted hsId
33145
33259
  * @property {number|Long|null} [deletedAt] UserDomainDeleted deletedAt
33260
+ * @property {userdomain.users.UserDeleteReason|null} [deleteReason] UserDomainDeleted deleteReason
33146
33261
  */
33147
33262
 
33148
33263
  /**
@@ -33176,6 +33291,14 @@ $root.UserDomainDeleted = (function() {
33176
33291
  */
33177
33292
  UserDomainDeleted.prototype.deletedAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
33178
33293
 
33294
+ /**
33295
+ * UserDomainDeleted deleteReason.
33296
+ * @member {userdomain.users.UserDeleteReason} deleteReason
33297
+ * @memberof UserDomainDeleted
33298
+ * @instance
33299
+ */
33300
+ UserDomainDeleted.prototype.deleteReason = 0;
33301
+
33179
33302
  /**
33180
33303
  * Creates a new UserDomainDeleted instance using the specified properties.
33181
33304
  * @function create
@@ -33204,6 +33327,8 @@ $root.UserDomainDeleted = (function() {
33204
33327
  writer.uint32(/* id 1, wireType 2 =*/10).string(message.hsId);
33205
33328
  if (message.deletedAt != null && message.hasOwnProperty("deletedAt"))
33206
33329
  writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.deletedAt);
33330
+ if (message.deleteReason != null && message.hasOwnProperty("deleteReason"))
33331
+ writer.uint32(/* id 3, wireType 0 =*/24).int32(message.deleteReason);
33207
33332
  return writer;
33208
33333
  };
33209
33334
 
@@ -33244,6 +33369,9 @@ $root.UserDomainDeleted = (function() {
33244
33369
  case 2:
33245
33370
  message.deletedAt = reader.uint64();
33246
33371
  break;
33372
+ case 3:
33373
+ message.deleteReason = reader.int32();
33374
+ break;
33247
33375
  default:
33248
33376
  reader.skipType(tag & 7);
33249
33377
  break;
@@ -33285,6 +33413,14 @@ $root.UserDomainDeleted = (function() {
33285
33413
  if (message.deletedAt != null && message.hasOwnProperty("deletedAt"))
33286
33414
  if (!$util.isInteger(message.deletedAt) && !(message.deletedAt && $util.isInteger(message.deletedAt.low) && $util.isInteger(message.deletedAt.high)))
33287
33415
  return "deletedAt: integer|Long expected";
33416
+ if (message.deleteReason != null && message.hasOwnProperty("deleteReason"))
33417
+ switch (message.deleteReason) {
33418
+ default:
33419
+ return "deleteReason: enum value expected";
33420
+ case 0:
33421
+ case 1:
33422
+ break;
33423
+ }
33288
33424
  return null;
33289
33425
  };
33290
33426
 
@@ -33311,6 +33447,16 @@ $root.UserDomainDeleted = (function() {
33311
33447
  message.deletedAt = object.deletedAt;
33312
33448
  else if (typeof object.deletedAt === "object")
33313
33449
  message.deletedAt = new $util.LongBits(object.deletedAt.low >>> 0, object.deletedAt.high >>> 0).toNumber(true);
33450
+ switch (object.deleteReason) {
33451
+ case "UNKNOWN_REASON":
33452
+ case 0:
33453
+ message.deleteReason = 0;
33454
+ break;
33455
+ case "INACTIVE":
33456
+ case 1:
33457
+ message.deleteReason = 1;
33458
+ break;
33459
+ }
33314
33460
  return message;
33315
33461
  };
33316
33462
 
@@ -33334,6 +33480,7 @@ $root.UserDomainDeleted = (function() {
33334
33480
  object.deletedAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
33335
33481
  } else
33336
33482
  object.deletedAt = options.longs === String ? "0" : 0;
33483
+ object.deleteReason = options.enums === String ? "UNKNOWN_REASON" : 0;
33337
33484
  }
33338
33485
  if (message.hsId != null && message.hasOwnProperty("hsId"))
33339
33486
  object.hsId = message.hsId;
@@ -33342,6 +33489,8 @@ $root.UserDomainDeleted = (function() {
33342
33489
  object.deletedAt = options.longs === String ? String(message.deletedAt) : message.deletedAt;
33343
33490
  else
33344
33491
  object.deletedAt = options.longs === String ? $util.Long.prototype.toString.call(message.deletedAt) : options.longs === Number ? new $util.LongBits(message.deletedAt.low >>> 0, message.deletedAt.high >>> 0).toNumber(true) : message.deletedAt;
33492
+ if (message.deleteReason != null && message.hasOwnProperty("deleteReason"))
33493
+ object.deleteReason = options.enums === String ? $root.userdomain.users.UserDeleteReason[message.deleteReason] : message.deleteReason;
33345
33494
  return object;
33346
33495
  };
33347
33496
 
@@ -40552,7 +40701,7 @@ $root.SleepcastCreated = (function() {
40552
40701
  * @interface ISleepcastCreated
40553
40702
  * @property {string|null} [slug] SleepcastCreated slug
40554
40703
  * @property {string|null} [entityId] SleepcastCreated entityId
40555
- * @property {Object.<string,contentful.IIdReference>|null} [tileBackgroundMedia] SleepcastCreated tileBackgroundMedia
40704
+ * @property {number|null} [tileBackgroundMediaId] SleepcastCreated tileBackgroundMediaId
40556
40705
  * @property {Array.<contentful.ISlugReference>|null} [accessGroup] SleepcastCreated accessGroup
40557
40706
  * @property {number|Long|null} [createdAt] SleepcastCreated createdAt
40558
40707
  */
@@ -40566,7 +40715,6 @@ $root.SleepcastCreated = (function() {
40566
40715
  * @param {ISleepcastCreated=} [properties] Properties to set
40567
40716
  */
40568
40717
  function SleepcastCreated(properties) {
40569
- this.tileBackgroundMedia = {};
40570
40718
  this.accessGroup = [];
40571
40719
  if (properties)
40572
40720
  for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
@@ -40591,12 +40739,12 @@ $root.SleepcastCreated = (function() {
40591
40739
  SleepcastCreated.prototype.entityId = "";
40592
40740
 
40593
40741
  /**
40594
- * SleepcastCreated tileBackgroundMedia.
40595
- * @member {Object.<string,contentful.IIdReference>} tileBackgroundMedia
40742
+ * SleepcastCreated tileBackgroundMediaId.
40743
+ * @member {number} tileBackgroundMediaId
40596
40744
  * @memberof SleepcastCreated
40597
40745
  * @instance
40598
40746
  */
40599
- SleepcastCreated.prototype.tileBackgroundMedia = $util.emptyObject;
40747
+ SleepcastCreated.prototype.tileBackgroundMediaId = 0;
40600
40748
 
40601
40749
  /**
40602
40750
  * SleepcastCreated accessGroup.
@@ -40642,11 +40790,8 @@ $root.SleepcastCreated = (function() {
40642
40790
  writer.uint32(/* id 1, wireType 2 =*/10).string(message.slug);
40643
40791
  if (message.entityId != null && message.hasOwnProperty("entityId"))
40644
40792
  writer.uint32(/* id 2, wireType 2 =*/18).string(message.entityId);
40645
- if (message.tileBackgroundMedia != null && message.hasOwnProperty("tileBackgroundMedia"))
40646
- for (var keys = Object.keys(message.tileBackgroundMedia), i = 0; i < keys.length; ++i) {
40647
- writer.uint32(/* id 3, wireType 2 =*/26).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]);
40648
- $root.contentful.IdReference.encode(message.tileBackgroundMedia[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim();
40649
- }
40793
+ if (message.tileBackgroundMediaId != null && message.hasOwnProperty("tileBackgroundMediaId"))
40794
+ writer.uint32(/* id 3, wireType 0 =*/24).uint32(message.tileBackgroundMediaId);
40650
40795
  if (message.accessGroup != null && message.accessGroup.length)
40651
40796
  for (var i = 0; i < message.accessGroup.length; ++i)
40652
40797
  $root.contentful.SlugReference.encode(message.accessGroup[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
@@ -40682,7 +40827,7 @@ $root.SleepcastCreated = (function() {
40682
40827
  SleepcastCreated.decode = function decode(reader, length) {
40683
40828
  if (!(reader instanceof $Reader))
40684
40829
  reader = $Reader.create(reader);
40685
- var end = length === undefined ? reader.len : reader.pos + length, message = new $root.SleepcastCreated(), key;
40830
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.SleepcastCreated();
40686
40831
  while (reader.pos < end) {
40687
40832
  var tag = reader.uint32();
40688
40833
  switch (tag >>> 3) {
@@ -40693,12 +40838,7 @@ $root.SleepcastCreated = (function() {
40693
40838
  message.entityId = reader.string();
40694
40839
  break;
40695
40840
  case 3:
40696
- reader.skip().pos++;
40697
- if (message.tileBackgroundMedia === $util.emptyObject)
40698
- message.tileBackgroundMedia = {};
40699
- key = reader.string();
40700
- reader.pos++;
40701
- message.tileBackgroundMedia[key] = $root.contentful.IdReference.decode(reader, reader.uint32());
40841
+ message.tileBackgroundMediaId = reader.uint32();
40702
40842
  break;
40703
40843
  case 4:
40704
40844
  if (!(message.accessGroup && message.accessGroup.length))
@@ -40749,16 +40889,9 @@ $root.SleepcastCreated = (function() {
40749
40889
  if (message.entityId != null && message.hasOwnProperty("entityId"))
40750
40890
  if (!$util.isString(message.entityId))
40751
40891
  return "entityId: string expected";
40752
- if (message.tileBackgroundMedia != null && message.hasOwnProperty("tileBackgroundMedia")) {
40753
- if (!$util.isObject(message.tileBackgroundMedia))
40754
- return "tileBackgroundMedia: object expected";
40755
- var key = Object.keys(message.tileBackgroundMedia);
40756
- for (var i = 0; i < key.length; ++i) {
40757
- var error = $root.contentful.IdReference.verify(message.tileBackgroundMedia[key[i]]);
40758
- if (error)
40759
- return "tileBackgroundMedia." + error;
40760
- }
40761
- }
40892
+ if (message.tileBackgroundMediaId != null && message.hasOwnProperty("tileBackgroundMediaId"))
40893
+ if (!$util.isInteger(message.tileBackgroundMediaId))
40894
+ return "tileBackgroundMediaId: integer expected";
40762
40895
  if (message.accessGroup != null && message.hasOwnProperty("accessGroup")) {
40763
40896
  if (!Array.isArray(message.accessGroup))
40764
40897
  return "accessGroup: array expected";
@@ -40790,16 +40923,8 @@ $root.SleepcastCreated = (function() {
40790
40923
  message.slug = String(object.slug);
40791
40924
  if (object.entityId != null)
40792
40925
  message.entityId = String(object.entityId);
40793
- if (object.tileBackgroundMedia) {
40794
- if (typeof object.tileBackgroundMedia !== "object")
40795
- throw TypeError(".SleepcastCreated.tileBackgroundMedia: object expected");
40796
- message.tileBackgroundMedia = {};
40797
- for (var keys = Object.keys(object.tileBackgroundMedia), i = 0; i < keys.length; ++i) {
40798
- if (typeof object.tileBackgroundMedia[keys[i]] !== "object")
40799
- throw TypeError(".SleepcastCreated.tileBackgroundMedia: object expected");
40800
- message.tileBackgroundMedia[keys[i]] = $root.contentful.IdReference.fromObject(object.tileBackgroundMedia[keys[i]]);
40801
- }
40802
- }
40926
+ if (object.tileBackgroundMediaId != null)
40927
+ message.tileBackgroundMediaId = object.tileBackgroundMediaId >>> 0;
40803
40928
  if (object.accessGroup) {
40804
40929
  if (!Array.isArray(object.accessGroup))
40805
40930
  throw TypeError(".SleepcastCreated.accessGroup: array expected");
@@ -40837,11 +40962,10 @@ $root.SleepcastCreated = (function() {
40837
40962
  var object = {};
40838
40963
  if (options.arrays || options.defaults)
40839
40964
  object.accessGroup = [];
40840
- if (options.objects || options.defaults)
40841
- object.tileBackgroundMedia = {};
40842
40965
  if (options.defaults) {
40843
40966
  object.slug = "";
40844
40967
  object.entityId = "";
40968
+ object.tileBackgroundMediaId = 0;
40845
40969
  if ($util.Long) {
40846
40970
  var long = new $util.Long(0, 0, true);
40847
40971
  object.createdAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
@@ -40852,12 +40976,8 @@ $root.SleepcastCreated = (function() {
40852
40976
  object.slug = message.slug;
40853
40977
  if (message.entityId != null && message.hasOwnProperty("entityId"))
40854
40978
  object.entityId = message.entityId;
40855
- var keys2;
40856
- if (message.tileBackgroundMedia && (keys2 = Object.keys(message.tileBackgroundMedia)).length) {
40857
- object.tileBackgroundMedia = {};
40858
- for (var j = 0; j < keys2.length; ++j)
40859
- object.tileBackgroundMedia[keys2[j]] = $root.contentful.IdReference.toObject(message.tileBackgroundMedia[keys2[j]], options);
40860
- }
40979
+ if (message.tileBackgroundMediaId != null && message.hasOwnProperty("tileBackgroundMediaId"))
40980
+ object.tileBackgroundMediaId = message.tileBackgroundMediaId;
40861
40981
  if (message.accessGroup && message.accessGroup.length) {
40862
40982
  object.accessGroup = [];
40863
40983
  for (var j = 0; j < message.accessGroup.length; ++j)
@@ -40893,7 +41013,7 @@ $root.SleepcastUpdated = (function() {
40893
41013
  * @interface ISleepcastUpdated
40894
41014
  * @property {string|null} [slug] SleepcastUpdated slug
40895
41015
  * @property {string|null} [entityId] SleepcastUpdated entityId
40896
- * @property {Object.<string,contentful.IIdReference>|null} [tileBackgroundMedia] SleepcastUpdated tileBackgroundMedia
41016
+ * @property {number|null} [tileBackgroundMediaId] SleepcastUpdated tileBackgroundMediaId
40897
41017
  * @property {Array.<contentful.ISlugReference>|null} [accessGroup] SleepcastUpdated accessGroup
40898
41018
  * @property {number|Long|null} [updatedAt] SleepcastUpdated updatedAt
40899
41019
  */
@@ -40907,7 +41027,6 @@ $root.SleepcastUpdated = (function() {
40907
41027
  * @param {ISleepcastUpdated=} [properties] Properties to set
40908
41028
  */
40909
41029
  function SleepcastUpdated(properties) {
40910
- this.tileBackgroundMedia = {};
40911
41030
  this.accessGroup = [];
40912
41031
  if (properties)
40913
41032
  for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
@@ -40932,12 +41051,12 @@ $root.SleepcastUpdated = (function() {
40932
41051
  SleepcastUpdated.prototype.entityId = "";
40933
41052
 
40934
41053
  /**
40935
- * SleepcastUpdated tileBackgroundMedia.
40936
- * @member {Object.<string,contentful.IIdReference>} tileBackgroundMedia
41054
+ * SleepcastUpdated tileBackgroundMediaId.
41055
+ * @member {number} tileBackgroundMediaId
40937
41056
  * @memberof SleepcastUpdated
40938
41057
  * @instance
40939
41058
  */
40940
- SleepcastUpdated.prototype.tileBackgroundMedia = $util.emptyObject;
41059
+ SleepcastUpdated.prototype.tileBackgroundMediaId = 0;
40941
41060
 
40942
41061
  /**
40943
41062
  * SleepcastUpdated accessGroup.
@@ -40983,11 +41102,8 @@ $root.SleepcastUpdated = (function() {
40983
41102
  writer.uint32(/* id 1, wireType 2 =*/10).string(message.slug);
40984
41103
  if (message.entityId != null && message.hasOwnProperty("entityId"))
40985
41104
  writer.uint32(/* id 2, wireType 2 =*/18).string(message.entityId);
40986
- if (message.tileBackgroundMedia != null && message.hasOwnProperty("tileBackgroundMedia"))
40987
- for (var keys = Object.keys(message.tileBackgroundMedia), i = 0; i < keys.length; ++i) {
40988
- writer.uint32(/* id 3, wireType 2 =*/26).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]);
40989
- $root.contentful.IdReference.encode(message.tileBackgroundMedia[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim();
40990
- }
41105
+ if (message.tileBackgroundMediaId != null && message.hasOwnProperty("tileBackgroundMediaId"))
41106
+ writer.uint32(/* id 3, wireType 0 =*/24).uint32(message.tileBackgroundMediaId);
40991
41107
  if (message.accessGroup != null && message.accessGroup.length)
40992
41108
  for (var i = 0; i < message.accessGroup.length; ++i)
40993
41109
  $root.contentful.SlugReference.encode(message.accessGroup[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
@@ -41023,7 +41139,7 @@ $root.SleepcastUpdated = (function() {
41023
41139
  SleepcastUpdated.decode = function decode(reader, length) {
41024
41140
  if (!(reader instanceof $Reader))
41025
41141
  reader = $Reader.create(reader);
41026
- var end = length === undefined ? reader.len : reader.pos + length, message = new $root.SleepcastUpdated(), key;
41142
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.SleepcastUpdated();
41027
41143
  while (reader.pos < end) {
41028
41144
  var tag = reader.uint32();
41029
41145
  switch (tag >>> 3) {
@@ -41034,12 +41150,7 @@ $root.SleepcastUpdated = (function() {
41034
41150
  message.entityId = reader.string();
41035
41151
  break;
41036
41152
  case 3:
41037
- reader.skip().pos++;
41038
- if (message.tileBackgroundMedia === $util.emptyObject)
41039
- message.tileBackgroundMedia = {};
41040
- key = reader.string();
41041
- reader.pos++;
41042
- message.tileBackgroundMedia[key] = $root.contentful.IdReference.decode(reader, reader.uint32());
41153
+ message.tileBackgroundMediaId = reader.uint32();
41043
41154
  break;
41044
41155
  case 4:
41045
41156
  if (!(message.accessGroup && message.accessGroup.length))
@@ -41090,16 +41201,9 @@ $root.SleepcastUpdated = (function() {
41090
41201
  if (message.entityId != null && message.hasOwnProperty("entityId"))
41091
41202
  if (!$util.isString(message.entityId))
41092
41203
  return "entityId: string expected";
41093
- if (message.tileBackgroundMedia != null && message.hasOwnProperty("tileBackgroundMedia")) {
41094
- if (!$util.isObject(message.tileBackgroundMedia))
41095
- return "tileBackgroundMedia: object expected";
41096
- var key = Object.keys(message.tileBackgroundMedia);
41097
- for (var i = 0; i < key.length; ++i) {
41098
- var error = $root.contentful.IdReference.verify(message.tileBackgroundMedia[key[i]]);
41099
- if (error)
41100
- return "tileBackgroundMedia." + error;
41101
- }
41102
- }
41204
+ if (message.tileBackgroundMediaId != null && message.hasOwnProperty("tileBackgroundMediaId"))
41205
+ if (!$util.isInteger(message.tileBackgroundMediaId))
41206
+ return "tileBackgroundMediaId: integer expected";
41103
41207
  if (message.accessGroup != null && message.hasOwnProperty("accessGroup")) {
41104
41208
  if (!Array.isArray(message.accessGroup))
41105
41209
  return "accessGroup: array expected";
@@ -41131,16 +41235,8 @@ $root.SleepcastUpdated = (function() {
41131
41235
  message.slug = String(object.slug);
41132
41236
  if (object.entityId != null)
41133
41237
  message.entityId = String(object.entityId);
41134
- if (object.tileBackgroundMedia) {
41135
- if (typeof object.tileBackgroundMedia !== "object")
41136
- throw TypeError(".SleepcastUpdated.tileBackgroundMedia: object expected");
41137
- message.tileBackgroundMedia = {};
41138
- for (var keys = Object.keys(object.tileBackgroundMedia), i = 0; i < keys.length; ++i) {
41139
- if (typeof object.tileBackgroundMedia[keys[i]] !== "object")
41140
- throw TypeError(".SleepcastUpdated.tileBackgroundMedia: object expected");
41141
- message.tileBackgroundMedia[keys[i]] = $root.contentful.IdReference.fromObject(object.tileBackgroundMedia[keys[i]]);
41142
- }
41143
- }
41238
+ if (object.tileBackgroundMediaId != null)
41239
+ message.tileBackgroundMediaId = object.tileBackgroundMediaId >>> 0;
41144
41240
  if (object.accessGroup) {
41145
41241
  if (!Array.isArray(object.accessGroup))
41146
41242
  throw TypeError(".SleepcastUpdated.accessGroup: array expected");
@@ -41178,11 +41274,10 @@ $root.SleepcastUpdated = (function() {
41178
41274
  var object = {};
41179
41275
  if (options.arrays || options.defaults)
41180
41276
  object.accessGroup = [];
41181
- if (options.objects || options.defaults)
41182
- object.tileBackgroundMedia = {};
41183
41277
  if (options.defaults) {
41184
41278
  object.slug = "";
41185
41279
  object.entityId = "";
41280
+ object.tileBackgroundMediaId = 0;
41186
41281
  if ($util.Long) {
41187
41282
  var long = new $util.Long(0, 0, true);
41188
41283
  object.updatedAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
@@ -41193,12 +41288,8 @@ $root.SleepcastUpdated = (function() {
41193
41288
  object.slug = message.slug;
41194
41289
  if (message.entityId != null && message.hasOwnProperty("entityId"))
41195
41290
  object.entityId = message.entityId;
41196
- var keys2;
41197
- if (message.tileBackgroundMedia && (keys2 = Object.keys(message.tileBackgroundMedia)).length) {
41198
- object.tileBackgroundMedia = {};
41199
- for (var j = 0; j < keys2.length; ++j)
41200
- object.tileBackgroundMedia[keys2[j]] = $root.contentful.IdReference.toObject(message.tileBackgroundMedia[keys2[j]], options);
41201
- }
41291
+ if (message.tileBackgroundMediaId != null && message.hasOwnProperty("tileBackgroundMediaId"))
41292
+ object.tileBackgroundMediaId = message.tileBackgroundMediaId;
41202
41293
  if (message.accessGroup && message.accessGroup.length) {
41203
41294
  object.accessGroup = [];
41204
41295
  for (var j = 0; j < message.accessGroup.length; ++j)
@@ -46582,6 +46673,7 @@ $root.EnterpriseUserEnrollmentRemoved = (function() {
46582
46673
  case 2:
46583
46674
  case 3:
46584
46675
  case 4:
46676
+ case 5:
46585
46677
  break;
46586
46678
  }
46587
46679
  if (message.timestamp != null && message.hasOwnProperty("timestamp"))
@@ -46689,6 +46781,10 @@ $root.EnterpriseUserEnrollmentRemoved = (function() {
46689
46781
  case 4:
46690
46782
  message.reason = 4;
46691
46783
  break;
46784
+ case "REMOVAL_REASON_ROLLOVER":
46785
+ case 5:
46786
+ message.reason = 5;
46787
+ break;
46692
46788
  }
46693
46789
  if (object.timestamp != null)
46694
46790
  if ($util.Long)
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.190.0"
19
+ "version": "1.195.0"
20
20
  }