onehook-api-client 1.0.33 → 1.0.35
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 +14 -0
- package/dist-cjs/OneHook.js +4 -0
- package/dist-cjs/commands/GetSuggestionsCommand.js +21 -0
- package/dist-cjs/commands/RemoveOneHookSuggestionCommand.js +21 -0
- package/dist-cjs/commands/index.js +2 -0
- package/dist-cjs/protocols/Aws_restJson1.js +52 -3
- package/dist-cjs/telemetry/index.js +16 -2
- package/dist-es/OneHook.js +4 -0
- package/dist-es/commands/GetSuggestionsCommand.js +17 -0
- package/dist-es/commands/RemoveOneHookSuggestionCommand.js +17 -0
- package/dist-es/commands/index.js +2 -0
- package/dist-es/protocols/Aws_restJson1.js +45 -0
- package/dist-es/telemetry/index.js +16 -2
- package/dist-types/OneHook.d.ts +16 -0
- package/dist-types/OneHookClient.d.ts +4 -2
- package/dist-types/commands/GetSuggestionsCommand.d.ts +84 -0
- package/dist-types/commands/RecordSuggestionCommand.d.ts +5 -6
- package/dist-types/commands/RemoveOneHookSuggestionCommand.d.ts +72 -0
- package/dist-types/commands/RemoveSuggestionCommand.d.ts +1 -1
- package/dist-types/commands/index.d.ts +2 -0
- package/dist-types/models/models_0.d.ts +30 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +18 -0
- package/dist-types/telemetry/index.d.ts +9 -2
- package/package.json +1 -1
- package/telemetry/TelemetryCatalog.kt +11 -4
- package/telemetry/TelemetryCatalog.swift +18 -4
- package/telemetry/telemetry-catalog.json +120 -2
package/README.md
CHANGED
|
@@ -500,6 +500,13 @@ GetRoses
|
|
|
500
500
|
</details>
|
|
501
501
|
<details>
|
|
502
502
|
<summary>
|
|
503
|
+
GetSuggestions
|
|
504
|
+
</summary>
|
|
505
|
+
|
|
506
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/onehook/command/GetSuggestionsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-onehook/Interface/GetSuggestionsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-onehook/Interface/GetSuggestionsCommandOutput/)
|
|
507
|
+
</details>
|
|
508
|
+
<details>
|
|
509
|
+
<summary>
|
|
503
510
|
IndexLocation
|
|
504
511
|
</summary>
|
|
505
512
|
|
|
@@ -521,6 +528,13 @@ RemoveLocation
|
|
|
521
528
|
</details>
|
|
522
529
|
<details>
|
|
523
530
|
<summary>
|
|
531
|
+
RemoveOneHookSuggestion
|
|
532
|
+
</summary>
|
|
533
|
+
|
|
534
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/onehook/command/RemoveOneHookSuggestionCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-onehook/Interface/RemoveOneHookSuggestionCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-onehook/Interface/RemoveOneHookSuggestionCommandOutput/)
|
|
535
|
+
</details>
|
|
536
|
+
<details>
|
|
537
|
+
<summary>
|
|
524
538
|
RemoveSuggestion
|
|
525
539
|
</summary>
|
|
526
540
|
|
package/dist-cjs/OneHook.js
CHANGED
|
@@ -35,6 +35,7 @@ const GetProfileCommand_1 = require("./commands/GetProfileCommand");
|
|
|
35
35
|
const GetReceivedLikesCommand_1 = require("./commands/GetReceivedLikesCommand");
|
|
36
36
|
const GetRosesCommand_1 = require("./commands/GetRosesCommand");
|
|
37
37
|
const GetStateCommand_1 = require("./commands/GetStateCommand");
|
|
38
|
+
const GetSuggestionsCommand_1 = require("./commands/GetSuggestionsCommand");
|
|
38
39
|
const GetUserByEmailCommand_1 = require("./commands/GetUserByEmailCommand");
|
|
39
40
|
const GetUserCommand_1 = require("./commands/GetUserCommand");
|
|
40
41
|
const GetUserIdByUsernameCommand_1 = require("./commands/GetUserIdByUsernameCommand");
|
|
@@ -48,6 +49,7 @@ const RegisterDeviceCommand_1 = require("./commands/RegisterDeviceCommand");
|
|
|
48
49
|
const RegisterPhoneCommand_1 = require("./commands/RegisterPhoneCommand");
|
|
49
50
|
const RegisterPushTokenCommand_1 = require("./commands/RegisterPushTokenCommand");
|
|
50
51
|
const RemoveLocationCommand_1 = require("./commands/RemoveLocationCommand");
|
|
52
|
+
const RemoveOneHookSuggestionCommand_1 = require("./commands/RemoveOneHookSuggestionCommand");
|
|
51
53
|
const RemoveSuggestionCommand_1 = require("./commands/RemoveSuggestionCommand");
|
|
52
54
|
const RequestEmailOtpCommand_1 = require("./commands/RequestEmailOtpCommand");
|
|
53
55
|
const RequestPhoneOtpCommand_1 = require("./commands/RequestPhoneOtpCommand");
|
|
@@ -116,9 +118,11 @@ const commands = {
|
|
|
116
118
|
GetPreferencesCommand: GetPreferencesCommand_1.GetPreferencesCommand,
|
|
117
119
|
GetReceivedLikesCommand: GetReceivedLikesCommand_1.GetReceivedLikesCommand,
|
|
118
120
|
GetRosesCommand: GetRosesCommand_1.GetRosesCommand,
|
|
121
|
+
GetSuggestionsCommand: GetSuggestionsCommand_1.GetSuggestionsCommand,
|
|
119
122
|
IndexLocationCommand: IndexLocationCommand_1.IndexLocationCommand,
|
|
120
123
|
RecordSuggestionCommand: RecordSuggestionCommand_1.RecordSuggestionCommand,
|
|
121
124
|
RemoveLocationCommand: RemoveLocationCommand_1.RemoveLocationCommand,
|
|
125
|
+
RemoveOneHookSuggestionCommand: RemoveOneHookSuggestionCommand_1.RemoveOneHookSuggestionCommand,
|
|
122
126
|
RemoveSuggestionCommand: RemoveSuggestionCommand_1.RemoveSuggestionCommand,
|
|
123
127
|
SwipeCommand: SwipeCommand_1.SwipeCommand,
|
|
124
128
|
SwipeByUsernameCommand: SwipeByUsernameCommand_1.SwipeByUsernameCommand,
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GetSuggestionsCommand = 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 GetSuggestionsCommand 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", "GetSuggestions", {})
|
|
15
|
+
.n("OneHookClient", "GetSuggestionsCommand")
|
|
16
|
+
.f(void 0, void 0)
|
|
17
|
+
.ser(Aws_restJson1_1.se_GetSuggestionsCommand)
|
|
18
|
+
.de(Aws_restJson1_1.de_GetSuggestionsCommand)
|
|
19
|
+
.build() {
|
|
20
|
+
}
|
|
21
|
+
exports.GetSuggestionsCommand = GetSuggestionsCommand;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.RemoveOneHookSuggestionCommand = 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 RemoveOneHookSuggestionCommand 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", "RemoveOneHookSuggestion", {})
|
|
15
|
+
.n("OneHookClient", "RemoveOneHookSuggestionCommand")
|
|
16
|
+
.f(void 0, void 0)
|
|
17
|
+
.ser(Aws_restJson1_1.se_RemoveOneHookSuggestionCommand)
|
|
18
|
+
.de(Aws_restJson1_1.de_RemoveOneHookSuggestionCommand)
|
|
19
|
+
.build() {
|
|
20
|
+
}
|
|
21
|
+
exports.RemoveOneHookSuggestionCommand = RemoveOneHookSuggestionCommand;
|
|
@@ -44,9 +44,11 @@ tslib_1.__exportStar(require("./GetNotificationPreferencesCommand"), exports);
|
|
|
44
44
|
tslib_1.__exportStar(require("./GetPreferencesCommand"), exports);
|
|
45
45
|
tslib_1.__exportStar(require("./GetReceivedLikesCommand"), exports);
|
|
46
46
|
tslib_1.__exportStar(require("./GetRosesCommand"), exports);
|
|
47
|
+
tslib_1.__exportStar(require("./GetSuggestionsCommand"), exports);
|
|
47
48
|
tslib_1.__exportStar(require("./IndexLocationCommand"), exports);
|
|
48
49
|
tslib_1.__exportStar(require("./RecordSuggestionCommand"), exports);
|
|
49
50
|
tslib_1.__exportStar(require("./RemoveLocationCommand"), exports);
|
|
51
|
+
tslib_1.__exportStar(require("./RemoveOneHookSuggestionCommand"), exports);
|
|
50
52
|
tslib_1.__exportStar(require("./RemoveSuggestionCommand"), exports);
|
|
51
53
|
tslib_1.__exportStar(require("./SwipeCommand"), exports);
|
|
52
54
|
tslib_1.__exportStar(require("./SwipeByUsernameCommand"), exports);
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.
|
|
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;
|
|
3
|
+
exports.se_SwipeCommand = exports.se_RemoveSuggestionCommand = exports.se_RemoveOneHookSuggestionCommand = exports.se_RemoveLocationCommand = exports.se_RecordSuggestionCommand = exports.se_IndexLocationCommand = exports.se_GetSuggestionsCommand = 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_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 = exports.se_UpdatePreferencesCommand = exports.se_SwipeByUsernameCommand = 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_RemoveOneHookSuggestionCommand = exports.de_RemoveLocationCommand = exports.de_RecordSuggestionCommand = exports.de_IndexLocationCommand = exports.de_GetSuggestionsCommand = 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 = exports.de_SetAccountStateCommand = exports.de_SendAdminLinkOtpCommand = 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");
|
|
@@ -662,6 +662,17 @@ const se_GetRosesCommand = async (input, context) => {
|
|
|
662
662
|
return b.build();
|
|
663
663
|
};
|
|
664
664
|
exports.se_GetRosesCommand = se_GetRosesCommand;
|
|
665
|
+
const se_GetSuggestionsCommand = async (input, context) => {
|
|
666
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
667
|
+
const headers = {};
|
|
668
|
+
b.bp("/matching/suggestions");
|
|
669
|
+
let body;
|
|
670
|
+
b.m("GET")
|
|
671
|
+
.h(headers)
|
|
672
|
+
.b(body);
|
|
673
|
+
return b.build();
|
|
674
|
+
};
|
|
675
|
+
exports.se_GetSuggestionsCommand = se_GetSuggestionsCommand;
|
|
665
676
|
const se_IndexLocationCommand = async (input, context) => {
|
|
666
677
|
const b = (0, core_2.requestBuilder)(input, context);
|
|
667
678
|
const headers = {
|
|
@@ -713,6 +724,17 @@ const se_RemoveLocationCommand = async (input, context) => {
|
|
|
713
724
|
return b.build();
|
|
714
725
|
};
|
|
715
726
|
exports.se_RemoveLocationCommand = se_RemoveLocationCommand;
|
|
727
|
+
const se_RemoveOneHookSuggestionCommand = async (input, context) => {
|
|
728
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
729
|
+
const headers = {};
|
|
730
|
+
b.bp("/matching/suggestions/onehook");
|
|
731
|
+
let body;
|
|
732
|
+
b.m("DELETE")
|
|
733
|
+
.h(headers)
|
|
734
|
+
.b(body);
|
|
735
|
+
return b.build();
|
|
736
|
+
};
|
|
737
|
+
exports.se_RemoveOneHookSuggestionCommand = se_RemoveOneHookSuggestionCommand;
|
|
716
738
|
const se_RemoveSuggestionCommand = async (input, context) => {
|
|
717
739
|
const b = (0, core_2.requestBuilder)(input, context);
|
|
718
740
|
const headers = {};
|
|
@@ -1854,6 +1876,22 @@ const de_GetRosesCommand = async (output, context) => {
|
|
|
1854
1876
|
return contents;
|
|
1855
1877
|
};
|
|
1856
1878
|
exports.de_GetRosesCommand = de_GetRosesCommand;
|
|
1879
|
+
const de_GetSuggestionsCommand = async (output, context) => {
|
|
1880
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1881
|
+
return de_CommandError(output, context);
|
|
1882
|
+
}
|
|
1883
|
+
const contents = (0, smithy_client_1.map)({
|
|
1884
|
+
$metadata: deserializeMetadata(output),
|
|
1885
|
+
});
|
|
1886
|
+
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
|
|
1887
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1888
|
+
'oneHook': smithy_client_1._json,
|
|
1889
|
+
'own': smithy_client_1._json,
|
|
1890
|
+
});
|
|
1891
|
+
Object.assign(contents, doc);
|
|
1892
|
+
return contents;
|
|
1893
|
+
};
|
|
1894
|
+
exports.de_GetSuggestionsCommand = de_GetSuggestionsCommand;
|
|
1857
1895
|
const de_IndexLocationCommand = async (output, context) => {
|
|
1858
1896
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1859
1897
|
return de_CommandError(output, context);
|
|
@@ -1899,6 +1937,17 @@ const de_RemoveLocationCommand = async (output, context) => {
|
|
|
1899
1937
|
return contents;
|
|
1900
1938
|
};
|
|
1901
1939
|
exports.de_RemoveLocationCommand = de_RemoveLocationCommand;
|
|
1940
|
+
const de_RemoveOneHookSuggestionCommand = async (output, context) => {
|
|
1941
|
+
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1942
|
+
return de_CommandError(output, context);
|
|
1943
|
+
}
|
|
1944
|
+
const contents = (0, smithy_client_1.map)({
|
|
1945
|
+
$metadata: deserializeMetadata(output),
|
|
1946
|
+
});
|
|
1947
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
1948
|
+
return contents;
|
|
1949
|
+
};
|
|
1950
|
+
exports.de_RemoveOneHookSuggestionCommand = de_RemoveOneHookSuggestionCommand;
|
|
1902
1951
|
const de_RemoveSuggestionCommand = async (output, context) => {
|
|
1903
1952
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1904
1953
|
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.
|
|
5
|
-
exports.TELEMETRY_CATALOG_HASH = "
|
|
4
|
+
exports.TELEMETRY_CATALOG_VERSION = "1.11.0";
|
|
5
|
+
exports.TELEMETRY_CATALOG_HASH = "12c7d6d70211f79c";
|
|
6
6
|
exports.SignalType = {
|
|
7
7
|
SCREEN_VIEW: "screen_view",
|
|
8
8
|
UI_INTERACTION: "ui_interaction",
|
|
@@ -337,6 +337,11 @@ exports.UiElement = {
|
|
|
337
337
|
CHAT_MR_ONEHOOK_CONTEXT_SHARE: "chat.mr_onehook_context_share",
|
|
338
338
|
CHAT_MR_ONEHOOK_SCOPE_OPEN: "chat.mr_onehook_scope_open",
|
|
339
339
|
CHAT_MR_ONEHOOK_SCOPE_SELECT: "chat.mr_onehook_scope_select",
|
|
340
|
+
CHAT_MR_ONEHOOK_SESSIONS_OPEN: "chat.mr_onehook_sessions_open",
|
|
341
|
+
CHAT_MR_ONEHOOK_SESSION_RESUME: "chat.mr_onehook_session_resume",
|
|
342
|
+
CHAT_MR_ONEHOOK_SESSION_DELETE: "chat.mr_onehook_session_delete",
|
|
343
|
+
CHAT_MR_ONEHOOK_SESSION_NEW: "chat.mr_onehook_session_new",
|
|
344
|
+
CHAT_MR_ONEHOOK_SESSION_LIMIT: "chat.mr_onehook_session_limit",
|
|
340
345
|
CHAT_INTRO_TOUR_OPEN: "chat.intro_tour_open",
|
|
341
346
|
CHAT_INTRO_DISMISS: "chat.intro_dismiss",
|
|
342
347
|
CHAT_INTRO_GET_STARTED: "chat.intro_get_started",
|
|
@@ -387,6 +392,8 @@ exports.UiElement = {
|
|
|
387
392
|
PREFERENCES_UPGRADE_OPEN: "preferences.upgrade_open",
|
|
388
393
|
PREFERENCES_LOCKED_FILTER_TAP: "preferences.locked_filter_tap",
|
|
389
394
|
PREFERENCES_SUGGESTION_REMOVE: "preferences.suggestion_remove",
|
|
395
|
+
PREFERENCES_OWN_SUGGESTION_SAVE: "preferences.own_suggestion_save",
|
|
396
|
+
PREFERENCES_OWN_SUGGESTION_REMOVE: "preferences.own_suggestion_remove",
|
|
390
397
|
SETTINGS_EMAIL_MANAGE: "settings.email_manage",
|
|
391
398
|
SETTINGS_PHONE_UPDATE: "settings.phone_update",
|
|
392
399
|
SETTINGS_GOOGLE_LINK: "settings.google_link",
|
|
@@ -582,6 +589,11 @@ exports.UI_ELEMENTS = {
|
|
|
582
589
|
"chat.mr_onehook_context_share": { screen: "CHAT", kind: "dialog_button", actions: ["submit", "dismiss"], values: null, platforms: ["web", "ios", "android"] },
|
|
583
590
|
"chat.mr_onehook_scope_open": { screen: "CHAT", kind: "button", actions: ["tap", "dismiss"], values: null, platforms: ["web"] },
|
|
584
591
|
"chat.mr_onehook_scope_select": { screen: "CHAT", kind: "menu_item", actions: ["tap"], values: null, platforms: ["web"] },
|
|
592
|
+
"chat.mr_onehook_sessions_open": { screen: "CHAT", kind: "button", actions: ["tap", "dismiss"], values: null, platforms: ["web", "ios", "android"] },
|
|
593
|
+
"chat.mr_onehook_session_resume": { screen: "CHAT", kind: "menu_item", actions: ["tap"], values: null, platforms: ["web", "ios", "android"] },
|
|
594
|
+
"chat.mr_onehook_session_delete": { screen: "CHAT", kind: "button", actions: ["tap"], values: null, platforms: ["web", "ios", "android"] },
|
|
595
|
+
"chat.mr_onehook_session_new": { screen: "CHAT", kind: "button", actions: ["tap"], values: null, platforms: ["web", "ios", "android"] },
|
|
596
|
+
"chat.mr_onehook_session_limit": { screen: "CHAT", kind: "dialog_button", actions: ["tap", "dismiss"], values: ["replace_least_recent", "manage", "cancel"], platforms: ["web", "ios", "android"] },
|
|
585
597
|
"chat.intro_tour_open": { screen: "CHAT", kind: "button", actions: ["tap"], values: null, platforms: ["ios"] },
|
|
586
598
|
"chat.intro_dismiss": { screen: "CHAT", kind: "button", actions: ["tap", "dismiss"], values: null, platforms: ["ios"] },
|
|
587
599
|
"chat.intro_get_started": { screen: "CHAT", kind: "button", actions: ["tap"], values: null, platforms: ["ios"] },
|
|
@@ -632,6 +644,8 @@ exports.UI_ELEMENTS = {
|
|
|
632
644
|
"preferences.upgrade_open": { screen: "PREFERENCES", kind: "button", actions: ["tap", "dismiss"], values: null, platforms: ["ios"] },
|
|
633
645
|
"preferences.locked_filter_tap": { screen: "PREFERENCES", kind: "button", actions: ["tap"], values: null, platforms: ["ios"] },
|
|
634
646
|
"preferences.suggestion_remove": { screen: "PREFERENCES", kind: "button", actions: ["tap"], values: null, platforms: ["web", "ios", "android"] },
|
|
647
|
+
"preferences.own_suggestion_save": { screen: "PREFERENCES", kind: "button", actions: ["submit"], values: null, platforms: ["web", "ios", "android"] },
|
|
648
|
+
"preferences.own_suggestion_remove": { screen: "PREFERENCES", kind: "button", actions: ["tap"], values: null, platforms: ["web", "ios", "android"] },
|
|
635
649
|
"settings.email_manage": { screen: "SETTINGS", kind: "button", actions: ["tap", "dismiss"], values: null, platforms: ["web", "ios", "android"] },
|
|
636
650
|
"settings.phone_update": { screen: "SETTINGS", kind: "button", actions: ["tap", "dismiss"], values: null, platforms: ["ios", "android"] },
|
|
637
651
|
"settings.google_link": { screen: "SETTINGS", kind: "toggle", actions: ["toggle"], values: ["link", "unlink"], platforms: ["web", "ios", "android"] },
|
package/dist-es/OneHook.js
CHANGED
|
@@ -32,6 +32,7 @@ import { GetProfileCommand, } from "./commands/GetProfileCommand";
|
|
|
32
32
|
import { GetReceivedLikesCommand, } from "./commands/GetReceivedLikesCommand";
|
|
33
33
|
import { GetRosesCommand, } from "./commands/GetRosesCommand";
|
|
34
34
|
import { GetStateCommand, } from "./commands/GetStateCommand";
|
|
35
|
+
import { GetSuggestionsCommand, } from "./commands/GetSuggestionsCommand";
|
|
35
36
|
import { GetUserByEmailCommand, } from "./commands/GetUserByEmailCommand";
|
|
36
37
|
import { GetUserCommand, } from "./commands/GetUserCommand";
|
|
37
38
|
import { GetUserIdByUsernameCommand, } from "./commands/GetUserIdByUsernameCommand";
|
|
@@ -45,6 +46,7 @@ import { RegisterDeviceCommand, } from "./commands/RegisterDeviceCommand";
|
|
|
45
46
|
import { RegisterPhoneCommand, } from "./commands/RegisterPhoneCommand";
|
|
46
47
|
import { RegisterPushTokenCommand, } from "./commands/RegisterPushTokenCommand";
|
|
47
48
|
import { RemoveLocationCommand, } from "./commands/RemoveLocationCommand";
|
|
49
|
+
import { RemoveOneHookSuggestionCommand, } from "./commands/RemoveOneHookSuggestionCommand";
|
|
48
50
|
import { RemoveSuggestionCommand, } from "./commands/RemoveSuggestionCommand";
|
|
49
51
|
import { RequestEmailOtpCommand, } from "./commands/RequestEmailOtpCommand";
|
|
50
52
|
import { RequestPhoneOtpCommand, } from "./commands/RequestPhoneOtpCommand";
|
|
@@ -113,9 +115,11 @@ const commands = {
|
|
|
113
115
|
GetPreferencesCommand,
|
|
114
116
|
GetReceivedLikesCommand,
|
|
115
117
|
GetRosesCommand,
|
|
118
|
+
GetSuggestionsCommand,
|
|
116
119
|
IndexLocationCommand,
|
|
117
120
|
RecordSuggestionCommand,
|
|
118
121
|
RemoveLocationCommand,
|
|
122
|
+
RemoveOneHookSuggestionCommand,
|
|
119
123
|
RemoveSuggestionCommand,
|
|
120
124
|
SwipeCommand,
|
|
121
125
|
SwipeByUsernameCommand,
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { de_GetSuggestionsCommand, se_GetSuggestionsCommand, } 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 GetSuggestionsCommand extends $Command.classBuilder()
|
|
6
|
+
.m(function (Command, cs, config, o) {
|
|
7
|
+
return [
|
|
8
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
9
|
+
];
|
|
10
|
+
})
|
|
11
|
+
.s("OneHookService", "GetSuggestions", {})
|
|
12
|
+
.n("OneHookClient", "GetSuggestionsCommand")
|
|
13
|
+
.f(void 0, void 0)
|
|
14
|
+
.ser(se_GetSuggestionsCommand)
|
|
15
|
+
.de(de_GetSuggestionsCommand)
|
|
16
|
+
.build() {
|
|
17
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { de_RemoveOneHookSuggestionCommand, se_RemoveOneHookSuggestionCommand, } 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 RemoveOneHookSuggestionCommand extends $Command.classBuilder()
|
|
6
|
+
.m(function (Command, cs, config, o) {
|
|
7
|
+
return [
|
|
8
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
9
|
+
];
|
|
10
|
+
})
|
|
11
|
+
.s("OneHookService", "RemoveOneHookSuggestion", {})
|
|
12
|
+
.n("OneHookClient", "RemoveOneHookSuggestionCommand")
|
|
13
|
+
.f(void 0, void 0)
|
|
14
|
+
.ser(se_RemoveOneHookSuggestionCommand)
|
|
15
|
+
.de(de_RemoveOneHookSuggestionCommand)
|
|
16
|
+
.build() {
|
|
17
|
+
}
|
|
@@ -41,9 +41,11 @@ 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";
|
|
47
49
|
export * from "./RemoveSuggestionCommand";
|
|
48
50
|
export * from "./SwipeCommand";
|
|
49
51
|
export * from "./SwipeByUsernameCommand";
|
|
@@ -614,6 +614,16 @@ export const se_GetRosesCommand = async (input, context) => {
|
|
|
614
614
|
.b(body);
|
|
615
615
|
return b.build();
|
|
616
616
|
};
|
|
617
|
+
export const se_GetSuggestionsCommand = async (input, context) => {
|
|
618
|
+
const b = rb(input, context);
|
|
619
|
+
const headers = {};
|
|
620
|
+
b.bp("/matching/suggestions");
|
|
621
|
+
let body;
|
|
622
|
+
b.m("GET")
|
|
623
|
+
.h(headers)
|
|
624
|
+
.b(body);
|
|
625
|
+
return b.build();
|
|
626
|
+
};
|
|
617
627
|
export const se_IndexLocationCommand = async (input, context) => {
|
|
618
628
|
const b = rb(input, context);
|
|
619
629
|
const headers = {
|
|
@@ -662,6 +672,16 @@ export const se_RemoveLocationCommand = async (input, context) => {
|
|
|
662
672
|
.b(body);
|
|
663
673
|
return b.build();
|
|
664
674
|
};
|
|
675
|
+
export const se_RemoveOneHookSuggestionCommand = async (input, context) => {
|
|
676
|
+
const b = rb(input, context);
|
|
677
|
+
const headers = {};
|
|
678
|
+
b.bp("/matching/suggestions/onehook");
|
|
679
|
+
let body;
|
|
680
|
+
b.m("DELETE")
|
|
681
|
+
.h(headers)
|
|
682
|
+
.b(body);
|
|
683
|
+
return b.build();
|
|
684
|
+
};
|
|
665
685
|
export const se_RemoveSuggestionCommand = async (input, context) => {
|
|
666
686
|
const b = rb(input, context);
|
|
667
687
|
const headers = {};
|
|
@@ -1737,6 +1757,21 @@ export const de_GetRosesCommand = async (output, context) => {
|
|
|
1737
1757
|
Object.assign(contents, doc);
|
|
1738
1758
|
return contents;
|
|
1739
1759
|
};
|
|
1760
|
+
export const de_GetSuggestionsCommand = async (output, context) => {
|
|
1761
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1762
|
+
return de_CommandError(output, context);
|
|
1763
|
+
}
|
|
1764
|
+
const contents = map({
|
|
1765
|
+
$metadata: deserializeMetadata(output),
|
|
1766
|
+
});
|
|
1767
|
+
const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
|
|
1768
|
+
const doc = take(data, {
|
|
1769
|
+
'oneHook': _json,
|
|
1770
|
+
'own': _json,
|
|
1771
|
+
});
|
|
1772
|
+
Object.assign(contents, doc);
|
|
1773
|
+
return contents;
|
|
1774
|
+
};
|
|
1740
1775
|
export const de_IndexLocationCommand = async (output, context) => {
|
|
1741
1776
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1742
1777
|
return de_CommandError(output, context);
|
|
@@ -1779,6 +1814,16 @@ export const de_RemoveLocationCommand = async (output, context) => {
|
|
|
1779
1814
|
Object.assign(contents, doc);
|
|
1780
1815
|
return contents;
|
|
1781
1816
|
};
|
|
1817
|
+
export const de_RemoveOneHookSuggestionCommand = async (output, context) => {
|
|
1818
|
+
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1819
|
+
return de_CommandError(output, context);
|
|
1820
|
+
}
|
|
1821
|
+
const contents = map({
|
|
1822
|
+
$metadata: deserializeMetadata(output),
|
|
1823
|
+
});
|
|
1824
|
+
await collectBody(output.body, context);
|
|
1825
|
+
return contents;
|
|
1826
|
+
};
|
|
1782
1827
|
export const de_RemoveSuggestionCommand = async (output, context) => {
|
|
1783
1828
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1784
1829
|
return de_CommandError(output, context);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export const TELEMETRY_CATALOG_VERSION = "1.
|
|
2
|
-
export const TELEMETRY_CATALOG_HASH = "
|
|
1
|
+
export const TELEMETRY_CATALOG_VERSION = "1.11.0";
|
|
2
|
+
export const TELEMETRY_CATALOG_HASH = "12c7d6d70211f79c";
|
|
3
3
|
export const SignalType = {
|
|
4
4
|
SCREEN_VIEW: "screen_view",
|
|
5
5
|
UI_INTERACTION: "ui_interaction",
|
|
@@ -334,6 +334,11 @@ export const UiElement = {
|
|
|
334
334
|
CHAT_MR_ONEHOOK_CONTEXT_SHARE: "chat.mr_onehook_context_share",
|
|
335
335
|
CHAT_MR_ONEHOOK_SCOPE_OPEN: "chat.mr_onehook_scope_open",
|
|
336
336
|
CHAT_MR_ONEHOOK_SCOPE_SELECT: "chat.mr_onehook_scope_select",
|
|
337
|
+
CHAT_MR_ONEHOOK_SESSIONS_OPEN: "chat.mr_onehook_sessions_open",
|
|
338
|
+
CHAT_MR_ONEHOOK_SESSION_RESUME: "chat.mr_onehook_session_resume",
|
|
339
|
+
CHAT_MR_ONEHOOK_SESSION_DELETE: "chat.mr_onehook_session_delete",
|
|
340
|
+
CHAT_MR_ONEHOOK_SESSION_NEW: "chat.mr_onehook_session_new",
|
|
341
|
+
CHAT_MR_ONEHOOK_SESSION_LIMIT: "chat.mr_onehook_session_limit",
|
|
337
342
|
CHAT_INTRO_TOUR_OPEN: "chat.intro_tour_open",
|
|
338
343
|
CHAT_INTRO_DISMISS: "chat.intro_dismiss",
|
|
339
344
|
CHAT_INTRO_GET_STARTED: "chat.intro_get_started",
|
|
@@ -384,6 +389,8 @@ export const UiElement = {
|
|
|
384
389
|
PREFERENCES_UPGRADE_OPEN: "preferences.upgrade_open",
|
|
385
390
|
PREFERENCES_LOCKED_FILTER_TAP: "preferences.locked_filter_tap",
|
|
386
391
|
PREFERENCES_SUGGESTION_REMOVE: "preferences.suggestion_remove",
|
|
392
|
+
PREFERENCES_OWN_SUGGESTION_SAVE: "preferences.own_suggestion_save",
|
|
393
|
+
PREFERENCES_OWN_SUGGESTION_REMOVE: "preferences.own_suggestion_remove",
|
|
387
394
|
SETTINGS_EMAIL_MANAGE: "settings.email_manage",
|
|
388
395
|
SETTINGS_PHONE_UPDATE: "settings.phone_update",
|
|
389
396
|
SETTINGS_GOOGLE_LINK: "settings.google_link",
|
|
@@ -579,6 +586,11 @@ export const UI_ELEMENTS = {
|
|
|
579
586
|
"chat.mr_onehook_context_share": { screen: "CHAT", kind: "dialog_button", actions: ["submit", "dismiss"], values: null, platforms: ["web", "ios", "android"] },
|
|
580
587
|
"chat.mr_onehook_scope_open": { screen: "CHAT", kind: "button", actions: ["tap", "dismiss"], values: null, platforms: ["web"] },
|
|
581
588
|
"chat.mr_onehook_scope_select": { screen: "CHAT", kind: "menu_item", actions: ["tap"], values: null, platforms: ["web"] },
|
|
589
|
+
"chat.mr_onehook_sessions_open": { screen: "CHAT", kind: "button", actions: ["tap", "dismiss"], values: null, platforms: ["web", "ios", "android"] },
|
|
590
|
+
"chat.mr_onehook_session_resume": { screen: "CHAT", kind: "menu_item", actions: ["tap"], values: null, platforms: ["web", "ios", "android"] },
|
|
591
|
+
"chat.mr_onehook_session_delete": { screen: "CHAT", kind: "button", actions: ["tap"], values: null, platforms: ["web", "ios", "android"] },
|
|
592
|
+
"chat.mr_onehook_session_new": { screen: "CHAT", kind: "button", actions: ["tap"], values: null, platforms: ["web", "ios", "android"] },
|
|
593
|
+
"chat.mr_onehook_session_limit": { screen: "CHAT", kind: "dialog_button", actions: ["tap", "dismiss"], values: ["replace_least_recent", "manage", "cancel"], platforms: ["web", "ios", "android"] },
|
|
582
594
|
"chat.intro_tour_open": { screen: "CHAT", kind: "button", actions: ["tap"], values: null, platforms: ["ios"] },
|
|
583
595
|
"chat.intro_dismiss": { screen: "CHAT", kind: "button", actions: ["tap", "dismiss"], values: null, platforms: ["ios"] },
|
|
584
596
|
"chat.intro_get_started": { screen: "CHAT", kind: "button", actions: ["tap"], values: null, platforms: ["ios"] },
|
|
@@ -629,6 +641,8 @@ export const UI_ELEMENTS = {
|
|
|
629
641
|
"preferences.upgrade_open": { screen: "PREFERENCES", kind: "button", actions: ["tap", "dismiss"], values: null, platforms: ["ios"] },
|
|
630
642
|
"preferences.locked_filter_tap": { screen: "PREFERENCES", kind: "button", actions: ["tap"], values: null, platforms: ["ios"] },
|
|
631
643
|
"preferences.suggestion_remove": { screen: "PREFERENCES", kind: "button", actions: ["tap"], values: null, platforms: ["web", "ios", "android"] },
|
|
644
|
+
"preferences.own_suggestion_save": { screen: "PREFERENCES", kind: "button", actions: ["submit"], values: null, platforms: ["web", "ios", "android"] },
|
|
645
|
+
"preferences.own_suggestion_remove": { screen: "PREFERENCES", kind: "button", actions: ["tap"], values: null, platforms: ["web", "ios", "android"] },
|
|
632
646
|
"settings.email_manage": { screen: "SETTINGS", kind: "button", actions: ["tap", "dismiss"], values: null, platforms: ["web", "ios", "android"] },
|
|
633
647
|
"settings.phone_update": { screen: "SETTINGS", kind: "button", actions: ["tap", "dismiss"], values: null, platforms: ["ios", "android"] },
|
|
634
648
|
"settings.google_link": { screen: "SETTINGS", kind: "toggle", actions: ["toggle"], values: ["link", "unlink"], platforms: ["web", "ios", "android"] },
|
package/dist-types/OneHook.d.ts
CHANGED
|
@@ -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,7 @@ 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";
|
|
48
50
|
import { RemoveSuggestionCommandInput, RemoveSuggestionCommandOutput } from "./commands/RemoveSuggestionCommand";
|
|
49
51
|
import { RequestEmailOtpCommandInput, RequestEmailOtpCommandOutput } from "./commands/RequestEmailOtpCommand";
|
|
50
52
|
import { RequestPhoneOtpCommandInput, RequestPhoneOtpCommandOutput } from "./commands/RequestPhoneOtpCommand";
|
|
@@ -333,6 +335,13 @@ export interface OneHook {
|
|
|
333
335
|
getRoses(args: GetRosesCommandInput, options?: __HttpHandlerOptions): Promise<GetRosesCommandOutput>;
|
|
334
336
|
getRoses(args: GetRosesCommandInput, cb: (err: any, data?: GetRosesCommandOutput) => void): void;
|
|
335
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;
|
|
336
345
|
/**
|
|
337
346
|
* @see {@link IndexLocationCommand}
|
|
338
347
|
*/
|
|
@@ -351,6 +360,13 @@ export interface OneHook {
|
|
|
351
360
|
removeLocation(args: RemoveLocationCommandInput, options?: __HttpHandlerOptions): Promise<RemoveLocationCommandOutput>;
|
|
352
361
|
removeLocation(args: RemoveLocationCommandInput, cb: (err: any, data?: RemoveLocationCommandOutput) => void): void;
|
|
353
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;
|
|
354
370
|
/**
|
|
355
371
|
* @see {@link RemoveSuggestionCommand}
|
|
356
372
|
*/
|
|
@@ -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,7 @@ 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";
|
|
48
50
|
import { RemoveSuggestionCommandInput, RemoveSuggestionCommandOutput } from "./commands/RemoveSuggestionCommand";
|
|
49
51
|
import { RequestEmailOtpCommandInput, RequestEmailOtpCommandOutput } from "./commands/RequestEmailOtpCommand";
|
|
50
52
|
import { RequestPhoneOtpCommandInput, RequestPhoneOtpCommandOutput } from "./commands/RequestPhoneOtpCommand";
|
|
@@ -80,11 +82,11 @@ export { __Client };
|
|
|
80
82
|
/**
|
|
81
83
|
* @public
|
|
82
84
|
*/
|
|
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;
|
|
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;
|
|
84
86
|
/**
|
|
85
87
|
* @public
|
|
86
88
|
*/
|
|
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;
|
|
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;
|
|
88
90
|
/**
|
|
89
91
|
* @public
|
|
90
92
|
*/
|
|
@@ -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,12 +27,11 @@ declare const RecordSuggestionCommand_base: {
|
|
|
27
27
|
getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
|
|
28
28
|
};
|
|
29
29
|
/**
|
|
30
|
-
* Records the caller's
|
|
31
|
-
*
|
|
32
|
-
*
|
|
33
|
-
* `Discover` as `MR_ONEHOOK` cards
|
|
34
|
-
*
|
|
35
|
-
* 503 when the embedding model is unavailable. The prompt is never logged or returned.
|
|
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.
|
|
36
35
|
* @example
|
|
37
36
|
* Use a bare-bones client and the command you need to make an API call.
|
|
38
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
|
+
}
|
|
@@ -27,7 +27,7 @@ declare const RemoveSuggestionCommand_base: {
|
|
|
27
27
|
getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
|
|
28
28
|
};
|
|
29
29
|
/**
|
|
30
|
-
* Removes the caller's
|
|
30
|
+
* Removes the caller's OWN suggestion. Idempotent: 204 whether or not one existed.
|
|
31
31
|
* @example
|
|
32
32
|
* Use a bare-bones client and the command you need to make an API call.
|
|
33
33
|
* ```javascript
|
|
@@ -41,9 +41,11 @@ 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";
|
|
47
49
|
export * from "./RemoveSuggestionCommand";
|
|
48
50
|
export * from "./SwipeCommand";
|
|
49
51
|
export * from "./SwipeByUsernameCommand";
|
|
@@ -1501,6 +1501,26 @@ export interface GetRosesResponse {
|
|
|
1501
1501
|
*/
|
|
1502
1502
|
resetsAt: string | undefined;
|
|
1503
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
|
+
}
|
|
1504
1524
|
/**
|
|
1505
1525
|
* @public
|
|
1506
1526
|
*/
|
|
@@ -1535,6 +1555,16 @@ export interface RecordSuggestionRequest {
|
|
|
1535
1555
|
export interface RecordSuggestionResponse {
|
|
1536
1556
|
suggestionId: string | undefined;
|
|
1537
1557
|
}
|
|
1558
|
+
/**
|
|
1559
|
+
* @public
|
|
1560
|
+
*/
|
|
1561
|
+
export interface RemoveOneHookSuggestionRequest {
|
|
1562
|
+
}
|
|
1563
|
+
/**
|
|
1564
|
+
* @public
|
|
1565
|
+
*/
|
|
1566
|
+
export interface RemoveOneHookSuggestionResponse {
|
|
1567
|
+
}
|
|
1538
1568
|
/**
|
|
1539
1569
|
* @public
|
|
1540
1570
|
*/
|
|
@@ -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,7 @@ 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";
|
|
47
49
|
import { RemoveSuggestionCommandInput, RemoveSuggestionCommandOutput } from "../commands/RemoveSuggestionCommand";
|
|
48
50
|
import { RequestEmailOtpCommandInput, RequestEmailOtpCommandOutput } from "../commands/RequestEmailOtpCommand";
|
|
49
51
|
import { RequestPhoneOtpCommandInput, RequestPhoneOtpCommandOutput } from "../commands/RequestPhoneOtpCommand";
|
|
@@ -241,6 +243,10 @@ export declare const se_GetReceivedLikesCommand: (input: GetReceivedLikesCommand
|
|
|
241
243
|
* serializeAws_restJson1GetRosesCommand
|
|
242
244
|
*/
|
|
243
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>;
|
|
244
250
|
/**
|
|
245
251
|
* serializeAws_restJson1IndexLocationCommand
|
|
246
252
|
*/
|
|
@@ -253,6 +259,10 @@ export declare const se_RecordSuggestionCommand: (input: RecordSuggestionCommand
|
|
|
253
259
|
* serializeAws_restJson1RemoveLocationCommand
|
|
254
260
|
*/
|
|
255
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>;
|
|
256
266
|
/**
|
|
257
267
|
* serializeAws_restJson1RemoveSuggestionCommand
|
|
258
268
|
*/
|
|
@@ -517,6 +527,10 @@ export declare const de_GetReceivedLikesCommand: (output: __HttpResponse, contex
|
|
|
517
527
|
* deserializeAws_restJson1GetRosesCommand
|
|
518
528
|
*/
|
|
519
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>;
|
|
520
534
|
/**
|
|
521
535
|
* deserializeAws_restJson1IndexLocationCommand
|
|
522
536
|
*/
|
|
@@ -529,6 +543,10 @@ export declare const de_RecordSuggestionCommand: (output: __HttpResponse, contex
|
|
|
529
543
|
* deserializeAws_restJson1RemoveLocationCommand
|
|
530
544
|
*/
|
|
531
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>;
|
|
532
550
|
/**
|
|
533
551
|
* deserializeAws_restJson1RemoveSuggestionCommand
|
|
534
552
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export declare const TELEMETRY_CATALOG_VERSION = "1.
|
|
2
|
-
export declare const TELEMETRY_CATALOG_HASH = "
|
|
1
|
+
export declare const TELEMETRY_CATALOG_VERSION = "1.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";
|
|
@@ -423,6 +428,8 @@ export declare const UiElement: {
|
|
|
423
428
|
readonly PREFERENCES_UPGRADE_OPEN: "preferences.upgrade_open";
|
|
424
429
|
readonly PREFERENCES_LOCKED_FILTER_TAP: "preferences.locked_filter_tap";
|
|
425
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";
|
|
426
433
|
readonly SETTINGS_EMAIL_MANAGE: "settings.email_manage";
|
|
427
434
|
readonly SETTINGS_PHONE_UPDATE: "settings.phone_update";
|
|
428
435
|
readonly SETTINGS_GOOGLE_LINK: "settings.google_link";
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
// GENERATED FILE - DO NOT EDIT.
|
|
2
|
-
// telemetry-integrity: sha256
|
|
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.
|
|
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.
|
|
16
|
-
const val HASH = "
|
|
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)),
|
|
@@ -486,6 +491,8 @@ enum class UiElement(
|
|
|
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)),
|
|
488
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)),
|
|
489
496
|
SETTINGS_EMAIL_MANAGE("settings.email_manage", TelemetryScreen.SETTINGS, UiElementKind.BUTTON, listOf(UiAction.TAP, UiAction.DISMISS), null, listOf(TelemetryPlatform.WEB, TelemetryPlatform.IOS, TelemetryPlatform.ANDROID)),
|
|
490
497
|
SETTINGS_PHONE_UPDATE("settings.phone_update", TelemetryScreen.SETTINGS, UiElementKind.BUTTON, listOf(UiAction.TAP, UiAction.DISMISS), null, listOf(TelemetryPlatform.IOS, TelemetryPlatform.ANDROID)),
|
|
491
498
|
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
|
|
2
|
+
// telemetry-integrity: sha256 fa4dd6ce50cc0e7e34df7da28e65bb63a2878d094ca0b51f52889f7853472b2a
|
|
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.
|
|
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).
|
|
@@ -10,8 +10,8 @@
|
|
|
10
10
|
import Foundation
|
|
11
11
|
|
|
12
12
|
public enum TelemetryCatalog {
|
|
13
|
-
public static let version = "1.
|
|
14
|
-
public static let hash = "
|
|
13
|
+
public static let version = "1.11.0"
|
|
14
|
+
public static let hash = "12c7d6d70211f79c"
|
|
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
|
}
|
|
@@ -374,6 +374,11 @@ public enum UiElement: String, CaseIterable, Codable, Sendable {
|
|
|
374
374
|
case chatMrOnehookContextShare = "chat.mr_onehook_context_share"
|
|
375
375
|
case chatMrOnehookScopeOpen = "chat.mr_onehook_scope_open"
|
|
376
376
|
case chatMrOnehookScopeSelect = "chat.mr_onehook_scope_select"
|
|
377
|
+
case chatMrOnehookSessionsOpen = "chat.mr_onehook_sessions_open"
|
|
378
|
+
case chatMrOnehookSessionResume = "chat.mr_onehook_session_resume"
|
|
379
|
+
case chatMrOnehookSessionDelete = "chat.mr_onehook_session_delete"
|
|
380
|
+
case chatMrOnehookSessionNew = "chat.mr_onehook_session_new"
|
|
381
|
+
case chatMrOnehookSessionLimit = "chat.mr_onehook_session_limit"
|
|
377
382
|
case chatIntroTourOpen = "chat.intro_tour_open"
|
|
378
383
|
case chatIntroDismiss = "chat.intro_dismiss"
|
|
379
384
|
case chatIntroGetStarted = "chat.intro_get_started"
|
|
@@ -424,6 +429,8 @@ public enum UiElement: String, CaseIterable, Codable, Sendable {
|
|
|
424
429
|
case preferencesUpgradeOpen = "preferences.upgrade_open"
|
|
425
430
|
case preferencesLockedFilterTap = "preferences.locked_filter_tap"
|
|
426
431
|
case preferencesSuggestionRemove = "preferences.suggestion_remove"
|
|
432
|
+
case preferencesOwnSuggestionSave = "preferences.own_suggestion_save"
|
|
433
|
+
case preferencesOwnSuggestionRemove = "preferences.own_suggestion_remove"
|
|
427
434
|
case settingsEmailManage = "settings.email_manage"
|
|
428
435
|
case settingsPhoneUpdate = "settings.phone_update"
|
|
429
436
|
case settingsGoogleLink = "settings.google_link"
|
|
@@ -620,6 +627,11 @@ public enum UiElement: String, CaseIterable, Codable, Sendable {
|
|
|
620
627
|
case .chatMrOnehookContextShare: return UiElementSpec(screen: .chat, kind: .dialogButton, actions: [.submit, .dismiss], allowedValues: nil, platforms: [.web, .ios, .android])
|
|
621
628
|
case .chatMrOnehookScopeOpen: return UiElementSpec(screen: .chat, kind: .button, actions: [.tap, .dismiss], allowedValues: nil, platforms: [.web])
|
|
622
629
|
case .chatMrOnehookScopeSelect: return UiElementSpec(screen: .chat, kind: .menuItem, actions: [.tap], allowedValues: nil, platforms: [.web])
|
|
630
|
+
case .chatMrOnehookSessionsOpen: return UiElementSpec(screen: .chat, kind: .button, actions: [.tap, .dismiss], allowedValues: nil, platforms: [.web, .ios, .android])
|
|
631
|
+
case .chatMrOnehookSessionResume: return UiElementSpec(screen: .chat, kind: .menuItem, actions: [.tap], allowedValues: nil, platforms: [.web, .ios, .android])
|
|
632
|
+
case .chatMrOnehookSessionDelete: return UiElementSpec(screen: .chat, kind: .button, actions: [.tap], allowedValues: nil, platforms: [.web, .ios, .android])
|
|
633
|
+
case .chatMrOnehookSessionNew: return UiElementSpec(screen: .chat, kind: .button, actions: [.tap], allowedValues: nil, platforms: [.web, .ios, .android])
|
|
634
|
+
case .chatMrOnehookSessionLimit: return UiElementSpec(screen: .chat, kind: .dialogButton, actions: [.tap, .dismiss], allowedValues: ["replace_least_recent", "manage", "cancel"], platforms: [.web, .ios, .android])
|
|
623
635
|
case .chatIntroTourOpen: return UiElementSpec(screen: .chat, kind: .button, actions: [.tap], allowedValues: nil, platforms: [.ios])
|
|
624
636
|
case .chatIntroDismiss: return UiElementSpec(screen: .chat, kind: .button, actions: [.tap, .dismiss], allowedValues: nil, platforms: [.ios])
|
|
625
637
|
case .chatIntroGetStarted: return UiElementSpec(screen: .chat, kind: .button, actions: [.tap], allowedValues: nil, platforms: [.ios])
|
|
@@ -670,6 +682,8 @@ public enum UiElement: String, CaseIterable, Codable, Sendable {
|
|
|
670
682
|
case .preferencesUpgradeOpen: return UiElementSpec(screen: .preferences, kind: .button, actions: [.tap, .dismiss], allowedValues: nil, platforms: [.ios])
|
|
671
683
|
case .preferencesLockedFilterTap: return UiElementSpec(screen: .preferences, kind: .button, actions: [.tap], allowedValues: nil, platforms: [.ios])
|
|
672
684
|
case .preferencesSuggestionRemove: return UiElementSpec(screen: .preferences, kind: .button, actions: [.tap], allowedValues: nil, platforms: [.web, .ios, .android])
|
|
685
|
+
case .preferencesOwnSuggestionSave: return UiElementSpec(screen: .preferences, kind: .button, actions: [.submit], allowedValues: nil, platforms: [.web, .ios, .android])
|
|
686
|
+
case .preferencesOwnSuggestionRemove: return UiElementSpec(screen: .preferences, kind: .button, actions: [.tap], allowedValues: nil, platforms: [.web, .ios, .android])
|
|
673
687
|
case .settingsEmailManage: return UiElementSpec(screen: .settings, kind: .button, actions: [.tap, .dismiss], allowedValues: nil, platforms: [.web, .ios, .android])
|
|
674
688
|
case .settingsPhoneUpdate: return UiElementSpec(screen: .settings, kind: .button, actions: [.tap, .dismiss], allowedValues: nil, platforms: [.ios, .android])
|
|
675
689
|
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.
|
|
2
|
+
"version": "1.11.0",
|
|
3
3
|
"screens": {
|
|
4
4
|
"NAV": {
|
|
5
5
|
"viewable": false,
|
|
@@ -2757,6 +2757,92 @@
|
|
|
2757
2757
|
"deprecated": null,
|
|
2758
2758
|
"legacy": null
|
|
2759
2759
|
},
|
|
2760
|
+
"chat.mr_onehook_sessions_open": {
|
|
2761
|
+
"screen": "CHAT",
|
|
2762
|
+
"kind": "button",
|
|
2763
|
+
"description": "Open the list of saved Mr OneHook chats (Super and above).",
|
|
2764
|
+
"actions": [
|
|
2765
|
+
"tap",
|
|
2766
|
+
"dismiss"
|
|
2767
|
+
],
|
|
2768
|
+
"values": null,
|
|
2769
|
+
"platforms": [
|
|
2770
|
+
"web",
|
|
2771
|
+
"ios",
|
|
2772
|
+
"android"
|
|
2773
|
+
],
|
|
2774
|
+
"deprecated": null,
|
|
2775
|
+
"legacy": null
|
|
2776
|
+
},
|
|
2777
|
+
"chat.mr_onehook_session_resume": {
|
|
2778
|
+
"screen": "CHAT",
|
|
2779
|
+
"kind": "menu_item",
|
|
2780
|
+
"description": "Resume a saved Mr OneHook chat.",
|
|
2781
|
+
"actions": [
|
|
2782
|
+
"tap"
|
|
2783
|
+
],
|
|
2784
|
+
"values": null,
|
|
2785
|
+
"platforms": [
|
|
2786
|
+
"web",
|
|
2787
|
+
"ios",
|
|
2788
|
+
"android"
|
|
2789
|
+
],
|
|
2790
|
+
"deprecated": null,
|
|
2791
|
+
"legacy": null
|
|
2792
|
+
},
|
|
2793
|
+
"chat.mr_onehook_session_delete": {
|
|
2794
|
+
"screen": "CHAT",
|
|
2795
|
+
"kind": "button",
|
|
2796
|
+
"description": "Delete a saved Mr OneHook chat.",
|
|
2797
|
+
"actions": [
|
|
2798
|
+
"tap"
|
|
2799
|
+
],
|
|
2800
|
+
"values": null,
|
|
2801
|
+
"platforms": [
|
|
2802
|
+
"web",
|
|
2803
|
+
"ios",
|
|
2804
|
+
"android"
|
|
2805
|
+
],
|
|
2806
|
+
"deprecated": null,
|
|
2807
|
+
"legacy": null
|
|
2808
|
+
},
|
|
2809
|
+
"chat.mr_onehook_session_new": {
|
|
2810
|
+
"screen": "CHAT",
|
|
2811
|
+
"kind": "button",
|
|
2812
|
+
"description": "Start a new Mr OneHook chat.",
|
|
2813
|
+
"actions": [
|
|
2814
|
+
"tap"
|
|
2815
|
+
],
|
|
2816
|
+
"values": null,
|
|
2817
|
+
"platforms": [
|
|
2818
|
+
"web",
|
|
2819
|
+
"ios",
|
|
2820
|
+
"android"
|
|
2821
|
+
],
|
|
2822
|
+
"deprecated": null,
|
|
2823
|
+
"legacy": null
|
|
2824
|
+
},
|
|
2825
|
+
"chat.mr_onehook_session_limit": {
|
|
2826
|
+
"screen": "CHAT",
|
|
2827
|
+
"kind": "dialog_button",
|
|
2828
|
+
"description": "At the saved-chat limit: replace the least recent chat, or manage chats. value = choice.",
|
|
2829
|
+
"actions": [
|
|
2830
|
+
"tap",
|
|
2831
|
+
"dismiss"
|
|
2832
|
+
],
|
|
2833
|
+
"values": [
|
|
2834
|
+
"replace_least_recent",
|
|
2835
|
+
"manage",
|
|
2836
|
+
"cancel"
|
|
2837
|
+
],
|
|
2838
|
+
"platforms": [
|
|
2839
|
+
"web",
|
|
2840
|
+
"ios",
|
|
2841
|
+
"android"
|
|
2842
|
+
],
|
|
2843
|
+
"deprecated": null,
|
|
2844
|
+
"legacy": null
|
|
2845
|
+
},
|
|
2760
2846
|
"chat.intro_tour_open": {
|
|
2761
2847
|
"screen": "CHAT",
|
|
2762
2848
|
"kind": "button",
|
|
@@ -3531,6 +3617,38 @@
|
|
|
3531
3617
|
"deprecated": null,
|
|
3532
3618
|
"legacy": null
|
|
3533
3619
|
},
|
|
3620
|
+
"preferences.own_suggestion_save": {
|
|
3621
|
+
"screen": "PREFERENCES",
|
|
3622
|
+
"kind": "button",
|
|
3623
|
+
"description": "Save the member's own suggestion (who they are looking for; Super and above).",
|
|
3624
|
+
"actions": [
|
|
3625
|
+
"submit"
|
|
3626
|
+
],
|
|
3627
|
+
"values": null,
|
|
3628
|
+
"platforms": [
|
|
3629
|
+
"web",
|
|
3630
|
+
"ios",
|
|
3631
|
+
"android"
|
|
3632
|
+
],
|
|
3633
|
+
"deprecated": null,
|
|
3634
|
+
"legacy": null
|
|
3635
|
+
},
|
|
3636
|
+
"preferences.own_suggestion_remove": {
|
|
3637
|
+
"screen": "PREFERENCES",
|
|
3638
|
+
"kind": "button",
|
|
3639
|
+
"description": "Remove the member's own suggestion.",
|
|
3640
|
+
"actions": [
|
|
3641
|
+
"tap"
|
|
3642
|
+
],
|
|
3643
|
+
"values": null,
|
|
3644
|
+
"platforms": [
|
|
3645
|
+
"web",
|
|
3646
|
+
"ios",
|
|
3647
|
+
"android"
|
|
3648
|
+
],
|
|
3649
|
+
"deprecated": null,
|
|
3650
|
+
"legacy": null
|
|
3651
|
+
},
|
|
3534
3652
|
"settings.email_manage": {
|
|
3535
3653
|
"screen": "SETTINGS",
|
|
3536
3654
|
"kind": "button",
|
|
@@ -4993,5 +5111,5 @@
|
|
|
4993
5111
|
}
|
|
4994
5112
|
}
|
|
4995
5113
|
},
|
|
4996
|
-
"hash": "
|
|
5114
|
+
"hash": "12c7d6d70211f79c"
|
|
4997
5115
|
}
|