@zyphe-sdk/core 0.6.0 → 0.7.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/dist/index.d.ts +4334 -1806
- package/dist/index.js +282 -2
- package/dist/index.js.map +1 -1
- package/dist/openapi.d.ts +2071 -625
- package/dist/openapi.json +3148 -625
- package/package.json +1 -1
package/dist/openapi.d.ts
CHANGED
|
@@ -6,7 +6,11 @@ export interface paths {
|
|
|
6
6
|
path?: never;
|
|
7
7
|
cookie?: never;
|
|
8
8
|
};
|
|
9
|
-
/**
|
|
9
|
+
/**
|
|
10
|
+
* Get full flow details
|
|
11
|
+
* @description Returns a flow by its slug, with its steps and their settings, as the verification reads it
|
|
12
|
+
* before it starts. Send `zypheAccessSig` when the flow only accepts signed links.
|
|
13
|
+
*/
|
|
10
14
|
get: operations["get_full_flow_details"];
|
|
11
15
|
put?: never;
|
|
12
16
|
post?: never;
|
|
@@ -23,7 +27,11 @@ export interface paths {
|
|
|
23
27
|
path?: never;
|
|
24
28
|
cookie?: never;
|
|
25
29
|
};
|
|
26
|
-
/**
|
|
30
|
+
/**
|
|
31
|
+
* Get a verification request
|
|
32
|
+
* @description Returns one of the user's verification requests on a flow: its status, the step it belongs to,
|
|
33
|
+
* and the results recorded so far. Called with the user's session token.
|
|
34
|
+
*/
|
|
27
35
|
get: operations["get_verification_request"];
|
|
28
36
|
put?: never;
|
|
29
37
|
post?: never;
|
|
@@ -42,6 +50,13 @@ export interface paths {
|
|
|
42
50
|
};
|
|
43
51
|
get?: never;
|
|
44
52
|
put?: never;
|
|
53
|
+
/**
|
|
54
|
+
* Create a verification session
|
|
55
|
+
* @description Creates a verification request for a user on a flow and returns what the client needs to
|
|
56
|
+
* open it: the verification request, the session token and access signature for the hosted
|
|
57
|
+
* flow, and the slug of the step to start from. Identify the user by email, by an external ID,
|
|
58
|
+
* or by a wallet.
|
|
59
|
+
*/
|
|
45
60
|
post: operations["createVerificationRequest"];
|
|
46
61
|
delete?: never;
|
|
47
62
|
options?: never;
|
|
@@ -56,7 +71,12 @@ export interface paths {
|
|
|
56
71
|
path?: never;
|
|
57
72
|
cookie?: never;
|
|
58
73
|
};
|
|
59
|
-
/**
|
|
74
|
+
/**
|
|
75
|
+
* Get the next verification step
|
|
76
|
+
* @description Returns the next step the user has to complete on the flow, or `isCompleted: true` when there
|
|
77
|
+
* is none. Identify the user by email, by an external ID, or by a wallet. Use it to decide which
|
|
78
|
+
* step to present, then call the matching submit endpoint.
|
|
79
|
+
*/
|
|
60
80
|
get: operations["getNextStep"];
|
|
61
81
|
put?: never;
|
|
62
82
|
post?: never;
|
|
@@ -75,7 +95,11 @@ export interface paths {
|
|
|
75
95
|
};
|
|
76
96
|
get?: never;
|
|
77
97
|
put?: never;
|
|
78
|
-
/**
|
|
98
|
+
/**
|
|
99
|
+
* Submit identity document images
|
|
100
|
+
* @description Submits the front (and, for two-sided documents, back) images of an identity document for
|
|
101
|
+
* verification. Call this after `next-step` returns a document verification step.
|
|
102
|
+
*/
|
|
79
103
|
post: operations["sdk_process_dv_document"];
|
|
80
104
|
delete?: never;
|
|
81
105
|
options?: never;
|
|
@@ -90,7 +114,11 @@ export interface paths {
|
|
|
90
114
|
path?: never;
|
|
91
115
|
cookie?: never;
|
|
92
116
|
};
|
|
93
|
-
/**
|
|
117
|
+
/**
|
|
118
|
+
* Get the liveness challenge
|
|
119
|
+
* @description Returns the liveness challenge for the current verification request, with the upload URLs
|
|
120
|
+
* for the capture. Use it to present the liveness capture to the user.
|
|
121
|
+
*/
|
|
94
122
|
get: operations["sdk_get_liveness_challenge"];
|
|
95
123
|
put?: never;
|
|
96
124
|
post?: never;
|
|
@@ -109,7 +137,11 @@ export interface paths {
|
|
|
109
137
|
};
|
|
110
138
|
get?: never;
|
|
111
139
|
put?: never;
|
|
112
|
-
/**
|
|
140
|
+
/**
|
|
141
|
+
* Submit the liveness capture
|
|
142
|
+
* @description Submits the liveness capture (selfie or video) for processing. Call this after completing the
|
|
143
|
+
* challenge returned by `liveness-challenge`.
|
|
144
|
+
*/
|
|
113
145
|
post: operations["sdk_process_dv_liveness"];
|
|
114
146
|
delete?: never;
|
|
115
147
|
options?: never;
|
|
@@ -126,8 +158,12 @@ export interface paths {
|
|
|
126
158
|
};
|
|
127
159
|
get?: never;
|
|
128
160
|
put?: never;
|
|
129
|
-
/**
|
|
130
|
-
*
|
|
161
|
+
/**
|
|
162
|
+
* Submit the document selection
|
|
163
|
+
* @description Submits the user's document selection (country and document type) to complete the document
|
|
164
|
+
* selection step. Call this after `next-step` returns a `document-selection` step, then call
|
|
165
|
+
* `next-step` again to proceed.
|
|
166
|
+
*/
|
|
131
167
|
post: operations["sdk_process_dv_selection"];
|
|
132
168
|
delete?: never;
|
|
133
169
|
options?: never;
|
|
@@ -142,7 +178,11 @@ export interface paths {
|
|
|
142
178
|
path?: never;
|
|
143
179
|
cookie?: never;
|
|
144
180
|
};
|
|
145
|
-
/**
|
|
181
|
+
/**
|
|
182
|
+
* Get completed verification requests
|
|
183
|
+
* @description Lists the verification requests the user has completed on a flow, one per completed step.
|
|
184
|
+
* Called with the user's session token.
|
|
185
|
+
*/
|
|
146
186
|
get: operations["get_completed_verification_requests"];
|
|
147
187
|
put?: never;
|
|
148
188
|
post?: never;
|
|
@@ -159,7 +199,10 @@ export interface paths {
|
|
|
159
199
|
path?: never;
|
|
160
200
|
cookie?: never;
|
|
161
201
|
};
|
|
162
|
-
/**
|
|
202
|
+
/**
|
|
203
|
+
* List flow results
|
|
204
|
+
* @description Lists the flow results of one flow, identified by its slug, with pagination and filters.
|
|
205
|
+
*/
|
|
163
206
|
get: operations["listFlowResults"];
|
|
164
207
|
put?: never;
|
|
165
208
|
post?: never;
|
|
@@ -169,7 +212,7 @@ export interface paths {
|
|
|
169
212
|
patch?: never;
|
|
170
213
|
trace?: never;
|
|
171
214
|
};
|
|
172
|
-
"/sdk/organizations/{organization_id}/kyb/{
|
|
215
|
+
"/sdk/organizations/{organization_id}/kyb-cases/{case_id}/reminders/ubo/{recipient_index}": {
|
|
173
216
|
parameters: {
|
|
174
217
|
query?: never;
|
|
175
218
|
header?: never;
|
|
@@ -180,9 +223,10 @@ export interface paths {
|
|
|
180
223
|
put?: never;
|
|
181
224
|
/**
|
|
182
225
|
* Send a UBO KYC reminder
|
|
183
|
-
* @description Sends
|
|
184
|
-
*
|
|
185
|
-
*
|
|
226
|
+
* @description Sends, or sends again, the email that invites one of the case's beneficial owners to complete
|
|
227
|
+
* their identity verification (KYC). The owner is given by their position in the `ubos` list that
|
|
228
|
+
* "Read a KYB case's officers" returns, starting from 0. Only an owner with an email can be
|
|
229
|
+
* invited. Useful when the flow does not send these invitations automatically.
|
|
186
230
|
*/
|
|
187
231
|
post: operations["sendUboKycReminder"];
|
|
188
232
|
delete?: never;
|
|
@@ -192,6 +236,119 @@ export interface paths {
|
|
|
192
236
|
trace?: never;
|
|
193
237
|
};
|
|
194
238
|
"/sdk/organizations/{organization_id}/kyb/{kyb_result_id}/ubos": {
|
|
239
|
+
parameters: {
|
|
240
|
+
query?: never;
|
|
241
|
+
header?: never;
|
|
242
|
+
path?: never;
|
|
243
|
+
cookie?: never;
|
|
244
|
+
};
|
|
245
|
+
get?: never;
|
|
246
|
+
put?: never;
|
|
247
|
+
/**
|
|
248
|
+
* Add UBOs to a KYB case (deprecated)
|
|
249
|
+
* @deprecated
|
|
250
|
+
* @description **Deprecated.** Use `POST /sdk/organizations/{organization_id}/kyb-cases/{case_id}/ubos` instead. It takes the same body, and answers with the case's UBOs and directors after the change rather than the whole KYB result.
|
|
251
|
+
*
|
|
252
|
+
* Adds one or more ultimate beneficial owners to an existing KYB case and answers with the KYB result.
|
|
253
|
+
*/
|
|
254
|
+
post: operations["addKybUbosDeprecated"];
|
|
255
|
+
delete?: never;
|
|
256
|
+
options?: never;
|
|
257
|
+
head?: never;
|
|
258
|
+
patch?: never;
|
|
259
|
+
trace?: never;
|
|
260
|
+
};
|
|
261
|
+
"/sdk/organizations/{organization_id}/kyb/{kyb_result_id}/ubos/{person_id}": {
|
|
262
|
+
parameters: {
|
|
263
|
+
query?: never;
|
|
264
|
+
header?: never;
|
|
265
|
+
path?: never;
|
|
266
|
+
cookie?: never;
|
|
267
|
+
};
|
|
268
|
+
get?: never;
|
|
269
|
+
put?: never;
|
|
270
|
+
post?: never;
|
|
271
|
+
/**
|
|
272
|
+
* Remove a UBO from a KYB case (deprecated)
|
|
273
|
+
* @deprecated
|
|
274
|
+
* @description **Deprecated.** Use `DELETE /sdk/organizations/{organization_id}/kyb-cases/{case_id}/ubos/{person_id}` instead. It takes the same body, and answers with the case's UBOs and directors after the change rather than the whole KYB result.
|
|
275
|
+
*
|
|
276
|
+
* Removes an ultimate beneficial owner from a KYB case by their stable id and answers with the KYB result.
|
|
277
|
+
*/
|
|
278
|
+
delete: operations["removeKybUboDeprecated"];
|
|
279
|
+
options?: never;
|
|
280
|
+
head?: never;
|
|
281
|
+
patch?: never;
|
|
282
|
+
trace?: never;
|
|
283
|
+
};
|
|
284
|
+
"/sdk/organizations/{organization_id}/kyb/{kyb_result_id}/directors": {
|
|
285
|
+
parameters: {
|
|
286
|
+
query?: never;
|
|
287
|
+
header?: never;
|
|
288
|
+
path?: never;
|
|
289
|
+
cookie?: never;
|
|
290
|
+
};
|
|
291
|
+
get?: never;
|
|
292
|
+
put?: never;
|
|
293
|
+
/**
|
|
294
|
+
* Add directors to a KYB case (deprecated)
|
|
295
|
+
* @deprecated
|
|
296
|
+
* @description **Deprecated.** Use `POST /sdk/organizations/{organization_id}/kyb-cases/{case_id}/directors` instead. It takes the same body, and answers with the case's UBOs and directors after the change rather than the whole KYB result.
|
|
297
|
+
*
|
|
298
|
+
* Adds one or more directors to an existing KYB case and answers with the KYB result.
|
|
299
|
+
*/
|
|
300
|
+
post: operations["addKybDirectorsDeprecated"];
|
|
301
|
+
delete?: never;
|
|
302
|
+
options?: never;
|
|
303
|
+
head?: never;
|
|
304
|
+
patch?: never;
|
|
305
|
+
trace?: never;
|
|
306
|
+
};
|
|
307
|
+
"/sdk/organizations/{organization_id}/kyb/{kyb_result_id}/directors/{person_id}": {
|
|
308
|
+
parameters: {
|
|
309
|
+
query?: never;
|
|
310
|
+
header?: never;
|
|
311
|
+
path?: never;
|
|
312
|
+
cookie?: never;
|
|
313
|
+
};
|
|
314
|
+
get?: never;
|
|
315
|
+
put?: never;
|
|
316
|
+
post?: never;
|
|
317
|
+
/**
|
|
318
|
+
* Remove a director from a KYB case (deprecated)
|
|
319
|
+
* @deprecated
|
|
320
|
+
* @description **Deprecated.** Use `DELETE /sdk/organizations/{organization_id}/kyb-cases/{case_id}/directors/{person_id}` instead. It takes the same body, and answers with the case's UBOs and directors after the change rather than the whole KYB result.
|
|
321
|
+
*
|
|
322
|
+
* Removes a director from a KYB case by their stable id and answers with the KYB result.
|
|
323
|
+
*/
|
|
324
|
+
delete: operations["removeKybDirectorDeprecated"];
|
|
325
|
+
options?: never;
|
|
326
|
+
head?: never;
|
|
327
|
+
patch?: never;
|
|
328
|
+
trace?: never;
|
|
329
|
+
};
|
|
330
|
+
"/sdk/organizations/{organization_id}/kyb-cases/{case_id}/officers": {
|
|
331
|
+
parameters: {
|
|
332
|
+
query?: never;
|
|
333
|
+
header?: never;
|
|
334
|
+
path?: never;
|
|
335
|
+
cookie?: never;
|
|
336
|
+
};
|
|
337
|
+
/**
|
|
338
|
+
* Read a KYB case's officers
|
|
339
|
+
* @description The ultimate beneficial owners and the directors of the case, each with the stable id the
|
|
340
|
+
* officer routes address them by.
|
|
341
|
+
*/
|
|
342
|
+
get: operations["getKybCaseOfficers"];
|
|
343
|
+
put?: never;
|
|
344
|
+
post?: never;
|
|
345
|
+
delete?: never;
|
|
346
|
+
options?: never;
|
|
347
|
+
head?: never;
|
|
348
|
+
patch?: never;
|
|
349
|
+
trace?: never;
|
|
350
|
+
};
|
|
351
|
+
"/sdk/organizations/{organization_id}/kyb-cases/{case_id}/ubos": {
|
|
195
352
|
parameters: {
|
|
196
353
|
query?: never;
|
|
197
354
|
header?: never;
|
|
@@ -202,8 +359,7 @@ export interface paths {
|
|
|
202
359
|
put?: never;
|
|
203
360
|
/**
|
|
204
361
|
* Add UBOs to a KYB case
|
|
205
|
-
* @description Adds one or more ultimate beneficial owners to an existing KYB case and
|
|
206
|
-
* updated KYB result.
|
|
362
|
+
* @description Adds one or more ultimate beneficial owners to an existing KYB case and answers with the case's officers as they stand after the change.
|
|
207
363
|
*/
|
|
208
364
|
post: operations["addKybUbos"];
|
|
209
365
|
delete?: never;
|
|
@@ -212,7 +368,7 @@ export interface paths {
|
|
|
212
368
|
patch?: never;
|
|
213
369
|
trace?: never;
|
|
214
370
|
};
|
|
215
|
-
"/sdk/organizations/{organization_id}/kyb/{
|
|
371
|
+
"/sdk/organizations/{organization_id}/kyb-cases/{case_id}/ubos/{person_id}": {
|
|
216
372
|
parameters: {
|
|
217
373
|
query?: never;
|
|
218
374
|
header?: never;
|
|
@@ -224,8 +380,7 @@ export interface paths {
|
|
|
224
380
|
post?: never;
|
|
225
381
|
/**
|
|
226
382
|
* Remove a UBO from a KYB case
|
|
227
|
-
* @description Removes an ultimate beneficial owner from a KYB case by their stable id and
|
|
228
|
-
* updated KYB result.
|
|
383
|
+
* @description Removes an ultimate beneficial owner from a KYB case by their stable id and answers with the case's officers as they stand after the change.
|
|
229
384
|
*/
|
|
230
385
|
delete: operations["removeKybUbo"];
|
|
231
386
|
options?: never;
|
|
@@ -233,7 +388,7 @@ export interface paths {
|
|
|
233
388
|
patch?: never;
|
|
234
389
|
trace?: never;
|
|
235
390
|
};
|
|
236
|
-
"/sdk/organizations/{organization_id}/kyb/{
|
|
391
|
+
"/sdk/organizations/{organization_id}/kyb-cases/{case_id}/directors": {
|
|
237
392
|
parameters: {
|
|
238
393
|
query?: never;
|
|
239
394
|
header?: never;
|
|
@@ -244,7 +399,7 @@ export interface paths {
|
|
|
244
399
|
put?: never;
|
|
245
400
|
/**
|
|
246
401
|
* Add directors to a KYB case
|
|
247
|
-
* @description Adds one or more directors to an existing KYB case and
|
|
402
|
+
* @description Adds one or more directors to an existing KYB case and answers with the case's officers as they stand after the change.
|
|
248
403
|
*/
|
|
249
404
|
post: operations["addKybDirectors"];
|
|
250
405
|
delete?: never;
|
|
@@ -253,7 +408,7 @@ export interface paths {
|
|
|
253
408
|
patch?: never;
|
|
254
409
|
trace?: never;
|
|
255
410
|
};
|
|
256
|
-
"/sdk/organizations/{organization_id}/kyb/{
|
|
411
|
+
"/sdk/organizations/{organization_id}/kyb-cases/{case_id}/directors/{person_id}": {
|
|
257
412
|
parameters: {
|
|
258
413
|
query?: never;
|
|
259
414
|
header?: never;
|
|
@@ -265,7 +420,7 @@ export interface paths {
|
|
|
265
420
|
post?: never;
|
|
266
421
|
/**
|
|
267
422
|
* Remove a director from a KYB case
|
|
268
|
-
* @description Removes a director from a KYB case by their stable id and
|
|
423
|
+
* @description Removes a director from a KYB case by their stable id and answers with the case's officers as they stand after the change.
|
|
269
424
|
*/
|
|
270
425
|
delete: operations["removeKybDirector"];
|
|
271
426
|
options?: never;
|
|
@@ -273,7 +428,56 @@ export interface paths {
|
|
|
273
428
|
patch?: never;
|
|
274
429
|
trace?: never;
|
|
275
430
|
};
|
|
276
|
-
"/sdk/organizations/{organization_id}/kyb/{kyb_result_id}/
|
|
431
|
+
"/sdk/organizations/{organization_id}/kyb/{kyb_result_id}/approve": {
|
|
432
|
+
parameters: {
|
|
433
|
+
query?: never;
|
|
434
|
+
header?: never;
|
|
435
|
+
path?: never;
|
|
436
|
+
cookie?: never;
|
|
437
|
+
};
|
|
438
|
+
get?: never;
|
|
439
|
+
put?: never;
|
|
440
|
+
/**
|
|
441
|
+
* Approve a KYB result (deprecated)
|
|
442
|
+
* @deprecated
|
|
443
|
+
* @description **Deprecated.** Use `POST /sdk/organizations/{organization_id}/kyb-cases/{case_id}/decision` instead. Send `outcome: APPROVED`, with `reason`, `reasonCode` and `dueDiligenceLevel` as here. It answers with the decision rather than the KYB result.
|
|
444
|
+
*
|
|
445
|
+
* Approves the company's KYB case. The decision is recorded as taken with your API key. The case
|
|
446
|
+
* must have completed its steps and have no unresolved screening match; otherwise the request
|
|
447
|
+
* fails with `400` and lists what is missing. An approved case cannot be decided again.
|
|
448
|
+
*/
|
|
449
|
+
post: operations["approveKybResult"];
|
|
450
|
+
delete?: never;
|
|
451
|
+
options?: never;
|
|
452
|
+
head?: never;
|
|
453
|
+
patch?: never;
|
|
454
|
+
trace?: never;
|
|
455
|
+
};
|
|
456
|
+
"/sdk/organizations/{organization_id}/kyb/{kyb_result_id}/reject": {
|
|
457
|
+
parameters: {
|
|
458
|
+
query?: never;
|
|
459
|
+
header?: never;
|
|
460
|
+
path?: never;
|
|
461
|
+
cookie?: never;
|
|
462
|
+
};
|
|
463
|
+
get?: never;
|
|
464
|
+
put?: never;
|
|
465
|
+
/**
|
|
466
|
+
* Reject a KYB result (deprecated)
|
|
467
|
+
* @deprecated
|
|
468
|
+
* @description **Deprecated.** Use `POST /sdk/organizations/{organization_id}/kyb-cases/{case_id}/decision` instead. Send `outcome: REJECTED` with the `reason`. It answers with the decision rather than the KYB result.
|
|
469
|
+
*
|
|
470
|
+
* Rejects the company's KYB case with the reason you send. The decision is recorded as taken with
|
|
471
|
+
* your API key. A rejected case cannot be decided again.
|
|
472
|
+
*/
|
|
473
|
+
post: operations["rejectKybResult"];
|
|
474
|
+
delete?: never;
|
|
475
|
+
options?: never;
|
|
476
|
+
head?: never;
|
|
477
|
+
patch?: never;
|
|
478
|
+
trace?: never;
|
|
479
|
+
};
|
|
480
|
+
"/sdk/organizations/{organization_id}/kyb-cases/{case_id}/document-requests/on-demand": {
|
|
277
481
|
parameters: {
|
|
278
482
|
query?: never;
|
|
279
483
|
header?: never;
|
|
@@ -284,8 +488,9 @@ export interface paths {
|
|
|
284
488
|
put?: never;
|
|
285
489
|
/**
|
|
286
490
|
* Request a KYB document
|
|
287
|
-
* @description
|
|
288
|
-
* document
|
|
491
|
+
* @description Asks the business for one more document on a KYB case and returns the request. The document
|
|
492
|
+
* must be one the flow marks as on demand; a document the flow already requires upfront is
|
|
493
|
+
* refused. The business is notified by email.
|
|
289
494
|
*/
|
|
290
495
|
post: operations["requestKybDocument"];
|
|
291
496
|
delete?: never;
|
|
@@ -294,6 +499,55 @@ export interface paths {
|
|
|
294
499
|
patch?: never;
|
|
295
500
|
trace?: never;
|
|
296
501
|
};
|
|
502
|
+
"/sdk/organizations/{organization_id}/kyb-cases/{case_id}": {
|
|
503
|
+
parameters: {
|
|
504
|
+
query?: never;
|
|
505
|
+
header?: never;
|
|
506
|
+
path?: never;
|
|
507
|
+
cookie?: never;
|
|
508
|
+
};
|
|
509
|
+
/**
|
|
510
|
+
* Read a KYB case
|
|
511
|
+
* @description Returns a KYB case as your dashboard shows it: its status, due-diligence level and risk rating,
|
|
512
|
+
* who it is assigned to, what it is waiting on, and its decision history. The case ID is the same
|
|
513
|
+
* as the KYB result ID.
|
|
514
|
+
*/
|
|
515
|
+
get: operations["getKybCase"];
|
|
516
|
+
put?: never;
|
|
517
|
+
post?: never;
|
|
518
|
+
delete?: never;
|
|
519
|
+
options?: never;
|
|
520
|
+
head?: never;
|
|
521
|
+
patch?: never;
|
|
522
|
+
trace?: never;
|
|
523
|
+
};
|
|
524
|
+
"/sdk/organizations/{organization_id}/kyb-cases/{case_id}/decision": {
|
|
525
|
+
parameters: {
|
|
526
|
+
query?: never;
|
|
527
|
+
header?: never;
|
|
528
|
+
path?: never;
|
|
529
|
+
cookie?: never;
|
|
530
|
+
};
|
|
531
|
+
get?: never;
|
|
532
|
+
put?: never;
|
|
533
|
+
/**
|
|
534
|
+
* Decide a KYB case
|
|
535
|
+
* @description Approves or rejects a KYB case. The decision is recorded as taken with your API key, and is
|
|
536
|
+
* final: a decided case cannot be decided again.
|
|
537
|
+
*
|
|
538
|
+
* - An approval needs the case to be ready for review (`READY_FOR_REVIEW`).
|
|
539
|
+
* - A rejection needs a `reason`.
|
|
540
|
+
* - Answers `200` with the decision. When your organization's approval rules require a second
|
|
541
|
+
* signature, it answers `202` instead: the decision waits until a team member with the required
|
|
542
|
+
* role confirms it in the dashboard.
|
|
543
|
+
*/
|
|
544
|
+
post: operations["decideKybCase"];
|
|
545
|
+
delete?: never;
|
|
546
|
+
options?: never;
|
|
547
|
+
head?: never;
|
|
548
|
+
patch?: never;
|
|
549
|
+
trace?: never;
|
|
550
|
+
};
|
|
297
551
|
"/sdk/organizations/{organization_id}/flow-results/{flow_result_id}/flow/{flow_slug}/details": {
|
|
298
552
|
parameters: {
|
|
299
553
|
query?: never;
|
|
@@ -301,7 +555,12 @@ export interface paths {
|
|
|
301
555
|
path?: never;
|
|
302
556
|
cookie?: never;
|
|
303
557
|
};
|
|
304
|
-
/**
|
|
558
|
+
/**
|
|
559
|
+
* Get flow result details
|
|
560
|
+
* @description Returns one flow result: who it belongs to, its status, and the result of every step the user
|
|
561
|
+
* completed (document verification, liveness, proof of address, screening, forms, KYB and the
|
|
562
|
+
* others). The per-step result endpoints return each step's full detail.
|
|
563
|
+
*/
|
|
305
564
|
get: operations["getFlowResultDetails"];
|
|
306
565
|
put?: never;
|
|
307
566
|
post?: never;
|
|
@@ -318,7 +577,11 @@ export interface paths {
|
|
|
318
577
|
path?: never;
|
|
319
578
|
cookie?: never;
|
|
320
579
|
};
|
|
321
|
-
/**
|
|
580
|
+
/**
|
|
581
|
+
* Get document verification result details
|
|
582
|
+
* @description Returns the full result of one document verification step, with the document images and the
|
|
583
|
+
* data read from the document.
|
|
584
|
+
*/
|
|
322
585
|
get: operations["getDocumentVerificationResultDetails"];
|
|
323
586
|
put?: never;
|
|
324
587
|
post?: never;
|
|
@@ -335,7 +598,11 @@ export interface paths {
|
|
|
335
598
|
path?: never;
|
|
336
599
|
cookie?: never;
|
|
337
600
|
};
|
|
338
|
-
/**
|
|
601
|
+
/**
|
|
602
|
+
* Get proof of address result details
|
|
603
|
+
* @description Returns the full result of one proof of address step, with the address document the user
|
|
604
|
+
* uploaded and the data read from it.
|
|
605
|
+
*/
|
|
339
606
|
get: operations["getProofOfAddressResultDetails"];
|
|
340
607
|
put?: never;
|
|
341
608
|
post?: never;
|
|
@@ -352,7 +619,11 @@ export interface paths {
|
|
|
352
619
|
path?: never;
|
|
353
620
|
cookie?: never;
|
|
354
621
|
};
|
|
355
|
-
/**
|
|
622
|
+
/**
|
|
623
|
+
* Get wallet result details
|
|
624
|
+
* @description Returns the result of one wallet step: the wallet address and chain the user proved they
|
|
625
|
+
* control, the signed message, and the step's status.
|
|
626
|
+
*/
|
|
356
627
|
get: operations["getWalletResultDetails"];
|
|
357
628
|
put?: never;
|
|
358
629
|
post?: never;
|
|
@@ -369,7 +640,10 @@ export interface paths {
|
|
|
369
640
|
path?: never;
|
|
370
641
|
cookie?: never;
|
|
371
642
|
};
|
|
372
|
-
/**
|
|
643
|
+
/**
|
|
644
|
+
* Get phone result details
|
|
645
|
+
* @description Returns the result of one phone step: the phone number the user verified and the step's status.
|
|
646
|
+
*/
|
|
373
647
|
get: operations["getPhoneResultDetails"];
|
|
374
648
|
put?: never;
|
|
375
649
|
post?: never;
|
|
@@ -386,7 +660,11 @@ export interface paths {
|
|
|
386
660
|
path?: never;
|
|
387
661
|
cookie?: never;
|
|
388
662
|
};
|
|
389
|
-
/**
|
|
663
|
+
/**
|
|
664
|
+
* Get form result details
|
|
665
|
+
* @description Returns the answers the user gave in one form step, section by section, with the step's status
|
|
666
|
+
* and any risk tags the answers assigned.
|
|
667
|
+
*/
|
|
390
668
|
get: operations["getFormResultDetails"];
|
|
391
669
|
put?: never;
|
|
392
670
|
post?: never;
|
|
@@ -403,7 +681,10 @@ export interface paths {
|
|
|
403
681
|
path?: never;
|
|
404
682
|
cookie?: never;
|
|
405
683
|
};
|
|
406
|
-
/**
|
|
684
|
+
/**
|
|
685
|
+
* Get flow result details (deprecated)
|
|
686
|
+
* @description **Deprecated.** Use "Get flow result details", which also takes the flow slug.
|
|
687
|
+
*/
|
|
407
688
|
get: operations["getFlowResultDetailsDeprecated"];
|
|
408
689
|
put?: never;
|
|
409
690
|
post?: never;
|
|
@@ -420,7 +701,10 @@ export interface paths {
|
|
|
420
701
|
path?: never;
|
|
421
702
|
cookie?: never;
|
|
422
703
|
};
|
|
423
|
-
/**
|
|
704
|
+
/**
|
|
705
|
+
* Get document verification result details (deprecated)
|
|
706
|
+
* @description **Deprecated.** Use "Get document verification result details", which also takes the flow slug.
|
|
707
|
+
*/
|
|
424
708
|
get: operations["getDocumentVerificationResultDetailsDeprecated"];
|
|
425
709
|
put?: never;
|
|
426
710
|
post?: never;
|
|
@@ -437,7 +721,10 @@ export interface paths {
|
|
|
437
721
|
path?: never;
|
|
438
722
|
cookie?: never;
|
|
439
723
|
};
|
|
440
|
-
/**
|
|
724
|
+
/**
|
|
725
|
+
* Get proof of address result details (deprecated)
|
|
726
|
+
* @description **Deprecated.** Use "Get proof of address result details", which also takes the flow slug.
|
|
727
|
+
*/
|
|
441
728
|
get: operations["getProofOfAddressResultDetailsDeprecated"];
|
|
442
729
|
put?: never;
|
|
443
730
|
post?: never;
|
|
@@ -457,10 +744,10 @@ export interface paths {
|
|
|
457
744
|
get?: never;
|
|
458
745
|
put?: never;
|
|
459
746
|
/**
|
|
460
|
-
*
|
|
461
|
-
* @description
|
|
462
|
-
*
|
|
463
|
-
*
|
|
747
|
+
* Screen a person or company (AML)
|
|
748
|
+
* @description Screens a person or a company against sanctions, politically exposed persons (PEP) and other
|
|
749
|
+
* watchlists, and returns the matching entries in the format named by `format`. The result is
|
|
750
|
+
* returned as found: no risk score is computed and nothing is stored. Each call is charged.
|
|
464
751
|
*/
|
|
465
752
|
post: operations["sdkScreenAml"];
|
|
466
753
|
delete?: never;
|
|
@@ -477,10 +764,10 @@ export interface paths {
|
|
|
477
764
|
cookie?: never;
|
|
478
765
|
};
|
|
479
766
|
/**
|
|
480
|
-
*
|
|
481
|
-
* @description
|
|
482
|
-
*
|
|
483
|
-
*
|
|
767
|
+
* List the top-up credit packs
|
|
768
|
+
* @description Lists the one-time credit packs the organization can purchase, with their price, the
|
|
769
|
+
* number of credits granted and any products they unlock. The catalog may be cached for up
|
|
770
|
+
* to 30 minutes.
|
|
484
771
|
*/
|
|
485
772
|
get: operations["get_topup_packs"];
|
|
486
773
|
put?: never;
|
|
@@ -501,12 +788,10 @@ export interface paths {
|
|
|
501
788
|
get?: never;
|
|
502
789
|
put?: never;
|
|
503
790
|
/**
|
|
504
|
-
* Create a
|
|
505
|
-
* @description The `
|
|
506
|
-
* the
|
|
507
|
-
*
|
|
508
|
-
* handled by the `checkout.session.completed` Stripe webhook, keyed off the session
|
|
509
|
-
* metadata stamped here.
|
|
791
|
+
* Create a checkout session for a credit top-up
|
|
792
|
+
* @description The `priceId` must be one of the packs returned by `GET .../billing/topup-packs`. Redirect
|
|
793
|
+
* the user to the returned checkout URL; the credits are added to the organization once the
|
|
794
|
+
* payment completes.
|
|
510
795
|
*/
|
|
511
796
|
post: operations["create_topup_checkout"];
|
|
512
797
|
delete?: never;
|
|
@@ -525,11 +810,11 @@ export interface paths {
|
|
|
525
810
|
get?: never;
|
|
526
811
|
put?: never;
|
|
527
812
|
/**
|
|
528
|
-
*
|
|
529
|
-
* @description
|
|
530
|
-
*
|
|
531
|
-
*
|
|
532
|
-
*
|
|
813
|
+
* Submit a transaction for monitoring
|
|
814
|
+
* @description Records a payment event, checks it against your organization's monitoring rules, and answers
|
|
815
|
+
* right away with the decision (`ALLOW`, `REVIEW` or `BLOCK`), the rules that matched and any
|
|
816
|
+
* alerts raised. Sending the same `externalId` again returns the first answer without checking or
|
|
817
|
+
* charging the transaction twice, so it is safe to retry. Each new transaction is charged.
|
|
533
818
|
*/
|
|
534
819
|
post: operations["sdkIngestTransaction"];
|
|
535
820
|
delete?: never;
|
|
@@ -545,7 +830,11 @@ export interface paths {
|
|
|
545
830
|
path?: never;
|
|
546
831
|
cookie?: never;
|
|
547
832
|
};
|
|
548
|
-
/**
|
|
833
|
+
/**
|
|
834
|
+
* Get a monitored transaction
|
|
835
|
+
* @description Returns a transaction submitted for monitoring: its payment status, the decision and risk
|
|
836
|
+
* probability, the rules that matched, and any alerts it raised.
|
|
837
|
+
*/
|
|
549
838
|
get: operations["sdkGetTransaction"];
|
|
550
839
|
put?: never;
|
|
551
840
|
post?: never;
|
|
@@ -553,12 +842,10 @@ export interface paths {
|
|
|
553
842
|
options?: never;
|
|
554
843
|
head?: never;
|
|
555
844
|
/**
|
|
556
|
-
* Update a transaction's payment
|
|
557
|
-
* @description
|
|
558
|
-
* A
|
|
559
|
-
*
|
|
560
|
-
* counter no-op because ingestion already counted it. Retrying the same `PATCH` is safe and is the
|
|
561
|
-
* supported recovery if the decrement could not be buffered.
|
|
845
|
+
* Update a transaction's payment status
|
|
846
|
+
* @description Sets the payment status of a monitored transaction: `PENDING`, `SETTLED`, `FAILED`, `CANCELED`
|
|
847
|
+
* or `REVERSED`. A transaction that failed, was canceled or was reversed stops counting towards the
|
|
848
|
+
* amount and frequency limits of your rules. Sending the same update again is safe.
|
|
562
849
|
*/
|
|
563
850
|
patch: operations["sdkUpdateTransactionStatus"];
|
|
564
851
|
trace?: never;
|
|
@@ -571,18 +858,20 @@ export interface paths {
|
|
|
571
858
|
cookie?: never;
|
|
572
859
|
};
|
|
573
860
|
/**
|
|
574
|
-
* List
|
|
575
|
-
* @description
|
|
576
|
-
*
|
|
861
|
+
* List TIN checks
|
|
862
|
+
* @description Lists your organization's TIN checks, newest first, whether they were run from the dashboard,
|
|
863
|
+
* with an API key, or on a KYB submission. Each check comes with its results, and the TIN is
|
|
864
|
+
* masked to its last four digits. Filter by `flowResultId` to get the checks of a KYB result.
|
|
577
865
|
*/
|
|
578
866
|
get: operations["sdkListTinChecks"];
|
|
579
867
|
put?: never;
|
|
580
868
|
/**
|
|
581
|
-
*
|
|
582
|
-
* @description
|
|
583
|
-
*
|
|
584
|
-
*
|
|
585
|
-
*
|
|
869
|
+
* Run a TIN check
|
|
870
|
+
* @description Checks whether a US Taxpayer Identification Number (SSN or EIN) and a name match IRS records.
|
|
871
|
+
* The same check can also validate a US mailing address and look up a FATCA GIIN. A check that
|
|
872
|
+
* returns an answer is charged in credits ("Get the price of a TIN check" tells how many); a TIN
|
|
873
|
+
* refused as invalid or an unavailable check costs nothing. In sandbox, checks are free and
|
|
874
|
+
* answered from sample data, and `mock` lets you choose the answer.
|
|
586
875
|
*/
|
|
587
876
|
post: operations["sdkRunTinCheck"];
|
|
588
877
|
delete?: never;
|
|
@@ -632,6 +921,57 @@ export interface paths {
|
|
|
632
921
|
patch?: never;
|
|
633
922
|
trace?: never;
|
|
634
923
|
};
|
|
924
|
+
"/sdk/organizations/{organization_id}/kyb/{kyb_result_id}/reminders/ubo/{recipient_index}": {
|
|
925
|
+
parameters: {
|
|
926
|
+
query?: never;
|
|
927
|
+
header?: never;
|
|
928
|
+
path?: never;
|
|
929
|
+
cookie?: never;
|
|
930
|
+
};
|
|
931
|
+
get?: never;
|
|
932
|
+
put?: never;
|
|
933
|
+
/**
|
|
934
|
+
* Send a UBO KYC reminder (deprecated)
|
|
935
|
+
* @deprecated
|
|
936
|
+
* @description **Deprecated.** Use `POST /sdk/organizations/{organization_id}/kyb-cases/{case_id}/reminders/ubo/{recipient_index}` instead: it does the same, addressed by the case ID.
|
|
937
|
+
*
|
|
938
|
+
* Sends, or sends again, the email that invites one of the case's beneficial owners to complete
|
|
939
|
+
* their identity verification (KYC). The owner is given by their position in the `ubos` list that
|
|
940
|
+
* "Read a KYB case's officers" returns, starting from 0. Only an owner with an email can be
|
|
941
|
+
* invited. Useful when the flow does not send these invitations automatically.
|
|
942
|
+
*/
|
|
943
|
+
post: operations["sendUboKycReminderDeprecated"];
|
|
944
|
+
delete?: never;
|
|
945
|
+
options?: never;
|
|
946
|
+
head?: never;
|
|
947
|
+
patch?: never;
|
|
948
|
+
trace?: never;
|
|
949
|
+
};
|
|
950
|
+
"/sdk/organizations/{organization_id}/kyb/{kyb_result_id}/document-requests/on-demand": {
|
|
951
|
+
parameters: {
|
|
952
|
+
query?: never;
|
|
953
|
+
header?: never;
|
|
954
|
+
path?: never;
|
|
955
|
+
cookie?: never;
|
|
956
|
+
};
|
|
957
|
+
get?: never;
|
|
958
|
+
put?: never;
|
|
959
|
+
/**
|
|
960
|
+
* Request a KYB document (deprecated)
|
|
961
|
+
* @deprecated
|
|
962
|
+
* @description **Deprecated.** Use `POST /sdk/organizations/{organization_id}/kyb-cases/{case_id}/document-requests/on-demand` instead: it does the same, addressed by the case ID.
|
|
963
|
+
*
|
|
964
|
+
* Asks the business for one more document on a KYB case and returns the request. The document
|
|
965
|
+
* must be one the flow marks as on demand; a document the flow already requires upfront is
|
|
966
|
+
* refused. The business is notified by email.
|
|
967
|
+
*/
|
|
968
|
+
post: operations["requestKybDocumentDeprecated"];
|
|
969
|
+
delete?: never;
|
|
970
|
+
options?: never;
|
|
971
|
+
head?: never;
|
|
972
|
+
patch?: never;
|
|
973
|
+
trace?: never;
|
|
974
|
+
};
|
|
635
975
|
}
|
|
636
976
|
export type webhooks = Record<string, never>;
|
|
637
977
|
export interface components {
|
|
@@ -693,7 +1033,7 @@ export interface components {
|
|
|
693
1033
|
gender: string;
|
|
694
1034
|
lastName: string;
|
|
695
1035
|
};
|
|
696
|
-
/** @description Request body for `POST
|
|
1036
|
+
/** @description Request body for `POST.../kyb-cases/{case_id}/ubos` and `.../directors`. */
|
|
697
1037
|
AddKybPersonsPayload: {
|
|
698
1038
|
persons: components["schemas"]["AddKybPersonInput"][];
|
|
699
1039
|
};
|
|
@@ -708,13 +1048,14 @@ export interface components {
|
|
|
708
1048
|
street: string;
|
|
709
1049
|
};
|
|
710
1050
|
/**
|
|
711
|
-
* @description
|
|
712
|
-
*
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
*
|
|
717
|
-
*
|
|
1051
|
+
* @description Why a screening carries no adverse media.
|
|
1052
|
+
* @enum {string}
|
|
1053
|
+
*/
|
|
1054
|
+
AdverseMediaAbsence: "NO_PROVIDER" | "PROVIDER_UNAVAILABLE" | "NOT_PERFORMED";
|
|
1055
|
+
/**
|
|
1056
|
+
* @description The adverse-media screening source used for a screening. Your organization's own selection
|
|
1057
|
+
* applies when set, otherwise the platform default. `NONE`, the default, means no adverse-media
|
|
1058
|
+
* screening is performed: it is an opt-in feature.
|
|
718
1059
|
* @enum {string}
|
|
719
1060
|
*/
|
|
720
1061
|
AdverseMediaProviderKind: "NONE" | "VERIFY" | "ONE_MEDIA_CHECK" | "GROK" | "DILISENSE";
|
|
@@ -728,11 +1069,29 @@ export interface components {
|
|
|
728
1069
|
* @enum {string}
|
|
729
1070
|
*/
|
|
730
1071
|
AdverseMediaProviderSource: "organization" | "platform" | "unrecognized";
|
|
731
|
-
/** @description
|
|
1072
|
+
/** @description What an organization allows the reviewer to research, per flow.
|
|
732
1073
|
*
|
|
733
|
-
*
|
|
734
|
-
*
|
|
735
|
-
*
|
|
1074
|
+
* Off until an organization turns it on, under a platform ceiling read at each run and never
|
|
1075
|
+
* pinned into a manifest — a limit an organization lowers takes effect on the next run, not on the
|
|
1076
|
+
* next case. */
|
|
1077
|
+
AgentResearchTerms: {
|
|
1078
|
+
/** @description `false` — the default — means no research is attempted at all, whatever the limits say. */
|
|
1079
|
+
enabled?: boolean;
|
|
1080
|
+
/**
|
|
1081
|
+
* Format: int32
|
|
1082
|
+
* @description The most hosted searches one run may issue. `0` turns the web search off while leaving the
|
|
1083
|
+
* purchased tools on.
|
|
1084
|
+
*/
|
|
1085
|
+
maxSearches?: number;
|
|
1086
|
+
/**
|
|
1087
|
+
* Format: int32
|
|
1088
|
+
* @description The most, in CREDITS, one run may spend buying answers. `0` is a real setting: research
|
|
1089
|
+
* that adopts what the organization already holds and buys nothing.
|
|
1090
|
+
*/
|
|
1091
|
+
spendLimit?: number;
|
|
1092
|
+
};
|
|
1093
|
+
/** @description A news article found by adverse-media screening for the subject of an AML result, with its
|
|
1094
|
+
* source, publication details, topics and, when available, a relevance score. */
|
|
736
1095
|
AmlAdverseMediaArticle: {
|
|
737
1096
|
eventGroup?: string | null;
|
|
738
1097
|
language: string;
|
|
@@ -747,14 +1106,9 @@ export interface components {
|
|
|
747
1106
|
topics?: string[];
|
|
748
1107
|
url: string;
|
|
749
1108
|
};
|
|
750
|
-
/** @description
|
|
751
|
-
*
|
|
752
|
-
*
|
|
753
|
-
* story, not a fact about the subject, and collapsing six exact figures into one total would
|
|
754
|
-
* throw away the only numbers the provider stands behind. The labels are provider-specific
|
|
755
|
-
* (dilisense returns `financial_crime`, `terrorism`, …; LSEG returns its own topic names), so
|
|
756
|
-
* nothing downstream should branch on them — they are evidence for a reviewer and for the
|
|
757
|
-
* review panel to read. */
|
|
1109
|
+
/** @description Number of adverse-media articles the screening provider filed under one of its topic
|
|
1110
|
+
* categories (for example `financial_crime` or `terrorism`). Labels are provider-specific and
|
|
1111
|
+
* may change, so show them to reviewers rather than building logic on them. */
|
|
758
1112
|
AmlAdverseMediaCategoryCount: {
|
|
759
1113
|
count: number;
|
|
760
1114
|
label: string;
|
|
@@ -786,20 +1140,18 @@ export interface components {
|
|
|
786
1140
|
*/
|
|
787
1141
|
windowStart?: string | null;
|
|
788
1142
|
};
|
|
789
|
-
/** @description Outcome of the latest
|
|
790
|
-
*
|
|
791
|
-
* a
|
|
792
|
-
*
|
|
793
|
-
* (see [`AmlRiskResult::agent_review_in_force`]). */
|
|
1143
|
+
/** @description Outcome of the latest automated AI review of this screening: the verdict, the action actually
|
|
1144
|
+
* taken, the rationale and the remaining risk score. When `suggested` is `true` the verdict is
|
|
1145
|
+
* only a suggestion for a human reviewer. It applies to the current screening only and no longer
|
|
1146
|
+
* counts once the subject is re-screened. */
|
|
794
1147
|
AmlAgentReview: {
|
|
795
1148
|
/** @description The action actually enacted, post-guard and post-normalization. */
|
|
796
1149
|
enactedAction: components["schemas"]["AmlAgentReviewAction"];
|
|
797
|
-
/** @description
|
|
798
|
-
*
|
|
1150
|
+
/** @description Version of the review policy used, on older reviews only. Newer reviews report
|
|
1151
|
+
* `promptVersions` instead. */
|
|
799
1152
|
policyVersion?: string | null;
|
|
800
|
-
/** @description Version of each
|
|
801
|
-
*
|
|
802
|
-
* legacy reviews, which carry [`Self::policy_version`] instead. */
|
|
1153
|
+
/** @description Version of each prompt used to reach the verdict, keyed by prompt type, so the review can be
|
|
1154
|
+
* traced. Empty on older reviews, which report `policyVersion` instead. */
|
|
803
1155
|
promptVersions?: {
|
|
804
1156
|
[key: string]: string;
|
|
805
1157
|
};
|
|
@@ -815,17 +1167,14 @@ export interface components {
|
|
|
815
1167
|
verdictAction: components["schemas"]["AmlAgentReviewAction"];
|
|
816
1168
|
};
|
|
817
1169
|
/**
|
|
818
|
-
* @description The action
|
|
819
|
-
*
|
|
820
|
-
* `requestClarification` / `escalate`) match the strings previously stored on
|
|
821
|
-
* `metadata.agentReview`, so existing records deserialize unchanged.
|
|
1170
|
+
* @description The action an automated review decided on: `approve`, `requestClarification` or `escalate`
|
|
1171
|
+
* (hand over to a human reviewer).
|
|
822
1172
|
* @enum {string}
|
|
823
1173
|
*/
|
|
824
1174
|
AmlAgentReviewAction: "approve" | "requestClarification" | "escalate";
|
|
825
1175
|
AmlCheckSummary: {
|
|
826
|
-
/** @description Whether the adverse-media screening for this subject returned any articles.
|
|
827
|
-
*
|
|
828
|
-
* adverse-media screening) deserializable as `false`. */
|
|
1176
|
+
/** @description Whether the adverse-media screening for this subject returned any articles. `false` when no
|
|
1177
|
+
* articles were found or adverse media was not screened. */
|
|
829
1178
|
hasAdverseMedia?: boolean;
|
|
830
1179
|
hasPep: boolean;
|
|
831
1180
|
hasSanctions: boolean;
|
|
@@ -909,18 +1258,14 @@ export interface components {
|
|
|
909
1258
|
* so a reviewer can tell a name-only screening from one that matched on a birth date too. */
|
|
910
1259
|
dateOfBirth?: string | null;
|
|
911
1260
|
firstName: string;
|
|
912
|
-
/** @description The gender actually
|
|
913
|
-
*
|
|
914
|
-
* unmappable, therefore omitted from the query". Recording the *sent* value rather than the
|
|
915
|
-
* declared one is what makes this field carry its weight twice: a reviewer sees exactly how
|
|
916
|
-
* narrow the screening was, and the worker's "has the query changed?" gate re-screens when
|
|
917
|
-
* the gender changes — which it would not do if the field were absent here. */
|
|
1261
|
+
/** @description The gender actually used in the screening query, after normalization. Absent when no gender
|
|
1262
|
+
* was declared, or when the declared value could not be mapped and was left out of the query. */
|
|
918
1263
|
gender?: string | null;
|
|
919
1264
|
lastName: string;
|
|
920
1265
|
};
|
|
921
1266
|
AmlResult: {
|
|
922
|
-
/** @description Whether adverse-media screening for this subject returned a hit.
|
|
923
|
-
*
|
|
1267
|
+
/** @description Whether adverse-media screening for this subject returned a hit. `false` when there was no
|
|
1268
|
+
* hit or adverse media was not screened. */
|
|
924
1269
|
adverseMedia?: boolean;
|
|
925
1270
|
/** Format: date-time */
|
|
926
1271
|
createdAt: string;
|
|
@@ -936,8 +1281,7 @@ export interface components {
|
|
|
936
1281
|
namedPersonRef?: string | null;
|
|
937
1282
|
pep: boolean;
|
|
938
1283
|
sanctions: boolean;
|
|
939
|
-
/** @description
|
|
940
|
-
* `#[serde(default)]` (→ `Person`) only covers legacy cached payloads that predate it. */
|
|
1284
|
+
/** @description Whether the screened subject is a person (`PERSON`) or a company (`COMPANY`). */
|
|
941
1285
|
subjectType?: components["schemas"]["AmlSubjectType"];
|
|
942
1286
|
/** Format: date-time */
|
|
943
1287
|
updatedAt: string;
|
|
@@ -946,6 +1290,20 @@ export interface components {
|
|
|
946
1290
|
};
|
|
947
1291
|
AmlRiskMetadata: {
|
|
948
1292
|
adverseMedia?: null | components["schemas"]["AmlAdverseMediaResult"];
|
|
1293
|
+
/** @description What the screening's ORDER asked for, recorded verbatim: `Some(true)` when a KYB case asked
|
|
1294
|
+
* for adverse media, `Some(false)` when it explicitly declined, `None` when nobody asked and
|
|
1295
|
+
* the path's own default applied.
|
|
1296
|
+
*
|
|
1297
|
+
* A refresh re-screens under the order the original screening ran under, and the order is the
|
|
1298
|
+
* only thing that can say what that was. Inferring it from the OUTCOME — "it carries adverse
|
|
1299
|
+
* media, so somebody must have asked" — reads a legacy company screening, which always
|
|
1300
|
+
* attaches, as case-ordered, and cannot tell a case that declined from a case that never
|
|
1301
|
+
* asked at all.
|
|
1302
|
+
*
|
|
1303
|
+
* `None` on every row written before this field existed, which is the same thing it means on
|
|
1304
|
+
* a new one: nobody asked, so the path's default applies, exactly as it did. */
|
|
1305
|
+
adverseMediaRequested?: boolean | null;
|
|
1306
|
+
adverseMediaUnavailable?: null | components["schemas"]["AdverseMediaAbsence"];
|
|
949
1307
|
agentReview?: null | components["schemas"]["AmlAgentReview"];
|
|
950
1308
|
/** Format: date-time */
|
|
951
1309
|
checkedAt: string;
|
|
@@ -988,6 +1346,18 @@ export interface components {
|
|
|
988
1346
|
AmlSubjectType: "PERSON" | "COMPANY";
|
|
989
1347
|
/** @enum {string} */
|
|
990
1348
|
ApiKeyType: "PUBLISHABLE" | "SECRET";
|
|
1349
|
+
/** @description Request body of the SDK's deprecated `POST /sdk/organizations/{organization_id}/kyb/{kyb_result_id}/approve`.
|
|
1350
|
+
*
|
|
1351
|
+
* Both humans and the KYB agent use this endpoint to complete a KYB review.
|
|
1352
|
+
* The caller is responsible for running the appropriate pre-approval guard
|
|
1353
|
+
* before calling this endpoint. */
|
|
1354
|
+
ApproveKybPayload: {
|
|
1355
|
+
dueDiligenceLevel?: null | components["schemas"]["DueDiligenceLevel"];
|
|
1356
|
+
/** @description Optional reason / summary for the approval decision. Stored on the KYB
|
|
1357
|
+
* result and visible in the audit trail. */
|
|
1358
|
+
reason?: string | null;
|
|
1359
|
+
reasonCode?: null | components["schemas"]["KybCaseDecisionReasonCode"];
|
|
1360
|
+
};
|
|
991
1361
|
/** @description A single custom risk tag that was assigned to a flow result by the flow builder. */
|
|
992
1362
|
AssignedRiskTag: {
|
|
993
1363
|
/**
|
|
@@ -1012,18 +1382,25 @@ export interface components {
|
|
|
1012
1382
|
/** Format: double */
|
|
1013
1383
|
weight: number;
|
|
1014
1384
|
};
|
|
1015
|
-
/** @description
|
|
1016
|
-
*
|
|
1385
|
+
/** @description The custom risk tags assigned to a flow result, including removed ones (which carry a removal
|
|
1386
|
+
* time). */
|
|
1017
1387
|
AssignedRiskTags: components["schemas"]["AssignedRiskTag"][];
|
|
1018
|
-
/**
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1388
|
+
/** @description Whom a subject is handed to: a named person, or whoever holds an existing role. */
|
|
1389
|
+
AssigneePayload: {
|
|
1390
|
+
/** Format: uuid */
|
|
1391
|
+
identityId: string;
|
|
1392
|
+
/** @enum {string} */
|
|
1393
|
+
kind: "IDENTITY";
|
|
1394
|
+
} | {
|
|
1395
|
+
/** @enum {string} */
|
|
1396
|
+
kind: "ROLE";
|
|
1397
|
+
role: string;
|
|
1398
|
+
};
|
|
1399
|
+
/**
|
|
1400
|
+
* @description The action recorded by an audit log entry (e.g. `FLOW_CREATED`).
|
|
1024
1401
|
* @enum {string}
|
|
1025
1402
|
*/
|
|
1026
|
-
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" | "TIN_CHECK_RUN" | "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_DOCUMENT_CHECK_OVERRIDDEN" | "KYB_METADATA_PATCHED" | "KYB_SCREENING_STRATEGY_CHANGED" | "KYB_BUSINESS_INFORMATION_EDITED" | "KYB_UBOS_ADDED" | "KYB_UBO_REMOVED" | "KYB_DIRECTORS_ADDED" | "KYB_DIRECTOR_REMOVED" | "KYB_AGENT_REVIEWED" | "KYB_DOCUMENT_CATALOG_REFRESHED" | "KYB_DOCUMENTS_PURCHASED" | "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" | "TM_RULE_TRIGGERED" | "TM_ALERT_RAISED" | "TM_AGENT_REVIEWED" | "TM_AGENT_REVIEW_STARTED" | "TM_AGENT_RESOLVED" | "TM_ALERT_DISPOSITIONED" | "TM_ALERT_ESCALATED" | "TM_RULE_DISABLED" | "UNKNOWN";
|
|
1403
|
+
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_LINK_CREATED" | "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" | "AML_SCREENED" | "TIN_CHECK_RUN" | "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_DOCUMENT_CHECK_OVERRIDDEN" | "KYB_METADATA_PATCHED" | "KYB_SCREENING_STRATEGY_CHANGED" | "KYB_BUSINESS_INFORMATION_EDITED" | "KYB_UBOS_ADDED" | "KYB_UBO_REMOVED" | "KYB_DIRECTORS_ADDED" | "KYB_DIRECTOR_REMOVED" | "KYB_AGENT_REVIEWED" | "KYB_DOCUMENT_CATALOG_REFRESHED" | "KYB_DOCUMENTS_PURCHASED" | "KYB_CASE_MANIFEST_REVISED" | "KYB_CASE_RUN_COMPLETED" | "KYB_CASE_RUN_FAILED" | "KYB_CASE_RUN_REAPED" | "KYB_CASE_RUN_REQUEUED" | "KYB_CASE_EFFECTS_ABANDONED" | "KYB_CASE_RETRY_FORCED" | "KYB_CASE_DECISION_REPORT_HELD" | "KYB_CASE_WAIVER_DECIDED" | "KYB_CASE_DECIDED" | "KYB_CASE_EXCEPTION_RECORDED" | "KYB_CASE_EXCEPTION_WITHDRAWN" | "KYB_CASE_DECISION_PROPOSAL_WITHDRAWN" | "KYB_SCREENING_HIT_RESOLVED" | "KYB_SCREENING_HIT_PROPOSED" | "KYB_CASE_CHECK_CONFIRMED" | "KYB_CASE_REOPENED" | "KYB_CASE_QUALITY_REVIEW_RECORDED" | "KYB_OWNERSHIP_CONFIRMATION_SUBMITTED" | "KYB_SUBJECT_ASSIGNED" | "KYB_SUBJECT_RELEASED" | "KYB_COMPANY_RATING_OVERRIDDEN" | "KYB_COMPANY_RATING_OVERRIDE_ENDED" | "COMPLIANCE_POLICY_UPDATED" | "COMPLIANCE_POLICY_DRAFT_SAVED" | "COMPLIANCE_POLICY_PUBLISHED" | "COMPLIANCE_POLICY_PUT_IN_FORCE" | "COMPLIANCE_POLICY_SOP_UPLOADED" | "COMPLIANCE_POLICY_SOP_REVIEWED" | "KYB_CASE_AML_DISPOSITIONED" | "KYB_CASE_STEP_PROPOSAL_DECIDED" | "KYB_CASE_CLARIFICATION_PROPOSAL_DECIDED" | "KYB_CASE_FACT_RECORDED" | "KYB_CASE_INVITATION_SENT" | "KYB_CASE_INVITATION_FAILED" | "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" | "TM_RULE_TRIGGERED" | "TM_ALERT_RAISED" | "TM_AGENT_REVIEWED" | "TM_AGENT_REVIEW_STARTED" | "TM_AGENT_RESOLVED" | "TM_ALERT_DISPOSITIONED" | "TM_ALERT_ESCALATED" | "TM_RULE_DISABLED" | "UNKNOWN";
|
|
1027
1404
|
/** @description A single entry in the audit log, returned by the query API. */
|
|
1028
1405
|
AuditLogEntry: {
|
|
1029
1406
|
action: components["schemas"]["AuditAction"];
|
|
@@ -1050,20 +1427,12 @@ export interface components {
|
|
|
1050
1427
|
sessionId?: string | null;
|
|
1051
1428
|
source?: null | components["schemas"]["AuditSource"];
|
|
1052
1429
|
};
|
|
1053
|
-
/** @description The outcome of the operation that produced an audit entry
|
|
1054
|
-
*
|
|
1055
|
-
*
|
|
1056
|
-
*
|
|
1057
|
-
*
|
|
1058
|
-
*
|
|
1059
|
-
* - `httpSuccess { status }` — HTTP response with 2xx status code.
|
|
1060
|
-
* - `httpError { status, code, tag }` — HTTP response with a non-2xx status.
|
|
1061
|
-
* `status` is the numeric HTTP code; `code` and `tag` come from the
|
|
1062
|
-
* [`BaxeError`] payload so investigators can see the application-level
|
|
1063
|
-
* error identity without reading the response body.
|
|
1064
|
-
* - `workerOk` — background worker completed successfully.
|
|
1065
|
-
* - `workerError { variant }` — background worker failed; `variant` is the
|
|
1066
|
-
* Rust error-enum variant name (e.g. `"VaultLocked"`, `"UpsertDvResult"`). */
|
|
1430
|
+
/** @description The outcome of the operation that produced an audit entry, identified by `type`:
|
|
1431
|
+
* - `httpSuccess` — the API request succeeded (2xx); `status` is the HTTP status code.
|
|
1432
|
+
* - `httpError` — the API request failed (non-2xx); `status` is the HTTP status code, and
|
|
1433
|
+
* `code` and `tag` identify the error returned in the response body, when available.
|
|
1434
|
+
* - `workerOk` — a background process completed successfully.
|
|
1435
|
+
* - `workerError` — a background process failed; `variant` names the error. */
|
|
1067
1436
|
AuditOutcome: {
|
|
1068
1437
|
/**
|
|
1069
1438
|
* Format: int32
|
|
@@ -1075,8 +1444,8 @@ export interface components {
|
|
|
1075
1444
|
} | {
|
|
1076
1445
|
/**
|
|
1077
1446
|
* Format: int32
|
|
1078
|
-
* @description Application-level error code from
|
|
1079
|
-
* `
|
|
1447
|
+
* @description Application-level error code from the error response body (e.g. 200 for validation,
|
|
1448
|
+
* 201 for deserialization). `null` when the error did not carry one.
|
|
1080
1449
|
*/
|
|
1081
1450
|
code?: number | null;
|
|
1082
1451
|
/**
|
|
@@ -1094,27 +1463,19 @@ export interface components {
|
|
|
1094
1463
|
} | {
|
|
1095
1464
|
/** @enum {string} */
|
|
1096
1465
|
type: "workerError";
|
|
1097
|
-
/** @description
|
|
1466
|
+
/** @description Name of the error that caused the failure (e.g. `"VaultLocked"`, `"UpsertDvResult"`). */
|
|
1098
1467
|
variant: string;
|
|
1099
1468
|
};
|
|
1100
1469
|
/**
|
|
1101
|
-
* @description
|
|
1102
|
-
*
|
|
1103
|
-
* `Unknown` is used for auto-generated events where the middleware cannot
|
|
1104
|
-
* determine the resource type (e.g. streaming responses, system operations),
|
|
1105
|
-
* and as a catch-all for unrecognised values from the database.
|
|
1470
|
+
* @description The type of resource an audit log entry refers to. `Unknown` when the resource type could
|
|
1471
|
+
* not be determined (e.g. for some system operations).
|
|
1106
1472
|
* @enum {string}
|
|
1107
1473
|
*/
|
|
1108
|
-
AuditResourceType: "Search" | "Identity" | "Organization" | "OrganizationSettings" | "OrganizationTheme" | "OrganizationInvite" | "OrganizationBilling" | "SubscriptionPlan" | "KybJurisdictionPricing" | "TopupPack" | "ApiKey" | "Bot" | "Flow" | "FlowStep" | "FlowResult" | "FlowPartnerInvite" | "VerificationRequest" | "DvResult" | "AmlResult" | "TinCheck" | "PoaResult" | "KybResult" | "FormResult" | "Form" | "RiskWeight" | "ContextualFactor" | "ScoreDefinition" | "ScoreTag" | "AuditLog" | "ChatMessage" | "DocumentSelection" | "GeolocationResult" | "PhoneVerification" | "SpidResult" | "WalletVerification" | "Vault" | "KybUboData" | "DocumentDefinition" | "ConfigOverride" | "AgentReviewPolicy" | "ShortUrl" | "Cache" | "Transaction" | "TmRule" | "TmList" | "TmSettings" | "TmAlert" | "TmRuleTemplate" | "DisposableEmailDomain" | "RegistrationOffer" | "RegistrationOfferLink" | "WebhookEndpoint" | "WebhookOrganizationSecret" | "Unknown";
|
|
1109
|
-
/** @description
|
|
1110
|
-
*
|
|
1111
|
-
*
|
|
1112
|
-
*
|
|
1113
|
-
*
|
|
1114
|
-
* ## Variants
|
|
1115
|
-
* - `Http` — Event originated from an HTTP request (method + path).
|
|
1116
|
-
* - `Worker` — Event emitted by a background worker (type + scenario).
|
|
1117
|
-
* - `Scheduled` — Event from a scheduled/cron task (task name). */
|
|
1474
|
+
AuditResourceType: "Search" | "Identity" | "Organization" | "OrganizationSettings" | "OrganizationTheme" | "OrganizationInvite" | "OrganizationBilling" | "SubscriptionPlan" | "KybJurisdictionPricing" | "TopupPack" | "ApiKey" | "Bot" | "Flow" | "FlowStep" | "FlowResult" | "FlowPartnerInvite" | "VerificationRequest" | "DvResult" | "AmlResult" | "TinCheck" | "PoaResult" | "KybResult" | "KybCase" | "KybCaseRule" | "KybCompanyRating" | "KybSubjectAssignment" | "FormResult" | "Form" | "RiskWeight" | "ContextualFactor" | "ScoreDefinition" | "ScoreTag" | "ScoreRule" | "AuditLog" | "ChatMessage" | "DocumentSelection" | "GeolocationResult" | "PhoneVerification" | "SpidResult" | "WalletVerification" | "Vault" | "KybUboData" | "DocumentDefinition" | "ConfigOverride" | "AgentReviewPolicy" | "ShortUrl" | "Cache" | "Transaction" | "TmRule" | "TmList" | "TmSettings" | "TmAlert" | "TmRuleTemplate" | "DisposableEmailDomain" | "RegistrationOffer" | "RegistrationOfferLink" | "WebhookEndpoint" | "WebhookOrganizationSecret" | "Unknown";
|
|
1475
|
+
/** @description What triggered an audit event, identified by `type`:
|
|
1476
|
+
* - `HTTP` — an API request (`method` and `path`).
|
|
1477
|
+
* - `WORKER` — a background process (`workerType` and `scenario`).
|
|
1478
|
+
* - `SCHEDULED` — a scheduled task (`taskName`). */
|
|
1118
1479
|
AuditSource: {
|
|
1119
1480
|
/** @description HTTP method (e.g. "GET", "POST", "PUT", "DELETE"). */
|
|
1120
1481
|
method: string;
|
|
@@ -1123,11 +1484,11 @@ export interface components {
|
|
|
1123
1484
|
/** @enum {string} */
|
|
1124
1485
|
type: "HTTP";
|
|
1125
1486
|
} | {
|
|
1126
|
-
/** @description
|
|
1487
|
+
/** @description What started the background process. */
|
|
1127
1488
|
scenario: components["schemas"]["WorkerScenario"];
|
|
1128
1489
|
/** @enum {string} */
|
|
1129
1490
|
type: "WORKER";
|
|
1130
|
-
/** @description The
|
|
1491
|
+
/** @description The kind of background process that emitted this event. */
|
|
1131
1492
|
workerType: components["schemas"]["WorkerType"];
|
|
1132
1493
|
} | {
|
|
1133
1494
|
/** @description Name of the scheduled task (e.g. "AML_REFRESH", "CLEANUP"). */
|
|
@@ -1239,17 +1600,10 @@ export interface components {
|
|
|
1239
1600
|
incorporationDate: string;
|
|
1240
1601
|
postZipCode: string;
|
|
1241
1602
|
registrationNumber: string;
|
|
1242
|
-
/** @description
|
|
1243
|
-
* `
|
|
1244
|
-
*
|
|
1245
|
-
*
|
|
1246
|
-
* today only the US, which has no federal register at all -- and absent for every other
|
|
1247
|
-
* country. `None` on the vast majority of records, and on every record written before this
|
|
1248
|
-
* field existed, which is why it defaults rather than being required by serde.
|
|
1249
|
-
*
|
|
1250
|
-
* Deliberately separate from `country` instead of overloading it with a qualified `US-DE`:
|
|
1251
|
-
* `country` is one of the eight fields the business-info cross-check hands to the LLM to
|
|
1252
|
-
* compare against the register, and it is shown to the applicant in the form. */
|
|
1603
|
+
/** @description The state or region the company is registered in, as the subdivision part of its ISO
|
|
1604
|
+
* 3166-2 code without the country prefix (for example `"DE"` for Delaware or `"NY"` for New
|
|
1605
|
+
* York), read together with `country`. Required only where company registers are regional
|
|
1606
|
+
* rather than national (currently the US); absent for every other country. */
|
|
1253
1607
|
subdivision?: string | null;
|
|
1254
1608
|
};
|
|
1255
1609
|
/** @description Parsed representation of the client's clarification response stored inside
|
|
@@ -1271,6 +1625,117 @@ export interface components {
|
|
|
1271
1625
|
/** @description The new value proposed by the client. */
|
|
1272
1626
|
value: string;
|
|
1273
1627
|
};
|
|
1628
|
+
/** @description How far a case has been checked, as a list row can afford to answer it.
|
|
1629
|
+
*
|
|
1630
|
+
* The case's own coverage read (`GET …/coverage`) answers per requirement AND per subject: it fans
|
|
1631
|
+
* out over the screening population and the officer groups, and it reports the requirements that
|
|
1632
|
+
* nothing was configured to answer at all. That reading costs a manifest, an officer population
|
|
1633
|
+
* and a policy per case, which a page of fifty cannot afford — so a row carries the cheaper one:
|
|
1634
|
+
* the case's own steps, counted by how each settled.
|
|
1635
|
+
*
|
|
1636
|
+
* It is a sorting aid — "this file still has three checks out" — and deliberately not the
|
|
1637
|
+
* approval gate. The two readings can differ: this one knows nothing about a requirement that
|
|
1638
|
+
* left no step behind, nor about one subject of a screening that covered the others, so
|
|
1639
|
+
* `complete` here means the steps are done and never that the case may be approved. */
|
|
1640
|
+
CaseCoverageSummary: {
|
|
1641
|
+
/** @description Every step settled covered, and there was at least one. A case nothing has been planned for
|
|
1642
|
+
* yet reads `false`: there is nothing that could have covered it. */
|
|
1643
|
+
complete: boolean;
|
|
1644
|
+
/**
|
|
1645
|
+
* Format: int32
|
|
1646
|
+
* @description Steps that answered their requirement: completed, adopted, waived, or failed and confirmed
|
|
1647
|
+
* by a person with evidence.
|
|
1648
|
+
*/
|
|
1649
|
+
covered: number;
|
|
1650
|
+
/**
|
|
1651
|
+
* Format: int32
|
|
1652
|
+
* @description Steps that have not settled yet, and the requirements nothing has been planned for.
|
|
1653
|
+
*/
|
|
1654
|
+
pending: number;
|
|
1655
|
+
/**
|
|
1656
|
+
* Format: int32
|
|
1657
|
+
* @description Steps that settled without answering it — failed, or skipped with nothing to re-answer it.
|
|
1658
|
+
*/
|
|
1659
|
+
uncovered: number;
|
|
1660
|
+
};
|
|
1661
|
+
/** @description One case as its own read answers.
|
|
1662
|
+
*
|
|
1663
|
+
* The list row, flattened so every key a client already binds against stays exactly where it was,
|
|
1664
|
+
* plus the one thing a single case can afford that a page cannot: its **episodes**, each attempt
|
|
1665
|
+
* at the case from an opening or a reopening to the decision that closed it. A case reopens under
|
|
1666
|
+
* its own id, so without them a file decided, resubmitted and decided again reads as one flat
|
|
1667
|
+
* timeline in which nothing says which attempt an act belonged to. */
|
|
1668
|
+
CaseDetailResponse: components["schemas"]["CaseSummaryResponse"] & {
|
|
1669
|
+
/** @description Oldest first; a case always has at least one. Derived from the case's transitions and
|
|
1670
|
+
* decisions at read time and stored nowhere. */
|
|
1671
|
+
episodes?: components["schemas"]["CaseEpisode"][];
|
|
1672
|
+
};
|
|
1673
|
+
/** @description One attempt at the case, from an opening or a reopening to its decision.
|
|
1674
|
+
*
|
|
1675
|
+
* Derived from the case's transitions and decisions; nothing stores it. */
|
|
1676
|
+
CaseEpisode: {
|
|
1677
|
+
cause: components["schemas"]["EpisodeCause"];
|
|
1678
|
+
decision?: null | components["schemas"]["EpisodeDecision"];
|
|
1679
|
+
/**
|
|
1680
|
+
* Format: int32
|
|
1681
|
+
* @description 1 for the first, counting up. A case always has at least one.
|
|
1682
|
+
*/
|
|
1683
|
+
number: number;
|
|
1684
|
+
/** Format: date-time */
|
|
1685
|
+
openedAt: string;
|
|
1686
|
+
/**
|
|
1687
|
+
* Format: uuid
|
|
1688
|
+
* @description Who reopened it, where a person did. The first episode opens with the case and names
|
|
1689
|
+
* nobody.
|
|
1690
|
+
*/
|
|
1691
|
+
openedBy?: string | null;
|
|
1692
|
+
};
|
|
1693
|
+
/** @description A company's rating as a case list shows it: the level in force and whether a person set it.
|
|
1694
|
+
* The parts it was computed from and its override history are the rating's own read. */
|
|
1695
|
+
CaseRatingSummary: {
|
|
1696
|
+
/** @description The level in force: the override's while one is in force, the computed one otherwise. */
|
|
1697
|
+
level: components["schemas"]["KybRatingLevel"];
|
|
1698
|
+
/** @description Whether an override is in force over the computed level. */
|
|
1699
|
+
overridden: boolean;
|
|
1700
|
+
/** Format: uuid */
|
|
1701
|
+
ratingId: string;
|
|
1702
|
+
};
|
|
1703
|
+
/** @description A case as a reviewer's list reads it.
|
|
1704
|
+
*
|
|
1705
|
+
* `assignment` and `rating` are not the case's own: both are kept per company, so a list reads
|
|
1706
|
+
* them off `companyKey`. They are here so a worklist is one read — who holds each case and how
|
|
1707
|
+
* risky its company is are what a reviewer sorts their day by. */
|
|
1708
|
+
CaseSummaryResponse: {
|
|
1709
|
+
assignment?: null | components["schemas"]["SubjectAssignmentResponse"];
|
|
1710
|
+
/** @description The key the company's assignment and rating are kept under. Absent for a company with no
|
|
1711
|
+
* registration number: it cannot be told from another in its country, so nothing is kept
|
|
1712
|
+
* about it and it can be neither assigned nor rated. */
|
|
1713
|
+
companyKey?: string | null;
|
|
1714
|
+
country: string;
|
|
1715
|
+
/** @description How far the case has been checked, counted over its own steps. Present on every row: a case
|
|
1716
|
+
* with nothing planned yet reads three zeros and `complete: false`, which is an answer. */
|
|
1717
|
+
coverage: components["schemas"]["CaseCoverageSummary"];
|
|
1718
|
+
/** Format: date-time */
|
|
1719
|
+
createdAt: string;
|
|
1720
|
+
dueDiligenceLevel: components["schemas"]["KybCaseDueDiligenceLevel"];
|
|
1721
|
+
episode?: null | components["schemas"]["EpisodeRef"];
|
|
1722
|
+
/** Format: uuid */
|
|
1723
|
+
flowResultId?: string | null;
|
|
1724
|
+
/** Format: uuid */
|
|
1725
|
+
id: string;
|
|
1726
|
+
legalName?: string | null;
|
|
1727
|
+
/** @description `CLIENT` | `RM` | `COMPLIANCE` | `SUPPORT` | `FUNDED` | `DENIED`, where set. */
|
|
1728
|
+
nextAction?: string | null;
|
|
1729
|
+
/** @description Who opened the case: `END_USER` (the business applicant, through a flow), `OPERATOR` (a member of your
|
|
1730
|
+
* organization) or `MIGRATION` (created from a KYB result that predates KYB cases). */
|
|
1731
|
+
origin: components["schemas"]["KybCaseOrigin"];
|
|
1732
|
+
rating?: null | components["schemas"]["CaseRatingSummary"];
|
|
1733
|
+
registrationNumber?: string | null;
|
|
1734
|
+
status: components["schemas"]["KybCaseStatus"];
|
|
1735
|
+
/** Format: date-time */
|
|
1736
|
+
updatedAt: string;
|
|
1737
|
+
waitingOn?: null | components["schemas"]["OwedBy"];
|
|
1738
|
+
};
|
|
1274
1739
|
/**
|
|
1275
1740
|
* @description Provider-agnostic check status.
|
|
1276
1741
|
*
|
|
@@ -1280,9 +1745,9 @@ export interface components {
|
|
|
1280
1745
|
* # Deserialization
|
|
1281
1746
|
*
|
|
1282
1747
|
* Supports both string format ("passed", "failed", etc.) and legacy integer codes:
|
|
1283
|
-
* - 0 = Passed
|
|
1284
|
-
* - 1 = Failed
|
|
1285
|
-
* - 2 = NotPerformed
|
|
1748
|
+
* - 0 = Passed
|
|
1749
|
+
* - 1 = Failed
|
|
1750
|
+
* - 2 = NotPerformed
|
|
1286
1751
|
* @enum {string}
|
|
1287
1752
|
*/
|
|
1288
1753
|
CheckStatus: "passed" | "failed" | "not_performed" | "unknown";
|
|
@@ -1483,33 +1948,30 @@ export interface components {
|
|
|
1483
1948
|
accepted: string[];
|
|
1484
1949
|
blocked: string[];
|
|
1485
1950
|
};
|
|
1486
|
-
/** @description Request body for
|
|
1487
|
-
*
|
|
1488
|
-
* is Didit. */
|
|
1951
|
+
/** @description Request body for creating a hosted document-verification session. Both fields are optional,
|
|
1952
|
+
* and they only take effect when hosted capture sessions are enabled for your deployment. */
|
|
1489
1953
|
CreateDvSessionPayload: {
|
|
1490
|
-
/** @description Preferred hosted
|
|
1491
|
-
*
|
|
1954
|
+
/** @description Preferred language for the hosted capture flow, as a language code (e.g. `"en"`). An
|
|
1955
|
+
* unsupported code is ignored rather than rejected, and the default language is used. */
|
|
1492
1956
|
language?: string | null;
|
|
1493
1957
|
/** @description Sandbox-only outcome control (e.g. `"approve"`, `"decline_document_expired"`). Ignored
|
|
1494
1958
|
* outside sandbox. */
|
|
1495
1959
|
sandboxScenario?: string | null;
|
|
1496
1960
|
};
|
|
1497
|
-
/** @description
|
|
1498
|
-
*
|
|
1499
|
-
*
|
|
1961
|
+
/** @description A newly created hosted document-verification session. Embed `url` in an iframe; once the user
|
|
1962
|
+
* has finished, send `sessionToken` and `sessionId` (as `interviewId`) to `process-dv-document`
|
|
1963
|
+
* to retrieve the results. */
|
|
1500
1964
|
CreateDvSessionResponse: {
|
|
1501
|
-
/** @description What
|
|
1502
|
-
*
|
|
1503
|
-
* concrete provider is behind it. */
|
|
1965
|
+
/** @description What this session can do: its capture mode, whether capture traffic goes through Zyphe's
|
|
1966
|
+
* proxy, and whether the session itself covers the liveness and document-authenticity checks. */
|
|
1504
1967
|
capture: components["schemas"]["DvCapture"];
|
|
1505
1968
|
sessionId: string;
|
|
1506
1969
|
sessionToken: string;
|
|
1507
1970
|
url: string;
|
|
1508
1971
|
};
|
|
1509
|
-
/** @description Request to create a
|
|
1510
|
-
* purchase (`POST .../billing/topup/checkout`). */
|
|
1972
|
+
/** @description Request to create a checkout session for a one-time credit top-up purchase. */
|
|
1511
1973
|
CreateTopupCheckoutRequest: {
|
|
1512
|
-
/** @description The
|
|
1974
|
+
/** @description The price ID of the top-up pack to purchase, as returned in `priceId` by
|
|
1513
1975
|
* `GET .../billing/topup-packs`. */
|
|
1514
1976
|
priceId: string;
|
|
1515
1977
|
/** @description Optional redirect URI after checkout. If not provided, redirects to the webapp root. */
|
|
@@ -1542,10 +2004,7 @@ export interface components {
|
|
|
1542
2004
|
CreationSource: "SELF_SERVE" | "ADMIN" | "PARTNER";
|
|
1543
2005
|
/** @enum {string} */
|
|
1544
2006
|
CredentialType: "PASSWORD" | "MAGIC_LINK" | "PASSKEY" | "BOT_TOKEN" | "WALLET" | "EXTERNAL_ID";
|
|
1545
|
-
/** @description
|
|
1546
|
-
*
|
|
1547
|
-
* Determines the `expires_at` of Stripe Credit Grants created at renewal.
|
|
1548
|
-
* Stored as JSONB on `SubscriptionPlan.creditExpiryPolicy`. */
|
|
2007
|
+
/** @description When the credits granted by a subscription plan at each renewal expire. */
|
|
1549
2008
|
CreditExpiryPolicy: {
|
|
1550
2009
|
/** @enum {string} */
|
|
1551
2010
|
type: "periodEnd";
|
|
@@ -1565,6 +2024,79 @@ export interface components {
|
|
|
1565
2024
|
};
|
|
1566
2025
|
/** @example usd */
|
|
1567
2026
|
Currency: string;
|
|
2027
|
+
/** @description A reviewer's decision on a case: the one immutable decision it gets. */
|
|
2028
|
+
DecideCasePayload: {
|
|
2029
|
+
/**
|
|
2030
|
+
* Format: uuid
|
|
2031
|
+
* @description The standing proposed decision this act is the **second signature** on.
|
|
2032
|
+
*
|
|
2033
|
+
* Where the organization's approval matrix asks for two signatures, the first act answers
|
|
2034
|
+
* `202` with `decisionProposal`; sending its id back here is what closes the case. The
|
|
2035
|
+
* confirmer must be a different **person** holding a decider role, and the proposal lapses
|
|
2036
|
+
* rather than being honoured if the state it pinned has moved.
|
|
2037
|
+
*/
|
|
2038
|
+
confirmingProposalId?: string | null;
|
|
2039
|
+
dueDiligenceLevel?: null | components["schemas"]["DueDiligenceLevel"];
|
|
2040
|
+
/** @description `APPROVED` | `REJECTED`. An approval needs `READY_FOR_REVIEW`; a rejection is also accepted
|
|
2041
|
+
* from `ACTION_REQUIRED`, and then needs a reason. */
|
|
2042
|
+
outcome: components["schemas"]["KybCaseDecisionOutcome"];
|
|
2043
|
+
/** @description Mandatory on every rejection, and on an approval resting on a recorded exception or on a
|
|
2044
|
+
* held match; optional on a clean approval. A blank string is no reason. */
|
|
2045
|
+
reason?: string | null;
|
|
2046
|
+
reasonCode?: null | components["schemas"]["KybCaseDecisionReasonCode"];
|
|
2047
|
+
};
|
|
2048
|
+
/** @description What the decision route did: closed the case (`200`), or recorded the first of two signatures
|
|
2049
|
+
* (`202`) — the same body, with only the half that happened filled in.
|
|
2050
|
+
*
|
|
2051
|
+
* One type for both because one act produced both: the matrix, not the caller, decides which. On
|
|
2052
|
+
* a `200` the body is exactly what it has always been; on a `202` the decision half is absent and
|
|
2053
|
+
* `decisionProposal` says who is awaited. */
|
|
2054
|
+
DecidedCaseResponse: {
|
|
2055
|
+
/** Format: date-time */
|
|
2056
|
+
decidedAt?: string | null;
|
|
2057
|
+
/**
|
|
2058
|
+
* Format: uuid
|
|
2059
|
+
* @description Absent on a `202`: nothing was decided, so there is no decision.
|
|
2060
|
+
*/
|
|
2061
|
+
decisionId?: string | null;
|
|
2062
|
+
decisionProposal?: null | components["schemas"]["DecisionProposalSummary"];
|
|
2063
|
+
/** @description The outcome decided, or — on a `202` — the outcome proposed. */
|
|
2064
|
+
outcome: components["schemas"]["KybCaseDecisionOutcome"];
|
|
2065
|
+
/**
|
|
2066
|
+
* Format: uuid
|
|
2067
|
+
* @description The report version the decision sealed, package and all. Absent on a `202`.
|
|
2068
|
+
*/
|
|
2069
|
+
reportVersionId?: string | null;
|
|
2070
|
+
statusAfter?: null | components["schemas"]["KybCaseStatus"];
|
|
2071
|
+
statusBefore?: null | components["schemas"]["KybCaseStatus"];
|
|
2072
|
+
};
|
|
2073
|
+
/** @description The decision the organization's approval matrix turned into a *proposal*.
|
|
2074
|
+
*
|
|
2075
|
+
* The first signature is recorded and the case is NOT decided: someone holding one of
|
|
2076
|
+
* `awaitingRoles`, and not the proposer, confirms it through the case route's decision-proposal
|
|
2077
|
+
* endpoints. A legacy door that gets one answers `202` rather than `200`, so an integrator that
|
|
2078
|
+
* reads only the status code still learns that nothing is final. */
|
|
2079
|
+
DecisionProposalRecorded: {
|
|
2080
|
+
/** @description Who may give the second signature. Empty only if the matrix named nobody, which cannot
|
|
2081
|
+
* happen: a proposal exists because a row asked for two signatures. */
|
|
2082
|
+
awaitingRoles: components["schemas"]["Role"][];
|
|
2083
|
+
/**
|
|
2084
|
+
* Format: uuid
|
|
2085
|
+
* @description The `KybCaseDecisionProposal` row, and the id the confirmation names.
|
|
2086
|
+
*/
|
|
2087
|
+
id: string;
|
|
2088
|
+
};
|
|
2089
|
+
/** @description The proposal a `202` recorded, and who it waits for. */
|
|
2090
|
+
DecisionProposalSummary: {
|
|
2091
|
+
/** @description The roles the matrix named, any one of which may confirm — a different person from the
|
|
2092
|
+
* proposer, and never a bot or an API key. */
|
|
2093
|
+
awaitingRoles: components["schemas"]["Role"][];
|
|
2094
|
+
/**
|
|
2095
|
+
* Format: uuid
|
|
2096
|
+
* @description Send it back as `confirmingProposalId` to close the case.
|
|
2097
|
+
*/
|
|
2098
|
+
id: string;
|
|
2099
|
+
};
|
|
1568
2100
|
/** @description A director/legal-representative suggestion prefilled from the provider's data.
|
|
1569
2101
|
* The applicant confirms/edits before it becomes a declared director. */
|
|
1570
2102
|
DirectorCandidate: {
|
|
@@ -1582,19 +2114,23 @@ export interface components {
|
|
|
1582
2114
|
role?: string | null;
|
|
1583
2115
|
};
|
|
1584
2116
|
DirectorDefinition: {
|
|
1585
|
-
/** @description
|
|
2117
|
+
/** @description Nationality of the director. Absent when the company register reported none. */
|
|
1586
2118
|
country?: string | null;
|
|
1587
|
-
/** @description
|
|
1588
|
-
*
|
|
2119
|
+
/** @description Date of birth of the director. Often absent for a director taken from a company register,
|
|
2120
|
+
* since registers list officers without identity details; such a director is screened on name
|
|
2121
|
+
* alone. */
|
|
1589
2122
|
dateOfBirth?: string | null;
|
|
1590
2123
|
/** @description Email of the director. `None` for a name-only director added without an email. */
|
|
1591
2124
|
emailAddress?: string | null;
|
|
1592
2125
|
firstName: string;
|
|
1593
|
-
/** @description
|
|
2126
|
+
/** @description Gender of the director. Absent for any director taken from a company register (registers do
|
|
2127
|
+
* not publish gender); collected only when the director is entered by hand. */
|
|
1594
2128
|
gender?: string | null;
|
|
1595
2129
|
/**
|
|
1596
2130
|
* Format: uuid
|
|
1597
|
-
* @description Stable identifier for this director within the KYB result
|
|
2131
|
+
* @description Stable identifier for this director within the KYB result, used to address the director
|
|
2132
|
+
* (for example to remove or screen them). Absent only on directors recorded before identifiers
|
|
2133
|
+
* were introduced.
|
|
1598
2134
|
*/
|
|
1599
2135
|
id?: string | null;
|
|
1600
2136
|
lastName: string;
|
|
@@ -1605,50 +2141,41 @@ export interface components {
|
|
|
1605
2141
|
DiscoverKybUbosResponse: {
|
|
1606
2142
|
/** Format: uuid */
|
|
1607
2143
|
discoveryId: string;
|
|
1608
|
-
|
|
1609
|
-
status: string;
|
|
2144
|
+
status: components["schemas"]["KybDiscoveryRequestStatus"];
|
|
1610
2145
|
};
|
|
1611
2146
|
/**
|
|
1612
|
-
* @description
|
|
1613
|
-
*
|
|
1614
|
-
*
|
|
1615
|
-
* The suite is a list rather than a switch because its checks answer different questions,
|
|
1616
|
-
* need different inputs, and fail for different reasons — an administrator calibrating one
|
|
1617
|
-
* against their own traffic should not have to accept the others to get it. New checks are
|
|
1618
|
-
* added here as variants; a stored config that names none of them runs none of them.
|
|
2147
|
+
* @description A document-authenticity check that can be enabled on a document-verification step. Each check
|
|
2148
|
+
* is enabled independently; see each value for what it detects and how a failure affects the
|
|
2149
|
+
* result.
|
|
1619
2150
|
* @enum {string}
|
|
1620
2151
|
*/
|
|
1621
2152
|
DocauthCheck: "SCREEN_REPLAY" | "PORTRAIT_GENDER" | "PORTRAIT_AGE";
|
|
1622
|
-
/** @description
|
|
1623
|
-
*
|
|
1624
|
-
*
|
|
1625
|
-
*
|
|
1626
|
-
* the Textract OCR text and the document images stay in the S3 response log. `ProcessAdditionalData`
|
|
1627
|
-
* is a `JSONB` column read by every result list and detail query, so its size is paid on reads
|
|
1628
|
-
* that have no interest in the raw inputs. */
|
|
2153
|
+
/** @description How the document data was extracted when an AI model read the document: which prompt version
|
|
2154
|
+
* and model were used, the model's confidence and any warnings, which document sides had
|
|
2155
|
+
* readable text, and how long the extraction took. The document images and raw text are not
|
|
2156
|
+
* included. */
|
|
1629
2157
|
DocscanExtractionProvenance: {
|
|
1630
2158
|
/**
|
|
1631
2159
|
* Format: double
|
|
1632
|
-
* @description The model's
|
|
2160
|
+
* @description The model's confidence in the extraction, after the platform's own checks capped it.
|
|
1633
2161
|
*/
|
|
1634
2162
|
confidence: number;
|
|
1635
|
-
/** @description
|
|
2163
|
+
/** @description Identifier of the AI model the extraction ran against. */
|
|
1636
2164
|
model: string;
|
|
1637
|
-
/** @description Which sides
|
|
1638
|
-
* corroboration, not a contradiction
|
|
2165
|
+
/** @description Which sides of the document text was read from. A side without text is missing
|
|
2166
|
+
* corroboration, not a contradiction. */
|
|
1639
2167
|
ocrSides: components["schemas"]["OcrSides"];
|
|
1640
2168
|
/**
|
|
1641
2169
|
* Format: int64
|
|
1642
2170
|
* @description Wall-clock duration of the extraction, including OCR and any schema retry.
|
|
1643
2171
|
*/
|
|
1644
2172
|
processingTimeMs: number;
|
|
1645
|
-
/** @description Whether the
|
|
1646
|
-
*
|
|
1647
|
-
* silent — without this, two organizations disagreeing looks the same as model variance. */
|
|
2173
|
+
/** @description Whether the extraction instructions came from the organization's own override or the
|
|
2174
|
+
* platform default. */
|
|
1648
2175
|
promptScope: components["schemas"]["ExtractionPromptScope"];
|
|
1649
|
-
/** @description Version of the
|
|
2176
|
+
/** @description Version of the extraction instructions that produced this result. */
|
|
1650
2177
|
promptVersion: string;
|
|
1651
|
-
/** @description
|
|
2178
|
+
/** @description AI model usage for the successful attempt. */
|
|
1652
2179
|
usage: components["schemas"]["ExtractionUsage"];
|
|
1653
2180
|
/** @description Why the confidence landed where it did. Without this, a score below the configured
|
|
1654
2181
|
* threshold is unexplainable from the UI: the reason otherwise exists only inside
|
|
@@ -1656,11 +2183,8 @@ export interface components {
|
|
|
1656
2183
|
warnings?: string[];
|
|
1657
2184
|
};
|
|
1658
2185
|
/**
|
|
1659
|
-
* @description
|
|
1660
|
-
*
|
|
1661
|
-
* The serialized values are stable product-level names. Provider model IDs are kept
|
|
1662
|
-
* behind [`DocscanLlmModel::bedrock_model_id`] so flow configurations are not coupled
|
|
1663
|
-
* to a vendor's API spelling.
|
|
2186
|
+
* @description AI vision model used to extract data from scanned documents on a document-verification step.
|
|
2187
|
+
* Selectable by Zyphe administrators.
|
|
1664
2188
|
* @enum {string}
|
|
1665
2189
|
*/
|
|
1666
2190
|
DocscanLlmModel: "KIMI_K2_5" | "QWEN3_VL" | "UNKNOWN";
|
|
@@ -1681,16 +2205,9 @@ export interface components {
|
|
|
1681
2205
|
/** Format: uuid */
|
|
1682
2206
|
vaultId: string;
|
|
1683
2207
|
};
|
|
1684
|
-
/** @description One
|
|
1685
|
-
* `
|
|
1686
|
-
*
|
|
1687
|
-
* **`quotedCredits` is the whole of what this type says about price.** How that number was
|
|
1688
|
-
* reached — the provider's own figure and its unit, the FX rate, Zyphe's margin, whether the
|
|
1689
|
-
* provider would currently bill us anything at all — is internal pricing policy and deliberately
|
|
1690
|
-
* has no field here. `owned` / `purchasedAt` / `reissuable` are facts about the *requesting
|
|
1691
|
-
* organization's own* copy, not about ours. A field added here later has to be weighed the same
|
|
1692
|
-
* way, as [`GetKybDiscoveryResponse::for_applicant`] forces every new field to be classified in
|
|
1693
|
-
* one place. */
|
|
2208
|
+
/** @description One official register document that can be purchased for the company, as listed in the
|
|
2209
|
+
* document catalog. `quotedCredits` is its price in Zyphe credits. `owned`, `purchasedAt` and
|
|
2210
|
+
* `reissuable` describe your organization's own copy of the document. */
|
|
1694
2211
|
DocumentCatalogEntry: {
|
|
1695
2212
|
/** @description The provider's category key (`financialStatements`, `certifiedTradeRegisterExtract`, …). */
|
|
1696
2213
|
category: string;
|
|
@@ -1733,7 +2250,7 @@ export interface components {
|
|
|
1733
2250
|
* `name`, which is in the register's own language. */
|
|
1734
2251
|
subType?: string | null;
|
|
1735
2252
|
};
|
|
1736
|
-
/** @description Response for `GET .../kyb/{
|
|
2253
|
+
/** @description Response for `GET .../kyb-cases/{case_id}/document-catalog`. */
|
|
1737
2254
|
DocumentCatalogResponse: {
|
|
1738
2255
|
entries: components["schemas"]["DocumentCatalogEntry"][];
|
|
1739
2256
|
/** Format: date-time */
|
|
@@ -1776,7 +2293,7 @@ export interface components {
|
|
|
1776
2293
|
issuingState: string;
|
|
1777
2294
|
mrzStrings?: string;
|
|
1778
2295
|
};
|
|
1779
|
-
/** @description Response for `GET .../kyb/{
|
|
2296
|
+
/** @description Response for `GET .../kyb-cases/{case_id}/documents/{purchase_id}/download`.
|
|
1780
2297
|
*
|
|
1781
2298
|
* The signed URL is *returned*, not redirected to. The dashboard authenticates with a bearer
|
|
1782
2299
|
* token that a plain browser navigation cannot carry, so a redirect would have to be followed by
|
|
@@ -1800,8 +2317,9 @@ export interface components {
|
|
|
1800
2317
|
path: string;
|
|
1801
2318
|
type: string;
|
|
1802
2319
|
};
|
|
1803
|
-
/** @description
|
|
1804
|
-
* reports per
|
|
2320
|
+
/** @description The outcome for one document in a purchase request. Each document is accepted or rejected on
|
|
2321
|
+
* its own, so a request mixing good and bad documents reports per document instead of failing
|
|
2322
|
+
* as a whole. */
|
|
1805
2323
|
DocumentPurchaseDecision: {
|
|
1806
2324
|
accepted: boolean;
|
|
1807
2325
|
documentId: string;
|
|
@@ -1816,8 +2334,7 @@ export interface components {
|
|
|
1816
2334
|
*/
|
|
1817
2335
|
quotedCredits?: number | null;
|
|
1818
2336
|
reason?: null | components["schemas"]["DocumentRejectReason"];
|
|
1819
|
-
|
|
1820
|
-
status?: string | null;
|
|
2337
|
+
status?: null | components["schemas"]["KybDiscoveryRequestStatus"];
|
|
1821
2338
|
};
|
|
1822
2339
|
/**
|
|
1823
2340
|
* @description Why a document cannot be bought — a closed enum, so the catalogue and the dispatch report can
|
|
@@ -1832,14 +2349,14 @@ export interface components {
|
|
|
1832
2349
|
*
|
|
1833
2350
|
* # Deserialization
|
|
1834
2351
|
*
|
|
1835
|
-
* Supports both new abstract format and legacy
|
|
2352
|
+
* Supports both new abstract format and legacy format:
|
|
1836
2353
|
*
|
|
1837
2354
|
* **New format:**
|
|
1838
2355
|
* ```json
|
|
1839
2356
|
* { "overall": "passed", "documentType": "passed", "expiry": "passed", "mrz": "passed" }
|
|
1840
2357
|
* ```
|
|
1841
2358
|
*
|
|
1842
|
-
* **Legacy
|
|
2359
|
+
* **Legacy format:**
|
|
1843
2360
|
* ```json
|
|
1844
2361
|
* {
|
|
1845
2362
|
* "overallStatus": 0,
|
|
@@ -1899,24 +2416,19 @@ export interface components {
|
|
|
1899
2416
|
s3Key?: string | null;
|
|
1900
2417
|
};
|
|
1901
2418
|
/**
|
|
1902
|
-
* @description How intensively a business must be investigated before it can be onboarded
|
|
1903
|
-
* tier
|
|
1904
|
-
*
|
|
1905
|
-
*
|
|
1906
|
-
* screened, this selects *how deeply* the file must be investigated. A listed company screened
|
|
1907
|
-
* on its directors can still sit at any level.
|
|
1908
|
-
*
|
|
1909
|
-
* This records the tier only. Nothing in the platform varies its checks by level yet — the
|
|
1910
|
-
* approval guard, the required-document set and the screening depth are all still uniform. Adding
|
|
1911
|
-
* the key first means the decision has somewhere to live (an operator can set it through the
|
|
1912
|
-
* existing admin metadata PATCH today, and it survives on the result) while the per-level
|
|
1913
|
-
* behaviour lands incrementally.
|
|
2419
|
+
* @description How intensively a business must be investigated before it can be onboarded: the risk-based
|
|
2420
|
+
* due-diligence tier AML/CFT regulations expect. Independent of the screening strategy, which
|
|
2421
|
+
* decides *who* is screened; this decides *how deeply* the business is investigated. The level
|
|
2422
|
+
* is currently recorded only and does not yet change which checks the platform runs.
|
|
1914
2423
|
* @enum {string}
|
|
1915
2424
|
*/
|
|
1916
2425
|
DueDiligenceLevel: "simplified" | "standard" | "enhanced";
|
|
1917
|
-
/** @description
|
|
1918
|
-
* the
|
|
1919
|
-
*
|
|
2426
|
+
/** @description What a document-capture session can do. `capture` is the capture mode; `usesProxy` is `true`
|
|
2427
|
+
* when the capture surface talks to the identity-verification provider through Zyphe's proxy;
|
|
2428
|
+
* `providesLiveness` and `providesAuthenticity` are `true` when the session itself performs the
|
|
2429
|
+
* liveness check and the document-authenticity check. When `false`, the session does not: a check
|
|
2430
|
+
* runs only if the flow has one of its own, a liveness step or the step's `docauthChecks`, which
|
|
2431
|
+
* are empty by default. */
|
|
1920
2432
|
DvCapture: {
|
|
1921
2433
|
capture: components["schemas"]["DvCaptureMode"];
|
|
1922
2434
|
providesAuthenticity: boolean;
|
|
@@ -1932,32 +2444,16 @@ export interface components {
|
|
|
1932
2444
|
/** @default DISABLED */
|
|
1933
2445
|
amlAgenticMode: components["schemas"]["KybAgenticMode"];
|
|
1934
2446
|
capture?: null | components["schemas"]["DvCapture"];
|
|
1935
|
-
/** @description
|
|
1936
|
-
*
|
|
1937
|
-
*
|
|
1938
|
-
*
|
|
1939
|
-
*
|
|
1940
|
-
* Administrator-only and off by default on purpose: the checks' thresholds come from
|
|
1941
|
-
* synthetic captures and have not been calibrated against real cameras, displays and
|
|
1942
|
-
* document portraits, so on a live flow each will turn away some genuine holders until
|
|
1943
|
-
* they are. Enabling one is a per-flow, deliberate decision, made a check at a time — see
|
|
1944
|
-
* [`DocauthCheck`] for what each needs and where it is blind.
|
|
1945
|
-
*
|
|
1946
|
-
* Ignored when the active DV provider is Incode, which brings its own authenticity block.
|
|
1947
|
-
* Also ignored on Didit: the Didit workflow used by Zyphe brings only the OCR (ID
|
|
1948
|
-
* Verification) feature, and document authenticity stays out of scope there. */
|
|
2447
|
+
/** @description Additional document-authenticity checks to run on this step's scans. Empty by default
|
|
2448
|
+
* (no additional checks). `SCREEN_REPLAY` fails the scan on a replay verdict; the portrait
|
|
2449
|
+
* checks only lower the document score. Configured by Zyphe administrators; ignored when the
|
|
2450
|
+
* identity-verification provider in use supplies its own authenticity checks or none. */
|
|
1949
2451
|
docauthChecks?: components["schemas"]["DocauthCheck"][];
|
|
1950
2452
|
/** Format: uuid */
|
|
1951
2453
|
documentSelectionStepId?: string;
|
|
1952
|
-
/** @description
|
|
1953
|
-
*
|
|
1954
|
-
*
|
|
1955
|
-
* sandbox/live environment (see [`crate::types::dto::DvConfig`] rehydration in
|
|
1956
|
-
* the core handler). It is never persisted: it defaults to `None` and is skipped
|
|
1957
|
-
* when serializing `None`, so storing a config round-trips cleanly.
|
|
1958
|
-
*
|
|
1959
|
-
* Unused on Didit: the deployment-wide Didit workflow id is resolved server-side from
|
|
1960
|
-
* config when the create-session endpoint is called, and is never served to the client. */
|
|
2454
|
+
/** @description Provider configuration ID the frontend must use when creating the document-capture session
|
|
2455
|
+
* with the identity-verification provider. Set by the server when the step is served; absent
|
|
2456
|
+
* when the provider in use does not need one. Do not set it yourself. */
|
|
1961
2457
|
incodeConfigurationId?: string | null;
|
|
1962
2458
|
/**
|
|
1963
2459
|
* Format: int64
|
|
@@ -1969,8 +2465,8 @@ export interface components {
|
|
|
1969
2465
|
labels?: {
|
|
1970
2466
|
[key: string]: string;
|
|
1971
2467
|
};
|
|
1972
|
-
/** @description
|
|
1973
|
-
*
|
|
2468
|
+
/** @description AI vision model used to extract data from scanned documents. Uses the default model when
|
|
2469
|
+
* omitted. */
|
|
1974
2470
|
llmModel?: components["schemas"]["DocscanLlmModel"];
|
|
1975
2471
|
/**
|
|
1976
2472
|
* Format: int32
|
|
@@ -1979,24 +2475,19 @@ export interface components {
|
|
|
1979
2475
|
maxAttempts?: number | null;
|
|
1980
2476
|
/** Format: int32 */
|
|
1981
2477
|
minimumAge: number;
|
|
1982
|
-
/** @description When true,
|
|
1983
|
-
* document scan,
|
|
1984
|
-
*
|
|
1985
|
-
*
|
|
1986
|
-
* Incode-only: the LLM extractor has no government-validation call, so this is
|
|
1987
|
-
* ignored when the active DV provider is the LLM one. Also ignored on Didit: the
|
|
1988
|
-
* worker keeps `run_government_validation`'s `GovCheckNotSupported` default and never
|
|
1989
|
-
* enqueues a govcheck PoA job for a Didit session. */
|
|
2478
|
+
/** @description When true, the scanned driver's license is validated against government records and, after
|
|
2479
|
+
* the document scan, a proof-of-address result is produced from the validated address.
|
|
2480
|
+
* Defaults to `false`. Only supported by some identity-verification providers; ignored
|
|
2481
|
+
* otherwise. */
|
|
1990
2482
|
poaFromGovcheck?: boolean;
|
|
1991
2483
|
processImagesOverrides?: null | components["schemas"]["ProcessImagesOverrides"];
|
|
1992
2484
|
requiredDocumentFields?: components["schemas"]["RequiredDocumentField"][];
|
|
1993
2485
|
/**
|
|
1994
2486
|
* Format: int64
|
|
1995
|
-
* @description How long (in seconds) *before* a result's expiry to begin re-verification:
|
|
1996
|
-
*
|
|
1997
|
-
*
|
|
1998
|
-
*
|
|
1999
|
-
* Ignored when `kyc_validity_seconds` is `None`; clamped to the validity window.
|
|
2487
|
+
* @description How long (in seconds) *before* a result's expiry to begin re-verification: the flow is
|
|
2488
|
+
* reopened and a reminder email is sent, so the holder can renew while their current result is
|
|
2489
|
+
* still valid. Defaults to one week (604800) when omitted. Ignored when
|
|
2490
|
+
* `kycValiditySeconds` is not set; capped at the validity period.
|
|
2000
2491
|
*/
|
|
2001
2492
|
reverificationLeadSeconds?: number | null;
|
|
2002
2493
|
thresholds?: {
|
|
@@ -2056,6 +2547,10 @@ export interface components {
|
|
|
2056
2547
|
verificationRequestId?: string | null;
|
|
2057
2548
|
};
|
|
2058
2549
|
DvStepOutput: {
|
|
2550
|
+
/** @description Whether the subject's screening found adverse media — a routing signal beside `amlPep` and
|
|
2551
|
+
* `amlSanctions`, so a flow can branch on it as it can on the other two. `None` until a
|
|
2552
|
+
* screening lands, and on outputs written before the signal existed. */
|
|
2553
|
+
amlAdverseMedia?: boolean | null;
|
|
2059
2554
|
amlPep?: boolean | null;
|
|
2060
2555
|
/** Format: int32 */
|
|
2061
2556
|
amlRiskScorePercent?: number | null;
|
|
@@ -2072,12 +2567,43 @@ export interface components {
|
|
|
2072
2567
|
} & {
|
|
2073
2568
|
[key: string]: boolean;
|
|
2074
2569
|
};
|
|
2570
|
+
/**
|
|
2571
|
+
* @description Why an episode of a case opened.
|
|
2572
|
+
*
|
|
2573
|
+
* Each reopening cause here is the reading of one transition cause: a `REOPENED` transition opens
|
|
2574
|
+
* a `RESUBMITTED` episode, a `QA_REOPENED` one a `QA_REOPENED` episode and a `PERIODIC_REVIEW` one a
|
|
2575
|
+
* `PERIODIC_REVIEW` episode — the case's own history says which way it came back.
|
|
2576
|
+
* @enum {string}
|
|
2577
|
+
*/
|
|
2578
|
+
EpisodeCause: "CREATED" | "RESUBMITTED" | "QA_REOPENED" | "PERIODIC_REVIEW";
|
|
2579
|
+
/** @description How an episode ended, where it did. */
|
|
2580
|
+
EpisodeDecision: {
|
|
2581
|
+
/** Format: uuid */
|
|
2582
|
+
id: string;
|
|
2583
|
+
outcome: components["schemas"]["KybCaseDecisionOutcome"];
|
|
2584
|
+
/**
|
|
2585
|
+
* Format: uuid
|
|
2586
|
+
* @description The progress report version the decision sealed its package into.
|
|
2587
|
+
*/
|
|
2588
|
+
packageVersionId?: string | null;
|
|
2589
|
+
/** @description Whether this decision is the one that still stands: a superseded decision keeps its episode
|
|
2590
|
+
* and says it was overtaken. */
|
|
2591
|
+
standing: boolean;
|
|
2592
|
+
};
|
|
2593
|
+
/** @description An episode named from somewhere else — a story entry, an account entry, a list row, a sealed
|
|
2594
|
+
* package. The number and the cause are what a reader needs; the rest is on the case. */
|
|
2595
|
+
EpisodeRef: {
|
|
2596
|
+
cause: components["schemas"]["EpisodeCause"];
|
|
2597
|
+
/** Format: int32 */
|
|
2598
|
+
number: number;
|
|
2599
|
+
};
|
|
2075
2600
|
/** @enum {string} */
|
|
2076
|
-
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" | "sse" | "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" | "disposable_email" | "graph_validation" | "external_api" | "share_already_has_write_access" | "share_does_not_have_write_access" | "write_access_already_revoked" | "invite_required" | "billing" | "billing_email_required" | "product_not_active" | "registration_offer_not_found" | "registration_offer_unavailable" | "registration_offer_invalid_terms" | "tin_check_invalid_tin" | "tin_check_unavailable";
|
|
2601
|
+
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" | "sse" | "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" | "disposable_email" | "graph_validation" | "external_api" | "share_already_has_write_access" | "share_does_not_have_write_access" | "write_access_already_revoked" | "invite_required" | "billing" | "billing_email_required" | "product_not_active" | "registration_offer_not_found" | "registration_offer_unavailable" | "registration_offer_invalid_terms" | "topup_pack_unlocks_unpriced" | "score_rule_not_found" | "score_rule_field_outside_scores" | "score_rule_unknown_score" | "score_rule_score_disabled" | "score_rule_score_not_yet_computed" | "score_rule_set_score_out_of_range" | "score_rule_effect_kind_mismatch" | "kyb_case_not_decidable" | "kyb_case_not_ready" | "kyb_case_exception_required" | "kyb_case_rejecting_hit" | "kyb_case_reason_required" | "kyb_case_decision_not_authorized" | "kyb_case_second_signature_required" | "compliance_policy_open_questions" | "tin_check_invalid_tin" | "tin_check_unavailable" | "tin_check_ein_required" | "tin_check_mismatch" | "tin_check_attempts_exhausted";
|
|
2077
2602
|
/**
|
|
2078
|
-
* @description
|
|
2079
|
-
*
|
|
2080
|
-
*
|
|
2603
|
+
* @description What an estimated cost represents. `fixedPrice` is a real quoted price; `variableCap` is only
|
|
2604
|
+
* the maximum that may be charged, because the actual cost varies; `unknown` means pricing could
|
|
2605
|
+
* not be determined and a conservative maximum is shown. Do not present a `variableCap` or
|
|
2606
|
+
* `unknown` estimate to users as a price.
|
|
2081
2607
|
* @enum {string}
|
|
2082
2608
|
*/
|
|
2083
2609
|
EstimateBasis: "fixedPrice" | "variableCap" | "unknown";
|
|
@@ -2091,12 +2617,10 @@ export interface components {
|
|
|
2091
2617
|
*/
|
|
2092
2618
|
actionId: string;
|
|
2093
2619
|
};
|
|
2094
|
-
/** @description
|
|
2095
|
-
*
|
|
2096
|
-
*
|
|
2097
|
-
*
|
|
2098
|
-
* ids are country-prefixed (`"FR:12345"`) for the same reason — a Cayman parent of an Italian
|
|
2099
|
-
* subject prices and gates as Cayman, not Italy. */
|
|
2620
|
+
/** @description Whether one node of the ownership graph can be expanded, and at what estimated cost, as shown
|
|
2621
|
+
* in the expansion preview. `countryCode` and pricing are always those of this node's own
|
|
2622
|
+
* company, not the company under review: a Cayman parent of an Italian company is priced as
|
|
2623
|
+
* Cayman. */
|
|
2100
2624
|
ExpansionCandidate: {
|
|
2101
2625
|
/** @description Report-only, never a rejection: the provider's 24h dedup makes re-expanding an already
|
|
2102
2626
|
* `found` node near-free, and a reviewer may legitimately re-pull it. */
|
|
@@ -2119,10 +2643,9 @@ export interface components {
|
|
|
2119
2643
|
nodeStatus: string;
|
|
2120
2644
|
reason?: null | components["schemas"]["ExpansionRejectReason"];
|
|
2121
2645
|
};
|
|
2122
|
-
/** @description
|
|
2123
|
-
*
|
|
2124
|
-
*
|
|
2125
|
-
* the row exists and is `FAILED`. */
|
|
2646
|
+
/** @description Whether one requested node was accepted for expansion. `discoveryId` and `status` are absent
|
|
2647
|
+
* for a node rejected up front; a node that was sent but failed (`providerError` or
|
|
2648
|
+
* `budgetExceeded`) has `accepted: false` and carries both, with `status` `FAILED`. */
|
|
2126
2649
|
ExpansionDecision: {
|
|
2127
2650
|
accepted: boolean;
|
|
2128
2651
|
/**
|
|
@@ -2136,15 +2659,12 @@ export interface components {
|
|
|
2136
2659
|
estimateBasis?: null | components["schemas"]["EstimateBasis"];
|
|
2137
2660
|
/**
|
|
2138
2661
|
* Format: int32
|
|
2139
|
-
* @description
|
|
2140
|
-
* provider's own credits.
|
|
2662
|
+
* @description Estimated cost of expanding this node, in Zyphe credits, as in the expansion preview.
|
|
2141
2663
|
*/
|
|
2142
2664
|
estimatedCredits?: number | null;
|
|
2143
2665
|
nodeId: string;
|
|
2144
2666
|
reason?: null | components["schemas"]["ExpansionRejectReason"];
|
|
2145
|
-
|
|
2146
|
-
* dispatch itself failed (`providerError`/`budgetExceeded`) — that row is `FAILED`. */
|
|
2147
|
-
status?: string | null;
|
|
2667
|
+
status?: null | components["schemas"]["KybDiscoveryRequestStatus"];
|
|
2148
2668
|
};
|
|
2149
2669
|
/**
|
|
2150
2670
|
* @description How long an accepted expansion is expected to take to resolve. Not cosmetic: it changes what
|
|
@@ -2153,8 +2673,9 @@ export interface components {
|
|
|
2153
2673
|
* @enum {string}
|
|
2154
2674
|
*/
|
|
2155
2675
|
ExpansionLatency: "fast" | "slow" | "manual";
|
|
2156
|
-
/** @description
|
|
2157
|
-
*
|
|
2676
|
+
/** @description Preview of which ownership-graph nodes can be expanded and what each would cost, plus the
|
|
2677
|
+
* expansions already running. Requesting a preview is free; prices come from a price list that
|
|
2678
|
+
* is refreshed at least daily. */
|
|
2158
2679
|
ExpansionPreviewResponse: {
|
|
2159
2680
|
candidates: components["schemas"]["ExpansionCandidate"][];
|
|
2160
2681
|
/** Format: int32 */
|
|
@@ -2168,8 +2689,8 @@ export interface components {
|
|
|
2168
2689
|
*/
|
|
2169
2690
|
pricingFetchedAt?: string | null;
|
|
2170
2691
|
};
|
|
2171
|
-
/** @description One
|
|
2172
|
-
*
|
|
2692
|
+
/** @description One past expansion of a single ownership-graph node: its status, when it ran, why it stopped
|
|
2693
|
+
* (if it stopped early) and what it actually cost, in `chargedCredits`. */
|
|
2173
2694
|
ExpansionRecord: {
|
|
2174
2695
|
/** Format: int32 */
|
|
2175
2696
|
chargedCredits: number;
|
|
@@ -2180,49 +2701,35 @@ export interface components {
|
|
|
2180
2701
|
/** Format: uuid */
|
|
2181
2702
|
discoveryId: string;
|
|
2182
2703
|
rootNodeId: string;
|
|
2183
|
-
|
|
2184
|
-
status: string;
|
|
2704
|
+
status: components["schemas"]["KybDiscoveryRequestStatus"];
|
|
2185
2705
|
stoppedReason?: string | null;
|
|
2186
2706
|
};
|
|
2187
2707
|
/**
|
|
2188
|
-
* @description Why a node cannot be expanded
|
|
2189
|
-
*
|
|
2190
|
-
*
|
|
2191
|
-
*
|
|
2192
|
-
* never emits them**, because the preview makes no provider call. A `budgetExceeded` rejection at
|
|
2193
|
-
* dispatch is a distinct case from a generic `providerError`: per §9 A0 the provider's
|
|
2194
|
-
* `budget_exceeded` failure is **free** and returns the real cost, so it is a usable re-quote, not
|
|
2195
|
-
* a dead end — the dashboard can offer the operator a one-click re-confirmation at the actual
|
|
2196
|
-
* price (surfaced via the decision's `estimatedCredits`/`estimateBasis` when the provider's error
|
|
2197
|
-
* detail was parseable) instead of just reporting a failure.
|
|
2708
|
+
* @description Why a node cannot be expanded. `providerError`, `budgetExceeded` and `insufficientCredits`
|
|
2709
|
+
* only occur when the expansion is actually requested, never in the expansion preview. A
|
|
2710
|
+
* `budgetExceeded` rejection costs nothing and, when available, reports the actual price in the
|
|
2711
|
+
* decision's `estimatedCredits`, so you can retry with a higher `maxCreditsPerNode`.
|
|
2198
2712
|
* @enum {string}
|
|
2199
2713
|
*/
|
|
2200
2714
|
ExpansionRejectReason: "notACompanyNode" | "countryUnsupported" | "graphDatapointUnavailable" | "expansionInFlight" | "baseRunInFlight" | "autoTraversalInFlight" | "concurrencyCap" | "unknownNodeId" | "providerError" | "budgetExceeded" | "insufficientCredits";
|
|
2201
|
-
/** @description
|
|
2202
|
-
*
|
|
2203
|
-
*
|
|
2204
|
-
* see [`ExtendKybDiscoveryResponse`]. */
|
|
2715
|
+
/** @description Request to continue a completed ownership discovery that stopped early, digging deeper from
|
|
2716
|
+
* the selected company nodes of the ownership graph. Each node is priced, billed and accepted or
|
|
2717
|
+
* rejected on its own. */
|
|
2205
2718
|
ExtendKybDiscoveryPayload: {
|
|
2206
2719
|
/**
|
|
2207
2720
|
* Format: int32
|
|
2208
|
-
* @description
|
|
2209
|
-
* the
|
|
2210
|
-
*
|
|
2211
|
-
*
|
|
2212
|
-
* replaces the platform's flat `topograph_profile_max_budget_cents` ceiling. For a
|
|
2213
|
-
* `fixedPrice` country it cannot *raise* the price — a real price is not a cap — but a cap
|
|
2214
|
-
* below that price still binds: the node comes back rejected with the actual cost, rather
|
|
2215
|
-
* than being charged past what the operator said they would spend. `None` falls back to
|
|
2216
|
-
* `topograph_profile_max_budget_cents`.
|
|
2721
|
+
* @description The most, in Zyphe credits, that expanding each node may cost your organization. It can
|
|
2722
|
+
* only lower the limit: for a fixed-price country, a cap below the quoted price makes the node
|
|
2723
|
+
* come back rejected with its actual cost instead of being charged. Omit it to use the
|
|
2724
|
+
* platform's default ceiling.
|
|
2217
2725
|
*/
|
|
2218
2726
|
maxCreditsPerNode?: number | null;
|
|
2219
2727
|
/** @description `nodeId`s of company nodes in the current `ownershipStructure` to expand (max 25). */
|
|
2220
2728
|
nodeIds: string[];
|
|
2221
2729
|
};
|
|
2222
|
-
/** @description
|
|
2223
|
-
*
|
|
2224
|
-
*
|
|
2225
|
-
* *every* node is rejected is a `400`; otherwise this is a `202` dispatch report. */
|
|
2730
|
+
/** @description Result of a request to extend an ownership discovery, with one decision per requested node.
|
|
2731
|
+
* Nodes are accepted or rejected individually: the request fails with `400` only when every node
|
|
2732
|
+
* is rejected, and otherwise returns `202` with this report. */
|
|
2226
2733
|
ExtendKybDiscoveryResponse: {
|
|
2227
2734
|
/**
|
|
2228
2735
|
* Format: int32
|
|
@@ -2996,13 +3503,9 @@ export interface components {
|
|
|
2996
3503
|
/** @description Terminal-row error detail (e.g. "graph failed validation: …") — present when the run
|
|
2997
3504
|
* completed but its result could not be applied. */
|
|
2998
3505
|
errorMessage?: string | null;
|
|
2999
|
-
/** @description
|
|
3000
|
-
*
|
|
3001
|
-
*
|
|
3002
|
-
* and every record carries `chargedCredits`; the applicant walking the widget must never see
|
|
3003
|
-
* what their onboarding cost the org. The applicant-facing route strips this via
|
|
3004
|
-
* [`Self::for_applicant`]. Never contains an automatic traversal wave — those are a
|
|
3005
|
-
* different row kind and live in `waves`. */
|
|
3506
|
+
/** @description History of manual per-node expansions of the ownership graph; empty when the graph has
|
|
3507
|
+
* never been extended. Automatic discovery steps are listed in `waves` instead. Returned to
|
|
3508
|
+
* your organization only, never to the applicant. */
|
|
3006
3509
|
expansions?: components["schemas"]["ExpansionRecord"][];
|
|
3007
3510
|
ownershipStructure?: null | components["schemas"]["OwnershipStructure"];
|
|
3008
3511
|
/** @description `NONE` (no run) | `PENDING` | `COMPLETED` | `FAILED` — the **base** GRAPH run's status.
|
|
@@ -3015,9 +3518,8 @@ export interface components {
|
|
|
3015
3518
|
traversal?: null | components["schemas"]["TraversalSummary"];
|
|
3016
3519
|
/** @description UBO suggestions derived from the ownership graph's `isUbo` individual nodes. */
|
|
3017
3520
|
uboSuggestions: components["schemas"]["UboSuggestion"][];
|
|
3018
|
-
/** @description
|
|
3019
|
-
*
|
|
3020
|
-
* [`Self::for_applicant`]. */
|
|
3521
|
+
/** @description Steps of the automatic ownership discovery beyond its first run, oldest first; empty when
|
|
3522
|
+
* none were needed. Returned to your organization only, never to the applicant. */
|
|
3021
3523
|
waves?: components["schemas"]["TraversalWave"][];
|
|
3022
3524
|
};
|
|
3023
3525
|
/** @description Response to the `liveness-challenge` endpoint.
|
|
@@ -3107,23 +3609,22 @@ export interface components {
|
|
|
3107
3609
|
IdentitySettings: {
|
|
3108
3610
|
lastEnvironmentIsSandbox?: boolean;
|
|
3109
3611
|
locale: components["schemas"]["Locale"];
|
|
3110
|
-
/** @description
|
|
3111
|
-
*
|
|
3112
|
-
* a real verified identity. */
|
|
3612
|
+
/** @description `true` when this identity is demo/synthetic data (for example generated sample data in a
|
|
3613
|
+
* sandbox) rather than a real end user. Never set for a real verified identity. */
|
|
3113
3614
|
synthetic?: boolean;
|
|
3114
3615
|
};
|
|
3115
3616
|
/** @description Result of an image quality check.
|
|
3116
3617
|
*
|
|
3117
3618
|
* # Deserialization
|
|
3118
3619
|
*
|
|
3119
|
-
* Supports both new abstract format and legacy
|
|
3620
|
+
* Supports both new abstract format and legacy format:
|
|
3120
3621
|
*
|
|
3121
3622
|
* **New format:**
|
|
3122
3623
|
* ```json
|
|
3123
3624
|
* { "checkType": "focus", "result": "passed", "probability": 97 }
|
|
3124
3625
|
* ```
|
|
3125
3626
|
*
|
|
3126
|
-
* **Legacy
|
|
3627
|
+
* **Legacy format (single item from 'list'):**
|
|
3127
3628
|
* ```json
|
|
3128
3629
|
* { "type": 1, "result": 0, "probability": 97, "featureType": 0, "mean": 0.0, "stdDev": 0.0 }
|
|
3129
3630
|
* ``` */
|
|
@@ -3145,7 +3646,7 @@ export interface components {
|
|
|
3145
3646
|
*
|
|
3146
3647
|
* # Deserialization
|
|
3147
3648
|
*
|
|
3148
|
-
* Supports both string format and legacy
|
|
3649
|
+
* Supports both string format and legacy integer type codes:
|
|
3149
3650
|
* - 0 = Glare (ImageGlares)
|
|
3150
3651
|
* - 1 = Focus (ImageFocus)
|
|
3151
3652
|
* - 2 = Resolution (ImageResolution)
|
|
@@ -3298,14 +3799,75 @@ export interface components {
|
|
|
3298
3799
|
*/
|
|
3299
3800
|
InputImagePageIndex: "front" | "back";
|
|
3300
3801
|
/**
|
|
3301
|
-
* @description
|
|
3302
|
-
* `
|
|
3303
|
-
*
|
|
3304
|
-
*
|
|
3305
|
-
* (e.g. `SUGGEST`). Kept as the `KybAgenticMode` OpenAPI component for API compatibility.
|
|
3802
|
+
* @description How much the automated compliance review agent may do on its own (used for KYB and AML reviews).
|
|
3803
|
+
* `DISABLED` (default): the agent does not run. `SUGGEST`: the agent reviews and records its
|
|
3804
|
+
* recommended approve/clear action as a suggestion for a human to act on. `AUTO_PILOT`: the agent
|
|
3805
|
+
* may take that action itself, subject to the platform's safety checks.
|
|
3306
3806
|
* @enum {string}
|
|
3307
3807
|
*/
|
|
3308
3808
|
KybAgenticMode: "DISABLED" | "SUGGEST" | "AUTO_PILOT";
|
|
3809
|
+
/**
|
|
3810
|
+
* @description The outcome of a case decision: `APPROVED` or `REJECTED`. A decision is never edited once
|
|
3811
|
+
* made; if the case is reopened, a later decision supersedes it.
|
|
3812
|
+
* @enum {string}
|
|
3813
|
+
*/
|
|
3814
|
+
KybCaseDecisionOutcome: "APPROVED" | "REJECTED";
|
|
3815
|
+
/**
|
|
3816
|
+
* @description Why a case was decided the way it was, as a fixed set of codes. The code classifies the
|
|
3817
|
+
* decision; the decision's free-text reason explains it. Defaults to `OTHER` when no code is
|
|
3818
|
+
* given.
|
|
3819
|
+
* @enum {string}
|
|
3820
|
+
*/
|
|
3821
|
+
KybCaseDecisionReasonCode: "CDD_INCOMPLETE" | "SANCTIONS_CONFIRMED" | "PEP_CONFIRMED" | "ADVERSE_MEDIA" | "OUTSIDE_RISK_APPETITE" | "SUSPECTED_FRAUD" | "APPLICANT_UNRESPONSIVE" | "OTHER";
|
|
3822
|
+
/** @description What kind of reason a platform admin's moderation rests on, as a multipart text field.
|
|
3823
|
+
*
|
|
3824
|
+
* A newtype because the payload is multipart rather than JSON: the code's own `FromStr` reads
|
|
3825
|
+
* exactly the `SCREAMING_SNAKE_CASE` names the wire carries everywhere else, so a value spelled
|
|
3826
|
+
* one way in JSON cannot mean something else here. */
|
|
3827
|
+
KybCaseDecisionReasonCodeField: components["schemas"]["KybCaseDecisionReasonCode"];
|
|
3828
|
+
/**
|
|
3829
|
+
* @description The case engine's due-diligence level, as the manifest and the case row carry it. Mirrors the
|
|
3830
|
+
* `kyb_case_due_diligence_level_check` DB CHECK vocabulary; the profile document uses lowercase
|
|
3831
|
+
* levels, which the builder maps to these values.
|
|
3832
|
+
* @enum {string}
|
|
3833
|
+
*/
|
|
3834
|
+
KybCaseDueDiligenceLevel: "SIMPLIFIED" | "STANDARD" | "ENHANCED";
|
|
3835
|
+
/** @description A KYB case's officers: the ultimate beneficial owners and the directors the case screens and
|
|
3836
|
+
* invites into KYC. What the case's officer routes answer — the roster as it stands after the act. */
|
|
3837
|
+
KybCaseOfficersResponse: {
|
|
3838
|
+
/** Format: uuid */
|
|
3839
|
+
caseId: string;
|
|
3840
|
+
directors: components["schemas"]["DirectorDefinition"][];
|
|
3841
|
+
ubos: components["schemas"]["UboDefinition"][];
|
|
3842
|
+
};
|
|
3843
|
+
/**
|
|
3844
|
+
* @description Which planner a manifest pins (OrchestrationSpec.kind). Mirrors the `kyb_case_orchestration_decision_kind_check` DB CHECK vocabulary.
|
|
3845
|
+
* @enum {string}
|
|
3846
|
+
*/
|
|
3847
|
+
KybCaseOrchestratorKind: "LINEAR" | "JDM" | "LLM";
|
|
3848
|
+
/**
|
|
3849
|
+
* @description Who opened a KYB case.
|
|
3850
|
+
* @enum {string}
|
|
3851
|
+
*/
|
|
3852
|
+
KybCaseOrigin: "END_USER" | "OPERATOR" | "MIGRATION";
|
|
3853
|
+
/**
|
|
3854
|
+
* @description How a planner runs.
|
|
3855
|
+
*
|
|
3856
|
+
* For the AI planner, which never orders runs, the mode says what becomes of what it proposes:
|
|
3857
|
+
* nothing (`DISABLED`, it is not asked), a reviewer's decision (`SUGGEST`), or acceptance by the
|
|
3858
|
+
* engine itself (`AUTO_PILOT`). Autopilot applies only changes that make the case stricter — the
|
|
3859
|
+
* same "stricter only" check a reviewer's acceptance goes through — and never orders, waives,
|
|
3860
|
+
* lowers or decides anything. The linear and rules planners do not read the mode.
|
|
3861
|
+
* @enum {string}
|
|
3862
|
+
*/
|
|
3863
|
+
KybCasePlannerMode: "DISABLED" | "SUGGEST" | "AUTO_PILOT";
|
|
3864
|
+
/**
|
|
3865
|
+
* @description The lifecycle status of a KYB case. `APPROVED`, `REJECTED` and `CANCELLED` close the case; a
|
|
3866
|
+
* closed case can later be reopened (for example when the applicant resubmits or a periodic
|
|
3867
|
+
* review is due), which moves it back to `OPEN` or `PROCESSING`.
|
|
3868
|
+
* @enum {string}
|
|
3869
|
+
*/
|
|
3870
|
+
KybCaseStatus: "OPEN" | "PROCESSING" | "WAITING_INPUT" | "ACTION_REQUIRED" | "READY_FOR_REVIEW" | "APPROVED" | "REJECTED" | "CANCELLED";
|
|
3309
3871
|
KybCommunication: {
|
|
3310
3872
|
body: string;
|
|
3311
3873
|
/** Format: uuid */
|
|
@@ -3328,6 +3890,26 @@ export interface components {
|
|
|
3328
3890
|
* input and folded into `customCountryDocuments["**"]` (see
|
|
3329
3891
|
* `KybDocumentCatalog::fold_legacy_documents`); they are never serialized. */
|
|
3330
3892
|
KybConfig: {
|
|
3893
|
+
/** @description What the KYB reviewer may look up by itself on this flow's cases, and what that may cost.
|
|
3894
|
+
*
|
|
3895
|
+
* **Off unless you turn it on.** With `enabled: true` the reviewer, after reading the case,
|
|
3896
|
+
* tries to close the gaps it could not close from the case alone: the company's **registry
|
|
3897
|
+
* record** and its **ownership graph**, **adverse media** on the company and its officers,
|
|
3898
|
+
* and a **hosted web search**. Nothing is decided from it — what it finds is recorded on the
|
|
3899
|
+
* run and shown beside the recommendation.
|
|
3900
|
+
*
|
|
3901
|
+
* **What it costs.** Answers your organization already holds and that are still valid are
|
|
3902
|
+
* adopted for free. Anything bought is bought through the same services the rest of the
|
|
3903
|
+
* platform buys through and is **metered at your usual prices**, inside `spendLimit`
|
|
3904
|
+
* (in credits, per run) — a purchase that would exceed it is not made. The hosted search is
|
|
3905
|
+
* absorbed by the platform and bounded by `maxSearches`. Both sit under a platform ceiling;
|
|
3906
|
+
* terms above it are refused when the flow is saved.
|
|
3907
|
+
*
|
|
3908
|
+
* **What leaves the platform.** The hosted search receives the company's four public
|
|
3909
|
+
* identifiers and nothing else: its legal name, its registration number, its country and its
|
|
3910
|
+
* website. No person's name, no document, no case text. The other tools are the ones your
|
|
3911
|
+
* cases already use. */
|
|
3912
|
+
agentResearch?: components["schemas"]["AgentResearchTerms"];
|
|
3331
3913
|
/** @default DISABLED */
|
|
3332
3914
|
agenticMode: components["schemas"]["KybAgenticMode"];
|
|
3333
3915
|
/**
|
|
@@ -3358,11 +3940,11 @@ export interface components {
|
|
|
3358
3940
|
* @example false
|
|
3359
3941
|
*/
|
|
3360
3942
|
collectDirectors: boolean;
|
|
3361
|
-
/** @description
|
|
3362
|
-
*
|
|
3363
|
-
*
|
|
3364
|
-
*
|
|
3365
|
-
*
|
|
3943
|
+
/** @description Your organization's KYB document configuration: overrides of platform catalog documents
|
|
3944
|
+
* and documents of your own. Keyed by ISO 3166-1 alpha-2 country code (other ISO formats are
|
|
3945
|
+
* accepted and normalized), or by `"**"` for every country without a list of its own. A
|
|
3946
|
+
* country's list replaces the `"**"` list for that country; neither replaces the platform
|
|
3947
|
+
* catalog. */
|
|
3366
3948
|
customCountryDocuments?: {
|
|
3367
3949
|
[key: string]: components["schemas"]["KybCountryDocument"][];
|
|
3368
3950
|
};
|
|
@@ -3375,47 +3957,24 @@ export interface components {
|
|
|
3375
3957
|
*/
|
|
3376
3958
|
discoveryBudgetCredits?: number | null;
|
|
3377
3959
|
/**
|
|
3378
|
-
* @description Whether
|
|
3379
|
-
*
|
|
3380
|
-
*
|
|
3381
|
-
* Moved here (2026-07-31, integration plan §10.4) from `KybUbosConfig`, where it originally
|
|
3382
|
-
* lived back when discovery was a `KYB_UBOS`-step-initiated action. Discovery now dispatches
|
|
3383
|
-
* from the ANCHOR on business-info submission (`KybDiscoveryService::start_graph_discovery`,
|
|
3384
|
-
* called from `submit_kyb_business_info`), so the opt-in has to live where the behavior
|
|
3385
|
-
* actually triggers. `KybUbosConfig` does **not** keep a copy — both discovery fields were
|
|
3386
|
-
* deleted from it outright (see its doc comment below). Nothing needs one: `KybUbosConfig`
|
|
3387
|
-
* has no `deny_unknown_fields`, so already-persisted flow-step JSON — and the historical
|
|
3388
|
-
* `m20260717_split_kyb_step` migration, which is never edited once applied — keep
|
|
3389
|
-
* deserializing whether the old keys are still present or `m20260731_kyb_discovery_replaces_declarations`
|
|
3390
|
-
* has stripped them. Defaults to `false`: a traversal spends the organization's credits, so a
|
|
3391
|
-
* flow that never opted in must never dispatch one.
|
|
3960
|
+
* @description Whether submitting the business information automatically starts ownership discovery:
|
|
3961
|
+
* looking up the company's ownership structure in company registers. Discovery spends your
|
|
3962
|
+
* organization's credits. Defaults to `false`.
|
|
3392
3963
|
* @default false
|
|
3393
3964
|
* @example true
|
|
3394
3965
|
*/
|
|
3395
3966
|
discoveryEnabled: boolean;
|
|
3396
|
-
/** @description The
|
|
3397
|
-
* clients**
|
|
3398
|
-
*
|
|
3399
|
-
*
|
|
3400
|
-
* universal [`GLOBAL_DOCUMENTS_KEY`] entry, which is always present: resolve
|
|
3401
|
-
* `documentsPerCountry[country] ?? documentsPerCountry["**"]`. On-demand and disabled
|
|
3402
|
-
* documents are left out and `validationSchema` is emptied.
|
|
3403
|
-
*
|
|
3404
|
-
* **Not a server-side source of truth.** A stored step config never carries it; server-side
|
|
3405
|
-
* callers resolve from the live catalog through `DocumentDefinitionService::load_gating_documents`
|
|
3406
|
-
* / `load_upfront_documents`. It round-trips through the flow cache to save the client a
|
|
3407
|
-
* round trip. */
|
|
3967
|
+
/** @description Read-only. The documents the applicant must upload up front, per country, as served to
|
|
3968
|
+
* clients. One entry per country with a configured list, plus a `"**"` entry that is always
|
|
3969
|
+
* present: look up `documentsPerCountry[country] ?? documentsPerCountry["**"]`. On-demand and
|
|
3970
|
+
* disabled documents are left out, and `validationSchema` is empty. */
|
|
3408
3971
|
documentsPerCountry?: {
|
|
3409
3972
|
[key: string]: components["schemas"]["KybCountryDocument"][];
|
|
3410
3973
|
} | null;
|
|
3411
3974
|
/**
|
|
3412
3975
|
* Format: uuid
|
|
3413
|
-
* @description
|
|
3414
|
-
*
|
|
3415
|
-
* dual-shape window (WP2->WP4) this anchor-level copy stays with `#[serde(default)]` so a
|
|
3416
|
-
* flow assembled natively in split shape (no UBOs/directors satellite, hence nothing to
|
|
3417
|
-
* mirror this from) can omit `kycFlowId` entirely on the anchor, matching every other moved
|
|
3418
|
-
* field on this struct — dropped from the Rust struct in WP5.
|
|
3976
|
+
* @description Deprecated: set `kycFlowId` on the UBOs and directors steps instead, which lets each use its
|
|
3977
|
+
* own KYC flow. May be omitted; will be removed in a future version.
|
|
3419
3978
|
*/
|
|
3420
3979
|
kycFlowId?: string;
|
|
3421
3980
|
/** @example { "default": "Next step" } */
|
|
@@ -3440,6 +3999,21 @@ export interface components {
|
|
|
3440
3999
|
* @example 3
|
|
3441
4000
|
*/
|
|
3442
4001
|
maxUbos: number;
|
|
4002
|
+
/** @default LINEAR */
|
|
4003
|
+
orchestrator: components["schemas"]["KybCaseOrchestratorKind"];
|
|
4004
|
+
plannerMode?: null | components["schemas"]["KybCasePlannerMode"];
|
|
4005
|
+
/**
|
|
4006
|
+
* @description Ask a US business for its EIN and match it, with the company name, against IRS records
|
|
4007
|
+
* when the business information is submitted (a TIN check).
|
|
4008
|
+
*
|
|
4009
|
+
* Only US businesses are asked: an EIN is a US identifier, and the check is a US one. A
|
|
4010
|
+
* submission whose EIN and name do not match is refused, so the applicant can correct it.
|
|
4011
|
+
* Each check that returns a verdict is billed to the organization as a TIN check
|
|
4012
|
+
* (`creditCosts.tinCheck`), and needs the `TIN_CHECK` product. Defaults to `false`.
|
|
4013
|
+
* @default false
|
|
4014
|
+
* @example true
|
|
4015
|
+
*/
|
|
4016
|
+
tinCheckEnabled: boolean;
|
|
3443
4017
|
};
|
|
3444
4018
|
/** @description One KYB document, either as a platform catalog row, as an organisation override in
|
|
3445
4019
|
* `customCountryDocuments`, or as an entry of a resolved (effective) list.
|
|
@@ -3480,6 +4054,16 @@ export interface components {
|
|
|
3480
4054
|
* Platform-owned, and emptied (`{}`) in every map served to a client. */
|
|
3481
4055
|
validationSchema?: unknown;
|
|
3482
4056
|
};
|
|
4057
|
+
/** @description What the legacy KYB decision routes answer — the console's approve and the two SDK routes.
|
|
4058
|
+
*
|
|
4059
|
+
* The `KybResult` is flattened, so a decision that closed the case serializes **byte for byte**
|
|
4060
|
+
* what these routes have always returned (legacy paths and payloads unchanged) and
|
|
4061
|
+
* `decisionProposal` is absent. A decision the matrix turned into a proposal answers `202` with
|
|
4062
|
+
* the UNCHANGED result plus the block: the caller sees that its act was recorded, that the file
|
|
4063
|
+
* did not move, and who is being waited on. */
|
|
4064
|
+
KybDecisionResponse: components["schemas"]["KybResult"] & {
|
|
4065
|
+
decisionProposal?: null | components["schemas"]["DecisionProposalRecorded"];
|
|
4066
|
+
};
|
|
3483
4067
|
/** @description Configuration for the `KYB_DIRECTORS` satellite step.
|
|
3484
4068
|
*
|
|
3485
4069
|
* Carries the director declaration settings previously bundled into the monolithic
|
|
@@ -3496,7 +4080,8 @@ export interface components {
|
|
|
3496
4080
|
kybStepId: string;
|
|
3497
4081
|
/**
|
|
3498
4082
|
* Format: uuid
|
|
3499
|
-
* @description
|
|
4083
|
+
* @description The KYC flow directors are invited into to verify their identity. Only used when
|
|
4084
|
+
* `requireKyc` is `true`; may be omitted otherwise.
|
|
3500
4085
|
*/
|
|
3501
4086
|
kycFlowId?: string;
|
|
3502
4087
|
/** @example { "default": "Next step" } */
|
|
@@ -3510,10 +4095,10 @@ export interface components {
|
|
|
3510
4095
|
*/
|
|
3511
4096
|
maxDirectors: number;
|
|
3512
4097
|
/**
|
|
3513
|
-
* @description
|
|
3514
|
-
*
|
|
3515
|
-
*
|
|
3516
|
-
*
|
|
4098
|
+
* @description Whether each declared director must complete a KYC flow (`true`, the default) or is only
|
|
4099
|
+
* screened by name. When `true`, an email address is required for each director and they are
|
|
4100
|
+
* invited into `kycFlowId`. Independent of the UBOs setting: a flow may verify its UBOs while
|
|
4101
|
+
* screening its directors by name only, or the reverse.
|
|
3517
4102
|
* @default true
|
|
3518
4103
|
* @example false
|
|
3519
4104
|
*/
|
|
@@ -3525,6 +4110,11 @@ export interface components {
|
|
|
3525
4110
|
/** Format: int32 */
|
|
3526
4111
|
directorCount: number;
|
|
3527
4112
|
};
|
|
4113
|
+
/**
|
|
4114
|
+
* @description Where a KYB discovery request (a company-registry lookup) stands: `PENDING`, `COMPLETED` or `FAILED`.
|
|
4115
|
+
* @enum {string}
|
|
4116
|
+
*/
|
|
4117
|
+
KybDiscoveryRequestStatus: "PENDING" | "COMPLETED" | "FAILED";
|
|
3528
4118
|
/** @description A reviewer's correction of one document check verdict. */
|
|
3529
4119
|
KybDocumentCheckOverride: {
|
|
3530
4120
|
modelStatus?: null | components["schemas"]["KybDocumentCheckStatus"];
|
|
@@ -3612,13 +4202,18 @@ export interface components {
|
|
|
3612
4202
|
* - `Standard` — operator requests a named document (e.g. certificate of incorporation). The client uploads a file.
|
|
3613
4203
|
* - `Clarification` — operator requests the client to re-confirm or update specific business information fields.
|
|
3614
4204
|
* Supports per-field review via `field_statuses`.
|
|
3615
|
-
* - `UboDeclaration` — reopens the `KYB_UBOS` satellite for a fresh applicant declaration
|
|
3616
|
-
*
|
|
3617
|
-
*
|
|
4205
|
+
* - `UboDeclaration` — reopens the `KYB_UBOS` satellite for a fresh applicant declaration. Used to
|
|
4206
|
+
* regress a discovery-backed flow's UBOs part back to awaiting-client when the graph produced
|
|
4207
|
+
* nothing usable.
|
|
3618
4208
|
* - `DirectorDeclaration` — same as `UboDeclaration`, for the `KYB_DIRECTORS` satellite.
|
|
4209
|
+
* - `OwnershipConfirmation` — opened by a reopening (a quality review's disagreement or the
|
|
4210
|
+
* periodic review), never by hand: the company is asked to confirm, through the existing request
|
|
4211
|
+
* link, that the owners and officers on file are still the ones there are. The answer lands as
|
|
4212
|
+
* the applicant's own assertions; while it is open the case waits on the applicant, and
|
|
4213
|
+
* deciding without it takes an exception like any other open request.
|
|
3619
4214
|
* @enum {string}
|
|
3620
4215
|
*/
|
|
3621
|
-
KybDocumentRequestType: "STANDARD" | "CLARIFICATION" | "UBO_DECLARATION" | "DIRECTOR_DECLARATION";
|
|
4216
|
+
KybDocumentRequestType: "STANDARD" | "CLARIFICATION" | "UBO_DECLARATION" | "DIRECTOR_DECLARATION" | "OWNERSHIP_CONFIRMATION";
|
|
3622
4217
|
KybDocumentReviewReason: string | components["schemas"]["BusinessInformationClarificationResponse"];
|
|
3623
4218
|
/**
|
|
3624
4219
|
* @description Where an effective KYB document entry comes from.
|
|
@@ -3683,6 +4278,25 @@ export interface components {
|
|
|
3683
4278
|
} & {
|
|
3684
4279
|
[key: string]: unknown;
|
|
3685
4280
|
};
|
|
4281
|
+
/**
|
|
4282
|
+
* @description Where a document bought from a company register stands: `PENDING`, `COMPLETED` or `FAILED`.
|
|
4283
|
+
* @enum {string}
|
|
4284
|
+
*/
|
|
4285
|
+
KybPurchasedDocumentStatus: "PENDING" | "COMPLETED" | "FAILED";
|
|
4286
|
+
/**
|
|
4287
|
+
* @description A company's risk level, from lowest to highest severity: `LOW`, `MEDIUM`, `HIGH`, `CRITICAL`.
|
|
4288
|
+
* @enum {string}
|
|
4289
|
+
*/
|
|
4290
|
+
KybRatingLevel: "LOW" | "MEDIUM" | "HIGH" | "CRITICAL";
|
|
4291
|
+
/**
|
|
4292
|
+
* @deprecated
|
|
4293
|
+
* @description The legacy KYB result: a KYB case in the format used before KYB cases existed.
|
|
4294
|
+
*
|
|
4295
|
+
* **Deprecated.** Still returned by the flow-result, verification-request and KYB endpoints and
|
|
4296
|
+
* by `LEGACY_V1` webhooks, unchanged. Its `id` is the id of its KYB case: to migrate, read the case
|
|
4297
|
+
* at `/sdk/organizations/{organizationId}/kyb-cases/{id}`, or use the `kybCase` field of a `V2`
|
|
4298
|
+
* webhook.
|
|
4299
|
+
*/
|
|
3686
4300
|
KybResult: {
|
|
3687
4301
|
/** Format: date-time */
|
|
3688
4302
|
assignedAt?: string | null;
|
|
@@ -3730,6 +4344,8 @@ export interface components {
|
|
|
3730
4344
|
};
|
|
3731
4345
|
/** @description KYB (Know Your Business) step output for workflow decisions. */
|
|
3732
4346
|
KybStepOutput: {
|
|
4347
|
+
/** @description Whether the company's screening found adverse media. */
|
|
4348
|
+
amlAdverseMedia?: boolean | null;
|
|
3733
4349
|
amlPep?: boolean | null;
|
|
3734
4350
|
/** Format: int32 */
|
|
3735
4351
|
amlRiskScorePercent?: number | null;
|
|
@@ -3741,6 +4357,22 @@ export interface components {
|
|
|
3741
4357
|
registrationNumber?: string | null;
|
|
3742
4358
|
status: components["schemas"]["ResultStatus"];
|
|
3743
4359
|
};
|
|
4360
|
+
/** @description A subject the analyst layer keeps a row about: an organization-wide person, or a company by its
|
|
4361
|
+
* normalized key — the same two subjects an attestation is about.
|
|
4362
|
+
*
|
|
4363
|
+
* On the wire it is tagged, `{ "kind": "PERSON", "personId": … }` or
|
|
4364
|
+
* `{ "kind": "COMPANY", "companyKey": … }`, so a client cannot send a person id and a company key
|
|
4365
|
+
* at once, which the tables' subject CHECK would refuse anyway. */
|
|
4366
|
+
KybSubjectRef: {
|
|
4367
|
+
/** @enum {string} */
|
|
4368
|
+
kind: "PERSON";
|
|
4369
|
+
/** Format: uuid */
|
|
4370
|
+
personId: string;
|
|
4371
|
+
} | {
|
|
4372
|
+
companyKey: string;
|
|
4373
|
+
/** @enum {string} */
|
|
4374
|
+
kind: "COMPANY";
|
|
4375
|
+
};
|
|
3744
4376
|
/** @description Configuration for the `KYB_UBOS` satellite step.
|
|
3745
4377
|
*
|
|
3746
4378
|
* Carries the UBO declaration + child-KYC invitation settings previously bundled
|
|
@@ -3762,8 +4394,8 @@ export interface components {
|
|
|
3762
4394
|
kybStepId: string;
|
|
3763
4395
|
/**
|
|
3764
4396
|
* Format: uuid
|
|
3765
|
-
* @description The flow UBOs are invited into
|
|
3766
|
-
*
|
|
4397
|
+
* @description The KYC flow UBOs are invited into to verify their identity. Only used when `requireKyc`
|
|
4398
|
+
* is `true`; may be omitted otherwise.
|
|
3767
4399
|
*/
|
|
3768
4400
|
kycFlowId?: string;
|
|
3769
4401
|
/** @example { "default": "Next step" } */
|
|
@@ -3867,15 +4499,6 @@ export interface components {
|
|
|
3867
4499
|
LogicalOperator: "BRANCH" | "SWITCH" | "MERGE" | "PARALLEL_SPLIT" | "PARALLEL_JOIN";
|
|
3868
4500
|
/** @enum {string} */
|
|
3869
4501
|
ManualReviewResultStatus: "approved" | "rejected" | "failed";
|
|
3870
|
-
ModerateKybResultPayload: {
|
|
3871
|
-
pepAndSanctionsStatus?: null | components["schemas"]["PepAndSanctionsStatusField"];
|
|
3872
|
-
/** Format: binary */
|
|
3873
|
-
reportFile?: Blob;
|
|
3874
|
-
status?: null | components["schemas"]["ModerationResultStatusField"];
|
|
3875
|
-
};
|
|
3876
|
-
ModerateKybResultResponse: {
|
|
3877
|
-
success: boolean;
|
|
3878
|
-
};
|
|
3879
4502
|
/** @enum {string} */
|
|
3880
4503
|
ModerationResultStatus: "ACQUIRING" | "ENRICHING" | "PENDING_MODERATION" | "REVIEW_REQUIRED" | "SUCCESS" | "FAILED";
|
|
3881
4504
|
ModerationResultStatusField: components["schemas"]["ModerationResultStatus"];
|
|
@@ -3943,6 +4566,31 @@ export interface components {
|
|
|
3943
4566
|
email?: string | null;
|
|
3944
4567
|
role: components["schemas"]["Role"];
|
|
3945
4568
|
};
|
|
4569
|
+
/** @description Who owes the next act.
|
|
4570
|
+
*
|
|
4571
|
+
* `Reviewer` carries the role the matrix named and the identity the subject is assigned to where
|
|
4572
|
+
* there is one; both are optional because "a reviewer" is a complete answer when the case names
|
|
4573
|
+
* nobody in particular. The kind of principal is NOT read here: that is kept to the confirmation
|
|
4574
|
+
* rule and the quality review. */
|
|
4575
|
+
OwedBy: {
|
|
4576
|
+
/** @enum {string} */
|
|
4577
|
+
party: "APPLICANT";
|
|
4578
|
+
} | {
|
|
4579
|
+
/** Format: uuid */
|
|
4580
|
+
identityId?: string | null;
|
|
4581
|
+
/** @enum {string} */
|
|
4582
|
+
party: "REVIEWER";
|
|
4583
|
+
role?: null | components["schemas"]["Role"];
|
|
4584
|
+
} | {
|
|
4585
|
+
/** @enum {string} */
|
|
4586
|
+
party: "AGENT";
|
|
4587
|
+
} | {
|
|
4588
|
+
/** @enum {string} */
|
|
4589
|
+
party: "PROVIDER";
|
|
4590
|
+
} | {
|
|
4591
|
+
/** @enum {string} */
|
|
4592
|
+
party: "PLATFORM";
|
|
4593
|
+
};
|
|
3946
4594
|
OwnershipBirthDate: {
|
|
3947
4595
|
/** Format: int32 */
|
|
3948
4596
|
day: number;
|
|
@@ -3956,11 +4604,7 @@ export interface components {
|
|
|
3956
4604
|
id: string;
|
|
3957
4605
|
legalName: string;
|
|
3958
4606
|
};
|
|
3959
|
-
/** @description Why
|
|
3960
|
-
* `GraphNodeContinuationDTO`, mirrored tolerantly like every other provider shape here.
|
|
3961
|
-
*
|
|
3962
|
-
* `reason` is free-form for the same reason [`OwnershipFlags::status`] is: the provider
|
|
3963
|
-
* documents `budget` today and a new value must not fail a write. */
|
|
4607
|
+
/** @description Why an ownership node was left unexplored, and what continuing discovery from it would take. */
|
|
3964
4608
|
OwnershipContinuation: {
|
|
3965
4609
|
/**
|
|
3966
4610
|
* Format: double
|
|
@@ -4038,13 +4682,9 @@ export interface components {
|
|
|
4038
4682
|
continuation?: null | components["schemas"]["OwnershipContinuation"];
|
|
4039
4683
|
flags: components["schemas"]["OwnershipFlags"];
|
|
4040
4684
|
nodeId: string;
|
|
4041
|
-
/** @description
|
|
4042
|
-
* `
|
|
4043
|
-
*
|
|
4044
|
-
* themselves never carry it on the wire; it is joined in at graph-mapping time. `None` for
|
|
4045
|
-
* graphs stored before provenance was captured and for nodes the provider did not attribute.
|
|
4046
|
-
* On [`OwnershipStructure::merge`] it travels with the node snapshot that wins, so the
|
|
4047
|
-
* provenance shown always describes the data actually kept. */
|
|
4685
|
+
/** @description Where this node's data came from, as reported by the company-registry data provider: which
|
|
4686
|
+
* register, or `ai_analysis` of named filings (a weaker level of assurance). Absent for older
|
|
4687
|
+
* ownership structures and for nodes the provider did not attribute. */
|
|
4048
4688
|
source?: unknown;
|
|
4049
4689
|
/** Format: double */
|
|
4050
4690
|
totalOwnershipPercentage?: number | null;
|
|
@@ -4170,13 +4810,9 @@ export interface components {
|
|
|
4170
4810
|
/** Format: int32 */
|
|
4171
4811
|
low: number;
|
|
4172
4812
|
};
|
|
4173
|
-
/** @description What
|
|
4174
|
-
*
|
|
4175
|
-
*
|
|
4176
|
-
* portrait-attributes checks are switched on: these estimates are the evidence those checks
|
|
4177
|
-
* decide on, and — like [`ReplayAssessment`] — they have to be readable without the response
|
|
4178
|
-
* log, both to question a verdict and to calibrate the tolerances against real captures. The
|
|
4179
|
-
* checks' own `security_checks` entries record only a status. */
|
|
4813
|
+
/** @description What face analysis estimated from the portrait printed on the identity document: whether it
|
|
4814
|
+
* is a face, the apparent age range and the perceived gender. Recorded for every scan that
|
|
4815
|
+
* found a portrait, and used as the evidence behind the portrait-attribute security checks. */
|
|
4180
4816
|
PortraitEstimate: {
|
|
4181
4817
|
ageRange?: null | components["schemas"]["PortraitAgeRange"];
|
|
4182
4818
|
/**
|
|
@@ -4219,11 +4855,11 @@ export interface components {
|
|
|
4219
4855
|
* the applicant's submission against it. */
|
|
4220
4856
|
authoritative: boolean;
|
|
4221
4857
|
businessInformation: components["schemas"]["BusinessInformation"];
|
|
4222
|
-
/** @description
|
|
4223
|
-
*
|
|
4858
|
+
/** @description Directors and officers found for the company, for the applicant to pick from. Empty unless
|
|
4859
|
+
* the company's country has a national registry that lists officers. */
|
|
4224
4860
|
directorCandidates: components["schemas"]["DirectorCandidate"][];
|
|
4225
|
-
/** @description `true` when
|
|
4226
|
-
*
|
|
4861
|
+
/** @description `true` when some company data is still being retrieved from the company-registry data
|
|
4862
|
+
* provider and will be completed later; `false` when the prefill is already complete. */
|
|
4227
4863
|
pending: boolean;
|
|
4228
4864
|
};
|
|
4229
4865
|
/** @description Typed representation of process_additional_data stored in DV results.
|
|
@@ -4234,7 +4870,7 @@ export interface components {
|
|
|
4234
4870
|
*
|
|
4235
4871
|
* # Deserialization
|
|
4236
4872
|
*
|
|
4237
|
-
* Supports both new abstract format and legacy
|
|
4873
|
+
* Supports both new abstract format and legacy format. The main difference
|
|
4238
4874
|
* is in the `imageQuality` field:
|
|
4239
4875
|
*
|
|
4240
4876
|
* **New format:**
|
|
@@ -4246,7 +4882,7 @@ export interface components {
|
|
|
4246
4882
|
* }
|
|
4247
4883
|
* ```
|
|
4248
4884
|
*
|
|
4249
|
-
* **Legacy
|
|
4885
|
+
* **Legacy format:**
|
|
4250
4886
|
* ```json
|
|
4251
4887
|
* {
|
|
4252
4888
|
* "imageQuality": [
|
|
@@ -4272,9 +4908,9 @@ export interface components {
|
|
|
4272
4908
|
biometricCheckData?: unknown;
|
|
4273
4909
|
/**
|
|
4274
4910
|
* Format: date
|
|
4275
|
-
* @description Date on which
|
|
4276
|
-
*
|
|
4277
|
-
*
|
|
4911
|
+
* @description Date on which the `DocumentExpired` webhook was sent for this document-verification result.
|
|
4912
|
+
* Absent until the document has expired and the webhook has gone out; the webhook is sent
|
|
4913
|
+
* only once per result.
|
|
4278
4914
|
*/
|
|
4279
4915
|
documentExpiredWebhookSentAt?: string | null;
|
|
4280
4916
|
extraction?: null | components["schemas"]["DocscanExtractionProvenance"];
|
|
@@ -4329,16 +4965,14 @@ export interface components {
|
|
|
4329
4965
|
forceDocumentType?: number | null;
|
|
4330
4966
|
/** @description One front image and an optional back image, base64-encoded. */
|
|
4331
4967
|
images?: components["schemas"]["InputImage"][];
|
|
4332
|
-
/** @description
|
|
4333
|
-
* `
|
|
4334
|
-
* If provided along with session_token, the backend will fetch results from the provider. */
|
|
4968
|
+
/** @description Session ID of a hosted document-capture session, as returned when the session was created.
|
|
4969
|
+
* Send it together with `sessionToken` to have the results fetched from the capture session. */
|
|
4335
4970
|
interviewId?: string | null;
|
|
4336
4971
|
platform?: string | null;
|
|
4337
4972
|
provinceCode?: string | null;
|
|
4338
|
-
/** @description Session token for
|
|
4339
|
-
* `
|
|
4340
|
-
*
|
|
4341
|
-
* instead of scanning uploaded images. */
|
|
4973
|
+
/** @description Session token for a hosted document-capture session, as returned when the session was
|
|
4974
|
+
* created. Send it together with `interviewId` (and no `images`) to have the results fetched
|
|
4975
|
+
* from the capture session instead of scanning uploaded images. */
|
|
4342
4976
|
sessionToken?: string | null;
|
|
4343
4977
|
/** @description Uncropped originals accompanying `images`, base64-encoded. Optional: omit for clients
|
|
4344
4978
|
* that only submit cropped images. Stored in S3 next to the doc-scan logs under their own
|
|
@@ -4374,12 +5008,12 @@ export interface components {
|
|
|
4374
5008
|
};
|
|
4375
5009
|
/** @enum {string} */
|
|
4376
5010
|
ProductType: "UNKNOWN" | "DOCSCAN" | "LIVENESS" | "POA" | "KYB" | "KYC_PASSPORT" | "SPID" | "PHONE" | "WALLET" | "EXPORT_API" | "EXPORT_UI" | "BUSINESS_VERIFICATION" | "FLOW_BUILDER" | "GEOLOCATION" | "FORM" | "AML" | "TRANSACTION_MONITORING" | "TIN_CHECK";
|
|
4377
|
-
/** @description Payload for `POST .../kyb/{
|
|
5011
|
+
/** @description Payload for `POST .../kyb-cases/{case_id}/documents/purchase`. */
|
|
4378
5012
|
PurchaseDocumentsPayload: {
|
|
4379
5013
|
/** @description Document ids from a freshly-refreshed catalogue. Between 1 and 25. */
|
|
4380
5014
|
documentIds: string[];
|
|
4381
5015
|
};
|
|
4382
|
-
/** @description Response for `POST .../kyb/{
|
|
5016
|
+
/** @description Response for `POST .../kyb-cases/{case_id}/documents/purchase`. Partial acceptance: only a
|
|
4383
5017
|
* request where *every* document is refused is a `400`. */
|
|
4384
5018
|
PurchaseDocumentsResponse: {
|
|
4385
5019
|
purchases: components["schemas"]["DocumentPurchaseDecision"][];
|
|
@@ -4394,7 +5028,7 @@ export interface components {
|
|
|
4394
5028
|
*/
|
|
4395
5029
|
verificationRequestId: string;
|
|
4396
5030
|
};
|
|
4397
|
-
/** @description One purchased document, as reported by `GET .../kyb/{
|
|
5031
|
+
/** @description One purchased document, as reported by `GET .../kyb-cases/{case_id}/documents`. */
|
|
4398
5032
|
PurchasedDocument: {
|
|
4399
5033
|
category: string;
|
|
4400
5034
|
/** Format: int32 */
|
|
@@ -4410,21 +5044,21 @@ export interface components {
|
|
|
4410
5044
|
purchaseId: string;
|
|
4411
5045
|
/** Format: date-time */
|
|
4412
5046
|
purchasedAt: string;
|
|
4413
|
-
|
|
4414
|
-
status: string;
|
|
5047
|
+
status: components["schemas"]["KybPurchasedDocumentStatus"];
|
|
4415
5048
|
subType?: string | null;
|
|
4416
5049
|
};
|
|
4417
|
-
/** @description
|
|
4418
|
-
*
|
|
4419
|
-
* Unlike [`DocscanExtractionProvenance`], this deliberately does carry the per-side feature
|
|
4420
|
-
* values, at a cost of roughly two kilobytes on a `JSONB` column every result query reads.
|
|
4421
|
-
* The reason is specific and temporary: the detector's thresholds come from synthetic
|
|
4422
|
-
* captures, and production results are the only source of the real ones. A rejected capture
|
|
4423
|
-
* is precisely the case worth studying, and it never reaches the S3 response log — the scan
|
|
4424
|
-
* is refused before extraction, so no provider response exists to log. Without the numbers
|
|
4425
|
-
* here the evidence for a rejection is unreachable.
|
|
5050
|
+
/** @description Request body for `POST /sdk/organizations/{organization_id}/kyb/{kyb_result_id}/reject`.
|
|
4426
5051
|
*
|
|
4427
|
-
*
|
|
5052
|
+
* A rejection is a decision on the company's case and needs a reason; the API key that takes it
|
|
5053
|
+
* is named beside the reason on the case's decision. */
|
|
5054
|
+
RejectKybPayload: {
|
|
5055
|
+
/** @description Why the company is rejected. Required, and never blank. */
|
|
5056
|
+
reason: string;
|
|
5057
|
+
reasonCode?: null | components["schemas"]["KybCaseDecisionReasonCode"];
|
|
5058
|
+
};
|
|
5059
|
+
/** @description Result of the replay-attack check for one document: whether the capture looks like a live
|
|
5060
|
+
* document or a reproduction of one (a photo of a screen or of a print), with the scores behind
|
|
5061
|
+
* that verdict for the document as a whole and for each side. */
|
|
4428
5062
|
ReplayAssessment: {
|
|
4429
5063
|
/**
|
|
4430
5064
|
* Format: double
|
|
@@ -4463,7 +5097,7 @@ export interface components {
|
|
|
4463
5097
|
* another capture and is not an accusation. */
|
|
4464
5098
|
verdict: string;
|
|
4465
5099
|
};
|
|
4466
|
-
/** @description
|
|
5100
|
+
/** @description The replay-attack check's verdict and scores for one side (front or back) of the document. */
|
|
4467
5101
|
ReplaySideAssessment: {
|
|
4468
5102
|
/** Format: double */
|
|
4469
5103
|
attackScore: number;
|
|
@@ -4482,7 +5116,7 @@ export interface components {
|
|
|
4482
5116
|
side: string;
|
|
4483
5117
|
verdict: string;
|
|
4484
5118
|
};
|
|
4485
|
-
/** @description Request body for `POST
|
|
5119
|
+
/** @description Request body for `POST.../kyb-cases/{case_id}/document-requests/on-demand`.
|
|
4486
5120
|
*
|
|
4487
5121
|
* Asks the client for a specific on-demand per-country document (identified by its catalog
|
|
4488
5122
|
* `key`). The server validates the key resolves to an on-demand document for the KYB's
|
|
@@ -4529,7 +5163,7 @@ export interface components {
|
|
|
4529
5163
|
confidence: number;
|
|
4530
5164
|
suggestion: components["schemas"]["ManualReviewResultStatus"];
|
|
4531
5165
|
};
|
|
4532
|
-
/** @description
|
|
5166
|
+
/** @description The keys of the form-based risk factors that matched for a form step, as recorded at the time. */
|
|
4533
5167
|
RiskFactorKeys: string[];
|
|
4534
5168
|
/** @enum {string} */
|
|
4535
5169
|
RiskLevel: "low" | "medium" | "high" | "critical";
|
|
@@ -4608,8 +5242,9 @@ export interface components {
|
|
|
4608
5242
|
* @enum {string}
|
|
4609
5243
|
*/
|
|
4610
5244
|
ScreeningStrategy: "ubo" | "directors" | "uboAndDirectors";
|
|
4611
|
-
/** @description
|
|
4612
|
-
* fields
|
|
5245
|
+
/** @description Search criteria for an AML screening. Every field is an optional string; provide at least one.
|
|
5246
|
+
* The more fields you fill in, the more precise the matching. Result-only data (sanctions,
|
|
5247
|
+
* topics, positions held) cannot be used as search input. */
|
|
4613
5248
|
SdkAmlScreenQuery: {
|
|
4614
5249
|
address?: string | null;
|
|
4615
5250
|
alias?: string | null;
|
|
@@ -4636,17 +5271,15 @@ export interface components {
|
|
|
4636
5271
|
};
|
|
4637
5272
|
SdkAmlScreenResponse: {
|
|
4638
5273
|
entities: components["schemas"]["AmlEntityResponse"][];
|
|
4639
|
-
/** @description Entity format
|
|
5274
|
+
/** @description Entity format of the returned matches, currently always `"ftm/1"`. */
|
|
4640
5275
|
format: string;
|
|
4641
|
-
/** @description
|
|
4642
|
-
*
|
|
5276
|
+
/** @description Identifier of the screening provider that produced these results. How many entity fields
|
|
5277
|
+
* are populated depends on the provider — see the SDK docs for coverage differences. */
|
|
4643
5278
|
provider: string;
|
|
4644
5279
|
};
|
|
4645
|
-
/** @description
|
|
4646
|
-
*
|
|
4647
|
-
*
|
|
4648
|
-
* validation). Both may be provided simultaneously: wallet takes priority for `zid`, email is
|
|
4649
|
-
* stored as a contact address. */
|
|
5280
|
+
/** @description Request body for creating or resuming a verification request on behalf of a user. Provide an
|
|
5281
|
+
* `email`, a wallet credential, or both. When both are given, the wallet identifies the user and
|
|
5282
|
+
* the email is kept as a contact address. */
|
|
4650
5283
|
SdkCreateVerificationRequestPayload: components["schemas"]["VerificationIdentifier"] & {
|
|
4651
5284
|
/** @description Arbitrary key-value metadata to attach to this verification request. */
|
|
4652
5285
|
customData?: {
|
|
@@ -4721,6 +5354,16 @@ export interface components {
|
|
|
4721
5354
|
isOtherAllowed: boolean;
|
|
4722
5355
|
values: string[];
|
|
4723
5356
|
};
|
|
5357
|
+
/**
|
|
5358
|
+
* @description The environment a service credential works in, fixed by its token prefix: `sk_live_` for
|
|
5359
|
+
* production, `sk_test_` for sandbox.
|
|
5360
|
+
*
|
|
5361
|
+
* A service credential is a bot token an integrator's server uses on the organization API
|
|
5362
|
+
* (`Authorization: Bearer sk_…`). The prefix is part of the hashed token, so it can't be changed
|
|
5363
|
+
* without invalidating the token.
|
|
5364
|
+
* @enum {string}
|
|
5365
|
+
*/
|
|
5366
|
+
ServiceCredentialEnvironment: "LIVE" | "TEST";
|
|
4724
5367
|
Settings: {
|
|
4725
5368
|
/** @description When true (default), prompt users to create a passkey during the verification flow.
|
|
4726
5369
|
* When false, skip the passkey creation step.
|
|
@@ -4749,9 +5392,7 @@ export interface components {
|
|
|
4749
5392
|
SpidConfig: {
|
|
4750
5393
|
/**
|
|
4751
5394
|
* Format: uuid
|
|
4752
|
-
* @description The ID of the
|
|
4753
|
-
* Mirrors the same field on [`DvConfig`] — makes the step link explicit and
|
|
4754
|
-
* independent of step ordering.
|
|
5395
|
+
* @description The ID of the document-selection step that precedes this SPID step in the flow.
|
|
4755
5396
|
*/
|
|
4756
5397
|
documentSelectionStepId?: string;
|
|
4757
5398
|
/** @example { "default": "Next step" } */
|
|
@@ -4830,6 +5471,25 @@ export interface components {
|
|
|
4830
5471
|
/** @description English name, for display (`Delaware`). */
|
|
4831
5472
|
name: string;
|
|
4832
5473
|
};
|
|
5474
|
+
/** @description One hand-off of a subject's work. */
|
|
5475
|
+
SubjectAssignmentResponse: {
|
|
5476
|
+
/** Format: date-time */
|
|
5477
|
+
assignedAt: string;
|
|
5478
|
+
/** Format: uuid */
|
|
5479
|
+
assignedBy: string;
|
|
5480
|
+
assignee: components["schemas"]["AssigneePayload"];
|
|
5481
|
+
/**
|
|
5482
|
+
* Format: date-time
|
|
5483
|
+
* @description Set once the subject was handed on or released. The row with no `endedAt` is the holder.
|
|
5484
|
+
*/
|
|
5485
|
+
endedAt?: string | null;
|
|
5486
|
+
/** Format: uuid */
|
|
5487
|
+
endedBy?: string | null;
|
|
5488
|
+
/** Format: uuid */
|
|
5489
|
+
id: string;
|
|
5490
|
+
reason: string;
|
|
5491
|
+
subject: components["schemas"]["KybSubjectRef"];
|
|
5492
|
+
};
|
|
4833
5493
|
/** @description Flat theme API response. Logo/font fields hold raw S3 keys when built from `ThemeData`; the
|
|
4834
5494
|
* handler swaps them for presigned URLs before returning. */
|
|
4835
5495
|
Theme: {
|
|
@@ -4946,6 +5606,12 @@ export interface components {
|
|
|
4946
5606
|
* TIN is not stored. */
|
|
4947
5607
|
tinMasked: string;
|
|
4948
5608
|
tinType?: null | components["schemas"]["TinCheckTinType"];
|
|
5609
|
+
/**
|
|
5610
|
+
* Format: uuid
|
|
5611
|
+
* @description The KYB anchor's verification request, for a check run when an applicant submitted a KYB's
|
|
5612
|
+
* business information. Absent for a check run from the dashboard or with an API key.
|
|
5613
|
+
*/
|
|
5614
|
+
verificationRequestId?: string | null;
|
|
4949
5615
|
/** @description Whether the name resembles an entry on any of the screened watchlists. */
|
|
4950
5616
|
watchlistStatus: components["schemas"]["TinCheckLookupStatus"];
|
|
4951
5617
|
/** @description Every watchlist the name was screened against, with how many entries resemble it. A
|
|
@@ -4992,8 +5658,9 @@ export interface components {
|
|
|
4992
5658
|
/** Format: double */
|
|
4993
5659
|
maxRiskProbability?: number;
|
|
4994
5660
|
};
|
|
4995
|
-
/** @description The
|
|
4996
|
-
*
|
|
5661
|
+
/** @description The detailed record behind an automated alert review: the case file the review was based on
|
|
5662
|
+
* and its findings about the end user. Only shown in the dashboard; never included in API
|
|
5663
|
+
* responses or webhooks. */
|
|
4997
5664
|
TmAgentReviewEvidence: {
|
|
4998
5665
|
/** @description The re-read case at actuation time, present only when it differed from the analytic one. */
|
|
4999
5666
|
actuationCaseFile?: Record<string, never> | null;
|
|
@@ -5002,7 +5669,7 @@ export interface components {
|
|
|
5002
5669
|
mitigations: Record<string, never>;
|
|
5003
5670
|
verdict: Record<string, never>;
|
|
5004
5671
|
};
|
|
5005
|
-
/** @description The API-facing projection of a stored `agentReview
|
|
5672
|
+
/** @description The API-facing projection of a stored `agentReview`.
|
|
5006
5673
|
*
|
|
5007
5674
|
* The stored review keeps the whole case file, the prosecutor's findings about the end user,
|
|
5008
5675
|
* the identity risk score and the controls of the subject's other alerts. None of that belongs
|
|
@@ -5027,11 +5694,10 @@ export interface components {
|
|
|
5027
5694
|
/** Format: date-time */
|
|
5028
5695
|
reviewedAt: string;
|
|
5029
5696
|
};
|
|
5030
|
-
/** @description
|
|
5697
|
+
/** @description An alert raised on a transaction, as returned in the transaction detail.
|
|
5031
5698
|
*
|
|
5032
|
-
* `agentReview` is a
|
|
5033
|
-
*
|
|
5034
|
-
* the controls of the subject's other alerts. Only the JWT dashboard route asks for `evidence`. */
|
|
5699
|
+
* `agentReview` is a summary of the automated review of the alert, when one ran. The detailed
|
|
5700
|
+
* review evidence is only shown in the dashboard and is not included in API responses. */
|
|
5035
5701
|
TmAlertDetail: {
|
|
5036
5702
|
agentReview?: null | components["schemas"]["TmAgentReviewSummary"];
|
|
5037
5703
|
controls: unknown;
|
|
@@ -5049,18 +5715,18 @@ export interface components {
|
|
|
5049
5715
|
ruleKey?: string | null;
|
|
5050
5716
|
};
|
|
5051
5717
|
/**
|
|
5052
|
-
* @description Alert lifecycle
|
|
5718
|
+
* @description Alert lifecycle.
|
|
5053
5719
|
* @enum {string}
|
|
5054
5720
|
*/
|
|
5055
5721
|
TmAlertStatus: "NEW" | "IN_REVIEW" | "ESCALATED" | "CLOSED_TRUE_POSITIVE" | "CLOSED_FALSE_POSITIVE" | "SAR_FILED";
|
|
5056
5722
|
/**
|
|
5057
|
-
* @description Which
|
|
5058
|
-
* rule
|
|
5723
|
+
* @description Which threshold band (`low`, `med` or `high`) a transaction's value fell into for a numeric
|
|
5724
|
+
* (metric) rule. Absent on rules that are simple yes/no signals.
|
|
5059
5725
|
* @enum {string}
|
|
5060
5726
|
*/
|
|
5061
5727
|
TmBand: "low" | "med" | "high";
|
|
5062
5728
|
/**
|
|
5063
|
-
* @description Counterparty node type
|
|
5729
|
+
* @description Counterparty node type.
|
|
5064
5730
|
* @enum {string}
|
|
5065
5731
|
*/
|
|
5066
5732
|
TmCounterpartyKind: "PERSON" | "ORGANIZATION" | "ACCOUNT" | "WALLET";
|
|
@@ -5077,21 +5743,20 @@ export interface components {
|
|
|
5077
5743
|
};
|
|
5078
5744
|
/**
|
|
5079
5745
|
* @description The synchronous verdict on a transaction: the combined `P(risk)` (noisy-OR over fired rule
|
|
5080
|
-
* probabilities
|
|
5746
|
+
* probabilities) compared to the org's `tm_settings` thresholds.
|
|
5081
5747
|
* @enum {string}
|
|
5082
5748
|
*/
|
|
5083
5749
|
TmDecision: "ALLOW" | "REVIEW" | "BLOCK";
|
|
5084
|
-
/** @description
|
|
5085
|
-
*
|
|
5086
|
-
* reconstructable (module plan §12). */
|
|
5750
|
+
/** @description A monitoring rule that fired on a transaction, identifying the exact rule version (`ruleId`,
|
|
5751
|
+
* `ruleKey`, `ruleVersion`, `ruleHash`) and how it contributed to the risk score. */
|
|
5087
5752
|
TmFiredRule: {
|
|
5088
5753
|
band?: null | components["schemas"]["TmBand"];
|
|
5089
5754
|
/**
|
|
5090
5755
|
* Format: double
|
|
5091
|
-
* @description The rule's contributed `p` for that band
|
|
5756
|
+
* @description The rule's contributed `p` for that band.
|
|
5092
5757
|
*/
|
|
5093
5758
|
probability: number;
|
|
5094
|
-
/** @description Whether this
|
|
5759
|
+
/** @description Whether this rule firing raises an alert. */
|
|
5095
5760
|
raiseAlert: boolean;
|
|
5096
5761
|
ruleHash: string;
|
|
5097
5762
|
/** Format: uuid */
|
|
@@ -5100,10 +5765,10 @@ export interface components {
|
|
|
5100
5765
|
/** Format: int32 */
|
|
5101
5766
|
ruleVersion: number;
|
|
5102
5767
|
};
|
|
5103
|
-
/** @description Ingest one transaction event
|
|
5768
|
+
/** @description Ingest one transaction event for monitoring.
|
|
5104
5769
|
*
|
|
5105
|
-
*
|
|
5106
|
-
*
|
|
5770
|
+
* Unknown fields are rejected: a misspelled field name makes the request fail instead of being
|
|
5771
|
+
* silently ignored. */
|
|
5107
5772
|
TmIngestTransactionRequest: {
|
|
5108
5773
|
/**
|
|
5109
5774
|
* Format: int64
|
|
@@ -5211,8 +5876,7 @@ export interface components {
|
|
|
5211
5876
|
};
|
|
5212
5877
|
/**
|
|
5213
5878
|
* @description Payment lifecycle status (client-updatable via `PATCH`). Velocity counts transactions while
|
|
5214
|
-
* `Pending`/`Settled` and backs them out on a one-time transition into a terminal-negative
|
|
5215
|
-
* state (module plan §10).
|
|
5879
|
+
* `Pending`/`Settled` and backs them out on a one-time transition into a terminal-negative state.
|
|
5216
5880
|
* @enum {string}
|
|
5217
5881
|
*/
|
|
5218
5882
|
TmTransactionStatus: "PENDING" | "SETTLED" | "FAILED" | "CANCELED" | "REVERSED";
|
|
@@ -5220,13 +5884,8 @@ export interface components {
|
|
|
5220
5884
|
TmUpdateTransactionStatusRequest: {
|
|
5221
5885
|
status: components["schemas"]["TmTransactionStatus"];
|
|
5222
5886
|
};
|
|
5223
|
-
/** @description A top-up pack: a one-time
|
|
5224
|
-
*
|
|
5225
|
-
* Produced by [`list_topup_prices`] from Stripe one-time prices whose product is active
|
|
5226
|
-
* and whose metadata carries `zyphe_type=credit_topup`. `credits` and `validity_months`
|
|
5227
|
-
* are parsed from price metadata (`credits`, `validity_months`).
|
|
5228
|
-
*
|
|
5229
|
-
* [`list_topup_prices`]: https://docs.stripe.com/api/prices/list */
|
|
5887
|
+
/** @description A top-up pack: a one-time purchase that adds credits to the organization's balance and
|
|
5888
|
+
* can optionally unlock products. */
|
|
5230
5889
|
TopupPack: {
|
|
5231
5890
|
/**
|
|
5232
5891
|
* Format: int64
|
|
@@ -5239,10 +5898,8 @@ export interface components {
|
|
|
5239
5898
|
*/
|
|
5240
5899
|
credits: number;
|
|
5241
5900
|
currency: components["schemas"]["Currency"];
|
|
5242
|
-
/** @description Products this pack
|
|
5243
|
-
*
|
|
5244
|
-
* before this field existed (hence `serde(default)`, which also keeps cached catalog
|
|
5245
|
-
* entries deserializable). */
|
|
5901
|
+
/** @description Products this pack enables in the production environment when it is purchased. Empty
|
|
5902
|
+
* when the pack grants credits only. */
|
|
5246
5903
|
enabledProducts?: components["schemas"]["ProductType"][];
|
|
5247
5904
|
/** @description `true` when the price carries `zyphe_visibility=private` metadata: a bespoke pack that
|
|
5248
5905
|
* must never appear in the public catalog and is usable only by the organization named in
|
|
@@ -5255,12 +5912,11 @@ export interface components {
|
|
|
5255
5912
|
* Meaningless (and normally absent) on a public pack. A private pack WITHOUT this is
|
|
5256
5913
|
* usable by nobody — failing closed beats leaking a bespoke price to every customer. */
|
|
5257
5914
|
organizationId?: string | null;
|
|
5258
|
-
/** @description The
|
|
5915
|
+
/** @description The pack's price ID. Pass it as `priceId` when creating a top-up checkout session. */
|
|
5259
5916
|
priceId: string;
|
|
5260
|
-
/** @description
|
|
5261
|
-
* `
|
|
5262
|
-
*
|
|
5263
|
-
* entitled to bill for it in production. */
|
|
5917
|
+
/** @description Products this pack enables in the sandbox environment when it is purchased. Separate
|
|
5918
|
+
* from `enabledProducts` because an organization may be allowed to try a product in
|
|
5919
|
+
* sandbox without being able to use it in production. Empty when none. */
|
|
5264
5920
|
sandboxEnabledProducts?: components["schemas"]["ProductType"][];
|
|
5265
5921
|
/**
|
|
5266
5922
|
* Format: int32
|
|
@@ -5272,9 +5928,9 @@ export interface components {
|
|
|
5272
5928
|
TopupPacksResponse: {
|
|
5273
5929
|
packs: components["schemas"]["TopupPack"][];
|
|
5274
5930
|
};
|
|
5275
|
-
/** @description
|
|
5276
|
-
*
|
|
5277
|
-
*
|
|
5931
|
+
/** @description Summary of the automatic ownership discovery: the relevance threshold it uses, its credit
|
|
5932
|
+
* budget, what it has spent so far and, once finished, how it ended. Returned to your
|
|
5933
|
+
* organization only, never to the applicant. */
|
|
5278
5934
|
TraversalSummary: {
|
|
5279
5935
|
/**
|
|
5280
5936
|
* Format: int32
|
|
@@ -5302,12 +5958,9 @@ export interface components {
|
|
|
5302
5958
|
*/
|
|
5303
5959
|
spentCredits: number;
|
|
5304
5960
|
};
|
|
5305
|
-
/** @description One
|
|
5306
|
-
*
|
|
5307
|
-
*
|
|
5308
|
-
*
|
|
5309
|
-
* Operator-facing only — like [`ExpansionRecord`], it carries `chargedCredits`, and the applicant
|
|
5310
|
-
* walking the widget must never see what their onboarding cost the organization. */
|
|
5961
|
+
/** @description One step (wave) of the automatic ownership discovery that runs while the applicant completes
|
|
5962
|
+
* the flow: which nodes it explored, its status and what it cost. Returned to your organization
|
|
5963
|
+
* only, never to the applicant. */
|
|
5311
5964
|
TraversalWave: {
|
|
5312
5965
|
/**
|
|
5313
5966
|
* Format: int64
|
|
@@ -5325,8 +5978,7 @@ export interface components {
|
|
|
5325
5978
|
discoveryId: string;
|
|
5326
5979
|
/** @description The `budget_truncated` chips this wave opened, in the relevance order it chose them. */
|
|
5327
5980
|
nodeIds: string[];
|
|
5328
|
-
|
|
5329
|
-
status: string;
|
|
5981
|
+
status: components["schemas"]["KybDiscoveryRequestStatus"];
|
|
5330
5982
|
stoppedReason?: string | null;
|
|
5331
5983
|
/**
|
|
5332
5984
|
* Format: int32
|
|
@@ -5339,7 +5991,7 @@ export interface components {
|
|
|
5339
5991
|
enqueued: boolean;
|
|
5340
5992
|
};
|
|
5341
5993
|
UboDefinition: {
|
|
5342
|
-
/** @description
|
|
5994
|
+
/** @description Nationality of the UBO. Absent when the company register reported none. */
|
|
5343
5995
|
country?: string | null;
|
|
5344
5996
|
/** @description `None` for a UBO taken from a company register as reported. Registers publish ownership,
|
|
5345
5997
|
* not identity dossiers: a birth date is frequently absent, and demanding one would force the
|
|
@@ -5388,18 +6040,9 @@ export interface components {
|
|
|
5388
6040
|
/** @description PRF salt for vault unlock (base64url) */
|
|
5389
6041
|
prfSalt: string;
|
|
5390
6042
|
};
|
|
5391
|
-
/** @description
|
|
5392
|
-
*
|
|
5393
|
-
*
|
|
5394
|
-
* `credentials` must be provided — a wallet is the only credential that can form a
|
|
5395
|
-
* `zid` without an email address.
|
|
5396
|
-
*
|
|
5397
|
-
* Flatten this into your payload struct with `#[serde(flatten)]` to keep the fields at
|
|
5398
|
-
* the top level of the JSON object — backward-compatible with callers that only send
|
|
5399
|
-
* `email`.
|
|
5400
|
-
*
|
|
5401
|
-
* `MagicLink` is provisioned automatically by [`VerificationIdentifier::resolve`] for
|
|
5402
|
-
* any email-bearing identity and does not need to be listed in `credentials`. */
|
|
6043
|
+
/** @description Fields that identify the user in every verification-request creation payload. Provide an
|
|
6044
|
+
* `email`, a `WALLET` entry in `credentials`, or both. Email magic-link sign-in is enabled
|
|
6045
|
+
* automatically whenever an email is given and does not need to be listed in `credentials`. */
|
|
5403
6046
|
VerificationIdentifier: {
|
|
5404
6047
|
/** @description Credentials to enable for this identity (e.g. wallet, magic-link).
|
|
5405
6048
|
* The first `Wallet` entry determines the `zid`; all entries are provisioned on
|
|
@@ -5409,15 +6052,10 @@ export interface components {
|
|
|
5409
6052
|
* credential is provided. */
|
|
5410
6053
|
email?: string | null;
|
|
5411
6054
|
};
|
|
5412
|
-
/** @description A credential
|
|
5413
|
-
*
|
|
5414
|
-
*
|
|
5415
|
-
*
|
|
5416
|
-
*
|
|
5417
|
-
* Only the variants that carry public-API meaning are included here; internal
|
|
5418
|
-
* credentials such as `PASSWORD`, `PASSKEY`, `BOT_TOKEN`, and `MAGIC_LINK` are not
|
|
5419
|
-
* exposed — `MAGIC_LINK` is always provisioned automatically by [`VerificationIdentifier::resolve`]
|
|
5420
|
-
* for any email-bearing identity. */
|
|
6055
|
+
/** @description A credential to attach to the user when creating a verification request, selected by `type`:
|
|
6056
|
+
* `WALLET` (a blockchain wallet address) or `EXTERNAL_ID` (your own identifier for the user).
|
|
6057
|
+
* Email magic-link sign-in is enabled automatically whenever an email is given and does not
|
|
6058
|
+
* need to be listed. */
|
|
5421
6059
|
VerificationIdentifierCredential: {
|
|
5422
6060
|
address: string;
|
|
5423
6061
|
chain: components["schemas"]["SiwxChain"];
|
|
@@ -5534,10 +6172,9 @@ export interface components {
|
|
|
5534
6172
|
status: components["schemas"]["ResultStatus"];
|
|
5535
6173
|
};
|
|
5536
6174
|
/**
|
|
5537
|
-
* @description
|
|
5538
|
-
*
|
|
5539
|
-
*
|
|
5540
|
-
* customer. Adding one is safe — the column is TEXT and the API validates against this catalog.
|
|
6175
|
+
* @description A webhook event type. Use these values to choose which events a webhook subscription
|
|
6176
|
+
* receives. Existing values are stable; new event types may be added over time, so ignore any
|
|
6177
|
+
* you do not recognise.
|
|
5541
6178
|
* @enum {string}
|
|
5542
6179
|
*/
|
|
5543
6180
|
WebhookEventType: "verification.dv.completed" | "verification.dv.failed" | "verification.dv.review" | "verification.poa.completed" | "verification.poa.failed" | "verification.poa.review" | "verification.form.completed" | "verification.form.failed" | "verification.form.review" | "verification.spid.completed" | "verification.spid.failed" | "verification.spid.review" | "verification.phone.completed" | "verification.phone.failed" | "verification.phone.review" | "verification.wallet.completed" | "verification.wallet.failed" | "verification.wallet.review" | "verification.kyb.completed" | "verification.kyb.failed" | "verification.kyb.review" | "verification.kyb.submitted" | "verification.geolocation.completed" | "verification.geolocation.failed" | "verification.geolocation.review" | "verification.aml.produced" | "verification.aml.refreshed" | "verification.aml.moderated" | "verification.document.expired" | "verification.kyc.expired" | "flow.risk.reevaluated" | "flow.completed" | "transaction.alert.created" | "transaction.alert.resolved" | "kyc_passport.verification.updated";
|
|
@@ -5546,25 +6183,21 @@ export interface components {
|
|
|
5546
6183
|
* @enum {string}
|
|
5547
6184
|
*/
|
|
5548
6185
|
WebhookPayloadVersion: "LEGACY_V1" | "V2";
|
|
5549
|
-
/** @description The
|
|
5550
|
-
*
|
|
5551
|
-
* This helps distinguish between different flows that can trigger the same
|
|
5552
|
-
* worker type (e.g. AML worker triggered by DV vs scheduled refresh). */
|
|
6186
|
+
/** @description What started a background process. The same kind of process can be started in different
|
|
6187
|
+
* ways, e.g. an AML screening started by a completed document verification or by an admin. */
|
|
5553
6188
|
WorkerScenario: "USER_INITIATED" | {
|
|
5554
|
-
/** @description
|
|
6189
|
+
/** @description Started by another background process, whose kind is given as the value (e.g. an AML
|
|
6190
|
+
* screening started when document verification completes). */
|
|
5555
6191
|
TRIGGERED_BY_WORKER: components["schemas"]["WorkerType"];
|
|
5556
6192
|
} | "ADMIN_ACTION" | "ONE_CLICK_REUSE";
|
|
5557
6193
|
/**
|
|
5558
|
-
* @description
|
|
5559
|
-
*
|
|
5560
|
-
*
|
|
5561
|
-
*
|
|
5562
|
-
*
|
|
5563
|
-
* `Display` (via `JsonDisplay`) renders the SCREAMING_SNAKE_CASE serde name
|
|
5564
|
-
* (e.g. `DV`, `ONE_CLICK_FORM`) — the same value shown in `source.workerType`.
|
|
6194
|
+
* @description A kind of background process. In `source.workerType` it is the process that recorded the audit
|
|
6195
|
+
* event (for example `AML` for an AML screening). As the value of `TRIGGERED_BY_WORKER` it is the
|
|
6196
|
+
* process that started it (for example `DV` when a completed document verification starts that
|
|
6197
|
+
* AML screening).
|
|
5565
6198
|
* @enum {string}
|
|
5566
6199
|
*/
|
|
5567
|
-
WorkerType: "DV" | "LIVENESS" | "AML" | "POA" | "SPID" | "FORM" | "ONE_CLICK_DV" | "ONE_CLICK_FORM" | "MANUAL_REVIEW" | "TM";
|
|
6200
|
+
WorkerType: "DV" | "LIVENESS" | "AML" | "POA" | "SPID" | "FORM" | "ONE_CLICK_DV" | "ONE_CLICK_FORM" | "MANUAL_REVIEW" | "TM" | "KYB_CASE";
|
|
5568
6201
|
/** @description Context data available to JDM rules during flow evaluation.
|
|
5569
6202
|
*
|
|
5570
6203
|
* This structure is serialized to JSON and passed to the Zen Engine for evaluation.
|
|
@@ -5753,7 +6386,11 @@ export interface components {
|
|
|
5753
6386
|
description?: string | null;
|
|
5754
6387
|
/** Format: uuid */
|
|
5755
6388
|
id: string;
|
|
5756
|
-
key
|
|
6389
|
+
/** @description The key in clear, for Publishable keys and legacy Secret keys. `null` for Secret keys
|
|
6390
|
+
* created since keys are stored by hash: those are returned once, when created. */
|
|
6391
|
+
key?: string | null;
|
|
6392
|
+
/** @description Prefix and last four characters of the key (`zyphe_sk_…a1b2`), always present. */
|
|
6393
|
+
keyHint?: string;
|
|
5757
6394
|
keyType: components["schemas"]["ApiKeyType"];
|
|
5758
6395
|
name?: string | null;
|
|
5759
6396
|
options: {
|
|
@@ -6212,19 +6849,622 @@ export interface operations {
|
|
|
6212
6849
|
path: {
|
|
6213
6850
|
/** @description Organization ID */
|
|
6214
6851
|
organization_id: string;
|
|
6215
|
-
/** @description Flow slug to scope results to */
|
|
6216
|
-
flow_slug: string;
|
|
6852
|
+
/** @description Flow slug to scope results to */
|
|
6853
|
+
flow_slug: string;
|
|
6854
|
+
};
|
|
6855
|
+
cookie?: never;
|
|
6856
|
+
};
|
|
6857
|
+
requestBody?: never;
|
|
6858
|
+
responses: {
|
|
6859
|
+
200: {
|
|
6860
|
+
headers: {
|
|
6861
|
+
[name: string]: unknown;
|
|
6862
|
+
};
|
|
6863
|
+
content: {
|
|
6864
|
+
"application/json": components["schemas"]["ListOrganizationFlowResultsResponse"];
|
|
6865
|
+
};
|
|
6866
|
+
};
|
|
6867
|
+
400: {
|
|
6868
|
+
headers: {
|
|
6869
|
+
[name: string]: unknown;
|
|
6870
|
+
};
|
|
6871
|
+
content: {
|
|
6872
|
+
"application/json": components["schemas"]["BaxeError"];
|
|
6873
|
+
};
|
|
6874
|
+
};
|
|
6875
|
+
401: {
|
|
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"];
|
|
6889
|
+
};
|
|
6890
|
+
};
|
|
6891
|
+
};
|
|
6892
|
+
};
|
|
6893
|
+
sendUboKycReminder: {
|
|
6894
|
+
parameters: {
|
|
6895
|
+
query: {
|
|
6896
|
+
sandbox: boolean;
|
|
6897
|
+
locale?: components["schemas"]["Locale"];
|
|
6898
|
+
};
|
|
6899
|
+
header?: never;
|
|
6900
|
+
path: {
|
|
6901
|
+
/** @description Organization ID */
|
|
6902
|
+
organization_id: string;
|
|
6903
|
+
/** @description The ID of the KYB case */
|
|
6904
|
+
case_id: string;
|
|
6905
|
+
/** @description Index of the UBO to send the KYC email to, matching the order in uboDefinitions */
|
|
6906
|
+
recipient_index: number;
|
|
6907
|
+
};
|
|
6908
|
+
cookie?: never;
|
|
6909
|
+
};
|
|
6910
|
+
requestBody?: never;
|
|
6911
|
+
responses: {
|
|
6912
|
+
202: {
|
|
6913
|
+
headers: {
|
|
6914
|
+
[name: string]: unknown;
|
|
6915
|
+
};
|
|
6916
|
+
content: {
|
|
6917
|
+
"application/json": components["schemas"]["TriggerReminderResponse"];
|
|
6918
|
+
};
|
|
6919
|
+
};
|
|
6920
|
+
400: {
|
|
6921
|
+
headers: {
|
|
6922
|
+
[name: string]: unknown;
|
|
6923
|
+
};
|
|
6924
|
+
content: {
|
|
6925
|
+
"application/json": components["schemas"]["BaxeError"];
|
|
6926
|
+
};
|
|
6927
|
+
};
|
|
6928
|
+
401: {
|
|
6929
|
+
headers: {
|
|
6930
|
+
[name: string]: unknown;
|
|
6931
|
+
};
|
|
6932
|
+
content: {
|
|
6933
|
+
"application/json": components["schemas"]["BaxeError"];
|
|
6934
|
+
};
|
|
6935
|
+
};
|
|
6936
|
+
403: {
|
|
6937
|
+
headers: {
|
|
6938
|
+
[name: string]: unknown;
|
|
6939
|
+
};
|
|
6940
|
+
content: {
|
|
6941
|
+
"application/json": components["schemas"]["BaxeError"];
|
|
6942
|
+
};
|
|
6943
|
+
};
|
|
6944
|
+
404: {
|
|
6945
|
+
headers: {
|
|
6946
|
+
[name: string]: unknown;
|
|
6947
|
+
};
|
|
6948
|
+
content: {
|
|
6949
|
+
"application/json": components["schemas"]["BaxeError"];
|
|
6950
|
+
};
|
|
6951
|
+
};
|
|
6952
|
+
500: {
|
|
6953
|
+
headers: {
|
|
6954
|
+
[name: string]: unknown;
|
|
6955
|
+
};
|
|
6956
|
+
content: {
|
|
6957
|
+
"application/json": components["schemas"]["BaxeError"];
|
|
6958
|
+
};
|
|
6959
|
+
};
|
|
6960
|
+
};
|
|
6961
|
+
};
|
|
6962
|
+
addKybUbosDeprecated: {
|
|
6963
|
+
parameters: {
|
|
6964
|
+
query: {
|
|
6965
|
+
sandbox: boolean;
|
|
6966
|
+
locale?: components["schemas"]["Locale"];
|
|
6967
|
+
};
|
|
6968
|
+
header?: never;
|
|
6969
|
+
path: {
|
|
6970
|
+
/** @description Organization ID */
|
|
6971
|
+
organization_id: string;
|
|
6972
|
+
/** @description The ID of the KYB result — the id of its case */
|
|
6973
|
+
kyb_result_id: string;
|
|
6974
|
+
};
|
|
6975
|
+
cookie?: never;
|
|
6976
|
+
};
|
|
6977
|
+
requestBody: {
|
|
6978
|
+
content: {
|
|
6979
|
+
"application/json": components["schemas"]["AddKybPersonsPayload"];
|
|
6980
|
+
};
|
|
6981
|
+
};
|
|
6982
|
+
responses: {
|
|
6983
|
+
200: {
|
|
6984
|
+
headers: {
|
|
6985
|
+
[name: string]: unknown;
|
|
6986
|
+
};
|
|
6987
|
+
content: {
|
|
6988
|
+
"application/json": components["schemas"]["KybResult"];
|
|
6989
|
+
};
|
|
6990
|
+
};
|
|
6991
|
+
400: {
|
|
6992
|
+
headers: {
|
|
6993
|
+
[name: string]: unknown;
|
|
6994
|
+
};
|
|
6995
|
+
content: {
|
|
6996
|
+
"application/json": components["schemas"]["BaxeError"];
|
|
6997
|
+
};
|
|
6998
|
+
};
|
|
6999
|
+
401: {
|
|
7000
|
+
headers: {
|
|
7001
|
+
[name: string]: unknown;
|
|
7002
|
+
};
|
|
7003
|
+
content: {
|
|
7004
|
+
"application/json": components["schemas"]["BaxeError"];
|
|
7005
|
+
};
|
|
7006
|
+
};
|
|
7007
|
+
403: {
|
|
7008
|
+
headers: {
|
|
7009
|
+
[name: string]: unknown;
|
|
7010
|
+
};
|
|
7011
|
+
content: {
|
|
7012
|
+
"application/json": components["schemas"]["BaxeError"];
|
|
7013
|
+
};
|
|
7014
|
+
};
|
|
7015
|
+
404: {
|
|
7016
|
+
headers: {
|
|
7017
|
+
[name: string]: unknown;
|
|
7018
|
+
};
|
|
7019
|
+
content: {
|
|
7020
|
+
"application/json": components["schemas"]["BaxeError"];
|
|
7021
|
+
};
|
|
7022
|
+
};
|
|
7023
|
+
500: {
|
|
7024
|
+
headers: {
|
|
7025
|
+
[name: string]: unknown;
|
|
7026
|
+
};
|
|
7027
|
+
content: {
|
|
7028
|
+
"application/json": components["schemas"]["BaxeError"];
|
|
7029
|
+
};
|
|
7030
|
+
};
|
|
7031
|
+
};
|
|
7032
|
+
};
|
|
7033
|
+
removeKybUboDeprecated: {
|
|
7034
|
+
parameters: {
|
|
7035
|
+
query: {
|
|
7036
|
+
sandbox: boolean;
|
|
7037
|
+
locale?: components["schemas"]["Locale"];
|
|
7038
|
+
};
|
|
7039
|
+
header?: never;
|
|
7040
|
+
path: {
|
|
7041
|
+
/** @description Organization ID */
|
|
7042
|
+
organization_id: string;
|
|
7043
|
+
/** @description The ID of the KYB result — the id of its case */
|
|
7044
|
+
kyb_result_id: string;
|
|
7045
|
+
/** @description Stable id of the UBO to remove */
|
|
7046
|
+
person_id: string;
|
|
7047
|
+
};
|
|
7048
|
+
cookie?: never;
|
|
7049
|
+
};
|
|
7050
|
+
requestBody?: never;
|
|
7051
|
+
responses: {
|
|
7052
|
+
200: {
|
|
7053
|
+
headers: {
|
|
7054
|
+
[name: string]: unknown;
|
|
7055
|
+
};
|
|
7056
|
+
content: {
|
|
7057
|
+
"application/json": components["schemas"]["KybResult"];
|
|
7058
|
+
};
|
|
7059
|
+
};
|
|
7060
|
+
400: {
|
|
7061
|
+
headers: {
|
|
7062
|
+
[name: string]: unknown;
|
|
7063
|
+
};
|
|
7064
|
+
content: {
|
|
7065
|
+
"application/json": components["schemas"]["BaxeError"];
|
|
7066
|
+
};
|
|
7067
|
+
};
|
|
7068
|
+
401: {
|
|
7069
|
+
headers: {
|
|
7070
|
+
[name: string]: unknown;
|
|
7071
|
+
};
|
|
7072
|
+
content: {
|
|
7073
|
+
"application/json": components["schemas"]["BaxeError"];
|
|
7074
|
+
};
|
|
7075
|
+
};
|
|
7076
|
+
403: {
|
|
7077
|
+
headers: {
|
|
7078
|
+
[name: string]: unknown;
|
|
7079
|
+
};
|
|
7080
|
+
content: {
|
|
7081
|
+
"application/json": components["schemas"]["BaxeError"];
|
|
7082
|
+
};
|
|
7083
|
+
};
|
|
7084
|
+
404: {
|
|
7085
|
+
headers: {
|
|
7086
|
+
[name: string]: unknown;
|
|
7087
|
+
};
|
|
7088
|
+
content: {
|
|
7089
|
+
"application/json": components["schemas"]["BaxeError"];
|
|
7090
|
+
};
|
|
7091
|
+
};
|
|
7092
|
+
500: {
|
|
7093
|
+
headers: {
|
|
7094
|
+
[name: string]: unknown;
|
|
7095
|
+
};
|
|
7096
|
+
content: {
|
|
7097
|
+
"application/json": components["schemas"]["BaxeError"];
|
|
7098
|
+
};
|
|
7099
|
+
};
|
|
7100
|
+
};
|
|
7101
|
+
};
|
|
7102
|
+
addKybDirectorsDeprecated: {
|
|
7103
|
+
parameters: {
|
|
7104
|
+
query: {
|
|
7105
|
+
sandbox: boolean;
|
|
7106
|
+
locale?: components["schemas"]["Locale"];
|
|
7107
|
+
};
|
|
7108
|
+
header?: never;
|
|
7109
|
+
path: {
|
|
7110
|
+
/** @description Organization ID */
|
|
7111
|
+
organization_id: string;
|
|
7112
|
+
/** @description The ID of the KYB result — the id of its case */
|
|
7113
|
+
kyb_result_id: string;
|
|
7114
|
+
};
|
|
7115
|
+
cookie?: never;
|
|
7116
|
+
};
|
|
7117
|
+
requestBody: {
|
|
7118
|
+
content: {
|
|
7119
|
+
"application/json": components["schemas"]["AddKybPersonsPayload"];
|
|
7120
|
+
};
|
|
7121
|
+
};
|
|
7122
|
+
responses: {
|
|
7123
|
+
200: {
|
|
7124
|
+
headers: {
|
|
7125
|
+
[name: string]: unknown;
|
|
7126
|
+
};
|
|
7127
|
+
content: {
|
|
7128
|
+
"application/json": components["schemas"]["KybResult"];
|
|
7129
|
+
};
|
|
7130
|
+
};
|
|
7131
|
+
400: {
|
|
7132
|
+
headers: {
|
|
7133
|
+
[name: string]: unknown;
|
|
7134
|
+
};
|
|
7135
|
+
content: {
|
|
7136
|
+
"application/json": components["schemas"]["BaxeError"];
|
|
7137
|
+
};
|
|
7138
|
+
};
|
|
7139
|
+
401: {
|
|
7140
|
+
headers: {
|
|
7141
|
+
[name: string]: unknown;
|
|
7142
|
+
};
|
|
7143
|
+
content: {
|
|
7144
|
+
"application/json": components["schemas"]["BaxeError"];
|
|
7145
|
+
};
|
|
7146
|
+
};
|
|
7147
|
+
403: {
|
|
7148
|
+
headers: {
|
|
7149
|
+
[name: string]: unknown;
|
|
7150
|
+
};
|
|
7151
|
+
content: {
|
|
7152
|
+
"application/json": components["schemas"]["BaxeError"];
|
|
7153
|
+
};
|
|
7154
|
+
};
|
|
7155
|
+
404: {
|
|
7156
|
+
headers: {
|
|
7157
|
+
[name: string]: unknown;
|
|
7158
|
+
};
|
|
7159
|
+
content: {
|
|
7160
|
+
"application/json": components["schemas"]["BaxeError"];
|
|
7161
|
+
};
|
|
7162
|
+
};
|
|
7163
|
+
500: {
|
|
7164
|
+
headers: {
|
|
7165
|
+
[name: string]: unknown;
|
|
7166
|
+
};
|
|
7167
|
+
content: {
|
|
7168
|
+
"application/json": components["schemas"]["BaxeError"];
|
|
7169
|
+
};
|
|
7170
|
+
};
|
|
7171
|
+
};
|
|
7172
|
+
};
|
|
7173
|
+
removeKybDirectorDeprecated: {
|
|
7174
|
+
parameters: {
|
|
7175
|
+
query: {
|
|
7176
|
+
sandbox: boolean;
|
|
7177
|
+
locale?: components["schemas"]["Locale"];
|
|
7178
|
+
};
|
|
7179
|
+
header?: never;
|
|
7180
|
+
path: {
|
|
7181
|
+
/** @description Organization ID */
|
|
7182
|
+
organization_id: string;
|
|
7183
|
+
/** @description The ID of the KYB result — the id of its case */
|
|
7184
|
+
kyb_result_id: string;
|
|
7185
|
+
/** @description Stable id of the director to remove */
|
|
7186
|
+
person_id: string;
|
|
7187
|
+
};
|
|
7188
|
+
cookie?: never;
|
|
7189
|
+
};
|
|
7190
|
+
requestBody?: never;
|
|
7191
|
+
responses: {
|
|
7192
|
+
200: {
|
|
7193
|
+
headers: {
|
|
7194
|
+
[name: string]: unknown;
|
|
7195
|
+
};
|
|
7196
|
+
content: {
|
|
7197
|
+
"application/json": components["schemas"]["KybResult"];
|
|
7198
|
+
};
|
|
7199
|
+
};
|
|
7200
|
+
400: {
|
|
7201
|
+
headers: {
|
|
7202
|
+
[name: string]: unknown;
|
|
7203
|
+
};
|
|
7204
|
+
content: {
|
|
7205
|
+
"application/json": components["schemas"]["BaxeError"];
|
|
7206
|
+
};
|
|
7207
|
+
};
|
|
7208
|
+
401: {
|
|
7209
|
+
headers: {
|
|
7210
|
+
[name: string]: unknown;
|
|
7211
|
+
};
|
|
7212
|
+
content: {
|
|
7213
|
+
"application/json": components["schemas"]["BaxeError"];
|
|
7214
|
+
};
|
|
7215
|
+
};
|
|
7216
|
+
403: {
|
|
7217
|
+
headers: {
|
|
7218
|
+
[name: string]: unknown;
|
|
7219
|
+
};
|
|
7220
|
+
content: {
|
|
7221
|
+
"application/json": components["schemas"]["BaxeError"];
|
|
7222
|
+
};
|
|
7223
|
+
};
|
|
7224
|
+
404: {
|
|
7225
|
+
headers: {
|
|
7226
|
+
[name: string]: unknown;
|
|
7227
|
+
};
|
|
7228
|
+
content: {
|
|
7229
|
+
"application/json": components["schemas"]["BaxeError"];
|
|
7230
|
+
};
|
|
7231
|
+
};
|
|
7232
|
+
500: {
|
|
7233
|
+
headers: {
|
|
7234
|
+
[name: string]: unknown;
|
|
7235
|
+
};
|
|
7236
|
+
content: {
|
|
7237
|
+
"application/json": components["schemas"]["BaxeError"];
|
|
7238
|
+
};
|
|
7239
|
+
};
|
|
7240
|
+
};
|
|
7241
|
+
};
|
|
7242
|
+
getKybCaseOfficers: {
|
|
7243
|
+
parameters: {
|
|
7244
|
+
query: {
|
|
7245
|
+
sandbox: boolean;
|
|
7246
|
+
locale?: components["schemas"]["Locale"];
|
|
7247
|
+
};
|
|
7248
|
+
header?: never;
|
|
7249
|
+
path: {
|
|
7250
|
+
/** @description Organization ID */
|
|
7251
|
+
organization_id: string;
|
|
7252
|
+
/** @description The ID of the KYB case */
|
|
7253
|
+
case_id: string;
|
|
7254
|
+
};
|
|
7255
|
+
cookie?: never;
|
|
7256
|
+
};
|
|
7257
|
+
requestBody?: never;
|
|
7258
|
+
responses: {
|
|
7259
|
+
200: {
|
|
7260
|
+
headers: {
|
|
7261
|
+
[name: string]: unknown;
|
|
7262
|
+
};
|
|
7263
|
+
content: {
|
|
7264
|
+
"application/json": components["schemas"]["KybCaseOfficersResponse"];
|
|
7265
|
+
};
|
|
7266
|
+
};
|
|
7267
|
+
401: {
|
|
7268
|
+
headers: {
|
|
7269
|
+
[name: string]: unknown;
|
|
7270
|
+
};
|
|
7271
|
+
content: {
|
|
7272
|
+
"application/json": components["schemas"]["BaxeError"];
|
|
7273
|
+
};
|
|
7274
|
+
};
|
|
7275
|
+
403: {
|
|
7276
|
+
headers: {
|
|
7277
|
+
[name: string]: unknown;
|
|
7278
|
+
};
|
|
7279
|
+
content: {
|
|
7280
|
+
"application/json": components["schemas"]["BaxeError"];
|
|
7281
|
+
};
|
|
7282
|
+
};
|
|
7283
|
+
404: {
|
|
7284
|
+
headers: {
|
|
7285
|
+
[name: string]: unknown;
|
|
7286
|
+
};
|
|
7287
|
+
content: {
|
|
7288
|
+
"application/json": components["schemas"]["BaxeError"];
|
|
7289
|
+
};
|
|
7290
|
+
};
|
|
7291
|
+
500: {
|
|
7292
|
+
headers: {
|
|
7293
|
+
[name: string]: unknown;
|
|
7294
|
+
};
|
|
7295
|
+
content: {
|
|
7296
|
+
"application/json": components["schemas"]["BaxeError"];
|
|
7297
|
+
};
|
|
7298
|
+
};
|
|
7299
|
+
};
|
|
7300
|
+
};
|
|
7301
|
+
addKybUbos: {
|
|
7302
|
+
parameters: {
|
|
7303
|
+
query: {
|
|
7304
|
+
sandbox: boolean;
|
|
7305
|
+
locale?: components["schemas"]["Locale"];
|
|
7306
|
+
};
|
|
7307
|
+
header?: never;
|
|
7308
|
+
path: {
|
|
7309
|
+
/** @description Organization ID */
|
|
7310
|
+
organization_id: string;
|
|
7311
|
+
/** @description The ID of the KYB case */
|
|
7312
|
+
case_id: string;
|
|
7313
|
+
};
|
|
7314
|
+
cookie?: never;
|
|
7315
|
+
};
|
|
7316
|
+
requestBody: {
|
|
7317
|
+
content: {
|
|
7318
|
+
"application/json": components["schemas"]["AddKybPersonsPayload"];
|
|
7319
|
+
};
|
|
7320
|
+
};
|
|
7321
|
+
responses: {
|
|
7322
|
+
200: {
|
|
7323
|
+
headers: {
|
|
7324
|
+
[name: string]: unknown;
|
|
7325
|
+
};
|
|
7326
|
+
content: {
|
|
7327
|
+
"application/json": components["schemas"]["KybCaseOfficersResponse"];
|
|
7328
|
+
};
|
|
7329
|
+
};
|
|
7330
|
+
400: {
|
|
7331
|
+
headers: {
|
|
7332
|
+
[name: string]: unknown;
|
|
7333
|
+
};
|
|
7334
|
+
content: {
|
|
7335
|
+
"application/json": components["schemas"]["BaxeError"];
|
|
7336
|
+
};
|
|
7337
|
+
};
|
|
7338
|
+
401: {
|
|
7339
|
+
headers: {
|
|
7340
|
+
[name: string]: unknown;
|
|
7341
|
+
};
|
|
7342
|
+
content: {
|
|
7343
|
+
"application/json": components["schemas"]["BaxeError"];
|
|
7344
|
+
};
|
|
7345
|
+
};
|
|
7346
|
+
403: {
|
|
7347
|
+
headers: {
|
|
7348
|
+
[name: string]: unknown;
|
|
7349
|
+
};
|
|
7350
|
+
content: {
|
|
7351
|
+
"application/json": components["schemas"]["BaxeError"];
|
|
7352
|
+
};
|
|
7353
|
+
};
|
|
7354
|
+
404: {
|
|
7355
|
+
headers: {
|
|
7356
|
+
[name: string]: unknown;
|
|
7357
|
+
};
|
|
7358
|
+
content: {
|
|
7359
|
+
"application/json": components["schemas"]["BaxeError"];
|
|
7360
|
+
};
|
|
7361
|
+
};
|
|
7362
|
+
500: {
|
|
7363
|
+
headers: {
|
|
7364
|
+
[name: string]: unknown;
|
|
7365
|
+
};
|
|
7366
|
+
content: {
|
|
7367
|
+
"application/json": components["schemas"]["BaxeError"];
|
|
7368
|
+
};
|
|
7369
|
+
};
|
|
7370
|
+
};
|
|
7371
|
+
};
|
|
7372
|
+
removeKybUbo: {
|
|
7373
|
+
parameters: {
|
|
7374
|
+
query: {
|
|
7375
|
+
sandbox: boolean;
|
|
7376
|
+
locale?: components["schemas"]["Locale"];
|
|
7377
|
+
};
|
|
7378
|
+
header?: never;
|
|
7379
|
+
path: {
|
|
7380
|
+
/** @description Organization ID */
|
|
7381
|
+
organization_id: string;
|
|
7382
|
+
/** @description The ID of the KYB case */
|
|
7383
|
+
case_id: string;
|
|
7384
|
+
/** @description Stable id of the UBO to remove */
|
|
7385
|
+
person_id: string;
|
|
7386
|
+
};
|
|
7387
|
+
cookie?: never;
|
|
7388
|
+
};
|
|
7389
|
+
requestBody?: never;
|
|
7390
|
+
responses: {
|
|
7391
|
+
200: {
|
|
7392
|
+
headers: {
|
|
7393
|
+
[name: string]: unknown;
|
|
7394
|
+
};
|
|
7395
|
+
content: {
|
|
7396
|
+
"application/json": components["schemas"]["KybCaseOfficersResponse"];
|
|
7397
|
+
};
|
|
7398
|
+
};
|
|
7399
|
+
400: {
|
|
7400
|
+
headers: {
|
|
7401
|
+
[name: string]: unknown;
|
|
7402
|
+
};
|
|
7403
|
+
content: {
|
|
7404
|
+
"application/json": components["schemas"]["BaxeError"];
|
|
7405
|
+
};
|
|
7406
|
+
};
|
|
7407
|
+
401: {
|
|
7408
|
+
headers: {
|
|
7409
|
+
[name: string]: unknown;
|
|
7410
|
+
};
|
|
7411
|
+
content: {
|
|
7412
|
+
"application/json": components["schemas"]["BaxeError"];
|
|
7413
|
+
};
|
|
7414
|
+
};
|
|
7415
|
+
403: {
|
|
7416
|
+
headers: {
|
|
7417
|
+
[name: string]: unknown;
|
|
7418
|
+
};
|
|
7419
|
+
content: {
|
|
7420
|
+
"application/json": components["schemas"]["BaxeError"];
|
|
7421
|
+
};
|
|
7422
|
+
};
|
|
7423
|
+
404: {
|
|
7424
|
+
headers: {
|
|
7425
|
+
[name: string]: unknown;
|
|
7426
|
+
};
|
|
7427
|
+
content: {
|
|
7428
|
+
"application/json": components["schemas"]["BaxeError"];
|
|
7429
|
+
};
|
|
7430
|
+
};
|
|
7431
|
+
500: {
|
|
7432
|
+
headers: {
|
|
7433
|
+
[name: string]: unknown;
|
|
7434
|
+
};
|
|
7435
|
+
content: {
|
|
7436
|
+
"application/json": components["schemas"]["BaxeError"];
|
|
7437
|
+
};
|
|
7438
|
+
};
|
|
7439
|
+
};
|
|
7440
|
+
};
|
|
7441
|
+
addKybDirectors: {
|
|
7442
|
+
parameters: {
|
|
7443
|
+
query: {
|
|
7444
|
+
sandbox: boolean;
|
|
7445
|
+
locale?: components["schemas"]["Locale"];
|
|
7446
|
+
};
|
|
7447
|
+
header?: never;
|
|
7448
|
+
path: {
|
|
7449
|
+
/** @description Organization ID */
|
|
7450
|
+
organization_id: string;
|
|
7451
|
+
/** @description The ID of the KYB case */
|
|
7452
|
+
case_id: string;
|
|
6217
7453
|
};
|
|
6218
7454
|
cookie?: never;
|
|
6219
7455
|
};
|
|
6220
|
-
requestBody
|
|
7456
|
+
requestBody: {
|
|
7457
|
+
content: {
|
|
7458
|
+
"application/json": components["schemas"]["AddKybPersonsPayload"];
|
|
7459
|
+
};
|
|
7460
|
+
};
|
|
6221
7461
|
responses: {
|
|
6222
7462
|
200: {
|
|
6223
7463
|
headers: {
|
|
6224
7464
|
[name: string]: unknown;
|
|
6225
7465
|
};
|
|
6226
7466
|
content: {
|
|
6227
|
-
"application/json": components["schemas"]["
|
|
7467
|
+
"application/json": components["schemas"]["KybCaseOfficersResponse"];
|
|
6228
7468
|
};
|
|
6229
7469
|
};
|
|
6230
7470
|
400: {
|
|
@@ -6243,6 +7483,22 @@ export interface operations {
|
|
|
6243
7483
|
"application/json": components["schemas"]["BaxeError"];
|
|
6244
7484
|
};
|
|
6245
7485
|
};
|
|
7486
|
+
403: {
|
|
7487
|
+
headers: {
|
|
7488
|
+
[name: string]: unknown;
|
|
7489
|
+
};
|
|
7490
|
+
content: {
|
|
7491
|
+
"application/json": components["schemas"]["BaxeError"];
|
|
7492
|
+
};
|
|
7493
|
+
};
|
|
7494
|
+
404: {
|
|
7495
|
+
headers: {
|
|
7496
|
+
[name: string]: unknown;
|
|
7497
|
+
};
|
|
7498
|
+
content: {
|
|
7499
|
+
"application/json": components["schemas"]["BaxeError"];
|
|
7500
|
+
};
|
|
7501
|
+
};
|
|
6246
7502
|
500: {
|
|
6247
7503
|
headers: {
|
|
6248
7504
|
[name: string]: unknown;
|
|
@@ -6253,7 +7509,7 @@ export interface operations {
|
|
|
6253
7509
|
};
|
|
6254
7510
|
};
|
|
6255
7511
|
};
|
|
6256
|
-
|
|
7512
|
+
removeKybDirector: {
|
|
6257
7513
|
parameters: {
|
|
6258
7514
|
query: {
|
|
6259
7515
|
sandbox: boolean;
|
|
@@ -6263,21 +7519,21 @@ export interface operations {
|
|
|
6263
7519
|
path: {
|
|
6264
7520
|
/** @description Organization ID */
|
|
6265
7521
|
organization_id: string;
|
|
6266
|
-
/** @description KYB
|
|
6267
|
-
|
|
6268
|
-
/** @description
|
|
6269
|
-
|
|
7522
|
+
/** @description The ID of the KYB case */
|
|
7523
|
+
case_id: string;
|
|
7524
|
+
/** @description Stable id of the director to remove */
|
|
7525
|
+
person_id: string;
|
|
6270
7526
|
};
|
|
6271
7527
|
cookie?: never;
|
|
6272
7528
|
};
|
|
6273
7529
|
requestBody?: never;
|
|
6274
7530
|
responses: {
|
|
6275
|
-
|
|
7531
|
+
200: {
|
|
6276
7532
|
headers: {
|
|
6277
7533
|
[name: string]: unknown;
|
|
6278
7534
|
};
|
|
6279
7535
|
content: {
|
|
6280
|
-
"application/json": components["schemas"]["
|
|
7536
|
+
"application/json": components["schemas"]["KybCaseOfficersResponse"];
|
|
6281
7537
|
};
|
|
6282
7538
|
};
|
|
6283
7539
|
400: {
|
|
@@ -6322,7 +7578,7 @@ export interface operations {
|
|
|
6322
7578
|
};
|
|
6323
7579
|
};
|
|
6324
7580
|
};
|
|
6325
|
-
|
|
7581
|
+
approveKybResult: {
|
|
6326
7582
|
parameters: {
|
|
6327
7583
|
query: {
|
|
6328
7584
|
sandbox: boolean;
|
|
@@ -6339,7 +7595,7 @@ export interface operations {
|
|
|
6339
7595
|
};
|
|
6340
7596
|
requestBody: {
|
|
6341
7597
|
content: {
|
|
6342
|
-
"application/json": components["schemas"]["
|
|
7598
|
+
"application/json": components["schemas"]["ApproveKybPayload"];
|
|
6343
7599
|
};
|
|
6344
7600
|
};
|
|
6345
7601
|
responses: {
|
|
@@ -6348,7 +7604,16 @@ export interface operations {
|
|
|
6348
7604
|
[name: string]: unknown;
|
|
6349
7605
|
};
|
|
6350
7606
|
content: {
|
|
6351
|
-
"application/json": components["schemas"]["
|
|
7607
|
+
"application/json": components["schemas"]["KybDecisionResponse"];
|
|
7608
|
+
};
|
|
7609
|
+
};
|
|
7610
|
+
/** @description The organization's approval matrix asks for a second signature: the approve was recorded as a decision proposal and the KYB result is unchanged */
|
|
7611
|
+
202: {
|
|
7612
|
+
headers: {
|
|
7613
|
+
[name: string]: unknown;
|
|
7614
|
+
};
|
|
7615
|
+
content: {
|
|
7616
|
+
"application/json": components["schemas"]["KybDecisionResponse"];
|
|
6352
7617
|
};
|
|
6353
7618
|
};
|
|
6354
7619
|
400: {
|
|
@@ -6383,6 +7648,14 @@ export interface operations {
|
|
|
6383
7648
|
"application/json": components["schemas"]["BaxeError"];
|
|
6384
7649
|
};
|
|
6385
7650
|
};
|
|
7651
|
+
409: {
|
|
7652
|
+
headers: {
|
|
7653
|
+
[name: string]: unknown;
|
|
7654
|
+
};
|
|
7655
|
+
content: {
|
|
7656
|
+
"application/json": components["schemas"]["BaxeError"];
|
|
7657
|
+
};
|
|
7658
|
+
};
|
|
6386
7659
|
500: {
|
|
6387
7660
|
headers: {
|
|
6388
7661
|
[name: string]: unknown;
|
|
@@ -6393,7 +7666,7 @@ export interface operations {
|
|
|
6393
7666
|
};
|
|
6394
7667
|
};
|
|
6395
7668
|
};
|
|
6396
|
-
|
|
7669
|
+
rejectKybResult: {
|
|
6397
7670
|
parameters: {
|
|
6398
7671
|
query: {
|
|
6399
7672
|
sandbox: boolean;
|
|
@@ -6405,19 +7678,30 @@ export interface operations {
|
|
|
6405
7678
|
organization_id: string;
|
|
6406
7679
|
/** @description KYB result ID */
|
|
6407
7680
|
kyb_result_id: string;
|
|
6408
|
-
/** @description Stable id of the UBO to remove */
|
|
6409
|
-
person_id: string;
|
|
6410
7681
|
};
|
|
6411
7682
|
cookie?: never;
|
|
6412
7683
|
};
|
|
6413
|
-
requestBody
|
|
7684
|
+
requestBody: {
|
|
7685
|
+
content: {
|
|
7686
|
+
"application/json": components["schemas"]["RejectKybPayload"];
|
|
7687
|
+
};
|
|
7688
|
+
};
|
|
6414
7689
|
responses: {
|
|
6415
7690
|
200: {
|
|
6416
7691
|
headers: {
|
|
6417
7692
|
[name: string]: unknown;
|
|
6418
7693
|
};
|
|
6419
7694
|
content: {
|
|
6420
|
-
"application/json": components["schemas"]["
|
|
7695
|
+
"application/json": components["schemas"]["KybDecisionResponse"];
|
|
7696
|
+
};
|
|
7697
|
+
};
|
|
7698
|
+
/** @description The organization's approval matrix asks for a second signature: the reject was recorded as a decision proposal and the KYB result is unchanged */
|
|
7699
|
+
202: {
|
|
7700
|
+
headers: {
|
|
7701
|
+
[name: string]: unknown;
|
|
7702
|
+
};
|
|
7703
|
+
content: {
|
|
7704
|
+
"application/json": components["schemas"]["KybDecisionResponse"];
|
|
6421
7705
|
};
|
|
6422
7706
|
};
|
|
6423
7707
|
400: {
|
|
@@ -6452,6 +7736,14 @@ export interface operations {
|
|
|
6452
7736
|
"application/json": components["schemas"]["BaxeError"];
|
|
6453
7737
|
};
|
|
6454
7738
|
};
|
|
7739
|
+
409: {
|
|
7740
|
+
headers: {
|
|
7741
|
+
[name: string]: unknown;
|
|
7742
|
+
};
|
|
7743
|
+
content: {
|
|
7744
|
+
"application/json": components["schemas"]["BaxeError"];
|
|
7745
|
+
};
|
|
7746
|
+
};
|
|
6455
7747
|
500: {
|
|
6456
7748
|
headers: {
|
|
6457
7749
|
[name: string]: unknown;
|
|
@@ -6462,7 +7754,7 @@ export interface operations {
|
|
|
6462
7754
|
};
|
|
6463
7755
|
};
|
|
6464
7756
|
};
|
|
6465
|
-
|
|
7757
|
+
requestKybDocument: {
|
|
6466
7758
|
parameters: {
|
|
6467
7759
|
query: {
|
|
6468
7760
|
sandbox: boolean;
|
|
@@ -6472,14 +7764,14 @@ export interface operations {
|
|
|
6472
7764
|
path: {
|
|
6473
7765
|
/** @description Organization ID */
|
|
6474
7766
|
organization_id: string;
|
|
6475
|
-
/** @description KYB
|
|
6476
|
-
|
|
7767
|
+
/** @description The ID of the KYB case */
|
|
7768
|
+
case_id: string;
|
|
6477
7769
|
};
|
|
6478
7770
|
cookie?: never;
|
|
6479
7771
|
};
|
|
6480
7772
|
requestBody: {
|
|
6481
7773
|
content: {
|
|
6482
|
-
"application/json": components["schemas"]["
|
|
7774
|
+
"application/json": components["schemas"]["RequestOnDemandDocumentPayload"];
|
|
6483
7775
|
};
|
|
6484
7776
|
};
|
|
6485
7777
|
responses: {
|
|
@@ -6488,7 +7780,7 @@ export interface operations {
|
|
|
6488
7780
|
[name: string]: unknown;
|
|
6489
7781
|
};
|
|
6490
7782
|
content: {
|
|
6491
|
-
"application/json": components["schemas"]["
|
|
7783
|
+
"application/json": components["schemas"]["KybDocumentRequest"];
|
|
6492
7784
|
};
|
|
6493
7785
|
};
|
|
6494
7786
|
400: {
|
|
@@ -6533,7 +7825,7 @@ export interface operations {
|
|
|
6533
7825
|
};
|
|
6534
7826
|
};
|
|
6535
7827
|
};
|
|
6536
|
-
|
|
7828
|
+
getKybCase: {
|
|
6537
7829
|
parameters: {
|
|
6538
7830
|
query: {
|
|
6539
7831
|
sandbox: boolean;
|
|
@@ -6543,10 +7835,8 @@ export interface operations {
|
|
|
6543
7835
|
path: {
|
|
6544
7836
|
/** @description Organization ID */
|
|
6545
7837
|
organization_id: string;
|
|
6546
|
-
/** @description KYB
|
|
6547
|
-
|
|
6548
|
-
/** @description Stable id of the director to remove */
|
|
6549
|
-
person_id: string;
|
|
7838
|
+
/** @description The ID of the KYB case */
|
|
7839
|
+
case_id: string;
|
|
6550
7840
|
};
|
|
6551
7841
|
cookie?: never;
|
|
6552
7842
|
};
|
|
@@ -6557,15 +7847,7 @@ export interface operations {
|
|
|
6557
7847
|
[name: string]: unknown;
|
|
6558
7848
|
};
|
|
6559
7849
|
content: {
|
|
6560
|
-
"application/json": components["schemas"]["
|
|
6561
|
-
};
|
|
6562
|
-
};
|
|
6563
|
-
400: {
|
|
6564
|
-
headers: {
|
|
6565
|
-
[name: string]: unknown;
|
|
6566
|
-
};
|
|
6567
|
-
content: {
|
|
6568
|
-
"application/json": components["schemas"]["BaxeError"];
|
|
7850
|
+
"application/json": components["schemas"]["CaseDetailResponse"];
|
|
6569
7851
|
};
|
|
6570
7852
|
};
|
|
6571
7853
|
401: {
|
|
@@ -6602,7 +7884,7 @@ export interface operations {
|
|
|
6602
7884
|
};
|
|
6603
7885
|
};
|
|
6604
7886
|
};
|
|
6605
|
-
|
|
7887
|
+
decideKybCase: {
|
|
6606
7888
|
parameters: {
|
|
6607
7889
|
query: {
|
|
6608
7890
|
sandbox: boolean;
|
|
@@ -6612,23 +7894,33 @@ export interface operations {
|
|
|
6612
7894
|
path: {
|
|
6613
7895
|
/** @description Organization ID */
|
|
6614
7896
|
organization_id: string;
|
|
6615
|
-
/** @description KYB
|
|
6616
|
-
|
|
7897
|
+
/** @description The ID of the KYB case */
|
|
7898
|
+
case_id: string;
|
|
6617
7899
|
};
|
|
6618
7900
|
cookie?: never;
|
|
6619
7901
|
};
|
|
6620
7902
|
requestBody: {
|
|
6621
7903
|
content: {
|
|
6622
|
-
"application/json": components["schemas"]["
|
|
7904
|
+
"application/json": components["schemas"]["DecideCasePayload"];
|
|
6623
7905
|
};
|
|
6624
7906
|
};
|
|
6625
7907
|
responses: {
|
|
7908
|
+
/** @description The case is decided */
|
|
6626
7909
|
200: {
|
|
6627
7910
|
headers: {
|
|
6628
7911
|
[name: string]: unknown;
|
|
6629
7912
|
};
|
|
6630
7913
|
content: {
|
|
6631
|
-
"application/json": components["schemas"]["
|
|
7914
|
+
"application/json": components["schemas"]["DecidedCaseResponse"];
|
|
7915
|
+
};
|
|
7916
|
+
};
|
|
7917
|
+
/** @description A second signature is needed; a proposal was recorded */
|
|
7918
|
+
202: {
|
|
7919
|
+
headers: {
|
|
7920
|
+
[name: string]: unknown;
|
|
7921
|
+
};
|
|
7922
|
+
content: {
|
|
7923
|
+
"application/json": components["schemas"]["DecidedCaseResponse"];
|
|
6632
7924
|
};
|
|
6633
7925
|
};
|
|
6634
7926
|
400: {
|
|
@@ -6663,6 +7955,14 @@ export interface operations {
|
|
|
6663
7955
|
"application/json": components["schemas"]["BaxeError"];
|
|
6664
7956
|
};
|
|
6665
7957
|
};
|
|
7958
|
+
409: {
|
|
7959
|
+
headers: {
|
|
7960
|
+
[name: string]: unknown;
|
|
7961
|
+
};
|
|
7962
|
+
content: {
|
|
7963
|
+
"application/json": components["schemas"]["BaxeError"];
|
|
7964
|
+
};
|
|
7965
|
+
};
|
|
6666
7966
|
500: {
|
|
6667
7967
|
headers: {
|
|
6668
7968
|
[name: string]: unknown;
|
|
@@ -7653,6 +8953,12 @@ export interface operations {
|
|
|
7653
8953
|
/** @description Page size (default 50, max 200). */
|
|
7654
8954
|
take?: number;
|
|
7655
8955
|
skip?: number;
|
|
8956
|
+
/** @description Only the checks run on this KYB anchor's verification request. */
|
|
8957
|
+
verificationRequestId?: string;
|
|
8958
|
+
/** @description Only the checks run on this flow result's verification requests: the checks of its KYB
|
|
8959
|
+
* result. A KYB result of a split flow names no verification request of its own, so this is
|
|
8960
|
+
* how the dashboard finds them. Ignored when `verificationRequestId` is given. */
|
|
8961
|
+
flowResultId?: string;
|
|
7656
8962
|
sandbox: boolean;
|
|
7657
8963
|
locale?: components["schemas"]["Locale"];
|
|
7658
8964
|
};
|
|
@@ -7908,4 +9214,144 @@ export interface operations {
|
|
|
7908
9214
|
};
|
|
7909
9215
|
};
|
|
7910
9216
|
};
|
|
9217
|
+
sendUboKycReminderDeprecated: {
|
|
9218
|
+
parameters: {
|
|
9219
|
+
query: {
|
|
9220
|
+
sandbox: boolean;
|
|
9221
|
+
locale?: components["schemas"]["Locale"];
|
|
9222
|
+
};
|
|
9223
|
+
header?: never;
|
|
9224
|
+
path: {
|
|
9225
|
+
/** @description Organization ID */
|
|
9226
|
+
organization_id: string;
|
|
9227
|
+
/** @description The ID of the KYB result, which is also the ID of its case */
|
|
9228
|
+
kyb_result_id: string;
|
|
9229
|
+
/** @description Index of the UBO to send the KYC email to, matching the order in uboDefinitions */
|
|
9230
|
+
recipient_index: number;
|
|
9231
|
+
};
|
|
9232
|
+
cookie?: never;
|
|
9233
|
+
};
|
|
9234
|
+
requestBody?: never;
|
|
9235
|
+
responses: {
|
|
9236
|
+
202: {
|
|
9237
|
+
headers: {
|
|
9238
|
+
[name: string]: unknown;
|
|
9239
|
+
};
|
|
9240
|
+
content: {
|
|
9241
|
+
"application/json": components["schemas"]["TriggerReminderResponse"];
|
|
9242
|
+
};
|
|
9243
|
+
};
|
|
9244
|
+
400: {
|
|
9245
|
+
headers: {
|
|
9246
|
+
[name: string]: unknown;
|
|
9247
|
+
};
|
|
9248
|
+
content: {
|
|
9249
|
+
"application/json": components["schemas"]["BaxeError"];
|
|
9250
|
+
};
|
|
9251
|
+
};
|
|
9252
|
+
401: {
|
|
9253
|
+
headers: {
|
|
9254
|
+
[name: string]: unknown;
|
|
9255
|
+
};
|
|
9256
|
+
content: {
|
|
9257
|
+
"application/json": components["schemas"]["BaxeError"];
|
|
9258
|
+
};
|
|
9259
|
+
};
|
|
9260
|
+
403: {
|
|
9261
|
+
headers: {
|
|
9262
|
+
[name: string]: unknown;
|
|
9263
|
+
};
|
|
9264
|
+
content: {
|
|
9265
|
+
"application/json": components["schemas"]["BaxeError"];
|
|
9266
|
+
};
|
|
9267
|
+
};
|
|
9268
|
+
404: {
|
|
9269
|
+
headers: {
|
|
9270
|
+
[name: string]: unknown;
|
|
9271
|
+
};
|
|
9272
|
+
content: {
|
|
9273
|
+
"application/json": components["schemas"]["BaxeError"];
|
|
9274
|
+
};
|
|
9275
|
+
};
|
|
9276
|
+
500: {
|
|
9277
|
+
headers: {
|
|
9278
|
+
[name: string]: unknown;
|
|
9279
|
+
};
|
|
9280
|
+
content: {
|
|
9281
|
+
"application/json": components["schemas"]["BaxeError"];
|
|
9282
|
+
};
|
|
9283
|
+
};
|
|
9284
|
+
};
|
|
9285
|
+
};
|
|
9286
|
+
requestKybDocumentDeprecated: {
|
|
9287
|
+
parameters: {
|
|
9288
|
+
query: {
|
|
9289
|
+
sandbox: boolean;
|
|
9290
|
+
locale?: components["schemas"]["Locale"];
|
|
9291
|
+
};
|
|
9292
|
+
header?: never;
|
|
9293
|
+
path: {
|
|
9294
|
+
/** @description Organization ID */
|
|
9295
|
+
organization_id: string;
|
|
9296
|
+
/** @description The ID of the KYB result, which is also the ID of its case */
|
|
9297
|
+
kyb_result_id: string;
|
|
9298
|
+
};
|
|
9299
|
+
cookie?: never;
|
|
9300
|
+
};
|
|
9301
|
+
requestBody: {
|
|
9302
|
+
content: {
|
|
9303
|
+
"application/json": components["schemas"]["RequestOnDemandDocumentPayload"];
|
|
9304
|
+
};
|
|
9305
|
+
};
|
|
9306
|
+
responses: {
|
|
9307
|
+
200: {
|
|
9308
|
+
headers: {
|
|
9309
|
+
[name: string]: unknown;
|
|
9310
|
+
};
|
|
9311
|
+
content: {
|
|
9312
|
+
"application/json": components["schemas"]["KybDocumentRequest"];
|
|
9313
|
+
};
|
|
9314
|
+
};
|
|
9315
|
+
400: {
|
|
9316
|
+
headers: {
|
|
9317
|
+
[name: string]: unknown;
|
|
9318
|
+
};
|
|
9319
|
+
content: {
|
|
9320
|
+
"application/json": components["schemas"]["BaxeError"];
|
|
9321
|
+
};
|
|
9322
|
+
};
|
|
9323
|
+
401: {
|
|
9324
|
+
headers: {
|
|
9325
|
+
[name: string]: unknown;
|
|
9326
|
+
};
|
|
9327
|
+
content: {
|
|
9328
|
+
"application/json": components["schemas"]["BaxeError"];
|
|
9329
|
+
};
|
|
9330
|
+
};
|
|
9331
|
+
403: {
|
|
9332
|
+
headers: {
|
|
9333
|
+
[name: string]: unknown;
|
|
9334
|
+
};
|
|
9335
|
+
content: {
|
|
9336
|
+
"application/json": components["schemas"]["BaxeError"];
|
|
9337
|
+
};
|
|
9338
|
+
};
|
|
9339
|
+
404: {
|
|
9340
|
+
headers: {
|
|
9341
|
+
[name: string]: unknown;
|
|
9342
|
+
};
|
|
9343
|
+
content: {
|
|
9344
|
+
"application/json": components["schemas"]["BaxeError"];
|
|
9345
|
+
};
|
|
9346
|
+
};
|
|
9347
|
+
500: {
|
|
9348
|
+
headers: {
|
|
9349
|
+
[name: string]: unknown;
|
|
9350
|
+
};
|
|
9351
|
+
content: {
|
|
9352
|
+
"application/json": components["schemas"]["BaxeError"];
|
|
9353
|
+
};
|
|
9354
|
+
};
|
|
9355
|
+
};
|
|
9356
|
+
};
|
|
7911
9357
|
}
|