@zyphe-sdk/core 0.1.17 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +33 -15
- package/dist/index.d.ts +3018 -293
- package/dist/index.js +283 -57
- package/dist/index.js.map +1 -1
- package/dist/openapi.d.ts +1541 -66
- package/dist/openapi.json +4963 -1218
- package/package.json +1 -1
package/dist/openapi.d.ts
CHANGED
|
@@ -63,6 +63,77 @@ export interface paths {
|
|
|
63
63
|
patch?: never;
|
|
64
64
|
trace?: never;
|
|
65
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
|
+
};
|
|
66
137
|
"/flow/{flow_id}/vr/completed": {
|
|
67
138
|
parameters: {
|
|
68
139
|
query?: never;
|
|
@@ -79,6 +150,22 @@ export interface paths {
|
|
|
79
150
|
patch?: never;
|
|
80
151
|
trace?: never;
|
|
81
152
|
};
|
|
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
|
+
};
|
|
82
169
|
"/sdk/organizations/{organization_id}/flow-results/{flow_result_id}/flow/{flow_slug}/details": {
|
|
83
170
|
parameters: {
|
|
84
171
|
query?: never;
|
|
@@ -227,6 +314,45 @@ export interface paths {
|
|
|
227
314
|
export type webhooks = Record<string, never>;
|
|
228
315
|
export interface components {
|
|
229
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
|
+
};
|
|
230
356
|
AddressData: {
|
|
231
357
|
addressLine?: string | null;
|
|
232
358
|
building: string;
|
|
@@ -310,6 +436,11 @@ export interface components {
|
|
|
310
436
|
summary?: components["schemas"]["FieldWithControl"];
|
|
311
437
|
topics?: components["schemas"]["FieldWithControl"];
|
|
312
438
|
};
|
|
439
|
+
AmlQueryMetadata: {
|
|
440
|
+
dateOfBirth: string;
|
|
441
|
+
firstName: string;
|
|
442
|
+
lastName: string;
|
|
443
|
+
};
|
|
313
444
|
AmlResult: {
|
|
314
445
|
/** Format: date-time */
|
|
315
446
|
createdAt: string;
|
|
@@ -329,6 +460,7 @@ export interface components {
|
|
|
329
460
|
/** Format: date-time */
|
|
330
461
|
checkedAt: string;
|
|
331
462
|
controls: components["schemas"]["ResultControlOperation"][];
|
|
463
|
+
query?: components["schemas"]["AmlQueryMetadata"] | null;
|
|
332
464
|
summary: components["schemas"]["AmlCheckSummary"];
|
|
333
465
|
};
|
|
334
466
|
AmlRiskResult: {
|
|
@@ -362,17 +494,67 @@ export interface components {
|
|
|
362
494
|
labels?: {
|
|
363
495
|
[key: string]: string;
|
|
364
496
|
};
|
|
365
|
-
/** @description
|
|
366
|
-
|
|
497
|
+
/** @description Partner flow configurations with step type hints */
|
|
498
|
+
partnerConfigs: components["schemas"]["AutoOneClickPartnerConfig"][];
|
|
367
499
|
/** @description Full partner flow objects (populated by rehydrate_flow_step) */
|
|
368
500
|
partnerFlows?: components["schemas"]["Flow"][] | null;
|
|
369
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
|
+
};
|
|
370
524
|
BaxeError: {
|
|
371
525
|
/** Format: int32 */
|
|
372
526
|
code: number;
|
|
373
527
|
errorTag: components["schemas"]["ErrorTags"];
|
|
374
528
|
message?: string | null;
|
|
375
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";
|
|
376
558
|
BusinessInformation: {
|
|
377
559
|
address: string;
|
|
378
560
|
businessActivity: string;
|
|
@@ -385,6 +567,158 @@ export interface components {
|
|
|
385
567
|
postZipCode: string;
|
|
386
568
|
registrationNumber: string;
|
|
387
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";
|
|
388
722
|
CountriesFilter: {
|
|
389
723
|
accepted: string[];
|
|
390
724
|
blocked: string[];
|
|
@@ -397,7 +731,7 @@ export interface components {
|
|
|
397
731
|
} | null;
|
|
398
732
|
email?: string | null;
|
|
399
733
|
/** Format: uuid */
|
|
400
|
-
flowStepId
|
|
734
|
+
flowStepId?: string | null;
|
|
401
735
|
privacyPolicyAccepted: boolean;
|
|
402
736
|
termsAndConditionsAccepted: boolean;
|
|
403
737
|
};
|
|
@@ -458,21 +792,63 @@ export interface components {
|
|
|
458
792
|
path: string;
|
|
459
793
|
type: string;
|
|
460
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
|
+
};
|
|
461
840
|
DocumentTypeFilter: {
|
|
462
841
|
types: string[];
|
|
463
842
|
};
|
|
464
843
|
DocumentUpload: {
|
|
844
|
+
documentType?: string | null;
|
|
465
845
|
filename: string;
|
|
466
846
|
presignedUrl?: string | null;
|
|
467
847
|
s3Key?: string | null;
|
|
468
848
|
};
|
|
469
849
|
DvConfig: {
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
} | null;
|
|
473
|
-
countriesFilter?: components["schemas"]["CountriesFilter"] | null;
|
|
474
|
-
documentFormatsFilter?: components["schemas"]["DocumentFormatFilter"] | null;
|
|
475
|
-
documentTypesFilter?: components["schemas"]["DocumentTypeFilter"] | null;
|
|
850
|
+
/** Format: uuid */
|
|
851
|
+
documentSelectionStepId?: string;
|
|
476
852
|
/** @example { "en_button_label": "Next step" } */
|
|
477
853
|
labels?: {
|
|
478
854
|
[key: string]: string;
|
|
@@ -493,7 +869,7 @@ export interface components {
|
|
|
493
869
|
/** @enum {string} */
|
|
494
870
|
DvConfigThreshold: "documentScorePercent";
|
|
495
871
|
/** @enum {string} */
|
|
496
|
-
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" | "
|
|
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";
|
|
497
873
|
DvResult: {
|
|
498
874
|
adminComment?: string | null;
|
|
499
875
|
authenticityChecks: number[][];
|
|
@@ -527,9 +903,7 @@ export interface components {
|
|
|
527
903
|
platform?: string | null;
|
|
528
904
|
/** Format: int32 */
|
|
529
905
|
portraitMatchPercent?: number | null;
|
|
530
|
-
processAdditionalData:
|
|
531
|
-
[key: string]: unknown;
|
|
532
|
-
};
|
|
906
|
+
processAdditionalData: components["schemas"]["ProcessAdditionalData"];
|
|
533
907
|
provinceCode?: string | null;
|
|
534
908
|
reasons: components["schemas"]["DvReason"][];
|
|
535
909
|
status: components["schemas"]["ResultStatus"];
|
|
@@ -538,8 +912,32 @@ export interface components {
|
|
|
538
912
|
/** Format: uuid */
|
|
539
913
|
verificationRequestId?: string | null;
|
|
540
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
|
+
};
|
|
541
930
|
/** @enum {string} */
|
|
542
|
-
ErrorTags: "unexpected" | "bad_request" | "permission_denied" | "request_deserialization" | "database" | "invalid_email_or_password" | "user_not_confirmed" | "verify_password" | "send_email" | "open_session" | "read_session" | "close_session" | "user_disabled" | "missing_authorization_header" | "invalid_authorization_header" | "token_generation" | "user_not_found" | "email_already_taken" | "invalid_invite" | "wrong_invite_user" | "invite_not_found" | "email_already_verified" | "flow_not_found" | "flow_step_not_found" | "organization_not_found" | "storage" | "verification_request_not_found" | "document_reader" | "websocket" | "organization_settings_not_found" | "start_job" | "result_not_found" | "kyc_grant_not_found" | "document_not_found" | "service_invocation" | "trigger_webhook" | "too_many_invites" | "invite_already_used" | "invite_already_accepted" | "invite_already_revoked" | "invite_revoked" | "invite_expired" | "invite_already_exists" | "form_not_found" | "form_in_use" | "flow_step_configuration_not_found" | "identity_not_found" | "step_order_violation" | "serialization" | "mock_data" | "api_key_not_found" | "not_implemented" | "access_grant" | "rate_limit_exceeded" | "missing_api_key" | "invalid_api_key" | "origin_not_allowed" | "step_already_completed" | "send_sms" | "parse_error" | "inviter_organization_not_found" | "forbidden" | "passkey_authentication" | "internal";
|
|
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
|
+
};
|
|
543
941
|
FieldControlOperation: {
|
|
544
942
|
/** Format: uuid */
|
|
545
943
|
identityId: string;
|
|
@@ -561,6 +959,11 @@ export interface components {
|
|
|
561
959
|
comment: string;
|
|
562
960
|
};
|
|
563
961
|
};
|
|
962
|
+
/**
|
|
963
|
+
* @description Per-field review status within a clarification document request.
|
|
964
|
+
* @enum {string}
|
|
965
|
+
*/
|
|
966
|
+
FieldReviewStatus: "PENDING" | "APPROVED" | "REJECTED";
|
|
564
967
|
FieldWithControl: {
|
|
565
968
|
controls: components["schemas"]["FieldControlOperation"][];
|
|
566
969
|
value: string[];
|
|
@@ -568,6 +971,8 @@ export interface components {
|
|
|
568
971
|
FileOptions: {
|
|
569
972
|
accept: string[];
|
|
570
973
|
expectedDocumentType: string;
|
|
974
|
+
/** Format: int32 */
|
|
975
|
+
maxCountUploads?: number;
|
|
571
976
|
};
|
|
572
977
|
/** @enum {string} */
|
|
573
978
|
FilterOperator: "unfiltered" | "in" | "equals" | "not-in" | "not-equals" | "contains";
|
|
@@ -577,6 +982,7 @@ export interface components {
|
|
|
577
982
|
failureUrl?: string | null;
|
|
578
983
|
/** Format: uuid */
|
|
579
984
|
id: string;
|
|
985
|
+
jdm: components["schemas"]["WorkflowGraph"];
|
|
580
986
|
name: string;
|
|
581
987
|
slug: string;
|
|
582
988
|
steps: components["schemas"]["FlowStep"][];
|
|
@@ -591,21 +997,27 @@ export interface components {
|
|
|
591
997
|
createdAt?: string | null;
|
|
592
998
|
customData: {
|
|
593
999
|
[key: string]: unknown;
|
|
594
|
-
};
|
|
1000
|
+
} | null;
|
|
595
1001
|
dvResults: components["schemas"]["DvResult"][];
|
|
596
1002
|
flow?: components["schemas"]["Flow"] | null;
|
|
597
1003
|
flowSlug: string;
|
|
598
1004
|
formResults: components["schemas"]["FormResult"][];
|
|
1005
|
+
geolocationResults?: components["schemas"]["GeolocationResult"][];
|
|
599
1006
|
/** Format: uuid */
|
|
600
1007
|
id: string;
|
|
601
1008
|
identity?: components["schemas"]["Identity"] | null;
|
|
1009
|
+
jdmData: {
|
|
1010
|
+
[key: string]: components["schemas"]["FlowStepOutput"];
|
|
1011
|
+
};
|
|
602
1012
|
kybResults: components["schemas"]["KybResult"][];
|
|
603
1013
|
organization?: components["schemas"]["Organization"] | null;
|
|
604
1014
|
/** Format: uuid */
|
|
605
1015
|
organizationId: string;
|
|
606
1016
|
phoneResults: components["schemas"]["PhoneResult"][];
|
|
607
1017
|
poaResults: components["schemas"]["PoaResult"][];
|
|
1018
|
+
reviewSuggestion?: components["schemas"]["ReviewSuggestion"] | null;
|
|
608
1019
|
spidResults: components["schemas"]["SpidResult"][];
|
|
1020
|
+
status: components["schemas"]["VerificationRequestStatus"];
|
|
609
1021
|
/** Format: date-time */
|
|
610
1022
|
updatedAt?: string | null;
|
|
611
1023
|
walletResults: components["schemas"]["WalletResult"][];
|
|
@@ -791,7 +1203,27 @@ export interface components {
|
|
|
791
1203
|
/** Format: date-time */
|
|
792
1204
|
updatedAt?: string | null;
|
|
793
1205
|
} | {
|
|
794
|
-
config: components["schemas"]["
|
|
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"];
|
|
795
1227
|
/** Format: date-time */
|
|
796
1228
|
createdAt?: string | null;
|
|
797
1229
|
failureUrl?: string | null;
|
|
@@ -807,11 +1239,11 @@ export interface components {
|
|
|
807
1239
|
slug: string;
|
|
808
1240
|
successUrl?: string | null;
|
|
809
1241
|
/** @enum {string} */
|
|
810
|
-
type: "
|
|
1242
|
+
type: "GEOLOCATION";
|
|
811
1243
|
/** Format: date-time */
|
|
812
1244
|
updatedAt?: string | null;
|
|
813
1245
|
};
|
|
814
|
-
FlowStepConfig: components["schemas"]["AutoOneClickKycConfig"] | components["schemas"]["DvConfig"] | components["schemas"]["FormConfig"] | components["schemas"]["PoaConfig"] | components["schemas"]["KybConfig"] | components["schemas"]["WalletConfig"] | components["schemas"]["LivenessConfig"] | components["schemas"]["
|
|
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"];
|
|
815
1247
|
FlowStepInfo: {
|
|
816
1248
|
CONFIG: components["schemas"]["FlowStepConfig"];
|
|
817
1249
|
/** Format: date-time */
|
|
@@ -832,8 +1264,57 @@ export interface components {
|
|
|
832
1264
|
/** Format: date-time */
|
|
833
1265
|
UPDATED_AT?: string | null;
|
|
834
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";
|
|
1315
|
+
};
|
|
835
1316
|
/** @enum {string} */
|
|
836
|
-
FlowStepType: "DV" | "FORM" | "POA" | "KYB" | "SPID" | "PHONE" | "WALLET" | "LIVENESS" | "AUTO_ONE_CLICK_KYC" | "
|
|
1317
|
+
FlowStepType: "DV" | "FORM" | "POA" | "KYB" | "SPID" | "PHONE" | "WALLET" | "LIVENESS" | "AUTO_ONE_CLICK_KYC" | "DOCUMENT_SELECTION" | "GEOLOCATION";
|
|
837
1318
|
Form: {
|
|
838
1319
|
/** Format: date-time */
|
|
839
1320
|
createdAt?: string | null;
|
|
@@ -861,6 +1342,8 @@ export interface components {
|
|
|
861
1342
|
labels?: {
|
|
862
1343
|
[key: string]: string;
|
|
863
1344
|
};
|
|
1345
|
+
/** Format: int64 */
|
|
1346
|
+
oneClickMaxAgeSeconds?: number | null;
|
|
864
1347
|
};
|
|
865
1348
|
FormItem: {
|
|
866
1349
|
content: components["schemas"]["InputField"];
|
|
@@ -886,6 +1369,8 @@ export interface components {
|
|
|
886
1369
|
flowStepId?: string | null;
|
|
887
1370
|
form?: components["schemas"]["Form"] | null;
|
|
888
1371
|
/** Format: uuid */
|
|
1372
|
+
formId?: string | null;
|
|
1373
|
+
/** Format: uuid */
|
|
889
1374
|
id: string;
|
|
890
1375
|
reason?: components["schemas"]["FormReason"] | null;
|
|
891
1376
|
sections: components["schemas"]["FormSection"][];
|
|
@@ -902,14 +1387,76 @@ export interface components {
|
|
|
902
1387
|
};
|
|
903
1388
|
name: string;
|
|
904
1389
|
};
|
|
905
|
-
|
|
906
|
-
|
|
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;
|
|
907
1401
|
};
|
|
908
|
-
|
|
909
|
-
|
|
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;
|
|
910
1413
|
};
|
|
911
|
-
|
|
912
|
-
|
|
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
|
+
};
|
|
1452
|
+
GetApiKeyResponse: {
|
|
1453
|
+
apiKey: components["schemas"]["ZypheApiKey"];
|
|
1454
|
+
};
|
|
1455
|
+
GetFlowResponse: {
|
|
1456
|
+
flow: components["schemas"]["Flow"];
|
|
1457
|
+
};
|
|
1458
|
+
GetFormResponse: {
|
|
1459
|
+
form: components["schemas"]["Form"];
|
|
913
1460
|
};
|
|
914
1461
|
GetFullFlowResponse: {
|
|
915
1462
|
flow: components["schemas"]["Flow"];
|
|
@@ -919,10 +1466,41 @@ export interface components {
|
|
|
919
1466
|
organizationName: string;
|
|
920
1467
|
settings: components["schemas"]["Settings"];
|
|
921
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
|
+
};
|
|
922
1496
|
GetNextStepPayload: {
|
|
1497
|
+
/** @description Email address of the user whose verification progress should be queried. */
|
|
923
1498
|
email: string;
|
|
924
1499
|
};
|
|
925
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. */
|
|
926
1504
|
isCompleted: boolean;
|
|
927
1505
|
nextStep?: Omit<components["schemas"]["FlowStep"], "type"> | null;
|
|
928
1506
|
};
|
|
@@ -931,12 +1509,17 @@ export interface components {
|
|
|
931
1509
|
passkey?: components["schemas"]["VaultUnlockPasskeyData"] | null;
|
|
932
1510
|
verificationRequest: components["schemas"]["VerificationRequest"];
|
|
933
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";
|
|
934
1517
|
Identity: {
|
|
935
1518
|
/** Format: date-time */
|
|
936
1519
|
createdAt?: string | null;
|
|
937
1520
|
/** Format: uuid */
|
|
938
1521
|
defaultOrganizationId?: string | null;
|
|
939
|
-
email
|
|
1522
|
+
email?: string | null;
|
|
940
1523
|
emailVerified: boolean;
|
|
941
1524
|
/** Format: uuid */
|
|
942
1525
|
id: string;
|
|
@@ -951,16 +1534,44 @@ export interface components {
|
|
|
951
1534
|
lastEnvironmentIsSandbox?: boolean;
|
|
952
1535
|
locale: components["schemas"]["Locale"];
|
|
953
1536
|
};
|
|
954
|
-
|
|
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"];
|
|
955
1554
|
/** Format: int32 */
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
lightIndex: number;
|
|
959
|
-
/** Format: int64 */
|
|
960
|
-
pageIndex: number;
|
|
961
|
-
source: string;
|
|
962
|
-
value: string;
|
|
1555
|
+
probability?: number | null;
|
|
1556
|
+
result: components["schemas"]["CheckStatus"];
|
|
963
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";
|
|
964
1575
|
InputField: {
|
|
965
1576
|
label: {
|
|
966
1577
|
[key: string]: string;
|
|
@@ -1027,10 +1638,64 @@ export interface components {
|
|
|
1027
1638
|
/** @enum {string} */
|
|
1028
1639
|
type: "select";
|
|
1029
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;
|
|
1030
1651
|
};
|
|
1031
1652
|
InputFieldOptions: components["schemas"]["FileOptions"] | components["schemas"]["SelectOptions"] | unknown;
|
|
1032
1653
|
/** @enum {string} */
|
|
1033
|
-
InputFieldType: "date" | "text" | "textarea" | "checkbox" | "file" | "select";
|
|
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
|
+
};
|
|
1034
1699
|
KybConfig: {
|
|
1035
1700
|
articlesOfAssociation?: components["schemas"]["DocumentConfig"] | null;
|
|
1036
1701
|
certificateOfIncorporation?: components["schemas"]["DocumentConfig"] | null;
|
|
@@ -1066,8 +1731,62 @@ export interface components {
|
|
|
1066
1731
|
maxUbos: number;
|
|
1067
1732
|
organizationalStructureChart?: components["schemas"]["DocumentConfig"] | null;
|
|
1068
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"];
|
|
1069
1781
|
KybResult: {
|
|
1782
|
+
/** Format: date-time */
|
|
1783
|
+
assignedAt?: string | null;
|
|
1784
|
+
/** Format: uuid */
|
|
1785
|
+
assignedToIdentityId?: string | null;
|
|
1070
1786
|
businessInformation?: components["schemas"]["BusinessInformation"] | null;
|
|
1787
|
+
businessInformationVerification?: {
|
|
1788
|
+
[key: string]: components["schemas"]["BusinessInfoFieldVerification"];
|
|
1789
|
+
} | null;
|
|
1071
1790
|
/** Format: date-time */
|
|
1072
1791
|
createdAt?: string | null;
|
|
1073
1792
|
directorDefinitions?: components["schemas"]["DirectorDefinition"][] | null;
|
|
@@ -1075,8 +1794,11 @@ export interface components {
|
|
|
1075
1794
|
flowStep?: Omit<components["schemas"]["FlowStep"], "type"> | null;
|
|
1076
1795
|
/** Format: uuid */
|
|
1077
1796
|
flowStepId?: string | null;
|
|
1797
|
+
/** Format: date-time */
|
|
1798
|
+
fundedAt?: string | null;
|
|
1078
1799
|
/** Format: uuid */
|
|
1079
1800
|
id: string;
|
|
1801
|
+
nextAction?: components["schemas"]["NextAction"] | null;
|
|
1080
1802
|
pepAndSanctionsStatus: components["schemas"]["PepAndSanctionsStatus"];
|
|
1081
1803
|
reason?: string | null;
|
|
1082
1804
|
report?: string | null;
|
|
@@ -1087,6 +1809,87 @@ export interface components {
|
|
|
1087
1809
|
/** Format: uuid */
|
|
1088
1810
|
verificationRequestId?: string | null;
|
|
1089
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
|
+
};
|
|
1090
1893
|
LivenessConfig: {
|
|
1091
1894
|
/** @description When `true` the liveness step also performs a biometric match against the stored portrait.
|
|
1092
1895
|
* Set to `false` to keep the liveness UX but skip biometric verification. */
|
|
@@ -1102,17 +1905,60 @@ export interface components {
|
|
|
1102
1905
|
* @example 5
|
|
1103
1906
|
*/
|
|
1104
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;
|
|
1105
1912
|
thresholds?: {
|
|
1106
1913
|
[key: string]: number;
|
|
1107
1914
|
} | null;
|
|
1108
1915
|
};
|
|
1109
1916
|
/** @enum {string} */
|
|
1110
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
|
+
};
|
|
1111
1926
|
/**
|
|
1112
1927
|
* @description Locale identifier
|
|
1113
1928
|
* @enum {string}
|
|
1114
1929
|
*/
|
|
1115
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";
|
|
1936
|
+
/** @enum {string} */
|
|
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
|
+
};
|
|
1116
1962
|
ModerateKybResultPayload: {
|
|
1117
1963
|
pepAndSanctionsStatus?: components["schemas"]["PepAndSanctionsStatusField"] | null;
|
|
1118
1964
|
/** Format: binary */
|
|
@@ -1125,37 +1971,25 @@ export interface components {
|
|
|
1125
1971
|
/** @enum {string} */
|
|
1126
1972
|
ModerationResultStatus: "ACQUIRING" | "PENDING_MODERATION" | "REVIEW_REQUIRED" | "SUCCESS" | "FAILED";
|
|
1127
1973
|
ModerationResultStatusField: components["schemas"]["ModerationResultStatus"];
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
documentTypes?: components["schemas"]["OrchestratorDocumentType"][] | null;
|
|
1133
|
-
/**
|
|
1134
|
-
* Format: uuid
|
|
1135
|
-
* @description Target flow ID to redirect to
|
|
1136
|
-
*/
|
|
1137
|
-
targetFlowId: string;
|
|
1138
|
-
};
|
|
1139
|
-
OrchestratorConfig: {
|
|
1140
|
-
/** @description Whether to collect document type from user (required field for untagged deserialization) */
|
|
1141
|
-
collectDocumentType: boolean;
|
|
1142
|
-
/** @description Ordered list of conditions (first match wins) */
|
|
1143
|
-
conditions?: components["schemas"]["OrchestratorCondition"][];
|
|
1974
|
+
/** @enum {string} */
|
|
1975
|
+
NextAction: "CLIENT" | "RM" | "COMPLIANCE" | "SUPPORT" | "FUNDED" | "DENIED";
|
|
1976
|
+
/** @description Position of a node in the visual editor. */
|
|
1977
|
+
NodePosition: {
|
|
1144
1978
|
/**
|
|
1145
|
-
* Format:
|
|
1146
|
-
* @description
|
|
1979
|
+
* Format: double
|
|
1980
|
+
* @description X coordinate
|
|
1147
1981
|
*/
|
|
1148
|
-
|
|
1982
|
+
x: number;
|
|
1149
1983
|
/**
|
|
1150
|
-
*
|
|
1151
|
-
* @
|
|
1984
|
+
* Format: double
|
|
1985
|
+
* @description Y coordinate
|
|
1152
1986
|
*/
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
|
|
1987
|
+
y: number;
|
|
1988
|
+
};
|
|
1989
|
+
NormalizedEmail: {
|
|
1990
|
+
/** @example user@example.com */
|
|
1991
|
+
value: string;
|
|
1156
1992
|
};
|
|
1157
|
-
/** @enum {string} */
|
|
1158
|
-
OrchestratorDocumentType: "ID_CARD" | "DRIVER_LICENSE" | "PASSPORT";
|
|
1159
1993
|
Organization: {
|
|
1160
1994
|
address: string;
|
|
1161
1995
|
country: string;
|
|
@@ -1175,6 +2009,42 @@ export interface components {
|
|
|
1175
2009
|
updatedAt?: string | null;
|
|
1176
2010
|
website: string;
|
|
1177
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
|
+
};
|
|
1178
2048
|
Pagination: {
|
|
1179
2049
|
/** @example createdAt:in:2025-01-01,2025-01-02;updatedAt:gt:2025-01-02 */
|
|
1180
2050
|
filter?: string;
|
|
@@ -1226,6 +2096,9 @@ export interface components {
|
|
|
1226
2096
|
/** Format: uuid */
|
|
1227
2097
|
verificationRequestId?: string | null;
|
|
1228
2098
|
};
|
|
2099
|
+
PhoneStepOutput: {
|
|
2100
|
+
status: components["schemas"]["ResultStatus"];
|
|
2101
|
+
};
|
|
1229
2102
|
Plaintext: {
|
|
1230
2103
|
text: {
|
|
1231
2104
|
[key: string]: string;
|
|
@@ -1267,6 +2140,60 @@ export interface components {
|
|
|
1267
2140
|
/** Format: uuid */
|
|
1268
2141
|
verificationRequestId?: string | null;
|
|
1269
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
|
+
};
|
|
1270
2197
|
ProcessAddressDocumentRequest: {
|
|
1271
2198
|
/** Format: binary */
|
|
1272
2199
|
file: Blob;
|
|
@@ -1276,6 +2203,48 @@ export interface components {
|
|
|
1276
2203
|
/** Format: uuid */
|
|
1277
2204
|
verificationRequestId: string;
|
|
1278
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 */
|
|
2246
|
+
verificationRequestId: string;
|
|
2247
|
+
};
|
|
1279
2248
|
ProcessImagesOverrides: {
|
|
1280
2249
|
authParams?: {
|
|
1281
2250
|
[key: string]: unknown;
|
|
@@ -1283,8 +2252,19 @@ export interface components {
|
|
|
1283
2252
|
checkAuth?: boolean | null;
|
|
1284
2253
|
scenario?: string | null;
|
|
1285
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
|
+
};
|
|
1286
2266
|
/** @enum {string} */
|
|
1287
|
-
ProductType: "UNKNOWN" | "
|
|
2267
|
+
ProductType: "UNKNOWN" | "DOCSCAN" | "LIVENESS" | "POA" | "KYB" | "KYC_PASSPORT" | "SPID" | "PHONE" | "WALLET" | "EXPORT_API" | "EXPORT_UI" | "BUSINESS_VERIFICATION" | "FLOW_BUILDER" | "GEOLOCATION" | "FORM";
|
|
1288
2268
|
/** @enum {string} */
|
|
1289
2269
|
RequiredDocumentField: "firstName" | "middleName" | "lastName" | "dateOfBirth" | "phone" | "email" | "street" | "city" | "state" | "postcode" | "country" | "socialSecurityNumber";
|
|
1290
2270
|
ResultControlOperation: {
|
|
@@ -1310,6 +2290,11 @@ export interface components {
|
|
|
1310
2290
|
};
|
|
1311
2291
|
/** @enum {string} */
|
|
1312
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
|
+
};
|
|
1313
2298
|
/** @enum {string} */
|
|
1314
2299
|
RiskLevel: "low" | "medium" | "high" | "critical";
|
|
1315
2300
|
RiskScore: {
|
|
@@ -1319,23 +2304,65 @@ export interface components {
|
|
|
1319
2304
|
sourcesCount: number;
|
|
1320
2305
|
};
|
|
1321
2306
|
/** @enum {string} */
|
|
1322
|
-
Role: "ANONYMOUS" | "GUEST" | "
|
|
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
|
+
};
|
|
1323
2331
|
SdkCreateVerificationRequestPayload: {
|
|
2332
|
+
/** @description Arbitrary key-value metadata to attach to this verification request. */
|
|
1324
2333
|
customData?: {
|
|
1325
2334
|
[key: string]: unknown;
|
|
1326
2335
|
} | null;
|
|
2336
|
+
/** @description Email address of the user being verified. */
|
|
1327
2337
|
email: string;
|
|
1328
|
-
/**
|
|
2338
|
+
/**
|
|
2339
|
+
* Format: uuid
|
|
2340
|
+
* @description The ID of the flow step to start or resume for this user.
|
|
2341
|
+
*/
|
|
1329
2342
|
flowStepId: string;
|
|
1330
2343
|
};
|
|
1331
2344
|
SdkCreateVerificationRequestResponse: {
|
|
1332
|
-
email
|
|
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. */
|
|
1333
2348
|
flowSlug: string;
|
|
2349
|
+
/** @description Slug of the current flow step (the first incomplete step). */
|
|
1334
2350
|
flowStepSlug: string;
|
|
2351
|
+
/** @description Whether this verification request was created in sandbox mode. */
|
|
1335
2352
|
isSandbox: boolean;
|
|
1336
2353
|
verificationRequest: components["schemas"]["VerificationRequest"];
|
|
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. */
|
|
1337
2359
|
zypheToken: string;
|
|
1338
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";
|
|
1339
2366
|
SelectOptions: {
|
|
1340
2367
|
isOtherAllowed: boolean;
|
|
1341
2368
|
values: string[];
|
|
@@ -1343,13 +2370,20 @@ export interface components {
|
|
|
1343
2370
|
Settings: {
|
|
1344
2371
|
/** Format: date-time */
|
|
1345
2372
|
createdAt?: string | null;
|
|
2373
|
+
delayFlowResults?: boolean | null;
|
|
2374
|
+
emailNotifications?: string[] | null;
|
|
1346
2375
|
extendedWebhook?: boolean | null;
|
|
1347
2376
|
primaryColor?: string | null;
|
|
1348
2377
|
profileImage?: string | null;
|
|
2378
|
+
published?: boolean;
|
|
1349
2379
|
secondaryColor?: string | null;
|
|
2380
|
+
skipSignedAccess?: boolean;
|
|
2381
|
+
slackNotifications?: string[] | null;
|
|
2382
|
+
telegramNotifications?: string[] | null;
|
|
1350
2383
|
/** Format: date-time */
|
|
1351
2384
|
updatedAt?: string | null;
|
|
1352
2385
|
webhookSecret?: string | null;
|
|
2386
|
+
webhookWithLegacy?: boolean | null;
|
|
1353
2387
|
};
|
|
1354
2388
|
/** @enum {string} */
|
|
1355
2389
|
SiwxChain: "ETHEREUM" | "ETHEREUM_TESTNET" | "SOLANA" | "SOLANA_TESTNET";
|
|
@@ -1359,6 +2393,8 @@ export interface components {
|
|
|
1359
2393
|
[key: string]: string;
|
|
1360
2394
|
};
|
|
1361
2395
|
};
|
|
2396
|
+
/** @enum {string} */
|
|
2397
|
+
SpidDocumentType: "ITALIAN_SPID" | "AADHAAR";
|
|
1362
2398
|
SpidResult: {
|
|
1363
2399
|
/** Format: date-time */
|
|
1364
2400
|
createdAt?: string | null;
|
|
@@ -1395,6 +2431,15 @@ export interface components {
|
|
|
1395
2431
|
spidCode?: string | null;
|
|
1396
2432
|
username?: string | null;
|
|
1397
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
|
+
};
|
|
1398
2443
|
StartPhoneVerificationRequest: {
|
|
1399
2444
|
phoneNumberE164: string;
|
|
1400
2445
|
};
|
|
@@ -1425,7 +2470,7 @@ export interface components {
|
|
|
1425
2470
|
*/
|
|
1426
2471
|
Uuid: string;
|
|
1427
2472
|
/** @enum {string} */
|
|
1428
|
-
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";
|
|
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";
|
|
1429
2474
|
VaultUnlockPasskeyData: {
|
|
1430
2475
|
/** @description Passkey challenge for vault unlock (base64url) */
|
|
1431
2476
|
challenge: string;
|
|
@@ -1452,6 +2497,7 @@ export interface components {
|
|
|
1452
2497
|
/** Format: uuid */
|
|
1453
2498
|
flowStepId: string;
|
|
1454
2499
|
formResult?: components["schemas"]["FormResult"] | null;
|
|
2500
|
+
geolocationResult?: components["schemas"]["GeolocationResult"] | null;
|
|
1455
2501
|
/** Format: uuid */
|
|
1456
2502
|
id: string;
|
|
1457
2503
|
identity?: components["schemas"]["Identity"] | null;
|
|
@@ -1472,6 +2518,21 @@ export interface components {
|
|
|
1472
2518
|
};
|
|
1473
2519
|
/** @enum {string} */
|
|
1474
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
|
+
};
|
|
1475
2536
|
VerifyPhoneCodeRequest: {
|
|
1476
2537
|
code: string;
|
|
1477
2538
|
phoneNumberE164: string;
|
|
@@ -1517,6 +2578,188 @@ export interface components {
|
|
|
1517
2578
|
walletAddress: string;
|
|
1518
2579
|
walletChain: string;
|
|
1519
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
|
+
};
|
|
1520
2763
|
ZypheApiKey: {
|
|
1521
2764
|
allowedOrigins: string[];
|
|
1522
2765
|
/** Format: date-time */
|
|
@@ -1555,9 +2798,12 @@ export interface operations {
|
|
|
1555
2798
|
query: {
|
|
1556
2799
|
sandbox: boolean;
|
|
1557
2800
|
locale?: components["schemas"]["Locale"];
|
|
2801
|
+
/** @description Signed access token (JWS). Required only when flow signed access is enabled. */
|
|
2802
|
+
zypheAccessSig?: string | null;
|
|
1558
2803
|
};
|
|
1559
2804
|
header?: never;
|
|
1560
2805
|
path: {
|
|
2806
|
+
/** @description Flow slug */
|
|
1561
2807
|
slug: string;
|
|
1562
2808
|
};
|
|
1563
2809
|
cookie?: never;
|
|
@@ -1700,6 +2946,7 @@ export interface operations {
|
|
|
1700
2946
|
query: {
|
|
1701
2947
|
sandbox: boolean;
|
|
1702
2948
|
locale?: components["schemas"]["Locale"];
|
|
2949
|
+
/** @description Email address of the user whose verification progress should be queried. */
|
|
1703
2950
|
email: string;
|
|
1704
2951
|
};
|
|
1705
2952
|
header?: never;
|
|
@@ -1748,6 +2995,182 @@ export interface operations {
|
|
|
1748
2995
|
};
|
|
1749
2996
|
};
|
|
1750
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
|
+
};
|
|
1751
3174
|
get_completed_verification_requests: {
|
|
1752
3175
|
parameters: {
|
|
1753
3176
|
query: {
|
|
@@ -1784,6 +3207,58 @@ export interface operations {
|
|
|
1784
3207
|
};
|
|
1785
3208
|
};
|
|
1786
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;
|
|
3225
|
+
};
|
|
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
|
+
};
|
|
3259
|
+
};
|
|
3260
|
+
};
|
|
3261
|
+
};
|
|
1787
3262
|
get_sdk_flow_result_details: {
|
|
1788
3263
|
parameters: {
|
|
1789
3264
|
query: {
|