onehook-api-client 1.0.43 → 1.0.44
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/README.md +0 -147
- package/dist-cjs/events/catalog.js +141 -0
- package/dist-cjs/events/details.js +129 -0
- package/dist-cjs/events/index.js +5 -0
- package/dist-cjs/telemetry/index.js +59 -3
- package/dist-es/events/catalog.js +137 -0
- package/dist-es/events/details.js +126 -0
- package/dist-es/events/index.js +2 -0
- package/dist-es/telemetry/index.js +59 -3
- package/dist-types/events/catalog.d.ts +145 -0
- package/dist-types/events/details.d.ts +734 -0
- package/dist-types/events/index.d.ts +2 -0
- package/dist-types/graphql/types.d.ts +52 -4
- package/dist-types/models/models_0.d.ts +496 -496
- package/dist-types/telemetry/index.d.ts +30 -2
- package/manifest/ApiManifest.kt +135 -0
- package/manifest/ApiManifest.swift +137 -0
- package/manifest/api-manifest.json +816 -0
- package/openapi/OneHookService.openapi.json +19202 -0
- package/package.json +12 -2
- package/telemetry/TELEMETRY_CONTRACT.txt +35 -0
- package/telemetry/TelemetryCatalog.kt +33 -5
- package/telemetry/TelemetryCatalog.swift +61 -5
- package/telemetry/telemetry-catalog.json +505 -3
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.isUiElementId = exports.TELEMETRY_EXEMPT_CATEGORIES = exports.uiElementsForPlatform = exports.UI_ELEMENTS = exports.UiElement = exports.ReportEvent = exports.ReportSource = exports.ReportCategory = exports.HookedStateAction = exports.NotificationChannel = exports.NotificationType = exports.CardVariant = exports.SafetyAction = exports.LikeTargetType = exports.ProfileSection = exports.MediaType = exports.SwipeDirection = exports.UiElementKind = exports.UiAction = exports.TabScreen = exports.ViewableScreen = exports.Screen = exports.Platform = exports.SignalType = exports.TELEMETRY_CATALOG_HASH = exports.TELEMETRY_CATALOG_VERSION = void 0;
|
|
4
|
-
exports.TELEMETRY_CATALOG_VERSION = "1.
|
|
5
|
-
exports.TELEMETRY_CATALOG_HASH = "
|
|
4
|
+
exports.TELEMETRY_CATALOG_VERSION = "1.24.0";
|
|
5
|
+
exports.TELEMETRY_CATALOG_HASH = "139c2761335ed6ce";
|
|
6
6
|
exports.SignalType = {
|
|
7
7
|
SCREEN_VIEW: "screen_view",
|
|
8
8
|
UI_INTERACTION: "ui_interaction",
|
|
@@ -306,6 +306,32 @@ exports.UiElement = {
|
|
|
306
306
|
CHAT_VOICE_RECORD_STOP: "chat.voice_record_stop",
|
|
307
307
|
CHAT_VOICE_RECORD_CANCEL: "chat.voice_record_cancel",
|
|
308
308
|
CHAT_VOICE_SEND: "chat.voice_send",
|
|
309
|
+
CHAT_VOICE_RECORD_LOCK: "chat.voice_record_lock",
|
|
310
|
+
CHAT_VOICE_PREVIEW_PLAY: "chat.voice_preview_play",
|
|
311
|
+
CHAT_AUDIO_SPEED: "chat.audio_speed",
|
|
312
|
+
CHAT_AUDIO_SCRUB: "chat.audio_scrub",
|
|
313
|
+
CHAT_MESSAGE_REPLY: "chat.message_reply",
|
|
314
|
+
CHAT_REPLY_CANCEL: "chat.reply_cancel",
|
|
315
|
+
CHAT_REPLY_JUMP: "chat.reply_jump",
|
|
316
|
+
CHAT_MESSAGE_REACT: "chat.message_react",
|
|
317
|
+
CHAT_REACTION_PICKER_OPEN: "chat.reaction_picker_open",
|
|
318
|
+
CHAT_MESSAGE_ASK_MR_ONEHOOK: "chat.message_ask_mr_onehook",
|
|
319
|
+
CHAT_REACTION_PICKER_CATEGORY: "chat.reaction_picker_category",
|
|
320
|
+
CHAT_SELECT_OPEN: "chat.select_open",
|
|
321
|
+
CHAT_SELECT_TOGGLE: "chat.select_toggle",
|
|
322
|
+
CHAT_SELECT_CANCEL: "chat.select_cancel",
|
|
323
|
+
CHAT_SELECT_ASK_MR_ONEHOOK: "chat.select_ask_mr_onehook",
|
|
324
|
+
CHAT_SELECT_COPY: "chat.select_copy",
|
|
325
|
+
CHAT_LOCATION_SHARE: "chat.location_share",
|
|
326
|
+
CHAT_LIVE_LOCATION_DURATION: "chat.live_location_duration",
|
|
327
|
+
CHAT_LIVE_LOCATION_STOP: "chat.live_location_stop",
|
|
328
|
+
CHAT_LOCATION_OPEN: "chat.location_open",
|
|
329
|
+
CHAT_LOCATION_DIRECTIONS: "chat.location_directions",
|
|
330
|
+
CHAT_CONTACT_OPEN: "chat.contact_open",
|
|
331
|
+
CHAT_MESSAGE_COPY: "chat.message_copy",
|
|
332
|
+
CHAT_MESSAGE_INFO: "chat.message_info",
|
|
333
|
+
CHAT_MESSAGE_RETRY: "chat.message_retry",
|
|
334
|
+
CHAT_JUMP_TO_LATEST: "chat.jump_to_latest",
|
|
309
335
|
CHAT_CONVERSATION_SWITCH: "chat.conversation_switch",
|
|
310
336
|
CHAT_CONVERSATION_SORT: "chat.conversation_sort",
|
|
311
337
|
CHAT_CONVERSATION_SORT_OPEN: "chat.conversation_sort_open",
|
|
@@ -332,6 +358,8 @@ exports.UiElement = {
|
|
|
332
358
|
CHAT_CALL_HISTORY_OPEN: "chat.call_history_open",
|
|
333
359
|
CALL_ACCEPT: "call.accept",
|
|
334
360
|
CALL_DECLINE: "call.decline",
|
|
361
|
+
CALL_VIDEO_SWAP: "call.video_swap",
|
|
362
|
+
CALL_CONTROLS_TOGGLE: "call.controls_toggle",
|
|
335
363
|
CALL_END: "call.end",
|
|
336
364
|
CALL_MUTE: "call.mute",
|
|
337
365
|
CALL_CAMERA: "call.camera",
|
|
@@ -583,12 +611,38 @@ exports.UI_ELEMENTS = {
|
|
|
583
611
|
"likes_you.close": { screen: "LIKES_YOU", kind: "button", actions: ["tap", "dismiss"], values: null, platforms: ["ios", "android"] },
|
|
584
612
|
"chat.send_button": { screen: "CHAT", kind: "button", actions: ["submit"], values: null, platforms: ["web", "ios", "android"] },
|
|
585
613
|
"chat.attach_button": { screen: "CHAT", kind: "button", actions: ["tap", "dismiss"], values: null, platforms: ["web", "ios", "android"] },
|
|
586
|
-
"chat.attach_option": { screen: "CHAT", kind: "menu_item", actions: ["tap"], values: ["photo_video", "camera", "file", "voice"], platforms: ["web", "ios", "android"] },
|
|
614
|
+
"chat.attach_option": { screen: "CHAT", kind: "menu_item", actions: ["tap"], values: ["photo_video", "camera", "file", "voice", "location", "contact"], platforms: ["web", "ios", "android"] },
|
|
587
615
|
"chat.capture_option": { screen: "CHAT", kind: "menu_item", actions: ["tap"], values: ["photo", "video"], platforms: ["android"] },
|
|
588
616
|
"chat.voice_record_start": { screen: "CHAT", kind: "button", actions: ["tap", "long_press"], values: null, platforms: ["web", "ios", "android"] },
|
|
589
617
|
"chat.voice_record_stop": { screen: "CHAT", kind: "button", actions: ["tap"], values: null, platforms: ["ios", "android"] },
|
|
590
618
|
"chat.voice_record_cancel": { screen: "CHAT", kind: "button", actions: ["tap"], values: null, platforms: ["web", "ios", "android"] },
|
|
591
619
|
"chat.voice_send": { screen: "CHAT", kind: "button", actions: ["submit"], values: null, platforms: ["web", "ios"] },
|
|
620
|
+
"chat.voice_record_lock": { screen: "CHAT", kind: "gesture", actions: ["tap"], values: null, platforms: ["ios"] },
|
|
621
|
+
"chat.voice_preview_play": { screen: "CHAT", kind: "toggle", actions: ["toggle"], values: ["play", "pause"], platforms: ["ios"] },
|
|
622
|
+
"chat.audio_speed": { screen: "CHAT", kind: "button", actions: ["tap"], values: ["speed_1x", "speed_1_5x", "speed_2x"], platforms: ["ios"] },
|
|
623
|
+
"chat.audio_scrub": { screen: "CHAT", kind: "gesture", actions: ["tap"], values: null, platforms: ["ios"] },
|
|
624
|
+
"chat.message_reply": { screen: "CHAT", kind: "gesture", actions: ["tap"], values: ["swipe", "menu"], platforms: ["ios"] },
|
|
625
|
+
"chat.reply_cancel": { screen: "CHAT", kind: "button", actions: ["tap"], values: null, platforms: ["ios"] },
|
|
626
|
+
"chat.reply_jump": { screen: "CHAT", kind: "button", actions: ["tap"], values: null, platforms: ["ios"] },
|
|
627
|
+
"chat.message_react": { screen: "CHAT", kind: "menu_item", actions: ["tap"], values: ["add", "clear"], platforms: ["ios"] },
|
|
628
|
+
"chat.reaction_picker_open": { screen: "CHAT", kind: "button", actions: ["tap", "dismiss"], values: null, platforms: ["ios"] },
|
|
629
|
+
"chat.message_ask_mr_onehook": { screen: "CHAT", kind: "menu_item", actions: ["tap"], values: null, platforms: ["ios"] },
|
|
630
|
+
"chat.reaction_picker_category": { screen: "CHAT", kind: "tab", actions: ["select"], values: ["frequent", "smileys_people", "animals_nature", "food_drink", "activity", "travel_places", "objects", "symbols", "flags"], platforms: ["ios"] },
|
|
631
|
+
"chat.select_open": { screen: "CHAT", kind: "button", actions: ["tap"], values: ["header", "menu"], platforms: ["ios"] },
|
|
632
|
+
"chat.select_toggle": { screen: "CHAT", kind: "list_item", actions: ["tap"], values: ["selected", "deselected"], platforms: ["ios"] },
|
|
633
|
+
"chat.select_cancel": { screen: "CHAT", kind: "button", actions: ["tap"], values: null, platforms: ["ios"] },
|
|
634
|
+
"chat.select_ask_mr_onehook": { screen: "CHAT", kind: "button", actions: ["tap"], values: null, platforms: ["ios"] },
|
|
635
|
+
"chat.select_copy": { screen: "CHAT", kind: "button", actions: ["tap"], values: null, platforms: ["ios"] },
|
|
636
|
+
"chat.location_share": { screen: "CHAT", kind: "button", actions: ["tap"], values: ["current", "live"], platforms: ["web", "ios", "android"] },
|
|
637
|
+
"chat.live_location_duration": { screen: "CHAT", kind: "menu_item", actions: ["tap", "dismiss"], values: ["min_15", "hour_1", "hour_8"], platforms: ["web", "ios", "android"] },
|
|
638
|
+
"chat.live_location_stop": { screen: "CHAT", kind: "button", actions: ["tap"], values: null, platforms: ["web", "ios", "android"] },
|
|
639
|
+
"chat.location_open": { screen: "CHAT", kind: "button", actions: ["tap"], values: ["in_app", "apple_maps", "google_maps"], platforms: ["web", "ios", "android"] },
|
|
640
|
+
"chat.location_directions": { screen: "CHAT", kind: "button", actions: ["tap"], values: ["apple_maps", "google_maps"], platforms: ["web", "ios", "android"] },
|
|
641
|
+
"chat.contact_open": { screen: "CHAT", kind: "button", actions: ["tap"], values: null, platforms: ["web", "ios", "android"] },
|
|
642
|
+
"chat.message_copy": { screen: "CHAT", kind: "menu_item", actions: ["tap"], values: null, platforms: ["ios"] },
|
|
643
|
+
"chat.message_info": { screen: "CHAT", kind: "menu_item", actions: ["tap", "dismiss"], values: null, platforms: ["ios"] },
|
|
644
|
+
"chat.message_retry": { screen: "CHAT", kind: "button", actions: ["tap"], values: null, platforms: ["ios"] },
|
|
645
|
+
"chat.jump_to_latest": { screen: "CHAT", kind: "button", actions: ["tap"], values: null, platforms: ["ios"] },
|
|
592
646
|
"chat.conversation_switch": { screen: "CHAT", kind: "list_item", actions: ["tap"], values: null, platforms: ["web", "ios", "android"] },
|
|
593
647
|
"chat.conversation_sort": { screen: "CHAT", kind: "menu_item", actions: ["tap"], values: null, platforms: ["web", "ios"] },
|
|
594
648
|
"chat.conversation_sort_open": { screen: "CHAT", kind: "button", actions: ["tap", "dismiss"], values: null, platforms: ["web", "ios"] },
|
|
@@ -615,6 +669,8 @@ exports.UI_ELEMENTS = {
|
|
|
615
669
|
"chat.call_history_open": { screen: "CHAT", kind: "button", actions: ["tap", "dismiss"], values: null, platforms: ["ios"] },
|
|
616
670
|
"call.accept": { screen: "CALL", kind: "button", actions: ["tap"], values: ["audio", "video"], platforms: ["web", "ios", "android"] },
|
|
617
671
|
"call.decline": { screen: "CALL", kind: "button", actions: ["tap"], values: null, platforms: ["web", "ios", "android"] },
|
|
672
|
+
"call.video_swap": { screen: "CALL", kind: "gesture", actions: ["tap"], values: ["peer", "self"], platforms: ["web", "ios", "android"] },
|
|
673
|
+
"call.controls_toggle": { screen: "CALL", kind: "gesture", actions: ["tap"], values: ["shown", "hidden"], platforms: ["web", "ios", "android"] },
|
|
618
674
|
"call.end": { screen: "CALL", kind: "button", actions: ["tap"], values: null, platforms: ["web", "ios", "android"] },
|
|
619
675
|
"call.mute": { screen: "CALL", kind: "toggle", actions: ["toggle"], values: ["on", "off"], platforms: ["web", "ios", "android"] },
|
|
620
676
|
"call.camera": { screen: "CALL", kind: "toggle", actions: ["toggle"], values: ["on", "off"], platforms: ["web", "ios", "android"] },
|
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
export const EventSources = {
|
|
2
|
+
IDENTITY: 'identity',
|
|
3
|
+
PROFILE: 'club.onehook.profile',
|
|
4
|
+
MATCHING: 'club.onehook.matching',
|
|
5
|
+
INTELLIGENCE: 'club.onehook.intelligence',
|
|
6
|
+
CHAT: 'onehook.chat',
|
|
7
|
+
STATE: 'onehook.state',
|
|
8
|
+
PAYMENTS: 'onehook.payments',
|
|
9
|
+
ANALYTICS: 'club.onehook.analytics',
|
|
10
|
+
};
|
|
11
|
+
export const EventTypes = {
|
|
12
|
+
USER_REGISTERED: 'UserRegistered',
|
|
13
|
+
INVITE_REDEEMED: 'InviteRedeemed',
|
|
14
|
+
USERNAME_CHANGED: 'UsernameChanged',
|
|
15
|
+
PHONE_NUMBER_CHANGED: 'PhoneNumberChanged',
|
|
16
|
+
PROFILE_UPDATED: 'ProfileUpdated',
|
|
17
|
+
CHAT_PROFILE_UPDATED: 'ChatProfileUpdated',
|
|
18
|
+
MATCHING_DRAFT_EXPIRED: 'MatchingDraftExpired',
|
|
19
|
+
MATCHING_DRAFT_EXPIRING: 'MatchingDraftExpiring',
|
|
20
|
+
USER_DELETED: 'UserDeleted',
|
|
21
|
+
SWIPE_RECORDED: 'SwipeRecorded',
|
|
22
|
+
MUTUAL_MATCH: 'MutualMatch',
|
|
23
|
+
PROFILE_LIKED: 'ProfileLiked',
|
|
24
|
+
HOOK_CREATED: 'HookCreated',
|
|
25
|
+
HOOK_RELEASED: 'HookReleased',
|
|
26
|
+
CAPACITY_REACHED: 'CapacityReached',
|
|
27
|
+
MESSAGE_SENT: 'MessageSent',
|
|
28
|
+
SUBSCRIPTION_CHANGED: 'SubscriptionChanged',
|
|
29
|
+
INTELLIGENCE_SCORES_UPDATED: 'IntelligenceScoresUpdated',
|
|
30
|
+
CONVERSATION_UPDATED: 'ConversationUpdated',
|
|
31
|
+
CONVERSATION_COOLING: 'ConversationCooling',
|
|
32
|
+
PIPELINE_CANARY: 'PipelineCanary',
|
|
33
|
+
AI_CONTEXT_REQUESTED: 'AiContextRequested',
|
|
34
|
+
CALL_ENDED: 'CallEnded',
|
|
35
|
+
USER_BLOCKED: 'UserBlocked',
|
|
36
|
+
USER_UNBLOCKED: 'UserUnblocked',
|
|
37
|
+
HOOK_REQUESTED: 'HookRequested',
|
|
38
|
+
HOOK_SUSPENDED: 'HookSuspended',
|
|
39
|
+
HOOK_RESUMED: 'HookResumed',
|
|
40
|
+
MATCHING_ENABLED: 'MatchingEnabled',
|
|
41
|
+
MATCHING_OPT_OUT_STARTED: 'MatchingOptOutStarted',
|
|
42
|
+
MATCHING_DISABLED: 'MatchingDisabled',
|
|
43
|
+
MATCHING_PROFILE_ERASED: 'MatchingProfileErased',
|
|
44
|
+
MATCHING_DATA_ERASED: 'MatchingDataErased',
|
|
45
|
+
ACCOUNT_STATE_CHANGED: 'AccountStateChanged',
|
|
46
|
+
PRESERVATION_HOLD_CHANGED: 'PreservationHoldChanged',
|
|
47
|
+
MEMBER_REPORTED: 'MemberReported',
|
|
48
|
+
ENTITLEMENTS_CHANGED: 'EntitlementsChanged',
|
|
49
|
+
};
|
|
50
|
+
export const EVENT_PRODUCERS = {
|
|
51
|
+
[EventTypes.USER_REGISTERED]: EventSources.IDENTITY,
|
|
52
|
+
[EventTypes.INVITE_REDEEMED]: EventSources.IDENTITY,
|
|
53
|
+
[EventTypes.USERNAME_CHANGED]: EventSources.IDENTITY,
|
|
54
|
+
[EventTypes.PHONE_NUMBER_CHANGED]: EventSources.IDENTITY,
|
|
55
|
+
[EventTypes.PROFILE_UPDATED]: EventSources.PROFILE,
|
|
56
|
+
[EventTypes.CHAT_PROFILE_UPDATED]: EventSources.PROFILE,
|
|
57
|
+
[EventTypes.MATCHING_DRAFT_EXPIRED]: EventSources.PROFILE,
|
|
58
|
+
[EventTypes.MATCHING_DRAFT_EXPIRING]: EventSources.PROFILE,
|
|
59
|
+
[EventTypes.USER_DELETED]: EventSources.PROFILE,
|
|
60
|
+
[EventTypes.SWIPE_RECORDED]: EventSources.MATCHING,
|
|
61
|
+
[EventTypes.MUTUAL_MATCH]: EventSources.MATCHING,
|
|
62
|
+
[EventTypes.PROFILE_LIKED]: EventSources.MATCHING,
|
|
63
|
+
[EventTypes.HOOK_CREATED]: EventSources.STATE,
|
|
64
|
+
[EventTypes.HOOK_RELEASED]: EventSources.STATE,
|
|
65
|
+
[EventTypes.CAPACITY_REACHED]: EventSources.STATE,
|
|
66
|
+
[EventTypes.MESSAGE_SENT]: EventSources.CHAT,
|
|
67
|
+
[EventTypes.SUBSCRIPTION_CHANGED]: EventSources.PAYMENTS,
|
|
68
|
+
[EventTypes.INTELLIGENCE_SCORES_UPDATED]: EventSources.INTELLIGENCE,
|
|
69
|
+
[EventTypes.CONVERSATION_UPDATED]: EventSources.ANALYTICS,
|
|
70
|
+
[EventTypes.CONVERSATION_COOLING]: EventSources.ANALYTICS,
|
|
71
|
+
[EventTypes.PIPELINE_CANARY]: EventSources.ANALYTICS,
|
|
72
|
+
[EventTypes.AI_CONTEXT_REQUESTED]: EventSources.STATE,
|
|
73
|
+
[EventTypes.CALL_ENDED]: EventSources.CHAT,
|
|
74
|
+
[EventTypes.USER_BLOCKED]: EventSources.STATE,
|
|
75
|
+
[EventTypes.USER_UNBLOCKED]: EventSources.STATE,
|
|
76
|
+
[EventTypes.HOOK_REQUESTED]: EventSources.STATE,
|
|
77
|
+
[EventTypes.HOOK_SUSPENDED]: EventSources.STATE,
|
|
78
|
+
[EventTypes.HOOK_RESUMED]: EventSources.STATE,
|
|
79
|
+
[EventTypes.MATCHING_ENABLED]: EventSources.STATE,
|
|
80
|
+
[EventTypes.MATCHING_OPT_OUT_STARTED]: EventSources.STATE,
|
|
81
|
+
[EventTypes.MATCHING_DISABLED]: EventSources.STATE,
|
|
82
|
+
[EventTypes.MATCHING_PROFILE_ERASED]: EventSources.PROFILE,
|
|
83
|
+
[EventTypes.MATCHING_DATA_ERASED]: EventSources.MATCHING,
|
|
84
|
+
[EventTypes.ACCOUNT_STATE_CHANGED]: EventSources.IDENTITY,
|
|
85
|
+
[EventTypes.PRESERVATION_HOLD_CHANGED]: EventSources.IDENTITY,
|
|
86
|
+
[EventTypes.MEMBER_REPORTED]: EventSources.STATE,
|
|
87
|
+
[EventTypes.ENTITLEMENTS_CHANGED]: EventSources.STATE,
|
|
88
|
+
};
|
|
89
|
+
export const LAKE_EVENT_TYPES = [
|
|
90
|
+
EventTypes.USER_REGISTERED,
|
|
91
|
+
EventTypes.INVITE_REDEEMED,
|
|
92
|
+
EventTypes.PROFILE_UPDATED,
|
|
93
|
+
EventTypes.USER_DELETED,
|
|
94
|
+
EventTypes.MUTUAL_MATCH,
|
|
95
|
+
EventTypes.HOOK_CREATED,
|
|
96
|
+
EventTypes.HOOK_RELEASED,
|
|
97
|
+
EventTypes.MESSAGE_SENT,
|
|
98
|
+
EventTypes.SUBSCRIPTION_CHANGED,
|
|
99
|
+
EventTypes.INTELLIGENCE_SCORES_UPDATED,
|
|
100
|
+
EventTypes.PIPELINE_CANARY,
|
|
101
|
+
EventTypes.AI_CONTEXT_REQUESTED,
|
|
102
|
+
EventTypes.CALL_ENDED,
|
|
103
|
+
EventTypes.CHAT_PROFILE_UPDATED,
|
|
104
|
+
];
|
|
105
|
+
export const SOCIAL_GRAPH_EVENT_TYPES = [
|
|
106
|
+
EventTypes.INVITE_REDEEMED,
|
|
107
|
+
EventTypes.USER_REGISTERED,
|
|
108
|
+
EventTypes.MUTUAL_MATCH,
|
|
109
|
+
EventTypes.HOOK_CREATED,
|
|
110
|
+
EventTypes.MESSAGE_SENT,
|
|
111
|
+
EventTypes.USER_DELETED,
|
|
112
|
+
EventTypes.HOOK_RELEASED,
|
|
113
|
+
EventTypes.CALL_ENDED,
|
|
114
|
+
];
|
|
115
|
+
export const INTELLIGENCE_FORWARDED_EVENT_TYPES = [
|
|
116
|
+
EventTypes.SWIPE_RECORDED,
|
|
117
|
+
EventTypes.MUTUAL_MATCH,
|
|
118
|
+
EventTypes.PROFILE_UPDATED,
|
|
119
|
+
EventTypes.USER_DELETED,
|
|
120
|
+
EventTypes.CONVERSATION_UPDATED,
|
|
121
|
+
EventTypes.AI_CONTEXT_REQUESTED,
|
|
122
|
+
];
|
|
123
|
+
export const RECONCILED_EVENT_TYPES = [
|
|
124
|
+
EventTypes.MUTUAL_MATCH,
|
|
125
|
+
EventTypes.MESSAGE_SENT,
|
|
126
|
+
EventTypes.HOOK_CREATED,
|
|
127
|
+
EventTypes.SUBSCRIPTION_CHANGED,
|
|
128
|
+
];
|
|
129
|
+
export const BUSINESS_KPI_EVENT_TYPES = [
|
|
130
|
+
EventTypes.USER_REGISTERED,
|
|
131
|
+
EventTypes.MUTUAL_MATCH,
|
|
132
|
+
EventTypes.MESSAGE_SENT,
|
|
133
|
+
];
|
|
134
|
+
const KNOWN_TYPES = new Set(Object.values(EventTypes));
|
|
135
|
+
export function isKnownEventType(v) {
|
|
136
|
+
return typeof v === 'string' && KNOWN_TYPES.has(v);
|
|
137
|
+
}
|
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
export const EVENT_DETAIL_SHAPES = {
|
|
2
|
+
AccountStateChanged: "AccountStateChangedDetail",
|
|
3
|
+
AiContextRequested: "AiContextRequestedDetail",
|
|
4
|
+
CallEnded: "CallEndedDetail",
|
|
5
|
+
CapacityReached: "CapacityReachedDetail",
|
|
6
|
+
ChatProfileUpdated: "ChatProfileUpdatedDetail",
|
|
7
|
+
ConversationCooling: "ConversationCoolingDetail",
|
|
8
|
+
ConversationUpdated: "ConversationUpdatedDetail",
|
|
9
|
+
EntitlementsChanged: "EntitlementsChangedDetail",
|
|
10
|
+
HookCreated: "HookCreatedDetail",
|
|
11
|
+
HookReleased: "HookReleasedDetail",
|
|
12
|
+
HookRequested: "HookRequestedDetail",
|
|
13
|
+
HookResumed: "HookSuspensionDetail",
|
|
14
|
+
HookSuspended: "HookSuspensionDetail",
|
|
15
|
+
IntelligenceScoresUpdated: "IntelligenceScoresUpdatedDetail",
|
|
16
|
+
InviteRedeemed: "InviteRedeemedDetail",
|
|
17
|
+
MatchingDataErased: "MatchingErasedDetail",
|
|
18
|
+
MatchingDisabled: "MatchingDisabledDetail",
|
|
19
|
+
MatchingDraftExpired: "MatchingDraftExpiredDetail",
|
|
20
|
+
MatchingDraftExpiring: "MatchingDraftExpiringDetail",
|
|
21
|
+
MatchingEnabled: "MatchingEnabledDetail",
|
|
22
|
+
MatchingOptOutStarted: "MatchingOptOutStartedDetail",
|
|
23
|
+
MatchingProfileErased: "MatchingErasedDetail",
|
|
24
|
+
MemberReported: "MemberReportedDetail",
|
|
25
|
+
MessageSent: "MessageSentDetail",
|
|
26
|
+
MutualMatch: "MutualMatchDetail",
|
|
27
|
+
PhoneNumberChanged: "PhoneNumberChangedDetail",
|
|
28
|
+
PipelineCanary: "PipelineCanaryDetail",
|
|
29
|
+
PreservationHoldChanged: "PreservationHoldChangedDetail",
|
|
30
|
+
ProfileLiked: "ProfileLikedDetail",
|
|
31
|
+
ProfileUpdated: "ProfileUpdatedDetail",
|
|
32
|
+
SubscriptionChanged: "SubscriptionChangedDetail",
|
|
33
|
+
SwipeRecorded: "SwipeRecordedDetail",
|
|
34
|
+
UserBlocked: "UserBlockedDetail",
|
|
35
|
+
UserDeleted: "UserDeletedDetail",
|
|
36
|
+
UsernameChanged: "UsernameChangedDetail",
|
|
37
|
+
UserRegistered: "UserRegisteredDetail",
|
|
38
|
+
UserUnblocked: "UserUnblockedDetail",
|
|
39
|
+
};
|
|
40
|
+
export const EVENT_DETAIL_SCHEMAS = {
|
|
41
|
+
AccountStateChanged: { "version": 1, "detail": { "type": "object", "required": ["userId", "state", "reasonCode", "changedAt"], "properties": { "eventId": { "type": "string", "description": "Set by the Identity outbox on every event." }, "userId": { "type": "string", "minLength": 1, "maxLength": 128, "description": "A user, match, request or report id." }, "state": { "type": "string", "enum": ["ACTIVE", "RESTRICTED", "SUSPENDED", "BANNED"], "description": "The moderation account state a member can be in. Absent/`ACTIVE` means no restriction. Owned by Identity (sign-in and token refresh enforce it directly); Matching and the admin portal consume the `AccountStateChanged` event." }, "reasonCode": { "type": "string", "minLength": 1, "maxLength": 64, "description": "A machine-readable reason code. Never free text or PII." }, "changedAt": { "type": "integer", "minimum": 0, "description": "When the change was applied, epoch milliseconds." }, "until": { "type": "integer", "minimum": 0, "description": "When the RESTRICTED/SUSPENDED state expires, epoch milliseconds (the member is ACTIVE again once passed). Absent for ACTIVE and for the permanent BANNED state." } } } },
|
|
42
|
+
AiContextRequested: { "version": 1, "detail": { "type": "object", "required": ["schemaVersion", "matchId", "userId", "requestedAt"], "properties": { "schemaVersion": { "type": "integer", "enum": [1] }, "matchId": { "type": "string", "minLength": 1, "maxLength": 128, "description": "A user, match, request or report id." }, "userId": { "type": "string", "minLength": 1, "maxLength": 128, "description": "The member the AI acted for." }, "requestedAt": { "type": "integer", "minimum": 0, "description": "Epoch milliseconds." } } } },
|
|
43
|
+
CallEnded: { "version": 1, "detail": { "type": "object", "required": ["matchId", "callId", "callerId", "calleeId", "media", "endReason", "durationMs", "startedAt", "endedAt"], "properties": { "matchId": { "type": "string", "minLength": 1, "maxLength": 128, "description": "A user, match, request or report id." }, "callId": { "type": "string", "minLength": 1, "maxLength": 128, "description": "A user, match, request or report id." }, "callerId": { "type": "string", "minLength": 1, "maxLength": 128, "description": "A user, match, request or report id." }, "calleeId": { "type": "string", "minLength": 1, "maxLength": 128, "description": "A user, match, request or report id." }, "media": { "type": "string", "enum": ["AUDIO", "VIDEO"] }, "endReason": { "type": "string", "description": "HANGUP | DECLINED | CANCELLED | MISSED | BUSY | ANSWERED_ELSEWHERE | FAILED | DROPPED | UNMATCHED | MAX_DURATION." }, "durationMs": { "type": "integer", "minimum": 0, "description": "Connected duration in milliseconds; 0 if the call never connected." }, "startedAt": { "type": "integer", "minimum": 0, "description": "When the call started ringing, epoch milliseconds." }, "endedAt": { "type": "integer", "minimum": 0, "description": "When the call ended, epoch milliseconds." } } } },
|
|
44
|
+
CapacityReached: { "version": 1, "detail": { "type": "object", "required": ["userId", "stateVersion"], "properties": { "userId": { "type": "string", "minLength": 1, "maxLength": 128, "description": "A user, match, request or report id." }, "stateVersion": { "type": "integer", "minimum": 0, "description": "A member's State item version. Consumers apply capacity last-writer-wins on it." }, "matchId": { "type": "string", "minLength": 1, "maxLength": 128, "description": "The hook that filled the last slot. Absent when a downgrade or a kept selection reached capacity." }, "reachedAt": { "type": "integer", "minimum": 0, "description": "When the slot filled, epoch seconds. State clears the member's pending requests created at or before this time. Absent on events from before it was recorded." } } } },
|
|
45
|
+
ChatProfileUpdated: { "version": 1, "detail": { "type": "object", "required": ["userId", "updatedAt"], "properties": { "userId": { "type": "string", "minLength": 1, "maxLength": 128, "description": "A user, match, request or report id." }, "updatedAt": { "type": "integer", "minimum": 0, "description": "Epoch milliseconds." }, "writeToken": { "type": "string" }, "displayName": { "type": "string", "description": "The display name, for moderation. Never forwarded to the intelligence platform." }, "avatarKey": { "type": "string" }, "moderationStatus": { "type": "string" } } } },
|
|
46
|
+
ConversationCooling: { "version": 1, "detail": { "type": "object", "required": ["schemaVersion", "eventId", "matchId", "userId", "partnerId", "lastMessageAt", "messageCount"], "properties": { "schemaVersion": { "type": "integer", "enum": [1] }, "eventId": { "type": "string" }, "matchId": { "type": "string", "minLength": 1, "maxLength": 128, "description": "A user, match, request or report id." }, "userId": { "type": "string", "minLength": 1, "maxLength": 128, "description": "The recipient of the nudge (did not send the last message)." }, "partnerId": { "type": "string", "minLength": 1, "maxLength": 128, "description": "A user, match, request or report id." }, "lastMessageAt": { "type": "integer", "minimum": 0, "description": "When the last message was sent, epoch milliseconds." }, "messageCount": { "type": "integer", "minimum": 1 } } } },
|
|
47
|
+
ConversationUpdated: { "version": 1, "detail": { "type": "object", "required": ["schemaVersion", "eventId", "matchId", "userId", "partnerId", "occurredAt", "messageCount"], "properties": { "schemaVersion": { "type": "integer", "enum": [1] }, "eventId": { "type": "string" }, "matchId": { "type": "string", "minLength": 1, "maxLength": 128, "description": "A user, match, request or report id." }, "userId": { "type": "string", "minLength": 1, "maxLength": 128, "description": "The user who just sent a message (the actor)." }, "partnerId": { "type": "string", "minLength": 1, "maxLength": 128, "description": "A user, match, request or report id." }, "occurredAt": { "type": "integer", "minimum": 0, "description": "When the message was sent, epoch milliseconds." }, "messageCount": { "type": "integer", "minimum": 1 }, "replyLatencyMs": { "type": "integer", "minimum": 0, "description": "Set when this message answered the partner's previous message." }, "initiatedByUser": { "type": "boolean" }, "responded": { "type": "boolean" } } } },
|
|
48
|
+
EntitlementsChanged: { "version": 1, "detail": { "type": "object", "required": ["userId", "subscriptionTier", "effectiveAt"], "properties": { "userId": { "type": "string", "minLength": 1, "maxLength": 128, "description": "A user, match, request or report id." }, "subscriptionTier": { "type": "string", "description": "The new tier's wire value (club.onehook.common#SubscriptionTier). A String on purpose: consumers resolve it with SubscriptionTier.resolve, which reports an unknown value instead of dropping it." }, "effectiveAt": { "type": "integer", "minimum": 0, "description": "The source event's time, epoch seconds." }, "stateVersion": { "type": "integer", "minimum": 0, "description": "The member's State item version after the change. Absent when only the tier changed." }, "discoveryPaused": { "type": "boolean", "description": "True when the member holds as many hooks as their new capacity. Sent with `stateVersion`." } } } },
|
|
49
|
+
HookCreated: { "version": 1, "detail": { "type": "object", "required": ["matchId", "userA", "userB"], "properties": { "matchId": { "type": "string", "minLength": 1, "maxLength": 128, "description": "A user, match, request or report id." }, "userA": { "type": "string", "minLength": 1, "maxLength": 128, "description": "A user, match, request or report id." }, "userB": { "type": "string", "minLength": 1, "maxLength": 128, "description": "A user, match, request or report id." }, "origin": { "type": "string", "enum": ["DISCOVERY", "REQUEST"], "description": "Absent only on events from before origins were recorded." }, "hookedAt": { "type": "integer", "minimum": 0, "description": "Epoch seconds. Absent on events from before it was recorded." }, "participants": { "type": "array", "items": { "type": "object", "required": ["userId", "discoveryPaused", "stateVersion"], "properties": { "userId": { "type": "string", "minLength": 1, "maxLength": 128, "description": "A user, match, request or report id." }, "discoveryPaused": { "type": "boolean", "description": "True when the member now holds as many hooks as their capacity." }, "stateVersion": { "type": "integer", "minimum": 0, "description": "A member's State item version. Consumers apply capacity last-writer-wins on it." } } }, "description": "Absent on events from before capacity was published." } } } },
|
|
50
|
+
HookReleased: { "version": 1, "detail": { "type": "object", "required": ["matchId"], "properties": { "matchId": { "type": "string", "minLength": 1, "maxLength": 128, "description": "A user, match, request or report id." }, "reason": { "type": "string", "description": "A free-text unhook reason from the client." }, "userA": { "type": "string", "minLength": 1, "maxLength": 128, "description": "A user, match, request or report id." }, "userB": { "type": "string", "minLength": 1, "maxLength": 128, "description": "A user, match, request or report id." }, "origin": { "type": "string", "enum": ["DISCOVERY", "REQUEST"], "description": "How a hook was formed." }, "hookedAt": { "type": "integer", "minimum": 0, "description": "Epoch seconds." }, "releasedAt": { "type": "integer", "minimum": 0, "description": "Epoch seconds." }, "endReason": { "type": "string", "enum": ["UNHOOK", "BLOCKED", "ACCOUNT_DELETED", "TIER_DOWNGRADE"], "description": "Why a hook ended." }, "endedBy": { "type": "string", "minLength": 1, "maxLength": 128, "description": "The member who ended it; absent for system releases." }, "participants": { "type": "array", "items": { "type": "object", "required": ["userId", "discoveryPaused", "stateVersion"], "properties": { "userId": { "type": "string", "minLength": 1, "maxLength": 128, "description": "A user, match, request or report id." }, "discoveryPaused": { "type": "boolean", "description": "True when the member now holds as many hooks as their capacity." }, "stateVersion": { "type": "integer", "minimum": 0, "description": "A member's State item version. Consumers apply capacity last-writer-wins on it." } } }, "description": "Each participant's capacity after the change." } } } },
|
|
51
|
+
HookRequested: { "version": 1, "detail": { "type": "object", "required": ["requestId", "fromUserId", "toUserId", "createdAt"], "properties": { "requestId": { "type": "string", "minLength": 1, "maxLength": 128, "description": "A user, match, request or report id." }, "fromUserId": { "type": "string", "minLength": 1, "maxLength": 128, "description": "A user, match, request or report id." }, "toUserId": { "type": "string", "minLength": 1, "maxLength": 128, "description": "A user, match, request or report id." }, "createdAt": { "type": "integer", "minimum": 0, "description": "Epoch seconds." } } } },
|
|
52
|
+
HookResumed: { "version": 1, "detail": { "type": "object", "required": ["matchId", "userA", "userB", "suspendedBy", "at"], "properties": { "matchId": { "type": "string", "minLength": 1, "maxLength": 128, "description": "A user, match, request or report id." }, "userA": { "type": "string", "minLength": 1, "maxLength": 128, "description": "A user, match, request or report id." }, "userB": { "type": "string", "minLength": 1, "maxLength": 128, "description": "A user, match, request or report id." }, "suspendedBy": { "type": "array", "items": { "type": "string", "minLength": 1, "maxLength": 128, "description": "A user, match, request or report id." }, "maxItems": 2, "description": "Members still over capacity for this hook (empty on `HookResumed`)." }, "at": { "type": "integer", "minimum": 0, "description": "Epoch seconds." } } } },
|
|
53
|
+
HookSuspended: { "version": 1, "detail": { "type": "object", "required": ["matchId", "userA", "userB", "suspendedBy", "at"], "properties": { "matchId": { "type": "string", "minLength": 1, "maxLength": 128, "description": "A user, match, request or report id." }, "userA": { "type": "string", "minLength": 1, "maxLength": 128, "description": "A user, match, request or report id." }, "userB": { "type": "string", "minLength": 1, "maxLength": 128, "description": "A user, match, request or report id." }, "suspendedBy": { "type": "array", "items": { "type": "string", "minLength": 1, "maxLength": 128, "description": "A user, match, request or report id." }, "maxItems": 2, "description": "Members still over capacity for this hook (empty on `HookResumed`)." }, "at": { "type": "integer", "minimum": 0, "description": "Epoch seconds." } } } },
|
|
54
|
+
IntelligenceScoresUpdated: { "version": 1, "detail": { "type": "object", "required": ["schemaVersion", "eventId", "userId", "computedAt", "scores"], "properties": { "schemaVersion": { "type": "integer", "enum": [1] }, "eventType": { "type": "string", "description": "Always `IntelligenceScoresUpdated`." }, "eventId": { "type": "string", "minLength": 1, "maxLength": 300 }, "userId": { "type": "string", "minLength": 1, "maxLength": 128, "description": "The target: each score says how interested a viewer is in this user." }, "computedAt": { "type": "integer", "minimum": 1, "description": "Epoch seconds, never 0." }, "scores": { "type": "array", "items": { "type": "object", "required": ["viewerId", "score"], "properties": { "viewerId": { "type": "string", "minLength": 1, "maxLength": 128, "description": "A user, match, request or report id." }, "score": { "type": "number", "minimum": 0, "maximum": 1 } } }, "maxItems": 200 }, "shouldShowPaywall": { "type": "boolean" }, "injectHighProbabilityMatch": { "type": "boolean" }, "sourceEventId": { "type": "string" }, "sourceEventTimestamp": { "type": "integer", "minimum": 0, "description": "The triggering event's time; `computedAt - sourceEventTimestamp` is the data freshness." }, "sourcePublishedAt": { "type": "integer", "minimum": 0 }, "experimentId": { "type": "string" }, "variantId": { "type": "string" }, "policyVersion": { "type": "string" } } } },
|
|
55
|
+
InviteRedeemed: { "version": 1, "detail": { "type": "object", "required": ["eventId", "referrerId", "inviteCode"], "properties": { "eventId": { "type": "string" }, "referrerId": { "type": "string", "minLength": 1, "maxLength": 128, "description": "The inviter." }, "inviteCode": { "type": "string" }, "userId": { "type": "string", "minLength": 1, "maxLength": 128, "description": "The invitee. Always set since 2026-10 (additive); absent on earlier events." } } } },
|
|
56
|
+
MatchingDataErased: { "version": 1, "detail": { "type": "object", "required": ["userId", "generation"], "properties": { "userId": { "type": "string", "minLength": 1, "maxLength": 128, "description": "A user, match, request or report id." }, "generation": { "type": "integer", "minimum": 0, "description": "The matching generation. Increments on every enable; erasure confirmations name the generation they erased." } } } },
|
|
57
|
+
MatchingDisabled: { "version": 1, "detail": { "type": "object", "required": ["userId", "generation", "disabledAt"], "properties": { "userId": { "type": "string", "minLength": 1, "maxLength": 128, "description": "A user, match, request or report id." }, "generation": { "type": "integer", "minimum": 0, "description": "The matching generation. Increments on every enable; erasure confirmations name the generation they erased." }, "disabledAt": { "type": "integer", "minimum": 0, "description": "Epoch seconds." } } } },
|
|
58
|
+
MatchingDraftExpired: { "version": 1, "detail": { "type": "object", "required": ["userId", "generation", "expiredAt"], "properties": { "userId": { "type": "string", "minLength": 1, "maxLength": 128, "description": "A user, match, request or report id." }, "generation": { "type": "integer", "minimum": 0, "description": "The matching generation. Increments on every enable; erasure confirmations name the generation they erased." }, "expiredAt": { "type": "integer", "minimum": 0, "description": "Epoch seconds." } } } },
|
|
59
|
+
MatchingDraftExpiring: { "version": 1, "detail": { "type": "object", "required": ["userId", "expiresAt"], "properties": { "userId": { "type": "string", "minLength": 1, "maxLength": 128, "description": "A user, match, request or report id." }, "expiresAt": { "type": "integer", "minimum": 0, "description": "Epoch seconds." } } } },
|
|
60
|
+
MatchingEnabled: { "version": 1, "detail": { "type": "object", "required": ["userId", "generation", "enabledAt"], "properties": { "userId": { "type": "string", "minLength": 1, "maxLength": 128, "description": "A user, match, request or report id." }, "generation": { "type": "integer", "minimum": 0, "description": "The matching generation. Increments on every enable; erasure confirmations name the generation they erased." }, "enabledAt": { "type": "integer", "minimum": 0, "description": "Epoch seconds." } } } },
|
|
61
|
+
MatchingOptOutStarted: { "version": 1, "detail": { "type": "object", "required": ["userId", "generation", "requestedAt"], "properties": { "userId": { "type": "string", "minLength": 1, "maxLength": 128, "description": "A user, match, request or report id." }, "generation": { "type": "integer", "minimum": 0, "description": "The matching generation. Increments on every enable; erasure confirmations name the generation they erased." }, "requestedAt": { "type": "integer", "minimum": 0, "description": "Epoch seconds. Derived stores delete data up to this time." } } } },
|
|
62
|
+
MatchingProfileErased: { "version": 1, "detail": { "type": "object", "required": ["userId", "generation"], "properties": { "userId": { "type": "string", "minLength": 1, "maxLength": 128, "description": "A user, match, request or report id." }, "generation": { "type": "integer", "minimum": 0, "description": "The matching generation. Increments on every enable; erasure confirmations name the generation they erased." } } } },
|
|
63
|
+
MemberReported: { "version": 1, "detail": { "type": "object", "required": ["reportId", "reporterId", "reportedId", "category", "severity", "alsoBlocked", "evidenceOffered", "reportedAt"], "properties": { "reportId": { "type": "string", "minLength": 1, "maxLength": 128, "description": "UUID of the stored report." }, "reporterId": { "type": "string", "minLength": 1, "maxLength": 128, "description": "A user, match, request or report id." }, "reportedId": { "type": "string", "minLength": 1, "maxLength": 128, "description": "A user, match, request or report id." }, "category": { "type": "string", "enum": ["HARASSMENT", "THREATS_VIOLENCE", "SEXUAL_CONTENT_NONCONSENT", "MINOR_SAFETY", "SCAM_FRAUD", "FAKE_IMPERSONATION", "SPAM_PROMOTION", "HATE", "SELF_HARM_CONCERN", "OFF_PLATFORM_HARM", "OTHER"], "description": "What a report is about." }, "severity": { "type": "string", "enum": ["critical", "high", "standard"] }, "alsoBlocked": { "type": "boolean" }, "evidenceOffered": { "type": "boolean" }, "conversationId": { "type": "string", "minLength": 1, "maxLength": 128, "description": "The match or conversation the report was filed from." }, "reportedAt": { "type": "integer", "minimum": 0, "description": "Epoch milliseconds." } } } },
|
|
64
|
+
MessageSent: { "version": 1, "detail": { "type": "object", "required": ["matchId", "senderId", "timestamp"], "properties": { "matchId": { "type": "string", "minLength": 1, "maxLength": 128, "description": "A user, match, request or report id." }, "senderId": { "type": "string", "minLength": 1, "maxLength": 128, "description": "A user, match, request or report id." }, "timestamp": { "type": "integer", "minimum": 0, "description": "Epoch milliseconds." } } } },
|
|
65
|
+
MutualMatch: { "version": 1, "detail": { "type": "object", "required": ["matchId", "userA", "userB"], "properties": { "matchId": { "type": "string", "minLength": 1, "maxLength": 128, "description": "A user, match, request or report id." }, "userA": { "type": "string", "minLength": 1, "maxLength": 128, "description": "A user, match, request or report id." }, "userB": { "type": "string", "minLength": 1, "maxLength": 128, "description": "A user, match, request or report id." } } } },
|
|
66
|
+
PhoneNumberChanged: { "version": 1, "detail": { "type": "object", "required": ["eventId", "userId", "phoneNumber"], "properties": { "eventId": { "type": "string" }, "userId": { "type": "string", "minLength": 1, "maxLength": 128, "description": "A user, match, request or report id." }, "phoneNumber": { "type": "string" }, "cognitoUsername": { "type": "string", "description": "Absent for a legacy account that has no stored Cognito username (CognitoSyncWorker skips the event)." } } } },
|
|
67
|
+
PipelineCanary: { "version": 1, "detail": { "type": "object", "required": ["schemaVersion", "eventId", "sentAt"], "properties": { "schemaVersion": { "type": "integer", "enum": [1] }, "eventId": { "type": "string" }, "sentAt": { "type": "integer", "minimum": 0, "description": "When the canary was published, epoch milliseconds." } } } },
|
|
68
|
+
PreservationHoldChanged: { "version": 1, "detail": { "type": "object", "required": ["userId", "active", "reasonCode", "changedAt"], "properties": { "eventId": { "type": "string", "description": "Set by the Identity outbox on every event." }, "userId": { "type": "string", "minLength": 1, "maxLength": 128, "description": "A user, match, request or report id." }, "active": { "type": "boolean" }, "reasonCode": { "type": "string", "minLength": 1, "maxLength": 64, "description": "A machine-readable reason code. Never free text or PII." }, "changedAt": { "type": "integer", "minimum": 0, "description": "When the change was applied, epoch milliseconds." }, "until": { "type": "integer", "minimum": 0, "description": "When the hold expires, epoch milliseconds. Absent when the hold is released." } } } },
|
|
69
|
+
ProfileLiked: { "version": 1, "detail": { "type": "object", "required": ["userId", "actorId"], "properties": { "userId": { "type": "string", "minLength": 1, "maxLength": 128, "description": "The recipient." }, "actorId": { "type": "string", "minLength": 1, "maxLength": 128, "description": "The liker (never disclosed to the recipient)." } } } },
|
|
70
|
+
ProfileUpdated: { "version": 1, "detail": { "type": "object", "required": ["schemaVersion", "eventId", "updatedAt", "profile"], "properties": { "schemaVersion": { "type": "integer", "enum": [1] }, "eventId": { "type": "string" }, "updatedAt": { "type": "integer", "minimum": 0, "description": "Epoch milliseconds." }, "writeToken": { "type": "string" }, "profile": { "type": "object", "required": ["userId"], "properties": { "userId": { "type": "string", "minLength": 1, "maxLength": 128, "description": "A user, match, request or report id." }, "displayName": { "type": "string", "description": "From the chat profile." }, "bio": { "type": "string" }, "interests": { "type": "array", "items": { "type": "string" } }, "prompts": { "type": "array", "items": { "type": "object", "required": [], "properties": { "promptId": { "type": "string" }, "answer": { "type": "string" }, "imageKey": { "type": "string" } } } }, "status": { "type": "string", "enum": ["ACTIVE"], "description": "Always ACTIVE on published events." }, "generation": { "type": "integer", "minimum": 0, "description": "The matching generation; Matching ignores events for an older generation." }, "birthDetails": { "type": "object", "required": ["date"], "properties": { "date": { "type": "string", "description": "Local birth date, `yyyy-MM-dd`." }, "provisional": { "type": "boolean", "description": "True when `date` is a placeholder for a profile created before the birth date was compulsory." }, "time": { "type": "string", "description": "Local birth time, `HH:mm`." }, "timeZone": { "type": "string", "description": "IANA time zone of the birthplace." }, "latitude": { "type": "number" }, "longitude": { "type": "number" }, "placeName": { "type": "string" } }, "description": "The chat profile's birth date plus the matching profile's optional birth time and place." } } }, "changedSections": { "type": "array", "items": { "type": "string" }, "description": "Profile sections that changed since the previous image (Matching clears passes on them)." } } } },
|
|
71
|
+
SubscriptionChanged: { "version": 1, "detail": { "type": "object", "required": ["userId", "subscriptionTier"], "properties": { "userId": { "type": "string", "minLength": 1, "maxLength": 128, "description": "A user, match, request or report id." }, "subscriptionTier": { "type": "string", "description": "The tier's wire value (club.onehook.common#SubscriptionTier). A String on purpose: Payments is an outside producer, and State resolves the value with SubscriptionTier.resolve, which reports an unknown value instead of dropping it." }, "tier": { "type": "string", "description": "Legacy alias of `subscriptionTier`; State reads it only when `subscriptionTier` is absent." }, "effectiveAt": { "type": "integer", "minimum": 0, "description": "Epoch seconds." } } } },
|
|
72
|
+
SwipeRecorded: { "version": 1, "detail": { "type": "object", "required": ["schemaVersion", "eventId", "swiperId", "targetId", "direction", "mutual", "occurredAt"], "properties": { "schemaVersion": { "type": "integer", "enum": [1] }, "eventId": { "type": "string" }, "swiperId": { "type": "string", "minLength": 1, "maxLength": 128, "description": "A user, match, request or report id." }, "targetId": { "type": "string", "minLength": 1, "maxLength": 128, "description": "A user, match, request or report id." }, "direction": { "type": "string", "enum": ["RIGHT", "LEFT", "SUPER"] }, "mutual": { "type": "boolean" }, "occurredAt": { "type": "integer", "minimum": 0, "description": "Epoch milliseconds." } } } },
|
|
73
|
+
UserBlocked: { "version": 1, "detail": { "type": "object", "required": ["blockerId", "blockedId", "blockedAt"], "properties": { "blockerId": { "type": "string", "minLength": 1, "maxLength": 128, "description": "A user, match, request or report id." }, "blockedId": { "type": "string", "minLength": 1, "maxLength": 128, "description": "A user, match, request or report id." }, "blockedAt": { "type": "integer", "minimum": 0, "description": "Epoch milliseconds." }, "version": { "type": "integer", "minimum": 1, "description": "Absent only on events from before State owned blocks." } } } },
|
|
74
|
+
UserDeleted: { "version": 1, "detail": { "type": "object", "required": ["userId", "timestamp"], "properties": { "userId": { "type": "string", "minLength": 1, "maxLength": 128, "description": "A user, match, request or report id." }, "timestamp": { "type": "integer", "minimum": 0, "description": "Epoch milliseconds." } } } },
|
|
75
|
+
UsernameChanged: { "version": 1, "detail": { "type": "object", "required": ["eventId", "userId", "username"], "properties": { "eventId": { "type": "string" }, "userId": { "type": "string", "minLength": 1, "maxLength": 128, "description": "A user, match, request or report id." }, "username": { "type": "string" }, "cognitoUsername": { "type": "string", "description": "Absent for a legacy account that has no stored Cognito username (CognitoSyncWorker skips the event)." } } } },
|
|
76
|
+
UserRegistered: { "version": 1, "detail": { "type": "object", "required": ["eventId", "userId"], "properties": { "eventId": { "type": "string" }, "userId": { "type": "string", "minLength": 1, "maxLength": 128, "description": "A user, match, request or report id." }, "email": { "type": "string", "description": "Email or phone (legacy field name)." } } } },
|
|
77
|
+
UserUnblocked: { "version": 1, "detail": { "type": "object", "required": ["blockerId", "blockedId", "unblockedAt", "version"], "properties": { "blockerId": { "type": "string", "minLength": 1, "maxLength": 128, "description": "A user, match, request or report id." }, "blockedId": { "type": "string", "minLength": 1, "maxLength": 128, "description": "A user, match, request or report id." }, "unblockedAt": { "type": "integer", "minimum": 0, "description": "Epoch milliseconds." }, "version": { "type": "integer", "minimum": 1, "description": "Per-pair (blocker -> blocked) counter, bumped by every block and unblock. Consumers apply the highest version they have seen." } } } },
|
|
78
|
+
};
|
|
79
|
+
export const INTERNAL_EVENT_DETAIL_SHAPES = {
|
|
80
|
+
EmailVerificationRequested: "EmailOtpRequestedDetail",
|
|
81
|
+
EmailVerificationRequestedDecoy: "EmailOtpRequestedDetail",
|
|
82
|
+
ModerationRejected: "ModerationRejectedDetail",
|
|
83
|
+
PhoneRegistrationRequested: "PhoneOtpRequestedDetail",
|
|
84
|
+
PhoneRegistrationRequestedDecoy: "PhoneOtpRequestedDetail",
|
|
85
|
+
ProfileModerationRequested: "ProfileModerationRequestedDetail",
|
|
86
|
+
SocialUnlinkFailed: "SocialUnlinkFailedDetail",
|
|
87
|
+
};
|
|
88
|
+
export const INTERNAL_EVENT_DETAIL_SCHEMAS = {
|
|
89
|
+
EmailVerificationRequested: { "version": 1, "detail": { "type": "object", "required": ["email", "otp"], "properties": { "email": { "type": "string" }, "otp": { "type": "string" } } } },
|
|
90
|
+
EmailVerificationRequestedDecoy: { "version": 1, "detail": { "type": "object", "required": ["email", "otp"], "properties": { "email": { "type": "string" }, "otp": { "type": "string" } } } },
|
|
91
|
+
ModerationRejected: { "version": 1, "detail": { "type": "object", "required": ["userId", "rejectedKeys", "timestamp"], "properties": { "userId": { "type": "string", "minLength": 1, "maxLength": 128, "description": "A user, match, request or report id." }, "rejectedKeys": { "type": "array", "items": { "type": "string" }, "description": "The rejected media object keys or field names." }, "timestamp": { "type": "integer", "minimum": 0, "description": "Epoch milliseconds." } } } },
|
|
92
|
+
PhoneRegistrationRequested: { "version": 1, "detail": { "type": "object", "required": ["phoneNumber", "otp"], "properties": { "phoneNumber": { "type": "string", "description": "E.164." }, "otp": { "type": "string" } } } },
|
|
93
|
+
PhoneRegistrationRequestedDecoy: { "version": 1, "detail": { "type": "object", "required": ["phoneNumber", "otp"], "properties": { "phoneNumber": { "type": "string", "description": "E.164." }, "otp": { "type": "string" } } } },
|
|
94
|
+
ProfileModerationRequested: { "version": 1, "detail": { "type": "object", "required": ["userId", "item", "writeToken"], "properties": { "userId": { "type": "string", "minLength": 1, "maxLength": 128, "description": "A user, match, request or report id." }, "item": { "type": "string", "enum": ["CHAT", "MATCHING"], "description": "Which profile item to moderate." }, "writeToken": { "type": "string", "description": "The write the moderation applies to; a newer write supersedes it." } } } },
|
|
95
|
+
SocialUnlinkFailed: { "version": 1, "detail": { "type": "object", "required": ["userId", "provider"], "properties": { "userId": { "type": "string", "minLength": 1, "maxLength": 128, "description": "A user, match, request or report id." }, "provider": { "type": "string", "description": "The social provider, e.g. GOOGLE or APPLE." }, "cognitoUsername": { "type": "string" } } } },
|
|
96
|
+
};
|
|
97
|
+
export const ENGINE_EVENT_SHAPES = {
|
|
98
|
+
AccountDeletionEvent: "AccountDeletionEvent",
|
|
99
|
+
ChatEvent: "ChatEvent",
|
|
100
|
+
MatchingErasureEvent: "MatchingErasureEvent",
|
|
101
|
+
ProfileUpdateEvent: "ProfileUpdateEvent",
|
|
102
|
+
ProfileViewEvent: "ProfileViewEvent",
|
|
103
|
+
SessionEvent: "SessionEvent",
|
|
104
|
+
SwipeEvent: "SwipeEvent",
|
|
105
|
+
};
|
|
106
|
+
export const ENGINE_EVENT_SCHEMAS = {
|
|
107
|
+
AccountDeletionEvent: { "version": 1, "detail": { "type": "object", "required": ["timestamp", "userId"], "properties": { "timestamp": { "type": "integer", "minimum": 0, "description": "Epoch seconds." }, "userId": { "type": "string", "minLength": 1, "maxLength": 128, "description": "A user, match, request or report id." } } } },
|
|
108
|
+
ChatEvent: { "version": 1, "detail": { "type": "object", "required": ["timestamp", "userId", "matchId", "type"], "properties": { "timestamp": { "type": "integer", "minimum": 0, "description": "Epoch seconds." }, "userId": { "type": "string", "minLength": 1, "maxLength": 128, "description": "A user, match, request or report id." }, "matchId": { "type": "string", "minLength": 1, "maxLength": 128, "description": "A user, match, request or report id." }, "type": { "type": "string", "enum": ["MESSAGE_SENT", "MESSAGE_RECEIVED", "MATCH_CREATED", "CHAT_OPENED", "CHAT_CLOSED"] }, "latencyMs": { "type": "integer", "minimum": 0 } } } },
|
|
109
|
+
MatchingErasureEvent: { "version": 1, "detail": { "type": "object", "required": ["timestamp", "userId", "generation", "requestedAt"], "properties": { "timestamp": { "type": "integer", "minimum": 0, "description": "Epoch seconds." }, "userId": { "type": "string", "minLength": 1, "maxLength": 128, "description": "A user, match, request or report id." }, "generation": { "type": "integer", "minimum": 0, "description": "The matching generation being erased (State's MatchingOptOutStarted.generation)." }, "requestedAt": { "type": "integer", "minimum": 0, "description": "Epoch seconds: erase everything about the member up to this time." } } } },
|
|
110
|
+
ProfileUpdateEvent: { "version": 1, "detail": { "type": "object", "required": ["timestamp", "userId"], "properties": { "timestamp": { "type": "integer", "minimum": 0, "description": "Epoch seconds." }, "userId": { "type": "string", "minLength": 1, "maxLength": 128, "description": "A user, match, request or report id." }, "bio": { "type": "string", "maxLength": 5000 }, "interests": { "type": "array", "items": { "type": "string" }, "maxItems": 100 }, "prompts": { "type": "array", "items": { "type": "object", "required": [], "properties": { "questionId": { "type": "string" }, "questionText": { "type": "string", "maxLength": 1000 }, "answerText": { "type": "string", "maxLength": 2000 } } }, "maxItems": 20 } } } },
|
|
111
|
+
ProfileViewEvent: { "version": 1, "detail": { "type": "object", "required": ["timestamp", "viewerId", "targetId"], "properties": { "timestamp": { "type": "integer", "minimum": 0, "description": "Epoch seconds." }, "viewerId": { "type": "string", "minLength": 1, "maxLength": 128, "description": "A user, match, request or report id." }, "targetId": { "type": "string", "minLength": 1, "maxLength": 128, "description": "A user, match, request or report id." }, "durationMs": { "type": "integer", "minimum": 0 }, "photosViewed": { "type": "integer", "minimum": 0 }, "totalPhotos": { "type": "integer", "minimum": 0 }, "photoDurationsMs": { "type": "object", "description": "Milliseconds per photo key." }, "bioExpanded": { "type": "boolean" }, "promptsRead": { "type": "integer", "minimum": 0 }, "scrollDepthPercent": { "type": "integer", "minimum": 0, "maximum": 100 } } } },
|
|
112
|
+
SessionEvent: { "version": 1, "detail": { "type": "object", "required": ["timestamp", "userId", "type"], "properties": { "timestamp": { "type": "integer", "minimum": 0, "description": "Epoch seconds." }, "userId": { "type": "string", "minLength": 1, "maxLength": 128, "description": "A user, match, request or report id." }, "type": { "type": "string", "enum": ["START", "END", "BACKGROUND", "FOREGROUND"] } } } },
|
|
113
|
+
SwipeEvent: { "version": 1, "detail": { "type": "object", "required": ["timestamp", "viewerId", "targetId", "decision"], "properties": { "timestamp": { "type": "integer", "minimum": 0, "description": "Epoch seconds." }, "viewerId": { "type": "string", "minLength": 1, "maxLength": 128, "description": "A user, match, request or report id." }, "targetId": { "type": "string", "minLength": 1, "maxLength": 128, "description": "A user, match, request or report id." }, "decision": { "type": "string", "enum": ["LIKE", "PASS", "SUPER_LIKE"] }, "decisionLatencyMs": { "type": "integer", "minimum": 0 } } } },
|
|
114
|
+
};
|
|
115
|
+
export const CLIENT_TELEMETRY_DETAIL_SHAPES = {
|
|
116
|
+
ClientConversationOpened: "ClientConversationOpenedDetail",
|
|
117
|
+
ClientProfileRevisit: "ClientProfileRevisitDetail",
|
|
118
|
+
ClientProfileViewed: "ClientProfileViewedDetail",
|
|
119
|
+
ClientSessionChanged: "ClientSessionChangedDetail",
|
|
120
|
+
};
|
|
121
|
+
export const CLIENT_TELEMETRY_DETAIL_SCHEMAS = {
|
|
122
|
+
ClientConversationOpened: { "version": 1, "detail": { "type": "object", "required": ["schemaVersion", "eventId", "userId", "matchId", "occurredAt"], "properties": { "schemaVersion": { "type": "integer", "enum": [1] }, "eventId": { "type": "string" }, "userId": { "type": "string", "description": "Verified Cognito subject (the acting user)." }, "matchId": { "type": "string" }, "occurredAt": { "type": "integer", "description": "Epoch milliseconds." } } } },
|
|
123
|
+
ClientProfileRevisit: { "version": 1, "detail": { "type": "object", "required": ["schemaVersion", "eventId", "userId", "viewedUserId", "occurredAt"], "properties": { "schemaVersion": { "type": "integer", "enum": [1] }, "eventId": { "type": "string" }, "userId": { "type": "string" }, "viewedUserId": { "type": "string" }, "occurredAt": { "type": "integer" } } } },
|
|
124
|
+
ClientProfileViewed: { "version": 1, "detail": { "type": "object", "required": ["schemaVersion", "eventId", "userId", "viewedUserId", "durationMs", "occurredAt"], "properties": { "schemaVersion": { "type": "integer", "enum": [1] }, "eventId": { "type": "string" }, "userId": { "type": "string" }, "viewedUserId": { "type": "string" }, "durationMs": { "type": "integer", "description": "Milliseconds the card was on screen." }, "occurredAt": { "type": "integer" } } } },
|
|
125
|
+
ClientSessionChanged: { "version": 1, "detail": { "type": "object", "required": ["schemaVersion", "eventId", "userId", "phase", "occurredAt"], "properties": { "schemaVersion": { "type": "integer", "enum": [1] }, "eventId": { "type": "string" }, "userId": { "type": "string" }, "phase": { "type": "string", "enum": ["START", "END", "FOREGROUND", "BACKGROUND"] }, "occurredAt": { "type": "integer" } } } },
|
|
126
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export const TELEMETRY_CATALOG_VERSION = "1.
|
|
2
|
-
export const TELEMETRY_CATALOG_HASH = "
|
|
1
|
+
export const TELEMETRY_CATALOG_VERSION = "1.24.0";
|
|
2
|
+
export const TELEMETRY_CATALOG_HASH = "139c2761335ed6ce";
|
|
3
3
|
export const SignalType = {
|
|
4
4
|
SCREEN_VIEW: "screen_view",
|
|
5
5
|
UI_INTERACTION: "ui_interaction",
|
|
@@ -303,6 +303,32 @@ export const UiElement = {
|
|
|
303
303
|
CHAT_VOICE_RECORD_STOP: "chat.voice_record_stop",
|
|
304
304
|
CHAT_VOICE_RECORD_CANCEL: "chat.voice_record_cancel",
|
|
305
305
|
CHAT_VOICE_SEND: "chat.voice_send",
|
|
306
|
+
CHAT_VOICE_RECORD_LOCK: "chat.voice_record_lock",
|
|
307
|
+
CHAT_VOICE_PREVIEW_PLAY: "chat.voice_preview_play",
|
|
308
|
+
CHAT_AUDIO_SPEED: "chat.audio_speed",
|
|
309
|
+
CHAT_AUDIO_SCRUB: "chat.audio_scrub",
|
|
310
|
+
CHAT_MESSAGE_REPLY: "chat.message_reply",
|
|
311
|
+
CHAT_REPLY_CANCEL: "chat.reply_cancel",
|
|
312
|
+
CHAT_REPLY_JUMP: "chat.reply_jump",
|
|
313
|
+
CHAT_MESSAGE_REACT: "chat.message_react",
|
|
314
|
+
CHAT_REACTION_PICKER_OPEN: "chat.reaction_picker_open",
|
|
315
|
+
CHAT_MESSAGE_ASK_MR_ONEHOOK: "chat.message_ask_mr_onehook",
|
|
316
|
+
CHAT_REACTION_PICKER_CATEGORY: "chat.reaction_picker_category",
|
|
317
|
+
CHAT_SELECT_OPEN: "chat.select_open",
|
|
318
|
+
CHAT_SELECT_TOGGLE: "chat.select_toggle",
|
|
319
|
+
CHAT_SELECT_CANCEL: "chat.select_cancel",
|
|
320
|
+
CHAT_SELECT_ASK_MR_ONEHOOK: "chat.select_ask_mr_onehook",
|
|
321
|
+
CHAT_SELECT_COPY: "chat.select_copy",
|
|
322
|
+
CHAT_LOCATION_SHARE: "chat.location_share",
|
|
323
|
+
CHAT_LIVE_LOCATION_DURATION: "chat.live_location_duration",
|
|
324
|
+
CHAT_LIVE_LOCATION_STOP: "chat.live_location_stop",
|
|
325
|
+
CHAT_LOCATION_OPEN: "chat.location_open",
|
|
326
|
+
CHAT_LOCATION_DIRECTIONS: "chat.location_directions",
|
|
327
|
+
CHAT_CONTACT_OPEN: "chat.contact_open",
|
|
328
|
+
CHAT_MESSAGE_COPY: "chat.message_copy",
|
|
329
|
+
CHAT_MESSAGE_INFO: "chat.message_info",
|
|
330
|
+
CHAT_MESSAGE_RETRY: "chat.message_retry",
|
|
331
|
+
CHAT_JUMP_TO_LATEST: "chat.jump_to_latest",
|
|
306
332
|
CHAT_CONVERSATION_SWITCH: "chat.conversation_switch",
|
|
307
333
|
CHAT_CONVERSATION_SORT: "chat.conversation_sort",
|
|
308
334
|
CHAT_CONVERSATION_SORT_OPEN: "chat.conversation_sort_open",
|
|
@@ -329,6 +355,8 @@ export const UiElement = {
|
|
|
329
355
|
CHAT_CALL_HISTORY_OPEN: "chat.call_history_open",
|
|
330
356
|
CALL_ACCEPT: "call.accept",
|
|
331
357
|
CALL_DECLINE: "call.decline",
|
|
358
|
+
CALL_VIDEO_SWAP: "call.video_swap",
|
|
359
|
+
CALL_CONTROLS_TOGGLE: "call.controls_toggle",
|
|
332
360
|
CALL_END: "call.end",
|
|
333
361
|
CALL_MUTE: "call.mute",
|
|
334
362
|
CALL_CAMERA: "call.camera",
|
|
@@ -580,12 +608,38 @@ export const UI_ELEMENTS = {
|
|
|
580
608
|
"likes_you.close": { screen: "LIKES_YOU", kind: "button", actions: ["tap", "dismiss"], values: null, platforms: ["ios", "android"] },
|
|
581
609
|
"chat.send_button": { screen: "CHAT", kind: "button", actions: ["submit"], values: null, platforms: ["web", "ios", "android"] },
|
|
582
610
|
"chat.attach_button": { screen: "CHAT", kind: "button", actions: ["tap", "dismiss"], values: null, platforms: ["web", "ios", "android"] },
|
|
583
|
-
"chat.attach_option": { screen: "CHAT", kind: "menu_item", actions: ["tap"], values: ["photo_video", "camera", "file", "voice"], platforms: ["web", "ios", "android"] },
|
|
611
|
+
"chat.attach_option": { screen: "CHAT", kind: "menu_item", actions: ["tap"], values: ["photo_video", "camera", "file", "voice", "location", "contact"], platforms: ["web", "ios", "android"] },
|
|
584
612
|
"chat.capture_option": { screen: "CHAT", kind: "menu_item", actions: ["tap"], values: ["photo", "video"], platforms: ["android"] },
|
|
585
613
|
"chat.voice_record_start": { screen: "CHAT", kind: "button", actions: ["tap", "long_press"], values: null, platforms: ["web", "ios", "android"] },
|
|
586
614
|
"chat.voice_record_stop": { screen: "CHAT", kind: "button", actions: ["tap"], values: null, platforms: ["ios", "android"] },
|
|
587
615
|
"chat.voice_record_cancel": { screen: "CHAT", kind: "button", actions: ["tap"], values: null, platforms: ["web", "ios", "android"] },
|
|
588
616
|
"chat.voice_send": { screen: "CHAT", kind: "button", actions: ["submit"], values: null, platforms: ["web", "ios"] },
|
|
617
|
+
"chat.voice_record_lock": { screen: "CHAT", kind: "gesture", actions: ["tap"], values: null, platforms: ["ios"] },
|
|
618
|
+
"chat.voice_preview_play": { screen: "CHAT", kind: "toggle", actions: ["toggle"], values: ["play", "pause"], platforms: ["ios"] },
|
|
619
|
+
"chat.audio_speed": { screen: "CHAT", kind: "button", actions: ["tap"], values: ["speed_1x", "speed_1_5x", "speed_2x"], platforms: ["ios"] },
|
|
620
|
+
"chat.audio_scrub": { screen: "CHAT", kind: "gesture", actions: ["tap"], values: null, platforms: ["ios"] },
|
|
621
|
+
"chat.message_reply": { screen: "CHAT", kind: "gesture", actions: ["tap"], values: ["swipe", "menu"], platforms: ["ios"] },
|
|
622
|
+
"chat.reply_cancel": { screen: "CHAT", kind: "button", actions: ["tap"], values: null, platforms: ["ios"] },
|
|
623
|
+
"chat.reply_jump": { screen: "CHAT", kind: "button", actions: ["tap"], values: null, platforms: ["ios"] },
|
|
624
|
+
"chat.message_react": { screen: "CHAT", kind: "menu_item", actions: ["tap"], values: ["add", "clear"], platforms: ["ios"] },
|
|
625
|
+
"chat.reaction_picker_open": { screen: "CHAT", kind: "button", actions: ["tap", "dismiss"], values: null, platforms: ["ios"] },
|
|
626
|
+
"chat.message_ask_mr_onehook": { screen: "CHAT", kind: "menu_item", actions: ["tap"], values: null, platforms: ["ios"] },
|
|
627
|
+
"chat.reaction_picker_category": { screen: "CHAT", kind: "tab", actions: ["select"], values: ["frequent", "smileys_people", "animals_nature", "food_drink", "activity", "travel_places", "objects", "symbols", "flags"], platforms: ["ios"] },
|
|
628
|
+
"chat.select_open": { screen: "CHAT", kind: "button", actions: ["tap"], values: ["header", "menu"], platforms: ["ios"] },
|
|
629
|
+
"chat.select_toggle": { screen: "CHAT", kind: "list_item", actions: ["tap"], values: ["selected", "deselected"], platforms: ["ios"] },
|
|
630
|
+
"chat.select_cancel": { screen: "CHAT", kind: "button", actions: ["tap"], values: null, platforms: ["ios"] },
|
|
631
|
+
"chat.select_ask_mr_onehook": { screen: "CHAT", kind: "button", actions: ["tap"], values: null, platforms: ["ios"] },
|
|
632
|
+
"chat.select_copy": { screen: "CHAT", kind: "button", actions: ["tap"], values: null, platforms: ["ios"] },
|
|
633
|
+
"chat.location_share": { screen: "CHAT", kind: "button", actions: ["tap"], values: ["current", "live"], platforms: ["web", "ios", "android"] },
|
|
634
|
+
"chat.live_location_duration": { screen: "CHAT", kind: "menu_item", actions: ["tap", "dismiss"], values: ["min_15", "hour_1", "hour_8"], platforms: ["web", "ios", "android"] },
|
|
635
|
+
"chat.live_location_stop": { screen: "CHAT", kind: "button", actions: ["tap"], values: null, platforms: ["web", "ios", "android"] },
|
|
636
|
+
"chat.location_open": { screen: "CHAT", kind: "button", actions: ["tap"], values: ["in_app", "apple_maps", "google_maps"], platforms: ["web", "ios", "android"] },
|
|
637
|
+
"chat.location_directions": { screen: "CHAT", kind: "button", actions: ["tap"], values: ["apple_maps", "google_maps"], platforms: ["web", "ios", "android"] },
|
|
638
|
+
"chat.contact_open": { screen: "CHAT", kind: "button", actions: ["tap"], values: null, platforms: ["web", "ios", "android"] },
|
|
639
|
+
"chat.message_copy": { screen: "CHAT", kind: "menu_item", actions: ["tap"], values: null, platforms: ["ios"] },
|
|
640
|
+
"chat.message_info": { screen: "CHAT", kind: "menu_item", actions: ["tap", "dismiss"], values: null, platforms: ["ios"] },
|
|
641
|
+
"chat.message_retry": { screen: "CHAT", kind: "button", actions: ["tap"], values: null, platforms: ["ios"] },
|
|
642
|
+
"chat.jump_to_latest": { screen: "CHAT", kind: "button", actions: ["tap"], values: null, platforms: ["ios"] },
|
|
589
643
|
"chat.conversation_switch": { screen: "CHAT", kind: "list_item", actions: ["tap"], values: null, platforms: ["web", "ios", "android"] },
|
|
590
644
|
"chat.conversation_sort": { screen: "CHAT", kind: "menu_item", actions: ["tap"], values: null, platforms: ["web", "ios"] },
|
|
591
645
|
"chat.conversation_sort_open": { screen: "CHAT", kind: "button", actions: ["tap", "dismiss"], values: null, platforms: ["web", "ios"] },
|
|
@@ -612,6 +666,8 @@ export const UI_ELEMENTS = {
|
|
|
612
666
|
"chat.call_history_open": { screen: "CHAT", kind: "button", actions: ["tap", "dismiss"], values: null, platforms: ["ios"] },
|
|
613
667
|
"call.accept": { screen: "CALL", kind: "button", actions: ["tap"], values: ["audio", "video"], platforms: ["web", "ios", "android"] },
|
|
614
668
|
"call.decline": { screen: "CALL", kind: "button", actions: ["tap"], values: null, platforms: ["web", "ios", "android"] },
|
|
669
|
+
"call.video_swap": { screen: "CALL", kind: "gesture", actions: ["tap"], values: ["peer", "self"], platforms: ["web", "ios", "android"] },
|
|
670
|
+
"call.controls_toggle": { screen: "CALL", kind: "gesture", actions: ["tap"], values: ["shown", "hidden"], platforms: ["web", "ios", "android"] },
|
|
615
671
|
"call.end": { screen: "CALL", kind: "button", actions: ["tap"], values: null, platforms: ["web", "ios", "android"] },
|
|
616
672
|
"call.mute": { screen: "CALL", kind: "toggle", actions: ["toggle"], values: ["on", "off"], platforms: ["web", "ios", "android"] },
|
|
617
673
|
"call.camera": { screen: "CALL", kind: "toggle", actions: ["toggle"], values: ["on", "off"], platforms: ["web", "ios", "android"] },
|