onehook-api-client 1.0.32 → 1.0.34

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.
Files changed (30) hide show
  1. package/README.md +21 -0
  2. package/dist-cjs/OneHook.js +6 -0
  3. package/dist-cjs/commands/GetSuggestionsCommand.js +21 -0
  4. package/dist-cjs/commands/RemoveOneHookSuggestionCommand.js +21 -0
  5. package/dist-cjs/commands/RemoveSuggestionCommand.js +21 -0
  6. package/dist-cjs/commands/index.js +3 -0
  7. package/dist-cjs/protocols/Aws_restJson1.js +75 -3
  8. package/dist-cjs/telemetry/index.js +18 -2
  9. package/dist-es/OneHook.js +6 -0
  10. package/dist-es/commands/GetSuggestionsCommand.js +17 -0
  11. package/dist-es/commands/RemoveOneHookSuggestionCommand.js +17 -0
  12. package/dist-es/commands/RemoveSuggestionCommand.js +17 -0
  13. package/dist-es/commands/index.js +3 -0
  14. package/dist-es/protocols/Aws_restJson1.js +66 -0
  15. package/dist-es/telemetry/index.js +18 -2
  16. package/dist-types/OneHook.d.ts +24 -0
  17. package/dist-types/OneHookClient.d.ts +5 -2
  18. package/dist-types/commands/GetPreferencesCommand.d.ts +5 -0
  19. package/dist-types/commands/GetSuggestionsCommand.d.ts +84 -0
  20. package/dist-types/commands/RecordSuggestionCommand.d.ts +5 -5
  21. package/dist-types/commands/RemoveOneHookSuggestionCommand.d.ts +72 -0
  22. package/dist-types/commands/RemoveSuggestionCommand.d.ts +72 -0
  23. package/dist-types/commands/index.d.ts +3 -0
  24. package/dist-types/models/models_0.d.ts +62 -0
  25. package/dist-types/protocols/Aws_restJson1.d.ts +27 -0
  26. package/dist-types/telemetry/index.d.ts +10 -2
  27. package/package.json +1 -1
  28. package/telemetry/TelemetryCatalog.kt +12 -4
  29. package/telemetry/TelemetryCatalog.swift +20 -4
  30. package/telemetry/telemetry-catalog.json +136 -2
@@ -32,6 +32,7 @@ import { GetProfileCommandInput, GetProfileCommandOutput } from "./commands/GetP
32
32
  import { GetReceivedLikesCommandInput, GetReceivedLikesCommandOutput } from "./commands/GetReceivedLikesCommand";
33
33
  import { GetRosesCommandInput, GetRosesCommandOutput } from "./commands/GetRosesCommand";
34
34
  import { GetStateCommandInput, GetStateCommandOutput } from "./commands/GetStateCommand";
35
+ import { GetSuggestionsCommandInput, GetSuggestionsCommandOutput } from "./commands/GetSuggestionsCommand";
35
36
  import { GetUserByEmailCommandInput, GetUserByEmailCommandOutput } from "./commands/GetUserByEmailCommand";
36
37
  import { GetUserCommandInput, GetUserCommandOutput } from "./commands/GetUserCommand";
37
38
  import { GetUserIdByUsernameCommandInput, GetUserIdByUsernameCommandOutput } from "./commands/GetUserIdByUsernameCommand";
@@ -45,6 +46,8 @@ import { RegisterDeviceCommandInput, RegisterDeviceCommandOutput } from "./comma
45
46
  import { RegisterPhoneCommandInput, RegisterPhoneCommandOutput } from "./commands/RegisterPhoneCommand";
46
47
  import { RegisterPushTokenCommandInput, RegisterPushTokenCommandOutput } from "./commands/RegisterPushTokenCommand";
47
48
  import { RemoveLocationCommandInput, RemoveLocationCommandOutput } from "./commands/RemoveLocationCommand";
49
+ import { RemoveOneHookSuggestionCommandInput, RemoveOneHookSuggestionCommandOutput } from "./commands/RemoveOneHookSuggestionCommand";
50
+ import { RemoveSuggestionCommandInput, RemoveSuggestionCommandOutput } from "./commands/RemoveSuggestionCommand";
48
51
  import { RequestEmailOtpCommandInput, RequestEmailOtpCommandOutput } from "./commands/RequestEmailOtpCommand";
49
52
  import { RequestPhoneOtpCommandInput, RequestPhoneOtpCommandOutput } from "./commands/RequestPhoneOtpCommand";
50
53
  import { RequestPhoneUpdateOtpCommandInput, RequestPhoneUpdateOtpCommandOutput } from "./commands/RequestPhoneUpdateOtpCommand";
@@ -332,6 +335,13 @@ export interface OneHook {
332
335
  getRoses(args: GetRosesCommandInput, options?: __HttpHandlerOptions): Promise<GetRosesCommandOutput>;
333
336
  getRoses(args: GetRosesCommandInput, cb: (err: any, data?: GetRosesCommandOutput) => void): void;
334
337
  getRoses(args: GetRosesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetRosesCommandOutput) => void): void;
338
+ /**
339
+ * @see {@link GetSuggestionsCommand}
340
+ */
341
+ getSuggestions(): Promise<GetSuggestionsCommandOutput>;
342
+ getSuggestions(args: GetSuggestionsCommandInput, options?: __HttpHandlerOptions): Promise<GetSuggestionsCommandOutput>;
343
+ getSuggestions(args: GetSuggestionsCommandInput, cb: (err: any, data?: GetSuggestionsCommandOutput) => void): void;
344
+ getSuggestions(args: GetSuggestionsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetSuggestionsCommandOutput) => void): void;
335
345
  /**
336
346
  * @see {@link IndexLocationCommand}
337
347
  */
@@ -350,6 +360,20 @@ export interface OneHook {
350
360
  removeLocation(args: RemoveLocationCommandInput, options?: __HttpHandlerOptions): Promise<RemoveLocationCommandOutput>;
351
361
  removeLocation(args: RemoveLocationCommandInput, cb: (err: any, data?: RemoveLocationCommandOutput) => void): void;
352
362
  removeLocation(args: RemoveLocationCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: RemoveLocationCommandOutput) => void): void;
363
+ /**
364
+ * @see {@link RemoveOneHookSuggestionCommand}
365
+ */
366
+ removeOneHookSuggestion(): Promise<RemoveOneHookSuggestionCommandOutput>;
367
+ removeOneHookSuggestion(args: RemoveOneHookSuggestionCommandInput, options?: __HttpHandlerOptions): Promise<RemoveOneHookSuggestionCommandOutput>;
368
+ removeOneHookSuggestion(args: RemoveOneHookSuggestionCommandInput, cb: (err: any, data?: RemoveOneHookSuggestionCommandOutput) => void): void;
369
+ removeOneHookSuggestion(args: RemoveOneHookSuggestionCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: RemoveOneHookSuggestionCommandOutput) => void): void;
370
+ /**
371
+ * @see {@link RemoveSuggestionCommand}
372
+ */
373
+ removeSuggestion(): Promise<RemoveSuggestionCommandOutput>;
374
+ removeSuggestion(args: RemoveSuggestionCommandInput, options?: __HttpHandlerOptions): Promise<RemoveSuggestionCommandOutput>;
375
+ removeSuggestion(args: RemoveSuggestionCommandInput, cb: (err: any, data?: RemoveSuggestionCommandOutput) => void): void;
376
+ removeSuggestion(args: RemoveSuggestionCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: RemoveSuggestionCommandOutput) => void): void;
353
377
  /**
354
378
  * @see {@link SwipeCommand}
355
379
  */
@@ -32,6 +32,7 @@ import { GetProfileCommandInput, GetProfileCommandOutput } from "./commands/GetP
32
32
  import { GetReceivedLikesCommandInput, GetReceivedLikesCommandOutput } from "./commands/GetReceivedLikesCommand";
33
33
  import { GetRosesCommandInput, GetRosesCommandOutput } from "./commands/GetRosesCommand";
34
34
  import { GetStateCommandInput, GetStateCommandOutput } from "./commands/GetStateCommand";
35
+ import { GetSuggestionsCommandInput, GetSuggestionsCommandOutput } from "./commands/GetSuggestionsCommand";
35
36
  import { GetUserByEmailCommandInput, GetUserByEmailCommandOutput } from "./commands/GetUserByEmailCommand";
36
37
  import { GetUserCommandInput, GetUserCommandOutput } from "./commands/GetUserCommand";
37
38
  import { GetUserIdByUsernameCommandInput, GetUserIdByUsernameCommandOutput } from "./commands/GetUserIdByUsernameCommand";
@@ -45,6 +46,8 @@ import { RegisterDeviceCommandInput, RegisterDeviceCommandOutput } from "./comma
45
46
  import { RegisterPhoneCommandInput, RegisterPhoneCommandOutput } from "./commands/RegisterPhoneCommand";
46
47
  import { RegisterPushTokenCommandInput, RegisterPushTokenCommandOutput } from "./commands/RegisterPushTokenCommand";
47
48
  import { RemoveLocationCommandInput, RemoveLocationCommandOutput } from "./commands/RemoveLocationCommand";
49
+ import { RemoveOneHookSuggestionCommandInput, RemoveOneHookSuggestionCommandOutput } from "./commands/RemoveOneHookSuggestionCommand";
50
+ import { RemoveSuggestionCommandInput, RemoveSuggestionCommandOutput } from "./commands/RemoveSuggestionCommand";
48
51
  import { RequestEmailOtpCommandInput, RequestEmailOtpCommandOutput } from "./commands/RequestEmailOtpCommand";
49
52
  import { RequestPhoneOtpCommandInput, RequestPhoneOtpCommandOutput } from "./commands/RequestPhoneOtpCommand";
50
53
  import { RequestPhoneUpdateOtpCommandInput, RequestPhoneUpdateOtpCommandOutput } from "./commands/RequestPhoneUpdateOtpCommand";
@@ -79,11 +82,11 @@ export { __Client };
79
82
  /**
80
83
  * @public
81
84
  */
82
- export type ServiceInputTypes = AuthSocialCommandInput | CompleteLivenessSessionCommandInput | CompleteOnboardingCommandInput | CorrectBirthDateCommandInput | CreateAdminInviteCommandInput | CreateLivenessSessionCommandInput | CreateMediaDownloadUrlCommandInput | CreateMediaUploadUrlCommandInput | DeleteMatchMessagesCommandInput | DeleteProfileCommandInput | DeletePushTokenCommandInput | DiscoverCommandInput | GenerateDownloadUrlCommandInput | GenerateInviteCommandInput | GenerateUploadUrlCommandInput | GetAccountStateCommandInput | GetAdminPhoneStatusCommandInput | GetAiContextMatchCommandInput | GetBirthDateStatusCommandInput | GetChatSettingsCommandInput | GetCredentialReadinessCommandInput | GetLivenessStatusCommandInput | GetMatchCommandInput | GetMyProfileCommandInput | GetNotificationPreferencesCommandInput | GetParticipantRegistryCommandInput | GetPlaceCommandInput | GetPreferencesCommandInput | GetPreservationHoldCommandInput | GetProfileCommandInput | GetReceivedLikesCommandInput | GetRosesCommandInput | GetStateCommandInput | GetUserByEmailCommandInput | GetUserCommandInput | GetUserIdByUsernameCommandInput | IndexLocationCommandInput | InitUserCommandInput | LinkEmailCommandInput | LinkSocialCommandInput | ListMyDevicesCommandInput | RecordSuggestionCommandInput | RegisterDeviceCommandInput | RegisterPhoneCommandInput | RegisterPushTokenCommandInput | RemoveLocationCommandInput | RequestEmailOtpCommandInput | RequestPhoneOtpCommandInput | RequestPhoneUpdateOtpCommandInput | RevokeDeviceCommandInput | RevokeUserAccessCommandInput | SearchPlacesCommandInput | SendAdminLinkOtpCommandInput | SetAccountStateCommandInput | SetPreservationHoldCommandInput | SwipeByUsernameCommandInput | SwipeCommandInput | UnhookCommandInput | UnlinkSocialCommandInput | UpdateChatSettingsCommandInput | UpdateEntitlementsCommandInput | UpdatePhoneNumberCommandInput | UpdatePreferencesCommandInput | UpdateProfileCommandInput | UpdateUsernameCommandInput | UpgradeUserCommandInput | ValidateInviteCommandInput | VerifyAdminLinkOtpCommandInput;
85
+ export type ServiceInputTypes = AuthSocialCommandInput | CompleteLivenessSessionCommandInput | CompleteOnboardingCommandInput | CorrectBirthDateCommandInput | CreateAdminInviteCommandInput | CreateLivenessSessionCommandInput | CreateMediaDownloadUrlCommandInput | CreateMediaUploadUrlCommandInput | DeleteMatchMessagesCommandInput | DeleteProfileCommandInput | DeletePushTokenCommandInput | DiscoverCommandInput | GenerateDownloadUrlCommandInput | GenerateInviteCommandInput | GenerateUploadUrlCommandInput | GetAccountStateCommandInput | GetAdminPhoneStatusCommandInput | GetAiContextMatchCommandInput | GetBirthDateStatusCommandInput | GetChatSettingsCommandInput | GetCredentialReadinessCommandInput | GetLivenessStatusCommandInput | GetMatchCommandInput | GetMyProfileCommandInput | GetNotificationPreferencesCommandInput | GetParticipantRegistryCommandInput | GetPlaceCommandInput | GetPreferencesCommandInput | GetPreservationHoldCommandInput | GetProfileCommandInput | GetReceivedLikesCommandInput | GetRosesCommandInput | GetStateCommandInput | GetSuggestionsCommandInput | GetUserByEmailCommandInput | GetUserCommandInput | GetUserIdByUsernameCommandInput | IndexLocationCommandInput | InitUserCommandInput | LinkEmailCommandInput | LinkSocialCommandInput | ListMyDevicesCommandInput | RecordSuggestionCommandInput | RegisterDeviceCommandInput | RegisterPhoneCommandInput | RegisterPushTokenCommandInput | RemoveLocationCommandInput | RemoveOneHookSuggestionCommandInput | RemoveSuggestionCommandInput | RequestEmailOtpCommandInput | RequestPhoneOtpCommandInput | RequestPhoneUpdateOtpCommandInput | RevokeDeviceCommandInput | RevokeUserAccessCommandInput | SearchPlacesCommandInput | SendAdminLinkOtpCommandInput | SetAccountStateCommandInput | SetPreservationHoldCommandInput | SwipeByUsernameCommandInput | SwipeCommandInput | UnhookCommandInput | UnlinkSocialCommandInput | UpdateChatSettingsCommandInput | UpdateEntitlementsCommandInput | UpdatePhoneNumberCommandInput | UpdatePreferencesCommandInput | UpdateProfileCommandInput | UpdateUsernameCommandInput | UpgradeUserCommandInput | ValidateInviteCommandInput | VerifyAdminLinkOtpCommandInput;
83
86
  /**
84
87
  * @public
85
88
  */
86
- export type ServiceOutputTypes = AuthSocialCommandOutput | CompleteLivenessSessionCommandOutput | CompleteOnboardingCommandOutput | CorrectBirthDateCommandOutput | CreateAdminInviteCommandOutput | CreateLivenessSessionCommandOutput | CreateMediaDownloadUrlCommandOutput | CreateMediaUploadUrlCommandOutput | DeleteMatchMessagesCommandOutput | DeleteProfileCommandOutput | DeletePushTokenCommandOutput | DiscoverCommandOutput | GenerateDownloadUrlCommandOutput | GenerateInviteCommandOutput | GenerateUploadUrlCommandOutput | GetAccountStateCommandOutput | GetAdminPhoneStatusCommandOutput | GetAiContextMatchCommandOutput | GetBirthDateStatusCommandOutput | GetChatSettingsCommandOutput | GetCredentialReadinessCommandOutput | GetLivenessStatusCommandOutput | GetMatchCommandOutput | GetMyProfileCommandOutput | GetNotificationPreferencesCommandOutput | GetParticipantRegistryCommandOutput | GetPlaceCommandOutput | GetPreferencesCommandOutput | GetPreservationHoldCommandOutput | GetProfileCommandOutput | GetReceivedLikesCommandOutput | GetRosesCommandOutput | GetStateCommandOutput | GetUserByEmailCommandOutput | GetUserCommandOutput | GetUserIdByUsernameCommandOutput | IndexLocationCommandOutput | InitUserCommandOutput | LinkEmailCommandOutput | LinkSocialCommandOutput | ListMyDevicesCommandOutput | RecordSuggestionCommandOutput | RegisterDeviceCommandOutput | RegisterPhoneCommandOutput | RegisterPushTokenCommandOutput | RemoveLocationCommandOutput | RequestEmailOtpCommandOutput | RequestPhoneOtpCommandOutput | RequestPhoneUpdateOtpCommandOutput | RevokeDeviceCommandOutput | RevokeUserAccessCommandOutput | SearchPlacesCommandOutput | SendAdminLinkOtpCommandOutput | SetAccountStateCommandOutput | SetPreservationHoldCommandOutput | SwipeByUsernameCommandOutput | SwipeCommandOutput | UnhookCommandOutput | UnlinkSocialCommandOutput | UpdateChatSettingsCommandOutput | UpdateEntitlementsCommandOutput | UpdatePhoneNumberCommandOutput | UpdatePreferencesCommandOutput | UpdateProfileCommandOutput | UpdateUsernameCommandOutput | UpgradeUserCommandOutput | ValidateInviteCommandOutput | VerifyAdminLinkOtpCommandOutput;
89
+ export type ServiceOutputTypes = AuthSocialCommandOutput | CompleteLivenessSessionCommandOutput | CompleteOnboardingCommandOutput | CorrectBirthDateCommandOutput | CreateAdminInviteCommandOutput | CreateLivenessSessionCommandOutput | CreateMediaDownloadUrlCommandOutput | CreateMediaUploadUrlCommandOutput | DeleteMatchMessagesCommandOutput | DeleteProfileCommandOutput | DeletePushTokenCommandOutput | DiscoverCommandOutput | GenerateDownloadUrlCommandOutput | GenerateInviteCommandOutput | GenerateUploadUrlCommandOutput | GetAccountStateCommandOutput | GetAdminPhoneStatusCommandOutput | GetAiContextMatchCommandOutput | GetBirthDateStatusCommandOutput | GetChatSettingsCommandOutput | GetCredentialReadinessCommandOutput | GetLivenessStatusCommandOutput | GetMatchCommandOutput | GetMyProfileCommandOutput | GetNotificationPreferencesCommandOutput | GetParticipantRegistryCommandOutput | GetPlaceCommandOutput | GetPreferencesCommandOutput | GetPreservationHoldCommandOutput | GetProfileCommandOutput | GetReceivedLikesCommandOutput | GetRosesCommandOutput | GetStateCommandOutput | GetSuggestionsCommandOutput | GetUserByEmailCommandOutput | GetUserCommandOutput | GetUserIdByUsernameCommandOutput | IndexLocationCommandOutput | InitUserCommandOutput | LinkEmailCommandOutput | LinkSocialCommandOutput | ListMyDevicesCommandOutput | RecordSuggestionCommandOutput | RegisterDeviceCommandOutput | RegisterPhoneCommandOutput | RegisterPushTokenCommandOutput | RemoveLocationCommandOutput | RemoveOneHookSuggestionCommandOutput | RemoveSuggestionCommandOutput | RequestEmailOtpCommandOutput | RequestPhoneOtpCommandOutput | RequestPhoneUpdateOtpCommandOutput | RevokeDeviceCommandOutput | RevokeUserAccessCommandOutput | SearchPlacesCommandOutput | SendAdminLinkOtpCommandOutput | SetAccountStateCommandOutput | SetPreservationHoldCommandOutput | SwipeByUsernameCommandOutput | SwipeCommandOutput | UnhookCommandOutput | UnlinkSocialCommandOutput | UpdateChatSettingsCommandOutput | UpdateEntitlementsCommandOutput | UpdatePhoneNumberCommandOutput | UpdatePreferencesCommandOutput | UpdateProfileCommandOutput | UpdateUsernameCommandOutput | UpgradeUserCommandOutput | ValidateInviteCommandOutput | VerifyAdminLinkOtpCommandOutput;
87
90
  /**
88
91
  * @public
89
92
  */
@@ -42,6 +42,11 @@ declare const GetPreferencesCommand_base: {
42
42
  * const response = await client.send(command);
43
43
  * // { // UserPreferencesResponse
44
44
  * // userId: "STRING_VALUE", // required
45
+ * // currentSuggestion: { // CurrentSuggestion
46
+ * // suggestionId: "STRING_VALUE", // required
47
+ * // reasoning: "STRING_VALUE", // required
48
+ * // createdAt: "STRING_VALUE", // required
49
+ * // },
45
50
  * // minAge: Number("int"),
46
51
  * // maxAge: Number("int"),
47
52
  * // maxDistanceKm: Number("int"),
@@ -0,0 +1,84 @@
1
+ import { OneHookClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../OneHookClient";
2
+ import { GetSuggestionsRequest, GetSuggestionsResponse } 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 GetSuggestionsCommand}.
14
+ */
15
+ export interface GetSuggestionsCommandInput extends GetSuggestionsRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link GetSuggestionsCommand}.
21
+ */
22
+ export interface GetSuggestionsCommandOutput extends GetSuggestionsResponse, __MetadataBearer {
23
+ }
24
+ declare const GetSuggestionsCommand_base: {
25
+ new (input: GetSuggestionsCommandInput): import("@smithy/smithy-client").CommandImpl<GetSuggestionsCommandInput, GetSuggestionsCommandOutput, OneHookClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (...[input]: [] | [GetSuggestionsCommandInput]): import("@smithy/smithy-client").CommandImpl<GetSuggestionsCommandInput, GetSuggestionsCommandOutput, OneHookClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * The caller's two asked-for suggestions, for the suggestion cards: their own and Mr OneHook's. Each is
31
+ * absent when there is none. The prompt is never returned.
32
+ * @example
33
+ * Use a bare-bones client and the command you need to make an API call.
34
+ * ```javascript
35
+ * import { OneHookClient, GetSuggestionsCommand } from "onehook-api-client"; // ES Modules import
36
+ * // const { OneHookClient, GetSuggestionsCommand } = require("onehook-api-client"); // CommonJS import
37
+ * const client = new OneHookClient(config);
38
+ * const input = {};
39
+ * const command = new GetSuggestionsCommand(input);
40
+ * const response = await client.send(command);
41
+ * // { // GetSuggestionsResponse
42
+ * // own: { // CurrentSuggestion
43
+ * // suggestionId: "STRING_VALUE", // required
44
+ * // reasoning: "STRING_VALUE", // required
45
+ * // createdAt: "STRING_VALUE", // required
46
+ * // },
47
+ * // oneHook: {
48
+ * // suggestionId: "STRING_VALUE", // required
49
+ * // reasoning: "STRING_VALUE", // required
50
+ * // createdAt: "STRING_VALUE", // required
51
+ * // },
52
+ * // };
53
+ *
54
+ * ```
55
+ *
56
+ * @param GetSuggestionsCommandInput - {@link GetSuggestionsCommandInput}
57
+ * @returns {@link GetSuggestionsCommandOutput}
58
+ * @see {@link GetSuggestionsCommandInput} for command's `input` shape.
59
+ * @see {@link GetSuggestionsCommandOutput} for command's `response` shape.
60
+ * @see {@link OneHookClientResolvedConfig | config} for OneHookClient's `config` shape.
61
+ *
62
+ * @throws {@link BadRequestError} (client fault)
63
+ *
64
+ * @throws {@link InternalServerError} (server fault)
65
+ *
66
+ * @throws {@link OneHookServiceException}
67
+ * <p>Base exception class for all service exceptions from OneHook service.</p>
68
+ *
69
+ *
70
+ * @public
71
+ */
72
+ export declare class GetSuggestionsCommand extends GetSuggestionsCommand_base {
73
+ /** @internal type navigation helper, not in runtime. */
74
+ protected static __types: {
75
+ api: {
76
+ input: {};
77
+ output: GetSuggestionsResponse;
78
+ };
79
+ sdk: {
80
+ input: GetSuggestionsCommandInput;
81
+ output: GetSuggestionsCommandOutput;
82
+ };
83
+ };
84
+ }
@@ -27,11 +27,11 @@ declare const RecordSuggestionCommand_base: {
27
27
  getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
28
28
  };
29
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.
30
+ * Records the caller's OWN suggestion: who they are looking for, written by them in the app. It has its
31
+ * own slot, separate from the one Mr OneHook records for them; a new one replaces the previous one, and
32
+ * otherwise only `RemoveSuggestion` or account deletion removes it. Matching candidates appear in
33
+ * `Discover` as `MR_ONEHOOK` cards. Super and above, from the session's tier (403 `PREMIUM_REQUIRED`
34
+ * otherwise); 503 when the embedding model is unavailable. The prompt is never logged or returned.
35
35
  * @example
36
36
  * Use a bare-bones client and the command you need to make an API call.
37
37
  * ```javascript
@@ -0,0 +1,72 @@
1
+ import { OneHookClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../OneHookClient";
2
+ import { RemoveOneHookSuggestionRequest, RemoveOneHookSuggestionResponse } 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 RemoveOneHookSuggestionCommand}.
14
+ */
15
+ export interface RemoveOneHookSuggestionCommandInput extends RemoveOneHookSuggestionRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link RemoveOneHookSuggestionCommand}.
21
+ */
22
+ export interface RemoveOneHookSuggestionCommandOutput extends RemoveOneHookSuggestionResponse, __MetadataBearer {
23
+ }
24
+ declare const RemoveOneHookSuggestionCommand_base: {
25
+ new (input: RemoveOneHookSuggestionCommandInput): import("@smithy/smithy-client").CommandImpl<RemoveOneHookSuggestionCommandInput, RemoveOneHookSuggestionCommandOutput, OneHookClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (...[input]: [] | [RemoveOneHookSuggestionCommandInput]): import("@smithy/smithy-client").CommandImpl<RemoveOneHookSuggestionCommandInput, RemoveOneHookSuggestionCommandOutput, OneHookClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * Removes the suggestion Mr OneHook recorded for the caller (from a "find me ..." chat). Idempotent.
31
+ * @example
32
+ * Use a bare-bones client and the command you need to make an API call.
33
+ * ```javascript
34
+ * import { OneHookClient, RemoveOneHookSuggestionCommand } from "onehook-api-client"; // ES Modules import
35
+ * // const { OneHookClient, RemoveOneHookSuggestionCommand } = require("onehook-api-client"); // CommonJS import
36
+ * const client = new OneHookClient(config);
37
+ * const input = {};
38
+ * const command = new RemoveOneHookSuggestionCommand(input);
39
+ * const response = await client.send(command);
40
+ * // {};
41
+ *
42
+ * ```
43
+ *
44
+ * @param RemoveOneHookSuggestionCommandInput - {@link RemoveOneHookSuggestionCommandInput}
45
+ * @returns {@link RemoveOneHookSuggestionCommandOutput}
46
+ * @see {@link RemoveOneHookSuggestionCommandInput} for command's `input` shape.
47
+ * @see {@link RemoveOneHookSuggestionCommandOutput} for command's `response` shape.
48
+ * @see {@link OneHookClientResolvedConfig | config} for OneHookClient's `config` shape.
49
+ *
50
+ * @throws {@link BadRequestError} (client fault)
51
+ *
52
+ * @throws {@link InternalServerError} (server fault)
53
+ *
54
+ * @throws {@link OneHookServiceException}
55
+ * <p>Base exception class for all service exceptions from OneHook service.</p>
56
+ *
57
+ *
58
+ * @public
59
+ */
60
+ export declare class RemoveOneHookSuggestionCommand extends RemoveOneHookSuggestionCommand_base {
61
+ /** @internal type navigation helper, not in runtime. */
62
+ protected static __types: {
63
+ api: {
64
+ input: {};
65
+ output: {};
66
+ };
67
+ sdk: {
68
+ input: RemoveOneHookSuggestionCommandInput;
69
+ output: RemoveOneHookSuggestionCommandOutput;
70
+ };
71
+ };
72
+ }
@@ -0,0 +1,72 @@
1
+ import { OneHookClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../OneHookClient";
2
+ import { RemoveSuggestionRequest, RemoveSuggestionResponse } 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 RemoveSuggestionCommand}.
14
+ */
15
+ export interface RemoveSuggestionCommandInput extends RemoveSuggestionRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link RemoveSuggestionCommand}.
21
+ */
22
+ export interface RemoveSuggestionCommandOutput extends RemoveSuggestionResponse, __MetadataBearer {
23
+ }
24
+ declare const RemoveSuggestionCommand_base: {
25
+ new (input: RemoveSuggestionCommandInput): import("@smithy/smithy-client").CommandImpl<RemoveSuggestionCommandInput, RemoveSuggestionCommandOutput, OneHookClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (...[input]: [] | [RemoveSuggestionCommandInput]): import("@smithy/smithy-client").CommandImpl<RemoveSuggestionCommandInput, RemoveSuggestionCommandOutput, OneHookClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * Removes the caller's OWN suggestion. Idempotent: 204 whether or not one existed.
31
+ * @example
32
+ * Use a bare-bones client and the command you need to make an API call.
33
+ * ```javascript
34
+ * import { OneHookClient, RemoveSuggestionCommand } from "onehook-api-client"; // ES Modules import
35
+ * // const { OneHookClient, RemoveSuggestionCommand } = require("onehook-api-client"); // CommonJS import
36
+ * const client = new OneHookClient(config);
37
+ * const input = {};
38
+ * const command = new RemoveSuggestionCommand(input);
39
+ * const response = await client.send(command);
40
+ * // {};
41
+ *
42
+ * ```
43
+ *
44
+ * @param RemoveSuggestionCommandInput - {@link RemoveSuggestionCommandInput}
45
+ * @returns {@link RemoveSuggestionCommandOutput}
46
+ * @see {@link RemoveSuggestionCommandInput} for command's `input` shape.
47
+ * @see {@link RemoveSuggestionCommandOutput} for command's `response` shape.
48
+ * @see {@link OneHookClientResolvedConfig | config} for OneHookClient's `config` shape.
49
+ *
50
+ * @throws {@link BadRequestError} (client fault)
51
+ *
52
+ * @throws {@link InternalServerError} (server fault)
53
+ *
54
+ * @throws {@link OneHookServiceException}
55
+ * <p>Base exception class for all service exceptions from OneHook service.</p>
56
+ *
57
+ *
58
+ * @public
59
+ */
60
+ export declare class RemoveSuggestionCommand extends RemoveSuggestionCommand_base {
61
+ /** @internal type navigation helper, not in runtime. */
62
+ protected static __types: {
63
+ api: {
64
+ input: {};
65
+ output: {};
66
+ };
67
+ sdk: {
68
+ input: RemoveSuggestionCommandInput;
69
+ output: RemoveSuggestionCommandOutput;
70
+ };
71
+ };
72
+ }
@@ -41,9 +41,12 @@ export * from "./GetNotificationPreferencesCommand";
41
41
  export * from "./GetPreferencesCommand";
42
42
  export * from "./GetReceivedLikesCommand";
43
43
  export * from "./GetRosesCommand";
44
+ export * from "./GetSuggestionsCommand";
44
45
  export * from "./IndexLocationCommand";
45
46
  export * from "./RecordSuggestionCommand";
46
47
  export * from "./RemoveLocationCommand";
48
+ export * from "./RemoveOneHookSuggestionCommand";
49
+ export * from "./RemoveSuggestionCommand";
47
50
  export * from "./SwipeCommand";
48
51
  export * from "./SwipeByUsernameCommand";
49
52
  export * from "./UpdatePreferencesCommand";
@@ -1359,11 +1359,33 @@ export interface GetNotificationPreferencesResponse {
1359
1359
  export interface GetPreferencesRequest {
1360
1360
  userId: string | undefined;
1361
1361
  }
1362
+ /**
1363
+ * The member's OneHook suggestion as shown in their preferences. The prompt is never returned.
1364
+ * @public
1365
+ */
1366
+ export interface CurrentSuggestion {
1367
+ suggestionId: string | undefined;
1368
+ /**
1369
+ * Why OneHook is suggesting these people (shown on the cards too).
1370
+ * @public
1371
+ */
1372
+ reasoning: string | undefined;
1373
+ /**
1374
+ * ISO-8601 time the member asked for it.
1375
+ * @public
1376
+ */
1377
+ createdAt: string | undefined;
1378
+ }
1362
1379
  /**
1363
1380
  * @public
1364
1381
  */
1365
1382
  export interface UserPreferencesResponse {
1366
1383
  userId: string | undefined;
1384
+ /**
1385
+ * The member's current OneHook suggestion (what they last asked Mr OneHook for). Absent when none.
1386
+ * @public
1387
+ */
1388
+ currentSuggestion?: CurrentSuggestion | undefined;
1367
1389
  minAge?: number | undefined;
1368
1390
  maxAge?: number | undefined;
1369
1391
  maxDistanceKm?: number | undefined;
@@ -1479,6 +1501,26 @@ export interface GetRosesResponse {
1479
1501
  */
1480
1502
  resetsAt: string | undefined;
1481
1503
  }
1504
+ /**
1505
+ * @public
1506
+ */
1507
+ export interface GetSuggestionsRequest {
1508
+ }
1509
+ /**
1510
+ * @public
1511
+ */
1512
+ export interface GetSuggestionsResponse {
1513
+ /**
1514
+ * Written by the member (`RecordSuggestion`).
1515
+ * @public
1516
+ */
1517
+ own?: CurrentSuggestion | undefined;
1518
+ /**
1519
+ * Recorded by Mr OneHook from a "find me ..." chat.
1520
+ * @public
1521
+ */
1522
+ oneHook?: CurrentSuggestion | undefined;
1523
+ }
1482
1524
  /**
1483
1525
  * @public
1484
1526
  */
@@ -1513,6 +1555,26 @@ export interface RecordSuggestionRequest {
1513
1555
  export interface RecordSuggestionResponse {
1514
1556
  suggestionId: string | undefined;
1515
1557
  }
1558
+ /**
1559
+ * @public
1560
+ */
1561
+ export interface RemoveOneHookSuggestionRequest {
1562
+ }
1563
+ /**
1564
+ * @public
1565
+ */
1566
+ export interface RemoveOneHookSuggestionResponse {
1567
+ }
1568
+ /**
1569
+ * @public
1570
+ */
1571
+ export interface RemoveSuggestionRequest {
1572
+ }
1573
+ /**
1574
+ * @public
1575
+ */
1576
+ export interface RemoveSuggestionResponse {
1577
+ }
1516
1578
  /**
1517
1579
  * @public
1518
1580
  */
@@ -31,6 +31,7 @@ import { GetProfileCommandInput, GetProfileCommandOutput } from "../commands/Get
31
31
  import { GetReceivedLikesCommandInput, GetReceivedLikesCommandOutput } from "../commands/GetReceivedLikesCommand";
32
32
  import { GetRosesCommandInput, GetRosesCommandOutput } from "../commands/GetRosesCommand";
33
33
  import { GetStateCommandInput, GetStateCommandOutput } from "../commands/GetStateCommand";
34
+ import { GetSuggestionsCommandInput, GetSuggestionsCommandOutput } from "../commands/GetSuggestionsCommand";
34
35
  import { GetUserByEmailCommandInput, GetUserByEmailCommandOutput } from "../commands/GetUserByEmailCommand";
35
36
  import { GetUserCommandInput, GetUserCommandOutput } from "../commands/GetUserCommand";
36
37
  import { GetUserIdByUsernameCommandInput, GetUserIdByUsernameCommandOutput } from "../commands/GetUserIdByUsernameCommand";
@@ -44,6 +45,8 @@ import { RegisterDeviceCommandInput, RegisterDeviceCommandOutput } from "../comm
44
45
  import { RegisterPhoneCommandInput, RegisterPhoneCommandOutput } from "../commands/RegisterPhoneCommand";
45
46
  import { RegisterPushTokenCommandInput, RegisterPushTokenCommandOutput } from "../commands/RegisterPushTokenCommand";
46
47
  import { RemoveLocationCommandInput, RemoveLocationCommandOutput } from "../commands/RemoveLocationCommand";
48
+ import { RemoveOneHookSuggestionCommandInput, RemoveOneHookSuggestionCommandOutput } from "../commands/RemoveOneHookSuggestionCommand";
49
+ import { RemoveSuggestionCommandInput, RemoveSuggestionCommandOutput } from "../commands/RemoveSuggestionCommand";
47
50
  import { RequestEmailOtpCommandInput, RequestEmailOtpCommandOutput } from "../commands/RequestEmailOtpCommand";
48
51
  import { RequestPhoneOtpCommandInput, RequestPhoneOtpCommandOutput } from "../commands/RequestPhoneOtpCommand";
49
52
  import { RequestPhoneUpdateOtpCommandInput, RequestPhoneUpdateOtpCommandOutput } from "../commands/RequestPhoneUpdateOtpCommand";
@@ -240,6 +243,10 @@ export declare const se_GetReceivedLikesCommand: (input: GetReceivedLikesCommand
240
243
  * serializeAws_restJson1GetRosesCommand
241
244
  */
242
245
  export declare const se_GetRosesCommand: (input: GetRosesCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
246
+ /**
247
+ * serializeAws_restJson1GetSuggestionsCommand
248
+ */
249
+ export declare const se_GetSuggestionsCommand: (input: GetSuggestionsCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
243
250
  /**
244
251
  * serializeAws_restJson1IndexLocationCommand
245
252
  */
@@ -252,6 +259,14 @@ export declare const se_RecordSuggestionCommand: (input: RecordSuggestionCommand
252
259
  * serializeAws_restJson1RemoveLocationCommand
253
260
  */
254
261
  export declare const se_RemoveLocationCommand: (input: RemoveLocationCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
262
+ /**
263
+ * serializeAws_restJson1RemoveOneHookSuggestionCommand
264
+ */
265
+ export declare const se_RemoveOneHookSuggestionCommand: (input: RemoveOneHookSuggestionCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
266
+ /**
267
+ * serializeAws_restJson1RemoveSuggestionCommand
268
+ */
269
+ export declare const se_RemoveSuggestionCommand: (input: RemoveSuggestionCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
255
270
  /**
256
271
  * serializeAws_restJson1SwipeCommand
257
272
  */
@@ -512,6 +527,10 @@ export declare const de_GetReceivedLikesCommand: (output: __HttpResponse, contex
512
527
  * deserializeAws_restJson1GetRosesCommand
513
528
  */
514
529
  export declare const de_GetRosesCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetRosesCommandOutput>;
530
+ /**
531
+ * deserializeAws_restJson1GetSuggestionsCommand
532
+ */
533
+ export declare const de_GetSuggestionsCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetSuggestionsCommandOutput>;
515
534
  /**
516
535
  * deserializeAws_restJson1IndexLocationCommand
517
536
  */
@@ -524,6 +543,14 @@ export declare const de_RecordSuggestionCommand: (output: __HttpResponse, contex
524
543
  * deserializeAws_restJson1RemoveLocationCommand
525
544
  */
526
545
  export declare const de_RemoveLocationCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<RemoveLocationCommandOutput>;
546
+ /**
547
+ * deserializeAws_restJson1RemoveOneHookSuggestionCommand
548
+ */
549
+ export declare const de_RemoveOneHookSuggestionCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<RemoveOneHookSuggestionCommandOutput>;
550
+ /**
551
+ * deserializeAws_restJson1RemoveSuggestionCommand
552
+ */
553
+ export declare const de_RemoveSuggestionCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<RemoveSuggestionCommandOutput>;
527
554
  /**
528
555
  * deserializeAws_restJson1SwipeCommand
529
556
  */
@@ -1,5 +1,5 @@
1
- export declare const TELEMETRY_CATALOG_VERSION = "1.9.0";
2
- export declare const TELEMETRY_CATALOG_HASH = "7f0a0b33ce88bee5";
1
+ export declare const TELEMETRY_CATALOG_VERSION = "1.11.0";
2
+ export declare const TELEMETRY_CATALOG_HASH = "12c7d6d70211f79c";
3
3
  /** Every signal type the ingest accepts. */
4
4
  export declare const SignalType: {
5
5
  readonly SCREEN_VIEW: "screen_view";
@@ -373,6 +373,11 @@ export declare const UiElement: {
373
373
  readonly CHAT_MR_ONEHOOK_CONTEXT_SHARE: "chat.mr_onehook_context_share";
374
374
  readonly CHAT_MR_ONEHOOK_SCOPE_OPEN: "chat.mr_onehook_scope_open";
375
375
  readonly CHAT_MR_ONEHOOK_SCOPE_SELECT: "chat.mr_onehook_scope_select";
376
+ readonly CHAT_MR_ONEHOOK_SESSIONS_OPEN: "chat.mr_onehook_sessions_open";
377
+ readonly CHAT_MR_ONEHOOK_SESSION_RESUME: "chat.mr_onehook_session_resume";
378
+ readonly CHAT_MR_ONEHOOK_SESSION_DELETE: "chat.mr_onehook_session_delete";
379
+ readonly CHAT_MR_ONEHOOK_SESSION_NEW: "chat.mr_onehook_session_new";
380
+ readonly CHAT_MR_ONEHOOK_SESSION_LIMIT: "chat.mr_onehook_session_limit";
376
381
  readonly CHAT_INTRO_TOUR_OPEN: "chat.intro_tour_open";
377
382
  readonly CHAT_INTRO_DISMISS: "chat.intro_dismiss";
378
383
  readonly CHAT_INTRO_GET_STARTED: "chat.intro_get_started";
@@ -422,6 +427,9 @@ export declare const UiElement: {
422
427
  readonly PREFERENCES_SAVE: "preferences.save";
423
428
  readonly PREFERENCES_UPGRADE_OPEN: "preferences.upgrade_open";
424
429
  readonly PREFERENCES_LOCKED_FILTER_TAP: "preferences.locked_filter_tap";
430
+ readonly PREFERENCES_SUGGESTION_REMOVE: "preferences.suggestion_remove";
431
+ readonly PREFERENCES_OWN_SUGGESTION_SAVE: "preferences.own_suggestion_save";
432
+ readonly PREFERENCES_OWN_SUGGESTION_REMOVE: "preferences.own_suggestion_remove";
425
433
  readonly SETTINGS_EMAIL_MANAGE: "settings.email_manage";
426
434
  readonly SETTINGS_PHONE_UPDATE: "settings.phone_update";
427
435
  readonly SETTINGS_GOOGLE_LINK: "settings.google_link";
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "onehook-api-client",
3
3
  "description": "OneHook API Client",
4
- "version": "1.0.32",
4
+ "version": "1.0.34",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -1,8 +1,8 @@
1
1
  // GENERATED FILE - DO NOT EDIT.
2
- // telemetry-integrity: sha256 cf7ca486e49b9199ff1f0133e008a1278779e932cbc7ee34b6911505cb32e2d2
2
+ // telemetry-integrity: sha256 e99ab392b0302cabea32692c2adbab2c8f9f13eac6067b8507b771288e043849
3
3
  // Source of truth: OneHookBackend/packages/telemetry/src/catalog.ts
4
4
  // Regenerate: (OneHookBackend) npm run telemetry:generate && npm run telemetry:sync
5
- // Catalog version 1.9.0, hash 7f0a0b33ce88bee5.
5
+ // Catalog version 1.11.0, hash 12c7d6d70211f79c.
6
6
  //
7
7
  // HARD RULE: every user interaction MUST emit ui_interaction with an id from THIS file, and
8
8
  // ids are controlled by the backend. Read TELEMETRY_CONTRACT.txt (printed by every build).
@@ -12,8 +12,8 @@
12
12
  package club.onehook.telemetry
13
13
 
14
14
  object TelemetryCatalog {
15
- const val VERSION = "1.9.0"
16
- const val HASH = "7f0a0b33ce88bee5"
15
+ const val VERSION = "1.11.0"
16
+ const val HASH = "12c7d6d70211f79c"
17
17
  /** The only allowed `telemetry-exempt: <category>: <reason>` categories (see the catalog). */
18
18
  val EXEMPT_CATEGORIES: List<String> = listOf("duplicate", "backdrop", "gesture", "continuous", "disabled")
19
19
  }
@@ -436,6 +436,11 @@ enum class UiElement(
436
436
  CHAT_MR_ONEHOOK_CONTEXT_SHARE("chat.mr_onehook_context_share", TelemetryScreen.CHAT, UiElementKind.DIALOG_BUTTON, listOf(UiAction.SUBMIT, UiAction.DISMISS), null, listOf(TelemetryPlatform.WEB, TelemetryPlatform.IOS, TelemetryPlatform.ANDROID)),
437
437
  CHAT_MR_ONEHOOK_SCOPE_OPEN("chat.mr_onehook_scope_open", TelemetryScreen.CHAT, UiElementKind.BUTTON, listOf(UiAction.TAP, UiAction.DISMISS), null, listOf(TelemetryPlatform.WEB)),
438
438
  CHAT_MR_ONEHOOK_SCOPE_SELECT("chat.mr_onehook_scope_select", TelemetryScreen.CHAT, UiElementKind.MENU_ITEM, listOf(UiAction.TAP), null, listOf(TelemetryPlatform.WEB)),
439
+ CHAT_MR_ONEHOOK_SESSIONS_OPEN("chat.mr_onehook_sessions_open", TelemetryScreen.CHAT, UiElementKind.BUTTON, listOf(UiAction.TAP, UiAction.DISMISS), null, listOf(TelemetryPlatform.WEB, TelemetryPlatform.IOS, TelemetryPlatform.ANDROID)),
440
+ CHAT_MR_ONEHOOK_SESSION_RESUME("chat.mr_onehook_session_resume", TelemetryScreen.CHAT, UiElementKind.MENU_ITEM, listOf(UiAction.TAP), null, listOf(TelemetryPlatform.WEB, TelemetryPlatform.IOS, TelemetryPlatform.ANDROID)),
441
+ CHAT_MR_ONEHOOK_SESSION_DELETE("chat.mr_onehook_session_delete", TelemetryScreen.CHAT, UiElementKind.BUTTON, listOf(UiAction.TAP), null, listOf(TelemetryPlatform.WEB, TelemetryPlatform.IOS, TelemetryPlatform.ANDROID)),
442
+ CHAT_MR_ONEHOOK_SESSION_NEW("chat.mr_onehook_session_new", TelemetryScreen.CHAT, UiElementKind.BUTTON, listOf(UiAction.TAP), null, listOf(TelemetryPlatform.WEB, TelemetryPlatform.IOS, TelemetryPlatform.ANDROID)),
443
+ CHAT_MR_ONEHOOK_SESSION_LIMIT("chat.mr_onehook_session_limit", TelemetryScreen.CHAT, UiElementKind.DIALOG_BUTTON, listOf(UiAction.TAP, UiAction.DISMISS), listOf("replace_least_recent", "manage", "cancel"), listOf(TelemetryPlatform.WEB, TelemetryPlatform.IOS, TelemetryPlatform.ANDROID)),
439
444
  CHAT_INTRO_TOUR_OPEN("chat.intro_tour_open", TelemetryScreen.CHAT, UiElementKind.BUTTON, listOf(UiAction.TAP), null, listOf(TelemetryPlatform.IOS)),
440
445
  CHAT_INTRO_DISMISS("chat.intro_dismiss", TelemetryScreen.CHAT, UiElementKind.BUTTON, listOf(UiAction.TAP, UiAction.DISMISS), null, listOf(TelemetryPlatform.IOS)),
441
446
  CHAT_INTRO_GET_STARTED("chat.intro_get_started", TelemetryScreen.CHAT, UiElementKind.BUTTON, listOf(UiAction.TAP), null, listOf(TelemetryPlatform.IOS)),
@@ -485,6 +490,9 @@ enum class UiElement(
485
490
  PREFERENCES_SAVE("preferences.save", TelemetryScreen.PREFERENCES, UiElementKind.BUTTON, listOf(UiAction.SUBMIT), null, listOf(TelemetryPlatform.IOS, TelemetryPlatform.ANDROID)),
486
491
  PREFERENCES_UPGRADE_OPEN("preferences.upgrade_open", TelemetryScreen.PREFERENCES, UiElementKind.BUTTON, listOf(UiAction.TAP, UiAction.DISMISS), null, listOf(TelemetryPlatform.IOS)),
487
492
  PREFERENCES_LOCKED_FILTER_TAP("preferences.locked_filter_tap", TelemetryScreen.PREFERENCES, UiElementKind.BUTTON, listOf(UiAction.TAP), null, listOf(TelemetryPlatform.IOS)),
493
+ PREFERENCES_SUGGESTION_REMOVE("preferences.suggestion_remove", TelemetryScreen.PREFERENCES, UiElementKind.BUTTON, listOf(UiAction.TAP), null, listOf(TelemetryPlatform.WEB, TelemetryPlatform.IOS, TelemetryPlatform.ANDROID)),
494
+ PREFERENCES_OWN_SUGGESTION_SAVE("preferences.own_suggestion_save", TelemetryScreen.PREFERENCES, UiElementKind.BUTTON, listOf(UiAction.SUBMIT), null, listOf(TelemetryPlatform.WEB, TelemetryPlatform.IOS, TelemetryPlatform.ANDROID)),
495
+ PREFERENCES_OWN_SUGGESTION_REMOVE("preferences.own_suggestion_remove", TelemetryScreen.PREFERENCES, UiElementKind.BUTTON, listOf(UiAction.TAP), null, listOf(TelemetryPlatform.WEB, TelemetryPlatform.IOS, TelemetryPlatform.ANDROID)),
488
496
  SETTINGS_EMAIL_MANAGE("settings.email_manage", TelemetryScreen.SETTINGS, UiElementKind.BUTTON, listOf(UiAction.TAP, UiAction.DISMISS), null, listOf(TelemetryPlatform.WEB, TelemetryPlatform.IOS, TelemetryPlatform.ANDROID)),
489
497
  SETTINGS_PHONE_UPDATE("settings.phone_update", TelemetryScreen.SETTINGS, UiElementKind.BUTTON, listOf(UiAction.TAP, UiAction.DISMISS), null, listOf(TelemetryPlatform.IOS, TelemetryPlatform.ANDROID)),
490
498
  SETTINGS_GOOGLE_LINK("settings.google_link", TelemetryScreen.SETTINGS, UiElementKind.TOGGLE, listOf(UiAction.TOGGLE), listOf("link", "unlink"), listOf(TelemetryPlatform.WEB, TelemetryPlatform.IOS, TelemetryPlatform.ANDROID)),