@zyphe-sdk/core 0.1.17 → 0.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +33 -15
- package/dist/index.d.ts +3042 -301
- package/dist/index.js +283 -57
- package/dist/index.js.map +1 -1
- package/dist/openapi.d.ts +1571 -76
- package/dist/openapi.json +4491 -638
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,30 +1,360 @@
|
|
|
1
|
-
import * as openapi_fetch from 'openapi-fetch';
|
|
2
1
|
import { BinaryWriter, BinaryReader } from '@bufbuild/protobuf/wire';
|
|
2
|
+
import * as openapi_fetch from 'openapi-fetch';
|
|
3
3
|
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
4
|
+
interface paths {
|
|
5
|
+
"/flows/{slug}/fullflow": {
|
|
6
|
+
parameters: {
|
|
7
|
+
query?: never;
|
|
8
|
+
header?: never;
|
|
9
|
+
path?: never;
|
|
10
|
+
cookie?: never;
|
|
11
|
+
};
|
|
12
|
+
get: operations["get_full_flow_details"];
|
|
13
|
+
put?: never;
|
|
14
|
+
post?: never;
|
|
15
|
+
delete?: never;
|
|
16
|
+
options?: never;
|
|
17
|
+
head?: never;
|
|
18
|
+
patch?: never;
|
|
19
|
+
trace?: never;
|
|
14
20
|
};
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
21
|
+
"/flow/{flow_id}/vr/{verification_request_id}/get": {
|
|
22
|
+
parameters: {
|
|
23
|
+
query?: never;
|
|
24
|
+
header?: never;
|
|
25
|
+
path?: never;
|
|
26
|
+
cookie?: never;
|
|
27
|
+
};
|
|
28
|
+
get: operations["get_verification_request"];
|
|
29
|
+
put?: never;
|
|
30
|
+
post?: never;
|
|
31
|
+
delete?: never;
|
|
32
|
+
options?: never;
|
|
33
|
+
head?: never;
|
|
34
|
+
patch?: never;
|
|
35
|
+
trace?: never;
|
|
18
36
|
};
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
37
|
+
"/sdk/flow/{flow_id}/vr/create": {
|
|
38
|
+
parameters: {
|
|
39
|
+
query?: never;
|
|
40
|
+
header?: never;
|
|
41
|
+
path?: never;
|
|
42
|
+
cookie?: never;
|
|
43
|
+
};
|
|
44
|
+
get?: never;
|
|
45
|
+
put?: never;
|
|
46
|
+
post: operations["sdk_create_verification_request"];
|
|
47
|
+
delete?: never;
|
|
48
|
+
options?: never;
|
|
49
|
+
head?: never;
|
|
50
|
+
patch?: never;
|
|
51
|
+
trace?: never;
|
|
22
52
|
};
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
|
|
53
|
+
"/sdk/flow/{flow_id}/vr/next-step": {
|
|
54
|
+
parameters: {
|
|
55
|
+
query?: never;
|
|
56
|
+
header?: never;
|
|
57
|
+
path?: never;
|
|
58
|
+
cookie?: never;
|
|
59
|
+
};
|
|
60
|
+
get: operations["sdk_get_next_step"];
|
|
61
|
+
put?: never;
|
|
62
|
+
post?: never;
|
|
63
|
+
delete?: never;
|
|
64
|
+
options?: never;
|
|
65
|
+
head?: never;
|
|
66
|
+
patch?: never;
|
|
67
|
+
trace?: never;
|
|
68
|
+
};
|
|
69
|
+
"/sdk/flow/{flow_id}/vr/{verification_request_id}/dv/process-dv-document": {
|
|
70
|
+
parameters: {
|
|
71
|
+
query?: never;
|
|
72
|
+
header?: never;
|
|
73
|
+
path?: never;
|
|
74
|
+
cookie?: never;
|
|
75
|
+
};
|
|
76
|
+
get?: never;
|
|
77
|
+
put?: never;
|
|
78
|
+
/** Submits identity document images for document verification. Call this after `next-step` returns a document verification step. */
|
|
79
|
+
post: operations["sdk_process_dv_document"];
|
|
80
|
+
delete?: never;
|
|
81
|
+
options?: never;
|
|
82
|
+
head?: never;
|
|
83
|
+
patch?: never;
|
|
84
|
+
trace?: never;
|
|
85
|
+
};
|
|
86
|
+
"/sdk/flow/{flow_id}/vr/{verification_request_id}/dv/liveness-challenge": {
|
|
87
|
+
parameters: {
|
|
88
|
+
query?: never;
|
|
89
|
+
header?: never;
|
|
90
|
+
path?: never;
|
|
91
|
+
cookie?: never;
|
|
92
|
+
};
|
|
93
|
+
/** Retrieves the liveness challenge configuration for the current verification request. Use the returned data to present the liveness capture UI to the user. */
|
|
94
|
+
get: operations["sdk_get_liveness_challenge"];
|
|
95
|
+
put?: never;
|
|
96
|
+
post?: never;
|
|
97
|
+
delete?: never;
|
|
98
|
+
options?: never;
|
|
99
|
+
head?: never;
|
|
100
|
+
patch?: never;
|
|
101
|
+
trace?: never;
|
|
102
|
+
};
|
|
103
|
+
"/sdk/flow/{flow_id}/vr/{verification_request_id}/dv/process-dv-liveness": {
|
|
104
|
+
parameters: {
|
|
105
|
+
query?: never;
|
|
106
|
+
header?: never;
|
|
107
|
+
path?: never;
|
|
108
|
+
cookie?: never;
|
|
109
|
+
};
|
|
110
|
+
get?: never;
|
|
111
|
+
put?: never;
|
|
112
|
+
/** Submits liveness capture data (selfie or video) for processing. Call this after completing the liveness challenge from `liveness-challenge`. */
|
|
113
|
+
post: operations["sdk_process_dv_liveness"];
|
|
114
|
+
delete?: never;
|
|
115
|
+
options?: never;
|
|
116
|
+
head?: never;
|
|
117
|
+
patch?: never;
|
|
118
|
+
trace?: never;
|
|
119
|
+
};
|
|
120
|
+
"/sdk/flow/{flow_id}/vr/{verification_request_id}/dv/process-dv-selection": {
|
|
121
|
+
parameters: {
|
|
122
|
+
query?: never;
|
|
123
|
+
header?: never;
|
|
124
|
+
path?: never;
|
|
125
|
+
cookie?: never;
|
|
126
|
+
};
|
|
127
|
+
get?: never;
|
|
128
|
+
put?: never;
|
|
129
|
+
/**
|
|
130
|
+
* Submits the user's document selection (country and document type) to complete the document selection step.
|
|
131
|
+
* @description Call this after `next-step` returns a `document-selection` step, then call `next-step` again to proceed.
|
|
132
|
+
*/
|
|
133
|
+
post: operations["sdk_process_dv_selection"];
|
|
134
|
+
delete?: never;
|
|
135
|
+
options?: never;
|
|
136
|
+
head?: never;
|
|
137
|
+
patch?: never;
|
|
138
|
+
trace?: never;
|
|
139
|
+
};
|
|
140
|
+
"/flow/{flow_id}/vr/completed": {
|
|
141
|
+
parameters: {
|
|
142
|
+
query?: never;
|
|
143
|
+
header?: never;
|
|
144
|
+
path?: never;
|
|
145
|
+
cookie?: never;
|
|
146
|
+
};
|
|
147
|
+
get: operations["get_completed_verification_requests"];
|
|
148
|
+
put?: never;
|
|
149
|
+
post?: never;
|
|
150
|
+
delete?: never;
|
|
151
|
+
options?: never;
|
|
152
|
+
head?: never;
|
|
153
|
+
patch?: never;
|
|
154
|
+
trace?: never;
|
|
155
|
+
};
|
|
156
|
+
"/sdk/organizations/{organization_id}/flow-results/flow/{flow_slug}/list": {
|
|
157
|
+
parameters: {
|
|
158
|
+
query?: never;
|
|
159
|
+
header?: never;
|
|
160
|
+
path?: never;
|
|
161
|
+
cookie?: never;
|
|
162
|
+
};
|
|
163
|
+
get: operations["sdk_list_flow_results"];
|
|
164
|
+
put?: never;
|
|
165
|
+
post?: never;
|
|
166
|
+
delete?: never;
|
|
167
|
+
options?: never;
|
|
168
|
+
head?: never;
|
|
169
|
+
patch?: never;
|
|
170
|
+
trace?: never;
|
|
171
|
+
};
|
|
172
|
+
"/sdk/organizations/{organization_id}/flow-results/{flow_result_id}/flow/{flow_slug}/details": {
|
|
173
|
+
parameters: {
|
|
174
|
+
query?: never;
|
|
175
|
+
header?: never;
|
|
176
|
+
path?: never;
|
|
177
|
+
cookie?: never;
|
|
178
|
+
};
|
|
179
|
+
get: operations["get_sdk_flow_result_details"];
|
|
180
|
+
put?: never;
|
|
181
|
+
post?: never;
|
|
182
|
+
delete?: never;
|
|
183
|
+
options?: never;
|
|
184
|
+
head?: never;
|
|
185
|
+
patch?: never;
|
|
186
|
+
trace?: never;
|
|
187
|
+
};
|
|
188
|
+
"/sdk/organizations/{organization_id}/flow-results/{flow_result_id}/flow/{flow_slug}/dv/{dv_result_id}/details": {
|
|
189
|
+
parameters: {
|
|
190
|
+
query?: never;
|
|
191
|
+
header?: never;
|
|
192
|
+
path?: never;
|
|
193
|
+
cookie?: never;
|
|
194
|
+
};
|
|
195
|
+
get: operations["get_sdk_dv_result_details"];
|
|
196
|
+
put?: never;
|
|
197
|
+
post?: never;
|
|
198
|
+
delete?: never;
|
|
199
|
+
options?: never;
|
|
200
|
+
head?: never;
|
|
201
|
+
patch?: never;
|
|
202
|
+
trace?: never;
|
|
203
|
+
};
|
|
204
|
+
"/sdk/organizations/{organization_id}/flow-results/{flow_result_id}/flow/{flow_slug}/poa/{poa_result_id}/details": {
|
|
205
|
+
parameters: {
|
|
206
|
+
query?: never;
|
|
207
|
+
header?: never;
|
|
208
|
+
path?: never;
|
|
209
|
+
cookie?: never;
|
|
210
|
+
};
|
|
211
|
+
get: operations["get_sdk_poa_result_details"];
|
|
212
|
+
put?: never;
|
|
213
|
+
post?: never;
|
|
214
|
+
delete?: never;
|
|
215
|
+
options?: never;
|
|
216
|
+
head?: never;
|
|
217
|
+
patch?: never;
|
|
218
|
+
trace?: never;
|
|
219
|
+
};
|
|
220
|
+
"/sdk/organizations/{organization_id}/flow-results/{flow_result_id}/flow/{flow_slug}/wallet/{wallet_result_id}/details": {
|
|
221
|
+
parameters: {
|
|
222
|
+
query?: never;
|
|
223
|
+
header?: never;
|
|
224
|
+
path?: never;
|
|
225
|
+
cookie?: never;
|
|
226
|
+
};
|
|
227
|
+
get: operations["get_sdk_wallet_result_details"];
|
|
228
|
+
put?: never;
|
|
229
|
+
post?: never;
|
|
230
|
+
delete?: never;
|
|
231
|
+
options?: never;
|
|
232
|
+
head?: never;
|
|
233
|
+
patch?: never;
|
|
234
|
+
trace?: never;
|
|
235
|
+
};
|
|
236
|
+
"/sdk/organizations/{organization_id}/flow-results/{flow_result_id}/flow/{flow_slug}/phone/{phone_result_id}/details": {
|
|
237
|
+
parameters: {
|
|
238
|
+
query?: never;
|
|
239
|
+
header?: never;
|
|
240
|
+
path?: never;
|
|
241
|
+
cookie?: never;
|
|
242
|
+
};
|
|
243
|
+
get: operations["get_sdk_phone_result_details"];
|
|
244
|
+
put?: never;
|
|
245
|
+
post?: never;
|
|
246
|
+
delete?: never;
|
|
247
|
+
options?: never;
|
|
248
|
+
head?: never;
|
|
249
|
+
patch?: never;
|
|
250
|
+
trace?: never;
|
|
251
|
+
};
|
|
252
|
+
"/sdk/organizations/{organization_id}/flow-results/{flow_result_id}/flow/{flow_slug}/form/{form_result_id}/details": {
|
|
253
|
+
parameters: {
|
|
254
|
+
query?: never;
|
|
255
|
+
header?: never;
|
|
256
|
+
path?: never;
|
|
257
|
+
cookie?: never;
|
|
258
|
+
};
|
|
259
|
+
get: operations["get_sdk_form_result_details"];
|
|
260
|
+
put?: never;
|
|
261
|
+
post?: never;
|
|
262
|
+
delete?: never;
|
|
263
|
+
options?: never;
|
|
264
|
+
head?: never;
|
|
265
|
+
patch?: never;
|
|
266
|
+
trace?: never;
|
|
267
|
+
};
|
|
268
|
+
"/sdk/organizations/{organization_id}/flow-results/{flow_result_id}/details": {
|
|
269
|
+
parameters: {
|
|
270
|
+
query?: never;
|
|
271
|
+
header?: never;
|
|
272
|
+
path?: never;
|
|
273
|
+
cookie?: never;
|
|
274
|
+
};
|
|
275
|
+
get: operations["get_sdk_flow_result_details_deprecated"];
|
|
276
|
+
put?: never;
|
|
277
|
+
post?: never;
|
|
278
|
+
delete?: never;
|
|
279
|
+
options?: never;
|
|
280
|
+
head?: never;
|
|
281
|
+
patch?: never;
|
|
282
|
+
trace?: never;
|
|
283
|
+
};
|
|
284
|
+
"/sdk/organizations/{organization_id}/flow-results/{flow_result_id}/dv/{dv_result_id}/details": {
|
|
285
|
+
parameters: {
|
|
286
|
+
query?: never;
|
|
287
|
+
header?: never;
|
|
288
|
+
path?: never;
|
|
289
|
+
cookie?: never;
|
|
290
|
+
};
|
|
291
|
+
get: operations["get_sdk_dv_result_details_deprecated"];
|
|
292
|
+
put?: never;
|
|
293
|
+
post?: never;
|
|
294
|
+
delete?: never;
|
|
295
|
+
options?: never;
|
|
296
|
+
head?: never;
|
|
297
|
+
patch?: never;
|
|
298
|
+
trace?: never;
|
|
299
|
+
};
|
|
300
|
+
"/sdk/organizations/{organization_id}/flow-results/{flow_result_id}/poa/{poa_result_id}/details": {
|
|
301
|
+
parameters: {
|
|
302
|
+
query?: never;
|
|
303
|
+
header?: never;
|
|
304
|
+
path?: never;
|
|
305
|
+
cookie?: never;
|
|
306
|
+
};
|
|
307
|
+
get: operations["get_sdk_poa_result_details_deprecated"];
|
|
308
|
+
put?: never;
|
|
309
|
+
post?: never;
|
|
310
|
+
delete?: never;
|
|
311
|
+
options?: never;
|
|
312
|
+
head?: never;
|
|
313
|
+
patch?: never;
|
|
314
|
+
trace?: never;
|
|
315
|
+
};
|
|
316
|
+
}
|
|
26
317
|
interface components {
|
|
27
318
|
schemas: {
|
|
319
|
+
/** @description Configuration for an action node.
|
|
320
|
+
*
|
|
321
|
+
* Each variant represents a different action type with its specific configuration. */
|
|
322
|
+
ActionConfig: {
|
|
323
|
+
/** @enum {string} */
|
|
324
|
+
actionType: "setStatus";
|
|
325
|
+
value: components["schemas"]["ActionStatus"];
|
|
326
|
+
} | {
|
|
327
|
+
/** @enum {string} */
|
|
328
|
+
actionType: "flowRouter";
|
|
329
|
+
/**
|
|
330
|
+
* Format: uuid
|
|
331
|
+
* @description The target flow ID to route to.
|
|
332
|
+
*/
|
|
333
|
+
target_flow_id: string;
|
|
334
|
+
};
|
|
335
|
+
/**
|
|
336
|
+
* @description Status values that can be set via workflow actions.
|
|
337
|
+
*
|
|
338
|
+
* This enum represents the possible status values that can be set
|
|
339
|
+
* via the SetStatus action in workflow nodes.
|
|
340
|
+
* @enum {string}
|
|
341
|
+
*/
|
|
342
|
+
ActionStatus: "REQUIRES_MANUAL_REVIEW";
|
|
343
|
+
/** @description Action step output for tracking action node execution in workflow. */
|
|
344
|
+
ActionStepOutput: {
|
|
345
|
+
executed: boolean;
|
|
346
|
+
/** @description Optional redirect information for flow router actions */
|
|
347
|
+
redirectUrl?: string | null;
|
|
348
|
+
/**
|
|
349
|
+
* Format: uuid
|
|
350
|
+
* @description Optional target flow ID for flow router actions
|
|
351
|
+
*/
|
|
352
|
+
targetFlowId?: string | null;
|
|
353
|
+
/** Format: date-time */
|
|
354
|
+
timestamp: string;
|
|
355
|
+
/** @description Optional token for the target flow */
|
|
356
|
+
token?: string | null;
|
|
357
|
+
};
|
|
28
358
|
AddressData: {
|
|
29
359
|
addressLine?: string | null;
|
|
30
360
|
building: string;
|
|
@@ -81,8 +411,6 @@ interface components {
|
|
|
81
411
|
riskScore: components["schemas"]["RiskScore"];
|
|
82
412
|
riskTopics: string[];
|
|
83
413
|
};
|
|
84
|
-
/** @enum {string} */
|
|
85
|
-
AmlModerationStatus: "approved" | "rejected" | "escalated";
|
|
86
414
|
AmlOccupancy: {
|
|
87
415
|
endDate?: components["schemas"]["FieldWithControl"];
|
|
88
416
|
post?: components["schemas"]["AmlPosition"][];
|
|
@@ -108,12 +436,15 @@ interface components {
|
|
|
108
436
|
summary?: components["schemas"]["FieldWithControl"];
|
|
109
437
|
topics?: components["schemas"]["FieldWithControl"];
|
|
110
438
|
};
|
|
439
|
+
AmlQueryMetadata: {
|
|
440
|
+
dateOfBirth: string;
|
|
441
|
+
firstName: string;
|
|
442
|
+
lastName: string;
|
|
443
|
+
};
|
|
111
444
|
AmlResult: {
|
|
112
445
|
/** Format: date-time */
|
|
113
446
|
createdAt: string;
|
|
114
|
-
data
|
|
115
|
-
[key: string]: unknown;
|
|
116
|
-
};
|
|
447
|
+
data?: components["schemas"]["AmlRiskResult"] | null;
|
|
117
448
|
/** Format: uuid */
|
|
118
449
|
id: string;
|
|
119
450
|
pep: boolean;
|
|
@@ -127,6 +458,7 @@ interface components {
|
|
|
127
458
|
/** Format: date-time */
|
|
128
459
|
checkedAt: string;
|
|
129
460
|
controls: components["schemas"]["ResultControlOperation"][];
|
|
461
|
+
query?: components["schemas"]["AmlQueryMetadata"] | null;
|
|
130
462
|
summary: components["schemas"]["AmlCheckSummary"];
|
|
131
463
|
};
|
|
132
464
|
AmlRiskResult: {
|
|
@@ -160,17 +492,67 @@ interface components {
|
|
|
160
492
|
labels?: {
|
|
161
493
|
[key: string]: string;
|
|
162
494
|
};
|
|
163
|
-
/** @description
|
|
164
|
-
|
|
495
|
+
/** @description Partner flow configurations with step type hints */
|
|
496
|
+
partnerConfigs: components["schemas"]["AutoOneClickPartnerConfig"][];
|
|
165
497
|
/** @description Full partner flow objects (populated by rehydrate_flow_step) */
|
|
166
498
|
partnerFlows?: components["schemas"]["Flow"][] | null;
|
|
167
499
|
};
|
|
500
|
+
/** @description Data for tracking auto one-click KYC flow. */
|
|
501
|
+
AutoOneClickKycData: {
|
|
502
|
+
/** Format: uuid */
|
|
503
|
+
flowId: string;
|
|
504
|
+
/** Format: uuid */
|
|
505
|
+
flowStepId: string;
|
|
506
|
+
};
|
|
507
|
+
/** @description Auto One-Click KYC step output for workflow decisions. */
|
|
508
|
+
AutoOneClickKycStepOutput: {
|
|
509
|
+
status: components["schemas"]["ResultStatus"];
|
|
510
|
+
};
|
|
511
|
+
/** @description Configuration for a single partner flow in auto one-click */
|
|
512
|
+
AutoOneClickPartnerConfig: {
|
|
513
|
+
/**
|
|
514
|
+
* Format: uuid
|
|
515
|
+
* @description The partner flow ID
|
|
516
|
+
*/
|
|
517
|
+
flowId: string;
|
|
518
|
+
/** @description Which step types to attempt one-click for in this partner flow
|
|
519
|
+
* If empty, defaults to [Dv] */
|
|
520
|
+
targetStepTypes?: components["schemas"]["FlowStepType"][];
|
|
521
|
+
};
|
|
168
522
|
BaxeError: {
|
|
169
523
|
/** Format: int32 */
|
|
170
524
|
code: number;
|
|
171
525
|
errorTag: components["schemas"]["ErrorTags"];
|
|
172
526
|
message?: string | null;
|
|
173
527
|
};
|
|
528
|
+
/** @description A condition branch for switch operators. */
|
|
529
|
+
BranchCondition: {
|
|
530
|
+
condition: components["schemas"]["Condition"];
|
|
531
|
+
/** @description The label of the edge to follow if this condition matches. */
|
|
532
|
+
label: string;
|
|
533
|
+
};
|
|
534
|
+
/**
|
|
535
|
+
* @description Source that can participate in a business information field disagreement.
|
|
536
|
+
* @enum {string}
|
|
537
|
+
*/
|
|
538
|
+
BusinessInfoDisagreementSource: "submitted" | "document" | "catalog";
|
|
539
|
+
/** @description Per-field verification result comparing submitted business info against document-extracted values. */
|
|
540
|
+
BusinessInfoFieldVerification: {
|
|
541
|
+
/** @description The value extracted from the company catalog API. */
|
|
542
|
+
catalogValue?: string | null;
|
|
543
|
+
/** @description Sources that disagree with one another for this field. */
|
|
544
|
+
disagreementSources?: components["schemas"]["BusinessInfoDisagreementSource"][];
|
|
545
|
+
/** @description The value extracted from the uploaded document(s). */
|
|
546
|
+
documentValue?: string | null;
|
|
547
|
+
matchType: components["schemas"]["BusinessInfoMatchType"];
|
|
548
|
+
/** @description The user-submitted value for this field. */
|
|
549
|
+
submittedValue?: string | null;
|
|
550
|
+
};
|
|
551
|
+
/**
|
|
552
|
+
* @description Match type for a single business information field against document-extracted values.
|
|
553
|
+
* @enum {string}
|
|
554
|
+
*/
|
|
555
|
+
BusinessInfoMatchType: "match" | "fuzzy" | "mismatch" | "notFound";
|
|
174
556
|
BusinessInformation: {
|
|
175
557
|
address: string;
|
|
176
558
|
businessActivity: string;
|
|
@@ -183,6 +565,158 @@ interface components {
|
|
|
183
565
|
postZipCode: string;
|
|
184
566
|
registrationNumber: string;
|
|
185
567
|
};
|
|
568
|
+
/** @description Parsed representation of the client's clarification response stored inside
|
|
569
|
+
* `reviewReason` JSON. Present only on document requests of that type after
|
|
570
|
+
* the client has submitted. */
|
|
571
|
+
BusinessInformationClarificationResponse: {
|
|
572
|
+
/** @description Client's decision: `"confirm"` (values are correct as-is) or `"deny"` (proposes new values). */
|
|
573
|
+
decision: string;
|
|
574
|
+
/** @description Field updates proposed by the client. Absent or empty when `decision` is `"confirm"`.
|
|
575
|
+
* Stored metadata uses key `"updates"`; API and legacy use `"fields"`. */
|
|
576
|
+
fields?: components["schemas"]["BusinessInformationClarificationResponseField"][] | null;
|
|
577
|
+
/** @description Free-text explanation from the client. */
|
|
578
|
+
reason: string;
|
|
579
|
+
};
|
|
580
|
+
/** @description A single field update proposed by the client in a business-information clarification response. */
|
|
581
|
+
BusinessInformationClarificationResponseField: {
|
|
582
|
+
/** @description The business-information field key (e.g. `"companyName"`). */
|
|
583
|
+
fieldKey: string;
|
|
584
|
+
/** @description The new value proposed by the client. */
|
|
585
|
+
value: string;
|
|
586
|
+
};
|
|
587
|
+
/**
|
|
588
|
+
* @description Provider-agnostic check status.
|
|
589
|
+
*
|
|
590
|
+
* This enum represents the canonical outcome of any verification check,
|
|
591
|
+
* abstracting away provider-specific status codes.
|
|
592
|
+
*
|
|
593
|
+
* # Deserialization
|
|
594
|
+
*
|
|
595
|
+
* Supports both string format ("passed", "failed", etc.) and legacy integer codes:
|
|
596
|
+
* - 0 = Passed (OK in Regula)
|
|
597
|
+
* - 1 = Failed (Error in Regula)
|
|
598
|
+
* - 2 = NotPerformed (Was not done in Regula)
|
|
599
|
+
* @enum {string}
|
|
600
|
+
*/
|
|
601
|
+
CheckStatus: "passed" | "failed" | "not_performed" | "unknown";
|
|
602
|
+
CloudflareTracePayload: {
|
|
603
|
+
colo?: string | null;
|
|
604
|
+
ip?: string | null;
|
|
605
|
+
loc?: string | null;
|
|
606
|
+
ts?: string | null;
|
|
607
|
+
visitScheme?: string | null;
|
|
608
|
+
};
|
|
609
|
+
/** @description A condition that can be evaluated against workflow context.
|
|
610
|
+
*
|
|
611
|
+
* Conditions are serialized as JSON with a tagged `op` field.
|
|
612
|
+
*
|
|
613
|
+
* # Examples
|
|
614
|
+
*
|
|
615
|
+
* ## Equality check
|
|
616
|
+
* ```json
|
|
617
|
+
* { "op": "EQ", "field": "dv_step.status", "value": "PASSED" }
|
|
618
|
+
* ```
|
|
619
|
+
*
|
|
620
|
+
* ## Compound condition
|
|
621
|
+
* ```json
|
|
622
|
+
* {
|
|
623
|
+
* "op": "AND",
|
|
624
|
+
* "conditions": [
|
|
625
|
+
* { "op": "EQ", "field": "dv_step.status", "value": "PASSED" },
|
|
626
|
+
* { "op": "IN", "field": "dv_step.countryCode", "values": ["IT", "DE", "FR"] }
|
|
627
|
+
* ]
|
|
628
|
+
* }
|
|
629
|
+
* ``` */
|
|
630
|
+
Condition: {
|
|
631
|
+
/** @description Field path (e.g., "dv_step.status") */
|
|
632
|
+
field: string;
|
|
633
|
+
/** @enum {string} */
|
|
634
|
+
op: "EQ";
|
|
635
|
+
value: components["schemas"]["WorkflowValue"];
|
|
636
|
+
} | {
|
|
637
|
+
/** @description Field path */
|
|
638
|
+
field: string;
|
|
639
|
+
/** @enum {string} */
|
|
640
|
+
op: "NE";
|
|
641
|
+
value: components["schemas"]["WorkflowValue"];
|
|
642
|
+
} | {
|
|
643
|
+
/** @description Field path */
|
|
644
|
+
field: string;
|
|
645
|
+
/** @enum {string} */
|
|
646
|
+
op: "GT";
|
|
647
|
+
value: components["schemas"]["WorkflowValue"];
|
|
648
|
+
} | {
|
|
649
|
+
/** @description Field path */
|
|
650
|
+
field: string;
|
|
651
|
+
/** @enum {string} */
|
|
652
|
+
op: "LT";
|
|
653
|
+
value: components["schemas"]["WorkflowValue"];
|
|
654
|
+
} | {
|
|
655
|
+
/** @description Field path */
|
|
656
|
+
field: string;
|
|
657
|
+
/** @enum {string} */
|
|
658
|
+
op: "GTE";
|
|
659
|
+
value: components["schemas"]["WorkflowValue"];
|
|
660
|
+
} | {
|
|
661
|
+
/** @description Field path */
|
|
662
|
+
field: string;
|
|
663
|
+
/** @enum {string} */
|
|
664
|
+
op: "LTE";
|
|
665
|
+
value: components["schemas"]["WorkflowValue"];
|
|
666
|
+
} | {
|
|
667
|
+
/** @description Conditions to AND together */
|
|
668
|
+
conditions: components["schemas"]["Condition"][];
|
|
669
|
+
/** @enum {string} */
|
|
670
|
+
op: "AND";
|
|
671
|
+
} | {
|
|
672
|
+
/** @description Conditions to OR together */
|
|
673
|
+
conditions: components["schemas"]["Condition"][];
|
|
674
|
+
/** @enum {string} */
|
|
675
|
+
op: "OR";
|
|
676
|
+
} | {
|
|
677
|
+
condition: components["schemas"]["Condition"];
|
|
678
|
+
/** @enum {string} */
|
|
679
|
+
op: "NOT";
|
|
680
|
+
} | {
|
|
681
|
+
/** @description Field path */
|
|
682
|
+
field: string;
|
|
683
|
+
/** @enum {string} */
|
|
684
|
+
op: "IN";
|
|
685
|
+
/** @description List of values to check against */
|
|
686
|
+
values: components["schemas"]["WorkflowValue"][];
|
|
687
|
+
} | {
|
|
688
|
+
condition: components["schemas"]["Condition"];
|
|
689
|
+
/** @description Field path to an array */
|
|
690
|
+
field: string;
|
|
691
|
+
/** @enum {string} */
|
|
692
|
+
op: "ANY";
|
|
693
|
+
} | {
|
|
694
|
+
condition: components["schemas"]["Condition"];
|
|
695
|
+
/** @description Field path to an array */
|
|
696
|
+
field: string;
|
|
697
|
+
/** @enum {string} */
|
|
698
|
+
op: "ALL";
|
|
699
|
+
} | {
|
|
700
|
+
/** @description Field path */
|
|
701
|
+
field: string;
|
|
702
|
+
/** @enum {string} */
|
|
703
|
+
op: "IS_NULL";
|
|
704
|
+
} | {
|
|
705
|
+
/** @description Field path */
|
|
706
|
+
field: string;
|
|
707
|
+
/** @enum {string} */
|
|
708
|
+
op: "IS_NOT_NULL";
|
|
709
|
+
} | {
|
|
710
|
+
/** @enum {string} */
|
|
711
|
+
op: "LITERAL";
|
|
712
|
+
/** @description The literal value */
|
|
713
|
+
value: boolean;
|
|
714
|
+
};
|
|
715
|
+
/**
|
|
716
|
+
* @description Condition operator type representing all valid condition operators.
|
|
717
|
+
* @enum {string}
|
|
718
|
+
*/
|
|
719
|
+
ConditionOperator: "EQ" | "NE" | "GT" | "LT" | "GTE" | "LTE" | "AND" | "OR" | "NOT" | "IN" | "ANY" | "ALL" | "IS_NULL" | "IS_NOT_NULL" | "LITERAL";
|
|
186
720
|
CountriesFilter: {
|
|
187
721
|
accepted: string[];
|
|
188
722
|
blocked: string[];
|
|
@@ -195,7 +729,7 @@ interface components {
|
|
|
195
729
|
} | null;
|
|
196
730
|
email?: string | null;
|
|
197
731
|
/** Format: uuid */
|
|
198
|
-
flowStepId
|
|
732
|
+
flowStepId?: string | null;
|
|
199
733
|
privacyPolicyAccepted: boolean;
|
|
200
734
|
termsAndConditionsAccepted: boolean;
|
|
201
735
|
};
|
|
@@ -256,21 +790,63 @@ interface components {
|
|
|
256
790
|
path: string;
|
|
257
791
|
type: string;
|
|
258
792
|
};
|
|
793
|
+
/** @description Status of various document scan checks.
|
|
794
|
+
*
|
|
795
|
+
* # Deserialization
|
|
796
|
+
*
|
|
797
|
+
* Supports both new abstract format and legacy Regula format:
|
|
798
|
+
*
|
|
799
|
+
* **New format:**
|
|
800
|
+
* ```json
|
|
801
|
+
* { "overall": "passed", "documentType": "passed", "expiry": "passed", "mrz": "passed" }
|
|
802
|
+
* ```
|
|
803
|
+
*
|
|
804
|
+
* **Legacy Regula format:**
|
|
805
|
+
* ```json
|
|
806
|
+
* {
|
|
807
|
+
* "overallStatus": 0,
|
|
808
|
+
* "detailsOptical": { "docType": 1, "expiry": 0, "mrz": 2, ... },
|
|
809
|
+
* "optical": 0, "portrait": 1, "rfid": 2, ...
|
|
810
|
+
* }
|
|
811
|
+
* ``` */
|
|
812
|
+
DocumentScanStatus: {
|
|
813
|
+
documentType: components["schemas"]["CheckStatus"];
|
|
814
|
+
expiry: components["schemas"]["CheckStatus"];
|
|
815
|
+
mrz: components["schemas"]["CheckStatus"];
|
|
816
|
+
overall: components["schemas"]["CheckStatus"];
|
|
817
|
+
};
|
|
818
|
+
DocumentSelectionConfig: {
|
|
819
|
+
allowedDocumentsPerCountry?: {
|
|
820
|
+
[key: string]: string[];
|
|
821
|
+
} | null;
|
|
822
|
+
countriesFilter: components["schemas"]["CountriesFilter"];
|
|
823
|
+
documentTypesFilter: components["schemas"]["DocumentTypeFilter"];
|
|
824
|
+
enabledGovernmentProviders: {
|
|
825
|
+
[key: string]: components["schemas"]["SpidDocumentType"][];
|
|
826
|
+
};
|
|
827
|
+
/** @example { "en_button_label": "Next step" } */
|
|
828
|
+
labels?: {
|
|
829
|
+
[key: string]: string;
|
|
830
|
+
};
|
|
831
|
+
};
|
|
832
|
+
/** @description Document selection step output for workflow decisions. */
|
|
833
|
+
DocumentSelectionStepOutput: {
|
|
834
|
+
country?: string | null;
|
|
835
|
+
/** Format: int64 */
|
|
836
|
+
documentType?: number | null;
|
|
837
|
+
};
|
|
259
838
|
DocumentTypeFilter: {
|
|
260
839
|
types: string[];
|
|
261
840
|
};
|
|
262
841
|
DocumentUpload: {
|
|
842
|
+
documentType?: string | null;
|
|
263
843
|
filename: string;
|
|
264
844
|
presignedUrl?: string | null;
|
|
265
845
|
s3Key?: string | null;
|
|
266
846
|
};
|
|
267
847
|
DvConfig: {
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
} | null;
|
|
271
|
-
countriesFilter?: components["schemas"]["CountriesFilter"] | null;
|
|
272
|
-
documentFormatsFilter?: components["schemas"]["DocumentFormatFilter"] | null;
|
|
273
|
-
documentTypesFilter?: components["schemas"]["DocumentTypeFilter"] | null;
|
|
848
|
+
/** Format: uuid */
|
|
849
|
+
documentSelectionStepId?: string;
|
|
274
850
|
/** @example { "en_button_label": "Next step" } */
|
|
275
851
|
labels?: {
|
|
276
852
|
[key: string]: string;
|
|
@@ -291,7 +867,7 @@ interface components {
|
|
|
291
867
|
/** @enum {string} */
|
|
292
868
|
DvConfigThreshold: "documentScorePercent";
|
|
293
869
|
/** @enum {string} */
|
|
294
|
-
DvReason: "UNKNOWN" | "WRONG_DOCUMENT_TYPE" | "COUNTRY_FILTER" | "FACE_MATCH_CHECK" | "FACE_MATCH_CHECK_ONE_CLICK" | "OVERALL_STATUS" | "DOCUMENT_COUNTRY_MISMATCH" | "DOCUMENT_COUNTRY_MISSING" | "DATE_OF_EXPIRY_NOT_VALID" | "DATE_OF_EXPIRY_NOT_READABLE" | "DATE_OF_EXPIRY_FIELD_MISSING" | "DOCUMENT_ALREADY_USED_BY_ANOTHER_USER" | "DOCUMENT_FINGERPRINT_COMPUTATION" | "SECURITY_CHECK_FAILED" | "DOCUMENT_SCORE_BELOW_THRESHOLD" | "DOCUMENT_TYPE_NOT_DEFINED" | "
|
|
870
|
+
DvReason: "UNKNOWN" | "WRONG_DOCUMENT_TYPE" | "COUNTRY_FILTER" | "FACE_MATCH_CHECK" | "FACE_MATCH_CHECK_ONE_CLICK" | "OVERALL_STATUS" | "DOCUMENT_COUNTRY_MISMATCH" | "DOCUMENT_COUNTRY_MISSING" | "DATE_OF_EXPIRY_NOT_VALID" | "DATE_OF_EXPIRY_NOT_READABLE" | "DATE_OF_EXPIRY_FIELD_MISSING" | "DOCUMENT_ALREADY_USED_BY_ANOTHER_USER" | "DOCUMENT_FINGERPRINT_COMPUTATION" | "SECURITY_CHECK_FAILED" | "DOCUMENT_SCORE_BELOW_THRESHOLD" | "DOCUMENT_TYPE_NOT_DEFINED" | "DOCUMENT_NOT_FOUND" | "DATE_OF_BIRTH_BELOW_MINIMUM_AGE" | "DOCUMENT_TYPE_CHECK" | "ELECTRONIC_DEVICE" | "SECURITY_TEXT" | "IMAGE_PATTERNS" | "PHOTO_EMBEDDINGS" | "BLACK_AND_WHITE_COPY" | "UNIQUENESS_CHECK" | "REQUIRED_FIELDS_MISMATCH" | "LIVENESS_CHECK_FAILED" | "LIVENESS_ANTISPOOF_FAILED" | "LIVENESS_BRIGHTNESS_FAILED" | "LIVENESS_EYES_CLOSED_FAILED" | "LIVENESS_WEARING_SUNGLASSES_FAILED" | "LIVENESS_FACE_OCCLUDED_FAILED" | "LIVENESS_SHARPNESS_FAILED" | "LIVENESS_FACE_CONSISTENCY_FAILED";
|
|
295
871
|
DvResult: {
|
|
296
872
|
adminComment?: string | null;
|
|
297
873
|
authenticityChecks: number[][];
|
|
@@ -325,9 +901,7 @@ interface components {
|
|
|
325
901
|
platform?: string | null;
|
|
326
902
|
/** Format: int32 */
|
|
327
903
|
portraitMatchPercent?: number | null;
|
|
328
|
-
processAdditionalData:
|
|
329
|
-
[key: string]: unknown;
|
|
330
|
-
};
|
|
904
|
+
processAdditionalData: components["schemas"]["ProcessAdditionalData"];
|
|
331
905
|
provinceCode?: string | null;
|
|
332
906
|
reasons: components["schemas"]["DvReason"][];
|
|
333
907
|
status: components["schemas"]["ResultStatus"];
|
|
@@ -336,8 +910,32 @@ interface components {
|
|
|
336
910
|
/** Format: uuid */
|
|
337
911
|
verificationRequestId?: string | null;
|
|
338
912
|
};
|
|
913
|
+
DvStepOutput: {
|
|
914
|
+
amlPep?: boolean | null;
|
|
915
|
+
/** Format: int32 */
|
|
916
|
+
amlRiskScorePercent?: number | null;
|
|
917
|
+
amlSanctions?: boolean | null;
|
|
918
|
+
/** Format: date-time */
|
|
919
|
+
dateOfExpiry?: string | null;
|
|
920
|
+
/** Format: int32 */
|
|
921
|
+
documentType?: number | null;
|
|
922
|
+
issuingCountry?: string | null;
|
|
923
|
+
livenessStatus?: components["schemas"]["ResultStatus"] | null;
|
|
924
|
+
/** Format: int32 */
|
|
925
|
+
numberOfAttempts: number;
|
|
926
|
+
status: components["schemas"]["ResultStatus"];
|
|
927
|
+
};
|
|
339
928
|
/** @enum {string} */
|
|
340
|
-
ErrorTags: "unexpected" | "bad_request" | "permission_denied" | "request_deserialization" | "database" | "invalid_email_or_password" | "user_not_confirmed" | "verify_password" | "send_email" | "open_session" | "read_session" | "close_session" | "user_disabled" | "missing_authorization_header" | "invalid_authorization_header" | "token_generation" | "user_not_found" | "email_already_taken" | "invalid_invite" | "wrong_invite_user" | "invite_not_found" | "email_already_verified" | "flow_not_found" | "flow_step_not_found" | "organization_not_found" | "storage" | "verification_request_not_found" | "document_reader" | "websocket" | "organization_settings_not_found" | "start_job" | "result_not_found" | "kyc_grant_not_found" | "document_not_found" | "service_invocation" | "trigger_webhook" | "too_many_invites" | "invite_already_used" | "invite_already_accepted" | "invite_already_revoked" | "invite_revoked" | "invite_expired" | "invite_already_exists" | "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" | "parse_error" | "inviter_organization_not_found" | "forbidden" | "passkey_authentication" | "internal";
|
|
929
|
+
ErrorTags: "unexpected" | "bad_request" | "permission_denied" | "request_deserialization" | "database" | "invalid_email_or_password" | "user_not_confirmed" | "verify_password" | "send_email" | "open_session" | "read_session" | "close_session" | "user_disabled" | "missing_authorization_header" | "invalid_authorization_header" | "token_generation" | "user_not_found" | "email_already_taken" | "invalid_invite" | "wrong_invite_user" | "invite_not_found" | "email_already_verified" | "flow_not_found" | "flow_step_not_found" | "organization_not_found" | "storage" | "verification_request_not_found" | "document_reader" | "websocket" | "organization_settings_not_found" | "start_job" | "result_not_found" | "kyc_grant_not_found" | "document_not_found" | "service_invocation" | "trigger_webhook" | "too_many_invites" | "invite_already_used" | "invite_already_accepted" | "invite_already_revoked" | "invite_revoked" | "invite_expired" | "invite_already_exists" | "share_already_revoked" | "form_not_found" | "form_in_use" | "flow_step_configuration_not_found" | "identity_not_found" | "step_order_violation" | "serialization" | "mock_data" | "api_key_not_found" | "not_implemented" | "access_grant" | "rate_limit_exceeded" | "missing_api_key" | "invalid_api_key" | "origin_not_allowed" | "step_already_completed" | "send_sms" | "send_notification" | "parse_error" | "inviter_organization_not_found" | "forbidden" | "passkey_authentication" | "internal" | "invalid_email" | "graph_validation" | "external_api" | "share_already_has_write_access" | "share_does_not_have_write_access" | "write_access_already_revoked" | "invite_required" | "billing";
|
|
930
|
+
/** @description Represents an executed action with its ID and type. */
|
|
931
|
+
ExecutedAction: {
|
|
932
|
+
actionConfig: components["schemas"]["ActionConfig"];
|
|
933
|
+
/**
|
|
934
|
+
* Format: uuid
|
|
935
|
+
* @description The unique identifier of the action node.
|
|
936
|
+
*/
|
|
937
|
+
actionId: string;
|
|
938
|
+
};
|
|
341
939
|
FieldControlOperation: {
|
|
342
940
|
/** Format: uuid */
|
|
343
941
|
identityId: string;
|
|
@@ -359,6 +957,11 @@ interface components {
|
|
|
359
957
|
comment: string;
|
|
360
958
|
};
|
|
361
959
|
};
|
|
960
|
+
/**
|
|
961
|
+
* @description Per-field review status within a clarification document request.
|
|
962
|
+
* @enum {string}
|
|
963
|
+
*/
|
|
964
|
+
FieldReviewStatus: "PENDING" | "APPROVED" | "REJECTED";
|
|
362
965
|
FieldWithControl: {
|
|
363
966
|
controls: components["schemas"]["FieldControlOperation"][];
|
|
364
967
|
value: string[];
|
|
@@ -366,6 +969,8 @@ interface components {
|
|
|
366
969
|
FileOptions: {
|
|
367
970
|
accept: string[];
|
|
368
971
|
expectedDocumentType: string;
|
|
972
|
+
/** Format: int32 */
|
|
973
|
+
maxCountUploads?: number;
|
|
369
974
|
};
|
|
370
975
|
/** @enum {string} */
|
|
371
976
|
FilterOperator: "unfiltered" | "in" | "equals" | "not-in" | "not-equals" | "contains";
|
|
@@ -375,6 +980,7 @@ interface components {
|
|
|
375
980
|
failureUrl?: string | null;
|
|
376
981
|
/** Format: uuid */
|
|
377
982
|
id: string;
|
|
983
|
+
jdm: components["schemas"]["WorkflowGraph"];
|
|
378
984
|
name: string;
|
|
379
985
|
slug: string;
|
|
380
986
|
steps: components["schemas"]["FlowStep"][];
|
|
@@ -389,21 +995,27 @@ interface components {
|
|
|
389
995
|
createdAt?: string | null;
|
|
390
996
|
customData: {
|
|
391
997
|
[key: string]: unknown;
|
|
392
|
-
};
|
|
998
|
+
} | null;
|
|
393
999
|
dvResults: components["schemas"]["DvResult"][];
|
|
394
1000
|
flow?: components["schemas"]["Flow"] | null;
|
|
395
1001
|
flowSlug: string;
|
|
396
1002
|
formResults: components["schemas"]["FormResult"][];
|
|
1003
|
+
geolocationResults?: components["schemas"]["GeolocationResult"][];
|
|
397
1004
|
/** Format: uuid */
|
|
398
1005
|
id: string;
|
|
399
1006
|
identity?: components["schemas"]["Identity"] | null;
|
|
1007
|
+
jdmData: {
|
|
1008
|
+
[key: string]: components["schemas"]["FlowStepOutput"];
|
|
1009
|
+
};
|
|
400
1010
|
kybResults: components["schemas"]["KybResult"][];
|
|
401
1011
|
organization?: components["schemas"]["Organization"] | null;
|
|
402
1012
|
/** Format: uuid */
|
|
403
1013
|
organizationId: string;
|
|
404
1014
|
phoneResults: components["schemas"]["PhoneResult"][];
|
|
405
1015
|
poaResults: components["schemas"]["PoaResult"][];
|
|
1016
|
+
reviewSuggestion?: components["schemas"]["ReviewSuggestion"] | null;
|
|
406
1017
|
spidResults: components["schemas"]["SpidResult"][];
|
|
1018
|
+
status: components["schemas"]["VerificationRequestStatus"];
|
|
407
1019
|
/** Format: date-time */
|
|
408
1020
|
updatedAt?: string | null;
|
|
409
1021
|
walletResults: components["schemas"]["WalletResult"][];
|
|
@@ -589,7 +1201,27 @@ interface components {
|
|
|
589
1201
|
/** Format: date-time */
|
|
590
1202
|
updatedAt?: string | null;
|
|
591
1203
|
} | {
|
|
592
|
-
config: components["schemas"]["
|
|
1204
|
+
config: components["schemas"]["DocumentSelectionConfig"];
|
|
1205
|
+
/** Format: date-time */
|
|
1206
|
+
createdAt?: string | null;
|
|
1207
|
+
failureUrl?: string | null;
|
|
1208
|
+
/** Format: uuid */
|
|
1209
|
+
flowId: string;
|
|
1210
|
+
/** Format: uuid */
|
|
1211
|
+
gotoStepId?: string | null;
|
|
1212
|
+
/** Format: uuid */
|
|
1213
|
+
id: string;
|
|
1214
|
+
name: string;
|
|
1215
|
+
/** Format: int32 */
|
|
1216
|
+
order: number;
|
|
1217
|
+
slug: string;
|
|
1218
|
+
successUrl?: string | null;
|
|
1219
|
+
/** @enum {string} */
|
|
1220
|
+
type: "DOCUMENT_SELECTION";
|
|
1221
|
+
/** Format: date-time */
|
|
1222
|
+
updatedAt?: string | null;
|
|
1223
|
+
} | {
|
|
1224
|
+
config: components["schemas"]["GeolocationConfig"];
|
|
593
1225
|
/** Format: date-time */
|
|
594
1226
|
createdAt?: string | null;
|
|
595
1227
|
failureUrl?: string | null;
|
|
@@ -605,11 +1237,11 @@ interface components {
|
|
|
605
1237
|
slug: string;
|
|
606
1238
|
successUrl?: string | null;
|
|
607
1239
|
/** @enum {string} */
|
|
608
|
-
type: "
|
|
1240
|
+
type: "GEOLOCATION";
|
|
609
1241
|
/** Format: date-time */
|
|
610
1242
|
updatedAt?: string | null;
|
|
611
1243
|
};
|
|
612
|
-
FlowStepConfig: components["schemas"]["AutoOneClickKycConfig"] | components["schemas"]["DvConfig"] | components["schemas"]["FormConfig"] | components["schemas"]["PoaConfig"] | components["schemas"]["KybConfig"] | components["schemas"]["WalletConfig"] | components["schemas"]["LivenessConfig"] | components["schemas"]["
|
|
1244
|
+
FlowStepConfig: components["schemas"]["AutoOneClickKycConfig"] | components["schemas"]["DvConfig"] | components["schemas"]["FormConfig"] | components["schemas"]["PoaConfig"] | components["schemas"]["KybConfig"] | components["schemas"]["WalletConfig"] | components["schemas"]["LivenessConfig"] | components["schemas"]["DocumentSelectionConfig"] | components["schemas"]["GeolocationConfig"] | components["schemas"]["SpidConfig"] | components["schemas"]["PhoneConfig"];
|
|
613
1245
|
FlowStepInfo: {
|
|
614
1246
|
CONFIG: components["schemas"]["FlowStepConfig"];
|
|
615
1247
|
/** Format: date-time */
|
|
@@ -630,8 +1262,57 @@ interface components {
|
|
|
630
1262
|
/** Format: date-time */
|
|
631
1263
|
UPDATED_AT?: string | null;
|
|
632
1264
|
};
|
|
1265
|
+
FlowStepOutput: {
|
|
1266
|
+
data: components["schemas"]["DvStepOutput"];
|
|
1267
|
+
/** @enum {string} */
|
|
1268
|
+
type: "DV";
|
|
1269
|
+
} | {
|
|
1270
|
+
data: components["schemas"]["PoaStepOutput"];
|
|
1271
|
+
/** @enum {string} */
|
|
1272
|
+
type: "POA";
|
|
1273
|
+
} | {
|
|
1274
|
+
data: components["schemas"]["SpidStepOutput"];
|
|
1275
|
+
/** @enum {string} */
|
|
1276
|
+
type: "SPID";
|
|
1277
|
+
} | {
|
|
1278
|
+
data: components["schemas"]["WalletStepOutput"];
|
|
1279
|
+
/** @enum {string} */
|
|
1280
|
+
type: "WALLET";
|
|
1281
|
+
} | {
|
|
1282
|
+
data: components["schemas"]["PhoneStepOutput"];
|
|
1283
|
+
/** @enum {string} */
|
|
1284
|
+
type: "PHONE";
|
|
1285
|
+
} | {
|
|
1286
|
+
data: components["schemas"]["FormStepOutput"];
|
|
1287
|
+
/** @enum {string} */
|
|
1288
|
+
type: "FORM";
|
|
1289
|
+
} | {
|
|
1290
|
+
data: components["schemas"]["KybStepOutput"];
|
|
1291
|
+
/** @enum {string} */
|
|
1292
|
+
type: "KYB";
|
|
1293
|
+
} | {
|
|
1294
|
+
data: components["schemas"]["LivenessStepOutput"];
|
|
1295
|
+
/** @enum {string} */
|
|
1296
|
+
type: "LIVENESS";
|
|
1297
|
+
} | {
|
|
1298
|
+
data: components["schemas"]["AutoOneClickKycStepOutput"];
|
|
1299
|
+
/** @enum {string} */
|
|
1300
|
+
type: "AUTO_ONE_CLICK_KYC";
|
|
1301
|
+
} | {
|
|
1302
|
+
data: components["schemas"]["ActionStepOutput"];
|
|
1303
|
+
/** @enum {string} */
|
|
1304
|
+
type: "ACTION";
|
|
1305
|
+
} | {
|
|
1306
|
+
data: components["schemas"]["DocumentSelectionStepOutput"];
|
|
1307
|
+
/** @enum {string} */
|
|
1308
|
+
type: "DOCUMENT_SELECTION";
|
|
1309
|
+
} | {
|
|
1310
|
+
data: components["schemas"]["GeolocationStepOutput"];
|
|
1311
|
+
/** @enum {string} */
|
|
1312
|
+
type: "GEOLOCATION";
|
|
1313
|
+
};
|
|
633
1314
|
/** @enum {string} */
|
|
634
|
-
FlowStepType: "DV" | "FORM" | "POA" | "KYB" | "SPID" | "PHONE" | "WALLET" | "LIVENESS" | "AUTO_ONE_CLICK_KYC" | "
|
|
1315
|
+
FlowStepType: "DV" | "FORM" | "POA" | "KYB" | "SPID" | "PHONE" | "WALLET" | "LIVENESS" | "AUTO_ONE_CLICK_KYC" | "DOCUMENT_SELECTION" | "GEOLOCATION";
|
|
635
1316
|
Form: {
|
|
636
1317
|
/** Format: date-time */
|
|
637
1318
|
createdAt?: string | null;
|
|
@@ -659,6 +1340,8 @@ interface components {
|
|
|
659
1340
|
labels?: {
|
|
660
1341
|
[key: string]: string;
|
|
661
1342
|
};
|
|
1343
|
+
/** Format: int64 */
|
|
1344
|
+
oneClickMaxAgeSeconds?: number | null;
|
|
662
1345
|
};
|
|
663
1346
|
FormItem: {
|
|
664
1347
|
content: components["schemas"]["InputField"];
|
|
@@ -684,6 +1367,8 @@ interface components {
|
|
|
684
1367
|
flowStepId?: string | null;
|
|
685
1368
|
form?: components["schemas"]["Form"] | null;
|
|
686
1369
|
/** Format: uuid */
|
|
1370
|
+
formId?: string | null;
|
|
1371
|
+
/** Format: uuid */
|
|
687
1372
|
id: string;
|
|
688
1373
|
reason?: components["schemas"]["FormReason"] | null;
|
|
689
1374
|
sections: components["schemas"]["FormSection"][];
|
|
@@ -700,27 +1385,129 @@ interface components {
|
|
|
700
1385
|
};
|
|
701
1386
|
name: string;
|
|
702
1387
|
};
|
|
703
|
-
|
|
704
|
-
|
|
1388
|
+
/** @description Form step output for workflow decisions.
|
|
1389
|
+
*
|
|
1390
|
+
* # Field Name Restrictions
|
|
1391
|
+
*
|
|
1392
|
+
* The `fields` HashMap is flattened during serialization. Form field names must not conflict
|
|
1393
|
+
* with the reserved field name "status" (or "status" in camelCase), as this would create duplicate
|
|
1394
|
+
* keys in the serialized JSON output, resulting in invalid JSON. */
|
|
1395
|
+
FormStepOutput: {
|
|
1396
|
+
status: components["schemas"]["ResultStatus"];
|
|
1397
|
+
} & {
|
|
1398
|
+
[key: string]: unknown;
|
|
705
1399
|
};
|
|
706
|
-
|
|
707
|
-
|
|
1400
|
+
GeolocationConfig: {
|
|
1401
|
+
/** @example true */
|
|
1402
|
+
ipValidation?: boolean;
|
|
1403
|
+
/** @example { "default": "Next step" } */
|
|
1404
|
+
labels?: {
|
|
1405
|
+
[key: string]: string;
|
|
1406
|
+
};
|
|
1407
|
+
/** @example true */
|
|
1408
|
+
locationCrossCheck?: boolean;
|
|
1409
|
+
/** @example true */
|
|
1410
|
+
vpnDetection?: boolean;
|
|
708
1411
|
};
|
|
709
|
-
|
|
710
|
-
|
|
1412
|
+
GeolocationCoordinates: {
|
|
1413
|
+
/** Format: double */
|
|
1414
|
+
accuracy: number;
|
|
1415
|
+
/** Format: double */
|
|
1416
|
+
latitude: number;
|
|
1417
|
+
/** Format: double */
|
|
1418
|
+
longitude: number;
|
|
711
1419
|
};
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
1420
|
+
GeolocationResult: {
|
|
1421
|
+
blacklistedIp: boolean;
|
|
1422
|
+
country?: string | null;
|
|
1423
|
+
/** Format: date-time */
|
|
1424
|
+
createdAt?: string | null;
|
|
1425
|
+
deviceFingerprint?: string | null;
|
|
1426
|
+
/** Format: uuid */
|
|
1427
|
+
flowResultId: string;
|
|
1428
|
+
flowStep?: Omit<components["schemas"]["FlowStep"], "type"> | null;
|
|
1429
|
+
/** Format: uuid */
|
|
1430
|
+
flowStepId?: string | null;
|
|
1431
|
+
/** Format: uuid */
|
|
1432
|
+
id: string;
|
|
1433
|
+
ipAddress?: string | null;
|
|
1434
|
+
reason?: string | null;
|
|
1435
|
+
status: components["schemas"]["ResultStatus"];
|
|
1436
|
+
/** Format: date-time */
|
|
1437
|
+
updatedAt?: string | null;
|
|
1438
|
+
/** Format: uuid */
|
|
1439
|
+
verificationRequestId?: string | null;
|
|
1440
|
+
vpn: boolean;
|
|
1441
|
+
};
|
|
1442
|
+
/** @description Geolocation step output for workflow decisions. */
|
|
1443
|
+
GeolocationStepOutput: {
|
|
1444
|
+
blacklistedIp?: boolean;
|
|
1445
|
+
country?: string | null;
|
|
1446
|
+
deviceFingerprint?: string | null;
|
|
1447
|
+
ipAddress?: string | null;
|
|
1448
|
+
vpn?: boolean;
|
|
1449
|
+
};
|
|
1450
|
+
GetApiKeyResponse: {
|
|
1451
|
+
apiKey: components["schemas"]["ZypheApiKey"];
|
|
1452
|
+
};
|
|
1453
|
+
GetFlowResponse: {
|
|
1454
|
+
flow: components["schemas"]["Flow"];
|
|
1455
|
+
};
|
|
1456
|
+
GetFormResponse: {
|
|
1457
|
+
form: components["schemas"]["Form"];
|
|
1458
|
+
};
|
|
1459
|
+
GetFullFlowResponse: {
|
|
1460
|
+
flow: components["schemas"]["Flow"];
|
|
1461
|
+
flowPartnerOrganizationsNames?: string[] | null;
|
|
715
1462
|
/** Format: uuid */
|
|
716
1463
|
organizationId: string;
|
|
717
1464
|
organizationName: string;
|
|
718
1465
|
settings: components["schemas"]["Settings"];
|
|
719
1466
|
};
|
|
1467
|
+
/** @description Response to the `liveness-challenge` endpoint.
|
|
1468
|
+
*
|
|
1469
|
+
* The `mode` discriminant tells the client which capture flow to perform:
|
|
1470
|
+
* - `"ACTIVE"` — head-movement challenge; the client captures movements and
|
|
1471
|
+
* uploads movement images + video + calibration image.
|
|
1472
|
+
* - `"PASSIVE"` — selfie-only; the client uploads only a calibration image.
|
|
1473
|
+
* No movements are required. */
|
|
1474
|
+
GetLivenessChallengeResponse: {
|
|
1475
|
+
calibrationImage: components["schemas"]["LivenessUploadUrl"];
|
|
1476
|
+
/** Format: uuid */
|
|
1477
|
+
id: string;
|
|
1478
|
+
/** @enum {string} */
|
|
1479
|
+
mode: "ACTIVE";
|
|
1480
|
+
/** Format: int64 */
|
|
1481
|
+
movementDurationMs: number;
|
|
1482
|
+
movementImages: components["schemas"]["LivenessUploadUrl"][];
|
|
1483
|
+
movements: components["schemas"]["HeadMovement"][];
|
|
1484
|
+
rotationThresholds: components["schemas"]["RotationThresholds"];
|
|
1485
|
+
rotationThresholdsDiagonal: components["schemas"]["RotationThresholds"];
|
|
1486
|
+
video: components["schemas"]["LivenessUploadUrl"];
|
|
1487
|
+
} | {
|
|
1488
|
+
calibrationImage: components["schemas"]["LivenessUploadUrl"];
|
|
1489
|
+
/** Format: uuid */
|
|
1490
|
+
id: string;
|
|
1491
|
+
/** @enum {string} */
|
|
1492
|
+
mode: "PASSIVE";
|
|
1493
|
+
};
|
|
720
1494
|
GetNextStepPayload: {
|
|
1495
|
+
/** @description Email address of the user whose verification progress should be queried. */
|
|
721
1496
|
email: string;
|
|
722
1497
|
};
|
|
723
1498
|
GetNextStepResponse: {
|
|
1499
|
+
/** @description Custom data associated with the flow result, if one exists. */
|
|
1500
|
+
customData?: {
|
|
1501
|
+
[key: string]: unknown;
|
|
1502
|
+
} | null;
|
|
1503
|
+
/** @description Actions that were automatically executed as part of flow evaluation (e.g. status transitions). */
|
|
1504
|
+
executedActions?: components["schemas"]["ExecutedAction"][];
|
|
1505
|
+
/**
|
|
1506
|
+
* Format: uuid
|
|
1507
|
+
* @description The ID of the flow result record, if one exists for this user.
|
|
1508
|
+
*/
|
|
1509
|
+
flowResultId?: string | null;
|
|
1510
|
+
/** @description Whether the user has completed all required steps in the flow. */
|
|
724
1511
|
isCompleted: boolean;
|
|
725
1512
|
nextStep?: Omit<components["schemas"]["FlowStep"], "type"> | null;
|
|
726
1513
|
};
|
|
@@ -729,12 +1516,17 @@ interface components {
|
|
|
729
1516
|
passkey?: components["schemas"]["VaultUnlockPasskeyData"] | null;
|
|
730
1517
|
verificationRequest: components["schemas"]["VerificationRequest"];
|
|
731
1518
|
};
|
|
1519
|
+
/**
|
|
1520
|
+
* @description Represents the different head movements that can be requested in a liveness challenge
|
|
1521
|
+
* @enum {string}
|
|
1522
|
+
*/
|
|
1523
|
+
HeadMovement: "up" | "up-right" | "right" | "down-right" | "down" | "down-left" | "left" | "up-left";
|
|
732
1524
|
Identity: {
|
|
733
1525
|
/** Format: date-time */
|
|
734
1526
|
createdAt?: string | null;
|
|
735
1527
|
/** Format: uuid */
|
|
736
1528
|
defaultOrganizationId?: string | null;
|
|
737
|
-
email
|
|
1529
|
+
email?: string | null;
|
|
738
1530
|
emailVerified: boolean;
|
|
739
1531
|
/** Format: uuid */
|
|
740
1532
|
id: string;
|
|
@@ -749,66 +1541,99 @@ interface components {
|
|
|
749
1541
|
lastEnvironmentIsSandbox?: boolean;
|
|
750
1542
|
locale: components["schemas"]["Locale"];
|
|
751
1543
|
};
|
|
752
|
-
|
|
1544
|
+
/** @description Result of an image quality check.
|
|
1545
|
+
*
|
|
1546
|
+
* # Deserialization
|
|
1547
|
+
*
|
|
1548
|
+
* Supports both new abstract format and legacy Regula format:
|
|
1549
|
+
*
|
|
1550
|
+
* **New format:**
|
|
1551
|
+
* ```json
|
|
1552
|
+
* { "checkType": "focus", "result": "passed", "probability": 97 }
|
|
1553
|
+
* ```
|
|
1554
|
+
*
|
|
1555
|
+
* **Legacy Regula format (single item from 'list'):**
|
|
1556
|
+
* ```json
|
|
1557
|
+
* { "type": 1, "result": 0, "probability": 97, "featureType": 0, "mean": 0.0, "stdDev": 0.0 }
|
|
1558
|
+
* ``` */
|
|
1559
|
+
ImageQualityCheckResult: {
|
|
1560
|
+
checkType: components["schemas"]["ImageQualityCheckType"];
|
|
753
1561
|
/** Format: int32 */
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
lightIndex: number;
|
|
757
|
-
/** Format: int64 */
|
|
758
|
-
pageIndex: number;
|
|
759
|
-
source: string;
|
|
760
|
-
value: string;
|
|
1562
|
+
probability?: number | null;
|
|
1563
|
+
result: components["schemas"]["CheckStatus"];
|
|
761
1564
|
};
|
|
1565
|
+
/**
|
|
1566
|
+
* @description Types of image quality checks.
|
|
1567
|
+
*
|
|
1568
|
+
* # Deserialization
|
|
1569
|
+
*
|
|
1570
|
+
* Supports both string format and legacy Regula integer type codes:
|
|
1571
|
+
* - 0 = Glare (ImageGlares)
|
|
1572
|
+
* - 1 = Focus (ImageFocus)
|
|
1573
|
+
* - 2 = Resolution (ImageResolution)
|
|
1574
|
+
* - 3 = Colorness (ImageColorness)
|
|
1575
|
+
* - 4 = Perspective (ImagePerspective)
|
|
1576
|
+
* - 5 = Bounds (ImageBounds)
|
|
1577
|
+
* - 6 = ScreenCapture (ImageScreenCapture)
|
|
1578
|
+
* - 7 = Portrait (ImagePortrait)
|
|
1579
|
+
* @enum {string}
|
|
1580
|
+
*/
|
|
1581
|
+
ImageQualityCheckType: "glare" | "focus" | "resolution" | "colorness" | "perspective" | "bounds" | "screen_capture" | "portrait" | "image_quality" | "unknown";
|
|
762
1582
|
InputField: {
|
|
763
1583
|
label: {
|
|
764
1584
|
[key: string]: string;
|
|
765
1585
|
};
|
|
766
1586
|
name: string;
|
|
767
1587
|
options: unknown;
|
|
768
|
-
|
|
1588
|
+
requiredWhen?: Omit<components["schemas"]["Condition"], "op"> | null;
|
|
769
1589
|
/** @enum {string} */
|
|
770
1590
|
type: "date";
|
|
771
1591
|
value?: unknown;
|
|
1592
|
+
visibleWhen?: Omit<components["schemas"]["Condition"], "op"> | null;
|
|
772
1593
|
} | {
|
|
773
1594
|
label: {
|
|
774
1595
|
[key: string]: string;
|
|
775
1596
|
};
|
|
776
1597
|
name: string;
|
|
777
1598
|
options: unknown;
|
|
778
|
-
|
|
1599
|
+
requiredWhen?: Omit<components["schemas"]["Condition"], "op"> | null;
|
|
779
1600
|
/** @enum {string} */
|
|
780
1601
|
type: "text";
|
|
781
1602
|
value?: unknown;
|
|
1603
|
+
visibleWhen?: Omit<components["schemas"]["Condition"], "op"> | null;
|
|
782
1604
|
} | {
|
|
783
1605
|
label: {
|
|
784
1606
|
[key: string]: string;
|
|
785
1607
|
};
|
|
786
1608
|
name: string;
|
|
787
1609
|
options: unknown;
|
|
788
|
-
|
|
1610
|
+
requiredWhen?: Omit<components["schemas"]["Condition"], "op"> | null;
|
|
789
1611
|
/** @enum {string} */
|
|
790
1612
|
type: "textarea";
|
|
791
1613
|
value?: unknown;
|
|
1614
|
+
visibleWhen?: Omit<components["schemas"]["Condition"], "op"> | null;
|
|
792
1615
|
} | {
|
|
793
1616
|
label: {
|
|
794
1617
|
[key: string]: string;
|
|
795
1618
|
};
|
|
796
1619
|
name: string;
|
|
797
1620
|
options: unknown;
|
|
798
|
-
|
|
1621
|
+
requiredWhen?: Omit<components["schemas"]["Condition"], "op"> | null;
|
|
799
1622
|
/** @enum {string} */
|
|
800
1623
|
type: "checkbox";
|
|
801
1624
|
value?: unknown;
|
|
1625
|
+
visibleWhen?: Omit<components["schemas"]["Condition"], "op"> | null;
|
|
802
1626
|
} | {
|
|
803
1627
|
label: {
|
|
804
1628
|
[key: string]: string;
|
|
805
1629
|
};
|
|
806
1630
|
name: string;
|
|
807
1631
|
options: components["schemas"]["FileOptions"];
|
|
808
|
-
|
|
1632
|
+
requiredWhen?: Omit<components["schemas"]["Condition"], "op"> | null;
|
|
809
1633
|
/** @enum {string} */
|
|
810
1634
|
type: "file";
|
|
811
1635
|
value?: unknown;
|
|
1636
|
+
visibleWhen?: Omit<components["schemas"]["Condition"], "op"> | null;
|
|
812
1637
|
} | {
|
|
813
1638
|
label: {
|
|
814
1639
|
[key: string]: string;
|
|
@@ -821,14 +1646,70 @@ interface components {
|
|
|
821
1646
|
};
|
|
822
1647
|
};
|
|
823
1648
|
options: components["schemas"]["SelectOptions"];
|
|
824
|
-
|
|
1649
|
+
requiredWhen?: Omit<components["schemas"]["Condition"], "op"> | null;
|
|
825
1650
|
/** @enum {string} */
|
|
826
1651
|
type: "select";
|
|
827
1652
|
value?: unknown;
|
|
1653
|
+
visibleWhen?: Omit<components["schemas"]["Condition"], "op"> | null;
|
|
1654
|
+
} | {
|
|
1655
|
+
label: {
|
|
1656
|
+
[key: string]: string;
|
|
1657
|
+
};
|
|
1658
|
+
name: string;
|
|
1659
|
+
options: unknown;
|
|
1660
|
+
requiredWhen?: Omit<components["schemas"]["Condition"], "op"> | null;
|
|
1661
|
+
/** @enum {string} */
|
|
1662
|
+
type: "place";
|
|
1663
|
+
value?: unknown;
|
|
1664
|
+
visibleWhen?: Omit<components["schemas"]["Condition"], "op"> | null;
|
|
828
1665
|
};
|
|
829
1666
|
InputFieldOptions: components["schemas"]["FileOptions"] | components["schemas"]["SelectOptions"] | unknown;
|
|
830
1667
|
/** @enum {string} */
|
|
831
|
-
InputFieldType: "date" | "text" | "textarea" | "checkbox" | "file" | "select";
|
|
1668
|
+
InputFieldType: "date" | "text" | "textarea" | "checkbox" | "file" | "select" | "place";
|
|
1669
|
+
/** @description Input image for document scanning. */
|
|
1670
|
+
InputImage: {
|
|
1671
|
+
pageIndex: components["schemas"]["InputImagePageIndex"];
|
|
1672
|
+
/** @description Image source identifier */
|
|
1673
|
+
source: string;
|
|
1674
|
+
/** @description Base64-encoded image data */
|
|
1675
|
+
value: string;
|
|
1676
|
+
};
|
|
1677
|
+
/**
|
|
1678
|
+
* @description Page index for input images.
|
|
1679
|
+
*
|
|
1680
|
+
* Serialized as camelCase strings for frontend compatibility:
|
|
1681
|
+
* "front" and "back".
|
|
1682
|
+
* @enum {string}
|
|
1683
|
+
*/
|
|
1684
|
+
InputImagePageIndex: "front" | "back";
|
|
1685
|
+
KybActivityLogEntry: {
|
|
1686
|
+
/** Format: uuid */
|
|
1687
|
+
actorIdentityId?: string | null;
|
|
1688
|
+
actorIdentityZid?: string | null;
|
|
1689
|
+
/** Format: date-time */
|
|
1690
|
+
createdAt?: string | null;
|
|
1691
|
+
details: unknown;
|
|
1692
|
+
eventType: string;
|
|
1693
|
+
/** Format: uuid */
|
|
1694
|
+
id: string;
|
|
1695
|
+
/** Format: uuid */
|
|
1696
|
+
kybResultId: string;
|
|
1697
|
+
};
|
|
1698
|
+
KybCommunication: {
|
|
1699
|
+
body: string;
|
|
1700
|
+
/** Format: uuid */
|
|
1701
|
+
documentRequestId?: string | null;
|
|
1702
|
+
/** Format: uuid */
|
|
1703
|
+
id: string;
|
|
1704
|
+
/** Format: uuid */
|
|
1705
|
+
kybResultId: string;
|
|
1706
|
+
recipientEmail: string;
|
|
1707
|
+
/** Format: uuid */
|
|
1708
|
+
senderIdentityId: string;
|
|
1709
|
+
/** Format: date-time */
|
|
1710
|
+
sentAt?: string | null;
|
|
1711
|
+
subject: string;
|
|
1712
|
+
};
|
|
832
1713
|
KybConfig: {
|
|
833
1714
|
articlesOfAssociation?: components["schemas"]["DocumentConfig"] | null;
|
|
834
1715
|
certificateOfIncorporation?: components["schemas"]["DocumentConfig"] | null;
|
|
@@ -864,8 +1745,62 @@ interface components {
|
|
|
864
1745
|
maxUbos: number;
|
|
865
1746
|
organizationalStructureChart?: components["schemas"]["DocumentConfig"] | null;
|
|
866
1747
|
};
|
|
1748
|
+
KybDocumentRequest: {
|
|
1749
|
+
/** @description Clarification field keys requested for review (for clarification requests only). */
|
|
1750
|
+
clarificationFields?: string[] | null;
|
|
1751
|
+
clarificationResponse?: components["schemas"]["BusinessInformationClarificationResponse"] | null;
|
|
1752
|
+
/** Format: date-time */
|
|
1753
|
+
createdAt?: string | null;
|
|
1754
|
+
description?: string | null;
|
|
1755
|
+
documentName: string;
|
|
1756
|
+
/** @description Per-field review statuses for clarification requests.
|
|
1757
|
+
* Keys are field names (e.g. "companyName"), values are the review status for that field. */
|
|
1758
|
+
fieldStatuses?: {
|
|
1759
|
+
[key: string]: components["schemas"]["FieldReviewStatus"];
|
|
1760
|
+
} | null;
|
|
1761
|
+
/** Format: date-time */
|
|
1762
|
+
fulfilledAt?: string | null;
|
|
1763
|
+
/** Format: uuid */
|
|
1764
|
+
id: string;
|
|
1765
|
+
/** Format: uuid */
|
|
1766
|
+
kybResultId: string;
|
|
1767
|
+
presignedUrl?: string | null;
|
|
1768
|
+
/** @description Snapshot of old business information field values before the client submitted updated values.
|
|
1769
|
+
* Keys are field names, values are the previous string values. */
|
|
1770
|
+
previousValues?: {
|
|
1771
|
+
[key: string]: string;
|
|
1772
|
+
} | null;
|
|
1773
|
+
requestType: components["schemas"]["KybDocumentRequestType"];
|
|
1774
|
+
/** Format: uuid */
|
|
1775
|
+
requestedByIdentityId: string;
|
|
1776
|
+
reviewReason?: components["schemas"]["KybDocumentReviewReason"] | null;
|
|
1777
|
+
status: components["schemas"]["KybDocumentRequestStatus"];
|
|
1778
|
+
/** Format: date-time */
|
|
1779
|
+
updatedAt?: string | null;
|
|
1780
|
+
uploadedFilename?: string | null;
|
|
1781
|
+
uploadedS3Key?: string | null;
|
|
1782
|
+
};
|
|
1783
|
+
/** @enum {string} */
|
|
1784
|
+
KybDocumentRequestStatus: "PENDING" | "UPLOADED" | "APPROVED" | "REJECTED";
|
|
1785
|
+
/**
|
|
1786
|
+
* @description The type of a KYB document request.
|
|
1787
|
+
*
|
|
1788
|
+
* - `Standard` — operator requests a named document (e.g. certificate of incorporation). The client uploads a file.
|
|
1789
|
+
* - `Clarification` — operator requests the client to re-confirm or update specific business information fields.
|
|
1790
|
+
* Supports per-field review via `field_statuses`.
|
|
1791
|
+
* @enum {string}
|
|
1792
|
+
*/
|
|
1793
|
+
KybDocumentRequestType: "STANDARD" | "CLARIFICATION";
|
|
1794
|
+
KybDocumentReviewReason: string | components["schemas"]["BusinessInformationClarificationResponse"];
|
|
867
1795
|
KybResult: {
|
|
1796
|
+
/** Format: date-time */
|
|
1797
|
+
assignedAt?: string | null;
|
|
1798
|
+
/** Format: uuid */
|
|
1799
|
+
assignedToIdentityId?: string | null;
|
|
868
1800
|
businessInformation?: components["schemas"]["BusinessInformation"] | null;
|
|
1801
|
+
businessInformationVerification?: {
|
|
1802
|
+
[key: string]: components["schemas"]["BusinessInfoFieldVerification"];
|
|
1803
|
+
} | null;
|
|
869
1804
|
/** Format: date-time */
|
|
870
1805
|
createdAt?: string | null;
|
|
871
1806
|
directorDefinitions?: components["schemas"]["DirectorDefinition"][] | null;
|
|
@@ -873,8 +1808,11 @@ interface components {
|
|
|
873
1808
|
flowStep?: Omit<components["schemas"]["FlowStep"], "type"> | null;
|
|
874
1809
|
/** Format: uuid */
|
|
875
1810
|
flowStepId?: string | null;
|
|
1811
|
+
/** Format: date-time */
|
|
1812
|
+
fundedAt?: string | null;
|
|
876
1813
|
/** Format: uuid */
|
|
877
1814
|
id: string;
|
|
1815
|
+
nextAction?: components["schemas"]["NextAction"] | null;
|
|
878
1816
|
pepAndSanctionsStatus: components["schemas"]["PepAndSanctionsStatus"];
|
|
879
1817
|
reason?: string | null;
|
|
880
1818
|
report?: string | null;
|
|
@@ -885,6 +1823,87 @@ interface components {
|
|
|
885
1823
|
/** Format: uuid */
|
|
886
1824
|
verificationRequestId?: string | null;
|
|
887
1825
|
};
|
|
1826
|
+
/** @description KYB (Know Your Business) step output for workflow decisions. */
|
|
1827
|
+
KybStepOutput: {
|
|
1828
|
+
businessName?: string | null;
|
|
1829
|
+
country?: string | null;
|
|
1830
|
+
moderationStatus?: components["schemas"]["ModerationResultStatus"] | null;
|
|
1831
|
+
pepAndSanctionsStatus?: components["schemas"]["PepAndSanctionsStatus"] | null;
|
|
1832
|
+
registrationNumber?: string | null;
|
|
1833
|
+
status: components["schemas"]["ResultStatus"];
|
|
1834
|
+
};
|
|
1835
|
+
/** @enum {string} */
|
|
1836
|
+
Likelihood: "No Match" | "Very Low" | "low" | "medium" | "high" | "Very High" | "Exact Match";
|
|
1837
|
+
ListAllFlowResultsResponse: {
|
|
1838
|
+
page: components["schemas"]["FlowResult"][];
|
|
1839
|
+
/** Format: int64 */
|
|
1840
|
+
totalCount: number;
|
|
1841
|
+
};
|
|
1842
|
+
ListAllUsersResponse: {
|
|
1843
|
+
page: components["schemas"]["Identity"][];
|
|
1844
|
+
/** Format: int64 */
|
|
1845
|
+
totalCount: number;
|
|
1846
|
+
};
|
|
1847
|
+
ListOrganizationApiKeysResponse: {
|
|
1848
|
+
page: components["schemas"]["ZypheApiKey"][];
|
|
1849
|
+
/** Format: int64 */
|
|
1850
|
+
totalCount: number;
|
|
1851
|
+
};
|
|
1852
|
+
ListOrganizationFlowResultHistoryResponse: {
|
|
1853
|
+
page: components["schemas"]["VerificationRequest"][];
|
|
1854
|
+
/** Format: int64 */
|
|
1855
|
+
totalCount: number;
|
|
1856
|
+
};
|
|
1857
|
+
ListOrganizationFlowResultsResponse: {
|
|
1858
|
+
page: components["schemas"]["FlowResult"][];
|
|
1859
|
+
/** Format: int64 */
|
|
1860
|
+
totalCount: number;
|
|
1861
|
+
};
|
|
1862
|
+
ListOrganizationFlowsResponse: {
|
|
1863
|
+
page: components["schemas"]["Flow"][];
|
|
1864
|
+
/** Format: int64 */
|
|
1865
|
+
totalCount: number;
|
|
1866
|
+
};
|
|
1867
|
+
ListOrganizationFormsResponse: {
|
|
1868
|
+
page: components["schemas"]["Form"][];
|
|
1869
|
+
/** Format: int64 */
|
|
1870
|
+
totalCount: number;
|
|
1871
|
+
};
|
|
1872
|
+
ListOrganizationInvitesResponse: {
|
|
1873
|
+
page: components["schemas"]["OrganizationInvite"][];
|
|
1874
|
+
/** Format: int64 */
|
|
1875
|
+
totalCount: number;
|
|
1876
|
+
};
|
|
1877
|
+
ListOrganizationUsersResponse: {
|
|
1878
|
+
page: components["schemas"]["Identity"][];
|
|
1879
|
+
/** Format: int64 */
|
|
1880
|
+
totalCount: number;
|
|
1881
|
+
};
|
|
1882
|
+
ListOrganizationVerificationRequestsResponse: {
|
|
1883
|
+
page: components["schemas"]["VerificationRequest"][];
|
|
1884
|
+
/** Format: int64 */
|
|
1885
|
+
totalCount: number;
|
|
1886
|
+
};
|
|
1887
|
+
ListOrganizationsResponse: {
|
|
1888
|
+
page: components["schemas"]["Organization"][];
|
|
1889
|
+
/** Format: int64 */
|
|
1890
|
+
totalCount: number;
|
|
1891
|
+
};
|
|
1892
|
+
ListScreeningDetailsResponse: {
|
|
1893
|
+
page: components["schemas"]["MatchReportData"][];
|
|
1894
|
+
/** Format: int64 */
|
|
1895
|
+
totalCount: number;
|
|
1896
|
+
};
|
|
1897
|
+
ListSharedKycResultsResponse: {
|
|
1898
|
+
page: components["schemas"]["FlowResult"][];
|
|
1899
|
+
/** Format: int64 */
|
|
1900
|
+
totalCount: number;
|
|
1901
|
+
};
|
|
1902
|
+
ListUserInvitesResponse: {
|
|
1903
|
+
page: components["schemas"]["OrganizationInvite"][];
|
|
1904
|
+
/** Format: int64 */
|
|
1905
|
+
totalCount: number;
|
|
1906
|
+
};
|
|
888
1907
|
LivenessConfig: {
|
|
889
1908
|
/** @description When `true` the liveness step also performs a biometric match against the stored portrait.
|
|
890
1909
|
* Set to `false` to keep the liveness UX but skip biometric verification. */
|
|
@@ -900,17 +1919,60 @@ interface components {
|
|
|
900
1919
|
* @example 5
|
|
901
1920
|
*/
|
|
902
1921
|
maxAttempts?: number | null;
|
|
1922
|
+
/** @description When `true`, passive liveness (selfie-only, no head movements) is used instead
|
|
1923
|
+
* of active challenge-based liveness. Configured by admin only. Defaults to `false`. */
|
|
1924
|
+
passiveLiveness?: boolean;
|
|
1925
|
+
performAntispoof?: boolean | null;
|
|
903
1926
|
thresholds?: {
|
|
904
1927
|
[key: string]: number;
|
|
905
1928
|
} | null;
|
|
906
1929
|
};
|
|
907
1930
|
/** @enum {string} */
|
|
908
1931
|
LivenessConfigThreshold: "portraitMatchPercent" | "biometricMatchPercent";
|
|
1932
|
+
/** @description Liveness check step output for workflow decisions. */
|
|
1933
|
+
LivenessStepOutput: {
|
|
1934
|
+
status: components["schemas"]["ResultStatus"];
|
|
1935
|
+
};
|
|
1936
|
+
LivenessUploadUrl: {
|
|
1937
|
+
presignedUrl: string;
|
|
1938
|
+
s3Key: string;
|
|
1939
|
+
};
|
|
909
1940
|
/**
|
|
910
1941
|
* @description Locale identifier
|
|
911
1942
|
* @enum {string}
|
|
912
1943
|
*/
|
|
913
1944
|
Locale: "en" | "it" | "de" | "es" | "fr" | "hi" | "id" | "pt";
|
|
1945
|
+
/**
|
|
1946
|
+
* @description Logical operators for workflow branching.
|
|
1947
|
+
* @enum {string}
|
|
1948
|
+
*/
|
|
1949
|
+
LogicalOperator: "BRANCH" | "SWITCH" | "MERGE" | "PARALLEL_SPLIT" | "PARALLEL_JOIN";
|
|
1950
|
+
/** @enum {string} */
|
|
1951
|
+
ManualReviewResultStatus: "approved" | "rejected" | "failed";
|
|
1952
|
+
MatchDetail: {
|
|
1953
|
+
internalInfo?: string | null;
|
|
1954
|
+
matchCriteria?: string | null;
|
|
1955
|
+
/** Format: int32 */
|
|
1956
|
+
matchCriteriaNumeric?: number | null;
|
|
1957
|
+
matchedEntity?: string | null;
|
|
1958
|
+
};
|
|
1959
|
+
MatchReportData: {
|
|
1960
|
+
category?: string | null;
|
|
1961
|
+
database?: string | null;
|
|
1962
|
+
description?: string | null;
|
|
1963
|
+
entity_id?: string | null;
|
|
1964
|
+
entity_name?: string | null;
|
|
1965
|
+
likelihood?: components["schemas"]["Likelihood"] | null;
|
|
1966
|
+
mapped_entity_details?: components["schemas"]["ScreeningDetailsMappedEntityDetails"] | null;
|
|
1967
|
+
match_id?: string | null;
|
|
1968
|
+
match_level?: string | null;
|
|
1969
|
+
references?: string[] | null;
|
|
1970
|
+
/** Format: double */
|
|
1971
|
+
score?: number | null;
|
|
1972
|
+
sources?: string[] | null;
|
|
1973
|
+
sub_category?: string | null;
|
|
1974
|
+
updated_date?: string | null;
|
|
1975
|
+
};
|
|
914
1976
|
ModerateKybResultPayload: {
|
|
915
1977
|
pepAndSanctionsStatus?: components["schemas"]["PepAndSanctionsStatusField"] | null;
|
|
916
1978
|
/** Format: binary */
|
|
@@ -923,37 +1985,25 @@ interface components {
|
|
|
923
1985
|
/** @enum {string} */
|
|
924
1986
|
ModerationResultStatus: "ACQUIRING" | "PENDING_MODERATION" | "REVIEW_REQUIRED" | "SUCCESS" | "FAILED";
|
|
925
1987
|
ModerationResultStatusField: components["schemas"]["ModerationResultStatus"];
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
documentTypes?: components["schemas"]["OrchestratorDocumentType"][] | null;
|
|
931
|
-
/**
|
|
932
|
-
* Format: uuid
|
|
933
|
-
* @description Target flow ID to redirect to
|
|
934
|
-
*/
|
|
935
|
-
targetFlowId: string;
|
|
936
|
-
};
|
|
937
|
-
OrchestratorConfig: {
|
|
938
|
-
/** @description Whether to collect document type from user (required field for untagged deserialization) */
|
|
939
|
-
collectDocumentType: boolean;
|
|
940
|
-
/** @description Ordered list of conditions (first match wins) */
|
|
941
|
-
conditions?: components["schemas"]["OrchestratorCondition"][];
|
|
1988
|
+
/** @enum {string} */
|
|
1989
|
+
NextAction: "CLIENT" | "RM" | "COMPLIANCE" | "SUPPORT" | "FUNDED" | "DENIED";
|
|
1990
|
+
/** @description Position of a node in the visual editor. */
|
|
1991
|
+
NodePosition: {
|
|
942
1992
|
/**
|
|
943
|
-
* Format:
|
|
944
|
-
* @description
|
|
1993
|
+
* Format: double
|
|
1994
|
+
* @description X coordinate
|
|
945
1995
|
*/
|
|
946
|
-
|
|
1996
|
+
x: number;
|
|
947
1997
|
/**
|
|
948
|
-
*
|
|
949
|
-
* @
|
|
1998
|
+
* Format: double
|
|
1999
|
+
* @description Y coordinate
|
|
950
2000
|
*/
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
2001
|
+
y: number;
|
|
2002
|
+
};
|
|
2003
|
+
NormalizedEmail: {
|
|
2004
|
+
/** @example user@example.com */
|
|
2005
|
+
value: string;
|
|
954
2006
|
};
|
|
955
|
-
/** @enum {string} */
|
|
956
|
-
OrchestratorDocumentType: "ID_CARD" | "DRIVER_LICENSE" | "PASSPORT";
|
|
957
2007
|
Organization: {
|
|
958
2008
|
address: string;
|
|
959
2009
|
country: string;
|
|
@@ -973,6 +2023,42 @@ interface components {
|
|
|
973
2023
|
updatedAt?: string | null;
|
|
974
2024
|
website: string;
|
|
975
2025
|
};
|
|
2026
|
+
OrganizationInvite: {
|
|
2027
|
+
/** Format: date-time */
|
|
2028
|
+
createdAt?: string | null;
|
|
2029
|
+
email: string;
|
|
2030
|
+
/** Format: uuid */
|
|
2031
|
+
id: string;
|
|
2032
|
+
inviter?: components["schemas"]["OrganizationInviterInfo"] | null;
|
|
2033
|
+
/** Format: uuid */
|
|
2034
|
+
organizationId: string;
|
|
2035
|
+
revoked?: boolean | null;
|
|
2036
|
+
/** Format: date-time */
|
|
2037
|
+
revokedAt?: string | null;
|
|
2038
|
+
role: components["schemas"]["Role"];
|
|
2039
|
+
used: boolean;
|
|
2040
|
+
/** Format: date-time */
|
|
2041
|
+
validBefore: string;
|
|
2042
|
+
};
|
|
2043
|
+
OrganizationInviterInfo: {
|
|
2044
|
+
email?: string | null;
|
|
2045
|
+
role: components["schemas"]["Role"];
|
|
2046
|
+
};
|
|
2047
|
+
PagedActivityLogResponse: {
|
|
2048
|
+
page: components["schemas"]["KybActivityLogEntry"][];
|
|
2049
|
+
/** Format: int64 */
|
|
2050
|
+
totalCount: number;
|
|
2051
|
+
};
|
|
2052
|
+
PagedCommunicationsResponse: {
|
|
2053
|
+
page: components["schemas"]["KybCommunication"][];
|
|
2054
|
+
/** Format: int64 */
|
|
2055
|
+
totalCount: number;
|
|
2056
|
+
};
|
|
2057
|
+
PagedDocumentRequestsResponse: {
|
|
2058
|
+
page: components["schemas"]["KybDocumentRequest"][];
|
|
2059
|
+
/** Format: int64 */
|
|
2060
|
+
totalCount: number;
|
|
2061
|
+
};
|
|
976
2062
|
Pagination: {
|
|
977
2063
|
/** @example createdAt:in:2025-01-01,2025-01-02;updatedAt:gt:2025-01-02 */
|
|
978
2064
|
filter?: string;
|
|
@@ -1024,10 +2110,14 @@ interface components {
|
|
|
1024
2110
|
/** Format: uuid */
|
|
1025
2111
|
verificationRequestId?: string | null;
|
|
1026
2112
|
};
|
|
2113
|
+
PhoneStepOutput: {
|
|
2114
|
+
status: components["schemas"]["ResultStatus"];
|
|
2115
|
+
};
|
|
1027
2116
|
Plaintext: {
|
|
1028
2117
|
text: {
|
|
1029
2118
|
[key: string]: string;
|
|
1030
2119
|
};
|
|
2120
|
+
visibleWhen?: Omit<components["schemas"]["Condition"], "op"> | null;
|
|
1031
2121
|
};
|
|
1032
2122
|
PoaConfig: {
|
|
1033
2123
|
documentFilter: components["schemas"]["PoaDocumentType"][];
|
|
@@ -1065,6 +2155,67 @@ interface components {
|
|
|
1065
2155
|
/** Format: uuid */
|
|
1066
2156
|
verificationRequestId?: string | null;
|
|
1067
2157
|
};
|
|
2158
|
+
PoaStepOutput: {
|
|
2159
|
+
/** Format: int64 */
|
|
2160
|
+
documentAgeDays?: number | null;
|
|
2161
|
+
documentType?: string | null;
|
|
2162
|
+
status: components["schemas"]["ResultStatus"];
|
|
2163
|
+
};
|
|
2164
|
+
/** @description Typed representation of process_additional_data stored in DV results.
|
|
2165
|
+
*
|
|
2166
|
+
* This struct captures all the additional data associated with document
|
|
2167
|
+
* verification processing, including document scan status, image quality
|
|
2168
|
+
* checks, security checks, and liveness data.
|
|
2169
|
+
*
|
|
2170
|
+
* # Deserialization
|
|
2171
|
+
*
|
|
2172
|
+
* Supports both new abstract format and legacy Regula format. The main difference
|
|
2173
|
+
* is in the `imageQuality` field:
|
|
2174
|
+
*
|
|
2175
|
+
* **New format:**
|
|
2176
|
+
* ```json
|
|
2177
|
+
* {
|
|
2178
|
+
* "imageQuality": [
|
|
2179
|
+
* { "checkType": "focus", "result": "passed", "probability": 97 }
|
|
2180
|
+
* ]
|
|
2181
|
+
* }
|
|
2182
|
+
* ```
|
|
2183
|
+
*
|
|
2184
|
+
* **Legacy Regula format:**
|
|
2185
|
+
* ```json
|
|
2186
|
+
* {
|
|
2187
|
+
* "imageQuality": [
|
|
2188
|
+
* {
|
|
2189
|
+
* "count": 6,
|
|
2190
|
+
* "list": [
|
|
2191
|
+
* { "type": 1, "result": 0, "probability": 97, ... }
|
|
2192
|
+
* ],
|
|
2193
|
+
* "result": 0
|
|
2194
|
+
* }
|
|
2195
|
+
* ]
|
|
2196
|
+
* }
|
|
2197
|
+
* ``` */
|
|
2198
|
+
ProcessAdditionalData: {
|
|
2199
|
+
autoOneClickKycData?: components["schemas"]["AutoOneClickKycData"] | null;
|
|
2200
|
+
/** @description Biometric check data (for face matching results) */
|
|
2201
|
+
biometricCheckData?: unknown;
|
|
2202
|
+
/**
|
|
2203
|
+
* Format: date
|
|
2204
|
+
* @description Date on which a DocumentExpired webhook was last sent for this DV result.
|
|
2205
|
+
* Used by the AML worker to deduplicate repeated expiry notifications across
|
|
2206
|
+
* refresh ticks — once set, the webhook is not re-enqueued.
|
|
2207
|
+
*/
|
|
2208
|
+
documentExpiredWebhookSentAt?: string | null;
|
|
2209
|
+
/** @description Image quality check results */
|
|
2210
|
+
imageQuality?: components["schemas"]["ImageQualityCheckResult"][] | null;
|
|
2211
|
+
/** @description Raw liveness data from face verification */
|
|
2212
|
+
rawLivenessData?: unknown;
|
|
2213
|
+
/** @description Security check results (mapped by check type) */
|
|
2214
|
+
securityChecks?: {
|
|
2215
|
+
[key: string]: string;
|
|
2216
|
+
} | null;
|
|
2217
|
+
status?: components["schemas"]["DocumentScanStatus"] | null;
|
|
2218
|
+
};
|
|
1068
2219
|
ProcessAddressDocumentRequest: {
|
|
1069
2220
|
/** Format: binary */
|
|
1070
2221
|
file: Blob;
|
|
@@ -1074,6 +2225,48 @@ interface components {
|
|
|
1074
2225
|
/** Format: uuid */
|
|
1075
2226
|
verificationRequestId: string;
|
|
1076
2227
|
};
|
|
2228
|
+
ProcessDocumentSelectionPayload: {
|
|
2229
|
+
/** @description ISO 3166-1 alpha-2 country code of the document to be verified (e.g. `"US"`, `"GB"`). Optional — omit to allow any country. */
|
|
2230
|
+
country?: string | null;
|
|
2231
|
+
/**
|
|
2232
|
+
* Format: int64
|
|
2233
|
+
* @description Numeric document type identifier. Optional — omit to allow any document type.
|
|
2234
|
+
*/
|
|
2235
|
+
documentType?: number | null;
|
|
2236
|
+
};
|
|
2237
|
+
ProcessDocumentSelectionResponse: {
|
|
2238
|
+
/**
|
|
2239
|
+
* Format: uuid
|
|
2240
|
+
* @description The ID of the verification request that was updated.
|
|
2241
|
+
*/
|
|
2242
|
+
verificationRequestId: string;
|
|
2243
|
+
};
|
|
2244
|
+
ProcessIdentityDocumentPayload: {
|
|
2245
|
+
allowedDocumentTypes?: number[];
|
|
2246
|
+
browser?: string | null;
|
|
2247
|
+
countryCode: string;
|
|
2248
|
+
/** Format: int64 */
|
|
2249
|
+
forceDocumentType?: number | null;
|
|
2250
|
+
/** @description Images to process (base64-encoded, provider-agnostic format).
|
|
2251
|
+
* Either images OR (session_token + interview_id) must be provided, not both. */
|
|
2252
|
+
images?: components["schemas"]["InputImage"][];
|
|
2253
|
+
/** @description Interview/session ID for session-based providers (e.g. Incode).
|
|
2254
|
+
* If provided along with session_token, the backend will fetch results from the provider. */
|
|
2255
|
+
interviewId?: string | null;
|
|
2256
|
+
platform?: string | null;
|
|
2257
|
+
provinceCode?: string | null;
|
|
2258
|
+
requiredDocumentFields?: {
|
|
2259
|
+
[key: string]: string;
|
|
2260
|
+
};
|
|
2261
|
+
/** @description Session token for session-based providers (e.g. Incode JWT).
|
|
2262
|
+
* If provided along with interview_id, the backend will fetch results from the provider. */
|
|
2263
|
+
sessionToken?: string | null;
|
|
2264
|
+
};
|
|
2265
|
+
ProcessIdentityDocumentResponse: {
|
|
2266
|
+
jobId: string;
|
|
2267
|
+
/** Format: uuid */
|
|
2268
|
+
verificationRequestId: string;
|
|
2269
|
+
};
|
|
1077
2270
|
ProcessImagesOverrides: {
|
|
1078
2271
|
authParams?: {
|
|
1079
2272
|
[key: string]: unknown;
|
|
@@ -1081,8 +2274,19 @@ interface components {
|
|
|
1081
2274
|
checkAuth?: boolean | null;
|
|
1082
2275
|
scenario?: string | null;
|
|
1083
2276
|
};
|
|
2277
|
+
ProcessLivenessPayload: {
|
|
2278
|
+
/** Format: uuid */
|
|
2279
|
+
challengeId: string;
|
|
2280
|
+
/** Format: int32 */
|
|
2281
|
+
movementImagesQuantity: number;
|
|
2282
|
+
};
|
|
2283
|
+
ProcessLivenessResponse: {
|
|
2284
|
+
jobId: string;
|
|
2285
|
+
/** Format: uuid */
|
|
2286
|
+
verificationRequestId: string;
|
|
2287
|
+
};
|
|
1084
2288
|
/** @enum {string} */
|
|
1085
|
-
ProductType: "UNKNOWN" | "
|
|
2289
|
+
ProductType: "UNKNOWN" | "DOCSCAN" | "LIVENESS" | "POA" | "KYB" | "KYC_PASSPORT" | "SPID" | "PHONE" | "WALLET" | "EXPORT_API" | "EXPORT_UI" | "BUSINESS_VERIFICATION" | "FLOW_BUILDER" | "GEOLOCATION" | "FORM";
|
|
1086
2290
|
/** @enum {string} */
|
|
1087
2291
|
RequiredDocumentField: "firstName" | "middleName" | "lastName" | "dateOfBirth" | "phone" | "email" | "street" | "city" | "state" | "postcode" | "country" | "socialSecurityNumber";
|
|
1088
2292
|
ResultControlOperation: {
|
|
@@ -1108,6 +2312,11 @@ interface components {
|
|
|
1108
2312
|
};
|
|
1109
2313
|
/** @enum {string} */
|
|
1110
2314
|
ResultStatus: "PASSED" | "FAILED" | "PARTIAL" | "REQUIRES_MANUAL_REVIEW" | "REQUIRES_ADMIN_REVIEW";
|
|
2315
|
+
ReviewSuggestion: {
|
|
2316
|
+
/** Format: double */
|
|
2317
|
+
confidence: number;
|
|
2318
|
+
suggestion: components["schemas"]["ManualReviewResultStatus"];
|
|
2319
|
+
};
|
|
1111
2320
|
/** @enum {string} */
|
|
1112
2321
|
RiskLevel: "low" | "medium" | "high" | "critical";
|
|
1113
2322
|
RiskScore: {
|
|
@@ -1117,23 +2326,65 @@ interface components {
|
|
|
1117
2326
|
sourcesCount: number;
|
|
1118
2327
|
};
|
|
1119
2328
|
/** @enum {string} */
|
|
1120
|
-
Role: "ANONYMOUS" | "GUEST" | "
|
|
2329
|
+
Role: "ANONYMOUS" | "GUEST" | "ORG_ADMIN" | "ORG_OPERATOR" | "ORG_DEVELOPER" | "AML_OFFICER" | "PARTNER_USER" | "PLATFORM_OPERATOR" | "PLATFORM_SALES" | "PLATFORM_ADMIN" | "SDK";
|
|
2330
|
+
/** @description Rotation thresholds (in degrees) for head movement verification */
|
|
2331
|
+
RotationThresholds: {
|
|
2332
|
+
/** Format: float */
|
|
2333
|
+
down: number;
|
|
2334
|
+
/** Format: float */
|
|
2335
|
+
left: number;
|
|
2336
|
+
/** Format: float */
|
|
2337
|
+
right: number;
|
|
2338
|
+
/** Format: float */
|
|
2339
|
+
up: number;
|
|
2340
|
+
};
|
|
2341
|
+
ScreeningDetailsMappedEntityDetails: {
|
|
2342
|
+
addressLine1?: components["schemas"]["MatchDetail"] | null;
|
|
2343
|
+
city?: components["schemas"]["MatchDetail"] | null;
|
|
2344
|
+
country?: components["schemas"]["MatchDetail"] | null;
|
|
2345
|
+
dateOfBirth?: components["schemas"]["MatchDetail"] | null;
|
|
2346
|
+
firstName?: components["schemas"]["MatchDetail"] | null;
|
|
2347
|
+
id?: components["schemas"]["MatchDetail"] | null;
|
|
2348
|
+
lastName?: components["schemas"]["MatchDetail"] | null;
|
|
2349
|
+
middleName?: components["schemas"]["MatchDetail"] | null;
|
|
2350
|
+
passportNumber?: components["schemas"]["MatchDetail"] | null;
|
|
2351
|
+
postalCode?: components["schemas"]["MatchDetail"] | null;
|
|
2352
|
+
};
|
|
1121
2353
|
SdkCreateVerificationRequestPayload: {
|
|
2354
|
+
/** @description Arbitrary key-value metadata to attach to this verification request. */
|
|
1122
2355
|
customData?: {
|
|
1123
2356
|
[key: string]: unknown;
|
|
1124
2357
|
} | null;
|
|
2358
|
+
/** @description Email address of the user being verified. */
|
|
1125
2359
|
email: string;
|
|
1126
|
-
/**
|
|
2360
|
+
/**
|
|
2361
|
+
* Format: uuid
|
|
2362
|
+
* @description The ID of the flow step to start or resume for this user.
|
|
2363
|
+
*/
|
|
1127
2364
|
flowStepId: string;
|
|
1128
2365
|
};
|
|
1129
2366
|
SdkCreateVerificationRequestResponse: {
|
|
1130
|
-
email
|
|
2367
|
+
/** @description The email address associated with the verified user's identity, if available. */
|
|
2368
|
+
email?: string | null;
|
|
2369
|
+
/** @description Slug of the flow this verification request belongs to. */
|
|
1131
2370
|
flowSlug: string;
|
|
2371
|
+
/** @description Slug of the current flow step (the first incomplete step). */
|
|
1132
2372
|
flowStepSlug: string;
|
|
2373
|
+
/** @description Whether this verification request was created in sandbox mode. */
|
|
1133
2374
|
isSandbox: boolean;
|
|
1134
2375
|
verificationRequest: components["schemas"]["VerificationRequest"];
|
|
2376
|
+
/** @description Zyphe user identifier (ZID) for the verified user. */
|
|
2377
|
+
zid: string;
|
|
2378
|
+
/** @description Short-lived signed access token used to authenticate subsequent SDK calls on behalf of this user. */
|
|
2379
|
+
zypheAccessSig: string;
|
|
2380
|
+
/** @description JWT for the verified user's session. Pass this as a bearer token for user-scoped SDK calls. */
|
|
1135
2381
|
zypheToken: string;
|
|
1136
2382
|
};
|
|
2383
|
+
/**
|
|
2384
|
+
* @description Canonical security/authenticity check types.
|
|
2385
|
+
* @enum {string}
|
|
2386
|
+
*/
|
|
2387
|
+
SecurityCheckType: "uv_luminescence" | "ir_b900" | "image_pattern" | "axial_protection" | "uv_fibers" | "ir_visibility" | "ocr_security_text" | "ipi" | "photo_embedding" | "photo_area" | "portrait_comparison" | "holograms" | "kinegram" | "letter_screen" | "barcode" | "mrz" | "extended_mrz" | "extended_ocr" | "liveness" | "electronic_device" | "black_and_white_copy" | "unknown";
|
|
1137
2388
|
SelectOptions: {
|
|
1138
2389
|
isOtherAllowed: boolean;
|
|
1139
2390
|
values: string[];
|
|
@@ -1141,13 +2392,20 @@ interface components {
|
|
|
1141
2392
|
Settings: {
|
|
1142
2393
|
/** Format: date-time */
|
|
1143
2394
|
createdAt?: string | null;
|
|
2395
|
+
delayFlowResults?: boolean | null;
|
|
2396
|
+
emailNotifications?: string[] | null;
|
|
1144
2397
|
extendedWebhook?: boolean | null;
|
|
1145
2398
|
primaryColor?: string | null;
|
|
1146
2399
|
profileImage?: string | null;
|
|
2400
|
+
published?: boolean;
|
|
1147
2401
|
secondaryColor?: string | null;
|
|
2402
|
+
skipSignedAccess?: boolean;
|
|
2403
|
+
slackNotifications?: string[] | null;
|
|
2404
|
+
telegramNotifications?: string[] | null;
|
|
1148
2405
|
/** Format: date-time */
|
|
1149
2406
|
updatedAt?: string | null;
|
|
1150
2407
|
webhookSecret?: string | null;
|
|
2408
|
+
webhookWithLegacy?: boolean | null;
|
|
1151
2409
|
};
|
|
1152
2410
|
/** @enum {string} */
|
|
1153
2411
|
SiwxChain: "ETHEREUM" | "ETHEREUM_TESTNET" | "SOLANA" | "SOLANA_TESTNET";
|
|
@@ -1157,6 +2415,8 @@ interface components {
|
|
|
1157
2415
|
[key: string]: string;
|
|
1158
2416
|
};
|
|
1159
2417
|
};
|
|
2418
|
+
/** @enum {string} */
|
|
2419
|
+
SpidDocumentType: "ITALIAN_SPID" | "AADHAAR";
|
|
1160
2420
|
SpidResult: {
|
|
1161
2421
|
/** Format: date-time */
|
|
1162
2422
|
createdAt?: string | null;
|
|
@@ -1193,6 +2453,15 @@ interface components {
|
|
|
1193
2453
|
spidCode?: string | null;
|
|
1194
2454
|
username?: string | null;
|
|
1195
2455
|
};
|
|
2456
|
+
SpidStepOutput: {
|
|
2457
|
+
status: components["schemas"]["ResultStatus"];
|
|
2458
|
+
};
|
|
2459
|
+
StartGeolocationVerificationRequest: Record<string, never>;
|
|
2460
|
+
StartGeolocationVerificationResponse: {
|
|
2461
|
+
nonce: string;
|
|
2462
|
+
/** Format: uuid */
|
|
2463
|
+
verificationRequestId: string;
|
|
2464
|
+
};
|
|
1196
2465
|
StartPhoneVerificationRequest: {
|
|
1197
2466
|
phoneNumberE164: string;
|
|
1198
2467
|
};
|
|
@@ -1223,7 +2492,7 @@ interface components {
|
|
|
1223
2492
|
*/
|
|
1224
2493
|
Uuid: string;
|
|
1225
2494
|
/** @enum {string} */
|
|
1226
|
-
ValidationMessages: "validation_unexpected" | "validation_invalid_file_format" | "validation_organization_slug_exists" | "validation_flow_slug_exists" | "validation_flow_id_mismatch" | "validation_flow_step_name_exists" | "validation_consents_not_granted" | "validation_kyb_config_match" | "validation_kyb_config_already_uses_this_kyc_flow_id" | "validation_kyb_moderation_status_wrong" | "validation_form_name_exists" | "validation_database_error" | "validation_flow_name_invalid" | "validation_flow_slug_name_invalid" | "validation_flow_step_name_invalid" | "validation_flow_step_order_duplicate" | "validation_flow_step_order_invalid" | "validation_flow_step_id_mismatch" | "validation_password_too_short" | "validation_password_no_uppercase" | "validation_password_no_lowercase" | "validation_password_no_number" | "validation_password_no_special_character" | "validation_password_contains_whitespace_or_control" | "validation_emails_empty" | "validation_email_invalid" | "validation_emails_too_many" | "validation_emails_duplicate" | "validation_invite_to_self" | "validation_e164_format" | "validation_flow_step_already_has_reference" | "validation_flow_not_found" | "validation_empty_parameter" | "validation_form_not_found";
|
|
2495
|
+
ValidationMessages: "validation_unexpected" | "validation_invalid_file_format" | "validation_organization_slug_exists" | "validation_flow_slug_exists" | "validation_flow_id_mismatch" | "validation_flow_step_name_exists" | "validation_consents_not_granted" | "validation_kyb_config_match" | "validation_kyb_config_already_uses_this_kyc_flow_id" | "validation_kyb_moderation_status_wrong" | "validation_form_name_exists" | "validation_database_error" | "validation_flow_name_invalid" | "validation_flow_slug_name_invalid" | "validation_flow_step_name_invalid" | "validation_flow_step_order_duplicate" | "validation_flow_step_order_invalid" | "validation_flow_step_id_mismatch" | "validation_password_too_short" | "validation_password_no_uppercase" | "validation_password_no_lowercase" | "validation_password_no_number" | "validation_password_no_special_character" | "validation_password_contains_whitespace_or_control" | "validation_emails_empty" | "validation_email_invalid" | "validation_emails_too_many" | "validation_emails_duplicate" | "validation_invite_to_self" | "validation_e164_format" | "validation_flow_step_already_has_reference" | "validation_flow_not_found" | "validation_empty_parameter" | "validation_form_not_found" | "validation_organization_not_found" | "validation_workflow_graph_invalid" | "validation_invalid_role_for_invitation" | "validation_form_condition_forward_ref";
|
|
1227
2496
|
VaultUnlockPasskeyData: {
|
|
1228
2497
|
/** @description Passkey challenge for vault unlock (base64url) */
|
|
1229
2498
|
challenge: string;
|
|
@@ -1250,6 +2519,7 @@ interface components {
|
|
|
1250
2519
|
/** Format: uuid */
|
|
1251
2520
|
flowStepId: string;
|
|
1252
2521
|
formResult?: components["schemas"]["FormResult"] | null;
|
|
2522
|
+
geolocationResult?: components["schemas"]["GeolocationResult"] | null;
|
|
1253
2523
|
/** Format: uuid */
|
|
1254
2524
|
id: string;
|
|
1255
2525
|
identity?: components["schemas"]["Identity"] | null;
|
|
@@ -1270,6 +2540,21 @@ interface components {
|
|
|
1270
2540
|
};
|
|
1271
2541
|
/** @enum {string} */
|
|
1272
2542
|
VerificationRequestStatus: "PENDING" | "COMPLETED" | "FAILED" | "CANCELLED" | "QUEUED" | "PROCESSING" | "REQUIRES_MANUAL_REVIEW" | "REQUIRES_ADMIN_REVIEW" | "REJECTED";
|
|
2543
|
+
VerifyGeolocationProofRequest: {
|
|
2544
|
+
cloudflareTrace?: components["schemas"]["CloudflareTracePayload"] | null;
|
|
2545
|
+
coords: components["schemas"]["GeolocationCoordinates"];
|
|
2546
|
+
deviceFingerprint: string;
|
|
2547
|
+
isSecureContext: boolean;
|
|
2548
|
+
nonce: string;
|
|
2549
|
+
permissionStatus: string;
|
|
2550
|
+
rtcCandidates: string[];
|
|
2551
|
+
/** Format: int64 */
|
|
2552
|
+
timestamp: number;
|
|
2553
|
+
};
|
|
2554
|
+
VerifyGeolocationProofResponse: {
|
|
2555
|
+
/** Format: uuid */
|
|
2556
|
+
verificationRequestId: string;
|
|
2557
|
+
};
|
|
1273
2558
|
VerifyPhoneCodeRequest: {
|
|
1274
2559
|
code: string;
|
|
1275
2560
|
phoneNumberE164: string;
|
|
@@ -1315,40 +2600,1262 @@ interface components {
|
|
|
1315
2600
|
walletAddress: string;
|
|
1316
2601
|
walletChain: string;
|
|
1317
2602
|
};
|
|
1318
|
-
|
|
1319
|
-
|
|
1320
|
-
|
|
1321
|
-
|
|
1322
|
-
|
|
1323
|
-
|
|
1324
|
-
|
|
1325
|
-
|
|
1326
|
-
|
|
1327
|
-
|
|
1328
|
-
|
|
1329
|
-
|
|
1330
|
-
|
|
1331
|
-
|
|
2603
|
+
WalletStepOutput: {
|
|
2604
|
+
status: components["schemas"]["ResultStatus"];
|
|
2605
|
+
};
|
|
2606
|
+
/** @description Context data available to JDM rules during flow evaluation.
|
|
2607
|
+
*
|
|
2608
|
+
* This structure is serialized to JSON and passed to the Zen Engine for evaluation.
|
|
2609
|
+
* JDM rules can access any field to make routing decisions.
|
|
2610
|
+
*
|
|
2611
|
+
* # Example JDM Access Patterns
|
|
2612
|
+
*
|
|
2613
|
+
* In JDM rules, you can access:
|
|
2614
|
+
* - `identity.email` - User's email address
|
|
2615
|
+
* - `jdmData.my_step_slug.data.issuingCountry` - Output from a previous step
|
|
2616
|
+
* - `customData.someKey` - Custom data passed during flow
|
|
2617
|
+
*
|
|
2618
|
+
* # Serialization
|
|
2619
|
+
*
|
|
2620
|
+
* Fields are serialized with camelCase naming to match JDM conventions. */
|
|
2621
|
+
WorkflowContext: {
|
|
2622
|
+
/** @description AML screening results */
|
|
2623
|
+
amlResults: components["schemas"]["AmlResult"][];
|
|
2624
|
+
/** @description Custom data passed during flow execution */
|
|
2625
|
+
customData: {
|
|
2626
|
+
[key: string]: unknown;
|
|
2627
|
+
};
|
|
2628
|
+
/** @description Document verification results */
|
|
2629
|
+
dvResults: components["schemas"]["DvResult"][];
|
|
2630
|
+
/** @description Form submission results */
|
|
2631
|
+
formResults: components["schemas"]["FormResult"][];
|
|
2632
|
+
identity?: components["schemas"]["Identity"] | null;
|
|
2633
|
+
/** @description Structured data from previous step executions for JDM consumption */
|
|
2634
|
+
jdmData?: {
|
|
2635
|
+
[key: string]: components["schemas"]["FlowStepOutput"];
|
|
2636
|
+
};
|
|
2637
|
+
/** @description KYB verification results */
|
|
2638
|
+
kybResults: components["schemas"]["KybResult"][];
|
|
2639
|
+
/** @description Phone verification results */
|
|
2640
|
+
phoneResults: components["schemas"]["PhoneResult"][];
|
|
2641
|
+
/** @description Proof of address results */
|
|
2642
|
+
poaResults: components["schemas"]["PoaResult"][];
|
|
2643
|
+
/** @description SPID verification results */
|
|
2644
|
+
spidResults: components["schemas"]["SpidResult"][];
|
|
2645
|
+
/** @description Wallet verification results */
|
|
2646
|
+
walletResults: components["schemas"]["WalletResult"][];
|
|
2647
|
+
};
|
|
2648
|
+
/** @description An edge connecting two nodes in the workflow graph.
|
|
2649
|
+
*
|
|
2650
|
+
* Edges represent the flow of control between nodes.
|
|
2651
|
+
* For conditional branching (from Operator nodes), edges can have labels
|
|
2652
|
+
* like "true" or "false" to indicate which path to take. */
|
|
2653
|
+
WorkflowEdge: {
|
|
2654
|
+
/**
|
|
2655
|
+
* Format: uuid
|
|
2656
|
+
* @description Unique identifier for this edge.
|
|
2657
|
+
*/
|
|
2658
|
+
id: string;
|
|
2659
|
+
/** @description Optional label for conditional edges.
|
|
2660
|
+
*
|
|
2661
|
+
* For edges from Branch operator nodes:
|
|
2662
|
+
* - "true": taken when condition evaluates to true
|
|
2663
|
+
* - "false": taken when condition evaluates to false */
|
|
2664
|
+
label?: string | null;
|
|
2665
|
+
/**
|
|
2666
|
+
* Format: uuid
|
|
2667
|
+
* @description The ID of the source node (where this edge starts).
|
|
2668
|
+
*/
|
|
2669
|
+
sourceId: string;
|
|
2670
|
+
/**
|
|
2671
|
+
* Format: uuid
|
|
2672
|
+
* @description The ID of the target node (where this edge ends).
|
|
2673
|
+
*/
|
|
2674
|
+
targetId: string;
|
|
2675
|
+
};
|
|
2676
|
+
/** @description Result of a workflow evaluation.
|
|
2677
|
+
*
|
|
2678
|
+
* The Zen Engine returns this structure after evaluating a JDM against a context.
|
|
2679
|
+
* The `next_step_slug` field determines which flow step to execute next. */
|
|
2680
|
+
WorkflowEvaluationResult: unknown & {
|
|
2681
|
+
/** @description Slug of the next step to execute.
|
|
2682
|
+
* If None, the flow continues with linear order or completes. */
|
|
2683
|
+
nextStepSlug?: string | null;
|
|
2684
|
+
};
|
|
2685
|
+
/** @description A workflow graph consisting of nodes and edges.
|
|
2686
|
+
*
|
|
2687
|
+
* The graph defines the structure of a workflow:
|
|
2688
|
+
* - One Start node where execution begins
|
|
2689
|
+
* - One or more End nodes where execution terminates
|
|
2690
|
+
* - Step nodes representing actual workflow steps
|
|
2691
|
+
* - Operator nodes for conditional branching
|
|
2692
|
+
* - Edges connecting nodes together */
|
|
2693
|
+
WorkflowGraph: {
|
|
2694
|
+
/** @description All edges connecting nodes. */
|
|
2695
|
+
edges?: components["schemas"]["WorkflowEdge"][];
|
|
2696
|
+
/** @description All nodes in the graph. */
|
|
2697
|
+
nodes?: components["schemas"]["WorkflowNode"][];
|
|
2698
|
+
};
|
|
2699
|
+
/** @description A node in the workflow graph.
|
|
2700
|
+
*
|
|
2701
|
+
* Nodes represent different types of elements in a workflow:
|
|
2702
|
+
* - `Start`: The entry point of the workflow
|
|
2703
|
+
* - `End`: A terminal point where the workflow completes
|
|
2704
|
+
* - `Step`: A workflow step that executes some action
|
|
2705
|
+
* - `Operator`: A conditional branching point */
|
|
2706
|
+
WorkflowNode: {
|
|
2707
|
+
/**
|
|
2708
|
+
* Format: uuid
|
|
2709
|
+
* @description Unique identifier for this node.
|
|
2710
|
+
*/
|
|
2711
|
+
id: string;
|
|
2712
|
+
metadata?: components["schemas"]["WorkflowNodeMetadata"] | null;
|
|
2713
|
+
/** @enum {string} */
|
|
2714
|
+
type: "START";
|
|
2715
|
+
} | {
|
|
2716
|
+
/**
|
|
2717
|
+
* Format: uuid
|
|
2718
|
+
* @description Unique identifier for this node.
|
|
2719
|
+
*/
|
|
2720
|
+
id: string;
|
|
2721
|
+
metadata?: components["schemas"]["WorkflowNodeMetadata"] | null;
|
|
2722
|
+
/** @enum {string} */
|
|
2723
|
+
type: "END";
|
|
2724
|
+
} | {
|
|
2725
|
+
/**
|
|
2726
|
+
* Format: uuid
|
|
2727
|
+
* @description Unique identifier for this node.
|
|
2728
|
+
*/
|
|
2729
|
+
id: string;
|
|
2730
|
+
metadata?: components["schemas"]["WorkflowNodeMetadata"] | null;
|
|
2731
|
+
/** @description The slug of the flow step this node represents. */
|
|
2732
|
+
stepSlug: string;
|
|
2733
|
+
/** @enum {string} */
|
|
2734
|
+
type: "STEP";
|
|
2735
|
+
} | {
|
|
2736
|
+
/** @description The branches to evaluate (required for Switch operator). */
|
|
2737
|
+
branches?: components["schemas"]["BranchCondition"][] | null;
|
|
2738
|
+
condition?: Omit<components["schemas"]["Condition"], "op"> | null;
|
|
2739
|
+
/**
|
|
2740
|
+
* Format: uuid
|
|
2741
|
+
* @description Unique identifier for this node.
|
|
2742
|
+
*/
|
|
2743
|
+
id: string;
|
|
2744
|
+
metadata?: components["schemas"]["WorkflowNodeMetadata"] | null;
|
|
2745
|
+
operator: components["schemas"]["LogicalOperator"];
|
|
2746
|
+
/** @enum {string} */
|
|
2747
|
+
type: "OPERATOR";
|
|
2748
|
+
} | {
|
|
2749
|
+
config: components["schemas"]["ActionConfig"];
|
|
2750
|
+
/**
|
|
2751
|
+
* Format: uuid
|
|
2752
|
+
* @description Unique identifier for this node.
|
|
2753
|
+
*/
|
|
2754
|
+
id: string;
|
|
2755
|
+
metadata?: components["schemas"]["WorkflowNodeMetadata"] | null;
|
|
2756
|
+
/** @enum {string} */
|
|
2757
|
+
type: "ACTION";
|
|
2758
|
+
};
|
|
2759
|
+
/** @description Metadata for a workflow node.
|
|
2760
|
+
*
|
|
2761
|
+
* Contains UI-specific information like position that doesn't affect execution logic. */
|
|
2762
|
+
WorkflowNodeMetadata: {
|
|
2763
|
+
position?: components["schemas"]["NodePosition"] | null;
|
|
2764
|
+
} & {
|
|
2765
|
+
[key: string]: unknown;
|
|
2766
|
+
};
|
|
2767
|
+
/** @description A dynamic value that can be used in workflow conditions and inputs.
|
|
2768
|
+
*
|
|
2769
|
+
* This enum represents all possible value types that can flow through
|
|
2770
|
+
* the workflow engine, including primitives, arrays, and objects.
|
|
2771
|
+
*
|
|
2772
|
+
* # Serialization
|
|
2773
|
+
*
|
|
2774
|
+
* Uses `untagged` serialization to match JSON semantics directly:
|
|
2775
|
+
* - `null` → `Null`
|
|
2776
|
+
* - `true`/`false` → `Bool`
|
|
2777
|
+
* - integers → `Integer`
|
|
2778
|
+
* - floats → `Float`
|
|
2779
|
+
* - strings → `String`
|
|
2780
|
+
* - arrays → `Array`
|
|
2781
|
+
* - objects → `Object` */
|
|
2782
|
+
WorkflowValue: (Record<string, never> | null) | boolean | number | string | components["schemas"]["WorkflowValue"][] | {
|
|
2783
|
+
[key: string]: components["schemas"]["WorkflowValue"];
|
|
2784
|
+
};
|
|
2785
|
+
ZypheApiKey: {
|
|
2786
|
+
allowedOrigins: string[];
|
|
2787
|
+
/** Format: date-time */
|
|
2788
|
+
createdAt?: string | null;
|
|
2789
|
+
description?: string | null;
|
|
2790
|
+
/** Format: uuid */
|
|
2791
|
+
id: string;
|
|
2792
|
+
key: string;
|
|
2793
|
+
keyType: components["schemas"]["ApiKeyType"];
|
|
2794
|
+
name?: string | null;
|
|
2795
|
+
options: {
|
|
2796
|
+
[key: string]: unknown;
|
|
2797
|
+
};
|
|
2798
|
+
organization?: components["schemas"]["Organization"] | null;
|
|
1332
2799
|
/** Format: uuid */
|
|
1333
2800
|
organizationId: string;
|
|
1334
2801
|
/** Format: date-time */
|
|
1335
2802
|
updatedAt?: string | null;
|
|
1336
2803
|
};
|
|
1337
|
-
/**
|
|
1338
|
-
* @description Locale identifier
|
|
1339
|
-
* @enum {string}
|
|
1340
|
-
*/
|
|
1341
|
-
"zyphe_shared.types.Locale": "en" | "it" | "de" | "es" | "fr" | "hi" | "id" | "pt";
|
|
2804
|
+
/**
|
|
2805
|
+
* @description Locale identifier
|
|
2806
|
+
* @enum {string}
|
|
2807
|
+
*/
|
|
2808
|
+
"zyphe_shared.types.Locale": "en" | "it" | "de" | "es" | "fr" | "hi" | "id" | "pt";
|
|
2809
|
+
};
|
|
2810
|
+
responses: never;
|
|
2811
|
+
parameters: never;
|
|
2812
|
+
requestBodies: never;
|
|
2813
|
+
headers: never;
|
|
2814
|
+
pathItems: never;
|
|
2815
|
+
}
|
|
2816
|
+
interface operations {
|
|
2817
|
+
get_full_flow_details: {
|
|
2818
|
+
parameters: {
|
|
2819
|
+
query: {
|
|
2820
|
+
sandbox: boolean;
|
|
2821
|
+
locale?: components["schemas"]["Locale"];
|
|
2822
|
+
/** @description Signed access token (JWS). Required only when flow signed access is enabled. */
|
|
2823
|
+
zypheAccessSig?: string | null;
|
|
2824
|
+
};
|
|
2825
|
+
header?: never;
|
|
2826
|
+
path: {
|
|
2827
|
+
/** @description Flow slug */
|
|
2828
|
+
slug: string;
|
|
2829
|
+
};
|
|
2830
|
+
cookie?: never;
|
|
2831
|
+
};
|
|
2832
|
+
requestBody?: never;
|
|
2833
|
+
responses: {
|
|
2834
|
+
200: {
|
|
2835
|
+
headers: {
|
|
2836
|
+
[name: string]: unknown;
|
|
2837
|
+
};
|
|
2838
|
+
content: {
|
|
2839
|
+
"application/json": components["schemas"]["GetFullFlowResponse"];
|
|
2840
|
+
};
|
|
2841
|
+
};
|
|
2842
|
+
404: {
|
|
2843
|
+
headers: {
|
|
2844
|
+
[name: string]: unknown;
|
|
2845
|
+
};
|
|
2846
|
+
content: {
|
|
2847
|
+
"application/json": components["schemas"]["BaxeError"];
|
|
2848
|
+
};
|
|
2849
|
+
};
|
|
2850
|
+
500: {
|
|
2851
|
+
headers: {
|
|
2852
|
+
[name: string]: unknown;
|
|
2853
|
+
};
|
|
2854
|
+
content: {
|
|
2855
|
+
"application/json": components["schemas"]["BaxeError"];
|
|
2856
|
+
};
|
|
2857
|
+
};
|
|
2858
|
+
};
|
|
2859
|
+
};
|
|
2860
|
+
get_verification_request: {
|
|
2861
|
+
parameters: {
|
|
2862
|
+
query?: {
|
|
2863
|
+
/** @description Whether to use sandbox mode */
|
|
2864
|
+
sandbox?: boolean | null;
|
|
2865
|
+
};
|
|
2866
|
+
header?: never;
|
|
2867
|
+
path: {
|
|
2868
|
+
/**
|
|
2869
|
+
* @description Flow ID
|
|
2870
|
+
* @example 123e4567-e89b-12d3-a456-426614174000
|
|
2871
|
+
*/
|
|
2872
|
+
flow_id: string;
|
|
2873
|
+
/**
|
|
2874
|
+
* @description Verification Request ID
|
|
2875
|
+
* @example 123e4567-e89b-12d3-a456-426614174000
|
|
2876
|
+
*/
|
|
2877
|
+
verification_request_id: string;
|
|
2878
|
+
};
|
|
2879
|
+
cookie?: never;
|
|
2880
|
+
};
|
|
2881
|
+
requestBody?: never;
|
|
2882
|
+
responses: {
|
|
2883
|
+
200: {
|
|
2884
|
+
headers: {
|
|
2885
|
+
[name: string]: unknown;
|
|
2886
|
+
};
|
|
2887
|
+
content: {
|
|
2888
|
+
"application/json": components["schemas"]["GetVerificationRequestResponse"];
|
|
2889
|
+
};
|
|
2890
|
+
};
|
|
2891
|
+
404: {
|
|
2892
|
+
headers: {
|
|
2893
|
+
[name: string]: unknown;
|
|
2894
|
+
};
|
|
2895
|
+
content: {
|
|
2896
|
+
"application/json": components["schemas"]["BaxeError"];
|
|
2897
|
+
};
|
|
2898
|
+
};
|
|
2899
|
+
500: {
|
|
2900
|
+
headers: {
|
|
2901
|
+
[name: string]: unknown;
|
|
2902
|
+
};
|
|
2903
|
+
content: {
|
|
2904
|
+
"application/json": components["schemas"]["BaxeError"];
|
|
2905
|
+
};
|
|
2906
|
+
};
|
|
2907
|
+
};
|
|
2908
|
+
};
|
|
2909
|
+
sdk_create_verification_request: {
|
|
2910
|
+
parameters: {
|
|
2911
|
+
query: {
|
|
2912
|
+
sandbox: boolean;
|
|
2913
|
+
locale?: components["schemas"]["Locale"];
|
|
2914
|
+
};
|
|
2915
|
+
header?: never;
|
|
2916
|
+
path: {
|
|
2917
|
+
/**
|
|
2918
|
+
* @description Flow ID
|
|
2919
|
+
* @example 123e4567-e89b-12d3-a456-426614174000
|
|
2920
|
+
*/
|
|
2921
|
+
flow_id: string;
|
|
2922
|
+
};
|
|
2923
|
+
cookie?: never;
|
|
2924
|
+
};
|
|
2925
|
+
requestBody: {
|
|
2926
|
+
content: {
|
|
2927
|
+
"application/json": components["schemas"]["SdkCreateVerificationRequestPayload"];
|
|
2928
|
+
};
|
|
2929
|
+
};
|
|
2930
|
+
responses: {
|
|
2931
|
+
200: {
|
|
2932
|
+
headers: {
|
|
2933
|
+
[name: string]: unknown;
|
|
2934
|
+
};
|
|
2935
|
+
content: {
|
|
2936
|
+
"application/json": components["schemas"]["SdkCreateVerificationRequestResponse"];
|
|
2937
|
+
};
|
|
2938
|
+
};
|
|
2939
|
+
400: {
|
|
2940
|
+
headers: {
|
|
2941
|
+
[name: string]: unknown;
|
|
2942
|
+
};
|
|
2943
|
+
content: {
|
|
2944
|
+
"application/json": components["schemas"]["BaxeError"];
|
|
2945
|
+
};
|
|
2946
|
+
};
|
|
2947
|
+
409: {
|
|
2948
|
+
headers: {
|
|
2949
|
+
[name: string]: unknown;
|
|
2950
|
+
};
|
|
2951
|
+
content: {
|
|
2952
|
+
"application/json": components["schemas"]["BaxeError"];
|
|
2953
|
+
};
|
|
2954
|
+
};
|
|
2955
|
+
500: {
|
|
2956
|
+
headers: {
|
|
2957
|
+
[name: string]: unknown;
|
|
2958
|
+
};
|
|
2959
|
+
content: {
|
|
2960
|
+
"application/json": components["schemas"]["BaxeError"];
|
|
2961
|
+
};
|
|
2962
|
+
};
|
|
2963
|
+
};
|
|
2964
|
+
};
|
|
2965
|
+
sdk_get_next_step: {
|
|
2966
|
+
parameters: {
|
|
2967
|
+
query: {
|
|
2968
|
+
sandbox: boolean;
|
|
2969
|
+
locale?: components["schemas"]["Locale"];
|
|
2970
|
+
/** @description Email address of the user whose verification progress should be queried. */
|
|
2971
|
+
email: string;
|
|
2972
|
+
};
|
|
2973
|
+
header?: never;
|
|
2974
|
+
path: {
|
|
2975
|
+
/**
|
|
2976
|
+
* @description Flow ID
|
|
2977
|
+
* @example 123e4567-e89b-12d3-a456-426614174000
|
|
2978
|
+
*/
|
|
2979
|
+
flow_id: string;
|
|
2980
|
+
};
|
|
2981
|
+
cookie?: never;
|
|
2982
|
+
};
|
|
2983
|
+
requestBody?: never;
|
|
2984
|
+
responses: {
|
|
2985
|
+
200: {
|
|
2986
|
+
headers: {
|
|
2987
|
+
[name: string]: unknown;
|
|
2988
|
+
};
|
|
2989
|
+
content: {
|
|
2990
|
+
"application/json": components["schemas"]["GetNextStepResponse"];
|
|
2991
|
+
};
|
|
2992
|
+
};
|
|
2993
|
+
400: {
|
|
2994
|
+
headers: {
|
|
2995
|
+
[name: string]: unknown;
|
|
2996
|
+
};
|
|
2997
|
+
content: {
|
|
2998
|
+
"application/json": components["schemas"]["BaxeError"];
|
|
2999
|
+
};
|
|
3000
|
+
};
|
|
3001
|
+
404: {
|
|
3002
|
+
headers: {
|
|
3003
|
+
[name: string]: unknown;
|
|
3004
|
+
};
|
|
3005
|
+
content: {
|
|
3006
|
+
"application/json": components["schemas"]["BaxeError"];
|
|
3007
|
+
};
|
|
3008
|
+
};
|
|
3009
|
+
500: {
|
|
3010
|
+
headers: {
|
|
3011
|
+
[name: string]: unknown;
|
|
3012
|
+
};
|
|
3013
|
+
content: {
|
|
3014
|
+
"application/json": components["schemas"]["BaxeError"];
|
|
3015
|
+
};
|
|
3016
|
+
};
|
|
3017
|
+
};
|
|
3018
|
+
};
|
|
3019
|
+
sdk_process_dv_document: {
|
|
3020
|
+
parameters: {
|
|
3021
|
+
query?: {
|
|
3022
|
+
/** @description Use sandbox environment */
|
|
3023
|
+
sandbox?: boolean | null;
|
|
3024
|
+
};
|
|
3025
|
+
header?: never;
|
|
3026
|
+
path: {
|
|
3027
|
+
/** @description Flow ID */
|
|
3028
|
+
flow_id: string;
|
|
3029
|
+
/** @description Verification Request ID */
|
|
3030
|
+
verification_request_id: string;
|
|
3031
|
+
};
|
|
3032
|
+
cookie?: never;
|
|
3033
|
+
};
|
|
3034
|
+
requestBody: {
|
|
3035
|
+
content: {
|
|
3036
|
+
"application/json": components["schemas"]["ProcessIdentityDocumentPayload"];
|
|
3037
|
+
};
|
|
3038
|
+
};
|
|
3039
|
+
responses: {
|
|
3040
|
+
202: {
|
|
3041
|
+
headers: {
|
|
3042
|
+
[name: string]: unknown;
|
|
3043
|
+
};
|
|
3044
|
+
content: {
|
|
3045
|
+
"application/json": components["schemas"]["ProcessIdentityDocumentResponse"];
|
|
3046
|
+
};
|
|
3047
|
+
};
|
|
3048
|
+
400: {
|
|
3049
|
+
headers: {
|
|
3050
|
+
[name: string]: unknown;
|
|
3051
|
+
};
|
|
3052
|
+
content: {
|
|
3053
|
+
"application/json": components["schemas"]["BaxeError"];
|
|
3054
|
+
};
|
|
3055
|
+
};
|
|
3056
|
+
500: {
|
|
3057
|
+
headers: {
|
|
3058
|
+
[name: string]: unknown;
|
|
3059
|
+
};
|
|
3060
|
+
content: {
|
|
3061
|
+
"application/json": components["schemas"]["BaxeError"];
|
|
3062
|
+
};
|
|
3063
|
+
};
|
|
3064
|
+
};
|
|
3065
|
+
};
|
|
3066
|
+
sdk_get_liveness_challenge: {
|
|
3067
|
+
parameters: {
|
|
3068
|
+
query?: {
|
|
3069
|
+
/** @description Use sandbox environment */
|
|
3070
|
+
sandbox?: boolean | null;
|
|
3071
|
+
};
|
|
3072
|
+
header?: never;
|
|
3073
|
+
path: {
|
|
3074
|
+
/** @description Flow ID */
|
|
3075
|
+
flow_id: string;
|
|
3076
|
+
/** @description Verification Request ID */
|
|
3077
|
+
verification_request_id: string;
|
|
3078
|
+
};
|
|
3079
|
+
cookie?: never;
|
|
3080
|
+
};
|
|
3081
|
+
requestBody?: never;
|
|
3082
|
+
responses: {
|
|
3083
|
+
200: {
|
|
3084
|
+
headers: {
|
|
3085
|
+
[name: string]: unknown;
|
|
3086
|
+
};
|
|
3087
|
+
content: {
|
|
3088
|
+
"application/json": components["schemas"]["GetLivenessChallengeResponse"];
|
|
3089
|
+
};
|
|
3090
|
+
};
|
|
3091
|
+
500: {
|
|
3092
|
+
headers: {
|
|
3093
|
+
[name: string]: unknown;
|
|
3094
|
+
};
|
|
3095
|
+
content: {
|
|
3096
|
+
"application/json": components["schemas"]["BaxeError"];
|
|
3097
|
+
};
|
|
3098
|
+
};
|
|
3099
|
+
};
|
|
3100
|
+
};
|
|
3101
|
+
sdk_process_dv_liveness: {
|
|
3102
|
+
parameters: {
|
|
3103
|
+
query?: {
|
|
3104
|
+
/** @description Use sandbox environment */
|
|
3105
|
+
sandbox?: boolean | null;
|
|
3106
|
+
};
|
|
3107
|
+
header?: never;
|
|
3108
|
+
path: {
|
|
3109
|
+
/** @description Flow ID */
|
|
3110
|
+
flow_id: string;
|
|
3111
|
+
/** @description Verification Request ID */
|
|
3112
|
+
verification_request_id: string;
|
|
3113
|
+
};
|
|
3114
|
+
cookie?: never;
|
|
3115
|
+
};
|
|
3116
|
+
requestBody: {
|
|
3117
|
+
content: {
|
|
3118
|
+
"application/json": components["schemas"]["ProcessLivenessPayload"];
|
|
3119
|
+
};
|
|
3120
|
+
};
|
|
3121
|
+
responses: {
|
|
3122
|
+
202: {
|
|
3123
|
+
headers: {
|
|
3124
|
+
[name: string]: unknown;
|
|
3125
|
+
};
|
|
3126
|
+
content: {
|
|
3127
|
+
"application/json": components["schemas"]["ProcessLivenessResponse"];
|
|
3128
|
+
};
|
|
3129
|
+
};
|
|
3130
|
+
400: {
|
|
3131
|
+
headers: {
|
|
3132
|
+
[name: string]: unknown;
|
|
3133
|
+
};
|
|
3134
|
+
content: {
|
|
3135
|
+
"application/json": components["schemas"]["BaxeError"];
|
|
3136
|
+
};
|
|
3137
|
+
};
|
|
3138
|
+
500: {
|
|
3139
|
+
headers: {
|
|
3140
|
+
[name: string]: unknown;
|
|
3141
|
+
};
|
|
3142
|
+
content: {
|
|
3143
|
+
"application/json": components["schemas"]["BaxeError"];
|
|
3144
|
+
};
|
|
3145
|
+
};
|
|
3146
|
+
};
|
|
3147
|
+
};
|
|
3148
|
+
sdk_process_dv_selection: {
|
|
3149
|
+
parameters: {
|
|
3150
|
+
query?: {
|
|
3151
|
+
/** @description Use sandbox environment */
|
|
3152
|
+
sandbox?: boolean | null;
|
|
3153
|
+
};
|
|
3154
|
+
header?: never;
|
|
3155
|
+
path: {
|
|
3156
|
+
/** @description Flow ID */
|
|
3157
|
+
flow_id: string;
|
|
3158
|
+
/** @description Verification Request ID */
|
|
3159
|
+
verification_request_id: string;
|
|
3160
|
+
};
|
|
3161
|
+
cookie?: never;
|
|
3162
|
+
};
|
|
3163
|
+
requestBody: {
|
|
3164
|
+
content: {
|
|
3165
|
+
"application/json": components["schemas"]["ProcessDocumentSelectionPayload"];
|
|
3166
|
+
};
|
|
3167
|
+
};
|
|
3168
|
+
responses: {
|
|
3169
|
+
200: {
|
|
3170
|
+
headers: {
|
|
3171
|
+
[name: string]: unknown;
|
|
3172
|
+
};
|
|
3173
|
+
content: {
|
|
3174
|
+
"application/json": components["schemas"]["ProcessDocumentSelectionResponse"];
|
|
3175
|
+
};
|
|
3176
|
+
};
|
|
3177
|
+
400: {
|
|
3178
|
+
headers: {
|
|
3179
|
+
[name: string]: unknown;
|
|
3180
|
+
};
|
|
3181
|
+
content: {
|
|
3182
|
+
"application/json": components["schemas"]["BaxeError"];
|
|
3183
|
+
};
|
|
3184
|
+
};
|
|
3185
|
+
500: {
|
|
3186
|
+
headers: {
|
|
3187
|
+
[name: string]: unknown;
|
|
3188
|
+
};
|
|
3189
|
+
content: {
|
|
3190
|
+
"application/json": components["schemas"]["BaxeError"];
|
|
3191
|
+
};
|
|
3192
|
+
};
|
|
3193
|
+
};
|
|
3194
|
+
};
|
|
3195
|
+
get_completed_verification_requests: {
|
|
3196
|
+
parameters: {
|
|
3197
|
+
query: {
|
|
3198
|
+
sandbox: boolean;
|
|
3199
|
+
locale?: components["schemas"]["Locale"];
|
|
3200
|
+
};
|
|
3201
|
+
header?: never;
|
|
3202
|
+
path: {
|
|
3203
|
+
/**
|
|
3204
|
+
* @description Flow ID
|
|
3205
|
+
* @example 123e4567-e89b-12d3-a456-426614174000
|
|
3206
|
+
*/
|
|
3207
|
+
flow_id: string;
|
|
3208
|
+
};
|
|
3209
|
+
cookie?: never;
|
|
3210
|
+
};
|
|
3211
|
+
requestBody?: never;
|
|
3212
|
+
responses: {
|
|
3213
|
+
200: {
|
|
3214
|
+
headers: {
|
|
3215
|
+
[name: string]: unknown;
|
|
3216
|
+
};
|
|
3217
|
+
content: {
|
|
3218
|
+
"application/json": components["schemas"]["VerificationRequest"][];
|
|
3219
|
+
};
|
|
3220
|
+
};
|
|
3221
|
+
500: {
|
|
3222
|
+
headers: {
|
|
3223
|
+
[name: string]: unknown;
|
|
3224
|
+
};
|
|
3225
|
+
content: {
|
|
3226
|
+
"application/json": components["schemas"]["BaxeError"];
|
|
3227
|
+
};
|
|
3228
|
+
};
|
|
3229
|
+
};
|
|
3230
|
+
};
|
|
3231
|
+
sdk_list_flow_results: {
|
|
3232
|
+
parameters: {
|
|
3233
|
+
query: {
|
|
3234
|
+
pagination?: components["schemas"]["Pagination"];
|
|
3235
|
+
sandbox: boolean;
|
|
3236
|
+
locale?: components["schemas"]["Locale"];
|
|
3237
|
+
};
|
|
3238
|
+
header?: never;
|
|
3239
|
+
path: {
|
|
3240
|
+
/** @description Organization ID */
|
|
3241
|
+
organization_id: string;
|
|
3242
|
+
/** @description Flow slug to scope results to */
|
|
3243
|
+
flow_slug: string;
|
|
3244
|
+
};
|
|
3245
|
+
cookie?: never;
|
|
3246
|
+
};
|
|
3247
|
+
requestBody?: never;
|
|
3248
|
+
responses: {
|
|
3249
|
+
200: {
|
|
3250
|
+
headers: {
|
|
3251
|
+
[name: string]: unknown;
|
|
3252
|
+
};
|
|
3253
|
+
content: {
|
|
3254
|
+
"application/json": components["schemas"]["ListOrganizationFlowResultsResponse"];
|
|
3255
|
+
};
|
|
3256
|
+
};
|
|
3257
|
+
400: {
|
|
3258
|
+
headers: {
|
|
3259
|
+
[name: string]: unknown;
|
|
3260
|
+
};
|
|
3261
|
+
content: {
|
|
3262
|
+
"application/json": components["schemas"]["BaxeError"];
|
|
3263
|
+
};
|
|
3264
|
+
};
|
|
3265
|
+
401: {
|
|
3266
|
+
headers: {
|
|
3267
|
+
[name: string]: unknown;
|
|
3268
|
+
};
|
|
3269
|
+
content: {
|
|
3270
|
+
"application/json": components["schemas"]["BaxeError"];
|
|
3271
|
+
};
|
|
3272
|
+
};
|
|
3273
|
+
500: {
|
|
3274
|
+
headers: {
|
|
3275
|
+
[name: string]: unknown;
|
|
3276
|
+
};
|
|
3277
|
+
content: {
|
|
3278
|
+
"application/json": components["schemas"]["BaxeError"];
|
|
3279
|
+
};
|
|
3280
|
+
};
|
|
3281
|
+
};
|
|
3282
|
+
};
|
|
3283
|
+
get_sdk_flow_result_details: {
|
|
3284
|
+
parameters: {
|
|
3285
|
+
query: {
|
|
3286
|
+
sandbox: boolean;
|
|
3287
|
+
locale?: components["schemas"]["Locale"];
|
|
3288
|
+
};
|
|
3289
|
+
header?: never;
|
|
3290
|
+
path: {
|
|
3291
|
+
/**
|
|
3292
|
+
* @description The ID of the organization
|
|
3293
|
+
* @example 123e4567-e89b-12d3-a456-426614174000
|
|
3294
|
+
*/
|
|
3295
|
+
organization_id: string;
|
|
3296
|
+
/**
|
|
3297
|
+
* @description The ID of the flow result
|
|
3298
|
+
* @example 123e4567-e89b-12d3-a456-426614174000
|
|
3299
|
+
*/
|
|
3300
|
+
flow_result_id: string;
|
|
3301
|
+
/**
|
|
3302
|
+
* @description The slug of the flow
|
|
3303
|
+
* @example kyc-flow
|
|
3304
|
+
*/
|
|
3305
|
+
flow_slug: string;
|
|
3306
|
+
};
|
|
3307
|
+
cookie?: never;
|
|
3308
|
+
};
|
|
3309
|
+
requestBody?: never;
|
|
3310
|
+
responses: {
|
|
3311
|
+
200: {
|
|
3312
|
+
headers: {
|
|
3313
|
+
[name: string]: unknown;
|
|
3314
|
+
};
|
|
3315
|
+
content: {
|
|
3316
|
+
"application/json": components["schemas"]["FlowResult"];
|
|
3317
|
+
};
|
|
3318
|
+
};
|
|
3319
|
+
400: {
|
|
3320
|
+
headers: {
|
|
3321
|
+
[name: string]: unknown;
|
|
3322
|
+
};
|
|
3323
|
+
content: {
|
|
3324
|
+
"application/json": components["schemas"]["BaxeError"];
|
|
3325
|
+
};
|
|
3326
|
+
};
|
|
3327
|
+
401: {
|
|
3328
|
+
headers: {
|
|
3329
|
+
[name: string]: unknown;
|
|
3330
|
+
};
|
|
3331
|
+
content: {
|
|
3332
|
+
"application/json": components["schemas"]["BaxeError"];
|
|
3333
|
+
};
|
|
3334
|
+
};
|
|
3335
|
+
403: {
|
|
3336
|
+
headers: {
|
|
3337
|
+
[name: string]: unknown;
|
|
3338
|
+
};
|
|
3339
|
+
content: {
|
|
3340
|
+
"application/json": components["schemas"]["BaxeError"];
|
|
3341
|
+
};
|
|
3342
|
+
};
|
|
3343
|
+
500: {
|
|
3344
|
+
headers: {
|
|
3345
|
+
[name: string]: unknown;
|
|
3346
|
+
};
|
|
3347
|
+
content: {
|
|
3348
|
+
"application/json": components["schemas"]["BaxeError"];
|
|
3349
|
+
};
|
|
3350
|
+
};
|
|
3351
|
+
};
|
|
3352
|
+
};
|
|
3353
|
+
get_sdk_dv_result_details: {
|
|
3354
|
+
parameters: {
|
|
3355
|
+
query: {
|
|
3356
|
+
sandbox: boolean;
|
|
3357
|
+
locale?: components["schemas"]["Locale"];
|
|
3358
|
+
};
|
|
3359
|
+
header?: never;
|
|
3360
|
+
path: {
|
|
3361
|
+
/**
|
|
3362
|
+
* @description The ID of the organization
|
|
3363
|
+
* @example 123e4567-e89b-12d3-a456-426614174000
|
|
3364
|
+
*/
|
|
3365
|
+
organization_id: string;
|
|
3366
|
+
/**
|
|
3367
|
+
* @description The ID of the flow result
|
|
3368
|
+
* @example 123e4567-e89b-12d3-a456-426614174000
|
|
3369
|
+
*/
|
|
3370
|
+
flow_result_id: string;
|
|
3371
|
+
/**
|
|
3372
|
+
* @description The slug of the flow
|
|
3373
|
+
* @example flow-slug
|
|
3374
|
+
*/
|
|
3375
|
+
flow_slug: string;
|
|
3376
|
+
/**
|
|
3377
|
+
* @description The ID of the DV result
|
|
3378
|
+
* @example 123e4567-e89b-12d3-a456-426614174000
|
|
3379
|
+
*/
|
|
3380
|
+
dv_result_id: string;
|
|
3381
|
+
};
|
|
3382
|
+
cookie?: never;
|
|
3383
|
+
};
|
|
3384
|
+
requestBody?: never;
|
|
3385
|
+
responses: {
|
|
3386
|
+
200: {
|
|
3387
|
+
headers: {
|
|
3388
|
+
[name: string]: unknown;
|
|
3389
|
+
};
|
|
3390
|
+
content: {
|
|
3391
|
+
"application/x-protobuf-stream": string;
|
|
3392
|
+
};
|
|
3393
|
+
};
|
|
3394
|
+
404: {
|
|
3395
|
+
headers: {
|
|
3396
|
+
[name: string]: unknown;
|
|
3397
|
+
};
|
|
3398
|
+
content: {
|
|
3399
|
+
"application/json": components["schemas"]["BaxeError"];
|
|
3400
|
+
};
|
|
3401
|
+
};
|
|
3402
|
+
500: {
|
|
3403
|
+
headers: {
|
|
3404
|
+
[name: string]: unknown;
|
|
3405
|
+
};
|
|
3406
|
+
content: {
|
|
3407
|
+
"application/json": components["schemas"]["BaxeError"];
|
|
3408
|
+
};
|
|
3409
|
+
};
|
|
3410
|
+
};
|
|
3411
|
+
};
|
|
3412
|
+
get_sdk_poa_result_details: {
|
|
3413
|
+
parameters: {
|
|
3414
|
+
query: {
|
|
3415
|
+
sandbox: boolean;
|
|
3416
|
+
locale?: components["schemas"]["Locale"];
|
|
3417
|
+
};
|
|
3418
|
+
header?: never;
|
|
3419
|
+
path: {
|
|
3420
|
+
/**
|
|
3421
|
+
* @description The ID of the organization
|
|
3422
|
+
* @example 123e4567-e89b-12d3-a456-426614174000
|
|
3423
|
+
*/
|
|
3424
|
+
organization_id: string;
|
|
3425
|
+
/**
|
|
3426
|
+
* @description The ID of the flow result
|
|
3427
|
+
* @example 123e4567-e89b-12d3-a456-426614174000
|
|
3428
|
+
*/
|
|
3429
|
+
flow_result_id: string;
|
|
3430
|
+
/**
|
|
3431
|
+
* @description The slug of the flow
|
|
3432
|
+
* @example flow-slug
|
|
3433
|
+
*/
|
|
3434
|
+
flow_slug: string;
|
|
3435
|
+
/**
|
|
3436
|
+
* @description The ID of the POA result
|
|
3437
|
+
* @example 123e4567-e89b-12d3-a456-426614174000
|
|
3438
|
+
*/
|
|
3439
|
+
poa_result_id: string;
|
|
3440
|
+
};
|
|
3441
|
+
cookie?: never;
|
|
3442
|
+
};
|
|
3443
|
+
requestBody?: never;
|
|
3444
|
+
responses: {
|
|
3445
|
+
200: {
|
|
3446
|
+
headers: {
|
|
3447
|
+
[name: string]: unknown;
|
|
3448
|
+
};
|
|
3449
|
+
content: {
|
|
3450
|
+
"application/x-protobuf-stream": string;
|
|
3451
|
+
};
|
|
3452
|
+
};
|
|
3453
|
+
404: {
|
|
3454
|
+
headers: {
|
|
3455
|
+
[name: string]: unknown;
|
|
3456
|
+
};
|
|
3457
|
+
content: {
|
|
3458
|
+
"application/json": components["schemas"]["BaxeError"];
|
|
3459
|
+
};
|
|
3460
|
+
};
|
|
3461
|
+
500: {
|
|
3462
|
+
headers: {
|
|
3463
|
+
[name: string]: unknown;
|
|
3464
|
+
};
|
|
3465
|
+
content: {
|
|
3466
|
+
"application/json": components["schemas"]["BaxeError"];
|
|
3467
|
+
};
|
|
3468
|
+
};
|
|
3469
|
+
};
|
|
3470
|
+
};
|
|
3471
|
+
get_sdk_wallet_result_details: {
|
|
3472
|
+
parameters: {
|
|
3473
|
+
query: {
|
|
3474
|
+
sandbox: boolean;
|
|
3475
|
+
locale?: components["schemas"]["Locale"];
|
|
3476
|
+
};
|
|
3477
|
+
header?: never;
|
|
3478
|
+
path: {
|
|
3479
|
+
/**
|
|
3480
|
+
* @description The ID of the organization
|
|
3481
|
+
* @example 123e4567-e89b-12d3-a456-426614174000
|
|
3482
|
+
*/
|
|
3483
|
+
organization_id: string;
|
|
3484
|
+
/**
|
|
3485
|
+
* @description The ID of the flow result
|
|
3486
|
+
* @example 123e4567-e89b-12d3-a456-426614174000
|
|
3487
|
+
*/
|
|
3488
|
+
flow_result_id: string;
|
|
3489
|
+
/**
|
|
3490
|
+
* @description The slug of the flow
|
|
3491
|
+
* @example flow-slug
|
|
3492
|
+
*/
|
|
3493
|
+
flow_slug: string;
|
|
3494
|
+
/**
|
|
3495
|
+
* @description The ID of the wallet result
|
|
3496
|
+
* @example 123e4567-e89b-12d3-a456-426614174000
|
|
3497
|
+
*/
|
|
3498
|
+
wallet_result_id: string;
|
|
3499
|
+
};
|
|
3500
|
+
cookie?: never;
|
|
3501
|
+
};
|
|
3502
|
+
requestBody?: never;
|
|
3503
|
+
responses: {
|
|
3504
|
+
200: {
|
|
3505
|
+
headers: {
|
|
3506
|
+
[name: string]: unknown;
|
|
3507
|
+
};
|
|
3508
|
+
content: {
|
|
3509
|
+
"application/json": components["schemas"]["WalletResult"];
|
|
3510
|
+
};
|
|
3511
|
+
};
|
|
3512
|
+
404: {
|
|
3513
|
+
headers: {
|
|
3514
|
+
[name: string]: unknown;
|
|
3515
|
+
};
|
|
3516
|
+
content: {
|
|
3517
|
+
"application/json": components["schemas"]["BaxeError"];
|
|
3518
|
+
};
|
|
3519
|
+
};
|
|
3520
|
+
500: {
|
|
3521
|
+
headers: {
|
|
3522
|
+
[name: string]: unknown;
|
|
3523
|
+
};
|
|
3524
|
+
content: {
|
|
3525
|
+
"application/json": components["schemas"]["BaxeError"];
|
|
3526
|
+
};
|
|
3527
|
+
};
|
|
3528
|
+
};
|
|
3529
|
+
};
|
|
3530
|
+
get_sdk_phone_result_details: {
|
|
3531
|
+
parameters: {
|
|
3532
|
+
query: {
|
|
3533
|
+
sandbox: boolean;
|
|
3534
|
+
locale?: components["schemas"]["Locale"];
|
|
3535
|
+
};
|
|
3536
|
+
header?: never;
|
|
3537
|
+
path: {
|
|
3538
|
+
/**
|
|
3539
|
+
* @description The ID of the organization
|
|
3540
|
+
* @example 123e4567-e89b-12d3-a456-426614174000
|
|
3541
|
+
*/
|
|
3542
|
+
organization_id: string;
|
|
3543
|
+
/**
|
|
3544
|
+
* @description The ID of the flow result
|
|
3545
|
+
* @example 123e4567-e89b-12d3-a456-426614174000
|
|
3546
|
+
*/
|
|
3547
|
+
flow_result_id: string;
|
|
3548
|
+
/**
|
|
3549
|
+
* @description The slug of the flow
|
|
3550
|
+
* @example flow-slug
|
|
3551
|
+
*/
|
|
3552
|
+
flow_slug: string;
|
|
3553
|
+
/**
|
|
3554
|
+
* @description The ID of the phone result
|
|
3555
|
+
* @example 123e4567-e89b-12d3-a456-426614174000
|
|
3556
|
+
*/
|
|
3557
|
+
phone_result_id: string;
|
|
3558
|
+
};
|
|
3559
|
+
cookie?: never;
|
|
3560
|
+
};
|
|
3561
|
+
requestBody?: never;
|
|
3562
|
+
responses: {
|
|
3563
|
+
200: {
|
|
3564
|
+
headers: {
|
|
3565
|
+
[name: string]: unknown;
|
|
3566
|
+
};
|
|
3567
|
+
content: {
|
|
3568
|
+
"application/json": components["schemas"]["PhoneResult"];
|
|
3569
|
+
};
|
|
3570
|
+
};
|
|
3571
|
+
404: {
|
|
3572
|
+
headers: {
|
|
3573
|
+
[name: string]: unknown;
|
|
3574
|
+
};
|
|
3575
|
+
content: {
|
|
3576
|
+
"application/json": components["schemas"]["BaxeError"];
|
|
3577
|
+
};
|
|
3578
|
+
};
|
|
3579
|
+
500: {
|
|
3580
|
+
headers: {
|
|
3581
|
+
[name: string]: unknown;
|
|
3582
|
+
};
|
|
3583
|
+
content: {
|
|
3584
|
+
"application/json": components["schemas"]["BaxeError"];
|
|
3585
|
+
};
|
|
3586
|
+
};
|
|
3587
|
+
};
|
|
3588
|
+
};
|
|
3589
|
+
get_sdk_form_result_details: {
|
|
3590
|
+
parameters: {
|
|
3591
|
+
query: {
|
|
3592
|
+
sandbox: boolean;
|
|
3593
|
+
locale?: components["schemas"]["Locale"];
|
|
3594
|
+
};
|
|
3595
|
+
header?: never;
|
|
3596
|
+
path: {
|
|
3597
|
+
/**
|
|
3598
|
+
* @description The ID of the organization
|
|
3599
|
+
* @example 123e4567-e89b-12d3-a456-426614174000
|
|
3600
|
+
*/
|
|
3601
|
+
organization_id: string;
|
|
3602
|
+
/**
|
|
3603
|
+
* @description The ID of the flow result
|
|
3604
|
+
* @example 123e4567-e89b-12d3-a456-426614174000
|
|
3605
|
+
*/
|
|
3606
|
+
flow_result_id: string;
|
|
3607
|
+
/**
|
|
3608
|
+
* @description The slug of the flow
|
|
3609
|
+
* @example flow-slug
|
|
3610
|
+
*/
|
|
3611
|
+
flow_slug: string;
|
|
3612
|
+
/**
|
|
3613
|
+
* @description The ID of the form result
|
|
3614
|
+
* @example 123e4567-e89b-12d3-a456-426614174000
|
|
3615
|
+
*/
|
|
3616
|
+
form_result_id: string;
|
|
3617
|
+
};
|
|
3618
|
+
cookie?: never;
|
|
3619
|
+
};
|
|
3620
|
+
requestBody?: never;
|
|
3621
|
+
responses: {
|
|
3622
|
+
200: {
|
|
3623
|
+
headers: {
|
|
3624
|
+
[name: string]: unknown;
|
|
3625
|
+
};
|
|
3626
|
+
content: {
|
|
3627
|
+
"application/json": components["schemas"]["FormResult"];
|
|
3628
|
+
};
|
|
3629
|
+
};
|
|
3630
|
+
404: {
|
|
3631
|
+
headers: {
|
|
3632
|
+
[name: string]: unknown;
|
|
3633
|
+
};
|
|
3634
|
+
content: {
|
|
3635
|
+
"application/json": components["schemas"]["BaxeError"];
|
|
3636
|
+
};
|
|
3637
|
+
};
|
|
3638
|
+
500: {
|
|
3639
|
+
headers: {
|
|
3640
|
+
[name: string]: unknown;
|
|
3641
|
+
};
|
|
3642
|
+
content: {
|
|
3643
|
+
"application/json": components["schemas"]["BaxeError"];
|
|
3644
|
+
};
|
|
3645
|
+
};
|
|
3646
|
+
};
|
|
3647
|
+
};
|
|
3648
|
+
get_sdk_flow_result_details_deprecated: {
|
|
3649
|
+
parameters: {
|
|
3650
|
+
query: {
|
|
3651
|
+
sandbox: boolean;
|
|
3652
|
+
locale?: components["schemas"]["Locale"];
|
|
3653
|
+
};
|
|
3654
|
+
header?: never;
|
|
3655
|
+
path: {
|
|
3656
|
+
/**
|
|
3657
|
+
* @description The ID of the organization
|
|
3658
|
+
* @example 123e4567-e89b-12d3-a456-426614174000
|
|
3659
|
+
*/
|
|
3660
|
+
organization_id: string;
|
|
3661
|
+
/**
|
|
3662
|
+
* @description The ID of the flow result
|
|
3663
|
+
* @example 123e4567-e89b-12d3-a456-426614174000
|
|
3664
|
+
*/
|
|
3665
|
+
flow_result_id: string;
|
|
3666
|
+
};
|
|
3667
|
+
cookie?: never;
|
|
3668
|
+
};
|
|
3669
|
+
requestBody?: never;
|
|
3670
|
+
responses: {
|
|
3671
|
+
200: {
|
|
3672
|
+
headers: {
|
|
3673
|
+
[name: string]: unknown;
|
|
3674
|
+
};
|
|
3675
|
+
content: {
|
|
3676
|
+
"application/json": components["schemas"]["FlowResult"];
|
|
3677
|
+
};
|
|
3678
|
+
};
|
|
3679
|
+
400: {
|
|
3680
|
+
headers: {
|
|
3681
|
+
[name: string]: unknown;
|
|
3682
|
+
};
|
|
3683
|
+
content: {
|
|
3684
|
+
"application/json": components["schemas"]["BaxeError"];
|
|
3685
|
+
};
|
|
3686
|
+
};
|
|
3687
|
+
401: {
|
|
3688
|
+
headers: {
|
|
3689
|
+
[name: string]: unknown;
|
|
3690
|
+
};
|
|
3691
|
+
content: {
|
|
3692
|
+
"application/json": components["schemas"]["BaxeError"];
|
|
3693
|
+
};
|
|
3694
|
+
};
|
|
3695
|
+
403: {
|
|
3696
|
+
headers: {
|
|
3697
|
+
[name: string]: unknown;
|
|
3698
|
+
};
|
|
3699
|
+
content: {
|
|
3700
|
+
"application/json": components["schemas"]["BaxeError"];
|
|
3701
|
+
};
|
|
3702
|
+
};
|
|
3703
|
+
500: {
|
|
3704
|
+
headers: {
|
|
3705
|
+
[name: string]: unknown;
|
|
3706
|
+
};
|
|
3707
|
+
content: {
|
|
3708
|
+
"application/json": components["schemas"]["BaxeError"];
|
|
3709
|
+
};
|
|
3710
|
+
};
|
|
3711
|
+
};
|
|
3712
|
+
};
|
|
3713
|
+
get_sdk_dv_result_details_deprecated: {
|
|
3714
|
+
parameters: {
|
|
3715
|
+
query: {
|
|
3716
|
+
sandbox: boolean;
|
|
3717
|
+
locale?: components["schemas"]["Locale"];
|
|
3718
|
+
};
|
|
3719
|
+
header?: never;
|
|
3720
|
+
path: {
|
|
3721
|
+
/**
|
|
3722
|
+
* @description The ID of the organization
|
|
3723
|
+
* @example 123e4567-e89b-12d3-a456-426614174000
|
|
3724
|
+
*/
|
|
3725
|
+
organization_id: string;
|
|
3726
|
+
/**
|
|
3727
|
+
* @description The ID of the flow result
|
|
3728
|
+
* @example 123e4567-e89b-12d3-a456-426614174000
|
|
3729
|
+
*/
|
|
3730
|
+
flow_result_id: string;
|
|
3731
|
+
/**
|
|
3732
|
+
* @description The ID of the DV result
|
|
3733
|
+
* @example 123e4567-e89b-12d3-a456-426614174000
|
|
3734
|
+
*/
|
|
3735
|
+
dv_result_id: string;
|
|
3736
|
+
};
|
|
3737
|
+
cookie?: never;
|
|
3738
|
+
};
|
|
3739
|
+
requestBody?: never;
|
|
3740
|
+
responses: {
|
|
3741
|
+
200: {
|
|
3742
|
+
headers: {
|
|
3743
|
+
[name: string]: unknown;
|
|
3744
|
+
};
|
|
3745
|
+
content: {
|
|
3746
|
+
"application/x-protobuf-stream": string;
|
|
3747
|
+
};
|
|
3748
|
+
};
|
|
3749
|
+
404: {
|
|
3750
|
+
headers: {
|
|
3751
|
+
[name: string]: unknown;
|
|
3752
|
+
};
|
|
3753
|
+
content: {
|
|
3754
|
+
"application/json": components["schemas"]["BaxeError"];
|
|
3755
|
+
};
|
|
3756
|
+
};
|
|
3757
|
+
500: {
|
|
3758
|
+
headers: {
|
|
3759
|
+
[name: string]: unknown;
|
|
3760
|
+
};
|
|
3761
|
+
content: {
|
|
3762
|
+
"application/json": components["schemas"]["BaxeError"];
|
|
3763
|
+
};
|
|
3764
|
+
};
|
|
3765
|
+
};
|
|
3766
|
+
};
|
|
3767
|
+
get_sdk_poa_result_details_deprecated: {
|
|
3768
|
+
parameters: {
|
|
3769
|
+
query: {
|
|
3770
|
+
sandbox: boolean;
|
|
3771
|
+
locale?: components["schemas"]["Locale"];
|
|
3772
|
+
};
|
|
3773
|
+
header?: never;
|
|
3774
|
+
path: {
|
|
3775
|
+
/**
|
|
3776
|
+
* @description The ID of the organization
|
|
3777
|
+
* @example 123e4567-e89b-12d3-a456-426614174000
|
|
3778
|
+
*/
|
|
3779
|
+
organization_id: string;
|
|
3780
|
+
/**
|
|
3781
|
+
* @description The ID of the flow result
|
|
3782
|
+
* @example 123e4567-e89b-12d3-a456-426614174000
|
|
3783
|
+
*/
|
|
3784
|
+
flow_result_id: string;
|
|
3785
|
+
/**
|
|
3786
|
+
* @description The ID of the POA result
|
|
3787
|
+
* @example 123e4567-e89b-12d3-a456-426614174000
|
|
3788
|
+
*/
|
|
3789
|
+
poa_result_id: string;
|
|
3790
|
+
};
|
|
3791
|
+
cookie?: never;
|
|
3792
|
+
};
|
|
3793
|
+
requestBody?: never;
|
|
3794
|
+
responses: {
|
|
3795
|
+
200: {
|
|
3796
|
+
headers: {
|
|
3797
|
+
[name: string]: unknown;
|
|
3798
|
+
};
|
|
3799
|
+
content: {
|
|
3800
|
+
"application/x-protobuf-stream": string;
|
|
3801
|
+
};
|
|
3802
|
+
};
|
|
3803
|
+
404: {
|
|
3804
|
+
headers: {
|
|
3805
|
+
[name: string]: unknown;
|
|
3806
|
+
};
|
|
3807
|
+
content: {
|
|
3808
|
+
"application/json": components["schemas"]["BaxeError"];
|
|
3809
|
+
};
|
|
3810
|
+
};
|
|
3811
|
+
500: {
|
|
3812
|
+
headers: {
|
|
3813
|
+
[name: string]: unknown;
|
|
3814
|
+
};
|
|
3815
|
+
content: {
|
|
3816
|
+
"application/json": components["schemas"]["BaxeError"];
|
|
3817
|
+
};
|
|
3818
|
+
};
|
|
3819
|
+
};
|
|
1342
3820
|
};
|
|
1343
|
-
responses: never;
|
|
1344
|
-
parameters: never;
|
|
1345
|
-
requestBodies: never;
|
|
1346
|
-
headers: never;
|
|
1347
|
-
pathItems: never;
|
|
1348
3821
|
}
|
|
1349
3822
|
|
|
3823
|
+
declare const Environments: {
|
|
3824
|
+
readonly LOCAL: "local";
|
|
3825
|
+
readonly STAGING: "staging";
|
|
3826
|
+
readonly PRODUCTION: "production";
|
|
3827
|
+
};
|
|
3828
|
+
type Environment = (typeof Environments)[keyof typeof Environments];
|
|
3829
|
+
declare const EnvironmentConfigs: {
|
|
3830
|
+
readonly local: {
|
|
3831
|
+
readonly appUrl: "http://localhost:5173";
|
|
3832
|
+
readonly apiUrl: "http://localhost:3000";
|
|
3833
|
+
};
|
|
3834
|
+
readonly staging: {
|
|
3835
|
+
readonly appUrl: "https://app-dev.zyphe.com";
|
|
3836
|
+
readonly apiUrl: "https://api-dev.zyphe.com";
|
|
3837
|
+
};
|
|
3838
|
+
readonly production: {
|
|
3839
|
+
readonly appUrl: "https://verify.zyphe.com";
|
|
3840
|
+
readonly apiUrl: "https://api.zyphe.com";
|
|
3841
|
+
};
|
|
3842
|
+
};
|
|
3843
|
+
declare const API_KEY_HEADER = "x-api-key";
|
|
3844
|
+
|
|
1350
3845
|
type SdkCreateVerificationRequestResponse = components["schemas"]["SdkCreateVerificationRequestResponse"];
|
|
3846
|
+
type Locale = components["schemas"]["Locale"];
|
|
3847
|
+
type GetLivenessChallengeResponse = components["schemas"]["GetLivenessChallengeResponse"];
|
|
3848
|
+
type ProcessDocumentSelectionPayload = components["schemas"]["ProcessDocumentSelectionPayload"];
|
|
3849
|
+
type ProcessDocumentSelectionResponse = components["schemas"]["ProcessDocumentSelectionResponse"];
|
|
3850
|
+
type ProcessIdentityDocumentPayload = components["schemas"]["ProcessIdentityDocumentPayload"];
|
|
3851
|
+
type ProcessIdentityDocumentResponse = components["schemas"]["ProcessIdentityDocumentResponse"];
|
|
3852
|
+
type ProcessLivenessPayload = components["schemas"]["ProcessLivenessPayload"];
|
|
3853
|
+
type ProcessDvDocumentPayload = paths["/sdk/flow/{flow_id}/vr/{verification_request_id}/dv/process-dv-document"]["post"]["requestBody"]["content"]["application/json"];
|
|
3854
|
+
type ProcessDocumentSelectionRequestPayload = paths["/sdk/flow/{flow_id}/vr/{verification_request_id}/dv/process-dv-selection"]["post"]["requestBody"]["content"]["application/json"];
|
|
3855
|
+
type ProcessLivenessResponse = components["schemas"]["ProcessLivenessResponse"];
|
|
1351
3856
|
type ApiKeyType = components["schemas"]["ApiKeyType"];
|
|
3857
|
+
type FlowStepType = components["schemas"]["FlowStepType"];
|
|
3858
|
+
type BaxeError = components["schemas"]["BaxeError"];
|
|
1352
3859
|
/**
|
|
1353
3860
|
* Parameters for initializing the Zyphe iframe for a Flow.
|
|
1354
3861
|
* These will remain constant for each user that visits the Flow URL.
|
|
@@ -1391,6 +3898,14 @@ interface InitializeZypheFlowParams {
|
|
|
1391
3898
|
customData?: Record<string, string>;
|
|
1392
3899
|
}
|
|
1393
3900
|
type GetNextStepDetailsParams = Pick<InitializeZypheFlowParams, "flowId" | "isSandbox" | "email">;
|
|
3901
|
+
interface VerificationRequestParams {
|
|
3902
|
+
flowId: string;
|
|
3903
|
+
verificationRequestId: string;
|
|
3904
|
+
isSandbox: boolean;
|
|
3905
|
+
}
|
|
3906
|
+
interface ProcessDvLivenessParams extends VerificationRequestParams {
|
|
3907
|
+
payload: ProcessLivenessPayload;
|
|
3908
|
+
}
|
|
1394
3909
|
interface SDKOptions {
|
|
1395
3910
|
apiKey: string;
|
|
1396
3911
|
/**
|
|
@@ -1406,7 +3921,8 @@ interface SDKOptions {
|
|
|
1406
3921
|
* If set, the QR code displayed on desktop devices of a Document Verification flow will direct to this URL.
|
|
1407
3922
|
* If not set, the QR code will direct to the corresponding zyphe.com URL, depending upon your configured environment.
|
|
1408
3923
|
*
|
|
1409
|
-
* The URL will include the query parameters `zypheVr` and
|
|
3924
|
+
* The URL will include the query parameters `zypheVr`, `zypheToken`, and
|
|
3925
|
+
* `zypheAccessSig`.
|
|
1410
3926
|
*
|
|
1411
3927
|
* @default "https://app-dev.zyphe.com" || "https://verify.zyphe.com"
|
|
1412
3928
|
* @example "http://example.com"
|
|
@@ -1415,168 +3931,78 @@ interface SDKOptions {
|
|
|
1415
3931
|
/**
|
|
1416
3932
|
* The main background color of the page.
|
|
1417
3933
|
* This will override the primary color configured in verify.zyphe.com
|
|
1418
|
-
*
|
|
1419
|
-
* The accepted values are flexible, but we recommend a hex code.
|
|
1420
|
-
* @example "#000000"
|
|
1421
|
-
*/
|
|
1422
|
-
primaryColor?: string;
|
|
1423
|
-
/**
|
|
1424
|
-
* The accent color of the page, used for buttons, icons, etc.
|
|
1425
|
-
* This will override the secondary color configured in verify.zyphe.com
|
|
1426
|
-
*
|
|
1427
|
-
* The accepted values are flexible, but we recommend a hex code.
|
|
1428
|
-
* @example "#000000"
|
|
1429
|
-
*/
|
|
1430
|
-
secondaryColor?: string;
|
|
1431
|
-
/**
|
|
1432
|
-
* If true, the verification session will be displayed in "fullscreen" mode.
|
|
1433
|
-
*/
|
|
1434
|
-
isFullscreen?: boolean;
|
|
1435
|
-
}
|
|
1436
|
-
|
|
1437
|
-
|
|
1438
|
-
|
|
1439
|
-
|
|
1440
|
-
|
|
1441
|
-
|
|
1442
|
-
|
|
1443
|
-
|
|
1444
|
-
|
|
1445
|
-
|
|
1446
|
-
|
|
1447
|
-
|
|
1448
|
-
|
|
1449
|
-
|
|
1450
|
-
|
|
1451
|
-
|
|
1452
|
-
|
|
1453
|
-
|
|
1454
|
-
|
|
1455
|
-
|
|
1456
|
-
|
|
1457
|
-
|
|
1458
|
-
|
|
1459
|
-
|
|
1460
|
-
|
|
1461
|
-
|
|
1462
|
-
|
|
1463
|
-
|
|
1464
|
-
|
|
1465
|
-
|
|
1466
|
-
|
|
1467
|
-
|
|
1468
|
-
|
|
1469
|
-
|
|
1470
|
-
|
|
1471
|
-
|
|
1472
|
-
|
|
1473
|
-
|
|
1474
|
-
|
|
1475
|
-
"application/json": components["schemas"]["BaxeError"];
|
|
1476
|
-
};
|
|
1477
|
-
};
|
|
1478
|
-
409: {
|
|
1479
|
-
headers: {
|
|
1480
|
-
[name: string]: unknown;
|
|
1481
|
-
};
|
|
1482
|
-
content: {
|
|
1483
|
-
"application/json": components["schemas"]["BaxeError"];
|
|
1484
|
-
};
|
|
1485
|
-
};
|
|
1486
|
-
500: {
|
|
1487
|
-
headers: {
|
|
1488
|
-
[name: string]: unknown;
|
|
1489
|
-
};
|
|
1490
|
-
content: {
|
|
1491
|
-
"application/json": components["schemas"]["BaxeError"];
|
|
1492
|
-
};
|
|
1493
|
-
};
|
|
1494
|
-
};
|
|
1495
|
-
}, {
|
|
1496
|
-
body: {
|
|
1497
|
-
email: string;
|
|
1498
|
-
flowStepId: string;
|
|
1499
|
-
customData: Record<string, string> | undefined;
|
|
1500
|
-
};
|
|
1501
|
-
headers: {
|
|
1502
|
-
"x-api-key": string;
|
|
1503
|
-
};
|
|
1504
|
-
params: {
|
|
1505
|
-
path: {
|
|
1506
|
-
flow_id: string;
|
|
1507
|
-
};
|
|
1508
|
-
query: {
|
|
1509
|
-
sandbox: boolean;
|
|
1510
|
-
};
|
|
1511
|
-
};
|
|
1512
|
-
}, `${string}/${string}`>>;
|
|
1513
|
-
declare function constructVerificationSessionUrl({ flowParams, verificationSession, opts, }: {
|
|
1514
|
-
flowParams: InitializeZypheFlowParams;
|
|
1515
|
-
verificationSession: SdkCreateVerificationRequestResponse;
|
|
1516
|
-
opts: SDKOptions;
|
|
1517
|
-
}): string;
|
|
1518
|
-
declare function getNextStepDetails(flowParams: GetNextStepDetailsParams, opts: SDKOptions): Promise<openapi_fetch.FetchResponse<{
|
|
1519
|
-
parameters: {
|
|
1520
|
-
query: {
|
|
1521
|
-
sandbox: boolean;
|
|
1522
|
-
locale?: components["schemas"]["Locale"];
|
|
1523
|
-
email: string;
|
|
1524
|
-
};
|
|
1525
|
-
header?: never;
|
|
1526
|
-
path: {
|
|
1527
|
-
flow_id: string;
|
|
1528
|
-
};
|
|
1529
|
-
cookie?: never;
|
|
1530
|
-
};
|
|
1531
|
-
requestBody?: never;
|
|
1532
|
-
responses: {
|
|
1533
|
-
200: {
|
|
1534
|
-
headers: {
|
|
1535
|
-
[name: string]: unknown;
|
|
1536
|
-
};
|
|
1537
|
-
content: {
|
|
1538
|
-
"application/json": components["schemas"]["GetNextStepResponse"];
|
|
1539
|
-
};
|
|
1540
|
-
};
|
|
1541
|
-
400: {
|
|
1542
|
-
headers: {
|
|
1543
|
-
[name: string]: unknown;
|
|
1544
|
-
};
|
|
1545
|
-
content: {
|
|
1546
|
-
"application/json": components["schemas"]["BaxeError"];
|
|
1547
|
-
};
|
|
1548
|
-
};
|
|
1549
|
-
404: {
|
|
1550
|
-
headers: {
|
|
1551
|
-
[name: string]: unknown;
|
|
1552
|
-
};
|
|
1553
|
-
content: {
|
|
1554
|
-
"application/json": components["schemas"]["BaxeError"];
|
|
1555
|
-
};
|
|
1556
|
-
};
|
|
1557
|
-
500: {
|
|
1558
|
-
headers: {
|
|
1559
|
-
[name: string]: unknown;
|
|
1560
|
-
};
|
|
1561
|
-
content: {
|
|
1562
|
-
"application/json": components["schemas"]["BaxeError"];
|
|
1563
|
-
};
|
|
1564
|
-
};
|
|
1565
|
-
};
|
|
1566
|
-
}, {
|
|
1567
|
-
headers: {
|
|
1568
|
-
"x-api-key": string;
|
|
1569
|
-
};
|
|
1570
|
-
params: {
|
|
1571
|
-
path: {
|
|
1572
|
-
flow_id: string;
|
|
1573
|
-
};
|
|
1574
|
-
query: {
|
|
1575
|
-
sandbox: boolean;
|
|
1576
|
-
email: string;
|
|
1577
|
-
};
|
|
3934
|
+
*
|
|
3935
|
+
* The accepted values are flexible, but we recommend a hex code.
|
|
3936
|
+
* @example "#000000"
|
|
3937
|
+
*/
|
|
3938
|
+
primaryColor?: string;
|
|
3939
|
+
/**
|
|
3940
|
+
* The accent color of the page, used for buttons, icons, etc.
|
|
3941
|
+
* This will override the secondary color configured in verify.zyphe.com
|
|
3942
|
+
*
|
|
3943
|
+
* The accepted values are flexible, but we recommend a hex code.
|
|
3944
|
+
* @example "#000000"
|
|
3945
|
+
*/
|
|
3946
|
+
secondaryColor?: string;
|
|
3947
|
+
/**
|
|
3948
|
+
* If true, the verification session will be displayed in "fullscreen" mode.
|
|
3949
|
+
*/
|
|
3950
|
+
isFullscreen?: boolean;
|
|
3951
|
+
}
|
|
3952
|
+
interface VerificationSessionRequestOptions {
|
|
3953
|
+
verificationSession: SdkCreateVerificationRequestResponse;
|
|
3954
|
+
options: SDKOptions;
|
|
3955
|
+
}
|
|
3956
|
+
interface ProcessDvDocumentOptions extends VerificationSessionRequestOptions {
|
|
3957
|
+
payload: ProcessDvDocumentPayload;
|
|
3958
|
+
}
|
|
3959
|
+
interface ProcessDocumentSelectionOptions extends VerificationSessionRequestOptions {
|
|
3960
|
+
payload: ProcessDocumentSelectionRequestPayload;
|
|
3961
|
+
}
|
|
3962
|
+
interface ProcessDvLivenessOptions extends VerificationSessionRequestOptions {
|
|
3963
|
+
payload: ProcessLivenessPayload;
|
|
3964
|
+
}
|
|
3965
|
+
interface GetLivenessChallengeOptions extends VerificationSessionRequestOptions {
|
|
3966
|
+
}
|
|
3967
|
+
interface CreateVerificationSessionParams {
|
|
3968
|
+
email: string;
|
|
3969
|
+
flowId: string;
|
|
3970
|
+
flowStepId: string;
|
|
3971
|
+
isSandbox: boolean;
|
|
3972
|
+
customData?: Record<string, string>;
|
|
3973
|
+
}
|
|
3974
|
+
declare const DocumentType: {
|
|
3975
|
+
readonly IDENTITY_CARD: 12;
|
|
3976
|
+
readonly DRIVING_LICENSE: 49;
|
|
3977
|
+
readonly PASSPORT: 11;
|
|
3978
|
+
};
|
|
3979
|
+
type DocumentType = (typeof DocumentType)[keyof typeof DocumentType];
|
|
3980
|
+
|
|
3981
|
+
interface CompleteDvStepParams {
|
|
3982
|
+
verificationSession: SdkCreateVerificationRequestResponse;
|
|
3983
|
+
countryCode: string;
|
|
3984
|
+
images: {
|
|
3985
|
+
type: "DOUBLE_SIDED_DOCUMENT";
|
|
3986
|
+
frontImage: string;
|
|
3987
|
+
backImage: string;
|
|
3988
|
+
} | {
|
|
3989
|
+
type: "SINGLE_SIDED_DOCUMENT";
|
|
3990
|
+
image: string;
|
|
1578
3991
|
};
|
|
1579
|
-
}
|
|
3992
|
+
}
|
|
3993
|
+
declare function completeDvStep({ verificationSession, countryCode, images }: CompleteDvStepParams, options: SDKOptions): Promise<ProcessIdentityDocumentResponse>;
|
|
3994
|
+
interface CompleteLivenessStepParams {
|
|
3995
|
+
verificationSession: SdkCreateVerificationRequestResponse;
|
|
3996
|
+
frontImage: Uint8Array;
|
|
3997
|
+
movementImages?: Uint8Array[];
|
|
3998
|
+
video?: Uint8Array;
|
|
3999
|
+
}
|
|
4000
|
+
declare function completeLivenessStep({ verificationSession, frontImage, movementImages, video, }: CompleteLivenessStepParams, options: SDKOptions): Promise<ProcessLivenessResponse>;
|
|
4001
|
+
interface CompleteDocumentSelectionStepParams {
|
|
4002
|
+
verificationSession: SdkCreateVerificationRequestResponse;
|
|
4003
|
+
payload: ProcessDocumentSelectionRequestPayload;
|
|
4004
|
+
}
|
|
4005
|
+
declare function completeDocumentSelectionStep({ verificationSession, payload }: CompleteDocumentSelectionStepParams, options: SDKOptions): Promise<ProcessDocumentSelectionResponse>;
|
|
1580
4006
|
|
|
1581
4007
|
declare enum ImageProvenance {
|
|
1582
4008
|
UNSPECIFIED_IMAGE_PROVENANCE = 0,
|
|
@@ -1689,6 +4115,83 @@ interface GetFlowResultParams {
|
|
|
1689
4115
|
flowResultId: string;
|
|
1690
4116
|
isSandbox: boolean;
|
|
1691
4117
|
}
|
|
4118
|
+
interface ListFlowResultsParams {
|
|
4119
|
+
organizationId: string;
|
|
4120
|
+
flowSlug: string;
|
|
4121
|
+
isSandbox: boolean;
|
|
4122
|
+
pagination?: components["schemas"]["Pagination"];
|
|
4123
|
+
locale?: components["schemas"]["Locale"];
|
|
4124
|
+
}
|
|
4125
|
+
declare function listFlowResults({ organizationId, flowSlug, isSandbox, pagination, locale, }: ListFlowResultsParams, opts: SDKOptions): Promise<openapi_fetch.FetchResponse<{
|
|
4126
|
+
parameters: {
|
|
4127
|
+
query: {
|
|
4128
|
+
pagination?: components["schemas"]["Pagination"];
|
|
4129
|
+
sandbox: boolean;
|
|
4130
|
+
locale?: components["schemas"]["Locale"];
|
|
4131
|
+
};
|
|
4132
|
+
header?: never;
|
|
4133
|
+
path: {
|
|
4134
|
+
organization_id: string;
|
|
4135
|
+
flow_slug: string;
|
|
4136
|
+
};
|
|
4137
|
+
cookie?: never;
|
|
4138
|
+
};
|
|
4139
|
+
requestBody?: never;
|
|
4140
|
+
responses: {
|
|
4141
|
+
200: {
|
|
4142
|
+
headers: {
|
|
4143
|
+
[name: string]: unknown;
|
|
4144
|
+
};
|
|
4145
|
+
content: {
|
|
4146
|
+
"application/json": components["schemas"]["ListOrganizationFlowResultsResponse"];
|
|
4147
|
+
};
|
|
4148
|
+
};
|
|
4149
|
+
400: {
|
|
4150
|
+
headers: {
|
|
4151
|
+
[name: string]: unknown;
|
|
4152
|
+
};
|
|
4153
|
+
content: {
|
|
4154
|
+
"application/json": components["schemas"]["BaxeError"];
|
|
4155
|
+
};
|
|
4156
|
+
};
|
|
4157
|
+
401: {
|
|
4158
|
+
headers: {
|
|
4159
|
+
[name: string]: unknown;
|
|
4160
|
+
};
|
|
4161
|
+
content: {
|
|
4162
|
+
"application/json": components["schemas"]["BaxeError"];
|
|
4163
|
+
};
|
|
4164
|
+
};
|
|
4165
|
+
500: {
|
|
4166
|
+
headers: {
|
|
4167
|
+
[name: string]: unknown;
|
|
4168
|
+
};
|
|
4169
|
+
content: {
|
|
4170
|
+
"application/json": components["schemas"]["BaxeError"];
|
|
4171
|
+
};
|
|
4172
|
+
};
|
|
4173
|
+
};
|
|
4174
|
+
}, {
|
|
4175
|
+
params: {
|
|
4176
|
+
path: {
|
|
4177
|
+
organization_id: string;
|
|
4178
|
+
flow_slug: string;
|
|
4179
|
+
};
|
|
4180
|
+
query: {
|
|
4181
|
+
pagination: {
|
|
4182
|
+
filter?: string;
|
|
4183
|
+
skip?: number;
|
|
4184
|
+
sort?: string;
|
|
4185
|
+
take?: number;
|
|
4186
|
+
} | undefined;
|
|
4187
|
+
sandbox: boolean;
|
|
4188
|
+
locale: "en" | "it" | "de" | "es" | "fr" | "hi" | "id" | "pt" | undefined;
|
|
4189
|
+
};
|
|
4190
|
+
};
|
|
4191
|
+
headers: {
|
|
4192
|
+
"x-api-key": string;
|
|
4193
|
+
};
|
|
4194
|
+
}, `${string}/${string}`>>;
|
|
1692
4195
|
declare function getFlowResult({ organizationId, flowResultId, isSandbox }: GetFlowResultParams, opts: SDKOptions): Promise<{
|
|
1693
4196
|
data: {
|
|
1694
4197
|
dvResults: {
|
|
@@ -1714,9 +4217,7 @@ declare function getFlowResult({ organizationId, flowResultId, isSandbox }: GetF
|
|
|
1714
4217
|
originalVrHistoryId?: string | null;
|
|
1715
4218
|
platform?: string | null;
|
|
1716
4219
|
portraitMatchPercent?: number | null;
|
|
1717
|
-
processAdditionalData:
|
|
1718
|
-
[key: string]: unknown;
|
|
1719
|
-
};
|
|
4220
|
+
processAdditionalData: components["schemas"]["ProcessAdditionalData"];
|
|
1720
4221
|
provinceCode?: string | null;
|
|
1721
4222
|
reasons: components["schemas"]["DvReason"][];
|
|
1722
4223
|
status: components["schemas"]["ResultStatus"];
|
|
@@ -1725,9 +4226,7 @@ declare function getFlowResult({ organizationId, flowResultId, isSandbox }: GetF
|
|
|
1725
4226
|
}[] | undefined;
|
|
1726
4227
|
amlResults: {
|
|
1727
4228
|
createdAt: string;
|
|
1728
|
-
data
|
|
1729
|
-
[key: string]: unknown;
|
|
1730
|
-
};
|
|
4229
|
+
data?: components["schemas"]["AmlRiskResult"] | null;
|
|
1731
4230
|
id: string;
|
|
1732
4231
|
pep: boolean;
|
|
1733
4232
|
sanctions: boolean;
|
|
@@ -1750,7 +4249,7 @@ declare function getFlowResult({ organizationId, flowResultId, isSandbox }: GetF
|
|
|
1750
4249
|
createdAt?: string | null;
|
|
1751
4250
|
customData?: {
|
|
1752
4251
|
[key: string]: unknown;
|
|
1753
|
-
} | undefined;
|
|
4252
|
+
} | null | undefined;
|
|
1754
4253
|
flow?: components["schemas"]["Flow"] | null;
|
|
1755
4254
|
flowSlug?: string | undefined;
|
|
1756
4255
|
formResults?: {
|
|
@@ -1759,6 +4258,7 @@ declare function getFlowResult({ organizationId, flowResultId, isSandbox }: GetF
|
|
|
1759
4258
|
flowStep?: Omit<components["schemas"]["FlowStep"], "type"> | null;
|
|
1760
4259
|
flowStepId?: string | null;
|
|
1761
4260
|
form?: components["schemas"]["Form"] | null;
|
|
4261
|
+
formId?: string | null;
|
|
1762
4262
|
id: string;
|
|
1763
4263
|
reason?: components["schemas"]["FormReason"] | null;
|
|
1764
4264
|
sections: components["schemas"]["FormSection"][];
|
|
@@ -1766,16 +4266,63 @@ declare function getFlowResult({ organizationId, flowResultId, isSandbox }: GetF
|
|
|
1766
4266
|
updatedAt?: string | null;
|
|
1767
4267
|
verificationRequestId?: string | null;
|
|
1768
4268
|
}[] | undefined;
|
|
4269
|
+
geolocationResults?: components["schemas"]["GeolocationResult"][];
|
|
1769
4270
|
id?: string | undefined;
|
|
1770
4271
|
identity?: components["schemas"]["Identity"] | null;
|
|
4272
|
+
jdmData?: {
|
|
4273
|
+
[key: string]: {
|
|
4274
|
+
data: components["schemas"]["DvStepOutput"];
|
|
4275
|
+
type: "DV";
|
|
4276
|
+
} | {
|
|
4277
|
+
data: components["schemas"]["PoaStepOutput"];
|
|
4278
|
+
type: "POA";
|
|
4279
|
+
} | {
|
|
4280
|
+
data: components["schemas"]["SpidStepOutput"];
|
|
4281
|
+
type: "SPID";
|
|
4282
|
+
} | {
|
|
4283
|
+
data: components["schemas"]["WalletStepOutput"];
|
|
4284
|
+
type: "WALLET";
|
|
4285
|
+
} | {
|
|
4286
|
+
data: components["schemas"]["PhoneStepOutput"];
|
|
4287
|
+
type: "PHONE";
|
|
4288
|
+
} | {
|
|
4289
|
+
data: components["schemas"]["FormStepOutput"];
|
|
4290
|
+
type: "FORM";
|
|
4291
|
+
} | {
|
|
4292
|
+
data: components["schemas"]["KybStepOutput"];
|
|
4293
|
+
type: "KYB";
|
|
4294
|
+
} | {
|
|
4295
|
+
data: components["schemas"]["LivenessStepOutput"];
|
|
4296
|
+
type: "LIVENESS";
|
|
4297
|
+
} | {
|
|
4298
|
+
data: components["schemas"]["AutoOneClickKycStepOutput"];
|
|
4299
|
+
type: "AUTO_ONE_CLICK_KYC";
|
|
4300
|
+
} | {
|
|
4301
|
+
data: components["schemas"]["ActionStepOutput"];
|
|
4302
|
+
type: "ACTION";
|
|
4303
|
+
} | {
|
|
4304
|
+
data: components["schemas"]["DocumentSelectionStepOutput"];
|
|
4305
|
+
type: "DOCUMENT_SELECTION";
|
|
4306
|
+
} | {
|
|
4307
|
+
data: components["schemas"]["GeolocationStepOutput"];
|
|
4308
|
+
type: "GEOLOCATION";
|
|
4309
|
+
};
|
|
4310
|
+
} | undefined;
|
|
1771
4311
|
kybResults?: {
|
|
4312
|
+
assignedAt?: string | null;
|
|
4313
|
+
assignedToIdentityId?: string | null;
|
|
1772
4314
|
businessInformation?: components["schemas"]["BusinessInformation"] | null;
|
|
4315
|
+
businessInformationVerification?: {
|
|
4316
|
+
[key: string]: components["schemas"]["BusinessInfoFieldVerification"];
|
|
4317
|
+
} | null;
|
|
1773
4318
|
createdAt?: string | null;
|
|
1774
4319
|
directorDefinitions?: components["schemas"]["DirectorDefinition"][] | null;
|
|
1775
4320
|
documentUploads?: components["schemas"]["DocumentUpload"][] | null;
|
|
1776
4321
|
flowStep?: Omit<components["schemas"]["FlowStep"], "type"> | null;
|
|
1777
4322
|
flowStepId?: string | null;
|
|
4323
|
+
fundedAt?: string | null;
|
|
1778
4324
|
id: string;
|
|
4325
|
+
nextAction?: components["schemas"]["NextAction"] | null;
|
|
1779
4326
|
pepAndSanctionsStatus: components["schemas"]["PepAndSanctionsStatus"];
|
|
1780
4327
|
reason?: string | null;
|
|
1781
4328
|
report?: string | null;
|
|
@@ -1797,6 +4344,7 @@ declare function getFlowResult({ organizationId, flowResultId, isSandbox }: GetF
|
|
|
1797
4344
|
updatedAt?: string | null;
|
|
1798
4345
|
verificationRequestId?: string | null;
|
|
1799
4346
|
}[] | undefined;
|
|
4347
|
+
reviewSuggestion?: components["schemas"]["ReviewSuggestion"] | null;
|
|
1800
4348
|
spidResults?: {
|
|
1801
4349
|
createdAt?: string | null;
|
|
1802
4350
|
flowStep?: Omit<components["schemas"]["FlowStep"], "type"> | null;
|
|
@@ -1808,6 +4356,7 @@ declare function getFlowResult({ organizationId, flowResultId, isSandbox }: GetF
|
|
|
1808
4356
|
updatedAt?: string | null;
|
|
1809
4357
|
verificationRequestId?: string | null;
|
|
1810
4358
|
}[] | undefined;
|
|
4359
|
+
status?: "FAILED" | "REQUIRES_MANUAL_REVIEW" | "REQUIRES_ADMIN_REVIEW" | "PENDING" | "COMPLETED" | "CANCELLED" | "QUEUED" | "PROCESSING" | "REJECTED" | undefined;
|
|
1811
4360
|
updatedAt?: string | null;
|
|
1812
4361
|
walletResults?: {
|
|
1813
4362
|
createdAt?: string | null;
|
|
@@ -1852,9 +4401,7 @@ declare function getFlowResult({ organizationId, flowResultId, isSandbox }: GetF
|
|
|
1852
4401
|
originalVrHistoryId?: string | null;
|
|
1853
4402
|
platform?: string | null;
|
|
1854
4403
|
portraitMatchPercent?: number | null;
|
|
1855
|
-
processAdditionalData:
|
|
1856
|
-
[key: string]: unknown;
|
|
1857
|
-
};
|
|
4404
|
+
processAdditionalData: components["schemas"]["ProcessAdditionalData"];
|
|
1858
4405
|
provinceCode?: string | null;
|
|
1859
4406
|
reasons: components["schemas"]["DvReason"][];
|
|
1860
4407
|
status: components["schemas"]["ResultStatus"];
|
|
@@ -1863,9 +4410,7 @@ declare function getFlowResult({ organizationId, flowResultId, isSandbox }: GetF
|
|
|
1863
4410
|
}[] | undefined;
|
|
1864
4411
|
amlResults: {
|
|
1865
4412
|
createdAt: string;
|
|
1866
|
-
data
|
|
1867
|
-
[key: string]: unknown;
|
|
1868
|
-
};
|
|
4413
|
+
data?: components["schemas"]["AmlRiskResult"] | null;
|
|
1869
4414
|
id: string;
|
|
1870
4415
|
pep: boolean;
|
|
1871
4416
|
sanctions: boolean;
|
|
@@ -1888,7 +4433,7 @@ declare function getFlowResult({ organizationId, flowResultId, isSandbox }: GetF
|
|
|
1888
4433
|
createdAt?: string | null;
|
|
1889
4434
|
customData?: {
|
|
1890
4435
|
[key: string]: unknown;
|
|
1891
|
-
} | undefined;
|
|
4436
|
+
} | null | undefined;
|
|
1892
4437
|
flow?: components["schemas"]["Flow"] | null;
|
|
1893
4438
|
flowSlug?: string | undefined;
|
|
1894
4439
|
formResults?: {
|
|
@@ -1897,6 +4442,7 @@ declare function getFlowResult({ organizationId, flowResultId, isSandbox }: GetF
|
|
|
1897
4442
|
flowStep?: Omit<components["schemas"]["FlowStep"], "type"> | null;
|
|
1898
4443
|
flowStepId?: string | null;
|
|
1899
4444
|
form?: components["schemas"]["Form"] | null;
|
|
4445
|
+
formId?: string | null;
|
|
1900
4446
|
id: string;
|
|
1901
4447
|
reason?: components["schemas"]["FormReason"] | null;
|
|
1902
4448
|
sections: components["schemas"]["FormSection"][];
|
|
@@ -1904,16 +4450,63 @@ declare function getFlowResult({ organizationId, flowResultId, isSandbox }: GetF
|
|
|
1904
4450
|
updatedAt?: string | null;
|
|
1905
4451
|
verificationRequestId?: string | null;
|
|
1906
4452
|
}[] | undefined;
|
|
4453
|
+
geolocationResults?: components["schemas"]["GeolocationResult"][];
|
|
1907
4454
|
id?: string | undefined;
|
|
1908
4455
|
identity?: components["schemas"]["Identity"] | null;
|
|
4456
|
+
jdmData?: {
|
|
4457
|
+
[key: string]: {
|
|
4458
|
+
data: components["schemas"]["DvStepOutput"];
|
|
4459
|
+
type: "DV";
|
|
4460
|
+
} | {
|
|
4461
|
+
data: components["schemas"]["PoaStepOutput"];
|
|
4462
|
+
type: "POA";
|
|
4463
|
+
} | {
|
|
4464
|
+
data: components["schemas"]["SpidStepOutput"];
|
|
4465
|
+
type: "SPID";
|
|
4466
|
+
} | {
|
|
4467
|
+
data: components["schemas"]["WalletStepOutput"];
|
|
4468
|
+
type: "WALLET";
|
|
4469
|
+
} | {
|
|
4470
|
+
data: components["schemas"]["PhoneStepOutput"];
|
|
4471
|
+
type: "PHONE";
|
|
4472
|
+
} | {
|
|
4473
|
+
data: components["schemas"]["FormStepOutput"];
|
|
4474
|
+
type: "FORM";
|
|
4475
|
+
} | {
|
|
4476
|
+
data: components["schemas"]["KybStepOutput"];
|
|
4477
|
+
type: "KYB";
|
|
4478
|
+
} | {
|
|
4479
|
+
data: components["schemas"]["LivenessStepOutput"];
|
|
4480
|
+
type: "LIVENESS";
|
|
4481
|
+
} | {
|
|
4482
|
+
data: components["schemas"]["AutoOneClickKycStepOutput"];
|
|
4483
|
+
type: "AUTO_ONE_CLICK_KYC";
|
|
4484
|
+
} | {
|
|
4485
|
+
data: components["schemas"]["ActionStepOutput"];
|
|
4486
|
+
type: "ACTION";
|
|
4487
|
+
} | {
|
|
4488
|
+
data: components["schemas"]["DocumentSelectionStepOutput"];
|
|
4489
|
+
type: "DOCUMENT_SELECTION";
|
|
4490
|
+
} | {
|
|
4491
|
+
data: components["schemas"]["GeolocationStepOutput"];
|
|
4492
|
+
type: "GEOLOCATION";
|
|
4493
|
+
};
|
|
4494
|
+
} | undefined;
|
|
1909
4495
|
kybResults?: {
|
|
4496
|
+
assignedAt?: string | null;
|
|
4497
|
+
assignedToIdentityId?: string | null;
|
|
1910
4498
|
businessInformation?: components["schemas"]["BusinessInformation"] | null;
|
|
4499
|
+
businessInformationVerification?: {
|
|
4500
|
+
[key: string]: components["schemas"]["BusinessInfoFieldVerification"];
|
|
4501
|
+
} | null;
|
|
1911
4502
|
createdAt?: string | null;
|
|
1912
4503
|
directorDefinitions?: components["schemas"]["DirectorDefinition"][] | null;
|
|
1913
4504
|
documentUploads?: components["schemas"]["DocumentUpload"][] | null;
|
|
1914
4505
|
flowStep?: Omit<components["schemas"]["FlowStep"], "type"> | null;
|
|
1915
4506
|
flowStepId?: string | null;
|
|
4507
|
+
fundedAt?: string | null;
|
|
1916
4508
|
id: string;
|
|
4509
|
+
nextAction?: components["schemas"]["NextAction"] | null;
|
|
1917
4510
|
pepAndSanctionsStatus: components["schemas"]["PepAndSanctionsStatus"];
|
|
1918
4511
|
reason?: string | null;
|
|
1919
4512
|
report?: string | null;
|
|
@@ -1935,6 +4528,7 @@ declare function getFlowResult({ organizationId, flowResultId, isSandbox }: GetF
|
|
|
1935
4528
|
updatedAt?: string | null;
|
|
1936
4529
|
verificationRequestId?: string | null;
|
|
1937
4530
|
}[] | undefined;
|
|
4531
|
+
reviewSuggestion?: components["schemas"]["ReviewSuggestion"] | null;
|
|
1938
4532
|
spidResults?: {
|
|
1939
4533
|
createdAt?: string | null;
|
|
1940
4534
|
flowStep?: Omit<components["schemas"]["FlowStep"], "type"> | null;
|
|
@@ -1946,6 +4540,7 @@ declare function getFlowResult({ organizationId, flowResultId, isSandbox }: GetF
|
|
|
1946
4540
|
updatedAt?: string | null;
|
|
1947
4541
|
verificationRequestId?: string | null;
|
|
1948
4542
|
}[] | undefined;
|
|
4543
|
+
status?: "FAILED" | "REQUIRES_MANUAL_REVIEW" | "REQUIRES_ADMIN_REVIEW" | "PENDING" | "COMPLETED" | "CANCELLED" | "QUEUED" | "PROCESSING" | "REJECTED" | undefined;
|
|
1949
4544
|
updatedAt?: string | null;
|
|
1950
4545
|
walletResults?: {
|
|
1951
4546
|
createdAt?: string | null;
|
|
@@ -1987,6 +4582,152 @@ declare function getDvResult({ organizationId, flowResultId, dvResultId, isSandb
|
|
|
1987
4582
|
response: Response;
|
|
1988
4583
|
}>;
|
|
1989
4584
|
|
|
4585
|
+
interface ZypheErrorOptions extends ErrorOptions {
|
|
4586
|
+
errorTag?: string;
|
|
4587
|
+
}
|
|
4588
|
+
declare class ZypheError extends Error {
|
|
4589
|
+
errorTag?: string;
|
|
4590
|
+
constructor(message: string, options?: ZypheErrorOptions);
|
|
4591
|
+
static fromBaxeError(error: BaxeError): ZypheError;
|
|
4592
|
+
}
|
|
4593
|
+
|
|
4594
|
+
declare function createVerificationSession({ email, flowId, flowStepId, isSandbox, customData, }: CreateVerificationSessionParams, opts: SDKOptions): Promise<openapi_fetch.FetchResponse<{
|
|
4595
|
+
parameters: {
|
|
4596
|
+
query: {
|
|
4597
|
+
sandbox: boolean;
|
|
4598
|
+
locale?: components["schemas"]["Locale"];
|
|
4599
|
+
};
|
|
4600
|
+
header?: never;
|
|
4601
|
+
path: {
|
|
4602
|
+
flow_id: string;
|
|
4603
|
+
};
|
|
4604
|
+
cookie?: never;
|
|
4605
|
+
};
|
|
4606
|
+
requestBody: {
|
|
4607
|
+
content: {
|
|
4608
|
+
"application/json": components["schemas"]["SdkCreateVerificationRequestPayload"];
|
|
4609
|
+
};
|
|
4610
|
+
};
|
|
4611
|
+
responses: {
|
|
4612
|
+
200: {
|
|
4613
|
+
headers: {
|
|
4614
|
+
[name: string]: unknown;
|
|
4615
|
+
};
|
|
4616
|
+
content: {
|
|
4617
|
+
"application/json": components["schemas"]["SdkCreateVerificationRequestResponse"];
|
|
4618
|
+
};
|
|
4619
|
+
};
|
|
4620
|
+
400: {
|
|
4621
|
+
headers: {
|
|
4622
|
+
[name: string]: unknown;
|
|
4623
|
+
};
|
|
4624
|
+
content: {
|
|
4625
|
+
"application/json": components["schemas"]["BaxeError"];
|
|
4626
|
+
};
|
|
4627
|
+
};
|
|
4628
|
+
409: {
|
|
4629
|
+
headers: {
|
|
4630
|
+
[name: string]: unknown;
|
|
4631
|
+
};
|
|
4632
|
+
content: {
|
|
4633
|
+
"application/json": components["schemas"]["BaxeError"];
|
|
4634
|
+
};
|
|
4635
|
+
};
|
|
4636
|
+
500: {
|
|
4637
|
+
headers: {
|
|
4638
|
+
[name: string]: unknown;
|
|
4639
|
+
};
|
|
4640
|
+
content: {
|
|
4641
|
+
"application/json": components["schemas"]["BaxeError"];
|
|
4642
|
+
};
|
|
4643
|
+
};
|
|
4644
|
+
};
|
|
4645
|
+
}, {
|
|
4646
|
+
body: {
|
|
4647
|
+
email: string;
|
|
4648
|
+
flowStepId: string;
|
|
4649
|
+
customData: Record<string, string> | undefined;
|
|
4650
|
+
};
|
|
4651
|
+
headers: {
|
|
4652
|
+
"x-api-key": string;
|
|
4653
|
+
};
|
|
4654
|
+
params: {
|
|
4655
|
+
path: {
|
|
4656
|
+
flow_id: string;
|
|
4657
|
+
};
|
|
4658
|
+
query: {
|
|
4659
|
+
sandbox: boolean;
|
|
4660
|
+
};
|
|
4661
|
+
};
|
|
4662
|
+
}, `${string}/${string}`>>;
|
|
4663
|
+
declare function constructVerificationSessionUrl({ flowParams, verificationSession, opts, }: {
|
|
4664
|
+
flowParams: InitializeZypheFlowParams;
|
|
4665
|
+
verificationSession: SdkCreateVerificationRequestResponse;
|
|
4666
|
+
opts: SDKOptions;
|
|
4667
|
+
}): string;
|
|
4668
|
+
declare function getNextStepDetails(flowParams: GetNextStepDetailsParams, opts: SDKOptions): Promise<openapi_fetch.FetchResponse<{
|
|
4669
|
+
parameters: {
|
|
4670
|
+
query: {
|
|
4671
|
+
sandbox: boolean;
|
|
4672
|
+
locale?: components["schemas"]["Locale"];
|
|
4673
|
+
email: string;
|
|
4674
|
+
};
|
|
4675
|
+
header?: never;
|
|
4676
|
+
path: {
|
|
4677
|
+
flow_id: string;
|
|
4678
|
+
};
|
|
4679
|
+
cookie?: never;
|
|
4680
|
+
};
|
|
4681
|
+
requestBody?: never;
|
|
4682
|
+
responses: {
|
|
4683
|
+
200: {
|
|
4684
|
+
headers: {
|
|
4685
|
+
[name: string]: unknown;
|
|
4686
|
+
};
|
|
4687
|
+
content: {
|
|
4688
|
+
"application/json": components["schemas"]["GetNextStepResponse"];
|
|
4689
|
+
};
|
|
4690
|
+
};
|
|
4691
|
+
400: {
|
|
4692
|
+
headers: {
|
|
4693
|
+
[name: string]: unknown;
|
|
4694
|
+
};
|
|
4695
|
+
content: {
|
|
4696
|
+
"application/json": components["schemas"]["BaxeError"];
|
|
4697
|
+
};
|
|
4698
|
+
};
|
|
4699
|
+
404: {
|
|
4700
|
+
headers: {
|
|
4701
|
+
[name: string]: unknown;
|
|
4702
|
+
};
|
|
4703
|
+
content: {
|
|
4704
|
+
"application/json": components["schemas"]["BaxeError"];
|
|
4705
|
+
};
|
|
4706
|
+
};
|
|
4707
|
+
500: {
|
|
4708
|
+
headers: {
|
|
4709
|
+
[name: string]: unknown;
|
|
4710
|
+
};
|
|
4711
|
+
content: {
|
|
4712
|
+
"application/json": components["schemas"]["BaxeError"];
|
|
4713
|
+
};
|
|
4714
|
+
};
|
|
4715
|
+
};
|
|
4716
|
+
}, {
|
|
4717
|
+
headers: {
|
|
4718
|
+
"x-api-key": string;
|
|
4719
|
+
};
|
|
4720
|
+
params: {
|
|
4721
|
+
path: {
|
|
4722
|
+
flow_id: string;
|
|
4723
|
+
};
|
|
4724
|
+
query: {
|
|
4725
|
+
sandbox: boolean;
|
|
4726
|
+
email: string;
|
|
4727
|
+
};
|
|
4728
|
+
};
|
|
4729
|
+
}, `${string}/${string}`>>;
|
|
4730
|
+
|
|
1990
4731
|
interface SignatureComponents {
|
|
1991
4732
|
timestamp: string;
|
|
1992
4733
|
signatureHex: string;
|
|
@@ -2048,4 +4789,4 @@ interface WebhookVerifierOptions<T extends Function> {
|
|
|
2048
4789
|
exposeRawBody?: boolean;
|
|
2049
4790
|
}
|
|
2050
4791
|
|
|
2051
|
-
export { API_KEY_HEADER, type ApiKeyType, type Environment, EnvironmentConfigs, Environments, type GetNextStepDetailsParams, type InitializeZypheFlowParams, type SDKOptions, type SdkCreateVerificationRequestResponse, type SignatureComponents, WebhookSignatureErrorCodes, WebhookSignatureErrorMessages, type WebhookVerifierOptions, bufferToHex, constructVerificationSessionUrl, createVerificationSession, getDvResult, getFlowResult, getNextStepDetails, hexToBytes, parseSignatureHeader, timingSafeEqual };
|
|
4792
|
+
export { API_KEY_HEADER, type ApiKeyType, type BaxeError, type CompleteLivenessStepParams, type CreateVerificationSessionParams, DocumentType, type Environment, EnvironmentConfigs, Environments, type FlowStepType, type GetLivenessChallengeOptions, type GetLivenessChallengeResponse, type GetNextStepDetailsParams, type InitializeZypheFlowParams, type Locale, type ProcessDocumentSelectionOptions, type ProcessDocumentSelectionPayload, type ProcessDocumentSelectionRequestPayload, type ProcessDocumentSelectionResponse, type ProcessDvDocumentOptions, type ProcessDvDocumentPayload, type ProcessDvLivenessOptions, type ProcessDvLivenessParams, type ProcessIdentityDocumentPayload, type ProcessIdentityDocumentResponse, type ProcessLivenessPayload, type ProcessLivenessResponse, type SDKOptions, type SdkCreateVerificationRequestResponse, type SignatureComponents, type VerificationRequestParams, type VerificationSessionRequestOptions, WebhookSignatureErrorCodes, WebhookSignatureErrorMessages, type WebhookVerifierOptions, ZypheError, bufferToHex, completeDocumentSelectionStep, completeDvStep, completeLivenessStep, constructVerificationSessionUrl, createVerificationSession, getDvResult, getFlowResult, getNextStepDetails, hexToBytes, listFlowResults, parseSignatureHeader, timingSafeEqual };
|