@headspace/protos-events 1.187.0 → 1.188.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
@@ -15192,6 +15192,318 @@ export class AssignmentAllocationBatchPushed implements IAssignmentAllocationBat
15192
15192
  public toJSON(): { [k: string]: any };
15193
15193
  }
15194
15194
 
15195
+ /** Properties of a SleepcastCreated. */
15196
+ export interface ISleepcastCreated {
15197
+
15198
+ /** SleepcastCreated slug */
15199
+ slug?: (string|null);
15200
+
15201
+ /** SleepcastCreated entityId */
15202
+ entityId?: (string|null);
15203
+
15204
+ /** SleepcastCreated accessGroup */
15205
+ accessGroup?: (contentful.ISlugReference[]|null);
15206
+
15207
+ /** SleepcastCreated createdAt */
15208
+ createdAt?: (number|Long|null);
15209
+ }
15210
+
15211
+ /** Represents a SleepcastCreated. */
15212
+ export class SleepcastCreated implements ISleepcastCreated {
15213
+
15214
+ /**
15215
+ * Constructs a new SleepcastCreated.
15216
+ * @param [properties] Properties to set
15217
+ */
15218
+ constructor(properties?: ISleepcastCreated);
15219
+
15220
+ /** SleepcastCreated slug. */
15221
+ public slug: string;
15222
+
15223
+ /** SleepcastCreated entityId. */
15224
+ public entityId: string;
15225
+
15226
+ /** SleepcastCreated accessGroup. */
15227
+ public accessGroup: contentful.ISlugReference[];
15228
+
15229
+ /** SleepcastCreated createdAt. */
15230
+ public createdAt: (number|Long);
15231
+
15232
+ /**
15233
+ * Creates a new SleepcastCreated instance using the specified properties.
15234
+ * @param [properties] Properties to set
15235
+ * @returns SleepcastCreated instance
15236
+ */
15237
+ public static create(properties?: ISleepcastCreated): SleepcastCreated;
15238
+
15239
+ /**
15240
+ * Encodes the specified SleepcastCreated message. Does not implicitly {@link SleepcastCreated.verify|verify} messages.
15241
+ * @param message SleepcastCreated message or plain object to encode
15242
+ * @param [writer] Writer to encode to
15243
+ * @returns Writer
15244
+ */
15245
+ public static encode(message: ISleepcastCreated, writer?: $protobuf.Writer): $protobuf.Writer;
15246
+
15247
+ /**
15248
+ * Encodes the specified SleepcastCreated message, length delimited. Does not implicitly {@link SleepcastCreated.verify|verify} messages.
15249
+ * @param message SleepcastCreated message or plain object to encode
15250
+ * @param [writer] Writer to encode to
15251
+ * @returns Writer
15252
+ */
15253
+ public static encodeDelimited(message: ISleepcastCreated, writer?: $protobuf.Writer): $protobuf.Writer;
15254
+
15255
+ /**
15256
+ * Decodes a SleepcastCreated message from the specified reader or buffer.
15257
+ * @param reader Reader or buffer to decode from
15258
+ * @param [length] Message length if known beforehand
15259
+ * @returns SleepcastCreated
15260
+ * @throws {Error} If the payload is not a reader or valid buffer
15261
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
15262
+ */
15263
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): SleepcastCreated;
15264
+
15265
+ /**
15266
+ * Decodes a SleepcastCreated message from the specified reader or buffer, length delimited.
15267
+ * @param reader Reader or buffer to decode from
15268
+ * @returns SleepcastCreated
15269
+ * @throws {Error} If the payload is not a reader or valid buffer
15270
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
15271
+ */
15272
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): SleepcastCreated;
15273
+
15274
+ /**
15275
+ * Verifies a SleepcastCreated message.
15276
+ * @param message Plain object to verify
15277
+ * @returns `null` if valid, otherwise the reason why it is not
15278
+ */
15279
+ public static verify(message: { [k: string]: any }): (string|null);
15280
+
15281
+ /**
15282
+ * Creates a SleepcastCreated message from a plain object. Also converts values to their respective internal types.
15283
+ * @param object Plain object
15284
+ * @returns SleepcastCreated
15285
+ */
15286
+ public static fromObject(object: { [k: string]: any }): SleepcastCreated;
15287
+
15288
+ /**
15289
+ * Creates a plain object from a SleepcastCreated message. Also converts values to other types if specified.
15290
+ * @param message SleepcastCreated
15291
+ * @param [options] Conversion options
15292
+ * @returns Plain object
15293
+ */
15294
+ public static toObject(message: SleepcastCreated, options?: $protobuf.IConversionOptions): { [k: string]: any };
15295
+
15296
+ /**
15297
+ * Converts this SleepcastCreated to JSON.
15298
+ * @returns JSON object
15299
+ */
15300
+ public toJSON(): { [k: string]: any };
15301
+ }
15302
+
15303
+ /** Properties of a SleepcastUpdated. */
15304
+ export interface ISleepcastUpdated {
15305
+
15306
+ /** SleepcastUpdated slug */
15307
+ slug?: (string|null);
15308
+
15309
+ /** SleepcastUpdated entityId */
15310
+ entityId?: (string|null);
15311
+
15312
+ /** SleepcastUpdated accessGroup */
15313
+ accessGroup?: (contentful.ISlugReference[]|null);
15314
+
15315
+ /** SleepcastUpdated updatedAt */
15316
+ updatedAt?: (number|Long|null);
15317
+ }
15318
+
15319
+ /** Represents a SleepcastUpdated. */
15320
+ export class SleepcastUpdated implements ISleepcastUpdated {
15321
+
15322
+ /**
15323
+ * Constructs a new SleepcastUpdated.
15324
+ * @param [properties] Properties to set
15325
+ */
15326
+ constructor(properties?: ISleepcastUpdated);
15327
+
15328
+ /** SleepcastUpdated slug. */
15329
+ public slug: string;
15330
+
15331
+ /** SleepcastUpdated entityId. */
15332
+ public entityId: string;
15333
+
15334
+ /** SleepcastUpdated accessGroup. */
15335
+ public accessGroup: contentful.ISlugReference[];
15336
+
15337
+ /** SleepcastUpdated updatedAt. */
15338
+ public updatedAt: (number|Long);
15339
+
15340
+ /**
15341
+ * Creates a new SleepcastUpdated instance using the specified properties.
15342
+ * @param [properties] Properties to set
15343
+ * @returns SleepcastUpdated instance
15344
+ */
15345
+ public static create(properties?: ISleepcastUpdated): SleepcastUpdated;
15346
+
15347
+ /**
15348
+ * Encodes the specified SleepcastUpdated message. Does not implicitly {@link SleepcastUpdated.verify|verify} messages.
15349
+ * @param message SleepcastUpdated message or plain object to encode
15350
+ * @param [writer] Writer to encode to
15351
+ * @returns Writer
15352
+ */
15353
+ public static encode(message: ISleepcastUpdated, writer?: $protobuf.Writer): $protobuf.Writer;
15354
+
15355
+ /**
15356
+ * Encodes the specified SleepcastUpdated message, length delimited. Does not implicitly {@link SleepcastUpdated.verify|verify} messages.
15357
+ * @param message SleepcastUpdated message or plain object to encode
15358
+ * @param [writer] Writer to encode to
15359
+ * @returns Writer
15360
+ */
15361
+ public static encodeDelimited(message: ISleepcastUpdated, writer?: $protobuf.Writer): $protobuf.Writer;
15362
+
15363
+ /**
15364
+ * Decodes a SleepcastUpdated message from the specified reader or buffer.
15365
+ * @param reader Reader or buffer to decode from
15366
+ * @param [length] Message length if known beforehand
15367
+ * @returns SleepcastUpdated
15368
+ * @throws {Error} If the payload is not a reader or valid buffer
15369
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
15370
+ */
15371
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): SleepcastUpdated;
15372
+
15373
+ /**
15374
+ * Decodes a SleepcastUpdated message from the specified reader or buffer, length delimited.
15375
+ * @param reader Reader or buffer to decode from
15376
+ * @returns SleepcastUpdated
15377
+ * @throws {Error} If the payload is not a reader or valid buffer
15378
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
15379
+ */
15380
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): SleepcastUpdated;
15381
+
15382
+ /**
15383
+ * Verifies a SleepcastUpdated message.
15384
+ * @param message Plain object to verify
15385
+ * @returns `null` if valid, otherwise the reason why it is not
15386
+ */
15387
+ public static verify(message: { [k: string]: any }): (string|null);
15388
+
15389
+ /**
15390
+ * Creates a SleepcastUpdated message from a plain object. Also converts values to their respective internal types.
15391
+ * @param object Plain object
15392
+ * @returns SleepcastUpdated
15393
+ */
15394
+ public static fromObject(object: { [k: string]: any }): SleepcastUpdated;
15395
+
15396
+ /**
15397
+ * Creates a plain object from a SleepcastUpdated message. Also converts values to other types if specified.
15398
+ * @param message SleepcastUpdated
15399
+ * @param [options] Conversion options
15400
+ * @returns Plain object
15401
+ */
15402
+ public static toObject(message: SleepcastUpdated, options?: $protobuf.IConversionOptions): { [k: string]: any };
15403
+
15404
+ /**
15405
+ * Converts this SleepcastUpdated to JSON.
15406
+ * @returns JSON object
15407
+ */
15408
+ public toJSON(): { [k: string]: any };
15409
+ }
15410
+
15411
+ /** Properties of a SleepcastDeleted. */
15412
+ export interface ISleepcastDeleted {
15413
+
15414
+ /** SleepcastDeleted slug */
15415
+ slug?: (string|null);
15416
+
15417
+ /** SleepcastDeleted deletedAt */
15418
+ deletedAt?: (number|Long|null);
15419
+ }
15420
+
15421
+ /** Represents a SleepcastDeleted. */
15422
+ export class SleepcastDeleted implements ISleepcastDeleted {
15423
+
15424
+ /**
15425
+ * Constructs a new SleepcastDeleted.
15426
+ * @param [properties] Properties to set
15427
+ */
15428
+ constructor(properties?: ISleepcastDeleted);
15429
+
15430
+ /** SleepcastDeleted slug. */
15431
+ public slug: string;
15432
+
15433
+ /** SleepcastDeleted deletedAt. */
15434
+ public deletedAt: (number|Long);
15435
+
15436
+ /**
15437
+ * Creates a new SleepcastDeleted instance using the specified properties.
15438
+ * @param [properties] Properties to set
15439
+ * @returns SleepcastDeleted instance
15440
+ */
15441
+ public static create(properties?: ISleepcastDeleted): SleepcastDeleted;
15442
+
15443
+ /**
15444
+ * Encodes the specified SleepcastDeleted message. Does not implicitly {@link SleepcastDeleted.verify|verify} messages.
15445
+ * @param message SleepcastDeleted message or plain object to encode
15446
+ * @param [writer] Writer to encode to
15447
+ * @returns Writer
15448
+ */
15449
+ public static encode(message: ISleepcastDeleted, writer?: $protobuf.Writer): $protobuf.Writer;
15450
+
15451
+ /**
15452
+ * Encodes the specified SleepcastDeleted message, length delimited. Does not implicitly {@link SleepcastDeleted.verify|verify} messages.
15453
+ * @param message SleepcastDeleted message or plain object to encode
15454
+ * @param [writer] Writer to encode to
15455
+ * @returns Writer
15456
+ */
15457
+ public static encodeDelimited(message: ISleepcastDeleted, writer?: $protobuf.Writer): $protobuf.Writer;
15458
+
15459
+ /**
15460
+ * Decodes a SleepcastDeleted message from the specified reader or buffer.
15461
+ * @param reader Reader or buffer to decode from
15462
+ * @param [length] Message length if known beforehand
15463
+ * @returns SleepcastDeleted
15464
+ * @throws {Error} If the payload is not a reader or valid buffer
15465
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
15466
+ */
15467
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): SleepcastDeleted;
15468
+
15469
+ /**
15470
+ * Decodes a SleepcastDeleted message from the specified reader or buffer, length delimited.
15471
+ * @param reader Reader or buffer to decode from
15472
+ * @returns SleepcastDeleted
15473
+ * @throws {Error} If the payload is not a reader or valid buffer
15474
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
15475
+ */
15476
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): SleepcastDeleted;
15477
+
15478
+ /**
15479
+ * Verifies a SleepcastDeleted message.
15480
+ * @param message Plain object to verify
15481
+ * @returns `null` if valid, otherwise the reason why it is not
15482
+ */
15483
+ public static verify(message: { [k: string]: any }): (string|null);
15484
+
15485
+ /**
15486
+ * Creates a SleepcastDeleted message from a plain object. Also converts values to their respective internal types.
15487
+ * @param object Plain object
15488
+ * @returns SleepcastDeleted
15489
+ */
15490
+ public static fromObject(object: { [k: string]: any }): SleepcastDeleted;
15491
+
15492
+ /**
15493
+ * Creates a plain object from a SleepcastDeleted message. Also converts values to other types if specified.
15494
+ * @param message SleepcastDeleted
15495
+ * @param [options] Conversion options
15496
+ * @returns Plain object
15497
+ */
15498
+ public static toObject(message: SleepcastDeleted, options?: $protobuf.IConversionOptions): { [k: string]: any };
15499
+
15500
+ /**
15501
+ * Converts this SleepcastDeleted to JSON.
15502
+ * @returns JSON object
15503
+ */
15504
+ public toJSON(): { [k: string]: any };
15505
+ }
15506
+
15195
15507
  /** Properties of an IosSubscriptionCreated. */
15196
15508
  export interface IIosSubscriptionCreated {
15197
15509
 
package/lib/index.js CHANGED
@@ -42236,6 +42236,810 @@ $root.AssignmentAllocationBatchPushed = (function() {
42236
42236
  return AssignmentAllocationBatchPushed;
42237
42237
  })();
42238
42238
 
42239
+ $root.SleepcastCreated = (function() {
42240
+
42241
+ /**
42242
+ * Properties of a SleepcastCreated.
42243
+ * @exports ISleepcastCreated
42244
+ * @interface ISleepcastCreated
42245
+ * @property {string|null} [slug] SleepcastCreated slug
42246
+ * @property {string|null} [entityId] SleepcastCreated entityId
42247
+ * @property {Array.<contentful.ISlugReference>|null} [accessGroup] SleepcastCreated accessGroup
42248
+ * @property {number|Long|null} [createdAt] SleepcastCreated createdAt
42249
+ */
42250
+
42251
+ /**
42252
+ * Constructs a new SleepcastCreated.
42253
+ * @exports SleepcastCreated
42254
+ * @classdesc Represents a SleepcastCreated.
42255
+ * @implements ISleepcastCreated
42256
+ * @constructor
42257
+ * @param {ISleepcastCreated=} [properties] Properties to set
42258
+ */
42259
+ function SleepcastCreated(properties) {
42260
+ this.accessGroup = [];
42261
+ if (properties)
42262
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
42263
+ if (properties[keys[i]] != null)
42264
+ this[keys[i]] = properties[keys[i]];
42265
+ }
42266
+
42267
+ /**
42268
+ * SleepcastCreated slug.
42269
+ * @member {string} slug
42270
+ * @memberof SleepcastCreated
42271
+ * @instance
42272
+ */
42273
+ SleepcastCreated.prototype.slug = "";
42274
+
42275
+ /**
42276
+ * SleepcastCreated entityId.
42277
+ * @member {string} entityId
42278
+ * @memberof SleepcastCreated
42279
+ * @instance
42280
+ */
42281
+ SleepcastCreated.prototype.entityId = "";
42282
+
42283
+ /**
42284
+ * SleepcastCreated accessGroup.
42285
+ * @member {Array.<contentful.ISlugReference>} accessGroup
42286
+ * @memberof SleepcastCreated
42287
+ * @instance
42288
+ */
42289
+ SleepcastCreated.prototype.accessGroup = $util.emptyArray;
42290
+
42291
+ /**
42292
+ * SleepcastCreated createdAt.
42293
+ * @member {number|Long} createdAt
42294
+ * @memberof SleepcastCreated
42295
+ * @instance
42296
+ */
42297
+ SleepcastCreated.prototype.createdAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
42298
+
42299
+ /**
42300
+ * Creates a new SleepcastCreated instance using the specified properties.
42301
+ * @function create
42302
+ * @memberof SleepcastCreated
42303
+ * @static
42304
+ * @param {ISleepcastCreated=} [properties] Properties to set
42305
+ * @returns {SleepcastCreated} SleepcastCreated instance
42306
+ */
42307
+ SleepcastCreated.create = function create(properties) {
42308
+ return new SleepcastCreated(properties);
42309
+ };
42310
+
42311
+ /**
42312
+ * Encodes the specified SleepcastCreated message. Does not implicitly {@link SleepcastCreated.verify|verify} messages.
42313
+ * @function encode
42314
+ * @memberof SleepcastCreated
42315
+ * @static
42316
+ * @param {ISleepcastCreated} message SleepcastCreated message or plain object to encode
42317
+ * @param {$protobuf.Writer} [writer] Writer to encode to
42318
+ * @returns {$protobuf.Writer} Writer
42319
+ */
42320
+ SleepcastCreated.encode = function encode(message, writer) {
42321
+ if (!writer)
42322
+ writer = $Writer.create();
42323
+ if (message.slug != null && message.hasOwnProperty("slug"))
42324
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.slug);
42325
+ if (message.entityId != null && message.hasOwnProperty("entityId"))
42326
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.entityId);
42327
+ if (message.accessGroup != null && message.accessGroup.length)
42328
+ for (var i = 0; i < message.accessGroup.length; ++i)
42329
+ $root.contentful.SlugReference.encode(message.accessGroup[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
42330
+ if (message.createdAt != null && message.hasOwnProperty("createdAt"))
42331
+ writer.uint32(/* id 4, wireType 0 =*/32).uint64(message.createdAt);
42332
+ return writer;
42333
+ };
42334
+
42335
+ /**
42336
+ * Encodes the specified SleepcastCreated message, length delimited. Does not implicitly {@link SleepcastCreated.verify|verify} messages.
42337
+ * @function encodeDelimited
42338
+ * @memberof SleepcastCreated
42339
+ * @static
42340
+ * @param {ISleepcastCreated} message SleepcastCreated message or plain object to encode
42341
+ * @param {$protobuf.Writer} [writer] Writer to encode to
42342
+ * @returns {$protobuf.Writer} Writer
42343
+ */
42344
+ SleepcastCreated.encodeDelimited = function encodeDelimited(message, writer) {
42345
+ return this.encode(message, writer).ldelim();
42346
+ };
42347
+
42348
+ /**
42349
+ * Decodes a SleepcastCreated message from the specified reader or buffer.
42350
+ * @function decode
42351
+ * @memberof SleepcastCreated
42352
+ * @static
42353
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
42354
+ * @param {number} [length] Message length if known beforehand
42355
+ * @returns {SleepcastCreated} SleepcastCreated
42356
+ * @throws {Error} If the payload is not a reader or valid buffer
42357
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
42358
+ */
42359
+ SleepcastCreated.decode = function decode(reader, length) {
42360
+ if (!(reader instanceof $Reader))
42361
+ reader = $Reader.create(reader);
42362
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.SleepcastCreated();
42363
+ while (reader.pos < end) {
42364
+ var tag = reader.uint32();
42365
+ switch (tag >>> 3) {
42366
+ case 1:
42367
+ message.slug = reader.string();
42368
+ break;
42369
+ case 2:
42370
+ message.entityId = reader.string();
42371
+ break;
42372
+ case 3:
42373
+ if (!(message.accessGroup && message.accessGroup.length))
42374
+ message.accessGroup = [];
42375
+ message.accessGroup.push($root.contentful.SlugReference.decode(reader, reader.uint32()));
42376
+ break;
42377
+ case 4:
42378
+ message.createdAt = reader.uint64();
42379
+ break;
42380
+ default:
42381
+ reader.skipType(tag & 7);
42382
+ break;
42383
+ }
42384
+ }
42385
+ return message;
42386
+ };
42387
+
42388
+ /**
42389
+ * Decodes a SleepcastCreated message from the specified reader or buffer, length delimited.
42390
+ * @function decodeDelimited
42391
+ * @memberof SleepcastCreated
42392
+ * @static
42393
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
42394
+ * @returns {SleepcastCreated} SleepcastCreated
42395
+ * @throws {Error} If the payload is not a reader or valid buffer
42396
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
42397
+ */
42398
+ SleepcastCreated.decodeDelimited = function decodeDelimited(reader) {
42399
+ if (!(reader instanceof $Reader))
42400
+ reader = new $Reader(reader);
42401
+ return this.decode(reader, reader.uint32());
42402
+ };
42403
+
42404
+ /**
42405
+ * Verifies a SleepcastCreated message.
42406
+ * @function verify
42407
+ * @memberof SleepcastCreated
42408
+ * @static
42409
+ * @param {Object.<string,*>} message Plain object to verify
42410
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
42411
+ */
42412
+ SleepcastCreated.verify = function verify(message) {
42413
+ if (typeof message !== "object" || message === null)
42414
+ return "object expected";
42415
+ if (message.slug != null && message.hasOwnProperty("slug"))
42416
+ if (!$util.isString(message.slug))
42417
+ return "slug: string expected";
42418
+ if (message.entityId != null && message.hasOwnProperty("entityId"))
42419
+ if (!$util.isString(message.entityId))
42420
+ return "entityId: string expected";
42421
+ if (message.accessGroup != null && message.hasOwnProperty("accessGroup")) {
42422
+ if (!Array.isArray(message.accessGroup))
42423
+ return "accessGroup: array expected";
42424
+ for (var i = 0; i < message.accessGroup.length; ++i) {
42425
+ var error = $root.contentful.SlugReference.verify(message.accessGroup[i]);
42426
+ if (error)
42427
+ return "accessGroup." + error;
42428
+ }
42429
+ }
42430
+ if (message.createdAt != null && message.hasOwnProperty("createdAt"))
42431
+ if (!$util.isInteger(message.createdAt) && !(message.createdAt && $util.isInteger(message.createdAt.low) && $util.isInteger(message.createdAt.high)))
42432
+ return "createdAt: integer|Long expected";
42433
+ return null;
42434
+ };
42435
+
42436
+ /**
42437
+ * Creates a SleepcastCreated message from a plain object. Also converts values to their respective internal types.
42438
+ * @function fromObject
42439
+ * @memberof SleepcastCreated
42440
+ * @static
42441
+ * @param {Object.<string,*>} object Plain object
42442
+ * @returns {SleepcastCreated} SleepcastCreated
42443
+ */
42444
+ SleepcastCreated.fromObject = function fromObject(object) {
42445
+ if (object instanceof $root.SleepcastCreated)
42446
+ return object;
42447
+ var message = new $root.SleepcastCreated();
42448
+ if (object.slug != null)
42449
+ message.slug = String(object.slug);
42450
+ if (object.entityId != null)
42451
+ message.entityId = String(object.entityId);
42452
+ if (object.accessGroup) {
42453
+ if (!Array.isArray(object.accessGroup))
42454
+ throw TypeError(".SleepcastCreated.accessGroup: array expected");
42455
+ message.accessGroup = [];
42456
+ for (var i = 0; i < object.accessGroup.length; ++i) {
42457
+ if (typeof object.accessGroup[i] !== "object")
42458
+ throw TypeError(".SleepcastCreated.accessGroup: object expected");
42459
+ message.accessGroup[i] = $root.contentful.SlugReference.fromObject(object.accessGroup[i]);
42460
+ }
42461
+ }
42462
+ if (object.createdAt != null)
42463
+ if ($util.Long)
42464
+ (message.createdAt = $util.Long.fromValue(object.createdAt)).unsigned = true;
42465
+ else if (typeof object.createdAt === "string")
42466
+ message.createdAt = parseInt(object.createdAt, 10);
42467
+ else if (typeof object.createdAt === "number")
42468
+ message.createdAt = object.createdAt;
42469
+ else if (typeof object.createdAt === "object")
42470
+ message.createdAt = new $util.LongBits(object.createdAt.low >>> 0, object.createdAt.high >>> 0).toNumber(true);
42471
+ return message;
42472
+ };
42473
+
42474
+ /**
42475
+ * Creates a plain object from a SleepcastCreated message. Also converts values to other types if specified.
42476
+ * @function toObject
42477
+ * @memberof SleepcastCreated
42478
+ * @static
42479
+ * @param {SleepcastCreated} message SleepcastCreated
42480
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
42481
+ * @returns {Object.<string,*>} Plain object
42482
+ */
42483
+ SleepcastCreated.toObject = function toObject(message, options) {
42484
+ if (!options)
42485
+ options = {};
42486
+ var object = {};
42487
+ if (options.arrays || options.defaults)
42488
+ object.accessGroup = [];
42489
+ if (options.defaults) {
42490
+ object.slug = "";
42491
+ object.entityId = "";
42492
+ if ($util.Long) {
42493
+ var long = new $util.Long(0, 0, true);
42494
+ object.createdAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
42495
+ } else
42496
+ object.createdAt = options.longs === String ? "0" : 0;
42497
+ }
42498
+ if (message.slug != null && message.hasOwnProperty("slug"))
42499
+ object.slug = message.slug;
42500
+ if (message.entityId != null && message.hasOwnProperty("entityId"))
42501
+ object.entityId = message.entityId;
42502
+ if (message.accessGroup && message.accessGroup.length) {
42503
+ object.accessGroup = [];
42504
+ for (var j = 0; j < message.accessGroup.length; ++j)
42505
+ object.accessGroup[j] = $root.contentful.SlugReference.toObject(message.accessGroup[j], options);
42506
+ }
42507
+ if (message.createdAt != null && message.hasOwnProperty("createdAt"))
42508
+ if (typeof message.createdAt === "number")
42509
+ object.createdAt = options.longs === String ? String(message.createdAt) : message.createdAt;
42510
+ else
42511
+ 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;
42512
+ return object;
42513
+ };
42514
+
42515
+ /**
42516
+ * Converts this SleepcastCreated to JSON.
42517
+ * @function toJSON
42518
+ * @memberof SleepcastCreated
42519
+ * @instance
42520
+ * @returns {Object.<string,*>} JSON object
42521
+ */
42522
+ SleepcastCreated.prototype.toJSON = function toJSON() {
42523
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
42524
+ };
42525
+
42526
+ return SleepcastCreated;
42527
+ })();
42528
+
42529
+ $root.SleepcastUpdated = (function() {
42530
+
42531
+ /**
42532
+ * Properties of a SleepcastUpdated.
42533
+ * @exports ISleepcastUpdated
42534
+ * @interface ISleepcastUpdated
42535
+ * @property {string|null} [slug] SleepcastUpdated slug
42536
+ * @property {string|null} [entityId] SleepcastUpdated entityId
42537
+ * @property {Array.<contentful.ISlugReference>|null} [accessGroup] SleepcastUpdated accessGroup
42538
+ * @property {number|Long|null} [updatedAt] SleepcastUpdated updatedAt
42539
+ */
42540
+
42541
+ /**
42542
+ * Constructs a new SleepcastUpdated.
42543
+ * @exports SleepcastUpdated
42544
+ * @classdesc Represents a SleepcastUpdated.
42545
+ * @implements ISleepcastUpdated
42546
+ * @constructor
42547
+ * @param {ISleepcastUpdated=} [properties] Properties to set
42548
+ */
42549
+ function SleepcastUpdated(properties) {
42550
+ this.accessGroup = [];
42551
+ if (properties)
42552
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
42553
+ if (properties[keys[i]] != null)
42554
+ this[keys[i]] = properties[keys[i]];
42555
+ }
42556
+
42557
+ /**
42558
+ * SleepcastUpdated slug.
42559
+ * @member {string} slug
42560
+ * @memberof SleepcastUpdated
42561
+ * @instance
42562
+ */
42563
+ SleepcastUpdated.prototype.slug = "";
42564
+
42565
+ /**
42566
+ * SleepcastUpdated entityId.
42567
+ * @member {string} entityId
42568
+ * @memberof SleepcastUpdated
42569
+ * @instance
42570
+ */
42571
+ SleepcastUpdated.prototype.entityId = "";
42572
+
42573
+ /**
42574
+ * SleepcastUpdated accessGroup.
42575
+ * @member {Array.<contentful.ISlugReference>} accessGroup
42576
+ * @memberof SleepcastUpdated
42577
+ * @instance
42578
+ */
42579
+ SleepcastUpdated.prototype.accessGroup = $util.emptyArray;
42580
+
42581
+ /**
42582
+ * SleepcastUpdated updatedAt.
42583
+ * @member {number|Long} updatedAt
42584
+ * @memberof SleepcastUpdated
42585
+ * @instance
42586
+ */
42587
+ SleepcastUpdated.prototype.updatedAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
42588
+
42589
+ /**
42590
+ * Creates a new SleepcastUpdated instance using the specified properties.
42591
+ * @function create
42592
+ * @memberof SleepcastUpdated
42593
+ * @static
42594
+ * @param {ISleepcastUpdated=} [properties] Properties to set
42595
+ * @returns {SleepcastUpdated} SleepcastUpdated instance
42596
+ */
42597
+ SleepcastUpdated.create = function create(properties) {
42598
+ return new SleepcastUpdated(properties);
42599
+ };
42600
+
42601
+ /**
42602
+ * Encodes the specified SleepcastUpdated message. Does not implicitly {@link SleepcastUpdated.verify|verify} messages.
42603
+ * @function encode
42604
+ * @memberof SleepcastUpdated
42605
+ * @static
42606
+ * @param {ISleepcastUpdated} message SleepcastUpdated message or plain object to encode
42607
+ * @param {$protobuf.Writer} [writer] Writer to encode to
42608
+ * @returns {$protobuf.Writer} Writer
42609
+ */
42610
+ SleepcastUpdated.encode = function encode(message, writer) {
42611
+ if (!writer)
42612
+ writer = $Writer.create();
42613
+ if (message.slug != null && message.hasOwnProperty("slug"))
42614
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.slug);
42615
+ if (message.entityId != null && message.hasOwnProperty("entityId"))
42616
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.entityId);
42617
+ if (message.accessGroup != null && message.accessGroup.length)
42618
+ for (var i = 0; i < message.accessGroup.length; ++i)
42619
+ $root.contentful.SlugReference.encode(message.accessGroup[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
42620
+ if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
42621
+ writer.uint32(/* id 4, wireType 0 =*/32).uint64(message.updatedAt);
42622
+ return writer;
42623
+ };
42624
+
42625
+ /**
42626
+ * Encodes the specified SleepcastUpdated message, length delimited. Does not implicitly {@link SleepcastUpdated.verify|verify} messages.
42627
+ * @function encodeDelimited
42628
+ * @memberof SleepcastUpdated
42629
+ * @static
42630
+ * @param {ISleepcastUpdated} message SleepcastUpdated message or plain object to encode
42631
+ * @param {$protobuf.Writer} [writer] Writer to encode to
42632
+ * @returns {$protobuf.Writer} Writer
42633
+ */
42634
+ SleepcastUpdated.encodeDelimited = function encodeDelimited(message, writer) {
42635
+ return this.encode(message, writer).ldelim();
42636
+ };
42637
+
42638
+ /**
42639
+ * Decodes a SleepcastUpdated message from the specified reader or buffer.
42640
+ * @function decode
42641
+ * @memberof SleepcastUpdated
42642
+ * @static
42643
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
42644
+ * @param {number} [length] Message length if known beforehand
42645
+ * @returns {SleepcastUpdated} SleepcastUpdated
42646
+ * @throws {Error} If the payload is not a reader or valid buffer
42647
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
42648
+ */
42649
+ SleepcastUpdated.decode = function decode(reader, length) {
42650
+ if (!(reader instanceof $Reader))
42651
+ reader = $Reader.create(reader);
42652
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.SleepcastUpdated();
42653
+ while (reader.pos < end) {
42654
+ var tag = reader.uint32();
42655
+ switch (tag >>> 3) {
42656
+ case 1:
42657
+ message.slug = reader.string();
42658
+ break;
42659
+ case 2:
42660
+ message.entityId = reader.string();
42661
+ break;
42662
+ case 3:
42663
+ if (!(message.accessGroup && message.accessGroup.length))
42664
+ message.accessGroup = [];
42665
+ message.accessGroup.push($root.contentful.SlugReference.decode(reader, reader.uint32()));
42666
+ break;
42667
+ case 4:
42668
+ message.updatedAt = reader.uint64();
42669
+ break;
42670
+ default:
42671
+ reader.skipType(tag & 7);
42672
+ break;
42673
+ }
42674
+ }
42675
+ return message;
42676
+ };
42677
+
42678
+ /**
42679
+ * Decodes a SleepcastUpdated message from the specified reader or buffer, length delimited.
42680
+ * @function decodeDelimited
42681
+ * @memberof SleepcastUpdated
42682
+ * @static
42683
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
42684
+ * @returns {SleepcastUpdated} SleepcastUpdated
42685
+ * @throws {Error} If the payload is not a reader or valid buffer
42686
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
42687
+ */
42688
+ SleepcastUpdated.decodeDelimited = function decodeDelimited(reader) {
42689
+ if (!(reader instanceof $Reader))
42690
+ reader = new $Reader(reader);
42691
+ return this.decode(reader, reader.uint32());
42692
+ };
42693
+
42694
+ /**
42695
+ * Verifies a SleepcastUpdated message.
42696
+ * @function verify
42697
+ * @memberof SleepcastUpdated
42698
+ * @static
42699
+ * @param {Object.<string,*>} message Plain object to verify
42700
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
42701
+ */
42702
+ SleepcastUpdated.verify = function verify(message) {
42703
+ if (typeof message !== "object" || message === null)
42704
+ return "object expected";
42705
+ if (message.slug != null && message.hasOwnProperty("slug"))
42706
+ if (!$util.isString(message.slug))
42707
+ return "slug: string expected";
42708
+ if (message.entityId != null && message.hasOwnProperty("entityId"))
42709
+ if (!$util.isString(message.entityId))
42710
+ return "entityId: string expected";
42711
+ if (message.accessGroup != null && message.hasOwnProperty("accessGroup")) {
42712
+ if (!Array.isArray(message.accessGroup))
42713
+ return "accessGroup: array expected";
42714
+ for (var i = 0; i < message.accessGroup.length; ++i) {
42715
+ var error = $root.contentful.SlugReference.verify(message.accessGroup[i]);
42716
+ if (error)
42717
+ return "accessGroup." + error;
42718
+ }
42719
+ }
42720
+ if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
42721
+ if (!$util.isInteger(message.updatedAt) && !(message.updatedAt && $util.isInteger(message.updatedAt.low) && $util.isInteger(message.updatedAt.high)))
42722
+ return "updatedAt: integer|Long expected";
42723
+ return null;
42724
+ };
42725
+
42726
+ /**
42727
+ * Creates a SleepcastUpdated message from a plain object. Also converts values to their respective internal types.
42728
+ * @function fromObject
42729
+ * @memberof SleepcastUpdated
42730
+ * @static
42731
+ * @param {Object.<string,*>} object Plain object
42732
+ * @returns {SleepcastUpdated} SleepcastUpdated
42733
+ */
42734
+ SleepcastUpdated.fromObject = function fromObject(object) {
42735
+ if (object instanceof $root.SleepcastUpdated)
42736
+ return object;
42737
+ var message = new $root.SleepcastUpdated();
42738
+ if (object.slug != null)
42739
+ message.slug = String(object.slug);
42740
+ if (object.entityId != null)
42741
+ message.entityId = String(object.entityId);
42742
+ if (object.accessGroup) {
42743
+ if (!Array.isArray(object.accessGroup))
42744
+ throw TypeError(".SleepcastUpdated.accessGroup: array expected");
42745
+ message.accessGroup = [];
42746
+ for (var i = 0; i < object.accessGroup.length; ++i) {
42747
+ if (typeof object.accessGroup[i] !== "object")
42748
+ throw TypeError(".SleepcastUpdated.accessGroup: object expected");
42749
+ message.accessGroup[i] = $root.contentful.SlugReference.fromObject(object.accessGroup[i]);
42750
+ }
42751
+ }
42752
+ if (object.updatedAt != null)
42753
+ if ($util.Long)
42754
+ (message.updatedAt = $util.Long.fromValue(object.updatedAt)).unsigned = true;
42755
+ else if (typeof object.updatedAt === "string")
42756
+ message.updatedAt = parseInt(object.updatedAt, 10);
42757
+ else if (typeof object.updatedAt === "number")
42758
+ message.updatedAt = object.updatedAt;
42759
+ else if (typeof object.updatedAt === "object")
42760
+ message.updatedAt = new $util.LongBits(object.updatedAt.low >>> 0, object.updatedAt.high >>> 0).toNumber(true);
42761
+ return message;
42762
+ };
42763
+
42764
+ /**
42765
+ * Creates a plain object from a SleepcastUpdated message. Also converts values to other types if specified.
42766
+ * @function toObject
42767
+ * @memberof SleepcastUpdated
42768
+ * @static
42769
+ * @param {SleepcastUpdated} message SleepcastUpdated
42770
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
42771
+ * @returns {Object.<string,*>} Plain object
42772
+ */
42773
+ SleepcastUpdated.toObject = function toObject(message, options) {
42774
+ if (!options)
42775
+ options = {};
42776
+ var object = {};
42777
+ if (options.arrays || options.defaults)
42778
+ object.accessGroup = [];
42779
+ if (options.defaults) {
42780
+ object.slug = "";
42781
+ object.entityId = "";
42782
+ if ($util.Long) {
42783
+ var long = new $util.Long(0, 0, true);
42784
+ object.updatedAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
42785
+ } else
42786
+ object.updatedAt = options.longs === String ? "0" : 0;
42787
+ }
42788
+ if (message.slug != null && message.hasOwnProperty("slug"))
42789
+ object.slug = message.slug;
42790
+ if (message.entityId != null && message.hasOwnProperty("entityId"))
42791
+ object.entityId = message.entityId;
42792
+ if (message.accessGroup && message.accessGroup.length) {
42793
+ object.accessGroup = [];
42794
+ for (var j = 0; j < message.accessGroup.length; ++j)
42795
+ object.accessGroup[j] = $root.contentful.SlugReference.toObject(message.accessGroup[j], options);
42796
+ }
42797
+ if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
42798
+ if (typeof message.updatedAt === "number")
42799
+ object.updatedAt = options.longs === String ? String(message.updatedAt) : message.updatedAt;
42800
+ else
42801
+ object.updatedAt = options.longs === String ? $util.Long.prototype.toString.call(message.updatedAt) : options.longs === Number ? new $util.LongBits(message.updatedAt.low >>> 0, message.updatedAt.high >>> 0).toNumber(true) : message.updatedAt;
42802
+ return object;
42803
+ };
42804
+
42805
+ /**
42806
+ * Converts this SleepcastUpdated to JSON.
42807
+ * @function toJSON
42808
+ * @memberof SleepcastUpdated
42809
+ * @instance
42810
+ * @returns {Object.<string,*>} JSON object
42811
+ */
42812
+ SleepcastUpdated.prototype.toJSON = function toJSON() {
42813
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
42814
+ };
42815
+
42816
+ return SleepcastUpdated;
42817
+ })();
42818
+
42819
+ $root.SleepcastDeleted = (function() {
42820
+
42821
+ /**
42822
+ * Properties of a SleepcastDeleted.
42823
+ * @exports ISleepcastDeleted
42824
+ * @interface ISleepcastDeleted
42825
+ * @property {string|null} [slug] SleepcastDeleted slug
42826
+ * @property {number|Long|null} [deletedAt] SleepcastDeleted deletedAt
42827
+ */
42828
+
42829
+ /**
42830
+ * Constructs a new SleepcastDeleted.
42831
+ * @exports SleepcastDeleted
42832
+ * @classdesc Represents a SleepcastDeleted.
42833
+ * @implements ISleepcastDeleted
42834
+ * @constructor
42835
+ * @param {ISleepcastDeleted=} [properties] Properties to set
42836
+ */
42837
+ function SleepcastDeleted(properties) {
42838
+ if (properties)
42839
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
42840
+ if (properties[keys[i]] != null)
42841
+ this[keys[i]] = properties[keys[i]];
42842
+ }
42843
+
42844
+ /**
42845
+ * SleepcastDeleted slug.
42846
+ * @member {string} slug
42847
+ * @memberof SleepcastDeleted
42848
+ * @instance
42849
+ */
42850
+ SleepcastDeleted.prototype.slug = "";
42851
+
42852
+ /**
42853
+ * SleepcastDeleted deletedAt.
42854
+ * @member {number|Long} deletedAt
42855
+ * @memberof SleepcastDeleted
42856
+ * @instance
42857
+ */
42858
+ SleepcastDeleted.prototype.deletedAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
42859
+
42860
+ /**
42861
+ * Creates a new SleepcastDeleted instance using the specified properties.
42862
+ * @function create
42863
+ * @memberof SleepcastDeleted
42864
+ * @static
42865
+ * @param {ISleepcastDeleted=} [properties] Properties to set
42866
+ * @returns {SleepcastDeleted} SleepcastDeleted instance
42867
+ */
42868
+ SleepcastDeleted.create = function create(properties) {
42869
+ return new SleepcastDeleted(properties);
42870
+ };
42871
+
42872
+ /**
42873
+ * Encodes the specified SleepcastDeleted message. Does not implicitly {@link SleepcastDeleted.verify|verify} messages.
42874
+ * @function encode
42875
+ * @memberof SleepcastDeleted
42876
+ * @static
42877
+ * @param {ISleepcastDeleted} message SleepcastDeleted message or plain object to encode
42878
+ * @param {$protobuf.Writer} [writer] Writer to encode to
42879
+ * @returns {$protobuf.Writer} Writer
42880
+ */
42881
+ SleepcastDeleted.encode = function encode(message, writer) {
42882
+ if (!writer)
42883
+ writer = $Writer.create();
42884
+ if (message.slug != null && message.hasOwnProperty("slug"))
42885
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.slug);
42886
+ if (message.deletedAt != null && message.hasOwnProperty("deletedAt"))
42887
+ writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.deletedAt);
42888
+ return writer;
42889
+ };
42890
+
42891
+ /**
42892
+ * Encodes the specified SleepcastDeleted message, length delimited. Does not implicitly {@link SleepcastDeleted.verify|verify} messages.
42893
+ * @function encodeDelimited
42894
+ * @memberof SleepcastDeleted
42895
+ * @static
42896
+ * @param {ISleepcastDeleted} message SleepcastDeleted message or plain object to encode
42897
+ * @param {$protobuf.Writer} [writer] Writer to encode to
42898
+ * @returns {$protobuf.Writer} Writer
42899
+ */
42900
+ SleepcastDeleted.encodeDelimited = function encodeDelimited(message, writer) {
42901
+ return this.encode(message, writer).ldelim();
42902
+ };
42903
+
42904
+ /**
42905
+ * Decodes a SleepcastDeleted message from the specified reader or buffer.
42906
+ * @function decode
42907
+ * @memberof SleepcastDeleted
42908
+ * @static
42909
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
42910
+ * @param {number} [length] Message length if known beforehand
42911
+ * @returns {SleepcastDeleted} SleepcastDeleted
42912
+ * @throws {Error} If the payload is not a reader or valid buffer
42913
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
42914
+ */
42915
+ SleepcastDeleted.decode = function decode(reader, length) {
42916
+ if (!(reader instanceof $Reader))
42917
+ reader = $Reader.create(reader);
42918
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.SleepcastDeleted();
42919
+ while (reader.pos < end) {
42920
+ var tag = reader.uint32();
42921
+ switch (tag >>> 3) {
42922
+ case 1:
42923
+ message.slug = reader.string();
42924
+ break;
42925
+ case 2:
42926
+ message.deletedAt = reader.uint64();
42927
+ break;
42928
+ default:
42929
+ reader.skipType(tag & 7);
42930
+ break;
42931
+ }
42932
+ }
42933
+ return message;
42934
+ };
42935
+
42936
+ /**
42937
+ * Decodes a SleepcastDeleted message from the specified reader or buffer, length delimited.
42938
+ * @function decodeDelimited
42939
+ * @memberof SleepcastDeleted
42940
+ * @static
42941
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
42942
+ * @returns {SleepcastDeleted} SleepcastDeleted
42943
+ * @throws {Error} If the payload is not a reader or valid buffer
42944
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
42945
+ */
42946
+ SleepcastDeleted.decodeDelimited = function decodeDelimited(reader) {
42947
+ if (!(reader instanceof $Reader))
42948
+ reader = new $Reader(reader);
42949
+ return this.decode(reader, reader.uint32());
42950
+ };
42951
+
42952
+ /**
42953
+ * Verifies a SleepcastDeleted message.
42954
+ * @function verify
42955
+ * @memberof SleepcastDeleted
42956
+ * @static
42957
+ * @param {Object.<string,*>} message Plain object to verify
42958
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
42959
+ */
42960
+ SleepcastDeleted.verify = function verify(message) {
42961
+ if (typeof message !== "object" || message === null)
42962
+ return "object expected";
42963
+ if (message.slug != null && message.hasOwnProperty("slug"))
42964
+ if (!$util.isString(message.slug))
42965
+ return "slug: string expected";
42966
+ if (message.deletedAt != null && message.hasOwnProperty("deletedAt"))
42967
+ if (!$util.isInteger(message.deletedAt) && !(message.deletedAt && $util.isInteger(message.deletedAt.low) && $util.isInteger(message.deletedAt.high)))
42968
+ return "deletedAt: integer|Long expected";
42969
+ return null;
42970
+ };
42971
+
42972
+ /**
42973
+ * Creates a SleepcastDeleted message from a plain object. Also converts values to their respective internal types.
42974
+ * @function fromObject
42975
+ * @memberof SleepcastDeleted
42976
+ * @static
42977
+ * @param {Object.<string,*>} object Plain object
42978
+ * @returns {SleepcastDeleted} SleepcastDeleted
42979
+ */
42980
+ SleepcastDeleted.fromObject = function fromObject(object) {
42981
+ if (object instanceof $root.SleepcastDeleted)
42982
+ return object;
42983
+ var message = new $root.SleepcastDeleted();
42984
+ if (object.slug != null)
42985
+ message.slug = String(object.slug);
42986
+ if (object.deletedAt != null)
42987
+ if ($util.Long)
42988
+ (message.deletedAt = $util.Long.fromValue(object.deletedAt)).unsigned = true;
42989
+ else if (typeof object.deletedAt === "string")
42990
+ message.deletedAt = parseInt(object.deletedAt, 10);
42991
+ else if (typeof object.deletedAt === "number")
42992
+ message.deletedAt = object.deletedAt;
42993
+ else if (typeof object.deletedAt === "object")
42994
+ message.deletedAt = new $util.LongBits(object.deletedAt.low >>> 0, object.deletedAt.high >>> 0).toNumber(true);
42995
+ return message;
42996
+ };
42997
+
42998
+ /**
42999
+ * Creates a plain object from a SleepcastDeleted message. Also converts values to other types if specified.
43000
+ * @function toObject
43001
+ * @memberof SleepcastDeleted
43002
+ * @static
43003
+ * @param {SleepcastDeleted} message SleepcastDeleted
43004
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
43005
+ * @returns {Object.<string,*>} Plain object
43006
+ */
43007
+ SleepcastDeleted.toObject = function toObject(message, options) {
43008
+ if (!options)
43009
+ options = {};
43010
+ var object = {};
43011
+ if (options.defaults) {
43012
+ object.slug = "";
43013
+ if ($util.Long) {
43014
+ var long = new $util.Long(0, 0, true);
43015
+ object.deletedAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
43016
+ } else
43017
+ object.deletedAt = options.longs === String ? "0" : 0;
43018
+ }
43019
+ if (message.slug != null && message.hasOwnProperty("slug"))
43020
+ object.slug = message.slug;
43021
+ if (message.deletedAt != null && message.hasOwnProperty("deletedAt"))
43022
+ if (typeof message.deletedAt === "number")
43023
+ object.deletedAt = options.longs === String ? String(message.deletedAt) : message.deletedAt;
43024
+ else
43025
+ object.deletedAt = options.longs === String ? $util.Long.prototype.toString.call(message.deletedAt) : options.longs === Number ? new $util.LongBits(message.deletedAt.low >>> 0, message.deletedAt.high >>> 0).toNumber(true) : message.deletedAt;
43026
+ return object;
43027
+ };
43028
+
43029
+ /**
43030
+ * Converts this SleepcastDeleted to JSON.
43031
+ * @function toJSON
43032
+ * @memberof SleepcastDeleted
43033
+ * @instance
43034
+ * @returns {Object.<string,*>} JSON object
43035
+ */
43036
+ SleepcastDeleted.prototype.toJSON = function toJSON() {
43037
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
43038
+ };
43039
+
43040
+ return SleepcastDeleted;
43041
+ })();
43042
+
42239
43043
  $root.IosSubscriptionCreated = (function() {
42240
43044
 
42241
43045
  /**
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.187.0"
19
+ "version": "1.188.0"
20
20
  }