@zyphe-sdk/core 0.1.15 → 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
@@ -35,49 +35,78 @@ interface components {
35
35
  postalCode: string;
36
36
  street: string;
37
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
+ };
38
47
  AmlEntityResponse: {
39
- address?: string[];
40
- birthCountry?: string[];
41
- birthDate?: string[];
42
- birthPlace?: string[];
43
- country?: string[];
44
- email?: string[];
45
- firstName?: string[];
46
- gender?: string[];
47
- lastName?: string[];
48
- middleName?: string[];
49
- name?: string[];
50
- nationality?: string[];
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"];
51
61
  occupancies?: components["schemas"]["AmlOccupancy"][];
52
- phone?: string[];
53
- position?: string[];
62
+ phone?: components["schemas"]["FieldWithControl"];
63
+ position?: components["schemas"]["FieldWithControl"];
54
64
  sanctions?: components["schemas"]["AmlSanction"][];
55
- title?: string[];
56
- 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[];
57
83
  };
84
+ /** @enum {string} */
85
+ AmlModerationStatus: "approved" | "rejected" | "escalated";
58
86
  AmlOccupancy: {
59
- endDate?: string[];
87
+ endDate?: components["schemas"]["FieldWithControl"];
60
88
  post?: components["schemas"]["AmlPosition"][];
61
- startDate?: string[];
62
- status?: string[];
89
+ sources?: components["schemas"]["AmlSource"][];
90
+ startDate?: components["schemas"]["FieldWithControl"];
91
+ status?: components["schemas"]["FieldWithControl"];
63
92
  };
64
93
  AmlOrganization: {
65
- country?: string[];
66
- description?: string[];
67
- name?: string[];
68
- summary?: string[];
94
+ country?: components["schemas"]["FieldWithControl"];
95
+ description?: components["schemas"]["FieldWithControl"];
96
+ name?: components["schemas"]["FieldWithControl"];
97
+ summary?: components["schemas"]["FieldWithControl"];
69
98
  };
70
99
  AmlPosition: {
71
- country?: string[];
72
- description?: string[];
73
- dissolutionDate?: string[];
74
- inceptionDate?: string[];
75
- 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"];
76
105
  numberOfSeats?: number[];
77
106
  organization?: components["schemas"]["AmlOrganization"][];
78
- subnationalArea?: string[];
79
- summary?: string[];
80
- topics?: string[];
107
+ subnationalArea?: components["schemas"]["FieldWithControl"];
108
+ summary?: components["schemas"]["FieldWithControl"];
109
+ topics?: components["schemas"]["FieldWithControl"];
81
110
  };
82
111
  AmlResult: {
83
112
  /** Format: date-time */
@@ -85,30 +114,57 @@ interface components {
85
114
  data: {
86
115
  [key: string]: unknown;
87
116
  };
117
+ /** Format: uuid */
88
118
  id: string;
89
119
  pep: boolean;
90
120
  sanctions: boolean;
91
121
  /** Format: date-time */
92
122
  updatedAt: string;
123
+ /** Format: uuid */
93
124
  verificationRequestId?: string | null;
94
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
+ };
95
136
  AmlSanction: {
96
- authority?: string[];
97
- authorityId?: string[];
98
- country?: string[];
99
- date?: string[];
100
- duration?: string[];
101
- endDate?: string[];
102
- listingDate?: string[];
103
- program?: string[];
104
- reason?: string[];
105
- startDate?: string[];
106
- status?: string[];
107
- unscId?: string[];
108
- };
109
- AmlSearchResponse: components["schemas"]["AmlEntityResponse"][];
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
+ };
110
156
  /** @enum {string} */
111
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
+ };
112
168
  BaxeError: {
113
169
  /** Format: int32 */
114
170
  code: number;
@@ -137,20 +193,36 @@ interface components {
137
193
  customData?: {
138
194
  [key: string]: unknown;
139
195
  } | null;
140
- email: string;
196
+ email?: string | null;
197
+ /** Format: uuid */
141
198
  flowStepId: string;
142
199
  privacyPolicyAccepted: boolean;
143
200
  termsAndConditionsAccepted: boolean;
144
201
  };
145
202
  CreateVerificationRequestResponse: {
146
203
  verificationRequest: components["schemas"]["VerificationRequest"];
147
- 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;
148
219
  };
149
220
  Document: {
150
221
  /** Format: date-time */
151
222
  createdAt: string;
152
223
  /** Format: date-time */
153
224
  expiresAt?: string | null;
225
+ /** Format: uuid */
154
226
  id: string;
155
227
  metadata: unknown;
156
228
  path: string;
@@ -159,8 +231,12 @@ interface components {
159
231
  typeName: string;
160
232
  /** Format: date-time */
161
233
  updatedAt: string;
234
+ /** Format: uuid */
162
235
  vaultId: string;
163
236
  };
237
+ DocumentConfig: {
238
+ required?: boolean;
239
+ };
164
240
  DocumentData: {
165
241
  documentCan?: string;
166
242
  documentClassCode?: string;
@@ -186,6 +262,7 @@ interface components {
186
262
  DocumentUpload: {
187
263
  filename: string;
188
264
  presignedUrl?: string | null;
265
+ s3Key?: string | null;
189
266
  };
190
267
  DvConfig: {
191
268
  allowedDocumentsPerCountry?: {
@@ -198,56 +275,105 @@ interface components {
198
275
  labels?: {
199
276
  [key: string]: string;
200
277
  };
278
+ /**
279
+ * Format: int32
280
+ * @example 5
281
+ */
282
+ maxAttempts?: number | null;
201
283
  /** Format: int32 */
202
284
  minimumAge: number;
203
- skipLiveness?: boolean;
285
+ processImagesOverrides?: components["schemas"]["ProcessImagesOverrides"] | null;
286
+ requiredDocumentFields?: components["schemas"]["RequiredDocumentField"][];
204
287
  thresholds?: {
205
288
  documentScorePercent?: number;
206
- portraitMatchPercent?: number;
207
289
  } | null;
208
290
  };
209
291
  /** @enum {string} */
210
- DvConfigThreshold: "documentScorePercent" | "portraitMatchPercent";
292
+ DvConfigThreshold: "documentScorePercent";
211
293
  /** @enum {string} */
212
- DvReason: "UNKNOWN" | "WRONG_DOCUMENT_TYPE" | "COUNTRY_FILTER" | "FACE_MATCH_CHECK" | "FACE_MATCH_CHECK_ONE_CLICK" | "OVERALL_STATUS" | "DOCUMENT_COUNTRY_MISMATCH" | "DOCUMENT_COUNTRY_MISSING" | "DATE_OF_EXPIRY_NOT_VALID" | "DATE_OF_EXPIRY_NOT_READABLE" | "DATE_OF_EXPIRY_FIELD_MISSING" | "DOCUMENT_ALREADY_USED_BY_ANOTHER_USER" | "DOCUMENT_FINGERPRINT_COMPUTATION" | "SECURITY_CHECK_FAILED" | "DOCUMENT_SCORE_BELOW_THRESHOLD" | "DOCUMENT_TYPE_NOT_DEFINED" | "LIVENESS_CHECK_FAILED" | "DOCUMENT_NOT_FOUND" | "DATE_OF_BIRTH_BELOW_MINIMUM_AGE" | "DOCUMENT_TYPE_CHECK";
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";
213
295
  DvResult: {
296
+ adminComment?: string | null;
297
+ authenticityChecks: number[][];
214
298
  browser?: string | null;
215
299
  class?: string | null;
300
+ countryCode?: string | null;
216
301
  /** Format: date-time */
217
302
  createdAt?: string | null;
218
303
  data: {
219
304
  [key: string]: unknown;
220
305
  };
306
+ /** Format: uuid */
221
307
  documentId?: string | null;
222
308
  /** Format: int32 */
223
309
  documentScorePercent?: number | null;
224
310
  /** Format: int32 */
225
311
  documentType?: number | null;
226
- firstName?: string | null;
227
312
  flowStep?: Omit<components["schemas"]["FlowStep"], "type"> | null;
313
+ /** Format: uuid */
314
+ flowStepId?: string | null;
315
+ /** Format: uuid */
228
316
  id: string;
229
- 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;
230
325
  platform?: string | null;
231
326
  /** Format: int32 */
232
327
  portraitMatchPercent?: number | null;
233
328
  processAdditionalData: {
234
329
  [key: string]: unknown;
235
330
  };
331
+ provinceCode?: string | null;
236
332
  reasons: components["schemas"]["DvReason"][];
237
333
  status: components["schemas"]["ResultStatus"];
238
334
  /** Format: date-time */
239
335
  updatedAt?: string | null;
336
+ /** Format: uuid */
240
337
  verificationRequestId?: string | null;
241
338
  };
242
339
  /** @enum {string} */
243
- ErrorTags: "unexpected" | "bad_request" | "permission_denied" | "request_deserialization" | "database" | "invalid_email_or_password" | "user_not_confirmed" | "verify_password" | "send_email" | "open_session" | "read_session" | "close_session" | "authentication_request_not_found" | "invalid_magic_link" | "user_disabled" | "invalid_verify_link" | "missing_authorization_header" | "invalid_authorization_header" | "token_generation" | "user_not_found" | "authentication_request_expired" | "authentication_request_already_used" | "verification_session_expired" | "email_already_taken" | "invalid_invite" | "wrong_invite_user" | "invite_not_found" | "email_already_verified" | "flow_not_found" | "organization_not_found" | "storage" | "verification_request_not_found" | "document_reader" | "websocket" | "organization_settings_not_found" | "start_job" | "result_not_found" | "kyc_grant_not_found" | "document_not_found" | "service_invocation" | "trigger_webhook" | "too_many_invites" | "invite_already_used" | "invite_revoked" | "invite_expired" | "form_not_found" | "form_in_use" | "flow_step_configuration_not_found" | "organization_product_not_active" | "identity_not_found" | "step_order_violation" | "serialization" | "mock_data" | "api_key_not_found" | "not_implemented" | "access_grant" | "rate_limit_exceeded" | "missing_api_key" | "invalid_api_key" | "origin_not_allowed" | "step_already_completed";
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
+ };
244
370
  /** @enum {string} */
245
371
  FilterOperator: "unfiltered" | "in" | "equals" | "not-in" | "not-equals" | "contains";
246
372
  Flow: {
247
373
  /** Format: date-time */
248
374
  createdAt?: string | null;
249
- extendedWebhook: boolean;
250
375
  failureUrl?: string | null;
376
+ /** Format: uuid */
251
377
  id: string;
252
378
  name: string;
253
379
  slug: string;
@@ -268,23 +394,30 @@ interface components {
268
394
  flow?: components["schemas"]["Flow"] | null;
269
395
  flowSlug: string;
270
396
  formResults: components["schemas"]["FormResult"][];
397
+ /** Format: uuid */
271
398
  id: string;
272
399
  identity?: components["schemas"]["Identity"] | null;
273
400
  kybResults: components["schemas"]["KybResult"][];
274
401
  organization?: components["schemas"]["Organization"] | null;
402
+ /** Format: uuid */
275
403
  organizationId: string;
404
+ phoneResults: components["schemas"]["PhoneResult"][];
276
405
  poaResults: components["schemas"]["PoaResult"][];
277
406
  spidResults: components["schemas"]["SpidResult"][];
278
407
  /** Format: date-time */
279
408
  updatedAt?: string | null;
409
+ walletResults: components["schemas"]["WalletResult"][];
280
410
  };
281
411
  FlowStep: {
282
412
  config: components["schemas"]["DvConfig"];
283
413
  /** Format: date-time */
284
414
  createdAt?: string | null;
285
415
  failureUrl?: string | null;
416
+ /** Format: uuid */
286
417
  flowId: string;
418
+ /** Format: uuid */
287
419
  gotoStepId?: string | null;
420
+ /** Format: uuid */
288
421
  id: string;
289
422
  name: string;
290
423
  /** Format: int32 */
@@ -300,8 +433,11 @@ interface components {
300
433
  /** Format: date-time */
301
434
  createdAt?: string | null;
302
435
  failureUrl?: string | null;
436
+ /** Format: uuid */
303
437
  flowId: string;
438
+ /** Format: uuid */
304
439
  gotoStepId?: string | null;
440
+ /** Format: uuid */
305
441
  id: string;
306
442
  name: string;
307
443
  /** Format: int32 */
@@ -317,8 +453,11 @@ interface components {
317
453
  /** Format: date-time */
318
454
  createdAt?: string | null;
319
455
  failureUrl?: string | null;
456
+ /** Format: uuid */
320
457
  flowId: string;
458
+ /** Format: uuid */
321
459
  gotoStepId?: string | null;
460
+ /** Format: uuid */
322
461
  id: string;
323
462
  name: string;
324
463
  /** Format: int32 */
@@ -334,8 +473,11 @@ interface components {
334
473
  /** Format: date-time */
335
474
  createdAt?: string | null;
336
475
  failureUrl?: string | null;
476
+ /** Format: uuid */
337
477
  flowId: string;
478
+ /** Format: uuid */
338
479
  gotoStepId?: string | null;
480
+ /** Format: uuid */
339
481
  id: string;
340
482
  name: string;
341
483
  /** Format: int32 */
@@ -351,8 +493,11 @@ interface components {
351
493
  /** Format: date-time */
352
494
  createdAt?: string | null;
353
495
  failureUrl?: string | null;
496
+ /** Format: uuid */
354
497
  flowId: string;
498
+ /** Format: uuid */
355
499
  gotoStepId?: string | null;
500
+ /** Format: uuid */
356
501
  id: string;
357
502
  name: string;
358
503
  /** Format: int32 */
@@ -363,14 +508,138 @@ interface components {
363
508
  type: "SPID";
364
509
  /** Format: date-time */
365
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;
366
632
  };
367
- 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";
368
635
  Form: {
369
636
  /** Format: date-time */
370
637
  createdAt?: string | null;
371
638
  description?: string | null;
639
+ /** Format: uuid */
372
640
  id: string;
373
641
  name: string;
642
+ /** Format: uuid */
374
643
  organizationId: string;
375
644
  sections: components["schemas"]["FormSection"][];
376
645
  /** Format: date-time */
@@ -384,6 +653,7 @@ interface components {
384
653
  };
385
654
  FormConfig: {
386
655
  form?: components["schemas"]["Form"] | null;
656
+ /** Format: uuid */
387
657
  formId: string;
388
658
  /** @example { "default": "Next step" } */
389
659
  labels?: {
@@ -407,16 +677,20 @@ interface components {
407
677
  FormResult: {
408
678
  /** Format: date-time */
409
679
  createdAt?: string | null;
680
+ /** Format: uuid */
410
681
  flowResultId: string;
411
682
  flowStep?: Omit<components["schemas"]["FlowStep"], "type"> | null;
683
+ /** Format: uuid */
412
684
  flowStepId?: string | null;
413
685
  form?: components["schemas"]["Form"] | null;
686
+ /** Format: uuid */
414
687
  id: string;
415
688
  reason?: components["schemas"]["FormReason"] | null;
416
689
  sections: components["schemas"]["FormSection"][];
417
690
  status: components["schemas"]["ResultStatus"];
418
691
  /** Format: date-time */
419
692
  updatedAt?: string | null;
693
+ /** Format: uuid */
420
694
  verificationRequestId?: string | null;
421
695
  };
422
696
  FormSection: {
@@ -437,26 +711,44 @@ interface components {
437
711
  };
438
712
  GetFullFlowResponse: {
439
713
  flow: components["schemas"]["Flow"];
714
+ flowPartnerOrganizationsNames?: string[] | null;
715
+ /** Format: uuid */
716
+ organizationId: string;
440
717
  organizationName: string;
441
718
  settings: components["schemas"]["Settings"];
442
719
  };
720
+ GetNextStepPayload: {
721
+ email: string;
722
+ };
723
+ GetNextStepResponse: {
724
+ isCompleted: boolean;
725
+ nextStep?: Omit<components["schemas"]["FlowStep"], "type"> | null;
726
+ };
443
727
  GetVerificationRequestResponse: {
444
728
  identity: components["schemas"]["Identity"];
729
+ passkey?: components["schemas"]["VaultUnlockPasskeyData"] | null;
445
730
  verificationRequest: components["schemas"]["VerificationRequest"];
446
731
  };
447
732
  Identity: {
448
733
  /** Format: date-time */
449
734
  createdAt?: string | null;
735
+ /** Format: uuid */
450
736
  defaultOrganizationId?: string | null;
451
737
  email: string;
452
738
  emailVerified: boolean;
739
+ /** Format: uuid */
453
740
  id: string;
454
741
  isActive: boolean;
455
742
  role: components["schemas"]["Role"];
743
+ settings: components["schemas"]["IdentitySettings"];
456
744
  /** Format: date-time */
457
745
  updatedAt?: string | null;
458
746
  zid: string;
459
747
  };
748
+ IdentitySettings: {
749
+ lastEnvironmentIsSandbox?: boolean;
750
+ locale: components["schemas"]["Locale"];
751
+ };
460
752
  Image: {
461
753
  /** Format: int32 */
462
754
  containerType: number;
@@ -472,21 +764,92 @@ interface components {
472
764
  [key: string]: string;
473
765
  };
474
766
  name: string;
475
- options: {
767
+ options: unknown;
768
+ required: boolean;
769
+ /** @enum {string} */
770
+ type: "date";
771
+ value?: unknown;
772
+ } | {
773
+ label: {
476
774
  [key: string]: string;
477
775
  };
776
+ name: string;
777
+ options: unknown;
478
778
  required: boolean;
479
- 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";
480
827
  value?: unknown;
481
828
  };
829
+ InputFieldOptions: components["schemas"]["FileOptions"] | components["schemas"]["SelectOptions"] | unknown;
482
830
  /** @enum {string} */
483
- InputFieldType: "date" | "text" | "textarea" | "checkbox";
831
+ InputFieldType: "date" | "text" | "textarea" | "checkbox" | "file" | "select";
484
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 */
485
842
  kycFlowId: string;
486
843
  /** @example { "default": "Next step" } */
487
844
  labels?: {
488
845
  [key: string]: string;
489
846
  };
847
+ /**
848
+ * Format: int32
849
+ * @default 10
850
+ * @example 3
851
+ */
852
+ maxDirectors: number;
490
853
  /**
491
854
  * Format: int32
492
855
  * @default 10
@@ -499,13 +862,18 @@ interface components {
499
862
  * @example 3
500
863
  */
501
864
  maxUbos: number;
865
+ organizationalStructureChart?: components["schemas"]["DocumentConfig"] | null;
502
866
  };
503
867
  KybResult: {
504
868
  businessInformation?: components["schemas"]["BusinessInformation"] | null;
505
869
  /** Format: date-time */
506
870
  createdAt?: string | null;
871
+ directorDefinitions?: components["schemas"]["DirectorDefinition"][] | null;
507
872
  documentUploads?: components["schemas"]["DocumentUpload"][] | null;
508
873
  flowStep?: Omit<components["schemas"]["FlowStep"], "type"> | null;
874
+ /** Format: uuid */
875
+ flowStepId?: string | null;
876
+ /** Format: uuid */
509
877
  id: string;
510
878
  pepAndSanctionsStatus: components["schemas"]["PepAndSanctionsStatus"];
511
879
  reason?: string | null;
@@ -514,10 +882,35 @@ interface components {
514
882
  uboDefinitions?: components["schemas"]["UboDefinition"][] | null;
515
883
  /** Format: date-time */
516
884
  updatedAt?: string | null;
885
+ /** Format: uuid */
517
886
  verificationRequestId?: string | null;
518
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
+ };
519
907
  /** @enum {string} */
520
- 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";
521
914
  ModerateKybResultPayload: {
522
915
  pepAndSanctionsStatus?: components["schemas"]["PepAndSanctionsStatusField"] | null;
523
916
  /** Format: binary */
@@ -528,14 +921,46 @@ interface components {
528
921
  success: boolean;
529
922
  };
530
923
  /** @enum {string} */
531
- ModerationResultStatus: "ACQUIRING" | "PENDING_MODERATION" | "SUCCESS" | "FAILED";
924
+ ModerationResultStatus: "ACQUIRING" | "PENDING_MODERATION" | "REVIEW_REQUIRED" | "SUCCESS" | "FAILED";
532
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";
533
957
  Organization: {
534
958
  address: string;
535
959
  country: string;
536
960
  /** Format: date-time */
537
961
  createdAt?: string | null;
538
962
  email: string;
963
+ /** Format: uuid */
539
964
  id: string;
540
965
  industry?: string | null;
541
966
  name: string;
@@ -576,6 +1001,29 @@ interface components {
576
1001
  placeOfBirth?: string;
577
1002
  surname: string;
578
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
+ };
579
1027
  Plaintext: {
580
1028
  text: {
581
1029
  [key: string]: string;
@@ -594,22 +1042,27 @@ interface components {
594
1042
  maxAgeDays?: number;
595
1043
  };
596
1044
  /** @enum {string} */
597
- 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";
598
1046
  /** @enum {string} */
599
- 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";
600
1048
  PoaResult: {
601
1049
  /** Format: date-time */
602
1050
  checkedAt?: string | null;
603
1051
  /** Format: date-time */
604
1052
  createdAt: string;
1053
+ /** Format: uuid */
605
1054
  documentId?: string | null;
606
1055
  documentType?: components["schemas"]["PoaDocumentType"] | null;
607
1056
  flowStep?: Omit<components["schemas"]["FlowStep"], "type"> | null;
1057
+ /** Format: uuid */
1058
+ flowStepId?: string | null;
1059
+ /** Format: uuid */
608
1060
  id: string;
609
1061
  reason?: components["schemas"]["PoaReason"] | null;
610
1062
  status: components["schemas"]["ResultStatus"];
611
1063
  /** Format: date-time */
612
1064
  updatedAt: string;
1065
+ /** Format: uuid */
613
1066
  verificationRequestId?: string | null;
614
1067
  };
615
1068
  ProcessAddressDocumentRequest: {
@@ -618,20 +1071,59 @@ interface components {
618
1071
  };
619
1072
  ProcessAddressDocumentResponse: {
620
1073
  jobId: string;
1074
+ /** Format: uuid */
621
1075
  verificationRequestId: string;
622
- 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
+ };
623
1108
  };
624
1109
  /** @enum {string} */
625
- ProductType: "UNKNOWN" | "KYC" | "KYB" | "PRODUCTION_MODE" | "SPID" | "EXPORT_API" | "EXPORT_UI";
1110
+ ResultStatus: "PASSED" | "FAILED" | "PARTIAL" | "REQUIRES_MANUAL_REVIEW" | "REQUIRES_ADMIN_REVIEW";
626
1111
  /** @enum {string} */
627
- 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
+ };
628
1119
  /** @enum {string} */
629
- Role: "GUEST" | "USER" | "ADMIN";
1120
+ Role: "ANONYMOUS" | "GUEST" | "USER" | "ADMIN" | "SDK";
630
1121
  SdkCreateVerificationRequestPayload: {
631
1122
  customData?: {
632
1123
  [key: string]: unknown;
633
1124
  } | null;
634
1125
  email: string;
1126
+ /** Format: uuid */
635
1127
  flowStepId: string;
636
1128
  };
637
1129
  SdkCreateVerificationRequestResponse: {
@@ -640,9 +1132,12 @@ interface components {
640
1132
  flowStepSlug: string;
641
1133
  isSandbox: boolean;
642
1134
  verificationRequest: components["schemas"]["VerificationRequest"];
643
- websocketNamespace: string;
644
1135
  zypheToken: string;
645
1136
  };
1137
+ SelectOptions: {
1138
+ isOtherAllowed: boolean;
1139
+ values: string[];
1140
+ };
646
1141
  Settings: {
647
1142
  /** Format: date-time */
648
1143
  createdAt?: string | null;
@@ -654,6 +1149,8 @@ interface components {
654
1149
  updatedAt?: string | null;
655
1150
  webhookSecret?: string | null;
656
1151
  };
1152
+ /** @enum {string} */
1153
+ SiwxChain: "ETHEREUM" | "ETHEREUM_TESTNET" | "SOLANA" | "SOLANA_TESTNET";
657
1154
  SpidConfig: {
658
1155
  /** @example { "default": "Next step" } */
659
1156
  labels?: {
@@ -664,12 +1161,16 @@ interface components {
664
1161
  /** Format: date-time */
665
1162
  createdAt?: string | null;
666
1163
  flowStep?: Omit<components["schemas"]["FlowStep"], "type"> | null;
1164
+ /** Format: uuid */
1165
+ flowStepId?: string | null;
1166
+ /** Format: uuid */
667
1167
  id: string;
668
1168
  path: string;
669
1169
  reason?: string | null;
670
1170
  status: components["schemas"]["ResultStatus"];
671
1171
  /** Format: date-time */
672
1172
  updatedAt?: string | null;
1173
+ /** Format: uuid */
673
1174
  verificationRequestId?: string | null;
674
1175
  };
675
1176
  SpidResultDetails: {
@@ -692,6 +1193,22 @@ interface components {
692
1193
  spidCode?: string | null;
693
1194
  username?: string | null;
694
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
+ };
695
1212
  UboDefinition: {
696
1213
  country: string;
697
1214
  dateOfBirth: string;
@@ -700,8 +1217,23 @@ interface components {
700
1217
  gender: string;
701
1218
  lastName: string;
702
1219
  };
1220
+ /**
1221
+ * Format: uuid
1222
+ * @description A UUID string
1223
+ */
1224
+ Uuid: string;
703
1225
  /** @enum {string} */
704
- ValidationMessages: "validation_unexpected" | "validation_invalid_file_format" | "validation_organization_slug_exists" | "validation_flow_slug_exists" | "validation_flow_id_mismatch" | "validation_flow_step_name_exists" | "validation_consents_not_granted" | "validation_kyb_config_match" | "validation_kyb_config_already_uses_this_kyc_flow_id" | "validation_kyb_moderation_status_wrong" | "validation_form_name_exists" | "validation_database_error" | "validation_flow_name_invalid" | "validation_flow_slug_name_invalid" | "validation_flow_step_name_invalid" | "validation_flow_step_order_duplicate" | "validation_flow_step_order_invalid" | "validation_flow_step_id_mismatch" | "validation_password_too_short" | "validation_password_no_uppercase" | "validation_password_no_lowercase" | "validation_password_no_number" | "validation_password_no_special_character" | "validation_password_contains_whitespace_or_control";
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
+ };
705
1237
  VerificationRequest: {
706
1238
  amlResult?: components["schemas"]["AmlResult"] | null;
707
1239
  /** Format: int32 */
@@ -712,40 +1244,101 @@ interface components {
712
1244
  [key: string]: unknown;
713
1245
  };
714
1246
  dvResult?: components["schemas"]["DvResult"] | null;
1247
+ /** Format: uuid */
715
1248
  flowId: string;
1249
+ flowStep?: Omit<components["schemas"]["FlowStep"], "type"> | null;
1250
+ /** Format: uuid */
716
1251
  flowStepId: string;
717
1252
  formResult?: components["schemas"]["FormResult"] | null;
1253
+ /** Format: uuid */
718
1254
  id: string;
719
1255
  identity?: components["schemas"]["Identity"] | null;
1256
+ /** Format: uuid */
720
1257
  identityId: string;
721
1258
  kybResult?: components["schemas"]["KybResult"] | null;
1259
+ /** Format: uuid */
722
1260
  organizationId: string;
1261
+ phoneResult?: components["schemas"]["PhoneResult"] | null;
723
1262
  poaResult?: components["schemas"]["PoaResult"] | null;
724
1263
  reason?: string | null;
1264
+ replayerZid?: string | null;
725
1265
  spidResult?: components["schemas"]["SpidResult"] | null;
726
1266
  status: components["schemas"]["VerificationRequestStatus"];
727
1267
  /** Format: date-time */
728
1268
  updatedAt?: string | null;
1269
+ walletResult?: components["schemas"]["WalletResult"] | null;
729
1270
  };
730
1271
  /** @enum {string} */
731
- 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
+ };
732
1318
  ZypheApiKey: {
733
1319
  allowedOrigins: string[];
734
1320
  /** Format: date-time */
735
1321
  createdAt?: string | null;
736
1322
  description?: string | null;
1323
+ /** Format: uuid */
737
1324
  id: string;
738
1325
  key: string;
739
- keyType: string;
1326
+ keyType: components["schemas"]["ApiKeyType"];
740
1327
  name?: string | null;
741
1328
  options: {
742
1329
  [key: string]: unknown;
743
1330
  };
744
1331
  organization?: components["schemas"]["Organization"] | null;
1332
+ /** Format: uuid */
745
1333
  organizationId: string;
746
1334
  /** Format: date-time */
747
1335
  updatedAt?: string | null;
748
1336
  };
1337
+ /**
1338
+ * @description Locale identifier
1339
+ * @enum {string}
1340
+ */
1341
+ "zyphe_shared.types.Locale": "en" | "it" | "de" | "es" | "fr" | "hi" | "id" | "pt";
749
1342
  };
750
1343
  responses: never;
751
1344
  parameters: never;
@@ -797,6 +1390,7 @@ interface InitializeZypheFlowParams {
797
1390
  */
798
1391
  customData?: Record<string, string>;
799
1392
  }
1393
+ type GetNextStepDetailsParams = Pick<InitializeZypheFlowParams, "flowId" | "isSandbox" | "email">;
800
1394
  interface SDKOptions {
801
1395
  apiKey: string;
802
1396
  /**
@@ -849,8 +1443,9 @@ interface CreateVerificationSessionParams {
849
1443
  }
850
1444
  declare function createVerificationSession({ email, flowId, flowStepId, isSandbox, customData, }: CreateVerificationSessionParams, opts: SDKOptions): Promise<openapi_fetch.FetchResponse<{
851
1445
  parameters: {
852
- query?: {
853
- sandbox?: boolean | null;
1446
+ query: {
1447
+ sandbox: boolean;
1448
+ locale?: components["schemas"]["Locale"];
854
1449
  };
855
1450
  header?: never;
856
1451
  path: {
@@ -920,6 +1515,68 @@ declare function constructVerificationSessionUrl({ flowParams, verificationSessi
920
1515
  verificationSession: SdkCreateVerificationRequestResponse;
921
1516
  opts: SDKOptions;
922
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}`>>;
923
1580
 
924
1581
  declare enum ImageProvenance {
925
1582
  UNSPECIFIED_IMAGE_PROVENANCE = 0,
@@ -928,11 +1585,17 @@ declare enum ImageProvenance {
928
1585
  SIGNATURE_IMAGE = 3,
929
1586
  PORTRAIT_IMAGE = 5,
930
1587
  CITIZENSHIP_IMAGE = 6,
1588
+ SELFIE_IMAGE = 7,
931
1589
  UNRECOGNIZED = -1
932
1590
  }
933
1591
  declare enum ResultStatus {
934
1592
  FAILED = 0,
935
1593
  PASSED = 1,
1594
+ PARTIAL = 2,
1595
+ REQUIRES_MANUAL_REVIEW = 3,
1596
+ REQUIRES_ADMIN_REVIEW = 4,
1597
+ MANUALLY_APPROVED = 5,
1598
+ MANUALLY_REJECTED = 6,
936
1599
  UNRECOGNIZED = -1
937
1600
  }
938
1601
  interface PersonalData {
@@ -972,6 +1635,10 @@ interface Image {
972
1635
  provenance: ImageProvenance;
973
1636
  }
974
1637
  declare const Image: MessageFns<Image>;
1638
+ interface Video {
1639
+ url: string;
1640
+ }
1641
+ declare const Video: MessageFns<Video>;
975
1642
  interface Document {
976
1643
  personalData: PersonalData | undefined;
977
1644
  documentData: DocumentData | undefined;
@@ -980,8 +1647,9 @@ interface Document {
980
1647
  declare const Document: MessageFns<Document>;
981
1648
  interface Details {
982
1649
  status: ResultStatus;
983
- requestLog: string;
984
- responseLog: string;
1650
+ docreaderRequestLog: string;
1651
+ docreaderResponseLog: string;
1652
+ faceapiResponseLog: string;
985
1653
  }
986
1654
  declare const Details: MessageFns<Details>;
987
1655
  interface Message {
@@ -990,6 +1658,7 @@ interface Message {
990
1658
  backImage?: Image | undefined;
991
1659
  otherImage?: Image | undefined;
992
1660
  details?: Details | undefined;
1661
+ liveness?: Video | undefined;
993
1662
  }
994
1663
  declare const Message: MessageFns<Message>;
995
1664
  type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
@@ -1023,8 +1692,11 @@ interface GetFlowResultParams {
1023
1692
  declare function getFlowResult({ organizationId, flowResultId, isSandbox }: GetFlowResultParams, opts: SDKOptions): Promise<{
1024
1693
  data: {
1025
1694
  dvResults: {
1695
+ adminComment?: string | null;
1696
+ authenticityChecks: number[][];
1026
1697
  browser?: string | null;
1027
1698
  class?: string | null;
1699
+ countryCode?: string | null;
1028
1700
  createdAt?: string | null;
1029
1701
  data: {
1030
1702
  [key: string]: unknown;
@@ -1032,15 +1704,20 @@ declare function getFlowResult({ organizationId, flowResultId, isSandbox }: GetF
1032
1704
  documentId?: string | null;
1033
1705
  documentScorePercent?: number | null;
1034
1706
  documentType?: number | null;
1035
- firstName?: string | null;
1036
1707
  flowStep?: Omit<components["schemas"]["FlowStep"], "type"> | null;
1708
+ flowStepId?: string | null;
1037
1709
  id: string;
1038
- lastName?: string | null;
1710
+ manualReviewAt?: string | null;
1711
+ manualReviewNote?: string | null;
1712
+ manualReviewerId?: string | null;
1713
+ manualReviewerZid?: string | null;
1714
+ originalVrHistoryId?: string | null;
1039
1715
  platform?: string | null;
1040
1716
  portraitMatchPercent?: number | null;
1041
1717
  processAdditionalData: {
1042
1718
  [key: string]: unknown;
1043
1719
  };
1720
+ provinceCode?: string | null;
1044
1721
  reasons: components["schemas"]["DvReason"][];
1045
1722
  status: components["schemas"]["ResultStatus"];
1046
1723
  updatedAt?: string | null;
@@ -1063,6 +1740,7 @@ declare function getFlowResult({ organizationId, flowResultId, isSandbox }: GetF
1063
1740
  documentId?: string | null;
1064
1741
  documentType?: components["schemas"]["PoaDocumentType"] | null;
1065
1742
  flowStep?: Omit<components["schemas"]["FlowStep"], "type"> | null;
1743
+ flowStepId?: string | null;
1066
1744
  id: string;
1067
1745
  reason?: components["schemas"]["PoaReason"] | null;
1068
1746
  status: components["schemas"]["ResultStatus"];
@@ -1093,8 +1771,10 @@ declare function getFlowResult({ organizationId, flowResultId, isSandbox }: GetF
1093
1771
  kybResults?: {
1094
1772
  businessInformation?: components["schemas"]["BusinessInformation"] | null;
1095
1773
  createdAt?: string | null;
1774
+ directorDefinitions?: components["schemas"]["DirectorDefinition"][] | null;
1096
1775
  documentUploads?: components["schemas"]["DocumentUpload"][] | null;
1097
1776
  flowStep?: Omit<components["schemas"]["FlowStep"], "type"> | null;
1777
+ flowStepId?: string | null;
1098
1778
  id: string;
1099
1779
  pepAndSanctionsStatus: components["schemas"]["PepAndSanctionsStatus"];
1100
1780
  reason?: string | null;
@@ -1106,9 +1786,21 @@ declare function getFlowResult({ organizationId, flowResultId, isSandbox }: GetF
1106
1786
  }[] | undefined;
1107
1787
  organization?: components["schemas"]["Organization"] | null;
1108
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;
1109
1800
  spidResults?: {
1110
1801
  createdAt?: string | null;
1111
1802
  flowStep?: Omit<components["schemas"]["FlowStep"], "type"> | null;
1803
+ flowStepId?: string | null;
1112
1804
  id: string;
1113
1805
  path: string;
1114
1806
  reason?: string | null;
@@ -1117,14 +1809,32 @@ declare function getFlowResult({ organizationId, flowResultId, isSandbox }: GetF
1117
1809
  verificationRequestId?: string | null;
1118
1810
  }[] | undefined;
1119
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;
1120
1827
  };
1121
1828
  error?: never;
1122
1829
  response: Response;
1123
1830
  } | {
1124
1831
  data: {
1125
1832
  dvResults: {
1833
+ adminComment?: string | null;
1834
+ authenticityChecks: number[][];
1126
1835
  browser?: string | null;
1127
1836
  class?: string | null;
1837
+ countryCode?: string | null;
1128
1838
  createdAt?: string | null;
1129
1839
  data: {
1130
1840
  [key: string]: unknown;
@@ -1132,15 +1842,20 @@ declare function getFlowResult({ organizationId, flowResultId, isSandbox }: GetF
1132
1842
  documentId?: string | null;
1133
1843
  documentScorePercent?: number | null;
1134
1844
  documentType?: number | null;
1135
- firstName?: string | null;
1136
1845
  flowStep?: Omit<components["schemas"]["FlowStep"], "type"> | null;
1846
+ flowStepId?: string | null;
1137
1847
  id: string;
1138
- lastName?: string | null;
1848
+ manualReviewAt?: string | null;
1849
+ manualReviewNote?: string | null;
1850
+ manualReviewerId?: string | null;
1851
+ manualReviewerZid?: string | null;
1852
+ originalVrHistoryId?: string | null;
1139
1853
  platform?: string | null;
1140
1854
  portraitMatchPercent?: number | null;
1141
1855
  processAdditionalData: {
1142
1856
  [key: string]: unknown;
1143
1857
  };
1858
+ provinceCode?: string | null;
1144
1859
  reasons: components["schemas"]["DvReason"][];
1145
1860
  status: components["schemas"]["ResultStatus"];
1146
1861
  updatedAt?: string | null;
@@ -1163,6 +1878,7 @@ declare function getFlowResult({ organizationId, flowResultId, isSandbox }: GetF
1163
1878
  documentId?: string | null;
1164
1879
  documentType?: components["schemas"]["PoaDocumentType"] | null;
1165
1880
  flowStep?: Omit<components["schemas"]["FlowStep"], "type"> | null;
1881
+ flowStepId?: string | null;
1166
1882
  id: string;
1167
1883
  reason?: components["schemas"]["PoaReason"] | null;
1168
1884
  status: components["schemas"]["ResultStatus"];
@@ -1193,8 +1909,10 @@ declare function getFlowResult({ organizationId, flowResultId, isSandbox }: GetF
1193
1909
  kybResults?: {
1194
1910
  businessInformation?: components["schemas"]["BusinessInformation"] | null;
1195
1911
  createdAt?: string | null;
1912
+ directorDefinitions?: components["schemas"]["DirectorDefinition"][] | null;
1196
1913
  documentUploads?: components["schemas"]["DocumentUpload"][] | null;
1197
1914
  flowStep?: Omit<components["schemas"]["FlowStep"], "type"> | null;
1915
+ flowStepId?: string | null;
1198
1916
  id: string;
1199
1917
  pepAndSanctionsStatus: components["schemas"]["PepAndSanctionsStatus"];
1200
1918
  reason?: string | null;
@@ -1206,9 +1924,21 @@ declare function getFlowResult({ organizationId, flowResultId, isSandbox }: GetF
1206
1924
  }[] | undefined;
1207
1925
  organization?: components["schemas"]["Organization"] | null;
1208
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;
1209
1938
  spidResults?: {
1210
1939
  createdAt?: string | null;
1211
1940
  flowStep?: Omit<components["schemas"]["FlowStep"], "type"> | null;
1941
+ flowStepId?: string | null;
1212
1942
  id: string;
1213
1943
  path: string;
1214
1944
  reason?: string | null;
@@ -1217,6 +1947,21 @@ declare function getFlowResult({ organizationId, flowResultId, isSandbox }: GetF
1217
1947
  verificationRequestId?: string | null;
1218
1948
  }[] | undefined;
1219
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;
1220
1965
  };
1221
1966
  error: {
1222
1967
  code: number;
@@ -1303,4 +2048,4 @@ interface WebhookVerifierOptions<T extends Function> {
1303
2048
  exposeRawBody?: boolean;
1304
2049
  }
1305
2050
 
1306
- export { API_KEY_HEADER, type ApiKeyType, type Environment, EnvironmentConfigs, Environments, type InitializeZypheFlowParams, type SDKOptions, type SdkCreateVerificationRequestResponse, type SignatureComponents, WebhookSignatureErrorCodes, WebhookSignatureErrorMessages, type WebhookVerifierOptions, bufferToHex, constructVerificationSessionUrl, createVerificationSession, getDvResult, getFlowResult, hexToBytes, parseSignatureHeader, timingSafeEqual };
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 };