@zyphe-sdk/core 0.1.14 → 0.1.17

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -7,11 +7,20 @@ declare const Environments: {
7
7
  readonly PRODUCTION: "production";
8
8
  };
9
9
  type Environment = (typeof Environments)[keyof typeof Environments];
10
- interface EnvironmentConfig {
11
- appUrl: string;
12
- apiUrl: string;
13
- }
14
- declare const EnvironmentConfigs: Record<Environment, EnvironmentConfig>;
10
+ declare const EnvironmentConfigs: {
11
+ readonly local: {
12
+ readonly appUrl: "http://localhost:5173";
13
+ readonly apiUrl: "http://localhost:3000";
14
+ };
15
+ readonly staging: {
16
+ readonly appUrl: "https://app-dev.zyphe.com";
17
+ readonly apiUrl: "https://api-dev.zyphe.com";
18
+ };
19
+ readonly production: {
20
+ readonly appUrl: "https://verify.zyphe.com";
21
+ readonly apiUrl: "https://api.zyphe.com";
22
+ };
23
+ };
15
24
  declare const API_KEY_HEADER = "x-api-key";
16
25
 
17
26
  interface components {
@@ -26,49 +35,78 @@ interface components {
26
35
  postalCode: string;
27
36
  street: string;
28
37
  };
38
+ AmlCheckSummary: {
39
+ hasPep: boolean;
40
+ hasSanctions: boolean;
41
+ highRiskEntitiesCount: number;
42
+ highestRiskLevel: components["schemas"]["RiskLevel"];
43
+ /** Format: int32 */
44
+ highestRiskScore: number;
45
+ totalEntities: number;
46
+ };
29
47
  AmlEntityResponse: {
30
- address?: string[];
31
- birthCountry?: string[];
32
- birthDate?: string[];
33
- birthPlace?: string[];
34
- country?: string[];
35
- email?: string[];
36
- firstName?: string[];
37
- gender?: string[];
38
- lastName?: string[];
39
- middleName?: string[];
40
- name?: string[];
41
- nationality?: string[];
48
+ address?: components["schemas"]["FieldWithControl"];
49
+ birthCountry?: components["schemas"]["FieldWithControl"];
50
+ birthDate?: components["schemas"]["FieldWithControl"];
51
+ birthPlace?: components["schemas"]["FieldWithControl"];
52
+ country?: components["schemas"]["FieldWithControl"];
53
+ email?: components["schemas"]["FieldWithControl"];
54
+ firstName?: components["schemas"]["FieldWithControl"];
55
+ gender?: components["schemas"]["FieldWithControl"];
56
+ lastName?: components["schemas"]["FieldWithControl"];
57
+ match?: boolean;
58
+ middleName?: components["schemas"]["FieldWithControl"];
59
+ name?: components["schemas"]["FieldWithControl"];
60
+ nationality?: components["schemas"]["FieldWithControl"];
42
61
  occupancies?: components["schemas"]["AmlOccupancy"][];
43
- phone?: string[];
44
- position?: string[];
62
+ phone?: components["schemas"]["FieldWithControl"];
63
+ position?: components["schemas"]["FieldWithControl"];
45
64
  sanctions?: components["schemas"]["AmlSanction"][];
46
- title?: string[];
47
- topics?: string[];
65
+ /** Format: double */
66
+ score?: number;
67
+ sources?: components["schemas"]["AmlSource"][];
68
+ title?: components["schemas"]["FieldWithControl"];
69
+ topics?: components["schemas"]["FieldWithControl"];
70
+ };
71
+ AmlEntityResult: {
72
+ entity: components["schemas"]["AmlEntityResponse"];
73
+ hasSanctions: boolean;
74
+ isPep: boolean;
75
+ match: boolean;
76
+ /** Format: double */
77
+ matchScore: number;
78
+ riskCountries: string[];
79
+ riskPositions: string[];
80
+ riskRelationships: string[];
81
+ riskScore: components["schemas"]["RiskScore"];
82
+ riskTopics: string[];
48
83
  };
84
+ /** @enum {string} */
85
+ AmlModerationStatus: "approved" | "rejected" | "escalated";
49
86
  AmlOccupancy: {
50
- endDate?: string[];
87
+ endDate?: components["schemas"]["FieldWithControl"];
51
88
  post?: components["schemas"]["AmlPosition"][];
52
- startDate?: string[];
53
- status?: string[];
89
+ sources?: components["schemas"]["AmlSource"][];
90
+ startDate?: components["schemas"]["FieldWithControl"];
91
+ status?: components["schemas"]["FieldWithControl"];
54
92
  };
55
93
  AmlOrganization: {
56
- country?: string[];
57
- description?: string[];
58
- name?: string[];
59
- summary?: string[];
94
+ country?: components["schemas"]["FieldWithControl"];
95
+ description?: components["schemas"]["FieldWithControl"];
96
+ name?: components["schemas"]["FieldWithControl"];
97
+ summary?: components["schemas"]["FieldWithControl"];
60
98
  };
61
99
  AmlPosition: {
62
- country?: string[];
63
- description?: string[];
64
- dissolutionDate?: string[];
65
- inceptionDate?: string[];
66
- name?: string[];
100
+ country?: components["schemas"]["FieldWithControl"];
101
+ description?: components["schemas"]["FieldWithControl"];
102
+ dissolutionDate?: components["schemas"]["FieldWithControl"];
103
+ inceptionDate?: components["schemas"]["FieldWithControl"];
104
+ name?: components["schemas"]["FieldWithControl"];
67
105
  numberOfSeats?: number[];
68
106
  organization?: components["schemas"]["AmlOrganization"][];
69
- subnationalArea?: string[];
70
- summary?: string[];
71
- topics?: string[];
107
+ subnationalArea?: components["schemas"]["FieldWithControl"];
108
+ summary?: components["schemas"]["FieldWithControl"];
109
+ topics?: components["schemas"]["FieldWithControl"];
72
110
  };
73
111
  AmlResult: {
74
112
  /** Format: date-time */
@@ -76,30 +114,57 @@ interface components {
76
114
  data: {
77
115
  [key: string]: unknown;
78
116
  };
117
+ /** Format: uuid */
79
118
  id: string;
80
119
  pep: boolean;
81
120
  sanctions: boolean;
82
121
  /** Format: date-time */
83
122
  updatedAt: string;
123
+ /** Format: uuid */
84
124
  verificationRequestId?: string | null;
85
125
  };
126
+ AmlRiskMetadata: {
127
+ /** Format: date-time */
128
+ checkedAt: string;
129
+ controls: components["schemas"]["ResultControlOperation"][];
130
+ summary: components["schemas"]["AmlCheckSummary"];
131
+ };
132
+ AmlRiskResult: {
133
+ entities: components["schemas"]["AmlEntityResult"][];
134
+ metadata: components["schemas"]["AmlRiskMetadata"];
135
+ };
86
136
  AmlSanction: {
87
- authority?: string[];
88
- authorityId?: string[];
89
- country?: string[];
90
- date?: string[];
91
- duration?: string[];
92
- endDate?: string[];
93
- listingDate?: string[];
94
- program?: string[];
95
- reason?: string[];
96
- startDate?: string[];
97
- status?: string[];
98
- unscId?: string[];
99
- };
100
- AmlSearchResponse: components["schemas"]["AmlEntityResponse"][];
137
+ authority?: components["schemas"]["FieldWithControl"];
138
+ authorityId?: components["schemas"]["FieldWithControl"];
139
+ country?: components["schemas"]["FieldWithControl"];
140
+ date?: components["schemas"]["FieldWithControl"];
141
+ duration?: components["schemas"]["FieldWithControl"];
142
+ endDate?: components["schemas"]["FieldWithControl"];
143
+ listingDate?: components["schemas"]["FieldWithControl"];
144
+ program?: components["schemas"]["FieldWithControl"];
145
+ reason?: components["schemas"]["FieldWithControl"];
146
+ sources?: components["schemas"]["AmlSource"][];
147
+ startDate?: components["schemas"]["FieldWithControl"];
148
+ status?: components["schemas"]["FieldWithControl"];
149
+ unscId?: components["schemas"]["FieldWithControl"];
150
+ };
151
+ AmlSource: {
152
+ name?: string;
153
+ title?: string;
154
+ url?: string | null;
155
+ };
101
156
  /** @enum {string} */
102
157
  ApiKeyType: "PUBLISHABLE" | "SECRET";
158
+ AutoOneClickKycConfig: {
159
+ /** @example { "en_title": "Verify with Partners" } */
160
+ labels?: {
161
+ [key: string]: string;
162
+ };
163
+ /** @description List of partner flow IDs to attempt one-click KYC with */
164
+ partnerFlowIds: string[];
165
+ /** @description Full partner flow objects (populated by rehydrate_flow_step) */
166
+ partnerFlows?: components["schemas"]["Flow"][] | null;
167
+ };
103
168
  BaxeError: {
104
169
  /** Format: int32 */
105
170
  code: number;
@@ -128,20 +193,36 @@ interface components {
128
193
  customData?: {
129
194
  [key: string]: unknown;
130
195
  } | null;
131
- email: string;
196
+ email?: string | null;
197
+ /** Format: uuid */
132
198
  flowStepId: string;
133
199
  privacyPolicyAccepted: boolean;
134
200
  termsAndConditionsAccepted: boolean;
135
201
  };
136
202
  CreateVerificationRequestResponse: {
137
203
  verificationRequest: components["schemas"]["VerificationRequest"];
138
- websocketNamespace: string;
204
+ };
205
+ CustomDocumentConfig: {
206
+ enabled?: boolean;
207
+ /** Format: uuid */
208
+ id: string;
209
+ name: string;
210
+ required?: boolean;
211
+ };
212
+ DirectorDefinition: {
213
+ country: string;
214
+ dateOfBirth: string;
215
+ emailAddress: string;
216
+ firstName: string;
217
+ gender: string;
218
+ lastName: string;
139
219
  };
140
220
  Document: {
141
221
  /** Format: date-time */
142
222
  createdAt: string;
143
223
  /** Format: date-time */
144
224
  expiresAt?: string | null;
225
+ /** Format: uuid */
145
226
  id: string;
146
227
  metadata: unknown;
147
228
  path: string;
@@ -150,8 +231,12 @@ interface components {
150
231
  typeName: string;
151
232
  /** Format: date-time */
152
233
  updatedAt: string;
234
+ /** Format: uuid */
153
235
  vaultId: string;
154
236
  };
237
+ DocumentConfig: {
238
+ required?: boolean;
239
+ };
155
240
  DocumentData: {
156
241
  documentCan?: string;
157
242
  documentClassCode?: string;
@@ -177,6 +262,7 @@ interface components {
177
262
  DocumentUpload: {
178
263
  filename: string;
179
264
  presignedUrl?: string | null;
265
+ s3Key?: string | null;
180
266
  };
181
267
  DvConfig: {
182
268
  allowedDocumentsPerCountry?: {
@@ -189,56 +275,105 @@ interface components {
189
275
  labels?: {
190
276
  [key: string]: string;
191
277
  };
278
+ /**
279
+ * Format: int32
280
+ * @example 5
281
+ */
282
+ maxAttempts?: number | null;
192
283
  /** Format: int32 */
193
284
  minimumAge: number;
194
- skipLiveness?: boolean;
285
+ processImagesOverrides?: components["schemas"]["ProcessImagesOverrides"] | null;
286
+ requiredDocumentFields?: components["schemas"]["RequiredDocumentField"][];
195
287
  thresholds?: {
196
288
  documentScorePercent?: number;
197
- portraitMatchPercent?: number;
198
289
  } | null;
199
290
  };
200
291
  /** @enum {string} */
201
- DvConfigThreshold: "documentScorePercent" | "portraitMatchPercent";
292
+ DvConfigThreshold: "documentScorePercent";
202
293
  /** @enum {string} */
203
- DvReason: "UNKNOWN" | "WRONG_DOCUMENT_TYPE" | "COUNTRY_FILTER" | "FACE_MATCH_CHECK" | "FACE_MATCH_CHECK_ONE_CLICK" | "OVERALL_STATUS" | "DOCUMENT_COUNTRY_MISMATCH" | "DOCUMENT_COUNTRY_MISSING" | "DATE_OF_EXPIRY_NOT_VALID" | "DATE_OF_EXPIRY_NOT_READABLE" | "DATE_OF_EXPIRY_FIELD_MISSING" | "DOCUMENT_ALREADY_USED_BY_ANOTHER_USER" | "DOCUMENT_FINGERPRINT_COMPUTATION" | "SECURITY_CHECK_FAILED" | "DOCUMENT_SCORE_BELOW_THRESHOLD" | "DOCUMENT_TYPE_NOT_DEFINED" | "LIVENESS_CHECK_FAILED" | "DOCUMENT_NOT_FOUND" | "DATE_OF_BIRTH_BELOW_MINIMUM_AGE" | "DOCUMENT_TYPE_CHECK";
294
+ DvReason: "UNKNOWN" | "WRONG_DOCUMENT_TYPE" | "COUNTRY_FILTER" | "FACE_MATCH_CHECK" | "FACE_MATCH_CHECK_ONE_CLICK" | "OVERALL_STATUS" | "DOCUMENT_COUNTRY_MISMATCH" | "DOCUMENT_COUNTRY_MISSING" | "DATE_OF_EXPIRY_NOT_VALID" | "DATE_OF_EXPIRY_NOT_READABLE" | "DATE_OF_EXPIRY_FIELD_MISSING" | "DOCUMENT_ALREADY_USED_BY_ANOTHER_USER" | "DOCUMENT_FINGERPRINT_COMPUTATION" | "SECURITY_CHECK_FAILED" | "DOCUMENT_SCORE_BELOW_THRESHOLD" | "DOCUMENT_TYPE_NOT_DEFINED" | "LIVENESS_CHECK_FAILED" | "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";
204
295
  DvResult: {
296
+ adminComment?: string | null;
297
+ authenticityChecks: number[][];
205
298
  browser?: string | null;
206
299
  class?: string | null;
300
+ countryCode?: string | null;
207
301
  /** Format: date-time */
208
302
  createdAt?: string | null;
209
303
  data: {
210
304
  [key: string]: unknown;
211
305
  };
306
+ /** Format: uuid */
212
307
  documentId?: string | null;
213
308
  /** Format: int32 */
214
309
  documentScorePercent?: number | null;
215
310
  /** Format: int32 */
216
311
  documentType?: number | null;
217
- firstName?: string | null;
218
312
  flowStep?: Omit<components["schemas"]["FlowStep"], "type"> | null;
313
+ /** Format: uuid */
314
+ flowStepId?: string | null;
315
+ /** Format: uuid */
219
316
  id: string;
220
- lastName?: string | null;
317
+ /** Format: date-time */
318
+ manualReviewAt?: string | null;
319
+ manualReviewNote?: string | null;
320
+ /** Format: uuid */
321
+ manualReviewerId?: string | null;
322
+ manualReviewerZid?: string | null;
323
+ /** Format: uuid */
324
+ originalVrHistoryId?: string | null;
221
325
  platform?: string | null;
222
326
  /** Format: int32 */
223
327
  portraitMatchPercent?: number | null;
224
328
  processAdditionalData: {
225
329
  [key: string]: unknown;
226
330
  };
331
+ provinceCode?: string | null;
227
332
  reasons: components["schemas"]["DvReason"][];
228
333
  status: components["schemas"]["ResultStatus"];
229
334
  /** Format: date-time */
230
335
  updatedAt?: string | null;
336
+ /** Format: uuid */
231
337
  verificationRequestId?: string | null;
232
338
  };
233
339
  /** @enum {string} */
234
- ErrorTags: "unexpected" | "bad_request" | "permission_denied" | "request_deserialization" | "database" | "invalid_email_or_password" | "user_not_confirmed" | "verify_password" | "send_email" | "open_session" | "read_session" | "close_session" | "authentication_request_not_found" | "invalid_magic_link" | "user_disabled" | "invalid_verify_link" | "missing_authorization_header" | "invalid_authorization_header" | "token_generation" | "user_not_found" | "authentication_request_expired" | "authentication_request_already_used" | "verification_session_expired" | "email_already_taken" | "invalid_invite" | "wrong_invite_user" | "invite_not_found" | "email_already_verified" | "flow_not_found" | "organization_not_found" | "storage" | "verification_request_not_found" | "document_reader" | "websocket" | "organization_settings_not_found" | "start_job" | "result_not_found" | "kyc_grant_not_found" | "document_not_found" | "service_invocation" | "trigger_webhook" | "too_many_invites" | "invite_already_used" | "invite_revoked" | "invite_expired" | "form_not_found" | "form_in_use" | "flow_step_configuration_not_found" | "organization_product_not_active" | "identity_not_found" | "step_order_violation" | "serialization" | "mock_data" | "api_key_not_found" | "not_implemented" | "access_grant" | "rate_limit_exceeded" | "missing_api_key" | "invalid_api_key" | "origin_not_allowed" | "step_already_completed";
340
+ ErrorTags: "unexpected" | "bad_request" | "permission_denied" | "request_deserialization" | "database" | "invalid_email_or_password" | "user_not_confirmed" | "verify_password" | "send_email" | "open_session" | "read_session" | "close_session" | "user_disabled" | "missing_authorization_header" | "invalid_authorization_header" | "token_generation" | "user_not_found" | "email_already_taken" | "invalid_invite" | "wrong_invite_user" | "invite_not_found" | "email_already_verified" | "flow_not_found" | "flow_step_not_found" | "organization_not_found" | "storage" | "verification_request_not_found" | "document_reader" | "websocket" | "organization_settings_not_found" | "start_job" | "result_not_found" | "kyc_grant_not_found" | "document_not_found" | "service_invocation" | "trigger_webhook" | "too_many_invites" | "invite_already_used" | "invite_already_accepted" | "invite_already_revoked" | "invite_revoked" | "invite_expired" | "invite_already_exists" | "form_not_found" | "form_in_use" | "flow_step_configuration_not_found" | "identity_not_found" | "step_order_violation" | "serialization" | "mock_data" | "api_key_not_found" | "not_implemented" | "access_grant" | "rate_limit_exceeded" | "missing_api_key" | "invalid_api_key" | "origin_not_allowed" | "step_already_completed" | "send_sms" | "parse_error" | "inviter_organization_not_found" | "forbidden" | "passkey_authentication" | "internal";
341
+ FieldControlOperation: {
342
+ /** Format: uuid */
343
+ identityId: string;
344
+ operation: components["schemas"]["FieldControlOperationType"];
345
+ /** Format: date-time */
346
+ timestamp: string;
347
+ zid: string;
348
+ };
349
+ FieldControlOperationType: {
350
+ markAsFalsePositive: {
351
+ comment: string;
352
+ };
353
+ } | {
354
+ unmarkAsFalsePositive: {
355
+ comment: string;
356
+ };
357
+ } | {
358
+ comment: {
359
+ comment: string;
360
+ };
361
+ };
362
+ FieldWithControl: {
363
+ controls: components["schemas"]["FieldControlOperation"][];
364
+ value: string[];
365
+ };
366
+ FileOptions: {
367
+ accept: string[];
368
+ expectedDocumentType: string;
369
+ };
235
370
  /** @enum {string} */
236
371
  FilterOperator: "unfiltered" | "in" | "equals" | "not-in" | "not-equals" | "contains";
237
372
  Flow: {
238
373
  /** Format: date-time */
239
374
  createdAt?: string | null;
240
- extendedWebhook: boolean;
241
375
  failureUrl?: string | null;
376
+ /** Format: uuid */
242
377
  id: string;
243
378
  name: string;
244
379
  slug: string;
@@ -259,23 +394,30 @@ interface components {
259
394
  flow?: components["schemas"]["Flow"] | null;
260
395
  flowSlug: string;
261
396
  formResults: components["schemas"]["FormResult"][];
397
+ /** Format: uuid */
262
398
  id: string;
263
399
  identity?: components["schemas"]["Identity"] | null;
264
400
  kybResults: components["schemas"]["KybResult"][];
265
401
  organization?: components["schemas"]["Organization"] | null;
402
+ /** Format: uuid */
266
403
  organizationId: string;
404
+ phoneResults: components["schemas"]["PhoneResult"][];
267
405
  poaResults: components["schemas"]["PoaResult"][];
268
406
  spidResults: components["schemas"]["SpidResult"][];
269
407
  /** Format: date-time */
270
408
  updatedAt?: string | null;
409
+ walletResults: components["schemas"]["WalletResult"][];
271
410
  };
272
411
  FlowStep: {
273
412
  config: components["schemas"]["DvConfig"];
274
413
  /** Format: date-time */
275
414
  createdAt?: string | null;
276
415
  failureUrl?: string | null;
416
+ /** Format: uuid */
277
417
  flowId: string;
418
+ /** Format: uuid */
278
419
  gotoStepId?: string | null;
420
+ /** Format: uuid */
279
421
  id: string;
280
422
  name: string;
281
423
  /** Format: int32 */
@@ -291,8 +433,11 @@ interface components {
291
433
  /** Format: date-time */
292
434
  createdAt?: string | null;
293
435
  failureUrl?: string | null;
436
+ /** Format: uuid */
294
437
  flowId: string;
438
+ /** Format: uuid */
295
439
  gotoStepId?: string | null;
440
+ /** Format: uuid */
296
441
  id: string;
297
442
  name: string;
298
443
  /** Format: int32 */
@@ -308,8 +453,11 @@ interface components {
308
453
  /** Format: date-time */
309
454
  createdAt?: string | null;
310
455
  failureUrl?: string | null;
456
+ /** Format: uuid */
311
457
  flowId: string;
458
+ /** Format: uuid */
312
459
  gotoStepId?: string | null;
460
+ /** Format: uuid */
313
461
  id: string;
314
462
  name: string;
315
463
  /** Format: int32 */
@@ -325,8 +473,11 @@ interface components {
325
473
  /** Format: date-time */
326
474
  createdAt?: string | null;
327
475
  failureUrl?: string | null;
476
+ /** Format: uuid */
328
477
  flowId: string;
478
+ /** Format: uuid */
329
479
  gotoStepId?: string | null;
480
+ /** Format: uuid */
330
481
  id: string;
331
482
  name: string;
332
483
  /** Format: int32 */
@@ -342,8 +493,11 @@ interface components {
342
493
  /** Format: date-time */
343
494
  createdAt?: string | null;
344
495
  failureUrl?: string | null;
496
+ /** Format: uuid */
345
497
  flowId: string;
498
+ /** Format: uuid */
346
499
  gotoStepId?: string | null;
500
+ /** Format: uuid */
347
501
  id: string;
348
502
  name: string;
349
503
  /** Format: int32 */
@@ -354,14 +508,138 @@ interface components {
354
508
  type: "SPID";
355
509
  /** Format: date-time */
356
510
  updatedAt?: string | null;
511
+ } | {
512
+ config: components["schemas"]["PhoneConfig"];
513
+ /** Format: date-time */
514
+ createdAt?: string | null;
515
+ failureUrl?: string | null;
516
+ /** Format: uuid */
517
+ flowId: string;
518
+ /** Format: uuid */
519
+ gotoStepId?: string | null;
520
+ /** Format: uuid */
521
+ id: string;
522
+ name: string;
523
+ /** Format: int32 */
524
+ order: number;
525
+ slug: string;
526
+ successUrl?: string | null;
527
+ /** @enum {string} */
528
+ type: "PHONE";
529
+ /** Format: date-time */
530
+ updatedAt?: string | null;
531
+ } | {
532
+ config: components["schemas"]["WalletConfig"];
533
+ /** Format: date-time */
534
+ createdAt?: string | null;
535
+ failureUrl?: string | null;
536
+ /** Format: uuid */
537
+ flowId: string;
538
+ /** Format: uuid */
539
+ gotoStepId?: string | null;
540
+ /** Format: uuid */
541
+ id: string;
542
+ name: string;
543
+ /** Format: int32 */
544
+ order: number;
545
+ slug: string;
546
+ successUrl?: string | null;
547
+ /** @enum {string} */
548
+ type: "WALLET";
549
+ /** Format: date-time */
550
+ updatedAt?: string | null;
551
+ } | {
552
+ config: components["schemas"]["LivenessConfig"];
553
+ /** Format: date-time */
554
+ createdAt?: string | null;
555
+ failureUrl?: string | null;
556
+ /** Format: uuid */
557
+ flowId: string;
558
+ /** Format: uuid */
559
+ gotoStepId?: string | null;
560
+ /** Format: uuid */
561
+ id: string;
562
+ name: string;
563
+ /** Format: int32 */
564
+ order: number;
565
+ slug: string;
566
+ successUrl?: string | null;
567
+ /** @enum {string} */
568
+ type: "LIVENESS";
569
+ /** Format: date-time */
570
+ updatedAt?: string | null;
571
+ } | {
572
+ config: components["schemas"]["AutoOneClickKycConfig"];
573
+ /** Format: date-time */
574
+ createdAt?: string | null;
575
+ failureUrl?: string | null;
576
+ /** Format: uuid */
577
+ flowId: string;
578
+ /** Format: uuid */
579
+ gotoStepId?: string | null;
580
+ /** Format: uuid */
581
+ id: string;
582
+ name: string;
583
+ /** Format: int32 */
584
+ order: number;
585
+ slug: string;
586
+ successUrl?: string | null;
587
+ /** @enum {string} */
588
+ type: "AUTO_ONE_CLICK_KYC";
589
+ /** Format: date-time */
590
+ updatedAt?: string | null;
591
+ } | {
592
+ config: components["schemas"]["OrchestratorConfig"];
593
+ /** Format: date-time */
594
+ createdAt?: string | null;
595
+ failureUrl?: string | null;
596
+ /** Format: uuid */
597
+ flowId: string;
598
+ /** Format: uuid */
599
+ gotoStepId?: string | null;
600
+ /** Format: uuid */
601
+ id: string;
602
+ name: string;
603
+ /** Format: int32 */
604
+ order: number;
605
+ slug: string;
606
+ successUrl?: string | null;
607
+ /** @enum {string} */
608
+ type: "ORCHESTRATOR";
609
+ /** Format: date-time */
610
+ updatedAt?: string | null;
611
+ };
612
+ FlowStepConfig: components["schemas"]["AutoOneClickKycConfig"] | components["schemas"]["DvConfig"] | components["schemas"]["FormConfig"] | components["schemas"]["PoaConfig"] | components["schemas"]["KybConfig"] | components["schemas"]["WalletConfig"] | components["schemas"]["LivenessConfig"] | components["schemas"]["OrchestratorConfig"] | components["schemas"]["SpidConfig"] | components["schemas"]["PhoneConfig"];
613
+ FlowStepInfo: {
614
+ CONFIG: components["schemas"]["FlowStepConfig"];
615
+ /** Format: date-time */
616
+ CREATED_AT?: string | null;
617
+ FAILURE_URL?: string | null;
618
+ /** Format: uuid */
619
+ FLOW_ID: string;
620
+ /** Format: uuid */
621
+ GOTO_STEP_ID?: string | null;
622
+ /** Format: uuid */
623
+ ID: string;
624
+ NAME: string;
625
+ /** Format: int32 */
626
+ ORDER: number;
627
+ SLUG: string;
628
+ STEP_TYPE: components["schemas"]["FlowStepType"];
629
+ SUCCESS_URL?: string | null;
630
+ /** Format: date-time */
631
+ UPDATED_AT?: string | null;
357
632
  };
358
- FlowStepConfig: components["schemas"]["DvConfig"] | components["schemas"]["FormConfig"] | components["schemas"]["PoaConfig"] | components["schemas"]["KybConfig"] | components["schemas"]["SpidConfig"];
633
+ /** @enum {string} */
634
+ FlowStepType: "DV" | "FORM" | "POA" | "KYB" | "SPID" | "PHONE" | "WALLET" | "LIVENESS" | "AUTO_ONE_CLICK_KYC" | "ORCHESTRATOR";
359
635
  Form: {
360
636
  /** Format: date-time */
361
637
  createdAt?: string | null;
362
638
  description?: string | null;
639
+ /** Format: uuid */
363
640
  id: string;
364
641
  name: string;
642
+ /** Format: uuid */
365
643
  organizationId: string;
366
644
  sections: components["schemas"]["FormSection"][];
367
645
  /** Format: date-time */
@@ -375,6 +653,7 @@ interface components {
375
653
  };
376
654
  FormConfig: {
377
655
  form?: components["schemas"]["Form"] | null;
656
+ /** Format: uuid */
378
657
  formId: string;
379
658
  /** @example { "default": "Next step" } */
380
659
  labels?: {
@@ -398,16 +677,20 @@ interface components {
398
677
  FormResult: {
399
678
  /** Format: date-time */
400
679
  createdAt?: string | null;
680
+ /** Format: uuid */
401
681
  flowResultId: string;
402
682
  flowStep?: Omit<components["schemas"]["FlowStep"], "type"> | null;
683
+ /** Format: uuid */
403
684
  flowStepId?: string | null;
404
685
  form?: components["schemas"]["Form"] | null;
686
+ /** Format: uuid */
405
687
  id: string;
406
688
  reason?: components["schemas"]["FormReason"] | null;
407
689
  sections: components["schemas"]["FormSection"][];
408
690
  status: components["schemas"]["ResultStatus"];
409
691
  /** Format: date-time */
410
692
  updatedAt?: string | null;
693
+ /** Format: uuid */
411
694
  verificationRequestId?: string | null;
412
695
  };
413
696
  FormSection: {
@@ -428,26 +711,44 @@ interface components {
428
711
  };
429
712
  GetFullFlowResponse: {
430
713
  flow: components["schemas"]["Flow"];
714
+ flowPartnerOrganizationsNames?: string[] | null;
715
+ /** Format: uuid */
716
+ organizationId: string;
431
717
  organizationName: string;
432
718
  settings: components["schemas"]["Settings"];
433
719
  };
720
+ GetNextStepPayload: {
721
+ email: string;
722
+ };
723
+ GetNextStepResponse: {
724
+ isCompleted: boolean;
725
+ nextStep?: Omit<components["schemas"]["FlowStep"], "type"> | null;
726
+ };
434
727
  GetVerificationRequestResponse: {
435
728
  identity: components["schemas"]["Identity"];
729
+ passkey?: components["schemas"]["VaultUnlockPasskeyData"] | null;
436
730
  verificationRequest: components["schemas"]["VerificationRequest"];
437
731
  };
438
732
  Identity: {
439
733
  /** Format: date-time */
440
734
  createdAt?: string | null;
735
+ /** Format: uuid */
441
736
  defaultOrganizationId?: string | null;
442
737
  email: string;
443
738
  emailVerified: boolean;
739
+ /** Format: uuid */
444
740
  id: string;
445
741
  isActive: boolean;
446
742
  role: components["schemas"]["Role"];
743
+ settings: components["schemas"]["IdentitySettings"];
447
744
  /** Format: date-time */
448
745
  updatedAt?: string | null;
449
746
  zid: string;
450
747
  };
748
+ IdentitySettings: {
749
+ lastEnvironmentIsSandbox?: boolean;
750
+ locale: components["schemas"]["Locale"];
751
+ };
451
752
  Image: {
452
753
  /** Format: int32 */
453
754
  containerType: number;
@@ -463,21 +764,92 @@ interface components {
463
764
  [key: string]: string;
464
765
  };
465
766
  name: string;
466
- options: {
767
+ options: unknown;
768
+ required: boolean;
769
+ /** @enum {string} */
770
+ type: "date";
771
+ value?: unknown;
772
+ } | {
773
+ label: {
467
774
  [key: string]: string;
468
775
  };
776
+ name: string;
777
+ options: unknown;
469
778
  required: boolean;
470
- type: components["schemas"]["InputFieldType"];
779
+ /** @enum {string} */
780
+ type: "text";
781
+ value?: unknown;
782
+ } | {
783
+ label: {
784
+ [key: string]: string;
785
+ };
786
+ name: string;
787
+ options: unknown;
788
+ required: boolean;
789
+ /** @enum {string} */
790
+ type: "textarea";
791
+ value?: unknown;
792
+ } | {
793
+ label: {
794
+ [key: string]: string;
795
+ };
796
+ name: string;
797
+ options: unknown;
798
+ required: boolean;
799
+ /** @enum {string} */
800
+ type: "checkbox";
801
+ value?: unknown;
802
+ } | {
803
+ label: {
804
+ [key: string]: string;
805
+ };
806
+ name: string;
807
+ options: components["schemas"]["FileOptions"];
808
+ required: boolean;
809
+ /** @enum {string} */
810
+ type: "file";
811
+ value?: unknown;
812
+ } | {
813
+ label: {
814
+ [key: string]: string;
815
+ };
816
+ name: string;
817
+ /** @description Option labels for select fields: maps option value/UUID to localized labels */
818
+ optionLabels: {
819
+ [key: string]: {
820
+ [key: string]: string;
821
+ };
822
+ };
823
+ options: components["schemas"]["SelectOptions"];
824
+ required: boolean;
825
+ /** @enum {string} */
826
+ type: "select";
471
827
  value?: unknown;
472
828
  };
829
+ InputFieldOptions: components["schemas"]["FileOptions"] | components["schemas"]["SelectOptions"] | unknown;
473
830
  /** @enum {string} */
474
- InputFieldType: "date" | "text" | "textarea" | "checkbox";
831
+ InputFieldType: "date" | "text" | "textarea" | "checkbox" | "file" | "select";
475
832
  KybConfig: {
833
+ articlesOfAssociation?: components["schemas"]["DocumentConfig"] | null;
834
+ certificateOfIncorporation?: components["schemas"]["DocumentConfig"] | null;
835
+ /**
836
+ * @default false
837
+ * @example false
838
+ */
839
+ collectDirectors: boolean;
840
+ customDocuments?: components["schemas"]["CustomDocumentConfig"][] | null;
841
+ /** Format: uuid */
476
842
  kycFlowId: string;
477
843
  /** @example { "default": "Next step" } */
478
844
  labels?: {
479
845
  [key: string]: string;
480
846
  };
847
+ /**
848
+ * Format: int32
849
+ * @default 10
850
+ * @example 3
851
+ */
852
+ maxDirectors: number;
481
853
  /**
482
854
  * Format: int32
483
855
  * @default 10
@@ -490,13 +862,18 @@ interface components {
490
862
  * @example 3
491
863
  */
492
864
  maxUbos: number;
865
+ organizationalStructureChart?: components["schemas"]["DocumentConfig"] | null;
493
866
  };
494
867
  KybResult: {
495
868
  businessInformation?: components["schemas"]["BusinessInformation"] | null;
496
869
  /** Format: date-time */
497
870
  createdAt?: string | null;
871
+ directorDefinitions?: components["schemas"]["DirectorDefinition"][] | null;
498
872
  documentUploads?: components["schemas"]["DocumentUpload"][] | null;
499
873
  flowStep?: Omit<components["schemas"]["FlowStep"], "type"> | null;
874
+ /** Format: uuid */
875
+ flowStepId?: string | null;
876
+ /** Format: uuid */
500
877
  id: string;
501
878
  pepAndSanctionsStatus: components["schemas"]["PepAndSanctionsStatus"];
502
879
  reason?: string | null;
@@ -505,10 +882,35 @@ interface components {
505
882
  uboDefinitions?: components["schemas"]["UboDefinition"][] | null;
506
883
  /** Format: date-time */
507
884
  updatedAt?: string | null;
885
+ /** Format: uuid */
508
886
  verificationRequestId?: string | null;
509
887
  };
888
+ LivenessConfig: {
889
+ /** @description When `true` the liveness step also performs a biometric match against the stored portrait.
890
+ * Set to `false` to keep the liveness UX but skip biometric verification. */
891
+ biometricCheckEnabled?: boolean | null;
892
+ /** Format: uuid */
893
+ documentStepId: string;
894
+ /** @example { "en_button_label": "Next step" } */
895
+ labels?: {
896
+ [key: string]: string;
897
+ };
898
+ /**
899
+ * Format: int32
900
+ * @example 5
901
+ */
902
+ maxAttempts?: number | null;
903
+ thresholds?: {
904
+ [key: string]: number;
905
+ } | null;
906
+ };
510
907
  /** @enum {string} */
511
- Locale: "en";
908
+ LivenessConfigThreshold: "portraitMatchPercent" | "biometricMatchPercent";
909
+ /**
910
+ * @description Locale identifier
911
+ * @enum {string}
912
+ */
913
+ Locale: "en" | "it" | "de" | "es" | "fr" | "hi" | "id" | "pt";
512
914
  ModerateKybResultPayload: {
513
915
  pepAndSanctionsStatus?: components["schemas"]["PepAndSanctionsStatusField"] | null;
514
916
  /** Format: binary */
@@ -519,14 +921,46 @@ interface components {
519
921
  success: boolean;
520
922
  };
521
923
  /** @enum {string} */
522
- ModerationResultStatus: "ACQUIRING" | "PENDING_MODERATION" | "SUCCESS" | "FAILED";
924
+ ModerationResultStatus: "ACQUIRING" | "PENDING_MODERATION" | "REVIEW_REQUIRED" | "SUCCESS" | "FAILED";
523
925
  ModerationResultStatusField: components["schemas"]["ModerationResultStatus"];
926
+ OrchestratorCondition: {
927
+ /** @description Country codes to match (ISO Alpha-2), or ["*"] for any */
928
+ countryCodes: string[];
929
+ /** @description Document types to match, or None for any */
930
+ documentTypes?: components["schemas"]["OrchestratorDocumentType"][] | null;
931
+ /**
932
+ * Format: uuid
933
+ * @description Target flow ID to redirect to
934
+ */
935
+ targetFlowId: string;
936
+ };
937
+ OrchestratorConfig: {
938
+ /** @description Whether to collect document type from user (required field for untagged deserialization) */
939
+ collectDocumentType: boolean;
940
+ /** @description Ordered list of conditions (first match wins) */
941
+ conditions?: components["schemas"]["OrchestratorCondition"][];
942
+ /**
943
+ * Format: uuid
944
+ * @description Default fallback flow ID if no conditions match (the "else" case)
945
+ */
946
+ defaultFlowId?: string | null;
947
+ /**
948
+ * @description UI labels
949
+ * @example { "en_title": "Select your country" }
950
+ */
951
+ labels?: {
952
+ [key: string]: string;
953
+ };
954
+ };
955
+ /** @enum {string} */
956
+ OrchestratorDocumentType: "ID_CARD" | "DRIVER_LICENSE" | "PASSPORT";
524
957
  Organization: {
525
958
  address: string;
526
959
  country: string;
527
960
  /** Format: date-time */
528
961
  createdAt?: string | null;
529
962
  email: string;
963
+ /** Format: uuid */
530
964
  id: string;
531
965
  industry?: string | null;
532
966
  name: string;
@@ -567,6 +1001,29 @@ interface components {
567
1001
  placeOfBirth?: string;
568
1002
  surname: string;
569
1003
  };
1004
+ PhoneConfig: {
1005
+ /** @example { "default": "Next step" } */
1006
+ labels?: {
1007
+ [key: string]: string;
1008
+ };
1009
+ };
1010
+ PhoneResult: {
1011
+ /** Format: date-time */
1012
+ createdAt?: string | null;
1013
+ /** Format: uuid */
1014
+ flowResultId: string;
1015
+ flowStep?: Omit<components["schemas"]["FlowStep"], "type"> | null;
1016
+ /** Format: uuid */
1017
+ flowStepId?: string | null;
1018
+ /** Format: uuid */
1019
+ id: string;
1020
+ phoneNumberLast4: string;
1021
+ status: components["schemas"]["ResultStatus"];
1022
+ /** Format: date-time */
1023
+ updatedAt?: string | null;
1024
+ /** Format: uuid */
1025
+ verificationRequestId?: string | null;
1026
+ };
570
1027
  Plaintext: {
571
1028
  text: {
572
1029
  [key: string]: string;
@@ -585,22 +1042,27 @@ interface components {
585
1042
  maxAgeDays?: number;
586
1043
  };
587
1044
  /** @enum {string} */
588
- PoaDocumentType: "PAY_SLIP" | "UTILITY_BILL" | "FINANCIAL_DOCUMENT" | "RECEIPT" | "INVOICE" | "BANK_DOCUMENT";
1045
+ PoaDocumentType: "PAY_SLIP" | "UTILITY_BILL" | "FINANCIAL_DOCUMENT" | "RECEIPT" | "INVOICE" | "BANK_DOCUMENT" | "TAX_CLEARANCE_CERTIFICATE" | "HOUSEHOLD_REGISTER" | "CERTIFICATE_OF_RESIDENCE" | "OTHER";
589
1046
  /** @enum {string} */
590
- PoaReason: "UNKNOWN" | "DOCUMENT_TYPE_NOT_ALLOWED" | "NAME_MISMATCH" | "DATE_TOO_OLD" | "INVALID_DOCUMENT";
1047
+ PoaReason: "UNKNOWN" | "DOCUMENT_TYPE_NOT_ALLOWED" | "NAME_MISMATCH" | "DATE_TOO_OLD" | "INVALID_DOCUMENT" | "UNRECOGNIZED_ADDRESS";
591
1048
  PoaResult: {
592
1049
  /** Format: date-time */
593
1050
  checkedAt?: string | null;
594
1051
  /** Format: date-time */
595
1052
  createdAt: string;
1053
+ /** Format: uuid */
596
1054
  documentId?: string | null;
597
1055
  documentType?: components["schemas"]["PoaDocumentType"] | null;
598
1056
  flowStep?: Omit<components["schemas"]["FlowStep"], "type"> | null;
1057
+ /** Format: uuid */
1058
+ flowStepId?: string | null;
1059
+ /** Format: uuid */
599
1060
  id: string;
600
1061
  reason?: components["schemas"]["PoaReason"] | null;
601
1062
  status: components["schemas"]["ResultStatus"];
602
1063
  /** Format: date-time */
603
1064
  updatedAt: string;
1065
+ /** Format: uuid */
604
1066
  verificationRequestId?: string | null;
605
1067
  };
606
1068
  ProcessAddressDocumentRequest: {
@@ -609,20 +1071,59 @@ interface components {
609
1071
  };
610
1072
  ProcessAddressDocumentResponse: {
611
1073
  jobId: string;
1074
+ /** Format: uuid */
612
1075
  verificationRequestId: string;
613
- websocketNamespace: string;
1076
+ };
1077
+ ProcessImagesOverrides: {
1078
+ authParams?: {
1079
+ [key: string]: unknown;
1080
+ } | null;
1081
+ checkAuth?: boolean | null;
1082
+ scenario?: string | null;
1083
+ };
1084
+ /** @enum {string} */
1085
+ ProductType: "UNKNOWN" | "KYC" | "KYB" | "KYC_PASSPORT" | "SPID" | "PHONE" | "WALLET" | "EXPORT_API" | "EXPORT_UI" | "BUSINESS_VERIFICATION";
1086
+ /** @enum {string} */
1087
+ RequiredDocumentField: "firstName" | "middleName" | "lastName" | "dateOfBirth" | "phone" | "email" | "street" | "city" | "state" | "postcode" | "country" | "socialSecurityNumber";
1088
+ ResultControlOperation: {
1089
+ /** Format: uuid */
1090
+ identityId: string;
1091
+ operation: components["schemas"]["ResultControlOperationType"];
1092
+ /** Format: date-time */
1093
+ timestamp: string;
1094
+ zid: string;
1095
+ };
1096
+ ResultControlOperationType: {
1097
+ approve: {
1098
+ reason?: string | null;
1099
+ };
1100
+ } | {
1101
+ reject: {
1102
+ reason?: string | null;
1103
+ };
1104
+ } | {
1105
+ escalate: {
1106
+ reason?: string | null;
1107
+ };
614
1108
  };
615
1109
  /** @enum {string} */
616
- ProductType: "UNKNOWN" | "KYC" | "KYB" | "PRODUCTION_MODE" | "SPID" | "EXPORT_API" | "EXPORT_UI";
1110
+ ResultStatus: "PASSED" | "FAILED" | "PARTIAL" | "REQUIRES_MANUAL_REVIEW" | "REQUIRES_ADMIN_REVIEW";
617
1111
  /** @enum {string} */
618
- ResultStatus: "PASSED" | "FAILED";
1112
+ RiskLevel: "low" | "medium" | "high" | "critical";
1113
+ RiskScore: {
1114
+ riskLevel: components["schemas"]["RiskLevel"];
1115
+ /** Format: int32 */
1116
+ riskScorePercent: number;
1117
+ sourcesCount: number;
1118
+ };
619
1119
  /** @enum {string} */
620
- Role: "GUEST" | "USER" | "ADMIN";
1120
+ Role: "ANONYMOUS" | "GUEST" | "USER" | "ADMIN" | "SDK";
621
1121
  SdkCreateVerificationRequestPayload: {
622
1122
  customData?: {
623
1123
  [key: string]: unknown;
624
1124
  } | null;
625
1125
  email: string;
1126
+ /** Format: uuid */
626
1127
  flowStepId: string;
627
1128
  };
628
1129
  SdkCreateVerificationRequestResponse: {
@@ -631,9 +1132,12 @@ interface components {
631
1132
  flowStepSlug: string;
632
1133
  isSandbox: boolean;
633
1134
  verificationRequest: components["schemas"]["VerificationRequest"];
634
- websocketNamespace: string;
635
1135
  zypheToken: string;
636
1136
  };
1137
+ SelectOptions: {
1138
+ isOtherAllowed: boolean;
1139
+ values: string[];
1140
+ };
637
1141
  Settings: {
638
1142
  /** Format: date-time */
639
1143
  createdAt?: string | null;
@@ -645,6 +1149,8 @@ interface components {
645
1149
  updatedAt?: string | null;
646
1150
  webhookSecret?: string | null;
647
1151
  };
1152
+ /** @enum {string} */
1153
+ SiwxChain: "ETHEREUM" | "ETHEREUM_TESTNET" | "SOLANA" | "SOLANA_TESTNET";
648
1154
  SpidConfig: {
649
1155
  /** @example { "default": "Next step" } */
650
1156
  labels?: {
@@ -655,12 +1161,16 @@ interface components {
655
1161
  /** Format: date-time */
656
1162
  createdAt?: string | null;
657
1163
  flowStep?: Omit<components["schemas"]["FlowStep"], "type"> | null;
1164
+ /** Format: uuid */
1165
+ flowStepId?: string | null;
1166
+ /** Format: uuid */
658
1167
  id: string;
659
1168
  path: string;
660
1169
  reason?: string | null;
661
1170
  status: components["schemas"]["ResultStatus"];
662
1171
  /** Format: date-time */
663
1172
  updatedAt?: string | null;
1173
+ /** Format: uuid */
664
1174
  verificationRequestId?: string | null;
665
1175
  };
666
1176
  SpidResultDetails: {
@@ -683,6 +1193,22 @@ interface components {
683
1193
  spidCode?: string | null;
684
1194
  username?: string | null;
685
1195
  };
1196
+ StartPhoneVerificationRequest: {
1197
+ phoneNumberE164: string;
1198
+ };
1199
+ StartPhoneVerificationResponse: {
1200
+ /** Format: uuid */
1201
+ verificationRequestId: string;
1202
+ };
1203
+ StartWalletVerificationRequest: {
1204
+ address: string;
1205
+ chain: components["schemas"]["SiwxChain"];
1206
+ };
1207
+ StartWalletVerificationResponse: {
1208
+ message: string;
1209
+ /** Format: uuid */
1210
+ verificationRequestId: string;
1211
+ };
686
1212
  UboDefinition: {
687
1213
  country: string;
688
1214
  dateOfBirth: string;
@@ -691,8 +1217,23 @@ interface components {
691
1217
  gender: string;
692
1218
  lastName: string;
693
1219
  };
1220
+ /**
1221
+ * Format: uuid
1222
+ * @description A UUID string
1223
+ */
1224
+ Uuid: string;
694
1225
  /** @enum {string} */
695
- 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";
1226
+ ValidationMessages: "validation_unexpected" | "validation_invalid_file_format" | "validation_organization_slug_exists" | "validation_flow_slug_exists" | "validation_flow_id_mismatch" | "validation_flow_step_name_exists" | "validation_consents_not_granted" | "validation_kyb_config_match" | "validation_kyb_config_already_uses_this_kyc_flow_id" | "validation_kyb_moderation_status_wrong" | "validation_form_name_exists" | "validation_database_error" | "validation_flow_name_invalid" | "validation_flow_slug_name_invalid" | "validation_flow_step_name_invalid" | "validation_flow_step_order_duplicate" | "validation_flow_step_order_invalid" | "validation_flow_step_id_mismatch" | "validation_password_too_short" | "validation_password_no_uppercase" | "validation_password_no_lowercase" | "validation_password_no_number" | "validation_password_no_special_character" | "validation_password_contains_whitespace_or_control" | "validation_emails_empty" | "validation_email_invalid" | "validation_emails_too_many" | "validation_emails_duplicate" | "validation_invite_to_self" | "validation_e164_format" | "validation_flow_step_already_has_reference" | "validation_flow_not_found" | "validation_empty_parameter" | "validation_form_not_found";
1227
+ VaultUnlockPasskeyData: {
1228
+ /** @description Passkey challenge for vault unlock (base64url) */
1229
+ challenge: string;
1230
+ /** @description Credential ID for vault unlock (base64url-encoded) */
1231
+ credentialId: string;
1232
+ /** @description Passkey authentication options for vault unlock */
1233
+ options: Record<string, never>;
1234
+ /** @description PRF salt for vault unlock (base64url) */
1235
+ prfSalt: string;
1236
+ };
696
1237
  VerificationRequest: {
697
1238
  amlResult?: components["schemas"]["AmlResult"] | null;
698
1239
  /** Format: int32 */
@@ -703,40 +1244,101 @@ interface components {
703
1244
  [key: string]: unknown;
704
1245
  };
705
1246
  dvResult?: components["schemas"]["DvResult"] | null;
1247
+ /** Format: uuid */
706
1248
  flowId: string;
1249
+ flowStep?: Omit<components["schemas"]["FlowStep"], "type"> | null;
1250
+ /** Format: uuid */
707
1251
  flowStepId: string;
708
1252
  formResult?: components["schemas"]["FormResult"] | null;
1253
+ /** Format: uuid */
709
1254
  id: string;
710
1255
  identity?: components["schemas"]["Identity"] | null;
1256
+ /** Format: uuid */
711
1257
  identityId: string;
712
1258
  kybResult?: components["schemas"]["KybResult"] | null;
1259
+ /** Format: uuid */
713
1260
  organizationId: string;
1261
+ phoneResult?: components["schemas"]["PhoneResult"] | null;
714
1262
  poaResult?: components["schemas"]["PoaResult"] | null;
715
1263
  reason?: string | null;
1264
+ replayerZid?: string | null;
716
1265
  spidResult?: components["schemas"]["SpidResult"] | null;
717
1266
  status: components["schemas"]["VerificationRequestStatus"];
718
1267
  /** Format: date-time */
719
1268
  updatedAt?: string | null;
1269
+ walletResult?: components["schemas"]["WalletResult"] | null;
720
1270
  };
721
1271
  /** @enum {string} */
722
- VerificationRequestStatus: "PENDING" | "COMPLETED" | "FAILED" | "CANCELLED" | "QUEUED" | "PROCESSING";
1272
+ VerificationRequestStatus: "PENDING" | "COMPLETED" | "FAILED" | "CANCELLED" | "QUEUED" | "PROCESSING" | "REQUIRES_MANUAL_REVIEW" | "REQUIRES_ADMIN_REVIEW" | "REJECTED";
1273
+ VerifyPhoneCodeRequest: {
1274
+ code: string;
1275
+ phoneNumberE164: string;
1276
+ };
1277
+ VerifyPhoneCodeResponse: {
1278
+ /** Format: uuid */
1279
+ verificationRequestId: string;
1280
+ };
1281
+ VerifyWalletSignatureRequest: {
1282
+ address: string;
1283
+ chain: components["schemas"]["SiwxChain"];
1284
+ signature: string;
1285
+ };
1286
+ VerifyWalletSignatureResponse: {
1287
+ /** Format: uuid */
1288
+ verificationRequestId: string;
1289
+ };
1290
+ WalletConfig: {
1291
+ chains: components["schemas"]["SiwxChain"][];
1292
+ /** @example { "default": "Next step" } */
1293
+ labels?: {
1294
+ [key: string]: string;
1295
+ };
1296
+ };
1297
+ WalletResult: {
1298
+ /** Format: date-time */
1299
+ createdAt?: string | null;
1300
+ /** Format: uuid */
1301
+ flowResultId: string;
1302
+ flowStep?: Omit<components["schemas"]["FlowStep"], "type"> | null;
1303
+ /** Format: uuid */
1304
+ flowStepId?: string | null;
1305
+ /** Format: uuid */
1306
+ id: string;
1307
+ message: string;
1308
+ reason?: string | null;
1309
+ signature: string;
1310
+ status: components["schemas"]["ResultStatus"];
1311
+ /** Format: date-time */
1312
+ updatedAt?: string | null;
1313
+ /** Format: uuid */
1314
+ verificationRequestId?: string | null;
1315
+ walletAddress: string;
1316
+ walletChain: string;
1317
+ };
723
1318
  ZypheApiKey: {
724
1319
  allowedOrigins: string[];
725
1320
  /** Format: date-time */
726
1321
  createdAt?: string | null;
727
1322
  description?: string | null;
1323
+ /** Format: uuid */
728
1324
  id: string;
729
1325
  key: string;
730
- keyType: string;
1326
+ keyType: components["schemas"]["ApiKeyType"];
731
1327
  name?: string | null;
732
1328
  options: {
733
1329
  [key: string]: unknown;
734
1330
  };
735
1331
  organization?: components["schemas"]["Organization"] | null;
1332
+ /** Format: uuid */
736
1333
  organizationId: string;
737
1334
  /** Format: date-time */
738
1335
  updatedAt?: string | null;
739
1336
  };
1337
+ /**
1338
+ * @description Locale identifier
1339
+ * @enum {string}
1340
+ */
1341
+ "zyphe_shared.types.Locale": "en" | "it" | "de" | "es" | "fr" | "hi" | "id" | "pt";
740
1342
  };
741
1343
  responses: never;
742
1344
  parameters: never;
@@ -788,9 +1390,18 @@ interface InitializeZypheFlowParams {
788
1390
  */
789
1391
  customData?: Record<string, string>;
790
1392
  }
1393
+ type GetNextStepDetailsParams = Pick<InitializeZypheFlowParams, "flowId" | "isSandbox" | "email">;
791
1394
  interface SDKOptions {
792
1395
  apiKey: string;
793
- environment: Environment;
1396
+ /**
1397
+ * The environment to use for the SDK.
1398
+ * This will determine the base URL for the API and the Flow URL.
1399
+ *
1400
+ * If not provided, we will default to "production".
1401
+ *
1402
+ * @default "production"
1403
+ */
1404
+ environment?: Environment;
794
1405
  /**
795
1406
  * If set, the QR code displayed on desktop devices of a Document Verification flow will direct to this URL.
796
1407
  * If not set, the QR code will direct to the corresponding zyphe.com URL, depending upon your configured environment.
@@ -832,8 +1443,9 @@ interface CreateVerificationSessionParams {
832
1443
  }
833
1444
  declare function createVerificationSession({ email, flowId, flowStepId, isSandbox, customData, }: CreateVerificationSessionParams, opts: SDKOptions): Promise<openapi_fetch.FetchResponse<{
834
1445
  parameters: {
835
- query?: {
836
- sandbox?: boolean | null;
1446
+ query: {
1447
+ sandbox: boolean;
1448
+ locale?: components["schemas"]["Locale"];
837
1449
  };
838
1450
  header?: never;
839
1451
  path: {
@@ -903,6 +1515,68 @@ declare function constructVerificationSessionUrl({ flowParams, verificationSessi
903
1515
  verificationSession: SdkCreateVerificationRequestResponse;
904
1516
  opts: SDKOptions;
905
1517
  }): string;
1518
+ declare function getNextStepDetails(flowParams: GetNextStepDetailsParams, opts: SDKOptions): Promise<openapi_fetch.FetchResponse<{
1519
+ parameters: {
1520
+ query: {
1521
+ sandbox: boolean;
1522
+ locale?: components["schemas"]["Locale"];
1523
+ email: string;
1524
+ };
1525
+ header?: never;
1526
+ path: {
1527
+ flow_id: string;
1528
+ };
1529
+ cookie?: never;
1530
+ };
1531
+ requestBody?: never;
1532
+ responses: {
1533
+ 200: {
1534
+ headers: {
1535
+ [name: string]: unknown;
1536
+ };
1537
+ content: {
1538
+ "application/json": components["schemas"]["GetNextStepResponse"];
1539
+ };
1540
+ };
1541
+ 400: {
1542
+ headers: {
1543
+ [name: string]: unknown;
1544
+ };
1545
+ content: {
1546
+ "application/json": components["schemas"]["BaxeError"];
1547
+ };
1548
+ };
1549
+ 404: {
1550
+ headers: {
1551
+ [name: string]: unknown;
1552
+ };
1553
+ content: {
1554
+ "application/json": components["schemas"]["BaxeError"];
1555
+ };
1556
+ };
1557
+ 500: {
1558
+ headers: {
1559
+ [name: string]: unknown;
1560
+ };
1561
+ content: {
1562
+ "application/json": components["schemas"]["BaxeError"];
1563
+ };
1564
+ };
1565
+ };
1566
+ }, {
1567
+ headers: {
1568
+ "x-api-key": string;
1569
+ };
1570
+ params: {
1571
+ path: {
1572
+ flow_id: string;
1573
+ };
1574
+ query: {
1575
+ sandbox: boolean;
1576
+ email: string;
1577
+ };
1578
+ };
1579
+ }, `${string}/${string}`>>;
906
1580
 
907
1581
  declare enum ImageProvenance {
908
1582
  UNSPECIFIED_IMAGE_PROVENANCE = 0,
@@ -911,11 +1585,17 @@ declare enum ImageProvenance {
911
1585
  SIGNATURE_IMAGE = 3,
912
1586
  PORTRAIT_IMAGE = 5,
913
1587
  CITIZENSHIP_IMAGE = 6,
1588
+ SELFIE_IMAGE = 7,
914
1589
  UNRECOGNIZED = -1
915
1590
  }
916
1591
  declare enum ResultStatus {
917
1592
  FAILED = 0,
918
1593
  PASSED = 1,
1594
+ PARTIAL = 2,
1595
+ REQUIRES_MANUAL_REVIEW = 3,
1596
+ REQUIRES_ADMIN_REVIEW = 4,
1597
+ MANUALLY_APPROVED = 5,
1598
+ MANUALLY_REJECTED = 6,
919
1599
  UNRECOGNIZED = -1
920
1600
  }
921
1601
  interface PersonalData {
@@ -955,6 +1635,10 @@ interface Image {
955
1635
  provenance: ImageProvenance;
956
1636
  }
957
1637
  declare const Image: MessageFns<Image>;
1638
+ interface Video {
1639
+ url: string;
1640
+ }
1641
+ declare const Video: MessageFns<Video>;
958
1642
  interface Document {
959
1643
  personalData: PersonalData | undefined;
960
1644
  documentData: DocumentData | undefined;
@@ -963,8 +1647,9 @@ interface Document {
963
1647
  declare const Document: MessageFns<Document>;
964
1648
  interface Details {
965
1649
  status: ResultStatus;
966
- requestLog: string;
967
- responseLog: string;
1650
+ docreaderRequestLog: string;
1651
+ docreaderResponseLog: string;
1652
+ faceapiResponseLog: string;
968
1653
  }
969
1654
  declare const Details: MessageFns<Details>;
970
1655
  interface Message {
@@ -973,6 +1658,7 @@ interface Message {
973
1658
  backImage?: Image | undefined;
974
1659
  otherImage?: Image | undefined;
975
1660
  details?: Details | undefined;
1661
+ liveness?: Video | undefined;
976
1662
  }
977
1663
  declare const Message: MessageFns<Message>;
978
1664
  type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
@@ -1006,8 +1692,11 @@ interface GetFlowResultParams {
1006
1692
  declare function getFlowResult({ organizationId, flowResultId, isSandbox }: GetFlowResultParams, opts: SDKOptions): Promise<{
1007
1693
  data: {
1008
1694
  dvResults: {
1695
+ adminComment?: string | null;
1696
+ authenticityChecks: number[][];
1009
1697
  browser?: string | null;
1010
1698
  class?: string | null;
1699
+ countryCode?: string | null;
1011
1700
  createdAt?: string | null;
1012
1701
  data: {
1013
1702
  [key: string]: unknown;
@@ -1015,15 +1704,20 @@ declare function getFlowResult({ organizationId, flowResultId, isSandbox }: GetF
1015
1704
  documentId?: string | null;
1016
1705
  documentScorePercent?: number | null;
1017
1706
  documentType?: number | null;
1018
- firstName?: string | null;
1019
1707
  flowStep?: Omit<components["schemas"]["FlowStep"], "type"> | null;
1708
+ flowStepId?: string | null;
1020
1709
  id: string;
1021
- lastName?: string | null;
1710
+ manualReviewAt?: string | null;
1711
+ manualReviewNote?: string | null;
1712
+ manualReviewerId?: string | null;
1713
+ manualReviewerZid?: string | null;
1714
+ originalVrHistoryId?: string | null;
1022
1715
  platform?: string | null;
1023
1716
  portraitMatchPercent?: number | null;
1024
1717
  processAdditionalData: {
1025
1718
  [key: string]: unknown;
1026
1719
  };
1720
+ provinceCode?: string | null;
1027
1721
  reasons: components["schemas"]["DvReason"][];
1028
1722
  status: components["schemas"]["ResultStatus"];
1029
1723
  updatedAt?: string | null;
@@ -1046,6 +1740,7 @@ declare function getFlowResult({ organizationId, flowResultId, isSandbox }: GetF
1046
1740
  documentId?: string | null;
1047
1741
  documentType?: components["schemas"]["PoaDocumentType"] | null;
1048
1742
  flowStep?: Omit<components["schemas"]["FlowStep"], "type"> | null;
1743
+ flowStepId?: string | null;
1049
1744
  id: string;
1050
1745
  reason?: components["schemas"]["PoaReason"] | null;
1051
1746
  status: components["schemas"]["ResultStatus"];
@@ -1076,8 +1771,10 @@ declare function getFlowResult({ organizationId, flowResultId, isSandbox }: GetF
1076
1771
  kybResults?: {
1077
1772
  businessInformation?: components["schemas"]["BusinessInformation"] | null;
1078
1773
  createdAt?: string | null;
1774
+ directorDefinitions?: components["schemas"]["DirectorDefinition"][] | null;
1079
1775
  documentUploads?: components["schemas"]["DocumentUpload"][] | null;
1080
1776
  flowStep?: Omit<components["schemas"]["FlowStep"], "type"> | null;
1777
+ flowStepId?: string | null;
1081
1778
  id: string;
1082
1779
  pepAndSanctionsStatus: components["schemas"]["PepAndSanctionsStatus"];
1083
1780
  reason?: string | null;
@@ -1089,9 +1786,21 @@ declare function getFlowResult({ organizationId, flowResultId, isSandbox }: GetF
1089
1786
  }[] | undefined;
1090
1787
  organization?: components["schemas"]["Organization"] | null;
1091
1788
  organizationId?: string | undefined;
1789
+ phoneResults?: {
1790
+ createdAt?: string | null;
1791
+ flowResultId: string;
1792
+ flowStep?: Omit<components["schemas"]["FlowStep"], "type"> | null;
1793
+ flowStepId?: string | null;
1794
+ id: string;
1795
+ phoneNumberLast4: string;
1796
+ status: components["schemas"]["ResultStatus"];
1797
+ updatedAt?: string | null;
1798
+ verificationRequestId?: string | null;
1799
+ }[] | undefined;
1092
1800
  spidResults?: {
1093
1801
  createdAt?: string | null;
1094
1802
  flowStep?: Omit<components["schemas"]["FlowStep"], "type"> | null;
1803
+ flowStepId?: string | null;
1095
1804
  id: string;
1096
1805
  path: string;
1097
1806
  reason?: string | null;
@@ -1100,14 +1809,32 @@ declare function getFlowResult({ organizationId, flowResultId, isSandbox }: GetF
1100
1809
  verificationRequestId?: string | null;
1101
1810
  }[] | undefined;
1102
1811
  updatedAt?: string | null;
1812
+ walletResults?: {
1813
+ createdAt?: string | null;
1814
+ flowResultId: string;
1815
+ flowStep?: Omit<components["schemas"]["FlowStep"], "type"> | null;
1816
+ flowStepId?: string | null;
1817
+ id: string;
1818
+ message: string;
1819
+ reason?: string | null;
1820
+ signature: string;
1821
+ status: components["schemas"]["ResultStatus"];
1822
+ updatedAt?: string | null;
1823
+ verificationRequestId?: string | null;
1824
+ walletAddress: string;
1825
+ walletChain: string;
1826
+ }[] | undefined;
1103
1827
  };
1104
1828
  error?: never;
1105
1829
  response: Response;
1106
1830
  } | {
1107
1831
  data: {
1108
1832
  dvResults: {
1833
+ adminComment?: string | null;
1834
+ authenticityChecks: number[][];
1109
1835
  browser?: string | null;
1110
1836
  class?: string | null;
1837
+ countryCode?: string | null;
1111
1838
  createdAt?: string | null;
1112
1839
  data: {
1113
1840
  [key: string]: unknown;
@@ -1115,15 +1842,20 @@ declare function getFlowResult({ organizationId, flowResultId, isSandbox }: GetF
1115
1842
  documentId?: string | null;
1116
1843
  documentScorePercent?: number | null;
1117
1844
  documentType?: number | null;
1118
- firstName?: string | null;
1119
1845
  flowStep?: Omit<components["schemas"]["FlowStep"], "type"> | null;
1846
+ flowStepId?: string | null;
1120
1847
  id: string;
1121
- lastName?: string | null;
1848
+ manualReviewAt?: string | null;
1849
+ manualReviewNote?: string | null;
1850
+ manualReviewerId?: string | null;
1851
+ manualReviewerZid?: string | null;
1852
+ originalVrHistoryId?: string | null;
1122
1853
  platform?: string | null;
1123
1854
  portraitMatchPercent?: number | null;
1124
1855
  processAdditionalData: {
1125
1856
  [key: string]: unknown;
1126
1857
  };
1858
+ provinceCode?: string | null;
1127
1859
  reasons: components["schemas"]["DvReason"][];
1128
1860
  status: components["schemas"]["ResultStatus"];
1129
1861
  updatedAt?: string | null;
@@ -1146,6 +1878,7 @@ declare function getFlowResult({ organizationId, flowResultId, isSandbox }: GetF
1146
1878
  documentId?: string | null;
1147
1879
  documentType?: components["schemas"]["PoaDocumentType"] | null;
1148
1880
  flowStep?: Omit<components["schemas"]["FlowStep"], "type"> | null;
1881
+ flowStepId?: string | null;
1149
1882
  id: string;
1150
1883
  reason?: components["schemas"]["PoaReason"] | null;
1151
1884
  status: components["schemas"]["ResultStatus"];
@@ -1176,8 +1909,10 @@ declare function getFlowResult({ organizationId, flowResultId, isSandbox }: GetF
1176
1909
  kybResults?: {
1177
1910
  businessInformation?: components["schemas"]["BusinessInformation"] | null;
1178
1911
  createdAt?: string | null;
1912
+ directorDefinitions?: components["schemas"]["DirectorDefinition"][] | null;
1179
1913
  documentUploads?: components["schemas"]["DocumentUpload"][] | null;
1180
1914
  flowStep?: Omit<components["schemas"]["FlowStep"], "type"> | null;
1915
+ flowStepId?: string | null;
1181
1916
  id: string;
1182
1917
  pepAndSanctionsStatus: components["schemas"]["PepAndSanctionsStatus"];
1183
1918
  reason?: string | null;
@@ -1189,9 +1924,21 @@ declare function getFlowResult({ organizationId, flowResultId, isSandbox }: GetF
1189
1924
  }[] | undefined;
1190
1925
  organization?: components["schemas"]["Organization"] | null;
1191
1926
  organizationId?: string | undefined;
1927
+ phoneResults?: {
1928
+ createdAt?: string | null;
1929
+ flowResultId: string;
1930
+ flowStep?: Omit<components["schemas"]["FlowStep"], "type"> | null;
1931
+ flowStepId?: string | null;
1932
+ id: string;
1933
+ phoneNumberLast4: string;
1934
+ status: components["schemas"]["ResultStatus"];
1935
+ updatedAt?: string | null;
1936
+ verificationRequestId?: string | null;
1937
+ }[] | undefined;
1192
1938
  spidResults?: {
1193
1939
  createdAt?: string | null;
1194
1940
  flowStep?: Omit<components["schemas"]["FlowStep"], "type"> | null;
1941
+ flowStepId?: string | null;
1195
1942
  id: string;
1196
1943
  path: string;
1197
1944
  reason?: string | null;
@@ -1200,6 +1947,21 @@ declare function getFlowResult({ organizationId, flowResultId, isSandbox }: GetF
1200
1947
  verificationRequestId?: string | null;
1201
1948
  }[] | undefined;
1202
1949
  updatedAt?: string | null;
1950
+ walletResults?: {
1951
+ createdAt?: string | null;
1952
+ flowResultId: string;
1953
+ flowStep?: Omit<components["schemas"]["FlowStep"], "type"> | null;
1954
+ flowStepId?: string | null;
1955
+ id: string;
1956
+ message: string;
1957
+ reason?: string | null;
1958
+ signature: string;
1959
+ status: components["schemas"]["ResultStatus"];
1960
+ updatedAt?: string | null;
1961
+ verificationRequestId?: string | null;
1962
+ walletAddress: string;
1963
+ walletChain: string;
1964
+ }[] | undefined;
1203
1965
  };
1204
1966
  error: {
1205
1967
  code: number;
@@ -1286,4 +2048,4 @@ interface WebhookVerifierOptions<T extends Function> {
1286
2048
  exposeRawBody?: boolean;
1287
2049
  }
1288
2050
 
1289
- export { API_KEY_HEADER, type ApiKeyType, type Environment, EnvironmentConfigs, Environments, type InitializeZypheFlowParams, type SDKOptions, type SdkCreateVerificationRequestResponse, type SignatureComponents, WebhookSignatureErrorCodes, WebhookSignatureErrorMessages, type WebhookVerifierOptions, bufferToHex, constructVerificationSessionUrl, createVerificationSession, getDvResult, getFlowResult, hexToBytes, parseSignatureHeader, timingSafeEqual };
2051
+ export { API_KEY_HEADER, type ApiKeyType, type Environment, EnvironmentConfigs, Environments, type GetNextStepDetailsParams, type InitializeZypheFlowParams, type SDKOptions, type SdkCreateVerificationRequestResponse, type SignatureComponents, WebhookSignatureErrorCodes, WebhookSignatureErrorMessages, type WebhookVerifierOptions, bufferToHex, constructVerificationSessionUrl, createVerificationSession, getDvResult, getFlowResult, getNextStepDetails, hexToBytes, parseSignatureHeader, timingSafeEqual };