@zyphe-sdk/core 0.7.0 → 0.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/openapi.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "info": {
4
4
  "title": "zyphe-sdk",
5
5
  "description": "",
6
- "version": "3.2.0"
6
+ "version": "3.9.0"
7
7
  },
8
8
  "paths": {
9
9
  "/flows/{slug}/fullflow": {
@@ -923,7 +923,104 @@
923
923
  },
924
924
  "security": [
925
925
  {
926
- "api-key": []
926
+ "x-api-key": []
927
+ }
928
+ ]
929
+ }
930
+ },
931
+ "/sdk/organizations/{organization_id}/flow-results/search": {
932
+ "post": {
933
+ "tags": [
934
+ "SDK: Organizations"
935
+ ],
936
+ "summary": "Search flow results",
937
+ "description": "Tells whether a user passed a verification. Looks flow results up by the user's email, by the\ncustom data attached when the verification request was created, or by both, and returns the\nstatus of each match, most recently updated first. `passed` is `true` once the user completed\nthe flow successfully.\n\nAt least one of `email` and `customData` is required. A user who never started a verification\ngives an empty page.",
938
+ "operationId": "searchFlowResults",
939
+ "parameters": [
940
+ {
941
+ "name": "organization_id",
942
+ "in": "path",
943
+ "description": "Organization ID",
944
+ "required": true,
945
+ "schema": {
946
+ "type": "string",
947
+ "format": "uuid"
948
+ }
949
+ },
950
+ {
951
+ "name": "sandbox",
952
+ "in": "query",
953
+ "required": true,
954
+ "schema": {
955
+ "type": "boolean"
956
+ },
957
+ "style": "form"
958
+ },
959
+ {
960
+ "name": "locale",
961
+ "in": "query",
962
+ "required": false,
963
+ "schema": {
964
+ "$ref": "#/components/schemas/Locale"
965
+ },
966
+ "style": "form"
967
+ }
968
+ ],
969
+ "requestBody": {
970
+ "content": {
971
+ "application/json": {
972
+ "schema": {
973
+ "$ref": "#/components/schemas/SearchFlowResultsRequest"
974
+ }
975
+ }
976
+ },
977
+ "required": true
978
+ },
979
+ "responses": {
980
+ "200": {
981
+ "description": "",
982
+ "content": {
983
+ "application/json": {
984
+ "schema": {
985
+ "$ref": "#/components/schemas/SearchFlowResultsResponse"
986
+ }
987
+ }
988
+ }
989
+ },
990
+ "400": {
991
+ "description": "",
992
+ "content": {
993
+ "application/json": {
994
+ "schema": {
995
+ "$ref": "#/components/schemas/BaxeError"
996
+ }
997
+ }
998
+ }
999
+ },
1000
+ "401": {
1001
+ "description": "",
1002
+ "content": {
1003
+ "application/json": {
1004
+ "schema": {
1005
+ "$ref": "#/components/schemas/BaxeError"
1006
+ }
1007
+ }
1008
+ }
1009
+ },
1010
+ "500": {
1011
+ "description": "",
1012
+ "content": {
1013
+ "application/json": {
1014
+ "schema": {
1015
+ "$ref": "#/components/schemas/BaxeError"
1016
+ }
1017
+ }
1018
+ }
1019
+ }
1020
+ },
1021
+ "security": [
1022
+ {
1023
+ "x-api-key": []
927
1024
  }
928
1025
  ]
929
1026
  }
@@ -1050,7 +1147,7 @@
1050
1147
  },
1051
1148
  "security": [
1052
1149
  {
1053
- "api-key": []
1150
+ "x-api-key": []
1054
1151
  }
1055
1152
  ]
1056
1153
  }
@@ -1178,7 +1275,7 @@
1178
1275
  "deprecated": true,
1179
1276
  "security": [
1180
1277
  {
1181
- "api-key": []
1278
+ "x-api-key": []
1182
1279
  }
1183
1280
  ]
1184
1281
  }
@@ -1306,7 +1403,7 @@
1306
1403
  "deprecated": true,
1307
1404
  "security": [
1308
1405
  {
1309
- "api-key": []
1406
+ "x-api-key": []
1310
1407
  }
1311
1408
  ]
1312
1409
  }
@@ -1434,7 +1531,7 @@
1434
1531
  "deprecated": true,
1435
1532
  "security": [
1436
1533
  {
1437
- "api-key": []
1534
+ "x-api-key": []
1438
1535
  }
1439
1536
  ]
1440
1537
  }
@@ -1562,7 +1659,7 @@
1562
1659
  "deprecated": true,
1563
1660
  "security": [
1564
1661
  {
1565
- "api-key": []
1662
+ "x-api-key": []
1566
1663
  }
1567
1664
  ]
1568
1665
  }
@@ -1669,7 +1766,7 @@
1669
1766
  },
1670
1767
  "security": [
1671
1768
  {
1672
- "api-key": []
1769
+ "x-api-key": []
1673
1770
  }
1674
1771
  ]
1675
1772
  }
@@ -1796,7 +1893,7 @@
1796
1893
  },
1797
1894
  "security": [
1798
1895
  {
1799
- "api-key": []
1896
+ "x-api-key": []
1800
1897
  }
1801
1898
  ]
1802
1899
  }
@@ -1923,7 +2020,7 @@
1923
2020
  },
1924
2021
  "security": [
1925
2022
  {
1926
- "api-key": []
2023
+ "x-api-key": []
1927
2024
  }
1928
2025
  ]
1929
2026
  }
@@ -2050,7 +2147,7 @@
2050
2147
  },
2051
2148
  "security": [
2052
2149
  {
2053
- "api-key": []
2150
+ "x-api-key": []
2054
2151
  }
2055
2152
  ]
2056
2153
  }
@@ -2177,7 +2274,7 @@
2177
2274
  },
2178
2275
  "security": [
2179
2276
  {
2180
- "api-key": []
2277
+ "x-api-key": []
2181
2278
  }
2182
2279
  ]
2183
2280
  }
@@ -2325,7 +2422,7 @@
2325
2422
  "deprecated": true,
2326
2423
  "security": [
2327
2424
  {
2328
- "api-key": []
2425
+ "x-api-key": []
2329
2426
  }
2330
2427
  ]
2331
2428
  }
@@ -2473,7 +2570,7 @@
2473
2570
  "deprecated": true,
2474
2571
  "security": [
2475
2572
  {
2476
- "api-key": []
2573
+ "x-api-key": []
2477
2574
  }
2478
2575
  ]
2479
2576
  }
@@ -2600,7 +2697,7 @@
2600
2697
  },
2601
2698
  "security": [
2602
2699
  {
2603
- "api-key": []
2700
+ "x-api-key": []
2604
2701
  }
2605
2702
  ]
2606
2703
  }
@@ -2707,7 +2804,129 @@
2707
2804
  },
2708
2805
  "security": [
2709
2806
  {
2710
- "api-key": []
2807
+ "x-api-key": []
2808
+ }
2809
+ ]
2810
+ }
2811
+ },
2812
+ "/sdk/organizations/{organization_id}/kyb-cases/{case_id}/report": {
2813
+ "get": {
2814
+ "tags": [
2815
+ "SDK: KYB"
2816
+ ],
2817
+ "summary": "Download a KYB case's report",
2818
+ "description": "The case's KYB report as a PDF: company, activity, directors, ownership and beneficial owners,\nscreening, adverse media, documents and sources, as the case stands at the time of the request.\nThe report is identified by a hash of its content, returned as `ETag`: send it back as\n`If-None-Match` to get `304` when nothing in the report has changed.",
2819
+ "operationId": "getKybCaseReport",
2820
+ "parameters": [
2821
+ {
2822
+ "name": "organization_id",
2823
+ "in": "path",
2824
+ "description": "Organization ID",
2825
+ "required": true,
2826
+ "schema": {
2827
+ "type": "string",
2828
+ "format": "uuid"
2829
+ }
2830
+ },
2831
+ {
2832
+ "name": "case_id",
2833
+ "in": "path",
2834
+ "description": "The ID of the KYB case",
2835
+ "required": true,
2836
+ "schema": {
2837
+ "type": "string",
2838
+ "format": "uuid"
2839
+ }
2840
+ },
2841
+ {
2842
+ "name": "If-None-Match",
2843
+ "in": "header",
2844
+ "description": "The `ETag` of a report already held",
2845
+ "required": false,
2846
+ "schema": {
2847
+ "type": [
2848
+ "string",
2849
+ "null"
2850
+ ]
2851
+ }
2852
+ },
2853
+ {
2854
+ "name": "sandbox",
2855
+ "in": "query",
2856
+ "required": true,
2857
+ "schema": {
2858
+ "type": "boolean"
2859
+ },
2860
+ "style": "form"
2861
+ },
2862
+ {
2863
+ "name": "locale",
2864
+ "in": "query",
2865
+ "required": false,
2866
+ "schema": {
2867
+ "$ref": "#/components/schemas/Locale"
2868
+ },
2869
+ "style": "form"
2870
+ }
2871
+ ],
2872
+ "responses": {
2873
+ "200": {
2874
+ "description": "The report PDF",
2875
+ "content": {
2876
+ "application/pdf": {
2877
+ "schema": {
2878
+ "$ref": "#/components/schemas/KybCaseReportPdf"
2879
+ }
2880
+ }
2881
+ }
2882
+ },
2883
+ "304": {
2884
+ "description": "The report named by `If-None-Match` is current"
2885
+ },
2886
+ "401": {
2887
+ "description": "",
2888
+ "content": {
2889
+ "application/json": {
2890
+ "schema": {
2891
+ "$ref": "#/components/schemas/BaxeError"
2892
+ }
2893
+ }
2894
+ }
2895
+ },
2896
+ "403": {
2897
+ "description": "",
2898
+ "content": {
2899
+ "application/json": {
2900
+ "schema": {
2901
+ "$ref": "#/components/schemas/BaxeError"
2902
+ }
2903
+ }
2904
+ }
2905
+ },
2906
+ "404": {
2907
+ "description": "",
2908
+ "content": {
2909
+ "application/json": {
2910
+ "schema": {
2911
+ "$ref": "#/components/schemas/BaxeError"
2912
+ }
2913
+ }
2914
+ }
2915
+ },
2916
+ "500": {
2917
+ "description": "",
2918
+ "content": {
2919
+ "application/json": {
2920
+ "schema": {
2921
+ "$ref": "#/components/schemas/BaxeError"
2922
+ }
2923
+ }
2924
+ }
2925
+ }
2926
+ },
2927
+ "security": [
2928
+ {
2929
+ "x-api-key": []
2711
2930
  }
2712
2931
  ]
2713
2932
  }
@@ -2854,7 +3073,7 @@
2854
3073
  },
2855
3074
  "security": [
2856
3075
  {
2857
- "api-key": []
3076
+ "x-api-key": []
2858
3077
  }
2859
3078
  ]
2860
3079
  }
@@ -2865,7 +3084,7 @@
2865
3084
  "SDK: Organizations"
2866
3085
  ],
2867
3086
  "summary": "Get flow result details",
2868
- "description": "Returns one flow result: who it belongs to, its status, and the result of every step the user\ncompleted (document verification, liveness, proof of address, screening, forms, KYB and the\nothers). The per-step result endpoints return each step's full detail.",
3087
+ "description": "Returns one flow result: who it belongs to, its status, and the result of every step the user\ncompleted (document verification, liveness, proof of address, screening, forms, KYB and the\nothers). The per-step result endpoints return each step's full detail.\n\nThe flow result is one of this organization's, or a KYC Passport result another organization\nshared with it: the result named by a `kyc_passport.verification.updated` notification. The\nsame holds for the per-step result endpoints.",
2869
3088
  "operationId": "getFlowResultDetails",
2870
3089
  "parameters": [
2871
3090
  {
@@ -3098,14 +3317,14 @@
3098
3317
  ]
3099
3318
  }
3100
3319
  },
3101
- "/sdk/organizations/{organization_id}/flow-results/{flow_result_id}/flow/{flow_slug}/poa/{poa_result_id}/details": {
3320
+ "/sdk/organizations/{organization_id}/flow-results/{flow_result_id}/flow/{flow_slug}/dv/{dv_result_id}/report": {
3102
3321
  "get": {
3103
3322
  "tags": [
3104
3323
  "SDK: Organizations"
3105
3324
  ],
3106
- "summary": "Get proof of address result details",
3107
- "description": "Returns the full result of one proof of address step, with the address document the user\nuploaded and the data read from it.",
3108
- "operationId": "getProofOfAddressResultDetails",
3325
+ "summary": "Download the KYC report of a document verification result",
3326
+ "description": "Returns the report of one document verification as a PDF: its outcome and every check it was\nheld against, the data read from the document, the document images, the device and session,\nthe person's AML screenings and an audit trail, with the verification data attached to the PDF\nas JSON. `locale` picks the language: `en`, `it`, `de`, `es`, `fr` or `pt`; any other prints in\nEnglish. The report is generated on each request and states when it was generated.",
3327
+ "operationId": "getDocumentVerificationResultReport",
3109
3328
  "parameters": [
3110
3329
  {
3111
3330
  "name": "sandbox",
@@ -3158,9 +3377,9 @@
3158
3377
  "example": "flow-slug"
3159
3378
  },
3160
3379
  {
3161
- "name": "poa_result_id",
3380
+ "name": "dv_result_id",
3162
3381
  "in": "path",
3163
- "description": "The ID of the POA result",
3382
+ "description": "The ID of the DV result",
3164
3383
  "required": true,
3165
3384
  "schema": {
3166
3385
  "type": "string",
@@ -3171,11 +3390,11 @@
3171
3390
  ],
3172
3391
  "responses": {
3173
3392
  "200": {
3174
- "description": "",
3393
+ "description": "The report PDF",
3175
3394
  "content": {
3176
- "application/x-protobuf-stream": {
3395
+ "application/pdf": {
3177
3396
  "schema": {
3178
- "type": "string"
3397
+ "$ref": "#/components/schemas/KycReportPdf"
3179
3398
  }
3180
3399
  }
3181
3400
  }
@@ -3218,14 +3437,14 @@
3218
3437
  ]
3219
3438
  }
3220
3439
  },
3221
- "/sdk/organizations/{organization_id}/flow-results/{flow_result_id}/flow/{flow_slug}/wallet/{wallet_result_id}/details": {
3440
+ "/sdk/organizations/{organization_id}/flow-results/{flow_result_id}/flow/{flow_slug}/poa/{poa_result_id}/details": {
3222
3441
  "get": {
3223
3442
  "tags": [
3224
3443
  "SDK: Organizations"
3225
3444
  ],
3226
- "summary": "Get wallet result details",
3227
- "description": "Returns the result of one wallet step: the wallet address and chain the user proved they\ncontrol, the signed message, and the step's status.",
3228
- "operationId": "getWalletResultDetails",
3445
+ "summary": "Get proof of address result details",
3446
+ "description": "Returns the full result of one proof of address step, with the address document the user\nuploaded and the data read from it.",
3447
+ "operationId": "getProofOfAddressResultDetails",
3229
3448
  "parameters": [
3230
3449
  {
3231
3450
  "name": "sandbox",
@@ -3278,9 +3497,9 @@
3278
3497
  "example": "flow-slug"
3279
3498
  },
3280
3499
  {
3281
- "name": "wallet_result_id",
3500
+ "name": "poa_result_id",
3282
3501
  "in": "path",
3283
- "description": "The ID of the wallet result",
3502
+ "description": "The ID of the POA result",
3284
3503
  "required": true,
3285
3504
  "schema": {
3286
3505
  "type": "string",
@@ -3293,9 +3512,9 @@
3293
3512
  "200": {
3294
3513
  "description": "",
3295
3514
  "content": {
3296
- "application/json": {
3515
+ "application/x-protobuf-stream": {
3297
3516
  "schema": {
3298
- "$ref": "#/components/schemas/WalletResult"
3517
+ "type": "string"
3299
3518
  }
3300
3519
  }
3301
3520
  }
@@ -3338,14 +3557,14 @@
3338
3557
  ]
3339
3558
  }
3340
3559
  },
3341
- "/sdk/organizations/{organization_id}/flow-results/{flow_result_id}/flow/{flow_slug}/phone/{phone_result_id}/details": {
3560
+ "/sdk/organizations/{organization_id}/flow-results/{flow_result_id}/flow/{flow_slug}/wallet/{wallet_result_id}/details": {
3342
3561
  "get": {
3343
3562
  "tags": [
3344
3563
  "SDK: Organizations"
3345
3564
  ],
3346
- "summary": "Get phone result details",
3347
- "description": "Returns the result of one phone step: the phone number the user verified and the step's status.",
3348
- "operationId": "getPhoneResultDetails",
3565
+ "summary": "Get wallet result details",
3566
+ "description": "Returns the result of one wallet step: the wallet address and chain the user proved they\ncontrol, the signed message, and the step's status.",
3567
+ "operationId": "getWalletResultDetails",
3349
3568
  "parameters": [
3350
3569
  {
3351
3570
  "name": "sandbox",
@@ -3398,9 +3617,9 @@
3398
3617
  "example": "flow-slug"
3399
3618
  },
3400
3619
  {
3401
- "name": "phone_result_id",
3620
+ "name": "wallet_result_id",
3402
3621
  "in": "path",
3403
- "description": "The ID of the phone result",
3622
+ "description": "The ID of the wallet result",
3404
3623
  "required": true,
3405
3624
  "schema": {
3406
3625
  "type": "string",
@@ -3415,7 +3634,7 @@
3415
3634
  "content": {
3416
3635
  "application/json": {
3417
3636
  "schema": {
3418
- "$ref": "#/components/schemas/PhoneResult"
3637
+ "$ref": "#/components/schemas/WalletResult"
3419
3638
  }
3420
3639
  }
3421
3640
  }
@@ -3458,14 +3677,14 @@
3458
3677
  ]
3459
3678
  }
3460
3679
  },
3461
- "/sdk/organizations/{organization_id}/flow-results/{flow_result_id}/flow/{flow_slug}/form/{form_result_id}/details": {
3680
+ "/sdk/organizations/{organization_id}/flow-results/{flow_result_id}/flow/{flow_slug}/phone/{phone_result_id}/details": {
3462
3681
  "get": {
3463
3682
  "tags": [
3464
3683
  "SDK: Organizations"
3465
3684
  ],
3466
- "summary": "Get form result details",
3467
- "description": "Returns the answers the user gave in one form step, section by section, with the step's status\nand any risk tags the answers assigned.",
3468
- "operationId": "getFormResultDetails",
3685
+ "summary": "Get phone result details",
3686
+ "description": "Returns the result of one phone step: the phone number the user verified and the step's status.",
3687
+ "operationId": "getPhoneResultDetails",
3469
3688
  "parameters": [
3470
3689
  {
3471
3690
  "name": "sandbox",
@@ -3518,9 +3737,9 @@
3518
3737
  "example": "flow-slug"
3519
3738
  },
3520
3739
  {
3521
- "name": "form_result_id",
3740
+ "name": "phone_result_id",
3522
3741
  "in": "path",
3523
- "description": "The ID of the form result",
3742
+ "description": "The ID of the phone result",
3524
3743
  "required": true,
3525
3744
  "schema": {
3526
3745
  "type": "string",
@@ -3535,7 +3754,7 @@
3535
3754
  "content": {
3536
3755
  "application/json": {
3537
3756
  "schema": {
3538
- "$ref": "#/components/schemas/FormResult"
3757
+ "$ref": "#/components/schemas/PhoneResult"
3539
3758
  }
3540
3759
  }
3541
3760
  }
@@ -3578,14 +3797,14 @@
3578
3797
  ]
3579
3798
  }
3580
3799
  },
3581
- "/sdk/organizations/{organization_id}/flow-results/{flow_result_id}/details": {
3800
+ "/sdk/organizations/{organization_id}/flow-results/{flow_result_id}/flow/{flow_slug}/form/{form_result_id}/details": {
3582
3801
  "get": {
3583
3802
  "tags": [
3584
3803
  "SDK: Organizations"
3585
3804
  ],
3586
- "summary": "Get flow result details (deprecated)",
3587
- "description": "**Deprecated.** Use \"Get flow result details\", which also takes the flow slug.",
3588
- "operationId": "getFlowResultDetailsDeprecated",
3805
+ "summary": "Get form result details",
3806
+ "description": "Returns the answers the user gave in one form step, section by section, with the step's status\nand any risk tags the answers assigned.",
3807
+ "operationId": "getFormResultDetails",
3589
3808
  "parameters": [
3590
3809
  {
3591
3810
  "name": "sandbox",
@@ -3626,6 +3845,27 @@
3626
3845
  "format": "uuid"
3627
3846
  },
3628
3847
  "example": "123e4567-e89b-12d3-a456-426614174000"
3848
+ },
3849
+ {
3850
+ "name": "flow_slug",
3851
+ "in": "path",
3852
+ "description": "The slug of the flow",
3853
+ "required": true,
3854
+ "schema": {
3855
+ "type": "string"
3856
+ },
3857
+ "example": "flow-slug"
3858
+ },
3859
+ {
3860
+ "name": "form_result_id",
3861
+ "in": "path",
3862
+ "description": "The ID of the form result",
3863
+ "required": true,
3864
+ "schema": {
3865
+ "type": "string",
3866
+ "format": "uuid"
3867
+ },
3868
+ "example": "123e4567-e89b-12d3-a456-426614174000"
3629
3869
  }
3630
3870
  ],
3631
3871
  "responses": {
@@ -3634,22 +3874,12 @@
3634
3874
  "content": {
3635
3875
  "application/json": {
3636
3876
  "schema": {
3637
- "$ref": "#/components/schemas/FlowResult"
3638
- }
3639
- }
3640
- }
3641
- },
3642
- "400": {
3643
- "description": "",
3644
- "content": {
3645
- "application/json": {
3646
- "schema": {
3647
- "$ref": "#/components/schemas/BaxeError"
3877
+ "$ref": "#/components/schemas/FormResult"
3648
3878
  }
3649
3879
  }
3650
3880
  }
3651
3881
  },
3652
- "401": {
3882
+ "403": {
3653
3883
  "description": "",
3654
3884
  "content": {
3655
3885
  "application/json": {
@@ -3659,7 +3889,7 @@
3659
3889
  }
3660
3890
  }
3661
3891
  },
3662
- "403": {
3892
+ "404": {
3663
3893
  "description": "",
3664
3894
  "content": {
3665
3895
  "application/json": {
@@ -3687,14 +3917,14 @@
3687
3917
  ]
3688
3918
  }
3689
3919
  },
3690
- "/sdk/organizations/{organization_id}/flow-results/{flow_result_id}/dv/{dv_result_id}/details": {
3920
+ "/sdk/organizations/{organization_id}/flow-results/{flow_result_id}/details": {
3691
3921
  "get": {
3692
3922
  "tags": [
3693
3923
  "SDK: Organizations"
3694
3924
  ],
3695
- "summary": "Get document verification result details (deprecated)",
3696
- "description": "**Deprecated.** Use \"Get document verification result details\", which also takes the flow slug.",
3697
- "operationId": "getDocumentVerificationResultDetailsDeprecated",
3925
+ "summary": "Get flow result details (deprecated)",
3926
+ "description": "**Deprecated.** Use \"Get flow result details\", which also takes the flow slug.",
3927
+ "operationId": "getFlowResultDetailsDeprecated",
3698
3928
  "parameters": [
3699
3929
  {
3700
3930
  "name": "sandbox",
@@ -3735,31 +3965,20 @@
3735
3965
  "format": "uuid"
3736
3966
  },
3737
3967
  "example": "123e4567-e89b-12d3-a456-426614174000"
3738
- },
3739
- {
3740
- "name": "dv_result_id",
3741
- "in": "path",
3742
- "description": "The ID of the DV result",
3743
- "required": true,
3744
- "schema": {
3745
- "type": "string",
3746
- "format": "uuid"
3747
- },
3748
- "example": "123e4567-e89b-12d3-a456-426614174000"
3749
3968
  }
3750
3969
  ],
3751
3970
  "responses": {
3752
3971
  "200": {
3753
3972
  "description": "",
3754
3973
  "content": {
3755
- "application/x-protobuf-stream": {
3974
+ "application/json": {
3756
3975
  "schema": {
3757
- "type": "string"
3976
+ "$ref": "#/components/schemas/FlowResult"
3758
3977
  }
3759
3978
  }
3760
3979
  }
3761
3980
  },
3762
- "403": {
3981
+ "400": {
3763
3982
  "description": "",
3764
3983
  "content": {
3765
3984
  "application/json": {
@@ -3769,7 +3988,17 @@
3769
3988
  }
3770
3989
  }
3771
3990
  },
3772
- "404": {
3991
+ "401": {
3992
+ "description": "",
3993
+ "content": {
3994
+ "application/json": {
3995
+ "schema": {
3996
+ "$ref": "#/components/schemas/BaxeError"
3997
+ }
3998
+ }
3999
+ }
4000
+ },
4001
+ "403": {
3773
4002
  "description": "",
3774
4003
  "content": {
3775
4004
  "application/json": {
@@ -3790,6 +4019,7 @@
3790
4019
  }
3791
4020
  }
3792
4021
  },
4022
+ "deprecated": true,
3793
4023
  "security": [
3794
4024
  {
3795
4025
  "x-api-key": []
@@ -3797,14 +4027,14 @@
3797
4027
  ]
3798
4028
  }
3799
4029
  },
3800
- "/sdk/organizations/{organization_id}/flow-results/{flow_result_id}/poa/{poa_result_id}/details": {
4030
+ "/sdk/organizations/{organization_id}/flow-results/{flow_result_id}/dv/{dv_result_id}/details": {
3801
4031
  "get": {
3802
4032
  "tags": [
3803
4033
  "SDK: Organizations"
3804
4034
  ],
3805
- "summary": "Get proof of address result details (deprecated)",
3806
- "description": "**Deprecated.** Use \"Get proof of address result details\", which also takes the flow slug.",
3807
- "operationId": "getProofOfAddressResultDetailsDeprecated",
4035
+ "summary": "Get document verification result details (deprecated)",
4036
+ "description": "**Deprecated.** Use \"Get document verification result details\", which also takes the flow slug.",
4037
+ "operationId": "getDocumentVerificationResultDetailsDeprecated",
3808
4038
  "parameters": [
3809
4039
  {
3810
4040
  "name": "sandbox",
@@ -3847,146 +4077,29 @@
3847
4077
  "example": "123e4567-e89b-12d3-a456-426614174000"
3848
4078
  },
3849
4079
  {
3850
- "name": "poa_result_id",
3851
- "in": "path",
3852
- "description": "The ID of the POA result",
3853
- "required": true,
3854
- "schema": {
3855
- "type": "string",
3856
- "format": "uuid"
3857
- },
3858
- "example": "123e4567-e89b-12d3-a456-426614174000"
3859
- }
3860
- ],
3861
- "responses": {
3862
- "200": {
3863
- "description": "",
3864
- "content": {
3865
- "application/x-protobuf-stream": {
3866
- "schema": {
3867
- "type": "string"
3868
- }
3869
- }
3870
- }
3871
- },
3872
- "403": {
3873
- "description": "",
3874
- "content": {
3875
- "application/json": {
3876
- "schema": {
3877
- "$ref": "#/components/schemas/BaxeError"
3878
- }
3879
- }
3880
- }
3881
- },
3882
- "404": {
3883
- "description": "",
3884
- "content": {
3885
- "application/json": {
3886
- "schema": {
3887
- "$ref": "#/components/schemas/BaxeError"
3888
- }
3889
- }
3890
- }
3891
- },
3892
- "500": {
3893
- "description": "",
3894
- "content": {
3895
- "application/json": {
3896
- "schema": {
3897
- "$ref": "#/components/schemas/BaxeError"
3898
- }
3899
- }
3900
- }
3901
- }
3902
- },
3903
- "security": [
3904
- {
3905
- "x-api-key": []
3906
- }
3907
- ]
3908
- }
3909
- },
3910
- "/sdk/organizations/{organization_id}/aml/screen": {
3911
- "post": {
3912
- "tags": [
3913
- "SDK: AML"
3914
- ],
3915
- "summary": "Screen a person or company (AML)",
3916
- "description": "Screens a person or a company against sanctions, politically exposed persons (PEP) and other\nwatchlists, and returns the matching entries in the format named by `format`. The result is\nreturned as found: no risk score is computed and nothing is stored. Each call is charged.",
3917
- "operationId": "sdkScreenAml",
3918
- "parameters": [
3919
- {
3920
- "name": "organization_id",
4080
+ "name": "dv_result_id",
3921
4081
  "in": "path",
3922
- "description": "Organization ID",
3923
- "required": true,
3924
- "schema": {
3925
- "type": "string",
3926
- "format": "uuid"
3927
- }
3928
- },
3929
- {
3930
- "name": "sandbox",
3931
- "in": "query",
3932
- "required": true,
3933
- "schema": {
3934
- "type": "boolean"
3935
- },
3936
- "style": "form"
3937
- },
3938
- {
3939
- "name": "locale",
3940
- "in": "query",
3941
- "required": false,
3942
- "schema": {
3943
- "$ref": "#/components/schemas/Locale"
3944
- },
3945
- "style": "form"
3946
- }
3947
- ],
3948
- "requestBody": {
3949
- "content": {
3950
- "application/json": {
3951
- "schema": {
3952
- "$ref": "#/components/schemas/SdkAmlScreenRequest"
3953
- }
3954
- }
3955
- },
3956
- "required": true
3957
- },
4082
+ "description": "The ID of the DV result",
4083
+ "required": true,
4084
+ "schema": {
4085
+ "type": "string",
4086
+ "format": "uuid"
4087
+ },
4088
+ "example": "123e4567-e89b-12d3-a456-426614174000"
4089
+ }
4090
+ ],
3958
4091
  "responses": {
3959
4092
  "200": {
3960
4093
  "description": "",
3961
4094
  "content": {
3962
- "application/json": {
3963
- "schema": {
3964
- "$ref": "#/components/schemas/SdkAmlScreenResponse"
3965
- }
3966
- }
3967
- }
3968
- },
3969
- "400": {
3970
- "description": "",
3971
- "content": {
3972
- "application/json": {
3973
- "schema": {
3974
- "$ref": "#/components/schemas/BaxeError"
3975
- }
3976
- }
3977
- }
3978
- },
3979
- "401": {
3980
- "description": "",
3981
- "content": {
3982
- "application/json": {
4095
+ "application/x-protobuf-stream": {
3983
4096
  "schema": {
3984
- "$ref": "#/components/schemas/BaxeError"
4097
+ "type": "string"
3985
4098
  }
3986
4099
  }
3987
4100
  }
3988
4101
  },
3989
- "402": {
4102
+ "403": {
3990
4103
  "description": "",
3991
4104
  "content": {
3992
4105
  "application/json": {
@@ -3996,7 +4109,7 @@
3996
4109
  }
3997
4110
  }
3998
4111
  },
3999
- "403": {
4112
+ "404": {
4000
4113
  "description": "",
4001
4114
  "content": {
4002
4115
  "application/json": {
@@ -4017,45 +4130,87 @@
4017
4130
  }
4018
4131
  }
4019
4132
  },
4133
+ "deprecated": true,
4020
4134
  "security": [
4021
4135
  {
4022
- "api-key": []
4136
+ "x-api-key": []
4023
4137
  }
4024
4138
  ]
4025
4139
  }
4026
4140
  },
4027
- "/organizations/{organization_id}/billing/topup-packs": {
4141
+ "/sdk/organizations/{organization_id}/flow-results/{flow_result_id}/poa/{poa_result_id}/details": {
4028
4142
  "get": {
4029
4143
  "tags": [
4030
- "Billing"
4144
+ "SDK: Organizations"
4031
4145
  ],
4032
- "summary": "List the top-up credit packs",
4033
- "description": "Lists the one-time credit packs the organization can purchase, with their price, the\nnumber of credits granted and any products they unlock. The catalog may be cached for up\nto 30 minutes.",
4034
- "operationId": "get_topup_packs",
4146
+ "summary": "Get proof of address result details (deprecated)",
4147
+ "description": "**Deprecated.** Use \"Get proof of address result details\", which also takes the flow slug.",
4148
+ "operationId": "getProofOfAddressResultDetailsDeprecated",
4035
4149
  "parameters": [
4150
+ {
4151
+ "name": "sandbox",
4152
+ "in": "query",
4153
+ "required": true,
4154
+ "schema": {
4155
+ "type": "boolean"
4156
+ },
4157
+ "style": "form"
4158
+ },
4159
+ {
4160
+ "name": "locale",
4161
+ "in": "query",
4162
+ "required": false,
4163
+ "schema": {
4164
+ "$ref": "#/components/schemas/Locale"
4165
+ },
4166
+ "style": "form"
4167
+ },
4036
4168
  {
4037
4169
  "name": "organization_id",
4038
4170
  "in": "path",
4039
- "description": "Organization ID",
4171
+ "description": "The ID of the organization",
4040
4172
  "required": true,
4041
4173
  "schema": {
4042
4174
  "type": "string",
4043
4175
  "format": "uuid"
4044
- }
4176
+ },
4177
+ "example": "123e4567-e89b-12d3-a456-426614174000"
4178
+ },
4179
+ {
4180
+ "name": "flow_result_id",
4181
+ "in": "path",
4182
+ "description": "The ID of the flow result",
4183
+ "required": true,
4184
+ "schema": {
4185
+ "type": "string",
4186
+ "format": "uuid"
4187
+ },
4188
+ "example": "123e4567-e89b-12d3-a456-426614174000"
4189
+ },
4190
+ {
4191
+ "name": "poa_result_id",
4192
+ "in": "path",
4193
+ "description": "The ID of the POA result",
4194
+ "required": true,
4195
+ "schema": {
4196
+ "type": "string",
4197
+ "format": "uuid"
4198
+ },
4199
+ "example": "123e4567-e89b-12d3-a456-426614174000"
4045
4200
  }
4046
4201
  ],
4047
4202
  "responses": {
4048
4203
  "200": {
4049
4204
  "description": "",
4050
4205
  "content": {
4051
- "application/json": {
4206
+ "application/x-protobuf-stream": {
4052
4207
  "schema": {
4053
- "$ref": "#/components/schemas/TopupPacksResponse"
4208
+ "type": "string"
4054
4209
  }
4055
4210
  }
4056
4211
  }
4057
4212
  },
4058
- "401": {
4213
+ "403": {
4059
4214
  "description": "",
4060
4215
  "content": {
4061
4216
  "application/json": {
@@ -4065,7 +4220,7 @@
4065
4220
  }
4066
4221
  }
4067
4222
  },
4068
- "403": {
4223
+ "404": {
4069
4224
  "description": "",
4070
4225
  "content": {
4071
4226
  "application/json": {
@@ -4086,21 +4241,22 @@
4086
4241
  }
4087
4242
  }
4088
4243
  },
4244
+ "deprecated": true,
4089
4245
  "security": [
4090
4246
  {
4091
- "jwt-auth": []
4247
+ "x-api-key": []
4092
4248
  }
4093
4249
  ]
4094
4250
  }
4095
4251
  },
4096
- "/organizations/{organization_id}/billing/topup/checkout": {
4252
+ "/sdk/organizations/{organization_id}/aml/screen": {
4097
4253
  "post": {
4098
4254
  "tags": [
4099
- "Billing"
4255
+ "SDK: AML"
4100
4256
  ],
4101
- "summary": "Create a checkout session for a credit top-up",
4102
- "description": "The `priceId` must be one of the packs returned by `GET .../billing/topup-packs`. Redirect\nthe user to the returned checkout URL; the credits are added to the organization once the\npayment completes.",
4103
- "operationId": "create_topup_checkout",
4257
+ "summary": "Screen a person or company (AML)",
4258
+ "description": "Screens a person or a company against sanctions, politically exposed persons (PEP) and other\nwatchlists, and returns the matching entries in the format named by `format`. The result is\nreturned as found: no risk score is computed and nothing is stored. Each call is charged.",
4259
+ "operationId": "sdkScreenAml",
4104
4260
  "parameters": [
4105
4261
  {
4106
4262
  "name": "organization_id",
@@ -4111,13 +4267,31 @@
4111
4267
  "type": "string",
4112
4268
  "format": "uuid"
4113
4269
  }
4270
+ },
4271
+ {
4272
+ "name": "sandbox",
4273
+ "in": "query",
4274
+ "required": true,
4275
+ "schema": {
4276
+ "type": "boolean"
4277
+ },
4278
+ "style": "form"
4279
+ },
4280
+ {
4281
+ "name": "locale",
4282
+ "in": "query",
4283
+ "required": false,
4284
+ "schema": {
4285
+ "$ref": "#/components/schemas/Locale"
4286
+ },
4287
+ "style": "form"
4114
4288
  }
4115
4289
  ],
4116
4290
  "requestBody": {
4117
4291
  "content": {
4118
4292
  "application/json": {
4119
4293
  "schema": {
4120
- "$ref": "#/components/schemas/CreateTopupCheckoutRequest"
4294
+ "$ref": "#/components/schemas/SdkAmlScreenRequest"
4121
4295
  }
4122
4296
  }
4123
4297
  },
@@ -4129,7 +4303,7 @@
4129
4303
  "content": {
4130
4304
  "application/json": {
4131
4305
  "schema": {
4132
- "$ref": "#/components/schemas/CheckoutSessionResponse"
4306
+ "$ref": "#/components/schemas/SdkAmlScreenResponse"
4133
4307
  }
4134
4308
  }
4135
4309
  }
@@ -4154,7 +4328,7 @@
4154
4328
  }
4155
4329
  }
4156
4330
  },
4157
- "403": {
4331
+ "402": {
4158
4332
  "description": "",
4159
4333
  "content": {
4160
4334
  "application/json": {
@@ -4164,7 +4338,7 @@
4164
4338
  }
4165
4339
  }
4166
4340
  },
4167
- "404": {
4341
+ "403": {
4168
4342
  "description": "",
4169
4343
  "content": {
4170
4344
  "application/json": {
@@ -4187,7 +4361,7 @@
4187
4361
  },
4188
4362
  "security": [
4189
4363
  {
4190
- "jwt-auth": []
4364
+ "x-api-key": []
4191
4365
  }
4192
4366
  ]
4193
4367
  }
@@ -4314,7 +4488,7 @@
4314
4488
  },
4315
4489
  "security": [
4316
4490
  {
4317
- "api-key": []
4491
+ "x-api-key": []
4318
4492
  }
4319
4493
  ]
4320
4494
  }
@@ -4421,7 +4595,7 @@
4421
4595
  },
4422
4596
  "security": [
4423
4597
  {
4424
- "api-key": []
4598
+ "x-api-key": []
4425
4599
  }
4426
4600
  ]
4427
4601
  },
@@ -4536,7 +4710,7 @@
4536
4710
  },
4537
4711
  "security": [
4538
4712
  {
4539
- "api-key": []
4713
+ "x-api-key": []
4540
4714
  }
4541
4715
  ]
4542
4716
  }
@@ -4664,7 +4838,7 @@
4664
4838
  },
4665
4839
  "security": [
4666
4840
  {
4667
- "api-key": []
4841
+ "x-api-key": []
4668
4842
  }
4669
4843
  ]
4670
4844
  },
@@ -4809,7 +4983,7 @@
4809
4983
  },
4810
4984
  "security": [
4811
4985
  {
4812
- "api-key": []
4986
+ "x-api-key": []
4813
4987
  }
4814
4988
  ]
4815
4989
  }
@@ -4906,7 +5080,7 @@
4906
5080
  },
4907
5081
  "security": [
4908
5082
  {
4909
- "api-key": []
5083
+ "x-api-key": []
4910
5084
  }
4911
5085
  ]
4912
5086
  }
@@ -5013,7 +5187,7 @@
5013
5187
  },
5014
5188
  "security": [
5015
5189
  {
5016
- "api-key": []
5190
+ "x-api-key": []
5017
5191
  }
5018
5192
  ]
5019
5193
  }
@@ -5141,7 +5315,7 @@
5141
5315
  "deprecated": true,
5142
5316
  "security": [
5143
5317
  {
5144
- "api-key": []
5318
+ "x-api-key": []
5145
5319
  }
5146
5320
  ]
5147
5321
  }
@@ -5269,7 +5443,7 @@
5269
5443
  "deprecated": true,
5270
5444
  "security": [
5271
5445
  {
5272
- "api-key": []
5446
+ "x-api-key": []
5273
5447
  }
5274
5448
  ]
5275
5449
  }
@@ -5841,6 +6015,13 @@
5841
6015
  "position": {
5842
6016
  "$ref": "#/components/schemas/FieldWithControl"
5843
6017
  },
6018
+ "relatedPeps": {
6019
+ "type": "array",
6020
+ "items": {
6021
+ "$ref": "#/components/schemas/AmlRelatedPep"
6022
+ },
6023
+ "description": "The PEPs this record is tied to as a relative or close associate, as the provider names them.\nAbsent when the provider named none."
6024
+ },
5844
6025
  "sanctions": {
5845
6026
  "type": "array",
5846
6027
  "items": {
@@ -5887,7 +6068,8 @@
5887
6068
  "type": "boolean"
5888
6069
  },
5889
6070
  "isPep": {
5890
- "type": "boolean"
6071
+ "type": "boolean",
6072
+ "description": "A PEP match: the record is a politically exposed person, or a relative or close associate\nof one."
5891
6073
  },
5892
6074
  "match": {
5893
6075
  "type": "boolean"
@@ -5976,6 +6158,14 @@
5976
6158
  }
5977
6159
  }
5978
6160
  },
6161
+ "AmlPepRelationKind": {
6162
+ "type": "string",
6163
+ "description": "How a record reaches a PEP it is related to.",
6164
+ "enum": [
6165
+ "family",
6166
+ "associate"
6167
+ ]
6168
+ },
5979
6169
  "AmlPosition": {
5980
6170
  "type": "object",
5981
6171
  "properties": {
@@ -6047,6 +6237,38 @@
6047
6237
  }
6048
6238
  }
6049
6239
  },
6240
+ "AmlRelatedPep": {
6241
+ "type": "object",
6242
+ "description": "A PEP that a relative or close associate is related to.",
6243
+ "required": [
6244
+ "kind",
6245
+ "entityId",
6246
+ "names"
6247
+ ],
6248
+ "properties": {
6249
+ "entityId": {
6250
+ "type": "string",
6251
+ "description": "The provider's id of the PEP's record."
6252
+ },
6253
+ "kind": {
6254
+ "$ref": "#/components/schemas/AmlPepRelationKind"
6255
+ },
6256
+ "names": {
6257
+ "type": "array",
6258
+ "items": {
6259
+ "type": "string"
6260
+ },
6261
+ "description": "The PEP's names, as the provider lists them."
6262
+ },
6263
+ "relationship": {
6264
+ "type": "array",
6265
+ "items": {
6266
+ "type": "string"
6267
+ },
6268
+ "description": "The nature of the relationship, worded by the provider from the PEP's side (\"spouse\",\n\"business partner\"): the record is the PEP's spouse."
6269
+ }
6270
+ }
6271
+ },
6050
6272
  "AmlResult": {
6051
6273
  "type": "object",
6052
6274
  "required": [
@@ -6061,6 +6283,14 @@
6061
6283
  "type": "boolean",
6062
6284
  "description": "Whether adverse-media screening for this subject returned a hit. `false` when there was no\nhit or adverse media was not screened."
6063
6285
  },
6286
+ "caseId": {
6287
+ "type": [
6288
+ "string",
6289
+ "null"
6290
+ ],
6291
+ "format": "uuid",
6292
+ "description": "The KYB case the screening was ordered for, when it names one."
6293
+ },
6064
6294
  "createdAt": {
6065
6295
  "type": "string",
6066
6296
  "format": "date-time"
@@ -6075,6 +6305,14 @@
6075
6305
  }
6076
6306
  ]
6077
6307
  },
6308
+ "flowResultId": {
6309
+ "type": [
6310
+ "string",
6311
+ "null"
6312
+ ],
6313
+ "format": "uuid",
6314
+ "description": "The flow result the screening belongs to. Absent for a screening of an operator-opened case\nthat has none."
6315
+ },
6078
6316
  "id": {
6079
6317
  "type": "string",
6080
6318
  "format": "uuid"
@@ -6454,11 +6692,21 @@
6454
6692
  "AUTH_MAGIC_LINK_REQUESTED",
6455
6693
  "AUTH_PASSWORD_RESET_REQUESTED",
6456
6694
  "AUTH_EMAIL_VERIFIED",
6695
+ "AUTH_TWO_FACTOR_CHALLENGED",
6696
+ "AUTH_TWO_FACTOR_FAILED",
6697
+ "AUTH_TWO_FACTOR_ENROLMENT_STARTED",
6698
+ "AUTH_TWO_FACTOR_ENABLED",
6699
+ "AUTH_TWO_FACTOR_DISABLED",
6700
+ "AUTH_TWO_FACTOR_BACKUP_CODE_USED",
6701
+ "AUTH_TWO_FACTOR_BACKUP_CODES_REGENERATED",
6702
+ "AUTH_TWO_FACTOR_RESET",
6703
+ "ORG_TWO_FACTOR_POLICY_UPDATED",
6457
6704
  "IDENTITY_ROLE_CHANGED",
6458
6705
  "IDENTITY_DEACTIVATED",
6459
6706
  "IDENTITY_DELETED",
6460
6707
  "ORG_CREATED",
6461
6708
  "ORG_SETTINGS_UPDATED",
6709
+ "SLA_TARGETS_UPDATED",
6462
6710
  "ORG_MEMBER_INVITED",
6463
6711
  "ORG_MEMBER_REMOVED",
6464
6712
  "ORG_MEMBER_ROLE_CHANGED",
@@ -6478,6 +6726,13 @@
6478
6726
  "FLOW_STEP_DELETED",
6479
6727
  "FLOW_SHARED",
6480
6728
  "FLOW_SHARE_REVOKED",
6729
+ "FLOW_TEMPLATE_CREATED",
6730
+ "FLOW_TEMPLATE_UPDATED",
6731
+ "FLOW_TEMPLATE_STATUS_CHANGED",
6732
+ "FLOW_TEMPLATES_SEEDED",
6733
+ "FLOW_TEMPLATE_COPIED_TO_PRODUCTION",
6734
+ "FLOW_DRAFT_CREATED",
6735
+ "FLOW_DRAFT_DELETED",
6481
6736
  "PARTNER_INVITED",
6482
6737
  "PARTNER_INVITE_ACCEPTED",
6483
6738
  "PARTNER_INVITE_REVOKED",
@@ -6524,6 +6779,10 @@
6524
6779
  "KYB_DIRECTORS_ADDED",
6525
6780
  "KYB_DIRECTOR_REMOVED",
6526
6781
  "KYB_AGENT_REVIEWED",
6782
+ "KYB_AGENT_RUN_ENDED",
6783
+ "KYB_CASE_DOSSIER_EXPORTED",
6784
+ "KYB_CASE_REPORT_DOWNLOADED",
6785
+ "KYC_REPORT_DOWNLOADED",
6527
6786
  "KYB_DOCUMENT_CATALOG_REFRESHED",
6528
6787
  "KYB_DOCUMENTS_PURCHASED",
6529
6788
  "KYB_CASE_MANIFEST_REVISED",
@@ -6531,11 +6790,19 @@
6531
6790
  "KYB_CASE_RUN_FAILED",
6532
6791
  "KYB_CASE_RUN_REAPED",
6533
6792
  "KYB_CASE_RUN_REQUEUED",
6793
+ "KYB_CASE_RUN_SUPERSEDED",
6534
6794
  "KYB_CASE_EFFECTS_ABANDONED",
6535
6795
  "KYB_CASE_RETRY_FORCED",
6536
6796
  "KYB_CASE_DECISION_REPORT_HELD",
6537
6797
  "KYB_CASE_WAIVER_DECIDED",
6538
6798
  "KYB_CASE_DECIDED",
6799
+ "KYB_CASE_ANCHORED",
6800
+ "KYB_CASE_OPENED_BY_OPERATOR",
6801
+ "KYB_CASE_CONTACT_SET",
6802
+ "KYB_CASE_UPLOAD_ADDED",
6803
+ "KYB_CASE_UPLOAD_REMOVED",
6804
+ "KYB_CASE_SUBMITTED_BY_OPERATOR",
6805
+ "KYB_CASE_CANCELLED_BY_OPERATOR",
6539
6806
  "KYB_CASE_EXCEPTION_RECORDED",
6540
6807
  "KYB_CASE_EXCEPTION_WITHDRAWN",
6541
6808
  "KYB_CASE_DECISION_PROPOSAL_WITHDRAWN",
@@ -6547,6 +6814,7 @@
6547
6814
  "KYB_OWNERSHIP_CONFIRMATION_SUBMITTED",
6548
6815
  "KYB_SUBJECT_ASSIGNED",
6549
6816
  "KYB_SUBJECT_RELEASED",
6817
+ "KYB_REMINDERS_SENT",
6550
6818
  "KYB_COMPANY_RATING_OVERRIDDEN",
6551
6819
  "KYB_COMPANY_RATING_OVERRIDE_ENDED",
6552
6820
  "COMPLIANCE_POLICY_UPDATED",
@@ -6555,6 +6823,7 @@
6555
6823
  "COMPLIANCE_POLICY_PUT_IN_FORCE",
6556
6824
  "COMPLIANCE_POLICY_SOP_UPLOADED",
6557
6825
  "COMPLIANCE_POLICY_SOP_REVIEWED",
6826
+ "COMPLIANCE_POLICY_SOP_AUTO_ACCEPTED",
6558
6827
  "KYB_CASE_AML_DISPOSITIONED",
6559
6828
  "KYB_CASE_STEP_PROPOSAL_DECIDED",
6560
6829
  "KYB_CASE_CLARIFICATION_PROPOSAL_DECIDED",
@@ -6579,6 +6848,7 @@
6579
6848
  "TM_AGENT_REVIEW_STARTED",
6580
6849
  "TM_AGENT_RESOLVED",
6581
6850
  "TM_ALERT_DISPOSITIONED",
6851
+ "TM_ALERT_ASSIGNED",
6582
6852
  "TM_ALERT_ESCALATED",
6583
6853
  "TM_RULE_DISABLED",
6584
6854
  "UNKNOWN"
@@ -6589,6 +6859,8 @@
6589
6859
  "description": "A single entry in the audit log, returned by the query API.",
6590
6860
  "required": [
6591
6861
  "id",
6862
+ "entrySeq",
6863
+ "entryHash",
6592
6864
  "action",
6593
6865
  "resourceType",
6594
6866
  "details",
@@ -6628,6 +6900,15 @@
6628
6900
  "format": "date-time"
6629
6901
  },
6630
6902
  "details": {},
6903
+ "entryHash": {
6904
+ "type": "string",
6905
+ "description": "The entry's hash on the chain: SHA-256 of the previous entry's hash and this entry's\ncanonical form. The chain is one for the whole platform, so the entry before this one may\nbelong to another organization."
6906
+ },
6907
+ "entrySeq": {
6908
+ "type": "integer",
6909
+ "format": "int64",
6910
+ "description": "The entry's position on the audit log's hash chain. One entry is read back with the filter\n`entry_seq:equals:<n>`."
6911
+ },
6631
6912
  "id": {
6632
6913
  "type": "string",
6633
6914
  "format": "uuid"
@@ -6806,6 +7087,7 @@
6806
7087
  "TopupPack",
6807
7088
  "ApiKey",
6808
7089
  "Bot",
7090
+ "McpClient",
6809
7091
  "Flow",
6810
7092
  "FlowStep",
6811
7093
  "FlowResult",
@@ -6847,7 +7129,10 @@
6847
7129
  "TmSettings",
6848
7130
  "TmAlert",
6849
7131
  "TmRuleTemplate",
6850
- "DisposableEmailDomain",
7132
+ "FlowTemplate",
7133
+ "FlowDraft",
7134
+ "BlockedEmailDomain",
7135
+ "AllowedEmailAddress",
6851
7136
  "RegistrationOffer",
6852
7137
  "RegistrationOfferLink",
6853
7138
  "WebhookEndpoint",
@@ -7077,6 +7362,18 @@
7077
7362
  "catalog"
7078
7363
  ]
7079
7364
  },
7365
+ "BusinessInfoField": {
7366
+ "type": "string",
7367
+ "description": "A business-information key a form field answers.\n\nThe country (and the US state) come from the company lookup, and the contact email from the\napplicant's own email, so no field is bound to them. The address is one place field, which\nyields the street address, the city and the postcode.",
7368
+ "enum": [
7369
+ "companyName",
7370
+ "registrationNumber",
7371
+ "companyType",
7372
+ "address",
7373
+ "incorporationDate",
7374
+ "businessActivity"
7375
+ ]
7376
+ },
7080
7377
  "BusinessInfoFieldVerification": {
7081
7378
  "type": "object",
7082
7379
  "description": "Per-field verification result comparing submitted business info against document-extracted values.",
@@ -7284,6 +7581,44 @@
7284
7581
  }
7285
7582
  }
7286
7583
  },
7584
+ "CaseDecisionSummary": {
7585
+ "type": "object",
7586
+ "description": "The decision that stands on a case, as its list row shows it.",
7587
+ "required": [
7588
+ "id",
7589
+ "outcome",
7590
+ "decidedAt",
7591
+ "decidedBy",
7592
+ "decidedByKind",
7593
+ "door"
7594
+ ],
7595
+ "properties": {
7596
+ "decidedAt": {
7597
+ "type": "string",
7598
+ "format": "date-time"
7599
+ },
7600
+ "decidedBy": {
7601
+ "type": "string",
7602
+ "format": "uuid",
7603
+ "description": "The identity that took it: an analyst, or the agent's own identity."
7604
+ },
7605
+ "decidedByKind": {
7606
+ "$ref": "#/components/schemas/PrincipalKind",
7607
+ "description": "`PERSON` for an analyst, `BOT` for an agent such as Zyphe Agent, `API_KEY` for an integration and `SYSTEM` for\nthe platform itself."
7608
+ },
7609
+ "door": {
7610
+ "$ref": "#/components/schemas/DecisionDoor",
7611
+ "description": "The route it came through: the console, the SDK, an agent's MCP tool, and so on."
7612
+ },
7613
+ "id": {
7614
+ "type": "string",
7615
+ "format": "uuid"
7616
+ },
7617
+ "outcome": {
7618
+ "$ref": "#/components/schemas/KybCaseDecisionOutcome"
7619
+ }
7620
+ }
7621
+ },
7287
7622
  "CaseDetailResponse": {
7288
7623
  "allOf": [
7289
7624
  {
@@ -7380,6 +7715,8 @@
7380
7715
  "country",
7381
7716
  "dueDiligenceLevel",
7382
7717
  "coverage",
7718
+ "caseType",
7719
+ "flags",
7383
7720
  "createdAt",
7384
7721
  "updatedAt"
7385
7722
  ],
@@ -7395,6 +7732,10 @@
7395
7732
  }
7396
7733
  ]
7397
7734
  },
7735
+ "caseType": {
7736
+ "$ref": "#/components/schemas/KybCaseType",
7737
+ "description": "`ONBOARDING` for the first review of the company, `PERIODIC_REVIEW` for a later one: a case opened to verify an\nearlier one again, or one its periodic review reopened. Derived from the case's history, never stored."
7738
+ },
7398
7739
  "companyKey": {
7399
7740
  "type": [
7400
7741
  "string",
@@ -7402,6 +7743,13 @@
7402
7743
  ],
7403
7744
  "description": "The key the company's assignment and rating are kept under. Absent for a company with no\nregistration number: it cannot be told from another in its country, so nothing is kept\nabout it and it can be neither assigned nor rated."
7404
7745
  },
7746
+ "contactEmail": {
7747
+ "type": [
7748
+ "string",
7749
+ "null"
7750
+ ],
7751
+ "description": "The address the case reaches the company at, once one is set: the contact an analyst gave a case they opened."
7752
+ },
7405
7753
  "country": {
7406
7754
  "type": "string"
7407
7755
  },
@@ -7413,6 +7761,17 @@
7413
7761
  "type": "string",
7414
7762
  "format": "date-time"
7415
7763
  },
7764
+ "decision": {
7765
+ "oneOf": [
7766
+ {
7767
+ "type": "null"
7768
+ },
7769
+ {
7770
+ "$ref": "#/components/schemas/CaseDecisionSummary",
7771
+ "description": "The decision that stands on the case, and who took it. Absent until the case is decided, and again once a\nreopening has superseded it."
7772
+ }
7773
+ ]
7774
+ },
7416
7775
  "dueDiligenceLevel": {
7417
7776
  "$ref": "#/components/schemas/KybCaseDueDiligenceLevel"
7418
7777
  },
@@ -7427,6 +7786,13 @@
7427
7786
  }
7428
7787
  ]
7429
7788
  },
7789
+ "flags": {
7790
+ "type": "array",
7791
+ "items": {
7792
+ "$ref": "#/components/schemas/KybCaseFlag"
7793
+ },
7794
+ "description": "What the Home page flags on the case, as the work board last read it, within seconds of the case changing. Empty\non a closed case."
7795
+ },
7430
7796
  "flowResultId": {
7431
7797
  "type": [
7432
7798
  "string",
@@ -7451,6 +7817,14 @@
7451
7817
  ],
7452
7818
  "description": "`CLIENT` | `RM` | `COMPLIANCE` | `SUPPORT` | `FUNDED` | `DENIED`, where set."
7453
7819
  },
7820
+ "openedByIdentityId": {
7821
+ "type": [
7822
+ "string",
7823
+ "null"
7824
+ ],
7825
+ "format": "uuid",
7826
+ "description": "The member of the organization who opened the case, for a case opened by hand. Absent for an applicant's case\nand for one the migration made."
7827
+ },
7454
7828
  "origin": {
7455
7829
  "$ref": "#/components/schemas/KybCaseOrigin",
7456
7830
  "description": "Who opened the case: `END_USER` (the business applicant, through a flow), `OPERATOR` (a member of your\norganization) or `MIGRATION` (created from a KYB result that predates KYB cases)."
@@ -7500,19 +7874,7 @@
7500
7874
  "failed",
7501
7875
  "not_performed",
7502
7876
  "unknown"
7503
- ]
7504
- },
7505
- "CheckoutSessionResponse": {
7506
- "type": "object",
7507
- "description": "Response from creating a checkout session",
7508
- "required": [
7509
- "checkoutUrl"
7510
- ],
7511
- "properties": {
7512
- "checkoutUrl": {
7513
- "type": "string"
7514
- }
7515
- }
7877
+ ]
7516
7878
  },
7517
7879
  "CloudflareTracePayload": {
7518
7880
  "type": "object",
@@ -8110,26 +8472,6 @@
8110
8472
  }
8111
8473
  }
8112
8474
  },
8113
- "CreateTopupCheckoutRequest": {
8114
- "type": "object",
8115
- "description": "Request to create a checkout session for a one-time credit top-up purchase.",
8116
- "required": [
8117
- "priceId"
8118
- ],
8119
- "properties": {
8120
- "priceId": {
8121
- "type": "string",
8122
- "description": "The price ID of the top-up pack to purchase, as returned in `priceId` by\n`GET .../billing/topup-packs`."
8123
- },
8124
- "redirectUri": {
8125
- "type": [
8126
- "string",
8127
- "null"
8128
- ],
8129
- "description": "Optional redirect URI after checkout. If not provided, redirects to the webapp root."
8130
- }
8131
- }
8132
- },
8133
8475
  "CreateVerificationRequestPayload": {
8134
8476
  "allOf": [
8135
8477
  {
@@ -8207,93 +8549,10 @@
8207
8549
  "PASSKEY",
8208
8550
  "BOT_TOKEN",
8209
8551
  "WALLET",
8210
- "EXTERNAL_ID"
8552
+ "EXTERNAL_ID",
8553
+ "TOTP"
8211
8554
  ]
8212
8555
  },
8213
- "CreditExpiryPolicy": {
8214
- "oneOf": [
8215
- {
8216
- "type": "object",
8217
- "description": "Credits expire at the end of each billing period (legacy `carry_over = false`).",
8218
- "required": [
8219
- "type"
8220
- ],
8221
- "properties": {
8222
- "type": {
8223
- "type": "string",
8224
- "enum": [
8225
- "periodEnd"
8226
- ]
8227
- }
8228
- }
8229
- },
8230
- {
8231
- "type": "object",
8232
- "description": "Credits never expire and accumulate (legacy `carry_over = true`).",
8233
- "required": [
8234
- "type"
8235
- ],
8236
- "properties": {
8237
- "type": {
8238
- "type": "string",
8239
- "enum": [
8240
- "never"
8241
- ]
8242
- }
8243
- }
8244
- },
8245
- {
8246
- "type": "object",
8247
- "description": "Rolling validity: each grant expires `months` after it was granted,\nsnapped forward to a billing-period boundary.",
8248
- "required": [
8249
- "months",
8250
- "type"
8251
- ],
8252
- "properties": {
8253
- "months": {
8254
- "type": "integer",
8255
- "format": "int32",
8256
- "minimum": 0
8257
- },
8258
- "type": {
8259
- "type": "string",
8260
- "enum": [
8261
- "monthsFromGrant"
8262
- ]
8263
- }
8264
- }
8265
- },
8266
- {
8267
- "type": "object",
8268
- "description": "Absolute cutoff: grants expire `months` after the subscription started,\nsnapped to a boundary and clamped to at least the current period end.",
8269
- "required": [
8270
- "months",
8271
- "type"
8272
- ],
8273
- "properties": {
8274
- "months": {
8275
- "type": "integer",
8276
- "format": "int32",
8277
- "minimum": 0
8278
- },
8279
- "type": {
8280
- "type": "string",
8281
- "enum": [
8282
- "monthsFromSubscription"
8283
- ]
8284
- }
8285
- }
8286
- }
8287
- ],
8288
- "description": "When the credits granted by a subscription plan at each renewal expire.",
8289
- "discriminator": {
8290
- "propertyName": "type"
8291
- }
8292
- },
8293
- "Currency": {
8294
- "type": "string",
8295
- "example": "usd"
8296
- },
8297
8556
  "DecideCasePayload": {
8298
8557
  "type": "object",
8299
8558
  "description": "A reviewer's decision on a case: the one immutable decision it gets.",
@@ -8411,6 +8670,20 @@
8411
8670
  }
8412
8671
  }
8413
8672
  },
8673
+ "DecisionDoor": {
8674
+ "type": "string",
8675
+ "description": "The door an act came through. Stored as TEXT, mirrored by the `door` CHECK constraints.\n\nTier 1 puts one closing operation behind every door; the door stays on the row because the\noperation is the same and the *route* is not — an integrator asking why a case closed wants to\nknow whether a person used the console or an SDK call did it.\n\n`Console` is the default: it is the door every decision taken before the column existed came\nthrough, save the migrated ones, which the migration stamps `Migration` explicitly.",
8676
+ "enum": [
8677
+ "CASE_ROUTE",
8678
+ "CONSOLE",
8679
+ "MANUAL_REVIEW",
8680
+ "ADMIN",
8681
+ "SDK",
8682
+ "MCP",
8683
+ "WORKER",
8684
+ "MIGRATION"
8685
+ ]
8686
+ },
8414
8687
  "DecisionProposalRecorded": {
8415
8688
  "type": "object",
8416
8689
  "description": "The decision the organization's approval matrix turned into a *proposal*.\n\nThe first signature is recorded and the case is NOT decided: someone holding one of\n`awaitingRoles`, and not the proposer, confirms it through the case route's decision-proposal\nendpoints. A legacy door that gets one answers `202` rather than `200`, so an integrator that\nreads only the status code still learns that nothing is final.",
@@ -9154,7 +9427,7 @@
9154
9427
  },
9155
9428
  "DvCapture": {
9156
9429
  "type": "object",
9157
- "description": "What a document-capture session can do. `capture` is the capture mode; `usesProxy` is `true`\nwhen the capture surface talks to the identity-verification provider through Zyphe's proxy;\n`providesLiveness` and `providesAuthenticity` are `true` when the session itself performs the\nliveness check and the document-authenticity check. When `false`, the session does not: a check\nruns only if the flow has one of its own, a liveness step or the step's `docauthChecks`, which\nare empty by default.",
9430
+ "description": "What a document-capture session can do. `capture` is the capture mode; `usesProxy` is `true`\nwhen the capture surface talks to the identity-verification provider through Zyphe's proxy;\n`providesLiveness` and `providesAuthenticity` are `true` when the session itself performs the\nliveness check and the document-authenticity check. When `false`, the session does not: a check\nruns only if the flow has one of its own, a liveness step or the step's `docauthChecks`, which\nare empty by default.\n\n`acceptedCaptures` lists every submission `process-dv-document` takes for this attempt: the\ncapture mode above, plus `DIRECT` whenever the provider can process an uploaded image. The\ncapture mode is what Zyphe's own web app renders; `acceptedCaptures` is what a backend-only\nintegrator reads to learn it may post `images` against a `SESSION` attempt. The two flags\nabove describe the capture mode, not an upload: a `DIRECT` submission to a `SESSION` attempt\nskips whatever selfie and capture-time checks that session performs (`providesLiveness`), so\nthe flow's own liveness step is the one that counts.",
9158
9431
  "required": [
9159
9432
  "capture",
9160
9433
  "usesProxy",
@@ -9162,6 +9435,12 @@
9162
9435
  "providesAuthenticity"
9163
9436
  ],
9164
9437
  "properties": {
9438
+ "acceptedCaptures": {
9439
+ "type": "array",
9440
+ "items": {
9441
+ "$ref": "#/components/schemas/DvCaptureMode"
9442
+ }
9443
+ },
9165
9444
  "capture": {
9166
9445
  "$ref": "#/components/schemas/DvCaptureMode"
9167
9446
  },
@@ -9529,6 +9808,17 @@
9529
9808
  "$ref": "#/components/schemas/DvReason"
9530
9809
  }
9531
9810
  },
9811
+ "reviewReason": {
9812
+ "oneOf": [
9813
+ {
9814
+ "type": "null"
9815
+ },
9816
+ {
9817
+ "$ref": "#/components/schemas/DvReviewReason",
9818
+ "description": "Why the verification was last sent for review by a rule. `null` when no rule did, and on\nresults sent for review before this was recorded."
9819
+ }
9820
+ ]
9821
+ },
9532
9822
  "status": {
9533
9823
  "$ref": "#/components/schemas/ResultStatus"
9534
9824
  },
@@ -9556,6 +9846,81 @@
9556
9846
  }
9557
9847
  }
9558
9848
  },
9849
+ "DvReviewReason": {
9850
+ "oneOf": [
9851
+ {
9852
+ "type": "object",
9853
+ "description": "The user failed every attempt the step allows.",
9854
+ "required": [
9855
+ "attempts",
9856
+ "maxAttempts",
9857
+ "kind"
9858
+ ],
9859
+ "properties": {
9860
+ "attempts": {
9861
+ "type": "integer",
9862
+ "format": "int32"
9863
+ },
9864
+ "kind": {
9865
+ "type": "string",
9866
+ "enum": [
9867
+ "ATTEMPTS_EXHAUSTED"
9868
+ ]
9869
+ },
9870
+ "maxAttempts": {
9871
+ "type": "integer",
9872
+ "format": "int32"
9873
+ }
9874
+ }
9875
+ },
9876
+ {
9877
+ "type": "object",
9878
+ "description": "A failed attempt matched a reason that ends the verification at once, whatever attempts\nare left. `reasons` are the matched ones.",
9879
+ "required": [
9880
+ "reasons",
9881
+ "kind"
9882
+ ],
9883
+ "properties": {
9884
+ "kind": {
9885
+ "type": "string",
9886
+ "enum": [
9887
+ "BLOCKING_REASON"
9888
+ ]
9889
+ },
9890
+ "reasons": {
9891
+ "type": "array",
9892
+ "items": {
9893
+ "$ref": "#/components/schemas/DvReason"
9894
+ }
9895
+ }
9896
+ }
9897
+ },
9898
+ {
9899
+ "type": "object",
9900
+ "description": "Too many captures in a row could not be graded at all (unreadable images, provider\nerrors). `attempts` is how many in a row.",
9901
+ "required": [
9902
+ "attempts",
9903
+ "kind"
9904
+ ],
9905
+ "properties": {
9906
+ "attempts": {
9907
+ "type": "integer",
9908
+ "format": "int32"
9909
+ },
9910
+ "kind": {
9911
+ "type": "string",
9912
+ "enum": [
9913
+ "UNUSABLE_CAPTURES"
9914
+ ]
9915
+ }
9916
+ }
9917
+ }
9918
+ ],
9919
+ "description": "Why a DV or liveness verification was taken out of the user's hands and sent for review.\n\nWritten by the attempt that ends the verification; the review that follows leaves it as it is.\nIt names the most recent escalation: a later escalation replaces it.",
9920
+ "discriminator": {
9921
+ "propertyName": "kind"
9922
+ }
9923
+ },
9559
9924
  "DvStepOutput": {
9560
9925
  "type": "object",
9561
9926
  "required": [
@@ -9702,9 +10067,6 @@
9702
10067
  "user_not_confirmed",
9703
10068
  "verify_password",
9704
10069
  "send_email",
9705
- "open_session",
9706
- "read_session",
9707
- "close_session",
9708
10070
  "user_disabled",
9709
10071
  "missing_authorization_header",
9710
10072
  "invalid_authorization_header",
@@ -9718,10 +10080,11 @@
9718
10080
  "flow_not_found",
9719
10081
  "flow_step_not_found",
9720
10082
  "organization_not_found",
10083
+ "organization_under_retention",
10084
+ "kyb_declaration_requires_discovery",
9721
10085
  "storage",
9722
10086
  "verification_request_not_found",
9723
10087
  "document_reader",
9724
- "sse",
9725
10088
  "organization_settings_not_found",
9726
10089
  "theme_not_found",
9727
10090
  "start_job",
@@ -9761,7 +10124,8 @@
9761
10124
  "passkey_authentication",
9762
10125
  "internal",
9763
10126
  "invalid_email",
9764
- "disposable_email",
10127
+ "email_domain_not_allowed",
10128
+ "work_email_required",
9765
10129
  "graph_validation",
9766
10130
  "external_api",
9767
10131
  "share_already_has_write_access",
@@ -9789,12 +10153,53 @@
9789
10153
  "kyb_case_reason_required",
9790
10154
  "kyb_case_decision_not_authorized",
9791
10155
  "kyb_case_second_signature_required",
10156
+ "kyb_case_contact_required",
10157
+ "kyb_case_contact_locked",
9792
10158
  "compliance_policy_open_questions",
9793
10159
  "tin_check_invalid_tin",
9794
10160
  "tin_check_unavailable",
9795
10161
  "tin_check_ein_required",
9796
10162
  "tin_check_mismatch",
9797
- "tin_check_attempts_exhausted"
10163
+ "tin_check_attempts_exhausted",
10164
+ "flow_template_not_found",
10165
+ "flow_template_key_taken",
10166
+ "flow_template_invalid_key",
10167
+ "flow_template_source_is_template",
10168
+ "flow_template_analyst_entry_invalid",
10169
+ "flow_template_kyc_flow_invalid",
10170
+ "flow_template_kyc_in_use",
10171
+ "flow_template_empty",
10172
+ "flow_template_kind_mismatch",
10173
+ "flow_template_steps_invalid",
10174
+ "flow_template_kyc_not_active",
10175
+ "flow_template_kyc_not_available",
10176
+ "flow_template_sandbox_only",
10177
+ "flow_template_kyc_missing_in_production",
10178
+ "flow_draft_not_found",
10179
+ "flow_draft_version_conflict",
10180
+ "flow_draft_name_invalid",
10181
+ "flow_draft_incomplete",
10182
+ "flow_draft_kyb_invalid",
10183
+ "flow_draft_agent_research_invalid",
10184
+ "flow_draft_business_info_form_invalid",
10185
+ "flow_draft_documents_invalid",
10186
+ "flow_draft_ubos_invalid",
10187
+ "flow_draft_directors_invalid",
10188
+ "two_factor_invalid_code",
10189
+ "two_factor_locked",
10190
+ "two_factor_already_enabled",
10191
+ "two_factor_not_enabled",
10192
+ "two_factor_required_by_organization",
10193
+ "two_factor_required_by_platform",
10194
+ "two_factor_reauthentication_required",
10195
+ "two_factor_reauthentication_failed",
10196
+ "two_factor_reauthentication_locked",
10197
+ "company_website_analysis_not_found",
10198
+ "company_website_analysis_invalid_url",
10199
+ "company_website_analysis_limit_reached",
10200
+ "company_website_analysis_not_completed",
10201
+ "company_website_analysis_no_brand",
10202
+ "company_website_analysis_disabled"
9798
10203
  ]
9799
10204
  },
9800
10205
  "EstimateBasis": {
@@ -9822,6 +10227,13 @@
9822
10227
  "type": "string",
9823
10228
  "format": "uuid",
9824
10229
  "description": "The unique identifier of the action node."
10230
+ },
10231
+ "redirectUrl": {
10232
+ "type": [
10233
+ "string",
10234
+ "null"
10235
+ ],
10236
+ "description": "Where the user continues after a flow router action: a path on the hosted flow app, with\nthe query parameters that open the verification request created in the target flow. Only\nreturned to the user's own session."
9825
10237
  }
9826
10238
  }
9827
10239
  },
@@ -10097,7 +10509,6 @@
10097
10509
  "type": "object",
10098
10510
  "description": "Result of a request to extend an ownership discovery, with one decision per requested node.\nNodes are accepted or rejected individually: the request fails with `400` only when every node\nis rejected, and otherwise returns `202` with this report.",
10099
10511
  "required": [
10100
- "verificationRequestId",
10101
10512
  "estimatedCreditsTotal",
10102
10513
  "expansions"
10103
10514
  ],
@@ -10114,9 +10525,12 @@
10114
10525
  }
10115
10526
  },
10116
10527
  "verificationRequestId": {
10117
- "type": "string",
10528
+ "type": [
10529
+ "string",
10530
+ "null"
10531
+ ],
10118
10532
  "format": "uuid",
10119
- "description": "The KYB's anchor verification request — the websocket room for `discovery-update`."
10533
+ "description": "The KYB's anchor verification request — the websocket room for `discovery-update`. Omitted for a case nobody\nhas been anchored to yet, which has no room to push to."
10120
10534
  }
10121
10535
  }
10122
10536
  },
@@ -10437,9 +10851,15 @@
10437
10851
  "slug",
10438
10852
  "successUrl",
10439
10853
  "steps",
10440
- "jdm"
10854
+ "jdm",
10855
+ "aiChatbotEnabled",
10856
+ "isTemplate"
10441
10857
  ],
10442
10858
  "properties": {
10859
+ "aiChatbotEnabled": {
10860
+ "type": "boolean",
10861
+ "description": "Whether the verification failure screen offers the AI support chatbot."
10862
+ },
10443
10863
  "createdAt": {
10444
10864
  "type": [
10445
10865
  "string",
@@ -10457,6 +10877,10 @@
10457
10877
  "type": "string",
10458
10878
  "format": "uuid"
10459
10879
  },
10880
+ "isTemplate": {
10881
+ "type": "boolean",
10882
+ "description": "The flow backs a flow template: it is edited in the builder but never published, started or\nlisted, only copied. The dashboard shows it as a template and hides what only applies to a\nlive flow."
10883
+ },
10460
10884
  "jdm": {
10461
10885
  "$ref": "#/components/schemas/WorkflowGraph"
10462
10886
  },
@@ -10492,6 +10916,23 @@
10492
10916
  }
10493
10917
  }
10494
10918
  },
10919
+ "FlowAmlScreening": {
10920
+ "type": "object",
10921
+ "description": "A flow's AML screening of the people it verifies (ENG-1542). Each person's first screening in a\nflow result is charged at the organization's AML rate; ongoing monitoring re-screens them\nperiodically, billed per subject per year where the organization prices it. A company's KYB\nkeeps its case screening, which this does not govern.",
10922
+ "required": [
10923
+ "enabled"
10924
+ ],
10925
+ "properties": {
10926
+ "enabled": {
10927
+ "type": "boolean",
10928
+ "description": "Whether the people the flow verifies are screened."
10929
+ },
10930
+ "ongoingMonitoring": {
10931
+ "type": "boolean",
10932
+ "description": "Whether they stay under ongoing monitoring."
10933
+ }
10934
+ }
10935
+ },
10495
10936
  "FlowResult": {
10496
10937
  "type": "object",
10497
10938
  "required": [
@@ -10666,6 +11107,59 @@
10666
11107
  }
10667
11108
  }
10668
11109
  },
11110
+ "FlowResultStatusSummary": {
11111
+ "type": "object",
11112
+ "description": "Where a user's verification stands, without any of the data collected from them.",
11113
+ "required": [
11114
+ "flowResultId",
11115
+ "flowSlug",
11116
+ "status",
11117
+ "passed",
11118
+ "customData",
11119
+ "createdAt",
11120
+ "updatedAt"
11121
+ ],
11122
+ "properties": {
11123
+ "createdAt": {
11124
+ "type": "string",
11125
+ "format": "date-time"
11126
+ },
11127
+ "customData": {
11128
+ "type": "object"
11129
+ },
11130
+ "email": {
11131
+ "type": [
11132
+ "string",
11133
+ "null"
11134
+ ]
11135
+ },
11136
+ "flowId": {
11137
+ "type": [
11138
+ "string",
11139
+ "null"
11140
+ ],
11141
+ "format": "uuid"
11142
+ },
11143
+ "flowResultId": {
11144
+ "type": "string",
11145
+ "format": "uuid"
11146
+ },
11147
+ "flowSlug": {
11148
+ "type": "string"
11149
+ },
11150
+ "passed": {
11151
+ "type": "boolean",
11152
+ "description": "`true` when the user passed the verification, that is when `status` is `COMPLETED`."
11153
+ },
11154
+ "status": {
11155
+ "$ref": "#/components/schemas/VerificationRequestStatus"
11156
+ },
11157
+ "updatedAt": {
11158
+ "type": "string",
11159
+ "format": "date-time"
11160
+ }
11161
+ }
11162
+ },
10669
11163
  "FlowStep": {
10670
11164
  "oneOf": [
10671
11165
  {
@@ -13353,9 +13847,23 @@
13353
13847
  "locale"
13354
13848
  ],
13355
13849
  "properties": {
13850
+ "firstName": {
13851
+ "type": [
13852
+ "string",
13853
+ "null"
13854
+ ],
13855
+ "description": "The person's first name, as typed at registration. Only an account registered through\n`/auth/register` (organization staff) has one: never set for a GUEST, the person being\nverified."
13856
+ },
13356
13857
  "lastEnvironmentIsSandbox": {
13357
13858
  "type": "boolean"
13358
13859
  },
13860
+ "lastName": {
13861
+ "type": [
13862
+ "string",
13863
+ "null"
13864
+ ],
13865
+ "description": "The person's last name, as typed at registration. Same scope as the first name."
13866
+ },
13359
13867
  "locale": {
13360
13868
  "$ref": "#/components/schemas/Locale"
13361
13869
  },
@@ -13444,6 +13952,17 @@
13444
13952
  "type"
13445
13953
  ],
13446
13954
  "properties": {
13955
+ "binding": {
13956
+ "oneOf": [
13957
+ {
13958
+ "type": "null"
13959
+ },
13960
+ {
13961
+ "$ref": "#/components/schemas/BusinessInfoField",
13962
+ "description": "The business-information key this field answers, in a KYB step's business-details\nform. Meaningless in any other form."
13963
+ }
13964
+ ]
13965
+ },
13447
13966
  "label": {
13448
13967
  "type": "object",
13449
13968
  "additionalProperties": {
@@ -13507,6 +14026,17 @@
13507
14026
  "type"
13508
14027
  ],
13509
14028
  "properties": {
14029
+ "binding": {
14030
+ "oneOf": [
14031
+ {
14032
+ "type": "null"
14033
+ },
14034
+ {
14035
+ "$ref": "#/components/schemas/BusinessInfoField",
14036
+ "description": "The business-information key this field answers, in a KYB step's business-details\nform. Meaningless in any other form."
14037
+ }
14038
+ ]
14039
+ },
13510
14040
  "label": {
13511
14041
  "type": "object",
13512
14042
  "additionalProperties": {
@@ -13575,6 +14105,17 @@
13575
14105
  "type"
13576
14106
  ],
13577
14107
  "properties": {
14108
+ "binding": {
14109
+ "oneOf": [
14110
+ {
14111
+ "type": "null"
14112
+ },
14113
+ {
14114
+ "$ref": "#/components/schemas/BusinessInfoField",
14115
+ "description": "The business-information key this field answers, in a KYB step's business-details\nform. Meaningless in any other form."
14116
+ }
14117
+ ]
14118
+ },
13578
14119
  "label": {
13579
14120
  "type": "object",
13580
14121
  "additionalProperties": {
@@ -13643,6 +14184,17 @@
13643
14184
  "type"
13644
14185
  ],
13645
14186
  "properties": {
14187
+ "binding": {
14188
+ "oneOf": [
14189
+ {
14190
+ "type": "null"
14191
+ },
14192
+ {
14193
+ "$ref": "#/components/schemas/BusinessInfoField",
14194
+ "description": "The business-information key this field answers, in a KYB step's business-details\nform. Meaningless in any other form."
14195
+ }
14196
+ ]
14197
+ },
13646
14198
  "label": {
13647
14199
  "type": "object",
13648
14200
  "additionalProperties": {
@@ -13711,6 +14263,17 @@
13711
14263
  "type"
13712
14264
  ],
13713
14265
  "properties": {
14266
+ "binding": {
14267
+ "oneOf": [
14268
+ {
14269
+ "type": "null"
14270
+ },
14271
+ {
14272
+ "$ref": "#/components/schemas/BusinessInfoField",
14273
+ "description": "The business-information key this field answers, in a KYB step's business-details\nform. Meaningless in any other form."
14274
+ }
14275
+ ]
14276
+ },
13714
14277
  "label": {
13715
14278
  "type": "object",
13716
14279
  "additionalProperties": {
@@ -13772,6 +14335,17 @@
13772
14335
  "type"
13773
14336
  ],
13774
14337
  "properties": {
14338
+ "binding": {
14339
+ "oneOf": [
14340
+ {
14341
+ "type": "null"
14342
+ },
14343
+ {
14344
+ "$ref": "#/components/schemas/BusinessInfoField",
14345
+ "description": "The business-information key this field answers, in a KYB step's business-details\nform. Meaningless in any other form."
14346
+ }
14347
+ ]
14348
+ },
13775
14349
  "label": {
13776
14350
  "type": "object",
13777
14351
  "additionalProperties": {
@@ -13836,6 +14410,17 @@
13836
14410
  "type"
13837
14411
  ],
13838
14412
  "properties": {
14413
+ "binding": {
14414
+ "oneOf": [
14415
+ {
14416
+ "type": "null"
14417
+ },
14418
+ {
14419
+ "$ref": "#/components/schemas/BusinessInfoField",
14420
+ "description": "The business-information key this field answers, in a KYB step's business-details\nform. Meaningless in any other form."
14421
+ }
14422
+ ]
14423
+ },
13839
14424
  "label": {
13840
14425
  "type": "object",
13841
14426
  "additionalProperties": {
@@ -13915,6 +14500,17 @@
13915
14500
  "type"
13916
14501
  ],
13917
14502
  "properties": {
14503
+ "binding": {
14504
+ "oneOf": [
14505
+ {
14506
+ "type": "null"
14507
+ },
14508
+ {
14509
+ "$ref": "#/components/schemas/BusinessInfoField",
14510
+ "description": "The business-information key this field answers, in a KYB step's business-details\nform. Meaningless in any other form."
14511
+ }
14512
+ ]
14513
+ },
13918
14514
  "label": {
13919
14515
  "type": "object",
13920
14516
  "additionalProperties": {
@@ -14071,6 +14667,18 @@
14071
14667
  "ENHANCED"
14072
14668
  ]
14073
14669
  },
14670
+ "KybCaseFlag": {
14671
+ "type": "string",
14672
+ "description": "A flag a KYB case carries on the Home page and in the Inbox: something about the file a reviewer should see\nbefore anything else.",
14673
+ "enum": [
14674
+ "SANCTIONS_HIT",
14675
+ "PEP",
14676
+ "ADVERSE_MEDIA",
14677
+ "REGISTER_MISMATCH",
14678
+ "MISSING_DOCUMENTS",
14679
+ "OWNER_KYC_PENDING"
14680
+ ]
14681
+ },
14074
14682
  "KybCaseOfficersResponse": {
14075
14683
  "type": "object",
14076
14684
  "description": "A KYB case's officers: the ultimate beneficial owners and the directors the case screens and\ninvites into KYC. What the case's officer routes answer — the roster as it stands after the act.",
@@ -14125,6 +14733,11 @@
14125
14733
  "AUTO_PILOT"
14126
14734
  ]
14127
14735
  },
14736
+ "KybCaseReportPdf": {
14737
+ "type": "string",
14738
+ "format": "binary",
14739
+ "description": "The case's KYB report: the PDF file itself, sent as the response body. Described as binary so\ngenerated clients read it as a file rather than as JSON."
14740
+ },
14128
14741
  "KybCaseStatus": {
14129
14742
  "type": "string",
14130
14743
  "description": "The lifecycle status of a KYB case. `APPROVED`, `REJECTED` and `CANCELLED` close the case; a\nclosed case can later be reopened (for example when the applicant resubmits or a periodic\nreview is due), which moves it back to `OPEN` or `PROCESSING`.",
@@ -14139,6 +14752,14 @@
14139
14752
  "CANCELLED"
14140
14753
  ]
14141
14754
  },
14755
+ "KybCaseType": {
14756
+ "type": "string",
14757
+ "description": "What kind of review a case is: the first look at a company, or a later one.\n\nDerived at read time, like the rest of this module, from whether the case re-verifies an\nearlier one and from its transitions. There is no `EVENT_DRIVEN` yet: nothing opens a case on\nan event.",
14758
+ "enum": [
14759
+ "ONBOARDING",
14760
+ "PERIODIC_REVIEW"
14761
+ ]
14762
+ },
14142
14763
  "KybCommunication": {
14143
14764
  "type": "object",
14144
14765
  "required": [
@@ -14224,6 +14845,25 @@
14224
14845
  "default": "true",
14225
14846
  "example": "true"
14226
14847
  },
14848
+ "businessInfoForm": {
14849
+ "oneOf": [
14850
+ {
14851
+ "type": "null"
14852
+ },
14853
+ {
14854
+ "$ref": "#/components/schemas/Form",
14855
+ "description": "The business-details form the step asks: the one `businessInfoFormId` names, or the\nstandard one. Filled in when the flow is read, over whatever the config carried."
14856
+ }
14857
+ ]
14858
+ },
14859
+ "businessInfoFormId": {
14860
+ "type": [
14861
+ "string",
14862
+ "null"
14863
+ ],
14864
+ "format": "uuid",
14865
+ "description": "The form the company answers about itself, from the organization's form library. Its\nfields bound to a business-information key are the company's business information; the\nothers are the organization's own questions. Omitted: the platform's standard form."
14866
+ },
14227
14867
  "collectDirectors": {
14228
14868
  "type": "boolean",
14229
14869
  "default": "false",
@@ -14414,14 +15054,11 @@
14414
15054
  "KybDirectorsConfig": {
14415
15055
  "type": "object",
14416
15056
  "description": "Configuration for the `KYB_DIRECTORS` satellite step.\n\nCarries the director declaration settings previously bundled into the monolithic\n`KybConfig` (gated there by `collect_directors: bool`). The existence of this step\nreplaces that boolean. `kyb_step_id` points at the anchor `KYB` step.\n\n`kyc_flow_id` is a copy independent from `KybUbosConfig.kyc_flow_id` — this enables\na *different* KYC flow for directors than for UBOs, a new capability.",
14417
- "required": [
14418
- "kybStepId"
14419
- ],
14420
15057
  "properties": {
14421
15058
  "kybStepId": {
14422
15059
  "type": "string",
14423
15060
  "format": "uuid",
14424
- "description": "The anchor KYB step this directors satellite belongs to."
15061
+ "description": "The anchor KYB step this directors satellite belongs to. See `KybDocumentsConfig::kyb_step_id`."
14425
15062
  },
14426
15063
  "kycFlowId": {
14427
15064
  "type": "string",
@@ -14749,7 +15386,7 @@
14749
15386
  },
14750
15387
  "KybDocumentRequestType": {
14751
15388
  "type": "string",
14752
- "description": "The type of a KYB document request.\n\n- `Standard` — operator requests a named document (e.g. certificate of incorporation). The client uploads a file.\n- `Clarification` — operator requests the client to re-confirm or update specific business information fields.\n Supports per-field review via `field_statuses`.\n- `UboDeclaration` — reopens the `KYB_UBOS` satellite for a fresh applicant declaration. Used to\n regress a discovery-backed flow's UBOs part back to awaiting-client when the graph produced\n nothing usable.\n- `DirectorDeclaration` — same as `UboDeclaration`, for the `KYB_DIRECTORS` satellite.\n- `OwnershipConfirmation` — opened by a reopening (a quality review's disagreement or the\n periodic review), never by hand: the company is asked to confirm, through the existing request\n link, that the owners and officers on file are still the ones there are. The answer lands as\n the applicant's own assertions; while it is open the case waits on the applicant, and\n deciding without it takes an exception like any other open request.",
15389
+ "description": "The type of a KYB document request.\n\n- `Standard` — operator requests a named document (e.g. certificate of incorporation). The client uploads a file.\n- `Clarification` — operator requests the client to re-confirm or update specific business information fields.\n Supports per-field review via `field_statuses`.\n- `UboDeclaration` — reopens the `KYB_UBOS` satellite for a fresh applicant declaration. Used to\n regress a discovery-backed flow's UBOs part back to awaiting-client when the graph produced\n nothing usable.\n- `DirectorDeclaration` — same as `UboDeclaration`, for the `KYB_DIRECTORS` satellite.\n- `OwnershipConfirmation` — opened by the platform, never by hand: by a reopening (a quality\n review's disagreement or the periodic review), or by owners the company register reports that\n the declaration left out. The company is asked to confirm, through the existing request\n link, that the owners and officers on file are still the ones there are. The answer lands as\n the applicant's own assertions; while it is open the case waits on the applicant, and\n deciding without it takes an exception like any other open request.",
14753
15390
  "enum": [
14754
15391
  "STANDARD",
14755
15392
  "CLARIFICATION",
@@ -14779,9 +15416,6 @@
14779
15416
  "KybDocumentsConfig": {
14780
15417
  "type": "object",
14781
15418
  "description": "Configuration for the `KYB_DOCUMENTS` satellite step.\n\nCarries the document requirements previously bundled into the monolithic `KybConfig`.\n`kyb_step_id` points at the anchor `KYB` step (same pattern as `LivenessConfig.document_step_id`).\n\n**Deprecated document inputs.** `certificateOfIncorporation`, `articlesOfAssociation`,\n`organizationalStructureChart`, `proofOfAttorney` and `customDocuments` are still accepted on\ninput and folded into `customCountryDocuments[\"**\"]` (see\n`KybDocumentCatalog::fold_legacy_documents`); they are never serialized.",
14782
- "required": [
14783
- "kybStepId"
14784
- ],
14785
15419
  "properties": {
14786
15420
  "customCountryDocuments": {
14787
15421
  "type": "object",
@@ -14815,7 +15449,7 @@
14815
15449
  "kybStepId": {
14816
15450
  "type": "string",
14817
15451
  "format": "uuid",
14818
- "description": "The anchor KYB step this documents satellite belongs to."
15452
+ "description": "The anchor KYB step this documents satellite belongs to. May be omitted where the anchor\ndoesn't exist yet (a flow setup draft); a step can't be saved without one."
14819
15453
  },
14820
15454
  "labels": {
14821
15455
  "type": "object",
@@ -14854,6 +15488,34 @@
14854
15488
  }
14855
15489
  }
14856
15490
  },
15491
+ "KybFormAnswer": {
15492
+ "type": "object",
15493
+ "description": "The answer the case holds to one of the organization's own business-details questions.",
15494
+ "required": [
15495
+ "key",
15496
+ "field"
15497
+ ],
15498
+ "properties": {
15499
+ "field": {
15500
+ "$ref": "#/components/schemas/InputField",
15501
+ "description": "The question as the form asks it: its labels, type and choices. Its own value is left\nout: the answer is `value`."
15502
+ },
15503
+ "key": {
15504
+ "type": "string",
15505
+ "description": "The key the cross-check, the clarifications and the edits name it by: `form.<name>`."
15506
+ },
15507
+ "text": {
15508
+ "type": [
15509
+ "string",
15510
+ "null"
15511
+ ],
15512
+ "description": "The answer as text, as the cross-check compares it: a select's choice by its label, a date\nby its day."
15513
+ },
15514
+ "value": {
15515
+ "description": "The answer as the case holds it now, an analyst's correction included; `None` unanswered."
15516
+ }
15517
+ }
15518
+ },
14857
15519
  "KybMetadata": {
14858
15520
  "type": "object",
14859
15521
  "description": "The KYB result metadata bag. Empty by default.",
@@ -14869,6 +15531,10 @@
14869
15531
  }
14870
15532
  ]
14871
15533
  },
15534
+ "example": {
15535
+ "type": "boolean",
15536
+ "description": "Whether this is the example case an organization is created with rather than a business\nsomebody submitted: fictional company, sample documents, no register queried and nothing\nbilled. Absent on every other result."
15537
+ },
14872
15538
  "ownershipStructure": {
14873
15539
  "oneOf": [
14874
15540
  {
@@ -14949,6 +15615,16 @@
14949
15615
  ],
14950
15616
  "format": "uuid"
14951
15617
  },
15618
+ "businessInfoRequiredFields": {
15619
+ "type": [
15620
+ "array",
15621
+ "null"
15622
+ ],
15623
+ "items": {
15624
+ "$ref": "#/components/schemas/BusinessInfoField"
15625
+ },
15626
+ "description": "The business information the case must have: the keys its KYB step's business-details form\nrequired. `None` when not recorded, or not loaded: every field. Set by callers that read\nthe case, like `document_checks`."
15627
+ },
14952
15628
  "businessInformation": {
14953
15629
  "oneOf": [
14954
15630
  {
@@ -15033,6 +15709,16 @@
15033
15709
  ],
15034
15710
  "format": "uuid"
15035
15711
  },
15712
+ "formAnswers": {
15713
+ "type": [
15714
+ "array",
15715
+ "null"
15716
+ ],
15717
+ "items": {
15718
+ "$ref": "#/components/schemas/KybFormAnswer"
15719
+ },
15720
+ "description": "The answers to the organization's own business-details questions, in the order its form\nasks them: fields of the case like the business information, compared and clarified under\ntheir key (`form.<name>`). `None` when not loaded; set by callers that read the case, like\n`document_checks`."
15721
+ },
15036
15722
  "fundedAt": {
15037
15723
  "type": [
15038
15724
  "string",
@@ -15226,9 +15912,6 @@
15226
15912
  "KybUbosConfig": {
15227
15913
  "type": "object",
15228
15914
  "description": "Configuration for the `KYB_UBOS` satellite step.\n\nCarries the UBO declaration + child-KYC invitation settings previously bundled\ninto the monolithic `KybConfig`. `kyb_step_id` points at the anchor `KYB` step.",
15229
- "required": [
15230
- "kybStepId"
15231
- ],
15232
15915
  "properties": {
15233
15916
  "autoSendUboKycEmail": {
15234
15917
  "type": "boolean",
@@ -15239,7 +15922,7 @@
15239
15922
  "kybStepId": {
15240
15923
  "type": "string",
15241
15924
  "format": "uuid",
15242
- "description": "The anchor KYB step this UBOs satellite belongs to."
15925
+ "description": "The anchor KYB step this UBOs satellite belongs to. See `KybDocumentsConfig::kyb_step_id`."
15243
15926
  },
15244
15927
  "kycFlowId": {
15245
15928
  "type": "string",
@@ -15289,6 +15972,11 @@
15289
15972
  }
15290
15973
  }
15291
15974
  },
15975
+ "KycReportPdf": {
15976
+ "type": "string",
15977
+ "format": "binary",
15978
+ "description": "A document verification result's KYC report: the PDF file itself, sent as the response body.\nDescribed as binary so generated clients read it as a file rather than as JSON."
15979
+ },
15292
15980
  "ListOrganizationFlowResultsResponse": {
15293
15981
  "type": "object",
15294
15982
  "required": [
@@ -16580,6 +17268,16 @@
16580
17268
  }
16581
17269
  }
16582
17270
  },
17271
+ "PrincipalKind": {
17272
+ "type": "string",
17273
+ "description": "What kind of principal took an act. Stored as TEXT, mirrored by the `actorKind` CHECK\nconstraints.\n\nRecorded, never enforced: Casbin remains the whole authorisation boundary, and an organization\nthat does not want its bot deciding restricts it by role and by the flow's agentic mode. What\nthis buys is that a sealed decision can say a bot took it, and whose bot — which no row could\nsay before, because a decision named one identity id and nothing else.\n\n`Person` is the default because it is the only kind an unmarked historical row can be: every\nwriter that is not a person learned to say so in the same change that added the column.",
17274
+ "enum": [
17275
+ "PERSON",
17276
+ "BOT",
17277
+ "API_KEY",
17278
+ "SYSTEM"
17279
+ ]
17280
+ },
16583
17281
  "ProcessAdditionalData": {
16584
17282
  "type": "object",
16585
17283
  "description": "Typed representation of process_additional_data stored in DV results.\n\nThis struct captures all the additional data associated with document\nverification processing, including document scan status, image quality\nchecks, security checks, and liveness data.\n\n# Deserialization\n\nSupports both new abstract format and legacy format. The main difference\nis in the `imageQuality` field:\n\n**New format:**\n```json\n{\n \"imageQuality\": [\n { \"checkType\": \"focus\", \"result\": \"passed\", \"probability\": 97 }\n ]\n}\n```\n\n**Legacy format:**\n```json\n{\n \"imageQuality\": [\n {\n \"count\": 6,\n \"list\": [\n { \"type\": 1, \"result\": 0, \"probability\": 97, ... }\n ],\n \"result\": 0\n }\n ]\n}\n```",
@@ -16947,7 +17645,6 @@
16947
17645
  "type": "object",
16948
17646
  "description": "Response for `POST .../kyb-cases/{case_id}/documents/purchase`. Partial acceptance: only a\nrequest where *every* document is refused is a `400`.",
16949
17647
  "required": [
16950
- "verificationRequestId",
16951
17648
  "quotedCreditsTotal",
16952
17649
  "purchases"
16953
17650
  ],
@@ -16964,9 +17661,12 @@
16964
17661
  "description": "Sum of `quotedCredits` over accepted documents only."
16965
17662
  },
16966
17663
  "verificationRequestId": {
16967
- "type": "string",
17664
+ "type": [
17665
+ "string",
17666
+ "null"
17667
+ ],
16968
17668
  "format": "uuid",
16969
- "description": "The KYB's anchor verification request — the websocket room for `discovery-update`."
17669
+ "description": "The KYB's anchor verification request — the websocket room for `discovery-update`. Omitted for a case nobody\nhas been anchored to yet, which has no room to push to."
16970
17670
  }
16971
17671
  }
16972
17672
  },
@@ -17226,7 +17926,8 @@
17226
17926
  "postcode",
17227
17927
  "country",
17228
17928
  "socialSecurityNumber",
17229
- "expirationDate"
17929
+ "expirationDate",
17930
+ "documentNumber"
17230
17931
  ]
17231
17932
  },
17232
17933
  "ResultControlOperation": {
@@ -17913,6 +18614,66 @@
17913
18614
  }
17914
18615
  }
17915
18616
  },
18617
+ "SearchFlowResultsRequest": {
18618
+ "type": "object",
18619
+ "description": "What to look flow results up by. At least one of `email` and `customData` is required; when\nseveral criteria are given, a flow result has to match all of them.",
18620
+ "properties": {
18621
+ "customData": {
18622
+ "type": [
18623
+ "object",
18624
+ "null"
18625
+ ],
18626
+ "description": "Custom data the flow result has to carry: every key given here has to be present with\nthe same value. Keys you leave out are not compared."
18627
+ },
18628
+ "email": {
18629
+ "type": [
18630
+ "string",
18631
+ "null"
18632
+ ],
18633
+ "description": "Email address of the user, as given when the verification request was created. Matched\nexactly, ignoring letter case.",
18634
+ "example": "jane.doe@example.com"
18635
+ },
18636
+ "flowSlug": {
18637
+ "type": [
18638
+ "string",
18639
+ "null"
18640
+ ],
18641
+ "description": "Limits the search to one flow. Without it, every flow of the organization is searched.",
18642
+ "example": "kyc-flow"
18643
+ },
18644
+ "skip": {
18645
+ "type": "integer",
18646
+ "format": "int32",
18647
+ "minimum": 0
18648
+ },
18649
+ "take": {
18650
+ "type": "integer",
18651
+ "format": "int32",
18652
+ "example": 20,
18653
+ "minimum": 0
18654
+ }
18655
+ }
18656
+ },
18657
+ "SearchFlowResultsResponse": {
18658
+ "type": "object",
18659
+ "required": [
18660
+ "page",
18661
+ "totalCount"
18662
+ ],
18663
+ "properties": {
18664
+ "page": {
18665
+ "type": "array",
18666
+ "items": {
18667
+ "$ref": "#/components/schemas/FlowResultStatusSummary"
18668
+ }
18669
+ },
18670
+ "totalCount": {
18671
+ "type": "integer",
18672
+ "format": "int64",
18673
+ "minimum": 0
18674
+ }
18675
+ }
18676
+ },
17916
18677
  "SecurityCheckType": {
17917
18678
  "type": "string",
17918
18679
  "description": "Canonical security/authenticity check types.",
@@ -17978,6 +18739,17 @@
17978
18739
  "Settings": {
17979
18740
  "type": "object",
17980
18741
  "properties": {
18742
+ "amlScreening": {
18743
+ "oneOf": [
18744
+ {
18745
+ "type": "null"
18746
+ },
18747
+ {
18748
+ "$ref": "#/components/schemas/FlowAmlScreening",
18749
+ "description": "The flow's AML screening and ongoing monitoring. `None` on a flow created before the\nsetting; see `SettingsData::V0::aml_screening`."
18750
+ }
18751
+ ]
18752
+ },
17981
18753
  "askPasskeyCreation": {
17982
18754
  "type": [
17983
18755
  "boolean",
@@ -18020,6 +18792,13 @@
18020
18792
  ],
18021
18793
  "description": "When true (default), always require vault unlock for one-click KYC even if a grant already exists.\nWhen false, skip vault unlock if an active KYC grant already exists for the organization.\nOptional so that patch requests only write this field when explicitly provided."
18022
18794
  },
18795
+ "oneClickSkipDocumentSelection": {
18796
+ "type": [
18797
+ "boolean",
18798
+ "null"
18799
+ ],
18800
+ "description": "When true, a returning holder is not asked which vault document to reuse: a document\nthey already shared with this organization is reused directly. Documents only ever\nshared with other organizations still need the holder to pick them. Defaults to false.\nOptional so that patch requests only write this field when explicitly provided."
18801
+ },
18023
18802
  "published": {
18024
18803
  "type": "boolean"
18025
18804
  },
@@ -19495,89 +20274,6 @@
19495
20274
  }
19496
20275
  }
19497
20276
  },
19498
- "TopupPack": {
19499
- "type": "object",
19500
- "description": "A top-up pack: a one-time purchase that adds credits to the organization's balance and\ncan optionally unlock products.",
19501
- "required": [
19502
- "priceId",
19503
- "name",
19504
- "credits",
19505
- "amountCents",
19506
- "currency"
19507
- ],
19508
- "properties": {
19509
- "amountCents": {
19510
- "type": "integer",
19511
- "format": "int64",
19512
- "description": "Price amount in the smallest currency unit (e.g. cents)"
19513
- },
19514
- "credits": {
19515
- "type": "integer",
19516
- "format": "int64",
19517
- "description": "Number of credits granted by this pack, from metadata `credits`"
19518
- },
19519
- "currency": {
19520
- "$ref": "#/components/schemas/Currency"
19521
- },
19522
- "enabledProducts": {
19523
- "type": "array",
19524
- "items": {
19525
- "$ref": "#/components/schemas/ProductType"
19526
- },
19527
- "description": "Products this pack enables in the production environment when it is purchased. Empty\nwhen the pack grants credits only."
19528
- },
19529
- "isPrivate": {
19530
- "type": "boolean",
19531
- "description": "`true` when the price carries `zyphe_visibility=private` metadata: a bespoke pack that\nmust never appear in the public catalog and is usable only by the organization named in\n`organization_id`. Defaults to `false` so an untagged price stays public, and so cached\ncatalog entries serialized before this field existed still deserialize."
19532
- },
19533
- "name": {
19534
- "type": "string",
19535
- "description": "Display name: nickname > product name > price ID"
19536
- },
19537
- "organizationId": {
19538
- "type": [
19539
- "string",
19540
- "null"
19541
- ],
19542
- "description": "The organization a private pack belongs to, from price metadata `organization_id`.\nMeaningless (and normally absent) on a public pack. A private pack WITHOUT this is\nusable by nobody — failing closed beats leaking a bespoke price to every customer."
19543
- },
19544
- "priceId": {
19545
- "type": "string",
19546
- "description": "The pack's price ID. Pass it as `priceId` when creating a top-up checkout session."
19547
- },
19548
- "sandboxEnabledProducts": {
19549
- "type": "array",
19550
- "items": {
19551
- "$ref": "#/components/schemas/ProductType"
19552
- },
19553
- "description": "Products this pack enables in the sandbox environment when it is purchased. Separate\nfrom `enabledProducts` because an organization may be allowed to try a product in\nsandbox without being able to use it in production. Empty when none."
19554
- },
19555
- "validityMonths": {
19556
- "type": [
19557
- "integer",
19558
- "null"
19559
- ],
19560
- "format": "int32",
19561
- "description": "Optional validity window (in months) for the granted credits, from metadata `validity_months`",
19562
- "minimum": 0
19563
- }
19564
- }
19565
- },
19566
- "TopupPacksResponse": {
19567
- "type": "object",
19568
- "description": "Response for the top-up pack catalog endpoint (`GET .../billing/topup-packs`).",
19569
- "required": [
19570
- "packs"
19571
- ],
19572
- "properties": {
19573
- "packs": {
19574
- "type": "array",
19575
- "items": {
19576
- "$ref": "#/components/schemas/TopupPack"
19577
- }
19578
- }
19579
- }
19580
- },
19581
20277
  "TraversalSummary": {
19582
20278
  "type": "object",
19583
20279
  "description": "Summary of the automatic ownership discovery: the relevance threshold it uses, its credit\nbudget, what it has spent so far and, once finished, how it ended. Returned to your\norganization only, never to the applicant.",
@@ -19779,9 +20475,15 @@
19779
20475
  "validation_kyb_config_match",
19780
20476
  "validation_kyb_config_already_uses_this_kyc_flow_id",
19781
20477
  "validation_kyb_require_kyc_needs_kyc_flow",
20478
+ "validation_copy_flow_kyc_flow_not_mapped",
20479
+ "validation_flow_backs_template",
20480
+ "validation_flow_holds_example_case",
20481
+ "validation_kyc_flow_is_template",
19782
20482
  "validation_kyb_moderation_status_wrong",
19783
20483
  "validation_kyb_missing_required_documents",
19784
20484
  "validation_form_name_exists",
20485
+ "validation_kyb_business_info_form_not_found",
20486
+ "validation_kyb_business_info_form_invalid",
19785
20487
  "validation_database_error",
19786
20488
  "validation_flow_name_invalid",
19787
20489
  "validation_flow_slug_name_invalid",