onehook-api-client 1.0.29 → 1.0.30
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 +7 -14
- package/dist-cjs/OneHook.js +2 -4
- package/dist-cjs/commands/{DiscoverByIntentCommand.js → RecordSuggestionCommand.js} +7 -7
- package/dist-cjs/commands/index.js +1 -2
- package/dist-cjs/models/models_0.js +7 -1
- package/dist-cjs/protocols/Aws_restJson1.js +41 -71
- package/dist-cjs/telemetry/index.js +43 -5
- package/dist-es/OneHook.js +2 -4
- package/dist-es/commands/{DiscoverByIntentCommand.js → RecordSuggestionCommand.js} +6 -6
- package/dist-es/commands/index.js +1 -2
- package/dist-es/models/models_0.js +6 -0
- package/dist-es/protocols/Aws_restJson1.js +36 -64
- package/dist-es/telemetry/index.js +42 -4
- package/dist-types/OneHook.d.ts +7 -14
- package/dist-types/OneHookClient.d.ts +3 -4
- package/dist-types/commands/DiscoverCommand.d.ts +14 -2
- package/dist-types/commands/RecordSuggestionCommand.d.ts +83 -0
- package/dist-types/commands/index.d.ts +1 -2
- package/dist-types/models/models_0.d.ts +76 -15
- package/dist-types/protocols/Aws_restJson1.d.ts +9 -18
- package/dist-types/telemetry/index.d.ts +44 -2
- package/package.json +1 -1
- package/telemetry/TelemetryCatalog.kt +61 -7
- package/telemetry/TelemetryCatalog.swift +50 -6
- package/telemetry/telemetry-catalog.json +580 -246
- package/dist-cjs/commands/DiscoverSuggestedCommand.js +0 -21
- package/dist-es/commands/DiscoverSuggestedCommand.js +0 -17
- package/dist-types/commands/DiscoverByIntentCommand.d.ts +0 -97
- package/dist-types/commands/DiscoverSuggestedCommand.d.ts +0 -92
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export const TELEMETRY_CATALOG_VERSION = "1.
|
|
2
|
-
export const TELEMETRY_CATALOG_HASH = "
|
|
1
|
+
export const TELEMETRY_CATALOG_VERSION = "1.7.0";
|
|
2
|
+
export const TELEMETRY_CATALOG_HASH = "4a3328962531236a";
|
|
3
3
|
export const SignalType = {
|
|
4
4
|
SCREEN_VIEW: "screen_view",
|
|
5
5
|
UI_INTERACTION: "ui_interaction",
|
|
@@ -19,6 +19,7 @@ export const SignalType = {
|
|
|
19
19
|
HOOKED_STATE_VIEW: "hooked_state_view",
|
|
20
20
|
LIKES_YOU_VIEW: "likes_you_view",
|
|
21
21
|
SAFETY_UI_OPEN: "safety_ui_open",
|
|
22
|
+
REPORT_FLOW: "report_flow",
|
|
22
23
|
};
|
|
23
24
|
export const Platform = {
|
|
24
25
|
WEB: "web",
|
|
@@ -153,6 +154,39 @@ export const HookedStateAction = {
|
|
|
153
154
|
GO_TO_CHAT: "go_to_chat",
|
|
154
155
|
DISMISS: "dismiss",
|
|
155
156
|
};
|
|
157
|
+
export const ReportCategory = {
|
|
158
|
+
HARASSMENT: "HARASSMENT",
|
|
159
|
+
THREATS_VIOLENCE: "THREATS_VIOLENCE",
|
|
160
|
+
SEXUAL_CONTENT_NONCONSENT: "SEXUAL_CONTENT_NONCONSENT",
|
|
161
|
+
MINOR_SAFETY: "MINOR_SAFETY",
|
|
162
|
+
SCAM_FRAUD: "SCAM_FRAUD",
|
|
163
|
+
FAKE_IMPERSONATION: "FAKE_IMPERSONATION",
|
|
164
|
+
SPAM_PROMOTION: "SPAM_PROMOTION",
|
|
165
|
+
HATE: "HATE",
|
|
166
|
+
SELF_HARM_CONCERN: "SELF_HARM_CONCERN",
|
|
167
|
+
OFF_PLATFORM_HARM: "OFF_PLATFORM_HARM",
|
|
168
|
+
OTHER: "OTHER",
|
|
169
|
+
};
|
|
170
|
+
export const ReportSource = {
|
|
171
|
+
CHAT: "chat",
|
|
172
|
+
PROFILE: "profile",
|
|
173
|
+
};
|
|
174
|
+
export const ReportEvent = {
|
|
175
|
+
REPORT_OPEN: "report.open",
|
|
176
|
+
REPORT_CATEGORY_SELECTED: "report.category_selected",
|
|
177
|
+
REPORT_NOT_REPORTABLE_SHOWN: "report.not_reportable_shown",
|
|
178
|
+
REPORT_NOT_REPORTABLE_BLOCK: "report.not_reportable_block",
|
|
179
|
+
REPORT_SELF_HARM_RESOURCES_SHOWN: "report.self_harm_resources_shown",
|
|
180
|
+
REPORT_EVIDENCE_TOGGLE: "report.evidence_toggle",
|
|
181
|
+
REPORT_ATTACHMENTS_TOGGLE: "report.attachments_toggle",
|
|
182
|
+
REPORT_EVIDENCE_PREVIEW: "report.evidence_preview",
|
|
183
|
+
REPORT_NUDGE_SHOWN: "report.nudge_shown",
|
|
184
|
+
REPORT_SUBMIT_WITH_EVIDENCE: "report.submit_with_evidence",
|
|
185
|
+
REPORT_SUBMIT_WITHOUT_EVIDENCE: "report.submit_without_evidence",
|
|
186
|
+
REPORT_SUBMIT_FAILED: "report.submit_failed",
|
|
187
|
+
REPORT_EVIDENCE_UPLOAD_SUCCEEDED: "report.evidence_upload_succeeded",
|
|
188
|
+
REPORT_EVIDENCE_UPLOAD_FAILED: "report.evidence_upload_failed",
|
|
189
|
+
};
|
|
156
190
|
export const UiElement = {
|
|
157
191
|
NAV_TAB_SELECT: "nav.tab_select",
|
|
158
192
|
NAV_SEARCH_OPEN: "nav.search_open",
|
|
@@ -258,6 +292,8 @@ export const UiElement = {
|
|
|
258
292
|
CHAT_PROFILE_OPEN: "chat.profile_open",
|
|
259
293
|
CHAT_SAFETY_MENU_OPEN: "chat.safety_menu_open",
|
|
260
294
|
CHAT_UNMATCH: "chat.unmatch",
|
|
295
|
+
CHAT_REPORT_OPEN: "chat.report_open",
|
|
296
|
+
CHAT_BLOCK_OPEN: "chat.block_open",
|
|
261
297
|
CHAT_REPORT_SPAM: "chat.report_spam",
|
|
262
298
|
CHAT_REPORT_BLOCK: "chat.report_block",
|
|
263
299
|
CHAT_BLOCK_CONFIRM: "chat.block_confirm",
|
|
@@ -499,8 +535,10 @@ export const UI_ELEMENTS = {
|
|
|
499
535
|
"chat.profile_open": { screen: "CHAT", kind: "button", actions: ["tap", "dismiss"], values: null, platforms: ["web", "ios", "android"] },
|
|
500
536
|
"chat.safety_menu_open": { screen: "CHAT", kind: "button", actions: ["tap", "dismiss"], values: null, platforms: ["web", "ios", "android"] },
|
|
501
537
|
"chat.unmatch": { screen: "CHAT", kind: "menu_item", actions: ["tap"], values: null, platforms: ["ios", "android"] },
|
|
502
|
-
"chat.
|
|
503
|
-
"chat.
|
|
538
|
+
"chat.report_open": { screen: "CHAT", kind: "menu_item", actions: ["tap"], values: null, platforms: ["web", "ios", "android"] },
|
|
539
|
+
"chat.block_open": { screen: "CHAT", kind: "menu_item", actions: ["tap"], values: null, platforms: ["web", "ios", "android"] },
|
|
540
|
+
"chat.report_spam": { screen: "CHAT", kind: "menu_item", actions: ["tap"], values: null, platforms: [] },
|
|
541
|
+
"chat.report_block": { screen: "CHAT", kind: "menu_item", actions: ["tap"], values: null, platforms: [] },
|
|
504
542
|
"chat.block_confirm": { screen: "CHAT", kind: "dialog_button", actions: ["tap", "dismiss"], values: null, platforms: ["web", "ios", "android"] },
|
|
505
543
|
"chat.settings_open": { screen: "CHAT", kind: "button", actions: ["tap", "dismiss"], values: null, platforms: ["web", "ios"] },
|
|
506
544
|
"chat.wallpaper_open": { screen: "CHAT", kind: "menu_item", actions: ["tap", "dismiss"], values: null, platforms: ["web"] },
|
package/dist-types/OneHook.d.ts
CHANGED
|
@@ -9,9 +9,7 @@ import { CreateMediaUploadUrlCommandInput, CreateMediaUploadUrlCommandOutput } f
|
|
|
9
9
|
import { DeleteMatchMessagesCommandInput, DeleteMatchMessagesCommandOutput } from "./commands/DeleteMatchMessagesCommand";
|
|
10
10
|
import { DeleteProfileCommandInput, DeleteProfileCommandOutput } from "./commands/DeleteProfileCommand";
|
|
11
11
|
import { DeletePushTokenCommandInput, DeletePushTokenCommandOutput } from "./commands/DeletePushTokenCommand";
|
|
12
|
-
import { DiscoverByIntentCommandInput, DiscoverByIntentCommandOutput } from "./commands/DiscoverByIntentCommand";
|
|
13
12
|
import { DiscoverCommandInput, DiscoverCommandOutput } from "./commands/DiscoverCommand";
|
|
14
|
-
import { DiscoverSuggestedCommandInput, DiscoverSuggestedCommandOutput } from "./commands/DiscoverSuggestedCommand";
|
|
15
13
|
import { GenerateDownloadUrlCommandInput, GenerateDownloadUrlCommandOutput } from "./commands/GenerateDownloadUrlCommand";
|
|
16
14
|
import { GenerateInviteCommandInput, GenerateInviteCommandOutput } from "./commands/GenerateInviteCommand";
|
|
17
15
|
import { GenerateUploadUrlCommandInput, GenerateUploadUrlCommandOutput } from "./commands/GenerateUploadUrlCommand";
|
|
@@ -38,6 +36,7 @@ import { InitUserCommandInput, InitUserCommandOutput } from "./commands/InitUser
|
|
|
38
36
|
import { LinkEmailCommandInput, LinkEmailCommandOutput } from "./commands/LinkEmailCommand";
|
|
39
37
|
import { LinkSocialCommandInput, LinkSocialCommandOutput } from "./commands/LinkSocialCommand";
|
|
40
38
|
import { ListMyDevicesCommandInput, ListMyDevicesCommandOutput } from "./commands/ListMyDevicesCommand";
|
|
39
|
+
import { RecordSuggestionCommandInput, RecordSuggestionCommandOutput } from "./commands/RecordSuggestionCommand";
|
|
41
40
|
import { RegisterDeviceCommandInput, RegisterDeviceCommandOutput } from "./commands/RegisterDeviceCommand";
|
|
42
41
|
import { RegisterPhoneCommandInput, RegisterPhoneCommandOutput } from "./commands/RegisterPhoneCommand";
|
|
43
42
|
import { RegisterPushTokenCommandInput, RegisterPushTokenCommandOutput } from "./commands/RegisterPushTokenCommand";
|
|
@@ -282,18 +281,6 @@ export interface OneHook {
|
|
|
282
281
|
discover(args: DiscoverCommandInput, options?: __HttpHandlerOptions): Promise<DiscoverCommandOutput>;
|
|
283
282
|
discover(args: DiscoverCommandInput, cb: (err: any, data?: DiscoverCommandOutput) => void): void;
|
|
284
283
|
discover(args: DiscoverCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DiscoverCommandOutput) => void): void;
|
|
285
|
-
/**
|
|
286
|
-
* @see {@link DiscoverByIntentCommand}
|
|
287
|
-
*/
|
|
288
|
-
discoverByIntent(args: DiscoverByIntentCommandInput, options?: __HttpHandlerOptions): Promise<DiscoverByIntentCommandOutput>;
|
|
289
|
-
discoverByIntent(args: DiscoverByIntentCommandInput, cb: (err: any, data?: DiscoverByIntentCommandOutput) => void): void;
|
|
290
|
-
discoverByIntent(args: DiscoverByIntentCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DiscoverByIntentCommandOutput) => void): void;
|
|
291
|
-
/**
|
|
292
|
-
* @see {@link DiscoverSuggestedCommand}
|
|
293
|
-
*/
|
|
294
|
-
discoverSuggested(args: DiscoverSuggestedCommandInput, options?: __HttpHandlerOptions): Promise<DiscoverSuggestedCommandOutput>;
|
|
295
|
-
discoverSuggested(args: DiscoverSuggestedCommandInput, cb: (err: any, data?: DiscoverSuggestedCommandOutput) => void): void;
|
|
296
|
-
discoverSuggested(args: DiscoverSuggestedCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DiscoverSuggestedCommandOutput) => void): void;
|
|
297
284
|
/**
|
|
298
285
|
* @see {@link GetNotificationPreferencesCommand}
|
|
299
286
|
*/
|
|
@@ -326,6 +313,12 @@ export interface OneHook {
|
|
|
326
313
|
indexLocation(args: IndexLocationCommandInput, options?: __HttpHandlerOptions): Promise<IndexLocationCommandOutput>;
|
|
327
314
|
indexLocation(args: IndexLocationCommandInput, cb: (err: any, data?: IndexLocationCommandOutput) => void): void;
|
|
328
315
|
indexLocation(args: IndexLocationCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: IndexLocationCommandOutput) => void): void;
|
|
316
|
+
/**
|
|
317
|
+
* @see {@link RecordSuggestionCommand}
|
|
318
|
+
*/
|
|
319
|
+
recordSuggestion(args: RecordSuggestionCommandInput, options?: __HttpHandlerOptions): Promise<RecordSuggestionCommandOutput>;
|
|
320
|
+
recordSuggestion(args: RecordSuggestionCommandInput, cb: (err: any, data?: RecordSuggestionCommandOutput) => void): void;
|
|
321
|
+
recordSuggestion(args: RecordSuggestionCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: RecordSuggestionCommandOutput) => void): void;
|
|
329
322
|
/**
|
|
330
323
|
* @see {@link RemoveLocationCommand}
|
|
331
324
|
*/
|
|
@@ -9,9 +9,7 @@ import { CreateMediaUploadUrlCommandInput, CreateMediaUploadUrlCommandOutput } f
|
|
|
9
9
|
import { DeleteMatchMessagesCommandInput, DeleteMatchMessagesCommandOutput } from "./commands/DeleteMatchMessagesCommand";
|
|
10
10
|
import { DeleteProfileCommandInput, DeleteProfileCommandOutput } from "./commands/DeleteProfileCommand";
|
|
11
11
|
import { DeletePushTokenCommandInput, DeletePushTokenCommandOutput } from "./commands/DeletePushTokenCommand";
|
|
12
|
-
import { DiscoverByIntentCommandInput, DiscoverByIntentCommandOutput } from "./commands/DiscoverByIntentCommand";
|
|
13
12
|
import { DiscoverCommandInput, DiscoverCommandOutput } from "./commands/DiscoverCommand";
|
|
14
|
-
import { DiscoverSuggestedCommandInput, DiscoverSuggestedCommandOutput } from "./commands/DiscoverSuggestedCommand";
|
|
15
13
|
import { GenerateDownloadUrlCommandInput, GenerateDownloadUrlCommandOutput } from "./commands/GenerateDownloadUrlCommand";
|
|
16
14
|
import { GenerateInviteCommandInput, GenerateInviteCommandOutput } from "./commands/GenerateInviteCommand";
|
|
17
15
|
import { GenerateUploadUrlCommandInput, GenerateUploadUrlCommandOutput } from "./commands/GenerateUploadUrlCommand";
|
|
@@ -38,6 +36,7 @@ import { InitUserCommandInput, InitUserCommandOutput } from "./commands/InitUser
|
|
|
38
36
|
import { LinkEmailCommandInput, LinkEmailCommandOutput } from "./commands/LinkEmailCommand";
|
|
39
37
|
import { LinkSocialCommandInput, LinkSocialCommandOutput } from "./commands/LinkSocialCommand";
|
|
40
38
|
import { ListMyDevicesCommandInput, ListMyDevicesCommandOutput } from "./commands/ListMyDevicesCommand";
|
|
39
|
+
import { RecordSuggestionCommandInput, RecordSuggestionCommandOutput } from "./commands/RecordSuggestionCommand";
|
|
41
40
|
import { RegisterDeviceCommandInput, RegisterDeviceCommandOutput } from "./commands/RegisterDeviceCommand";
|
|
42
41
|
import { RegisterPhoneCommandInput, RegisterPhoneCommandOutput } from "./commands/RegisterPhoneCommand";
|
|
43
42
|
import { RegisterPushTokenCommandInput, RegisterPushTokenCommandOutput } from "./commands/RegisterPushTokenCommand";
|
|
@@ -73,11 +72,11 @@ export { __Client };
|
|
|
73
72
|
/**
|
|
74
73
|
* @public
|
|
75
74
|
*/
|
|
76
|
-
export type ServiceInputTypes = AuthSocialCommandInput | CompleteLivenessSessionCommandInput | CompleteOnboardingCommandInput | CreateAdminInviteCommandInput | CreateLivenessSessionCommandInput | CreateMediaDownloadUrlCommandInput | CreateMediaUploadUrlCommandInput | DeleteMatchMessagesCommandInput | DeleteProfileCommandInput | DeletePushTokenCommandInput |
|
|
75
|
+
export type ServiceInputTypes = AuthSocialCommandInput | CompleteLivenessSessionCommandInput | CompleteOnboardingCommandInput | CreateAdminInviteCommandInput | CreateLivenessSessionCommandInput | CreateMediaDownloadUrlCommandInput | CreateMediaUploadUrlCommandInput | DeleteMatchMessagesCommandInput | DeleteProfileCommandInput | DeletePushTokenCommandInput | DiscoverCommandInput | GenerateDownloadUrlCommandInput | GenerateInviteCommandInput | GenerateUploadUrlCommandInput | GetAccountStateCommandInput | GetAdminPhoneStatusCommandInput | GetAiContextMatchCommandInput | GetChatSettingsCommandInput | GetCredentialReadinessCommandInput | GetLivenessStatusCommandInput | GetMatchCommandInput | GetMyProfileCommandInput | GetNotificationPreferencesCommandInput | GetParticipantRegistryCommandInput | GetPreferencesCommandInput | GetProfileCommandInput | GetReceivedLikesCommandInput | GetRosesCommandInput | GetStateCommandInput | GetUserByEmailCommandInput | GetUserCommandInput | GetUserIdByUsernameCommandInput | IndexLocationCommandInput | InitUserCommandInput | LinkEmailCommandInput | LinkSocialCommandInput | ListMyDevicesCommandInput | RecordSuggestionCommandInput | RegisterDeviceCommandInput | RegisterPhoneCommandInput | RegisterPushTokenCommandInput | RemoveLocationCommandInput | RequestEmailOtpCommandInput | RequestPhoneOtpCommandInput | RequestPhoneUpdateOtpCommandInput | RevokeDeviceCommandInput | SendAdminLinkOtpCommandInput | SetAccountStateCommandInput | SwipeByUsernameCommandInput | SwipeCommandInput | UnhookCommandInput | UnlinkSocialCommandInput | UpdateChatSettingsCommandInput | UpdateEntitlementsCommandInput | UpdatePhoneNumberCommandInput | UpdatePreferencesCommandInput | UpdateProfileCommandInput | UpdateUsernameCommandInput | UpgradeUserCommandInput | ValidateInviteCommandInput | VerifyAdminLinkOtpCommandInput;
|
|
77
76
|
/**
|
|
78
77
|
* @public
|
|
79
78
|
*/
|
|
80
|
-
export type ServiceOutputTypes = AuthSocialCommandOutput | CompleteLivenessSessionCommandOutput | CompleteOnboardingCommandOutput | CreateAdminInviteCommandOutput | CreateLivenessSessionCommandOutput | CreateMediaDownloadUrlCommandOutput | CreateMediaUploadUrlCommandOutput | DeleteMatchMessagesCommandOutput | DeleteProfileCommandOutput | DeletePushTokenCommandOutput |
|
|
79
|
+
export type ServiceOutputTypes = AuthSocialCommandOutput | CompleteLivenessSessionCommandOutput | CompleteOnboardingCommandOutput | CreateAdminInviteCommandOutput | CreateLivenessSessionCommandOutput | CreateMediaDownloadUrlCommandOutput | CreateMediaUploadUrlCommandOutput | DeleteMatchMessagesCommandOutput | DeleteProfileCommandOutput | DeletePushTokenCommandOutput | DiscoverCommandOutput | GenerateDownloadUrlCommandOutput | GenerateInviteCommandOutput | GenerateUploadUrlCommandOutput | GetAccountStateCommandOutput | GetAdminPhoneStatusCommandOutput | GetAiContextMatchCommandOutput | GetChatSettingsCommandOutput | GetCredentialReadinessCommandOutput | GetLivenessStatusCommandOutput | GetMatchCommandOutput | GetMyProfileCommandOutput | GetNotificationPreferencesCommandOutput | GetParticipantRegistryCommandOutput | GetPreferencesCommandOutput | GetProfileCommandOutput | GetReceivedLikesCommandOutput | GetRosesCommandOutput | GetStateCommandOutput | GetUserByEmailCommandOutput | GetUserCommandOutput | GetUserIdByUsernameCommandOutput | IndexLocationCommandOutput | InitUserCommandOutput | LinkEmailCommandOutput | LinkSocialCommandOutput | ListMyDevicesCommandOutput | RecordSuggestionCommandOutput | RegisterDeviceCommandOutput | RegisterPhoneCommandOutput | RegisterPushTokenCommandOutput | RemoveLocationCommandOutput | RequestEmailOtpCommandOutput | RequestPhoneOtpCommandOutput | RequestPhoneUpdateOtpCommandOutput | RevokeDeviceCommandOutput | SendAdminLinkOtpCommandOutput | SetAccountStateCommandOutput | SwipeByUsernameCommandOutput | SwipeCommandOutput | UnhookCommandOutput | UnlinkSocialCommandOutput | UpdateChatSettingsCommandOutput | UpdateEntitlementsCommandOutput | UpdatePhoneNumberCommandOutput | UpdatePreferencesCommandOutput | UpdateProfileCommandOutput | UpdateUsernameCommandOutput | UpgradeUserCommandOutput | ValidateInviteCommandOutput | VerifyAdminLinkOtpCommandOutput;
|
|
81
80
|
/**
|
|
82
81
|
* @public
|
|
83
82
|
*/
|
|
@@ -27,8 +27,10 @@ declare const DiscoverCommand_base: {
|
|
|
27
27
|
getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
|
|
28
28
|
};
|
|
29
29
|
/**
|
|
30
|
-
*
|
|
31
|
-
*
|
|
30
|
+
* The discover feed. Without `category` every tier gets one mixed deck: mostly OneHook Intelligence
|
|
31
|
+
* profile matches plus a Mr. OneHook share from the caller's OneHook suggestions. Super and above may
|
|
32
|
+
* pass `category` to get only one kind (403 `PREMIUM_REQUIRED` otherwise). Every candidate says who
|
|
33
|
+
* found it (`matchFinder`) and why (`reasoning`). `availableCategories` lists what the caller may pick.
|
|
32
34
|
* @example
|
|
33
35
|
* Use a bare-bones client and the command you need to make an API call.
|
|
34
36
|
* ```javascript
|
|
@@ -38,6 +40,7 @@ declare const DiscoverCommand_base: {
|
|
|
38
40
|
* const input = { // DiscoverRequest
|
|
39
41
|
* lat: Number("double"), // required
|
|
40
42
|
* lon: Number("double"), // required
|
|
43
|
+
* category: "ALL" || "PROFILE_MATCH" || "SIMILAR" || "ONEHOOK_SUGGESTED",
|
|
41
44
|
* };
|
|
42
45
|
* const command = new DiscoverCommand(input);
|
|
43
46
|
* const response = await client.send(command);
|
|
@@ -49,12 +52,18 @@ declare const DiscoverCommand_base: {
|
|
|
49
52
|
* // score: Number("double"), // required
|
|
50
53
|
* // matchFinder: "ONEHOOK_INTELLIGENCE" || "MR_ONEHOOK", // required
|
|
51
54
|
* // matchFinderLabel: "STRING_VALUE", // required
|
|
55
|
+
* // reasoning: "STRING_VALUE", // required
|
|
56
|
+
* // suggestionId: "STRING_VALUE",
|
|
52
57
|
* // suggestionBasis: "EXPLICIT_REQUEST" || "INFERRED_INCLINATION",
|
|
53
58
|
* // similarity: Number("double"),
|
|
54
59
|
* // },
|
|
55
60
|
* // ],
|
|
56
61
|
* // count: Number("int"), // required
|
|
57
62
|
* // algorithm: "STRING_VALUE", // required
|
|
63
|
+
* // category: "ALL" || "PROFILE_MATCH" || "SIMILAR" || "ONEHOOK_SUGGESTED", // required
|
|
64
|
+
* // availableCategories: [ // DiscoveryCategoryList // required
|
|
65
|
+
* // "ALL" || "PROFILE_MATCH" || "SIMILAR" || "ONEHOOK_SUGGESTED",
|
|
66
|
+
* // ],
|
|
58
67
|
* // };
|
|
59
68
|
*
|
|
60
69
|
* ```
|
|
@@ -67,12 +76,15 @@ declare const DiscoverCommand_base: {
|
|
|
67
76
|
*
|
|
68
77
|
* @throws {@link BadRequestError} (client fault)
|
|
69
78
|
*
|
|
79
|
+
* @throws {@link ForbiddenError} (client fault)
|
|
80
|
+
*
|
|
70
81
|
* @throws {@link InternalServerError} (server fault)
|
|
71
82
|
*
|
|
72
83
|
* @throws {@link OneHookServiceException}
|
|
73
84
|
* <p>Base exception class for all service exceptions from OneHook service.</p>
|
|
74
85
|
*
|
|
75
86
|
*
|
|
87
|
+
* @public
|
|
76
88
|
*/
|
|
77
89
|
export declare class DiscoverCommand extends DiscoverCommand_base {
|
|
78
90
|
/** @internal type navigation helper, not in runtime. */
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import { OneHookClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../OneHookClient";
|
|
2
|
+
import { RecordSuggestionRequest, RecordSuggestionResponse } from "../models/models_0";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export type { __MetadataBearer };
|
|
9
|
+
export { $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link RecordSuggestionCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface RecordSuggestionCommandInput extends RecordSuggestionRequest {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link RecordSuggestionCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface RecordSuggestionCommandOutput extends RecordSuggestionResponse, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const RecordSuggestionCommand_base: {
|
|
25
|
+
new (input: RecordSuggestionCommandInput): import("@smithy/smithy-client").CommandImpl<RecordSuggestionCommandInput, RecordSuggestionCommandOutput, OneHookClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (__0_0: RecordSuggestionCommandInput): import("@smithy/smithy-client").CommandImpl<RecordSuggestionCommandInput, RecordSuggestionCommandOutput, OneHookClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* Records a OneHook suggestion: OneHook AI's analysis of who the caller is looking for, after the
|
|
31
|
+
* caller explicitly asked. Nothing is returned but the stored suggestion's id; matching candidates
|
|
32
|
+
* appear in `Discover` as `MR_ONEHOOK` cards carrying `reasoning`. Super and above (403
|
|
33
|
+
* `PREMIUM_REQUIRED` otherwise); 503 when the embedding model is unavailable. Each member keeps at most
|
|
34
|
+
* 10 suggestions; the least useful one (by liked/shown history) is replaced. The prompt is never logged.
|
|
35
|
+
* @example
|
|
36
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
37
|
+
* ```javascript
|
|
38
|
+
* import { OneHookClient, RecordSuggestionCommand } from "onehook-api-client"; // ES Modules import
|
|
39
|
+
* // const { OneHookClient, RecordSuggestionCommand } = require("onehook-api-client"); // CommonJS import
|
|
40
|
+
* const client = new OneHookClient(config);
|
|
41
|
+
* const input = { // RecordSuggestionRequest
|
|
42
|
+
* prompt: "STRING_VALUE", // required
|
|
43
|
+
* reasoning: "STRING_VALUE", // required
|
|
44
|
+
* };
|
|
45
|
+
* const command = new RecordSuggestionCommand(input);
|
|
46
|
+
* const response = await client.send(command);
|
|
47
|
+
* // { // RecordSuggestionResponse
|
|
48
|
+
* // suggestionId: "STRING_VALUE", // required
|
|
49
|
+
* // };
|
|
50
|
+
*
|
|
51
|
+
* ```
|
|
52
|
+
*
|
|
53
|
+
* @param RecordSuggestionCommandInput - {@link RecordSuggestionCommandInput}
|
|
54
|
+
* @returns {@link RecordSuggestionCommandOutput}
|
|
55
|
+
* @see {@link RecordSuggestionCommandInput} for command's `input` shape.
|
|
56
|
+
* @see {@link RecordSuggestionCommandOutput} for command's `response` shape.
|
|
57
|
+
* @see {@link OneHookClientResolvedConfig | config} for OneHookClient's `config` shape.
|
|
58
|
+
*
|
|
59
|
+
* @throws {@link BadRequestError} (client fault)
|
|
60
|
+
*
|
|
61
|
+
* @throws {@link ForbiddenError} (client fault)
|
|
62
|
+
*
|
|
63
|
+
* @throws {@link InternalServerError} (server fault)
|
|
64
|
+
*
|
|
65
|
+
* @throws {@link OneHookServiceException}
|
|
66
|
+
* <p>Base exception class for all service exceptions from OneHook service.</p>
|
|
67
|
+
*
|
|
68
|
+
*
|
|
69
|
+
* @public
|
|
70
|
+
*/
|
|
71
|
+
export declare class RecordSuggestionCommand extends RecordSuggestionCommand_base {
|
|
72
|
+
/** @internal type navigation helper, not in runtime. */
|
|
73
|
+
protected static __types: {
|
|
74
|
+
api: {
|
|
75
|
+
input: RecordSuggestionRequest;
|
|
76
|
+
output: RecordSuggestionResponse;
|
|
77
|
+
};
|
|
78
|
+
sdk: {
|
|
79
|
+
input: RecordSuggestionCommandInput;
|
|
80
|
+
output: RecordSuggestionCommandOutput;
|
|
81
|
+
};
|
|
82
|
+
};
|
|
83
|
+
}
|
|
@@ -34,13 +34,12 @@ export * from "./UpdateUsernameCommand";
|
|
|
34
34
|
export * from "./ValidateInviteCommand";
|
|
35
35
|
export * from "./VerifyAdminLinkOtpCommand";
|
|
36
36
|
export * from "./DiscoverCommand";
|
|
37
|
-
export * from "./DiscoverByIntentCommand";
|
|
38
|
-
export * from "./DiscoverSuggestedCommand";
|
|
39
37
|
export * from "./GetNotificationPreferencesCommand";
|
|
40
38
|
export * from "./GetPreferencesCommand";
|
|
41
39
|
export * from "./GetReceivedLikesCommand";
|
|
42
40
|
export * from "./GetRosesCommand";
|
|
43
41
|
export * from "./IndexLocationCommand";
|
|
42
|
+
export * from "./RecordSuggestionCommand";
|
|
44
43
|
export * from "./RemoveLocationCommand";
|
|
45
44
|
export * from "./SwipeCommand";
|
|
46
45
|
export * from "./SwipeByUsernameCommand";
|
|
@@ -1091,12 +1091,43 @@ export interface VerifyAdminLinkOtpResponse {
|
|
|
1091
1091
|
userId: string | undefined;
|
|
1092
1092
|
username: string | undefined;
|
|
1093
1093
|
}
|
|
1094
|
+
/**
|
|
1095
|
+
* @public
|
|
1096
|
+
* @enum
|
|
1097
|
+
*/
|
|
1098
|
+
export declare const DiscoveryCategory: {
|
|
1099
|
+
/**
|
|
1100
|
+
* Mixed deck (default, every tier).
|
|
1101
|
+
*/
|
|
1102
|
+
readonly ALL: "ALL";
|
|
1103
|
+
/**
|
|
1104
|
+
* Mr. OneHook: every OneHook suggestion (asked and inferred).
|
|
1105
|
+
*/
|
|
1106
|
+
readonly ONEHOOK_SUGGESTED: "ONEHOOK_SUGGESTED";
|
|
1107
|
+
/**
|
|
1108
|
+
* OneHook Intelligence only: profiles whose details match the caller's details and preferences.
|
|
1109
|
+
*/
|
|
1110
|
+
readonly PROFILE_MATCH: "PROFILE_MATCH";
|
|
1111
|
+
/**
|
|
1112
|
+
* Mr. OneHook, inferred: people similar to those the caller keeps liking.
|
|
1113
|
+
*/
|
|
1114
|
+
readonly SIMILAR: "SIMILAR";
|
|
1115
|
+
};
|
|
1116
|
+
/**
|
|
1117
|
+
* @public
|
|
1118
|
+
*/
|
|
1119
|
+
export type DiscoveryCategory = typeof DiscoveryCategory[keyof typeof DiscoveryCategory];
|
|
1094
1120
|
/**
|
|
1095
1121
|
* @public
|
|
1096
1122
|
*/
|
|
1097
1123
|
export interface DiscoverRequest {
|
|
1098
1124
|
lat: number | undefined;
|
|
1099
1125
|
lon: number | undefined;
|
|
1126
|
+
/**
|
|
1127
|
+
* Optional. Omit (or `ALL`) for the mixed deck. Other values need Super or above.
|
|
1128
|
+
* @public
|
|
1129
|
+
*/
|
|
1130
|
+
category?: DiscoveryCategory | undefined;
|
|
1100
1131
|
}
|
|
1101
1132
|
/**
|
|
1102
1133
|
* @public
|
|
@@ -1104,8 +1135,8 @@ export interface DiscoverRequest {
|
|
|
1104
1135
|
*/
|
|
1105
1136
|
export declare const MatchFinder: {
|
|
1106
1137
|
/**
|
|
1107
|
-
* OneHook suggested the candidate: the caller asked OneHook AI
|
|
1108
|
-
* inferred the caller's
|
|
1138
|
+
* OneHook suggested the candidate: from a suggestion the caller asked OneHook AI for, or one OneHook
|
|
1139
|
+
* inferred from the caller's likes.
|
|
1109
1140
|
*/
|
|
1110
1141
|
readonly MR_ONEHOOK: "MR_ONEHOOK";
|
|
1111
1142
|
/**
|
|
@@ -1148,14 +1179,25 @@ export interface CandidateDto {
|
|
|
1148
1179
|
*/
|
|
1149
1180
|
matchFinderLabel: string | undefined;
|
|
1150
1181
|
/**
|
|
1151
|
-
*
|
|
1152
|
-
*
|
|
1182
|
+
* Why this candidate is shown, for the caller (e.g. "You asked OneHook for an outdoorsy reader ·
|
|
1183
|
+
* You both like hiking").
|
|
1184
|
+
* @public
|
|
1185
|
+
*/
|
|
1186
|
+
reasoning: string | undefined;
|
|
1187
|
+
/**
|
|
1188
|
+
* Only for `MR_ONEHOOK`: the OneHook suggestion that surfaced this candidate.
|
|
1189
|
+
* @public
|
|
1190
|
+
*/
|
|
1191
|
+
suggestionId?: string | undefined;
|
|
1192
|
+
/**
|
|
1193
|
+
* Only for `MR_ONEHOOK`: whether the caller asked OneHook (`EXPLICIT_REQUEST`) or OneHook inferred
|
|
1194
|
+
* the inclination from the caller's likes (`INFERRED_INCLINATION`).
|
|
1153
1195
|
* @public
|
|
1154
1196
|
*/
|
|
1155
1197
|
suggestionBasis?: SuggestionBasis | undefined;
|
|
1156
1198
|
/**
|
|
1157
|
-
* Only for `MR_ONEHOOK`: cosine similarity (-1 to 1) between the
|
|
1158
|
-
*
|
|
1199
|
+
* Only for `MR_ONEHOOK`: cosine similarity (-1 to 1) between the suggestion and the candidate's
|
|
1200
|
+
* profile. Higher is closer.
|
|
1159
1201
|
* @public
|
|
1160
1202
|
*/
|
|
1161
1203
|
similarity?: number | undefined;
|
|
@@ -1167,18 +1209,16 @@ export interface DiscoverResponse {
|
|
|
1167
1209
|
candidates: (CandidateDto)[] | undefined;
|
|
1168
1210
|
count: number | undefined;
|
|
1169
1211
|
algorithm: string | undefined;
|
|
1170
|
-
}
|
|
1171
|
-
/**
|
|
1172
|
-
* @public
|
|
1173
|
-
*/
|
|
1174
|
-
export interface DiscoverByIntentRequest {
|
|
1175
|
-
lat: number | undefined;
|
|
1176
|
-
lon: number | undefined;
|
|
1177
1212
|
/**
|
|
1178
|
-
*
|
|
1213
|
+
* The category that was applied.
|
|
1214
|
+
* @public
|
|
1215
|
+
*/
|
|
1216
|
+
category: DiscoveryCategory | undefined;
|
|
1217
|
+
/**
|
|
1218
|
+
* Categories the caller's tier may request, for rendering a selector.
|
|
1179
1219
|
* @public
|
|
1180
1220
|
*/
|
|
1181
|
-
|
|
1221
|
+
availableCategories: (DiscoveryCategory)[] | undefined;
|
|
1182
1222
|
}
|
|
1183
1223
|
/**
|
|
1184
1224
|
* @public
|
|
@@ -1336,6 +1376,27 @@ export interface LocationRequest {
|
|
|
1336
1376
|
lat: number | undefined;
|
|
1337
1377
|
lon: number | undefined;
|
|
1338
1378
|
}
|
|
1379
|
+
/**
|
|
1380
|
+
* @public
|
|
1381
|
+
*/
|
|
1382
|
+
export interface RecordSuggestionRequest {
|
|
1383
|
+
/**
|
|
1384
|
+
* OneHook AI's analysis of what the caller wants (3 to 1000 characters). Embedded, never logged.
|
|
1385
|
+
* @public
|
|
1386
|
+
*/
|
|
1387
|
+
prompt: string | undefined;
|
|
1388
|
+
/**
|
|
1389
|
+
* Why OneHook is suggesting these people, shown to the caller on each card (1 to 280 characters).
|
|
1390
|
+
* @public
|
|
1391
|
+
*/
|
|
1392
|
+
reasoning: string | undefined;
|
|
1393
|
+
}
|
|
1394
|
+
/**
|
|
1395
|
+
* @public
|
|
1396
|
+
*/
|
|
1397
|
+
export interface RecordSuggestionResponse {
|
|
1398
|
+
suggestionId: string | undefined;
|
|
1399
|
+
}
|
|
1339
1400
|
/**
|
|
1340
1401
|
* @public
|
|
1341
1402
|
*/
|
|
@@ -8,9 +8,7 @@ import { CreateMediaUploadUrlCommandInput, CreateMediaUploadUrlCommandOutput } f
|
|
|
8
8
|
import { DeleteMatchMessagesCommandInput, DeleteMatchMessagesCommandOutput } from "../commands/DeleteMatchMessagesCommand";
|
|
9
9
|
import { DeleteProfileCommandInput, DeleteProfileCommandOutput } from "../commands/DeleteProfileCommand";
|
|
10
10
|
import { DeletePushTokenCommandInput, DeletePushTokenCommandOutput } from "../commands/DeletePushTokenCommand";
|
|
11
|
-
import { DiscoverByIntentCommandInput, DiscoverByIntentCommandOutput } from "../commands/DiscoverByIntentCommand";
|
|
12
11
|
import { DiscoverCommandInput, DiscoverCommandOutput } from "../commands/DiscoverCommand";
|
|
13
|
-
import { DiscoverSuggestedCommandInput, DiscoverSuggestedCommandOutput } from "../commands/DiscoverSuggestedCommand";
|
|
14
12
|
import { GenerateDownloadUrlCommandInput, GenerateDownloadUrlCommandOutput } from "../commands/GenerateDownloadUrlCommand";
|
|
15
13
|
import { GenerateInviteCommandInput, GenerateInviteCommandOutput } from "../commands/GenerateInviteCommand";
|
|
16
14
|
import { GenerateUploadUrlCommandInput, GenerateUploadUrlCommandOutput } from "../commands/GenerateUploadUrlCommand";
|
|
@@ -37,6 +35,7 @@ import { InitUserCommandInput, InitUserCommandOutput } from "../commands/InitUse
|
|
|
37
35
|
import { LinkEmailCommandInput, LinkEmailCommandOutput } from "../commands/LinkEmailCommand";
|
|
38
36
|
import { LinkSocialCommandInput, LinkSocialCommandOutput } from "../commands/LinkSocialCommand";
|
|
39
37
|
import { ListMyDevicesCommandInput, ListMyDevicesCommandOutput } from "../commands/ListMyDevicesCommand";
|
|
38
|
+
import { RecordSuggestionCommandInput, RecordSuggestionCommandOutput } from "../commands/RecordSuggestionCommand";
|
|
40
39
|
import { RegisterDeviceCommandInput, RegisterDeviceCommandOutput } from "../commands/RegisterDeviceCommand";
|
|
41
40
|
import { RegisterPhoneCommandInput, RegisterPhoneCommandOutput } from "../commands/RegisterPhoneCommand";
|
|
42
41
|
import { RegisterPushTokenCommandInput, RegisterPushTokenCommandOutput } from "../commands/RegisterPushTokenCommand";
|
|
@@ -206,14 +205,6 @@ export declare const se_VerifyAdminLinkOtpCommand: (input: VerifyAdminLinkOtpCom
|
|
|
206
205
|
* serializeAws_restJson1DiscoverCommand
|
|
207
206
|
*/
|
|
208
207
|
export declare const se_DiscoverCommand: (input: DiscoverCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
209
|
-
/**
|
|
210
|
-
* serializeAws_restJson1DiscoverByIntentCommand
|
|
211
|
-
*/
|
|
212
|
-
export declare const se_DiscoverByIntentCommand: (input: DiscoverByIntentCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
213
|
-
/**
|
|
214
|
-
* serializeAws_restJson1DiscoverSuggestedCommand
|
|
215
|
-
*/
|
|
216
|
-
export declare const se_DiscoverSuggestedCommand: (input: DiscoverSuggestedCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
217
208
|
/**
|
|
218
209
|
* serializeAws_restJson1GetNotificationPreferencesCommand
|
|
219
210
|
*/
|
|
@@ -234,6 +225,10 @@ export declare const se_GetRosesCommand: (input: GetRosesCommandInput, context:
|
|
|
234
225
|
* serializeAws_restJson1IndexLocationCommand
|
|
235
226
|
*/
|
|
236
227
|
export declare const se_IndexLocationCommand: (input: IndexLocationCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
228
|
+
/**
|
|
229
|
+
* serializeAws_restJson1RecordSuggestionCommand
|
|
230
|
+
*/
|
|
231
|
+
export declare const se_RecordSuggestionCommand: (input: RecordSuggestionCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
237
232
|
/**
|
|
238
233
|
* serializeAws_restJson1RemoveLocationCommand
|
|
239
234
|
*/
|
|
@@ -454,14 +449,6 @@ export declare const de_VerifyAdminLinkOtpCommand: (output: __HttpResponse, cont
|
|
|
454
449
|
* deserializeAws_restJson1DiscoverCommand
|
|
455
450
|
*/
|
|
456
451
|
export declare const de_DiscoverCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<DiscoverCommandOutput>;
|
|
457
|
-
/**
|
|
458
|
-
* deserializeAws_restJson1DiscoverByIntentCommand
|
|
459
|
-
*/
|
|
460
|
-
export declare const de_DiscoverByIntentCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<DiscoverByIntentCommandOutput>;
|
|
461
|
-
/**
|
|
462
|
-
* deserializeAws_restJson1DiscoverSuggestedCommand
|
|
463
|
-
*/
|
|
464
|
-
export declare const de_DiscoverSuggestedCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<DiscoverSuggestedCommandOutput>;
|
|
465
452
|
/**
|
|
466
453
|
* deserializeAws_restJson1GetNotificationPreferencesCommand
|
|
467
454
|
*/
|
|
@@ -482,6 +469,10 @@ export declare const de_GetRosesCommand: (output: __HttpResponse, context: __Ser
|
|
|
482
469
|
* deserializeAws_restJson1IndexLocationCommand
|
|
483
470
|
*/
|
|
484
471
|
export declare const de_IndexLocationCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<IndexLocationCommandOutput>;
|
|
472
|
+
/**
|
|
473
|
+
* deserializeAws_restJson1RecordSuggestionCommand
|
|
474
|
+
*/
|
|
475
|
+
export declare const de_RecordSuggestionCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<RecordSuggestionCommandOutput>;
|
|
485
476
|
/**
|
|
486
477
|
* deserializeAws_restJson1RemoveLocationCommand
|
|
487
478
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export declare const TELEMETRY_CATALOG_VERSION = "1.
|
|
2
|
-
export declare const TELEMETRY_CATALOG_HASH = "
|
|
1
|
+
export declare const TELEMETRY_CATALOG_VERSION = "1.7.0";
|
|
2
|
+
export declare const TELEMETRY_CATALOG_HASH = "4a3328962531236a";
|
|
3
3
|
/** Every signal type the ingest accepts. */
|
|
4
4
|
export declare const SignalType: {
|
|
5
5
|
readonly SCREEN_VIEW: "screen_view";
|
|
@@ -20,6 +20,7 @@ export declare const SignalType: {
|
|
|
20
20
|
readonly HOOKED_STATE_VIEW: "hooked_state_view";
|
|
21
21
|
readonly LIKES_YOU_VIEW: "likes_you_view";
|
|
22
22
|
readonly SAFETY_UI_OPEN: "safety_ui_open";
|
|
23
|
+
readonly REPORT_FLOW: "report_flow";
|
|
23
24
|
};
|
|
24
25
|
export type SignalType = (typeof SignalType)[keyof typeof SignalType];
|
|
25
26
|
/** Client platform (from the X-OneHook-Platform header). */
|
|
@@ -185,6 +186,45 @@ export declare const HookedStateAction: {
|
|
|
185
186
|
readonly DISMISS: "dismiss";
|
|
186
187
|
};
|
|
187
188
|
export type HookedStateAction = (typeof HookedStateAction)[keyof typeof HookedStateAction];
|
|
189
|
+
/** Member-report reason category the user chose. Mirrors the backend ReportCategory taxonomy (packages/matching ReportCategory / MODERATION.md section 1) so telemetry segments by the same codes the report API records. Carries no free text. */
|
|
190
|
+
export declare const ReportCategory: {
|
|
191
|
+
readonly HARASSMENT: "HARASSMENT";
|
|
192
|
+
readonly THREATS_VIOLENCE: "THREATS_VIOLENCE";
|
|
193
|
+
readonly SEXUAL_CONTENT_NONCONSENT: "SEXUAL_CONTENT_NONCONSENT";
|
|
194
|
+
readonly MINOR_SAFETY: "MINOR_SAFETY";
|
|
195
|
+
readonly SCAM_FRAUD: "SCAM_FRAUD";
|
|
196
|
+
readonly FAKE_IMPERSONATION: "FAKE_IMPERSONATION";
|
|
197
|
+
readonly SPAM_PROMOTION: "SPAM_PROMOTION";
|
|
198
|
+
readonly HATE: "HATE";
|
|
199
|
+
readonly SELF_HARM_CONCERN: "SELF_HARM_CONCERN";
|
|
200
|
+
readonly OFF_PLATFORM_HARM: "OFF_PLATFORM_HARM";
|
|
201
|
+
readonly OTHER: "OTHER";
|
|
202
|
+
};
|
|
203
|
+
export type ReportCategory = (typeof ReportCategory)[keyof typeof ReportCategory];
|
|
204
|
+
/** Where in the app the member started the report flow from (not the reported content). */
|
|
205
|
+
export declare const ReportSource: {
|
|
206
|
+
readonly CHAT: "chat";
|
|
207
|
+
readonly PROFILE: "profile";
|
|
208
|
+
};
|
|
209
|
+
export type ReportSource = (typeof ReportSource)[keyof typeof ReportSource];
|
|
210
|
+
/** Step in the member-report flow a report_flow signal records. The flow mixes presses, "shown" impressions and upload outcomes, so it is a signal (not a ui_interaction). Carries only the ReportCategory / ReportSource / evidence dimensions — never message text, user ids or report free text. */
|
|
211
|
+
export declare const ReportEvent: {
|
|
212
|
+
readonly REPORT_OPEN: "report.open";
|
|
213
|
+
readonly REPORT_CATEGORY_SELECTED: "report.category_selected";
|
|
214
|
+
readonly REPORT_NOT_REPORTABLE_SHOWN: "report.not_reportable_shown";
|
|
215
|
+
readonly REPORT_NOT_REPORTABLE_BLOCK: "report.not_reportable_block";
|
|
216
|
+
readonly REPORT_SELF_HARM_RESOURCES_SHOWN: "report.self_harm_resources_shown";
|
|
217
|
+
readonly REPORT_EVIDENCE_TOGGLE: "report.evidence_toggle";
|
|
218
|
+
readonly REPORT_ATTACHMENTS_TOGGLE: "report.attachments_toggle";
|
|
219
|
+
readonly REPORT_EVIDENCE_PREVIEW: "report.evidence_preview";
|
|
220
|
+
readonly REPORT_NUDGE_SHOWN: "report.nudge_shown";
|
|
221
|
+
readonly REPORT_SUBMIT_WITH_EVIDENCE: "report.submit_with_evidence";
|
|
222
|
+
readonly REPORT_SUBMIT_WITHOUT_EVIDENCE: "report.submit_without_evidence";
|
|
223
|
+
readonly REPORT_SUBMIT_FAILED: "report.submit_failed";
|
|
224
|
+
readonly REPORT_EVIDENCE_UPLOAD_SUCCEEDED: "report.evidence_upload_succeeded";
|
|
225
|
+
readonly REPORT_EVIDENCE_UPLOAD_FAILED: "report.evidence_upload_failed";
|
|
226
|
+
};
|
|
227
|
+
export type ReportEvent = (typeof ReportEvent)[keyof typeof ReportEvent];
|
|
188
228
|
/** Registered UI element ids (`<screen>.<subject>`). Use with trackUi / data-track-id. */
|
|
189
229
|
export declare const UiElement: {
|
|
190
230
|
readonly NAV_TAB_SELECT: "nav.tab_select";
|
|
@@ -291,6 +331,8 @@ export declare const UiElement: {
|
|
|
291
331
|
readonly CHAT_PROFILE_OPEN: "chat.profile_open";
|
|
292
332
|
readonly CHAT_SAFETY_MENU_OPEN: "chat.safety_menu_open";
|
|
293
333
|
readonly CHAT_UNMATCH: "chat.unmatch";
|
|
334
|
+
readonly CHAT_REPORT_OPEN: "chat.report_open";
|
|
335
|
+
readonly CHAT_BLOCK_OPEN: "chat.block_open";
|
|
294
336
|
readonly CHAT_REPORT_SPAM: "chat.report_spam";
|
|
295
337
|
readonly CHAT_REPORT_BLOCK: "chat.report_block";
|
|
296
338
|
readonly CHAT_BLOCK_CONFIRM: "chat.block_confirm";
|
package/package.json
CHANGED