@headspace/protos-events 1.216.0 → 1.218.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
 
@@ -5964,6 +6054,9 @@ export interface IContentfulPlaylistCreated {
5964
6054
 
5965
6055
  /** ContentfulPlaylistCreated variationContainer */
5966
6056
  variationContainer?: (contentful.ISlugReference|null);
6057
+
6058
+ /** ContentfulPlaylistCreated tags */
6059
+ tags?: ({ [k: string]: contentful.ITags }|null);
5967
6060
  }
5968
6061
 
5969
6062
  /** Represents a ContentfulPlaylistCreated. */
@@ -6014,6 +6107,9 @@ export class ContentfulPlaylistCreated implements IContentfulPlaylistCreated {
6014
6107
  /** ContentfulPlaylistCreated variationContainer. */
6015
6108
  public variationContainer?: (contentful.ISlugReference|null);
6016
6109
 
6110
+ /** ContentfulPlaylistCreated tags. */
6111
+ public tags: { [k: string]: contentful.ITags };
6112
+
6017
6113
  /**
6018
6114
  * Creates a new ContentfulPlaylistCreated instance using the specified properties.
6019
6115
  * @param [properties] Properties to set
@@ -6126,6 +6222,9 @@ export interface IContentfulPlaylistUpdated {
6126
6222
 
6127
6223
  /** ContentfulPlaylistUpdated variationContainer */
6128
6224
  variationContainer?: (contentful.ISlugReference|null);
6225
+
6226
+ /** ContentfulPlaylistUpdated tags */
6227
+ tags?: ({ [k: string]: contentful.ITags }|null);
6129
6228
  }
6130
6229
 
6131
6230
  /** Represents a ContentfulPlaylistUpdated. */
@@ -6176,6 +6275,9 @@ export class ContentfulPlaylistUpdated implements IContentfulPlaylistUpdated {
6176
6275
  /** ContentfulPlaylistUpdated variationContainer. */
6177
6276
  public variationContainer?: (contentful.ISlugReference|null);
6178
6277
 
6278
+ /** ContentfulPlaylistUpdated tags. */
6279
+ public tags: { [k: string]: contentful.ITags };
6280
+
6179
6281
  /**
6180
6282
  * Creates a new ContentfulPlaylistUpdated instance using the specified properties.
6181
6283
  * @param [properties] Properties to set
@@ -9096,6 +9198,9 @@ export interface IContentfulActivityGroupCreated {
9096
9198
 
9097
9199
  /** ContentfulActivityGroupCreated playerBackgroundMedia */
9098
9200
  playerBackgroundMedia?: ({ [k: string]: contentful.IIdReference }|null);
9201
+
9202
+ /** ContentfulActivityGroupCreated tags */
9203
+ tags?: ({ [k: string]: contentful.ITags }|null);
9099
9204
  }
9100
9205
 
9101
9206
  /** Represents a ContentfulActivityGroupCreated. */
@@ -9170,6 +9275,9 @@ export class ContentfulActivityGroupCreated implements IContentfulActivityGroupC
9170
9275
  /** ContentfulActivityGroupCreated playerBackgroundMedia. */
9171
9276
  public playerBackgroundMedia: { [k: string]: contentful.IIdReference };
9172
9277
 
9278
+ /** ContentfulActivityGroupCreated tags. */
9279
+ public tags: { [k: string]: contentful.ITags };
9280
+
9173
9281
  /**
9174
9282
  * Creates a new ContentfulActivityGroupCreated instance using the specified properties.
9175
9283
  * @param [properties] Properties to set
@@ -9306,6 +9414,9 @@ export interface IContentfulActivityGroupUpdated {
9306
9414
 
9307
9415
  /** ContentfulActivityGroupUpdated playerBackgroundMedia */
9308
9416
  playerBackgroundMedia?: ({ [k: string]: contentful.IIdReference }|null);
9417
+
9418
+ /** ContentfulActivityGroupUpdated tags */
9419
+ tags?: ({ [k: string]: contentful.ITags }|null);
9309
9420
  }
9310
9421
 
9311
9422
  /** Represents a ContentfulActivityGroupUpdated. */
@@ -9380,6 +9491,9 @@ export class ContentfulActivityGroupUpdated implements IContentfulActivityGroupU
9380
9491
  /** ContentfulActivityGroupUpdated playerBackgroundMedia. */
9381
9492
  public playerBackgroundMedia: { [k: string]: contentful.IIdReference };
9382
9493
 
9494
+ /** ContentfulActivityGroupUpdated tags. */
9495
+ public tags: { [k: string]: contentful.ITags };
9496
+
9383
9497
  /**
9384
9498
  * Creates a new ContentfulActivityGroupUpdated instance using the specified properties.
9385
9499
  * @param [properties] Properties to set
@@ -11397,6 +11511,9 @@ export interface IContentfulSleepcastCreated {
11397
11511
 
11398
11512
  /** ContentfulSleepcastCreated createdAt */
11399
11513
  createdAt?: (number|Long|null);
11514
+
11515
+ /** ContentfulSleepcastCreated tags */
11516
+ tags?: ({ [k: string]: contentful.ITags }|null);
11400
11517
  }
11401
11518
 
11402
11519
  /** Represents a ContentfulSleepcastCreated. */
@@ -11456,6 +11573,9 @@ export class ContentfulSleepcastCreated implements IContentfulSleepcastCreated {
11456
11573
  /** ContentfulSleepcastCreated createdAt. */
11457
11574
  public createdAt: (number|Long);
11458
11575
 
11576
+ /** ContentfulSleepcastCreated tags. */
11577
+ public tags: { [k: string]: contentful.ITags };
11578
+
11459
11579
  /**
11460
11580
  * Creates a new ContentfulSleepcastCreated instance using the specified properties.
11461
11581
  * @param [properties] Properties to set
@@ -11577,6 +11697,9 @@ export interface IContentfulSleepcastUpdated {
11577
11697
 
11578
11698
  /** ContentfulSleepcastUpdated updatedAt */
11579
11699
  updatedAt?: (number|Long|null);
11700
+
11701
+ /** ContentfulSleepcastUpdated tags */
11702
+ tags?: ({ [k: string]: contentful.ITags }|null);
11580
11703
  }
11581
11704
 
11582
11705
  /** Represents a ContentfulSleepcastUpdated. */
@@ -11636,6 +11759,9 @@ export class ContentfulSleepcastUpdated implements IContentfulSleepcastUpdated {
11636
11759
  /** ContentfulSleepcastUpdated updatedAt. */
11637
11760
  public updatedAt: (number|Long);
11638
11761
 
11762
+ /** ContentfulSleepcastUpdated tags. */
11763
+ public tags: { [k: string]: contentful.ITags };
11764
+
11639
11765
  /**
11640
11766
  * Creates a new ContentfulSleepcastUpdated instance using the specified properties.
11641
11767
  * @param [properties] Properties to set
@@ -27358,6 +27484,9 @@ export interface IUserMindfulMomentsSettingUpdated {
27358
27484
 
27359
27485
  /** UserMindfulMomentsSettingUpdated migratedToServer */
27360
27486
  migratedToServer?: (boolean|null);
27487
+
27488
+ /** UserMindfulMomentsSettingUpdated timestamp */
27489
+ timestamp?: (number|Long|null);
27361
27490
  }
27362
27491
 
27363
27492
  /** Represents a UserMindfulMomentsSettingUpdated. */
@@ -27384,6 +27513,9 @@ export class UserMindfulMomentsSettingUpdated implements IUserMindfulMomentsSett
27384
27513
  /** UserMindfulMomentsSettingUpdated migratedToServer. */
27385
27514
  public migratedToServer: boolean;
27386
27515
 
27516
+ /** UserMindfulMomentsSettingUpdated timestamp. */
27517
+ public timestamp: (number|Long);
27518
+
27387
27519
  /**
27388
27520
  * Creates a new UserMindfulMomentsSettingUpdated instance using the specified properties.
27389
27521
  * @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
  /**
@@ -14586,6 +14789,7 @@ $root.ContentfulPlaylistCreated = (function() {
14586
14789
  * @property {Array.<contentful.ISlugReference>|null} [accessGroups] ContentfulPlaylistCreated accessGroups
14587
14790
  * @property {number|Long|null} [createdAt] ContentfulPlaylistCreated createdAt
14588
14791
  * @property {contentful.ISlugReference|null} [variationContainer] ContentfulPlaylistCreated variationContainer
14792
+ * @property {Object.<string,contentful.ITags>|null} [tags] ContentfulPlaylistCreated tags
14589
14793
  */
14590
14794
 
14591
14795
  /**
@@ -14606,6 +14810,7 @@ $root.ContentfulPlaylistCreated = (function() {
14606
14810
  this.videoSegments = {};
14607
14811
  this.schedule = {};
14608
14812
  this.accessGroups = [];
14813
+ this.tags = {};
14609
14814
  if (properties)
14610
14815
  for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
14611
14816
  if (properties[keys[i]] != null)
@@ -14716,6 +14921,14 @@ $root.ContentfulPlaylistCreated = (function() {
14716
14921
  */
14717
14922
  ContentfulPlaylistCreated.prototype.variationContainer = null;
14718
14923
 
14924
+ /**
14925
+ * ContentfulPlaylistCreated tags.
14926
+ * @member {Object.<string,contentful.ITags>} tags
14927
+ * @memberof ContentfulPlaylistCreated
14928
+ * @instance
14929
+ */
14930
+ ContentfulPlaylistCreated.prototype.tags = $util.emptyObject;
14931
+
14719
14932
  /**
14720
14933
  * Creates a new ContentfulPlaylistCreated instance using the specified properties.
14721
14934
  * @function create
@@ -14779,6 +14992,11 @@ $root.ContentfulPlaylistCreated = (function() {
14779
14992
  writer.uint32(/* id 12, wireType 0 =*/96).uint64(message.createdAt);
14780
14993
  if (message.variationContainer != null && message.hasOwnProperty("variationContainer"))
14781
14994
  $root.contentful.SlugReference.encode(message.variationContainer, writer.uint32(/* id 13, wireType 2 =*/106).fork()).ldelim();
14995
+ if (message.tags != null && message.hasOwnProperty("tags"))
14996
+ for (var keys = Object.keys(message.tags), i = 0; i < keys.length; ++i) {
14997
+ writer.uint32(/* id 14, wireType 2 =*/114).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]);
14998
+ $root.contentful.Tags.encode(message.tags[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim();
14999
+ }
14782
15000
  return writer;
14783
15001
  };
14784
15002
 
@@ -14894,6 +15112,14 @@ $root.ContentfulPlaylistCreated = (function() {
14894
15112
  case 13:
14895
15113
  message.variationContainer = $root.contentful.SlugReference.decode(reader, reader.uint32());
14896
15114
  break;
15115
+ case 14:
15116
+ reader.skip().pos++;
15117
+ if (message.tags === $util.emptyObject)
15118
+ message.tags = {};
15119
+ key = reader.string();
15120
+ reader.pos++;
15121
+ message.tags[key] = $root.contentful.Tags.decode(reader, reader.uint32());
15122
+ break;
14897
15123
  default:
14898
15124
  reader.skipType(tag & 7);
14899
15125
  break;
@@ -15020,6 +15246,16 @@ $root.ContentfulPlaylistCreated = (function() {
15020
15246
  if (error)
15021
15247
  return "variationContainer." + error;
15022
15248
  }
15249
+ if (message.tags != null && message.hasOwnProperty("tags")) {
15250
+ if (!$util.isObject(message.tags))
15251
+ return "tags: object expected";
15252
+ var key = Object.keys(message.tags);
15253
+ for (var i = 0; i < key.length; ++i) {
15254
+ var error = $root.contentful.Tags.verify(message.tags[key[i]]);
15255
+ if (error)
15256
+ return "tags." + error;
15257
+ }
15258
+ }
15023
15259
  return null;
15024
15260
  };
15025
15261
 
@@ -15125,6 +15361,16 @@ $root.ContentfulPlaylistCreated = (function() {
15125
15361
  throw TypeError(".ContentfulPlaylistCreated.variationContainer: object expected");
15126
15362
  message.variationContainer = $root.contentful.SlugReference.fromObject(object.variationContainer);
15127
15363
  }
15364
+ if (object.tags) {
15365
+ if (typeof object.tags !== "object")
15366
+ throw TypeError(".ContentfulPlaylistCreated.tags: object expected");
15367
+ message.tags = {};
15368
+ for (var keys = Object.keys(object.tags), i = 0; i < keys.length; ++i) {
15369
+ if (typeof object.tags[keys[i]] !== "object")
15370
+ throw TypeError(".ContentfulPlaylistCreated.tags: object expected");
15371
+ message.tags[keys[i]] = $root.contentful.Tags.fromObject(object.tags[keys[i]]);
15372
+ }
15373
+ }
15128
15374
  return message;
15129
15375
  };
15130
15376
 
@@ -15152,6 +15398,7 @@ $root.ContentfulPlaylistCreated = (function() {
15152
15398
  object.previewMedia = {};
15153
15399
  object.videoSegments = {};
15154
15400
  object.schedule = {};
15401
+ object.tags = {};
15155
15402
  }
15156
15403
  if (options.defaults) {
15157
15404
  object.slug = "";
@@ -15220,6 +15467,11 @@ $root.ContentfulPlaylistCreated = (function() {
15220
15467
  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
15468
  if (message.variationContainer != null && message.hasOwnProperty("variationContainer"))
15222
15469
  object.variationContainer = $root.contentful.SlugReference.toObject(message.variationContainer, options);
15470
+ if (message.tags && (keys2 = Object.keys(message.tags)).length) {
15471
+ object.tags = {};
15472
+ for (var j = 0; j < keys2.length; ++j)
15473
+ object.tags[keys2[j]] = $root.contentful.Tags.toObject(message.tags[keys2[j]], options);
15474
+ }
15223
15475
  return object;
15224
15476
  };
15225
15477
 
@@ -15256,6 +15508,7 @@ $root.ContentfulPlaylistUpdated = (function() {
15256
15508
  * @property {Array.<contentful.ISlugReference>|null} [accessGroups] ContentfulPlaylistUpdated accessGroups
15257
15509
  * @property {number|Long|null} [updatedAt] ContentfulPlaylistUpdated updatedAt
15258
15510
  * @property {contentful.ISlugReference|null} [variationContainer] ContentfulPlaylistUpdated variationContainer
15511
+ * @property {Object.<string,contentful.ITags>|null} [tags] ContentfulPlaylistUpdated tags
15259
15512
  */
15260
15513
 
15261
15514
  /**
@@ -15276,6 +15529,7 @@ $root.ContentfulPlaylistUpdated = (function() {
15276
15529
  this.videoSegments = {};
15277
15530
  this.schedule = {};
15278
15531
  this.accessGroups = [];
15532
+ this.tags = {};
15279
15533
  if (properties)
15280
15534
  for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
15281
15535
  if (properties[keys[i]] != null)
@@ -15386,6 +15640,14 @@ $root.ContentfulPlaylistUpdated = (function() {
15386
15640
  */
15387
15641
  ContentfulPlaylistUpdated.prototype.variationContainer = null;
15388
15642
 
15643
+ /**
15644
+ * ContentfulPlaylistUpdated tags.
15645
+ * @member {Object.<string,contentful.ITags>} tags
15646
+ * @memberof ContentfulPlaylistUpdated
15647
+ * @instance
15648
+ */
15649
+ ContentfulPlaylistUpdated.prototype.tags = $util.emptyObject;
15650
+
15389
15651
  /**
15390
15652
  * Creates a new ContentfulPlaylistUpdated instance using the specified properties.
15391
15653
  * @function create
@@ -15449,6 +15711,11 @@ $root.ContentfulPlaylistUpdated = (function() {
15449
15711
  writer.uint32(/* id 12, wireType 0 =*/96).uint64(message.updatedAt);
15450
15712
  if (message.variationContainer != null && message.hasOwnProperty("variationContainer"))
15451
15713
  $root.contentful.SlugReference.encode(message.variationContainer, writer.uint32(/* id 13, wireType 2 =*/106).fork()).ldelim();
15714
+ if (message.tags != null && message.hasOwnProperty("tags"))
15715
+ for (var keys = Object.keys(message.tags), i = 0; i < keys.length; ++i) {
15716
+ writer.uint32(/* id 14, wireType 2 =*/114).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]);
15717
+ $root.contentful.Tags.encode(message.tags[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim();
15718
+ }
15452
15719
  return writer;
15453
15720
  };
15454
15721
 
@@ -15564,6 +15831,14 @@ $root.ContentfulPlaylistUpdated = (function() {
15564
15831
  case 13:
15565
15832
  message.variationContainer = $root.contentful.SlugReference.decode(reader, reader.uint32());
15566
15833
  break;
15834
+ case 14:
15835
+ reader.skip().pos++;
15836
+ if (message.tags === $util.emptyObject)
15837
+ message.tags = {};
15838
+ key = reader.string();
15839
+ reader.pos++;
15840
+ message.tags[key] = $root.contentful.Tags.decode(reader, reader.uint32());
15841
+ break;
15567
15842
  default:
15568
15843
  reader.skipType(tag & 7);
15569
15844
  break;
@@ -15690,6 +15965,16 @@ $root.ContentfulPlaylistUpdated = (function() {
15690
15965
  if (error)
15691
15966
  return "variationContainer." + error;
15692
15967
  }
15968
+ if (message.tags != null && message.hasOwnProperty("tags")) {
15969
+ if (!$util.isObject(message.tags))
15970
+ return "tags: object expected";
15971
+ var key = Object.keys(message.tags);
15972
+ for (var i = 0; i < key.length; ++i) {
15973
+ var error = $root.contentful.Tags.verify(message.tags[key[i]]);
15974
+ if (error)
15975
+ return "tags." + error;
15976
+ }
15977
+ }
15693
15978
  return null;
15694
15979
  };
15695
15980
 
@@ -15795,6 +16080,16 @@ $root.ContentfulPlaylistUpdated = (function() {
15795
16080
  throw TypeError(".ContentfulPlaylistUpdated.variationContainer: object expected");
15796
16081
  message.variationContainer = $root.contentful.SlugReference.fromObject(object.variationContainer);
15797
16082
  }
16083
+ if (object.tags) {
16084
+ if (typeof object.tags !== "object")
16085
+ throw TypeError(".ContentfulPlaylistUpdated.tags: object expected");
16086
+ message.tags = {};
16087
+ for (var keys = Object.keys(object.tags), i = 0; i < keys.length; ++i) {
16088
+ if (typeof object.tags[keys[i]] !== "object")
16089
+ throw TypeError(".ContentfulPlaylistUpdated.tags: object expected");
16090
+ message.tags[keys[i]] = $root.contentful.Tags.fromObject(object.tags[keys[i]]);
16091
+ }
16092
+ }
15798
16093
  return message;
15799
16094
  };
15800
16095
 
@@ -15822,6 +16117,7 @@ $root.ContentfulPlaylistUpdated = (function() {
15822
16117
  object.previewMedia = {};
15823
16118
  object.videoSegments = {};
15824
16119
  object.schedule = {};
16120
+ object.tags = {};
15825
16121
  }
15826
16122
  if (options.defaults) {
15827
16123
  object.slug = "";
@@ -15890,6 +16186,11 @@ $root.ContentfulPlaylistUpdated = (function() {
15890
16186
  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
16187
  if (message.variationContainer != null && message.hasOwnProperty("variationContainer"))
15892
16188
  object.variationContainer = $root.contentful.SlugReference.toObject(message.variationContainer, options);
16189
+ if (message.tags && (keys2 = Object.keys(message.tags)).length) {
16190
+ object.tags = {};
16191
+ for (var j = 0; j < keys2.length; ++j)
16192
+ object.tags[keys2[j]] = $root.contentful.Tags.toObject(message.tags[keys2[j]], options);
16193
+ }
15893
16194
  return object;
15894
16195
  };
15895
16196
 
@@ -24432,6 +24733,7 @@ $root.ContentfulActivityGroupCreated = (function() {
24432
24733
  * @property {Array.<contentful.ISlugReference>|null} [accessGroup] ContentfulActivityGroupCreated accessGroup
24433
24734
  * @property {number|Long|null} [createdAt] ContentfulActivityGroupCreated createdAt
24434
24735
  * @property {Object.<string,contentful.IIdReference>|null} [playerBackgroundMedia] ContentfulActivityGroupCreated playerBackgroundMedia
24736
+ * @property {Object.<string,contentful.ITags>|null} [tags] ContentfulActivityGroupCreated tags
24435
24737
  */
24436
24738
 
24437
24739
  /**
@@ -24453,6 +24755,7 @@ $root.ContentfulActivityGroupCreated = (function() {
24453
24755
  this.related = [];
24454
24756
  this.accessGroup = [];
24455
24757
  this.playerBackgroundMedia = {};
24758
+ this.tags = {};
24456
24759
  if (properties)
24457
24760
  for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
24458
24761
  if (properties[keys[i]] != null)
@@ -24627,6 +24930,14 @@ $root.ContentfulActivityGroupCreated = (function() {
24627
24930
  */
24628
24931
  ContentfulActivityGroupCreated.prototype.playerBackgroundMedia = $util.emptyObject;
24629
24932
 
24933
+ /**
24934
+ * ContentfulActivityGroupCreated tags.
24935
+ * @member {Object.<string,contentful.ITags>} tags
24936
+ * @memberof ContentfulActivityGroupCreated
24937
+ * @instance
24938
+ */
24939
+ ContentfulActivityGroupCreated.prototype.tags = $util.emptyObject;
24940
+
24630
24941
  /**
24631
24942
  * Creates a new ContentfulActivityGroupCreated instance using the specified properties.
24632
24943
  * @function create
@@ -24709,6 +25020,11 @@ $root.ContentfulActivityGroupCreated = (function() {
24709
25020
  writer.uint32(/* id 21, wireType 2 =*/170).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]);
24710
25021
  $root.contentful.IdReference.encode(message.playerBackgroundMedia[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim();
24711
25022
  }
25023
+ if (message.tags != null && message.hasOwnProperty("tags"))
25024
+ for (var keys = Object.keys(message.tags), i = 0; i < keys.length; ++i) {
25025
+ writer.uint32(/* id 22, wireType 2 =*/178).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]);
25026
+ $root.contentful.Tags.encode(message.tags[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim();
25027
+ }
24712
25028
  return writer;
24713
25029
  };
24714
25030
 
@@ -24844,6 +25160,14 @@ $root.ContentfulActivityGroupCreated = (function() {
24844
25160
  reader.pos++;
24845
25161
  message.playerBackgroundMedia[key] = $root.contentful.IdReference.decode(reader, reader.uint32());
24846
25162
  break;
25163
+ case 22:
25164
+ reader.skip().pos++;
25165
+ if (message.tags === $util.emptyObject)
25166
+ message.tags = {};
25167
+ key = reader.string();
25168
+ reader.pos++;
25169
+ message.tags[key] = $root.contentful.Tags.decode(reader, reader.uint32());
25170
+ break;
24847
25171
  default:
24848
25172
  reader.skipType(tag & 7);
24849
25173
  break;
@@ -25002,6 +25326,16 @@ $root.ContentfulActivityGroupCreated = (function() {
25002
25326
  return "playerBackgroundMedia." + error;
25003
25327
  }
25004
25328
  }
25329
+ if (message.tags != null && message.hasOwnProperty("tags")) {
25330
+ if (!$util.isObject(message.tags))
25331
+ return "tags: object expected";
25332
+ var key = Object.keys(message.tags);
25333
+ for (var i = 0; i < key.length; ++i) {
25334
+ var error = $root.contentful.Tags.verify(message.tags[key[i]]);
25335
+ if (error)
25336
+ return "tags." + error;
25337
+ }
25338
+ }
25005
25339
  return null;
25006
25340
  };
25007
25341
 
@@ -25137,6 +25471,16 @@ $root.ContentfulActivityGroupCreated = (function() {
25137
25471
  message.playerBackgroundMedia[keys[i]] = $root.contentful.IdReference.fromObject(object.playerBackgroundMedia[keys[i]]);
25138
25472
  }
25139
25473
  }
25474
+ if (object.tags) {
25475
+ if (typeof object.tags !== "object")
25476
+ throw TypeError(".ContentfulActivityGroupCreated.tags: object expected");
25477
+ message.tags = {};
25478
+ for (var keys = Object.keys(object.tags), i = 0; i < keys.length; ++i) {
25479
+ if (typeof object.tags[keys[i]] !== "object")
25480
+ throw TypeError(".ContentfulActivityGroupCreated.tags: object expected");
25481
+ message.tags[keys[i]] = $root.contentful.Tags.fromObject(object.tags[keys[i]]);
25482
+ }
25483
+ }
25140
25484
  return message;
25141
25485
  };
25142
25486
 
@@ -25166,6 +25510,7 @@ $root.ContentfulActivityGroupCreated = (function() {
25166
25510
  object.bannerMedia = {};
25167
25511
  object.patternMedia = {};
25168
25512
  object.playerBackgroundMedia = {};
25513
+ object.tags = {};
25169
25514
  }
25170
25515
  if (options.defaults) {
25171
25516
  object.slug = "";
@@ -25260,6 +25605,11 @@ $root.ContentfulActivityGroupCreated = (function() {
25260
25605
  for (var j = 0; j < keys2.length; ++j)
25261
25606
  object.playerBackgroundMedia[keys2[j]] = $root.contentful.IdReference.toObject(message.playerBackgroundMedia[keys2[j]], options);
25262
25607
  }
25608
+ if (message.tags && (keys2 = Object.keys(message.tags)).length) {
25609
+ object.tags = {};
25610
+ for (var j = 0; j < keys2.length; ++j)
25611
+ object.tags[keys2[j]] = $root.contentful.Tags.toObject(message.tags[keys2[j]], options);
25612
+ }
25263
25613
  return object;
25264
25614
  };
25265
25615
 
@@ -25304,6 +25654,7 @@ $root.ContentfulActivityGroupUpdated = (function() {
25304
25654
  * @property {Array.<contentful.ISlugReference>|null} [accessGroup] ContentfulActivityGroupUpdated accessGroup
25305
25655
  * @property {number|Long|null} [updatedAt] ContentfulActivityGroupUpdated updatedAt
25306
25656
  * @property {Object.<string,contentful.IIdReference>|null} [playerBackgroundMedia] ContentfulActivityGroupUpdated playerBackgroundMedia
25657
+ * @property {Object.<string,contentful.ITags>|null} [tags] ContentfulActivityGroupUpdated tags
25307
25658
  */
25308
25659
 
25309
25660
  /**
@@ -25325,6 +25676,7 @@ $root.ContentfulActivityGroupUpdated = (function() {
25325
25676
  this.related = [];
25326
25677
  this.accessGroup = [];
25327
25678
  this.playerBackgroundMedia = {};
25679
+ this.tags = {};
25328
25680
  if (properties)
25329
25681
  for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
25330
25682
  if (properties[keys[i]] != null)
@@ -25499,6 +25851,14 @@ $root.ContentfulActivityGroupUpdated = (function() {
25499
25851
  */
25500
25852
  ContentfulActivityGroupUpdated.prototype.playerBackgroundMedia = $util.emptyObject;
25501
25853
 
25854
+ /**
25855
+ * ContentfulActivityGroupUpdated tags.
25856
+ * @member {Object.<string,contentful.ITags>} tags
25857
+ * @memberof ContentfulActivityGroupUpdated
25858
+ * @instance
25859
+ */
25860
+ ContentfulActivityGroupUpdated.prototype.tags = $util.emptyObject;
25861
+
25502
25862
  /**
25503
25863
  * Creates a new ContentfulActivityGroupUpdated instance using the specified properties.
25504
25864
  * @function create
@@ -25581,6 +25941,11 @@ $root.ContentfulActivityGroupUpdated = (function() {
25581
25941
  writer.uint32(/* id 21, wireType 2 =*/170).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]);
25582
25942
  $root.contentful.IdReference.encode(message.playerBackgroundMedia[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim();
25583
25943
  }
25944
+ if (message.tags != null && message.hasOwnProperty("tags"))
25945
+ for (var keys = Object.keys(message.tags), i = 0; i < keys.length; ++i) {
25946
+ writer.uint32(/* id 22, wireType 2 =*/178).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]);
25947
+ $root.contentful.Tags.encode(message.tags[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim();
25948
+ }
25584
25949
  return writer;
25585
25950
  };
25586
25951
 
@@ -25716,6 +26081,14 @@ $root.ContentfulActivityGroupUpdated = (function() {
25716
26081
  reader.pos++;
25717
26082
  message.playerBackgroundMedia[key] = $root.contentful.IdReference.decode(reader, reader.uint32());
25718
26083
  break;
26084
+ case 22:
26085
+ reader.skip().pos++;
26086
+ if (message.tags === $util.emptyObject)
26087
+ message.tags = {};
26088
+ key = reader.string();
26089
+ reader.pos++;
26090
+ message.tags[key] = $root.contentful.Tags.decode(reader, reader.uint32());
26091
+ break;
25719
26092
  default:
25720
26093
  reader.skipType(tag & 7);
25721
26094
  break;
@@ -25874,6 +26247,16 @@ $root.ContentfulActivityGroupUpdated = (function() {
25874
26247
  return "playerBackgroundMedia." + error;
25875
26248
  }
25876
26249
  }
26250
+ if (message.tags != null && message.hasOwnProperty("tags")) {
26251
+ if (!$util.isObject(message.tags))
26252
+ return "tags: object expected";
26253
+ var key = Object.keys(message.tags);
26254
+ for (var i = 0; i < key.length; ++i) {
26255
+ var error = $root.contentful.Tags.verify(message.tags[key[i]]);
26256
+ if (error)
26257
+ return "tags." + error;
26258
+ }
26259
+ }
25877
26260
  return null;
25878
26261
  };
25879
26262
 
@@ -26009,6 +26392,16 @@ $root.ContentfulActivityGroupUpdated = (function() {
26009
26392
  message.playerBackgroundMedia[keys[i]] = $root.contentful.IdReference.fromObject(object.playerBackgroundMedia[keys[i]]);
26010
26393
  }
26011
26394
  }
26395
+ if (object.tags) {
26396
+ if (typeof object.tags !== "object")
26397
+ throw TypeError(".ContentfulActivityGroupUpdated.tags: object expected");
26398
+ message.tags = {};
26399
+ for (var keys = Object.keys(object.tags), i = 0; i < keys.length; ++i) {
26400
+ if (typeof object.tags[keys[i]] !== "object")
26401
+ throw TypeError(".ContentfulActivityGroupUpdated.tags: object expected");
26402
+ message.tags[keys[i]] = $root.contentful.Tags.fromObject(object.tags[keys[i]]);
26403
+ }
26404
+ }
26012
26405
  return message;
26013
26406
  };
26014
26407
 
@@ -26038,6 +26431,7 @@ $root.ContentfulActivityGroupUpdated = (function() {
26038
26431
  object.bannerMedia = {};
26039
26432
  object.patternMedia = {};
26040
26433
  object.playerBackgroundMedia = {};
26434
+ object.tags = {};
26041
26435
  }
26042
26436
  if (options.defaults) {
26043
26437
  object.slug = "";
@@ -26132,6 +26526,11 @@ $root.ContentfulActivityGroupUpdated = (function() {
26132
26526
  for (var j = 0; j < keys2.length; ++j)
26133
26527
  object.playerBackgroundMedia[keys2[j]] = $root.contentful.IdReference.toObject(message.playerBackgroundMedia[keys2[j]], options);
26134
26528
  }
26529
+ if (message.tags && (keys2 = Object.keys(message.tags)).length) {
26530
+ object.tags = {};
26531
+ for (var j = 0; j < keys2.length; ++j)
26532
+ object.tags[keys2[j]] = $root.contentful.Tags.toObject(message.tags[keys2[j]], options);
26533
+ }
26135
26534
  return object;
26136
26535
  };
26137
26536
 
@@ -31865,6 +32264,7 @@ $root.ContentfulSleepcastCreated = (function() {
31865
32264
  * @property {Object.<string,contentful.IIdReferences>|null} [mixedAudioMedia] ContentfulSleepcastCreated mixedAudioMedia
31866
32265
  * @property {Array.<contentful.ISlugReference>|null} [accessGroup] ContentfulSleepcastCreated accessGroup
31867
32266
  * @property {number|Long|null} [createdAt] ContentfulSleepcastCreated createdAt
32267
+ * @property {Object.<string,contentful.ITags>|null} [tags] ContentfulSleepcastCreated tags
31868
32268
  */
31869
32269
 
31870
32270
  /**
@@ -31888,6 +32288,7 @@ $root.ContentfulSleepcastCreated = (function() {
31888
32288
  this.voiceAudioMedia = {};
31889
32289
  this.mixedAudioMedia = {};
31890
32290
  this.accessGroup = [];
32291
+ this.tags = {};
31891
32292
  if (properties)
31892
32293
  for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
31893
32294
  if (properties[keys[i]] != null)
@@ -32022,6 +32423,14 @@ $root.ContentfulSleepcastCreated = (function() {
32022
32423
  */
32023
32424
  ContentfulSleepcastCreated.prototype.createdAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
32024
32425
 
32426
+ /**
32427
+ * ContentfulSleepcastCreated tags.
32428
+ * @member {Object.<string,contentful.ITags>} tags
32429
+ * @memberof ContentfulSleepcastCreated
32430
+ * @instance
32431
+ */
32432
+ ContentfulSleepcastCreated.prototype.tags = $util.emptyObject;
32433
+
32025
32434
  /**
32026
32435
  * Creates a new ContentfulSleepcastCreated instance using the specified properties.
32027
32436
  * @function create
@@ -32100,6 +32509,11 @@ $root.ContentfulSleepcastCreated = (function() {
32100
32509
  $root.contentful.SlugReference.encode(message.accessGroup[i], writer.uint32(/* id 15, wireType 2 =*/122).fork()).ldelim();
32101
32510
  if (message.createdAt != null && message.hasOwnProperty("createdAt"))
32102
32511
  writer.uint32(/* id 16, wireType 0 =*/128).uint64(message.createdAt);
32512
+ if (message.tags != null && message.hasOwnProperty("tags"))
32513
+ for (var keys = Object.keys(message.tags), i = 0; i < keys.length; ++i) {
32514
+ writer.uint32(/* id 17, wireType 2 =*/138).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]);
32515
+ $root.contentful.Tags.encode(message.tags[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim();
32516
+ }
32103
32517
  return writer;
32104
32518
  };
32105
32519
 
@@ -32239,6 +32653,14 @@ $root.ContentfulSleepcastCreated = (function() {
32239
32653
  case 16:
32240
32654
  message.createdAt = reader.uint64();
32241
32655
  break;
32656
+ case 17:
32657
+ reader.skip().pos++;
32658
+ if (message.tags === $util.emptyObject)
32659
+ message.tags = {};
32660
+ key = reader.string();
32661
+ reader.pos++;
32662
+ message.tags[key] = $root.contentful.Tags.decode(reader, reader.uint32());
32663
+ break;
32242
32664
  default:
32243
32665
  reader.skipType(tag & 7);
32244
32666
  break;
@@ -32395,6 +32817,16 @@ $root.ContentfulSleepcastCreated = (function() {
32395
32817
  if (message.createdAt != null && message.hasOwnProperty("createdAt"))
32396
32818
  if (!$util.isInteger(message.createdAt) && !(message.createdAt && $util.isInteger(message.createdAt.low) && $util.isInteger(message.createdAt.high)))
32397
32819
  return "createdAt: integer|Long expected";
32820
+ if (message.tags != null && message.hasOwnProperty("tags")) {
32821
+ if (!$util.isObject(message.tags))
32822
+ return "tags: object expected";
32823
+ var key = Object.keys(message.tags);
32824
+ for (var i = 0; i < key.length; ++i) {
32825
+ var error = $root.contentful.Tags.verify(message.tags[key[i]]);
32826
+ if (error)
32827
+ return "tags." + error;
32828
+ }
32829
+ }
32398
32830
  return null;
32399
32831
  };
32400
32832
 
@@ -32530,6 +32962,16 @@ $root.ContentfulSleepcastCreated = (function() {
32530
32962
  message.createdAt = object.createdAt;
32531
32963
  else if (typeof object.createdAt === "object")
32532
32964
  message.createdAt = new $util.LongBits(object.createdAt.low >>> 0, object.createdAt.high >>> 0).toNumber(true);
32965
+ if (object.tags) {
32966
+ if (typeof object.tags !== "object")
32967
+ throw TypeError(".ContentfulSleepcastCreated.tags: object expected");
32968
+ message.tags = {};
32969
+ for (var keys = Object.keys(object.tags), i = 0; i < keys.length; ++i) {
32970
+ if (typeof object.tags[keys[i]] !== "object")
32971
+ throw TypeError(".ContentfulSleepcastCreated.tags: object expected");
32972
+ message.tags[keys[i]] = $root.contentful.Tags.fromObject(object.tags[keys[i]]);
32973
+ }
32974
+ }
32533
32975
  return message;
32534
32976
  };
32535
32977
 
@@ -32560,6 +33002,7 @@ $root.ContentfulSleepcastCreated = (function() {
32560
33002
  object.ambientAudioMedia = {};
32561
33003
  object.voiceAudioMedia = {};
32562
33004
  object.mixedAudioMedia = {};
33005
+ object.tags = {};
32563
33006
  }
32564
33007
  if (options.defaults) {
32565
33008
  object.slug = "";
@@ -32643,6 +33086,11 @@ $root.ContentfulSleepcastCreated = (function() {
32643
33086
  object.createdAt = options.longs === String ? String(message.createdAt) : message.createdAt;
32644
33087
  else
32645
33088
  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;
33089
+ if (message.tags && (keys2 = Object.keys(message.tags)).length) {
33090
+ object.tags = {};
33091
+ for (var j = 0; j < keys2.length; ++j)
33092
+ object.tags[keys2[j]] = $root.contentful.Tags.toObject(message.tags[keys2[j]], options);
33093
+ }
32646
33094
  return object;
32647
33095
  };
32648
33096
 
@@ -32682,6 +33130,7 @@ $root.ContentfulSleepcastUpdated = (function() {
32682
33130
  * @property {Object.<string,contentful.IIdReferences>|null} [mixedAudioMedia] ContentfulSleepcastUpdated mixedAudioMedia
32683
33131
  * @property {Array.<contentful.ISlugReference>|null} [accessGroup] ContentfulSleepcastUpdated accessGroup
32684
33132
  * @property {number|Long|null} [updatedAt] ContentfulSleepcastUpdated updatedAt
33133
+ * @property {Object.<string,contentful.ITags>|null} [tags] ContentfulSleepcastUpdated tags
32685
33134
  */
32686
33135
 
32687
33136
  /**
@@ -32705,6 +33154,7 @@ $root.ContentfulSleepcastUpdated = (function() {
32705
33154
  this.voiceAudioMedia = {};
32706
33155
  this.mixedAudioMedia = {};
32707
33156
  this.accessGroup = [];
33157
+ this.tags = {};
32708
33158
  if (properties)
32709
33159
  for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
32710
33160
  if (properties[keys[i]] != null)
@@ -32839,6 +33289,14 @@ $root.ContentfulSleepcastUpdated = (function() {
32839
33289
  */
32840
33290
  ContentfulSleepcastUpdated.prototype.updatedAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
32841
33291
 
33292
+ /**
33293
+ * ContentfulSleepcastUpdated tags.
33294
+ * @member {Object.<string,contentful.ITags>} tags
33295
+ * @memberof ContentfulSleepcastUpdated
33296
+ * @instance
33297
+ */
33298
+ ContentfulSleepcastUpdated.prototype.tags = $util.emptyObject;
33299
+
32842
33300
  /**
32843
33301
  * Creates a new ContentfulSleepcastUpdated instance using the specified properties.
32844
33302
  * @function create
@@ -32917,6 +33375,11 @@ $root.ContentfulSleepcastUpdated = (function() {
32917
33375
  $root.contentful.SlugReference.encode(message.accessGroup[i], writer.uint32(/* id 15, wireType 2 =*/122).fork()).ldelim();
32918
33376
  if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
32919
33377
  writer.uint32(/* id 16, wireType 0 =*/128).uint64(message.updatedAt);
33378
+ if (message.tags != null && message.hasOwnProperty("tags"))
33379
+ for (var keys = Object.keys(message.tags), i = 0; i < keys.length; ++i) {
33380
+ writer.uint32(/* id 17, wireType 2 =*/138).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]);
33381
+ $root.contentful.Tags.encode(message.tags[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim();
33382
+ }
32920
33383
  return writer;
32921
33384
  };
32922
33385
 
@@ -33056,6 +33519,14 @@ $root.ContentfulSleepcastUpdated = (function() {
33056
33519
  case 16:
33057
33520
  message.updatedAt = reader.uint64();
33058
33521
  break;
33522
+ case 17:
33523
+ reader.skip().pos++;
33524
+ if (message.tags === $util.emptyObject)
33525
+ message.tags = {};
33526
+ key = reader.string();
33527
+ reader.pos++;
33528
+ message.tags[key] = $root.contentful.Tags.decode(reader, reader.uint32());
33529
+ break;
33059
33530
  default:
33060
33531
  reader.skipType(tag & 7);
33061
33532
  break;
@@ -33212,6 +33683,16 @@ $root.ContentfulSleepcastUpdated = (function() {
33212
33683
  if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
33213
33684
  if (!$util.isInteger(message.updatedAt) && !(message.updatedAt && $util.isInteger(message.updatedAt.low) && $util.isInteger(message.updatedAt.high)))
33214
33685
  return "updatedAt: integer|Long expected";
33686
+ if (message.tags != null && message.hasOwnProperty("tags")) {
33687
+ if (!$util.isObject(message.tags))
33688
+ return "tags: object expected";
33689
+ var key = Object.keys(message.tags);
33690
+ for (var i = 0; i < key.length; ++i) {
33691
+ var error = $root.contentful.Tags.verify(message.tags[key[i]]);
33692
+ if (error)
33693
+ return "tags." + error;
33694
+ }
33695
+ }
33215
33696
  return null;
33216
33697
  };
33217
33698
 
@@ -33347,6 +33828,16 @@ $root.ContentfulSleepcastUpdated = (function() {
33347
33828
  message.updatedAt = object.updatedAt;
33348
33829
  else if (typeof object.updatedAt === "object")
33349
33830
  message.updatedAt = new $util.LongBits(object.updatedAt.low >>> 0, object.updatedAt.high >>> 0).toNumber(true);
33831
+ if (object.tags) {
33832
+ if (typeof object.tags !== "object")
33833
+ throw TypeError(".ContentfulSleepcastUpdated.tags: object expected");
33834
+ message.tags = {};
33835
+ for (var keys = Object.keys(object.tags), i = 0; i < keys.length; ++i) {
33836
+ if (typeof object.tags[keys[i]] !== "object")
33837
+ throw TypeError(".ContentfulSleepcastUpdated.tags: object expected");
33838
+ message.tags[keys[i]] = $root.contentful.Tags.fromObject(object.tags[keys[i]]);
33839
+ }
33840
+ }
33350
33841
  return message;
33351
33842
  };
33352
33843
 
@@ -33377,6 +33868,7 @@ $root.ContentfulSleepcastUpdated = (function() {
33377
33868
  object.ambientAudioMedia = {};
33378
33869
  object.voiceAudioMedia = {};
33379
33870
  object.mixedAudioMedia = {};
33871
+ object.tags = {};
33380
33872
  }
33381
33873
  if (options.defaults) {
33382
33874
  object.slug = "";
@@ -33460,6 +33952,11 @@ $root.ContentfulSleepcastUpdated = (function() {
33460
33952
  object.updatedAt = options.longs === String ? String(message.updatedAt) : message.updatedAt;
33461
33953
  else
33462
33954
  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;
33955
+ if (message.tags && (keys2 = Object.keys(message.tags)).length) {
33956
+ object.tags = {};
33957
+ for (var j = 0; j < keys2.length; ++j)
33958
+ object.tags[keys2[j]] = $root.contentful.Tags.toObject(message.tags[keys2[j]], options);
33959
+ }
33463
33960
  return object;
33464
33961
  };
33465
33962
 
@@ -77752,6 +78249,7 @@ $root.UserMindfulMomentsSettingUpdated = (function() {
77752
78249
  * @property {number|null} [lastViewedMomentIdentifier] UserMindfulMomentsSettingUpdated lastViewedMomentIdentifier
77753
78250
  * @property {boolean|null} [isEnabled] UserMindfulMomentsSettingUpdated isEnabled
77754
78251
  * @property {boolean|null} [migratedToServer] UserMindfulMomentsSettingUpdated migratedToServer
78252
+ * @property {number|Long|null} [timestamp] UserMindfulMomentsSettingUpdated timestamp
77755
78253
  */
77756
78254
 
77757
78255
  /**
@@ -77809,6 +78307,14 @@ $root.UserMindfulMomentsSettingUpdated = (function() {
77809
78307
  */
77810
78308
  UserMindfulMomentsSettingUpdated.prototype.migratedToServer = false;
77811
78309
 
78310
+ /**
78311
+ * UserMindfulMomentsSettingUpdated timestamp.
78312
+ * @member {number|Long} timestamp
78313
+ * @memberof UserMindfulMomentsSettingUpdated
78314
+ * @instance
78315
+ */
78316
+ UserMindfulMomentsSettingUpdated.prototype.timestamp = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
78317
+
77812
78318
  /**
77813
78319
  * Creates a new UserMindfulMomentsSettingUpdated instance using the specified properties.
77814
78320
  * @function create
@@ -77843,6 +78349,8 @@ $root.UserMindfulMomentsSettingUpdated = (function() {
77843
78349
  writer.uint32(/* id 4, wireType 0 =*/32).bool(message.isEnabled);
77844
78350
  if (message.migratedToServer != null && message.hasOwnProperty("migratedToServer"))
77845
78351
  writer.uint32(/* id 5, wireType 0 =*/40).bool(message.migratedToServer);
78352
+ if (message.timestamp != null && message.hasOwnProperty("timestamp"))
78353
+ writer.uint32(/* id 6, wireType 0 =*/48).uint64(message.timestamp);
77846
78354
  return writer;
77847
78355
  };
77848
78356
 
@@ -77892,6 +78400,9 @@ $root.UserMindfulMomentsSettingUpdated = (function() {
77892
78400
  case 5:
77893
78401
  message.migratedToServer = reader.bool();
77894
78402
  break;
78403
+ case 6:
78404
+ message.timestamp = reader.uint64();
78405
+ break;
77895
78406
  default:
77896
78407
  reader.skipType(tag & 7);
77897
78408
  break;
@@ -77942,6 +78453,9 @@ $root.UserMindfulMomentsSettingUpdated = (function() {
77942
78453
  if (message.migratedToServer != null && message.hasOwnProperty("migratedToServer"))
77943
78454
  if (typeof message.migratedToServer !== "boolean")
77944
78455
  return "migratedToServer: boolean expected";
78456
+ if (message.timestamp != null && message.hasOwnProperty("timestamp"))
78457
+ if (!$util.isInteger(message.timestamp) && !(message.timestamp && $util.isInteger(message.timestamp.low) && $util.isInteger(message.timestamp.high)))
78458
+ return "timestamp: integer|Long expected";
77945
78459
  return null;
77946
78460
  };
77947
78461
 
@@ -77967,6 +78481,15 @@ $root.UserMindfulMomentsSettingUpdated = (function() {
77967
78481
  message.isEnabled = Boolean(object.isEnabled);
77968
78482
  if (object.migratedToServer != null)
77969
78483
  message.migratedToServer = Boolean(object.migratedToServer);
78484
+ if (object.timestamp != null)
78485
+ if ($util.Long)
78486
+ (message.timestamp = $util.Long.fromValue(object.timestamp)).unsigned = true;
78487
+ else if (typeof object.timestamp === "string")
78488
+ message.timestamp = parseInt(object.timestamp, 10);
78489
+ else if (typeof object.timestamp === "number")
78490
+ message.timestamp = object.timestamp;
78491
+ else if (typeof object.timestamp === "object")
78492
+ message.timestamp = new $util.LongBits(object.timestamp.low >>> 0, object.timestamp.high >>> 0).toNumber(true);
77970
78493
  return message;
77971
78494
  };
77972
78495
 
@@ -77989,6 +78512,11 @@ $root.UserMindfulMomentsSettingUpdated = (function() {
77989
78512
  object.lastViewedMomentIdentifier = 0;
77990
78513
  object.isEnabled = false;
77991
78514
  object.migratedToServer = false;
78515
+ if ($util.Long) {
78516
+ var long = new $util.Long(0, 0, true);
78517
+ object.timestamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
78518
+ } else
78519
+ object.timestamp = options.longs === String ? "0" : 0;
77992
78520
  }
77993
78521
  if (message.userId != null && message.hasOwnProperty("userId"))
77994
78522
  object.userId = message.userId;
@@ -78000,6 +78528,11 @@ $root.UserMindfulMomentsSettingUpdated = (function() {
78000
78528
  object.isEnabled = message.isEnabled;
78001
78529
  if (message.migratedToServer != null && message.hasOwnProperty("migratedToServer"))
78002
78530
  object.migratedToServer = message.migratedToServer;
78531
+ if (message.timestamp != null && message.hasOwnProperty("timestamp"))
78532
+ if (typeof message.timestamp === "number")
78533
+ object.timestamp = options.longs === String ? String(message.timestamp) : message.timestamp;
78534
+ else
78535
+ object.timestamp = options.longs === String ? $util.Long.prototype.toString.call(message.timestamp) : options.longs === Number ? new $util.LongBits(message.timestamp.low >>> 0, message.timestamp.high >>> 0).toNumber(true) : message.timestamp;
78003
78536
  return object;
78004
78537
  };
78005
78538
 
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.216.0"
19
+ "version": "1.218.0"
20
20
  }