onehook-api-client 1.0.29 → 1.0.31
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 -14
- package/dist-cjs/OneHook.js +4 -4
- package/dist-cjs/commands/{DiscoverByIntentCommand.js → CorrectBirthDateCommand.js} +7 -7
- package/dist-cjs/commands/{DiscoverSuggestedCommand.js → RecordSuggestionCommand.js} +7 -7
- package/dist-cjs/commands/index.js +2 -2
- package/dist-cjs/models/models_0.js +7 -1
- package/dist-cjs/protocols/Aws_restJson1.js +104 -71
- package/dist-cjs/telemetry/index.js +45 -5
- package/dist-es/OneHook.js +4 -4
- package/dist-es/commands/{DiscoverByIntentCommand.js → CorrectBirthDateCommand.js} +6 -6
- package/dist-es/commands/RecordSuggestionCommand.js +17 -0
- package/dist-es/commands/index.js +2 -2
- package/dist-es/models/models_0.js +6 -0
- package/dist-es/protocols/Aws_restJson1.js +97 -64
- package/dist-es/telemetry/index.js +44 -4
- package/dist-types/OneHook.d.ts +14 -14
- package/dist-types/OneHookClient.d.ts +4 -4
- package/dist-types/commands/CorrectBirthDateCommand.d.ts +88 -0
- package/dist-types/commands/DiscoverCommand.d.ts +14 -2
- package/dist-types/commands/GetMyProfileCommand.d.ts +9 -0
- package/dist-types/commands/GetProfileCommand.d.ts +9 -0
- package/dist-types/commands/RecordSuggestionCommand.d.ts +83 -0
- package/dist-types/commands/UpdateProfileCommand.d.ts +8 -0
- package/dist-types/commands/index.d.ts +2 -2
- package/dist-types/models/models_0.d.ts +182 -15
- package/dist-types/protocols/Aws_restJson1.d.ts +18 -18
- package/dist-types/telemetry/index.d.ts +45 -2
- package/package.json +1 -1
- package/telemetry/TelemetryCatalog.kt +62 -7
- package/telemetry/TelemetryCatalog.swift +52 -6
- package/telemetry/telemetry-catalog.json +601 -246
- package/dist-es/commands/DiscoverSuggestedCommand.js +0 -17
- package/dist-types/commands/DiscoverByIntentCommand.d.ts +0 -97
- package/dist-types/commands/DiscoverSuggestedCommand.d.ts +0 -92
package/README.md
CHANGED
|
@@ -451,20 +451,6 @@ Discover
|
|
|
451
451
|
</details>
|
|
452
452
|
<details>
|
|
453
453
|
<summary>
|
|
454
|
-
DiscoverByIntent
|
|
455
|
-
</summary>
|
|
456
|
-
|
|
457
|
-
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/onehook/command/DiscoverByIntentCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-onehook/Interface/DiscoverByIntentCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-onehook/Interface/DiscoverByIntentCommandOutput/)
|
|
458
|
-
</details>
|
|
459
|
-
<details>
|
|
460
|
-
<summary>
|
|
461
|
-
DiscoverSuggested
|
|
462
|
-
</summary>
|
|
463
|
-
|
|
464
|
-
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/onehook/command/DiscoverSuggestedCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-onehook/Interface/DiscoverSuggestedCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-onehook/Interface/DiscoverSuggestedCommandOutput/)
|
|
465
|
-
</details>
|
|
466
|
-
<details>
|
|
467
|
-
<summary>
|
|
468
454
|
GetNotificationPreferences
|
|
469
455
|
</summary>
|
|
470
456
|
|
|
@@ -500,6 +486,13 @@ IndexLocation
|
|
|
500
486
|
</details>
|
|
501
487
|
<details>
|
|
502
488
|
<summary>
|
|
489
|
+
RecordSuggestion
|
|
490
|
+
</summary>
|
|
491
|
+
|
|
492
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/onehook/command/RecordSuggestionCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-onehook/Interface/RecordSuggestionCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-onehook/Interface/RecordSuggestionCommandOutput/)
|
|
493
|
+
</details>
|
|
494
|
+
<details>
|
|
495
|
+
<summary>
|
|
503
496
|
RemoveLocation
|
|
504
497
|
</summary>
|
|
505
498
|
|
|
@@ -535,6 +528,13 @@ CompleteLivenessSession
|
|
|
535
528
|
</details>
|
|
536
529
|
<details>
|
|
537
530
|
<summary>
|
|
531
|
+
CorrectBirthDate
|
|
532
|
+
</summary>
|
|
533
|
+
|
|
534
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/onehook/command/CorrectBirthDateCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-onehook/Interface/CorrectBirthDateCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-onehook/Interface/CorrectBirthDateCommandOutput/)
|
|
535
|
+
</details>
|
|
536
|
+
<details>
|
|
537
|
+
<summary>
|
|
538
538
|
CreateLivenessSession
|
|
539
539
|
</summary>
|
|
540
540
|
|
package/dist-cjs/OneHook.js
CHANGED
|
@@ -5,6 +5,7 @@ const OneHookClient_1 = require("./OneHookClient");
|
|
|
5
5
|
const AuthSocialCommand_1 = require("./commands/AuthSocialCommand");
|
|
6
6
|
const CompleteLivenessSessionCommand_1 = require("./commands/CompleteLivenessSessionCommand");
|
|
7
7
|
const CompleteOnboardingCommand_1 = require("./commands/CompleteOnboardingCommand");
|
|
8
|
+
const CorrectBirthDateCommand_1 = require("./commands/CorrectBirthDateCommand");
|
|
8
9
|
const CreateAdminInviteCommand_1 = require("./commands/CreateAdminInviteCommand");
|
|
9
10
|
const CreateLivenessSessionCommand_1 = require("./commands/CreateLivenessSessionCommand");
|
|
10
11
|
const CreateMediaDownloadUrlCommand_1 = require("./commands/CreateMediaDownloadUrlCommand");
|
|
@@ -12,9 +13,7 @@ const CreateMediaUploadUrlCommand_1 = require("./commands/CreateMediaUploadUrlCo
|
|
|
12
13
|
const DeleteMatchMessagesCommand_1 = require("./commands/DeleteMatchMessagesCommand");
|
|
13
14
|
const DeleteProfileCommand_1 = require("./commands/DeleteProfileCommand");
|
|
14
15
|
const DeletePushTokenCommand_1 = require("./commands/DeletePushTokenCommand");
|
|
15
|
-
const DiscoverByIntentCommand_1 = require("./commands/DiscoverByIntentCommand");
|
|
16
16
|
const DiscoverCommand_1 = require("./commands/DiscoverCommand");
|
|
17
|
-
const DiscoverSuggestedCommand_1 = require("./commands/DiscoverSuggestedCommand");
|
|
18
17
|
const GenerateDownloadUrlCommand_1 = require("./commands/GenerateDownloadUrlCommand");
|
|
19
18
|
const GenerateInviteCommand_1 = require("./commands/GenerateInviteCommand");
|
|
20
19
|
const GenerateUploadUrlCommand_1 = require("./commands/GenerateUploadUrlCommand");
|
|
@@ -41,6 +40,7 @@ const InitUserCommand_1 = require("./commands/InitUserCommand");
|
|
|
41
40
|
const LinkEmailCommand_1 = require("./commands/LinkEmailCommand");
|
|
42
41
|
const LinkSocialCommand_1 = require("./commands/LinkSocialCommand");
|
|
43
42
|
const ListMyDevicesCommand_1 = require("./commands/ListMyDevicesCommand");
|
|
43
|
+
const RecordSuggestionCommand_1 = require("./commands/RecordSuggestionCommand");
|
|
44
44
|
const RegisterDeviceCommand_1 = require("./commands/RegisterDeviceCommand");
|
|
45
45
|
const RegisterPhoneCommand_1 = require("./commands/RegisterPhoneCommand");
|
|
46
46
|
const RegisterPushTokenCommand_1 = require("./commands/RegisterPushTokenCommand");
|
|
@@ -102,18 +102,18 @@ const commands = {
|
|
|
102
102
|
ValidateInviteCommand: ValidateInviteCommand_1.ValidateInviteCommand,
|
|
103
103
|
VerifyAdminLinkOtpCommand: VerifyAdminLinkOtpCommand_1.VerifyAdminLinkOtpCommand,
|
|
104
104
|
DiscoverCommand: DiscoverCommand_1.DiscoverCommand,
|
|
105
|
-
DiscoverByIntentCommand: DiscoverByIntentCommand_1.DiscoverByIntentCommand,
|
|
106
|
-
DiscoverSuggestedCommand: DiscoverSuggestedCommand_1.DiscoverSuggestedCommand,
|
|
107
105
|
GetNotificationPreferencesCommand: GetNotificationPreferencesCommand_1.GetNotificationPreferencesCommand,
|
|
108
106
|
GetPreferencesCommand: GetPreferencesCommand_1.GetPreferencesCommand,
|
|
109
107
|
GetReceivedLikesCommand: GetReceivedLikesCommand_1.GetReceivedLikesCommand,
|
|
110
108
|
GetRosesCommand: GetRosesCommand_1.GetRosesCommand,
|
|
111
109
|
IndexLocationCommand: IndexLocationCommand_1.IndexLocationCommand,
|
|
110
|
+
RecordSuggestionCommand: RecordSuggestionCommand_1.RecordSuggestionCommand,
|
|
112
111
|
RemoveLocationCommand: RemoveLocationCommand_1.RemoveLocationCommand,
|
|
113
112
|
SwipeCommand: SwipeCommand_1.SwipeCommand,
|
|
114
113
|
SwipeByUsernameCommand: SwipeByUsernameCommand_1.SwipeByUsernameCommand,
|
|
115
114
|
UpdatePreferencesCommand: UpdatePreferencesCommand_1.UpdatePreferencesCommand,
|
|
116
115
|
CompleteLivenessSessionCommand: CompleteLivenessSessionCommand_1.CompleteLivenessSessionCommand,
|
|
116
|
+
CorrectBirthDateCommand: CorrectBirthDateCommand_1.CorrectBirthDateCommand,
|
|
117
117
|
CreateLivenessSessionCommand: CreateLivenessSessionCommand_1.CreateLivenessSessionCommand,
|
|
118
118
|
DeleteProfileCommand: DeleteProfileCommand_1.DeleteProfileCommand,
|
|
119
119
|
GenerateDownloadUrlCommand: GenerateDownloadUrlCommand_1.GenerateDownloadUrlCommand,
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.CorrectBirthDateCommand = exports.$Command = void 0;
|
|
4
4
|
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
5
5
|
const middleware_serde_1 = require("@smithy/middleware-serde");
|
|
6
6
|
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
7
|
Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
|
|
8
|
-
class
|
|
8
|
+
class CorrectBirthDateCommand extends smithy_client_1.Command.classBuilder()
|
|
9
9
|
.m(function (Command, cs, config, o) {
|
|
10
10
|
return [
|
|
11
11
|
(0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
12
12
|
];
|
|
13
13
|
})
|
|
14
|
-
.s("OneHookService", "
|
|
15
|
-
.n("OneHookClient", "
|
|
14
|
+
.s("OneHookService", "CorrectBirthDate", {})
|
|
15
|
+
.n("OneHookClient", "CorrectBirthDateCommand")
|
|
16
16
|
.f(void 0, void 0)
|
|
17
|
-
.ser(Aws_restJson1_1.
|
|
18
|
-
.de(Aws_restJson1_1.
|
|
17
|
+
.ser(Aws_restJson1_1.se_CorrectBirthDateCommand)
|
|
18
|
+
.de(Aws_restJson1_1.de_CorrectBirthDateCommand)
|
|
19
19
|
.build() {
|
|
20
20
|
}
|
|
21
|
-
exports.
|
|
21
|
+
exports.CorrectBirthDateCommand = CorrectBirthDateCommand;
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.RecordSuggestionCommand = exports.$Command = void 0;
|
|
4
4
|
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
5
5
|
const middleware_serde_1 = require("@smithy/middleware-serde");
|
|
6
6
|
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
7
|
Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
|
|
8
|
-
class
|
|
8
|
+
class RecordSuggestionCommand extends smithy_client_1.Command.classBuilder()
|
|
9
9
|
.m(function (Command, cs, config, o) {
|
|
10
10
|
return [
|
|
11
11
|
(0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
12
12
|
];
|
|
13
13
|
})
|
|
14
|
-
.s("OneHookService", "
|
|
15
|
-
.n("OneHookClient", "
|
|
14
|
+
.s("OneHookService", "RecordSuggestion", {})
|
|
15
|
+
.n("OneHookClient", "RecordSuggestionCommand")
|
|
16
16
|
.f(void 0, void 0)
|
|
17
|
-
.ser(Aws_restJson1_1.
|
|
18
|
-
.de(Aws_restJson1_1.
|
|
17
|
+
.ser(Aws_restJson1_1.se_RecordSuggestionCommand)
|
|
18
|
+
.de(Aws_restJson1_1.de_RecordSuggestionCommand)
|
|
19
19
|
.build() {
|
|
20
20
|
}
|
|
21
|
-
exports.
|
|
21
|
+
exports.RecordSuggestionCommand = RecordSuggestionCommand;
|
|
@@ -37,18 +37,18 @@ tslib_1.__exportStar(require("./UpdateUsernameCommand"), exports);
|
|
|
37
37
|
tslib_1.__exportStar(require("./ValidateInviteCommand"), exports);
|
|
38
38
|
tslib_1.__exportStar(require("./VerifyAdminLinkOtpCommand"), exports);
|
|
39
39
|
tslib_1.__exportStar(require("./DiscoverCommand"), exports);
|
|
40
|
-
tslib_1.__exportStar(require("./DiscoverByIntentCommand"), exports);
|
|
41
|
-
tslib_1.__exportStar(require("./DiscoverSuggestedCommand"), exports);
|
|
42
40
|
tslib_1.__exportStar(require("./GetNotificationPreferencesCommand"), exports);
|
|
43
41
|
tslib_1.__exportStar(require("./GetPreferencesCommand"), exports);
|
|
44
42
|
tslib_1.__exportStar(require("./GetReceivedLikesCommand"), exports);
|
|
45
43
|
tslib_1.__exportStar(require("./GetRosesCommand"), exports);
|
|
46
44
|
tslib_1.__exportStar(require("./IndexLocationCommand"), exports);
|
|
45
|
+
tslib_1.__exportStar(require("./RecordSuggestionCommand"), exports);
|
|
47
46
|
tslib_1.__exportStar(require("./RemoveLocationCommand"), exports);
|
|
48
47
|
tslib_1.__exportStar(require("./SwipeCommand"), exports);
|
|
49
48
|
tslib_1.__exportStar(require("./SwipeByUsernameCommand"), exports);
|
|
50
49
|
tslib_1.__exportStar(require("./UpdatePreferencesCommand"), exports);
|
|
51
50
|
tslib_1.__exportStar(require("./CompleteLivenessSessionCommand"), exports);
|
|
51
|
+
tslib_1.__exportStar(require("./CorrectBirthDateCommand"), exports);
|
|
52
52
|
tslib_1.__exportStar(require("./CreateLivenessSessionCommand"), exports);
|
|
53
53
|
tslib_1.__exportStar(require("./DeleteProfileCommand"), exports);
|
|
54
54
|
tslib_1.__exportStar(require("./GenerateDownloadUrlCommand"), exports);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.SuggestionBasis = exports.MatchFinder = exports.SubscriptionTier = exports.ConflictError = exports.CredentialGap = exports.AccountState = exports.PushTokenKind = exports.DeviceLimitError = exports.Platform = exports.LastSeenVisibility = exports.MediaKind = exports.ForbiddenError = exports.NotFoundError = exports.InternalServerError = exports.BadRequestError = void 0;
|
|
3
|
+
exports.SuggestionBasis = exports.MatchFinder = exports.DiscoveryCategory = exports.SubscriptionTier = exports.ConflictError = exports.CredentialGap = exports.AccountState = exports.PushTokenKind = exports.DeviceLimitError = exports.Platform = exports.LastSeenVisibility = exports.MediaKind = exports.ForbiddenError = exports.NotFoundError = exports.InternalServerError = exports.BadRequestError = void 0;
|
|
4
4
|
const OneHookServiceException_1 = require("./OneHookServiceException");
|
|
5
5
|
class BadRequestError extends OneHookServiceException_1.OneHookServiceException {
|
|
6
6
|
name = "BadRequestError";
|
|
@@ -129,6 +129,12 @@ exports.SubscriptionTier = {
|
|
|
129
129
|
MUST: "MUST",
|
|
130
130
|
SUPER: "SUPER",
|
|
131
131
|
};
|
|
132
|
+
exports.DiscoveryCategory = {
|
|
133
|
+
ALL: "ALL",
|
|
134
|
+
ONEHOOK_SUGGESTED: "ONEHOOK_SUGGESTED",
|
|
135
|
+
PROFILE_MATCH: "PROFILE_MATCH",
|
|
136
|
+
SIMILAR: "SIMILAR",
|
|
137
|
+
};
|
|
132
138
|
exports.MatchFinder = {
|
|
133
139
|
MR_ONEHOOK: "MR_ONEHOOK",
|
|
134
140
|
ONEHOOK_INTELLIGENCE: "ONEHOOK_INTELLIGENCE",
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.se_DeleteProfileCommand = exports.se_CreateLivenessSessionCommand = exports.se_CompleteLivenessSessionCommand = exports.se_UpdatePreferencesCommand = exports.se_SwipeByUsernameCommand = exports.se_SwipeCommand = exports.se_RemoveLocationCommand = exports.se_IndexLocationCommand = exports.se_GetRosesCommand = exports.se_GetReceivedLikesCommand = exports.se_GetPreferencesCommand = exports.se_GetNotificationPreferencesCommand = 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_GetProfileCommand = exports.de_GetMyProfileCommand = exports.de_GetLivenessStatusCommand = exports.de_GenerateUploadUrlCommand = exports.de_GenerateDownloadUrlCommand = exports.de_DeleteProfileCommand = exports.de_CreateLivenessSessionCommand = exports.de_CompleteLivenessSessionCommand = exports.de_UpdatePreferencesCommand = exports.de_SwipeByUsernameCommand = exports.de_SwipeCommand = exports.de_RemoveLocationCommand = exports.
|
|
3
|
+
exports.se_DeleteProfileCommand = exports.se_CreateLivenessSessionCommand = exports.se_CorrectBirthDateCommand = 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_SetAccountStateCommand = exports.se_SendAdminLinkOtpCommand = 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_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_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_SetAccountStateCommand = exports.de_SendAdminLinkOtpCommand = 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_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_GetProfileCommand = exports.se_GetMyProfileCommand = exports.se_GetLivenessStatusCommand = exports.se_GenerateUploadUrlCommand = exports.se_GenerateDownloadUrlCommand = 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_GetProfileCommand = exports.de_GetMyProfileCommand = exports.de_GetLivenessStatusCommand = 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 = 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");
|
|
@@ -560,6 +560,7 @@ const se_DiscoverCommand = async (input, context) => {
|
|
|
560
560
|
const query = (0, smithy_client_1.map)({
|
|
561
561
|
[_l]: [(0, smithy_client_1.expectNonNull)(input.lat, `lat`) != null, () => ((input[_l] % 1 == 0) ? input[_l] + ".0" : input[_l].toString())],
|
|
562
562
|
[_lo]: [(0, smithy_client_1.expectNonNull)(input.lon, `lon`) != null, () => ((input[_lo] % 1 == 0) ? input[_lo] + ".0" : input[_lo].toString())],
|
|
563
|
+
[_c]: [, input[_c]],
|
|
563
564
|
});
|
|
564
565
|
let body;
|
|
565
566
|
b.m("GET")
|
|
@@ -569,40 +570,6 @@ const se_DiscoverCommand = async (input, context) => {
|
|
|
569
570
|
return b.build();
|
|
570
571
|
};
|
|
571
572
|
exports.se_DiscoverCommand = se_DiscoverCommand;
|
|
572
|
-
const se_DiscoverByIntentCommand = async (input, context) => {
|
|
573
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
574
|
-
const headers = {
|
|
575
|
-
'content-type': 'application/json',
|
|
576
|
-
};
|
|
577
|
-
b.bp("/matching/discover/intent");
|
|
578
|
-
let body;
|
|
579
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
580
|
-
'description': [],
|
|
581
|
-
'lat': _ => (0, smithy_client_1.serializeFloat)(_),
|
|
582
|
-
'lon': _ => (0, smithy_client_1.serializeFloat)(_),
|
|
583
|
-
}));
|
|
584
|
-
b.m("POST")
|
|
585
|
-
.h(headers)
|
|
586
|
-
.b(body);
|
|
587
|
-
return b.build();
|
|
588
|
-
};
|
|
589
|
-
exports.se_DiscoverByIntentCommand = se_DiscoverByIntentCommand;
|
|
590
|
-
const se_DiscoverSuggestedCommand = async (input, context) => {
|
|
591
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
592
|
-
const headers = {};
|
|
593
|
-
b.bp("/matching/discover/suggested");
|
|
594
|
-
const query = (0, smithy_client_1.map)({
|
|
595
|
-
[_l]: [(0, smithy_client_1.expectNonNull)(input.lat, `lat`) != null, () => ((input[_l] % 1 == 0) ? input[_l] + ".0" : input[_l].toString())],
|
|
596
|
-
[_lo]: [(0, smithy_client_1.expectNonNull)(input.lon, `lon`) != null, () => ((input[_lo] % 1 == 0) ? input[_lo] + ".0" : input[_lo].toString())],
|
|
597
|
-
});
|
|
598
|
-
let body;
|
|
599
|
-
b.m("GET")
|
|
600
|
-
.h(headers)
|
|
601
|
-
.q(query)
|
|
602
|
-
.b(body);
|
|
603
|
-
return b.build();
|
|
604
|
-
};
|
|
605
|
-
exports.se_DiscoverSuggestedCommand = se_DiscoverSuggestedCommand;
|
|
606
573
|
const se_GetNotificationPreferencesCommand = async (input, context) => {
|
|
607
574
|
const b = (0, core_2.requestBuilder)(input, context);
|
|
608
575
|
const headers = {};
|
|
@@ -666,6 +633,23 @@ const se_IndexLocationCommand = async (input, context) => {
|
|
|
666
633
|
return b.build();
|
|
667
634
|
};
|
|
668
635
|
exports.se_IndexLocationCommand = se_IndexLocationCommand;
|
|
636
|
+
const se_RecordSuggestionCommand = async (input, context) => {
|
|
637
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
638
|
+
const headers = {
|
|
639
|
+
'content-type': 'application/json',
|
|
640
|
+
};
|
|
641
|
+
b.bp("/matching/suggestions");
|
|
642
|
+
let body;
|
|
643
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
644
|
+
'prompt': [],
|
|
645
|
+
'reasoning': [],
|
|
646
|
+
}));
|
|
647
|
+
b.m("POST")
|
|
648
|
+
.h(headers)
|
|
649
|
+
.b(body);
|
|
650
|
+
return b.build();
|
|
651
|
+
};
|
|
652
|
+
exports.se_RecordSuggestionCommand = se_RecordSuggestionCommand;
|
|
669
653
|
const se_RemoveLocationCommand = async (input, context) => {
|
|
670
654
|
const b = (0, core_2.requestBuilder)(input, context);
|
|
671
655
|
const headers = {
|
|
@@ -785,6 +769,25 @@ const se_CompleteLivenessSessionCommand = async (input, context) => {
|
|
|
785
769
|
return b.build();
|
|
786
770
|
};
|
|
787
771
|
exports.se_CompleteLivenessSessionCommand = se_CompleteLivenessSessionCommand;
|
|
772
|
+
const se_CorrectBirthDateCommand = async (input, context) => {
|
|
773
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
774
|
+
const headers = {
|
|
775
|
+
'content-type': 'application/json',
|
|
776
|
+
};
|
|
777
|
+
b.bp("/profile-admin/{userId}/birth-date");
|
|
778
|
+
b.p('userId', () => input.userId, '{userId}', false);
|
|
779
|
+
let body;
|
|
780
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
781
|
+
'date': [],
|
|
782
|
+
'reason': [],
|
|
783
|
+
'reference': [],
|
|
784
|
+
}));
|
|
785
|
+
b.m("PUT")
|
|
786
|
+
.h(headers)
|
|
787
|
+
.b(body);
|
|
788
|
+
return b.build();
|
|
789
|
+
};
|
|
790
|
+
exports.se_CorrectBirthDateCommand = se_CorrectBirthDateCommand;
|
|
788
791
|
const se_CreateLivenessSessionCommand = async (input, context) => {
|
|
789
792
|
const b = (0, core_2.requestBuilder)(input, context);
|
|
790
793
|
const headers = {};
|
|
@@ -885,6 +888,7 @@ const se_UpdateProfileCommand = async (input, context) => {
|
|
|
885
888
|
'age': [],
|
|
886
889
|
'audioPrompt': [],
|
|
887
890
|
'bio': [],
|
|
891
|
+
'birthDetails': _ => se_BirthDetails(_, context),
|
|
888
892
|
'cannabisStatus': [],
|
|
889
893
|
'causes': _ => (0, smithy_client_1._json)(_),
|
|
890
894
|
'communities': _ => (0, smithy_client_1._json)(_),
|
|
@@ -1587,47 +1591,15 @@ const de_DiscoverCommand = async (output, context) => {
|
|
|
1587
1591
|
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
|
|
1588
1592
|
const doc = (0, smithy_client_1.take)(data, {
|
|
1589
1593
|
'algorithm': smithy_client_1.expectString,
|
|
1594
|
+
'availableCategories': smithy_client_1._json,
|
|
1590
1595
|
'candidates': _ => de_CandidateList(_, context),
|
|
1596
|
+
'category': smithy_client_1.expectString,
|
|
1591
1597
|
'count': smithy_client_1.expectInt32,
|
|
1592
1598
|
});
|
|
1593
1599
|
Object.assign(contents, doc);
|
|
1594
1600
|
return contents;
|
|
1595
1601
|
};
|
|
1596
1602
|
exports.de_DiscoverCommand = de_DiscoverCommand;
|
|
1597
|
-
const de_DiscoverByIntentCommand = async (output, context) => {
|
|
1598
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1599
|
-
return de_CommandError(output, context);
|
|
1600
|
-
}
|
|
1601
|
-
const contents = (0, smithy_client_1.map)({
|
|
1602
|
-
$metadata: deserializeMetadata(output),
|
|
1603
|
-
});
|
|
1604
|
-
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
|
|
1605
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1606
|
-
'algorithm': smithy_client_1.expectString,
|
|
1607
|
-
'candidates': _ => de_CandidateList(_, context),
|
|
1608
|
-
'count': smithy_client_1.expectInt32,
|
|
1609
|
-
});
|
|
1610
|
-
Object.assign(contents, doc);
|
|
1611
|
-
return contents;
|
|
1612
|
-
};
|
|
1613
|
-
exports.de_DiscoverByIntentCommand = de_DiscoverByIntentCommand;
|
|
1614
|
-
const de_DiscoverSuggestedCommand = async (output, context) => {
|
|
1615
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1616
|
-
return de_CommandError(output, context);
|
|
1617
|
-
}
|
|
1618
|
-
const contents = (0, smithy_client_1.map)({
|
|
1619
|
-
$metadata: deserializeMetadata(output),
|
|
1620
|
-
});
|
|
1621
|
-
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
|
|
1622
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1623
|
-
'algorithm': smithy_client_1.expectString,
|
|
1624
|
-
'candidates': _ => de_CandidateList(_, context),
|
|
1625
|
-
'count': smithy_client_1.expectInt32,
|
|
1626
|
-
});
|
|
1627
|
-
Object.assign(contents, doc);
|
|
1628
|
-
return contents;
|
|
1629
|
-
};
|
|
1630
|
-
exports.de_DiscoverSuggestedCommand = de_DiscoverSuggestedCommand;
|
|
1631
1603
|
const de_GetNotificationPreferencesCommand = async (output, context) => {
|
|
1632
1604
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1633
1605
|
return de_CommandError(output, context);
|
|
@@ -1741,6 +1713,21 @@ const de_IndexLocationCommand = async (output, context) => {
|
|
|
1741
1713
|
return contents;
|
|
1742
1714
|
};
|
|
1743
1715
|
exports.de_IndexLocationCommand = de_IndexLocationCommand;
|
|
1716
|
+
const de_RecordSuggestionCommand = async (output, context) => {
|
|
1717
|
+
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
1718
|
+
return de_CommandError(output, context);
|
|
1719
|
+
}
|
|
1720
|
+
const contents = (0, smithy_client_1.map)({
|
|
1721
|
+
$metadata: deserializeMetadata(output),
|
|
1722
|
+
});
|
|
1723
|
+
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
|
|
1724
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1725
|
+
'suggestionId': smithy_client_1.expectString,
|
|
1726
|
+
});
|
|
1727
|
+
Object.assign(contents, doc);
|
|
1728
|
+
return contents;
|
|
1729
|
+
};
|
|
1730
|
+
exports.de_RecordSuggestionCommand = de_RecordSuggestionCommand;
|
|
1744
1731
|
const de_RemoveLocationCommand = async (output, context) => {
|
|
1745
1732
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1746
1733
|
return de_CommandError(output, context);
|
|
@@ -1818,6 +1805,25 @@ const de_CompleteLivenessSessionCommand = async (output, context) => {
|
|
|
1818
1805
|
return contents;
|
|
1819
1806
|
};
|
|
1820
1807
|
exports.de_CompleteLivenessSessionCommand = de_CompleteLivenessSessionCommand;
|
|
1808
|
+
const de_CorrectBirthDateCommand = async (output, context) => {
|
|
1809
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1810
|
+
return de_CommandError(output, context);
|
|
1811
|
+
}
|
|
1812
|
+
const contents = (0, smithy_client_1.map)({
|
|
1813
|
+
$metadata: deserializeMetadata(output),
|
|
1814
|
+
});
|
|
1815
|
+
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
|
|
1816
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1817
|
+
'age': smithy_client_1.expectInt32,
|
|
1818
|
+
'correctionsRemaining': smithy_client_1.expectInt32,
|
|
1819
|
+
'correctionsUsed': smithy_client_1.expectInt32,
|
|
1820
|
+
'date': smithy_client_1.expectString,
|
|
1821
|
+
'userId': smithy_client_1.expectString,
|
|
1822
|
+
});
|
|
1823
|
+
Object.assign(contents, doc);
|
|
1824
|
+
return contents;
|
|
1825
|
+
};
|
|
1826
|
+
exports.de_CorrectBirthDateCommand = de_CorrectBirthDateCommand;
|
|
1821
1827
|
const de_CreateLivenessSessionCommand = async (output, context) => {
|
|
1822
1828
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1823
1829
|
return de_CommandError(output, context);
|
|
@@ -1908,6 +1914,8 @@ const de_GetMyProfileCommand = async (output, context) => {
|
|
|
1908
1914
|
'age': smithy_client_1.expectInt32,
|
|
1909
1915
|
'audioPrompt': smithy_client_1.expectString,
|
|
1910
1916
|
'bio': smithy_client_1.expectString,
|
|
1917
|
+
'birthDateOnFile': smithy_client_1.expectBoolean,
|
|
1918
|
+
'birthDetails': _ => de_BirthDetails(_, context),
|
|
1911
1919
|
'cannabisStatus': smithy_client_1.expectString,
|
|
1912
1920
|
'causes': smithy_client_1._json,
|
|
1913
1921
|
'communities': smithy_client_1._json,
|
|
@@ -1961,6 +1969,8 @@ const de_GetProfileCommand = async (output, context) => {
|
|
|
1961
1969
|
'age': smithy_client_1.expectInt32,
|
|
1962
1970
|
'audioPrompt': smithy_client_1.expectString,
|
|
1963
1971
|
'bio': smithy_client_1.expectString,
|
|
1972
|
+
'birthDateOnFile': smithy_client_1.expectBoolean,
|
|
1973
|
+
'birthDetails': _ => de_BirthDetails(_, context),
|
|
1964
1974
|
'cannabisStatus': smithy_client_1.expectString,
|
|
1965
1975
|
'causes': smithy_client_1._json,
|
|
1966
1976
|
'communities': smithy_client_1._json,
|
|
@@ -2238,14 +2248,26 @@ const de_NotFoundErrorRes = async (parsedOutput, context) => {
|
|
|
2238
2248
|
});
|
|
2239
2249
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2240
2250
|
};
|
|
2251
|
+
const se_BirthDetails = (input, context) => {
|
|
2252
|
+
return (0, smithy_client_1.take)(input, {
|
|
2253
|
+
'date': [],
|
|
2254
|
+
'latitude': smithy_client_1.serializeFloat,
|
|
2255
|
+
'longitude': smithy_client_1.serializeFloat,
|
|
2256
|
+
'provisional': [],
|
|
2257
|
+
'time': [],
|
|
2258
|
+
'timeZone': [],
|
|
2259
|
+
});
|
|
2260
|
+
};
|
|
2241
2261
|
const de_CandidateDto = (output, context) => {
|
|
2242
2262
|
return (0, smithy_client_1.take)(output, {
|
|
2243
2263
|
'distanceKm': smithy_client_1.limitedParseDouble,
|
|
2244
2264
|
'matchFinder': smithy_client_1.expectString,
|
|
2245
2265
|
'matchFinderLabel': smithy_client_1.expectString,
|
|
2266
|
+
'reasoning': smithy_client_1.expectString,
|
|
2246
2267
|
'score': smithy_client_1.limitedParseDouble,
|
|
2247
2268
|
'similarity': smithy_client_1.limitedParseDouble,
|
|
2248
2269
|
'suggestionBasis': smithy_client_1.expectString,
|
|
2270
|
+
'suggestionId': smithy_client_1.expectString,
|
|
2249
2271
|
'userId': smithy_client_1.expectString,
|
|
2250
2272
|
});
|
|
2251
2273
|
};
|
|
@@ -2255,6 +2277,16 @@ const de_CandidateList = (output, context) => {
|
|
|
2255
2277
|
});
|
|
2256
2278
|
return retVal;
|
|
2257
2279
|
};
|
|
2280
|
+
const de_BirthDetails = (output, context) => {
|
|
2281
|
+
return (0, smithy_client_1.take)(output, {
|
|
2282
|
+
'date': smithy_client_1.expectString,
|
|
2283
|
+
'latitude': smithy_client_1.limitedParseDouble,
|
|
2284
|
+
'longitude': smithy_client_1.limitedParseDouble,
|
|
2285
|
+
'provisional': smithy_client_1.expectBoolean,
|
|
2286
|
+
'time': smithy_client_1.expectString,
|
|
2287
|
+
'timeZone': smithy_client_1.expectString,
|
|
2288
|
+
});
|
|
2289
|
+
};
|
|
2258
2290
|
const deserializeMetadata = (output) => ({
|
|
2259
2291
|
httpStatusCode: output.statusCode,
|
|
2260
2292
|
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
@@ -2262,6 +2294,7 @@ const deserializeMetadata = (output) => ({
|
|
|
2262
2294
|
cfId: output.headers["x-amz-cf-id"],
|
|
2263
2295
|
});
|
|
2264
2296
|
const collectBodyString = (streamBody, context) => (0, smithy_client_1.collectBody)(streamBody, context).then(body => context.utf8Encoder(body));
|
|
2297
|
+
const _c = "category";
|
|
2265
2298
|
const _k = "key";
|
|
2266
2299
|
const _l = "lat";
|
|
2267
2300
|
const _lo = "lon";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.isUiElementId = exports.TELEMETRY_EXEMPT_CATEGORIES = exports.uiElementsForPlatform = exports.UI_ELEMENTS = exports.UiElement = 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 = "
|
|
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.8.0";
|
|
5
|
+
exports.TELEMETRY_CATALOG_HASH = "9a56f9fef0ed4ae7";
|
|
6
6
|
exports.SignalType = {
|
|
7
7
|
SCREEN_VIEW: "screen_view",
|
|
8
8
|
UI_INTERACTION: "ui_interaction",
|
|
@@ -22,6 +22,7 @@ exports.SignalType = {
|
|
|
22
22
|
HOOKED_STATE_VIEW: "hooked_state_view",
|
|
23
23
|
LIKES_YOU_VIEW: "likes_you_view",
|
|
24
24
|
SAFETY_UI_OPEN: "safety_ui_open",
|
|
25
|
+
REPORT_FLOW: "report_flow",
|
|
25
26
|
};
|
|
26
27
|
exports.Platform = {
|
|
27
28
|
WEB: "web",
|
|
@@ -156,6 +157,39 @@ exports.HookedStateAction = {
|
|
|
156
157
|
GO_TO_CHAT: "go_to_chat",
|
|
157
158
|
DISMISS: "dismiss",
|
|
158
159
|
};
|
|
160
|
+
exports.ReportCategory = {
|
|
161
|
+
HARASSMENT: "HARASSMENT",
|
|
162
|
+
THREATS_VIOLENCE: "THREATS_VIOLENCE",
|
|
163
|
+
SEXUAL_CONTENT_NONCONSENT: "SEXUAL_CONTENT_NONCONSENT",
|
|
164
|
+
MINOR_SAFETY: "MINOR_SAFETY",
|
|
165
|
+
SCAM_FRAUD: "SCAM_FRAUD",
|
|
166
|
+
FAKE_IMPERSONATION: "FAKE_IMPERSONATION",
|
|
167
|
+
SPAM_PROMOTION: "SPAM_PROMOTION",
|
|
168
|
+
HATE: "HATE",
|
|
169
|
+
SELF_HARM_CONCERN: "SELF_HARM_CONCERN",
|
|
170
|
+
OFF_PLATFORM_HARM: "OFF_PLATFORM_HARM",
|
|
171
|
+
OTHER: "OTHER",
|
|
172
|
+
};
|
|
173
|
+
exports.ReportSource = {
|
|
174
|
+
CHAT: "chat",
|
|
175
|
+
PROFILE: "profile",
|
|
176
|
+
};
|
|
177
|
+
exports.ReportEvent = {
|
|
178
|
+
REPORT_OPEN: "report.open",
|
|
179
|
+
REPORT_CATEGORY_SELECTED: "report.category_selected",
|
|
180
|
+
REPORT_NOT_REPORTABLE_SHOWN: "report.not_reportable_shown",
|
|
181
|
+
REPORT_NOT_REPORTABLE_BLOCK: "report.not_reportable_block",
|
|
182
|
+
REPORT_SELF_HARM_RESOURCES_SHOWN: "report.self_harm_resources_shown",
|
|
183
|
+
REPORT_EVIDENCE_TOGGLE: "report.evidence_toggle",
|
|
184
|
+
REPORT_ATTACHMENTS_TOGGLE: "report.attachments_toggle",
|
|
185
|
+
REPORT_EVIDENCE_PREVIEW: "report.evidence_preview",
|
|
186
|
+
REPORT_NUDGE_SHOWN: "report.nudge_shown",
|
|
187
|
+
REPORT_SUBMIT_WITH_EVIDENCE: "report.submit_with_evidence",
|
|
188
|
+
REPORT_SUBMIT_WITHOUT_EVIDENCE: "report.submit_without_evidence",
|
|
189
|
+
REPORT_SUBMIT_FAILED: "report.submit_failed",
|
|
190
|
+
REPORT_EVIDENCE_UPLOAD_SUCCEEDED: "report.evidence_upload_succeeded",
|
|
191
|
+
REPORT_EVIDENCE_UPLOAD_FAILED: "report.evidence_upload_failed",
|
|
192
|
+
};
|
|
159
193
|
exports.UiElement = {
|
|
160
194
|
NAV_TAB_SELECT: "nav.tab_select",
|
|
161
195
|
NAV_SEARCH_OPEN: "nav.search_open",
|
|
@@ -235,6 +269,7 @@ exports.UiElement = {
|
|
|
235
269
|
DISCOVER_LIKES_YOU_OPEN: "discover.likes_you_open",
|
|
236
270
|
DISCOVER_ADD_HOOK_OPEN: "discover.add_hook_open",
|
|
237
271
|
DISCOVER_RETRY: "discover.retry",
|
|
272
|
+
DISCOVER_CATEGORY_SELECT: "discover.category_select",
|
|
238
273
|
DISCOVER_ADD_HOOK_SUBMIT: "discover.add_hook_submit",
|
|
239
274
|
DISCOVER_UPGRADE_OPEN: "discover.upgrade_open",
|
|
240
275
|
LIKE_COMPOSER_SEND: "like_composer.send",
|
|
@@ -261,6 +296,8 @@ exports.UiElement = {
|
|
|
261
296
|
CHAT_PROFILE_OPEN: "chat.profile_open",
|
|
262
297
|
CHAT_SAFETY_MENU_OPEN: "chat.safety_menu_open",
|
|
263
298
|
CHAT_UNMATCH: "chat.unmatch",
|
|
299
|
+
CHAT_REPORT_OPEN: "chat.report_open",
|
|
300
|
+
CHAT_BLOCK_OPEN: "chat.block_open",
|
|
264
301
|
CHAT_REPORT_SPAM: "chat.report_spam",
|
|
265
302
|
CHAT_REPORT_BLOCK: "chat.report_block",
|
|
266
303
|
CHAT_BLOCK_CONFIRM: "chat.block_confirm",
|
|
@@ -476,6 +513,7 @@ exports.UI_ELEMENTS = {
|
|
|
476
513
|
"discover.likes_you_open": { screen: "DISCOVER", kind: "button", actions: ["tap", "dismiss"], values: null, platforms: ["ios", "android"] },
|
|
477
514
|
"discover.add_hook_open": { screen: "DISCOVER", kind: "button", actions: ["tap", "dismiss"], values: null, platforms: ["ios"] },
|
|
478
515
|
"discover.retry": { screen: "DISCOVER", kind: "button", actions: ["tap"], values: null, platforms: ["web", "ios", "android"] },
|
|
516
|
+
"discover.category_select": { screen: "DISCOVER", kind: "button", actions: ["tap"], values: ["all", "profile_match", "onehook_suggested", "similar"], platforms: ["web", "ios", "android"] },
|
|
479
517
|
"discover.add_hook_submit": { screen: "DISCOVER", kind: "button", actions: ["submit"], values: null, platforms: ["web", "ios"] },
|
|
480
518
|
"discover.upgrade_open": { screen: "DISCOVER", kind: "button", actions: ["tap", "dismiss"], values: null, platforms: ["ios"] },
|
|
481
519
|
"like_composer.send": { screen: "LIKE_COMPOSER", kind: "button", actions: ["submit"], values: null, platforms: ["web", "ios", "android"] },
|
|
@@ -502,8 +540,10 @@ exports.UI_ELEMENTS = {
|
|
|
502
540
|
"chat.profile_open": { screen: "CHAT", kind: "button", actions: ["tap", "dismiss"], values: null, platforms: ["web", "ios", "android"] },
|
|
503
541
|
"chat.safety_menu_open": { screen: "CHAT", kind: "button", actions: ["tap", "dismiss"], values: null, platforms: ["web", "ios", "android"] },
|
|
504
542
|
"chat.unmatch": { screen: "CHAT", kind: "menu_item", actions: ["tap"], values: null, platforms: ["ios", "android"] },
|
|
505
|
-
"chat.
|
|
506
|
-
"chat.
|
|
543
|
+
"chat.report_open": { screen: "CHAT", kind: "menu_item", actions: ["tap"], values: null, platforms: ["web", "ios", "android"] },
|
|
544
|
+
"chat.block_open": { screen: "CHAT", kind: "menu_item", actions: ["tap"], values: null, platforms: ["web", "ios", "android"] },
|
|
545
|
+
"chat.report_spam": { screen: "CHAT", kind: "menu_item", actions: ["tap"], values: null, platforms: [] },
|
|
546
|
+
"chat.report_block": { screen: "CHAT", kind: "menu_item", actions: ["tap"], values: null, platforms: [] },
|
|
507
547
|
"chat.block_confirm": { screen: "CHAT", kind: "dialog_button", actions: ["tap", "dismiss"], values: null, platforms: ["web", "ios", "android"] },
|
|
508
548
|
"chat.settings_open": { screen: "CHAT", kind: "button", actions: ["tap", "dismiss"], values: null, platforms: ["web", "ios"] },
|
|
509
549
|
"chat.wallpaper_open": { screen: "CHAT", kind: "menu_item", actions: ["tap", "dismiss"], values: null, platforms: ["web"] },
|
package/dist-es/OneHook.js
CHANGED
|
@@ -2,6 +2,7 @@ import { OneHookClient, } from "./OneHookClient";
|
|
|
2
2
|
import { AuthSocialCommand, } from "./commands/AuthSocialCommand";
|
|
3
3
|
import { CompleteLivenessSessionCommand, } from "./commands/CompleteLivenessSessionCommand";
|
|
4
4
|
import { CompleteOnboardingCommand, } from "./commands/CompleteOnboardingCommand";
|
|
5
|
+
import { CorrectBirthDateCommand, } from "./commands/CorrectBirthDateCommand";
|
|
5
6
|
import { CreateAdminInviteCommand, } from "./commands/CreateAdminInviteCommand";
|
|
6
7
|
import { CreateLivenessSessionCommand, } from "./commands/CreateLivenessSessionCommand";
|
|
7
8
|
import { CreateMediaDownloadUrlCommand, } from "./commands/CreateMediaDownloadUrlCommand";
|
|
@@ -9,9 +10,7 @@ import { CreateMediaUploadUrlCommand, } from "./commands/CreateMediaUploadUrlCom
|
|
|
9
10
|
import { DeleteMatchMessagesCommand, } from "./commands/DeleteMatchMessagesCommand";
|
|
10
11
|
import { DeleteProfileCommand, } from "./commands/DeleteProfileCommand";
|
|
11
12
|
import { DeletePushTokenCommand, } from "./commands/DeletePushTokenCommand";
|
|
12
|
-
import { DiscoverByIntentCommand, } from "./commands/DiscoverByIntentCommand";
|
|
13
13
|
import { DiscoverCommand, } from "./commands/DiscoverCommand";
|
|
14
|
-
import { DiscoverSuggestedCommand, } from "./commands/DiscoverSuggestedCommand";
|
|
15
14
|
import { GenerateDownloadUrlCommand, } from "./commands/GenerateDownloadUrlCommand";
|
|
16
15
|
import { GenerateInviteCommand, } from "./commands/GenerateInviteCommand";
|
|
17
16
|
import { GenerateUploadUrlCommand, } from "./commands/GenerateUploadUrlCommand";
|
|
@@ -38,6 +37,7 @@ import { InitUserCommand, } from "./commands/InitUserCommand";
|
|
|
38
37
|
import { LinkEmailCommand, } from "./commands/LinkEmailCommand";
|
|
39
38
|
import { LinkSocialCommand, } from "./commands/LinkSocialCommand";
|
|
40
39
|
import { ListMyDevicesCommand, } from "./commands/ListMyDevicesCommand";
|
|
40
|
+
import { RecordSuggestionCommand, } from "./commands/RecordSuggestionCommand";
|
|
41
41
|
import { RegisterDeviceCommand, } from "./commands/RegisterDeviceCommand";
|
|
42
42
|
import { RegisterPhoneCommand, } from "./commands/RegisterPhoneCommand";
|
|
43
43
|
import { RegisterPushTokenCommand, } from "./commands/RegisterPushTokenCommand";
|
|
@@ -99,18 +99,18 @@ const commands = {
|
|
|
99
99
|
ValidateInviteCommand,
|
|
100
100
|
VerifyAdminLinkOtpCommand,
|
|
101
101
|
DiscoverCommand,
|
|
102
|
-
DiscoverByIntentCommand,
|
|
103
|
-
DiscoverSuggestedCommand,
|
|
104
102
|
GetNotificationPreferencesCommand,
|
|
105
103
|
GetPreferencesCommand,
|
|
106
104
|
GetReceivedLikesCommand,
|
|
107
105
|
GetRosesCommand,
|
|
108
106
|
IndexLocationCommand,
|
|
107
|
+
RecordSuggestionCommand,
|
|
109
108
|
RemoveLocationCommand,
|
|
110
109
|
SwipeCommand,
|
|
111
110
|
SwipeByUsernameCommand,
|
|
112
111
|
UpdatePreferencesCommand,
|
|
113
112
|
CompleteLivenessSessionCommand,
|
|
113
|
+
CorrectBirthDateCommand,
|
|
114
114
|
CreateLivenessSessionCommand,
|
|
115
115
|
DeleteProfileCommand,
|
|
116
116
|
GenerateDownloadUrlCommand,
|