@headspace/protos-events 1.195.0 → 1.197.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 +302 -44
  2. package/lib/index.js +1082 -298
  3. package/package.json +1 -1
package/lib/index.js CHANGED
@@ -28297,12 +28297,14 @@ $root.ContentfulSleepcastRecipeCreated = (function() {
28297
28297
  * @interface IContentfulSleepcastRecipeCreated
28298
28298
  * @property {string|null} [slug] ContentfulSleepcastRecipeCreated slug
28299
28299
  * @property {string|null} [generator] ContentfulSleepcastRecipeCreated generator
28300
+ * @property {Object.<string,contentful.IIdReference>|null} [ambientMedia] ContentfulSleepcastRecipeCreated ambientMedia
28301
+ * @property {Object.<string,contentful.IIdReferences>|null} [beforeIntroMedia] ContentfulSleepcastRecipeCreated beforeIntroMedia
28302
+ * @property {Object.<string,contentful.IIdReferences>|null} [introMedia] ContentfulSleepcastRecipeCreated introMedia
28303
+ * @property {Object.<string,contentful.IIdReferences>|null} [afterIntroMedia] ContentfulSleepcastRecipeCreated afterIntroMedia
28300
28304
  * @property {Object.<string,contentful.IIdReferences>|null} [mainMedia] ContentfulSleepcastRecipeCreated mainMedia
28301
- * @property {Object.<string,contentful.IIdReferences>|null} [windDownMedia] ContentfulSleepcastRecipeCreated windDownMedia
28302
- * @property {Object.<string,contentful.IIdReference>|null} [soundBedMedia] ContentfulSleepcastRecipeCreated soundBedMedia
28303
- * @property {Object.<string,contentful.IIdReference>|null} [introMedia] ContentfulSleepcastRecipeCreated introMedia
28304
- * @property {Object.<string,contentful.IIdReference>|null} [leadInMedia] ContentfulSleepcastRecipeCreated leadInMedia
28305
- * @property {Object.<string,contentful.IIdReference>|null} [outroMedia] ContentfulSleepcastRecipeCreated outroMedia
28305
+ * @property {Object.<string,contentful.IIdReferences>|null} [beforeOutroMedia] ContentfulSleepcastRecipeCreated beforeOutroMedia
28306
+ * @property {Object.<string,contentful.IIdReferences>|null} [outroMedia] ContentfulSleepcastRecipeCreated outroMedia
28307
+ * @property {Object.<string,contentful.IIdReferences>|null} [afterOutroMedia] ContentfulSleepcastRecipeCreated afterOutroMedia
28306
28308
  * @property {number|Long|null} [createdAt] ContentfulSleepcastRecipeCreated createdAt
28307
28309
  */
28308
28310
 
@@ -28315,12 +28317,14 @@ $root.ContentfulSleepcastRecipeCreated = (function() {
28315
28317
  * @param {IContentfulSleepcastRecipeCreated=} [properties] Properties to set
28316
28318
  */
28317
28319
  function ContentfulSleepcastRecipeCreated(properties) {
28318
- this.mainMedia = {};
28319
- this.windDownMedia = {};
28320
- this.soundBedMedia = {};
28320
+ this.ambientMedia = {};
28321
+ this.beforeIntroMedia = {};
28321
28322
  this.introMedia = {};
28322
- this.leadInMedia = {};
28323
+ this.afterIntroMedia = {};
28324
+ this.mainMedia = {};
28325
+ this.beforeOutroMedia = {};
28323
28326
  this.outroMedia = {};
28327
+ this.afterOutroMedia = {};
28324
28328
  if (properties)
28325
28329
  for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
28326
28330
  if (properties[keys[i]] != null)
@@ -28344,53 +28348,69 @@ $root.ContentfulSleepcastRecipeCreated = (function() {
28344
28348
  ContentfulSleepcastRecipeCreated.prototype.generator = "";
28345
28349
 
28346
28350
  /**
28347
- * ContentfulSleepcastRecipeCreated mainMedia.
28348
- * @member {Object.<string,contentful.IIdReferences>} mainMedia
28351
+ * ContentfulSleepcastRecipeCreated ambientMedia.
28352
+ * @member {Object.<string,contentful.IIdReference>} ambientMedia
28349
28353
  * @memberof ContentfulSleepcastRecipeCreated
28350
28354
  * @instance
28351
28355
  */
28352
- ContentfulSleepcastRecipeCreated.prototype.mainMedia = $util.emptyObject;
28356
+ ContentfulSleepcastRecipeCreated.prototype.ambientMedia = $util.emptyObject;
28353
28357
 
28354
28358
  /**
28355
- * ContentfulSleepcastRecipeCreated windDownMedia.
28356
- * @member {Object.<string,contentful.IIdReferences>} windDownMedia
28359
+ * ContentfulSleepcastRecipeCreated beforeIntroMedia.
28360
+ * @member {Object.<string,contentful.IIdReferences>} beforeIntroMedia
28357
28361
  * @memberof ContentfulSleepcastRecipeCreated
28358
28362
  * @instance
28359
28363
  */
28360
- ContentfulSleepcastRecipeCreated.prototype.windDownMedia = $util.emptyObject;
28364
+ ContentfulSleepcastRecipeCreated.prototype.beforeIntroMedia = $util.emptyObject;
28361
28365
 
28362
28366
  /**
28363
- * ContentfulSleepcastRecipeCreated soundBedMedia.
28364
- * @member {Object.<string,contentful.IIdReference>} soundBedMedia
28367
+ * ContentfulSleepcastRecipeCreated introMedia.
28368
+ * @member {Object.<string,contentful.IIdReferences>} introMedia
28365
28369
  * @memberof ContentfulSleepcastRecipeCreated
28366
28370
  * @instance
28367
28371
  */
28368
- ContentfulSleepcastRecipeCreated.prototype.soundBedMedia = $util.emptyObject;
28372
+ ContentfulSleepcastRecipeCreated.prototype.introMedia = $util.emptyObject;
28369
28373
 
28370
28374
  /**
28371
- * ContentfulSleepcastRecipeCreated introMedia.
28372
- * @member {Object.<string,contentful.IIdReference>} introMedia
28375
+ * ContentfulSleepcastRecipeCreated afterIntroMedia.
28376
+ * @member {Object.<string,contentful.IIdReferences>} afterIntroMedia
28373
28377
  * @memberof ContentfulSleepcastRecipeCreated
28374
28378
  * @instance
28375
28379
  */
28376
- ContentfulSleepcastRecipeCreated.prototype.introMedia = $util.emptyObject;
28380
+ ContentfulSleepcastRecipeCreated.prototype.afterIntroMedia = $util.emptyObject;
28381
+
28382
+ /**
28383
+ * ContentfulSleepcastRecipeCreated mainMedia.
28384
+ * @member {Object.<string,contentful.IIdReferences>} mainMedia
28385
+ * @memberof ContentfulSleepcastRecipeCreated
28386
+ * @instance
28387
+ */
28388
+ ContentfulSleepcastRecipeCreated.prototype.mainMedia = $util.emptyObject;
28377
28389
 
28378
28390
  /**
28379
- * ContentfulSleepcastRecipeCreated leadInMedia.
28380
- * @member {Object.<string,contentful.IIdReference>} leadInMedia
28391
+ * ContentfulSleepcastRecipeCreated beforeOutroMedia.
28392
+ * @member {Object.<string,contentful.IIdReferences>} beforeOutroMedia
28381
28393
  * @memberof ContentfulSleepcastRecipeCreated
28382
28394
  * @instance
28383
28395
  */
28384
- ContentfulSleepcastRecipeCreated.prototype.leadInMedia = $util.emptyObject;
28396
+ ContentfulSleepcastRecipeCreated.prototype.beforeOutroMedia = $util.emptyObject;
28385
28397
 
28386
28398
  /**
28387
28399
  * ContentfulSleepcastRecipeCreated outroMedia.
28388
- * @member {Object.<string,contentful.IIdReference>} outroMedia
28400
+ * @member {Object.<string,contentful.IIdReferences>} outroMedia
28389
28401
  * @memberof ContentfulSleepcastRecipeCreated
28390
28402
  * @instance
28391
28403
  */
28392
28404
  ContentfulSleepcastRecipeCreated.prototype.outroMedia = $util.emptyObject;
28393
28405
 
28406
+ /**
28407
+ * ContentfulSleepcastRecipeCreated afterOutroMedia.
28408
+ * @member {Object.<string,contentful.IIdReferences>} afterOutroMedia
28409
+ * @memberof ContentfulSleepcastRecipeCreated
28410
+ * @instance
28411
+ */
28412
+ ContentfulSleepcastRecipeCreated.prototype.afterOutroMedia = $util.emptyObject;
28413
+
28394
28414
  /**
28395
28415
  * ContentfulSleepcastRecipeCreated createdAt.
28396
28416
  * @member {number|Long} createdAt
@@ -28427,38 +28447,48 @@ $root.ContentfulSleepcastRecipeCreated = (function() {
28427
28447
  writer.uint32(/* id 1, wireType 2 =*/10).string(message.slug);
28428
28448
  if (message.generator != null && message.hasOwnProperty("generator"))
28429
28449
  writer.uint32(/* id 2, wireType 2 =*/18).string(message.generator);
28430
- if (message.mainMedia != null && message.hasOwnProperty("mainMedia"))
28431
- for (var keys = Object.keys(message.mainMedia), i = 0; i < keys.length; ++i) {
28450
+ if (message.ambientMedia != null && message.hasOwnProperty("ambientMedia"))
28451
+ for (var keys = Object.keys(message.ambientMedia), i = 0; i < keys.length; ++i) {
28432
28452
  writer.uint32(/* id 3, wireType 2 =*/26).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]);
28433
- $root.contentful.IdReferences.encode(message.mainMedia[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim();
28453
+ $root.contentful.IdReference.encode(message.ambientMedia[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim();
28434
28454
  }
28435
- if (message.windDownMedia != null && message.hasOwnProperty("windDownMedia"))
28436
- for (var keys = Object.keys(message.windDownMedia), i = 0; i < keys.length; ++i) {
28455
+ if (message.beforeIntroMedia != null && message.hasOwnProperty("beforeIntroMedia"))
28456
+ for (var keys = Object.keys(message.beforeIntroMedia), i = 0; i < keys.length; ++i) {
28437
28457
  writer.uint32(/* id 4, wireType 2 =*/34).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]);
28438
- $root.contentful.IdReferences.encode(message.windDownMedia[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim();
28439
- }
28440
- if (message.soundBedMedia != null && message.hasOwnProperty("soundBedMedia"))
28441
- for (var keys = Object.keys(message.soundBedMedia), i = 0; i < keys.length; ++i) {
28442
- writer.uint32(/* id 5, wireType 2 =*/42).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]);
28443
- $root.contentful.IdReference.encode(message.soundBedMedia[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim();
28458
+ $root.contentful.IdReferences.encode(message.beforeIntroMedia[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim();
28444
28459
  }
28445
28460
  if (message.introMedia != null && message.hasOwnProperty("introMedia"))
28446
28461
  for (var keys = Object.keys(message.introMedia), i = 0; i < keys.length; ++i) {
28462
+ writer.uint32(/* id 5, wireType 2 =*/42).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]);
28463
+ $root.contentful.IdReferences.encode(message.introMedia[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim();
28464
+ }
28465
+ if (message.afterIntroMedia != null && message.hasOwnProperty("afterIntroMedia"))
28466
+ for (var keys = Object.keys(message.afterIntroMedia), i = 0; i < keys.length; ++i) {
28447
28467
  writer.uint32(/* id 6, wireType 2 =*/50).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]);
28448
- $root.contentful.IdReference.encode(message.introMedia[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim();
28468
+ $root.contentful.IdReferences.encode(message.afterIntroMedia[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim();
28449
28469
  }
28450
- if (message.leadInMedia != null && message.hasOwnProperty("leadInMedia"))
28451
- for (var keys = Object.keys(message.leadInMedia), i = 0; i < keys.length; ++i) {
28470
+ if (message.mainMedia != null && message.hasOwnProperty("mainMedia"))
28471
+ for (var keys = Object.keys(message.mainMedia), i = 0; i < keys.length; ++i) {
28452
28472
  writer.uint32(/* id 7, wireType 2 =*/58).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]);
28453
- $root.contentful.IdReference.encode(message.leadInMedia[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim();
28473
+ $root.contentful.IdReferences.encode(message.mainMedia[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim();
28474
+ }
28475
+ if (message.beforeOutroMedia != null && message.hasOwnProperty("beforeOutroMedia"))
28476
+ for (var keys = Object.keys(message.beforeOutroMedia), i = 0; i < keys.length; ++i) {
28477
+ writer.uint32(/* id 8, wireType 2 =*/66).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]);
28478
+ $root.contentful.IdReferences.encode(message.beforeOutroMedia[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim();
28454
28479
  }
28455
28480
  if (message.outroMedia != null && message.hasOwnProperty("outroMedia"))
28456
28481
  for (var keys = Object.keys(message.outroMedia), i = 0; i < keys.length; ++i) {
28457
- writer.uint32(/* id 8, wireType 2 =*/66).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]);
28458
- $root.contentful.IdReference.encode(message.outroMedia[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim();
28482
+ writer.uint32(/* id 9, wireType 2 =*/74).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]);
28483
+ $root.contentful.IdReferences.encode(message.outroMedia[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim();
28484
+ }
28485
+ if (message.afterOutroMedia != null && message.hasOwnProperty("afterOutroMedia"))
28486
+ for (var keys = Object.keys(message.afterOutroMedia), i = 0; i < keys.length; ++i) {
28487
+ writer.uint32(/* id 10, wireType 2 =*/82).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]);
28488
+ $root.contentful.IdReferences.encode(message.afterOutroMedia[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim();
28459
28489
  }
28460
28490
  if (message.createdAt != null && message.hasOwnProperty("createdAt"))
28461
- writer.uint32(/* id 9, wireType 0 =*/72).uint64(message.createdAt);
28491
+ writer.uint32(/* id 11, wireType 0 =*/88).uint64(message.createdAt);
28462
28492
  return writer;
28463
28493
  };
28464
28494
 
@@ -28501,53 +28531,69 @@ $root.ContentfulSleepcastRecipeCreated = (function() {
28501
28531
  break;
28502
28532
  case 3:
28503
28533
  reader.skip().pos++;
28504
- if (message.mainMedia === $util.emptyObject)
28505
- message.mainMedia = {};
28534
+ if (message.ambientMedia === $util.emptyObject)
28535
+ message.ambientMedia = {};
28506
28536
  key = reader.string();
28507
28537
  reader.pos++;
28508
- message.mainMedia[key] = $root.contentful.IdReferences.decode(reader, reader.uint32());
28538
+ message.ambientMedia[key] = $root.contentful.IdReference.decode(reader, reader.uint32());
28509
28539
  break;
28510
28540
  case 4:
28511
28541
  reader.skip().pos++;
28512
- if (message.windDownMedia === $util.emptyObject)
28513
- message.windDownMedia = {};
28542
+ if (message.beforeIntroMedia === $util.emptyObject)
28543
+ message.beforeIntroMedia = {};
28514
28544
  key = reader.string();
28515
28545
  reader.pos++;
28516
- message.windDownMedia[key] = $root.contentful.IdReferences.decode(reader, reader.uint32());
28546
+ message.beforeIntroMedia[key] = $root.contentful.IdReferences.decode(reader, reader.uint32());
28517
28547
  break;
28518
28548
  case 5:
28519
28549
  reader.skip().pos++;
28520
- if (message.soundBedMedia === $util.emptyObject)
28521
- message.soundBedMedia = {};
28550
+ if (message.introMedia === $util.emptyObject)
28551
+ message.introMedia = {};
28522
28552
  key = reader.string();
28523
28553
  reader.pos++;
28524
- message.soundBedMedia[key] = $root.contentful.IdReference.decode(reader, reader.uint32());
28554
+ message.introMedia[key] = $root.contentful.IdReferences.decode(reader, reader.uint32());
28525
28555
  break;
28526
28556
  case 6:
28527
28557
  reader.skip().pos++;
28528
- if (message.introMedia === $util.emptyObject)
28529
- message.introMedia = {};
28558
+ if (message.afterIntroMedia === $util.emptyObject)
28559
+ message.afterIntroMedia = {};
28530
28560
  key = reader.string();
28531
28561
  reader.pos++;
28532
- message.introMedia[key] = $root.contentful.IdReference.decode(reader, reader.uint32());
28562
+ message.afterIntroMedia[key] = $root.contentful.IdReferences.decode(reader, reader.uint32());
28533
28563
  break;
28534
28564
  case 7:
28535
28565
  reader.skip().pos++;
28536
- if (message.leadInMedia === $util.emptyObject)
28537
- message.leadInMedia = {};
28566
+ if (message.mainMedia === $util.emptyObject)
28567
+ message.mainMedia = {};
28538
28568
  key = reader.string();
28539
28569
  reader.pos++;
28540
- message.leadInMedia[key] = $root.contentful.IdReference.decode(reader, reader.uint32());
28570
+ message.mainMedia[key] = $root.contentful.IdReferences.decode(reader, reader.uint32());
28541
28571
  break;
28542
28572
  case 8:
28573
+ reader.skip().pos++;
28574
+ if (message.beforeOutroMedia === $util.emptyObject)
28575
+ message.beforeOutroMedia = {};
28576
+ key = reader.string();
28577
+ reader.pos++;
28578
+ message.beforeOutroMedia[key] = $root.contentful.IdReferences.decode(reader, reader.uint32());
28579
+ break;
28580
+ case 9:
28543
28581
  reader.skip().pos++;
28544
28582
  if (message.outroMedia === $util.emptyObject)
28545
28583
  message.outroMedia = {};
28546
28584
  key = reader.string();
28547
28585
  reader.pos++;
28548
- message.outroMedia[key] = $root.contentful.IdReference.decode(reader, reader.uint32());
28586
+ message.outroMedia[key] = $root.contentful.IdReferences.decode(reader, reader.uint32());
28549
28587
  break;
28550
- case 9:
28588
+ case 10:
28589
+ reader.skip().pos++;
28590
+ if (message.afterOutroMedia === $util.emptyObject)
28591
+ message.afterOutroMedia = {};
28592
+ key = reader.string();
28593
+ reader.pos++;
28594
+ message.afterOutroMedia[key] = $root.contentful.IdReferences.decode(reader, reader.uint32());
28595
+ break;
28596
+ case 11:
28551
28597
  message.createdAt = reader.uint64();
28552
28598
  break;
28553
28599
  default:
@@ -28591,34 +28637,24 @@ $root.ContentfulSleepcastRecipeCreated = (function() {
28591
28637
  if (message.generator != null && message.hasOwnProperty("generator"))
28592
28638
  if (!$util.isString(message.generator))
28593
28639
  return "generator: string expected";
28594
- if (message.mainMedia != null && message.hasOwnProperty("mainMedia")) {
28595
- if (!$util.isObject(message.mainMedia))
28596
- return "mainMedia: object expected";
28597
- var key = Object.keys(message.mainMedia);
28640
+ if (message.ambientMedia != null && message.hasOwnProperty("ambientMedia")) {
28641
+ if (!$util.isObject(message.ambientMedia))
28642
+ return "ambientMedia: object expected";
28643
+ var key = Object.keys(message.ambientMedia);
28598
28644
  for (var i = 0; i < key.length; ++i) {
28599
- var error = $root.contentful.IdReferences.verify(message.mainMedia[key[i]]);
28600
- if (error)
28601
- return "mainMedia." + error;
28602
- }
28603
- }
28604
- if (message.windDownMedia != null && message.hasOwnProperty("windDownMedia")) {
28605
- if (!$util.isObject(message.windDownMedia))
28606
- return "windDownMedia: object expected";
28607
- var key = Object.keys(message.windDownMedia);
28608
- for (var i = 0; i < key.length; ++i) {
28609
- var error = $root.contentful.IdReferences.verify(message.windDownMedia[key[i]]);
28645
+ var error = $root.contentful.IdReference.verify(message.ambientMedia[key[i]]);
28610
28646
  if (error)
28611
- return "windDownMedia." + error;
28647
+ return "ambientMedia." + error;
28612
28648
  }
28613
28649
  }
28614
- if (message.soundBedMedia != null && message.hasOwnProperty("soundBedMedia")) {
28615
- if (!$util.isObject(message.soundBedMedia))
28616
- return "soundBedMedia: object expected";
28617
- var key = Object.keys(message.soundBedMedia);
28650
+ if (message.beforeIntroMedia != null && message.hasOwnProperty("beforeIntroMedia")) {
28651
+ if (!$util.isObject(message.beforeIntroMedia))
28652
+ return "beforeIntroMedia: object expected";
28653
+ var key = Object.keys(message.beforeIntroMedia);
28618
28654
  for (var i = 0; i < key.length; ++i) {
28619
- var error = $root.contentful.IdReference.verify(message.soundBedMedia[key[i]]);
28655
+ var error = $root.contentful.IdReferences.verify(message.beforeIntroMedia[key[i]]);
28620
28656
  if (error)
28621
- return "soundBedMedia." + error;
28657
+ return "beforeIntroMedia." + error;
28622
28658
  }
28623
28659
  }
28624
28660
  if (message.introMedia != null && message.hasOwnProperty("introMedia")) {
@@ -28626,19 +28662,39 @@ $root.ContentfulSleepcastRecipeCreated = (function() {
28626
28662
  return "introMedia: object expected";
28627
28663
  var key = Object.keys(message.introMedia);
28628
28664
  for (var i = 0; i < key.length; ++i) {
28629
- var error = $root.contentful.IdReference.verify(message.introMedia[key[i]]);
28665
+ var error = $root.contentful.IdReferences.verify(message.introMedia[key[i]]);
28630
28666
  if (error)
28631
28667
  return "introMedia." + error;
28632
28668
  }
28633
28669
  }
28634
- if (message.leadInMedia != null && message.hasOwnProperty("leadInMedia")) {
28635
- if (!$util.isObject(message.leadInMedia))
28636
- return "leadInMedia: object expected";
28637
- var key = Object.keys(message.leadInMedia);
28670
+ if (message.afterIntroMedia != null && message.hasOwnProperty("afterIntroMedia")) {
28671
+ if (!$util.isObject(message.afterIntroMedia))
28672
+ return "afterIntroMedia: object expected";
28673
+ var key = Object.keys(message.afterIntroMedia);
28674
+ for (var i = 0; i < key.length; ++i) {
28675
+ var error = $root.contentful.IdReferences.verify(message.afterIntroMedia[key[i]]);
28676
+ if (error)
28677
+ return "afterIntroMedia." + error;
28678
+ }
28679
+ }
28680
+ if (message.mainMedia != null && message.hasOwnProperty("mainMedia")) {
28681
+ if (!$util.isObject(message.mainMedia))
28682
+ return "mainMedia: object expected";
28683
+ var key = Object.keys(message.mainMedia);
28684
+ for (var i = 0; i < key.length; ++i) {
28685
+ var error = $root.contentful.IdReferences.verify(message.mainMedia[key[i]]);
28686
+ if (error)
28687
+ return "mainMedia." + error;
28688
+ }
28689
+ }
28690
+ if (message.beforeOutroMedia != null && message.hasOwnProperty("beforeOutroMedia")) {
28691
+ if (!$util.isObject(message.beforeOutroMedia))
28692
+ return "beforeOutroMedia: object expected";
28693
+ var key = Object.keys(message.beforeOutroMedia);
28638
28694
  for (var i = 0; i < key.length; ++i) {
28639
- var error = $root.contentful.IdReference.verify(message.leadInMedia[key[i]]);
28695
+ var error = $root.contentful.IdReferences.verify(message.beforeOutroMedia[key[i]]);
28640
28696
  if (error)
28641
- return "leadInMedia." + error;
28697
+ return "beforeOutroMedia." + error;
28642
28698
  }
28643
28699
  }
28644
28700
  if (message.outroMedia != null && message.hasOwnProperty("outroMedia")) {
@@ -28646,11 +28702,21 @@ $root.ContentfulSleepcastRecipeCreated = (function() {
28646
28702
  return "outroMedia: object expected";
28647
28703
  var key = Object.keys(message.outroMedia);
28648
28704
  for (var i = 0; i < key.length; ++i) {
28649
- var error = $root.contentful.IdReference.verify(message.outroMedia[key[i]]);
28705
+ var error = $root.contentful.IdReferences.verify(message.outroMedia[key[i]]);
28650
28706
  if (error)
28651
28707
  return "outroMedia." + error;
28652
28708
  }
28653
28709
  }
28710
+ if (message.afterOutroMedia != null && message.hasOwnProperty("afterOutroMedia")) {
28711
+ if (!$util.isObject(message.afterOutroMedia))
28712
+ return "afterOutroMedia: object expected";
28713
+ var key = Object.keys(message.afterOutroMedia);
28714
+ for (var i = 0; i < key.length; ++i) {
28715
+ var error = $root.contentful.IdReferences.verify(message.afterOutroMedia[key[i]]);
28716
+ if (error)
28717
+ return "afterOutroMedia." + error;
28718
+ }
28719
+ }
28654
28720
  if (message.createdAt != null && message.hasOwnProperty("createdAt"))
28655
28721
  if (!$util.isInteger(message.createdAt) && !(message.createdAt && $util.isInteger(message.createdAt.low) && $util.isInteger(message.createdAt.high)))
28656
28722
  return "createdAt: integer|Long expected";
@@ -28673,34 +28739,24 @@ $root.ContentfulSleepcastRecipeCreated = (function() {
28673
28739
  message.slug = String(object.slug);
28674
28740
  if (object.generator != null)
28675
28741
  message.generator = String(object.generator);
28676
- if (object.mainMedia) {
28677
- if (typeof object.mainMedia !== "object")
28678
- throw TypeError(".ContentfulSleepcastRecipeCreated.mainMedia: object expected");
28679
- message.mainMedia = {};
28680
- for (var keys = Object.keys(object.mainMedia), i = 0; i < keys.length; ++i) {
28681
- if (typeof object.mainMedia[keys[i]] !== "object")
28682
- throw TypeError(".ContentfulSleepcastRecipeCreated.mainMedia: object expected");
28683
- message.mainMedia[keys[i]] = $root.contentful.IdReferences.fromObject(object.mainMedia[keys[i]]);
28684
- }
28685
- }
28686
- if (object.windDownMedia) {
28687
- if (typeof object.windDownMedia !== "object")
28688
- throw TypeError(".ContentfulSleepcastRecipeCreated.windDownMedia: object expected");
28689
- message.windDownMedia = {};
28690
- for (var keys = Object.keys(object.windDownMedia), i = 0; i < keys.length; ++i) {
28691
- if (typeof object.windDownMedia[keys[i]] !== "object")
28692
- throw TypeError(".ContentfulSleepcastRecipeCreated.windDownMedia: object expected");
28693
- message.windDownMedia[keys[i]] = $root.contentful.IdReferences.fromObject(object.windDownMedia[keys[i]]);
28694
- }
28695
- }
28696
- if (object.soundBedMedia) {
28697
- if (typeof object.soundBedMedia !== "object")
28698
- throw TypeError(".ContentfulSleepcastRecipeCreated.soundBedMedia: object expected");
28699
- message.soundBedMedia = {};
28700
- for (var keys = Object.keys(object.soundBedMedia), i = 0; i < keys.length; ++i) {
28701
- if (typeof object.soundBedMedia[keys[i]] !== "object")
28702
- throw TypeError(".ContentfulSleepcastRecipeCreated.soundBedMedia: object expected");
28703
- message.soundBedMedia[keys[i]] = $root.contentful.IdReference.fromObject(object.soundBedMedia[keys[i]]);
28742
+ if (object.ambientMedia) {
28743
+ if (typeof object.ambientMedia !== "object")
28744
+ throw TypeError(".ContentfulSleepcastRecipeCreated.ambientMedia: object expected");
28745
+ message.ambientMedia = {};
28746
+ for (var keys = Object.keys(object.ambientMedia), i = 0; i < keys.length; ++i) {
28747
+ if (typeof object.ambientMedia[keys[i]] !== "object")
28748
+ throw TypeError(".ContentfulSleepcastRecipeCreated.ambientMedia: object expected");
28749
+ message.ambientMedia[keys[i]] = $root.contentful.IdReference.fromObject(object.ambientMedia[keys[i]]);
28750
+ }
28751
+ }
28752
+ if (object.beforeIntroMedia) {
28753
+ if (typeof object.beforeIntroMedia !== "object")
28754
+ throw TypeError(".ContentfulSleepcastRecipeCreated.beforeIntroMedia: object expected");
28755
+ message.beforeIntroMedia = {};
28756
+ for (var keys = Object.keys(object.beforeIntroMedia), i = 0; i < keys.length; ++i) {
28757
+ if (typeof object.beforeIntroMedia[keys[i]] !== "object")
28758
+ throw TypeError(".ContentfulSleepcastRecipeCreated.beforeIntroMedia: object expected");
28759
+ message.beforeIntroMedia[keys[i]] = $root.contentful.IdReferences.fromObject(object.beforeIntroMedia[keys[i]]);
28704
28760
  }
28705
28761
  }
28706
28762
  if (object.introMedia) {
@@ -28710,17 +28766,37 @@ $root.ContentfulSleepcastRecipeCreated = (function() {
28710
28766
  for (var keys = Object.keys(object.introMedia), i = 0; i < keys.length; ++i) {
28711
28767
  if (typeof object.introMedia[keys[i]] !== "object")
28712
28768
  throw TypeError(".ContentfulSleepcastRecipeCreated.introMedia: object expected");
28713
- message.introMedia[keys[i]] = $root.contentful.IdReference.fromObject(object.introMedia[keys[i]]);
28769
+ message.introMedia[keys[i]] = $root.contentful.IdReferences.fromObject(object.introMedia[keys[i]]);
28770
+ }
28771
+ }
28772
+ if (object.afterIntroMedia) {
28773
+ if (typeof object.afterIntroMedia !== "object")
28774
+ throw TypeError(".ContentfulSleepcastRecipeCreated.afterIntroMedia: object expected");
28775
+ message.afterIntroMedia = {};
28776
+ for (var keys = Object.keys(object.afterIntroMedia), i = 0; i < keys.length; ++i) {
28777
+ if (typeof object.afterIntroMedia[keys[i]] !== "object")
28778
+ throw TypeError(".ContentfulSleepcastRecipeCreated.afterIntroMedia: object expected");
28779
+ message.afterIntroMedia[keys[i]] = $root.contentful.IdReferences.fromObject(object.afterIntroMedia[keys[i]]);
28780
+ }
28781
+ }
28782
+ if (object.mainMedia) {
28783
+ if (typeof object.mainMedia !== "object")
28784
+ throw TypeError(".ContentfulSleepcastRecipeCreated.mainMedia: object expected");
28785
+ message.mainMedia = {};
28786
+ for (var keys = Object.keys(object.mainMedia), i = 0; i < keys.length; ++i) {
28787
+ if (typeof object.mainMedia[keys[i]] !== "object")
28788
+ throw TypeError(".ContentfulSleepcastRecipeCreated.mainMedia: object expected");
28789
+ message.mainMedia[keys[i]] = $root.contentful.IdReferences.fromObject(object.mainMedia[keys[i]]);
28714
28790
  }
28715
28791
  }
28716
- if (object.leadInMedia) {
28717
- if (typeof object.leadInMedia !== "object")
28718
- throw TypeError(".ContentfulSleepcastRecipeCreated.leadInMedia: object expected");
28719
- message.leadInMedia = {};
28720
- for (var keys = Object.keys(object.leadInMedia), i = 0; i < keys.length; ++i) {
28721
- if (typeof object.leadInMedia[keys[i]] !== "object")
28722
- throw TypeError(".ContentfulSleepcastRecipeCreated.leadInMedia: object expected");
28723
- message.leadInMedia[keys[i]] = $root.contentful.IdReference.fromObject(object.leadInMedia[keys[i]]);
28792
+ if (object.beforeOutroMedia) {
28793
+ if (typeof object.beforeOutroMedia !== "object")
28794
+ throw TypeError(".ContentfulSleepcastRecipeCreated.beforeOutroMedia: object expected");
28795
+ message.beforeOutroMedia = {};
28796
+ for (var keys = Object.keys(object.beforeOutroMedia), i = 0; i < keys.length; ++i) {
28797
+ if (typeof object.beforeOutroMedia[keys[i]] !== "object")
28798
+ throw TypeError(".ContentfulSleepcastRecipeCreated.beforeOutroMedia: object expected");
28799
+ message.beforeOutroMedia[keys[i]] = $root.contentful.IdReferences.fromObject(object.beforeOutroMedia[keys[i]]);
28724
28800
  }
28725
28801
  }
28726
28802
  if (object.outroMedia) {
@@ -28730,7 +28806,17 @@ $root.ContentfulSleepcastRecipeCreated = (function() {
28730
28806
  for (var keys = Object.keys(object.outroMedia), i = 0; i < keys.length; ++i) {
28731
28807
  if (typeof object.outroMedia[keys[i]] !== "object")
28732
28808
  throw TypeError(".ContentfulSleepcastRecipeCreated.outroMedia: object expected");
28733
- message.outroMedia[keys[i]] = $root.contentful.IdReference.fromObject(object.outroMedia[keys[i]]);
28809
+ message.outroMedia[keys[i]] = $root.contentful.IdReferences.fromObject(object.outroMedia[keys[i]]);
28810
+ }
28811
+ }
28812
+ if (object.afterOutroMedia) {
28813
+ if (typeof object.afterOutroMedia !== "object")
28814
+ throw TypeError(".ContentfulSleepcastRecipeCreated.afterOutroMedia: object expected");
28815
+ message.afterOutroMedia = {};
28816
+ for (var keys = Object.keys(object.afterOutroMedia), i = 0; i < keys.length; ++i) {
28817
+ if (typeof object.afterOutroMedia[keys[i]] !== "object")
28818
+ throw TypeError(".ContentfulSleepcastRecipeCreated.afterOutroMedia: object expected");
28819
+ message.afterOutroMedia[keys[i]] = $root.contentful.IdReferences.fromObject(object.afterOutroMedia[keys[i]]);
28734
28820
  }
28735
28821
  }
28736
28822
  if (object.createdAt != null)
@@ -28759,12 +28845,14 @@ $root.ContentfulSleepcastRecipeCreated = (function() {
28759
28845
  options = {};
28760
28846
  var object = {};
28761
28847
  if (options.objects || options.defaults) {
28762
- object.mainMedia = {};
28763
- object.windDownMedia = {};
28764
- object.soundBedMedia = {};
28848
+ object.ambientMedia = {};
28849
+ object.beforeIntroMedia = {};
28765
28850
  object.introMedia = {};
28766
- object.leadInMedia = {};
28851
+ object.afterIntroMedia = {};
28852
+ object.mainMedia = {};
28853
+ object.beforeOutroMedia = {};
28767
28854
  object.outroMedia = {};
28855
+ object.afterOutroMedia = {};
28768
28856
  }
28769
28857
  if (options.defaults) {
28770
28858
  object.slug = "";
@@ -28780,35 +28868,45 @@ $root.ContentfulSleepcastRecipeCreated = (function() {
28780
28868
  if (message.generator != null && message.hasOwnProperty("generator"))
28781
28869
  object.generator = message.generator;
28782
28870
  var keys2;
28783
- if (message.mainMedia && (keys2 = Object.keys(message.mainMedia)).length) {
28784
- object.mainMedia = {};
28785
- for (var j = 0; j < keys2.length; ++j)
28786
- object.mainMedia[keys2[j]] = $root.contentful.IdReferences.toObject(message.mainMedia[keys2[j]], options);
28787
- }
28788
- if (message.windDownMedia && (keys2 = Object.keys(message.windDownMedia)).length) {
28789
- object.windDownMedia = {};
28871
+ if (message.ambientMedia && (keys2 = Object.keys(message.ambientMedia)).length) {
28872
+ object.ambientMedia = {};
28790
28873
  for (var j = 0; j < keys2.length; ++j)
28791
- object.windDownMedia[keys2[j]] = $root.contentful.IdReferences.toObject(message.windDownMedia[keys2[j]], options);
28874
+ object.ambientMedia[keys2[j]] = $root.contentful.IdReference.toObject(message.ambientMedia[keys2[j]], options);
28792
28875
  }
28793
- if (message.soundBedMedia && (keys2 = Object.keys(message.soundBedMedia)).length) {
28794
- object.soundBedMedia = {};
28876
+ if (message.beforeIntroMedia && (keys2 = Object.keys(message.beforeIntroMedia)).length) {
28877
+ object.beforeIntroMedia = {};
28795
28878
  for (var j = 0; j < keys2.length; ++j)
28796
- object.soundBedMedia[keys2[j]] = $root.contentful.IdReference.toObject(message.soundBedMedia[keys2[j]], options);
28879
+ object.beforeIntroMedia[keys2[j]] = $root.contentful.IdReferences.toObject(message.beforeIntroMedia[keys2[j]], options);
28797
28880
  }
28798
28881
  if (message.introMedia && (keys2 = Object.keys(message.introMedia)).length) {
28799
28882
  object.introMedia = {};
28800
28883
  for (var j = 0; j < keys2.length; ++j)
28801
- object.introMedia[keys2[j]] = $root.contentful.IdReference.toObject(message.introMedia[keys2[j]], options);
28884
+ object.introMedia[keys2[j]] = $root.contentful.IdReferences.toObject(message.introMedia[keys2[j]], options);
28885
+ }
28886
+ if (message.afterIntroMedia && (keys2 = Object.keys(message.afterIntroMedia)).length) {
28887
+ object.afterIntroMedia = {};
28888
+ for (var j = 0; j < keys2.length; ++j)
28889
+ object.afterIntroMedia[keys2[j]] = $root.contentful.IdReferences.toObject(message.afterIntroMedia[keys2[j]], options);
28890
+ }
28891
+ if (message.mainMedia && (keys2 = Object.keys(message.mainMedia)).length) {
28892
+ object.mainMedia = {};
28893
+ for (var j = 0; j < keys2.length; ++j)
28894
+ object.mainMedia[keys2[j]] = $root.contentful.IdReferences.toObject(message.mainMedia[keys2[j]], options);
28802
28895
  }
28803
- if (message.leadInMedia && (keys2 = Object.keys(message.leadInMedia)).length) {
28804
- object.leadInMedia = {};
28896
+ if (message.beforeOutroMedia && (keys2 = Object.keys(message.beforeOutroMedia)).length) {
28897
+ object.beforeOutroMedia = {};
28805
28898
  for (var j = 0; j < keys2.length; ++j)
28806
- object.leadInMedia[keys2[j]] = $root.contentful.IdReference.toObject(message.leadInMedia[keys2[j]], options);
28899
+ object.beforeOutroMedia[keys2[j]] = $root.contentful.IdReferences.toObject(message.beforeOutroMedia[keys2[j]], options);
28807
28900
  }
28808
28901
  if (message.outroMedia && (keys2 = Object.keys(message.outroMedia)).length) {
28809
28902
  object.outroMedia = {};
28810
28903
  for (var j = 0; j < keys2.length; ++j)
28811
- object.outroMedia[keys2[j]] = $root.contentful.IdReference.toObject(message.outroMedia[keys2[j]], options);
28904
+ object.outroMedia[keys2[j]] = $root.contentful.IdReferences.toObject(message.outroMedia[keys2[j]], options);
28905
+ }
28906
+ if (message.afterOutroMedia && (keys2 = Object.keys(message.afterOutroMedia)).length) {
28907
+ object.afterOutroMedia = {};
28908
+ for (var j = 0; j < keys2.length; ++j)
28909
+ object.afterOutroMedia[keys2[j]] = $root.contentful.IdReferences.toObject(message.afterOutroMedia[keys2[j]], options);
28812
28910
  }
28813
28911
  if (message.createdAt != null && message.hasOwnProperty("createdAt"))
28814
28912
  if (typeof message.createdAt === "number")
@@ -28840,12 +28938,14 @@ $root.ContentfulSleepcastRecipeUpdated = (function() {
28840
28938
  * @interface IContentfulSleepcastRecipeUpdated
28841
28939
  * @property {string|null} [slug] ContentfulSleepcastRecipeUpdated slug
28842
28940
  * @property {string|null} [generator] ContentfulSleepcastRecipeUpdated generator
28941
+ * @property {Object.<string,contentful.IIdReference>|null} [ambientMedia] ContentfulSleepcastRecipeUpdated ambientMedia
28942
+ * @property {Object.<string,contentful.IIdReferences>|null} [beforeIntroMedia] ContentfulSleepcastRecipeUpdated beforeIntroMedia
28943
+ * @property {Object.<string,contentful.IIdReferences>|null} [introMedia] ContentfulSleepcastRecipeUpdated introMedia
28944
+ * @property {Object.<string,contentful.IIdReferences>|null} [afterIntroMedia] ContentfulSleepcastRecipeUpdated afterIntroMedia
28843
28945
  * @property {Object.<string,contentful.IIdReferences>|null} [mainMedia] ContentfulSleepcastRecipeUpdated mainMedia
28844
- * @property {Object.<string,contentful.IIdReferences>|null} [windDownMedia] ContentfulSleepcastRecipeUpdated windDownMedia
28845
- * @property {Object.<string,contentful.IIdReference>|null} [soundBedMedia] ContentfulSleepcastRecipeUpdated soundBedMedia
28846
- * @property {Object.<string,contentful.IIdReference>|null} [introMedia] ContentfulSleepcastRecipeUpdated introMedia
28847
- * @property {Object.<string,contentful.IIdReference>|null} [leadInMedia] ContentfulSleepcastRecipeUpdated leadInMedia
28848
- * @property {Object.<string,contentful.IIdReference>|null} [outroMedia] ContentfulSleepcastRecipeUpdated outroMedia
28946
+ * @property {Object.<string,contentful.IIdReferences>|null} [beforeOutroMedia] ContentfulSleepcastRecipeUpdated beforeOutroMedia
28947
+ * @property {Object.<string,contentful.IIdReferences>|null} [outroMedia] ContentfulSleepcastRecipeUpdated outroMedia
28948
+ * @property {Object.<string,contentful.IIdReferences>|null} [afterOutroMedia] ContentfulSleepcastRecipeUpdated afterOutroMedia
28849
28949
  * @property {number|Long|null} [updatedAt] ContentfulSleepcastRecipeUpdated updatedAt
28850
28950
  */
28851
28951
 
@@ -28858,12 +28958,14 @@ $root.ContentfulSleepcastRecipeUpdated = (function() {
28858
28958
  * @param {IContentfulSleepcastRecipeUpdated=} [properties] Properties to set
28859
28959
  */
28860
28960
  function ContentfulSleepcastRecipeUpdated(properties) {
28861
- this.mainMedia = {};
28862
- this.windDownMedia = {};
28863
- this.soundBedMedia = {};
28961
+ this.ambientMedia = {};
28962
+ this.beforeIntroMedia = {};
28864
28963
  this.introMedia = {};
28865
- this.leadInMedia = {};
28964
+ this.afterIntroMedia = {};
28965
+ this.mainMedia = {};
28966
+ this.beforeOutroMedia = {};
28866
28967
  this.outroMedia = {};
28968
+ this.afterOutroMedia = {};
28867
28969
  if (properties)
28868
28970
  for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
28869
28971
  if (properties[keys[i]] != null)
@@ -28887,53 +28989,69 @@ $root.ContentfulSleepcastRecipeUpdated = (function() {
28887
28989
  ContentfulSleepcastRecipeUpdated.prototype.generator = "";
28888
28990
 
28889
28991
  /**
28890
- * ContentfulSleepcastRecipeUpdated mainMedia.
28891
- * @member {Object.<string,contentful.IIdReferences>} mainMedia
28992
+ * ContentfulSleepcastRecipeUpdated ambientMedia.
28993
+ * @member {Object.<string,contentful.IIdReference>} ambientMedia
28892
28994
  * @memberof ContentfulSleepcastRecipeUpdated
28893
28995
  * @instance
28894
28996
  */
28895
- ContentfulSleepcastRecipeUpdated.prototype.mainMedia = $util.emptyObject;
28997
+ ContentfulSleepcastRecipeUpdated.prototype.ambientMedia = $util.emptyObject;
28896
28998
 
28897
28999
  /**
28898
- * ContentfulSleepcastRecipeUpdated windDownMedia.
28899
- * @member {Object.<string,contentful.IIdReferences>} windDownMedia
29000
+ * ContentfulSleepcastRecipeUpdated beforeIntroMedia.
29001
+ * @member {Object.<string,contentful.IIdReferences>} beforeIntroMedia
28900
29002
  * @memberof ContentfulSleepcastRecipeUpdated
28901
29003
  * @instance
28902
29004
  */
28903
- ContentfulSleepcastRecipeUpdated.prototype.windDownMedia = $util.emptyObject;
29005
+ ContentfulSleepcastRecipeUpdated.prototype.beforeIntroMedia = $util.emptyObject;
28904
29006
 
28905
29007
  /**
28906
- * ContentfulSleepcastRecipeUpdated soundBedMedia.
28907
- * @member {Object.<string,contentful.IIdReference>} soundBedMedia
29008
+ * ContentfulSleepcastRecipeUpdated introMedia.
29009
+ * @member {Object.<string,contentful.IIdReferences>} introMedia
28908
29010
  * @memberof ContentfulSleepcastRecipeUpdated
28909
29011
  * @instance
28910
29012
  */
28911
- ContentfulSleepcastRecipeUpdated.prototype.soundBedMedia = $util.emptyObject;
29013
+ ContentfulSleepcastRecipeUpdated.prototype.introMedia = $util.emptyObject;
28912
29014
 
28913
29015
  /**
28914
- * ContentfulSleepcastRecipeUpdated introMedia.
28915
- * @member {Object.<string,contentful.IIdReference>} introMedia
29016
+ * ContentfulSleepcastRecipeUpdated afterIntroMedia.
29017
+ * @member {Object.<string,contentful.IIdReferences>} afterIntroMedia
28916
29018
  * @memberof ContentfulSleepcastRecipeUpdated
28917
29019
  * @instance
28918
29020
  */
28919
- ContentfulSleepcastRecipeUpdated.prototype.introMedia = $util.emptyObject;
29021
+ ContentfulSleepcastRecipeUpdated.prototype.afterIntroMedia = $util.emptyObject;
29022
+
29023
+ /**
29024
+ * ContentfulSleepcastRecipeUpdated mainMedia.
29025
+ * @member {Object.<string,contentful.IIdReferences>} mainMedia
29026
+ * @memberof ContentfulSleepcastRecipeUpdated
29027
+ * @instance
29028
+ */
29029
+ ContentfulSleepcastRecipeUpdated.prototype.mainMedia = $util.emptyObject;
28920
29030
 
28921
29031
  /**
28922
- * ContentfulSleepcastRecipeUpdated leadInMedia.
28923
- * @member {Object.<string,contentful.IIdReference>} leadInMedia
29032
+ * ContentfulSleepcastRecipeUpdated beforeOutroMedia.
29033
+ * @member {Object.<string,contentful.IIdReferences>} beforeOutroMedia
28924
29034
  * @memberof ContentfulSleepcastRecipeUpdated
28925
29035
  * @instance
28926
29036
  */
28927
- ContentfulSleepcastRecipeUpdated.prototype.leadInMedia = $util.emptyObject;
29037
+ ContentfulSleepcastRecipeUpdated.prototype.beforeOutroMedia = $util.emptyObject;
28928
29038
 
28929
29039
  /**
28930
29040
  * ContentfulSleepcastRecipeUpdated outroMedia.
28931
- * @member {Object.<string,contentful.IIdReference>} outroMedia
29041
+ * @member {Object.<string,contentful.IIdReferences>} outroMedia
28932
29042
  * @memberof ContentfulSleepcastRecipeUpdated
28933
29043
  * @instance
28934
29044
  */
28935
29045
  ContentfulSleepcastRecipeUpdated.prototype.outroMedia = $util.emptyObject;
28936
29046
 
29047
+ /**
29048
+ * ContentfulSleepcastRecipeUpdated afterOutroMedia.
29049
+ * @member {Object.<string,contentful.IIdReferences>} afterOutroMedia
29050
+ * @memberof ContentfulSleepcastRecipeUpdated
29051
+ * @instance
29052
+ */
29053
+ ContentfulSleepcastRecipeUpdated.prototype.afterOutroMedia = $util.emptyObject;
29054
+
28937
29055
  /**
28938
29056
  * ContentfulSleepcastRecipeUpdated updatedAt.
28939
29057
  * @member {number|Long} updatedAt
@@ -28970,38 +29088,48 @@ $root.ContentfulSleepcastRecipeUpdated = (function() {
28970
29088
  writer.uint32(/* id 1, wireType 2 =*/10).string(message.slug);
28971
29089
  if (message.generator != null && message.hasOwnProperty("generator"))
28972
29090
  writer.uint32(/* id 2, wireType 2 =*/18).string(message.generator);
28973
- if (message.mainMedia != null && message.hasOwnProperty("mainMedia"))
28974
- for (var keys = Object.keys(message.mainMedia), i = 0; i < keys.length; ++i) {
29091
+ if (message.ambientMedia != null && message.hasOwnProperty("ambientMedia"))
29092
+ for (var keys = Object.keys(message.ambientMedia), i = 0; i < keys.length; ++i) {
28975
29093
  writer.uint32(/* id 3, wireType 2 =*/26).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]);
28976
- $root.contentful.IdReferences.encode(message.mainMedia[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim();
29094
+ $root.contentful.IdReference.encode(message.ambientMedia[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim();
28977
29095
  }
28978
- if (message.windDownMedia != null && message.hasOwnProperty("windDownMedia"))
28979
- for (var keys = Object.keys(message.windDownMedia), i = 0; i < keys.length; ++i) {
29096
+ if (message.beforeIntroMedia != null && message.hasOwnProperty("beforeIntroMedia"))
29097
+ for (var keys = Object.keys(message.beforeIntroMedia), i = 0; i < keys.length; ++i) {
28980
29098
  writer.uint32(/* id 4, wireType 2 =*/34).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]);
28981
- $root.contentful.IdReferences.encode(message.windDownMedia[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim();
28982
- }
28983
- if (message.soundBedMedia != null && message.hasOwnProperty("soundBedMedia"))
28984
- for (var keys = Object.keys(message.soundBedMedia), i = 0; i < keys.length; ++i) {
28985
- writer.uint32(/* id 5, wireType 2 =*/42).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]);
28986
- $root.contentful.IdReference.encode(message.soundBedMedia[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim();
29099
+ $root.contentful.IdReferences.encode(message.beforeIntroMedia[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim();
28987
29100
  }
28988
29101
  if (message.introMedia != null && message.hasOwnProperty("introMedia"))
28989
29102
  for (var keys = Object.keys(message.introMedia), i = 0; i < keys.length; ++i) {
29103
+ writer.uint32(/* id 5, wireType 2 =*/42).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]);
29104
+ $root.contentful.IdReferences.encode(message.introMedia[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim();
29105
+ }
29106
+ if (message.afterIntroMedia != null && message.hasOwnProperty("afterIntroMedia"))
29107
+ for (var keys = Object.keys(message.afterIntroMedia), i = 0; i < keys.length; ++i) {
28990
29108
  writer.uint32(/* id 6, wireType 2 =*/50).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]);
28991
- $root.contentful.IdReference.encode(message.introMedia[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim();
29109
+ $root.contentful.IdReferences.encode(message.afterIntroMedia[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim();
28992
29110
  }
28993
- if (message.leadInMedia != null && message.hasOwnProperty("leadInMedia"))
28994
- for (var keys = Object.keys(message.leadInMedia), i = 0; i < keys.length; ++i) {
29111
+ if (message.mainMedia != null && message.hasOwnProperty("mainMedia"))
29112
+ for (var keys = Object.keys(message.mainMedia), i = 0; i < keys.length; ++i) {
28995
29113
  writer.uint32(/* id 7, wireType 2 =*/58).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]);
28996
- $root.contentful.IdReference.encode(message.leadInMedia[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim();
29114
+ $root.contentful.IdReferences.encode(message.mainMedia[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim();
29115
+ }
29116
+ if (message.beforeOutroMedia != null && message.hasOwnProperty("beforeOutroMedia"))
29117
+ for (var keys = Object.keys(message.beforeOutroMedia), i = 0; i < keys.length; ++i) {
29118
+ writer.uint32(/* id 8, wireType 2 =*/66).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]);
29119
+ $root.contentful.IdReferences.encode(message.beforeOutroMedia[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim();
28997
29120
  }
28998
29121
  if (message.outroMedia != null && message.hasOwnProperty("outroMedia"))
28999
29122
  for (var keys = Object.keys(message.outroMedia), i = 0; i < keys.length; ++i) {
29000
- writer.uint32(/* id 8, wireType 2 =*/66).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]);
29001
- $root.contentful.IdReference.encode(message.outroMedia[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim();
29123
+ writer.uint32(/* id 9, wireType 2 =*/74).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]);
29124
+ $root.contentful.IdReferences.encode(message.outroMedia[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim();
29125
+ }
29126
+ if (message.afterOutroMedia != null && message.hasOwnProperty("afterOutroMedia"))
29127
+ for (var keys = Object.keys(message.afterOutroMedia), i = 0; i < keys.length; ++i) {
29128
+ writer.uint32(/* id 10, wireType 2 =*/82).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]);
29129
+ $root.contentful.IdReferences.encode(message.afterOutroMedia[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim();
29002
29130
  }
29003
29131
  if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
29004
- writer.uint32(/* id 9, wireType 0 =*/72).uint64(message.updatedAt);
29132
+ writer.uint32(/* id 11, wireType 0 =*/88).uint64(message.updatedAt);
29005
29133
  return writer;
29006
29134
  };
29007
29135
 
@@ -29044,53 +29172,69 @@ $root.ContentfulSleepcastRecipeUpdated = (function() {
29044
29172
  break;
29045
29173
  case 3:
29046
29174
  reader.skip().pos++;
29047
- if (message.mainMedia === $util.emptyObject)
29048
- message.mainMedia = {};
29175
+ if (message.ambientMedia === $util.emptyObject)
29176
+ message.ambientMedia = {};
29049
29177
  key = reader.string();
29050
29178
  reader.pos++;
29051
- message.mainMedia[key] = $root.contentful.IdReferences.decode(reader, reader.uint32());
29179
+ message.ambientMedia[key] = $root.contentful.IdReference.decode(reader, reader.uint32());
29052
29180
  break;
29053
29181
  case 4:
29054
29182
  reader.skip().pos++;
29055
- if (message.windDownMedia === $util.emptyObject)
29056
- message.windDownMedia = {};
29183
+ if (message.beforeIntroMedia === $util.emptyObject)
29184
+ message.beforeIntroMedia = {};
29057
29185
  key = reader.string();
29058
29186
  reader.pos++;
29059
- message.windDownMedia[key] = $root.contentful.IdReferences.decode(reader, reader.uint32());
29187
+ message.beforeIntroMedia[key] = $root.contentful.IdReferences.decode(reader, reader.uint32());
29060
29188
  break;
29061
29189
  case 5:
29062
29190
  reader.skip().pos++;
29063
- if (message.soundBedMedia === $util.emptyObject)
29064
- message.soundBedMedia = {};
29191
+ if (message.introMedia === $util.emptyObject)
29192
+ message.introMedia = {};
29065
29193
  key = reader.string();
29066
29194
  reader.pos++;
29067
- message.soundBedMedia[key] = $root.contentful.IdReference.decode(reader, reader.uint32());
29195
+ message.introMedia[key] = $root.contentful.IdReferences.decode(reader, reader.uint32());
29068
29196
  break;
29069
29197
  case 6:
29070
29198
  reader.skip().pos++;
29071
- if (message.introMedia === $util.emptyObject)
29072
- message.introMedia = {};
29199
+ if (message.afterIntroMedia === $util.emptyObject)
29200
+ message.afterIntroMedia = {};
29073
29201
  key = reader.string();
29074
29202
  reader.pos++;
29075
- message.introMedia[key] = $root.contentful.IdReference.decode(reader, reader.uint32());
29203
+ message.afterIntroMedia[key] = $root.contentful.IdReferences.decode(reader, reader.uint32());
29076
29204
  break;
29077
29205
  case 7:
29078
29206
  reader.skip().pos++;
29079
- if (message.leadInMedia === $util.emptyObject)
29080
- message.leadInMedia = {};
29207
+ if (message.mainMedia === $util.emptyObject)
29208
+ message.mainMedia = {};
29081
29209
  key = reader.string();
29082
29210
  reader.pos++;
29083
- message.leadInMedia[key] = $root.contentful.IdReference.decode(reader, reader.uint32());
29211
+ message.mainMedia[key] = $root.contentful.IdReferences.decode(reader, reader.uint32());
29084
29212
  break;
29085
29213
  case 8:
29214
+ reader.skip().pos++;
29215
+ if (message.beforeOutroMedia === $util.emptyObject)
29216
+ message.beforeOutroMedia = {};
29217
+ key = reader.string();
29218
+ reader.pos++;
29219
+ message.beforeOutroMedia[key] = $root.contentful.IdReferences.decode(reader, reader.uint32());
29220
+ break;
29221
+ case 9:
29086
29222
  reader.skip().pos++;
29087
29223
  if (message.outroMedia === $util.emptyObject)
29088
29224
  message.outroMedia = {};
29089
29225
  key = reader.string();
29090
29226
  reader.pos++;
29091
- message.outroMedia[key] = $root.contentful.IdReference.decode(reader, reader.uint32());
29227
+ message.outroMedia[key] = $root.contentful.IdReferences.decode(reader, reader.uint32());
29092
29228
  break;
29093
- case 9:
29229
+ case 10:
29230
+ reader.skip().pos++;
29231
+ if (message.afterOutroMedia === $util.emptyObject)
29232
+ message.afterOutroMedia = {};
29233
+ key = reader.string();
29234
+ reader.pos++;
29235
+ message.afterOutroMedia[key] = $root.contentful.IdReferences.decode(reader, reader.uint32());
29236
+ break;
29237
+ case 11:
29094
29238
  message.updatedAt = reader.uint64();
29095
29239
  break;
29096
29240
  default:
@@ -29134,34 +29278,24 @@ $root.ContentfulSleepcastRecipeUpdated = (function() {
29134
29278
  if (message.generator != null && message.hasOwnProperty("generator"))
29135
29279
  if (!$util.isString(message.generator))
29136
29280
  return "generator: string expected";
29137
- if (message.mainMedia != null && message.hasOwnProperty("mainMedia")) {
29138
- if (!$util.isObject(message.mainMedia))
29139
- return "mainMedia: object expected";
29140
- var key = Object.keys(message.mainMedia);
29141
- for (var i = 0; i < key.length; ++i) {
29142
- var error = $root.contentful.IdReferences.verify(message.mainMedia[key[i]]);
29143
- if (error)
29144
- return "mainMedia." + error;
29145
- }
29146
- }
29147
- if (message.windDownMedia != null && message.hasOwnProperty("windDownMedia")) {
29148
- if (!$util.isObject(message.windDownMedia))
29149
- return "windDownMedia: object expected";
29150
- var key = Object.keys(message.windDownMedia);
29281
+ if (message.ambientMedia != null && message.hasOwnProperty("ambientMedia")) {
29282
+ if (!$util.isObject(message.ambientMedia))
29283
+ return "ambientMedia: object expected";
29284
+ var key = Object.keys(message.ambientMedia);
29151
29285
  for (var i = 0; i < key.length; ++i) {
29152
- var error = $root.contentful.IdReferences.verify(message.windDownMedia[key[i]]);
29286
+ var error = $root.contentful.IdReference.verify(message.ambientMedia[key[i]]);
29153
29287
  if (error)
29154
- return "windDownMedia." + error;
29288
+ return "ambientMedia." + error;
29155
29289
  }
29156
29290
  }
29157
- if (message.soundBedMedia != null && message.hasOwnProperty("soundBedMedia")) {
29158
- if (!$util.isObject(message.soundBedMedia))
29159
- return "soundBedMedia: object expected";
29160
- var key = Object.keys(message.soundBedMedia);
29291
+ if (message.beforeIntroMedia != null && message.hasOwnProperty("beforeIntroMedia")) {
29292
+ if (!$util.isObject(message.beforeIntroMedia))
29293
+ return "beforeIntroMedia: object expected";
29294
+ var key = Object.keys(message.beforeIntroMedia);
29161
29295
  for (var i = 0; i < key.length; ++i) {
29162
- var error = $root.contentful.IdReference.verify(message.soundBedMedia[key[i]]);
29296
+ var error = $root.contentful.IdReferences.verify(message.beforeIntroMedia[key[i]]);
29163
29297
  if (error)
29164
- return "soundBedMedia." + error;
29298
+ return "beforeIntroMedia." + error;
29165
29299
  }
29166
29300
  }
29167
29301
  if (message.introMedia != null && message.hasOwnProperty("introMedia")) {
@@ -29169,19 +29303,39 @@ $root.ContentfulSleepcastRecipeUpdated = (function() {
29169
29303
  return "introMedia: object expected";
29170
29304
  var key = Object.keys(message.introMedia);
29171
29305
  for (var i = 0; i < key.length; ++i) {
29172
- var error = $root.contentful.IdReference.verify(message.introMedia[key[i]]);
29306
+ var error = $root.contentful.IdReferences.verify(message.introMedia[key[i]]);
29173
29307
  if (error)
29174
29308
  return "introMedia." + error;
29175
29309
  }
29176
29310
  }
29177
- if (message.leadInMedia != null && message.hasOwnProperty("leadInMedia")) {
29178
- if (!$util.isObject(message.leadInMedia))
29179
- return "leadInMedia: object expected";
29180
- var key = Object.keys(message.leadInMedia);
29311
+ if (message.afterIntroMedia != null && message.hasOwnProperty("afterIntroMedia")) {
29312
+ if (!$util.isObject(message.afterIntroMedia))
29313
+ return "afterIntroMedia: object expected";
29314
+ var key = Object.keys(message.afterIntroMedia);
29315
+ for (var i = 0; i < key.length; ++i) {
29316
+ var error = $root.contentful.IdReferences.verify(message.afterIntroMedia[key[i]]);
29317
+ if (error)
29318
+ return "afterIntroMedia." + error;
29319
+ }
29320
+ }
29321
+ if (message.mainMedia != null && message.hasOwnProperty("mainMedia")) {
29322
+ if (!$util.isObject(message.mainMedia))
29323
+ return "mainMedia: object expected";
29324
+ var key = Object.keys(message.mainMedia);
29325
+ for (var i = 0; i < key.length; ++i) {
29326
+ var error = $root.contentful.IdReferences.verify(message.mainMedia[key[i]]);
29327
+ if (error)
29328
+ return "mainMedia." + error;
29329
+ }
29330
+ }
29331
+ if (message.beforeOutroMedia != null && message.hasOwnProperty("beforeOutroMedia")) {
29332
+ if (!$util.isObject(message.beforeOutroMedia))
29333
+ return "beforeOutroMedia: object expected";
29334
+ var key = Object.keys(message.beforeOutroMedia);
29181
29335
  for (var i = 0; i < key.length; ++i) {
29182
- var error = $root.contentful.IdReference.verify(message.leadInMedia[key[i]]);
29336
+ var error = $root.contentful.IdReferences.verify(message.beforeOutroMedia[key[i]]);
29183
29337
  if (error)
29184
- return "leadInMedia." + error;
29338
+ return "beforeOutroMedia." + error;
29185
29339
  }
29186
29340
  }
29187
29341
  if (message.outroMedia != null && message.hasOwnProperty("outroMedia")) {
@@ -29189,11 +29343,21 @@ $root.ContentfulSleepcastRecipeUpdated = (function() {
29189
29343
  return "outroMedia: object expected";
29190
29344
  var key = Object.keys(message.outroMedia);
29191
29345
  for (var i = 0; i < key.length; ++i) {
29192
- var error = $root.contentful.IdReference.verify(message.outroMedia[key[i]]);
29346
+ var error = $root.contentful.IdReferences.verify(message.outroMedia[key[i]]);
29193
29347
  if (error)
29194
29348
  return "outroMedia." + error;
29195
29349
  }
29196
29350
  }
29351
+ if (message.afterOutroMedia != null && message.hasOwnProperty("afterOutroMedia")) {
29352
+ if (!$util.isObject(message.afterOutroMedia))
29353
+ return "afterOutroMedia: object expected";
29354
+ var key = Object.keys(message.afterOutroMedia);
29355
+ for (var i = 0; i < key.length; ++i) {
29356
+ var error = $root.contentful.IdReferences.verify(message.afterOutroMedia[key[i]]);
29357
+ if (error)
29358
+ return "afterOutroMedia." + error;
29359
+ }
29360
+ }
29197
29361
  if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
29198
29362
  if (!$util.isInteger(message.updatedAt) && !(message.updatedAt && $util.isInteger(message.updatedAt.low) && $util.isInteger(message.updatedAt.high)))
29199
29363
  return "updatedAt: integer|Long expected";
@@ -29216,34 +29380,24 @@ $root.ContentfulSleepcastRecipeUpdated = (function() {
29216
29380
  message.slug = String(object.slug);
29217
29381
  if (object.generator != null)
29218
29382
  message.generator = String(object.generator);
29219
- if (object.mainMedia) {
29220
- if (typeof object.mainMedia !== "object")
29221
- throw TypeError(".ContentfulSleepcastRecipeUpdated.mainMedia: object expected");
29222
- message.mainMedia = {};
29223
- for (var keys = Object.keys(object.mainMedia), i = 0; i < keys.length; ++i) {
29224
- if (typeof object.mainMedia[keys[i]] !== "object")
29225
- throw TypeError(".ContentfulSleepcastRecipeUpdated.mainMedia: object expected");
29226
- message.mainMedia[keys[i]] = $root.contentful.IdReferences.fromObject(object.mainMedia[keys[i]]);
29227
- }
29228
- }
29229
- if (object.windDownMedia) {
29230
- if (typeof object.windDownMedia !== "object")
29231
- throw TypeError(".ContentfulSleepcastRecipeUpdated.windDownMedia: object expected");
29232
- message.windDownMedia = {};
29233
- for (var keys = Object.keys(object.windDownMedia), i = 0; i < keys.length; ++i) {
29234
- if (typeof object.windDownMedia[keys[i]] !== "object")
29235
- throw TypeError(".ContentfulSleepcastRecipeUpdated.windDownMedia: object expected");
29236
- message.windDownMedia[keys[i]] = $root.contentful.IdReferences.fromObject(object.windDownMedia[keys[i]]);
29237
- }
29238
- }
29239
- if (object.soundBedMedia) {
29240
- if (typeof object.soundBedMedia !== "object")
29241
- throw TypeError(".ContentfulSleepcastRecipeUpdated.soundBedMedia: object expected");
29242
- message.soundBedMedia = {};
29243
- for (var keys = Object.keys(object.soundBedMedia), i = 0; i < keys.length; ++i) {
29244
- if (typeof object.soundBedMedia[keys[i]] !== "object")
29245
- throw TypeError(".ContentfulSleepcastRecipeUpdated.soundBedMedia: object expected");
29246
- message.soundBedMedia[keys[i]] = $root.contentful.IdReference.fromObject(object.soundBedMedia[keys[i]]);
29383
+ if (object.ambientMedia) {
29384
+ if (typeof object.ambientMedia !== "object")
29385
+ throw TypeError(".ContentfulSleepcastRecipeUpdated.ambientMedia: object expected");
29386
+ message.ambientMedia = {};
29387
+ for (var keys = Object.keys(object.ambientMedia), i = 0; i < keys.length; ++i) {
29388
+ if (typeof object.ambientMedia[keys[i]] !== "object")
29389
+ throw TypeError(".ContentfulSleepcastRecipeUpdated.ambientMedia: object expected");
29390
+ message.ambientMedia[keys[i]] = $root.contentful.IdReference.fromObject(object.ambientMedia[keys[i]]);
29391
+ }
29392
+ }
29393
+ if (object.beforeIntroMedia) {
29394
+ if (typeof object.beforeIntroMedia !== "object")
29395
+ throw TypeError(".ContentfulSleepcastRecipeUpdated.beforeIntroMedia: object expected");
29396
+ message.beforeIntroMedia = {};
29397
+ for (var keys = Object.keys(object.beforeIntroMedia), i = 0; i < keys.length; ++i) {
29398
+ if (typeof object.beforeIntroMedia[keys[i]] !== "object")
29399
+ throw TypeError(".ContentfulSleepcastRecipeUpdated.beforeIntroMedia: object expected");
29400
+ message.beforeIntroMedia[keys[i]] = $root.contentful.IdReferences.fromObject(object.beforeIntroMedia[keys[i]]);
29247
29401
  }
29248
29402
  }
29249
29403
  if (object.introMedia) {
@@ -29253,17 +29407,37 @@ $root.ContentfulSleepcastRecipeUpdated = (function() {
29253
29407
  for (var keys = Object.keys(object.introMedia), i = 0; i < keys.length; ++i) {
29254
29408
  if (typeof object.introMedia[keys[i]] !== "object")
29255
29409
  throw TypeError(".ContentfulSleepcastRecipeUpdated.introMedia: object expected");
29256
- message.introMedia[keys[i]] = $root.contentful.IdReference.fromObject(object.introMedia[keys[i]]);
29410
+ message.introMedia[keys[i]] = $root.contentful.IdReferences.fromObject(object.introMedia[keys[i]]);
29411
+ }
29412
+ }
29413
+ if (object.afterIntroMedia) {
29414
+ if (typeof object.afterIntroMedia !== "object")
29415
+ throw TypeError(".ContentfulSleepcastRecipeUpdated.afterIntroMedia: object expected");
29416
+ message.afterIntroMedia = {};
29417
+ for (var keys = Object.keys(object.afterIntroMedia), i = 0; i < keys.length; ++i) {
29418
+ if (typeof object.afterIntroMedia[keys[i]] !== "object")
29419
+ throw TypeError(".ContentfulSleepcastRecipeUpdated.afterIntroMedia: object expected");
29420
+ message.afterIntroMedia[keys[i]] = $root.contentful.IdReferences.fromObject(object.afterIntroMedia[keys[i]]);
29421
+ }
29422
+ }
29423
+ if (object.mainMedia) {
29424
+ if (typeof object.mainMedia !== "object")
29425
+ throw TypeError(".ContentfulSleepcastRecipeUpdated.mainMedia: object expected");
29426
+ message.mainMedia = {};
29427
+ for (var keys = Object.keys(object.mainMedia), i = 0; i < keys.length; ++i) {
29428
+ if (typeof object.mainMedia[keys[i]] !== "object")
29429
+ throw TypeError(".ContentfulSleepcastRecipeUpdated.mainMedia: object expected");
29430
+ message.mainMedia[keys[i]] = $root.contentful.IdReferences.fromObject(object.mainMedia[keys[i]]);
29257
29431
  }
29258
29432
  }
29259
- if (object.leadInMedia) {
29260
- if (typeof object.leadInMedia !== "object")
29261
- throw TypeError(".ContentfulSleepcastRecipeUpdated.leadInMedia: object expected");
29262
- message.leadInMedia = {};
29263
- for (var keys = Object.keys(object.leadInMedia), i = 0; i < keys.length; ++i) {
29264
- if (typeof object.leadInMedia[keys[i]] !== "object")
29265
- throw TypeError(".ContentfulSleepcastRecipeUpdated.leadInMedia: object expected");
29266
- message.leadInMedia[keys[i]] = $root.contentful.IdReference.fromObject(object.leadInMedia[keys[i]]);
29433
+ if (object.beforeOutroMedia) {
29434
+ if (typeof object.beforeOutroMedia !== "object")
29435
+ throw TypeError(".ContentfulSleepcastRecipeUpdated.beforeOutroMedia: object expected");
29436
+ message.beforeOutroMedia = {};
29437
+ for (var keys = Object.keys(object.beforeOutroMedia), i = 0; i < keys.length; ++i) {
29438
+ if (typeof object.beforeOutroMedia[keys[i]] !== "object")
29439
+ throw TypeError(".ContentfulSleepcastRecipeUpdated.beforeOutroMedia: object expected");
29440
+ message.beforeOutroMedia[keys[i]] = $root.contentful.IdReferences.fromObject(object.beforeOutroMedia[keys[i]]);
29267
29441
  }
29268
29442
  }
29269
29443
  if (object.outroMedia) {
@@ -29273,7 +29447,17 @@ $root.ContentfulSleepcastRecipeUpdated = (function() {
29273
29447
  for (var keys = Object.keys(object.outroMedia), i = 0; i < keys.length; ++i) {
29274
29448
  if (typeof object.outroMedia[keys[i]] !== "object")
29275
29449
  throw TypeError(".ContentfulSleepcastRecipeUpdated.outroMedia: object expected");
29276
- message.outroMedia[keys[i]] = $root.contentful.IdReference.fromObject(object.outroMedia[keys[i]]);
29450
+ message.outroMedia[keys[i]] = $root.contentful.IdReferences.fromObject(object.outroMedia[keys[i]]);
29451
+ }
29452
+ }
29453
+ if (object.afterOutroMedia) {
29454
+ if (typeof object.afterOutroMedia !== "object")
29455
+ throw TypeError(".ContentfulSleepcastRecipeUpdated.afterOutroMedia: object expected");
29456
+ message.afterOutroMedia = {};
29457
+ for (var keys = Object.keys(object.afterOutroMedia), i = 0; i < keys.length; ++i) {
29458
+ if (typeof object.afterOutroMedia[keys[i]] !== "object")
29459
+ throw TypeError(".ContentfulSleepcastRecipeUpdated.afterOutroMedia: object expected");
29460
+ message.afterOutroMedia[keys[i]] = $root.contentful.IdReferences.fromObject(object.afterOutroMedia[keys[i]]);
29277
29461
  }
29278
29462
  }
29279
29463
  if (object.updatedAt != null)
@@ -29302,12 +29486,14 @@ $root.ContentfulSleepcastRecipeUpdated = (function() {
29302
29486
  options = {};
29303
29487
  var object = {};
29304
29488
  if (options.objects || options.defaults) {
29305
- object.mainMedia = {};
29306
- object.windDownMedia = {};
29307
- object.soundBedMedia = {};
29489
+ object.ambientMedia = {};
29490
+ object.beforeIntroMedia = {};
29308
29491
  object.introMedia = {};
29309
- object.leadInMedia = {};
29492
+ object.afterIntroMedia = {};
29493
+ object.mainMedia = {};
29494
+ object.beforeOutroMedia = {};
29310
29495
  object.outroMedia = {};
29496
+ object.afterOutroMedia = {};
29311
29497
  }
29312
29498
  if (options.defaults) {
29313
29499
  object.slug = "";
@@ -29323,35 +29509,45 @@ $root.ContentfulSleepcastRecipeUpdated = (function() {
29323
29509
  if (message.generator != null && message.hasOwnProperty("generator"))
29324
29510
  object.generator = message.generator;
29325
29511
  var keys2;
29326
- if (message.mainMedia && (keys2 = Object.keys(message.mainMedia)).length) {
29327
- object.mainMedia = {};
29512
+ if (message.ambientMedia && (keys2 = Object.keys(message.ambientMedia)).length) {
29513
+ object.ambientMedia = {};
29328
29514
  for (var j = 0; j < keys2.length; ++j)
29329
- object.mainMedia[keys2[j]] = $root.contentful.IdReferences.toObject(message.mainMedia[keys2[j]], options);
29330
- }
29331
- if (message.windDownMedia && (keys2 = Object.keys(message.windDownMedia)).length) {
29332
- object.windDownMedia = {};
29333
- for (var j = 0; j < keys2.length; ++j)
29334
- object.windDownMedia[keys2[j]] = $root.contentful.IdReferences.toObject(message.windDownMedia[keys2[j]], options);
29515
+ object.ambientMedia[keys2[j]] = $root.contentful.IdReference.toObject(message.ambientMedia[keys2[j]], options);
29335
29516
  }
29336
- if (message.soundBedMedia && (keys2 = Object.keys(message.soundBedMedia)).length) {
29337
- object.soundBedMedia = {};
29517
+ if (message.beforeIntroMedia && (keys2 = Object.keys(message.beforeIntroMedia)).length) {
29518
+ object.beforeIntroMedia = {};
29338
29519
  for (var j = 0; j < keys2.length; ++j)
29339
- object.soundBedMedia[keys2[j]] = $root.contentful.IdReference.toObject(message.soundBedMedia[keys2[j]], options);
29520
+ object.beforeIntroMedia[keys2[j]] = $root.contentful.IdReferences.toObject(message.beforeIntroMedia[keys2[j]], options);
29340
29521
  }
29341
29522
  if (message.introMedia && (keys2 = Object.keys(message.introMedia)).length) {
29342
29523
  object.introMedia = {};
29343
29524
  for (var j = 0; j < keys2.length; ++j)
29344
- object.introMedia[keys2[j]] = $root.contentful.IdReference.toObject(message.introMedia[keys2[j]], options);
29525
+ object.introMedia[keys2[j]] = $root.contentful.IdReferences.toObject(message.introMedia[keys2[j]], options);
29345
29526
  }
29346
- if (message.leadInMedia && (keys2 = Object.keys(message.leadInMedia)).length) {
29347
- object.leadInMedia = {};
29527
+ if (message.afterIntroMedia && (keys2 = Object.keys(message.afterIntroMedia)).length) {
29528
+ object.afterIntroMedia = {};
29348
29529
  for (var j = 0; j < keys2.length; ++j)
29349
- object.leadInMedia[keys2[j]] = $root.contentful.IdReference.toObject(message.leadInMedia[keys2[j]], options);
29530
+ object.afterIntroMedia[keys2[j]] = $root.contentful.IdReferences.toObject(message.afterIntroMedia[keys2[j]], options);
29350
29531
  }
29351
- if (message.outroMedia && (keys2 = Object.keys(message.outroMedia)).length) {
29352
- object.outroMedia = {};
29532
+ if (message.mainMedia && (keys2 = Object.keys(message.mainMedia)).length) {
29533
+ object.mainMedia = {};
29353
29534
  for (var j = 0; j < keys2.length; ++j)
29354
- object.outroMedia[keys2[j]] = $root.contentful.IdReference.toObject(message.outroMedia[keys2[j]], options);
29535
+ object.mainMedia[keys2[j]] = $root.contentful.IdReferences.toObject(message.mainMedia[keys2[j]], options);
29536
+ }
29537
+ if (message.beforeOutroMedia && (keys2 = Object.keys(message.beforeOutroMedia)).length) {
29538
+ object.beforeOutroMedia = {};
29539
+ for (var j = 0; j < keys2.length; ++j)
29540
+ object.beforeOutroMedia[keys2[j]] = $root.contentful.IdReferences.toObject(message.beforeOutroMedia[keys2[j]], options);
29541
+ }
29542
+ if (message.outroMedia && (keys2 = Object.keys(message.outroMedia)).length) {
29543
+ object.outroMedia = {};
29544
+ for (var j = 0; j < keys2.length; ++j)
29545
+ object.outroMedia[keys2[j]] = $root.contentful.IdReferences.toObject(message.outroMedia[keys2[j]], options);
29546
+ }
29547
+ if (message.afterOutroMedia && (keys2 = Object.keys(message.afterOutroMedia)).length) {
29548
+ object.afterOutroMedia = {};
29549
+ for (var j = 0; j < keys2.length; ++j)
29550
+ object.afterOutroMedia[keys2[j]] = $root.contentful.IdReferences.toObject(message.afterOutroMedia[keys2[j]], options);
29355
29551
  }
29356
29552
  if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
29357
29553
  if (typeof message.updatedAt === "number")
@@ -40693,6 +40889,594 @@ $root.AssignmentAllocationBatchPushed = (function() {
40693
40889
  return AssignmentAllocationBatchPushed;
40694
40890
  })();
40695
40891
 
40892
+ $root.CreateSleepcastVariant = (function() {
40893
+
40894
+ /**
40895
+ * Properties of a CreateSleepcastVariant.
40896
+ * @exports ICreateSleepcastVariant
40897
+ * @interface ICreateSleepcastVariant
40898
+ * @property {string|null} [id] CreateSleepcastVariant id
40899
+ * @property {number|null} [sleepcastId] CreateSleepcastVariant sleepcastId
40900
+ * @property {string|null} [recipeJson] CreateSleepcastVariant recipeJson
40901
+ * @property {string|null} [inputDir] CreateSleepcastVariant inputDir
40902
+ * @property {string|null} [outputDir] CreateSleepcastVariant outputDir
40903
+ */
40904
+
40905
+ /**
40906
+ * Constructs a new CreateSleepcastVariant.
40907
+ * @exports CreateSleepcastVariant
40908
+ * @classdesc Represents a CreateSleepcastVariant.
40909
+ * @implements ICreateSleepcastVariant
40910
+ * @constructor
40911
+ * @param {ICreateSleepcastVariant=} [properties] Properties to set
40912
+ */
40913
+ function CreateSleepcastVariant(properties) {
40914
+ if (properties)
40915
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
40916
+ if (properties[keys[i]] != null)
40917
+ this[keys[i]] = properties[keys[i]];
40918
+ }
40919
+
40920
+ /**
40921
+ * CreateSleepcastVariant id.
40922
+ * @member {string} id
40923
+ * @memberof CreateSleepcastVariant
40924
+ * @instance
40925
+ */
40926
+ CreateSleepcastVariant.prototype.id = "";
40927
+
40928
+ /**
40929
+ * CreateSleepcastVariant sleepcastId.
40930
+ * @member {number} sleepcastId
40931
+ * @memberof CreateSleepcastVariant
40932
+ * @instance
40933
+ */
40934
+ CreateSleepcastVariant.prototype.sleepcastId = 0;
40935
+
40936
+ /**
40937
+ * CreateSleepcastVariant recipeJson.
40938
+ * @member {string} recipeJson
40939
+ * @memberof CreateSleepcastVariant
40940
+ * @instance
40941
+ */
40942
+ CreateSleepcastVariant.prototype.recipeJson = "";
40943
+
40944
+ /**
40945
+ * CreateSleepcastVariant inputDir.
40946
+ * @member {string} inputDir
40947
+ * @memberof CreateSleepcastVariant
40948
+ * @instance
40949
+ */
40950
+ CreateSleepcastVariant.prototype.inputDir = "";
40951
+
40952
+ /**
40953
+ * CreateSleepcastVariant outputDir.
40954
+ * @member {string} outputDir
40955
+ * @memberof CreateSleepcastVariant
40956
+ * @instance
40957
+ */
40958
+ CreateSleepcastVariant.prototype.outputDir = "";
40959
+
40960
+ /**
40961
+ * Creates a new CreateSleepcastVariant instance using the specified properties.
40962
+ * @function create
40963
+ * @memberof CreateSleepcastVariant
40964
+ * @static
40965
+ * @param {ICreateSleepcastVariant=} [properties] Properties to set
40966
+ * @returns {CreateSleepcastVariant} CreateSleepcastVariant instance
40967
+ */
40968
+ CreateSleepcastVariant.create = function create(properties) {
40969
+ return new CreateSleepcastVariant(properties);
40970
+ };
40971
+
40972
+ /**
40973
+ * Encodes the specified CreateSleepcastVariant message. Does not implicitly {@link CreateSleepcastVariant.verify|verify} messages.
40974
+ * @function encode
40975
+ * @memberof CreateSleepcastVariant
40976
+ * @static
40977
+ * @param {ICreateSleepcastVariant} message CreateSleepcastVariant message or plain object to encode
40978
+ * @param {$protobuf.Writer} [writer] Writer to encode to
40979
+ * @returns {$protobuf.Writer} Writer
40980
+ */
40981
+ CreateSleepcastVariant.encode = function encode(message, writer) {
40982
+ if (!writer)
40983
+ writer = $Writer.create();
40984
+ if (message.id != null && message.hasOwnProperty("id"))
40985
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.id);
40986
+ if (message.sleepcastId != null && message.hasOwnProperty("sleepcastId"))
40987
+ writer.uint32(/* id 2, wireType 0 =*/16).int32(message.sleepcastId);
40988
+ if (message.recipeJson != null && message.hasOwnProperty("recipeJson"))
40989
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.recipeJson);
40990
+ if (message.inputDir != null && message.hasOwnProperty("inputDir"))
40991
+ writer.uint32(/* id 4, wireType 2 =*/34).string(message.inputDir);
40992
+ if (message.outputDir != null && message.hasOwnProperty("outputDir"))
40993
+ writer.uint32(/* id 5, wireType 2 =*/42).string(message.outputDir);
40994
+ return writer;
40995
+ };
40996
+
40997
+ /**
40998
+ * Encodes the specified CreateSleepcastVariant message, length delimited. Does not implicitly {@link CreateSleepcastVariant.verify|verify} messages.
40999
+ * @function encodeDelimited
41000
+ * @memberof CreateSleepcastVariant
41001
+ * @static
41002
+ * @param {ICreateSleepcastVariant} message CreateSleepcastVariant message or plain object to encode
41003
+ * @param {$protobuf.Writer} [writer] Writer to encode to
41004
+ * @returns {$protobuf.Writer} Writer
41005
+ */
41006
+ CreateSleepcastVariant.encodeDelimited = function encodeDelimited(message, writer) {
41007
+ return this.encode(message, writer).ldelim();
41008
+ };
41009
+
41010
+ /**
41011
+ * Decodes a CreateSleepcastVariant message from the specified reader or buffer.
41012
+ * @function decode
41013
+ * @memberof CreateSleepcastVariant
41014
+ * @static
41015
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
41016
+ * @param {number} [length] Message length if known beforehand
41017
+ * @returns {CreateSleepcastVariant} CreateSleepcastVariant
41018
+ * @throws {Error} If the payload is not a reader or valid buffer
41019
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
41020
+ */
41021
+ CreateSleepcastVariant.decode = function decode(reader, length) {
41022
+ if (!(reader instanceof $Reader))
41023
+ reader = $Reader.create(reader);
41024
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.CreateSleepcastVariant();
41025
+ while (reader.pos < end) {
41026
+ var tag = reader.uint32();
41027
+ switch (tag >>> 3) {
41028
+ case 1:
41029
+ message.id = reader.string();
41030
+ break;
41031
+ case 2:
41032
+ message.sleepcastId = reader.int32();
41033
+ break;
41034
+ case 3:
41035
+ message.recipeJson = reader.string();
41036
+ break;
41037
+ case 4:
41038
+ message.inputDir = reader.string();
41039
+ break;
41040
+ case 5:
41041
+ message.outputDir = reader.string();
41042
+ break;
41043
+ default:
41044
+ reader.skipType(tag & 7);
41045
+ break;
41046
+ }
41047
+ }
41048
+ return message;
41049
+ };
41050
+
41051
+ /**
41052
+ * Decodes a CreateSleepcastVariant message from the specified reader or buffer, length delimited.
41053
+ * @function decodeDelimited
41054
+ * @memberof CreateSleepcastVariant
41055
+ * @static
41056
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
41057
+ * @returns {CreateSleepcastVariant} CreateSleepcastVariant
41058
+ * @throws {Error} If the payload is not a reader or valid buffer
41059
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
41060
+ */
41061
+ CreateSleepcastVariant.decodeDelimited = function decodeDelimited(reader) {
41062
+ if (!(reader instanceof $Reader))
41063
+ reader = new $Reader(reader);
41064
+ return this.decode(reader, reader.uint32());
41065
+ };
41066
+
41067
+ /**
41068
+ * Verifies a CreateSleepcastVariant message.
41069
+ * @function verify
41070
+ * @memberof CreateSleepcastVariant
41071
+ * @static
41072
+ * @param {Object.<string,*>} message Plain object to verify
41073
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
41074
+ */
41075
+ CreateSleepcastVariant.verify = function verify(message) {
41076
+ if (typeof message !== "object" || message === null)
41077
+ return "object expected";
41078
+ if (message.id != null && message.hasOwnProperty("id"))
41079
+ if (!$util.isString(message.id))
41080
+ return "id: string expected";
41081
+ if (message.sleepcastId != null && message.hasOwnProperty("sleepcastId"))
41082
+ if (!$util.isInteger(message.sleepcastId))
41083
+ return "sleepcastId: integer expected";
41084
+ if (message.recipeJson != null && message.hasOwnProperty("recipeJson"))
41085
+ if (!$util.isString(message.recipeJson))
41086
+ return "recipeJson: string expected";
41087
+ if (message.inputDir != null && message.hasOwnProperty("inputDir"))
41088
+ if (!$util.isString(message.inputDir))
41089
+ return "inputDir: string expected";
41090
+ if (message.outputDir != null && message.hasOwnProperty("outputDir"))
41091
+ if (!$util.isString(message.outputDir))
41092
+ return "outputDir: string expected";
41093
+ return null;
41094
+ };
41095
+
41096
+ /**
41097
+ * Creates a CreateSleepcastVariant message from a plain object. Also converts values to their respective internal types.
41098
+ * @function fromObject
41099
+ * @memberof CreateSleepcastVariant
41100
+ * @static
41101
+ * @param {Object.<string,*>} object Plain object
41102
+ * @returns {CreateSleepcastVariant} CreateSleepcastVariant
41103
+ */
41104
+ CreateSleepcastVariant.fromObject = function fromObject(object) {
41105
+ if (object instanceof $root.CreateSleepcastVariant)
41106
+ return object;
41107
+ var message = new $root.CreateSleepcastVariant();
41108
+ if (object.id != null)
41109
+ message.id = String(object.id);
41110
+ if (object.sleepcastId != null)
41111
+ message.sleepcastId = object.sleepcastId | 0;
41112
+ if (object.recipeJson != null)
41113
+ message.recipeJson = String(object.recipeJson);
41114
+ if (object.inputDir != null)
41115
+ message.inputDir = String(object.inputDir);
41116
+ if (object.outputDir != null)
41117
+ message.outputDir = String(object.outputDir);
41118
+ return message;
41119
+ };
41120
+
41121
+ /**
41122
+ * Creates a plain object from a CreateSleepcastVariant message. Also converts values to other types if specified.
41123
+ * @function toObject
41124
+ * @memberof CreateSleepcastVariant
41125
+ * @static
41126
+ * @param {CreateSleepcastVariant} message CreateSleepcastVariant
41127
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
41128
+ * @returns {Object.<string,*>} Plain object
41129
+ */
41130
+ CreateSleepcastVariant.toObject = function toObject(message, options) {
41131
+ if (!options)
41132
+ options = {};
41133
+ var object = {};
41134
+ if (options.defaults) {
41135
+ object.id = "";
41136
+ object.sleepcastId = 0;
41137
+ object.recipeJson = "";
41138
+ object.inputDir = "";
41139
+ object.outputDir = "";
41140
+ }
41141
+ if (message.id != null && message.hasOwnProperty("id"))
41142
+ object.id = message.id;
41143
+ if (message.sleepcastId != null && message.hasOwnProperty("sleepcastId"))
41144
+ object.sleepcastId = message.sleepcastId;
41145
+ if (message.recipeJson != null && message.hasOwnProperty("recipeJson"))
41146
+ object.recipeJson = message.recipeJson;
41147
+ if (message.inputDir != null && message.hasOwnProperty("inputDir"))
41148
+ object.inputDir = message.inputDir;
41149
+ if (message.outputDir != null && message.hasOwnProperty("outputDir"))
41150
+ object.outputDir = message.outputDir;
41151
+ return object;
41152
+ };
41153
+
41154
+ /**
41155
+ * Converts this CreateSleepcastVariant to JSON.
41156
+ * @function toJSON
41157
+ * @memberof CreateSleepcastVariant
41158
+ * @instance
41159
+ * @returns {Object.<string,*>} JSON object
41160
+ */
41161
+ CreateSleepcastVariant.prototype.toJSON = function toJSON() {
41162
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
41163
+ };
41164
+
41165
+ return CreateSleepcastVariant;
41166
+ })();
41167
+
41168
+ $root.SleepcastVariantCreated = (function() {
41169
+
41170
+ /**
41171
+ * Properties of a SleepcastVariantCreated.
41172
+ * @exports ISleepcastVariantCreated
41173
+ * @interface ISleepcastVariantCreated
41174
+ * @property {string|null} [id] SleepcastVariantCreated id
41175
+ * @property {number|null} [sleepcastId] SleepcastVariantCreated sleepcastId
41176
+ * @property {string|null} [ambientFilePath] SleepcastVariantCreated ambientFilePath
41177
+ * @property {string|null} [voiceFilePath] SleepcastVariantCreated voiceFilePath
41178
+ * @property {string|null} [mixedFilePath] SleepcastVariantCreated mixedFilePath
41179
+ * @property {number|Long|null} [createdAt] SleepcastVariantCreated createdAt
41180
+ */
41181
+
41182
+ /**
41183
+ * Constructs a new SleepcastVariantCreated.
41184
+ * @exports SleepcastVariantCreated
41185
+ * @classdesc Represents a SleepcastVariantCreated.
41186
+ * @implements ISleepcastVariantCreated
41187
+ * @constructor
41188
+ * @param {ISleepcastVariantCreated=} [properties] Properties to set
41189
+ */
41190
+ function SleepcastVariantCreated(properties) {
41191
+ if (properties)
41192
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
41193
+ if (properties[keys[i]] != null)
41194
+ this[keys[i]] = properties[keys[i]];
41195
+ }
41196
+
41197
+ /**
41198
+ * SleepcastVariantCreated id.
41199
+ * @member {string} id
41200
+ * @memberof SleepcastVariantCreated
41201
+ * @instance
41202
+ */
41203
+ SleepcastVariantCreated.prototype.id = "";
41204
+
41205
+ /**
41206
+ * SleepcastVariantCreated sleepcastId.
41207
+ * @member {number} sleepcastId
41208
+ * @memberof SleepcastVariantCreated
41209
+ * @instance
41210
+ */
41211
+ SleepcastVariantCreated.prototype.sleepcastId = 0;
41212
+
41213
+ /**
41214
+ * SleepcastVariantCreated ambientFilePath.
41215
+ * @member {string} ambientFilePath
41216
+ * @memberof SleepcastVariantCreated
41217
+ * @instance
41218
+ */
41219
+ SleepcastVariantCreated.prototype.ambientFilePath = "";
41220
+
41221
+ /**
41222
+ * SleepcastVariantCreated voiceFilePath.
41223
+ * @member {string} voiceFilePath
41224
+ * @memberof SleepcastVariantCreated
41225
+ * @instance
41226
+ */
41227
+ SleepcastVariantCreated.prototype.voiceFilePath = "";
41228
+
41229
+ /**
41230
+ * SleepcastVariantCreated mixedFilePath.
41231
+ * @member {string} mixedFilePath
41232
+ * @memberof SleepcastVariantCreated
41233
+ * @instance
41234
+ */
41235
+ SleepcastVariantCreated.prototype.mixedFilePath = "";
41236
+
41237
+ /**
41238
+ * SleepcastVariantCreated createdAt.
41239
+ * @member {number|Long} createdAt
41240
+ * @memberof SleepcastVariantCreated
41241
+ * @instance
41242
+ */
41243
+ SleepcastVariantCreated.prototype.createdAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
41244
+
41245
+ /**
41246
+ * Creates a new SleepcastVariantCreated instance using the specified properties.
41247
+ * @function create
41248
+ * @memberof SleepcastVariantCreated
41249
+ * @static
41250
+ * @param {ISleepcastVariantCreated=} [properties] Properties to set
41251
+ * @returns {SleepcastVariantCreated} SleepcastVariantCreated instance
41252
+ */
41253
+ SleepcastVariantCreated.create = function create(properties) {
41254
+ return new SleepcastVariantCreated(properties);
41255
+ };
41256
+
41257
+ /**
41258
+ * Encodes the specified SleepcastVariantCreated message. Does not implicitly {@link SleepcastVariantCreated.verify|verify} messages.
41259
+ * @function encode
41260
+ * @memberof SleepcastVariantCreated
41261
+ * @static
41262
+ * @param {ISleepcastVariantCreated} message SleepcastVariantCreated message or plain object to encode
41263
+ * @param {$protobuf.Writer} [writer] Writer to encode to
41264
+ * @returns {$protobuf.Writer} Writer
41265
+ */
41266
+ SleepcastVariantCreated.encode = function encode(message, writer) {
41267
+ if (!writer)
41268
+ writer = $Writer.create();
41269
+ if (message.id != null && message.hasOwnProperty("id"))
41270
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.id);
41271
+ if (message.sleepcastId != null && message.hasOwnProperty("sleepcastId"))
41272
+ writer.uint32(/* id 2, wireType 0 =*/16).int32(message.sleepcastId);
41273
+ if (message.ambientFilePath != null && message.hasOwnProperty("ambientFilePath"))
41274
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.ambientFilePath);
41275
+ if (message.voiceFilePath != null && message.hasOwnProperty("voiceFilePath"))
41276
+ writer.uint32(/* id 4, wireType 2 =*/34).string(message.voiceFilePath);
41277
+ if (message.mixedFilePath != null && message.hasOwnProperty("mixedFilePath"))
41278
+ writer.uint32(/* id 5, wireType 2 =*/42).string(message.mixedFilePath);
41279
+ if (message.createdAt != null && message.hasOwnProperty("createdAt"))
41280
+ writer.uint32(/* id 6, wireType 0 =*/48).uint64(message.createdAt);
41281
+ return writer;
41282
+ };
41283
+
41284
+ /**
41285
+ * Encodes the specified SleepcastVariantCreated message, length delimited. Does not implicitly {@link SleepcastVariantCreated.verify|verify} messages.
41286
+ * @function encodeDelimited
41287
+ * @memberof SleepcastVariantCreated
41288
+ * @static
41289
+ * @param {ISleepcastVariantCreated} message SleepcastVariantCreated message or plain object to encode
41290
+ * @param {$protobuf.Writer} [writer] Writer to encode to
41291
+ * @returns {$protobuf.Writer} Writer
41292
+ */
41293
+ SleepcastVariantCreated.encodeDelimited = function encodeDelimited(message, writer) {
41294
+ return this.encode(message, writer).ldelim();
41295
+ };
41296
+
41297
+ /**
41298
+ * Decodes a SleepcastVariantCreated message from the specified reader or buffer.
41299
+ * @function decode
41300
+ * @memberof SleepcastVariantCreated
41301
+ * @static
41302
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
41303
+ * @param {number} [length] Message length if known beforehand
41304
+ * @returns {SleepcastVariantCreated} SleepcastVariantCreated
41305
+ * @throws {Error} If the payload is not a reader or valid buffer
41306
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
41307
+ */
41308
+ SleepcastVariantCreated.decode = function decode(reader, length) {
41309
+ if (!(reader instanceof $Reader))
41310
+ reader = $Reader.create(reader);
41311
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.SleepcastVariantCreated();
41312
+ while (reader.pos < end) {
41313
+ var tag = reader.uint32();
41314
+ switch (tag >>> 3) {
41315
+ case 1:
41316
+ message.id = reader.string();
41317
+ break;
41318
+ case 2:
41319
+ message.sleepcastId = reader.int32();
41320
+ break;
41321
+ case 3:
41322
+ message.ambientFilePath = reader.string();
41323
+ break;
41324
+ case 4:
41325
+ message.voiceFilePath = reader.string();
41326
+ break;
41327
+ case 5:
41328
+ message.mixedFilePath = reader.string();
41329
+ break;
41330
+ case 6:
41331
+ message.createdAt = reader.uint64();
41332
+ break;
41333
+ default:
41334
+ reader.skipType(tag & 7);
41335
+ break;
41336
+ }
41337
+ }
41338
+ return message;
41339
+ };
41340
+
41341
+ /**
41342
+ * Decodes a SleepcastVariantCreated message from the specified reader or buffer, length delimited.
41343
+ * @function decodeDelimited
41344
+ * @memberof SleepcastVariantCreated
41345
+ * @static
41346
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
41347
+ * @returns {SleepcastVariantCreated} SleepcastVariantCreated
41348
+ * @throws {Error} If the payload is not a reader or valid buffer
41349
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
41350
+ */
41351
+ SleepcastVariantCreated.decodeDelimited = function decodeDelimited(reader) {
41352
+ if (!(reader instanceof $Reader))
41353
+ reader = new $Reader(reader);
41354
+ return this.decode(reader, reader.uint32());
41355
+ };
41356
+
41357
+ /**
41358
+ * Verifies a SleepcastVariantCreated message.
41359
+ * @function verify
41360
+ * @memberof SleepcastVariantCreated
41361
+ * @static
41362
+ * @param {Object.<string,*>} message Plain object to verify
41363
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
41364
+ */
41365
+ SleepcastVariantCreated.verify = function verify(message) {
41366
+ if (typeof message !== "object" || message === null)
41367
+ return "object expected";
41368
+ if (message.id != null && message.hasOwnProperty("id"))
41369
+ if (!$util.isString(message.id))
41370
+ return "id: string expected";
41371
+ if (message.sleepcastId != null && message.hasOwnProperty("sleepcastId"))
41372
+ if (!$util.isInteger(message.sleepcastId))
41373
+ return "sleepcastId: integer expected";
41374
+ if (message.ambientFilePath != null && message.hasOwnProperty("ambientFilePath"))
41375
+ if (!$util.isString(message.ambientFilePath))
41376
+ return "ambientFilePath: string expected";
41377
+ if (message.voiceFilePath != null && message.hasOwnProperty("voiceFilePath"))
41378
+ if (!$util.isString(message.voiceFilePath))
41379
+ return "voiceFilePath: string expected";
41380
+ if (message.mixedFilePath != null && message.hasOwnProperty("mixedFilePath"))
41381
+ if (!$util.isString(message.mixedFilePath))
41382
+ return "mixedFilePath: string expected";
41383
+ if (message.createdAt != null && message.hasOwnProperty("createdAt"))
41384
+ if (!$util.isInteger(message.createdAt) && !(message.createdAt && $util.isInteger(message.createdAt.low) && $util.isInteger(message.createdAt.high)))
41385
+ return "createdAt: integer|Long expected";
41386
+ return null;
41387
+ };
41388
+
41389
+ /**
41390
+ * Creates a SleepcastVariantCreated message from a plain object. Also converts values to their respective internal types.
41391
+ * @function fromObject
41392
+ * @memberof SleepcastVariantCreated
41393
+ * @static
41394
+ * @param {Object.<string,*>} object Plain object
41395
+ * @returns {SleepcastVariantCreated} SleepcastVariantCreated
41396
+ */
41397
+ SleepcastVariantCreated.fromObject = function fromObject(object) {
41398
+ if (object instanceof $root.SleepcastVariantCreated)
41399
+ return object;
41400
+ var message = new $root.SleepcastVariantCreated();
41401
+ if (object.id != null)
41402
+ message.id = String(object.id);
41403
+ if (object.sleepcastId != null)
41404
+ message.sleepcastId = object.sleepcastId | 0;
41405
+ if (object.ambientFilePath != null)
41406
+ message.ambientFilePath = String(object.ambientFilePath);
41407
+ if (object.voiceFilePath != null)
41408
+ message.voiceFilePath = String(object.voiceFilePath);
41409
+ if (object.mixedFilePath != null)
41410
+ message.mixedFilePath = String(object.mixedFilePath);
41411
+ if (object.createdAt != null)
41412
+ if ($util.Long)
41413
+ (message.createdAt = $util.Long.fromValue(object.createdAt)).unsigned = true;
41414
+ else if (typeof object.createdAt === "string")
41415
+ message.createdAt = parseInt(object.createdAt, 10);
41416
+ else if (typeof object.createdAt === "number")
41417
+ message.createdAt = object.createdAt;
41418
+ else if (typeof object.createdAt === "object")
41419
+ message.createdAt = new $util.LongBits(object.createdAt.low >>> 0, object.createdAt.high >>> 0).toNumber(true);
41420
+ return message;
41421
+ };
41422
+
41423
+ /**
41424
+ * Creates a plain object from a SleepcastVariantCreated message. Also converts values to other types if specified.
41425
+ * @function toObject
41426
+ * @memberof SleepcastVariantCreated
41427
+ * @static
41428
+ * @param {SleepcastVariantCreated} message SleepcastVariantCreated
41429
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
41430
+ * @returns {Object.<string,*>} Plain object
41431
+ */
41432
+ SleepcastVariantCreated.toObject = function toObject(message, options) {
41433
+ if (!options)
41434
+ options = {};
41435
+ var object = {};
41436
+ if (options.defaults) {
41437
+ object.id = "";
41438
+ object.sleepcastId = 0;
41439
+ object.ambientFilePath = "";
41440
+ object.voiceFilePath = "";
41441
+ object.mixedFilePath = "";
41442
+ if ($util.Long) {
41443
+ var long = new $util.Long(0, 0, true);
41444
+ object.createdAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
41445
+ } else
41446
+ object.createdAt = options.longs === String ? "0" : 0;
41447
+ }
41448
+ if (message.id != null && message.hasOwnProperty("id"))
41449
+ object.id = message.id;
41450
+ if (message.sleepcastId != null && message.hasOwnProperty("sleepcastId"))
41451
+ object.sleepcastId = message.sleepcastId;
41452
+ if (message.ambientFilePath != null && message.hasOwnProperty("ambientFilePath"))
41453
+ object.ambientFilePath = message.ambientFilePath;
41454
+ if (message.voiceFilePath != null && message.hasOwnProperty("voiceFilePath"))
41455
+ object.voiceFilePath = message.voiceFilePath;
41456
+ if (message.mixedFilePath != null && message.hasOwnProperty("mixedFilePath"))
41457
+ object.mixedFilePath = message.mixedFilePath;
41458
+ if (message.createdAt != null && message.hasOwnProperty("createdAt"))
41459
+ if (typeof message.createdAt === "number")
41460
+ object.createdAt = options.longs === String ? String(message.createdAt) : message.createdAt;
41461
+ else
41462
+ 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;
41463
+ return object;
41464
+ };
41465
+
41466
+ /**
41467
+ * Converts this SleepcastVariantCreated to JSON.
41468
+ * @function toJSON
41469
+ * @memberof SleepcastVariantCreated
41470
+ * @instance
41471
+ * @returns {Object.<string,*>} JSON object
41472
+ */
41473
+ SleepcastVariantCreated.prototype.toJSON = function toJSON() {
41474
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
41475
+ };
41476
+
41477
+ return SleepcastVariantCreated;
41478
+ })();
41479
+
40696
41480
  $root.SleepcastCreated = (function() {
40697
41481
 
40698
41482
  /**