@headspace/protos-events 1.199.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.
package/lib/index.d.ts CHANGED
@@ -14786,14 +14786,104 @@ export class AssignmentAllocationBatchPushed implements IAssignmentAllocationBat
14786
14786
  public toJSON(): { [k: string]: any };
14787
14787
  }
14788
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
+
14789
14879
  /** Properties of a CreateSleepcastVariant. */
14790
14880
  export interface ICreateSleepcastVariant {
14791
14881
 
14792
14882
  /** CreateSleepcastVariant sleepcastId */
14793
14883
  sleepcastId?: (number|null);
14794
14884
 
14795
- /** CreateSleepcastVariant recipeJson */
14796
- recipeJson?: (string|null);
14885
+ /** CreateSleepcastVariant recipes */
14886
+ recipes?: ({ [k: string]: string }|null);
14797
14887
 
14798
14888
  /** CreateSleepcastVariant inputDir */
14799
14889
  inputDir?: (string|null);
@@ -14814,8 +14904,8 @@ export class CreateSleepcastVariant implements ICreateSleepcastVariant {
14814
14904
  /** CreateSleepcastVariant sleepcastId. */
14815
14905
  public sleepcastId: number;
14816
14906
 
14817
- /** CreateSleepcastVariant recipeJson. */
14818
- public recipeJson: string;
14907
+ /** CreateSleepcastVariant recipes. */
14908
+ public recipes: { [k: string]: string };
14819
14909
 
14820
14910
  /** CreateSleepcastVariant inputDir. */
14821
14911
  public inputDir: string;
@@ -14901,7 +14991,7 @@ export interface ISleepcastVariantCreated {
14901
14991
  sleepcastId?: (number|null);
14902
14992
 
14903
14993
  /** SleepcastVariantCreated outputs */
14904
- outputs?: ({ [k: string]: string }|null);
14994
+ outputs?: ({ [k: string]: IOutput }|null);
14905
14995
  }
14906
14996
 
14907
14997
  /** Represents a SleepcastVariantCreated. */
@@ -14917,7 +15007,7 @@ export class SleepcastVariantCreated implements ISleepcastVariantCreated {
14917
15007
  public sleepcastId: number;
14918
15008
 
14919
15009
  /** SleepcastVariantCreated outputs. */
14920
- public outputs: { [k: string]: string };
15010
+ public outputs: { [k: string]: IOutput };
14921
15011
 
14922
15012
  /**
14923
15013
  * Creates a new SleepcastVariantCreated instance using the specified properties.
package/lib/index.js CHANGED
@@ -40845,6 +40845,214 @@ $root.AssignmentAllocationBatchPushed = (function() {
40845
40845
  return AssignmentAllocationBatchPushed;
40846
40846
  })();
40847
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
+
40848
41056
  $root.CreateSleepcastVariant = (function() {
40849
41057
 
40850
41058
  /**
@@ -40852,7 +41060,7 @@ $root.CreateSleepcastVariant = (function() {
40852
41060
  * @exports ICreateSleepcastVariant
40853
41061
  * @interface ICreateSleepcastVariant
40854
41062
  * @property {number|null} [sleepcastId] CreateSleepcastVariant sleepcastId
40855
- * @property {string|null} [recipeJson] CreateSleepcastVariant recipeJson
41063
+ * @property {Object.<string,string>|null} [recipes] CreateSleepcastVariant recipes
40856
41064
  * @property {string|null} [inputDir] CreateSleepcastVariant inputDir
40857
41065
  * @property {string|null} [outputDir] CreateSleepcastVariant outputDir
40858
41066
  */
@@ -40866,6 +41074,7 @@ $root.CreateSleepcastVariant = (function() {
40866
41074
  * @param {ICreateSleepcastVariant=} [properties] Properties to set
40867
41075
  */
40868
41076
  function CreateSleepcastVariant(properties) {
41077
+ this.recipes = {};
40869
41078
  if (properties)
40870
41079
  for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
40871
41080
  if (properties[keys[i]] != null)
@@ -40881,12 +41090,12 @@ $root.CreateSleepcastVariant = (function() {
40881
41090
  CreateSleepcastVariant.prototype.sleepcastId = 0;
40882
41091
 
40883
41092
  /**
40884
- * CreateSleepcastVariant recipeJson.
40885
- * @member {string} recipeJson
41093
+ * CreateSleepcastVariant recipes.
41094
+ * @member {Object.<string,string>} recipes
40886
41095
  * @memberof CreateSleepcastVariant
40887
41096
  * @instance
40888
41097
  */
40889
- CreateSleepcastVariant.prototype.recipeJson = "";
41098
+ CreateSleepcastVariant.prototype.recipes = $util.emptyObject;
40890
41099
 
40891
41100
  /**
40892
41101
  * CreateSleepcastVariant inputDir.
@@ -40930,8 +41139,9 @@ $root.CreateSleepcastVariant = (function() {
40930
41139
  writer = $Writer.create();
40931
41140
  if (message.sleepcastId != null && message.hasOwnProperty("sleepcastId"))
40932
41141
  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);
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();
40935
41145
  if (message.inputDir != null && message.hasOwnProperty("inputDir"))
40936
41146
  writer.uint32(/* id 3, wireType 2 =*/26).string(message.inputDir);
40937
41147
  if (message.outputDir != null && message.hasOwnProperty("outputDir"))
@@ -40966,7 +41176,7 @@ $root.CreateSleepcastVariant = (function() {
40966
41176
  CreateSleepcastVariant.decode = function decode(reader, length) {
40967
41177
  if (!(reader instanceof $Reader))
40968
41178
  reader = $Reader.create(reader);
40969
- 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;
40970
41180
  while (reader.pos < end) {
40971
41181
  var tag = reader.uint32();
40972
41182
  switch (tag >>> 3) {
@@ -40974,7 +41184,12 @@ $root.CreateSleepcastVariant = (function() {
40974
41184
  message.sleepcastId = reader.int32();
40975
41185
  break;
40976
41186
  case 2:
40977
- 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();
40978
41193
  break;
40979
41194
  case 3:
40980
41195
  message.inputDir = reader.string();
@@ -41020,9 +41235,14 @@ $root.CreateSleepcastVariant = (function() {
41020
41235
  if (message.sleepcastId != null && message.hasOwnProperty("sleepcastId"))
41021
41236
  if (!$util.isInteger(message.sleepcastId))
41022
41237
  return "sleepcastId: integer expected";
41023
- if (message.recipeJson != null && message.hasOwnProperty("recipeJson"))
41024
- if (!$util.isString(message.recipeJson))
41025
- 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
+ }
41026
41246
  if (message.inputDir != null && message.hasOwnProperty("inputDir"))
41027
41247
  if (!$util.isString(message.inputDir))
41028
41248
  return "inputDir: string expected";
@@ -41046,8 +41266,13 @@ $root.CreateSleepcastVariant = (function() {
41046
41266
  var message = new $root.CreateSleepcastVariant();
41047
41267
  if (object.sleepcastId != null)
41048
41268
  message.sleepcastId = object.sleepcastId | 0;
41049
- if (object.recipeJson != null)
41050
- 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
+ }
41051
41276
  if (object.inputDir != null)
41052
41277
  message.inputDir = String(object.inputDir);
41053
41278
  if (object.outputDir != null)
@@ -41068,16 +41293,21 @@ $root.CreateSleepcastVariant = (function() {
41068
41293
  if (!options)
41069
41294
  options = {};
41070
41295
  var object = {};
41296
+ if (options.objects || options.defaults)
41297
+ object.recipes = {};
41071
41298
  if (options.defaults) {
41072
41299
  object.sleepcastId = 0;
41073
- object.recipeJson = "";
41074
41300
  object.inputDir = "";
41075
41301
  object.outputDir = "";
41076
41302
  }
41077
41303
  if (message.sleepcastId != null && message.hasOwnProperty("sleepcastId"))
41078
41304
  object.sleepcastId = message.sleepcastId;
41079
- if (message.recipeJson != null && message.hasOwnProperty("recipeJson"))
41080
- 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
+ }
41081
41311
  if (message.inputDir != null && message.hasOwnProperty("inputDir"))
41082
41312
  object.inputDir = message.inputDir;
41083
41313
  if (message.outputDir != null && message.hasOwnProperty("outputDir"))
@@ -41106,7 +41336,7 @@ $root.SleepcastVariantCreated = (function() {
41106
41336
  * @exports ISleepcastVariantCreated
41107
41337
  * @interface ISleepcastVariantCreated
41108
41338
  * @property {number|null} [sleepcastId] SleepcastVariantCreated sleepcastId
41109
- * @property {Object.<string,string>|null} [outputs] SleepcastVariantCreated outputs
41339
+ * @property {Object.<string,IOutput>|null} [outputs] SleepcastVariantCreated outputs
41110
41340
  */
41111
41341
 
41112
41342
  /**
@@ -41135,7 +41365,7 @@ $root.SleepcastVariantCreated = (function() {
41135
41365
 
41136
41366
  /**
41137
41367
  * SleepcastVariantCreated outputs.
41138
- * @member {Object.<string,string>} outputs
41368
+ * @member {Object.<string,IOutput>} outputs
41139
41369
  * @memberof SleepcastVariantCreated
41140
41370
  * @instance
41141
41371
  */
@@ -41168,8 +41398,10 @@ $root.SleepcastVariantCreated = (function() {
41168
41398
  if (message.sleepcastId != null && message.hasOwnProperty("sleepcastId"))
41169
41399
  writer.uint32(/* id 1, wireType 0 =*/8).int32(message.sleepcastId);
41170
41400
  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();
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
+ }
41173
41405
  return writer;
41174
41406
  };
41175
41407
 
@@ -41213,7 +41445,7 @@ $root.SleepcastVariantCreated = (function() {
41213
41445
  message.outputs = {};
41214
41446
  key = reader.string();
41215
41447
  reader.pos++;
41216
- message.outputs[key] = reader.string();
41448
+ message.outputs[key] = $root.Output.decode(reader, reader.uint32());
41217
41449
  break;
41218
41450
  default:
41219
41451
  reader.skipType(tag & 7);
@@ -41257,9 +41489,11 @@ $root.SleepcastVariantCreated = (function() {
41257
41489
  if (!$util.isObject(message.outputs))
41258
41490
  return "outputs: object expected";
41259
41491
  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";
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
+ }
41263
41497
  }
41264
41498
  return null;
41265
41499
  };
@@ -41282,8 +41516,11 @@ $root.SleepcastVariantCreated = (function() {
41282
41516
  if (typeof object.outputs !== "object")
41283
41517
  throw TypeError(".SleepcastVariantCreated.outputs: object expected");
41284
41518
  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]]);
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
+ }
41287
41524
  }
41288
41525
  return message;
41289
41526
  };
@@ -41311,7 +41548,7 @@ $root.SleepcastVariantCreated = (function() {
41311
41548
  if (message.outputs && (keys2 = Object.keys(message.outputs)).length) {
41312
41549
  object.outputs = {};
41313
41550
  for (var j = 0; j < keys2.length; ++j)
41314
- object.outputs[keys2[j]] = message.outputs[keys2[j]];
41551
+ object.outputs[keys2[j]] = $root.Output.toObject(message.outputs[keys2[j]], options);
41315
41552
  }
41316
41553
  return object;
41317
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.199.0"
19
+ "version": "1.200.0"
20
20
  }