@zyphe-sdk/core 0.6.0 → 0.8.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 +4481 -1817
- package/dist/index.js +320 -2
- package/dist/index.js.map +1 -1
- package/dist/openapi.d.ts +2190 -638
- package/dist/openapi.json +3146 -484
- 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,78 @@ 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}/report": {
|
|
525
|
+
parameters: {
|
|
526
|
+
query?: never;
|
|
527
|
+
header?: never;
|
|
528
|
+
path?: never;
|
|
529
|
+
cookie?: never;
|
|
530
|
+
};
|
|
531
|
+
/**
|
|
532
|
+
* Download a KYB case's report
|
|
533
|
+
* @description The case's KYB report as a PDF: company, activity, directors, ownership and beneficial owners,
|
|
534
|
+
* screening, adverse media, documents and sources, as the case stands at the time of the request.
|
|
535
|
+
* The report is identified by a hash of its content, returned as `ETag`: send it back as
|
|
536
|
+
* `If-None-Match` to get `304` when nothing in the report has changed.
|
|
537
|
+
*/
|
|
538
|
+
get: operations["getKybCaseReport"];
|
|
539
|
+
put?: never;
|
|
540
|
+
post?: never;
|
|
541
|
+
delete?: never;
|
|
542
|
+
options?: never;
|
|
543
|
+
head?: never;
|
|
544
|
+
patch?: never;
|
|
545
|
+
trace?: never;
|
|
546
|
+
};
|
|
547
|
+
"/sdk/organizations/{organization_id}/kyb-cases/{case_id}/decision": {
|
|
548
|
+
parameters: {
|
|
549
|
+
query?: never;
|
|
550
|
+
header?: never;
|
|
551
|
+
path?: never;
|
|
552
|
+
cookie?: never;
|
|
553
|
+
};
|
|
554
|
+
get?: never;
|
|
555
|
+
put?: never;
|
|
556
|
+
/**
|
|
557
|
+
* Decide a KYB case
|
|
558
|
+
* @description Approves or rejects a KYB case. The decision is recorded as taken with your API key, and is
|
|
559
|
+
* final: a decided case cannot be decided again.
|
|
560
|
+
*
|
|
561
|
+
* - An approval needs the case to be ready for review (`READY_FOR_REVIEW`).
|
|
562
|
+
* - A rejection needs a `reason`.
|
|
563
|
+
* - Answers `200` with the decision. When your organization's approval rules require a second
|
|
564
|
+
* signature, it answers `202` instead: the decision waits until a team member with the required
|
|
565
|
+
* role confirms it in the dashboard.
|
|
566
|
+
*/
|
|
567
|
+
post: operations["decideKybCase"];
|
|
568
|
+
delete?: never;
|
|
569
|
+
options?: never;
|
|
570
|
+
head?: never;
|
|
571
|
+
patch?: never;
|
|
572
|
+
trace?: never;
|
|
573
|
+
};
|
|
297
574
|
"/sdk/organizations/{organization_id}/flow-results/{flow_result_id}/flow/{flow_slug}/details": {
|
|
298
575
|
parameters: {
|
|
299
576
|
query?: never;
|
|
@@ -301,7 +578,12 @@ export interface paths {
|
|
|
301
578
|
path?: never;
|
|
302
579
|
cookie?: never;
|
|
303
580
|
};
|
|
304
|
-
/**
|
|
581
|
+
/**
|
|
582
|
+
* Get flow result details
|
|
583
|
+
* @description Returns one flow result: who it belongs to, its status, and the result of every step the user
|
|
584
|
+
* completed (document verification, liveness, proof of address, screening, forms, KYB and the
|
|
585
|
+
* others). The per-step result endpoints return each step's full detail.
|
|
586
|
+
*/
|
|
305
587
|
get: operations["getFlowResultDetails"];
|
|
306
588
|
put?: never;
|
|
307
589
|
post?: never;
|
|
@@ -318,7 +600,11 @@ export interface paths {
|
|
|
318
600
|
path?: never;
|
|
319
601
|
cookie?: never;
|
|
320
602
|
};
|
|
321
|
-
/**
|
|
603
|
+
/**
|
|
604
|
+
* Get document verification result details
|
|
605
|
+
* @description Returns the full result of one document verification step, with the document images and the
|
|
606
|
+
* data read from the document.
|
|
607
|
+
*/
|
|
322
608
|
get: operations["getDocumentVerificationResultDetails"];
|
|
323
609
|
put?: never;
|
|
324
610
|
post?: never;
|
|
@@ -335,7 +621,11 @@ export interface paths {
|
|
|
335
621
|
path?: never;
|
|
336
622
|
cookie?: never;
|
|
337
623
|
};
|
|
338
|
-
/**
|
|
624
|
+
/**
|
|
625
|
+
* Get proof of address result details
|
|
626
|
+
* @description Returns the full result of one proof of address step, with the address document the user
|
|
627
|
+
* uploaded and the data read from it.
|
|
628
|
+
*/
|
|
339
629
|
get: operations["getProofOfAddressResultDetails"];
|
|
340
630
|
put?: never;
|
|
341
631
|
post?: never;
|
|
@@ -352,7 +642,11 @@ export interface paths {
|
|
|
352
642
|
path?: never;
|
|
353
643
|
cookie?: never;
|
|
354
644
|
};
|
|
355
|
-
/**
|
|
645
|
+
/**
|
|
646
|
+
* Get wallet result details
|
|
647
|
+
* @description Returns the result of one wallet step: the wallet address and chain the user proved they
|
|
648
|
+
* control, the signed message, and the step's status.
|
|
649
|
+
*/
|
|
356
650
|
get: operations["getWalletResultDetails"];
|
|
357
651
|
put?: never;
|
|
358
652
|
post?: never;
|
|
@@ -369,7 +663,10 @@ export interface paths {
|
|
|
369
663
|
path?: never;
|
|
370
664
|
cookie?: never;
|
|
371
665
|
};
|
|
372
|
-
/**
|
|
666
|
+
/**
|
|
667
|
+
* Get phone result details
|
|
668
|
+
* @description Returns the result of one phone step: the phone number the user verified and the step's status.
|
|
669
|
+
*/
|
|
373
670
|
get: operations["getPhoneResultDetails"];
|
|
374
671
|
put?: never;
|
|
375
672
|
post?: never;
|
|
@@ -386,7 +683,11 @@ export interface paths {
|
|
|
386
683
|
path?: never;
|
|
387
684
|
cookie?: never;
|
|
388
685
|
};
|
|
389
|
-
/**
|
|
686
|
+
/**
|
|
687
|
+
* Get form result details
|
|
688
|
+
* @description Returns the answers the user gave in one form step, section by section, with the step's status
|
|
689
|
+
* and any risk tags the answers assigned.
|
|
690
|
+
*/
|
|
390
691
|
get: operations["getFormResultDetails"];
|
|
391
692
|
put?: never;
|
|
392
693
|
post?: never;
|
|
@@ -403,7 +704,10 @@ export interface paths {
|
|
|
403
704
|
path?: never;
|
|
404
705
|
cookie?: never;
|
|
405
706
|
};
|
|
406
|
-
/**
|
|
707
|
+
/**
|
|
708
|
+
* Get flow result details (deprecated)
|
|
709
|
+
* @description **Deprecated.** Use "Get flow result details", which also takes the flow slug.
|
|
710
|
+
*/
|
|
407
711
|
get: operations["getFlowResultDetailsDeprecated"];
|
|
408
712
|
put?: never;
|
|
409
713
|
post?: never;
|
|
@@ -420,7 +724,10 @@ export interface paths {
|
|
|
420
724
|
path?: never;
|
|
421
725
|
cookie?: never;
|
|
422
726
|
};
|
|
423
|
-
/**
|
|
727
|
+
/**
|
|
728
|
+
* Get document verification result details (deprecated)
|
|
729
|
+
* @description **Deprecated.** Use "Get document verification result details", which also takes the flow slug.
|
|
730
|
+
*/
|
|
424
731
|
get: operations["getDocumentVerificationResultDetailsDeprecated"];
|
|
425
732
|
put?: never;
|
|
426
733
|
post?: never;
|
|
@@ -437,7 +744,10 @@ export interface paths {
|
|
|
437
744
|
path?: never;
|
|
438
745
|
cookie?: never;
|
|
439
746
|
};
|
|
440
|
-
/**
|
|
747
|
+
/**
|
|
748
|
+
* Get proof of address result details (deprecated)
|
|
749
|
+
* @description **Deprecated.** Use "Get proof of address result details", which also takes the flow slug.
|
|
750
|
+
*/
|
|
441
751
|
get: operations["getProofOfAddressResultDetailsDeprecated"];
|
|
442
752
|
put?: never;
|
|
443
753
|
post?: never;
|
|
@@ -457,10 +767,10 @@ export interface paths {
|
|
|
457
767
|
get?: never;
|
|
458
768
|
put?: never;
|
|
459
769
|
/**
|
|
460
|
-
*
|
|
461
|
-
* @description
|
|
462
|
-
*
|
|
463
|
-
*
|
|
770
|
+
* Screen a person or company (AML)
|
|
771
|
+
* @description Screens a person or a company against sanctions, politically exposed persons (PEP) and other
|
|
772
|
+
* watchlists, and returns the matching entries in the format named by `format`. The result is
|
|
773
|
+
* returned as found: no risk score is computed and nothing is stored. Each call is charged.
|
|
464
774
|
*/
|
|
465
775
|
post: operations["sdkScreenAml"];
|
|
466
776
|
delete?: never;
|
|
@@ -477,10 +787,10 @@ export interface paths {
|
|
|
477
787
|
cookie?: never;
|
|
478
788
|
};
|
|
479
789
|
/**
|
|
480
|
-
*
|
|
481
|
-
* @description
|
|
482
|
-
*
|
|
483
|
-
*
|
|
790
|
+
* List the top-up credit packs
|
|
791
|
+
* @description Lists the one-time credit packs the organization can purchase, with their price, the
|
|
792
|
+
* number of credits granted and any products they unlock. The catalog may be cached for up
|
|
793
|
+
* to 30 minutes.
|
|
484
794
|
*/
|
|
485
795
|
get: operations["get_topup_packs"];
|
|
486
796
|
put?: never;
|
|
@@ -501,12 +811,10 @@ export interface paths {
|
|
|
501
811
|
get?: never;
|
|
502
812
|
put?: never;
|
|
503
813
|
/**
|
|
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.
|
|
814
|
+
* Create a checkout session for a credit top-up
|
|
815
|
+
* @description The `priceId` must be one of the packs returned by `GET .../billing/topup-packs`. Redirect
|
|
816
|
+
* the user to the returned checkout URL; the credits are added to the organization once the
|
|
817
|
+
* payment completes.
|
|
510
818
|
*/
|
|
511
819
|
post: operations["create_topup_checkout"];
|
|
512
820
|
delete?: never;
|
|
@@ -525,11 +833,11 @@ export interface paths {
|
|
|
525
833
|
get?: never;
|
|
526
834
|
put?: never;
|
|
527
835
|
/**
|
|
528
|
-
*
|
|
529
|
-
* @description
|
|
530
|
-
*
|
|
531
|
-
*
|
|
532
|
-
*
|
|
836
|
+
* Submit a transaction for monitoring
|
|
837
|
+
* @description Records a payment event, checks it against your organization's monitoring rules, and answers
|
|
838
|
+
* right away with the decision (`ALLOW`, `REVIEW` or `BLOCK`), the rules that matched and any
|
|
839
|
+
* alerts raised. Sending the same `externalId` again returns the first answer without checking or
|
|
840
|
+
* charging the transaction twice, so it is safe to retry. Each new transaction is charged.
|
|
533
841
|
*/
|
|
534
842
|
post: operations["sdkIngestTransaction"];
|
|
535
843
|
delete?: never;
|
|
@@ -545,7 +853,11 @@ export interface paths {
|
|
|
545
853
|
path?: never;
|
|
546
854
|
cookie?: never;
|
|
547
855
|
};
|
|
548
|
-
/**
|
|
856
|
+
/**
|
|
857
|
+
* Get a monitored transaction
|
|
858
|
+
* @description Returns a transaction submitted for monitoring: its payment status, the decision and risk
|
|
859
|
+
* probability, the rules that matched, and any alerts it raised.
|
|
860
|
+
*/
|
|
549
861
|
get: operations["sdkGetTransaction"];
|
|
550
862
|
put?: never;
|
|
551
863
|
post?: never;
|
|
@@ -553,12 +865,10 @@ export interface paths {
|
|
|
553
865
|
options?: never;
|
|
554
866
|
head?: never;
|
|
555
867
|
/**
|
|
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.
|
|
868
|
+
* Update a transaction's payment status
|
|
869
|
+
* @description Sets the payment status of a monitored transaction: `PENDING`, `SETTLED`, `FAILED`, `CANCELED`
|
|
870
|
+
* or `REVERSED`. A transaction that failed, was canceled or was reversed stops counting towards the
|
|
871
|
+
* amount and frequency limits of your rules. Sending the same update again is safe.
|
|
562
872
|
*/
|
|
563
873
|
patch: operations["sdkUpdateTransactionStatus"];
|
|
564
874
|
trace?: never;
|
|
@@ -571,18 +881,20 @@ export interface paths {
|
|
|
571
881
|
cookie?: never;
|
|
572
882
|
};
|
|
573
883
|
/**
|
|
574
|
-
* List
|
|
575
|
-
* @description
|
|
576
|
-
*
|
|
884
|
+
* List TIN checks
|
|
885
|
+
* @description Lists your organization's TIN checks, newest first, whether they were run from the dashboard,
|
|
886
|
+
* with an API key, or on a KYB submission. Each check comes with its results, and the TIN is
|
|
887
|
+
* masked to its last four digits. Filter by `flowResultId` to get the checks of a KYB result.
|
|
577
888
|
*/
|
|
578
889
|
get: operations["sdkListTinChecks"];
|
|
579
890
|
put?: never;
|
|
580
891
|
/**
|
|
581
|
-
*
|
|
582
|
-
* @description
|
|
583
|
-
*
|
|
584
|
-
*
|
|
585
|
-
*
|
|
892
|
+
* Run a TIN check
|
|
893
|
+
* @description Checks whether a US Taxpayer Identification Number (SSN or EIN) and a name match IRS records.
|
|
894
|
+
* The same check can also validate a US mailing address and look up a FATCA GIIN. A check that
|
|
895
|
+
* returns an answer is charged in credits ("Get the price of a TIN check" tells how many); a TIN
|
|
896
|
+
* refused as invalid or an unavailable check costs nothing. In sandbox, checks are free and
|
|
897
|
+
* answered from sample data, and `mock` lets you choose the answer.
|
|
586
898
|
*/
|
|
587
899
|
post: operations["sdkRunTinCheck"];
|
|
588
900
|
delete?: never;
|
|
@@ -632,6 +944,57 @@ export interface paths {
|
|
|
632
944
|
patch?: never;
|
|
633
945
|
trace?: never;
|
|
634
946
|
};
|
|
947
|
+
"/sdk/organizations/{organization_id}/kyb/{kyb_result_id}/reminders/ubo/{recipient_index}": {
|
|
948
|
+
parameters: {
|
|
949
|
+
query?: never;
|
|
950
|
+
header?: never;
|
|
951
|
+
path?: never;
|
|
952
|
+
cookie?: never;
|
|
953
|
+
};
|
|
954
|
+
get?: never;
|
|
955
|
+
put?: never;
|
|
956
|
+
/**
|
|
957
|
+
* Send a UBO KYC reminder (deprecated)
|
|
958
|
+
* @deprecated
|
|
959
|
+
* @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.
|
|
960
|
+
*
|
|
961
|
+
* Sends, or sends again, the email that invites one of the case's beneficial owners to complete
|
|
962
|
+
* their identity verification (KYC). The owner is given by their position in the `ubos` list that
|
|
963
|
+
* "Read a KYB case's officers" returns, starting from 0. Only an owner with an email can be
|
|
964
|
+
* invited. Useful when the flow does not send these invitations automatically.
|
|
965
|
+
*/
|
|
966
|
+
post: operations["sendUboKycReminderDeprecated"];
|
|
967
|
+
delete?: never;
|
|
968
|
+
options?: never;
|
|
969
|
+
head?: never;
|
|
970
|
+
patch?: never;
|
|
971
|
+
trace?: never;
|
|
972
|
+
};
|
|
973
|
+
"/sdk/organizations/{organization_id}/kyb/{kyb_result_id}/document-requests/on-demand": {
|
|
974
|
+
parameters: {
|
|
975
|
+
query?: never;
|
|
976
|
+
header?: never;
|
|
977
|
+
path?: never;
|
|
978
|
+
cookie?: never;
|
|
979
|
+
};
|
|
980
|
+
get?: never;
|
|
981
|
+
put?: never;
|
|
982
|
+
/**
|
|
983
|
+
* Request a KYB document (deprecated)
|
|
984
|
+
* @deprecated
|
|
985
|
+
* @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.
|
|
986
|
+
*
|
|
987
|
+
* Asks the business for one more document on a KYB case and returns the request. The document
|
|
988
|
+
* must be one the flow marks as on demand; a document the flow already requires upfront is
|
|
989
|
+
* refused. The business is notified by email.
|
|
990
|
+
*/
|
|
991
|
+
post: operations["requestKybDocumentDeprecated"];
|
|
992
|
+
delete?: never;
|
|
993
|
+
options?: never;
|
|
994
|
+
head?: never;
|
|
995
|
+
patch?: never;
|
|
996
|
+
trace?: never;
|
|
997
|
+
};
|
|
635
998
|
}
|
|
636
999
|
export type webhooks = Record<string, never>;
|
|
637
1000
|
export interface components {
|
|
@@ -693,7 +1056,7 @@ export interface components {
|
|
|
693
1056
|
gender: string;
|
|
694
1057
|
lastName: string;
|
|
695
1058
|
};
|
|
696
|
-
/** @description Request body for `POST
|
|
1059
|
+
/** @description Request body for `POST.../kyb-cases/{case_id}/ubos` and `.../directors`. */
|
|
697
1060
|
AddKybPersonsPayload: {
|
|
698
1061
|
persons: components["schemas"]["AddKybPersonInput"][];
|
|
699
1062
|
};
|
|
@@ -708,13 +1071,14 @@ export interface components {
|
|
|
708
1071
|
street: string;
|
|
709
1072
|
};
|
|
710
1073
|
/**
|
|
711
|
-
* @description
|
|
712
|
-
*
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
*
|
|
717
|
-
*
|
|
1074
|
+
* @description Why a screening carries no adverse media.
|
|
1075
|
+
* @enum {string}
|
|
1076
|
+
*/
|
|
1077
|
+
AdverseMediaAbsence: "NO_PROVIDER" | "PROVIDER_UNAVAILABLE" | "NOT_PERFORMED";
|
|
1078
|
+
/**
|
|
1079
|
+
* @description The adverse-media screening source used for a screening. Your organization's own selection
|
|
1080
|
+
* applies when set, otherwise the platform default. `NONE`, the default, means no adverse-media
|
|
1081
|
+
* screening is performed: it is an opt-in feature.
|
|
718
1082
|
* @enum {string}
|
|
719
1083
|
*/
|
|
720
1084
|
AdverseMediaProviderKind: "NONE" | "VERIFY" | "ONE_MEDIA_CHECK" | "GROK" | "DILISENSE";
|
|
@@ -728,12 +1092,30 @@ export interface components {
|
|
|
728
1092
|
* @enum {string}
|
|
729
1093
|
*/
|
|
730
1094
|
AdverseMediaProviderSource: "organization" | "platform" | "unrecognized";
|
|
731
|
-
/** @description
|
|
1095
|
+
/** @description What an organization allows the reviewer to research, per flow.
|
|
732
1096
|
*
|
|
733
|
-
*
|
|
734
|
-
*
|
|
735
|
-
*
|
|
736
|
-
|
|
1097
|
+
* Off until an organization turns it on, under a platform ceiling read at each run and never
|
|
1098
|
+
* pinned into a manifest — a limit an organization lowers takes effect on the next run, not on the
|
|
1099
|
+
* next case. */
|
|
1100
|
+
AgentResearchTerms: {
|
|
1101
|
+
/** @description `false` — the default — means no research is attempted at all, whatever the limits say. */
|
|
1102
|
+
enabled?: boolean;
|
|
1103
|
+
/**
|
|
1104
|
+
* Format: int32
|
|
1105
|
+
* @description The most hosted searches one run may issue. `0` turns the web search off while leaving the
|
|
1106
|
+
* purchased tools on.
|
|
1107
|
+
*/
|
|
1108
|
+
maxSearches?: number;
|
|
1109
|
+
/**
|
|
1110
|
+
* Format: int32
|
|
1111
|
+
* @description The most, in CREDITS, one run may spend buying answers. `0` is a real setting: research
|
|
1112
|
+
* that adopts what the organization already holds and buys nothing.
|
|
1113
|
+
*/
|
|
1114
|
+
spendLimit?: number;
|
|
1115
|
+
};
|
|
1116
|
+
/** @description A news article found by adverse-media screening for the subject of an AML result, with its
|
|
1117
|
+
* source, publication details, topics and, when available, a relevance score. */
|
|
1118
|
+
AmlAdverseMediaArticle: {
|
|
737
1119
|
eventGroup?: string | null;
|
|
738
1120
|
language: string;
|
|
739
1121
|
locations?: string[];
|
|
@@ -747,14 +1129,9 @@ export interface components {
|
|
|
747
1129
|
topics?: string[];
|
|
748
1130
|
url: string;
|
|
749
1131
|
};
|
|
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. */
|
|
1132
|
+
/** @description Number of adverse-media articles the screening provider filed under one of its topic
|
|
1133
|
+
* categories (for example `financial_crime` or `terrorism`). Labels are provider-specific and
|
|
1134
|
+
* may change, so show them to reviewers rather than building logic on them. */
|
|
758
1135
|
AmlAdverseMediaCategoryCount: {
|
|
759
1136
|
count: number;
|
|
760
1137
|
label: string;
|
|
@@ -786,20 +1163,18 @@ export interface components {
|
|
|
786
1163
|
*/
|
|
787
1164
|
windowStart?: string | null;
|
|
788
1165
|
};
|
|
789
|
-
/** @description Outcome of the latest
|
|
790
|
-
*
|
|
791
|
-
* a
|
|
792
|
-
*
|
|
793
|
-
* (see [`AmlRiskResult::agent_review_in_force`]). */
|
|
1166
|
+
/** @description Outcome of the latest automated AI review of this screening: the verdict, the action actually
|
|
1167
|
+
* taken, the rationale and the remaining risk score. When `suggested` is `true` the verdict is
|
|
1168
|
+
* only a suggestion for a human reviewer. It applies to the current screening only and no longer
|
|
1169
|
+
* counts once the subject is re-screened. */
|
|
794
1170
|
AmlAgentReview: {
|
|
795
1171
|
/** @description The action actually enacted, post-guard and post-normalization. */
|
|
796
1172
|
enactedAction: components["schemas"]["AmlAgentReviewAction"];
|
|
797
|
-
/** @description
|
|
798
|
-
*
|
|
1173
|
+
/** @description Version of the review policy used, on older reviews only. Newer reviews report
|
|
1174
|
+
* `promptVersions` instead. */
|
|
799
1175
|
policyVersion?: string | null;
|
|
800
|
-
/** @description Version of each
|
|
801
|
-
*
|
|
802
|
-
* legacy reviews, which carry [`Self::policy_version`] instead. */
|
|
1176
|
+
/** @description Version of each prompt used to reach the verdict, keyed by prompt type, so the review can be
|
|
1177
|
+
* traced. Empty on older reviews, which report `policyVersion` instead. */
|
|
803
1178
|
promptVersions?: {
|
|
804
1179
|
[key: string]: string;
|
|
805
1180
|
};
|
|
@@ -815,17 +1190,14 @@ export interface components {
|
|
|
815
1190
|
verdictAction: components["schemas"]["AmlAgentReviewAction"];
|
|
816
1191
|
};
|
|
817
1192
|
/**
|
|
818
|
-
* @description The action
|
|
819
|
-
*
|
|
820
|
-
* `requestClarification` / `escalate`) match the strings previously stored on
|
|
821
|
-
* `metadata.agentReview`, so existing records deserialize unchanged.
|
|
1193
|
+
* @description The action an automated review decided on: `approve`, `requestClarification` or `escalate`
|
|
1194
|
+
* (hand over to a human reviewer).
|
|
822
1195
|
* @enum {string}
|
|
823
1196
|
*/
|
|
824
1197
|
AmlAgentReviewAction: "approve" | "requestClarification" | "escalate";
|
|
825
1198
|
AmlCheckSummary: {
|
|
826
|
-
/** @description Whether the adverse-media screening for this subject returned any articles.
|
|
827
|
-
*
|
|
828
|
-
* adverse-media screening) deserializable as `false`. */
|
|
1199
|
+
/** @description Whether the adverse-media screening for this subject returned any articles. `false` when no
|
|
1200
|
+
* articles were found or adverse media was not screened. */
|
|
829
1201
|
hasAdverseMedia?: boolean;
|
|
830
1202
|
hasPep: boolean;
|
|
831
1203
|
hasSanctions: boolean;
|
|
@@ -909,18 +1281,14 @@ export interface components {
|
|
|
909
1281
|
* so a reviewer can tell a name-only screening from one that matched on a birth date too. */
|
|
910
1282
|
dateOfBirth?: string | null;
|
|
911
1283
|
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. */
|
|
1284
|
+
/** @description The gender actually used in the screening query, after normalization. Absent when no gender
|
|
1285
|
+
* was declared, or when the declared value could not be mapped and was left out of the query. */
|
|
918
1286
|
gender?: string | null;
|
|
919
1287
|
lastName: string;
|
|
920
1288
|
};
|
|
921
1289
|
AmlResult: {
|
|
922
|
-
/** @description Whether adverse-media screening for this subject returned a hit.
|
|
923
|
-
*
|
|
1290
|
+
/** @description Whether adverse-media screening for this subject returned a hit. `false` when there was no
|
|
1291
|
+
* hit or adverse media was not screened. */
|
|
924
1292
|
adverseMedia?: boolean;
|
|
925
1293
|
/** Format: date-time */
|
|
926
1294
|
createdAt: string;
|
|
@@ -936,8 +1304,7 @@ export interface components {
|
|
|
936
1304
|
namedPersonRef?: string | null;
|
|
937
1305
|
pep: boolean;
|
|
938
1306
|
sanctions: boolean;
|
|
939
|
-
/** @description
|
|
940
|
-
* `#[serde(default)]` (→ `Person`) only covers legacy cached payloads that predate it. */
|
|
1307
|
+
/** @description Whether the screened subject is a person (`PERSON`) or a company (`COMPANY`). */
|
|
941
1308
|
subjectType?: components["schemas"]["AmlSubjectType"];
|
|
942
1309
|
/** Format: date-time */
|
|
943
1310
|
updatedAt: string;
|
|
@@ -946,6 +1313,20 @@ export interface components {
|
|
|
946
1313
|
};
|
|
947
1314
|
AmlRiskMetadata: {
|
|
948
1315
|
adverseMedia?: null | components["schemas"]["AmlAdverseMediaResult"];
|
|
1316
|
+
/** @description What the screening's ORDER asked for, recorded verbatim: `Some(true)` when a KYB case asked
|
|
1317
|
+
* for adverse media, `Some(false)` when it explicitly declined, `None` when nobody asked and
|
|
1318
|
+
* the path's own default applied.
|
|
1319
|
+
*
|
|
1320
|
+
* A refresh re-screens under the order the original screening ran under, and the order is the
|
|
1321
|
+
* only thing that can say what that was. Inferring it from the OUTCOME — "it carries adverse
|
|
1322
|
+
* media, so somebody must have asked" — reads a legacy company screening, which always
|
|
1323
|
+
* attaches, as case-ordered, and cannot tell a case that declined from a case that never
|
|
1324
|
+
* asked at all.
|
|
1325
|
+
*
|
|
1326
|
+
* `None` on every row written before this field existed, which is the same thing it means on
|
|
1327
|
+
* a new one: nobody asked, so the path's default applies, exactly as it did. */
|
|
1328
|
+
adverseMediaRequested?: boolean | null;
|
|
1329
|
+
adverseMediaUnavailable?: null | components["schemas"]["AdverseMediaAbsence"];
|
|
949
1330
|
agentReview?: null | components["schemas"]["AmlAgentReview"];
|
|
950
1331
|
/** Format: date-time */
|
|
951
1332
|
checkedAt: string;
|
|
@@ -988,6 +1369,18 @@ export interface components {
|
|
|
988
1369
|
AmlSubjectType: "PERSON" | "COMPANY";
|
|
989
1370
|
/** @enum {string} */
|
|
990
1371
|
ApiKeyType: "PUBLISHABLE" | "SECRET";
|
|
1372
|
+
/** @description Request body of the SDK's deprecated `POST /sdk/organizations/{organization_id}/kyb/{kyb_result_id}/approve`.
|
|
1373
|
+
*
|
|
1374
|
+
* Both humans and the KYB agent use this endpoint to complete a KYB review.
|
|
1375
|
+
* The caller is responsible for running the appropriate pre-approval guard
|
|
1376
|
+
* before calling this endpoint. */
|
|
1377
|
+
ApproveKybPayload: {
|
|
1378
|
+
dueDiligenceLevel?: null | components["schemas"]["DueDiligenceLevel"];
|
|
1379
|
+
/** @description Optional reason / summary for the approval decision. Stored on the KYB
|
|
1380
|
+
* result and visible in the audit trail. */
|
|
1381
|
+
reason?: string | null;
|
|
1382
|
+
reasonCode?: null | components["schemas"]["KybCaseDecisionReasonCode"];
|
|
1383
|
+
};
|
|
991
1384
|
/** @description A single custom risk tag that was assigned to a flow result by the flow builder. */
|
|
992
1385
|
AssignedRiskTag: {
|
|
993
1386
|
/**
|
|
@@ -1012,18 +1405,25 @@ export interface components {
|
|
|
1012
1405
|
/** Format: double */
|
|
1013
1406
|
weight: number;
|
|
1014
1407
|
};
|
|
1015
|
-
/** @description
|
|
1016
|
-
*
|
|
1408
|
+
/** @description The custom risk tags assigned to a flow result, including removed ones (which carry a removal
|
|
1409
|
+
* time). */
|
|
1017
1410
|
AssignedRiskTags: components["schemas"]["AssignedRiskTag"][];
|
|
1411
|
+
/** @description Whom a subject is handed to: a named person, or whoever holds an existing role. */
|
|
1412
|
+
AssigneePayload: {
|
|
1413
|
+
/** Format: uuid */
|
|
1414
|
+
identityId: string;
|
|
1415
|
+
/** @enum {string} */
|
|
1416
|
+
kind: "IDENTITY";
|
|
1417
|
+
} | {
|
|
1418
|
+
/** @enum {string} */
|
|
1419
|
+
kind: "ROLE";
|
|
1420
|
+
role: string;
|
|
1421
|
+
};
|
|
1018
1422
|
/**
|
|
1019
|
-
* @description
|
|
1020
|
-
*
|
|
1021
|
-
* `JsonDisplay` / `JsonFromStr` keep `Display` and `FromStr` in sync with serde,
|
|
1022
|
-
* so `.to_string()` always produces the DB-compatible string
|
|
1023
|
-
* (e.g., `AuditAction::FlowCreated` → `"FLOW_CREATED"`).
|
|
1423
|
+
* @description The action recorded by an audit log entry (e.g. `FLOW_CREATED`).
|
|
1024
1424
|
* @enum {string}
|
|
1025
1425
|
*/
|
|
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";
|
|
1426
|
+
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_AGENT_RUN_ENDED" | "KYB_CASE_DOSSIER_EXPORTED" | "KYB_CASE_REPORT_DOWNLOADED" | "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_RUN_SUPERSEDED" | "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
1427
|
/** @description A single entry in the audit log, returned by the query API. */
|
|
1028
1428
|
AuditLogEntry: {
|
|
1029
1429
|
action: components["schemas"]["AuditAction"];
|
|
@@ -1035,6 +1435,12 @@ export interface components {
|
|
|
1035
1435
|
/** Format: date-time */
|
|
1036
1436
|
createdAt: string;
|
|
1037
1437
|
details: unknown;
|
|
1438
|
+
/**
|
|
1439
|
+
* Format: int64
|
|
1440
|
+
* @description The entry's position on the audit log's hash chain. One entry is read back with the filter
|
|
1441
|
+
* `entry_seq:equals:<n>`.
|
|
1442
|
+
*/
|
|
1443
|
+
entrySeq: number;
|
|
1038
1444
|
/** Format: uuid */
|
|
1039
1445
|
id: string;
|
|
1040
1446
|
/** @description Whether this entry originated from a sandbox operation.
|
|
@@ -1050,20 +1456,12 @@ export interface components {
|
|
|
1050
1456
|
sessionId?: string | null;
|
|
1051
1457
|
source?: null | components["schemas"]["AuditSource"];
|
|
1052
1458
|
};
|
|
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"`). */
|
|
1459
|
+
/** @description The outcome of the operation that produced an audit entry, identified by `type`:
|
|
1460
|
+
* - `httpSuccess` — the API request succeeded (2xx); `status` is the HTTP status code.
|
|
1461
|
+
* - `httpError` — the API request failed (non-2xx); `status` is the HTTP status code, and
|
|
1462
|
+
* `code` and `tag` identify the error returned in the response body, when available.
|
|
1463
|
+
* - `workerOk` — a background process completed successfully.
|
|
1464
|
+
* - `workerError` — a background process failed; `variant` names the error. */
|
|
1067
1465
|
AuditOutcome: {
|
|
1068
1466
|
/**
|
|
1069
1467
|
* Format: int32
|
|
@@ -1075,8 +1473,8 @@ export interface components {
|
|
|
1075
1473
|
} | {
|
|
1076
1474
|
/**
|
|
1077
1475
|
* Format: int32
|
|
1078
|
-
* @description Application-level error code from
|
|
1079
|
-
* `
|
|
1476
|
+
* @description Application-level error code from the error response body (e.g. 200 for validation,
|
|
1477
|
+
* 201 for deserialization). `null` when the error did not carry one.
|
|
1080
1478
|
*/
|
|
1081
1479
|
code?: number | null;
|
|
1082
1480
|
/**
|
|
@@ -1094,27 +1492,19 @@ export interface components {
|
|
|
1094
1492
|
} | {
|
|
1095
1493
|
/** @enum {string} */
|
|
1096
1494
|
type: "workerError";
|
|
1097
|
-
/** @description
|
|
1495
|
+
/** @description Name of the error that caused the failure (e.g. `"VaultLocked"`, `"UpsertDvResult"`). */
|
|
1098
1496
|
variant: string;
|
|
1099
1497
|
};
|
|
1100
1498
|
/**
|
|
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.
|
|
1499
|
+
* @description The type of resource an audit log entry refers to. `Unknown` when the resource type could
|
|
1500
|
+
* not be determined (e.g. for some system operations).
|
|
1106
1501
|
* @enum {string}
|
|
1107
1502
|
*/
|
|
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). */
|
|
1503
|
+
AuditResourceType: "Search" | "Identity" | "Organization" | "OrganizationSettings" | "OrganizationTheme" | "OrganizationInvite" | "OrganizationBilling" | "SubscriptionPlan" | "KybJurisdictionPricing" | "TopupPack" | "ApiKey" | "Bot" | "McpClient" | "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";
|
|
1504
|
+
/** @description What triggered an audit event, identified by `type`:
|
|
1505
|
+
* - `HTTP` — an API request (`method` and `path`).
|
|
1506
|
+
* - `WORKER` — a background process (`workerType` and `scenario`).
|
|
1507
|
+
* - `SCHEDULED` — a scheduled task (`taskName`). */
|
|
1118
1508
|
AuditSource: {
|
|
1119
1509
|
/** @description HTTP method (e.g. "GET", "POST", "PUT", "DELETE"). */
|
|
1120
1510
|
method: string;
|
|
@@ -1123,11 +1513,11 @@ export interface components {
|
|
|
1123
1513
|
/** @enum {string} */
|
|
1124
1514
|
type: "HTTP";
|
|
1125
1515
|
} | {
|
|
1126
|
-
/** @description
|
|
1516
|
+
/** @description What started the background process. */
|
|
1127
1517
|
scenario: components["schemas"]["WorkerScenario"];
|
|
1128
1518
|
/** @enum {string} */
|
|
1129
1519
|
type: "WORKER";
|
|
1130
|
-
/** @description The
|
|
1520
|
+
/** @description The kind of background process that emitted this event. */
|
|
1131
1521
|
workerType: components["schemas"]["WorkerType"];
|
|
1132
1522
|
} | {
|
|
1133
1523
|
/** @description Name of the scheduled task (e.g. "AML_REFRESH", "CLEANUP"). */
|
|
@@ -1239,17 +1629,10 @@ export interface components {
|
|
|
1239
1629
|
incorporationDate: string;
|
|
1240
1630
|
postZipCode: string;
|
|
1241
1631
|
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. */
|
|
1632
|
+
/** @description The state or region the company is registered in, as the subdivision part of its ISO
|
|
1633
|
+
* 3166-2 code without the country prefix (for example `"DE"` for Delaware or `"NY"` for New
|
|
1634
|
+
* York), read together with `country`. Required only where company registers are regional
|
|
1635
|
+
* rather than national (currently the US); absent for every other country. */
|
|
1253
1636
|
subdivision?: string | null;
|
|
1254
1637
|
};
|
|
1255
1638
|
/** @description Parsed representation of the client's clarification response stored inside
|
|
@@ -1271,6 +1654,117 @@ export interface components {
|
|
|
1271
1654
|
/** @description The new value proposed by the client. */
|
|
1272
1655
|
value: string;
|
|
1273
1656
|
};
|
|
1657
|
+
/** @description How far a case has been checked, as a list row can afford to answer it.
|
|
1658
|
+
*
|
|
1659
|
+
* The case's own coverage read (`GET …/coverage`) answers per requirement AND per subject: it fans
|
|
1660
|
+
* out over the screening population and the officer groups, and it reports the requirements that
|
|
1661
|
+
* nothing was configured to answer at all. That reading costs a manifest, an officer population
|
|
1662
|
+
* and a policy per case, which a page of fifty cannot afford — so a row carries the cheaper one:
|
|
1663
|
+
* the case's own steps, counted by how each settled.
|
|
1664
|
+
*
|
|
1665
|
+
* It is a sorting aid — "this file still has three checks out" — and deliberately not the
|
|
1666
|
+
* approval gate. The two readings can differ: this one knows nothing about a requirement that
|
|
1667
|
+
* left no step behind, nor about one subject of a screening that covered the others, so
|
|
1668
|
+
* `complete` here means the steps are done and never that the case may be approved. */
|
|
1669
|
+
CaseCoverageSummary: {
|
|
1670
|
+
/** @description Every step settled covered, and there was at least one. A case nothing has been planned for
|
|
1671
|
+
* yet reads `false`: there is nothing that could have covered it. */
|
|
1672
|
+
complete: boolean;
|
|
1673
|
+
/**
|
|
1674
|
+
* Format: int32
|
|
1675
|
+
* @description Steps that answered their requirement: completed, adopted, waived, or failed and confirmed
|
|
1676
|
+
* by a person with evidence.
|
|
1677
|
+
*/
|
|
1678
|
+
covered: number;
|
|
1679
|
+
/**
|
|
1680
|
+
* Format: int32
|
|
1681
|
+
* @description Steps that have not settled yet, and the requirements nothing has been planned for.
|
|
1682
|
+
*/
|
|
1683
|
+
pending: number;
|
|
1684
|
+
/**
|
|
1685
|
+
* Format: int32
|
|
1686
|
+
* @description Steps that settled without answering it — failed, or skipped with nothing to re-answer it.
|
|
1687
|
+
*/
|
|
1688
|
+
uncovered: number;
|
|
1689
|
+
};
|
|
1690
|
+
/** @description One case as its own read answers.
|
|
1691
|
+
*
|
|
1692
|
+
* The list row, flattened so every key a client already binds against stays exactly where it was,
|
|
1693
|
+
* plus the one thing a single case can afford that a page cannot: its **episodes**, each attempt
|
|
1694
|
+
* at the case from an opening or a reopening to the decision that closed it. A case reopens under
|
|
1695
|
+
* its own id, so without them a file decided, resubmitted and decided again reads as one flat
|
|
1696
|
+
* timeline in which nothing says which attempt an act belonged to. */
|
|
1697
|
+
CaseDetailResponse: components["schemas"]["CaseSummaryResponse"] & {
|
|
1698
|
+
/** @description Oldest first; a case always has at least one. Derived from the case's transitions and
|
|
1699
|
+
* decisions at read time and stored nowhere. */
|
|
1700
|
+
episodes?: components["schemas"]["CaseEpisode"][];
|
|
1701
|
+
};
|
|
1702
|
+
/** @description One attempt at the case, from an opening or a reopening to its decision.
|
|
1703
|
+
*
|
|
1704
|
+
* Derived from the case's transitions and decisions; nothing stores it. */
|
|
1705
|
+
CaseEpisode: {
|
|
1706
|
+
cause: components["schemas"]["EpisodeCause"];
|
|
1707
|
+
decision?: null | components["schemas"]["EpisodeDecision"];
|
|
1708
|
+
/**
|
|
1709
|
+
* Format: int32
|
|
1710
|
+
* @description 1 for the first, counting up. A case always has at least one.
|
|
1711
|
+
*/
|
|
1712
|
+
number: number;
|
|
1713
|
+
/** Format: date-time */
|
|
1714
|
+
openedAt: string;
|
|
1715
|
+
/**
|
|
1716
|
+
* Format: uuid
|
|
1717
|
+
* @description Who reopened it, where a person did. The first episode opens with the case and names
|
|
1718
|
+
* nobody.
|
|
1719
|
+
*/
|
|
1720
|
+
openedBy?: string | null;
|
|
1721
|
+
};
|
|
1722
|
+
/** @description A company's rating as a case list shows it: the level in force and whether a person set it.
|
|
1723
|
+
* The parts it was computed from and its override history are the rating's own read. */
|
|
1724
|
+
CaseRatingSummary: {
|
|
1725
|
+
/** @description The level in force: the override's while one is in force, the computed one otherwise. */
|
|
1726
|
+
level: components["schemas"]["KybRatingLevel"];
|
|
1727
|
+
/** @description Whether an override is in force over the computed level. */
|
|
1728
|
+
overridden: boolean;
|
|
1729
|
+
/** Format: uuid */
|
|
1730
|
+
ratingId: string;
|
|
1731
|
+
};
|
|
1732
|
+
/** @description A case as a reviewer's list reads it.
|
|
1733
|
+
*
|
|
1734
|
+
* `assignment` and `rating` are not the case's own: both are kept per company, so a list reads
|
|
1735
|
+
* them off `companyKey`. They are here so a worklist is one read — who holds each case and how
|
|
1736
|
+
* risky its company is are what a reviewer sorts their day by. */
|
|
1737
|
+
CaseSummaryResponse: {
|
|
1738
|
+
assignment?: null | components["schemas"]["SubjectAssignmentResponse"];
|
|
1739
|
+
/** @description The key the company's assignment and rating are kept under. Absent for a company with no
|
|
1740
|
+
* registration number: it cannot be told from another in its country, so nothing is kept
|
|
1741
|
+
* about it and it can be neither assigned nor rated. */
|
|
1742
|
+
companyKey?: string | null;
|
|
1743
|
+
country: string;
|
|
1744
|
+
/** @description How far the case has been checked, counted over its own steps. Present on every row: a case
|
|
1745
|
+
* with nothing planned yet reads three zeros and `complete: false`, which is an answer. */
|
|
1746
|
+
coverage: components["schemas"]["CaseCoverageSummary"];
|
|
1747
|
+
/** Format: date-time */
|
|
1748
|
+
createdAt: string;
|
|
1749
|
+
dueDiligenceLevel: components["schemas"]["KybCaseDueDiligenceLevel"];
|
|
1750
|
+
episode?: null | components["schemas"]["EpisodeRef"];
|
|
1751
|
+
/** Format: uuid */
|
|
1752
|
+
flowResultId?: string | null;
|
|
1753
|
+
/** Format: uuid */
|
|
1754
|
+
id: string;
|
|
1755
|
+
legalName?: string | null;
|
|
1756
|
+
/** @description `CLIENT` | `RM` | `COMPLIANCE` | `SUPPORT` | `FUNDED` | `DENIED`, where set. */
|
|
1757
|
+
nextAction?: string | null;
|
|
1758
|
+
/** @description Who opened the case: `END_USER` (the business applicant, through a flow), `OPERATOR` (a member of your
|
|
1759
|
+
* organization) or `MIGRATION` (created from a KYB result that predates KYB cases). */
|
|
1760
|
+
origin: components["schemas"]["KybCaseOrigin"];
|
|
1761
|
+
rating?: null | components["schemas"]["CaseRatingSummary"];
|
|
1762
|
+
registrationNumber?: string | null;
|
|
1763
|
+
status: components["schemas"]["KybCaseStatus"];
|
|
1764
|
+
/** Format: date-time */
|
|
1765
|
+
updatedAt: string;
|
|
1766
|
+
waitingOn?: null | components["schemas"]["OwedBy"];
|
|
1767
|
+
};
|
|
1274
1768
|
/**
|
|
1275
1769
|
* @description Provider-agnostic check status.
|
|
1276
1770
|
*
|
|
@@ -1280,9 +1774,9 @@ export interface components {
|
|
|
1280
1774
|
* # Deserialization
|
|
1281
1775
|
*
|
|
1282
1776
|
* Supports both string format ("passed", "failed", etc.) and legacy integer codes:
|
|
1283
|
-
* - 0 = Passed
|
|
1284
|
-
* - 1 = Failed
|
|
1285
|
-
* - 2 = NotPerformed
|
|
1777
|
+
* - 0 = Passed
|
|
1778
|
+
* - 1 = Failed
|
|
1779
|
+
* - 2 = NotPerformed
|
|
1286
1780
|
* @enum {string}
|
|
1287
1781
|
*/
|
|
1288
1782
|
CheckStatus: "passed" | "failed" | "not_performed" | "unknown";
|
|
@@ -1483,33 +1977,30 @@ export interface components {
|
|
|
1483
1977
|
accepted: string[];
|
|
1484
1978
|
blocked: string[];
|
|
1485
1979
|
};
|
|
1486
|
-
/** @description Request body for
|
|
1487
|
-
*
|
|
1488
|
-
* is Didit. */
|
|
1980
|
+
/** @description Request body for creating a hosted document-verification session. Both fields are optional,
|
|
1981
|
+
* and they only take effect when hosted capture sessions are enabled for your deployment. */
|
|
1489
1982
|
CreateDvSessionPayload: {
|
|
1490
|
-
/** @description Preferred hosted
|
|
1491
|
-
*
|
|
1983
|
+
/** @description Preferred language for the hosted capture flow, as a language code (e.g. `"en"`). An
|
|
1984
|
+
* unsupported code is ignored rather than rejected, and the default language is used. */
|
|
1492
1985
|
language?: string | null;
|
|
1493
1986
|
/** @description Sandbox-only outcome control (e.g. `"approve"`, `"decline_document_expired"`). Ignored
|
|
1494
1987
|
* outside sandbox. */
|
|
1495
1988
|
sandboxScenario?: string | null;
|
|
1496
1989
|
};
|
|
1497
|
-
/** @description
|
|
1498
|
-
*
|
|
1499
|
-
*
|
|
1990
|
+
/** @description A newly created hosted document-verification session. Embed `url` in an iframe; once the user
|
|
1991
|
+
* has finished, send `sessionToken` and `sessionId` (as `interviewId`) to `process-dv-document`
|
|
1992
|
+
* to retrieve the results. */
|
|
1500
1993
|
CreateDvSessionResponse: {
|
|
1501
|
-
/** @description What
|
|
1502
|
-
*
|
|
1503
|
-
* concrete provider is behind it. */
|
|
1994
|
+
/** @description What this session can do: its capture mode, whether capture traffic goes through Zyphe's
|
|
1995
|
+
* proxy, and whether the session itself covers the liveness and document-authenticity checks. */
|
|
1504
1996
|
capture: components["schemas"]["DvCapture"];
|
|
1505
1997
|
sessionId: string;
|
|
1506
1998
|
sessionToken: string;
|
|
1507
1999
|
url: string;
|
|
1508
2000
|
};
|
|
1509
|
-
/** @description Request to create a
|
|
1510
|
-
* purchase (`POST .../billing/topup/checkout`). */
|
|
2001
|
+
/** @description Request to create a checkout session for a one-time credit top-up purchase. */
|
|
1511
2002
|
CreateTopupCheckoutRequest: {
|
|
1512
|
-
/** @description The
|
|
2003
|
+
/** @description The price ID of the top-up pack to purchase, as returned in `priceId` by
|
|
1513
2004
|
* `GET .../billing/topup-packs`. */
|
|
1514
2005
|
priceId: string;
|
|
1515
2006
|
/** @description Optional redirect URI after checkout. If not provided, redirects to the webapp root. */
|
|
@@ -1542,10 +2033,7 @@ export interface components {
|
|
|
1542
2033
|
CreationSource: "SELF_SERVE" | "ADMIN" | "PARTNER";
|
|
1543
2034
|
/** @enum {string} */
|
|
1544
2035
|
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`. */
|
|
2036
|
+
/** @description When the credits granted by a subscription plan at each renewal expire. */
|
|
1549
2037
|
CreditExpiryPolicy: {
|
|
1550
2038
|
/** @enum {string} */
|
|
1551
2039
|
type: "periodEnd";
|
|
@@ -1565,6 +2053,79 @@ export interface components {
|
|
|
1565
2053
|
};
|
|
1566
2054
|
/** @example usd */
|
|
1567
2055
|
Currency: string;
|
|
2056
|
+
/** @description A reviewer's decision on a case: the one immutable decision it gets. */
|
|
2057
|
+
DecideCasePayload: {
|
|
2058
|
+
/**
|
|
2059
|
+
* Format: uuid
|
|
2060
|
+
* @description The standing proposed decision this act is the **second signature** on.
|
|
2061
|
+
*
|
|
2062
|
+
* Where the organization's approval matrix asks for two signatures, the first act answers
|
|
2063
|
+
* `202` with `decisionProposal`; sending its id back here is what closes the case. The
|
|
2064
|
+
* confirmer must be a different **person** holding a decider role, and the proposal lapses
|
|
2065
|
+
* rather than being honoured if the state it pinned has moved.
|
|
2066
|
+
*/
|
|
2067
|
+
confirmingProposalId?: string | null;
|
|
2068
|
+
dueDiligenceLevel?: null | components["schemas"]["DueDiligenceLevel"];
|
|
2069
|
+
/** @description `APPROVED` | `REJECTED`. An approval needs `READY_FOR_REVIEW`; a rejection is also accepted
|
|
2070
|
+
* from `ACTION_REQUIRED`, and then needs a reason. */
|
|
2071
|
+
outcome: components["schemas"]["KybCaseDecisionOutcome"];
|
|
2072
|
+
/** @description Mandatory on every rejection, and on an approval resting on a recorded exception or on a
|
|
2073
|
+
* held match; optional on a clean approval. A blank string is no reason. */
|
|
2074
|
+
reason?: string | null;
|
|
2075
|
+
reasonCode?: null | components["schemas"]["KybCaseDecisionReasonCode"];
|
|
2076
|
+
};
|
|
2077
|
+
/** @description What the decision route did: closed the case (`200`), or recorded the first of two signatures
|
|
2078
|
+
* (`202`) — the same body, with only the half that happened filled in.
|
|
2079
|
+
*
|
|
2080
|
+
* One type for both because one act produced both: the matrix, not the caller, decides which. On
|
|
2081
|
+
* a `200` the body is exactly what it has always been; on a `202` the decision half is absent and
|
|
2082
|
+
* `decisionProposal` says who is awaited. */
|
|
2083
|
+
DecidedCaseResponse: {
|
|
2084
|
+
/** Format: date-time */
|
|
2085
|
+
decidedAt?: string | null;
|
|
2086
|
+
/**
|
|
2087
|
+
* Format: uuid
|
|
2088
|
+
* @description Absent on a `202`: nothing was decided, so there is no decision.
|
|
2089
|
+
*/
|
|
2090
|
+
decisionId?: string | null;
|
|
2091
|
+
decisionProposal?: null | components["schemas"]["DecisionProposalSummary"];
|
|
2092
|
+
/** @description The outcome decided, or — on a `202` — the outcome proposed. */
|
|
2093
|
+
outcome: components["schemas"]["KybCaseDecisionOutcome"];
|
|
2094
|
+
/**
|
|
2095
|
+
* Format: uuid
|
|
2096
|
+
* @description The report version the decision sealed, package and all. Absent on a `202`.
|
|
2097
|
+
*/
|
|
2098
|
+
reportVersionId?: string | null;
|
|
2099
|
+
statusAfter?: null | components["schemas"]["KybCaseStatus"];
|
|
2100
|
+
statusBefore?: null | components["schemas"]["KybCaseStatus"];
|
|
2101
|
+
};
|
|
2102
|
+
/** @description The decision the organization's approval matrix turned into a *proposal*.
|
|
2103
|
+
*
|
|
2104
|
+
* The first signature is recorded and the case is NOT decided: someone holding one of
|
|
2105
|
+
* `awaitingRoles`, and not the proposer, confirms it through the case route's decision-proposal
|
|
2106
|
+
* endpoints. A legacy door that gets one answers `202` rather than `200`, so an integrator that
|
|
2107
|
+
* reads only the status code still learns that nothing is final. */
|
|
2108
|
+
DecisionProposalRecorded: {
|
|
2109
|
+
/** @description Who may give the second signature. Empty only if the matrix named nobody, which cannot
|
|
2110
|
+
* happen: a proposal exists because a row asked for two signatures. */
|
|
2111
|
+
awaitingRoles: components["schemas"]["Role"][];
|
|
2112
|
+
/**
|
|
2113
|
+
* Format: uuid
|
|
2114
|
+
* @description The `KybCaseDecisionProposal` row, and the id the confirmation names.
|
|
2115
|
+
*/
|
|
2116
|
+
id: string;
|
|
2117
|
+
};
|
|
2118
|
+
/** @description The proposal a `202` recorded, and who it waits for. */
|
|
2119
|
+
DecisionProposalSummary: {
|
|
2120
|
+
/** @description The roles the matrix named, any one of which may confirm — a different person from the
|
|
2121
|
+
* proposer, and never a bot or an API key. */
|
|
2122
|
+
awaitingRoles: components["schemas"]["Role"][];
|
|
2123
|
+
/**
|
|
2124
|
+
* Format: uuid
|
|
2125
|
+
* @description Send it back as `confirmingProposalId` to close the case.
|
|
2126
|
+
*/
|
|
2127
|
+
id: string;
|
|
2128
|
+
};
|
|
1568
2129
|
/** @description A director/legal-representative suggestion prefilled from the provider's data.
|
|
1569
2130
|
* The applicant confirms/edits before it becomes a declared director. */
|
|
1570
2131
|
DirectorCandidate: {
|
|
@@ -1582,19 +2143,23 @@ export interface components {
|
|
|
1582
2143
|
role?: string | null;
|
|
1583
2144
|
};
|
|
1584
2145
|
DirectorDefinition: {
|
|
1585
|
-
/** @description
|
|
2146
|
+
/** @description Nationality of the director. Absent when the company register reported none. */
|
|
1586
2147
|
country?: string | null;
|
|
1587
|
-
/** @description
|
|
1588
|
-
*
|
|
2148
|
+
/** @description Date of birth of the director. Often absent for a director taken from a company register,
|
|
2149
|
+
* since registers list officers without identity details; such a director is screened on name
|
|
2150
|
+
* alone. */
|
|
1589
2151
|
dateOfBirth?: string | null;
|
|
1590
2152
|
/** @description Email of the director. `None` for a name-only director added without an email. */
|
|
1591
2153
|
emailAddress?: string | null;
|
|
1592
2154
|
firstName: string;
|
|
1593
|
-
/** @description
|
|
2155
|
+
/** @description Gender of the director. Absent for any director taken from a company register (registers do
|
|
2156
|
+
* not publish gender); collected only when the director is entered by hand. */
|
|
1594
2157
|
gender?: string | null;
|
|
1595
2158
|
/**
|
|
1596
2159
|
* Format: uuid
|
|
1597
|
-
* @description Stable identifier for this director within the KYB result
|
|
2160
|
+
* @description Stable identifier for this director within the KYB result, used to address the director
|
|
2161
|
+
* (for example to remove or screen them). Absent only on directors recorded before identifiers
|
|
2162
|
+
* were introduced.
|
|
1598
2163
|
*/
|
|
1599
2164
|
id?: string | null;
|
|
1600
2165
|
lastName: string;
|
|
@@ -1605,50 +2170,41 @@ export interface components {
|
|
|
1605
2170
|
DiscoverKybUbosResponse: {
|
|
1606
2171
|
/** Format: uuid */
|
|
1607
2172
|
discoveryId: string;
|
|
1608
|
-
|
|
1609
|
-
status: string;
|
|
2173
|
+
status: components["schemas"]["KybDiscoveryRequestStatus"];
|
|
1610
2174
|
};
|
|
1611
2175
|
/**
|
|
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.
|
|
2176
|
+
* @description A document-authenticity check that can be enabled on a document-verification step. Each check
|
|
2177
|
+
* is enabled independently; see each value for what it detects and how a failure affects the
|
|
2178
|
+
* result.
|
|
1619
2179
|
* @enum {string}
|
|
1620
2180
|
*/
|
|
1621
2181
|
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. */
|
|
2182
|
+
/** @description How the document data was extracted when an AI model read the document: which prompt version
|
|
2183
|
+
* and model were used, the model's confidence and any warnings, which document sides had
|
|
2184
|
+
* readable text, and how long the extraction took. The document images and raw text are not
|
|
2185
|
+
* included. */
|
|
1629
2186
|
DocscanExtractionProvenance: {
|
|
1630
2187
|
/**
|
|
1631
2188
|
* Format: double
|
|
1632
|
-
* @description The model's
|
|
2189
|
+
* @description The model's confidence in the extraction, after the platform's own checks capped it.
|
|
1633
2190
|
*/
|
|
1634
2191
|
confidence: number;
|
|
1635
|
-
/** @description
|
|
2192
|
+
/** @description Identifier of the AI model the extraction ran against. */
|
|
1636
2193
|
model: string;
|
|
1637
|
-
/** @description Which sides
|
|
1638
|
-
* corroboration, not a contradiction
|
|
2194
|
+
/** @description Which sides of the document text was read from. A side without text is missing
|
|
2195
|
+
* corroboration, not a contradiction. */
|
|
1639
2196
|
ocrSides: components["schemas"]["OcrSides"];
|
|
1640
2197
|
/**
|
|
1641
2198
|
* Format: int64
|
|
1642
2199
|
* @description Wall-clock duration of the extraction, including OCR and any schema retry.
|
|
1643
2200
|
*/
|
|
1644
2201
|
processingTimeMs: number;
|
|
1645
|
-
/** @description Whether the
|
|
1646
|
-
*
|
|
1647
|
-
* silent — without this, two organizations disagreeing looks the same as model variance. */
|
|
2202
|
+
/** @description Whether the extraction instructions came from the organization's own override or the
|
|
2203
|
+
* platform default. */
|
|
1648
2204
|
promptScope: components["schemas"]["ExtractionPromptScope"];
|
|
1649
|
-
/** @description Version of the
|
|
2205
|
+
/** @description Version of the extraction instructions that produced this result. */
|
|
1650
2206
|
promptVersion: string;
|
|
1651
|
-
/** @description
|
|
2207
|
+
/** @description AI model usage for the successful attempt. */
|
|
1652
2208
|
usage: components["schemas"]["ExtractionUsage"];
|
|
1653
2209
|
/** @description Why the confidence landed where it did. Without this, a score below the configured
|
|
1654
2210
|
* threshold is unexplainable from the UI: the reason otherwise exists only inside
|
|
@@ -1656,11 +2212,8 @@ export interface components {
|
|
|
1656
2212
|
warnings?: string[];
|
|
1657
2213
|
};
|
|
1658
2214
|
/**
|
|
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.
|
|
2215
|
+
* @description AI vision model used to extract data from scanned documents on a document-verification step.
|
|
2216
|
+
* Selectable by Zyphe administrators.
|
|
1664
2217
|
* @enum {string}
|
|
1665
2218
|
*/
|
|
1666
2219
|
DocscanLlmModel: "KIMI_K2_5" | "QWEN3_VL" | "UNKNOWN";
|
|
@@ -1681,16 +2234,9 @@ export interface components {
|
|
|
1681
2234
|
/** Format: uuid */
|
|
1682
2235
|
vaultId: string;
|
|
1683
2236
|
};
|
|
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. */
|
|
2237
|
+
/** @description One official register document that can be purchased for the company, as listed in the
|
|
2238
|
+
* document catalog. `quotedCredits` is its price in Zyphe credits. `owned`, `purchasedAt` and
|
|
2239
|
+
* `reissuable` describe your organization's own copy of the document. */
|
|
1694
2240
|
DocumentCatalogEntry: {
|
|
1695
2241
|
/** @description The provider's category key (`financialStatements`, `certifiedTradeRegisterExtract`, …). */
|
|
1696
2242
|
category: string;
|
|
@@ -1733,7 +2279,7 @@ export interface components {
|
|
|
1733
2279
|
* `name`, which is in the register's own language. */
|
|
1734
2280
|
subType?: string | null;
|
|
1735
2281
|
};
|
|
1736
|
-
/** @description Response for `GET .../kyb/{
|
|
2282
|
+
/** @description Response for `GET .../kyb-cases/{case_id}/document-catalog`. */
|
|
1737
2283
|
DocumentCatalogResponse: {
|
|
1738
2284
|
entries: components["schemas"]["DocumentCatalogEntry"][];
|
|
1739
2285
|
/** Format: date-time */
|
|
@@ -1776,7 +2322,7 @@ export interface components {
|
|
|
1776
2322
|
issuingState: string;
|
|
1777
2323
|
mrzStrings?: string;
|
|
1778
2324
|
};
|
|
1779
|
-
/** @description Response for `GET .../kyb/{
|
|
2325
|
+
/** @description Response for `GET .../kyb-cases/{case_id}/documents/{purchase_id}/download`.
|
|
1780
2326
|
*
|
|
1781
2327
|
* The signed URL is *returned*, not redirected to. The dashboard authenticates with a bearer
|
|
1782
2328
|
* token that a plain browser navigation cannot carry, so a redirect would have to be followed by
|
|
@@ -1800,8 +2346,9 @@ export interface components {
|
|
|
1800
2346
|
path: string;
|
|
1801
2347
|
type: string;
|
|
1802
2348
|
};
|
|
1803
|
-
/** @description
|
|
1804
|
-
* reports per
|
|
2349
|
+
/** @description The outcome for one document in a purchase request. Each document is accepted or rejected on
|
|
2350
|
+
* its own, so a request mixing good and bad documents reports per document instead of failing
|
|
2351
|
+
* as a whole. */
|
|
1805
2352
|
DocumentPurchaseDecision: {
|
|
1806
2353
|
accepted: boolean;
|
|
1807
2354
|
documentId: string;
|
|
@@ -1816,8 +2363,7 @@ export interface components {
|
|
|
1816
2363
|
*/
|
|
1817
2364
|
quotedCredits?: number | null;
|
|
1818
2365
|
reason?: null | components["schemas"]["DocumentRejectReason"];
|
|
1819
|
-
|
|
1820
|
-
status?: string | null;
|
|
2366
|
+
status?: null | components["schemas"]["KybDiscoveryRequestStatus"];
|
|
1821
2367
|
};
|
|
1822
2368
|
/**
|
|
1823
2369
|
* @description Why a document cannot be bought — a closed enum, so the catalogue and the dispatch report can
|
|
@@ -1832,14 +2378,14 @@ export interface components {
|
|
|
1832
2378
|
*
|
|
1833
2379
|
* # Deserialization
|
|
1834
2380
|
*
|
|
1835
|
-
* Supports both new abstract format and legacy
|
|
2381
|
+
* Supports both new abstract format and legacy format:
|
|
1836
2382
|
*
|
|
1837
2383
|
* **New format:**
|
|
1838
2384
|
* ```json
|
|
1839
2385
|
* { "overall": "passed", "documentType": "passed", "expiry": "passed", "mrz": "passed" }
|
|
1840
2386
|
* ```
|
|
1841
2387
|
*
|
|
1842
|
-
* **Legacy
|
|
2388
|
+
* **Legacy format:**
|
|
1843
2389
|
* ```json
|
|
1844
2390
|
* {
|
|
1845
2391
|
* "overallStatus": 0,
|
|
@@ -1899,24 +2445,19 @@ export interface components {
|
|
|
1899
2445
|
s3Key?: string | null;
|
|
1900
2446
|
};
|
|
1901
2447
|
/**
|
|
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.
|
|
2448
|
+
* @description How intensively a business must be investigated before it can be onboarded: the risk-based
|
|
2449
|
+
* due-diligence tier AML/CFT regulations expect. Independent of the screening strategy, which
|
|
2450
|
+
* decides *who* is screened; this decides *how deeply* the business is investigated. The level
|
|
2451
|
+
* is currently recorded only and does not yet change which checks the platform runs.
|
|
1914
2452
|
* @enum {string}
|
|
1915
2453
|
*/
|
|
1916
2454
|
DueDiligenceLevel: "simplified" | "standard" | "enhanced";
|
|
1917
|
-
/** @description
|
|
1918
|
-
* the
|
|
1919
|
-
*
|
|
2455
|
+
/** @description What a document-capture session can do. `capture` is the capture mode; `usesProxy` is `true`
|
|
2456
|
+
* when the capture surface talks to the identity-verification provider through Zyphe's proxy;
|
|
2457
|
+
* `providesLiveness` and `providesAuthenticity` are `true` when the session itself performs the
|
|
2458
|
+
* liveness check and the document-authenticity check. When `false`, the session does not: a check
|
|
2459
|
+
* runs only if the flow has one of its own, a liveness step or the step's `docauthChecks`, which
|
|
2460
|
+
* are empty by default. */
|
|
1920
2461
|
DvCapture: {
|
|
1921
2462
|
capture: components["schemas"]["DvCaptureMode"];
|
|
1922
2463
|
providesAuthenticity: boolean;
|
|
@@ -1932,32 +2473,16 @@ export interface components {
|
|
|
1932
2473
|
/** @default DISABLED */
|
|
1933
2474
|
amlAgenticMode: components["schemas"]["KybAgenticMode"];
|
|
1934
2475
|
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. */
|
|
2476
|
+
/** @description Additional document-authenticity checks to run on this step's scans. Empty by default
|
|
2477
|
+
* (no additional checks). `SCREEN_REPLAY` fails the scan on a replay verdict; the portrait
|
|
2478
|
+
* checks only lower the document score. Configured by Zyphe administrators; ignored when the
|
|
2479
|
+
* identity-verification provider in use supplies its own authenticity checks or none. */
|
|
1949
2480
|
docauthChecks?: components["schemas"]["DocauthCheck"][];
|
|
1950
2481
|
/** Format: uuid */
|
|
1951
2482
|
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. */
|
|
2483
|
+
/** @description Provider configuration ID the frontend must use when creating the document-capture session
|
|
2484
|
+
* with the identity-verification provider. Set by the server when the step is served; absent
|
|
2485
|
+
* when the provider in use does not need one. Do not set it yourself. */
|
|
1961
2486
|
incodeConfigurationId?: string | null;
|
|
1962
2487
|
/**
|
|
1963
2488
|
* Format: int64
|
|
@@ -1969,8 +2494,8 @@ export interface components {
|
|
|
1969
2494
|
labels?: {
|
|
1970
2495
|
[key: string]: string;
|
|
1971
2496
|
};
|
|
1972
|
-
/** @description
|
|
1973
|
-
*
|
|
2497
|
+
/** @description AI vision model used to extract data from scanned documents. Uses the default model when
|
|
2498
|
+
* omitted. */
|
|
1974
2499
|
llmModel?: components["schemas"]["DocscanLlmModel"];
|
|
1975
2500
|
/**
|
|
1976
2501
|
* Format: int32
|
|
@@ -1979,24 +2504,19 @@ export interface components {
|
|
|
1979
2504
|
maxAttempts?: number | null;
|
|
1980
2505
|
/** Format: int32 */
|
|
1981
2506
|
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. */
|
|
2507
|
+
/** @description When true, the scanned driver's license is validated against government records and, after
|
|
2508
|
+
* the document scan, a proof-of-address result is produced from the validated address.
|
|
2509
|
+
* Defaults to `false`. Only supported by some identity-verification providers; ignored
|
|
2510
|
+
* otherwise. */
|
|
1990
2511
|
poaFromGovcheck?: boolean;
|
|
1991
2512
|
processImagesOverrides?: null | components["schemas"]["ProcessImagesOverrides"];
|
|
1992
2513
|
requiredDocumentFields?: components["schemas"]["RequiredDocumentField"][];
|
|
1993
2514
|
/**
|
|
1994
2515
|
* 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.
|
|
2516
|
+
* @description How long (in seconds) *before* a result's expiry to begin re-verification: the flow is
|
|
2517
|
+
* reopened and a reminder email is sent, so the holder can renew while their current result is
|
|
2518
|
+
* still valid. Defaults to one week (604800) when omitted. Ignored when
|
|
2519
|
+
* `kycValiditySeconds` is not set; capped at the validity period.
|
|
2000
2520
|
*/
|
|
2001
2521
|
reverificationLeadSeconds?: number | null;
|
|
2002
2522
|
thresholds?: {
|
|
@@ -2056,6 +2576,10 @@ export interface components {
|
|
|
2056
2576
|
verificationRequestId?: string | null;
|
|
2057
2577
|
};
|
|
2058
2578
|
DvStepOutput: {
|
|
2579
|
+
/** @description Whether the subject's screening found adverse media — a routing signal beside `amlPep` and
|
|
2580
|
+
* `amlSanctions`, so a flow can branch on it as it can on the other two. `None` until a
|
|
2581
|
+
* screening lands, and on outputs written before the signal existed. */
|
|
2582
|
+
amlAdverseMedia?: boolean | null;
|
|
2059
2583
|
amlPep?: boolean | null;
|
|
2060
2584
|
/** Format: int32 */
|
|
2061
2585
|
amlRiskScorePercent?: number | null;
|
|
@@ -2072,12 +2596,43 @@ export interface components {
|
|
|
2072
2596
|
} & {
|
|
2073
2597
|
[key: string]: boolean;
|
|
2074
2598
|
};
|
|
2599
|
+
/**
|
|
2600
|
+
* @description Why an episode of a case opened.
|
|
2601
|
+
*
|
|
2602
|
+
* Each reopening cause here is the reading of one transition cause: a `REOPENED` transition opens
|
|
2603
|
+
* a `RESUBMITTED` episode, a `QA_REOPENED` one a `QA_REOPENED` episode and a `PERIODIC_REVIEW` one a
|
|
2604
|
+
* `PERIODIC_REVIEW` episode — the case's own history says which way it came back.
|
|
2605
|
+
* @enum {string}
|
|
2606
|
+
*/
|
|
2607
|
+
EpisodeCause: "CREATED" | "RESUBMITTED" | "QA_REOPENED" | "PERIODIC_REVIEW";
|
|
2608
|
+
/** @description How an episode ended, where it did. */
|
|
2609
|
+
EpisodeDecision: {
|
|
2610
|
+
/** Format: uuid */
|
|
2611
|
+
id: string;
|
|
2612
|
+
outcome: components["schemas"]["KybCaseDecisionOutcome"];
|
|
2613
|
+
/**
|
|
2614
|
+
* Format: uuid
|
|
2615
|
+
* @description The progress report version the decision sealed its package into.
|
|
2616
|
+
*/
|
|
2617
|
+
packageVersionId?: string | null;
|
|
2618
|
+
/** @description Whether this decision is the one that still stands: a superseded decision keeps its episode
|
|
2619
|
+
* and says it was overtaken. */
|
|
2620
|
+
standing: boolean;
|
|
2621
|
+
};
|
|
2622
|
+
/** @description An episode named from somewhere else — a story entry, an account entry, a list row, a sealed
|
|
2623
|
+
* package. The number and the cause are what a reader needs; the rest is on the case. */
|
|
2624
|
+
EpisodeRef: {
|
|
2625
|
+
cause: components["schemas"]["EpisodeCause"];
|
|
2626
|
+
/** Format: int32 */
|
|
2627
|
+
number: number;
|
|
2628
|
+
};
|
|
2075
2629
|
/** @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";
|
|
2630
|
+
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" | "organization_under_retention" | "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
2631
|
/**
|
|
2078
|
-
* @description
|
|
2079
|
-
*
|
|
2080
|
-
*
|
|
2632
|
+
* @description What an estimated cost represents. `fixedPrice` is a real quoted price; `variableCap` is only
|
|
2633
|
+
* the maximum that may be charged, because the actual cost varies; `unknown` means pricing could
|
|
2634
|
+
* not be determined and a conservative maximum is shown. Do not present a `variableCap` or
|
|
2635
|
+
* `unknown` estimate to users as a price.
|
|
2081
2636
|
* @enum {string}
|
|
2082
2637
|
*/
|
|
2083
2638
|
EstimateBasis: "fixedPrice" | "variableCap" | "unknown";
|
|
@@ -2091,12 +2646,10 @@ export interface components {
|
|
|
2091
2646
|
*/
|
|
2092
2647
|
actionId: string;
|
|
2093
2648
|
};
|
|
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. */
|
|
2649
|
+
/** @description Whether one node of the ownership graph can be expanded, and at what estimated cost, as shown
|
|
2650
|
+
* in the expansion preview. `countryCode` and pricing are always those of this node's own
|
|
2651
|
+
* company, not the company under review: a Cayman parent of an Italian company is priced as
|
|
2652
|
+
* Cayman. */
|
|
2100
2653
|
ExpansionCandidate: {
|
|
2101
2654
|
/** @description Report-only, never a rejection: the provider's 24h dedup makes re-expanding an already
|
|
2102
2655
|
* `found` node near-free, and a reviewer may legitimately re-pull it. */
|
|
@@ -2119,10 +2672,9 @@ export interface components {
|
|
|
2119
2672
|
nodeStatus: string;
|
|
2120
2673
|
reason?: null | components["schemas"]["ExpansionRejectReason"];
|
|
2121
2674
|
};
|
|
2122
|
-
/** @description
|
|
2123
|
-
*
|
|
2124
|
-
*
|
|
2125
|
-
* the row exists and is `FAILED`. */
|
|
2675
|
+
/** @description Whether one requested node was accepted for expansion. `discoveryId` and `status` are absent
|
|
2676
|
+
* for a node rejected up front; a node that was sent but failed (`providerError` or
|
|
2677
|
+
* `budgetExceeded`) has `accepted: false` and carries both, with `status` `FAILED`. */
|
|
2126
2678
|
ExpansionDecision: {
|
|
2127
2679
|
accepted: boolean;
|
|
2128
2680
|
/**
|
|
@@ -2136,15 +2688,12 @@ export interface components {
|
|
|
2136
2688
|
estimateBasis?: null | components["schemas"]["EstimateBasis"];
|
|
2137
2689
|
/**
|
|
2138
2690
|
* Format: int32
|
|
2139
|
-
* @description
|
|
2140
|
-
* provider's own credits.
|
|
2691
|
+
* @description Estimated cost of expanding this node, in Zyphe credits, as in the expansion preview.
|
|
2141
2692
|
*/
|
|
2142
2693
|
estimatedCredits?: number | null;
|
|
2143
2694
|
nodeId: string;
|
|
2144
2695
|
reason?: null | components["schemas"]["ExpansionRejectReason"];
|
|
2145
|
-
|
|
2146
|
-
* dispatch itself failed (`providerError`/`budgetExceeded`) — that row is `FAILED`. */
|
|
2147
|
-
status?: string | null;
|
|
2696
|
+
status?: null | components["schemas"]["KybDiscoveryRequestStatus"];
|
|
2148
2697
|
};
|
|
2149
2698
|
/**
|
|
2150
2699
|
* @description How long an accepted expansion is expected to take to resolve. Not cosmetic: it changes what
|
|
@@ -2153,8 +2702,9 @@ export interface components {
|
|
|
2153
2702
|
* @enum {string}
|
|
2154
2703
|
*/
|
|
2155
2704
|
ExpansionLatency: "fast" | "slow" | "manual";
|
|
2156
|
-
/** @description
|
|
2157
|
-
*
|
|
2705
|
+
/** @description Preview of which ownership-graph nodes can be expanded and what each would cost, plus the
|
|
2706
|
+
* expansions already running. Requesting a preview is free; prices come from a price list that
|
|
2707
|
+
* is refreshed at least daily. */
|
|
2158
2708
|
ExpansionPreviewResponse: {
|
|
2159
2709
|
candidates: components["schemas"]["ExpansionCandidate"][];
|
|
2160
2710
|
/** Format: int32 */
|
|
@@ -2168,8 +2718,8 @@ export interface components {
|
|
|
2168
2718
|
*/
|
|
2169
2719
|
pricingFetchedAt?: string | null;
|
|
2170
2720
|
};
|
|
2171
|
-
/** @description One
|
|
2172
|
-
*
|
|
2721
|
+
/** @description One past expansion of a single ownership-graph node: its status, when it ran, why it stopped
|
|
2722
|
+
* (if it stopped early) and what it actually cost, in `chargedCredits`. */
|
|
2173
2723
|
ExpansionRecord: {
|
|
2174
2724
|
/** Format: int32 */
|
|
2175
2725
|
chargedCredits: number;
|
|
@@ -2180,49 +2730,35 @@ export interface components {
|
|
|
2180
2730
|
/** Format: uuid */
|
|
2181
2731
|
discoveryId: string;
|
|
2182
2732
|
rootNodeId: string;
|
|
2183
|
-
|
|
2184
|
-
status: string;
|
|
2733
|
+
status: components["schemas"]["KybDiscoveryRequestStatus"];
|
|
2185
2734
|
stoppedReason?: string | null;
|
|
2186
2735
|
};
|
|
2187
2736
|
/**
|
|
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.
|
|
2737
|
+
* @description Why a node cannot be expanded. `providerError`, `budgetExceeded` and `insufficientCredits`
|
|
2738
|
+
* only occur when the expansion is actually requested, never in the expansion preview. A
|
|
2739
|
+
* `budgetExceeded` rejection costs nothing and, when available, reports the actual price in the
|
|
2740
|
+
* decision's `estimatedCredits`, so you can retry with a higher `maxCreditsPerNode`.
|
|
2198
2741
|
* @enum {string}
|
|
2199
2742
|
*/
|
|
2200
2743
|
ExpansionRejectReason: "notACompanyNode" | "countryUnsupported" | "graphDatapointUnavailable" | "expansionInFlight" | "baseRunInFlight" | "autoTraversalInFlight" | "concurrencyCap" | "unknownNodeId" | "providerError" | "budgetExceeded" | "insufficientCredits";
|
|
2201
|
-
/** @description
|
|
2202
|
-
*
|
|
2203
|
-
*
|
|
2204
|
-
* see [`ExtendKybDiscoveryResponse`]. */
|
|
2744
|
+
/** @description Request to continue a completed ownership discovery that stopped early, digging deeper from
|
|
2745
|
+
* the selected company nodes of the ownership graph. Each node is priced, billed and accepted or
|
|
2746
|
+
* rejected on its own. */
|
|
2205
2747
|
ExtendKybDiscoveryPayload: {
|
|
2206
2748
|
/**
|
|
2207
2749
|
* 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`.
|
|
2750
|
+
* @description The most, in Zyphe credits, that expanding each node may cost your organization. It can
|
|
2751
|
+
* only lower the limit: for a fixed-price country, a cap below the quoted price makes the node
|
|
2752
|
+
* come back rejected with its actual cost instead of being charged. Omit it to use the
|
|
2753
|
+
* platform's default ceiling.
|
|
2217
2754
|
*/
|
|
2218
2755
|
maxCreditsPerNode?: number | null;
|
|
2219
2756
|
/** @description `nodeId`s of company nodes in the current `ownershipStructure` to expand (max 25). */
|
|
2220
2757
|
nodeIds: string[];
|
|
2221
2758
|
};
|
|
2222
|
-
/** @description
|
|
2223
|
-
*
|
|
2224
|
-
*
|
|
2225
|
-
* *every* node is rejected is a `400`; otherwise this is a `202` dispatch report. */
|
|
2759
|
+
/** @description Result of a request to extend an ownership discovery, with one decision per requested node.
|
|
2760
|
+
* Nodes are accepted or rejected individually: the request fails with `400` only when every node
|
|
2761
|
+
* is rejected, and otherwise returns `202` with this report. */
|
|
2226
2762
|
ExtendKybDiscoveryResponse: {
|
|
2227
2763
|
/**
|
|
2228
2764
|
* Format: int32
|
|
@@ -2996,13 +3532,9 @@ export interface components {
|
|
|
2996
3532
|
/** @description Terminal-row error detail (e.g. "graph failed validation: …") — present when the run
|
|
2997
3533
|
* completed but its result could not be applied. */
|
|
2998
3534
|
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`. */
|
|
3535
|
+
/** @description History of manual per-node expansions of the ownership graph; empty when the graph has
|
|
3536
|
+
* never been extended. Automatic discovery steps are listed in `waves` instead. Returned to
|
|
3537
|
+
* your organization only, never to the applicant. */
|
|
3006
3538
|
expansions?: components["schemas"]["ExpansionRecord"][];
|
|
3007
3539
|
ownershipStructure?: null | components["schemas"]["OwnershipStructure"];
|
|
3008
3540
|
/** @description `NONE` (no run) | `PENDING` | `COMPLETED` | `FAILED` — the **base** GRAPH run's status.
|
|
@@ -3015,9 +3547,8 @@ export interface components {
|
|
|
3015
3547
|
traversal?: null | components["schemas"]["TraversalSummary"];
|
|
3016
3548
|
/** @description UBO suggestions derived from the ownership graph's `isUbo` individual nodes. */
|
|
3017
3549
|
uboSuggestions: components["schemas"]["UboSuggestion"][];
|
|
3018
|
-
/** @description
|
|
3019
|
-
*
|
|
3020
|
-
* [`Self::for_applicant`]. */
|
|
3550
|
+
/** @description Steps of the automatic ownership discovery beyond its first run, oldest first; empty when
|
|
3551
|
+
* none were needed. Returned to your organization only, never to the applicant. */
|
|
3021
3552
|
waves?: components["schemas"]["TraversalWave"][];
|
|
3022
3553
|
};
|
|
3023
3554
|
/** @description Response to the `liveness-challenge` endpoint.
|
|
@@ -3107,23 +3638,22 @@ export interface components {
|
|
|
3107
3638
|
IdentitySettings: {
|
|
3108
3639
|
lastEnvironmentIsSandbox?: boolean;
|
|
3109
3640
|
locale: components["schemas"]["Locale"];
|
|
3110
|
-
/** @description
|
|
3111
|
-
*
|
|
3112
|
-
* a real verified identity. */
|
|
3641
|
+
/** @description `true` when this identity is demo/synthetic data (for example generated sample data in a
|
|
3642
|
+
* sandbox) rather than a real end user. Never set for a real verified identity. */
|
|
3113
3643
|
synthetic?: boolean;
|
|
3114
3644
|
};
|
|
3115
3645
|
/** @description Result of an image quality check.
|
|
3116
3646
|
*
|
|
3117
3647
|
* # Deserialization
|
|
3118
3648
|
*
|
|
3119
|
-
* Supports both new abstract format and legacy
|
|
3649
|
+
* Supports both new abstract format and legacy format:
|
|
3120
3650
|
*
|
|
3121
3651
|
* **New format:**
|
|
3122
3652
|
* ```json
|
|
3123
3653
|
* { "checkType": "focus", "result": "passed", "probability": 97 }
|
|
3124
3654
|
* ```
|
|
3125
3655
|
*
|
|
3126
|
-
* **Legacy
|
|
3656
|
+
* **Legacy format (single item from 'list'):**
|
|
3127
3657
|
* ```json
|
|
3128
3658
|
* { "type": 1, "result": 0, "probability": 97, "featureType": 0, "mean": 0.0, "stdDev": 0.0 }
|
|
3129
3659
|
* ``` */
|
|
@@ -3145,7 +3675,7 @@ export interface components {
|
|
|
3145
3675
|
*
|
|
3146
3676
|
* # Deserialization
|
|
3147
3677
|
*
|
|
3148
|
-
* Supports both string format and legacy
|
|
3678
|
+
* Supports both string format and legacy integer type codes:
|
|
3149
3679
|
* - 0 = Glare (ImageGlares)
|
|
3150
3680
|
* - 1 = Focus (ImageFocus)
|
|
3151
3681
|
* - 2 = Resolution (ImageResolution)
|
|
@@ -3298,14 +3828,81 @@ export interface components {
|
|
|
3298
3828
|
*/
|
|
3299
3829
|
InputImagePageIndex: "front" | "back";
|
|
3300
3830
|
/**
|
|
3301
|
-
* @description
|
|
3302
|
-
* `
|
|
3303
|
-
*
|
|
3304
|
-
*
|
|
3305
|
-
* (e.g. `SUGGEST`). Kept as the `KybAgenticMode` OpenAPI component for API compatibility.
|
|
3831
|
+
* @description How much the automated compliance review agent may do on its own (used for KYB and AML reviews).
|
|
3832
|
+
* `DISABLED` (default): the agent does not run. `SUGGEST`: the agent reviews and records its
|
|
3833
|
+
* recommended approve/clear action as a suggestion for a human to act on. `AUTO_PILOT`: the agent
|
|
3834
|
+
* may take that action itself, subject to the platform's safety checks.
|
|
3306
3835
|
* @enum {string}
|
|
3307
3836
|
*/
|
|
3308
3837
|
KybAgenticMode: "DISABLED" | "SUGGEST" | "AUTO_PILOT";
|
|
3838
|
+
/**
|
|
3839
|
+
* @description The outcome of a case decision: `APPROVED` or `REJECTED`. A decision is never edited once
|
|
3840
|
+
* made; if the case is reopened, a later decision supersedes it.
|
|
3841
|
+
* @enum {string}
|
|
3842
|
+
*/
|
|
3843
|
+
KybCaseDecisionOutcome: "APPROVED" | "REJECTED";
|
|
3844
|
+
/**
|
|
3845
|
+
* @description Why a case was decided the way it was, as a fixed set of codes. The code classifies the
|
|
3846
|
+
* decision; the decision's free-text reason explains it. Defaults to `OTHER` when no code is
|
|
3847
|
+
* given.
|
|
3848
|
+
* @enum {string}
|
|
3849
|
+
*/
|
|
3850
|
+
KybCaseDecisionReasonCode: "CDD_INCOMPLETE" | "SANCTIONS_CONFIRMED" | "PEP_CONFIRMED" | "ADVERSE_MEDIA" | "OUTSIDE_RISK_APPETITE" | "SUSPECTED_FRAUD" | "APPLICANT_UNRESPONSIVE" | "OTHER";
|
|
3851
|
+
/** @description What kind of reason a platform admin's moderation rests on, as a multipart text field.
|
|
3852
|
+
*
|
|
3853
|
+
* A newtype because the payload is multipart rather than JSON: the code's own `FromStr` reads
|
|
3854
|
+
* exactly the `SCREAMING_SNAKE_CASE` names the wire carries everywhere else, so a value spelled
|
|
3855
|
+
* one way in JSON cannot mean something else here. */
|
|
3856
|
+
KybCaseDecisionReasonCodeField: components["schemas"]["KybCaseDecisionReasonCode"];
|
|
3857
|
+
/**
|
|
3858
|
+
* @description The case engine's due-diligence level, as the manifest and the case row carry it. Mirrors the
|
|
3859
|
+
* `kyb_case_due_diligence_level_check` DB CHECK vocabulary; the profile document uses lowercase
|
|
3860
|
+
* levels, which the builder maps to these values.
|
|
3861
|
+
* @enum {string}
|
|
3862
|
+
*/
|
|
3863
|
+
KybCaseDueDiligenceLevel: "SIMPLIFIED" | "STANDARD" | "ENHANCED";
|
|
3864
|
+
/** @description A KYB case's officers: the ultimate beneficial owners and the directors the case screens and
|
|
3865
|
+
* invites into KYC. What the case's officer routes answer — the roster as it stands after the act. */
|
|
3866
|
+
KybCaseOfficersResponse: {
|
|
3867
|
+
/** Format: uuid */
|
|
3868
|
+
caseId: string;
|
|
3869
|
+
directors: components["schemas"]["DirectorDefinition"][];
|
|
3870
|
+
ubos: components["schemas"]["UboDefinition"][];
|
|
3871
|
+
};
|
|
3872
|
+
/**
|
|
3873
|
+
* @description Which planner a manifest pins (OrchestrationSpec.kind). Mirrors the `kyb_case_orchestration_decision_kind_check` DB CHECK vocabulary.
|
|
3874
|
+
* @enum {string}
|
|
3875
|
+
*/
|
|
3876
|
+
KybCaseOrchestratorKind: "LINEAR" | "JDM" | "LLM";
|
|
3877
|
+
/**
|
|
3878
|
+
* @description Who opened a KYB case.
|
|
3879
|
+
* @enum {string}
|
|
3880
|
+
*/
|
|
3881
|
+
KybCaseOrigin: "END_USER" | "OPERATOR" | "MIGRATION";
|
|
3882
|
+
/**
|
|
3883
|
+
* @description How a planner runs.
|
|
3884
|
+
*
|
|
3885
|
+
* For the AI planner, which never orders runs, the mode says what becomes of what it proposes:
|
|
3886
|
+
* nothing (`DISABLED`, it is not asked), a reviewer's decision (`SUGGEST`), or acceptance by the
|
|
3887
|
+
* engine itself (`AUTO_PILOT`). Autopilot applies only changes that make the case stricter — the
|
|
3888
|
+
* same "stricter only" check a reviewer's acceptance goes through — and never orders, waives,
|
|
3889
|
+
* lowers or decides anything. The linear and rules planners do not read the mode.
|
|
3890
|
+
* @enum {string}
|
|
3891
|
+
*/
|
|
3892
|
+
KybCasePlannerMode: "DISABLED" | "SUGGEST" | "AUTO_PILOT";
|
|
3893
|
+
/**
|
|
3894
|
+
* Format: binary
|
|
3895
|
+
* @description The case's KYB report: the PDF file itself, sent as the response body. Described as binary so
|
|
3896
|
+
* generated clients read it as a file rather than as JSON.
|
|
3897
|
+
*/
|
|
3898
|
+
KybCaseReportPdf: Blob;
|
|
3899
|
+
/**
|
|
3900
|
+
* @description The lifecycle status of a KYB case. `APPROVED`, `REJECTED` and `CANCELLED` close the case; a
|
|
3901
|
+
* closed case can later be reopened (for example when the applicant resubmits or a periodic
|
|
3902
|
+
* review is due), which moves it back to `OPEN` or `PROCESSING`.
|
|
3903
|
+
* @enum {string}
|
|
3904
|
+
*/
|
|
3905
|
+
KybCaseStatus: "OPEN" | "PROCESSING" | "WAITING_INPUT" | "ACTION_REQUIRED" | "READY_FOR_REVIEW" | "APPROVED" | "REJECTED" | "CANCELLED";
|
|
3309
3906
|
KybCommunication: {
|
|
3310
3907
|
body: string;
|
|
3311
3908
|
/** Format: uuid */
|
|
@@ -3328,6 +3925,26 @@ export interface components {
|
|
|
3328
3925
|
* input and folded into `customCountryDocuments["**"]` (see
|
|
3329
3926
|
* `KybDocumentCatalog::fold_legacy_documents`); they are never serialized. */
|
|
3330
3927
|
KybConfig: {
|
|
3928
|
+
/** @description What the KYB reviewer may look up by itself on this flow's cases, and what that may cost.
|
|
3929
|
+
*
|
|
3930
|
+
* **Off unless you turn it on.** With `enabled: true` the reviewer, after reading the case,
|
|
3931
|
+
* tries to close the gaps it could not close from the case alone: the company's **registry
|
|
3932
|
+
* record** and its **ownership graph**, **adverse media** on the company and its officers,
|
|
3933
|
+
* and a **hosted web search**. Nothing is decided from it — what it finds is recorded on the
|
|
3934
|
+
* run and shown beside the recommendation.
|
|
3935
|
+
*
|
|
3936
|
+
* **What it costs.** Answers your organization already holds and that are still valid are
|
|
3937
|
+
* adopted for free. Anything bought is bought through the same services the rest of the
|
|
3938
|
+
* platform buys through and is **metered at your usual prices**, inside `spendLimit`
|
|
3939
|
+
* (in credits, per run) — a purchase that would exceed it is not made. The hosted search is
|
|
3940
|
+
* absorbed by the platform and bounded by `maxSearches`. Both sit under a platform ceiling;
|
|
3941
|
+
* terms above it are refused when the flow is saved.
|
|
3942
|
+
*
|
|
3943
|
+
* **What leaves the platform.** The hosted search receives the company's four public
|
|
3944
|
+
* identifiers and nothing else: its legal name, its registration number, its country and its
|
|
3945
|
+
* website. No person's name, no document, no case text. The other tools are the ones your
|
|
3946
|
+
* cases already use. */
|
|
3947
|
+
agentResearch?: components["schemas"]["AgentResearchTerms"];
|
|
3331
3948
|
/** @default DISABLED */
|
|
3332
3949
|
agenticMode: components["schemas"]["KybAgenticMode"];
|
|
3333
3950
|
/**
|
|
@@ -3358,11 +3975,11 @@ export interface components {
|
|
|
3358
3975
|
* @example false
|
|
3359
3976
|
*/
|
|
3360
3977
|
collectDirectors: boolean;
|
|
3361
|
-
/** @description
|
|
3362
|
-
*
|
|
3363
|
-
*
|
|
3364
|
-
*
|
|
3365
|
-
*
|
|
3978
|
+
/** @description Your organization's KYB document configuration: overrides of platform catalog documents
|
|
3979
|
+
* and documents of your own. Keyed by ISO 3166-1 alpha-2 country code (other ISO formats are
|
|
3980
|
+
* accepted and normalized), or by `"**"` for every country without a list of its own. A
|
|
3981
|
+
* country's list replaces the `"**"` list for that country; neither replaces the platform
|
|
3982
|
+
* catalog. */
|
|
3366
3983
|
customCountryDocuments?: {
|
|
3367
3984
|
[key: string]: components["schemas"]["KybCountryDocument"][];
|
|
3368
3985
|
};
|
|
@@ -3375,47 +3992,24 @@ export interface components {
|
|
|
3375
3992
|
*/
|
|
3376
3993
|
discoveryBudgetCredits?: number | null;
|
|
3377
3994
|
/**
|
|
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.
|
|
3995
|
+
* @description Whether submitting the business information automatically starts ownership discovery:
|
|
3996
|
+
* looking up the company's ownership structure in company registers. Discovery spends your
|
|
3997
|
+
* organization's credits. Defaults to `false`.
|
|
3392
3998
|
* @default false
|
|
3393
3999
|
* @example true
|
|
3394
4000
|
*/
|
|
3395
4001
|
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. */
|
|
4002
|
+
/** @description Read-only. The documents the applicant must upload up front, per country, as served to
|
|
4003
|
+
* clients. One entry per country with a configured list, plus a `"**"` entry that is always
|
|
4004
|
+
* present: look up `documentsPerCountry[country] ?? documentsPerCountry["**"]`. On-demand and
|
|
4005
|
+
* disabled documents are left out, and `validationSchema` is empty. */
|
|
3408
4006
|
documentsPerCountry?: {
|
|
3409
4007
|
[key: string]: components["schemas"]["KybCountryDocument"][];
|
|
3410
4008
|
} | null;
|
|
3411
4009
|
/**
|
|
3412
4010
|
* 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.
|
|
4011
|
+
* @description Deprecated: set `kycFlowId` on the UBOs and directors steps instead, which lets each use its
|
|
4012
|
+
* own KYC flow. May be omitted; will be removed in a future version.
|
|
3419
4013
|
*/
|
|
3420
4014
|
kycFlowId?: string;
|
|
3421
4015
|
/** @example { "default": "Next step" } */
|
|
@@ -3440,6 +4034,21 @@ export interface components {
|
|
|
3440
4034
|
* @example 3
|
|
3441
4035
|
*/
|
|
3442
4036
|
maxUbos: number;
|
|
4037
|
+
/** @default LINEAR */
|
|
4038
|
+
orchestrator: components["schemas"]["KybCaseOrchestratorKind"];
|
|
4039
|
+
plannerMode?: null | components["schemas"]["KybCasePlannerMode"];
|
|
4040
|
+
/**
|
|
4041
|
+
* @description Ask a US business for its EIN and match it, with the company name, against IRS records
|
|
4042
|
+
* when the business information is submitted (a TIN check).
|
|
4043
|
+
*
|
|
4044
|
+
* Only US businesses are asked: an EIN is a US identifier, and the check is a US one. A
|
|
4045
|
+
* submission whose EIN and name do not match is refused, so the applicant can correct it.
|
|
4046
|
+
* Each check that returns a verdict is billed to the organization as a TIN check
|
|
4047
|
+
* (`creditCosts.tinCheck`), and needs the `TIN_CHECK` product. Defaults to `false`.
|
|
4048
|
+
* @default false
|
|
4049
|
+
* @example true
|
|
4050
|
+
*/
|
|
4051
|
+
tinCheckEnabled: boolean;
|
|
3443
4052
|
};
|
|
3444
4053
|
/** @description One KYB document, either as a platform catalog row, as an organisation override in
|
|
3445
4054
|
* `customCountryDocuments`, or as an entry of a resolved (effective) list.
|
|
@@ -3480,6 +4089,16 @@ export interface components {
|
|
|
3480
4089
|
* Platform-owned, and emptied (`{}`) in every map served to a client. */
|
|
3481
4090
|
validationSchema?: unknown;
|
|
3482
4091
|
};
|
|
4092
|
+
/** @description What the legacy KYB decision routes answer — the console's approve and the two SDK routes.
|
|
4093
|
+
*
|
|
4094
|
+
* The `KybResult` is flattened, so a decision that closed the case serializes **byte for byte**
|
|
4095
|
+
* what these routes have always returned (legacy paths and payloads unchanged) and
|
|
4096
|
+
* `decisionProposal` is absent. A decision the matrix turned into a proposal answers `202` with
|
|
4097
|
+
* the UNCHANGED result plus the block: the caller sees that its act was recorded, that the file
|
|
4098
|
+
* did not move, and who is being waited on. */
|
|
4099
|
+
KybDecisionResponse: components["schemas"]["KybResult"] & {
|
|
4100
|
+
decisionProposal?: null | components["schemas"]["DecisionProposalRecorded"];
|
|
4101
|
+
};
|
|
3483
4102
|
/** @description Configuration for the `KYB_DIRECTORS` satellite step.
|
|
3484
4103
|
*
|
|
3485
4104
|
* Carries the director declaration settings previously bundled into the monolithic
|
|
@@ -3496,7 +4115,8 @@ export interface components {
|
|
|
3496
4115
|
kybStepId: string;
|
|
3497
4116
|
/**
|
|
3498
4117
|
* Format: uuid
|
|
3499
|
-
* @description
|
|
4118
|
+
* @description The KYC flow directors are invited into to verify their identity. Only used when
|
|
4119
|
+
* `requireKyc` is `true`; may be omitted otherwise.
|
|
3500
4120
|
*/
|
|
3501
4121
|
kycFlowId?: string;
|
|
3502
4122
|
/** @example { "default": "Next step" } */
|
|
@@ -3510,10 +4130,10 @@ export interface components {
|
|
|
3510
4130
|
*/
|
|
3511
4131
|
maxDirectors: number;
|
|
3512
4132
|
/**
|
|
3513
|
-
* @description
|
|
3514
|
-
*
|
|
3515
|
-
*
|
|
3516
|
-
*
|
|
4133
|
+
* @description Whether each declared director must complete a KYC flow (`true`, the default) or is only
|
|
4134
|
+
* screened by name. When `true`, an email address is required for each director and they are
|
|
4135
|
+
* invited into `kycFlowId`. Independent of the UBOs setting: a flow may verify its UBOs while
|
|
4136
|
+
* screening its directors by name only, or the reverse.
|
|
3517
4137
|
* @default true
|
|
3518
4138
|
* @example false
|
|
3519
4139
|
*/
|
|
@@ -3525,6 +4145,11 @@ export interface components {
|
|
|
3525
4145
|
/** Format: int32 */
|
|
3526
4146
|
directorCount: number;
|
|
3527
4147
|
};
|
|
4148
|
+
/**
|
|
4149
|
+
* @description Where a KYB discovery request (a company-registry lookup) stands: `PENDING`, `COMPLETED` or `FAILED`.
|
|
4150
|
+
* @enum {string}
|
|
4151
|
+
*/
|
|
4152
|
+
KybDiscoveryRequestStatus: "PENDING" | "COMPLETED" | "FAILED";
|
|
3528
4153
|
/** @description A reviewer's correction of one document check verdict. */
|
|
3529
4154
|
KybDocumentCheckOverride: {
|
|
3530
4155
|
modelStatus?: null | components["schemas"]["KybDocumentCheckStatus"];
|
|
@@ -3612,13 +4237,19 @@ export interface components {
|
|
|
3612
4237
|
* - `Standard` — operator requests a named document (e.g. certificate of incorporation). The client uploads a file.
|
|
3613
4238
|
* - `Clarification` — operator requests the client to re-confirm or update specific business information fields.
|
|
3614
4239
|
* Supports per-field review via `field_statuses`.
|
|
3615
|
-
* - `UboDeclaration` — reopens the `KYB_UBOS` satellite for a fresh applicant declaration
|
|
3616
|
-
*
|
|
3617
|
-
*
|
|
4240
|
+
* - `UboDeclaration` — reopens the `KYB_UBOS` satellite for a fresh applicant declaration. Used to
|
|
4241
|
+
* regress a discovery-backed flow's UBOs part back to awaiting-client when the graph produced
|
|
4242
|
+
* nothing usable.
|
|
3618
4243
|
* - `DirectorDeclaration` — same as `UboDeclaration`, for the `KYB_DIRECTORS` satellite.
|
|
4244
|
+
* - `OwnershipConfirmation` — opened by the platform, never by hand: by a reopening (a quality
|
|
4245
|
+
* review's disagreement or the periodic review), or by owners the company register reports that
|
|
4246
|
+
* the declaration left out. The company is asked to confirm, through the existing request
|
|
4247
|
+
* link, that the owners and officers on file are still the ones there are. The answer lands as
|
|
4248
|
+
* the applicant's own assertions; while it is open the case waits on the applicant, and
|
|
4249
|
+
* deciding without it takes an exception like any other open request.
|
|
3619
4250
|
* @enum {string}
|
|
3620
4251
|
*/
|
|
3621
|
-
KybDocumentRequestType: "STANDARD" | "CLARIFICATION" | "UBO_DECLARATION" | "DIRECTOR_DECLARATION";
|
|
4252
|
+
KybDocumentRequestType: "STANDARD" | "CLARIFICATION" | "UBO_DECLARATION" | "DIRECTOR_DECLARATION" | "OWNERSHIP_CONFIRMATION";
|
|
3622
4253
|
KybDocumentReviewReason: string | components["schemas"]["BusinessInformationClarificationResponse"];
|
|
3623
4254
|
/**
|
|
3624
4255
|
* @description Where an effective KYB document entry comes from.
|
|
@@ -3683,6 +4314,25 @@ export interface components {
|
|
|
3683
4314
|
} & {
|
|
3684
4315
|
[key: string]: unknown;
|
|
3685
4316
|
};
|
|
4317
|
+
/**
|
|
4318
|
+
* @description Where a document bought from a company register stands: `PENDING`, `COMPLETED` or `FAILED`.
|
|
4319
|
+
* @enum {string}
|
|
4320
|
+
*/
|
|
4321
|
+
KybPurchasedDocumentStatus: "PENDING" | "COMPLETED" | "FAILED";
|
|
4322
|
+
/**
|
|
4323
|
+
* @description A company's risk level, from lowest to highest severity: `LOW`, `MEDIUM`, `HIGH`, `CRITICAL`.
|
|
4324
|
+
* @enum {string}
|
|
4325
|
+
*/
|
|
4326
|
+
KybRatingLevel: "LOW" | "MEDIUM" | "HIGH" | "CRITICAL";
|
|
4327
|
+
/**
|
|
4328
|
+
* @deprecated
|
|
4329
|
+
* @description The legacy KYB result: a KYB case in the format used before KYB cases existed.
|
|
4330
|
+
*
|
|
4331
|
+
* **Deprecated.** Still returned by the flow-result, verification-request and KYB endpoints and
|
|
4332
|
+
* by `LEGACY_V1` webhooks, unchanged. Its `id` is the id of its KYB case: to migrate, read the case
|
|
4333
|
+
* at `/sdk/organizations/{organizationId}/kyb-cases/{id}`, or use the `kybCase` field of a `V2`
|
|
4334
|
+
* webhook.
|
|
4335
|
+
*/
|
|
3686
4336
|
KybResult: {
|
|
3687
4337
|
/** Format: date-time */
|
|
3688
4338
|
assignedAt?: string | null;
|
|
@@ -3730,6 +4380,8 @@ export interface components {
|
|
|
3730
4380
|
};
|
|
3731
4381
|
/** @description KYB (Know Your Business) step output for workflow decisions. */
|
|
3732
4382
|
KybStepOutput: {
|
|
4383
|
+
/** @description Whether the company's screening found adverse media. */
|
|
4384
|
+
amlAdverseMedia?: boolean | null;
|
|
3733
4385
|
amlPep?: boolean | null;
|
|
3734
4386
|
/** Format: int32 */
|
|
3735
4387
|
amlRiskScorePercent?: number | null;
|
|
@@ -3741,6 +4393,22 @@ export interface components {
|
|
|
3741
4393
|
registrationNumber?: string | null;
|
|
3742
4394
|
status: components["schemas"]["ResultStatus"];
|
|
3743
4395
|
};
|
|
4396
|
+
/** @description A subject the analyst layer keeps a row about: an organization-wide person, or a company by its
|
|
4397
|
+
* normalized key — the same two subjects an attestation is about.
|
|
4398
|
+
*
|
|
4399
|
+
* On the wire it is tagged, `{ "kind": "PERSON", "personId": … }` or
|
|
4400
|
+
* `{ "kind": "COMPANY", "companyKey": … }`, so a client cannot send a person id and a company key
|
|
4401
|
+
* at once, which the tables' subject CHECK would refuse anyway. */
|
|
4402
|
+
KybSubjectRef: {
|
|
4403
|
+
/** @enum {string} */
|
|
4404
|
+
kind: "PERSON";
|
|
4405
|
+
/** Format: uuid */
|
|
4406
|
+
personId: string;
|
|
4407
|
+
} | {
|
|
4408
|
+
companyKey: string;
|
|
4409
|
+
/** @enum {string} */
|
|
4410
|
+
kind: "COMPANY";
|
|
4411
|
+
};
|
|
3744
4412
|
/** @description Configuration for the `KYB_UBOS` satellite step.
|
|
3745
4413
|
*
|
|
3746
4414
|
* Carries the UBO declaration + child-KYC invitation settings previously bundled
|
|
@@ -3762,8 +4430,8 @@ export interface components {
|
|
|
3762
4430
|
kybStepId: string;
|
|
3763
4431
|
/**
|
|
3764
4432
|
* Format: uuid
|
|
3765
|
-
* @description The flow UBOs are invited into
|
|
3766
|
-
*
|
|
4433
|
+
* @description The KYC flow UBOs are invited into to verify their identity. Only used when `requireKyc`
|
|
4434
|
+
* is `true`; may be omitted otherwise.
|
|
3767
4435
|
*/
|
|
3768
4436
|
kycFlowId?: string;
|
|
3769
4437
|
/** @example { "default": "Next step" } */
|
|
@@ -3867,15 +4535,6 @@ export interface components {
|
|
|
3867
4535
|
LogicalOperator: "BRANCH" | "SWITCH" | "MERGE" | "PARALLEL_SPLIT" | "PARALLEL_JOIN";
|
|
3868
4536
|
/** @enum {string} */
|
|
3869
4537
|
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
4538
|
/** @enum {string} */
|
|
3880
4539
|
ModerationResultStatus: "ACQUIRING" | "ENRICHING" | "PENDING_MODERATION" | "REVIEW_REQUIRED" | "SUCCESS" | "FAILED";
|
|
3881
4540
|
ModerationResultStatusField: components["schemas"]["ModerationResultStatus"];
|
|
@@ -3943,6 +4602,31 @@ export interface components {
|
|
|
3943
4602
|
email?: string | null;
|
|
3944
4603
|
role: components["schemas"]["Role"];
|
|
3945
4604
|
};
|
|
4605
|
+
/** @description Who owes the next act.
|
|
4606
|
+
*
|
|
4607
|
+
* `Reviewer` carries the role the matrix named and the identity the subject is assigned to where
|
|
4608
|
+
* there is one; both are optional because "a reviewer" is a complete answer when the case names
|
|
4609
|
+
* nobody in particular. The kind of principal is NOT read here: that is kept to the confirmation
|
|
4610
|
+
* rule and the quality review. */
|
|
4611
|
+
OwedBy: {
|
|
4612
|
+
/** @enum {string} */
|
|
4613
|
+
party: "APPLICANT";
|
|
4614
|
+
} | {
|
|
4615
|
+
/** Format: uuid */
|
|
4616
|
+
identityId?: string | null;
|
|
4617
|
+
/** @enum {string} */
|
|
4618
|
+
party: "REVIEWER";
|
|
4619
|
+
role?: null | components["schemas"]["Role"];
|
|
4620
|
+
} | {
|
|
4621
|
+
/** @enum {string} */
|
|
4622
|
+
party: "AGENT";
|
|
4623
|
+
} | {
|
|
4624
|
+
/** @enum {string} */
|
|
4625
|
+
party: "PROVIDER";
|
|
4626
|
+
} | {
|
|
4627
|
+
/** @enum {string} */
|
|
4628
|
+
party: "PLATFORM";
|
|
4629
|
+
};
|
|
3946
4630
|
OwnershipBirthDate: {
|
|
3947
4631
|
/** Format: int32 */
|
|
3948
4632
|
day: number;
|
|
@@ -3956,11 +4640,7 @@ export interface components {
|
|
|
3956
4640
|
id: string;
|
|
3957
4641
|
legalName: string;
|
|
3958
4642
|
};
|
|
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. */
|
|
4643
|
+
/** @description Why an ownership node was left unexplored, and what continuing discovery from it would take. */
|
|
3964
4644
|
OwnershipContinuation: {
|
|
3965
4645
|
/**
|
|
3966
4646
|
* Format: double
|
|
@@ -4038,13 +4718,9 @@ export interface components {
|
|
|
4038
4718
|
continuation?: null | components["schemas"]["OwnershipContinuation"];
|
|
4039
4719
|
flags: components["schemas"]["OwnershipFlags"];
|
|
4040
4720
|
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. */
|
|
4721
|
+
/** @description Where this node's data came from, as reported by the company-registry data provider: which
|
|
4722
|
+
* register, or `ai_analysis` of named filings (a weaker level of assurance). Absent for older
|
|
4723
|
+
* ownership structures and for nodes the provider did not attribute. */
|
|
4048
4724
|
source?: unknown;
|
|
4049
4725
|
/** Format: double */
|
|
4050
4726
|
totalOwnershipPercentage?: number | null;
|
|
@@ -4170,13 +4846,9 @@ export interface components {
|
|
|
4170
4846
|
/** Format: int32 */
|
|
4171
4847
|
low: number;
|
|
4172
4848
|
};
|
|
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. */
|
|
4849
|
+
/** @description What face analysis estimated from the portrait printed on the identity document: whether it
|
|
4850
|
+
* is a face, the apparent age range and the perceived gender. Recorded for every scan that
|
|
4851
|
+
* found a portrait, and used as the evidence behind the portrait-attribute security checks. */
|
|
4180
4852
|
PortraitEstimate: {
|
|
4181
4853
|
ageRange?: null | components["schemas"]["PortraitAgeRange"];
|
|
4182
4854
|
/**
|
|
@@ -4219,11 +4891,11 @@ export interface components {
|
|
|
4219
4891
|
* the applicant's submission against it. */
|
|
4220
4892
|
authoritative: boolean;
|
|
4221
4893
|
businessInformation: components["schemas"]["BusinessInformation"];
|
|
4222
|
-
/** @description
|
|
4223
|
-
*
|
|
4894
|
+
/** @description Directors and officers found for the company, for the applicant to pick from. Empty unless
|
|
4895
|
+
* the company's country has a national registry that lists officers. */
|
|
4224
4896
|
directorCandidates: components["schemas"]["DirectorCandidate"][];
|
|
4225
|
-
/** @description `true` when
|
|
4226
|
-
*
|
|
4897
|
+
/** @description `true` when some company data is still being retrieved from the company-registry data
|
|
4898
|
+
* provider and will be completed later; `false` when the prefill is already complete. */
|
|
4227
4899
|
pending: boolean;
|
|
4228
4900
|
};
|
|
4229
4901
|
/** @description Typed representation of process_additional_data stored in DV results.
|
|
@@ -4234,7 +4906,7 @@ export interface components {
|
|
|
4234
4906
|
*
|
|
4235
4907
|
* # Deserialization
|
|
4236
4908
|
*
|
|
4237
|
-
* Supports both new abstract format and legacy
|
|
4909
|
+
* Supports both new abstract format and legacy format. The main difference
|
|
4238
4910
|
* is in the `imageQuality` field:
|
|
4239
4911
|
*
|
|
4240
4912
|
* **New format:**
|
|
@@ -4246,7 +4918,7 @@ export interface components {
|
|
|
4246
4918
|
* }
|
|
4247
4919
|
* ```
|
|
4248
4920
|
*
|
|
4249
|
-
* **Legacy
|
|
4921
|
+
* **Legacy format:**
|
|
4250
4922
|
* ```json
|
|
4251
4923
|
* {
|
|
4252
4924
|
* "imageQuality": [
|
|
@@ -4272,9 +4944,9 @@ export interface components {
|
|
|
4272
4944
|
biometricCheckData?: unknown;
|
|
4273
4945
|
/**
|
|
4274
4946
|
* Format: date
|
|
4275
|
-
* @description Date on which
|
|
4276
|
-
*
|
|
4277
|
-
*
|
|
4947
|
+
* @description Date on which the `DocumentExpired` webhook was sent for this document-verification result.
|
|
4948
|
+
* Absent until the document has expired and the webhook has gone out; the webhook is sent
|
|
4949
|
+
* only once per result.
|
|
4278
4950
|
*/
|
|
4279
4951
|
documentExpiredWebhookSentAt?: string | null;
|
|
4280
4952
|
extraction?: null | components["schemas"]["DocscanExtractionProvenance"];
|
|
@@ -4329,16 +5001,14 @@ export interface components {
|
|
|
4329
5001
|
forceDocumentType?: number | null;
|
|
4330
5002
|
/** @description One front image and an optional back image, base64-encoded. */
|
|
4331
5003
|
images?: components["schemas"]["InputImage"][];
|
|
4332
|
-
/** @description
|
|
4333
|
-
* `
|
|
4334
|
-
* If provided along with session_token, the backend will fetch results from the provider. */
|
|
5004
|
+
/** @description Session ID of a hosted document-capture session, as returned when the session was created.
|
|
5005
|
+
* Send it together with `sessionToken` to have the results fetched from the capture session. */
|
|
4335
5006
|
interviewId?: string | null;
|
|
4336
5007
|
platform?: string | null;
|
|
4337
5008
|
provinceCode?: string | null;
|
|
4338
|
-
/** @description Session token for
|
|
4339
|
-
* `
|
|
4340
|
-
*
|
|
4341
|
-
* instead of scanning uploaded images. */
|
|
5009
|
+
/** @description Session token for a hosted document-capture session, as returned when the session was
|
|
5010
|
+
* created. Send it together with `interviewId` (and no `images`) to have the results fetched
|
|
5011
|
+
* from the capture session instead of scanning uploaded images. */
|
|
4342
5012
|
sessionToken?: string | null;
|
|
4343
5013
|
/** @description Uncropped originals accompanying `images`, base64-encoded. Optional: omit for clients
|
|
4344
5014
|
* that only submit cropped images. Stored in S3 next to the doc-scan logs under their own
|
|
@@ -4374,12 +5044,12 @@ export interface components {
|
|
|
4374
5044
|
};
|
|
4375
5045
|
/** @enum {string} */
|
|
4376
5046
|
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/{
|
|
5047
|
+
/** @description Payload for `POST .../kyb-cases/{case_id}/documents/purchase`. */
|
|
4378
5048
|
PurchaseDocumentsPayload: {
|
|
4379
5049
|
/** @description Document ids from a freshly-refreshed catalogue. Between 1 and 25. */
|
|
4380
5050
|
documentIds: string[];
|
|
4381
5051
|
};
|
|
4382
|
-
/** @description Response for `POST .../kyb/{
|
|
5052
|
+
/** @description Response for `POST .../kyb-cases/{case_id}/documents/purchase`. Partial acceptance: only a
|
|
4383
5053
|
* request where *every* document is refused is a `400`. */
|
|
4384
5054
|
PurchaseDocumentsResponse: {
|
|
4385
5055
|
purchases: components["schemas"]["DocumentPurchaseDecision"][];
|
|
@@ -4394,7 +5064,7 @@ export interface components {
|
|
|
4394
5064
|
*/
|
|
4395
5065
|
verificationRequestId: string;
|
|
4396
5066
|
};
|
|
4397
|
-
/** @description One purchased document, as reported by `GET .../kyb/{
|
|
5067
|
+
/** @description One purchased document, as reported by `GET .../kyb-cases/{case_id}/documents`. */
|
|
4398
5068
|
PurchasedDocument: {
|
|
4399
5069
|
category: string;
|
|
4400
5070
|
/** Format: int32 */
|
|
@@ -4410,21 +5080,21 @@ export interface components {
|
|
|
4410
5080
|
purchaseId: string;
|
|
4411
5081
|
/** Format: date-time */
|
|
4412
5082
|
purchasedAt: string;
|
|
4413
|
-
|
|
4414
|
-
status: string;
|
|
5083
|
+
status: components["schemas"]["KybPurchasedDocumentStatus"];
|
|
4415
5084
|
subType?: string | null;
|
|
4416
5085
|
};
|
|
4417
|
-
/** @description
|
|
5086
|
+
/** @description Request body for `POST /sdk/organizations/{organization_id}/kyb/{kyb_result_id}/reject`.
|
|
4418
5087
|
*
|
|
4419
|
-
*
|
|
4420
|
-
*
|
|
4421
|
-
|
|
4422
|
-
|
|
4423
|
-
|
|
4424
|
-
|
|
4425
|
-
|
|
4426
|
-
|
|
4427
|
-
*
|
|
5088
|
+
* A rejection is a decision on the company's case and needs a reason; the API key that takes it
|
|
5089
|
+
* is named beside the reason on the case's decision. */
|
|
5090
|
+
RejectKybPayload: {
|
|
5091
|
+
/** @description Why the company is rejected. Required, and never blank. */
|
|
5092
|
+
reason: string;
|
|
5093
|
+
reasonCode?: null | components["schemas"]["KybCaseDecisionReasonCode"];
|
|
5094
|
+
};
|
|
5095
|
+
/** @description Result of the replay-attack check for one document: whether the capture looks like a live
|
|
5096
|
+
* document or a reproduction of one (a photo of a screen or of a print), with the scores behind
|
|
5097
|
+
* that verdict for the document as a whole and for each side. */
|
|
4428
5098
|
ReplayAssessment: {
|
|
4429
5099
|
/**
|
|
4430
5100
|
* Format: double
|
|
@@ -4463,7 +5133,7 @@ export interface components {
|
|
|
4463
5133
|
* another capture and is not an accusation. */
|
|
4464
5134
|
verdict: string;
|
|
4465
5135
|
};
|
|
4466
|
-
/** @description
|
|
5136
|
+
/** @description The replay-attack check's verdict and scores for one side (front or back) of the document. */
|
|
4467
5137
|
ReplaySideAssessment: {
|
|
4468
5138
|
/** Format: double */
|
|
4469
5139
|
attackScore: number;
|
|
@@ -4482,7 +5152,7 @@ export interface components {
|
|
|
4482
5152
|
side: string;
|
|
4483
5153
|
verdict: string;
|
|
4484
5154
|
};
|
|
4485
|
-
/** @description Request body for `POST
|
|
5155
|
+
/** @description Request body for `POST.../kyb-cases/{case_id}/document-requests/on-demand`.
|
|
4486
5156
|
*
|
|
4487
5157
|
* Asks the client for a specific on-demand per-country document (identified by its catalog
|
|
4488
5158
|
* `key`). The server validates the key resolves to an on-demand document for the KYB's
|
|
@@ -4529,7 +5199,7 @@ export interface components {
|
|
|
4529
5199
|
confidence: number;
|
|
4530
5200
|
suggestion: components["schemas"]["ManualReviewResultStatus"];
|
|
4531
5201
|
};
|
|
4532
|
-
/** @description
|
|
5202
|
+
/** @description The keys of the form-based risk factors that matched for a form step, as recorded at the time. */
|
|
4533
5203
|
RiskFactorKeys: string[];
|
|
4534
5204
|
/** @enum {string} */
|
|
4535
5205
|
RiskLevel: "low" | "medium" | "high" | "critical";
|
|
@@ -4608,8 +5278,9 @@ export interface components {
|
|
|
4608
5278
|
* @enum {string}
|
|
4609
5279
|
*/
|
|
4610
5280
|
ScreeningStrategy: "ubo" | "directors" | "uboAndDirectors";
|
|
4611
|
-
/** @description
|
|
4612
|
-
* fields
|
|
5281
|
+
/** @description Search criteria for an AML screening. Every field is an optional string; provide at least one.
|
|
5282
|
+
* The more fields you fill in, the more precise the matching. Result-only data (sanctions,
|
|
5283
|
+
* topics, positions held) cannot be used as search input. */
|
|
4613
5284
|
SdkAmlScreenQuery: {
|
|
4614
5285
|
address?: string | null;
|
|
4615
5286
|
alias?: string | null;
|
|
@@ -4636,17 +5307,15 @@ export interface components {
|
|
|
4636
5307
|
};
|
|
4637
5308
|
SdkAmlScreenResponse: {
|
|
4638
5309
|
entities: components["schemas"]["AmlEntityResponse"][];
|
|
4639
|
-
/** @description Entity format
|
|
5310
|
+
/** @description Entity format of the returned matches, currently always `"ftm/1"`. */
|
|
4640
5311
|
format: string;
|
|
4641
|
-
/** @description
|
|
4642
|
-
*
|
|
5312
|
+
/** @description Identifier of the screening provider that produced these results. How many entity fields
|
|
5313
|
+
* are populated depends on the provider — see the SDK docs for coverage differences. */
|
|
4643
5314
|
provider: string;
|
|
4644
5315
|
};
|
|
4645
|
-
/** @description
|
|
4646
|
-
*
|
|
4647
|
-
*
|
|
4648
|
-
* validation). Both may be provided simultaneously: wallet takes priority for `zid`, email is
|
|
4649
|
-
* stored as a contact address. */
|
|
5316
|
+
/** @description Request body for creating or resuming a verification request on behalf of a user. Provide an
|
|
5317
|
+
* `email`, a wallet credential, or both. When both are given, the wallet identifies the user and
|
|
5318
|
+
* the email is kept as a contact address. */
|
|
4650
5319
|
SdkCreateVerificationRequestPayload: components["schemas"]["VerificationIdentifier"] & {
|
|
4651
5320
|
/** @description Arbitrary key-value metadata to attach to this verification request. */
|
|
4652
5321
|
customData?: {
|
|
@@ -4721,6 +5390,16 @@ export interface components {
|
|
|
4721
5390
|
isOtherAllowed: boolean;
|
|
4722
5391
|
values: string[];
|
|
4723
5392
|
};
|
|
5393
|
+
/**
|
|
5394
|
+
* @description The environment a service credential works in, fixed by its token prefix: `sk_live_` for
|
|
5395
|
+
* production, `sk_test_` for sandbox.
|
|
5396
|
+
*
|
|
5397
|
+
* A service credential is a bot token an integrator's server uses on the organization API
|
|
5398
|
+
* (`Authorization: Bearer sk_…`). The prefix is part of the hashed token, so it can't be changed
|
|
5399
|
+
* without invalidating the token.
|
|
5400
|
+
* @enum {string}
|
|
5401
|
+
*/
|
|
5402
|
+
ServiceCredentialEnvironment: "LIVE" | "TEST";
|
|
4724
5403
|
Settings: {
|
|
4725
5404
|
/** @description When true (default), prompt users to create a passkey during the verification flow.
|
|
4726
5405
|
* When false, skip the passkey creation step.
|
|
@@ -4749,9 +5428,7 @@ export interface components {
|
|
|
4749
5428
|
SpidConfig: {
|
|
4750
5429
|
/**
|
|
4751
5430
|
* 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.
|
|
5431
|
+
* @description The ID of the document-selection step that precedes this SPID step in the flow.
|
|
4755
5432
|
*/
|
|
4756
5433
|
documentSelectionStepId?: string;
|
|
4757
5434
|
/** @example { "default": "Next step" } */
|
|
@@ -4830,6 +5507,25 @@ export interface components {
|
|
|
4830
5507
|
/** @description English name, for display (`Delaware`). */
|
|
4831
5508
|
name: string;
|
|
4832
5509
|
};
|
|
5510
|
+
/** @description One hand-off of a subject's work. */
|
|
5511
|
+
SubjectAssignmentResponse: {
|
|
5512
|
+
/** Format: date-time */
|
|
5513
|
+
assignedAt: string;
|
|
5514
|
+
/** Format: uuid */
|
|
5515
|
+
assignedBy: string;
|
|
5516
|
+
assignee: components["schemas"]["AssigneePayload"];
|
|
5517
|
+
/**
|
|
5518
|
+
* Format: date-time
|
|
5519
|
+
* @description Set once the subject was handed on or released. The row with no `endedAt` is the holder.
|
|
5520
|
+
*/
|
|
5521
|
+
endedAt?: string | null;
|
|
5522
|
+
/** Format: uuid */
|
|
5523
|
+
endedBy?: string | null;
|
|
5524
|
+
/** Format: uuid */
|
|
5525
|
+
id: string;
|
|
5526
|
+
reason: string;
|
|
5527
|
+
subject: components["schemas"]["KybSubjectRef"];
|
|
5528
|
+
};
|
|
4833
5529
|
/** @description Flat theme API response. Logo/font fields hold raw S3 keys when built from `ThemeData`; the
|
|
4834
5530
|
* handler swaps them for presigned URLs before returning. */
|
|
4835
5531
|
Theme: {
|
|
@@ -4946,6 +5642,12 @@ export interface components {
|
|
|
4946
5642
|
* TIN is not stored. */
|
|
4947
5643
|
tinMasked: string;
|
|
4948
5644
|
tinType?: null | components["schemas"]["TinCheckTinType"];
|
|
5645
|
+
/**
|
|
5646
|
+
* Format: uuid
|
|
5647
|
+
* @description The KYB anchor's verification request, for a check run when an applicant submitted a KYB's
|
|
5648
|
+
* business information. Absent for a check run from the dashboard or with an API key.
|
|
5649
|
+
*/
|
|
5650
|
+
verificationRequestId?: string | null;
|
|
4949
5651
|
/** @description Whether the name resembles an entry on any of the screened watchlists. */
|
|
4950
5652
|
watchlistStatus: components["schemas"]["TinCheckLookupStatus"];
|
|
4951
5653
|
/** @description Every watchlist the name was screened against, with how many entries resemble it. A
|
|
@@ -4992,8 +5694,9 @@ export interface components {
|
|
|
4992
5694
|
/** Format: double */
|
|
4993
5695
|
maxRiskProbability?: number;
|
|
4994
5696
|
};
|
|
4995
|
-
/** @description The
|
|
4996
|
-
*
|
|
5697
|
+
/** @description The detailed record behind an automated alert review: the case file the review was based on
|
|
5698
|
+
* and its findings about the end user. Only shown in the dashboard; never included in API
|
|
5699
|
+
* responses or webhooks. */
|
|
4997
5700
|
TmAgentReviewEvidence: {
|
|
4998
5701
|
/** @description The re-read case at actuation time, present only when it differed from the analytic one. */
|
|
4999
5702
|
actuationCaseFile?: Record<string, never> | null;
|
|
@@ -5002,7 +5705,7 @@ export interface components {
|
|
|
5002
5705
|
mitigations: Record<string, never>;
|
|
5003
5706
|
verdict: Record<string, never>;
|
|
5004
5707
|
};
|
|
5005
|
-
/** @description The API-facing projection of a stored `agentReview
|
|
5708
|
+
/** @description The API-facing projection of a stored `agentReview`.
|
|
5006
5709
|
*
|
|
5007
5710
|
* The stored review keeps the whole case file, the prosecutor's findings about the end user,
|
|
5008
5711
|
* the identity risk score and the controls of the subject's other alerts. None of that belongs
|
|
@@ -5027,11 +5730,10 @@ export interface components {
|
|
|
5027
5730
|
/** Format: date-time */
|
|
5028
5731
|
reviewedAt: string;
|
|
5029
5732
|
};
|
|
5030
|
-
/** @description
|
|
5733
|
+
/** @description An alert raised on a transaction, as returned in the transaction detail.
|
|
5031
5734
|
*
|
|
5032
|
-
* `agentReview` is a
|
|
5033
|
-
*
|
|
5034
|
-
* the controls of the subject's other alerts. Only the JWT dashboard route asks for `evidence`. */
|
|
5735
|
+
* `agentReview` is a summary of the automated review of the alert, when one ran. The detailed
|
|
5736
|
+
* review evidence is only shown in the dashboard and is not included in API responses. */
|
|
5035
5737
|
TmAlertDetail: {
|
|
5036
5738
|
agentReview?: null | components["schemas"]["TmAgentReviewSummary"];
|
|
5037
5739
|
controls: unknown;
|
|
@@ -5049,18 +5751,18 @@ export interface components {
|
|
|
5049
5751
|
ruleKey?: string | null;
|
|
5050
5752
|
};
|
|
5051
5753
|
/**
|
|
5052
|
-
* @description Alert lifecycle
|
|
5754
|
+
* @description Alert lifecycle.
|
|
5053
5755
|
* @enum {string}
|
|
5054
5756
|
*/
|
|
5055
5757
|
TmAlertStatus: "NEW" | "IN_REVIEW" | "ESCALATED" | "CLOSED_TRUE_POSITIVE" | "CLOSED_FALSE_POSITIVE" | "SAR_FILED";
|
|
5056
5758
|
/**
|
|
5057
|
-
* @description Which
|
|
5058
|
-
* rule
|
|
5759
|
+
* @description Which threshold band (`low`, `med` or `high`) a transaction's value fell into for a numeric
|
|
5760
|
+
* (metric) rule. Absent on rules that are simple yes/no signals.
|
|
5059
5761
|
* @enum {string}
|
|
5060
5762
|
*/
|
|
5061
5763
|
TmBand: "low" | "med" | "high";
|
|
5062
5764
|
/**
|
|
5063
|
-
* @description Counterparty node type
|
|
5765
|
+
* @description Counterparty node type.
|
|
5064
5766
|
* @enum {string}
|
|
5065
5767
|
*/
|
|
5066
5768
|
TmCounterpartyKind: "PERSON" | "ORGANIZATION" | "ACCOUNT" | "WALLET";
|
|
@@ -5077,21 +5779,20 @@ export interface components {
|
|
|
5077
5779
|
};
|
|
5078
5780
|
/**
|
|
5079
5781
|
* @description The synchronous verdict on a transaction: the combined `P(risk)` (noisy-OR over fired rule
|
|
5080
|
-
* probabilities
|
|
5782
|
+
* probabilities) compared to the org's `tm_settings` thresholds.
|
|
5081
5783
|
* @enum {string}
|
|
5082
5784
|
*/
|
|
5083
5785
|
TmDecision: "ALLOW" | "REVIEW" | "BLOCK";
|
|
5084
|
-
/** @description
|
|
5085
|
-
*
|
|
5086
|
-
* reconstructable (module plan §12). */
|
|
5786
|
+
/** @description A monitoring rule that fired on a transaction, identifying the exact rule version (`ruleId`,
|
|
5787
|
+
* `ruleKey`, `ruleVersion`, `ruleHash`) and how it contributed to the risk score. */
|
|
5087
5788
|
TmFiredRule: {
|
|
5088
5789
|
band?: null | components["schemas"]["TmBand"];
|
|
5089
5790
|
/**
|
|
5090
5791
|
* Format: double
|
|
5091
|
-
* @description The rule's contributed `p` for that band
|
|
5792
|
+
* @description The rule's contributed `p` for that band.
|
|
5092
5793
|
*/
|
|
5093
5794
|
probability: number;
|
|
5094
|
-
/** @description Whether this
|
|
5795
|
+
/** @description Whether this rule firing raises an alert. */
|
|
5095
5796
|
raiseAlert: boolean;
|
|
5096
5797
|
ruleHash: string;
|
|
5097
5798
|
/** Format: uuid */
|
|
@@ -5100,10 +5801,10 @@ export interface components {
|
|
|
5100
5801
|
/** Format: int32 */
|
|
5101
5802
|
ruleVersion: number;
|
|
5102
5803
|
};
|
|
5103
|
-
/** @description Ingest one transaction event
|
|
5804
|
+
/** @description Ingest one transaction event for monitoring.
|
|
5104
5805
|
*
|
|
5105
|
-
*
|
|
5106
|
-
*
|
|
5806
|
+
* Unknown fields are rejected: a misspelled field name makes the request fail instead of being
|
|
5807
|
+
* silently ignored. */
|
|
5107
5808
|
TmIngestTransactionRequest: {
|
|
5108
5809
|
/**
|
|
5109
5810
|
* Format: int64
|
|
@@ -5211,8 +5912,7 @@ export interface components {
|
|
|
5211
5912
|
};
|
|
5212
5913
|
/**
|
|
5213
5914
|
* @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).
|
|
5915
|
+
* `Pending`/`Settled` and backs them out on a one-time transition into a terminal-negative state.
|
|
5216
5916
|
* @enum {string}
|
|
5217
5917
|
*/
|
|
5218
5918
|
TmTransactionStatus: "PENDING" | "SETTLED" | "FAILED" | "CANCELED" | "REVERSED";
|
|
@@ -5220,13 +5920,8 @@ export interface components {
|
|
|
5220
5920
|
TmUpdateTransactionStatusRequest: {
|
|
5221
5921
|
status: components["schemas"]["TmTransactionStatus"];
|
|
5222
5922
|
};
|
|
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 */
|
|
5923
|
+
/** @description A top-up pack: a one-time purchase that adds credits to the organization's balance and
|
|
5924
|
+
* can optionally unlock products. */
|
|
5230
5925
|
TopupPack: {
|
|
5231
5926
|
/**
|
|
5232
5927
|
* Format: int64
|
|
@@ -5239,10 +5934,8 @@ export interface components {
|
|
|
5239
5934
|
*/
|
|
5240
5935
|
credits: number;
|
|
5241
5936
|
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). */
|
|
5937
|
+
/** @description Products this pack enables in the production environment when it is purchased. Empty
|
|
5938
|
+
* when the pack grants credits only. */
|
|
5246
5939
|
enabledProducts?: components["schemas"]["ProductType"][];
|
|
5247
5940
|
/** @description `true` when the price carries `zyphe_visibility=private` metadata: a bespoke pack that
|
|
5248
5941
|
* must never appear in the public catalog and is usable only by the organization named in
|
|
@@ -5255,12 +5948,11 @@ export interface components {
|
|
|
5255
5948
|
* Meaningless (and normally absent) on a public pack. A private pack WITHOUT this is
|
|
5256
5949
|
* usable by nobody — failing closed beats leaking a bespoke price to every customer. */
|
|
5257
5950
|
organizationId?: string | null;
|
|
5258
|
-
/** @description The
|
|
5951
|
+
/** @description The pack's price ID. Pass it as `priceId` when creating a top-up checkout session. */
|
|
5259
5952
|
priceId: string;
|
|
5260
|
-
/** @description
|
|
5261
|
-
* `
|
|
5262
|
-
*
|
|
5263
|
-
* entitled to bill for it in production. */
|
|
5953
|
+
/** @description Products this pack enables in the sandbox environment when it is purchased. Separate
|
|
5954
|
+
* from `enabledProducts` because an organization may be allowed to try a product in
|
|
5955
|
+
* sandbox without being able to use it in production. Empty when none. */
|
|
5264
5956
|
sandboxEnabledProducts?: components["schemas"]["ProductType"][];
|
|
5265
5957
|
/**
|
|
5266
5958
|
* Format: int32
|
|
@@ -5272,9 +5964,9 @@ export interface components {
|
|
|
5272
5964
|
TopupPacksResponse: {
|
|
5273
5965
|
packs: components["schemas"]["TopupPack"][];
|
|
5274
5966
|
};
|
|
5275
|
-
/** @description
|
|
5276
|
-
*
|
|
5277
|
-
*
|
|
5967
|
+
/** @description Summary of the automatic ownership discovery: the relevance threshold it uses, its credit
|
|
5968
|
+
* budget, what it has spent so far and, once finished, how it ended. Returned to your
|
|
5969
|
+
* organization only, never to the applicant. */
|
|
5278
5970
|
TraversalSummary: {
|
|
5279
5971
|
/**
|
|
5280
5972
|
* Format: int32
|
|
@@ -5302,12 +5994,9 @@ export interface components {
|
|
|
5302
5994
|
*/
|
|
5303
5995
|
spentCredits: number;
|
|
5304
5996
|
};
|
|
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. */
|
|
5997
|
+
/** @description One step (wave) of the automatic ownership discovery that runs while the applicant completes
|
|
5998
|
+
* the flow: which nodes it explored, its status and what it cost. Returned to your organization
|
|
5999
|
+
* only, never to the applicant. */
|
|
5311
6000
|
TraversalWave: {
|
|
5312
6001
|
/**
|
|
5313
6002
|
* Format: int64
|
|
@@ -5325,8 +6014,7 @@ export interface components {
|
|
|
5325
6014
|
discoveryId: string;
|
|
5326
6015
|
/** @description The `budget_truncated` chips this wave opened, in the relevance order it chose them. */
|
|
5327
6016
|
nodeIds: string[];
|
|
5328
|
-
|
|
5329
|
-
status: string;
|
|
6017
|
+
status: components["schemas"]["KybDiscoveryRequestStatus"];
|
|
5330
6018
|
stoppedReason?: string | null;
|
|
5331
6019
|
/**
|
|
5332
6020
|
* Format: int32
|
|
@@ -5339,7 +6027,7 @@ export interface components {
|
|
|
5339
6027
|
enqueued: boolean;
|
|
5340
6028
|
};
|
|
5341
6029
|
UboDefinition: {
|
|
5342
|
-
/** @description
|
|
6030
|
+
/** @description Nationality of the UBO. Absent when the company register reported none. */
|
|
5343
6031
|
country?: string | null;
|
|
5344
6032
|
/** @description `None` for a UBO taken from a company register as reported. Registers publish ownership,
|
|
5345
6033
|
* not identity dossiers: a birth date is frequently absent, and demanding one would force the
|
|
@@ -5388,18 +6076,9 @@ export interface components {
|
|
|
5388
6076
|
/** @description PRF salt for vault unlock (base64url) */
|
|
5389
6077
|
prfSalt: string;
|
|
5390
6078
|
};
|
|
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`. */
|
|
6079
|
+
/** @description Fields that identify the user in every verification-request creation payload. Provide an
|
|
6080
|
+
* `email`, a `WALLET` entry in `credentials`, or both. Email magic-link sign-in is enabled
|
|
6081
|
+
* automatically whenever an email is given and does not need to be listed in `credentials`. */
|
|
5403
6082
|
VerificationIdentifier: {
|
|
5404
6083
|
/** @description Credentials to enable for this identity (e.g. wallet, magic-link).
|
|
5405
6084
|
* The first `Wallet` entry determines the `zid`; all entries are provisioned on
|
|
@@ -5409,15 +6088,10 @@ export interface components {
|
|
|
5409
6088
|
* credential is provided. */
|
|
5410
6089
|
email?: string | null;
|
|
5411
6090
|
};
|
|
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. */
|
|
6091
|
+
/** @description A credential to attach to the user when creating a verification request, selected by `type`:
|
|
6092
|
+
* `WALLET` (a blockchain wallet address) or `EXTERNAL_ID` (your own identifier for the user).
|
|
6093
|
+
* Email magic-link sign-in is enabled automatically whenever an email is given and does not
|
|
6094
|
+
* need to be listed. */
|
|
5421
6095
|
VerificationIdentifierCredential: {
|
|
5422
6096
|
address: string;
|
|
5423
6097
|
chain: components["schemas"]["SiwxChain"];
|
|
@@ -5534,10 +6208,9 @@ export interface components {
|
|
|
5534
6208
|
status: components["schemas"]["ResultStatus"];
|
|
5535
6209
|
};
|
|
5536
6210
|
/**
|
|
5537
|
-
* @description
|
|
5538
|
-
*
|
|
5539
|
-
*
|
|
5540
|
-
* customer. Adding one is safe — the column is TEXT and the API validates against this catalog.
|
|
6211
|
+
* @description A webhook event type. Use these values to choose which events a webhook subscription
|
|
6212
|
+
* receives. Existing values are stable; new event types may be added over time, so ignore any
|
|
6213
|
+
* you do not recognise.
|
|
5541
6214
|
* @enum {string}
|
|
5542
6215
|
*/
|
|
5543
6216
|
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 +6219,21 @@ export interface components {
|
|
|
5546
6219
|
* @enum {string}
|
|
5547
6220
|
*/
|
|
5548
6221
|
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). */
|
|
6222
|
+
/** @description What started a background process. The same kind of process can be started in different
|
|
6223
|
+
* ways, e.g. an AML screening started by a completed document verification or by an admin. */
|
|
5553
6224
|
WorkerScenario: "USER_INITIATED" | {
|
|
5554
|
-
/** @description
|
|
6225
|
+
/** @description Started by another background process, whose kind is given as the value (e.g. an AML
|
|
6226
|
+
* screening started when document verification completes). */
|
|
5555
6227
|
TRIGGERED_BY_WORKER: components["schemas"]["WorkerType"];
|
|
5556
6228
|
} | "ADMIN_ACTION" | "ONE_CLICK_REUSE";
|
|
5557
6229
|
/**
|
|
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`.
|
|
6230
|
+
* @description A kind of background process. In `source.workerType` it is the process that recorded the audit
|
|
6231
|
+
* event (for example `AML` for an AML screening). As the value of `TRIGGERED_BY_WORKER` it is the
|
|
6232
|
+
* process that started it (for example `DV` when a completed document verification starts that
|
|
6233
|
+
* AML screening).
|
|
5565
6234
|
* @enum {string}
|
|
5566
6235
|
*/
|
|
5567
|
-
WorkerType: "DV" | "LIVENESS" | "AML" | "POA" | "SPID" | "FORM" | "ONE_CLICK_DV" | "ONE_CLICK_FORM" | "MANUAL_REVIEW" | "TM";
|
|
6236
|
+
WorkerType: "DV" | "LIVENESS" | "AML" | "POA" | "SPID" | "FORM" | "ONE_CLICK_DV" | "ONE_CLICK_FORM" | "MANUAL_REVIEW" | "TM" | "KYB_CASE";
|
|
5568
6237
|
/** @description Context data available to JDM rules during flow evaluation.
|
|
5569
6238
|
*
|
|
5570
6239
|
* This structure is serialized to JSON and passed to the Zen Engine for evaluation.
|
|
@@ -5753,7 +6422,11 @@ export interface components {
|
|
|
5753
6422
|
description?: string | null;
|
|
5754
6423
|
/** Format: uuid */
|
|
5755
6424
|
id: string;
|
|
5756
|
-
key
|
|
6425
|
+
/** @description The key in clear, for Publishable keys and legacy Secret keys. `null` for Secret keys
|
|
6426
|
+
* created since keys are stored by hash: those are returned once, when created. */
|
|
6427
|
+
key?: string | null;
|
|
6428
|
+
/** @description Prefix and last four characters of the key (`zyphe_sk_…a1b2`), always present. */
|
|
6429
|
+
keyHint?: string;
|
|
5757
6430
|
keyType: components["schemas"]["ApiKeyType"];
|
|
5758
6431
|
name?: string | null;
|
|
5759
6432
|
options: {
|
|
@@ -6215,19 +6888,707 @@ export interface operations {
|
|
|
6215
6888
|
/** @description Flow slug to scope results to */
|
|
6216
6889
|
flow_slug: string;
|
|
6217
6890
|
};
|
|
6218
|
-
cookie?: never;
|
|
6219
|
-
};
|
|
6220
|
-
requestBody?: never;
|
|
6221
|
-
responses: {
|
|
6222
|
-
200: {
|
|
6891
|
+
cookie?: never;
|
|
6892
|
+
};
|
|
6893
|
+
requestBody?: never;
|
|
6894
|
+
responses: {
|
|
6895
|
+
200: {
|
|
6896
|
+
headers: {
|
|
6897
|
+
[name: string]: unknown;
|
|
6898
|
+
};
|
|
6899
|
+
content: {
|
|
6900
|
+
"application/json": components["schemas"]["ListOrganizationFlowResultsResponse"];
|
|
6901
|
+
};
|
|
6902
|
+
};
|
|
6903
|
+
400: {
|
|
6904
|
+
headers: {
|
|
6905
|
+
[name: string]: unknown;
|
|
6906
|
+
};
|
|
6907
|
+
content: {
|
|
6908
|
+
"application/json": components["schemas"]["BaxeError"];
|
|
6909
|
+
};
|
|
6910
|
+
};
|
|
6911
|
+
401: {
|
|
6912
|
+
headers: {
|
|
6913
|
+
[name: string]: unknown;
|
|
6914
|
+
};
|
|
6915
|
+
content: {
|
|
6916
|
+
"application/json": components["schemas"]["BaxeError"];
|
|
6917
|
+
};
|
|
6918
|
+
};
|
|
6919
|
+
500: {
|
|
6920
|
+
headers: {
|
|
6921
|
+
[name: string]: unknown;
|
|
6922
|
+
};
|
|
6923
|
+
content: {
|
|
6924
|
+
"application/json": components["schemas"]["BaxeError"];
|
|
6925
|
+
};
|
|
6926
|
+
};
|
|
6927
|
+
};
|
|
6928
|
+
};
|
|
6929
|
+
sendUboKycReminder: {
|
|
6930
|
+
parameters: {
|
|
6931
|
+
query: {
|
|
6932
|
+
sandbox: boolean;
|
|
6933
|
+
locale?: components["schemas"]["Locale"];
|
|
6934
|
+
};
|
|
6935
|
+
header?: never;
|
|
6936
|
+
path: {
|
|
6937
|
+
/** @description Organization ID */
|
|
6938
|
+
organization_id: string;
|
|
6939
|
+
/** @description The ID of the KYB case */
|
|
6940
|
+
case_id: string;
|
|
6941
|
+
/** @description Index of the UBO to send the KYC email to, matching the order in uboDefinitions */
|
|
6942
|
+
recipient_index: number;
|
|
6943
|
+
};
|
|
6944
|
+
cookie?: never;
|
|
6945
|
+
};
|
|
6946
|
+
requestBody?: never;
|
|
6947
|
+
responses: {
|
|
6948
|
+
202: {
|
|
6949
|
+
headers: {
|
|
6950
|
+
[name: string]: unknown;
|
|
6951
|
+
};
|
|
6952
|
+
content: {
|
|
6953
|
+
"application/json": components["schemas"]["TriggerReminderResponse"];
|
|
6954
|
+
};
|
|
6955
|
+
};
|
|
6956
|
+
400: {
|
|
6957
|
+
headers: {
|
|
6958
|
+
[name: string]: unknown;
|
|
6959
|
+
};
|
|
6960
|
+
content: {
|
|
6961
|
+
"application/json": components["schemas"]["BaxeError"];
|
|
6962
|
+
};
|
|
6963
|
+
};
|
|
6964
|
+
401: {
|
|
6965
|
+
headers: {
|
|
6966
|
+
[name: string]: unknown;
|
|
6967
|
+
};
|
|
6968
|
+
content: {
|
|
6969
|
+
"application/json": components["schemas"]["BaxeError"];
|
|
6970
|
+
};
|
|
6971
|
+
};
|
|
6972
|
+
403: {
|
|
6973
|
+
headers: {
|
|
6974
|
+
[name: string]: unknown;
|
|
6975
|
+
};
|
|
6976
|
+
content: {
|
|
6977
|
+
"application/json": components["schemas"]["BaxeError"];
|
|
6978
|
+
};
|
|
6979
|
+
};
|
|
6980
|
+
404: {
|
|
6981
|
+
headers: {
|
|
6982
|
+
[name: string]: unknown;
|
|
6983
|
+
};
|
|
6984
|
+
content: {
|
|
6985
|
+
"application/json": components["schemas"]["BaxeError"];
|
|
6986
|
+
};
|
|
6987
|
+
};
|
|
6988
|
+
500: {
|
|
6989
|
+
headers: {
|
|
6990
|
+
[name: string]: unknown;
|
|
6991
|
+
};
|
|
6992
|
+
content: {
|
|
6993
|
+
"application/json": components["schemas"]["BaxeError"];
|
|
6994
|
+
};
|
|
6995
|
+
};
|
|
6996
|
+
};
|
|
6997
|
+
};
|
|
6998
|
+
addKybUbosDeprecated: {
|
|
6999
|
+
parameters: {
|
|
7000
|
+
query: {
|
|
7001
|
+
sandbox: boolean;
|
|
7002
|
+
locale?: components["schemas"]["Locale"];
|
|
7003
|
+
};
|
|
7004
|
+
header?: never;
|
|
7005
|
+
path: {
|
|
7006
|
+
/** @description Organization ID */
|
|
7007
|
+
organization_id: string;
|
|
7008
|
+
/** @description The ID of the KYB result — the id of its case */
|
|
7009
|
+
kyb_result_id: string;
|
|
7010
|
+
};
|
|
7011
|
+
cookie?: never;
|
|
7012
|
+
};
|
|
7013
|
+
requestBody: {
|
|
7014
|
+
content: {
|
|
7015
|
+
"application/json": components["schemas"]["AddKybPersonsPayload"];
|
|
7016
|
+
};
|
|
7017
|
+
};
|
|
7018
|
+
responses: {
|
|
7019
|
+
200: {
|
|
7020
|
+
headers: {
|
|
7021
|
+
[name: string]: unknown;
|
|
7022
|
+
};
|
|
7023
|
+
content: {
|
|
7024
|
+
"application/json": components["schemas"]["KybResult"];
|
|
7025
|
+
};
|
|
7026
|
+
};
|
|
7027
|
+
400: {
|
|
7028
|
+
headers: {
|
|
7029
|
+
[name: string]: unknown;
|
|
7030
|
+
};
|
|
7031
|
+
content: {
|
|
7032
|
+
"application/json": components["schemas"]["BaxeError"];
|
|
7033
|
+
};
|
|
7034
|
+
};
|
|
7035
|
+
401: {
|
|
7036
|
+
headers: {
|
|
7037
|
+
[name: string]: unknown;
|
|
7038
|
+
};
|
|
7039
|
+
content: {
|
|
7040
|
+
"application/json": components["schemas"]["BaxeError"];
|
|
7041
|
+
};
|
|
7042
|
+
};
|
|
7043
|
+
403: {
|
|
7044
|
+
headers: {
|
|
7045
|
+
[name: string]: unknown;
|
|
7046
|
+
};
|
|
7047
|
+
content: {
|
|
7048
|
+
"application/json": components["schemas"]["BaxeError"];
|
|
7049
|
+
};
|
|
7050
|
+
};
|
|
7051
|
+
404: {
|
|
7052
|
+
headers: {
|
|
7053
|
+
[name: string]: unknown;
|
|
7054
|
+
};
|
|
7055
|
+
content: {
|
|
7056
|
+
"application/json": components["schemas"]["BaxeError"];
|
|
7057
|
+
};
|
|
7058
|
+
};
|
|
7059
|
+
500: {
|
|
7060
|
+
headers: {
|
|
7061
|
+
[name: string]: unknown;
|
|
7062
|
+
};
|
|
7063
|
+
content: {
|
|
7064
|
+
"application/json": components["schemas"]["BaxeError"];
|
|
7065
|
+
};
|
|
7066
|
+
};
|
|
7067
|
+
};
|
|
7068
|
+
};
|
|
7069
|
+
removeKybUboDeprecated: {
|
|
7070
|
+
parameters: {
|
|
7071
|
+
query: {
|
|
7072
|
+
sandbox: boolean;
|
|
7073
|
+
locale?: components["schemas"]["Locale"];
|
|
7074
|
+
};
|
|
7075
|
+
header?: never;
|
|
7076
|
+
path: {
|
|
7077
|
+
/** @description Organization ID */
|
|
7078
|
+
organization_id: string;
|
|
7079
|
+
/** @description The ID of the KYB result — the id of its case */
|
|
7080
|
+
kyb_result_id: string;
|
|
7081
|
+
/** @description Stable id of the UBO to remove */
|
|
7082
|
+
person_id: string;
|
|
7083
|
+
};
|
|
7084
|
+
cookie?: never;
|
|
7085
|
+
};
|
|
7086
|
+
requestBody?: never;
|
|
7087
|
+
responses: {
|
|
7088
|
+
200: {
|
|
7089
|
+
headers: {
|
|
7090
|
+
[name: string]: unknown;
|
|
7091
|
+
};
|
|
7092
|
+
content: {
|
|
7093
|
+
"application/json": components["schemas"]["KybResult"];
|
|
7094
|
+
};
|
|
7095
|
+
};
|
|
7096
|
+
400: {
|
|
7097
|
+
headers: {
|
|
7098
|
+
[name: string]: unknown;
|
|
7099
|
+
};
|
|
7100
|
+
content: {
|
|
7101
|
+
"application/json": components["schemas"]["BaxeError"];
|
|
7102
|
+
};
|
|
7103
|
+
};
|
|
7104
|
+
401: {
|
|
7105
|
+
headers: {
|
|
7106
|
+
[name: string]: unknown;
|
|
7107
|
+
};
|
|
7108
|
+
content: {
|
|
7109
|
+
"application/json": components["schemas"]["BaxeError"];
|
|
7110
|
+
};
|
|
7111
|
+
};
|
|
7112
|
+
403: {
|
|
7113
|
+
headers: {
|
|
7114
|
+
[name: string]: unknown;
|
|
7115
|
+
};
|
|
7116
|
+
content: {
|
|
7117
|
+
"application/json": components["schemas"]["BaxeError"];
|
|
7118
|
+
};
|
|
7119
|
+
};
|
|
7120
|
+
404: {
|
|
7121
|
+
headers: {
|
|
7122
|
+
[name: string]: unknown;
|
|
7123
|
+
};
|
|
7124
|
+
content: {
|
|
7125
|
+
"application/json": components["schemas"]["BaxeError"];
|
|
7126
|
+
};
|
|
7127
|
+
};
|
|
7128
|
+
500: {
|
|
7129
|
+
headers: {
|
|
7130
|
+
[name: string]: unknown;
|
|
7131
|
+
};
|
|
7132
|
+
content: {
|
|
7133
|
+
"application/json": components["schemas"]["BaxeError"];
|
|
7134
|
+
};
|
|
7135
|
+
};
|
|
7136
|
+
};
|
|
7137
|
+
};
|
|
7138
|
+
addKybDirectorsDeprecated: {
|
|
7139
|
+
parameters: {
|
|
7140
|
+
query: {
|
|
7141
|
+
sandbox: boolean;
|
|
7142
|
+
locale?: components["schemas"]["Locale"];
|
|
7143
|
+
};
|
|
7144
|
+
header?: never;
|
|
7145
|
+
path: {
|
|
7146
|
+
/** @description Organization ID */
|
|
7147
|
+
organization_id: string;
|
|
7148
|
+
/** @description The ID of the KYB result — the id of its case */
|
|
7149
|
+
kyb_result_id: string;
|
|
7150
|
+
};
|
|
7151
|
+
cookie?: never;
|
|
7152
|
+
};
|
|
7153
|
+
requestBody: {
|
|
7154
|
+
content: {
|
|
7155
|
+
"application/json": components["schemas"]["AddKybPersonsPayload"];
|
|
7156
|
+
};
|
|
7157
|
+
};
|
|
7158
|
+
responses: {
|
|
7159
|
+
200: {
|
|
7160
|
+
headers: {
|
|
7161
|
+
[name: string]: unknown;
|
|
7162
|
+
};
|
|
7163
|
+
content: {
|
|
7164
|
+
"application/json": components["schemas"]["KybResult"];
|
|
7165
|
+
};
|
|
7166
|
+
};
|
|
7167
|
+
400: {
|
|
7168
|
+
headers: {
|
|
7169
|
+
[name: string]: unknown;
|
|
7170
|
+
};
|
|
7171
|
+
content: {
|
|
7172
|
+
"application/json": components["schemas"]["BaxeError"];
|
|
7173
|
+
};
|
|
7174
|
+
};
|
|
7175
|
+
401: {
|
|
7176
|
+
headers: {
|
|
7177
|
+
[name: string]: unknown;
|
|
7178
|
+
};
|
|
7179
|
+
content: {
|
|
7180
|
+
"application/json": components["schemas"]["BaxeError"];
|
|
7181
|
+
};
|
|
7182
|
+
};
|
|
7183
|
+
403: {
|
|
7184
|
+
headers: {
|
|
7185
|
+
[name: string]: unknown;
|
|
7186
|
+
};
|
|
7187
|
+
content: {
|
|
7188
|
+
"application/json": components["schemas"]["BaxeError"];
|
|
7189
|
+
};
|
|
7190
|
+
};
|
|
7191
|
+
404: {
|
|
7192
|
+
headers: {
|
|
7193
|
+
[name: string]: unknown;
|
|
7194
|
+
};
|
|
7195
|
+
content: {
|
|
7196
|
+
"application/json": components["schemas"]["BaxeError"];
|
|
7197
|
+
};
|
|
7198
|
+
};
|
|
7199
|
+
500: {
|
|
7200
|
+
headers: {
|
|
7201
|
+
[name: string]: unknown;
|
|
7202
|
+
};
|
|
7203
|
+
content: {
|
|
7204
|
+
"application/json": components["schemas"]["BaxeError"];
|
|
7205
|
+
};
|
|
7206
|
+
};
|
|
7207
|
+
};
|
|
7208
|
+
};
|
|
7209
|
+
removeKybDirectorDeprecated: {
|
|
7210
|
+
parameters: {
|
|
7211
|
+
query: {
|
|
7212
|
+
sandbox: boolean;
|
|
7213
|
+
locale?: components["schemas"]["Locale"];
|
|
7214
|
+
};
|
|
7215
|
+
header?: never;
|
|
7216
|
+
path: {
|
|
7217
|
+
/** @description Organization ID */
|
|
7218
|
+
organization_id: string;
|
|
7219
|
+
/** @description The ID of the KYB result — the id of its case */
|
|
7220
|
+
kyb_result_id: string;
|
|
7221
|
+
/** @description Stable id of the director to remove */
|
|
7222
|
+
person_id: string;
|
|
7223
|
+
};
|
|
7224
|
+
cookie?: never;
|
|
7225
|
+
};
|
|
7226
|
+
requestBody?: never;
|
|
7227
|
+
responses: {
|
|
7228
|
+
200: {
|
|
7229
|
+
headers: {
|
|
7230
|
+
[name: string]: unknown;
|
|
7231
|
+
};
|
|
7232
|
+
content: {
|
|
7233
|
+
"application/json": components["schemas"]["KybResult"];
|
|
7234
|
+
};
|
|
7235
|
+
};
|
|
7236
|
+
400: {
|
|
7237
|
+
headers: {
|
|
7238
|
+
[name: string]: unknown;
|
|
7239
|
+
};
|
|
7240
|
+
content: {
|
|
7241
|
+
"application/json": components["schemas"]["BaxeError"];
|
|
7242
|
+
};
|
|
7243
|
+
};
|
|
7244
|
+
401: {
|
|
7245
|
+
headers: {
|
|
7246
|
+
[name: string]: unknown;
|
|
7247
|
+
};
|
|
7248
|
+
content: {
|
|
7249
|
+
"application/json": components["schemas"]["BaxeError"];
|
|
7250
|
+
};
|
|
7251
|
+
};
|
|
7252
|
+
403: {
|
|
7253
|
+
headers: {
|
|
7254
|
+
[name: string]: unknown;
|
|
7255
|
+
};
|
|
7256
|
+
content: {
|
|
7257
|
+
"application/json": components["schemas"]["BaxeError"];
|
|
7258
|
+
};
|
|
7259
|
+
};
|
|
7260
|
+
404: {
|
|
7261
|
+
headers: {
|
|
7262
|
+
[name: string]: unknown;
|
|
7263
|
+
};
|
|
7264
|
+
content: {
|
|
7265
|
+
"application/json": components["schemas"]["BaxeError"];
|
|
7266
|
+
};
|
|
7267
|
+
};
|
|
7268
|
+
500: {
|
|
7269
|
+
headers: {
|
|
7270
|
+
[name: string]: unknown;
|
|
7271
|
+
};
|
|
7272
|
+
content: {
|
|
7273
|
+
"application/json": components["schemas"]["BaxeError"];
|
|
7274
|
+
};
|
|
7275
|
+
};
|
|
7276
|
+
};
|
|
7277
|
+
};
|
|
7278
|
+
getKybCaseOfficers: {
|
|
7279
|
+
parameters: {
|
|
7280
|
+
query: {
|
|
7281
|
+
sandbox: boolean;
|
|
7282
|
+
locale?: components["schemas"]["Locale"];
|
|
7283
|
+
};
|
|
7284
|
+
header?: never;
|
|
7285
|
+
path: {
|
|
7286
|
+
/** @description Organization ID */
|
|
7287
|
+
organization_id: string;
|
|
7288
|
+
/** @description The ID of the KYB case */
|
|
7289
|
+
case_id: string;
|
|
7290
|
+
};
|
|
7291
|
+
cookie?: never;
|
|
7292
|
+
};
|
|
7293
|
+
requestBody?: never;
|
|
7294
|
+
responses: {
|
|
7295
|
+
200: {
|
|
7296
|
+
headers: {
|
|
7297
|
+
[name: string]: unknown;
|
|
7298
|
+
};
|
|
7299
|
+
content: {
|
|
7300
|
+
"application/json": components["schemas"]["KybCaseOfficersResponse"];
|
|
7301
|
+
};
|
|
7302
|
+
};
|
|
7303
|
+
401: {
|
|
7304
|
+
headers: {
|
|
7305
|
+
[name: string]: unknown;
|
|
7306
|
+
};
|
|
7307
|
+
content: {
|
|
7308
|
+
"application/json": components["schemas"]["BaxeError"];
|
|
7309
|
+
};
|
|
7310
|
+
};
|
|
7311
|
+
403: {
|
|
7312
|
+
headers: {
|
|
7313
|
+
[name: string]: unknown;
|
|
7314
|
+
};
|
|
7315
|
+
content: {
|
|
7316
|
+
"application/json": components["schemas"]["BaxeError"];
|
|
7317
|
+
};
|
|
7318
|
+
};
|
|
7319
|
+
404: {
|
|
7320
|
+
headers: {
|
|
7321
|
+
[name: string]: unknown;
|
|
7322
|
+
};
|
|
7323
|
+
content: {
|
|
7324
|
+
"application/json": components["schemas"]["BaxeError"];
|
|
7325
|
+
};
|
|
7326
|
+
};
|
|
7327
|
+
500: {
|
|
7328
|
+
headers: {
|
|
7329
|
+
[name: string]: unknown;
|
|
7330
|
+
};
|
|
7331
|
+
content: {
|
|
7332
|
+
"application/json": components["schemas"]["BaxeError"];
|
|
7333
|
+
};
|
|
7334
|
+
};
|
|
7335
|
+
};
|
|
7336
|
+
};
|
|
7337
|
+
addKybUbos: {
|
|
7338
|
+
parameters: {
|
|
7339
|
+
query: {
|
|
7340
|
+
sandbox: boolean;
|
|
7341
|
+
locale?: components["schemas"]["Locale"];
|
|
7342
|
+
};
|
|
7343
|
+
header?: never;
|
|
7344
|
+
path: {
|
|
7345
|
+
/** @description Organization ID */
|
|
7346
|
+
organization_id: string;
|
|
7347
|
+
/** @description The ID of the KYB case */
|
|
7348
|
+
case_id: string;
|
|
7349
|
+
};
|
|
7350
|
+
cookie?: never;
|
|
7351
|
+
};
|
|
7352
|
+
requestBody: {
|
|
7353
|
+
content: {
|
|
7354
|
+
"application/json": components["schemas"]["AddKybPersonsPayload"];
|
|
7355
|
+
};
|
|
7356
|
+
};
|
|
7357
|
+
responses: {
|
|
7358
|
+
200: {
|
|
7359
|
+
headers: {
|
|
7360
|
+
[name: string]: unknown;
|
|
7361
|
+
};
|
|
7362
|
+
content: {
|
|
7363
|
+
"application/json": components["schemas"]["KybCaseOfficersResponse"];
|
|
7364
|
+
};
|
|
7365
|
+
};
|
|
7366
|
+
400: {
|
|
7367
|
+
headers: {
|
|
7368
|
+
[name: string]: unknown;
|
|
7369
|
+
};
|
|
7370
|
+
content: {
|
|
7371
|
+
"application/json": components["schemas"]["BaxeError"];
|
|
7372
|
+
};
|
|
7373
|
+
};
|
|
7374
|
+
401: {
|
|
7375
|
+
headers: {
|
|
7376
|
+
[name: string]: unknown;
|
|
7377
|
+
};
|
|
7378
|
+
content: {
|
|
7379
|
+
"application/json": components["schemas"]["BaxeError"];
|
|
7380
|
+
};
|
|
7381
|
+
};
|
|
7382
|
+
403: {
|
|
7383
|
+
headers: {
|
|
7384
|
+
[name: string]: unknown;
|
|
7385
|
+
};
|
|
7386
|
+
content: {
|
|
7387
|
+
"application/json": components["schemas"]["BaxeError"];
|
|
7388
|
+
};
|
|
7389
|
+
};
|
|
7390
|
+
404: {
|
|
7391
|
+
headers: {
|
|
7392
|
+
[name: string]: unknown;
|
|
7393
|
+
};
|
|
7394
|
+
content: {
|
|
7395
|
+
"application/json": components["schemas"]["BaxeError"];
|
|
7396
|
+
};
|
|
7397
|
+
};
|
|
7398
|
+
500: {
|
|
7399
|
+
headers: {
|
|
7400
|
+
[name: string]: unknown;
|
|
7401
|
+
};
|
|
7402
|
+
content: {
|
|
7403
|
+
"application/json": components["schemas"]["BaxeError"];
|
|
7404
|
+
};
|
|
7405
|
+
};
|
|
7406
|
+
};
|
|
7407
|
+
};
|
|
7408
|
+
removeKybUbo: {
|
|
7409
|
+
parameters: {
|
|
7410
|
+
query: {
|
|
7411
|
+
sandbox: boolean;
|
|
7412
|
+
locale?: components["schemas"]["Locale"];
|
|
7413
|
+
};
|
|
7414
|
+
header?: never;
|
|
7415
|
+
path: {
|
|
7416
|
+
/** @description Organization ID */
|
|
7417
|
+
organization_id: string;
|
|
7418
|
+
/** @description The ID of the KYB case */
|
|
7419
|
+
case_id: string;
|
|
7420
|
+
/** @description Stable id of the UBO to remove */
|
|
7421
|
+
person_id: string;
|
|
7422
|
+
};
|
|
7423
|
+
cookie?: never;
|
|
7424
|
+
};
|
|
7425
|
+
requestBody?: never;
|
|
7426
|
+
responses: {
|
|
7427
|
+
200: {
|
|
7428
|
+
headers: {
|
|
7429
|
+
[name: string]: unknown;
|
|
7430
|
+
};
|
|
7431
|
+
content: {
|
|
7432
|
+
"application/json": components["schemas"]["KybCaseOfficersResponse"];
|
|
7433
|
+
};
|
|
7434
|
+
};
|
|
7435
|
+
400: {
|
|
7436
|
+
headers: {
|
|
7437
|
+
[name: string]: unknown;
|
|
7438
|
+
};
|
|
7439
|
+
content: {
|
|
7440
|
+
"application/json": components["schemas"]["BaxeError"];
|
|
7441
|
+
};
|
|
7442
|
+
};
|
|
7443
|
+
401: {
|
|
7444
|
+
headers: {
|
|
7445
|
+
[name: string]: unknown;
|
|
7446
|
+
};
|
|
7447
|
+
content: {
|
|
7448
|
+
"application/json": components["schemas"]["BaxeError"];
|
|
7449
|
+
};
|
|
7450
|
+
};
|
|
7451
|
+
403: {
|
|
7452
|
+
headers: {
|
|
7453
|
+
[name: string]: unknown;
|
|
7454
|
+
};
|
|
7455
|
+
content: {
|
|
7456
|
+
"application/json": components["schemas"]["BaxeError"];
|
|
7457
|
+
};
|
|
7458
|
+
};
|
|
7459
|
+
404: {
|
|
7460
|
+
headers: {
|
|
7461
|
+
[name: string]: unknown;
|
|
7462
|
+
};
|
|
7463
|
+
content: {
|
|
7464
|
+
"application/json": components["schemas"]["BaxeError"];
|
|
7465
|
+
};
|
|
7466
|
+
};
|
|
7467
|
+
500: {
|
|
7468
|
+
headers: {
|
|
7469
|
+
[name: string]: unknown;
|
|
7470
|
+
};
|
|
7471
|
+
content: {
|
|
7472
|
+
"application/json": components["schemas"]["BaxeError"];
|
|
7473
|
+
};
|
|
7474
|
+
};
|
|
7475
|
+
};
|
|
7476
|
+
};
|
|
7477
|
+
addKybDirectors: {
|
|
7478
|
+
parameters: {
|
|
7479
|
+
query: {
|
|
7480
|
+
sandbox: boolean;
|
|
7481
|
+
locale?: components["schemas"]["Locale"];
|
|
7482
|
+
};
|
|
7483
|
+
header?: never;
|
|
7484
|
+
path: {
|
|
7485
|
+
/** @description Organization ID */
|
|
7486
|
+
organization_id: string;
|
|
7487
|
+
/** @description The ID of the KYB case */
|
|
7488
|
+
case_id: string;
|
|
7489
|
+
};
|
|
7490
|
+
cookie?: never;
|
|
7491
|
+
};
|
|
7492
|
+
requestBody: {
|
|
7493
|
+
content: {
|
|
7494
|
+
"application/json": components["schemas"]["AddKybPersonsPayload"];
|
|
7495
|
+
};
|
|
7496
|
+
};
|
|
7497
|
+
responses: {
|
|
7498
|
+
200: {
|
|
7499
|
+
headers: {
|
|
7500
|
+
[name: string]: unknown;
|
|
7501
|
+
};
|
|
7502
|
+
content: {
|
|
7503
|
+
"application/json": components["schemas"]["KybCaseOfficersResponse"];
|
|
7504
|
+
};
|
|
7505
|
+
};
|
|
7506
|
+
400: {
|
|
7507
|
+
headers: {
|
|
7508
|
+
[name: string]: unknown;
|
|
7509
|
+
};
|
|
7510
|
+
content: {
|
|
7511
|
+
"application/json": components["schemas"]["BaxeError"];
|
|
7512
|
+
};
|
|
7513
|
+
};
|
|
7514
|
+
401: {
|
|
7515
|
+
headers: {
|
|
7516
|
+
[name: string]: unknown;
|
|
7517
|
+
};
|
|
7518
|
+
content: {
|
|
7519
|
+
"application/json": components["schemas"]["BaxeError"];
|
|
7520
|
+
};
|
|
7521
|
+
};
|
|
7522
|
+
403: {
|
|
7523
|
+
headers: {
|
|
7524
|
+
[name: string]: unknown;
|
|
7525
|
+
};
|
|
7526
|
+
content: {
|
|
7527
|
+
"application/json": components["schemas"]["BaxeError"];
|
|
7528
|
+
};
|
|
7529
|
+
};
|
|
7530
|
+
404: {
|
|
7531
|
+
headers: {
|
|
7532
|
+
[name: string]: unknown;
|
|
7533
|
+
};
|
|
7534
|
+
content: {
|
|
7535
|
+
"application/json": components["schemas"]["BaxeError"];
|
|
7536
|
+
};
|
|
7537
|
+
};
|
|
7538
|
+
500: {
|
|
7539
|
+
headers: {
|
|
7540
|
+
[name: string]: unknown;
|
|
7541
|
+
};
|
|
7542
|
+
content: {
|
|
7543
|
+
"application/json": components["schemas"]["BaxeError"];
|
|
7544
|
+
};
|
|
7545
|
+
};
|
|
7546
|
+
};
|
|
7547
|
+
};
|
|
7548
|
+
removeKybDirector: {
|
|
7549
|
+
parameters: {
|
|
7550
|
+
query: {
|
|
7551
|
+
sandbox: boolean;
|
|
7552
|
+
locale?: components["schemas"]["Locale"];
|
|
7553
|
+
};
|
|
7554
|
+
header?: never;
|
|
7555
|
+
path: {
|
|
7556
|
+
/** @description Organization ID */
|
|
7557
|
+
organization_id: string;
|
|
7558
|
+
/** @description The ID of the KYB case */
|
|
7559
|
+
case_id: string;
|
|
7560
|
+
/** @description Stable id of the director to remove */
|
|
7561
|
+
person_id: string;
|
|
7562
|
+
};
|
|
7563
|
+
cookie?: never;
|
|
7564
|
+
};
|
|
7565
|
+
requestBody?: never;
|
|
7566
|
+
responses: {
|
|
7567
|
+
200: {
|
|
7568
|
+
headers: {
|
|
7569
|
+
[name: string]: unknown;
|
|
7570
|
+
};
|
|
7571
|
+
content: {
|
|
7572
|
+
"application/json": components["schemas"]["KybCaseOfficersResponse"];
|
|
7573
|
+
};
|
|
7574
|
+
};
|
|
7575
|
+
400: {
|
|
7576
|
+
headers: {
|
|
7577
|
+
[name: string]: unknown;
|
|
7578
|
+
};
|
|
7579
|
+
content: {
|
|
7580
|
+
"application/json": components["schemas"]["BaxeError"];
|
|
7581
|
+
};
|
|
7582
|
+
};
|
|
7583
|
+
401: {
|
|
6223
7584
|
headers: {
|
|
6224
7585
|
[name: string]: unknown;
|
|
6225
7586
|
};
|
|
6226
7587
|
content: {
|
|
6227
|
-
"application/json": components["schemas"]["
|
|
7588
|
+
"application/json": components["schemas"]["BaxeError"];
|
|
6228
7589
|
};
|
|
6229
7590
|
};
|
|
6230
|
-
|
|
7591
|
+
403: {
|
|
6231
7592
|
headers: {
|
|
6232
7593
|
[name: string]: unknown;
|
|
6233
7594
|
};
|
|
@@ -6235,7 +7596,7 @@ export interface operations {
|
|
|
6235
7596
|
"application/json": components["schemas"]["BaxeError"];
|
|
6236
7597
|
};
|
|
6237
7598
|
};
|
|
6238
|
-
|
|
7599
|
+
404: {
|
|
6239
7600
|
headers: {
|
|
6240
7601
|
[name: string]: unknown;
|
|
6241
7602
|
};
|
|
@@ -6253,7 +7614,7 @@ export interface operations {
|
|
|
6253
7614
|
};
|
|
6254
7615
|
};
|
|
6255
7616
|
};
|
|
6256
|
-
|
|
7617
|
+
approveKybResult: {
|
|
6257
7618
|
parameters: {
|
|
6258
7619
|
query: {
|
|
6259
7620
|
sandbox: boolean;
|
|
@@ -6265,19 +7626,30 @@ export interface operations {
|
|
|
6265
7626
|
organization_id: string;
|
|
6266
7627
|
/** @description KYB result ID */
|
|
6267
7628
|
kyb_result_id: string;
|
|
6268
|
-
/** @description Index of the UBO to send the KYC email to, matching the order in uboDefinitions */
|
|
6269
|
-
recipient_index: number;
|
|
6270
7629
|
};
|
|
6271
7630
|
cookie?: never;
|
|
6272
7631
|
};
|
|
6273
|
-
requestBody
|
|
7632
|
+
requestBody: {
|
|
7633
|
+
content: {
|
|
7634
|
+
"application/json": components["schemas"]["ApproveKybPayload"];
|
|
7635
|
+
};
|
|
7636
|
+
};
|
|
6274
7637
|
responses: {
|
|
7638
|
+
200: {
|
|
7639
|
+
headers: {
|
|
7640
|
+
[name: string]: unknown;
|
|
7641
|
+
};
|
|
7642
|
+
content: {
|
|
7643
|
+
"application/json": components["schemas"]["KybDecisionResponse"];
|
|
7644
|
+
};
|
|
7645
|
+
};
|
|
7646
|
+
/** @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 */
|
|
6275
7647
|
202: {
|
|
6276
7648
|
headers: {
|
|
6277
7649
|
[name: string]: unknown;
|
|
6278
7650
|
};
|
|
6279
7651
|
content: {
|
|
6280
|
-
"application/json": components["schemas"]["
|
|
7652
|
+
"application/json": components["schemas"]["KybDecisionResponse"];
|
|
6281
7653
|
};
|
|
6282
7654
|
};
|
|
6283
7655
|
400: {
|
|
@@ -6312,6 +7684,14 @@ export interface operations {
|
|
|
6312
7684
|
"application/json": components["schemas"]["BaxeError"];
|
|
6313
7685
|
};
|
|
6314
7686
|
};
|
|
7687
|
+
409: {
|
|
7688
|
+
headers: {
|
|
7689
|
+
[name: string]: unknown;
|
|
7690
|
+
};
|
|
7691
|
+
content: {
|
|
7692
|
+
"application/json": components["schemas"]["BaxeError"];
|
|
7693
|
+
};
|
|
7694
|
+
};
|
|
6315
7695
|
500: {
|
|
6316
7696
|
headers: {
|
|
6317
7697
|
[name: string]: unknown;
|
|
@@ -6322,7 +7702,7 @@ export interface operations {
|
|
|
6322
7702
|
};
|
|
6323
7703
|
};
|
|
6324
7704
|
};
|
|
6325
|
-
|
|
7705
|
+
rejectKybResult: {
|
|
6326
7706
|
parameters: {
|
|
6327
7707
|
query: {
|
|
6328
7708
|
sandbox: boolean;
|
|
@@ -6339,7 +7719,7 @@ export interface operations {
|
|
|
6339
7719
|
};
|
|
6340
7720
|
requestBody: {
|
|
6341
7721
|
content: {
|
|
6342
|
-
"application/json": components["schemas"]["
|
|
7722
|
+
"application/json": components["schemas"]["RejectKybPayload"];
|
|
6343
7723
|
};
|
|
6344
7724
|
};
|
|
6345
7725
|
responses: {
|
|
@@ -6348,7 +7728,16 @@ export interface operations {
|
|
|
6348
7728
|
[name: string]: unknown;
|
|
6349
7729
|
};
|
|
6350
7730
|
content: {
|
|
6351
|
-
"application/json": components["schemas"]["
|
|
7731
|
+
"application/json": components["schemas"]["KybDecisionResponse"];
|
|
7732
|
+
};
|
|
7733
|
+
};
|
|
7734
|
+
/** @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 */
|
|
7735
|
+
202: {
|
|
7736
|
+
headers: {
|
|
7737
|
+
[name: string]: unknown;
|
|
7738
|
+
};
|
|
7739
|
+
content: {
|
|
7740
|
+
"application/json": components["schemas"]["KybDecisionResponse"];
|
|
6352
7741
|
};
|
|
6353
7742
|
};
|
|
6354
7743
|
400: {
|
|
@@ -6383,6 +7772,14 @@ export interface operations {
|
|
|
6383
7772
|
"application/json": components["schemas"]["BaxeError"];
|
|
6384
7773
|
};
|
|
6385
7774
|
};
|
|
7775
|
+
409: {
|
|
7776
|
+
headers: {
|
|
7777
|
+
[name: string]: unknown;
|
|
7778
|
+
};
|
|
7779
|
+
content: {
|
|
7780
|
+
"application/json": components["schemas"]["BaxeError"];
|
|
7781
|
+
};
|
|
7782
|
+
};
|
|
6386
7783
|
500: {
|
|
6387
7784
|
headers: {
|
|
6388
7785
|
[name: string]: unknown;
|
|
@@ -6393,7 +7790,7 @@ export interface operations {
|
|
|
6393
7790
|
};
|
|
6394
7791
|
};
|
|
6395
7792
|
};
|
|
6396
|
-
|
|
7793
|
+
requestKybDocument: {
|
|
6397
7794
|
parameters: {
|
|
6398
7795
|
query: {
|
|
6399
7796
|
sandbox: boolean;
|
|
@@ -6403,21 +7800,23 @@ export interface operations {
|
|
|
6403
7800
|
path: {
|
|
6404
7801
|
/** @description Organization ID */
|
|
6405
7802
|
organization_id: string;
|
|
6406
|
-
/** @description KYB
|
|
6407
|
-
|
|
6408
|
-
/** @description Stable id of the UBO to remove */
|
|
6409
|
-
person_id: string;
|
|
7803
|
+
/** @description The ID of the KYB case */
|
|
7804
|
+
case_id: string;
|
|
6410
7805
|
};
|
|
6411
7806
|
cookie?: never;
|
|
6412
7807
|
};
|
|
6413
|
-
requestBody
|
|
7808
|
+
requestBody: {
|
|
7809
|
+
content: {
|
|
7810
|
+
"application/json": components["schemas"]["RequestOnDemandDocumentPayload"];
|
|
7811
|
+
};
|
|
7812
|
+
};
|
|
6414
7813
|
responses: {
|
|
6415
7814
|
200: {
|
|
6416
7815
|
headers: {
|
|
6417
7816
|
[name: string]: unknown;
|
|
6418
7817
|
};
|
|
6419
7818
|
content: {
|
|
6420
|
-
"application/json": components["schemas"]["
|
|
7819
|
+
"application/json": components["schemas"]["KybDocumentRequest"];
|
|
6421
7820
|
};
|
|
6422
7821
|
};
|
|
6423
7822
|
400: {
|
|
@@ -6462,7 +7861,7 @@ export interface operations {
|
|
|
6462
7861
|
};
|
|
6463
7862
|
};
|
|
6464
7863
|
};
|
|
6465
|
-
|
|
7864
|
+
getKybCase: {
|
|
6466
7865
|
parameters: {
|
|
6467
7866
|
query: {
|
|
6468
7867
|
sandbox: boolean;
|
|
@@ -6472,31 +7871,19 @@ export interface operations {
|
|
|
6472
7871
|
path: {
|
|
6473
7872
|
/** @description Organization ID */
|
|
6474
7873
|
organization_id: string;
|
|
6475
|
-
/** @description KYB
|
|
6476
|
-
|
|
7874
|
+
/** @description The ID of the KYB case */
|
|
7875
|
+
case_id: string;
|
|
6477
7876
|
};
|
|
6478
7877
|
cookie?: never;
|
|
6479
7878
|
};
|
|
6480
|
-
requestBody
|
|
6481
|
-
content: {
|
|
6482
|
-
"application/json": components["schemas"]["AddKybPersonsPayload"];
|
|
6483
|
-
};
|
|
6484
|
-
};
|
|
7879
|
+
requestBody?: never;
|
|
6485
7880
|
responses: {
|
|
6486
7881
|
200: {
|
|
6487
7882
|
headers: {
|
|
6488
7883
|
[name: string]: unknown;
|
|
6489
7884
|
};
|
|
6490
7885
|
content: {
|
|
6491
|
-
"application/json": components["schemas"]["
|
|
6492
|
-
};
|
|
6493
|
-
};
|
|
6494
|
-
400: {
|
|
6495
|
-
headers: {
|
|
6496
|
-
[name: string]: unknown;
|
|
6497
|
-
};
|
|
6498
|
-
content: {
|
|
6499
|
-
"application/json": components["schemas"]["BaxeError"];
|
|
7886
|
+
"application/json": components["schemas"]["CaseDetailResponse"];
|
|
6500
7887
|
};
|
|
6501
7888
|
};
|
|
6502
7889
|
401: {
|
|
@@ -6533,40 +7920,41 @@ export interface operations {
|
|
|
6533
7920
|
};
|
|
6534
7921
|
};
|
|
6535
7922
|
};
|
|
6536
|
-
|
|
7923
|
+
getKybCaseReport: {
|
|
6537
7924
|
parameters: {
|
|
6538
7925
|
query: {
|
|
6539
7926
|
sandbox: boolean;
|
|
6540
7927
|
locale?: components["schemas"]["Locale"];
|
|
6541
7928
|
};
|
|
6542
|
-
header?:
|
|
7929
|
+
header?: {
|
|
7930
|
+
/** @description The `ETag` of a report already held */
|
|
7931
|
+
"If-None-Match"?: string | null;
|
|
7932
|
+
};
|
|
6543
7933
|
path: {
|
|
6544
7934
|
/** @description Organization ID */
|
|
6545
7935
|
organization_id: string;
|
|
6546
|
-
/** @description KYB
|
|
6547
|
-
|
|
6548
|
-
/** @description Stable id of the director to remove */
|
|
6549
|
-
person_id: string;
|
|
7936
|
+
/** @description The ID of the KYB case */
|
|
7937
|
+
case_id: string;
|
|
6550
7938
|
};
|
|
6551
7939
|
cookie?: never;
|
|
6552
7940
|
};
|
|
6553
7941
|
requestBody?: never;
|
|
6554
7942
|
responses: {
|
|
7943
|
+
/** @description The report PDF */
|
|
6555
7944
|
200: {
|
|
6556
7945
|
headers: {
|
|
6557
7946
|
[name: string]: unknown;
|
|
6558
7947
|
};
|
|
6559
7948
|
content: {
|
|
6560
|
-
"application/
|
|
7949
|
+
"application/pdf": components["schemas"]["KybCaseReportPdf"];
|
|
6561
7950
|
};
|
|
6562
7951
|
};
|
|
6563
|
-
|
|
7952
|
+
/** @description The report named by `If-None-Match` is current */
|
|
7953
|
+
304: {
|
|
6564
7954
|
headers: {
|
|
6565
7955
|
[name: string]: unknown;
|
|
6566
7956
|
};
|
|
6567
|
-
content
|
|
6568
|
-
"application/json": components["schemas"]["BaxeError"];
|
|
6569
|
-
};
|
|
7957
|
+
content?: never;
|
|
6570
7958
|
};
|
|
6571
7959
|
401: {
|
|
6572
7960
|
headers: {
|
|
@@ -6602,7 +7990,7 @@ export interface operations {
|
|
|
6602
7990
|
};
|
|
6603
7991
|
};
|
|
6604
7992
|
};
|
|
6605
|
-
|
|
7993
|
+
decideKybCase: {
|
|
6606
7994
|
parameters: {
|
|
6607
7995
|
query: {
|
|
6608
7996
|
sandbox: boolean;
|
|
@@ -6612,23 +8000,33 @@ export interface operations {
|
|
|
6612
8000
|
path: {
|
|
6613
8001
|
/** @description Organization ID */
|
|
6614
8002
|
organization_id: string;
|
|
6615
|
-
/** @description KYB
|
|
6616
|
-
|
|
8003
|
+
/** @description The ID of the KYB case */
|
|
8004
|
+
case_id: string;
|
|
6617
8005
|
};
|
|
6618
8006
|
cookie?: never;
|
|
6619
8007
|
};
|
|
6620
8008
|
requestBody: {
|
|
6621
8009
|
content: {
|
|
6622
|
-
"application/json": components["schemas"]["
|
|
8010
|
+
"application/json": components["schemas"]["DecideCasePayload"];
|
|
6623
8011
|
};
|
|
6624
8012
|
};
|
|
6625
8013
|
responses: {
|
|
8014
|
+
/** @description The case is decided */
|
|
6626
8015
|
200: {
|
|
6627
8016
|
headers: {
|
|
6628
8017
|
[name: string]: unknown;
|
|
6629
8018
|
};
|
|
6630
8019
|
content: {
|
|
6631
|
-
"application/json": components["schemas"]["
|
|
8020
|
+
"application/json": components["schemas"]["DecidedCaseResponse"];
|
|
8021
|
+
};
|
|
8022
|
+
};
|
|
8023
|
+
/** @description A second signature is needed; a proposal was recorded */
|
|
8024
|
+
202: {
|
|
8025
|
+
headers: {
|
|
8026
|
+
[name: string]: unknown;
|
|
8027
|
+
};
|
|
8028
|
+
content: {
|
|
8029
|
+
"application/json": components["schemas"]["DecidedCaseResponse"];
|
|
6632
8030
|
};
|
|
6633
8031
|
};
|
|
6634
8032
|
400: {
|
|
@@ -6663,6 +8061,14 @@ export interface operations {
|
|
|
6663
8061
|
"application/json": components["schemas"]["BaxeError"];
|
|
6664
8062
|
};
|
|
6665
8063
|
};
|
|
8064
|
+
409: {
|
|
8065
|
+
headers: {
|
|
8066
|
+
[name: string]: unknown;
|
|
8067
|
+
};
|
|
8068
|
+
content: {
|
|
8069
|
+
"application/json": components["schemas"]["BaxeError"];
|
|
8070
|
+
};
|
|
8071
|
+
};
|
|
6666
8072
|
500: {
|
|
6667
8073
|
headers: {
|
|
6668
8074
|
[name: string]: unknown;
|
|
@@ -7653,6 +9059,12 @@ export interface operations {
|
|
|
7653
9059
|
/** @description Page size (default 50, max 200). */
|
|
7654
9060
|
take?: number;
|
|
7655
9061
|
skip?: number;
|
|
9062
|
+
/** @description Only the checks run on this KYB anchor's verification request. */
|
|
9063
|
+
verificationRequestId?: string;
|
|
9064
|
+
/** @description Only the checks run on this flow result's verification requests: the checks of its KYB
|
|
9065
|
+
* result. A KYB result of a split flow names no verification request of its own, so this is
|
|
9066
|
+
* how the dashboard finds them. Ignored when `verificationRequestId` is given. */
|
|
9067
|
+
flowResultId?: string;
|
|
7656
9068
|
sandbox: boolean;
|
|
7657
9069
|
locale?: components["schemas"]["Locale"];
|
|
7658
9070
|
};
|
|
@@ -7908,4 +9320,144 @@ export interface operations {
|
|
|
7908
9320
|
};
|
|
7909
9321
|
};
|
|
7910
9322
|
};
|
|
9323
|
+
sendUboKycReminderDeprecated: {
|
|
9324
|
+
parameters: {
|
|
9325
|
+
query: {
|
|
9326
|
+
sandbox: boolean;
|
|
9327
|
+
locale?: components["schemas"]["Locale"];
|
|
9328
|
+
};
|
|
9329
|
+
header?: never;
|
|
9330
|
+
path: {
|
|
9331
|
+
/** @description Organization ID */
|
|
9332
|
+
organization_id: string;
|
|
9333
|
+
/** @description The ID of the KYB result, which is also the ID of its case */
|
|
9334
|
+
kyb_result_id: string;
|
|
9335
|
+
/** @description Index of the UBO to send the KYC email to, matching the order in uboDefinitions */
|
|
9336
|
+
recipient_index: number;
|
|
9337
|
+
};
|
|
9338
|
+
cookie?: never;
|
|
9339
|
+
};
|
|
9340
|
+
requestBody?: never;
|
|
9341
|
+
responses: {
|
|
9342
|
+
202: {
|
|
9343
|
+
headers: {
|
|
9344
|
+
[name: string]: unknown;
|
|
9345
|
+
};
|
|
9346
|
+
content: {
|
|
9347
|
+
"application/json": components["schemas"]["TriggerReminderResponse"];
|
|
9348
|
+
};
|
|
9349
|
+
};
|
|
9350
|
+
400: {
|
|
9351
|
+
headers: {
|
|
9352
|
+
[name: string]: unknown;
|
|
9353
|
+
};
|
|
9354
|
+
content: {
|
|
9355
|
+
"application/json": components["schemas"]["BaxeError"];
|
|
9356
|
+
};
|
|
9357
|
+
};
|
|
9358
|
+
401: {
|
|
9359
|
+
headers: {
|
|
9360
|
+
[name: string]: unknown;
|
|
9361
|
+
};
|
|
9362
|
+
content: {
|
|
9363
|
+
"application/json": components["schemas"]["BaxeError"];
|
|
9364
|
+
};
|
|
9365
|
+
};
|
|
9366
|
+
403: {
|
|
9367
|
+
headers: {
|
|
9368
|
+
[name: string]: unknown;
|
|
9369
|
+
};
|
|
9370
|
+
content: {
|
|
9371
|
+
"application/json": components["schemas"]["BaxeError"];
|
|
9372
|
+
};
|
|
9373
|
+
};
|
|
9374
|
+
404: {
|
|
9375
|
+
headers: {
|
|
9376
|
+
[name: string]: unknown;
|
|
9377
|
+
};
|
|
9378
|
+
content: {
|
|
9379
|
+
"application/json": components["schemas"]["BaxeError"];
|
|
9380
|
+
};
|
|
9381
|
+
};
|
|
9382
|
+
500: {
|
|
9383
|
+
headers: {
|
|
9384
|
+
[name: string]: unknown;
|
|
9385
|
+
};
|
|
9386
|
+
content: {
|
|
9387
|
+
"application/json": components["schemas"]["BaxeError"];
|
|
9388
|
+
};
|
|
9389
|
+
};
|
|
9390
|
+
};
|
|
9391
|
+
};
|
|
9392
|
+
requestKybDocumentDeprecated: {
|
|
9393
|
+
parameters: {
|
|
9394
|
+
query: {
|
|
9395
|
+
sandbox: boolean;
|
|
9396
|
+
locale?: components["schemas"]["Locale"];
|
|
9397
|
+
};
|
|
9398
|
+
header?: never;
|
|
9399
|
+
path: {
|
|
9400
|
+
/** @description Organization ID */
|
|
9401
|
+
organization_id: string;
|
|
9402
|
+
/** @description The ID of the KYB result, which is also the ID of its case */
|
|
9403
|
+
kyb_result_id: string;
|
|
9404
|
+
};
|
|
9405
|
+
cookie?: never;
|
|
9406
|
+
};
|
|
9407
|
+
requestBody: {
|
|
9408
|
+
content: {
|
|
9409
|
+
"application/json": components["schemas"]["RequestOnDemandDocumentPayload"];
|
|
9410
|
+
};
|
|
9411
|
+
};
|
|
9412
|
+
responses: {
|
|
9413
|
+
200: {
|
|
9414
|
+
headers: {
|
|
9415
|
+
[name: string]: unknown;
|
|
9416
|
+
};
|
|
9417
|
+
content: {
|
|
9418
|
+
"application/json": components["schemas"]["KybDocumentRequest"];
|
|
9419
|
+
};
|
|
9420
|
+
};
|
|
9421
|
+
400: {
|
|
9422
|
+
headers: {
|
|
9423
|
+
[name: string]: unknown;
|
|
9424
|
+
};
|
|
9425
|
+
content: {
|
|
9426
|
+
"application/json": components["schemas"]["BaxeError"];
|
|
9427
|
+
};
|
|
9428
|
+
};
|
|
9429
|
+
401: {
|
|
9430
|
+
headers: {
|
|
9431
|
+
[name: string]: unknown;
|
|
9432
|
+
};
|
|
9433
|
+
content: {
|
|
9434
|
+
"application/json": components["schemas"]["BaxeError"];
|
|
9435
|
+
};
|
|
9436
|
+
};
|
|
9437
|
+
403: {
|
|
9438
|
+
headers: {
|
|
9439
|
+
[name: string]: unknown;
|
|
9440
|
+
};
|
|
9441
|
+
content: {
|
|
9442
|
+
"application/json": components["schemas"]["BaxeError"];
|
|
9443
|
+
};
|
|
9444
|
+
};
|
|
9445
|
+
404: {
|
|
9446
|
+
headers: {
|
|
9447
|
+
[name: string]: unknown;
|
|
9448
|
+
};
|
|
9449
|
+
content: {
|
|
9450
|
+
"application/json": components["schemas"]["BaxeError"];
|
|
9451
|
+
};
|
|
9452
|
+
};
|
|
9453
|
+
500: {
|
|
9454
|
+
headers: {
|
|
9455
|
+
[name: string]: unknown;
|
|
9456
|
+
};
|
|
9457
|
+
content: {
|
|
9458
|
+
"application/json": components["schemas"]["BaxeError"];
|
|
9459
|
+
};
|
|
9460
|
+
};
|
|
9461
|
+
};
|
|
9462
|
+
};
|
|
7911
9463
|
}
|