onehook-api-client 1.0.30 → 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 +7 -0
- package/dist-cjs/OneHook.js +2 -0
- package/dist-cjs/commands/CorrectBirthDateCommand.js +21 -0
- package/dist-cjs/commands/index.js +1 -0
- package/dist-cjs/protocols/Aws_restJson1.js +66 -3
- package/dist-cjs/telemetry/index.js +4 -2
- package/dist-es/OneHook.js +2 -0
- package/dist-es/commands/CorrectBirthDateCommand.js +17 -0
- package/dist-es/commands/index.js +1 -0
- package/dist-es/protocols/Aws_restJson1.js +61 -0
- package/dist-es/telemetry/index.js +4 -2
- package/dist-types/OneHook.d.ts +7 -0
- package/dist-types/OneHookClient.d.ts +3 -2
- package/dist-types/commands/CorrectBirthDateCommand.d.ts +88 -0
- package/dist-types/commands/GetMyProfileCommand.d.ts +9 -0
- package/dist-types/commands/GetProfileCommand.d.ts +9 -0
- package/dist-types/commands/UpdateProfileCommand.d.ts +8 -0
- package/dist-types/commands/index.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +106 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +9 -0
- package/dist-types/telemetry/index.d.ts +3 -2
- package/package.json +1 -1
- package/telemetry/TelemetryCatalog.kt +5 -4
- package/telemetry/TelemetryCatalog.swift +6 -4
- package/telemetry/telemetry-catalog.json +23 -2
package/README.md
CHANGED
|
@@ -528,6 +528,13 @@ CompleteLivenessSession
|
|
|
528
528
|
</details>
|
|
529
529
|
<details>
|
|
530
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>
|
|
531
538
|
CreateLivenessSession
|
|
532
539
|
</summary>
|
|
533
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");
|
|
@@ -112,6 +113,7 @@ const commands = {
|
|
|
112
113
|
SwipeByUsernameCommand: SwipeByUsernameCommand_1.SwipeByUsernameCommand,
|
|
113
114
|
UpdatePreferencesCommand: UpdatePreferencesCommand_1.UpdatePreferencesCommand,
|
|
114
115
|
CompleteLivenessSessionCommand: CompleteLivenessSessionCommand_1.CompleteLivenessSessionCommand,
|
|
116
|
+
CorrectBirthDateCommand: CorrectBirthDateCommand_1.CorrectBirthDateCommand,
|
|
115
117
|
CreateLivenessSessionCommand: CreateLivenessSessionCommand_1.CreateLivenessSessionCommand,
|
|
116
118
|
DeleteProfileCommand: DeleteProfileCommand_1.DeleteProfileCommand,
|
|
117
119
|
GenerateDownloadUrlCommand: GenerateDownloadUrlCommand_1.GenerateDownloadUrlCommand,
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CorrectBirthDateCommand = 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 CorrectBirthDateCommand 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", "CorrectBirthDate", {})
|
|
15
|
+
.n("OneHookClient", "CorrectBirthDateCommand")
|
|
16
|
+
.f(void 0, void 0)
|
|
17
|
+
.ser(Aws_restJson1_1.se_CorrectBirthDateCommand)
|
|
18
|
+
.de(Aws_restJson1_1.de_CorrectBirthDateCommand)
|
|
19
|
+
.build() {
|
|
20
|
+
}
|
|
21
|
+
exports.CorrectBirthDateCommand = CorrectBirthDateCommand;
|
|
@@ -48,6 +48,7 @@ tslib_1.__exportStar(require("./SwipeCommand"), exports);
|
|
|
48
48
|
tslib_1.__exportStar(require("./SwipeByUsernameCommand"), exports);
|
|
49
49
|
tslib_1.__exportStar(require("./UpdatePreferencesCommand"), exports);
|
|
50
50
|
tslib_1.__exportStar(require("./CompleteLivenessSessionCommand"), exports);
|
|
51
|
+
tslib_1.__exportStar(require("./CorrectBirthDateCommand"), exports);
|
|
51
52
|
tslib_1.__exportStar(require("./CreateLivenessSessionCommand"), exports);
|
|
52
53
|
tslib_1.__exportStar(require("./DeleteProfileCommand"), exports);
|
|
53
54
|
tslib_1.__exportStar(require("./GenerateDownloadUrlCommand"), 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_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.de_RecordSuggestionCommand = exports.de_IndexLocationCommand = exports.de_GetRosesCommand = void 0;
|
|
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");
|
|
@@ -769,6 +769,25 @@ const se_CompleteLivenessSessionCommand = async (input, context) => {
|
|
|
769
769
|
return b.build();
|
|
770
770
|
};
|
|
771
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;
|
|
772
791
|
const se_CreateLivenessSessionCommand = async (input, context) => {
|
|
773
792
|
const b = (0, core_2.requestBuilder)(input, context);
|
|
774
793
|
const headers = {};
|
|
@@ -869,6 +888,7 @@ const se_UpdateProfileCommand = async (input, context) => {
|
|
|
869
888
|
'age': [],
|
|
870
889
|
'audioPrompt': [],
|
|
871
890
|
'bio': [],
|
|
891
|
+
'birthDetails': _ => se_BirthDetails(_, context),
|
|
872
892
|
'cannabisStatus': [],
|
|
873
893
|
'causes': _ => (0, smithy_client_1._json)(_),
|
|
874
894
|
'communities': _ => (0, smithy_client_1._json)(_),
|
|
@@ -1785,6 +1805,25 @@ const de_CompleteLivenessSessionCommand = async (output, context) => {
|
|
|
1785
1805
|
return contents;
|
|
1786
1806
|
};
|
|
1787
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;
|
|
1788
1827
|
const de_CreateLivenessSessionCommand = async (output, context) => {
|
|
1789
1828
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1790
1829
|
return de_CommandError(output, context);
|
|
@@ -1875,6 +1914,8 @@ const de_GetMyProfileCommand = async (output, context) => {
|
|
|
1875
1914
|
'age': smithy_client_1.expectInt32,
|
|
1876
1915
|
'audioPrompt': smithy_client_1.expectString,
|
|
1877
1916
|
'bio': smithy_client_1.expectString,
|
|
1917
|
+
'birthDateOnFile': smithy_client_1.expectBoolean,
|
|
1918
|
+
'birthDetails': _ => de_BirthDetails(_, context),
|
|
1878
1919
|
'cannabisStatus': smithy_client_1.expectString,
|
|
1879
1920
|
'causes': smithy_client_1._json,
|
|
1880
1921
|
'communities': smithy_client_1._json,
|
|
@@ -1928,6 +1969,8 @@ const de_GetProfileCommand = async (output, context) => {
|
|
|
1928
1969
|
'age': smithy_client_1.expectInt32,
|
|
1929
1970
|
'audioPrompt': smithy_client_1.expectString,
|
|
1930
1971
|
'bio': smithy_client_1.expectString,
|
|
1972
|
+
'birthDateOnFile': smithy_client_1.expectBoolean,
|
|
1973
|
+
'birthDetails': _ => de_BirthDetails(_, context),
|
|
1931
1974
|
'cannabisStatus': smithy_client_1.expectString,
|
|
1932
1975
|
'causes': smithy_client_1._json,
|
|
1933
1976
|
'communities': smithy_client_1._json,
|
|
@@ -2205,6 +2248,16 @@ const de_NotFoundErrorRes = async (parsedOutput, context) => {
|
|
|
2205
2248
|
});
|
|
2206
2249
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2207
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
|
+
};
|
|
2208
2261
|
const de_CandidateDto = (output, context) => {
|
|
2209
2262
|
return (0, smithy_client_1.take)(output, {
|
|
2210
2263
|
'distanceKm': smithy_client_1.limitedParseDouble,
|
|
@@ -2224,6 +2277,16 @@ const de_CandidateList = (output, context) => {
|
|
|
2224
2277
|
});
|
|
2225
2278
|
return retVal;
|
|
2226
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
|
+
};
|
|
2227
2290
|
const deserializeMetadata = (output) => ({
|
|
2228
2291
|
httpStatusCode: output.statusCode,
|
|
2229
2292
|
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
@@ -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.8.0";
|
|
5
|
+
exports.TELEMETRY_CATALOG_HASH = "9a56f9fef0ed4ae7";
|
|
6
6
|
exports.SignalType = {
|
|
7
7
|
SCREEN_VIEW: "screen_view",
|
|
8
8
|
UI_INTERACTION: "ui_interaction",
|
|
@@ -269,6 +269,7 @@ exports.UiElement = {
|
|
|
269
269
|
DISCOVER_LIKES_YOU_OPEN: "discover.likes_you_open",
|
|
270
270
|
DISCOVER_ADD_HOOK_OPEN: "discover.add_hook_open",
|
|
271
271
|
DISCOVER_RETRY: "discover.retry",
|
|
272
|
+
DISCOVER_CATEGORY_SELECT: "discover.category_select",
|
|
272
273
|
DISCOVER_ADD_HOOK_SUBMIT: "discover.add_hook_submit",
|
|
273
274
|
DISCOVER_UPGRADE_OPEN: "discover.upgrade_open",
|
|
274
275
|
LIKE_COMPOSER_SEND: "like_composer.send",
|
|
@@ -512,6 +513,7 @@ exports.UI_ELEMENTS = {
|
|
|
512
513
|
"discover.likes_you_open": { screen: "DISCOVER", kind: "button", actions: ["tap", "dismiss"], values: null, platforms: ["ios", "android"] },
|
|
513
514
|
"discover.add_hook_open": { screen: "DISCOVER", kind: "button", actions: ["tap", "dismiss"], values: null, platforms: ["ios"] },
|
|
514
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"] },
|
|
515
517
|
"discover.add_hook_submit": { screen: "DISCOVER", kind: "button", actions: ["submit"], values: null, platforms: ["web", "ios"] },
|
|
516
518
|
"discover.upgrade_open": { screen: "DISCOVER", kind: "button", actions: ["tap", "dismiss"], values: null, platforms: ["ios"] },
|
|
517
519
|
"like_composer.send": { screen: "LIKE_COMPOSER", kind: "button", actions: ["submit"], values: null, platforms: ["web", "ios", "android"] },
|
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";
|
|
@@ -109,6 +110,7 @@ const commands = {
|
|
|
109
110
|
SwipeByUsernameCommand,
|
|
110
111
|
UpdatePreferencesCommand,
|
|
111
112
|
CompleteLivenessSessionCommand,
|
|
113
|
+
CorrectBirthDateCommand,
|
|
112
114
|
CreateLivenessSessionCommand,
|
|
113
115
|
DeleteProfileCommand,
|
|
114
116
|
GenerateDownloadUrlCommand,
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { de_CorrectBirthDateCommand, se_CorrectBirthDateCommand, } 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 CorrectBirthDateCommand extends $Command.classBuilder()
|
|
6
|
+
.m(function (Command, cs, config, o) {
|
|
7
|
+
return [
|
|
8
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
9
|
+
];
|
|
10
|
+
})
|
|
11
|
+
.s("OneHookService", "CorrectBirthDate", {})
|
|
12
|
+
.n("OneHookClient", "CorrectBirthDateCommand")
|
|
13
|
+
.f(void 0, void 0)
|
|
14
|
+
.ser(se_CorrectBirthDateCommand)
|
|
15
|
+
.de(de_CorrectBirthDateCommand)
|
|
16
|
+
.build() {
|
|
17
|
+
}
|
|
@@ -45,6 +45,7 @@ export * from "./SwipeCommand";
|
|
|
45
45
|
export * from "./SwipeByUsernameCommand";
|
|
46
46
|
export * from "./UpdatePreferencesCommand";
|
|
47
47
|
export * from "./CompleteLivenessSessionCommand";
|
|
48
|
+
export * from "./CorrectBirthDateCommand";
|
|
48
49
|
export * from "./CreateLivenessSessionCommand";
|
|
49
50
|
export * from "./DeleteProfileCommand";
|
|
50
51
|
export * from "./GenerateDownloadUrlCommand";
|
|
@@ -717,6 +717,24 @@ export const se_CompleteLivenessSessionCommand = async (input, context) => {
|
|
|
717
717
|
.b(body);
|
|
718
718
|
return b.build();
|
|
719
719
|
};
|
|
720
|
+
export const se_CorrectBirthDateCommand = async (input, context) => {
|
|
721
|
+
const b = rb(input, context);
|
|
722
|
+
const headers = {
|
|
723
|
+
'content-type': 'application/json',
|
|
724
|
+
};
|
|
725
|
+
b.bp("/profile-admin/{userId}/birth-date");
|
|
726
|
+
b.p('userId', () => input.userId, '{userId}', false);
|
|
727
|
+
let body;
|
|
728
|
+
body = JSON.stringify(take(input, {
|
|
729
|
+
'date': [],
|
|
730
|
+
'reason': [],
|
|
731
|
+
'reference': [],
|
|
732
|
+
}));
|
|
733
|
+
b.m("PUT")
|
|
734
|
+
.h(headers)
|
|
735
|
+
.b(body);
|
|
736
|
+
return b.build();
|
|
737
|
+
};
|
|
720
738
|
export const se_CreateLivenessSessionCommand = async (input, context) => {
|
|
721
739
|
const b = rb(input, context);
|
|
722
740
|
const headers = {};
|
|
@@ -810,6 +828,7 @@ export const se_UpdateProfileCommand = async (input, context) => {
|
|
|
810
828
|
'age': [],
|
|
811
829
|
'audioPrompt': [],
|
|
812
830
|
'bio': [],
|
|
831
|
+
'birthDetails': _ => se_BirthDetails(_, context),
|
|
813
832
|
'cannabisStatus': [],
|
|
814
833
|
'causes': _ => _json(_),
|
|
815
834
|
'communities': _ => _json(_),
|
|
@@ -1672,6 +1691,24 @@ export const de_CompleteLivenessSessionCommand = async (output, context) => {
|
|
|
1672
1691
|
Object.assign(contents, doc);
|
|
1673
1692
|
return contents;
|
|
1674
1693
|
};
|
|
1694
|
+
export const de_CorrectBirthDateCommand = async (output, context) => {
|
|
1695
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1696
|
+
return de_CommandError(output, context);
|
|
1697
|
+
}
|
|
1698
|
+
const contents = map({
|
|
1699
|
+
$metadata: deserializeMetadata(output),
|
|
1700
|
+
});
|
|
1701
|
+
const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
|
|
1702
|
+
const doc = take(data, {
|
|
1703
|
+
'age': __expectInt32,
|
|
1704
|
+
'correctionsRemaining': __expectInt32,
|
|
1705
|
+
'correctionsUsed': __expectInt32,
|
|
1706
|
+
'date': __expectString,
|
|
1707
|
+
'userId': __expectString,
|
|
1708
|
+
});
|
|
1709
|
+
Object.assign(contents, doc);
|
|
1710
|
+
return contents;
|
|
1711
|
+
};
|
|
1675
1712
|
export const de_CreateLivenessSessionCommand = async (output, context) => {
|
|
1676
1713
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1677
1714
|
return de_CommandError(output, context);
|
|
@@ -1757,6 +1794,8 @@ export const de_GetMyProfileCommand = async (output, context) => {
|
|
|
1757
1794
|
'age': __expectInt32,
|
|
1758
1795
|
'audioPrompt': __expectString,
|
|
1759
1796
|
'bio': __expectString,
|
|
1797
|
+
'birthDateOnFile': __expectBoolean,
|
|
1798
|
+
'birthDetails': _ => de_BirthDetails(_, context),
|
|
1760
1799
|
'cannabisStatus': __expectString,
|
|
1761
1800
|
'causes': _json,
|
|
1762
1801
|
'communities': _json,
|
|
@@ -1809,6 +1848,8 @@ export const de_GetProfileCommand = async (output, context) => {
|
|
|
1809
1848
|
'age': __expectInt32,
|
|
1810
1849
|
'audioPrompt': __expectString,
|
|
1811
1850
|
'bio': __expectString,
|
|
1851
|
+
'birthDateOnFile': __expectBoolean,
|
|
1852
|
+
'birthDetails': _ => de_BirthDetails(_, context),
|
|
1812
1853
|
'cannabisStatus': __expectString,
|
|
1813
1854
|
'causes': _json,
|
|
1814
1855
|
'communities': _json,
|
|
@@ -2078,6 +2119,16 @@ const de_NotFoundErrorRes = async (parsedOutput, context) => {
|
|
|
2078
2119
|
});
|
|
2079
2120
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
2080
2121
|
};
|
|
2122
|
+
const se_BirthDetails = (input, context) => {
|
|
2123
|
+
return take(input, {
|
|
2124
|
+
'date': [],
|
|
2125
|
+
'latitude': __serializeFloat,
|
|
2126
|
+
'longitude': __serializeFloat,
|
|
2127
|
+
'provisional': [],
|
|
2128
|
+
'time': [],
|
|
2129
|
+
'timeZone': [],
|
|
2130
|
+
});
|
|
2131
|
+
};
|
|
2081
2132
|
const de_CandidateDto = (output, context) => {
|
|
2082
2133
|
return take(output, {
|
|
2083
2134
|
'distanceKm': __limitedParseDouble,
|
|
@@ -2097,6 +2148,16 @@ const de_CandidateList = (output, context) => {
|
|
|
2097
2148
|
});
|
|
2098
2149
|
return retVal;
|
|
2099
2150
|
};
|
|
2151
|
+
const de_BirthDetails = (output, context) => {
|
|
2152
|
+
return take(output, {
|
|
2153
|
+
'date': __expectString,
|
|
2154
|
+
'latitude': __limitedParseDouble,
|
|
2155
|
+
'longitude': __limitedParseDouble,
|
|
2156
|
+
'provisional': __expectBoolean,
|
|
2157
|
+
'time': __expectString,
|
|
2158
|
+
'timeZone': __expectString,
|
|
2159
|
+
});
|
|
2160
|
+
};
|
|
2100
2161
|
const deserializeMetadata = (output) => ({
|
|
2101
2162
|
httpStatusCode: output.statusCode,
|
|
2102
2163
|
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export const TELEMETRY_CATALOG_VERSION = "1.
|
|
2
|
-
export const TELEMETRY_CATALOG_HASH = "
|
|
1
|
+
export const TELEMETRY_CATALOG_VERSION = "1.8.0";
|
|
2
|
+
export const TELEMETRY_CATALOG_HASH = "9a56f9fef0ed4ae7";
|
|
3
3
|
export const SignalType = {
|
|
4
4
|
SCREEN_VIEW: "screen_view",
|
|
5
5
|
UI_INTERACTION: "ui_interaction",
|
|
@@ -266,6 +266,7 @@ export const UiElement = {
|
|
|
266
266
|
DISCOVER_LIKES_YOU_OPEN: "discover.likes_you_open",
|
|
267
267
|
DISCOVER_ADD_HOOK_OPEN: "discover.add_hook_open",
|
|
268
268
|
DISCOVER_RETRY: "discover.retry",
|
|
269
|
+
DISCOVER_CATEGORY_SELECT: "discover.category_select",
|
|
269
270
|
DISCOVER_ADD_HOOK_SUBMIT: "discover.add_hook_submit",
|
|
270
271
|
DISCOVER_UPGRADE_OPEN: "discover.upgrade_open",
|
|
271
272
|
LIKE_COMPOSER_SEND: "like_composer.send",
|
|
@@ -509,6 +510,7 @@ export const UI_ELEMENTS = {
|
|
|
509
510
|
"discover.likes_you_open": { screen: "DISCOVER", kind: "button", actions: ["tap", "dismiss"], values: null, platforms: ["ios", "android"] },
|
|
510
511
|
"discover.add_hook_open": { screen: "DISCOVER", kind: "button", actions: ["tap", "dismiss"], values: null, platforms: ["ios"] },
|
|
511
512
|
"discover.retry": { screen: "DISCOVER", kind: "button", actions: ["tap"], values: null, platforms: ["web", "ios", "android"] },
|
|
513
|
+
"discover.category_select": { screen: "DISCOVER", kind: "button", actions: ["tap"], values: ["all", "profile_match", "onehook_suggested", "similar"], platforms: ["web", "ios", "android"] },
|
|
512
514
|
"discover.add_hook_submit": { screen: "DISCOVER", kind: "button", actions: ["submit"], values: null, platforms: ["web", "ios"] },
|
|
513
515
|
"discover.upgrade_open": { screen: "DISCOVER", kind: "button", actions: ["tap", "dismiss"], values: null, platforms: ["ios"] },
|
|
514
516
|
"like_composer.send": { screen: "LIKE_COMPOSER", kind: "button", actions: ["submit"], values: null, platforms: ["web", "ios", "android"] },
|
package/dist-types/OneHook.d.ts
CHANGED
|
@@ -2,6 +2,7 @@ import { OneHookClient } from "./OneHookClient";
|
|
|
2
2
|
import { AuthSocialCommandInput, AuthSocialCommandOutput } from "./commands/AuthSocialCommand";
|
|
3
3
|
import { CompleteLivenessSessionCommandInput, CompleteLivenessSessionCommandOutput } from "./commands/CompleteLivenessSessionCommand";
|
|
4
4
|
import { CompleteOnboardingCommandInput, CompleteOnboardingCommandOutput } from "./commands/CompleteOnboardingCommand";
|
|
5
|
+
import { CorrectBirthDateCommandInput, CorrectBirthDateCommandOutput } from "./commands/CorrectBirthDateCommand";
|
|
5
6
|
import { CreateAdminInviteCommandInput, CreateAdminInviteCommandOutput } from "./commands/CreateAdminInviteCommand";
|
|
6
7
|
import { CreateLivenessSessionCommandInput, CreateLivenessSessionCommandOutput } from "./commands/CreateLivenessSessionCommand";
|
|
7
8
|
import { CreateMediaDownloadUrlCommandInput, CreateMediaDownloadUrlCommandOutput } from "./commands/CreateMediaDownloadUrlCommand";
|
|
@@ -349,6 +350,12 @@ export interface OneHook {
|
|
|
349
350
|
completeLivenessSession(args: CompleteLivenessSessionCommandInput, options?: __HttpHandlerOptions): Promise<CompleteLivenessSessionCommandOutput>;
|
|
350
351
|
completeLivenessSession(args: CompleteLivenessSessionCommandInput, cb: (err: any, data?: CompleteLivenessSessionCommandOutput) => void): void;
|
|
351
352
|
completeLivenessSession(args: CompleteLivenessSessionCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CompleteLivenessSessionCommandOutput) => void): void;
|
|
353
|
+
/**
|
|
354
|
+
* @see {@link CorrectBirthDateCommand}
|
|
355
|
+
*/
|
|
356
|
+
correctBirthDate(args: CorrectBirthDateCommandInput, options?: __HttpHandlerOptions): Promise<CorrectBirthDateCommandOutput>;
|
|
357
|
+
correctBirthDate(args: CorrectBirthDateCommandInput, cb: (err: any, data?: CorrectBirthDateCommandOutput) => void): void;
|
|
358
|
+
correctBirthDate(args: CorrectBirthDateCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CorrectBirthDateCommandOutput) => void): void;
|
|
352
359
|
/**
|
|
353
360
|
* @see {@link CreateLivenessSessionCommand}
|
|
354
361
|
*/
|
|
@@ -2,6 +2,7 @@ import { HttpAuthSchemeInputConfig, HttpAuthSchemeResolvedConfig } from "./auth/
|
|
|
2
2
|
import { AuthSocialCommandInput, AuthSocialCommandOutput } from "./commands/AuthSocialCommand";
|
|
3
3
|
import { CompleteLivenessSessionCommandInput, CompleteLivenessSessionCommandOutput } from "./commands/CompleteLivenessSessionCommand";
|
|
4
4
|
import { CompleteOnboardingCommandInput, CompleteOnboardingCommandOutput } from "./commands/CompleteOnboardingCommand";
|
|
5
|
+
import { CorrectBirthDateCommandInput, CorrectBirthDateCommandOutput } from "./commands/CorrectBirthDateCommand";
|
|
5
6
|
import { CreateAdminInviteCommandInput, CreateAdminInviteCommandOutput } from "./commands/CreateAdminInviteCommand";
|
|
6
7
|
import { CreateLivenessSessionCommandInput, CreateLivenessSessionCommandOutput } from "./commands/CreateLivenessSessionCommand";
|
|
7
8
|
import { CreateMediaDownloadUrlCommandInput, CreateMediaDownloadUrlCommandOutput } from "./commands/CreateMediaDownloadUrlCommand";
|
|
@@ -72,11 +73,11 @@ export { __Client };
|
|
|
72
73
|
/**
|
|
73
74
|
* @public
|
|
74
75
|
*/
|
|
75
|
-
export type ServiceInputTypes = AuthSocialCommandInput | CompleteLivenessSessionCommandInput | CompleteOnboardingCommandInput | CreateAdminInviteCommandInput | CreateLivenessSessionCommandInput | CreateMediaDownloadUrlCommandInput | CreateMediaUploadUrlCommandInput | DeleteMatchMessagesCommandInput | DeleteProfileCommandInput | DeletePushTokenCommandInput | DiscoverCommandInput | GenerateDownloadUrlCommandInput | GenerateInviteCommandInput | GenerateUploadUrlCommandInput | GetAccountStateCommandInput | GetAdminPhoneStatusCommandInput | GetAiContextMatchCommandInput | GetChatSettingsCommandInput | GetCredentialReadinessCommandInput | GetLivenessStatusCommandInput | GetMatchCommandInput | GetMyProfileCommandInput | GetNotificationPreferencesCommandInput | GetParticipantRegistryCommandInput | GetPreferencesCommandInput | GetProfileCommandInput | GetReceivedLikesCommandInput | GetRosesCommandInput | GetStateCommandInput | GetUserByEmailCommandInput | GetUserCommandInput | GetUserIdByUsernameCommandInput | IndexLocationCommandInput | InitUserCommandInput | LinkEmailCommandInput | LinkSocialCommandInput | ListMyDevicesCommandInput | RecordSuggestionCommandInput | RegisterDeviceCommandInput | RegisterPhoneCommandInput | RegisterPushTokenCommandInput | RemoveLocationCommandInput | RequestEmailOtpCommandInput | RequestPhoneOtpCommandInput | RequestPhoneUpdateOtpCommandInput | RevokeDeviceCommandInput | SendAdminLinkOtpCommandInput | SetAccountStateCommandInput | SwipeByUsernameCommandInput | SwipeCommandInput | UnhookCommandInput | UnlinkSocialCommandInput | UpdateChatSettingsCommandInput | UpdateEntitlementsCommandInput | UpdatePhoneNumberCommandInput | UpdatePreferencesCommandInput | UpdateProfileCommandInput | UpdateUsernameCommandInput | UpgradeUserCommandInput | ValidateInviteCommandInput | VerifyAdminLinkOtpCommandInput;
|
|
76
|
+
export type ServiceInputTypes = AuthSocialCommandInput | CompleteLivenessSessionCommandInput | CompleteOnboardingCommandInput | CorrectBirthDateCommandInput | CreateAdminInviteCommandInput | CreateLivenessSessionCommandInput | CreateMediaDownloadUrlCommandInput | CreateMediaUploadUrlCommandInput | DeleteMatchMessagesCommandInput | DeleteProfileCommandInput | DeletePushTokenCommandInput | DiscoverCommandInput | GenerateDownloadUrlCommandInput | GenerateInviteCommandInput | GenerateUploadUrlCommandInput | GetAccountStateCommandInput | GetAdminPhoneStatusCommandInput | GetAiContextMatchCommandInput | GetChatSettingsCommandInput | GetCredentialReadinessCommandInput | GetLivenessStatusCommandInput | GetMatchCommandInput | GetMyProfileCommandInput | GetNotificationPreferencesCommandInput | GetParticipantRegistryCommandInput | GetPreferencesCommandInput | GetProfileCommandInput | GetReceivedLikesCommandInput | GetRosesCommandInput | GetStateCommandInput | GetUserByEmailCommandInput | GetUserCommandInput | GetUserIdByUsernameCommandInput | IndexLocationCommandInput | InitUserCommandInput | LinkEmailCommandInput | LinkSocialCommandInput | ListMyDevicesCommandInput | RecordSuggestionCommandInput | RegisterDeviceCommandInput | RegisterPhoneCommandInput | RegisterPushTokenCommandInput | RemoveLocationCommandInput | RequestEmailOtpCommandInput | RequestPhoneOtpCommandInput | RequestPhoneUpdateOtpCommandInput | RevokeDeviceCommandInput | SendAdminLinkOtpCommandInput | SetAccountStateCommandInput | SwipeByUsernameCommandInput | SwipeCommandInput | UnhookCommandInput | UnlinkSocialCommandInput | UpdateChatSettingsCommandInput | UpdateEntitlementsCommandInput | UpdatePhoneNumberCommandInput | UpdatePreferencesCommandInput | UpdateProfileCommandInput | UpdateUsernameCommandInput | UpgradeUserCommandInput | ValidateInviteCommandInput | VerifyAdminLinkOtpCommandInput;
|
|
76
77
|
/**
|
|
77
78
|
* @public
|
|
78
79
|
*/
|
|
79
|
-
export type ServiceOutputTypes = AuthSocialCommandOutput | CompleteLivenessSessionCommandOutput | CompleteOnboardingCommandOutput | CreateAdminInviteCommandOutput | CreateLivenessSessionCommandOutput | CreateMediaDownloadUrlCommandOutput | CreateMediaUploadUrlCommandOutput | DeleteMatchMessagesCommandOutput | DeleteProfileCommandOutput | DeletePushTokenCommandOutput | DiscoverCommandOutput | GenerateDownloadUrlCommandOutput | GenerateInviteCommandOutput | GenerateUploadUrlCommandOutput | GetAccountStateCommandOutput | GetAdminPhoneStatusCommandOutput | GetAiContextMatchCommandOutput | GetChatSettingsCommandOutput | GetCredentialReadinessCommandOutput | GetLivenessStatusCommandOutput | GetMatchCommandOutput | GetMyProfileCommandOutput | GetNotificationPreferencesCommandOutput | GetParticipantRegistryCommandOutput | GetPreferencesCommandOutput | GetProfileCommandOutput | GetReceivedLikesCommandOutput | GetRosesCommandOutput | GetStateCommandOutput | GetUserByEmailCommandOutput | GetUserCommandOutput | GetUserIdByUsernameCommandOutput | IndexLocationCommandOutput | InitUserCommandOutput | LinkEmailCommandOutput | LinkSocialCommandOutput | ListMyDevicesCommandOutput | RecordSuggestionCommandOutput | RegisterDeviceCommandOutput | RegisterPhoneCommandOutput | RegisterPushTokenCommandOutput | RemoveLocationCommandOutput | RequestEmailOtpCommandOutput | RequestPhoneOtpCommandOutput | RequestPhoneUpdateOtpCommandOutput | RevokeDeviceCommandOutput | SendAdminLinkOtpCommandOutput | SetAccountStateCommandOutput | SwipeByUsernameCommandOutput | SwipeCommandOutput | UnhookCommandOutput | UnlinkSocialCommandOutput | UpdateChatSettingsCommandOutput | UpdateEntitlementsCommandOutput | UpdatePhoneNumberCommandOutput | UpdatePreferencesCommandOutput | UpdateProfileCommandOutput | UpdateUsernameCommandOutput | UpgradeUserCommandOutput | ValidateInviteCommandOutput | VerifyAdminLinkOtpCommandOutput;
|
|
80
|
+
export type ServiceOutputTypes = AuthSocialCommandOutput | CompleteLivenessSessionCommandOutput | CompleteOnboardingCommandOutput | CorrectBirthDateCommandOutput | CreateAdminInviteCommandOutput | CreateLivenessSessionCommandOutput | CreateMediaDownloadUrlCommandOutput | CreateMediaUploadUrlCommandOutput | DeleteMatchMessagesCommandOutput | DeleteProfileCommandOutput | DeletePushTokenCommandOutput | DiscoverCommandOutput | GenerateDownloadUrlCommandOutput | GenerateInviteCommandOutput | GenerateUploadUrlCommandOutput | GetAccountStateCommandOutput | GetAdminPhoneStatusCommandOutput | GetAiContextMatchCommandOutput | GetChatSettingsCommandOutput | GetCredentialReadinessCommandOutput | GetLivenessStatusCommandOutput | GetMatchCommandOutput | GetMyProfileCommandOutput | GetNotificationPreferencesCommandOutput | GetParticipantRegistryCommandOutput | GetPreferencesCommandOutput | GetProfileCommandOutput | GetReceivedLikesCommandOutput | GetRosesCommandOutput | GetStateCommandOutput | GetUserByEmailCommandOutput | GetUserCommandOutput | GetUserIdByUsernameCommandOutput | IndexLocationCommandOutput | InitUserCommandOutput | LinkEmailCommandOutput | LinkSocialCommandOutput | ListMyDevicesCommandOutput | RecordSuggestionCommandOutput | RegisterDeviceCommandOutput | RegisterPhoneCommandOutput | RegisterPushTokenCommandOutput | RemoveLocationCommandOutput | RequestEmailOtpCommandOutput | RequestPhoneOtpCommandOutput | RequestPhoneUpdateOtpCommandOutput | RevokeDeviceCommandOutput | SendAdminLinkOtpCommandOutput | SetAccountStateCommandOutput | SwipeByUsernameCommandOutput | SwipeCommandOutput | UnhookCommandOutput | UnlinkSocialCommandOutput | UpdateChatSettingsCommandOutput | UpdateEntitlementsCommandOutput | UpdatePhoneNumberCommandOutput | UpdatePreferencesCommandOutput | UpdateProfileCommandOutput | UpdateUsernameCommandOutput | UpgradeUserCommandOutput | ValidateInviteCommandOutput | VerifyAdminLinkOtpCommandOutput;
|
|
80
81
|
/**
|
|
81
82
|
* @public
|
|
82
83
|
*/
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
import { OneHookClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../OneHookClient";
|
|
2
|
+
import { CorrectBirthDateRequest, CorrectBirthDateResponse } 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 CorrectBirthDateCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface CorrectBirthDateCommandInput extends CorrectBirthDateRequest {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link CorrectBirthDateCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface CorrectBirthDateCommandOutput extends CorrectBirthDateResponse, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const CorrectBirthDateCommand_base: {
|
|
25
|
+
new (input: CorrectBirthDateCommandInput): import("@smithy/smithy-client").CommandImpl<CorrectBirthDateCommandInput, CorrectBirthDateCommandOutput, OneHookClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (__0_0: CorrectBirthDateCommandInput): import("@smithy/smithy-client").CommandImpl<CorrectBirthDateCommandInput, CorrectBirthDateCommandOutput, OneHookClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* Support-only correction of a member's birth date, which members can never change themselves.
|
|
31
|
+
* Internal, IAM-authorized (SigV4): callable only by principals granted execute-api:Invoke on this
|
|
32
|
+
* route (the admin portal's support role). Every correction is audited (who, when, why, from/to)
|
|
33
|
+
* and limited to 2 per member, ever. Age is re-derived; Matching re-syncs automatically.
|
|
34
|
+
* @example
|
|
35
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
36
|
+
* ```javascript
|
|
37
|
+
* import { OneHookClient, CorrectBirthDateCommand } from "onehook-api-client"; // ES Modules import
|
|
38
|
+
* // const { OneHookClient, CorrectBirthDateCommand } = require("onehook-api-client"); // CommonJS import
|
|
39
|
+
* const client = new OneHookClient(config);
|
|
40
|
+
* const input = { // CorrectBirthDateRequest
|
|
41
|
+
* userId: "STRING_VALUE", // required
|
|
42
|
+
* date: "STRING_VALUE", // required
|
|
43
|
+
* reason: "STRING_VALUE", // required
|
|
44
|
+
* reference: "STRING_VALUE", // required
|
|
45
|
+
* };
|
|
46
|
+
* const command = new CorrectBirthDateCommand(input);
|
|
47
|
+
* const response = await client.send(command);
|
|
48
|
+
* // { // CorrectBirthDateResponse
|
|
49
|
+
* // userId: "STRING_VALUE", // required
|
|
50
|
+
* // date: "STRING_VALUE", // required
|
|
51
|
+
* // age: Number("int"), // required
|
|
52
|
+
* // correctionsUsed: Number("int"), // required
|
|
53
|
+
* // correctionsRemaining: Number("int"), // required
|
|
54
|
+
* // };
|
|
55
|
+
*
|
|
56
|
+
* ```
|
|
57
|
+
*
|
|
58
|
+
* @param CorrectBirthDateCommandInput - {@link CorrectBirthDateCommandInput}
|
|
59
|
+
* @returns {@link CorrectBirthDateCommandOutput}
|
|
60
|
+
* @see {@link CorrectBirthDateCommandInput} for command's `input` shape.
|
|
61
|
+
* @see {@link CorrectBirthDateCommandOutput} for command's `response` shape.
|
|
62
|
+
* @see {@link OneHookClientResolvedConfig | config} for OneHookClient's `config` shape.
|
|
63
|
+
*
|
|
64
|
+
* @throws {@link BadRequestError} (client fault)
|
|
65
|
+
*
|
|
66
|
+
* @throws {@link NotFoundError} (client fault)
|
|
67
|
+
*
|
|
68
|
+
* @throws {@link InternalServerError} (server fault)
|
|
69
|
+
*
|
|
70
|
+
* @throws {@link OneHookServiceException}
|
|
71
|
+
* <p>Base exception class for all service exceptions from OneHook service.</p>
|
|
72
|
+
*
|
|
73
|
+
*
|
|
74
|
+
* @public
|
|
75
|
+
*/
|
|
76
|
+
export declare class CorrectBirthDateCommand extends CorrectBirthDateCommand_base {
|
|
77
|
+
/** @internal type navigation helper, not in runtime. */
|
|
78
|
+
protected static __types: {
|
|
79
|
+
api: {
|
|
80
|
+
input: CorrectBirthDateRequest;
|
|
81
|
+
output: CorrectBirthDateResponse;
|
|
82
|
+
};
|
|
83
|
+
sdk: {
|
|
84
|
+
input: CorrectBirthDateCommandInput;
|
|
85
|
+
output: CorrectBirthDateCommandOutput;
|
|
86
|
+
};
|
|
87
|
+
};
|
|
88
|
+
}
|
|
@@ -106,6 +106,15 @@ declare const GetMyProfileCommand_base: {
|
|
|
106
106
|
* // educationLevel: "STRING_VALUE",
|
|
107
107
|
* // politicalView: "STRING_VALUE",
|
|
108
108
|
* // languages: "<StringList>",
|
|
109
|
+
* // birthDetails: { // BirthDetails
|
|
110
|
+
* // date: "STRING_VALUE",
|
|
111
|
+
* // time: "STRING_VALUE",
|
|
112
|
+
* // timeZone: "STRING_VALUE",
|
|
113
|
+
* // latitude: Number("double"),
|
|
114
|
+
* // longitude: Number("double"),
|
|
115
|
+
* // provisional: true || false,
|
|
116
|
+
* // },
|
|
117
|
+
* // birthDateOnFile: true || false,
|
|
109
118
|
* // };
|
|
110
119
|
*
|
|
111
120
|
* ```
|
|
@@ -107,6 +107,15 @@ declare const GetProfileCommand_base: {
|
|
|
107
107
|
* // educationLevel: "STRING_VALUE",
|
|
108
108
|
* // politicalView: "STRING_VALUE",
|
|
109
109
|
* // languages: "<StringList>",
|
|
110
|
+
* // birthDetails: { // BirthDetails
|
|
111
|
+
* // date: "STRING_VALUE",
|
|
112
|
+
* // time: "STRING_VALUE",
|
|
113
|
+
* // timeZone: "STRING_VALUE",
|
|
114
|
+
* // latitude: Number("double"),
|
|
115
|
+
* // longitude: Number("double"),
|
|
116
|
+
* // provisional: true || false,
|
|
117
|
+
* // },
|
|
118
|
+
* // birthDateOnFile: true || false,
|
|
110
119
|
* // };
|
|
111
120
|
*
|
|
112
121
|
* ```
|
|
@@ -95,6 +95,14 @@ declare const UpdateProfileCommand_base: {
|
|
|
95
95
|
* educationLevel: "STRING_VALUE",
|
|
96
96
|
* politicalView: "STRING_VALUE",
|
|
97
97
|
* languages: "<StringList>",
|
|
98
|
+
* birthDetails: { // BirthDetails
|
|
99
|
+
* date: "STRING_VALUE",
|
|
100
|
+
* time: "STRING_VALUE",
|
|
101
|
+
* timeZone: "STRING_VALUE",
|
|
102
|
+
* latitude: Number("double"),
|
|
103
|
+
* longitude: Number("double"),
|
|
104
|
+
* provisional: true || false,
|
|
105
|
+
* },
|
|
98
106
|
* };
|
|
99
107
|
* const command = new UpdateProfileCommand(input);
|
|
100
108
|
* const response = await client.send(command);
|
|
@@ -45,6 +45,7 @@ export * from "./SwipeCommand";
|
|
|
45
45
|
export * from "./SwipeByUsernameCommand";
|
|
46
46
|
export * from "./UpdatePreferencesCommand";
|
|
47
47
|
export * from "./CompleteLivenessSessionCommand";
|
|
48
|
+
export * from "./CorrectBirthDateCommand";
|
|
48
49
|
export * from "./CreateLivenessSessionCommand";
|
|
49
50
|
export * from "./DeleteProfileCommand";
|
|
50
51
|
export * from "./GenerateDownloadUrlCommand";
|
|
@@ -1665,6 +1665,41 @@ export interface CompleteLivenessSessionResponse {
|
|
|
1665
1665
|
*/
|
|
1666
1666
|
status: string | undefined;
|
|
1667
1667
|
}
|
|
1668
|
+
/**
|
|
1669
|
+
* @public
|
|
1670
|
+
*/
|
|
1671
|
+
export interface CorrectBirthDateRequest {
|
|
1672
|
+
userId: string | undefined;
|
|
1673
|
+
/**
|
|
1674
|
+
* The corrected birth date, `yyyy-MM-dd` (must give an age of 18 to 120).
|
|
1675
|
+
* @public
|
|
1676
|
+
*/
|
|
1677
|
+
date: string | undefined;
|
|
1678
|
+
/**
|
|
1679
|
+
* Why the correction is made (10-500 characters), e.g. "ID document shows 1991-03-02".
|
|
1680
|
+
* @public
|
|
1681
|
+
*/
|
|
1682
|
+
reason: string | undefined;
|
|
1683
|
+
/**
|
|
1684
|
+
* Support ticket or case reference.
|
|
1685
|
+
* @public
|
|
1686
|
+
*/
|
|
1687
|
+
reference: string | undefined;
|
|
1688
|
+
}
|
|
1689
|
+
/**
|
|
1690
|
+
* @public
|
|
1691
|
+
*/
|
|
1692
|
+
export interface CorrectBirthDateResponse {
|
|
1693
|
+
userId: string | undefined;
|
|
1694
|
+
date: string | undefined;
|
|
1695
|
+
age: number | undefined;
|
|
1696
|
+
/**
|
|
1697
|
+
* Corrections used for this member, including this one.
|
|
1698
|
+
* @public
|
|
1699
|
+
*/
|
|
1700
|
+
correctionsUsed: number | undefined;
|
|
1701
|
+
correctionsRemaining: number | undefined;
|
|
1702
|
+
}
|
|
1668
1703
|
/**
|
|
1669
1704
|
* @public
|
|
1670
1705
|
*/
|
|
@@ -1732,6 +1767,47 @@ export interface LivenessStatusResponse {
|
|
|
1732
1767
|
*/
|
|
1733
1768
|
status: string | undefined;
|
|
1734
1769
|
}
|
|
1770
|
+
/**
|
|
1771
|
+
* Birth data. `date` is required (age is derived from it); each extra field unlocks more traditional systems
|
|
1772
|
+
* (`time` + `timeZone`: Moon nakshatra, hour pillar, Zi Wei palaces; `latitude` + `longitude`:
|
|
1773
|
+
* Ascendant, Arabic Parts, Hellenistic sect). Never shown to other members.
|
|
1774
|
+
* @public
|
|
1775
|
+
*/
|
|
1776
|
+
export interface BirthDetails {
|
|
1777
|
+
/**
|
|
1778
|
+
* Local birth date (day, month and year), `yyyy-MM-dd`. Must give an age of 18 to 120.
|
|
1779
|
+
* Set once at onboarding; immutable afterwards.
|
|
1780
|
+
* @public
|
|
1781
|
+
*/
|
|
1782
|
+
date?: string | undefined;
|
|
1783
|
+
/**
|
|
1784
|
+
* Local birth time, `HH:mm` (24h). Requires `timeZone`.
|
|
1785
|
+
* @public
|
|
1786
|
+
*/
|
|
1787
|
+
time?: string | undefined;
|
|
1788
|
+
/**
|
|
1789
|
+
* IANA time zone of the birthplace, e.g. `Asia/Kolkata`.
|
|
1790
|
+
* @public
|
|
1791
|
+
*/
|
|
1792
|
+
timeZone?: string | undefined;
|
|
1793
|
+
/**
|
|
1794
|
+
* Birthplace latitude in degrees (north positive). Send together with `longitude`.
|
|
1795
|
+
* @public
|
|
1796
|
+
*/
|
|
1797
|
+
latitude?: number | undefined;
|
|
1798
|
+
/**
|
|
1799
|
+
* Birthplace longitude in degrees (east positive). Send together with `latitude`.
|
|
1800
|
+
* @public
|
|
1801
|
+
*/
|
|
1802
|
+
longitude?: number | undefined;
|
|
1803
|
+
/**
|
|
1804
|
+
* Server-set, ignored on input. True when `date` is a placeholder added for a profile created
|
|
1805
|
+
* before the birth date was compulsory. The member may replace a provisional date ONCE with
|
|
1806
|
+
* their real one; clients should prompt for it.
|
|
1807
|
+
* @public
|
|
1808
|
+
*/
|
|
1809
|
+
provisional?: boolean | undefined;
|
|
1810
|
+
}
|
|
1735
1811
|
/**
|
|
1736
1812
|
* A user-authored conversation opener: free text plus an optional image.
|
|
1737
1813
|
* The image (if present) is moderated by the same async decency flow as profile pictures
|
|
@@ -1757,6 +1833,10 @@ export interface ProfileResponse {
|
|
|
1757
1833
|
userId: string | undefined;
|
|
1758
1834
|
displayName?: string | undefined;
|
|
1759
1835
|
bio?: string | undefined;
|
|
1836
|
+
/**
|
|
1837
|
+
* Derived from the immutable birth date on every read (stored value only for legacy profiles without one).
|
|
1838
|
+
* @public
|
|
1839
|
+
*/
|
|
1760
1840
|
age?: number | undefined;
|
|
1761
1841
|
gender?: string | undefined;
|
|
1762
1842
|
interestedIn?: (string)[] | undefined;
|
|
@@ -1818,6 +1898,17 @@ export interface ProfileResponse {
|
|
|
1818
1898
|
educationLevel?: string | undefined;
|
|
1819
1899
|
politicalView?: string | undefined;
|
|
1820
1900
|
languages?: (string)[] | undefined;
|
|
1901
|
+
/**
|
|
1902
|
+
* The caller's own birth details. Returned only to the profile owner; absent for everyone else.
|
|
1903
|
+
* @public
|
|
1904
|
+
*/
|
|
1905
|
+
birthDetails?: BirthDetails | undefined;
|
|
1906
|
+
/**
|
|
1907
|
+
* True when a real (non-provisional) birth date is on file. Returned to every viewer; reveals
|
|
1908
|
+
* nothing about the date. State's onboarding gate requires it.
|
|
1909
|
+
* @public
|
|
1910
|
+
*/
|
|
1911
|
+
birthDateOnFile?: boolean | undefined;
|
|
1821
1912
|
}
|
|
1822
1913
|
/**
|
|
1823
1914
|
* @public
|
|
@@ -1831,6 +1922,12 @@ export interface GetProfileRequest {
|
|
|
1831
1922
|
export interface ProfileUpdateRequest {
|
|
1832
1923
|
displayName?: string | undefined;
|
|
1833
1924
|
bio?: string | undefined;
|
|
1925
|
+
/**
|
|
1926
|
+
* Deprecated and ignored: age is derived from `birthDetails.date` and cannot be set or changed.
|
|
1927
|
+
*
|
|
1928
|
+
* @deprecated
|
|
1929
|
+
* @public
|
|
1930
|
+
*/
|
|
1834
1931
|
age?: number | undefined;
|
|
1835
1932
|
gender?: string | undefined;
|
|
1836
1933
|
interestedIn?: (string)[] | undefined;
|
|
@@ -1867,6 +1964,15 @@ export interface ProfileUpdateRequest {
|
|
|
1867
1964
|
educationLevel?: string | undefined;
|
|
1868
1965
|
politicalView?: string | undefined;
|
|
1869
1966
|
languages?: (string)[] | undefined;
|
|
1967
|
+
/**
|
|
1968
|
+
* Birth details. `date` is REQUIRED when the profile is first created (the member's age is
|
|
1969
|
+
* derived from it, and must be 18 or over) and can NEVER be changed afterwards: a different or
|
|
1970
|
+
* empty date returns 400 (re-sending the same date is fine). The other
|
|
1971
|
+
* fields are optional, can be added at onboarding or later, and only refine traditional
|
|
1972
|
+
* compatibility (Kundali, natal chart, Bazi, …). Omit the object to keep the stored value.
|
|
1973
|
+
* @public
|
|
1974
|
+
*/
|
|
1975
|
+
birthDetails?: BirthDetails | undefined;
|
|
1870
1976
|
}
|
|
1871
1977
|
/**
|
|
1872
1978
|
* @public
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { AuthSocialCommandInput, AuthSocialCommandOutput } from "../commands/AuthSocialCommand";
|
|
2
2
|
import { CompleteLivenessSessionCommandInput, CompleteLivenessSessionCommandOutput } from "../commands/CompleteLivenessSessionCommand";
|
|
3
3
|
import { CompleteOnboardingCommandInput, CompleteOnboardingCommandOutput } from "../commands/CompleteOnboardingCommand";
|
|
4
|
+
import { CorrectBirthDateCommandInput, CorrectBirthDateCommandOutput } from "../commands/CorrectBirthDateCommand";
|
|
4
5
|
import { CreateAdminInviteCommandInput, CreateAdminInviteCommandOutput } from "../commands/CreateAdminInviteCommand";
|
|
5
6
|
import { CreateLivenessSessionCommandInput, CreateLivenessSessionCommandOutput } from "../commands/CreateLivenessSessionCommand";
|
|
6
7
|
import { CreateMediaDownloadUrlCommandInput, CreateMediaDownloadUrlCommandOutput } from "../commands/CreateMediaDownloadUrlCommand";
|
|
@@ -249,6 +250,10 @@ export declare const se_UpdatePreferencesCommand: (input: UpdatePreferencesComma
|
|
|
249
250
|
* serializeAws_restJson1CompleteLivenessSessionCommand
|
|
250
251
|
*/
|
|
251
252
|
export declare const se_CompleteLivenessSessionCommand: (input: CompleteLivenessSessionCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
253
|
+
/**
|
|
254
|
+
* serializeAws_restJson1CorrectBirthDateCommand
|
|
255
|
+
*/
|
|
256
|
+
export declare const se_CorrectBirthDateCommand: (input: CorrectBirthDateCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
252
257
|
/**
|
|
253
258
|
* serializeAws_restJson1CreateLivenessSessionCommand
|
|
254
259
|
*/
|
|
@@ -493,6 +498,10 @@ export declare const de_UpdatePreferencesCommand: (output: __HttpResponse, conte
|
|
|
493
498
|
* deserializeAws_restJson1CompleteLivenessSessionCommand
|
|
494
499
|
*/
|
|
495
500
|
export declare const de_CompleteLivenessSessionCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<CompleteLivenessSessionCommandOutput>;
|
|
501
|
+
/**
|
|
502
|
+
* deserializeAws_restJson1CorrectBirthDateCommand
|
|
503
|
+
*/
|
|
504
|
+
export declare const de_CorrectBirthDateCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<CorrectBirthDateCommandOutput>;
|
|
496
505
|
/**
|
|
497
506
|
* deserializeAws_restJson1CreateLivenessSessionCommand
|
|
498
507
|
*/
|
|
@@ -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.8.0";
|
|
2
|
+
export declare const TELEMETRY_CATALOG_HASH = "9a56f9fef0ed4ae7";
|
|
3
3
|
/** Every signal type the ingest accepts. */
|
|
4
4
|
export declare const SignalType: {
|
|
5
5
|
readonly SCREEN_VIEW: "screen_view";
|
|
@@ -305,6 +305,7 @@ export declare const UiElement: {
|
|
|
305
305
|
readonly DISCOVER_LIKES_YOU_OPEN: "discover.likes_you_open";
|
|
306
306
|
readonly DISCOVER_ADD_HOOK_OPEN: "discover.add_hook_open";
|
|
307
307
|
readonly DISCOVER_RETRY: "discover.retry";
|
|
308
|
+
readonly DISCOVER_CATEGORY_SELECT: "discover.category_select";
|
|
308
309
|
readonly DISCOVER_ADD_HOOK_SUBMIT: "discover.add_hook_submit";
|
|
309
310
|
readonly DISCOVER_UPGRADE_OPEN: "discover.upgrade_open";
|
|
310
311
|
readonly LIKE_COMPOSER_SEND: "like_composer.send";
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
// GENERATED FILE - DO NOT EDIT.
|
|
2
|
-
// telemetry-integrity: sha256
|
|
2
|
+
// telemetry-integrity: sha256 a8e675bda96da4f1c8c821887aa245d35ce1236f0306a575ee356751dacd0bf0
|
|
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.8.0, hash 9a56f9fef0ed4ae7.
|
|
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.8.0"
|
|
16
|
+
const val HASH = "9a56f9fef0ed4ae7"
|
|
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
|
}
|
|
@@ -368,6 +368,7 @@ enum class UiElement(
|
|
|
368
368
|
DISCOVER_LIKES_YOU_OPEN("discover.likes_you_open", TelemetryScreen.DISCOVER, UiElementKind.BUTTON, listOf(UiAction.TAP, UiAction.DISMISS), null, listOf(TelemetryPlatform.IOS, TelemetryPlatform.ANDROID)),
|
|
369
369
|
DISCOVER_ADD_HOOK_OPEN("discover.add_hook_open", TelemetryScreen.DISCOVER, UiElementKind.BUTTON, listOf(UiAction.TAP, UiAction.DISMISS), null, listOf(TelemetryPlatform.IOS)),
|
|
370
370
|
DISCOVER_RETRY("discover.retry", TelemetryScreen.DISCOVER, UiElementKind.BUTTON, listOf(UiAction.TAP), null, listOf(TelemetryPlatform.WEB, TelemetryPlatform.IOS, TelemetryPlatform.ANDROID)),
|
|
371
|
+
DISCOVER_CATEGORY_SELECT("discover.category_select", TelemetryScreen.DISCOVER, UiElementKind.BUTTON, listOf(UiAction.TAP), listOf("all", "profile_match", "onehook_suggested", "similar"), listOf(TelemetryPlatform.WEB, TelemetryPlatform.IOS, TelemetryPlatform.ANDROID)),
|
|
371
372
|
DISCOVER_ADD_HOOK_SUBMIT("discover.add_hook_submit", TelemetryScreen.DISCOVER, UiElementKind.BUTTON, listOf(UiAction.SUBMIT), null, listOf(TelemetryPlatform.WEB, TelemetryPlatform.IOS)),
|
|
372
373
|
DISCOVER_UPGRADE_OPEN("discover.upgrade_open", TelemetryScreen.DISCOVER, UiElementKind.BUTTON, listOf(UiAction.TAP, UiAction.DISMISS), null, listOf(TelemetryPlatform.IOS)),
|
|
373
374
|
LIKE_COMPOSER_SEND("like_composer.send", TelemetryScreen.LIKE_COMPOSER, UiElementKind.BUTTON, listOf(UiAction.SUBMIT), null, 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 09fe73b250348dbfb22adf2c33abc13e91b7174e499699a85e3a5dbdbcd9e467
|
|
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.8.0, hash 9a56f9fef0ed4ae7.
|
|
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.8.0"
|
|
14
|
+
public static let hash = "9a56f9fef0ed4ae7"
|
|
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
|
}
|
|
@@ -306,6 +306,7 @@ public enum UiElement: String, CaseIterable, Codable, Sendable {
|
|
|
306
306
|
case discoverLikesYouOpen = "discover.likes_you_open"
|
|
307
307
|
case discoverAddHookOpen = "discover.add_hook_open"
|
|
308
308
|
case discoverRetry = "discover.retry"
|
|
309
|
+
case discoverCategorySelect = "discover.category_select"
|
|
309
310
|
case discoverAddHookSubmit = "discover.add_hook_submit"
|
|
310
311
|
case discoverUpgradeOpen = "discover.upgrade_open"
|
|
311
312
|
case likeComposerSend = "like_composer.send"
|
|
@@ -550,6 +551,7 @@ public enum UiElement: String, CaseIterable, Codable, Sendable {
|
|
|
550
551
|
case .discoverLikesYouOpen: return UiElementSpec(screen: .discover, kind: .button, actions: [.tap, .dismiss], allowedValues: nil, platforms: [.ios, .android])
|
|
551
552
|
case .discoverAddHookOpen: return UiElementSpec(screen: .discover, kind: .button, actions: [.tap, .dismiss], allowedValues: nil, platforms: [.ios])
|
|
552
553
|
case .discoverRetry: return UiElementSpec(screen: .discover, kind: .button, actions: [.tap], allowedValues: nil, platforms: [.web, .ios, .android])
|
|
554
|
+
case .discoverCategorySelect: return UiElementSpec(screen: .discover, kind: .button, actions: [.tap], allowedValues: ["all", "profile_match", "onehook_suggested", "similar"], platforms: [.web, .ios, .android])
|
|
553
555
|
case .discoverAddHookSubmit: return UiElementSpec(screen: .discover, kind: .button, actions: [.submit], allowedValues: nil, platforms: [.web, .ios])
|
|
554
556
|
case .discoverUpgradeOpen: return UiElementSpec(screen: .discover, kind: .button, actions: [.tap, .dismiss], allowedValues: nil, platforms: [.ios])
|
|
555
557
|
case .likeComposerSend: return UiElementSpec(screen: .likeComposer, kind: .button, actions: [.submit], allowedValues: nil, platforms: [.web, .ios, .android])
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "1.
|
|
2
|
+
"version": "1.8.0",
|
|
3
3
|
"screens": {
|
|
4
4
|
"NAV": {
|
|
5
5
|
"viewable": false,
|
|
@@ -1652,6 +1652,27 @@
|
|
|
1652
1652
|
"deprecated": null,
|
|
1653
1653
|
"legacy": null
|
|
1654
1654
|
},
|
|
1655
|
+
"discover.category_select": {
|
|
1656
|
+
"screen": "DISCOVER",
|
|
1657
|
+
"kind": "button",
|
|
1658
|
+
"description": "Choose a discovery category (Super and above). value = category, lower-cased.",
|
|
1659
|
+
"actions": [
|
|
1660
|
+
"tap"
|
|
1661
|
+
],
|
|
1662
|
+
"values": [
|
|
1663
|
+
"all",
|
|
1664
|
+
"profile_match",
|
|
1665
|
+
"onehook_suggested",
|
|
1666
|
+
"similar"
|
|
1667
|
+
],
|
|
1668
|
+
"platforms": [
|
|
1669
|
+
"web",
|
|
1670
|
+
"ios",
|
|
1671
|
+
"android"
|
|
1672
|
+
],
|
|
1673
|
+
"deprecated": null,
|
|
1674
|
+
"legacy": null
|
|
1675
|
+
},
|
|
1655
1676
|
"discover.add_hook_submit": {
|
|
1656
1677
|
"screen": "DISCOVER",
|
|
1657
1678
|
"kind": "button",
|
|
@@ -4956,5 +4977,5 @@
|
|
|
4956
4977
|
}
|
|
4957
4978
|
}
|
|
4958
4979
|
},
|
|
4959
|
-
"hash": "
|
|
4980
|
+
"hash": "9a56f9fef0ed4ae7"
|
|
4960
4981
|
}
|