@zyphe-sdk/core 0.1.5 → 0.1.7

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.
@@ -0,0 +1,959 @@
1
+ export interface paths {
2
+ "/flows/{slug}/fullflow": {
3
+ parameters: {
4
+ query?: never;
5
+ header?: never;
6
+ path?: never;
7
+ cookie?: never;
8
+ };
9
+ get: operations["get_full_flow_details"];
10
+ put?: never;
11
+ post?: never;
12
+ delete?: never;
13
+ options?: never;
14
+ head?: never;
15
+ patch?: never;
16
+ trace?: never;
17
+ };
18
+ "/flow/{flow_id}/vr/{verification_request_id}/get": {
19
+ parameters: {
20
+ query?: never;
21
+ header?: never;
22
+ path?: never;
23
+ cookie?: never;
24
+ };
25
+ get: operations["get_verification_request"];
26
+ put?: never;
27
+ post?: never;
28
+ delete?: never;
29
+ options?: never;
30
+ head?: never;
31
+ patch?: never;
32
+ trace?: never;
33
+ };
34
+ "/sdk/flow/{flow_id}/vr/create": {
35
+ parameters: {
36
+ query?: never;
37
+ header?: never;
38
+ path?: never;
39
+ cookie?: never;
40
+ };
41
+ get?: never;
42
+ put?: never;
43
+ post: operations["sdk_create_verification_request"];
44
+ delete?: never;
45
+ options?: never;
46
+ head?: never;
47
+ patch?: never;
48
+ trace?: never;
49
+ };
50
+ "/flow/{flow_id}/vr/completed": {
51
+ parameters: {
52
+ query?: never;
53
+ header?: never;
54
+ path?: never;
55
+ cookie?: never;
56
+ };
57
+ get: operations["get_completed_verification_requests"];
58
+ put?: never;
59
+ post?: never;
60
+ delete?: never;
61
+ options?: never;
62
+ head?: never;
63
+ patch?: never;
64
+ trace?: never;
65
+ };
66
+ }
67
+ export type webhooks = Record<string, never>;
68
+ export interface components {
69
+ schemas: {
70
+ AddressData: {
71
+ addressLine?: string | null;
72
+ building: string;
73
+ city: string;
74
+ country: string;
75
+ flat: string;
76
+ houseNumber: string;
77
+ postalCode: string;
78
+ street: string;
79
+ };
80
+ AmlEntityResponse: {
81
+ address?: string[];
82
+ birthCountry?: string[];
83
+ birthDate?: string[];
84
+ birthPlace?: string[];
85
+ country?: string[];
86
+ email?: string[];
87
+ firstName?: string[];
88
+ gender?: string[];
89
+ lastName?: string[];
90
+ middleName?: string[];
91
+ name?: string[];
92
+ nationality?: string[];
93
+ occupancies?: components["schemas"]["AmlOccupancy"][];
94
+ phone?: string[];
95
+ position?: string[];
96
+ sanctions?: components["schemas"]["AmlSanction"][];
97
+ title?: string[];
98
+ topics?: string[];
99
+ };
100
+ AmlOccupancy: {
101
+ endDate?: string[];
102
+ post?: components["schemas"]["AmlPosition"][];
103
+ startDate?: string[];
104
+ status?: string[];
105
+ };
106
+ AmlOrganization: {
107
+ country?: string[];
108
+ description?: string[];
109
+ name?: string[];
110
+ summary?: string[];
111
+ };
112
+ AmlPosition: {
113
+ country?: string[];
114
+ description?: string[];
115
+ dissolutionDate?: string[];
116
+ inceptionDate?: string[];
117
+ name?: string[];
118
+ numberOfSeats?: number[];
119
+ organization?: components["schemas"]["AmlOrganization"][];
120
+ subnationalArea?: string[];
121
+ summary?: string[];
122
+ topics?: string[];
123
+ };
124
+ AmlResult: {
125
+ /** Format: date-time */
126
+ createdAt: string;
127
+ data: {
128
+ [key: string]: unknown;
129
+ };
130
+ id: string;
131
+ pep: boolean;
132
+ sanctions: boolean;
133
+ /** Format: date-time */
134
+ updatedAt: string;
135
+ verificationRequestId?: string | null;
136
+ };
137
+ AmlSanction: {
138
+ authority?: string[];
139
+ authorityId?: string[];
140
+ country?: string[];
141
+ date?: string[];
142
+ duration?: string[];
143
+ endDate?: string[];
144
+ listingDate?: string[];
145
+ program?: string[];
146
+ reason?: string[];
147
+ startDate?: string[];
148
+ status?: string[];
149
+ unscId?: string[];
150
+ };
151
+ AmlSearchResponse: components["schemas"]["AmlEntityResponse"][];
152
+ /** @enum {string} */
153
+ ApiKeyType: "PUBLISHABLE" | "SECRET";
154
+ BaxeError: {
155
+ /** Format: int32 */
156
+ code: number;
157
+ errorTag: components["schemas"]["ErrorTags"];
158
+ message?: string | null;
159
+ };
160
+ BusinessInformation: {
161
+ address: string;
162
+ businessActivity: string;
163
+ city: string;
164
+ companyName: string;
165
+ companyType: string;
166
+ contactEmail: string;
167
+ country: string;
168
+ incorporationDate: string;
169
+ postZipCode: string;
170
+ registrationNumber: string;
171
+ };
172
+ CountriesFilter: {
173
+ accepted: string[];
174
+ blocked: string[];
175
+ };
176
+ CreateVerificationRequestPayload: {
177
+ continueUrl?: string | null;
178
+ cookiesPolicyAccepted: boolean;
179
+ customData?: {
180
+ [key: string]: unknown;
181
+ } | null;
182
+ email: string;
183
+ flowStepId: string;
184
+ privacyPolicyAccepted: boolean;
185
+ termsAndConditionsAccepted: boolean;
186
+ };
187
+ CreateVerificationRequestResponse: {
188
+ verificationRequest: components["schemas"]["VerificationRequest"];
189
+ websocketNamespace: string;
190
+ };
191
+ Document: {
192
+ /** Format: date-time */
193
+ createdAt: string;
194
+ /** Format: date-time */
195
+ expiresAt?: string | null;
196
+ id: string;
197
+ metadata: unknown;
198
+ path: string;
199
+ /** Format: int32 */
200
+ type: number;
201
+ typeName: string;
202
+ /** Format: date-time */
203
+ updatedAt: string;
204
+ vaultId: string;
205
+ };
206
+ DocumentData: {
207
+ documentCan?: string;
208
+ documentClassCode?: string;
209
+ documentNumber: string;
210
+ /** Format: date */
211
+ expiryDate?: string | null;
212
+ issuingAuthority: string;
213
+ /** Format: date */
214
+ issuingDate?: string | null;
215
+ issuingState: string;
216
+ mrzStrings?: string;
217
+ };
218
+ DocumentFormatFilter: {
219
+ formats: string[];
220
+ };
221
+ DocumentImage: {
222
+ path: string;
223
+ type: string;
224
+ };
225
+ DocumentTypeFilter: {
226
+ types: string[];
227
+ };
228
+ DocumentUpload: {
229
+ filename: string;
230
+ presignedUrl?: string | null;
231
+ };
232
+ DvConfig: {
233
+ allowedDocumentsPerCountry?: {
234
+ [key: string]: string[];
235
+ } | null;
236
+ countriesFilter?: components["schemas"]["CountriesFilter"] | null;
237
+ documentFormatsFilter?: components["schemas"]["DocumentFormatFilter"] | null;
238
+ documentTypesFilter?: components["schemas"]["DocumentTypeFilter"] | null;
239
+ /** @example { "en_button_label": "Next step" } */
240
+ labels?: {
241
+ [key: string]: string;
242
+ };
243
+ /** Format: int32 */
244
+ minimumAge: number;
245
+ skipLiveness?: boolean;
246
+ thresholds?: {
247
+ documentScorePercent?: number;
248
+ portraitMatchPercent?: number;
249
+ } | null;
250
+ };
251
+ /** @enum {string} */
252
+ DvConfigThreshold: "documentScorePercent" | "portraitMatchPercent";
253
+ /** @enum {string} */
254
+ DvReason: "UNKNOWN" | "WRONG_DOCUMENT_TYPE" | "COUNTRY_FILTER" | "FACE_MATCH_CHECK" | "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";
255
+ DvResult: {
256
+ browser?: string | null;
257
+ class?: string | null;
258
+ /** Format: date-time */
259
+ createdAt?: string | null;
260
+ data: {
261
+ [key: string]: unknown;
262
+ };
263
+ documentId?: string | null;
264
+ /** Format: int32 */
265
+ documentScorePercent?: number | null;
266
+ /** Format: int32 */
267
+ documentType?: number | null;
268
+ firstName?: string | null;
269
+ flowStep?: Omit<components["schemas"]["FlowStep"], "type"> | null;
270
+ id: string;
271
+ lastName?: string | null;
272
+ platform?: string | null;
273
+ /** Format: int32 */
274
+ portraitMatchPercent?: number | null;
275
+ processAdditionalData: {
276
+ [key: string]: unknown;
277
+ };
278
+ reasons: components["schemas"]["DvReason"][];
279
+ status: components["schemas"]["ResultStatus"];
280
+ /** Format: date-time */
281
+ updatedAt?: string | null;
282
+ verificationRequestId?: string | null;
283
+ };
284
+ /** @enum {string} */
285
+ 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";
286
+ /** @enum {string} */
287
+ FilterOperator: "unfiltered" | "in" | "equals" | "not-in" | "not-equals" | "contains";
288
+ Flow: {
289
+ /** Format: date-time */
290
+ createdAt?: string | null;
291
+ extendedWebhook: boolean;
292
+ id: string;
293
+ name: string;
294
+ slug: string;
295
+ steps: components["schemas"]["FlowStep"][];
296
+ successUrl: string;
297
+ /** Format: date-time */
298
+ updatedAt?: string | null;
299
+ webhookUrl: string;
300
+ };
301
+ FlowResult: {
302
+ amlResults: components["schemas"]["AmlResult"][];
303
+ /** Format: date-time */
304
+ createdAt?: string | null;
305
+ customData: {
306
+ [key: string]: unknown;
307
+ };
308
+ dvResults: components["schemas"]["DvResult"][];
309
+ flow?: components["schemas"]["Flow"] | null;
310
+ flowSlug: string;
311
+ formResults: components["schemas"]["FormResult"][];
312
+ id: string;
313
+ identity?: components["schemas"]["Identity"] | null;
314
+ kybResults: components["schemas"]["KybResult"][];
315
+ organization?: components["schemas"]["Organization"] | null;
316
+ organizationId: string;
317
+ poaResults: components["schemas"]["PoaResult"][];
318
+ spidResults: components["schemas"]["SpidResult"][];
319
+ /** Format: date-time */
320
+ updatedAt?: string | null;
321
+ };
322
+ FlowStep: {
323
+ config: components["schemas"]["DvConfig"];
324
+ /** Format: date-time */
325
+ createdAt?: string | null;
326
+ flowId: string;
327
+ gotoStepId?: string | null;
328
+ id: string;
329
+ name: string;
330
+ /** Format: int32 */
331
+ order: number;
332
+ slug: string;
333
+ successUrl?: string | null;
334
+ /** @enum {string} */
335
+ type: "DV";
336
+ /** Format: date-time */
337
+ updatedAt?: string | null;
338
+ } | {
339
+ config: components["schemas"]["FormConfig"];
340
+ /** Format: date-time */
341
+ createdAt?: string | null;
342
+ flowId: string;
343
+ gotoStepId?: string | null;
344
+ id: string;
345
+ name: string;
346
+ /** Format: int32 */
347
+ order: number;
348
+ slug: string;
349
+ successUrl?: string | null;
350
+ /** @enum {string} */
351
+ type: "FORM";
352
+ /** Format: date-time */
353
+ updatedAt?: string | null;
354
+ } | {
355
+ config: components["schemas"]["PoaConfig"];
356
+ /** Format: date-time */
357
+ createdAt?: string | null;
358
+ flowId: string;
359
+ gotoStepId?: string | null;
360
+ id: string;
361
+ name: string;
362
+ /** Format: int32 */
363
+ order: number;
364
+ slug: string;
365
+ successUrl?: string | null;
366
+ /** @enum {string} */
367
+ type: "POA";
368
+ /** Format: date-time */
369
+ updatedAt?: string | null;
370
+ } | {
371
+ config: components["schemas"]["KybConfig"];
372
+ /** Format: date-time */
373
+ createdAt?: string | null;
374
+ flowId: string;
375
+ gotoStepId?: string | null;
376
+ id: string;
377
+ name: string;
378
+ /** Format: int32 */
379
+ order: number;
380
+ slug: string;
381
+ successUrl?: string | null;
382
+ /** @enum {string} */
383
+ type: "KYB";
384
+ /** Format: date-time */
385
+ updatedAt?: string | null;
386
+ } | {
387
+ config: components["schemas"]["SpidConfig"];
388
+ /** Format: date-time */
389
+ createdAt?: string | null;
390
+ flowId: string;
391
+ gotoStepId?: string | null;
392
+ id: string;
393
+ name: string;
394
+ /** Format: int32 */
395
+ order: number;
396
+ slug: string;
397
+ successUrl?: string | null;
398
+ /** @enum {string} */
399
+ type: "SPID";
400
+ /** Format: date-time */
401
+ updatedAt?: string | null;
402
+ };
403
+ FlowStepConfig: components["schemas"]["DvConfig"] | components["schemas"]["FormConfig"] | components["schemas"]["PoaConfig"] | components["schemas"]["KybConfig"] | components["schemas"]["SpidConfig"];
404
+ Form: {
405
+ /** Format: date-time */
406
+ createdAt?: string | null;
407
+ description?: string | null;
408
+ id: string;
409
+ name: string;
410
+ organizationId: string;
411
+ sections: components["schemas"]["FormSection"][];
412
+ /** Format: date-time */
413
+ updatedAt?: string | null;
414
+ };
415
+ FormAnswerSection: {
416
+ answers: {
417
+ [key: string]: unknown;
418
+ };
419
+ name: string;
420
+ };
421
+ FormConfig: {
422
+ form?: components["schemas"]["Form"] | null;
423
+ formId: string;
424
+ /** @example { "default": "Next step" } */
425
+ labels?: {
426
+ [key: string]: string;
427
+ };
428
+ };
429
+ FormItem: {
430
+ content: components["schemas"]["InputField"];
431
+ /** @enum {string} */
432
+ type: "InputField";
433
+ } | {
434
+ content: components["schemas"]["Plaintext"];
435
+ /** @enum {string} */
436
+ type: "Plaintext";
437
+ } | {
438
+ /** @enum {string} */
439
+ type: "Separator";
440
+ };
441
+ /** @enum {string} */
442
+ FormReason: "UNKNOWN";
443
+ FormResult: {
444
+ /** Format: date-time */
445
+ createdAt?: string | null;
446
+ flowResultId: string;
447
+ flowStep?: Omit<components["schemas"]["FlowStep"], "type"> | null;
448
+ flowStepId?: string | null;
449
+ form?: components["schemas"]["Form"] | null;
450
+ id: string;
451
+ reason?: components["schemas"]["FormReason"] | null;
452
+ sections: components["schemas"]["FormSection"][];
453
+ status: components["schemas"]["ResultStatus"];
454
+ /** Format: date-time */
455
+ updatedAt?: string | null;
456
+ verificationRequestId?: string | null;
457
+ };
458
+ FormSection: {
459
+ items: components["schemas"]["FormItem"][];
460
+ label: {
461
+ [key: string]: string;
462
+ };
463
+ name: string;
464
+ };
465
+ GetApiKeyResponse: {
466
+ apiKey: components["schemas"]["ZypheApiKey"];
467
+ };
468
+ GetFlowResponse: {
469
+ flow: components["schemas"]["Flow"];
470
+ };
471
+ GetFormResponse: {
472
+ form: components["schemas"]["Form"];
473
+ };
474
+ GetFullFlowResponse: {
475
+ flow: components["schemas"]["Flow"];
476
+ organizationName: string;
477
+ settings: components["schemas"]["Settings"];
478
+ };
479
+ GetVerificationRequestResponse: {
480
+ identity: components["schemas"]["Identity"];
481
+ verificationRequest: components["schemas"]["VerificationRequest"];
482
+ };
483
+ Identity: {
484
+ /** Format: date-time */
485
+ createdAt?: string | null;
486
+ defaultOrganizationId?: string | null;
487
+ email: string;
488
+ emailVerified: boolean;
489
+ id: string;
490
+ isActive: boolean;
491
+ role: components["schemas"]["Role"];
492
+ /** Format: date-time */
493
+ updatedAt?: string | null;
494
+ zid: string;
495
+ };
496
+ Image: {
497
+ /** Format: int32 */
498
+ containerType: number;
499
+ /** Format: int64 */
500
+ lightIndex: number;
501
+ /** Format: int64 */
502
+ pageIndex: number;
503
+ source: string;
504
+ value: string;
505
+ };
506
+ InputField: {
507
+ label: {
508
+ [key: string]: string;
509
+ };
510
+ name: string;
511
+ options: {
512
+ [key: string]: string;
513
+ };
514
+ required: boolean;
515
+ type: components["schemas"]["InputFieldType"];
516
+ value?: unknown;
517
+ };
518
+ /** @enum {string} */
519
+ InputFieldType: "date" | "text" | "textarea" | "checkbox";
520
+ KybConfig: {
521
+ kycFlowId: string;
522
+ /** @example { "default": "Next step" } */
523
+ labels?: {
524
+ [key: string]: string;
525
+ };
526
+ /**
527
+ * Format: int32
528
+ * @default 10
529
+ * @example 5
530
+ */
531
+ maxFileUploads: number;
532
+ /**
533
+ * Format: int32
534
+ * @default 10
535
+ * @example 3
536
+ */
537
+ maxUbos: number;
538
+ };
539
+ KybResult: {
540
+ businessInformation?: components["schemas"]["BusinessInformation"] | null;
541
+ /** Format: date-time */
542
+ createdAt?: string | null;
543
+ documentUploads?: components["schemas"]["DocumentUpload"][] | null;
544
+ flowStep?: Omit<components["schemas"]["FlowStep"], "type"> | null;
545
+ id: string;
546
+ pepAndSanctionsStatus: components["schemas"]["PepAndSanctionsStatus"];
547
+ reason?: string | null;
548
+ report?: string | null;
549
+ status: components["schemas"]["ModerationResultStatus"];
550
+ uboDefinitions?: components["schemas"]["UboDefinition"][] | null;
551
+ /** Format: date-time */
552
+ updatedAt?: string | null;
553
+ verificationRequestId?: string | null;
554
+ };
555
+ /** @enum {string} */
556
+ Locale: "en";
557
+ ModerateKybResultPayload: {
558
+ pepAndSanctionsStatus?: components["schemas"]["PepAndSanctionsStatusField"] | null;
559
+ /** Format: binary */
560
+ reportFile?: Blob | null;
561
+ status?: components["schemas"]["ModerationResultStatusField"] | null;
562
+ };
563
+ ModerateKybResultResponse: {
564
+ success: boolean;
565
+ };
566
+ /** @enum {string} */
567
+ ModerationResultStatus: "ACQUIRING" | "PENDING_MODERATION" | "SUCCESS" | "FAILED";
568
+ ModerationResultStatusField: components["schemas"]["ModerationResultStatus"];
569
+ Organization: {
570
+ address: string;
571
+ country: string;
572
+ /** Format: date-time */
573
+ createdAt?: string | null;
574
+ email: string;
575
+ id: string;
576
+ industry?: string | null;
577
+ name: string;
578
+ phone: string;
579
+ postcode?: string | null;
580
+ registrationNumber: string;
581
+ settings?: components["schemas"]["Settings"] | null;
582
+ slug: string;
583
+ /** Format: date-time */
584
+ updatedAt?: string | null;
585
+ website: string;
586
+ };
587
+ Pagination: {
588
+ /** @example createdAt:in:2025-01-01,2025-01-02;updatedAt:gt:2025-01-02 */
589
+ filter?: string;
590
+ /**
591
+ * Format: int32
592
+ * @example 0
593
+ */
594
+ skip?: number;
595
+ /** @example createdAt:desc */
596
+ sort?: string;
597
+ /**
598
+ * Format: int32
599
+ * @example 100
600
+ */
601
+ take?: number;
602
+ };
603
+ /** @enum {string} */
604
+ PepAndSanctionsStatus: "REVIEW" | "PENDING" | "SUCCESS" | "FAILED" | "IN_PROGRESS";
605
+ PepAndSanctionsStatusField: components["schemas"]["PepAndSanctionsStatus"];
606
+ PersonalData: {
607
+ dateOfBirth: string;
608
+ gender: string;
609
+ givenName: string;
610
+ nationality: string;
611
+ personalNumber?: string;
612
+ placeOfBirth?: string;
613
+ surname: string;
614
+ };
615
+ Plaintext: {
616
+ text: {
617
+ [key: string]: string;
618
+ };
619
+ };
620
+ PoaConfig: {
621
+ documentFilter: components["schemas"]["PoaDocumentType"][];
622
+ /** @example { "default": "Next step" } */
623
+ labels?: {
624
+ [key: string]: string;
625
+ };
626
+ /**
627
+ * Format: int32
628
+ * @example 90
629
+ */
630
+ maxAgeDays?: number;
631
+ };
632
+ /** @enum {string} */
633
+ PoaDocumentType: "PAY_SLIP" | "UTILITY_BILL" | "FINANCIAL_DOCUMENT" | "RECEIPT" | "INVOICE" | "BANK_DOCUMENT";
634
+ /** @enum {string} */
635
+ PoaReason: "UNKNOWN" | "DOCUMENT_TYPE_NOT_ALLOWED" | "NAME_MISMATCH" | "DATE_TOO_OLD" | "INVALID_DOCUMENT";
636
+ PoaResult: {
637
+ /** Format: date-time */
638
+ checkedAt?: string | null;
639
+ /** Format: date-time */
640
+ createdAt: string;
641
+ documentId?: string | null;
642
+ documentType?: components["schemas"]["PoaDocumentType"] | null;
643
+ flowStep?: Omit<components["schemas"]["FlowStep"], "type"> | null;
644
+ id: string;
645
+ reason?: components["schemas"]["PoaReason"] | null;
646
+ status: components["schemas"]["ResultStatus"];
647
+ /** Format: date-time */
648
+ updatedAt: string;
649
+ verificationRequestId?: string | null;
650
+ };
651
+ ProcessAddressDocumentRequest: {
652
+ /** Format: binary */
653
+ file: Blob;
654
+ };
655
+ ProcessAddressDocumentResponse: {
656
+ jobId: string;
657
+ verificationRequestId: string;
658
+ websocketNamespace: string;
659
+ };
660
+ /** @enum {string} */
661
+ ProductType: "UNKNOWN" | "KYC" | "KYB" | "PRODUCTION_MODE" | "SPID";
662
+ /** @enum {string} */
663
+ ResultStatus: "PASSED" | "FAILED";
664
+ /** @enum {string} */
665
+ Role: "GUEST" | "USER" | "ADMIN";
666
+ SdkCreateVerificationRequestPayload: {
667
+ customData?: {
668
+ [key: string]: unknown;
669
+ } | null;
670
+ email: string;
671
+ flowStepId: string;
672
+ };
673
+ SdkCreateVerificationRequestResponse: {
674
+ email: string;
675
+ flowSlug: string;
676
+ flowStepSlug: string;
677
+ isSandbox: boolean;
678
+ verificationRequest: components["schemas"]["VerificationRequest"];
679
+ websocketNamespace: string;
680
+ zypheToken: string;
681
+ };
682
+ Settings: {
683
+ /** Format: date-time */
684
+ createdAt?: string | null;
685
+ extendedWebhook?: boolean | null;
686
+ primaryColor?: string | null;
687
+ profileImage?: string | null;
688
+ secondaryColor?: string | null;
689
+ /** Format: date-time */
690
+ updatedAt?: string | null;
691
+ webhookSecret?: string | null;
692
+ };
693
+ SpidConfig: {
694
+ /** @example { "default": "Next step" } */
695
+ labels?: {
696
+ [key: string]: string;
697
+ };
698
+ };
699
+ SpidResult: {
700
+ /** Format: date-time */
701
+ createdAt?: string | null;
702
+ flowStep?: Omit<components["schemas"]["FlowStep"], "type"> | null;
703
+ id: string;
704
+ path: string;
705
+ reason?: string | null;
706
+ status: components["schemas"]["ResultStatus"];
707
+ /** Format: date-time */
708
+ updatedAt?: string | null;
709
+ verificationRequestId?: string | null;
710
+ };
711
+ SpidResultDetails: {
712
+ address?: string | null;
713
+ companyName?: string | null;
714
+ companyVatNumber?: string | null;
715
+ countryOfBirth?: string | null;
716
+ dateOfBirth?: string | null;
717
+ digitalAddress?: string | null;
718
+ email?: string | null;
719
+ firstName?: string | null;
720
+ fiscalNumber?: string | null;
721
+ fullName?: string | null;
722
+ gender?: string | null;
723
+ id?: string | null;
724
+ lastName?: string | null;
725
+ mobilePhone?: string | null;
726
+ placeOfBirth?: string | null;
727
+ registeredOffice?: string | null;
728
+ spidCode?: string | null;
729
+ username?: string | null;
730
+ };
731
+ UboDefinition: {
732
+ country: string;
733
+ dateOfBirth: string;
734
+ emailAddress: string;
735
+ firstName: string;
736
+ gender: string;
737
+ lastName: string;
738
+ };
739
+ /** @enum {string} */
740
+ 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";
741
+ VerificationRequest: {
742
+ amlResult?: components["schemas"]["AmlResult"] | null;
743
+ /** Format: int32 */
744
+ attemptsCount: number;
745
+ /** Format: date-time */
746
+ createdAt?: string | null;
747
+ customData: {
748
+ [key: string]: unknown;
749
+ };
750
+ dvResult?: components["schemas"]["DvResult"] | null;
751
+ flowId: string;
752
+ flowStepId: string;
753
+ formResult?: components["schemas"]["FormResult"] | null;
754
+ id: string;
755
+ identity?: components["schemas"]["Identity"] | null;
756
+ identityId: string;
757
+ kybResult?: components["schemas"]["KybResult"] | null;
758
+ organizationId: string;
759
+ poaResult?: components["schemas"]["PoaResult"] | null;
760
+ reason?: string | null;
761
+ spidResult?: components["schemas"]["SpidResult"] | null;
762
+ status: components["schemas"]["VerificationRequestStatus"];
763
+ /** Format: date-time */
764
+ updatedAt?: string | null;
765
+ };
766
+ /** @enum {string} */
767
+ VerificationRequestStatus: "PENDING" | "COMPLETED" | "FAILED" | "CANCELLED" | "QUEUED" | "PROCESSING";
768
+ ZypheApiKey: {
769
+ allowedOrigins: string[];
770
+ /** Format: date-time */
771
+ createdAt?: string | null;
772
+ description?: string | null;
773
+ id: string;
774
+ key: string;
775
+ keyType: string;
776
+ name?: string | null;
777
+ options: {
778
+ [key: string]: unknown;
779
+ };
780
+ organization?: components["schemas"]["Organization"] | null;
781
+ organizationId: string;
782
+ /** Format: date-time */
783
+ updatedAt?: string | null;
784
+ };
785
+ };
786
+ responses: never;
787
+ parameters: never;
788
+ requestBodies: never;
789
+ headers: never;
790
+ pathItems: never;
791
+ }
792
+ export type $defs = Record<string, never>;
793
+ export interface operations {
794
+ get_full_flow_details: {
795
+ parameters: {
796
+ query?: {
797
+ /** @description Whether to use sandbox mode */
798
+ sandbox?: boolean | null;
799
+ };
800
+ header?: never;
801
+ path: {
802
+ slug: string;
803
+ };
804
+ cookie?: never;
805
+ };
806
+ requestBody?: never;
807
+ responses: {
808
+ 200: {
809
+ headers: {
810
+ [name: string]: unknown;
811
+ };
812
+ content: {
813
+ "application/json": components["schemas"]["GetFullFlowResponse"];
814
+ };
815
+ };
816
+ 404: {
817
+ headers: {
818
+ [name: string]: unknown;
819
+ };
820
+ content: {
821
+ "application/json": components["schemas"]["BaxeError"];
822
+ };
823
+ };
824
+ 500: {
825
+ headers: {
826
+ [name: string]: unknown;
827
+ };
828
+ content: {
829
+ "application/json": components["schemas"]["BaxeError"];
830
+ };
831
+ };
832
+ };
833
+ };
834
+ get_verification_request: {
835
+ parameters: {
836
+ query?: {
837
+ /** @description Whether to use sandbox mode */
838
+ sandbox?: boolean | null;
839
+ };
840
+ header?: never;
841
+ path: {
842
+ flow_id: string;
843
+ verification_request_id: string;
844
+ };
845
+ cookie?: never;
846
+ };
847
+ requestBody?: never;
848
+ responses: {
849
+ 200: {
850
+ headers: {
851
+ [name: string]: unknown;
852
+ };
853
+ content: {
854
+ "application/json": components["schemas"]["GetVerificationRequestResponse"];
855
+ };
856
+ };
857
+ 404: {
858
+ headers: {
859
+ [name: string]: unknown;
860
+ };
861
+ content: {
862
+ "application/json": components["schemas"]["BaxeError"];
863
+ };
864
+ };
865
+ 500: {
866
+ headers: {
867
+ [name: string]: unknown;
868
+ };
869
+ content: {
870
+ "application/json": components["schemas"]["BaxeError"];
871
+ };
872
+ };
873
+ };
874
+ };
875
+ sdk_create_verification_request: {
876
+ parameters: {
877
+ query?: {
878
+ /** @description Whether to use sandbox mode */
879
+ sandbox?: boolean | null;
880
+ };
881
+ header?: never;
882
+ path: {
883
+ flow_id: string;
884
+ };
885
+ cookie?: never;
886
+ };
887
+ requestBody: {
888
+ content: {
889
+ "application/json": components["schemas"]["SdkCreateVerificationRequestPayload"];
890
+ };
891
+ };
892
+ responses: {
893
+ 200: {
894
+ headers: {
895
+ [name: string]: unknown;
896
+ };
897
+ content: {
898
+ "application/json": components["schemas"]["SdkCreateVerificationRequestResponse"];
899
+ };
900
+ };
901
+ 400: {
902
+ headers: {
903
+ [name: string]: unknown;
904
+ };
905
+ content: {
906
+ "application/json": components["schemas"]["BaxeError"];
907
+ };
908
+ };
909
+ 409: {
910
+ headers: {
911
+ [name: string]: unknown;
912
+ };
913
+ content: {
914
+ "application/json": components["schemas"]["BaxeError"];
915
+ };
916
+ };
917
+ 500: {
918
+ headers: {
919
+ [name: string]: unknown;
920
+ };
921
+ content: {
922
+ "application/json": components["schemas"]["BaxeError"];
923
+ };
924
+ };
925
+ };
926
+ };
927
+ get_completed_verification_requests: {
928
+ parameters: {
929
+ query?: {
930
+ /** @description Whether to use sandbox mode */
931
+ sandbox?: boolean | null;
932
+ };
933
+ header?: never;
934
+ path: {
935
+ flow_id: string;
936
+ };
937
+ cookie?: never;
938
+ };
939
+ requestBody?: never;
940
+ responses: {
941
+ 200: {
942
+ headers: {
943
+ [name: string]: unknown;
944
+ };
945
+ content: {
946
+ "application/json": components["schemas"]["VerificationRequest"][];
947
+ };
948
+ };
949
+ 500: {
950
+ headers: {
951
+ [name: string]: unknown;
952
+ };
953
+ content: {
954
+ "application/json": components["schemas"]["BaxeError"];
955
+ };
956
+ };
957
+ };
958
+ };
959
+ }