@headspace/protos-events 1.631.0 → 1.633.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 +248 -2
- package/lib/index.js +627 -1
- package/package.json +1 -1
package/lib/index.d.ts
CHANGED
|
@@ -3298,6 +3298,9 @@ export namespace coaching {
|
|
|
3298
3298
|
* See apps.listenerapp.models.ChatConversation
|
|
3299
3299
|
*/
|
|
3300
3300
|
chatConversationId?: (string|null);
|
|
3301
|
+
|
|
3302
|
+
/** The medium format of the session. */
|
|
3303
|
+
sessionFormat?: (coaching.CoachingSessionFormat|null);
|
|
3301
3304
|
}
|
|
3302
3305
|
|
|
3303
3306
|
/**
|
|
@@ -3369,6 +3372,9 @@ export namespace coaching {
|
|
|
3369
3372
|
*/
|
|
3370
3373
|
public chatConversationId: string;
|
|
3371
3374
|
|
|
3375
|
+
/** The medium format of the session. */
|
|
3376
|
+
public sessionFormat: coaching.CoachingSessionFormat;
|
|
3377
|
+
|
|
3372
3378
|
/**
|
|
3373
3379
|
* Creates a new ScheduledCoachingSession instance using the specified properties.
|
|
3374
3380
|
* @param [properties] Properties to set
|
|
@@ -3448,6 +3454,13 @@ export namespace coaching {
|
|
|
3448
3454
|
COACHING_SESSION_EVENT_TYPE_REMINDER = 3
|
|
3449
3455
|
}
|
|
3450
3456
|
|
|
3457
|
+
/** The medium used for a coaching session. */
|
|
3458
|
+
enum CoachingSessionFormat {
|
|
3459
|
+
COACHING_SESSION_FORMAT_UNKNOWN = 0,
|
|
3460
|
+
COACHING_SESSION_FORMAT_CHAT = 1,
|
|
3461
|
+
COACHING_SESSION_FORMAT_VIDEO = 2
|
|
3462
|
+
}
|
|
3463
|
+
|
|
3451
3464
|
/** Properties of a SuicidalIdeationAlert. */
|
|
3452
3465
|
interface ISuicidalIdeationAlert {
|
|
3453
3466
|
|
|
@@ -16936,10 +16949,15 @@ export namespace userdomain {
|
|
|
16936
16949
|
HEALTH_USER = 4
|
|
16937
16950
|
}
|
|
16938
16951
|
|
|
16939
|
-
/**
|
|
16952
|
+
/**
|
|
16953
|
+
* User Deletion Reason
|
|
16954
|
+
*
|
|
16955
|
+
* To provide context for the user deletion
|
|
16956
|
+
*/
|
|
16940
16957
|
enum UserDeleteReason {
|
|
16941
16958
|
UNKNOWN_REASON = 0,
|
|
16942
|
-
INACTIVE = 1
|
|
16959
|
+
INACTIVE = 1,
|
|
16960
|
+
USER_DELETE_REASON_DSAR = 2
|
|
16943
16961
|
}
|
|
16944
16962
|
}
|
|
16945
16963
|
|
|
@@ -66801,6 +66819,234 @@ export class UserConsentUpdated implements IUserConsentUpdated {
|
|
|
66801
66819
|
public toJSON(): { [k: string]: any };
|
|
66802
66820
|
}
|
|
66803
66821
|
|
|
66822
|
+
/** Properties of a UserDeletionRequested. */
|
|
66823
|
+
export interface IUserDeletionRequested {
|
|
66824
|
+
|
|
66825
|
+
/** UserDeletionRequested requester */
|
|
66826
|
+
requester?: (string|null);
|
|
66827
|
+
|
|
66828
|
+
/** UserDeletionRequested timestamp */
|
|
66829
|
+
timestamp?: (number|Long|null);
|
|
66830
|
+
|
|
66831
|
+
/** UserDeletionRequested deleteReason */
|
|
66832
|
+
deleteReason?: (userdomain.users.UserDeleteReason|null);
|
|
66833
|
+
|
|
66834
|
+
/** UserDeletionRequested appClient */
|
|
66835
|
+
appClient?: (UserServiceAppClient|null);
|
|
66836
|
+
}
|
|
66837
|
+
|
|
66838
|
+
/**
|
|
66839
|
+
* Sent when a user requests their account to be deleted.
|
|
66840
|
+
*
|
|
66841
|
+
* Ex: If a user has outstanding balances on their account, the deletion request can be revoked
|
|
66842
|
+
* if the issue is not resolved within 15 days.
|
|
66843
|
+
*
|
|
66844
|
+
* Workflow: UserDeletionRequested -> UserDeletionRevoked (If needed) -> UserDeleted
|
|
66845
|
+
*/
|
|
66846
|
+
export class UserDeletionRequested implements IUserDeletionRequested {
|
|
66847
|
+
|
|
66848
|
+
/**
|
|
66849
|
+
* Constructs a new UserDeletionRequested.
|
|
66850
|
+
* @param [properties] Properties to set
|
|
66851
|
+
*/
|
|
66852
|
+
constructor(properties?: IUserDeletionRequested);
|
|
66853
|
+
|
|
66854
|
+
/** UserDeletionRequested requester. */
|
|
66855
|
+
public requester: string;
|
|
66856
|
+
|
|
66857
|
+
/** UserDeletionRequested timestamp. */
|
|
66858
|
+
public timestamp: (number|Long);
|
|
66859
|
+
|
|
66860
|
+
/** UserDeletionRequested deleteReason. */
|
|
66861
|
+
public deleteReason: userdomain.users.UserDeleteReason;
|
|
66862
|
+
|
|
66863
|
+
/** UserDeletionRequested appClient. */
|
|
66864
|
+
public appClient: UserServiceAppClient;
|
|
66865
|
+
|
|
66866
|
+
/**
|
|
66867
|
+
* Creates a new UserDeletionRequested instance using the specified properties.
|
|
66868
|
+
* @param [properties] Properties to set
|
|
66869
|
+
* @returns UserDeletionRequested instance
|
|
66870
|
+
*/
|
|
66871
|
+
public static create(properties?: IUserDeletionRequested): UserDeletionRequested;
|
|
66872
|
+
|
|
66873
|
+
/**
|
|
66874
|
+
* Encodes the specified UserDeletionRequested message. Does not implicitly {@link UserDeletionRequested.verify|verify} messages.
|
|
66875
|
+
* @param message UserDeletionRequested message or plain object to encode
|
|
66876
|
+
* @param [writer] Writer to encode to
|
|
66877
|
+
* @returns Writer
|
|
66878
|
+
*/
|
|
66879
|
+
public static encode(message: IUserDeletionRequested, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
66880
|
+
|
|
66881
|
+
/**
|
|
66882
|
+
* Encodes the specified UserDeletionRequested message, length delimited. Does not implicitly {@link UserDeletionRequested.verify|verify} messages.
|
|
66883
|
+
* @param message UserDeletionRequested message or plain object to encode
|
|
66884
|
+
* @param [writer] Writer to encode to
|
|
66885
|
+
* @returns Writer
|
|
66886
|
+
*/
|
|
66887
|
+
public static encodeDelimited(message: IUserDeletionRequested, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
66888
|
+
|
|
66889
|
+
/**
|
|
66890
|
+
* Decodes a UserDeletionRequested message from the specified reader or buffer.
|
|
66891
|
+
* @param reader Reader or buffer to decode from
|
|
66892
|
+
* @param [length] Message length if known beforehand
|
|
66893
|
+
* @returns UserDeletionRequested
|
|
66894
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
66895
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
66896
|
+
*/
|
|
66897
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): UserDeletionRequested;
|
|
66898
|
+
|
|
66899
|
+
/**
|
|
66900
|
+
* Decodes a UserDeletionRequested message from the specified reader or buffer, length delimited.
|
|
66901
|
+
* @param reader Reader or buffer to decode from
|
|
66902
|
+
* @returns UserDeletionRequested
|
|
66903
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
66904
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
66905
|
+
*/
|
|
66906
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): UserDeletionRequested;
|
|
66907
|
+
|
|
66908
|
+
/**
|
|
66909
|
+
* Verifies a UserDeletionRequested message.
|
|
66910
|
+
* @param message Plain object to verify
|
|
66911
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
66912
|
+
*/
|
|
66913
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
66914
|
+
|
|
66915
|
+
/**
|
|
66916
|
+
* Creates a UserDeletionRequested message from a plain object. Also converts values to their respective internal types.
|
|
66917
|
+
* @param object Plain object
|
|
66918
|
+
* @returns UserDeletionRequested
|
|
66919
|
+
*/
|
|
66920
|
+
public static fromObject(object: { [k: string]: any }): UserDeletionRequested;
|
|
66921
|
+
|
|
66922
|
+
/**
|
|
66923
|
+
* Creates a plain object from a UserDeletionRequested message. Also converts values to other types if specified.
|
|
66924
|
+
* @param message UserDeletionRequested
|
|
66925
|
+
* @param [options] Conversion options
|
|
66926
|
+
* @returns Plain object
|
|
66927
|
+
*/
|
|
66928
|
+
public static toObject(message: UserDeletionRequested, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
66929
|
+
|
|
66930
|
+
/**
|
|
66931
|
+
* Converts this UserDeletionRequested to JSON.
|
|
66932
|
+
* @returns JSON object
|
|
66933
|
+
*/
|
|
66934
|
+
public toJSON(): { [k: string]: any };
|
|
66935
|
+
}
|
|
66936
|
+
|
|
66937
|
+
/** Properties of a UserDeletionRevoked. */
|
|
66938
|
+
export interface IUserDeletionRevoked {
|
|
66939
|
+
|
|
66940
|
+
/** UserDeletionRevoked hsUserId */
|
|
66941
|
+
hsUserId?: (string|null);
|
|
66942
|
+
|
|
66943
|
+
/** UserDeletionRevoked timestamp */
|
|
66944
|
+
timestamp?: (number|Long|null);
|
|
66945
|
+
}
|
|
66946
|
+
|
|
66947
|
+
/**
|
|
66948
|
+
* Sent when an administrative user revokes the deletion of a user account.
|
|
66949
|
+
*
|
|
66950
|
+
* Ex: If a user has outstanding balances on their account, the deletion request will be revoked
|
|
66951
|
+
* if the issue is not resolved within 15 days.
|
|
66952
|
+
*/
|
|
66953
|
+
export class UserDeletionRevoked implements IUserDeletionRevoked {
|
|
66954
|
+
|
|
66955
|
+
/**
|
|
66956
|
+
* Constructs a new UserDeletionRevoked.
|
|
66957
|
+
* @param [properties] Properties to set
|
|
66958
|
+
*/
|
|
66959
|
+
constructor(properties?: IUserDeletionRevoked);
|
|
66960
|
+
|
|
66961
|
+
/** UserDeletionRevoked hsUserId. */
|
|
66962
|
+
public hsUserId: string;
|
|
66963
|
+
|
|
66964
|
+
/** UserDeletionRevoked timestamp. */
|
|
66965
|
+
public timestamp: (number|Long);
|
|
66966
|
+
|
|
66967
|
+
/**
|
|
66968
|
+
* Creates a new UserDeletionRevoked instance using the specified properties.
|
|
66969
|
+
* @param [properties] Properties to set
|
|
66970
|
+
* @returns UserDeletionRevoked instance
|
|
66971
|
+
*/
|
|
66972
|
+
public static create(properties?: IUserDeletionRevoked): UserDeletionRevoked;
|
|
66973
|
+
|
|
66974
|
+
/**
|
|
66975
|
+
* Encodes the specified UserDeletionRevoked message. Does not implicitly {@link UserDeletionRevoked.verify|verify} messages.
|
|
66976
|
+
* @param message UserDeletionRevoked message or plain object to encode
|
|
66977
|
+
* @param [writer] Writer to encode to
|
|
66978
|
+
* @returns Writer
|
|
66979
|
+
*/
|
|
66980
|
+
public static encode(message: IUserDeletionRevoked, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
66981
|
+
|
|
66982
|
+
/**
|
|
66983
|
+
* Encodes the specified UserDeletionRevoked message, length delimited. Does not implicitly {@link UserDeletionRevoked.verify|verify} messages.
|
|
66984
|
+
* @param message UserDeletionRevoked message or plain object to encode
|
|
66985
|
+
* @param [writer] Writer to encode to
|
|
66986
|
+
* @returns Writer
|
|
66987
|
+
*/
|
|
66988
|
+
public static encodeDelimited(message: IUserDeletionRevoked, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
66989
|
+
|
|
66990
|
+
/**
|
|
66991
|
+
* Decodes a UserDeletionRevoked message from the specified reader or buffer.
|
|
66992
|
+
* @param reader Reader or buffer to decode from
|
|
66993
|
+
* @param [length] Message length if known beforehand
|
|
66994
|
+
* @returns UserDeletionRevoked
|
|
66995
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
66996
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
66997
|
+
*/
|
|
66998
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): UserDeletionRevoked;
|
|
66999
|
+
|
|
67000
|
+
/**
|
|
67001
|
+
* Decodes a UserDeletionRevoked message from the specified reader or buffer, length delimited.
|
|
67002
|
+
* @param reader Reader or buffer to decode from
|
|
67003
|
+
* @returns UserDeletionRevoked
|
|
67004
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
67005
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
67006
|
+
*/
|
|
67007
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): UserDeletionRevoked;
|
|
67008
|
+
|
|
67009
|
+
/**
|
|
67010
|
+
* Verifies a UserDeletionRevoked message.
|
|
67011
|
+
* @param message Plain object to verify
|
|
67012
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
67013
|
+
*/
|
|
67014
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
67015
|
+
|
|
67016
|
+
/**
|
|
67017
|
+
* Creates a UserDeletionRevoked message from a plain object. Also converts values to their respective internal types.
|
|
67018
|
+
* @param object Plain object
|
|
67019
|
+
* @returns UserDeletionRevoked
|
|
67020
|
+
*/
|
|
67021
|
+
public static fromObject(object: { [k: string]: any }): UserDeletionRevoked;
|
|
67022
|
+
|
|
67023
|
+
/**
|
|
67024
|
+
* Creates a plain object from a UserDeletionRevoked message. Also converts values to other types if specified.
|
|
67025
|
+
* @param message UserDeletionRevoked
|
|
67026
|
+
* @param [options] Conversion options
|
|
67027
|
+
* @returns Plain object
|
|
67028
|
+
*/
|
|
67029
|
+
public static toObject(message: UserDeletionRevoked, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
67030
|
+
|
|
67031
|
+
/**
|
|
67032
|
+
* Converts this UserDeletionRevoked to JSON.
|
|
67033
|
+
* @returns JSON object
|
|
67034
|
+
*/
|
|
67035
|
+
public toJSON(): { [k: string]: any };
|
|
67036
|
+
}
|
|
67037
|
+
|
|
67038
|
+
/**
|
|
67039
|
+
* User Deletion Request Origin
|
|
67040
|
+
*
|
|
67041
|
+
* A request from the compliance teams to provide the origin of the user deletion request
|
|
67042
|
+
*/
|
|
67043
|
+
export enum UserServiceAppClient {
|
|
67044
|
+
USER_SERVICE_APP_CLIENT_UNKNOWN = 0,
|
|
67045
|
+
USER_SERVICE_APP_CLIENT_HEADSPACE_APP = 1,
|
|
67046
|
+
USER_SERVICE_APP_CLIENT_HEADSPACE_CARE_APP = 2,
|
|
67047
|
+
USER_SERVICE_APP_CLIENT_CROCPIT = 3
|
|
67048
|
+
}
|
|
67049
|
+
|
|
66804
67050
|
/** Properties of a VirginPulseAccountLinked. */
|
|
66805
67051
|
export interface IVirginPulseAccountLinked {
|
|
66806
67052
|
|
package/lib/index.js
CHANGED
|
@@ -10574,6 +10574,7 @@ $root.coaching = (function() {
|
|
|
10574
10574
|
* a new record is created for the new date/time
|
|
10575
10575
|
* @property {string|null} [chatConversationId] A conversation between a Listener and a Caller is represented by a unique ChatConversation
|
|
10576
10576
|
* See apps.listenerapp.models.ChatConversation
|
|
10577
|
+
* @property {coaching.CoachingSessionFormat|null} [sessionFormat] The medium format of the session.
|
|
10577
10578
|
*/
|
|
10578
10579
|
|
|
10579
10580
|
/**
|
|
@@ -10710,6 +10711,14 @@ $root.coaching = (function() {
|
|
|
10710
10711
|
*/
|
|
10711
10712
|
ScheduledCoachingSession.prototype.chatConversationId = "";
|
|
10712
10713
|
|
|
10714
|
+
/**
|
|
10715
|
+
* The medium format of the session.
|
|
10716
|
+
* @member {coaching.CoachingSessionFormat} sessionFormat
|
|
10717
|
+
* @memberof coaching.ScheduledCoachingSession
|
|
10718
|
+
* @instance
|
|
10719
|
+
*/
|
|
10720
|
+
ScheduledCoachingSession.prototype.sessionFormat = 0;
|
|
10721
|
+
|
|
10713
10722
|
/**
|
|
10714
10723
|
* Creates a new ScheduledCoachingSession instance using the specified properties.
|
|
10715
10724
|
* @function create
|
|
@@ -10760,6 +10769,8 @@ $root.coaching = (function() {
|
|
|
10760
10769
|
writer.uint32(/* id 12, wireType 0 =*/96).bool(message.rescheduled);
|
|
10761
10770
|
if (message.chatConversationId != null && message.hasOwnProperty("chatConversationId"))
|
|
10762
10771
|
writer.uint32(/* id 13, wireType 2 =*/106).string(message.chatConversationId);
|
|
10772
|
+
if (message.sessionFormat != null && message.hasOwnProperty("sessionFormat"))
|
|
10773
|
+
writer.uint32(/* id 14, wireType 0 =*/112).int32(message.sessionFormat);
|
|
10763
10774
|
return writer;
|
|
10764
10775
|
};
|
|
10765
10776
|
|
|
@@ -10833,6 +10844,9 @@ $root.coaching = (function() {
|
|
|
10833
10844
|
case 13:
|
|
10834
10845
|
message.chatConversationId = reader.string();
|
|
10835
10846
|
break;
|
|
10847
|
+
case 14:
|
|
10848
|
+
message.sessionFormat = reader.int32();
|
|
10849
|
+
break;
|
|
10836
10850
|
default:
|
|
10837
10851
|
reader.skipType(tag & 7);
|
|
10838
10852
|
break;
|
|
@@ -10914,6 +10928,15 @@ $root.coaching = (function() {
|
|
|
10914
10928
|
if (message.chatConversationId != null && message.hasOwnProperty("chatConversationId"))
|
|
10915
10929
|
if (!$util.isString(message.chatConversationId))
|
|
10916
10930
|
return "chatConversationId: string expected";
|
|
10931
|
+
if (message.sessionFormat != null && message.hasOwnProperty("sessionFormat"))
|
|
10932
|
+
switch (message.sessionFormat) {
|
|
10933
|
+
default:
|
|
10934
|
+
return "sessionFormat: enum value expected";
|
|
10935
|
+
case 0:
|
|
10936
|
+
case 1:
|
|
10937
|
+
case 2:
|
|
10938
|
+
break;
|
|
10939
|
+
}
|
|
10917
10940
|
return null;
|
|
10918
10941
|
};
|
|
10919
10942
|
|
|
@@ -11006,6 +11029,20 @@ $root.coaching = (function() {
|
|
|
11006
11029
|
message.rescheduled = Boolean(object.rescheduled);
|
|
11007
11030
|
if (object.chatConversationId != null)
|
|
11008
11031
|
message.chatConversationId = String(object.chatConversationId);
|
|
11032
|
+
switch (object.sessionFormat) {
|
|
11033
|
+
case "COACHING_SESSION_FORMAT_UNKNOWN":
|
|
11034
|
+
case 0:
|
|
11035
|
+
message.sessionFormat = 0;
|
|
11036
|
+
break;
|
|
11037
|
+
case "COACHING_SESSION_FORMAT_CHAT":
|
|
11038
|
+
case 1:
|
|
11039
|
+
message.sessionFormat = 1;
|
|
11040
|
+
break;
|
|
11041
|
+
case "COACHING_SESSION_FORMAT_VIDEO":
|
|
11042
|
+
case 2:
|
|
11043
|
+
message.sessionFormat = 2;
|
|
11044
|
+
break;
|
|
11045
|
+
}
|
|
11009
11046
|
return message;
|
|
11010
11047
|
};
|
|
11011
11048
|
|
|
@@ -11056,6 +11093,7 @@ $root.coaching = (function() {
|
|
|
11056
11093
|
object.eventType = options.enums === String ? "COACHING_SESSION_EVENT_TYPE_UNKNOWN" : 0;
|
|
11057
11094
|
object.rescheduled = false;
|
|
11058
11095
|
object.chatConversationId = "";
|
|
11096
|
+
object.sessionFormat = options.enums === String ? "COACHING_SESSION_FORMAT_UNKNOWN" : 0;
|
|
11059
11097
|
}
|
|
11060
11098
|
if (message.id != null && message.hasOwnProperty("id"))
|
|
11061
11099
|
object.id = message.id;
|
|
@@ -11098,6 +11136,8 @@ $root.coaching = (function() {
|
|
|
11098
11136
|
object.rescheduled = message.rescheduled;
|
|
11099
11137
|
if (message.chatConversationId != null && message.hasOwnProperty("chatConversationId"))
|
|
11100
11138
|
object.chatConversationId = message.chatConversationId;
|
|
11139
|
+
if (message.sessionFormat != null && message.hasOwnProperty("sessionFormat"))
|
|
11140
|
+
object.sessionFormat = options.enums === String ? $root.coaching.CoachingSessionFormat[message.sessionFormat] : message.sessionFormat;
|
|
11101
11141
|
return object;
|
|
11102
11142
|
};
|
|
11103
11143
|
|
|
@@ -11133,6 +11173,22 @@ $root.coaching = (function() {
|
|
|
11133
11173
|
return values;
|
|
11134
11174
|
})();
|
|
11135
11175
|
|
|
11176
|
+
/**
|
|
11177
|
+
* The medium used for a coaching session.
|
|
11178
|
+
* @name coaching.CoachingSessionFormat
|
|
11179
|
+
* @enum {string}
|
|
11180
|
+
* @property {number} COACHING_SESSION_FORMAT_UNKNOWN=0 COACHING_SESSION_FORMAT_UNKNOWN value
|
|
11181
|
+
* @property {number} COACHING_SESSION_FORMAT_CHAT=1 COACHING_SESSION_FORMAT_CHAT value
|
|
11182
|
+
* @property {number} COACHING_SESSION_FORMAT_VIDEO=2 COACHING_SESSION_FORMAT_VIDEO value
|
|
11183
|
+
*/
|
|
11184
|
+
coaching.CoachingSessionFormat = (function() {
|
|
11185
|
+
var valuesById = {}, values = Object.create(valuesById);
|
|
11186
|
+
values[valuesById[0] = "COACHING_SESSION_FORMAT_UNKNOWN"] = 0;
|
|
11187
|
+
values[valuesById[1] = "COACHING_SESSION_FORMAT_CHAT"] = 1;
|
|
11188
|
+
values[valuesById[2] = "COACHING_SESSION_FORMAT_VIDEO"] = 2;
|
|
11189
|
+
return values;
|
|
11190
|
+
})();
|
|
11191
|
+
|
|
11136
11192
|
coaching.SuicidalIdeationAlert = (function() {
|
|
11137
11193
|
|
|
11138
11194
|
/**
|
|
@@ -45042,16 +45098,20 @@ $root.userdomain = (function() {
|
|
|
45042
45098
|
})();
|
|
45043
45099
|
|
|
45044
45100
|
/**
|
|
45045
|
-
*
|
|
45101
|
+
* User Deletion Reason
|
|
45102
|
+
*
|
|
45103
|
+
* To provide context for the user deletion
|
|
45046
45104
|
* @name userdomain.users.UserDeleteReason
|
|
45047
45105
|
* @enum {string}
|
|
45048
45106
|
* @property {number} UNKNOWN_REASON=0 UNKNOWN_REASON value
|
|
45049
45107
|
* @property {number} INACTIVE=1 INACTIVE value
|
|
45108
|
+
* @property {number} USER_DELETE_REASON_DSAR=2 USER_DELETE_REASON_DSAR value
|
|
45050
45109
|
*/
|
|
45051
45110
|
users.UserDeleteReason = (function() {
|
|
45052
45111
|
var valuesById = {}, values = Object.create(valuesById);
|
|
45053
45112
|
values[valuesById[0] = "UNKNOWN_REASON"] = 0;
|
|
45054
45113
|
values[valuesById[1] = "INACTIVE"] = 1;
|
|
45114
|
+
values[valuesById[2] = "USER_DELETE_REASON_DSAR"] = 2;
|
|
45055
45115
|
return values;
|
|
45056
45116
|
})();
|
|
45057
45117
|
|
|
@@ -76613,6 +76673,7 @@ $root.UserDomainDeleted = (function() {
|
|
|
76613
76673
|
return "deleteReason: enum value expected";
|
|
76614
76674
|
case 0:
|
|
76615
76675
|
case 1:
|
|
76676
|
+
case 2:
|
|
76616
76677
|
break;
|
|
76617
76678
|
}
|
|
76618
76679
|
return null;
|
|
@@ -76650,6 +76711,10 @@ $root.UserDomainDeleted = (function() {
|
|
|
76650
76711
|
case 1:
|
|
76651
76712
|
message.deleteReason = 1;
|
|
76652
76713
|
break;
|
|
76714
|
+
case "USER_DELETE_REASON_DSAR":
|
|
76715
|
+
case 2:
|
|
76716
|
+
message.deleteReason = 2;
|
|
76717
|
+
break;
|
|
76653
76718
|
}
|
|
76654
76719
|
return message;
|
|
76655
76720
|
};
|
|
@@ -187857,6 +187922,567 @@ $root.UserConsentUpdated = (function() {
|
|
|
187857
187922
|
return UserConsentUpdated;
|
|
187858
187923
|
})();
|
|
187859
187924
|
|
|
187925
|
+
$root.UserDeletionRequested = (function() {
|
|
187926
|
+
|
|
187927
|
+
/**
|
|
187928
|
+
* Properties of a UserDeletionRequested.
|
|
187929
|
+
* @name IUserDeletionRequested
|
|
187930
|
+
* @interface IUserDeletionRequested
|
|
187931
|
+
* @property {string|null} [requester] UserDeletionRequested requester
|
|
187932
|
+
* @property {number|Long|null} [timestamp] UserDeletionRequested timestamp
|
|
187933
|
+
* @property {userdomain.users.UserDeleteReason|null} [deleteReason] UserDeletionRequested deleteReason
|
|
187934
|
+
* @property {UserServiceAppClient|null} [appClient] UserDeletionRequested appClient
|
|
187935
|
+
*/
|
|
187936
|
+
|
|
187937
|
+
/**
|
|
187938
|
+
* Constructs a new UserDeletionRequested.
|
|
187939
|
+
* @name UserDeletionRequested
|
|
187940
|
+
* @classdesc Sent when a user requests their account to be deleted.
|
|
187941
|
+
*
|
|
187942
|
+
* Ex: If a user has outstanding balances on their account, the deletion request can be revoked
|
|
187943
|
+
* if the issue is not resolved within 15 days.
|
|
187944
|
+
*
|
|
187945
|
+
* Workflow: UserDeletionRequested -> UserDeletionRevoked (If needed) -> UserDeleted
|
|
187946
|
+
* @implements IUserDeletionRequested
|
|
187947
|
+
* @constructor
|
|
187948
|
+
* @param {IUserDeletionRequested=} [properties] Properties to set
|
|
187949
|
+
*/
|
|
187950
|
+
function UserDeletionRequested(properties) {
|
|
187951
|
+
if (properties)
|
|
187952
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
187953
|
+
if (properties[keys[i]] != null)
|
|
187954
|
+
this[keys[i]] = properties[keys[i]];
|
|
187955
|
+
}
|
|
187956
|
+
|
|
187957
|
+
/**
|
|
187958
|
+
* UserDeletionRequested requester.
|
|
187959
|
+
* @member {string} requester
|
|
187960
|
+
* @memberof UserDeletionRequested
|
|
187961
|
+
* @instance
|
|
187962
|
+
*/
|
|
187963
|
+
UserDeletionRequested.prototype.requester = "";
|
|
187964
|
+
|
|
187965
|
+
/**
|
|
187966
|
+
* UserDeletionRequested timestamp.
|
|
187967
|
+
* @member {number|Long} timestamp
|
|
187968
|
+
* @memberof UserDeletionRequested
|
|
187969
|
+
* @instance
|
|
187970
|
+
*/
|
|
187971
|
+
UserDeletionRequested.prototype.timestamp = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
187972
|
+
|
|
187973
|
+
/**
|
|
187974
|
+
* UserDeletionRequested deleteReason.
|
|
187975
|
+
* @member {userdomain.users.UserDeleteReason} deleteReason
|
|
187976
|
+
* @memberof UserDeletionRequested
|
|
187977
|
+
* @instance
|
|
187978
|
+
*/
|
|
187979
|
+
UserDeletionRequested.prototype.deleteReason = 0;
|
|
187980
|
+
|
|
187981
|
+
/**
|
|
187982
|
+
* UserDeletionRequested appClient.
|
|
187983
|
+
* @member {UserServiceAppClient} appClient
|
|
187984
|
+
* @memberof UserDeletionRequested
|
|
187985
|
+
* @instance
|
|
187986
|
+
*/
|
|
187987
|
+
UserDeletionRequested.prototype.appClient = 0;
|
|
187988
|
+
|
|
187989
|
+
/**
|
|
187990
|
+
* Creates a new UserDeletionRequested instance using the specified properties.
|
|
187991
|
+
* @function create
|
|
187992
|
+
* @memberof UserDeletionRequested
|
|
187993
|
+
* @static
|
|
187994
|
+
* @param {IUserDeletionRequested=} [properties] Properties to set
|
|
187995
|
+
* @returns {UserDeletionRequested} UserDeletionRequested instance
|
|
187996
|
+
*/
|
|
187997
|
+
UserDeletionRequested.create = function create(properties) {
|
|
187998
|
+
return new UserDeletionRequested(properties);
|
|
187999
|
+
};
|
|
188000
|
+
|
|
188001
|
+
/**
|
|
188002
|
+
* Encodes the specified UserDeletionRequested message. Does not implicitly {@link UserDeletionRequested.verify|verify} messages.
|
|
188003
|
+
* @function encode
|
|
188004
|
+
* @memberof UserDeletionRequested
|
|
188005
|
+
* @static
|
|
188006
|
+
* @param {IUserDeletionRequested} message UserDeletionRequested message or plain object to encode
|
|
188007
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
188008
|
+
* @returns {$protobuf.Writer} Writer
|
|
188009
|
+
*/
|
|
188010
|
+
UserDeletionRequested.encode = function encode(message, writer) {
|
|
188011
|
+
if (!writer)
|
|
188012
|
+
writer = $Writer.create();
|
|
188013
|
+
if (message.requester != null && message.hasOwnProperty("requester"))
|
|
188014
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.requester);
|
|
188015
|
+
if (message.timestamp != null && message.hasOwnProperty("timestamp"))
|
|
188016
|
+
writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.timestamp);
|
|
188017
|
+
if (message.deleteReason != null && message.hasOwnProperty("deleteReason"))
|
|
188018
|
+
writer.uint32(/* id 3, wireType 0 =*/24).int32(message.deleteReason);
|
|
188019
|
+
if (message.appClient != null && message.hasOwnProperty("appClient"))
|
|
188020
|
+
writer.uint32(/* id 4, wireType 0 =*/32).int32(message.appClient);
|
|
188021
|
+
return writer;
|
|
188022
|
+
};
|
|
188023
|
+
|
|
188024
|
+
/**
|
|
188025
|
+
* Encodes the specified UserDeletionRequested message, length delimited. Does not implicitly {@link UserDeletionRequested.verify|verify} messages.
|
|
188026
|
+
* @function encodeDelimited
|
|
188027
|
+
* @memberof UserDeletionRequested
|
|
188028
|
+
* @static
|
|
188029
|
+
* @param {IUserDeletionRequested} message UserDeletionRequested message or plain object to encode
|
|
188030
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
188031
|
+
* @returns {$protobuf.Writer} Writer
|
|
188032
|
+
*/
|
|
188033
|
+
UserDeletionRequested.encodeDelimited = function encodeDelimited(message, writer) {
|
|
188034
|
+
return this.encode(message, writer).ldelim();
|
|
188035
|
+
};
|
|
188036
|
+
|
|
188037
|
+
/**
|
|
188038
|
+
* Decodes a UserDeletionRequested message from the specified reader or buffer.
|
|
188039
|
+
* @function decode
|
|
188040
|
+
* @memberof UserDeletionRequested
|
|
188041
|
+
* @static
|
|
188042
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
188043
|
+
* @param {number} [length] Message length if known beforehand
|
|
188044
|
+
* @returns {UserDeletionRequested} UserDeletionRequested
|
|
188045
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
188046
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
188047
|
+
*/
|
|
188048
|
+
UserDeletionRequested.decode = function decode(reader, length) {
|
|
188049
|
+
if (!(reader instanceof $Reader))
|
|
188050
|
+
reader = $Reader.create(reader);
|
|
188051
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.UserDeletionRequested();
|
|
188052
|
+
while (reader.pos < end) {
|
|
188053
|
+
var tag = reader.uint32();
|
|
188054
|
+
switch (tag >>> 3) {
|
|
188055
|
+
case 1:
|
|
188056
|
+
message.requester = reader.string();
|
|
188057
|
+
break;
|
|
188058
|
+
case 2:
|
|
188059
|
+
message.timestamp = reader.uint64();
|
|
188060
|
+
break;
|
|
188061
|
+
case 3:
|
|
188062
|
+
message.deleteReason = reader.int32();
|
|
188063
|
+
break;
|
|
188064
|
+
case 4:
|
|
188065
|
+
message.appClient = reader.int32();
|
|
188066
|
+
break;
|
|
188067
|
+
default:
|
|
188068
|
+
reader.skipType(tag & 7);
|
|
188069
|
+
break;
|
|
188070
|
+
}
|
|
188071
|
+
}
|
|
188072
|
+
return message;
|
|
188073
|
+
};
|
|
188074
|
+
|
|
188075
|
+
/**
|
|
188076
|
+
* Decodes a UserDeletionRequested message from the specified reader or buffer, length delimited.
|
|
188077
|
+
* @function decodeDelimited
|
|
188078
|
+
* @memberof UserDeletionRequested
|
|
188079
|
+
* @static
|
|
188080
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
188081
|
+
* @returns {UserDeletionRequested} UserDeletionRequested
|
|
188082
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
188083
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
188084
|
+
*/
|
|
188085
|
+
UserDeletionRequested.decodeDelimited = function decodeDelimited(reader) {
|
|
188086
|
+
if (!(reader instanceof $Reader))
|
|
188087
|
+
reader = new $Reader(reader);
|
|
188088
|
+
return this.decode(reader, reader.uint32());
|
|
188089
|
+
};
|
|
188090
|
+
|
|
188091
|
+
/**
|
|
188092
|
+
* Verifies a UserDeletionRequested message.
|
|
188093
|
+
* @function verify
|
|
188094
|
+
* @memberof UserDeletionRequested
|
|
188095
|
+
* @static
|
|
188096
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
188097
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
188098
|
+
*/
|
|
188099
|
+
UserDeletionRequested.verify = function verify(message) {
|
|
188100
|
+
if (typeof message !== "object" || message === null)
|
|
188101
|
+
return "object expected";
|
|
188102
|
+
if (message.requester != null && message.hasOwnProperty("requester"))
|
|
188103
|
+
if (!$util.isString(message.requester))
|
|
188104
|
+
return "requester: string expected";
|
|
188105
|
+
if (message.timestamp != null && message.hasOwnProperty("timestamp"))
|
|
188106
|
+
if (!$util.isInteger(message.timestamp) && !(message.timestamp && $util.isInteger(message.timestamp.low) && $util.isInteger(message.timestamp.high)))
|
|
188107
|
+
return "timestamp: integer|Long expected";
|
|
188108
|
+
if (message.deleteReason != null && message.hasOwnProperty("deleteReason"))
|
|
188109
|
+
switch (message.deleteReason) {
|
|
188110
|
+
default:
|
|
188111
|
+
return "deleteReason: enum value expected";
|
|
188112
|
+
case 0:
|
|
188113
|
+
case 1:
|
|
188114
|
+
case 2:
|
|
188115
|
+
break;
|
|
188116
|
+
}
|
|
188117
|
+
if (message.appClient != null && message.hasOwnProperty("appClient"))
|
|
188118
|
+
switch (message.appClient) {
|
|
188119
|
+
default:
|
|
188120
|
+
return "appClient: enum value expected";
|
|
188121
|
+
case 0:
|
|
188122
|
+
case 1:
|
|
188123
|
+
case 2:
|
|
188124
|
+
case 3:
|
|
188125
|
+
break;
|
|
188126
|
+
}
|
|
188127
|
+
return null;
|
|
188128
|
+
};
|
|
188129
|
+
|
|
188130
|
+
/**
|
|
188131
|
+
* Creates a UserDeletionRequested message from a plain object. Also converts values to their respective internal types.
|
|
188132
|
+
* @function fromObject
|
|
188133
|
+
* @memberof UserDeletionRequested
|
|
188134
|
+
* @static
|
|
188135
|
+
* @param {Object.<string,*>} object Plain object
|
|
188136
|
+
* @returns {UserDeletionRequested} UserDeletionRequested
|
|
188137
|
+
*/
|
|
188138
|
+
UserDeletionRequested.fromObject = function fromObject(object) {
|
|
188139
|
+
if (object instanceof $root.UserDeletionRequested)
|
|
188140
|
+
return object;
|
|
188141
|
+
var message = new $root.UserDeletionRequested();
|
|
188142
|
+
if (object.requester != null)
|
|
188143
|
+
message.requester = String(object.requester);
|
|
188144
|
+
if (object.timestamp != null)
|
|
188145
|
+
if ($util.Long)
|
|
188146
|
+
(message.timestamp = $util.Long.fromValue(object.timestamp)).unsigned = true;
|
|
188147
|
+
else if (typeof object.timestamp === "string")
|
|
188148
|
+
message.timestamp = parseInt(object.timestamp, 10);
|
|
188149
|
+
else if (typeof object.timestamp === "number")
|
|
188150
|
+
message.timestamp = object.timestamp;
|
|
188151
|
+
else if (typeof object.timestamp === "object")
|
|
188152
|
+
message.timestamp = new $util.LongBits(object.timestamp.low >>> 0, object.timestamp.high >>> 0).toNumber(true);
|
|
188153
|
+
switch (object.deleteReason) {
|
|
188154
|
+
case "UNKNOWN_REASON":
|
|
188155
|
+
case 0:
|
|
188156
|
+
message.deleteReason = 0;
|
|
188157
|
+
break;
|
|
188158
|
+
case "INACTIVE":
|
|
188159
|
+
case 1:
|
|
188160
|
+
message.deleteReason = 1;
|
|
188161
|
+
break;
|
|
188162
|
+
case "USER_DELETE_REASON_DSAR":
|
|
188163
|
+
case 2:
|
|
188164
|
+
message.deleteReason = 2;
|
|
188165
|
+
break;
|
|
188166
|
+
}
|
|
188167
|
+
switch (object.appClient) {
|
|
188168
|
+
case "USER_SERVICE_APP_CLIENT_UNKNOWN":
|
|
188169
|
+
case 0:
|
|
188170
|
+
message.appClient = 0;
|
|
188171
|
+
break;
|
|
188172
|
+
case "USER_SERVICE_APP_CLIENT_HEADSPACE_APP":
|
|
188173
|
+
case 1:
|
|
188174
|
+
message.appClient = 1;
|
|
188175
|
+
break;
|
|
188176
|
+
case "USER_SERVICE_APP_CLIENT_HEADSPACE_CARE_APP":
|
|
188177
|
+
case 2:
|
|
188178
|
+
message.appClient = 2;
|
|
188179
|
+
break;
|
|
188180
|
+
case "USER_SERVICE_APP_CLIENT_CROCPIT":
|
|
188181
|
+
case 3:
|
|
188182
|
+
message.appClient = 3;
|
|
188183
|
+
break;
|
|
188184
|
+
}
|
|
188185
|
+
return message;
|
|
188186
|
+
};
|
|
188187
|
+
|
|
188188
|
+
/**
|
|
188189
|
+
* Creates a plain object from a UserDeletionRequested message. Also converts values to other types if specified.
|
|
188190
|
+
* @function toObject
|
|
188191
|
+
* @memberof UserDeletionRequested
|
|
188192
|
+
* @static
|
|
188193
|
+
* @param {UserDeletionRequested} message UserDeletionRequested
|
|
188194
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
188195
|
+
* @returns {Object.<string,*>} Plain object
|
|
188196
|
+
*/
|
|
188197
|
+
UserDeletionRequested.toObject = function toObject(message, options) {
|
|
188198
|
+
if (!options)
|
|
188199
|
+
options = {};
|
|
188200
|
+
var object = {};
|
|
188201
|
+
if (options.defaults) {
|
|
188202
|
+
object.requester = "";
|
|
188203
|
+
if ($util.Long) {
|
|
188204
|
+
var long = new $util.Long(0, 0, true);
|
|
188205
|
+
object.timestamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
188206
|
+
} else
|
|
188207
|
+
object.timestamp = options.longs === String ? "0" : 0;
|
|
188208
|
+
object.deleteReason = options.enums === String ? "UNKNOWN_REASON" : 0;
|
|
188209
|
+
object.appClient = options.enums === String ? "USER_SERVICE_APP_CLIENT_UNKNOWN" : 0;
|
|
188210
|
+
}
|
|
188211
|
+
if (message.requester != null && message.hasOwnProperty("requester"))
|
|
188212
|
+
object.requester = message.requester;
|
|
188213
|
+
if (message.timestamp != null && message.hasOwnProperty("timestamp"))
|
|
188214
|
+
if (typeof message.timestamp === "number")
|
|
188215
|
+
object.timestamp = options.longs === String ? String(message.timestamp) : message.timestamp;
|
|
188216
|
+
else
|
|
188217
|
+
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;
|
|
188218
|
+
if (message.deleteReason != null && message.hasOwnProperty("deleteReason"))
|
|
188219
|
+
object.deleteReason = options.enums === String ? $root.userdomain.users.UserDeleteReason[message.deleteReason] : message.deleteReason;
|
|
188220
|
+
if (message.appClient != null && message.hasOwnProperty("appClient"))
|
|
188221
|
+
object.appClient = options.enums === String ? $root.UserServiceAppClient[message.appClient] : message.appClient;
|
|
188222
|
+
return object;
|
|
188223
|
+
};
|
|
188224
|
+
|
|
188225
|
+
/**
|
|
188226
|
+
* Converts this UserDeletionRequested to JSON.
|
|
188227
|
+
* @function toJSON
|
|
188228
|
+
* @memberof UserDeletionRequested
|
|
188229
|
+
* @instance
|
|
188230
|
+
* @returns {Object.<string,*>} JSON object
|
|
188231
|
+
*/
|
|
188232
|
+
UserDeletionRequested.prototype.toJSON = function toJSON() {
|
|
188233
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
188234
|
+
};
|
|
188235
|
+
|
|
188236
|
+
return UserDeletionRequested;
|
|
188237
|
+
})();
|
|
188238
|
+
|
|
188239
|
+
$root.UserDeletionRevoked = (function() {
|
|
188240
|
+
|
|
188241
|
+
/**
|
|
188242
|
+
* Properties of a UserDeletionRevoked.
|
|
188243
|
+
* @name IUserDeletionRevoked
|
|
188244
|
+
* @interface IUserDeletionRevoked
|
|
188245
|
+
* @property {string|null} [hsUserId] UserDeletionRevoked hsUserId
|
|
188246
|
+
* @property {number|Long|null} [timestamp] UserDeletionRevoked timestamp
|
|
188247
|
+
*/
|
|
188248
|
+
|
|
188249
|
+
/**
|
|
188250
|
+
* Constructs a new UserDeletionRevoked.
|
|
188251
|
+
* @name UserDeletionRevoked
|
|
188252
|
+
* @classdesc Sent when an administrative user revokes the deletion of a user account.
|
|
188253
|
+
*
|
|
188254
|
+
* Ex: If a user has outstanding balances on their account, the deletion request will be revoked
|
|
188255
|
+
* if the issue is not resolved within 15 days.
|
|
188256
|
+
* @implements IUserDeletionRevoked
|
|
188257
|
+
* @constructor
|
|
188258
|
+
* @param {IUserDeletionRevoked=} [properties] Properties to set
|
|
188259
|
+
*/
|
|
188260
|
+
function UserDeletionRevoked(properties) {
|
|
188261
|
+
if (properties)
|
|
188262
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
188263
|
+
if (properties[keys[i]] != null)
|
|
188264
|
+
this[keys[i]] = properties[keys[i]];
|
|
188265
|
+
}
|
|
188266
|
+
|
|
188267
|
+
/**
|
|
188268
|
+
* UserDeletionRevoked hsUserId.
|
|
188269
|
+
* @member {string} hsUserId
|
|
188270
|
+
* @memberof UserDeletionRevoked
|
|
188271
|
+
* @instance
|
|
188272
|
+
*/
|
|
188273
|
+
UserDeletionRevoked.prototype.hsUserId = "";
|
|
188274
|
+
|
|
188275
|
+
/**
|
|
188276
|
+
* UserDeletionRevoked timestamp.
|
|
188277
|
+
* @member {number|Long} timestamp
|
|
188278
|
+
* @memberof UserDeletionRevoked
|
|
188279
|
+
* @instance
|
|
188280
|
+
*/
|
|
188281
|
+
UserDeletionRevoked.prototype.timestamp = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
188282
|
+
|
|
188283
|
+
/**
|
|
188284
|
+
* Creates a new UserDeletionRevoked instance using the specified properties.
|
|
188285
|
+
* @function create
|
|
188286
|
+
* @memberof UserDeletionRevoked
|
|
188287
|
+
* @static
|
|
188288
|
+
* @param {IUserDeletionRevoked=} [properties] Properties to set
|
|
188289
|
+
* @returns {UserDeletionRevoked} UserDeletionRevoked instance
|
|
188290
|
+
*/
|
|
188291
|
+
UserDeletionRevoked.create = function create(properties) {
|
|
188292
|
+
return new UserDeletionRevoked(properties);
|
|
188293
|
+
};
|
|
188294
|
+
|
|
188295
|
+
/**
|
|
188296
|
+
* Encodes the specified UserDeletionRevoked message. Does not implicitly {@link UserDeletionRevoked.verify|verify} messages.
|
|
188297
|
+
* @function encode
|
|
188298
|
+
* @memberof UserDeletionRevoked
|
|
188299
|
+
* @static
|
|
188300
|
+
* @param {IUserDeletionRevoked} message UserDeletionRevoked message or plain object to encode
|
|
188301
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
188302
|
+
* @returns {$protobuf.Writer} Writer
|
|
188303
|
+
*/
|
|
188304
|
+
UserDeletionRevoked.encode = function encode(message, writer) {
|
|
188305
|
+
if (!writer)
|
|
188306
|
+
writer = $Writer.create();
|
|
188307
|
+
if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
|
|
188308
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.hsUserId);
|
|
188309
|
+
if (message.timestamp != null && message.hasOwnProperty("timestamp"))
|
|
188310
|
+
writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.timestamp);
|
|
188311
|
+
return writer;
|
|
188312
|
+
};
|
|
188313
|
+
|
|
188314
|
+
/**
|
|
188315
|
+
* Encodes the specified UserDeletionRevoked message, length delimited. Does not implicitly {@link UserDeletionRevoked.verify|verify} messages.
|
|
188316
|
+
* @function encodeDelimited
|
|
188317
|
+
* @memberof UserDeletionRevoked
|
|
188318
|
+
* @static
|
|
188319
|
+
* @param {IUserDeletionRevoked} message UserDeletionRevoked message or plain object to encode
|
|
188320
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
188321
|
+
* @returns {$protobuf.Writer} Writer
|
|
188322
|
+
*/
|
|
188323
|
+
UserDeletionRevoked.encodeDelimited = function encodeDelimited(message, writer) {
|
|
188324
|
+
return this.encode(message, writer).ldelim();
|
|
188325
|
+
};
|
|
188326
|
+
|
|
188327
|
+
/**
|
|
188328
|
+
* Decodes a UserDeletionRevoked message from the specified reader or buffer.
|
|
188329
|
+
* @function decode
|
|
188330
|
+
* @memberof UserDeletionRevoked
|
|
188331
|
+
* @static
|
|
188332
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
188333
|
+
* @param {number} [length] Message length if known beforehand
|
|
188334
|
+
* @returns {UserDeletionRevoked} UserDeletionRevoked
|
|
188335
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
188336
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
188337
|
+
*/
|
|
188338
|
+
UserDeletionRevoked.decode = function decode(reader, length) {
|
|
188339
|
+
if (!(reader instanceof $Reader))
|
|
188340
|
+
reader = $Reader.create(reader);
|
|
188341
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.UserDeletionRevoked();
|
|
188342
|
+
while (reader.pos < end) {
|
|
188343
|
+
var tag = reader.uint32();
|
|
188344
|
+
switch (tag >>> 3) {
|
|
188345
|
+
case 1:
|
|
188346
|
+
message.hsUserId = reader.string();
|
|
188347
|
+
break;
|
|
188348
|
+
case 2:
|
|
188349
|
+
message.timestamp = reader.uint64();
|
|
188350
|
+
break;
|
|
188351
|
+
default:
|
|
188352
|
+
reader.skipType(tag & 7);
|
|
188353
|
+
break;
|
|
188354
|
+
}
|
|
188355
|
+
}
|
|
188356
|
+
return message;
|
|
188357
|
+
};
|
|
188358
|
+
|
|
188359
|
+
/**
|
|
188360
|
+
* Decodes a UserDeletionRevoked message from the specified reader or buffer, length delimited.
|
|
188361
|
+
* @function decodeDelimited
|
|
188362
|
+
* @memberof UserDeletionRevoked
|
|
188363
|
+
* @static
|
|
188364
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
188365
|
+
* @returns {UserDeletionRevoked} UserDeletionRevoked
|
|
188366
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
188367
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
188368
|
+
*/
|
|
188369
|
+
UserDeletionRevoked.decodeDelimited = function decodeDelimited(reader) {
|
|
188370
|
+
if (!(reader instanceof $Reader))
|
|
188371
|
+
reader = new $Reader(reader);
|
|
188372
|
+
return this.decode(reader, reader.uint32());
|
|
188373
|
+
};
|
|
188374
|
+
|
|
188375
|
+
/**
|
|
188376
|
+
* Verifies a UserDeletionRevoked message.
|
|
188377
|
+
* @function verify
|
|
188378
|
+
* @memberof UserDeletionRevoked
|
|
188379
|
+
* @static
|
|
188380
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
188381
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
188382
|
+
*/
|
|
188383
|
+
UserDeletionRevoked.verify = function verify(message) {
|
|
188384
|
+
if (typeof message !== "object" || message === null)
|
|
188385
|
+
return "object expected";
|
|
188386
|
+
if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
|
|
188387
|
+
if (!$util.isString(message.hsUserId))
|
|
188388
|
+
return "hsUserId: string expected";
|
|
188389
|
+
if (message.timestamp != null && message.hasOwnProperty("timestamp"))
|
|
188390
|
+
if (!$util.isInteger(message.timestamp) && !(message.timestamp && $util.isInteger(message.timestamp.low) && $util.isInteger(message.timestamp.high)))
|
|
188391
|
+
return "timestamp: integer|Long expected";
|
|
188392
|
+
return null;
|
|
188393
|
+
};
|
|
188394
|
+
|
|
188395
|
+
/**
|
|
188396
|
+
* Creates a UserDeletionRevoked message from a plain object. Also converts values to their respective internal types.
|
|
188397
|
+
* @function fromObject
|
|
188398
|
+
* @memberof UserDeletionRevoked
|
|
188399
|
+
* @static
|
|
188400
|
+
* @param {Object.<string,*>} object Plain object
|
|
188401
|
+
* @returns {UserDeletionRevoked} UserDeletionRevoked
|
|
188402
|
+
*/
|
|
188403
|
+
UserDeletionRevoked.fromObject = function fromObject(object) {
|
|
188404
|
+
if (object instanceof $root.UserDeletionRevoked)
|
|
188405
|
+
return object;
|
|
188406
|
+
var message = new $root.UserDeletionRevoked();
|
|
188407
|
+
if (object.hsUserId != null)
|
|
188408
|
+
message.hsUserId = String(object.hsUserId);
|
|
188409
|
+
if (object.timestamp != null)
|
|
188410
|
+
if ($util.Long)
|
|
188411
|
+
(message.timestamp = $util.Long.fromValue(object.timestamp)).unsigned = true;
|
|
188412
|
+
else if (typeof object.timestamp === "string")
|
|
188413
|
+
message.timestamp = parseInt(object.timestamp, 10);
|
|
188414
|
+
else if (typeof object.timestamp === "number")
|
|
188415
|
+
message.timestamp = object.timestamp;
|
|
188416
|
+
else if (typeof object.timestamp === "object")
|
|
188417
|
+
message.timestamp = new $util.LongBits(object.timestamp.low >>> 0, object.timestamp.high >>> 0).toNumber(true);
|
|
188418
|
+
return message;
|
|
188419
|
+
};
|
|
188420
|
+
|
|
188421
|
+
/**
|
|
188422
|
+
* Creates a plain object from a UserDeletionRevoked message. Also converts values to other types if specified.
|
|
188423
|
+
* @function toObject
|
|
188424
|
+
* @memberof UserDeletionRevoked
|
|
188425
|
+
* @static
|
|
188426
|
+
* @param {UserDeletionRevoked} message UserDeletionRevoked
|
|
188427
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
188428
|
+
* @returns {Object.<string,*>} Plain object
|
|
188429
|
+
*/
|
|
188430
|
+
UserDeletionRevoked.toObject = function toObject(message, options) {
|
|
188431
|
+
if (!options)
|
|
188432
|
+
options = {};
|
|
188433
|
+
var object = {};
|
|
188434
|
+
if (options.defaults) {
|
|
188435
|
+
object.hsUserId = "";
|
|
188436
|
+
if ($util.Long) {
|
|
188437
|
+
var long = new $util.Long(0, 0, true);
|
|
188438
|
+
object.timestamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
188439
|
+
} else
|
|
188440
|
+
object.timestamp = options.longs === String ? "0" : 0;
|
|
188441
|
+
}
|
|
188442
|
+
if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
|
|
188443
|
+
object.hsUserId = message.hsUserId;
|
|
188444
|
+
if (message.timestamp != null && message.hasOwnProperty("timestamp"))
|
|
188445
|
+
if (typeof message.timestamp === "number")
|
|
188446
|
+
object.timestamp = options.longs === String ? String(message.timestamp) : message.timestamp;
|
|
188447
|
+
else
|
|
188448
|
+
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;
|
|
188449
|
+
return object;
|
|
188450
|
+
};
|
|
188451
|
+
|
|
188452
|
+
/**
|
|
188453
|
+
* Converts this UserDeletionRevoked to JSON.
|
|
188454
|
+
* @function toJSON
|
|
188455
|
+
* @memberof UserDeletionRevoked
|
|
188456
|
+
* @instance
|
|
188457
|
+
* @returns {Object.<string,*>} JSON object
|
|
188458
|
+
*/
|
|
188459
|
+
UserDeletionRevoked.prototype.toJSON = function toJSON() {
|
|
188460
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
188461
|
+
};
|
|
188462
|
+
|
|
188463
|
+
return UserDeletionRevoked;
|
|
188464
|
+
})();
|
|
188465
|
+
|
|
188466
|
+
/**
|
|
188467
|
+
* User Deletion Request Origin
|
|
188468
|
+
*
|
|
188469
|
+
* A request from the compliance teams to provide the origin of the user deletion request
|
|
188470
|
+
* @name UserServiceAppClient
|
|
188471
|
+
* @enum {string}
|
|
188472
|
+
* @property {number} USER_SERVICE_APP_CLIENT_UNKNOWN=0 USER_SERVICE_APP_CLIENT_UNKNOWN value
|
|
188473
|
+
* @property {number} USER_SERVICE_APP_CLIENT_HEADSPACE_APP=1 USER_SERVICE_APP_CLIENT_HEADSPACE_APP value
|
|
188474
|
+
* @property {number} USER_SERVICE_APP_CLIENT_HEADSPACE_CARE_APP=2 USER_SERVICE_APP_CLIENT_HEADSPACE_CARE_APP value
|
|
188475
|
+
* @property {number} USER_SERVICE_APP_CLIENT_CROCPIT=3 USER_SERVICE_APP_CLIENT_CROCPIT value
|
|
188476
|
+
*/
|
|
188477
|
+
$root.UserServiceAppClient = (function() {
|
|
188478
|
+
var valuesById = {}, values = Object.create(valuesById);
|
|
188479
|
+
values[valuesById[0] = "USER_SERVICE_APP_CLIENT_UNKNOWN"] = 0;
|
|
188480
|
+
values[valuesById[1] = "USER_SERVICE_APP_CLIENT_HEADSPACE_APP"] = 1;
|
|
188481
|
+
values[valuesById[2] = "USER_SERVICE_APP_CLIENT_HEADSPACE_CARE_APP"] = 2;
|
|
188482
|
+
values[valuesById[3] = "USER_SERVICE_APP_CLIENT_CROCPIT"] = 3;
|
|
188483
|
+
return values;
|
|
188484
|
+
})();
|
|
188485
|
+
|
|
187860
188486
|
$root.VirginPulseAccountLinked = (function() {
|
|
187861
188487
|
|
|
187862
188488
|
/**
|
package/package.json
CHANGED