@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/openapi.d.ts CHANGED
@@ -47,6 +47,93 @@ export interface paths {
47
47
  patch?: never;
48
48
  trace?: never;
49
49
  };
50
+ "/sdk/flow/{flow_id}/vr/next-step": {
51
+ parameters: {
52
+ query?: never;
53
+ header?: never;
54
+ path?: never;
55
+ cookie?: never;
56
+ };
57
+ get: operations["sdk_get_next_step"];
58
+ put?: never;
59
+ post?: never;
60
+ delete?: never;
61
+ options?: never;
62
+ head?: never;
63
+ patch?: never;
64
+ trace?: never;
65
+ };
66
+ "/sdk/flow/{flow_id}/vr/{verification_request_id}/dv/process-dv-document": {
67
+ parameters: {
68
+ query?: never;
69
+ header?: never;
70
+ path?: never;
71
+ cookie?: never;
72
+ };
73
+ get?: never;
74
+ put?: never;
75
+ /** Submits identity document images for document verification. Call this after `next-step` returns a document verification step. */
76
+ post: operations["sdk_process_dv_document"];
77
+ delete?: never;
78
+ options?: never;
79
+ head?: never;
80
+ patch?: never;
81
+ trace?: never;
82
+ };
83
+ "/sdk/flow/{flow_id}/vr/{verification_request_id}/dv/liveness-challenge": {
84
+ parameters: {
85
+ query?: never;
86
+ header?: never;
87
+ path?: never;
88
+ cookie?: never;
89
+ };
90
+ /** Retrieves the liveness challenge configuration for the current verification request. Use the returned data to present the liveness capture UI to the user. */
91
+ get: operations["sdk_get_liveness_challenge"];
92
+ put?: never;
93
+ post?: never;
94
+ delete?: never;
95
+ options?: never;
96
+ head?: never;
97
+ patch?: never;
98
+ trace?: never;
99
+ };
100
+ "/sdk/flow/{flow_id}/vr/{verification_request_id}/dv/process-dv-liveness": {
101
+ parameters: {
102
+ query?: never;
103
+ header?: never;
104
+ path?: never;
105
+ cookie?: never;
106
+ };
107
+ get?: never;
108
+ put?: never;
109
+ /** Submits liveness capture data (selfie or video) for processing. Call this after completing the liveness challenge from `liveness-challenge`. */
110
+ post: operations["sdk_process_dv_liveness"];
111
+ delete?: never;
112
+ options?: never;
113
+ head?: never;
114
+ patch?: never;
115
+ trace?: never;
116
+ };
117
+ "/sdk/flow/{flow_id}/vr/{verification_request_id}/dv/process-dv-selection": {
118
+ parameters: {
119
+ query?: never;
120
+ header?: never;
121
+ path?: never;
122
+ cookie?: never;
123
+ };
124
+ get?: never;
125
+ put?: never;
126
+ /**
127
+ * Submits the user's document selection (country and document type) to complete the document selection step.
128
+ * @description Call this after `next-step` returns a `document-selection` step, then call `next-step` again to proceed.
129
+ */
130
+ post: operations["sdk_process_dv_selection"];
131
+ delete?: never;
132
+ options?: never;
133
+ head?: never;
134
+ patch?: never;
135
+ trace?: never;
136
+ };
50
137
  "/flow/{flow_id}/vr/completed": {
51
138
  parameters: {
52
139
  query?: never;
@@ -63,7 +150,23 @@ export interface paths {
63
150
  patch?: never;
64
151
  trace?: never;
65
152
  };
66
- "/sdk/organizations/{organization_id}/flow-results/{flow_result_id}/details": {
153
+ "/sdk/organizations/{organization_id}/flow-results/flow/{flow_slug}/list": {
154
+ parameters: {
155
+ query?: never;
156
+ header?: never;
157
+ path?: never;
158
+ cookie?: never;
159
+ };
160
+ get: operations["sdk_list_flow_results"];
161
+ put?: never;
162
+ post?: never;
163
+ delete?: never;
164
+ options?: never;
165
+ head?: never;
166
+ patch?: never;
167
+ trace?: never;
168
+ };
169
+ "/sdk/organizations/{organization_id}/flow-results/{flow_result_id}/flow/{flow_slug}/details": {
67
170
  parameters: {
68
171
  query?: never;
69
172
  header?: never;
@@ -79,7 +182,7 @@ export interface paths {
79
182
  patch?: never;
80
183
  trace?: never;
81
184
  };
82
- "/sdk/organizations/{organization_id}/flow-results/{flow_result_id}/dv/{dv_result_id}/details": {
185
+ "/sdk/organizations/{organization_id}/flow-results/{flow_result_id}/flow/{flow_slug}/dv/{dv_result_id}/details": {
83
186
  parameters: {
84
187
  query?: never;
85
188
  header?: never;
@@ -95,10 +198,161 @@ export interface paths {
95
198
  patch?: never;
96
199
  trace?: never;
97
200
  };
201
+ "/sdk/organizations/{organization_id}/flow-results/{flow_result_id}/flow/{flow_slug}/poa/{poa_result_id}/details": {
202
+ parameters: {
203
+ query?: never;
204
+ header?: never;
205
+ path?: never;
206
+ cookie?: never;
207
+ };
208
+ get: operations["get_sdk_poa_result_details"];
209
+ put?: never;
210
+ post?: never;
211
+ delete?: never;
212
+ options?: never;
213
+ head?: never;
214
+ patch?: never;
215
+ trace?: never;
216
+ };
217
+ "/sdk/organizations/{organization_id}/flow-results/{flow_result_id}/flow/{flow_slug}/wallet/{wallet_result_id}/details": {
218
+ parameters: {
219
+ query?: never;
220
+ header?: never;
221
+ path?: never;
222
+ cookie?: never;
223
+ };
224
+ get: operations["get_sdk_wallet_result_details"];
225
+ put?: never;
226
+ post?: never;
227
+ delete?: never;
228
+ options?: never;
229
+ head?: never;
230
+ patch?: never;
231
+ trace?: never;
232
+ };
233
+ "/sdk/organizations/{organization_id}/flow-results/{flow_result_id}/flow/{flow_slug}/phone/{phone_result_id}/details": {
234
+ parameters: {
235
+ query?: never;
236
+ header?: never;
237
+ path?: never;
238
+ cookie?: never;
239
+ };
240
+ get: operations["get_sdk_phone_result_details"];
241
+ put?: never;
242
+ post?: never;
243
+ delete?: never;
244
+ options?: never;
245
+ head?: never;
246
+ patch?: never;
247
+ trace?: never;
248
+ };
249
+ "/sdk/organizations/{organization_id}/flow-results/{flow_result_id}/flow/{flow_slug}/form/{form_result_id}/details": {
250
+ parameters: {
251
+ query?: never;
252
+ header?: never;
253
+ path?: never;
254
+ cookie?: never;
255
+ };
256
+ get: operations["get_sdk_form_result_details"];
257
+ put?: never;
258
+ post?: never;
259
+ delete?: never;
260
+ options?: never;
261
+ head?: never;
262
+ patch?: never;
263
+ trace?: never;
264
+ };
265
+ "/sdk/organizations/{organization_id}/flow-results/{flow_result_id}/details": {
266
+ parameters: {
267
+ query?: never;
268
+ header?: never;
269
+ path?: never;
270
+ cookie?: never;
271
+ };
272
+ get: operations["get_sdk_flow_result_details_deprecated"];
273
+ put?: never;
274
+ post?: never;
275
+ delete?: never;
276
+ options?: never;
277
+ head?: never;
278
+ patch?: never;
279
+ trace?: never;
280
+ };
281
+ "/sdk/organizations/{organization_id}/flow-results/{flow_result_id}/dv/{dv_result_id}/details": {
282
+ parameters: {
283
+ query?: never;
284
+ header?: never;
285
+ path?: never;
286
+ cookie?: never;
287
+ };
288
+ get: operations["get_sdk_dv_result_details_deprecated"];
289
+ put?: never;
290
+ post?: never;
291
+ delete?: never;
292
+ options?: never;
293
+ head?: never;
294
+ patch?: never;
295
+ trace?: never;
296
+ };
297
+ "/sdk/organizations/{organization_id}/flow-results/{flow_result_id}/poa/{poa_result_id}/details": {
298
+ parameters: {
299
+ query?: never;
300
+ header?: never;
301
+ path?: never;
302
+ cookie?: never;
303
+ };
304
+ get: operations["get_sdk_poa_result_details_deprecated"];
305
+ put?: never;
306
+ post?: never;
307
+ delete?: never;
308
+ options?: never;
309
+ head?: never;
310
+ patch?: never;
311
+ trace?: never;
312
+ };
98
313
  }
99
314
  export type webhooks = Record<string, never>;
100
315
  export interface components {
101
316
  schemas: {
317
+ /** @description Configuration for an action node.
318
+ *
319
+ * Each variant represents a different action type with its specific configuration. */
320
+ ActionConfig: {
321
+ /** @enum {string} */
322
+ actionType: "setStatus";
323
+ value: components["schemas"]["ActionStatus"];
324
+ } | {
325
+ /** @enum {string} */
326
+ actionType: "flowRouter";
327
+ /**
328
+ * Format: uuid
329
+ * @description The target flow ID to route to.
330
+ */
331
+ target_flow_id: string;
332
+ };
333
+ /**
334
+ * @description Status values that can be set via workflow actions.
335
+ *
336
+ * This enum represents the possible status values that can be set
337
+ * via the SetStatus action in workflow nodes.
338
+ * @enum {string}
339
+ */
340
+ ActionStatus: "REQUIRES_MANUAL_REVIEW";
341
+ /** @description Action step output for tracking action node execution in workflow. */
342
+ ActionStepOutput: {
343
+ executed: boolean;
344
+ /** @description Optional redirect information for flow router actions */
345
+ redirectUrl?: string | null;
346
+ /**
347
+ * Format: uuid
348
+ * @description Optional target flow ID for flow router actions
349
+ */
350
+ targetFlowId?: string | null;
351
+ /** Format: date-time */
352
+ timestamp: string;
353
+ /** @description Optional token for the target flow */
354
+ token?: string | null;
355
+ };
102
356
  AddressData: {
103
357
  addressLine?: string | null;
104
358
  building: string;
@@ -109,49 +363,83 @@ export interface components {
109
363
  postalCode: string;
110
364
  street: string;
111
365
  };
366
+ AmlCheckSummary: {
367
+ hasPep: boolean;
368
+ hasSanctions: boolean;
369
+ highRiskEntitiesCount: number;
370
+ highestRiskLevel: components["schemas"]["RiskLevel"];
371
+ /** Format: int32 */
372
+ highestRiskScore: number;
373
+ totalEntities: number;
374
+ };
112
375
  AmlEntityResponse: {
113
- address?: string[];
114
- birthCountry?: string[];
115
- birthDate?: string[];
116
- birthPlace?: string[];
117
- country?: string[];
118
- email?: string[];
119
- firstName?: string[];
120
- gender?: string[];
121
- lastName?: string[];
122
- middleName?: string[];
123
- name?: string[];
124
- nationality?: string[];
376
+ address?: components["schemas"]["FieldWithControl"];
377
+ birthCountry?: components["schemas"]["FieldWithControl"];
378
+ birthDate?: components["schemas"]["FieldWithControl"];
379
+ birthPlace?: components["schemas"]["FieldWithControl"];
380
+ country?: components["schemas"]["FieldWithControl"];
381
+ email?: components["schemas"]["FieldWithControl"];
382
+ firstName?: components["schemas"]["FieldWithControl"];
383
+ gender?: components["schemas"]["FieldWithControl"];
384
+ lastName?: components["schemas"]["FieldWithControl"];
385
+ match?: boolean;
386
+ middleName?: components["schemas"]["FieldWithControl"];
387
+ name?: components["schemas"]["FieldWithControl"];
388
+ nationality?: components["schemas"]["FieldWithControl"];
125
389
  occupancies?: components["schemas"]["AmlOccupancy"][];
126
- phone?: string[];
127
- position?: string[];
390
+ phone?: components["schemas"]["FieldWithControl"];
391
+ position?: components["schemas"]["FieldWithControl"];
128
392
  sanctions?: components["schemas"]["AmlSanction"][];
129
- title?: string[];
130
- topics?: string[];
393
+ /** Format: double */
394
+ score?: number;
395
+ sources?: components["schemas"]["AmlSource"][];
396
+ title?: components["schemas"]["FieldWithControl"];
397
+ topics?: components["schemas"]["FieldWithControl"];
398
+ };
399
+ AmlEntityResult: {
400
+ entity: components["schemas"]["AmlEntityResponse"];
401
+ hasSanctions: boolean;
402
+ isPep: boolean;
403
+ match: boolean;
404
+ /** Format: double */
405
+ matchScore: number;
406
+ riskCountries: string[];
407
+ riskPositions: string[];
408
+ riskRelationships: string[];
409
+ riskScore: components["schemas"]["RiskScore"];
410
+ riskTopics: string[];
131
411
  };
412
+ /** @enum {string} */
413
+ AmlModerationStatus: "approved" | "rejected" | "escalated";
132
414
  AmlOccupancy: {
133
- endDate?: string[];
415
+ endDate?: components["schemas"]["FieldWithControl"];
134
416
  post?: components["schemas"]["AmlPosition"][];
135
- startDate?: string[];
136
- status?: string[];
417
+ sources?: components["schemas"]["AmlSource"][];
418
+ startDate?: components["schemas"]["FieldWithControl"];
419
+ status?: components["schemas"]["FieldWithControl"];
137
420
  };
138
421
  AmlOrganization: {
139
- country?: string[];
140
- description?: string[];
141
- name?: string[];
142
- summary?: string[];
422
+ country?: components["schemas"]["FieldWithControl"];
423
+ description?: components["schemas"]["FieldWithControl"];
424
+ name?: components["schemas"]["FieldWithControl"];
425
+ summary?: components["schemas"]["FieldWithControl"];
143
426
  };
144
427
  AmlPosition: {
145
- country?: string[];
146
- description?: string[];
147
- dissolutionDate?: string[];
148
- inceptionDate?: string[];
149
- name?: string[];
428
+ country?: components["schemas"]["FieldWithControl"];
429
+ description?: components["schemas"]["FieldWithControl"];
430
+ dissolutionDate?: components["schemas"]["FieldWithControl"];
431
+ inceptionDate?: components["schemas"]["FieldWithControl"];
432
+ name?: components["schemas"]["FieldWithControl"];
150
433
  numberOfSeats?: number[];
151
434
  organization?: components["schemas"]["AmlOrganization"][];
152
- subnationalArea?: string[];
153
- summary?: string[];
154
- topics?: string[];
435
+ subnationalArea?: components["schemas"]["FieldWithControl"];
436
+ summary?: components["schemas"]["FieldWithControl"];
437
+ topics?: components["schemas"]["FieldWithControl"];
438
+ };
439
+ AmlQueryMetadata: {
440
+ dateOfBirth: string;
441
+ firstName: string;
442
+ lastName: string;
155
443
  };
156
444
  AmlResult: {
157
445
  /** Format: date-time */
@@ -159,36 +447,114 @@ export interface components {
159
447
  data: {
160
448
  [key: string]: unknown;
161
449
  };
450
+ /** Format: uuid */
162
451
  id: string;
163
452
  pep: boolean;
164
453
  sanctions: boolean;
165
454
  /** Format: date-time */
166
455
  updatedAt: string;
456
+ /** Format: uuid */
167
457
  verificationRequestId?: string | null;
168
458
  };
459
+ AmlRiskMetadata: {
460
+ /** Format: date-time */
461
+ checkedAt: string;
462
+ controls: components["schemas"]["ResultControlOperation"][];
463
+ query?: components["schemas"]["AmlQueryMetadata"] | null;
464
+ summary: components["schemas"]["AmlCheckSummary"];
465
+ };
466
+ AmlRiskResult: {
467
+ entities: components["schemas"]["AmlEntityResult"][];
468
+ metadata: components["schemas"]["AmlRiskMetadata"];
469
+ };
169
470
  AmlSanction: {
170
- authority?: string[];
171
- authorityId?: string[];
172
- country?: string[];
173
- date?: string[];
174
- duration?: string[];
175
- endDate?: string[];
176
- listingDate?: string[];
177
- program?: string[];
178
- reason?: string[];
179
- startDate?: string[];
180
- status?: string[];
181
- unscId?: string[];
182
- };
183
- AmlSearchResponse: components["schemas"]["AmlEntityResponse"][];
471
+ authority?: components["schemas"]["FieldWithControl"];
472
+ authorityId?: components["schemas"]["FieldWithControl"];
473
+ country?: components["schemas"]["FieldWithControl"];
474
+ date?: components["schemas"]["FieldWithControl"];
475
+ duration?: components["schemas"]["FieldWithControl"];
476
+ endDate?: components["schemas"]["FieldWithControl"];
477
+ listingDate?: components["schemas"]["FieldWithControl"];
478
+ program?: components["schemas"]["FieldWithControl"];
479
+ reason?: components["schemas"]["FieldWithControl"];
480
+ sources?: components["schemas"]["AmlSource"][];
481
+ startDate?: components["schemas"]["FieldWithControl"];
482
+ status?: components["schemas"]["FieldWithControl"];
483
+ unscId?: components["schemas"]["FieldWithControl"];
484
+ };
485
+ AmlSource: {
486
+ name?: string;
487
+ title?: string;
488
+ url?: string | null;
489
+ };
184
490
  /** @enum {string} */
185
491
  ApiKeyType: "PUBLISHABLE" | "SECRET";
492
+ AutoOneClickKycConfig: {
493
+ /** @example { "en_title": "Verify with Partners" } */
494
+ labels?: {
495
+ [key: string]: string;
496
+ };
497
+ /** @description Partner flow configurations with step type hints */
498
+ partnerConfigs: components["schemas"]["AutoOneClickPartnerConfig"][];
499
+ /** @description Full partner flow objects (populated by rehydrate_flow_step) */
500
+ partnerFlows?: components["schemas"]["Flow"][] | null;
501
+ };
502
+ /** @description Data for tracking auto one-click KYC flow. */
503
+ AutoOneClickKycData: {
504
+ /** Format: uuid */
505
+ flowId: string;
506
+ /** Format: uuid */
507
+ flowStepId: string;
508
+ };
509
+ /** @description Auto One-Click KYC step output for workflow decisions. */
510
+ AutoOneClickKycStepOutput: {
511
+ status: components["schemas"]["ResultStatus"];
512
+ };
513
+ /** @description Configuration for a single partner flow in auto one-click */
514
+ AutoOneClickPartnerConfig: {
515
+ /**
516
+ * Format: uuid
517
+ * @description The partner flow ID
518
+ */
519
+ flowId: string;
520
+ /** @description Which step types to attempt one-click for in this partner flow
521
+ * If empty, defaults to [Dv] */
522
+ targetStepTypes?: components["schemas"]["FlowStepType"][];
523
+ };
186
524
  BaxeError: {
187
525
  /** Format: int32 */
188
526
  code: number;
189
527
  errorTag: components["schemas"]["ErrorTags"];
190
528
  message?: string | null;
191
529
  };
530
+ /** @description A condition branch for switch operators. */
531
+ BranchCondition: {
532
+ condition: components["schemas"]["Condition"];
533
+ /** @description The label of the edge to follow if this condition matches. */
534
+ label: string;
535
+ };
536
+ /**
537
+ * @description Source that can participate in a business information field disagreement.
538
+ * @enum {string}
539
+ */
540
+ BusinessInfoDisagreementSource: "submitted" | "document" | "catalog";
541
+ /** @description Per-field verification result comparing submitted business info against document-extracted values. */
542
+ BusinessInfoFieldVerification: {
543
+ /** @description The value extracted from the company catalog API. */
544
+ catalogValue?: string | null;
545
+ /** @description Sources that disagree with one another for this field. */
546
+ disagreementSources?: components["schemas"]["BusinessInfoDisagreementSource"][];
547
+ /** @description The value extracted from the uploaded document(s). */
548
+ documentValue?: string | null;
549
+ matchType: components["schemas"]["BusinessInfoMatchType"];
550
+ /** @description The user-submitted value for this field. */
551
+ submittedValue?: string | null;
552
+ };
553
+ /**
554
+ * @description Match type for a single business information field against document-extracted values.
555
+ * @enum {string}
556
+ */
557
+ BusinessInfoMatchType: "match" | "fuzzy" | "mismatch" | "notFound";
192
558
  BusinessInformation: {
193
559
  address: string;
194
560
  businessActivity: string;
@@ -201,6 +567,158 @@ export interface components {
201
567
  postZipCode: string;
202
568
  registrationNumber: string;
203
569
  };
570
+ /** @description Parsed representation of the client's clarification response stored inside
571
+ * `reviewReason` JSON. Present only on document requests of that type after
572
+ * the client has submitted. */
573
+ BusinessInformationClarificationResponse: {
574
+ /** @description Client's decision: `"confirm"` (values are correct as-is) or `"deny"` (proposes new values). */
575
+ decision: string;
576
+ /** @description Field updates proposed by the client. Absent or empty when `decision` is `"confirm"`.
577
+ * Stored metadata uses key `"updates"`; API and legacy use `"fields"`. */
578
+ fields?: components["schemas"]["BusinessInformationClarificationResponseField"][] | null;
579
+ /** @description Free-text explanation from the client. */
580
+ reason: string;
581
+ };
582
+ /** @description A single field update proposed by the client in a business-information clarification response. */
583
+ BusinessInformationClarificationResponseField: {
584
+ /** @description The business-information field key (e.g. `"companyName"`). */
585
+ fieldKey: string;
586
+ /** @description The new value proposed by the client. */
587
+ value: string;
588
+ };
589
+ /**
590
+ * @description Provider-agnostic check status.
591
+ *
592
+ * This enum represents the canonical outcome of any verification check,
593
+ * abstracting away provider-specific status codes.
594
+ *
595
+ * # Deserialization
596
+ *
597
+ * Supports both string format ("passed", "failed", etc.) and legacy integer codes:
598
+ * - 0 = Passed (OK in Regula)
599
+ * - 1 = Failed (Error in Regula)
600
+ * - 2 = NotPerformed (Was not done in Regula)
601
+ * @enum {string}
602
+ */
603
+ CheckStatus: "passed" | "failed" | "not_performed" | "unknown";
604
+ CloudflareTracePayload: {
605
+ colo?: string | null;
606
+ ip?: string | null;
607
+ loc?: string | null;
608
+ ts?: string | null;
609
+ visitScheme?: string | null;
610
+ };
611
+ /** @description A condition that can be evaluated against workflow context.
612
+ *
613
+ * Conditions are serialized as JSON with a tagged `op` field.
614
+ *
615
+ * # Examples
616
+ *
617
+ * ## Equality check
618
+ * ```json
619
+ * { "op": "EQ", "field": "dv_step.status", "value": "PASSED" }
620
+ * ```
621
+ *
622
+ * ## Compound condition
623
+ * ```json
624
+ * {
625
+ * "op": "AND",
626
+ * "conditions": [
627
+ * { "op": "EQ", "field": "dv_step.status", "value": "PASSED" },
628
+ * { "op": "IN", "field": "dv_step.countryCode", "values": ["IT", "DE", "FR"] }
629
+ * ]
630
+ * }
631
+ * ``` */
632
+ Condition: {
633
+ /** @description Field path (e.g., "dv_step.status") */
634
+ field: string;
635
+ /** @enum {string} */
636
+ op: "EQ";
637
+ value: components["schemas"]["WorkflowValue"];
638
+ } | {
639
+ /** @description Field path */
640
+ field: string;
641
+ /** @enum {string} */
642
+ op: "NE";
643
+ value: components["schemas"]["WorkflowValue"];
644
+ } | {
645
+ /** @description Field path */
646
+ field: string;
647
+ /** @enum {string} */
648
+ op: "GT";
649
+ value: components["schemas"]["WorkflowValue"];
650
+ } | {
651
+ /** @description Field path */
652
+ field: string;
653
+ /** @enum {string} */
654
+ op: "LT";
655
+ value: components["schemas"]["WorkflowValue"];
656
+ } | {
657
+ /** @description Field path */
658
+ field: string;
659
+ /** @enum {string} */
660
+ op: "GTE";
661
+ value: components["schemas"]["WorkflowValue"];
662
+ } | {
663
+ /** @description Field path */
664
+ field: string;
665
+ /** @enum {string} */
666
+ op: "LTE";
667
+ value: components["schemas"]["WorkflowValue"];
668
+ } | {
669
+ /** @description Conditions to AND together */
670
+ conditions: components["schemas"]["Condition"][];
671
+ /** @enum {string} */
672
+ op: "AND";
673
+ } | {
674
+ /** @description Conditions to OR together */
675
+ conditions: components["schemas"]["Condition"][];
676
+ /** @enum {string} */
677
+ op: "OR";
678
+ } | {
679
+ condition: components["schemas"]["Condition"];
680
+ /** @enum {string} */
681
+ op: "NOT";
682
+ } | {
683
+ /** @description Field path */
684
+ field: string;
685
+ /** @enum {string} */
686
+ op: "IN";
687
+ /** @description List of values to check against */
688
+ values: components["schemas"]["WorkflowValue"][];
689
+ } | {
690
+ condition: components["schemas"]["Condition"];
691
+ /** @description Field path to an array */
692
+ field: string;
693
+ /** @enum {string} */
694
+ op: "ANY";
695
+ } | {
696
+ condition: components["schemas"]["Condition"];
697
+ /** @description Field path to an array */
698
+ field: string;
699
+ /** @enum {string} */
700
+ op: "ALL";
701
+ } | {
702
+ /** @description Field path */
703
+ field: string;
704
+ /** @enum {string} */
705
+ op: "IS_NULL";
706
+ } | {
707
+ /** @description Field path */
708
+ field: string;
709
+ /** @enum {string} */
710
+ op: "IS_NOT_NULL";
711
+ } | {
712
+ /** @enum {string} */
713
+ op: "LITERAL";
714
+ /** @description The literal value */
715
+ value: boolean;
716
+ };
717
+ /**
718
+ * @description Condition operator type representing all valid condition operators.
719
+ * @enum {string}
720
+ */
721
+ ConditionOperator: "EQ" | "NE" | "GT" | "LT" | "GTE" | "LTE" | "AND" | "OR" | "NOT" | "IN" | "ANY" | "ALL" | "IS_NULL" | "IS_NOT_NULL" | "LITERAL";
204
722
  CountriesFilter: {
205
723
  accepted: string[];
206
724
  blocked: string[];
@@ -211,20 +729,36 @@ export interface components {
211
729
  customData?: {
212
730
  [key: string]: unknown;
213
731
  } | null;
214
- email: string;
215
- flowStepId: string;
732
+ email?: string | null;
733
+ /** Format: uuid */
734
+ flowStepId?: string | null;
216
735
  privacyPolicyAccepted: boolean;
217
736
  termsAndConditionsAccepted: boolean;
218
737
  };
219
738
  CreateVerificationRequestResponse: {
220
739
  verificationRequest: components["schemas"]["VerificationRequest"];
221
- websocketNamespace: string;
222
740
  };
223
- Document: {
224
- /** Format: date-time */
225
- createdAt: string;
741
+ CustomDocumentConfig: {
742
+ enabled?: boolean;
743
+ /** Format: uuid */
744
+ id: string;
745
+ name: string;
746
+ required?: boolean;
747
+ };
748
+ DirectorDefinition: {
749
+ country: string;
750
+ dateOfBirth: string;
751
+ emailAddress: string;
752
+ firstName: string;
753
+ gender: string;
754
+ lastName: string;
755
+ };
756
+ Document: {
757
+ /** Format: date-time */
758
+ createdAt: string;
226
759
  /** Format: date-time */
227
760
  expiresAt?: string | null;
761
+ /** Format: uuid */
228
762
  id: string;
229
763
  metadata: unknown;
230
764
  path: string;
@@ -233,8 +767,12 @@ export interface components {
233
767
  typeName: string;
234
768
  /** Format: date-time */
235
769
  updatedAt: string;
770
+ /** Format: uuid */
236
771
  vaultId: string;
237
772
  };
773
+ DocumentConfig: {
774
+ required?: boolean;
775
+ };
238
776
  DocumentData: {
239
777
  documentCan?: string;
240
778
  documentClassCode?: string;
@@ -254,75 +792,197 @@ export interface components {
254
792
  path: string;
255
793
  type: string;
256
794
  };
795
+ /** @description Status of various document scan checks.
796
+ *
797
+ * # Deserialization
798
+ *
799
+ * Supports both new abstract format and legacy Regula format:
800
+ *
801
+ * **New format:**
802
+ * ```json
803
+ * { "overall": "passed", "documentType": "passed", "expiry": "passed", "mrz": "passed" }
804
+ * ```
805
+ *
806
+ * **Legacy Regula format:**
807
+ * ```json
808
+ * {
809
+ * "overallStatus": 0,
810
+ * "detailsOptical": { "docType": 1, "expiry": 0, "mrz": 2, ... },
811
+ * "optical": 0, "portrait": 1, "rfid": 2, ...
812
+ * }
813
+ * ``` */
814
+ DocumentScanStatus: {
815
+ documentType: components["schemas"]["CheckStatus"];
816
+ expiry: components["schemas"]["CheckStatus"];
817
+ mrz: components["schemas"]["CheckStatus"];
818
+ overall: components["schemas"]["CheckStatus"];
819
+ };
820
+ DocumentSelectionConfig: {
821
+ allowedDocumentsPerCountry?: {
822
+ [key: string]: string[];
823
+ } | null;
824
+ countriesFilter: components["schemas"]["CountriesFilter"];
825
+ documentTypesFilter: components["schemas"]["DocumentTypeFilter"];
826
+ enabledGovernmentProviders: {
827
+ [key: string]: components["schemas"]["SpidDocumentType"][];
828
+ };
829
+ /** @example { "en_button_label": "Next step" } */
830
+ labels?: {
831
+ [key: string]: string;
832
+ };
833
+ };
834
+ /** @description Document selection step output for workflow decisions. */
835
+ DocumentSelectionStepOutput: {
836
+ country?: string | null;
837
+ /** Format: int64 */
838
+ documentType?: number | null;
839
+ };
257
840
  DocumentTypeFilter: {
258
841
  types: string[];
259
842
  };
260
843
  DocumentUpload: {
844
+ documentType?: string | null;
261
845
  filename: string;
262
846
  presignedUrl?: string | null;
847
+ s3Key?: string | null;
263
848
  };
264
849
  DvConfig: {
265
- allowedDocumentsPerCountry?: {
266
- [key: string]: string[];
267
- } | null;
268
- countriesFilter?: components["schemas"]["CountriesFilter"] | null;
269
- documentFormatsFilter?: components["schemas"]["DocumentFormatFilter"] | null;
270
- documentTypesFilter?: components["schemas"]["DocumentTypeFilter"] | null;
850
+ /** Format: uuid */
851
+ documentSelectionStepId?: string;
271
852
  /** @example { "en_button_label": "Next step" } */
272
853
  labels?: {
273
854
  [key: string]: string;
274
855
  };
856
+ /**
857
+ * Format: int32
858
+ * @example 5
859
+ */
860
+ maxAttempts?: number | null;
275
861
  /** Format: int32 */
276
862
  minimumAge: number;
277
- skipLiveness?: boolean;
863
+ processImagesOverrides?: components["schemas"]["ProcessImagesOverrides"] | null;
864
+ requiredDocumentFields?: components["schemas"]["RequiredDocumentField"][];
278
865
  thresholds?: {
279
866
  documentScorePercent?: number;
280
- portraitMatchPercent?: number;
281
867
  } | null;
282
868
  };
283
869
  /** @enum {string} */
284
- DvConfigThreshold: "documentScorePercent" | "portraitMatchPercent";
870
+ DvConfigThreshold: "documentScorePercent";
285
871
  /** @enum {string} */
286
- 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";
872
+ 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";
287
873
  DvResult: {
874
+ adminComment?: string | null;
875
+ authenticityChecks: number[][];
288
876
  browser?: string | null;
289
877
  class?: string | null;
878
+ countryCode?: string | null;
290
879
  /** Format: date-time */
291
880
  createdAt?: string | null;
292
881
  data: {
293
882
  [key: string]: unknown;
294
883
  };
884
+ /** Format: uuid */
295
885
  documentId?: string | null;
296
886
  /** Format: int32 */
297
887
  documentScorePercent?: number | null;
298
888
  /** Format: int32 */
299
889
  documentType?: number | null;
300
- firstName?: string | null;
301
890
  flowStep?: Omit<components["schemas"]["FlowStep"], "type"> | null;
891
+ /** Format: uuid */
892
+ flowStepId?: string | null;
893
+ /** Format: uuid */
302
894
  id: string;
303
- lastName?: string | null;
895
+ /** Format: date-time */
896
+ manualReviewAt?: string | null;
897
+ manualReviewNote?: string | null;
898
+ /** Format: uuid */
899
+ manualReviewerId?: string | null;
900
+ manualReviewerZid?: string | null;
901
+ /** Format: uuid */
902
+ originalVrHistoryId?: string | null;
304
903
  platform?: string | null;
305
904
  /** Format: int32 */
306
905
  portraitMatchPercent?: number | null;
307
- processAdditionalData: {
308
- [key: string]: unknown;
309
- };
906
+ processAdditionalData: components["schemas"]["ProcessAdditionalData"];
907
+ provinceCode?: string | null;
310
908
  reasons: components["schemas"]["DvReason"][];
311
909
  status: components["schemas"]["ResultStatus"];
312
910
  /** Format: date-time */
313
911
  updatedAt?: string | null;
912
+ /** Format: uuid */
314
913
  verificationRequestId?: string | null;
315
914
  };
915
+ DvStepOutput: {
916
+ amlPep?: boolean | null;
917
+ /** Format: int32 */
918
+ amlRiskScorePercent?: number | null;
919
+ amlSanctions?: boolean | null;
920
+ /** Format: date-time */
921
+ dateOfExpiry?: string | null;
922
+ /** Format: int32 */
923
+ documentType?: number | null;
924
+ issuingCountry?: string | null;
925
+ livenessStatus?: components["schemas"]["ResultStatus"] | null;
926
+ /** Format: int32 */
927
+ numberOfAttempts: number;
928
+ status: components["schemas"]["ResultStatus"];
929
+ };
316
930
  /** @enum {string} */
317
- 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";
931
+ 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";
932
+ /** @description Represents an executed action with its ID and type. */
933
+ ExecutedAction: {
934
+ actionConfig: components["schemas"]["ActionConfig"];
935
+ /**
936
+ * Format: uuid
937
+ * @description The unique identifier of the action node.
938
+ */
939
+ actionId: string;
940
+ };
941
+ FieldControlOperation: {
942
+ /** Format: uuid */
943
+ identityId: string;
944
+ operation: components["schemas"]["FieldControlOperationType"];
945
+ /** Format: date-time */
946
+ timestamp: string;
947
+ zid: string;
948
+ };
949
+ FieldControlOperationType: {
950
+ markAsFalsePositive: {
951
+ comment: string;
952
+ };
953
+ } | {
954
+ unmarkAsFalsePositive: {
955
+ comment: string;
956
+ };
957
+ } | {
958
+ comment: {
959
+ comment: string;
960
+ };
961
+ };
962
+ /**
963
+ * @description Per-field review status within a clarification document request.
964
+ * @enum {string}
965
+ */
966
+ FieldReviewStatus: "PENDING" | "APPROVED" | "REJECTED";
967
+ FieldWithControl: {
968
+ controls: components["schemas"]["FieldControlOperation"][];
969
+ value: string[];
970
+ };
971
+ FileOptions: {
972
+ accept: string[];
973
+ expectedDocumentType: string;
974
+ /** Format: int32 */
975
+ maxCountUploads?: number;
976
+ };
318
977
  /** @enum {string} */
319
978
  FilterOperator: "unfiltered" | "in" | "equals" | "not-in" | "not-equals" | "contains";
320
979
  Flow: {
321
980
  /** Format: date-time */
322
981
  createdAt?: string | null;
323
- extendedWebhook: boolean;
324
982
  failureUrl?: string | null;
983
+ /** Format: uuid */
325
984
  id: string;
985
+ jdm: components["schemas"]["WorkflowGraph"];
326
986
  name: string;
327
987
  slug: string;
328
988
  steps: components["schemas"]["FlowStep"][];
@@ -337,28 +997,41 @@ export interface components {
337
997
  createdAt?: string | null;
338
998
  customData: {
339
999
  [key: string]: unknown;
340
- };
1000
+ } | null;
341
1001
  dvResults: components["schemas"]["DvResult"][];
342
1002
  flow?: components["schemas"]["Flow"] | null;
343
1003
  flowSlug: string;
344
1004
  formResults: components["schemas"]["FormResult"][];
1005
+ geolocationResults?: components["schemas"]["GeolocationResult"][];
1006
+ /** Format: uuid */
345
1007
  id: string;
346
1008
  identity?: components["schemas"]["Identity"] | null;
1009
+ jdmData: {
1010
+ [key: string]: components["schemas"]["FlowStepOutput"];
1011
+ };
347
1012
  kybResults: components["schemas"]["KybResult"][];
348
1013
  organization?: components["schemas"]["Organization"] | null;
1014
+ /** Format: uuid */
349
1015
  organizationId: string;
1016
+ phoneResults: components["schemas"]["PhoneResult"][];
350
1017
  poaResults: components["schemas"]["PoaResult"][];
1018
+ reviewSuggestion?: components["schemas"]["ReviewSuggestion"] | null;
351
1019
  spidResults: components["schemas"]["SpidResult"][];
1020
+ status: components["schemas"]["VerificationRequestStatus"];
352
1021
  /** Format: date-time */
353
1022
  updatedAt?: string | null;
1023
+ walletResults: components["schemas"]["WalletResult"][];
354
1024
  };
355
1025
  FlowStep: {
356
1026
  config: components["schemas"]["DvConfig"];
357
1027
  /** Format: date-time */
358
1028
  createdAt?: string | null;
359
1029
  failureUrl?: string | null;
1030
+ /** Format: uuid */
360
1031
  flowId: string;
1032
+ /** Format: uuid */
361
1033
  gotoStepId?: string | null;
1034
+ /** Format: uuid */
362
1035
  id: string;
363
1036
  name: string;
364
1037
  /** Format: int32 */
@@ -374,8 +1047,11 @@ export interface components {
374
1047
  /** Format: date-time */
375
1048
  createdAt?: string | null;
376
1049
  failureUrl?: string | null;
1050
+ /** Format: uuid */
377
1051
  flowId: string;
1052
+ /** Format: uuid */
378
1053
  gotoStepId?: string | null;
1054
+ /** Format: uuid */
379
1055
  id: string;
380
1056
  name: string;
381
1057
  /** Format: int32 */
@@ -391,8 +1067,11 @@ export interface components {
391
1067
  /** Format: date-time */
392
1068
  createdAt?: string | null;
393
1069
  failureUrl?: string | null;
1070
+ /** Format: uuid */
394
1071
  flowId: string;
1072
+ /** Format: uuid */
395
1073
  gotoStepId?: string | null;
1074
+ /** Format: uuid */
396
1075
  id: string;
397
1076
  name: string;
398
1077
  /** Format: int32 */
@@ -408,8 +1087,11 @@ export interface components {
408
1087
  /** Format: date-time */
409
1088
  createdAt?: string | null;
410
1089
  failureUrl?: string | null;
1090
+ /** Format: uuid */
411
1091
  flowId: string;
1092
+ /** Format: uuid */
412
1093
  gotoStepId?: string | null;
1094
+ /** Format: uuid */
413
1095
  id: string;
414
1096
  name: string;
415
1097
  /** Format: int32 */
@@ -425,8 +1107,11 @@ export interface components {
425
1107
  /** Format: date-time */
426
1108
  createdAt?: string | null;
427
1109
  failureUrl?: string | null;
1110
+ /** Format: uuid */
428
1111
  flowId: string;
1112
+ /** Format: uuid */
429
1113
  gotoStepId?: string | null;
1114
+ /** Format: uuid */
430
1115
  id: string;
431
1116
  name: string;
432
1117
  /** Format: int32 */
@@ -437,14 +1122,207 @@ export interface components {
437
1122
  type: "SPID";
438
1123
  /** Format: date-time */
439
1124
  updatedAt?: string | null;
1125
+ } | {
1126
+ config: components["schemas"]["PhoneConfig"];
1127
+ /** Format: date-time */
1128
+ createdAt?: string | null;
1129
+ failureUrl?: string | null;
1130
+ /** Format: uuid */
1131
+ flowId: string;
1132
+ /** Format: uuid */
1133
+ gotoStepId?: string | null;
1134
+ /** Format: uuid */
1135
+ id: string;
1136
+ name: string;
1137
+ /** Format: int32 */
1138
+ order: number;
1139
+ slug: string;
1140
+ successUrl?: string | null;
1141
+ /** @enum {string} */
1142
+ type: "PHONE";
1143
+ /** Format: date-time */
1144
+ updatedAt?: string | null;
1145
+ } | {
1146
+ config: components["schemas"]["WalletConfig"];
1147
+ /** Format: date-time */
1148
+ createdAt?: string | null;
1149
+ failureUrl?: string | null;
1150
+ /** Format: uuid */
1151
+ flowId: string;
1152
+ /** Format: uuid */
1153
+ gotoStepId?: string | null;
1154
+ /** Format: uuid */
1155
+ id: string;
1156
+ name: string;
1157
+ /** Format: int32 */
1158
+ order: number;
1159
+ slug: string;
1160
+ successUrl?: string | null;
1161
+ /** @enum {string} */
1162
+ type: "WALLET";
1163
+ /** Format: date-time */
1164
+ updatedAt?: string | null;
1165
+ } | {
1166
+ config: components["schemas"]["LivenessConfig"];
1167
+ /** Format: date-time */
1168
+ createdAt?: string | null;
1169
+ failureUrl?: string | null;
1170
+ /** Format: uuid */
1171
+ flowId: string;
1172
+ /** Format: uuid */
1173
+ gotoStepId?: string | null;
1174
+ /** Format: uuid */
1175
+ id: string;
1176
+ name: string;
1177
+ /** Format: int32 */
1178
+ order: number;
1179
+ slug: string;
1180
+ successUrl?: string | null;
1181
+ /** @enum {string} */
1182
+ type: "LIVENESS";
1183
+ /** Format: date-time */
1184
+ updatedAt?: string | null;
1185
+ } | {
1186
+ config: components["schemas"]["AutoOneClickKycConfig"];
1187
+ /** Format: date-time */
1188
+ createdAt?: string | null;
1189
+ failureUrl?: string | null;
1190
+ /** Format: uuid */
1191
+ flowId: string;
1192
+ /** Format: uuid */
1193
+ gotoStepId?: string | null;
1194
+ /** Format: uuid */
1195
+ id: string;
1196
+ name: string;
1197
+ /** Format: int32 */
1198
+ order: number;
1199
+ slug: string;
1200
+ successUrl?: string | null;
1201
+ /** @enum {string} */
1202
+ type: "AUTO_ONE_CLICK_KYC";
1203
+ /** Format: date-time */
1204
+ updatedAt?: string | null;
1205
+ } | {
1206
+ config: components["schemas"]["DocumentSelectionConfig"];
1207
+ /** Format: date-time */
1208
+ createdAt?: string | null;
1209
+ failureUrl?: string | null;
1210
+ /** Format: uuid */
1211
+ flowId: string;
1212
+ /** Format: uuid */
1213
+ gotoStepId?: string | null;
1214
+ /** Format: uuid */
1215
+ id: string;
1216
+ name: string;
1217
+ /** Format: int32 */
1218
+ order: number;
1219
+ slug: string;
1220
+ successUrl?: string | null;
1221
+ /** @enum {string} */
1222
+ type: "DOCUMENT_SELECTION";
1223
+ /** Format: date-time */
1224
+ updatedAt?: string | null;
1225
+ } | {
1226
+ config: components["schemas"]["GeolocationConfig"];
1227
+ /** Format: date-time */
1228
+ createdAt?: string | null;
1229
+ failureUrl?: string | null;
1230
+ /** Format: uuid */
1231
+ flowId: string;
1232
+ /** Format: uuid */
1233
+ gotoStepId?: string | null;
1234
+ /** Format: uuid */
1235
+ id: string;
1236
+ name: string;
1237
+ /** Format: int32 */
1238
+ order: number;
1239
+ slug: string;
1240
+ successUrl?: string | null;
1241
+ /** @enum {string} */
1242
+ type: "GEOLOCATION";
1243
+ /** Format: date-time */
1244
+ updatedAt?: string | null;
1245
+ };
1246
+ 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"];
1247
+ FlowStepInfo: {
1248
+ CONFIG: components["schemas"]["FlowStepConfig"];
1249
+ /** Format: date-time */
1250
+ CREATED_AT?: string | null;
1251
+ FAILURE_URL?: string | null;
1252
+ /** Format: uuid */
1253
+ FLOW_ID: string;
1254
+ /** Format: uuid */
1255
+ GOTO_STEP_ID?: string | null;
1256
+ /** Format: uuid */
1257
+ ID: string;
1258
+ NAME: string;
1259
+ /** Format: int32 */
1260
+ ORDER: number;
1261
+ SLUG: string;
1262
+ STEP_TYPE: components["schemas"]["FlowStepType"];
1263
+ SUCCESS_URL?: string | null;
1264
+ /** Format: date-time */
1265
+ UPDATED_AT?: string | null;
1266
+ };
1267
+ FlowStepOutput: {
1268
+ data: components["schemas"]["DvStepOutput"];
1269
+ /** @enum {string} */
1270
+ type: "DV";
1271
+ } | {
1272
+ data: components["schemas"]["PoaStepOutput"];
1273
+ /** @enum {string} */
1274
+ type: "POA";
1275
+ } | {
1276
+ data: components["schemas"]["SpidStepOutput"];
1277
+ /** @enum {string} */
1278
+ type: "SPID";
1279
+ } | {
1280
+ data: components["schemas"]["WalletStepOutput"];
1281
+ /** @enum {string} */
1282
+ type: "WALLET";
1283
+ } | {
1284
+ data: components["schemas"]["PhoneStepOutput"];
1285
+ /** @enum {string} */
1286
+ type: "PHONE";
1287
+ } | {
1288
+ data: components["schemas"]["FormStepOutput"];
1289
+ /** @enum {string} */
1290
+ type: "FORM";
1291
+ } | {
1292
+ data: components["schemas"]["KybStepOutput"];
1293
+ /** @enum {string} */
1294
+ type: "KYB";
1295
+ } | {
1296
+ data: components["schemas"]["LivenessStepOutput"];
1297
+ /** @enum {string} */
1298
+ type: "LIVENESS";
1299
+ } | {
1300
+ data: components["schemas"]["AutoOneClickKycStepOutput"];
1301
+ /** @enum {string} */
1302
+ type: "AUTO_ONE_CLICK_KYC";
1303
+ } | {
1304
+ data: components["schemas"]["ActionStepOutput"];
1305
+ /** @enum {string} */
1306
+ type: "ACTION";
1307
+ } | {
1308
+ data: components["schemas"]["DocumentSelectionStepOutput"];
1309
+ /** @enum {string} */
1310
+ type: "DOCUMENT_SELECTION";
1311
+ } | {
1312
+ data: components["schemas"]["GeolocationStepOutput"];
1313
+ /** @enum {string} */
1314
+ type: "GEOLOCATION";
440
1315
  };
441
- FlowStepConfig: components["schemas"]["DvConfig"] | components["schemas"]["FormConfig"] | components["schemas"]["PoaConfig"] | components["schemas"]["KybConfig"] | components["schemas"]["SpidConfig"];
1316
+ /** @enum {string} */
1317
+ FlowStepType: "DV" | "FORM" | "POA" | "KYB" | "SPID" | "PHONE" | "WALLET" | "LIVENESS" | "AUTO_ONE_CLICK_KYC" | "DOCUMENT_SELECTION" | "GEOLOCATION";
442
1318
  Form: {
443
1319
  /** Format: date-time */
444
1320
  createdAt?: string | null;
445
1321
  description?: string | null;
1322
+ /** Format: uuid */
446
1323
  id: string;
447
1324
  name: string;
1325
+ /** Format: uuid */
448
1326
  organizationId: string;
449
1327
  sections: components["schemas"]["FormSection"][];
450
1328
  /** Format: date-time */
@@ -458,11 +1336,14 @@ export interface components {
458
1336
  };
459
1337
  FormConfig: {
460
1338
  form?: components["schemas"]["Form"] | null;
1339
+ /** Format: uuid */
461
1340
  formId: string;
462
1341
  /** @example { "default": "Next step" } */
463
1342
  labels?: {
464
1343
  [key: string]: string;
465
1344
  };
1345
+ /** Format: int64 */
1346
+ oneClickMaxAgeSeconds?: number | null;
466
1347
  };
467
1348
  FormItem: {
468
1349
  content: components["schemas"]["InputField"];
@@ -481,16 +1362,22 @@ export interface components {
481
1362
  FormResult: {
482
1363
  /** Format: date-time */
483
1364
  createdAt?: string | null;
1365
+ /** Format: uuid */
484
1366
  flowResultId: string;
485
1367
  flowStep?: Omit<components["schemas"]["FlowStep"], "type"> | null;
1368
+ /** Format: uuid */
486
1369
  flowStepId?: string | null;
487
1370
  form?: components["schemas"]["Form"] | null;
1371
+ /** Format: uuid */
1372
+ formId?: string | null;
1373
+ /** Format: uuid */
488
1374
  id: string;
489
1375
  reason?: components["schemas"]["FormReason"] | null;
490
1376
  sections: components["schemas"]["FormSection"][];
491
1377
  status: components["schemas"]["ResultStatus"];
492
1378
  /** Format: date-time */
493
1379
  updatedAt?: string | null;
1380
+ /** Format: uuid */
494
1381
  verificationRequestId?: string | null;
495
1382
  };
496
1383
  FormSection: {
@@ -500,6 +1387,68 @@ export interface components {
500
1387
  };
501
1388
  name: string;
502
1389
  };
1390
+ /** @description Form step output for workflow decisions.
1391
+ *
1392
+ * # Field Name Restrictions
1393
+ *
1394
+ * The `fields` HashMap is flattened during serialization. Form field names must not conflict
1395
+ * with the reserved field name "status" (or "status" in camelCase), as this would create duplicate
1396
+ * keys in the serialized JSON output, resulting in invalid JSON. */
1397
+ FormStepOutput: {
1398
+ status: components["schemas"]["ResultStatus"];
1399
+ } & {
1400
+ [key: string]: unknown;
1401
+ };
1402
+ GeolocationConfig: {
1403
+ /** @example true */
1404
+ ipValidation?: boolean;
1405
+ /** @example { "default": "Next step" } */
1406
+ labels?: {
1407
+ [key: string]: string;
1408
+ };
1409
+ /** @example true */
1410
+ locationCrossCheck?: boolean;
1411
+ /** @example true */
1412
+ vpnDetection?: boolean;
1413
+ };
1414
+ GeolocationCoordinates: {
1415
+ /** Format: double */
1416
+ accuracy: number;
1417
+ /** Format: double */
1418
+ latitude: number;
1419
+ /** Format: double */
1420
+ longitude: number;
1421
+ };
1422
+ GeolocationResult: {
1423
+ blacklistedIp: boolean;
1424
+ country?: string | null;
1425
+ /** Format: date-time */
1426
+ createdAt?: string | null;
1427
+ deviceFingerprint?: string | null;
1428
+ /** Format: uuid */
1429
+ flowResultId: string;
1430
+ flowStep?: Omit<components["schemas"]["FlowStep"], "type"> | null;
1431
+ /** Format: uuid */
1432
+ flowStepId?: string | null;
1433
+ /** Format: uuid */
1434
+ id: string;
1435
+ ipAddress?: string | null;
1436
+ reason?: string | null;
1437
+ status: components["schemas"]["ResultStatus"];
1438
+ /** Format: date-time */
1439
+ updatedAt?: string | null;
1440
+ /** Format: uuid */
1441
+ verificationRequestId?: string | null;
1442
+ vpn: boolean;
1443
+ };
1444
+ /** @description Geolocation step output for workflow decisions. */
1445
+ GeolocationStepOutput: {
1446
+ blacklistedIp?: boolean;
1447
+ country?: string | null;
1448
+ deviceFingerprint?: string | null;
1449
+ ipAddress?: string | null;
1450
+ vpn?: boolean;
1451
+ };
503
1452
  GetApiKeyResponse: {
504
1453
  apiKey: components["schemas"]["ZypheApiKey"];
505
1454
  };
@@ -511,76 +1460,345 @@ export interface components {
511
1460
  };
512
1461
  GetFullFlowResponse: {
513
1462
  flow: components["schemas"]["Flow"];
1463
+ flowPartnerOrganizationsNames?: string[] | null;
1464
+ /** Format: uuid */
1465
+ organizationId: string;
514
1466
  organizationName: string;
515
1467
  settings: components["schemas"]["Settings"];
516
1468
  };
1469
+ /** @description Response to the `liveness-challenge` endpoint.
1470
+ *
1471
+ * The `mode` discriminant tells the client which capture flow to perform:
1472
+ * - `"ACTIVE"` — head-movement challenge; the client captures movements and
1473
+ * uploads movement images + video + calibration image.
1474
+ * - `"PASSIVE"` — selfie-only; the client uploads only a calibration image.
1475
+ * No movements are required. */
1476
+ GetLivenessChallengeResponse: {
1477
+ calibrationImage: components["schemas"]["LivenessUploadUrl"];
1478
+ /** Format: uuid */
1479
+ id: string;
1480
+ /** @enum {string} */
1481
+ mode: "ACTIVE";
1482
+ /** Format: int64 */
1483
+ movementDurationMs: number;
1484
+ movementImages: components["schemas"]["LivenessUploadUrl"][];
1485
+ movements: components["schemas"]["HeadMovement"][];
1486
+ rotationThresholds: components["schemas"]["RotationThresholds"];
1487
+ rotationThresholdsDiagonal: components["schemas"]["RotationThresholds"];
1488
+ video: components["schemas"]["LivenessUploadUrl"];
1489
+ } | {
1490
+ calibrationImage: components["schemas"]["LivenessUploadUrl"];
1491
+ /** Format: uuid */
1492
+ id: string;
1493
+ /** @enum {string} */
1494
+ mode: "PASSIVE";
1495
+ };
1496
+ GetNextStepPayload: {
1497
+ /** @description Email address of the user whose verification progress should be queried. */
1498
+ email: string;
1499
+ };
1500
+ GetNextStepResponse: {
1501
+ /** @description Actions that were automatically executed as part of flow evaluation (e.g. status transitions). */
1502
+ executedActions?: components["schemas"]["ExecutedAction"][];
1503
+ /** @description Whether the user has completed all required steps in the flow. */
1504
+ isCompleted: boolean;
1505
+ nextStep?: Omit<components["schemas"]["FlowStep"], "type"> | null;
1506
+ };
517
1507
  GetVerificationRequestResponse: {
518
1508
  identity: components["schemas"]["Identity"];
1509
+ passkey?: components["schemas"]["VaultUnlockPasskeyData"] | null;
519
1510
  verificationRequest: components["schemas"]["VerificationRequest"];
520
1511
  };
1512
+ /**
1513
+ * @description Represents the different head movements that can be requested in a liveness challenge
1514
+ * @enum {string}
1515
+ */
1516
+ HeadMovement: "up" | "up-right" | "right" | "down-right" | "down" | "down-left" | "left" | "up-left";
521
1517
  Identity: {
522
1518
  /** Format: date-time */
523
1519
  createdAt?: string | null;
1520
+ /** Format: uuid */
524
1521
  defaultOrganizationId?: string | null;
525
- email: string;
1522
+ email?: string | null;
526
1523
  emailVerified: boolean;
1524
+ /** Format: uuid */
527
1525
  id: string;
528
1526
  isActive: boolean;
529
1527
  role: components["schemas"]["Role"];
1528
+ settings: components["schemas"]["IdentitySettings"];
530
1529
  /** Format: date-time */
531
1530
  updatedAt?: string | null;
532
1531
  zid: string;
533
1532
  };
534
- Image: {
1533
+ IdentitySettings: {
1534
+ lastEnvironmentIsSandbox?: boolean;
1535
+ locale: components["schemas"]["Locale"];
1536
+ };
1537
+ /** @description Result of an image quality check.
1538
+ *
1539
+ * # Deserialization
1540
+ *
1541
+ * Supports both new abstract format and legacy Regula format:
1542
+ *
1543
+ * **New format:**
1544
+ * ```json
1545
+ * { "checkType": "focus", "result": "passed", "probability": 97 }
1546
+ * ```
1547
+ *
1548
+ * **Legacy Regula format (single item from 'list'):**
1549
+ * ```json
1550
+ * { "type": 1, "result": 0, "probability": 97, "featureType": 0, "mean": 0.0, "stdDev": 0.0 }
1551
+ * ``` */
1552
+ ImageQualityCheckResult: {
1553
+ checkType: components["schemas"]["ImageQualityCheckType"];
535
1554
  /** Format: int32 */
536
- containerType: number;
537
- /** Format: int64 */
538
- lightIndex: number;
539
- /** Format: int64 */
540
- pageIndex: number;
541
- source: string;
542
- value: string;
543
- };
1555
+ probability?: number | null;
1556
+ result: components["schemas"]["CheckStatus"];
1557
+ };
1558
+ /**
1559
+ * @description Types of image quality checks.
1560
+ *
1561
+ * # Deserialization
1562
+ *
1563
+ * Supports both string format and legacy Regula integer type codes:
1564
+ * - 0 = Glare (ImageGlares)
1565
+ * - 1 = Focus (ImageFocus)
1566
+ * - 2 = Resolution (ImageResolution)
1567
+ * - 3 = Colorness (ImageColorness)
1568
+ * - 4 = Perspective (ImagePerspective)
1569
+ * - 5 = Bounds (ImageBounds)
1570
+ * - 6 = ScreenCapture (ImageScreenCapture)
1571
+ * - 7 = Portrait (ImagePortrait)
1572
+ * @enum {string}
1573
+ */
1574
+ ImageQualityCheckType: "glare" | "focus" | "resolution" | "colorness" | "perspective" | "bounds" | "screen_capture" | "portrait" | "image_quality" | "unknown";
544
1575
  InputField: {
545
1576
  label: {
546
1577
  [key: string]: string;
547
1578
  };
548
1579
  name: string;
549
- options: {
1580
+ options: unknown;
1581
+ required: boolean;
1582
+ /** @enum {string} */
1583
+ type: "date";
1584
+ value?: unknown;
1585
+ } | {
1586
+ label: {
550
1587
  [key: string]: string;
551
1588
  };
1589
+ name: string;
1590
+ options: unknown;
552
1591
  required: boolean;
553
- type: components["schemas"]["InputFieldType"];
1592
+ /** @enum {string} */
1593
+ type: "text";
554
1594
  value?: unknown;
555
- };
556
- /** @enum {string} */
557
- InputFieldType: "date" | "text" | "textarea" | "checkbox";
558
- KybConfig: {
559
- kycFlowId: string;
560
- /** @example { "default": "Next step" } */
561
- labels?: {
1595
+ } | {
1596
+ label: {
562
1597
  [key: string]: string;
563
1598
  };
564
- /**
565
- * Format: int32
566
- * @default 10
567
- * @example 5
568
- */
569
- maxFileUploads: number;
570
- /**
571
- * Format: int32
572
- * @default 10
573
- * @example 3
574
- */
575
- maxUbos: number;
576
- };
1599
+ name: string;
1600
+ options: unknown;
1601
+ required: boolean;
1602
+ /** @enum {string} */
1603
+ type: "textarea";
1604
+ value?: unknown;
1605
+ } | {
1606
+ label: {
1607
+ [key: string]: string;
1608
+ };
1609
+ name: string;
1610
+ options: unknown;
1611
+ required: boolean;
1612
+ /** @enum {string} */
1613
+ type: "checkbox";
1614
+ value?: unknown;
1615
+ } | {
1616
+ label: {
1617
+ [key: string]: string;
1618
+ };
1619
+ name: string;
1620
+ options: components["schemas"]["FileOptions"];
1621
+ required: boolean;
1622
+ /** @enum {string} */
1623
+ type: "file";
1624
+ value?: unknown;
1625
+ } | {
1626
+ label: {
1627
+ [key: string]: string;
1628
+ };
1629
+ name: string;
1630
+ /** @description Option labels for select fields: maps option value/UUID to localized labels */
1631
+ optionLabels: {
1632
+ [key: string]: {
1633
+ [key: string]: string;
1634
+ };
1635
+ };
1636
+ options: components["schemas"]["SelectOptions"];
1637
+ required: boolean;
1638
+ /** @enum {string} */
1639
+ type: "select";
1640
+ value?: unknown;
1641
+ } | {
1642
+ label: {
1643
+ [key: string]: string;
1644
+ };
1645
+ name: string;
1646
+ options: unknown;
1647
+ required: boolean;
1648
+ /** @enum {string} */
1649
+ type: "place";
1650
+ value?: unknown;
1651
+ };
1652
+ InputFieldOptions: components["schemas"]["FileOptions"] | components["schemas"]["SelectOptions"] | unknown;
1653
+ /** @enum {string} */
1654
+ InputFieldType: "date" | "text" | "textarea" | "checkbox" | "file" | "select" | "place";
1655
+ /** @description Input image for document scanning. */
1656
+ InputImage: {
1657
+ pageIndex: components["schemas"]["InputImagePageIndex"];
1658
+ /** @description Image source identifier */
1659
+ source: string;
1660
+ /** @description Base64-encoded image data */
1661
+ value: string;
1662
+ };
1663
+ /**
1664
+ * @description Page index for input images.
1665
+ *
1666
+ * Serialized as camelCase strings for frontend compatibility:
1667
+ * "front" and "back".
1668
+ * @enum {string}
1669
+ */
1670
+ InputImagePageIndex: "front" | "back";
1671
+ KybActivityLogEntry: {
1672
+ /** Format: uuid */
1673
+ actorIdentityId?: string | null;
1674
+ actorIdentityZid?: string | null;
1675
+ /** Format: date-time */
1676
+ createdAt?: string | null;
1677
+ details: unknown;
1678
+ eventType: string;
1679
+ /** Format: uuid */
1680
+ id: string;
1681
+ /** Format: uuid */
1682
+ kybResultId: string;
1683
+ };
1684
+ KybCommunication: {
1685
+ body: string;
1686
+ /** Format: uuid */
1687
+ documentRequestId?: string | null;
1688
+ /** Format: uuid */
1689
+ id: string;
1690
+ /** Format: uuid */
1691
+ kybResultId: string;
1692
+ recipientEmail: string;
1693
+ /** Format: uuid */
1694
+ senderIdentityId: string;
1695
+ /** Format: date-time */
1696
+ sentAt?: string | null;
1697
+ subject: string;
1698
+ };
1699
+ KybConfig: {
1700
+ articlesOfAssociation?: components["schemas"]["DocumentConfig"] | null;
1701
+ certificateOfIncorporation?: components["schemas"]["DocumentConfig"] | null;
1702
+ /**
1703
+ * @default false
1704
+ * @example false
1705
+ */
1706
+ collectDirectors: boolean;
1707
+ customDocuments?: components["schemas"]["CustomDocumentConfig"][] | null;
1708
+ /** Format: uuid */
1709
+ kycFlowId: string;
1710
+ /** @example { "default": "Next step" } */
1711
+ labels?: {
1712
+ [key: string]: string;
1713
+ };
1714
+ /**
1715
+ * Format: int32
1716
+ * @default 10
1717
+ * @example 3
1718
+ */
1719
+ maxDirectors: number;
1720
+ /**
1721
+ * Format: int32
1722
+ * @default 10
1723
+ * @example 5
1724
+ */
1725
+ maxFileUploads: number;
1726
+ /**
1727
+ * Format: int32
1728
+ * @default 10
1729
+ * @example 3
1730
+ */
1731
+ maxUbos: number;
1732
+ organizationalStructureChart?: components["schemas"]["DocumentConfig"] | null;
1733
+ };
1734
+ KybDocumentRequest: {
1735
+ /** @description Clarification field keys requested for review (for clarification requests only). */
1736
+ clarificationFields?: string[] | null;
1737
+ clarificationResponse?: components["schemas"]["BusinessInformationClarificationResponse"] | null;
1738
+ /** Format: date-time */
1739
+ createdAt?: string | null;
1740
+ description?: string | null;
1741
+ documentName: string;
1742
+ /** @description Per-field review statuses for clarification requests.
1743
+ * Keys are field names (e.g. "companyName"), values are the review status for that field. */
1744
+ fieldStatuses?: {
1745
+ [key: string]: components["schemas"]["FieldReviewStatus"];
1746
+ } | null;
1747
+ /** Format: date-time */
1748
+ fulfilledAt?: string | null;
1749
+ /** Format: uuid */
1750
+ id: string;
1751
+ /** Format: uuid */
1752
+ kybResultId: string;
1753
+ presignedUrl?: string | null;
1754
+ /** @description Snapshot of old business information field values before the client submitted updated values.
1755
+ * Keys are field names, values are the previous string values. */
1756
+ previousValues?: {
1757
+ [key: string]: string;
1758
+ } | null;
1759
+ requestType: components["schemas"]["KybDocumentRequestType"];
1760
+ /** Format: uuid */
1761
+ requestedByIdentityId: string;
1762
+ reviewReason?: components["schemas"]["KybDocumentReviewReason"] | null;
1763
+ status: components["schemas"]["KybDocumentRequestStatus"];
1764
+ /** Format: date-time */
1765
+ updatedAt?: string | null;
1766
+ uploadedFilename?: string | null;
1767
+ uploadedS3Key?: string | null;
1768
+ };
1769
+ /** @enum {string} */
1770
+ KybDocumentRequestStatus: "PENDING" | "UPLOADED" | "APPROVED" | "REJECTED";
1771
+ /**
1772
+ * @description The type of a KYB document request.
1773
+ *
1774
+ * - `Standard` — operator requests a named document (e.g. certificate of incorporation). The client uploads a file.
1775
+ * - `Clarification` — operator requests the client to re-confirm or update specific business information fields.
1776
+ * Supports per-field review via `field_statuses`.
1777
+ * @enum {string}
1778
+ */
1779
+ KybDocumentRequestType: "STANDARD" | "CLARIFICATION";
1780
+ KybDocumentReviewReason: string | components["schemas"]["BusinessInformationClarificationResponse"];
577
1781
  KybResult: {
1782
+ /** Format: date-time */
1783
+ assignedAt?: string | null;
1784
+ /** Format: uuid */
1785
+ assignedToIdentityId?: string | null;
578
1786
  businessInformation?: components["schemas"]["BusinessInformation"] | null;
1787
+ businessInformationVerification?: {
1788
+ [key: string]: components["schemas"]["BusinessInfoFieldVerification"];
1789
+ } | null;
579
1790
  /** Format: date-time */
580
1791
  createdAt?: string | null;
1792
+ directorDefinitions?: components["schemas"]["DirectorDefinition"][] | null;
581
1793
  documentUploads?: components["schemas"]["DocumentUpload"][] | null;
582
1794
  flowStep?: Omit<components["schemas"]["FlowStep"], "type"> | null;
1795
+ /** Format: uuid */
1796
+ flowStepId?: string | null;
1797
+ /** Format: date-time */
1798
+ fundedAt?: string | null;
1799
+ /** Format: uuid */
583
1800
  id: string;
1801
+ nextAction?: components["schemas"]["NextAction"] | null;
584
1802
  pepAndSanctionsStatus: components["schemas"]["PepAndSanctionsStatus"];
585
1803
  reason?: string | null;
586
1804
  report?: string | null;
@@ -588,10 +1806,159 @@ export interface components {
588
1806
  uboDefinitions?: components["schemas"]["UboDefinition"][] | null;
589
1807
  /** Format: date-time */
590
1808
  updatedAt?: string | null;
1809
+ /** Format: uuid */
591
1810
  verificationRequestId?: string | null;
592
1811
  };
1812
+ /** @description KYB (Know Your Business) step output for workflow decisions. */
1813
+ KybStepOutput: {
1814
+ businessName?: string | null;
1815
+ country?: string | null;
1816
+ moderationStatus?: components["schemas"]["ModerationResultStatus"] | null;
1817
+ pepAndSanctionsStatus?: components["schemas"]["PepAndSanctionsStatus"] | null;
1818
+ registrationNumber?: string | null;
1819
+ status: components["schemas"]["ResultStatus"];
1820
+ };
1821
+ /** @enum {string} */
1822
+ Likelihood: "No Match" | "Very Low" | "low" | "medium" | "high" | "Very High" | "Exact Match";
1823
+ ListAllFlowResultsResponse: {
1824
+ page: components["schemas"]["FlowResult"][];
1825
+ /** Format: int64 */
1826
+ totalCount: number;
1827
+ };
1828
+ ListAllUsersResponse: {
1829
+ page: components["schemas"]["Identity"][];
1830
+ /** Format: int64 */
1831
+ totalCount: number;
1832
+ };
1833
+ ListOrganizationApiKeysResponse: {
1834
+ page: components["schemas"]["ZypheApiKey"][];
1835
+ /** Format: int64 */
1836
+ totalCount: number;
1837
+ };
1838
+ ListOrganizationFlowResultHistoryResponse: {
1839
+ page: components["schemas"]["VerificationRequest"][];
1840
+ /** Format: int64 */
1841
+ totalCount: number;
1842
+ };
1843
+ ListOrganizationFlowResultsResponse: {
1844
+ page: components["schemas"]["FlowResult"][];
1845
+ /** Format: int64 */
1846
+ totalCount: number;
1847
+ };
1848
+ ListOrganizationFlowsResponse: {
1849
+ page: components["schemas"]["Flow"][];
1850
+ /** Format: int64 */
1851
+ totalCount: number;
1852
+ };
1853
+ ListOrganizationFormsResponse: {
1854
+ page: components["schemas"]["Form"][];
1855
+ /** Format: int64 */
1856
+ totalCount: number;
1857
+ };
1858
+ ListOrganizationInvitesResponse: {
1859
+ page: components["schemas"]["OrganizationInvite"][];
1860
+ /** Format: int64 */
1861
+ totalCount: number;
1862
+ };
1863
+ ListOrganizationUsersResponse: {
1864
+ page: components["schemas"]["Identity"][];
1865
+ /** Format: int64 */
1866
+ totalCount: number;
1867
+ };
1868
+ ListOrganizationVerificationRequestsResponse: {
1869
+ page: components["schemas"]["VerificationRequest"][];
1870
+ /** Format: int64 */
1871
+ totalCount: number;
1872
+ };
1873
+ ListOrganizationsResponse: {
1874
+ page: components["schemas"]["Organization"][];
1875
+ /** Format: int64 */
1876
+ totalCount: number;
1877
+ };
1878
+ ListScreeningDetailsResponse: {
1879
+ page: components["schemas"]["MatchReportData"][];
1880
+ /** Format: int64 */
1881
+ totalCount: number;
1882
+ };
1883
+ ListSharedKycResultsResponse: {
1884
+ page: components["schemas"]["FlowResult"][];
1885
+ /** Format: int64 */
1886
+ totalCount: number;
1887
+ };
1888
+ ListUserInvitesResponse: {
1889
+ page: components["schemas"]["OrganizationInvite"][];
1890
+ /** Format: int64 */
1891
+ totalCount: number;
1892
+ };
1893
+ LivenessConfig: {
1894
+ /** @description When `true` the liveness step also performs a biometric match against the stored portrait.
1895
+ * Set to `false` to keep the liveness UX but skip biometric verification. */
1896
+ biometricCheckEnabled?: boolean | null;
1897
+ /** Format: uuid */
1898
+ documentStepId: string;
1899
+ /** @example { "en_button_label": "Next step" } */
1900
+ labels?: {
1901
+ [key: string]: string;
1902
+ };
1903
+ /**
1904
+ * Format: int32
1905
+ * @example 5
1906
+ */
1907
+ maxAttempts?: number | null;
1908
+ /** @description When `true`, passive liveness (selfie-only, no head movements) is used instead
1909
+ * of active challenge-based liveness. Configured by admin only. Defaults to `false`. */
1910
+ passiveLiveness?: boolean;
1911
+ performAntispoof?: boolean | null;
1912
+ thresholds?: {
1913
+ [key: string]: number;
1914
+ } | null;
1915
+ };
1916
+ /** @enum {string} */
1917
+ LivenessConfigThreshold: "portraitMatchPercent" | "biometricMatchPercent";
1918
+ /** @description Liveness check step output for workflow decisions. */
1919
+ LivenessStepOutput: {
1920
+ status: components["schemas"]["ResultStatus"];
1921
+ };
1922
+ LivenessUploadUrl: {
1923
+ presignedUrl: string;
1924
+ s3Key: string;
1925
+ };
1926
+ /**
1927
+ * @description Locale identifier
1928
+ * @enum {string}
1929
+ */
1930
+ Locale: "en" | "it" | "de" | "es" | "fr" | "hi" | "id" | "pt";
1931
+ /**
1932
+ * @description Logical operators for workflow branching.
1933
+ * @enum {string}
1934
+ */
1935
+ LogicalOperator: "BRANCH" | "SWITCH" | "MERGE" | "PARALLEL_SPLIT" | "PARALLEL_JOIN";
593
1936
  /** @enum {string} */
594
- Locale: "en";
1937
+ ManualReviewResultStatus: "approved" | "rejected" | "failed";
1938
+ MatchDetail: {
1939
+ internalInfo?: string | null;
1940
+ matchCriteria?: string | null;
1941
+ /** Format: int32 */
1942
+ matchCriteriaNumeric?: number | null;
1943
+ matchedEntity?: string | null;
1944
+ };
1945
+ MatchReportData: {
1946
+ category?: string | null;
1947
+ database?: string | null;
1948
+ description?: string | null;
1949
+ entity_id?: string | null;
1950
+ entity_name?: string | null;
1951
+ likelihood?: components["schemas"]["Likelihood"] | null;
1952
+ mapped_entity_details?: components["schemas"]["ScreeningDetailsMappedEntityDetails"] | null;
1953
+ match_id?: string | null;
1954
+ match_level?: string | null;
1955
+ references?: string[] | null;
1956
+ /** Format: double */
1957
+ score?: number | null;
1958
+ sources?: string[] | null;
1959
+ sub_category?: string | null;
1960
+ updated_date?: string | null;
1961
+ };
595
1962
  ModerateKybResultPayload: {
596
1963
  pepAndSanctionsStatus?: components["schemas"]["PepAndSanctionsStatusField"] | null;
597
1964
  /** Format: binary */
@@ -602,14 +1969,34 @@ export interface components {
602
1969
  success: boolean;
603
1970
  };
604
1971
  /** @enum {string} */
605
- ModerationResultStatus: "ACQUIRING" | "PENDING_MODERATION" | "SUCCESS" | "FAILED";
1972
+ ModerationResultStatus: "ACQUIRING" | "PENDING_MODERATION" | "REVIEW_REQUIRED" | "SUCCESS" | "FAILED";
606
1973
  ModerationResultStatusField: components["schemas"]["ModerationResultStatus"];
1974
+ /** @enum {string} */
1975
+ NextAction: "CLIENT" | "RM" | "COMPLIANCE" | "SUPPORT" | "FUNDED" | "DENIED";
1976
+ /** @description Position of a node in the visual editor. */
1977
+ NodePosition: {
1978
+ /**
1979
+ * Format: double
1980
+ * @description X coordinate
1981
+ */
1982
+ x: number;
1983
+ /**
1984
+ * Format: double
1985
+ * @description Y coordinate
1986
+ */
1987
+ y: number;
1988
+ };
1989
+ NormalizedEmail: {
1990
+ /** @example user@example.com */
1991
+ value: string;
1992
+ };
607
1993
  Organization: {
608
1994
  address: string;
609
1995
  country: string;
610
1996
  /** Format: date-time */
611
1997
  createdAt?: string | null;
612
1998
  email: string;
1999
+ /** Format: uuid */
613
2000
  id: string;
614
2001
  industry?: string | null;
615
2002
  name: string;
@@ -622,6 +2009,42 @@ export interface components {
622
2009
  updatedAt?: string | null;
623
2010
  website: string;
624
2011
  };
2012
+ OrganizationInvite: {
2013
+ /** Format: date-time */
2014
+ createdAt?: string | null;
2015
+ email: string;
2016
+ /** Format: uuid */
2017
+ id: string;
2018
+ inviter?: components["schemas"]["OrganizationInviterInfo"] | null;
2019
+ /** Format: uuid */
2020
+ organizationId: string;
2021
+ revoked?: boolean | null;
2022
+ /** Format: date-time */
2023
+ revokedAt?: string | null;
2024
+ role: components["schemas"]["Role"];
2025
+ used: boolean;
2026
+ /** Format: date-time */
2027
+ validBefore: string;
2028
+ };
2029
+ OrganizationInviterInfo: {
2030
+ email?: string | null;
2031
+ role: components["schemas"]["Role"];
2032
+ };
2033
+ PagedActivityLogResponse: {
2034
+ page: components["schemas"]["KybActivityLogEntry"][];
2035
+ /** Format: int64 */
2036
+ totalCount: number;
2037
+ };
2038
+ PagedCommunicationsResponse: {
2039
+ page: components["schemas"]["KybCommunication"][];
2040
+ /** Format: int64 */
2041
+ totalCount: number;
2042
+ };
2043
+ PagedDocumentRequestsResponse: {
2044
+ page: components["schemas"]["KybDocumentRequest"][];
2045
+ /** Format: int64 */
2046
+ totalCount: number;
2047
+ };
625
2048
  Pagination: {
626
2049
  /** @example createdAt:in:2025-01-01,2025-01-02;updatedAt:gt:2025-01-02 */
627
2050
  filter?: string;
@@ -650,6 +2073,32 @@ export interface components {
650
2073
  placeOfBirth?: string;
651
2074
  surname: string;
652
2075
  };
2076
+ PhoneConfig: {
2077
+ /** @example { "default": "Next step" } */
2078
+ labels?: {
2079
+ [key: string]: string;
2080
+ };
2081
+ };
2082
+ PhoneResult: {
2083
+ /** Format: date-time */
2084
+ createdAt?: string | null;
2085
+ /** Format: uuid */
2086
+ flowResultId: string;
2087
+ flowStep?: Omit<components["schemas"]["FlowStep"], "type"> | null;
2088
+ /** Format: uuid */
2089
+ flowStepId?: string | null;
2090
+ /** Format: uuid */
2091
+ id: string;
2092
+ phoneNumberLast4: string;
2093
+ status: components["schemas"]["ResultStatus"];
2094
+ /** Format: date-time */
2095
+ updatedAt?: string | null;
2096
+ /** Format: uuid */
2097
+ verificationRequestId?: string | null;
2098
+ };
2099
+ PhoneStepOutput: {
2100
+ status: components["schemas"]["ResultStatus"];
2101
+ };
653
2102
  Plaintext: {
654
2103
  text: {
655
2104
  [key: string]: string;
@@ -668,82 +2117,298 @@ export interface components {
668
2117
  maxAgeDays?: number;
669
2118
  };
670
2119
  /** @enum {string} */
671
- PoaDocumentType: "PAY_SLIP" | "UTILITY_BILL" | "FINANCIAL_DOCUMENT" | "RECEIPT" | "INVOICE" | "BANK_DOCUMENT";
2120
+ PoaDocumentType: "PAY_SLIP" | "UTILITY_BILL" | "FINANCIAL_DOCUMENT" | "RECEIPT" | "INVOICE" | "BANK_DOCUMENT" | "TAX_CLEARANCE_CERTIFICATE" | "HOUSEHOLD_REGISTER" | "CERTIFICATE_OF_RESIDENCE" | "OTHER";
672
2121
  /** @enum {string} */
673
- PoaReason: "UNKNOWN" | "DOCUMENT_TYPE_NOT_ALLOWED" | "NAME_MISMATCH" | "DATE_TOO_OLD" | "INVALID_DOCUMENT";
2122
+ PoaReason: "UNKNOWN" | "DOCUMENT_TYPE_NOT_ALLOWED" | "NAME_MISMATCH" | "DATE_TOO_OLD" | "INVALID_DOCUMENT" | "UNRECOGNIZED_ADDRESS";
674
2123
  PoaResult: {
675
2124
  /** Format: date-time */
676
2125
  checkedAt?: string | null;
677
2126
  /** Format: date-time */
678
2127
  createdAt: string;
2128
+ /** Format: uuid */
679
2129
  documentId?: string | null;
680
2130
  documentType?: components["schemas"]["PoaDocumentType"] | null;
681
2131
  flowStep?: Omit<components["schemas"]["FlowStep"], "type"> | null;
2132
+ /** Format: uuid */
2133
+ flowStepId?: string | null;
2134
+ /** Format: uuid */
682
2135
  id: string;
683
2136
  reason?: components["schemas"]["PoaReason"] | null;
684
2137
  status: components["schemas"]["ResultStatus"];
685
2138
  /** Format: date-time */
686
2139
  updatedAt: string;
2140
+ /** Format: uuid */
687
2141
  verificationRequestId?: string | null;
688
2142
  };
2143
+ PoaStepOutput: {
2144
+ /** Format: int64 */
2145
+ documentAgeDays?: number | null;
2146
+ documentType?: string | null;
2147
+ status: components["schemas"]["ResultStatus"];
2148
+ };
2149
+ /** @description Typed representation of process_additional_data stored in DV results.
2150
+ *
2151
+ * This struct captures all the additional data associated with document
2152
+ * verification processing, including document scan status, image quality
2153
+ * checks, security checks, and liveness data.
2154
+ *
2155
+ * # Deserialization
2156
+ *
2157
+ * Supports both new abstract format and legacy Regula format. The main difference
2158
+ * is in the `imageQuality` field:
2159
+ *
2160
+ * **New format:**
2161
+ * ```json
2162
+ * {
2163
+ * "imageQuality": [
2164
+ * { "checkType": "focus", "result": "passed", "probability": 97 }
2165
+ * ]
2166
+ * }
2167
+ * ```
2168
+ *
2169
+ * **Legacy Regula format:**
2170
+ * ```json
2171
+ * {
2172
+ * "imageQuality": [
2173
+ * {
2174
+ * "count": 6,
2175
+ * "list": [
2176
+ * { "type": 1, "result": 0, "probability": 97, ... }
2177
+ * ],
2178
+ * "result": 0
2179
+ * }
2180
+ * ]
2181
+ * }
2182
+ * ``` */
2183
+ ProcessAdditionalData: {
2184
+ autoOneClickKycData?: components["schemas"]["AutoOneClickKycData"] | null;
2185
+ /** @description Biometric check data (for face matching results) */
2186
+ biometricCheckData?: unknown;
2187
+ /** @description Image quality check results */
2188
+ imageQuality?: components["schemas"]["ImageQualityCheckResult"][] | null;
2189
+ /** @description Raw liveness data from face verification */
2190
+ rawLivenessData?: unknown;
2191
+ /** @description Security check results (mapped by check type) */
2192
+ securityChecks?: {
2193
+ [key: string]: string;
2194
+ } | null;
2195
+ status?: components["schemas"]["DocumentScanStatus"] | null;
2196
+ };
689
2197
  ProcessAddressDocumentRequest: {
690
2198
  /** Format: binary */
691
2199
  file: Blob;
692
2200
  };
693
2201
  ProcessAddressDocumentResponse: {
694
2202
  jobId: string;
2203
+ /** Format: uuid */
2204
+ verificationRequestId: string;
2205
+ };
2206
+ ProcessDocumentSelectionPayload: {
2207
+ /** @description ISO 3166-1 alpha-2 country code of the document to be verified (e.g. `"US"`, `"GB"`). Optional — omit to allow any country. */
2208
+ country?: string | null;
2209
+ /**
2210
+ * Format: int64
2211
+ * @description Numeric document type identifier. Optional — omit to allow any document type.
2212
+ */
2213
+ documentType?: number | null;
2214
+ };
2215
+ ProcessDocumentSelectionResponse: {
2216
+ /**
2217
+ * Format: uuid
2218
+ * @description The ID of the verification request that was updated.
2219
+ */
2220
+ verificationRequestId: string;
2221
+ };
2222
+ ProcessIdentityDocumentPayload: {
2223
+ allowedDocumentTypes?: number[];
2224
+ browser?: string | null;
2225
+ countryCode: string;
2226
+ /** Format: int64 */
2227
+ forceDocumentType?: number | null;
2228
+ /** @description Images to process (base64-encoded, provider-agnostic format).
2229
+ * Either images OR (session_token + interview_id) must be provided, not both. */
2230
+ images?: components["schemas"]["InputImage"][];
2231
+ /** @description Interview/session ID for session-based providers (e.g. Incode).
2232
+ * If provided along with session_token, the backend will fetch results from the provider. */
2233
+ interviewId?: string | null;
2234
+ platform?: string | null;
2235
+ provinceCode?: string | null;
2236
+ requiredDocumentFields?: {
2237
+ [key: string]: string;
2238
+ };
2239
+ /** @description Session token for session-based providers (e.g. Incode JWT).
2240
+ * If provided along with interview_id, the backend will fetch results from the provider. */
2241
+ sessionToken?: string | null;
2242
+ };
2243
+ ProcessIdentityDocumentResponse: {
2244
+ jobId: string;
2245
+ /** Format: uuid */
695
2246
  verificationRequestId: string;
696
- websocketNamespace: string;
2247
+ };
2248
+ ProcessImagesOverrides: {
2249
+ authParams?: {
2250
+ [key: string]: unknown;
2251
+ } | null;
2252
+ checkAuth?: boolean | null;
2253
+ scenario?: string | null;
2254
+ };
2255
+ ProcessLivenessPayload: {
2256
+ /** Format: uuid */
2257
+ challengeId: string;
2258
+ /** Format: int32 */
2259
+ movementImagesQuantity: number;
2260
+ };
2261
+ ProcessLivenessResponse: {
2262
+ jobId: string;
2263
+ /** Format: uuid */
2264
+ verificationRequestId: string;
2265
+ };
2266
+ /** @enum {string} */
2267
+ ProductType: "UNKNOWN" | "DOCSCAN" | "LIVENESS" | "POA" | "KYB" | "KYC_PASSPORT" | "SPID" | "PHONE" | "WALLET" | "EXPORT_API" | "EXPORT_UI" | "BUSINESS_VERIFICATION" | "FLOW_BUILDER" | "GEOLOCATION" | "FORM";
2268
+ /** @enum {string} */
2269
+ RequiredDocumentField: "firstName" | "middleName" | "lastName" | "dateOfBirth" | "phone" | "email" | "street" | "city" | "state" | "postcode" | "country" | "socialSecurityNumber";
2270
+ ResultControlOperation: {
2271
+ /** Format: uuid */
2272
+ identityId: string;
2273
+ operation: components["schemas"]["ResultControlOperationType"];
2274
+ /** Format: date-time */
2275
+ timestamp: string;
2276
+ zid: string;
2277
+ };
2278
+ ResultControlOperationType: {
2279
+ approve: {
2280
+ reason?: string | null;
2281
+ };
2282
+ } | {
2283
+ reject: {
2284
+ reason?: string | null;
2285
+ };
2286
+ } | {
2287
+ escalate: {
2288
+ reason?: string | null;
2289
+ };
697
2290
  };
698
2291
  /** @enum {string} */
699
- ProductType: "UNKNOWN" | "KYC" | "KYB" | "PRODUCTION_MODE" | "SPID" | "EXPORT_API" | "EXPORT_UI";
2292
+ ResultStatus: "PASSED" | "FAILED" | "PARTIAL" | "REQUIRES_MANUAL_REVIEW" | "REQUIRES_ADMIN_REVIEW";
2293
+ ReviewSuggestion: {
2294
+ /** Format: double */
2295
+ confidence: number;
2296
+ suggestion: components["schemas"]["ManualReviewResultStatus"];
2297
+ };
700
2298
  /** @enum {string} */
701
- ResultStatus: "PASSED" | "FAILED";
2299
+ RiskLevel: "low" | "medium" | "high" | "critical";
2300
+ RiskScore: {
2301
+ riskLevel: components["schemas"]["RiskLevel"];
2302
+ /** Format: int32 */
2303
+ riskScorePercent: number;
2304
+ sourcesCount: number;
2305
+ };
702
2306
  /** @enum {string} */
703
- Role: "GUEST" | "USER" | "ADMIN";
2307
+ Role: "ANONYMOUS" | "GUEST" | "ORG_ADMIN" | "ORG_OPERATOR" | "ORG_DEVELOPER" | "AML_OFFICER" | "PARTNER_USER" | "PLATFORM_OPERATOR" | "PLATFORM_SALES" | "PLATFORM_ADMIN" | "SDK";
2308
+ /** @description Rotation thresholds (in degrees) for head movement verification */
2309
+ RotationThresholds: {
2310
+ /** Format: float */
2311
+ down: number;
2312
+ /** Format: float */
2313
+ left: number;
2314
+ /** Format: float */
2315
+ right: number;
2316
+ /** Format: float */
2317
+ up: number;
2318
+ };
2319
+ ScreeningDetailsMappedEntityDetails: {
2320
+ addressLine1?: components["schemas"]["MatchDetail"] | null;
2321
+ city?: components["schemas"]["MatchDetail"] | null;
2322
+ country?: components["schemas"]["MatchDetail"] | null;
2323
+ dateOfBirth?: components["schemas"]["MatchDetail"] | null;
2324
+ firstName?: components["schemas"]["MatchDetail"] | null;
2325
+ id?: components["schemas"]["MatchDetail"] | null;
2326
+ lastName?: components["schemas"]["MatchDetail"] | null;
2327
+ middleName?: components["schemas"]["MatchDetail"] | null;
2328
+ passportNumber?: components["schemas"]["MatchDetail"] | null;
2329
+ postalCode?: components["schemas"]["MatchDetail"] | null;
2330
+ };
704
2331
  SdkCreateVerificationRequestPayload: {
2332
+ /** @description Arbitrary key-value metadata to attach to this verification request. */
705
2333
  customData?: {
706
2334
  [key: string]: unknown;
707
2335
  } | null;
2336
+ /** @description Email address of the user being verified. */
708
2337
  email: string;
2338
+ /**
2339
+ * Format: uuid
2340
+ * @description The ID of the flow step to start or resume for this user.
2341
+ */
709
2342
  flowStepId: string;
710
2343
  };
711
2344
  SdkCreateVerificationRequestResponse: {
712
- email: string;
2345
+ /** @description The email address associated with the verified user's identity, if available. */
2346
+ email?: string | null;
2347
+ /** @description Slug of the flow this verification request belongs to. */
713
2348
  flowSlug: string;
2349
+ /** @description Slug of the current flow step (the first incomplete step). */
714
2350
  flowStepSlug: string;
2351
+ /** @description Whether this verification request was created in sandbox mode. */
715
2352
  isSandbox: boolean;
716
2353
  verificationRequest: components["schemas"]["VerificationRequest"];
717
- websocketNamespace: string;
2354
+ /** @description Zyphe user identifier (ZID) for the verified user. */
2355
+ zid: string;
2356
+ /** @description Short-lived signed access token used to authenticate subsequent SDK calls on behalf of this user. */
2357
+ zypheAccessSig: string;
2358
+ /** @description JWT for the verified user's session. Pass this as a bearer token for user-scoped SDK calls. */
718
2359
  zypheToken: string;
719
2360
  };
2361
+ /**
2362
+ * @description Canonical security/authenticity check types.
2363
+ * @enum {string}
2364
+ */
2365
+ 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";
2366
+ SelectOptions: {
2367
+ isOtherAllowed: boolean;
2368
+ values: string[];
2369
+ };
720
2370
  Settings: {
721
2371
  /** Format: date-time */
722
2372
  createdAt?: string | null;
2373
+ delayFlowResults?: boolean | null;
2374
+ emailNotifications?: string[] | null;
723
2375
  extendedWebhook?: boolean | null;
724
2376
  primaryColor?: string | null;
725
2377
  profileImage?: string | null;
2378
+ published?: boolean;
726
2379
  secondaryColor?: string | null;
2380
+ skipSignedAccess?: boolean;
2381
+ slackNotifications?: string[] | null;
2382
+ telegramNotifications?: string[] | null;
727
2383
  /** Format: date-time */
728
2384
  updatedAt?: string | null;
729
2385
  webhookSecret?: string | null;
2386
+ webhookWithLegacy?: boolean | null;
730
2387
  };
2388
+ /** @enum {string} */
2389
+ SiwxChain: "ETHEREUM" | "ETHEREUM_TESTNET" | "SOLANA" | "SOLANA_TESTNET";
731
2390
  SpidConfig: {
732
2391
  /** @example { "default": "Next step" } */
733
2392
  labels?: {
734
2393
  [key: string]: string;
735
2394
  };
736
2395
  };
2396
+ /** @enum {string} */
2397
+ SpidDocumentType: "ITALIAN_SPID" | "AADHAAR";
737
2398
  SpidResult: {
738
2399
  /** Format: date-time */
739
2400
  createdAt?: string | null;
740
2401
  flowStep?: Omit<components["schemas"]["FlowStep"], "type"> | null;
2402
+ /** Format: uuid */
2403
+ flowStepId?: string | null;
2404
+ /** Format: uuid */
741
2405
  id: string;
742
2406
  path: string;
743
2407
  reason?: string | null;
744
2408
  status: components["schemas"]["ResultStatus"];
745
2409
  /** Format: date-time */
746
2410
  updatedAt?: string | null;
2411
+ /** Format: uuid */
747
2412
  verificationRequestId?: string | null;
748
2413
  };
749
2414
  SpidResultDetails: {
@@ -766,6 +2431,31 @@ export interface components {
766
2431
  spidCode?: string | null;
767
2432
  username?: string | null;
768
2433
  };
2434
+ SpidStepOutput: {
2435
+ status: components["schemas"]["ResultStatus"];
2436
+ };
2437
+ StartGeolocationVerificationRequest: Record<string, never>;
2438
+ StartGeolocationVerificationResponse: {
2439
+ nonce: string;
2440
+ /** Format: uuid */
2441
+ verificationRequestId: string;
2442
+ };
2443
+ StartPhoneVerificationRequest: {
2444
+ phoneNumberE164: string;
2445
+ };
2446
+ StartPhoneVerificationResponse: {
2447
+ /** Format: uuid */
2448
+ verificationRequestId: string;
2449
+ };
2450
+ StartWalletVerificationRequest: {
2451
+ address: string;
2452
+ chain: components["schemas"]["SiwxChain"];
2453
+ };
2454
+ StartWalletVerificationResponse: {
2455
+ message: string;
2456
+ /** Format: uuid */
2457
+ verificationRequestId: string;
2458
+ };
769
2459
  UboDefinition: {
770
2460
  country: string;
771
2461
  dateOfBirth: string;
@@ -774,8 +2464,23 @@ export interface components {
774
2464
  gender: string;
775
2465
  lastName: string;
776
2466
  };
2467
+ /**
2468
+ * Format: uuid
2469
+ * @description A UUID string
2470
+ */
2471
+ Uuid: string;
777
2472
  /** @enum {string} */
778
- 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";
2473
+ 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";
2474
+ VaultUnlockPasskeyData: {
2475
+ /** @description Passkey challenge for vault unlock (base64url) */
2476
+ challenge: string;
2477
+ /** @description Credential ID for vault unlock (base64url-encoded) */
2478
+ credentialId: string;
2479
+ /** @description Passkey authentication options for vault unlock */
2480
+ options: Record<string, never>;
2481
+ /** @description PRF salt for vault unlock (base64url) */
2482
+ prfSalt: string;
2483
+ };
779
2484
  VerificationRequest: {
780
2485
  amlResult?: components["schemas"]["AmlResult"] | null;
781
2486
  /** Format: int32 */
@@ -785,59 +2490,798 @@ export interface components {
785
2490
  customData: {
786
2491
  [key: string]: unknown;
787
2492
  };
788
- dvResult?: components["schemas"]["DvResult"] | null;
789
- flowId: string;
790
- flowStepId: string;
791
- formResult?: components["schemas"]["FormResult"] | null;
792
- id: string;
793
- identity?: components["schemas"]["Identity"] | null;
794
- identityId: string;
795
- kybResult?: components["schemas"]["KybResult"] | null;
796
- organizationId: string;
797
- poaResult?: components["schemas"]["PoaResult"] | null;
798
- reason?: string | null;
799
- spidResult?: components["schemas"]["SpidResult"] | null;
800
- status: components["schemas"]["VerificationRequestStatus"];
801
- /** Format: date-time */
802
- updatedAt?: string | null;
2493
+ dvResult?: components["schemas"]["DvResult"] | null;
2494
+ /** Format: uuid */
2495
+ flowId: string;
2496
+ flowStep?: Omit<components["schemas"]["FlowStep"], "type"> | null;
2497
+ /** Format: uuid */
2498
+ flowStepId: string;
2499
+ formResult?: components["schemas"]["FormResult"] | null;
2500
+ geolocationResult?: components["schemas"]["GeolocationResult"] | null;
2501
+ /** Format: uuid */
2502
+ id: string;
2503
+ identity?: components["schemas"]["Identity"] | null;
2504
+ /** Format: uuid */
2505
+ identityId: string;
2506
+ kybResult?: components["schemas"]["KybResult"] | null;
2507
+ /** Format: uuid */
2508
+ organizationId: string;
2509
+ phoneResult?: components["schemas"]["PhoneResult"] | null;
2510
+ poaResult?: components["schemas"]["PoaResult"] | null;
2511
+ reason?: string | null;
2512
+ replayerZid?: string | null;
2513
+ spidResult?: components["schemas"]["SpidResult"] | null;
2514
+ status: components["schemas"]["VerificationRequestStatus"];
2515
+ /** Format: date-time */
2516
+ updatedAt?: string | null;
2517
+ walletResult?: components["schemas"]["WalletResult"] | null;
2518
+ };
2519
+ /** @enum {string} */
2520
+ VerificationRequestStatus: "PENDING" | "COMPLETED" | "FAILED" | "CANCELLED" | "QUEUED" | "PROCESSING" | "REQUIRES_MANUAL_REVIEW" | "REQUIRES_ADMIN_REVIEW" | "REJECTED";
2521
+ VerifyGeolocationProofRequest: {
2522
+ cloudflareTrace?: components["schemas"]["CloudflareTracePayload"] | null;
2523
+ coords: components["schemas"]["GeolocationCoordinates"];
2524
+ deviceFingerprint: string;
2525
+ isSecureContext: boolean;
2526
+ nonce: string;
2527
+ permissionStatus: string;
2528
+ rtcCandidates: string[];
2529
+ /** Format: int64 */
2530
+ timestamp: number;
2531
+ };
2532
+ VerifyGeolocationProofResponse: {
2533
+ /** Format: uuid */
2534
+ verificationRequestId: string;
2535
+ };
2536
+ VerifyPhoneCodeRequest: {
2537
+ code: string;
2538
+ phoneNumberE164: string;
2539
+ };
2540
+ VerifyPhoneCodeResponse: {
2541
+ /** Format: uuid */
2542
+ verificationRequestId: string;
2543
+ };
2544
+ VerifyWalletSignatureRequest: {
2545
+ address: string;
2546
+ chain: components["schemas"]["SiwxChain"];
2547
+ signature: string;
2548
+ };
2549
+ VerifyWalletSignatureResponse: {
2550
+ /** Format: uuid */
2551
+ verificationRequestId: string;
2552
+ };
2553
+ WalletConfig: {
2554
+ chains: components["schemas"]["SiwxChain"][];
2555
+ /** @example { "default": "Next step" } */
2556
+ labels?: {
2557
+ [key: string]: string;
2558
+ };
2559
+ };
2560
+ WalletResult: {
2561
+ /** Format: date-time */
2562
+ createdAt?: string | null;
2563
+ /** Format: uuid */
2564
+ flowResultId: string;
2565
+ flowStep?: Omit<components["schemas"]["FlowStep"], "type"> | null;
2566
+ /** Format: uuid */
2567
+ flowStepId?: string | null;
2568
+ /** Format: uuid */
2569
+ id: string;
2570
+ message: string;
2571
+ reason?: string | null;
2572
+ signature: string;
2573
+ status: components["schemas"]["ResultStatus"];
2574
+ /** Format: date-time */
2575
+ updatedAt?: string | null;
2576
+ /** Format: uuid */
2577
+ verificationRequestId?: string | null;
2578
+ walletAddress: string;
2579
+ walletChain: string;
2580
+ };
2581
+ WalletStepOutput: {
2582
+ status: components["schemas"]["ResultStatus"];
2583
+ };
2584
+ /** @description Context data available to JDM rules during flow evaluation.
2585
+ *
2586
+ * This structure is serialized to JSON and passed to the Zen Engine for evaluation.
2587
+ * JDM rules can access any field to make routing decisions.
2588
+ *
2589
+ * # Example JDM Access Patterns
2590
+ *
2591
+ * In JDM rules, you can access:
2592
+ * - `identity.email` - User's email address
2593
+ * - `jdmData.my_step_slug.data.issuingCountry` - Output from a previous step
2594
+ * - `customData.someKey` - Custom data passed during flow
2595
+ *
2596
+ * # Serialization
2597
+ *
2598
+ * Fields are serialized with camelCase naming to match JDM conventions. */
2599
+ WorkflowContext: {
2600
+ /** @description AML screening results */
2601
+ amlResults: components["schemas"]["AmlResult"][];
2602
+ /** @description Custom data passed during flow execution */
2603
+ customData: {
2604
+ [key: string]: unknown;
2605
+ };
2606
+ /** @description Document verification results */
2607
+ dvResults: components["schemas"]["DvResult"][];
2608
+ /** @description Form submission results */
2609
+ formResults: components["schemas"]["FormResult"][];
2610
+ identity?: components["schemas"]["Identity"] | null;
2611
+ /** @description Structured data from previous step executions for JDM consumption */
2612
+ jdmData?: {
2613
+ [key: string]: components["schemas"]["FlowStepOutput"];
2614
+ };
2615
+ /** @description KYB verification results */
2616
+ kybResults: components["schemas"]["KybResult"][];
2617
+ /** @description Phone verification results */
2618
+ phoneResults: components["schemas"]["PhoneResult"][];
2619
+ /** @description Proof of address results */
2620
+ poaResults: components["schemas"]["PoaResult"][];
2621
+ /** @description SPID verification results */
2622
+ spidResults: components["schemas"]["SpidResult"][];
2623
+ /** @description Wallet verification results */
2624
+ walletResults: components["schemas"]["WalletResult"][];
2625
+ };
2626
+ /** @description An edge connecting two nodes in the workflow graph.
2627
+ *
2628
+ * Edges represent the flow of control between nodes.
2629
+ * For conditional branching (from Operator nodes), edges can have labels
2630
+ * like "true" or "false" to indicate which path to take. */
2631
+ WorkflowEdge: {
2632
+ /**
2633
+ * Format: uuid
2634
+ * @description Unique identifier for this edge.
2635
+ */
2636
+ id: string;
2637
+ /** @description Optional label for conditional edges.
2638
+ *
2639
+ * For edges from Branch operator nodes:
2640
+ * - "true": taken when condition evaluates to true
2641
+ * - "false": taken when condition evaluates to false */
2642
+ label?: string | null;
2643
+ /**
2644
+ * Format: uuid
2645
+ * @description The ID of the source node (where this edge starts).
2646
+ */
2647
+ sourceId: string;
2648
+ /**
2649
+ * Format: uuid
2650
+ * @description The ID of the target node (where this edge ends).
2651
+ */
2652
+ targetId: string;
2653
+ };
2654
+ /** @description Result of a workflow evaluation.
2655
+ *
2656
+ * The Zen Engine returns this structure after evaluating a JDM against a context.
2657
+ * The `next_step_slug` field determines which flow step to execute next. */
2658
+ WorkflowEvaluationResult: unknown & {
2659
+ /** @description Slug of the next step to execute.
2660
+ * If None, the flow continues with linear order or completes. */
2661
+ nextStepSlug?: string | null;
2662
+ };
2663
+ /** @description A workflow graph consisting of nodes and edges.
2664
+ *
2665
+ * The graph defines the structure of a workflow:
2666
+ * - One Start node where execution begins
2667
+ * - One or more End nodes where execution terminates
2668
+ * - Step nodes representing actual workflow steps
2669
+ * - Operator nodes for conditional branching
2670
+ * - Edges connecting nodes together */
2671
+ WorkflowGraph: {
2672
+ /** @description All edges connecting nodes. */
2673
+ edges?: components["schemas"]["WorkflowEdge"][];
2674
+ /** @description All nodes in the graph. */
2675
+ nodes?: components["schemas"]["WorkflowNode"][];
2676
+ };
2677
+ /** @description A node in the workflow graph.
2678
+ *
2679
+ * Nodes represent different types of elements in a workflow:
2680
+ * - `Start`: The entry point of the workflow
2681
+ * - `End`: A terminal point where the workflow completes
2682
+ * - `Step`: A workflow step that executes some action
2683
+ * - `Operator`: A conditional branching point */
2684
+ WorkflowNode: {
2685
+ /**
2686
+ * Format: uuid
2687
+ * @description Unique identifier for this node.
2688
+ */
2689
+ id: string;
2690
+ metadata?: components["schemas"]["WorkflowNodeMetadata"] | null;
2691
+ /** @enum {string} */
2692
+ type: "START";
2693
+ } | {
2694
+ /**
2695
+ * Format: uuid
2696
+ * @description Unique identifier for this node.
2697
+ */
2698
+ id: string;
2699
+ metadata?: components["schemas"]["WorkflowNodeMetadata"] | null;
2700
+ /** @enum {string} */
2701
+ type: "END";
2702
+ } | {
2703
+ /**
2704
+ * Format: uuid
2705
+ * @description Unique identifier for this node.
2706
+ */
2707
+ id: string;
2708
+ metadata?: components["schemas"]["WorkflowNodeMetadata"] | null;
2709
+ /** @description The slug of the flow step this node represents. */
2710
+ stepSlug: string;
2711
+ /** @enum {string} */
2712
+ type: "STEP";
2713
+ } | {
2714
+ /** @description The branches to evaluate (required for Switch operator). */
2715
+ branches?: components["schemas"]["BranchCondition"][] | null;
2716
+ condition?: Omit<components["schemas"]["Condition"], "op"> | null;
2717
+ /**
2718
+ * Format: uuid
2719
+ * @description Unique identifier for this node.
2720
+ */
2721
+ id: string;
2722
+ metadata?: components["schemas"]["WorkflowNodeMetadata"] | null;
2723
+ operator: components["schemas"]["LogicalOperator"];
2724
+ /** @enum {string} */
2725
+ type: "OPERATOR";
2726
+ } | {
2727
+ config: components["schemas"]["ActionConfig"];
2728
+ /**
2729
+ * Format: uuid
2730
+ * @description Unique identifier for this node.
2731
+ */
2732
+ id: string;
2733
+ metadata?: components["schemas"]["WorkflowNodeMetadata"] | null;
2734
+ /** @enum {string} */
2735
+ type: "ACTION";
2736
+ };
2737
+ /** @description Metadata for a workflow node.
2738
+ *
2739
+ * Contains UI-specific information like position that doesn't affect execution logic. */
2740
+ WorkflowNodeMetadata: {
2741
+ position?: components["schemas"]["NodePosition"] | null;
2742
+ } & {
2743
+ [key: string]: unknown;
2744
+ };
2745
+ /** @description A dynamic value that can be used in workflow conditions and inputs.
2746
+ *
2747
+ * This enum represents all possible value types that can flow through
2748
+ * the workflow engine, including primitives, arrays, and objects.
2749
+ *
2750
+ * # Serialization
2751
+ *
2752
+ * Uses `untagged` serialization to match JSON semantics directly:
2753
+ * - `null` → `Null`
2754
+ * - `true`/`false` → `Bool`
2755
+ * - integers → `Integer`
2756
+ * - floats → `Float`
2757
+ * - strings → `String`
2758
+ * - arrays → `Array`
2759
+ * - objects → `Object` */
2760
+ WorkflowValue: (Record<string, never> | null) | boolean | number | string | components["schemas"]["WorkflowValue"][] | {
2761
+ [key: string]: components["schemas"]["WorkflowValue"];
2762
+ };
2763
+ ZypheApiKey: {
2764
+ allowedOrigins: string[];
2765
+ /** Format: date-time */
2766
+ createdAt?: string | null;
2767
+ description?: string | null;
2768
+ /** Format: uuid */
2769
+ id: string;
2770
+ key: string;
2771
+ keyType: components["schemas"]["ApiKeyType"];
2772
+ name?: string | null;
2773
+ options: {
2774
+ [key: string]: unknown;
2775
+ };
2776
+ organization?: components["schemas"]["Organization"] | null;
2777
+ /** Format: uuid */
2778
+ organizationId: string;
2779
+ /** Format: date-time */
2780
+ updatedAt?: string | null;
2781
+ };
2782
+ /**
2783
+ * @description Locale identifier
2784
+ * @enum {string}
2785
+ */
2786
+ "zyphe_shared.types.Locale": "en" | "it" | "de" | "es" | "fr" | "hi" | "id" | "pt";
2787
+ };
2788
+ responses: never;
2789
+ parameters: never;
2790
+ requestBodies: never;
2791
+ headers: never;
2792
+ pathItems: never;
2793
+ }
2794
+ export type $defs = Record<string, never>;
2795
+ export interface operations {
2796
+ get_full_flow_details: {
2797
+ parameters: {
2798
+ query: {
2799
+ sandbox: boolean;
2800
+ locale?: components["schemas"]["Locale"];
2801
+ /** @description Signed access token (JWS). Required only when flow signed access is enabled. */
2802
+ zypheAccessSig?: string | null;
2803
+ };
2804
+ header?: never;
2805
+ path: {
2806
+ /** @description Flow slug */
2807
+ slug: string;
2808
+ };
2809
+ cookie?: never;
2810
+ };
2811
+ requestBody?: never;
2812
+ responses: {
2813
+ 200: {
2814
+ headers: {
2815
+ [name: string]: unknown;
2816
+ };
2817
+ content: {
2818
+ "application/json": components["schemas"]["GetFullFlowResponse"];
2819
+ };
2820
+ };
2821
+ 404: {
2822
+ headers: {
2823
+ [name: string]: unknown;
2824
+ };
2825
+ content: {
2826
+ "application/json": components["schemas"]["BaxeError"];
2827
+ };
2828
+ };
2829
+ 500: {
2830
+ headers: {
2831
+ [name: string]: unknown;
2832
+ };
2833
+ content: {
2834
+ "application/json": components["schemas"]["BaxeError"];
2835
+ };
2836
+ };
2837
+ };
2838
+ };
2839
+ get_verification_request: {
2840
+ parameters: {
2841
+ query?: {
2842
+ /** @description Whether to use sandbox mode */
2843
+ sandbox?: boolean | null;
2844
+ };
2845
+ header?: never;
2846
+ path: {
2847
+ /**
2848
+ * @description Flow ID
2849
+ * @example 123e4567-e89b-12d3-a456-426614174000
2850
+ */
2851
+ flow_id: string;
2852
+ /**
2853
+ * @description Verification Request ID
2854
+ * @example 123e4567-e89b-12d3-a456-426614174000
2855
+ */
2856
+ verification_request_id: string;
2857
+ };
2858
+ cookie?: never;
2859
+ };
2860
+ requestBody?: never;
2861
+ responses: {
2862
+ 200: {
2863
+ headers: {
2864
+ [name: string]: unknown;
2865
+ };
2866
+ content: {
2867
+ "application/json": components["schemas"]["GetVerificationRequestResponse"];
2868
+ };
2869
+ };
2870
+ 404: {
2871
+ headers: {
2872
+ [name: string]: unknown;
2873
+ };
2874
+ content: {
2875
+ "application/json": components["schemas"]["BaxeError"];
2876
+ };
2877
+ };
2878
+ 500: {
2879
+ headers: {
2880
+ [name: string]: unknown;
2881
+ };
2882
+ content: {
2883
+ "application/json": components["schemas"]["BaxeError"];
2884
+ };
2885
+ };
2886
+ };
2887
+ };
2888
+ sdk_create_verification_request: {
2889
+ parameters: {
2890
+ query: {
2891
+ sandbox: boolean;
2892
+ locale?: components["schemas"]["Locale"];
2893
+ };
2894
+ header?: never;
2895
+ path: {
2896
+ /**
2897
+ * @description Flow ID
2898
+ * @example 123e4567-e89b-12d3-a456-426614174000
2899
+ */
2900
+ flow_id: string;
2901
+ };
2902
+ cookie?: never;
2903
+ };
2904
+ requestBody: {
2905
+ content: {
2906
+ "application/json": components["schemas"]["SdkCreateVerificationRequestPayload"];
2907
+ };
2908
+ };
2909
+ responses: {
2910
+ 200: {
2911
+ headers: {
2912
+ [name: string]: unknown;
2913
+ };
2914
+ content: {
2915
+ "application/json": components["schemas"]["SdkCreateVerificationRequestResponse"];
2916
+ };
2917
+ };
2918
+ 400: {
2919
+ headers: {
2920
+ [name: string]: unknown;
2921
+ };
2922
+ content: {
2923
+ "application/json": components["schemas"]["BaxeError"];
2924
+ };
2925
+ };
2926
+ 409: {
2927
+ headers: {
2928
+ [name: string]: unknown;
2929
+ };
2930
+ content: {
2931
+ "application/json": components["schemas"]["BaxeError"];
2932
+ };
2933
+ };
2934
+ 500: {
2935
+ headers: {
2936
+ [name: string]: unknown;
2937
+ };
2938
+ content: {
2939
+ "application/json": components["schemas"]["BaxeError"];
2940
+ };
2941
+ };
2942
+ };
2943
+ };
2944
+ sdk_get_next_step: {
2945
+ parameters: {
2946
+ query: {
2947
+ sandbox: boolean;
2948
+ locale?: components["schemas"]["Locale"];
2949
+ /** @description Email address of the user whose verification progress should be queried. */
2950
+ email: string;
2951
+ };
2952
+ header?: never;
2953
+ path: {
2954
+ /**
2955
+ * @description Flow ID
2956
+ * @example 123e4567-e89b-12d3-a456-426614174000
2957
+ */
2958
+ flow_id: string;
2959
+ };
2960
+ cookie?: never;
2961
+ };
2962
+ requestBody?: never;
2963
+ responses: {
2964
+ 200: {
2965
+ headers: {
2966
+ [name: string]: unknown;
2967
+ };
2968
+ content: {
2969
+ "application/json": components["schemas"]["GetNextStepResponse"];
2970
+ };
2971
+ };
2972
+ 400: {
2973
+ headers: {
2974
+ [name: string]: unknown;
2975
+ };
2976
+ content: {
2977
+ "application/json": components["schemas"]["BaxeError"];
2978
+ };
2979
+ };
2980
+ 404: {
2981
+ headers: {
2982
+ [name: string]: unknown;
2983
+ };
2984
+ content: {
2985
+ "application/json": components["schemas"]["BaxeError"];
2986
+ };
2987
+ };
2988
+ 500: {
2989
+ headers: {
2990
+ [name: string]: unknown;
2991
+ };
2992
+ content: {
2993
+ "application/json": components["schemas"]["BaxeError"];
2994
+ };
2995
+ };
2996
+ };
2997
+ };
2998
+ sdk_process_dv_document: {
2999
+ parameters: {
3000
+ query?: {
3001
+ /** @description Use sandbox environment */
3002
+ sandbox?: boolean | null;
3003
+ };
3004
+ header?: never;
3005
+ path: {
3006
+ /** @description Flow ID */
3007
+ flow_id: string;
3008
+ /** @description Verification Request ID */
3009
+ verification_request_id: string;
3010
+ };
3011
+ cookie?: never;
3012
+ };
3013
+ requestBody: {
3014
+ content: {
3015
+ "application/json": components["schemas"]["ProcessIdentityDocumentPayload"];
3016
+ };
3017
+ };
3018
+ responses: {
3019
+ 202: {
3020
+ headers: {
3021
+ [name: string]: unknown;
3022
+ };
3023
+ content: {
3024
+ "application/json": components["schemas"]["ProcessIdentityDocumentResponse"];
3025
+ };
3026
+ };
3027
+ 400: {
3028
+ headers: {
3029
+ [name: string]: unknown;
3030
+ };
3031
+ content: {
3032
+ "application/json": components["schemas"]["BaxeError"];
3033
+ };
3034
+ };
3035
+ 500: {
3036
+ headers: {
3037
+ [name: string]: unknown;
3038
+ };
3039
+ content: {
3040
+ "application/json": components["schemas"]["BaxeError"];
3041
+ };
3042
+ };
3043
+ };
3044
+ };
3045
+ sdk_get_liveness_challenge: {
3046
+ parameters: {
3047
+ query?: {
3048
+ /** @description Use sandbox environment */
3049
+ sandbox?: boolean | null;
3050
+ };
3051
+ header?: never;
3052
+ path: {
3053
+ /** @description Flow ID */
3054
+ flow_id: string;
3055
+ /** @description Verification Request ID */
3056
+ verification_request_id: string;
3057
+ };
3058
+ cookie?: never;
3059
+ };
3060
+ requestBody?: never;
3061
+ responses: {
3062
+ 200: {
3063
+ headers: {
3064
+ [name: string]: unknown;
3065
+ };
3066
+ content: {
3067
+ "application/json": components["schemas"]["GetLivenessChallengeResponse"];
3068
+ };
3069
+ };
3070
+ 500: {
3071
+ headers: {
3072
+ [name: string]: unknown;
3073
+ };
3074
+ content: {
3075
+ "application/json": components["schemas"]["BaxeError"];
3076
+ };
3077
+ };
3078
+ };
3079
+ };
3080
+ sdk_process_dv_liveness: {
3081
+ parameters: {
3082
+ query?: {
3083
+ /** @description Use sandbox environment */
3084
+ sandbox?: boolean | null;
3085
+ };
3086
+ header?: never;
3087
+ path: {
3088
+ /** @description Flow ID */
3089
+ flow_id: string;
3090
+ /** @description Verification Request ID */
3091
+ verification_request_id: string;
3092
+ };
3093
+ cookie?: never;
3094
+ };
3095
+ requestBody: {
3096
+ content: {
3097
+ "application/json": components["schemas"]["ProcessLivenessPayload"];
3098
+ };
3099
+ };
3100
+ responses: {
3101
+ 202: {
3102
+ headers: {
3103
+ [name: string]: unknown;
3104
+ };
3105
+ content: {
3106
+ "application/json": components["schemas"]["ProcessLivenessResponse"];
3107
+ };
3108
+ };
3109
+ 400: {
3110
+ headers: {
3111
+ [name: string]: unknown;
3112
+ };
3113
+ content: {
3114
+ "application/json": components["schemas"]["BaxeError"];
3115
+ };
3116
+ };
3117
+ 500: {
3118
+ headers: {
3119
+ [name: string]: unknown;
3120
+ };
3121
+ content: {
3122
+ "application/json": components["schemas"]["BaxeError"];
3123
+ };
3124
+ };
3125
+ };
3126
+ };
3127
+ sdk_process_dv_selection: {
3128
+ parameters: {
3129
+ query?: {
3130
+ /** @description Use sandbox environment */
3131
+ sandbox?: boolean | null;
3132
+ };
3133
+ header?: never;
3134
+ path: {
3135
+ /** @description Flow ID */
3136
+ flow_id: string;
3137
+ /** @description Verification Request ID */
3138
+ verification_request_id: string;
3139
+ };
3140
+ cookie?: never;
3141
+ };
3142
+ requestBody: {
3143
+ content: {
3144
+ "application/json": components["schemas"]["ProcessDocumentSelectionPayload"];
3145
+ };
3146
+ };
3147
+ responses: {
3148
+ 200: {
3149
+ headers: {
3150
+ [name: string]: unknown;
3151
+ };
3152
+ content: {
3153
+ "application/json": components["schemas"]["ProcessDocumentSelectionResponse"];
3154
+ };
3155
+ };
3156
+ 400: {
3157
+ headers: {
3158
+ [name: string]: unknown;
3159
+ };
3160
+ content: {
3161
+ "application/json": components["schemas"]["BaxeError"];
3162
+ };
3163
+ };
3164
+ 500: {
3165
+ headers: {
3166
+ [name: string]: unknown;
3167
+ };
3168
+ content: {
3169
+ "application/json": components["schemas"]["BaxeError"];
3170
+ };
3171
+ };
3172
+ };
3173
+ };
3174
+ get_completed_verification_requests: {
3175
+ parameters: {
3176
+ query: {
3177
+ sandbox: boolean;
3178
+ locale?: components["schemas"]["Locale"];
3179
+ };
3180
+ header?: never;
3181
+ path: {
3182
+ /**
3183
+ * @description Flow ID
3184
+ * @example 123e4567-e89b-12d3-a456-426614174000
3185
+ */
3186
+ flow_id: string;
3187
+ };
3188
+ cookie?: never;
3189
+ };
3190
+ requestBody?: never;
3191
+ responses: {
3192
+ 200: {
3193
+ headers: {
3194
+ [name: string]: unknown;
3195
+ };
3196
+ content: {
3197
+ "application/json": components["schemas"]["VerificationRequest"][];
3198
+ };
3199
+ };
3200
+ 500: {
3201
+ headers: {
3202
+ [name: string]: unknown;
3203
+ };
3204
+ content: {
3205
+ "application/json": components["schemas"]["BaxeError"];
3206
+ };
3207
+ };
3208
+ };
3209
+ };
3210
+ sdk_list_flow_results: {
3211
+ parameters: {
3212
+ query: {
3213
+ pagination?: components["schemas"]["Pagination"];
3214
+ sandbox: boolean;
3215
+ locale?: components["schemas"]["Locale"];
3216
+ };
3217
+ header?: never;
3218
+ path: {
3219
+ /** @description Organization ID */
3220
+ organization_id: string;
3221
+ /** @description Flow slug to scope results to */
3222
+ flow_slug: string;
3223
+ };
3224
+ cookie?: never;
803
3225
  };
804
- /** @enum {string} */
805
- VerificationRequestStatus: "PENDING" | "COMPLETED" | "FAILED" | "CANCELLED" | "QUEUED" | "PROCESSING";
806
- ZypheApiKey: {
807
- allowedOrigins: string[];
808
- /** Format: date-time */
809
- createdAt?: string | null;
810
- description?: string | null;
811
- id: string;
812
- key: string;
813
- keyType: string;
814
- name?: string | null;
815
- options: {
816
- [key: string]: unknown;
3226
+ requestBody?: never;
3227
+ responses: {
3228
+ 200: {
3229
+ headers: {
3230
+ [name: string]: unknown;
3231
+ };
3232
+ content: {
3233
+ "application/json": components["schemas"]["ListOrganizationFlowResultsResponse"];
3234
+ };
3235
+ };
3236
+ 400: {
3237
+ headers: {
3238
+ [name: string]: unknown;
3239
+ };
3240
+ content: {
3241
+ "application/json": components["schemas"]["BaxeError"];
3242
+ };
3243
+ };
3244
+ 401: {
3245
+ headers: {
3246
+ [name: string]: unknown;
3247
+ };
3248
+ content: {
3249
+ "application/json": components["schemas"]["BaxeError"];
3250
+ };
3251
+ };
3252
+ 500: {
3253
+ headers: {
3254
+ [name: string]: unknown;
3255
+ };
3256
+ content: {
3257
+ "application/json": components["schemas"]["BaxeError"];
3258
+ };
817
3259
  };
818
- organization?: components["schemas"]["Organization"] | null;
819
- organizationId: string;
820
- /** Format: date-time */
821
- updatedAt?: string | null;
822
3260
  };
823
3261
  };
824
- responses: never;
825
- parameters: never;
826
- requestBodies: never;
827
- headers: never;
828
- pathItems: never;
829
- }
830
- export type $defs = Record<string, never>;
831
- export interface operations {
832
- get_full_flow_details: {
3262
+ get_sdk_flow_result_details: {
833
3263
  parameters: {
834
- query?: {
835
- /** @description Whether to use sandbox mode */
836
- sandbox?: boolean | null;
3264
+ query: {
3265
+ sandbox: boolean;
3266
+ locale?: components["schemas"]["Locale"];
837
3267
  };
838
3268
  header?: never;
839
3269
  path: {
840
- slug: string;
3270
+ /**
3271
+ * @description The ID of the organization
3272
+ * @example 123e4567-e89b-12d3-a456-426614174000
3273
+ */
3274
+ organization_id: string;
3275
+ /**
3276
+ * @description The ID of the flow result
3277
+ * @example 123e4567-e89b-12d3-a456-426614174000
3278
+ */
3279
+ flow_result_id: string;
3280
+ /**
3281
+ * @description The slug of the flow
3282
+ * @example kyc-flow
3283
+ */
3284
+ flow_slug: string;
841
3285
  };
842
3286
  cookie?: never;
843
3287
  };
@@ -848,10 +3292,26 @@ export interface operations {
848
3292
  [name: string]: unknown;
849
3293
  };
850
3294
  content: {
851
- "application/json": components["schemas"]["GetFullFlowResponse"];
3295
+ "application/json": components["schemas"]["FlowResult"];
852
3296
  };
853
3297
  };
854
- 404: {
3298
+ 400: {
3299
+ headers: {
3300
+ [name: string]: unknown;
3301
+ };
3302
+ content: {
3303
+ "application/json": components["schemas"]["BaxeError"];
3304
+ };
3305
+ };
3306
+ 401: {
3307
+ headers: {
3308
+ [name: string]: unknown;
3309
+ };
3310
+ content: {
3311
+ "application/json": components["schemas"]["BaxeError"];
3312
+ };
3313
+ };
3314
+ 403: {
855
3315
  headers: {
856
3316
  [name: string]: unknown;
857
3317
  };
@@ -869,16 +3329,34 @@ export interface operations {
869
3329
  };
870
3330
  };
871
3331
  };
872
- get_verification_request: {
3332
+ get_sdk_dv_result_details: {
873
3333
  parameters: {
874
- query?: {
875
- /** @description Whether to use sandbox mode */
876
- sandbox?: boolean | null;
3334
+ query: {
3335
+ sandbox: boolean;
3336
+ locale?: components["schemas"]["Locale"];
877
3337
  };
878
3338
  header?: never;
879
3339
  path: {
880
- flow_id: string;
881
- verification_request_id: string;
3340
+ /**
3341
+ * @description The ID of the organization
3342
+ * @example 123e4567-e89b-12d3-a456-426614174000
3343
+ */
3344
+ organization_id: string;
3345
+ /**
3346
+ * @description The ID of the flow result
3347
+ * @example 123e4567-e89b-12d3-a456-426614174000
3348
+ */
3349
+ flow_result_id: string;
3350
+ /**
3351
+ * @description The slug of the flow
3352
+ * @example flow-slug
3353
+ */
3354
+ flow_slug: string;
3355
+ /**
3356
+ * @description The ID of the DV result
3357
+ * @example 123e4567-e89b-12d3-a456-426614174000
3358
+ */
3359
+ dv_result_id: string;
882
3360
  };
883
3361
  cookie?: never;
884
3362
  };
@@ -889,7 +3367,7 @@ export interface operations {
889
3367
  [name: string]: unknown;
890
3368
  };
891
3369
  content: {
892
- "application/json": components["schemas"]["GetVerificationRequestResponse"];
3370
+ "application/x-protobuf-stream": string;
893
3371
  };
894
3372
  };
895
3373
  404: {
@@ -910,33 +3388,107 @@ export interface operations {
910
3388
  };
911
3389
  };
912
3390
  };
913
- sdk_create_verification_request: {
3391
+ get_sdk_poa_result_details: {
914
3392
  parameters: {
915
- query?: {
916
- /** @description Whether to use sandbox mode */
917
- sandbox?: boolean | null;
3393
+ query: {
3394
+ sandbox: boolean;
3395
+ locale?: components["schemas"]["Locale"];
918
3396
  };
919
3397
  header?: never;
920
3398
  path: {
921
- flow_id: string;
3399
+ /**
3400
+ * @description The ID of the organization
3401
+ * @example 123e4567-e89b-12d3-a456-426614174000
3402
+ */
3403
+ organization_id: string;
3404
+ /**
3405
+ * @description The ID of the flow result
3406
+ * @example 123e4567-e89b-12d3-a456-426614174000
3407
+ */
3408
+ flow_result_id: string;
3409
+ /**
3410
+ * @description The slug of the flow
3411
+ * @example flow-slug
3412
+ */
3413
+ flow_slug: string;
3414
+ /**
3415
+ * @description The ID of the POA result
3416
+ * @example 123e4567-e89b-12d3-a456-426614174000
3417
+ */
3418
+ poa_result_id: string;
922
3419
  };
923
3420
  cookie?: never;
924
3421
  };
925
- requestBody: {
926
- content: {
927
- "application/json": components["schemas"]["SdkCreateVerificationRequestPayload"];
3422
+ requestBody?: never;
3423
+ responses: {
3424
+ 200: {
3425
+ headers: {
3426
+ [name: string]: unknown;
3427
+ };
3428
+ content: {
3429
+ "application/x-protobuf-stream": string;
3430
+ };
3431
+ };
3432
+ 404: {
3433
+ headers: {
3434
+ [name: string]: unknown;
3435
+ };
3436
+ content: {
3437
+ "application/json": components["schemas"]["BaxeError"];
3438
+ };
3439
+ };
3440
+ 500: {
3441
+ headers: {
3442
+ [name: string]: unknown;
3443
+ };
3444
+ content: {
3445
+ "application/json": components["schemas"]["BaxeError"];
3446
+ };
3447
+ };
3448
+ };
3449
+ };
3450
+ get_sdk_wallet_result_details: {
3451
+ parameters: {
3452
+ query: {
3453
+ sandbox: boolean;
3454
+ locale?: components["schemas"]["Locale"];
3455
+ };
3456
+ header?: never;
3457
+ path: {
3458
+ /**
3459
+ * @description The ID of the organization
3460
+ * @example 123e4567-e89b-12d3-a456-426614174000
3461
+ */
3462
+ organization_id: string;
3463
+ /**
3464
+ * @description The ID of the flow result
3465
+ * @example 123e4567-e89b-12d3-a456-426614174000
3466
+ */
3467
+ flow_result_id: string;
3468
+ /**
3469
+ * @description The slug of the flow
3470
+ * @example flow-slug
3471
+ */
3472
+ flow_slug: string;
3473
+ /**
3474
+ * @description The ID of the wallet result
3475
+ * @example 123e4567-e89b-12d3-a456-426614174000
3476
+ */
3477
+ wallet_result_id: string;
928
3478
  };
3479
+ cookie?: never;
929
3480
  };
3481
+ requestBody?: never;
930
3482
  responses: {
931
3483
  200: {
932
3484
  headers: {
933
3485
  [name: string]: unknown;
934
3486
  };
935
3487
  content: {
936
- "application/json": components["schemas"]["SdkCreateVerificationRequestResponse"];
3488
+ "application/json": components["schemas"]["WalletResult"];
937
3489
  };
938
3490
  };
939
- 400: {
3491
+ 404: {
940
3492
  headers: {
941
3493
  [name: string]: unknown;
942
3494
  };
@@ -944,7 +3496,58 @@ export interface operations {
944
3496
  "application/json": components["schemas"]["BaxeError"];
945
3497
  };
946
3498
  };
947
- 409: {
3499
+ 500: {
3500
+ headers: {
3501
+ [name: string]: unknown;
3502
+ };
3503
+ content: {
3504
+ "application/json": components["schemas"]["BaxeError"];
3505
+ };
3506
+ };
3507
+ };
3508
+ };
3509
+ get_sdk_phone_result_details: {
3510
+ parameters: {
3511
+ query: {
3512
+ sandbox: boolean;
3513
+ locale?: components["schemas"]["Locale"];
3514
+ };
3515
+ header?: never;
3516
+ path: {
3517
+ /**
3518
+ * @description The ID of the organization
3519
+ * @example 123e4567-e89b-12d3-a456-426614174000
3520
+ */
3521
+ organization_id: string;
3522
+ /**
3523
+ * @description The ID of the flow result
3524
+ * @example 123e4567-e89b-12d3-a456-426614174000
3525
+ */
3526
+ flow_result_id: string;
3527
+ /**
3528
+ * @description The slug of the flow
3529
+ * @example flow-slug
3530
+ */
3531
+ flow_slug: string;
3532
+ /**
3533
+ * @description The ID of the phone result
3534
+ * @example 123e4567-e89b-12d3-a456-426614174000
3535
+ */
3536
+ phone_result_id: string;
3537
+ };
3538
+ cookie?: never;
3539
+ };
3540
+ requestBody?: never;
3541
+ responses: {
3542
+ 200: {
3543
+ headers: {
3544
+ [name: string]: unknown;
3545
+ };
3546
+ content: {
3547
+ "application/json": components["schemas"]["PhoneResult"];
3548
+ };
3549
+ };
3550
+ 404: {
948
3551
  headers: {
949
3552
  [name: string]: unknown;
950
3553
  };
@@ -962,15 +3565,34 @@ export interface operations {
962
3565
  };
963
3566
  };
964
3567
  };
965
- get_completed_verification_requests: {
3568
+ get_sdk_form_result_details: {
966
3569
  parameters: {
967
- query?: {
968
- /** @description Whether to use sandbox mode */
969
- sandbox?: boolean | null;
3570
+ query: {
3571
+ sandbox: boolean;
3572
+ locale?: components["schemas"]["Locale"];
970
3573
  };
971
3574
  header?: never;
972
3575
  path: {
973
- flow_id: string;
3576
+ /**
3577
+ * @description The ID of the organization
3578
+ * @example 123e4567-e89b-12d3-a456-426614174000
3579
+ */
3580
+ organization_id: string;
3581
+ /**
3582
+ * @description The ID of the flow result
3583
+ * @example 123e4567-e89b-12d3-a456-426614174000
3584
+ */
3585
+ flow_result_id: string;
3586
+ /**
3587
+ * @description The slug of the flow
3588
+ * @example flow-slug
3589
+ */
3590
+ flow_slug: string;
3591
+ /**
3592
+ * @description The ID of the form result
3593
+ * @example 123e4567-e89b-12d3-a456-426614174000
3594
+ */
3595
+ form_result_id: string;
974
3596
  };
975
3597
  cookie?: never;
976
3598
  };
@@ -981,7 +3603,15 @@ export interface operations {
981
3603
  [name: string]: unknown;
982
3604
  };
983
3605
  content: {
984
- "application/json": components["schemas"]["VerificationRequest"][];
3606
+ "application/json": components["schemas"]["FormResult"];
3607
+ };
3608
+ };
3609
+ 404: {
3610
+ headers: {
3611
+ [name: string]: unknown;
3612
+ };
3613
+ content: {
3614
+ "application/json": components["schemas"]["BaxeError"];
985
3615
  };
986
3616
  };
987
3617
  500: {
@@ -994,15 +3624,23 @@ export interface operations {
994
3624
  };
995
3625
  };
996
3626
  };
997
- get_sdk_flow_result_details: {
3627
+ get_sdk_flow_result_details_deprecated: {
998
3628
  parameters: {
999
- query?: {
1000
- /** @description Whether to use sandbox mode */
1001
- sandbox?: boolean | null;
3629
+ query: {
3630
+ sandbox: boolean;
3631
+ locale?: components["schemas"]["Locale"];
1002
3632
  };
1003
3633
  header?: never;
1004
3634
  path: {
3635
+ /**
3636
+ * @description The ID of the organization
3637
+ * @example 123e4567-e89b-12d3-a456-426614174000
3638
+ */
1005
3639
  organization_id: string;
3640
+ /**
3641
+ * @description The ID of the flow result
3642
+ * @example 123e4567-e89b-12d3-a456-426614174000
3643
+ */
1006
3644
  flow_result_id: string;
1007
3645
  };
1008
3646
  cookie?: never;
@@ -1051,16 +3689,28 @@ export interface operations {
1051
3689
  };
1052
3690
  };
1053
3691
  };
1054
- get_sdk_dv_result_details: {
3692
+ get_sdk_dv_result_details_deprecated: {
1055
3693
  parameters: {
1056
- query?: {
1057
- /** @description Whether to use sandbox mode */
1058
- sandbox?: boolean | null;
3694
+ query: {
3695
+ sandbox: boolean;
3696
+ locale?: components["schemas"]["Locale"];
1059
3697
  };
1060
3698
  header?: never;
1061
3699
  path: {
3700
+ /**
3701
+ * @description The ID of the organization
3702
+ * @example 123e4567-e89b-12d3-a456-426614174000
3703
+ */
1062
3704
  organization_id: string;
3705
+ /**
3706
+ * @description The ID of the flow result
3707
+ * @example 123e4567-e89b-12d3-a456-426614174000
3708
+ */
1063
3709
  flow_result_id: string;
3710
+ /**
3711
+ * @description The ID of the DV result
3712
+ * @example 123e4567-e89b-12d3-a456-426614174000
3713
+ */
1064
3714
  dv_result_id: string;
1065
3715
  };
1066
3716
  cookie?: never;
@@ -1093,4 +3743,58 @@ export interface operations {
1093
3743
  };
1094
3744
  };
1095
3745
  };
3746
+ get_sdk_poa_result_details_deprecated: {
3747
+ parameters: {
3748
+ query: {
3749
+ sandbox: boolean;
3750
+ locale?: components["schemas"]["Locale"];
3751
+ };
3752
+ header?: never;
3753
+ path: {
3754
+ /**
3755
+ * @description The ID of the organization
3756
+ * @example 123e4567-e89b-12d3-a456-426614174000
3757
+ */
3758
+ organization_id: string;
3759
+ /**
3760
+ * @description The ID of the flow result
3761
+ * @example 123e4567-e89b-12d3-a456-426614174000
3762
+ */
3763
+ flow_result_id: string;
3764
+ /**
3765
+ * @description The ID of the POA result
3766
+ * @example 123e4567-e89b-12d3-a456-426614174000
3767
+ */
3768
+ poa_result_id: string;
3769
+ };
3770
+ cookie?: never;
3771
+ };
3772
+ requestBody?: never;
3773
+ responses: {
3774
+ 200: {
3775
+ headers: {
3776
+ [name: string]: unknown;
3777
+ };
3778
+ content: {
3779
+ "application/x-protobuf-stream": string;
3780
+ };
3781
+ };
3782
+ 404: {
3783
+ headers: {
3784
+ [name: string]: unknown;
3785
+ };
3786
+ content: {
3787
+ "application/json": components["schemas"]["BaxeError"];
3788
+ };
3789
+ };
3790
+ 500: {
3791
+ headers: {
3792
+ [name: string]: unknown;
3793
+ };
3794
+ content: {
3795
+ "application/json": components["schemas"]["BaxeError"];
3796
+ };
3797
+ };
3798
+ };
3799
+ };
1096
3800
  }