onehook-api-client 1.0.28 → 1.0.30
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 +21 -0
- package/dist-cjs/OneHook.js +6 -0
- package/dist-cjs/commands/GetAccountStateCommand.js +21 -0
- package/dist-cjs/commands/RecordSuggestionCommand.js +21 -0
- package/dist-cjs/commands/SetAccountStateCommand.js +21 -0
- package/dist-cjs/commands/index.js +3 -0
- package/dist-cjs/models/models_0.js +36 -1
- package/dist-cjs/protocols/Aws_restJson1.js +129 -3
- package/dist-cjs/telemetry/index.js +45 -5
- package/dist-es/OneHook.js +6 -0
- package/dist-es/commands/GetAccountStateCommand.js +17 -0
- package/dist-es/commands/RecordSuggestionCommand.js +17 -0
- package/dist-es/commands/SetAccountStateCommand.js +17 -0
- package/dist-es/commands/index.js +3 -0
- package/dist-es/models/models_0.js +34 -0
- package/dist-es/protocols/Aws_restJson1.js +121 -1
- package/dist-es/telemetry/index.js +44 -4
- package/dist-types/OneHook.d.ts +21 -0
- package/dist-types/OneHookClient.d.ts +5 -2
- package/dist-types/commands/DiscoverCommand.d.ts +18 -2
- package/dist-types/commands/GetAccountStateCommand.d.ts +83 -0
- package/dist-types/commands/RecordSuggestionCommand.d.ts +83 -0
- package/dist-types/commands/SetAccountStateCommand.d.ts +95 -0
- package/dist-types/commands/index.d.ts +3 -0
- package/dist-types/models/models_0.d.ts +233 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +27 -0
- package/dist-types/telemetry/index.d.ts +45 -2
- package/package.json +1 -1
- package/telemetry/TelemetryCatalog.kt +62 -7
- package/telemetry/TelemetryCatalog.swift +52 -6
- package/telemetry/telemetry-catalog.json +594 -245
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { de_RecordSuggestionCommand, se_RecordSuggestionCommand, } 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 RecordSuggestionCommand extends $Command.classBuilder()
|
|
6
|
+
.m(function (Command, cs, config, o) {
|
|
7
|
+
return [
|
|
8
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
9
|
+
];
|
|
10
|
+
})
|
|
11
|
+
.s("OneHookService", "RecordSuggestion", {})
|
|
12
|
+
.n("OneHookClient", "RecordSuggestionCommand")
|
|
13
|
+
.f(void 0, void 0)
|
|
14
|
+
.ser(se_RecordSuggestionCommand)
|
|
15
|
+
.de(de_RecordSuggestionCommand)
|
|
16
|
+
.build() {
|
|
17
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { de_SetAccountStateCommand, se_SetAccountStateCommand, } 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 SetAccountStateCommand extends $Command.classBuilder()
|
|
6
|
+
.m(function (Command, cs, config, o) {
|
|
7
|
+
return [
|
|
8
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
9
|
+
];
|
|
10
|
+
})
|
|
11
|
+
.s("OneHookService", "SetAccountState", {})
|
|
12
|
+
.n("OneHookClient", "SetAccountStateCommand")
|
|
13
|
+
.f(void 0, void 0)
|
|
14
|
+
.ser(se_SetAccountStateCommand)
|
|
15
|
+
.de(de_SetAccountStateCommand)
|
|
16
|
+
.build() {
|
|
17
|
+
}
|
|
@@ -13,6 +13,7 @@ export * from "./UpdateChatSettingsCommand";
|
|
|
13
13
|
export * from "./AuthSocialCommand";
|
|
14
14
|
export * from "./CreateAdminInviteCommand";
|
|
15
15
|
export * from "./GenerateInviteCommand";
|
|
16
|
+
export * from "./GetAccountStateCommand";
|
|
16
17
|
export * from "./GetAdminPhoneStatusCommand";
|
|
17
18
|
export * from "./GetCredentialReadinessCommand";
|
|
18
19
|
export * from "./GetUserCommand";
|
|
@@ -25,6 +26,7 @@ export * from "./RequestEmailOtpCommand";
|
|
|
25
26
|
export * from "./RequestPhoneOtpCommand";
|
|
26
27
|
export * from "./RequestPhoneUpdateOtpCommand";
|
|
27
28
|
export * from "./SendAdminLinkOtpCommand";
|
|
29
|
+
export * from "./SetAccountStateCommand";
|
|
28
30
|
export * from "./UnlinkSocialCommand";
|
|
29
31
|
export * from "./UpdateEntitlementsCommand";
|
|
30
32
|
export * from "./UpdatePhoneNumberCommand";
|
|
@@ -37,6 +39,7 @@ export * from "./GetPreferencesCommand";
|
|
|
37
39
|
export * from "./GetReceivedLikesCommand";
|
|
38
40
|
export * from "./GetRosesCommand";
|
|
39
41
|
export * from "./IndexLocationCommand";
|
|
42
|
+
export * from "./RecordSuggestionCommand";
|
|
40
43
|
export * from "./RemoveLocationCommand";
|
|
41
44
|
export * from "./SwipeCommand";
|
|
42
45
|
export * from "./SwipeByUsernameCommand";
|
|
@@ -89,14 +89,48 @@ export const PushTokenKind = {
|
|
|
89
89
|
ALERT: "ALERT",
|
|
90
90
|
VOIP: "VOIP",
|
|
91
91
|
};
|
|
92
|
+
export const AccountState = {
|
|
93
|
+
ACTIVE: "ACTIVE",
|
|
94
|
+
BANNED: "BANNED",
|
|
95
|
+
RESTRICTED: "RESTRICTED",
|
|
96
|
+
SUSPENDED: "SUSPENDED",
|
|
97
|
+
};
|
|
92
98
|
export const CredentialGap = {
|
|
93
99
|
NO_COGNITO_USERNAME_ON_PROFILE: "NO_COGNITO_USERNAME_ON_PROFILE",
|
|
94
100
|
PHONE_NOT_VERIFIED: "PHONE_NOT_VERIFIED",
|
|
95
101
|
USERNAME_MISMATCHED_IN_COGNITO: "USERNAME_MISMATCHED_IN_COGNITO",
|
|
96
102
|
USERNAME_NOT_SYNCED_TO_COGNITO: "USERNAME_NOT_SYNCED_TO_COGNITO",
|
|
97
103
|
};
|
|
104
|
+
export class ConflictError extends __BaseException {
|
|
105
|
+
name = "ConflictError";
|
|
106
|
+
$fault = "client";
|
|
107
|
+
error;
|
|
108
|
+
constructor(opts) {
|
|
109
|
+
super({
|
|
110
|
+
name: "ConflictError",
|
|
111
|
+
$fault: "client",
|
|
112
|
+
...opts
|
|
113
|
+
});
|
|
114
|
+
Object.setPrototypeOf(this, ConflictError.prototype);
|
|
115
|
+
this.error = opts.error;
|
|
116
|
+
}
|
|
117
|
+
}
|
|
98
118
|
export const SubscriptionTier = {
|
|
99
119
|
INFINITY: "INFINITY",
|
|
100
120
|
MUST: "MUST",
|
|
101
121
|
SUPER: "SUPER",
|
|
102
122
|
};
|
|
123
|
+
export const DiscoveryCategory = {
|
|
124
|
+
ALL: "ALL",
|
|
125
|
+
ONEHOOK_SUGGESTED: "ONEHOOK_SUGGESTED",
|
|
126
|
+
PROFILE_MATCH: "PROFILE_MATCH",
|
|
127
|
+
SIMILAR: "SIMILAR",
|
|
128
|
+
};
|
|
129
|
+
export const MatchFinder = {
|
|
130
|
+
MR_ONEHOOK: "MR_ONEHOOK",
|
|
131
|
+
ONEHOOK_INTELLIGENCE: "ONEHOOK_INTELLIGENCE",
|
|
132
|
+
};
|
|
133
|
+
export const SuggestionBasis = {
|
|
134
|
+
EXPLICIT_REQUEST: "EXPLICIT_REQUEST",
|
|
135
|
+
INFERRED_INCLINATION: "INFERRED_INCLINATION",
|
|
136
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { OneHookServiceException as __BaseException } from "../models/OneHookServiceException";
|
|
2
|
-
import { BadRequestError, DeviceLimitError, ForbiddenError, InternalServerError, NotFoundError, } from "../models/models_0";
|
|
2
|
+
import { BadRequestError, ConflictError, DeviceLimitError, ForbiddenError, InternalServerError, NotFoundError, } from "../models/models_0";
|
|
3
3
|
import { loadRestJsonErrorCode, parseJsonBody as parseBody, parseJsonErrorBody as parseErrorBody, } from "@aws-sdk/core";
|
|
4
4
|
import { requestBuilder as rb } from "@smithy/core";
|
|
5
5
|
import { decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectLong as __expectLong, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, limitedParseDouble as __limitedParseDouble, serializeFloat as __serializeFloat, _json, collectBody, isSerializableHeaderValue, map, take, withBaseException, } from "@smithy/smithy-client";
|
|
@@ -227,6 +227,17 @@ export const se_GenerateInviteCommand = async (input, context) => {
|
|
|
227
227
|
.b(body);
|
|
228
228
|
return b.build();
|
|
229
229
|
};
|
|
230
|
+
export const se_GetAccountStateCommand = async (input, context) => {
|
|
231
|
+
const b = rb(input, context);
|
|
232
|
+
const headers = {};
|
|
233
|
+
b.bp("/identity/admin/users/{userId}/account-state");
|
|
234
|
+
b.p('userId', () => input.userId, '{userId}', false);
|
|
235
|
+
let body;
|
|
236
|
+
b.m("GET")
|
|
237
|
+
.h(headers)
|
|
238
|
+
.b(body);
|
|
239
|
+
return b.build();
|
|
240
|
+
};
|
|
230
241
|
export const se_GetAdminPhoneStatusCommand = async (input, context) => {
|
|
231
242
|
const b = rb(input, context);
|
|
232
243
|
const headers = {
|
|
@@ -394,6 +405,26 @@ export const se_SendAdminLinkOtpCommand = async (input, context) => {
|
|
|
394
405
|
.b(body);
|
|
395
406
|
return b.build();
|
|
396
407
|
};
|
|
408
|
+
export const se_SetAccountStateCommand = async (input, context) => {
|
|
409
|
+
const b = rb(input, context);
|
|
410
|
+
const headers = {
|
|
411
|
+
'content-type': 'application/json',
|
|
412
|
+
};
|
|
413
|
+
b.bp("/identity/admin/users/{userId}/account-state");
|
|
414
|
+
b.p('userId', () => input.userId, '{userId}', false);
|
|
415
|
+
let body;
|
|
416
|
+
body = JSON.stringify(take(input, {
|
|
417
|
+
'actor': [],
|
|
418
|
+
'expectedVersion': [],
|
|
419
|
+
'reasonCode': [],
|
|
420
|
+
'state': [],
|
|
421
|
+
'until': [],
|
|
422
|
+
}));
|
|
423
|
+
b.m("POST")
|
|
424
|
+
.h(headers)
|
|
425
|
+
.b(body);
|
|
426
|
+
return b.build();
|
|
427
|
+
};
|
|
397
428
|
export const se_UnlinkSocialCommand = async (input, context) => {
|
|
398
429
|
const b = rb(input, context);
|
|
399
430
|
const headers = {};
|
|
@@ -489,6 +520,7 @@ export const se_DiscoverCommand = async (input, context) => {
|
|
|
489
520
|
const query = map({
|
|
490
521
|
[_l]: [__expectNonNull(input.lat, `lat`) != null, () => ((input[_l] % 1 == 0) ? input[_l] + ".0" : input[_l].toString())],
|
|
491
522
|
[_lo]: [__expectNonNull(input.lon, `lon`) != null, () => ((input[_lo] % 1 == 0) ? input[_lo] + ".0" : input[_lo].toString())],
|
|
523
|
+
[_c]: [, input[_c]],
|
|
492
524
|
});
|
|
493
525
|
let body;
|
|
494
526
|
b.m("GET")
|
|
@@ -555,6 +587,22 @@ export const se_IndexLocationCommand = async (input, context) => {
|
|
|
555
587
|
.b(body);
|
|
556
588
|
return b.build();
|
|
557
589
|
};
|
|
590
|
+
export const se_RecordSuggestionCommand = async (input, context) => {
|
|
591
|
+
const b = rb(input, context);
|
|
592
|
+
const headers = {
|
|
593
|
+
'content-type': 'application/json',
|
|
594
|
+
};
|
|
595
|
+
b.bp("/matching/suggestions");
|
|
596
|
+
let body;
|
|
597
|
+
body = JSON.stringify(take(input, {
|
|
598
|
+
'prompt': [],
|
|
599
|
+
'reasoning': [],
|
|
600
|
+
}));
|
|
601
|
+
b.m("POST")
|
|
602
|
+
.h(headers)
|
|
603
|
+
.b(body);
|
|
604
|
+
return b.build();
|
|
605
|
+
};
|
|
558
606
|
export const se_RemoveLocationCommand = async (input, context) => {
|
|
559
607
|
const b = rb(input, context);
|
|
560
608
|
const headers = {
|
|
@@ -1098,6 +1146,23 @@ export const de_GenerateInviteCommand = async (output, context) => {
|
|
|
1098
1146
|
Object.assign(contents, doc);
|
|
1099
1147
|
return contents;
|
|
1100
1148
|
};
|
|
1149
|
+
export const de_GetAccountStateCommand = async (output, context) => {
|
|
1150
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1151
|
+
return de_CommandError(output, context);
|
|
1152
|
+
}
|
|
1153
|
+
const contents = map({
|
|
1154
|
+
$metadata: deserializeMetadata(output),
|
|
1155
|
+
});
|
|
1156
|
+
const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
|
|
1157
|
+
const doc = take(data, {
|
|
1158
|
+
'reasonCode': __expectString,
|
|
1159
|
+
'state': __expectString,
|
|
1160
|
+
'until': __expectLong,
|
|
1161
|
+
'version': __expectInt32,
|
|
1162
|
+
});
|
|
1163
|
+
Object.assign(contents, doc);
|
|
1164
|
+
return contents;
|
|
1165
|
+
};
|
|
1101
1166
|
export const de_GetAdminPhoneStatusCommand = async (output, context) => {
|
|
1102
1167
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1103
1168
|
return de_CommandError(output, context);
|
|
@@ -1287,6 +1352,22 @@ export const de_SendAdminLinkOtpCommand = async (output, context) => {
|
|
|
1287
1352
|
Object.assign(contents, doc);
|
|
1288
1353
|
return contents;
|
|
1289
1354
|
};
|
|
1355
|
+
export const de_SetAccountStateCommand = async (output, context) => {
|
|
1356
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1357
|
+
return de_CommandError(output, context);
|
|
1358
|
+
}
|
|
1359
|
+
const contents = map({
|
|
1360
|
+
$metadata: deserializeMetadata(output),
|
|
1361
|
+
});
|
|
1362
|
+
const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
|
|
1363
|
+
const doc = take(data, {
|
|
1364
|
+
'state': __expectString,
|
|
1365
|
+
'until': __expectLong,
|
|
1366
|
+
'version': __expectInt32,
|
|
1367
|
+
});
|
|
1368
|
+
Object.assign(contents, doc);
|
|
1369
|
+
return contents;
|
|
1370
|
+
};
|
|
1290
1371
|
export const de_UnlinkSocialCommand = async (output, context) => {
|
|
1291
1372
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1292
1373
|
return de_CommandError(output, context);
|
|
@@ -1389,7 +1470,9 @@ export const de_DiscoverCommand = async (output, context) => {
|
|
|
1389
1470
|
const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
|
|
1390
1471
|
const doc = take(data, {
|
|
1391
1472
|
'algorithm': __expectString,
|
|
1473
|
+
'availableCategories': _json,
|
|
1392
1474
|
'candidates': _ => de_CandidateList(_, context),
|
|
1475
|
+
'category': __expectString,
|
|
1393
1476
|
'count': __expectInt32,
|
|
1394
1477
|
});
|
|
1395
1478
|
Object.assign(contents, doc);
|
|
@@ -1503,6 +1586,20 @@ export const de_IndexLocationCommand = async (output, context) => {
|
|
|
1503
1586
|
Object.assign(contents, doc);
|
|
1504
1587
|
return contents;
|
|
1505
1588
|
};
|
|
1589
|
+
export const de_RecordSuggestionCommand = async (output, context) => {
|
|
1590
|
+
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
1591
|
+
return de_CommandError(output, context);
|
|
1592
|
+
}
|
|
1593
|
+
const contents = map({
|
|
1594
|
+
$metadata: deserializeMetadata(output),
|
|
1595
|
+
});
|
|
1596
|
+
const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
|
|
1597
|
+
const doc = take(data, {
|
|
1598
|
+
'suggestionId': __expectString,
|
|
1599
|
+
});
|
|
1600
|
+
Object.assign(contents, doc);
|
|
1601
|
+
return contents;
|
|
1602
|
+
};
|
|
1506
1603
|
export const de_RemoveLocationCommand = async (output, context) => {
|
|
1507
1604
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1508
1605
|
return de_CommandError(output, context);
|
|
@@ -1890,6 +1987,9 @@ const de_CommandError = async (output, context) => {
|
|
|
1890
1987
|
case "DeviceLimitError":
|
|
1891
1988
|
case "club.onehook.chat#DeviceLimitError":
|
|
1892
1989
|
throw await de_DeviceLimitErrorRes(parsedOutput, context);
|
|
1990
|
+
case "ConflictError":
|
|
1991
|
+
case "club.onehook.identity#ConflictError":
|
|
1992
|
+
throw await de_ConflictErrorRes(parsedOutput, context);
|
|
1893
1993
|
default:
|
|
1894
1994
|
const parsedBody = parsedOutput.body;
|
|
1895
1995
|
return throwDefaultError({
|
|
@@ -1939,6 +2039,19 @@ const de_BadRequestErrorRes = async (parsedOutput, context) => {
|
|
|
1939
2039
|
});
|
|
1940
2040
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
1941
2041
|
};
|
|
2042
|
+
const de_ConflictErrorRes = async (parsedOutput, context) => {
|
|
2043
|
+
const contents = map({});
|
|
2044
|
+
const data = parsedOutput.body;
|
|
2045
|
+
const doc = take(data, {
|
|
2046
|
+
'error': __expectString,
|
|
2047
|
+
});
|
|
2048
|
+
Object.assign(contents, doc);
|
|
2049
|
+
const exception = new ConflictError({
|
|
2050
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
2051
|
+
...contents
|
|
2052
|
+
});
|
|
2053
|
+
return __decorateServiceException(exception, parsedOutput.body);
|
|
2054
|
+
};
|
|
1942
2055
|
const de_InternalServerErrorRes = async (parsedOutput, context) => {
|
|
1943
2056
|
const contents = map({});
|
|
1944
2057
|
const data = parsedOutput.body;
|
|
@@ -1968,7 +2081,13 @@ const de_NotFoundErrorRes = async (parsedOutput, context) => {
|
|
|
1968
2081
|
const de_CandidateDto = (output, context) => {
|
|
1969
2082
|
return take(output, {
|
|
1970
2083
|
'distanceKm': __limitedParseDouble,
|
|
2084
|
+
'matchFinder': __expectString,
|
|
2085
|
+
'matchFinderLabel': __expectString,
|
|
2086
|
+
'reasoning': __expectString,
|
|
1971
2087
|
'score': __limitedParseDouble,
|
|
2088
|
+
'similarity': __limitedParseDouble,
|
|
2089
|
+
'suggestionBasis': __expectString,
|
|
2090
|
+
'suggestionId': __expectString,
|
|
1972
2091
|
'userId': __expectString,
|
|
1973
2092
|
});
|
|
1974
2093
|
};
|
|
@@ -1985,6 +2104,7 @@ const deserializeMetadata = (output) => ({
|
|
|
1985
2104
|
cfId: output.headers["x-amz-cf-id"],
|
|
1986
2105
|
});
|
|
1987
2106
|
const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then(body => context.utf8Encoder(body));
|
|
2107
|
+
const _c = "category";
|
|
1988
2108
|
const _k = "key";
|
|
1989
2109
|
const _l = "lat";
|
|
1990
2110
|
const _lo = "lon";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export const TELEMETRY_CATALOG_VERSION = "1.
|
|
2
|
-
export const TELEMETRY_CATALOG_HASH = "
|
|
1
|
+
export const TELEMETRY_CATALOG_VERSION = "1.7.0";
|
|
2
|
+
export const TELEMETRY_CATALOG_HASH = "4a3328962531236a";
|
|
3
3
|
export const SignalType = {
|
|
4
4
|
SCREEN_VIEW: "screen_view",
|
|
5
5
|
UI_INTERACTION: "ui_interaction",
|
|
@@ -19,6 +19,7 @@ export const SignalType = {
|
|
|
19
19
|
HOOKED_STATE_VIEW: "hooked_state_view",
|
|
20
20
|
LIKES_YOU_VIEW: "likes_you_view",
|
|
21
21
|
SAFETY_UI_OPEN: "safety_ui_open",
|
|
22
|
+
REPORT_FLOW: "report_flow",
|
|
22
23
|
};
|
|
23
24
|
export const Platform = {
|
|
24
25
|
WEB: "web",
|
|
@@ -153,6 +154,39 @@ export const HookedStateAction = {
|
|
|
153
154
|
GO_TO_CHAT: "go_to_chat",
|
|
154
155
|
DISMISS: "dismiss",
|
|
155
156
|
};
|
|
157
|
+
export const ReportCategory = {
|
|
158
|
+
HARASSMENT: "HARASSMENT",
|
|
159
|
+
THREATS_VIOLENCE: "THREATS_VIOLENCE",
|
|
160
|
+
SEXUAL_CONTENT_NONCONSENT: "SEXUAL_CONTENT_NONCONSENT",
|
|
161
|
+
MINOR_SAFETY: "MINOR_SAFETY",
|
|
162
|
+
SCAM_FRAUD: "SCAM_FRAUD",
|
|
163
|
+
FAKE_IMPERSONATION: "FAKE_IMPERSONATION",
|
|
164
|
+
SPAM_PROMOTION: "SPAM_PROMOTION",
|
|
165
|
+
HATE: "HATE",
|
|
166
|
+
SELF_HARM_CONCERN: "SELF_HARM_CONCERN",
|
|
167
|
+
OFF_PLATFORM_HARM: "OFF_PLATFORM_HARM",
|
|
168
|
+
OTHER: "OTHER",
|
|
169
|
+
};
|
|
170
|
+
export const ReportSource = {
|
|
171
|
+
CHAT: "chat",
|
|
172
|
+
PROFILE: "profile",
|
|
173
|
+
};
|
|
174
|
+
export const ReportEvent = {
|
|
175
|
+
REPORT_OPEN: "report.open",
|
|
176
|
+
REPORT_CATEGORY_SELECTED: "report.category_selected",
|
|
177
|
+
REPORT_NOT_REPORTABLE_SHOWN: "report.not_reportable_shown",
|
|
178
|
+
REPORT_NOT_REPORTABLE_BLOCK: "report.not_reportable_block",
|
|
179
|
+
REPORT_SELF_HARM_RESOURCES_SHOWN: "report.self_harm_resources_shown",
|
|
180
|
+
REPORT_EVIDENCE_TOGGLE: "report.evidence_toggle",
|
|
181
|
+
REPORT_ATTACHMENTS_TOGGLE: "report.attachments_toggle",
|
|
182
|
+
REPORT_EVIDENCE_PREVIEW: "report.evidence_preview",
|
|
183
|
+
REPORT_NUDGE_SHOWN: "report.nudge_shown",
|
|
184
|
+
REPORT_SUBMIT_WITH_EVIDENCE: "report.submit_with_evidence",
|
|
185
|
+
REPORT_SUBMIT_WITHOUT_EVIDENCE: "report.submit_without_evidence",
|
|
186
|
+
REPORT_SUBMIT_FAILED: "report.submit_failed",
|
|
187
|
+
REPORT_EVIDENCE_UPLOAD_SUCCEEDED: "report.evidence_upload_succeeded",
|
|
188
|
+
REPORT_EVIDENCE_UPLOAD_FAILED: "report.evidence_upload_failed",
|
|
189
|
+
};
|
|
156
190
|
export const UiElement = {
|
|
157
191
|
NAV_TAB_SELECT: "nav.tab_select",
|
|
158
192
|
NAV_SEARCH_OPEN: "nav.search_open",
|
|
@@ -207,6 +241,7 @@ export const UiElement = {
|
|
|
207
241
|
ADMISSIONS_STATUS_REFRESH: "admissions_status.refresh",
|
|
208
242
|
ADMISSIONS_STATUS_CONTINUE_INVITE: "admissions_status.continue_invite",
|
|
209
243
|
ADMISSIONS_STATUS_WITHDRAW: "admissions_status.withdraw",
|
|
244
|
+
ADMISSIONS_STATUS_TRAINING_OPT_OUT: "admissions_status.training_opt_out",
|
|
210
245
|
ONBOARDING_NEXT: "onboarding.next",
|
|
211
246
|
ONBOARDING_BACK: "onboarding.back",
|
|
212
247
|
ONBOARDING_FINISH: "onboarding.finish",
|
|
@@ -257,6 +292,8 @@ export const UiElement = {
|
|
|
257
292
|
CHAT_PROFILE_OPEN: "chat.profile_open",
|
|
258
293
|
CHAT_SAFETY_MENU_OPEN: "chat.safety_menu_open",
|
|
259
294
|
CHAT_UNMATCH: "chat.unmatch",
|
|
295
|
+
CHAT_REPORT_OPEN: "chat.report_open",
|
|
296
|
+
CHAT_BLOCK_OPEN: "chat.block_open",
|
|
260
297
|
CHAT_REPORT_SPAM: "chat.report_spam",
|
|
261
298
|
CHAT_REPORT_BLOCK: "chat.report_block",
|
|
262
299
|
CHAT_BLOCK_CONFIRM: "chat.block_confirm",
|
|
@@ -447,6 +484,7 @@ export const UI_ELEMENTS = {
|
|
|
447
484
|
"admissions_status.refresh": { screen: "ADMISSIONS_STATUS", kind: "button", actions: ["tap"], values: null, platforms: ["ios", "android"] },
|
|
448
485
|
"admissions_status.continue_invite": { screen: "ADMISSIONS_STATUS", kind: "button", actions: ["tap"], values: null, platforms: ["ios", "android"] },
|
|
449
486
|
"admissions_status.withdraw": { screen: "ADMISSIONS_STATUS", kind: "button", actions: ["tap"], values: null, platforms: ["ios", "android"] },
|
|
487
|
+
"admissions_status.training_opt_out": { screen: "ADMISSIONS_STATUS", kind: "button", actions: ["tap"], values: null, platforms: ["ios", "android"] },
|
|
450
488
|
"onboarding.next": { screen: "ONBOARDING", kind: "button", actions: ["submit"], values: ["basics", "photos", "media", "prompts", "details"], platforms: ["web", "ios"] },
|
|
451
489
|
"onboarding.back": { screen: "ONBOARDING", kind: "button", actions: ["tap"], values: null, platforms: ["web", "ios"] },
|
|
452
490
|
"onboarding.finish": { screen: "ONBOARDING", kind: "button", actions: ["submit"], values: null, platforms: ["web", "ios", "android"] },
|
|
@@ -497,8 +535,10 @@ export const UI_ELEMENTS = {
|
|
|
497
535
|
"chat.profile_open": { screen: "CHAT", kind: "button", actions: ["tap", "dismiss"], values: null, platforms: ["web", "ios", "android"] },
|
|
498
536
|
"chat.safety_menu_open": { screen: "CHAT", kind: "button", actions: ["tap", "dismiss"], values: null, platforms: ["web", "ios", "android"] },
|
|
499
537
|
"chat.unmatch": { screen: "CHAT", kind: "menu_item", actions: ["tap"], values: null, platforms: ["ios", "android"] },
|
|
500
|
-
"chat.
|
|
501
|
-
"chat.
|
|
538
|
+
"chat.report_open": { screen: "CHAT", kind: "menu_item", actions: ["tap"], values: null, platforms: ["web", "ios", "android"] },
|
|
539
|
+
"chat.block_open": { screen: "CHAT", kind: "menu_item", actions: ["tap"], values: null, platforms: ["web", "ios", "android"] },
|
|
540
|
+
"chat.report_spam": { screen: "CHAT", kind: "menu_item", actions: ["tap"], values: null, platforms: [] },
|
|
541
|
+
"chat.report_block": { screen: "CHAT", kind: "menu_item", actions: ["tap"], values: null, platforms: [] },
|
|
502
542
|
"chat.block_confirm": { screen: "CHAT", kind: "dialog_button", actions: ["tap", "dismiss"], values: null, platforms: ["web", "ios", "android"] },
|
|
503
543
|
"chat.settings_open": { screen: "CHAT", kind: "button", actions: ["tap", "dismiss"], values: null, platforms: ["web", "ios"] },
|
|
504
544
|
"chat.wallpaper_open": { screen: "CHAT", kind: "menu_item", actions: ["tap", "dismiss"], values: null, platforms: ["web"] },
|
package/dist-types/OneHook.d.ts
CHANGED
|
@@ -13,6 +13,7 @@ import { DiscoverCommandInput, DiscoverCommandOutput } from "./commands/Discover
|
|
|
13
13
|
import { GenerateDownloadUrlCommandInput, GenerateDownloadUrlCommandOutput } from "./commands/GenerateDownloadUrlCommand";
|
|
14
14
|
import { GenerateInviteCommandInput, GenerateInviteCommandOutput } from "./commands/GenerateInviteCommand";
|
|
15
15
|
import { GenerateUploadUrlCommandInput, GenerateUploadUrlCommandOutput } from "./commands/GenerateUploadUrlCommand";
|
|
16
|
+
import { GetAccountStateCommandInput, GetAccountStateCommandOutput } from "./commands/GetAccountStateCommand";
|
|
16
17
|
import { GetAdminPhoneStatusCommandInput, GetAdminPhoneStatusCommandOutput } from "./commands/GetAdminPhoneStatusCommand";
|
|
17
18
|
import { GetAiContextMatchCommandInput, GetAiContextMatchCommandOutput } from "./commands/GetAiContextMatchCommand";
|
|
18
19
|
import { GetChatSettingsCommandInput, GetChatSettingsCommandOutput } from "./commands/GetChatSettingsCommand";
|
|
@@ -35,6 +36,7 @@ import { InitUserCommandInput, InitUserCommandOutput } from "./commands/InitUser
|
|
|
35
36
|
import { LinkEmailCommandInput, LinkEmailCommandOutput } from "./commands/LinkEmailCommand";
|
|
36
37
|
import { LinkSocialCommandInput, LinkSocialCommandOutput } from "./commands/LinkSocialCommand";
|
|
37
38
|
import { ListMyDevicesCommandInput, ListMyDevicesCommandOutput } from "./commands/ListMyDevicesCommand";
|
|
39
|
+
import { RecordSuggestionCommandInput, RecordSuggestionCommandOutput } from "./commands/RecordSuggestionCommand";
|
|
38
40
|
import { RegisterDeviceCommandInput, RegisterDeviceCommandOutput } from "./commands/RegisterDeviceCommand";
|
|
39
41
|
import { RegisterPhoneCommandInput, RegisterPhoneCommandOutput } from "./commands/RegisterPhoneCommand";
|
|
40
42
|
import { RegisterPushTokenCommandInput, RegisterPushTokenCommandOutput } from "./commands/RegisterPushTokenCommand";
|
|
@@ -44,6 +46,7 @@ import { RequestPhoneOtpCommandInput, RequestPhoneOtpCommandOutput } from "./com
|
|
|
44
46
|
import { RequestPhoneUpdateOtpCommandInput, RequestPhoneUpdateOtpCommandOutput } from "./commands/RequestPhoneUpdateOtpCommand";
|
|
45
47
|
import { RevokeDeviceCommandInput, RevokeDeviceCommandOutput } from "./commands/RevokeDeviceCommand";
|
|
46
48
|
import { SendAdminLinkOtpCommandInput, SendAdminLinkOtpCommandOutput } from "./commands/SendAdminLinkOtpCommand";
|
|
49
|
+
import { SetAccountStateCommandInput, SetAccountStateCommandOutput } from "./commands/SetAccountStateCommand";
|
|
47
50
|
import { SwipeByUsernameCommandInput, SwipeByUsernameCommandOutput } from "./commands/SwipeByUsernameCommand";
|
|
48
51
|
import { SwipeCommandInput, SwipeCommandOutput } from "./commands/SwipeCommand";
|
|
49
52
|
import { UnhookCommandInput, UnhookCommandOutput } from "./commands/UnhookCommand";
|
|
@@ -152,6 +155,12 @@ export interface OneHook {
|
|
|
152
155
|
generateInvite(args: GenerateInviteCommandInput, options?: __HttpHandlerOptions): Promise<GenerateInviteCommandOutput>;
|
|
153
156
|
generateInvite(args: GenerateInviteCommandInput, cb: (err: any, data?: GenerateInviteCommandOutput) => void): void;
|
|
154
157
|
generateInvite(args: GenerateInviteCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GenerateInviteCommandOutput) => void): void;
|
|
158
|
+
/**
|
|
159
|
+
* @see {@link GetAccountStateCommand}
|
|
160
|
+
*/
|
|
161
|
+
getAccountState(args: GetAccountStateCommandInput, options?: __HttpHandlerOptions): Promise<GetAccountStateCommandOutput>;
|
|
162
|
+
getAccountState(args: GetAccountStateCommandInput, cb: (err: any, data?: GetAccountStateCommandOutput) => void): void;
|
|
163
|
+
getAccountState(args: GetAccountStateCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetAccountStateCommandOutput) => void): void;
|
|
155
164
|
/**
|
|
156
165
|
* @see {@link GetAdminPhoneStatusCommand}
|
|
157
166
|
*/
|
|
@@ -224,6 +233,12 @@ export interface OneHook {
|
|
|
224
233
|
sendAdminLinkOtp(args: SendAdminLinkOtpCommandInput, options?: __HttpHandlerOptions): Promise<SendAdminLinkOtpCommandOutput>;
|
|
225
234
|
sendAdminLinkOtp(args: SendAdminLinkOtpCommandInput, cb: (err: any, data?: SendAdminLinkOtpCommandOutput) => void): void;
|
|
226
235
|
sendAdminLinkOtp(args: SendAdminLinkOtpCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: SendAdminLinkOtpCommandOutput) => void): void;
|
|
236
|
+
/**
|
|
237
|
+
* @see {@link SetAccountStateCommand}
|
|
238
|
+
*/
|
|
239
|
+
setAccountState(args: SetAccountStateCommandInput, options?: __HttpHandlerOptions): Promise<SetAccountStateCommandOutput>;
|
|
240
|
+
setAccountState(args: SetAccountStateCommandInput, cb: (err: any, data?: SetAccountStateCommandOutput) => void): void;
|
|
241
|
+
setAccountState(args: SetAccountStateCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: SetAccountStateCommandOutput) => void): void;
|
|
227
242
|
/**
|
|
228
243
|
* @see {@link UnlinkSocialCommand}
|
|
229
244
|
*/
|
|
@@ -298,6 +313,12 @@ export interface OneHook {
|
|
|
298
313
|
indexLocation(args: IndexLocationCommandInput, options?: __HttpHandlerOptions): Promise<IndexLocationCommandOutput>;
|
|
299
314
|
indexLocation(args: IndexLocationCommandInput, cb: (err: any, data?: IndexLocationCommandOutput) => void): void;
|
|
300
315
|
indexLocation(args: IndexLocationCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: IndexLocationCommandOutput) => void): void;
|
|
316
|
+
/**
|
|
317
|
+
* @see {@link RecordSuggestionCommand}
|
|
318
|
+
*/
|
|
319
|
+
recordSuggestion(args: RecordSuggestionCommandInput, options?: __HttpHandlerOptions): Promise<RecordSuggestionCommandOutput>;
|
|
320
|
+
recordSuggestion(args: RecordSuggestionCommandInput, cb: (err: any, data?: RecordSuggestionCommandOutput) => void): void;
|
|
321
|
+
recordSuggestion(args: RecordSuggestionCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: RecordSuggestionCommandOutput) => void): void;
|
|
301
322
|
/**
|
|
302
323
|
* @see {@link RemoveLocationCommand}
|
|
303
324
|
*/
|
|
@@ -13,6 +13,7 @@ import { DiscoverCommandInput, DiscoverCommandOutput } from "./commands/Discover
|
|
|
13
13
|
import { GenerateDownloadUrlCommandInput, GenerateDownloadUrlCommandOutput } from "./commands/GenerateDownloadUrlCommand";
|
|
14
14
|
import { GenerateInviteCommandInput, GenerateInviteCommandOutput } from "./commands/GenerateInviteCommand";
|
|
15
15
|
import { GenerateUploadUrlCommandInput, GenerateUploadUrlCommandOutput } from "./commands/GenerateUploadUrlCommand";
|
|
16
|
+
import { GetAccountStateCommandInput, GetAccountStateCommandOutput } from "./commands/GetAccountStateCommand";
|
|
16
17
|
import { GetAdminPhoneStatusCommandInput, GetAdminPhoneStatusCommandOutput } from "./commands/GetAdminPhoneStatusCommand";
|
|
17
18
|
import { GetAiContextMatchCommandInput, GetAiContextMatchCommandOutput } from "./commands/GetAiContextMatchCommand";
|
|
18
19
|
import { GetChatSettingsCommandInput, GetChatSettingsCommandOutput } from "./commands/GetChatSettingsCommand";
|
|
@@ -35,6 +36,7 @@ import { InitUserCommandInput, InitUserCommandOutput } from "./commands/InitUser
|
|
|
35
36
|
import { LinkEmailCommandInput, LinkEmailCommandOutput } from "./commands/LinkEmailCommand";
|
|
36
37
|
import { LinkSocialCommandInput, LinkSocialCommandOutput } from "./commands/LinkSocialCommand";
|
|
37
38
|
import { ListMyDevicesCommandInput, ListMyDevicesCommandOutput } from "./commands/ListMyDevicesCommand";
|
|
39
|
+
import { RecordSuggestionCommandInput, RecordSuggestionCommandOutput } from "./commands/RecordSuggestionCommand";
|
|
38
40
|
import { RegisterDeviceCommandInput, RegisterDeviceCommandOutput } from "./commands/RegisterDeviceCommand";
|
|
39
41
|
import { RegisterPhoneCommandInput, RegisterPhoneCommandOutput } from "./commands/RegisterPhoneCommand";
|
|
40
42
|
import { RegisterPushTokenCommandInput, RegisterPushTokenCommandOutput } from "./commands/RegisterPushTokenCommand";
|
|
@@ -44,6 +46,7 @@ import { RequestPhoneOtpCommandInput, RequestPhoneOtpCommandOutput } from "./com
|
|
|
44
46
|
import { RequestPhoneUpdateOtpCommandInput, RequestPhoneUpdateOtpCommandOutput } from "./commands/RequestPhoneUpdateOtpCommand";
|
|
45
47
|
import { RevokeDeviceCommandInput, RevokeDeviceCommandOutput } from "./commands/RevokeDeviceCommand";
|
|
46
48
|
import { SendAdminLinkOtpCommandInput, SendAdminLinkOtpCommandOutput } from "./commands/SendAdminLinkOtpCommand";
|
|
49
|
+
import { SetAccountStateCommandInput, SetAccountStateCommandOutput } from "./commands/SetAccountStateCommand";
|
|
47
50
|
import { SwipeByUsernameCommandInput, SwipeByUsernameCommandOutput } from "./commands/SwipeByUsernameCommand";
|
|
48
51
|
import { SwipeCommandInput, SwipeCommandOutput } from "./commands/SwipeCommand";
|
|
49
52
|
import { UnhookCommandInput, UnhookCommandOutput } from "./commands/UnhookCommand";
|
|
@@ -69,11 +72,11 @@ export { __Client };
|
|
|
69
72
|
/**
|
|
70
73
|
* @public
|
|
71
74
|
*/
|
|
72
|
-
export type ServiceInputTypes = AuthSocialCommandInput | CompleteLivenessSessionCommandInput | CompleteOnboardingCommandInput | CreateAdminInviteCommandInput | CreateLivenessSessionCommandInput | CreateMediaDownloadUrlCommandInput | CreateMediaUploadUrlCommandInput | DeleteMatchMessagesCommandInput | DeleteProfileCommandInput | DeletePushTokenCommandInput | DiscoverCommandInput | GenerateDownloadUrlCommandInput | GenerateInviteCommandInput | GenerateUploadUrlCommandInput | GetAdminPhoneStatusCommandInput | GetAiContextMatchCommandInput | GetChatSettingsCommandInput | GetCredentialReadinessCommandInput | GetLivenessStatusCommandInput | GetMatchCommandInput | GetMyProfileCommandInput | GetNotificationPreferencesCommandInput | GetParticipantRegistryCommandInput | GetPreferencesCommandInput | GetProfileCommandInput | GetReceivedLikesCommandInput | GetRosesCommandInput | GetStateCommandInput | GetUserByEmailCommandInput | GetUserCommandInput | GetUserIdByUsernameCommandInput | IndexLocationCommandInput | InitUserCommandInput | LinkEmailCommandInput | LinkSocialCommandInput | ListMyDevicesCommandInput | RegisterDeviceCommandInput | RegisterPhoneCommandInput | RegisterPushTokenCommandInput | RemoveLocationCommandInput | RequestEmailOtpCommandInput | RequestPhoneOtpCommandInput | RequestPhoneUpdateOtpCommandInput | RevokeDeviceCommandInput | SendAdminLinkOtpCommandInput | SwipeByUsernameCommandInput | SwipeCommandInput | UnhookCommandInput | UnlinkSocialCommandInput | UpdateChatSettingsCommandInput | UpdateEntitlementsCommandInput | UpdatePhoneNumberCommandInput | UpdatePreferencesCommandInput | UpdateProfileCommandInput | UpdateUsernameCommandInput | UpgradeUserCommandInput | ValidateInviteCommandInput | VerifyAdminLinkOtpCommandInput;
|
|
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;
|
|
73
76
|
/**
|
|
74
77
|
* @public
|
|
75
78
|
*/
|
|
76
|
-
export type ServiceOutputTypes = AuthSocialCommandOutput | CompleteLivenessSessionCommandOutput | CompleteOnboardingCommandOutput | CreateAdminInviteCommandOutput | CreateLivenessSessionCommandOutput | CreateMediaDownloadUrlCommandOutput | CreateMediaUploadUrlCommandOutput | DeleteMatchMessagesCommandOutput | DeleteProfileCommandOutput | DeletePushTokenCommandOutput | DiscoverCommandOutput | GenerateDownloadUrlCommandOutput | GenerateInviteCommandOutput | GenerateUploadUrlCommandOutput | GetAdminPhoneStatusCommandOutput | GetAiContextMatchCommandOutput | GetChatSettingsCommandOutput | GetCredentialReadinessCommandOutput | GetLivenessStatusCommandOutput | GetMatchCommandOutput | GetMyProfileCommandOutput | GetNotificationPreferencesCommandOutput | GetParticipantRegistryCommandOutput | GetPreferencesCommandOutput | GetProfileCommandOutput | GetReceivedLikesCommandOutput | GetRosesCommandOutput | GetStateCommandOutput | GetUserByEmailCommandOutput | GetUserCommandOutput | GetUserIdByUsernameCommandOutput | IndexLocationCommandOutput | InitUserCommandOutput | LinkEmailCommandOutput | LinkSocialCommandOutput | ListMyDevicesCommandOutput | RegisterDeviceCommandOutput | RegisterPhoneCommandOutput | RegisterPushTokenCommandOutput | RemoveLocationCommandOutput | RequestEmailOtpCommandOutput | RequestPhoneOtpCommandOutput | RequestPhoneUpdateOtpCommandOutput | RevokeDeviceCommandOutput | SendAdminLinkOtpCommandOutput | SwipeByUsernameCommandOutput | SwipeCommandOutput | UnhookCommandOutput | UnlinkSocialCommandOutput | UpdateChatSettingsCommandOutput | UpdateEntitlementsCommandOutput | UpdatePhoneNumberCommandOutput | UpdatePreferencesCommandOutput | UpdateProfileCommandOutput | UpdateUsernameCommandOutput | UpgradeUserCommandOutput | ValidateInviteCommandOutput | VerifyAdminLinkOtpCommandOutput;
|
|
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;
|
|
77
80
|
/**
|
|
78
81
|
* @public
|
|
79
82
|
*/
|
|
@@ -27,8 +27,10 @@ declare const DiscoverCommand_base: {
|
|
|
27
27
|
getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
|
|
28
28
|
};
|
|
29
29
|
/**
|
|
30
|
-
*
|
|
31
|
-
*
|
|
30
|
+
* The discover feed. Without `category` every tier gets one mixed deck: mostly OneHook Intelligence
|
|
31
|
+
* profile matches plus a Mr. OneHook share from the caller's OneHook suggestions. Super and above may
|
|
32
|
+
* pass `category` to get only one kind (403 `PREMIUM_REQUIRED` otherwise). Every candidate says who
|
|
33
|
+
* found it (`matchFinder`) and why (`reasoning`). `availableCategories` lists what the caller may pick.
|
|
32
34
|
* @example
|
|
33
35
|
* Use a bare-bones client and the command you need to make an API call.
|
|
34
36
|
* ```javascript
|
|
@@ -38,6 +40,7 @@ declare const DiscoverCommand_base: {
|
|
|
38
40
|
* const input = { // DiscoverRequest
|
|
39
41
|
* lat: Number("double"), // required
|
|
40
42
|
* lon: Number("double"), // required
|
|
43
|
+
* category: "ALL" || "PROFILE_MATCH" || "SIMILAR" || "ONEHOOK_SUGGESTED",
|
|
41
44
|
* };
|
|
42
45
|
* const command = new DiscoverCommand(input);
|
|
43
46
|
* const response = await client.send(command);
|
|
@@ -47,10 +50,20 @@ declare const DiscoverCommand_base: {
|
|
|
47
50
|
* // userId: "STRING_VALUE", // required
|
|
48
51
|
* // distanceKm: Number("double"), // required
|
|
49
52
|
* // score: Number("double"), // required
|
|
53
|
+
* // matchFinder: "ONEHOOK_INTELLIGENCE" || "MR_ONEHOOK", // required
|
|
54
|
+
* // matchFinderLabel: "STRING_VALUE", // required
|
|
55
|
+
* // reasoning: "STRING_VALUE", // required
|
|
56
|
+
* // suggestionId: "STRING_VALUE",
|
|
57
|
+
* // suggestionBasis: "EXPLICIT_REQUEST" || "INFERRED_INCLINATION",
|
|
58
|
+
* // similarity: Number("double"),
|
|
50
59
|
* // },
|
|
51
60
|
* // ],
|
|
52
61
|
* // count: Number("int"), // required
|
|
53
62
|
* // algorithm: "STRING_VALUE", // required
|
|
63
|
+
* // category: "ALL" || "PROFILE_MATCH" || "SIMILAR" || "ONEHOOK_SUGGESTED", // required
|
|
64
|
+
* // availableCategories: [ // DiscoveryCategoryList // required
|
|
65
|
+
* // "ALL" || "PROFILE_MATCH" || "SIMILAR" || "ONEHOOK_SUGGESTED",
|
|
66
|
+
* // ],
|
|
54
67
|
* // };
|
|
55
68
|
*
|
|
56
69
|
* ```
|
|
@@ -63,12 +76,15 @@ declare const DiscoverCommand_base: {
|
|
|
63
76
|
*
|
|
64
77
|
* @throws {@link BadRequestError} (client fault)
|
|
65
78
|
*
|
|
79
|
+
* @throws {@link ForbiddenError} (client fault)
|
|
80
|
+
*
|
|
66
81
|
* @throws {@link InternalServerError} (server fault)
|
|
67
82
|
*
|
|
68
83
|
* @throws {@link OneHookServiceException}
|
|
69
84
|
* <p>Base exception class for all service exceptions from OneHook service.</p>
|
|
70
85
|
*
|
|
71
86
|
*
|
|
87
|
+
* @public
|
|
72
88
|
*/
|
|
73
89
|
export declare class DiscoverCommand extends DiscoverCommand_base {
|
|
74
90
|
/** @internal type navigation helper, not in runtime. */
|