@headspace/protos-events 1.576.0 → 1.578.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.
Files changed (3) hide show
  1. package/lib/index.d.ts +139 -37
  2. package/lib/index.js +320 -74
  3. package/package.json +1 -1
package/lib/index.d.ts CHANGED
@@ -34956,6 +34956,108 @@ export class OrganizationSubscriptionDeleted implements IOrganizationSubscriptio
34956
34956
  public toJSON(): { [k: string]: any };
34957
34957
  }
34958
34958
 
34959
+ /** Properties of a BrazeProxyChatMessageSent. */
34960
+ export interface IBrazeProxyChatMessageSent {
34961
+
34962
+ /** BrazeProxyChatMessageSent hsUserId */
34963
+ hsUserId?: (string|null);
34964
+
34965
+ /** BrazeProxyChatMessageSent messageId */
34966
+ messageId?: (string|null);
34967
+
34968
+ /** BrazeProxyChatMessageSent timestamp */
34969
+ timestamp?: (number|Long|null);
34970
+ }
34971
+
34972
+ /** Represents a BrazeProxyChatMessageSent. */
34973
+ export class BrazeProxyChatMessageSent implements IBrazeProxyChatMessageSent {
34974
+
34975
+ /**
34976
+ * Constructs a new BrazeProxyChatMessageSent.
34977
+ * @param [properties] Properties to set
34978
+ */
34979
+ constructor(properties?: IBrazeProxyChatMessageSent);
34980
+
34981
+ /** BrazeProxyChatMessageSent hsUserId. */
34982
+ public hsUserId: string;
34983
+
34984
+ /** BrazeProxyChatMessageSent messageId. */
34985
+ public messageId: string;
34986
+
34987
+ /** BrazeProxyChatMessageSent timestamp. */
34988
+ public timestamp: (number|Long);
34989
+
34990
+ /**
34991
+ * Creates a new BrazeProxyChatMessageSent instance using the specified properties.
34992
+ * @param [properties] Properties to set
34993
+ * @returns BrazeProxyChatMessageSent instance
34994
+ */
34995
+ public static create(properties?: IBrazeProxyChatMessageSent): BrazeProxyChatMessageSent;
34996
+
34997
+ /**
34998
+ * Encodes the specified BrazeProxyChatMessageSent message. Does not implicitly {@link BrazeProxyChatMessageSent.verify|verify} messages.
34999
+ * @param message BrazeProxyChatMessageSent message or plain object to encode
35000
+ * @param [writer] Writer to encode to
35001
+ * @returns Writer
35002
+ */
35003
+ public static encode(message: IBrazeProxyChatMessageSent, writer?: $protobuf.Writer): $protobuf.Writer;
35004
+
35005
+ /**
35006
+ * Encodes the specified BrazeProxyChatMessageSent message, length delimited. Does not implicitly {@link BrazeProxyChatMessageSent.verify|verify} messages.
35007
+ * @param message BrazeProxyChatMessageSent message or plain object to encode
35008
+ * @param [writer] Writer to encode to
35009
+ * @returns Writer
35010
+ */
35011
+ public static encodeDelimited(message: IBrazeProxyChatMessageSent, writer?: $protobuf.Writer): $protobuf.Writer;
35012
+
35013
+ /**
35014
+ * Decodes a BrazeProxyChatMessageSent message from the specified reader or buffer.
35015
+ * @param reader Reader or buffer to decode from
35016
+ * @param [length] Message length if known beforehand
35017
+ * @returns BrazeProxyChatMessageSent
35018
+ * @throws {Error} If the payload is not a reader or valid buffer
35019
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
35020
+ */
35021
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): BrazeProxyChatMessageSent;
35022
+
35023
+ /**
35024
+ * Decodes a BrazeProxyChatMessageSent message from the specified reader or buffer, length delimited.
35025
+ * @param reader Reader or buffer to decode from
35026
+ * @returns BrazeProxyChatMessageSent
35027
+ * @throws {Error} If the payload is not a reader or valid buffer
35028
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
35029
+ */
35030
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): BrazeProxyChatMessageSent;
35031
+
35032
+ /**
35033
+ * Verifies a BrazeProxyChatMessageSent message.
35034
+ * @param message Plain object to verify
35035
+ * @returns `null` if valid, otherwise the reason why it is not
35036
+ */
35037
+ public static verify(message: { [k: string]: any }): (string|null);
35038
+
35039
+ /**
35040
+ * Creates a BrazeProxyChatMessageSent message from a plain object. Also converts values to their respective internal types.
35041
+ * @param object Plain object
35042
+ * @returns BrazeProxyChatMessageSent
35043
+ */
35044
+ public static fromObject(object: { [k: string]: any }): BrazeProxyChatMessageSent;
35045
+
35046
+ /**
35047
+ * Creates a plain object from a BrazeProxyChatMessageSent message. Also converts values to other types if specified.
35048
+ * @param message BrazeProxyChatMessageSent
35049
+ * @param [options] Conversion options
35050
+ * @returns Plain object
35051
+ */
35052
+ public static toObject(message: BrazeProxyChatMessageSent, options?: $protobuf.IConversionOptions): { [k: string]: any };
35053
+
35054
+ /**
35055
+ * Converts this BrazeProxyChatMessageSent to JSON.
35056
+ * @returns JSON object
35057
+ */
35058
+ public toJSON(): { [k: string]: any };
35059
+ }
35060
+
34959
35061
  /** GroupType enum. */
34960
35062
  export enum GroupType {
34961
35063
  GROUP_TYPE_UNKNOWN = 0,
@@ -43308,8 +43410,8 @@ export namespace InteractiveJournalingMessage {
43308
43410
  /** CustomAttributes disableTextInput */
43309
43411
  disableTextInput?: (boolean|null);
43310
43412
 
43311
- /** CustomAttributes isContentSuggestion */
43312
- isContentSuggestion?: (boolean|null);
43413
+ /** CustomAttributes suggestedContentId */
43414
+ suggestedContentId?: (number|null);
43313
43415
 
43314
43416
  /** CustomAttributes isLifelineWidget */
43315
43417
  isLifelineWidget?: (boolean|null);
@@ -43330,8 +43432,8 @@ export namespace InteractiveJournalingMessage {
43330
43432
  /** CustomAttributes disableTextInput. */
43331
43433
  public disableTextInput: boolean;
43332
43434
 
43333
- /** CustomAttributes isContentSuggestion. */
43334
- public isContentSuggestion: boolean;
43435
+ /** CustomAttributes suggestedContentId. */
43436
+ public suggestedContentId: number;
43335
43437
 
43336
43438
  /** CustomAttributes isLifelineWidget. */
43337
43439
  public isLifelineWidget: boolean;
@@ -43507,97 +43609,97 @@ export namespace InteractiveJournalingMessage {
43507
43609
  }
43508
43610
  }
43509
43611
 
43510
- /** Properties of a ConversationalChatMessageCreated. */
43511
- export interface IConversationalChatMessageCreated {
43612
+ /** Properties of an InteractiveJournalingMessageCreated. */
43613
+ export interface IInteractiveJournalingMessageCreated {
43512
43614
 
43513
- /** ConversationalChatMessageCreated newMessage */
43615
+ /** InteractiveJournalingMessageCreated newMessage */
43514
43616
  newMessage?: (IInteractiveJournalingMessage|null);
43515
43617
 
43516
- /** ConversationalChatMessageCreated timestamp */
43618
+ /** InteractiveJournalingMessageCreated timestamp */
43517
43619
  timestamp?: (number|Long|null);
43518
43620
  }
43519
43621
 
43520
- /** Represents a ConversationalChatMessageCreated. */
43521
- export class ConversationalChatMessageCreated implements IConversationalChatMessageCreated {
43622
+ /** Represents an InteractiveJournalingMessageCreated. */
43623
+ export class InteractiveJournalingMessageCreated implements IInteractiveJournalingMessageCreated {
43522
43624
 
43523
43625
  /**
43524
- * Constructs a new ConversationalChatMessageCreated.
43626
+ * Constructs a new InteractiveJournalingMessageCreated.
43525
43627
  * @param [properties] Properties to set
43526
43628
  */
43527
- constructor(properties?: IConversationalChatMessageCreated);
43629
+ constructor(properties?: IInteractiveJournalingMessageCreated);
43528
43630
 
43529
- /** ConversationalChatMessageCreated newMessage. */
43631
+ /** InteractiveJournalingMessageCreated newMessage. */
43530
43632
  public newMessage?: (IInteractiveJournalingMessage|null);
43531
43633
 
43532
- /** ConversationalChatMessageCreated timestamp. */
43634
+ /** InteractiveJournalingMessageCreated timestamp. */
43533
43635
  public timestamp: (number|Long);
43534
43636
 
43535
43637
  /**
43536
- * Creates a new ConversationalChatMessageCreated instance using the specified properties.
43638
+ * Creates a new InteractiveJournalingMessageCreated instance using the specified properties.
43537
43639
  * @param [properties] Properties to set
43538
- * @returns ConversationalChatMessageCreated instance
43640
+ * @returns InteractiveJournalingMessageCreated instance
43539
43641
  */
43540
- public static create(properties?: IConversationalChatMessageCreated): ConversationalChatMessageCreated;
43642
+ public static create(properties?: IInteractiveJournalingMessageCreated): InteractiveJournalingMessageCreated;
43541
43643
 
43542
43644
  /**
43543
- * Encodes the specified ConversationalChatMessageCreated message. Does not implicitly {@link ConversationalChatMessageCreated.verify|verify} messages.
43544
- * @param message ConversationalChatMessageCreated message or plain object to encode
43645
+ * Encodes the specified InteractiveJournalingMessageCreated message. Does not implicitly {@link InteractiveJournalingMessageCreated.verify|verify} messages.
43646
+ * @param message InteractiveJournalingMessageCreated message or plain object to encode
43545
43647
  * @param [writer] Writer to encode to
43546
43648
  * @returns Writer
43547
43649
  */
43548
- public static encode(message: IConversationalChatMessageCreated, writer?: $protobuf.Writer): $protobuf.Writer;
43650
+ public static encode(message: IInteractiveJournalingMessageCreated, writer?: $protobuf.Writer): $protobuf.Writer;
43549
43651
 
43550
43652
  /**
43551
- * Encodes the specified ConversationalChatMessageCreated message, length delimited. Does not implicitly {@link ConversationalChatMessageCreated.verify|verify} messages.
43552
- * @param message ConversationalChatMessageCreated message or plain object to encode
43653
+ * Encodes the specified InteractiveJournalingMessageCreated message, length delimited. Does not implicitly {@link InteractiveJournalingMessageCreated.verify|verify} messages.
43654
+ * @param message InteractiveJournalingMessageCreated message or plain object to encode
43553
43655
  * @param [writer] Writer to encode to
43554
43656
  * @returns Writer
43555
43657
  */
43556
- public static encodeDelimited(message: IConversationalChatMessageCreated, writer?: $protobuf.Writer): $protobuf.Writer;
43658
+ public static encodeDelimited(message: IInteractiveJournalingMessageCreated, writer?: $protobuf.Writer): $protobuf.Writer;
43557
43659
 
43558
43660
  /**
43559
- * Decodes a ConversationalChatMessageCreated message from the specified reader or buffer.
43661
+ * Decodes an InteractiveJournalingMessageCreated message from the specified reader or buffer.
43560
43662
  * @param reader Reader or buffer to decode from
43561
43663
  * @param [length] Message length if known beforehand
43562
- * @returns ConversationalChatMessageCreated
43664
+ * @returns InteractiveJournalingMessageCreated
43563
43665
  * @throws {Error} If the payload is not a reader or valid buffer
43564
43666
  * @throws {$protobuf.util.ProtocolError} If required fields are missing
43565
43667
  */
43566
- public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ConversationalChatMessageCreated;
43668
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): InteractiveJournalingMessageCreated;
43567
43669
 
43568
43670
  /**
43569
- * Decodes a ConversationalChatMessageCreated message from the specified reader or buffer, length delimited.
43671
+ * Decodes an InteractiveJournalingMessageCreated message from the specified reader or buffer, length delimited.
43570
43672
  * @param reader Reader or buffer to decode from
43571
- * @returns ConversationalChatMessageCreated
43673
+ * @returns InteractiveJournalingMessageCreated
43572
43674
  * @throws {Error} If the payload is not a reader or valid buffer
43573
43675
  * @throws {$protobuf.util.ProtocolError} If required fields are missing
43574
43676
  */
43575
- public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ConversationalChatMessageCreated;
43677
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): InteractiveJournalingMessageCreated;
43576
43678
 
43577
43679
  /**
43578
- * Verifies a ConversationalChatMessageCreated message.
43680
+ * Verifies an InteractiveJournalingMessageCreated message.
43579
43681
  * @param message Plain object to verify
43580
43682
  * @returns `null` if valid, otherwise the reason why it is not
43581
43683
  */
43582
43684
  public static verify(message: { [k: string]: any }): (string|null);
43583
43685
 
43584
43686
  /**
43585
- * Creates a ConversationalChatMessageCreated message from a plain object. Also converts values to their respective internal types.
43687
+ * Creates an InteractiveJournalingMessageCreated message from a plain object. Also converts values to their respective internal types.
43586
43688
  * @param object Plain object
43587
- * @returns ConversationalChatMessageCreated
43689
+ * @returns InteractiveJournalingMessageCreated
43588
43690
  */
43589
- public static fromObject(object: { [k: string]: any }): ConversationalChatMessageCreated;
43691
+ public static fromObject(object: { [k: string]: any }): InteractiveJournalingMessageCreated;
43590
43692
 
43591
43693
  /**
43592
- * Creates a plain object from a ConversationalChatMessageCreated message. Also converts values to other types if specified.
43593
- * @param message ConversationalChatMessageCreated
43694
+ * Creates a plain object from an InteractiveJournalingMessageCreated message. Also converts values to other types if specified.
43695
+ * @param message InteractiveJournalingMessageCreated
43594
43696
  * @param [options] Conversion options
43595
43697
  * @returns Plain object
43596
43698
  */
43597
- public static toObject(message: ConversationalChatMessageCreated, options?: $protobuf.IConversionOptions): { [k: string]: any };
43699
+ public static toObject(message: InteractiveJournalingMessageCreated, options?: $protobuf.IConversionOptions): { [k: string]: any };
43598
43700
 
43599
43701
  /**
43600
- * Converts this ConversationalChatMessageCreated to JSON.
43702
+ * Converts this InteractiveJournalingMessageCreated to JSON.
43601
43703
  * @returns JSON object
43602
43704
  */
43603
43705
  public toJSON(): { [k: string]: any };
package/lib/index.js CHANGED
@@ -97618,6 +97618,252 @@ $root.OrganizationSubscriptionDeleted = (function() {
97618
97618
  return OrganizationSubscriptionDeleted;
97619
97619
  })();
97620
97620
 
97621
+ $root.BrazeProxyChatMessageSent = (function() {
97622
+
97623
+ /**
97624
+ * Properties of a BrazeProxyChatMessageSent.
97625
+ * @name IBrazeProxyChatMessageSent
97626
+ * @interface IBrazeProxyChatMessageSent
97627
+ * @property {string|null} [hsUserId] BrazeProxyChatMessageSent hsUserId
97628
+ * @property {string|null} [messageId] BrazeProxyChatMessageSent messageId
97629
+ * @property {number|Long|null} [timestamp] BrazeProxyChatMessageSent timestamp
97630
+ */
97631
+
97632
+ /**
97633
+ * Constructs a new BrazeProxyChatMessageSent.
97634
+ * @name BrazeProxyChatMessageSent
97635
+ * @classdesc Represents a BrazeProxyChatMessageSent.
97636
+ * @implements IBrazeProxyChatMessageSent
97637
+ * @constructor
97638
+ * @param {IBrazeProxyChatMessageSent=} [properties] Properties to set
97639
+ */
97640
+ function BrazeProxyChatMessageSent(properties) {
97641
+ if (properties)
97642
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
97643
+ if (properties[keys[i]] != null)
97644
+ this[keys[i]] = properties[keys[i]];
97645
+ }
97646
+
97647
+ /**
97648
+ * BrazeProxyChatMessageSent hsUserId.
97649
+ * @member {string} hsUserId
97650
+ * @memberof BrazeProxyChatMessageSent
97651
+ * @instance
97652
+ */
97653
+ BrazeProxyChatMessageSent.prototype.hsUserId = "";
97654
+
97655
+ /**
97656
+ * BrazeProxyChatMessageSent messageId.
97657
+ * @member {string} messageId
97658
+ * @memberof BrazeProxyChatMessageSent
97659
+ * @instance
97660
+ */
97661
+ BrazeProxyChatMessageSent.prototype.messageId = "";
97662
+
97663
+ /**
97664
+ * BrazeProxyChatMessageSent timestamp.
97665
+ * @member {number|Long} timestamp
97666
+ * @memberof BrazeProxyChatMessageSent
97667
+ * @instance
97668
+ */
97669
+ BrazeProxyChatMessageSent.prototype.timestamp = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
97670
+
97671
+ /**
97672
+ * Creates a new BrazeProxyChatMessageSent instance using the specified properties.
97673
+ * @function create
97674
+ * @memberof BrazeProxyChatMessageSent
97675
+ * @static
97676
+ * @param {IBrazeProxyChatMessageSent=} [properties] Properties to set
97677
+ * @returns {BrazeProxyChatMessageSent} BrazeProxyChatMessageSent instance
97678
+ */
97679
+ BrazeProxyChatMessageSent.create = function create(properties) {
97680
+ return new BrazeProxyChatMessageSent(properties);
97681
+ };
97682
+
97683
+ /**
97684
+ * Encodes the specified BrazeProxyChatMessageSent message. Does not implicitly {@link BrazeProxyChatMessageSent.verify|verify} messages.
97685
+ * @function encode
97686
+ * @memberof BrazeProxyChatMessageSent
97687
+ * @static
97688
+ * @param {IBrazeProxyChatMessageSent} message BrazeProxyChatMessageSent message or plain object to encode
97689
+ * @param {$protobuf.Writer} [writer] Writer to encode to
97690
+ * @returns {$protobuf.Writer} Writer
97691
+ */
97692
+ BrazeProxyChatMessageSent.encode = function encode(message, writer) {
97693
+ if (!writer)
97694
+ writer = $Writer.create();
97695
+ if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
97696
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.hsUserId);
97697
+ if (message.messageId != null && message.hasOwnProperty("messageId"))
97698
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.messageId);
97699
+ if (message.timestamp != null && message.hasOwnProperty("timestamp"))
97700
+ writer.uint32(/* id 3, wireType 0 =*/24).uint64(message.timestamp);
97701
+ return writer;
97702
+ };
97703
+
97704
+ /**
97705
+ * Encodes the specified BrazeProxyChatMessageSent message, length delimited. Does not implicitly {@link BrazeProxyChatMessageSent.verify|verify} messages.
97706
+ * @function encodeDelimited
97707
+ * @memberof BrazeProxyChatMessageSent
97708
+ * @static
97709
+ * @param {IBrazeProxyChatMessageSent} message BrazeProxyChatMessageSent message or plain object to encode
97710
+ * @param {$protobuf.Writer} [writer] Writer to encode to
97711
+ * @returns {$protobuf.Writer} Writer
97712
+ */
97713
+ BrazeProxyChatMessageSent.encodeDelimited = function encodeDelimited(message, writer) {
97714
+ return this.encode(message, writer).ldelim();
97715
+ };
97716
+
97717
+ /**
97718
+ * Decodes a BrazeProxyChatMessageSent message from the specified reader or buffer.
97719
+ * @function decode
97720
+ * @memberof BrazeProxyChatMessageSent
97721
+ * @static
97722
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
97723
+ * @param {number} [length] Message length if known beforehand
97724
+ * @returns {BrazeProxyChatMessageSent} BrazeProxyChatMessageSent
97725
+ * @throws {Error} If the payload is not a reader or valid buffer
97726
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
97727
+ */
97728
+ BrazeProxyChatMessageSent.decode = function decode(reader, length) {
97729
+ if (!(reader instanceof $Reader))
97730
+ reader = $Reader.create(reader);
97731
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.BrazeProxyChatMessageSent();
97732
+ while (reader.pos < end) {
97733
+ var tag = reader.uint32();
97734
+ switch (tag >>> 3) {
97735
+ case 1:
97736
+ message.hsUserId = reader.string();
97737
+ break;
97738
+ case 2:
97739
+ message.messageId = reader.string();
97740
+ break;
97741
+ case 3:
97742
+ message.timestamp = reader.uint64();
97743
+ break;
97744
+ default:
97745
+ reader.skipType(tag & 7);
97746
+ break;
97747
+ }
97748
+ }
97749
+ return message;
97750
+ };
97751
+
97752
+ /**
97753
+ * Decodes a BrazeProxyChatMessageSent message from the specified reader or buffer, length delimited.
97754
+ * @function decodeDelimited
97755
+ * @memberof BrazeProxyChatMessageSent
97756
+ * @static
97757
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
97758
+ * @returns {BrazeProxyChatMessageSent} BrazeProxyChatMessageSent
97759
+ * @throws {Error} If the payload is not a reader or valid buffer
97760
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
97761
+ */
97762
+ BrazeProxyChatMessageSent.decodeDelimited = function decodeDelimited(reader) {
97763
+ if (!(reader instanceof $Reader))
97764
+ reader = new $Reader(reader);
97765
+ return this.decode(reader, reader.uint32());
97766
+ };
97767
+
97768
+ /**
97769
+ * Verifies a BrazeProxyChatMessageSent message.
97770
+ * @function verify
97771
+ * @memberof BrazeProxyChatMessageSent
97772
+ * @static
97773
+ * @param {Object.<string,*>} message Plain object to verify
97774
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
97775
+ */
97776
+ BrazeProxyChatMessageSent.verify = function verify(message) {
97777
+ if (typeof message !== "object" || message === null)
97778
+ return "object expected";
97779
+ if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
97780
+ if (!$util.isString(message.hsUserId))
97781
+ return "hsUserId: string expected";
97782
+ if (message.messageId != null && message.hasOwnProperty("messageId"))
97783
+ if (!$util.isString(message.messageId))
97784
+ return "messageId: string expected";
97785
+ if (message.timestamp != null && message.hasOwnProperty("timestamp"))
97786
+ if (!$util.isInteger(message.timestamp) && !(message.timestamp && $util.isInteger(message.timestamp.low) && $util.isInteger(message.timestamp.high)))
97787
+ return "timestamp: integer|Long expected";
97788
+ return null;
97789
+ };
97790
+
97791
+ /**
97792
+ * Creates a BrazeProxyChatMessageSent message from a plain object. Also converts values to their respective internal types.
97793
+ * @function fromObject
97794
+ * @memberof BrazeProxyChatMessageSent
97795
+ * @static
97796
+ * @param {Object.<string,*>} object Plain object
97797
+ * @returns {BrazeProxyChatMessageSent} BrazeProxyChatMessageSent
97798
+ */
97799
+ BrazeProxyChatMessageSent.fromObject = function fromObject(object) {
97800
+ if (object instanceof $root.BrazeProxyChatMessageSent)
97801
+ return object;
97802
+ var message = new $root.BrazeProxyChatMessageSent();
97803
+ if (object.hsUserId != null)
97804
+ message.hsUserId = String(object.hsUserId);
97805
+ if (object.messageId != null)
97806
+ message.messageId = String(object.messageId);
97807
+ if (object.timestamp != null)
97808
+ if ($util.Long)
97809
+ (message.timestamp = $util.Long.fromValue(object.timestamp)).unsigned = true;
97810
+ else if (typeof object.timestamp === "string")
97811
+ message.timestamp = parseInt(object.timestamp, 10);
97812
+ else if (typeof object.timestamp === "number")
97813
+ message.timestamp = object.timestamp;
97814
+ else if (typeof object.timestamp === "object")
97815
+ message.timestamp = new $util.LongBits(object.timestamp.low >>> 0, object.timestamp.high >>> 0).toNumber(true);
97816
+ return message;
97817
+ };
97818
+
97819
+ /**
97820
+ * Creates a plain object from a BrazeProxyChatMessageSent message. Also converts values to other types if specified.
97821
+ * @function toObject
97822
+ * @memberof BrazeProxyChatMessageSent
97823
+ * @static
97824
+ * @param {BrazeProxyChatMessageSent} message BrazeProxyChatMessageSent
97825
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
97826
+ * @returns {Object.<string,*>} Plain object
97827
+ */
97828
+ BrazeProxyChatMessageSent.toObject = function toObject(message, options) {
97829
+ if (!options)
97830
+ options = {};
97831
+ var object = {};
97832
+ if (options.defaults) {
97833
+ object.hsUserId = "";
97834
+ object.messageId = "";
97835
+ if ($util.Long) {
97836
+ var long = new $util.Long(0, 0, true);
97837
+ object.timestamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
97838
+ } else
97839
+ object.timestamp = options.longs === String ? "0" : 0;
97840
+ }
97841
+ if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
97842
+ object.hsUserId = message.hsUserId;
97843
+ if (message.messageId != null && message.hasOwnProperty("messageId"))
97844
+ object.messageId = message.messageId;
97845
+ if (message.timestamp != null && message.hasOwnProperty("timestamp"))
97846
+ if (typeof message.timestamp === "number")
97847
+ object.timestamp = options.longs === String ? String(message.timestamp) : message.timestamp;
97848
+ else
97849
+ 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;
97850
+ return object;
97851
+ };
97852
+
97853
+ /**
97854
+ * Converts this BrazeProxyChatMessageSent to JSON.
97855
+ * @function toJSON
97856
+ * @memberof BrazeProxyChatMessageSent
97857
+ * @instance
97858
+ * @returns {Object.<string,*>} JSON object
97859
+ */
97860
+ BrazeProxyChatMessageSent.prototype.toJSON = function toJSON() {
97861
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
97862
+ };
97863
+
97864
+ return BrazeProxyChatMessageSent;
97865
+ })();
97866
+
97621
97867
  /**
97622
97868
  * GroupType enum.
97623
97869
  * @name GroupType
@@ -123168,7 +123414,7 @@ $root.InteractiveJournalingMessage = (function() {
123168
123414
  * @memberof InteractiveJournalingMessage
123169
123415
  * @interface ICustomAttributes
123170
123416
  * @property {boolean|null} [disableTextInput] CustomAttributes disableTextInput
123171
- * @property {boolean|null} [isContentSuggestion] CustomAttributes isContentSuggestion
123417
+ * @property {number|null} [suggestedContentId] CustomAttributes suggestedContentId
123172
123418
  * @property {boolean|null} [isLifelineWidget] CustomAttributes isLifelineWidget
123173
123419
  * @property {boolean|null} [isEndOfConversation] CustomAttributes isEndOfConversation
123174
123420
  */
@@ -123197,12 +123443,12 @@ $root.InteractiveJournalingMessage = (function() {
123197
123443
  CustomAttributes.prototype.disableTextInput = false;
123198
123444
 
123199
123445
  /**
123200
- * CustomAttributes isContentSuggestion.
123201
- * @member {boolean} isContentSuggestion
123446
+ * CustomAttributes suggestedContentId.
123447
+ * @member {number} suggestedContentId
123202
123448
  * @memberof InteractiveJournalingMessage.CustomAttributes
123203
123449
  * @instance
123204
123450
  */
123205
- CustomAttributes.prototype.isContentSuggestion = false;
123451
+ CustomAttributes.prototype.suggestedContentId = 0;
123206
123452
 
123207
123453
  /**
123208
123454
  * CustomAttributes isLifelineWidget.
@@ -123246,8 +123492,8 @@ $root.InteractiveJournalingMessage = (function() {
123246
123492
  writer = $Writer.create();
123247
123493
  if (message.disableTextInput != null && message.hasOwnProperty("disableTextInput"))
123248
123494
  writer.uint32(/* id 1, wireType 0 =*/8).bool(message.disableTextInput);
123249
- if (message.isContentSuggestion != null && message.hasOwnProperty("isContentSuggestion"))
123250
- writer.uint32(/* id 2, wireType 0 =*/16).bool(message.isContentSuggestion);
123495
+ if (message.suggestedContentId != null && message.hasOwnProperty("suggestedContentId"))
123496
+ writer.uint32(/* id 2, wireType 0 =*/16).int32(message.suggestedContentId);
123251
123497
  if (message.isLifelineWidget != null && message.hasOwnProperty("isLifelineWidget"))
123252
123498
  writer.uint32(/* id 3, wireType 0 =*/24).bool(message.isLifelineWidget);
123253
123499
  if (message.isEndOfConversation != null && message.hasOwnProperty("isEndOfConversation"))
@@ -123290,7 +123536,7 @@ $root.InteractiveJournalingMessage = (function() {
123290
123536
  message.disableTextInput = reader.bool();
123291
123537
  break;
123292
123538
  case 2:
123293
- message.isContentSuggestion = reader.bool();
123539
+ message.suggestedContentId = reader.int32();
123294
123540
  break;
123295
123541
  case 3:
123296
123542
  message.isLifelineWidget = reader.bool();
@@ -123336,9 +123582,9 @@ $root.InteractiveJournalingMessage = (function() {
123336
123582
  if (message.disableTextInput != null && message.hasOwnProperty("disableTextInput"))
123337
123583
  if (typeof message.disableTextInput !== "boolean")
123338
123584
  return "disableTextInput: boolean expected";
123339
- if (message.isContentSuggestion != null && message.hasOwnProperty("isContentSuggestion"))
123340
- if (typeof message.isContentSuggestion !== "boolean")
123341
- return "isContentSuggestion: boolean expected";
123585
+ if (message.suggestedContentId != null && message.hasOwnProperty("suggestedContentId"))
123586
+ if (!$util.isInteger(message.suggestedContentId))
123587
+ return "suggestedContentId: integer expected";
123342
123588
  if (message.isLifelineWidget != null && message.hasOwnProperty("isLifelineWidget"))
123343
123589
  if (typeof message.isLifelineWidget !== "boolean")
123344
123590
  return "isLifelineWidget: boolean expected";
@@ -123362,8 +123608,8 @@ $root.InteractiveJournalingMessage = (function() {
123362
123608
  var message = new $root.InteractiveJournalingMessage.CustomAttributes();
123363
123609
  if (object.disableTextInput != null)
123364
123610
  message.disableTextInput = Boolean(object.disableTextInput);
123365
- if (object.isContentSuggestion != null)
123366
- message.isContentSuggestion = Boolean(object.isContentSuggestion);
123611
+ if (object.suggestedContentId != null)
123612
+ message.suggestedContentId = object.suggestedContentId | 0;
123367
123613
  if (object.isLifelineWidget != null)
123368
123614
  message.isLifelineWidget = Boolean(object.isLifelineWidget);
123369
123615
  if (object.isEndOfConversation != null)
@@ -123386,14 +123632,14 @@ $root.InteractiveJournalingMessage = (function() {
123386
123632
  var object = {};
123387
123633
  if (options.defaults) {
123388
123634
  object.disableTextInput = false;
123389
- object.isContentSuggestion = false;
123635
+ object.suggestedContentId = 0;
123390
123636
  object.isLifelineWidget = false;
123391
123637
  object.isEndOfConversation = false;
123392
123638
  }
123393
123639
  if (message.disableTextInput != null && message.hasOwnProperty("disableTextInput"))
123394
123640
  object.disableTextInput = message.disableTextInput;
123395
- if (message.isContentSuggestion != null && message.hasOwnProperty("isContentSuggestion"))
123396
- object.isContentSuggestion = message.isContentSuggestion;
123641
+ if (message.suggestedContentId != null && message.hasOwnProperty("suggestedContentId"))
123642
+ object.suggestedContentId = message.suggestedContentId;
123397
123643
  if (message.isLifelineWidget != null && message.hasOwnProperty("isLifelineWidget"))
123398
123644
  object.isLifelineWidget = message.isLifelineWidget;
123399
123645
  if (message.isEndOfConversation != null && message.hasOwnProperty("isEndOfConversation"))
@@ -123628,25 +123874,25 @@ $root.InteractiveJournalingMessage = (function() {
123628
123874
  return InteractiveJournalingMessage;
123629
123875
  })();
123630
123876
 
123631
- $root.ConversationalChatMessageCreated = (function() {
123877
+ $root.InteractiveJournalingMessageCreated = (function() {
123632
123878
 
123633
123879
  /**
123634
- * Properties of a ConversationalChatMessageCreated.
123635
- * @name IConversationalChatMessageCreated
123636
- * @interface IConversationalChatMessageCreated
123637
- * @property {IInteractiveJournalingMessage|null} [newMessage] ConversationalChatMessageCreated newMessage
123638
- * @property {number|Long|null} [timestamp] ConversationalChatMessageCreated timestamp
123880
+ * Properties of an InteractiveJournalingMessageCreated.
123881
+ * @name IInteractiveJournalingMessageCreated
123882
+ * @interface IInteractiveJournalingMessageCreated
123883
+ * @property {IInteractiveJournalingMessage|null} [newMessage] InteractiveJournalingMessageCreated newMessage
123884
+ * @property {number|Long|null} [timestamp] InteractiveJournalingMessageCreated timestamp
123639
123885
  */
123640
123886
 
123641
123887
  /**
123642
- * Constructs a new ConversationalChatMessageCreated.
123643
- * @name ConversationalChatMessageCreated
123644
- * @classdesc Represents a ConversationalChatMessageCreated.
123645
- * @implements IConversationalChatMessageCreated
123888
+ * Constructs a new InteractiveJournalingMessageCreated.
123889
+ * @name InteractiveJournalingMessageCreated
123890
+ * @classdesc Represents an InteractiveJournalingMessageCreated.
123891
+ * @implements IInteractiveJournalingMessageCreated
123646
123892
  * @constructor
123647
- * @param {IConversationalChatMessageCreated=} [properties] Properties to set
123893
+ * @param {IInteractiveJournalingMessageCreated=} [properties] Properties to set
123648
123894
  */
123649
- function ConversationalChatMessageCreated(properties) {
123895
+ function InteractiveJournalingMessageCreated(properties) {
123650
123896
  if (properties)
123651
123897
  for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
123652
123898
  if (properties[keys[i]] != null)
@@ -123654,43 +123900,43 @@ $root.ConversationalChatMessageCreated = (function() {
123654
123900
  }
123655
123901
 
123656
123902
  /**
123657
- * ConversationalChatMessageCreated newMessage.
123903
+ * InteractiveJournalingMessageCreated newMessage.
123658
123904
  * @member {IInteractiveJournalingMessage|null|undefined} newMessage
123659
- * @memberof ConversationalChatMessageCreated
123905
+ * @memberof InteractiveJournalingMessageCreated
123660
123906
  * @instance
123661
123907
  */
123662
- ConversationalChatMessageCreated.prototype.newMessage = null;
123908
+ InteractiveJournalingMessageCreated.prototype.newMessage = null;
123663
123909
 
123664
123910
  /**
123665
- * ConversationalChatMessageCreated timestamp.
123911
+ * InteractiveJournalingMessageCreated timestamp.
123666
123912
  * @member {number|Long} timestamp
123667
- * @memberof ConversationalChatMessageCreated
123913
+ * @memberof InteractiveJournalingMessageCreated
123668
123914
  * @instance
123669
123915
  */
123670
- ConversationalChatMessageCreated.prototype.timestamp = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
123916
+ InteractiveJournalingMessageCreated.prototype.timestamp = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
123671
123917
 
123672
123918
  /**
123673
- * Creates a new ConversationalChatMessageCreated instance using the specified properties.
123919
+ * Creates a new InteractiveJournalingMessageCreated instance using the specified properties.
123674
123920
  * @function create
123675
- * @memberof ConversationalChatMessageCreated
123921
+ * @memberof InteractiveJournalingMessageCreated
123676
123922
  * @static
123677
- * @param {IConversationalChatMessageCreated=} [properties] Properties to set
123678
- * @returns {ConversationalChatMessageCreated} ConversationalChatMessageCreated instance
123923
+ * @param {IInteractiveJournalingMessageCreated=} [properties] Properties to set
123924
+ * @returns {InteractiveJournalingMessageCreated} InteractiveJournalingMessageCreated instance
123679
123925
  */
123680
- ConversationalChatMessageCreated.create = function create(properties) {
123681
- return new ConversationalChatMessageCreated(properties);
123926
+ InteractiveJournalingMessageCreated.create = function create(properties) {
123927
+ return new InteractiveJournalingMessageCreated(properties);
123682
123928
  };
123683
123929
 
123684
123930
  /**
123685
- * Encodes the specified ConversationalChatMessageCreated message. Does not implicitly {@link ConversationalChatMessageCreated.verify|verify} messages.
123931
+ * Encodes the specified InteractiveJournalingMessageCreated message. Does not implicitly {@link InteractiveJournalingMessageCreated.verify|verify} messages.
123686
123932
  * @function encode
123687
- * @memberof ConversationalChatMessageCreated
123933
+ * @memberof InteractiveJournalingMessageCreated
123688
123934
  * @static
123689
- * @param {IConversationalChatMessageCreated} message ConversationalChatMessageCreated message or plain object to encode
123935
+ * @param {IInteractiveJournalingMessageCreated} message InteractiveJournalingMessageCreated message or plain object to encode
123690
123936
  * @param {$protobuf.Writer} [writer] Writer to encode to
123691
123937
  * @returns {$protobuf.Writer} Writer
123692
123938
  */
123693
- ConversationalChatMessageCreated.encode = function encode(message, writer) {
123939
+ InteractiveJournalingMessageCreated.encode = function encode(message, writer) {
123694
123940
  if (!writer)
123695
123941
  writer = $Writer.create();
123696
123942
  if (message.newMessage != null && message.hasOwnProperty("newMessage"))
@@ -123701,33 +123947,33 @@ $root.ConversationalChatMessageCreated = (function() {
123701
123947
  };
123702
123948
 
123703
123949
  /**
123704
- * Encodes the specified ConversationalChatMessageCreated message, length delimited. Does not implicitly {@link ConversationalChatMessageCreated.verify|verify} messages.
123950
+ * Encodes the specified InteractiveJournalingMessageCreated message, length delimited. Does not implicitly {@link InteractiveJournalingMessageCreated.verify|verify} messages.
123705
123951
  * @function encodeDelimited
123706
- * @memberof ConversationalChatMessageCreated
123952
+ * @memberof InteractiveJournalingMessageCreated
123707
123953
  * @static
123708
- * @param {IConversationalChatMessageCreated} message ConversationalChatMessageCreated message or plain object to encode
123954
+ * @param {IInteractiveJournalingMessageCreated} message InteractiveJournalingMessageCreated message or plain object to encode
123709
123955
  * @param {$protobuf.Writer} [writer] Writer to encode to
123710
123956
  * @returns {$protobuf.Writer} Writer
123711
123957
  */
123712
- ConversationalChatMessageCreated.encodeDelimited = function encodeDelimited(message, writer) {
123958
+ InteractiveJournalingMessageCreated.encodeDelimited = function encodeDelimited(message, writer) {
123713
123959
  return this.encode(message, writer).ldelim();
123714
123960
  };
123715
123961
 
123716
123962
  /**
123717
- * Decodes a ConversationalChatMessageCreated message from the specified reader or buffer.
123963
+ * Decodes an InteractiveJournalingMessageCreated message from the specified reader or buffer.
123718
123964
  * @function decode
123719
- * @memberof ConversationalChatMessageCreated
123965
+ * @memberof InteractiveJournalingMessageCreated
123720
123966
  * @static
123721
123967
  * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
123722
123968
  * @param {number} [length] Message length if known beforehand
123723
- * @returns {ConversationalChatMessageCreated} ConversationalChatMessageCreated
123969
+ * @returns {InteractiveJournalingMessageCreated} InteractiveJournalingMessageCreated
123724
123970
  * @throws {Error} If the payload is not a reader or valid buffer
123725
123971
  * @throws {$protobuf.util.ProtocolError} If required fields are missing
123726
123972
  */
123727
- ConversationalChatMessageCreated.decode = function decode(reader, length) {
123973
+ InteractiveJournalingMessageCreated.decode = function decode(reader, length) {
123728
123974
  if (!(reader instanceof $Reader))
123729
123975
  reader = $Reader.create(reader);
123730
- var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ConversationalChatMessageCreated();
123976
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.InteractiveJournalingMessageCreated();
123731
123977
  while (reader.pos < end) {
123732
123978
  var tag = reader.uint32();
123733
123979
  switch (tag >>> 3) {
@@ -123746,30 +123992,30 @@ $root.ConversationalChatMessageCreated = (function() {
123746
123992
  };
123747
123993
 
123748
123994
  /**
123749
- * Decodes a ConversationalChatMessageCreated message from the specified reader or buffer, length delimited.
123995
+ * Decodes an InteractiveJournalingMessageCreated message from the specified reader or buffer, length delimited.
123750
123996
  * @function decodeDelimited
123751
- * @memberof ConversationalChatMessageCreated
123997
+ * @memberof InteractiveJournalingMessageCreated
123752
123998
  * @static
123753
123999
  * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
123754
- * @returns {ConversationalChatMessageCreated} ConversationalChatMessageCreated
124000
+ * @returns {InteractiveJournalingMessageCreated} InteractiveJournalingMessageCreated
123755
124001
  * @throws {Error} If the payload is not a reader or valid buffer
123756
124002
  * @throws {$protobuf.util.ProtocolError} If required fields are missing
123757
124003
  */
123758
- ConversationalChatMessageCreated.decodeDelimited = function decodeDelimited(reader) {
124004
+ InteractiveJournalingMessageCreated.decodeDelimited = function decodeDelimited(reader) {
123759
124005
  if (!(reader instanceof $Reader))
123760
124006
  reader = new $Reader(reader);
123761
124007
  return this.decode(reader, reader.uint32());
123762
124008
  };
123763
124009
 
123764
124010
  /**
123765
- * Verifies a ConversationalChatMessageCreated message.
124011
+ * Verifies an InteractiveJournalingMessageCreated message.
123766
124012
  * @function verify
123767
- * @memberof ConversationalChatMessageCreated
124013
+ * @memberof InteractiveJournalingMessageCreated
123768
124014
  * @static
123769
124015
  * @param {Object.<string,*>} message Plain object to verify
123770
124016
  * @returns {string|null} `null` if valid, otherwise the reason why it is not
123771
124017
  */
123772
- ConversationalChatMessageCreated.verify = function verify(message) {
124018
+ InteractiveJournalingMessageCreated.verify = function verify(message) {
123773
124019
  if (typeof message !== "object" || message === null)
123774
124020
  return "object expected";
123775
124021
  if (message.newMessage != null && message.hasOwnProperty("newMessage")) {
@@ -123784,20 +124030,20 @@ $root.ConversationalChatMessageCreated = (function() {
123784
124030
  };
123785
124031
 
123786
124032
  /**
123787
- * Creates a ConversationalChatMessageCreated message from a plain object. Also converts values to their respective internal types.
124033
+ * Creates an InteractiveJournalingMessageCreated message from a plain object. Also converts values to their respective internal types.
123788
124034
  * @function fromObject
123789
- * @memberof ConversationalChatMessageCreated
124035
+ * @memberof InteractiveJournalingMessageCreated
123790
124036
  * @static
123791
124037
  * @param {Object.<string,*>} object Plain object
123792
- * @returns {ConversationalChatMessageCreated} ConversationalChatMessageCreated
124038
+ * @returns {InteractiveJournalingMessageCreated} InteractiveJournalingMessageCreated
123793
124039
  */
123794
- ConversationalChatMessageCreated.fromObject = function fromObject(object) {
123795
- if (object instanceof $root.ConversationalChatMessageCreated)
124040
+ InteractiveJournalingMessageCreated.fromObject = function fromObject(object) {
124041
+ if (object instanceof $root.InteractiveJournalingMessageCreated)
123796
124042
  return object;
123797
- var message = new $root.ConversationalChatMessageCreated();
124043
+ var message = new $root.InteractiveJournalingMessageCreated();
123798
124044
  if (object.newMessage != null) {
123799
124045
  if (typeof object.newMessage !== "object")
123800
- throw TypeError(".ConversationalChatMessageCreated.newMessage: object expected");
124046
+ throw TypeError(".InteractiveJournalingMessageCreated.newMessage: object expected");
123801
124047
  message.newMessage = $root.InteractiveJournalingMessage.fromObject(object.newMessage);
123802
124048
  }
123803
124049
  if (object.timestamp != null)
@@ -123813,15 +124059,15 @@ $root.ConversationalChatMessageCreated = (function() {
123813
124059
  };
123814
124060
 
123815
124061
  /**
123816
- * Creates a plain object from a ConversationalChatMessageCreated message. Also converts values to other types if specified.
124062
+ * Creates a plain object from an InteractiveJournalingMessageCreated message. Also converts values to other types if specified.
123817
124063
  * @function toObject
123818
- * @memberof ConversationalChatMessageCreated
124064
+ * @memberof InteractiveJournalingMessageCreated
123819
124065
  * @static
123820
- * @param {ConversationalChatMessageCreated} message ConversationalChatMessageCreated
124066
+ * @param {InteractiveJournalingMessageCreated} message InteractiveJournalingMessageCreated
123821
124067
  * @param {$protobuf.IConversionOptions} [options] Conversion options
123822
124068
  * @returns {Object.<string,*>} Plain object
123823
124069
  */
123824
- ConversationalChatMessageCreated.toObject = function toObject(message, options) {
124070
+ InteractiveJournalingMessageCreated.toObject = function toObject(message, options) {
123825
124071
  if (!options)
123826
124072
  options = {};
123827
124073
  var object = {};
@@ -123844,17 +124090,17 @@ $root.ConversationalChatMessageCreated = (function() {
123844
124090
  };
123845
124091
 
123846
124092
  /**
123847
- * Converts this ConversationalChatMessageCreated to JSON.
124093
+ * Converts this InteractiveJournalingMessageCreated to JSON.
123848
124094
  * @function toJSON
123849
- * @memberof ConversationalChatMessageCreated
124095
+ * @memberof InteractiveJournalingMessageCreated
123850
124096
  * @instance
123851
124097
  * @returns {Object.<string,*>} JSON object
123852
124098
  */
123853
- ConversationalChatMessageCreated.prototype.toJSON = function toJSON() {
124099
+ InteractiveJournalingMessageCreated.prototype.toJSON = function toJSON() {
123854
124100
  return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
123855
124101
  };
123856
124102
 
123857
- return ConversationalChatMessageCreated;
124103
+ return InteractiveJournalingMessageCreated;
123858
124104
  })();
123859
124105
 
123860
124106
  $root.LayoutCreated = (function() {
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.576.0"
19
+ "version": "1.578.0"
20
20
  }