@zyphe-sdk/core 0.1.17 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +33 -15
- package/dist/index.d.ts +3018 -293
- package/dist/index.js +283 -57
- package/dist/index.js.map +1 -1
- package/dist/openapi.d.ts +1541 -66
- package/dist/openapi.json +4963 -1218
- 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;
|
|
@@ -108,6 +438,11 @@ interface components {
|
|
|
108
438
|
summary?: components["schemas"]["FieldWithControl"];
|
|
109
439
|
topics?: components["schemas"]["FieldWithControl"];
|
|
110
440
|
};
|
|
441
|
+
AmlQueryMetadata: {
|
|
442
|
+
dateOfBirth: string;
|
|
443
|
+
firstName: string;
|
|
444
|
+
lastName: string;
|
|
445
|
+
};
|
|
111
446
|
AmlResult: {
|
|
112
447
|
/** Format: date-time */
|
|
113
448
|
createdAt: string;
|
|
@@ -127,6 +462,7 @@ interface components {
|
|
|
127
462
|
/** Format: date-time */
|
|
128
463
|
checkedAt: string;
|
|
129
464
|
controls: components["schemas"]["ResultControlOperation"][];
|
|
465
|
+
query?: components["schemas"]["AmlQueryMetadata"] | null;
|
|
130
466
|
summary: components["schemas"]["AmlCheckSummary"];
|
|
131
467
|
};
|
|
132
468
|
AmlRiskResult: {
|
|
@@ -160,17 +496,67 @@ interface components {
|
|
|
160
496
|
labels?: {
|
|
161
497
|
[key: string]: string;
|
|
162
498
|
};
|
|
163
|
-
/** @description
|
|
164
|
-
|
|
499
|
+
/** @description Partner flow configurations with step type hints */
|
|
500
|
+
partnerConfigs: components["schemas"]["AutoOneClickPartnerConfig"][];
|
|
165
501
|
/** @description Full partner flow objects (populated by rehydrate_flow_step) */
|
|
166
502
|
partnerFlows?: components["schemas"]["Flow"][] | null;
|
|
167
503
|
};
|
|
504
|
+
/** @description Data for tracking auto one-click KYC flow. */
|
|
505
|
+
AutoOneClickKycData: {
|
|
506
|
+
/** Format: uuid */
|
|
507
|
+
flowId: string;
|
|
508
|
+
/** Format: uuid */
|
|
509
|
+
flowStepId: string;
|
|
510
|
+
};
|
|
511
|
+
/** @description Auto One-Click KYC step output for workflow decisions. */
|
|
512
|
+
AutoOneClickKycStepOutput: {
|
|
513
|
+
status: components["schemas"]["ResultStatus"];
|
|
514
|
+
};
|
|
515
|
+
/** @description Configuration for a single partner flow in auto one-click */
|
|
516
|
+
AutoOneClickPartnerConfig: {
|
|
517
|
+
/**
|
|
518
|
+
* Format: uuid
|
|
519
|
+
* @description The partner flow ID
|
|
520
|
+
*/
|
|
521
|
+
flowId: string;
|
|
522
|
+
/** @description Which step types to attempt one-click for in this partner flow
|
|
523
|
+
* If empty, defaults to [Dv] */
|
|
524
|
+
targetStepTypes?: components["schemas"]["FlowStepType"][];
|
|
525
|
+
};
|
|
168
526
|
BaxeError: {
|
|
169
527
|
/** Format: int32 */
|
|
170
528
|
code: number;
|
|
171
529
|
errorTag: components["schemas"]["ErrorTags"];
|
|
172
530
|
message?: string | null;
|
|
173
531
|
};
|
|
532
|
+
/** @description A condition branch for switch operators. */
|
|
533
|
+
BranchCondition: {
|
|
534
|
+
condition: components["schemas"]["Condition"];
|
|
535
|
+
/** @description The label of the edge to follow if this condition matches. */
|
|
536
|
+
label: string;
|
|
537
|
+
};
|
|
538
|
+
/**
|
|
539
|
+
* @description Source that can participate in a business information field disagreement.
|
|
540
|
+
* @enum {string}
|
|
541
|
+
*/
|
|
542
|
+
BusinessInfoDisagreementSource: "submitted" | "document" | "catalog";
|
|
543
|
+
/** @description Per-field verification result comparing submitted business info against document-extracted values. */
|
|
544
|
+
BusinessInfoFieldVerification: {
|
|
545
|
+
/** @description The value extracted from the company catalog API. */
|
|
546
|
+
catalogValue?: string | null;
|
|
547
|
+
/** @description Sources that disagree with one another for this field. */
|
|
548
|
+
disagreementSources?: components["schemas"]["BusinessInfoDisagreementSource"][];
|
|
549
|
+
/** @description The value extracted from the uploaded document(s). */
|
|
550
|
+
documentValue?: string | null;
|
|
551
|
+
matchType: components["schemas"]["BusinessInfoMatchType"];
|
|
552
|
+
/** @description The user-submitted value for this field. */
|
|
553
|
+
submittedValue?: string | null;
|
|
554
|
+
};
|
|
555
|
+
/**
|
|
556
|
+
* @description Match type for a single business information field against document-extracted values.
|
|
557
|
+
* @enum {string}
|
|
558
|
+
*/
|
|
559
|
+
BusinessInfoMatchType: "match" | "fuzzy" | "mismatch" | "notFound";
|
|
174
560
|
BusinessInformation: {
|
|
175
561
|
address: string;
|
|
176
562
|
businessActivity: string;
|
|
@@ -183,6 +569,158 @@ interface components {
|
|
|
183
569
|
postZipCode: string;
|
|
184
570
|
registrationNumber: string;
|
|
185
571
|
};
|
|
572
|
+
/** @description Parsed representation of the client's clarification response stored inside
|
|
573
|
+
* `reviewReason` JSON. Present only on document requests of that type after
|
|
574
|
+
* the client has submitted. */
|
|
575
|
+
BusinessInformationClarificationResponse: {
|
|
576
|
+
/** @description Client's decision: `"confirm"` (values are correct as-is) or `"deny"` (proposes new values). */
|
|
577
|
+
decision: string;
|
|
578
|
+
/** @description Field updates proposed by the client. Absent or empty when `decision` is `"confirm"`.
|
|
579
|
+
* Stored metadata uses key `"updates"`; API and legacy use `"fields"`. */
|
|
580
|
+
fields?: components["schemas"]["BusinessInformationClarificationResponseField"][] | null;
|
|
581
|
+
/** @description Free-text explanation from the client. */
|
|
582
|
+
reason: string;
|
|
583
|
+
};
|
|
584
|
+
/** @description A single field update proposed by the client in a business-information clarification response. */
|
|
585
|
+
BusinessInformationClarificationResponseField: {
|
|
586
|
+
/** @description The business-information field key (e.g. `"companyName"`). */
|
|
587
|
+
fieldKey: string;
|
|
588
|
+
/** @description The new value proposed by the client. */
|
|
589
|
+
value: string;
|
|
590
|
+
};
|
|
591
|
+
/**
|
|
592
|
+
* @description Provider-agnostic check status.
|
|
593
|
+
*
|
|
594
|
+
* This enum represents the canonical outcome of any verification check,
|
|
595
|
+
* abstracting away provider-specific status codes.
|
|
596
|
+
*
|
|
597
|
+
* # Deserialization
|
|
598
|
+
*
|
|
599
|
+
* Supports both string format ("passed", "failed", etc.) and legacy integer codes:
|
|
600
|
+
* - 0 = Passed (OK in Regula)
|
|
601
|
+
* - 1 = Failed (Error in Regula)
|
|
602
|
+
* - 2 = NotPerformed (Was not done in Regula)
|
|
603
|
+
* @enum {string}
|
|
604
|
+
*/
|
|
605
|
+
CheckStatus: "passed" | "failed" | "not_performed" | "unknown";
|
|
606
|
+
CloudflareTracePayload: {
|
|
607
|
+
colo?: string | null;
|
|
608
|
+
ip?: string | null;
|
|
609
|
+
loc?: string | null;
|
|
610
|
+
ts?: string | null;
|
|
611
|
+
visitScheme?: string | null;
|
|
612
|
+
};
|
|
613
|
+
/** @description A condition that can be evaluated against workflow context.
|
|
614
|
+
*
|
|
615
|
+
* Conditions are serialized as JSON with a tagged `op` field.
|
|
616
|
+
*
|
|
617
|
+
* # Examples
|
|
618
|
+
*
|
|
619
|
+
* ## Equality check
|
|
620
|
+
* ```json
|
|
621
|
+
* { "op": "EQ", "field": "dv_step.status", "value": "PASSED" }
|
|
622
|
+
* ```
|
|
623
|
+
*
|
|
624
|
+
* ## Compound condition
|
|
625
|
+
* ```json
|
|
626
|
+
* {
|
|
627
|
+
* "op": "AND",
|
|
628
|
+
* "conditions": [
|
|
629
|
+
* { "op": "EQ", "field": "dv_step.status", "value": "PASSED" },
|
|
630
|
+
* { "op": "IN", "field": "dv_step.countryCode", "values": ["IT", "DE", "FR"] }
|
|
631
|
+
* ]
|
|
632
|
+
* }
|
|
633
|
+
* ``` */
|
|
634
|
+
Condition: {
|
|
635
|
+
/** @description Field path (e.g., "dv_step.status") */
|
|
636
|
+
field: string;
|
|
637
|
+
/** @enum {string} */
|
|
638
|
+
op: "EQ";
|
|
639
|
+
value: components["schemas"]["WorkflowValue"];
|
|
640
|
+
} | {
|
|
641
|
+
/** @description Field path */
|
|
642
|
+
field: string;
|
|
643
|
+
/** @enum {string} */
|
|
644
|
+
op: "NE";
|
|
645
|
+
value: components["schemas"]["WorkflowValue"];
|
|
646
|
+
} | {
|
|
647
|
+
/** @description Field path */
|
|
648
|
+
field: string;
|
|
649
|
+
/** @enum {string} */
|
|
650
|
+
op: "GT";
|
|
651
|
+
value: components["schemas"]["WorkflowValue"];
|
|
652
|
+
} | {
|
|
653
|
+
/** @description Field path */
|
|
654
|
+
field: string;
|
|
655
|
+
/** @enum {string} */
|
|
656
|
+
op: "LT";
|
|
657
|
+
value: components["schemas"]["WorkflowValue"];
|
|
658
|
+
} | {
|
|
659
|
+
/** @description Field path */
|
|
660
|
+
field: string;
|
|
661
|
+
/** @enum {string} */
|
|
662
|
+
op: "GTE";
|
|
663
|
+
value: components["schemas"]["WorkflowValue"];
|
|
664
|
+
} | {
|
|
665
|
+
/** @description Field path */
|
|
666
|
+
field: string;
|
|
667
|
+
/** @enum {string} */
|
|
668
|
+
op: "LTE";
|
|
669
|
+
value: components["schemas"]["WorkflowValue"];
|
|
670
|
+
} | {
|
|
671
|
+
/** @description Conditions to AND together */
|
|
672
|
+
conditions: components["schemas"]["Condition"][];
|
|
673
|
+
/** @enum {string} */
|
|
674
|
+
op: "AND";
|
|
675
|
+
} | {
|
|
676
|
+
/** @description Conditions to OR together */
|
|
677
|
+
conditions: components["schemas"]["Condition"][];
|
|
678
|
+
/** @enum {string} */
|
|
679
|
+
op: "OR";
|
|
680
|
+
} | {
|
|
681
|
+
condition: components["schemas"]["Condition"];
|
|
682
|
+
/** @enum {string} */
|
|
683
|
+
op: "NOT";
|
|
684
|
+
} | {
|
|
685
|
+
/** @description Field path */
|
|
686
|
+
field: string;
|
|
687
|
+
/** @enum {string} */
|
|
688
|
+
op: "IN";
|
|
689
|
+
/** @description List of values to check against */
|
|
690
|
+
values: components["schemas"]["WorkflowValue"][];
|
|
691
|
+
} | {
|
|
692
|
+
condition: components["schemas"]["Condition"];
|
|
693
|
+
/** @description Field path to an array */
|
|
694
|
+
field: string;
|
|
695
|
+
/** @enum {string} */
|
|
696
|
+
op: "ANY";
|
|
697
|
+
} | {
|
|
698
|
+
condition: components["schemas"]["Condition"];
|
|
699
|
+
/** @description Field path to an array */
|
|
700
|
+
field: string;
|
|
701
|
+
/** @enum {string} */
|
|
702
|
+
op: "ALL";
|
|
703
|
+
} | {
|
|
704
|
+
/** @description Field path */
|
|
705
|
+
field: string;
|
|
706
|
+
/** @enum {string} */
|
|
707
|
+
op: "IS_NULL";
|
|
708
|
+
} | {
|
|
709
|
+
/** @description Field path */
|
|
710
|
+
field: string;
|
|
711
|
+
/** @enum {string} */
|
|
712
|
+
op: "IS_NOT_NULL";
|
|
713
|
+
} | {
|
|
714
|
+
/** @enum {string} */
|
|
715
|
+
op: "LITERAL";
|
|
716
|
+
/** @description The literal value */
|
|
717
|
+
value: boolean;
|
|
718
|
+
};
|
|
719
|
+
/**
|
|
720
|
+
* @description Condition operator type representing all valid condition operators.
|
|
721
|
+
* @enum {string}
|
|
722
|
+
*/
|
|
723
|
+
ConditionOperator: "EQ" | "NE" | "GT" | "LT" | "GTE" | "LTE" | "AND" | "OR" | "NOT" | "IN" | "ANY" | "ALL" | "IS_NULL" | "IS_NOT_NULL" | "LITERAL";
|
|
186
724
|
CountriesFilter: {
|
|
187
725
|
accepted: string[];
|
|
188
726
|
blocked: string[];
|
|
@@ -195,7 +733,7 @@ interface components {
|
|
|
195
733
|
} | null;
|
|
196
734
|
email?: string | null;
|
|
197
735
|
/** Format: uuid */
|
|
198
|
-
flowStepId
|
|
736
|
+
flowStepId?: string | null;
|
|
199
737
|
privacyPolicyAccepted: boolean;
|
|
200
738
|
termsAndConditionsAccepted: boolean;
|
|
201
739
|
};
|
|
@@ -256,21 +794,63 @@ interface components {
|
|
|
256
794
|
path: string;
|
|
257
795
|
type: string;
|
|
258
796
|
};
|
|
797
|
+
/** @description Status of various document scan checks.
|
|
798
|
+
*
|
|
799
|
+
* # Deserialization
|
|
800
|
+
*
|
|
801
|
+
* Supports both new abstract format and legacy Regula format:
|
|
802
|
+
*
|
|
803
|
+
* **New format:**
|
|
804
|
+
* ```json
|
|
805
|
+
* { "overall": "passed", "documentType": "passed", "expiry": "passed", "mrz": "passed" }
|
|
806
|
+
* ```
|
|
807
|
+
*
|
|
808
|
+
* **Legacy Regula format:**
|
|
809
|
+
* ```json
|
|
810
|
+
* {
|
|
811
|
+
* "overallStatus": 0,
|
|
812
|
+
* "detailsOptical": { "docType": 1, "expiry": 0, "mrz": 2, ... },
|
|
813
|
+
* "optical": 0, "portrait": 1, "rfid": 2, ...
|
|
814
|
+
* }
|
|
815
|
+
* ``` */
|
|
816
|
+
DocumentScanStatus: {
|
|
817
|
+
documentType: components["schemas"]["CheckStatus"];
|
|
818
|
+
expiry: components["schemas"]["CheckStatus"];
|
|
819
|
+
mrz: components["schemas"]["CheckStatus"];
|
|
820
|
+
overall: components["schemas"]["CheckStatus"];
|
|
821
|
+
};
|
|
822
|
+
DocumentSelectionConfig: {
|
|
823
|
+
allowedDocumentsPerCountry?: {
|
|
824
|
+
[key: string]: string[];
|
|
825
|
+
} | null;
|
|
826
|
+
countriesFilter: components["schemas"]["CountriesFilter"];
|
|
827
|
+
documentTypesFilter: components["schemas"]["DocumentTypeFilter"];
|
|
828
|
+
enabledGovernmentProviders: {
|
|
829
|
+
[key: string]: components["schemas"]["SpidDocumentType"][];
|
|
830
|
+
};
|
|
831
|
+
/** @example { "en_button_label": "Next step" } */
|
|
832
|
+
labels?: {
|
|
833
|
+
[key: string]: string;
|
|
834
|
+
};
|
|
835
|
+
};
|
|
836
|
+
/** @description Document selection step output for workflow decisions. */
|
|
837
|
+
DocumentSelectionStepOutput: {
|
|
838
|
+
country?: string | null;
|
|
839
|
+
/** Format: int64 */
|
|
840
|
+
documentType?: number | null;
|
|
841
|
+
};
|
|
259
842
|
DocumentTypeFilter: {
|
|
260
843
|
types: string[];
|
|
261
844
|
};
|
|
262
845
|
DocumentUpload: {
|
|
846
|
+
documentType?: string | null;
|
|
263
847
|
filename: string;
|
|
264
848
|
presignedUrl?: string | null;
|
|
265
849
|
s3Key?: string | null;
|
|
266
850
|
};
|
|
267
851
|
DvConfig: {
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
} | null;
|
|
271
|
-
countriesFilter?: components["schemas"]["CountriesFilter"] | null;
|
|
272
|
-
documentFormatsFilter?: components["schemas"]["DocumentFormatFilter"] | null;
|
|
273
|
-
documentTypesFilter?: components["schemas"]["DocumentTypeFilter"] | null;
|
|
852
|
+
/** Format: uuid */
|
|
853
|
+
documentSelectionStepId?: string;
|
|
274
854
|
/** @example { "en_button_label": "Next step" } */
|
|
275
855
|
labels?: {
|
|
276
856
|
[key: string]: string;
|
|
@@ -291,7 +871,7 @@ interface components {
|
|
|
291
871
|
/** @enum {string} */
|
|
292
872
|
DvConfigThreshold: "documentScorePercent";
|
|
293
873
|
/** @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" | "
|
|
874
|
+
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
875
|
DvResult: {
|
|
296
876
|
adminComment?: string | null;
|
|
297
877
|
authenticityChecks: number[][];
|
|
@@ -325,9 +905,7 @@ interface components {
|
|
|
325
905
|
platform?: string | null;
|
|
326
906
|
/** Format: int32 */
|
|
327
907
|
portraitMatchPercent?: number | null;
|
|
328
|
-
processAdditionalData:
|
|
329
|
-
[key: string]: unknown;
|
|
330
|
-
};
|
|
908
|
+
processAdditionalData: components["schemas"]["ProcessAdditionalData"];
|
|
331
909
|
provinceCode?: string | null;
|
|
332
910
|
reasons: components["schemas"]["DvReason"][];
|
|
333
911
|
status: components["schemas"]["ResultStatus"];
|
|
@@ -336,8 +914,32 @@ interface components {
|
|
|
336
914
|
/** Format: uuid */
|
|
337
915
|
verificationRequestId?: string | null;
|
|
338
916
|
};
|
|
917
|
+
DvStepOutput: {
|
|
918
|
+
amlPep?: boolean | null;
|
|
919
|
+
/** Format: int32 */
|
|
920
|
+
amlRiskScorePercent?: number | null;
|
|
921
|
+
amlSanctions?: boolean | null;
|
|
922
|
+
/** Format: date-time */
|
|
923
|
+
dateOfExpiry?: string | null;
|
|
924
|
+
/** Format: int32 */
|
|
925
|
+
documentType?: number | null;
|
|
926
|
+
issuingCountry?: string | null;
|
|
927
|
+
livenessStatus?: components["schemas"]["ResultStatus"] | null;
|
|
928
|
+
/** Format: int32 */
|
|
929
|
+
numberOfAttempts: number;
|
|
930
|
+
status: components["schemas"]["ResultStatus"];
|
|
931
|
+
};
|
|
339
932
|
/** @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";
|
|
933
|
+
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" | "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";
|
|
934
|
+
/** @description Represents an executed action with its ID and type. */
|
|
935
|
+
ExecutedAction: {
|
|
936
|
+
actionConfig: components["schemas"]["ActionConfig"];
|
|
937
|
+
/**
|
|
938
|
+
* Format: uuid
|
|
939
|
+
* @description The unique identifier of the action node.
|
|
940
|
+
*/
|
|
941
|
+
actionId: string;
|
|
942
|
+
};
|
|
341
943
|
FieldControlOperation: {
|
|
342
944
|
/** Format: uuid */
|
|
343
945
|
identityId: string;
|
|
@@ -359,6 +961,11 @@ interface components {
|
|
|
359
961
|
comment: string;
|
|
360
962
|
};
|
|
361
963
|
};
|
|
964
|
+
/**
|
|
965
|
+
* @description Per-field review status within a clarification document request.
|
|
966
|
+
* @enum {string}
|
|
967
|
+
*/
|
|
968
|
+
FieldReviewStatus: "PENDING" | "APPROVED" | "REJECTED";
|
|
362
969
|
FieldWithControl: {
|
|
363
970
|
controls: components["schemas"]["FieldControlOperation"][];
|
|
364
971
|
value: string[];
|
|
@@ -366,6 +973,8 @@ interface components {
|
|
|
366
973
|
FileOptions: {
|
|
367
974
|
accept: string[];
|
|
368
975
|
expectedDocumentType: string;
|
|
976
|
+
/** Format: int32 */
|
|
977
|
+
maxCountUploads?: number;
|
|
369
978
|
};
|
|
370
979
|
/** @enum {string} */
|
|
371
980
|
FilterOperator: "unfiltered" | "in" | "equals" | "not-in" | "not-equals" | "contains";
|
|
@@ -375,6 +984,7 @@ interface components {
|
|
|
375
984
|
failureUrl?: string | null;
|
|
376
985
|
/** Format: uuid */
|
|
377
986
|
id: string;
|
|
987
|
+
jdm: components["schemas"]["WorkflowGraph"];
|
|
378
988
|
name: string;
|
|
379
989
|
slug: string;
|
|
380
990
|
steps: components["schemas"]["FlowStep"][];
|
|
@@ -389,21 +999,27 @@ interface components {
|
|
|
389
999
|
createdAt?: string | null;
|
|
390
1000
|
customData: {
|
|
391
1001
|
[key: string]: unknown;
|
|
392
|
-
};
|
|
1002
|
+
} | null;
|
|
393
1003
|
dvResults: components["schemas"]["DvResult"][];
|
|
394
1004
|
flow?: components["schemas"]["Flow"] | null;
|
|
395
1005
|
flowSlug: string;
|
|
396
1006
|
formResults: components["schemas"]["FormResult"][];
|
|
1007
|
+
geolocationResults?: components["schemas"]["GeolocationResult"][];
|
|
397
1008
|
/** Format: uuid */
|
|
398
1009
|
id: string;
|
|
399
1010
|
identity?: components["schemas"]["Identity"] | null;
|
|
1011
|
+
jdmData: {
|
|
1012
|
+
[key: string]: components["schemas"]["FlowStepOutput"];
|
|
1013
|
+
};
|
|
400
1014
|
kybResults: components["schemas"]["KybResult"][];
|
|
401
1015
|
organization?: components["schemas"]["Organization"] | null;
|
|
402
1016
|
/** Format: uuid */
|
|
403
1017
|
organizationId: string;
|
|
404
1018
|
phoneResults: components["schemas"]["PhoneResult"][];
|
|
405
1019
|
poaResults: components["schemas"]["PoaResult"][];
|
|
1020
|
+
reviewSuggestion?: components["schemas"]["ReviewSuggestion"] | null;
|
|
406
1021
|
spidResults: components["schemas"]["SpidResult"][];
|
|
1022
|
+
status: components["schemas"]["VerificationRequestStatus"];
|
|
407
1023
|
/** Format: date-time */
|
|
408
1024
|
updatedAt?: string | null;
|
|
409
1025
|
walletResults: components["schemas"]["WalletResult"][];
|
|
@@ -589,7 +1205,27 @@ interface components {
|
|
|
589
1205
|
/** Format: date-time */
|
|
590
1206
|
updatedAt?: string | null;
|
|
591
1207
|
} | {
|
|
592
|
-
config: components["schemas"]["
|
|
1208
|
+
config: components["schemas"]["DocumentSelectionConfig"];
|
|
1209
|
+
/** Format: date-time */
|
|
1210
|
+
createdAt?: string | null;
|
|
1211
|
+
failureUrl?: string | null;
|
|
1212
|
+
/** Format: uuid */
|
|
1213
|
+
flowId: string;
|
|
1214
|
+
/** Format: uuid */
|
|
1215
|
+
gotoStepId?: string | null;
|
|
1216
|
+
/** Format: uuid */
|
|
1217
|
+
id: string;
|
|
1218
|
+
name: string;
|
|
1219
|
+
/** Format: int32 */
|
|
1220
|
+
order: number;
|
|
1221
|
+
slug: string;
|
|
1222
|
+
successUrl?: string | null;
|
|
1223
|
+
/** @enum {string} */
|
|
1224
|
+
type: "DOCUMENT_SELECTION";
|
|
1225
|
+
/** Format: date-time */
|
|
1226
|
+
updatedAt?: string | null;
|
|
1227
|
+
} | {
|
|
1228
|
+
config: components["schemas"]["GeolocationConfig"];
|
|
593
1229
|
/** Format: date-time */
|
|
594
1230
|
createdAt?: string | null;
|
|
595
1231
|
failureUrl?: string | null;
|
|
@@ -605,11 +1241,11 @@ interface components {
|
|
|
605
1241
|
slug: string;
|
|
606
1242
|
successUrl?: string | null;
|
|
607
1243
|
/** @enum {string} */
|
|
608
|
-
type: "
|
|
1244
|
+
type: "GEOLOCATION";
|
|
609
1245
|
/** Format: date-time */
|
|
610
1246
|
updatedAt?: string | null;
|
|
611
1247
|
};
|
|
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"]["
|
|
1248
|
+
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
1249
|
FlowStepInfo: {
|
|
614
1250
|
CONFIG: components["schemas"]["FlowStepConfig"];
|
|
615
1251
|
/** Format: date-time */
|
|
@@ -630,8 +1266,57 @@ interface components {
|
|
|
630
1266
|
/** Format: date-time */
|
|
631
1267
|
UPDATED_AT?: string | null;
|
|
632
1268
|
};
|
|
1269
|
+
FlowStepOutput: {
|
|
1270
|
+
data: components["schemas"]["DvStepOutput"];
|
|
1271
|
+
/** @enum {string} */
|
|
1272
|
+
type: "DV";
|
|
1273
|
+
} | {
|
|
1274
|
+
data: components["schemas"]["PoaStepOutput"];
|
|
1275
|
+
/** @enum {string} */
|
|
1276
|
+
type: "POA";
|
|
1277
|
+
} | {
|
|
1278
|
+
data: components["schemas"]["SpidStepOutput"];
|
|
1279
|
+
/** @enum {string} */
|
|
1280
|
+
type: "SPID";
|
|
1281
|
+
} | {
|
|
1282
|
+
data: components["schemas"]["WalletStepOutput"];
|
|
1283
|
+
/** @enum {string} */
|
|
1284
|
+
type: "WALLET";
|
|
1285
|
+
} | {
|
|
1286
|
+
data: components["schemas"]["PhoneStepOutput"];
|
|
1287
|
+
/** @enum {string} */
|
|
1288
|
+
type: "PHONE";
|
|
1289
|
+
} | {
|
|
1290
|
+
data: components["schemas"]["FormStepOutput"];
|
|
1291
|
+
/** @enum {string} */
|
|
1292
|
+
type: "FORM";
|
|
1293
|
+
} | {
|
|
1294
|
+
data: components["schemas"]["KybStepOutput"];
|
|
1295
|
+
/** @enum {string} */
|
|
1296
|
+
type: "KYB";
|
|
1297
|
+
} | {
|
|
1298
|
+
data: components["schemas"]["LivenessStepOutput"];
|
|
1299
|
+
/** @enum {string} */
|
|
1300
|
+
type: "LIVENESS";
|
|
1301
|
+
} | {
|
|
1302
|
+
data: components["schemas"]["AutoOneClickKycStepOutput"];
|
|
1303
|
+
/** @enum {string} */
|
|
1304
|
+
type: "AUTO_ONE_CLICK_KYC";
|
|
1305
|
+
} | {
|
|
1306
|
+
data: components["schemas"]["ActionStepOutput"];
|
|
1307
|
+
/** @enum {string} */
|
|
1308
|
+
type: "ACTION";
|
|
1309
|
+
} | {
|
|
1310
|
+
data: components["schemas"]["DocumentSelectionStepOutput"];
|
|
1311
|
+
/** @enum {string} */
|
|
1312
|
+
type: "DOCUMENT_SELECTION";
|
|
1313
|
+
} | {
|
|
1314
|
+
data: components["schemas"]["GeolocationStepOutput"];
|
|
1315
|
+
/** @enum {string} */
|
|
1316
|
+
type: "GEOLOCATION";
|
|
1317
|
+
};
|
|
633
1318
|
/** @enum {string} */
|
|
634
|
-
FlowStepType: "DV" | "FORM" | "POA" | "KYB" | "SPID" | "PHONE" | "WALLET" | "LIVENESS" | "AUTO_ONE_CLICK_KYC" | "
|
|
1319
|
+
FlowStepType: "DV" | "FORM" | "POA" | "KYB" | "SPID" | "PHONE" | "WALLET" | "LIVENESS" | "AUTO_ONE_CLICK_KYC" | "DOCUMENT_SELECTION" | "GEOLOCATION";
|
|
635
1320
|
Form: {
|
|
636
1321
|
/** Format: date-time */
|
|
637
1322
|
createdAt?: string | null;
|
|
@@ -659,6 +1344,8 @@ interface components {
|
|
|
659
1344
|
labels?: {
|
|
660
1345
|
[key: string]: string;
|
|
661
1346
|
};
|
|
1347
|
+
/** Format: int64 */
|
|
1348
|
+
oneClickMaxAgeSeconds?: number | null;
|
|
662
1349
|
};
|
|
663
1350
|
FormItem: {
|
|
664
1351
|
content: components["schemas"]["InputField"];
|
|
@@ -684,6 +1371,8 @@ interface components {
|
|
|
684
1371
|
flowStepId?: string | null;
|
|
685
1372
|
form?: components["schemas"]["Form"] | null;
|
|
686
1373
|
/** Format: uuid */
|
|
1374
|
+
formId?: string | null;
|
|
1375
|
+
/** Format: uuid */
|
|
687
1376
|
id: string;
|
|
688
1377
|
reason?: components["schemas"]["FormReason"] | null;
|
|
689
1378
|
sections: components["schemas"]["FormSection"][];
|
|
@@ -700,27 +1389,120 @@ interface components {
|
|
|
700
1389
|
};
|
|
701
1390
|
name: string;
|
|
702
1391
|
};
|
|
703
|
-
|
|
704
|
-
|
|
1392
|
+
/** @description Form step output for workflow decisions.
|
|
1393
|
+
*
|
|
1394
|
+
* # Field Name Restrictions
|
|
1395
|
+
*
|
|
1396
|
+
* The `fields` HashMap is flattened during serialization. Form field names must not conflict
|
|
1397
|
+
* with the reserved field name "status" (or "status" in camelCase), as this would create duplicate
|
|
1398
|
+
* keys in the serialized JSON output, resulting in invalid JSON. */
|
|
1399
|
+
FormStepOutput: {
|
|
1400
|
+
status: components["schemas"]["ResultStatus"];
|
|
1401
|
+
} & {
|
|
1402
|
+
[key: string]: unknown;
|
|
705
1403
|
};
|
|
706
|
-
|
|
707
|
-
|
|
1404
|
+
GeolocationConfig: {
|
|
1405
|
+
/** @example true */
|
|
1406
|
+
ipValidation?: boolean;
|
|
1407
|
+
/** @example { "default": "Next step" } */
|
|
1408
|
+
labels?: {
|
|
1409
|
+
[key: string]: string;
|
|
1410
|
+
};
|
|
1411
|
+
/** @example true */
|
|
1412
|
+
locationCrossCheck?: boolean;
|
|
1413
|
+
/** @example true */
|
|
1414
|
+
vpnDetection?: boolean;
|
|
708
1415
|
};
|
|
709
|
-
|
|
710
|
-
|
|
1416
|
+
GeolocationCoordinates: {
|
|
1417
|
+
/** Format: double */
|
|
1418
|
+
accuracy: number;
|
|
1419
|
+
/** Format: double */
|
|
1420
|
+
latitude: number;
|
|
1421
|
+
/** Format: double */
|
|
1422
|
+
longitude: number;
|
|
711
1423
|
};
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
1424
|
+
GeolocationResult: {
|
|
1425
|
+
blacklistedIp: boolean;
|
|
1426
|
+
country?: string | null;
|
|
1427
|
+
/** Format: date-time */
|
|
1428
|
+
createdAt?: string | null;
|
|
1429
|
+
deviceFingerprint?: string | null;
|
|
715
1430
|
/** Format: uuid */
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
1431
|
+
flowResultId: string;
|
|
1432
|
+
flowStep?: Omit<components["schemas"]["FlowStep"], "type"> | null;
|
|
1433
|
+
/** Format: uuid */
|
|
1434
|
+
flowStepId?: string | null;
|
|
1435
|
+
/** Format: uuid */
|
|
1436
|
+
id: string;
|
|
1437
|
+
ipAddress?: string | null;
|
|
1438
|
+
reason?: string | null;
|
|
1439
|
+
status: components["schemas"]["ResultStatus"];
|
|
1440
|
+
/** Format: date-time */
|
|
1441
|
+
updatedAt?: string | null;
|
|
1442
|
+
/** Format: uuid */
|
|
1443
|
+
verificationRequestId?: string | null;
|
|
1444
|
+
vpn: boolean;
|
|
1445
|
+
};
|
|
1446
|
+
/** @description Geolocation step output for workflow decisions. */
|
|
1447
|
+
GeolocationStepOutput: {
|
|
1448
|
+
blacklistedIp?: boolean;
|
|
1449
|
+
country?: string | null;
|
|
1450
|
+
deviceFingerprint?: string | null;
|
|
1451
|
+
ipAddress?: string | null;
|
|
1452
|
+
vpn?: boolean;
|
|
1453
|
+
};
|
|
1454
|
+
GetApiKeyResponse: {
|
|
1455
|
+
apiKey: components["schemas"]["ZypheApiKey"];
|
|
1456
|
+
};
|
|
1457
|
+
GetFlowResponse: {
|
|
1458
|
+
flow: components["schemas"]["Flow"];
|
|
1459
|
+
};
|
|
1460
|
+
GetFormResponse: {
|
|
1461
|
+
form: components["schemas"]["Form"];
|
|
1462
|
+
};
|
|
1463
|
+
GetFullFlowResponse: {
|
|
1464
|
+
flow: components["schemas"]["Flow"];
|
|
1465
|
+
flowPartnerOrganizationsNames?: string[] | null;
|
|
1466
|
+
/** Format: uuid */
|
|
1467
|
+
organizationId: string;
|
|
1468
|
+
organizationName: string;
|
|
1469
|
+
settings: components["schemas"]["Settings"];
|
|
1470
|
+
};
|
|
1471
|
+
/** @description Response to the `liveness-challenge` endpoint.
|
|
1472
|
+
*
|
|
1473
|
+
* The `mode` discriminant tells the client which capture flow to perform:
|
|
1474
|
+
* - `"ACTIVE"` — head-movement challenge; the client captures movements and
|
|
1475
|
+
* uploads movement images + video + calibration image.
|
|
1476
|
+
* - `"PASSIVE"` — selfie-only; the client uploads only a calibration image.
|
|
1477
|
+
* No movements are required. */
|
|
1478
|
+
GetLivenessChallengeResponse: {
|
|
1479
|
+
calibrationImage: components["schemas"]["LivenessUploadUrl"];
|
|
1480
|
+
/** Format: uuid */
|
|
1481
|
+
id: string;
|
|
1482
|
+
/** @enum {string} */
|
|
1483
|
+
mode: "ACTIVE";
|
|
1484
|
+
/** Format: int64 */
|
|
1485
|
+
movementDurationMs: number;
|
|
1486
|
+
movementImages: components["schemas"]["LivenessUploadUrl"][];
|
|
1487
|
+
movements: components["schemas"]["HeadMovement"][];
|
|
1488
|
+
rotationThresholds: components["schemas"]["RotationThresholds"];
|
|
1489
|
+
rotationThresholdsDiagonal: components["schemas"]["RotationThresholds"];
|
|
1490
|
+
video: components["schemas"]["LivenessUploadUrl"];
|
|
1491
|
+
} | {
|
|
1492
|
+
calibrationImage: components["schemas"]["LivenessUploadUrl"];
|
|
1493
|
+
/** Format: uuid */
|
|
1494
|
+
id: string;
|
|
1495
|
+
/** @enum {string} */
|
|
1496
|
+
mode: "PASSIVE";
|
|
1497
|
+
};
|
|
720
1498
|
GetNextStepPayload: {
|
|
1499
|
+
/** @description Email address of the user whose verification progress should be queried. */
|
|
721
1500
|
email: string;
|
|
722
1501
|
};
|
|
723
1502
|
GetNextStepResponse: {
|
|
1503
|
+
/** @description Actions that were automatically executed as part of flow evaluation (e.g. status transitions). */
|
|
1504
|
+
executedActions?: components["schemas"]["ExecutedAction"][];
|
|
1505
|
+
/** @description Whether the user has completed all required steps in the flow. */
|
|
724
1506
|
isCompleted: boolean;
|
|
725
1507
|
nextStep?: Omit<components["schemas"]["FlowStep"], "type"> | null;
|
|
726
1508
|
};
|
|
@@ -729,12 +1511,17 @@ interface components {
|
|
|
729
1511
|
passkey?: components["schemas"]["VaultUnlockPasskeyData"] | null;
|
|
730
1512
|
verificationRequest: components["schemas"]["VerificationRequest"];
|
|
731
1513
|
};
|
|
1514
|
+
/**
|
|
1515
|
+
* @description Represents the different head movements that can be requested in a liveness challenge
|
|
1516
|
+
* @enum {string}
|
|
1517
|
+
*/
|
|
1518
|
+
HeadMovement: "up" | "up-right" | "right" | "down-right" | "down" | "down-left" | "left" | "up-left";
|
|
732
1519
|
Identity: {
|
|
733
1520
|
/** Format: date-time */
|
|
734
1521
|
createdAt?: string | null;
|
|
735
1522
|
/** Format: uuid */
|
|
736
1523
|
defaultOrganizationId?: string | null;
|
|
737
|
-
email
|
|
1524
|
+
email?: string | null;
|
|
738
1525
|
emailVerified: boolean;
|
|
739
1526
|
/** Format: uuid */
|
|
740
1527
|
id: string;
|
|
@@ -749,16 +1536,44 @@ interface components {
|
|
|
749
1536
|
lastEnvironmentIsSandbox?: boolean;
|
|
750
1537
|
locale: components["schemas"]["Locale"];
|
|
751
1538
|
};
|
|
752
|
-
|
|
1539
|
+
/** @description Result of an image quality check.
|
|
1540
|
+
*
|
|
1541
|
+
* # Deserialization
|
|
1542
|
+
*
|
|
1543
|
+
* Supports both new abstract format and legacy Regula format:
|
|
1544
|
+
*
|
|
1545
|
+
* **New format:**
|
|
1546
|
+
* ```json
|
|
1547
|
+
* { "checkType": "focus", "result": "passed", "probability": 97 }
|
|
1548
|
+
* ```
|
|
1549
|
+
*
|
|
1550
|
+
* **Legacy Regula format (single item from 'list'):**
|
|
1551
|
+
* ```json
|
|
1552
|
+
* { "type": 1, "result": 0, "probability": 97, "featureType": 0, "mean": 0.0, "stdDev": 0.0 }
|
|
1553
|
+
* ``` */
|
|
1554
|
+
ImageQualityCheckResult: {
|
|
1555
|
+
checkType: components["schemas"]["ImageQualityCheckType"];
|
|
753
1556
|
/** Format: int32 */
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
lightIndex: number;
|
|
757
|
-
/** Format: int64 */
|
|
758
|
-
pageIndex: number;
|
|
759
|
-
source: string;
|
|
760
|
-
value: string;
|
|
1557
|
+
probability?: number | null;
|
|
1558
|
+
result: components["schemas"]["CheckStatus"];
|
|
761
1559
|
};
|
|
1560
|
+
/**
|
|
1561
|
+
* @description Types of image quality checks.
|
|
1562
|
+
*
|
|
1563
|
+
* # Deserialization
|
|
1564
|
+
*
|
|
1565
|
+
* Supports both string format and legacy Regula integer type codes:
|
|
1566
|
+
* - 0 = Glare (ImageGlares)
|
|
1567
|
+
* - 1 = Focus (ImageFocus)
|
|
1568
|
+
* - 2 = Resolution (ImageResolution)
|
|
1569
|
+
* - 3 = Colorness (ImageColorness)
|
|
1570
|
+
* - 4 = Perspective (ImagePerspective)
|
|
1571
|
+
* - 5 = Bounds (ImageBounds)
|
|
1572
|
+
* - 6 = ScreenCapture (ImageScreenCapture)
|
|
1573
|
+
* - 7 = Portrait (ImagePortrait)
|
|
1574
|
+
* @enum {string}
|
|
1575
|
+
*/
|
|
1576
|
+
ImageQualityCheckType: "glare" | "focus" | "resolution" | "colorness" | "perspective" | "bounds" | "screen_capture" | "portrait" | "image_quality" | "unknown";
|
|
762
1577
|
InputField: {
|
|
763
1578
|
label: {
|
|
764
1579
|
[key: string]: string;
|
|
@@ -825,10 +1640,64 @@ interface components {
|
|
|
825
1640
|
/** @enum {string} */
|
|
826
1641
|
type: "select";
|
|
827
1642
|
value?: unknown;
|
|
1643
|
+
} | {
|
|
1644
|
+
label: {
|
|
1645
|
+
[key: string]: string;
|
|
1646
|
+
};
|
|
1647
|
+
name: string;
|
|
1648
|
+
options: unknown;
|
|
1649
|
+
required: boolean;
|
|
1650
|
+
/** @enum {string} */
|
|
1651
|
+
type: "place";
|
|
1652
|
+
value?: unknown;
|
|
828
1653
|
};
|
|
829
1654
|
InputFieldOptions: components["schemas"]["FileOptions"] | components["schemas"]["SelectOptions"] | unknown;
|
|
830
1655
|
/** @enum {string} */
|
|
831
|
-
InputFieldType: "date" | "text" | "textarea" | "checkbox" | "file" | "select";
|
|
1656
|
+
InputFieldType: "date" | "text" | "textarea" | "checkbox" | "file" | "select" | "place";
|
|
1657
|
+
/** @description Input image for document scanning. */
|
|
1658
|
+
InputImage: {
|
|
1659
|
+
pageIndex: components["schemas"]["InputImagePageIndex"];
|
|
1660
|
+
/** @description Image source identifier */
|
|
1661
|
+
source: string;
|
|
1662
|
+
/** @description Base64-encoded image data */
|
|
1663
|
+
value: string;
|
|
1664
|
+
};
|
|
1665
|
+
/**
|
|
1666
|
+
* @description Page index for input images.
|
|
1667
|
+
*
|
|
1668
|
+
* Serialized as camelCase strings for frontend compatibility:
|
|
1669
|
+
* "front" and "back".
|
|
1670
|
+
* @enum {string}
|
|
1671
|
+
*/
|
|
1672
|
+
InputImagePageIndex: "front" | "back";
|
|
1673
|
+
KybActivityLogEntry: {
|
|
1674
|
+
/** Format: uuid */
|
|
1675
|
+
actorIdentityId?: string | null;
|
|
1676
|
+
actorIdentityZid?: string | null;
|
|
1677
|
+
/** Format: date-time */
|
|
1678
|
+
createdAt?: string | null;
|
|
1679
|
+
details: unknown;
|
|
1680
|
+
eventType: string;
|
|
1681
|
+
/** Format: uuid */
|
|
1682
|
+
id: string;
|
|
1683
|
+
/** Format: uuid */
|
|
1684
|
+
kybResultId: string;
|
|
1685
|
+
};
|
|
1686
|
+
KybCommunication: {
|
|
1687
|
+
body: string;
|
|
1688
|
+
/** Format: uuid */
|
|
1689
|
+
documentRequestId?: string | null;
|
|
1690
|
+
/** Format: uuid */
|
|
1691
|
+
id: string;
|
|
1692
|
+
/** Format: uuid */
|
|
1693
|
+
kybResultId: string;
|
|
1694
|
+
recipientEmail: string;
|
|
1695
|
+
/** Format: uuid */
|
|
1696
|
+
senderIdentityId: string;
|
|
1697
|
+
/** Format: date-time */
|
|
1698
|
+
sentAt?: string | null;
|
|
1699
|
+
subject: string;
|
|
1700
|
+
};
|
|
832
1701
|
KybConfig: {
|
|
833
1702
|
articlesOfAssociation?: components["schemas"]["DocumentConfig"] | null;
|
|
834
1703
|
certificateOfIncorporation?: components["schemas"]["DocumentConfig"] | null;
|
|
@@ -864,8 +1733,62 @@ interface components {
|
|
|
864
1733
|
maxUbos: number;
|
|
865
1734
|
organizationalStructureChart?: components["schemas"]["DocumentConfig"] | null;
|
|
866
1735
|
};
|
|
1736
|
+
KybDocumentRequest: {
|
|
1737
|
+
/** @description Clarification field keys requested for review (for clarification requests only). */
|
|
1738
|
+
clarificationFields?: string[] | null;
|
|
1739
|
+
clarificationResponse?: components["schemas"]["BusinessInformationClarificationResponse"] | null;
|
|
1740
|
+
/** Format: date-time */
|
|
1741
|
+
createdAt?: string | null;
|
|
1742
|
+
description?: string | null;
|
|
1743
|
+
documentName: string;
|
|
1744
|
+
/** @description Per-field review statuses for clarification requests.
|
|
1745
|
+
* Keys are field names (e.g. "companyName"), values are the review status for that field. */
|
|
1746
|
+
fieldStatuses?: {
|
|
1747
|
+
[key: string]: components["schemas"]["FieldReviewStatus"];
|
|
1748
|
+
} | null;
|
|
1749
|
+
/** Format: date-time */
|
|
1750
|
+
fulfilledAt?: string | null;
|
|
1751
|
+
/** Format: uuid */
|
|
1752
|
+
id: string;
|
|
1753
|
+
/** Format: uuid */
|
|
1754
|
+
kybResultId: string;
|
|
1755
|
+
presignedUrl?: string | null;
|
|
1756
|
+
/** @description Snapshot of old business information field values before the client submitted updated values.
|
|
1757
|
+
* Keys are field names, values are the previous string values. */
|
|
1758
|
+
previousValues?: {
|
|
1759
|
+
[key: string]: string;
|
|
1760
|
+
} | null;
|
|
1761
|
+
requestType: components["schemas"]["KybDocumentRequestType"];
|
|
1762
|
+
/** Format: uuid */
|
|
1763
|
+
requestedByIdentityId: string;
|
|
1764
|
+
reviewReason?: components["schemas"]["KybDocumentReviewReason"] | null;
|
|
1765
|
+
status: components["schemas"]["KybDocumentRequestStatus"];
|
|
1766
|
+
/** Format: date-time */
|
|
1767
|
+
updatedAt?: string | null;
|
|
1768
|
+
uploadedFilename?: string | null;
|
|
1769
|
+
uploadedS3Key?: string | null;
|
|
1770
|
+
};
|
|
1771
|
+
/** @enum {string} */
|
|
1772
|
+
KybDocumentRequestStatus: "PENDING" | "UPLOADED" | "APPROVED" | "REJECTED";
|
|
1773
|
+
/**
|
|
1774
|
+
* @description The type of a KYB document request.
|
|
1775
|
+
*
|
|
1776
|
+
* - `Standard` — operator requests a named document (e.g. certificate of incorporation). The client uploads a file.
|
|
1777
|
+
* - `Clarification` — operator requests the client to re-confirm or update specific business information fields.
|
|
1778
|
+
* Supports per-field review via `field_statuses`.
|
|
1779
|
+
* @enum {string}
|
|
1780
|
+
*/
|
|
1781
|
+
KybDocumentRequestType: "STANDARD" | "CLARIFICATION";
|
|
1782
|
+
KybDocumentReviewReason: string | components["schemas"]["BusinessInformationClarificationResponse"];
|
|
867
1783
|
KybResult: {
|
|
1784
|
+
/** Format: date-time */
|
|
1785
|
+
assignedAt?: string | null;
|
|
1786
|
+
/** Format: uuid */
|
|
1787
|
+
assignedToIdentityId?: string | null;
|
|
868
1788
|
businessInformation?: components["schemas"]["BusinessInformation"] | null;
|
|
1789
|
+
businessInformationVerification?: {
|
|
1790
|
+
[key: string]: components["schemas"]["BusinessInfoFieldVerification"];
|
|
1791
|
+
} | null;
|
|
869
1792
|
/** Format: date-time */
|
|
870
1793
|
createdAt?: string | null;
|
|
871
1794
|
directorDefinitions?: components["schemas"]["DirectorDefinition"][] | null;
|
|
@@ -873,8 +1796,11 @@ interface components {
|
|
|
873
1796
|
flowStep?: Omit<components["schemas"]["FlowStep"], "type"> | null;
|
|
874
1797
|
/** Format: uuid */
|
|
875
1798
|
flowStepId?: string | null;
|
|
1799
|
+
/** Format: date-time */
|
|
1800
|
+
fundedAt?: string | null;
|
|
876
1801
|
/** Format: uuid */
|
|
877
1802
|
id: string;
|
|
1803
|
+
nextAction?: components["schemas"]["NextAction"] | null;
|
|
878
1804
|
pepAndSanctionsStatus: components["schemas"]["PepAndSanctionsStatus"];
|
|
879
1805
|
reason?: string | null;
|
|
880
1806
|
report?: string | null;
|
|
@@ -885,6 +1811,87 @@ interface components {
|
|
|
885
1811
|
/** Format: uuid */
|
|
886
1812
|
verificationRequestId?: string | null;
|
|
887
1813
|
};
|
|
1814
|
+
/** @description KYB (Know Your Business) step output for workflow decisions. */
|
|
1815
|
+
KybStepOutput: {
|
|
1816
|
+
businessName?: string | null;
|
|
1817
|
+
country?: string | null;
|
|
1818
|
+
moderationStatus?: components["schemas"]["ModerationResultStatus"] | null;
|
|
1819
|
+
pepAndSanctionsStatus?: components["schemas"]["PepAndSanctionsStatus"] | null;
|
|
1820
|
+
registrationNumber?: string | null;
|
|
1821
|
+
status: components["schemas"]["ResultStatus"];
|
|
1822
|
+
};
|
|
1823
|
+
/** @enum {string} */
|
|
1824
|
+
Likelihood: "No Match" | "Very Low" | "low" | "medium" | "high" | "Very High" | "Exact Match";
|
|
1825
|
+
ListAllFlowResultsResponse: {
|
|
1826
|
+
page: components["schemas"]["FlowResult"][];
|
|
1827
|
+
/** Format: int64 */
|
|
1828
|
+
totalCount: number;
|
|
1829
|
+
};
|
|
1830
|
+
ListAllUsersResponse: {
|
|
1831
|
+
page: components["schemas"]["Identity"][];
|
|
1832
|
+
/** Format: int64 */
|
|
1833
|
+
totalCount: number;
|
|
1834
|
+
};
|
|
1835
|
+
ListOrganizationApiKeysResponse: {
|
|
1836
|
+
page: components["schemas"]["ZypheApiKey"][];
|
|
1837
|
+
/** Format: int64 */
|
|
1838
|
+
totalCount: number;
|
|
1839
|
+
};
|
|
1840
|
+
ListOrganizationFlowResultHistoryResponse: {
|
|
1841
|
+
page: components["schemas"]["VerificationRequest"][];
|
|
1842
|
+
/** Format: int64 */
|
|
1843
|
+
totalCount: number;
|
|
1844
|
+
};
|
|
1845
|
+
ListOrganizationFlowResultsResponse: {
|
|
1846
|
+
page: components["schemas"]["FlowResult"][];
|
|
1847
|
+
/** Format: int64 */
|
|
1848
|
+
totalCount: number;
|
|
1849
|
+
};
|
|
1850
|
+
ListOrganizationFlowsResponse: {
|
|
1851
|
+
page: components["schemas"]["Flow"][];
|
|
1852
|
+
/** Format: int64 */
|
|
1853
|
+
totalCount: number;
|
|
1854
|
+
};
|
|
1855
|
+
ListOrganizationFormsResponse: {
|
|
1856
|
+
page: components["schemas"]["Form"][];
|
|
1857
|
+
/** Format: int64 */
|
|
1858
|
+
totalCount: number;
|
|
1859
|
+
};
|
|
1860
|
+
ListOrganizationInvitesResponse: {
|
|
1861
|
+
page: components["schemas"]["OrganizationInvite"][];
|
|
1862
|
+
/** Format: int64 */
|
|
1863
|
+
totalCount: number;
|
|
1864
|
+
};
|
|
1865
|
+
ListOrganizationUsersResponse: {
|
|
1866
|
+
page: components["schemas"]["Identity"][];
|
|
1867
|
+
/** Format: int64 */
|
|
1868
|
+
totalCount: number;
|
|
1869
|
+
};
|
|
1870
|
+
ListOrganizationVerificationRequestsResponse: {
|
|
1871
|
+
page: components["schemas"]["VerificationRequest"][];
|
|
1872
|
+
/** Format: int64 */
|
|
1873
|
+
totalCount: number;
|
|
1874
|
+
};
|
|
1875
|
+
ListOrganizationsResponse: {
|
|
1876
|
+
page: components["schemas"]["Organization"][];
|
|
1877
|
+
/** Format: int64 */
|
|
1878
|
+
totalCount: number;
|
|
1879
|
+
};
|
|
1880
|
+
ListScreeningDetailsResponse: {
|
|
1881
|
+
page: components["schemas"]["MatchReportData"][];
|
|
1882
|
+
/** Format: int64 */
|
|
1883
|
+
totalCount: number;
|
|
1884
|
+
};
|
|
1885
|
+
ListSharedKycResultsResponse: {
|
|
1886
|
+
page: components["schemas"]["FlowResult"][];
|
|
1887
|
+
/** Format: int64 */
|
|
1888
|
+
totalCount: number;
|
|
1889
|
+
};
|
|
1890
|
+
ListUserInvitesResponse: {
|
|
1891
|
+
page: components["schemas"]["OrganizationInvite"][];
|
|
1892
|
+
/** Format: int64 */
|
|
1893
|
+
totalCount: number;
|
|
1894
|
+
};
|
|
888
1895
|
LivenessConfig: {
|
|
889
1896
|
/** @description When `true` the liveness step also performs a biometric match against the stored portrait.
|
|
890
1897
|
* Set to `false` to keep the liveness UX but skip biometric verification. */
|
|
@@ -900,17 +1907,60 @@ interface components {
|
|
|
900
1907
|
* @example 5
|
|
901
1908
|
*/
|
|
902
1909
|
maxAttempts?: number | null;
|
|
1910
|
+
/** @description When `true`, passive liveness (selfie-only, no head movements) is used instead
|
|
1911
|
+
* of active challenge-based liveness. Configured by admin only. Defaults to `false`. */
|
|
1912
|
+
passiveLiveness?: boolean;
|
|
1913
|
+
performAntispoof?: boolean | null;
|
|
903
1914
|
thresholds?: {
|
|
904
1915
|
[key: string]: number;
|
|
905
1916
|
} | null;
|
|
906
1917
|
};
|
|
907
1918
|
/** @enum {string} */
|
|
908
1919
|
LivenessConfigThreshold: "portraitMatchPercent" | "biometricMatchPercent";
|
|
1920
|
+
/** @description Liveness check step output for workflow decisions. */
|
|
1921
|
+
LivenessStepOutput: {
|
|
1922
|
+
status: components["schemas"]["ResultStatus"];
|
|
1923
|
+
};
|
|
1924
|
+
LivenessUploadUrl: {
|
|
1925
|
+
presignedUrl: string;
|
|
1926
|
+
s3Key: string;
|
|
1927
|
+
};
|
|
909
1928
|
/**
|
|
910
1929
|
* @description Locale identifier
|
|
911
1930
|
* @enum {string}
|
|
912
1931
|
*/
|
|
913
1932
|
Locale: "en" | "it" | "de" | "es" | "fr" | "hi" | "id" | "pt";
|
|
1933
|
+
/**
|
|
1934
|
+
* @description Logical operators for workflow branching.
|
|
1935
|
+
* @enum {string}
|
|
1936
|
+
*/
|
|
1937
|
+
LogicalOperator: "BRANCH" | "SWITCH" | "MERGE" | "PARALLEL_SPLIT" | "PARALLEL_JOIN";
|
|
1938
|
+
/** @enum {string} */
|
|
1939
|
+
ManualReviewResultStatus: "approved" | "rejected" | "failed";
|
|
1940
|
+
MatchDetail: {
|
|
1941
|
+
internalInfo?: string | null;
|
|
1942
|
+
matchCriteria?: string | null;
|
|
1943
|
+
/** Format: int32 */
|
|
1944
|
+
matchCriteriaNumeric?: number | null;
|
|
1945
|
+
matchedEntity?: string | null;
|
|
1946
|
+
};
|
|
1947
|
+
MatchReportData: {
|
|
1948
|
+
category?: string | null;
|
|
1949
|
+
database?: string | null;
|
|
1950
|
+
description?: string | null;
|
|
1951
|
+
entity_id?: string | null;
|
|
1952
|
+
entity_name?: string | null;
|
|
1953
|
+
likelihood?: components["schemas"]["Likelihood"] | null;
|
|
1954
|
+
mapped_entity_details?: components["schemas"]["ScreeningDetailsMappedEntityDetails"] | null;
|
|
1955
|
+
match_id?: string | null;
|
|
1956
|
+
match_level?: string | null;
|
|
1957
|
+
references?: string[] | null;
|
|
1958
|
+
/** Format: double */
|
|
1959
|
+
score?: number | null;
|
|
1960
|
+
sources?: string[] | null;
|
|
1961
|
+
sub_category?: string | null;
|
|
1962
|
+
updated_date?: string | null;
|
|
1963
|
+
};
|
|
914
1964
|
ModerateKybResultPayload: {
|
|
915
1965
|
pepAndSanctionsStatus?: components["schemas"]["PepAndSanctionsStatusField"] | null;
|
|
916
1966
|
/** Format: binary */
|
|
@@ -923,37 +1973,25 @@ interface components {
|
|
|
923
1973
|
/** @enum {string} */
|
|
924
1974
|
ModerationResultStatus: "ACQUIRING" | "PENDING_MODERATION" | "REVIEW_REQUIRED" | "SUCCESS" | "FAILED";
|
|
925
1975
|
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"][];
|
|
1976
|
+
/** @enum {string} */
|
|
1977
|
+
NextAction: "CLIENT" | "RM" | "COMPLIANCE" | "SUPPORT" | "FUNDED" | "DENIED";
|
|
1978
|
+
/** @description Position of a node in the visual editor. */
|
|
1979
|
+
NodePosition: {
|
|
942
1980
|
/**
|
|
943
|
-
* Format:
|
|
944
|
-
* @description
|
|
1981
|
+
* Format: double
|
|
1982
|
+
* @description X coordinate
|
|
945
1983
|
*/
|
|
946
|
-
|
|
1984
|
+
x: number;
|
|
947
1985
|
/**
|
|
948
|
-
*
|
|
949
|
-
* @
|
|
1986
|
+
* Format: double
|
|
1987
|
+
* @description Y coordinate
|
|
950
1988
|
*/
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
1989
|
+
y: number;
|
|
1990
|
+
};
|
|
1991
|
+
NormalizedEmail: {
|
|
1992
|
+
/** @example user@example.com */
|
|
1993
|
+
value: string;
|
|
954
1994
|
};
|
|
955
|
-
/** @enum {string} */
|
|
956
|
-
OrchestratorDocumentType: "ID_CARD" | "DRIVER_LICENSE" | "PASSPORT";
|
|
957
1995
|
Organization: {
|
|
958
1996
|
address: string;
|
|
959
1997
|
country: string;
|
|
@@ -973,6 +2011,42 @@ interface components {
|
|
|
973
2011
|
updatedAt?: string | null;
|
|
974
2012
|
website: string;
|
|
975
2013
|
};
|
|
2014
|
+
OrganizationInvite: {
|
|
2015
|
+
/** Format: date-time */
|
|
2016
|
+
createdAt?: string | null;
|
|
2017
|
+
email: string;
|
|
2018
|
+
/** Format: uuid */
|
|
2019
|
+
id: string;
|
|
2020
|
+
inviter?: components["schemas"]["OrganizationInviterInfo"] | null;
|
|
2021
|
+
/** Format: uuid */
|
|
2022
|
+
organizationId: string;
|
|
2023
|
+
revoked?: boolean | null;
|
|
2024
|
+
/** Format: date-time */
|
|
2025
|
+
revokedAt?: string | null;
|
|
2026
|
+
role: components["schemas"]["Role"];
|
|
2027
|
+
used: boolean;
|
|
2028
|
+
/** Format: date-time */
|
|
2029
|
+
validBefore: string;
|
|
2030
|
+
};
|
|
2031
|
+
OrganizationInviterInfo: {
|
|
2032
|
+
email?: string | null;
|
|
2033
|
+
role: components["schemas"]["Role"];
|
|
2034
|
+
};
|
|
2035
|
+
PagedActivityLogResponse: {
|
|
2036
|
+
page: components["schemas"]["KybActivityLogEntry"][];
|
|
2037
|
+
/** Format: int64 */
|
|
2038
|
+
totalCount: number;
|
|
2039
|
+
};
|
|
2040
|
+
PagedCommunicationsResponse: {
|
|
2041
|
+
page: components["schemas"]["KybCommunication"][];
|
|
2042
|
+
/** Format: int64 */
|
|
2043
|
+
totalCount: number;
|
|
2044
|
+
};
|
|
2045
|
+
PagedDocumentRequestsResponse: {
|
|
2046
|
+
page: components["schemas"]["KybDocumentRequest"][];
|
|
2047
|
+
/** Format: int64 */
|
|
2048
|
+
totalCount: number;
|
|
2049
|
+
};
|
|
976
2050
|
Pagination: {
|
|
977
2051
|
/** @example createdAt:in:2025-01-01,2025-01-02;updatedAt:gt:2025-01-02 */
|
|
978
2052
|
filter?: string;
|
|
@@ -1024,6 +2098,9 @@ interface components {
|
|
|
1024
2098
|
/** Format: uuid */
|
|
1025
2099
|
verificationRequestId?: string | null;
|
|
1026
2100
|
};
|
|
2101
|
+
PhoneStepOutput: {
|
|
2102
|
+
status: components["schemas"]["ResultStatus"];
|
|
2103
|
+
};
|
|
1027
2104
|
Plaintext: {
|
|
1028
2105
|
text: {
|
|
1029
2106
|
[key: string]: string;
|
|
@@ -1065,6 +2142,60 @@ interface components {
|
|
|
1065
2142
|
/** Format: uuid */
|
|
1066
2143
|
verificationRequestId?: string | null;
|
|
1067
2144
|
};
|
|
2145
|
+
PoaStepOutput: {
|
|
2146
|
+
/** Format: int64 */
|
|
2147
|
+
documentAgeDays?: number | null;
|
|
2148
|
+
documentType?: string | null;
|
|
2149
|
+
status: components["schemas"]["ResultStatus"];
|
|
2150
|
+
};
|
|
2151
|
+
/** @description Typed representation of process_additional_data stored in DV results.
|
|
2152
|
+
*
|
|
2153
|
+
* This struct captures all the additional data associated with document
|
|
2154
|
+
* verification processing, including document scan status, image quality
|
|
2155
|
+
* checks, security checks, and liveness data.
|
|
2156
|
+
*
|
|
2157
|
+
* # Deserialization
|
|
2158
|
+
*
|
|
2159
|
+
* Supports both new abstract format and legacy Regula format. The main difference
|
|
2160
|
+
* is in the `imageQuality` field:
|
|
2161
|
+
*
|
|
2162
|
+
* **New format:**
|
|
2163
|
+
* ```json
|
|
2164
|
+
* {
|
|
2165
|
+
* "imageQuality": [
|
|
2166
|
+
* { "checkType": "focus", "result": "passed", "probability": 97 }
|
|
2167
|
+
* ]
|
|
2168
|
+
* }
|
|
2169
|
+
* ```
|
|
2170
|
+
*
|
|
2171
|
+
* **Legacy Regula format:**
|
|
2172
|
+
* ```json
|
|
2173
|
+
* {
|
|
2174
|
+
* "imageQuality": [
|
|
2175
|
+
* {
|
|
2176
|
+
* "count": 6,
|
|
2177
|
+
* "list": [
|
|
2178
|
+
* { "type": 1, "result": 0, "probability": 97, ... }
|
|
2179
|
+
* ],
|
|
2180
|
+
* "result": 0
|
|
2181
|
+
* }
|
|
2182
|
+
* ]
|
|
2183
|
+
* }
|
|
2184
|
+
* ``` */
|
|
2185
|
+
ProcessAdditionalData: {
|
|
2186
|
+
autoOneClickKycData?: components["schemas"]["AutoOneClickKycData"] | null;
|
|
2187
|
+
/** @description Biometric check data (for face matching results) */
|
|
2188
|
+
biometricCheckData?: unknown;
|
|
2189
|
+
/** @description Image quality check results */
|
|
2190
|
+
imageQuality?: components["schemas"]["ImageQualityCheckResult"][] | null;
|
|
2191
|
+
/** @description Raw liveness data from face verification */
|
|
2192
|
+
rawLivenessData?: unknown;
|
|
2193
|
+
/** @description Security check results (mapped by check type) */
|
|
2194
|
+
securityChecks?: {
|
|
2195
|
+
[key: string]: string;
|
|
2196
|
+
} | null;
|
|
2197
|
+
status?: components["schemas"]["DocumentScanStatus"] | null;
|
|
2198
|
+
};
|
|
1068
2199
|
ProcessAddressDocumentRequest: {
|
|
1069
2200
|
/** Format: binary */
|
|
1070
2201
|
file: Blob;
|
|
@@ -1074,6 +2205,48 @@ interface components {
|
|
|
1074
2205
|
/** Format: uuid */
|
|
1075
2206
|
verificationRequestId: string;
|
|
1076
2207
|
};
|
|
2208
|
+
ProcessDocumentSelectionPayload: {
|
|
2209
|
+
/** @description ISO 3166-1 alpha-2 country code of the document to be verified (e.g. `"US"`, `"GB"`). Optional — omit to allow any country. */
|
|
2210
|
+
country?: string | null;
|
|
2211
|
+
/**
|
|
2212
|
+
* Format: int64
|
|
2213
|
+
* @description Numeric document type identifier. Optional — omit to allow any document type.
|
|
2214
|
+
*/
|
|
2215
|
+
documentType?: number | null;
|
|
2216
|
+
};
|
|
2217
|
+
ProcessDocumentSelectionResponse: {
|
|
2218
|
+
/**
|
|
2219
|
+
* Format: uuid
|
|
2220
|
+
* @description The ID of the verification request that was updated.
|
|
2221
|
+
*/
|
|
2222
|
+
verificationRequestId: string;
|
|
2223
|
+
};
|
|
2224
|
+
ProcessIdentityDocumentPayload: {
|
|
2225
|
+
allowedDocumentTypes?: number[];
|
|
2226
|
+
browser?: string | null;
|
|
2227
|
+
countryCode: string;
|
|
2228
|
+
/** Format: int64 */
|
|
2229
|
+
forceDocumentType?: number | null;
|
|
2230
|
+
/** @description Images to process (base64-encoded, provider-agnostic format).
|
|
2231
|
+
* Either images OR (session_token + interview_id) must be provided, not both. */
|
|
2232
|
+
images?: components["schemas"]["InputImage"][];
|
|
2233
|
+
/** @description Interview/session ID for session-based providers (e.g. Incode).
|
|
2234
|
+
* If provided along with session_token, the backend will fetch results from the provider. */
|
|
2235
|
+
interviewId?: string | null;
|
|
2236
|
+
platform?: string | null;
|
|
2237
|
+
provinceCode?: string | null;
|
|
2238
|
+
requiredDocumentFields?: {
|
|
2239
|
+
[key: string]: string;
|
|
2240
|
+
};
|
|
2241
|
+
/** @description Session token for session-based providers (e.g. Incode JWT).
|
|
2242
|
+
* If provided along with interview_id, the backend will fetch results from the provider. */
|
|
2243
|
+
sessionToken?: string | null;
|
|
2244
|
+
};
|
|
2245
|
+
ProcessIdentityDocumentResponse: {
|
|
2246
|
+
jobId: string;
|
|
2247
|
+
/** Format: uuid */
|
|
2248
|
+
verificationRequestId: string;
|
|
2249
|
+
};
|
|
1077
2250
|
ProcessImagesOverrides: {
|
|
1078
2251
|
authParams?: {
|
|
1079
2252
|
[key: string]: unknown;
|
|
@@ -1081,8 +2254,19 @@ interface components {
|
|
|
1081
2254
|
checkAuth?: boolean | null;
|
|
1082
2255
|
scenario?: string | null;
|
|
1083
2256
|
};
|
|
2257
|
+
ProcessLivenessPayload: {
|
|
2258
|
+
/** Format: uuid */
|
|
2259
|
+
challengeId: string;
|
|
2260
|
+
/** Format: int32 */
|
|
2261
|
+
movementImagesQuantity: number;
|
|
2262
|
+
};
|
|
2263
|
+
ProcessLivenessResponse: {
|
|
2264
|
+
jobId: string;
|
|
2265
|
+
/** Format: uuid */
|
|
2266
|
+
verificationRequestId: string;
|
|
2267
|
+
};
|
|
1084
2268
|
/** @enum {string} */
|
|
1085
|
-
ProductType: "UNKNOWN" | "
|
|
2269
|
+
ProductType: "UNKNOWN" | "DOCSCAN" | "LIVENESS" | "POA" | "KYB" | "KYC_PASSPORT" | "SPID" | "PHONE" | "WALLET" | "EXPORT_API" | "EXPORT_UI" | "BUSINESS_VERIFICATION" | "FLOW_BUILDER" | "GEOLOCATION" | "FORM";
|
|
1086
2270
|
/** @enum {string} */
|
|
1087
2271
|
RequiredDocumentField: "firstName" | "middleName" | "lastName" | "dateOfBirth" | "phone" | "email" | "street" | "city" | "state" | "postcode" | "country" | "socialSecurityNumber";
|
|
1088
2272
|
ResultControlOperation: {
|
|
@@ -1108,6 +2292,11 @@ interface components {
|
|
|
1108
2292
|
};
|
|
1109
2293
|
/** @enum {string} */
|
|
1110
2294
|
ResultStatus: "PASSED" | "FAILED" | "PARTIAL" | "REQUIRES_MANUAL_REVIEW" | "REQUIRES_ADMIN_REVIEW";
|
|
2295
|
+
ReviewSuggestion: {
|
|
2296
|
+
/** Format: double */
|
|
2297
|
+
confidence: number;
|
|
2298
|
+
suggestion: components["schemas"]["ManualReviewResultStatus"];
|
|
2299
|
+
};
|
|
1111
2300
|
/** @enum {string} */
|
|
1112
2301
|
RiskLevel: "low" | "medium" | "high" | "critical";
|
|
1113
2302
|
RiskScore: {
|
|
@@ -1117,23 +2306,65 @@ interface components {
|
|
|
1117
2306
|
sourcesCount: number;
|
|
1118
2307
|
};
|
|
1119
2308
|
/** @enum {string} */
|
|
1120
|
-
Role: "ANONYMOUS" | "GUEST" | "
|
|
2309
|
+
Role: "ANONYMOUS" | "GUEST" | "ORG_ADMIN" | "ORG_OPERATOR" | "ORG_DEVELOPER" | "AML_OFFICER" | "PARTNER_USER" | "PLATFORM_OPERATOR" | "PLATFORM_SALES" | "PLATFORM_ADMIN" | "SDK";
|
|
2310
|
+
/** @description Rotation thresholds (in degrees) for head movement verification */
|
|
2311
|
+
RotationThresholds: {
|
|
2312
|
+
/** Format: float */
|
|
2313
|
+
down: number;
|
|
2314
|
+
/** Format: float */
|
|
2315
|
+
left: number;
|
|
2316
|
+
/** Format: float */
|
|
2317
|
+
right: number;
|
|
2318
|
+
/** Format: float */
|
|
2319
|
+
up: number;
|
|
2320
|
+
};
|
|
2321
|
+
ScreeningDetailsMappedEntityDetails: {
|
|
2322
|
+
addressLine1?: components["schemas"]["MatchDetail"] | null;
|
|
2323
|
+
city?: components["schemas"]["MatchDetail"] | null;
|
|
2324
|
+
country?: components["schemas"]["MatchDetail"] | null;
|
|
2325
|
+
dateOfBirth?: components["schemas"]["MatchDetail"] | null;
|
|
2326
|
+
firstName?: components["schemas"]["MatchDetail"] | null;
|
|
2327
|
+
id?: components["schemas"]["MatchDetail"] | null;
|
|
2328
|
+
lastName?: components["schemas"]["MatchDetail"] | null;
|
|
2329
|
+
middleName?: components["schemas"]["MatchDetail"] | null;
|
|
2330
|
+
passportNumber?: components["schemas"]["MatchDetail"] | null;
|
|
2331
|
+
postalCode?: components["schemas"]["MatchDetail"] | null;
|
|
2332
|
+
};
|
|
1121
2333
|
SdkCreateVerificationRequestPayload: {
|
|
2334
|
+
/** @description Arbitrary key-value metadata to attach to this verification request. */
|
|
1122
2335
|
customData?: {
|
|
1123
2336
|
[key: string]: unknown;
|
|
1124
2337
|
} | null;
|
|
2338
|
+
/** @description Email address of the user being verified. */
|
|
1125
2339
|
email: string;
|
|
1126
|
-
/**
|
|
2340
|
+
/**
|
|
2341
|
+
* Format: uuid
|
|
2342
|
+
* @description The ID of the flow step to start or resume for this user.
|
|
2343
|
+
*/
|
|
1127
2344
|
flowStepId: string;
|
|
1128
2345
|
};
|
|
1129
2346
|
SdkCreateVerificationRequestResponse: {
|
|
1130
|
-
email
|
|
2347
|
+
/** @description The email address associated with the verified user's identity, if available. */
|
|
2348
|
+
email?: string | null;
|
|
2349
|
+
/** @description Slug of the flow this verification request belongs to. */
|
|
1131
2350
|
flowSlug: string;
|
|
2351
|
+
/** @description Slug of the current flow step (the first incomplete step). */
|
|
1132
2352
|
flowStepSlug: string;
|
|
2353
|
+
/** @description Whether this verification request was created in sandbox mode. */
|
|
1133
2354
|
isSandbox: boolean;
|
|
1134
2355
|
verificationRequest: components["schemas"]["VerificationRequest"];
|
|
2356
|
+
/** @description Zyphe user identifier (ZID) for the verified user. */
|
|
2357
|
+
zid: string;
|
|
2358
|
+
/** @description Short-lived signed access token used to authenticate subsequent SDK calls on behalf of this user. */
|
|
2359
|
+
zypheAccessSig: string;
|
|
2360
|
+
/** @description JWT for the verified user's session. Pass this as a bearer token for user-scoped SDK calls. */
|
|
1135
2361
|
zypheToken: string;
|
|
1136
2362
|
};
|
|
2363
|
+
/**
|
|
2364
|
+
* @description Canonical security/authenticity check types.
|
|
2365
|
+
* @enum {string}
|
|
2366
|
+
*/
|
|
2367
|
+
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
2368
|
SelectOptions: {
|
|
1138
2369
|
isOtherAllowed: boolean;
|
|
1139
2370
|
values: string[];
|
|
@@ -1141,13 +2372,20 @@ interface components {
|
|
|
1141
2372
|
Settings: {
|
|
1142
2373
|
/** Format: date-time */
|
|
1143
2374
|
createdAt?: string | null;
|
|
2375
|
+
delayFlowResults?: boolean | null;
|
|
2376
|
+
emailNotifications?: string[] | null;
|
|
1144
2377
|
extendedWebhook?: boolean | null;
|
|
1145
2378
|
primaryColor?: string | null;
|
|
1146
2379
|
profileImage?: string | null;
|
|
2380
|
+
published?: boolean;
|
|
1147
2381
|
secondaryColor?: string | null;
|
|
2382
|
+
skipSignedAccess?: boolean;
|
|
2383
|
+
slackNotifications?: string[] | null;
|
|
2384
|
+
telegramNotifications?: string[] | null;
|
|
1148
2385
|
/** Format: date-time */
|
|
1149
2386
|
updatedAt?: string | null;
|
|
1150
2387
|
webhookSecret?: string | null;
|
|
2388
|
+
webhookWithLegacy?: boolean | null;
|
|
1151
2389
|
};
|
|
1152
2390
|
/** @enum {string} */
|
|
1153
2391
|
SiwxChain: "ETHEREUM" | "ETHEREUM_TESTNET" | "SOLANA" | "SOLANA_TESTNET";
|
|
@@ -1157,6 +2395,8 @@ interface components {
|
|
|
1157
2395
|
[key: string]: string;
|
|
1158
2396
|
};
|
|
1159
2397
|
};
|
|
2398
|
+
/** @enum {string} */
|
|
2399
|
+
SpidDocumentType: "ITALIAN_SPID" | "AADHAAR";
|
|
1160
2400
|
SpidResult: {
|
|
1161
2401
|
/** Format: date-time */
|
|
1162
2402
|
createdAt?: string | null;
|
|
@@ -1193,6 +2433,15 @@ interface components {
|
|
|
1193
2433
|
spidCode?: string | null;
|
|
1194
2434
|
username?: string | null;
|
|
1195
2435
|
};
|
|
2436
|
+
SpidStepOutput: {
|
|
2437
|
+
status: components["schemas"]["ResultStatus"];
|
|
2438
|
+
};
|
|
2439
|
+
StartGeolocationVerificationRequest: Record<string, never>;
|
|
2440
|
+
StartGeolocationVerificationResponse: {
|
|
2441
|
+
nonce: string;
|
|
2442
|
+
/** Format: uuid */
|
|
2443
|
+
verificationRequestId: string;
|
|
2444
|
+
};
|
|
1196
2445
|
StartPhoneVerificationRequest: {
|
|
1197
2446
|
phoneNumberE164: string;
|
|
1198
2447
|
};
|
|
@@ -1223,7 +2472,7 @@ interface components {
|
|
|
1223
2472
|
*/
|
|
1224
2473
|
Uuid: string;
|
|
1225
2474
|
/** @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";
|
|
2475
|
+
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_workflow_graph_invalid" | "validation_invalid_role_for_invitation";
|
|
1227
2476
|
VaultUnlockPasskeyData: {
|
|
1228
2477
|
/** @description Passkey challenge for vault unlock (base64url) */
|
|
1229
2478
|
challenge: string;
|
|
@@ -1250,6 +2499,7 @@ interface components {
|
|
|
1250
2499
|
/** Format: uuid */
|
|
1251
2500
|
flowStepId: string;
|
|
1252
2501
|
formResult?: components["schemas"]["FormResult"] | null;
|
|
2502
|
+
geolocationResult?: components["schemas"]["GeolocationResult"] | null;
|
|
1253
2503
|
/** Format: uuid */
|
|
1254
2504
|
id: string;
|
|
1255
2505
|
identity?: components["schemas"]["Identity"] | null;
|
|
@@ -1270,6 +2520,21 @@ interface components {
|
|
|
1270
2520
|
};
|
|
1271
2521
|
/** @enum {string} */
|
|
1272
2522
|
VerificationRequestStatus: "PENDING" | "COMPLETED" | "FAILED" | "CANCELLED" | "QUEUED" | "PROCESSING" | "REQUIRES_MANUAL_REVIEW" | "REQUIRES_ADMIN_REVIEW" | "REJECTED";
|
|
2523
|
+
VerifyGeolocationProofRequest: {
|
|
2524
|
+
cloudflareTrace?: components["schemas"]["CloudflareTracePayload"] | null;
|
|
2525
|
+
coords: components["schemas"]["GeolocationCoordinates"];
|
|
2526
|
+
deviceFingerprint: string;
|
|
2527
|
+
isSecureContext: boolean;
|
|
2528
|
+
nonce: string;
|
|
2529
|
+
permissionStatus: string;
|
|
2530
|
+
rtcCandidates: string[];
|
|
2531
|
+
/** Format: int64 */
|
|
2532
|
+
timestamp: number;
|
|
2533
|
+
};
|
|
2534
|
+
VerifyGeolocationProofResponse: {
|
|
2535
|
+
/** Format: uuid */
|
|
2536
|
+
verificationRequestId: string;
|
|
2537
|
+
};
|
|
1273
2538
|
VerifyPhoneCodeRequest: {
|
|
1274
2539
|
code: string;
|
|
1275
2540
|
phoneNumberE164: string;
|
|
@@ -1315,40 +2580,1262 @@ interface components {
|
|
|
1315
2580
|
walletAddress: string;
|
|
1316
2581
|
walletChain: string;
|
|
1317
2582
|
};
|
|
1318
|
-
|
|
1319
|
-
|
|
1320
|
-
|
|
1321
|
-
|
|
1322
|
-
|
|
1323
|
-
|
|
1324
|
-
|
|
1325
|
-
|
|
1326
|
-
|
|
1327
|
-
|
|
1328
|
-
|
|
2583
|
+
WalletStepOutput: {
|
|
2584
|
+
status: components["schemas"]["ResultStatus"];
|
|
2585
|
+
};
|
|
2586
|
+
/** @description Context data available to JDM rules during flow evaluation.
|
|
2587
|
+
*
|
|
2588
|
+
* This structure is serialized to JSON and passed to the Zen Engine for evaluation.
|
|
2589
|
+
* JDM rules can access any field to make routing decisions.
|
|
2590
|
+
*
|
|
2591
|
+
* # Example JDM Access Patterns
|
|
2592
|
+
*
|
|
2593
|
+
* In JDM rules, you can access:
|
|
2594
|
+
* - `identity.email` - User's email address
|
|
2595
|
+
* - `jdmData.my_step_slug.data.issuingCountry` - Output from a previous step
|
|
2596
|
+
* - `customData.someKey` - Custom data passed during flow
|
|
2597
|
+
*
|
|
2598
|
+
* # Serialization
|
|
2599
|
+
*
|
|
2600
|
+
* Fields are serialized with camelCase naming to match JDM conventions. */
|
|
2601
|
+
WorkflowContext: {
|
|
2602
|
+
/** @description AML screening results */
|
|
2603
|
+
amlResults: components["schemas"]["AmlResult"][];
|
|
2604
|
+
/** @description Custom data passed during flow execution */
|
|
2605
|
+
customData: {
|
|
1329
2606
|
[key: string]: unknown;
|
|
1330
2607
|
};
|
|
1331
|
-
|
|
1332
|
-
|
|
2608
|
+
/** @description Document verification results */
|
|
2609
|
+
dvResults: components["schemas"]["DvResult"][];
|
|
2610
|
+
/** @description Form submission results */
|
|
2611
|
+
formResults: components["schemas"]["FormResult"][];
|
|
2612
|
+
identity?: components["schemas"]["Identity"] | null;
|
|
2613
|
+
/** @description Structured data from previous step executions for JDM consumption */
|
|
2614
|
+
jdmData?: {
|
|
2615
|
+
[key: string]: components["schemas"]["FlowStepOutput"];
|
|
2616
|
+
};
|
|
2617
|
+
/** @description KYB verification results */
|
|
2618
|
+
kybResults: components["schemas"]["KybResult"][];
|
|
2619
|
+
/** @description Phone verification results */
|
|
2620
|
+
phoneResults: components["schemas"]["PhoneResult"][];
|
|
2621
|
+
/** @description Proof of address results */
|
|
2622
|
+
poaResults: components["schemas"]["PoaResult"][];
|
|
2623
|
+
/** @description SPID verification results */
|
|
2624
|
+
spidResults: components["schemas"]["SpidResult"][];
|
|
2625
|
+
/** @description Wallet verification results */
|
|
2626
|
+
walletResults: components["schemas"]["WalletResult"][];
|
|
2627
|
+
};
|
|
2628
|
+
/** @description An edge connecting two nodes in the workflow graph.
|
|
2629
|
+
*
|
|
2630
|
+
* Edges represent the flow of control between nodes.
|
|
2631
|
+
* For conditional branching (from Operator nodes), edges can have labels
|
|
2632
|
+
* like "true" or "false" to indicate which path to take. */
|
|
2633
|
+
WorkflowEdge: {
|
|
2634
|
+
/**
|
|
2635
|
+
* Format: uuid
|
|
2636
|
+
* @description Unique identifier for this edge.
|
|
2637
|
+
*/
|
|
2638
|
+
id: string;
|
|
2639
|
+
/** @description Optional label for conditional edges.
|
|
2640
|
+
*
|
|
2641
|
+
* For edges from Branch operator nodes:
|
|
2642
|
+
* - "true": taken when condition evaluates to true
|
|
2643
|
+
* - "false": taken when condition evaluates to false */
|
|
2644
|
+
label?: string | null;
|
|
2645
|
+
/**
|
|
2646
|
+
* Format: uuid
|
|
2647
|
+
* @description The ID of the source node (where this edge starts).
|
|
2648
|
+
*/
|
|
2649
|
+
sourceId: string;
|
|
2650
|
+
/**
|
|
2651
|
+
* Format: uuid
|
|
2652
|
+
* @description The ID of the target node (where this edge ends).
|
|
2653
|
+
*/
|
|
2654
|
+
targetId: string;
|
|
2655
|
+
};
|
|
2656
|
+
/** @description Result of a workflow evaluation.
|
|
2657
|
+
*
|
|
2658
|
+
* The Zen Engine returns this structure after evaluating a JDM against a context.
|
|
2659
|
+
* The `next_step_slug` field determines which flow step to execute next. */
|
|
2660
|
+
WorkflowEvaluationResult: unknown & {
|
|
2661
|
+
/** @description Slug of the next step to execute.
|
|
2662
|
+
* If None, the flow continues with linear order or completes. */
|
|
2663
|
+
nextStepSlug?: string | null;
|
|
2664
|
+
};
|
|
2665
|
+
/** @description A workflow graph consisting of nodes and edges.
|
|
2666
|
+
*
|
|
2667
|
+
* The graph defines the structure of a workflow:
|
|
2668
|
+
* - One Start node where execution begins
|
|
2669
|
+
* - One or more End nodes where execution terminates
|
|
2670
|
+
* - Step nodes representing actual workflow steps
|
|
2671
|
+
* - Operator nodes for conditional branching
|
|
2672
|
+
* - Edges connecting nodes together */
|
|
2673
|
+
WorkflowGraph: {
|
|
2674
|
+
/** @description All edges connecting nodes. */
|
|
2675
|
+
edges?: components["schemas"]["WorkflowEdge"][];
|
|
2676
|
+
/** @description All nodes in the graph. */
|
|
2677
|
+
nodes?: components["schemas"]["WorkflowNode"][];
|
|
2678
|
+
};
|
|
2679
|
+
/** @description A node in the workflow graph.
|
|
2680
|
+
*
|
|
2681
|
+
* Nodes represent different types of elements in a workflow:
|
|
2682
|
+
* - `Start`: The entry point of the workflow
|
|
2683
|
+
* - `End`: A terminal point where the workflow completes
|
|
2684
|
+
* - `Step`: A workflow step that executes some action
|
|
2685
|
+
* - `Operator`: A conditional branching point */
|
|
2686
|
+
WorkflowNode: {
|
|
2687
|
+
/**
|
|
2688
|
+
* Format: uuid
|
|
2689
|
+
* @description Unique identifier for this node.
|
|
2690
|
+
*/
|
|
2691
|
+
id: string;
|
|
2692
|
+
metadata?: components["schemas"]["WorkflowNodeMetadata"] | null;
|
|
2693
|
+
/** @enum {string} */
|
|
2694
|
+
type: "START";
|
|
2695
|
+
} | {
|
|
2696
|
+
/**
|
|
2697
|
+
* Format: uuid
|
|
2698
|
+
* @description Unique identifier for this node.
|
|
2699
|
+
*/
|
|
2700
|
+
id: string;
|
|
2701
|
+
metadata?: components["schemas"]["WorkflowNodeMetadata"] | null;
|
|
2702
|
+
/** @enum {string} */
|
|
2703
|
+
type: "END";
|
|
2704
|
+
} | {
|
|
2705
|
+
/**
|
|
2706
|
+
* Format: uuid
|
|
2707
|
+
* @description Unique identifier for this node.
|
|
2708
|
+
*/
|
|
2709
|
+
id: string;
|
|
2710
|
+
metadata?: components["schemas"]["WorkflowNodeMetadata"] | null;
|
|
2711
|
+
/** @description The slug of the flow step this node represents. */
|
|
2712
|
+
stepSlug: string;
|
|
2713
|
+
/** @enum {string} */
|
|
2714
|
+
type: "STEP";
|
|
2715
|
+
} | {
|
|
2716
|
+
/** @description The branches to evaluate (required for Switch operator). */
|
|
2717
|
+
branches?: components["schemas"]["BranchCondition"][] | null;
|
|
2718
|
+
condition?: Omit<components["schemas"]["Condition"], "op"> | null;
|
|
2719
|
+
/**
|
|
2720
|
+
* Format: uuid
|
|
2721
|
+
* @description Unique identifier for this node.
|
|
2722
|
+
*/
|
|
2723
|
+
id: string;
|
|
2724
|
+
metadata?: components["schemas"]["WorkflowNodeMetadata"] | null;
|
|
2725
|
+
operator: components["schemas"]["LogicalOperator"];
|
|
2726
|
+
/** @enum {string} */
|
|
2727
|
+
type: "OPERATOR";
|
|
2728
|
+
} | {
|
|
2729
|
+
config: components["schemas"]["ActionConfig"];
|
|
2730
|
+
/**
|
|
2731
|
+
* Format: uuid
|
|
2732
|
+
* @description Unique identifier for this node.
|
|
2733
|
+
*/
|
|
2734
|
+
id: string;
|
|
2735
|
+
metadata?: components["schemas"]["WorkflowNodeMetadata"] | null;
|
|
2736
|
+
/** @enum {string} */
|
|
2737
|
+
type: "ACTION";
|
|
2738
|
+
};
|
|
2739
|
+
/** @description Metadata for a workflow node.
|
|
2740
|
+
*
|
|
2741
|
+
* Contains UI-specific information like position that doesn't affect execution logic. */
|
|
2742
|
+
WorkflowNodeMetadata: {
|
|
2743
|
+
position?: components["schemas"]["NodePosition"] | null;
|
|
2744
|
+
} & {
|
|
2745
|
+
[key: string]: unknown;
|
|
2746
|
+
};
|
|
2747
|
+
/** @description A dynamic value that can be used in workflow conditions and inputs.
|
|
2748
|
+
*
|
|
2749
|
+
* This enum represents all possible value types that can flow through
|
|
2750
|
+
* the workflow engine, including primitives, arrays, and objects.
|
|
2751
|
+
*
|
|
2752
|
+
* # Serialization
|
|
2753
|
+
*
|
|
2754
|
+
* Uses `untagged` serialization to match JSON semantics directly:
|
|
2755
|
+
* - `null` → `Null`
|
|
2756
|
+
* - `true`/`false` → `Bool`
|
|
2757
|
+
* - integers → `Integer`
|
|
2758
|
+
* - floats → `Float`
|
|
2759
|
+
* - strings → `String`
|
|
2760
|
+
* - arrays → `Array`
|
|
2761
|
+
* - objects → `Object` */
|
|
2762
|
+
WorkflowValue: (Record<string, never> | null) | boolean | number | string | components["schemas"]["WorkflowValue"][] | {
|
|
2763
|
+
[key: string]: components["schemas"]["WorkflowValue"];
|
|
2764
|
+
};
|
|
2765
|
+
ZypheApiKey: {
|
|
2766
|
+
allowedOrigins: string[];
|
|
2767
|
+
/** Format: date-time */
|
|
2768
|
+
createdAt?: string | null;
|
|
2769
|
+
description?: string | null;
|
|
2770
|
+
/** Format: uuid */
|
|
2771
|
+
id: string;
|
|
2772
|
+
key: string;
|
|
2773
|
+
keyType: components["schemas"]["ApiKeyType"];
|
|
2774
|
+
name?: string | null;
|
|
2775
|
+
options: {
|
|
2776
|
+
[key: string]: unknown;
|
|
2777
|
+
};
|
|
2778
|
+
organization?: components["schemas"]["Organization"] | null;
|
|
2779
|
+
/** Format: uuid */
|
|
1333
2780
|
organizationId: string;
|
|
1334
2781
|
/** Format: date-time */
|
|
1335
2782
|
updatedAt?: string | null;
|
|
1336
2783
|
};
|
|
1337
|
-
/**
|
|
1338
|
-
* @description Locale identifier
|
|
1339
|
-
* @enum {string}
|
|
1340
|
-
*/
|
|
1341
|
-
"zyphe_shared.types.Locale": "en" | "it" | "de" | "es" | "fr" | "hi" | "id" | "pt";
|
|
2784
|
+
/**
|
|
2785
|
+
* @description Locale identifier
|
|
2786
|
+
* @enum {string}
|
|
2787
|
+
*/
|
|
2788
|
+
"zyphe_shared.types.Locale": "en" | "it" | "de" | "es" | "fr" | "hi" | "id" | "pt";
|
|
2789
|
+
};
|
|
2790
|
+
responses: never;
|
|
2791
|
+
parameters: never;
|
|
2792
|
+
requestBodies: never;
|
|
2793
|
+
headers: never;
|
|
2794
|
+
pathItems: never;
|
|
2795
|
+
}
|
|
2796
|
+
interface operations {
|
|
2797
|
+
get_full_flow_details: {
|
|
2798
|
+
parameters: {
|
|
2799
|
+
query: {
|
|
2800
|
+
sandbox: boolean;
|
|
2801
|
+
locale?: components["schemas"]["Locale"];
|
|
2802
|
+
/** @description Signed access token (JWS). Required only when flow signed access is enabled. */
|
|
2803
|
+
zypheAccessSig?: string | null;
|
|
2804
|
+
};
|
|
2805
|
+
header?: never;
|
|
2806
|
+
path: {
|
|
2807
|
+
/** @description Flow slug */
|
|
2808
|
+
slug: string;
|
|
2809
|
+
};
|
|
2810
|
+
cookie?: never;
|
|
2811
|
+
};
|
|
2812
|
+
requestBody?: never;
|
|
2813
|
+
responses: {
|
|
2814
|
+
200: {
|
|
2815
|
+
headers: {
|
|
2816
|
+
[name: string]: unknown;
|
|
2817
|
+
};
|
|
2818
|
+
content: {
|
|
2819
|
+
"application/json": components["schemas"]["GetFullFlowResponse"];
|
|
2820
|
+
};
|
|
2821
|
+
};
|
|
2822
|
+
404: {
|
|
2823
|
+
headers: {
|
|
2824
|
+
[name: string]: unknown;
|
|
2825
|
+
};
|
|
2826
|
+
content: {
|
|
2827
|
+
"application/json": components["schemas"]["BaxeError"];
|
|
2828
|
+
};
|
|
2829
|
+
};
|
|
2830
|
+
500: {
|
|
2831
|
+
headers: {
|
|
2832
|
+
[name: string]: unknown;
|
|
2833
|
+
};
|
|
2834
|
+
content: {
|
|
2835
|
+
"application/json": components["schemas"]["BaxeError"];
|
|
2836
|
+
};
|
|
2837
|
+
};
|
|
2838
|
+
};
|
|
2839
|
+
};
|
|
2840
|
+
get_verification_request: {
|
|
2841
|
+
parameters: {
|
|
2842
|
+
query?: {
|
|
2843
|
+
/** @description Whether to use sandbox mode */
|
|
2844
|
+
sandbox?: boolean | null;
|
|
2845
|
+
};
|
|
2846
|
+
header?: never;
|
|
2847
|
+
path: {
|
|
2848
|
+
/**
|
|
2849
|
+
* @description Flow ID
|
|
2850
|
+
* @example 123e4567-e89b-12d3-a456-426614174000
|
|
2851
|
+
*/
|
|
2852
|
+
flow_id: string;
|
|
2853
|
+
/**
|
|
2854
|
+
* @description Verification Request ID
|
|
2855
|
+
* @example 123e4567-e89b-12d3-a456-426614174000
|
|
2856
|
+
*/
|
|
2857
|
+
verification_request_id: string;
|
|
2858
|
+
};
|
|
2859
|
+
cookie?: never;
|
|
2860
|
+
};
|
|
2861
|
+
requestBody?: never;
|
|
2862
|
+
responses: {
|
|
2863
|
+
200: {
|
|
2864
|
+
headers: {
|
|
2865
|
+
[name: string]: unknown;
|
|
2866
|
+
};
|
|
2867
|
+
content: {
|
|
2868
|
+
"application/json": components["schemas"]["GetVerificationRequestResponse"];
|
|
2869
|
+
};
|
|
2870
|
+
};
|
|
2871
|
+
404: {
|
|
2872
|
+
headers: {
|
|
2873
|
+
[name: string]: unknown;
|
|
2874
|
+
};
|
|
2875
|
+
content: {
|
|
2876
|
+
"application/json": components["schemas"]["BaxeError"];
|
|
2877
|
+
};
|
|
2878
|
+
};
|
|
2879
|
+
500: {
|
|
2880
|
+
headers: {
|
|
2881
|
+
[name: string]: unknown;
|
|
2882
|
+
};
|
|
2883
|
+
content: {
|
|
2884
|
+
"application/json": components["schemas"]["BaxeError"];
|
|
2885
|
+
};
|
|
2886
|
+
};
|
|
2887
|
+
};
|
|
2888
|
+
};
|
|
2889
|
+
sdk_create_verification_request: {
|
|
2890
|
+
parameters: {
|
|
2891
|
+
query: {
|
|
2892
|
+
sandbox: boolean;
|
|
2893
|
+
locale?: components["schemas"]["Locale"];
|
|
2894
|
+
};
|
|
2895
|
+
header?: never;
|
|
2896
|
+
path: {
|
|
2897
|
+
/**
|
|
2898
|
+
* @description Flow ID
|
|
2899
|
+
* @example 123e4567-e89b-12d3-a456-426614174000
|
|
2900
|
+
*/
|
|
2901
|
+
flow_id: string;
|
|
2902
|
+
};
|
|
2903
|
+
cookie?: never;
|
|
2904
|
+
};
|
|
2905
|
+
requestBody: {
|
|
2906
|
+
content: {
|
|
2907
|
+
"application/json": components["schemas"]["SdkCreateVerificationRequestPayload"];
|
|
2908
|
+
};
|
|
2909
|
+
};
|
|
2910
|
+
responses: {
|
|
2911
|
+
200: {
|
|
2912
|
+
headers: {
|
|
2913
|
+
[name: string]: unknown;
|
|
2914
|
+
};
|
|
2915
|
+
content: {
|
|
2916
|
+
"application/json": components["schemas"]["SdkCreateVerificationRequestResponse"];
|
|
2917
|
+
};
|
|
2918
|
+
};
|
|
2919
|
+
400: {
|
|
2920
|
+
headers: {
|
|
2921
|
+
[name: string]: unknown;
|
|
2922
|
+
};
|
|
2923
|
+
content: {
|
|
2924
|
+
"application/json": components["schemas"]["BaxeError"];
|
|
2925
|
+
};
|
|
2926
|
+
};
|
|
2927
|
+
409: {
|
|
2928
|
+
headers: {
|
|
2929
|
+
[name: string]: unknown;
|
|
2930
|
+
};
|
|
2931
|
+
content: {
|
|
2932
|
+
"application/json": components["schemas"]["BaxeError"];
|
|
2933
|
+
};
|
|
2934
|
+
};
|
|
2935
|
+
500: {
|
|
2936
|
+
headers: {
|
|
2937
|
+
[name: string]: unknown;
|
|
2938
|
+
};
|
|
2939
|
+
content: {
|
|
2940
|
+
"application/json": components["schemas"]["BaxeError"];
|
|
2941
|
+
};
|
|
2942
|
+
};
|
|
2943
|
+
};
|
|
2944
|
+
};
|
|
2945
|
+
sdk_get_next_step: {
|
|
2946
|
+
parameters: {
|
|
2947
|
+
query: {
|
|
2948
|
+
sandbox: boolean;
|
|
2949
|
+
locale?: components["schemas"]["Locale"];
|
|
2950
|
+
/** @description Email address of the user whose verification progress should be queried. */
|
|
2951
|
+
email: string;
|
|
2952
|
+
};
|
|
2953
|
+
header?: never;
|
|
2954
|
+
path: {
|
|
2955
|
+
/**
|
|
2956
|
+
* @description Flow ID
|
|
2957
|
+
* @example 123e4567-e89b-12d3-a456-426614174000
|
|
2958
|
+
*/
|
|
2959
|
+
flow_id: string;
|
|
2960
|
+
};
|
|
2961
|
+
cookie?: never;
|
|
2962
|
+
};
|
|
2963
|
+
requestBody?: never;
|
|
2964
|
+
responses: {
|
|
2965
|
+
200: {
|
|
2966
|
+
headers: {
|
|
2967
|
+
[name: string]: unknown;
|
|
2968
|
+
};
|
|
2969
|
+
content: {
|
|
2970
|
+
"application/json": components["schemas"]["GetNextStepResponse"];
|
|
2971
|
+
};
|
|
2972
|
+
};
|
|
2973
|
+
400: {
|
|
2974
|
+
headers: {
|
|
2975
|
+
[name: string]: unknown;
|
|
2976
|
+
};
|
|
2977
|
+
content: {
|
|
2978
|
+
"application/json": components["schemas"]["BaxeError"];
|
|
2979
|
+
};
|
|
2980
|
+
};
|
|
2981
|
+
404: {
|
|
2982
|
+
headers: {
|
|
2983
|
+
[name: string]: unknown;
|
|
2984
|
+
};
|
|
2985
|
+
content: {
|
|
2986
|
+
"application/json": components["schemas"]["BaxeError"];
|
|
2987
|
+
};
|
|
2988
|
+
};
|
|
2989
|
+
500: {
|
|
2990
|
+
headers: {
|
|
2991
|
+
[name: string]: unknown;
|
|
2992
|
+
};
|
|
2993
|
+
content: {
|
|
2994
|
+
"application/json": components["schemas"]["BaxeError"];
|
|
2995
|
+
};
|
|
2996
|
+
};
|
|
2997
|
+
};
|
|
2998
|
+
};
|
|
2999
|
+
sdk_process_dv_document: {
|
|
3000
|
+
parameters: {
|
|
3001
|
+
query?: {
|
|
3002
|
+
/** @description Use sandbox environment */
|
|
3003
|
+
sandbox?: boolean | null;
|
|
3004
|
+
};
|
|
3005
|
+
header?: never;
|
|
3006
|
+
path: {
|
|
3007
|
+
/** @description Flow ID */
|
|
3008
|
+
flow_id: string;
|
|
3009
|
+
/** @description Verification Request ID */
|
|
3010
|
+
verification_request_id: string;
|
|
3011
|
+
};
|
|
3012
|
+
cookie?: never;
|
|
3013
|
+
};
|
|
3014
|
+
requestBody: {
|
|
3015
|
+
content: {
|
|
3016
|
+
"application/json": components["schemas"]["ProcessIdentityDocumentPayload"];
|
|
3017
|
+
};
|
|
3018
|
+
};
|
|
3019
|
+
responses: {
|
|
3020
|
+
202: {
|
|
3021
|
+
headers: {
|
|
3022
|
+
[name: string]: unknown;
|
|
3023
|
+
};
|
|
3024
|
+
content: {
|
|
3025
|
+
"application/json": components["schemas"]["ProcessIdentityDocumentResponse"];
|
|
3026
|
+
};
|
|
3027
|
+
};
|
|
3028
|
+
400: {
|
|
3029
|
+
headers: {
|
|
3030
|
+
[name: string]: unknown;
|
|
3031
|
+
};
|
|
3032
|
+
content: {
|
|
3033
|
+
"application/json": components["schemas"]["BaxeError"];
|
|
3034
|
+
};
|
|
3035
|
+
};
|
|
3036
|
+
500: {
|
|
3037
|
+
headers: {
|
|
3038
|
+
[name: string]: unknown;
|
|
3039
|
+
};
|
|
3040
|
+
content: {
|
|
3041
|
+
"application/json": components["schemas"]["BaxeError"];
|
|
3042
|
+
};
|
|
3043
|
+
};
|
|
3044
|
+
};
|
|
3045
|
+
};
|
|
3046
|
+
sdk_get_liveness_challenge: {
|
|
3047
|
+
parameters: {
|
|
3048
|
+
query?: {
|
|
3049
|
+
/** @description Use sandbox environment */
|
|
3050
|
+
sandbox?: boolean | null;
|
|
3051
|
+
};
|
|
3052
|
+
header?: never;
|
|
3053
|
+
path: {
|
|
3054
|
+
/** @description Flow ID */
|
|
3055
|
+
flow_id: string;
|
|
3056
|
+
/** @description Verification Request ID */
|
|
3057
|
+
verification_request_id: string;
|
|
3058
|
+
};
|
|
3059
|
+
cookie?: never;
|
|
3060
|
+
};
|
|
3061
|
+
requestBody?: never;
|
|
3062
|
+
responses: {
|
|
3063
|
+
200: {
|
|
3064
|
+
headers: {
|
|
3065
|
+
[name: string]: unknown;
|
|
3066
|
+
};
|
|
3067
|
+
content: {
|
|
3068
|
+
"application/json": components["schemas"]["GetLivenessChallengeResponse"];
|
|
3069
|
+
};
|
|
3070
|
+
};
|
|
3071
|
+
500: {
|
|
3072
|
+
headers: {
|
|
3073
|
+
[name: string]: unknown;
|
|
3074
|
+
};
|
|
3075
|
+
content: {
|
|
3076
|
+
"application/json": components["schemas"]["BaxeError"];
|
|
3077
|
+
};
|
|
3078
|
+
};
|
|
3079
|
+
};
|
|
3080
|
+
};
|
|
3081
|
+
sdk_process_dv_liveness: {
|
|
3082
|
+
parameters: {
|
|
3083
|
+
query?: {
|
|
3084
|
+
/** @description Use sandbox environment */
|
|
3085
|
+
sandbox?: boolean | null;
|
|
3086
|
+
};
|
|
3087
|
+
header?: never;
|
|
3088
|
+
path: {
|
|
3089
|
+
/** @description Flow ID */
|
|
3090
|
+
flow_id: string;
|
|
3091
|
+
/** @description Verification Request ID */
|
|
3092
|
+
verification_request_id: string;
|
|
3093
|
+
};
|
|
3094
|
+
cookie?: never;
|
|
3095
|
+
};
|
|
3096
|
+
requestBody: {
|
|
3097
|
+
content: {
|
|
3098
|
+
"application/json": components["schemas"]["ProcessLivenessPayload"];
|
|
3099
|
+
};
|
|
3100
|
+
};
|
|
3101
|
+
responses: {
|
|
3102
|
+
202: {
|
|
3103
|
+
headers: {
|
|
3104
|
+
[name: string]: unknown;
|
|
3105
|
+
};
|
|
3106
|
+
content: {
|
|
3107
|
+
"application/json": components["schemas"]["ProcessLivenessResponse"];
|
|
3108
|
+
};
|
|
3109
|
+
};
|
|
3110
|
+
400: {
|
|
3111
|
+
headers: {
|
|
3112
|
+
[name: string]: unknown;
|
|
3113
|
+
};
|
|
3114
|
+
content: {
|
|
3115
|
+
"application/json": components["schemas"]["BaxeError"];
|
|
3116
|
+
};
|
|
3117
|
+
};
|
|
3118
|
+
500: {
|
|
3119
|
+
headers: {
|
|
3120
|
+
[name: string]: unknown;
|
|
3121
|
+
};
|
|
3122
|
+
content: {
|
|
3123
|
+
"application/json": components["schemas"]["BaxeError"];
|
|
3124
|
+
};
|
|
3125
|
+
};
|
|
3126
|
+
};
|
|
3127
|
+
};
|
|
3128
|
+
sdk_process_dv_selection: {
|
|
3129
|
+
parameters: {
|
|
3130
|
+
query?: {
|
|
3131
|
+
/** @description Use sandbox environment */
|
|
3132
|
+
sandbox?: boolean | null;
|
|
3133
|
+
};
|
|
3134
|
+
header?: never;
|
|
3135
|
+
path: {
|
|
3136
|
+
/** @description Flow ID */
|
|
3137
|
+
flow_id: string;
|
|
3138
|
+
/** @description Verification Request ID */
|
|
3139
|
+
verification_request_id: string;
|
|
3140
|
+
};
|
|
3141
|
+
cookie?: never;
|
|
3142
|
+
};
|
|
3143
|
+
requestBody: {
|
|
3144
|
+
content: {
|
|
3145
|
+
"application/json": components["schemas"]["ProcessDocumentSelectionPayload"];
|
|
3146
|
+
};
|
|
3147
|
+
};
|
|
3148
|
+
responses: {
|
|
3149
|
+
200: {
|
|
3150
|
+
headers: {
|
|
3151
|
+
[name: string]: unknown;
|
|
3152
|
+
};
|
|
3153
|
+
content: {
|
|
3154
|
+
"application/json": components["schemas"]["ProcessDocumentSelectionResponse"];
|
|
3155
|
+
};
|
|
3156
|
+
};
|
|
3157
|
+
400: {
|
|
3158
|
+
headers: {
|
|
3159
|
+
[name: string]: unknown;
|
|
3160
|
+
};
|
|
3161
|
+
content: {
|
|
3162
|
+
"application/json": components["schemas"]["BaxeError"];
|
|
3163
|
+
};
|
|
3164
|
+
};
|
|
3165
|
+
500: {
|
|
3166
|
+
headers: {
|
|
3167
|
+
[name: string]: unknown;
|
|
3168
|
+
};
|
|
3169
|
+
content: {
|
|
3170
|
+
"application/json": components["schemas"]["BaxeError"];
|
|
3171
|
+
};
|
|
3172
|
+
};
|
|
3173
|
+
};
|
|
3174
|
+
};
|
|
3175
|
+
get_completed_verification_requests: {
|
|
3176
|
+
parameters: {
|
|
3177
|
+
query: {
|
|
3178
|
+
sandbox: boolean;
|
|
3179
|
+
locale?: components["schemas"]["Locale"];
|
|
3180
|
+
};
|
|
3181
|
+
header?: never;
|
|
3182
|
+
path: {
|
|
3183
|
+
/**
|
|
3184
|
+
* @description Flow ID
|
|
3185
|
+
* @example 123e4567-e89b-12d3-a456-426614174000
|
|
3186
|
+
*/
|
|
3187
|
+
flow_id: string;
|
|
3188
|
+
};
|
|
3189
|
+
cookie?: never;
|
|
3190
|
+
};
|
|
3191
|
+
requestBody?: never;
|
|
3192
|
+
responses: {
|
|
3193
|
+
200: {
|
|
3194
|
+
headers: {
|
|
3195
|
+
[name: string]: unknown;
|
|
3196
|
+
};
|
|
3197
|
+
content: {
|
|
3198
|
+
"application/json": components["schemas"]["VerificationRequest"][];
|
|
3199
|
+
};
|
|
3200
|
+
};
|
|
3201
|
+
500: {
|
|
3202
|
+
headers: {
|
|
3203
|
+
[name: string]: unknown;
|
|
3204
|
+
};
|
|
3205
|
+
content: {
|
|
3206
|
+
"application/json": components["schemas"]["BaxeError"];
|
|
3207
|
+
};
|
|
3208
|
+
};
|
|
3209
|
+
};
|
|
3210
|
+
};
|
|
3211
|
+
sdk_list_flow_results: {
|
|
3212
|
+
parameters: {
|
|
3213
|
+
query: {
|
|
3214
|
+
pagination?: components["schemas"]["Pagination"];
|
|
3215
|
+
sandbox: boolean;
|
|
3216
|
+
locale?: components["schemas"]["Locale"];
|
|
3217
|
+
};
|
|
3218
|
+
header?: never;
|
|
3219
|
+
path: {
|
|
3220
|
+
/** @description Organization ID */
|
|
3221
|
+
organization_id: string;
|
|
3222
|
+
/** @description Flow slug to scope results to */
|
|
3223
|
+
flow_slug: string;
|
|
3224
|
+
};
|
|
3225
|
+
cookie?: never;
|
|
3226
|
+
};
|
|
3227
|
+
requestBody?: never;
|
|
3228
|
+
responses: {
|
|
3229
|
+
200: {
|
|
3230
|
+
headers: {
|
|
3231
|
+
[name: string]: unknown;
|
|
3232
|
+
};
|
|
3233
|
+
content: {
|
|
3234
|
+
"application/json": components["schemas"]["ListOrganizationFlowResultsResponse"];
|
|
3235
|
+
};
|
|
3236
|
+
};
|
|
3237
|
+
400: {
|
|
3238
|
+
headers: {
|
|
3239
|
+
[name: string]: unknown;
|
|
3240
|
+
};
|
|
3241
|
+
content: {
|
|
3242
|
+
"application/json": components["schemas"]["BaxeError"];
|
|
3243
|
+
};
|
|
3244
|
+
};
|
|
3245
|
+
401: {
|
|
3246
|
+
headers: {
|
|
3247
|
+
[name: string]: unknown;
|
|
3248
|
+
};
|
|
3249
|
+
content: {
|
|
3250
|
+
"application/json": components["schemas"]["BaxeError"];
|
|
3251
|
+
};
|
|
3252
|
+
};
|
|
3253
|
+
500: {
|
|
3254
|
+
headers: {
|
|
3255
|
+
[name: string]: unknown;
|
|
3256
|
+
};
|
|
3257
|
+
content: {
|
|
3258
|
+
"application/json": components["schemas"]["BaxeError"];
|
|
3259
|
+
};
|
|
3260
|
+
};
|
|
3261
|
+
};
|
|
3262
|
+
};
|
|
3263
|
+
get_sdk_flow_result_details: {
|
|
3264
|
+
parameters: {
|
|
3265
|
+
query: {
|
|
3266
|
+
sandbox: boolean;
|
|
3267
|
+
locale?: components["schemas"]["Locale"];
|
|
3268
|
+
};
|
|
3269
|
+
header?: never;
|
|
3270
|
+
path: {
|
|
3271
|
+
/**
|
|
3272
|
+
* @description The ID of the organization
|
|
3273
|
+
* @example 123e4567-e89b-12d3-a456-426614174000
|
|
3274
|
+
*/
|
|
3275
|
+
organization_id: string;
|
|
3276
|
+
/**
|
|
3277
|
+
* @description The ID of the flow result
|
|
3278
|
+
* @example 123e4567-e89b-12d3-a456-426614174000
|
|
3279
|
+
*/
|
|
3280
|
+
flow_result_id: string;
|
|
3281
|
+
/**
|
|
3282
|
+
* @description The slug of the flow
|
|
3283
|
+
* @example kyc-flow
|
|
3284
|
+
*/
|
|
3285
|
+
flow_slug: string;
|
|
3286
|
+
};
|
|
3287
|
+
cookie?: never;
|
|
3288
|
+
};
|
|
3289
|
+
requestBody?: never;
|
|
3290
|
+
responses: {
|
|
3291
|
+
200: {
|
|
3292
|
+
headers: {
|
|
3293
|
+
[name: string]: unknown;
|
|
3294
|
+
};
|
|
3295
|
+
content: {
|
|
3296
|
+
"application/json": components["schemas"]["FlowResult"];
|
|
3297
|
+
};
|
|
3298
|
+
};
|
|
3299
|
+
400: {
|
|
3300
|
+
headers: {
|
|
3301
|
+
[name: string]: unknown;
|
|
3302
|
+
};
|
|
3303
|
+
content: {
|
|
3304
|
+
"application/json": components["schemas"]["BaxeError"];
|
|
3305
|
+
};
|
|
3306
|
+
};
|
|
3307
|
+
401: {
|
|
3308
|
+
headers: {
|
|
3309
|
+
[name: string]: unknown;
|
|
3310
|
+
};
|
|
3311
|
+
content: {
|
|
3312
|
+
"application/json": components["schemas"]["BaxeError"];
|
|
3313
|
+
};
|
|
3314
|
+
};
|
|
3315
|
+
403: {
|
|
3316
|
+
headers: {
|
|
3317
|
+
[name: string]: unknown;
|
|
3318
|
+
};
|
|
3319
|
+
content: {
|
|
3320
|
+
"application/json": components["schemas"]["BaxeError"];
|
|
3321
|
+
};
|
|
3322
|
+
};
|
|
3323
|
+
500: {
|
|
3324
|
+
headers: {
|
|
3325
|
+
[name: string]: unknown;
|
|
3326
|
+
};
|
|
3327
|
+
content: {
|
|
3328
|
+
"application/json": components["schemas"]["BaxeError"];
|
|
3329
|
+
};
|
|
3330
|
+
};
|
|
3331
|
+
};
|
|
3332
|
+
};
|
|
3333
|
+
get_sdk_dv_result_details: {
|
|
3334
|
+
parameters: {
|
|
3335
|
+
query: {
|
|
3336
|
+
sandbox: boolean;
|
|
3337
|
+
locale?: components["schemas"]["Locale"];
|
|
3338
|
+
};
|
|
3339
|
+
header?: never;
|
|
3340
|
+
path: {
|
|
3341
|
+
/**
|
|
3342
|
+
* @description The ID of the organization
|
|
3343
|
+
* @example 123e4567-e89b-12d3-a456-426614174000
|
|
3344
|
+
*/
|
|
3345
|
+
organization_id: string;
|
|
3346
|
+
/**
|
|
3347
|
+
* @description The ID of the flow result
|
|
3348
|
+
* @example 123e4567-e89b-12d3-a456-426614174000
|
|
3349
|
+
*/
|
|
3350
|
+
flow_result_id: string;
|
|
3351
|
+
/**
|
|
3352
|
+
* @description The slug of the flow
|
|
3353
|
+
* @example flow-slug
|
|
3354
|
+
*/
|
|
3355
|
+
flow_slug: string;
|
|
3356
|
+
/**
|
|
3357
|
+
* @description The ID of the DV result
|
|
3358
|
+
* @example 123e4567-e89b-12d3-a456-426614174000
|
|
3359
|
+
*/
|
|
3360
|
+
dv_result_id: string;
|
|
3361
|
+
};
|
|
3362
|
+
cookie?: never;
|
|
3363
|
+
};
|
|
3364
|
+
requestBody?: never;
|
|
3365
|
+
responses: {
|
|
3366
|
+
200: {
|
|
3367
|
+
headers: {
|
|
3368
|
+
[name: string]: unknown;
|
|
3369
|
+
};
|
|
3370
|
+
content: {
|
|
3371
|
+
"application/x-protobuf-stream": string;
|
|
3372
|
+
};
|
|
3373
|
+
};
|
|
3374
|
+
404: {
|
|
3375
|
+
headers: {
|
|
3376
|
+
[name: string]: unknown;
|
|
3377
|
+
};
|
|
3378
|
+
content: {
|
|
3379
|
+
"application/json": components["schemas"]["BaxeError"];
|
|
3380
|
+
};
|
|
3381
|
+
};
|
|
3382
|
+
500: {
|
|
3383
|
+
headers: {
|
|
3384
|
+
[name: string]: unknown;
|
|
3385
|
+
};
|
|
3386
|
+
content: {
|
|
3387
|
+
"application/json": components["schemas"]["BaxeError"];
|
|
3388
|
+
};
|
|
3389
|
+
};
|
|
3390
|
+
};
|
|
3391
|
+
};
|
|
3392
|
+
get_sdk_poa_result_details: {
|
|
3393
|
+
parameters: {
|
|
3394
|
+
query: {
|
|
3395
|
+
sandbox: boolean;
|
|
3396
|
+
locale?: components["schemas"]["Locale"];
|
|
3397
|
+
};
|
|
3398
|
+
header?: never;
|
|
3399
|
+
path: {
|
|
3400
|
+
/**
|
|
3401
|
+
* @description The ID of the organization
|
|
3402
|
+
* @example 123e4567-e89b-12d3-a456-426614174000
|
|
3403
|
+
*/
|
|
3404
|
+
organization_id: string;
|
|
3405
|
+
/**
|
|
3406
|
+
* @description The ID of the flow result
|
|
3407
|
+
* @example 123e4567-e89b-12d3-a456-426614174000
|
|
3408
|
+
*/
|
|
3409
|
+
flow_result_id: string;
|
|
3410
|
+
/**
|
|
3411
|
+
* @description The slug of the flow
|
|
3412
|
+
* @example flow-slug
|
|
3413
|
+
*/
|
|
3414
|
+
flow_slug: string;
|
|
3415
|
+
/**
|
|
3416
|
+
* @description The ID of the POA result
|
|
3417
|
+
* @example 123e4567-e89b-12d3-a456-426614174000
|
|
3418
|
+
*/
|
|
3419
|
+
poa_result_id: string;
|
|
3420
|
+
};
|
|
3421
|
+
cookie?: never;
|
|
3422
|
+
};
|
|
3423
|
+
requestBody?: never;
|
|
3424
|
+
responses: {
|
|
3425
|
+
200: {
|
|
3426
|
+
headers: {
|
|
3427
|
+
[name: string]: unknown;
|
|
3428
|
+
};
|
|
3429
|
+
content: {
|
|
3430
|
+
"application/x-protobuf-stream": string;
|
|
3431
|
+
};
|
|
3432
|
+
};
|
|
3433
|
+
404: {
|
|
3434
|
+
headers: {
|
|
3435
|
+
[name: string]: unknown;
|
|
3436
|
+
};
|
|
3437
|
+
content: {
|
|
3438
|
+
"application/json": components["schemas"]["BaxeError"];
|
|
3439
|
+
};
|
|
3440
|
+
};
|
|
3441
|
+
500: {
|
|
3442
|
+
headers: {
|
|
3443
|
+
[name: string]: unknown;
|
|
3444
|
+
};
|
|
3445
|
+
content: {
|
|
3446
|
+
"application/json": components["schemas"]["BaxeError"];
|
|
3447
|
+
};
|
|
3448
|
+
};
|
|
3449
|
+
};
|
|
3450
|
+
};
|
|
3451
|
+
get_sdk_wallet_result_details: {
|
|
3452
|
+
parameters: {
|
|
3453
|
+
query: {
|
|
3454
|
+
sandbox: boolean;
|
|
3455
|
+
locale?: components["schemas"]["Locale"];
|
|
3456
|
+
};
|
|
3457
|
+
header?: never;
|
|
3458
|
+
path: {
|
|
3459
|
+
/**
|
|
3460
|
+
* @description The ID of the organization
|
|
3461
|
+
* @example 123e4567-e89b-12d3-a456-426614174000
|
|
3462
|
+
*/
|
|
3463
|
+
organization_id: string;
|
|
3464
|
+
/**
|
|
3465
|
+
* @description The ID of the flow result
|
|
3466
|
+
* @example 123e4567-e89b-12d3-a456-426614174000
|
|
3467
|
+
*/
|
|
3468
|
+
flow_result_id: string;
|
|
3469
|
+
/**
|
|
3470
|
+
* @description The slug of the flow
|
|
3471
|
+
* @example flow-slug
|
|
3472
|
+
*/
|
|
3473
|
+
flow_slug: string;
|
|
3474
|
+
/**
|
|
3475
|
+
* @description The ID of the wallet result
|
|
3476
|
+
* @example 123e4567-e89b-12d3-a456-426614174000
|
|
3477
|
+
*/
|
|
3478
|
+
wallet_result_id: string;
|
|
3479
|
+
};
|
|
3480
|
+
cookie?: never;
|
|
3481
|
+
};
|
|
3482
|
+
requestBody?: never;
|
|
3483
|
+
responses: {
|
|
3484
|
+
200: {
|
|
3485
|
+
headers: {
|
|
3486
|
+
[name: string]: unknown;
|
|
3487
|
+
};
|
|
3488
|
+
content: {
|
|
3489
|
+
"application/json": components["schemas"]["WalletResult"];
|
|
3490
|
+
};
|
|
3491
|
+
};
|
|
3492
|
+
404: {
|
|
3493
|
+
headers: {
|
|
3494
|
+
[name: string]: unknown;
|
|
3495
|
+
};
|
|
3496
|
+
content: {
|
|
3497
|
+
"application/json": components["schemas"]["BaxeError"];
|
|
3498
|
+
};
|
|
3499
|
+
};
|
|
3500
|
+
500: {
|
|
3501
|
+
headers: {
|
|
3502
|
+
[name: string]: unknown;
|
|
3503
|
+
};
|
|
3504
|
+
content: {
|
|
3505
|
+
"application/json": components["schemas"]["BaxeError"];
|
|
3506
|
+
};
|
|
3507
|
+
};
|
|
3508
|
+
};
|
|
3509
|
+
};
|
|
3510
|
+
get_sdk_phone_result_details: {
|
|
3511
|
+
parameters: {
|
|
3512
|
+
query: {
|
|
3513
|
+
sandbox: boolean;
|
|
3514
|
+
locale?: components["schemas"]["Locale"];
|
|
3515
|
+
};
|
|
3516
|
+
header?: never;
|
|
3517
|
+
path: {
|
|
3518
|
+
/**
|
|
3519
|
+
* @description The ID of the organization
|
|
3520
|
+
* @example 123e4567-e89b-12d3-a456-426614174000
|
|
3521
|
+
*/
|
|
3522
|
+
organization_id: string;
|
|
3523
|
+
/**
|
|
3524
|
+
* @description The ID of the flow result
|
|
3525
|
+
* @example 123e4567-e89b-12d3-a456-426614174000
|
|
3526
|
+
*/
|
|
3527
|
+
flow_result_id: string;
|
|
3528
|
+
/**
|
|
3529
|
+
* @description The slug of the flow
|
|
3530
|
+
* @example flow-slug
|
|
3531
|
+
*/
|
|
3532
|
+
flow_slug: string;
|
|
3533
|
+
/**
|
|
3534
|
+
* @description The ID of the phone result
|
|
3535
|
+
* @example 123e4567-e89b-12d3-a456-426614174000
|
|
3536
|
+
*/
|
|
3537
|
+
phone_result_id: string;
|
|
3538
|
+
};
|
|
3539
|
+
cookie?: never;
|
|
3540
|
+
};
|
|
3541
|
+
requestBody?: never;
|
|
3542
|
+
responses: {
|
|
3543
|
+
200: {
|
|
3544
|
+
headers: {
|
|
3545
|
+
[name: string]: unknown;
|
|
3546
|
+
};
|
|
3547
|
+
content: {
|
|
3548
|
+
"application/json": components["schemas"]["PhoneResult"];
|
|
3549
|
+
};
|
|
3550
|
+
};
|
|
3551
|
+
404: {
|
|
3552
|
+
headers: {
|
|
3553
|
+
[name: string]: unknown;
|
|
3554
|
+
};
|
|
3555
|
+
content: {
|
|
3556
|
+
"application/json": components["schemas"]["BaxeError"];
|
|
3557
|
+
};
|
|
3558
|
+
};
|
|
3559
|
+
500: {
|
|
3560
|
+
headers: {
|
|
3561
|
+
[name: string]: unknown;
|
|
3562
|
+
};
|
|
3563
|
+
content: {
|
|
3564
|
+
"application/json": components["schemas"]["BaxeError"];
|
|
3565
|
+
};
|
|
3566
|
+
};
|
|
3567
|
+
};
|
|
3568
|
+
};
|
|
3569
|
+
get_sdk_form_result_details: {
|
|
3570
|
+
parameters: {
|
|
3571
|
+
query: {
|
|
3572
|
+
sandbox: boolean;
|
|
3573
|
+
locale?: components["schemas"]["Locale"];
|
|
3574
|
+
};
|
|
3575
|
+
header?: never;
|
|
3576
|
+
path: {
|
|
3577
|
+
/**
|
|
3578
|
+
* @description The ID of the organization
|
|
3579
|
+
* @example 123e4567-e89b-12d3-a456-426614174000
|
|
3580
|
+
*/
|
|
3581
|
+
organization_id: string;
|
|
3582
|
+
/**
|
|
3583
|
+
* @description The ID of the flow result
|
|
3584
|
+
* @example 123e4567-e89b-12d3-a456-426614174000
|
|
3585
|
+
*/
|
|
3586
|
+
flow_result_id: string;
|
|
3587
|
+
/**
|
|
3588
|
+
* @description The slug of the flow
|
|
3589
|
+
* @example flow-slug
|
|
3590
|
+
*/
|
|
3591
|
+
flow_slug: string;
|
|
3592
|
+
/**
|
|
3593
|
+
* @description The ID of the form result
|
|
3594
|
+
* @example 123e4567-e89b-12d3-a456-426614174000
|
|
3595
|
+
*/
|
|
3596
|
+
form_result_id: string;
|
|
3597
|
+
};
|
|
3598
|
+
cookie?: never;
|
|
3599
|
+
};
|
|
3600
|
+
requestBody?: never;
|
|
3601
|
+
responses: {
|
|
3602
|
+
200: {
|
|
3603
|
+
headers: {
|
|
3604
|
+
[name: string]: unknown;
|
|
3605
|
+
};
|
|
3606
|
+
content: {
|
|
3607
|
+
"application/json": components["schemas"]["FormResult"];
|
|
3608
|
+
};
|
|
3609
|
+
};
|
|
3610
|
+
404: {
|
|
3611
|
+
headers: {
|
|
3612
|
+
[name: string]: unknown;
|
|
3613
|
+
};
|
|
3614
|
+
content: {
|
|
3615
|
+
"application/json": components["schemas"]["BaxeError"];
|
|
3616
|
+
};
|
|
3617
|
+
};
|
|
3618
|
+
500: {
|
|
3619
|
+
headers: {
|
|
3620
|
+
[name: string]: unknown;
|
|
3621
|
+
};
|
|
3622
|
+
content: {
|
|
3623
|
+
"application/json": components["schemas"]["BaxeError"];
|
|
3624
|
+
};
|
|
3625
|
+
};
|
|
3626
|
+
};
|
|
3627
|
+
};
|
|
3628
|
+
get_sdk_flow_result_details_deprecated: {
|
|
3629
|
+
parameters: {
|
|
3630
|
+
query: {
|
|
3631
|
+
sandbox: boolean;
|
|
3632
|
+
locale?: components["schemas"]["Locale"];
|
|
3633
|
+
};
|
|
3634
|
+
header?: never;
|
|
3635
|
+
path: {
|
|
3636
|
+
/**
|
|
3637
|
+
* @description The ID of the organization
|
|
3638
|
+
* @example 123e4567-e89b-12d3-a456-426614174000
|
|
3639
|
+
*/
|
|
3640
|
+
organization_id: string;
|
|
3641
|
+
/**
|
|
3642
|
+
* @description The ID of the flow result
|
|
3643
|
+
* @example 123e4567-e89b-12d3-a456-426614174000
|
|
3644
|
+
*/
|
|
3645
|
+
flow_result_id: string;
|
|
3646
|
+
};
|
|
3647
|
+
cookie?: never;
|
|
3648
|
+
};
|
|
3649
|
+
requestBody?: never;
|
|
3650
|
+
responses: {
|
|
3651
|
+
200: {
|
|
3652
|
+
headers: {
|
|
3653
|
+
[name: string]: unknown;
|
|
3654
|
+
};
|
|
3655
|
+
content: {
|
|
3656
|
+
"application/json": components["schemas"]["FlowResult"];
|
|
3657
|
+
};
|
|
3658
|
+
};
|
|
3659
|
+
400: {
|
|
3660
|
+
headers: {
|
|
3661
|
+
[name: string]: unknown;
|
|
3662
|
+
};
|
|
3663
|
+
content: {
|
|
3664
|
+
"application/json": components["schemas"]["BaxeError"];
|
|
3665
|
+
};
|
|
3666
|
+
};
|
|
3667
|
+
401: {
|
|
3668
|
+
headers: {
|
|
3669
|
+
[name: string]: unknown;
|
|
3670
|
+
};
|
|
3671
|
+
content: {
|
|
3672
|
+
"application/json": components["schemas"]["BaxeError"];
|
|
3673
|
+
};
|
|
3674
|
+
};
|
|
3675
|
+
403: {
|
|
3676
|
+
headers: {
|
|
3677
|
+
[name: string]: unknown;
|
|
3678
|
+
};
|
|
3679
|
+
content: {
|
|
3680
|
+
"application/json": components["schemas"]["BaxeError"];
|
|
3681
|
+
};
|
|
3682
|
+
};
|
|
3683
|
+
500: {
|
|
3684
|
+
headers: {
|
|
3685
|
+
[name: string]: unknown;
|
|
3686
|
+
};
|
|
3687
|
+
content: {
|
|
3688
|
+
"application/json": components["schemas"]["BaxeError"];
|
|
3689
|
+
};
|
|
3690
|
+
};
|
|
3691
|
+
};
|
|
3692
|
+
};
|
|
3693
|
+
get_sdk_dv_result_details_deprecated: {
|
|
3694
|
+
parameters: {
|
|
3695
|
+
query: {
|
|
3696
|
+
sandbox: boolean;
|
|
3697
|
+
locale?: components["schemas"]["Locale"];
|
|
3698
|
+
};
|
|
3699
|
+
header?: never;
|
|
3700
|
+
path: {
|
|
3701
|
+
/**
|
|
3702
|
+
* @description The ID of the organization
|
|
3703
|
+
* @example 123e4567-e89b-12d3-a456-426614174000
|
|
3704
|
+
*/
|
|
3705
|
+
organization_id: string;
|
|
3706
|
+
/**
|
|
3707
|
+
* @description The ID of the flow result
|
|
3708
|
+
* @example 123e4567-e89b-12d3-a456-426614174000
|
|
3709
|
+
*/
|
|
3710
|
+
flow_result_id: string;
|
|
3711
|
+
/**
|
|
3712
|
+
* @description The ID of the DV result
|
|
3713
|
+
* @example 123e4567-e89b-12d3-a456-426614174000
|
|
3714
|
+
*/
|
|
3715
|
+
dv_result_id: string;
|
|
3716
|
+
};
|
|
3717
|
+
cookie?: never;
|
|
3718
|
+
};
|
|
3719
|
+
requestBody?: never;
|
|
3720
|
+
responses: {
|
|
3721
|
+
200: {
|
|
3722
|
+
headers: {
|
|
3723
|
+
[name: string]: unknown;
|
|
3724
|
+
};
|
|
3725
|
+
content: {
|
|
3726
|
+
"application/x-protobuf-stream": string;
|
|
3727
|
+
};
|
|
3728
|
+
};
|
|
3729
|
+
404: {
|
|
3730
|
+
headers: {
|
|
3731
|
+
[name: string]: unknown;
|
|
3732
|
+
};
|
|
3733
|
+
content: {
|
|
3734
|
+
"application/json": components["schemas"]["BaxeError"];
|
|
3735
|
+
};
|
|
3736
|
+
};
|
|
3737
|
+
500: {
|
|
3738
|
+
headers: {
|
|
3739
|
+
[name: string]: unknown;
|
|
3740
|
+
};
|
|
3741
|
+
content: {
|
|
3742
|
+
"application/json": components["schemas"]["BaxeError"];
|
|
3743
|
+
};
|
|
3744
|
+
};
|
|
3745
|
+
};
|
|
3746
|
+
};
|
|
3747
|
+
get_sdk_poa_result_details_deprecated: {
|
|
3748
|
+
parameters: {
|
|
3749
|
+
query: {
|
|
3750
|
+
sandbox: boolean;
|
|
3751
|
+
locale?: components["schemas"]["Locale"];
|
|
3752
|
+
};
|
|
3753
|
+
header?: never;
|
|
3754
|
+
path: {
|
|
3755
|
+
/**
|
|
3756
|
+
* @description The ID of the organization
|
|
3757
|
+
* @example 123e4567-e89b-12d3-a456-426614174000
|
|
3758
|
+
*/
|
|
3759
|
+
organization_id: string;
|
|
3760
|
+
/**
|
|
3761
|
+
* @description The ID of the flow result
|
|
3762
|
+
* @example 123e4567-e89b-12d3-a456-426614174000
|
|
3763
|
+
*/
|
|
3764
|
+
flow_result_id: string;
|
|
3765
|
+
/**
|
|
3766
|
+
* @description The ID of the POA result
|
|
3767
|
+
* @example 123e4567-e89b-12d3-a456-426614174000
|
|
3768
|
+
*/
|
|
3769
|
+
poa_result_id: string;
|
|
3770
|
+
};
|
|
3771
|
+
cookie?: never;
|
|
3772
|
+
};
|
|
3773
|
+
requestBody?: never;
|
|
3774
|
+
responses: {
|
|
3775
|
+
200: {
|
|
3776
|
+
headers: {
|
|
3777
|
+
[name: string]: unknown;
|
|
3778
|
+
};
|
|
3779
|
+
content: {
|
|
3780
|
+
"application/x-protobuf-stream": string;
|
|
3781
|
+
};
|
|
3782
|
+
};
|
|
3783
|
+
404: {
|
|
3784
|
+
headers: {
|
|
3785
|
+
[name: string]: unknown;
|
|
3786
|
+
};
|
|
3787
|
+
content: {
|
|
3788
|
+
"application/json": components["schemas"]["BaxeError"];
|
|
3789
|
+
};
|
|
3790
|
+
};
|
|
3791
|
+
500: {
|
|
3792
|
+
headers: {
|
|
3793
|
+
[name: string]: unknown;
|
|
3794
|
+
};
|
|
3795
|
+
content: {
|
|
3796
|
+
"application/json": components["schemas"]["BaxeError"];
|
|
3797
|
+
};
|
|
3798
|
+
};
|
|
3799
|
+
};
|
|
1342
3800
|
};
|
|
1343
|
-
responses: never;
|
|
1344
|
-
parameters: never;
|
|
1345
|
-
requestBodies: never;
|
|
1346
|
-
headers: never;
|
|
1347
|
-
pathItems: never;
|
|
1348
3801
|
}
|
|
1349
3802
|
|
|
3803
|
+
declare const Environments: {
|
|
3804
|
+
readonly LOCAL: "local";
|
|
3805
|
+
readonly STAGING: "staging";
|
|
3806
|
+
readonly PRODUCTION: "production";
|
|
3807
|
+
};
|
|
3808
|
+
type Environment = (typeof Environments)[keyof typeof Environments];
|
|
3809
|
+
declare const EnvironmentConfigs: {
|
|
3810
|
+
readonly local: {
|
|
3811
|
+
readonly appUrl: "http://localhost:5173";
|
|
3812
|
+
readonly apiUrl: "http://localhost:3000";
|
|
3813
|
+
};
|
|
3814
|
+
readonly staging: {
|
|
3815
|
+
readonly appUrl: "https://app-dev.zyphe.com";
|
|
3816
|
+
readonly apiUrl: "https://api-dev.zyphe.com";
|
|
3817
|
+
};
|
|
3818
|
+
readonly production: {
|
|
3819
|
+
readonly appUrl: "https://verify.zyphe.com";
|
|
3820
|
+
readonly apiUrl: "https://api.zyphe.com";
|
|
3821
|
+
};
|
|
3822
|
+
};
|
|
3823
|
+
declare const API_KEY_HEADER = "x-api-key";
|
|
3824
|
+
|
|
1350
3825
|
type SdkCreateVerificationRequestResponse = components["schemas"]["SdkCreateVerificationRequestResponse"];
|
|
3826
|
+
type Locale = components["schemas"]["Locale"];
|
|
3827
|
+
type GetLivenessChallengeResponse = components["schemas"]["GetLivenessChallengeResponse"];
|
|
3828
|
+
type ProcessDocumentSelectionPayload = components["schemas"]["ProcessDocumentSelectionPayload"];
|
|
3829
|
+
type ProcessDocumentSelectionResponse = components["schemas"]["ProcessDocumentSelectionResponse"];
|
|
3830
|
+
type ProcessIdentityDocumentPayload = components["schemas"]["ProcessIdentityDocumentPayload"];
|
|
3831
|
+
type ProcessIdentityDocumentResponse = components["schemas"]["ProcessIdentityDocumentResponse"];
|
|
3832
|
+
type ProcessLivenessPayload = components["schemas"]["ProcessLivenessPayload"];
|
|
3833
|
+
type ProcessDvDocumentPayload = paths["/sdk/flow/{flow_id}/vr/{verification_request_id}/dv/process-dv-document"]["post"]["requestBody"]["content"]["application/json"];
|
|
3834
|
+
type ProcessDocumentSelectionRequestPayload = paths["/sdk/flow/{flow_id}/vr/{verification_request_id}/dv/process-dv-selection"]["post"]["requestBody"]["content"]["application/json"];
|
|
3835
|
+
type ProcessLivenessResponse = components["schemas"]["ProcessLivenessResponse"];
|
|
1351
3836
|
type ApiKeyType = components["schemas"]["ApiKeyType"];
|
|
3837
|
+
type FlowStepType = components["schemas"]["FlowStepType"];
|
|
3838
|
+
type BaxeError = components["schemas"]["BaxeError"];
|
|
1352
3839
|
/**
|
|
1353
3840
|
* Parameters for initializing the Zyphe iframe for a Flow.
|
|
1354
3841
|
* These will remain constant for each user that visits the Flow URL.
|
|
@@ -1391,6 +3878,14 @@ interface InitializeZypheFlowParams {
|
|
|
1391
3878
|
customData?: Record<string, string>;
|
|
1392
3879
|
}
|
|
1393
3880
|
type GetNextStepDetailsParams = Pick<InitializeZypheFlowParams, "flowId" | "isSandbox" | "email">;
|
|
3881
|
+
interface VerificationRequestParams {
|
|
3882
|
+
flowId: string;
|
|
3883
|
+
verificationRequestId: string;
|
|
3884
|
+
isSandbox: boolean;
|
|
3885
|
+
}
|
|
3886
|
+
interface ProcessDvLivenessParams extends VerificationRequestParams {
|
|
3887
|
+
payload: ProcessLivenessPayload;
|
|
3888
|
+
}
|
|
1394
3889
|
interface SDKOptions {
|
|
1395
3890
|
apiKey: string;
|
|
1396
3891
|
/**
|
|
@@ -1406,177 +3901,88 @@ interface SDKOptions {
|
|
|
1406
3901
|
* If set, the QR code displayed on desktop devices of a Document Verification flow will direct to this URL.
|
|
1407
3902
|
* If not set, the QR code will direct to the corresponding zyphe.com URL, depending upon your configured environment.
|
|
1408
3903
|
*
|
|
1409
|
-
* The URL will include the query parameters `zypheVr` and
|
|
3904
|
+
* The URL will include the query parameters `zypheVr`, `zypheToken`, and
|
|
3905
|
+
* `zypheAccessSig`.
|
|
1410
3906
|
*
|
|
1411
3907
|
* @default "https://app-dev.zyphe.com" || "https://verify.zyphe.com"
|
|
1412
|
-
* @example "http://example.com"
|
|
1413
|
-
*/
|
|
1414
|
-
handoffBaseUrl?: string;
|
|
1415
|
-
/**
|
|
1416
|
-
* The main background color of the page.
|
|
1417
|
-
* 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
|
-
};
|
|
3908
|
+
* @example "http://example.com"
|
|
3909
|
+
*/
|
|
3910
|
+
handoffBaseUrl?: string;
|
|
3911
|
+
/**
|
|
3912
|
+
* The main background color of the page.
|
|
3913
|
+
* This will override the primary color configured in verify.zyphe.com
|
|
3914
|
+
*
|
|
3915
|
+
* The accepted values are flexible, but we recommend a hex code.
|
|
3916
|
+
* @example "#000000"
|
|
3917
|
+
*/
|
|
3918
|
+
primaryColor?: string;
|
|
3919
|
+
/**
|
|
3920
|
+
* The accent color of the page, used for buttons, icons, etc.
|
|
3921
|
+
* This will override the secondary color configured in verify.zyphe.com
|
|
3922
|
+
*
|
|
3923
|
+
* The accepted values are flexible, but we recommend a hex code.
|
|
3924
|
+
* @example "#000000"
|
|
3925
|
+
*/
|
|
3926
|
+
secondaryColor?: string;
|
|
3927
|
+
/**
|
|
3928
|
+
* If true, the verification session will be displayed in "fullscreen" mode.
|
|
3929
|
+
*/
|
|
3930
|
+
isFullscreen?: boolean;
|
|
3931
|
+
}
|
|
3932
|
+
interface VerificationSessionRequestOptions {
|
|
3933
|
+
verificationSession: SdkCreateVerificationRequestResponse;
|
|
3934
|
+
options: SDKOptions;
|
|
3935
|
+
}
|
|
3936
|
+
interface ProcessDvDocumentOptions extends VerificationSessionRequestOptions {
|
|
3937
|
+
payload: ProcessDvDocumentPayload;
|
|
3938
|
+
}
|
|
3939
|
+
interface ProcessDocumentSelectionOptions extends VerificationSessionRequestOptions {
|
|
3940
|
+
payload: ProcessDocumentSelectionRequestPayload;
|
|
3941
|
+
}
|
|
3942
|
+
interface ProcessDvLivenessOptions extends VerificationSessionRequestOptions {
|
|
3943
|
+
payload: ProcessLivenessPayload;
|
|
3944
|
+
}
|
|
3945
|
+
interface GetLivenessChallengeOptions extends VerificationSessionRequestOptions {
|
|
3946
|
+
}
|
|
3947
|
+
interface CreateVerificationSessionParams {
|
|
3948
|
+
email: string;
|
|
3949
|
+
flowId: string;
|
|
3950
|
+
flowStepId: string;
|
|
3951
|
+
isSandbox: boolean;
|
|
3952
|
+
customData?: Record<string, string>;
|
|
3953
|
+
}
|
|
3954
|
+
declare const DocumentType: {
|
|
3955
|
+
readonly IDENTITY_CARD: 12;
|
|
3956
|
+
readonly DRIVING_LICENSE: 49;
|
|
3957
|
+
readonly PASSPORT: 11;
|
|
3958
|
+
};
|
|
3959
|
+
type DocumentType = (typeof DocumentType)[keyof typeof DocumentType];
|
|
3960
|
+
|
|
3961
|
+
interface CompleteDvStepParams {
|
|
3962
|
+
verificationSession: SdkCreateVerificationRequestResponse;
|
|
3963
|
+
countryCode: string;
|
|
3964
|
+
images: {
|
|
3965
|
+
type: "DOUBLE_SIDED_DOCUMENT";
|
|
3966
|
+
frontImage: string;
|
|
3967
|
+
backImage: string;
|
|
3968
|
+
} | {
|
|
3969
|
+
type: "SINGLE_SIDED_DOCUMENT";
|
|
3970
|
+
image: string;
|
|
1578
3971
|
};
|
|
1579
|
-
}
|
|
3972
|
+
}
|
|
3973
|
+
declare function completeDvStep({ verificationSession, countryCode, images }: CompleteDvStepParams, options: SDKOptions): Promise<ProcessIdentityDocumentResponse>;
|
|
3974
|
+
interface CompleteLivenessStepParams {
|
|
3975
|
+
verificationSession: SdkCreateVerificationRequestResponse;
|
|
3976
|
+
frontImage: Uint8Array;
|
|
3977
|
+
movementImages?: Uint8Array[];
|
|
3978
|
+
video?: Uint8Array;
|
|
3979
|
+
}
|
|
3980
|
+
declare function completeLivenessStep({ verificationSession, frontImage, movementImages, video, }: CompleteLivenessStepParams, options: SDKOptions): Promise<ProcessLivenessResponse>;
|
|
3981
|
+
interface CompleteDocumentSelectionStepParams {
|
|
3982
|
+
verificationSession: SdkCreateVerificationRequestResponse;
|
|
3983
|
+
payload: ProcessDocumentSelectionRequestPayload;
|
|
3984
|
+
}
|
|
3985
|
+
declare function completeDocumentSelectionStep({ verificationSession, payload }: CompleteDocumentSelectionStepParams, options: SDKOptions): Promise<ProcessDocumentSelectionResponse>;
|
|
1580
3986
|
|
|
1581
3987
|
declare enum ImageProvenance {
|
|
1582
3988
|
UNSPECIFIED_IMAGE_PROVENANCE = 0,
|
|
@@ -1689,6 +4095,83 @@ interface GetFlowResultParams {
|
|
|
1689
4095
|
flowResultId: string;
|
|
1690
4096
|
isSandbox: boolean;
|
|
1691
4097
|
}
|
|
4098
|
+
interface ListFlowResultsParams {
|
|
4099
|
+
organizationId: string;
|
|
4100
|
+
flowSlug: string;
|
|
4101
|
+
isSandbox: boolean;
|
|
4102
|
+
pagination?: components["schemas"]["Pagination"];
|
|
4103
|
+
locale?: components["schemas"]["Locale"];
|
|
4104
|
+
}
|
|
4105
|
+
declare function listFlowResults({ organizationId, flowSlug, isSandbox, pagination, locale, }: ListFlowResultsParams, opts: SDKOptions): Promise<openapi_fetch.FetchResponse<{
|
|
4106
|
+
parameters: {
|
|
4107
|
+
query: {
|
|
4108
|
+
pagination?: components["schemas"]["Pagination"];
|
|
4109
|
+
sandbox: boolean;
|
|
4110
|
+
locale?: components["schemas"]["Locale"];
|
|
4111
|
+
};
|
|
4112
|
+
header?: never;
|
|
4113
|
+
path: {
|
|
4114
|
+
organization_id: string;
|
|
4115
|
+
flow_slug: string;
|
|
4116
|
+
};
|
|
4117
|
+
cookie?: never;
|
|
4118
|
+
};
|
|
4119
|
+
requestBody?: never;
|
|
4120
|
+
responses: {
|
|
4121
|
+
200: {
|
|
4122
|
+
headers: {
|
|
4123
|
+
[name: string]: unknown;
|
|
4124
|
+
};
|
|
4125
|
+
content: {
|
|
4126
|
+
"application/json": components["schemas"]["ListOrganizationFlowResultsResponse"];
|
|
4127
|
+
};
|
|
4128
|
+
};
|
|
4129
|
+
400: {
|
|
4130
|
+
headers: {
|
|
4131
|
+
[name: string]: unknown;
|
|
4132
|
+
};
|
|
4133
|
+
content: {
|
|
4134
|
+
"application/json": components["schemas"]["BaxeError"];
|
|
4135
|
+
};
|
|
4136
|
+
};
|
|
4137
|
+
401: {
|
|
4138
|
+
headers: {
|
|
4139
|
+
[name: string]: unknown;
|
|
4140
|
+
};
|
|
4141
|
+
content: {
|
|
4142
|
+
"application/json": components["schemas"]["BaxeError"];
|
|
4143
|
+
};
|
|
4144
|
+
};
|
|
4145
|
+
500: {
|
|
4146
|
+
headers: {
|
|
4147
|
+
[name: string]: unknown;
|
|
4148
|
+
};
|
|
4149
|
+
content: {
|
|
4150
|
+
"application/json": components["schemas"]["BaxeError"];
|
|
4151
|
+
};
|
|
4152
|
+
};
|
|
4153
|
+
};
|
|
4154
|
+
}, {
|
|
4155
|
+
params: {
|
|
4156
|
+
path: {
|
|
4157
|
+
organization_id: string;
|
|
4158
|
+
flow_slug: string;
|
|
4159
|
+
};
|
|
4160
|
+
query: {
|
|
4161
|
+
pagination: {
|
|
4162
|
+
filter?: string;
|
|
4163
|
+
skip?: number;
|
|
4164
|
+
sort?: string;
|
|
4165
|
+
take?: number;
|
|
4166
|
+
} | undefined;
|
|
4167
|
+
sandbox: boolean;
|
|
4168
|
+
locale: "en" | "it" | "de" | "es" | "fr" | "hi" | "id" | "pt" | undefined;
|
|
4169
|
+
};
|
|
4170
|
+
};
|
|
4171
|
+
headers: {
|
|
4172
|
+
"x-api-key": string;
|
|
4173
|
+
};
|
|
4174
|
+
}, `${string}/${string}`>>;
|
|
1692
4175
|
declare function getFlowResult({ organizationId, flowResultId, isSandbox }: GetFlowResultParams, opts: SDKOptions): Promise<{
|
|
1693
4176
|
data: {
|
|
1694
4177
|
dvResults: {
|
|
@@ -1714,9 +4197,7 @@ declare function getFlowResult({ organizationId, flowResultId, isSandbox }: GetF
|
|
|
1714
4197
|
originalVrHistoryId?: string | null;
|
|
1715
4198
|
platform?: string | null;
|
|
1716
4199
|
portraitMatchPercent?: number | null;
|
|
1717
|
-
processAdditionalData:
|
|
1718
|
-
[key: string]: unknown;
|
|
1719
|
-
};
|
|
4200
|
+
processAdditionalData: components["schemas"]["ProcessAdditionalData"];
|
|
1720
4201
|
provinceCode?: string | null;
|
|
1721
4202
|
reasons: components["schemas"]["DvReason"][];
|
|
1722
4203
|
status: components["schemas"]["ResultStatus"];
|
|
@@ -1750,7 +4231,7 @@ declare function getFlowResult({ organizationId, flowResultId, isSandbox }: GetF
|
|
|
1750
4231
|
createdAt?: string | null;
|
|
1751
4232
|
customData?: {
|
|
1752
4233
|
[key: string]: unknown;
|
|
1753
|
-
} | undefined;
|
|
4234
|
+
} | null | undefined;
|
|
1754
4235
|
flow?: components["schemas"]["Flow"] | null;
|
|
1755
4236
|
flowSlug?: string | undefined;
|
|
1756
4237
|
formResults?: {
|
|
@@ -1759,6 +4240,7 @@ declare function getFlowResult({ organizationId, flowResultId, isSandbox }: GetF
|
|
|
1759
4240
|
flowStep?: Omit<components["schemas"]["FlowStep"], "type"> | null;
|
|
1760
4241
|
flowStepId?: string | null;
|
|
1761
4242
|
form?: components["schemas"]["Form"] | null;
|
|
4243
|
+
formId?: string | null;
|
|
1762
4244
|
id: string;
|
|
1763
4245
|
reason?: components["schemas"]["FormReason"] | null;
|
|
1764
4246
|
sections: components["schemas"]["FormSection"][];
|
|
@@ -1766,16 +4248,63 @@ declare function getFlowResult({ organizationId, flowResultId, isSandbox }: GetF
|
|
|
1766
4248
|
updatedAt?: string | null;
|
|
1767
4249
|
verificationRequestId?: string | null;
|
|
1768
4250
|
}[] | undefined;
|
|
4251
|
+
geolocationResults?: components["schemas"]["GeolocationResult"][];
|
|
1769
4252
|
id?: string | undefined;
|
|
1770
4253
|
identity?: components["schemas"]["Identity"] | null;
|
|
4254
|
+
jdmData?: {
|
|
4255
|
+
[key: string]: {
|
|
4256
|
+
data: components["schemas"]["DvStepOutput"];
|
|
4257
|
+
type: "DV";
|
|
4258
|
+
} | {
|
|
4259
|
+
data: components["schemas"]["PoaStepOutput"];
|
|
4260
|
+
type: "POA";
|
|
4261
|
+
} | {
|
|
4262
|
+
data: components["schemas"]["SpidStepOutput"];
|
|
4263
|
+
type: "SPID";
|
|
4264
|
+
} | {
|
|
4265
|
+
data: components["schemas"]["WalletStepOutput"];
|
|
4266
|
+
type: "WALLET";
|
|
4267
|
+
} | {
|
|
4268
|
+
data: components["schemas"]["PhoneStepOutput"];
|
|
4269
|
+
type: "PHONE";
|
|
4270
|
+
} | {
|
|
4271
|
+
data: components["schemas"]["FormStepOutput"];
|
|
4272
|
+
type: "FORM";
|
|
4273
|
+
} | {
|
|
4274
|
+
data: components["schemas"]["KybStepOutput"];
|
|
4275
|
+
type: "KYB";
|
|
4276
|
+
} | {
|
|
4277
|
+
data: components["schemas"]["LivenessStepOutput"];
|
|
4278
|
+
type: "LIVENESS";
|
|
4279
|
+
} | {
|
|
4280
|
+
data: components["schemas"]["AutoOneClickKycStepOutput"];
|
|
4281
|
+
type: "AUTO_ONE_CLICK_KYC";
|
|
4282
|
+
} | {
|
|
4283
|
+
data: components["schemas"]["ActionStepOutput"];
|
|
4284
|
+
type: "ACTION";
|
|
4285
|
+
} | {
|
|
4286
|
+
data: components["schemas"]["DocumentSelectionStepOutput"];
|
|
4287
|
+
type: "DOCUMENT_SELECTION";
|
|
4288
|
+
} | {
|
|
4289
|
+
data: components["schemas"]["GeolocationStepOutput"];
|
|
4290
|
+
type: "GEOLOCATION";
|
|
4291
|
+
};
|
|
4292
|
+
} | undefined;
|
|
1771
4293
|
kybResults?: {
|
|
4294
|
+
assignedAt?: string | null;
|
|
4295
|
+
assignedToIdentityId?: string | null;
|
|
1772
4296
|
businessInformation?: components["schemas"]["BusinessInformation"] | null;
|
|
4297
|
+
businessInformationVerification?: {
|
|
4298
|
+
[key: string]: components["schemas"]["BusinessInfoFieldVerification"];
|
|
4299
|
+
} | null;
|
|
1773
4300
|
createdAt?: string | null;
|
|
1774
4301
|
directorDefinitions?: components["schemas"]["DirectorDefinition"][] | null;
|
|
1775
4302
|
documentUploads?: components["schemas"]["DocumentUpload"][] | null;
|
|
1776
4303
|
flowStep?: Omit<components["schemas"]["FlowStep"], "type"> | null;
|
|
1777
4304
|
flowStepId?: string | null;
|
|
4305
|
+
fundedAt?: string | null;
|
|
1778
4306
|
id: string;
|
|
4307
|
+
nextAction?: components["schemas"]["NextAction"] | null;
|
|
1779
4308
|
pepAndSanctionsStatus: components["schemas"]["PepAndSanctionsStatus"];
|
|
1780
4309
|
reason?: string | null;
|
|
1781
4310
|
report?: string | null;
|
|
@@ -1797,6 +4326,7 @@ declare function getFlowResult({ organizationId, flowResultId, isSandbox }: GetF
|
|
|
1797
4326
|
updatedAt?: string | null;
|
|
1798
4327
|
verificationRequestId?: string | null;
|
|
1799
4328
|
}[] | undefined;
|
|
4329
|
+
reviewSuggestion?: components["schemas"]["ReviewSuggestion"] | null;
|
|
1800
4330
|
spidResults?: {
|
|
1801
4331
|
createdAt?: string | null;
|
|
1802
4332
|
flowStep?: Omit<components["schemas"]["FlowStep"], "type"> | null;
|
|
@@ -1808,6 +4338,7 @@ declare function getFlowResult({ organizationId, flowResultId, isSandbox }: GetF
|
|
|
1808
4338
|
updatedAt?: string | null;
|
|
1809
4339
|
verificationRequestId?: string | null;
|
|
1810
4340
|
}[] | undefined;
|
|
4341
|
+
status?: "FAILED" | "REQUIRES_MANUAL_REVIEW" | "REQUIRES_ADMIN_REVIEW" | "PENDING" | "COMPLETED" | "CANCELLED" | "QUEUED" | "PROCESSING" | "REJECTED" | undefined;
|
|
1811
4342
|
updatedAt?: string | null;
|
|
1812
4343
|
walletResults?: {
|
|
1813
4344
|
createdAt?: string | null;
|
|
@@ -1852,9 +4383,7 @@ declare function getFlowResult({ organizationId, flowResultId, isSandbox }: GetF
|
|
|
1852
4383
|
originalVrHistoryId?: string | null;
|
|
1853
4384
|
platform?: string | null;
|
|
1854
4385
|
portraitMatchPercent?: number | null;
|
|
1855
|
-
processAdditionalData:
|
|
1856
|
-
[key: string]: unknown;
|
|
1857
|
-
};
|
|
4386
|
+
processAdditionalData: components["schemas"]["ProcessAdditionalData"];
|
|
1858
4387
|
provinceCode?: string | null;
|
|
1859
4388
|
reasons: components["schemas"]["DvReason"][];
|
|
1860
4389
|
status: components["schemas"]["ResultStatus"];
|
|
@@ -1888,7 +4417,7 @@ declare function getFlowResult({ organizationId, flowResultId, isSandbox }: GetF
|
|
|
1888
4417
|
createdAt?: string | null;
|
|
1889
4418
|
customData?: {
|
|
1890
4419
|
[key: string]: unknown;
|
|
1891
|
-
} | undefined;
|
|
4420
|
+
} | null | undefined;
|
|
1892
4421
|
flow?: components["schemas"]["Flow"] | null;
|
|
1893
4422
|
flowSlug?: string | undefined;
|
|
1894
4423
|
formResults?: {
|
|
@@ -1897,6 +4426,7 @@ declare function getFlowResult({ organizationId, flowResultId, isSandbox }: GetF
|
|
|
1897
4426
|
flowStep?: Omit<components["schemas"]["FlowStep"], "type"> | null;
|
|
1898
4427
|
flowStepId?: string | null;
|
|
1899
4428
|
form?: components["schemas"]["Form"] | null;
|
|
4429
|
+
formId?: string | null;
|
|
1900
4430
|
id: string;
|
|
1901
4431
|
reason?: components["schemas"]["FormReason"] | null;
|
|
1902
4432
|
sections: components["schemas"]["FormSection"][];
|
|
@@ -1904,16 +4434,63 @@ declare function getFlowResult({ organizationId, flowResultId, isSandbox }: GetF
|
|
|
1904
4434
|
updatedAt?: string | null;
|
|
1905
4435
|
verificationRequestId?: string | null;
|
|
1906
4436
|
}[] | undefined;
|
|
4437
|
+
geolocationResults?: components["schemas"]["GeolocationResult"][];
|
|
1907
4438
|
id?: string | undefined;
|
|
1908
4439
|
identity?: components["schemas"]["Identity"] | null;
|
|
4440
|
+
jdmData?: {
|
|
4441
|
+
[key: string]: {
|
|
4442
|
+
data: components["schemas"]["DvStepOutput"];
|
|
4443
|
+
type: "DV";
|
|
4444
|
+
} | {
|
|
4445
|
+
data: components["schemas"]["PoaStepOutput"];
|
|
4446
|
+
type: "POA";
|
|
4447
|
+
} | {
|
|
4448
|
+
data: components["schemas"]["SpidStepOutput"];
|
|
4449
|
+
type: "SPID";
|
|
4450
|
+
} | {
|
|
4451
|
+
data: components["schemas"]["WalletStepOutput"];
|
|
4452
|
+
type: "WALLET";
|
|
4453
|
+
} | {
|
|
4454
|
+
data: components["schemas"]["PhoneStepOutput"];
|
|
4455
|
+
type: "PHONE";
|
|
4456
|
+
} | {
|
|
4457
|
+
data: components["schemas"]["FormStepOutput"];
|
|
4458
|
+
type: "FORM";
|
|
4459
|
+
} | {
|
|
4460
|
+
data: components["schemas"]["KybStepOutput"];
|
|
4461
|
+
type: "KYB";
|
|
4462
|
+
} | {
|
|
4463
|
+
data: components["schemas"]["LivenessStepOutput"];
|
|
4464
|
+
type: "LIVENESS";
|
|
4465
|
+
} | {
|
|
4466
|
+
data: components["schemas"]["AutoOneClickKycStepOutput"];
|
|
4467
|
+
type: "AUTO_ONE_CLICK_KYC";
|
|
4468
|
+
} | {
|
|
4469
|
+
data: components["schemas"]["ActionStepOutput"];
|
|
4470
|
+
type: "ACTION";
|
|
4471
|
+
} | {
|
|
4472
|
+
data: components["schemas"]["DocumentSelectionStepOutput"];
|
|
4473
|
+
type: "DOCUMENT_SELECTION";
|
|
4474
|
+
} | {
|
|
4475
|
+
data: components["schemas"]["GeolocationStepOutput"];
|
|
4476
|
+
type: "GEOLOCATION";
|
|
4477
|
+
};
|
|
4478
|
+
} | undefined;
|
|
1909
4479
|
kybResults?: {
|
|
4480
|
+
assignedAt?: string | null;
|
|
4481
|
+
assignedToIdentityId?: string | null;
|
|
1910
4482
|
businessInformation?: components["schemas"]["BusinessInformation"] | null;
|
|
4483
|
+
businessInformationVerification?: {
|
|
4484
|
+
[key: string]: components["schemas"]["BusinessInfoFieldVerification"];
|
|
4485
|
+
} | null;
|
|
1911
4486
|
createdAt?: string | null;
|
|
1912
4487
|
directorDefinitions?: components["schemas"]["DirectorDefinition"][] | null;
|
|
1913
4488
|
documentUploads?: components["schemas"]["DocumentUpload"][] | null;
|
|
1914
4489
|
flowStep?: Omit<components["schemas"]["FlowStep"], "type"> | null;
|
|
1915
4490
|
flowStepId?: string | null;
|
|
4491
|
+
fundedAt?: string | null;
|
|
1916
4492
|
id: string;
|
|
4493
|
+
nextAction?: components["schemas"]["NextAction"] | null;
|
|
1917
4494
|
pepAndSanctionsStatus: components["schemas"]["PepAndSanctionsStatus"];
|
|
1918
4495
|
reason?: string | null;
|
|
1919
4496
|
report?: string | null;
|
|
@@ -1935,6 +4512,7 @@ declare function getFlowResult({ organizationId, flowResultId, isSandbox }: GetF
|
|
|
1935
4512
|
updatedAt?: string | null;
|
|
1936
4513
|
verificationRequestId?: string | null;
|
|
1937
4514
|
}[] | undefined;
|
|
4515
|
+
reviewSuggestion?: components["schemas"]["ReviewSuggestion"] | null;
|
|
1938
4516
|
spidResults?: {
|
|
1939
4517
|
createdAt?: string | null;
|
|
1940
4518
|
flowStep?: Omit<components["schemas"]["FlowStep"], "type"> | null;
|
|
@@ -1946,6 +4524,7 @@ declare function getFlowResult({ organizationId, flowResultId, isSandbox }: GetF
|
|
|
1946
4524
|
updatedAt?: string | null;
|
|
1947
4525
|
verificationRequestId?: string | null;
|
|
1948
4526
|
}[] | undefined;
|
|
4527
|
+
status?: "FAILED" | "REQUIRES_MANUAL_REVIEW" | "REQUIRES_ADMIN_REVIEW" | "PENDING" | "COMPLETED" | "CANCELLED" | "QUEUED" | "PROCESSING" | "REJECTED" | undefined;
|
|
1949
4528
|
updatedAt?: string | null;
|
|
1950
4529
|
walletResults?: {
|
|
1951
4530
|
createdAt?: string | null;
|
|
@@ -1987,6 +4566,152 @@ declare function getDvResult({ organizationId, flowResultId, dvResultId, isSandb
|
|
|
1987
4566
|
response: Response;
|
|
1988
4567
|
}>;
|
|
1989
4568
|
|
|
4569
|
+
interface ZypheErrorOptions extends ErrorOptions {
|
|
4570
|
+
errorTag?: string;
|
|
4571
|
+
}
|
|
4572
|
+
declare class ZypheError extends Error {
|
|
4573
|
+
errorTag?: string;
|
|
4574
|
+
constructor(message: string, options?: ZypheErrorOptions);
|
|
4575
|
+
static fromBaxeError(error: BaxeError): ZypheError;
|
|
4576
|
+
}
|
|
4577
|
+
|
|
4578
|
+
declare function createVerificationSession({ email, flowId, flowStepId, isSandbox, customData, }: CreateVerificationSessionParams, opts: SDKOptions): Promise<openapi_fetch.FetchResponse<{
|
|
4579
|
+
parameters: {
|
|
4580
|
+
query: {
|
|
4581
|
+
sandbox: boolean;
|
|
4582
|
+
locale?: components["schemas"]["Locale"];
|
|
4583
|
+
};
|
|
4584
|
+
header?: never;
|
|
4585
|
+
path: {
|
|
4586
|
+
flow_id: string;
|
|
4587
|
+
};
|
|
4588
|
+
cookie?: never;
|
|
4589
|
+
};
|
|
4590
|
+
requestBody: {
|
|
4591
|
+
content: {
|
|
4592
|
+
"application/json": components["schemas"]["SdkCreateVerificationRequestPayload"];
|
|
4593
|
+
};
|
|
4594
|
+
};
|
|
4595
|
+
responses: {
|
|
4596
|
+
200: {
|
|
4597
|
+
headers: {
|
|
4598
|
+
[name: string]: unknown;
|
|
4599
|
+
};
|
|
4600
|
+
content: {
|
|
4601
|
+
"application/json": components["schemas"]["SdkCreateVerificationRequestResponse"];
|
|
4602
|
+
};
|
|
4603
|
+
};
|
|
4604
|
+
400: {
|
|
4605
|
+
headers: {
|
|
4606
|
+
[name: string]: unknown;
|
|
4607
|
+
};
|
|
4608
|
+
content: {
|
|
4609
|
+
"application/json": components["schemas"]["BaxeError"];
|
|
4610
|
+
};
|
|
4611
|
+
};
|
|
4612
|
+
409: {
|
|
4613
|
+
headers: {
|
|
4614
|
+
[name: string]: unknown;
|
|
4615
|
+
};
|
|
4616
|
+
content: {
|
|
4617
|
+
"application/json": components["schemas"]["BaxeError"];
|
|
4618
|
+
};
|
|
4619
|
+
};
|
|
4620
|
+
500: {
|
|
4621
|
+
headers: {
|
|
4622
|
+
[name: string]: unknown;
|
|
4623
|
+
};
|
|
4624
|
+
content: {
|
|
4625
|
+
"application/json": components["schemas"]["BaxeError"];
|
|
4626
|
+
};
|
|
4627
|
+
};
|
|
4628
|
+
};
|
|
4629
|
+
}, {
|
|
4630
|
+
body: {
|
|
4631
|
+
email: string;
|
|
4632
|
+
flowStepId: string;
|
|
4633
|
+
customData: Record<string, string> | undefined;
|
|
4634
|
+
};
|
|
4635
|
+
headers: {
|
|
4636
|
+
"x-api-key": string;
|
|
4637
|
+
};
|
|
4638
|
+
params: {
|
|
4639
|
+
path: {
|
|
4640
|
+
flow_id: string;
|
|
4641
|
+
};
|
|
4642
|
+
query: {
|
|
4643
|
+
sandbox: boolean;
|
|
4644
|
+
};
|
|
4645
|
+
};
|
|
4646
|
+
}, `${string}/${string}`>>;
|
|
4647
|
+
declare function constructVerificationSessionUrl({ flowParams, verificationSession, opts, }: {
|
|
4648
|
+
flowParams: InitializeZypheFlowParams;
|
|
4649
|
+
verificationSession: SdkCreateVerificationRequestResponse;
|
|
4650
|
+
opts: SDKOptions;
|
|
4651
|
+
}): string;
|
|
4652
|
+
declare function getNextStepDetails(flowParams: GetNextStepDetailsParams, opts: SDKOptions): Promise<openapi_fetch.FetchResponse<{
|
|
4653
|
+
parameters: {
|
|
4654
|
+
query: {
|
|
4655
|
+
sandbox: boolean;
|
|
4656
|
+
locale?: components["schemas"]["Locale"];
|
|
4657
|
+
email: string;
|
|
4658
|
+
};
|
|
4659
|
+
header?: never;
|
|
4660
|
+
path: {
|
|
4661
|
+
flow_id: string;
|
|
4662
|
+
};
|
|
4663
|
+
cookie?: never;
|
|
4664
|
+
};
|
|
4665
|
+
requestBody?: never;
|
|
4666
|
+
responses: {
|
|
4667
|
+
200: {
|
|
4668
|
+
headers: {
|
|
4669
|
+
[name: string]: unknown;
|
|
4670
|
+
};
|
|
4671
|
+
content: {
|
|
4672
|
+
"application/json": components["schemas"]["GetNextStepResponse"];
|
|
4673
|
+
};
|
|
4674
|
+
};
|
|
4675
|
+
400: {
|
|
4676
|
+
headers: {
|
|
4677
|
+
[name: string]: unknown;
|
|
4678
|
+
};
|
|
4679
|
+
content: {
|
|
4680
|
+
"application/json": components["schemas"]["BaxeError"];
|
|
4681
|
+
};
|
|
4682
|
+
};
|
|
4683
|
+
404: {
|
|
4684
|
+
headers: {
|
|
4685
|
+
[name: string]: unknown;
|
|
4686
|
+
};
|
|
4687
|
+
content: {
|
|
4688
|
+
"application/json": components["schemas"]["BaxeError"];
|
|
4689
|
+
};
|
|
4690
|
+
};
|
|
4691
|
+
500: {
|
|
4692
|
+
headers: {
|
|
4693
|
+
[name: string]: unknown;
|
|
4694
|
+
};
|
|
4695
|
+
content: {
|
|
4696
|
+
"application/json": components["schemas"]["BaxeError"];
|
|
4697
|
+
};
|
|
4698
|
+
};
|
|
4699
|
+
};
|
|
4700
|
+
}, {
|
|
4701
|
+
headers: {
|
|
4702
|
+
"x-api-key": string;
|
|
4703
|
+
};
|
|
4704
|
+
params: {
|
|
4705
|
+
path: {
|
|
4706
|
+
flow_id: string;
|
|
4707
|
+
};
|
|
4708
|
+
query: {
|
|
4709
|
+
sandbox: boolean;
|
|
4710
|
+
email: string;
|
|
4711
|
+
};
|
|
4712
|
+
};
|
|
4713
|
+
}, `${string}/${string}`>>;
|
|
4714
|
+
|
|
1990
4715
|
interface SignatureComponents {
|
|
1991
4716
|
timestamp: string;
|
|
1992
4717
|
signatureHex: string;
|
|
@@ -2048,4 +4773,4 @@ interface WebhookVerifierOptions<T extends Function> {
|
|
|
2048
4773
|
exposeRawBody?: boolean;
|
|
2049
4774
|
}
|
|
2050
4775
|
|
|
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 };
|
|
4776
|
+
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 };
|