@headspace/protos-events 1.851.0 → 1.852.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
@@ -95547,6 +95547,292 @@ export namespace PartnerSignalWindDownScheduled {
95547
95547
  type $Shape = PartnerSignalWindDownScheduled.$Properties;
95548
95548
  }
95549
95549
 
95550
+ /**
95551
+ * Properties of a ContentEngagementPassportCreated.
95552
+ * @deprecated Use ContentEngagementPassportCreated.$Properties instead.
95553
+ */
95554
+ export interface IContentEngagementPassportCreated extends ContentEngagementPassportCreated.$Properties {
95555
+ }
95556
+
95557
+ /**
95558
+ * Sent when a passport (experience-universe envelope) has been created.
95559
+ * Fired by hs-content-engagement-service.
95560
+ * Responsible team: Core Platform
95561
+ * Responsible domain: Content
95562
+ */
95563
+ export class ContentEngagementPassportCreated {
95564
+
95565
+ /**
95566
+ * Constructs a new ContentEngagementPassportCreated.
95567
+ * @param [properties] Properties to set
95568
+ */
95569
+ constructor(properties?: ContentEngagementPassportCreated.$Properties);
95570
+
95571
+ /** Unknown fields preserved while decoding */
95572
+ $unknowns?: Uint8Array[];
95573
+
95574
+ /** ContentEngagementPassportCreated passportId. */
95575
+ passportId: string;
95576
+
95577
+ /** ContentEngagementPassportCreated profileId. */
95578
+ profileId: string;
95579
+
95580
+ /** ContentEngagementPassportCreated hsUserId. */
95581
+ hsUserId: string;
95582
+
95583
+ /** ContentEngagementPassportCreated universe. */
95584
+ universe: string;
95585
+
95586
+ /** ContentEngagementPassportCreated timestamp. */
95587
+ timestamp: (number|Long);
95588
+
95589
+ /**
95590
+ * Creates a new ContentEngagementPassportCreated instance using the specified properties.
95591
+ * @param [properties] Properties to set
95592
+ * @returns ContentEngagementPassportCreated instance
95593
+ */
95594
+ static create(properties: ContentEngagementPassportCreated.$Shape): ContentEngagementPassportCreated & ContentEngagementPassportCreated.$Shape;
95595
+ static create(properties?: ContentEngagementPassportCreated.$Properties): ContentEngagementPassportCreated;
95596
+
95597
+ /**
95598
+ * Encodes the specified ContentEngagementPassportCreated message. Does not implicitly {@link ContentEngagementPassportCreated.verify|verify} messages.
95599
+ * @param message ContentEngagementPassportCreated message or plain object to encode
95600
+ * @param [writer] Writer to encode to
95601
+ * @returns Writer
95602
+ */
95603
+ static encode(message: ContentEngagementPassportCreated.$Properties, writer?: $protobuf.Writer): $protobuf.Writer;
95604
+
95605
+ /**
95606
+ * Encodes the specified ContentEngagementPassportCreated message, length delimited. Does not implicitly {@link ContentEngagementPassportCreated.verify|verify} messages.
95607
+ * @param message ContentEngagementPassportCreated message or plain object to encode
95608
+ * @param [writer] Writer to encode to
95609
+ * @returns Writer
95610
+ */
95611
+ static encodeDelimited(message: ContentEngagementPassportCreated.$Properties, writer?: $protobuf.Writer): $protobuf.Writer;
95612
+
95613
+ /**
95614
+ * Decodes a ContentEngagementPassportCreated message from the specified reader or buffer.
95615
+ * @param reader Reader or buffer to decode from
95616
+ * @param [length] Message length if known beforehand
95617
+ * @returns {ContentEngagementPassportCreated & ContentEngagementPassportCreated.$Shape} ContentEngagementPassportCreated
95618
+ * @throws {Error} If the payload is not a reader or valid buffer
95619
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
95620
+ */
95621
+ static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ContentEngagementPassportCreated & ContentEngagementPassportCreated.$Shape;
95622
+
95623
+ /**
95624
+ * Decodes a ContentEngagementPassportCreated message from the specified reader or buffer, length delimited.
95625
+ * @param reader Reader or buffer to decode from
95626
+ * @returns {ContentEngagementPassportCreated & ContentEngagementPassportCreated.$Shape} ContentEngagementPassportCreated
95627
+ * @throws {Error} If the payload is not a reader or valid buffer
95628
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
95629
+ */
95630
+ static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ContentEngagementPassportCreated & ContentEngagementPassportCreated.$Shape;
95631
+
95632
+ /**
95633
+ * Verifies a ContentEngagementPassportCreated message.
95634
+ * @param message Plain object to verify
95635
+ * @returns `null` if valid, otherwise the reason why it is not
95636
+ */
95637
+ static verify(message: { [k: string]: any }): (string|null);
95638
+
95639
+ /**
95640
+ * Creates a ContentEngagementPassportCreated message from a plain object. Also converts values to their respective internal types.
95641
+ * @param object Plain object
95642
+ * @returns ContentEngagementPassportCreated
95643
+ */
95644
+ static fromObject(object: { [k: string]: any }): ContentEngagementPassportCreated;
95645
+
95646
+ /**
95647
+ * Creates a plain object from a ContentEngagementPassportCreated message. Also converts values to other types if specified.
95648
+ * @param message ContentEngagementPassportCreated
95649
+ * @param [options] Conversion options
95650
+ * @returns Plain object
95651
+ */
95652
+ static toObject(message: ContentEngagementPassportCreated, options?: $protobuf.IConversionOptions): { [k: string]: any };
95653
+
95654
+ /**
95655
+ * Converts this ContentEngagementPassportCreated to JSON.
95656
+ * @returns JSON object
95657
+ */
95658
+ toJSON(): { [k: string]: any };
95659
+
95660
+ /**
95661
+ * Gets the type url for ContentEngagementPassportCreated
95662
+ * @param [prefix] Custom type url prefix, defaults to `"type.googleapis.com"`
95663
+ * @returns The type url
95664
+ */
95665
+ static getTypeUrl(prefix?: string): string;
95666
+ }
95667
+
95668
+ export namespace ContentEngagementPassportCreated {
95669
+
95670
+ /** Properties of a ContentEngagementPassportCreated. */
95671
+ interface $Properties {
95672
+
95673
+ /** ContentEngagementPassportCreated passportId */
95674
+ passportId?: (string|null);
95675
+
95676
+ /** ContentEngagementPassportCreated profileId */
95677
+ profileId?: (string|null);
95678
+
95679
+ /** ContentEngagementPassportCreated hsUserId */
95680
+ hsUserId?: (string|null);
95681
+
95682
+ /** ContentEngagementPassportCreated universe */
95683
+ universe?: (string|null);
95684
+
95685
+ /** ContentEngagementPassportCreated timestamp */
95686
+ timestamp?: (number|Long|null);
95687
+
95688
+ /** Unknown fields preserved while decoding */
95689
+ $unknowns?: Uint8Array[];
95690
+ }
95691
+
95692
+ /** Shape of a ContentEngagementPassportCreated. */
95693
+ type $Shape = ContentEngagementPassportCreated.$Properties;
95694
+ }
95695
+
95696
+ /**
95697
+ * Properties of a ContentEngagementPassportDeleted.
95698
+ * @deprecated Use ContentEngagementPassportDeleted.$Properties instead.
95699
+ */
95700
+ export interface IContentEngagementPassportDeleted extends ContentEngagementPassportDeleted.$Properties {
95701
+ }
95702
+
95703
+ /**
95704
+ * Sent when a passport (experience-universe envelope) has been deleted.
95705
+ * Fired by hs-content-engagement-service.
95706
+ * Responsible team: Core Platform
95707
+ * Responsible domain: Content
95708
+ */
95709
+ export class ContentEngagementPassportDeleted {
95710
+
95711
+ /**
95712
+ * Constructs a new ContentEngagementPassportDeleted.
95713
+ * @param [properties] Properties to set
95714
+ */
95715
+ constructor(properties?: ContentEngagementPassportDeleted.$Properties);
95716
+
95717
+ /** Unknown fields preserved while decoding */
95718
+ $unknowns?: Uint8Array[];
95719
+
95720
+ /** ContentEngagementPassportDeleted passportId. */
95721
+ passportId: string;
95722
+
95723
+ /** ContentEngagementPassportDeleted profileId. */
95724
+ profileId: string;
95725
+
95726
+ /** ContentEngagementPassportDeleted hsUserId. */
95727
+ hsUserId: string;
95728
+
95729
+ /** ContentEngagementPassportDeleted timestamp. */
95730
+ timestamp: (number|Long);
95731
+
95732
+ /**
95733
+ * Creates a new ContentEngagementPassportDeleted instance using the specified properties.
95734
+ * @param [properties] Properties to set
95735
+ * @returns ContentEngagementPassportDeleted instance
95736
+ */
95737
+ static create(properties: ContentEngagementPassportDeleted.$Shape): ContentEngagementPassportDeleted & ContentEngagementPassportDeleted.$Shape;
95738
+ static create(properties?: ContentEngagementPassportDeleted.$Properties): ContentEngagementPassportDeleted;
95739
+
95740
+ /**
95741
+ * Encodes the specified ContentEngagementPassportDeleted message. Does not implicitly {@link ContentEngagementPassportDeleted.verify|verify} messages.
95742
+ * @param message ContentEngagementPassportDeleted message or plain object to encode
95743
+ * @param [writer] Writer to encode to
95744
+ * @returns Writer
95745
+ */
95746
+ static encode(message: ContentEngagementPassportDeleted.$Properties, writer?: $protobuf.Writer): $protobuf.Writer;
95747
+
95748
+ /**
95749
+ * Encodes the specified ContentEngagementPassportDeleted message, length delimited. Does not implicitly {@link ContentEngagementPassportDeleted.verify|verify} messages.
95750
+ * @param message ContentEngagementPassportDeleted message or plain object to encode
95751
+ * @param [writer] Writer to encode to
95752
+ * @returns Writer
95753
+ */
95754
+ static encodeDelimited(message: ContentEngagementPassportDeleted.$Properties, writer?: $protobuf.Writer): $protobuf.Writer;
95755
+
95756
+ /**
95757
+ * Decodes a ContentEngagementPassportDeleted message from the specified reader or buffer.
95758
+ * @param reader Reader or buffer to decode from
95759
+ * @param [length] Message length if known beforehand
95760
+ * @returns {ContentEngagementPassportDeleted & ContentEngagementPassportDeleted.$Shape} ContentEngagementPassportDeleted
95761
+ * @throws {Error} If the payload is not a reader or valid buffer
95762
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
95763
+ */
95764
+ static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ContentEngagementPassportDeleted & ContentEngagementPassportDeleted.$Shape;
95765
+
95766
+ /**
95767
+ * Decodes a ContentEngagementPassportDeleted message from the specified reader or buffer, length delimited.
95768
+ * @param reader Reader or buffer to decode from
95769
+ * @returns {ContentEngagementPassportDeleted & ContentEngagementPassportDeleted.$Shape} ContentEngagementPassportDeleted
95770
+ * @throws {Error} If the payload is not a reader or valid buffer
95771
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
95772
+ */
95773
+ static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ContentEngagementPassportDeleted & ContentEngagementPassportDeleted.$Shape;
95774
+
95775
+ /**
95776
+ * Verifies a ContentEngagementPassportDeleted message.
95777
+ * @param message Plain object to verify
95778
+ * @returns `null` if valid, otherwise the reason why it is not
95779
+ */
95780
+ static verify(message: { [k: string]: any }): (string|null);
95781
+
95782
+ /**
95783
+ * Creates a ContentEngagementPassportDeleted message from a plain object. Also converts values to their respective internal types.
95784
+ * @param object Plain object
95785
+ * @returns ContentEngagementPassportDeleted
95786
+ */
95787
+ static fromObject(object: { [k: string]: any }): ContentEngagementPassportDeleted;
95788
+
95789
+ /**
95790
+ * Creates a plain object from a ContentEngagementPassportDeleted message. Also converts values to other types if specified.
95791
+ * @param message ContentEngagementPassportDeleted
95792
+ * @param [options] Conversion options
95793
+ * @returns Plain object
95794
+ */
95795
+ static toObject(message: ContentEngagementPassportDeleted, options?: $protobuf.IConversionOptions): { [k: string]: any };
95796
+
95797
+ /**
95798
+ * Converts this ContentEngagementPassportDeleted to JSON.
95799
+ * @returns JSON object
95800
+ */
95801
+ toJSON(): { [k: string]: any };
95802
+
95803
+ /**
95804
+ * Gets the type url for ContentEngagementPassportDeleted
95805
+ * @param [prefix] Custom type url prefix, defaults to `"type.googleapis.com"`
95806
+ * @returns The type url
95807
+ */
95808
+ static getTypeUrl(prefix?: string): string;
95809
+ }
95810
+
95811
+ export namespace ContentEngagementPassportDeleted {
95812
+
95813
+ /** Properties of a ContentEngagementPassportDeleted. */
95814
+ interface $Properties {
95815
+
95816
+ /** ContentEngagementPassportDeleted passportId */
95817
+ passportId?: (string|null);
95818
+
95819
+ /** ContentEngagementPassportDeleted profileId */
95820
+ profileId?: (string|null);
95821
+
95822
+ /** ContentEngagementPassportDeleted hsUserId */
95823
+ hsUserId?: (string|null);
95824
+
95825
+ /** ContentEngagementPassportDeleted timestamp */
95826
+ timestamp?: (number|Long|null);
95827
+
95828
+ /** Unknown fields preserved while decoding */
95829
+ $unknowns?: Uint8Array[];
95830
+ }
95831
+
95832
+ /** Shape of a ContentEngagementPassportDeleted. */
95833
+ type $Shape = ContentEngagementPassportDeleted.$Properties;
95834
+ }
95835
+
95550
95836
  /**
95551
95837
  * Properties of a PHQAssessmentAssigned.
95552
95838
  * @deprecated Use PHQAssessmentAssigned.$Properties instead.
package/lib/index.js CHANGED
@@ -280726,6 +280726,745 @@ $root.PartnerSignalWindDownScheduled = (function() {
280726
280726
  return PartnerSignalWindDownScheduled;
280727
280727
  })();
280728
280728
 
280729
+ $root.ContentEngagementPassportCreated = (function() {
280730
+
280731
+ /**
280732
+ * Properties of a ContentEngagementPassportCreated.
280733
+ * @typedef {Object} ContentEngagementPassportCreated.$Properties
280734
+ * @property {string|null} [passportId] ContentEngagementPassportCreated passportId
280735
+ * @property {string|null} [profileId] ContentEngagementPassportCreated profileId
280736
+ * @property {string|null} [hsUserId] ContentEngagementPassportCreated hsUserId
280737
+ * @property {string|null} [universe] ContentEngagementPassportCreated universe
280738
+ * @property {number|Long|null} [timestamp] ContentEngagementPassportCreated timestamp
280739
+ * @property {Array.<Uint8Array>} [$unknowns] Unknown fields preserved while decoding
280740
+ */
280741
+
280742
+ /**
280743
+ * Properties of a ContentEngagementPassportCreated.
280744
+ * @name IContentEngagementPassportCreated
280745
+ * @interface IContentEngagementPassportCreated
280746
+ * @augments ContentEngagementPassportCreated.$Properties
280747
+ * @deprecated Use ContentEngagementPassportCreated.$Properties instead.
280748
+ */
280749
+
280750
+ /**
280751
+ * Shape of a ContentEngagementPassportCreated.
280752
+ * @typedef {ContentEngagementPassportCreated.$Properties} ContentEngagementPassportCreated.$Shape
280753
+ */
280754
+
280755
+ /**
280756
+ * Constructs a new ContentEngagementPassportCreated.
280757
+ * @name ContentEngagementPassportCreated
280758
+ * @classdesc Sent when a passport (experience-universe envelope) has been created.
280759
+ * Fired by hs-content-engagement-service.
280760
+ * Responsible team: Core Platform
280761
+ * Responsible domain: Content
280762
+ * @constructor
280763
+ * @param {ContentEngagementPassportCreated.$Properties=} [properties] Properties to set
280764
+ * @property {Array.<Uint8Array>} [$unknowns] Unknown fields preserved while decoding
280765
+ */
280766
+ function ContentEngagementPassportCreated(properties) {
280767
+ if (properties)
280768
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
280769
+ if (properties[keys[i]] != null && keys[i] !== "__proto__")
280770
+ this[keys[i]] = properties[keys[i]];
280771
+ }
280772
+
280773
+ /**
280774
+ * ContentEngagementPassportCreated passportId.
280775
+ * @member {string} passportId
280776
+ * @memberof ContentEngagementPassportCreated
280777
+ * @instance
280778
+ */
280779
+ ContentEngagementPassportCreated.prototype.passportId = "";
280780
+
280781
+ /**
280782
+ * ContentEngagementPassportCreated profileId.
280783
+ * @member {string} profileId
280784
+ * @memberof ContentEngagementPassportCreated
280785
+ * @instance
280786
+ */
280787
+ ContentEngagementPassportCreated.prototype.profileId = "";
280788
+
280789
+ /**
280790
+ * ContentEngagementPassportCreated hsUserId.
280791
+ * @member {string} hsUserId
280792
+ * @memberof ContentEngagementPassportCreated
280793
+ * @instance
280794
+ */
280795
+ ContentEngagementPassportCreated.prototype.hsUserId = "";
280796
+
280797
+ /**
280798
+ * ContentEngagementPassportCreated universe.
280799
+ * @member {string} universe
280800
+ * @memberof ContentEngagementPassportCreated
280801
+ * @instance
280802
+ */
280803
+ ContentEngagementPassportCreated.prototype.universe = "";
280804
+
280805
+ /**
280806
+ * ContentEngagementPassportCreated timestamp.
280807
+ * @member {number|Long} timestamp
280808
+ * @memberof ContentEngagementPassportCreated
280809
+ * @instance
280810
+ */
280811
+ ContentEngagementPassportCreated.prototype.timestamp = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
280812
+
280813
+ /**
280814
+ * Creates a new ContentEngagementPassportCreated instance using the specified properties.
280815
+ * @function create
280816
+ * @memberof ContentEngagementPassportCreated
280817
+ * @static
280818
+ * @param {ContentEngagementPassportCreated.$Properties=} [properties] Properties to set
280819
+ * @returns {ContentEngagementPassportCreated} ContentEngagementPassportCreated instance
280820
+ * @type {{
280821
+ * (properties: ContentEngagementPassportCreated.$Shape): ContentEngagementPassportCreated & ContentEngagementPassportCreated.$Shape;
280822
+ * (properties?: ContentEngagementPassportCreated.$Properties): ContentEngagementPassportCreated;
280823
+ * }}
280824
+ */
280825
+ ContentEngagementPassportCreated.create = function create(properties) {
280826
+ return new ContentEngagementPassportCreated(properties);
280827
+ };
280828
+
280829
+ /**
280830
+ * Encodes the specified ContentEngagementPassportCreated message. Does not implicitly {@link ContentEngagementPassportCreated.verify|verify} messages.
280831
+ * @function encode
280832
+ * @memberof ContentEngagementPassportCreated
280833
+ * @static
280834
+ * @param {ContentEngagementPassportCreated.$Properties} message ContentEngagementPassportCreated message or plain object to encode
280835
+ * @param {$protobuf.Writer} [writer] Writer to encode to
280836
+ * @returns {$protobuf.Writer} Writer
280837
+ */
280838
+ ContentEngagementPassportCreated.encode = function encode(message, writer) {
280839
+ if (!writer)
280840
+ writer = $Writer.create();
280841
+ if (message.passportId != null && Object.hasOwnProperty.call(message, "passportId"))
280842
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.passportId);
280843
+ if (message.profileId != null && Object.hasOwnProperty.call(message, "profileId"))
280844
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.profileId);
280845
+ if (message.hsUserId != null && Object.hasOwnProperty.call(message, "hsUserId"))
280846
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.hsUserId);
280847
+ if (message.universe != null && Object.hasOwnProperty.call(message, "universe"))
280848
+ writer.uint32(/* id 4, wireType 2 =*/34).string(message.universe);
280849
+ if (message.timestamp != null && Object.hasOwnProperty.call(message, "timestamp"))
280850
+ writer.uint32(/* id 5, wireType 0 =*/40).uint64(message.timestamp);
280851
+ if (message.$unknowns != null && Object.hasOwnProperty.call(message, "$unknowns"))
280852
+ for (var i = 0; i < message.$unknowns.length; ++i)
280853
+ writer.raw(message.$unknowns[i]);
280854
+ return writer;
280855
+ };
280856
+
280857
+ /**
280858
+ * Encodes the specified ContentEngagementPassportCreated message, length delimited. Does not implicitly {@link ContentEngagementPassportCreated.verify|verify} messages.
280859
+ * @function encodeDelimited
280860
+ * @memberof ContentEngagementPassportCreated
280861
+ * @static
280862
+ * @param {ContentEngagementPassportCreated.$Properties} message ContentEngagementPassportCreated message or plain object to encode
280863
+ * @param {$protobuf.Writer} [writer] Writer to encode to
280864
+ * @returns {$protobuf.Writer} Writer
280865
+ */
280866
+ ContentEngagementPassportCreated.encodeDelimited = function encodeDelimited(message, writer) {
280867
+ return this.encode(message, writer).ldelim();
280868
+ };
280869
+
280870
+ /**
280871
+ * Decodes a ContentEngagementPassportCreated message from the specified reader or buffer.
280872
+ * @function decode
280873
+ * @memberof ContentEngagementPassportCreated
280874
+ * @static
280875
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
280876
+ * @param {number} [length] Message length if known beforehand
280877
+ * @returns {ContentEngagementPassportCreated & ContentEngagementPassportCreated.$Shape} ContentEngagementPassportCreated
280878
+ * @throws {Error} If the payload is not a reader or valid buffer
280879
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
280880
+ */
280881
+ ContentEngagementPassportCreated.decode = function decode(reader, length, _end, _depth, _target) {
280882
+ if (!(reader instanceof $Reader))
280883
+ reader = $Reader.create(reader);
280884
+ if (_depth === undefined)
280885
+ _depth = 0;
280886
+ if (_depth > $Reader.recursionLimit)
280887
+ throw Error("max depth exceeded");
280888
+ var end = length === undefined ? reader.len : reader.pos + length, message = _target || new $root.ContentEngagementPassportCreated(), value;
280889
+ while (reader.pos < end) {
280890
+ var start = reader.pos;
280891
+ var tag = reader.tag();
280892
+ if (tag === _end) {
280893
+ _end = undefined;
280894
+ break;
280895
+ }
280896
+ var wireType = tag & 7;
280897
+ switch (tag >>>= 3) {
280898
+ case 1: {
280899
+ if (wireType !== 2)
280900
+ break;
280901
+ if ((value = reader.string()).length)
280902
+ message.passportId = value;
280903
+ else
280904
+ delete message.passportId;
280905
+ continue;
280906
+ }
280907
+ case 2: {
280908
+ if (wireType !== 2)
280909
+ break;
280910
+ if ((value = reader.string()).length)
280911
+ message.profileId = value;
280912
+ else
280913
+ delete message.profileId;
280914
+ continue;
280915
+ }
280916
+ case 3: {
280917
+ if (wireType !== 2)
280918
+ break;
280919
+ if ((value = reader.string()).length)
280920
+ message.hsUserId = value;
280921
+ else
280922
+ delete message.hsUserId;
280923
+ continue;
280924
+ }
280925
+ case 4: {
280926
+ if (wireType !== 2)
280927
+ break;
280928
+ if ((value = reader.string()).length)
280929
+ message.universe = value;
280930
+ else
280931
+ delete message.universe;
280932
+ continue;
280933
+ }
280934
+ case 5: {
280935
+ if (wireType !== 0)
280936
+ break;
280937
+ if (typeof (value = reader.uint64()) === "object" ? value.low || value.high : value !== 0)
280938
+ message.timestamp = value;
280939
+ else
280940
+ delete message.timestamp;
280941
+ continue;
280942
+ }
280943
+ }
280944
+ reader.skipType(wireType, _depth, tag);
280945
+ $util.makeProp(message, "$unknowns", false);
280946
+ (message.$unknowns || (message.$unknowns = [])).push(reader.raw(start, reader.pos));
280947
+ }
280948
+ if (_end !== undefined)
280949
+ throw Error("missing end group");
280950
+ return message;
280951
+ };
280952
+
280953
+ /**
280954
+ * Decodes a ContentEngagementPassportCreated message from the specified reader or buffer, length delimited.
280955
+ * @function decodeDelimited
280956
+ * @memberof ContentEngagementPassportCreated
280957
+ * @static
280958
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
280959
+ * @returns {ContentEngagementPassportCreated & ContentEngagementPassportCreated.$Shape} ContentEngagementPassportCreated
280960
+ * @throws {Error} If the payload is not a reader or valid buffer
280961
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
280962
+ */
280963
+ ContentEngagementPassportCreated.decodeDelimited = function decodeDelimited(reader) {
280964
+ if (!(reader instanceof $Reader))
280965
+ reader = new $Reader(reader);
280966
+ return this.decode(reader, reader.uint32());
280967
+ };
280968
+
280969
+ /**
280970
+ * Verifies a ContentEngagementPassportCreated message.
280971
+ * @function verify
280972
+ * @memberof ContentEngagementPassportCreated
280973
+ * @static
280974
+ * @param {Object.<string,*>} message Plain object to verify
280975
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
280976
+ */
280977
+ ContentEngagementPassportCreated.verify = function verify(message, _depth) {
280978
+ if (typeof message !== "object" || message === null)
280979
+ return "object expected";
280980
+ if (_depth === undefined)
280981
+ _depth = 0;
280982
+ if (_depth > $util.recursionLimit)
280983
+ return "max depth exceeded";
280984
+ if (message.passportId != null && message.hasOwnProperty("passportId"))
280985
+ if (!$util.isString(message.passportId))
280986
+ return "passportId: string expected";
280987
+ if (message.profileId != null && message.hasOwnProperty("profileId"))
280988
+ if (!$util.isString(message.profileId))
280989
+ return "profileId: string expected";
280990
+ if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
280991
+ if (!$util.isString(message.hsUserId))
280992
+ return "hsUserId: string expected";
280993
+ if (message.universe != null && message.hasOwnProperty("universe"))
280994
+ if (!$util.isString(message.universe))
280995
+ return "universe: string expected";
280996
+ if (message.timestamp != null && message.hasOwnProperty("timestamp"))
280997
+ if (!$util.isInteger(message.timestamp) && !(message.timestamp && $util.isInteger(message.timestamp.low) && $util.isInteger(message.timestamp.high)))
280998
+ return "timestamp: integer|Long expected";
280999
+ return null;
281000
+ };
281001
+
281002
+ /**
281003
+ * Creates a ContentEngagementPassportCreated message from a plain object. Also converts values to their respective internal types.
281004
+ * @function fromObject
281005
+ * @memberof ContentEngagementPassportCreated
281006
+ * @static
281007
+ * @param {Object.<string,*>} object Plain object
281008
+ * @returns {ContentEngagementPassportCreated} ContentEngagementPassportCreated
281009
+ */
281010
+ ContentEngagementPassportCreated.fromObject = function fromObject(object, _depth) {
281011
+ if (object instanceof $root.ContentEngagementPassportCreated)
281012
+ return object;
281013
+ if (_depth === undefined)
281014
+ _depth = 0;
281015
+ if (_depth > $util.recursionLimit)
281016
+ throw Error("max depth exceeded");
281017
+ var message = new $root.ContentEngagementPassportCreated();
281018
+ if (object.passportId != null)
281019
+ if (typeof object.passportId !== "string" || object.passportId.length)
281020
+ message.passportId = String(object.passportId);
281021
+ if (object.profileId != null)
281022
+ if (typeof object.profileId !== "string" || object.profileId.length)
281023
+ message.profileId = String(object.profileId);
281024
+ if (object.hsUserId != null)
281025
+ if (typeof object.hsUserId !== "string" || object.hsUserId.length)
281026
+ message.hsUserId = String(object.hsUserId);
281027
+ if (object.universe != null)
281028
+ if (typeof object.universe !== "string" || object.universe.length)
281029
+ message.universe = String(object.universe);
281030
+ if (object.timestamp != null)
281031
+ if (typeof object.timestamp === "object" ? object.timestamp.low || object.timestamp.high : Number(object.timestamp) !== 0)
281032
+ if ($util.Long)
281033
+ (message.timestamp = $util.Long.fromValue(object.timestamp)).unsigned = true;
281034
+ else if (typeof object.timestamp === "string")
281035
+ message.timestamp = parseInt(object.timestamp, 10);
281036
+ else if (typeof object.timestamp === "number")
281037
+ message.timestamp = object.timestamp;
281038
+ else if (typeof object.timestamp === "object")
281039
+ message.timestamp = new $util.LongBits(object.timestamp.low >>> 0, object.timestamp.high >>> 0).toNumber(true);
281040
+ return message;
281041
+ };
281042
+
281043
+ /**
281044
+ * Creates a plain object from a ContentEngagementPassportCreated message. Also converts values to other types if specified.
281045
+ * @function toObject
281046
+ * @memberof ContentEngagementPassportCreated
281047
+ * @static
281048
+ * @param {ContentEngagementPassportCreated} message ContentEngagementPassportCreated
281049
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
281050
+ * @returns {Object.<string,*>} Plain object
281051
+ */
281052
+ ContentEngagementPassportCreated.toObject = function toObject(message, options) {
281053
+ if (!options)
281054
+ options = {};
281055
+ var object = {};
281056
+ if (options.defaults) {
281057
+ object.passportId = "";
281058
+ object.profileId = "";
281059
+ object.hsUserId = "";
281060
+ object.universe = "";
281061
+ if ($util.Long) {
281062
+ var long = new $util.Long(0, 0, true);
281063
+ object.timestamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long;
281064
+ } else
281065
+ object.timestamp = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0;
281066
+ }
281067
+ if (message.passportId != null && message.hasOwnProperty("passportId"))
281068
+ object.passportId = message.passportId;
281069
+ if (message.profileId != null && message.hasOwnProperty("profileId"))
281070
+ object.profileId = message.profileId;
281071
+ if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
281072
+ object.hsUserId = message.hsUserId;
281073
+ if (message.universe != null && message.hasOwnProperty("universe"))
281074
+ object.universe = message.universe;
281075
+ if (message.timestamp != null && message.hasOwnProperty("timestamp"))
281076
+ if (typeof BigInt !== "undefined" && options.longs === BigInt)
281077
+ object.timestamp = typeof message.timestamp === "number" ? BigInt(message.timestamp) : $util.Long.fromBits(message.timestamp.low >>> 0, message.timestamp.high >>> 0, true).toBigInt();
281078
+ else if (typeof message.timestamp === "number")
281079
+ object.timestamp = options.longs === String ? String(message.timestamp) : message.timestamp;
281080
+ else
281081
+ 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;
281082
+ return object;
281083
+ };
281084
+
281085
+ /**
281086
+ * Converts this ContentEngagementPassportCreated to JSON.
281087
+ * @function toJSON
281088
+ * @memberof ContentEngagementPassportCreated
281089
+ * @instance
281090
+ * @returns {Object.<string,*>} JSON object
281091
+ */
281092
+ ContentEngagementPassportCreated.prototype.toJSON = function toJSON() {
281093
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
281094
+ };
281095
+
281096
+ /**
281097
+ * Gets the type url for ContentEngagementPassportCreated
281098
+ * @function getTypeUrl
281099
+ * @memberof ContentEngagementPassportCreated
281100
+ * @static
281101
+ * @param {string} [prefix] Custom type url prefix, defaults to `"type.googleapis.com"`
281102
+ * @returns {string} The type url
281103
+ */
281104
+ ContentEngagementPassportCreated.getTypeUrl = function getTypeUrl(prefix) {
281105
+ if (prefix === undefined)
281106
+ prefix = "type.googleapis.com";
281107
+ return prefix + "/ContentEngagementPassportCreated";
281108
+ };
281109
+
281110
+ return ContentEngagementPassportCreated;
281111
+ })();
281112
+
281113
+ $root.ContentEngagementPassportDeleted = (function() {
281114
+
281115
+ /**
281116
+ * Properties of a ContentEngagementPassportDeleted.
281117
+ * @typedef {Object} ContentEngagementPassportDeleted.$Properties
281118
+ * @property {string|null} [passportId] ContentEngagementPassportDeleted passportId
281119
+ * @property {string|null} [profileId] ContentEngagementPassportDeleted profileId
281120
+ * @property {string|null} [hsUserId] ContentEngagementPassportDeleted hsUserId
281121
+ * @property {number|Long|null} [timestamp] ContentEngagementPassportDeleted timestamp
281122
+ * @property {Array.<Uint8Array>} [$unknowns] Unknown fields preserved while decoding
281123
+ */
281124
+
281125
+ /**
281126
+ * Properties of a ContentEngagementPassportDeleted.
281127
+ * @name IContentEngagementPassportDeleted
281128
+ * @interface IContentEngagementPassportDeleted
281129
+ * @augments ContentEngagementPassportDeleted.$Properties
281130
+ * @deprecated Use ContentEngagementPassportDeleted.$Properties instead.
281131
+ */
281132
+
281133
+ /**
281134
+ * Shape of a ContentEngagementPassportDeleted.
281135
+ * @typedef {ContentEngagementPassportDeleted.$Properties} ContentEngagementPassportDeleted.$Shape
281136
+ */
281137
+
281138
+ /**
281139
+ * Constructs a new ContentEngagementPassportDeleted.
281140
+ * @name ContentEngagementPassportDeleted
281141
+ * @classdesc Sent when a passport (experience-universe envelope) has been deleted.
281142
+ * Fired by hs-content-engagement-service.
281143
+ * Responsible team: Core Platform
281144
+ * Responsible domain: Content
281145
+ * @constructor
281146
+ * @param {ContentEngagementPassportDeleted.$Properties=} [properties] Properties to set
281147
+ * @property {Array.<Uint8Array>} [$unknowns] Unknown fields preserved while decoding
281148
+ */
281149
+ function ContentEngagementPassportDeleted(properties) {
281150
+ if (properties)
281151
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
281152
+ if (properties[keys[i]] != null && keys[i] !== "__proto__")
281153
+ this[keys[i]] = properties[keys[i]];
281154
+ }
281155
+
281156
+ /**
281157
+ * ContentEngagementPassportDeleted passportId.
281158
+ * @member {string} passportId
281159
+ * @memberof ContentEngagementPassportDeleted
281160
+ * @instance
281161
+ */
281162
+ ContentEngagementPassportDeleted.prototype.passportId = "";
281163
+
281164
+ /**
281165
+ * ContentEngagementPassportDeleted profileId.
281166
+ * @member {string} profileId
281167
+ * @memberof ContentEngagementPassportDeleted
281168
+ * @instance
281169
+ */
281170
+ ContentEngagementPassportDeleted.prototype.profileId = "";
281171
+
281172
+ /**
281173
+ * ContentEngagementPassportDeleted hsUserId.
281174
+ * @member {string} hsUserId
281175
+ * @memberof ContentEngagementPassportDeleted
281176
+ * @instance
281177
+ */
281178
+ ContentEngagementPassportDeleted.prototype.hsUserId = "";
281179
+
281180
+ /**
281181
+ * ContentEngagementPassportDeleted timestamp.
281182
+ * @member {number|Long} timestamp
281183
+ * @memberof ContentEngagementPassportDeleted
281184
+ * @instance
281185
+ */
281186
+ ContentEngagementPassportDeleted.prototype.timestamp = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
281187
+
281188
+ /**
281189
+ * Creates a new ContentEngagementPassportDeleted instance using the specified properties.
281190
+ * @function create
281191
+ * @memberof ContentEngagementPassportDeleted
281192
+ * @static
281193
+ * @param {ContentEngagementPassportDeleted.$Properties=} [properties] Properties to set
281194
+ * @returns {ContentEngagementPassportDeleted} ContentEngagementPassportDeleted instance
281195
+ * @type {{
281196
+ * (properties: ContentEngagementPassportDeleted.$Shape): ContentEngagementPassportDeleted & ContentEngagementPassportDeleted.$Shape;
281197
+ * (properties?: ContentEngagementPassportDeleted.$Properties): ContentEngagementPassportDeleted;
281198
+ * }}
281199
+ */
281200
+ ContentEngagementPassportDeleted.create = function create(properties) {
281201
+ return new ContentEngagementPassportDeleted(properties);
281202
+ };
281203
+
281204
+ /**
281205
+ * Encodes the specified ContentEngagementPassportDeleted message. Does not implicitly {@link ContentEngagementPassportDeleted.verify|verify} messages.
281206
+ * @function encode
281207
+ * @memberof ContentEngagementPassportDeleted
281208
+ * @static
281209
+ * @param {ContentEngagementPassportDeleted.$Properties} message ContentEngagementPassportDeleted message or plain object to encode
281210
+ * @param {$protobuf.Writer} [writer] Writer to encode to
281211
+ * @returns {$protobuf.Writer} Writer
281212
+ */
281213
+ ContentEngagementPassportDeleted.encode = function encode(message, writer) {
281214
+ if (!writer)
281215
+ writer = $Writer.create();
281216
+ if (message.passportId != null && Object.hasOwnProperty.call(message, "passportId"))
281217
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.passportId);
281218
+ if (message.profileId != null && Object.hasOwnProperty.call(message, "profileId"))
281219
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.profileId);
281220
+ if (message.hsUserId != null && Object.hasOwnProperty.call(message, "hsUserId"))
281221
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.hsUserId);
281222
+ if (message.timestamp != null && Object.hasOwnProperty.call(message, "timestamp"))
281223
+ writer.uint32(/* id 4, wireType 0 =*/32).uint64(message.timestamp);
281224
+ if (message.$unknowns != null && Object.hasOwnProperty.call(message, "$unknowns"))
281225
+ for (var i = 0; i < message.$unknowns.length; ++i)
281226
+ writer.raw(message.$unknowns[i]);
281227
+ return writer;
281228
+ };
281229
+
281230
+ /**
281231
+ * Encodes the specified ContentEngagementPassportDeleted message, length delimited. Does not implicitly {@link ContentEngagementPassportDeleted.verify|verify} messages.
281232
+ * @function encodeDelimited
281233
+ * @memberof ContentEngagementPassportDeleted
281234
+ * @static
281235
+ * @param {ContentEngagementPassportDeleted.$Properties} message ContentEngagementPassportDeleted message or plain object to encode
281236
+ * @param {$protobuf.Writer} [writer] Writer to encode to
281237
+ * @returns {$protobuf.Writer} Writer
281238
+ */
281239
+ ContentEngagementPassportDeleted.encodeDelimited = function encodeDelimited(message, writer) {
281240
+ return this.encode(message, writer).ldelim();
281241
+ };
281242
+
281243
+ /**
281244
+ * Decodes a ContentEngagementPassportDeleted message from the specified reader or buffer.
281245
+ * @function decode
281246
+ * @memberof ContentEngagementPassportDeleted
281247
+ * @static
281248
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
281249
+ * @param {number} [length] Message length if known beforehand
281250
+ * @returns {ContentEngagementPassportDeleted & ContentEngagementPassportDeleted.$Shape} ContentEngagementPassportDeleted
281251
+ * @throws {Error} If the payload is not a reader or valid buffer
281252
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
281253
+ */
281254
+ ContentEngagementPassportDeleted.decode = function decode(reader, length, _end, _depth, _target) {
281255
+ if (!(reader instanceof $Reader))
281256
+ reader = $Reader.create(reader);
281257
+ if (_depth === undefined)
281258
+ _depth = 0;
281259
+ if (_depth > $Reader.recursionLimit)
281260
+ throw Error("max depth exceeded");
281261
+ var end = length === undefined ? reader.len : reader.pos + length, message = _target || new $root.ContentEngagementPassportDeleted(), value;
281262
+ while (reader.pos < end) {
281263
+ var start = reader.pos;
281264
+ var tag = reader.tag();
281265
+ if (tag === _end) {
281266
+ _end = undefined;
281267
+ break;
281268
+ }
281269
+ var wireType = tag & 7;
281270
+ switch (tag >>>= 3) {
281271
+ case 1: {
281272
+ if (wireType !== 2)
281273
+ break;
281274
+ if ((value = reader.string()).length)
281275
+ message.passportId = value;
281276
+ else
281277
+ delete message.passportId;
281278
+ continue;
281279
+ }
281280
+ case 2: {
281281
+ if (wireType !== 2)
281282
+ break;
281283
+ if ((value = reader.string()).length)
281284
+ message.profileId = value;
281285
+ else
281286
+ delete message.profileId;
281287
+ continue;
281288
+ }
281289
+ case 3: {
281290
+ if (wireType !== 2)
281291
+ break;
281292
+ if ((value = reader.string()).length)
281293
+ message.hsUserId = value;
281294
+ else
281295
+ delete message.hsUserId;
281296
+ continue;
281297
+ }
281298
+ case 4: {
281299
+ if (wireType !== 0)
281300
+ break;
281301
+ if (typeof (value = reader.uint64()) === "object" ? value.low || value.high : value !== 0)
281302
+ message.timestamp = value;
281303
+ else
281304
+ delete message.timestamp;
281305
+ continue;
281306
+ }
281307
+ }
281308
+ reader.skipType(wireType, _depth, tag);
281309
+ $util.makeProp(message, "$unknowns", false);
281310
+ (message.$unknowns || (message.$unknowns = [])).push(reader.raw(start, reader.pos));
281311
+ }
281312
+ if (_end !== undefined)
281313
+ throw Error("missing end group");
281314
+ return message;
281315
+ };
281316
+
281317
+ /**
281318
+ * Decodes a ContentEngagementPassportDeleted message from the specified reader or buffer, length delimited.
281319
+ * @function decodeDelimited
281320
+ * @memberof ContentEngagementPassportDeleted
281321
+ * @static
281322
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
281323
+ * @returns {ContentEngagementPassportDeleted & ContentEngagementPassportDeleted.$Shape} ContentEngagementPassportDeleted
281324
+ * @throws {Error} If the payload is not a reader or valid buffer
281325
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
281326
+ */
281327
+ ContentEngagementPassportDeleted.decodeDelimited = function decodeDelimited(reader) {
281328
+ if (!(reader instanceof $Reader))
281329
+ reader = new $Reader(reader);
281330
+ return this.decode(reader, reader.uint32());
281331
+ };
281332
+
281333
+ /**
281334
+ * Verifies a ContentEngagementPassportDeleted message.
281335
+ * @function verify
281336
+ * @memberof ContentEngagementPassportDeleted
281337
+ * @static
281338
+ * @param {Object.<string,*>} message Plain object to verify
281339
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
281340
+ */
281341
+ ContentEngagementPassportDeleted.verify = function verify(message, _depth) {
281342
+ if (typeof message !== "object" || message === null)
281343
+ return "object expected";
281344
+ if (_depth === undefined)
281345
+ _depth = 0;
281346
+ if (_depth > $util.recursionLimit)
281347
+ return "max depth exceeded";
281348
+ if (message.passportId != null && message.hasOwnProperty("passportId"))
281349
+ if (!$util.isString(message.passportId))
281350
+ return "passportId: string expected";
281351
+ if (message.profileId != null && message.hasOwnProperty("profileId"))
281352
+ if (!$util.isString(message.profileId))
281353
+ return "profileId: string expected";
281354
+ if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
281355
+ if (!$util.isString(message.hsUserId))
281356
+ return "hsUserId: string expected";
281357
+ if (message.timestamp != null && message.hasOwnProperty("timestamp"))
281358
+ if (!$util.isInteger(message.timestamp) && !(message.timestamp && $util.isInteger(message.timestamp.low) && $util.isInteger(message.timestamp.high)))
281359
+ return "timestamp: integer|Long expected";
281360
+ return null;
281361
+ };
281362
+
281363
+ /**
281364
+ * Creates a ContentEngagementPassportDeleted message from a plain object. Also converts values to their respective internal types.
281365
+ * @function fromObject
281366
+ * @memberof ContentEngagementPassportDeleted
281367
+ * @static
281368
+ * @param {Object.<string,*>} object Plain object
281369
+ * @returns {ContentEngagementPassportDeleted} ContentEngagementPassportDeleted
281370
+ */
281371
+ ContentEngagementPassportDeleted.fromObject = function fromObject(object, _depth) {
281372
+ if (object instanceof $root.ContentEngagementPassportDeleted)
281373
+ return object;
281374
+ if (_depth === undefined)
281375
+ _depth = 0;
281376
+ if (_depth > $util.recursionLimit)
281377
+ throw Error("max depth exceeded");
281378
+ var message = new $root.ContentEngagementPassportDeleted();
281379
+ if (object.passportId != null)
281380
+ if (typeof object.passportId !== "string" || object.passportId.length)
281381
+ message.passportId = String(object.passportId);
281382
+ if (object.profileId != null)
281383
+ if (typeof object.profileId !== "string" || object.profileId.length)
281384
+ message.profileId = String(object.profileId);
281385
+ if (object.hsUserId != null)
281386
+ if (typeof object.hsUserId !== "string" || object.hsUserId.length)
281387
+ message.hsUserId = String(object.hsUserId);
281388
+ if (object.timestamp != null)
281389
+ if (typeof object.timestamp === "object" ? object.timestamp.low || object.timestamp.high : Number(object.timestamp) !== 0)
281390
+ if ($util.Long)
281391
+ (message.timestamp = $util.Long.fromValue(object.timestamp)).unsigned = true;
281392
+ else if (typeof object.timestamp === "string")
281393
+ message.timestamp = parseInt(object.timestamp, 10);
281394
+ else if (typeof object.timestamp === "number")
281395
+ message.timestamp = object.timestamp;
281396
+ else if (typeof object.timestamp === "object")
281397
+ message.timestamp = new $util.LongBits(object.timestamp.low >>> 0, object.timestamp.high >>> 0).toNumber(true);
281398
+ return message;
281399
+ };
281400
+
281401
+ /**
281402
+ * Creates a plain object from a ContentEngagementPassportDeleted message. Also converts values to other types if specified.
281403
+ * @function toObject
281404
+ * @memberof ContentEngagementPassportDeleted
281405
+ * @static
281406
+ * @param {ContentEngagementPassportDeleted} message ContentEngagementPassportDeleted
281407
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
281408
+ * @returns {Object.<string,*>} Plain object
281409
+ */
281410
+ ContentEngagementPassportDeleted.toObject = function toObject(message, options) {
281411
+ if (!options)
281412
+ options = {};
281413
+ var object = {};
281414
+ if (options.defaults) {
281415
+ object.passportId = "";
281416
+ object.profileId = "";
281417
+ object.hsUserId = "";
281418
+ if ($util.Long) {
281419
+ var long = new $util.Long(0, 0, true);
281420
+ object.timestamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long;
281421
+ } else
281422
+ object.timestamp = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0;
281423
+ }
281424
+ if (message.passportId != null && message.hasOwnProperty("passportId"))
281425
+ object.passportId = message.passportId;
281426
+ if (message.profileId != null && message.hasOwnProperty("profileId"))
281427
+ object.profileId = message.profileId;
281428
+ if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
281429
+ object.hsUserId = message.hsUserId;
281430
+ if (message.timestamp != null && message.hasOwnProperty("timestamp"))
281431
+ if (typeof BigInt !== "undefined" && options.longs === BigInt)
281432
+ object.timestamp = typeof message.timestamp === "number" ? BigInt(message.timestamp) : $util.Long.fromBits(message.timestamp.low >>> 0, message.timestamp.high >>> 0, true).toBigInt();
281433
+ else if (typeof message.timestamp === "number")
281434
+ object.timestamp = options.longs === String ? String(message.timestamp) : message.timestamp;
281435
+ else
281436
+ 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;
281437
+ return object;
281438
+ };
281439
+
281440
+ /**
281441
+ * Converts this ContentEngagementPassportDeleted to JSON.
281442
+ * @function toJSON
281443
+ * @memberof ContentEngagementPassportDeleted
281444
+ * @instance
281445
+ * @returns {Object.<string,*>} JSON object
281446
+ */
281447
+ ContentEngagementPassportDeleted.prototype.toJSON = function toJSON() {
281448
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
281449
+ };
281450
+
281451
+ /**
281452
+ * Gets the type url for ContentEngagementPassportDeleted
281453
+ * @function getTypeUrl
281454
+ * @memberof ContentEngagementPassportDeleted
281455
+ * @static
281456
+ * @param {string} [prefix] Custom type url prefix, defaults to `"type.googleapis.com"`
281457
+ * @returns {string} The type url
281458
+ */
281459
+ ContentEngagementPassportDeleted.getTypeUrl = function getTypeUrl(prefix) {
281460
+ if (prefix === undefined)
281461
+ prefix = "type.googleapis.com";
281462
+ return prefix + "/ContentEngagementPassportDeleted";
281463
+ };
281464
+
281465
+ return ContentEngagementPassportDeleted;
281466
+ })();
281467
+
280729
281468
  $root.PHQAssessmentAssigned = (function() {
280730
281469
 
280731
281470
  /**
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.851.0"
19
+ "version": "1.852.0"
20
20
  }