@headspace/protos-events 1.199.0 → 1.201.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 +124 -10
  2. package/lib/index.js +388 -63
  3. package/package.json +1 -1
package/lib/index.d.ts CHANGED
@@ -10666,6 +10666,12 @@ export interface IContentfulSleepcastCreated {
10666
10666
  /** ContentfulSleepcastCreated isEnabled */
10667
10667
  isEnabled?: (boolean|null);
10668
10668
 
10669
+ /** ContentfulSleepcastCreated duration */
10670
+ duration?: (number|null);
10671
+
10672
+ /** ContentfulSleepcastCreated narratorGender */
10673
+ narratorGender?: (string|null);
10674
+
10669
10675
  /** ContentfulSleepcastCreated primaryAudioMedia */
10670
10676
  primaryAudioMedia?: ({ [k: string]: contentful.IIdReferences }|null);
10671
10677
 
@@ -10718,6 +10724,12 @@ export class ContentfulSleepcastCreated implements IContentfulSleepcastCreated {
10718
10724
  /** ContentfulSleepcastCreated isEnabled. */
10719
10725
  public isEnabled: boolean;
10720
10726
 
10727
+ /** ContentfulSleepcastCreated duration. */
10728
+ public duration: number;
10729
+
10730
+ /** ContentfulSleepcastCreated narratorGender. */
10731
+ public narratorGender: string;
10732
+
10721
10733
  /** ContentfulSleepcastCreated primaryAudioMedia. */
10722
10734
  public primaryAudioMedia: { [k: string]: contentful.IIdReferences };
10723
10735
 
@@ -10834,6 +10846,12 @@ export interface IContentfulSleepcastUpdated {
10834
10846
  /** ContentfulSleepcastUpdated isEnabled */
10835
10847
  isEnabled?: (boolean|null);
10836
10848
 
10849
+ /** ContentfulSleepcastUpdated duration */
10850
+ duration?: (number|null);
10851
+
10852
+ /** ContentfulSleepcastUpdated narratorGender */
10853
+ narratorGender?: (string|null);
10854
+
10837
10855
  /** ContentfulSleepcastUpdated primaryAudioMedia */
10838
10856
  primaryAudioMedia?: ({ [k: string]: contentful.IIdReferences }|null);
10839
10857
 
@@ -10886,6 +10904,12 @@ export class ContentfulSleepcastUpdated implements IContentfulSleepcastUpdated {
10886
10904
  /** ContentfulSleepcastUpdated isEnabled. */
10887
10905
  public isEnabled: boolean;
10888
10906
 
10907
+ /** ContentfulSleepcastUpdated duration. */
10908
+ public duration: number;
10909
+
10910
+ /** ContentfulSleepcastUpdated narratorGender. */
10911
+ public narratorGender: string;
10912
+
10889
10913
  /** ContentfulSleepcastUpdated primaryAudioMedia. */
10890
10914
  public primaryAudioMedia: { [k: string]: contentful.IIdReferences };
10891
10915
 
@@ -14786,14 +14810,104 @@ export class AssignmentAllocationBatchPushed implements IAssignmentAllocationBat
14786
14810
  public toJSON(): { [k: string]: any };
14787
14811
  }
14788
14812
 
14813
+ /** Properties of an Output. */
14814
+ export interface IOutput {
14815
+
14816
+ /** Output path */
14817
+ path?: ({ [k: string]: string }|null);
14818
+ }
14819
+
14820
+ /** Represents an Output. */
14821
+ export class Output implements IOutput {
14822
+
14823
+ /**
14824
+ * Constructs a new Output.
14825
+ * @param [properties] Properties to set
14826
+ */
14827
+ constructor(properties?: IOutput);
14828
+
14829
+ /** Output path. */
14830
+ public path: { [k: string]: string };
14831
+
14832
+ /**
14833
+ * Creates a new Output instance using the specified properties.
14834
+ * @param [properties] Properties to set
14835
+ * @returns Output instance
14836
+ */
14837
+ public static create(properties?: IOutput): Output;
14838
+
14839
+ /**
14840
+ * Encodes the specified Output message. Does not implicitly {@link Output.verify|verify} messages.
14841
+ * @param message Output message or plain object to encode
14842
+ * @param [writer] Writer to encode to
14843
+ * @returns Writer
14844
+ */
14845
+ public static encode(message: IOutput, writer?: $protobuf.Writer): $protobuf.Writer;
14846
+
14847
+ /**
14848
+ * Encodes the specified Output message, length delimited. Does not implicitly {@link Output.verify|verify} messages.
14849
+ * @param message Output message or plain object to encode
14850
+ * @param [writer] Writer to encode to
14851
+ * @returns Writer
14852
+ */
14853
+ public static encodeDelimited(message: IOutput, writer?: $protobuf.Writer): $protobuf.Writer;
14854
+
14855
+ /**
14856
+ * Decodes an Output message from the specified reader or buffer.
14857
+ * @param reader Reader or buffer to decode from
14858
+ * @param [length] Message length if known beforehand
14859
+ * @returns Output
14860
+ * @throws {Error} If the payload is not a reader or valid buffer
14861
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
14862
+ */
14863
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Output;
14864
+
14865
+ /**
14866
+ * Decodes an Output message from the specified reader or buffer, length delimited.
14867
+ * @param reader Reader or buffer to decode from
14868
+ * @returns Output
14869
+ * @throws {Error} If the payload is not a reader or valid buffer
14870
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
14871
+ */
14872
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Output;
14873
+
14874
+ /**
14875
+ * Verifies an Output message.
14876
+ * @param message Plain object to verify
14877
+ * @returns `null` if valid, otherwise the reason why it is not
14878
+ */
14879
+ public static verify(message: { [k: string]: any }): (string|null);
14880
+
14881
+ /**
14882
+ * Creates an Output message from a plain object. Also converts values to their respective internal types.
14883
+ * @param object Plain object
14884
+ * @returns Output
14885
+ */
14886
+ public static fromObject(object: { [k: string]: any }): Output;
14887
+
14888
+ /**
14889
+ * Creates a plain object from an Output message. Also converts values to other types if specified.
14890
+ * @param message Output
14891
+ * @param [options] Conversion options
14892
+ * @returns Plain object
14893
+ */
14894
+ public static toObject(message: Output, options?: $protobuf.IConversionOptions): { [k: string]: any };
14895
+
14896
+ /**
14897
+ * Converts this Output to JSON.
14898
+ * @returns JSON object
14899
+ */
14900
+ public toJSON(): { [k: string]: any };
14901
+ }
14902
+
14789
14903
  /** Properties of a CreateSleepcastVariant. */
14790
14904
  export interface ICreateSleepcastVariant {
14791
14905
 
14792
14906
  /** CreateSleepcastVariant sleepcastId */
14793
14907
  sleepcastId?: (number|null);
14794
14908
 
14795
- /** CreateSleepcastVariant recipeJson */
14796
- recipeJson?: (string|null);
14909
+ /** CreateSleepcastVariant recipes */
14910
+ recipes?: ({ [k: string]: string }|null);
14797
14911
 
14798
14912
  /** CreateSleepcastVariant inputDir */
14799
14913
  inputDir?: (string|null);
@@ -14814,8 +14928,8 @@ export class CreateSleepcastVariant implements ICreateSleepcastVariant {
14814
14928
  /** CreateSleepcastVariant sleepcastId. */
14815
14929
  public sleepcastId: number;
14816
14930
 
14817
- /** CreateSleepcastVariant recipeJson. */
14818
- public recipeJson: string;
14931
+ /** CreateSleepcastVariant recipes. */
14932
+ public recipes: { [k: string]: string };
14819
14933
 
14820
14934
  /** CreateSleepcastVariant inputDir. */
14821
14935
  public inputDir: string;
@@ -14901,7 +15015,7 @@ export interface ISleepcastVariantCreated {
14901
15015
  sleepcastId?: (number|null);
14902
15016
 
14903
15017
  /** SleepcastVariantCreated outputs */
14904
- outputs?: ({ [k: string]: string }|null);
15018
+ outputs?: ({ [k: string]: IOutput }|null);
14905
15019
  }
14906
15020
 
14907
15021
  /** Represents a SleepcastVariantCreated. */
@@ -14917,7 +15031,7 @@ export class SleepcastVariantCreated implements ISleepcastVariantCreated {
14917
15031
  public sleepcastId: number;
14918
15032
 
14919
15033
  /** SleepcastVariantCreated outputs. */
14920
- public outputs: { [k: string]: string };
15034
+ public outputs: { [k: string]: IOutput };
14921
15035
 
14922
15036
  /**
14923
15037
  * Creates a new SleepcastVariantCreated instance using the specified properties.
@@ -14997,7 +15111,7 @@ export interface ISleepcastCreated {
14997
15111
  slug?: (string|null);
14998
15112
 
14999
15113
  /** SleepcastCreated entityId */
15000
- entityId?: (string|null);
15114
+ entityId?: (number|null);
15001
15115
 
15002
15116
  /** SleepcastCreated tileBackgroundMediaId */
15003
15117
  tileBackgroundMediaId?: (number|null);
@@ -15022,7 +15136,7 @@ export class SleepcastCreated implements ISleepcastCreated {
15022
15136
  public slug: string;
15023
15137
 
15024
15138
  /** SleepcastCreated entityId. */
15025
- public entityId: string;
15139
+ public entityId: number;
15026
15140
 
15027
15141
  /** SleepcastCreated tileBackgroundMediaId. */
15028
15142
  public tileBackgroundMediaId: number;
@@ -15111,7 +15225,7 @@ export interface ISleepcastUpdated {
15111
15225
  slug?: (string|null);
15112
15226
 
15113
15227
  /** SleepcastUpdated entityId */
15114
- entityId?: (string|null);
15228
+ entityId?: (number|null);
15115
15229
 
15116
15230
  /** SleepcastUpdated tileBackgroundMediaId */
15117
15231
  tileBackgroundMediaId?: (number|null);
@@ -15136,7 +15250,7 @@ export class SleepcastUpdated implements ISleepcastUpdated {
15136
15250
  public slug: string;
15137
15251
 
15138
15252
  /** SleepcastUpdated entityId. */
15139
- public entityId: string;
15253
+ public entityId: number;
15140
15254
 
15141
15255
  /** SleepcastUpdated tileBackgroundMediaId. */
15142
15256
  public tileBackgroundMediaId: number;
package/lib/index.js CHANGED
@@ -29766,6 +29766,8 @@ $root.ContentfulSleepcastCreated = (function() {
29766
29766
  * @property {Object.<string,contentful.IIdReference>|null} [playerBackgroundMedia] ContentfulSleepcastCreated playerBackgroundMedia
29767
29767
  * @property {boolean|null} [useVariantPresets] ContentfulSleepcastCreated useVariantPresets
29768
29768
  * @property {boolean|null} [isEnabled] ContentfulSleepcastCreated isEnabled
29769
+ * @property {number|null} [duration] ContentfulSleepcastCreated duration
29770
+ * @property {string|null} [narratorGender] ContentfulSleepcastCreated narratorGender
29769
29771
  * @property {Object.<string,contentful.IIdReferences>|null} [primaryAudioMedia] ContentfulSleepcastCreated primaryAudioMedia
29770
29772
  * @property {Object.<string,contentful.IIdReferences>|null} [secondaryAudioMedia] ContentfulSleepcastCreated secondaryAudioMedia
29771
29773
  * @property {Object.<string,contentful.IIdReferences>|null} [mixedAudioMedia] ContentfulSleepcastCreated mixedAudioMedia
@@ -29869,6 +29871,22 @@ $root.ContentfulSleepcastCreated = (function() {
29869
29871
  */
29870
29872
  ContentfulSleepcastCreated.prototype.isEnabled = false;
29871
29873
 
29874
+ /**
29875
+ * ContentfulSleepcastCreated duration.
29876
+ * @member {number} duration
29877
+ * @memberof ContentfulSleepcastCreated
29878
+ * @instance
29879
+ */
29880
+ ContentfulSleepcastCreated.prototype.duration = 0;
29881
+
29882
+ /**
29883
+ * ContentfulSleepcastCreated narratorGender.
29884
+ * @member {string} narratorGender
29885
+ * @memberof ContentfulSleepcastCreated
29886
+ * @instance
29887
+ */
29888
+ ContentfulSleepcastCreated.prototype.narratorGender = "";
29889
+
29872
29890
  /**
29873
29891
  * ContentfulSleepcastCreated primaryAudioMedia.
29874
29892
  * @member {Object.<string,contentful.IIdReferences>} primaryAudioMedia
@@ -29960,26 +29978,30 @@ $root.ContentfulSleepcastCreated = (function() {
29960
29978
  writer.uint32(/* id 8, wireType 0 =*/64).bool(message.useVariantPresets);
29961
29979
  if (message.isEnabled != null && message.hasOwnProperty("isEnabled"))
29962
29980
  writer.uint32(/* id 9, wireType 0 =*/72).bool(message.isEnabled);
29981
+ if (message.duration != null && message.hasOwnProperty("duration"))
29982
+ writer.uint32(/* id 10, wireType 0 =*/80).int32(message.duration);
29983
+ if (message.narratorGender != null && message.hasOwnProperty("narratorGender"))
29984
+ writer.uint32(/* id 11, wireType 2 =*/90).string(message.narratorGender);
29963
29985
  if (message.primaryAudioMedia != null && message.hasOwnProperty("primaryAudioMedia"))
29964
29986
  for (var keys = Object.keys(message.primaryAudioMedia), i = 0; i < keys.length; ++i) {
29965
- writer.uint32(/* id 10, wireType 2 =*/82).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]);
29987
+ writer.uint32(/* id 12, wireType 2 =*/98).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]);
29966
29988
  $root.contentful.IdReferences.encode(message.primaryAudioMedia[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim();
29967
29989
  }
29968
29990
  if (message.secondaryAudioMedia != null && message.hasOwnProperty("secondaryAudioMedia"))
29969
29991
  for (var keys = Object.keys(message.secondaryAudioMedia), i = 0; i < keys.length; ++i) {
29970
- writer.uint32(/* id 11, wireType 2 =*/90).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]);
29992
+ writer.uint32(/* id 13, wireType 2 =*/106).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]);
29971
29993
  $root.contentful.IdReferences.encode(message.secondaryAudioMedia[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim();
29972
29994
  }
29973
29995
  if (message.mixedAudioMedia != null && message.hasOwnProperty("mixedAudioMedia"))
29974
29996
  for (var keys = Object.keys(message.mixedAudioMedia), i = 0; i < keys.length; ++i) {
29975
- writer.uint32(/* id 12, wireType 2 =*/98).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]);
29997
+ writer.uint32(/* id 14, wireType 2 =*/114).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]);
29976
29998
  $root.contentful.IdReferences.encode(message.mixedAudioMedia[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim();
29977
29999
  }
29978
30000
  if (message.accessGroup != null && message.accessGroup.length)
29979
30001
  for (var i = 0; i < message.accessGroup.length; ++i)
29980
- $root.contentful.SlugReference.encode(message.accessGroup[i], writer.uint32(/* id 13, wireType 2 =*/106).fork()).ldelim();
30002
+ $root.contentful.SlugReference.encode(message.accessGroup[i], writer.uint32(/* id 15, wireType 2 =*/122).fork()).ldelim();
29981
30003
  if (message.createdAt != null && message.hasOwnProperty("createdAt"))
29982
- writer.uint32(/* id 14, wireType 0 =*/112).uint64(message.createdAt);
30004
+ writer.uint32(/* id 16, wireType 0 =*/128).uint64(message.createdAt);
29983
30005
  return writer;
29984
30006
  };
29985
30007
 
@@ -30067,6 +30089,12 @@ $root.ContentfulSleepcastCreated = (function() {
30067
30089
  message.isEnabled = reader.bool();
30068
30090
  break;
30069
30091
  case 10:
30092
+ message.duration = reader.int32();
30093
+ break;
30094
+ case 11:
30095
+ message.narratorGender = reader.string();
30096
+ break;
30097
+ case 12:
30070
30098
  reader.skip().pos++;
30071
30099
  if (message.primaryAudioMedia === $util.emptyObject)
30072
30100
  message.primaryAudioMedia = {};
@@ -30074,7 +30102,7 @@ $root.ContentfulSleepcastCreated = (function() {
30074
30102
  reader.pos++;
30075
30103
  message.primaryAudioMedia[key] = $root.contentful.IdReferences.decode(reader, reader.uint32());
30076
30104
  break;
30077
- case 11:
30105
+ case 13:
30078
30106
  reader.skip().pos++;
30079
30107
  if (message.secondaryAudioMedia === $util.emptyObject)
30080
30108
  message.secondaryAudioMedia = {};
@@ -30082,7 +30110,7 @@ $root.ContentfulSleepcastCreated = (function() {
30082
30110
  reader.pos++;
30083
30111
  message.secondaryAudioMedia[key] = $root.contentful.IdReferences.decode(reader, reader.uint32());
30084
30112
  break;
30085
- case 12:
30113
+ case 14:
30086
30114
  reader.skip().pos++;
30087
30115
  if (message.mixedAudioMedia === $util.emptyObject)
30088
30116
  message.mixedAudioMedia = {};
@@ -30090,12 +30118,12 @@ $root.ContentfulSleepcastCreated = (function() {
30090
30118
  reader.pos++;
30091
30119
  message.mixedAudioMedia[key] = $root.contentful.IdReferences.decode(reader, reader.uint32());
30092
30120
  break;
30093
- case 13:
30121
+ case 15:
30094
30122
  if (!(message.accessGroup && message.accessGroup.length))
30095
30123
  message.accessGroup = [];
30096
30124
  message.accessGroup.push($root.contentful.SlugReference.decode(reader, reader.uint32()));
30097
30125
  break;
30098
- case 14:
30126
+ case 16:
30099
30127
  message.createdAt = reader.uint64();
30100
30128
  break;
30101
30129
  default:
@@ -30191,6 +30219,12 @@ $root.ContentfulSleepcastCreated = (function() {
30191
30219
  if (message.isEnabled != null && message.hasOwnProperty("isEnabled"))
30192
30220
  if (typeof message.isEnabled !== "boolean")
30193
30221
  return "isEnabled: boolean expected";
30222
+ if (message.duration != null && message.hasOwnProperty("duration"))
30223
+ if (!$util.isInteger(message.duration))
30224
+ return "duration: integer expected";
30225
+ if (message.narratorGender != null && message.hasOwnProperty("narratorGender"))
30226
+ if (!$util.isString(message.narratorGender))
30227
+ return "narratorGender: string expected";
30194
30228
  if (message.primaryAudioMedia != null && message.hasOwnProperty("primaryAudioMedia")) {
30195
30229
  if (!$util.isObject(message.primaryAudioMedia))
30196
30230
  return "primaryAudioMedia: object expected";
@@ -30300,6 +30334,10 @@ $root.ContentfulSleepcastCreated = (function() {
30300
30334
  message.useVariantPresets = Boolean(object.useVariantPresets);
30301
30335
  if (object.isEnabled != null)
30302
30336
  message.isEnabled = Boolean(object.isEnabled);
30337
+ if (object.duration != null)
30338
+ message.duration = object.duration | 0;
30339
+ if (object.narratorGender != null)
30340
+ message.narratorGender = String(object.narratorGender);
30303
30341
  if (object.primaryAudioMedia) {
30304
30342
  if (typeof object.primaryAudioMedia !== "object")
30305
30343
  throw TypeError(".ContentfulSleepcastCreated.primaryAudioMedia: object expected");
@@ -30382,6 +30420,8 @@ $root.ContentfulSleepcastCreated = (function() {
30382
30420
  object.recipe = null;
30383
30421
  object.useVariantPresets = false;
30384
30422
  object.isEnabled = false;
30423
+ object.duration = 0;
30424
+ object.narratorGender = "";
30385
30425
  if ($util.Long) {
30386
30426
  var long = new $util.Long(0, 0, true);
30387
30427
  object.createdAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
@@ -30422,6 +30462,10 @@ $root.ContentfulSleepcastCreated = (function() {
30422
30462
  object.useVariantPresets = message.useVariantPresets;
30423
30463
  if (message.isEnabled != null && message.hasOwnProperty("isEnabled"))
30424
30464
  object.isEnabled = message.isEnabled;
30465
+ if (message.duration != null && message.hasOwnProperty("duration"))
30466
+ object.duration = message.duration;
30467
+ if (message.narratorGender != null && message.hasOwnProperty("narratorGender"))
30468
+ object.narratorGender = message.narratorGender;
30425
30469
  if (message.primaryAudioMedia && (keys2 = Object.keys(message.primaryAudioMedia)).length) {
30426
30470
  object.primaryAudioMedia = {};
30427
30471
  for (var j = 0; j < keys2.length; ++j)
@@ -30479,6 +30523,8 @@ $root.ContentfulSleepcastUpdated = (function() {
30479
30523
  * @property {Object.<string,contentful.IIdReference>|null} [playerBackgroundMedia] ContentfulSleepcastUpdated playerBackgroundMedia
30480
30524
  * @property {boolean|null} [useVariantPresets] ContentfulSleepcastUpdated useVariantPresets
30481
30525
  * @property {boolean|null} [isEnabled] ContentfulSleepcastUpdated isEnabled
30526
+ * @property {number|null} [duration] ContentfulSleepcastUpdated duration
30527
+ * @property {string|null} [narratorGender] ContentfulSleepcastUpdated narratorGender
30482
30528
  * @property {Object.<string,contentful.IIdReferences>|null} [primaryAudioMedia] ContentfulSleepcastUpdated primaryAudioMedia
30483
30529
  * @property {Object.<string,contentful.IIdReferences>|null} [secondaryAudioMedia] ContentfulSleepcastUpdated secondaryAudioMedia
30484
30530
  * @property {Object.<string,contentful.IIdReferences>|null} [mixedAudioMedia] ContentfulSleepcastUpdated mixedAudioMedia
@@ -30582,6 +30628,22 @@ $root.ContentfulSleepcastUpdated = (function() {
30582
30628
  */
30583
30629
  ContentfulSleepcastUpdated.prototype.isEnabled = false;
30584
30630
 
30631
+ /**
30632
+ * ContentfulSleepcastUpdated duration.
30633
+ * @member {number} duration
30634
+ * @memberof ContentfulSleepcastUpdated
30635
+ * @instance
30636
+ */
30637
+ ContentfulSleepcastUpdated.prototype.duration = 0;
30638
+
30639
+ /**
30640
+ * ContentfulSleepcastUpdated narratorGender.
30641
+ * @member {string} narratorGender
30642
+ * @memberof ContentfulSleepcastUpdated
30643
+ * @instance
30644
+ */
30645
+ ContentfulSleepcastUpdated.prototype.narratorGender = "";
30646
+
30585
30647
  /**
30586
30648
  * ContentfulSleepcastUpdated primaryAudioMedia.
30587
30649
  * @member {Object.<string,contentful.IIdReferences>} primaryAudioMedia
@@ -30673,26 +30735,30 @@ $root.ContentfulSleepcastUpdated = (function() {
30673
30735
  writer.uint32(/* id 8, wireType 0 =*/64).bool(message.useVariantPresets);
30674
30736
  if (message.isEnabled != null && message.hasOwnProperty("isEnabled"))
30675
30737
  writer.uint32(/* id 9, wireType 0 =*/72).bool(message.isEnabled);
30738
+ if (message.duration != null && message.hasOwnProperty("duration"))
30739
+ writer.uint32(/* id 10, wireType 0 =*/80).int32(message.duration);
30740
+ if (message.narratorGender != null && message.hasOwnProperty("narratorGender"))
30741
+ writer.uint32(/* id 11, wireType 2 =*/90).string(message.narratorGender);
30676
30742
  if (message.primaryAudioMedia != null && message.hasOwnProperty("primaryAudioMedia"))
30677
30743
  for (var keys = Object.keys(message.primaryAudioMedia), i = 0; i < keys.length; ++i) {
30678
- writer.uint32(/* id 10, wireType 2 =*/82).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]);
30744
+ writer.uint32(/* id 12, wireType 2 =*/98).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]);
30679
30745
  $root.contentful.IdReferences.encode(message.primaryAudioMedia[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim();
30680
30746
  }
30681
30747
  if (message.secondaryAudioMedia != null && message.hasOwnProperty("secondaryAudioMedia"))
30682
30748
  for (var keys = Object.keys(message.secondaryAudioMedia), i = 0; i < keys.length; ++i) {
30683
- writer.uint32(/* id 11, wireType 2 =*/90).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]);
30749
+ writer.uint32(/* id 13, wireType 2 =*/106).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]);
30684
30750
  $root.contentful.IdReferences.encode(message.secondaryAudioMedia[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim();
30685
30751
  }
30686
30752
  if (message.mixedAudioMedia != null && message.hasOwnProperty("mixedAudioMedia"))
30687
30753
  for (var keys = Object.keys(message.mixedAudioMedia), i = 0; i < keys.length; ++i) {
30688
- writer.uint32(/* id 12, wireType 2 =*/98).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]);
30754
+ writer.uint32(/* id 14, wireType 2 =*/114).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]);
30689
30755
  $root.contentful.IdReferences.encode(message.mixedAudioMedia[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim();
30690
30756
  }
30691
30757
  if (message.accessGroup != null && message.accessGroup.length)
30692
30758
  for (var i = 0; i < message.accessGroup.length; ++i)
30693
- $root.contentful.SlugReference.encode(message.accessGroup[i], writer.uint32(/* id 13, wireType 2 =*/106).fork()).ldelim();
30759
+ $root.contentful.SlugReference.encode(message.accessGroup[i], writer.uint32(/* id 15, wireType 2 =*/122).fork()).ldelim();
30694
30760
  if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
30695
- writer.uint32(/* id 14, wireType 0 =*/112).uint64(message.updatedAt);
30761
+ writer.uint32(/* id 16, wireType 0 =*/128).uint64(message.updatedAt);
30696
30762
  return writer;
30697
30763
  };
30698
30764
 
@@ -30780,6 +30846,12 @@ $root.ContentfulSleepcastUpdated = (function() {
30780
30846
  message.isEnabled = reader.bool();
30781
30847
  break;
30782
30848
  case 10:
30849
+ message.duration = reader.int32();
30850
+ break;
30851
+ case 11:
30852
+ message.narratorGender = reader.string();
30853
+ break;
30854
+ case 12:
30783
30855
  reader.skip().pos++;
30784
30856
  if (message.primaryAudioMedia === $util.emptyObject)
30785
30857
  message.primaryAudioMedia = {};
@@ -30787,7 +30859,7 @@ $root.ContentfulSleepcastUpdated = (function() {
30787
30859
  reader.pos++;
30788
30860
  message.primaryAudioMedia[key] = $root.contentful.IdReferences.decode(reader, reader.uint32());
30789
30861
  break;
30790
- case 11:
30862
+ case 13:
30791
30863
  reader.skip().pos++;
30792
30864
  if (message.secondaryAudioMedia === $util.emptyObject)
30793
30865
  message.secondaryAudioMedia = {};
@@ -30795,7 +30867,7 @@ $root.ContentfulSleepcastUpdated = (function() {
30795
30867
  reader.pos++;
30796
30868
  message.secondaryAudioMedia[key] = $root.contentful.IdReferences.decode(reader, reader.uint32());
30797
30869
  break;
30798
- case 12:
30870
+ case 14:
30799
30871
  reader.skip().pos++;
30800
30872
  if (message.mixedAudioMedia === $util.emptyObject)
30801
30873
  message.mixedAudioMedia = {};
@@ -30803,12 +30875,12 @@ $root.ContentfulSleepcastUpdated = (function() {
30803
30875
  reader.pos++;
30804
30876
  message.mixedAudioMedia[key] = $root.contentful.IdReferences.decode(reader, reader.uint32());
30805
30877
  break;
30806
- case 13:
30878
+ case 15:
30807
30879
  if (!(message.accessGroup && message.accessGroup.length))
30808
30880
  message.accessGroup = [];
30809
30881
  message.accessGroup.push($root.contentful.SlugReference.decode(reader, reader.uint32()));
30810
30882
  break;
30811
- case 14:
30883
+ case 16:
30812
30884
  message.updatedAt = reader.uint64();
30813
30885
  break;
30814
30886
  default:
@@ -30904,6 +30976,12 @@ $root.ContentfulSleepcastUpdated = (function() {
30904
30976
  if (message.isEnabled != null && message.hasOwnProperty("isEnabled"))
30905
30977
  if (typeof message.isEnabled !== "boolean")
30906
30978
  return "isEnabled: boolean expected";
30979
+ if (message.duration != null && message.hasOwnProperty("duration"))
30980
+ if (!$util.isInteger(message.duration))
30981
+ return "duration: integer expected";
30982
+ if (message.narratorGender != null && message.hasOwnProperty("narratorGender"))
30983
+ if (!$util.isString(message.narratorGender))
30984
+ return "narratorGender: string expected";
30907
30985
  if (message.primaryAudioMedia != null && message.hasOwnProperty("primaryAudioMedia")) {
30908
30986
  if (!$util.isObject(message.primaryAudioMedia))
30909
30987
  return "primaryAudioMedia: object expected";
@@ -31013,6 +31091,10 @@ $root.ContentfulSleepcastUpdated = (function() {
31013
31091
  message.useVariantPresets = Boolean(object.useVariantPresets);
31014
31092
  if (object.isEnabled != null)
31015
31093
  message.isEnabled = Boolean(object.isEnabled);
31094
+ if (object.duration != null)
31095
+ message.duration = object.duration | 0;
31096
+ if (object.narratorGender != null)
31097
+ message.narratorGender = String(object.narratorGender);
31016
31098
  if (object.primaryAudioMedia) {
31017
31099
  if (typeof object.primaryAudioMedia !== "object")
31018
31100
  throw TypeError(".ContentfulSleepcastUpdated.primaryAudioMedia: object expected");
@@ -31095,6 +31177,8 @@ $root.ContentfulSleepcastUpdated = (function() {
31095
31177
  object.recipe = null;
31096
31178
  object.useVariantPresets = false;
31097
31179
  object.isEnabled = false;
31180
+ object.duration = 0;
31181
+ object.narratorGender = "";
31098
31182
  if ($util.Long) {
31099
31183
  var long = new $util.Long(0, 0, true);
31100
31184
  object.updatedAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
@@ -31135,6 +31219,10 @@ $root.ContentfulSleepcastUpdated = (function() {
31135
31219
  object.useVariantPresets = message.useVariantPresets;
31136
31220
  if (message.isEnabled != null && message.hasOwnProperty("isEnabled"))
31137
31221
  object.isEnabled = message.isEnabled;
31222
+ if (message.duration != null && message.hasOwnProperty("duration"))
31223
+ object.duration = message.duration;
31224
+ if (message.narratorGender != null && message.hasOwnProperty("narratorGender"))
31225
+ object.narratorGender = message.narratorGender;
31138
31226
  if (message.primaryAudioMedia && (keys2 = Object.keys(message.primaryAudioMedia)).length) {
31139
31227
  object.primaryAudioMedia = {};
31140
31228
  for (var j = 0; j < keys2.length; ++j)
@@ -40845,6 +40933,214 @@ $root.AssignmentAllocationBatchPushed = (function() {
40845
40933
  return AssignmentAllocationBatchPushed;
40846
40934
  })();
40847
40935
 
40936
+ $root.Output = (function() {
40937
+
40938
+ /**
40939
+ * Properties of an Output.
40940
+ * @exports IOutput
40941
+ * @interface IOutput
40942
+ * @property {Object.<string,string>|null} [path] Output path
40943
+ */
40944
+
40945
+ /**
40946
+ * Constructs a new Output.
40947
+ * @exports Output
40948
+ * @classdesc Represents an Output.
40949
+ * @implements IOutput
40950
+ * @constructor
40951
+ * @param {IOutput=} [properties] Properties to set
40952
+ */
40953
+ function Output(properties) {
40954
+ this.path = {};
40955
+ if (properties)
40956
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
40957
+ if (properties[keys[i]] != null)
40958
+ this[keys[i]] = properties[keys[i]];
40959
+ }
40960
+
40961
+ /**
40962
+ * Output path.
40963
+ * @member {Object.<string,string>} path
40964
+ * @memberof Output
40965
+ * @instance
40966
+ */
40967
+ Output.prototype.path = $util.emptyObject;
40968
+
40969
+ /**
40970
+ * Creates a new Output instance using the specified properties.
40971
+ * @function create
40972
+ * @memberof Output
40973
+ * @static
40974
+ * @param {IOutput=} [properties] Properties to set
40975
+ * @returns {Output} Output instance
40976
+ */
40977
+ Output.create = function create(properties) {
40978
+ return new Output(properties);
40979
+ };
40980
+
40981
+ /**
40982
+ * Encodes the specified Output message. Does not implicitly {@link Output.verify|verify} messages.
40983
+ * @function encode
40984
+ * @memberof Output
40985
+ * @static
40986
+ * @param {IOutput} message Output message or plain object to encode
40987
+ * @param {$protobuf.Writer} [writer] Writer to encode to
40988
+ * @returns {$protobuf.Writer} Writer
40989
+ */
40990
+ Output.encode = function encode(message, writer) {
40991
+ if (!writer)
40992
+ writer = $Writer.create();
40993
+ if (message.path != null && message.hasOwnProperty("path"))
40994
+ for (var keys = Object.keys(message.path), i = 0; i < keys.length; ++i)
40995
+ 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();
40996
+ return writer;
40997
+ };
40998
+
40999
+ /**
41000
+ * Encodes the specified Output message, length delimited. Does not implicitly {@link Output.verify|verify} messages.
41001
+ * @function encodeDelimited
41002
+ * @memberof Output
41003
+ * @static
41004
+ * @param {IOutput} message Output message or plain object to encode
41005
+ * @param {$protobuf.Writer} [writer] Writer to encode to
41006
+ * @returns {$protobuf.Writer} Writer
41007
+ */
41008
+ Output.encodeDelimited = function encodeDelimited(message, writer) {
41009
+ return this.encode(message, writer).ldelim();
41010
+ };
41011
+
41012
+ /**
41013
+ * Decodes an Output message from the specified reader or buffer.
41014
+ * @function decode
41015
+ * @memberof Output
41016
+ * @static
41017
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
41018
+ * @param {number} [length] Message length if known beforehand
41019
+ * @returns {Output} Output
41020
+ * @throws {Error} If the payload is not a reader or valid buffer
41021
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
41022
+ */
41023
+ Output.decode = function decode(reader, length) {
41024
+ if (!(reader instanceof $Reader))
41025
+ reader = $Reader.create(reader);
41026
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.Output(), key;
41027
+ while (reader.pos < end) {
41028
+ var tag = reader.uint32();
41029
+ switch (tag >>> 3) {
41030
+ case 1:
41031
+ reader.skip().pos++;
41032
+ if (message.path === $util.emptyObject)
41033
+ message.path = {};
41034
+ key = reader.string();
41035
+ reader.pos++;
41036
+ message.path[key] = reader.string();
41037
+ break;
41038
+ default:
41039
+ reader.skipType(tag & 7);
41040
+ break;
41041
+ }
41042
+ }
41043
+ return message;
41044
+ };
41045
+
41046
+ /**
41047
+ * Decodes an Output message from the specified reader or buffer, length delimited.
41048
+ * @function decodeDelimited
41049
+ * @memberof Output
41050
+ * @static
41051
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
41052
+ * @returns {Output} Output
41053
+ * @throws {Error} If the payload is not a reader or valid buffer
41054
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
41055
+ */
41056
+ Output.decodeDelimited = function decodeDelimited(reader) {
41057
+ if (!(reader instanceof $Reader))
41058
+ reader = new $Reader(reader);
41059
+ return this.decode(reader, reader.uint32());
41060
+ };
41061
+
41062
+ /**
41063
+ * Verifies an Output message.
41064
+ * @function verify
41065
+ * @memberof Output
41066
+ * @static
41067
+ * @param {Object.<string,*>} message Plain object to verify
41068
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
41069
+ */
41070
+ Output.verify = function verify(message) {
41071
+ if (typeof message !== "object" || message === null)
41072
+ return "object expected";
41073
+ if (message.path != null && message.hasOwnProperty("path")) {
41074
+ if (!$util.isObject(message.path))
41075
+ return "path: object expected";
41076
+ var key = Object.keys(message.path);
41077
+ for (var i = 0; i < key.length; ++i)
41078
+ if (!$util.isString(message.path[key[i]]))
41079
+ return "path: string{k:string} expected";
41080
+ }
41081
+ return null;
41082
+ };
41083
+
41084
+ /**
41085
+ * Creates an Output message from a plain object. Also converts values to their respective internal types.
41086
+ * @function fromObject
41087
+ * @memberof Output
41088
+ * @static
41089
+ * @param {Object.<string,*>} object Plain object
41090
+ * @returns {Output} Output
41091
+ */
41092
+ Output.fromObject = function fromObject(object) {
41093
+ if (object instanceof $root.Output)
41094
+ return object;
41095
+ var message = new $root.Output();
41096
+ if (object.path) {
41097
+ if (typeof object.path !== "object")
41098
+ throw TypeError(".Output.path: object expected");
41099
+ message.path = {};
41100
+ for (var keys = Object.keys(object.path), i = 0; i < keys.length; ++i)
41101
+ message.path[keys[i]] = String(object.path[keys[i]]);
41102
+ }
41103
+ return message;
41104
+ };
41105
+
41106
+ /**
41107
+ * Creates a plain object from an Output message. Also converts values to other types if specified.
41108
+ * @function toObject
41109
+ * @memberof Output
41110
+ * @static
41111
+ * @param {Output} message Output
41112
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
41113
+ * @returns {Object.<string,*>} Plain object
41114
+ */
41115
+ Output.toObject = function toObject(message, options) {
41116
+ if (!options)
41117
+ options = {};
41118
+ var object = {};
41119
+ if (options.objects || options.defaults)
41120
+ object.path = {};
41121
+ var keys2;
41122
+ if (message.path && (keys2 = Object.keys(message.path)).length) {
41123
+ object.path = {};
41124
+ for (var j = 0; j < keys2.length; ++j)
41125
+ object.path[keys2[j]] = message.path[keys2[j]];
41126
+ }
41127
+ return object;
41128
+ };
41129
+
41130
+ /**
41131
+ * Converts this Output to JSON.
41132
+ * @function toJSON
41133
+ * @memberof Output
41134
+ * @instance
41135
+ * @returns {Object.<string,*>} JSON object
41136
+ */
41137
+ Output.prototype.toJSON = function toJSON() {
41138
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
41139
+ };
41140
+
41141
+ return Output;
41142
+ })();
41143
+
40848
41144
  $root.CreateSleepcastVariant = (function() {
40849
41145
 
40850
41146
  /**
@@ -40852,7 +41148,7 @@ $root.CreateSleepcastVariant = (function() {
40852
41148
  * @exports ICreateSleepcastVariant
40853
41149
  * @interface ICreateSleepcastVariant
40854
41150
  * @property {number|null} [sleepcastId] CreateSleepcastVariant sleepcastId
40855
- * @property {string|null} [recipeJson] CreateSleepcastVariant recipeJson
41151
+ * @property {Object.<string,string>|null} [recipes] CreateSleepcastVariant recipes
40856
41152
  * @property {string|null} [inputDir] CreateSleepcastVariant inputDir
40857
41153
  * @property {string|null} [outputDir] CreateSleepcastVariant outputDir
40858
41154
  */
@@ -40866,6 +41162,7 @@ $root.CreateSleepcastVariant = (function() {
40866
41162
  * @param {ICreateSleepcastVariant=} [properties] Properties to set
40867
41163
  */
40868
41164
  function CreateSleepcastVariant(properties) {
41165
+ this.recipes = {};
40869
41166
  if (properties)
40870
41167
  for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
40871
41168
  if (properties[keys[i]] != null)
@@ -40881,12 +41178,12 @@ $root.CreateSleepcastVariant = (function() {
40881
41178
  CreateSleepcastVariant.prototype.sleepcastId = 0;
40882
41179
 
40883
41180
  /**
40884
- * CreateSleepcastVariant recipeJson.
40885
- * @member {string} recipeJson
41181
+ * CreateSleepcastVariant recipes.
41182
+ * @member {Object.<string,string>} recipes
40886
41183
  * @memberof CreateSleepcastVariant
40887
41184
  * @instance
40888
41185
  */
40889
- CreateSleepcastVariant.prototype.recipeJson = "";
41186
+ CreateSleepcastVariant.prototype.recipes = $util.emptyObject;
40890
41187
 
40891
41188
  /**
40892
41189
  * CreateSleepcastVariant inputDir.
@@ -40930,8 +41227,9 @@ $root.CreateSleepcastVariant = (function() {
40930
41227
  writer = $Writer.create();
40931
41228
  if (message.sleepcastId != null && message.hasOwnProperty("sleepcastId"))
40932
41229
  writer.uint32(/* id 1, wireType 0 =*/8).int32(message.sleepcastId);
40933
- if (message.recipeJson != null && message.hasOwnProperty("recipeJson"))
40934
- writer.uint32(/* id 2, wireType 2 =*/18).string(message.recipeJson);
41230
+ if (message.recipes != null && message.hasOwnProperty("recipes"))
41231
+ for (var keys = Object.keys(message.recipes), i = 0; i < keys.length; ++i)
41232
+ 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();
40935
41233
  if (message.inputDir != null && message.hasOwnProperty("inputDir"))
40936
41234
  writer.uint32(/* id 3, wireType 2 =*/26).string(message.inputDir);
40937
41235
  if (message.outputDir != null && message.hasOwnProperty("outputDir"))
@@ -40966,7 +41264,7 @@ $root.CreateSleepcastVariant = (function() {
40966
41264
  CreateSleepcastVariant.decode = function decode(reader, length) {
40967
41265
  if (!(reader instanceof $Reader))
40968
41266
  reader = $Reader.create(reader);
40969
- var end = length === undefined ? reader.len : reader.pos + length, message = new $root.CreateSleepcastVariant();
41267
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.CreateSleepcastVariant(), key;
40970
41268
  while (reader.pos < end) {
40971
41269
  var tag = reader.uint32();
40972
41270
  switch (tag >>> 3) {
@@ -40974,7 +41272,12 @@ $root.CreateSleepcastVariant = (function() {
40974
41272
  message.sleepcastId = reader.int32();
40975
41273
  break;
40976
41274
  case 2:
40977
- message.recipeJson = reader.string();
41275
+ reader.skip().pos++;
41276
+ if (message.recipes === $util.emptyObject)
41277
+ message.recipes = {};
41278
+ key = reader.string();
41279
+ reader.pos++;
41280
+ message.recipes[key] = reader.string();
40978
41281
  break;
40979
41282
  case 3:
40980
41283
  message.inputDir = reader.string();
@@ -41020,9 +41323,14 @@ $root.CreateSleepcastVariant = (function() {
41020
41323
  if (message.sleepcastId != null && message.hasOwnProperty("sleepcastId"))
41021
41324
  if (!$util.isInteger(message.sleepcastId))
41022
41325
  return "sleepcastId: integer expected";
41023
- if (message.recipeJson != null && message.hasOwnProperty("recipeJson"))
41024
- if (!$util.isString(message.recipeJson))
41025
- return "recipeJson: string expected";
41326
+ if (message.recipes != null && message.hasOwnProperty("recipes")) {
41327
+ if (!$util.isObject(message.recipes))
41328
+ return "recipes: object expected";
41329
+ var key = Object.keys(message.recipes);
41330
+ for (var i = 0; i < key.length; ++i)
41331
+ if (!$util.isString(message.recipes[key[i]]))
41332
+ return "recipes: string{k:string} expected";
41333
+ }
41026
41334
  if (message.inputDir != null && message.hasOwnProperty("inputDir"))
41027
41335
  if (!$util.isString(message.inputDir))
41028
41336
  return "inputDir: string expected";
@@ -41046,8 +41354,13 @@ $root.CreateSleepcastVariant = (function() {
41046
41354
  var message = new $root.CreateSleepcastVariant();
41047
41355
  if (object.sleepcastId != null)
41048
41356
  message.sleepcastId = object.sleepcastId | 0;
41049
- if (object.recipeJson != null)
41050
- message.recipeJson = String(object.recipeJson);
41357
+ if (object.recipes) {
41358
+ if (typeof object.recipes !== "object")
41359
+ throw TypeError(".CreateSleepcastVariant.recipes: object expected");
41360
+ message.recipes = {};
41361
+ for (var keys = Object.keys(object.recipes), i = 0; i < keys.length; ++i)
41362
+ message.recipes[keys[i]] = String(object.recipes[keys[i]]);
41363
+ }
41051
41364
  if (object.inputDir != null)
41052
41365
  message.inputDir = String(object.inputDir);
41053
41366
  if (object.outputDir != null)
@@ -41068,16 +41381,21 @@ $root.CreateSleepcastVariant = (function() {
41068
41381
  if (!options)
41069
41382
  options = {};
41070
41383
  var object = {};
41384
+ if (options.objects || options.defaults)
41385
+ object.recipes = {};
41071
41386
  if (options.defaults) {
41072
41387
  object.sleepcastId = 0;
41073
- object.recipeJson = "";
41074
41388
  object.inputDir = "";
41075
41389
  object.outputDir = "";
41076
41390
  }
41077
41391
  if (message.sleepcastId != null && message.hasOwnProperty("sleepcastId"))
41078
41392
  object.sleepcastId = message.sleepcastId;
41079
- if (message.recipeJson != null && message.hasOwnProperty("recipeJson"))
41080
- object.recipeJson = message.recipeJson;
41393
+ var keys2;
41394
+ if (message.recipes && (keys2 = Object.keys(message.recipes)).length) {
41395
+ object.recipes = {};
41396
+ for (var j = 0; j < keys2.length; ++j)
41397
+ object.recipes[keys2[j]] = message.recipes[keys2[j]];
41398
+ }
41081
41399
  if (message.inputDir != null && message.hasOwnProperty("inputDir"))
41082
41400
  object.inputDir = message.inputDir;
41083
41401
  if (message.outputDir != null && message.hasOwnProperty("outputDir"))
@@ -41106,7 +41424,7 @@ $root.SleepcastVariantCreated = (function() {
41106
41424
  * @exports ISleepcastVariantCreated
41107
41425
  * @interface ISleepcastVariantCreated
41108
41426
  * @property {number|null} [sleepcastId] SleepcastVariantCreated sleepcastId
41109
- * @property {Object.<string,string>|null} [outputs] SleepcastVariantCreated outputs
41427
+ * @property {Object.<string,IOutput>|null} [outputs] SleepcastVariantCreated outputs
41110
41428
  */
41111
41429
 
41112
41430
  /**
@@ -41135,7 +41453,7 @@ $root.SleepcastVariantCreated = (function() {
41135
41453
 
41136
41454
  /**
41137
41455
  * SleepcastVariantCreated outputs.
41138
- * @member {Object.<string,string>} outputs
41456
+ * @member {Object.<string,IOutput>} outputs
41139
41457
  * @memberof SleepcastVariantCreated
41140
41458
  * @instance
41141
41459
  */
@@ -41168,8 +41486,10 @@ $root.SleepcastVariantCreated = (function() {
41168
41486
  if (message.sleepcastId != null && message.hasOwnProperty("sleepcastId"))
41169
41487
  writer.uint32(/* id 1, wireType 0 =*/8).int32(message.sleepcastId);
41170
41488
  if (message.outputs != null && message.hasOwnProperty("outputs"))
41171
- for (var keys = Object.keys(message.outputs), i = 0; i < keys.length; ++i)
41172
- 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();
41489
+ for (var keys = Object.keys(message.outputs), i = 0; i < keys.length; ++i) {
41490
+ writer.uint32(/* id 2, wireType 2 =*/18).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]);
41491
+ $root.Output.encode(message.outputs[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim();
41492
+ }
41173
41493
  return writer;
41174
41494
  };
41175
41495
 
@@ -41213,7 +41533,7 @@ $root.SleepcastVariantCreated = (function() {
41213
41533
  message.outputs = {};
41214
41534
  key = reader.string();
41215
41535
  reader.pos++;
41216
- message.outputs[key] = reader.string();
41536
+ message.outputs[key] = $root.Output.decode(reader, reader.uint32());
41217
41537
  break;
41218
41538
  default:
41219
41539
  reader.skipType(tag & 7);
@@ -41257,9 +41577,11 @@ $root.SleepcastVariantCreated = (function() {
41257
41577
  if (!$util.isObject(message.outputs))
41258
41578
  return "outputs: object expected";
41259
41579
  var key = Object.keys(message.outputs);
41260
- for (var i = 0; i < key.length; ++i)
41261
- if (!$util.isString(message.outputs[key[i]]))
41262
- return "outputs: string{k:string} expected";
41580
+ for (var i = 0; i < key.length; ++i) {
41581
+ var error = $root.Output.verify(message.outputs[key[i]]);
41582
+ if (error)
41583
+ return "outputs." + error;
41584
+ }
41263
41585
  }
41264
41586
  return null;
41265
41587
  };
@@ -41282,8 +41604,11 @@ $root.SleepcastVariantCreated = (function() {
41282
41604
  if (typeof object.outputs !== "object")
41283
41605
  throw TypeError(".SleepcastVariantCreated.outputs: object expected");
41284
41606
  message.outputs = {};
41285
- for (var keys = Object.keys(object.outputs), i = 0; i < keys.length; ++i)
41286
- message.outputs[keys[i]] = String(object.outputs[keys[i]]);
41607
+ for (var keys = Object.keys(object.outputs), i = 0; i < keys.length; ++i) {
41608
+ if (typeof object.outputs[keys[i]] !== "object")
41609
+ throw TypeError(".SleepcastVariantCreated.outputs: object expected");
41610
+ message.outputs[keys[i]] = $root.Output.fromObject(object.outputs[keys[i]]);
41611
+ }
41287
41612
  }
41288
41613
  return message;
41289
41614
  };
@@ -41311,7 +41636,7 @@ $root.SleepcastVariantCreated = (function() {
41311
41636
  if (message.outputs && (keys2 = Object.keys(message.outputs)).length) {
41312
41637
  object.outputs = {};
41313
41638
  for (var j = 0; j < keys2.length; ++j)
41314
- object.outputs[keys2[j]] = message.outputs[keys2[j]];
41639
+ object.outputs[keys2[j]] = $root.Output.toObject(message.outputs[keys2[j]], options);
41315
41640
  }
41316
41641
  return object;
41317
41642
  };
@@ -41337,7 +41662,7 @@ $root.SleepcastCreated = (function() {
41337
41662
  * @exports ISleepcastCreated
41338
41663
  * @interface ISleepcastCreated
41339
41664
  * @property {string|null} [slug] SleepcastCreated slug
41340
- * @property {string|null} [entityId] SleepcastCreated entityId
41665
+ * @property {number|null} [entityId] SleepcastCreated entityId
41341
41666
  * @property {number|null} [tileBackgroundMediaId] SleepcastCreated tileBackgroundMediaId
41342
41667
  * @property {Array.<contentful.ISlugReference>|null} [accessGroup] SleepcastCreated accessGroup
41343
41668
  * @property {number|Long|null} [createdAt] SleepcastCreated createdAt
@@ -41369,11 +41694,11 @@ $root.SleepcastCreated = (function() {
41369
41694
 
41370
41695
  /**
41371
41696
  * SleepcastCreated entityId.
41372
- * @member {string} entityId
41697
+ * @member {number} entityId
41373
41698
  * @memberof SleepcastCreated
41374
41699
  * @instance
41375
41700
  */
41376
- SleepcastCreated.prototype.entityId = "";
41701
+ SleepcastCreated.prototype.entityId = 0;
41377
41702
 
41378
41703
  /**
41379
41704
  * SleepcastCreated tileBackgroundMediaId.
@@ -41426,7 +41751,7 @@ $root.SleepcastCreated = (function() {
41426
41751
  if (message.slug != null && message.hasOwnProperty("slug"))
41427
41752
  writer.uint32(/* id 1, wireType 2 =*/10).string(message.slug);
41428
41753
  if (message.entityId != null && message.hasOwnProperty("entityId"))
41429
- writer.uint32(/* id 2, wireType 2 =*/18).string(message.entityId);
41754
+ writer.uint32(/* id 2, wireType 0 =*/16).uint32(message.entityId);
41430
41755
  if (message.tileBackgroundMediaId != null && message.hasOwnProperty("tileBackgroundMediaId"))
41431
41756
  writer.uint32(/* id 3, wireType 0 =*/24).uint32(message.tileBackgroundMediaId);
41432
41757
  if (message.accessGroup != null && message.accessGroup.length)
@@ -41472,7 +41797,7 @@ $root.SleepcastCreated = (function() {
41472
41797
  message.slug = reader.string();
41473
41798
  break;
41474
41799
  case 2:
41475
- message.entityId = reader.string();
41800
+ message.entityId = reader.uint32();
41476
41801
  break;
41477
41802
  case 3:
41478
41803
  message.tileBackgroundMediaId = reader.uint32();
@@ -41524,8 +41849,8 @@ $root.SleepcastCreated = (function() {
41524
41849
  if (!$util.isString(message.slug))
41525
41850
  return "slug: string expected";
41526
41851
  if (message.entityId != null && message.hasOwnProperty("entityId"))
41527
- if (!$util.isString(message.entityId))
41528
- return "entityId: string expected";
41852
+ if (!$util.isInteger(message.entityId))
41853
+ return "entityId: integer expected";
41529
41854
  if (message.tileBackgroundMediaId != null && message.hasOwnProperty("tileBackgroundMediaId"))
41530
41855
  if (!$util.isInteger(message.tileBackgroundMediaId))
41531
41856
  return "tileBackgroundMediaId: integer expected";
@@ -41559,7 +41884,7 @@ $root.SleepcastCreated = (function() {
41559
41884
  if (object.slug != null)
41560
41885
  message.slug = String(object.slug);
41561
41886
  if (object.entityId != null)
41562
- message.entityId = String(object.entityId);
41887
+ message.entityId = object.entityId >>> 0;
41563
41888
  if (object.tileBackgroundMediaId != null)
41564
41889
  message.tileBackgroundMediaId = object.tileBackgroundMediaId >>> 0;
41565
41890
  if (object.accessGroup) {
@@ -41601,7 +41926,7 @@ $root.SleepcastCreated = (function() {
41601
41926
  object.accessGroup = [];
41602
41927
  if (options.defaults) {
41603
41928
  object.slug = "";
41604
- object.entityId = "";
41929
+ object.entityId = 0;
41605
41930
  object.tileBackgroundMediaId = 0;
41606
41931
  if ($util.Long) {
41607
41932
  var long = new $util.Long(0, 0, true);
@@ -41649,7 +41974,7 @@ $root.SleepcastUpdated = (function() {
41649
41974
  * @exports ISleepcastUpdated
41650
41975
  * @interface ISleepcastUpdated
41651
41976
  * @property {string|null} [slug] SleepcastUpdated slug
41652
- * @property {string|null} [entityId] SleepcastUpdated entityId
41977
+ * @property {number|null} [entityId] SleepcastUpdated entityId
41653
41978
  * @property {number|null} [tileBackgroundMediaId] SleepcastUpdated tileBackgroundMediaId
41654
41979
  * @property {Array.<contentful.ISlugReference>|null} [accessGroup] SleepcastUpdated accessGroup
41655
41980
  * @property {number|Long|null} [updatedAt] SleepcastUpdated updatedAt
@@ -41681,11 +42006,11 @@ $root.SleepcastUpdated = (function() {
41681
42006
 
41682
42007
  /**
41683
42008
  * SleepcastUpdated entityId.
41684
- * @member {string} entityId
42009
+ * @member {number} entityId
41685
42010
  * @memberof SleepcastUpdated
41686
42011
  * @instance
41687
42012
  */
41688
- SleepcastUpdated.prototype.entityId = "";
42013
+ SleepcastUpdated.prototype.entityId = 0;
41689
42014
 
41690
42015
  /**
41691
42016
  * SleepcastUpdated tileBackgroundMediaId.
@@ -41738,7 +42063,7 @@ $root.SleepcastUpdated = (function() {
41738
42063
  if (message.slug != null && message.hasOwnProperty("slug"))
41739
42064
  writer.uint32(/* id 1, wireType 2 =*/10).string(message.slug);
41740
42065
  if (message.entityId != null && message.hasOwnProperty("entityId"))
41741
- writer.uint32(/* id 2, wireType 2 =*/18).string(message.entityId);
42066
+ writer.uint32(/* id 2, wireType 0 =*/16).uint32(message.entityId);
41742
42067
  if (message.tileBackgroundMediaId != null && message.hasOwnProperty("tileBackgroundMediaId"))
41743
42068
  writer.uint32(/* id 3, wireType 0 =*/24).uint32(message.tileBackgroundMediaId);
41744
42069
  if (message.accessGroup != null && message.accessGroup.length)
@@ -41784,7 +42109,7 @@ $root.SleepcastUpdated = (function() {
41784
42109
  message.slug = reader.string();
41785
42110
  break;
41786
42111
  case 2:
41787
- message.entityId = reader.string();
42112
+ message.entityId = reader.uint32();
41788
42113
  break;
41789
42114
  case 3:
41790
42115
  message.tileBackgroundMediaId = reader.uint32();
@@ -41836,8 +42161,8 @@ $root.SleepcastUpdated = (function() {
41836
42161
  if (!$util.isString(message.slug))
41837
42162
  return "slug: string expected";
41838
42163
  if (message.entityId != null && message.hasOwnProperty("entityId"))
41839
- if (!$util.isString(message.entityId))
41840
- return "entityId: string expected";
42164
+ if (!$util.isInteger(message.entityId))
42165
+ return "entityId: integer expected";
41841
42166
  if (message.tileBackgroundMediaId != null && message.hasOwnProperty("tileBackgroundMediaId"))
41842
42167
  if (!$util.isInteger(message.tileBackgroundMediaId))
41843
42168
  return "tileBackgroundMediaId: integer expected";
@@ -41871,7 +42196,7 @@ $root.SleepcastUpdated = (function() {
41871
42196
  if (object.slug != null)
41872
42197
  message.slug = String(object.slug);
41873
42198
  if (object.entityId != null)
41874
- message.entityId = String(object.entityId);
42199
+ message.entityId = object.entityId >>> 0;
41875
42200
  if (object.tileBackgroundMediaId != null)
41876
42201
  message.tileBackgroundMediaId = object.tileBackgroundMediaId >>> 0;
41877
42202
  if (object.accessGroup) {
@@ -41913,7 +42238,7 @@ $root.SleepcastUpdated = (function() {
41913
42238
  object.accessGroup = [];
41914
42239
  if (options.defaults) {
41915
42240
  object.slug = "";
41916
- object.entityId = "";
42241
+ object.entityId = 0;
41917
42242
  object.tileBackgroundMediaId = 0;
41918
42243
  if ($util.Long) {
41919
42244
  var long = new $util.Long(0, 0, true);
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.199.0"
19
+ "version": "1.201.0"
20
20
  }