@headspace/protos-events 1.198.0 → 1.200.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 +96 -18
  2. package/lib/index.js +298 -105
  3. package/package.json +1 -1
package/lib/index.d.ts CHANGED
@@ -10258,9 +10258,6 @@ export interface IContentfulSleepcastRecipeCreated {
10258
10258
  /** ContentfulSleepcastRecipeCreated slug */
10259
10259
  slug?: (string|null);
10260
10260
 
10261
- /** ContentfulSleepcastRecipeCreated generator */
10262
- generator?: (string|null);
10263
-
10264
10261
  /** ContentfulSleepcastRecipeCreated ambientMedia */
10265
10262
  ambientMedia?: ({ [k: string]: contentful.IIdReference }|null);
10266
10263
 
@@ -10301,9 +10298,6 @@ export class ContentfulSleepcastRecipeCreated implements IContentfulSleepcastRec
10301
10298
  /** ContentfulSleepcastRecipeCreated slug. */
10302
10299
  public slug: string;
10303
10300
 
10304
- /** ContentfulSleepcastRecipeCreated generator. */
10305
- public generator: string;
10306
-
10307
10301
  /** ContentfulSleepcastRecipeCreated ambientMedia. */
10308
10302
  public ambientMedia: { [k: string]: contentful.IIdReference };
10309
10303
 
@@ -10408,9 +10402,6 @@ export interface IContentfulSleepcastRecipeUpdated {
10408
10402
  /** ContentfulSleepcastRecipeUpdated slug */
10409
10403
  slug?: (string|null);
10410
10404
 
10411
- /** ContentfulSleepcastRecipeUpdated generator */
10412
- generator?: (string|null);
10413
-
10414
10405
  /** ContentfulSleepcastRecipeUpdated ambientMedia */
10415
10406
  ambientMedia?: ({ [k: string]: contentful.IIdReference }|null);
10416
10407
 
@@ -10451,9 +10442,6 @@ export class ContentfulSleepcastRecipeUpdated implements IContentfulSleepcastRec
10451
10442
  /** ContentfulSleepcastRecipeUpdated slug. */
10452
10443
  public slug: string;
10453
10444
 
10454
- /** ContentfulSleepcastRecipeUpdated generator. */
10455
- public generator: string;
10456
-
10457
10445
  /** ContentfulSleepcastRecipeUpdated ambientMedia. */
10458
10446
  public ambientMedia: { [k: string]: contentful.IIdReference };
10459
10447
 
@@ -14798,14 +14786,104 @@ export class AssignmentAllocationBatchPushed implements IAssignmentAllocationBat
14798
14786
  public toJSON(): { [k: string]: any };
14799
14787
  }
14800
14788
 
14789
+ /** Properties of an Output. */
14790
+ export interface IOutput {
14791
+
14792
+ /** Output path */
14793
+ path?: ({ [k: string]: string }|null);
14794
+ }
14795
+
14796
+ /** Represents an Output. */
14797
+ export class Output implements IOutput {
14798
+
14799
+ /**
14800
+ * Constructs a new Output.
14801
+ * @param [properties] Properties to set
14802
+ */
14803
+ constructor(properties?: IOutput);
14804
+
14805
+ /** Output path. */
14806
+ public path: { [k: string]: string };
14807
+
14808
+ /**
14809
+ * Creates a new Output instance using the specified properties.
14810
+ * @param [properties] Properties to set
14811
+ * @returns Output instance
14812
+ */
14813
+ public static create(properties?: IOutput): Output;
14814
+
14815
+ /**
14816
+ * Encodes the specified Output message. Does not implicitly {@link Output.verify|verify} messages.
14817
+ * @param message Output message or plain object to encode
14818
+ * @param [writer] Writer to encode to
14819
+ * @returns Writer
14820
+ */
14821
+ public static encode(message: IOutput, writer?: $protobuf.Writer): $protobuf.Writer;
14822
+
14823
+ /**
14824
+ * Encodes the specified Output message, length delimited. Does not implicitly {@link Output.verify|verify} messages.
14825
+ * @param message Output message or plain object to encode
14826
+ * @param [writer] Writer to encode to
14827
+ * @returns Writer
14828
+ */
14829
+ public static encodeDelimited(message: IOutput, writer?: $protobuf.Writer): $protobuf.Writer;
14830
+
14831
+ /**
14832
+ * Decodes an Output message from the specified reader or buffer.
14833
+ * @param reader Reader or buffer to decode from
14834
+ * @param [length] Message length if known beforehand
14835
+ * @returns Output
14836
+ * @throws {Error} If the payload is not a reader or valid buffer
14837
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
14838
+ */
14839
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Output;
14840
+
14841
+ /**
14842
+ * Decodes an Output message from the specified reader or buffer, length delimited.
14843
+ * @param reader Reader or buffer to decode from
14844
+ * @returns Output
14845
+ * @throws {Error} If the payload is not a reader or valid buffer
14846
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
14847
+ */
14848
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Output;
14849
+
14850
+ /**
14851
+ * Verifies an Output message.
14852
+ * @param message Plain object to verify
14853
+ * @returns `null` if valid, otherwise the reason why it is not
14854
+ */
14855
+ public static verify(message: { [k: string]: any }): (string|null);
14856
+
14857
+ /**
14858
+ * Creates an Output message from a plain object. Also converts values to their respective internal types.
14859
+ * @param object Plain object
14860
+ * @returns Output
14861
+ */
14862
+ public static fromObject(object: { [k: string]: any }): Output;
14863
+
14864
+ /**
14865
+ * Creates a plain object from an Output message. Also converts values to other types if specified.
14866
+ * @param message Output
14867
+ * @param [options] Conversion options
14868
+ * @returns Plain object
14869
+ */
14870
+ public static toObject(message: Output, options?: $protobuf.IConversionOptions): { [k: string]: any };
14871
+
14872
+ /**
14873
+ * Converts this Output to JSON.
14874
+ * @returns JSON object
14875
+ */
14876
+ public toJSON(): { [k: string]: any };
14877
+ }
14878
+
14801
14879
  /** Properties of a CreateSleepcastVariant. */
14802
14880
  export interface ICreateSleepcastVariant {
14803
14881
 
14804
14882
  /** CreateSleepcastVariant sleepcastId */
14805
14883
  sleepcastId?: (number|null);
14806
14884
 
14807
- /** CreateSleepcastVariant recipeJson */
14808
- recipeJson?: (string|null);
14885
+ /** CreateSleepcastVariant recipes */
14886
+ recipes?: ({ [k: string]: string }|null);
14809
14887
 
14810
14888
  /** CreateSleepcastVariant inputDir */
14811
14889
  inputDir?: (string|null);
@@ -14826,8 +14904,8 @@ export class CreateSleepcastVariant implements ICreateSleepcastVariant {
14826
14904
  /** CreateSleepcastVariant sleepcastId. */
14827
14905
  public sleepcastId: number;
14828
14906
 
14829
- /** CreateSleepcastVariant recipeJson. */
14830
- public recipeJson: string;
14907
+ /** CreateSleepcastVariant recipes. */
14908
+ public recipes: { [k: string]: string };
14831
14909
 
14832
14910
  /** CreateSleepcastVariant inputDir. */
14833
14911
  public inputDir: string;
@@ -14913,7 +14991,7 @@ export interface ISleepcastVariantCreated {
14913
14991
  sleepcastId?: (number|null);
14914
14992
 
14915
14993
  /** SleepcastVariantCreated outputs */
14916
- outputs?: ({ [k: string]: string }|null);
14994
+ outputs?: ({ [k: string]: IOutput }|null);
14917
14995
  }
14918
14996
 
14919
14997
  /** Represents a SleepcastVariantCreated. */
@@ -14929,7 +15007,7 @@ export class SleepcastVariantCreated implements ISleepcastVariantCreated {
14929
15007
  public sleepcastId: number;
14930
15008
 
14931
15009
  /** SleepcastVariantCreated outputs. */
14932
- public outputs: { [k: string]: string };
15010
+ public outputs: { [k: string]: IOutput };
14933
15011
 
14934
15012
  /**
14935
15013
  * Creates a new SleepcastVariantCreated instance using the specified properties.
package/lib/index.js CHANGED
@@ -28296,7 +28296,6 @@ $root.ContentfulSleepcastRecipeCreated = (function() {
28296
28296
  * @exports IContentfulSleepcastRecipeCreated
28297
28297
  * @interface IContentfulSleepcastRecipeCreated
28298
28298
  * @property {string|null} [slug] ContentfulSleepcastRecipeCreated slug
28299
- * @property {string|null} [generator] ContentfulSleepcastRecipeCreated generator
28300
28299
  * @property {Object.<string,contentful.IIdReference>|null} [ambientMedia] ContentfulSleepcastRecipeCreated ambientMedia
28301
28300
  * @property {Object.<string,contentful.IIdReferences>|null} [beforeIntroMedia] ContentfulSleepcastRecipeCreated beforeIntroMedia
28302
28301
  * @property {Object.<string,contentful.IIdReferences>|null} [introMedia] ContentfulSleepcastRecipeCreated introMedia
@@ -28339,14 +28338,6 @@ $root.ContentfulSleepcastRecipeCreated = (function() {
28339
28338
  */
28340
28339
  ContentfulSleepcastRecipeCreated.prototype.slug = "";
28341
28340
 
28342
- /**
28343
- * ContentfulSleepcastRecipeCreated generator.
28344
- * @member {string} generator
28345
- * @memberof ContentfulSleepcastRecipeCreated
28346
- * @instance
28347
- */
28348
- ContentfulSleepcastRecipeCreated.prototype.generator = "";
28349
-
28350
28341
  /**
28351
28342
  * ContentfulSleepcastRecipeCreated ambientMedia.
28352
28343
  * @member {Object.<string,contentful.IIdReference>} ambientMedia
@@ -28445,50 +28436,48 @@ $root.ContentfulSleepcastRecipeCreated = (function() {
28445
28436
  writer = $Writer.create();
28446
28437
  if (message.slug != null && message.hasOwnProperty("slug"))
28447
28438
  writer.uint32(/* id 1, wireType 2 =*/10).string(message.slug);
28448
- if (message.generator != null && message.hasOwnProperty("generator"))
28449
- writer.uint32(/* id 2, wireType 2 =*/18).string(message.generator);
28450
28439
  if (message.ambientMedia != null && message.hasOwnProperty("ambientMedia"))
28451
28440
  for (var keys = Object.keys(message.ambientMedia), i = 0; i < keys.length; ++i) {
28452
- writer.uint32(/* id 3, wireType 2 =*/26).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]);
28441
+ writer.uint32(/* id 2, wireType 2 =*/18).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]);
28453
28442
  $root.contentful.IdReference.encode(message.ambientMedia[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim();
28454
28443
  }
28455
28444
  if (message.beforeIntroMedia != null && message.hasOwnProperty("beforeIntroMedia"))
28456
28445
  for (var keys = Object.keys(message.beforeIntroMedia), i = 0; i < keys.length; ++i) {
28457
- writer.uint32(/* id 4, wireType 2 =*/34).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]);
28446
+ writer.uint32(/* id 3, wireType 2 =*/26).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]);
28458
28447
  $root.contentful.IdReferences.encode(message.beforeIntroMedia[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim();
28459
28448
  }
28460
28449
  if (message.introMedia != null && message.hasOwnProperty("introMedia"))
28461
28450
  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]);
28451
+ writer.uint32(/* id 4, wireType 2 =*/34).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]);
28463
28452
  $root.contentful.IdReferences.encode(message.introMedia[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim();
28464
28453
  }
28465
28454
  if (message.afterIntroMedia != null && message.hasOwnProperty("afterIntroMedia"))
28466
28455
  for (var keys = Object.keys(message.afterIntroMedia), i = 0; i < keys.length; ++i) {
28467
- writer.uint32(/* id 6, wireType 2 =*/50).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]);
28456
+ writer.uint32(/* id 5, wireType 2 =*/42).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]);
28468
28457
  $root.contentful.IdReferences.encode(message.afterIntroMedia[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim();
28469
28458
  }
28470
28459
  if (message.mainMedia != null && message.hasOwnProperty("mainMedia"))
28471
28460
  for (var keys = Object.keys(message.mainMedia), i = 0; i < keys.length; ++i) {
28472
- writer.uint32(/* id 7, wireType 2 =*/58).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]);
28461
+ writer.uint32(/* id 6, wireType 2 =*/50).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]);
28473
28462
  $root.contentful.IdReferences.encode(message.mainMedia[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim();
28474
28463
  }
28475
28464
  if (message.beforeOutroMedia != null && message.hasOwnProperty("beforeOutroMedia"))
28476
28465
  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]);
28466
+ writer.uint32(/* id 7, wireType 2 =*/58).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]);
28478
28467
  $root.contentful.IdReferences.encode(message.beforeOutroMedia[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim();
28479
28468
  }
28480
28469
  if (message.outroMedia != null && message.hasOwnProperty("outroMedia"))
28481
28470
  for (var keys = Object.keys(message.outroMedia), i = 0; i < keys.length; ++i) {
28482
- writer.uint32(/* id 9, wireType 2 =*/74).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]);
28471
+ writer.uint32(/* id 8, wireType 2 =*/66).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]);
28483
28472
  $root.contentful.IdReferences.encode(message.outroMedia[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim();
28484
28473
  }
28485
28474
  if (message.afterOutroMedia != null && message.hasOwnProperty("afterOutroMedia"))
28486
28475
  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]);
28476
+ writer.uint32(/* id 9, wireType 2 =*/74).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]);
28488
28477
  $root.contentful.IdReferences.encode(message.afterOutroMedia[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim();
28489
28478
  }
28490
28479
  if (message.createdAt != null && message.hasOwnProperty("createdAt"))
28491
- writer.uint32(/* id 11, wireType 0 =*/88).uint64(message.createdAt);
28480
+ writer.uint32(/* id 10, wireType 0 =*/80).uint64(message.createdAt);
28492
28481
  return writer;
28493
28482
  };
28494
28483
 
@@ -28527,9 +28516,6 @@ $root.ContentfulSleepcastRecipeCreated = (function() {
28527
28516
  message.slug = reader.string();
28528
28517
  break;
28529
28518
  case 2:
28530
- message.generator = reader.string();
28531
- break;
28532
- case 3:
28533
28519
  reader.skip().pos++;
28534
28520
  if (message.ambientMedia === $util.emptyObject)
28535
28521
  message.ambientMedia = {};
@@ -28537,7 +28523,7 @@ $root.ContentfulSleepcastRecipeCreated = (function() {
28537
28523
  reader.pos++;
28538
28524
  message.ambientMedia[key] = $root.contentful.IdReference.decode(reader, reader.uint32());
28539
28525
  break;
28540
- case 4:
28526
+ case 3:
28541
28527
  reader.skip().pos++;
28542
28528
  if (message.beforeIntroMedia === $util.emptyObject)
28543
28529
  message.beforeIntroMedia = {};
@@ -28545,7 +28531,7 @@ $root.ContentfulSleepcastRecipeCreated = (function() {
28545
28531
  reader.pos++;
28546
28532
  message.beforeIntroMedia[key] = $root.contentful.IdReferences.decode(reader, reader.uint32());
28547
28533
  break;
28548
- case 5:
28534
+ case 4:
28549
28535
  reader.skip().pos++;
28550
28536
  if (message.introMedia === $util.emptyObject)
28551
28537
  message.introMedia = {};
@@ -28553,7 +28539,7 @@ $root.ContentfulSleepcastRecipeCreated = (function() {
28553
28539
  reader.pos++;
28554
28540
  message.introMedia[key] = $root.contentful.IdReferences.decode(reader, reader.uint32());
28555
28541
  break;
28556
- case 6:
28542
+ case 5:
28557
28543
  reader.skip().pos++;
28558
28544
  if (message.afterIntroMedia === $util.emptyObject)
28559
28545
  message.afterIntroMedia = {};
@@ -28561,7 +28547,7 @@ $root.ContentfulSleepcastRecipeCreated = (function() {
28561
28547
  reader.pos++;
28562
28548
  message.afterIntroMedia[key] = $root.contentful.IdReferences.decode(reader, reader.uint32());
28563
28549
  break;
28564
- case 7:
28550
+ case 6:
28565
28551
  reader.skip().pos++;
28566
28552
  if (message.mainMedia === $util.emptyObject)
28567
28553
  message.mainMedia = {};
@@ -28569,7 +28555,7 @@ $root.ContentfulSleepcastRecipeCreated = (function() {
28569
28555
  reader.pos++;
28570
28556
  message.mainMedia[key] = $root.contentful.IdReferences.decode(reader, reader.uint32());
28571
28557
  break;
28572
- case 8:
28558
+ case 7:
28573
28559
  reader.skip().pos++;
28574
28560
  if (message.beforeOutroMedia === $util.emptyObject)
28575
28561
  message.beforeOutroMedia = {};
@@ -28577,7 +28563,7 @@ $root.ContentfulSleepcastRecipeCreated = (function() {
28577
28563
  reader.pos++;
28578
28564
  message.beforeOutroMedia[key] = $root.contentful.IdReferences.decode(reader, reader.uint32());
28579
28565
  break;
28580
- case 9:
28566
+ case 8:
28581
28567
  reader.skip().pos++;
28582
28568
  if (message.outroMedia === $util.emptyObject)
28583
28569
  message.outroMedia = {};
@@ -28585,7 +28571,7 @@ $root.ContentfulSleepcastRecipeCreated = (function() {
28585
28571
  reader.pos++;
28586
28572
  message.outroMedia[key] = $root.contentful.IdReferences.decode(reader, reader.uint32());
28587
28573
  break;
28588
- case 10:
28574
+ case 9:
28589
28575
  reader.skip().pos++;
28590
28576
  if (message.afterOutroMedia === $util.emptyObject)
28591
28577
  message.afterOutroMedia = {};
@@ -28593,7 +28579,7 @@ $root.ContentfulSleepcastRecipeCreated = (function() {
28593
28579
  reader.pos++;
28594
28580
  message.afterOutroMedia[key] = $root.contentful.IdReferences.decode(reader, reader.uint32());
28595
28581
  break;
28596
- case 11:
28582
+ case 10:
28597
28583
  message.createdAt = reader.uint64();
28598
28584
  break;
28599
28585
  default:
@@ -28634,9 +28620,6 @@ $root.ContentfulSleepcastRecipeCreated = (function() {
28634
28620
  if (message.slug != null && message.hasOwnProperty("slug"))
28635
28621
  if (!$util.isString(message.slug))
28636
28622
  return "slug: string expected";
28637
- if (message.generator != null && message.hasOwnProperty("generator"))
28638
- if (!$util.isString(message.generator))
28639
- return "generator: string expected";
28640
28623
  if (message.ambientMedia != null && message.hasOwnProperty("ambientMedia")) {
28641
28624
  if (!$util.isObject(message.ambientMedia))
28642
28625
  return "ambientMedia: object expected";
@@ -28737,8 +28720,6 @@ $root.ContentfulSleepcastRecipeCreated = (function() {
28737
28720
  var message = new $root.ContentfulSleepcastRecipeCreated();
28738
28721
  if (object.slug != null)
28739
28722
  message.slug = String(object.slug);
28740
- if (object.generator != null)
28741
- message.generator = String(object.generator);
28742
28723
  if (object.ambientMedia) {
28743
28724
  if (typeof object.ambientMedia !== "object")
28744
28725
  throw TypeError(".ContentfulSleepcastRecipeCreated.ambientMedia: object expected");
@@ -28856,7 +28837,6 @@ $root.ContentfulSleepcastRecipeCreated = (function() {
28856
28837
  }
28857
28838
  if (options.defaults) {
28858
28839
  object.slug = "";
28859
- object.generator = "";
28860
28840
  if ($util.Long) {
28861
28841
  var long = new $util.Long(0, 0, true);
28862
28842
  object.createdAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
@@ -28865,8 +28845,6 @@ $root.ContentfulSleepcastRecipeCreated = (function() {
28865
28845
  }
28866
28846
  if (message.slug != null && message.hasOwnProperty("slug"))
28867
28847
  object.slug = message.slug;
28868
- if (message.generator != null && message.hasOwnProperty("generator"))
28869
- object.generator = message.generator;
28870
28848
  var keys2;
28871
28849
  if (message.ambientMedia && (keys2 = Object.keys(message.ambientMedia)).length) {
28872
28850
  object.ambientMedia = {};
@@ -28937,7 +28915,6 @@ $root.ContentfulSleepcastRecipeUpdated = (function() {
28937
28915
  * @exports IContentfulSleepcastRecipeUpdated
28938
28916
  * @interface IContentfulSleepcastRecipeUpdated
28939
28917
  * @property {string|null} [slug] ContentfulSleepcastRecipeUpdated slug
28940
- * @property {string|null} [generator] ContentfulSleepcastRecipeUpdated generator
28941
28918
  * @property {Object.<string,contentful.IIdReference>|null} [ambientMedia] ContentfulSleepcastRecipeUpdated ambientMedia
28942
28919
  * @property {Object.<string,contentful.IIdReferences>|null} [beforeIntroMedia] ContentfulSleepcastRecipeUpdated beforeIntroMedia
28943
28920
  * @property {Object.<string,contentful.IIdReferences>|null} [introMedia] ContentfulSleepcastRecipeUpdated introMedia
@@ -28980,14 +28957,6 @@ $root.ContentfulSleepcastRecipeUpdated = (function() {
28980
28957
  */
28981
28958
  ContentfulSleepcastRecipeUpdated.prototype.slug = "";
28982
28959
 
28983
- /**
28984
- * ContentfulSleepcastRecipeUpdated generator.
28985
- * @member {string} generator
28986
- * @memberof ContentfulSleepcastRecipeUpdated
28987
- * @instance
28988
- */
28989
- ContentfulSleepcastRecipeUpdated.prototype.generator = "";
28990
-
28991
28960
  /**
28992
28961
  * ContentfulSleepcastRecipeUpdated ambientMedia.
28993
28962
  * @member {Object.<string,contentful.IIdReference>} ambientMedia
@@ -29086,50 +29055,48 @@ $root.ContentfulSleepcastRecipeUpdated = (function() {
29086
29055
  writer = $Writer.create();
29087
29056
  if (message.slug != null && message.hasOwnProperty("slug"))
29088
29057
  writer.uint32(/* id 1, wireType 2 =*/10).string(message.slug);
29089
- if (message.generator != null && message.hasOwnProperty("generator"))
29090
- writer.uint32(/* id 2, wireType 2 =*/18).string(message.generator);
29091
29058
  if (message.ambientMedia != null && message.hasOwnProperty("ambientMedia"))
29092
29059
  for (var keys = Object.keys(message.ambientMedia), i = 0; i < keys.length; ++i) {
29093
- writer.uint32(/* id 3, wireType 2 =*/26).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]);
29060
+ writer.uint32(/* id 2, wireType 2 =*/18).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]);
29094
29061
  $root.contentful.IdReference.encode(message.ambientMedia[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim();
29095
29062
  }
29096
29063
  if (message.beforeIntroMedia != null && message.hasOwnProperty("beforeIntroMedia"))
29097
29064
  for (var keys = Object.keys(message.beforeIntroMedia), i = 0; i < keys.length; ++i) {
29098
- writer.uint32(/* id 4, wireType 2 =*/34).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]);
29065
+ writer.uint32(/* id 3, wireType 2 =*/26).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]);
29099
29066
  $root.contentful.IdReferences.encode(message.beforeIntroMedia[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim();
29100
29067
  }
29101
29068
  if (message.introMedia != null && message.hasOwnProperty("introMedia"))
29102
29069
  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]);
29070
+ writer.uint32(/* id 4, wireType 2 =*/34).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]);
29104
29071
  $root.contentful.IdReferences.encode(message.introMedia[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim();
29105
29072
  }
29106
29073
  if (message.afterIntroMedia != null && message.hasOwnProperty("afterIntroMedia"))
29107
29074
  for (var keys = Object.keys(message.afterIntroMedia), i = 0; i < keys.length; ++i) {
29108
- writer.uint32(/* id 6, wireType 2 =*/50).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]);
29075
+ writer.uint32(/* id 5, wireType 2 =*/42).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]);
29109
29076
  $root.contentful.IdReferences.encode(message.afterIntroMedia[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim();
29110
29077
  }
29111
29078
  if (message.mainMedia != null && message.hasOwnProperty("mainMedia"))
29112
29079
  for (var keys = Object.keys(message.mainMedia), i = 0; i < keys.length; ++i) {
29113
- writer.uint32(/* id 7, wireType 2 =*/58).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]);
29080
+ writer.uint32(/* id 6, wireType 2 =*/50).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]);
29114
29081
  $root.contentful.IdReferences.encode(message.mainMedia[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim();
29115
29082
  }
29116
29083
  if (message.beforeOutroMedia != null && message.hasOwnProperty("beforeOutroMedia"))
29117
29084
  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]);
29085
+ writer.uint32(/* id 7, wireType 2 =*/58).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]);
29119
29086
  $root.contentful.IdReferences.encode(message.beforeOutroMedia[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim();
29120
29087
  }
29121
29088
  if (message.outroMedia != null && message.hasOwnProperty("outroMedia"))
29122
29089
  for (var keys = Object.keys(message.outroMedia), i = 0; i < keys.length; ++i) {
29123
- writer.uint32(/* id 9, wireType 2 =*/74).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]);
29090
+ writer.uint32(/* id 8, wireType 2 =*/66).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]);
29124
29091
  $root.contentful.IdReferences.encode(message.outroMedia[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim();
29125
29092
  }
29126
29093
  if (message.afterOutroMedia != null && message.hasOwnProperty("afterOutroMedia"))
29127
29094
  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]);
29095
+ writer.uint32(/* id 9, wireType 2 =*/74).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]);
29129
29096
  $root.contentful.IdReferences.encode(message.afterOutroMedia[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim();
29130
29097
  }
29131
29098
  if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
29132
- writer.uint32(/* id 11, wireType 0 =*/88).uint64(message.updatedAt);
29099
+ writer.uint32(/* id 10, wireType 0 =*/80).uint64(message.updatedAt);
29133
29100
  return writer;
29134
29101
  };
29135
29102
 
@@ -29168,9 +29135,6 @@ $root.ContentfulSleepcastRecipeUpdated = (function() {
29168
29135
  message.slug = reader.string();
29169
29136
  break;
29170
29137
  case 2:
29171
- message.generator = reader.string();
29172
- break;
29173
- case 3:
29174
29138
  reader.skip().pos++;
29175
29139
  if (message.ambientMedia === $util.emptyObject)
29176
29140
  message.ambientMedia = {};
@@ -29178,7 +29142,7 @@ $root.ContentfulSleepcastRecipeUpdated = (function() {
29178
29142
  reader.pos++;
29179
29143
  message.ambientMedia[key] = $root.contentful.IdReference.decode(reader, reader.uint32());
29180
29144
  break;
29181
- case 4:
29145
+ case 3:
29182
29146
  reader.skip().pos++;
29183
29147
  if (message.beforeIntroMedia === $util.emptyObject)
29184
29148
  message.beforeIntroMedia = {};
@@ -29186,7 +29150,7 @@ $root.ContentfulSleepcastRecipeUpdated = (function() {
29186
29150
  reader.pos++;
29187
29151
  message.beforeIntroMedia[key] = $root.contentful.IdReferences.decode(reader, reader.uint32());
29188
29152
  break;
29189
- case 5:
29153
+ case 4:
29190
29154
  reader.skip().pos++;
29191
29155
  if (message.introMedia === $util.emptyObject)
29192
29156
  message.introMedia = {};
@@ -29194,7 +29158,7 @@ $root.ContentfulSleepcastRecipeUpdated = (function() {
29194
29158
  reader.pos++;
29195
29159
  message.introMedia[key] = $root.contentful.IdReferences.decode(reader, reader.uint32());
29196
29160
  break;
29197
- case 6:
29161
+ case 5:
29198
29162
  reader.skip().pos++;
29199
29163
  if (message.afterIntroMedia === $util.emptyObject)
29200
29164
  message.afterIntroMedia = {};
@@ -29202,7 +29166,7 @@ $root.ContentfulSleepcastRecipeUpdated = (function() {
29202
29166
  reader.pos++;
29203
29167
  message.afterIntroMedia[key] = $root.contentful.IdReferences.decode(reader, reader.uint32());
29204
29168
  break;
29205
- case 7:
29169
+ case 6:
29206
29170
  reader.skip().pos++;
29207
29171
  if (message.mainMedia === $util.emptyObject)
29208
29172
  message.mainMedia = {};
@@ -29210,7 +29174,7 @@ $root.ContentfulSleepcastRecipeUpdated = (function() {
29210
29174
  reader.pos++;
29211
29175
  message.mainMedia[key] = $root.contentful.IdReferences.decode(reader, reader.uint32());
29212
29176
  break;
29213
- case 8:
29177
+ case 7:
29214
29178
  reader.skip().pos++;
29215
29179
  if (message.beforeOutroMedia === $util.emptyObject)
29216
29180
  message.beforeOutroMedia = {};
@@ -29218,7 +29182,7 @@ $root.ContentfulSleepcastRecipeUpdated = (function() {
29218
29182
  reader.pos++;
29219
29183
  message.beforeOutroMedia[key] = $root.contentful.IdReferences.decode(reader, reader.uint32());
29220
29184
  break;
29221
- case 9:
29185
+ case 8:
29222
29186
  reader.skip().pos++;
29223
29187
  if (message.outroMedia === $util.emptyObject)
29224
29188
  message.outroMedia = {};
@@ -29226,7 +29190,7 @@ $root.ContentfulSleepcastRecipeUpdated = (function() {
29226
29190
  reader.pos++;
29227
29191
  message.outroMedia[key] = $root.contentful.IdReferences.decode(reader, reader.uint32());
29228
29192
  break;
29229
- case 10:
29193
+ case 9:
29230
29194
  reader.skip().pos++;
29231
29195
  if (message.afterOutroMedia === $util.emptyObject)
29232
29196
  message.afterOutroMedia = {};
@@ -29234,7 +29198,7 @@ $root.ContentfulSleepcastRecipeUpdated = (function() {
29234
29198
  reader.pos++;
29235
29199
  message.afterOutroMedia[key] = $root.contentful.IdReferences.decode(reader, reader.uint32());
29236
29200
  break;
29237
- case 11:
29201
+ case 10:
29238
29202
  message.updatedAt = reader.uint64();
29239
29203
  break;
29240
29204
  default:
@@ -29275,9 +29239,6 @@ $root.ContentfulSleepcastRecipeUpdated = (function() {
29275
29239
  if (message.slug != null && message.hasOwnProperty("slug"))
29276
29240
  if (!$util.isString(message.slug))
29277
29241
  return "slug: string expected";
29278
- if (message.generator != null && message.hasOwnProperty("generator"))
29279
- if (!$util.isString(message.generator))
29280
- return "generator: string expected";
29281
29242
  if (message.ambientMedia != null && message.hasOwnProperty("ambientMedia")) {
29282
29243
  if (!$util.isObject(message.ambientMedia))
29283
29244
  return "ambientMedia: object expected";
@@ -29378,8 +29339,6 @@ $root.ContentfulSleepcastRecipeUpdated = (function() {
29378
29339
  var message = new $root.ContentfulSleepcastRecipeUpdated();
29379
29340
  if (object.slug != null)
29380
29341
  message.slug = String(object.slug);
29381
- if (object.generator != null)
29382
- message.generator = String(object.generator);
29383
29342
  if (object.ambientMedia) {
29384
29343
  if (typeof object.ambientMedia !== "object")
29385
29344
  throw TypeError(".ContentfulSleepcastRecipeUpdated.ambientMedia: object expected");
@@ -29497,7 +29456,6 @@ $root.ContentfulSleepcastRecipeUpdated = (function() {
29497
29456
  }
29498
29457
  if (options.defaults) {
29499
29458
  object.slug = "";
29500
- object.generator = "";
29501
29459
  if ($util.Long) {
29502
29460
  var long = new $util.Long(0, 0, true);
29503
29461
  object.updatedAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
@@ -29506,8 +29464,6 @@ $root.ContentfulSleepcastRecipeUpdated = (function() {
29506
29464
  }
29507
29465
  if (message.slug != null && message.hasOwnProperty("slug"))
29508
29466
  object.slug = message.slug;
29509
- if (message.generator != null && message.hasOwnProperty("generator"))
29510
- object.generator = message.generator;
29511
29467
  var keys2;
29512
29468
  if (message.ambientMedia && (keys2 = Object.keys(message.ambientMedia)).length) {
29513
29469
  object.ambientMedia = {};
@@ -40889,6 +40845,214 @@ $root.AssignmentAllocationBatchPushed = (function() {
40889
40845
  return AssignmentAllocationBatchPushed;
40890
40846
  })();
40891
40847
 
40848
+ $root.Output = (function() {
40849
+
40850
+ /**
40851
+ * Properties of an Output.
40852
+ * @exports IOutput
40853
+ * @interface IOutput
40854
+ * @property {Object.<string,string>|null} [path] Output path
40855
+ */
40856
+
40857
+ /**
40858
+ * Constructs a new Output.
40859
+ * @exports Output
40860
+ * @classdesc Represents an Output.
40861
+ * @implements IOutput
40862
+ * @constructor
40863
+ * @param {IOutput=} [properties] Properties to set
40864
+ */
40865
+ function Output(properties) {
40866
+ this.path = {};
40867
+ if (properties)
40868
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
40869
+ if (properties[keys[i]] != null)
40870
+ this[keys[i]] = properties[keys[i]];
40871
+ }
40872
+
40873
+ /**
40874
+ * Output path.
40875
+ * @member {Object.<string,string>} path
40876
+ * @memberof Output
40877
+ * @instance
40878
+ */
40879
+ Output.prototype.path = $util.emptyObject;
40880
+
40881
+ /**
40882
+ * Creates a new Output instance using the specified properties.
40883
+ * @function create
40884
+ * @memberof Output
40885
+ * @static
40886
+ * @param {IOutput=} [properties] Properties to set
40887
+ * @returns {Output} Output instance
40888
+ */
40889
+ Output.create = function create(properties) {
40890
+ return new Output(properties);
40891
+ };
40892
+
40893
+ /**
40894
+ * Encodes the specified Output message. Does not implicitly {@link Output.verify|verify} messages.
40895
+ * @function encode
40896
+ * @memberof Output
40897
+ * @static
40898
+ * @param {IOutput} message Output message or plain object to encode
40899
+ * @param {$protobuf.Writer} [writer] Writer to encode to
40900
+ * @returns {$protobuf.Writer} Writer
40901
+ */
40902
+ Output.encode = function encode(message, writer) {
40903
+ if (!writer)
40904
+ writer = $Writer.create();
40905
+ if (message.path != null && message.hasOwnProperty("path"))
40906
+ for (var keys = Object.keys(message.path), i = 0; i < keys.length; ++i)
40907
+ writer.uint32(/* id 1, wireType 2 =*/10).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.path[keys[i]]).ldelim();
40908
+ return writer;
40909
+ };
40910
+
40911
+ /**
40912
+ * Encodes the specified Output message, length delimited. Does not implicitly {@link Output.verify|verify} messages.
40913
+ * @function encodeDelimited
40914
+ * @memberof Output
40915
+ * @static
40916
+ * @param {IOutput} message Output message or plain object to encode
40917
+ * @param {$protobuf.Writer} [writer] Writer to encode to
40918
+ * @returns {$protobuf.Writer} Writer
40919
+ */
40920
+ Output.encodeDelimited = function encodeDelimited(message, writer) {
40921
+ return this.encode(message, writer).ldelim();
40922
+ };
40923
+
40924
+ /**
40925
+ * Decodes an Output message from the specified reader or buffer.
40926
+ * @function decode
40927
+ * @memberof Output
40928
+ * @static
40929
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
40930
+ * @param {number} [length] Message length if known beforehand
40931
+ * @returns {Output} Output
40932
+ * @throws {Error} If the payload is not a reader or valid buffer
40933
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
40934
+ */
40935
+ Output.decode = function decode(reader, length) {
40936
+ if (!(reader instanceof $Reader))
40937
+ reader = $Reader.create(reader);
40938
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.Output(), key;
40939
+ while (reader.pos < end) {
40940
+ var tag = reader.uint32();
40941
+ switch (tag >>> 3) {
40942
+ case 1:
40943
+ reader.skip().pos++;
40944
+ if (message.path === $util.emptyObject)
40945
+ message.path = {};
40946
+ key = reader.string();
40947
+ reader.pos++;
40948
+ message.path[key] = reader.string();
40949
+ break;
40950
+ default:
40951
+ reader.skipType(tag & 7);
40952
+ break;
40953
+ }
40954
+ }
40955
+ return message;
40956
+ };
40957
+
40958
+ /**
40959
+ * Decodes an Output message from the specified reader or buffer, length delimited.
40960
+ * @function decodeDelimited
40961
+ * @memberof Output
40962
+ * @static
40963
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
40964
+ * @returns {Output} Output
40965
+ * @throws {Error} If the payload is not a reader or valid buffer
40966
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
40967
+ */
40968
+ Output.decodeDelimited = function decodeDelimited(reader) {
40969
+ if (!(reader instanceof $Reader))
40970
+ reader = new $Reader(reader);
40971
+ return this.decode(reader, reader.uint32());
40972
+ };
40973
+
40974
+ /**
40975
+ * Verifies an Output message.
40976
+ * @function verify
40977
+ * @memberof Output
40978
+ * @static
40979
+ * @param {Object.<string,*>} message Plain object to verify
40980
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
40981
+ */
40982
+ Output.verify = function verify(message) {
40983
+ if (typeof message !== "object" || message === null)
40984
+ return "object expected";
40985
+ if (message.path != null && message.hasOwnProperty("path")) {
40986
+ if (!$util.isObject(message.path))
40987
+ return "path: object expected";
40988
+ var key = Object.keys(message.path);
40989
+ for (var i = 0; i < key.length; ++i)
40990
+ if (!$util.isString(message.path[key[i]]))
40991
+ return "path: string{k:string} expected";
40992
+ }
40993
+ return null;
40994
+ };
40995
+
40996
+ /**
40997
+ * Creates an Output message from a plain object. Also converts values to their respective internal types.
40998
+ * @function fromObject
40999
+ * @memberof Output
41000
+ * @static
41001
+ * @param {Object.<string,*>} object Plain object
41002
+ * @returns {Output} Output
41003
+ */
41004
+ Output.fromObject = function fromObject(object) {
41005
+ if (object instanceof $root.Output)
41006
+ return object;
41007
+ var message = new $root.Output();
41008
+ if (object.path) {
41009
+ if (typeof object.path !== "object")
41010
+ throw TypeError(".Output.path: object expected");
41011
+ message.path = {};
41012
+ for (var keys = Object.keys(object.path), i = 0; i < keys.length; ++i)
41013
+ message.path[keys[i]] = String(object.path[keys[i]]);
41014
+ }
41015
+ return message;
41016
+ };
41017
+
41018
+ /**
41019
+ * Creates a plain object from an Output message. Also converts values to other types if specified.
41020
+ * @function toObject
41021
+ * @memberof Output
41022
+ * @static
41023
+ * @param {Output} message Output
41024
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
41025
+ * @returns {Object.<string,*>} Plain object
41026
+ */
41027
+ Output.toObject = function toObject(message, options) {
41028
+ if (!options)
41029
+ options = {};
41030
+ var object = {};
41031
+ if (options.objects || options.defaults)
41032
+ object.path = {};
41033
+ var keys2;
41034
+ if (message.path && (keys2 = Object.keys(message.path)).length) {
41035
+ object.path = {};
41036
+ for (var j = 0; j < keys2.length; ++j)
41037
+ object.path[keys2[j]] = message.path[keys2[j]];
41038
+ }
41039
+ return object;
41040
+ };
41041
+
41042
+ /**
41043
+ * Converts this Output to JSON.
41044
+ * @function toJSON
41045
+ * @memberof Output
41046
+ * @instance
41047
+ * @returns {Object.<string,*>} JSON object
41048
+ */
41049
+ Output.prototype.toJSON = function toJSON() {
41050
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
41051
+ };
41052
+
41053
+ return Output;
41054
+ })();
41055
+
40892
41056
  $root.CreateSleepcastVariant = (function() {
40893
41057
 
40894
41058
  /**
@@ -40896,7 +41060,7 @@ $root.CreateSleepcastVariant = (function() {
40896
41060
  * @exports ICreateSleepcastVariant
40897
41061
  * @interface ICreateSleepcastVariant
40898
41062
  * @property {number|null} [sleepcastId] CreateSleepcastVariant sleepcastId
40899
- * @property {string|null} [recipeJson] CreateSleepcastVariant recipeJson
41063
+ * @property {Object.<string,string>|null} [recipes] CreateSleepcastVariant recipes
40900
41064
  * @property {string|null} [inputDir] CreateSleepcastVariant inputDir
40901
41065
  * @property {string|null} [outputDir] CreateSleepcastVariant outputDir
40902
41066
  */
@@ -40910,6 +41074,7 @@ $root.CreateSleepcastVariant = (function() {
40910
41074
  * @param {ICreateSleepcastVariant=} [properties] Properties to set
40911
41075
  */
40912
41076
  function CreateSleepcastVariant(properties) {
41077
+ this.recipes = {};
40913
41078
  if (properties)
40914
41079
  for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
40915
41080
  if (properties[keys[i]] != null)
@@ -40925,12 +41090,12 @@ $root.CreateSleepcastVariant = (function() {
40925
41090
  CreateSleepcastVariant.prototype.sleepcastId = 0;
40926
41091
 
40927
41092
  /**
40928
- * CreateSleepcastVariant recipeJson.
40929
- * @member {string} recipeJson
41093
+ * CreateSleepcastVariant recipes.
41094
+ * @member {Object.<string,string>} recipes
40930
41095
  * @memberof CreateSleepcastVariant
40931
41096
  * @instance
40932
41097
  */
40933
- CreateSleepcastVariant.prototype.recipeJson = "";
41098
+ CreateSleepcastVariant.prototype.recipes = $util.emptyObject;
40934
41099
 
40935
41100
  /**
40936
41101
  * CreateSleepcastVariant inputDir.
@@ -40974,8 +41139,9 @@ $root.CreateSleepcastVariant = (function() {
40974
41139
  writer = $Writer.create();
40975
41140
  if (message.sleepcastId != null && message.hasOwnProperty("sleepcastId"))
40976
41141
  writer.uint32(/* id 1, wireType 0 =*/8).int32(message.sleepcastId);
40977
- if (message.recipeJson != null && message.hasOwnProperty("recipeJson"))
40978
- writer.uint32(/* id 2, wireType 2 =*/18).string(message.recipeJson);
41142
+ if (message.recipes != null && message.hasOwnProperty("recipes"))
41143
+ for (var keys = Object.keys(message.recipes), i = 0; i < keys.length; ++i)
41144
+ writer.uint32(/* id 2, wireType 2 =*/18).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.recipes[keys[i]]).ldelim();
40979
41145
  if (message.inputDir != null && message.hasOwnProperty("inputDir"))
40980
41146
  writer.uint32(/* id 3, wireType 2 =*/26).string(message.inputDir);
40981
41147
  if (message.outputDir != null && message.hasOwnProperty("outputDir"))
@@ -41010,7 +41176,7 @@ $root.CreateSleepcastVariant = (function() {
41010
41176
  CreateSleepcastVariant.decode = function decode(reader, length) {
41011
41177
  if (!(reader instanceof $Reader))
41012
41178
  reader = $Reader.create(reader);
41013
- var end = length === undefined ? reader.len : reader.pos + length, message = new $root.CreateSleepcastVariant();
41179
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.CreateSleepcastVariant(), key;
41014
41180
  while (reader.pos < end) {
41015
41181
  var tag = reader.uint32();
41016
41182
  switch (tag >>> 3) {
@@ -41018,7 +41184,12 @@ $root.CreateSleepcastVariant = (function() {
41018
41184
  message.sleepcastId = reader.int32();
41019
41185
  break;
41020
41186
  case 2:
41021
- message.recipeJson = reader.string();
41187
+ reader.skip().pos++;
41188
+ if (message.recipes === $util.emptyObject)
41189
+ message.recipes = {};
41190
+ key = reader.string();
41191
+ reader.pos++;
41192
+ message.recipes[key] = reader.string();
41022
41193
  break;
41023
41194
  case 3:
41024
41195
  message.inputDir = reader.string();
@@ -41064,9 +41235,14 @@ $root.CreateSleepcastVariant = (function() {
41064
41235
  if (message.sleepcastId != null && message.hasOwnProperty("sleepcastId"))
41065
41236
  if (!$util.isInteger(message.sleepcastId))
41066
41237
  return "sleepcastId: integer expected";
41067
- if (message.recipeJson != null && message.hasOwnProperty("recipeJson"))
41068
- if (!$util.isString(message.recipeJson))
41069
- return "recipeJson: string expected";
41238
+ if (message.recipes != null && message.hasOwnProperty("recipes")) {
41239
+ if (!$util.isObject(message.recipes))
41240
+ return "recipes: object expected";
41241
+ var key = Object.keys(message.recipes);
41242
+ for (var i = 0; i < key.length; ++i)
41243
+ if (!$util.isString(message.recipes[key[i]]))
41244
+ return "recipes: string{k:string} expected";
41245
+ }
41070
41246
  if (message.inputDir != null && message.hasOwnProperty("inputDir"))
41071
41247
  if (!$util.isString(message.inputDir))
41072
41248
  return "inputDir: string expected";
@@ -41090,8 +41266,13 @@ $root.CreateSleepcastVariant = (function() {
41090
41266
  var message = new $root.CreateSleepcastVariant();
41091
41267
  if (object.sleepcastId != null)
41092
41268
  message.sleepcastId = object.sleepcastId | 0;
41093
- if (object.recipeJson != null)
41094
- message.recipeJson = String(object.recipeJson);
41269
+ if (object.recipes) {
41270
+ if (typeof object.recipes !== "object")
41271
+ throw TypeError(".CreateSleepcastVariant.recipes: object expected");
41272
+ message.recipes = {};
41273
+ for (var keys = Object.keys(object.recipes), i = 0; i < keys.length; ++i)
41274
+ message.recipes[keys[i]] = String(object.recipes[keys[i]]);
41275
+ }
41095
41276
  if (object.inputDir != null)
41096
41277
  message.inputDir = String(object.inputDir);
41097
41278
  if (object.outputDir != null)
@@ -41112,16 +41293,21 @@ $root.CreateSleepcastVariant = (function() {
41112
41293
  if (!options)
41113
41294
  options = {};
41114
41295
  var object = {};
41296
+ if (options.objects || options.defaults)
41297
+ object.recipes = {};
41115
41298
  if (options.defaults) {
41116
41299
  object.sleepcastId = 0;
41117
- object.recipeJson = "";
41118
41300
  object.inputDir = "";
41119
41301
  object.outputDir = "";
41120
41302
  }
41121
41303
  if (message.sleepcastId != null && message.hasOwnProperty("sleepcastId"))
41122
41304
  object.sleepcastId = message.sleepcastId;
41123
- if (message.recipeJson != null && message.hasOwnProperty("recipeJson"))
41124
- object.recipeJson = message.recipeJson;
41305
+ var keys2;
41306
+ if (message.recipes && (keys2 = Object.keys(message.recipes)).length) {
41307
+ object.recipes = {};
41308
+ for (var j = 0; j < keys2.length; ++j)
41309
+ object.recipes[keys2[j]] = message.recipes[keys2[j]];
41310
+ }
41125
41311
  if (message.inputDir != null && message.hasOwnProperty("inputDir"))
41126
41312
  object.inputDir = message.inputDir;
41127
41313
  if (message.outputDir != null && message.hasOwnProperty("outputDir"))
@@ -41150,7 +41336,7 @@ $root.SleepcastVariantCreated = (function() {
41150
41336
  * @exports ISleepcastVariantCreated
41151
41337
  * @interface ISleepcastVariantCreated
41152
41338
  * @property {number|null} [sleepcastId] SleepcastVariantCreated sleepcastId
41153
- * @property {Object.<string,string>|null} [outputs] SleepcastVariantCreated outputs
41339
+ * @property {Object.<string,IOutput>|null} [outputs] SleepcastVariantCreated outputs
41154
41340
  */
41155
41341
 
41156
41342
  /**
@@ -41179,7 +41365,7 @@ $root.SleepcastVariantCreated = (function() {
41179
41365
 
41180
41366
  /**
41181
41367
  * SleepcastVariantCreated outputs.
41182
- * @member {Object.<string,string>} outputs
41368
+ * @member {Object.<string,IOutput>} outputs
41183
41369
  * @memberof SleepcastVariantCreated
41184
41370
  * @instance
41185
41371
  */
@@ -41212,8 +41398,10 @@ $root.SleepcastVariantCreated = (function() {
41212
41398
  if (message.sleepcastId != null && message.hasOwnProperty("sleepcastId"))
41213
41399
  writer.uint32(/* id 1, wireType 0 =*/8).int32(message.sleepcastId);
41214
41400
  if (message.outputs != null && message.hasOwnProperty("outputs"))
41215
- for (var keys = Object.keys(message.outputs), i = 0; i < keys.length; ++i)
41216
- writer.uint32(/* id 2, wireType 2 =*/18).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.outputs[keys[i]]).ldelim();
41401
+ for (var keys = Object.keys(message.outputs), i = 0; i < keys.length; ++i) {
41402
+ writer.uint32(/* id 2, wireType 2 =*/18).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]);
41403
+ $root.Output.encode(message.outputs[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim();
41404
+ }
41217
41405
  return writer;
41218
41406
  };
41219
41407
 
@@ -41257,7 +41445,7 @@ $root.SleepcastVariantCreated = (function() {
41257
41445
  message.outputs = {};
41258
41446
  key = reader.string();
41259
41447
  reader.pos++;
41260
- message.outputs[key] = reader.string();
41448
+ message.outputs[key] = $root.Output.decode(reader, reader.uint32());
41261
41449
  break;
41262
41450
  default:
41263
41451
  reader.skipType(tag & 7);
@@ -41301,9 +41489,11 @@ $root.SleepcastVariantCreated = (function() {
41301
41489
  if (!$util.isObject(message.outputs))
41302
41490
  return "outputs: object expected";
41303
41491
  var key = Object.keys(message.outputs);
41304
- for (var i = 0; i < key.length; ++i)
41305
- if (!$util.isString(message.outputs[key[i]]))
41306
- return "outputs: string{k:string} expected";
41492
+ for (var i = 0; i < key.length; ++i) {
41493
+ var error = $root.Output.verify(message.outputs[key[i]]);
41494
+ if (error)
41495
+ return "outputs." + error;
41496
+ }
41307
41497
  }
41308
41498
  return null;
41309
41499
  };
@@ -41326,8 +41516,11 @@ $root.SleepcastVariantCreated = (function() {
41326
41516
  if (typeof object.outputs !== "object")
41327
41517
  throw TypeError(".SleepcastVariantCreated.outputs: object expected");
41328
41518
  message.outputs = {};
41329
- for (var keys = Object.keys(object.outputs), i = 0; i < keys.length; ++i)
41330
- message.outputs[keys[i]] = String(object.outputs[keys[i]]);
41519
+ for (var keys = Object.keys(object.outputs), i = 0; i < keys.length; ++i) {
41520
+ if (typeof object.outputs[keys[i]] !== "object")
41521
+ throw TypeError(".SleepcastVariantCreated.outputs: object expected");
41522
+ message.outputs[keys[i]] = $root.Output.fromObject(object.outputs[keys[i]]);
41523
+ }
41331
41524
  }
41332
41525
  return message;
41333
41526
  };
@@ -41355,7 +41548,7 @@ $root.SleepcastVariantCreated = (function() {
41355
41548
  if (message.outputs && (keys2 = Object.keys(message.outputs)).length) {
41356
41549
  object.outputs = {};
41357
41550
  for (var j = 0; j < keys2.length; ++j)
41358
- object.outputs[keys2[j]] = message.outputs[keys2[j]];
41551
+ object.outputs[keys2[j]] = $root.Output.toObject(message.outputs[keys2[j]], options);
41359
41552
  }
41360
41553
  return object;
41361
41554
  };
package/package.json CHANGED
@@ -16,5 +16,5 @@
16
16
  "main": "lib/index.js",
17
17
  "name": "@headspace/protos-events",
18
18
  "typings": "lib/index.d.ts",
19
- "version": "1.198.0"
19
+ "version": "1.200.0"
20
20
  }