onehook-api-client 1.0.32 → 1.0.33

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 CHANGED
@@ -521,6 +521,13 @@ RemoveLocation
521
521
  </details>
522
522
  <details>
523
523
  <summary>
524
+ RemoveSuggestion
525
+ </summary>
526
+
527
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/onehook/command/RemoveSuggestionCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-onehook/Interface/RemoveSuggestionCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-onehook/Interface/RemoveSuggestionCommandOutput/)
528
+ </details>
529
+ <details>
530
+ <summary>
524
531
  Swipe
525
532
  </summary>
526
533
 
@@ -48,6 +48,7 @@ const RegisterDeviceCommand_1 = require("./commands/RegisterDeviceCommand");
48
48
  const RegisterPhoneCommand_1 = require("./commands/RegisterPhoneCommand");
49
49
  const RegisterPushTokenCommand_1 = require("./commands/RegisterPushTokenCommand");
50
50
  const RemoveLocationCommand_1 = require("./commands/RemoveLocationCommand");
51
+ const RemoveSuggestionCommand_1 = require("./commands/RemoveSuggestionCommand");
51
52
  const RequestEmailOtpCommand_1 = require("./commands/RequestEmailOtpCommand");
52
53
  const RequestPhoneOtpCommand_1 = require("./commands/RequestPhoneOtpCommand");
53
54
  const RequestPhoneUpdateOtpCommand_1 = require("./commands/RequestPhoneUpdateOtpCommand");
@@ -118,6 +119,7 @@ const commands = {
118
119
  IndexLocationCommand: IndexLocationCommand_1.IndexLocationCommand,
119
120
  RecordSuggestionCommand: RecordSuggestionCommand_1.RecordSuggestionCommand,
120
121
  RemoveLocationCommand: RemoveLocationCommand_1.RemoveLocationCommand,
122
+ RemoveSuggestionCommand: RemoveSuggestionCommand_1.RemoveSuggestionCommand,
121
123
  SwipeCommand: SwipeCommand_1.SwipeCommand,
122
124
  SwipeByUsernameCommand: SwipeByUsernameCommand_1.SwipeByUsernameCommand,
123
125
  UpdatePreferencesCommand: UpdatePreferencesCommand_1.UpdatePreferencesCommand,
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.RemoveSuggestionCommand = exports.$Command = void 0;
4
+ const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
5
+ const middleware_serde_1 = require("@smithy/middleware-serde");
6
+ const smithy_client_1 = require("@smithy/smithy-client");
7
+ Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
+ class RemoveSuggestionCommand extends smithy_client_1.Command.classBuilder()
9
+ .m(function (Command, cs, config, o) {
10
+ return [
11
+ (0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
12
+ ];
13
+ })
14
+ .s("OneHookService", "RemoveSuggestion", {})
15
+ .n("OneHookClient", "RemoveSuggestionCommand")
16
+ .f(void 0, void 0)
17
+ .ser(Aws_restJson1_1.se_RemoveSuggestionCommand)
18
+ .de(Aws_restJson1_1.de_RemoveSuggestionCommand)
19
+ .build() {
20
+ }
21
+ exports.RemoveSuggestionCommand = RemoveSuggestionCommand;
@@ -47,6 +47,7 @@ tslib_1.__exportStar(require("./GetRosesCommand"), exports);
47
47
  tslib_1.__exportStar(require("./IndexLocationCommand"), exports);
48
48
  tslib_1.__exportStar(require("./RecordSuggestionCommand"), exports);
49
49
  tslib_1.__exportStar(require("./RemoveLocationCommand"), exports);
50
+ tslib_1.__exportStar(require("./RemoveSuggestionCommand"), exports);
50
51
  tslib_1.__exportStar(require("./SwipeCommand"), exports);
51
52
  tslib_1.__exportStar(require("./SwipeByUsernameCommand"), exports);
52
53
  tslib_1.__exportStar(require("./UpdatePreferencesCommand"), exports);
@@ -1,8 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.se_CompleteLivenessSessionCommand = exports.se_UpdatePreferencesCommand = exports.se_SwipeByUsernameCommand = exports.se_SwipeCommand = exports.se_RemoveLocationCommand = exports.se_RecordSuggestionCommand = exports.se_IndexLocationCommand = exports.se_GetRosesCommand = exports.se_GetReceivedLikesCommand = exports.se_GetPreferencesCommand = exports.se_GetNotificationPreferencesCommand = exports.se_DiscoverCommand = exports.se_VerifyAdminLinkOtpCommand = exports.se_ValidateInviteCommand = exports.se_UpdateUsernameCommand = exports.se_UpdatePhoneNumberCommand = exports.se_UpdateEntitlementsCommand = exports.se_UnlinkSocialCommand = exports.se_SetPreservationHoldCommand = exports.se_SetAccountStateCommand = exports.se_SendAdminLinkOtpCommand = exports.se_RevokeUserAccessCommand = exports.se_RequestPhoneUpdateOtpCommand = exports.se_RequestPhoneOtpCommand = exports.se_RequestEmailOtpCommand = exports.se_RegisterPhoneCommand = exports.se_LinkSocialCommand = exports.se_LinkEmailCommand = exports.se_GetUserIdByUsernameCommand = exports.se_GetUserByEmailCommand = exports.se_GetUserCommand = exports.se_GetPreservationHoldCommand = exports.se_GetCredentialReadinessCommand = exports.se_GetAdminPhoneStatusCommand = exports.se_GetAccountStateCommand = exports.se_GenerateInviteCommand = exports.se_CreateAdminInviteCommand = exports.se_AuthSocialCommand = exports.se_UpdateChatSettingsCommand = exports.se_RevokeDeviceCommand = exports.se_RegisterPushTokenCommand = exports.se_RegisterDeviceCommand = exports.se_ListMyDevicesCommand = exports.se_GetParticipantRegistryCommand = exports.se_GetChatSettingsCommand = exports.se_DeletePushTokenCommand = exports.se_DeleteMatchMessagesCommand = exports.se_CreateMediaUploadUrlCommand = exports.se_CreateMediaDownloadUrlCommand = exports.se_GetAiContextMatchCommand = void 0;
4
- exports.de_SetPreservationHoldCommand = exports.de_SetAccountStateCommand = exports.de_SendAdminLinkOtpCommand = exports.de_RevokeUserAccessCommand = exports.de_RequestPhoneUpdateOtpCommand = exports.de_RequestPhoneOtpCommand = exports.de_RequestEmailOtpCommand = exports.de_RegisterPhoneCommand = exports.de_LinkSocialCommand = exports.de_LinkEmailCommand = exports.de_GetUserIdByUsernameCommand = exports.de_GetUserByEmailCommand = exports.de_GetUserCommand = exports.de_GetPreservationHoldCommand = exports.de_GetCredentialReadinessCommand = exports.de_GetAdminPhoneStatusCommand = exports.de_GetAccountStateCommand = exports.de_GenerateInviteCommand = exports.de_CreateAdminInviteCommand = exports.de_AuthSocialCommand = exports.de_UpdateChatSettingsCommand = exports.de_RevokeDeviceCommand = exports.de_RegisterPushTokenCommand = exports.de_RegisterDeviceCommand = exports.de_ListMyDevicesCommand = exports.de_GetParticipantRegistryCommand = exports.de_GetChatSettingsCommand = exports.de_DeletePushTokenCommand = exports.de_DeleteMatchMessagesCommand = exports.de_CreateMediaUploadUrlCommand = exports.de_CreateMediaDownloadUrlCommand = exports.de_GetAiContextMatchCommand = exports.se_UpgradeUserCommand = exports.se_UnhookCommand = exports.se_InitUserCommand = exports.se_GetStateCommand = exports.se_GetMatchCommand = exports.se_CompleteOnboardingCommand = exports.se_UpdateProfileCommand = exports.se_SearchPlacesCommand = exports.se_GetProfileCommand = exports.se_GetPlaceCommand = exports.se_GetMyProfileCommand = exports.se_GetLivenessStatusCommand = exports.se_GetBirthDateStatusCommand = exports.se_GenerateUploadUrlCommand = exports.se_GenerateDownloadUrlCommand = exports.se_DeleteProfileCommand = exports.se_CreateLivenessSessionCommand = exports.se_CorrectBirthDateCommand = void 0;
5
- exports.de_UpgradeUserCommand = exports.de_UnhookCommand = exports.de_InitUserCommand = exports.de_GetStateCommand = exports.de_GetMatchCommand = exports.de_CompleteOnboardingCommand = exports.de_UpdateProfileCommand = exports.de_SearchPlacesCommand = exports.de_GetProfileCommand = exports.de_GetPlaceCommand = exports.de_GetMyProfileCommand = exports.de_GetLivenessStatusCommand = exports.de_GetBirthDateStatusCommand = exports.de_GenerateUploadUrlCommand = exports.de_GenerateDownloadUrlCommand = exports.de_DeleteProfileCommand = exports.de_CreateLivenessSessionCommand = exports.de_CorrectBirthDateCommand = exports.de_CompleteLivenessSessionCommand = exports.de_UpdatePreferencesCommand = exports.de_SwipeByUsernameCommand = exports.de_SwipeCommand = exports.de_RemoveLocationCommand = exports.de_RecordSuggestionCommand = exports.de_IndexLocationCommand = exports.de_GetRosesCommand = exports.de_GetReceivedLikesCommand = exports.de_GetPreferencesCommand = exports.de_GetNotificationPreferencesCommand = exports.de_DiscoverCommand = exports.de_VerifyAdminLinkOtpCommand = exports.de_ValidateInviteCommand = exports.de_UpdateUsernameCommand = exports.de_UpdatePhoneNumberCommand = exports.de_UpdateEntitlementsCommand = exports.de_UnlinkSocialCommand = void 0;
3
+ exports.se_UpdatePreferencesCommand = exports.se_SwipeByUsernameCommand = exports.se_SwipeCommand = exports.se_RemoveSuggestionCommand = exports.se_RemoveLocationCommand = exports.se_RecordSuggestionCommand = exports.se_IndexLocationCommand = exports.se_GetRosesCommand = exports.se_GetReceivedLikesCommand = exports.se_GetPreferencesCommand = exports.se_GetNotificationPreferencesCommand = exports.se_DiscoverCommand = exports.se_VerifyAdminLinkOtpCommand = exports.se_ValidateInviteCommand = exports.se_UpdateUsernameCommand = exports.se_UpdatePhoneNumberCommand = exports.se_UpdateEntitlementsCommand = exports.se_UnlinkSocialCommand = exports.se_SetPreservationHoldCommand = exports.se_SetAccountStateCommand = exports.se_SendAdminLinkOtpCommand = exports.se_RevokeUserAccessCommand = exports.se_RequestPhoneUpdateOtpCommand = exports.se_RequestPhoneOtpCommand = exports.se_RequestEmailOtpCommand = exports.se_RegisterPhoneCommand = exports.se_LinkSocialCommand = exports.se_LinkEmailCommand = exports.se_GetUserIdByUsernameCommand = exports.se_GetUserByEmailCommand = exports.se_GetUserCommand = exports.se_GetPreservationHoldCommand = exports.se_GetCredentialReadinessCommand = exports.se_GetAdminPhoneStatusCommand = exports.se_GetAccountStateCommand = exports.se_GenerateInviteCommand = exports.se_CreateAdminInviteCommand = exports.se_AuthSocialCommand = exports.se_UpdateChatSettingsCommand = exports.se_RevokeDeviceCommand = exports.se_RegisterPushTokenCommand = exports.se_RegisterDeviceCommand = exports.se_ListMyDevicesCommand = exports.se_GetParticipantRegistryCommand = exports.se_GetChatSettingsCommand = exports.se_DeletePushTokenCommand = exports.se_DeleteMatchMessagesCommand = exports.se_CreateMediaUploadUrlCommand = exports.se_CreateMediaDownloadUrlCommand = exports.se_GetAiContextMatchCommand = void 0;
4
+ exports.de_SetAccountStateCommand = exports.de_SendAdminLinkOtpCommand = exports.de_RevokeUserAccessCommand = exports.de_RequestPhoneUpdateOtpCommand = exports.de_RequestPhoneOtpCommand = exports.de_RequestEmailOtpCommand = exports.de_RegisterPhoneCommand = exports.de_LinkSocialCommand = exports.de_LinkEmailCommand = exports.de_GetUserIdByUsernameCommand = exports.de_GetUserByEmailCommand = exports.de_GetUserCommand = exports.de_GetPreservationHoldCommand = exports.de_GetCredentialReadinessCommand = exports.de_GetAdminPhoneStatusCommand = exports.de_GetAccountStateCommand = exports.de_GenerateInviteCommand = exports.de_CreateAdminInviteCommand = exports.de_AuthSocialCommand = exports.de_UpdateChatSettingsCommand = exports.de_RevokeDeviceCommand = exports.de_RegisterPushTokenCommand = exports.de_RegisterDeviceCommand = exports.de_ListMyDevicesCommand = exports.de_GetParticipantRegistryCommand = exports.de_GetChatSettingsCommand = exports.de_DeletePushTokenCommand = exports.de_DeleteMatchMessagesCommand = exports.de_CreateMediaUploadUrlCommand = exports.de_CreateMediaDownloadUrlCommand = exports.de_GetAiContextMatchCommand = exports.se_UpgradeUserCommand = exports.se_UnhookCommand = exports.se_InitUserCommand = exports.se_GetStateCommand = exports.se_GetMatchCommand = exports.se_CompleteOnboardingCommand = exports.se_UpdateProfileCommand = exports.se_SearchPlacesCommand = exports.se_GetProfileCommand = exports.se_GetPlaceCommand = exports.se_GetMyProfileCommand = exports.se_GetLivenessStatusCommand = exports.se_GetBirthDateStatusCommand = exports.se_GenerateUploadUrlCommand = exports.se_GenerateDownloadUrlCommand = exports.se_DeleteProfileCommand = exports.se_CreateLivenessSessionCommand = exports.se_CorrectBirthDateCommand = exports.se_CompleteLivenessSessionCommand = void 0;
5
+ exports.de_UpgradeUserCommand = exports.de_UnhookCommand = exports.de_InitUserCommand = exports.de_GetStateCommand = exports.de_GetMatchCommand = exports.de_CompleteOnboardingCommand = exports.de_UpdateProfileCommand = exports.de_SearchPlacesCommand = exports.de_GetProfileCommand = exports.de_GetPlaceCommand = exports.de_GetMyProfileCommand = exports.de_GetLivenessStatusCommand = exports.de_GetBirthDateStatusCommand = exports.de_GenerateUploadUrlCommand = exports.de_GenerateDownloadUrlCommand = exports.de_DeleteProfileCommand = exports.de_CreateLivenessSessionCommand = exports.de_CorrectBirthDateCommand = exports.de_CompleteLivenessSessionCommand = exports.de_UpdatePreferencesCommand = exports.de_SwipeByUsernameCommand = exports.de_SwipeCommand = exports.de_RemoveSuggestionCommand = exports.de_RemoveLocationCommand = exports.de_RecordSuggestionCommand = exports.de_IndexLocationCommand = exports.de_GetRosesCommand = exports.de_GetReceivedLikesCommand = exports.de_GetPreferencesCommand = exports.de_GetNotificationPreferencesCommand = exports.de_DiscoverCommand = exports.de_VerifyAdminLinkOtpCommand = exports.de_ValidateInviteCommand = exports.de_UpdateUsernameCommand = exports.de_UpdatePhoneNumberCommand = exports.de_UpdateEntitlementsCommand = exports.de_UnlinkSocialCommand = exports.de_SetPreservationHoldCommand = void 0;
6
6
  const OneHookServiceException_1 = require("../models/OneHookServiceException");
7
7
  const models_0_1 = require("../models/models_0");
8
8
  const core_1 = require("@aws-sdk/core");
@@ -713,6 +713,17 @@ const se_RemoveLocationCommand = async (input, context) => {
713
713
  return b.build();
714
714
  };
715
715
  exports.se_RemoveLocationCommand = se_RemoveLocationCommand;
716
+ const se_RemoveSuggestionCommand = async (input, context) => {
717
+ const b = (0, core_2.requestBuilder)(input, context);
718
+ const headers = {};
719
+ b.bp("/matching/suggestions");
720
+ let body;
721
+ b.m("DELETE")
722
+ .h(headers)
723
+ .b(body);
724
+ return b.build();
725
+ };
726
+ exports.se_RemoveSuggestionCommand = se_RemoveSuggestionCommand;
716
727
  const se_SwipeCommand = async (input, context) => {
717
728
  const b = (0, core_2.requestBuilder)(input, context);
718
729
  const headers = {
@@ -1772,6 +1783,7 @@ const de_GetPreferencesCommand = async (output, context) => {
1772
1783
  const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
1773
1784
  const doc = (0, smithy_client_1.take)(data, {
1774
1785
  'cannabis': smithy_client_1.expectString,
1786
+ 'currentSuggestion': smithy_client_1._json,
1775
1787
  'dealbreakers': smithy_client_1._json,
1776
1788
  'discoverable': smithy_client_1.expectBoolean,
1777
1789
  'distanceUnit': smithy_client_1.expectString,
@@ -1887,6 +1899,17 @@ const de_RemoveLocationCommand = async (output, context) => {
1887
1899
  return contents;
1888
1900
  };
1889
1901
  exports.de_RemoveLocationCommand = de_RemoveLocationCommand;
1902
+ const de_RemoveSuggestionCommand = async (output, context) => {
1903
+ if (output.statusCode !== 204 && output.statusCode >= 300) {
1904
+ return de_CommandError(output, context);
1905
+ }
1906
+ const contents = (0, smithy_client_1.map)({
1907
+ $metadata: deserializeMetadata(output),
1908
+ });
1909
+ await (0, smithy_client_1.collectBody)(output.body, context);
1910
+ return contents;
1911
+ };
1912
+ exports.de_RemoveSuggestionCommand = de_RemoveSuggestionCommand;
1890
1913
  const de_SwipeCommand = async (output, context) => {
1891
1914
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1892
1915
  return de_CommandError(output, context);
@@ -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.9.0";
5
- exports.TELEMETRY_CATALOG_HASH = "7f0a0b33ce88bee5";
4
+ exports.TELEMETRY_CATALOG_VERSION = "1.10.0";
5
+ exports.TELEMETRY_CATALOG_HASH = "1d9a5b9cd896cae9";
6
6
  exports.SignalType = {
7
7
  SCREEN_VIEW: "screen_view",
8
8
  UI_INTERACTION: "ui_interaction",
@@ -386,6 +386,7 @@ exports.UiElement = {
386
386
  PREFERENCES_SAVE: "preferences.save",
387
387
  PREFERENCES_UPGRADE_OPEN: "preferences.upgrade_open",
388
388
  PREFERENCES_LOCKED_FILTER_TAP: "preferences.locked_filter_tap",
389
+ PREFERENCES_SUGGESTION_REMOVE: "preferences.suggestion_remove",
389
390
  SETTINGS_EMAIL_MANAGE: "settings.email_manage",
390
391
  SETTINGS_PHONE_UPDATE: "settings.phone_update",
391
392
  SETTINGS_GOOGLE_LINK: "settings.google_link",
@@ -630,6 +631,7 @@ exports.UI_ELEMENTS = {
630
631
  "preferences.save": { screen: "PREFERENCES", kind: "button", actions: ["submit"], values: null, platforms: ["ios", "android"] },
631
632
  "preferences.upgrade_open": { screen: "PREFERENCES", kind: "button", actions: ["tap", "dismiss"], values: null, platforms: ["ios"] },
632
633
  "preferences.locked_filter_tap": { screen: "PREFERENCES", kind: "button", actions: ["tap"], values: null, platforms: ["ios"] },
634
+ "preferences.suggestion_remove": { screen: "PREFERENCES", kind: "button", actions: ["tap"], values: null, platforms: ["web", "ios", "android"] },
633
635
  "settings.email_manage": { screen: "SETTINGS", kind: "button", actions: ["tap", "dismiss"], values: null, platforms: ["web", "ios", "android"] },
634
636
  "settings.phone_update": { screen: "SETTINGS", kind: "button", actions: ["tap", "dismiss"], values: null, platforms: ["ios", "android"] },
635
637
  "settings.google_link": { screen: "SETTINGS", kind: "toggle", actions: ["toggle"], values: ["link", "unlink"], platforms: ["web", "ios", "android"] },
@@ -45,6 +45,7 @@ import { RegisterDeviceCommand, } from "./commands/RegisterDeviceCommand";
45
45
  import { RegisterPhoneCommand, } from "./commands/RegisterPhoneCommand";
46
46
  import { RegisterPushTokenCommand, } from "./commands/RegisterPushTokenCommand";
47
47
  import { RemoveLocationCommand, } from "./commands/RemoveLocationCommand";
48
+ import { RemoveSuggestionCommand, } from "./commands/RemoveSuggestionCommand";
48
49
  import { RequestEmailOtpCommand, } from "./commands/RequestEmailOtpCommand";
49
50
  import { RequestPhoneOtpCommand, } from "./commands/RequestPhoneOtpCommand";
50
51
  import { RequestPhoneUpdateOtpCommand, } from "./commands/RequestPhoneUpdateOtpCommand";
@@ -115,6 +116,7 @@ const commands = {
115
116
  IndexLocationCommand,
116
117
  RecordSuggestionCommand,
117
118
  RemoveLocationCommand,
119
+ RemoveSuggestionCommand,
118
120
  SwipeCommand,
119
121
  SwipeByUsernameCommand,
120
122
  UpdatePreferencesCommand,
@@ -0,0 +1,17 @@
1
+ import { de_RemoveSuggestionCommand, se_RemoveSuggestionCommand, } from "../protocols/Aws_restJson1";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ export { $Command };
5
+ export class RemoveSuggestionCommand extends $Command.classBuilder()
6
+ .m(function (Command, cs, config, o) {
7
+ return [
8
+ getSerdePlugin(config, this.serialize, this.deserialize),
9
+ ];
10
+ })
11
+ .s("OneHookService", "RemoveSuggestion", {})
12
+ .n("OneHookClient", "RemoveSuggestionCommand")
13
+ .f(void 0, void 0)
14
+ .ser(se_RemoveSuggestionCommand)
15
+ .de(de_RemoveSuggestionCommand)
16
+ .build() {
17
+ }
@@ -44,6 +44,7 @@ export * from "./GetRosesCommand";
44
44
  export * from "./IndexLocationCommand";
45
45
  export * from "./RecordSuggestionCommand";
46
46
  export * from "./RemoveLocationCommand";
47
+ export * from "./RemoveSuggestionCommand";
47
48
  export * from "./SwipeCommand";
48
49
  export * from "./SwipeByUsernameCommand";
49
50
  export * from "./UpdatePreferencesCommand";
@@ -662,6 +662,16 @@ export const se_RemoveLocationCommand = async (input, context) => {
662
662
  .b(body);
663
663
  return b.build();
664
664
  };
665
+ export const se_RemoveSuggestionCommand = async (input, context) => {
666
+ const b = rb(input, context);
667
+ const headers = {};
668
+ b.bp("/matching/suggestions");
669
+ let body;
670
+ b.m("DELETE")
671
+ .h(headers)
672
+ .b(body);
673
+ return b.build();
674
+ };
665
675
  export const se_SwipeCommand = async (input, context) => {
666
676
  const b = rb(input, context);
667
677
  const headers = {
@@ -1659,6 +1669,7 @@ export const de_GetPreferencesCommand = async (output, context) => {
1659
1669
  const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
1660
1670
  const doc = take(data, {
1661
1671
  'cannabis': __expectString,
1672
+ 'currentSuggestion': _json,
1662
1673
  'dealbreakers': _json,
1663
1674
  'discoverable': __expectBoolean,
1664
1675
  'distanceUnit': __expectString,
@@ -1768,6 +1779,16 @@ export const de_RemoveLocationCommand = async (output, context) => {
1768
1779
  Object.assign(contents, doc);
1769
1780
  return contents;
1770
1781
  };
1782
+ export const de_RemoveSuggestionCommand = async (output, context) => {
1783
+ if (output.statusCode !== 204 && output.statusCode >= 300) {
1784
+ return de_CommandError(output, context);
1785
+ }
1786
+ const contents = map({
1787
+ $metadata: deserializeMetadata(output),
1788
+ });
1789
+ await collectBody(output.body, context);
1790
+ return contents;
1791
+ };
1771
1792
  export const de_SwipeCommand = async (output, context) => {
1772
1793
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1773
1794
  return de_CommandError(output, context);
@@ -1,5 +1,5 @@
1
- export const TELEMETRY_CATALOG_VERSION = "1.9.0";
2
- export const TELEMETRY_CATALOG_HASH = "7f0a0b33ce88bee5";
1
+ export const TELEMETRY_CATALOG_VERSION = "1.10.0";
2
+ export const TELEMETRY_CATALOG_HASH = "1d9a5b9cd896cae9";
3
3
  export const SignalType = {
4
4
  SCREEN_VIEW: "screen_view",
5
5
  UI_INTERACTION: "ui_interaction",
@@ -383,6 +383,7 @@ export const UiElement = {
383
383
  PREFERENCES_SAVE: "preferences.save",
384
384
  PREFERENCES_UPGRADE_OPEN: "preferences.upgrade_open",
385
385
  PREFERENCES_LOCKED_FILTER_TAP: "preferences.locked_filter_tap",
386
+ PREFERENCES_SUGGESTION_REMOVE: "preferences.suggestion_remove",
386
387
  SETTINGS_EMAIL_MANAGE: "settings.email_manage",
387
388
  SETTINGS_PHONE_UPDATE: "settings.phone_update",
388
389
  SETTINGS_GOOGLE_LINK: "settings.google_link",
@@ -627,6 +628,7 @@ export const UI_ELEMENTS = {
627
628
  "preferences.save": { screen: "PREFERENCES", kind: "button", actions: ["submit"], values: null, platforms: ["ios", "android"] },
628
629
  "preferences.upgrade_open": { screen: "PREFERENCES", kind: "button", actions: ["tap", "dismiss"], values: null, platforms: ["ios"] },
629
630
  "preferences.locked_filter_tap": { screen: "PREFERENCES", kind: "button", actions: ["tap"], values: null, platforms: ["ios"] },
631
+ "preferences.suggestion_remove": { screen: "PREFERENCES", kind: "button", actions: ["tap"], values: null, platforms: ["web", "ios", "android"] },
630
632
  "settings.email_manage": { screen: "SETTINGS", kind: "button", actions: ["tap", "dismiss"], values: null, platforms: ["web", "ios", "android"] },
631
633
  "settings.phone_update": { screen: "SETTINGS", kind: "button", actions: ["tap", "dismiss"], values: null, platforms: ["ios", "android"] },
632
634
  "settings.google_link": { screen: "SETTINGS", kind: "toggle", actions: ["toggle"], values: ["link", "unlink"], platforms: ["web", "ios", "android"] },
@@ -45,6 +45,7 @@ import { RegisterDeviceCommandInput, RegisterDeviceCommandOutput } from "./comma
45
45
  import { RegisterPhoneCommandInput, RegisterPhoneCommandOutput } from "./commands/RegisterPhoneCommand";
46
46
  import { RegisterPushTokenCommandInput, RegisterPushTokenCommandOutput } from "./commands/RegisterPushTokenCommand";
47
47
  import { RemoveLocationCommandInput, RemoveLocationCommandOutput } from "./commands/RemoveLocationCommand";
48
+ import { RemoveSuggestionCommandInput, RemoveSuggestionCommandOutput } from "./commands/RemoveSuggestionCommand";
48
49
  import { RequestEmailOtpCommandInput, RequestEmailOtpCommandOutput } from "./commands/RequestEmailOtpCommand";
49
50
  import { RequestPhoneOtpCommandInput, RequestPhoneOtpCommandOutput } from "./commands/RequestPhoneOtpCommand";
50
51
  import { RequestPhoneUpdateOtpCommandInput, RequestPhoneUpdateOtpCommandOutput } from "./commands/RequestPhoneUpdateOtpCommand";
@@ -350,6 +351,13 @@ export interface OneHook {
350
351
  removeLocation(args: RemoveLocationCommandInput, options?: __HttpHandlerOptions): Promise<RemoveLocationCommandOutput>;
351
352
  removeLocation(args: RemoveLocationCommandInput, cb: (err: any, data?: RemoveLocationCommandOutput) => void): void;
352
353
  removeLocation(args: RemoveLocationCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: RemoveLocationCommandOutput) => void): void;
354
+ /**
355
+ * @see {@link RemoveSuggestionCommand}
356
+ */
357
+ removeSuggestion(): Promise<RemoveSuggestionCommandOutput>;
358
+ removeSuggestion(args: RemoveSuggestionCommandInput, options?: __HttpHandlerOptions): Promise<RemoveSuggestionCommandOutput>;
359
+ removeSuggestion(args: RemoveSuggestionCommandInput, cb: (err: any, data?: RemoveSuggestionCommandOutput) => void): void;
360
+ removeSuggestion(args: RemoveSuggestionCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: RemoveSuggestionCommandOutput) => void): void;
353
361
  /**
354
362
  * @see {@link SwipeCommand}
355
363
  */
@@ -45,6 +45,7 @@ import { RegisterDeviceCommandInput, RegisterDeviceCommandOutput } from "./comma
45
45
  import { RegisterPhoneCommandInput, RegisterPhoneCommandOutput } from "./commands/RegisterPhoneCommand";
46
46
  import { RegisterPushTokenCommandInput, RegisterPushTokenCommandOutput } from "./commands/RegisterPushTokenCommand";
47
47
  import { RemoveLocationCommandInput, RemoveLocationCommandOutput } from "./commands/RemoveLocationCommand";
48
+ import { RemoveSuggestionCommandInput, RemoveSuggestionCommandOutput } from "./commands/RemoveSuggestionCommand";
48
49
  import { RequestEmailOtpCommandInput, RequestEmailOtpCommandOutput } from "./commands/RequestEmailOtpCommand";
49
50
  import { RequestPhoneOtpCommandInput, RequestPhoneOtpCommandOutput } from "./commands/RequestPhoneOtpCommand";
50
51
  import { RequestPhoneUpdateOtpCommandInput, RequestPhoneUpdateOtpCommandOutput } from "./commands/RequestPhoneUpdateOtpCommand";
@@ -79,11 +80,11 @@ export { __Client };
79
80
  /**
80
81
  * @public
81
82
  */
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;
83
+ 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 | RemoveSuggestionCommandInput | RequestEmailOtpCommandInput | RequestPhoneOtpCommandInput | RequestPhoneUpdateOtpCommandInput | RevokeDeviceCommandInput | RevokeUserAccessCommandInput | SearchPlacesCommandInput | SendAdminLinkOtpCommandInput | SetAccountStateCommandInput | SetPreservationHoldCommandInput | SwipeByUsernameCommandInput | SwipeCommandInput | UnhookCommandInput | UnlinkSocialCommandInput | UpdateChatSettingsCommandInput | UpdateEntitlementsCommandInput | UpdatePhoneNumberCommandInput | UpdatePreferencesCommandInput | UpdateProfileCommandInput | UpdateUsernameCommandInput | UpgradeUserCommandInput | ValidateInviteCommandInput | VerifyAdminLinkOtpCommandInput;
83
84
  /**
84
85
  * @public
85
86
  */
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;
87
+ 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 | RemoveSuggestionCommandOutput | RequestEmailOtpCommandOutput | RequestPhoneOtpCommandOutput | RequestPhoneUpdateOtpCommandOutput | RevokeDeviceCommandOutput | RevokeUserAccessCommandOutput | SearchPlacesCommandOutput | SendAdminLinkOtpCommandOutput | SetAccountStateCommandOutput | SetPreservationHoldCommandOutput | SwipeByUsernameCommandOutput | SwipeCommandOutput | UnhookCommandOutput | UnlinkSocialCommandOutput | UpdateChatSettingsCommandOutput | UpdateEntitlementsCommandOutput | UpdatePhoneNumberCommandOutput | UpdatePreferencesCommandOutput | UpdateProfileCommandOutput | UpdateUsernameCommandOutput | UpgradeUserCommandOutput | ValidateInviteCommandOutput | VerifyAdminLinkOtpCommandOutput;
87
88
  /**
88
89
  * @public
89
90
  */
@@ -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"),
@@ -27,11 +27,12 @@ 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 OneHook suggestion: OneHook AI's analysis of who they are looking for, after they
31
+ * explicitly asked. A member has ONE such suggestion; a new one replaces the current one. It is never
32
+ * removed otherwise, except by `RemoveSuggestion` or account deletion. Matching candidates appear in
33
+ * `Discover` as `MR_ONEHOOK` cards carrying `reasoning`; the current one is in `GetPreferences`
34
+ * (`currentSuggestion`). Super and above, from the session's tier (403 `PREMIUM_REQUIRED` otherwise);
35
+ * 503 when the embedding model is unavailable. The prompt is never logged or returned.
35
36
  * @example
36
37
  * Use a bare-bones client and the command you need to make an API call.
37
38
  * ```javascript
@@ -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 OneHook 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
+ }
@@ -44,6 +44,7 @@ export * from "./GetRosesCommand";
44
44
  export * from "./IndexLocationCommand";
45
45
  export * from "./RecordSuggestionCommand";
46
46
  export * from "./RemoveLocationCommand";
47
+ export * from "./RemoveSuggestionCommand";
47
48
  export * from "./SwipeCommand";
48
49
  export * from "./SwipeByUsernameCommand";
49
50
  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;
@@ -1513,6 +1535,16 @@ export interface RecordSuggestionRequest {
1513
1535
  export interface RecordSuggestionResponse {
1514
1536
  suggestionId: string | undefined;
1515
1537
  }
1538
+ /**
1539
+ * @public
1540
+ */
1541
+ export interface RemoveSuggestionRequest {
1542
+ }
1543
+ /**
1544
+ * @public
1545
+ */
1546
+ export interface RemoveSuggestionResponse {
1547
+ }
1516
1548
  /**
1517
1549
  * @public
1518
1550
  */
@@ -44,6 +44,7 @@ import { RegisterDeviceCommandInput, RegisterDeviceCommandOutput } from "../comm
44
44
  import { RegisterPhoneCommandInput, RegisterPhoneCommandOutput } from "../commands/RegisterPhoneCommand";
45
45
  import { RegisterPushTokenCommandInput, RegisterPushTokenCommandOutput } from "../commands/RegisterPushTokenCommand";
46
46
  import { RemoveLocationCommandInput, RemoveLocationCommandOutput } from "../commands/RemoveLocationCommand";
47
+ import { RemoveSuggestionCommandInput, RemoveSuggestionCommandOutput } from "../commands/RemoveSuggestionCommand";
47
48
  import { RequestEmailOtpCommandInput, RequestEmailOtpCommandOutput } from "../commands/RequestEmailOtpCommand";
48
49
  import { RequestPhoneOtpCommandInput, RequestPhoneOtpCommandOutput } from "../commands/RequestPhoneOtpCommand";
49
50
  import { RequestPhoneUpdateOtpCommandInput, RequestPhoneUpdateOtpCommandOutput } from "../commands/RequestPhoneUpdateOtpCommand";
@@ -252,6 +253,10 @@ export declare const se_RecordSuggestionCommand: (input: RecordSuggestionCommand
252
253
  * serializeAws_restJson1RemoveLocationCommand
253
254
  */
254
255
  export declare const se_RemoveLocationCommand: (input: RemoveLocationCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
256
+ /**
257
+ * serializeAws_restJson1RemoveSuggestionCommand
258
+ */
259
+ export declare const se_RemoveSuggestionCommand: (input: RemoveSuggestionCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
255
260
  /**
256
261
  * serializeAws_restJson1SwipeCommand
257
262
  */
@@ -524,6 +529,10 @@ export declare const de_RecordSuggestionCommand: (output: __HttpResponse, contex
524
529
  * deserializeAws_restJson1RemoveLocationCommand
525
530
  */
526
531
  export declare const de_RemoveLocationCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<RemoveLocationCommandOutput>;
532
+ /**
533
+ * deserializeAws_restJson1RemoveSuggestionCommand
534
+ */
535
+ export declare const de_RemoveSuggestionCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<RemoveSuggestionCommandOutput>;
527
536
  /**
528
537
  * deserializeAws_restJson1SwipeCommand
529
538
  */
@@ -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.10.0";
2
+ export declare const TELEMETRY_CATALOG_HASH = "1d9a5b9cd896cae9";
3
3
  /** Every signal type the ingest accepts. */
4
4
  export declare const SignalType: {
5
5
  readonly SCREEN_VIEW: "screen_view";
@@ -422,6 +422,7 @@ export declare const UiElement: {
422
422
  readonly PREFERENCES_SAVE: "preferences.save";
423
423
  readonly PREFERENCES_UPGRADE_OPEN: "preferences.upgrade_open";
424
424
  readonly PREFERENCES_LOCKED_FILTER_TAP: "preferences.locked_filter_tap";
425
+ readonly PREFERENCES_SUGGESTION_REMOVE: "preferences.suggestion_remove";
425
426
  readonly SETTINGS_EMAIL_MANAGE: "settings.email_manage";
426
427
  readonly SETTINGS_PHONE_UPDATE: "settings.phone_update";
427
428
  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.33",
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 aac1313159fd47e34f1a3f8e5d3578ae5470f782e679f1272269235e585c80ac
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.10.0, hash 1d9a5b9cd896cae9.
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.10.0"
16
+ const val HASH = "1d9a5b9cd896cae9"
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
  }
@@ -485,6 +485,7 @@ enum class UiElement(
485
485
  PREFERENCES_SAVE("preferences.save", TelemetryScreen.PREFERENCES, UiElementKind.BUTTON, listOf(UiAction.SUBMIT), null, listOf(TelemetryPlatform.IOS, TelemetryPlatform.ANDROID)),
486
486
  PREFERENCES_UPGRADE_OPEN("preferences.upgrade_open", TelemetryScreen.PREFERENCES, UiElementKind.BUTTON, listOf(UiAction.TAP, UiAction.DISMISS), null, listOf(TelemetryPlatform.IOS)),
487
487
  PREFERENCES_LOCKED_FILTER_TAP("preferences.locked_filter_tap", TelemetryScreen.PREFERENCES, UiElementKind.BUTTON, listOf(UiAction.TAP), null, listOf(TelemetryPlatform.IOS)),
488
+ PREFERENCES_SUGGESTION_REMOVE("preferences.suggestion_remove", TelemetryScreen.PREFERENCES, UiElementKind.BUTTON, listOf(UiAction.TAP), null, listOf(TelemetryPlatform.WEB, TelemetryPlatform.IOS, TelemetryPlatform.ANDROID)),
488
489
  SETTINGS_EMAIL_MANAGE("settings.email_manage", TelemetryScreen.SETTINGS, UiElementKind.BUTTON, listOf(UiAction.TAP, UiAction.DISMISS), null, listOf(TelemetryPlatform.WEB, TelemetryPlatform.IOS, TelemetryPlatform.ANDROID)),
489
490
  SETTINGS_PHONE_UPDATE("settings.phone_update", TelemetryScreen.SETTINGS, UiElementKind.BUTTON, listOf(UiAction.TAP, UiAction.DISMISS), null, listOf(TelemetryPlatform.IOS, TelemetryPlatform.ANDROID)),
490
491
  SETTINGS_GOOGLE_LINK("settings.google_link", TelemetryScreen.SETTINGS, UiElementKind.TOGGLE, listOf(UiAction.TOGGLE), listOf("link", "unlink"), listOf(TelemetryPlatform.WEB, TelemetryPlatform.IOS, TelemetryPlatform.ANDROID)),
@@ -1,8 +1,8 @@
1
1
  // GENERATED FILE - DO NOT EDIT.
2
- // telemetry-integrity: sha256 5bcd831b61a3da089414bf5baca00e64f091df82b44eb2059d4043c16281b0c3
2
+ // telemetry-integrity: sha256 b9f45d2a085aa15bf7faddbc829f18de626f3e0731267972075b2334fa85f34b
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.10.0, hash 1d9a5b9cd896cae9.
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).
@@ -10,8 +10,8 @@
10
10
  import Foundation
11
11
 
12
12
  public enum TelemetryCatalog {
13
- public static let version = "1.9.0"
14
- public static let hash = "7f0a0b33ce88bee5"
13
+ public static let version = "1.10.0"
14
+ public static let hash = "1d9a5b9cd896cae9"
15
15
  /// The only allowed `telemetry-exempt: <category>: <reason>` categories (see the catalog).
16
16
  public static let exemptCategories: [String] = ["duplicate", "backdrop", "gesture", "continuous", "disabled"]
17
17
  }
@@ -423,6 +423,7 @@ public enum UiElement: String, CaseIterable, Codable, Sendable {
423
423
  case preferencesSave = "preferences.save"
424
424
  case preferencesUpgradeOpen = "preferences.upgrade_open"
425
425
  case preferencesLockedFilterTap = "preferences.locked_filter_tap"
426
+ case preferencesSuggestionRemove = "preferences.suggestion_remove"
426
427
  case settingsEmailManage = "settings.email_manage"
427
428
  case settingsPhoneUpdate = "settings.phone_update"
428
429
  case settingsGoogleLink = "settings.google_link"
@@ -668,6 +669,7 @@ public enum UiElement: String, CaseIterable, Codable, Sendable {
668
669
  case .preferencesSave: return UiElementSpec(screen: .preferences, kind: .button, actions: [.submit], allowedValues: nil, platforms: [.ios, .android])
669
670
  case .preferencesUpgradeOpen: return UiElementSpec(screen: .preferences, kind: .button, actions: [.tap, .dismiss], allowedValues: nil, platforms: [.ios])
670
671
  case .preferencesLockedFilterTap: return UiElementSpec(screen: .preferences, kind: .button, actions: [.tap], allowedValues: nil, platforms: [.ios])
672
+ case .preferencesSuggestionRemove: return UiElementSpec(screen: .preferences, kind: .button, actions: [.tap], allowedValues: nil, platforms: [.web, .ios, .android])
671
673
  case .settingsEmailManage: return UiElementSpec(screen: .settings, kind: .button, actions: [.tap, .dismiss], allowedValues: nil, platforms: [.web, .ios, .android])
672
674
  case .settingsPhoneUpdate: return UiElementSpec(screen: .settings, kind: .button, actions: [.tap, .dismiss], allowedValues: nil, platforms: [.ios, .android])
673
675
  case .settingsGoogleLink: return UiElementSpec(screen: .settings, kind: .toggle, actions: [.toggle], allowedValues: ["link", "unlink"], platforms: [.web, .ios, .android])
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.9.0",
2
+ "version": "1.10.0",
3
3
  "screens": {
4
4
  "NAV": {
5
5
  "viewable": false,
@@ -3515,6 +3515,22 @@
3515
3515
  "deprecated": null,
3516
3516
  "legacy": null
3517
3517
  },
3518
+ "preferences.suggestion_remove": {
3519
+ "screen": "PREFERENCES",
3520
+ "kind": "button",
3521
+ "description": "Remove the member's current Mr. OneHook suggestion.",
3522
+ "actions": [
3523
+ "tap"
3524
+ ],
3525
+ "values": null,
3526
+ "platforms": [
3527
+ "web",
3528
+ "ios",
3529
+ "android"
3530
+ ],
3531
+ "deprecated": null,
3532
+ "legacy": null
3533
+ },
3518
3534
  "settings.email_manage": {
3519
3535
  "screen": "SETTINGS",
3520
3536
  "kind": "button",
@@ -4977,5 +4993,5 @@
4977
4993
  }
4978
4994
  }
4979
4995
  },
4980
- "hash": "7f0a0b33ce88bee5"
4996
+ "hash": "1d9a5b9cd896cae9"
4981
4997
  }