onehook-api-client 1.0.39 → 1.0.41
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +14 -0
- package/dist-cjs/OneHook.js +4 -0
- package/dist-cjs/commands/CheckUsernameAvailabilityCommand.js +21 -0
- package/dist-cjs/commands/SetPasswordCommand.js +21 -0
- package/dist-cjs/commands/index.js +2 -0
- package/dist-cjs/models/models_0.js +7 -1
- package/dist-cjs/protocols/Aws_restJson1.js +115 -19
- package/dist-cjs/telemetry/index.js +24 -7
- package/dist-es/OneHook.js +4 -0
- package/dist-es/commands/CheckUsernameAvailabilityCommand.js +17 -0
- package/dist-es/commands/SetPasswordCommand.js +17 -0
- package/dist-es/commands/index.js +2 -0
- package/dist-es/models/models_0.js +6 -0
- package/dist-es/protocols/Aws_restJson1.js +106 -14
- package/dist-es/telemetry/index.js +24 -7
- package/dist-types/OneHook.d.ts +14 -0
- package/dist-types/OneHookClient.d.ts +4 -2
- package/dist-types/commands/CheckUsernameAvailabilityCommand.d.ts +104 -0
- package/dist-types/commands/GetChatProfileCommand.d.ts +0 -5
- package/dist-types/commands/GetInternalProfileCommand.d.ts +1 -1
- package/dist-types/commands/GetMatchingProfileCommand.d.ts +7 -0
- package/dist-types/commands/GetMyProfileCommand.d.ts +7 -5
- package/dist-types/commands/GetPlaceCommand.d.ts +3 -2
- package/dist-types/commands/GetUserByEmailCommand.d.ts +1 -0
- package/dist-types/commands/GetUserCommand.d.ts +1 -0
- package/dist-types/commands/SearchPlacesCommand.d.ts +3 -2
- package/dist-types/commands/SetPasswordCommand.d.ts +107 -0
- package/dist-types/commands/UpsertChatProfileCommand.d.ts +0 -5
- package/dist-types/commands/UpsertMatchingProfileCommand.d.ts +7 -0
- package/dist-types/commands/index.d.ts +2 -0
- package/dist-types/models/models_0.d.ts +106 -35
- package/dist-types/protocols/Aws_restJson1.d.ts +18 -0
- package/dist-types/telemetry/index.d.ts +12 -2
- package/package.json +1 -1
- package/telemetry/TelemetryCatalog.kt +18 -10
- package/telemetry/TelemetryCatalog.swift +25 -10
- package/telemetry/telemetry-catalog.json +151 -14
|
@@ -219,6 +219,12 @@ export const PushTokenKind = {
|
|
|
219
219
|
ALERT: "ALERT",
|
|
220
220
|
VOIP: "VOIP",
|
|
221
221
|
};
|
|
222
|
+
export const UsernameAvailability = {
|
|
223
|
+
AVAILABLE: "AVAILABLE",
|
|
224
|
+
CURRENT: "CURRENT",
|
|
225
|
+
INVALID: "INVALID",
|
|
226
|
+
TAKEN: "TAKEN",
|
|
227
|
+
};
|
|
222
228
|
export const AccountState = {
|
|
223
229
|
ACTIVE: "ACTIVE",
|
|
224
230
|
BANNED: "BANNED",
|
|
@@ -330,6 +330,17 @@ export const se_AuthSocialCommand = async (input, context) => {
|
|
|
330
330
|
.b(body);
|
|
331
331
|
return b.build();
|
|
332
332
|
};
|
|
333
|
+
export const se_CheckUsernameAvailabilityCommand = async (input, context) => {
|
|
334
|
+
const b = rb(input, context);
|
|
335
|
+
const headers = {};
|
|
336
|
+
b.bp("/identity/user/username/availability/{username}");
|
|
337
|
+
b.p('username', () => input.username, '{username}', false);
|
|
338
|
+
let body;
|
|
339
|
+
b.m("GET")
|
|
340
|
+
.h(headers)
|
|
341
|
+
.b(body);
|
|
342
|
+
return b.build();
|
|
343
|
+
};
|
|
333
344
|
export const se_CreateAdminInviteCommand = async (input, context) => {
|
|
334
345
|
const b = rb(input, context);
|
|
335
346
|
const headers = {
|
|
@@ -598,6 +609,21 @@ export const se_SetAccountStateCommand = async (input, context) => {
|
|
|
598
609
|
.b(body);
|
|
599
610
|
return b.build();
|
|
600
611
|
};
|
|
612
|
+
export const se_SetPasswordCommand = async (input, context) => {
|
|
613
|
+
const b = rb(input, context);
|
|
614
|
+
const headers = {
|
|
615
|
+
'content-type': 'application/json',
|
|
616
|
+
};
|
|
617
|
+
b.bp("/identity/user/password");
|
|
618
|
+
let body;
|
|
619
|
+
body = JSON.stringify(take(input, {
|
|
620
|
+
'password': [],
|
|
621
|
+
}));
|
|
622
|
+
b.m("PUT")
|
|
623
|
+
.h(headers)
|
|
624
|
+
.b(body);
|
|
625
|
+
return b.build();
|
|
626
|
+
};
|
|
601
627
|
export const se_SetPreservationHoldCommand = async (input, context) => {
|
|
602
628
|
const b = rb(input, context);
|
|
603
629
|
const headers = {
|
|
@@ -1232,7 +1258,7 @@ export const se_UpsertChatProfileCommand = async (input, context) => {
|
|
|
1232
1258
|
let body;
|
|
1233
1259
|
body = JSON.stringify(take(input, {
|
|
1234
1260
|
'avatarKey': [],
|
|
1235
|
-
'birthDetails': _ =>
|
|
1261
|
+
'birthDetails': _ => _json(_),
|
|
1236
1262
|
'displayName': [],
|
|
1237
1263
|
}));
|
|
1238
1264
|
b.m("PUT")
|
|
@@ -1250,6 +1276,7 @@ export const se_UpsertMatchingProfileCommand = async (input, context) => {
|
|
|
1250
1276
|
body = JSON.stringify(take(input, {
|
|
1251
1277
|
'audioPrompt': [],
|
|
1252
1278
|
'bio': [],
|
|
1279
|
+
'birthTimePlace': _ => se_BirthTimePlace(_, context),
|
|
1253
1280
|
'cannabisStatus': [],
|
|
1254
1281
|
'causes': _ => _json(_),
|
|
1255
1282
|
'communities': _ => _json(_),
|
|
@@ -1973,6 +2000,22 @@ export const de_AuthSocialCommand = async (output, context) => {
|
|
|
1973
2000
|
Object.assign(contents, doc);
|
|
1974
2001
|
return contents;
|
|
1975
2002
|
};
|
|
2003
|
+
export const de_CheckUsernameAvailabilityCommand = async (output, context) => {
|
|
2004
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2005
|
+
return de_CommandError(output, context);
|
|
2006
|
+
}
|
|
2007
|
+
const contents = map({
|
|
2008
|
+
$metadata: deserializeMetadata(output),
|
|
2009
|
+
});
|
|
2010
|
+
const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
|
|
2011
|
+
const doc = take(data, {
|
|
2012
|
+
'reason': __expectString,
|
|
2013
|
+
'status': __expectString,
|
|
2014
|
+
'username': __expectString,
|
|
2015
|
+
});
|
|
2016
|
+
Object.assign(contents, doc);
|
|
2017
|
+
return contents;
|
|
2018
|
+
};
|
|
1976
2019
|
export const de_CreateAdminInviteCommand = async (output, context) => {
|
|
1977
2020
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1978
2021
|
return de_CommandError(output, context);
|
|
@@ -2104,6 +2147,7 @@ export const de_GetUserCommand = async (output, context) => {
|
|
|
2104
2147
|
'email': __expectString,
|
|
2105
2148
|
'googleEmail': __expectString,
|
|
2106
2149
|
'googleId': __expectString,
|
|
2150
|
+
'hasPassword': __expectBoolean,
|
|
2107
2151
|
'phoneNumber': __expectString,
|
|
2108
2152
|
'userId': __expectString,
|
|
2109
2153
|
'userState': __expectString,
|
|
@@ -2127,6 +2171,7 @@ export const de_GetUserByEmailCommand = async (output, context) => {
|
|
|
2127
2171
|
'email': __expectString,
|
|
2128
2172
|
'googleEmail': __expectString,
|
|
2129
2173
|
'googleId': __expectString,
|
|
2174
|
+
'hasPassword': __expectBoolean,
|
|
2130
2175
|
'phoneNumber': __expectString,
|
|
2131
2176
|
'userId': __expectString,
|
|
2132
2177
|
'userState': __expectString,
|
|
@@ -2279,6 +2324,20 @@ export const de_SetAccountStateCommand = async (output, context) => {
|
|
|
2279
2324
|
Object.assign(contents, doc);
|
|
2280
2325
|
return contents;
|
|
2281
2326
|
};
|
|
2327
|
+
export const de_SetPasswordCommand = async (output, context) => {
|
|
2328
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2329
|
+
return de_CommandError(output, context);
|
|
2330
|
+
}
|
|
2331
|
+
const contents = map({
|
|
2332
|
+
$metadata: deserializeMetadata(output),
|
|
2333
|
+
});
|
|
2334
|
+
const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
|
|
2335
|
+
const doc = take(data, {
|
|
2336
|
+
'status': __expectString,
|
|
2337
|
+
});
|
|
2338
|
+
Object.assign(contents, doc);
|
|
2339
|
+
return contents;
|
|
2340
|
+
};
|
|
2282
2341
|
export const de_SetPreservationHoldCommand = async (output, context) => {
|
|
2283
2342
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2284
2343
|
return de_CommandError(output, context);
|
|
@@ -2872,7 +2931,7 @@ export const de_GetChatProfileCommand = async (output, context) => {
|
|
|
2872
2931
|
'age': __expectInt32,
|
|
2873
2932
|
'avatarKey': __expectString,
|
|
2874
2933
|
'birthDateOnFile': __expectBoolean,
|
|
2875
|
-
'birthDetails':
|
|
2934
|
+
'birthDetails': _json,
|
|
2876
2935
|
'displayName': __expectString,
|
|
2877
2936
|
'fieldModerationStatus': _json,
|
|
2878
2937
|
'moderationStatus': __expectString,
|
|
@@ -2961,6 +3020,7 @@ export const de_GetMatchingProfileCommand = async (output, context) => {
|
|
|
2961
3020
|
'age': __expectInt32,
|
|
2962
3021
|
'audioPrompt': __expectString,
|
|
2963
3022
|
'bio': __expectString,
|
|
3023
|
+
'birthTimePlace': _ => de_BirthTimePlace(_, context),
|
|
2964
3024
|
'cannabisStatus': __expectString,
|
|
2965
3025
|
'causes': _json,
|
|
2966
3026
|
'communities': _json,
|
|
@@ -3029,8 +3089,8 @@ export const de_GetMyProfileCommand = async (output, context) => {
|
|
|
3029
3089
|
});
|
|
3030
3090
|
const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
|
|
3031
3091
|
const doc = take(data, {
|
|
3032
|
-
'chat':
|
|
3033
|
-
'matching':
|
|
3092
|
+
'chat': _json,
|
|
3093
|
+
'matching': _ => de_MatchingProfile(_, context),
|
|
3034
3094
|
});
|
|
3035
3095
|
Object.assign(contents, doc);
|
|
3036
3096
|
return contents;
|
|
@@ -3887,13 +3947,11 @@ const se_VariantOverrides = (input, context) => {
|
|
|
3887
3947
|
return acc;
|
|
3888
3948
|
}, {});
|
|
3889
3949
|
};
|
|
3890
|
-
const
|
|
3950
|
+
const se_BirthTimePlace = (input, context) => {
|
|
3891
3951
|
return take(input, {
|
|
3892
|
-
'date': [],
|
|
3893
3952
|
'latitude': __serializeFloat,
|
|
3894
3953
|
'longitude': __serializeFloat,
|
|
3895
3954
|
'placeName': [],
|
|
3896
|
-
'provisional': [],
|
|
3897
3955
|
'time': [],
|
|
3898
3956
|
'timeZone': [],
|
|
3899
3957
|
});
|
|
@@ -4038,27 +4096,61 @@ const de_CandidateList = (output, context) => {
|
|
|
4038
4096
|
});
|
|
4039
4097
|
return retVal;
|
|
4040
4098
|
};
|
|
4041
|
-
const
|
|
4099
|
+
const de_BirthTimePlace = (output, context) => {
|
|
4042
4100
|
return take(output, {
|
|
4043
|
-
'date': __expectString,
|
|
4044
4101
|
'latitude': __limitedParseDouble,
|
|
4045
4102
|
'longitude': __limitedParseDouble,
|
|
4046
4103
|
'placeName': __expectString,
|
|
4047
|
-
'provisional': __expectBoolean,
|
|
4048
4104
|
'time': __expectString,
|
|
4049
4105
|
'timeZone': __expectString,
|
|
4050
4106
|
});
|
|
4051
4107
|
};
|
|
4052
|
-
const
|
|
4108
|
+
const de_MatchingProfile = (output, context) => {
|
|
4053
4109
|
return take(output, {
|
|
4054
4110
|
'age': __expectInt32,
|
|
4055
|
-
'
|
|
4056
|
-
'
|
|
4057
|
-
'
|
|
4111
|
+
'audioPrompt': __expectString,
|
|
4112
|
+
'bio': __expectString,
|
|
4113
|
+
'birthTimePlace': (_) => de_BirthTimePlace(_, context),
|
|
4114
|
+
'cannabisStatus': __expectString,
|
|
4115
|
+
'causes': _json,
|
|
4116
|
+
'communities': _json,
|
|
4117
|
+
'currentLocation': __expectString,
|
|
4058
4118
|
'displayName': __expectString,
|
|
4119
|
+
'draftExpiresAt': __expectLong,
|
|
4120
|
+
'drinkingStatus': __expectString,
|
|
4121
|
+
'drugsStatus': __expectString,
|
|
4122
|
+
'education': __expectString,
|
|
4123
|
+
'educationLevel': __expectString,
|
|
4124
|
+
'exercise': __expectString,
|
|
4125
|
+
'familyPlans': __expectString,
|
|
4059
4126
|
'fieldModerationStatus': _json,
|
|
4127
|
+
'gender': __expectString,
|
|
4128
|
+
'generation': __expectLong,
|
|
4129
|
+
'height': __expectInt32,
|
|
4130
|
+
'hometown': __expectString,
|
|
4131
|
+
'interestedIn': _json,
|
|
4132
|
+
'interests': _json,
|
|
4133
|
+
'languages': _json,
|
|
4134
|
+
'lastEditedAt': __expectLong,
|
|
4060
4135
|
'moderationStatus': __expectString,
|
|
4136
|
+
'openers': _json,
|
|
4137
|
+
'pictureTransforms': _json,
|
|
4138
|
+
'pictures': _json,
|
|
4139
|
+
'politicalView': __expectString,
|
|
4140
|
+
'prompts': _json,
|
|
4141
|
+
'qualities': _json,
|
|
4142
|
+
'relationshipType': __expectString,
|
|
4143
|
+
'religion': __expectString,
|
|
4144
|
+
'smokingStatus': __expectString,
|
|
4145
|
+
'socialLinks': _json,
|
|
4146
|
+
'starSign': __expectString,
|
|
4147
|
+
'status': __expectString,
|
|
4148
|
+
'subscriptionTier': __expectString,
|
|
4061
4149
|
'userId': __expectString,
|
|
4150
|
+
'verified': __expectBoolean,
|
|
4151
|
+
'videos': _json,
|
|
4152
|
+
'wantsKids': __expectString,
|
|
4153
|
+
'work': __expectString,
|
|
4062
4154
|
});
|
|
4063
4155
|
};
|
|
4064
4156
|
const deserializeMetadata = (output) => ({
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export const TELEMETRY_CATALOG_VERSION = "1.
|
|
2
|
-
export const TELEMETRY_CATALOG_HASH = "
|
|
1
|
+
export const TELEMETRY_CATALOG_VERSION = "1.16.0";
|
|
2
|
+
export const TELEMETRY_CATALOG_HASH = "3d27632e55e2d44f";
|
|
3
3
|
export const SignalType = {
|
|
4
4
|
SCREEN_VIEW: "screen_view",
|
|
5
5
|
UI_INTERACTION: "ui_interaction",
|
|
@@ -35,6 +35,7 @@ export const Screen = {
|
|
|
35
35
|
ADMISSIONS_STATUS: "ADMISSIONS_STATUS",
|
|
36
36
|
ONBOARDING: "ONBOARDING",
|
|
37
37
|
DISCOVER: "DISCOVER",
|
|
38
|
+
MATCHING_INTRO: "MATCHING_INTRO",
|
|
38
39
|
LIKE_COMPOSER: "LIKE_COMPOSER",
|
|
39
40
|
LIKES_YOU: "LIKES_YOU",
|
|
40
41
|
CHAT: "CHAT",
|
|
@@ -62,6 +63,7 @@ export const ViewableScreen = {
|
|
|
62
63
|
ADMISSIONS_STATUS: "ADMISSIONS_STATUS",
|
|
63
64
|
ONBOARDING: "ONBOARDING",
|
|
64
65
|
DISCOVER: "DISCOVER",
|
|
66
|
+
MATCHING_INTRO: "MATCHING_INTRO",
|
|
65
67
|
LIKE_COMPOSER: "LIKE_COMPOSER",
|
|
66
68
|
LIKES_YOU: "LIKES_YOU",
|
|
67
69
|
CHAT: "CHAT",
|
|
@@ -85,6 +87,7 @@ export const TabScreen = {
|
|
|
85
87
|
LIKES_YOU: "LIKES_YOU",
|
|
86
88
|
CHAT: "CHAT",
|
|
87
89
|
PROFILE: "PROFILE",
|
|
90
|
+
MATCHING_INTRO: "MATCHING_INTRO",
|
|
88
91
|
};
|
|
89
92
|
export const UiAction = {
|
|
90
93
|
TAP: "tap",
|
|
@@ -249,6 +252,9 @@ export const UiElement = {
|
|
|
249
252
|
ADMISSIONS_STATUS_WITHDRAW: "admissions_status.withdraw",
|
|
250
253
|
ADMISSIONS_STATUS_TRAINING_OPT_OUT: "admissions_status.training_opt_out",
|
|
251
254
|
ONBOARDING_NEXT: "onboarding.next",
|
|
255
|
+
ONBOARDING_STEP_SKIP: "onboarding.step_skip",
|
|
256
|
+
ONBOARDING_SOCIAL_LINK: "onboarding.social_link",
|
|
257
|
+
ONBOARDING_RECOVERY_SETUP: "onboarding.recovery_setup",
|
|
252
258
|
ONBOARDING_BACK: "onboarding.back",
|
|
253
259
|
ONBOARDING_FINISH: "onboarding.finish",
|
|
254
260
|
ONBOARDING_SKIP_SIGN_OUT: "onboarding.skip_sign_out",
|
|
@@ -261,6 +267,8 @@ export const UiElement = {
|
|
|
261
267
|
ONBOARDING_VOICE_ADD: "onboarding.voice_add",
|
|
262
268
|
ONBOARDING_VOICE_REMOVE: "onboarding.voice_remove",
|
|
263
269
|
ONBOARDING_CHOICE_SELECT: "onboarding.choice_select",
|
|
270
|
+
MATCHING_INTRO_TURN_ON: "matching_intro.turn_on",
|
|
271
|
+
MATCHING_INTRO_SHOULD_I_JOIN: "matching_intro.should_i_join",
|
|
264
272
|
DISCOVER_PASS_BUTTON: "discover.pass_button",
|
|
265
273
|
DISCOVER_LIKE_BUTTON: "discover.like_button",
|
|
266
274
|
DISCOVER_ROSE_BUTTON: "discover.rose_button",
|
|
@@ -376,6 +384,8 @@ export const UiElement = {
|
|
|
376
384
|
NOTIFICATIONS_ITEM_OPEN: "notifications.item_open",
|
|
377
385
|
NOTIFICATIONS_ITEM_DISMISS: "notifications.item_dismiss",
|
|
378
386
|
PROFILE_EDIT_OPEN: "profile.edit_open",
|
|
387
|
+
PROFILE_MATCHING_OPEN: "profile.matching_open",
|
|
388
|
+
PROFILE_RECOVERY_OPEN: "profile.recovery_open",
|
|
379
389
|
PROFILE_PREVIEW_OPEN: "profile.preview_open",
|
|
380
390
|
PROFILE_PREFERENCES_OPEN: "profile.preferences_open",
|
|
381
391
|
PROFILE_SETTINGS_OPEN: "profile.settings_open",
|
|
@@ -467,7 +477,7 @@ export const UiElement = {
|
|
|
467
477
|
LIVENESS_CLOSE: "liveness.close",
|
|
468
478
|
};
|
|
469
479
|
export const UI_ELEMENTS = {
|
|
470
|
-
"nav.tab_select": { screen: "NAV", kind: "tab", actions: ["select"], values: ["DISCOVER", "LIKES_YOU", "CHAT", "PROFILE"], platforms: ["web", "ios", "android"] },
|
|
480
|
+
"nav.tab_select": { screen: "NAV", kind: "tab", actions: ["select"], values: ["DISCOVER", "LIKES_YOU", "CHAT", "PROFILE", "MATCHING_INTRO"], platforms: ["web", "ios", "android"] },
|
|
471
481
|
"nav.search_open": { screen: "NAV", kind: "button", actions: ["tap", "dismiss"], values: null, platforms: ["web"] },
|
|
472
482
|
"nav.menu_open": { screen: "NAV", kind: "button", actions: ["tap", "dismiss"], values: null, platforms: ["web"] },
|
|
473
483
|
"nav.back": { screen: "NAV", kind: "button", actions: ["tap"], values: null, platforms: ["web"] },
|
|
@@ -493,7 +503,7 @@ export const UI_ELEMENTS = {
|
|
|
493
503
|
"login.google": { screen: "LOGIN", kind: "button", actions: ["tap"], values: null, platforms: ["web", "ios", "android"] },
|
|
494
504
|
"login.apple": { screen: "LOGIN", kind: "button", actions: ["tap"], values: null, platforms: ["web", "ios"] },
|
|
495
505
|
"login.passkey": { screen: "LOGIN", kind: "button", actions: ["tap"], values: null, platforms: ["ios"] },
|
|
496
|
-
"login.identifier_mode": { screen: "LOGIN", kind: "toggle", actions: ["toggle"], values: ["phone", "email"], platforms: ["web", "ios", "android"] },
|
|
506
|
+
"login.identifier_mode": { screen: "LOGIN", kind: "toggle", actions: ["toggle"], values: ["phone", "email", "username"], platforms: ["web", "ios", "android"] },
|
|
497
507
|
"login.password_mode": { screen: "LOGIN", kind: "toggle", actions: ["toggle"], values: ["password", "otp"], platforms: ["web", "ios", "android"] },
|
|
498
508
|
"login.forgot_password": { screen: "LOGIN", kind: "link", actions: ["tap"], values: null, platforms: ["web", "ios", "android"] },
|
|
499
509
|
"login.resend_code": { screen: "LOGIN", kind: "link", actions: ["tap"], values: null, platforms: ["web", "ios"] },
|
|
@@ -521,8 +531,11 @@ export const UI_ELEMENTS = {
|
|
|
521
531
|
"admissions_status.continue_invite": { screen: "ADMISSIONS_STATUS", kind: "button", actions: ["tap"], values: null, platforms: ["ios", "android"] },
|
|
522
532
|
"admissions_status.withdraw": { screen: "ADMISSIONS_STATUS", kind: "button", actions: ["tap"], values: null, platforms: ["ios", "android"] },
|
|
523
533
|
"admissions_status.training_opt_out": { screen: "ADMISSIONS_STATUS", kind: "button", actions: ["tap"], values: null, platforms: ["ios", "android"] },
|
|
524
|
-
"onboarding.next": { screen: "ONBOARDING", kind: "button", actions: ["submit"], values: ["basics", "photos", "media", "prompts", "details"], platforms: ["web", "ios"] },
|
|
525
|
-
"onboarding.
|
|
534
|
+
"onboarding.next": { screen: "ONBOARDING", kind: "button", actions: ["submit"], values: ["basics", "photos", "media", "prompts", "details", "username", "password", "social", "recovery"], platforms: ["web", "ios", "android"] },
|
|
535
|
+
"onboarding.step_skip": { screen: "ONBOARDING", kind: "button", actions: ["tap"], values: ["password", "social", "recovery"], platforms: ["web", "ios", "android"] },
|
|
536
|
+
"onboarding.social_link": { screen: "ONBOARDING", kind: "button", actions: ["tap", "dismiss"], values: ["apple", "google"], platforms: ["web", "ios", "android"] },
|
|
537
|
+
"onboarding.recovery_setup": { screen: "ONBOARDING", kind: "button", actions: ["tap", "dismiss"], values: null, platforms: ["web", "ios", "android"] },
|
|
538
|
+
"onboarding.back": { screen: "ONBOARDING", kind: "button", actions: ["tap"], values: null, platforms: ["web", "ios", "android"] },
|
|
526
539
|
"onboarding.finish": { screen: "ONBOARDING", kind: "button", actions: ["submit"], values: null, platforms: ["web", "ios", "android"] },
|
|
527
540
|
"onboarding.skip_sign_out": { screen: "ONBOARDING", kind: "button", actions: ["tap"], values: null, platforms: ["web", "ios", "android"] },
|
|
528
541
|
"onboarding.skip_sign_out_confirm": { screen: "ONBOARDING", kind: "dialog_button", actions: ["submit", "dismiss"], values: null, platforms: ["ios", "android"] },
|
|
@@ -534,6 +547,8 @@ export const UI_ELEMENTS = {
|
|
|
534
547
|
"onboarding.voice_add": { screen: "ONBOARDING", kind: "button", actions: ["tap"], values: null, platforms: [] },
|
|
535
548
|
"onboarding.voice_remove": { screen: "ONBOARDING", kind: "button", actions: ["tap"], values: null, platforms: [] },
|
|
536
549
|
"onboarding.choice_select": { screen: "ONBOARDING", kind: "segmented", actions: ["select", "tap"], values: null, platforms: ["web", "ios", "android"] },
|
|
550
|
+
"matching_intro.turn_on": { screen: "MATCHING_INTRO", kind: "button", actions: ["tap"], values: null, platforms: ["web", "ios", "android"] },
|
|
551
|
+
"matching_intro.should_i_join": { screen: "MATCHING_INTRO", kind: "button", actions: ["tap", "dismiss"], values: null, platforms: ["web", "ios", "android"] },
|
|
537
552
|
"discover.pass_button": { screen: "DISCOVER", kind: "button", actions: ["tap"], values: null, platforms: ["web", "ios", "android"] },
|
|
538
553
|
"discover.like_button": { screen: "DISCOVER", kind: "button", actions: ["tap"], values: null, platforms: ["android"] },
|
|
539
554
|
"discover.rose_button": { screen: "DISCOVER", kind: "button", actions: ["tap"], values: null, platforms: ["web", "ios", "android"] },
|
|
@@ -630,7 +645,7 @@ export const UI_ELEMENTS = {
|
|
|
630
645
|
"chat.intro_get_started": { screen: "CHAT", kind: "button", actions: ["tap"], values: null, platforms: ["ios"] },
|
|
631
646
|
"chat.history_recover_method": { screen: "CHAT", kind: "menu_item", actions: ["tap", "dismiss"], values: ["device", "qr_scan", "qr_import", "passkey"], platforms: ["web", "ios", "android"] },
|
|
632
647
|
"chat.history_recover_step": { screen: "CHAT", kind: "menu_item", actions: ["tap"], values: ["retry", "qr_retry", "done", "reset_open", "cancel"], platforms: ["web", "ios", "android"] },
|
|
633
|
-
"chat.history_reset_confirm": { screen: "CHAT", kind: "dialog_button", actions: ["submit", "dismiss"], values: null, platforms: ["
|
|
648
|
+
"chat.history_reset_confirm": { screen: "CHAT", kind: "dialog_button", actions: ["submit", "dismiss"], values: null, platforms: ["ios", "android"] },
|
|
634
649
|
"chat_settings.last_seen_select": { screen: "CHAT_SETTINGS", kind: "segmented", actions: ["select", "tap"], values: null, platforms: ["web", "ios"] },
|
|
635
650
|
"chat_settings.disappearing_select": { screen: "CHAT_SETTINGS", kind: "segmented", actions: ["select", "tap"], values: null, platforms: ["web", "ios"] },
|
|
636
651
|
"chat_settings.notification_toggle": { screen: "CHAT_SETTINGS", kind: "toggle", actions: ["toggle"], values: ["on", "off"], platforms: ["web", "ios", "android"] },
|
|
@@ -649,6 +664,8 @@ export const UI_ELEMENTS = {
|
|
|
649
664
|
"notifications.item_open": { screen: "NOTIFICATIONS", kind: "list_item", actions: ["tap"], values: null, platforms: ["ios"] },
|
|
650
665
|
"notifications.item_dismiss": { screen: "NOTIFICATIONS", kind: "gesture", actions: ["dismiss"], values: null, platforms: ["ios"] },
|
|
651
666
|
"profile.edit_open": { screen: "PROFILE", kind: "button", actions: ["tap", "dismiss"], values: null, platforms: ["ios", "android"] },
|
|
667
|
+
"profile.matching_open": { screen: "PROFILE", kind: "button", actions: ["tap"], values: null, platforms: ["web", "ios", "android"] },
|
|
668
|
+
"profile.recovery_open": { screen: "PROFILE", kind: "button", actions: ["tap", "dismiss"], values: null, platforms: ["web", "ios", "android"] },
|
|
652
669
|
"profile.preview_open": { screen: "PROFILE", kind: "button", actions: ["tap", "dismiss"], values: null, platforms: ["web", "ios"] },
|
|
653
670
|
"profile.preferences_open": { screen: "PROFILE", kind: "button", actions: ["tap"], values: null, platforms: ["ios", "android"] },
|
|
654
671
|
"profile.settings_open": { screen: "PROFILE", kind: "button", actions: ["tap"], values: null, platforms: ["web"] },
|
package/dist-types/OneHook.d.ts
CHANGED
|
@@ -3,6 +3,7 @@ import { AcceptHookRequestCommandInput, AcceptHookRequestCommandOutput } from ".
|
|
|
3
3
|
import { AuthSocialCommandInput, AuthSocialCommandOutput } from "./commands/AuthSocialCommand";
|
|
4
4
|
import { BlockUserCommandInput, BlockUserCommandOutput } from "./commands/BlockUserCommand";
|
|
5
5
|
import { CancelHookRequestCommandInput, CancelHookRequestCommandOutput } from "./commands/CancelHookRequestCommand";
|
|
6
|
+
import { CheckUsernameAvailabilityCommandInput, CheckUsernameAvailabilityCommandOutput } from "./commands/CheckUsernameAvailabilityCommand";
|
|
6
7
|
import { ClearTierOverrideCommandInput, ClearTierOverrideCommandOutput } from "./commands/ClearTierOverrideCommand";
|
|
7
8
|
import { CompleteLivenessSessionCommandInput, CompleteLivenessSessionCommandOutput } from "./commands/CompleteLivenessSessionCommand";
|
|
8
9
|
import { CompleteOnboardingCommandInput, CompleteOnboardingCommandOutput } from "./commands/CompleteOnboardingCommand";
|
|
@@ -93,6 +94,7 @@ import { SearchPlacesCommandInput, SearchPlacesCommandOutput } from "./commands/
|
|
|
93
94
|
import { SendAdminLinkOtpCommandInput, SendAdminLinkOtpCommandOutput } from "./commands/SendAdminLinkOtpCommand";
|
|
94
95
|
import { SendHookRequestCommandInput, SendHookRequestCommandOutput } from "./commands/SendHookRequestCommand";
|
|
95
96
|
import { SetAccountStateCommandInput, SetAccountStateCommandOutput } from "./commands/SetAccountStateCommand";
|
|
97
|
+
import { SetPasswordCommandInput, SetPasswordCommandOutput } from "./commands/SetPasswordCommand";
|
|
96
98
|
import { SetPreservationHoldCommandInput, SetPreservationHoldCommandOutput } from "./commands/SetPreservationHoldCommand";
|
|
97
99
|
import { SetTierOverrideCommandInput, SetTierOverrideCommandOutput } from "./commands/SetTierOverrideCommand";
|
|
98
100
|
import { SimulateScoringPolicyCommandInput, SimulateScoringPolicyCommandOutput } from "./commands/SimulateScoringPolicyCommand";
|
|
@@ -258,6 +260,12 @@ export interface OneHook {
|
|
|
258
260
|
authSocial(args: AuthSocialCommandInput, options?: __HttpHandlerOptions): Promise<AuthSocialCommandOutput>;
|
|
259
261
|
authSocial(args: AuthSocialCommandInput, cb: (err: any, data?: AuthSocialCommandOutput) => void): void;
|
|
260
262
|
authSocial(args: AuthSocialCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: AuthSocialCommandOutput) => void): void;
|
|
263
|
+
/**
|
|
264
|
+
* @see {@link CheckUsernameAvailabilityCommand}
|
|
265
|
+
*/
|
|
266
|
+
checkUsernameAvailability(args: CheckUsernameAvailabilityCommandInput, options?: __HttpHandlerOptions): Promise<CheckUsernameAvailabilityCommandOutput>;
|
|
267
|
+
checkUsernameAvailability(args: CheckUsernameAvailabilityCommandInput, cb: (err: any, data?: CheckUsernameAvailabilityCommandOutput) => void): void;
|
|
268
|
+
checkUsernameAvailability(args: CheckUsernameAvailabilityCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CheckUsernameAvailabilityCommandOutput) => void): void;
|
|
261
269
|
/**
|
|
262
270
|
* @see {@link CreateAdminInviteCommand}
|
|
263
271
|
*/
|
|
@@ -372,6 +380,12 @@ export interface OneHook {
|
|
|
372
380
|
setAccountState(args: SetAccountStateCommandInput, options?: __HttpHandlerOptions): Promise<SetAccountStateCommandOutput>;
|
|
373
381
|
setAccountState(args: SetAccountStateCommandInput, cb: (err: any, data?: SetAccountStateCommandOutput) => void): void;
|
|
374
382
|
setAccountState(args: SetAccountStateCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: SetAccountStateCommandOutput) => void): void;
|
|
383
|
+
/**
|
|
384
|
+
* @see {@link SetPasswordCommand}
|
|
385
|
+
*/
|
|
386
|
+
setPassword(args: SetPasswordCommandInput, options?: __HttpHandlerOptions): Promise<SetPasswordCommandOutput>;
|
|
387
|
+
setPassword(args: SetPasswordCommandInput, cb: (err: any, data?: SetPasswordCommandOutput) => void): void;
|
|
388
|
+
setPassword(args: SetPasswordCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: SetPasswordCommandOutput) => void): void;
|
|
375
389
|
/**
|
|
376
390
|
* @see {@link SetPreservationHoldCommand}
|
|
377
391
|
*/
|
|
@@ -3,6 +3,7 @@ import { AcceptHookRequestCommandInput, AcceptHookRequestCommandOutput } from ".
|
|
|
3
3
|
import { AuthSocialCommandInput, AuthSocialCommandOutput } from "./commands/AuthSocialCommand";
|
|
4
4
|
import { BlockUserCommandInput, BlockUserCommandOutput } from "./commands/BlockUserCommand";
|
|
5
5
|
import { CancelHookRequestCommandInput, CancelHookRequestCommandOutput } from "./commands/CancelHookRequestCommand";
|
|
6
|
+
import { CheckUsernameAvailabilityCommandInput, CheckUsernameAvailabilityCommandOutput } from "./commands/CheckUsernameAvailabilityCommand";
|
|
6
7
|
import { ClearTierOverrideCommandInput, ClearTierOverrideCommandOutput } from "./commands/ClearTierOverrideCommand";
|
|
7
8
|
import { CompleteLivenessSessionCommandInput, CompleteLivenessSessionCommandOutput } from "./commands/CompleteLivenessSessionCommand";
|
|
8
9
|
import { CompleteOnboardingCommandInput, CompleteOnboardingCommandOutput } from "./commands/CompleteOnboardingCommand";
|
|
@@ -93,6 +94,7 @@ import { SearchPlacesCommandInput, SearchPlacesCommandOutput } from "./commands/
|
|
|
93
94
|
import { SendAdminLinkOtpCommandInput, SendAdminLinkOtpCommandOutput } from "./commands/SendAdminLinkOtpCommand";
|
|
94
95
|
import { SendHookRequestCommandInput, SendHookRequestCommandOutput } from "./commands/SendHookRequestCommand";
|
|
95
96
|
import { SetAccountStateCommandInput, SetAccountStateCommandOutput } from "./commands/SetAccountStateCommand";
|
|
97
|
+
import { SetPasswordCommandInput, SetPasswordCommandOutput } from "./commands/SetPasswordCommand";
|
|
96
98
|
import { SetPreservationHoldCommandInput, SetPreservationHoldCommandOutput } from "./commands/SetPreservationHoldCommand";
|
|
97
99
|
import { SetTierOverrideCommandInput, SetTierOverrideCommandOutput } from "./commands/SetTierOverrideCommand";
|
|
98
100
|
import { SimulateScoringPolicyCommandInput, SimulateScoringPolicyCommandOutput } from "./commands/SimulateScoringPolicyCommand";
|
|
@@ -124,11 +126,11 @@ export { __Client };
|
|
|
124
126
|
/**
|
|
125
127
|
* @public
|
|
126
128
|
*/
|
|
127
|
-
export type ServiceInputTypes = AcceptHookRequestCommandInput | AuthSocialCommandInput | BlockUserCommandInput | CancelHookRequestCommandInput | ClearTierOverrideCommandInput | CompleteLivenessSessionCommandInput | CompleteOnboardingCommandInput | CorrectBirthDateCommandInput | CreateAdminInviteCommandInput | CreateLivenessSessionCommandInput | CreateMediaDownloadUrlCommandInput | CreateMediaUploadUrlCommandInput | DeclineHookRequestCommandInput | DeleteMatchMessagesCommandInput | DeleteProfileCommandInput | DeletePushTokenCommandInput | DisableMatchingCommandInput | DiscoverCommandInput | EnableMatchingCommandInput | EstablishHistoryEpochCommandInput | GenerateDownloadUrlCommandInput | GenerateInviteCommandInput | GenerateUploadUrlCommandInput | GetAccountStateCommandInput | GetAdminPhoneStatusCommandInput | GetAiContextMatchCommandInput | GetBirthDateStatusCommandInput | GetChatProfileCommandInput | GetChatSettingsCommandInput | GetCredentialReadinessCommandInput | GetDiscoverySnapshotCommandInput | GetGraphInvitesCommandInput | GetGraphMatchCommandInput | GetGraphUserCommandInput | GetHistoryStateCommandInput | GetInternalMatchingStatusCommandInput | GetInternalProfileCommandInput | GetInviteEdgesCommandInput | GetLivenessStatusCommandInput | GetMatchCommandInput | GetMatchingProfileCommandInput | GetMatchingReadinessCommandInput | GetMediaStatsCommandInput | GetModerationReportCommandInput | GetModerationSignalsCommandInput | GetMyProfileCommandInput | GetParticipantRegistryCommandInput | GetPartnerDistanceCommandInput | GetPlaceCommandInput | GetPreferencesCommandInput | GetPreservationHoldCommandInput | GetReceivedLikesCommandInput | GetRosesCommandInput | GetScoringPolicyCommandInput | GetStateCommandInput | GetSuggestionsCommandInput | GetTierOverrideCommandInput | GetTraditionPreferencesCommandInput | GetUserByEmailCommandInput | GetUserCommandInput | GetUserIdByUsernameCommandInput | IndexLocationCommandInput | IngestSignalsCommandInput | InitUserCommandInput | IssueViewPassesCommandInput | KeepHooksCommandInput | LinkEmailCommandInput | LinkSocialCommandInput | ListBlocksCommandInput | ListGraphUserMatchesCommandInput | ListHookRequestsCommandInput | ListMatchingOnMembersCommandInput | ListMyDevicesCommandInput | PutHistoryWrapCommandInput | RecordSuggestionCommandInput | RecordSuggestionInternalCommandInput | RegisterDeviceCommandInput | RegisterPhoneCommandInput | RegisterPushTokenCommandInput | RemoveLocationCommandInput | RemoveOneHookSuggestionCommandInput | RemoveSuggestionCommandInput | ReportMemberCommandInput | RepublishMatchingProfileCommandInput | RequestEmailOtpCommandInput | RequestPhoneOtpCommandInput | RequestPhoneUpdateOtpCommandInput | RevokeDeviceCommandInput | RevokeHistoryWrapCommandInput | RevokeUserAccessCommandInput | SearchPlacesCommandInput | SendAdminLinkOtpCommandInput | SendHookRequestCommandInput | SetAccountStateCommandInput | SetPreservationHoldCommandInput | SetTierOverrideCommandInput | SimulateScoringPolicyCommandInput | SwipeCommandInput | UnblockUserCommandInput | UnhookCommandInput | UnlinkSocialCommandInput | UpdateChatSettingsCommandInput | UpdateEntitlementsCommandInput | UpdatePhoneNumberCommandInput | UpdatePreferencesCommandInput | UpdateScoringPolicyCommandInput | UpdateTraditionPreferencesCommandInput | UpdateUsernameCommandInput | UpgradeUserCommandInput | UpsertChatProfileCommandInput | UpsertMatchingProfileCommandInput | ValidateInviteCommandInput | VerifyAdminLinkOtpCommandInput;
|
|
129
|
+
export type ServiceInputTypes = AcceptHookRequestCommandInput | AuthSocialCommandInput | BlockUserCommandInput | CancelHookRequestCommandInput | CheckUsernameAvailabilityCommandInput | ClearTierOverrideCommandInput | CompleteLivenessSessionCommandInput | CompleteOnboardingCommandInput | CorrectBirthDateCommandInput | CreateAdminInviteCommandInput | CreateLivenessSessionCommandInput | CreateMediaDownloadUrlCommandInput | CreateMediaUploadUrlCommandInput | DeclineHookRequestCommandInput | DeleteMatchMessagesCommandInput | DeleteProfileCommandInput | DeletePushTokenCommandInput | DisableMatchingCommandInput | DiscoverCommandInput | EnableMatchingCommandInput | EstablishHistoryEpochCommandInput | GenerateDownloadUrlCommandInput | GenerateInviteCommandInput | GenerateUploadUrlCommandInput | GetAccountStateCommandInput | GetAdminPhoneStatusCommandInput | GetAiContextMatchCommandInput | GetBirthDateStatusCommandInput | GetChatProfileCommandInput | GetChatSettingsCommandInput | GetCredentialReadinessCommandInput | GetDiscoverySnapshotCommandInput | GetGraphInvitesCommandInput | GetGraphMatchCommandInput | GetGraphUserCommandInput | GetHistoryStateCommandInput | GetInternalMatchingStatusCommandInput | GetInternalProfileCommandInput | GetInviteEdgesCommandInput | GetLivenessStatusCommandInput | GetMatchCommandInput | GetMatchingProfileCommandInput | GetMatchingReadinessCommandInput | GetMediaStatsCommandInput | GetModerationReportCommandInput | GetModerationSignalsCommandInput | GetMyProfileCommandInput | GetParticipantRegistryCommandInput | GetPartnerDistanceCommandInput | GetPlaceCommandInput | GetPreferencesCommandInput | GetPreservationHoldCommandInput | GetReceivedLikesCommandInput | GetRosesCommandInput | GetScoringPolicyCommandInput | GetStateCommandInput | GetSuggestionsCommandInput | GetTierOverrideCommandInput | GetTraditionPreferencesCommandInput | GetUserByEmailCommandInput | GetUserCommandInput | GetUserIdByUsernameCommandInput | IndexLocationCommandInput | IngestSignalsCommandInput | InitUserCommandInput | IssueViewPassesCommandInput | KeepHooksCommandInput | LinkEmailCommandInput | LinkSocialCommandInput | ListBlocksCommandInput | ListGraphUserMatchesCommandInput | ListHookRequestsCommandInput | ListMatchingOnMembersCommandInput | ListMyDevicesCommandInput | PutHistoryWrapCommandInput | RecordSuggestionCommandInput | RecordSuggestionInternalCommandInput | RegisterDeviceCommandInput | RegisterPhoneCommandInput | RegisterPushTokenCommandInput | RemoveLocationCommandInput | RemoveOneHookSuggestionCommandInput | RemoveSuggestionCommandInput | ReportMemberCommandInput | RepublishMatchingProfileCommandInput | RequestEmailOtpCommandInput | RequestPhoneOtpCommandInput | RequestPhoneUpdateOtpCommandInput | RevokeDeviceCommandInput | RevokeHistoryWrapCommandInput | RevokeUserAccessCommandInput | SearchPlacesCommandInput | SendAdminLinkOtpCommandInput | SendHookRequestCommandInput | SetAccountStateCommandInput | SetPasswordCommandInput | SetPreservationHoldCommandInput | SetTierOverrideCommandInput | SimulateScoringPolicyCommandInput | SwipeCommandInput | UnblockUserCommandInput | UnhookCommandInput | UnlinkSocialCommandInput | UpdateChatSettingsCommandInput | UpdateEntitlementsCommandInput | UpdatePhoneNumberCommandInput | UpdatePreferencesCommandInput | UpdateScoringPolicyCommandInput | UpdateTraditionPreferencesCommandInput | UpdateUsernameCommandInput | UpgradeUserCommandInput | UpsertChatProfileCommandInput | UpsertMatchingProfileCommandInput | ValidateInviteCommandInput | VerifyAdminLinkOtpCommandInput;
|
|
128
130
|
/**
|
|
129
131
|
* @public
|
|
130
132
|
*/
|
|
131
|
-
export type ServiceOutputTypes = AcceptHookRequestCommandOutput | AuthSocialCommandOutput | BlockUserCommandOutput | CancelHookRequestCommandOutput | ClearTierOverrideCommandOutput | CompleteLivenessSessionCommandOutput | CompleteOnboardingCommandOutput | CorrectBirthDateCommandOutput | CreateAdminInviteCommandOutput | CreateLivenessSessionCommandOutput | CreateMediaDownloadUrlCommandOutput | CreateMediaUploadUrlCommandOutput | DeclineHookRequestCommandOutput | DeleteMatchMessagesCommandOutput | DeleteProfileCommandOutput | DeletePushTokenCommandOutput | DisableMatchingCommandOutput | DiscoverCommandOutput | EnableMatchingCommandOutput | EstablishHistoryEpochCommandOutput | GenerateDownloadUrlCommandOutput | GenerateInviteCommandOutput | GenerateUploadUrlCommandOutput | GetAccountStateCommandOutput | GetAdminPhoneStatusCommandOutput | GetAiContextMatchCommandOutput | GetBirthDateStatusCommandOutput | GetChatProfileCommandOutput | GetChatSettingsCommandOutput | GetCredentialReadinessCommandOutput | GetDiscoverySnapshotCommandOutput | GetGraphInvitesCommandOutput | GetGraphMatchCommandOutput | GetGraphUserCommandOutput | GetHistoryStateCommandOutput | GetInternalMatchingStatusCommandOutput | GetInternalProfileCommandOutput | GetInviteEdgesCommandOutput | GetLivenessStatusCommandOutput | GetMatchCommandOutput | GetMatchingProfileCommandOutput | GetMatchingReadinessCommandOutput | GetMediaStatsCommandOutput | GetModerationReportCommandOutput | GetModerationSignalsCommandOutput | GetMyProfileCommandOutput | GetParticipantRegistryCommandOutput | GetPartnerDistanceCommandOutput | GetPlaceCommandOutput | GetPreferencesCommandOutput | GetPreservationHoldCommandOutput | GetReceivedLikesCommandOutput | GetRosesCommandOutput | GetScoringPolicyCommandOutput | GetStateCommandOutput | GetSuggestionsCommandOutput | GetTierOverrideCommandOutput | GetTraditionPreferencesCommandOutput | GetUserByEmailCommandOutput | GetUserCommandOutput | GetUserIdByUsernameCommandOutput | IndexLocationCommandOutput | IngestSignalsCommandOutput | InitUserCommandOutput | IssueViewPassesCommandOutput | KeepHooksCommandOutput | LinkEmailCommandOutput | LinkSocialCommandOutput | ListBlocksCommandOutput | ListGraphUserMatchesCommandOutput | ListHookRequestsCommandOutput | ListMatchingOnMembersCommandOutput | ListMyDevicesCommandOutput | PutHistoryWrapCommandOutput | RecordSuggestionCommandOutput | RecordSuggestionInternalCommandOutput | RegisterDeviceCommandOutput | RegisterPhoneCommandOutput | RegisterPushTokenCommandOutput | RemoveLocationCommandOutput | RemoveOneHookSuggestionCommandOutput | RemoveSuggestionCommandOutput | ReportMemberCommandOutput | RepublishMatchingProfileCommandOutput | RequestEmailOtpCommandOutput | RequestPhoneOtpCommandOutput | RequestPhoneUpdateOtpCommandOutput | RevokeDeviceCommandOutput | RevokeHistoryWrapCommandOutput | RevokeUserAccessCommandOutput | SearchPlacesCommandOutput | SendAdminLinkOtpCommandOutput | SendHookRequestCommandOutput | SetAccountStateCommandOutput | SetPreservationHoldCommandOutput | SetTierOverrideCommandOutput | SimulateScoringPolicyCommandOutput | SwipeCommandOutput | UnblockUserCommandOutput | UnhookCommandOutput | UnlinkSocialCommandOutput | UpdateChatSettingsCommandOutput | UpdateEntitlementsCommandOutput | UpdatePhoneNumberCommandOutput | UpdatePreferencesCommandOutput | UpdateScoringPolicyCommandOutput | UpdateTraditionPreferencesCommandOutput | UpdateUsernameCommandOutput | UpgradeUserCommandOutput | UpsertChatProfileCommandOutput | UpsertMatchingProfileCommandOutput | ValidateInviteCommandOutput | VerifyAdminLinkOtpCommandOutput;
|
|
133
|
+
export type ServiceOutputTypes = AcceptHookRequestCommandOutput | AuthSocialCommandOutput | BlockUserCommandOutput | CancelHookRequestCommandOutput | CheckUsernameAvailabilityCommandOutput | ClearTierOverrideCommandOutput | CompleteLivenessSessionCommandOutput | CompleteOnboardingCommandOutput | CorrectBirthDateCommandOutput | CreateAdminInviteCommandOutput | CreateLivenessSessionCommandOutput | CreateMediaDownloadUrlCommandOutput | CreateMediaUploadUrlCommandOutput | DeclineHookRequestCommandOutput | DeleteMatchMessagesCommandOutput | DeleteProfileCommandOutput | DeletePushTokenCommandOutput | DisableMatchingCommandOutput | DiscoverCommandOutput | EnableMatchingCommandOutput | EstablishHistoryEpochCommandOutput | GenerateDownloadUrlCommandOutput | GenerateInviteCommandOutput | GenerateUploadUrlCommandOutput | GetAccountStateCommandOutput | GetAdminPhoneStatusCommandOutput | GetAiContextMatchCommandOutput | GetBirthDateStatusCommandOutput | GetChatProfileCommandOutput | GetChatSettingsCommandOutput | GetCredentialReadinessCommandOutput | GetDiscoverySnapshotCommandOutput | GetGraphInvitesCommandOutput | GetGraphMatchCommandOutput | GetGraphUserCommandOutput | GetHistoryStateCommandOutput | GetInternalMatchingStatusCommandOutput | GetInternalProfileCommandOutput | GetInviteEdgesCommandOutput | GetLivenessStatusCommandOutput | GetMatchCommandOutput | GetMatchingProfileCommandOutput | GetMatchingReadinessCommandOutput | GetMediaStatsCommandOutput | GetModerationReportCommandOutput | GetModerationSignalsCommandOutput | GetMyProfileCommandOutput | GetParticipantRegistryCommandOutput | GetPartnerDistanceCommandOutput | GetPlaceCommandOutput | GetPreferencesCommandOutput | GetPreservationHoldCommandOutput | GetReceivedLikesCommandOutput | GetRosesCommandOutput | GetScoringPolicyCommandOutput | GetStateCommandOutput | GetSuggestionsCommandOutput | GetTierOverrideCommandOutput | GetTraditionPreferencesCommandOutput | GetUserByEmailCommandOutput | GetUserCommandOutput | GetUserIdByUsernameCommandOutput | IndexLocationCommandOutput | IngestSignalsCommandOutput | InitUserCommandOutput | IssueViewPassesCommandOutput | KeepHooksCommandOutput | LinkEmailCommandOutput | LinkSocialCommandOutput | ListBlocksCommandOutput | ListGraphUserMatchesCommandOutput | ListHookRequestsCommandOutput | ListMatchingOnMembersCommandOutput | ListMyDevicesCommandOutput | PutHistoryWrapCommandOutput | RecordSuggestionCommandOutput | RecordSuggestionInternalCommandOutput | RegisterDeviceCommandOutput | RegisterPhoneCommandOutput | RegisterPushTokenCommandOutput | RemoveLocationCommandOutput | RemoveOneHookSuggestionCommandOutput | RemoveSuggestionCommandOutput | ReportMemberCommandOutput | RepublishMatchingProfileCommandOutput | RequestEmailOtpCommandOutput | RequestPhoneOtpCommandOutput | RequestPhoneUpdateOtpCommandOutput | RevokeDeviceCommandOutput | RevokeHistoryWrapCommandOutput | RevokeUserAccessCommandOutput | SearchPlacesCommandOutput | SendAdminLinkOtpCommandOutput | SendHookRequestCommandOutput | SetAccountStateCommandOutput | SetPasswordCommandOutput | SetPreservationHoldCommandOutput | SetTierOverrideCommandOutput | SimulateScoringPolicyCommandOutput | SwipeCommandOutput | UnblockUserCommandOutput | UnhookCommandOutput | UnlinkSocialCommandOutput | UpdateChatSettingsCommandOutput | UpdateEntitlementsCommandOutput | UpdatePhoneNumberCommandOutput | UpdatePreferencesCommandOutput | UpdateScoringPolicyCommandOutput | UpdateTraditionPreferencesCommandOutput | UpdateUsernameCommandOutput | UpgradeUserCommandOutput | UpsertChatProfileCommandOutput | UpsertMatchingProfileCommandOutput | ValidateInviteCommandOutput | VerifyAdminLinkOtpCommandOutput;
|
|
132
134
|
/**
|
|
133
135
|
* @public
|
|
134
136
|
*/
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
import { OneHookClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../OneHookClient";
|
|
2
|
+
import { CheckUsernameAvailabilityRequest, CheckUsernameAvailabilityResponse } 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 CheckUsernameAvailabilityCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface CheckUsernameAvailabilityCommandInput extends CheckUsernameAvailabilityRequest {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link CheckUsernameAvailabilityCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface CheckUsernameAvailabilityCommandOutput extends CheckUsernameAvailabilityResponse, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const CheckUsernameAvailabilityCommand_base: {
|
|
25
|
+
new (input: CheckUsernameAvailabilityCommandInput): import("@smithy/smithy-client").CommandImpl<CheckUsernameAvailabilityCommandInput, CheckUsernameAvailabilityCommandOutput, OneHookClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (__0_0: CheckUsernameAvailabilityCommandInput): import("@smithy/smithy-client").CommandImpl<CheckUsernameAvailabilityCommandInput, CheckUsernameAvailabilityCommandOutput, OneHookClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* Reports whether a username can be claimed by the caller. Usernames are public handles (others send
|
|
31
|
+
* hook requests to them), so saying a handle is taken is expected; the response never says WHO holds
|
|
32
|
+
* it. A malformed or reserved handle answers 200 with `INVALID` and a `reason`, so the form can show it
|
|
33
|
+
* inline. `CURRENT` means it is already the caller's own. Rate limited per member (429).
|
|
34
|
+
* @example
|
|
35
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
36
|
+
* ```javascript
|
|
37
|
+
* import { OneHookClient, CheckUsernameAvailabilityCommand } from "onehook-api-client"; // ES Modules import
|
|
38
|
+
* // const { OneHookClient, CheckUsernameAvailabilityCommand } = require("onehook-api-client"); // CommonJS import
|
|
39
|
+
* const client = new OneHookClient(config);
|
|
40
|
+
* const input = { // CheckUsernameAvailabilityRequest
|
|
41
|
+
* username: "STRING_VALUE", // required
|
|
42
|
+
* };
|
|
43
|
+
* const command = new CheckUsernameAvailabilityCommand(input);
|
|
44
|
+
* const response = await client.send(command);
|
|
45
|
+
* // { // CheckUsernameAvailabilityResponse
|
|
46
|
+
* // username: "STRING_VALUE", // required
|
|
47
|
+
* // status: "AVAILABLE" || "TAKEN" || "INVALID" || "CURRENT", // required
|
|
48
|
+
* // reason: "STRING_VALUE",
|
|
49
|
+
* // };
|
|
50
|
+
*
|
|
51
|
+
* ```
|
|
52
|
+
*
|
|
53
|
+
* @param CheckUsernameAvailabilityCommandInput - {@link CheckUsernameAvailabilityCommandInput}
|
|
54
|
+
* @returns {@link CheckUsernameAvailabilityCommandOutput}
|
|
55
|
+
* @see {@link CheckUsernameAvailabilityCommandInput} for command's `input` shape.
|
|
56
|
+
* @see {@link CheckUsernameAvailabilityCommandOutput} for command's `response` shape.
|
|
57
|
+
* @see {@link OneHookClientResolvedConfig | config} for OneHookClient's `config` shape.
|
|
58
|
+
*
|
|
59
|
+
* @throws {@link BadRequestError} (client fault)
|
|
60
|
+
* 400: the request is malformed or fails validation (code `BAD_REQUEST`, or a more specific one).
|
|
61
|
+
*
|
|
62
|
+
* @throws {@link TooManyRequestsError} (client fault)
|
|
63
|
+
* 429: a rate limit or daily quota is spent (for example `REPORT_LIMIT`, `RATE_LIMIT_EXCEEDED`,
|
|
64
|
+
* `ROSE_LIMIT_REACHED`, or `TOO_MANY_REQUESTS` from API Gateway throttling). Shared by every service
|
|
65
|
+
* model.
|
|
66
|
+
*
|
|
67
|
+
* @throws {@link InternalServerError} (server fault)
|
|
68
|
+
* 500: an unexpected failure (code `INTERNAL_ERROR`).
|
|
69
|
+
*
|
|
70
|
+
* @throws {@link UnauthorizedError} (client fault)
|
|
71
|
+
* 401: no valid session for the route (code `UNAUTHORIZED`, or `INVALID_SESSION` from Matching).
|
|
72
|
+
*
|
|
73
|
+
* @throws {@link ForbiddenError} (client fault)
|
|
74
|
+
* 403: the caller may not do this (code `FORBIDDEN`, or a more specific one such as Matching's
|
|
75
|
+
* `MATCHING_OFF`, `DISCOVERY_PAUSED` or `PREMIUM_REQUIRED`). Shared by every service model.
|
|
76
|
+
*
|
|
77
|
+
* @throws {@link BadGatewayError} (server fault)
|
|
78
|
+
* 502: an upstream failed: API Gateway could not use the Lambda's answer, the identity provider
|
|
79
|
+
* (Cognito) failed (`BAD_GATEWAY`), or a downstream write failed after this service saved its own change
|
|
80
|
+
* (`PROPAGATION_FAILED`, retrying the same request is safe).
|
|
81
|
+
*
|
|
82
|
+
* @throws {@link ServiceUnavailableError} (server fault)
|
|
83
|
+
* 503: a dependency is unavailable; retry later (`retryable` is true). Codes include
|
|
84
|
+
* `SERVICE_UNAVAILABLE`, `DATABASE_UNAVAILABLE` and `VIEW_PASS_UNAVAILABLE`.
|
|
85
|
+
*
|
|
86
|
+
* @throws {@link OneHookServiceException}
|
|
87
|
+
* <p>Base exception class for all service exceptions from OneHook service.</p>
|
|
88
|
+
*
|
|
89
|
+
*
|
|
90
|
+
* @public
|
|
91
|
+
*/
|
|
92
|
+
export declare class CheckUsernameAvailabilityCommand extends CheckUsernameAvailabilityCommand_base {
|
|
93
|
+
/** @internal type navigation helper, not in runtime. */
|
|
94
|
+
protected static __types: {
|
|
95
|
+
api: {
|
|
96
|
+
input: CheckUsernameAvailabilityRequest;
|
|
97
|
+
output: CheckUsernameAvailabilityResponse;
|
|
98
|
+
};
|
|
99
|
+
sdk: {
|
|
100
|
+
input: CheckUsernameAvailabilityCommandInput;
|
|
101
|
+
output: CheckUsernameAvailabilityCommandOutput;
|
|
102
|
+
};
|
|
103
|
+
};
|
|
104
|
+
}
|
|
@@ -49,11 +49,6 @@ declare const GetChatProfileCommand_base: {
|
|
|
49
49
|
* // age: Number("int"),
|
|
50
50
|
* // birthDetails: { // BirthDetails
|
|
51
51
|
* // date: "STRING_VALUE",
|
|
52
|
-
* // time: "STRING_VALUE",
|
|
53
|
-
* // timeZone: "STRING_VALUE",
|
|
54
|
-
* // latitude: Number("double"),
|
|
55
|
-
* // longitude: Number("double"),
|
|
56
|
-
* // placeName: "STRING_VALUE",
|
|
57
52
|
* // provisional: true || false,
|
|
58
53
|
* // },
|
|
59
54
|
* // birthDateOnFile: true || false,
|
|
@@ -31,7 +31,7 @@ declare const GetInternalProfileCommand_base: {
|
|
|
31
31
|
* State's AI-context projection). The matching fields and `matchingStatus: ACTIVE` are present only
|
|
32
32
|
* while the matching profile is ACTIVE; `userId`, the chat `displayName`, `age` and `birthDateOnFile`
|
|
33
33
|
* are always there. Owner-only fields (`status`, `generation`, `lastEditedAt`, `draftExpiresAt`,
|
|
34
|
-
* `birthDetails`) are never included. 404 without a saved chat profile, or while it is being deleted.
|
|
34
|
+
* `birthDetails`, `birthTimePlace`) are never included. 404 without a saved chat profile, or while it is being deleted.
|
|
35
35
|
* @example
|
|
36
36
|
* Use a bare-bones client and the command you need to make an API call.
|
|
37
37
|
* ```javascript
|
|
@@ -48,6 +48,13 @@ declare const GetMatchingProfileCommand_base: {
|
|
|
48
48
|
* // generation: Number("long"),
|
|
49
49
|
* // lastEditedAt: Number("long"),
|
|
50
50
|
* // draftExpiresAt: Number("long"),
|
|
51
|
+
* // birthTimePlace: { // BirthTimePlace
|
|
52
|
+
* // time: "STRING_VALUE",
|
|
53
|
+
* // timeZone: "STRING_VALUE",
|
|
54
|
+
* // latitude: Number("double"),
|
|
55
|
+
* // longitude: Number("double"),
|
|
56
|
+
* // placeName: "STRING_VALUE",
|
|
57
|
+
* // },
|
|
51
58
|
* // displayName: "STRING_VALUE",
|
|
52
59
|
* // bio: "STRING_VALUE",
|
|
53
60
|
* // age: Number("int"),
|
|
@@ -46,11 +46,6 @@ declare const GetMyProfileCommand_base: {
|
|
|
46
46
|
* // age: Number("int"),
|
|
47
47
|
* // birthDetails: { // BirthDetails
|
|
48
48
|
* // date: "STRING_VALUE",
|
|
49
|
-
* // time: "STRING_VALUE",
|
|
50
|
-
* // timeZone: "STRING_VALUE",
|
|
51
|
-
* // latitude: Number("double"),
|
|
52
|
-
* // longitude: Number("double"),
|
|
53
|
-
* // placeName: "STRING_VALUE",
|
|
54
49
|
* // provisional: true || false,
|
|
55
50
|
* // },
|
|
56
51
|
* // birthDateOnFile: true || false,
|
|
@@ -65,6 +60,13 @@ declare const GetMyProfileCommand_base: {
|
|
|
65
60
|
* // generation: Number("long"),
|
|
66
61
|
* // lastEditedAt: Number("long"),
|
|
67
62
|
* // draftExpiresAt: Number("long"),
|
|
63
|
+
* // birthTimePlace: { // BirthTimePlace
|
|
64
|
+
* // time: "STRING_VALUE",
|
|
65
|
+
* // timeZone: "STRING_VALUE",
|
|
66
|
+
* // latitude: Number("double"),
|
|
67
|
+
* // longitude: Number("double"),
|
|
68
|
+
* // placeName: "STRING_VALUE",
|
|
69
|
+
* // },
|
|
68
70
|
* // displayName: "STRING_VALUE",
|
|
69
71
|
* // bio: "STRING_VALUE",
|
|
70
72
|
* // age: Number("int"),
|