@headspace/protos-events 1.577.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.
- package/lib/index.d.ts +102 -0
- package/lib/index.js +246 -0
- 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,
|
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
|
package/package.json
CHANGED