@zyphe-sdk/core 0.1.15 → 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/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
- declare const Environments: {
5
- readonly LOCAL: "local";
6
- readonly STAGING: "staging";
7
- readonly PRODUCTION: "production";
8
- };
9
- type Environment = (typeof Environments)[keyof typeof Environments];
10
- declare const EnvironmentConfigs: {
11
- readonly local: {
12
- readonly appUrl: "http://localhost:5173";
13
- readonly apiUrl: "http://localhost:3000";
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
- readonly staging: {
16
- readonly appUrl: "https://app-dev.zyphe.com";
17
- readonly apiUrl: "https://api-dev.zyphe.com";
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
- readonly production: {
20
- readonly appUrl: "https://verify.zyphe.com";
21
- readonly apiUrl: "https://api.zyphe.com";
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
- declare const API_KEY_HEADER = "x-api-key";
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;
@@ -35,49 +365,83 @@ interface components {
35
365
  postalCode: string;
36
366
  street: string;
37
367
  };
368
+ AmlCheckSummary: {
369
+ hasPep: boolean;
370
+ hasSanctions: boolean;
371
+ highRiskEntitiesCount: number;
372
+ highestRiskLevel: components["schemas"]["RiskLevel"];
373
+ /** Format: int32 */
374
+ highestRiskScore: number;
375
+ totalEntities: number;
376
+ };
38
377
  AmlEntityResponse: {
39
- address?: string[];
40
- birthCountry?: string[];
41
- birthDate?: string[];
42
- birthPlace?: string[];
43
- country?: string[];
44
- email?: string[];
45
- firstName?: string[];
46
- gender?: string[];
47
- lastName?: string[];
48
- middleName?: string[];
49
- name?: string[];
50
- nationality?: string[];
378
+ address?: components["schemas"]["FieldWithControl"];
379
+ birthCountry?: components["schemas"]["FieldWithControl"];
380
+ birthDate?: components["schemas"]["FieldWithControl"];
381
+ birthPlace?: components["schemas"]["FieldWithControl"];
382
+ country?: components["schemas"]["FieldWithControl"];
383
+ email?: components["schemas"]["FieldWithControl"];
384
+ firstName?: components["schemas"]["FieldWithControl"];
385
+ gender?: components["schemas"]["FieldWithControl"];
386
+ lastName?: components["schemas"]["FieldWithControl"];
387
+ match?: boolean;
388
+ middleName?: components["schemas"]["FieldWithControl"];
389
+ name?: components["schemas"]["FieldWithControl"];
390
+ nationality?: components["schemas"]["FieldWithControl"];
51
391
  occupancies?: components["schemas"]["AmlOccupancy"][];
52
- phone?: string[];
53
- position?: string[];
392
+ phone?: components["schemas"]["FieldWithControl"];
393
+ position?: components["schemas"]["FieldWithControl"];
54
394
  sanctions?: components["schemas"]["AmlSanction"][];
55
- title?: string[];
56
- topics?: string[];
395
+ /** Format: double */
396
+ score?: number;
397
+ sources?: components["schemas"]["AmlSource"][];
398
+ title?: components["schemas"]["FieldWithControl"];
399
+ topics?: components["schemas"]["FieldWithControl"];
400
+ };
401
+ AmlEntityResult: {
402
+ entity: components["schemas"]["AmlEntityResponse"];
403
+ hasSanctions: boolean;
404
+ isPep: boolean;
405
+ match: boolean;
406
+ /** Format: double */
407
+ matchScore: number;
408
+ riskCountries: string[];
409
+ riskPositions: string[];
410
+ riskRelationships: string[];
411
+ riskScore: components["schemas"]["RiskScore"];
412
+ riskTopics: string[];
57
413
  };
414
+ /** @enum {string} */
415
+ AmlModerationStatus: "approved" | "rejected" | "escalated";
58
416
  AmlOccupancy: {
59
- endDate?: string[];
417
+ endDate?: components["schemas"]["FieldWithControl"];
60
418
  post?: components["schemas"]["AmlPosition"][];
61
- startDate?: string[];
62
- status?: string[];
419
+ sources?: components["schemas"]["AmlSource"][];
420
+ startDate?: components["schemas"]["FieldWithControl"];
421
+ status?: components["schemas"]["FieldWithControl"];
63
422
  };
64
423
  AmlOrganization: {
65
- country?: string[];
66
- description?: string[];
67
- name?: string[];
68
- summary?: string[];
424
+ country?: components["schemas"]["FieldWithControl"];
425
+ description?: components["schemas"]["FieldWithControl"];
426
+ name?: components["schemas"]["FieldWithControl"];
427
+ summary?: components["schemas"]["FieldWithControl"];
69
428
  };
70
429
  AmlPosition: {
71
- country?: string[];
72
- description?: string[];
73
- dissolutionDate?: string[];
74
- inceptionDate?: string[];
75
- name?: string[];
430
+ country?: components["schemas"]["FieldWithControl"];
431
+ description?: components["schemas"]["FieldWithControl"];
432
+ dissolutionDate?: components["schemas"]["FieldWithControl"];
433
+ inceptionDate?: components["schemas"]["FieldWithControl"];
434
+ name?: components["schemas"]["FieldWithControl"];
76
435
  numberOfSeats?: number[];
77
436
  organization?: components["schemas"]["AmlOrganization"][];
78
- subnationalArea?: string[];
79
- summary?: string[];
80
- topics?: string[];
437
+ subnationalArea?: components["schemas"]["FieldWithControl"];
438
+ summary?: components["schemas"]["FieldWithControl"];
439
+ topics?: components["schemas"]["FieldWithControl"];
440
+ };
441
+ AmlQueryMetadata: {
442
+ dateOfBirth: string;
443
+ firstName: string;
444
+ lastName: string;
81
445
  };
82
446
  AmlResult: {
83
447
  /** Format: date-time */
@@ -85,36 +449,114 @@ interface components {
85
449
  data: {
86
450
  [key: string]: unknown;
87
451
  };
452
+ /** Format: uuid */
88
453
  id: string;
89
454
  pep: boolean;
90
455
  sanctions: boolean;
91
456
  /** Format: date-time */
92
457
  updatedAt: string;
458
+ /** Format: uuid */
93
459
  verificationRequestId?: string | null;
94
460
  };
461
+ AmlRiskMetadata: {
462
+ /** Format: date-time */
463
+ checkedAt: string;
464
+ controls: components["schemas"]["ResultControlOperation"][];
465
+ query?: components["schemas"]["AmlQueryMetadata"] | null;
466
+ summary: components["schemas"]["AmlCheckSummary"];
467
+ };
468
+ AmlRiskResult: {
469
+ entities: components["schemas"]["AmlEntityResult"][];
470
+ metadata: components["schemas"]["AmlRiskMetadata"];
471
+ };
95
472
  AmlSanction: {
96
- authority?: string[];
97
- authorityId?: string[];
98
- country?: string[];
99
- date?: string[];
100
- duration?: string[];
101
- endDate?: string[];
102
- listingDate?: string[];
103
- program?: string[];
104
- reason?: string[];
105
- startDate?: string[];
106
- status?: string[];
107
- unscId?: string[];
108
- };
109
- AmlSearchResponse: components["schemas"]["AmlEntityResponse"][];
473
+ authority?: components["schemas"]["FieldWithControl"];
474
+ authorityId?: components["schemas"]["FieldWithControl"];
475
+ country?: components["schemas"]["FieldWithControl"];
476
+ date?: components["schemas"]["FieldWithControl"];
477
+ duration?: components["schemas"]["FieldWithControl"];
478
+ endDate?: components["schemas"]["FieldWithControl"];
479
+ listingDate?: components["schemas"]["FieldWithControl"];
480
+ program?: components["schemas"]["FieldWithControl"];
481
+ reason?: components["schemas"]["FieldWithControl"];
482
+ sources?: components["schemas"]["AmlSource"][];
483
+ startDate?: components["schemas"]["FieldWithControl"];
484
+ status?: components["schemas"]["FieldWithControl"];
485
+ unscId?: components["schemas"]["FieldWithControl"];
486
+ };
487
+ AmlSource: {
488
+ name?: string;
489
+ title?: string;
490
+ url?: string | null;
491
+ };
110
492
  /** @enum {string} */
111
493
  ApiKeyType: "PUBLISHABLE" | "SECRET";
494
+ AutoOneClickKycConfig: {
495
+ /** @example { "en_title": "Verify with Partners" } */
496
+ labels?: {
497
+ [key: string]: string;
498
+ };
499
+ /** @description Partner flow configurations with step type hints */
500
+ partnerConfigs: components["schemas"]["AutoOneClickPartnerConfig"][];
501
+ /** @description Full partner flow objects (populated by rehydrate_flow_step) */
502
+ partnerFlows?: components["schemas"]["Flow"][] | null;
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
+ };
112
526
  BaxeError: {
113
527
  /** Format: int32 */
114
528
  code: number;
115
529
  errorTag: components["schemas"]["ErrorTags"];
116
530
  message?: string | null;
117
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";
118
560
  BusinessInformation: {
119
561
  address: string;
120
562
  businessActivity: string;
@@ -127,6 +569,158 @@ interface components {
127
569
  postZipCode: string;
128
570
  registrationNumber: string;
129
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";
130
724
  CountriesFilter: {
131
725
  accepted: string[];
132
726
  blocked: string[];
@@ -137,20 +731,36 @@ interface components {
137
731
  customData?: {
138
732
  [key: string]: unknown;
139
733
  } | null;
140
- email: string;
141
- flowStepId: string;
734
+ email?: string | null;
735
+ /** Format: uuid */
736
+ flowStepId?: string | null;
142
737
  privacyPolicyAccepted: boolean;
143
738
  termsAndConditionsAccepted: boolean;
144
739
  };
145
740
  CreateVerificationRequestResponse: {
146
741
  verificationRequest: components["schemas"]["VerificationRequest"];
147
- websocketNamespace: string;
742
+ };
743
+ CustomDocumentConfig: {
744
+ enabled?: boolean;
745
+ /** Format: uuid */
746
+ id: string;
747
+ name: string;
748
+ required?: boolean;
749
+ };
750
+ DirectorDefinition: {
751
+ country: string;
752
+ dateOfBirth: string;
753
+ emailAddress: string;
754
+ firstName: string;
755
+ gender: string;
756
+ lastName: string;
148
757
  };
149
758
  Document: {
150
759
  /** Format: date-time */
151
760
  createdAt: string;
152
761
  /** Format: date-time */
153
762
  expiresAt?: string | null;
763
+ /** Format: uuid */
154
764
  id: string;
155
765
  metadata: unknown;
156
766
  path: string;
@@ -159,8 +769,12 @@ interface components {
159
769
  typeName: string;
160
770
  /** Format: date-time */
161
771
  updatedAt: string;
772
+ /** Format: uuid */
162
773
  vaultId: string;
163
774
  };
775
+ DocumentConfig: {
776
+ required?: boolean;
777
+ };
164
778
  DocumentData: {
165
779
  documentCan?: string;
166
780
  documentClassCode?: string;
@@ -180,75 +794,197 @@ interface components {
180
794
  path: string;
181
795
  type: string;
182
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
+ };
183
842
  DocumentTypeFilter: {
184
843
  types: string[];
185
844
  };
186
845
  DocumentUpload: {
846
+ documentType?: string | null;
187
847
  filename: string;
188
848
  presignedUrl?: string | null;
849
+ s3Key?: string | null;
189
850
  };
190
851
  DvConfig: {
191
- allowedDocumentsPerCountry?: {
192
- [key: string]: string[];
193
- } | null;
194
- countriesFilter?: components["schemas"]["CountriesFilter"] | null;
195
- documentFormatsFilter?: components["schemas"]["DocumentFormatFilter"] | null;
196
- documentTypesFilter?: components["schemas"]["DocumentTypeFilter"] | null;
852
+ /** Format: uuid */
853
+ documentSelectionStepId?: string;
197
854
  /** @example { "en_button_label": "Next step" } */
198
855
  labels?: {
199
856
  [key: string]: string;
200
857
  };
858
+ /**
859
+ * Format: int32
860
+ * @example 5
861
+ */
862
+ maxAttempts?: number | null;
201
863
  /** Format: int32 */
202
864
  minimumAge: number;
203
- skipLiveness?: boolean;
865
+ processImagesOverrides?: components["schemas"]["ProcessImagesOverrides"] | null;
866
+ requiredDocumentFields?: components["schemas"]["RequiredDocumentField"][];
204
867
  thresholds?: {
205
868
  documentScorePercent?: number;
206
- portraitMatchPercent?: number;
207
869
  } | null;
208
870
  };
209
871
  /** @enum {string} */
210
- DvConfigThreshold: "documentScorePercent" | "portraitMatchPercent";
872
+ DvConfigThreshold: "documentScorePercent";
211
873
  /** @enum {string} */
212
- 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" | "LIVENESS_CHECK_FAILED" | "DOCUMENT_NOT_FOUND" | "DATE_OF_BIRTH_BELOW_MINIMUM_AGE" | "DOCUMENT_TYPE_CHECK";
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";
213
875
  DvResult: {
876
+ adminComment?: string | null;
877
+ authenticityChecks: number[][];
214
878
  browser?: string | null;
215
879
  class?: string | null;
880
+ countryCode?: string | null;
216
881
  /** Format: date-time */
217
882
  createdAt?: string | null;
218
883
  data: {
219
884
  [key: string]: unknown;
220
885
  };
886
+ /** Format: uuid */
221
887
  documentId?: string | null;
222
888
  /** Format: int32 */
223
889
  documentScorePercent?: number | null;
224
890
  /** Format: int32 */
225
891
  documentType?: number | null;
226
- firstName?: string | null;
227
892
  flowStep?: Omit<components["schemas"]["FlowStep"], "type"> | null;
893
+ /** Format: uuid */
894
+ flowStepId?: string | null;
895
+ /** Format: uuid */
228
896
  id: string;
229
- lastName?: string | null;
897
+ /** Format: date-time */
898
+ manualReviewAt?: string | null;
899
+ manualReviewNote?: string | null;
900
+ /** Format: uuid */
901
+ manualReviewerId?: string | null;
902
+ manualReviewerZid?: string | null;
903
+ /** Format: uuid */
904
+ originalVrHistoryId?: string | null;
230
905
  platform?: string | null;
231
906
  /** Format: int32 */
232
907
  portraitMatchPercent?: number | null;
233
- processAdditionalData: {
234
- [key: string]: unknown;
235
- };
908
+ processAdditionalData: components["schemas"]["ProcessAdditionalData"];
909
+ provinceCode?: string | null;
236
910
  reasons: components["schemas"]["DvReason"][];
237
911
  status: components["schemas"]["ResultStatus"];
238
912
  /** Format: date-time */
239
913
  updatedAt?: string | null;
914
+ /** Format: uuid */
240
915
  verificationRequestId?: string | null;
241
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
+ };
242
932
  /** @enum {string} */
243
- 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" | "authentication_request_not_found" | "invalid_magic_link" | "user_disabled" | "invalid_verify_link" | "missing_authorization_header" | "invalid_authorization_header" | "token_generation" | "user_not_found" | "authentication_request_expired" | "authentication_request_already_used" | "verification_session_expired" | "email_already_taken" | "invalid_invite" | "wrong_invite_user" | "invite_not_found" | "email_already_verified" | "flow_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_revoked" | "invite_expired" | "form_not_found" | "form_in_use" | "flow_step_configuration_not_found" | "organization_product_not_active" | "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";
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
+ };
943
+ FieldControlOperation: {
944
+ /** Format: uuid */
945
+ identityId: string;
946
+ operation: components["schemas"]["FieldControlOperationType"];
947
+ /** Format: date-time */
948
+ timestamp: string;
949
+ zid: string;
950
+ };
951
+ FieldControlOperationType: {
952
+ markAsFalsePositive: {
953
+ comment: string;
954
+ };
955
+ } | {
956
+ unmarkAsFalsePositive: {
957
+ comment: string;
958
+ };
959
+ } | {
960
+ comment: {
961
+ comment: string;
962
+ };
963
+ };
964
+ /**
965
+ * @description Per-field review status within a clarification document request.
966
+ * @enum {string}
967
+ */
968
+ FieldReviewStatus: "PENDING" | "APPROVED" | "REJECTED";
969
+ FieldWithControl: {
970
+ controls: components["schemas"]["FieldControlOperation"][];
971
+ value: string[];
972
+ };
973
+ FileOptions: {
974
+ accept: string[];
975
+ expectedDocumentType: string;
976
+ /** Format: int32 */
977
+ maxCountUploads?: number;
978
+ };
244
979
  /** @enum {string} */
245
980
  FilterOperator: "unfiltered" | "in" | "equals" | "not-in" | "not-equals" | "contains";
246
981
  Flow: {
247
982
  /** Format: date-time */
248
983
  createdAt?: string | null;
249
- extendedWebhook: boolean;
250
984
  failureUrl?: string | null;
985
+ /** Format: uuid */
251
986
  id: string;
987
+ jdm: components["schemas"]["WorkflowGraph"];
252
988
  name: string;
253
989
  slug: string;
254
990
  steps: components["schemas"]["FlowStep"][];
@@ -263,28 +999,41 @@ interface components {
263
999
  createdAt?: string | null;
264
1000
  customData: {
265
1001
  [key: string]: unknown;
266
- };
1002
+ } | null;
267
1003
  dvResults: components["schemas"]["DvResult"][];
268
1004
  flow?: components["schemas"]["Flow"] | null;
269
1005
  flowSlug: string;
270
1006
  formResults: components["schemas"]["FormResult"][];
1007
+ geolocationResults?: components["schemas"]["GeolocationResult"][];
1008
+ /** Format: uuid */
271
1009
  id: string;
272
1010
  identity?: components["schemas"]["Identity"] | null;
1011
+ jdmData: {
1012
+ [key: string]: components["schemas"]["FlowStepOutput"];
1013
+ };
273
1014
  kybResults: components["schemas"]["KybResult"][];
274
1015
  organization?: components["schemas"]["Organization"] | null;
1016
+ /** Format: uuid */
275
1017
  organizationId: string;
1018
+ phoneResults: components["schemas"]["PhoneResult"][];
276
1019
  poaResults: components["schemas"]["PoaResult"][];
1020
+ reviewSuggestion?: components["schemas"]["ReviewSuggestion"] | null;
277
1021
  spidResults: components["schemas"]["SpidResult"][];
1022
+ status: components["schemas"]["VerificationRequestStatus"];
278
1023
  /** Format: date-time */
279
1024
  updatedAt?: string | null;
1025
+ walletResults: components["schemas"]["WalletResult"][];
280
1026
  };
281
1027
  FlowStep: {
282
1028
  config: components["schemas"]["DvConfig"];
283
1029
  /** Format: date-time */
284
1030
  createdAt?: string | null;
285
1031
  failureUrl?: string | null;
1032
+ /** Format: uuid */
286
1033
  flowId: string;
1034
+ /** Format: uuid */
287
1035
  gotoStepId?: string | null;
1036
+ /** Format: uuid */
288
1037
  id: string;
289
1038
  name: string;
290
1039
  /** Format: int32 */
@@ -300,8 +1049,11 @@ interface components {
300
1049
  /** Format: date-time */
301
1050
  createdAt?: string | null;
302
1051
  failureUrl?: string | null;
1052
+ /** Format: uuid */
303
1053
  flowId: string;
1054
+ /** Format: uuid */
304
1055
  gotoStepId?: string | null;
1056
+ /** Format: uuid */
305
1057
  id: string;
306
1058
  name: string;
307
1059
  /** Format: int32 */
@@ -317,8 +1069,11 @@ interface components {
317
1069
  /** Format: date-time */
318
1070
  createdAt?: string | null;
319
1071
  failureUrl?: string | null;
1072
+ /** Format: uuid */
320
1073
  flowId: string;
1074
+ /** Format: uuid */
321
1075
  gotoStepId?: string | null;
1076
+ /** Format: uuid */
322
1077
  id: string;
323
1078
  name: string;
324
1079
  /** Format: int32 */
@@ -334,8 +1089,11 @@ interface components {
334
1089
  /** Format: date-time */
335
1090
  createdAt?: string | null;
336
1091
  failureUrl?: string | null;
1092
+ /** Format: uuid */
337
1093
  flowId: string;
1094
+ /** Format: uuid */
338
1095
  gotoStepId?: string | null;
1096
+ /** Format: uuid */
339
1097
  id: string;
340
1098
  name: string;
341
1099
  /** Format: int32 */
@@ -351,8 +1109,11 @@ interface components {
351
1109
  /** Format: date-time */
352
1110
  createdAt?: string | null;
353
1111
  failureUrl?: string | null;
1112
+ /** Format: uuid */
354
1113
  flowId: string;
1114
+ /** Format: uuid */
355
1115
  gotoStepId?: string | null;
1116
+ /** Format: uuid */
356
1117
  id: string;
357
1118
  name: string;
358
1119
  /** Format: int32 */
@@ -363,60 +1124,262 @@ interface components {
363
1124
  type: "SPID";
364
1125
  /** Format: date-time */
365
1126
  updatedAt?: string | null;
366
- };
367
- FlowStepConfig: components["schemas"]["DvConfig"] | components["schemas"]["FormConfig"] | components["schemas"]["PoaConfig"] | components["schemas"]["KybConfig"] | components["schemas"]["SpidConfig"];
368
- Form: {
1127
+ } | {
1128
+ config: components["schemas"]["PhoneConfig"];
369
1129
  /** Format: date-time */
370
1130
  createdAt?: string | null;
371
- description?: string | null;
1131
+ failureUrl?: string | null;
1132
+ /** Format: uuid */
1133
+ flowId: string;
1134
+ /** Format: uuid */
1135
+ gotoStepId?: string | null;
1136
+ /** Format: uuid */
372
1137
  id: string;
373
1138
  name: string;
374
- organizationId: string;
375
- sections: components["schemas"]["FormSection"][];
1139
+ /** Format: int32 */
1140
+ order: number;
1141
+ slug: string;
1142
+ successUrl?: string | null;
1143
+ /** @enum {string} */
1144
+ type: "PHONE";
376
1145
  /** Format: date-time */
377
1146
  updatedAt?: string | null;
378
- };
379
- FormAnswerSection: {
380
- answers: {
381
- [key: string]: unknown;
382
- };
383
- name: string;
384
- };
385
- FormConfig: {
386
- form?: components["schemas"]["Form"] | null;
387
- formId: string;
388
- /** @example { "default": "Next step" } */
389
- labels?: {
390
- [key: string]: string;
391
- };
392
- };
393
- FormItem: {
394
- content: components["schemas"]["InputField"];
395
- /** @enum {string} */
396
- type: "InputField";
397
- } | {
398
- content: components["schemas"]["Plaintext"];
399
- /** @enum {string} */
400
- type: "Plaintext";
401
1147
  } | {
402
- /** @enum {string} */
403
- type: "Separator";
404
- };
405
- /** @enum {string} */
406
- FormReason: "UNKNOWN";
407
- FormResult: {
1148
+ config: components["schemas"]["WalletConfig"];
408
1149
  /** Format: date-time */
409
1150
  createdAt?: string | null;
410
- flowResultId: string;
411
- flowStep?: Omit<components["schemas"]["FlowStep"], "type"> | null;
412
- flowStepId?: string | null;
413
- form?: components["schemas"]["Form"] | null;
1151
+ failureUrl?: string | null;
1152
+ /** Format: uuid */
1153
+ flowId: string;
1154
+ /** Format: uuid */
1155
+ gotoStepId?: string | null;
1156
+ /** Format: uuid */
414
1157
  id: string;
415
- reason?: components["schemas"]["FormReason"] | null;
416
- sections: components["schemas"]["FormSection"][];
417
- status: components["schemas"]["ResultStatus"];
1158
+ name: string;
1159
+ /** Format: int32 */
1160
+ order: number;
1161
+ slug: string;
1162
+ successUrl?: string | null;
1163
+ /** @enum {string} */
1164
+ type: "WALLET";
418
1165
  /** Format: date-time */
419
1166
  updatedAt?: string | null;
1167
+ } | {
1168
+ config: components["schemas"]["LivenessConfig"];
1169
+ /** Format: date-time */
1170
+ createdAt?: string | null;
1171
+ failureUrl?: string | null;
1172
+ /** Format: uuid */
1173
+ flowId: string;
1174
+ /** Format: uuid */
1175
+ gotoStepId?: string | null;
1176
+ /** Format: uuid */
1177
+ id: string;
1178
+ name: string;
1179
+ /** Format: int32 */
1180
+ order: number;
1181
+ slug: string;
1182
+ successUrl?: string | null;
1183
+ /** @enum {string} */
1184
+ type: "LIVENESS";
1185
+ /** Format: date-time */
1186
+ updatedAt?: string | null;
1187
+ } | {
1188
+ config: components["schemas"]["AutoOneClickKycConfig"];
1189
+ /** Format: date-time */
1190
+ createdAt?: string | null;
1191
+ failureUrl?: string | null;
1192
+ /** Format: uuid */
1193
+ flowId: string;
1194
+ /** Format: uuid */
1195
+ gotoStepId?: string | null;
1196
+ /** Format: uuid */
1197
+ id: string;
1198
+ name: string;
1199
+ /** Format: int32 */
1200
+ order: number;
1201
+ slug: string;
1202
+ successUrl?: string | null;
1203
+ /** @enum {string} */
1204
+ type: "AUTO_ONE_CLICK_KYC";
1205
+ /** Format: date-time */
1206
+ updatedAt?: string | null;
1207
+ } | {
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"];
1229
+ /** Format: date-time */
1230
+ createdAt?: string | null;
1231
+ failureUrl?: string | null;
1232
+ /** Format: uuid */
1233
+ flowId: string;
1234
+ /** Format: uuid */
1235
+ gotoStepId?: string | null;
1236
+ /** Format: uuid */
1237
+ id: string;
1238
+ name: string;
1239
+ /** Format: int32 */
1240
+ order: number;
1241
+ slug: string;
1242
+ successUrl?: string | null;
1243
+ /** @enum {string} */
1244
+ type: "GEOLOCATION";
1245
+ /** Format: date-time */
1246
+ updatedAt?: string | null;
1247
+ };
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"];
1249
+ FlowStepInfo: {
1250
+ CONFIG: components["schemas"]["FlowStepConfig"];
1251
+ /** Format: date-time */
1252
+ CREATED_AT?: string | null;
1253
+ FAILURE_URL?: string | null;
1254
+ /** Format: uuid */
1255
+ FLOW_ID: string;
1256
+ /** Format: uuid */
1257
+ GOTO_STEP_ID?: string | null;
1258
+ /** Format: uuid */
1259
+ ID: string;
1260
+ NAME: string;
1261
+ /** Format: int32 */
1262
+ ORDER: number;
1263
+ SLUG: string;
1264
+ STEP_TYPE: components["schemas"]["FlowStepType"];
1265
+ SUCCESS_URL?: string | null;
1266
+ /** Format: date-time */
1267
+ UPDATED_AT?: string | null;
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
+ };
1318
+ /** @enum {string} */
1319
+ FlowStepType: "DV" | "FORM" | "POA" | "KYB" | "SPID" | "PHONE" | "WALLET" | "LIVENESS" | "AUTO_ONE_CLICK_KYC" | "DOCUMENT_SELECTION" | "GEOLOCATION";
1320
+ Form: {
1321
+ /** Format: date-time */
1322
+ createdAt?: string | null;
1323
+ description?: string | null;
1324
+ /** Format: uuid */
1325
+ id: string;
1326
+ name: string;
1327
+ /** Format: uuid */
1328
+ organizationId: string;
1329
+ sections: components["schemas"]["FormSection"][];
1330
+ /** Format: date-time */
1331
+ updatedAt?: string | null;
1332
+ };
1333
+ FormAnswerSection: {
1334
+ answers: {
1335
+ [key: string]: unknown;
1336
+ };
1337
+ name: string;
1338
+ };
1339
+ FormConfig: {
1340
+ form?: components["schemas"]["Form"] | null;
1341
+ /** Format: uuid */
1342
+ formId: string;
1343
+ /** @example { "default": "Next step" } */
1344
+ labels?: {
1345
+ [key: string]: string;
1346
+ };
1347
+ /** Format: int64 */
1348
+ oneClickMaxAgeSeconds?: number | null;
1349
+ };
1350
+ FormItem: {
1351
+ content: components["schemas"]["InputField"];
1352
+ /** @enum {string} */
1353
+ type: "InputField";
1354
+ } | {
1355
+ content: components["schemas"]["Plaintext"];
1356
+ /** @enum {string} */
1357
+ type: "Plaintext";
1358
+ } | {
1359
+ /** @enum {string} */
1360
+ type: "Separator";
1361
+ };
1362
+ /** @enum {string} */
1363
+ FormReason: "UNKNOWN";
1364
+ FormResult: {
1365
+ /** Format: date-time */
1366
+ createdAt?: string | null;
1367
+ /** Format: uuid */
1368
+ flowResultId: string;
1369
+ flowStep?: Omit<components["schemas"]["FlowStep"], "type"> | null;
1370
+ /** Format: uuid */
1371
+ flowStepId?: string | null;
1372
+ form?: components["schemas"]["Form"] | null;
1373
+ /** Format: uuid */
1374
+ formId?: string | null;
1375
+ /** Format: uuid */
1376
+ id: string;
1377
+ reason?: components["schemas"]["FormReason"] | null;
1378
+ sections: components["schemas"]["FormSection"][];
1379
+ status: components["schemas"]["ResultStatus"];
1380
+ /** Format: date-time */
1381
+ updatedAt?: string | null;
1382
+ /** Format: uuid */
420
1383
  verificationRequestId?: string | null;
421
1384
  };
422
1385
  FormSection: {
@@ -426,6 +1389,68 @@ interface components {
426
1389
  };
427
1390
  name: string;
428
1391
  };
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;
1403
+ };
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;
1415
+ };
1416
+ GeolocationCoordinates: {
1417
+ /** Format: double */
1418
+ accuracy: number;
1419
+ /** Format: double */
1420
+ latitude: number;
1421
+ /** Format: double */
1422
+ longitude: number;
1423
+ };
1424
+ GeolocationResult: {
1425
+ blacklistedIp: boolean;
1426
+ country?: string | null;
1427
+ /** Format: date-time */
1428
+ createdAt?: string | null;
1429
+ deviceFingerprint?: string | null;
1430
+ /** Format: uuid */
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
+ };
429
1454
  GetApiKeyResponse: {
430
1455
  apiKey: components["schemas"]["ZypheApiKey"];
431
1456
  };
@@ -437,56 +1462,263 @@ interface components {
437
1462
  };
438
1463
  GetFullFlowResponse: {
439
1464
  flow: components["schemas"]["Flow"];
1465
+ flowPartnerOrganizationsNames?: string[] | null;
1466
+ /** Format: uuid */
1467
+ organizationId: string;
440
1468
  organizationName: string;
441
1469
  settings: components["schemas"]["Settings"];
442
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
+ };
1498
+ GetNextStepPayload: {
1499
+ /** @description Email address of the user whose verification progress should be queried. */
1500
+ email: string;
1501
+ };
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. */
1506
+ isCompleted: boolean;
1507
+ nextStep?: Omit<components["schemas"]["FlowStep"], "type"> | null;
1508
+ };
443
1509
  GetVerificationRequestResponse: {
444
1510
  identity: components["schemas"]["Identity"];
1511
+ passkey?: components["schemas"]["VaultUnlockPasskeyData"] | null;
445
1512
  verificationRequest: components["schemas"]["VerificationRequest"];
446
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";
447
1519
  Identity: {
448
1520
  /** Format: date-time */
449
1521
  createdAt?: string | null;
1522
+ /** Format: uuid */
450
1523
  defaultOrganizationId?: string | null;
451
- email: string;
1524
+ email?: string | null;
452
1525
  emailVerified: boolean;
1526
+ /** Format: uuid */
453
1527
  id: string;
454
1528
  isActive: boolean;
455
1529
  role: components["schemas"]["Role"];
1530
+ settings: components["schemas"]["IdentitySettings"];
456
1531
  /** Format: date-time */
457
1532
  updatedAt?: string | null;
458
1533
  zid: string;
459
1534
  };
460
- Image: {
1535
+ IdentitySettings: {
1536
+ lastEnvironmentIsSandbox?: boolean;
1537
+ locale: components["schemas"]["Locale"];
1538
+ };
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"];
461
1556
  /** Format: int32 */
462
- containerType: number;
463
- /** Format: int64 */
464
- lightIndex: number;
465
- /** Format: int64 */
466
- pageIndex: number;
467
- source: string;
468
- value: string;
1557
+ probability?: number | null;
1558
+ result: components["schemas"]["CheckStatus"];
469
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";
470
1577
  InputField: {
471
1578
  label: {
472
1579
  [key: string]: string;
473
1580
  };
474
1581
  name: string;
475
- options: {
1582
+ options: unknown;
1583
+ required: boolean;
1584
+ /** @enum {string} */
1585
+ type: "date";
1586
+ value?: unknown;
1587
+ } | {
1588
+ label: {
1589
+ [key: string]: string;
1590
+ };
1591
+ name: string;
1592
+ options: unknown;
1593
+ required: boolean;
1594
+ /** @enum {string} */
1595
+ type: "text";
1596
+ value?: unknown;
1597
+ } | {
1598
+ label: {
1599
+ [key: string]: string;
1600
+ };
1601
+ name: string;
1602
+ options: unknown;
1603
+ required: boolean;
1604
+ /** @enum {string} */
1605
+ type: "textarea";
1606
+ value?: unknown;
1607
+ } | {
1608
+ label: {
1609
+ [key: string]: string;
1610
+ };
1611
+ name: string;
1612
+ options: unknown;
1613
+ required: boolean;
1614
+ /** @enum {string} */
1615
+ type: "checkbox";
1616
+ value?: unknown;
1617
+ } | {
1618
+ label: {
1619
+ [key: string]: string;
1620
+ };
1621
+ name: string;
1622
+ options: components["schemas"]["FileOptions"];
1623
+ required: boolean;
1624
+ /** @enum {string} */
1625
+ type: "file";
1626
+ value?: unknown;
1627
+ } | {
1628
+ label: {
1629
+ [key: string]: string;
1630
+ };
1631
+ name: string;
1632
+ /** @description Option labels for select fields: maps option value/UUID to localized labels */
1633
+ optionLabels: {
1634
+ [key: string]: {
1635
+ [key: string]: string;
1636
+ };
1637
+ };
1638
+ options: components["schemas"]["SelectOptions"];
1639
+ required: boolean;
1640
+ /** @enum {string} */
1641
+ type: "select";
1642
+ value?: unknown;
1643
+ } | {
1644
+ label: {
476
1645
  [key: string]: string;
477
1646
  };
1647
+ name: string;
1648
+ options: unknown;
478
1649
  required: boolean;
479
- type: components["schemas"]["InputFieldType"];
1650
+ /** @enum {string} */
1651
+ type: "place";
480
1652
  value?: unknown;
481
1653
  };
1654
+ InputFieldOptions: components["schemas"]["FileOptions"] | components["schemas"]["SelectOptions"] | unknown;
482
1655
  /** @enum {string} */
483
- InputFieldType: "date" | "text" | "textarea" | "checkbox";
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
+ };
484
1701
  KybConfig: {
1702
+ articlesOfAssociation?: components["schemas"]["DocumentConfig"] | null;
1703
+ certificateOfIncorporation?: components["schemas"]["DocumentConfig"] | null;
1704
+ /**
1705
+ * @default false
1706
+ * @example false
1707
+ */
1708
+ collectDirectors: boolean;
1709
+ customDocuments?: components["schemas"]["CustomDocumentConfig"][] | null;
1710
+ /** Format: uuid */
485
1711
  kycFlowId: string;
486
1712
  /** @example { "default": "Next step" } */
487
1713
  labels?: {
488
1714
  [key: string]: string;
489
1715
  };
1716
+ /**
1717
+ * Format: int32
1718
+ * @default 10
1719
+ * @example 3
1720
+ */
1721
+ maxDirectors: number;
490
1722
  /**
491
1723
  * Format: int32
492
1724
  * @default 10
@@ -499,14 +1731,76 @@ interface components {
499
1731
  * @example 3
500
1732
  */
501
1733
  maxUbos: number;
1734
+ organizationalStructureChart?: components["schemas"]["DocumentConfig"] | null;
502
1735
  };
503
- KybResult: {
504
- businessInformation?: components["schemas"]["BusinessInformation"] | null;
1736
+ KybDocumentRequest: {
1737
+ /** @description Clarification field keys requested for review (for clarification requests only). */
1738
+ clarificationFields?: string[] | null;
1739
+ clarificationResponse?: components["schemas"]["BusinessInformationClarificationResponse"] | null;
505
1740
  /** Format: date-time */
506
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"];
1783
+ KybResult: {
1784
+ /** Format: date-time */
1785
+ assignedAt?: string | null;
1786
+ /** Format: uuid */
1787
+ assignedToIdentityId?: string | null;
1788
+ businessInformation?: components["schemas"]["BusinessInformation"] | null;
1789
+ businessInformationVerification?: {
1790
+ [key: string]: components["schemas"]["BusinessInfoFieldVerification"];
1791
+ } | null;
1792
+ /** Format: date-time */
1793
+ createdAt?: string | null;
1794
+ directorDefinitions?: components["schemas"]["DirectorDefinition"][] | null;
507
1795
  documentUploads?: components["schemas"]["DocumentUpload"][] | null;
508
1796
  flowStep?: Omit<components["schemas"]["FlowStep"], "type"> | null;
1797
+ /** Format: uuid */
1798
+ flowStepId?: string | null;
1799
+ /** Format: date-time */
1800
+ fundedAt?: string | null;
1801
+ /** Format: uuid */
509
1802
  id: string;
1803
+ nextAction?: components["schemas"]["NextAction"] | null;
510
1804
  pepAndSanctionsStatus: components["schemas"]["PepAndSanctionsStatus"];
511
1805
  reason?: string | null;
512
1806
  report?: string | null;
@@ -514,10 +1808,159 @@ interface components {
514
1808
  uboDefinitions?: components["schemas"]["UboDefinition"][] | null;
515
1809
  /** Format: date-time */
516
1810
  updatedAt?: string | null;
1811
+ /** Format: uuid */
517
1812
  verificationRequestId?: string | null;
518
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
+ };
1895
+ LivenessConfig: {
1896
+ /** @description When `true` the liveness step also performs a biometric match against the stored portrait.
1897
+ * Set to `false` to keep the liveness UX but skip biometric verification. */
1898
+ biometricCheckEnabled?: boolean | null;
1899
+ /** Format: uuid */
1900
+ documentStepId: string;
1901
+ /** @example { "en_button_label": "Next step" } */
1902
+ labels?: {
1903
+ [key: string]: string;
1904
+ };
1905
+ /**
1906
+ * Format: int32
1907
+ * @example 5
1908
+ */
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;
1914
+ thresholds?: {
1915
+ [key: string]: number;
1916
+ } | null;
1917
+ };
1918
+ /** @enum {string} */
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
+ };
1928
+ /**
1929
+ * @description Locale identifier
1930
+ * @enum {string}
1931
+ */
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";
519
1938
  /** @enum {string} */
520
- Locale: "en";
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
+ };
521
1964
  ModerateKybResultPayload: {
522
1965
  pepAndSanctionsStatus?: components["schemas"]["PepAndSanctionsStatusField"] | null;
523
1966
  /** Format: binary */
@@ -528,14 +1971,34 @@ interface components {
528
1971
  success: boolean;
529
1972
  };
530
1973
  /** @enum {string} */
531
- ModerationResultStatus: "ACQUIRING" | "PENDING_MODERATION" | "SUCCESS" | "FAILED";
1974
+ ModerationResultStatus: "ACQUIRING" | "PENDING_MODERATION" | "REVIEW_REQUIRED" | "SUCCESS" | "FAILED";
532
1975
  ModerationResultStatusField: components["schemas"]["ModerationResultStatus"];
1976
+ /** @enum {string} */
1977
+ NextAction: "CLIENT" | "RM" | "COMPLIANCE" | "SUPPORT" | "FUNDED" | "DENIED";
1978
+ /** @description Position of a node in the visual editor. */
1979
+ NodePosition: {
1980
+ /**
1981
+ * Format: double
1982
+ * @description X coordinate
1983
+ */
1984
+ x: number;
1985
+ /**
1986
+ * Format: double
1987
+ * @description Y coordinate
1988
+ */
1989
+ y: number;
1990
+ };
1991
+ NormalizedEmail: {
1992
+ /** @example user@example.com */
1993
+ value: string;
1994
+ };
533
1995
  Organization: {
534
1996
  address: string;
535
1997
  country: string;
536
1998
  /** Format: date-time */
537
1999
  createdAt?: string | null;
538
2000
  email: string;
2001
+ /** Format: uuid */
539
2002
  id: string;
540
2003
  industry?: string | null;
541
2004
  name: string;
@@ -548,6 +2011,42 @@ interface components {
548
2011
  updatedAt?: string | null;
549
2012
  website: string;
550
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
+ };
551
2050
  Pagination: {
552
2051
  /** @example createdAt:in:2025-01-01,2025-01-02;updatedAt:gt:2025-01-02 */
553
2052
  filter?: string;
@@ -576,6 +2075,32 @@ interface components {
576
2075
  placeOfBirth?: string;
577
2076
  surname: string;
578
2077
  };
2078
+ PhoneConfig: {
2079
+ /** @example { "default": "Next step" } */
2080
+ labels?: {
2081
+ [key: string]: string;
2082
+ };
2083
+ };
2084
+ PhoneResult: {
2085
+ /** Format: date-time */
2086
+ createdAt?: string | null;
2087
+ /** Format: uuid */
2088
+ flowResultId: string;
2089
+ flowStep?: Omit<components["schemas"]["FlowStep"], "type"> | null;
2090
+ /** Format: uuid */
2091
+ flowStepId?: string | null;
2092
+ /** Format: uuid */
2093
+ id: string;
2094
+ phoneNumberLast4: string;
2095
+ status: components["schemas"]["ResultStatus"];
2096
+ /** Format: date-time */
2097
+ updatedAt?: string | null;
2098
+ /** Format: uuid */
2099
+ verificationRequestId?: string | null;
2100
+ };
2101
+ PhoneStepOutput: {
2102
+ status: components["schemas"]["ResultStatus"];
2103
+ };
579
2104
  Plaintext: {
580
2105
  text: {
581
2106
  [key: string]: string;
@@ -594,168 +2119,1723 @@ interface components {
594
2119
  maxAgeDays?: number;
595
2120
  };
596
2121
  /** @enum {string} */
597
- PoaDocumentType: "PAY_SLIP" | "UTILITY_BILL" | "FINANCIAL_DOCUMENT" | "RECEIPT" | "INVOICE" | "BANK_DOCUMENT";
2122
+ PoaDocumentType: "PAY_SLIP" | "UTILITY_BILL" | "FINANCIAL_DOCUMENT" | "RECEIPT" | "INVOICE" | "BANK_DOCUMENT" | "TAX_CLEARANCE_CERTIFICATE" | "HOUSEHOLD_REGISTER" | "CERTIFICATE_OF_RESIDENCE" | "OTHER";
598
2123
  /** @enum {string} */
599
- PoaReason: "UNKNOWN" | "DOCUMENT_TYPE_NOT_ALLOWED" | "NAME_MISMATCH" | "DATE_TOO_OLD" | "INVALID_DOCUMENT";
2124
+ PoaReason: "UNKNOWN" | "DOCUMENT_TYPE_NOT_ALLOWED" | "NAME_MISMATCH" | "DATE_TOO_OLD" | "INVALID_DOCUMENT" | "UNRECOGNIZED_ADDRESS";
600
2125
  PoaResult: {
601
2126
  /** Format: date-time */
602
2127
  checkedAt?: string | null;
603
2128
  /** Format: date-time */
604
2129
  createdAt: string;
2130
+ /** Format: uuid */
605
2131
  documentId?: string | null;
606
2132
  documentType?: components["schemas"]["PoaDocumentType"] | null;
607
2133
  flowStep?: Omit<components["schemas"]["FlowStep"], "type"> | null;
2134
+ /** Format: uuid */
2135
+ flowStepId?: string | null;
2136
+ /** Format: uuid */
608
2137
  id: string;
609
2138
  reason?: components["schemas"]["PoaReason"] | null;
610
2139
  status: components["schemas"]["ResultStatus"];
611
2140
  /** Format: date-time */
612
2141
  updatedAt: string;
2142
+ /** Format: uuid */
2143
+ verificationRequestId?: string | null;
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
+ };
2199
+ ProcessAddressDocumentRequest: {
2200
+ /** Format: binary */
2201
+ file: Blob;
2202
+ };
2203
+ ProcessAddressDocumentResponse: {
2204
+ jobId: string;
2205
+ /** Format: uuid */
2206
+ verificationRequestId: string;
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
+ };
2250
+ ProcessImagesOverrides: {
2251
+ authParams?: {
2252
+ [key: string]: unknown;
2253
+ } | null;
2254
+ checkAuth?: boolean | null;
2255
+ scenario?: string | null;
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
+ };
2268
+ /** @enum {string} */
2269
+ ProductType: "UNKNOWN" | "DOCSCAN" | "LIVENESS" | "POA" | "KYB" | "KYC_PASSPORT" | "SPID" | "PHONE" | "WALLET" | "EXPORT_API" | "EXPORT_UI" | "BUSINESS_VERIFICATION" | "FLOW_BUILDER" | "GEOLOCATION" | "FORM";
2270
+ /** @enum {string} */
2271
+ RequiredDocumentField: "firstName" | "middleName" | "lastName" | "dateOfBirth" | "phone" | "email" | "street" | "city" | "state" | "postcode" | "country" | "socialSecurityNumber";
2272
+ ResultControlOperation: {
2273
+ /** Format: uuid */
2274
+ identityId: string;
2275
+ operation: components["schemas"]["ResultControlOperationType"];
2276
+ /** Format: date-time */
2277
+ timestamp: string;
2278
+ zid: string;
2279
+ };
2280
+ ResultControlOperationType: {
2281
+ approve: {
2282
+ reason?: string | null;
2283
+ };
2284
+ } | {
2285
+ reject: {
2286
+ reason?: string | null;
2287
+ };
2288
+ } | {
2289
+ escalate: {
2290
+ reason?: string | null;
2291
+ };
2292
+ };
2293
+ /** @enum {string} */
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
+ };
2300
+ /** @enum {string} */
2301
+ RiskLevel: "low" | "medium" | "high" | "critical";
2302
+ RiskScore: {
2303
+ riskLevel: components["schemas"]["RiskLevel"];
2304
+ /** Format: int32 */
2305
+ riskScorePercent: number;
2306
+ sourcesCount: number;
2307
+ };
2308
+ /** @enum {string} */
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
+ };
2333
+ SdkCreateVerificationRequestPayload: {
2334
+ /** @description Arbitrary key-value metadata to attach to this verification request. */
2335
+ customData?: {
2336
+ [key: string]: unknown;
2337
+ } | null;
2338
+ /** @description Email address of the user being verified. */
2339
+ email: string;
2340
+ /**
2341
+ * Format: uuid
2342
+ * @description The ID of the flow step to start or resume for this user.
2343
+ */
2344
+ flowStepId: string;
2345
+ };
2346
+ SdkCreateVerificationRequestResponse: {
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. */
2350
+ flowSlug: string;
2351
+ /** @description Slug of the current flow step (the first incomplete step). */
2352
+ flowStepSlug: string;
2353
+ /** @description Whether this verification request was created in sandbox mode. */
2354
+ isSandbox: boolean;
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. */
2361
+ zypheToken: string;
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";
2368
+ SelectOptions: {
2369
+ isOtherAllowed: boolean;
2370
+ values: string[];
2371
+ };
2372
+ Settings: {
2373
+ /** Format: date-time */
2374
+ createdAt?: string | null;
2375
+ delayFlowResults?: boolean | null;
2376
+ emailNotifications?: string[] | null;
2377
+ extendedWebhook?: boolean | null;
2378
+ primaryColor?: string | null;
2379
+ profileImage?: string | null;
2380
+ published?: boolean;
2381
+ secondaryColor?: string | null;
2382
+ skipSignedAccess?: boolean;
2383
+ slackNotifications?: string[] | null;
2384
+ telegramNotifications?: string[] | null;
2385
+ /** Format: date-time */
2386
+ updatedAt?: string | null;
2387
+ webhookSecret?: string | null;
2388
+ webhookWithLegacy?: boolean | null;
2389
+ };
2390
+ /** @enum {string} */
2391
+ SiwxChain: "ETHEREUM" | "ETHEREUM_TESTNET" | "SOLANA" | "SOLANA_TESTNET";
2392
+ SpidConfig: {
2393
+ /** @example { "default": "Next step" } */
2394
+ labels?: {
2395
+ [key: string]: string;
2396
+ };
2397
+ };
2398
+ /** @enum {string} */
2399
+ SpidDocumentType: "ITALIAN_SPID" | "AADHAAR";
2400
+ SpidResult: {
2401
+ /** Format: date-time */
2402
+ createdAt?: string | null;
2403
+ flowStep?: Omit<components["schemas"]["FlowStep"], "type"> | null;
2404
+ /** Format: uuid */
2405
+ flowStepId?: string | null;
2406
+ /** Format: uuid */
2407
+ id: string;
2408
+ path: string;
2409
+ reason?: string | null;
2410
+ status: components["schemas"]["ResultStatus"];
2411
+ /** Format: date-time */
2412
+ updatedAt?: string | null;
2413
+ /** Format: uuid */
613
2414
  verificationRequestId?: string | null;
614
2415
  };
615
- ProcessAddressDocumentRequest: {
616
- /** Format: binary */
617
- file: Blob;
2416
+ SpidResultDetails: {
2417
+ address?: string | null;
2418
+ companyName?: string | null;
2419
+ companyVatNumber?: string | null;
2420
+ countryOfBirth?: string | null;
2421
+ dateOfBirth?: string | null;
2422
+ digitalAddress?: string | null;
2423
+ email?: string | null;
2424
+ firstName?: string | null;
2425
+ fiscalNumber?: string | null;
2426
+ fullName?: string | null;
2427
+ gender?: string | null;
2428
+ id?: string | null;
2429
+ lastName?: string | null;
2430
+ mobilePhone?: string | null;
2431
+ placeOfBirth?: string | null;
2432
+ registeredOffice?: string | null;
2433
+ spidCode?: string | null;
2434
+ username?: string | null;
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
+ };
2445
+ StartPhoneVerificationRequest: {
2446
+ phoneNumberE164: string;
2447
+ };
2448
+ StartPhoneVerificationResponse: {
2449
+ /** Format: uuid */
2450
+ verificationRequestId: string;
2451
+ };
2452
+ StartWalletVerificationRequest: {
2453
+ address: string;
2454
+ chain: components["schemas"]["SiwxChain"];
2455
+ };
2456
+ StartWalletVerificationResponse: {
2457
+ message: string;
2458
+ /** Format: uuid */
2459
+ verificationRequestId: string;
2460
+ };
2461
+ UboDefinition: {
2462
+ country: string;
2463
+ dateOfBirth: string;
2464
+ emailAddress: string;
2465
+ firstName: string;
2466
+ gender: string;
2467
+ lastName: string;
2468
+ };
2469
+ /**
2470
+ * Format: uuid
2471
+ * @description A UUID string
2472
+ */
2473
+ Uuid: string;
2474
+ /** @enum {string} */
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";
2476
+ VaultUnlockPasskeyData: {
2477
+ /** @description Passkey challenge for vault unlock (base64url) */
2478
+ challenge: string;
2479
+ /** @description Credential ID for vault unlock (base64url-encoded) */
2480
+ credentialId: string;
2481
+ /** @description Passkey authentication options for vault unlock */
2482
+ options: Record<string, never>;
2483
+ /** @description PRF salt for vault unlock (base64url) */
2484
+ prfSalt: string;
2485
+ };
2486
+ VerificationRequest: {
2487
+ amlResult?: components["schemas"]["AmlResult"] | null;
2488
+ /** Format: int32 */
2489
+ attemptsCount: number;
2490
+ /** Format: date-time */
2491
+ createdAt?: string | null;
2492
+ customData: {
2493
+ [key: string]: unknown;
2494
+ };
2495
+ dvResult?: components["schemas"]["DvResult"] | null;
2496
+ /** Format: uuid */
2497
+ flowId: string;
2498
+ flowStep?: Omit<components["schemas"]["FlowStep"], "type"> | null;
2499
+ /** Format: uuid */
2500
+ flowStepId: string;
2501
+ formResult?: components["schemas"]["FormResult"] | null;
2502
+ geolocationResult?: components["schemas"]["GeolocationResult"] | null;
2503
+ /** Format: uuid */
2504
+ id: string;
2505
+ identity?: components["schemas"]["Identity"] | null;
2506
+ /** Format: uuid */
2507
+ identityId: string;
2508
+ kybResult?: components["schemas"]["KybResult"] | null;
2509
+ /** Format: uuid */
2510
+ organizationId: string;
2511
+ phoneResult?: components["schemas"]["PhoneResult"] | null;
2512
+ poaResult?: components["schemas"]["PoaResult"] | null;
2513
+ reason?: string | null;
2514
+ replayerZid?: string | null;
2515
+ spidResult?: components["schemas"]["SpidResult"] | null;
2516
+ status: components["schemas"]["VerificationRequestStatus"];
2517
+ /** Format: date-time */
2518
+ updatedAt?: string | null;
2519
+ walletResult?: components["schemas"]["WalletResult"] | null;
2520
+ };
2521
+ /** @enum {string} */
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
+ };
2538
+ VerifyPhoneCodeRequest: {
2539
+ code: string;
2540
+ phoneNumberE164: string;
2541
+ };
2542
+ VerifyPhoneCodeResponse: {
2543
+ /** Format: uuid */
2544
+ verificationRequestId: string;
2545
+ };
2546
+ VerifyWalletSignatureRequest: {
2547
+ address: string;
2548
+ chain: components["schemas"]["SiwxChain"];
2549
+ signature: string;
2550
+ };
2551
+ VerifyWalletSignatureResponse: {
2552
+ /** Format: uuid */
2553
+ verificationRequestId: string;
2554
+ };
2555
+ WalletConfig: {
2556
+ chains: components["schemas"]["SiwxChain"][];
2557
+ /** @example { "default": "Next step" } */
2558
+ labels?: {
2559
+ [key: string]: string;
2560
+ };
2561
+ };
2562
+ WalletResult: {
2563
+ /** Format: date-time */
2564
+ createdAt?: string | null;
2565
+ /** Format: uuid */
2566
+ flowResultId: string;
2567
+ flowStep?: Omit<components["schemas"]["FlowStep"], "type"> | null;
2568
+ /** Format: uuid */
2569
+ flowStepId?: string | null;
2570
+ /** Format: uuid */
2571
+ id: string;
2572
+ message: string;
2573
+ reason?: string | null;
2574
+ signature: string;
2575
+ status: components["schemas"]["ResultStatus"];
2576
+ /** Format: date-time */
2577
+ updatedAt?: string | null;
2578
+ /** Format: uuid */
2579
+ verificationRequestId?: string | null;
2580
+ walletAddress: string;
2581
+ walletChain: string;
2582
+ };
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: {
2606
+ [key: string]: unknown;
2607
+ };
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 */
2780
+ organizationId: string;
2781
+ /** Format: date-time */
2782
+ updatedAt?: string | null;
2783
+ };
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
+ };
618
3508
  };
619
- ProcessAddressDocumentResponse: {
620
- jobId: string;
621
- verificationRequestId: string;
622
- websocketNamespace: string;
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;
623
3540
  };
624
- /** @enum {string} */
625
- ProductType: "UNKNOWN" | "KYC" | "KYB" | "PRODUCTION_MODE" | "SPID" | "EXPORT_API" | "EXPORT_UI";
626
- /** @enum {string} */
627
- ResultStatus: "PASSED" | "FAILED";
628
- /** @enum {string} */
629
- Role: "GUEST" | "USER" | "ADMIN";
630
- SdkCreateVerificationRequestPayload: {
631
- customData?: {
632
- [key: string]: unknown;
633
- } | null;
634
- email: string;
635
- flowStepId: string;
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
+ };
636
3567
  };
637
- SdkCreateVerificationRequestResponse: {
638
- email: string;
639
- flowSlug: string;
640
- flowStepSlug: string;
641
- isSandbox: boolean;
642
- verificationRequest: components["schemas"]["VerificationRequest"];
643
- websocketNamespace: string;
644
- zypheToken: string;
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;
645
3599
  };
646
- Settings: {
647
- /** Format: date-time */
648
- createdAt?: string | null;
649
- extendedWebhook?: boolean | null;
650
- primaryColor?: string | null;
651
- profileImage?: string | null;
652
- secondaryColor?: string | null;
653
- /** Format: date-time */
654
- updatedAt?: string | null;
655
- webhookSecret?: string | null;
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
+ };
656
3626
  };
657
- SpidConfig: {
658
- /** @example { "default": "Next step" } */
659
- labels?: {
660
- [key: string]: string;
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;
661
3646
  };
3647
+ cookie?: never;
662
3648
  };
663
- SpidResult: {
664
- /** Format: date-time */
665
- createdAt?: string | null;
666
- flowStep?: Omit<components["schemas"]["FlowStep"], "type"> | null;
667
- id: string;
668
- path: string;
669
- reason?: string | null;
670
- status: components["schemas"]["ResultStatus"];
671
- /** Format: date-time */
672
- updatedAt?: string | null;
673
- verificationRequestId?: string | null;
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
+ };
674
3691
  };
675
- SpidResultDetails: {
676
- address?: string | null;
677
- companyName?: string | null;
678
- companyVatNumber?: string | null;
679
- countryOfBirth?: string | null;
680
- dateOfBirth?: string | null;
681
- digitalAddress?: string | null;
682
- email?: string | null;
683
- firstName?: string | null;
684
- fiscalNumber?: string | null;
685
- fullName?: string | null;
686
- gender?: string | null;
687
- id?: string | null;
688
- lastName?: string | null;
689
- mobilePhone?: string | null;
690
- placeOfBirth?: string | null;
691
- registeredOffice?: string | null;
692
- spidCode?: string | null;
693
- username?: string | null;
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;
694
3718
  };
695
- UboDefinition: {
696
- country: string;
697
- dateOfBirth: string;
698
- emailAddress: string;
699
- firstName: string;
700
- gender: string;
701
- lastName: string;
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
+ };
702
3745
  };
703
- /** @enum {string} */
704
- 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";
705
- VerificationRequest: {
706
- amlResult?: components["schemas"]["AmlResult"] | null;
707
- /** Format: int32 */
708
- attemptsCount: number;
709
- /** Format: date-time */
710
- createdAt?: string | null;
711
- customData: {
712
- [key: string]: unknown;
3746
+ };
3747
+ get_sdk_poa_result_details_deprecated: {
3748
+ parameters: {
3749
+ query: {
3750
+ sandbox: boolean;
3751
+ locale?: components["schemas"]["Locale"];
713
3752
  };
714
- dvResult?: components["schemas"]["DvResult"] | null;
715
- flowId: string;
716
- flowStepId: string;
717
- formResult?: components["schemas"]["FormResult"] | null;
718
- id: string;
719
- identity?: components["schemas"]["Identity"] | null;
720
- identityId: string;
721
- kybResult?: components["schemas"]["KybResult"] | null;
722
- organizationId: string;
723
- poaResult?: components["schemas"]["PoaResult"] | null;
724
- reason?: string | null;
725
- spidResult?: components["schemas"]["SpidResult"] | null;
726
- status: components["schemas"]["VerificationRequestStatus"];
727
- /** Format: date-time */
728
- updatedAt?: string | null;
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;
729
3772
  };
730
- /** @enum {string} */
731
- VerificationRequestStatus: "PENDING" | "COMPLETED" | "FAILED" | "CANCELLED" | "QUEUED" | "PROCESSING";
732
- ZypheApiKey: {
733
- allowedOrigins: string[];
734
- /** Format: date-time */
735
- createdAt?: string | null;
736
- description?: string | null;
737
- id: string;
738
- key: string;
739
- keyType: string;
740
- name?: string | null;
741
- options: {
742
- [key: string]: unknown;
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
+ };
743
3798
  };
744
- organization?: components["schemas"]["Organization"] | null;
745
- organizationId: string;
746
- /** Format: date-time */
747
- updatedAt?: string | null;
748
3799
  };
749
3800
  };
750
- responses: never;
751
- parameters: never;
752
- requestBodies: never;
753
- headers: never;
754
- pathItems: never;
755
3801
  }
756
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
+
757
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"];
758
3836
  type ApiKeyType = components["schemas"]["ApiKeyType"];
3837
+ type FlowStepType = components["schemas"]["FlowStepType"];
3838
+ type BaxeError = components["schemas"]["BaxeError"];
759
3839
  /**
760
3840
  * Parameters for initializing the Zyphe iframe for a Flow.
761
3841
  * These will remain constant for each user that visits the Flow URL.
@@ -797,6 +3877,15 @@ interface InitializeZypheFlowParams {
797
3877
  */
798
3878
  customData?: Record<string, string>;
799
3879
  }
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
+ }
800
3889
  interface SDKOptions {
801
3890
  apiKey: string;
802
3891
  /**
@@ -812,7 +3901,8 @@ interface SDKOptions {
812
3901
  * If set, the QR code displayed on desktop devices of a Document Verification flow will direct to this URL.
813
3902
  * If not set, the QR code will direct to the corresponding zyphe.com URL, depending upon your configured environment.
814
3903
  *
815
- * The URL will include the query parameters `zypheVr` and `zypheToken`.
3904
+ * The URL will include the query parameters `zypheVr`, `zypheToken`, and
3905
+ * `zypheAccessSig`.
816
3906
  *
817
3907
  * @default "https://app-dev.zyphe.com" || "https://verify.zyphe.com"
818
3908
  * @example "http://example.com"
@@ -839,7 +3929,21 @@ interface SDKOptions {
839
3929
  */
840
3930
  isFullscreen?: boolean;
841
3931
  }
842
-
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
+ }
843
3947
  interface CreateVerificationSessionParams {
844
3948
  email: string;
845
3949
  flowId: string;
@@ -847,79 +3951,38 @@ interface CreateVerificationSessionParams {
847
3951
  isSandbox: boolean;
848
3952
  customData?: Record<string, string>;
849
3953
  }
850
- declare function createVerificationSession({ email, flowId, flowStepId, isSandbox, customData, }: CreateVerificationSessionParams, opts: SDKOptions): Promise<openapi_fetch.FetchResponse<{
851
- parameters: {
852
- query?: {
853
- sandbox?: boolean | null;
854
- };
855
- header?: never;
856
- path: {
857
- flow_id: string;
858
- };
859
- cookie?: never;
860
- };
861
- requestBody: {
862
- content: {
863
- "application/json": components["schemas"]["SdkCreateVerificationRequestPayload"];
864
- };
865
- };
866
- responses: {
867
- 200: {
868
- headers: {
869
- [name: string]: unknown;
870
- };
871
- content: {
872
- "application/json": components["schemas"]["SdkCreateVerificationRequestResponse"];
873
- };
874
- };
875
- 400: {
876
- headers: {
877
- [name: string]: unknown;
878
- };
879
- content: {
880
- "application/json": components["schemas"]["BaxeError"];
881
- };
882
- };
883
- 409: {
884
- headers: {
885
- [name: string]: unknown;
886
- };
887
- content: {
888
- "application/json": components["schemas"]["BaxeError"];
889
- };
890
- };
891
- 500: {
892
- headers: {
893
- [name: string]: unknown;
894
- };
895
- content: {
896
- "application/json": components["schemas"]["BaxeError"];
897
- };
898
- };
899
- };
900
- }, {
901
- body: {
902
- email: string;
903
- flowStepId: string;
904
- customData: Record<string, string> | undefined;
905
- };
906
- headers: {
907
- "x-api-key": string;
908
- };
909
- params: {
910
- path: {
911
- flow_id: string;
912
- };
913
- query: {
914
- sandbox: boolean;
915
- };
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;
916
3971
  };
917
- }, `${string}/${string}`>>;
918
- declare function constructVerificationSessionUrl({ flowParams, verificationSession, opts, }: {
919
- flowParams: InitializeZypheFlowParams;
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 {
920
3982
  verificationSession: SdkCreateVerificationRequestResponse;
921
- opts: SDKOptions;
922
- }): string;
3983
+ payload: ProcessDocumentSelectionRequestPayload;
3984
+ }
3985
+ declare function completeDocumentSelectionStep({ verificationSession, payload }: CompleteDocumentSelectionStepParams, options: SDKOptions): Promise<ProcessDocumentSelectionResponse>;
923
3986
 
924
3987
  declare enum ImageProvenance {
925
3988
  UNSPECIFIED_IMAGE_PROVENANCE = 0,
@@ -928,11 +3991,17 @@ declare enum ImageProvenance {
928
3991
  SIGNATURE_IMAGE = 3,
929
3992
  PORTRAIT_IMAGE = 5,
930
3993
  CITIZENSHIP_IMAGE = 6,
3994
+ SELFIE_IMAGE = 7,
931
3995
  UNRECOGNIZED = -1
932
3996
  }
933
3997
  declare enum ResultStatus {
934
3998
  FAILED = 0,
935
3999
  PASSED = 1,
4000
+ PARTIAL = 2,
4001
+ REQUIRES_MANUAL_REVIEW = 3,
4002
+ REQUIRES_ADMIN_REVIEW = 4,
4003
+ MANUALLY_APPROVED = 5,
4004
+ MANUALLY_REJECTED = 6,
936
4005
  UNRECOGNIZED = -1
937
4006
  }
938
4007
  interface PersonalData {
@@ -972,6 +4041,10 @@ interface Image {
972
4041
  provenance: ImageProvenance;
973
4042
  }
974
4043
  declare const Image: MessageFns<Image>;
4044
+ interface Video {
4045
+ url: string;
4046
+ }
4047
+ declare const Video: MessageFns<Video>;
975
4048
  interface Document {
976
4049
  personalData: PersonalData | undefined;
977
4050
  documentData: DocumentData | undefined;
@@ -980,8 +4053,9 @@ interface Document {
980
4053
  declare const Document: MessageFns<Document>;
981
4054
  interface Details {
982
4055
  status: ResultStatus;
983
- requestLog: string;
984
- responseLog: string;
4056
+ docreaderRequestLog: string;
4057
+ docreaderResponseLog: string;
4058
+ faceapiResponseLog: string;
985
4059
  }
986
4060
  declare const Details: MessageFns<Details>;
987
4061
  interface Message {
@@ -990,6 +4064,7 @@ interface Message {
990
4064
  backImage?: Image | undefined;
991
4065
  otherImage?: Image | undefined;
992
4066
  details?: Details | undefined;
4067
+ liveness?: Video | undefined;
993
4068
  }
994
4069
  declare const Message: MessageFns<Message>;
995
4070
  type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
@@ -1020,11 +4095,91 @@ interface GetFlowResultParams {
1020
4095
  flowResultId: string;
1021
4096
  isSandbox: boolean;
1022
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}`>>;
1023
4175
  declare function getFlowResult({ organizationId, flowResultId, isSandbox }: GetFlowResultParams, opts: SDKOptions): Promise<{
1024
4176
  data: {
1025
4177
  dvResults: {
4178
+ adminComment?: string | null;
4179
+ authenticityChecks: number[][];
1026
4180
  browser?: string | null;
1027
4181
  class?: string | null;
4182
+ countryCode?: string | null;
1028
4183
  createdAt?: string | null;
1029
4184
  data: {
1030
4185
  [key: string]: unknown;
@@ -1032,15 +4187,18 @@ declare function getFlowResult({ organizationId, flowResultId, isSandbox }: GetF
1032
4187
  documentId?: string | null;
1033
4188
  documentScorePercent?: number | null;
1034
4189
  documentType?: number | null;
1035
- firstName?: string | null;
1036
4190
  flowStep?: Omit<components["schemas"]["FlowStep"], "type"> | null;
4191
+ flowStepId?: string | null;
1037
4192
  id: string;
1038
- lastName?: string | null;
4193
+ manualReviewAt?: string | null;
4194
+ manualReviewNote?: string | null;
4195
+ manualReviewerId?: string | null;
4196
+ manualReviewerZid?: string | null;
4197
+ originalVrHistoryId?: string | null;
1039
4198
  platform?: string | null;
1040
4199
  portraitMatchPercent?: number | null;
1041
- processAdditionalData: {
1042
- [key: string]: unknown;
1043
- };
4200
+ processAdditionalData: components["schemas"]["ProcessAdditionalData"];
4201
+ provinceCode?: string | null;
1044
4202
  reasons: components["schemas"]["DvReason"][];
1045
4203
  status: components["schemas"]["ResultStatus"];
1046
4204
  updatedAt?: string | null;
@@ -1063,6 +4221,7 @@ declare function getFlowResult({ organizationId, flowResultId, isSandbox }: GetF
1063
4221
  documentId?: string | null;
1064
4222
  documentType?: components["schemas"]["PoaDocumentType"] | null;
1065
4223
  flowStep?: Omit<components["schemas"]["FlowStep"], "type"> | null;
4224
+ flowStepId?: string | null;
1066
4225
  id: string;
1067
4226
  reason?: components["schemas"]["PoaReason"] | null;
1068
4227
  status: components["schemas"]["ResultStatus"];
@@ -1072,7 +4231,7 @@ declare function getFlowResult({ organizationId, flowResultId, isSandbox }: GetF
1072
4231
  createdAt?: string | null;
1073
4232
  customData?: {
1074
4233
  [key: string]: unknown;
1075
- } | undefined;
4234
+ } | null | undefined;
1076
4235
  flow?: components["schemas"]["Flow"] | null;
1077
4236
  flowSlug?: string | undefined;
1078
4237
  formResults?: {
@@ -1081,6 +4240,7 @@ declare function getFlowResult({ organizationId, flowResultId, isSandbox }: GetF
1081
4240
  flowStep?: Omit<components["schemas"]["FlowStep"], "type"> | null;
1082
4241
  flowStepId?: string | null;
1083
4242
  form?: components["schemas"]["Form"] | null;
4243
+ formId?: string | null;
1084
4244
  id: string;
1085
4245
  reason?: components["schemas"]["FormReason"] | null;
1086
4246
  sections: components["schemas"]["FormSection"][];
@@ -1088,14 +4248,63 @@ declare function getFlowResult({ organizationId, flowResultId, isSandbox }: GetF
1088
4248
  updatedAt?: string | null;
1089
4249
  verificationRequestId?: string | null;
1090
4250
  }[] | undefined;
4251
+ geolocationResults?: components["schemas"]["GeolocationResult"][];
1091
4252
  id?: string | undefined;
1092
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;
1093
4293
  kybResults?: {
4294
+ assignedAt?: string | null;
4295
+ assignedToIdentityId?: string | null;
1094
4296
  businessInformation?: components["schemas"]["BusinessInformation"] | null;
4297
+ businessInformationVerification?: {
4298
+ [key: string]: components["schemas"]["BusinessInfoFieldVerification"];
4299
+ } | null;
1095
4300
  createdAt?: string | null;
4301
+ directorDefinitions?: components["schemas"]["DirectorDefinition"][] | null;
1096
4302
  documentUploads?: components["schemas"]["DocumentUpload"][] | null;
1097
4303
  flowStep?: Omit<components["schemas"]["FlowStep"], "type"> | null;
4304
+ flowStepId?: string | null;
4305
+ fundedAt?: string | null;
1098
4306
  id: string;
4307
+ nextAction?: components["schemas"]["NextAction"] | null;
1099
4308
  pepAndSanctionsStatus: components["schemas"]["PepAndSanctionsStatus"];
1100
4309
  reason?: string | null;
1101
4310
  report?: string | null;
@@ -1106,9 +4315,22 @@ declare function getFlowResult({ organizationId, flowResultId, isSandbox }: GetF
1106
4315
  }[] | undefined;
1107
4316
  organization?: components["schemas"]["Organization"] | null;
1108
4317
  organizationId?: string | undefined;
4318
+ phoneResults?: {
4319
+ createdAt?: string | null;
4320
+ flowResultId: string;
4321
+ flowStep?: Omit<components["schemas"]["FlowStep"], "type"> | null;
4322
+ flowStepId?: string | null;
4323
+ id: string;
4324
+ phoneNumberLast4: string;
4325
+ status: components["schemas"]["ResultStatus"];
4326
+ updatedAt?: string | null;
4327
+ verificationRequestId?: string | null;
4328
+ }[] | undefined;
4329
+ reviewSuggestion?: components["schemas"]["ReviewSuggestion"] | null;
1109
4330
  spidResults?: {
1110
4331
  createdAt?: string | null;
1111
4332
  flowStep?: Omit<components["schemas"]["FlowStep"], "type"> | null;
4333
+ flowStepId?: string | null;
1112
4334
  id: string;
1113
4335
  path: string;
1114
4336
  reason?: string | null;
@@ -1116,15 +4338,34 @@ declare function getFlowResult({ organizationId, flowResultId, isSandbox }: GetF
1116
4338
  updatedAt?: string | null;
1117
4339
  verificationRequestId?: string | null;
1118
4340
  }[] | undefined;
4341
+ status?: "FAILED" | "REQUIRES_MANUAL_REVIEW" | "REQUIRES_ADMIN_REVIEW" | "PENDING" | "COMPLETED" | "CANCELLED" | "QUEUED" | "PROCESSING" | "REJECTED" | undefined;
1119
4342
  updatedAt?: string | null;
4343
+ walletResults?: {
4344
+ createdAt?: string | null;
4345
+ flowResultId: string;
4346
+ flowStep?: Omit<components["schemas"]["FlowStep"], "type"> | null;
4347
+ flowStepId?: string | null;
4348
+ id: string;
4349
+ message: string;
4350
+ reason?: string | null;
4351
+ signature: string;
4352
+ status: components["schemas"]["ResultStatus"];
4353
+ updatedAt?: string | null;
4354
+ verificationRequestId?: string | null;
4355
+ walletAddress: string;
4356
+ walletChain: string;
4357
+ }[] | undefined;
1120
4358
  };
1121
4359
  error?: never;
1122
4360
  response: Response;
1123
4361
  } | {
1124
4362
  data: {
1125
4363
  dvResults: {
4364
+ adminComment?: string | null;
4365
+ authenticityChecks: number[][];
1126
4366
  browser?: string | null;
1127
4367
  class?: string | null;
4368
+ countryCode?: string | null;
1128
4369
  createdAt?: string | null;
1129
4370
  data: {
1130
4371
  [key: string]: unknown;
@@ -1132,15 +4373,18 @@ declare function getFlowResult({ organizationId, flowResultId, isSandbox }: GetF
1132
4373
  documentId?: string | null;
1133
4374
  documentScorePercent?: number | null;
1134
4375
  documentType?: number | null;
1135
- firstName?: string | null;
1136
4376
  flowStep?: Omit<components["schemas"]["FlowStep"], "type"> | null;
4377
+ flowStepId?: string | null;
1137
4378
  id: string;
1138
- lastName?: string | null;
4379
+ manualReviewAt?: string | null;
4380
+ manualReviewNote?: string | null;
4381
+ manualReviewerId?: string | null;
4382
+ manualReviewerZid?: string | null;
4383
+ originalVrHistoryId?: string | null;
1139
4384
  platform?: string | null;
1140
4385
  portraitMatchPercent?: number | null;
1141
- processAdditionalData: {
1142
- [key: string]: unknown;
1143
- };
4386
+ processAdditionalData: components["schemas"]["ProcessAdditionalData"];
4387
+ provinceCode?: string | null;
1144
4388
  reasons: components["schemas"]["DvReason"][];
1145
4389
  status: components["schemas"]["ResultStatus"];
1146
4390
  updatedAt?: string | null;
@@ -1163,6 +4407,7 @@ declare function getFlowResult({ organizationId, flowResultId, isSandbox }: GetF
1163
4407
  documentId?: string | null;
1164
4408
  documentType?: components["schemas"]["PoaDocumentType"] | null;
1165
4409
  flowStep?: Omit<components["schemas"]["FlowStep"], "type"> | null;
4410
+ flowStepId?: string | null;
1166
4411
  id: string;
1167
4412
  reason?: components["schemas"]["PoaReason"] | null;
1168
4413
  status: components["schemas"]["ResultStatus"];
@@ -1172,7 +4417,7 @@ declare function getFlowResult({ organizationId, flowResultId, isSandbox }: GetF
1172
4417
  createdAt?: string | null;
1173
4418
  customData?: {
1174
4419
  [key: string]: unknown;
1175
- } | undefined;
4420
+ } | null | undefined;
1176
4421
  flow?: components["schemas"]["Flow"] | null;
1177
4422
  flowSlug?: string | undefined;
1178
4423
  formResults?: {
@@ -1181,6 +4426,7 @@ declare function getFlowResult({ organizationId, flowResultId, isSandbox }: GetF
1181
4426
  flowStep?: Omit<components["schemas"]["FlowStep"], "type"> | null;
1182
4427
  flowStepId?: string | null;
1183
4428
  form?: components["schemas"]["Form"] | null;
4429
+ formId?: string | null;
1184
4430
  id: string;
1185
4431
  reason?: components["schemas"]["FormReason"] | null;
1186
4432
  sections: components["schemas"]["FormSection"][];
@@ -1188,14 +4434,63 @@ declare function getFlowResult({ organizationId, flowResultId, isSandbox }: GetF
1188
4434
  updatedAt?: string | null;
1189
4435
  verificationRequestId?: string | null;
1190
4436
  }[] | undefined;
4437
+ geolocationResults?: components["schemas"]["GeolocationResult"][];
1191
4438
  id?: string | undefined;
1192
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;
1193
4479
  kybResults?: {
4480
+ assignedAt?: string | null;
4481
+ assignedToIdentityId?: string | null;
1194
4482
  businessInformation?: components["schemas"]["BusinessInformation"] | null;
4483
+ businessInformationVerification?: {
4484
+ [key: string]: components["schemas"]["BusinessInfoFieldVerification"];
4485
+ } | null;
1195
4486
  createdAt?: string | null;
4487
+ directorDefinitions?: components["schemas"]["DirectorDefinition"][] | null;
1196
4488
  documentUploads?: components["schemas"]["DocumentUpload"][] | null;
1197
4489
  flowStep?: Omit<components["schemas"]["FlowStep"], "type"> | null;
4490
+ flowStepId?: string | null;
4491
+ fundedAt?: string | null;
1198
4492
  id: string;
4493
+ nextAction?: components["schemas"]["NextAction"] | null;
1199
4494
  pepAndSanctionsStatus: components["schemas"]["PepAndSanctionsStatus"];
1200
4495
  reason?: string | null;
1201
4496
  report?: string | null;
@@ -1206,9 +4501,22 @@ declare function getFlowResult({ organizationId, flowResultId, isSandbox }: GetF
1206
4501
  }[] | undefined;
1207
4502
  organization?: components["schemas"]["Organization"] | null;
1208
4503
  organizationId?: string | undefined;
4504
+ phoneResults?: {
4505
+ createdAt?: string | null;
4506
+ flowResultId: string;
4507
+ flowStep?: Omit<components["schemas"]["FlowStep"], "type"> | null;
4508
+ flowStepId?: string | null;
4509
+ id: string;
4510
+ phoneNumberLast4: string;
4511
+ status: components["schemas"]["ResultStatus"];
4512
+ updatedAt?: string | null;
4513
+ verificationRequestId?: string | null;
4514
+ }[] | undefined;
4515
+ reviewSuggestion?: components["schemas"]["ReviewSuggestion"] | null;
1209
4516
  spidResults?: {
1210
4517
  createdAt?: string | null;
1211
4518
  flowStep?: Omit<components["schemas"]["FlowStep"], "type"> | null;
4519
+ flowStepId?: string | null;
1212
4520
  id: string;
1213
4521
  path: string;
1214
4522
  reason?: string | null;
@@ -1216,7 +4524,23 @@ declare function getFlowResult({ organizationId, flowResultId, isSandbox }: GetF
1216
4524
  updatedAt?: string | null;
1217
4525
  verificationRequestId?: string | null;
1218
4526
  }[] | undefined;
4527
+ status?: "FAILED" | "REQUIRES_MANUAL_REVIEW" | "REQUIRES_ADMIN_REVIEW" | "PENDING" | "COMPLETED" | "CANCELLED" | "QUEUED" | "PROCESSING" | "REJECTED" | undefined;
1219
4528
  updatedAt?: string | null;
4529
+ walletResults?: {
4530
+ createdAt?: string | null;
4531
+ flowResultId: string;
4532
+ flowStep?: Omit<components["schemas"]["FlowStep"], "type"> | null;
4533
+ flowStepId?: string | null;
4534
+ id: string;
4535
+ message: string;
4536
+ reason?: string | null;
4537
+ signature: string;
4538
+ status: components["schemas"]["ResultStatus"];
4539
+ updatedAt?: string | null;
4540
+ verificationRequestId?: string | null;
4541
+ walletAddress: string;
4542
+ walletChain: string;
4543
+ }[] | undefined;
1220
4544
  };
1221
4545
  error: {
1222
4546
  code: number;
@@ -1242,6 +4566,152 @@ declare function getDvResult({ organizationId, flowResultId, dvResultId, isSandb
1242
4566
  response: Response;
1243
4567
  }>;
1244
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
+
1245
4715
  interface SignatureComponents {
1246
4716
  timestamp: string;
1247
4717
  signatureHex: string;
@@ -1303,4 +4773,4 @@ interface WebhookVerifierOptions<T extends Function> {
1303
4773
  exposeRawBody?: boolean;
1304
4774
  }
1305
4775
 
1306
- export { API_KEY_HEADER, type ApiKeyType, type Environment, EnvironmentConfigs, Environments, type InitializeZypheFlowParams, type SDKOptions, type SdkCreateVerificationRequestResponse, type SignatureComponents, WebhookSignatureErrorCodes, WebhookSignatureErrorMessages, type WebhookVerifierOptions, bufferToHex, constructVerificationSessionUrl, createVerificationSession, getDvResult, getFlowResult, 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 };