@headspace/protos-events 1.196.0 → 1.198.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
@@ -14798,6 +14798,210 @@ export class AssignmentAllocationBatchPushed implements IAssignmentAllocationBat
14798
14798
  public toJSON(): { [k: string]: any };
14799
14799
  }
14800
14800
 
14801
+ /** Properties of a CreateSleepcastVariant. */
14802
+ export interface ICreateSleepcastVariant {
14803
+
14804
+ /** CreateSleepcastVariant sleepcastId */
14805
+ sleepcastId?: (number|null);
14806
+
14807
+ /** CreateSleepcastVariant recipeJson */
14808
+ recipeJson?: (string|null);
14809
+
14810
+ /** CreateSleepcastVariant inputDir */
14811
+ inputDir?: (string|null);
14812
+
14813
+ /** CreateSleepcastVariant outputDir */
14814
+ outputDir?: (string|null);
14815
+ }
14816
+
14817
+ /** Represents a CreateSleepcastVariant. */
14818
+ export class CreateSleepcastVariant implements ICreateSleepcastVariant {
14819
+
14820
+ /**
14821
+ * Constructs a new CreateSleepcastVariant.
14822
+ * @param [properties] Properties to set
14823
+ */
14824
+ constructor(properties?: ICreateSleepcastVariant);
14825
+
14826
+ /** CreateSleepcastVariant sleepcastId. */
14827
+ public sleepcastId: number;
14828
+
14829
+ /** CreateSleepcastVariant recipeJson. */
14830
+ public recipeJson: string;
14831
+
14832
+ /** CreateSleepcastVariant inputDir. */
14833
+ public inputDir: string;
14834
+
14835
+ /** CreateSleepcastVariant outputDir. */
14836
+ public outputDir: string;
14837
+
14838
+ /**
14839
+ * Creates a new CreateSleepcastVariant instance using the specified properties.
14840
+ * @param [properties] Properties to set
14841
+ * @returns CreateSleepcastVariant instance
14842
+ */
14843
+ public static create(properties?: ICreateSleepcastVariant): CreateSleepcastVariant;
14844
+
14845
+ /**
14846
+ * Encodes the specified CreateSleepcastVariant message. Does not implicitly {@link CreateSleepcastVariant.verify|verify} messages.
14847
+ * @param message CreateSleepcastVariant message or plain object to encode
14848
+ * @param [writer] Writer to encode to
14849
+ * @returns Writer
14850
+ */
14851
+ public static encode(message: ICreateSleepcastVariant, writer?: $protobuf.Writer): $protobuf.Writer;
14852
+
14853
+ /**
14854
+ * Encodes the specified CreateSleepcastVariant message, length delimited. Does not implicitly {@link CreateSleepcastVariant.verify|verify} messages.
14855
+ * @param message CreateSleepcastVariant message or plain object to encode
14856
+ * @param [writer] Writer to encode to
14857
+ * @returns Writer
14858
+ */
14859
+ public static encodeDelimited(message: ICreateSleepcastVariant, writer?: $protobuf.Writer): $protobuf.Writer;
14860
+
14861
+ /**
14862
+ * Decodes a CreateSleepcastVariant message from the specified reader or buffer.
14863
+ * @param reader Reader or buffer to decode from
14864
+ * @param [length] Message length if known beforehand
14865
+ * @returns CreateSleepcastVariant
14866
+ * @throws {Error} If the payload is not a reader or valid buffer
14867
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
14868
+ */
14869
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): CreateSleepcastVariant;
14870
+
14871
+ /**
14872
+ * Decodes a CreateSleepcastVariant message from the specified reader or buffer, length delimited.
14873
+ * @param reader Reader or buffer to decode from
14874
+ * @returns CreateSleepcastVariant
14875
+ * @throws {Error} If the payload is not a reader or valid buffer
14876
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
14877
+ */
14878
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): CreateSleepcastVariant;
14879
+
14880
+ /**
14881
+ * Verifies a CreateSleepcastVariant message.
14882
+ * @param message Plain object to verify
14883
+ * @returns `null` if valid, otherwise the reason why it is not
14884
+ */
14885
+ public static verify(message: { [k: string]: any }): (string|null);
14886
+
14887
+ /**
14888
+ * Creates a CreateSleepcastVariant message from a plain object. Also converts values to their respective internal types.
14889
+ * @param object Plain object
14890
+ * @returns CreateSleepcastVariant
14891
+ */
14892
+ public static fromObject(object: { [k: string]: any }): CreateSleepcastVariant;
14893
+
14894
+ /**
14895
+ * Creates a plain object from a CreateSleepcastVariant message. Also converts values to other types if specified.
14896
+ * @param message CreateSleepcastVariant
14897
+ * @param [options] Conversion options
14898
+ * @returns Plain object
14899
+ */
14900
+ public static toObject(message: CreateSleepcastVariant, options?: $protobuf.IConversionOptions): { [k: string]: any };
14901
+
14902
+ /**
14903
+ * Converts this CreateSleepcastVariant to JSON.
14904
+ * @returns JSON object
14905
+ */
14906
+ public toJSON(): { [k: string]: any };
14907
+ }
14908
+
14909
+ /** Properties of a SleepcastVariantCreated. */
14910
+ export interface ISleepcastVariantCreated {
14911
+
14912
+ /** SleepcastVariantCreated sleepcastId */
14913
+ sleepcastId?: (number|null);
14914
+
14915
+ /** SleepcastVariantCreated outputs */
14916
+ outputs?: ({ [k: string]: string }|null);
14917
+ }
14918
+
14919
+ /** Represents a SleepcastVariantCreated. */
14920
+ export class SleepcastVariantCreated implements ISleepcastVariantCreated {
14921
+
14922
+ /**
14923
+ * Constructs a new SleepcastVariantCreated.
14924
+ * @param [properties] Properties to set
14925
+ */
14926
+ constructor(properties?: ISleepcastVariantCreated);
14927
+
14928
+ /** SleepcastVariantCreated sleepcastId. */
14929
+ public sleepcastId: number;
14930
+
14931
+ /** SleepcastVariantCreated outputs. */
14932
+ public outputs: { [k: string]: string };
14933
+
14934
+ /**
14935
+ * Creates a new SleepcastVariantCreated instance using the specified properties.
14936
+ * @param [properties] Properties to set
14937
+ * @returns SleepcastVariantCreated instance
14938
+ */
14939
+ public static create(properties?: ISleepcastVariantCreated): SleepcastVariantCreated;
14940
+
14941
+ /**
14942
+ * Encodes the specified SleepcastVariantCreated message. Does not implicitly {@link SleepcastVariantCreated.verify|verify} messages.
14943
+ * @param message SleepcastVariantCreated message or plain object to encode
14944
+ * @param [writer] Writer to encode to
14945
+ * @returns Writer
14946
+ */
14947
+ public static encode(message: ISleepcastVariantCreated, writer?: $protobuf.Writer): $protobuf.Writer;
14948
+
14949
+ /**
14950
+ * Encodes the specified SleepcastVariantCreated message, length delimited. Does not implicitly {@link SleepcastVariantCreated.verify|verify} messages.
14951
+ * @param message SleepcastVariantCreated message or plain object to encode
14952
+ * @param [writer] Writer to encode to
14953
+ * @returns Writer
14954
+ */
14955
+ public static encodeDelimited(message: ISleepcastVariantCreated, writer?: $protobuf.Writer): $protobuf.Writer;
14956
+
14957
+ /**
14958
+ * Decodes a SleepcastVariantCreated message from the specified reader or buffer.
14959
+ * @param reader Reader or buffer to decode from
14960
+ * @param [length] Message length if known beforehand
14961
+ * @returns SleepcastVariantCreated
14962
+ * @throws {Error} If the payload is not a reader or valid buffer
14963
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
14964
+ */
14965
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): SleepcastVariantCreated;
14966
+
14967
+ /**
14968
+ * Decodes a SleepcastVariantCreated message from the specified reader or buffer, length delimited.
14969
+ * @param reader Reader or buffer to decode from
14970
+ * @returns SleepcastVariantCreated
14971
+ * @throws {Error} If the payload is not a reader or valid buffer
14972
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
14973
+ */
14974
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): SleepcastVariantCreated;
14975
+
14976
+ /**
14977
+ * Verifies a SleepcastVariantCreated message.
14978
+ * @param message Plain object to verify
14979
+ * @returns `null` if valid, otherwise the reason why it is not
14980
+ */
14981
+ public static verify(message: { [k: string]: any }): (string|null);
14982
+
14983
+ /**
14984
+ * Creates a SleepcastVariantCreated message from a plain object. Also converts values to their respective internal types.
14985
+ * @param object Plain object
14986
+ * @returns SleepcastVariantCreated
14987
+ */
14988
+ public static fromObject(object: { [k: string]: any }): SleepcastVariantCreated;
14989
+
14990
+ /**
14991
+ * Creates a plain object from a SleepcastVariantCreated message. Also converts values to other types if specified.
14992
+ * @param message SleepcastVariantCreated
14993
+ * @param [options] Conversion options
14994
+ * @returns Plain object
14995
+ */
14996
+ public static toObject(message: SleepcastVariantCreated, options?: $protobuf.IConversionOptions): { [k: string]: any };
14997
+
14998
+ /**
14999
+ * Converts this SleepcastVariantCreated to JSON.
15000
+ * @returns JSON object
15001
+ */
15002
+ public toJSON(): { [k: string]: any };
15003
+ }
15004
+
14801
15005
  /** Properties of a SleepcastCreated. */
14802
15006
  export interface ISleepcastCreated {
14803
15007
 
package/lib/index.js CHANGED
@@ -40889,6 +40889,491 @@ $root.AssignmentAllocationBatchPushed = (function() {
40889
40889
  return AssignmentAllocationBatchPushed;
40890
40890
  })();
40891
40891
 
40892
+ $root.CreateSleepcastVariant = (function() {
40893
+
40894
+ /**
40895
+ * Properties of a CreateSleepcastVariant.
40896
+ * @exports ICreateSleepcastVariant
40897
+ * @interface ICreateSleepcastVariant
40898
+ * @property {number|null} [sleepcastId] CreateSleepcastVariant sleepcastId
40899
+ * @property {string|null} [recipeJson] CreateSleepcastVariant recipeJson
40900
+ * @property {string|null} [inputDir] CreateSleepcastVariant inputDir
40901
+ * @property {string|null} [outputDir] CreateSleepcastVariant outputDir
40902
+ */
40903
+
40904
+ /**
40905
+ * Constructs a new CreateSleepcastVariant.
40906
+ * @exports CreateSleepcastVariant
40907
+ * @classdesc Represents a CreateSleepcastVariant.
40908
+ * @implements ICreateSleepcastVariant
40909
+ * @constructor
40910
+ * @param {ICreateSleepcastVariant=} [properties] Properties to set
40911
+ */
40912
+ function CreateSleepcastVariant(properties) {
40913
+ if (properties)
40914
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
40915
+ if (properties[keys[i]] != null)
40916
+ this[keys[i]] = properties[keys[i]];
40917
+ }
40918
+
40919
+ /**
40920
+ * CreateSleepcastVariant sleepcastId.
40921
+ * @member {number} sleepcastId
40922
+ * @memberof CreateSleepcastVariant
40923
+ * @instance
40924
+ */
40925
+ CreateSleepcastVariant.prototype.sleepcastId = 0;
40926
+
40927
+ /**
40928
+ * CreateSleepcastVariant recipeJson.
40929
+ * @member {string} recipeJson
40930
+ * @memberof CreateSleepcastVariant
40931
+ * @instance
40932
+ */
40933
+ CreateSleepcastVariant.prototype.recipeJson = "";
40934
+
40935
+ /**
40936
+ * CreateSleepcastVariant inputDir.
40937
+ * @member {string} inputDir
40938
+ * @memberof CreateSleepcastVariant
40939
+ * @instance
40940
+ */
40941
+ CreateSleepcastVariant.prototype.inputDir = "";
40942
+
40943
+ /**
40944
+ * CreateSleepcastVariant outputDir.
40945
+ * @member {string} outputDir
40946
+ * @memberof CreateSleepcastVariant
40947
+ * @instance
40948
+ */
40949
+ CreateSleepcastVariant.prototype.outputDir = "";
40950
+
40951
+ /**
40952
+ * Creates a new CreateSleepcastVariant instance using the specified properties.
40953
+ * @function create
40954
+ * @memberof CreateSleepcastVariant
40955
+ * @static
40956
+ * @param {ICreateSleepcastVariant=} [properties] Properties to set
40957
+ * @returns {CreateSleepcastVariant} CreateSleepcastVariant instance
40958
+ */
40959
+ CreateSleepcastVariant.create = function create(properties) {
40960
+ return new CreateSleepcastVariant(properties);
40961
+ };
40962
+
40963
+ /**
40964
+ * Encodes the specified CreateSleepcastVariant message. Does not implicitly {@link CreateSleepcastVariant.verify|verify} messages.
40965
+ * @function encode
40966
+ * @memberof CreateSleepcastVariant
40967
+ * @static
40968
+ * @param {ICreateSleepcastVariant} message CreateSleepcastVariant message or plain object to encode
40969
+ * @param {$protobuf.Writer} [writer] Writer to encode to
40970
+ * @returns {$protobuf.Writer} Writer
40971
+ */
40972
+ CreateSleepcastVariant.encode = function encode(message, writer) {
40973
+ if (!writer)
40974
+ writer = $Writer.create();
40975
+ if (message.sleepcastId != null && message.hasOwnProperty("sleepcastId"))
40976
+ 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);
40979
+ if (message.inputDir != null && message.hasOwnProperty("inputDir"))
40980
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.inputDir);
40981
+ if (message.outputDir != null && message.hasOwnProperty("outputDir"))
40982
+ writer.uint32(/* id 4, wireType 2 =*/34).string(message.outputDir);
40983
+ return writer;
40984
+ };
40985
+
40986
+ /**
40987
+ * Encodes the specified CreateSleepcastVariant message, length delimited. Does not implicitly {@link CreateSleepcastVariant.verify|verify} messages.
40988
+ * @function encodeDelimited
40989
+ * @memberof CreateSleepcastVariant
40990
+ * @static
40991
+ * @param {ICreateSleepcastVariant} message CreateSleepcastVariant message or plain object to encode
40992
+ * @param {$protobuf.Writer} [writer] Writer to encode to
40993
+ * @returns {$protobuf.Writer} Writer
40994
+ */
40995
+ CreateSleepcastVariant.encodeDelimited = function encodeDelimited(message, writer) {
40996
+ return this.encode(message, writer).ldelim();
40997
+ };
40998
+
40999
+ /**
41000
+ * Decodes a CreateSleepcastVariant message from the specified reader or buffer.
41001
+ * @function decode
41002
+ * @memberof CreateSleepcastVariant
41003
+ * @static
41004
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
41005
+ * @param {number} [length] Message length if known beforehand
41006
+ * @returns {CreateSleepcastVariant} CreateSleepcastVariant
41007
+ * @throws {Error} If the payload is not a reader or valid buffer
41008
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
41009
+ */
41010
+ CreateSleepcastVariant.decode = function decode(reader, length) {
41011
+ if (!(reader instanceof $Reader))
41012
+ reader = $Reader.create(reader);
41013
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.CreateSleepcastVariant();
41014
+ while (reader.pos < end) {
41015
+ var tag = reader.uint32();
41016
+ switch (tag >>> 3) {
41017
+ case 1:
41018
+ message.sleepcastId = reader.int32();
41019
+ break;
41020
+ case 2:
41021
+ message.recipeJson = reader.string();
41022
+ break;
41023
+ case 3:
41024
+ message.inputDir = reader.string();
41025
+ break;
41026
+ case 4:
41027
+ message.outputDir = reader.string();
41028
+ break;
41029
+ default:
41030
+ reader.skipType(tag & 7);
41031
+ break;
41032
+ }
41033
+ }
41034
+ return message;
41035
+ };
41036
+
41037
+ /**
41038
+ * Decodes a CreateSleepcastVariant message from the specified reader or buffer, length delimited.
41039
+ * @function decodeDelimited
41040
+ * @memberof CreateSleepcastVariant
41041
+ * @static
41042
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
41043
+ * @returns {CreateSleepcastVariant} CreateSleepcastVariant
41044
+ * @throws {Error} If the payload is not a reader or valid buffer
41045
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
41046
+ */
41047
+ CreateSleepcastVariant.decodeDelimited = function decodeDelimited(reader) {
41048
+ if (!(reader instanceof $Reader))
41049
+ reader = new $Reader(reader);
41050
+ return this.decode(reader, reader.uint32());
41051
+ };
41052
+
41053
+ /**
41054
+ * Verifies a CreateSleepcastVariant message.
41055
+ * @function verify
41056
+ * @memberof CreateSleepcastVariant
41057
+ * @static
41058
+ * @param {Object.<string,*>} message Plain object to verify
41059
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
41060
+ */
41061
+ CreateSleepcastVariant.verify = function verify(message) {
41062
+ if (typeof message !== "object" || message === null)
41063
+ return "object expected";
41064
+ if (message.sleepcastId != null && message.hasOwnProperty("sleepcastId"))
41065
+ if (!$util.isInteger(message.sleepcastId))
41066
+ return "sleepcastId: integer expected";
41067
+ if (message.recipeJson != null && message.hasOwnProperty("recipeJson"))
41068
+ if (!$util.isString(message.recipeJson))
41069
+ return "recipeJson: string expected";
41070
+ if (message.inputDir != null && message.hasOwnProperty("inputDir"))
41071
+ if (!$util.isString(message.inputDir))
41072
+ return "inputDir: string expected";
41073
+ if (message.outputDir != null && message.hasOwnProperty("outputDir"))
41074
+ if (!$util.isString(message.outputDir))
41075
+ return "outputDir: string expected";
41076
+ return null;
41077
+ };
41078
+
41079
+ /**
41080
+ * Creates a CreateSleepcastVariant message from a plain object. Also converts values to their respective internal types.
41081
+ * @function fromObject
41082
+ * @memberof CreateSleepcastVariant
41083
+ * @static
41084
+ * @param {Object.<string,*>} object Plain object
41085
+ * @returns {CreateSleepcastVariant} CreateSleepcastVariant
41086
+ */
41087
+ CreateSleepcastVariant.fromObject = function fromObject(object) {
41088
+ if (object instanceof $root.CreateSleepcastVariant)
41089
+ return object;
41090
+ var message = new $root.CreateSleepcastVariant();
41091
+ if (object.sleepcastId != null)
41092
+ message.sleepcastId = object.sleepcastId | 0;
41093
+ if (object.recipeJson != null)
41094
+ message.recipeJson = String(object.recipeJson);
41095
+ if (object.inputDir != null)
41096
+ message.inputDir = String(object.inputDir);
41097
+ if (object.outputDir != null)
41098
+ message.outputDir = String(object.outputDir);
41099
+ return message;
41100
+ };
41101
+
41102
+ /**
41103
+ * Creates a plain object from a CreateSleepcastVariant message. Also converts values to other types if specified.
41104
+ * @function toObject
41105
+ * @memberof CreateSleepcastVariant
41106
+ * @static
41107
+ * @param {CreateSleepcastVariant} message CreateSleepcastVariant
41108
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
41109
+ * @returns {Object.<string,*>} Plain object
41110
+ */
41111
+ CreateSleepcastVariant.toObject = function toObject(message, options) {
41112
+ if (!options)
41113
+ options = {};
41114
+ var object = {};
41115
+ if (options.defaults) {
41116
+ object.sleepcastId = 0;
41117
+ object.recipeJson = "";
41118
+ object.inputDir = "";
41119
+ object.outputDir = "";
41120
+ }
41121
+ if (message.sleepcastId != null && message.hasOwnProperty("sleepcastId"))
41122
+ object.sleepcastId = message.sleepcastId;
41123
+ if (message.recipeJson != null && message.hasOwnProperty("recipeJson"))
41124
+ object.recipeJson = message.recipeJson;
41125
+ if (message.inputDir != null && message.hasOwnProperty("inputDir"))
41126
+ object.inputDir = message.inputDir;
41127
+ if (message.outputDir != null && message.hasOwnProperty("outputDir"))
41128
+ object.outputDir = message.outputDir;
41129
+ return object;
41130
+ };
41131
+
41132
+ /**
41133
+ * Converts this CreateSleepcastVariant to JSON.
41134
+ * @function toJSON
41135
+ * @memberof CreateSleepcastVariant
41136
+ * @instance
41137
+ * @returns {Object.<string,*>} JSON object
41138
+ */
41139
+ CreateSleepcastVariant.prototype.toJSON = function toJSON() {
41140
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
41141
+ };
41142
+
41143
+ return CreateSleepcastVariant;
41144
+ })();
41145
+
41146
+ $root.SleepcastVariantCreated = (function() {
41147
+
41148
+ /**
41149
+ * Properties of a SleepcastVariantCreated.
41150
+ * @exports ISleepcastVariantCreated
41151
+ * @interface ISleepcastVariantCreated
41152
+ * @property {number|null} [sleepcastId] SleepcastVariantCreated sleepcastId
41153
+ * @property {Object.<string,string>|null} [outputs] SleepcastVariantCreated outputs
41154
+ */
41155
+
41156
+ /**
41157
+ * Constructs a new SleepcastVariantCreated.
41158
+ * @exports SleepcastVariantCreated
41159
+ * @classdesc Represents a SleepcastVariantCreated.
41160
+ * @implements ISleepcastVariantCreated
41161
+ * @constructor
41162
+ * @param {ISleepcastVariantCreated=} [properties] Properties to set
41163
+ */
41164
+ function SleepcastVariantCreated(properties) {
41165
+ this.outputs = {};
41166
+ if (properties)
41167
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
41168
+ if (properties[keys[i]] != null)
41169
+ this[keys[i]] = properties[keys[i]];
41170
+ }
41171
+
41172
+ /**
41173
+ * SleepcastVariantCreated sleepcastId.
41174
+ * @member {number} sleepcastId
41175
+ * @memberof SleepcastVariantCreated
41176
+ * @instance
41177
+ */
41178
+ SleepcastVariantCreated.prototype.sleepcastId = 0;
41179
+
41180
+ /**
41181
+ * SleepcastVariantCreated outputs.
41182
+ * @member {Object.<string,string>} outputs
41183
+ * @memberof SleepcastVariantCreated
41184
+ * @instance
41185
+ */
41186
+ SleepcastVariantCreated.prototype.outputs = $util.emptyObject;
41187
+
41188
+ /**
41189
+ * Creates a new SleepcastVariantCreated instance using the specified properties.
41190
+ * @function create
41191
+ * @memberof SleepcastVariantCreated
41192
+ * @static
41193
+ * @param {ISleepcastVariantCreated=} [properties] Properties to set
41194
+ * @returns {SleepcastVariantCreated} SleepcastVariantCreated instance
41195
+ */
41196
+ SleepcastVariantCreated.create = function create(properties) {
41197
+ return new SleepcastVariantCreated(properties);
41198
+ };
41199
+
41200
+ /**
41201
+ * Encodes the specified SleepcastVariantCreated message. Does not implicitly {@link SleepcastVariantCreated.verify|verify} messages.
41202
+ * @function encode
41203
+ * @memberof SleepcastVariantCreated
41204
+ * @static
41205
+ * @param {ISleepcastVariantCreated} message SleepcastVariantCreated message or plain object to encode
41206
+ * @param {$protobuf.Writer} [writer] Writer to encode to
41207
+ * @returns {$protobuf.Writer} Writer
41208
+ */
41209
+ SleepcastVariantCreated.encode = function encode(message, writer) {
41210
+ if (!writer)
41211
+ writer = $Writer.create();
41212
+ if (message.sleepcastId != null && message.hasOwnProperty("sleepcastId"))
41213
+ writer.uint32(/* id 1, wireType 0 =*/8).int32(message.sleepcastId);
41214
+ 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();
41217
+ return writer;
41218
+ };
41219
+
41220
+ /**
41221
+ * Encodes the specified SleepcastVariantCreated message, length delimited. Does not implicitly {@link SleepcastVariantCreated.verify|verify} messages.
41222
+ * @function encodeDelimited
41223
+ * @memberof SleepcastVariantCreated
41224
+ * @static
41225
+ * @param {ISleepcastVariantCreated} message SleepcastVariantCreated message or plain object to encode
41226
+ * @param {$protobuf.Writer} [writer] Writer to encode to
41227
+ * @returns {$protobuf.Writer} Writer
41228
+ */
41229
+ SleepcastVariantCreated.encodeDelimited = function encodeDelimited(message, writer) {
41230
+ return this.encode(message, writer).ldelim();
41231
+ };
41232
+
41233
+ /**
41234
+ * Decodes a SleepcastVariantCreated message from the specified reader or buffer.
41235
+ * @function decode
41236
+ * @memberof SleepcastVariantCreated
41237
+ * @static
41238
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
41239
+ * @param {number} [length] Message length if known beforehand
41240
+ * @returns {SleepcastVariantCreated} SleepcastVariantCreated
41241
+ * @throws {Error} If the payload is not a reader or valid buffer
41242
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
41243
+ */
41244
+ SleepcastVariantCreated.decode = function decode(reader, length) {
41245
+ if (!(reader instanceof $Reader))
41246
+ reader = $Reader.create(reader);
41247
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.SleepcastVariantCreated(), key;
41248
+ while (reader.pos < end) {
41249
+ var tag = reader.uint32();
41250
+ switch (tag >>> 3) {
41251
+ case 1:
41252
+ message.sleepcastId = reader.int32();
41253
+ break;
41254
+ case 2:
41255
+ reader.skip().pos++;
41256
+ if (message.outputs === $util.emptyObject)
41257
+ message.outputs = {};
41258
+ key = reader.string();
41259
+ reader.pos++;
41260
+ message.outputs[key] = reader.string();
41261
+ break;
41262
+ default:
41263
+ reader.skipType(tag & 7);
41264
+ break;
41265
+ }
41266
+ }
41267
+ return message;
41268
+ };
41269
+
41270
+ /**
41271
+ * Decodes a SleepcastVariantCreated message from the specified reader or buffer, length delimited.
41272
+ * @function decodeDelimited
41273
+ * @memberof SleepcastVariantCreated
41274
+ * @static
41275
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
41276
+ * @returns {SleepcastVariantCreated} SleepcastVariantCreated
41277
+ * @throws {Error} If the payload is not a reader or valid buffer
41278
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
41279
+ */
41280
+ SleepcastVariantCreated.decodeDelimited = function decodeDelimited(reader) {
41281
+ if (!(reader instanceof $Reader))
41282
+ reader = new $Reader(reader);
41283
+ return this.decode(reader, reader.uint32());
41284
+ };
41285
+
41286
+ /**
41287
+ * Verifies a SleepcastVariantCreated message.
41288
+ * @function verify
41289
+ * @memberof SleepcastVariantCreated
41290
+ * @static
41291
+ * @param {Object.<string,*>} message Plain object to verify
41292
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
41293
+ */
41294
+ SleepcastVariantCreated.verify = function verify(message) {
41295
+ if (typeof message !== "object" || message === null)
41296
+ return "object expected";
41297
+ if (message.sleepcastId != null && message.hasOwnProperty("sleepcastId"))
41298
+ if (!$util.isInteger(message.sleepcastId))
41299
+ return "sleepcastId: integer expected";
41300
+ if (message.outputs != null && message.hasOwnProperty("outputs")) {
41301
+ if (!$util.isObject(message.outputs))
41302
+ return "outputs: object expected";
41303
+ 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";
41307
+ }
41308
+ return null;
41309
+ };
41310
+
41311
+ /**
41312
+ * Creates a SleepcastVariantCreated message from a plain object. Also converts values to their respective internal types.
41313
+ * @function fromObject
41314
+ * @memberof SleepcastVariantCreated
41315
+ * @static
41316
+ * @param {Object.<string,*>} object Plain object
41317
+ * @returns {SleepcastVariantCreated} SleepcastVariantCreated
41318
+ */
41319
+ SleepcastVariantCreated.fromObject = function fromObject(object) {
41320
+ if (object instanceof $root.SleepcastVariantCreated)
41321
+ return object;
41322
+ var message = new $root.SleepcastVariantCreated();
41323
+ if (object.sleepcastId != null)
41324
+ message.sleepcastId = object.sleepcastId | 0;
41325
+ if (object.outputs) {
41326
+ if (typeof object.outputs !== "object")
41327
+ throw TypeError(".SleepcastVariantCreated.outputs: object expected");
41328
+ 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]]);
41331
+ }
41332
+ return message;
41333
+ };
41334
+
41335
+ /**
41336
+ * Creates a plain object from a SleepcastVariantCreated message. Also converts values to other types if specified.
41337
+ * @function toObject
41338
+ * @memberof SleepcastVariantCreated
41339
+ * @static
41340
+ * @param {SleepcastVariantCreated} message SleepcastVariantCreated
41341
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
41342
+ * @returns {Object.<string,*>} Plain object
41343
+ */
41344
+ SleepcastVariantCreated.toObject = function toObject(message, options) {
41345
+ if (!options)
41346
+ options = {};
41347
+ var object = {};
41348
+ if (options.objects || options.defaults)
41349
+ object.outputs = {};
41350
+ if (options.defaults)
41351
+ object.sleepcastId = 0;
41352
+ if (message.sleepcastId != null && message.hasOwnProperty("sleepcastId"))
41353
+ object.sleepcastId = message.sleepcastId;
41354
+ var keys2;
41355
+ if (message.outputs && (keys2 = Object.keys(message.outputs)).length) {
41356
+ object.outputs = {};
41357
+ for (var j = 0; j < keys2.length; ++j)
41358
+ object.outputs[keys2[j]] = message.outputs[keys2[j]];
41359
+ }
41360
+ return object;
41361
+ };
41362
+
41363
+ /**
41364
+ * Converts this SleepcastVariantCreated to JSON.
41365
+ * @function toJSON
41366
+ * @memberof SleepcastVariantCreated
41367
+ * @instance
41368
+ * @returns {Object.<string,*>} JSON object
41369
+ */
41370
+ SleepcastVariantCreated.prototype.toJSON = function toJSON() {
41371
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
41372
+ };
41373
+
41374
+ return SleepcastVariantCreated;
41375
+ })();
41376
+
40892
41377
  $root.SleepcastCreated = (function() {
40893
41378
 
40894
41379
  /**
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.196.0"
19
+ "version": "1.198.0"
20
20
  }