@zyphe-sdk/core 0.1.5 → 0.1.6

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,3094 @@
1
+ {
2
+ "openapi": "3.0.3",
3
+ "info": {
4
+ "title": "zyphe-core",
5
+ "description": "",
6
+ "license": {
7
+ "name": ""
8
+ },
9
+ "version": "0.1.3"
10
+ },
11
+ "paths": {
12
+ "/flows/{slug}/fullflow": {
13
+ "get": {
14
+ "tags": [
15
+ "Flows"
16
+ ],
17
+ "operationId": "get_full_flow_details",
18
+ "parameters": [
19
+ {
20
+ "name": "sandbox",
21
+ "in": "query",
22
+ "description": "Whether to use sandbox mode",
23
+ "required": false,
24
+ "schema": {
25
+ "type": "boolean",
26
+ "nullable": true
27
+ }
28
+ },
29
+ {
30
+ "name": "slug",
31
+ "in": "path",
32
+ "required": true,
33
+ "schema": {
34
+ "type": "string"
35
+ }
36
+ }
37
+ ],
38
+ "responses": {
39
+ "200": {
40
+ "description": "",
41
+ "content": {
42
+ "application/json": {
43
+ "schema": {
44
+ "$ref": "#/components/schemas/GetFullFlowResponse"
45
+ }
46
+ }
47
+ }
48
+ },
49
+ "404": {
50
+ "description": "",
51
+ "content": {
52
+ "application/json": {
53
+ "schema": {
54
+ "$ref": "#/components/schemas/BaxeError"
55
+ }
56
+ }
57
+ }
58
+ },
59
+ "500": {
60
+ "description": "",
61
+ "content": {
62
+ "application/json": {
63
+ "schema": {
64
+ "$ref": "#/components/schemas/BaxeError"
65
+ }
66
+ }
67
+ }
68
+ }
69
+ }
70
+ }
71
+ },
72
+ "/flow/{flow_id}/vr/{verification_request_id}/get": {
73
+ "get": {
74
+ "tags": [
75
+ "Verification Requests"
76
+ ],
77
+ "operationId": "get_verification_request",
78
+ "parameters": [
79
+ {
80
+ "name": "sandbox",
81
+ "in": "query",
82
+ "description": "Whether to use sandbox mode",
83
+ "required": false,
84
+ "schema": {
85
+ "type": "boolean",
86
+ "nullable": true
87
+ }
88
+ },
89
+ {
90
+ "name": "flow_id",
91
+ "in": "path",
92
+ "required": true,
93
+ "schema": {
94
+ "type": "string"
95
+ }
96
+ },
97
+ {
98
+ "name": "verification_request_id",
99
+ "in": "path",
100
+ "required": true,
101
+ "schema": {
102
+ "type": "string"
103
+ }
104
+ }
105
+ ],
106
+ "responses": {
107
+ "200": {
108
+ "description": "",
109
+ "content": {
110
+ "application/json": {
111
+ "schema": {
112
+ "$ref": "#/components/schemas/GetVerificationRequestResponse"
113
+ }
114
+ }
115
+ }
116
+ },
117
+ "404": {
118
+ "description": "",
119
+ "content": {
120
+ "application/json": {
121
+ "schema": {
122
+ "$ref": "#/components/schemas/BaxeError"
123
+ }
124
+ }
125
+ }
126
+ },
127
+ "500": {
128
+ "description": "",
129
+ "content": {
130
+ "application/json": {
131
+ "schema": {
132
+ "$ref": "#/components/schemas/BaxeError"
133
+ }
134
+ }
135
+ }
136
+ }
137
+ },
138
+ "security": [
139
+ {
140
+ "jwt-auth": []
141
+ }
142
+ ]
143
+ }
144
+ },
145
+ "/sdk/flow/{flow_id}/vr/create": {
146
+ "post": {
147
+ "tags": [
148
+ "SDK: Verification Requests"
149
+ ],
150
+ "operationId": "sdk_create_verification_request",
151
+ "parameters": [
152
+ {
153
+ "name": "sandbox",
154
+ "in": "query",
155
+ "description": "Whether to use sandbox mode",
156
+ "required": false,
157
+ "schema": {
158
+ "type": "boolean",
159
+ "nullable": true
160
+ }
161
+ },
162
+ {
163
+ "name": "flow_id",
164
+ "in": "path",
165
+ "required": true,
166
+ "schema": {
167
+ "type": "string"
168
+ }
169
+ }
170
+ ],
171
+ "requestBody": {
172
+ "content": {
173
+ "application/json": {
174
+ "schema": {
175
+ "$ref": "#/components/schemas/SdkCreateVerificationRequestPayload"
176
+ }
177
+ }
178
+ },
179
+ "required": true
180
+ },
181
+ "responses": {
182
+ "200": {
183
+ "description": "",
184
+ "content": {
185
+ "application/json": {
186
+ "schema": {
187
+ "$ref": "#/components/schemas/SdkCreateVerificationRequestResponse"
188
+ }
189
+ }
190
+ }
191
+ },
192
+ "400": {
193
+ "description": "",
194
+ "content": {
195
+ "application/json": {
196
+ "schema": {
197
+ "$ref": "#/components/schemas/BaxeError"
198
+ }
199
+ }
200
+ }
201
+ },
202
+ "409": {
203
+ "description": "",
204
+ "content": {
205
+ "application/json": {
206
+ "schema": {
207
+ "$ref": "#/components/schemas/BaxeError"
208
+ }
209
+ }
210
+ }
211
+ },
212
+ "500": {
213
+ "description": "",
214
+ "content": {
215
+ "application/json": {
216
+ "schema": {
217
+ "$ref": "#/components/schemas/BaxeError"
218
+ }
219
+ }
220
+ }
221
+ }
222
+ },
223
+ "security": [
224
+ {
225
+ "x-api-key": []
226
+ }
227
+ ]
228
+ }
229
+ },
230
+ "/flow/{flow_id}/vr/completed": {
231
+ "get": {
232
+ "tags": [
233
+ "Verification Requests"
234
+ ],
235
+ "operationId": "get_completed_verification_requests",
236
+ "parameters": [
237
+ {
238
+ "name": "sandbox",
239
+ "in": "query",
240
+ "description": "Whether to use sandbox mode",
241
+ "required": false,
242
+ "schema": {
243
+ "type": "boolean",
244
+ "nullable": true
245
+ }
246
+ },
247
+ {
248
+ "name": "flow_id",
249
+ "in": "path",
250
+ "required": true,
251
+ "schema": {
252
+ "type": "string"
253
+ }
254
+ }
255
+ ],
256
+ "responses": {
257
+ "200": {
258
+ "description": "",
259
+ "content": {
260
+ "application/json": {
261
+ "schema": {
262
+ "type": "array",
263
+ "items": {
264
+ "$ref": "#/components/schemas/VerificationRequest"
265
+ }
266
+ }
267
+ }
268
+ }
269
+ },
270
+ "500": {
271
+ "description": "",
272
+ "content": {
273
+ "application/json": {
274
+ "schema": {
275
+ "$ref": "#/components/schemas/BaxeError"
276
+ }
277
+ }
278
+ }
279
+ }
280
+ },
281
+ "security": [
282
+ {
283
+ "jwt-auth": []
284
+ }
285
+ ]
286
+ }
287
+ }
288
+ },
289
+ "components": {
290
+ "schemas": {
291
+ "AddressData": {
292
+ "type": "object",
293
+ "required": [
294
+ "flat",
295
+ "houseNumber",
296
+ "building",
297
+ "street",
298
+ "city",
299
+ "postalCode",
300
+ "country"
301
+ ],
302
+ "properties": {
303
+ "addressLine": {
304
+ "type": "string",
305
+ "nullable": true
306
+ },
307
+ "building": {
308
+ "type": "string"
309
+ },
310
+ "city": {
311
+ "type": "string"
312
+ },
313
+ "country": {
314
+ "type": "string"
315
+ },
316
+ "flat": {
317
+ "type": "string"
318
+ },
319
+ "houseNumber": {
320
+ "type": "string"
321
+ },
322
+ "postalCode": {
323
+ "type": "string"
324
+ },
325
+ "street": {
326
+ "type": "string"
327
+ }
328
+ }
329
+ },
330
+ "AmlEntityResponse": {
331
+ "type": "object",
332
+ "properties": {
333
+ "address": {
334
+ "type": "array",
335
+ "items": {
336
+ "type": "string"
337
+ }
338
+ },
339
+ "birthCountry": {
340
+ "type": "array",
341
+ "items": {
342
+ "type": "string"
343
+ }
344
+ },
345
+ "birthDate": {
346
+ "type": "array",
347
+ "items": {
348
+ "type": "string"
349
+ }
350
+ },
351
+ "birthPlace": {
352
+ "type": "array",
353
+ "items": {
354
+ "type": "string"
355
+ }
356
+ },
357
+ "country": {
358
+ "type": "array",
359
+ "items": {
360
+ "type": "string"
361
+ }
362
+ },
363
+ "email": {
364
+ "type": "array",
365
+ "items": {
366
+ "type": "string"
367
+ }
368
+ },
369
+ "firstName": {
370
+ "type": "array",
371
+ "items": {
372
+ "type": "string"
373
+ }
374
+ },
375
+ "gender": {
376
+ "type": "array",
377
+ "items": {
378
+ "type": "string"
379
+ }
380
+ },
381
+ "lastName": {
382
+ "type": "array",
383
+ "items": {
384
+ "type": "string"
385
+ }
386
+ },
387
+ "middleName": {
388
+ "type": "array",
389
+ "items": {
390
+ "type": "string"
391
+ }
392
+ },
393
+ "name": {
394
+ "type": "array",
395
+ "items": {
396
+ "type": "string"
397
+ }
398
+ },
399
+ "nationality": {
400
+ "type": "array",
401
+ "items": {
402
+ "type": "string"
403
+ }
404
+ },
405
+ "occupancies": {
406
+ "type": "array",
407
+ "items": {
408
+ "$ref": "#/components/schemas/AmlOccupancy"
409
+ }
410
+ },
411
+ "phone": {
412
+ "type": "array",
413
+ "items": {
414
+ "type": "string"
415
+ }
416
+ },
417
+ "position": {
418
+ "type": "array",
419
+ "items": {
420
+ "type": "string"
421
+ }
422
+ },
423
+ "sanctions": {
424
+ "type": "array",
425
+ "items": {
426
+ "$ref": "#/components/schemas/AmlSanction"
427
+ }
428
+ },
429
+ "title": {
430
+ "type": "array",
431
+ "items": {
432
+ "type": "string"
433
+ }
434
+ },
435
+ "topics": {
436
+ "type": "array",
437
+ "items": {
438
+ "type": "string"
439
+ }
440
+ }
441
+ }
442
+ },
443
+ "AmlOccupancy": {
444
+ "type": "object",
445
+ "properties": {
446
+ "endDate": {
447
+ "type": "array",
448
+ "items": {
449
+ "type": "string"
450
+ }
451
+ },
452
+ "post": {
453
+ "type": "array",
454
+ "items": {
455
+ "$ref": "#/components/schemas/AmlPosition"
456
+ }
457
+ },
458
+ "startDate": {
459
+ "type": "array",
460
+ "items": {
461
+ "type": "string"
462
+ }
463
+ },
464
+ "status": {
465
+ "type": "array",
466
+ "items": {
467
+ "type": "string"
468
+ }
469
+ }
470
+ }
471
+ },
472
+ "AmlOrganization": {
473
+ "type": "object",
474
+ "properties": {
475
+ "country": {
476
+ "type": "array",
477
+ "items": {
478
+ "type": "string"
479
+ }
480
+ },
481
+ "description": {
482
+ "type": "array",
483
+ "items": {
484
+ "type": "string"
485
+ }
486
+ },
487
+ "name": {
488
+ "type": "array",
489
+ "items": {
490
+ "type": "string"
491
+ }
492
+ },
493
+ "summary": {
494
+ "type": "array",
495
+ "items": {
496
+ "type": "string"
497
+ }
498
+ }
499
+ }
500
+ },
501
+ "AmlPosition": {
502
+ "type": "object",
503
+ "properties": {
504
+ "country": {
505
+ "type": "array",
506
+ "items": {
507
+ "type": "string"
508
+ }
509
+ },
510
+ "description": {
511
+ "type": "array",
512
+ "items": {
513
+ "type": "string"
514
+ }
515
+ },
516
+ "dissolutionDate": {
517
+ "type": "array",
518
+ "items": {
519
+ "type": "string"
520
+ }
521
+ },
522
+ "inceptionDate": {
523
+ "type": "array",
524
+ "items": {
525
+ "type": "string"
526
+ }
527
+ },
528
+ "name": {
529
+ "type": "array",
530
+ "items": {
531
+ "type": "string"
532
+ }
533
+ },
534
+ "numberOfSeats": {
535
+ "type": "array",
536
+ "items": {
537
+ "type": "integer",
538
+ "format": "int32"
539
+ }
540
+ },
541
+ "organization": {
542
+ "type": "array",
543
+ "items": {
544
+ "$ref": "#/components/schemas/AmlOrganization"
545
+ }
546
+ },
547
+ "subnationalArea": {
548
+ "type": "array",
549
+ "items": {
550
+ "type": "string"
551
+ }
552
+ },
553
+ "summary": {
554
+ "type": "array",
555
+ "items": {
556
+ "type": "string"
557
+ }
558
+ },
559
+ "topics": {
560
+ "type": "array",
561
+ "items": {
562
+ "type": "string"
563
+ }
564
+ }
565
+ }
566
+ },
567
+ "AmlResult": {
568
+ "type": "object",
569
+ "required": [
570
+ "id",
571
+ "data",
572
+ "pep",
573
+ "sanctions",
574
+ "createdAt",
575
+ "updatedAt"
576
+ ],
577
+ "properties": {
578
+ "createdAt": {
579
+ "type": "string",
580
+ "format": "date-time"
581
+ },
582
+ "data": {
583
+ "type": "object",
584
+ "additionalProperties": {}
585
+ },
586
+ "id": {
587
+ "type": "string"
588
+ },
589
+ "pep": {
590
+ "type": "boolean"
591
+ },
592
+ "sanctions": {
593
+ "type": "boolean"
594
+ },
595
+ "updatedAt": {
596
+ "type": "string",
597
+ "format": "date-time"
598
+ },
599
+ "verificationRequestId": {
600
+ "type": "string",
601
+ "nullable": true
602
+ }
603
+ }
604
+ },
605
+ "AmlSanction": {
606
+ "type": "object",
607
+ "properties": {
608
+ "authority": {
609
+ "type": "array",
610
+ "items": {
611
+ "type": "string"
612
+ }
613
+ },
614
+ "authorityId": {
615
+ "type": "array",
616
+ "items": {
617
+ "type": "string"
618
+ }
619
+ },
620
+ "country": {
621
+ "type": "array",
622
+ "items": {
623
+ "type": "string"
624
+ }
625
+ },
626
+ "date": {
627
+ "type": "array",
628
+ "items": {
629
+ "type": "string"
630
+ }
631
+ },
632
+ "duration": {
633
+ "type": "array",
634
+ "items": {
635
+ "type": "string"
636
+ }
637
+ },
638
+ "endDate": {
639
+ "type": "array",
640
+ "items": {
641
+ "type": "string"
642
+ }
643
+ },
644
+ "listingDate": {
645
+ "type": "array",
646
+ "items": {
647
+ "type": "string"
648
+ }
649
+ },
650
+ "program": {
651
+ "type": "array",
652
+ "items": {
653
+ "type": "string"
654
+ }
655
+ },
656
+ "reason": {
657
+ "type": "array",
658
+ "items": {
659
+ "type": "string"
660
+ }
661
+ },
662
+ "startDate": {
663
+ "type": "array",
664
+ "items": {
665
+ "type": "string"
666
+ }
667
+ },
668
+ "status": {
669
+ "type": "array",
670
+ "items": {
671
+ "type": "string"
672
+ }
673
+ },
674
+ "unscId": {
675
+ "type": "array",
676
+ "items": {
677
+ "type": "string"
678
+ }
679
+ }
680
+ }
681
+ },
682
+ "AmlSearchResponse": {
683
+ "type": "array",
684
+ "items": {
685
+ "$ref": "#/components/schemas/AmlEntityResponse"
686
+ }
687
+ },
688
+ "ApiKeyType": {
689
+ "type": "string",
690
+ "enum": [
691
+ "PUBLISHABLE",
692
+ "SECRET"
693
+ ]
694
+ },
695
+ "BaxeError": {
696
+ "type": "object",
697
+ "required": [
698
+ "code",
699
+ "errorTag"
700
+ ],
701
+ "properties": {
702
+ "code": {
703
+ "type": "integer",
704
+ "format": "int32",
705
+ "minimum": 0
706
+ },
707
+ "errorTag": {
708
+ "$ref": "#/components/schemas/ErrorTags"
709
+ },
710
+ "message": {
711
+ "type": "string",
712
+ "nullable": true
713
+ }
714
+ }
715
+ },
716
+ "BusinessInformation": {
717
+ "type": "object",
718
+ "required": [
719
+ "contactEmail",
720
+ "companyName",
721
+ "registrationNumber",
722
+ "companyType",
723
+ "country",
724
+ "address",
725
+ "city",
726
+ "postZipCode",
727
+ "businessActivity",
728
+ "incorporationDate"
729
+ ],
730
+ "properties": {
731
+ "address": {
732
+ "type": "string"
733
+ },
734
+ "businessActivity": {
735
+ "type": "string"
736
+ },
737
+ "city": {
738
+ "type": "string"
739
+ },
740
+ "companyName": {
741
+ "type": "string"
742
+ },
743
+ "companyType": {
744
+ "type": "string"
745
+ },
746
+ "contactEmail": {
747
+ "type": "string"
748
+ },
749
+ "country": {
750
+ "type": "string"
751
+ },
752
+ "incorporationDate": {
753
+ "type": "string"
754
+ },
755
+ "postZipCode": {
756
+ "type": "string"
757
+ },
758
+ "registrationNumber": {
759
+ "type": "string"
760
+ }
761
+ }
762
+ },
763
+ "CountriesFilter": {
764
+ "type": "object",
765
+ "required": [
766
+ "accepted",
767
+ "blocked"
768
+ ],
769
+ "properties": {
770
+ "accepted": {
771
+ "type": "array",
772
+ "items": {
773
+ "type": "string"
774
+ }
775
+ },
776
+ "blocked": {
777
+ "type": "array",
778
+ "items": {
779
+ "type": "string"
780
+ }
781
+ }
782
+ }
783
+ },
784
+ "CreateVerificationRequestPayload": {
785
+ "type": "object",
786
+ "required": [
787
+ "email",
788
+ "flowStepId",
789
+ "termsAndConditionsAccepted",
790
+ "privacyPolicyAccepted",
791
+ "cookiesPolicyAccepted"
792
+ ],
793
+ "properties": {
794
+ "continueUrl": {
795
+ "type": "string",
796
+ "nullable": true
797
+ },
798
+ "cookiesPolicyAccepted": {
799
+ "type": "boolean"
800
+ },
801
+ "customData": {
802
+ "type": "object",
803
+ "additionalProperties": {},
804
+ "nullable": true
805
+ },
806
+ "email": {
807
+ "type": "string"
808
+ },
809
+ "flowStepId": {
810
+ "type": "string"
811
+ },
812
+ "privacyPolicyAccepted": {
813
+ "type": "boolean"
814
+ },
815
+ "termsAndConditionsAccepted": {
816
+ "type": "boolean"
817
+ }
818
+ }
819
+ },
820
+ "CreateVerificationRequestResponse": {
821
+ "type": "object",
822
+ "required": [
823
+ "websocketNamespace",
824
+ "verificationRequest"
825
+ ],
826
+ "properties": {
827
+ "verificationRequest": {
828
+ "$ref": "#/components/schemas/VerificationRequest"
829
+ },
830
+ "websocketNamespace": {
831
+ "type": "string"
832
+ }
833
+ }
834
+ },
835
+ "Document": {
836
+ "type": "object",
837
+ "required": [
838
+ "id",
839
+ "metadata",
840
+ "path",
841
+ "type",
842
+ "typeName",
843
+ "createdAt",
844
+ "updatedAt",
845
+ "vaultId"
846
+ ],
847
+ "properties": {
848
+ "createdAt": {
849
+ "type": "string",
850
+ "format": "date-time"
851
+ },
852
+ "expiresAt": {
853
+ "type": "string",
854
+ "format": "date-time",
855
+ "nullable": true
856
+ },
857
+ "id": {
858
+ "type": "string"
859
+ },
860
+ "metadata": {},
861
+ "path": {
862
+ "type": "string"
863
+ },
864
+ "type": {
865
+ "type": "integer",
866
+ "format": "int32"
867
+ },
868
+ "typeName": {
869
+ "type": "string"
870
+ },
871
+ "updatedAt": {
872
+ "type": "string",
873
+ "format": "date-time"
874
+ },
875
+ "vaultId": {
876
+ "type": "string"
877
+ }
878
+ }
879
+ },
880
+ "DocumentData": {
881
+ "type": "object",
882
+ "required": [
883
+ "documentNumber",
884
+ "issuingState",
885
+ "issuingAuthority"
886
+ ],
887
+ "properties": {
888
+ "documentCan": {
889
+ "type": "string"
890
+ },
891
+ "documentClassCode": {
892
+ "type": "string"
893
+ },
894
+ "documentNumber": {
895
+ "type": "string"
896
+ },
897
+ "expiryDate": {
898
+ "type": "string",
899
+ "format": "date",
900
+ "nullable": true
901
+ },
902
+ "issuingAuthority": {
903
+ "type": "string"
904
+ },
905
+ "issuingDate": {
906
+ "type": "string",
907
+ "format": "date",
908
+ "nullable": true
909
+ },
910
+ "issuingState": {
911
+ "type": "string"
912
+ },
913
+ "mrzStrings": {
914
+ "type": "string"
915
+ }
916
+ }
917
+ },
918
+ "DocumentFormatFilter": {
919
+ "type": "object",
920
+ "required": [
921
+ "formats"
922
+ ],
923
+ "properties": {
924
+ "formats": {
925
+ "type": "array",
926
+ "items": {
927
+ "type": "string"
928
+ }
929
+ }
930
+ }
931
+ },
932
+ "DocumentImage": {
933
+ "type": "object",
934
+ "required": [
935
+ "type",
936
+ "path"
937
+ ],
938
+ "properties": {
939
+ "path": {
940
+ "type": "string"
941
+ },
942
+ "type": {
943
+ "type": "string"
944
+ }
945
+ }
946
+ },
947
+ "DocumentTypeFilter": {
948
+ "type": "object",
949
+ "required": [
950
+ "types"
951
+ ],
952
+ "properties": {
953
+ "types": {
954
+ "type": "array",
955
+ "items": {
956
+ "type": "string"
957
+ }
958
+ }
959
+ }
960
+ },
961
+ "DocumentUpload": {
962
+ "type": "object",
963
+ "required": [
964
+ "filename"
965
+ ],
966
+ "properties": {
967
+ "filename": {
968
+ "type": "string"
969
+ },
970
+ "presignedUrl": {
971
+ "type": "string",
972
+ "nullable": true
973
+ }
974
+ }
975
+ },
976
+ "DvConfig": {
977
+ "type": "object",
978
+ "required": [
979
+ "minimumAge"
980
+ ],
981
+ "properties": {
982
+ "allowedDocumentsPerCountry": {
983
+ "type": "object",
984
+ "additionalProperties": {
985
+ "type": "array",
986
+ "items": {
987
+ "type": "string"
988
+ }
989
+ },
990
+ "nullable": true
991
+ },
992
+ "countriesFilter": {
993
+ "allOf": [
994
+ {
995
+ "$ref": "#/components/schemas/CountriesFilter"
996
+ }
997
+ ],
998
+ "nullable": true
999
+ },
1000
+ "documentFormatsFilter": {
1001
+ "allOf": [
1002
+ {
1003
+ "$ref": "#/components/schemas/DocumentFormatFilter"
1004
+ }
1005
+ ],
1006
+ "nullable": true
1007
+ },
1008
+ "documentTypesFilter": {
1009
+ "allOf": [
1010
+ {
1011
+ "$ref": "#/components/schemas/DocumentTypeFilter"
1012
+ }
1013
+ ],
1014
+ "nullable": true
1015
+ },
1016
+ "labels": {
1017
+ "type": "object",
1018
+ "additionalProperties": {
1019
+ "type": "string"
1020
+ },
1021
+ "example": "{ \"en_button_label\": \"Next step\" }"
1022
+ },
1023
+ "minimumAge": {
1024
+ "type": "integer",
1025
+ "format": "int32",
1026
+ "minimum": 0
1027
+ },
1028
+ "skipLiveness": {
1029
+ "type": "boolean"
1030
+ },
1031
+ "thresholds": {
1032
+ "type": "object",
1033
+ "additionalProperties": {
1034
+ "type": "number",
1035
+ "format": "float"
1036
+ },
1037
+ "nullable": true
1038
+ }
1039
+ }
1040
+ },
1041
+ "DvConfigThreshold": {
1042
+ "type": "string",
1043
+ "enum": [
1044
+ "documentScorePercent",
1045
+ "portraitMatchPercent"
1046
+ ]
1047
+ },
1048
+ "DvReason": {
1049
+ "type": "string",
1050
+ "enum": [
1051
+ "UNKNOWN",
1052
+ "WRONG_DOCUMENT_TYPE",
1053
+ "COUNTRY_FILTER",
1054
+ "FACE_MATCH_CHECK",
1055
+ "OVERALL_STATUS",
1056
+ "DOCUMENT_COUNTRY_MISMATCH",
1057
+ "DOCUMENT_COUNTRY_MISSING",
1058
+ "DATE_OF_EXPIRY_NOT_VALID",
1059
+ "DATE_OF_EXPIRY_NOT_READABLE",
1060
+ "DATE_OF_EXPIRY_FIELD_MISSING",
1061
+ "DOCUMENT_ALREADY_USED_BY_ANOTHER_USER",
1062
+ "DOCUMENT_FINGERPRINT_COMPUTATION",
1063
+ "SECURITY_CHECK_FAILED",
1064
+ "DOCUMENT_SCORE_BELOW_THRESHOLD",
1065
+ "DOCUMENT_TYPE_NOT_DEFINED",
1066
+ "LIVENESS_CHECK_FAILED",
1067
+ "DOCUMENT_NOT_FOUND",
1068
+ "DATE_OF_BIRTH_BELOW_MINIMUM_AGE"
1069
+ ]
1070
+ },
1071
+ "DvResult": {
1072
+ "type": "object",
1073
+ "required": [
1074
+ "id",
1075
+ "status",
1076
+ "reasons",
1077
+ "data",
1078
+ "processAdditionalData"
1079
+ ],
1080
+ "properties": {
1081
+ "browser": {
1082
+ "type": "string",
1083
+ "nullable": true
1084
+ },
1085
+ "class": {
1086
+ "type": "string",
1087
+ "nullable": true
1088
+ },
1089
+ "createdAt": {
1090
+ "type": "string",
1091
+ "format": "date-time",
1092
+ "nullable": true
1093
+ },
1094
+ "data": {
1095
+ "type": "object",
1096
+ "additionalProperties": {}
1097
+ },
1098
+ "documentId": {
1099
+ "type": "string",
1100
+ "nullable": true
1101
+ },
1102
+ "documentScorePercent": {
1103
+ "type": "integer",
1104
+ "format": "int32",
1105
+ "nullable": true
1106
+ },
1107
+ "documentType": {
1108
+ "type": "integer",
1109
+ "format": "int32",
1110
+ "nullable": true
1111
+ },
1112
+ "firstName": {
1113
+ "type": "string",
1114
+ "nullable": true
1115
+ },
1116
+ "flowStep": {
1117
+ "allOf": [
1118
+ {
1119
+ "$ref": "#/components/schemas/FlowStep"
1120
+ }
1121
+ ],
1122
+ "nullable": true
1123
+ },
1124
+ "id": {
1125
+ "type": "string"
1126
+ },
1127
+ "lastName": {
1128
+ "type": "string",
1129
+ "nullable": true
1130
+ },
1131
+ "platform": {
1132
+ "type": "string",
1133
+ "nullable": true
1134
+ },
1135
+ "portraitMatchPercent": {
1136
+ "type": "integer",
1137
+ "format": "int32",
1138
+ "nullable": true
1139
+ },
1140
+ "processAdditionalData": {
1141
+ "type": "object",
1142
+ "additionalProperties": {}
1143
+ },
1144
+ "reasons": {
1145
+ "type": "array",
1146
+ "items": {
1147
+ "$ref": "#/components/schemas/DvReason"
1148
+ }
1149
+ },
1150
+ "status": {
1151
+ "$ref": "#/components/schemas/ResultStatus"
1152
+ },
1153
+ "updatedAt": {
1154
+ "type": "string",
1155
+ "format": "date-time",
1156
+ "nullable": true
1157
+ },
1158
+ "verificationRequestId": {
1159
+ "type": "string",
1160
+ "nullable": true
1161
+ }
1162
+ }
1163
+ },
1164
+ "ErrorTags": {
1165
+ "type": "string",
1166
+ "enum": [
1167
+ "unexpected",
1168
+ "bad_request",
1169
+ "permission_denied",
1170
+ "request_deserialization",
1171
+ "database",
1172
+ "invalid_email_or_password",
1173
+ "user_not_confirmed",
1174
+ "verify_password",
1175
+ "send_email",
1176
+ "open_session",
1177
+ "read_session",
1178
+ "close_session",
1179
+ "authentication_request_not_found",
1180
+ "invalid_magic_link",
1181
+ "user_disabled",
1182
+ "invalid_verify_link",
1183
+ "missing_authorization_header",
1184
+ "invalid_authorization_header",
1185
+ "token_generation",
1186
+ "user_not_found",
1187
+ "authentication_request_expired",
1188
+ "authentication_request_already_used",
1189
+ "verification_session_expired",
1190
+ "email_already_taken",
1191
+ "invalid_invite",
1192
+ "wrong_invite_user",
1193
+ "invite_not_found",
1194
+ "email_already_verified",
1195
+ "flow_not_found",
1196
+ "organization_not_found",
1197
+ "storage",
1198
+ "verification_request_not_found",
1199
+ "document_reader",
1200
+ "websocket",
1201
+ "organization_settings_not_found",
1202
+ "start_job",
1203
+ "result_not_found",
1204
+ "kyc_grant_not_found",
1205
+ "document_not_found",
1206
+ "service_invocation",
1207
+ "trigger_webhook",
1208
+ "too_many_invites",
1209
+ "invite_already_used",
1210
+ "invite_revoked",
1211
+ "invite_expired",
1212
+ "form_not_found",
1213
+ "form_in_use",
1214
+ "flow_step_configuration_not_found",
1215
+ "organization_product_not_active",
1216
+ "identity_not_found",
1217
+ "step_order_violation",
1218
+ "serialization",
1219
+ "mock_data",
1220
+ "api_key_not_found",
1221
+ "not_implemented",
1222
+ "access_grant",
1223
+ "rate_limit_exceeded",
1224
+ "missing_api_key",
1225
+ "invalid_api_key",
1226
+ "origin_not_allowed",
1227
+ "step_already_completed"
1228
+ ]
1229
+ },
1230
+ "FilterOperator": {
1231
+ "type": "string",
1232
+ "enum": [
1233
+ "unfiltered",
1234
+ "in",
1235
+ "equals",
1236
+ "not-in",
1237
+ "not-equals",
1238
+ "contains"
1239
+ ]
1240
+ },
1241
+ "Flow": {
1242
+ "type": "object",
1243
+ "required": [
1244
+ "id",
1245
+ "name",
1246
+ "slug",
1247
+ "webhookUrl",
1248
+ "successUrl",
1249
+ "extendedWebhook",
1250
+ "steps"
1251
+ ],
1252
+ "properties": {
1253
+ "createdAt": {
1254
+ "type": "string",
1255
+ "format": "date-time",
1256
+ "nullable": true
1257
+ },
1258
+ "extendedWebhook": {
1259
+ "type": "boolean"
1260
+ },
1261
+ "id": {
1262
+ "type": "string"
1263
+ },
1264
+ "name": {
1265
+ "type": "string"
1266
+ },
1267
+ "slug": {
1268
+ "type": "string"
1269
+ },
1270
+ "steps": {
1271
+ "type": "array",
1272
+ "items": {
1273
+ "$ref": "#/components/schemas/FlowStep"
1274
+ }
1275
+ },
1276
+ "successUrl": {
1277
+ "type": "string"
1278
+ },
1279
+ "updatedAt": {
1280
+ "type": "string",
1281
+ "format": "date-time",
1282
+ "nullable": true
1283
+ },
1284
+ "webhookUrl": {
1285
+ "type": "string"
1286
+ }
1287
+ }
1288
+ },
1289
+ "FlowResult": {
1290
+ "type": "object",
1291
+ "required": [
1292
+ "id",
1293
+ "organizationId",
1294
+ "flowSlug",
1295
+ "dvResults",
1296
+ "poaResults",
1297
+ "amlResults",
1298
+ "formResults",
1299
+ "kybResults",
1300
+ "spidResults",
1301
+ "customData"
1302
+ ],
1303
+ "properties": {
1304
+ "amlResults": {
1305
+ "type": "array",
1306
+ "items": {
1307
+ "$ref": "#/components/schemas/AmlResult"
1308
+ }
1309
+ },
1310
+ "createdAt": {
1311
+ "type": "string",
1312
+ "format": "date-time",
1313
+ "nullable": true
1314
+ },
1315
+ "customData": {
1316
+ "type": "object",
1317
+ "additionalProperties": {}
1318
+ },
1319
+ "dvResults": {
1320
+ "type": "array",
1321
+ "items": {
1322
+ "$ref": "#/components/schemas/DvResult"
1323
+ }
1324
+ },
1325
+ "flow": {
1326
+ "allOf": [
1327
+ {
1328
+ "$ref": "#/components/schemas/Flow"
1329
+ }
1330
+ ],
1331
+ "nullable": true
1332
+ },
1333
+ "flowSlug": {
1334
+ "type": "string"
1335
+ },
1336
+ "formResults": {
1337
+ "type": "array",
1338
+ "items": {
1339
+ "$ref": "#/components/schemas/FormResult"
1340
+ }
1341
+ },
1342
+ "id": {
1343
+ "type": "string"
1344
+ },
1345
+ "identity": {
1346
+ "allOf": [
1347
+ {
1348
+ "$ref": "#/components/schemas/Identity"
1349
+ }
1350
+ ],
1351
+ "nullable": true
1352
+ },
1353
+ "kybResults": {
1354
+ "type": "array",
1355
+ "items": {
1356
+ "$ref": "#/components/schemas/KybResult"
1357
+ }
1358
+ },
1359
+ "organization": {
1360
+ "allOf": [
1361
+ {
1362
+ "$ref": "#/components/schemas/Organization"
1363
+ }
1364
+ ],
1365
+ "nullable": true
1366
+ },
1367
+ "organizationId": {
1368
+ "type": "string"
1369
+ },
1370
+ "poaResults": {
1371
+ "type": "array",
1372
+ "items": {
1373
+ "$ref": "#/components/schemas/PoaResult"
1374
+ }
1375
+ },
1376
+ "spidResults": {
1377
+ "type": "array",
1378
+ "items": {
1379
+ "$ref": "#/components/schemas/SpidResult"
1380
+ }
1381
+ },
1382
+ "updatedAt": {
1383
+ "type": "string",
1384
+ "format": "date-time",
1385
+ "nullable": true
1386
+ }
1387
+ }
1388
+ },
1389
+ "FlowStep": {
1390
+ "oneOf": [
1391
+ {
1392
+ "type": "object",
1393
+ "required": [
1394
+ "id",
1395
+ "name",
1396
+ "slug",
1397
+ "config",
1398
+ "flowId",
1399
+ "order",
1400
+ "type"
1401
+ ],
1402
+ "properties": {
1403
+ "config": {
1404
+ "$ref": "#/components/schemas/DvConfig"
1405
+ },
1406
+ "createdAt": {
1407
+ "type": "string",
1408
+ "format": "date-time",
1409
+ "nullable": true
1410
+ },
1411
+ "flowId": {
1412
+ "type": "string"
1413
+ },
1414
+ "gotoStepId": {
1415
+ "type": "string",
1416
+ "nullable": true
1417
+ },
1418
+ "id": {
1419
+ "type": "string"
1420
+ },
1421
+ "name": {
1422
+ "type": "string"
1423
+ },
1424
+ "order": {
1425
+ "type": "integer",
1426
+ "format": "int32"
1427
+ },
1428
+ "slug": {
1429
+ "type": "string"
1430
+ },
1431
+ "successUrl": {
1432
+ "type": "string",
1433
+ "nullable": true
1434
+ },
1435
+ "type": {
1436
+ "type": "string",
1437
+ "enum": [
1438
+ "DV"
1439
+ ]
1440
+ },
1441
+ "updatedAt": {
1442
+ "type": "string",
1443
+ "format": "date-time",
1444
+ "nullable": true
1445
+ }
1446
+ }
1447
+ },
1448
+ {
1449
+ "type": "object",
1450
+ "required": [
1451
+ "id",
1452
+ "name",
1453
+ "slug",
1454
+ "config",
1455
+ "flowId",
1456
+ "order",
1457
+ "type"
1458
+ ],
1459
+ "properties": {
1460
+ "config": {
1461
+ "$ref": "#/components/schemas/FormConfig"
1462
+ },
1463
+ "createdAt": {
1464
+ "type": "string",
1465
+ "format": "date-time",
1466
+ "nullable": true
1467
+ },
1468
+ "flowId": {
1469
+ "type": "string"
1470
+ },
1471
+ "gotoStepId": {
1472
+ "type": "string",
1473
+ "nullable": true
1474
+ },
1475
+ "id": {
1476
+ "type": "string"
1477
+ },
1478
+ "name": {
1479
+ "type": "string"
1480
+ },
1481
+ "order": {
1482
+ "type": "integer",
1483
+ "format": "int32"
1484
+ },
1485
+ "slug": {
1486
+ "type": "string"
1487
+ },
1488
+ "successUrl": {
1489
+ "type": "string",
1490
+ "nullable": true
1491
+ },
1492
+ "type": {
1493
+ "type": "string",
1494
+ "enum": [
1495
+ "FORM"
1496
+ ]
1497
+ },
1498
+ "updatedAt": {
1499
+ "type": "string",
1500
+ "format": "date-time",
1501
+ "nullable": true
1502
+ }
1503
+ }
1504
+ },
1505
+ {
1506
+ "type": "object",
1507
+ "required": [
1508
+ "id",
1509
+ "name",
1510
+ "slug",
1511
+ "config",
1512
+ "flowId",
1513
+ "order",
1514
+ "type"
1515
+ ],
1516
+ "properties": {
1517
+ "config": {
1518
+ "$ref": "#/components/schemas/PoaConfig"
1519
+ },
1520
+ "createdAt": {
1521
+ "type": "string",
1522
+ "format": "date-time",
1523
+ "nullable": true
1524
+ },
1525
+ "flowId": {
1526
+ "type": "string"
1527
+ },
1528
+ "gotoStepId": {
1529
+ "type": "string",
1530
+ "nullable": true
1531
+ },
1532
+ "id": {
1533
+ "type": "string"
1534
+ },
1535
+ "name": {
1536
+ "type": "string"
1537
+ },
1538
+ "order": {
1539
+ "type": "integer",
1540
+ "format": "int32"
1541
+ },
1542
+ "slug": {
1543
+ "type": "string"
1544
+ },
1545
+ "successUrl": {
1546
+ "type": "string",
1547
+ "nullable": true
1548
+ },
1549
+ "type": {
1550
+ "type": "string",
1551
+ "enum": [
1552
+ "POA"
1553
+ ]
1554
+ },
1555
+ "updatedAt": {
1556
+ "type": "string",
1557
+ "format": "date-time",
1558
+ "nullable": true
1559
+ }
1560
+ }
1561
+ },
1562
+ {
1563
+ "type": "object",
1564
+ "required": [
1565
+ "id",
1566
+ "name",
1567
+ "slug",
1568
+ "config",
1569
+ "flowId",
1570
+ "order",
1571
+ "type"
1572
+ ],
1573
+ "properties": {
1574
+ "config": {
1575
+ "$ref": "#/components/schemas/KybConfig"
1576
+ },
1577
+ "createdAt": {
1578
+ "type": "string",
1579
+ "format": "date-time",
1580
+ "nullable": true
1581
+ },
1582
+ "flowId": {
1583
+ "type": "string"
1584
+ },
1585
+ "gotoStepId": {
1586
+ "type": "string",
1587
+ "nullable": true
1588
+ },
1589
+ "id": {
1590
+ "type": "string"
1591
+ },
1592
+ "name": {
1593
+ "type": "string"
1594
+ },
1595
+ "order": {
1596
+ "type": "integer",
1597
+ "format": "int32"
1598
+ },
1599
+ "slug": {
1600
+ "type": "string"
1601
+ },
1602
+ "successUrl": {
1603
+ "type": "string",
1604
+ "nullable": true
1605
+ },
1606
+ "type": {
1607
+ "type": "string",
1608
+ "enum": [
1609
+ "KYB"
1610
+ ]
1611
+ },
1612
+ "updatedAt": {
1613
+ "type": "string",
1614
+ "format": "date-time",
1615
+ "nullable": true
1616
+ }
1617
+ }
1618
+ },
1619
+ {
1620
+ "type": "object",
1621
+ "required": [
1622
+ "id",
1623
+ "name",
1624
+ "slug",
1625
+ "config",
1626
+ "flowId",
1627
+ "order",
1628
+ "type"
1629
+ ],
1630
+ "properties": {
1631
+ "config": {
1632
+ "$ref": "#/components/schemas/SpidConfig"
1633
+ },
1634
+ "createdAt": {
1635
+ "type": "string",
1636
+ "format": "date-time",
1637
+ "nullable": true
1638
+ },
1639
+ "flowId": {
1640
+ "type": "string"
1641
+ },
1642
+ "gotoStepId": {
1643
+ "type": "string",
1644
+ "nullable": true
1645
+ },
1646
+ "id": {
1647
+ "type": "string"
1648
+ },
1649
+ "name": {
1650
+ "type": "string"
1651
+ },
1652
+ "order": {
1653
+ "type": "integer",
1654
+ "format": "int32"
1655
+ },
1656
+ "slug": {
1657
+ "type": "string"
1658
+ },
1659
+ "successUrl": {
1660
+ "type": "string",
1661
+ "nullable": true
1662
+ },
1663
+ "type": {
1664
+ "type": "string",
1665
+ "enum": [
1666
+ "SPID"
1667
+ ]
1668
+ },
1669
+ "updatedAt": {
1670
+ "type": "string",
1671
+ "format": "date-time",
1672
+ "nullable": true
1673
+ }
1674
+ }
1675
+ }
1676
+ ],
1677
+ "discriminator": {
1678
+ "propertyName": "type"
1679
+ }
1680
+ },
1681
+ "FlowStepConfig": {
1682
+ "oneOf": [
1683
+ {
1684
+ "$ref": "#/components/schemas/DvConfig"
1685
+ },
1686
+ {
1687
+ "$ref": "#/components/schemas/FormConfig"
1688
+ },
1689
+ {
1690
+ "$ref": "#/components/schemas/PoaConfig"
1691
+ },
1692
+ {
1693
+ "$ref": "#/components/schemas/KybConfig"
1694
+ },
1695
+ {
1696
+ "$ref": "#/components/schemas/SpidConfig"
1697
+ }
1698
+ ]
1699
+ },
1700
+ "Form": {
1701
+ "type": "object",
1702
+ "required": [
1703
+ "id",
1704
+ "organizationId",
1705
+ "name",
1706
+ "sections"
1707
+ ],
1708
+ "properties": {
1709
+ "createdAt": {
1710
+ "type": "string",
1711
+ "format": "date-time",
1712
+ "nullable": true
1713
+ },
1714
+ "description": {
1715
+ "type": "string",
1716
+ "nullable": true
1717
+ },
1718
+ "id": {
1719
+ "type": "string"
1720
+ },
1721
+ "name": {
1722
+ "type": "string"
1723
+ },
1724
+ "organizationId": {
1725
+ "type": "string"
1726
+ },
1727
+ "sections": {
1728
+ "type": "array",
1729
+ "items": {
1730
+ "$ref": "#/components/schemas/FormSection"
1731
+ }
1732
+ },
1733
+ "updatedAt": {
1734
+ "type": "string",
1735
+ "format": "date-time",
1736
+ "nullable": true
1737
+ }
1738
+ }
1739
+ },
1740
+ "FormAnswerSection": {
1741
+ "type": "object",
1742
+ "required": [
1743
+ "name",
1744
+ "answers"
1745
+ ],
1746
+ "properties": {
1747
+ "answers": {
1748
+ "type": "object",
1749
+ "additionalProperties": {}
1750
+ },
1751
+ "name": {
1752
+ "type": "string"
1753
+ }
1754
+ }
1755
+ },
1756
+ "FormConfig": {
1757
+ "type": "object",
1758
+ "required": [
1759
+ "formId"
1760
+ ],
1761
+ "properties": {
1762
+ "form": {
1763
+ "allOf": [
1764
+ {
1765
+ "$ref": "#/components/schemas/Form"
1766
+ }
1767
+ ],
1768
+ "nullable": true
1769
+ },
1770
+ "formId": {
1771
+ "type": "string"
1772
+ },
1773
+ "labels": {
1774
+ "type": "object",
1775
+ "additionalProperties": {
1776
+ "type": "string"
1777
+ },
1778
+ "example": "{ \"default\": \"Next step\" }"
1779
+ }
1780
+ }
1781
+ },
1782
+ "FormItem": {
1783
+ "oneOf": [
1784
+ {
1785
+ "type": "object",
1786
+ "required": [
1787
+ "type",
1788
+ "content"
1789
+ ],
1790
+ "properties": {
1791
+ "content": {
1792
+ "$ref": "#/components/schemas/InputField"
1793
+ },
1794
+ "type": {
1795
+ "type": "string",
1796
+ "enum": [
1797
+ "InputField"
1798
+ ]
1799
+ }
1800
+ }
1801
+ },
1802
+ {
1803
+ "type": "object",
1804
+ "required": [
1805
+ "type",
1806
+ "content"
1807
+ ],
1808
+ "properties": {
1809
+ "content": {
1810
+ "$ref": "#/components/schemas/Plaintext"
1811
+ },
1812
+ "type": {
1813
+ "type": "string",
1814
+ "enum": [
1815
+ "Plaintext"
1816
+ ]
1817
+ }
1818
+ }
1819
+ },
1820
+ {
1821
+ "type": "object",
1822
+ "required": [
1823
+ "type"
1824
+ ],
1825
+ "properties": {
1826
+ "type": {
1827
+ "type": "string",
1828
+ "enum": [
1829
+ "Separator"
1830
+ ]
1831
+ }
1832
+ }
1833
+ }
1834
+ ],
1835
+ "discriminator": {
1836
+ "propertyName": "type"
1837
+ }
1838
+ },
1839
+ "FormReason": {
1840
+ "type": "string",
1841
+ "enum": [
1842
+ "UNKNOWN"
1843
+ ]
1844
+ },
1845
+ "FormResult": {
1846
+ "type": "object",
1847
+ "required": [
1848
+ "id",
1849
+ "flowResultId",
1850
+ "status",
1851
+ "sections"
1852
+ ],
1853
+ "properties": {
1854
+ "createdAt": {
1855
+ "type": "string",
1856
+ "format": "date-time",
1857
+ "nullable": true
1858
+ },
1859
+ "flowResultId": {
1860
+ "type": "string"
1861
+ },
1862
+ "flowStep": {
1863
+ "allOf": [
1864
+ {
1865
+ "$ref": "#/components/schemas/FlowStep"
1866
+ }
1867
+ ],
1868
+ "nullable": true
1869
+ },
1870
+ "flowStepId": {
1871
+ "type": "string",
1872
+ "nullable": true
1873
+ },
1874
+ "form": {
1875
+ "allOf": [
1876
+ {
1877
+ "$ref": "#/components/schemas/Form"
1878
+ }
1879
+ ],
1880
+ "nullable": true
1881
+ },
1882
+ "id": {
1883
+ "type": "string"
1884
+ },
1885
+ "reason": {
1886
+ "allOf": [
1887
+ {
1888
+ "$ref": "#/components/schemas/FormReason"
1889
+ }
1890
+ ],
1891
+ "nullable": true
1892
+ },
1893
+ "sections": {
1894
+ "type": "array",
1895
+ "items": {
1896
+ "$ref": "#/components/schemas/FormSection"
1897
+ }
1898
+ },
1899
+ "status": {
1900
+ "$ref": "#/components/schemas/ResultStatus"
1901
+ },
1902
+ "updatedAt": {
1903
+ "type": "string",
1904
+ "format": "date-time",
1905
+ "nullable": true
1906
+ },
1907
+ "verificationRequestId": {
1908
+ "type": "string",
1909
+ "nullable": true
1910
+ }
1911
+ }
1912
+ },
1913
+ "FormSection": {
1914
+ "type": "object",
1915
+ "required": [
1916
+ "name",
1917
+ "label",
1918
+ "items"
1919
+ ],
1920
+ "properties": {
1921
+ "items": {
1922
+ "type": "array",
1923
+ "items": {
1924
+ "$ref": "#/components/schemas/FormItem"
1925
+ }
1926
+ },
1927
+ "label": {
1928
+ "type": "object",
1929
+ "additionalProperties": {
1930
+ "type": "string"
1931
+ }
1932
+ },
1933
+ "name": {
1934
+ "type": "string"
1935
+ }
1936
+ }
1937
+ },
1938
+ "GetApiKeyResponse": {
1939
+ "type": "object",
1940
+ "required": [
1941
+ "apiKey"
1942
+ ],
1943
+ "properties": {
1944
+ "apiKey": {
1945
+ "$ref": "#/components/schemas/ZypheApiKey"
1946
+ }
1947
+ }
1948
+ },
1949
+ "GetFlowResponse": {
1950
+ "type": "object",
1951
+ "required": [
1952
+ "flow"
1953
+ ],
1954
+ "properties": {
1955
+ "flow": {
1956
+ "$ref": "#/components/schemas/Flow"
1957
+ }
1958
+ }
1959
+ },
1960
+ "GetFormResponse": {
1961
+ "type": "object",
1962
+ "required": [
1963
+ "form"
1964
+ ],
1965
+ "properties": {
1966
+ "form": {
1967
+ "$ref": "#/components/schemas/Form"
1968
+ }
1969
+ }
1970
+ },
1971
+ "GetFullFlowResponse": {
1972
+ "type": "object",
1973
+ "required": [
1974
+ "flow",
1975
+ "organizationName",
1976
+ "settings"
1977
+ ],
1978
+ "properties": {
1979
+ "flow": {
1980
+ "$ref": "#/components/schemas/Flow"
1981
+ },
1982
+ "organizationName": {
1983
+ "type": "string"
1984
+ },
1985
+ "settings": {
1986
+ "$ref": "#/components/schemas/Settings"
1987
+ }
1988
+ }
1989
+ },
1990
+ "GetVerificationRequestResponse": {
1991
+ "type": "object",
1992
+ "required": [
1993
+ "verificationRequest",
1994
+ "identity"
1995
+ ],
1996
+ "properties": {
1997
+ "identity": {
1998
+ "$ref": "#/components/schemas/Identity"
1999
+ },
2000
+ "verificationRequest": {
2001
+ "$ref": "#/components/schemas/VerificationRequest"
2002
+ }
2003
+ }
2004
+ },
2005
+ "Identity": {
2006
+ "type": "object",
2007
+ "required": [
2008
+ "id",
2009
+ "zid",
2010
+ "role",
2011
+ "email",
2012
+ "emailVerified",
2013
+ "isActive"
2014
+ ],
2015
+ "properties": {
2016
+ "createdAt": {
2017
+ "type": "string",
2018
+ "format": "date-time",
2019
+ "nullable": true
2020
+ },
2021
+ "defaultOrganizationId": {
2022
+ "type": "string",
2023
+ "nullable": true
2024
+ },
2025
+ "email": {
2026
+ "type": "string"
2027
+ },
2028
+ "emailVerified": {
2029
+ "type": "boolean"
2030
+ },
2031
+ "id": {
2032
+ "type": "string"
2033
+ },
2034
+ "isActive": {
2035
+ "type": "boolean"
2036
+ },
2037
+ "role": {
2038
+ "$ref": "#/components/schemas/Role"
2039
+ },
2040
+ "updatedAt": {
2041
+ "type": "string",
2042
+ "format": "date-time",
2043
+ "nullable": true
2044
+ },
2045
+ "zid": {
2046
+ "type": "string"
2047
+ }
2048
+ }
2049
+ },
2050
+ "Image": {
2051
+ "type": "object",
2052
+ "required": [
2053
+ "value",
2054
+ "pageIndex",
2055
+ "lightIndex",
2056
+ "containerType",
2057
+ "source"
2058
+ ],
2059
+ "properties": {
2060
+ "containerType": {
2061
+ "type": "integer",
2062
+ "format": "int32"
2063
+ },
2064
+ "lightIndex": {
2065
+ "type": "integer",
2066
+ "format": "int64"
2067
+ },
2068
+ "pageIndex": {
2069
+ "type": "integer",
2070
+ "format": "int64"
2071
+ },
2072
+ "source": {
2073
+ "type": "string"
2074
+ },
2075
+ "value": {
2076
+ "type": "string"
2077
+ }
2078
+ }
2079
+ },
2080
+ "InputField": {
2081
+ "type": "object",
2082
+ "required": [
2083
+ "type",
2084
+ "required",
2085
+ "label",
2086
+ "name",
2087
+ "options"
2088
+ ],
2089
+ "properties": {
2090
+ "label": {
2091
+ "type": "object",
2092
+ "additionalProperties": {
2093
+ "type": "string"
2094
+ }
2095
+ },
2096
+ "name": {
2097
+ "type": "string"
2098
+ },
2099
+ "options": {
2100
+ "type": "object",
2101
+ "additionalProperties": {
2102
+ "type": "string"
2103
+ }
2104
+ },
2105
+ "required": {
2106
+ "type": "boolean"
2107
+ },
2108
+ "type": {
2109
+ "$ref": "#/components/schemas/InputFieldType"
2110
+ },
2111
+ "value": {
2112
+ "nullable": true
2113
+ }
2114
+ }
2115
+ },
2116
+ "InputFieldType": {
2117
+ "type": "string",
2118
+ "enum": [
2119
+ "date",
2120
+ "text",
2121
+ "textarea",
2122
+ "checkbox"
2123
+ ]
2124
+ },
2125
+ "KybConfig": {
2126
+ "type": "object",
2127
+ "required": [
2128
+ "kycFlowId"
2129
+ ],
2130
+ "properties": {
2131
+ "kycFlowId": {
2132
+ "type": "string"
2133
+ },
2134
+ "labels": {
2135
+ "type": "object",
2136
+ "additionalProperties": {
2137
+ "type": "string"
2138
+ },
2139
+ "example": "{ \"default\": \"Next step\" }"
2140
+ },
2141
+ "maxFileUploads": {
2142
+ "type": "integer",
2143
+ "format": "int32",
2144
+ "default": "10",
2145
+ "example": "5",
2146
+ "minimum": 0
2147
+ },
2148
+ "maxUbos": {
2149
+ "type": "integer",
2150
+ "format": "int32",
2151
+ "default": "10",
2152
+ "example": "3",
2153
+ "minimum": 0
2154
+ }
2155
+ }
2156
+ },
2157
+ "KybResult": {
2158
+ "type": "object",
2159
+ "required": [
2160
+ "id",
2161
+ "status",
2162
+ "pepAndSanctionsStatus"
2163
+ ],
2164
+ "properties": {
2165
+ "businessInformation": {
2166
+ "allOf": [
2167
+ {
2168
+ "$ref": "#/components/schemas/BusinessInformation"
2169
+ }
2170
+ ],
2171
+ "nullable": true
2172
+ },
2173
+ "createdAt": {
2174
+ "type": "string",
2175
+ "format": "date-time",
2176
+ "nullable": true
2177
+ },
2178
+ "documentUploads": {
2179
+ "type": "array",
2180
+ "items": {
2181
+ "$ref": "#/components/schemas/DocumentUpload"
2182
+ },
2183
+ "nullable": true
2184
+ },
2185
+ "flowStep": {
2186
+ "allOf": [
2187
+ {
2188
+ "$ref": "#/components/schemas/FlowStep"
2189
+ }
2190
+ ],
2191
+ "nullable": true
2192
+ },
2193
+ "id": {
2194
+ "type": "string"
2195
+ },
2196
+ "pepAndSanctionsStatus": {
2197
+ "$ref": "#/components/schemas/PepAndSanctionsStatus"
2198
+ },
2199
+ "reason": {
2200
+ "type": "string",
2201
+ "nullable": true
2202
+ },
2203
+ "report": {
2204
+ "type": "string",
2205
+ "nullable": true
2206
+ },
2207
+ "status": {
2208
+ "$ref": "#/components/schemas/ModerationResultStatus"
2209
+ },
2210
+ "uboDefinitions": {
2211
+ "type": "array",
2212
+ "items": {
2213
+ "$ref": "#/components/schemas/UboDefinition"
2214
+ },
2215
+ "nullable": true
2216
+ },
2217
+ "updatedAt": {
2218
+ "type": "string",
2219
+ "format": "date-time",
2220
+ "nullable": true
2221
+ },
2222
+ "verificationRequestId": {
2223
+ "type": "string",
2224
+ "nullable": true
2225
+ }
2226
+ }
2227
+ },
2228
+ "Locale": {
2229
+ "type": "string",
2230
+ "enum": [
2231
+ "en"
2232
+ ]
2233
+ },
2234
+ "ModerateKybResultPayload": {
2235
+ "type": "object",
2236
+ "properties": {
2237
+ "pepAndSanctionsStatus": {
2238
+ "allOf": [
2239
+ {
2240
+ "$ref": "#/components/schemas/PepAndSanctionsStatusField"
2241
+ }
2242
+ ],
2243
+ "nullable": true
2244
+ },
2245
+ "reportFile": {
2246
+ "type": "string",
2247
+ "format": "binary",
2248
+ "nullable": true
2249
+ },
2250
+ "status": {
2251
+ "allOf": [
2252
+ {
2253
+ "$ref": "#/components/schemas/ModerationResultStatusField"
2254
+ }
2255
+ ],
2256
+ "nullable": true
2257
+ }
2258
+ }
2259
+ },
2260
+ "ModerateKybResultResponse": {
2261
+ "type": "object",
2262
+ "required": [
2263
+ "success"
2264
+ ],
2265
+ "properties": {
2266
+ "success": {
2267
+ "type": "boolean"
2268
+ }
2269
+ }
2270
+ },
2271
+ "ModerationResultStatus": {
2272
+ "type": "string",
2273
+ "enum": [
2274
+ "ACQUIRING",
2275
+ "PENDING_MODERATION",
2276
+ "SUCCESS",
2277
+ "FAILED"
2278
+ ]
2279
+ },
2280
+ "ModerationResultStatusField": {
2281
+ "$ref": "#/components/schemas/ModerationResultStatus"
2282
+ },
2283
+ "Organization": {
2284
+ "type": "object",
2285
+ "required": [
2286
+ "id",
2287
+ "slug",
2288
+ "name",
2289
+ "registrationNumber",
2290
+ "country",
2291
+ "address",
2292
+ "website",
2293
+ "email",
2294
+ "phone"
2295
+ ],
2296
+ "properties": {
2297
+ "address": {
2298
+ "type": "string"
2299
+ },
2300
+ "country": {
2301
+ "type": "string"
2302
+ },
2303
+ "createdAt": {
2304
+ "type": "string",
2305
+ "format": "date-time",
2306
+ "nullable": true
2307
+ },
2308
+ "email": {
2309
+ "type": "string"
2310
+ },
2311
+ "id": {
2312
+ "type": "string"
2313
+ },
2314
+ "industry": {
2315
+ "type": "string",
2316
+ "nullable": true
2317
+ },
2318
+ "name": {
2319
+ "type": "string"
2320
+ },
2321
+ "phone": {
2322
+ "type": "string"
2323
+ },
2324
+ "postcode": {
2325
+ "type": "string",
2326
+ "nullable": true
2327
+ },
2328
+ "registrationNumber": {
2329
+ "type": "string"
2330
+ },
2331
+ "settings": {
2332
+ "allOf": [
2333
+ {
2334
+ "$ref": "#/components/schemas/Settings"
2335
+ }
2336
+ ],
2337
+ "nullable": true
2338
+ },
2339
+ "slug": {
2340
+ "type": "string"
2341
+ },
2342
+ "updatedAt": {
2343
+ "type": "string",
2344
+ "format": "date-time",
2345
+ "nullable": true
2346
+ },
2347
+ "website": {
2348
+ "type": "string"
2349
+ }
2350
+ }
2351
+ },
2352
+ "Pagination": {
2353
+ "type": "object",
2354
+ "properties": {
2355
+ "filter": {
2356
+ "type": "string",
2357
+ "example": "createdAt:in:2025-01-01,2025-01-02;updatedAt:gt:2025-01-02"
2358
+ },
2359
+ "skip": {
2360
+ "type": "integer",
2361
+ "format": "int32",
2362
+ "example": "0",
2363
+ "minimum": 0
2364
+ },
2365
+ "sort": {
2366
+ "type": "string",
2367
+ "example": "createdAt:desc"
2368
+ },
2369
+ "take": {
2370
+ "type": "integer",
2371
+ "format": "int32",
2372
+ "example": "100",
2373
+ "minimum": 0
2374
+ }
2375
+ }
2376
+ },
2377
+ "PepAndSanctionsStatus": {
2378
+ "type": "string",
2379
+ "enum": [
2380
+ "REVIEW",
2381
+ "PENDING",
2382
+ "SUCCESS",
2383
+ "FAILED",
2384
+ "IN_PROGRESS"
2385
+ ]
2386
+ },
2387
+ "PepAndSanctionsStatusField": {
2388
+ "$ref": "#/components/schemas/PepAndSanctionsStatus"
2389
+ },
2390
+ "PersonalData": {
2391
+ "type": "object",
2392
+ "required": [
2393
+ "givenName",
2394
+ "surname",
2395
+ "dateOfBirth",
2396
+ "nationality",
2397
+ "gender"
2398
+ ],
2399
+ "properties": {
2400
+ "dateOfBirth": {
2401
+ "type": "string"
2402
+ },
2403
+ "gender": {
2404
+ "type": "string"
2405
+ },
2406
+ "givenName": {
2407
+ "type": "string"
2408
+ },
2409
+ "nationality": {
2410
+ "type": "string"
2411
+ },
2412
+ "personalNumber": {
2413
+ "type": "string"
2414
+ },
2415
+ "placeOfBirth": {
2416
+ "type": "string"
2417
+ },
2418
+ "surname": {
2419
+ "type": "string"
2420
+ }
2421
+ }
2422
+ },
2423
+ "Plaintext": {
2424
+ "type": "object",
2425
+ "required": [
2426
+ "text"
2427
+ ],
2428
+ "properties": {
2429
+ "text": {
2430
+ "type": "object",
2431
+ "additionalProperties": {
2432
+ "type": "string"
2433
+ }
2434
+ }
2435
+ }
2436
+ },
2437
+ "PoaConfig": {
2438
+ "type": "object",
2439
+ "required": [
2440
+ "documentFilter"
2441
+ ],
2442
+ "properties": {
2443
+ "documentFilter": {
2444
+ "type": "array",
2445
+ "items": {
2446
+ "$ref": "#/components/schemas/PoaDocumentType"
2447
+ }
2448
+ },
2449
+ "labels": {
2450
+ "type": "object",
2451
+ "additionalProperties": {
2452
+ "type": "string"
2453
+ },
2454
+ "example": "{ \"default\": \"Next step\" }"
2455
+ },
2456
+ "maxAgeDays": {
2457
+ "type": "integer",
2458
+ "format": "int32",
2459
+ "example": "90",
2460
+ "minimum": 0
2461
+ }
2462
+ }
2463
+ },
2464
+ "PoaDocumentType": {
2465
+ "type": "string",
2466
+ "enum": [
2467
+ "PAY_SLIP",
2468
+ "UTILITY_BILL",
2469
+ "FINANCIAL_DOCUMENT",
2470
+ "RECEIPT",
2471
+ "INVOICE",
2472
+ "BANK_DOCUMENT"
2473
+ ]
2474
+ },
2475
+ "PoaReason": {
2476
+ "type": "string",
2477
+ "enum": [
2478
+ "UNKNOWN",
2479
+ "DOCUMENT_TYPE_NOT_ALLOWED",
2480
+ "NAME_MISMATCH",
2481
+ "DATE_TOO_OLD",
2482
+ "INVALID_DOCUMENT"
2483
+ ]
2484
+ },
2485
+ "PoaResult": {
2486
+ "type": "object",
2487
+ "required": [
2488
+ "id",
2489
+ "status",
2490
+ "createdAt",
2491
+ "updatedAt"
2492
+ ],
2493
+ "properties": {
2494
+ "checkedAt": {
2495
+ "type": "string",
2496
+ "format": "date-time",
2497
+ "nullable": true
2498
+ },
2499
+ "createdAt": {
2500
+ "type": "string",
2501
+ "format": "date-time"
2502
+ },
2503
+ "documentId": {
2504
+ "type": "string",
2505
+ "nullable": true
2506
+ },
2507
+ "documentType": {
2508
+ "allOf": [
2509
+ {
2510
+ "$ref": "#/components/schemas/PoaDocumentType"
2511
+ }
2512
+ ],
2513
+ "nullable": true
2514
+ },
2515
+ "flowStep": {
2516
+ "allOf": [
2517
+ {
2518
+ "$ref": "#/components/schemas/FlowStep"
2519
+ }
2520
+ ],
2521
+ "nullable": true
2522
+ },
2523
+ "id": {
2524
+ "type": "string"
2525
+ },
2526
+ "reason": {
2527
+ "allOf": [
2528
+ {
2529
+ "$ref": "#/components/schemas/PoaReason"
2530
+ }
2531
+ ],
2532
+ "nullable": true
2533
+ },
2534
+ "status": {
2535
+ "$ref": "#/components/schemas/ResultStatus"
2536
+ },
2537
+ "updatedAt": {
2538
+ "type": "string",
2539
+ "format": "date-time"
2540
+ },
2541
+ "verificationRequestId": {
2542
+ "type": "string",
2543
+ "nullable": true
2544
+ }
2545
+ }
2546
+ },
2547
+ "ProcessAddressDocumentRequest": {
2548
+ "type": "object",
2549
+ "required": [
2550
+ "file"
2551
+ ],
2552
+ "properties": {
2553
+ "file": {
2554
+ "type": "string",
2555
+ "format": "binary"
2556
+ }
2557
+ }
2558
+ },
2559
+ "ProcessAddressDocumentResponse": {
2560
+ "type": "object",
2561
+ "required": [
2562
+ "verificationRequestId",
2563
+ "jobId",
2564
+ "websocketNamespace"
2565
+ ],
2566
+ "properties": {
2567
+ "jobId": {
2568
+ "type": "string"
2569
+ },
2570
+ "verificationRequestId": {
2571
+ "type": "string"
2572
+ },
2573
+ "websocketNamespace": {
2574
+ "type": "string"
2575
+ }
2576
+ }
2577
+ },
2578
+ "ProductType": {
2579
+ "type": "string",
2580
+ "enum": [
2581
+ "UNKNOWN",
2582
+ "KYC",
2583
+ "KYB",
2584
+ "PRODUCTION_MODE",
2585
+ "SPID"
2586
+ ]
2587
+ },
2588
+ "ResultStatus": {
2589
+ "type": "string",
2590
+ "enum": [
2591
+ "PASSED",
2592
+ "FAILED"
2593
+ ]
2594
+ },
2595
+ "Role": {
2596
+ "type": "string",
2597
+ "enum": [
2598
+ "GUEST",
2599
+ "USER",
2600
+ "ADMIN"
2601
+ ]
2602
+ },
2603
+ "SdkCreateVerificationRequestPayload": {
2604
+ "type": "object",
2605
+ "required": [
2606
+ "email",
2607
+ "flowStepId"
2608
+ ],
2609
+ "properties": {
2610
+ "customData": {
2611
+ "type": "object",
2612
+ "additionalProperties": {},
2613
+ "nullable": true
2614
+ },
2615
+ "email": {
2616
+ "type": "string"
2617
+ },
2618
+ "flowStepId": {
2619
+ "type": "string"
2620
+ }
2621
+ }
2622
+ },
2623
+ "SdkCreateVerificationRequestResponse": {
2624
+ "type": "object",
2625
+ "required": [
2626
+ "websocketNamespace",
2627
+ "verificationRequest",
2628
+ "zypheToken",
2629
+ "email",
2630
+ "isSandbox",
2631
+ "flowSlug",
2632
+ "flowStepSlug"
2633
+ ],
2634
+ "properties": {
2635
+ "email": {
2636
+ "type": "string"
2637
+ },
2638
+ "flowSlug": {
2639
+ "type": "string"
2640
+ },
2641
+ "flowStepSlug": {
2642
+ "type": "string"
2643
+ },
2644
+ "isSandbox": {
2645
+ "type": "boolean"
2646
+ },
2647
+ "verificationRequest": {
2648
+ "$ref": "#/components/schemas/VerificationRequest"
2649
+ },
2650
+ "websocketNamespace": {
2651
+ "type": "string"
2652
+ },
2653
+ "zypheToken": {
2654
+ "type": "string"
2655
+ }
2656
+ }
2657
+ },
2658
+ "Settings": {
2659
+ "type": "object",
2660
+ "properties": {
2661
+ "createdAt": {
2662
+ "type": "string",
2663
+ "format": "date-time",
2664
+ "nullable": true
2665
+ },
2666
+ "extendedWebhook": {
2667
+ "type": "boolean",
2668
+ "nullable": true
2669
+ },
2670
+ "primaryColor": {
2671
+ "type": "string",
2672
+ "nullable": true
2673
+ },
2674
+ "profileImage": {
2675
+ "type": "string",
2676
+ "nullable": true
2677
+ },
2678
+ "secondaryColor": {
2679
+ "type": "string",
2680
+ "nullable": true
2681
+ },
2682
+ "updatedAt": {
2683
+ "type": "string",
2684
+ "format": "date-time",
2685
+ "nullable": true
2686
+ },
2687
+ "webhookSecret": {
2688
+ "type": "string",
2689
+ "nullable": true
2690
+ }
2691
+ }
2692
+ },
2693
+ "SpidConfig": {
2694
+ "type": "object",
2695
+ "properties": {
2696
+ "labels": {
2697
+ "type": "object",
2698
+ "additionalProperties": {
2699
+ "type": "string"
2700
+ },
2701
+ "example": "{ \"default\": \"Next step\" }"
2702
+ }
2703
+ }
2704
+ },
2705
+ "SpidResult": {
2706
+ "type": "object",
2707
+ "required": [
2708
+ "id",
2709
+ "status",
2710
+ "path"
2711
+ ],
2712
+ "properties": {
2713
+ "createdAt": {
2714
+ "type": "string",
2715
+ "format": "date-time",
2716
+ "nullable": true
2717
+ },
2718
+ "flowStep": {
2719
+ "allOf": [
2720
+ {
2721
+ "$ref": "#/components/schemas/FlowStep"
2722
+ }
2723
+ ],
2724
+ "nullable": true
2725
+ },
2726
+ "id": {
2727
+ "type": "string"
2728
+ },
2729
+ "path": {
2730
+ "type": "string"
2731
+ },
2732
+ "reason": {
2733
+ "type": "string",
2734
+ "nullable": true
2735
+ },
2736
+ "status": {
2737
+ "$ref": "#/components/schemas/ResultStatus"
2738
+ },
2739
+ "updatedAt": {
2740
+ "type": "string",
2741
+ "format": "date-time",
2742
+ "nullable": true
2743
+ },
2744
+ "verificationRequestId": {
2745
+ "type": "string",
2746
+ "nullable": true
2747
+ }
2748
+ }
2749
+ },
2750
+ "SpidResultDetails": {
2751
+ "type": "object",
2752
+ "properties": {
2753
+ "address": {
2754
+ "type": "string",
2755
+ "nullable": true
2756
+ },
2757
+ "companyName": {
2758
+ "type": "string",
2759
+ "nullable": true
2760
+ },
2761
+ "companyVatNumber": {
2762
+ "type": "string",
2763
+ "nullable": true
2764
+ },
2765
+ "countryOfBirth": {
2766
+ "type": "string",
2767
+ "nullable": true
2768
+ },
2769
+ "dateOfBirth": {
2770
+ "type": "string",
2771
+ "nullable": true
2772
+ },
2773
+ "digitalAddress": {
2774
+ "type": "string",
2775
+ "nullable": true
2776
+ },
2777
+ "email": {
2778
+ "type": "string",
2779
+ "nullable": true
2780
+ },
2781
+ "firstName": {
2782
+ "type": "string",
2783
+ "nullable": true
2784
+ },
2785
+ "fiscalNumber": {
2786
+ "type": "string",
2787
+ "nullable": true
2788
+ },
2789
+ "fullName": {
2790
+ "type": "string",
2791
+ "nullable": true
2792
+ },
2793
+ "gender": {
2794
+ "type": "string",
2795
+ "nullable": true
2796
+ },
2797
+ "id": {
2798
+ "type": "string",
2799
+ "nullable": true
2800
+ },
2801
+ "lastName": {
2802
+ "type": "string",
2803
+ "nullable": true
2804
+ },
2805
+ "mobilePhone": {
2806
+ "type": "string",
2807
+ "nullable": true
2808
+ },
2809
+ "placeOfBirth": {
2810
+ "type": "string",
2811
+ "nullable": true
2812
+ },
2813
+ "registeredOffice": {
2814
+ "type": "string",
2815
+ "nullable": true
2816
+ },
2817
+ "spidCode": {
2818
+ "type": "string",
2819
+ "nullable": true
2820
+ },
2821
+ "username": {
2822
+ "type": "string",
2823
+ "nullable": true
2824
+ }
2825
+ }
2826
+ },
2827
+ "UboDefinition": {
2828
+ "type": "object",
2829
+ "required": [
2830
+ "emailAddress",
2831
+ "firstName",
2832
+ "lastName",
2833
+ "dateOfBirth",
2834
+ "country",
2835
+ "gender"
2836
+ ],
2837
+ "properties": {
2838
+ "country": {
2839
+ "type": "string"
2840
+ },
2841
+ "dateOfBirth": {
2842
+ "type": "string"
2843
+ },
2844
+ "emailAddress": {
2845
+ "type": "string"
2846
+ },
2847
+ "firstName": {
2848
+ "type": "string"
2849
+ },
2850
+ "gender": {
2851
+ "type": "string"
2852
+ },
2853
+ "lastName": {
2854
+ "type": "string"
2855
+ }
2856
+ }
2857
+ },
2858
+ "ValidationMessages": {
2859
+ "type": "string",
2860
+ "enum": [
2861
+ "validation_unexpected",
2862
+ "validation_invalid_file_format",
2863
+ "validation_organization_slug_exists",
2864
+ "validation_flow_slug_exists",
2865
+ "validation_flow_id_mismatch",
2866
+ "validation_flow_step_name_exists",
2867
+ "validation_consents_not_granted",
2868
+ "validation_kyb_config_match",
2869
+ "validation_kyb_config_already_uses_this_kyc_flow_id",
2870
+ "validation_kyb_moderation_status_wrong",
2871
+ "validation_form_name_exists",
2872
+ "validation_database_error",
2873
+ "validation_flow_name_invalid",
2874
+ "validation_flow_slug_name_invalid",
2875
+ "validation_flow_step_name_invalid",
2876
+ "validation_flow_step_order_duplicate",
2877
+ "validation_flow_step_order_invalid",
2878
+ "validation_flow_step_id_mismatch",
2879
+ "validation_password_too_short",
2880
+ "validation_password_no_uppercase",
2881
+ "validation_password_no_lowercase",
2882
+ "validation_password_no_number",
2883
+ "validation_password_no_special_character",
2884
+ "validation_password_contains_whitespace_or_control"
2885
+ ]
2886
+ },
2887
+ "VerificationRequest": {
2888
+ "type": "object",
2889
+ "required": [
2890
+ "id",
2891
+ "identityId",
2892
+ "flowId",
2893
+ "flowStepId",
2894
+ "organizationId",
2895
+ "customData",
2896
+ "status",
2897
+ "attemptsCount"
2898
+ ],
2899
+ "properties": {
2900
+ "amlResult": {
2901
+ "allOf": [
2902
+ {
2903
+ "$ref": "#/components/schemas/AmlResult"
2904
+ }
2905
+ ],
2906
+ "nullable": true
2907
+ },
2908
+ "attemptsCount": {
2909
+ "type": "integer",
2910
+ "format": "int32"
2911
+ },
2912
+ "createdAt": {
2913
+ "type": "string",
2914
+ "format": "date-time",
2915
+ "nullable": true
2916
+ },
2917
+ "customData": {
2918
+ "type": "object",
2919
+ "additionalProperties": {}
2920
+ },
2921
+ "dvResult": {
2922
+ "allOf": [
2923
+ {
2924
+ "$ref": "#/components/schemas/DvResult"
2925
+ }
2926
+ ],
2927
+ "nullable": true
2928
+ },
2929
+ "flowId": {
2930
+ "type": "string"
2931
+ },
2932
+ "flowStepId": {
2933
+ "type": "string"
2934
+ },
2935
+ "formResult": {
2936
+ "allOf": [
2937
+ {
2938
+ "$ref": "#/components/schemas/FormResult"
2939
+ }
2940
+ ],
2941
+ "nullable": true
2942
+ },
2943
+ "id": {
2944
+ "type": "string"
2945
+ },
2946
+ "identity": {
2947
+ "allOf": [
2948
+ {
2949
+ "$ref": "#/components/schemas/Identity"
2950
+ }
2951
+ ],
2952
+ "nullable": true
2953
+ },
2954
+ "identityId": {
2955
+ "type": "string"
2956
+ },
2957
+ "kybResult": {
2958
+ "allOf": [
2959
+ {
2960
+ "$ref": "#/components/schemas/KybResult"
2961
+ }
2962
+ ],
2963
+ "nullable": true
2964
+ },
2965
+ "organizationId": {
2966
+ "type": "string"
2967
+ },
2968
+ "poaResult": {
2969
+ "allOf": [
2970
+ {
2971
+ "$ref": "#/components/schemas/PoaResult"
2972
+ }
2973
+ ],
2974
+ "nullable": true
2975
+ },
2976
+ "reason": {
2977
+ "type": "string",
2978
+ "nullable": true
2979
+ },
2980
+ "spidResult": {
2981
+ "allOf": [
2982
+ {
2983
+ "$ref": "#/components/schemas/SpidResult"
2984
+ }
2985
+ ],
2986
+ "nullable": true
2987
+ },
2988
+ "status": {
2989
+ "$ref": "#/components/schemas/VerificationRequestStatus"
2990
+ },
2991
+ "updatedAt": {
2992
+ "type": "string",
2993
+ "format": "date-time",
2994
+ "nullable": true
2995
+ }
2996
+ }
2997
+ },
2998
+ "VerificationRequestStatus": {
2999
+ "type": "string",
3000
+ "enum": [
3001
+ "PENDING",
3002
+ "COMPLETED",
3003
+ "FAILED",
3004
+ "CANCELLED",
3005
+ "QUEUED",
3006
+ "PROCESSING"
3007
+ ]
3008
+ },
3009
+ "ZypheApiKey": {
3010
+ "type": "object",
3011
+ "required": [
3012
+ "id",
3013
+ "organizationId",
3014
+ "key",
3015
+ "keyType",
3016
+ "allowedOrigins",
3017
+ "options"
3018
+ ],
3019
+ "properties": {
3020
+ "allowedOrigins": {
3021
+ "type": "array",
3022
+ "items": {
3023
+ "type": "string"
3024
+ }
3025
+ },
3026
+ "createdAt": {
3027
+ "type": "string",
3028
+ "format": "date-time",
3029
+ "nullable": true
3030
+ },
3031
+ "description": {
3032
+ "type": "string",
3033
+ "nullable": true
3034
+ },
3035
+ "id": {
3036
+ "type": "string"
3037
+ },
3038
+ "key": {
3039
+ "type": "string"
3040
+ },
3041
+ "keyType": {
3042
+ "type": "string"
3043
+ },
3044
+ "name": {
3045
+ "type": "string",
3046
+ "nullable": true
3047
+ },
3048
+ "options": {
3049
+ "type": "object",
3050
+ "additionalProperties": {}
3051
+ },
3052
+ "organization": {
3053
+ "allOf": [
3054
+ {
3055
+ "$ref": "#/components/schemas/Organization"
3056
+ }
3057
+ ],
3058
+ "nullable": true
3059
+ },
3060
+ "organizationId": {
3061
+ "type": "string"
3062
+ },
3063
+ "updatedAt": {
3064
+ "type": "string",
3065
+ "format": "date-time",
3066
+ "nullable": true
3067
+ }
3068
+ }
3069
+ }
3070
+ },
3071
+ "securitySchemes": {
3072
+ "jwt-auth": {
3073
+ "type": "apiKey",
3074
+ "in": "header",
3075
+ "name": "authorization",
3076
+ "description": "Set the token string including the 'Bearer ' prefix."
3077
+ },
3078
+ "x-api-key": {
3079
+ "type": "apiKey",
3080
+ "in": "header",
3081
+ "name": "x-api-key",
3082
+ "description": "Set your API key in the x-api-key header."
3083
+ }
3084
+ }
3085
+ },
3086
+ "tags": [
3087
+ {
3088
+ "name": "SDK"
3089
+ },
3090
+ {
3091
+ "name": "API Keys"
3092
+ }
3093
+ ]
3094
+ }