onehook-api-client 1.0.0

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.
Files changed (161) hide show
  1. package/LICENSE +201 -0
  2. package/dist-cjs/OneHookService.js +83 -0
  3. package/dist-cjs/OneHookServiceClient.js +43 -0
  4. package/dist-cjs/auth/httpAuthExtensionConfiguration.js +35 -0
  5. package/dist-cjs/auth/httpAuthSchemeProvider.js +35 -0
  6. package/dist-cjs/commands/AuthSocialCommand.js +21 -0
  7. package/dist-cjs/commands/ClaimPreKeyBundleCommand.js +21 -0
  8. package/dist-cjs/commands/CompleteLivenessSessionCommand.js +21 -0
  9. package/dist-cjs/commands/CompleteOnboardingCommand.js +21 -0
  10. package/dist-cjs/commands/CreateLivenessSessionCommand.js +21 -0
  11. package/dist-cjs/commands/DeleteMatchMessagesCommand.js +21 -0
  12. package/dist-cjs/commands/DeleteProfileCommand.js +21 -0
  13. package/dist-cjs/commands/DiscoverCommand.js +21 -0
  14. package/dist-cjs/commands/GenerateInviteCommand.js +21 -0
  15. package/dist-cjs/commands/GenerateUploadUrlCommand.js +21 -0
  16. package/dist-cjs/commands/GetMatchCommand.js +21 -0
  17. package/dist-cjs/commands/GetMyProfileCommand.js +21 -0
  18. package/dist-cjs/commands/GetPreferencesCommand.js +21 -0
  19. package/dist-cjs/commands/GetProfileCommand.js +21 -0
  20. package/dist-cjs/commands/GetStateCommand.js +21 -0
  21. package/dist-cjs/commands/GetUserByEmailCommand.js +21 -0
  22. package/dist-cjs/commands/GetUserCommand.js +21 -0
  23. package/dist-cjs/commands/IndexLocationCommand.js +21 -0
  24. package/dist-cjs/commands/InitUserCommand.js +21 -0
  25. package/dist-cjs/commands/LinkEmailCommand.js +21 -0
  26. package/dist-cjs/commands/LinkSocialCommand.js +21 -0
  27. package/dist-cjs/commands/RegisterPhoneCommand.js +21 -0
  28. package/dist-cjs/commands/RemoveLocationCommand.js +21 -0
  29. package/dist-cjs/commands/RequestEmailOtpCommand.js +21 -0
  30. package/dist-cjs/commands/RequestPhoneOtpCommand.js +21 -0
  31. package/dist-cjs/commands/RequestPhoneUpdateOtpCommand.js +21 -0
  32. package/dist-cjs/commands/SwipeCommand.js +21 -0
  33. package/dist-cjs/commands/UnhookCommand.js +21 -0
  34. package/dist-cjs/commands/UnlinkSocialCommand.js +21 -0
  35. package/dist-cjs/commands/UpdateEntitlementsCommand.js +21 -0
  36. package/dist-cjs/commands/UpdatePhoneNumberCommand.js +21 -0
  37. package/dist-cjs/commands/UpdatePreferencesCommand.js +21 -0
  38. package/dist-cjs/commands/UpdateProfileCommand.js +21 -0
  39. package/dist-cjs/commands/UpgradeUserCommand.js +21 -0
  40. package/dist-cjs/commands/UploadPreKeysCommand.js +21 -0
  41. package/dist-cjs/commands/ValidateInviteCommand.js +21 -0
  42. package/dist-cjs/commands/index.js +39 -0
  43. package/dist-cjs/extensionConfiguration.js +2 -0
  44. package/dist-cjs/graphql/types.js +11 -0
  45. package/dist-cjs/index.js +10 -0
  46. package/dist-cjs/models/OneHookServiceServiceException.js +12 -0
  47. package/dist-cjs/models/index.js +4 -0
  48. package/dist-cjs/models/models_0.js +60 -0
  49. package/dist-cjs/protocols/Aws_restJson1.js +1349 -0
  50. package/dist-cjs/runtimeConfig.browser.js +32 -0
  51. package/dist-cjs/runtimeConfig.js +37 -0
  52. package/dist-cjs/runtimeConfig.native.js +15 -0
  53. package/dist-cjs/runtimeConfig.shared.js +29 -0
  54. package/dist-cjs/runtimeExtensions.js +22 -0
  55. package/dist-es/OneHookService.js +79 -0
  56. package/dist-es/OneHookServiceClient.js +39 -0
  57. package/dist-es/auth/httpAuthExtensionConfiguration.js +30 -0
  58. package/dist-es/auth/httpAuthSchemeProvider.js +29 -0
  59. package/dist-es/commands/AuthSocialCommand.js +17 -0
  60. package/dist-es/commands/ClaimPreKeyBundleCommand.js +17 -0
  61. package/dist-es/commands/CompleteLivenessSessionCommand.js +17 -0
  62. package/dist-es/commands/CompleteOnboardingCommand.js +17 -0
  63. package/dist-es/commands/CreateLivenessSessionCommand.js +17 -0
  64. package/dist-es/commands/DeleteMatchMessagesCommand.js +17 -0
  65. package/dist-es/commands/DeleteProfileCommand.js +17 -0
  66. package/dist-es/commands/DiscoverCommand.js +17 -0
  67. package/dist-es/commands/GenerateInviteCommand.js +17 -0
  68. package/dist-es/commands/GenerateUploadUrlCommand.js +17 -0
  69. package/dist-es/commands/GetMatchCommand.js +17 -0
  70. package/dist-es/commands/GetMyProfileCommand.js +17 -0
  71. package/dist-es/commands/GetPreferencesCommand.js +17 -0
  72. package/dist-es/commands/GetProfileCommand.js +17 -0
  73. package/dist-es/commands/GetStateCommand.js +17 -0
  74. package/dist-es/commands/GetUserByEmailCommand.js +17 -0
  75. package/dist-es/commands/GetUserCommand.js +17 -0
  76. package/dist-es/commands/IndexLocationCommand.js +17 -0
  77. package/dist-es/commands/InitUserCommand.js +17 -0
  78. package/dist-es/commands/LinkEmailCommand.js +17 -0
  79. package/dist-es/commands/LinkSocialCommand.js +17 -0
  80. package/dist-es/commands/RegisterPhoneCommand.js +17 -0
  81. package/dist-es/commands/RemoveLocationCommand.js +17 -0
  82. package/dist-es/commands/RequestEmailOtpCommand.js +17 -0
  83. package/dist-es/commands/RequestPhoneOtpCommand.js +17 -0
  84. package/dist-es/commands/RequestPhoneUpdateOtpCommand.js +17 -0
  85. package/dist-es/commands/SwipeCommand.js +17 -0
  86. package/dist-es/commands/UnhookCommand.js +17 -0
  87. package/dist-es/commands/UnlinkSocialCommand.js +17 -0
  88. package/dist-es/commands/UpdateEntitlementsCommand.js +17 -0
  89. package/dist-es/commands/UpdatePhoneNumberCommand.js +17 -0
  90. package/dist-es/commands/UpdatePreferencesCommand.js +17 -0
  91. package/dist-es/commands/UpdateProfileCommand.js +17 -0
  92. package/dist-es/commands/UpgradeUserCommand.js +17 -0
  93. package/dist-es/commands/UploadPreKeysCommand.js +17 -0
  94. package/dist-es/commands/ValidateInviteCommand.js +17 -0
  95. package/dist-es/commands/index.js +36 -0
  96. package/dist-es/extensionConfiguration.js +1 -0
  97. package/dist-es/graphql/types.js +8 -0
  98. package/dist-es/index.js +5 -0
  99. package/dist-es/models/OneHookServiceServiceException.js +8 -0
  100. package/dist-es/models/index.js +1 -0
  101. package/dist-es/models/models_0.js +53 -0
  102. package/dist-es/protocols/Aws_restJson1.js +1273 -0
  103. package/dist-es/runtimeConfig.browser.js +27 -0
  104. package/dist-es/runtimeConfig.js +32 -0
  105. package/dist-es/runtimeConfig.native.js +11 -0
  106. package/dist-es/runtimeConfig.shared.js +25 -0
  107. package/dist-es/runtimeExtensions.js +18 -0
  108. package/dist-types/OneHookService.d.ts +267 -0
  109. package/dist-types/OneHookServiceClient.d.ts +179 -0
  110. package/dist-types/auth/httpAuthExtensionConfiguration.d.ts +26 -0
  111. package/dist-types/auth/httpAuthSchemeProvider.d.ts +59 -0
  112. package/dist-types/commands/AuthSocialCommand.d.ts +78 -0
  113. package/dist-types/commands/ClaimPreKeyBundleCommand.d.ts +87 -0
  114. package/dist-types/commands/CompleteLivenessSessionCommand.d.ts +80 -0
  115. package/dist-types/commands/CompleteOnboardingCommand.d.ts +75 -0
  116. package/dist-types/commands/CreateLivenessSessionCommand.d.ts +75 -0
  117. package/dist-types/commands/DeleteMatchMessagesCommand.d.ts +77 -0
  118. package/dist-types/commands/DeleteProfileCommand.d.ts +77 -0
  119. package/dist-types/commands/DiscoverCommand.d.ts +84 -0
  120. package/dist-types/commands/GenerateInviteCommand.d.ts +78 -0
  121. package/dist-types/commands/GenerateUploadUrlCommand.d.ts +80 -0
  122. package/dist-types/commands/GetMatchCommand.d.ts +87 -0
  123. package/dist-types/commands/GetMyProfileCommand.d.ts +136 -0
  124. package/dist-types/commands/GetPreferencesCommand.d.ts +83 -0
  125. package/dist-types/commands/GetProfileCommand.d.ts +136 -0
  126. package/dist-types/commands/GetStateCommand.d.ts +83 -0
  127. package/dist-types/commands/GetUserByEmailCommand.d.ts +83 -0
  128. package/dist-types/commands/GetUserCommand.d.ts +83 -0
  129. package/dist-types/commands/IndexLocationCommand.d.ts +76 -0
  130. package/dist-types/commands/InitUserCommand.d.ts +73 -0
  131. package/dist-types/commands/LinkEmailCommand.d.ts +76 -0
  132. package/dist-types/commands/LinkSocialCommand.d.ts +76 -0
  133. package/dist-types/commands/RegisterPhoneCommand.d.ts +79 -0
  134. package/dist-types/commands/RemoveLocationCommand.d.ts +76 -0
  135. package/dist-types/commands/RequestEmailOtpCommand.d.ts +76 -0
  136. package/dist-types/commands/RequestPhoneOtpCommand.d.ts +75 -0
  137. package/dist-types/commands/RequestPhoneUpdateOtpCommand.d.ts +75 -0
  138. package/dist-types/commands/SwipeCommand.d.ts +79 -0
  139. package/dist-types/commands/UnhookCommand.d.ts +78 -0
  140. package/dist-types/commands/UnlinkSocialCommand.d.ts +75 -0
  141. package/dist-types/commands/UpdateEntitlementsCommand.d.ts +87 -0
  142. package/dist-types/commands/UpdatePhoneNumberCommand.d.ts +77 -0
  143. package/dist-types/commands/UpdatePreferencesCommand.d.ts +81 -0
  144. package/dist-types/commands/UpdateProfileCommand.d.ts +130 -0
  145. package/dist-types/commands/UpgradeUserCommand.d.ts +81 -0
  146. package/dist-types/commands/UploadPreKeysCommand.d.ts +81 -0
  147. package/dist-types/commands/ValidateInviteCommand.d.ts +78 -0
  148. package/dist-types/commands/index.d.ts +36 -0
  149. package/dist-types/extensionConfiguration.d.ts +8 -0
  150. package/dist-types/graphql/types.d.ts +110 -0
  151. package/dist-types/index.d.ts +7 -0
  152. package/dist-types/models/OneHookServiceServiceException.d.ts +14 -0
  153. package/dist-types/models/index.d.ts +1 -0
  154. package/dist-types/models/models_0.d.ts +614 -0
  155. package/dist-types/protocols/Aws_restJson1.d.ts +326 -0
  156. package/dist-types/runtimeConfig.browser.d.ts +38 -0
  157. package/dist-types/runtimeConfig.d.ts +38 -0
  158. package/dist-types/runtimeConfig.native.d.ts +37 -0
  159. package/dist-types/runtimeConfig.shared.d.ts +23 -0
  160. package/dist-types/runtimeExtensions.d.ts +17 -0
  161. package/package.json +95 -0
@@ -0,0 +1,614 @@
1
+ import { OneHookServiceServiceException as __BaseException } from "./OneHookServiceServiceException";
2
+ import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client";
3
+ /**
4
+ * @public
5
+ */
6
+ export interface ClaimPreKeyBundleRequest {
7
+ userId: string | undefined;
8
+ /**
9
+ * The match the caller shares with the target user; used to authorize the claim.
10
+ * @public
11
+ */
12
+ matchId: string | undefined;
13
+ }
14
+ /**
15
+ * @public
16
+ */
17
+ export interface ClaimPreKeyBundleResponse {
18
+ identityKey: string | undefined;
19
+ signedPreKey: string | undefined;
20
+ /**
21
+ * Omitted when the target user has exhausted their one-time pre-keys.
22
+ * @public
23
+ */
24
+ oneTimePreKey?: string | undefined;
25
+ }
26
+ /**
27
+ * @public
28
+ */
29
+ export declare class ForbiddenError extends __BaseException {
30
+ readonly name: "ForbiddenError";
31
+ readonly $fault: "client";
32
+ error: string | undefined;
33
+ /**
34
+ * @internal
35
+ */
36
+ constructor(opts: __ExceptionOptionType<ForbiddenError, __BaseException>);
37
+ }
38
+ /**
39
+ * @public
40
+ */
41
+ export declare class BadRequestError extends __BaseException {
42
+ readonly name: "BadRequestError";
43
+ readonly $fault: "client";
44
+ error: string | undefined;
45
+ /**
46
+ * @internal
47
+ */
48
+ constructor(opts: __ExceptionOptionType<BadRequestError, __BaseException>);
49
+ }
50
+ /**
51
+ * @public
52
+ */
53
+ export declare class InternalServerError extends __BaseException {
54
+ readonly name: "InternalServerError";
55
+ readonly $fault: "server";
56
+ error: string | undefined;
57
+ /**
58
+ * @internal
59
+ */
60
+ constructor(opts: __ExceptionOptionType<InternalServerError, __BaseException>);
61
+ }
62
+ /**
63
+ * @public
64
+ */
65
+ export declare class NotFoundError extends __BaseException {
66
+ readonly name: "NotFoundError";
67
+ readonly $fault: "client";
68
+ error: string | undefined;
69
+ /**
70
+ * @internal
71
+ */
72
+ constructor(opts: __ExceptionOptionType<NotFoundError, __BaseException>);
73
+ }
74
+ /**
75
+ * @public
76
+ */
77
+ export interface DeleteMatchMessagesRequest {
78
+ matchId: string | undefined;
79
+ }
80
+ /**
81
+ * @public
82
+ */
83
+ export interface DeleteMatchMessagesResponse {
84
+ deleted: number | undefined;
85
+ }
86
+ /**
87
+ * @public
88
+ */
89
+ export interface UploadPreKeysRequest {
90
+ identityKey: string | undefined;
91
+ signedPreKey: string | undefined;
92
+ oneTimePreKeys: (string)[] | undefined;
93
+ }
94
+ /**
95
+ * @public
96
+ */
97
+ export interface StatusResponse {
98
+ status: string | undefined;
99
+ }
100
+ /**
101
+ * @public
102
+ */
103
+ export interface AuthSocialRequest {
104
+ provider: string | undefined;
105
+ token: string | undefined;
106
+ }
107
+ /**
108
+ * @public
109
+ */
110
+ export interface AuthSocialResponse {
111
+ status: string | undefined;
112
+ userId?: string | undefined;
113
+ isNewUser?: boolean | undefined;
114
+ }
115
+ /**
116
+ * @public
117
+ */
118
+ export interface GenerateInviteRequest {
119
+ referrerId: string | undefined;
120
+ maxUses?: number | undefined;
121
+ }
122
+ /**
123
+ * @public
124
+ */
125
+ export interface GenerateInviteResponse {
126
+ inviteCode: string | undefined;
127
+ expiresAt: number | undefined;
128
+ maxUses: number | undefined;
129
+ }
130
+ /**
131
+ * @public
132
+ */
133
+ export interface GetUserRequest {
134
+ userId: string | undefined;
135
+ }
136
+ /**
137
+ * @public
138
+ */
139
+ export interface UserResponse {
140
+ userId: string | undefined;
141
+ email?: string | undefined;
142
+ phoneNumber?: string | undefined;
143
+ displayName?: string | undefined;
144
+ appleId?: string | undefined;
145
+ appleEmail?: string | undefined;
146
+ googleId?: string | undefined;
147
+ googleEmail?: string | undefined;
148
+ userState?: string | undefined;
149
+ }
150
+ /**
151
+ * @public
152
+ */
153
+ export interface GetUserByEmailRequest {
154
+ email: string | undefined;
155
+ }
156
+ /**
157
+ * @public
158
+ */
159
+ export interface LinkEmailRequest {
160
+ email: string | undefined;
161
+ otp: string | undefined;
162
+ }
163
+ /**
164
+ * @public
165
+ */
166
+ export interface LinkEmailResponse {
167
+ status: string | undefined;
168
+ }
169
+ /**
170
+ * @public
171
+ */
172
+ export interface LinkSocialRequest {
173
+ identityToken: string | undefined;
174
+ provider: string | undefined;
175
+ }
176
+ /**
177
+ * @public
178
+ */
179
+ export interface LinkSocialResponse {
180
+ status: string | undefined;
181
+ }
182
+ /**
183
+ * @public
184
+ */
185
+ export interface RegisterPhoneRequest {
186
+ phoneNumber: string | undefined;
187
+ otp: string | undefined;
188
+ inviteCode: string | undefined;
189
+ displayName?: string | undefined;
190
+ }
191
+ /**
192
+ * @public
193
+ */
194
+ export interface RegisterPhoneResponse {
195
+ userId: string | undefined;
196
+ status: string | undefined;
197
+ }
198
+ /**
199
+ * @public
200
+ */
201
+ export interface RequestEmailOtpRequest {
202
+ email: string | undefined;
203
+ password?: string | undefined;
204
+ }
205
+ /**
206
+ * @public
207
+ */
208
+ export interface RequestEmailOtpResponse {
209
+ status: string | undefined;
210
+ }
211
+ /**
212
+ * @public
213
+ */
214
+ export interface RequestPhoneOtpRequest {
215
+ phoneNumber: string | undefined;
216
+ }
217
+ /**
218
+ * @public
219
+ */
220
+ export interface RequestPhoneOtpResponse {
221
+ status: string | undefined;
222
+ }
223
+ /**
224
+ * Requests an OTP to be sent to a new phone number to prove ownership before updating a user's phone number.
225
+ * This is step 1 of the 2-step phone number update process.
226
+ * @public
227
+ */
228
+ export interface RequestPhoneUpdateOtpRequest {
229
+ phoneNumber: string | undefined;
230
+ }
231
+ /**
232
+ * @public
233
+ */
234
+ export interface RequestPhoneUpdateOtpResponse {
235
+ status: string | undefined;
236
+ }
237
+ /**
238
+ * @public
239
+ */
240
+ export interface UnlinkSocialRequest {
241
+ provider: string | undefined;
242
+ }
243
+ /**
244
+ * @public
245
+ */
246
+ export interface UnlinkSocialResponse {
247
+ status: string | undefined;
248
+ }
249
+ /**
250
+ * @public
251
+ */
252
+ export interface UpdateEntitlementsRequest {
253
+ userId: string | undefined;
254
+ subscriptionTier: string | undefined;
255
+ /**
256
+ * Provenance of the entitlement decision (e.g. stripe / apple / google / sync). Advisory/audit.
257
+ * @public
258
+ */
259
+ source?: string | undefined;
260
+ /**
261
+ * Provider transaction/subscription id for audit + cross-service idempotency correlation.
262
+ * @public
263
+ */
264
+ purchaseRef?: string | undefined;
265
+ /**
266
+ * Source event time (epoch seconds); lets Identity ignore an out-of-order write if it tracks one.
267
+ * @public
268
+ */
269
+ effectiveAt?: number | undefined;
270
+ }
271
+ /**
272
+ * @public
273
+ */
274
+ export interface UpdateEntitlementsResponse {
275
+ status: string | undefined;
276
+ subscriptionTier: string | undefined;
277
+ }
278
+ /**
279
+ * @public
280
+ */
281
+ export interface PhoneResponse {
282
+ status: string | undefined;
283
+ phoneNumber: string | undefined;
284
+ }
285
+ /**
286
+ * Updates a user's phone number. This is step 2 of the 2-step phone number update process.
287
+ * The `otp` field must match the OTP sent to the new phone number in step 1.
288
+ * @public
289
+ */
290
+ export interface UpdatePhoneNumberRequest {
291
+ phoneNumber: string | undefined;
292
+ otp: string | undefined;
293
+ }
294
+ /**
295
+ * @public
296
+ */
297
+ export interface ValidateInviteRequest {
298
+ inviteCode: string | undefined;
299
+ }
300
+ /**
301
+ * @public
302
+ */
303
+ export interface ValidateInviteResponse {
304
+ status: string | undefined;
305
+ referrerId?: string | undefined;
306
+ usedCount: number | undefined;
307
+ maxUses: number | undefined;
308
+ }
309
+ /**
310
+ * @public
311
+ */
312
+ export interface DiscoverRequest {
313
+ lat: number | undefined;
314
+ lon: number | undefined;
315
+ }
316
+ /**
317
+ * @public
318
+ */
319
+ export interface CandidateDto {
320
+ userId: string | undefined;
321
+ distanceKm: number | undefined;
322
+ score: number | undefined;
323
+ }
324
+ /**
325
+ * @public
326
+ */
327
+ export interface DiscoverResponse {
328
+ candidates: (CandidateDto)[] | undefined;
329
+ count: number | undefined;
330
+ algorithm: string | undefined;
331
+ }
332
+ /**
333
+ * @public
334
+ */
335
+ export interface GetPreferencesRequest {
336
+ userId: string | undefined;
337
+ }
338
+ /**
339
+ * @public
340
+ */
341
+ export interface UserPreferencesResponse {
342
+ userId: string | undefined;
343
+ minAge?: number | undefined;
344
+ maxAge?: number | undefined;
345
+ maxDistanceKm?: number | undefined;
346
+ genders?: (string)[] | undefined;
347
+ }
348
+ /**
349
+ * @public
350
+ */
351
+ export interface LocationRequest {
352
+ lat: number | undefined;
353
+ lon: number | undefined;
354
+ }
355
+ /**
356
+ * @public
357
+ */
358
+ export interface SwipeRequest {
359
+ targetId: string | undefined;
360
+ direction: string | undefined;
361
+ /**
362
+ * The profile section the swiper was viewing at swipe time (e.g. PHOTOS, BIO, PROMPTS,
363
+ * BASICS, LIFESTYLE, INTENT, INTERESTS, BACKGROUND). Persisted with the swipe so a LEFT
364
+ * swipe can later be cleared when exactly that section of the target's profile changes.
365
+ * Optional; primarily meaningful for LEFT swipes.
366
+ * @public
367
+ */
368
+ viewedSection?: string | undefined;
369
+ }
370
+ /**
371
+ * @public
372
+ */
373
+ export interface SwipeResponse {
374
+ status: string | undefined;
375
+ matched: boolean | undefined;
376
+ /**
377
+ * The match id if this was a mutual match
378
+ * @public
379
+ */
380
+ matchId?: string | undefined;
381
+ }
382
+ /**
383
+ * @public
384
+ */
385
+ export interface UpdatePreferencesRequest {
386
+ userId: string | undefined;
387
+ minAge?: number | undefined;
388
+ maxAge?: number | undefined;
389
+ maxDistanceKm?: number | undefined;
390
+ genders?: (string)[] | undefined;
391
+ }
392
+ /**
393
+ * @public
394
+ */
395
+ export interface CompleteLivenessSessionRequest {
396
+ sessionId: string | undefined;
397
+ }
398
+ /**
399
+ * @public
400
+ */
401
+ export interface CompleteLivenessSessionResponse {
402
+ /**
403
+ * Acknowledgement status, e.g. "PROCESSING". The verification verdict is applied
404
+ * asynchronously and surfaced later via the profile's `verified` field.
405
+ * @public
406
+ */
407
+ status: string | undefined;
408
+ }
409
+ /**
410
+ * @public
411
+ */
412
+ export interface CreateLivenessSessionRequest {
413
+ }
414
+ /**
415
+ * @public
416
+ */
417
+ export interface CreateLivenessSessionResponse {
418
+ sessionId: string | undefined;
419
+ }
420
+ /**
421
+ * @public
422
+ */
423
+ export interface DeleteProfileRequest {
424
+ userId: string | undefined;
425
+ }
426
+ /**
427
+ * @public
428
+ */
429
+ export interface MediaUploadUrlRequest {
430
+ contentType: string | undefined;
431
+ contentLength: number | undefined;
432
+ }
433
+ /**
434
+ * @public
435
+ */
436
+ export interface MediaUploadUrlResponse {
437
+ uploadUrl: string | undefined;
438
+ objectKey: string | undefined;
439
+ formData: Record<string, string> | undefined;
440
+ }
441
+ /**
442
+ * A user-authored conversation opener: free text plus an optional image.
443
+ * The image (if present) is moderated by the same async decency flow as profile pictures
444
+ * and prompt images before it becomes visible to other users.
445
+ * @public
446
+ */
447
+ export interface Opener {
448
+ text: string | undefined;
449
+ imageKey?: string | undefined;
450
+ }
451
+ /**
452
+ * @public
453
+ */
454
+ export interface ProfilePrompt {
455
+ promptId: string | undefined;
456
+ answer: string | undefined;
457
+ imageKey?: string | undefined;
458
+ }
459
+ /**
460
+ * @public
461
+ */
462
+ export interface ProfileResponse {
463
+ userId: string | undefined;
464
+ displayName?: string | undefined;
465
+ bio?: string | undefined;
466
+ age?: number | undefined;
467
+ gender?: string | undefined;
468
+ interestedIn?: (string)[] | undefined;
469
+ relationshipType?: string | undefined;
470
+ wantsKids?: string | undefined;
471
+ familyPlans?: string | undefined;
472
+ smokingStatus?: string | undefined;
473
+ drinkingStatus?: string | undefined;
474
+ cannabisStatus?: string | undefined;
475
+ drugsStatus?: string | undefined;
476
+ religion?: string | undefined;
477
+ interests?: (string)[] | undefined;
478
+ starSign?: string | undefined;
479
+ /**
480
+ * Internal trust badge set only by the Face Liveness verification flow — never client-settable.
481
+ * Present on the response so clients can render a verified badge.
482
+ * @public
483
+ */
484
+ verified?: boolean | undefined;
485
+ subscriptionTier?: string | undefined;
486
+ pictures?: (string)[] | undefined;
487
+ videos?: (string)[] | undefined;
488
+ audioPrompt?: string | undefined;
489
+ /**
490
+ * Current moderation status. Absent for legacy profiles.
491
+ * Clients should treat absent as "APPROVED" for backward compatibility.
492
+ * @public
493
+ */
494
+ moderationStatus?: string | undefined;
495
+ causes?: (string)[] | undefined;
496
+ communities?: (string)[] | undefined;
497
+ qualities?: (string)[] | undefined;
498
+ prompts?: (ProfilePrompt)[] | undefined;
499
+ socialLinks?: Record<string, string> | undefined;
500
+ openers?: (Opener)[] | undefined;
501
+ work?: string | undefined;
502
+ education?: string | undefined;
503
+ hometown?: string | undefined;
504
+ currentLocation?: string | undefined;
505
+ height?: number | undefined;
506
+ exercise?: string | undefined;
507
+ educationLevel?: string | undefined;
508
+ politicalView?: string | undefined;
509
+ languages?: (string)[] | undefined;
510
+ }
511
+ /**
512
+ * @public
513
+ */
514
+ export interface GetProfileRequest {
515
+ userId: string | undefined;
516
+ }
517
+ /**
518
+ * @public
519
+ */
520
+ export interface ProfileUpdateRequest {
521
+ displayName?: string | undefined;
522
+ bio?: string | undefined;
523
+ age?: number | undefined;
524
+ gender?: string | undefined;
525
+ interestedIn?: (string)[] | undefined;
526
+ interests?: (string)[] | undefined;
527
+ relationshipType?: string | undefined;
528
+ wantsKids?: string | undefined;
529
+ familyPlans?: string | undefined;
530
+ smokingStatus?: string | undefined;
531
+ drinkingStatus?: string | undefined;
532
+ cannabisStatus?: string | undefined;
533
+ drugsStatus?: string | undefined;
534
+ religion?: string | undefined;
535
+ starSign?: string | undefined;
536
+ pictures?: (string)[] | undefined;
537
+ videos?: (string)[] | undefined;
538
+ audioPrompt?: string | undefined;
539
+ causes?: (string)[] | undefined;
540
+ communities?: (string)[] | undefined;
541
+ qualities?: (string)[] | undefined;
542
+ prompts?: (ProfilePrompt)[] | undefined;
543
+ socialLinks?: Record<string, string> | undefined;
544
+ openers?: (Opener)[] | undefined;
545
+ work?: string | undefined;
546
+ education?: string | undefined;
547
+ hometown?: string | undefined;
548
+ currentLocation?: string | undefined;
549
+ height?: number | undefined;
550
+ exercise?: string | undefined;
551
+ educationLevel?: string | undefined;
552
+ politicalView?: string | undefined;
553
+ languages?: (string)[] | undefined;
554
+ }
555
+ /**
556
+ * @public
557
+ */
558
+ export interface CompleteOnboardingRequest {
559
+ }
560
+ /**
561
+ * @public
562
+ */
563
+ export interface GetMatchRequest {
564
+ matchId: string | undefined;
565
+ }
566
+ /**
567
+ * @public
568
+ */
569
+ export interface MatchRecord {
570
+ matchId: string | undefined;
571
+ userA: string | undefined;
572
+ userB: string | undefined;
573
+ status: string | undefined;
574
+ createdAt: number | undefined;
575
+ updatedAt: number | undefined;
576
+ endedAt?: number | undefined;
577
+ latestMessageSenderId?: string | undefined;
578
+ latestMessageTimestamp?: number | undefined;
579
+ endedBy?: string | undefined;
580
+ endReason?: string | undefined;
581
+ }
582
+ /**
583
+ * @public
584
+ */
585
+ export interface GetStateRequest {
586
+ userId: string | undefined;
587
+ }
588
+ /**
589
+ * @public
590
+ */
591
+ export interface UserStateResponse {
592
+ userId: string | undefined;
593
+ state: string | undefined;
594
+ activeConnections: number | undefined;
595
+ matchIds: (string)[] | undefined;
596
+ subscriptionTier: string | undefined;
597
+ }
598
+ /**
599
+ * @public
600
+ */
601
+ export interface InitUserRequest {
602
+ }
603
+ /**
604
+ * @public
605
+ */
606
+ export interface UnhookRequest {
607
+ matchId: string | undefined;
608
+ reason?: string | undefined;
609
+ }
610
+ /**
611
+ * @public
612
+ */
613
+ export interface UpgradeUserRequest {
614
+ }