@headspace/protos-events 1.196.0 → 1.197.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/index.d.ts CHANGED
@@ -14798,6 +14798,240 @@ 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 id */
14805
+ id?: (string|null);
14806
+
14807
+ /** CreateSleepcastVariant sleepcastId */
14808
+ sleepcastId?: (number|null);
14809
+
14810
+ /** CreateSleepcastVariant recipeJson */
14811
+ recipeJson?: (string|null);
14812
+
14813
+ /** CreateSleepcastVariant inputDir */
14814
+ inputDir?: (string|null);
14815
+
14816
+ /** CreateSleepcastVariant outputDir */
14817
+ outputDir?: (string|null);
14818
+ }
14819
+
14820
+ /** Represents a CreateSleepcastVariant. */
14821
+ export class CreateSleepcastVariant implements ICreateSleepcastVariant {
14822
+
14823
+ /**
14824
+ * Constructs a new CreateSleepcastVariant.
14825
+ * @param [properties] Properties to set
14826
+ */
14827
+ constructor(properties?: ICreateSleepcastVariant);
14828
+
14829
+ /** CreateSleepcastVariant id. */
14830
+ public id: string;
14831
+
14832
+ /** CreateSleepcastVariant sleepcastId. */
14833
+ public sleepcastId: number;
14834
+
14835
+ /** CreateSleepcastVariant recipeJson. */
14836
+ public recipeJson: string;
14837
+
14838
+ /** CreateSleepcastVariant inputDir. */
14839
+ public inputDir: string;
14840
+
14841
+ /** CreateSleepcastVariant outputDir. */
14842
+ public outputDir: string;
14843
+
14844
+ /**
14845
+ * Creates a new CreateSleepcastVariant instance using the specified properties.
14846
+ * @param [properties] Properties to set
14847
+ * @returns CreateSleepcastVariant instance
14848
+ */
14849
+ public static create(properties?: ICreateSleepcastVariant): CreateSleepcastVariant;
14850
+
14851
+ /**
14852
+ * Encodes the specified CreateSleepcastVariant message. Does not implicitly {@link CreateSleepcastVariant.verify|verify} messages.
14853
+ * @param message CreateSleepcastVariant message or plain object to encode
14854
+ * @param [writer] Writer to encode to
14855
+ * @returns Writer
14856
+ */
14857
+ public static encode(message: ICreateSleepcastVariant, writer?: $protobuf.Writer): $protobuf.Writer;
14858
+
14859
+ /**
14860
+ * Encodes the specified CreateSleepcastVariant message, length delimited. Does not implicitly {@link CreateSleepcastVariant.verify|verify} messages.
14861
+ * @param message CreateSleepcastVariant message or plain object to encode
14862
+ * @param [writer] Writer to encode to
14863
+ * @returns Writer
14864
+ */
14865
+ public static encodeDelimited(message: ICreateSleepcastVariant, writer?: $protobuf.Writer): $protobuf.Writer;
14866
+
14867
+ /**
14868
+ * Decodes a CreateSleepcastVariant message from the specified reader or buffer.
14869
+ * @param reader Reader or buffer to decode from
14870
+ * @param [length] Message length if known beforehand
14871
+ * @returns CreateSleepcastVariant
14872
+ * @throws {Error} If the payload is not a reader or valid buffer
14873
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
14874
+ */
14875
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): CreateSleepcastVariant;
14876
+
14877
+ /**
14878
+ * Decodes a CreateSleepcastVariant message from the specified reader or buffer, length delimited.
14879
+ * @param reader Reader or buffer to decode from
14880
+ * @returns CreateSleepcastVariant
14881
+ * @throws {Error} If the payload is not a reader or valid buffer
14882
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
14883
+ */
14884
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): CreateSleepcastVariant;
14885
+
14886
+ /**
14887
+ * Verifies a CreateSleepcastVariant message.
14888
+ * @param message Plain object to verify
14889
+ * @returns `null` if valid, otherwise the reason why it is not
14890
+ */
14891
+ public static verify(message: { [k: string]: any }): (string|null);
14892
+
14893
+ /**
14894
+ * Creates a CreateSleepcastVariant message from a plain object. Also converts values to their respective internal types.
14895
+ * @param object Plain object
14896
+ * @returns CreateSleepcastVariant
14897
+ */
14898
+ public static fromObject(object: { [k: string]: any }): CreateSleepcastVariant;
14899
+
14900
+ /**
14901
+ * Creates a plain object from a CreateSleepcastVariant message. Also converts values to other types if specified.
14902
+ * @param message CreateSleepcastVariant
14903
+ * @param [options] Conversion options
14904
+ * @returns Plain object
14905
+ */
14906
+ public static toObject(message: CreateSleepcastVariant, options?: $protobuf.IConversionOptions): { [k: string]: any };
14907
+
14908
+ /**
14909
+ * Converts this CreateSleepcastVariant to JSON.
14910
+ * @returns JSON object
14911
+ */
14912
+ public toJSON(): { [k: string]: any };
14913
+ }
14914
+
14915
+ /** Properties of a SleepcastVariantCreated. */
14916
+ export interface ISleepcastVariantCreated {
14917
+
14918
+ /** SleepcastVariantCreated id */
14919
+ id?: (string|null);
14920
+
14921
+ /** SleepcastVariantCreated sleepcastId */
14922
+ sleepcastId?: (number|null);
14923
+
14924
+ /** SleepcastVariantCreated ambientFilePath */
14925
+ ambientFilePath?: (string|null);
14926
+
14927
+ /** SleepcastVariantCreated voiceFilePath */
14928
+ voiceFilePath?: (string|null);
14929
+
14930
+ /** SleepcastVariantCreated mixedFilePath */
14931
+ mixedFilePath?: (string|null);
14932
+
14933
+ /** SleepcastVariantCreated createdAt */
14934
+ createdAt?: (number|Long|null);
14935
+ }
14936
+
14937
+ /** Represents a SleepcastVariantCreated. */
14938
+ export class SleepcastVariantCreated implements ISleepcastVariantCreated {
14939
+
14940
+ /**
14941
+ * Constructs a new SleepcastVariantCreated.
14942
+ * @param [properties] Properties to set
14943
+ */
14944
+ constructor(properties?: ISleepcastVariantCreated);
14945
+
14946
+ /** SleepcastVariantCreated id. */
14947
+ public id: string;
14948
+
14949
+ /** SleepcastVariantCreated sleepcastId. */
14950
+ public sleepcastId: number;
14951
+
14952
+ /** SleepcastVariantCreated ambientFilePath. */
14953
+ public ambientFilePath: string;
14954
+
14955
+ /** SleepcastVariantCreated voiceFilePath. */
14956
+ public voiceFilePath: string;
14957
+
14958
+ /** SleepcastVariantCreated mixedFilePath. */
14959
+ public mixedFilePath: string;
14960
+
14961
+ /** SleepcastVariantCreated createdAt. */
14962
+ public createdAt: (number|Long);
14963
+
14964
+ /**
14965
+ * Creates a new SleepcastVariantCreated instance using the specified properties.
14966
+ * @param [properties] Properties to set
14967
+ * @returns SleepcastVariantCreated instance
14968
+ */
14969
+ public static create(properties?: ISleepcastVariantCreated): SleepcastVariantCreated;
14970
+
14971
+ /**
14972
+ * Encodes the specified SleepcastVariantCreated message. Does not implicitly {@link SleepcastVariantCreated.verify|verify} messages.
14973
+ * @param message SleepcastVariantCreated message or plain object to encode
14974
+ * @param [writer] Writer to encode to
14975
+ * @returns Writer
14976
+ */
14977
+ public static encode(message: ISleepcastVariantCreated, writer?: $protobuf.Writer): $protobuf.Writer;
14978
+
14979
+ /**
14980
+ * Encodes the specified SleepcastVariantCreated message, length delimited. Does not implicitly {@link SleepcastVariantCreated.verify|verify} messages.
14981
+ * @param message SleepcastVariantCreated message or plain object to encode
14982
+ * @param [writer] Writer to encode to
14983
+ * @returns Writer
14984
+ */
14985
+ public static encodeDelimited(message: ISleepcastVariantCreated, writer?: $protobuf.Writer): $protobuf.Writer;
14986
+
14987
+ /**
14988
+ * Decodes a SleepcastVariantCreated message from the specified reader or buffer.
14989
+ * @param reader Reader or buffer to decode from
14990
+ * @param [length] Message length if known beforehand
14991
+ * @returns SleepcastVariantCreated
14992
+ * @throws {Error} If the payload is not a reader or valid buffer
14993
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
14994
+ */
14995
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): SleepcastVariantCreated;
14996
+
14997
+ /**
14998
+ * Decodes a SleepcastVariantCreated message from the specified reader or buffer, length delimited.
14999
+ * @param reader Reader or buffer to decode from
15000
+ * @returns SleepcastVariantCreated
15001
+ * @throws {Error} If the payload is not a reader or valid buffer
15002
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
15003
+ */
15004
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): SleepcastVariantCreated;
15005
+
15006
+ /**
15007
+ * Verifies a SleepcastVariantCreated message.
15008
+ * @param message Plain object to verify
15009
+ * @returns `null` if valid, otherwise the reason why it is not
15010
+ */
15011
+ public static verify(message: { [k: string]: any }): (string|null);
15012
+
15013
+ /**
15014
+ * Creates a SleepcastVariantCreated message from a plain object. Also converts values to their respective internal types.
15015
+ * @param object Plain object
15016
+ * @returns SleepcastVariantCreated
15017
+ */
15018
+ public static fromObject(object: { [k: string]: any }): SleepcastVariantCreated;
15019
+
15020
+ /**
15021
+ * Creates a plain object from a SleepcastVariantCreated message. Also converts values to other types if specified.
15022
+ * @param message SleepcastVariantCreated
15023
+ * @param [options] Conversion options
15024
+ * @returns Plain object
15025
+ */
15026
+ public static toObject(message: SleepcastVariantCreated, options?: $protobuf.IConversionOptions): { [k: string]: any };
15027
+
15028
+ /**
15029
+ * Converts this SleepcastVariantCreated to JSON.
15030
+ * @returns JSON object
15031
+ */
15032
+ public toJSON(): { [k: string]: any };
15033
+ }
15034
+
14801
15035
  /** Properties of a SleepcastCreated. */
14802
15036
  export interface ISleepcastCreated {
14803
15037
 
package/lib/index.js CHANGED
@@ -40889,6 +40889,594 @@ $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 {string|null} [id] CreateSleepcastVariant id
40899
+ * @property {number|null} [sleepcastId] CreateSleepcastVariant sleepcastId
40900
+ * @property {string|null} [recipeJson] CreateSleepcastVariant recipeJson
40901
+ * @property {string|null} [inputDir] CreateSleepcastVariant inputDir
40902
+ * @property {string|null} [outputDir] CreateSleepcastVariant outputDir
40903
+ */
40904
+
40905
+ /**
40906
+ * Constructs a new CreateSleepcastVariant.
40907
+ * @exports CreateSleepcastVariant
40908
+ * @classdesc Represents a CreateSleepcastVariant.
40909
+ * @implements ICreateSleepcastVariant
40910
+ * @constructor
40911
+ * @param {ICreateSleepcastVariant=} [properties] Properties to set
40912
+ */
40913
+ function CreateSleepcastVariant(properties) {
40914
+ if (properties)
40915
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
40916
+ if (properties[keys[i]] != null)
40917
+ this[keys[i]] = properties[keys[i]];
40918
+ }
40919
+
40920
+ /**
40921
+ * CreateSleepcastVariant id.
40922
+ * @member {string} id
40923
+ * @memberof CreateSleepcastVariant
40924
+ * @instance
40925
+ */
40926
+ CreateSleepcastVariant.prototype.id = "";
40927
+
40928
+ /**
40929
+ * CreateSleepcastVariant sleepcastId.
40930
+ * @member {number} sleepcastId
40931
+ * @memberof CreateSleepcastVariant
40932
+ * @instance
40933
+ */
40934
+ CreateSleepcastVariant.prototype.sleepcastId = 0;
40935
+
40936
+ /**
40937
+ * CreateSleepcastVariant recipeJson.
40938
+ * @member {string} recipeJson
40939
+ * @memberof CreateSleepcastVariant
40940
+ * @instance
40941
+ */
40942
+ CreateSleepcastVariant.prototype.recipeJson = "";
40943
+
40944
+ /**
40945
+ * CreateSleepcastVariant inputDir.
40946
+ * @member {string} inputDir
40947
+ * @memberof CreateSleepcastVariant
40948
+ * @instance
40949
+ */
40950
+ CreateSleepcastVariant.prototype.inputDir = "";
40951
+
40952
+ /**
40953
+ * CreateSleepcastVariant outputDir.
40954
+ * @member {string} outputDir
40955
+ * @memberof CreateSleepcastVariant
40956
+ * @instance
40957
+ */
40958
+ CreateSleepcastVariant.prototype.outputDir = "";
40959
+
40960
+ /**
40961
+ * Creates a new CreateSleepcastVariant instance using the specified properties.
40962
+ * @function create
40963
+ * @memberof CreateSleepcastVariant
40964
+ * @static
40965
+ * @param {ICreateSleepcastVariant=} [properties] Properties to set
40966
+ * @returns {CreateSleepcastVariant} CreateSleepcastVariant instance
40967
+ */
40968
+ CreateSleepcastVariant.create = function create(properties) {
40969
+ return new CreateSleepcastVariant(properties);
40970
+ };
40971
+
40972
+ /**
40973
+ * Encodes the specified CreateSleepcastVariant message. Does not implicitly {@link CreateSleepcastVariant.verify|verify} messages.
40974
+ * @function encode
40975
+ * @memberof CreateSleepcastVariant
40976
+ * @static
40977
+ * @param {ICreateSleepcastVariant} message CreateSleepcastVariant message or plain object to encode
40978
+ * @param {$protobuf.Writer} [writer] Writer to encode to
40979
+ * @returns {$protobuf.Writer} Writer
40980
+ */
40981
+ CreateSleepcastVariant.encode = function encode(message, writer) {
40982
+ if (!writer)
40983
+ writer = $Writer.create();
40984
+ if (message.id != null && message.hasOwnProperty("id"))
40985
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.id);
40986
+ if (message.sleepcastId != null && message.hasOwnProperty("sleepcastId"))
40987
+ writer.uint32(/* id 2, wireType 0 =*/16).int32(message.sleepcastId);
40988
+ if (message.recipeJson != null && message.hasOwnProperty("recipeJson"))
40989
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.recipeJson);
40990
+ if (message.inputDir != null && message.hasOwnProperty("inputDir"))
40991
+ writer.uint32(/* id 4, wireType 2 =*/34).string(message.inputDir);
40992
+ if (message.outputDir != null && message.hasOwnProperty("outputDir"))
40993
+ writer.uint32(/* id 5, wireType 2 =*/42).string(message.outputDir);
40994
+ return writer;
40995
+ };
40996
+
40997
+ /**
40998
+ * Encodes the specified CreateSleepcastVariant message, length delimited. Does not implicitly {@link CreateSleepcastVariant.verify|verify} messages.
40999
+ * @function encodeDelimited
41000
+ * @memberof CreateSleepcastVariant
41001
+ * @static
41002
+ * @param {ICreateSleepcastVariant} message CreateSleepcastVariant message or plain object to encode
41003
+ * @param {$protobuf.Writer} [writer] Writer to encode to
41004
+ * @returns {$protobuf.Writer} Writer
41005
+ */
41006
+ CreateSleepcastVariant.encodeDelimited = function encodeDelimited(message, writer) {
41007
+ return this.encode(message, writer).ldelim();
41008
+ };
41009
+
41010
+ /**
41011
+ * Decodes a CreateSleepcastVariant message from the specified reader or buffer.
41012
+ * @function decode
41013
+ * @memberof CreateSleepcastVariant
41014
+ * @static
41015
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
41016
+ * @param {number} [length] Message length if known beforehand
41017
+ * @returns {CreateSleepcastVariant} CreateSleepcastVariant
41018
+ * @throws {Error} If the payload is not a reader or valid buffer
41019
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
41020
+ */
41021
+ CreateSleepcastVariant.decode = function decode(reader, length) {
41022
+ if (!(reader instanceof $Reader))
41023
+ reader = $Reader.create(reader);
41024
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.CreateSleepcastVariant();
41025
+ while (reader.pos < end) {
41026
+ var tag = reader.uint32();
41027
+ switch (tag >>> 3) {
41028
+ case 1:
41029
+ message.id = reader.string();
41030
+ break;
41031
+ case 2:
41032
+ message.sleepcastId = reader.int32();
41033
+ break;
41034
+ case 3:
41035
+ message.recipeJson = reader.string();
41036
+ break;
41037
+ case 4:
41038
+ message.inputDir = reader.string();
41039
+ break;
41040
+ case 5:
41041
+ message.outputDir = reader.string();
41042
+ break;
41043
+ default:
41044
+ reader.skipType(tag & 7);
41045
+ break;
41046
+ }
41047
+ }
41048
+ return message;
41049
+ };
41050
+
41051
+ /**
41052
+ * Decodes a CreateSleepcastVariant message from the specified reader or buffer, length delimited.
41053
+ * @function decodeDelimited
41054
+ * @memberof CreateSleepcastVariant
41055
+ * @static
41056
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
41057
+ * @returns {CreateSleepcastVariant} CreateSleepcastVariant
41058
+ * @throws {Error} If the payload is not a reader or valid buffer
41059
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
41060
+ */
41061
+ CreateSleepcastVariant.decodeDelimited = function decodeDelimited(reader) {
41062
+ if (!(reader instanceof $Reader))
41063
+ reader = new $Reader(reader);
41064
+ return this.decode(reader, reader.uint32());
41065
+ };
41066
+
41067
+ /**
41068
+ * Verifies a CreateSleepcastVariant message.
41069
+ * @function verify
41070
+ * @memberof CreateSleepcastVariant
41071
+ * @static
41072
+ * @param {Object.<string,*>} message Plain object to verify
41073
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
41074
+ */
41075
+ CreateSleepcastVariant.verify = function verify(message) {
41076
+ if (typeof message !== "object" || message === null)
41077
+ return "object expected";
41078
+ if (message.id != null && message.hasOwnProperty("id"))
41079
+ if (!$util.isString(message.id))
41080
+ return "id: string expected";
41081
+ if (message.sleepcastId != null && message.hasOwnProperty("sleepcastId"))
41082
+ if (!$util.isInteger(message.sleepcastId))
41083
+ return "sleepcastId: integer expected";
41084
+ if (message.recipeJson != null && message.hasOwnProperty("recipeJson"))
41085
+ if (!$util.isString(message.recipeJson))
41086
+ return "recipeJson: string expected";
41087
+ if (message.inputDir != null && message.hasOwnProperty("inputDir"))
41088
+ if (!$util.isString(message.inputDir))
41089
+ return "inputDir: string expected";
41090
+ if (message.outputDir != null && message.hasOwnProperty("outputDir"))
41091
+ if (!$util.isString(message.outputDir))
41092
+ return "outputDir: string expected";
41093
+ return null;
41094
+ };
41095
+
41096
+ /**
41097
+ * Creates a CreateSleepcastVariant message from a plain object. Also converts values to their respective internal types.
41098
+ * @function fromObject
41099
+ * @memberof CreateSleepcastVariant
41100
+ * @static
41101
+ * @param {Object.<string,*>} object Plain object
41102
+ * @returns {CreateSleepcastVariant} CreateSleepcastVariant
41103
+ */
41104
+ CreateSleepcastVariant.fromObject = function fromObject(object) {
41105
+ if (object instanceof $root.CreateSleepcastVariant)
41106
+ return object;
41107
+ var message = new $root.CreateSleepcastVariant();
41108
+ if (object.id != null)
41109
+ message.id = String(object.id);
41110
+ if (object.sleepcastId != null)
41111
+ message.sleepcastId = object.sleepcastId | 0;
41112
+ if (object.recipeJson != null)
41113
+ message.recipeJson = String(object.recipeJson);
41114
+ if (object.inputDir != null)
41115
+ message.inputDir = String(object.inputDir);
41116
+ if (object.outputDir != null)
41117
+ message.outputDir = String(object.outputDir);
41118
+ return message;
41119
+ };
41120
+
41121
+ /**
41122
+ * Creates a plain object from a CreateSleepcastVariant message. Also converts values to other types if specified.
41123
+ * @function toObject
41124
+ * @memberof CreateSleepcastVariant
41125
+ * @static
41126
+ * @param {CreateSleepcastVariant} message CreateSleepcastVariant
41127
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
41128
+ * @returns {Object.<string,*>} Plain object
41129
+ */
41130
+ CreateSleepcastVariant.toObject = function toObject(message, options) {
41131
+ if (!options)
41132
+ options = {};
41133
+ var object = {};
41134
+ if (options.defaults) {
41135
+ object.id = "";
41136
+ object.sleepcastId = 0;
41137
+ object.recipeJson = "";
41138
+ object.inputDir = "";
41139
+ object.outputDir = "";
41140
+ }
41141
+ if (message.id != null && message.hasOwnProperty("id"))
41142
+ object.id = message.id;
41143
+ if (message.sleepcastId != null && message.hasOwnProperty("sleepcastId"))
41144
+ object.sleepcastId = message.sleepcastId;
41145
+ if (message.recipeJson != null && message.hasOwnProperty("recipeJson"))
41146
+ object.recipeJson = message.recipeJson;
41147
+ if (message.inputDir != null && message.hasOwnProperty("inputDir"))
41148
+ object.inputDir = message.inputDir;
41149
+ if (message.outputDir != null && message.hasOwnProperty("outputDir"))
41150
+ object.outputDir = message.outputDir;
41151
+ return object;
41152
+ };
41153
+
41154
+ /**
41155
+ * Converts this CreateSleepcastVariant to JSON.
41156
+ * @function toJSON
41157
+ * @memberof CreateSleepcastVariant
41158
+ * @instance
41159
+ * @returns {Object.<string,*>} JSON object
41160
+ */
41161
+ CreateSleepcastVariant.prototype.toJSON = function toJSON() {
41162
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
41163
+ };
41164
+
41165
+ return CreateSleepcastVariant;
41166
+ })();
41167
+
41168
+ $root.SleepcastVariantCreated = (function() {
41169
+
41170
+ /**
41171
+ * Properties of a SleepcastVariantCreated.
41172
+ * @exports ISleepcastVariantCreated
41173
+ * @interface ISleepcastVariantCreated
41174
+ * @property {string|null} [id] SleepcastVariantCreated id
41175
+ * @property {number|null} [sleepcastId] SleepcastVariantCreated sleepcastId
41176
+ * @property {string|null} [ambientFilePath] SleepcastVariantCreated ambientFilePath
41177
+ * @property {string|null} [voiceFilePath] SleepcastVariantCreated voiceFilePath
41178
+ * @property {string|null} [mixedFilePath] SleepcastVariantCreated mixedFilePath
41179
+ * @property {number|Long|null} [createdAt] SleepcastVariantCreated createdAt
41180
+ */
41181
+
41182
+ /**
41183
+ * Constructs a new SleepcastVariantCreated.
41184
+ * @exports SleepcastVariantCreated
41185
+ * @classdesc Represents a SleepcastVariantCreated.
41186
+ * @implements ISleepcastVariantCreated
41187
+ * @constructor
41188
+ * @param {ISleepcastVariantCreated=} [properties] Properties to set
41189
+ */
41190
+ function SleepcastVariantCreated(properties) {
41191
+ if (properties)
41192
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
41193
+ if (properties[keys[i]] != null)
41194
+ this[keys[i]] = properties[keys[i]];
41195
+ }
41196
+
41197
+ /**
41198
+ * SleepcastVariantCreated id.
41199
+ * @member {string} id
41200
+ * @memberof SleepcastVariantCreated
41201
+ * @instance
41202
+ */
41203
+ SleepcastVariantCreated.prototype.id = "";
41204
+
41205
+ /**
41206
+ * SleepcastVariantCreated sleepcastId.
41207
+ * @member {number} sleepcastId
41208
+ * @memberof SleepcastVariantCreated
41209
+ * @instance
41210
+ */
41211
+ SleepcastVariantCreated.prototype.sleepcastId = 0;
41212
+
41213
+ /**
41214
+ * SleepcastVariantCreated ambientFilePath.
41215
+ * @member {string} ambientFilePath
41216
+ * @memberof SleepcastVariantCreated
41217
+ * @instance
41218
+ */
41219
+ SleepcastVariantCreated.prototype.ambientFilePath = "";
41220
+
41221
+ /**
41222
+ * SleepcastVariantCreated voiceFilePath.
41223
+ * @member {string} voiceFilePath
41224
+ * @memberof SleepcastVariantCreated
41225
+ * @instance
41226
+ */
41227
+ SleepcastVariantCreated.prototype.voiceFilePath = "";
41228
+
41229
+ /**
41230
+ * SleepcastVariantCreated mixedFilePath.
41231
+ * @member {string} mixedFilePath
41232
+ * @memberof SleepcastVariantCreated
41233
+ * @instance
41234
+ */
41235
+ SleepcastVariantCreated.prototype.mixedFilePath = "";
41236
+
41237
+ /**
41238
+ * SleepcastVariantCreated createdAt.
41239
+ * @member {number|Long} createdAt
41240
+ * @memberof SleepcastVariantCreated
41241
+ * @instance
41242
+ */
41243
+ SleepcastVariantCreated.prototype.createdAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
41244
+
41245
+ /**
41246
+ * Creates a new SleepcastVariantCreated instance using the specified properties.
41247
+ * @function create
41248
+ * @memberof SleepcastVariantCreated
41249
+ * @static
41250
+ * @param {ISleepcastVariantCreated=} [properties] Properties to set
41251
+ * @returns {SleepcastVariantCreated} SleepcastVariantCreated instance
41252
+ */
41253
+ SleepcastVariantCreated.create = function create(properties) {
41254
+ return new SleepcastVariantCreated(properties);
41255
+ };
41256
+
41257
+ /**
41258
+ * Encodes the specified SleepcastVariantCreated message. Does not implicitly {@link SleepcastVariantCreated.verify|verify} messages.
41259
+ * @function encode
41260
+ * @memberof SleepcastVariantCreated
41261
+ * @static
41262
+ * @param {ISleepcastVariantCreated} message SleepcastVariantCreated message or plain object to encode
41263
+ * @param {$protobuf.Writer} [writer] Writer to encode to
41264
+ * @returns {$protobuf.Writer} Writer
41265
+ */
41266
+ SleepcastVariantCreated.encode = function encode(message, writer) {
41267
+ if (!writer)
41268
+ writer = $Writer.create();
41269
+ if (message.id != null && message.hasOwnProperty("id"))
41270
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.id);
41271
+ if (message.sleepcastId != null && message.hasOwnProperty("sleepcastId"))
41272
+ writer.uint32(/* id 2, wireType 0 =*/16).int32(message.sleepcastId);
41273
+ if (message.ambientFilePath != null && message.hasOwnProperty("ambientFilePath"))
41274
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.ambientFilePath);
41275
+ if (message.voiceFilePath != null && message.hasOwnProperty("voiceFilePath"))
41276
+ writer.uint32(/* id 4, wireType 2 =*/34).string(message.voiceFilePath);
41277
+ if (message.mixedFilePath != null && message.hasOwnProperty("mixedFilePath"))
41278
+ writer.uint32(/* id 5, wireType 2 =*/42).string(message.mixedFilePath);
41279
+ if (message.createdAt != null && message.hasOwnProperty("createdAt"))
41280
+ writer.uint32(/* id 6, wireType 0 =*/48).uint64(message.createdAt);
41281
+ return writer;
41282
+ };
41283
+
41284
+ /**
41285
+ * Encodes the specified SleepcastVariantCreated message, length delimited. Does not implicitly {@link SleepcastVariantCreated.verify|verify} messages.
41286
+ * @function encodeDelimited
41287
+ * @memberof SleepcastVariantCreated
41288
+ * @static
41289
+ * @param {ISleepcastVariantCreated} message SleepcastVariantCreated message or plain object to encode
41290
+ * @param {$protobuf.Writer} [writer] Writer to encode to
41291
+ * @returns {$protobuf.Writer} Writer
41292
+ */
41293
+ SleepcastVariantCreated.encodeDelimited = function encodeDelimited(message, writer) {
41294
+ return this.encode(message, writer).ldelim();
41295
+ };
41296
+
41297
+ /**
41298
+ * Decodes a SleepcastVariantCreated message from the specified reader or buffer.
41299
+ * @function decode
41300
+ * @memberof SleepcastVariantCreated
41301
+ * @static
41302
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
41303
+ * @param {number} [length] Message length if known beforehand
41304
+ * @returns {SleepcastVariantCreated} SleepcastVariantCreated
41305
+ * @throws {Error} If the payload is not a reader or valid buffer
41306
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
41307
+ */
41308
+ SleepcastVariantCreated.decode = function decode(reader, length) {
41309
+ if (!(reader instanceof $Reader))
41310
+ reader = $Reader.create(reader);
41311
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.SleepcastVariantCreated();
41312
+ while (reader.pos < end) {
41313
+ var tag = reader.uint32();
41314
+ switch (tag >>> 3) {
41315
+ case 1:
41316
+ message.id = reader.string();
41317
+ break;
41318
+ case 2:
41319
+ message.sleepcastId = reader.int32();
41320
+ break;
41321
+ case 3:
41322
+ message.ambientFilePath = reader.string();
41323
+ break;
41324
+ case 4:
41325
+ message.voiceFilePath = reader.string();
41326
+ break;
41327
+ case 5:
41328
+ message.mixedFilePath = reader.string();
41329
+ break;
41330
+ case 6:
41331
+ message.createdAt = reader.uint64();
41332
+ break;
41333
+ default:
41334
+ reader.skipType(tag & 7);
41335
+ break;
41336
+ }
41337
+ }
41338
+ return message;
41339
+ };
41340
+
41341
+ /**
41342
+ * Decodes a SleepcastVariantCreated message from the specified reader or buffer, length delimited.
41343
+ * @function decodeDelimited
41344
+ * @memberof SleepcastVariantCreated
41345
+ * @static
41346
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
41347
+ * @returns {SleepcastVariantCreated} SleepcastVariantCreated
41348
+ * @throws {Error} If the payload is not a reader or valid buffer
41349
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
41350
+ */
41351
+ SleepcastVariantCreated.decodeDelimited = function decodeDelimited(reader) {
41352
+ if (!(reader instanceof $Reader))
41353
+ reader = new $Reader(reader);
41354
+ return this.decode(reader, reader.uint32());
41355
+ };
41356
+
41357
+ /**
41358
+ * Verifies a SleepcastVariantCreated message.
41359
+ * @function verify
41360
+ * @memberof SleepcastVariantCreated
41361
+ * @static
41362
+ * @param {Object.<string,*>} message Plain object to verify
41363
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
41364
+ */
41365
+ SleepcastVariantCreated.verify = function verify(message) {
41366
+ if (typeof message !== "object" || message === null)
41367
+ return "object expected";
41368
+ if (message.id != null && message.hasOwnProperty("id"))
41369
+ if (!$util.isString(message.id))
41370
+ return "id: string expected";
41371
+ if (message.sleepcastId != null && message.hasOwnProperty("sleepcastId"))
41372
+ if (!$util.isInteger(message.sleepcastId))
41373
+ return "sleepcastId: integer expected";
41374
+ if (message.ambientFilePath != null && message.hasOwnProperty("ambientFilePath"))
41375
+ if (!$util.isString(message.ambientFilePath))
41376
+ return "ambientFilePath: string expected";
41377
+ if (message.voiceFilePath != null && message.hasOwnProperty("voiceFilePath"))
41378
+ if (!$util.isString(message.voiceFilePath))
41379
+ return "voiceFilePath: string expected";
41380
+ if (message.mixedFilePath != null && message.hasOwnProperty("mixedFilePath"))
41381
+ if (!$util.isString(message.mixedFilePath))
41382
+ return "mixedFilePath: string expected";
41383
+ if (message.createdAt != null && message.hasOwnProperty("createdAt"))
41384
+ if (!$util.isInteger(message.createdAt) && !(message.createdAt && $util.isInteger(message.createdAt.low) && $util.isInteger(message.createdAt.high)))
41385
+ return "createdAt: integer|Long expected";
41386
+ return null;
41387
+ };
41388
+
41389
+ /**
41390
+ * Creates a SleepcastVariantCreated message from a plain object. Also converts values to their respective internal types.
41391
+ * @function fromObject
41392
+ * @memberof SleepcastVariantCreated
41393
+ * @static
41394
+ * @param {Object.<string,*>} object Plain object
41395
+ * @returns {SleepcastVariantCreated} SleepcastVariantCreated
41396
+ */
41397
+ SleepcastVariantCreated.fromObject = function fromObject(object) {
41398
+ if (object instanceof $root.SleepcastVariantCreated)
41399
+ return object;
41400
+ var message = new $root.SleepcastVariantCreated();
41401
+ if (object.id != null)
41402
+ message.id = String(object.id);
41403
+ if (object.sleepcastId != null)
41404
+ message.sleepcastId = object.sleepcastId | 0;
41405
+ if (object.ambientFilePath != null)
41406
+ message.ambientFilePath = String(object.ambientFilePath);
41407
+ if (object.voiceFilePath != null)
41408
+ message.voiceFilePath = String(object.voiceFilePath);
41409
+ if (object.mixedFilePath != null)
41410
+ message.mixedFilePath = String(object.mixedFilePath);
41411
+ if (object.createdAt != null)
41412
+ if ($util.Long)
41413
+ (message.createdAt = $util.Long.fromValue(object.createdAt)).unsigned = true;
41414
+ else if (typeof object.createdAt === "string")
41415
+ message.createdAt = parseInt(object.createdAt, 10);
41416
+ else if (typeof object.createdAt === "number")
41417
+ message.createdAt = object.createdAt;
41418
+ else if (typeof object.createdAt === "object")
41419
+ message.createdAt = new $util.LongBits(object.createdAt.low >>> 0, object.createdAt.high >>> 0).toNumber(true);
41420
+ return message;
41421
+ };
41422
+
41423
+ /**
41424
+ * Creates a plain object from a SleepcastVariantCreated message. Also converts values to other types if specified.
41425
+ * @function toObject
41426
+ * @memberof SleepcastVariantCreated
41427
+ * @static
41428
+ * @param {SleepcastVariantCreated} message SleepcastVariantCreated
41429
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
41430
+ * @returns {Object.<string,*>} Plain object
41431
+ */
41432
+ SleepcastVariantCreated.toObject = function toObject(message, options) {
41433
+ if (!options)
41434
+ options = {};
41435
+ var object = {};
41436
+ if (options.defaults) {
41437
+ object.id = "";
41438
+ object.sleepcastId = 0;
41439
+ object.ambientFilePath = "";
41440
+ object.voiceFilePath = "";
41441
+ object.mixedFilePath = "";
41442
+ if ($util.Long) {
41443
+ var long = new $util.Long(0, 0, true);
41444
+ object.createdAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
41445
+ } else
41446
+ object.createdAt = options.longs === String ? "0" : 0;
41447
+ }
41448
+ if (message.id != null && message.hasOwnProperty("id"))
41449
+ object.id = message.id;
41450
+ if (message.sleepcastId != null && message.hasOwnProperty("sleepcastId"))
41451
+ object.sleepcastId = message.sleepcastId;
41452
+ if (message.ambientFilePath != null && message.hasOwnProperty("ambientFilePath"))
41453
+ object.ambientFilePath = message.ambientFilePath;
41454
+ if (message.voiceFilePath != null && message.hasOwnProperty("voiceFilePath"))
41455
+ object.voiceFilePath = message.voiceFilePath;
41456
+ if (message.mixedFilePath != null && message.hasOwnProperty("mixedFilePath"))
41457
+ object.mixedFilePath = message.mixedFilePath;
41458
+ if (message.createdAt != null && message.hasOwnProperty("createdAt"))
41459
+ if (typeof message.createdAt === "number")
41460
+ object.createdAt = options.longs === String ? String(message.createdAt) : message.createdAt;
41461
+ else
41462
+ object.createdAt = options.longs === String ? $util.Long.prototype.toString.call(message.createdAt) : options.longs === Number ? new $util.LongBits(message.createdAt.low >>> 0, message.createdAt.high >>> 0).toNumber(true) : message.createdAt;
41463
+ return object;
41464
+ };
41465
+
41466
+ /**
41467
+ * Converts this SleepcastVariantCreated to JSON.
41468
+ * @function toJSON
41469
+ * @memberof SleepcastVariantCreated
41470
+ * @instance
41471
+ * @returns {Object.<string,*>} JSON object
41472
+ */
41473
+ SleepcastVariantCreated.prototype.toJSON = function toJSON() {
41474
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
41475
+ };
41476
+
41477
+ return SleepcastVariantCreated;
41478
+ })();
41479
+
40892
41480
  $root.SleepcastCreated = (function() {
40893
41481
 
40894
41482
  /**
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.197.0"
20
20
  }