@headspace/protos-events 1.217.0 → 1.219.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
@@ -694,6 +694,96 @@ export namespace contentful {
694
694
  public toJSON(): { [k: string]: any };
695
695
  }
696
696
 
697
+ /** Properties of a Tags. */
698
+ interface ITags {
699
+
700
+ /** Tags tags */
701
+ tags?: (string[]|null);
702
+ }
703
+
704
+ /** Represents a Tags. */
705
+ class Tags implements ITags {
706
+
707
+ /**
708
+ * Constructs a new Tags.
709
+ * @param [properties] Properties to set
710
+ */
711
+ constructor(properties?: contentful.ITags);
712
+
713
+ /** Tags tags. */
714
+ public tags: string[];
715
+
716
+ /**
717
+ * Creates a new Tags instance using the specified properties.
718
+ * @param [properties] Properties to set
719
+ * @returns Tags instance
720
+ */
721
+ public static create(properties?: contentful.ITags): contentful.Tags;
722
+
723
+ /**
724
+ * Encodes the specified Tags message. Does not implicitly {@link contentful.Tags.verify|verify} messages.
725
+ * @param message Tags message or plain object to encode
726
+ * @param [writer] Writer to encode to
727
+ * @returns Writer
728
+ */
729
+ public static encode(message: contentful.ITags, writer?: $protobuf.Writer): $protobuf.Writer;
730
+
731
+ /**
732
+ * Encodes the specified Tags message, length delimited. Does not implicitly {@link contentful.Tags.verify|verify} messages.
733
+ * @param message Tags message or plain object to encode
734
+ * @param [writer] Writer to encode to
735
+ * @returns Writer
736
+ */
737
+ public static encodeDelimited(message: contentful.ITags, writer?: $protobuf.Writer): $protobuf.Writer;
738
+
739
+ /**
740
+ * Decodes a Tags message from the specified reader or buffer.
741
+ * @param reader Reader or buffer to decode from
742
+ * @param [length] Message length if known beforehand
743
+ * @returns Tags
744
+ * @throws {Error} If the payload is not a reader or valid buffer
745
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
746
+ */
747
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): contentful.Tags;
748
+
749
+ /**
750
+ * Decodes a Tags message from the specified reader or buffer, length delimited.
751
+ * @param reader Reader or buffer to decode from
752
+ * @returns Tags
753
+ * @throws {Error} If the payload is not a reader or valid buffer
754
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
755
+ */
756
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): contentful.Tags;
757
+
758
+ /**
759
+ * Verifies a Tags message.
760
+ * @param message Plain object to verify
761
+ * @returns `null` if valid, otherwise the reason why it is not
762
+ */
763
+ public static verify(message: { [k: string]: any }): (string|null);
764
+
765
+ /**
766
+ * Creates a Tags message from a plain object. Also converts values to their respective internal types.
767
+ * @param object Plain object
768
+ * @returns Tags
769
+ */
770
+ public static fromObject(object: { [k: string]: any }): contentful.Tags;
771
+
772
+ /**
773
+ * Creates a plain object from a Tags message. Also converts values to other types if specified.
774
+ * @param message Tags
775
+ * @param [options] Conversion options
776
+ * @returns Plain object
777
+ */
778
+ public static toObject(message: contentful.Tags, options?: $protobuf.IConversionOptions): { [k: string]: any };
779
+
780
+ /**
781
+ * Converts this Tags to JSON.
782
+ * @returns JSON object
783
+ */
784
+ public toJSON(): { [k: string]: any };
785
+ }
786
+
697
787
  /** Properties of a ContentModelField. */
698
788
  interface IContentModelField {
699
789
 
@@ -2024,7 +2114,8 @@ export namespace subscription {
2024
2114
  SUBSTATE_FREE_TRIAL = 3,
2025
2115
  SUBSTATE_PAYING = 4,
2026
2116
  SUBSTATE_GRACE = 6,
2027
- SUBSTATE_CANCELLED = 5
2117
+ SUBSTATE_CANCELLED = 5,
2118
+ SUBSTATE_PAYMENT_PENDING = 7
2028
2119
  }
2029
2120
 
2030
2121
  /** SubscriptionMemberState enum. */
@@ -5964,6 +6055,9 @@ export interface IContentfulPlaylistCreated {
5964
6055
 
5965
6056
  /** ContentfulPlaylistCreated variationContainer */
5966
6057
  variationContainer?: (contentful.ISlugReference|null);
6058
+
6059
+ /** ContentfulPlaylistCreated tags */
6060
+ tags?: ({ [k: string]: contentful.ITags }|null);
5967
6061
  }
5968
6062
 
5969
6063
  /** Represents a ContentfulPlaylistCreated. */
@@ -6014,6 +6108,9 @@ export class ContentfulPlaylistCreated implements IContentfulPlaylistCreated {
6014
6108
  /** ContentfulPlaylistCreated variationContainer. */
6015
6109
  public variationContainer?: (contentful.ISlugReference|null);
6016
6110
 
6111
+ /** ContentfulPlaylistCreated tags. */
6112
+ public tags: { [k: string]: contentful.ITags };
6113
+
6017
6114
  /**
6018
6115
  * Creates a new ContentfulPlaylistCreated instance using the specified properties.
6019
6116
  * @param [properties] Properties to set
@@ -6126,6 +6223,9 @@ export interface IContentfulPlaylistUpdated {
6126
6223
 
6127
6224
  /** ContentfulPlaylistUpdated variationContainer */
6128
6225
  variationContainer?: (contentful.ISlugReference|null);
6226
+
6227
+ /** ContentfulPlaylistUpdated tags */
6228
+ tags?: ({ [k: string]: contentful.ITags }|null);
6129
6229
  }
6130
6230
 
6131
6231
  /** Represents a ContentfulPlaylistUpdated. */
@@ -6176,6 +6276,9 @@ export class ContentfulPlaylistUpdated implements IContentfulPlaylistUpdated {
6176
6276
  /** ContentfulPlaylistUpdated variationContainer. */
6177
6277
  public variationContainer?: (contentful.ISlugReference|null);
6178
6278
 
6279
+ /** ContentfulPlaylistUpdated tags. */
6280
+ public tags: { [k: string]: contentful.ITags };
6281
+
6179
6282
  /**
6180
6283
  * Creates a new ContentfulPlaylistUpdated instance using the specified properties.
6181
6284
  * @param [properties] Properties to set
@@ -9096,6 +9199,9 @@ export interface IContentfulActivityGroupCreated {
9096
9199
 
9097
9200
  /** ContentfulActivityGroupCreated playerBackgroundMedia */
9098
9201
  playerBackgroundMedia?: ({ [k: string]: contentful.IIdReference }|null);
9202
+
9203
+ /** ContentfulActivityGroupCreated tags */
9204
+ tags?: ({ [k: string]: contentful.ITags }|null);
9099
9205
  }
9100
9206
 
9101
9207
  /** Represents a ContentfulActivityGroupCreated. */
@@ -9170,6 +9276,9 @@ export class ContentfulActivityGroupCreated implements IContentfulActivityGroupC
9170
9276
  /** ContentfulActivityGroupCreated playerBackgroundMedia. */
9171
9277
  public playerBackgroundMedia: { [k: string]: contentful.IIdReference };
9172
9278
 
9279
+ /** ContentfulActivityGroupCreated tags. */
9280
+ public tags: { [k: string]: contentful.ITags };
9281
+
9173
9282
  /**
9174
9283
  * Creates a new ContentfulActivityGroupCreated instance using the specified properties.
9175
9284
  * @param [properties] Properties to set
@@ -9306,6 +9415,9 @@ export interface IContentfulActivityGroupUpdated {
9306
9415
 
9307
9416
  /** ContentfulActivityGroupUpdated playerBackgroundMedia */
9308
9417
  playerBackgroundMedia?: ({ [k: string]: contentful.IIdReference }|null);
9418
+
9419
+ /** ContentfulActivityGroupUpdated tags */
9420
+ tags?: ({ [k: string]: contentful.ITags }|null);
9309
9421
  }
9310
9422
 
9311
9423
  /** Represents a ContentfulActivityGroupUpdated. */
@@ -9380,6 +9492,9 @@ export class ContentfulActivityGroupUpdated implements IContentfulActivityGroupU
9380
9492
  /** ContentfulActivityGroupUpdated playerBackgroundMedia. */
9381
9493
  public playerBackgroundMedia: { [k: string]: contentful.IIdReference };
9382
9494
 
9495
+ /** ContentfulActivityGroupUpdated tags. */
9496
+ public tags: { [k: string]: contentful.ITags };
9497
+
9383
9498
  /**
9384
9499
  * Creates a new ContentfulActivityGroupUpdated instance using the specified properties.
9385
9500
  * @param [properties] Properties to set
@@ -11397,6 +11512,9 @@ export interface IContentfulSleepcastCreated {
11397
11512
 
11398
11513
  /** ContentfulSleepcastCreated createdAt */
11399
11514
  createdAt?: (number|Long|null);
11515
+
11516
+ /** ContentfulSleepcastCreated tags */
11517
+ tags?: ({ [k: string]: contentful.ITags }|null);
11400
11518
  }
11401
11519
 
11402
11520
  /** Represents a ContentfulSleepcastCreated. */
@@ -11456,6 +11574,9 @@ export class ContentfulSleepcastCreated implements IContentfulSleepcastCreated {
11456
11574
  /** ContentfulSleepcastCreated createdAt. */
11457
11575
  public createdAt: (number|Long);
11458
11576
 
11577
+ /** ContentfulSleepcastCreated tags. */
11578
+ public tags: { [k: string]: contentful.ITags };
11579
+
11459
11580
  /**
11460
11581
  * Creates a new ContentfulSleepcastCreated instance using the specified properties.
11461
11582
  * @param [properties] Properties to set
@@ -11577,6 +11698,9 @@ export interface IContentfulSleepcastUpdated {
11577
11698
 
11578
11699
  /** ContentfulSleepcastUpdated updatedAt */
11579
11700
  updatedAt?: (number|Long|null);
11701
+
11702
+ /** ContentfulSleepcastUpdated tags */
11703
+ tags?: ({ [k: string]: contentful.ITags }|null);
11580
11704
  }
11581
11705
 
11582
11706
  /** Represents a ContentfulSleepcastUpdated. */
@@ -11636,6 +11760,9 @@ export class ContentfulSleepcastUpdated implements IContentfulSleepcastUpdated {
11636
11760
  /** ContentfulSleepcastUpdated updatedAt. */
11637
11761
  public updatedAt: (number|Long);
11638
11762
 
11763
+ /** ContentfulSleepcastUpdated tags. */
11764
+ public tags: { [k: string]: contentful.ITags };
11765
+
11639
11766
  /**
11640
11767
  * Creates a new ContentfulSleepcastUpdated instance using the specified properties.
11641
11768
  * @param [properties] Properties to set
package/lib/index.js CHANGED
@@ -1563,6 +1563,209 @@ $root.contentful = (function() {
1563
1563
  return IdReferences;
1564
1564
  })();
1565
1565
 
1566
+ contentful.Tags = (function() {
1567
+
1568
+ /**
1569
+ * Properties of a Tags.
1570
+ * @memberof contentful
1571
+ * @interface ITags
1572
+ * @property {Array.<string>|null} [tags] Tags tags
1573
+ */
1574
+
1575
+ /**
1576
+ * Constructs a new Tags.
1577
+ * @memberof contentful
1578
+ * @classdesc Represents a Tags.
1579
+ * @implements ITags
1580
+ * @constructor
1581
+ * @param {contentful.ITags=} [properties] Properties to set
1582
+ */
1583
+ function Tags(properties) {
1584
+ this.tags = [];
1585
+ if (properties)
1586
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
1587
+ if (properties[keys[i]] != null)
1588
+ this[keys[i]] = properties[keys[i]];
1589
+ }
1590
+
1591
+ /**
1592
+ * Tags tags.
1593
+ * @member {Array.<string>} tags
1594
+ * @memberof contentful.Tags
1595
+ * @instance
1596
+ */
1597
+ Tags.prototype.tags = $util.emptyArray;
1598
+
1599
+ /**
1600
+ * Creates a new Tags instance using the specified properties.
1601
+ * @function create
1602
+ * @memberof contentful.Tags
1603
+ * @static
1604
+ * @param {contentful.ITags=} [properties] Properties to set
1605
+ * @returns {contentful.Tags} Tags instance
1606
+ */
1607
+ Tags.create = function create(properties) {
1608
+ return new Tags(properties);
1609
+ };
1610
+
1611
+ /**
1612
+ * Encodes the specified Tags message. Does not implicitly {@link contentful.Tags.verify|verify} messages.
1613
+ * @function encode
1614
+ * @memberof contentful.Tags
1615
+ * @static
1616
+ * @param {contentful.ITags} message Tags message or plain object to encode
1617
+ * @param {$protobuf.Writer} [writer] Writer to encode to
1618
+ * @returns {$protobuf.Writer} Writer
1619
+ */
1620
+ Tags.encode = function encode(message, writer) {
1621
+ if (!writer)
1622
+ writer = $Writer.create();
1623
+ if (message.tags != null && message.tags.length)
1624
+ for (var i = 0; i < message.tags.length; ++i)
1625
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.tags[i]);
1626
+ return writer;
1627
+ };
1628
+
1629
+ /**
1630
+ * Encodes the specified Tags message, length delimited. Does not implicitly {@link contentful.Tags.verify|verify} messages.
1631
+ * @function encodeDelimited
1632
+ * @memberof contentful.Tags
1633
+ * @static
1634
+ * @param {contentful.ITags} message Tags message or plain object to encode
1635
+ * @param {$protobuf.Writer} [writer] Writer to encode to
1636
+ * @returns {$protobuf.Writer} Writer
1637
+ */
1638
+ Tags.encodeDelimited = function encodeDelimited(message, writer) {
1639
+ return this.encode(message, writer).ldelim();
1640
+ };
1641
+
1642
+ /**
1643
+ * Decodes a Tags message from the specified reader or buffer.
1644
+ * @function decode
1645
+ * @memberof contentful.Tags
1646
+ * @static
1647
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
1648
+ * @param {number} [length] Message length if known beforehand
1649
+ * @returns {contentful.Tags} Tags
1650
+ * @throws {Error} If the payload is not a reader or valid buffer
1651
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
1652
+ */
1653
+ Tags.decode = function decode(reader, length) {
1654
+ if (!(reader instanceof $Reader))
1655
+ reader = $Reader.create(reader);
1656
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.contentful.Tags();
1657
+ while (reader.pos < end) {
1658
+ var tag = reader.uint32();
1659
+ switch (tag >>> 3) {
1660
+ case 1:
1661
+ if (!(message.tags && message.tags.length))
1662
+ message.tags = [];
1663
+ message.tags.push(reader.string());
1664
+ break;
1665
+ default:
1666
+ reader.skipType(tag & 7);
1667
+ break;
1668
+ }
1669
+ }
1670
+ return message;
1671
+ };
1672
+
1673
+ /**
1674
+ * Decodes a Tags message from the specified reader or buffer, length delimited.
1675
+ * @function decodeDelimited
1676
+ * @memberof contentful.Tags
1677
+ * @static
1678
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
1679
+ * @returns {contentful.Tags} Tags
1680
+ * @throws {Error} If the payload is not a reader or valid buffer
1681
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
1682
+ */
1683
+ Tags.decodeDelimited = function decodeDelimited(reader) {
1684
+ if (!(reader instanceof $Reader))
1685
+ reader = new $Reader(reader);
1686
+ return this.decode(reader, reader.uint32());
1687
+ };
1688
+
1689
+ /**
1690
+ * Verifies a Tags message.
1691
+ * @function verify
1692
+ * @memberof contentful.Tags
1693
+ * @static
1694
+ * @param {Object.<string,*>} message Plain object to verify
1695
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
1696
+ */
1697
+ Tags.verify = function verify(message) {
1698
+ if (typeof message !== "object" || message === null)
1699
+ return "object expected";
1700
+ if (message.tags != null && message.hasOwnProperty("tags")) {
1701
+ if (!Array.isArray(message.tags))
1702
+ return "tags: array expected";
1703
+ for (var i = 0; i < message.tags.length; ++i)
1704
+ if (!$util.isString(message.tags[i]))
1705
+ return "tags: string[] expected";
1706
+ }
1707
+ return null;
1708
+ };
1709
+
1710
+ /**
1711
+ * Creates a Tags message from a plain object. Also converts values to their respective internal types.
1712
+ * @function fromObject
1713
+ * @memberof contentful.Tags
1714
+ * @static
1715
+ * @param {Object.<string,*>} object Plain object
1716
+ * @returns {contentful.Tags} Tags
1717
+ */
1718
+ Tags.fromObject = function fromObject(object) {
1719
+ if (object instanceof $root.contentful.Tags)
1720
+ return object;
1721
+ var message = new $root.contentful.Tags();
1722
+ if (object.tags) {
1723
+ if (!Array.isArray(object.tags))
1724
+ throw TypeError(".contentful.Tags.tags: array expected");
1725
+ message.tags = [];
1726
+ for (var i = 0; i < object.tags.length; ++i)
1727
+ message.tags[i] = String(object.tags[i]);
1728
+ }
1729
+ return message;
1730
+ };
1731
+
1732
+ /**
1733
+ * Creates a plain object from a Tags message. Also converts values to other types if specified.
1734
+ * @function toObject
1735
+ * @memberof contentful.Tags
1736
+ * @static
1737
+ * @param {contentful.Tags} message Tags
1738
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
1739
+ * @returns {Object.<string,*>} Plain object
1740
+ */
1741
+ Tags.toObject = function toObject(message, options) {
1742
+ if (!options)
1743
+ options = {};
1744
+ var object = {};
1745
+ if (options.arrays || options.defaults)
1746
+ object.tags = [];
1747
+ if (message.tags && message.tags.length) {
1748
+ object.tags = [];
1749
+ for (var j = 0; j < message.tags.length; ++j)
1750
+ object.tags[j] = message.tags[j];
1751
+ }
1752
+ return object;
1753
+ };
1754
+
1755
+ /**
1756
+ * Converts this Tags to JSON.
1757
+ * @function toJSON
1758
+ * @memberof contentful.Tags
1759
+ * @instance
1760
+ * @returns {Object.<string,*>} JSON object
1761
+ */
1762
+ Tags.prototype.toJSON = function toJSON() {
1763
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
1764
+ };
1765
+
1766
+ return Tags;
1767
+ })();
1768
+
1566
1769
  contentful.ContentModelField = (function() {
1567
1770
 
1568
1771
  /**
@@ -4638,6 +4841,7 @@ $root.subscription = (function() {
4638
4841
  * @property {number} SUBSTATE_PAYING=4 SUBSTATE_PAYING value
4639
4842
  * @property {number} SUBSTATE_GRACE=6 SUBSTATE_GRACE value
4640
4843
  * @property {number} SUBSTATE_CANCELLED=5 SUBSTATE_CANCELLED value
4844
+ * @property {number} SUBSTATE_PAYMENT_PENDING=7 SUBSTATE_PAYMENT_PENDING value
4641
4845
  */
4642
4846
  subscription.SubscriptionState = (function() {
4643
4847
  var valuesById = {}, values = Object.create(valuesById);
@@ -4648,6 +4852,7 @@ $root.subscription = (function() {
4648
4852
  values[valuesById[4] = "SUBSTATE_PAYING"] = 4;
4649
4853
  values[valuesById[6] = "SUBSTATE_GRACE"] = 6;
4650
4854
  values[valuesById[5] = "SUBSTATE_CANCELLED"] = 5;
4855
+ values[valuesById[7] = "SUBSTATE_PAYMENT_PENDING"] = 7;
4651
4856
  return values;
4652
4857
  })();
4653
4858
 
@@ -14586,6 +14791,7 @@ $root.ContentfulPlaylistCreated = (function() {
14586
14791
  * @property {Array.<contentful.ISlugReference>|null} [accessGroups] ContentfulPlaylistCreated accessGroups
14587
14792
  * @property {number|Long|null} [createdAt] ContentfulPlaylistCreated createdAt
14588
14793
  * @property {contentful.ISlugReference|null} [variationContainer] ContentfulPlaylistCreated variationContainer
14794
+ * @property {Object.<string,contentful.ITags>|null} [tags] ContentfulPlaylistCreated tags
14589
14795
  */
14590
14796
 
14591
14797
  /**
@@ -14606,6 +14812,7 @@ $root.ContentfulPlaylistCreated = (function() {
14606
14812
  this.videoSegments = {};
14607
14813
  this.schedule = {};
14608
14814
  this.accessGroups = [];
14815
+ this.tags = {};
14609
14816
  if (properties)
14610
14817
  for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
14611
14818
  if (properties[keys[i]] != null)
@@ -14716,6 +14923,14 @@ $root.ContentfulPlaylistCreated = (function() {
14716
14923
  */
14717
14924
  ContentfulPlaylistCreated.prototype.variationContainer = null;
14718
14925
 
14926
+ /**
14927
+ * ContentfulPlaylistCreated tags.
14928
+ * @member {Object.<string,contentful.ITags>} tags
14929
+ * @memberof ContentfulPlaylistCreated
14930
+ * @instance
14931
+ */
14932
+ ContentfulPlaylistCreated.prototype.tags = $util.emptyObject;
14933
+
14719
14934
  /**
14720
14935
  * Creates a new ContentfulPlaylistCreated instance using the specified properties.
14721
14936
  * @function create
@@ -14779,6 +14994,11 @@ $root.ContentfulPlaylistCreated = (function() {
14779
14994
  writer.uint32(/* id 12, wireType 0 =*/96).uint64(message.createdAt);
14780
14995
  if (message.variationContainer != null && message.hasOwnProperty("variationContainer"))
14781
14996
  $root.contentful.SlugReference.encode(message.variationContainer, writer.uint32(/* id 13, wireType 2 =*/106).fork()).ldelim();
14997
+ if (message.tags != null && message.hasOwnProperty("tags"))
14998
+ for (var keys = Object.keys(message.tags), i = 0; i < keys.length; ++i) {
14999
+ writer.uint32(/* id 14, wireType 2 =*/114).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]);
15000
+ $root.contentful.Tags.encode(message.tags[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim();
15001
+ }
14782
15002
  return writer;
14783
15003
  };
14784
15004
 
@@ -14894,6 +15114,14 @@ $root.ContentfulPlaylistCreated = (function() {
14894
15114
  case 13:
14895
15115
  message.variationContainer = $root.contentful.SlugReference.decode(reader, reader.uint32());
14896
15116
  break;
15117
+ case 14:
15118
+ reader.skip().pos++;
15119
+ if (message.tags === $util.emptyObject)
15120
+ message.tags = {};
15121
+ key = reader.string();
15122
+ reader.pos++;
15123
+ message.tags[key] = $root.contentful.Tags.decode(reader, reader.uint32());
15124
+ break;
14897
15125
  default:
14898
15126
  reader.skipType(tag & 7);
14899
15127
  break;
@@ -15020,6 +15248,16 @@ $root.ContentfulPlaylistCreated = (function() {
15020
15248
  if (error)
15021
15249
  return "variationContainer." + error;
15022
15250
  }
15251
+ if (message.tags != null && message.hasOwnProperty("tags")) {
15252
+ if (!$util.isObject(message.tags))
15253
+ return "tags: object expected";
15254
+ var key = Object.keys(message.tags);
15255
+ for (var i = 0; i < key.length; ++i) {
15256
+ var error = $root.contentful.Tags.verify(message.tags[key[i]]);
15257
+ if (error)
15258
+ return "tags." + error;
15259
+ }
15260
+ }
15023
15261
  return null;
15024
15262
  };
15025
15263
 
@@ -15125,6 +15363,16 @@ $root.ContentfulPlaylistCreated = (function() {
15125
15363
  throw TypeError(".ContentfulPlaylistCreated.variationContainer: object expected");
15126
15364
  message.variationContainer = $root.contentful.SlugReference.fromObject(object.variationContainer);
15127
15365
  }
15366
+ if (object.tags) {
15367
+ if (typeof object.tags !== "object")
15368
+ throw TypeError(".ContentfulPlaylistCreated.tags: object expected");
15369
+ message.tags = {};
15370
+ for (var keys = Object.keys(object.tags), i = 0; i < keys.length; ++i) {
15371
+ if (typeof object.tags[keys[i]] !== "object")
15372
+ throw TypeError(".ContentfulPlaylistCreated.tags: object expected");
15373
+ message.tags[keys[i]] = $root.contentful.Tags.fromObject(object.tags[keys[i]]);
15374
+ }
15375
+ }
15128
15376
  return message;
15129
15377
  };
15130
15378
 
@@ -15152,6 +15400,7 @@ $root.ContentfulPlaylistCreated = (function() {
15152
15400
  object.previewMedia = {};
15153
15401
  object.videoSegments = {};
15154
15402
  object.schedule = {};
15403
+ object.tags = {};
15155
15404
  }
15156
15405
  if (options.defaults) {
15157
15406
  object.slug = "";
@@ -15220,6 +15469,11 @@ $root.ContentfulPlaylistCreated = (function() {
15220
15469
  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;
15221
15470
  if (message.variationContainer != null && message.hasOwnProperty("variationContainer"))
15222
15471
  object.variationContainer = $root.contentful.SlugReference.toObject(message.variationContainer, options);
15472
+ if (message.tags && (keys2 = Object.keys(message.tags)).length) {
15473
+ object.tags = {};
15474
+ for (var j = 0; j < keys2.length; ++j)
15475
+ object.tags[keys2[j]] = $root.contentful.Tags.toObject(message.tags[keys2[j]], options);
15476
+ }
15223
15477
  return object;
15224
15478
  };
15225
15479
 
@@ -15256,6 +15510,7 @@ $root.ContentfulPlaylistUpdated = (function() {
15256
15510
  * @property {Array.<contentful.ISlugReference>|null} [accessGroups] ContentfulPlaylistUpdated accessGroups
15257
15511
  * @property {number|Long|null} [updatedAt] ContentfulPlaylistUpdated updatedAt
15258
15512
  * @property {contentful.ISlugReference|null} [variationContainer] ContentfulPlaylistUpdated variationContainer
15513
+ * @property {Object.<string,contentful.ITags>|null} [tags] ContentfulPlaylistUpdated tags
15259
15514
  */
15260
15515
 
15261
15516
  /**
@@ -15276,6 +15531,7 @@ $root.ContentfulPlaylistUpdated = (function() {
15276
15531
  this.videoSegments = {};
15277
15532
  this.schedule = {};
15278
15533
  this.accessGroups = [];
15534
+ this.tags = {};
15279
15535
  if (properties)
15280
15536
  for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
15281
15537
  if (properties[keys[i]] != null)
@@ -15386,6 +15642,14 @@ $root.ContentfulPlaylistUpdated = (function() {
15386
15642
  */
15387
15643
  ContentfulPlaylistUpdated.prototype.variationContainer = null;
15388
15644
 
15645
+ /**
15646
+ * ContentfulPlaylistUpdated tags.
15647
+ * @member {Object.<string,contentful.ITags>} tags
15648
+ * @memberof ContentfulPlaylistUpdated
15649
+ * @instance
15650
+ */
15651
+ ContentfulPlaylistUpdated.prototype.tags = $util.emptyObject;
15652
+
15389
15653
  /**
15390
15654
  * Creates a new ContentfulPlaylistUpdated instance using the specified properties.
15391
15655
  * @function create
@@ -15449,6 +15713,11 @@ $root.ContentfulPlaylistUpdated = (function() {
15449
15713
  writer.uint32(/* id 12, wireType 0 =*/96).uint64(message.updatedAt);
15450
15714
  if (message.variationContainer != null && message.hasOwnProperty("variationContainer"))
15451
15715
  $root.contentful.SlugReference.encode(message.variationContainer, writer.uint32(/* id 13, wireType 2 =*/106).fork()).ldelim();
15716
+ if (message.tags != null && message.hasOwnProperty("tags"))
15717
+ for (var keys = Object.keys(message.tags), i = 0; i < keys.length; ++i) {
15718
+ writer.uint32(/* id 14, wireType 2 =*/114).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]);
15719
+ $root.contentful.Tags.encode(message.tags[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim();
15720
+ }
15452
15721
  return writer;
15453
15722
  };
15454
15723
 
@@ -15564,6 +15833,14 @@ $root.ContentfulPlaylistUpdated = (function() {
15564
15833
  case 13:
15565
15834
  message.variationContainer = $root.contentful.SlugReference.decode(reader, reader.uint32());
15566
15835
  break;
15836
+ case 14:
15837
+ reader.skip().pos++;
15838
+ if (message.tags === $util.emptyObject)
15839
+ message.tags = {};
15840
+ key = reader.string();
15841
+ reader.pos++;
15842
+ message.tags[key] = $root.contentful.Tags.decode(reader, reader.uint32());
15843
+ break;
15567
15844
  default:
15568
15845
  reader.skipType(tag & 7);
15569
15846
  break;
@@ -15690,6 +15967,16 @@ $root.ContentfulPlaylistUpdated = (function() {
15690
15967
  if (error)
15691
15968
  return "variationContainer." + error;
15692
15969
  }
15970
+ if (message.tags != null && message.hasOwnProperty("tags")) {
15971
+ if (!$util.isObject(message.tags))
15972
+ return "tags: object expected";
15973
+ var key = Object.keys(message.tags);
15974
+ for (var i = 0; i < key.length; ++i) {
15975
+ var error = $root.contentful.Tags.verify(message.tags[key[i]]);
15976
+ if (error)
15977
+ return "tags." + error;
15978
+ }
15979
+ }
15693
15980
  return null;
15694
15981
  };
15695
15982
 
@@ -15795,6 +16082,16 @@ $root.ContentfulPlaylistUpdated = (function() {
15795
16082
  throw TypeError(".ContentfulPlaylistUpdated.variationContainer: object expected");
15796
16083
  message.variationContainer = $root.contentful.SlugReference.fromObject(object.variationContainer);
15797
16084
  }
16085
+ if (object.tags) {
16086
+ if (typeof object.tags !== "object")
16087
+ throw TypeError(".ContentfulPlaylistUpdated.tags: object expected");
16088
+ message.tags = {};
16089
+ for (var keys = Object.keys(object.tags), i = 0; i < keys.length; ++i) {
16090
+ if (typeof object.tags[keys[i]] !== "object")
16091
+ throw TypeError(".ContentfulPlaylistUpdated.tags: object expected");
16092
+ message.tags[keys[i]] = $root.contentful.Tags.fromObject(object.tags[keys[i]]);
16093
+ }
16094
+ }
15798
16095
  return message;
15799
16096
  };
15800
16097
 
@@ -15822,6 +16119,7 @@ $root.ContentfulPlaylistUpdated = (function() {
15822
16119
  object.previewMedia = {};
15823
16120
  object.videoSegments = {};
15824
16121
  object.schedule = {};
16122
+ object.tags = {};
15825
16123
  }
15826
16124
  if (options.defaults) {
15827
16125
  object.slug = "";
@@ -15890,6 +16188,11 @@ $root.ContentfulPlaylistUpdated = (function() {
15890
16188
  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;
15891
16189
  if (message.variationContainer != null && message.hasOwnProperty("variationContainer"))
15892
16190
  object.variationContainer = $root.contentful.SlugReference.toObject(message.variationContainer, options);
16191
+ if (message.tags && (keys2 = Object.keys(message.tags)).length) {
16192
+ object.tags = {};
16193
+ for (var j = 0; j < keys2.length; ++j)
16194
+ object.tags[keys2[j]] = $root.contentful.Tags.toObject(message.tags[keys2[j]], options);
16195
+ }
15893
16196
  return object;
15894
16197
  };
15895
16198
 
@@ -24432,6 +24735,7 @@ $root.ContentfulActivityGroupCreated = (function() {
24432
24735
  * @property {Array.<contentful.ISlugReference>|null} [accessGroup] ContentfulActivityGroupCreated accessGroup
24433
24736
  * @property {number|Long|null} [createdAt] ContentfulActivityGroupCreated createdAt
24434
24737
  * @property {Object.<string,contentful.IIdReference>|null} [playerBackgroundMedia] ContentfulActivityGroupCreated playerBackgroundMedia
24738
+ * @property {Object.<string,contentful.ITags>|null} [tags] ContentfulActivityGroupCreated tags
24435
24739
  */
24436
24740
 
24437
24741
  /**
@@ -24453,6 +24757,7 @@ $root.ContentfulActivityGroupCreated = (function() {
24453
24757
  this.related = [];
24454
24758
  this.accessGroup = [];
24455
24759
  this.playerBackgroundMedia = {};
24760
+ this.tags = {};
24456
24761
  if (properties)
24457
24762
  for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
24458
24763
  if (properties[keys[i]] != null)
@@ -24627,6 +24932,14 @@ $root.ContentfulActivityGroupCreated = (function() {
24627
24932
  */
24628
24933
  ContentfulActivityGroupCreated.prototype.playerBackgroundMedia = $util.emptyObject;
24629
24934
 
24935
+ /**
24936
+ * ContentfulActivityGroupCreated tags.
24937
+ * @member {Object.<string,contentful.ITags>} tags
24938
+ * @memberof ContentfulActivityGroupCreated
24939
+ * @instance
24940
+ */
24941
+ ContentfulActivityGroupCreated.prototype.tags = $util.emptyObject;
24942
+
24630
24943
  /**
24631
24944
  * Creates a new ContentfulActivityGroupCreated instance using the specified properties.
24632
24945
  * @function create
@@ -24709,6 +25022,11 @@ $root.ContentfulActivityGroupCreated = (function() {
24709
25022
  writer.uint32(/* id 21, wireType 2 =*/170).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]);
24710
25023
  $root.contentful.IdReference.encode(message.playerBackgroundMedia[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim();
24711
25024
  }
25025
+ if (message.tags != null && message.hasOwnProperty("tags"))
25026
+ for (var keys = Object.keys(message.tags), i = 0; i < keys.length; ++i) {
25027
+ writer.uint32(/* id 22, wireType 2 =*/178).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]);
25028
+ $root.contentful.Tags.encode(message.tags[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim();
25029
+ }
24712
25030
  return writer;
24713
25031
  };
24714
25032
 
@@ -24844,6 +25162,14 @@ $root.ContentfulActivityGroupCreated = (function() {
24844
25162
  reader.pos++;
24845
25163
  message.playerBackgroundMedia[key] = $root.contentful.IdReference.decode(reader, reader.uint32());
24846
25164
  break;
25165
+ case 22:
25166
+ reader.skip().pos++;
25167
+ if (message.tags === $util.emptyObject)
25168
+ message.tags = {};
25169
+ key = reader.string();
25170
+ reader.pos++;
25171
+ message.tags[key] = $root.contentful.Tags.decode(reader, reader.uint32());
25172
+ break;
24847
25173
  default:
24848
25174
  reader.skipType(tag & 7);
24849
25175
  break;
@@ -25002,6 +25328,16 @@ $root.ContentfulActivityGroupCreated = (function() {
25002
25328
  return "playerBackgroundMedia." + error;
25003
25329
  }
25004
25330
  }
25331
+ if (message.tags != null && message.hasOwnProperty("tags")) {
25332
+ if (!$util.isObject(message.tags))
25333
+ return "tags: object expected";
25334
+ var key = Object.keys(message.tags);
25335
+ for (var i = 0; i < key.length; ++i) {
25336
+ var error = $root.contentful.Tags.verify(message.tags[key[i]]);
25337
+ if (error)
25338
+ return "tags." + error;
25339
+ }
25340
+ }
25005
25341
  return null;
25006
25342
  };
25007
25343
 
@@ -25137,6 +25473,16 @@ $root.ContentfulActivityGroupCreated = (function() {
25137
25473
  message.playerBackgroundMedia[keys[i]] = $root.contentful.IdReference.fromObject(object.playerBackgroundMedia[keys[i]]);
25138
25474
  }
25139
25475
  }
25476
+ if (object.tags) {
25477
+ if (typeof object.tags !== "object")
25478
+ throw TypeError(".ContentfulActivityGroupCreated.tags: object expected");
25479
+ message.tags = {};
25480
+ for (var keys = Object.keys(object.tags), i = 0; i < keys.length; ++i) {
25481
+ if (typeof object.tags[keys[i]] !== "object")
25482
+ throw TypeError(".ContentfulActivityGroupCreated.tags: object expected");
25483
+ message.tags[keys[i]] = $root.contentful.Tags.fromObject(object.tags[keys[i]]);
25484
+ }
25485
+ }
25140
25486
  return message;
25141
25487
  };
25142
25488
 
@@ -25166,6 +25512,7 @@ $root.ContentfulActivityGroupCreated = (function() {
25166
25512
  object.bannerMedia = {};
25167
25513
  object.patternMedia = {};
25168
25514
  object.playerBackgroundMedia = {};
25515
+ object.tags = {};
25169
25516
  }
25170
25517
  if (options.defaults) {
25171
25518
  object.slug = "";
@@ -25260,6 +25607,11 @@ $root.ContentfulActivityGroupCreated = (function() {
25260
25607
  for (var j = 0; j < keys2.length; ++j)
25261
25608
  object.playerBackgroundMedia[keys2[j]] = $root.contentful.IdReference.toObject(message.playerBackgroundMedia[keys2[j]], options);
25262
25609
  }
25610
+ if (message.tags && (keys2 = Object.keys(message.tags)).length) {
25611
+ object.tags = {};
25612
+ for (var j = 0; j < keys2.length; ++j)
25613
+ object.tags[keys2[j]] = $root.contentful.Tags.toObject(message.tags[keys2[j]], options);
25614
+ }
25263
25615
  return object;
25264
25616
  };
25265
25617
 
@@ -25304,6 +25656,7 @@ $root.ContentfulActivityGroupUpdated = (function() {
25304
25656
  * @property {Array.<contentful.ISlugReference>|null} [accessGroup] ContentfulActivityGroupUpdated accessGroup
25305
25657
  * @property {number|Long|null} [updatedAt] ContentfulActivityGroupUpdated updatedAt
25306
25658
  * @property {Object.<string,contentful.IIdReference>|null} [playerBackgroundMedia] ContentfulActivityGroupUpdated playerBackgroundMedia
25659
+ * @property {Object.<string,contentful.ITags>|null} [tags] ContentfulActivityGroupUpdated tags
25307
25660
  */
25308
25661
 
25309
25662
  /**
@@ -25325,6 +25678,7 @@ $root.ContentfulActivityGroupUpdated = (function() {
25325
25678
  this.related = [];
25326
25679
  this.accessGroup = [];
25327
25680
  this.playerBackgroundMedia = {};
25681
+ this.tags = {};
25328
25682
  if (properties)
25329
25683
  for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
25330
25684
  if (properties[keys[i]] != null)
@@ -25499,6 +25853,14 @@ $root.ContentfulActivityGroupUpdated = (function() {
25499
25853
  */
25500
25854
  ContentfulActivityGroupUpdated.prototype.playerBackgroundMedia = $util.emptyObject;
25501
25855
 
25856
+ /**
25857
+ * ContentfulActivityGroupUpdated tags.
25858
+ * @member {Object.<string,contentful.ITags>} tags
25859
+ * @memberof ContentfulActivityGroupUpdated
25860
+ * @instance
25861
+ */
25862
+ ContentfulActivityGroupUpdated.prototype.tags = $util.emptyObject;
25863
+
25502
25864
  /**
25503
25865
  * Creates a new ContentfulActivityGroupUpdated instance using the specified properties.
25504
25866
  * @function create
@@ -25581,6 +25943,11 @@ $root.ContentfulActivityGroupUpdated = (function() {
25581
25943
  writer.uint32(/* id 21, wireType 2 =*/170).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]);
25582
25944
  $root.contentful.IdReference.encode(message.playerBackgroundMedia[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim();
25583
25945
  }
25946
+ if (message.tags != null && message.hasOwnProperty("tags"))
25947
+ for (var keys = Object.keys(message.tags), i = 0; i < keys.length; ++i) {
25948
+ writer.uint32(/* id 22, wireType 2 =*/178).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]);
25949
+ $root.contentful.Tags.encode(message.tags[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim();
25950
+ }
25584
25951
  return writer;
25585
25952
  };
25586
25953
 
@@ -25716,6 +26083,14 @@ $root.ContentfulActivityGroupUpdated = (function() {
25716
26083
  reader.pos++;
25717
26084
  message.playerBackgroundMedia[key] = $root.contentful.IdReference.decode(reader, reader.uint32());
25718
26085
  break;
26086
+ case 22:
26087
+ reader.skip().pos++;
26088
+ if (message.tags === $util.emptyObject)
26089
+ message.tags = {};
26090
+ key = reader.string();
26091
+ reader.pos++;
26092
+ message.tags[key] = $root.contentful.Tags.decode(reader, reader.uint32());
26093
+ break;
25719
26094
  default:
25720
26095
  reader.skipType(tag & 7);
25721
26096
  break;
@@ -25874,6 +26249,16 @@ $root.ContentfulActivityGroupUpdated = (function() {
25874
26249
  return "playerBackgroundMedia." + error;
25875
26250
  }
25876
26251
  }
26252
+ if (message.tags != null && message.hasOwnProperty("tags")) {
26253
+ if (!$util.isObject(message.tags))
26254
+ return "tags: object expected";
26255
+ var key = Object.keys(message.tags);
26256
+ for (var i = 0; i < key.length; ++i) {
26257
+ var error = $root.contentful.Tags.verify(message.tags[key[i]]);
26258
+ if (error)
26259
+ return "tags." + error;
26260
+ }
26261
+ }
25877
26262
  return null;
25878
26263
  };
25879
26264
 
@@ -26009,6 +26394,16 @@ $root.ContentfulActivityGroupUpdated = (function() {
26009
26394
  message.playerBackgroundMedia[keys[i]] = $root.contentful.IdReference.fromObject(object.playerBackgroundMedia[keys[i]]);
26010
26395
  }
26011
26396
  }
26397
+ if (object.tags) {
26398
+ if (typeof object.tags !== "object")
26399
+ throw TypeError(".ContentfulActivityGroupUpdated.tags: object expected");
26400
+ message.tags = {};
26401
+ for (var keys = Object.keys(object.tags), i = 0; i < keys.length; ++i) {
26402
+ if (typeof object.tags[keys[i]] !== "object")
26403
+ throw TypeError(".ContentfulActivityGroupUpdated.tags: object expected");
26404
+ message.tags[keys[i]] = $root.contentful.Tags.fromObject(object.tags[keys[i]]);
26405
+ }
26406
+ }
26012
26407
  return message;
26013
26408
  };
26014
26409
 
@@ -26038,6 +26433,7 @@ $root.ContentfulActivityGroupUpdated = (function() {
26038
26433
  object.bannerMedia = {};
26039
26434
  object.patternMedia = {};
26040
26435
  object.playerBackgroundMedia = {};
26436
+ object.tags = {};
26041
26437
  }
26042
26438
  if (options.defaults) {
26043
26439
  object.slug = "";
@@ -26132,6 +26528,11 @@ $root.ContentfulActivityGroupUpdated = (function() {
26132
26528
  for (var j = 0; j < keys2.length; ++j)
26133
26529
  object.playerBackgroundMedia[keys2[j]] = $root.contentful.IdReference.toObject(message.playerBackgroundMedia[keys2[j]], options);
26134
26530
  }
26531
+ if (message.tags && (keys2 = Object.keys(message.tags)).length) {
26532
+ object.tags = {};
26533
+ for (var j = 0; j < keys2.length; ++j)
26534
+ object.tags[keys2[j]] = $root.contentful.Tags.toObject(message.tags[keys2[j]], options);
26535
+ }
26135
26536
  return object;
26136
26537
  };
26137
26538
 
@@ -31865,6 +32266,7 @@ $root.ContentfulSleepcastCreated = (function() {
31865
32266
  * @property {Object.<string,contentful.IIdReferences>|null} [mixedAudioMedia] ContentfulSleepcastCreated mixedAudioMedia
31866
32267
  * @property {Array.<contentful.ISlugReference>|null} [accessGroup] ContentfulSleepcastCreated accessGroup
31867
32268
  * @property {number|Long|null} [createdAt] ContentfulSleepcastCreated createdAt
32269
+ * @property {Object.<string,contentful.ITags>|null} [tags] ContentfulSleepcastCreated tags
31868
32270
  */
31869
32271
 
31870
32272
  /**
@@ -31888,6 +32290,7 @@ $root.ContentfulSleepcastCreated = (function() {
31888
32290
  this.voiceAudioMedia = {};
31889
32291
  this.mixedAudioMedia = {};
31890
32292
  this.accessGroup = [];
32293
+ this.tags = {};
31891
32294
  if (properties)
31892
32295
  for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
31893
32296
  if (properties[keys[i]] != null)
@@ -32022,6 +32425,14 @@ $root.ContentfulSleepcastCreated = (function() {
32022
32425
  */
32023
32426
  ContentfulSleepcastCreated.prototype.createdAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
32024
32427
 
32428
+ /**
32429
+ * ContentfulSleepcastCreated tags.
32430
+ * @member {Object.<string,contentful.ITags>} tags
32431
+ * @memberof ContentfulSleepcastCreated
32432
+ * @instance
32433
+ */
32434
+ ContentfulSleepcastCreated.prototype.tags = $util.emptyObject;
32435
+
32025
32436
  /**
32026
32437
  * Creates a new ContentfulSleepcastCreated instance using the specified properties.
32027
32438
  * @function create
@@ -32100,6 +32511,11 @@ $root.ContentfulSleepcastCreated = (function() {
32100
32511
  $root.contentful.SlugReference.encode(message.accessGroup[i], writer.uint32(/* id 15, wireType 2 =*/122).fork()).ldelim();
32101
32512
  if (message.createdAt != null && message.hasOwnProperty("createdAt"))
32102
32513
  writer.uint32(/* id 16, wireType 0 =*/128).uint64(message.createdAt);
32514
+ if (message.tags != null && message.hasOwnProperty("tags"))
32515
+ for (var keys = Object.keys(message.tags), i = 0; i < keys.length; ++i) {
32516
+ writer.uint32(/* id 17, wireType 2 =*/138).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]);
32517
+ $root.contentful.Tags.encode(message.tags[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim();
32518
+ }
32103
32519
  return writer;
32104
32520
  };
32105
32521
 
@@ -32239,6 +32655,14 @@ $root.ContentfulSleepcastCreated = (function() {
32239
32655
  case 16:
32240
32656
  message.createdAt = reader.uint64();
32241
32657
  break;
32658
+ case 17:
32659
+ reader.skip().pos++;
32660
+ if (message.tags === $util.emptyObject)
32661
+ message.tags = {};
32662
+ key = reader.string();
32663
+ reader.pos++;
32664
+ message.tags[key] = $root.contentful.Tags.decode(reader, reader.uint32());
32665
+ break;
32242
32666
  default:
32243
32667
  reader.skipType(tag & 7);
32244
32668
  break;
@@ -32395,6 +32819,16 @@ $root.ContentfulSleepcastCreated = (function() {
32395
32819
  if (message.createdAt != null && message.hasOwnProperty("createdAt"))
32396
32820
  if (!$util.isInteger(message.createdAt) && !(message.createdAt && $util.isInteger(message.createdAt.low) && $util.isInteger(message.createdAt.high)))
32397
32821
  return "createdAt: integer|Long expected";
32822
+ if (message.tags != null && message.hasOwnProperty("tags")) {
32823
+ if (!$util.isObject(message.tags))
32824
+ return "tags: object expected";
32825
+ var key = Object.keys(message.tags);
32826
+ for (var i = 0; i < key.length; ++i) {
32827
+ var error = $root.contentful.Tags.verify(message.tags[key[i]]);
32828
+ if (error)
32829
+ return "tags." + error;
32830
+ }
32831
+ }
32398
32832
  return null;
32399
32833
  };
32400
32834
 
@@ -32530,6 +32964,16 @@ $root.ContentfulSleepcastCreated = (function() {
32530
32964
  message.createdAt = object.createdAt;
32531
32965
  else if (typeof object.createdAt === "object")
32532
32966
  message.createdAt = new $util.LongBits(object.createdAt.low >>> 0, object.createdAt.high >>> 0).toNumber(true);
32967
+ if (object.tags) {
32968
+ if (typeof object.tags !== "object")
32969
+ throw TypeError(".ContentfulSleepcastCreated.tags: object expected");
32970
+ message.tags = {};
32971
+ for (var keys = Object.keys(object.tags), i = 0; i < keys.length; ++i) {
32972
+ if (typeof object.tags[keys[i]] !== "object")
32973
+ throw TypeError(".ContentfulSleepcastCreated.tags: object expected");
32974
+ message.tags[keys[i]] = $root.contentful.Tags.fromObject(object.tags[keys[i]]);
32975
+ }
32976
+ }
32533
32977
  return message;
32534
32978
  };
32535
32979
 
@@ -32560,6 +33004,7 @@ $root.ContentfulSleepcastCreated = (function() {
32560
33004
  object.ambientAudioMedia = {};
32561
33005
  object.voiceAudioMedia = {};
32562
33006
  object.mixedAudioMedia = {};
33007
+ object.tags = {};
32563
33008
  }
32564
33009
  if (options.defaults) {
32565
33010
  object.slug = "";
@@ -32643,6 +33088,11 @@ $root.ContentfulSleepcastCreated = (function() {
32643
33088
  object.createdAt = options.longs === String ? String(message.createdAt) : message.createdAt;
32644
33089
  else
32645
33090
  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;
33091
+ if (message.tags && (keys2 = Object.keys(message.tags)).length) {
33092
+ object.tags = {};
33093
+ for (var j = 0; j < keys2.length; ++j)
33094
+ object.tags[keys2[j]] = $root.contentful.Tags.toObject(message.tags[keys2[j]], options);
33095
+ }
32646
33096
  return object;
32647
33097
  };
32648
33098
 
@@ -32682,6 +33132,7 @@ $root.ContentfulSleepcastUpdated = (function() {
32682
33132
  * @property {Object.<string,contentful.IIdReferences>|null} [mixedAudioMedia] ContentfulSleepcastUpdated mixedAudioMedia
32683
33133
  * @property {Array.<contentful.ISlugReference>|null} [accessGroup] ContentfulSleepcastUpdated accessGroup
32684
33134
  * @property {number|Long|null} [updatedAt] ContentfulSleepcastUpdated updatedAt
33135
+ * @property {Object.<string,contentful.ITags>|null} [tags] ContentfulSleepcastUpdated tags
32685
33136
  */
32686
33137
 
32687
33138
  /**
@@ -32705,6 +33156,7 @@ $root.ContentfulSleepcastUpdated = (function() {
32705
33156
  this.voiceAudioMedia = {};
32706
33157
  this.mixedAudioMedia = {};
32707
33158
  this.accessGroup = [];
33159
+ this.tags = {};
32708
33160
  if (properties)
32709
33161
  for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
32710
33162
  if (properties[keys[i]] != null)
@@ -32839,6 +33291,14 @@ $root.ContentfulSleepcastUpdated = (function() {
32839
33291
  */
32840
33292
  ContentfulSleepcastUpdated.prototype.updatedAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
32841
33293
 
33294
+ /**
33295
+ * ContentfulSleepcastUpdated tags.
33296
+ * @member {Object.<string,contentful.ITags>} tags
33297
+ * @memberof ContentfulSleepcastUpdated
33298
+ * @instance
33299
+ */
33300
+ ContentfulSleepcastUpdated.prototype.tags = $util.emptyObject;
33301
+
32842
33302
  /**
32843
33303
  * Creates a new ContentfulSleepcastUpdated instance using the specified properties.
32844
33304
  * @function create
@@ -32917,6 +33377,11 @@ $root.ContentfulSleepcastUpdated = (function() {
32917
33377
  $root.contentful.SlugReference.encode(message.accessGroup[i], writer.uint32(/* id 15, wireType 2 =*/122).fork()).ldelim();
32918
33378
  if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
32919
33379
  writer.uint32(/* id 16, wireType 0 =*/128).uint64(message.updatedAt);
33380
+ if (message.tags != null && message.hasOwnProperty("tags"))
33381
+ for (var keys = Object.keys(message.tags), i = 0; i < keys.length; ++i) {
33382
+ writer.uint32(/* id 17, wireType 2 =*/138).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]);
33383
+ $root.contentful.Tags.encode(message.tags[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim();
33384
+ }
32920
33385
  return writer;
32921
33386
  };
32922
33387
 
@@ -33056,6 +33521,14 @@ $root.ContentfulSleepcastUpdated = (function() {
33056
33521
  case 16:
33057
33522
  message.updatedAt = reader.uint64();
33058
33523
  break;
33524
+ case 17:
33525
+ reader.skip().pos++;
33526
+ if (message.tags === $util.emptyObject)
33527
+ message.tags = {};
33528
+ key = reader.string();
33529
+ reader.pos++;
33530
+ message.tags[key] = $root.contentful.Tags.decode(reader, reader.uint32());
33531
+ break;
33059
33532
  default:
33060
33533
  reader.skipType(tag & 7);
33061
33534
  break;
@@ -33212,6 +33685,16 @@ $root.ContentfulSleepcastUpdated = (function() {
33212
33685
  if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
33213
33686
  if (!$util.isInteger(message.updatedAt) && !(message.updatedAt && $util.isInteger(message.updatedAt.low) && $util.isInteger(message.updatedAt.high)))
33214
33687
  return "updatedAt: integer|Long expected";
33688
+ if (message.tags != null && message.hasOwnProperty("tags")) {
33689
+ if (!$util.isObject(message.tags))
33690
+ return "tags: object expected";
33691
+ var key = Object.keys(message.tags);
33692
+ for (var i = 0; i < key.length; ++i) {
33693
+ var error = $root.contentful.Tags.verify(message.tags[key[i]]);
33694
+ if (error)
33695
+ return "tags." + error;
33696
+ }
33697
+ }
33215
33698
  return null;
33216
33699
  };
33217
33700
 
@@ -33347,6 +33830,16 @@ $root.ContentfulSleepcastUpdated = (function() {
33347
33830
  message.updatedAt = object.updatedAt;
33348
33831
  else if (typeof object.updatedAt === "object")
33349
33832
  message.updatedAt = new $util.LongBits(object.updatedAt.low >>> 0, object.updatedAt.high >>> 0).toNumber(true);
33833
+ if (object.tags) {
33834
+ if (typeof object.tags !== "object")
33835
+ throw TypeError(".ContentfulSleepcastUpdated.tags: object expected");
33836
+ message.tags = {};
33837
+ for (var keys = Object.keys(object.tags), i = 0; i < keys.length; ++i) {
33838
+ if (typeof object.tags[keys[i]] !== "object")
33839
+ throw TypeError(".ContentfulSleepcastUpdated.tags: object expected");
33840
+ message.tags[keys[i]] = $root.contentful.Tags.fromObject(object.tags[keys[i]]);
33841
+ }
33842
+ }
33350
33843
  return message;
33351
33844
  };
33352
33845
 
@@ -33377,6 +33870,7 @@ $root.ContentfulSleepcastUpdated = (function() {
33377
33870
  object.ambientAudioMedia = {};
33378
33871
  object.voiceAudioMedia = {};
33379
33872
  object.mixedAudioMedia = {};
33873
+ object.tags = {};
33380
33874
  }
33381
33875
  if (options.defaults) {
33382
33876
  object.slug = "";
@@ -33460,6 +33954,11 @@ $root.ContentfulSleepcastUpdated = (function() {
33460
33954
  object.updatedAt = options.longs === String ? String(message.updatedAt) : message.updatedAt;
33461
33955
  else
33462
33956
  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;
33957
+ if (message.tags && (keys2 = Object.keys(message.tags)).length) {
33958
+ object.tags = {};
33959
+ for (var j = 0; j < keys2.length; ++j)
33960
+ object.tags[keys2[j]] = $root.contentful.Tags.toObject(message.tags[keys2[j]], options);
33961
+ }
33463
33962
  return object;
33464
33963
  };
33465
33964
 
@@ -68517,6 +69016,7 @@ $root.SubscriptionCreated = (function() {
68517
69016
  case 4:
68518
69017
  case 6:
68519
69018
  case 5:
69019
+ case 7:
68520
69020
  break;
68521
69021
  }
68522
69022
  if (message.labels != null && message.hasOwnProperty("labels")) {
@@ -68673,6 +69173,10 @@ $root.SubscriptionCreated = (function() {
68673
69173
  case 5:
68674
69174
  message.subscriptionState = 5;
68675
69175
  break;
69176
+ case "SUBSTATE_PAYMENT_PENDING":
69177
+ case 7:
69178
+ message.subscriptionState = 7;
69179
+ break;
68676
69180
  }
68677
69181
  if (object.labels) {
68678
69182
  if (!Array.isArray(object.labels))
@@ -69240,6 +69744,7 @@ $root.SubscriptionCancelled = (function() {
69240
69744
  case 4:
69241
69745
  case 6:
69242
69746
  case 5:
69747
+ case 7:
69243
69748
  break;
69244
69749
  }
69245
69750
  if (message.labels != null && message.hasOwnProperty("labels")) {
@@ -69415,6 +69920,10 @@ $root.SubscriptionCancelled = (function() {
69415
69920
  case 5:
69416
69921
  message.subscriptionState = 5;
69417
69922
  break;
69923
+ case "SUBSTATE_PAYMENT_PENDING":
69924
+ case 7:
69925
+ message.subscriptionState = 7;
69926
+ break;
69418
69927
  }
69419
69928
  if (object.labels) {
69420
69929
  if (!Array.isArray(object.labels))
@@ -69960,6 +70469,7 @@ $root.SubscriptionRenewed = (function() {
69960
70469
  case 4:
69961
70470
  case 6:
69962
70471
  case 5:
70472
+ case 7:
69963
70473
  break;
69964
70474
  }
69965
70475
  if (message.labels != null && message.hasOwnProperty("labels")) {
@@ -70116,6 +70626,10 @@ $root.SubscriptionRenewed = (function() {
70116
70626
  case 5:
70117
70627
  message.subscriptionState = 5;
70118
70628
  break;
70629
+ case "SUBSTATE_PAYMENT_PENDING":
70630
+ case 7:
70631
+ message.subscriptionState = 7;
70632
+ break;
70119
70633
  }
70120
70634
  if (object.labels) {
70121
70635
  if (!Array.isArray(object.labels))
@@ -71677,6 +72191,7 @@ $root.SubscriptionGraced = (function() {
71677
72191
  case 4:
71678
72192
  case 6:
71679
72193
  case 5:
72194
+ case 7:
71680
72195
  break;
71681
72196
  }
71682
72197
  if (message.labels != null && message.hasOwnProperty("labels")) {
@@ -71833,6 +72348,10 @@ $root.SubscriptionGraced = (function() {
71833
72348
  case 5:
71834
72349
  message.subscriptionState = 5;
71835
72350
  break;
72351
+ case "SUBSTATE_PAYMENT_PENDING":
72352
+ case 7:
72353
+ message.subscriptionState = 7;
72354
+ break;
71836
72355
  }
71837
72356
  if (object.labels) {
71838
72357
  if (!Array.isArray(object.labels))
@@ -72369,6 +72888,7 @@ $root.SubscriptionStarted = (function() {
72369
72888
  case 4:
72370
72889
  case 6:
72371
72890
  case 5:
72891
+ case 7:
72372
72892
  break;
72373
72893
  }
72374
72894
  if (message.labels != null && message.hasOwnProperty("labels")) {
@@ -72526,6 +73046,10 @@ $root.SubscriptionStarted = (function() {
72526
73046
  case 5:
72527
73047
  message.subscriptionState = 5;
72528
73048
  break;
73049
+ case "SUBSTATE_PAYMENT_PENDING":
73050
+ case 7:
73051
+ message.subscriptionState = 7;
73052
+ break;
72529
73053
  }
72530
73054
  if (object.labels) {
72531
73055
  if (!Array.isArray(object.labels))
@@ -73087,6 +73611,7 @@ $root.SubscriptionEnded = (function() {
73087
73611
  case 4:
73088
73612
  case 6:
73089
73613
  case 5:
73614
+ case 7:
73090
73615
  break;
73091
73616
  }
73092
73617
  if (message.labels != null && message.hasOwnProperty("labels")) {
@@ -73258,6 +73783,10 @@ $root.SubscriptionEnded = (function() {
73258
73783
  case 5:
73259
73784
  message.subscriptionState = 5;
73260
73785
  break;
73786
+ case "SUBSTATE_PAYMENT_PENDING":
73787
+ case 7:
73788
+ message.subscriptionState = 7;
73789
+ break;
73261
73790
  }
73262
73791
  if (object.labels) {
73263
73792
  if (!Array.isArray(object.labels))
@@ -73799,6 +74328,7 @@ $root.SubscriptionRecovered = (function() {
73799
74328
  case 4:
73800
74329
  case 6:
73801
74330
  case 5:
74331
+ case 7:
73802
74332
  break;
73803
74333
  }
73804
74334
  if (message.labels != null && message.hasOwnProperty("labels")) {
@@ -73956,6 +74486,10 @@ $root.SubscriptionRecovered = (function() {
73956
74486
  case 5:
73957
74487
  message.subscriptionState = 5;
73958
74488
  break;
74489
+ case "SUBSTATE_PAYMENT_PENDING":
74490
+ case 7:
74491
+ message.subscriptionState = 7;
74492
+ break;
73959
74493
  }
73960
74494
  if (object.labels) {
73961
74495
  if (!Array.isArray(object.labels))
@@ -74494,6 +75028,7 @@ $root.SubscriptionAmended = (function() {
74494
75028
  case 4:
74495
75029
  case 6:
74496
75030
  case 5:
75031
+ case 7:
74497
75032
  break;
74498
75033
  }
74499
75034
  if (message.labels != null && message.hasOwnProperty("labels")) {
@@ -74651,6 +75186,10 @@ $root.SubscriptionAmended = (function() {
74651
75186
  case 5:
74652
75187
  message.subscriptionState = 5;
74653
75188
  break;
75189
+ case "SUBSTATE_PAYMENT_PENDING":
75190
+ case 7:
75191
+ message.subscriptionState = 7;
75192
+ break;
74654
75193
  }
74655
75194
  if (object.labels) {
74656
75195
  if (!Array.isArray(object.labels))
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.217.0"
19
+ "version": "1.219.0"
20
20
  }