@headspace/protos-events 1.844.0 → 1.845.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 +167 -0
- package/lib/index.js +461 -0
- package/package.json +1 -1
package/lib/index.d.ts
CHANGED
|
@@ -91798,6 +91798,173 @@ export namespace InteractiveJournalingUserBlockRemoved {
|
|
|
91798
91798
|
type $Shape = InteractiveJournalingUserBlockRemoved.$Properties;
|
|
91799
91799
|
}
|
|
91800
91800
|
|
|
91801
|
+
/** InteractiveJournalingConversationEndReason enum. */
|
|
91802
|
+
export enum InteractiveJournalingConversationEndReason {
|
|
91803
|
+
|
|
91804
|
+
/** INTERACTIVE_JOURNALING_CONVERSATION_END_REASON_UNKNOWN value */
|
|
91805
|
+
INTERACTIVE_JOURNALING_CONVERSATION_END_REASON_UNKNOWN = 0,
|
|
91806
|
+
|
|
91807
|
+
/** INTERACTIVE_JOURNALING_CONVERSATION_END_REASON_INACTIVITY value */
|
|
91808
|
+
INTERACTIVE_JOURNALING_CONVERSATION_END_REASON_INACTIVITY = 1,
|
|
91809
|
+
|
|
91810
|
+
/** INTERACTIVE_JOURNALING_CONVERSATION_END_REASON_EXPLICIT_CLOSE value */
|
|
91811
|
+
INTERACTIVE_JOURNALING_CONVERSATION_END_REASON_EXPLICIT_CLOSE = 2
|
|
91812
|
+
}
|
|
91813
|
+
|
|
91814
|
+
/** InteractiveJournalingConversationType enum. */
|
|
91815
|
+
export enum InteractiveJournalingConversationType {
|
|
91816
|
+
|
|
91817
|
+
/** INTERACTIVE_JOURNALING_CONVERSATION_TYPE_UNKNOWN value */
|
|
91818
|
+
INTERACTIVE_JOURNALING_CONVERSATION_TYPE_UNKNOWN = 0,
|
|
91819
|
+
|
|
91820
|
+
/** INTERACTIVE_JOURNALING_CONVERSATION_TYPE_GENERAL value */
|
|
91821
|
+
INTERACTIVE_JOURNALING_CONVERSATION_TYPE_GENERAL = 1,
|
|
91822
|
+
|
|
91823
|
+
/** INTERACTIVE_JOURNALING_CONVERSATION_TYPE_MEDITATION_DEBRIEF value */
|
|
91824
|
+
INTERACTIVE_JOURNALING_CONVERSATION_TYPE_MEDITATION_DEBRIEF = 2
|
|
91825
|
+
}
|
|
91826
|
+
|
|
91827
|
+
/**
|
|
91828
|
+
* Properties of an InteractiveJournalingConversationEnded.
|
|
91829
|
+
* @deprecated Use InteractiveJournalingConversationEnded.$Properties instead.
|
|
91830
|
+
*/
|
|
91831
|
+
export interface IInteractiveJournalingConversationEnded extends InteractiveJournalingConversationEnded.$Properties {
|
|
91832
|
+
}
|
|
91833
|
+
|
|
91834
|
+
/** Represents an InteractiveJournalingConversationEnded. */
|
|
91835
|
+
export class InteractiveJournalingConversationEnded {
|
|
91836
|
+
|
|
91837
|
+
/**
|
|
91838
|
+
* Constructs a new InteractiveJournalingConversationEnded.
|
|
91839
|
+
* @param [properties] Properties to set
|
|
91840
|
+
*/
|
|
91841
|
+
constructor(properties?: InteractiveJournalingConversationEnded.$Properties);
|
|
91842
|
+
|
|
91843
|
+
/** Unknown fields preserved while decoding */
|
|
91844
|
+
$unknowns?: Uint8Array[];
|
|
91845
|
+
|
|
91846
|
+
/** InteractiveJournalingConversationEnded conversationId. */
|
|
91847
|
+
conversationId: string;
|
|
91848
|
+
|
|
91849
|
+
/** InteractiveJournalingConversationEnded hsUserId. */
|
|
91850
|
+
hsUserId: string;
|
|
91851
|
+
|
|
91852
|
+
/** InteractiveJournalingConversationEnded endedAtTimestamp. */
|
|
91853
|
+
endedAtTimestamp: (number|Long);
|
|
91854
|
+
|
|
91855
|
+
/** InteractiveJournalingConversationEnded reason. */
|
|
91856
|
+
reason: InteractiveJournalingConversationEndReason;
|
|
91857
|
+
|
|
91858
|
+
/** InteractiveJournalingConversationEnded conversationType. */
|
|
91859
|
+
conversationType: InteractiveJournalingConversationType;
|
|
91860
|
+
|
|
91861
|
+
/**
|
|
91862
|
+
* Creates a new InteractiveJournalingConversationEnded instance using the specified properties.
|
|
91863
|
+
* @param [properties] Properties to set
|
|
91864
|
+
* @returns InteractiveJournalingConversationEnded instance
|
|
91865
|
+
*/
|
|
91866
|
+
static create(properties: InteractiveJournalingConversationEnded.$Shape): InteractiveJournalingConversationEnded & InteractiveJournalingConversationEnded.$Shape;
|
|
91867
|
+
static create(properties?: InteractiveJournalingConversationEnded.$Properties): InteractiveJournalingConversationEnded;
|
|
91868
|
+
|
|
91869
|
+
/**
|
|
91870
|
+
* Encodes the specified InteractiveJournalingConversationEnded message. Does not implicitly {@link InteractiveJournalingConversationEnded.verify|verify} messages.
|
|
91871
|
+
* @param message InteractiveJournalingConversationEnded message or plain object to encode
|
|
91872
|
+
* @param [writer] Writer to encode to
|
|
91873
|
+
* @returns Writer
|
|
91874
|
+
*/
|
|
91875
|
+
static encode(message: InteractiveJournalingConversationEnded.$Properties, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
91876
|
+
|
|
91877
|
+
/**
|
|
91878
|
+
* Encodes the specified InteractiveJournalingConversationEnded message, length delimited. Does not implicitly {@link InteractiveJournalingConversationEnded.verify|verify} messages.
|
|
91879
|
+
* @param message InteractiveJournalingConversationEnded message or plain object to encode
|
|
91880
|
+
* @param [writer] Writer to encode to
|
|
91881
|
+
* @returns Writer
|
|
91882
|
+
*/
|
|
91883
|
+
static encodeDelimited(message: InteractiveJournalingConversationEnded.$Properties, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
91884
|
+
|
|
91885
|
+
/**
|
|
91886
|
+
* Decodes an InteractiveJournalingConversationEnded message from the specified reader or buffer.
|
|
91887
|
+
* @param reader Reader or buffer to decode from
|
|
91888
|
+
* @param [length] Message length if known beforehand
|
|
91889
|
+
* @returns {InteractiveJournalingConversationEnded & InteractiveJournalingConversationEnded.$Shape} InteractiveJournalingConversationEnded
|
|
91890
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
91891
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
91892
|
+
*/
|
|
91893
|
+
static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): InteractiveJournalingConversationEnded & InteractiveJournalingConversationEnded.$Shape;
|
|
91894
|
+
|
|
91895
|
+
/**
|
|
91896
|
+
* Decodes an InteractiveJournalingConversationEnded message from the specified reader or buffer, length delimited.
|
|
91897
|
+
* @param reader Reader or buffer to decode from
|
|
91898
|
+
* @returns {InteractiveJournalingConversationEnded & InteractiveJournalingConversationEnded.$Shape} InteractiveJournalingConversationEnded
|
|
91899
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
91900
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
91901
|
+
*/
|
|
91902
|
+
static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): InteractiveJournalingConversationEnded & InteractiveJournalingConversationEnded.$Shape;
|
|
91903
|
+
|
|
91904
|
+
/**
|
|
91905
|
+
* Verifies an InteractiveJournalingConversationEnded message.
|
|
91906
|
+
* @param message Plain object to verify
|
|
91907
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
91908
|
+
*/
|
|
91909
|
+
static verify(message: { [k: string]: any }): (string|null);
|
|
91910
|
+
|
|
91911
|
+
/**
|
|
91912
|
+
* Creates an InteractiveJournalingConversationEnded message from a plain object. Also converts values to their respective internal types.
|
|
91913
|
+
* @param object Plain object
|
|
91914
|
+
* @returns InteractiveJournalingConversationEnded
|
|
91915
|
+
*/
|
|
91916
|
+
static fromObject(object: { [k: string]: any }): InteractiveJournalingConversationEnded;
|
|
91917
|
+
|
|
91918
|
+
/**
|
|
91919
|
+
* Creates a plain object from an InteractiveJournalingConversationEnded message. Also converts values to other types if specified.
|
|
91920
|
+
* @param message InteractiveJournalingConversationEnded
|
|
91921
|
+
* @param [options] Conversion options
|
|
91922
|
+
* @returns Plain object
|
|
91923
|
+
*/
|
|
91924
|
+
static toObject(message: InteractiveJournalingConversationEnded, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
91925
|
+
|
|
91926
|
+
/**
|
|
91927
|
+
* Converts this InteractiveJournalingConversationEnded to JSON.
|
|
91928
|
+
* @returns JSON object
|
|
91929
|
+
*/
|
|
91930
|
+
toJSON(): { [k: string]: any };
|
|
91931
|
+
|
|
91932
|
+
/**
|
|
91933
|
+
* Gets the type url for InteractiveJournalingConversationEnded
|
|
91934
|
+
* @param [prefix] Custom type url prefix, defaults to `"type.googleapis.com"`
|
|
91935
|
+
* @returns The type url
|
|
91936
|
+
*/
|
|
91937
|
+
static getTypeUrl(prefix?: string): string;
|
|
91938
|
+
}
|
|
91939
|
+
|
|
91940
|
+
export namespace InteractiveJournalingConversationEnded {
|
|
91941
|
+
|
|
91942
|
+
/** Properties of an InteractiveJournalingConversationEnded. */
|
|
91943
|
+
interface $Properties {
|
|
91944
|
+
|
|
91945
|
+
/** InteractiveJournalingConversationEnded conversationId */
|
|
91946
|
+
conversationId?: (string|null);
|
|
91947
|
+
|
|
91948
|
+
/** InteractiveJournalingConversationEnded hsUserId */
|
|
91949
|
+
hsUserId?: (string|null);
|
|
91950
|
+
|
|
91951
|
+
/** InteractiveJournalingConversationEnded endedAtTimestamp */
|
|
91952
|
+
endedAtTimestamp?: (number|Long|null);
|
|
91953
|
+
|
|
91954
|
+
/** InteractiveJournalingConversationEnded reason */
|
|
91955
|
+
reason?: (InteractiveJournalingConversationEndReason|null);
|
|
91956
|
+
|
|
91957
|
+
/** InteractiveJournalingConversationEnded conversationType */
|
|
91958
|
+
conversationType?: (InteractiveJournalingConversationType|null);
|
|
91959
|
+
|
|
91960
|
+
/** Unknown fields preserved while decoding */
|
|
91961
|
+
$unknowns?: Uint8Array[];
|
|
91962
|
+
}
|
|
91963
|
+
|
|
91964
|
+
/** Shape of an InteractiveJournalingConversationEnded. */
|
|
91965
|
+
type $Shape = InteractiveJournalingConversationEnded.$Properties;
|
|
91966
|
+
}
|
|
91967
|
+
|
|
91801
91968
|
/**
|
|
91802
91969
|
* Properties of a LayoutCreated.
|
|
91803
91970
|
* @deprecated Use LayoutCreated.$Properties instead.
|
package/lib/index.js
CHANGED
|
@@ -270232,6 +270232,467 @@ $root.InteractiveJournalingUserBlockRemoved = (function() {
|
|
|
270232
270232
|
return InteractiveJournalingUserBlockRemoved;
|
|
270233
270233
|
})();
|
|
270234
270234
|
|
|
270235
|
+
/**
|
|
270236
|
+
* InteractiveJournalingConversationEndReason enum.
|
|
270237
|
+
* @name InteractiveJournalingConversationEndReason
|
|
270238
|
+
* @enum {number}
|
|
270239
|
+
* @property {number} INTERACTIVE_JOURNALING_CONVERSATION_END_REASON_UNKNOWN=0 INTERACTIVE_JOURNALING_CONVERSATION_END_REASON_UNKNOWN value
|
|
270240
|
+
* @property {number} INTERACTIVE_JOURNALING_CONVERSATION_END_REASON_INACTIVITY=1 INTERACTIVE_JOURNALING_CONVERSATION_END_REASON_INACTIVITY value
|
|
270241
|
+
* @property {number} INTERACTIVE_JOURNALING_CONVERSATION_END_REASON_EXPLICIT_CLOSE=2 INTERACTIVE_JOURNALING_CONVERSATION_END_REASON_EXPLICIT_CLOSE value
|
|
270242
|
+
*/
|
|
270243
|
+
$root.InteractiveJournalingConversationEndReason = (function() {
|
|
270244
|
+
var valuesById = {}, values = Object.create(valuesById);
|
|
270245
|
+
values[valuesById[0] = "INTERACTIVE_JOURNALING_CONVERSATION_END_REASON_UNKNOWN"] = 0;
|
|
270246
|
+
values[valuesById[1] = "INTERACTIVE_JOURNALING_CONVERSATION_END_REASON_INACTIVITY"] = 1;
|
|
270247
|
+
values[valuesById[2] = "INTERACTIVE_JOURNALING_CONVERSATION_END_REASON_EXPLICIT_CLOSE"] = 2;
|
|
270248
|
+
return values;
|
|
270249
|
+
})();
|
|
270250
|
+
|
|
270251
|
+
/**
|
|
270252
|
+
* InteractiveJournalingConversationType enum.
|
|
270253
|
+
* @name InteractiveJournalingConversationType
|
|
270254
|
+
* @enum {number}
|
|
270255
|
+
* @property {number} INTERACTIVE_JOURNALING_CONVERSATION_TYPE_UNKNOWN=0 INTERACTIVE_JOURNALING_CONVERSATION_TYPE_UNKNOWN value
|
|
270256
|
+
* @property {number} INTERACTIVE_JOURNALING_CONVERSATION_TYPE_GENERAL=1 INTERACTIVE_JOURNALING_CONVERSATION_TYPE_GENERAL value
|
|
270257
|
+
* @property {number} INTERACTIVE_JOURNALING_CONVERSATION_TYPE_MEDITATION_DEBRIEF=2 INTERACTIVE_JOURNALING_CONVERSATION_TYPE_MEDITATION_DEBRIEF value
|
|
270258
|
+
*/
|
|
270259
|
+
$root.InteractiveJournalingConversationType = (function() {
|
|
270260
|
+
var valuesById = {}, values = Object.create(valuesById);
|
|
270261
|
+
values[valuesById[0] = "INTERACTIVE_JOURNALING_CONVERSATION_TYPE_UNKNOWN"] = 0;
|
|
270262
|
+
values[valuesById[1] = "INTERACTIVE_JOURNALING_CONVERSATION_TYPE_GENERAL"] = 1;
|
|
270263
|
+
values[valuesById[2] = "INTERACTIVE_JOURNALING_CONVERSATION_TYPE_MEDITATION_DEBRIEF"] = 2;
|
|
270264
|
+
return values;
|
|
270265
|
+
})();
|
|
270266
|
+
|
|
270267
|
+
$root.InteractiveJournalingConversationEnded = (function() {
|
|
270268
|
+
|
|
270269
|
+
/**
|
|
270270
|
+
* Properties of an InteractiveJournalingConversationEnded.
|
|
270271
|
+
* @typedef {Object} InteractiveJournalingConversationEnded.$Properties
|
|
270272
|
+
* @property {string|null} [conversationId] InteractiveJournalingConversationEnded conversationId
|
|
270273
|
+
* @property {string|null} [hsUserId] InteractiveJournalingConversationEnded hsUserId
|
|
270274
|
+
* @property {number|Long|null} [endedAtTimestamp] InteractiveJournalingConversationEnded endedAtTimestamp
|
|
270275
|
+
* @property {InteractiveJournalingConversationEndReason|null} [reason] InteractiveJournalingConversationEnded reason
|
|
270276
|
+
* @property {InteractiveJournalingConversationType|null} [conversationType] InteractiveJournalingConversationEnded conversationType
|
|
270277
|
+
* @property {Array.<Uint8Array>} [$unknowns] Unknown fields preserved while decoding
|
|
270278
|
+
*/
|
|
270279
|
+
|
|
270280
|
+
/**
|
|
270281
|
+
* Properties of an InteractiveJournalingConversationEnded.
|
|
270282
|
+
* @name IInteractiveJournalingConversationEnded
|
|
270283
|
+
* @interface IInteractiveJournalingConversationEnded
|
|
270284
|
+
* @augments InteractiveJournalingConversationEnded.$Properties
|
|
270285
|
+
* @deprecated Use InteractiveJournalingConversationEnded.$Properties instead.
|
|
270286
|
+
*/
|
|
270287
|
+
|
|
270288
|
+
/**
|
|
270289
|
+
* Shape of an InteractiveJournalingConversationEnded.
|
|
270290
|
+
* @typedef {InteractiveJournalingConversationEnded.$Properties} InteractiveJournalingConversationEnded.$Shape
|
|
270291
|
+
*/
|
|
270292
|
+
|
|
270293
|
+
/**
|
|
270294
|
+
* Constructs a new InteractiveJournalingConversationEnded.
|
|
270295
|
+
* @name InteractiveJournalingConversationEnded
|
|
270296
|
+
* @classdesc Represents an InteractiveJournalingConversationEnded.
|
|
270297
|
+
* @constructor
|
|
270298
|
+
* @param {InteractiveJournalingConversationEnded.$Properties=} [properties] Properties to set
|
|
270299
|
+
* @property {Array.<Uint8Array>} [$unknowns] Unknown fields preserved while decoding
|
|
270300
|
+
*/
|
|
270301
|
+
function InteractiveJournalingConversationEnded(properties) {
|
|
270302
|
+
if (properties)
|
|
270303
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
270304
|
+
if (properties[keys[i]] != null && keys[i] !== "__proto__")
|
|
270305
|
+
this[keys[i]] = properties[keys[i]];
|
|
270306
|
+
}
|
|
270307
|
+
|
|
270308
|
+
/**
|
|
270309
|
+
* InteractiveJournalingConversationEnded conversationId.
|
|
270310
|
+
* @member {string} conversationId
|
|
270311
|
+
* @memberof InteractiveJournalingConversationEnded
|
|
270312
|
+
* @instance
|
|
270313
|
+
*/
|
|
270314
|
+
InteractiveJournalingConversationEnded.prototype.conversationId = "";
|
|
270315
|
+
|
|
270316
|
+
/**
|
|
270317
|
+
* InteractiveJournalingConversationEnded hsUserId.
|
|
270318
|
+
* @member {string} hsUserId
|
|
270319
|
+
* @memberof InteractiveJournalingConversationEnded
|
|
270320
|
+
* @instance
|
|
270321
|
+
*/
|
|
270322
|
+
InteractiveJournalingConversationEnded.prototype.hsUserId = "";
|
|
270323
|
+
|
|
270324
|
+
/**
|
|
270325
|
+
* InteractiveJournalingConversationEnded endedAtTimestamp.
|
|
270326
|
+
* @member {number|Long} endedAtTimestamp
|
|
270327
|
+
* @memberof InteractiveJournalingConversationEnded
|
|
270328
|
+
* @instance
|
|
270329
|
+
*/
|
|
270330
|
+
InteractiveJournalingConversationEnded.prototype.endedAtTimestamp = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
270331
|
+
|
|
270332
|
+
/**
|
|
270333
|
+
* InteractiveJournalingConversationEnded reason.
|
|
270334
|
+
* @member {InteractiveJournalingConversationEndReason} reason
|
|
270335
|
+
* @memberof InteractiveJournalingConversationEnded
|
|
270336
|
+
* @instance
|
|
270337
|
+
*/
|
|
270338
|
+
InteractiveJournalingConversationEnded.prototype.reason = 0;
|
|
270339
|
+
|
|
270340
|
+
/**
|
|
270341
|
+
* InteractiveJournalingConversationEnded conversationType.
|
|
270342
|
+
* @member {InteractiveJournalingConversationType} conversationType
|
|
270343
|
+
* @memberof InteractiveJournalingConversationEnded
|
|
270344
|
+
* @instance
|
|
270345
|
+
*/
|
|
270346
|
+
InteractiveJournalingConversationEnded.prototype.conversationType = 0;
|
|
270347
|
+
|
|
270348
|
+
/**
|
|
270349
|
+
* Creates a new InteractiveJournalingConversationEnded instance using the specified properties.
|
|
270350
|
+
* @function create
|
|
270351
|
+
* @memberof InteractiveJournalingConversationEnded
|
|
270352
|
+
* @static
|
|
270353
|
+
* @param {InteractiveJournalingConversationEnded.$Properties=} [properties] Properties to set
|
|
270354
|
+
* @returns {InteractiveJournalingConversationEnded} InteractiveJournalingConversationEnded instance
|
|
270355
|
+
* @type {{
|
|
270356
|
+
* (properties: InteractiveJournalingConversationEnded.$Shape): InteractiveJournalingConversationEnded & InteractiveJournalingConversationEnded.$Shape;
|
|
270357
|
+
* (properties?: InteractiveJournalingConversationEnded.$Properties): InteractiveJournalingConversationEnded;
|
|
270358
|
+
* }}
|
|
270359
|
+
*/
|
|
270360
|
+
InteractiveJournalingConversationEnded.create = function create(properties) {
|
|
270361
|
+
return new InteractiveJournalingConversationEnded(properties);
|
|
270362
|
+
};
|
|
270363
|
+
|
|
270364
|
+
/**
|
|
270365
|
+
* Encodes the specified InteractiveJournalingConversationEnded message. Does not implicitly {@link InteractiveJournalingConversationEnded.verify|verify} messages.
|
|
270366
|
+
* @function encode
|
|
270367
|
+
* @memberof InteractiveJournalingConversationEnded
|
|
270368
|
+
* @static
|
|
270369
|
+
* @param {InteractiveJournalingConversationEnded.$Properties} message InteractiveJournalingConversationEnded message or plain object to encode
|
|
270370
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
270371
|
+
* @returns {$protobuf.Writer} Writer
|
|
270372
|
+
*/
|
|
270373
|
+
InteractiveJournalingConversationEnded.encode = function encode(message, writer) {
|
|
270374
|
+
if (!writer)
|
|
270375
|
+
writer = $Writer.create();
|
|
270376
|
+
if (message.conversationId != null && Object.hasOwnProperty.call(message, "conversationId"))
|
|
270377
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.conversationId);
|
|
270378
|
+
if (message.hsUserId != null && Object.hasOwnProperty.call(message, "hsUserId"))
|
|
270379
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.hsUserId);
|
|
270380
|
+
if (message.endedAtTimestamp != null && Object.hasOwnProperty.call(message, "endedAtTimestamp"))
|
|
270381
|
+
writer.uint32(/* id 3, wireType 0 =*/24).uint64(message.endedAtTimestamp);
|
|
270382
|
+
if (message.reason != null && Object.hasOwnProperty.call(message, "reason"))
|
|
270383
|
+
writer.uint32(/* id 4, wireType 0 =*/32).int32(message.reason);
|
|
270384
|
+
if (message.conversationType != null && Object.hasOwnProperty.call(message, "conversationType"))
|
|
270385
|
+
writer.uint32(/* id 5, wireType 0 =*/40).int32(message.conversationType);
|
|
270386
|
+
if (message.$unknowns != null && Object.hasOwnProperty.call(message, "$unknowns"))
|
|
270387
|
+
for (var i = 0; i < message.$unknowns.length; ++i)
|
|
270388
|
+
writer.raw(message.$unknowns[i]);
|
|
270389
|
+
return writer;
|
|
270390
|
+
};
|
|
270391
|
+
|
|
270392
|
+
/**
|
|
270393
|
+
* Encodes the specified InteractiveJournalingConversationEnded message, length delimited. Does not implicitly {@link InteractiveJournalingConversationEnded.verify|verify} messages.
|
|
270394
|
+
* @function encodeDelimited
|
|
270395
|
+
* @memberof InteractiveJournalingConversationEnded
|
|
270396
|
+
* @static
|
|
270397
|
+
* @param {InteractiveJournalingConversationEnded.$Properties} message InteractiveJournalingConversationEnded message or plain object to encode
|
|
270398
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
270399
|
+
* @returns {$protobuf.Writer} Writer
|
|
270400
|
+
*/
|
|
270401
|
+
InteractiveJournalingConversationEnded.encodeDelimited = function encodeDelimited(message, writer) {
|
|
270402
|
+
return this.encode(message, writer).ldelim();
|
|
270403
|
+
};
|
|
270404
|
+
|
|
270405
|
+
/**
|
|
270406
|
+
* Decodes an InteractiveJournalingConversationEnded message from the specified reader or buffer.
|
|
270407
|
+
* @function decode
|
|
270408
|
+
* @memberof InteractiveJournalingConversationEnded
|
|
270409
|
+
* @static
|
|
270410
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
270411
|
+
* @param {number} [length] Message length if known beforehand
|
|
270412
|
+
* @returns {InteractiveJournalingConversationEnded & InteractiveJournalingConversationEnded.$Shape} InteractiveJournalingConversationEnded
|
|
270413
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
270414
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
270415
|
+
*/
|
|
270416
|
+
InteractiveJournalingConversationEnded.decode = function decode(reader, length, _end, _depth, _target) {
|
|
270417
|
+
if (!(reader instanceof $Reader))
|
|
270418
|
+
reader = $Reader.create(reader);
|
|
270419
|
+
if (_depth === undefined)
|
|
270420
|
+
_depth = 0;
|
|
270421
|
+
if (_depth > $Reader.recursionLimit)
|
|
270422
|
+
throw Error("max depth exceeded");
|
|
270423
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = _target || new $root.InteractiveJournalingConversationEnded(), value;
|
|
270424
|
+
while (reader.pos < end) {
|
|
270425
|
+
var start = reader.pos;
|
|
270426
|
+
var tag = reader.tag();
|
|
270427
|
+
if (tag === _end) {
|
|
270428
|
+
_end = undefined;
|
|
270429
|
+
break;
|
|
270430
|
+
}
|
|
270431
|
+
var wireType = tag & 7;
|
|
270432
|
+
switch (tag >>>= 3) {
|
|
270433
|
+
case 1: {
|
|
270434
|
+
if (wireType !== 2)
|
|
270435
|
+
break;
|
|
270436
|
+
if ((value = reader.string()).length)
|
|
270437
|
+
message.conversationId = value;
|
|
270438
|
+
else
|
|
270439
|
+
delete message.conversationId;
|
|
270440
|
+
continue;
|
|
270441
|
+
}
|
|
270442
|
+
case 2: {
|
|
270443
|
+
if (wireType !== 2)
|
|
270444
|
+
break;
|
|
270445
|
+
if ((value = reader.string()).length)
|
|
270446
|
+
message.hsUserId = value;
|
|
270447
|
+
else
|
|
270448
|
+
delete message.hsUserId;
|
|
270449
|
+
continue;
|
|
270450
|
+
}
|
|
270451
|
+
case 3: {
|
|
270452
|
+
if (wireType !== 0)
|
|
270453
|
+
break;
|
|
270454
|
+
if (typeof (value = reader.uint64()) === "object" ? value.low || value.high : value !== 0)
|
|
270455
|
+
message.endedAtTimestamp = value;
|
|
270456
|
+
else
|
|
270457
|
+
delete message.endedAtTimestamp;
|
|
270458
|
+
continue;
|
|
270459
|
+
}
|
|
270460
|
+
case 4: {
|
|
270461
|
+
if (wireType !== 0)
|
|
270462
|
+
break;
|
|
270463
|
+
if (value = reader.int32())
|
|
270464
|
+
message.reason = value;
|
|
270465
|
+
else
|
|
270466
|
+
delete message.reason;
|
|
270467
|
+
continue;
|
|
270468
|
+
}
|
|
270469
|
+
case 5: {
|
|
270470
|
+
if (wireType !== 0)
|
|
270471
|
+
break;
|
|
270472
|
+
if (value = reader.int32())
|
|
270473
|
+
message.conversationType = value;
|
|
270474
|
+
else
|
|
270475
|
+
delete message.conversationType;
|
|
270476
|
+
continue;
|
|
270477
|
+
}
|
|
270478
|
+
}
|
|
270479
|
+
reader.skipType(wireType, _depth, tag);
|
|
270480
|
+
$util.makeProp(message, "$unknowns", false);
|
|
270481
|
+
(message.$unknowns || (message.$unknowns = [])).push(reader.raw(start, reader.pos));
|
|
270482
|
+
}
|
|
270483
|
+
if (_end !== undefined)
|
|
270484
|
+
throw Error("missing end group");
|
|
270485
|
+
return message;
|
|
270486
|
+
};
|
|
270487
|
+
|
|
270488
|
+
/**
|
|
270489
|
+
* Decodes an InteractiveJournalingConversationEnded message from the specified reader or buffer, length delimited.
|
|
270490
|
+
* @function decodeDelimited
|
|
270491
|
+
* @memberof InteractiveJournalingConversationEnded
|
|
270492
|
+
* @static
|
|
270493
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
270494
|
+
* @returns {InteractiveJournalingConversationEnded & InteractiveJournalingConversationEnded.$Shape} InteractiveJournalingConversationEnded
|
|
270495
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
270496
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
270497
|
+
*/
|
|
270498
|
+
InteractiveJournalingConversationEnded.decodeDelimited = function decodeDelimited(reader) {
|
|
270499
|
+
if (!(reader instanceof $Reader))
|
|
270500
|
+
reader = new $Reader(reader);
|
|
270501
|
+
return this.decode(reader, reader.uint32());
|
|
270502
|
+
};
|
|
270503
|
+
|
|
270504
|
+
/**
|
|
270505
|
+
* Verifies an InteractiveJournalingConversationEnded message.
|
|
270506
|
+
* @function verify
|
|
270507
|
+
* @memberof InteractiveJournalingConversationEnded
|
|
270508
|
+
* @static
|
|
270509
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
270510
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
270511
|
+
*/
|
|
270512
|
+
InteractiveJournalingConversationEnded.verify = function verify(message, _depth) {
|
|
270513
|
+
if (typeof message !== "object" || message === null)
|
|
270514
|
+
return "object expected";
|
|
270515
|
+
if (_depth === undefined)
|
|
270516
|
+
_depth = 0;
|
|
270517
|
+
if (_depth > $util.recursionLimit)
|
|
270518
|
+
return "max depth exceeded";
|
|
270519
|
+
if (message.conversationId != null && message.hasOwnProperty("conversationId"))
|
|
270520
|
+
if (!$util.isString(message.conversationId))
|
|
270521
|
+
return "conversationId: string expected";
|
|
270522
|
+
if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
|
|
270523
|
+
if (!$util.isString(message.hsUserId))
|
|
270524
|
+
return "hsUserId: string expected";
|
|
270525
|
+
if (message.endedAtTimestamp != null && message.hasOwnProperty("endedAtTimestamp"))
|
|
270526
|
+
if (!$util.isInteger(message.endedAtTimestamp) && !(message.endedAtTimestamp && $util.isInteger(message.endedAtTimestamp.low) && $util.isInteger(message.endedAtTimestamp.high)))
|
|
270527
|
+
return "endedAtTimestamp: integer|Long expected";
|
|
270528
|
+
if (message.reason != null && message.hasOwnProperty("reason"))
|
|
270529
|
+
switch (message.reason) {
|
|
270530
|
+
default:
|
|
270531
|
+
return "reason: enum value expected";
|
|
270532
|
+
case 0:
|
|
270533
|
+
case 1:
|
|
270534
|
+
case 2:
|
|
270535
|
+
break;
|
|
270536
|
+
}
|
|
270537
|
+
if (message.conversationType != null && message.hasOwnProperty("conversationType"))
|
|
270538
|
+
switch (message.conversationType) {
|
|
270539
|
+
default:
|
|
270540
|
+
return "conversationType: enum value expected";
|
|
270541
|
+
case 0:
|
|
270542
|
+
case 1:
|
|
270543
|
+
case 2:
|
|
270544
|
+
break;
|
|
270545
|
+
}
|
|
270546
|
+
return null;
|
|
270547
|
+
};
|
|
270548
|
+
|
|
270549
|
+
/**
|
|
270550
|
+
* Creates an InteractiveJournalingConversationEnded message from a plain object. Also converts values to their respective internal types.
|
|
270551
|
+
* @function fromObject
|
|
270552
|
+
* @memberof InteractiveJournalingConversationEnded
|
|
270553
|
+
* @static
|
|
270554
|
+
* @param {Object.<string,*>} object Plain object
|
|
270555
|
+
* @returns {InteractiveJournalingConversationEnded} InteractiveJournalingConversationEnded
|
|
270556
|
+
*/
|
|
270557
|
+
InteractiveJournalingConversationEnded.fromObject = function fromObject(object, _depth) {
|
|
270558
|
+
if (object instanceof $root.InteractiveJournalingConversationEnded)
|
|
270559
|
+
return object;
|
|
270560
|
+
if (_depth === undefined)
|
|
270561
|
+
_depth = 0;
|
|
270562
|
+
if (_depth > $util.recursionLimit)
|
|
270563
|
+
throw Error("max depth exceeded");
|
|
270564
|
+
var message = new $root.InteractiveJournalingConversationEnded();
|
|
270565
|
+
if (object.conversationId != null)
|
|
270566
|
+
if (typeof object.conversationId !== "string" || object.conversationId.length)
|
|
270567
|
+
message.conversationId = String(object.conversationId);
|
|
270568
|
+
if (object.hsUserId != null)
|
|
270569
|
+
if (typeof object.hsUserId !== "string" || object.hsUserId.length)
|
|
270570
|
+
message.hsUserId = String(object.hsUserId);
|
|
270571
|
+
if (object.endedAtTimestamp != null)
|
|
270572
|
+
if (typeof object.endedAtTimestamp === "object" ? object.endedAtTimestamp.low || object.endedAtTimestamp.high : Number(object.endedAtTimestamp) !== 0)
|
|
270573
|
+
if ($util.Long)
|
|
270574
|
+
(message.endedAtTimestamp = $util.Long.fromValue(object.endedAtTimestamp)).unsigned = true;
|
|
270575
|
+
else if (typeof object.endedAtTimestamp === "string")
|
|
270576
|
+
message.endedAtTimestamp = parseInt(object.endedAtTimestamp, 10);
|
|
270577
|
+
else if (typeof object.endedAtTimestamp === "number")
|
|
270578
|
+
message.endedAtTimestamp = object.endedAtTimestamp;
|
|
270579
|
+
else if (typeof object.endedAtTimestamp === "object")
|
|
270580
|
+
message.endedAtTimestamp = new $util.LongBits(object.endedAtTimestamp.low >>> 0, object.endedAtTimestamp.high >>> 0).toNumber(true);
|
|
270581
|
+
if (object.reason !== 0 && (typeof object.reason !== "string" || $root.InteractiveJournalingConversationEndReason[object.reason] !== 0))
|
|
270582
|
+
switch (object.reason) {
|
|
270583
|
+
default:
|
|
270584
|
+
if (typeof object.reason === "number") {
|
|
270585
|
+
message.reason = object.reason;
|
|
270586
|
+
break;
|
|
270587
|
+
}
|
|
270588
|
+
break;
|
|
270589
|
+
case "INTERACTIVE_JOURNALING_CONVERSATION_END_REASON_UNKNOWN":
|
|
270590
|
+
case 0:
|
|
270591
|
+
message.reason = 0;
|
|
270592
|
+
break;
|
|
270593
|
+
case "INTERACTIVE_JOURNALING_CONVERSATION_END_REASON_INACTIVITY":
|
|
270594
|
+
case 1:
|
|
270595
|
+
message.reason = 1;
|
|
270596
|
+
break;
|
|
270597
|
+
case "INTERACTIVE_JOURNALING_CONVERSATION_END_REASON_EXPLICIT_CLOSE":
|
|
270598
|
+
case 2:
|
|
270599
|
+
message.reason = 2;
|
|
270600
|
+
break;
|
|
270601
|
+
}
|
|
270602
|
+
if (object.conversationType !== 0 && (typeof object.conversationType !== "string" || $root.InteractiveJournalingConversationType[object.conversationType] !== 0))
|
|
270603
|
+
switch (object.conversationType) {
|
|
270604
|
+
default:
|
|
270605
|
+
if (typeof object.conversationType === "number") {
|
|
270606
|
+
message.conversationType = object.conversationType;
|
|
270607
|
+
break;
|
|
270608
|
+
}
|
|
270609
|
+
break;
|
|
270610
|
+
case "INTERACTIVE_JOURNALING_CONVERSATION_TYPE_UNKNOWN":
|
|
270611
|
+
case 0:
|
|
270612
|
+
message.conversationType = 0;
|
|
270613
|
+
break;
|
|
270614
|
+
case "INTERACTIVE_JOURNALING_CONVERSATION_TYPE_GENERAL":
|
|
270615
|
+
case 1:
|
|
270616
|
+
message.conversationType = 1;
|
|
270617
|
+
break;
|
|
270618
|
+
case "INTERACTIVE_JOURNALING_CONVERSATION_TYPE_MEDITATION_DEBRIEF":
|
|
270619
|
+
case 2:
|
|
270620
|
+
message.conversationType = 2;
|
|
270621
|
+
break;
|
|
270622
|
+
}
|
|
270623
|
+
return message;
|
|
270624
|
+
};
|
|
270625
|
+
|
|
270626
|
+
/**
|
|
270627
|
+
* Creates a plain object from an InteractiveJournalingConversationEnded message. Also converts values to other types if specified.
|
|
270628
|
+
* @function toObject
|
|
270629
|
+
* @memberof InteractiveJournalingConversationEnded
|
|
270630
|
+
* @static
|
|
270631
|
+
* @param {InteractiveJournalingConversationEnded} message InteractiveJournalingConversationEnded
|
|
270632
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
270633
|
+
* @returns {Object.<string,*>} Plain object
|
|
270634
|
+
*/
|
|
270635
|
+
InteractiveJournalingConversationEnded.toObject = function toObject(message, options) {
|
|
270636
|
+
if (!options)
|
|
270637
|
+
options = {};
|
|
270638
|
+
var object = {};
|
|
270639
|
+
if (options.defaults) {
|
|
270640
|
+
object.conversationId = "";
|
|
270641
|
+
object.hsUserId = "";
|
|
270642
|
+
if ($util.Long) {
|
|
270643
|
+
var long = new $util.Long(0, 0, true);
|
|
270644
|
+
object.endedAtTimestamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long;
|
|
270645
|
+
} else
|
|
270646
|
+
object.endedAtTimestamp = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0;
|
|
270647
|
+
object.reason = options.enums === String ? "INTERACTIVE_JOURNALING_CONVERSATION_END_REASON_UNKNOWN" : 0;
|
|
270648
|
+
object.conversationType = options.enums === String ? "INTERACTIVE_JOURNALING_CONVERSATION_TYPE_UNKNOWN" : 0;
|
|
270649
|
+
}
|
|
270650
|
+
if (message.conversationId != null && message.hasOwnProperty("conversationId"))
|
|
270651
|
+
object.conversationId = message.conversationId;
|
|
270652
|
+
if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
|
|
270653
|
+
object.hsUserId = message.hsUserId;
|
|
270654
|
+
if (message.endedAtTimestamp != null && message.hasOwnProperty("endedAtTimestamp"))
|
|
270655
|
+
if (typeof BigInt !== "undefined" && options.longs === BigInt)
|
|
270656
|
+
object.endedAtTimestamp = typeof message.endedAtTimestamp === "number" ? BigInt(message.endedAtTimestamp) : $util.Long.fromBits(message.endedAtTimestamp.low >>> 0, message.endedAtTimestamp.high >>> 0, true).toBigInt();
|
|
270657
|
+
else if (typeof message.endedAtTimestamp === "number")
|
|
270658
|
+
object.endedAtTimestamp = options.longs === String ? String(message.endedAtTimestamp) : message.endedAtTimestamp;
|
|
270659
|
+
else
|
|
270660
|
+
object.endedAtTimestamp = options.longs === String ? $util.Long.prototype.toString.call(message.endedAtTimestamp) : options.longs === Number ? new $util.LongBits(message.endedAtTimestamp.low >>> 0, message.endedAtTimestamp.high >>> 0).toNumber(true) : message.endedAtTimestamp;
|
|
270661
|
+
if (message.reason != null && message.hasOwnProperty("reason"))
|
|
270662
|
+
object.reason = options.enums === String ? $root.InteractiveJournalingConversationEndReason[message.reason] === undefined ? message.reason : $root.InteractiveJournalingConversationEndReason[message.reason] : message.reason;
|
|
270663
|
+
if (message.conversationType != null && message.hasOwnProperty("conversationType"))
|
|
270664
|
+
object.conversationType = options.enums === String ? $root.InteractiveJournalingConversationType[message.conversationType] === undefined ? message.conversationType : $root.InteractiveJournalingConversationType[message.conversationType] : message.conversationType;
|
|
270665
|
+
return object;
|
|
270666
|
+
};
|
|
270667
|
+
|
|
270668
|
+
/**
|
|
270669
|
+
* Converts this InteractiveJournalingConversationEnded to JSON.
|
|
270670
|
+
* @function toJSON
|
|
270671
|
+
* @memberof InteractiveJournalingConversationEnded
|
|
270672
|
+
* @instance
|
|
270673
|
+
* @returns {Object.<string,*>} JSON object
|
|
270674
|
+
*/
|
|
270675
|
+
InteractiveJournalingConversationEnded.prototype.toJSON = function toJSON() {
|
|
270676
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
270677
|
+
};
|
|
270678
|
+
|
|
270679
|
+
/**
|
|
270680
|
+
* Gets the type url for InteractiveJournalingConversationEnded
|
|
270681
|
+
* @function getTypeUrl
|
|
270682
|
+
* @memberof InteractiveJournalingConversationEnded
|
|
270683
|
+
* @static
|
|
270684
|
+
* @param {string} [prefix] Custom type url prefix, defaults to `"type.googleapis.com"`
|
|
270685
|
+
* @returns {string} The type url
|
|
270686
|
+
*/
|
|
270687
|
+
InteractiveJournalingConversationEnded.getTypeUrl = function getTypeUrl(prefix) {
|
|
270688
|
+
if (prefix === undefined)
|
|
270689
|
+
prefix = "type.googleapis.com";
|
|
270690
|
+
return prefix + "/InteractiveJournalingConversationEnded";
|
|
270691
|
+
};
|
|
270692
|
+
|
|
270693
|
+
return InteractiveJournalingConversationEnded;
|
|
270694
|
+
})();
|
|
270695
|
+
|
|
270235
270696
|
$root.LayoutCreated = (function() {
|
|
270236
270697
|
|
|
270237
270698
|
/**
|
package/package.json
CHANGED