@zyphe-sdk/core 0.3.1 → 0.5.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.
- package/README.md +21 -5
- package/dist/index.d.ts +2782 -484
- package/dist/index.js +204 -12
- package/dist/index.js.map +1 -1
- package/dist/openapi.d.ts +1746 -150
- package/dist/openapi.json +3437 -526
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { BinaryWriter, BinaryReader } from '@bufbuild/protobuf/wire';
|
|
2
1
|
import * as openapi_fetch from 'openapi-fetch';
|
|
2
|
+
import { BinaryWriter, BinaryReader } from '@bufbuild/protobuf/wire';
|
|
3
3
|
|
|
4
4
|
interface paths {
|
|
5
5
|
"/flows/{slug}/fullflow": {
|
|
@@ -9,6 +9,7 @@ interface paths {
|
|
|
9
9
|
path?: never;
|
|
10
10
|
cookie?: never;
|
|
11
11
|
};
|
|
12
|
+
/** Get full flow details */
|
|
12
13
|
get: operations["get_full_flow_details"];
|
|
13
14
|
put?: never;
|
|
14
15
|
post?: never;
|
|
@@ -25,6 +26,7 @@ interface paths {
|
|
|
25
26
|
path?: never;
|
|
26
27
|
cookie?: never;
|
|
27
28
|
};
|
|
29
|
+
/** Get a verification request */
|
|
28
30
|
get: operations["get_verification_request"];
|
|
29
31
|
put?: never;
|
|
30
32
|
post?: never;
|
|
@@ -43,7 +45,8 @@ interface paths {
|
|
|
43
45
|
};
|
|
44
46
|
get?: never;
|
|
45
47
|
put?: never;
|
|
46
|
-
|
|
48
|
+
/** Create a verification request */
|
|
49
|
+
post: operations["createVerificationRequest"];
|
|
47
50
|
delete?: never;
|
|
48
51
|
options?: never;
|
|
49
52
|
head?: never;
|
|
@@ -57,7 +60,8 @@ interface paths {
|
|
|
57
60
|
path?: never;
|
|
58
61
|
cookie?: never;
|
|
59
62
|
};
|
|
60
|
-
|
|
63
|
+
/** Get the next verification step */
|
|
64
|
+
get: operations["getNextStep"];
|
|
61
65
|
put?: never;
|
|
62
66
|
post?: never;
|
|
63
67
|
delete?: never;
|
|
@@ -144,6 +148,7 @@ interface paths {
|
|
|
144
148
|
path?: never;
|
|
145
149
|
cookie?: never;
|
|
146
150
|
};
|
|
151
|
+
/** Get completed verification requests */
|
|
147
152
|
get: operations["get_completed_verification_requests"];
|
|
148
153
|
put?: never;
|
|
149
154
|
post?: never;
|
|
@@ -160,9 +165,135 @@ interface paths {
|
|
|
160
165
|
path?: never;
|
|
161
166
|
cookie?: never;
|
|
162
167
|
};
|
|
163
|
-
|
|
168
|
+
/** List flow results */
|
|
169
|
+
get: operations["listFlowResults"];
|
|
170
|
+
put?: never;
|
|
171
|
+
post?: never;
|
|
172
|
+
delete?: never;
|
|
173
|
+
options?: never;
|
|
174
|
+
head?: never;
|
|
175
|
+
patch?: never;
|
|
176
|
+
trace?: never;
|
|
177
|
+
};
|
|
178
|
+
"/sdk/organizations/{organization_id}/kyb/{kyb_result_id}/reminders/ubo/{recipient_index}": {
|
|
179
|
+
parameters: {
|
|
180
|
+
query?: never;
|
|
181
|
+
header?: never;
|
|
182
|
+
path?: never;
|
|
183
|
+
cookie?: never;
|
|
184
|
+
};
|
|
185
|
+
get?: never;
|
|
186
|
+
put?: never;
|
|
187
|
+
/**
|
|
188
|
+
* Send a UBO KYC reminder
|
|
189
|
+
* @description Sends (or re-sends) the KYC invitation email to a specific UBO on a KYB case,
|
|
190
|
+
* identified by their position in `uboDefinitions`. Use this to drive UBO outreach on
|
|
191
|
+
* demand — for example when automatic UBO KYC emails are disabled for the flow.
|
|
192
|
+
*/
|
|
193
|
+
post: operations["sendUboKycReminder"];
|
|
194
|
+
delete?: never;
|
|
195
|
+
options?: never;
|
|
196
|
+
head?: never;
|
|
197
|
+
patch?: never;
|
|
198
|
+
trace?: never;
|
|
199
|
+
};
|
|
200
|
+
"/sdk/organizations/{organization_id}/kyb/{kyb_result_id}/ubos": {
|
|
201
|
+
parameters: {
|
|
202
|
+
query?: never;
|
|
203
|
+
header?: never;
|
|
204
|
+
path?: never;
|
|
205
|
+
cookie?: never;
|
|
206
|
+
};
|
|
207
|
+
get?: never;
|
|
208
|
+
put?: never;
|
|
209
|
+
/**
|
|
210
|
+
* Add UBOs to a KYB case
|
|
211
|
+
* @description Adds one or more ultimate beneficial owners to an existing KYB case and returns the
|
|
212
|
+
* updated KYB result.
|
|
213
|
+
*/
|
|
214
|
+
post: operations["addKybUbos"];
|
|
215
|
+
delete?: never;
|
|
216
|
+
options?: never;
|
|
217
|
+
head?: never;
|
|
218
|
+
patch?: never;
|
|
219
|
+
trace?: never;
|
|
220
|
+
};
|
|
221
|
+
"/sdk/organizations/{organization_id}/kyb/{kyb_result_id}/ubos/{person_id}": {
|
|
222
|
+
parameters: {
|
|
223
|
+
query?: never;
|
|
224
|
+
header?: never;
|
|
225
|
+
path?: never;
|
|
226
|
+
cookie?: never;
|
|
227
|
+
};
|
|
228
|
+
get?: never;
|
|
229
|
+
put?: never;
|
|
230
|
+
post?: never;
|
|
231
|
+
/**
|
|
232
|
+
* Remove a UBO from a KYB case
|
|
233
|
+
* @description Removes an ultimate beneficial owner from a KYB case by their stable id and returns the
|
|
234
|
+
* updated KYB result.
|
|
235
|
+
*/
|
|
236
|
+
delete: operations["removeKybUbo"];
|
|
237
|
+
options?: never;
|
|
238
|
+
head?: never;
|
|
239
|
+
patch?: never;
|
|
240
|
+
trace?: never;
|
|
241
|
+
};
|
|
242
|
+
"/sdk/organizations/{organization_id}/kyb/{kyb_result_id}/directors": {
|
|
243
|
+
parameters: {
|
|
244
|
+
query?: never;
|
|
245
|
+
header?: never;
|
|
246
|
+
path?: never;
|
|
247
|
+
cookie?: never;
|
|
248
|
+
};
|
|
249
|
+
get?: never;
|
|
250
|
+
put?: never;
|
|
251
|
+
/**
|
|
252
|
+
* Add directors to a KYB case
|
|
253
|
+
* @description Adds one or more directors to an existing KYB case and returns the updated KYB result.
|
|
254
|
+
*/
|
|
255
|
+
post: operations["addKybDirectors"];
|
|
256
|
+
delete?: never;
|
|
257
|
+
options?: never;
|
|
258
|
+
head?: never;
|
|
259
|
+
patch?: never;
|
|
260
|
+
trace?: never;
|
|
261
|
+
};
|
|
262
|
+
"/sdk/organizations/{organization_id}/kyb/{kyb_result_id}/directors/{person_id}": {
|
|
263
|
+
parameters: {
|
|
264
|
+
query?: never;
|
|
265
|
+
header?: never;
|
|
266
|
+
path?: never;
|
|
267
|
+
cookie?: never;
|
|
268
|
+
};
|
|
269
|
+
get?: never;
|
|
164
270
|
put?: never;
|
|
165
271
|
post?: never;
|
|
272
|
+
/**
|
|
273
|
+
* Remove a director from a KYB case
|
|
274
|
+
* @description Removes a director from a KYB case by their stable id and returns the updated KYB result.
|
|
275
|
+
*/
|
|
276
|
+
delete: operations["removeKybDirector"];
|
|
277
|
+
options?: never;
|
|
278
|
+
head?: never;
|
|
279
|
+
patch?: never;
|
|
280
|
+
trace?: never;
|
|
281
|
+
};
|
|
282
|
+
"/sdk/organizations/{organization_id}/kyb/{kyb_result_id}/document-requests/on-demand": {
|
|
283
|
+
parameters: {
|
|
284
|
+
query?: never;
|
|
285
|
+
header?: never;
|
|
286
|
+
path?: never;
|
|
287
|
+
cookie?: never;
|
|
288
|
+
};
|
|
289
|
+
get?: never;
|
|
290
|
+
put?: never;
|
|
291
|
+
/**
|
|
292
|
+
* Request a KYB document
|
|
293
|
+
* @description Requests an additional document from the business on a KYB case and returns the created
|
|
294
|
+
* document request.
|
|
295
|
+
*/
|
|
296
|
+
post: operations["requestKybDocument"];
|
|
166
297
|
delete?: never;
|
|
167
298
|
options?: never;
|
|
168
299
|
head?: never;
|
|
@@ -176,7 +307,8 @@ interface paths {
|
|
|
176
307
|
path?: never;
|
|
177
308
|
cookie?: never;
|
|
178
309
|
};
|
|
179
|
-
|
|
310
|
+
/** Get flow result details */
|
|
311
|
+
get: operations["getFlowResultDetails"];
|
|
180
312
|
put?: never;
|
|
181
313
|
post?: never;
|
|
182
314
|
delete?: never;
|
|
@@ -192,7 +324,8 @@ interface paths {
|
|
|
192
324
|
path?: never;
|
|
193
325
|
cookie?: never;
|
|
194
326
|
};
|
|
195
|
-
|
|
327
|
+
/** Get document verification result details */
|
|
328
|
+
get: operations["getDocumentVerificationResultDetails"];
|
|
196
329
|
put?: never;
|
|
197
330
|
post?: never;
|
|
198
331
|
delete?: never;
|
|
@@ -208,7 +341,8 @@ interface paths {
|
|
|
208
341
|
path?: never;
|
|
209
342
|
cookie?: never;
|
|
210
343
|
};
|
|
211
|
-
|
|
344
|
+
/** Get proof of address result details */
|
|
345
|
+
get: operations["getProofOfAddressResultDetails"];
|
|
212
346
|
put?: never;
|
|
213
347
|
post?: never;
|
|
214
348
|
delete?: never;
|
|
@@ -224,7 +358,8 @@ interface paths {
|
|
|
224
358
|
path?: never;
|
|
225
359
|
cookie?: never;
|
|
226
360
|
};
|
|
227
|
-
|
|
361
|
+
/** Get wallet result details */
|
|
362
|
+
get: operations["getWalletResultDetails"];
|
|
228
363
|
put?: never;
|
|
229
364
|
post?: never;
|
|
230
365
|
delete?: never;
|
|
@@ -240,7 +375,8 @@ interface paths {
|
|
|
240
375
|
path?: never;
|
|
241
376
|
cookie?: never;
|
|
242
377
|
};
|
|
243
|
-
|
|
378
|
+
/** Get phone result details */
|
|
379
|
+
get: operations["getPhoneResultDetails"];
|
|
244
380
|
put?: never;
|
|
245
381
|
post?: never;
|
|
246
382
|
delete?: never;
|
|
@@ -256,7 +392,8 @@ interface paths {
|
|
|
256
392
|
path?: never;
|
|
257
393
|
cookie?: never;
|
|
258
394
|
};
|
|
259
|
-
|
|
395
|
+
/** Get form result details */
|
|
396
|
+
get: operations["getFormResultDetails"];
|
|
260
397
|
put?: never;
|
|
261
398
|
post?: never;
|
|
262
399
|
delete?: never;
|
|
@@ -272,7 +409,8 @@ interface paths {
|
|
|
272
409
|
path?: never;
|
|
273
410
|
cookie?: never;
|
|
274
411
|
};
|
|
275
|
-
|
|
412
|
+
/** Get flow result details (deprecated) */
|
|
413
|
+
get: operations["getFlowResultDetailsDeprecated"];
|
|
276
414
|
put?: never;
|
|
277
415
|
post?: never;
|
|
278
416
|
delete?: never;
|
|
@@ -288,7 +426,8 @@ interface paths {
|
|
|
288
426
|
path?: never;
|
|
289
427
|
cookie?: never;
|
|
290
428
|
};
|
|
291
|
-
|
|
429
|
+
/** Get document verification result details (deprecated) */
|
|
430
|
+
get: operations["getDocumentVerificationResultDetailsDeprecated"];
|
|
292
431
|
put?: never;
|
|
293
432
|
post?: never;
|
|
294
433
|
delete?: never;
|
|
@@ -304,7 +443,52 @@ interface paths {
|
|
|
304
443
|
path?: never;
|
|
305
444
|
cookie?: never;
|
|
306
445
|
};
|
|
307
|
-
|
|
446
|
+
/** Get proof of address result details (deprecated) */
|
|
447
|
+
get: operations["getProofOfAddressResultDetailsDeprecated"];
|
|
448
|
+
put?: never;
|
|
449
|
+
post?: never;
|
|
450
|
+
delete?: never;
|
|
451
|
+
options?: never;
|
|
452
|
+
head?: never;
|
|
453
|
+
patch?: never;
|
|
454
|
+
trace?: never;
|
|
455
|
+
};
|
|
456
|
+
"/sdk/organizations/{organization_id}/aml/screen": {
|
|
457
|
+
parameters: {
|
|
458
|
+
query?: never;
|
|
459
|
+
header?: never;
|
|
460
|
+
path?: never;
|
|
461
|
+
cookie?: never;
|
|
462
|
+
};
|
|
463
|
+
get?: never;
|
|
464
|
+
put?: never;
|
|
465
|
+
/**
|
|
466
|
+
* Run a live AML screening and return the raw provider matches
|
|
467
|
+
* @description Queries the configured screening provider (OpenSanctions/Yente or WorldCheck) and returns
|
|
468
|
+
* its raw FollowTheMoney-shaped entity matches — no risk scoring, no persistence. This is the
|
|
469
|
+
* "Stage A only" slice of the on-demand AML flow. Billed per call via pay-as-you-go.
|
|
470
|
+
*/
|
|
471
|
+
post: operations["sdkScreenAml"];
|
|
472
|
+
delete?: never;
|
|
473
|
+
options?: never;
|
|
474
|
+
head?: never;
|
|
475
|
+
patch?: never;
|
|
476
|
+
trace?: never;
|
|
477
|
+
};
|
|
478
|
+
"/organizations/{organization_id}/billing/topup-packs": {
|
|
479
|
+
parameters: {
|
|
480
|
+
query?: never;
|
|
481
|
+
header?: never;
|
|
482
|
+
path?: never;
|
|
483
|
+
cookie?: never;
|
|
484
|
+
};
|
|
485
|
+
/**
|
|
486
|
+
* Get the catalog of top-up credit packs (one-time Stripe prices tagged `credit_topup`).
|
|
487
|
+
* @description Unlike sibling endpoints, caching (30 min TTL, with a stale-on-Stripe-error fallback) is
|
|
488
|
+
* owned by `BillingService::get_topup_packs` itself rather than done here in the handler —
|
|
489
|
+
* see that method's doc comment for why.
|
|
490
|
+
*/
|
|
491
|
+
get: operations["get_topup_packs"];
|
|
308
492
|
put?: never;
|
|
309
493
|
post?: never;
|
|
310
494
|
delete?: never;
|
|
@@ -313,6 +497,30 @@ interface paths {
|
|
|
313
497
|
patch?: never;
|
|
314
498
|
trace?: never;
|
|
315
499
|
};
|
|
500
|
+
"/organizations/{organization_id}/billing/topup/checkout": {
|
|
501
|
+
parameters: {
|
|
502
|
+
query?: never;
|
|
503
|
+
header?: never;
|
|
504
|
+
path?: never;
|
|
505
|
+
cookie?: never;
|
|
506
|
+
};
|
|
507
|
+
get?: never;
|
|
508
|
+
put?: never;
|
|
509
|
+
/**
|
|
510
|
+
* Create a payment-mode Stripe Checkout session for a one-time credit top-up purchase.
|
|
511
|
+
* @description The `price_id` must be one of the packs returned by `GET .../billing/topup-packs` —
|
|
512
|
+
* the catalog is resolved live (bypassing that endpoint's cache) since this is the
|
|
513
|
+
* purchase path. Fulfillment (crediting the organization once payment completes) is
|
|
514
|
+
* handled by the `checkout.session.completed` Stripe webhook, keyed off the session
|
|
515
|
+
* metadata stamped here.
|
|
516
|
+
*/
|
|
517
|
+
post: operations["create_topup_checkout"];
|
|
518
|
+
delete?: never;
|
|
519
|
+
options?: never;
|
|
520
|
+
head?: never;
|
|
521
|
+
patch?: never;
|
|
522
|
+
trace?: never;
|
|
523
|
+
};
|
|
316
524
|
}
|
|
317
525
|
interface components {
|
|
318
526
|
schemas: {
|
|
@@ -360,6 +568,22 @@ interface components {
|
|
|
360
568
|
/** @description Optional token for the target flow */
|
|
361
569
|
token?: string | null;
|
|
362
570
|
};
|
|
571
|
+
/** @description A single UBO/director to add to an existing KYB result. */
|
|
572
|
+
AddKybPersonInput: {
|
|
573
|
+
country: string;
|
|
574
|
+
dateOfBirth: string;
|
|
575
|
+
/** @description When present, the person is sent a KYC invitation and must complete full KYC for the
|
|
576
|
+
* KYB to be approvable. When absent, the person is screened by name only (AML) and is not
|
|
577
|
+
* notified — a clean name-AML result is sufficient (and required) for that person. */
|
|
578
|
+
email?: string | null;
|
|
579
|
+
firstName: string;
|
|
580
|
+
gender: string;
|
|
581
|
+
lastName: string;
|
|
582
|
+
};
|
|
583
|
+
/** @description Request body for `POST .../kyb/{kyb_result_id}/ubos` and `.../directors`. */
|
|
584
|
+
AddKybPersonsPayload: {
|
|
585
|
+
persons: components["schemas"]["AddKybPersonInput"][];
|
|
586
|
+
};
|
|
363
587
|
AddressData: {
|
|
364
588
|
addressLine?: string | null;
|
|
365
589
|
building: string;
|
|
@@ -370,7 +594,74 @@ interface components {
|
|
|
370
594
|
postalCode: string;
|
|
371
595
|
street: string;
|
|
372
596
|
};
|
|
597
|
+
/**
|
|
598
|
+
* @description Selected adverse-media provider, parsed from the `adverse_media_provider` config
|
|
599
|
+
* value so it can be matched exhaustively instead of compared as a string.
|
|
600
|
+
* @enum {string}
|
|
601
|
+
*/
|
|
602
|
+
AdverseMediaProviderKind: "VERIFY" | "ONE_MEDIA_CHECK" | "GROK";
|
|
603
|
+
/** @description A single adverse-media article persisted on an AML result.
|
|
604
|
+
*
|
|
605
|
+
* This mirrors the provider's article shape but lives in `zyphe-shared` (which
|
|
606
|
+
* cannot depend on `zyphe-clients-interface`); the worker maps the provider
|
|
607
|
+
* response into this type before persisting. */
|
|
608
|
+
AmlAdverseMediaArticle: {
|
|
609
|
+
eventGroup?: string | null;
|
|
610
|
+
language: string;
|
|
611
|
+
locations?: string[];
|
|
612
|
+
/** Format: date-time */
|
|
613
|
+
publishedDate?: string | null;
|
|
614
|
+
/** Format: double */
|
|
615
|
+
relevanceScore?: number | null;
|
|
616
|
+
snippet: string;
|
|
617
|
+
source: string;
|
|
618
|
+
title: string;
|
|
619
|
+
topics?: string[];
|
|
620
|
+
url: string;
|
|
621
|
+
};
|
|
622
|
+
/** @description Adverse-media screening outcome attached to an AML result. */
|
|
623
|
+
AmlAdverseMediaResult: {
|
|
624
|
+
articles?: components["schemas"]["AmlAdverseMediaArticle"][];
|
|
625
|
+
/** Format: date-time */
|
|
626
|
+
checkedAt: string;
|
|
627
|
+
/** @description Whether the screening returned any adverse-media articles (the gating signal). */
|
|
628
|
+
hasHit: boolean;
|
|
629
|
+
provider: components["schemas"]["AdverseMediaProviderKind"];
|
|
630
|
+
totalArticleCount: number;
|
|
631
|
+
totalEventCount: number;
|
|
632
|
+
};
|
|
633
|
+
/** @description Outcome of the latest agentic (Prosecutor → Defender → Judge) review of this screening,
|
|
634
|
+
* persisted on the result so the dispatcher does not re-review an unchanged screening and so
|
|
635
|
+
* a Suggest-mode verdict is visible as a suggestion. Scoped to one screening revision: like
|
|
636
|
+
* moderation forcing, it lapses when a re-screen bumps `checked_at` past `reviewed_at`
|
|
637
|
+
* (see [`AmlRiskResult::agent_review_in_force`]). */
|
|
638
|
+
AmlAgentReview: {
|
|
639
|
+
enactedAction: components["schemas"]["AmlAgentReviewAction"];
|
|
640
|
+
/** @description Decision-policy version that produced the verdict (audit traceability). */
|
|
641
|
+
policyVersion: string;
|
|
642
|
+
rationale: string;
|
|
643
|
+
/** Format: float */
|
|
644
|
+
residualRiskScore: number;
|
|
645
|
+
/** Format: date-time */
|
|
646
|
+
reviewedAt: string;
|
|
647
|
+
/** @description True when the agentic mode gated the action out (Suggest): the verdict is a suggestion
|
|
648
|
+
* for a human reviewer, nothing was enacted. */
|
|
649
|
+
suggested: boolean;
|
|
650
|
+
verdictAction: components["schemas"]["AmlAgentReviewAction"];
|
|
651
|
+
};
|
|
652
|
+
/**
|
|
653
|
+
* @description The action a review decision resolves to, independent of its action-specific payload — the
|
|
654
|
+
* serde tag of the review engine's `Decision`. The camelCase encodings (`approve` /
|
|
655
|
+
* `requestClarification` / `escalate`) match the strings previously stored on
|
|
656
|
+
* `metadata.agentReview`, so existing records deserialize unchanged.
|
|
657
|
+
* @enum {string}
|
|
658
|
+
*/
|
|
659
|
+
AmlAgentReviewAction: "approve" | "requestClarification" | "escalate";
|
|
373
660
|
AmlCheckSummary: {
|
|
661
|
+
/** @description Whether the adverse-media screening for this subject returned any articles.
|
|
662
|
+
* `#[serde(default)]` keeps existing person/company result rows (written before
|
|
663
|
+
* adverse-media screening) deserializable as `false`. */
|
|
664
|
+
hasAdverseMedia?: boolean;
|
|
374
665
|
hasPep: boolean;
|
|
375
666
|
hasSanctions: boolean;
|
|
376
667
|
highRiskEntitiesCount: number;
|
|
@@ -379,6 +670,11 @@ interface components {
|
|
|
379
670
|
highestRiskScore: number;
|
|
380
671
|
totalEntities: number;
|
|
381
672
|
};
|
|
673
|
+
AmlCompanyQueryMetadata: {
|
|
674
|
+
companyName: string;
|
|
675
|
+
country?: string;
|
|
676
|
+
registrationNumber?: string;
|
|
677
|
+
};
|
|
382
678
|
AmlEntityResponse: {
|
|
383
679
|
address?: components["schemas"]["FieldWithControl"];
|
|
384
680
|
birthCountry?: components["schemas"]["FieldWithControl"];
|
|
@@ -416,6 +712,8 @@ interface components {
|
|
|
416
712
|
riskScore: components["schemas"]["RiskScore"];
|
|
417
713
|
riskTopics: string[];
|
|
418
714
|
};
|
|
715
|
+
/** @enum {string} */
|
|
716
|
+
AmlModerationStatus: "approved" | "rejected" | "escalated";
|
|
419
717
|
AmlOccupancy: {
|
|
420
718
|
endDate?: components["schemas"]["FieldWithControl"];
|
|
421
719
|
post?: components["schemas"]["AmlPosition"][];
|
|
@@ -447,22 +745,37 @@ interface components {
|
|
|
447
745
|
lastName: string;
|
|
448
746
|
};
|
|
449
747
|
AmlResult: {
|
|
748
|
+
/** @description Whether adverse-media screening for this subject returned a hit. `#[serde(default)]`
|
|
749
|
+
* (→ `false`) covers legacy cached payloads that predate adverse-media screening. */
|
|
750
|
+
adverseMedia?: boolean;
|
|
450
751
|
/** Format: date-time */
|
|
451
752
|
createdAt: string;
|
|
452
753
|
data?: components["schemas"]["AmlRiskResult"] | null;
|
|
453
754
|
/** Format: uuid */
|
|
454
755
|
id: string;
|
|
756
|
+
/**
|
|
757
|
+
* Format: uuid
|
|
758
|
+
* @description For a name-only (email-less) UBO/director screening, the screened person's stable id
|
|
759
|
+
* (the `UboDefinition`/`DirectorDefinition` `id`); lets consumers correlate this AML row to
|
|
760
|
+
* its named person. `None` for verification-request-backed rows (person/company screenings).
|
|
761
|
+
*/
|
|
762
|
+
namedPersonRef?: string | null;
|
|
455
763
|
pep: boolean;
|
|
456
764
|
sanctions: boolean;
|
|
765
|
+
subjectType?: components["schemas"]["AmlSubjectType"];
|
|
457
766
|
/** Format: date-time */
|
|
458
767
|
updatedAt: string;
|
|
459
768
|
/** Format: uuid */
|
|
460
769
|
verificationRequestId?: string | null;
|
|
461
770
|
};
|
|
462
771
|
AmlRiskMetadata: {
|
|
772
|
+
adverseMedia?: components["schemas"]["AmlAdverseMediaResult"] | null;
|
|
773
|
+
agentReview?: components["schemas"]["AmlAgentReview"] | null;
|
|
463
774
|
/** Format: date-time */
|
|
464
775
|
checkedAt: string;
|
|
776
|
+
companyQuery?: components["schemas"]["AmlCompanyQueryMetadata"] | null;
|
|
465
777
|
controls: components["schemas"]["ResultControlOperation"][];
|
|
778
|
+
moderation?: components["schemas"]["AmlModerationStatus"] | null;
|
|
466
779
|
query?: components["schemas"]["AmlQueryMetadata"] | null;
|
|
467
780
|
summary: components["schemas"]["AmlCheckSummary"];
|
|
468
781
|
};
|
|
@@ -490,16 +803,155 @@ interface components {
|
|
|
490
803
|
title?: string;
|
|
491
804
|
url?: string | null;
|
|
492
805
|
};
|
|
806
|
+
/**
|
|
807
|
+
* @description The screened subject of an AML result. DTO mirror of the DB `AmlSubjectType` entity enum
|
|
808
|
+
* (converted via `From<entities::AmlSubjectType>`); lets consumers tell a company AML result
|
|
809
|
+
* from a person one. Defaults to `Person` (every result predating this field was a person).
|
|
810
|
+
* @enum {string}
|
|
811
|
+
*/
|
|
812
|
+
AmlSubjectType: "PERSON" | "COMPANY";
|
|
493
813
|
/** @enum {string} */
|
|
494
814
|
ApiKeyType: "PUBLISHABLE" | "SECRET";
|
|
495
815
|
/** @description A single custom risk tag that was assigned to a flow result by the flow builder. */
|
|
496
816
|
AssignedRiskTag: {
|
|
817
|
+
/**
|
|
818
|
+
* Format: date-time
|
|
819
|
+
* @description When this derivation last became active. Informational; `None` for legacy rows.
|
|
820
|
+
*/
|
|
821
|
+
addedAt?: string | null;
|
|
497
822
|
/** Format: uuid */
|
|
498
823
|
id: string;
|
|
824
|
+
/**
|
|
825
|
+
* Format: date-time
|
|
826
|
+
* @description Tombstone. `None` == active. This is the active predicate.
|
|
827
|
+
*/
|
|
828
|
+
removedAt?: string | null;
|
|
829
|
+
source?: components["schemas"]["RiskTagSource"];
|
|
499
830
|
tag: string;
|
|
500
831
|
/** Format: double */
|
|
501
832
|
weight: number;
|
|
502
833
|
};
|
|
834
|
+
/** @description Newtype wrapper for the list of assigned risk tags stored as JSONB in the database.
|
|
835
|
+
* Required because SeaORM's `FromJsonQueryResult` cannot be derived for bare `Vec<T>`. */
|
|
836
|
+
AssignedRiskTags: components["schemas"]["AssignedRiskTag"][];
|
|
837
|
+
/**
|
|
838
|
+
* @description All auditable actions.
|
|
839
|
+
*
|
|
840
|
+
* `JsonDisplay` / `JsonFromStr` keep `Display` and `FromStr` in sync with serde,
|
|
841
|
+
* so `.to_string()` always produces the DB-compatible string
|
|
842
|
+
* (e.g., `AuditAction::FlowCreated` → `"FLOW_CREATED"`).
|
|
843
|
+
* @enum {string}
|
|
844
|
+
*/
|
|
845
|
+
AuditAction: "VIEWED" | "CREATED" | "UPDATED" | "DELETED" | "AUTH_LOGIN" | "AUTH_LOGIN_FAILED" | "AUTH_LOGOUT" | "AUTH_PASSWORD_CHANGED" | "AUTH_PASSKEY_REGISTERED" | "AUTH_MAGIC_LINK_REQUESTED" | "AUTH_PASSWORD_RESET_REQUESTED" | "AUTH_EMAIL_VERIFIED" | "IDENTITY_ROLE_CHANGED" | "IDENTITY_DEACTIVATED" | "IDENTITY_DELETED" | "ORG_CREATED" | "ORG_SETTINGS_UPDATED" | "ORG_MEMBER_INVITED" | "ORG_MEMBER_REMOVED" | "ORG_MEMBER_ROLE_CHANGED" | "ORG_INVITE_REVOKED" | "API_KEY_CREATED" | "API_KEY_UPDATED" | "API_KEY_DELETED" | "BOT_CREATED" | "BOT_DELETED" | "BOT_TOKEN_REGENERATED" | "FLOW_CREATED" | "FLOW_UPDATED" | "FLOW_DELETED" | "FLOW_STEP_ADDED" | "FLOW_STEP_UPDATED" | "FLOW_STEP_DELETED" | "FLOW_SHARED" | "FLOW_SHARE_REVOKED" | "PARTNER_INVITED" | "PARTNER_INVITE_ACCEPTED" | "PARTNER_INVITE_REVOKED" | "PARTNER_INVITE_REJECTED" | "VR_CREATED" | "VR_STATUS_CHANGED" | "VR_MANUALLY_REVIEWED" | "DV_RESULT_REVIEW_REQUESTED" | "VR_CANCELLED" | "DV_RESULT_STATUS_CHANGED" | "DV_RESULT_MANUAL_REVIEW" | "DV_RESULT_REPLAYED" | "AML_RESULT_STATUS_CHANGED" | "AML_RESULT_MODERATED" | "AML_FIELD_REVIEWED" | "AML_AGENT_REVIEWED" | "POA_RESULT_STATUS_CHANGED" | "SPID_RESULT_STATUS_CHANGED" | "FORM_RESULT_STATUS_CHANGED" | "FORM_RESULT_SUBMITTED" | "KYB_APPLICATION_SUBMITTED" | "KYB_DOCUMENT_REQUEST_CREATED" | "KYB_DOCUMENT_UPLOADED" | "KYB_CLARIFICATION_SUBMITTED" | "KYB_DOCUMENT_REQUEST_REVIEWED" | "KYB_ASSIGNED" | "KYB_STAGE_CHANGED" | "KYB_COMMUNICATION_SENT" | "KYB_MODERATION_STATUS_UPDATED" | "KYB_PEP_SANCTIONS_STATUS_UPDATED" | "KYB_REPORT_UPLOADED" | "KYB_AUTO_COMPLETED" | "KYB_APPROVED" | "KYB_MANUAL_REVIEW_DECISION" | "KYB_VERIFICATION_FIELD_OVERRIDDEN" | "KYB_METADATA_PATCHED" | "KYB_BUSINESS_INFORMATION_EDITED" | "KYB_UBOS_ADDED" | "KYB_UBO_REMOVED" | "KYB_DIRECTORS_ADDED" | "KYB_DIRECTOR_REMOVED" | "KYB_AGENT_REVIEWED" | "KYC_GRANT_CREATED" | "CONSENT_GRANTED" | "BLOCKLIST_ENTRY_CREATED" | "BLOCKLIST_ENTRY_DELETED" | "RISK_WEIGHT_UPDATED" | "RISK_FACTOR_UPDATED" | "DOCUMENT_DOWNLOADED" | "FLOW_RESULT_EXPORTED" | "FLOW_RISK_SCORE_CHANGED" | "FLOW_RISK_STATUS_CHANGED" | "RISK_TAG_ADDED" | "RISK_TAG_RETRACTED" | "UNKNOWN";
|
|
846
|
+
/** @description A single entry in the audit log, returned by the query API. */
|
|
847
|
+
AuditLogEntry: {
|
|
848
|
+
action: components["schemas"]["AuditAction"];
|
|
849
|
+
/** Format: uuid */
|
|
850
|
+
actorId?: string | null;
|
|
851
|
+
actorIp?: string | null;
|
|
852
|
+
actorRole?: string | null;
|
|
853
|
+
actorZid?: string | null;
|
|
854
|
+
/** Format: date-time */
|
|
855
|
+
createdAt: string;
|
|
856
|
+
details: unknown;
|
|
857
|
+
/** Format: uuid */
|
|
858
|
+
id: string;
|
|
859
|
+
/** @description Whether this entry originated from a sandbox operation.
|
|
860
|
+
* `null` = cross-cutting event (auth, org management) that spans both environments. */
|
|
861
|
+
isSandbox?: boolean | null;
|
|
862
|
+
/** Format: uuid */
|
|
863
|
+
organizationId?: string | null;
|
|
864
|
+
outcomeStatus?: Omit<components["schemas"]["AuditOutcome"], "type"> | null;
|
|
865
|
+
/** Format: uuid */
|
|
866
|
+
resourceId?: string | null;
|
|
867
|
+
resourceType: components["schemas"]["AuditResourceType"];
|
|
868
|
+
/** @description Login-session identifier (`fid`). Stable across token refreshes within one browser session. */
|
|
869
|
+
sessionId?: string | null;
|
|
870
|
+
source?: Omit<components["schemas"]["AuditSource"], "type"> | null;
|
|
871
|
+
};
|
|
872
|
+
/** @description The outcome of the operation that produced an audit entry.
|
|
873
|
+
*
|
|
874
|
+
* Serialised to JSONB in the `outcomeStatus` column so the type structure is
|
|
875
|
+
* preserved and queryable (e.g. `WHERE "outcomeStatus"->>'type' = 'httpError'`).
|
|
876
|
+
*
|
|
877
|
+
* ## Variants
|
|
878
|
+
* - `httpSuccess { status }` — HTTP response with 2xx status code.
|
|
879
|
+
* - `httpError { status, code, tag }` — HTTP response with a non-2xx status.
|
|
880
|
+
* `status` is the numeric HTTP code; `code` and `tag` come from the
|
|
881
|
+
* [`BaxeError`] payload so investigators can see the application-level
|
|
882
|
+
* error identity without reading the response body.
|
|
883
|
+
* - `workerOk` — background worker completed successfully.
|
|
884
|
+
* - `workerError { variant }` — background worker failed; `variant` is the
|
|
885
|
+
* Rust error-enum variant name (e.g. `"VaultLocked"`, `"UpsertDvResult"`). */
|
|
886
|
+
AuditOutcome: {
|
|
887
|
+
/**
|
|
888
|
+
* Format: int32
|
|
889
|
+
* @description Numeric HTTP status code (e.g. 200, 201, 204).
|
|
890
|
+
*/
|
|
891
|
+
status: number;
|
|
892
|
+
/** @enum {string} */
|
|
893
|
+
type: "httpSuccess";
|
|
894
|
+
} | {
|
|
895
|
+
/**
|
|
896
|
+
* Format: int32
|
|
897
|
+
* @description Application-level error code from [`BaxeError`] (e.g. 200 for validation, 201 for deserialization).
|
|
898
|
+
* `None` when the error was not produced by the application's error framework.
|
|
899
|
+
*/
|
|
900
|
+
code?: number | null;
|
|
901
|
+
/**
|
|
902
|
+
* Format: int32
|
|
903
|
+
* @description Numeric HTTP status code (e.g. 400, 404, 500).
|
|
904
|
+
*/
|
|
905
|
+
status: number;
|
|
906
|
+
/** @description Semantic error tag string (e.g. `"BAD_REQUEST"`, `"NOT_FOUND"`, `"UNAUTHORIZED"`). */
|
|
907
|
+
tag?: string | null;
|
|
908
|
+
/** @enum {string} */
|
|
909
|
+
type: "httpError";
|
|
910
|
+
} | {
|
|
911
|
+
/** @enum {string} */
|
|
912
|
+
type: "workerOk";
|
|
913
|
+
} | {
|
|
914
|
+
/** @enum {string} */
|
|
915
|
+
type: "workerError";
|
|
916
|
+
/** @description Rust error-enum variant name (e.g. `"VaultLocked"`, `"UpsertDvResult"`). */
|
|
917
|
+
variant: string;
|
|
918
|
+
};
|
|
919
|
+
/**
|
|
920
|
+
* @description All auditable resource types. Stored as PascalCase in the `resource_type` column.
|
|
921
|
+
*
|
|
922
|
+
* `Unknown` is used for auto-generated events where the middleware cannot
|
|
923
|
+
* determine the resource type (e.g. streaming responses, system operations),
|
|
924
|
+
* and as a catch-all for unrecognised values from the database.
|
|
925
|
+
* @enum {string}
|
|
926
|
+
*/
|
|
927
|
+
AuditResourceType: "Search" | "Identity" | "Organization" | "OrganizationSettings" | "OrganizationTheme" | "OrganizationInvite" | "OrganizationBilling" | "SubscriptionPlan" | "KybJurisdictionPricing" | "ApiKey" | "Bot" | "Flow" | "FlowStep" | "FlowResult" | "FlowPartnerInvite" | "VerificationRequest" | "DvResult" | "AmlResult" | "PoaResult" | "KybResult" | "FormResult" | "Form" | "RiskWeight" | "ContextualFactor" | "ScoreDefinition" | "ScoreTag" | "AuditLog" | "ChatMessage" | "DocumentSelection" | "GeolocationResult" | "PhoneVerification" | "SpidResult" | "WalletVerification" | "Vault" | "KybUboData" | "DocumentDefinition" | "ConfigOverride" | "ShortUrl" | "Cache" | "Unknown";
|
|
928
|
+
/** @description The origin/trigger of an audit event.
|
|
929
|
+
*
|
|
930
|
+
* All audit events MUST have a source - this allows filtering/excluding events
|
|
931
|
+
* by their origin and provides context for investigations.
|
|
932
|
+
*
|
|
933
|
+
* ## Variants
|
|
934
|
+
* - `Http` — Event originated from an HTTP request (method + path).
|
|
935
|
+
* - `Worker` — Event emitted by a background worker (type + scenario).
|
|
936
|
+
* - `Scheduled` — Event from a scheduled/cron task (task name). */
|
|
937
|
+
AuditSource: {
|
|
938
|
+
/** @description HTTP method (e.g. "GET", "POST", "PUT", "DELETE"). */
|
|
939
|
+
method: string;
|
|
940
|
+
/** @description Request path (e.g. "/organizations/{id}/flows"). */
|
|
941
|
+
path: string;
|
|
942
|
+
/** @enum {string} */
|
|
943
|
+
type: "HTTP";
|
|
944
|
+
} | {
|
|
945
|
+
scenario: components["schemas"]["WorkerScenario"];
|
|
946
|
+
/** @enum {string} */
|
|
947
|
+
type: "WORKER";
|
|
948
|
+
workerType: components["schemas"]["WorkerType"];
|
|
949
|
+
} | {
|
|
950
|
+
/** @description Name of the scheduled task (e.g. "AML_REFRESH", "CLEANUP"). */
|
|
951
|
+
taskName: string;
|
|
952
|
+
/** @enum {string} */
|
|
953
|
+
type: "SCHEDULED";
|
|
954
|
+
};
|
|
503
955
|
AutoOneClickKycConfig: {
|
|
504
956
|
/** @example { "en_title": "Verify with Partners" } */
|
|
505
957
|
labels?: {
|
|
@@ -538,6 +990,21 @@ interface components {
|
|
|
538
990
|
errorTag: components["schemas"]["ErrorTags"];
|
|
539
991
|
message?: string | null;
|
|
540
992
|
};
|
|
993
|
+
/**
|
|
994
|
+
* @description Describes the visibility scope of a bot token.
|
|
995
|
+
*
|
|
996
|
+
* - `Organization` — the bot is connected to one specific organisation and is
|
|
997
|
+
* only visible in that organisation's bot list.
|
|
998
|
+
* - `Platform` — the bot is a platform-root identity (no
|
|
999
|
+
* `default_organization_id`) and is visible in every organisation's bot
|
|
1000
|
+
* list.
|
|
1001
|
+
*
|
|
1002
|
+
* Stored inside the `credentialData` JSONB of the `BOT_TOKEN` credential row.
|
|
1003
|
+
* `Organization` is the default to ensure backward-compatible deserialization
|
|
1004
|
+
* of rows written before this field existed.
|
|
1005
|
+
* @enum {string}
|
|
1006
|
+
*/
|
|
1007
|
+
BotTokenScope: "ORGANIZATION" | "PLATFORM";
|
|
541
1008
|
/** @description A condition branch for switch operators. */
|
|
542
1009
|
BranchCondition: {
|
|
543
1010
|
condition: components["schemas"]["Condition"];
|
|
@@ -564,17 +1031,16 @@ interface components {
|
|
|
564
1031
|
/** @description The user-submitted value for this field. */
|
|
565
1032
|
submittedValue?: string | null;
|
|
566
1033
|
/** @description The canonical corrected value recommended by the AI agent.
|
|
567
|
-
*
|
|
568
|
-
*
|
|
569
|
-
*
|
|
570
|
-
* for manual review without mutating the stored record. */
|
|
1034
|
+
* When a suggested value is safely applied, `run_business_info_cross_check` stores the field
|
|
1035
|
+
* as `AutoCorrect`. `Mismatch` and `NotFound` suggestions are surfaced for manual review
|
|
1036
|
+
* without mutating the stored record. */
|
|
571
1037
|
suggestedValue?: string | null;
|
|
572
1038
|
};
|
|
573
1039
|
/**
|
|
574
1040
|
* @description Match type for a single business information field against document-extracted values.
|
|
575
1041
|
* @enum {string}
|
|
576
1042
|
*/
|
|
577
|
-
BusinessInfoMatchType: "match" | "fuzzy" | "mismatch" | "notFound";
|
|
1043
|
+
BusinessInfoMatchType: "match" | "autoCorrect" | "fuzzy" | "mismatch" | "notFound";
|
|
578
1044
|
BusinessInformation: {
|
|
579
1045
|
address: string;
|
|
580
1046
|
businessActivity: string;
|
|
@@ -621,6 +1087,10 @@ interface components {
|
|
|
621
1087
|
* @enum {string}
|
|
622
1088
|
*/
|
|
623
1089
|
CheckStatus: "passed" | "failed" | "not_performed" | "unknown";
|
|
1090
|
+
/** @description Response from creating a checkout session */
|
|
1091
|
+
CheckoutSessionResponse: {
|
|
1092
|
+
checkoutUrl: string;
|
|
1093
|
+
};
|
|
624
1094
|
CloudflareTracePayload: {
|
|
625
1095
|
colo?: string | null;
|
|
626
1096
|
ip?: string | null;
|
|
@@ -751,6 +1221,15 @@ interface components {
|
|
|
751
1221
|
accepted: string[];
|
|
752
1222
|
blocked: string[];
|
|
753
1223
|
};
|
|
1224
|
+
/** @description Request to create a payment-mode Stripe Checkout session for a one-time credit top-up
|
|
1225
|
+
* purchase (`POST .../billing/topup/checkout`). */
|
|
1226
|
+
CreateTopupCheckoutRequest: {
|
|
1227
|
+
/** @description The Stripe price ID of the top-up pack to purchase, as returned by
|
|
1228
|
+
* `GET .../billing/topup-packs`. */
|
|
1229
|
+
priceId: string;
|
|
1230
|
+
/** @description Optional redirect URI after checkout. If not provided, redirects to the webapp root. */
|
|
1231
|
+
redirectUri?: string | null;
|
|
1232
|
+
};
|
|
754
1233
|
CreateVerificationRequestPayload: components["schemas"]["VerificationIdentifier"] & {
|
|
755
1234
|
continueUrl?: string | null;
|
|
756
1235
|
cookiesPolicyAccepted: boolean;
|
|
@@ -765,8 +1244,42 @@ interface components {
|
|
|
765
1244
|
CreateVerificationRequestResponse: {
|
|
766
1245
|
verificationRequest: components["schemas"]["VerificationRequest"];
|
|
767
1246
|
};
|
|
1247
|
+
/**
|
|
1248
|
+
* @description How an organization was created. Lets the frontend tell self-serve signups
|
|
1249
|
+
* apart from admin- or partner-provisioned orgs (e.g. to force self-serve orgs
|
|
1250
|
+
* to pick a real plan instead of the custom plan).
|
|
1251
|
+
*
|
|
1252
|
+
* - `SelfServe` — public signup with no invite.
|
|
1253
|
+
* - `Admin` — created by platform staff; also the default for pre-existing orgs.
|
|
1254
|
+
* - `Partner` — created through a validated partner invite.
|
|
1255
|
+
* @enum {string}
|
|
1256
|
+
*/
|
|
1257
|
+
CreationSource: "SELF_SERVE" | "ADMIN" | "PARTNER";
|
|
768
1258
|
/** @enum {string} */
|
|
769
1259
|
CredentialType: "PASSWORD" | "MAGIC_LINK" | "PASSKEY" | "BOT_TOKEN" | "WALLET" | "EXTERNAL_ID";
|
|
1260
|
+
/** @description Plan credit expiry policy — replaces the former `carry_over` bool.
|
|
1261
|
+
*
|
|
1262
|
+
* Determines the `expires_at` of Stripe Credit Grants created at renewal.
|
|
1263
|
+
* Stored as JSONB on `SubscriptionPlan.creditExpiryPolicy`. */
|
|
1264
|
+
CreditExpiryPolicy: {
|
|
1265
|
+
/** @enum {string} */
|
|
1266
|
+
type: "periodEnd";
|
|
1267
|
+
} | {
|
|
1268
|
+
/** @enum {string} */
|
|
1269
|
+
type: "never";
|
|
1270
|
+
} | {
|
|
1271
|
+
/** Format: int32 */
|
|
1272
|
+
months: number;
|
|
1273
|
+
/** @enum {string} */
|
|
1274
|
+
type: "monthsFromGrant";
|
|
1275
|
+
} | {
|
|
1276
|
+
/** Format: int32 */
|
|
1277
|
+
months: number;
|
|
1278
|
+
/** @enum {string} */
|
|
1279
|
+
type: "monthsFromSubscription";
|
|
1280
|
+
};
|
|
1281
|
+
/** @example usd */
|
|
1282
|
+
Currency: string;
|
|
770
1283
|
CustomDocumentConfig: {
|
|
771
1284
|
enabled?: boolean;
|
|
772
1285
|
/** Format: uuid */
|
|
@@ -777,9 +1290,15 @@ interface components {
|
|
|
777
1290
|
DirectorDefinition: {
|
|
778
1291
|
country: string;
|
|
779
1292
|
dateOfBirth: string;
|
|
780
|
-
|
|
1293
|
+
/** @description Email of the director. `None` for a name-only director added without an email. */
|
|
1294
|
+
emailAddress?: string | null;
|
|
781
1295
|
firstName: string;
|
|
782
1296
|
gender: string;
|
|
1297
|
+
/**
|
|
1298
|
+
* Format: uuid
|
|
1299
|
+
* @description Stable identifier for this director within the KYB result. See [`UboDefinition::id`].
|
|
1300
|
+
*/
|
|
1301
|
+
id?: string | null;
|
|
783
1302
|
lastName: string;
|
|
784
1303
|
};
|
|
785
1304
|
Document: {
|
|
@@ -800,6 +1319,13 @@ interface components {
|
|
|
800
1319
|
vaultId: string;
|
|
801
1320
|
};
|
|
802
1321
|
DocumentConfig: {
|
|
1322
|
+
/** @description Whether this document is requested on demand by a reviewer (excluded from the
|
|
1323
|
+
* required-document gate and the end-user's upload form) instead of being demanded upfront.
|
|
1324
|
+
*
|
|
1325
|
+
* Configurable per document. `None` means "unset" — the backend then applies the document's
|
|
1326
|
+
* default: `proofOfAttorney` defaults to on-demand (`true`), every other default document
|
|
1327
|
+
* defaults to upfront (`false`). An explicit value overrides that default. */
|
|
1328
|
+
onDemand?: boolean | null;
|
|
803
1329
|
required?: boolean;
|
|
804
1330
|
};
|
|
805
1331
|
DocumentData: {
|
|
@@ -888,9 +1414,24 @@ interface components {
|
|
|
888
1414
|
s3Key?: string | null;
|
|
889
1415
|
};
|
|
890
1416
|
DvConfig: {
|
|
1417
|
+
/** @default DISABLED */
|
|
1418
|
+
amlAgenticMode: components["schemas"]["KybAgenticMode"];
|
|
891
1419
|
/** Format: uuid */
|
|
892
1420
|
documentSelectionStepId?: string;
|
|
893
|
-
/** @
|
|
1421
|
+
/** @description Incode configuration ID the frontend must use when creating the capture session.
|
|
1422
|
+
*
|
|
1423
|
+
* Computed server-side during rehydration from `poa_from_govcheck` and the
|
|
1424
|
+
* sandbox/live environment (see [`crate::types::dto::DvConfig`] rehydration in
|
|
1425
|
+
* the core handler). It is never persisted: it defaults to `None` and is skipped
|
|
1426
|
+
* when serializing `None`, so storing a config round-trips cleanly. */
|
|
1427
|
+
incodeConfigurationId?: string | null;
|
|
1428
|
+
/**
|
|
1429
|
+
* Format: int64
|
|
1430
|
+
* @description How long (in seconds) a successful DV result remains valid before
|
|
1431
|
+
* re-KYC is required. `None` = never expires (existing behaviour).
|
|
1432
|
+
*/
|
|
1433
|
+
kycValiditySeconds?: number | null;
|
|
1434
|
+
/** @example { "en_button_label": "Next step" } */
|
|
894
1435
|
labels?: {
|
|
895
1436
|
[key: string]: string;
|
|
896
1437
|
};
|
|
@@ -901,8 +1442,21 @@ interface components {
|
|
|
901
1442
|
maxAttempts?: number | null;
|
|
902
1443
|
/** Format: int32 */
|
|
903
1444
|
minimumAge: number;
|
|
1445
|
+
/** @description When true, route Incode through the government-validation flow and, after the
|
|
1446
|
+
* document scan, produce a PoA result (source DLDV) from the driver's-license
|
|
1447
|
+
* address validation. Backward compatible: missing key deserializes to false. */
|
|
1448
|
+
poaFromGovcheck?: boolean;
|
|
904
1449
|
processImagesOverrides?: components["schemas"]["ProcessImagesOverrides"] | null;
|
|
905
1450
|
requiredDocumentFields?: components["schemas"]["RequiredDocumentField"][];
|
|
1451
|
+
/**
|
|
1452
|
+
* Format: int64
|
|
1453
|
+
* @description How long (in seconds) *before* a result's expiry to begin re-verification:
|
|
1454
|
+
* the flow is reopened and a re-verify reminder email is sent, so the holder can
|
|
1455
|
+
* renew while their current result is still valid (continuous validity). `None`
|
|
1456
|
+
* defaults to one week ([`DvConfig::DEFAULT_REVERIFICATION_LEAD_SECONDS`]).
|
|
1457
|
+
* Ignored when `kyc_validity_seconds` is `None`; clamped to the validity window.
|
|
1458
|
+
*/
|
|
1459
|
+
reverificationLeadSeconds?: number | null;
|
|
906
1460
|
thresholds?: {
|
|
907
1461
|
documentScorePercent?: number;
|
|
908
1462
|
} | null;
|
|
@@ -950,6 +1504,12 @@ interface components {
|
|
|
950
1504
|
status: components["schemas"]["ResultStatus"];
|
|
951
1505
|
/** Format: date-time */
|
|
952
1506
|
updatedAt?: string | null;
|
|
1507
|
+
/**
|
|
1508
|
+
* Format: date-time
|
|
1509
|
+
* @description When this KYC result expires and re-verification is required (re-KYC validity).
|
|
1510
|
+
* `null` means it never expires (no `kyc_validity_seconds` configured, or a legacy result).
|
|
1511
|
+
*/
|
|
1512
|
+
validUntil?: string | null;
|
|
953
1513
|
/** Format: uuid */
|
|
954
1514
|
verificationRequestId?: string | null;
|
|
955
1515
|
};
|
|
@@ -967,9 +1527,11 @@ interface components {
|
|
|
967
1527
|
/** Format: int32 */
|
|
968
1528
|
numberOfAttempts: number;
|
|
969
1529
|
status: components["schemas"]["ResultStatus"];
|
|
1530
|
+
} & {
|
|
1531
|
+
[key: string]: boolean;
|
|
970
1532
|
};
|
|
971
1533
|
/** @enum {string} */
|
|
972
|
-
ErrorTags: "unexpected" | "bad_request" | "permission_denied" | "request_deserialization" | "database" | "invalid_email_or_password" | "user_not_confirmed" | "verify_password" | "send_email" | "open_session" | "read_session" | "close_session" | "user_disabled" | "missing_authorization_header" | "invalid_authorization_header" | "token_generation" | "user_not_found" | "email_already_taken" | "invalid_invite" | "wrong_invite_user" | "invite_not_found" | "email_already_verified" | "flow_not_found" | "flow_step_not_found" | "organization_not_found" | "storage" | "verification_request_not_found" | "document_reader" | "websocket" | "organization_settings_not_found" | "start_job" | "result_not_found" | "kyc_grant_not_found" | "document_not_found" | "service_invocation" | "trigger_webhook" | "too_many_invites" | "invite_already_used" | "invite_already_accepted" | "invite_already_revoked" | "invite_revoked" | "invite_expired" | "invite_already_exists" | "share_already_revoked" | "form_not_found" | "form_in_use" | "flow_step_configuration_not_found" | "identity_not_found" | "step_order_violation" | "serialization" | "mock_data" | "api_key_not_found" | "not_implemented" | "access_grant" | "rate_limit_exceeded" | "missing_api_key" | "invalid_api_key" | "origin_not_allowed" | "step_already_completed" | "send_sms" | "send_notification" | "parse_error" | "inviter_organization_not_found" | "forbidden" | "passkey_authentication" | "internal" | "invalid_email" | "graph_validation" | "external_api" | "share_already_has_write_access" | "share_does_not_have_write_access" | "write_access_already_revoked" | "invite_required" | "billing";
|
|
1534
|
+
ErrorTags: "unexpected" | "bad_request" | "permission_denied" | "request_deserialization" | "database" | "invalid_email_or_password" | "user_not_confirmed" | "verify_password" | "send_email" | "open_session" | "read_session" | "close_session" | "user_disabled" | "missing_authorization_header" | "invalid_authorization_header" | "token_generation" | "user_not_found" | "email_already_taken" | "invalid_invite" | "wrong_invite_user" | "invite_not_found" | "email_already_verified" | "flow_not_found" | "flow_step_not_found" | "organization_not_found" | "storage" | "verification_request_not_found" | "document_reader" | "websocket" | "organization_settings_not_found" | "theme_not_found" | "start_job" | "result_not_found" | "kyc_grant_not_found" | "document_not_found" | "service_invocation" | "trigger_webhook" | "too_many_invites" | "invite_already_used" | "invite_already_accepted" | "invite_already_revoked" | "invite_revoked" | "invite_expired" | "invite_already_exists" | "share_already_revoked" | "form_not_found" | "form_in_use" | "flow_step_configuration_not_found" | "identity_not_found" | "step_order_violation" | "serialization" | "mock_data" | "api_key_not_found" | "not_implemented" | "access_grant" | "rate_limit_exceeded" | "missing_api_key" | "invalid_api_key" | "origin_not_allowed" | "step_already_completed" | "send_sms" | "send_notification" | "parse_error" | "inviter_organization_not_found" | "forbidden" | "passkey_authentication" | "internal" | "invalid_email" | "graph_validation" | "external_api" | "share_already_has_write_access" | "share_does_not_have_write_access" | "write_access_already_revoked" | "invite_required" | "billing" | "product_not_active";
|
|
973
1535
|
/** @description Represents an executed action with its ID and type. */
|
|
974
1536
|
ExecutedAction: {
|
|
975
1537
|
actionConfig: components["schemas"]["ActionConfig"];
|
|
@@ -979,6 +1541,28 @@ interface components {
|
|
|
979
1541
|
*/
|
|
980
1542
|
actionId: string;
|
|
981
1543
|
};
|
|
1544
|
+
/** @description A FORM factor key: a fixed string, or the submitted answer value itself (so each distinct
|
|
1545
|
+
* answer maps to its own FORM factor — e.g. a country select).
|
|
1546
|
+
*
|
|
1547
|
+
* `AnswerValue` on a `Select` field authors one `ScoreFactor` row per enumerated
|
|
1548
|
+
* `SelectOptions.values` entry at form-sync time (`form_risk_sync::DesiredRisk::from_sections`),
|
|
1549
|
+
* sharing the factor's multiplier, so any of those answers resolves to a real multiplier at
|
|
1550
|
+
* score time.
|
|
1551
|
+
*
|
|
1552
|
+
* **Remaining gap (D-13):** a field has no enumerable option set to author against when it is
|
|
1553
|
+
* not a `Select` (e.g. free-text `Text`), or when it is a `Select` with `isOtherAllowed: true`
|
|
1554
|
+
* and the submitted answer is the free-text "Other" value. In those cases the emitted
|
|
1555
|
+
* `AnswerValue` key in `FormResult.riskFactorKeys` has no matching `ScoreFactor` row, the score-time
|
|
1556
|
+
* lookup returns `None`, and the factor's multiplier is silently skipped (undercounting the
|
|
1557
|
+
* contextual multiplier). Form-sync logs a warning when this applies to a saved field. */
|
|
1558
|
+
FactorKey: {
|
|
1559
|
+
/** @enum {string} */
|
|
1560
|
+
type: "fixed";
|
|
1561
|
+
value: string;
|
|
1562
|
+
} | {
|
|
1563
|
+
/** @enum {string} */
|
|
1564
|
+
type: "answerValue";
|
|
1565
|
+
};
|
|
982
1566
|
FieldControlOperation: {
|
|
983
1567
|
/** Format: uuid */
|
|
984
1568
|
identityId: string;
|
|
@@ -1005,6 +1589,27 @@ interface components {
|
|
|
1005
1589
|
* @enum {string}
|
|
1006
1590
|
*/
|
|
1007
1591
|
FieldReviewStatus: "PENDING" | "APPROVED" | "REJECTED";
|
|
1592
|
+
/** @description Risk authoring attached to a single form field (compiled to Forms-source score rows on save). */
|
|
1593
|
+
FieldRiskConfig: {
|
|
1594
|
+
factors?: components["schemas"]["FieldRiskFactor"][];
|
|
1595
|
+
tags?: components["schemas"]["FieldRiskTag"][];
|
|
1596
|
+
};
|
|
1597
|
+
FieldRiskFactor: {
|
|
1598
|
+
/** @description Target ScoreDefinition key. None = "forms" (100% backward compatible). */
|
|
1599
|
+
definitionKey?: string | null;
|
|
1600
|
+
key: components["schemas"]["FactorKey"];
|
|
1601
|
+
/** Format: double */
|
|
1602
|
+
multiplier: number;
|
|
1603
|
+
when?: Omit<components["schemas"]["Condition"], "op"> | null;
|
|
1604
|
+
};
|
|
1605
|
+
FieldRiskTag: {
|
|
1606
|
+
/** @description Target ScoreDefinition key. None = "forms" (100% backward compatible). */
|
|
1607
|
+
definitionKey?: string | null;
|
|
1608
|
+
tag: string;
|
|
1609
|
+
/** Format: double */
|
|
1610
|
+
weight: number;
|
|
1611
|
+
when?: Omit<components["schemas"]["Condition"], "op"> | null;
|
|
1612
|
+
};
|
|
1008
1613
|
FieldWithControl: {
|
|
1009
1614
|
controls: components["schemas"]["FieldControlOperation"][];
|
|
1010
1615
|
value: string[];
|
|
@@ -1016,7 +1621,7 @@ interface components {
|
|
|
1016
1621
|
maxCountUploads?: number;
|
|
1017
1622
|
};
|
|
1018
1623
|
/** @enum {string} */
|
|
1019
|
-
FilterOperator: "unfiltered" | "in" | "equals" | "not-in" | "not-equals" | "contains";
|
|
1624
|
+
FilterOperator: "unfiltered" | "in" | "equals" | "not-in" | "not-equals" | "contains" | "gte" | "lte";
|
|
1020
1625
|
Flow: {
|
|
1021
1626
|
/** Format: date-time */
|
|
1022
1627
|
createdAt?: string | null;
|
|
@@ -1028,6 +1633,11 @@ interface components {
|
|
|
1028
1633
|
slug: string;
|
|
1029
1634
|
steps: components["schemas"]["FlowStep"][];
|
|
1030
1635
|
successUrl: string;
|
|
1636
|
+
/**
|
|
1637
|
+
* Format: uuid
|
|
1638
|
+
* @description The theme this flow renders with; `None` means use the org default theme.
|
|
1639
|
+
*/
|
|
1640
|
+
themeId?: string | null;
|
|
1031
1641
|
/** Format: date-time */
|
|
1032
1642
|
updatedAt?: string | null;
|
|
1033
1643
|
webhookUrl: string;
|
|
@@ -1059,6 +1669,11 @@ interface components {
|
|
|
1059
1669
|
phoneResults: components["schemas"]["PhoneResult"][];
|
|
1060
1670
|
poaResults: components["schemas"]["PoaResult"][];
|
|
1061
1671
|
reviewSuggestion?: components["schemas"]["ReviewSuggestion"] | null;
|
|
1672
|
+
/**
|
|
1673
|
+
* Format: int32
|
|
1674
|
+
* @description Composed global risk score for the flow (0–100). `None` if not yet scored.
|
|
1675
|
+
*/
|
|
1676
|
+
riskScorePercent?: number | null;
|
|
1062
1677
|
spidResults: components["schemas"]["SpidResult"][];
|
|
1063
1678
|
status: components["schemas"]["VerificationRequestStatus"];
|
|
1064
1679
|
/** Format: date-time */
|
|
@@ -1458,6 +2073,8 @@ interface components {
|
|
|
1458
2073
|
/** @enum {string} */
|
|
1459
2074
|
FormReason: "UNKNOWN";
|
|
1460
2075
|
FormResult: {
|
|
2076
|
+
/** @description Risk tags assigned during form scoring. `None` if not scored. */
|
|
2077
|
+
assignedRiskTags?: components["schemas"]["AssignedRiskTag"][] | null;
|
|
1461
2078
|
/** Format: date-time */
|
|
1462
2079
|
createdAt?: string | null;
|
|
1463
2080
|
/** Format: uuid */
|
|
@@ -1471,6 +2088,8 @@ interface components {
|
|
|
1471
2088
|
/** Format: uuid */
|
|
1472
2089
|
id: string;
|
|
1473
2090
|
reason?: components["schemas"]["FormReason"] | null;
|
|
2091
|
+
/** @description Risk factor keys matched during form scoring. `None` if not scored. */
|
|
2092
|
+
riskFactorKeys?: string[] | null;
|
|
1474
2093
|
sections: components["schemas"]["FormSection"][];
|
|
1475
2094
|
status: components["schemas"]["ResultStatus"];
|
|
1476
2095
|
/** Format: date-time */
|
|
@@ -1490,7 +2109,7 @@ interface components {
|
|
|
1490
2109
|
* # Field Name Restrictions
|
|
1491
2110
|
*
|
|
1492
2111
|
* The `fields` HashMap is flattened during serialization. Form field names must not conflict
|
|
1493
|
-
* with the reserved field
|
|
2112
|
+
* with the reserved field names "status" and "riskScorePercent", as this would create duplicate
|
|
1494
2113
|
* keys in the serialized JSON output, resulting in invalid JSON. */
|
|
1495
2114
|
FormStepOutput: {
|
|
1496
2115
|
status: components["schemas"]["ResultStatus"];
|
|
@@ -1563,6 +2182,7 @@ interface components {
|
|
|
1563
2182
|
organizationId: string;
|
|
1564
2183
|
organizationName: string;
|
|
1565
2184
|
settings: components["schemas"]["Settings"];
|
|
2185
|
+
theme?: components["schemas"]["Theme"] | null;
|
|
1566
2186
|
};
|
|
1567
2187
|
/** @description Response to the `liveness-challenge` endpoint.
|
|
1568
2188
|
*
|
|
@@ -1573,6 +2193,8 @@ interface components {
|
|
|
1573
2193
|
* No movements are required. */
|
|
1574
2194
|
GetLivenessChallengeResponse: {
|
|
1575
2195
|
calibrationImage: components["schemas"]["LivenessUploadUrl"];
|
|
2196
|
+
/** Format: float */
|
|
2197
|
+
cardinalDominanceRatio: number;
|
|
1576
2198
|
/** Format: uuid */
|
|
1577
2199
|
id: string;
|
|
1578
2200
|
/** @enum {string} */
|
|
@@ -1695,6 +2317,7 @@ interface components {
|
|
|
1695
2317
|
name: string;
|
|
1696
2318
|
options: unknown;
|
|
1697
2319
|
requiredWhen?: Omit<components["schemas"]["Condition"], "op"> | null;
|
|
2320
|
+
risk?: components["schemas"]["FieldRiskConfig"] | null;
|
|
1698
2321
|
/** @enum {string} */
|
|
1699
2322
|
type: "date";
|
|
1700
2323
|
value?: unknown;
|
|
@@ -1706,8 +2329,27 @@ interface components {
|
|
|
1706
2329
|
name: string;
|
|
1707
2330
|
options: unknown;
|
|
1708
2331
|
requiredWhen?: Omit<components["schemas"]["Condition"], "op"> | null;
|
|
2332
|
+
risk?: components["schemas"]["FieldRiskConfig"] | null;
|
|
1709
2333
|
/** @enum {string} */
|
|
1710
2334
|
type: "text";
|
|
2335
|
+
/** @description Optional regex pattern validated against the submitted value.
|
|
2336
|
+
* Written by the platform admin at form-build time; both frontend and
|
|
2337
|
+
* backend validate against it on submission. */
|
|
2338
|
+
validationRegex?: string | null;
|
|
2339
|
+
value?: unknown;
|
|
2340
|
+
visibleWhen?: Omit<components["schemas"]["Condition"], "op"> | null;
|
|
2341
|
+
} | {
|
|
2342
|
+
label: {
|
|
2343
|
+
[key: string]: string;
|
|
2344
|
+
};
|
|
2345
|
+
name: string;
|
|
2346
|
+
options: unknown;
|
|
2347
|
+
requiredWhen?: Omit<components["schemas"]["Condition"], "op"> | null;
|
|
2348
|
+
risk?: components["schemas"]["FieldRiskConfig"] | null;
|
|
2349
|
+
/** @enum {string} */
|
|
2350
|
+
type: "number";
|
|
2351
|
+
/** @description Optional regex pattern validated against the stringified submitted number. */
|
|
2352
|
+
validationRegex?: string | null;
|
|
1711
2353
|
value?: unknown;
|
|
1712
2354
|
visibleWhen?: Omit<components["schemas"]["Condition"], "op"> | null;
|
|
1713
2355
|
} | {
|
|
@@ -1717,8 +2359,11 @@ interface components {
|
|
|
1717
2359
|
name: string;
|
|
1718
2360
|
options: unknown;
|
|
1719
2361
|
requiredWhen?: Omit<components["schemas"]["Condition"], "op"> | null;
|
|
2362
|
+
risk?: components["schemas"]["FieldRiskConfig"] | null;
|
|
1720
2363
|
/** @enum {string} */
|
|
1721
2364
|
type: "textarea";
|
|
2365
|
+
/** @description Optional regex pattern validated against the submitted value. */
|
|
2366
|
+
validationRegex?: string | null;
|
|
1722
2367
|
value?: unknown;
|
|
1723
2368
|
visibleWhen?: Omit<components["schemas"]["Condition"], "op"> | null;
|
|
1724
2369
|
} | {
|
|
@@ -1728,6 +2373,7 @@ interface components {
|
|
|
1728
2373
|
name: string;
|
|
1729
2374
|
options: unknown;
|
|
1730
2375
|
requiredWhen?: Omit<components["schemas"]["Condition"], "op"> | null;
|
|
2376
|
+
risk?: components["schemas"]["FieldRiskConfig"] | null;
|
|
1731
2377
|
/** @enum {string} */
|
|
1732
2378
|
type: "checkbox";
|
|
1733
2379
|
value?: unknown;
|
|
@@ -1739,6 +2385,7 @@ interface components {
|
|
|
1739
2385
|
name: string;
|
|
1740
2386
|
options: components["schemas"]["FileOptions"];
|
|
1741
2387
|
requiredWhen?: Omit<components["schemas"]["Condition"], "op"> | null;
|
|
2388
|
+
risk?: components["schemas"]["FieldRiskConfig"] | null;
|
|
1742
2389
|
/** @enum {string} */
|
|
1743
2390
|
type: "file";
|
|
1744
2391
|
value?: unknown;
|
|
@@ -1756,6 +2403,7 @@ interface components {
|
|
|
1756
2403
|
};
|
|
1757
2404
|
options: components["schemas"]["SelectOptions"];
|
|
1758
2405
|
requiredWhen?: Omit<components["schemas"]["Condition"], "op"> | null;
|
|
2406
|
+
risk?: components["schemas"]["FieldRiskConfig"] | null;
|
|
1759
2407
|
/** @enum {string} */
|
|
1760
2408
|
type: "select";
|
|
1761
2409
|
value?: unknown;
|
|
@@ -1767,6 +2415,7 @@ interface components {
|
|
|
1767
2415
|
name: string;
|
|
1768
2416
|
options: unknown;
|
|
1769
2417
|
requiredWhen?: Omit<components["schemas"]["Condition"], "op"> | null;
|
|
2418
|
+
risk?: components["schemas"]["FieldRiskConfig"] | null;
|
|
1770
2419
|
/** @enum {string} */
|
|
1771
2420
|
type: "place";
|
|
1772
2421
|
value?: unknown;
|
|
@@ -1774,7 +2423,7 @@ interface components {
|
|
|
1774
2423
|
};
|
|
1775
2424
|
InputFieldOptions: components["schemas"]["FileOptions"] | components["schemas"]["SelectOptions"] | unknown;
|
|
1776
2425
|
/** @enum {string} */
|
|
1777
|
-
InputFieldType: "date" | "text" | "textarea" | "checkbox" | "file" | "select" | "place";
|
|
2426
|
+
InputFieldType: "date" | "text" | "number" | "textarea" | "checkbox" | "file" | "select" | "place";
|
|
1778
2427
|
/** @description Input image for document scanning. */
|
|
1779
2428
|
InputImage: {
|
|
1780
2429
|
pageIndex: components["schemas"]["InputImagePageIndex"];
|
|
@@ -1791,19 +2440,15 @@ interface components {
|
|
|
1791
2440
|
* @enum {string}
|
|
1792
2441
|
*/
|
|
1793
2442
|
InputImagePageIndex: "front" | "back";
|
|
1794
|
-
|
|
1795
|
-
|
|
1796
|
-
|
|
1797
|
-
|
|
1798
|
-
|
|
1799
|
-
|
|
1800
|
-
|
|
1801
|
-
|
|
1802
|
-
|
|
1803
|
-
id: string;
|
|
1804
|
-
/** Format: uuid */
|
|
1805
|
-
kybResultId: string;
|
|
1806
|
-
};
|
|
2443
|
+
/**
|
|
2444
|
+
* @description Per-domain agentic review mode shared by the compliance review agents (KYB, AML, …):
|
|
2445
|
+
* `Disabled` → never dispatched; `Suggest` → the terminal approve/clear action is suppressed and
|
|
2446
|
+
* recorded as a suggestion; `AutoPilot` → the actuator may enact it behind the deterministic
|
|
2447
|
+
* guards. `JsonFromStr`/`JsonDisplay` let deployment config carry a mode as its serde string
|
|
2448
|
+
* (e.g. `SUGGEST`). Kept as the `KybAgenticMode` OpenAPI component for API compatibility.
|
|
2449
|
+
* @enum {string}
|
|
2450
|
+
*/
|
|
2451
|
+
KybAgenticMode: "DISABLED" | "SUGGEST" | "AUTO_PILOT";
|
|
1807
2452
|
KybCommunication: {
|
|
1808
2453
|
body: string;
|
|
1809
2454
|
/** Format: uuid */
|
|
@@ -1820,14 +2465,45 @@ interface components {
|
|
|
1820
2465
|
subject: string;
|
|
1821
2466
|
};
|
|
1822
2467
|
KybConfig: {
|
|
2468
|
+
/** @default DISABLED */
|
|
2469
|
+
agenticMode: components["schemas"]["KybAgenticMode"];
|
|
2470
|
+
/** @default DISABLED */
|
|
2471
|
+
amlAgenticMode: components["schemas"]["KybAgenticMode"];
|
|
1823
2472
|
articlesOfAssociation?: components["schemas"]["DocumentConfig"] | null;
|
|
2473
|
+
/**
|
|
2474
|
+
* @description When `false`, the KYC invitation email is NOT automatically sent to UBOs on KYB
|
|
2475
|
+
* submission; a reviewer instead triggers it on demand via the UBO reminder endpoint
|
|
2476
|
+
* (which sends the initial invitation for un-onboarded UBOs). Defaults to `true`
|
|
2477
|
+
* (auto-send), preserving existing behavior.
|
|
2478
|
+
* @default true
|
|
2479
|
+
* @example true
|
|
2480
|
+
*/
|
|
2481
|
+
autoSendUboKycEmail: boolean;
|
|
1824
2482
|
certificateOfIncorporation?: components["schemas"]["DocumentConfig"] | null;
|
|
1825
2483
|
/**
|
|
1826
2484
|
* @default false
|
|
1827
2485
|
* @example false
|
|
1828
2486
|
*/
|
|
1829
2487
|
collectDirectors: boolean;
|
|
2488
|
+
/** @description Per-org, per-country document overrides set by the org admin in the flow builder.
|
|
2489
|
+
* Takes priority over platform-level document definitions for matching countries.
|
|
2490
|
+
* Stored in the flow step config JSON. NOT used in extraction/cross-check.
|
|
2491
|
+
*
|
|
2492
|
+
* Keys are ISO 3166-1 alpha-2 codes (normalised from any ISO format on input). */
|
|
2493
|
+
customCountryDocuments?: {
|
|
2494
|
+
[key: string]: components["schemas"]["KybCountryDocument"][];
|
|
2495
|
+
};
|
|
1830
2496
|
customDocuments?: components["schemas"]["CustomDocumentConfig"][] | null;
|
|
2497
|
+
/** @description Merged per-country document map populated at rehydration time.
|
|
2498
|
+
*
|
|
2499
|
+
* Built by `rehydrate_flow_step` by merging platform-level DB definitions
|
|
2500
|
+
* with org-admin `custom_country_documents` (custom wins per-country).
|
|
2501
|
+
* This is the single source of truth for document requirements at runtime.
|
|
2502
|
+
* Frontend uses this to render upload UI — no priority logic needed client-side.
|
|
2503
|
+
* Also round-trips through cache so frontend always sees correct data. */
|
|
2504
|
+
documentsPerCountry?: {
|
|
2505
|
+
[key: string]: components["schemas"]["KybCountryDocument"][];
|
|
2506
|
+
} | null;
|
|
1831
2507
|
/** Format: uuid */
|
|
1832
2508
|
kycFlowId: string;
|
|
1833
2509
|
/** @example { "default": "Next step" } */
|
|
@@ -1853,6 +2529,30 @@ interface components {
|
|
|
1853
2529
|
*/
|
|
1854
2530
|
maxUbos: number;
|
|
1855
2531
|
organizationalStructureChart?: components["schemas"]["DocumentConfig"] | null;
|
|
2532
|
+
proofOfAttorney?: components["schemas"]["DocumentConfig"] | null;
|
|
2533
|
+
};
|
|
2534
|
+
/** @description A document required for KYB in a specific country.
|
|
2535
|
+
*
|
|
2536
|
+
* Populated at runtime via rehydration from the platform-level
|
|
2537
|
+
* `document_definitions` table. Contains the extraction/validation
|
|
2538
|
+
* schema for future LLM-driven field extraction. */
|
|
2539
|
+
KybCountryDocument: {
|
|
2540
|
+
/** @description Machine-readable key used as the document type identifier (e.g.
|
|
2541
|
+
* `"visura_camerale"`, `"certificate_of_incorporation"`).
|
|
2542
|
+
* Unique within (scope, country). */
|
|
2543
|
+
key: string;
|
|
2544
|
+
/** @description Human-readable label shown to the user during the KYB flow. */
|
|
2545
|
+
label: string;
|
|
2546
|
+
/** @description When `true`, the document is NOT demanded upfront (excluded from the required-document
|
|
2547
|
+
* gate) and is instead requested on demand by a reviewer during review. Defaults to
|
|
2548
|
+
* `false`. */
|
|
2549
|
+
onDemand?: boolean;
|
|
2550
|
+
/** @description Whether upload of this document is mandatory for KYB approval.
|
|
2551
|
+
* Defaults to `true`. */
|
|
2552
|
+
required?: boolean;
|
|
2553
|
+
/** @description JSON schema for extraction/validation. Opaque for now — will be used by
|
|
2554
|
+
* `KybDocumentIntelligenceService` for schema-driven field extraction. */
|
|
2555
|
+
validationSchema?: unknown;
|
|
1856
2556
|
};
|
|
1857
2557
|
KybDocumentRequest: {
|
|
1858
2558
|
/** @description Clarification field keys requested for review (for clarification requests only). */
|
|
@@ -1901,6 +2601,12 @@ interface components {
|
|
|
1901
2601
|
*/
|
|
1902
2602
|
KybDocumentRequestType: "STANDARD" | "CLARIFICATION";
|
|
1903
2603
|
KybDocumentReviewReason: string | components["schemas"]["BusinessInformationClarificationResponse"];
|
|
2604
|
+
/** @description The KYB result metadata bag. Empty by default. */
|
|
2605
|
+
KybMetadata: {
|
|
2606
|
+
ownershipStructure?: components["schemas"]["OwnershipStructure"] | null;
|
|
2607
|
+
} & {
|
|
2608
|
+
[key: string]: unknown;
|
|
2609
|
+
};
|
|
1904
2610
|
KybResult: {
|
|
1905
2611
|
/** Format: date-time */
|
|
1906
2612
|
assignedAt?: string | null;
|
|
@@ -1914,6 +2620,13 @@ interface components {
|
|
|
1914
2620
|
createdAt?: string | null;
|
|
1915
2621
|
directorDefinitions?: components["schemas"]["DirectorDefinition"][] | null;
|
|
1916
2622
|
documentUploads?: components["schemas"]["DocumentUpload"][] | null;
|
|
2623
|
+
/** @description The effective list of required KYB documents for this result's country.
|
|
2624
|
+
*
|
|
2625
|
+
* Resolved by `DocumentDefinitionService::resolve_for_country` using the full
|
|
2626
|
+
* priority chain: platform DB definitions → org-admin `custom_country_documents`
|
|
2627
|
+
* → global legacy fields. `None` until explicitly set by a caller with DB access
|
|
2628
|
+
* (e.g. the MCP `get_kyb_result` tool). Not computed in the `From` conversion. */
|
|
2629
|
+
effectiveRequiredDocuments?: components["schemas"]["KybCountryDocument"][] | null;
|
|
1917
2630
|
flowStep?: Omit<components["schemas"]["FlowStep"], "type"> | null;
|
|
1918
2631
|
/** Format: uuid */
|
|
1919
2632
|
flowStepId?: string | null;
|
|
@@ -1921,6 +2634,9 @@ interface components {
|
|
|
1921
2634
|
fundedAt?: string | null;
|
|
1922
2635
|
/** Format: uuid */
|
|
1923
2636
|
id: string;
|
|
2637
|
+
/** @description Admin-curated metadata. Organizations read it; only admins write it.
|
|
2638
|
+
* Empty (`{}`) when nothing has been recorded. */
|
|
2639
|
+
metadata?: Record<string, never>;
|
|
1924
2640
|
nextAction?: components["schemas"]["NextAction"] | null;
|
|
1925
2641
|
pepAndSanctionsStatus: components["schemas"]["PepAndSanctionsStatus"];
|
|
1926
2642
|
reason?: string | null;
|
|
@@ -1934,6 +2650,10 @@ interface components {
|
|
|
1934
2650
|
};
|
|
1935
2651
|
/** @description KYB (Know Your Business) step output for workflow decisions. */
|
|
1936
2652
|
KybStepOutput: {
|
|
2653
|
+
amlPep?: boolean | null;
|
|
2654
|
+
/** Format: int32 */
|
|
2655
|
+
amlRiskScorePercent?: number | null;
|
|
2656
|
+
amlSanctions?: boolean | null;
|
|
1937
2657
|
businessName?: string | null;
|
|
1938
2658
|
country?: string | null;
|
|
1939
2659
|
moderationStatus?: components["schemas"]["ModerationResultStatus"] | null;
|
|
@@ -1941,8 +2661,6 @@ interface components {
|
|
|
1941
2661
|
registrationNumber?: string | null;
|
|
1942
2662
|
status: components["schemas"]["ResultStatus"];
|
|
1943
2663
|
};
|
|
1944
|
-
/** @enum {string} */
|
|
1945
|
-
Likelihood: "No Match" | "Very Low" | "low" | "medium" | "high" | "Very High" | "Exact Match";
|
|
1946
2664
|
ListAllFlowResultsResponse: {
|
|
1947
2665
|
page: components["schemas"]["FlowResult"][];
|
|
1948
2666
|
/** Format: int64 */
|
|
@@ -1953,6 +2671,11 @@ interface components {
|
|
|
1953
2671
|
/** Format: int64 */
|
|
1954
2672
|
totalCount: number;
|
|
1955
2673
|
};
|
|
2674
|
+
ListAuditLogResponse: {
|
|
2675
|
+
page: components["schemas"]["AuditLogEntry"][];
|
|
2676
|
+
/** Format: int64 */
|
|
2677
|
+
totalCount: number;
|
|
2678
|
+
};
|
|
1956
2679
|
ListOrganizationApiKeysResponse: {
|
|
1957
2680
|
page: components["schemas"]["ZypheApiKey"][];
|
|
1958
2681
|
/** Format: int64 */
|
|
@@ -1998,13 +2721,13 @@ interface components {
|
|
|
1998
2721
|
/** Format: int64 */
|
|
1999
2722
|
totalCount: number;
|
|
2000
2723
|
};
|
|
2001
|
-
|
|
2002
|
-
page: components["schemas"]["
|
|
2724
|
+
ListSharedKycResultsResponse: {
|
|
2725
|
+
page: components["schemas"]["FlowResult"][];
|
|
2003
2726
|
/** Format: int64 */
|
|
2004
2727
|
totalCount: number;
|
|
2005
2728
|
};
|
|
2006
|
-
|
|
2007
|
-
page: components["schemas"]["
|
|
2729
|
+
ListThemesResponse: {
|
|
2730
|
+
page: components["schemas"]["Theme"][];
|
|
2008
2731
|
/** Format: int64 */
|
|
2009
2732
|
totalCount: number;
|
|
2010
2733
|
};
|
|
@@ -2032,6 +2755,14 @@ interface components {
|
|
|
2032
2755
|
* of active challenge-based liveness. Configured by admin only. Defaults to `false`. */
|
|
2033
2756
|
passiveLiveness?: boolean;
|
|
2034
2757
|
performAntispoof?: boolean | null;
|
|
2758
|
+
/** @description When enabled (the default when unset), the liveness step is skipped during a
|
|
2759
|
+
* one-click KYC reuse if the reused document verification result already carries a
|
|
2760
|
+
* successful liveness outcome (`processAdditionalData.rawLivenessData`).
|
|
2761
|
+
*
|
|
2762
|
+
* The reused liveness must originate from a flow of the same organization, unless
|
|
2763
|
+
* the one-click was authenticated via passkey — in which case cross-organization
|
|
2764
|
+
* reuse is allowed. Set to `false` to always require a fresh liveness. */
|
|
2765
|
+
skipIfPreviousLivenessPassed?: boolean | null;
|
|
2035
2766
|
thresholds?: {
|
|
2036
2767
|
[key: string]: number;
|
|
2037
2768
|
} | null;
|
|
@@ -2058,30 +2789,6 @@ interface components {
|
|
|
2058
2789
|
LogicalOperator: "BRANCH" | "SWITCH" | "MERGE" | "PARALLEL_SPLIT" | "PARALLEL_JOIN";
|
|
2059
2790
|
/** @enum {string} */
|
|
2060
2791
|
ManualReviewResultStatus: "approved" | "rejected" | "failed";
|
|
2061
|
-
MatchDetail: {
|
|
2062
|
-
internalInfo?: string | null;
|
|
2063
|
-
matchCriteria?: string | null;
|
|
2064
|
-
/** Format: int32 */
|
|
2065
|
-
matchCriteriaNumeric?: number | null;
|
|
2066
|
-
matchedEntity?: string | null;
|
|
2067
|
-
};
|
|
2068
|
-
MatchReportData: {
|
|
2069
|
-
category?: string | null;
|
|
2070
|
-
database?: string | null;
|
|
2071
|
-
description?: string | null;
|
|
2072
|
-
entity_id?: string | null;
|
|
2073
|
-
entity_name?: string | null;
|
|
2074
|
-
likelihood?: components["schemas"]["Likelihood"] | null;
|
|
2075
|
-
mapped_entity_details?: components["schemas"]["ScreeningDetailsMappedEntityDetails"] | null;
|
|
2076
|
-
match_id?: string | null;
|
|
2077
|
-
match_level?: string | null;
|
|
2078
|
-
references?: string[] | null;
|
|
2079
|
-
/** Format: double */
|
|
2080
|
-
score?: number | null;
|
|
2081
|
-
sources?: string[] | null;
|
|
2082
|
-
sub_category?: string | null;
|
|
2083
|
-
updated_date?: string | null;
|
|
2084
|
-
};
|
|
2085
2792
|
ModerateKybResultPayload: {
|
|
2086
2793
|
pepAndSanctionsStatus?: components["schemas"]["PepAndSanctionsStatusField"] | null;
|
|
2087
2794
|
/** Format: binary */
|
|
@@ -2118,6 +2825,7 @@ interface components {
|
|
|
2118
2825
|
country: string;
|
|
2119
2826
|
/** Format: date-time */
|
|
2120
2827
|
createdAt?: string | null;
|
|
2828
|
+
creationSource: components["schemas"]["CreationSource"];
|
|
2121
2829
|
email: string;
|
|
2122
2830
|
/** Format: uuid */
|
|
2123
2831
|
id: string;
|
|
@@ -2153,10 +2861,77 @@ interface components {
|
|
|
2153
2861
|
email?: string | null;
|
|
2154
2862
|
role: components["schemas"]["Role"];
|
|
2155
2863
|
};
|
|
2156
|
-
|
|
2157
|
-
|
|
2158
|
-
|
|
2159
|
-
|
|
2864
|
+
OwnershipBirthDate: {
|
|
2865
|
+
/** Format: int32 */
|
|
2866
|
+
day: number;
|
|
2867
|
+
/** Format: int32 */
|
|
2868
|
+
month: number;
|
|
2869
|
+
/** Format: int32 */
|
|
2870
|
+
year: number;
|
|
2871
|
+
};
|
|
2872
|
+
OwnershipCompany: {
|
|
2873
|
+
countryCode: string;
|
|
2874
|
+
id: string;
|
|
2875
|
+
legalName: string;
|
|
2876
|
+
};
|
|
2877
|
+
OwnershipEdge: {
|
|
2878
|
+
fromId: string;
|
|
2879
|
+
id: string;
|
|
2880
|
+
/** Format: double */
|
|
2881
|
+
percentage: number;
|
|
2882
|
+
source?: string | null;
|
|
2883
|
+
toId: string;
|
|
2884
|
+
};
|
|
2885
|
+
/** @description The provider's wire shape `{ "type": "company", "company": { ... } }`, expressed as an
|
|
2886
|
+
* internally tagged enum: the `type` tag selects the variant, so a tag that disagrees with
|
|
2887
|
+
* its payload — or an unknown tag — is unrepresentable and rejected at deserialization. */
|
|
2888
|
+
OwnershipEntity: {
|
|
2889
|
+
company: components["schemas"]["OwnershipCompany"];
|
|
2890
|
+
/** @enum {string} */
|
|
2891
|
+
type: "company";
|
|
2892
|
+
} | {
|
|
2893
|
+
individual: components["schemas"]["OwnershipIndividual"];
|
|
2894
|
+
/** @enum {string} */
|
|
2895
|
+
type: "individual";
|
|
2896
|
+
};
|
|
2897
|
+
/** @description Per-node flags. `status` is free-form for the same reason as `stopped_reason`; the
|
|
2898
|
+
* reference provider already emits `found`, `budget_truncated`, `placeholder`, and
|
|
2899
|
+
* `coverage_unavailable`, and a fifth value must not fail a write.
|
|
2900
|
+
*
|
|
2901
|
+
* `status` is the load-bearing truncation signal: an unexplored node must render
|
|
2902
|
+
* differently from a resolved one, so "no UBO found" is never read as "no UBO exists". */
|
|
2903
|
+
OwnershipFlags: {
|
|
2904
|
+
isRoot?: boolean;
|
|
2905
|
+
isUbo?: boolean;
|
|
2906
|
+
isUboProxy?: boolean;
|
|
2907
|
+
status: string;
|
|
2908
|
+
};
|
|
2909
|
+
OwnershipIndividual: {
|
|
2910
|
+
birthDate?: components["schemas"]["OwnershipBirthDate"] | null;
|
|
2911
|
+
name: components["schemas"]["OwnershipIndividualName"];
|
|
2912
|
+
nationality?: string | null;
|
|
2913
|
+
};
|
|
2914
|
+
OwnershipIndividualName: {
|
|
2915
|
+
fullName: string;
|
|
2916
|
+
};
|
|
2917
|
+
/** @description A graph node. `entity` is flattened and tagged on `type`, so a `company`-typed node
|
|
2918
|
+
* cannot exist without company data. */
|
|
2919
|
+
OwnershipNode: {
|
|
2920
|
+
type: "OwnershipNode";
|
|
2921
|
+
} & (Omit<components["schemas"]["OwnershipEntity"], "type"> & {
|
|
2922
|
+
flags: components["schemas"]["OwnershipFlags"];
|
|
2923
|
+
nodeId: string;
|
|
2924
|
+
/** Format: double */
|
|
2925
|
+
totalOwnershipPercentage?: number | null;
|
|
2926
|
+
});
|
|
2927
|
+
/** @description An ownership graph: who owns the subject company, transitively. */
|
|
2928
|
+
OwnershipStructure: {
|
|
2929
|
+
edges: components["schemas"]["OwnershipEdge"][];
|
|
2930
|
+
nodes: components["schemas"]["OwnershipNode"][];
|
|
2931
|
+
/** @description Why graph traversal stopped, when it stopped early (e.g. `max_depth_reached`).
|
|
2932
|
+
* Free-form: provider-defined and admin-entered, so a closed enum would reject
|
|
2933
|
+
* an unrecognised value at write time. */
|
|
2934
|
+
stoppedReason?: string | null;
|
|
2160
2935
|
};
|
|
2161
2936
|
PagedCommunicationsResponse: {
|
|
2162
2937
|
page: components["schemas"]["KybCommunication"][];
|
|
@@ -2244,7 +3019,7 @@ interface components {
|
|
|
2244
3019
|
maxAgeDays?: number;
|
|
2245
3020
|
};
|
|
2246
3021
|
/** @enum {string} */
|
|
2247
|
-
PoaDocumentType: "PAY_SLIP" | "UTILITY_BILL" | "FINANCIAL_DOCUMENT" | "RECEIPT" | "INVOICE" | "BANK_DOCUMENT" | "TAX_CLEARANCE_CERTIFICATE" | "HOUSEHOLD_REGISTER" | "CERTIFICATE_OF_RESIDENCE" | "OTHER";
|
|
3022
|
+
PoaDocumentType: "PAY_SLIP" | "UTILITY_BILL" | "FINANCIAL_DOCUMENT" | "RECEIPT" | "INVOICE" | "BANK_DOCUMENT" | "TAX_CLEARANCE_CERTIFICATE" | "HOUSEHOLD_REGISTER" | "CERTIFICATE_OF_RESIDENCE" | "DLDV" | "OTHER";
|
|
2248
3023
|
/** @enum {string} */
|
|
2249
3024
|
PoaReason: "UNKNOWN" | "DOCUMENT_TYPE_NOT_ALLOWED" | "NAME_MISMATCH" | "DATE_TOO_OLD" | "INVALID_DOCUMENT" | "UNRECOGNIZED_ADDRESS";
|
|
2250
3025
|
PoaResult: {
|
|
@@ -2333,6 +3108,12 @@ interface components {
|
|
|
2333
3108
|
file: Blob;
|
|
2334
3109
|
};
|
|
2335
3110
|
ProcessAddressDocumentResponse: {
|
|
3111
|
+
/**
|
|
3112
|
+
* Format: int32
|
|
3113
|
+
* @description Number of prior attempts on this verification request.
|
|
3114
|
+
* `0` = first submission (`Created`); `> 0` = retry (`Updated`).
|
|
3115
|
+
*/
|
|
3116
|
+
attemptsCount: number;
|
|
2336
3117
|
jobId: string;
|
|
2337
3118
|
/** Format: uuid */
|
|
2338
3119
|
verificationRequestId: string;
|
|
@@ -2367,14 +3148,13 @@ interface components {
|
|
|
2367
3148
|
interviewId?: string | null;
|
|
2368
3149
|
platform?: string | null;
|
|
2369
3150
|
provinceCode?: string | null;
|
|
2370
|
-
requiredDocumentFields?: {
|
|
2371
|
-
[key: string]: string;
|
|
2372
|
-
};
|
|
2373
3151
|
/** @description Session token for session-based providers (e.g. Incode JWT).
|
|
2374
3152
|
* If provided along with interview_id, the backend will fetch results from the provider. */
|
|
2375
3153
|
sessionToken?: string | null;
|
|
2376
3154
|
};
|
|
2377
3155
|
ProcessIdentityDocumentResponse: {
|
|
3156
|
+
/** Format: int32 */
|
|
3157
|
+
attemptsCount: number;
|
|
2378
3158
|
jobId: string;
|
|
2379
3159
|
/** Format: uuid */
|
|
2380
3160
|
verificationRequestId: string;
|
|
@@ -2398,9 +3178,26 @@ interface components {
|
|
|
2398
3178
|
verificationRequestId: string;
|
|
2399
3179
|
};
|
|
2400
3180
|
/** @enum {string} */
|
|
2401
|
-
ProductType: "UNKNOWN" | "DOCSCAN" | "LIVENESS" | "POA" | "KYB" | "KYC_PASSPORT" | "SPID" | "PHONE" | "WALLET" | "EXPORT_API" | "EXPORT_UI" | "BUSINESS_VERIFICATION" | "FLOW_BUILDER" | "GEOLOCATION" | "FORM";
|
|
3181
|
+
ProductType: "UNKNOWN" | "DOCSCAN" | "LIVENESS" | "POA" | "KYB" | "KYC_PASSPORT" | "SPID" | "PHONE" | "WALLET" | "EXPORT_API" | "EXPORT_UI" | "BUSINESS_VERIFICATION" | "FLOW_BUILDER" | "GEOLOCATION" | "FORM" | "AML";
|
|
3182
|
+
/** @description Request body for `POST .../kyb/{kyb_result_id}/document-requests/on-demand`.
|
|
3183
|
+
*
|
|
3184
|
+
* Asks the client for a specific on-demand per-country document (identified by its catalog
|
|
3185
|
+
* `key`). The server validates the key resolves to an on-demand document for the KYB's
|
|
3186
|
+
* country, creates a `Standard` document request from it, and notifies the client. */
|
|
3187
|
+
RequestOnDemandDocumentPayload: {
|
|
3188
|
+
/** @description Optional email body; defaults to a generated body referencing the document. */
|
|
3189
|
+
body?: string | null;
|
|
3190
|
+
/** @description Optional description shown to the client; defaults to a generated message. */
|
|
3191
|
+
description?: string | null;
|
|
3192
|
+
/** @description Catalog `key` of the on-demand document to request (must be on-demand for this country). */
|
|
3193
|
+
documentKey: string;
|
|
3194
|
+
/** @description Optional recipient override; defaults to the business contact email. */
|
|
3195
|
+
recipientEmail?: string | null;
|
|
3196
|
+
/** @description Optional email subject; defaults to a generated subject referencing the document. */
|
|
3197
|
+
subject?: string | null;
|
|
3198
|
+
};
|
|
2402
3199
|
/** @enum {string} */
|
|
2403
|
-
RequiredDocumentField: "firstName" | "middleName" | "lastName" | "dateOfBirth" | "phone" | "email" | "street" | "city" | "state" | "postcode" | "country" | "socialSecurityNumber";
|
|
3200
|
+
RequiredDocumentField: "firstName" | "middleName" | "lastName" | "dateOfBirth" | "phone" | "email" | "street" | "city" | "state" | "postcode" | "country" | "socialSecurityNumber" | "expirationDate";
|
|
2404
3201
|
ResultControlOperation: {
|
|
2405
3202
|
/** Format: uuid */
|
|
2406
3203
|
identityId: string;
|
|
@@ -2429,6 +3226,8 @@ interface components {
|
|
|
2429
3226
|
confidence: number;
|
|
2430
3227
|
suggestion: components["schemas"]["ManualReviewResultStatus"];
|
|
2431
3228
|
};
|
|
3229
|
+
/** @description Snapshot of the FORM factor keys matched for a form step (JSONB column). */
|
|
3230
|
+
RiskFactorKeys: string[];
|
|
2432
3231
|
/** @enum {string} */
|
|
2433
3232
|
RiskLevel: "low" | "medium" | "high" | "critical";
|
|
2434
3233
|
RiskScore: {
|
|
@@ -2437,8 +3236,28 @@ interface components {
|
|
|
2437
3236
|
riskScorePercent: number;
|
|
2438
3237
|
sourcesCount: number;
|
|
2439
3238
|
};
|
|
3239
|
+
/** @description Provenance for an `AssignedRiskTag` derivation. Determines whether a machine-driven
|
|
3240
|
+
* recompute is allowed to retract it (`Manual`/`Legacy` are sticky; only a human clears them). */
|
|
3241
|
+
RiskTagSource: {
|
|
3242
|
+
/** Format: uuid */
|
|
3243
|
+
by?: string | null;
|
|
3244
|
+
/** @enum {string} */
|
|
3245
|
+
kind: "manual";
|
|
3246
|
+
} | {
|
|
3247
|
+
field: string;
|
|
3248
|
+
/** @enum {string} */
|
|
3249
|
+
kind: "formAnswer";
|
|
3250
|
+
} | {
|
|
3251
|
+
/** @enum {string} */
|
|
3252
|
+
kind: "action";
|
|
3253
|
+
/** Format: uuid */
|
|
3254
|
+
node_id: string;
|
|
3255
|
+
} | {
|
|
3256
|
+
/** @enum {string} */
|
|
3257
|
+
kind: "legacy";
|
|
3258
|
+
};
|
|
2440
3259
|
/** @enum {string} */
|
|
2441
|
-
Role: "ANONYMOUS" | "GUEST" | "ORG_ADMIN" | "ORG_OPERATOR" | "ORG_DEVELOPER" | "AML_OFFICER" | "PARTNER_USER" | "PLATFORM_OPERATOR" | "PLATFORM_SALES" | "PLATFORM_ADMIN" | "SDK";
|
|
3260
|
+
Role: "ANONYMOUS" | "GUEST" | "ORG_ADMIN" | "ORG_OPERATOR" | "ORG_DEVELOPER" | "AML_OFFICER" | "PARTNER_USER" | "PLATFORM_OPERATOR" | "PLATFORM_SALES" | "PLATFORM_ADMIN" | "SDK" | "SYSTEM";
|
|
2442
3261
|
/** @description Rotation thresholds (in degrees) for head movement verification */
|
|
2443
3262
|
RotationThresholds: {
|
|
2444
3263
|
/** Format: float */
|
|
@@ -2450,17 +3269,39 @@ interface components {
|
|
|
2450
3269
|
/** Format: float */
|
|
2451
3270
|
up: number;
|
|
2452
3271
|
};
|
|
2453
|
-
|
|
2454
|
-
|
|
2455
|
-
|
|
2456
|
-
|
|
2457
|
-
|
|
2458
|
-
|
|
2459
|
-
|
|
2460
|
-
|
|
2461
|
-
|
|
2462
|
-
|
|
2463
|
-
|
|
3272
|
+
/** @description Every meaningful OpenSanctions/Yente search field as an optional string. Result-only
|
|
3273
|
+
* fields (sanctions, topics, position occupancies) are not exposed as inputs. */
|
|
3274
|
+
SdkAmlScreenQuery: {
|
|
3275
|
+
address?: string | null;
|
|
3276
|
+
alias?: string | null;
|
|
3277
|
+
birthCountry?: string | null;
|
|
3278
|
+
birthDate?: string | null;
|
|
3279
|
+
birthPlace?: string | null;
|
|
3280
|
+
country?: string | null;
|
|
3281
|
+
email?: string | null;
|
|
3282
|
+
firstName?: string | null;
|
|
3283
|
+
gender?: string | null;
|
|
3284
|
+
lastName?: string | null;
|
|
3285
|
+
middleName?: string | null;
|
|
3286
|
+
name?: string | null;
|
|
3287
|
+
nationality?: string | null;
|
|
3288
|
+
passportNumber?: string | null;
|
|
3289
|
+
phone?: string | null;
|
|
3290
|
+
position?: string | null;
|
|
3291
|
+
registrationNumber?: string | null;
|
|
3292
|
+
title?: string | null;
|
|
3293
|
+
};
|
|
3294
|
+
SdkAmlScreenRequest: {
|
|
3295
|
+
query: components["schemas"]["SdkAmlScreenQuery"];
|
|
3296
|
+
subjectType?: components["schemas"]["AmlSubjectType"];
|
|
3297
|
+
};
|
|
3298
|
+
SdkAmlScreenResponse: {
|
|
3299
|
+
entities: components["schemas"]["AmlEntityResponse"][];
|
|
3300
|
+
/** @description Entity format marker, currently always `"ftm/1"` (FollowTheMoney). */
|
|
3301
|
+
format: string;
|
|
3302
|
+
/** @description The screening provider that produced these results (e.g. `"yente"`, `"worldcheck"`).
|
|
3303
|
+
* Field richness is provider-dependent — see the SDK docs for coverage differences. */
|
|
3304
|
+
provider: string;
|
|
2464
3305
|
};
|
|
2465
3306
|
/** @description SDK payload for creating or resuming a verification request on behalf of a user.
|
|
2466
3307
|
*
|
|
@@ -2513,10 +3354,7 @@ interface components {
|
|
|
2513
3354
|
* When false, skip vault unlock if an active KYC grant already exists for the organization.
|
|
2514
3355
|
* Optional so that patch requests only write this field when explicitly provided. */
|
|
2515
3356
|
oneClickAlwaysRequestUnlockVault?: boolean | null;
|
|
2516
|
-
primaryColor?: string | null;
|
|
2517
|
-
profileImage?: string | null;
|
|
2518
3357
|
published?: boolean;
|
|
2519
|
-
secondaryColor?: string | null;
|
|
2520
3358
|
skipSignedAccess?: boolean;
|
|
2521
3359
|
slackNotifications?: string[] | null;
|
|
2522
3360
|
telegramNotifications?: string[] | null;
|
|
@@ -2603,12 +3441,93 @@ interface components {
|
|
|
2603
3441
|
/** Format: uuid */
|
|
2604
3442
|
verificationRequestId: string;
|
|
2605
3443
|
};
|
|
3444
|
+
/** @description Flat theme API response. Logo/font fields hold raw S3 keys when built from `ThemeData`; the
|
|
3445
|
+
* handler swaps them for presigned URLs before returning. */
|
|
3446
|
+
Theme: {
|
|
3447
|
+
borderRadius?: string | null;
|
|
3448
|
+
/** Format: date-time */
|
|
3449
|
+
createdAt?: string | null;
|
|
3450
|
+
dark?: components["schemas"]["ThemeColorSetResponse"] | null;
|
|
3451
|
+
fontFamily?: string | null;
|
|
3452
|
+
fontLicense?: components["schemas"]["ThemeFontLicense"] | null;
|
|
3453
|
+
/** @description Presigned read URL for the uploaded font (or the raw S3 key before presigning). */
|
|
3454
|
+
fontUrl?: string | null;
|
|
3455
|
+
/** Format: uuid */
|
|
3456
|
+
id: string;
|
|
3457
|
+
isDefault: boolean;
|
|
3458
|
+
light?: components["schemas"]["ThemeColorSetResponse"] | null;
|
|
3459
|
+
name: string;
|
|
3460
|
+
/** Format: date-time */
|
|
3461
|
+
updatedAt?: string | null;
|
|
3462
|
+
};
|
|
3463
|
+
/** @description Per-mode color set as returned by the API (logo resolved to a presigned URL). */
|
|
3464
|
+
ThemeColorSetResponse: {
|
|
3465
|
+
accent?: string | null;
|
|
3466
|
+
background?: string | null;
|
|
3467
|
+
card?: string | null;
|
|
3468
|
+
/** @description Presigned read URL for this mode's logo (or the raw S3 key before the handler presigns it). */
|
|
3469
|
+
logoUrl?: string | null;
|
|
3470
|
+
};
|
|
3471
|
+
/** @description Attestation that the org has the right to use the uploaded font. */
|
|
3472
|
+
ThemeFontLicense: {
|
|
3473
|
+
attested: boolean;
|
|
3474
|
+
/** Format: date-time */
|
|
3475
|
+
attestedAt?: string | null;
|
|
3476
|
+
/** Format: uuid */
|
|
3477
|
+
attestedByIdentityId?: string | null;
|
|
3478
|
+
};
|
|
3479
|
+
/** @description A top-up pack: a one-time Stripe Price tagged with `zyphe_type=credit_topup` metadata.
|
|
3480
|
+
*
|
|
3481
|
+
* Produced by [`list_topup_prices`] from Stripe one-time prices whose product is active
|
|
3482
|
+
* and whose metadata carries `zyphe_type=credit_topup`. `credits` and `validity_months`
|
|
3483
|
+
* are parsed from price metadata (`credits`, `validity_months`).
|
|
3484
|
+
*
|
|
3485
|
+
* [`list_topup_prices`]: https://docs.stripe.com/api/prices/list */
|
|
3486
|
+
TopupPack: {
|
|
3487
|
+
/**
|
|
3488
|
+
* Format: int64
|
|
3489
|
+
* @description Price amount in the smallest currency unit (e.g. cents)
|
|
3490
|
+
*/
|
|
3491
|
+
amountCents: number;
|
|
3492
|
+
/**
|
|
3493
|
+
* Format: int64
|
|
3494
|
+
* @description Number of credits granted by this pack, from metadata `credits`
|
|
3495
|
+
*/
|
|
3496
|
+
credits: number;
|
|
3497
|
+
currency: components["schemas"]["Currency"];
|
|
3498
|
+
/** @description Display name: nickname > product name > price ID */
|
|
3499
|
+
name: string;
|
|
3500
|
+
/** @description The Stripe price ID (e.g., "price_xxx") */
|
|
3501
|
+
priceId: string;
|
|
3502
|
+
/**
|
|
3503
|
+
* Format: int32
|
|
3504
|
+
* @description Optional validity window (in months) for the granted credits, from metadata `validity_months`
|
|
3505
|
+
*/
|
|
3506
|
+
validityMonths?: number | null;
|
|
3507
|
+
};
|
|
3508
|
+
/** @description Response for the top-up pack catalog endpoint (`GET .../billing/topup-packs`). */
|
|
3509
|
+
TopupPacksResponse: {
|
|
3510
|
+
packs: components["schemas"]["TopupPack"][];
|
|
3511
|
+
};
|
|
3512
|
+
TriggerReminderResponse: {
|
|
3513
|
+
enqueued: boolean;
|
|
3514
|
+
};
|
|
2606
3515
|
UboDefinition: {
|
|
2607
3516
|
country: string;
|
|
2608
3517
|
dateOfBirth: string;
|
|
2609
|
-
|
|
3518
|
+
/** @description Email of the UBO. `None` for a name-only UBO added without an email: such a UBO is
|
|
3519
|
+
* AML-screened by name and is never sent a KYC invitation. */
|
|
3520
|
+
emailAddress?: string | null;
|
|
2610
3521
|
firstName: string;
|
|
2611
3522
|
gender: string;
|
|
3523
|
+
/**
|
|
3524
|
+
* Format: uuid
|
|
3525
|
+
* @description Stable identifier for this UBO within the KYB result. Assigned on creation
|
|
3526
|
+
* (submission or post-submission add) and used to address the UBO for removal /
|
|
3527
|
+
* name-screening instead of a positional index. `None` only for legacy entries
|
|
3528
|
+
* created before this field existed.
|
|
3529
|
+
*/
|
|
3530
|
+
id?: string | null;
|
|
2612
3531
|
lastName: string;
|
|
2613
3532
|
};
|
|
2614
3533
|
/**
|
|
@@ -2623,7 +3542,9 @@ interface components {
|
|
|
2623
3542
|
challenge: string;
|
|
2624
3543
|
/** @description Credential ID for vault unlock (base64url-encoded) */
|
|
2625
3544
|
credentialId: string;
|
|
2626
|
-
/** @description
|
|
3545
|
+
/** @description Full WebAuthn `PublicKeyCredentialRequestOptions` for vault unlock.
|
|
3546
|
+
* Frontends should pass `options.publicKey` directly to
|
|
3547
|
+
* `navigator.credentials.get({ publicKey })`. */
|
|
2627
3548
|
options: Record<string, never>;
|
|
2628
3549
|
/** @description PRF salt for vault unlock (base64url) */
|
|
2629
3550
|
prfSalt: string;
|
|
@@ -2773,6 +3694,24 @@ interface components {
|
|
|
2773
3694
|
WalletStepOutput: {
|
|
2774
3695
|
status: components["schemas"]["ResultStatus"];
|
|
2775
3696
|
};
|
|
3697
|
+
/** @description The scenario/context that triggered a worker.
|
|
3698
|
+
*
|
|
3699
|
+
* This helps distinguish between different flows that can trigger the same
|
|
3700
|
+
* worker type (e.g. AML worker triggered by DV vs scheduled refresh). */
|
|
3701
|
+
WorkerScenario: "USER_INITIATED" | {
|
|
3702
|
+
TRIGGERED_BY_WORKER: components["schemas"]["WorkerType"];
|
|
3703
|
+
} | "ADMIN_ACTION" | "ONE_CLICK_REUSE";
|
|
3704
|
+
/**
|
|
3705
|
+
* @description Types of background workers that can emit audit events.
|
|
3706
|
+
*
|
|
3707
|
+
* This enum is used in audit event sources and in job records to track
|
|
3708
|
+
* which worker triggered an action (e.g., AML triggered by DV).
|
|
3709
|
+
*
|
|
3710
|
+
* `Display` (via `JsonDisplay`) renders the SCREAMING_SNAKE_CASE serde name
|
|
3711
|
+
* (e.g. `DV`, `ONE_CLICK_FORM`) — the same value shown in `source.workerType`.
|
|
3712
|
+
* @enum {string}
|
|
3713
|
+
*/
|
|
3714
|
+
WorkerType: "DV" | "LIVENESS" | "AML" | "POA" | "SPID" | "FORM" | "ONE_CLICK_DV" | "ONE_CLICK_FORM" | "MANUAL_REVIEW";
|
|
2776
3715
|
/** @description Context data available to JDM rules during flow evaluation.
|
|
2777
3716
|
*
|
|
2778
3717
|
* This structure is serialized to JSON and passed to the Zen Engine for evaluation.
|
|
@@ -3076,7 +4015,7 @@ interface operations {
|
|
|
3076
4015
|
};
|
|
3077
4016
|
};
|
|
3078
4017
|
};
|
|
3079
|
-
|
|
4018
|
+
createVerificationRequest: {
|
|
3080
4019
|
parameters: {
|
|
3081
4020
|
query: {
|
|
3082
4021
|
sandbox: boolean;
|
|
@@ -3132,7 +4071,7 @@ interface operations {
|
|
|
3132
4071
|
};
|
|
3133
4072
|
};
|
|
3134
4073
|
};
|
|
3135
|
-
|
|
4074
|
+
getNextStep: {
|
|
3136
4075
|
parameters: {
|
|
3137
4076
|
query: {
|
|
3138
4077
|
sandbox: boolean;
|
|
@@ -3406,7 +4345,7 @@ interface operations {
|
|
|
3406
4345
|
};
|
|
3407
4346
|
};
|
|
3408
4347
|
};
|
|
3409
|
-
|
|
4348
|
+
listFlowResults: {
|
|
3410
4349
|
parameters: {
|
|
3411
4350
|
query: {
|
|
3412
4351
|
pagination?: components["schemas"]["Pagination"];
|
|
@@ -3458,7 +4397,7 @@ interface operations {
|
|
|
3458
4397
|
};
|
|
3459
4398
|
};
|
|
3460
4399
|
};
|
|
3461
|
-
|
|
4400
|
+
sendUboKycReminder: {
|
|
3462
4401
|
parameters: {
|
|
3463
4402
|
query: {
|
|
3464
4403
|
sandbox: boolean;
|
|
@@ -3466,32 +4405,23 @@ interface operations {
|
|
|
3466
4405
|
};
|
|
3467
4406
|
header?: never;
|
|
3468
4407
|
path: {
|
|
3469
|
-
/**
|
|
3470
|
-
* @description The ID of the organization
|
|
3471
|
-
* @example 123e4567-e89b-12d3-a456-426614174000
|
|
3472
|
-
*/
|
|
4408
|
+
/** @description Organization ID */
|
|
3473
4409
|
organization_id: string;
|
|
3474
|
-
/**
|
|
3475
|
-
|
|
3476
|
-
|
|
3477
|
-
|
|
3478
|
-
flow_result_id: string;
|
|
3479
|
-
/**
|
|
3480
|
-
* @description The slug of the flow
|
|
3481
|
-
* @example kyc-flow
|
|
3482
|
-
*/
|
|
3483
|
-
flow_slug: string;
|
|
4410
|
+
/** @description KYB result ID */
|
|
4411
|
+
kyb_result_id: string;
|
|
4412
|
+
/** @description Index of the UBO to send the KYC email to, matching the order in uboDefinitions */
|
|
4413
|
+
recipient_index: number;
|
|
3484
4414
|
};
|
|
3485
4415
|
cookie?: never;
|
|
3486
4416
|
};
|
|
3487
4417
|
requestBody?: never;
|
|
3488
4418
|
responses: {
|
|
3489
|
-
|
|
4419
|
+
202: {
|
|
3490
4420
|
headers: {
|
|
3491
4421
|
[name: string]: unknown;
|
|
3492
4422
|
};
|
|
3493
4423
|
content: {
|
|
3494
|
-
"application/json": components["schemas"]["
|
|
4424
|
+
"application/json": components["schemas"]["TriggerReminderResponse"];
|
|
3495
4425
|
};
|
|
3496
4426
|
};
|
|
3497
4427
|
400: {
|
|
@@ -3518,6 +4448,14 @@ interface operations {
|
|
|
3518
4448
|
"application/json": components["schemas"]["BaxeError"];
|
|
3519
4449
|
};
|
|
3520
4450
|
};
|
|
4451
|
+
404: {
|
|
4452
|
+
headers: {
|
|
4453
|
+
[name: string]: unknown;
|
|
4454
|
+
};
|
|
4455
|
+
content: {
|
|
4456
|
+
"application/json": components["schemas"]["BaxeError"];
|
|
4457
|
+
};
|
|
4458
|
+
};
|
|
3521
4459
|
500: {
|
|
3522
4460
|
headers: {
|
|
3523
4461
|
[name: string]: unknown;
|
|
@@ -3528,7 +4466,7 @@ interface operations {
|
|
|
3528
4466
|
};
|
|
3529
4467
|
};
|
|
3530
4468
|
};
|
|
3531
|
-
|
|
4469
|
+
addKybUbos: {
|
|
3532
4470
|
parameters: {
|
|
3533
4471
|
query: {
|
|
3534
4472
|
sandbox: boolean;
|
|
@@ -3536,37 +4474,49 @@ interface operations {
|
|
|
3536
4474
|
};
|
|
3537
4475
|
header?: never;
|
|
3538
4476
|
path: {
|
|
3539
|
-
/**
|
|
3540
|
-
* @description The ID of the organization
|
|
3541
|
-
* @example 123e4567-e89b-12d3-a456-426614174000
|
|
3542
|
-
*/
|
|
4477
|
+
/** @description Organization ID */
|
|
3543
4478
|
organization_id: string;
|
|
3544
|
-
/**
|
|
3545
|
-
|
|
3546
|
-
* @example 123e4567-e89b-12d3-a456-426614174000
|
|
3547
|
-
*/
|
|
3548
|
-
flow_result_id: string;
|
|
3549
|
-
/**
|
|
3550
|
-
* @description The slug of the flow
|
|
3551
|
-
* @example flow-slug
|
|
3552
|
-
*/
|
|
3553
|
-
flow_slug: string;
|
|
3554
|
-
/**
|
|
3555
|
-
* @description The ID of the DV result
|
|
3556
|
-
* @example 123e4567-e89b-12d3-a456-426614174000
|
|
3557
|
-
*/
|
|
3558
|
-
dv_result_id: string;
|
|
4479
|
+
/** @description KYB result ID */
|
|
4480
|
+
kyb_result_id: string;
|
|
3559
4481
|
};
|
|
3560
4482
|
cookie?: never;
|
|
3561
4483
|
};
|
|
3562
|
-
requestBody
|
|
4484
|
+
requestBody: {
|
|
4485
|
+
content: {
|
|
4486
|
+
"application/json": components["schemas"]["AddKybPersonsPayload"];
|
|
4487
|
+
};
|
|
4488
|
+
};
|
|
3563
4489
|
responses: {
|
|
3564
4490
|
200: {
|
|
3565
4491
|
headers: {
|
|
3566
4492
|
[name: string]: unknown;
|
|
3567
4493
|
};
|
|
3568
4494
|
content: {
|
|
3569
|
-
"application/
|
|
4495
|
+
"application/json": components["schemas"]["KybResult"];
|
|
4496
|
+
};
|
|
4497
|
+
};
|
|
4498
|
+
400: {
|
|
4499
|
+
headers: {
|
|
4500
|
+
[name: string]: unknown;
|
|
4501
|
+
};
|
|
4502
|
+
content: {
|
|
4503
|
+
"application/json": components["schemas"]["BaxeError"];
|
|
4504
|
+
};
|
|
4505
|
+
};
|
|
4506
|
+
401: {
|
|
4507
|
+
headers: {
|
|
4508
|
+
[name: string]: unknown;
|
|
4509
|
+
};
|
|
4510
|
+
content: {
|
|
4511
|
+
"application/json": components["schemas"]["BaxeError"];
|
|
4512
|
+
};
|
|
4513
|
+
};
|
|
4514
|
+
403: {
|
|
4515
|
+
headers: {
|
|
4516
|
+
[name: string]: unknown;
|
|
4517
|
+
};
|
|
4518
|
+
content: {
|
|
4519
|
+
"application/json": components["schemas"]["BaxeError"];
|
|
3570
4520
|
};
|
|
3571
4521
|
};
|
|
3572
4522
|
404: {
|
|
@@ -3587,7 +4537,7 @@ interface operations {
|
|
|
3587
4537
|
};
|
|
3588
4538
|
};
|
|
3589
4539
|
};
|
|
3590
|
-
|
|
4540
|
+
removeKybUbo: {
|
|
3591
4541
|
parameters: {
|
|
3592
4542
|
query: {
|
|
3593
4543
|
sandbox: boolean;
|
|
@@ -3595,26 +4545,12 @@ interface operations {
|
|
|
3595
4545
|
};
|
|
3596
4546
|
header?: never;
|
|
3597
4547
|
path: {
|
|
3598
|
-
/**
|
|
3599
|
-
* @description The ID of the organization
|
|
3600
|
-
* @example 123e4567-e89b-12d3-a456-426614174000
|
|
3601
|
-
*/
|
|
4548
|
+
/** @description Organization ID */
|
|
3602
4549
|
organization_id: string;
|
|
3603
|
-
/**
|
|
3604
|
-
|
|
3605
|
-
|
|
3606
|
-
|
|
3607
|
-
flow_result_id: string;
|
|
3608
|
-
/**
|
|
3609
|
-
* @description The slug of the flow
|
|
3610
|
-
* @example flow-slug
|
|
3611
|
-
*/
|
|
3612
|
-
flow_slug: string;
|
|
3613
|
-
/**
|
|
3614
|
-
* @description The ID of the POA result
|
|
3615
|
-
* @example 123e4567-e89b-12d3-a456-426614174000
|
|
3616
|
-
*/
|
|
3617
|
-
poa_result_id: string;
|
|
4550
|
+
/** @description KYB result ID */
|
|
4551
|
+
kyb_result_id: string;
|
|
4552
|
+
/** @description Stable id of the UBO to remove */
|
|
4553
|
+
person_id: string;
|
|
3618
4554
|
};
|
|
3619
4555
|
cookie?: never;
|
|
3620
4556
|
};
|
|
@@ -3625,7 +4561,31 @@ interface operations {
|
|
|
3625
4561
|
[name: string]: unknown;
|
|
3626
4562
|
};
|
|
3627
4563
|
content: {
|
|
3628
|
-
"application/
|
|
4564
|
+
"application/json": components["schemas"]["KybResult"];
|
|
4565
|
+
};
|
|
4566
|
+
};
|
|
4567
|
+
400: {
|
|
4568
|
+
headers: {
|
|
4569
|
+
[name: string]: unknown;
|
|
4570
|
+
};
|
|
4571
|
+
content: {
|
|
4572
|
+
"application/json": components["schemas"]["BaxeError"];
|
|
4573
|
+
};
|
|
4574
|
+
};
|
|
4575
|
+
401: {
|
|
4576
|
+
headers: {
|
|
4577
|
+
[name: string]: unknown;
|
|
4578
|
+
};
|
|
4579
|
+
content: {
|
|
4580
|
+
"application/json": components["schemas"]["BaxeError"];
|
|
4581
|
+
};
|
|
4582
|
+
};
|
|
4583
|
+
403: {
|
|
4584
|
+
headers: {
|
|
4585
|
+
[name: string]: unknown;
|
|
4586
|
+
};
|
|
4587
|
+
content: {
|
|
4588
|
+
"application/json": components["schemas"]["BaxeError"];
|
|
3629
4589
|
};
|
|
3630
4590
|
};
|
|
3631
4591
|
404: {
|
|
@@ -3646,7 +4606,7 @@ interface operations {
|
|
|
3646
4606
|
};
|
|
3647
4607
|
};
|
|
3648
4608
|
};
|
|
3649
|
-
|
|
4609
|
+
addKybDirectors: {
|
|
3650
4610
|
parameters: {
|
|
3651
4611
|
query: {
|
|
3652
4612
|
sandbox: boolean;
|
|
@@ -3654,37 +4614,49 @@ interface operations {
|
|
|
3654
4614
|
};
|
|
3655
4615
|
header?: never;
|
|
3656
4616
|
path: {
|
|
3657
|
-
/**
|
|
3658
|
-
* @description The ID of the organization
|
|
3659
|
-
* @example 123e4567-e89b-12d3-a456-426614174000
|
|
3660
|
-
*/
|
|
4617
|
+
/** @description Organization ID */
|
|
3661
4618
|
organization_id: string;
|
|
3662
|
-
/**
|
|
3663
|
-
|
|
3664
|
-
* @example 123e4567-e89b-12d3-a456-426614174000
|
|
3665
|
-
*/
|
|
3666
|
-
flow_result_id: string;
|
|
3667
|
-
/**
|
|
3668
|
-
* @description The slug of the flow
|
|
3669
|
-
* @example flow-slug
|
|
3670
|
-
*/
|
|
3671
|
-
flow_slug: string;
|
|
3672
|
-
/**
|
|
3673
|
-
* @description The ID of the wallet result
|
|
3674
|
-
* @example 123e4567-e89b-12d3-a456-426614174000
|
|
3675
|
-
*/
|
|
3676
|
-
wallet_result_id: string;
|
|
4619
|
+
/** @description KYB result ID */
|
|
4620
|
+
kyb_result_id: string;
|
|
3677
4621
|
};
|
|
3678
4622
|
cookie?: never;
|
|
3679
4623
|
};
|
|
3680
|
-
requestBody
|
|
4624
|
+
requestBody: {
|
|
4625
|
+
content: {
|
|
4626
|
+
"application/json": components["schemas"]["AddKybPersonsPayload"];
|
|
4627
|
+
};
|
|
4628
|
+
};
|
|
3681
4629
|
responses: {
|
|
3682
4630
|
200: {
|
|
3683
4631
|
headers: {
|
|
3684
4632
|
[name: string]: unknown;
|
|
3685
4633
|
};
|
|
3686
4634
|
content: {
|
|
3687
|
-
"application/json": components["schemas"]["
|
|
4635
|
+
"application/json": components["schemas"]["KybResult"];
|
|
4636
|
+
};
|
|
4637
|
+
};
|
|
4638
|
+
400: {
|
|
4639
|
+
headers: {
|
|
4640
|
+
[name: string]: unknown;
|
|
4641
|
+
};
|
|
4642
|
+
content: {
|
|
4643
|
+
"application/json": components["schemas"]["BaxeError"];
|
|
4644
|
+
};
|
|
4645
|
+
};
|
|
4646
|
+
401: {
|
|
4647
|
+
headers: {
|
|
4648
|
+
[name: string]: unknown;
|
|
4649
|
+
};
|
|
4650
|
+
content: {
|
|
4651
|
+
"application/json": components["schemas"]["BaxeError"];
|
|
4652
|
+
};
|
|
4653
|
+
};
|
|
4654
|
+
403: {
|
|
4655
|
+
headers: {
|
|
4656
|
+
[name: string]: unknown;
|
|
4657
|
+
};
|
|
4658
|
+
content: {
|
|
4659
|
+
"application/json": components["schemas"]["BaxeError"];
|
|
3688
4660
|
};
|
|
3689
4661
|
};
|
|
3690
4662
|
404: {
|
|
@@ -3705,7 +4677,7 @@ interface operations {
|
|
|
3705
4677
|
};
|
|
3706
4678
|
};
|
|
3707
4679
|
};
|
|
3708
|
-
|
|
4680
|
+
removeKybDirector: {
|
|
3709
4681
|
parameters: {
|
|
3710
4682
|
query: {
|
|
3711
4683
|
sandbox: boolean;
|
|
@@ -3713,26 +4685,12 @@ interface operations {
|
|
|
3713
4685
|
};
|
|
3714
4686
|
header?: never;
|
|
3715
4687
|
path: {
|
|
3716
|
-
/**
|
|
3717
|
-
* @description The ID of the organization
|
|
3718
|
-
* @example 123e4567-e89b-12d3-a456-426614174000
|
|
3719
|
-
*/
|
|
4688
|
+
/** @description Organization ID */
|
|
3720
4689
|
organization_id: string;
|
|
3721
|
-
/**
|
|
3722
|
-
|
|
3723
|
-
|
|
3724
|
-
|
|
3725
|
-
flow_result_id: string;
|
|
3726
|
-
/**
|
|
3727
|
-
* @description The slug of the flow
|
|
3728
|
-
* @example flow-slug
|
|
3729
|
-
*/
|
|
3730
|
-
flow_slug: string;
|
|
3731
|
-
/**
|
|
3732
|
-
* @description The ID of the phone result
|
|
3733
|
-
* @example 123e4567-e89b-12d3-a456-426614174000
|
|
3734
|
-
*/
|
|
3735
|
-
phone_result_id: string;
|
|
4690
|
+
/** @description KYB result ID */
|
|
4691
|
+
kyb_result_id: string;
|
|
4692
|
+
/** @description Stable id of the director to remove */
|
|
4693
|
+
person_id: string;
|
|
3736
4694
|
};
|
|
3737
4695
|
cookie?: never;
|
|
3738
4696
|
};
|
|
@@ -3743,7 +4701,31 @@ interface operations {
|
|
|
3743
4701
|
[name: string]: unknown;
|
|
3744
4702
|
};
|
|
3745
4703
|
content: {
|
|
3746
|
-
"application/json": components["schemas"]["
|
|
4704
|
+
"application/json": components["schemas"]["KybResult"];
|
|
4705
|
+
};
|
|
4706
|
+
};
|
|
4707
|
+
400: {
|
|
4708
|
+
headers: {
|
|
4709
|
+
[name: string]: unknown;
|
|
4710
|
+
};
|
|
4711
|
+
content: {
|
|
4712
|
+
"application/json": components["schemas"]["BaxeError"];
|
|
4713
|
+
};
|
|
4714
|
+
};
|
|
4715
|
+
401: {
|
|
4716
|
+
headers: {
|
|
4717
|
+
[name: string]: unknown;
|
|
4718
|
+
};
|
|
4719
|
+
content: {
|
|
4720
|
+
"application/json": components["schemas"]["BaxeError"];
|
|
4721
|
+
};
|
|
4722
|
+
};
|
|
4723
|
+
403: {
|
|
4724
|
+
headers: {
|
|
4725
|
+
[name: string]: unknown;
|
|
4726
|
+
};
|
|
4727
|
+
content: {
|
|
4728
|
+
"application/json": components["schemas"]["BaxeError"];
|
|
3747
4729
|
};
|
|
3748
4730
|
};
|
|
3749
4731
|
404: {
|
|
@@ -3764,7 +4746,7 @@ interface operations {
|
|
|
3764
4746
|
};
|
|
3765
4747
|
};
|
|
3766
4748
|
};
|
|
3767
|
-
|
|
4749
|
+
requestKybDocument: {
|
|
3768
4750
|
parameters: {
|
|
3769
4751
|
query: {
|
|
3770
4752
|
sandbox: boolean;
|
|
@@ -3772,37 +4754,49 @@ interface operations {
|
|
|
3772
4754
|
};
|
|
3773
4755
|
header?: never;
|
|
3774
4756
|
path: {
|
|
3775
|
-
/**
|
|
3776
|
-
* @description The ID of the organization
|
|
3777
|
-
* @example 123e4567-e89b-12d3-a456-426614174000
|
|
3778
|
-
*/
|
|
4757
|
+
/** @description Organization ID */
|
|
3779
4758
|
organization_id: string;
|
|
3780
|
-
/**
|
|
3781
|
-
|
|
3782
|
-
* @example 123e4567-e89b-12d3-a456-426614174000
|
|
3783
|
-
*/
|
|
3784
|
-
flow_result_id: string;
|
|
3785
|
-
/**
|
|
3786
|
-
* @description The slug of the flow
|
|
3787
|
-
* @example flow-slug
|
|
3788
|
-
*/
|
|
3789
|
-
flow_slug: string;
|
|
3790
|
-
/**
|
|
3791
|
-
* @description The ID of the form result
|
|
3792
|
-
* @example 123e4567-e89b-12d3-a456-426614174000
|
|
3793
|
-
*/
|
|
3794
|
-
form_result_id: string;
|
|
4759
|
+
/** @description KYB result ID */
|
|
4760
|
+
kyb_result_id: string;
|
|
3795
4761
|
};
|
|
3796
4762
|
cookie?: never;
|
|
3797
4763
|
};
|
|
3798
|
-
requestBody
|
|
4764
|
+
requestBody: {
|
|
4765
|
+
content: {
|
|
4766
|
+
"application/json": components["schemas"]["RequestOnDemandDocumentPayload"];
|
|
4767
|
+
};
|
|
4768
|
+
};
|
|
3799
4769
|
responses: {
|
|
3800
4770
|
200: {
|
|
3801
4771
|
headers: {
|
|
3802
4772
|
[name: string]: unknown;
|
|
3803
4773
|
};
|
|
3804
4774
|
content: {
|
|
3805
|
-
"application/json": components["schemas"]["
|
|
4775
|
+
"application/json": components["schemas"]["KybDocumentRequest"];
|
|
4776
|
+
};
|
|
4777
|
+
};
|
|
4778
|
+
400: {
|
|
4779
|
+
headers: {
|
|
4780
|
+
[name: string]: unknown;
|
|
4781
|
+
};
|
|
4782
|
+
content: {
|
|
4783
|
+
"application/json": components["schemas"]["BaxeError"];
|
|
4784
|
+
};
|
|
4785
|
+
};
|
|
4786
|
+
401: {
|
|
4787
|
+
headers: {
|
|
4788
|
+
[name: string]: unknown;
|
|
4789
|
+
};
|
|
4790
|
+
content: {
|
|
4791
|
+
"application/json": components["schemas"]["BaxeError"];
|
|
4792
|
+
};
|
|
4793
|
+
};
|
|
4794
|
+
403: {
|
|
4795
|
+
headers: {
|
|
4796
|
+
[name: string]: unknown;
|
|
4797
|
+
};
|
|
4798
|
+
content: {
|
|
4799
|
+
"application/json": components["schemas"]["BaxeError"];
|
|
3806
4800
|
};
|
|
3807
4801
|
};
|
|
3808
4802
|
404: {
|
|
@@ -3823,7 +4817,7 @@ interface operations {
|
|
|
3823
4817
|
};
|
|
3824
4818
|
};
|
|
3825
4819
|
};
|
|
3826
|
-
|
|
4820
|
+
getFlowResultDetails: {
|
|
3827
4821
|
parameters: {
|
|
3828
4822
|
query: {
|
|
3829
4823
|
sandbox: boolean;
|
|
@@ -3841,6 +4835,11 @@ interface operations {
|
|
|
3841
4835
|
* @example 123e4567-e89b-12d3-a456-426614174000
|
|
3842
4836
|
*/
|
|
3843
4837
|
flow_result_id: string;
|
|
4838
|
+
/**
|
|
4839
|
+
* @description The slug of the flow
|
|
4840
|
+
* @example kyc-flow
|
|
4841
|
+
*/
|
|
4842
|
+
flow_slug: string;
|
|
3844
4843
|
};
|
|
3845
4844
|
cookie?: never;
|
|
3846
4845
|
};
|
|
@@ -3888,7 +4887,7 @@ interface operations {
|
|
|
3888
4887
|
};
|
|
3889
4888
|
};
|
|
3890
4889
|
};
|
|
3891
|
-
|
|
4890
|
+
getDocumentVerificationResultDetails: {
|
|
3892
4891
|
parameters: {
|
|
3893
4892
|
query: {
|
|
3894
4893
|
sandbox: boolean;
|
|
@@ -3906,6 +4905,11 @@ interface operations {
|
|
|
3906
4905
|
* @example 123e4567-e89b-12d3-a456-426614174000
|
|
3907
4906
|
*/
|
|
3908
4907
|
flow_result_id: string;
|
|
4908
|
+
/**
|
|
4909
|
+
* @description The slug of the flow
|
|
4910
|
+
* @example flow-slug
|
|
4911
|
+
*/
|
|
4912
|
+
flow_slug: string;
|
|
3909
4913
|
/**
|
|
3910
4914
|
* @description The ID of the DV result
|
|
3911
4915
|
* @example 123e4567-e89b-12d3-a456-426614174000
|
|
@@ -3924,6 +4928,14 @@ interface operations {
|
|
|
3924
4928
|
"application/x-protobuf-stream": string;
|
|
3925
4929
|
};
|
|
3926
4930
|
};
|
|
4931
|
+
403: {
|
|
4932
|
+
headers: {
|
|
4933
|
+
[name: string]: unknown;
|
|
4934
|
+
};
|
|
4935
|
+
content: {
|
|
4936
|
+
"application/json": components["schemas"]["BaxeError"];
|
|
4937
|
+
};
|
|
4938
|
+
};
|
|
3927
4939
|
404: {
|
|
3928
4940
|
headers: {
|
|
3929
4941
|
[name: string]: unknown;
|
|
@@ -3942,7 +4954,7 @@ interface operations {
|
|
|
3942
4954
|
};
|
|
3943
4955
|
};
|
|
3944
4956
|
};
|
|
3945
|
-
|
|
4957
|
+
getProofOfAddressResultDetails: {
|
|
3946
4958
|
parameters: {
|
|
3947
4959
|
query: {
|
|
3948
4960
|
sandbox: boolean;
|
|
@@ -3960,6 +4972,11 @@ interface operations {
|
|
|
3960
4972
|
* @example 123e4567-e89b-12d3-a456-426614174000
|
|
3961
4973
|
*/
|
|
3962
4974
|
flow_result_id: string;
|
|
4975
|
+
/**
|
|
4976
|
+
* @description The slug of the flow
|
|
4977
|
+
* @example flow-slug
|
|
4978
|
+
*/
|
|
4979
|
+
flow_slug: string;
|
|
3963
4980
|
/**
|
|
3964
4981
|
* @description The ID of the POA result
|
|
3965
4982
|
* @example 123e4567-e89b-12d3-a456-426614174000
|
|
@@ -3978,6 +4995,14 @@ interface operations {
|
|
|
3978
4995
|
"application/x-protobuf-stream": string;
|
|
3979
4996
|
};
|
|
3980
4997
|
};
|
|
4998
|
+
403: {
|
|
4999
|
+
headers: {
|
|
5000
|
+
[name: string]: unknown;
|
|
5001
|
+
};
|
|
5002
|
+
content: {
|
|
5003
|
+
"application/json": components["schemas"]["BaxeError"];
|
|
5004
|
+
};
|
|
5005
|
+
};
|
|
3981
5006
|
404: {
|
|
3982
5007
|
headers: {
|
|
3983
5008
|
[name: string]: unknown;
|
|
@@ -3996,50 +5021,621 @@ interface operations {
|
|
|
3996
5021
|
};
|
|
3997
5022
|
};
|
|
3998
5023
|
};
|
|
3999
|
-
|
|
4000
|
-
|
|
4001
|
-
|
|
4002
|
-
|
|
4003
|
-
|
|
4004
|
-
|
|
4005
|
-
|
|
4006
|
-
|
|
4007
|
-
|
|
4008
|
-
|
|
4009
|
-
|
|
4010
|
-
|
|
4011
|
-
|
|
4012
|
-
|
|
4013
|
-
|
|
4014
|
-
|
|
4015
|
-
|
|
4016
|
-
|
|
4017
|
-
|
|
4018
|
-
|
|
4019
|
-
|
|
4020
|
-
|
|
4021
|
-
|
|
4022
|
-
|
|
4023
|
-
|
|
4024
|
-
|
|
4025
|
-
|
|
4026
|
-
|
|
4027
|
-
|
|
4028
|
-
|
|
4029
|
-
|
|
4030
|
-
|
|
4031
|
-
|
|
4032
|
-
|
|
4033
|
-
|
|
4034
|
-
|
|
4035
|
-
|
|
4036
|
-
|
|
4037
|
-
|
|
4038
|
-
|
|
4039
|
-
|
|
4040
|
-
|
|
4041
|
-
|
|
4042
|
-
|
|
5024
|
+
getWalletResultDetails: {
|
|
5025
|
+
parameters: {
|
|
5026
|
+
query: {
|
|
5027
|
+
sandbox: boolean;
|
|
5028
|
+
locale?: components["schemas"]["Locale"];
|
|
5029
|
+
};
|
|
5030
|
+
header?: never;
|
|
5031
|
+
path: {
|
|
5032
|
+
/**
|
|
5033
|
+
* @description The ID of the organization
|
|
5034
|
+
* @example 123e4567-e89b-12d3-a456-426614174000
|
|
5035
|
+
*/
|
|
5036
|
+
organization_id: string;
|
|
5037
|
+
/**
|
|
5038
|
+
* @description The ID of the flow result
|
|
5039
|
+
* @example 123e4567-e89b-12d3-a456-426614174000
|
|
5040
|
+
*/
|
|
5041
|
+
flow_result_id: string;
|
|
5042
|
+
/**
|
|
5043
|
+
* @description The slug of the flow
|
|
5044
|
+
* @example flow-slug
|
|
5045
|
+
*/
|
|
5046
|
+
flow_slug: string;
|
|
5047
|
+
/**
|
|
5048
|
+
* @description The ID of the wallet result
|
|
5049
|
+
* @example 123e4567-e89b-12d3-a456-426614174000
|
|
5050
|
+
*/
|
|
5051
|
+
wallet_result_id: string;
|
|
5052
|
+
};
|
|
5053
|
+
cookie?: never;
|
|
5054
|
+
};
|
|
5055
|
+
requestBody?: never;
|
|
5056
|
+
responses: {
|
|
5057
|
+
200: {
|
|
5058
|
+
headers: {
|
|
5059
|
+
[name: string]: unknown;
|
|
5060
|
+
};
|
|
5061
|
+
content: {
|
|
5062
|
+
"application/json": components["schemas"]["WalletResult"];
|
|
5063
|
+
};
|
|
5064
|
+
};
|
|
5065
|
+
403: {
|
|
5066
|
+
headers: {
|
|
5067
|
+
[name: string]: unknown;
|
|
5068
|
+
};
|
|
5069
|
+
content: {
|
|
5070
|
+
"application/json": components["schemas"]["BaxeError"];
|
|
5071
|
+
};
|
|
5072
|
+
};
|
|
5073
|
+
404: {
|
|
5074
|
+
headers: {
|
|
5075
|
+
[name: string]: unknown;
|
|
5076
|
+
};
|
|
5077
|
+
content: {
|
|
5078
|
+
"application/json": components["schemas"]["BaxeError"];
|
|
5079
|
+
};
|
|
5080
|
+
};
|
|
5081
|
+
500: {
|
|
5082
|
+
headers: {
|
|
5083
|
+
[name: string]: unknown;
|
|
5084
|
+
};
|
|
5085
|
+
content: {
|
|
5086
|
+
"application/json": components["schemas"]["BaxeError"];
|
|
5087
|
+
};
|
|
5088
|
+
};
|
|
5089
|
+
};
|
|
5090
|
+
};
|
|
5091
|
+
getPhoneResultDetails: {
|
|
5092
|
+
parameters: {
|
|
5093
|
+
query: {
|
|
5094
|
+
sandbox: boolean;
|
|
5095
|
+
locale?: components["schemas"]["Locale"];
|
|
5096
|
+
};
|
|
5097
|
+
header?: never;
|
|
5098
|
+
path: {
|
|
5099
|
+
/**
|
|
5100
|
+
* @description The ID of the organization
|
|
5101
|
+
* @example 123e4567-e89b-12d3-a456-426614174000
|
|
5102
|
+
*/
|
|
5103
|
+
organization_id: string;
|
|
5104
|
+
/**
|
|
5105
|
+
* @description The ID of the flow result
|
|
5106
|
+
* @example 123e4567-e89b-12d3-a456-426614174000
|
|
5107
|
+
*/
|
|
5108
|
+
flow_result_id: string;
|
|
5109
|
+
/**
|
|
5110
|
+
* @description The slug of the flow
|
|
5111
|
+
* @example flow-slug
|
|
5112
|
+
*/
|
|
5113
|
+
flow_slug: string;
|
|
5114
|
+
/**
|
|
5115
|
+
* @description The ID of the phone result
|
|
5116
|
+
* @example 123e4567-e89b-12d3-a456-426614174000
|
|
5117
|
+
*/
|
|
5118
|
+
phone_result_id: string;
|
|
5119
|
+
};
|
|
5120
|
+
cookie?: never;
|
|
5121
|
+
};
|
|
5122
|
+
requestBody?: never;
|
|
5123
|
+
responses: {
|
|
5124
|
+
200: {
|
|
5125
|
+
headers: {
|
|
5126
|
+
[name: string]: unknown;
|
|
5127
|
+
};
|
|
5128
|
+
content: {
|
|
5129
|
+
"application/json": components["schemas"]["PhoneResult"];
|
|
5130
|
+
};
|
|
5131
|
+
};
|
|
5132
|
+
403: {
|
|
5133
|
+
headers: {
|
|
5134
|
+
[name: string]: unknown;
|
|
5135
|
+
};
|
|
5136
|
+
content: {
|
|
5137
|
+
"application/json": components["schemas"]["BaxeError"];
|
|
5138
|
+
};
|
|
5139
|
+
};
|
|
5140
|
+
404: {
|
|
5141
|
+
headers: {
|
|
5142
|
+
[name: string]: unknown;
|
|
5143
|
+
};
|
|
5144
|
+
content: {
|
|
5145
|
+
"application/json": components["schemas"]["BaxeError"];
|
|
5146
|
+
};
|
|
5147
|
+
};
|
|
5148
|
+
500: {
|
|
5149
|
+
headers: {
|
|
5150
|
+
[name: string]: unknown;
|
|
5151
|
+
};
|
|
5152
|
+
content: {
|
|
5153
|
+
"application/json": components["schemas"]["BaxeError"];
|
|
5154
|
+
};
|
|
5155
|
+
};
|
|
5156
|
+
};
|
|
5157
|
+
};
|
|
5158
|
+
getFormResultDetails: {
|
|
5159
|
+
parameters: {
|
|
5160
|
+
query: {
|
|
5161
|
+
sandbox: boolean;
|
|
5162
|
+
locale?: components["schemas"]["Locale"];
|
|
5163
|
+
};
|
|
5164
|
+
header?: never;
|
|
5165
|
+
path: {
|
|
5166
|
+
/**
|
|
5167
|
+
* @description The ID of the organization
|
|
5168
|
+
* @example 123e4567-e89b-12d3-a456-426614174000
|
|
5169
|
+
*/
|
|
5170
|
+
organization_id: string;
|
|
5171
|
+
/**
|
|
5172
|
+
* @description The ID of the flow result
|
|
5173
|
+
* @example 123e4567-e89b-12d3-a456-426614174000
|
|
5174
|
+
*/
|
|
5175
|
+
flow_result_id: string;
|
|
5176
|
+
/**
|
|
5177
|
+
* @description The slug of the flow
|
|
5178
|
+
* @example flow-slug
|
|
5179
|
+
*/
|
|
5180
|
+
flow_slug: string;
|
|
5181
|
+
/**
|
|
5182
|
+
* @description The ID of the form result
|
|
5183
|
+
* @example 123e4567-e89b-12d3-a456-426614174000
|
|
5184
|
+
*/
|
|
5185
|
+
form_result_id: string;
|
|
5186
|
+
};
|
|
5187
|
+
cookie?: never;
|
|
5188
|
+
};
|
|
5189
|
+
requestBody?: never;
|
|
5190
|
+
responses: {
|
|
5191
|
+
200: {
|
|
5192
|
+
headers: {
|
|
5193
|
+
[name: string]: unknown;
|
|
5194
|
+
};
|
|
5195
|
+
content: {
|
|
5196
|
+
"application/json": components["schemas"]["FormResult"];
|
|
5197
|
+
};
|
|
5198
|
+
};
|
|
5199
|
+
403: {
|
|
5200
|
+
headers: {
|
|
5201
|
+
[name: string]: unknown;
|
|
5202
|
+
};
|
|
5203
|
+
content: {
|
|
5204
|
+
"application/json": components["schemas"]["BaxeError"];
|
|
5205
|
+
};
|
|
5206
|
+
};
|
|
5207
|
+
404: {
|
|
5208
|
+
headers: {
|
|
5209
|
+
[name: string]: unknown;
|
|
5210
|
+
};
|
|
5211
|
+
content: {
|
|
5212
|
+
"application/json": components["schemas"]["BaxeError"];
|
|
5213
|
+
};
|
|
5214
|
+
};
|
|
5215
|
+
500: {
|
|
5216
|
+
headers: {
|
|
5217
|
+
[name: string]: unknown;
|
|
5218
|
+
};
|
|
5219
|
+
content: {
|
|
5220
|
+
"application/json": components["schemas"]["BaxeError"];
|
|
5221
|
+
};
|
|
5222
|
+
};
|
|
5223
|
+
};
|
|
5224
|
+
};
|
|
5225
|
+
getFlowResultDetailsDeprecated: {
|
|
5226
|
+
parameters: {
|
|
5227
|
+
query: {
|
|
5228
|
+
sandbox: boolean;
|
|
5229
|
+
locale?: components["schemas"]["Locale"];
|
|
5230
|
+
};
|
|
5231
|
+
header?: never;
|
|
5232
|
+
path: {
|
|
5233
|
+
/**
|
|
5234
|
+
* @description The ID of the organization
|
|
5235
|
+
* @example 123e4567-e89b-12d3-a456-426614174000
|
|
5236
|
+
*/
|
|
5237
|
+
organization_id: string;
|
|
5238
|
+
/**
|
|
5239
|
+
* @description The ID of the flow result
|
|
5240
|
+
* @example 123e4567-e89b-12d3-a456-426614174000
|
|
5241
|
+
*/
|
|
5242
|
+
flow_result_id: string;
|
|
5243
|
+
};
|
|
5244
|
+
cookie?: never;
|
|
5245
|
+
};
|
|
5246
|
+
requestBody?: never;
|
|
5247
|
+
responses: {
|
|
5248
|
+
200: {
|
|
5249
|
+
headers: {
|
|
5250
|
+
[name: string]: unknown;
|
|
5251
|
+
};
|
|
5252
|
+
content: {
|
|
5253
|
+
"application/json": components["schemas"]["FlowResult"];
|
|
5254
|
+
};
|
|
5255
|
+
};
|
|
5256
|
+
400: {
|
|
5257
|
+
headers: {
|
|
5258
|
+
[name: string]: unknown;
|
|
5259
|
+
};
|
|
5260
|
+
content: {
|
|
5261
|
+
"application/json": components["schemas"]["BaxeError"];
|
|
5262
|
+
};
|
|
5263
|
+
};
|
|
5264
|
+
401: {
|
|
5265
|
+
headers: {
|
|
5266
|
+
[name: string]: unknown;
|
|
5267
|
+
};
|
|
5268
|
+
content: {
|
|
5269
|
+
"application/json": components["schemas"]["BaxeError"];
|
|
5270
|
+
};
|
|
5271
|
+
};
|
|
5272
|
+
403: {
|
|
5273
|
+
headers: {
|
|
5274
|
+
[name: string]: unknown;
|
|
5275
|
+
};
|
|
5276
|
+
content: {
|
|
5277
|
+
"application/json": components["schemas"]["BaxeError"];
|
|
5278
|
+
};
|
|
5279
|
+
};
|
|
5280
|
+
500: {
|
|
5281
|
+
headers: {
|
|
5282
|
+
[name: string]: unknown;
|
|
5283
|
+
};
|
|
5284
|
+
content: {
|
|
5285
|
+
"application/json": components["schemas"]["BaxeError"];
|
|
5286
|
+
};
|
|
5287
|
+
};
|
|
5288
|
+
};
|
|
5289
|
+
};
|
|
5290
|
+
getDocumentVerificationResultDetailsDeprecated: {
|
|
5291
|
+
parameters: {
|
|
5292
|
+
query: {
|
|
5293
|
+
sandbox: boolean;
|
|
5294
|
+
locale?: components["schemas"]["Locale"];
|
|
5295
|
+
};
|
|
5296
|
+
header?: never;
|
|
5297
|
+
path: {
|
|
5298
|
+
/**
|
|
5299
|
+
* @description The ID of the organization
|
|
5300
|
+
* @example 123e4567-e89b-12d3-a456-426614174000
|
|
5301
|
+
*/
|
|
5302
|
+
organization_id: string;
|
|
5303
|
+
/**
|
|
5304
|
+
* @description The ID of the flow result
|
|
5305
|
+
* @example 123e4567-e89b-12d3-a456-426614174000
|
|
5306
|
+
*/
|
|
5307
|
+
flow_result_id: string;
|
|
5308
|
+
/**
|
|
5309
|
+
* @description The ID of the DV result
|
|
5310
|
+
* @example 123e4567-e89b-12d3-a456-426614174000
|
|
5311
|
+
*/
|
|
5312
|
+
dv_result_id: string;
|
|
5313
|
+
};
|
|
5314
|
+
cookie?: never;
|
|
5315
|
+
};
|
|
5316
|
+
requestBody?: never;
|
|
5317
|
+
responses: {
|
|
5318
|
+
200: {
|
|
5319
|
+
headers: {
|
|
5320
|
+
[name: string]: unknown;
|
|
5321
|
+
};
|
|
5322
|
+
content: {
|
|
5323
|
+
"application/x-protobuf-stream": string;
|
|
5324
|
+
};
|
|
5325
|
+
};
|
|
5326
|
+
403: {
|
|
5327
|
+
headers: {
|
|
5328
|
+
[name: string]: unknown;
|
|
5329
|
+
};
|
|
5330
|
+
content: {
|
|
5331
|
+
"application/json": components["schemas"]["BaxeError"];
|
|
5332
|
+
};
|
|
5333
|
+
};
|
|
5334
|
+
404: {
|
|
5335
|
+
headers: {
|
|
5336
|
+
[name: string]: unknown;
|
|
5337
|
+
};
|
|
5338
|
+
content: {
|
|
5339
|
+
"application/json": components["schemas"]["BaxeError"];
|
|
5340
|
+
};
|
|
5341
|
+
};
|
|
5342
|
+
500: {
|
|
5343
|
+
headers: {
|
|
5344
|
+
[name: string]: unknown;
|
|
5345
|
+
};
|
|
5346
|
+
content: {
|
|
5347
|
+
"application/json": components["schemas"]["BaxeError"];
|
|
5348
|
+
};
|
|
5349
|
+
};
|
|
5350
|
+
};
|
|
5351
|
+
};
|
|
5352
|
+
getProofOfAddressResultDetailsDeprecated: {
|
|
5353
|
+
parameters: {
|
|
5354
|
+
query: {
|
|
5355
|
+
sandbox: boolean;
|
|
5356
|
+
locale?: components["schemas"]["Locale"];
|
|
5357
|
+
};
|
|
5358
|
+
header?: never;
|
|
5359
|
+
path: {
|
|
5360
|
+
/**
|
|
5361
|
+
* @description The ID of the organization
|
|
5362
|
+
* @example 123e4567-e89b-12d3-a456-426614174000
|
|
5363
|
+
*/
|
|
5364
|
+
organization_id: string;
|
|
5365
|
+
/**
|
|
5366
|
+
* @description The ID of the flow result
|
|
5367
|
+
* @example 123e4567-e89b-12d3-a456-426614174000
|
|
5368
|
+
*/
|
|
5369
|
+
flow_result_id: string;
|
|
5370
|
+
/**
|
|
5371
|
+
* @description The ID of the POA result
|
|
5372
|
+
* @example 123e4567-e89b-12d3-a456-426614174000
|
|
5373
|
+
*/
|
|
5374
|
+
poa_result_id: string;
|
|
5375
|
+
};
|
|
5376
|
+
cookie?: never;
|
|
5377
|
+
};
|
|
5378
|
+
requestBody?: never;
|
|
5379
|
+
responses: {
|
|
5380
|
+
200: {
|
|
5381
|
+
headers: {
|
|
5382
|
+
[name: string]: unknown;
|
|
5383
|
+
};
|
|
5384
|
+
content: {
|
|
5385
|
+
"application/x-protobuf-stream": string;
|
|
5386
|
+
};
|
|
5387
|
+
};
|
|
5388
|
+
403: {
|
|
5389
|
+
headers: {
|
|
5390
|
+
[name: string]: unknown;
|
|
5391
|
+
};
|
|
5392
|
+
content: {
|
|
5393
|
+
"application/json": components["schemas"]["BaxeError"];
|
|
5394
|
+
};
|
|
5395
|
+
};
|
|
5396
|
+
404: {
|
|
5397
|
+
headers: {
|
|
5398
|
+
[name: string]: unknown;
|
|
5399
|
+
};
|
|
5400
|
+
content: {
|
|
5401
|
+
"application/json": components["schemas"]["BaxeError"];
|
|
5402
|
+
};
|
|
5403
|
+
};
|
|
5404
|
+
500: {
|
|
5405
|
+
headers: {
|
|
5406
|
+
[name: string]: unknown;
|
|
5407
|
+
};
|
|
5408
|
+
content: {
|
|
5409
|
+
"application/json": components["schemas"]["BaxeError"];
|
|
5410
|
+
};
|
|
5411
|
+
};
|
|
5412
|
+
};
|
|
5413
|
+
};
|
|
5414
|
+
sdkScreenAml: {
|
|
5415
|
+
parameters: {
|
|
5416
|
+
query: {
|
|
5417
|
+
sandbox: boolean;
|
|
5418
|
+
locale?: components["schemas"]["Locale"];
|
|
5419
|
+
};
|
|
5420
|
+
header?: never;
|
|
5421
|
+
path: {
|
|
5422
|
+
/** @description Organization ID */
|
|
5423
|
+
organization_id: string;
|
|
5424
|
+
};
|
|
5425
|
+
cookie?: never;
|
|
5426
|
+
};
|
|
5427
|
+
requestBody: {
|
|
5428
|
+
content: {
|
|
5429
|
+
"application/json": components["schemas"]["SdkAmlScreenRequest"];
|
|
5430
|
+
};
|
|
5431
|
+
};
|
|
5432
|
+
responses: {
|
|
5433
|
+
200: {
|
|
5434
|
+
headers: {
|
|
5435
|
+
[name: string]: unknown;
|
|
5436
|
+
};
|
|
5437
|
+
content: {
|
|
5438
|
+
"application/json": components["schemas"]["SdkAmlScreenResponse"];
|
|
5439
|
+
};
|
|
5440
|
+
};
|
|
5441
|
+
400: {
|
|
5442
|
+
headers: {
|
|
5443
|
+
[name: string]: unknown;
|
|
5444
|
+
};
|
|
5445
|
+
content: {
|
|
5446
|
+
"application/json": components["schemas"]["BaxeError"];
|
|
5447
|
+
};
|
|
5448
|
+
};
|
|
5449
|
+
401: {
|
|
5450
|
+
headers: {
|
|
5451
|
+
[name: string]: unknown;
|
|
5452
|
+
};
|
|
5453
|
+
content: {
|
|
5454
|
+
"application/json": components["schemas"]["BaxeError"];
|
|
5455
|
+
};
|
|
5456
|
+
};
|
|
5457
|
+
402: {
|
|
5458
|
+
headers: {
|
|
5459
|
+
[name: string]: unknown;
|
|
5460
|
+
};
|
|
5461
|
+
content: {
|
|
5462
|
+
"application/json": components["schemas"]["BaxeError"];
|
|
5463
|
+
};
|
|
5464
|
+
};
|
|
5465
|
+
403: {
|
|
5466
|
+
headers: {
|
|
5467
|
+
[name: string]: unknown;
|
|
5468
|
+
};
|
|
5469
|
+
content: {
|
|
5470
|
+
"application/json": components["schemas"]["BaxeError"];
|
|
5471
|
+
};
|
|
5472
|
+
};
|
|
5473
|
+
500: {
|
|
5474
|
+
headers: {
|
|
5475
|
+
[name: string]: unknown;
|
|
5476
|
+
};
|
|
5477
|
+
content: {
|
|
5478
|
+
"application/json": components["schemas"]["BaxeError"];
|
|
5479
|
+
};
|
|
5480
|
+
};
|
|
5481
|
+
};
|
|
5482
|
+
};
|
|
5483
|
+
get_topup_packs: {
|
|
5484
|
+
parameters: {
|
|
5485
|
+
query?: never;
|
|
5486
|
+
header?: never;
|
|
5487
|
+
path: {
|
|
5488
|
+
/** @description Organization ID */
|
|
5489
|
+
organization_id: string;
|
|
5490
|
+
};
|
|
5491
|
+
cookie?: never;
|
|
5492
|
+
};
|
|
5493
|
+
requestBody?: never;
|
|
5494
|
+
responses: {
|
|
5495
|
+
200: {
|
|
5496
|
+
headers: {
|
|
5497
|
+
[name: string]: unknown;
|
|
5498
|
+
};
|
|
5499
|
+
content: {
|
|
5500
|
+
"application/json": components["schemas"]["TopupPacksResponse"];
|
|
5501
|
+
};
|
|
5502
|
+
};
|
|
5503
|
+
401: {
|
|
5504
|
+
headers: {
|
|
5505
|
+
[name: string]: unknown;
|
|
5506
|
+
};
|
|
5507
|
+
content: {
|
|
5508
|
+
"application/json": components["schemas"]["BaxeError"];
|
|
5509
|
+
};
|
|
5510
|
+
};
|
|
5511
|
+
403: {
|
|
5512
|
+
headers: {
|
|
5513
|
+
[name: string]: unknown;
|
|
5514
|
+
};
|
|
5515
|
+
content: {
|
|
5516
|
+
"application/json": components["schemas"]["BaxeError"];
|
|
5517
|
+
};
|
|
5518
|
+
};
|
|
5519
|
+
500: {
|
|
5520
|
+
headers: {
|
|
5521
|
+
[name: string]: unknown;
|
|
5522
|
+
};
|
|
5523
|
+
content: {
|
|
5524
|
+
"application/json": components["schemas"]["BaxeError"];
|
|
5525
|
+
};
|
|
5526
|
+
};
|
|
5527
|
+
};
|
|
5528
|
+
};
|
|
5529
|
+
create_topup_checkout: {
|
|
5530
|
+
parameters: {
|
|
5531
|
+
query?: never;
|
|
5532
|
+
header?: never;
|
|
5533
|
+
path: {
|
|
5534
|
+
/** @description Organization ID */
|
|
5535
|
+
organization_id: string;
|
|
5536
|
+
};
|
|
5537
|
+
cookie?: never;
|
|
5538
|
+
};
|
|
5539
|
+
requestBody: {
|
|
5540
|
+
content: {
|
|
5541
|
+
"application/json": components["schemas"]["CreateTopupCheckoutRequest"];
|
|
5542
|
+
};
|
|
5543
|
+
};
|
|
5544
|
+
responses: {
|
|
5545
|
+
200: {
|
|
5546
|
+
headers: {
|
|
5547
|
+
[name: string]: unknown;
|
|
5548
|
+
};
|
|
5549
|
+
content: {
|
|
5550
|
+
"application/json": components["schemas"]["CheckoutSessionResponse"];
|
|
5551
|
+
};
|
|
5552
|
+
};
|
|
5553
|
+
400: {
|
|
5554
|
+
headers: {
|
|
5555
|
+
[name: string]: unknown;
|
|
5556
|
+
};
|
|
5557
|
+
content: {
|
|
5558
|
+
"application/json": components["schemas"]["BaxeError"];
|
|
5559
|
+
};
|
|
5560
|
+
};
|
|
5561
|
+
401: {
|
|
5562
|
+
headers: {
|
|
5563
|
+
[name: string]: unknown;
|
|
5564
|
+
};
|
|
5565
|
+
content: {
|
|
5566
|
+
"application/json": components["schemas"]["BaxeError"];
|
|
5567
|
+
};
|
|
5568
|
+
};
|
|
5569
|
+
403: {
|
|
5570
|
+
headers: {
|
|
5571
|
+
[name: string]: unknown;
|
|
5572
|
+
};
|
|
5573
|
+
content: {
|
|
5574
|
+
"application/json": components["schemas"]["BaxeError"];
|
|
5575
|
+
};
|
|
5576
|
+
};
|
|
5577
|
+
404: {
|
|
5578
|
+
headers: {
|
|
5579
|
+
[name: string]: unknown;
|
|
5580
|
+
};
|
|
5581
|
+
content: {
|
|
5582
|
+
"application/json": components["schemas"]["BaxeError"];
|
|
5583
|
+
};
|
|
5584
|
+
};
|
|
5585
|
+
500: {
|
|
5586
|
+
headers: {
|
|
5587
|
+
[name: string]: unknown;
|
|
5588
|
+
};
|
|
5589
|
+
content: {
|
|
5590
|
+
"application/json": components["schemas"]["BaxeError"];
|
|
5591
|
+
};
|
|
5592
|
+
};
|
|
5593
|
+
};
|
|
5594
|
+
};
|
|
5595
|
+
}
|
|
5596
|
+
|
|
5597
|
+
declare const Environments: {
|
|
5598
|
+
readonly LOCAL: "local";
|
|
5599
|
+
readonly STAGING: "staging";
|
|
5600
|
+
readonly PRODUCTION: "production";
|
|
5601
|
+
};
|
|
5602
|
+
type Environment = (typeof Environments)[keyof typeof Environments];
|
|
5603
|
+
declare const EnvironmentConfigs: {
|
|
5604
|
+
readonly local: {
|
|
5605
|
+
readonly appUrl: "http://localhost:5173";
|
|
5606
|
+
readonly apiUrl: "http://localhost:3000";
|
|
5607
|
+
};
|
|
5608
|
+
readonly staging: {
|
|
5609
|
+
readonly appUrl: "https://app-dev.zyphe.com";
|
|
5610
|
+
readonly apiUrl: "https://api-dev.zyphe.com";
|
|
5611
|
+
};
|
|
5612
|
+
readonly production: {
|
|
5613
|
+
readonly appUrl: "https://verify.zyphe.com";
|
|
5614
|
+
readonly apiUrl: "https://api.zyphe.com";
|
|
5615
|
+
};
|
|
5616
|
+
};
|
|
5617
|
+
declare const API_KEY_HEADER = "x-api-key";
|
|
5618
|
+
|
|
5619
|
+
type SdkCreateVerificationRequestResponse = components['schemas']['SdkCreateVerificationRequestResponse'];
|
|
5620
|
+
type Locale = components['schemas']['Locale'];
|
|
5621
|
+
type GetLivenessChallengeResponse = components['schemas']['GetLivenessChallengeResponse'];
|
|
5622
|
+
type ProcessDocumentSelectionPayload = components['schemas']['ProcessDocumentSelectionPayload'];
|
|
5623
|
+
type ProcessDocumentSelectionResponse = components['schemas']['ProcessDocumentSelectionResponse'];
|
|
5624
|
+
type ProcessIdentityDocumentPayload = components['schemas']['ProcessIdentityDocumentPayload'];
|
|
5625
|
+
type ProcessIdentityDocumentResponse = components['schemas']['ProcessIdentityDocumentResponse'];
|
|
5626
|
+
type ProcessLivenessPayload = components['schemas']['ProcessLivenessPayload'];
|
|
5627
|
+
type ProcessDvDocumentPayload = paths['/sdk/flow/{flow_id}/vr/{verification_request_id}/dv/process-dv-document']['post']['requestBody']['content']['application/json'];
|
|
5628
|
+
type ProcessDocumentSelectionRequestPayload = paths['/sdk/flow/{flow_id}/vr/{verification_request_id}/dv/process-dv-selection']['post']['requestBody']['content']['application/json'];
|
|
5629
|
+
type ProcessLivenessResponse = components['schemas']['ProcessLivenessResponse'];
|
|
5630
|
+
type ApiKeyType = components['schemas']['ApiKeyType'];
|
|
5631
|
+
type FlowStepType = components['schemas']['FlowStepType'];
|
|
5632
|
+
type Flow = components['schemas']['Flow'];
|
|
5633
|
+
type FlowStep = components['schemas']['FlowStep'];
|
|
5634
|
+
type VerificationRequest = components['schemas']['VerificationRequest'];
|
|
5635
|
+
type BaxeError = components['schemas']['BaxeError'];
|
|
5636
|
+
type VerificationIdentifierCredential = components['schemas']['VerificationIdentifierCredential'];
|
|
5637
|
+
/**
|
|
5638
|
+
* Parameters for initializing the Zyphe iframe for a Flow.
|
|
4043
5639
|
* These will remain constant for each user that visits the Flow URL.
|
|
4044
5640
|
*/
|
|
4045
5641
|
interface InitializeZypheFlowParams {
|
|
@@ -4119,21 +5715,59 @@ interface SDKOptions {
|
|
|
4119
5715
|
*/
|
|
4120
5716
|
handoffBaseUrl?: string;
|
|
4121
5717
|
/**
|
|
4122
|
-
*
|
|
4123
|
-
*
|
|
4124
|
-
*
|
|
4125
|
-
* The accepted values are flexible, but we recommend a hex code.
|
|
5718
|
+
* @deprecated Use {@link backgroundColor} instead. Historically the page background color.
|
|
5719
|
+
* Still honored for backwards compatibility.
|
|
4126
5720
|
* @example "#000000"
|
|
4127
5721
|
*/
|
|
4128
5722
|
primaryColor?: string;
|
|
4129
5723
|
/**
|
|
4130
|
-
*
|
|
4131
|
-
*
|
|
4132
|
-
*
|
|
4133
|
-
* The accepted values are flexible, but we recommend a hex code.
|
|
5724
|
+
* @deprecated Use {@link accentColor} instead. Historically the page accent color.
|
|
5725
|
+
* Still honored for backwards compatibility.
|
|
4134
5726
|
* @example "#000000"
|
|
4135
5727
|
*/
|
|
4136
5728
|
secondaryColor?: string;
|
|
5729
|
+
/**
|
|
5730
|
+
* The background color of the flow (light mode).
|
|
5731
|
+
* Overrides the theme configured in verify.zyphe.com.
|
|
5732
|
+
*
|
|
5733
|
+
* The accepted values are flexible, but we recommend a hex code.
|
|
5734
|
+
* @example "#ffffff"
|
|
5735
|
+
*/
|
|
5736
|
+
backgroundColor?: string;
|
|
5737
|
+
/**
|
|
5738
|
+
* The accent color of the flow — buttons, icons, highlights (light mode).
|
|
5739
|
+
*
|
|
5740
|
+
* The accepted values are flexible, but we recommend a hex code.
|
|
5741
|
+
* @example "#155dfb"
|
|
5742
|
+
*/
|
|
5743
|
+
accentColor?: string;
|
|
5744
|
+
/**
|
|
5745
|
+
* The card surface color of the flow (light mode).
|
|
5746
|
+
*
|
|
5747
|
+
* The accepted values are flexible, but we recommend a hex code.
|
|
5748
|
+
* @example "#ffffff"
|
|
5749
|
+
*/
|
|
5750
|
+
cardColor?: string;
|
|
5751
|
+
/**
|
|
5752
|
+
* The background color of the flow (dark mode).
|
|
5753
|
+
* @example "#16181d"
|
|
5754
|
+
*/
|
|
5755
|
+
darkBackgroundColor?: string;
|
|
5756
|
+
/**
|
|
5757
|
+
* The accent color of the flow — buttons, icons, highlights (dark mode).
|
|
5758
|
+
* @example "#155dfb"
|
|
5759
|
+
*/
|
|
5760
|
+
darkAccentColor?: string;
|
|
5761
|
+
/**
|
|
5762
|
+
* The card surface color of the flow (dark mode).
|
|
5763
|
+
* @example "#16181d"
|
|
5764
|
+
*/
|
|
5765
|
+
darkCardColor?: string;
|
|
5766
|
+
/**
|
|
5767
|
+
* Shared border radius applied to cards, buttons and inputs.
|
|
5768
|
+
* @example "12px"
|
|
5769
|
+
*/
|
|
5770
|
+
borderRadius?: string;
|
|
4137
5771
|
/**
|
|
4138
5772
|
* If true, the verification session will be displayed in "fullscreen" mode.
|
|
4139
5773
|
*/
|
|
@@ -4171,6 +5805,118 @@ declare const DocumentType: {
|
|
|
4171
5805
|
};
|
|
4172
5806
|
type DocumentType = (typeof DocumentType)[keyof typeof DocumentType];
|
|
4173
5807
|
|
|
5808
|
+
interface ScreenAmlParams {
|
|
5809
|
+
organizationId: string;
|
|
5810
|
+
isSandbox: boolean;
|
|
5811
|
+
query: components['schemas']['SdkAmlScreenQuery'];
|
|
5812
|
+
subjectType?: components['schemas']['AmlSubjectType'];
|
|
5813
|
+
locale?: components['schemas']['Locale'];
|
|
5814
|
+
}
|
|
5815
|
+
declare function screenAml({ organizationId, isSandbox, query, subjectType, locale }: ScreenAmlParams, opts: SDKOptions): Promise<openapi_fetch.FetchResponse<{
|
|
5816
|
+
parameters: {
|
|
5817
|
+
query: {
|
|
5818
|
+
sandbox: boolean;
|
|
5819
|
+
locale?: components["schemas"]["Locale"];
|
|
5820
|
+
};
|
|
5821
|
+
header?: never;
|
|
5822
|
+
path: {
|
|
5823
|
+
organization_id: string;
|
|
5824
|
+
};
|
|
5825
|
+
cookie?: never;
|
|
5826
|
+
};
|
|
5827
|
+
requestBody: {
|
|
5828
|
+
content: {
|
|
5829
|
+
"application/json": components["schemas"]["SdkAmlScreenRequest"];
|
|
5830
|
+
};
|
|
5831
|
+
};
|
|
5832
|
+
responses: {
|
|
5833
|
+
200: {
|
|
5834
|
+
headers: {
|
|
5835
|
+
[name: string]: unknown;
|
|
5836
|
+
};
|
|
5837
|
+
content: {
|
|
5838
|
+
"application/json": components["schemas"]["SdkAmlScreenResponse"];
|
|
5839
|
+
};
|
|
5840
|
+
};
|
|
5841
|
+
400: {
|
|
5842
|
+
headers: {
|
|
5843
|
+
[name: string]: unknown;
|
|
5844
|
+
};
|
|
5845
|
+
content: {
|
|
5846
|
+
"application/json": components["schemas"]["BaxeError"];
|
|
5847
|
+
};
|
|
5848
|
+
};
|
|
5849
|
+
401: {
|
|
5850
|
+
headers: {
|
|
5851
|
+
[name: string]: unknown;
|
|
5852
|
+
};
|
|
5853
|
+
content: {
|
|
5854
|
+
"application/json": components["schemas"]["BaxeError"];
|
|
5855
|
+
};
|
|
5856
|
+
};
|
|
5857
|
+
402: {
|
|
5858
|
+
headers: {
|
|
5859
|
+
[name: string]: unknown;
|
|
5860
|
+
};
|
|
5861
|
+
content: {
|
|
5862
|
+
"application/json": components["schemas"]["BaxeError"];
|
|
5863
|
+
};
|
|
5864
|
+
};
|
|
5865
|
+
403: {
|
|
5866
|
+
headers: {
|
|
5867
|
+
[name: string]: unknown;
|
|
5868
|
+
};
|
|
5869
|
+
content: {
|
|
5870
|
+
"application/json": components["schemas"]["BaxeError"];
|
|
5871
|
+
};
|
|
5872
|
+
};
|
|
5873
|
+
500: {
|
|
5874
|
+
headers: {
|
|
5875
|
+
[name: string]: unknown;
|
|
5876
|
+
};
|
|
5877
|
+
content: {
|
|
5878
|
+
"application/json": components["schemas"]["BaxeError"];
|
|
5879
|
+
};
|
|
5880
|
+
};
|
|
5881
|
+
};
|
|
5882
|
+
}, {
|
|
5883
|
+
params: {
|
|
5884
|
+
path: {
|
|
5885
|
+
organization_id: string;
|
|
5886
|
+
};
|
|
5887
|
+
query: {
|
|
5888
|
+
sandbox: boolean;
|
|
5889
|
+
locale: "en" | "it" | "de" | "es" | "fr" | "hi" | "id" | "pt" | undefined;
|
|
5890
|
+
};
|
|
5891
|
+
};
|
|
5892
|
+
body: {
|
|
5893
|
+
query: {
|
|
5894
|
+
address?: string | null;
|
|
5895
|
+
alias?: string | null;
|
|
5896
|
+
birthCountry?: string | null;
|
|
5897
|
+
birthDate?: string | null;
|
|
5898
|
+
birthPlace?: string | null;
|
|
5899
|
+
country?: string | null;
|
|
5900
|
+
email?: string | null;
|
|
5901
|
+
firstName?: string | null;
|
|
5902
|
+
gender?: string | null;
|
|
5903
|
+
lastName?: string | null;
|
|
5904
|
+
middleName?: string | null;
|
|
5905
|
+
name?: string | null;
|
|
5906
|
+
nationality?: string | null;
|
|
5907
|
+
passportNumber?: string | null;
|
|
5908
|
+
phone?: string | null;
|
|
5909
|
+
position?: string | null;
|
|
5910
|
+
registrationNumber?: string | null;
|
|
5911
|
+
title?: string | null;
|
|
5912
|
+
};
|
|
5913
|
+
subjectType: "PERSON" | "COMPANY" | undefined;
|
|
5914
|
+
};
|
|
5915
|
+
headers: {
|
|
5916
|
+
"x-api-key": string;
|
|
5917
|
+
};
|
|
5918
|
+
}, `${string}/${string}`>>;
|
|
5919
|
+
|
|
4174
5920
|
interface CompleteDvStepParams {
|
|
4175
5921
|
verificationSession: SdkCreateVerificationRequestResponse;
|
|
4176
5922
|
countryCode: string;
|
|
@@ -4384,8 +6130,204 @@ declare function listFlowResults({ organizationId, flowSlug, isSandbox, paginati
|
|
|
4384
6130
|
headers: {
|
|
4385
6131
|
"x-api-key": string;
|
|
4386
6132
|
};
|
|
4387
|
-
}, `${string}/${string}`>>;
|
|
4388
|
-
declare function getFlowResult({ organizationId, flowResultId, isSandbox }: GetFlowResultParams, opts: SDKOptions): Promise<{
|
|
6133
|
+
}, `${string}/${string}`>>;
|
|
6134
|
+
declare function getFlowResult({ organizationId, flowResultId, isSandbox }: GetFlowResultParams, opts: SDKOptions): Promise<{
|
|
6135
|
+
data: {
|
|
6136
|
+
dvResults: {
|
|
6137
|
+
adminComment?: string | null;
|
|
6138
|
+
authenticityChecks: number[][];
|
|
6139
|
+
browser?: string | null;
|
|
6140
|
+
class?: string | null;
|
|
6141
|
+
countryCode?: string | null;
|
|
6142
|
+
createdAt?: string | null;
|
|
6143
|
+
data: {
|
|
6144
|
+
[key: string]: unknown;
|
|
6145
|
+
};
|
|
6146
|
+
documentId?: string | null;
|
|
6147
|
+
documentScorePercent?: number | null;
|
|
6148
|
+
documentType?: number | null;
|
|
6149
|
+
flowStep?: Omit<components["schemas"]["FlowStep"], "type"> | null;
|
|
6150
|
+
flowStepId?: string | null;
|
|
6151
|
+
id: string;
|
|
6152
|
+
manualReviewAt?: string | null;
|
|
6153
|
+
manualReviewNote?: string | null;
|
|
6154
|
+
manualReviewerId?: string | null;
|
|
6155
|
+
manualReviewerZid?: string | null;
|
|
6156
|
+
originalVrHistoryId?: string | null;
|
|
6157
|
+
platform?: string | null;
|
|
6158
|
+
portraitMatchPercent?: number | null;
|
|
6159
|
+
processAdditionalData: components["schemas"]["ProcessAdditionalData"];
|
|
6160
|
+
provinceCode?: string | null;
|
|
6161
|
+
reasons: components["schemas"]["DvReason"][];
|
|
6162
|
+
status: components["schemas"]["ResultStatus"];
|
|
6163
|
+
updatedAt?: string | null;
|
|
6164
|
+
validUntil?: string | null;
|
|
6165
|
+
verificationRequestId?: string | null;
|
|
6166
|
+
}[] | undefined;
|
|
6167
|
+
amlResults: {
|
|
6168
|
+
adverseMedia?: boolean;
|
|
6169
|
+
createdAt: string;
|
|
6170
|
+
data?: components["schemas"]["AmlRiskResult"] | null;
|
|
6171
|
+
id: string;
|
|
6172
|
+
namedPersonRef?: string | null;
|
|
6173
|
+
pep: boolean;
|
|
6174
|
+
sanctions: boolean;
|
|
6175
|
+
subjectType?: components["schemas"]["AmlSubjectType"];
|
|
6176
|
+
updatedAt: string;
|
|
6177
|
+
verificationRequestId?: string | null;
|
|
6178
|
+
}[] | undefined;
|
|
6179
|
+
poaResults: {
|
|
6180
|
+
checkedAt?: string | null;
|
|
6181
|
+
createdAt: string;
|
|
6182
|
+
documentId?: string | null;
|
|
6183
|
+
documentType?: components["schemas"]["PoaDocumentType"] | null;
|
|
6184
|
+
flowStep?: Omit<components["schemas"]["FlowStep"], "type"> | null;
|
|
6185
|
+
flowStepId?: string | null;
|
|
6186
|
+
id: string;
|
|
6187
|
+
reason?: components["schemas"]["PoaReason"] | null;
|
|
6188
|
+
status: components["schemas"]["ResultStatus"];
|
|
6189
|
+
updatedAt: string;
|
|
6190
|
+
verificationRequestId?: string | null;
|
|
6191
|
+
}[] | undefined;
|
|
6192
|
+
assignedRiskTags?: components["schemas"]["AssignedRiskTag"][];
|
|
6193
|
+
createdAt?: string | null;
|
|
6194
|
+
customData?: {
|
|
6195
|
+
[key: string]: unknown;
|
|
6196
|
+
} | null | undefined;
|
|
6197
|
+
flow?: components["schemas"]["Flow"] | null;
|
|
6198
|
+
flowSlug?: string | undefined;
|
|
6199
|
+
formResults?: {
|
|
6200
|
+
assignedRiskTags?: components["schemas"]["AssignedRiskTag"][] | null;
|
|
6201
|
+
createdAt?: string | null;
|
|
6202
|
+
flowResultId: string;
|
|
6203
|
+
flowStep?: Omit<components["schemas"]["FlowStep"], "type"> | null;
|
|
6204
|
+
flowStepId?: string | null;
|
|
6205
|
+
form?: components["schemas"]["Form"] | null;
|
|
6206
|
+
formId?: string | null;
|
|
6207
|
+
id: string;
|
|
6208
|
+
reason?: components["schemas"]["FormReason"] | null;
|
|
6209
|
+
riskFactorKeys?: string[] | null;
|
|
6210
|
+
sections: components["schemas"]["FormSection"][];
|
|
6211
|
+
status: components["schemas"]["ResultStatus"];
|
|
6212
|
+
updatedAt?: string | null;
|
|
6213
|
+
verificationRequestId?: string | null;
|
|
6214
|
+
}[] | undefined;
|
|
6215
|
+
geolocationResults?: components["schemas"]["GeolocationResult"][];
|
|
6216
|
+
id?: string | undefined;
|
|
6217
|
+
identity?: components["schemas"]["Identity"] | null;
|
|
6218
|
+
jdmData?: {
|
|
6219
|
+
[key: string]: {
|
|
6220
|
+
data: components["schemas"]["DvStepOutput"];
|
|
6221
|
+
type: "DV";
|
|
6222
|
+
} | {
|
|
6223
|
+
data: components["schemas"]["PoaStepOutput"];
|
|
6224
|
+
type: "POA";
|
|
6225
|
+
} | {
|
|
6226
|
+
data: components["schemas"]["SpidStepOutput"];
|
|
6227
|
+
type: "SPID";
|
|
6228
|
+
} | {
|
|
6229
|
+
data: components["schemas"]["WalletStepOutput"];
|
|
6230
|
+
type: "WALLET";
|
|
6231
|
+
} | {
|
|
6232
|
+
data: components["schemas"]["PhoneStepOutput"];
|
|
6233
|
+
type: "PHONE";
|
|
6234
|
+
} | {
|
|
6235
|
+
data: components["schemas"]["FormStepOutput"];
|
|
6236
|
+
type: "FORM";
|
|
6237
|
+
} | {
|
|
6238
|
+
data: components["schemas"]["KybStepOutput"];
|
|
6239
|
+
type: "KYB";
|
|
6240
|
+
} | {
|
|
6241
|
+
data: components["schemas"]["LivenessStepOutput"];
|
|
6242
|
+
type: "LIVENESS";
|
|
6243
|
+
} | {
|
|
6244
|
+
data: components["schemas"]["AutoOneClickKycStepOutput"];
|
|
6245
|
+
type: "AUTO_ONE_CLICK_KYC";
|
|
6246
|
+
} | {
|
|
6247
|
+
data: components["schemas"]["ActionStepOutput"];
|
|
6248
|
+
type: "ACTION";
|
|
6249
|
+
} | {
|
|
6250
|
+
data: components["schemas"]["DocumentSelectionStepOutput"];
|
|
6251
|
+
type: "DOCUMENT_SELECTION";
|
|
6252
|
+
} | {
|
|
6253
|
+
data: components["schemas"]["GeolocationStepOutput"];
|
|
6254
|
+
type: "GEOLOCATION";
|
|
6255
|
+
};
|
|
6256
|
+
} | undefined;
|
|
6257
|
+
kybResults?: {
|
|
6258
|
+
assignedAt?: string | null;
|
|
6259
|
+
assignedToIdentityId?: string | null;
|
|
6260
|
+
businessInformation?: components["schemas"]["BusinessInformation"] | null;
|
|
6261
|
+
businessInformationVerification?: {
|
|
6262
|
+
[key: string]: components["schemas"]["BusinessInfoFieldVerification"];
|
|
6263
|
+
} | null;
|
|
6264
|
+
createdAt?: string | null;
|
|
6265
|
+
directorDefinitions?: components["schemas"]["DirectorDefinition"][] | null;
|
|
6266
|
+
documentUploads?: components["schemas"]["DocumentUpload"][] | null;
|
|
6267
|
+
effectiveRequiredDocuments?: components["schemas"]["KybCountryDocument"][] | null;
|
|
6268
|
+
flowStep?: Omit<components["schemas"]["FlowStep"], "type"> | null;
|
|
6269
|
+
flowStepId?: string | null;
|
|
6270
|
+
fundedAt?: string | null;
|
|
6271
|
+
id: string;
|
|
6272
|
+
metadata?: Record<string, never>;
|
|
6273
|
+
nextAction?: components["schemas"]["NextAction"] | null;
|
|
6274
|
+
pepAndSanctionsStatus: components["schemas"]["PepAndSanctionsStatus"];
|
|
6275
|
+
reason?: string | null;
|
|
6276
|
+
report?: string | null;
|
|
6277
|
+
status: components["schemas"]["ModerationResultStatus"];
|
|
6278
|
+
uboDefinitions?: components["schemas"]["UboDefinition"][] | null;
|
|
6279
|
+
updatedAt?: string | null;
|
|
6280
|
+
verificationRequestId?: string | null;
|
|
6281
|
+
}[] | undefined;
|
|
6282
|
+
organization?: components["schemas"]["Organization"] | null;
|
|
6283
|
+
organizationId?: string | undefined;
|
|
6284
|
+
phoneResults?: {
|
|
6285
|
+
createdAt?: string | null;
|
|
6286
|
+
documentId?: string | null;
|
|
6287
|
+
flowResultId: string;
|
|
6288
|
+
flowStep?: Omit<components["schemas"]["FlowStep"], "type"> | null;
|
|
6289
|
+
flowStepId?: string | null;
|
|
6290
|
+
id: string;
|
|
6291
|
+
phoneNumberE164?: string | null;
|
|
6292
|
+
phoneNumberLast4: string;
|
|
6293
|
+
status: components["schemas"]["ResultStatus"];
|
|
6294
|
+
updatedAt?: string | null;
|
|
6295
|
+
verificationRequestId?: string | null;
|
|
6296
|
+
}[] | undefined;
|
|
6297
|
+
reviewSuggestion?: components["schemas"]["ReviewSuggestion"] | null;
|
|
6298
|
+
riskScorePercent?: number | null;
|
|
6299
|
+
spidResults?: {
|
|
6300
|
+
createdAt?: string | null;
|
|
6301
|
+
flowStep?: Omit<components["schemas"]["FlowStep"], "type"> | null;
|
|
6302
|
+
flowStepId?: string | null;
|
|
6303
|
+
id: string;
|
|
6304
|
+
path: string;
|
|
6305
|
+
reason?: string | null;
|
|
6306
|
+
status: components["schemas"]["ResultStatus"];
|
|
6307
|
+
updatedAt?: string | null;
|
|
6308
|
+
verificationRequestId?: string | null;
|
|
6309
|
+
}[] | undefined;
|
|
6310
|
+
status?: "FAILED" | "REQUIRES_MANUAL_REVIEW" | "REQUIRES_ADMIN_REVIEW" | "PENDING" | "COMPLETED" | "CANCELLED" | "QUEUED" | "PROCESSING" | "REJECTED" | undefined;
|
|
6311
|
+
updatedAt?: string | null;
|
|
6312
|
+
walletResults?: {
|
|
6313
|
+
createdAt?: string | null;
|
|
6314
|
+
flowResultId: string;
|
|
6315
|
+
flowStep?: Omit<components["schemas"]["FlowStep"], "type"> | null;
|
|
6316
|
+
flowStepId?: string | null;
|
|
6317
|
+
id: string;
|
|
6318
|
+
message: string;
|
|
6319
|
+
reason?: string | null;
|
|
6320
|
+
signature: string;
|
|
6321
|
+
status: components["schemas"]["ResultStatus"];
|
|
6322
|
+
updatedAt?: string | null;
|
|
6323
|
+
verificationRequestId?: string | null;
|
|
6324
|
+
walletAddress: string;
|
|
6325
|
+
walletChain: string;
|
|
6326
|
+
}[] | undefined;
|
|
6327
|
+
};
|
|
6328
|
+
error?: never;
|
|
6329
|
+
response: Response;
|
|
6330
|
+
} | {
|
|
4389
6331
|
data: {
|
|
4390
6332
|
dvResults: {
|
|
4391
6333
|
adminComment?: string | null;
|
|
@@ -4415,14 +6357,18 @@ declare function getFlowResult({ organizationId, flowResultId, isSandbox }: GetF
|
|
|
4415
6357
|
reasons: components["schemas"]["DvReason"][];
|
|
4416
6358
|
status: components["schemas"]["ResultStatus"];
|
|
4417
6359
|
updatedAt?: string | null;
|
|
6360
|
+
validUntil?: string | null;
|
|
4418
6361
|
verificationRequestId?: string | null;
|
|
4419
6362
|
}[] | undefined;
|
|
4420
6363
|
amlResults: {
|
|
6364
|
+
adverseMedia?: boolean;
|
|
4421
6365
|
createdAt: string;
|
|
4422
6366
|
data?: components["schemas"]["AmlRiskResult"] | null;
|
|
4423
6367
|
id: string;
|
|
6368
|
+
namedPersonRef?: string | null;
|
|
4424
6369
|
pep: boolean;
|
|
4425
6370
|
sanctions: boolean;
|
|
6371
|
+
subjectType?: components["schemas"]["AmlSubjectType"];
|
|
4426
6372
|
updatedAt: string;
|
|
4427
6373
|
verificationRequestId?: string | null;
|
|
4428
6374
|
}[] | undefined;
|
|
@@ -4447,6 +6393,7 @@ declare function getFlowResult({ organizationId, flowResultId, isSandbox }: GetF
|
|
|
4447
6393
|
flow?: components["schemas"]["Flow"] | null;
|
|
4448
6394
|
flowSlug?: string | undefined;
|
|
4449
6395
|
formResults?: {
|
|
6396
|
+
assignedRiskTags?: components["schemas"]["AssignedRiskTag"][] | null;
|
|
4450
6397
|
createdAt?: string | null;
|
|
4451
6398
|
flowResultId: string;
|
|
4452
6399
|
flowStep?: Omit<components["schemas"]["FlowStep"], "type"> | null;
|
|
@@ -4455,6 +6402,7 @@ declare function getFlowResult({ organizationId, flowResultId, isSandbox }: GetF
|
|
|
4455
6402
|
formId?: string | null;
|
|
4456
6403
|
id: string;
|
|
4457
6404
|
reason?: components["schemas"]["FormReason"] | null;
|
|
6405
|
+
riskFactorKeys?: string[] | null;
|
|
4458
6406
|
sections: components["schemas"]["FormSection"][];
|
|
4459
6407
|
status: components["schemas"]["ResultStatus"];
|
|
4460
6408
|
updatedAt?: string | null;
|
|
@@ -4512,10 +6460,12 @@ declare function getFlowResult({ organizationId, flowResultId, isSandbox }: GetF
|
|
|
4512
6460
|
createdAt?: string | null;
|
|
4513
6461
|
directorDefinitions?: components["schemas"]["DirectorDefinition"][] | null;
|
|
4514
6462
|
documentUploads?: components["schemas"]["DocumentUpload"][] | null;
|
|
6463
|
+
effectiveRequiredDocuments?: components["schemas"]["KybCountryDocument"][] | null;
|
|
4515
6464
|
flowStep?: Omit<components["schemas"]["FlowStep"], "type"> | null;
|
|
4516
6465
|
flowStepId?: string | null;
|
|
4517
6466
|
fundedAt?: string | null;
|
|
4518
6467
|
id: string;
|
|
6468
|
+
metadata?: Record<string, never>;
|
|
4519
6469
|
nextAction?: components["schemas"]["NextAction"] | null;
|
|
4520
6470
|
pepAndSanctionsStatus: components["schemas"]["PepAndSanctionsStatus"];
|
|
4521
6471
|
reason?: string | null;
|
|
@@ -4541,6 +6491,7 @@ declare function getFlowResult({ organizationId, flowResultId, isSandbox }: GetF
|
|
|
4541
6491
|
verificationRequestId?: string | null;
|
|
4542
6492
|
}[] | undefined;
|
|
4543
6493
|
reviewSuggestion?: components["schemas"]["ReviewSuggestion"] | null;
|
|
6494
|
+
riskScorePercent?: number | null;
|
|
4544
6495
|
spidResults?: {
|
|
4545
6496
|
createdAt?: string | null;
|
|
4546
6497
|
flowStep?: Omit<components["schemas"]["FlowStep"], "type"> | null;
|
|
@@ -4570,216 +6521,563 @@ declare function getFlowResult({ organizationId, flowResultId, isSandbox }: GetF
|
|
|
4570
6521
|
walletChain: string;
|
|
4571
6522
|
}[] | undefined;
|
|
4572
6523
|
};
|
|
4573
|
-
error
|
|
4574
|
-
|
|
4575
|
-
|
|
4576
|
-
|
|
4577
|
-
|
|
4578
|
-
|
|
4579
|
-
|
|
4580
|
-
|
|
4581
|
-
|
|
4582
|
-
|
|
4583
|
-
|
|
4584
|
-
|
|
4585
|
-
|
|
6524
|
+
error: {
|
|
6525
|
+
code: number;
|
|
6526
|
+
errorTag: components["schemas"]["ErrorTags"];
|
|
6527
|
+
message?: string | null;
|
|
6528
|
+
};
|
|
6529
|
+
response: Response;
|
|
6530
|
+
}>;
|
|
6531
|
+
interface GetDvResultParams extends GetFlowResultParams {
|
|
6532
|
+
dvResultId: string;
|
|
6533
|
+
}
|
|
6534
|
+
declare function getDvResult({ organizationId, flowResultId, dvResultId, isSandbox }: GetDvResultParams, opts: SDKOptions): Promise<{
|
|
6535
|
+
data: ParsedKycMessages | undefined;
|
|
6536
|
+
error?: never;
|
|
6537
|
+
response: Response;
|
|
6538
|
+
} | {
|
|
6539
|
+
data: ParsedKycMessages | undefined;
|
|
6540
|
+
error: {
|
|
6541
|
+
code: number;
|
|
6542
|
+
errorTag: components["schemas"]["ErrorTags"];
|
|
6543
|
+
message?: string | null;
|
|
6544
|
+
};
|
|
6545
|
+
response: Response;
|
|
6546
|
+
}>;
|
|
6547
|
+
|
|
6548
|
+
interface KybResultParams {
|
|
6549
|
+
organizationId: string;
|
|
6550
|
+
kybResultId: string;
|
|
6551
|
+
isSandbox: boolean;
|
|
6552
|
+
locale?: components['schemas']['Locale'];
|
|
6553
|
+
}
|
|
6554
|
+
interface AddKybPersonsParams extends KybResultParams {
|
|
6555
|
+
persons: components['schemas']['AddKybPersonInput'][];
|
|
6556
|
+
}
|
|
6557
|
+
interface RemoveKybPersonParams extends KybResultParams {
|
|
6558
|
+
personId: string;
|
|
6559
|
+
}
|
|
6560
|
+
declare function addKybUbos({ organizationId, kybResultId, isSandbox, persons, locale }: AddKybPersonsParams, opts: SDKOptions): Promise<openapi_fetch.FetchResponse<{
|
|
6561
|
+
parameters: {
|
|
6562
|
+
query: {
|
|
6563
|
+
sandbox: boolean;
|
|
6564
|
+
locale?: components["schemas"]["Locale"];
|
|
6565
|
+
};
|
|
6566
|
+
header?: never;
|
|
6567
|
+
path: {
|
|
6568
|
+
organization_id: string;
|
|
6569
|
+
kyb_result_id: string;
|
|
6570
|
+
};
|
|
6571
|
+
cookie?: never;
|
|
6572
|
+
};
|
|
6573
|
+
requestBody: {
|
|
6574
|
+
content: {
|
|
6575
|
+
"application/json": components["schemas"]["AddKybPersonsPayload"];
|
|
6576
|
+
};
|
|
6577
|
+
};
|
|
6578
|
+
responses: {
|
|
6579
|
+
200: {
|
|
6580
|
+
headers: {
|
|
6581
|
+
[name: string]: unknown;
|
|
6582
|
+
};
|
|
6583
|
+
content: {
|
|
6584
|
+
"application/json": components["schemas"]["KybResult"];
|
|
6585
|
+
};
|
|
6586
|
+
};
|
|
6587
|
+
400: {
|
|
6588
|
+
headers: {
|
|
6589
|
+
[name: string]: unknown;
|
|
6590
|
+
};
|
|
6591
|
+
content: {
|
|
6592
|
+
"application/json": components["schemas"]["BaxeError"];
|
|
6593
|
+
};
|
|
6594
|
+
};
|
|
6595
|
+
401: {
|
|
6596
|
+
headers: {
|
|
6597
|
+
[name: string]: unknown;
|
|
6598
|
+
};
|
|
6599
|
+
content: {
|
|
6600
|
+
"application/json": components["schemas"]["BaxeError"];
|
|
6601
|
+
};
|
|
6602
|
+
};
|
|
6603
|
+
403: {
|
|
6604
|
+
headers: {
|
|
6605
|
+
[name: string]: unknown;
|
|
6606
|
+
};
|
|
6607
|
+
content: {
|
|
6608
|
+
"application/json": components["schemas"]["BaxeError"];
|
|
6609
|
+
};
|
|
6610
|
+
};
|
|
6611
|
+
404: {
|
|
6612
|
+
headers: {
|
|
6613
|
+
[name: string]: unknown;
|
|
6614
|
+
};
|
|
6615
|
+
content: {
|
|
6616
|
+
"application/json": components["schemas"]["BaxeError"];
|
|
6617
|
+
};
|
|
6618
|
+
};
|
|
6619
|
+
500: {
|
|
6620
|
+
headers: {
|
|
6621
|
+
[name: string]: unknown;
|
|
6622
|
+
};
|
|
6623
|
+
content: {
|
|
6624
|
+
"application/json": components["schemas"]["BaxeError"];
|
|
6625
|
+
};
|
|
6626
|
+
};
|
|
6627
|
+
};
|
|
6628
|
+
}, {
|
|
6629
|
+
params: {
|
|
6630
|
+
path: {
|
|
6631
|
+
organization_id: string;
|
|
6632
|
+
kyb_result_id: string;
|
|
6633
|
+
};
|
|
6634
|
+
query: {
|
|
6635
|
+
sandbox: boolean;
|
|
6636
|
+
locale: "en" | "it" | "de" | "es" | "fr" | "hi" | "id" | "pt" | undefined;
|
|
6637
|
+
};
|
|
6638
|
+
};
|
|
6639
|
+
body: {
|
|
6640
|
+
persons: {
|
|
6641
|
+
country: string;
|
|
6642
|
+
dateOfBirth: string;
|
|
6643
|
+
email?: string | null;
|
|
6644
|
+
firstName: string;
|
|
6645
|
+
gender: string;
|
|
6646
|
+
lastName: string;
|
|
6647
|
+
}[];
|
|
6648
|
+
};
|
|
6649
|
+
headers: {
|
|
6650
|
+
"x-api-key": string;
|
|
6651
|
+
};
|
|
6652
|
+
}, `${string}/${string}`>>;
|
|
6653
|
+
declare function removeKybUbo({ organizationId, kybResultId, personId, isSandbox, locale }: RemoveKybPersonParams, opts: SDKOptions): Promise<openapi_fetch.FetchResponse<{
|
|
6654
|
+
parameters: {
|
|
6655
|
+
query: {
|
|
6656
|
+
sandbox: boolean;
|
|
6657
|
+
locale?: components["schemas"]["Locale"];
|
|
6658
|
+
};
|
|
6659
|
+
header?: never;
|
|
6660
|
+
path: {
|
|
6661
|
+
organization_id: string;
|
|
6662
|
+
kyb_result_id: string;
|
|
6663
|
+
person_id: string;
|
|
6664
|
+
};
|
|
6665
|
+
cookie?: never;
|
|
6666
|
+
};
|
|
6667
|
+
requestBody?: never;
|
|
6668
|
+
responses: {
|
|
6669
|
+
200: {
|
|
6670
|
+
headers: {
|
|
6671
|
+
[name: string]: unknown;
|
|
6672
|
+
};
|
|
6673
|
+
content: {
|
|
6674
|
+
"application/json": components["schemas"]["KybResult"];
|
|
6675
|
+
};
|
|
6676
|
+
};
|
|
6677
|
+
400: {
|
|
6678
|
+
headers: {
|
|
6679
|
+
[name: string]: unknown;
|
|
6680
|
+
};
|
|
6681
|
+
content: {
|
|
6682
|
+
"application/json": components["schemas"]["BaxeError"];
|
|
6683
|
+
};
|
|
6684
|
+
};
|
|
6685
|
+
401: {
|
|
6686
|
+
headers: {
|
|
6687
|
+
[name: string]: unknown;
|
|
6688
|
+
};
|
|
6689
|
+
content: {
|
|
6690
|
+
"application/json": components["schemas"]["BaxeError"];
|
|
6691
|
+
};
|
|
6692
|
+
};
|
|
6693
|
+
403: {
|
|
6694
|
+
headers: {
|
|
6695
|
+
[name: string]: unknown;
|
|
6696
|
+
};
|
|
6697
|
+
content: {
|
|
6698
|
+
"application/json": components["schemas"]["BaxeError"];
|
|
6699
|
+
};
|
|
6700
|
+
};
|
|
6701
|
+
404: {
|
|
6702
|
+
headers: {
|
|
6703
|
+
[name: string]: unknown;
|
|
6704
|
+
};
|
|
6705
|
+
content: {
|
|
6706
|
+
"application/json": components["schemas"]["BaxeError"];
|
|
6707
|
+
};
|
|
6708
|
+
};
|
|
6709
|
+
500: {
|
|
6710
|
+
headers: {
|
|
6711
|
+
[name: string]: unknown;
|
|
6712
|
+
};
|
|
6713
|
+
content: {
|
|
6714
|
+
"application/json": components["schemas"]["BaxeError"];
|
|
6715
|
+
};
|
|
6716
|
+
};
|
|
6717
|
+
};
|
|
6718
|
+
}, {
|
|
6719
|
+
params: {
|
|
6720
|
+
path: {
|
|
6721
|
+
organization_id: string;
|
|
6722
|
+
kyb_result_id: string;
|
|
6723
|
+
person_id: string;
|
|
6724
|
+
};
|
|
6725
|
+
query: {
|
|
6726
|
+
sandbox: boolean;
|
|
6727
|
+
locale: "en" | "it" | "de" | "es" | "fr" | "hi" | "id" | "pt" | undefined;
|
|
6728
|
+
};
|
|
6729
|
+
};
|
|
6730
|
+
headers: {
|
|
6731
|
+
"x-api-key": string;
|
|
6732
|
+
};
|
|
6733
|
+
}, `${string}/${string}`>>;
|
|
6734
|
+
declare function addKybDirectors({ organizationId, kybResultId, isSandbox, persons, locale }: AddKybPersonsParams, opts: SDKOptions): Promise<openapi_fetch.FetchResponse<{
|
|
6735
|
+
parameters: {
|
|
6736
|
+
query: {
|
|
6737
|
+
sandbox: boolean;
|
|
6738
|
+
locale?: components["schemas"]["Locale"];
|
|
6739
|
+
};
|
|
6740
|
+
header?: never;
|
|
6741
|
+
path: {
|
|
6742
|
+
organization_id: string;
|
|
6743
|
+
kyb_result_id: string;
|
|
6744
|
+
};
|
|
6745
|
+
cookie?: never;
|
|
6746
|
+
};
|
|
6747
|
+
requestBody: {
|
|
6748
|
+
content: {
|
|
6749
|
+
"application/json": components["schemas"]["AddKybPersonsPayload"];
|
|
6750
|
+
};
|
|
6751
|
+
};
|
|
6752
|
+
responses: {
|
|
6753
|
+
200: {
|
|
6754
|
+
headers: {
|
|
6755
|
+
[name: string]: unknown;
|
|
4586
6756
|
};
|
|
4587
|
-
|
|
4588
|
-
|
|
4589
|
-
|
|
4590
|
-
|
|
4591
|
-
|
|
4592
|
-
|
|
4593
|
-
|
|
4594
|
-
|
|
4595
|
-
|
|
4596
|
-
|
|
4597
|
-
|
|
4598
|
-
|
|
4599
|
-
|
|
4600
|
-
|
|
4601
|
-
|
|
4602
|
-
|
|
4603
|
-
|
|
4604
|
-
|
|
4605
|
-
|
|
4606
|
-
}
|
|
4607
|
-
|
|
4608
|
-
|
|
4609
|
-
|
|
4610
|
-
|
|
4611
|
-
|
|
4612
|
-
|
|
4613
|
-
|
|
4614
|
-
|
|
4615
|
-
|
|
4616
|
-
|
|
4617
|
-
|
|
4618
|
-
|
|
4619
|
-
|
|
4620
|
-
|
|
4621
|
-
|
|
4622
|
-
|
|
4623
|
-
|
|
4624
|
-
|
|
4625
|
-
|
|
4626
|
-
|
|
4627
|
-
|
|
4628
|
-
|
|
4629
|
-
|
|
4630
|
-
|
|
4631
|
-
|
|
4632
|
-
|
|
4633
|
-
|
|
4634
|
-
|
|
4635
|
-
|
|
4636
|
-
|
|
4637
|
-
|
|
4638
|
-
|
|
4639
|
-
|
|
4640
|
-
|
|
4641
|
-
|
|
4642
|
-
|
|
4643
|
-
|
|
4644
|
-
|
|
4645
|
-
|
|
4646
|
-
|
|
4647
|
-
|
|
4648
|
-
|
|
4649
|
-
|
|
4650
|
-
|
|
4651
|
-
|
|
4652
|
-
|
|
4653
|
-
|
|
4654
|
-
|
|
4655
|
-
|
|
4656
|
-
|
|
4657
|
-
|
|
4658
|
-
|
|
4659
|
-
|
|
4660
|
-
|
|
4661
|
-
|
|
4662
|
-
|
|
4663
|
-
|
|
4664
|
-
|
|
4665
|
-
|
|
4666
|
-
|
|
4667
|
-
|
|
4668
|
-
|
|
4669
|
-
|
|
4670
|
-
|
|
4671
|
-
|
|
4672
|
-
|
|
4673
|
-
|
|
4674
|
-
|
|
4675
|
-
|
|
4676
|
-
|
|
4677
|
-
|
|
4678
|
-
|
|
4679
|
-
|
|
4680
|
-
|
|
4681
|
-
|
|
4682
|
-
|
|
4683
|
-
|
|
4684
|
-
}
|
|
4685
|
-
|
|
4686
|
-
|
|
4687
|
-
}
|
|
4688
|
-
|
|
4689
|
-
|
|
6757
|
+
content: {
|
|
6758
|
+
"application/json": components["schemas"]["KybResult"];
|
|
6759
|
+
};
|
|
6760
|
+
};
|
|
6761
|
+
400: {
|
|
6762
|
+
headers: {
|
|
6763
|
+
[name: string]: unknown;
|
|
6764
|
+
};
|
|
6765
|
+
content: {
|
|
6766
|
+
"application/json": components["schemas"]["BaxeError"];
|
|
6767
|
+
};
|
|
6768
|
+
};
|
|
6769
|
+
401: {
|
|
6770
|
+
headers: {
|
|
6771
|
+
[name: string]: unknown;
|
|
6772
|
+
};
|
|
6773
|
+
content: {
|
|
6774
|
+
"application/json": components["schemas"]["BaxeError"];
|
|
6775
|
+
};
|
|
6776
|
+
};
|
|
6777
|
+
403: {
|
|
6778
|
+
headers: {
|
|
6779
|
+
[name: string]: unknown;
|
|
6780
|
+
};
|
|
6781
|
+
content: {
|
|
6782
|
+
"application/json": components["schemas"]["BaxeError"];
|
|
6783
|
+
};
|
|
6784
|
+
};
|
|
6785
|
+
404: {
|
|
6786
|
+
headers: {
|
|
6787
|
+
[name: string]: unknown;
|
|
6788
|
+
};
|
|
6789
|
+
content: {
|
|
6790
|
+
"application/json": components["schemas"]["BaxeError"];
|
|
6791
|
+
};
|
|
6792
|
+
};
|
|
6793
|
+
500: {
|
|
6794
|
+
headers: {
|
|
6795
|
+
[name: string]: unknown;
|
|
6796
|
+
};
|
|
6797
|
+
content: {
|
|
6798
|
+
"application/json": components["schemas"]["BaxeError"];
|
|
6799
|
+
};
|
|
6800
|
+
};
|
|
6801
|
+
};
|
|
6802
|
+
}, {
|
|
6803
|
+
params: {
|
|
6804
|
+
path: {
|
|
6805
|
+
organization_id: string;
|
|
6806
|
+
kyb_result_id: string;
|
|
6807
|
+
};
|
|
6808
|
+
query: {
|
|
6809
|
+
sandbox: boolean;
|
|
6810
|
+
locale: "en" | "it" | "de" | "es" | "fr" | "hi" | "id" | "pt" | undefined;
|
|
6811
|
+
};
|
|
6812
|
+
};
|
|
6813
|
+
body: {
|
|
6814
|
+
persons: {
|
|
6815
|
+
country: string;
|
|
6816
|
+
dateOfBirth: string;
|
|
6817
|
+
email?: string | null;
|
|
6818
|
+
firstName: string;
|
|
6819
|
+
gender: string;
|
|
6820
|
+
lastName: string;
|
|
6821
|
+
}[];
|
|
6822
|
+
};
|
|
6823
|
+
headers: {
|
|
6824
|
+
"x-api-key": string;
|
|
6825
|
+
};
|
|
6826
|
+
}, `${string}/${string}`>>;
|
|
6827
|
+
declare function removeKybDirector({ organizationId, kybResultId, personId, isSandbox, locale }: RemoveKybPersonParams, opts: SDKOptions): Promise<openapi_fetch.FetchResponse<{
|
|
6828
|
+
parameters: {
|
|
6829
|
+
query: {
|
|
6830
|
+
sandbox: boolean;
|
|
6831
|
+
locale?: components["schemas"]["Locale"];
|
|
6832
|
+
};
|
|
6833
|
+
header?: never;
|
|
6834
|
+
path: {
|
|
6835
|
+
organization_id: string;
|
|
6836
|
+
kyb_result_id: string;
|
|
6837
|
+
person_id: string;
|
|
6838
|
+
};
|
|
6839
|
+
cookie?: never;
|
|
6840
|
+
};
|
|
6841
|
+
requestBody?: never;
|
|
6842
|
+
responses: {
|
|
6843
|
+
200: {
|
|
6844
|
+
headers: {
|
|
6845
|
+
[name: string]: unknown;
|
|
6846
|
+
};
|
|
6847
|
+
content: {
|
|
6848
|
+
"application/json": components["schemas"]["KybResult"];
|
|
6849
|
+
};
|
|
6850
|
+
};
|
|
6851
|
+
400: {
|
|
6852
|
+
headers: {
|
|
6853
|
+
[name: string]: unknown;
|
|
6854
|
+
};
|
|
6855
|
+
content: {
|
|
6856
|
+
"application/json": components["schemas"]["BaxeError"];
|
|
6857
|
+
};
|
|
6858
|
+
};
|
|
6859
|
+
401: {
|
|
6860
|
+
headers: {
|
|
6861
|
+
[name: string]: unknown;
|
|
6862
|
+
};
|
|
6863
|
+
content: {
|
|
6864
|
+
"application/json": components["schemas"]["BaxeError"];
|
|
6865
|
+
};
|
|
6866
|
+
};
|
|
6867
|
+
403: {
|
|
6868
|
+
headers: {
|
|
6869
|
+
[name: string]: unknown;
|
|
6870
|
+
};
|
|
6871
|
+
content: {
|
|
6872
|
+
"application/json": components["schemas"]["BaxeError"];
|
|
6873
|
+
};
|
|
6874
|
+
};
|
|
6875
|
+
404: {
|
|
6876
|
+
headers: {
|
|
6877
|
+
[name: string]: unknown;
|
|
6878
|
+
};
|
|
6879
|
+
content: {
|
|
6880
|
+
"application/json": components["schemas"]["BaxeError"];
|
|
6881
|
+
};
|
|
6882
|
+
};
|
|
6883
|
+
500: {
|
|
6884
|
+
headers: {
|
|
6885
|
+
[name: string]: unknown;
|
|
6886
|
+
};
|
|
6887
|
+
content: {
|
|
6888
|
+
"application/json": components["schemas"]["BaxeError"];
|
|
4690
6889
|
};
|
|
4691
|
-
}
|
|
4692
|
-
kybResults?: {
|
|
4693
|
-
assignedAt?: string | null;
|
|
4694
|
-
assignedToIdentityId?: string | null;
|
|
4695
|
-
businessInformation?: components["schemas"]["BusinessInformation"] | null;
|
|
4696
|
-
businessInformationVerification?: {
|
|
4697
|
-
[key: string]: components["schemas"]["BusinessInfoFieldVerification"];
|
|
4698
|
-
} | null;
|
|
4699
|
-
createdAt?: string | null;
|
|
4700
|
-
directorDefinitions?: components["schemas"]["DirectorDefinition"][] | null;
|
|
4701
|
-
documentUploads?: components["schemas"]["DocumentUpload"][] | null;
|
|
4702
|
-
flowStep?: Omit<components["schemas"]["FlowStep"], "type"> | null;
|
|
4703
|
-
flowStepId?: string | null;
|
|
4704
|
-
fundedAt?: string | null;
|
|
4705
|
-
id: string;
|
|
4706
|
-
nextAction?: components["schemas"]["NextAction"] | null;
|
|
4707
|
-
pepAndSanctionsStatus: components["schemas"]["PepAndSanctionsStatus"];
|
|
4708
|
-
reason?: string | null;
|
|
4709
|
-
report?: string | null;
|
|
4710
|
-
status: components["schemas"]["ModerationResultStatus"];
|
|
4711
|
-
uboDefinitions?: components["schemas"]["UboDefinition"][] | null;
|
|
4712
|
-
updatedAt?: string | null;
|
|
4713
|
-
verificationRequestId?: string | null;
|
|
4714
|
-
}[] | undefined;
|
|
4715
|
-
organization?: components["schemas"]["Organization"] | null;
|
|
4716
|
-
organizationId?: string | undefined;
|
|
4717
|
-
phoneResults?: {
|
|
4718
|
-
createdAt?: string | null;
|
|
4719
|
-
documentId?: string | null;
|
|
4720
|
-
flowResultId: string;
|
|
4721
|
-
flowStep?: Omit<components["schemas"]["FlowStep"], "type"> | null;
|
|
4722
|
-
flowStepId?: string | null;
|
|
4723
|
-
id: string;
|
|
4724
|
-
phoneNumberE164?: string | null;
|
|
4725
|
-
phoneNumberLast4: string;
|
|
4726
|
-
status: components["schemas"]["ResultStatus"];
|
|
4727
|
-
updatedAt?: string | null;
|
|
4728
|
-
verificationRequestId?: string | null;
|
|
4729
|
-
}[] | undefined;
|
|
4730
|
-
reviewSuggestion?: components["schemas"]["ReviewSuggestion"] | null;
|
|
4731
|
-
spidResults?: {
|
|
4732
|
-
createdAt?: string | null;
|
|
4733
|
-
flowStep?: Omit<components["schemas"]["FlowStep"], "type"> | null;
|
|
4734
|
-
flowStepId?: string | null;
|
|
4735
|
-
id: string;
|
|
4736
|
-
path: string;
|
|
4737
|
-
reason?: string | null;
|
|
4738
|
-
status: components["schemas"]["ResultStatus"];
|
|
4739
|
-
updatedAt?: string | null;
|
|
4740
|
-
verificationRequestId?: string | null;
|
|
4741
|
-
}[] | undefined;
|
|
4742
|
-
status?: "FAILED" | "REQUIRES_MANUAL_REVIEW" | "REQUIRES_ADMIN_REVIEW" | "PENDING" | "COMPLETED" | "CANCELLED" | "QUEUED" | "PROCESSING" | "REJECTED" | undefined;
|
|
4743
|
-
updatedAt?: string | null;
|
|
4744
|
-
walletResults?: {
|
|
4745
|
-
createdAt?: string | null;
|
|
4746
|
-
flowResultId: string;
|
|
4747
|
-
flowStep?: Omit<components["schemas"]["FlowStep"], "type"> | null;
|
|
4748
|
-
flowStepId?: string | null;
|
|
4749
|
-
id: string;
|
|
4750
|
-
message: string;
|
|
4751
|
-
reason?: string | null;
|
|
4752
|
-
signature: string;
|
|
4753
|
-
status: components["schemas"]["ResultStatus"];
|
|
4754
|
-
updatedAt?: string | null;
|
|
4755
|
-
verificationRequestId?: string | null;
|
|
4756
|
-
walletAddress: string;
|
|
4757
|
-
walletChain: string;
|
|
4758
|
-
}[] | undefined;
|
|
6890
|
+
};
|
|
4759
6891
|
};
|
|
4760
|
-
|
|
4761
|
-
|
|
4762
|
-
|
|
4763
|
-
|
|
6892
|
+
}, {
|
|
6893
|
+
params: {
|
|
6894
|
+
path: {
|
|
6895
|
+
organization_id: string;
|
|
6896
|
+
kyb_result_id: string;
|
|
6897
|
+
person_id: string;
|
|
6898
|
+
};
|
|
6899
|
+
query: {
|
|
6900
|
+
sandbox: boolean;
|
|
6901
|
+
locale: "en" | "it" | "de" | "es" | "fr" | "hi" | "id" | "pt" | undefined;
|
|
6902
|
+
};
|
|
4764
6903
|
};
|
|
4765
|
-
|
|
4766
|
-
|
|
4767
|
-
|
|
4768
|
-
|
|
6904
|
+
headers: {
|
|
6905
|
+
"x-api-key": string;
|
|
6906
|
+
};
|
|
6907
|
+
}, `${string}/${string}`>>;
|
|
6908
|
+
interface RequestKybOnDemandDocumentParams extends KybResultParams {
|
|
6909
|
+
documentKey: string;
|
|
4769
6910
|
}
|
|
4770
|
-
declare function
|
|
4771
|
-
|
|
4772
|
-
|
|
4773
|
-
|
|
4774
|
-
|
|
4775
|
-
|
|
4776
|
-
|
|
4777
|
-
|
|
4778
|
-
|
|
4779
|
-
|
|
6911
|
+
declare function requestKybOnDemandDocument({ organizationId, kybResultId, documentKey, isSandbox, locale }: RequestKybOnDemandDocumentParams, opts: SDKOptions): Promise<openapi_fetch.FetchResponse<{
|
|
6912
|
+
parameters: {
|
|
6913
|
+
query: {
|
|
6914
|
+
sandbox: boolean;
|
|
6915
|
+
locale?: components["schemas"]["Locale"];
|
|
6916
|
+
};
|
|
6917
|
+
header?: never;
|
|
6918
|
+
path: {
|
|
6919
|
+
organization_id: string;
|
|
6920
|
+
kyb_result_id: string;
|
|
6921
|
+
};
|
|
6922
|
+
cookie?: never;
|
|
4780
6923
|
};
|
|
4781
|
-
|
|
4782
|
-
|
|
6924
|
+
requestBody: {
|
|
6925
|
+
content: {
|
|
6926
|
+
"application/json": components["schemas"]["RequestOnDemandDocumentPayload"];
|
|
6927
|
+
};
|
|
6928
|
+
};
|
|
6929
|
+
responses: {
|
|
6930
|
+
200: {
|
|
6931
|
+
headers: {
|
|
6932
|
+
[name: string]: unknown;
|
|
6933
|
+
};
|
|
6934
|
+
content: {
|
|
6935
|
+
"application/json": components["schemas"]["KybDocumentRequest"];
|
|
6936
|
+
};
|
|
6937
|
+
};
|
|
6938
|
+
400: {
|
|
6939
|
+
headers: {
|
|
6940
|
+
[name: string]: unknown;
|
|
6941
|
+
};
|
|
6942
|
+
content: {
|
|
6943
|
+
"application/json": components["schemas"]["BaxeError"];
|
|
6944
|
+
};
|
|
6945
|
+
};
|
|
6946
|
+
401: {
|
|
6947
|
+
headers: {
|
|
6948
|
+
[name: string]: unknown;
|
|
6949
|
+
};
|
|
6950
|
+
content: {
|
|
6951
|
+
"application/json": components["schemas"]["BaxeError"];
|
|
6952
|
+
};
|
|
6953
|
+
};
|
|
6954
|
+
403: {
|
|
6955
|
+
headers: {
|
|
6956
|
+
[name: string]: unknown;
|
|
6957
|
+
};
|
|
6958
|
+
content: {
|
|
6959
|
+
"application/json": components["schemas"]["BaxeError"];
|
|
6960
|
+
};
|
|
6961
|
+
};
|
|
6962
|
+
404: {
|
|
6963
|
+
headers: {
|
|
6964
|
+
[name: string]: unknown;
|
|
6965
|
+
};
|
|
6966
|
+
content: {
|
|
6967
|
+
"application/json": components["schemas"]["BaxeError"];
|
|
6968
|
+
};
|
|
6969
|
+
};
|
|
6970
|
+
500: {
|
|
6971
|
+
headers: {
|
|
6972
|
+
[name: string]: unknown;
|
|
6973
|
+
};
|
|
6974
|
+
content: {
|
|
6975
|
+
"application/json": components["schemas"]["BaxeError"];
|
|
6976
|
+
};
|
|
6977
|
+
};
|
|
6978
|
+
};
|
|
6979
|
+
}, {
|
|
6980
|
+
params: {
|
|
6981
|
+
path: {
|
|
6982
|
+
organization_id: string;
|
|
6983
|
+
kyb_result_id: string;
|
|
6984
|
+
};
|
|
6985
|
+
query: {
|
|
6986
|
+
sandbox: boolean;
|
|
6987
|
+
locale: "en" | "it" | "de" | "es" | "fr" | "hi" | "id" | "pt" | undefined;
|
|
6988
|
+
};
|
|
6989
|
+
};
|
|
6990
|
+
body: {
|
|
6991
|
+
documentKey: string;
|
|
6992
|
+
};
|
|
6993
|
+
headers: {
|
|
6994
|
+
"x-api-key": string;
|
|
6995
|
+
};
|
|
6996
|
+
}, `${string}/${string}`>>;
|
|
6997
|
+
interface SendKybUboReminderParams extends KybResultParams {
|
|
6998
|
+
recipientIndex: number;
|
|
6999
|
+
}
|
|
7000
|
+
declare function sendKybUboReminder({ organizationId, kybResultId, recipientIndex, isSandbox, locale }: SendKybUboReminderParams, opts: SDKOptions): Promise<openapi_fetch.FetchResponse<{
|
|
7001
|
+
parameters: {
|
|
7002
|
+
query: {
|
|
7003
|
+
sandbox: boolean;
|
|
7004
|
+
locale?: components["schemas"]["Locale"];
|
|
7005
|
+
};
|
|
7006
|
+
header?: never;
|
|
7007
|
+
path: {
|
|
7008
|
+
organization_id: string;
|
|
7009
|
+
kyb_result_id: string;
|
|
7010
|
+
recipient_index: number;
|
|
7011
|
+
};
|
|
7012
|
+
cookie?: never;
|
|
7013
|
+
};
|
|
7014
|
+
requestBody?: never;
|
|
7015
|
+
responses: {
|
|
7016
|
+
202: {
|
|
7017
|
+
headers: {
|
|
7018
|
+
[name: string]: unknown;
|
|
7019
|
+
};
|
|
7020
|
+
content: {
|
|
7021
|
+
"application/json": components["schemas"]["TriggerReminderResponse"];
|
|
7022
|
+
};
|
|
7023
|
+
};
|
|
7024
|
+
400: {
|
|
7025
|
+
headers: {
|
|
7026
|
+
[name: string]: unknown;
|
|
7027
|
+
};
|
|
7028
|
+
content: {
|
|
7029
|
+
"application/json": components["schemas"]["BaxeError"];
|
|
7030
|
+
};
|
|
7031
|
+
};
|
|
7032
|
+
401: {
|
|
7033
|
+
headers: {
|
|
7034
|
+
[name: string]: unknown;
|
|
7035
|
+
};
|
|
7036
|
+
content: {
|
|
7037
|
+
"application/json": components["schemas"]["BaxeError"];
|
|
7038
|
+
};
|
|
7039
|
+
};
|
|
7040
|
+
403: {
|
|
7041
|
+
headers: {
|
|
7042
|
+
[name: string]: unknown;
|
|
7043
|
+
};
|
|
7044
|
+
content: {
|
|
7045
|
+
"application/json": components["schemas"]["BaxeError"];
|
|
7046
|
+
};
|
|
7047
|
+
};
|
|
7048
|
+
404: {
|
|
7049
|
+
headers: {
|
|
7050
|
+
[name: string]: unknown;
|
|
7051
|
+
};
|
|
7052
|
+
content: {
|
|
7053
|
+
"application/json": components["schemas"]["BaxeError"];
|
|
7054
|
+
};
|
|
7055
|
+
};
|
|
7056
|
+
500: {
|
|
7057
|
+
headers: {
|
|
7058
|
+
[name: string]: unknown;
|
|
7059
|
+
};
|
|
7060
|
+
content: {
|
|
7061
|
+
"application/json": components["schemas"]["BaxeError"];
|
|
7062
|
+
};
|
|
7063
|
+
};
|
|
7064
|
+
};
|
|
7065
|
+
}, {
|
|
7066
|
+
params: {
|
|
7067
|
+
path: {
|
|
7068
|
+
organization_id: string;
|
|
7069
|
+
kyb_result_id: string;
|
|
7070
|
+
recipient_index: number;
|
|
7071
|
+
};
|
|
7072
|
+
query: {
|
|
7073
|
+
sandbox: boolean;
|
|
7074
|
+
locale: "en" | "it" | "de" | "es" | "fr" | "hi" | "id" | "pt" | undefined;
|
|
7075
|
+
};
|
|
7076
|
+
};
|
|
7077
|
+
headers: {
|
|
7078
|
+
"x-api-key": string;
|
|
7079
|
+
};
|
|
7080
|
+
}, `${string}/${string}`>>;
|
|
4783
7081
|
|
|
4784
7082
|
interface ZypheErrorOptions extends ErrorOptions {
|
|
4785
7083
|
errorTag?: string;
|
|
@@ -5004,4 +7302,4 @@ interface WebhookVerifierOptions<T extends WebhookUnauthorizedHandler> {
|
|
|
5004
7302
|
exposeRawBody?: boolean;
|
|
5005
7303
|
}
|
|
5006
7304
|
|
|
5007
|
-
export { API_KEY_HEADER, type ApiKeyType, type BaxeError, type CompleteLivenessStepParams, type CreateVerificationSessionParams, DocumentType, type Environment, EnvironmentConfigs, Environments, type Flow, type FlowStep, type FlowStepType, type GetLivenessChallengeOptions, type GetLivenessChallengeResponse, type GetNextStepDetailsParams, type InitializeZypheFlowParams, type Locale, type ProcessDocumentSelectionOptions, type ProcessDocumentSelectionPayload, type ProcessDocumentSelectionRequestPayload, type ProcessDocumentSelectionResponse, type ProcessDvDocumentOptions, type ProcessDvDocumentPayload, type ProcessDvLivenessOptions, type ProcessDvLivenessParams, type ProcessIdentityDocumentPayload, type ProcessIdentityDocumentResponse, type ProcessLivenessPayload, type ProcessLivenessResponse, type SDKOptions, type SdkCreateVerificationRequestResponse, type SignatureComponents, type VerificationIdentifierCredential, type VerificationRequest, type VerificationRequestParams, type VerificationSessionRequestOptions, WebhookSignatureErrorCodes, WebhookSignatureErrorMessages, type WebhookVerifierOptions, ZypheError, bufferToHex, completeDocumentSelectionStep, completeDvStep, completeLivenessStep, constructVerificationSessionUrl, createVerificationSession, getDvResult, getFlowResult, getNextStepDetails, hexToBytes, listFlowResults, parseSignatureHeader, timingSafeEqual };
|
|
7305
|
+
export { API_KEY_HEADER, type ApiKeyType, type BaxeError, type CompleteLivenessStepParams, type CreateVerificationSessionParams, DocumentType, type Environment, EnvironmentConfigs, Environments, type Flow, type FlowStep, type FlowStepType, type GetLivenessChallengeOptions, type GetLivenessChallengeResponse, type GetNextStepDetailsParams, type InitializeZypheFlowParams, type Locale, type ProcessDocumentSelectionOptions, type ProcessDocumentSelectionPayload, type ProcessDocumentSelectionRequestPayload, type ProcessDocumentSelectionResponse, type ProcessDvDocumentOptions, type ProcessDvDocumentPayload, type ProcessDvLivenessOptions, type ProcessDvLivenessParams, type ProcessIdentityDocumentPayload, type ProcessIdentityDocumentResponse, type ProcessLivenessPayload, type ProcessLivenessResponse, type SDKOptions, type SdkCreateVerificationRequestResponse, type SignatureComponents, type VerificationIdentifierCredential, type VerificationRequest, type VerificationRequestParams, type VerificationSessionRequestOptions, WebhookSignatureErrorCodes, WebhookSignatureErrorMessages, type WebhookVerifierOptions, ZypheError, addKybDirectors, addKybUbos, bufferToHex, completeDocumentSelectionStep, completeDvStep, completeLivenessStep, constructVerificationSessionUrl, createVerificationSession, getDvResult, getFlowResult, getNextStepDetails, hexToBytes, listFlowResults, parseSignatureHeader, removeKybDirector, removeKybUbo, requestKybOnDemandDocument, screenAml, sendKybUboReminder, timingSafeEqual };
|