onehook-api-client 1.0.29 → 1.0.31
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +14 -14
- package/dist-cjs/OneHook.js +4 -4
- package/dist-cjs/commands/{DiscoverByIntentCommand.js → CorrectBirthDateCommand.js} +7 -7
- package/dist-cjs/commands/{DiscoverSuggestedCommand.js → RecordSuggestionCommand.js} +7 -7
- package/dist-cjs/commands/index.js +2 -2
- package/dist-cjs/models/models_0.js +7 -1
- package/dist-cjs/protocols/Aws_restJson1.js +104 -71
- package/dist-cjs/telemetry/index.js +45 -5
- package/dist-es/OneHook.js +4 -4
- package/dist-es/commands/{DiscoverByIntentCommand.js → CorrectBirthDateCommand.js} +6 -6
- package/dist-es/commands/RecordSuggestionCommand.js +17 -0
- package/dist-es/commands/index.js +2 -2
- package/dist-es/models/models_0.js +6 -0
- package/dist-es/protocols/Aws_restJson1.js +97 -64
- package/dist-es/telemetry/index.js +44 -4
- package/dist-types/OneHook.d.ts +14 -14
- package/dist-types/OneHookClient.d.ts +4 -4
- package/dist-types/commands/CorrectBirthDateCommand.d.ts +88 -0
- package/dist-types/commands/DiscoverCommand.d.ts +14 -2
- package/dist-types/commands/GetMyProfileCommand.d.ts +9 -0
- package/dist-types/commands/GetProfileCommand.d.ts +9 -0
- package/dist-types/commands/RecordSuggestionCommand.d.ts +83 -0
- package/dist-types/commands/UpdateProfileCommand.d.ts +8 -0
- package/dist-types/commands/index.d.ts +2 -2
- package/dist-types/models/models_0.d.ts +182 -15
- package/dist-types/protocols/Aws_restJson1.d.ts +18 -18
- package/dist-types/telemetry/index.d.ts +45 -2
- package/package.json +1 -1
- package/telemetry/TelemetryCatalog.kt +62 -7
- package/telemetry/TelemetryCatalog.swift +52 -6
- package/telemetry/telemetry-catalog.json +601 -246
- package/dist-es/commands/DiscoverSuggestedCommand.js +0 -17
- package/dist-types/commands/DiscoverByIntentCommand.d.ts +0 -97
- package/dist-types/commands/DiscoverSuggestedCommand.d.ts +0 -92
|
@@ -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);
|
|
@@ -49,12 +52,18 @@ declare const DiscoverCommand_base: {
|
|
|
49
52
|
* // score: Number("double"), // required
|
|
50
53
|
* // matchFinder: "ONEHOOK_INTELLIGENCE" || "MR_ONEHOOK", // required
|
|
51
54
|
* // matchFinderLabel: "STRING_VALUE", // required
|
|
55
|
+
* // reasoning: "STRING_VALUE", // required
|
|
56
|
+
* // suggestionId: "STRING_VALUE",
|
|
52
57
|
* // suggestionBasis: "EXPLICIT_REQUEST" || "INFERRED_INCLINATION",
|
|
53
58
|
* // similarity: Number("double"),
|
|
54
59
|
* // },
|
|
55
60
|
* // ],
|
|
56
61
|
* // count: Number("int"), // required
|
|
57
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
|
+
* // ],
|
|
58
67
|
* // };
|
|
59
68
|
*
|
|
60
69
|
* ```
|
|
@@ -67,12 +76,15 @@ declare const DiscoverCommand_base: {
|
|
|
67
76
|
*
|
|
68
77
|
* @throws {@link BadRequestError} (client fault)
|
|
69
78
|
*
|
|
79
|
+
* @throws {@link ForbiddenError} (client fault)
|
|
80
|
+
*
|
|
70
81
|
* @throws {@link InternalServerError} (server fault)
|
|
71
82
|
*
|
|
72
83
|
* @throws {@link OneHookServiceException}
|
|
73
84
|
* <p>Base exception class for all service exceptions from OneHook service.</p>
|
|
74
85
|
*
|
|
75
86
|
*
|
|
87
|
+
* @public
|
|
76
88
|
*/
|
|
77
89
|
export declare class DiscoverCommand extends DiscoverCommand_base {
|
|
78
90
|
/** @internal type navigation helper, not in runtime. */
|
|
@@ -106,6 +106,15 @@ declare const GetMyProfileCommand_base: {
|
|
|
106
106
|
* // educationLevel: "STRING_VALUE",
|
|
107
107
|
* // politicalView: "STRING_VALUE",
|
|
108
108
|
* // languages: "<StringList>",
|
|
109
|
+
* // birthDetails: { // BirthDetails
|
|
110
|
+
* // date: "STRING_VALUE",
|
|
111
|
+
* // time: "STRING_VALUE",
|
|
112
|
+
* // timeZone: "STRING_VALUE",
|
|
113
|
+
* // latitude: Number("double"),
|
|
114
|
+
* // longitude: Number("double"),
|
|
115
|
+
* // provisional: true || false,
|
|
116
|
+
* // },
|
|
117
|
+
* // birthDateOnFile: true || false,
|
|
109
118
|
* // };
|
|
110
119
|
*
|
|
111
120
|
* ```
|
|
@@ -107,6 +107,15 @@ declare const GetProfileCommand_base: {
|
|
|
107
107
|
* // educationLevel: "STRING_VALUE",
|
|
108
108
|
* // politicalView: "STRING_VALUE",
|
|
109
109
|
* // languages: "<StringList>",
|
|
110
|
+
* // birthDetails: { // BirthDetails
|
|
111
|
+
* // date: "STRING_VALUE",
|
|
112
|
+
* // time: "STRING_VALUE",
|
|
113
|
+
* // timeZone: "STRING_VALUE",
|
|
114
|
+
* // latitude: Number("double"),
|
|
115
|
+
* // longitude: Number("double"),
|
|
116
|
+
* // provisional: true || false,
|
|
117
|
+
* // },
|
|
118
|
+
* // birthDateOnFile: true || false,
|
|
110
119
|
* // };
|
|
111
120
|
*
|
|
112
121
|
* ```
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import { OneHookClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../OneHookClient";
|
|
2
|
+
import { RecordSuggestionRequest, RecordSuggestionResponse } 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 RecordSuggestionCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface RecordSuggestionCommandInput extends RecordSuggestionRequest {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link RecordSuggestionCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface RecordSuggestionCommandOutput extends RecordSuggestionResponse, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const RecordSuggestionCommand_base: {
|
|
25
|
+
new (input: RecordSuggestionCommandInput): import("@smithy/smithy-client").CommandImpl<RecordSuggestionCommandInput, RecordSuggestionCommandOutput, OneHookClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (__0_0: RecordSuggestionCommandInput): import("@smithy/smithy-client").CommandImpl<RecordSuggestionCommandInput, RecordSuggestionCommandOutput, OneHookClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* Records a OneHook suggestion: OneHook AI's analysis of who the caller is looking for, after the
|
|
31
|
+
* caller explicitly asked. Nothing is returned but the stored suggestion's id; matching candidates
|
|
32
|
+
* appear in `Discover` as `MR_ONEHOOK` cards carrying `reasoning`. Super and above (403
|
|
33
|
+
* `PREMIUM_REQUIRED` otherwise); 503 when the embedding model is unavailable. Each member keeps at most
|
|
34
|
+
* 10 suggestions; the least useful one (by liked/shown history) is replaced. The prompt is never logged.
|
|
35
|
+
* @example
|
|
36
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
37
|
+
* ```javascript
|
|
38
|
+
* import { OneHookClient, RecordSuggestionCommand } from "onehook-api-client"; // ES Modules import
|
|
39
|
+
* // const { OneHookClient, RecordSuggestionCommand } = require("onehook-api-client"); // CommonJS import
|
|
40
|
+
* const client = new OneHookClient(config);
|
|
41
|
+
* const input = { // RecordSuggestionRequest
|
|
42
|
+
* prompt: "STRING_VALUE", // required
|
|
43
|
+
* reasoning: "STRING_VALUE", // required
|
|
44
|
+
* };
|
|
45
|
+
* const command = new RecordSuggestionCommand(input);
|
|
46
|
+
* const response = await client.send(command);
|
|
47
|
+
* // { // RecordSuggestionResponse
|
|
48
|
+
* // suggestionId: "STRING_VALUE", // required
|
|
49
|
+
* // };
|
|
50
|
+
*
|
|
51
|
+
* ```
|
|
52
|
+
*
|
|
53
|
+
* @param RecordSuggestionCommandInput - {@link RecordSuggestionCommandInput}
|
|
54
|
+
* @returns {@link RecordSuggestionCommandOutput}
|
|
55
|
+
* @see {@link RecordSuggestionCommandInput} for command's `input` shape.
|
|
56
|
+
* @see {@link RecordSuggestionCommandOutput} for command's `response` shape.
|
|
57
|
+
* @see {@link OneHookClientResolvedConfig | config} for OneHookClient's `config` shape.
|
|
58
|
+
*
|
|
59
|
+
* @throws {@link BadRequestError} (client fault)
|
|
60
|
+
*
|
|
61
|
+
* @throws {@link ForbiddenError} (client fault)
|
|
62
|
+
*
|
|
63
|
+
* @throws {@link InternalServerError} (server fault)
|
|
64
|
+
*
|
|
65
|
+
* @throws {@link OneHookServiceException}
|
|
66
|
+
* <p>Base exception class for all service exceptions from OneHook service.</p>
|
|
67
|
+
*
|
|
68
|
+
*
|
|
69
|
+
* @public
|
|
70
|
+
*/
|
|
71
|
+
export declare class RecordSuggestionCommand extends RecordSuggestionCommand_base {
|
|
72
|
+
/** @internal type navigation helper, not in runtime. */
|
|
73
|
+
protected static __types: {
|
|
74
|
+
api: {
|
|
75
|
+
input: RecordSuggestionRequest;
|
|
76
|
+
output: RecordSuggestionResponse;
|
|
77
|
+
};
|
|
78
|
+
sdk: {
|
|
79
|
+
input: RecordSuggestionCommandInput;
|
|
80
|
+
output: RecordSuggestionCommandOutput;
|
|
81
|
+
};
|
|
82
|
+
};
|
|
83
|
+
}
|
|
@@ -95,6 +95,14 @@ declare const UpdateProfileCommand_base: {
|
|
|
95
95
|
* educationLevel: "STRING_VALUE",
|
|
96
96
|
* politicalView: "STRING_VALUE",
|
|
97
97
|
* languages: "<StringList>",
|
|
98
|
+
* birthDetails: { // BirthDetails
|
|
99
|
+
* date: "STRING_VALUE",
|
|
100
|
+
* time: "STRING_VALUE",
|
|
101
|
+
* timeZone: "STRING_VALUE",
|
|
102
|
+
* latitude: Number("double"),
|
|
103
|
+
* longitude: Number("double"),
|
|
104
|
+
* provisional: true || false,
|
|
105
|
+
* },
|
|
98
106
|
* };
|
|
99
107
|
* const command = new UpdateProfileCommand(input);
|
|
100
108
|
* const response = await client.send(command);
|
|
@@ -34,18 +34,18 @@ export * from "./UpdateUsernameCommand";
|
|
|
34
34
|
export * from "./ValidateInviteCommand";
|
|
35
35
|
export * from "./VerifyAdminLinkOtpCommand";
|
|
36
36
|
export * from "./DiscoverCommand";
|
|
37
|
-
export * from "./DiscoverByIntentCommand";
|
|
38
|
-
export * from "./DiscoverSuggestedCommand";
|
|
39
37
|
export * from "./GetNotificationPreferencesCommand";
|
|
40
38
|
export * from "./GetPreferencesCommand";
|
|
41
39
|
export * from "./GetReceivedLikesCommand";
|
|
42
40
|
export * from "./GetRosesCommand";
|
|
43
41
|
export * from "./IndexLocationCommand";
|
|
42
|
+
export * from "./RecordSuggestionCommand";
|
|
44
43
|
export * from "./RemoveLocationCommand";
|
|
45
44
|
export * from "./SwipeCommand";
|
|
46
45
|
export * from "./SwipeByUsernameCommand";
|
|
47
46
|
export * from "./UpdatePreferencesCommand";
|
|
48
47
|
export * from "./CompleteLivenessSessionCommand";
|
|
48
|
+
export * from "./CorrectBirthDateCommand";
|
|
49
49
|
export * from "./CreateLivenessSessionCommand";
|
|
50
50
|
export * from "./DeleteProfileCommand";
|
|
51
51
|
export * from "./GenerateDownloadUrlCommand";
|
|
@@ -1091,12 +1091,43 @@ export interface VerifyAdminLinkOtpResponse {
|
|
|
1091
1091
|
userId: string | undefined;
|
|
1092
1092
|
username: string | undefined;
|
|
1093
1093
|
}
|
|
1094
|
+
/**
|
|
1095
|
+
* @public
|
|
1096
|
+
* @enum
|
|
1097
|
+
*/
|
|
1098
|
+
export declare const DiscoveryCategory: {
|
|
1099
|
+
/**
|
|
1100
|
+
* Mixed deck (default, every tier).
|
|
1101
|
+
*/
|
|
1102
|
+
readonly ALL: "ALL";
|
|
1103
|
+
/**
|
|
1104
|
+
* Mr. OneHook: every OneHook suggestion (asked and inferred).
|
|
1105
|
+
*/
|
|
1106
|
+
readonly ONEHOOK_SUGGESTED: "ONEHOOK_SUGGESTED";
|
|
1107
|
+
/**
|
|
1108
|
+
* OneHook Intelligence only: profiles whose details match the caller's details and preferences.
|
|
1109
|
+
*/
|
|
1110
|
+
readonly PROFILE_MATCH: "PROFILE_MATCH";
|
|
1111
|
+
/**
|
|
1112
|
+
* Mr. OneHook, inferred: people similar to those the caller keeps liking.
|
|
1113
|
+
*/
|
|
1114
|
+
readonly SIMILAR: "SIMILAR";
|
|
1115
|
+
};
|
|
1116
|
+
/**
|
|
1117
|
+
* @public
|
|
1118
|
+
*/
|
|
1119
|
+
export type DiscoveryCategory = typeof DiscoveryCategory[keyof typeof DiscoveryCategory];
|
|
1094
1120
|
/**
|
|
1095
1121
|
* @public
|
|
1096
1122
|
*/
|
|
1097
1123
|
export interface DiscoverRequest {
|
|
1098
1124
|
lat: number | undefined;
|
|
1099
1125
|
lon: number | undefined;
|
|
1126
|
+
/**
|
|
1127
|
+
* Optional. Omit (or `ALL`) for the mixed deck. Other values need Super or above.
|
|
1128
|
+
* @public
|
|
1129
|
+
*/
|
|
1130
|
+
category?: DiscoveryCategory | undefined;
|
|
1100
1131
|
}
|
|
1101
1132
|
/**
|
|
1102
1133
|
* @public
|
|
@@ -1104,8 +1135,8 @@ export interface DiscoverRequest {
|
|
|
1104
1135
|
*/
|
|
1105
1136
|
export declare const MatchFinder: {
|
|
1106
1137
|
/**
|
|
1107
|
-
* OneHook suggested the candidate: the caller asked OneHook AI
|
|
1108
|
-
* inferred the caller's
|
|
1138
|
+
* OneHook suggested the candidate: from a suggestion the caller asked OneHook AI for, or one OneHook
|
|
1139
|
+
* inferred from the caller's likes.
|
|
1109
1140
|
*/
|
|
1110
1141
|
readonly MR_ONEHOOK: "MR_ONEHOOK";
|
|
1111
1142
|
/**
|
|
@@ -1148,14 +1179,25 @@ export interface CandidateDto {
|
|
|
1148
1179
|
*/
|
|
1149
1180
|
matchFinderLabel: string | undefined;
|
|
1150
1181
|
/**
|
|
1151
|
-
*
|
|
1152
|
-
*
|
|
1182
|
+
* Why this candidate is shown, for the caller (e.g. "You asked OneHook for an outdoorsy reader ·
|
|
1183
|
+
* You both like hiking").
|
|
1184
|
+
* @public
|
|
1185
|
+
*/
|
|
1186
|
+
reasoning: string | undefined;
|
|
1187
|
+
/**
|
|
1188
|
+
* Only for `MR_ONEHOOK`: the OneHook suggestion that surfaced this candidate.
|
|
1189
|
+
* @public
|
|
1190
|
+
*/
|
|
1191
|
+
suggestionId?: string | undefined;
|
|
1192
|
+
/**
|
|
1193
|
+
* Only for `MR_ONEHOOK`: whether the caller asked OneHook (`EXPLICIT_REQUEST`) or OneHook inferred
|
|
1194
|
+
* the inclination from the caller's likes (`INFERRED_INCLINATION`).
|
|
1153
1195
|
* @public
|
|
1154
1196
|
*/
|
|
1155
1197
|
suggestionBasis?: SuggestionBasis | undefined;
|
|
1156
1198
|
/**
|
|
1157
|
-
* Only for `MR_ONEHOOK`: cosine similarity (-1 to 1) between the
|
|
1158
|
-
*
|
|
1199
|
+
* Only for `MR_ONEHOOK`: cosine similarity (-1 to 1) between the suggestion and the candidate's
|
|
1200
|
+
* profile. Higher is closer.
|
|
1159
1201
|
* @public
|
|
1160
1202
|
*/
|
|
1161
1203
|
similarity?: number | undefined;
|
|
@@ -1167,18 +1209,16 @@ export interface DiscoverResponse {
|
|
|
1167
1209
|
candidates: (CandidateDto)[] | undefined;
|
|
1168
1210
|
count: number | undefined;
|
|
1169
1211
|
algorithm: string | undefined;
|
|
1170
|
-
}
|
|
1171
|
-
/**
|
|
1172
|
-
* @public
|
|
1173
|
-
*/
|
|
1174
|
-
export interface DiscoverByIntentRequest {
|
|
1175
|
-
lat: number | undefined;
|
|
1176
|
-
lon: number | undefined;
|
|
1177
1212
|
/**
|
|
1178
|
-
*
|
|
1213
|
+
* The category that was applied.
|
|
1179
1214
|
* @public
|
|
1180
1215
|
*/
|
|
1181
|
-
|
|
1216
|
+
category: DiscoveryCategory | undefined;
|
|
1217
|
+
/**
|
|
1218
|
+
* Categories the caller's tier may request, for rendering a selector.
|
|
1219
|
+
* @public
|
|
1220
|
+
*/
|
|
1221
|
+
availableCategories: (DiscoveryCategory)[] | undefined;
|
|
1182
1222
|
}
|
|
1183
1223
|
/**
|
|
1184
1224
|
* @public
|
|
@@ -1336,6 +1376,27 @@ export interface LocationRequest {
|
|
|
1336
1376
|
lat: number | undefined;
|
|
1337
1377
|
lon: number | undefined;
|
|
1338
1378
|
}
|
|
1379
|
+
/**
|
|
1380
|
+
* @public
|
|
1381
|
+
*/
|
|
1382
|
+
export interface RecordSuggestionRequest {
|
|
1383
|
+
/**
|
|
1384
|
+
* OneHook AI's analysis of what the caller wants (3 to 1000 characters). Embedded, never logged.
|
|
1385
|
+
* @public
|
|
1386
|
+
*/
|
|
1387
|
+
prompt: string | undefined;
|
|
1388
|
+
/**
|
|
1389
|
+
* Why OneHook is suggesting these people, shown to the caller on each card (1 to 280 characters).
|
|
1390
|
+
* @public
|
|
1391
|
+
*/
|
|
1392
|
+
reasoning: string | undefined;
|
|
1393
|
+
}
|
|
1394
|
+
/**
|
|
1395
|
+
* @public
|
|
1396
|
+
*/
|
|
1397
|
+
export interface RecordSuggestionResponse {
|
|
1398
|
+
suggestionId: string | undefined;
|
|
1399
|
+
}
|
|
1339
1400
|
/**
|
|
1340
1401
|
* @public
|
|
1341
1402
|
*/
|
|
@@ -1604,6 +1665,41 @@ export interface CompleteLivenessSessionResponse {
|
|
|
1604
1665
|
*/
|
|
1605
1666
|
status: string | undefined;
|
|
1606
1667
|
}
|
|
1668
|
+
/**
|
|
1669
|
+
* @public
|
|
1670
|
+
*/
|
|
1671
|
+
export interface CorrectBirthDateRequest {
|
|
1672
|
+
userId: string | undefined;
|
|
1673
|
+
/**
|
|
1674
|
+
* The corrected birth date, `yyyy-MM-dd` (must give an age of 18 to 120).
|
|
1675
|
+
* @public
|
|
1676
|
+
*/
|
|
1677
|
+
date: string | undefined;
|
|
1678
|
+
/**
|
|
1679
|
+
* Why the correction is made (10-500 characters), e.g. "ID document shows 1991-03-02".
|
|
1680
|
+
* @public
|
|
1681
|
+
*/
|
|
1682
|
+
reason: string | undefined;
|
|
1683
|
+
/**
|
|
1684
|
+
* Support ticket or case reference.
|
|
1685
|
+
* @public
|
|
1686
|
+
*/
|
|
1687
|
+
reference: string | undefined;
|
|
1688
|
+
}
|
|
1689
|
+
/**
|
|
1690
|
+
* @public
|
|
1691
|
+
*/
|
|
1692
|
+
export interface CorrectBirthDateResponse {
|
|
1693
|
+
userId: string | undefined;
|
|
1694
|
+
date: string | undefined;
|
|
1695
|
+
age: number | undefined;
|
|
1696
|
+
/**
|
|
1697
|
+
* Corrections used for this member, including this one.
|
|
1698
|
+
* @public
|
|
1699
|
+
*/
|
|
1700
|
+
correctionsUsed: number | undefined;
|
|
1701
|
+
correctionsRemaining: number | undefined;
|
|
1702
|
+
}
|
|
1607
1703
|
/**
|
|
1608
1704
|
* @public
|
|
1609
1705
|
*/
|
|
@@ -1671,6 +1767,47 @@ export interface LivenessStatusResponse {
|
|
|
1671
1767
|
*/
|
|
1672
1768
|
status: string | undefined;
|
|
1673
1769
|
}
|
|
1770
|
+
/**
|
|
1771
|
+
* Birth data. `date` is required (age is derived from it); each extra field unlocks more traditional systems
|
|
1772
|
+
* (`time` + `timeZone`: Moon nakshatra, hour pillar, Zi Wei palaces; `latitude` + `longitude`:
|
|
1773
|
+
* Ascendant, Arabic Parts, Hellenistic sect). Never shown to other members.
|
|
1774
|
+
* @public
|
|
1775
|
+
*/
|
|
1776
|
+
export interface BirthDetails {
|
|
1777
|
+
/**
|
|
1778
|
+
* Local birth date (day, month and year), `yyyy-MM-dd`. Must give an age of 18 to 120.
|
|
1779
|
+
* Set once at onboarding; immutable afterwards.
|
|
1780
|
+
* @public
|
|
1781
|
+
*/
|
|
1782
|
+
date?: string | undefined;
|
|
1783
|
+
/**
|
|
1784
|
+
* Local birth time, `HH:mm` (24h). Requires `timeZone`.
|
|
1785
|
+
* @public
|
|
1786
|
+
*/
|
|
1787
|
+
time?: string | undefined;
|
|
1788
|
+
/**
|
|
1789
|
+
* IANA time zone of the birthplace, e.g. `Asia/Kolkata`.
|
|
1790
|
+
* @public
|
|
1791
|
+
*/
|
|
1792
|
+
timeZone?: string | undefined;
|
|
1793
|
+
/**
|
|
1794
|
+
* Birthplace latitude in degrees (north positive). Send together with `longitude`.
|
|
1795
|
+
* @public
|
|
1796
|
+
*/
|
|
1797
|
+
latitude?: number | undefined;
|
|
1798
|
+
/**
|
|
1799
|
+
* Birthplace longitude in degrees (east positive). Send together with `latitude`.
|
|
1800
|
+
* @public
|
|
1801
|
+
*/
|
|
1802
|
+
longitude?: number | undefined;
|
|
1803
|
+
/**
|
|
1804
|
+
* Server-set, ignored on input. True when `date` is a placeholder added for a profile created
|
|
1805
|
+
* before the birth date was compulsory. The member may replace a provisional date ONCE with
|
|
1806
|
+
* their real one; clients should prompt for it.
|
|
1807
|
+
* @public
|
|
1808
|
+
*/
|
|
1809
|
+
provisional?: boolean | undefined;
|
|
1810
|
+
}
|
|
1674
1811
|
/**
|
|
1675
1812
|
* A user-authored conversation opener: free text plus an optional image.
|
|
1676
1813
|
* The image (if present) is moderated by the same async decency flow as profile pictures
|
|
@@ -1696,6 +1833,10 @@ export interface ProfileResponse {
|
|
|
1696
1833
|
userId: string | undefined;
|
|
1697
1834
|
displayName?: string | undefined;
|
|
1698
1835
|
bio?: string | undefined;
|
|
1836
|
+
/**
|
|
1837
|
+
* Derived from the immutable birth date on every read (stored value only for legacy profiles without one).
|
|
1838
|
+
* @public
|
|
1839
|
+
*/
|
|
1699
1840
|
age?: number | undefined;
|
|
1700
1841
|
gender?: string | undefined;
|
|
1701
1842
|
interestedIn?: (string)[] | undefined;
|
|
@@ -1757,6 +1898,17 @@ export interface ProfileResponse {
|
|
|
1757
1898
|
educationLevel?: string | undefined;
|
|
1758
1899
|
politicalView?: string | undefined;
|
|
1759
1900
|
languages?: (string)[] | undefined;
|
|
1901
|
+
/**
|
|
1902
|
+
* The caller's own birth details. Returned only to the profile owner; absent for everyone else.
|
|
1903
|
+
* @public
|
|
1904
|
+
*/
|
|
1905
|
+
birthDetails?: BirthDetails | undefined;
|
|
1906
|
+
/**
|
|
1907
|
+
* True when a real (non-provisional) birth date is on file. Returned to every viewer; reveals
|
|
1908
|
+
* nothing about the date. State's onboarding gate requires it.
|
|
1909
|
+
* @public
|
|
1910
|
+
*/
|
|
1911
|
+
birthDateOnFile?: boolean | undefined;
|
|
1760
1912
|
}
|
|
1761
1913
|
/**
|
|
1762
1914
|
* @public
|
|
@@ -1770,6 +1922,12 @@ export interface GetProfileRequest {
|
|
|
1770
1922
|
export interface ProfileUpdateRequest {
|
|
1771
1923
|
displayName?: string | undefined;
|
|
1772
1924
|
bio?: string | undefined;
|
|
1925
|
+
/**
|
|
1926
|
+
* Deprecated and ignored: age is derived from `birthDetails.date` and cannot be set or changed.
|
|
1927
|
+
*
|
|
1928
|
+
* @deprecated
|
|
1929
|
+
* @public
|
|
1930
|
+
*/
|
|
1773
1931
|
age?: number | undefined;
|
|
1774
1932
|
gender?: string | undefined;
|
|
1775
1933
|
interestedIn?: (string)[] | undefined;
|
|
@@ -1806,6 +1964,15 @@ export interface ProfileUpdateRequest {
|
|
|
1806
1964
|
educationLevel?: string | undefined;
|
|
1807
1965
|
politicalView?: string | undefined;
|
|
1808
1966
|
languages?: (string)[] | undefined;
|
|
1967
|
+
/**
|
|
1968
|
+
* Birth details. `date` is REQUIRED when the profile is first created (the member's age is
|
|
1969
|
+
* derived from it, and must be 18 or over) and can NEVER be changed afterwards: a different or
|
|
1970
|
+
* empty date returns 400 (re-sending the same date is fine). The other
|
|
1971
|
+
* fields are optional, can be added at onboarding or later, and only refine traditional
|
|
1972
|
+
* compatibility (Kundali, natal chart, Bazi, …). Omit the object to keep the stored value.
|
|
1973
|
+
* @public
|
|
1974
|
+
*/
|
|
1975
|
+
birthDetails?: BirthDetails | undefined;
|
|
1809
1976
|
}
|
|
1810
1977
|
/**
|
|
1811
1978
|
* @public
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { AuthSocialCommandInput, AuthSocialCommandOutput } from "../commands/AuthSocialCommand";
|
|
2
2
|
import { CompleteLivenessSessionCommandInput, CompleteLivenessSessionCommandOutput } from "../commands/CompleteLivenessSessionCommand";
|
|
3
3
|
import { CompleteOnboardingCommandInput, CompleteOnboardingCommandOutput } from "../commands/CompleteOnboardingCommand";
|
|
4
|
+
import { CorrectBirthDateCommandInput, CorrectBirthDateCommandOutput } from "../commands/CorrectBirthDateCommand";
|
|
4
5
|
import { CreateAdminInviteCommandInput, CreateAdminInviteCommandOutput } from "../commands/CreateAdminInviteCommand";
|
|
5
6
|
import { CreateLivenessSessionCommandInput, CreateLivenessSessionCommandOutput } from "../commands/CreateLivenessSessionCommand";
|
|
6
7
|
import { CreateMediaDownloadUrlCommandInput, CreateMediaDownloadUrlCommandOutput } from "../commands/CreateMediaDownloadUrlCommand";
|
|
@@ -8,9 +9,7 @@ import { CreateMediaUploadUrlCommandInput, CreateMediaUploadUrlCommandOutput } f
|
|
|
8
9
|
import { DeleteMatchMessagesCommandInput, DeleteMatchMessagesCommandOutput } from "../commands/DeleteMatchMessagesCommand";
|
|
9
10
|
import { DeleteProfileCommandInput, DeleteProfileCommandOutput } from "../commands/DeleteProfileCommand";
|
|
10
11
|
import { DeletePushTokenCommandInput, DeletePushTokenCommandOutput } from "../commands/DeletePushTokenCommand";
|
|
11
|
-
import { DiscoverByIntentCommandInput, DiscoverByIntentCommandOutput } from "../commands/DiscoverByIntentCommand";
|
|
12
12
|
import { DiscoverCommandInput, DiscoverCommandOutput } from "../commands/DiscoverCommand";
|
|
13
|
-
import { DiscoverSuggestedCommandInput, DiscoverSuggestedCommandOutput } from "../commands/DiscoverSuggestedCommand";
|
|
14
13
|
import { GenerateDownloadUrlCommandInput, GenerateDownloadUrlCommandOutput } from "../commands/GenerateDownloadUrlCommand";
|
|
15
14
|
import { GenerateInviteCommandInput, GenerateInviteCommandOutput } from "../commands/GenerateInviteCommand";
|
|
16
15
|
import { GenerateUploadUrlCommandInput, GenerateUploadUrlCommandOutput } from "../commands/GenerateUploadUrlCommand";
|
|
@@ -37,6 +36,7 @@ import { InitUserCommandInput, InitUserCommandOutput } from "../commands/InitUse
|
|
|
37
36
|
import { LinkEmailCommandInput, LinkEmailCommandOutput } from "../commands/LinkEmailCommand";
|
|
38
37
|
import { LinkSocialCommandInput, LinkSocialCommandOutput } from "../commands/LinkSocialCommand";
|
|
39
38
|
import { ListMyDevicesCommandInput, ListMyDevicesCommandOutput } from "../commands/ListMyDevicesCommand";
|
|
39
|
+
import { RecordSuggestionCommandInput, RecordSuggestionCommandOutput } from "../commands/RecordSuggestionCommand";
|
|
40
40
|
import { RegisterDeviceCommandInput, RegisterDeviceCommandOutput } from "../commands/RegisterDeviceCommand";
|
|
41
41
|
import { RegisterPhoneCommandInput, RegisterPhoneCommandOutput } from "../commands/RegisterPhoneCommand";
|
|
42
42
|
import { RegisterPushTokenCommandInput, RegisterPushTokenCommandOutput } from "../commands/RegisterPushTokenCommand";
|
|
@@ -206,14 +206,6 @@ export declare const se_VerifyAdminLinkOtpCommand: (input: VerifyAdminLinkOtpCom
|
|
|
206
206
|
* serializeAws_restJson1DiscoverCommand
|
|
207
207
|
*/
|
|
208
208
|
export declare const se_DiscoverCommand: (input: DiscoverCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
209
|
-
/**
|
|
210
|
-
* serializeAws_restJson1DiscoverByIntentCommand
|
|
211
|
-
*/
|
|
212
|
-
export declare const se_DiscoverByIntentCommand: (input: DiscoverByIntentCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
213
|
-
/**
|
|
214
|
-
* serializeAws_restJson1DiscoverSuggestedCommand
|
|
215
|
-
*/
|
|
216
|
-
export declare const se_DiscoverSuggestedCommand: (input: DiscoverSuggestedCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
217
209
|
/**
|
|
218
210
|
* serializeAws_restJson1GetNotificationPreferencesCommand
|
|
219
211
|
*/
|
|
@@ -234,6 +226,10 @@ export declare const se_GetRosesCommand: (input: GetRosesCommandInput, context:
|
|
|
234
226
|
* serializeAws_restJson1IndexLocationCommand
|
|
235
227
|
*/
|
|
236
228
|
export declare const se_IndexLocationCommand: (input: IndexLocationCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
229
|
+
/**
|
|
230
|
+
* serializeAws_restJson1RecordSuggestionCommand
|
|
231
|
+
*/
|
|
232
|
+
export declare const se_RecordSuggestionCommand: (input: RecordSuggestionCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
237
233
|
/**
|
|
238
234
|
* serializeAws_restJson1RemoveLocationCommand
|
|
239
235
|
*/
|
|
@@ -254,6 +250,10 @@ export declare const se_UpdatePreferencesCommand: (input: UpdatePreferencesComma
|
|
|
254
250
|
* serializeAws_restJson1CompleteLivenessSessionCommand
|
|
255
251
|
*/
|
|
256
252
|
export declare const se_CompleteLivenessSessionCommand: (input: CompleteLivenessSessionCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
253
|
+
/**
|
|
254
|
+
* serializeAws_restJson1CorrectBirthDateCommand
|
|
255
|
+
*/
|
|
256
|
+
export declare const se_CorrectBirthDateCommand: (input: CorrectBirthDateCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
257
257
|
/**
|
|
258
258
|
* serializeAws_restJson1CreateLivenessSessionCommand
|
|
259
259
|
*/
|
|
@@ -454,14 +454,6 @@ export declare const de_VerifyAdminLinkOtpCommand: (output: __HttpResponse, cont
|
|
|
454
454
|
* deserializeAws_restJson1DiscoverCommand
|
|
455
455
|
*/
|
|
456
456
|
export declare const de_DiscoverCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<DiscoverCommandOutput>;
|
|
457
|
-
/**
|
|
458
|
-
* deserializeAws_restJson1DiscoverByIntentCommand
|
|
459
|
-
*/
|
|
460
|
-
export declare const de_DiscoverByIntentCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<DiscoverByIntentCommandOutput>;
|
|
461
|
-
/**
|
|
462
|
-
* deserializeAws_restJson1DiscoverSuggestedCommand
|
|
463
|
-
*/
|
|
464
|
-
export declare const de_DiscoverSuggestedCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<DiscoverSuggestedCommandOutput>;
|
|
465
457
|
/**
|
|
466
458
|
* deserializeAws_restJson1GetNotificationPreferencesCommand
|
|
467
459
|
*/
|
|
@@ -482,6 +474,10 @@ export declare const de_GetRosesCommand: (output: __HttpResponse, context: __Ser
|
|
|
482
474
|
* deserializeAws_restJson1IndexLocationCommand
|
|
483
475
|
*/
|
|
484
476
|
export declare const de_IndexLocationCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<IndexLocationCommandOutput>;
|
|
477
|
+
/**
|
|
478
|
+
* deserializeAws_restJson1RecordSuggestionCommand
|
|
479
|
+
*/
|
|
480
|
+
export declare const de_RecordSuggestionCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<RecordSuggestionCommandOutput>;
|
|
485
481
|
/**
|
|
486
482
|
* deserializeAws_restJson1RemoveLocationCommand
|
|
487
483
|
*/
|
|
@@ -502,6 +498,10 @@ export declare const de_UpdatePreferencesCommand: (output: __HttpResponse, conte
|
|
|
502
498
|
* deserializeAws_restJson1CompleteLivenessSessionCommand
|
|
503
499
|
*/
|
|
504
500
|
export declare const de_CompleteLivenessSessionCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<CompleteLivenessSessionCommandOutput>;
|
|
501
|
+
/**
|
|
502
|
+
* deserializeAws_restJson1CorrectBirthDateCommand
|
|
503
|
+
*/
|
|
504
|
+
export declare const de_CorrectBirthDateCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<CorrectBirthDateCommandOutput>;
|
|
505
505
|
/**
|
|
506
506
|
* deserializeAws_restJson1CreateLivenessSessionCommand
|
|
507
507
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export declare const TELEMETRY_CATALOG_VERSION = "1.
|
|
2
|
-
export declare const TELEMETRY_CATALOG_HASH = "
|
|
1
|
+
export declare const TELEMETRY_CATALOG_VERSION = "1.8.0";
|
|
2
|
+
export declare const TELEMETRY_CATALOG_HASH = "9a56f9fef0ed4ae7";
|
|
3
3
|
/** Every signal type the ingest accepts. */
|
|
4
4
|
export declare const SignalType: {
|
|
5
5
|
readonly SCREEN_VIEW: "screen_view";
|
|
@@ -20,6 +20,7 @@ export declare const SignalType: {
|
|
|
20
20
|
readonly HOOKED_STATE_VIEW: "hooked_state_view";
|
|
21
21
|
readonly LIKES_YOU_VIEW: "likes_you_view";
|
|
22
22
|
readonly SAFETY_UI_OPEN: "safety_ui_open";
|
|
23
|
+
readonly REPORT_FLOW: "report_flow";
|
|
23
24
|
};
|
|
24
25
|
export type SignalType = (typeof SignalType)[keyof typeof SignalType];
|
|
25
26
|
/** Client platform (from the X-OneHook-Platform header). */
|
|
@@ -185,6 +186,45 @@ export declare const HookedStateAction: {
|
|
|
185
186
|
readonly DISMISS: "dismiss";
|
|
186
187
|
};
|
|
187
188
|
export type HookedStateAction = (typeof HookedStateAction)[keyof typeof HookedStateAction];
|
|
189
|
+
/** Member-report reason category the user chose. Mirrors the backend ReportCategory taxonomy (packages/matching ReportCategory / MODERATION.md section 1) so telemetry segments by the same codes the report API records. Carries no free text. */
|
|
190
|
+
export declare const ReportCategory: {
|
|
191
|
+
readonly HARASSMENT: "HARASSMENT";
|
|
192
|
+
readonly THREATS_VIOLENCE: "THREATS_VIOLENCE";
|
|
193
|
+
readonly SEXUAL_CONTENT_NONCONSENT: "SEXUAL_CONTENT_NONCONSENT";
|
|
194
|
+
readonly MINOR_SAFETY: "MINOR_SAFETY";
|
|
195
|
+
readonly SCAM_FRAUD: "SCAM_FRAUD";
|
|
196
|
+
readonly FAKE_IMPERSONATION: "FAKE_IMPERSONATION";
|
|
197
|
+
readonly SPAM_PROMOTION: "SPAM_PROMOTION";
|
|
198
|
+
readonly HATE: "HATE";
|
|
199
|
+
readonly SELF_HARM_CONCERN: "SELF_HARM_CONCERN";
|
|
200
|
+
readonly OFF_PLATFORM_HARM: "OFF_PLATFORM_HARM";
|
|
201
|
+
readonly OTHER: "OTHER";
|
|
202
|
+
};
|
|
203
|
+
export type ReportCategory = (typeof ReportCategory)[keyof typeof ReportCategory];
|
|
204
|
+
/** Where in the app the member started the report flow from (not the reported content). */
|
|
205
|
+
export declare const ReportSource: {
|
|
206
|
+
readonly CHAT: "chat";
|
|
207
|
+
readonly PROFILE: "profile";
|
|
208
|
+
};
|
|
209
|
+
export type ReportSource = (typeof ReportSource)[keyof typeof ReportSource];
|
|
210
|
+
/** Step in the member-report flow a report_flow signal records. The flow mixes presses, "shown" impressions and upload outcomes, so it is a signal (not a ui_interaction). Carries only the ReportCategory / ReportSource / evidence dimensions — never message text, user ids or report free text. */
|
|
211
|
+
export declare const ReportEvent: {
|
|
212
|
+
readonly REPORT_OPEN: "report.open";
|
|
213
|
+
readonly REPORT_CATEGORY_SELECTED: "report.category_selected";
|
|
214
|
+
readonly REPORT_NOT_REPORTABLE_SHOWN: "report.not_reportable_shown";
|
|
215
|
+
readonly REPORT_NOT_REPORTABLE_BLOCK: "report.not_reportable_block";
|
|
216
|
+
readonly REPORT_SELF_HARM_RESOURCES_SHOWN: "report.self_harm_resources_shown";
|
|
217
|
+
readonly REPORT_EVIDENCE_TOGGLE: "report.evidence_toggle";
|
|
218
|
+
readonly REPORT_ATTACHMENTS_TOGGLE: "report.attachments_toggle";
|
|
219
|
+
readonly REPORT_EVIDENCE_PREVIEW: "report.evidence_preview";
|
|
220
|
+
readonly REPORT_NUDGE_SHOWN: "report.nudge_shown";
|
|
221
|
+
readonly REPORT_SUBMIT_WITH_EVIDENCE: "report.submit_with_evidence";
|
|
222
|
+
readonly REPORT_SUBMIT_WITHOUT_EVIDENCE: "report.submit_without_evidence";
|
|
223
|
+
readonly REPORT_SUBMIT_FAILED: "report.submit_failed";
|
|
224
|
+
readonly REPORT_EVIDENCE_UPLOAD_SUCCEEDED: "report.evidence_upload_succeeded";
|
|
225
|
+
readonly REPORT_EVIDENCE_UPLOAD_FAILED: "report.evidence_upload_failed";
|
|
226
|
+
};
|
|
227
|
+
export type ReportEvent = (typeof ReportEvent)[keyof typeof ReportEvent];
|
|
188
228
|
/** Registered UI element ids (`<screen>.<subject>`). Use with trackUi / data-track-id. */
|
|
189
229
|
export declare const UiElement: {
|
|
190
230
|
readonly NAV_TAB_SELECT: "nav.tab_select";
|
|
@@ -265,6 +305,7 @@ export declare const UiElement: {
|
|
|
265
305
|
readonly DISCOVER_LIKES_YOU_OPEN: "discover.likes_you_open";
|
|
266
306
|
readonly DISCOVER_ADD_HOOK_OPEN: "discover.add_hook_open";
|
|
267
307
|
readonly DISCOVER_RETRY: "discover.retry";
|
|
308
|
+
readonly DISCOVER_CATEGORY_SELECT: "discover.category_select";
|
|
268
309
|
readonly DISCOVER_ADD_HOOK_SUBMIT: "discover.add_hook_submit";
|
|
269
310
|
readonly DISCOVER_UPGRADE_OPEN: "discover.upgrade_open";
|
|
270
311
|
readonly LIKE_COMPOSER_SEND: "like_composer.send";
|
|
@@ -291,6 +332,8 @@ export declare const UiElement: {
|
|
|
291
332
|
readonly CHAT_PROFILE_OPEN: "chat.profile_open";
|
|
292
333
|
readonly CHAT_SAFETY_MENU_OPEN: "chat.safety_menu_open";
|
|
293
334
|
readonly CHAT_UNMATCH: "chat.unmatch";
|
|
335
|
+
readonly CHAT_REPORT_OPEN: "chat.report_open";
|
|
336
|
+
readonly CHAT_BLOCK_OPEN: "chat.block_open";
|
|
294
337
|
readonly CHAT_REPORT_SPAM: "chat.report_spam";
|
|
295
338
|
readonly CHAT_REPORT_BLOCK: "chat.report_block";
|
|
296
339
|
readonly CHAT_BLOCK_CONFIRM: "chat.block_confirm";
|