@zyphe-sdk/core 0.3.1 → 0.5.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/README.md +21 -5
- package/dist/index.d.ts +2782 -484
- package/dist/index.js +204 -12
- package/dist/index.js.map +1 -1
- package/dist/openapi.d.ts +1746 -150
- package/dist/openapi.json +3437 -526
- package/package.json +1 -1
package/dist/openapi.json
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
"license": {
|
|
7
7
|
"name": ""
|
|
8
8
|
},
|
|
9
|
-
"version": "
|
|
9
|
+
"version": "1.9.1"
|
|
10
10
|
},
|
|
11
11
|
"paths": {
|
|
12
12
|
"/flows/{slug}/fullflow": {
|
|
@@ -14,6 +14,7 @@
|
|
|
14
14
|
"tags": [
|
|
15
15
|
"Flows"
|
|
16
16
|
],
|
|
17
|
+
"summary": "Get full flow details",
|
|
17
18
|
"operationId": "get_full_flow_details",
|
|
18
19
|
"parameters": [
|
|
19
20
|
{
|
|
@@ -93,6 +94,7 @@
|
|
|
93
94
|
"tags": [
|
|
94
95
|
"Verification Requests"
|
|
95
96
|
],
|
|
97
|
+
"summary": "Get a verification request",
|
|
96
98
|
"operationId": "get_verification_request",
|
|
97
99
|
"parameters": [
|
|
98
100
|
{
|
|
@@ -172,7 +174,8 @@
|
|
|
172
174
|
"tags": [
|
|
173
175
|
"SDK: Verification Requests"
|
|
174
176
|
],
|
|
175
|
-
"
|
|
177
|
+
"summary": "Create a verification request",
|
|
178
|
+
"operationId": "createVerificationRequest",
|
|
176
179
|
"parameters": [
|
|
177
180
|
{
|
|
178
181
|
"name": "sandbox",
|
|
@@ -268,7 +271,8 @@
|
|
|
268
271
|
"tags": [
|
|
269
272
|
"SDK: Verification Requests"
|
|
270
273
|
],
|
|
271
|
-
"
|
|
274
|
+
"summary": "Get the next verification step",
|
|
275
|
+
"operationId": "getNextStep",
|
|
272
276
|
"parameters": [
|
|
273
277
|
{
|
|
274
278
|
"name": "sandbox",
|
|
@@ -745,6 +749,7 @@
|
|
|
745
749
|
"tags": [
|
|
746
750
|
"Verification Requests"
|
|
747
751
|
],
|
|
752
|
+
"summary": "Get completed verification requests",
|
|
748
753
|
"operationId": "get_completed_verification_requests",
|
|
749
754
|
"parameters": [
|
|
750
755
|
{
|
|
@@ -814,7 +819,8 @@
|
|
|
814
819
|
"tags": [
|
|
815
820
|
"SDK: Organizations"
|
|
816
821
|
],
|
|
817
|
-
"
|
|
822
|
+
"summary": "List flow results",
|
|
823
|
+
"operationId": "listFlowResults",
|
|
818
824
|
"parameters": [
|
|
819
825
|
{
|
|
820
826
|
"name": "organization_id",
|
|
@@ -912,12 +918,893 @@
|
|
|
912
918
|
]
|
|
913
919
|
}
|
|
914
920
|
},
|
|
921
|
+
"/sdk/organizations/{organization_id}/kyb/{kyb_result_id}/reminders/ubo/{recipient_index}": {
|
|
922
|
+
"post": {
|
|
923
|
+
"tags": [
|
|
924
|
+
"SDK: KYB"
|
|
925
|
+
],
|
|
926
|
+
"summary": "Send a UBO KYC reminder",
|
|
927
|
+
"description": "Sends (or re-sends) the KYC invitation email to a specific UBO on a KYB case,\nidentified by their position in `uboDefinitions`. Use this to drive UBO outreach on\ndemand — for example when automatic UBO KYC emails are disabled for the flow.",
|
|
928
|
+
"operationId": "sendUboKycReminder",
|
|
929
|
+
"parameters": [
|
|
930
|
+
{
|
|
931
|
+
"name": "organization_id",
|
|
932
|
+
"in": "path",
|
|
933
|
+
"description": "Organization ID",
|
|
934
|
+
"required": true,
|
|
935
|
+
"schema": {
|
|
936
|
+
"type": "string",
|
|
937
|
+
"format": "uuid"
|
|
938
|
+
}
|
|
939
|
+
},
|
|
940
|
+
{
|
|
941
|
+
"name": "kyb_result_id",
|
|
942
|
+
"in": "path",
|
|
943
|
+
"description": "KYB result ID",
|
|
944
|
+
"required": true,
|
|
945
|
+
"schema": {
|
|
946
|
+
"type": "string",
|
|
947
|
+
"format": "uuid"
|
|
948
|
+
}
|
|
949
|
+
},
|
|
950
|
+
{
|
|
951
|
+
"name": "recipient_index",
|
|
952
|
+
"in": "path",
|
|
953
|
+
"description": "Index of the UBO to send the KYC email to, matching the order in uboDefinitions",
|
|
954
|
+
"required": true,
|
|
955
|
+
"schema": {
|
|
956
|
+
"type": "integer",
|
|
957
|
+
"minimum": 0
|
|
958
|
+
}
|
|
959
|
+
},
|
|
960
|
+
{
|
|
961
|
+
"name": "sandbox",
|
|
962
|
+
"in": "query",
|
|
963
|
+
"required": true,
|
|
964
|
+
"schema": {
|
|
965
|
+
"type": "boolean"
|
|
966
|
+
},
|
|
967
|
+
"style": "form"
|
|
968
|
+
},
|
|
969
|
+
{
|
|
970
|
+
"name": "locale",
|
|
971
|
+
"in": "query",
|
|
972
|
+
"required": false,
|
|
973
|
+
"schema": {
|
|
974
|
+
"$ref": "#/components/schemas/Locale"
|
|
975
|
+
},
|
|
976
|
+
"style": "form"
|
|
977
|
+
}
|
|
978
|
+
],
|
|
979
|
+
"responses": {
|
|
980
|
+
"202": {
|
|
981
|
+
"description": "",
|
|
982
|
+
"content": {
|
|
983
|
+
"application/json": {
|
|
984
|
+
"schema": {
|
|
985
|
+
"$ref": "#/components/schemas/TriggerReminderResponse"
|
|
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
|
+
"403": {
|
|
1011
|
+
"description": "",
|
|
1012
|
+
"content": {
|
|
1013
|
+
"application/json": {
|
|
1014
|
+
"schema": {
|
|
1015
|
+
"$ref": "#/components/schemas/BaxeError"
|
|
1016
|
+
}
|
|
1017
|
+
}
|
|
1018
|
+
}
|
|
1019
|
+
},
|
|
1020
|
+
"404": {
|
|
1021
|
+
"description": "",
|
|
1022
|
+
"content": {
|
|
1023
|
+
"application/json": {
|
|
1024
|
+
"schema": {
|
|
1025
|
+
"$ref": "#/components/schemas/BaxeError"
|
|
1026
|
+
}
|
|
1027
|
+
}
|
|
1028
|
+
}
|
|
1029
|
+
},
|
|
1030
|
+
"500": {
|
|
1031
|
+
"description": "",
|
|
1032
|
+
"content": {
|
|
1033
|
+
"application/json": {
|
|
1034
|
+
"schema": {
|
|
1035
|
+
"$ref": "#/components/schemas/BaxeError"
|
|
1036
|
+
}
|
|
1037
|
+
}
|
|
1038
|
+
}
|
|
1039
|
+
}
|
|
1040
|
+
},
|
|
1041
|
+
"security": [
|
|
1042
|
+
{
|
|
1043
|
+
"api-key": []
|
|
1044
|
+
}
|
|
1045
|
+
]
|
|
1046
|
+
}
|
|
1047
|
+
},
|
|
1048
|
+
"/sdk/organizations/{organization_id}/kyb/{kyb_result_id}/ubos": {
|
|
1049
|
+
"post": {
|
|
1050
|
+
"tags": [
|
|
1051
|
+
"SDK: KYB"
|
|
1052
|
+
],
|
|
1053
|
+
"summary": "Add UBOs to a KYB case",
|
|
1054
|
+
"description": "Adds one or more ultimate beneficial owners to an existing KYB case and returns the\nupdated KYB result.",
|
|
1055
|
+
"operationId": "addKybUbos",
|
|
1056
|
+
"parameters": [
|
|
1057
|
+
{
|
|
1058
|
+
"name": "organization_id",
|
|
1059
|
+
"in": "path",
|
|
1060
|
+
"description": "Organization ID",
|
|
1061
|
+
"required": true,
|
|
1062
|
+
"schema": {
|
|
1063
|
+
"type": "string",
|
|
1064
|
+
"format": "uuid"
|
|
1065
|
+
}
|
|
1066
|
+
},
|
|
1067
|
+
{
|
|
1068
|
+
"name": "kyb_result_id",
|
|
1069
|
+
"in": "path",
|
|
1070
|
+
"description": "KYB result ID",
|
|
1071
|
+
"required": true,
|
|
1072
|
+
"schema": {
|
|
1073
|
+
"type": "string",
|
|
1074
|
+
"format": "uuid"
|
|
1075
|
+
}
|
|
1076
|
+
},
|
|
1077
|
+
{
|
|
1078
|
+
"name": "sandbox",
|
|
1079
|
+
"in": "query",
|
|
1080
|
+
"required": true,
|
|
1081
|
+
"schema": {
|
|
1082
|
+
"type": "boolean"
|
|
1083
|
+
},
|
|
1084
|
+
"style": "form"
|
|
1085
|
+
},
|
|
1086
|
+
{
|
|
1087
|
+
"name": "locale",
|
|
1088
|
+
"in": "query",
|
|
1089
|
+
"required": false,
|
|
1090
|
+
"schema": {
|
|
1091
|
+
"$ref": "#/components/schemas/Locale"
|
|
1092
|
+
},
|
|
1093
|
+
"style": "form"
|
|
1094
|
+
}
|
|
1095
|
+
],
|
|
1096
|
+
"requestBody": {
|
|
1097
|
+
"content": {
|
|
1098
|
+
"application/json": {
|
|
1099
|
+
"schema": {
|
|
1100
|
+
"$ref": "#/components/schemas/AddKybPersonsPayload"
|
|
1101
|
+
}
|
|
1102
|
+
}
|
|
1103
|
+
},
|
|
1104
|
+
"required": true
|
|
1105
|
+
},
|
|
1106
|
+
"responses": {
|
|
1107
|
+
"200": {
|
|
1108
|
+
"description": "",
|
|
1109
|
+
"content": {
|
|
1110
|
+
"application/json": {
|
|
1111
|
+
"schema": {
|
|
1112
|
+
"$ref": "#/components/schemas/KybResult"
|
|
1113
|
+
}
|
|
1114
|
+
}
|
|
1115
|
+
}
|
|
1116
|
+
},
|
|
1117
|
+
"400": {
|
|
1118
|
+
"description": "",
|
|
1119
|
+
"content": {
|
|
1120
|
+
"application/json": {
|
|
1121
|
+
"schema": {
|
|
1122
|
+
"$ref": "#/components/schemas/BaxeError"
|
|
1123
|
+
}
|
|
1124
|
+
}
|
|
1125
|
+
}
|
|
1126
|
+
},
|
|
1127
|
+
"401": {
|
|
1128
|
+
"description": "",
|
|
1129
|
+
"content": {
|
|
1130
|
+
"application/json": {
|
|
1131
|
+
"schema": {
|
|
1132
|
+
"$ref": "#/components/schemas/BaxeError"
|
|
1133
|
+
}
|
|
1134
|
+
}
|
|
1135
|
+
}
|
|
1136
|
+
},
|
|
1137
|
+
"403": {
|
|
1138
|
+
"description": "",
|
|
1139
|
+
"content": {
|
|
1140
|
+
"application/json": {
|
|
1141
|
+
"schema": {
|
|
1142
|
+
"$ref": "#/components/schemas/BaxeError"
|
|
1143
|
+
}
|
|
1144
|
+
}
|
|
1145
|
+
}
|
|
1146
|
+
},
|
|
1147
|
+
"404": {
|
|
1148
|
+
"description": "",
|
|
1149
|
+
"content": {
|
|
1150
|
+
"application/json": {
|
|
1151
|
+
"schema": {
|
|
1152
|
+
"$ref": "#/components/schemas/BaxeError"
|
|
1153
|
+
}
|
|
1154
|
+
}
|
|
1155
|
+
}
|
|
1156
|
+
},
|
|
1157
|
+
"500": {
|
|
1158
|
+
"description": "",
|
|
1159
|
+
"content": {
|
|
1160
|
+
"application/json": {
|
|
1161
|
+
"schema": {
|
|
1162
|
+
"$ref": "#/components/schemas/BaxeError"
|
|
1163
|
+
}
|
|
1164
|
+
}
|
|
1165
|
+
}
|
|
1166
|
+
}
|
|
1167
|
+
},
|
|
1168
|
+
"security": [
|
|
1169
|
+
{
|
|
1170
|
+
"api-key": []
|
|
1171
|
+
}
|
|
1172
|
+
]
|
|
1173
|
+
}
|
|
1174
|
+
},
|
|
1175
|
+
"/sdk/organizations/{organization_id}/kyb/{kyb_result_id}/ubos/{person_id}": {
|
|
1176
|
+
"delete": {
|
|
1177
|
+
"tags": [
|
|
1178
|
+
"SDK: KYB"
|
|
1179
|
+
],
|
|
1180
|
+
"summary": "Remove a UBO from a KYB case",
|
|
1181
|
+
"description": "Removes an ultimate beneficial owner from a KYB case by their stable id and returns the\nupdated KYB result.",
|
|
1182
|
+
"operationId": "removeKybUbo",
|
|
1183
|
+
"parameters": [
|
|
1184
|
+
{
|
|
1185
|
+
"name": "organization_id",
|
|
1186
|
+
"in": "path",
|
|
1187
|
+
"description": "Organization ID",
|
|
1188
|
+
"required": true,
|
|
1189
|
+
"schema": {
|
|
1190
|
+
"type": "string",
|
|
1191
|
+
"format": "uuid"
|
|
1192
|
+
}
|
|
1193
|
+
},
|
|
1194
|
+
{
|
|
1195
|
+
"name": "kyb_result_id",
|
|
1196
|
+
"in": "path",
|
|
1197
|
+
"description": "KYB result ID",
|
|
1198
|
+
"required": true,
|
|
1199
|
+
"schema": {
|
|
1200
|
+
"type": "string",
|
|
1201
|
+
"format": "uuid"
|
|
1202
|
+
}
|
|
1203
|
+
},
|
|
1204
|
+
{
|
|
1205
|
+
"name": "person_id",
|
|
1206
|
+
"in": "path",
|
|
1207
|
+
"description": "Stable id of the UBO to remove",
|
|
1208
|
+
"required": true,
|
|
1209
|
+
"schema": {
|
|
1210
|
+
"type": "string",
|
|
1211
|
+
"format": "uuid"
|
|
1212
|
+
}
|
|
1213
|
+
},
|
|
1214
|
+
{
|
|
1215
|
+
"name": "sandbox",
|
|
1216
|
+
"in": "query",
|
|
1217
|
+
"required": true,
|
|
1218
|
+
"schema": {
|
|
1219
|
+
"type": "boolean"
|
|
1220
|
+
},
|
|
1221
|
+
"style": "form"
|
|
1222
|
+
},
|
|
1223
|
+
{
|
|
1224
|
+
"name": "locale",
|
|
1225
|
+
"in": "query",
|
|
1226
|
+
"required": false,
|
|
1227
|
+
"schema": {
|
|
1228
|
+
"$ref": "#/components/schemas/Locale"
|
|
1229
|
+
},
|
|
1230
|
+
"style": "form"
|
|
1231
|
+
}
|
|
1232
|
+
],
|
|
1233
|
+
"responses": {
|
|
1234
|
+
"200": {
|
|
1235
|
+
"description": "",
|
|
1236
|
+
"content": {
|
|
1237
|
+
"application/json": {
|
|
1238
|
+
"schema": {
|
|
1239
|
+
"$ref": "#/components/schemas/KybResult"
|
|
1240
|
+
}
|
|
1241
|
+
}
|
|
1242
|
+
}
|
|
1243
|
+
},
|
|
1244
|
+
"400": {
|
|
1245
|
+
"description": "",
|
|
1246
|
+
"content": {
|
|
1247
|
+
"application/json": {
|
|
1248
|
+
"schema": {
|
|
1249
|
+
"$ref": "#/components/schemas/BaxeError"
|
|
1250
|
+
}
|
|
1251
|
+
}
|
|
1252
|
+
}
|
|
1253
|
+
},
|
|
1254
|
+
"401": {
|
|
1255
|
+
"description": "",
|
|
1256
|
+
"content": {
|
|
1257
|
+
"application/json": {
|
|
1258
|
+
"schema": {
|
|
1259
|
+
"$ref": "#/components/schemas/BaxeError"
|
|
1260
|
+
}
|
|
1261
|
+
}
|
|
1262
|
+
}
|
|
1263
|
+
},
|
|
1264
|
+
"403": {
|
|
1265
|
+
"description": "",
|
|
1266
|
+
"content": {
|
|
1267
|
+
"application/json": {
|
|
1268
|
+
"schema": {
|
|
1269
|
+
"$ref": "#/components/schemas/BaxeError"
|
|
1270
|
+
}
|
|
1271
|
+
}
|
|
1272
|
+
}
|
|
1273
|
+
},
|
|
1274
|
+
"404": {
|
|
1275
|
+
"description": "",
|
|
1276
|
+
"content": {
|
|
1277
|
+
"application/json": {
|
|
1278
|
+
"schema": {
|
|
1279
|
+
"$ref": "#/components/schemas/BaxeError"
|
|
1280
|
+
}
|
|
1281
|
+
}
|
|
1282
|
+
}
|
|
1283
|
+
},
|
|
1284
|
+
"500": {
|
|
1285
|
+
"description": "",
|
|
1286
|
+
"content": {
|
|
1287
|
+
"application/json": {
|
|
1288
|
+
"schema": {
|
|
1289
|
+
"$ref": "#/components/schemas/BaxeError"
|
|
1290
|
+
}
|
|
1291
|
+
}
|
|
1292
|
+
}
|
|
1293
|
+
}
|
|
1294
|
+
},
|
|
1295
|
+
"security": [
|
|
1296
|
+
{
|
|
1297
|
+
"api-key": []
|
|
1298
|
+
}
|
|
1299
|
+
]
|
|
1300
|
+
}
|
|
1301
|
+
},
|
|
1302
|
+
"/sdk/organizations/{organization_id}/kyb/{kyb_result_id}/directors": {
|
|
1303
|
+
"post": {
|
|
1304
|
+
"tags": [
|
|
1305
|
+
"SDK: KYB"
|
|
1306
|
+
],
|
|
1307
|
+
"summary": "Add directors to a KYB case",
|
|
1308
|
+
"description": "Adds one or more directors to an existing KYB case and returns the updated KYB result.",
|
|
1309
|
+
"operationId": "addKybDirectors",
|
|
1310
|
+
"parameters": [
|
|
1311
|
+
{
|
|
1312
|
+
"name": "organization_id",
|
|
1313
|
+
"in": "path",
|
|
1314
|
+
"description": "Organization ID",
|
|
1315
|
+
"required": true,
|
|
1316
|
+
"schema": {
|
|
1317
|
+
"type": "string",
|
|
1318
|
+
"format": "uuid"
|
|
1319
|
+
}
|
|
1320
|
+
},
|
|
1321
|
+
{
|
|
1322
|
+
"name": "kyb_result_id",
|
|
1323
|
+
"in": "path",
|
|
1324
|
+
"description": "KYB result ID",
|
|
1325
|
+
"required": true,
|
|
1326
|
+
"schema": {
|
|
1327
|
+
"type": "string",
|
|
1328
|
+
"format": "uuid"
|
|
1329
|
+
}
|
|
1330
|
+
},
|
|
1331
|
+
{
|
|
1332
|
+
"name": "sandbox",
|
|
1333
|
+
"in": "query",
|
|
1334
|
+
"required": true,
|
|
1335
|
+
"schema": {
|
|
1336
|
+
"type": "boolean"
|
|
1337
|
+
},
|
|
1338
|
+
"style": "form"
|
|
1339
|
+
},
|
|
1340
|
+
{
|
|
1341
|
+
"name": "locale",
|
|
1342
|
+
"in": "query",
|
|
1343
|
+
"required": false,
|
|
1344
|
+
"schema": {
|
|
1345
|
+
"$ref": "#/components/schemas/Locale"
|
|
1346
|
+
},
|
|
1347
|
+
"style": "form"
|
|
1348
|
+
}
|
|
1349
|
+
],
|
|
1350
|
+
"requestBody": {
|
|
1351
|
+
"content": {
|
|
1352
|
+
"application/json": {
|
|
1353
|
+
"schema": {
|
|
1354
|
+
"$ref": "#/components/schemas/AddKybPersonsPayload"
|
|
1355
|
+
}
|
|
1356
|
+
}
|
|
1357
|
+
},
|
|
1358
|
+
"required": true
|
|
1359
|
+
},
|
|
1360
|
+
"responses": {
|
|
1361
|
+
"200": {
|
|
1362
|
+
"description": "",
|
|
1363
|
+
"content": {
|
|
1364
|
+
"application/json": {
|
|
1365
|
+
"schema": {
|
|
1366
|
+
"$ref": "#/components/schemas/KybResult"
|
|
1367
|
+
}
|
|
1368
|
+
}
|
|
1369
|
+
}
|
|
1370
|
+
},
|
|
1371
|
+
"400": {
|
|
1372
|
+
"description": "",
|
|
1373
|
+
"content": {
|
|
1374
|
+
"application/json": {
|
|
1375
|
+
"schema": {
|
|
1376
|
+
"$ref": "#/components/schemas/BaxeError"
|
|
1377
|
+
}
|
|
1378
|
+
}
|
|
1379
|
+
}
|
|
1380
|
+
},
|
|
1381
|
+
"401": {
|
|
1382
|
+
"description": "",
|
|
1383
|
+
"content": {
|
|
1384
|
+
"application/json": {
|
|
1385
|
+
"schema": {
|
|
1386
|
+
"$ref": "#/components/schemas/BaxeError"
|
|
1387
|
+
}
|
|
1388
|
+
}
|
|
1389
|
+
}
|
|
1390
|
+
},
|
|
1391
|
+
"403": {
|
|
1392
|
+
"description": "",
|
|
1393
|
+
"content": {
|
|
1394
|
+
"application/json": {
|
|
1395
|
+
"schema": {
|
|
1396
|
+
"$ref": "#/components/schemas/BaxeError"
|
|
1397
|
+
}
|
|
1398
|
+
}
|
|
1399
|
+
}
|
|
1400
|
+
},
|
|
1401
|
+
"404": {
|
|
1402
|
+
"description": "",
|
|
1403
|
+
"content": {
|
|
1404
|
+
"application/json": {
|
|
1405
|
+
"schema": {
|
|
1406
|
+
"$ref": "#/components/schemas/BaxeError"
|
|
1407
|
+
}
|
|
1408
|
+
}
|
|
1409
|
+
}
|
|
1410
|
+
},
|
|
1411
|
+
"500": {
|
|
1412
|
+
"description": "",
|
|
1413
|
+
"content": {
|
|
1414
|
+
"application/json": {
|
|
1415
|
+
"schema": {
|
|
1416
|
+
"$ref": "#/components/schemas/BaxeError"
|
|
1417
|
+
}
|
|
1418
|
+
}
|
|
1419
|
+
}
|
|
1420
|
+
}
|
|
1421
|
+
},
|
|
1422
|
+
"security": [
|
|
1423
|
+
{
|
|
1424
|
+
"api-key": []
|
|
1425
|
+
}
|
|
1426
|
+
]
|
|
1427
|
+
}
|
|
1428
|
+
},
|
|
1429
|
+
"/sdk/organizations/{organization_id}/kyb/{kyb_result_id}/directors/{person_id}": {
|
|
1430
|
+
"delete": {
|
|
1431
|
+
"tags": [
|
|
1432
|
+
"SDK: KYB"
|
|
1433
|
+
],
|
|
1434
|
+
"summary": "Remove a director from a KYB case",
|
|
1435
|
+
"description": "Removes a director from a KYB case by their stable id and returns the updated KYB result.",
|
|
1436
|
+
"operationId": "removeKybDirector",
|
|
1437
|
+
"parameters": [
|
|
1438
|
+
{
|
|
1439
|
+
"name": "organization_id",
|
|
1440
|
+
"in": "path",
|
|
1441
|
+
"description": "Organization ID",
|
|
1442
|
+
"required": true,
|
|
1443
|
+
"schema": {
|
|
1444
|
+
"type": "string",
|
|
1445
|
+
"format": "uuid"
|
|
1446
|
+
}
|
|
1447
|
+
},
|
|
1448
|
+
{
|
|
1449
|
+
"name": "kyb_result_id",
|
|
1450
|
+
"in": "path",
|
|
1451
|
+
"description": "KYB result ID",
|
|
1452
|
+
"required": true,
|
|
1453
|
+
"schema": {
|
|
1454
|
+
"type": "string",
|
|
1455
|
+
"format": "uuid"
|
|
1456
|
+
}
|
|
1457
|
+
},
|
|
1458
|
+
{
|
|
1459
|
+
"name": "person_id",
|
|
1460
|
+
"in": "path",
|
|
1461
|
+
"description": "Stable id of the director to remove",
|
|
1462
|
+
"required": true,
|
|
1463
|
+
"schema": {
|
|
1464
|
+
"type": "string",
|
|
1465
|
+
"format": "uuid"
|
|
1466
|
+
}
|
|
1467
|
+
},
|
|
1468
|
+
{
|
|
1469
|
+
"name": "sandbox",
|
|
1470
|
+
"in": "query",
|
|
1471
|
+
"required": true,
|
|
1472
|
+
"schema": {
|
|
1473
|
+
"type": "boolean"
|
|
1474
|
+
},
|
|
1475
|
+
"style": "form"
|
|
1476
|
+
},
|
|
1477
|
+
{
|
|
1478
|
+
"name": "locale",
|
|
1479
|
+
"in": "query",
|
|
1480
|
+
"required": false,
|
|
1481
|
+
"schema": {
|
|
1482
|
+
"$ref": "#/components/schemas/Locale"
|
|
1483
|
+
},
|
|
1484
|
+
"style": "form"
|
|
1485
|
+
}
|
|
1486
|
+
],
|
|
1487
|
+
"responses": {
|
|
1488
|
+
"200": {
|
|
1489
|
+
"description": "",
|
|
1490
|
+
"content": {
|
|
1491
|
+
"application/json": {
|
|
1492
|
+
"schema": {
|
|
1493
|
+
"$ref": "#/components/schemas/KybResult"
|
|
1494
|
+
}
|
|
1495
|
+
}
|
|
1496
|
+
}
|
|
1497
|
+
},
|
|
1498
|
+
"400": {
|
|
1499
|
+
"description": "",
|
|
1500
|
+
"content": {
|
|
1501
|
+
"application/json": {
|
|
1502
|
+
"schema": {
|
|
1503
|
+
"$ref": "#/components/schemas/BaxeError"
|
|
1504
|
+
}
|
|
1505
|
+
}
|
|
1506
|
+
}
|
|
1507
|
+
},
|
|
1508
|
+
"401": {
|
|
1509
|
+
"description": "",
|
|
1510
|
+
"content": {
|
|
1511
|
+
"application/json": {
|
|
1512
|
+
"schema": {
|
|
1513
|
+
"$ref": "#/components/schemas/BaxeError"
|
|
1514
|
+
}
|
|
1515
|
+
}
|
|
1516
|
+
}
|
|
1517
|
+
},
|
|
1518
|
+
"403": {
|
|
1519
|
+
"description": "",
|
|
1520
|
+
"content": {
|
|
1521
|
+
"application/json": {
|
|
1522
|
+
"schema": {
|
|
1523
|
+
"$ref": "#/components/schemas/BaxeError"
|
|
1524
|
+
}
|
|
1525
|
+
}
|
|
1526
|
+
}
|
|
1527
|
+
},
|
|
1528
|
+
"404": {
|
|
1529
|
+
"description": "",
|
|
1530
|
+
"content": {
|
|
1531
|
+
"application/json": {
|
|
1532
|
+
"schema": {
|
|
1533
|
+
"$ref": "#/components/schemas/BaxeError"
|
|
1534
|
+
}
|
|
1535
|
+
}
|
|
1536
|
+
}
|
|
1537
|
+
},
|
|
1538
|
+
"500": {
|
|
1539
|
+
"description": "",
|
|
1540
|
+
"content": {
|
|
1541
|
+
"application/json": {
|
|
1542
|
+
"schema": {
|
|
1543
|
+
"$ref": "#/components/schemas/BaxeError"
|
|
1544
|
+
}
|
|
1545
|
+
}
|
|
1546
|
+
}
|
|
1547
|
+
}
|
|
1548
|
+
},
|
|
1549
|
+
"security": [
|
|
1550
|
+
{
|
|
1551
|
+
"api-key": []
|
|
1552
|
+
}
|
|
1553
|
+
]
|
|
1554
|
+
}
|
|
1555
|
+
},
|
|
1556
|
+
"/sdk/organizations/{organization_id}/kyb/{kyb_result_id}/document-requests/on-demand": {
|
|
1557
|
+
"post": {
|
|
1558
|
+
"tags": [
|
|
1559
|
+
"SDK: KYB"
|
|
1560
|
+
],
|
|
1561
|
+
"summary": "Request a KYB document",
|
|
1562
|
+
"description": "Requests an additional document from the business on a KYB case and returns the created\ndocument request.",
|
|
1563
|
+
"operationId": "requestKybDocument",
|
|
1564
|
+
"parameters": [
|
|
1565
|
+
{
|
|
1566
|
+
"name": "organization_id",
|
|
1567
|
+
"in": "path",
|
|
1568
|
+
"description": "Organization ID",
|
|
1569
|
+
"required": true,
|
|
1570
|
+
"schema": {
|
|
1571
|
+
"type": "string",
|
|
1572
|
+
"format": "uuid"
|
|
1573
|
+
}
|
|
1574
|
+
},
|
|
1575
|
+
{
|
|
1576
|
+
"name": "kyb_result_id",
|
|
1577
|
+
"in": "path",
|
|
1578
|
+
"description": "KYB result ID",
|
|
1579
|
+
"required": true,
|
|
1580
|
+
"schema": {
|
|
1581
|
+
"type": "string",
|
|
1582
|
+
"format": "uuid"
|
|
1583
|
+
}
|
|
1584
|
+
},
|
|
1585
|
+
{
|
|
1586
|
+
"name": "sandbox",
|
|
1587
|
+
"in": "query",
|
|
1588
|
+
"required": true,
|
|
1589
|
+
"schema": {
|
|
1590
|
+
"type": "boolean"
|
|
1591
|
+
},
|
|
1592
|
+
"style": "form"
|
|
1593
|
+
},
|
|
1594
|
+
{
|
|
1595
|
+
"name": "locale",
|
|
1596
|
+
"in": "query",
|
|
1597
|
+
"required": false,
|
|
1598
|
+
"schema": {
|
|
1599
|
+
"$ref": "#/components/schemas/Locale"
|
|
1600
|
+
},
|
|
1601
|
+
"style": "form"
|
|
1602
|
+
}
|
|
1603
|
+
],
|
|
1604
|
+
"requestBody": {
|
|
1605
|
+
"content": {
|
|
1606
|
+
"application/json": {
|
|
1607
|
+
"schema": {
|
|
1608
|
+
"$ref": "#/components/schemas/RequestOnDemandDocumentPayload"
|
|
1609
|
+
}
|
|
1610
|
+
}
|
|
1611
|
+
},
|
|
1612
|
+
"required": true
|
|
1613
|
+
},
|
|
1614
|
+
"responses": {
|
|
1615
|
+
"200": {
|
|
1616
|
+
"description": "",
|
|
1617
|
+
"content": {
|
|
1618
|
+
"application/json": {
|
|
1619
|
+
"schema": {
|
|
1620
|
+
"$ref": "#/components/schemas/KybDocumentRequest"
|
|
1621
|
+
}
|
|
1622
|
+
}
|
|
1623
|
+
}
|
|
1624
|
+
},
|
|
1625
|
+
"400": {
|
|
1626
|
+
"description": "",
|
|
1627
|
+
"content": {
|
|
1628
|
+
"application/json": {
|
|
1629
|
+
"schema": {
|
|
1630
|
+
"$ref": "#/components/schemas/BaxeError"
|
|
1631
|
+
}
|
|
1632
|
+
}
|
|
1633
|
+
}
|
|
1634
|
+
},
|
|
1635
|
+
"401": {
|
|
1636
|
+
"description": "",
|
|
1637
|
+
"content": {
|
|
1638
|
+
"application/json": {
|
|
1639
|
+
"schema": {
|
|
1640
|
+
"$ref": "#/components/schemas/BaxeError"
|
|
1641
|
+
}
|
|
1642
|
+
}
|
|
1643
|
+
}
|
|
1644
|
+
},
|
|
1645
|
+
"403": {
|
|
1646
|
+
"description": "",
|
|
1647
|
+
"content": {
|
|
1648
|
+
"application/json": {
|
|
1649
|
+
"schema": {
|
|
1650
|
+
"$ref": "#/components/schemas/BaxeError"
|
|
1651
|
+
}
|
|
1652
|
+
}
|
|
1653
|
+
}
|
|
1654
|
+
},
|
|
1655
|
+
"404": {
|
|
1656
|
+
"description": "",
|
|
1657
|
+
"content": {
|
|
1658
|
+
"application/json": {
|
|
1659
|
+
"schema": {
|
|
1660
|
+
"$ref": "#/components/schemas/BaxeError"
|
|
1661
|
+
}
|
|
1662
|
+
}
|
|
1663
|
+
}
|
|
1664
|
+
},
|
|
1665
|
+
"500": {
|
|
1666
|
+
"description": "",
|
|
1667
|
+
"content": {
|
|
1668
|
+
"application/json": {
|
|
1669
|
+
"schema": {
|
|
1670
|
+
"$ref": "#/components/schemas/BaxeError"
|
|
1671
|
+
}
|
|
1672
|
+
}
|
|
1673
|
+
}
|
|
1674
|
+
}
|
|
1675
|
+
},
|
|
1676
|
+
"security": [
|
|
1677
|
+
{
|
|
1678
|
+
"api-key": []
|
|
1679
|
+
}
|
|
1680
|
+
]
|
|
1681
|
+
}
|
|
1682
|
+
},
|
|
915
1683
|
"/sdk/organizations/{organization_id}/flow-results/{flow_result_id}/flow/{flow_slug}/details": {
|
|
916
1684
|
"get": {
|
|
917
1685
|
"tags": [
|
|
918
1686
|
"SDK: Organizations"
|
|
919
1687
|
],
|
|
920
|
-
"
|
|
1688
|
+
"summary": "Get flow result details",
|
|
1689
|
+
"operationId": "getFlowResultDetails",
|
|
1690
|
+
"parameters": [
|
|
1691
|
+
{
|
|
1692
|
+
"name": "sandbox",
|
|
1693
|
+
"in": "query",
|
|
1694
|
+
"required": true,
|
|
1695
|
+
"schema": {
|
|
1696
|
+
"type": "boolean"
|
|
1697
|
+
},
|
|
1698
|
+
"style": "form"
|
|
1699
|
+
},
|
|
1700
|
+
{
|
|
1701
|
+
"name": "locale",
|
|
1702
|
+
"in": "query",
|
|
1703
|
+
"required": false,
|
|
1704
|
+
"schema": {
|
|
1705
|
+
"$ref": "#/components/schemas/Locale"
|
|
1706
|
+
},
|
|
1707
|
+
"style": "form"
|
|
1708
|
+
},
|
|
1709
|
+
{
|
|
1710
|
+
"name": "organization_id",
|
|
1711
|
+
"in": "path",
|
|
1712
|
+
"description": "The ID of the organization",
|
|
1713
|
+
"required": true,
|
|
1714
|
+
"schema": {
|
|
1715
|
+
"type": "string",
|
|
1716
|
+
"format": "uuid"
|
|
1717
|
+
},
|
|
1718
|
+
"example": "123e4567-e89b-12d3-a456-426614174000"
|
|
1719
|
+
},
|
|
1720
|
+
{
|
|
1721
|
+
"name": "flow_result_id",
|
|
1722
|
+
"in": "path",
|
|
1723
|
+
"description": "The ID of the flow result",
|
|
1724
|
+
"required": true,
|
|
1725
|
+
"schema": {
|
|
1726
|
+
"type": "string",
|
|
1727
|
+
"format": "uuid"
|
|
1728
|
+
},
|
|
1729
|
+
"example": "123e4567-e89b-12d3-a456-426614174000"
|
|
1730
|
+
},
|
|
1731
|
+
{
|
|
1732
|
+
"name": "flow_slug",
|
|
1733
|
+
"in": "path",
|
|
1734
|
+
"description": "The slug of the flow",
|
|
1735
|
+
"required": true,
|
|
1736
|
+
"schema": {
|
|
1737
|
+
"type": "string"
|
|
1738
|
+
},
|
|
1739
|
+
"example": "kyc-flow"
|
|
1740
|
+
}
|
|
1741
|
+
],
|
|
1742
|
+
"responses": {
|
|
1743
|
+
"200": {
|
|
1744
|
+
"description": "",
|
|
1745
|
+
"content": {
|
|
1746
|
+
"application/json": {
|
|
1747
|
+
"schema": {
|
|
1748
|
+
"$ref": "#/components/schemas/FlowResult"
|
|
1749
|
+
}
|
|
1750
|
+
}
|
|
1751
|
+
}
|
|
1752
|
+
},
|
|
1753
|
+
"400": {
|
|
1754
|
+
"description": "",
|
|
1755
|
+
"content": {
|
|
1756
|
+
"application/json": {
|
|
1757
|
+
"schema": {
|
|
1758
|
+
"$ref": "#/components/schemas/BaxeError"
|
|
1759
|
+
}
|
|
1760
|
+
}
|
|
1761
|
+
}
|
|
1762
|
+
},
|
|
1763
|
+
"401": {
|
|
1764
|
+
"description": "",
|
|
1765
|
+
"content": {
|
|
1766
|
+
"application/json": {
|
|
1767
|
+
"schema": {
|
|
1768
|
+
"$ref": "#/components/schemas/BaxeError"
|
|
1769
|
+
}
|
|
1770
|
+
}
|
|
1771
|
+
}
|
|
1772
|
+
},
|
|
1773
|
+
"403": {
|
|
1774
|
+
"description": "",
|
|
1775
|
+
"content": {
|
|
1776
|
+
"application/json": {
|
|
1777
|
+
"schema": {
|
|
1778
|
+
"$ref": "#/components/schemas/BaxeError"
|
|
1779
|
+
}
|
|
1780
|
+
}
|
|
1781
|
+
}
|
|
1782
|
+
},
|
|
1783
|
+
"500": {
|
|
1784
|
+
"description": "",
|
|
1785
|
+
"content": {
|
|
1786
|
+
"application/json": {
|
|
1787
|
+
"schema": {
|
|
1788
|
+
"$ref": "#/components/schemas/BaxeError"
|
|
1789
|
+
}
|
|
1790
|
+
}
|
|
1791
|
+
}
|
|
1792
|
+
}
|
|
1793
|
+
},
|
|
1794
|
+
"security": [
|
|
1795
|
+
{
|
|
1796
|
+
"x-api-key": []
|
|
1797
|
+
}
|
|
1798
|
+
]
|
|
1799
|
+
}
|
|
1800
|
+
},
|
|
1801
|
+
"/sdk/organizations/{organization_id}/flow-results/{flow_result_id}/flow/{flow_slug}/dv/{dv_result_id}/details": {
|
|
1802
|
+
"get": {
|
|
1803
|
+
"tags": [
|
|
1804
|
+
"SDK: Organizations"
|
|
1805
|
+
],
|
|
1806
|
+
"summary": "Get document verification result details",
|
|
1807
|
+
"operationId": "getDocumentVerificationResultDetails",
|
|
921
1808
|
"parameters": [
|
|
922
1809
|
{
|
|
923
1810
|
"name": "sandbox",
|
|
@@ -967,31 +1854,270 @@
|
|
|
967
1854
|
"schema": {
|
|
968
1855
|
"type": "string"
|
|
969
1856
|
},
|
|
970
|
-
"example": "
|
|
1857
|
+
"example": "flow-slug"
|
|
1858
|
+
},
|
|
1859
|
+
{
|
|
1860
|
+
"name": "dv_result_id",
|
|
1861
|
+
"in": "path",
|
|
1862
|
+
"description": "The ID of the DV result",
|
|
1863
|
+
"required": true,
|
|
1864
|
+
"schema": {
|
|
1865
|
+
"type": "string",
|
|
1866
|
+
"format": "uuid"
|
|
1867
|
+
},
|
|
1868
|
+
"example": "123e4567-e89b-12d3-a456-426614174000"
|
|
971
1869
|
}
|
|
972
1870
|
],
|
|
973
1871
|
"responses": {
|
|
974
1872
|
"200": {
|
|
1873
|
+
"description": "",
|
|
1874
|
+
"content": {
|
|
1875
|
+
"application/x-protobuf-stream": {
|
|
1876
|
+
"schema": {
|
|
1877
|
+
"type": "string"
|
|
1878
|
+
}
|
|
1879
|
+
}
|
|
1880
|
+
}
|
|
1881
|
+
},
|
|
1882
|
+
"403": {
|
|
975
1883
|
"description": "",
|
|
976
1884
|
"content": {
|
|
977
1885
|
"application/json": {
|
|
978
1886
|
"schema": {
|
|
979
|
-
"$ref": "#/components/schemas/
|
|
1887
|
+
"$ref": "#/components/schemas/BaxeError"
|
|
980
1888
|
}
|
|
981
1889
|
}
|
|
982
1890
|
}
|
|
983
1891
|
},
|
|
984
|
-
"
|
|
1892
|
+
"404": {
|
|
1893
|
+
"description": "",
|
|
1894
|
+
"content": {
|
|
1895
|
+
"application/json": {
|
|
1896
|
+
"schema": {
|
|
1897
|
+
"$ref": "#/components/schemas/BaxeError"
|
|
1898
|
+
}
|
|
1899
|
+
}
|
|
1900
|
+
}
|
|
1901
|
+
},
|
|
1902
|
+
"500": {
|
|
1903
|
+
"description": "",
|
|
1904
|
+
"content": {
|
|
1905
|
+
"application/json": {
|
|
1906
|
+
"schema": {
|
|
1907
|
+
"$ref": "#/components/schemas/BaxeError"
|
|
1908
|
+
}
|
|
1909
|
+
}
|
|
1910
|
+
}
|
|
1911
|
+
}
|
|
1912
|
+
},
|
|
1913
|
+
"security": [
|
|
1914
|
+
{
|
|
1915
|
+
"x-api-key": []
|
|
1916
|
+
}
|
|
1917
|
+
]
|
|
1918
|
+
}
|
|
1919
|
+
},
|
|
1920
|
+
"/sdk/organizations/{organization_id}/flow-results/{flow_result_id}/flow/{flow_slug}/poa/{poa_result_id}/details": {
|
|
1921
|
+
"get": {
|
|
1922
|
+
"tags": [
|
|
1923
|
+
"SDK: Organizations"
|
|
1924
|
+
],
|
|
1925
|
+
"summary": "Get proof of address result details",
|
|
1926
|
+
"operationId": "getProofOfAddressResultDetails",
|
|
1927
|
+
"parameters": [
|
|
1928
|
+
{
|
|
1929
|
+
"name": "sandbox",
|
|
1930
|
+
"in": "query",
|
|
1931
|
+
"required": true,
|
|
1932
|
+
"schema": {
|
|
1933
|
+
"type": "boolean"
|
|
1934
|
+
},
|
|
1935
|
+
"style": "form"
|
|
1936
|
+
},
|
|
1937
|
+
{
|
|
1938
|
+
"name": "locale",
|
|
1939
|
+
"in": "query",
|
|
1940
|
+
"required": false,
|
|
1941
|
+
"schema": {
|
|
1942
|
+
"$ref": "#/components/schemas/Locale"
|
|
1943
|
+
},
|
|
1944
|
+
"style": "form"
|
|
1945
|
+
},
|
|
1946
|
+
{
|
|
1947
|
+
"name": "organization_id",
|
|
1948
|
+
"in": "path",
|
|
1949
|
+
"description": "The ID of the organization",
|
|
1950
|
+
"required": true,
|
|
1951
|
+
"schema": {
|
|
1952
|
+
"type": "string",
|
|
1953
|
+
"format": "uuid"
|
|
1954
|
+
},
|
|
1955
|
+
"example": "123e4567-e89b-12d3-a456-426614174000"
|
|
1956
|
+
},
|
|
1957
|
+
{
|
|
1958
|
+
"name": "flow_result_id",
|
|
1959
|
+
"in": "path",
|
|
1960
|
+
"description": "The ID of the flow result",
|
|
1961
|
+
"required": true,
|
|
1962
|
+
"schema": {
|
|
1963
|
+
"type": "string",
|
|
1964
|
+
"format": "uuid"
|
|
1965
|
+
},
|
|
1966
|
+
"example": "123e4567-e89b-12d3-a456-426614174000"
|
|
1967
|
+
},
|
|
1968
|
+
{
|
|
1969
|
+
"name": "flow_slug",
|
|
1970
|
+
"in": "path",
|
|
1971
|
+
"description": "The slug of the flow",
|
|
1972
|
+
"required": true,
|
|
1973
|
+
"schema": {
|
|
1974
|
+
"type": "string"
|
|
1975
|
+
},
|
|
1976
|
+
"example": "flow-slug"
|
|
1977
|
+
},
|
|
1978
|
+
{
|
|
1979
|
+
"name": "poa_result_id",
|
|
1980
|
+
"in": "path",
|
|
1981
|
+
"description": "The ID of the POA result",
|
|
1982
|
+
"required": true,
|
|
1983
|
+
"schema": {
|
|
1984
|
+
"type": "string",
|
|
1985
|
+
"format": "uuid"
|
|
1986
|
+
},
|
|
1987
|
+
"example": "123e4567-e89b-12d3-a456-426614174000"
|
|
1988
|
+
}
|
|
1989
|
+
],
|
|
1990
|
+
"responses": {
|
|
1991
|
+
"200": {
|
|
1992
|
+
"description": "",
|
|
1993
|
+
"content": {
|
|
1994
|
+
"application/x-protobuf-stream": {
|
|
1995
|
+
"schema": {
|
|
1996
|
+
"type": "string"
|
|
1997
|
+
}
|
|
1998
|
+
}
|
|
1999
|
+
}
|
|
2000
|
+
},
|
|
2001
|
+
"403": {
|
|
2002
|
+
"description": "",
|
|
2003
|
+
"content": {
|
|
2004
|
+
"application/json": {
|
|
2005
|
+
"schema": {
|
|
2006
|
+
"$ref": "#/components/schemas/BaxeError"
|
|
2007
|
+
}
|
|
2008
|
+
}
|
|
2009
|
+
}
|
|
2010
|
+
},
|
|
2011
|
+
"404": {
|
|
2012
|
+
"description": "",
|
|
2013
|
+
"content": {
|
|
2014
|
+
"application/json": {
|
|
2015
|
+
"schema": {
|
|
2016
|
+
"$ref": "#/components/schemas/BaxeError"
|
|
2017
|
+
}
|
|
2018
|
+
}
|
|
2019
|
+
}
|
|
2020
|
+
},
|
|
2021
|
+
"500": {
|
|
2022
|
+
"description": "",
|
|
2023
|
+
"content": {
|
|
2024
|
+
"application/json": {
|
|
2025
|
+
"schema": {
|
|
2026
|
+
"$ref": "#/components/schemas/BaxeError"
|
|
2027
|
+
}
|
|
2028
|
+
}
|
|
2029
|
+
}
|
|
2030
|
+
}
|
|
2031
|
+
},
|
|
2032
|
+
"security": [
|
|
2033
|
+
{
|
|
2034
|
+
"x-api-key": []
|
|
2035
|
+
}
|
|
2036
|
+
]
|
|
2037
|
+
}
|
|
2038
|
+
},
|
|
2039
|
+
"/sdk/organizations/{organization_id}/flow-results/{flow_result_id}/flow/{flow_slug}/wallet/{wallet_result_id}/details": {
|
|
2040
|
+
"get": {
|
|
2041
|
+
"tags": [
|
|
2042
|
+
"SDK: Organizations"
|
|
2043
|
+
],
|
|
2044
|
+
"summary": "Get wallet result details",
|
|
2045
|
+
"operationId": "getWalletResultDetails",
|
|
2046
|
+
"parameters": [
|
|
2047
|
+
{
|
|
2048
|
+
"name": "sandbox",
|
|
2049
|
+
"in": "query",
|
|
2050
|
+
"required": true,
|
|
2051
|
+
"schema": {
|
|
2052
|
+
"type": "boolean"
|
|
2053
|
+
},
|
|
2054
|
+
"style": "form"
|
|
2055
|
+
},
|
|
2056
|
+
{
|
|
2057
|
+
"name": "locale",
|
|
2058
|
+
"in": "query",
|
|
2059
|
+
"required": false,
|
|
2060
|
+
"schema": {
|
|
2061
|
+
"$ref": "#/components/schemas/Locale"
|
|
2062
|
+
},
|
|
2063
|
+
"style": "form"
|
|
2064
|
+
},
|
|
2065
|
+
{
|
|
2066
|
+
"name": "organization_id",
|
|
2067
|
+
"in": "path",
|
|
2068
|
+
"description": "The ID of the organization",
|
|
2069
|
+
"required": true,
|
|
2070
|
+
"schema": {
|
|
2071
|
+
"type": "string",
|
|
2072
|
+
"format": "uuid"
|
|
2073
|
+
},
|
|
2074
|
+
"example": "123e4567-e89b-12d3-a456-426614174000"
|
|
2075
|
+
},
|
|
2076
|
+
{
|
|
2077
|
+
"name": "flow_result_id",
|
|
2078
|
+
"in": "path",
|
|
2079
|
+
"description": "The ID of the flow result",
|
|
2080
|
+
"required": true,
|
|
2081
|
+
"schema": {
|
|
2082
|
+
"type": "string",
|
|
2083
|
+
"format": "uuid"
|
|
2084
|
+
},
|
|
2085
|
+
"example": "123e4567-e89b-12d3-a456-426614174000"
|
|
2086
|
+
},
|
|
2087
|
+
{
|
|
2088
|
+
"name": "flow_slug",
|
|
2089
|
+
"in": "path",
|
|
2090
|
+
"description": "The slug of the flow",
|
|
2091
|
+
"required": true,
|
|
2092
|
+
"schema": {
|
|
2093
|
+
"type": "string"
|
|
2094
|
+
},
|
|
2095
|
+
"example": "flow-slug"
|
|
2096
|
+
},
|
|
2097
|
+
{
|
|
2098
|
+
"name": "wallet_result_id",
|
|
2099
|
+
"in": "path",
|
|
2100
|
+
"description": "The ID of the wallet result",
|
|
2101
|
+
"required": true,
|
|
2102
|
+
"schema": {
|
|
2103
|
+
"type": "string",
|
|
2104
|
+
"format": "uuid"
|
|
2105
|
+
},
|
|
2106
|
+
"example": "123e4567-e89b-12d3-a456-426614174000"
|
|
2107
|
+
}
|
|
2108
|
+
],
|
|
2109
|
+
"responses": {
|
|
2110
|
+
"200": {
|
|
985
2111
|
"description": "",
|
|
986
2112
|
"content": {
|
|
987
2113
|
"application/json": {
|
|
988
2114
|
"schema": {
|
|
989
|
-
"$ref": "#/components/schemas/
|
|
2115
|
+
"$ref": "#/components/schemas/WalletResult"
|
|
990
2116
|
}
|
|
991
2117
|
}
|
|
992
2118
|
}
|
|
993
2119
|
},
|
|
994
|
-
"
|
|
2120
|
+
"403": {
|
|
995
2121
|
"description": "",
|
|
996
2122
|
"content": {
|
|
997
2123
|
"application/json": {
|
|
@@ -1001,7 +2127,7 @@
|
|
|
1001
2127
|
}
|
|
1002
2128
|
}
|
|
1003
2129
|
},
|
|
1004
|
-
"
|
|
2130
|
+
"404": {
|
|
1005
2131
|
"description": "",
|
|
1006
2132
|
"content": {
|
|
1007
2133
|
"application/json": {
|
|
@@ -1029,12 +2155,13 @@
|
|
|
1029
2155
|
]
|
|
1030
2156
|
}
|
|
1031
2157
|
},
|
|
1032
|
-
"/sdk/organizations/{organization_id}/flow-results/{flow_result_id}/flow/{flow_slug}/
|
|
2158
|
+
"/sdk/organizations/{organization_id}/flow-results/{flow_result_id}/flow/{flow_slug}/phone/{phone_result_id}/details": {
|
|
1033
2159
|
"get": {
|
|
1034
2160
|
"tags": [
|
|
1035
2161
|
"SDK: Organizations"
|
|
1036
2162
|
],
|
|
1037
|
-
"
|
|
2163
|
+
"summary": "Get phone result details",
|
|
2164
|
+
"operationId": "getPhoneResultDetails",
|
|
1038
2165
|
"parameters": [
|
|
1039
2166
|
{
|
|
1040
2167
|
"name": "sandbox",
|
|
@@ -1087,9 +2214,9 @@
|
|
|
1087
2214
|
"example": "flow-slug"
|
|
1088
2215
|
},
|
|
1089
2216
|
{
|
|
1090
|
-
"name": "
|
|
2217
|
+
"name": "phone_result_id",
|
|
1091
2218
|
"in": "path",
|
|
1092
|
-
"description": "The ID of the
|
|
2219
|
+
"description": "The ID of the phone result",
|
|
1093
2220
|
"required": true,
|
|
1094
2221
|
"schema": {
|
|
1095
2222
|
"type": "string",
|
|
@@ -1102,9 +2229,19 @@
|
|
|
1102
2229
|
"200": {
|
|
1103
2230
|
"description": "",
|
|
1104
2231
|
"content": {
|
|
1105
|
-
"application/
|
|
2232
|
+
"application/json": {
|
|
1106
2233
|
"schema": {
|
|
1107
|
-
"
|
|
2234
|
+
"$ref": "#/components/schemas/PhoneResult"
|
|
2235
|
+
}
|
|
2236
|
+
}
|
|
2237
|
+
}
|
|
2238
|
+
},
|
|
2239
|
+
"403": {
|
|
2240
|
+
"description": "",
|
|
2241
|
+
"content": {
|
|
2242
|
+
"application/json": {
|
|
2243
|
+
"schema": {
|
|
2244
|
+
"$ref": "#/components/schemas/BaxeError"
|
|
1108
2245
|
}
|
|
1109
2246
|
}
|
|
1110
2247
|
}
|
|
@@ -1137,12 +2274,13 @@
|
|
|
1137
2274
|
]
|
|
1138
2275
|
}
|
|
1139
2276
|
},
|
|
1140
|
-
"/sdk/organizations/{organization_id}/flow-results/{flow_result_id}/flow/{flow_slug}/
|
|
2277
|
+
"/sdk/organizations/{organization_id}/flow-results/{flow_result_id}/flow/{flow_slug}/form/{form_result_id}/details": {
|
|
1141
2278
|
"get": {
|
|
1142
2279
|
"tags": [
|
|
1143
2280
|
"SDK: Organizations"
|
|
1144
2281
|
],
|
|
1145
|
-
"
|
|
2282
|
+
"summary": "Get form result details",
|
|
2283
|
+
"operationId": "getFormResultDetails",
|
|
1146
2284
|
"parameters": [
|
|
1147
2285
|
{
|
|
1148
2286
|
"name": "sandbox",
|
|
@@ -1195,9 +2333,9 @@
|
|
|
1195
2333
|
"example": "flow-slug"
|
|
1196
2334
|
},
|
|
1197
2335
|
{
|
|
1198
|
-
"name": "
|
|
2336
|
+
"name": "form_result_id",
|
|
1199
2337
|
"in": "path",
|
|
1200
|
-
"description": "The ID of the
|
|
2338
|
+
"description": "The ID of the form result",
|
|
1201
2339
|
"required": true,
|
|
1202
2340
|
"schema": {
|
|
1203
2341
|
"type": "string",
|
|
@@ -1210,9 +2348,19 @@
|
|
|
1210
2348
|
"200": {
|
|
1211
2349
|
"description": "",
|
|
1212
2350
|
"content": {
|
|
1213
|
-
"application/
|
|
2351
|
+
"application/json": {
|
|
1214
2352
|
"schema": {
|
|
1215
|
-
"
|
|
2353
|
+
"$ref": "#/components/schemas/FormResult"
|
|
2354
|
+
}
|
|
2355
|
+
}
|
|
2356
|
+
}
|
|
2357
|
+
},
|
|
2358
|
+
"403": {
|
|
2359
|
+
"description": "",
|
|
2360
|
+
"content": {
|
|
2361
|
+
"application/json": {
|
|
2362
|
+
"schema": {
|
|
2363
|
+
"$ref": "#/components/schemas/BaxeError"
|
|
1216
2364
|
}
|
|
1217
2365
|
}
|
|
1218
2366
|
}
|
|
@@ -1245,12 +2393,13 @@
|
|
|
1245
2393
|
]
|
|
1246
2394
|
}
|
|
1247
2395
|
},
|
|
1248
|
-
"/sdk/organizations/{organization_id}/flow-results/{flow_result_id}/
|
|
2396
|
+
"/sdk/organizations/{organization_id}/flow-results/{flow_result_id}/details": {
|
|
1249
2397
|
"get": {
|
|
1250
2398
|
"tags": [
|
|
1251
2399
|
"SDK: Organizations"
|
|
1252
2400
|
],
|
|
1253
|
-
"
|
|
2401
|
+
"summary": "Get flow result details (deprecated)",
|
|
2402
|
+
"operationId": "getFlowResultDetailsDeprecated",
|
|
1254
2403
|
"parameters": [
|
|
1255
2404
|
{
|
|
1256
2405
|
"name": "sandbox",
|
|
@@ -1291,27 +2440,6 @@
|
|
|
1291
2440
|
"format": "uuid"
|
|
1292
2441
|
},
|
|
1293
2442
|
"example": "123e4567-e89b-12d3-a456-426614174000"
|
|
1294
|
-
},
|
|
1295
|
-
{
|
|
1296
|
-
"name": "flow_slug",
|
|
1297
|
-
"in": "path",
|
|
1298
|
-
"description": "The slug of the flow",
|
|
1299
|
-
"required": true,
|
|
1300
|
-
"schema": {
|
|
1301
|
-
"type": "string"
|
|
1302
|
-
},
|
|
1303
|
-
"example": "flow-slug"
|
|
1304
|
-
},
|
|
1305
|
-
{
|
|
1306
|
-
"name": "wallet_result_id",
|
|
1307
|
-
"in": "path",
|
|
1308
|
-
"description": "The ID of the wallet result",
|
|
1309
|
-
"required": true,
|
|
1310
|
-
"schema": {
|
|
1311
|
-
"type": "string",
|
|
1312
|
-
"format": "uuid"
|
|
1313
|
-
},
|
|
1314
|
-
"example": "123e4567-e89b-12d3-a456-426614174000"
|
|
1315
2443
|
}
|
|
1316
2444
|
],
|
|
1317
2445
|
"responses": {
|
|
@@ -1320,12 +2448,32 @@
|
|
|
1320
2448
|
"content": {
|
|
1321
2449
|
"application/json": {
|
|
1322
2450
|
"schema": {
|
|
1323
|
-
"$ref": "#/components/schemas/
|
|
2451
|
+
"$ref": "#/components/schemas/FlowResult"
|
|
1324
2452
|
}
|
|
1325
2453
|
}
|
|
1326
2454
|
}
|
|
1327
2455
|
},
|
|
1328
|
-
"
|
|
2456
|
+
"400": {
|
|
2457
|
+
"description": "",
|
|
2458
|
+
"content": {
|
|
2459
|
+
"application/json": {
|
|
2460
|
+
"schema": {
|
|
2461
|
+
"$ref": "#/components/schemas/BaxeError"
|
|
2462
|
+
}
|
|
2463
|
+
}
|
|
2464
|
+
}
|
|
2465
|
+
},
|
|
2466
|
+
"401": {
|
|
2467
|
+
"description": "",
|
|
2468
|
+
"content": {
|
|
2469
|
+
"application/json": {
|
|
2470
|
+
"schema": {
|
|
2471
|
+
"$ref": "#/components/schemas/BaxeError"
|
|
2472
|
+
}
|
|
2473
|
+
}
|
|
2474
|
+
}
|
|
2475
|
+
},
|
|
2476
|
+
"403": {
|
|
1329
2477
|
"description": "",
|
|
1330
2478
|
"content": {
|
|
1331
2479
|
"application/json": {
|
|
@@ -1353,12 +2501,13 @@
|
|
|
1353
2501
|
]
|
|
1354
2502
|
}
|
|
1355
2503
|
},
|
|
1356
|
-
"/sdk/organizations/{organization_id}/flow-results/{flow_result_id}/
|
|
2504
|
+
"/sdk/organizations/{organization_id}/flow-results/{flow_result_id}/dv/{dv_result_id}/details": {
|
|
1357
2505
|
"get": {
|
|
1358
2506
|
"tags": [
|
|
1359
2507
|
"SDK: Organizations"
|
|
1360
2508
|
],
|
|
1361
|
-
"
|
|
2509
|
+
"summary": "Get document verification result details (deprecated)",
|
|
2510
|
+
"operationId": "getDocumentVerificationResultDetailsDeprecated",
|
|
1362
2511
|
"parameters": [
|
|
1363
2512
|
{
|
|
1364
2513
|
"name": "sandbox",
|
|
@@ -1401,19 +2550,9 @@
|
|
|
1401
2550
|
"example": "123e4567-e89b-12d3-a456-426614174000"
|
|
1402
2551
|
},
|
|
1403
2552
|
{
|
|
1404
|
-
"name": "
|
|
1405
|
-
"in": "path",
|
|
1406
|
-
"description": "The slug of the flow",
|
|
1407
|
-
"required": true,
|
|
1408
|
-
"schema": {
|
|
1409
|
-
"type": "string"
|
|
1410
|
-
},
|
|
1411
|
-
"example": "flow-slug"
|
|
1412
|
-
},
|
|
1413
|
-
{
|
|
1414
|
-
"name": "phone_result_id",
|
|
2553
|
+
"name": "dv_result_id",
|
|
1415
2554
|
"in": "path",
|
|
1416
|
-
"description": "The ID of the
|
|
2555
|
+
"description": "The ID of the DV result",
|
|
1417
2556
|
"required": true,
|
|
1418
2557
|
"schema": {
|
|
1419
2558
|
"type": "string",
|
|
@@ -1424,11 +2563,21 @@
|
|
|
1424
2563
|
],
|
|
1425
2564
|
"responses": {
|
|
1426
2565
|
"200": {
|
|
2566
|
+
"description": "",
|
|
2567
|
+
"content": {
|
|
2568
|
+
"application/x-protobuf-stream": {
|
|
2569
|
+
"schema": {
|
|
2570
|
+
"type": "string"
|
|
2571
|
+
}
|
|
2572
|
+
}
|
|
2573
|
+
}
|
|
2574
|
+
},
|
|
2575
|
+
"403": {
|
|
1427
2576
|
"description": "",
|
|
1428
2577
|
"content": {
|
|
1429
2578
|
"application/json": {
|
|
1430
2579
|
"schema": {
|
|
1431
|
-
"$ref": "#/components/schemas/
|
|
2580
|
+
"$ref": "#/components/schemas/BaxeError"
|
|
1432
2581
|
}
|
|
1433
2582
|
}
|
|
1434
2583
|
}
|
|
@@ -1461,12 +2610,13 @@
|
|
|
1461
2610
|
]
|
|
1462
2611
|
}
|
|
1463
2612
|
},
|
|
1464
|
-
"/sdk/organizations/{organization_id}/flow-results/{flow_result_id}/
|
|
2613
|
+
"/sdk/organizations/{organization_id}/flow-results/{flow_result_id}/poa/{poa_result_id}/details": {
|
|
1465
2614
|
"get": {
|
|
1466
2615
|
"tags": [
|
|
1467
2616
|
"SDK: Organizations"
|
|
1468
2617
|
],
|
|
1469
|
-
"
|
|
2618
|
+
"summary": "Get proof of address result details (deprecated)",
|
|
2619
|
+
"operationId": "getProofOfAddressResultDetailsDeprecated",
|
|
1470
2620
|
"parameters": [
|
|
1471
2621
|
{
|
|
1472
2622
|
"name": "sandbox",
|
|
@@ -1509,19 +2659,9 @@
|
|
|
1509
2659
|
"example": "123e4567-e89b-12d3-a456-426614174000"
|
|
1510
2660
|
},
|
|
1511
2661
|
{
|
|
1512
|
-
"name": "
|
|
1513
|
-
"in": "path",
|
|
1514
|
-
"description": "The slug of the flow",
|
|
1515
|
-
"required": true,
|
|
1516
|
-
"schema": {
|
|
1517
|
-
"type": "string"
|
|
1518
|
-
},
|
|
1519
|
-
"example": "flow-slug"
|
|
1520
|
-
},
|
|
1521
|
-
{
|
|
1522
|
-
"name": "form_result_id",
|
|
2662
|
+
"name": "poa_result_id",
|
|
1523
2663
|
"in": "path",
|
|
1524
|
-
"description": "The ID of the
|
|
2664
|
+
"description": "The ID of the POA result",
|
|
1525
2665
|
"required": true,
|
|
1526
2666
|
"schema": {
|
|
1527
2667
|
"type": "string",
|
|
@@ -1532,11 +2672,21 @@
|
|
|
1532
2672
|
],
|
|
1533
2673
|
"responses": {
|
|
1534
2674
|
"200": {
|
|
2675
|
+
"description": "",
|
|
2676
|
+
"content": {
|
|
2677
|
+
"application/x-protobuf-stream": {
|
|
2678
|
+
"schema": {
|
|
2679
|
+
"type": "string"
|
|
2680
|
+
}
|
|
2681
|
+
}
|
|
2682
|
+
}
|
|
2683
|
+
},
|
|
2684
|
+
"403": {
|
|
1535
2685
|
"description": "",
|
|
1536
2686
|
"content": {
|
|
1537
2687
|
"application/json": {
|
|
1538
2688
|
"schema": {
|
|
1539
|
-
"$ref": "#/components/schemas/
|
|
2689
|
+
"$ref": "#/components/schemas/BaxeError"
|
|
1540
2690
|
}
|
|
1541
2691
|
}
|
|
1542
2692
|
}
|
|
@@ -1569,13 +2719,25 @@
|
|
|
1569
2719
|
]
|
|
1570
2720
|
}
|
|
1571
2721
|
},
|
|
1572
|
-
"/sdk/organizations/{organization_id}/
|
|
1573
|
-
"
|
|
2722
|
+
"/sdk/organizations/{organization_id}/aml/screen": {
|
|
2723
|
+
"post": {
|
|
1574
2724
|
"tags": [
|
|
1575
|
-
"SDK:
|
|
2725
|
+
"SDK: AML"
|
|
1576
2726
|
],
|
|
1577
|
-
"
|
|
2727
|
+
"summary": "Run a live AML screening and return the raw provider matches",
|
|
2728
|
+
"description": "Queries the configured screening provider (OpenSanctions/Yente or WorldCheck) and returns\nits raw FollowTheMoney-shaped entity matches — no risk scoring, no persistence. This is the\n\"Stage A only\" slice of the on-demand AML flow. Billed per call via pay-as-you-go.",
|
|
2729
|
+
"operationId": "sdkScreenAml",
|
|
1578
2730
|
"parameters": [
|
|
2731
|
+
{
|
|
2732
|
+
"name": "organization_id",
|
|
2733
|
+
"in": "path",
|
|
2734
|
+
"description": "Organization ID",
|
|
2735
|
+
"required": true,
|
|
2736
|
+
"schema": {
|
|
2737
|
+
"type": "string",
|
|
2738
|
+
"format": "uuid"
|
|
2739
|
+
}
|
|
2740
|
+
},
|
|
1579
2741
|
{
|
|
1580
2742
|
"name": "sandbox",
|
|
1581
2743
|
"in": "query",
|
|
@@ -1593,37 +2755,25 @@
|
|
|
1593
2755
|
"$ref": "#/components/schemas/Locale"
|
|
1594
2756
|
},
|
|
1595
2757
|
"style": "form"
|
|
1596
|
-
},
|
|
1597
|
-
{
|
|
1598
|
-
"name": "organization_id",
|
|
1599
|
-
"in": "path",
|
|
1600
|
-
"description": "The ID of the organization",
|
|
1601
|
-
"required": true,
|
|
1602
|
-
"schema": {
|
|
1603
|
-
"type": "string",
|
|
1604
|
-
"format": "uuid"
|
|
1605
|
-
},
|
|
1606
|
-
"example": "123e4567-e89b-12d3-a456-426614174000"
|
|
1607
|
-
},
|
|
1608
|
-
{
|
|
1609
|
-
"name": "flow_result_id",
|
|
1610
|
-
"in": "path",
|
|
1611
|
-
"description": "The ID of the flow result",
|
|
1612
|
-
"required": true,
|
|
1613
|
-
"schema": {
|
|
1614
|
-
"type": "string",
|
|
1615
|
-
"format": "uuid"
|
|
1616
|
-
},
|
|
1617
|
-
"example": "123e4567-e89b-12d3-a456-426614174000"
|
|
1618
2758
|
}
|
|
1619
2759
|
],
|
|
2760
|
+
"requestBody": {
|
|
2761
|
+
"content": {
|
|
2762
|
+
"application/json": {
|
|
2763
|
+
"schema": {
|
|
2764
|
+
"$ref": "#/components/schemas/SdkAmlScreenRequest"
|
|
2765
|
+
}
|
|
2766
|
+
}
|
|
2767
|
+
},
|
|
2768
|
+
"required": true
|
|
2769
|
+
},
|
|
1620
2770
|
"responses": {
|
|
1621
2771
|
"200": {
|
|
1622
2772
|
"description": "",
|
|
1623
2773
|
"content": {
|
|
1624
2774
|
"application/json": {
|
|
1625
2775
|
"schema": {
|
|
1626
|
-
"$ref": "#/components/schemas/
|
|
2776
|
+
"$ref": "#/components/schemas/SdkAmlScreenResponse"
|
|
1627
2777
|
}
|
|
1628
2778
|
}
|
|
1629
2779
|
}
|
|
@@ -1648,6 +2798,16 @@
|
|
|
1648
2798
|
}
|
|
1649
2799
|
}
|
|
1650
2800
|
},
|
|
2801
|
+
"402": {
|
|
2802
|
+
"description": "",
|
|
2803
|
+
"content": {
|
|
2804
|
+
"application/json": {
|
|
2805
|
+
"schema": {
|
|
2806
|
+
"$ref": "#/components/schemas/BaxeError"
|
|
2807
|
+
}
|
|
2808
|
+
}
|
|
2809
|
+
}
|
|
2810
|
+
},
|
|
1651
2811
|
"403": {
|
|
1652
2812
|
"description": "",
|
|
1653
2813
|
"content": {
|
|
@@ -1671,82 +2831,53 @@
|
|
|
1671
2831
|
},
|
|
1672
2832
|
"security": [
|
|
1673
2833
|
{
|
|
1674
|
-
"
|
|
1675
|
-
}
|
|
1676
|
-
]
|
|
1677
|
-
}
|
|
1678
|
-
},
|
|
1679
|
-
"/
|
|
1680
|
-
"get": {
|
|
1681
|
-
"tags": [
|
|
1682
|
-
"
|
|
1683
|
-
],
|
|
1684
|
-
"
|
|
1685
|
-
"
|
|
1686
|
-
|
|
1687
|
-
|
|
1688
|
-
|
|
1689
|
-
"
|
|
1690
|
-
"schema": {
|
|
1691
|
-
"type": "boolean"
|
|
1692
|
-
},
|
|
1693
|
-
"style": "form"
|
|
1694
|
-
},
|
|
1695
|
-
{
|
|
1696
|
-
"name": "locale",
|
|
1697
|
-
"in": "query",
|
|
1698
|
-
"required": false,
|
|
1699
|
-
"schema": {
|
|
1700
|
-
"$ref": "#/components/schemas/Locale"
|
|
1701
|
-
},
|
|
1702
|
-
"style": "form"
|
|
1703
|
-
},
|
|
1704
|
-
{
|
|
1705
|
-
"name": "organization_id",
|
|
1706
|
-
"in": "path",
|
|
1707
|
-
"description": "The ID of the organization",
|
|
1708
|
-
"required": true,
|
|
1709
|
-
"schema": {
|
|
1710
|
-
"type": "string",
|
|
1711
|
-
"format": "uuid"
|
|
1712
|
-
},
|
|
1713
|
-
"example": "123e4567-e89b-12d3-a456-426614174000"
|
|
1714
|
-
},
|
|
1715
|
-
{
|
|
1716
|
-
"name": "flow_result_id",
|
|
1717
|
-
"in": "path",
|
|
1718
|
-
"description": "The ID of the flow result",
|
|
1719
|
-
"required": true,
|
|
1720
|
-
"schema": {
|
|
1721
|
-
"type": "string",
|
|
1722
|
-
"format": "uuid"
|
|
1723
|
-
},
|
|
1724
|
-
"example": "123e4567-e89b-12d3-a456-426614174000"
|
|
1725
|
-
},
|
|
1726
|
-
{
|
|
1727
|
-
"name": "dv_result_id",
|
|
2834
|
+
"api-key": []
|
|
2835
|
+
}
|
|
2836
|
+
]
|
|
2837
|
+
}
|
|
2838
|
+
},
|
|
2839
|
+
"/organizations/{organization_id}/billing/topup-packs": {
|
|
2840
|
+
"get": {
|
|
2841
|
+
"tags": [
|
|
2842
|
+
"Billing"
|
|
2843
|
+
],
|
|
2844
|
+
"summary": "Get the catalog of top-up credit packs (one-time Stripe prices tagged `credit_topup`).",
|
|
2845
|
+
"description": "Unlike sibling endpoints, caching (30 min TTL, with a stale-on-Stripe-error fallback) is\nowned by `BillingService::get_topup_packs` itself rather than done here in the handler —\nsee that method's doc comment for why.",
|
|
2846
|
+
"operationId": "get_topup_packs",
|
|
2847
|
+
"parameters": [
|
|
2848
|
+
{
|
|
2849
|
+
"name": "organization_id",
|
|
1728
2850
|
"in": "path",
|
|
1729
|
-
"description": "
|
|
2851
|
+
"description": "Organization ID",
|
|
1730
2852
|
"required": true,
|
|
1731
2853
|
"schema": {
|
|
1732
2854
|
"type": "string",
|
|
1733
2855
|
"format": "uuid"
|
|
1734
|
-
}
|
|
1735
|
-
"example": "123e4567-e89b-12d3-a456-426614174000"
|
|
2856
|
+
}
|
|
1736
2857
|
}
|
|
1737
2858
|
],
|
|
1738
2859
|
"responses": {
|
|
1739
2860
|
"200": {
|
|
1740
2861
|
"description": "",
|
|
1741
2862
|
"content": {
|
|
1742
|
-
"application/
|
|
2863
|
+
"application/json": {
|
|
1743
2864
|
"schema": {
|
|
1744
|
-
"
|
|
2865
|
+
"$ref": "#/components/schemas/TopupPacksResponse"
|
|
1745
2866
|
}
|
|
1746
2867
|
}
|
|
1747
2868
|
}
|
|
1748
2869
|
},
|
|
1749
|
-
"
|
|
2870
|
+
"401": {
|
|
2871
|
+
"description": "",
|
|
2872
|
+
"content": {
|
|
2873
|
+
"application/json": {
|
|
2874
|
+
"schema": {
|
|
2875
|
+
"$ref": "#/components/schemas/BaxeError"
|
|
2876
|
+
}
|
|
2877
|
+
}
|
|
2878
|
+
}
|
|
2879
|
+
},
|
|
2880
|
+
"403": {
|
|
1750
2881
|
"description": "",
|
|
1751
2882
|
"content": {
|
|
1752
2883
|
"application/json": {
|
|
@@ -1769,77 +2900,78 @@
|
|
|
1769
2900
|
},
|
|
1770
2901
|
"security": [
|
|
1771
2902
|
{
|
|
1772
|
-
"
|
|
2903
|
+
"jwt-auth": []
|
|
1773
2904
|
}
|
|
1774
2905
|
]
|
|
1775
2906
|
}
|
|
1776
2907
|
},
|
|
1777
|
-
"/
|
|
1778
|
-
"
|
|
2908
|
+
"/organizations/{organization_id}/billing/topup/checkout": {
|
|
2909
|
+
"post": {
|
|
1779
2910
|
"tags": [
|
|
1780
|
-
"
|
|
2911
|
+
"Billing"
|
|
1781
2912
|
],
|
|
1782
|
-
"
|
|
2913
|
+
"summary": "Create a payment-mode Stripe Checkout session for a one-time credit top-up purchase.",
|
|
2914
|
+
"description": "The `price_id` must be one of the packs returned by `GET .../billing/topup-packs` —\nthe catalog is resolved live (bypassing that endpoint's cache) since this is the\npurchase path. Fulfillment (crediting the organization once payment completes) is\nhandled by the `checkout.session.completed` Stripe webhook, keyed off the session\nmetadata stamped here.",
|
|
2915
|
+
"operationId": "create_topup_checkout",
|
|
1783
2916
|
"parameters": [
|
|
1784
|
-
{
|
|
1785
|
-
"name": "sandbox",
|
|
1786
|
-
"in": "query",
|
|
1787
|
-
"required": true,
|
|
1788
|
-
"schema": {
|
|
1789
|
-
"type": "boolean"
|
|
1790
|
-
},
|
|
1791
|
-
"style": "form"
|
|
1792
|
-
},
|
|
1793
|
-
{
|
|
1794
|
-
"name": "locale",
|
|
1795
|
-
"in": "query",
|
|
1796
|
-
"required": false,
|
|
1797
|
-
"schema": {
|
|
1798
|
-
"$ref": "#/components/schemas/Locale"
|
|
1799
|
-
},
|
|
1800
|
-
"style": "form"
|
|
1801
|
-
},
|
|
1802
2917
|
{
|
|
1803
2918
|
"name": "organization_id",
|
|
1804
2919
|
"in": "path",
|
|
1805
|
-
"description": "
|
|
1806
|
-
"required": true,
|
|
1807
|
-
"schema": {
|
|
1808
|
-
"type": "string",
|
|
1809
|
-
"format": "uuid"
|
|
1810
|
-
},
|
|
1811
|
-
"example": "123e4567-e89b-12d3-a456-426614174000"
|
|
1812
|
-
},
|
|
1813
|
-
{
|
|
1814
|
-
"name": "flow_result_id",
|
|
1815
|
-
"in": "path",
|
|
1816
|
-
"description": "The ID of the flow result",
|
|
1817
|
-
"required": true,
|
|
1818
|
-
"schema": {
|
|
1819
|
-
"type": "string",
|
|
1820
|
-
"format": "uuid"
|
|
1821
|
-
},
|
|
1822
|
-
"example": "123e4567-e89b-12d3-a456-426614174000"
|
|
1823
|
-
},
|
|
1824
|
-
{
|
|
1825
|
-
"name": "poa_result_id",
|
|
1826
|
-
"in": "path",
|
|
1827
|
-
"description": "The ID of the POA result",
|
|
2920
|
+
"description": "Organization ID",
|
|
1828
2921
|
"required": true,
|
|
1829
2922
|
"schema": {
|
|
1830
2923
|
"type": "string",
|
|
1831
2924
|
"format": "uuid"
|
|
1832
|
-
}
|
|
1833
|
-
"example": "123e4567-e89b-12d3-a456-426614174000"
|
|
2925
|
+
}
|
|
1834
2926
|
}
|
|
1835
2927
|
],
|
|
2928
|
+
"requestBody": {
|
|
2929
|
+
"content": {
|
|
2930
|
+
"application/json": {
|
|
2931
|
+
"schema": {
|
|
2932
|
+
"$ref": "#/components/schemas/CreateTopupCheckoutRequest"
|
|
2933
|
+
}
|
|
2934
|
+
}
|
|
2935
|
+
},
|
|
2936
|
+
"required": true
|
|
2937
|
+
},
|
|
1836
2938
|
"responses": {
|
|
1837
2939
|
"200": {
|
|
1838
2940
|
"description": "",
|
|
1839
2941
|
"content": {
|
|
1840
|
-
"application/
|
|
2942
|
+
"application/json": {
|
|
1841
2943
|
"schema": {
|
|
1842
|
-
"
|
|
2944
|
+
"$ref": "#/components/schemas/CheckoutSessionResponse"
|
|
2945
|
+
}
|
|
2946
|
+
}
|
|
2947
|
+
}
|
|
2948
|
+
},
|
|
2949
|
+
"400": {
|
|
2950
|
+
"description": "",
|
|
2951
|
+
"content": {
|
|
2952
|
+
"application/json": {
|
|
2953
|
+
"schema": {
|
|
2954
|
+
"$ref": "#/components/schemas/BaxeError"
|
|
2955
|
+
}
|
|
2956
|
+
}
|
|
2957
|
+
}
|
|
2958
|
+
},
|
|
2959
|
+
"401": {
|
|
2960
|
+
"description": "",
|
|
2961
|
+
"content": {
|
|
2962
|
+
"application/json": {
|
|
2963
|
+
"schema": {
|
|
2964
|
+
"$ref": "#/components/schemas/BaxeError"
|
|
2965
|
+
}
|
|
2966
|
+
}
|
|
2967
|
+
}
|
|
2968
|
+
},
|
|
2969
|
+
"403": {
|
|
2970
|
+
"description": "",
|
|
2971
|
+
"content": {
|
|
2972
|
+
"application/json": {
|
|
2973
|
+
"schema": {
|
|
2974
|
+
"$ref": "#/components/schemas/BaxeError"
|
|
1843
2975
|
}
|
|
1844
2976
|
}
|
|
1845
2977
|
}
|
|
@@ -1867,7 +2999,7 @@
|
|
|
1867
2999
|
},
|
|
1868
3000
|
"security": [
|
|
1869
3001
|
{
|
|
1870
|
-
"
|
|
3002
|
+
"jwt-auth": []
|
|
1871
3003
|
}
|
|
1872
3004
|
]
|
|
1873
3005
|
}
|
|
@@ -1987,6 +3119,54 @@
|
|
|
1987
3119
|
}
|
|
1988
3120
|
}
|
|
1989
3121
|
},
|
|
3122
|
+
"AddKybPersonInput": {
|
|
3123
|
+
"type": "object",
|
|
3124
|
+
"description": "A single UBO/director to add to an existing KYB result.",
|
|
3125
|
+
"required": [
|
|
3126
|
+
"firstName",
|
|
3127
|
+
"lastName",
|
|
3128
|
+
"dateOfBirth",
|
|
3129
|
+
"country",
|
|
3130
|
+
"gender"
|
|
3131
|
+
],
|
|
3132
|
+
"properties": {
|
|
3133
|
+
"country": {
|
|
3134
|
+
"type": "string"
|
|
3135
|
+
},
|
|
3136
|
+
"dateOfBirth": {
|
|
3137
|
+
"type": "string"
|
|
3138
|
+
},
|
|
3139
|
+
"email": {
|
|
3140
|
+
"type": "string",
|
|
3141
|
+
"description": "When present, the person is sent a KYC invitation and must complete full KYC for the\nKYB to be approvable. When absent, the person is screened by name only (AML) and is not\nnotified — a clean name-AML result is sufficient (and required) for that person.",
|
|
3142
|
+
"nullable": true
|
|
3143
|
+
},
|
|
3144
|
+
"firstName": {
|
|
3145
|
+
"type": "string"
|
|
3146
|
+
},
|
|
3147
|
+
"gender": {
|
|
3148
|
+
"type": "string"
|
|
3149
|
+
},
|
|
3150
|
+
"lastName": {
|
|
3151
|
+
"type": "string"
|
|
3152
|
+
}
|
|
3153
|
+
}
|
|
3154
|
+
},
|
|
3155
|
+
"AddKybPersonsPayload": {
|
|
3156
|
+
"type": "object",
|
|
3157
|
+
"description": "Request body for `POST .../kyb/{kyb_result_id}/ubos` and `.../directors`.",
|
|
3158
|
+
"required": [
|
|
3159
|
+
"persons"
|
|
3160
|
+
],
|
|
3161
|
+
"properties": {
|
|
3162
|
+
"persons": {
|
|
3163
|
+
"type": "array",
|
|
3164
|
+
"items": {
|
|
3165
|
+
"$ref": "#/components/schemas/AddKybPersonInput"
|
|
3166
|
+
}
|
|
3167
|
+
}
|
|
3168
|
+
}
|
|
3169
|
+
},
|
|
1990
3170
|
"AddressData": {
|
|
1991
3171
|
"type": "object",
|
|
1992
3172
|
"required": [
|
|
@@ -2021,11 +3201,161 @@
|
|
|
2021
3201
|
"postalCode": {
|
|
2022
3202
|
"type": "string"
|
|
2023
3203
|
},
|
|
2024
|
-
"street": {
|
|
2025
|
-
"type": "string"
|
|
3204
|
+
"street": {
|
|
3205
|
+
"type": "string"
|
|
3206
|
+
}
|
|
3207
|
+
}
|
|
3208
|
+
},
|
|
3209
|
+
"AdverseMediaProviderKind": {
|
|
3210
|
+
"type": "string",
|
|
3211
|
+
"description": "Selected adverse-media provider, parsed from the `adverse_media_provider` config\nvalue so it can be matched exhaustively instead of compared as a string.",
|
|
3212
|
+
"enum": [
|
|
3213
|
+
"VERIFY",
|
|
3214
|
+
"ONE_MEDIA_CHECK",
|
|
3215
|
+
"GROK"
|
|
3216
|
+
]
|
|
3217
|
+
},
|
|
3218
|
+
"AmlAdverseMediaArticle": {
|
|
3219
|
+
"type": "object",
|
|
3220
|
+
"description": "A single adverse-media article persisted on an AML result.\n\nThis mirrors the provider's article shape but lives in `zyphe-shared` (which\ncannot depend on `zyphe-clients-interface`); the worker maps the provider\nresponse into this type before persisting.",
|
|
3221
|
+
"required": [
|
|
3222
|
+
"title",
|
|
3223
|
+
"snippet",
|
|
3224
|
+
"url",
|
|
3225
|
+
"source",
|
|
3226
|
+
"language"
|
|
3227
|
+
],
|
|
3228
|
+
"properties": {
|
|
3229
|
+
"eventGroup": {
|
|
3230
|
+
"type": "string",
|
|
3231
|
+
"nullable": true
|
|
3232
|
+
},
|
|
3233
|
+
"language": {
|
|
3234
|
+
"type": "string"
|
|
3235
|
+
},
|
|
3236
|
+
"locations": {
|
|
3237
|
+
"type": "array",
|
|
3238
|
+
"items": {
|
|
3239
|
+
"type": "string"
|
|
3240
|
+
}
|
|
3241
|
+
},
|
|
3242
|
+
"publishedDate": {
|
|
3243
|
+
"type": "string",
|
|
3244
|
+
"format": "date-time",
|
|
3245
|
+
"nullable": true
|
|
3246
|
+
},
|
|
3247
|
+
"relevanceScore": {
|
|
3248
|
+
"type": "number",
|
|
3249
|
+
"format": "double",
|
|
3250
|
+
"nullable": true
|
|
3251
|
+
},
|
|
3252
|
+
"snippet": {
|
|
3253
|
+
"type": "string"
|
|
3254
|
+
},
|
|
3255
|
+
"source": {
|
|
3256
|
+
"type": "string"
|
|
3257
|
+
},
|
|
3258
|
+
"title": {
|
|
3259
|
+
"type": "string"
|
|
3260
|
+
},
|
|
3261
|
+
"topics": {
|
|
3262
|
+
"type": "array",
|
|
3263
|
+
"items": {
|
|
3264
|
+
"type": "string"
|
|
3265
|
+
}
|
|
3266
|
+
},
|
|
3267
|
+
"url": {
|
|
3268
|
+
"type": "string"
|
|
3269
|
+
}
|
|
3270
|
+
}
|
|
3271
|
+
},
|
|
3272
|
+
"AmlAdverseMediaResult": {
|
|
3273
|
+
"type": "object",
|
|
3274
|
+
"description": "Adverse-media screening outcome attached to an AML result.",
|
|
3275
|
+
"required": [
|
|
3276
|
+
"provider",
|
|
3277
|
+
"checkedAt",
|
|
3278
|
+
"hasHit",
|
|
3279
|
+
"totalArticleCount",
|
|
3280
|
+
"totalEventCount"
|
|
3281
|
+
],
|
|
3282
|
+
"properties": {
|
|
3283
|
+
"articles": {
|
|
3284
|
+
"type": "array",
|
|
3285
|
+
"items": {
|
|
3286
|
+
"$ref": "#/components/schemas/AmlAdverseMediaArticle"
|
|
3287
|
+
}
|
|
3288
|
+
},
|
|
3289
|
+
"checkedAt": {
|
|
3290
|
+
"type": "string",
|
|
3291
|
+
"format": "date-time"
|
|
3292
|
+
},
|
|
3293
|
+
"hasHit": {
|
|
3294
|
+
"type": "boolean",
|
|
3295
|
+
"description": "Whether the screening returned any adverse-media articles (the gating signal)."
|
|
3296
|
+
},
|
|
3297
|
+
"provider": {
|
|
3298
|
+
"$ref": "#/components/schemas/AdverseMediaProviderKind"
|
|
3299
|
+
},
|
|
3300
|
+
"totalArticleCount": {
|
|
3301
|
+
"type": "integer",
|
|
3302
|
+
"minimum": 0
|
|
3303
|
+
},
|
|
3304
|
+
"totalEventCount": {
|
|
3305
|
+
"type": "integer",
|
|
3306
|
+
"minimum": 0
|
|
3307
|
+
}
|
|
3308
|
+
}
|
|
3309
|
+
},
|
|
3310
|
+
"AmlAgentReview": {
|
|
3311
|
+
"type": "object",
|
|
3312
|
+
"description": "Outcome of the latest agentic (Prosecutor → Defender → Judge) review of this screening,\npersisted on the result so the dispatcher does not re-review an unchanged screening and so\na Suggest-mode verdict is visible as a suggestion. Scoped to one screening revision: like\nmoderation forcing, it lapses when a re-screen bumps `checked_at` past `reviewed_at`\n(see [`AmlRiskResult::agent_review_in_force`]).",
|
|
3313
|
+
"required": [
|
|
3314
|
+
"reviewedAt",
|
|
3315
|
+
"policyVersion",
|
|
3316
|
+
"verdictAction",
|
|
3317
|
+
"enactedAction",
|
|
3318
|
+
"rationale",
|
|
3319
|
+
"residualRiskScore",
|
|
3320
|
+
"suggested"
|
|
3321
|
+
],
|
|
3322
|
+
"properties": {
|
|
3323
|
+
"enactedAction": {
|
|
3324
|
+
"$ref": "#/components/schemas/AmlAgentReviewAction"
|
|
3325
|
+
},
|
|
3326
|
+
"policyVersion": {
|
|
3327
|
+
"type": "string",
|
|
3328
|
+
"description": "Decision-policy version that produced the verdict (audit traceability)."
|
|
3329
|
+
},
|
|
3330
|
+
"rationale": {
|
|
3331
|
+
"type": "string"
|
|
3332
|
+
},
|
|
3333
|
+
"residualRiskScore": {
|
|
3334
|
+
"type": "number",
|
|
3335
|
+
"format": "float"
|
|
3336
|
+
},
|
|
3337
|
+
"reviewedAt": {
|
|
3338
|
+
"type": "string",
|
|
3339
|
+
"format": "date-time"
|
|
3340
|
+
},
|
|
3341
|
+
"suggested": {
|
|
3342
|
+
"type": "boolean",
|
|
3343
|
+
"description": "True when the agentic mode gated the action out (Suggest): the verdict is a suggestion\nfor a human reviewer, nothing was enacted."
|
|
3344
|
+
},
|
|
3345
|
+
"verdictAction": {
|
|
3346
|
+
"$ref": "#/components/schemas/AmlAgentReviewAction"
|
|
2026
3347
|
}
|
|
2027
3348
|
}
|
|
2028
3349
|
},
|
|
3350
|
+
"AmlAgentReviewAction": {
|
|
3351
|
+
"type": "string",
|
|
3352
|
+
"description": "The action a review decision resolves to, independent of its action-specific payload — the\nserde tag of the review engine's `Decision`. The camelCase encodings (`approve` /\n`requestClarification` / `escalate`) match the strings previously stored on\n`metadata.agentReview`, so existing records deserialize unchanged.",
|
|
3353
|
+
"enum": [
|
|
3354
|
+
"approve",
|
|
3355
|
+
"requestClarification",
|
|
3356
|
+
"escalate"
|
|
3357
|
+
]
|
|
3358
|
+
},
|
|
2029
3359
|
"AmlCheckSummary": {
|
|
2030
3360
|
"type": "object",
|
|
2031
3361
|
"required": [
|
|
@@ -2037,6 +3367,10 @@
|
|
|
2037
3367
|
"highRiskEntitiesCount"
|
|
2038
3368
|
],
|
|
2039
3369
|
"properties": {
|
|
3370
|
+
"hasAdverseMedia": {
|
|
3371
|
+
"type": "boolean",
|
|
3372
|
+
"description": "Whether the adverse-media screening for this subject returned any articles.\n`#[serde(default)]` keeps existing person/company result rows (written before\nadverse-media screening) deserializable as `false`."
|
|
3373
|
+
},
|
|
2040
3374
|
"hasPep": {
|
|
2041
3375
|
"type": "boolean"
|
|
2042
3376
|
},
|
|
@@ -2060,6 +3394,23 @@
|
|
|
2060
3394
|
}
|
|
2061
3395
|
}
|
|
2062
3396
|
},
|
|
3397
|
+
"AmlCompanyQueryMetadata": {
|
|
3398
|
+
"type": "object",
|
|
3399
|
+
"required": [
|
|
3400
|
+
"companyName"
|
|
3401
|
+
],
|
|
3402
|
+
"properties": {
|
|
3403
|
+
"companyName": {
|
|
3404
|
+
"type": "string"
|
|
3405
|
+
},
|
|
3406
|
+
"country": {
|
|
3407
|
+
"type": "string"
|
|
3408
|
+
},
|
|
3409
|
+
"registrationNumber": {
|
|
3410
|
+
"type": "string"
|
|
3411
|
+
}
|
|
3412
|
+
}
|
|
3413
|
+
},
|
|
2063
3414
|
"AmlEntityResponse": {
|
|
2064
3415
|
"type": "object",
|
|
2065
3416
|
"properties": {
|
|
@@ -2198,6 +3549,14 @@
|
|
|
2198
3549
|
}
|
|
2199
3550
|
}
|
|
2200
3551
|
},
|
|
3552
|
+
"AmlModerationStatus": {
|
|
3553
|
+
"type": "string",
|
|
3554
|
+
"enum": [
|
|
3555
|
+
"approved",
|
|
3556
|
+
"rejected",
|
|
3557
|
+
"escalated"
|
|
3558
|
+
]
|
|
3559
|
+
},
|
|
2201
3560
|
"AmlOccupancy": {
|
|
2202
3561
|
"type": "object",
|
|
2203
3562
|
"properties": {
|
|
@@ -2312,6 +3671,10 @@
|
|
|
2312
3671
|
"updatedAt"
|
|
2313
3672
|
],
|
|
2314
3673
|
"properties": {
|
|
3674
|
+
"adverseMedia": {
|
|
3675
|
+
"type": "boolean",
|
|
3676
|
+
"description": "Whether adverse-media screening for this subject returned a hit. `#[serde(default)]`\n(→ `false`) covers legacy cached payloads that predate adverse-media screening."
|
|
3677
|
+
},
|
|
2315
3678
|
"createdAt": {
|
|
2316
3679
|
"type": "string",
|
|
2317
3680
|
"format": "date-time"
|
|
@@ -2328,12 +3691,21 @@
|
|
|
2328
3691
|
"type": "string",
|
|
2329
3692
|
"format": "uuid"
|
|
2330
3693
|
},
|
|
3694
|
+
"namedPersonRef": {
|
|
3695
|
+
"type": "string",
|
|
3696
|
+
"format": "uuid",
|
|
3697
|
+
"description": "For a name-only (email-less) UBO/director screening, the screened person's stable id\n(the `UboDefinition`/`DirectorDefinition` `id`); lets consumers correlate this AML row to\nits named person. `None` for verification-request-backed rows (person/company screenings).",
|
|
3698
|
+
"nullable": true
|
|
3699
|
+
},
|
|
2331
3700
|
"pep": {
|
|
2332
3701
|
"type": "boolean"
|
|
2333
3702
|
},
|
|
2334
3703
|
"sanctions": {
|
|
2335
3704
|
"type": "boolean"
|
|
2336
3705
|
},
|
|
3706
|
+
"subjectType": {
|
|
3707
|
+
"$ref": "#/components/schemas/AmlSubjectType"
|
|
3708
|
+
},
|
|
2337
3709
|
"updatedAt": {
|
|
2338
3710
|
"type": "string",
|
|
2339
3711
|
"format": "date-time"
|
|
@@ -2353,16 +3725,48 @@
|
|
|
2353
3725
|
"controls"
|
|
2354
3726
|
],
|
|
2355
3727
|
"properties": {
|
|
3728
|
+
"adverseMedia": {
|
|
3729
|
+
"allOf": [
|
|
3730
|
+
{
|
|
3731
|
+
"$ref": "#/components/schemas/AmlAdverseMediaResult"
|
|
3732
|
+
}
|
|
3733
|
+
],
|
|
3734
|
+
"nullable": true
|
|
3735
|
+
},
|
|
3736
|
+
"agentReview": {
|
|
3737
|
+
"allOf": [
|
|
3738
|
+
{
|
|
3739
|
+
"$ref": "#/components/schemas/AmlAgentReview"
|
|
3740
|
+
}
|
|
3741
|
+
],
|
|
3742
|
+
"nullable": true
|
|
3743
|
+
},
|
|
2356
3744
|
"checkedAt": {
|
|
2357
3745
|
"type": "string",
|
|
2358
3746
|
"format": "date-time"
|
|
2359
3747
|
},
|
|
3748
|
+
"companyQuery": {
|
|
3749
|
+
"allOf": [
|
|
3750
|
+
{
|
|
3751
|
+
"$ref": "#/components/schemas/AmlCompanyQueryMetadata"
|
|
3752
|
+
}
|
|
3753
|
+
],
|
|
3754
|
+
"nullable": true
|
|
3755
|
+
},
|
|
2360
3756
|
"controls": {
|
|
2361
3757
|
"type": "array",
|
|
2362
3758
|
"items": {
|
|
2363
3759
|
"$ref": "#/components/schemas/ResultControlOperation"
|
|
2364
3760
|
}
|
|
2365
3761
|
},
|
|
3762
|
+
"moderation": {
|
|
3763
|
+
"allOf": [
|
|
3764
|
+
{
|
|
3765
|
+
"$ref": "#/components/schemas/AmlModerationStatus"
|
|
3766
|
+
}
|
|
3767
|
+
],
|
|
3768
|
+
"nullable": true
|
|
3769
|
+
},
|
|
2366
3770
|
"query": {
|
|
2367
3771
|
"allOf": [
|
|
2368
3772
|
{
|
|
@@ -2456,6 +3860,14 @@
|
|
|
2456
3860
|
}
|
|
2457
3861
|
}
|
|
2458
3862
|
},
|
|
3863
|
+
"AmlSubjectType": {
|
|
3864
|
+
"type": "string",
|
|
3865
|
+
"description": "The screened subject of an AML result. DTO mirror of the DB `AmlSubjectType` entity enum\n(converted via `From<entities::AmlSubjectType>`); lets consumers tell a company AML result\nfrom a person one. Defaults to `Person` (every result predating this field was a person).",
|
|
3866
|
+
"enum": [
|
|
3867
|
+
"PERSON",
|
|
3868
|
+
"COMPANY"
|
|
3869
|
+
]
|
|
3870
|
+
},
|
|
2459
3871
|
"ApiKeyType": {
|
|
2460
3872
|
"type": "string",
|
|
2461
3873
|
"enum": [
|
|
@@ -2472,10 +3884,25 @@
|
|
|
2472
3884
|
"weight"
|
|
2473
3885
|
],
|
|
2474
3886
|
"properties": {
|
|
3887
|
+
"addedAt": {
|
|
3888
|
+
"type": "string",
|
|
3889
|
+
"format": "date-time",
|
|
3890
|
+
"description": "When this derivation last became active. Informational; `None` for legacy rows.",
|
|
3891
|
+
"nullable": true
|
|
3892
|
+
},
|
|
2475
3893
|
"id": {
|
|
2476
3894
|
"type": "string",
|
|
2477
3895
|
"format": "uuid"
|
|
2478
3896
|
},
|
|
3897
|
+
"removedAt": {
|
|
3898
|
+
"type": "string",
|
|
3899
|
+
"format": "date-time",
|
|
3900
|
+
"description": "Tombstone. `None` == active. This is the active predicate.",
|
|
3901
|
+
"nullable": true
|
|
3902
|
+
},
|
|
3903
|
+
"source": {
|
|
3904
|
+
"$ref": "#/components/schemas/RiskTagSource"
|
|
3905
|
+
},
|
|
2479
3906
|
"tag": {
|
|
2480
3907
|
"type": "string"
|
|
2481
3908
|
},
|
|
@@ -2485,6 +3912,410 @@
|
|
|
2485
3912
|
}
|
|
2486
3913
|
}
|
|
2487
3914
|
},
|
|
3915
|
+
"AssignedRiskTags": {
|
|
3916
|
+
"type": "array",
|
|
3917
|
+
"items": {
|
|
3918
|
+
"$ref": "#/components/schemas/AssignedRiskTag"
|
|
3919
|
+
},
|
|
3920
|
+
"description": "Newtype wrapper for the list of assigned risk tags stored as JSONB in the database.\nRequired because SeaORM's `FromJsonQueryResult` cannot be derived for bare `Vec<T>`."
|
|
3921
|
+
},
|
|
3922
|
+
"AuditAction": {
|
|
3923
|
+
"type": "string",
|
|
3924
|
+
"description": "All auditable actions.\n\n`JsonDisplay` / `JsonFromStr` keep `Display` and `FromStr` in sync with serde,\nso `.to_string()` always produces the DB-compatible string\n(e.g., `AuditAction::FlowCreated` → `\"FLOW_CREATED\"`).",
|
|
3925
|
+
"enum": [
|
|
3926
|
+
"VIEWED",
|
|
3927
|
+
"CREATED",
|
|
3928
|
+
"UPDATED",
|
|
3929
|
+
"DELETED",
|
|
3930
|
+
"AUTH_LOGIN",
|
|
3931
|
+
"AUTH_LOGIN_FAILED",
|
|
3932
|
+
"AUTH_LOGOUT",
|
|
3933
|
+
"AUTH_PASSWORD_CHANGED",
|
|
3934
|
+
"AUTH_PASSKEY_REGISTERED",
|
|
3935
|
+
"AUTH_MAGIC_LINK_REQUESTED",
|
|
3936
|
+
"AUTH_PASSWORD_RESET_REQUESTED",
|
|
3937
|
+
"AUTH_EMAIL_VERIFIED",
|
|
3938
|
+
"IDENTITY_ROLE_CHANGED",
|
|
3939
|
+
"IDENTITY_DEACTIVATED",
|
|
3940
|
+
"IDENTITY_DELETED",
|
|
3941
|
+
"ORG_CREATED",
|
|
3942
|
+
"ORG_SETTINGS_UPDATED",
|
|
3943
|
+
"ORG_MEMBER_INVITED",
|
|
3944
|
+
"ORG_MEMBER_REMOVED",
|
|
3945
|
+
"ORG_MEMBER_ROLE_CHANGED",
|
|
3946
|
+
"ORG_INVITE_REVOKED",
|
|
3947
|
+
"API_KEY_CREATED",
|
|
3948
|
+
"API_KEY_UPDATED",
|
|
3949
|
+
"API_KEY_DELETED",
|
|
3950
|
+
"BOT_CREATED",
|
|
3951
|
+
"BOT_DELETED",
|
|
3952
|
+
"BOT_TOKEN_REGENERATED",
|
|
3953
|
+
"FLOW_CREATED",
|
|
3954
|
+
"FLOW_UPDATED",
|
|
3955
|
+
"FLOW_DELETED",
|
|
3956
|
+
"FLOW_STEP_ADDED",
|
|
3957
|
+
"FLOW_STEP_UPDATED",
|
|
3958
|
+
"FLOW_STEP_DELETED",
|
|
3959
|
+
"FLOW_SHARED",
|
|
3960
|
+
"FLOW_SHARE_REVOKED",
|
|
3961
|
+
"PARTNER_INVITED",
|
|
3962
|
+
"PARTNER_INVITE_ACCEPTED",
|
|
3963
|
+
"PARTNER_INVITE_REVOKED",
|
|
3964
|
+
"PARTNER_INVITE_REJECTED",
|
|
3965
|
+
"VR_CREATED",
|
|
3966
|
+
"VR_STATUS_CHANGED",
|
|
3967
|
+
"VR_MANUALLY_REVIEWED",
|
|
3968
|
+
"DV_RESULT_REVIEW_REQUESTED",
|
|
3969
|
+
"VR_CANCELLED",
|
|
3970
|
+
"DV_RESULT_STATUS_CHANGED",
|
|
3971
|
+
"DV_RESULT_MANUAL_REVIEW",
|
|
3972
|
+
"DV_RESULT_REPLAYED",
|
|
3973
|
+
"AML_RESULT_STATUS_CHANGED",
|
|
3974
|
+
"AML_RESULT_MODERATED",
|
|
3975
|
+
"AML_FIELD_REVIEWED",
|
|
3976
|
+
"AML_AGENT_REVIEWED",
|
|
3977
|
+
"POA_RESULT_STATUS_CHANGED",
|
|
3978
|
+
"SPID_RESULT_STATUS_CHANGED",
|
|
3979
|
+
"FORM_RESULT_STATUS_CHANGED",
|
|
3980
|
+
"FORM_RESULT_SUBMITTED",
|
|
3981
|
+
"KYB_APPLICATION_SUBMITTED",
|
|
3982
|
+
"KYB_DOCUMENT_REQUEST_CREATED",
|
|
3983
|
+
"KYB_DOCUMENT_UPLOADED",
|
|
3984
|
+
"KYB_CLARIFICATION_SUBMITTED",
|
|
3985
|
+
"KYB_DOCUMENT_REQUEST_REVIEWED",
|
|
3986
|
+
"KYB_ASSIGNED",
|
|
3987
|
+
"KYB_STAGE_CHANGED",
|
|
3988
|
+
"KYB_COMMUNICATION_SENT",
|
|
3989
|
+
"KYB_MODERATION_STATUS_UPDATED",
|
|
3990
|
+
"KYB_PEP_SANCTIONS_STATUS_UPDATED",
|
|
3991
|
+
"KYB_REPORT_UPLOADED",
|
|
3992
|
+
"KYB_AUTO_COMPLETED",
|
|
3993
|
+
"KYB_APPROVED",
|
|
3994
|
+
"KYB_MANUAL_REVIEW_DECISION",
|
|
3995
|
+
"KYB_VERIFICATION_FIELD_OVERRIDDEN",
|
|
3996
|
+
"KYB_METADATA_PATCHED",
|
|
3997
|
+
"KYB_BUSINESS_INFORMATION_EDITED",
|
|
3998
|
+
"KYB_UBOS_ADDED",
|
|
3999
|
+
"KYB_UBO_REMOVED",
|
|
4000
|
+
"KYB_DIRECTORS_ADDED",
|
|
4001
|
+
"KYB_DIRECTOR_REMOVED",
|
|
4002
|
+
"KYB_AGENT_REVIEWED",
|
|
4003
|
+
"KYC_GRANT_CREATED",
|
|
4004
|
+
"CONSENT_GRANTED",
|
|
4005
|
+
"BLOCKLIST_ENTRY_CREATED",
|
|
4006
|
+
"BLOCKLIST_ENTRY_DELETED",
|
|
4007
|
+
"RISK_WEIGHT_UPDATED",
|
|
4008
|
+
"RISK_FACTOR_UPDATED",
|
|
4009
|
+
"DOCUMENT_DOWNLOADED",
|
|
4010
|
+
"FLOW_RESULT_EXPORTED",
|
|
4011
|
+
"FLOW_RISK_SCORE_CHANGED",
|
|
4012
|
+
"FLOW_RISK_STATUS_CHANGED",
|
|
4013
|
+
"RISK_TAG_ADDED",
|
|
4014
|
+
"RISK_TAG_RETRACTED",
|
|
4015
|
+
"UNKNOWN"
|
|
4016
|
+
]
|
|
4017
|
+
},
|
|
4018
|
+
"AuditLogEntry": {
|
|
4019
|
+
"type": "object",
|
|
4020
|
+
"description": "A single entry in the audit log, returned by the query API.",
|
|
4021
|
+
"required": [
|
|
4022
|
+
"id",
|
|
4023
|
+
"action",
|
|
4024
|
+
"resourceType",
|
|
4025
|
+
"details",
|
|
4026
|
+
"createdAt"
|
|
4027
|
+
],
|
|
4028
|
+
"properties": {
|
|
4029
|
+
"action": {
|
|
4030
|
+
"$ref": "#/components/schemas/AuditAction"
|
|
4031
|
+
},
|
|
4032
|
+
"actorId": {
|
|
4033
|
+
"type": "string",
|
|
4034
|
+
"format": "uuid",
|
|
4035
|
+
"nullable": true
|
|
4036
|
+
},
|
|
4037
|
+
"actorIp": {
|
|
4038
|
+
"type": "string",
|
|
4039
|
+
"nullable": true
|
|
4040
|
+
},
|
|
4041
|
+
"actorRole": {
|
|
4042
|
+
"type": "string",
|
|
4043
|
+
"nullable": true
|
|
4044
|
+
},
|
|
4045
|
+
"actorZid": {
|
|
4046
|
+
"type": "string",
|
|
4047
|
+
"nullable": true
|
|
4048
|
+
},
|
|
4049
|
+
"createdAt": {
|
|
4050
|
+
"type": "string",
|
|
4051
|
+
"format": "date-time"
|
|
4052
|
+
},
|
|
4053
|
+
"details": {},
|
|
4054
|
+
"id": {
|
|
4055
|
+
"type": "string",
|
|
4056
|
+
"format": "uuid"
|
|
4057
|
+
},
|
|
4058
|
+
"isSandbox": {
|
|
4059
|
+
"type": "boolean",
|
|
4060
|
+
"description": "Whether this entry originated from a sandbox operation.\n`null` = cross-cutting event (auth, org management) that spans both environments.",
|
|
4061
|
+
"nullable": true
|
|
4062
|
+
},
|
|
4063
|
+
"organizationId": {
|
|
4064
|
+
"type": "string",
|
|
4065
|
+
"format": "uuid",
|
|
4066
|
+
"nullable": true
|
|
4067
|
+
},
|
|
4068
|
+
"outcomeStatus": {
|
|
4069
|
+
"allOf": [
|
|
4070
|
+
{
|
|
4071
|
+
"$ref": "#/components/schemas/AuditOutcome"
|
|
4072
|
+
}
|
|
4073
|
+
],
|
|
4074
|
+
"nullable": true
|
|
4075
|
+
},
|
|
4076
|
+
"resourceId": {
|
|
4077
|
+
"type": "string",
|
|
4078
|
+
"format": "uuid",
|
|
4079
|
+
"nullable": true
|
|
4080
|
+
},
|
|
4081
|
+
"resourceType": {
|
|
4082
|
+
"$ref": "#/components/schemas/AuditResourceType"
|
|
4083
|
+
},
|
|
4084
|
+
"sessionId": {
|
|
4085
|
+
"type": "string",
|
|
4086
|
+
"description": "Login-session identifier (`fid`). Stable across token refreshes within one browser session.",
|
|
4087
|
+
"nullable": true
|
|
4088
|
+
},
|
|
4089
|
+
"source": {
|
|
4090
|
+
"allOf": [
|
|
4091
|
+
{
|
|
4092
|
+
"$ref": "#/components/schemas/AuditSource"
|
|
4093
|
+
}
|
|
4094
|
+
],
|
|
4095
|
+
"nullable": true
|
|
4096
|
+
}
|
|
4097
|
+
}
|
|
4098
|
+
},
|
|
4099
|
+
"AuditOutcome": {
|
|
4100
|
+
"oneOf": [
|
|
4101
|
+
{
|
|
4102
|
+
"type": "object",
|
|
4103
|
+
"description": "Successful HTTP response (2xx).",
|
|
4104
|
+
"required": [
|
|
4105
|
+
"status",
|
|
4106
|
+
"type"
|
|
4107
|
+
],
|
|
4108
|
+
"properties": {
|
|
4109
|
+
"status": {
|
|
4110
|
+
"type": "integer",
|
|
4111
|
+
"format": "int32",
|
|
4112
|
+
"description": "Numeric HTTP status code (e.g. 200, 201, 204).",
|
|
4113
|
+
"minimum": 0
|
|
4114
|
+
},
|
|
4115
|
+
"type": {
|
|
4116
|
+
"type": "string",
|
|
4117
|
+
"enum": [
|
|
4118
|
+
"httpSuccess"
|
|
4119
|
+
]
|
|
4120
|
+
}
|
|
4121
|
+
}
|
|
4122
|
+
},
|
|
4123
|
+
{
|
|
4124
|
+
"type": "object",
|
|
4125
|
+
"description": "Error HTTP response (4xx / 5xx).",
|
|
4126
|
+
"required": [
|
|
4127
|
+
"status",
|
|
4128
|
+
"type"
|
|
4129
|
+
],
|
|
4130
|
+
"properties": {
|
|
4131
|
+
"code": {
|
|
4132
|
+
"type": "integer",
|
|
4133
|
+
"format": "int32",
|
|
4134
|
+
"description": "Application-level error code from [`BaxeError`] (e.g. 200 for validation, 201 for deserialization).\n`None` when the error was not produced by the application's error framework.",
|
|
4135
|
+
"nullable": true,
|
|
4136
|
+
"minimum": 0
|
|
4137
|
+
},
|
|
4138
|
+
"status": {
|
|
4139
|
+
"type": "integer",
|
|
4140
|
+
"format": "int32",
|
|
4141
|
+
"description": "Numeric HTTP status code (e.g. 400, 404, 500).",
|
|
4142
|
+
"minimum": 0
|
|
4143
|
+
},
|
|
4144
|
+
"tag": {
|
|
4145
|
+
"type": "string",
|
|
4146
|
+
"description": "Semantic error tag string (e.g. `\"BAD_REQUEST\"`, `\"NOT_FOUND\"`, `\"UNAUTHORIZED\"`).",
|
|
4147
|
+
"nullable": true
|
|
4148
|
+
},
|
|
4149
|
+
"type": {
|
|
4150
|
+
"type": "string",
|
|
4151
|
+
"enum": [
|
|
4152
|
+
"httpError"
|
|
4153
|
+
]
|
|
4154
|
+
}
|
|
4155
|
+
}
|
|
4156
|
+
},
|
|
4157
|
+
{
|
|
4158
|
+
"type": "object",
|
|
4159
|
+
"required": [
|
|
4160
|
+
"type"
|
|
4161
|
+
],
|
|
4162
|
+
"properties": {
|
|
4163
|
+
"type": {
|
|
4164
|
+
"type": "string",
|
|
4165
|
+
"enum": [
|
|
4166
|
+
"workerOk"
|
|
4167
|
+
]
|
|
4168
|
+
}
|
|
4169
|
+
}
|
|
4170
|
+
},
|
|
4171
|
+
{
|
|
4172
|
+
"type": "object",
|
|
4173
|
+
"description": "Background worker failed.",
|
|
4174
|
+
"required": [
|
|
4175
|
+
"variant",
|
|
4176
|
+
"type"
|
|
4177
|
+
],
|
|
4178
|
+
"properties": {
|
|
4179
|
+
"type": {
|
|
4180
|
+
"type": "string",
|
|
4181
|
+
"enum": [
|
|
4182
|
+
"workerError"
|
|
4183
|
+
]
|
|
4184
|
+
},
|
|
4185
|
+
"variant": {
|
|
4186
|
+
"type": "string",
|
|
4187
|
+
"description": "Rust error-enum variant name (e.g. `\"VaultLocked\"`, `\"UpsertDvResult\"`)."
|
|
4188
|
+
}
|
|
4189
|
+
}
|
|
4190
|
+
}
|
|
4191
|
+
],
|
|
4192
|
+
"description": "The outcome of the operation that produced an audit entry.\n\nSerialised to JSONB in the `outcomeStatus` column so the type structure is\npreserved and queryable (e.g. `WHERE \"outcomeStatus\"->>'type' = 'httpError'`).\n\n## Variants\n- `httpSuccess { status }` — HTTP response with 2xx status code.\n- `httpError { status, code, tag }` — HTTP response with a non-2xx status.\n`status` is the numeric HTTP code; `code` and `tag` come from the\n[`BaxeError`] payload so investigators can see the application-level\nerror identity without reading the response body.\n- `workerOk` — background worker completed successfully.\n- `workerError { variant }` — background worker failed; `variant` is the\nRust error-enum variant name (e.g. `\"VaultLocked\"`, `\"UpsertDvResult\"`).",
|
|
4193
|
+
"discriminator": {
|
|
4194
|
+
"propertyName": "type"
|
|
4195
|
+
}
|
|
4196
|
+
},
|
|
4197
|
+
"AuditResourceType": {
|
|
4198
|
+
"type": "string",
|
|
4199
|
+
"description": "All auditable resource types. Stored as PascalCase in the `resource_type` column.\n\n`Unknown` is used for auto-generated events where the middleware cannot\ndetermine the resource type (e.g. streaming responses, system operations),\nand as a catch-all for unrecognised values from the database.",
|
|
4200
|
+
"enum": [
|
|
4201
|
+
"Search",
|
|
4202
|
+
"Identity",
|
|
4203
|
+
"Organization",
|
|
4204
|
+
"OrganizationSettings",
|
|
4205
|
+
"OrganizationTheme",
|
|
4206
|
+
"OrganizationInvite",
|
|
4207
|
+
"OrganizationBilling",
|
|
4208
|
+
"SubscriptionPlan",
|
|
4209
|
+
"KybJurisdictionPricing",
|
|
4210
|
+
"ApiKey",
|
|
4211
|
+
"Bot",
|
|
4212
|
+
"Flow",
|
|
4213
|
+
"FlowStep",
|
|
4214
|
+
"FlowResult",
|
|
4215
|
+
"FlowPartnerInvite",
|
|
4216
|
+
"VerificationRequest",
|
|
4217
|
+
"DvResult",
|
|
4218
|
+
"AmlResult",
|
|
4219
|
+
"PoaResult",
|
|
4220
|
+
"KybResult",
|
|
4221
|
+
"FormResult",
|
|
4222
|
+
"Form",
|
|
4223
|
+
"RiskWeight",
|
|
4224
|
+
"ContextualFactor",
|
|
4225
|
+
"ScoreDefinition",
|
|
4226
|
+
"ScoreTag",
|
|
4227
|
+
"AuditLog",
|
|
4228
|
+
"ChatMessage",
|
|
4229
|
+
"DocumentSelection",
|
|
4230
|
+
"GeolocationResult",
|
|
4231
|
+
"PhoneVerification",
|
|
4232
|
+
"SpidResult",
|
|
4233
|
+
"WalletVerification",
|
|
4234
|
+
"Vault",
|
|
4235
|
+
"KybUboData",
|
|
4236
|
+
"DocumentDefinition",
|
|
4237
|
+
"ConfigOverride",
|
|
4238
|
+
"ShortUrl",
|
|
4239
|
+
"Cache",
|
|
4240
|
+
"Unknown"
|
|
4241
|
+
]
|
|
4242
|
+
},
|
|
4243
|
+
"AuditSource": {
|
|
4244
|
+
"oneOf": [
|
|
4245
|
+
{
|
|
4246
|
+
"type": "object",
|
|
4247
|
+
"description": "HTTP request trigger.",
|
|
4248
|
+
"required": [
|
|
4249
|
+
"method",
|
|
4250
|
+
"path",
|
|
4251
|
+
"type"
|
|
4252
|
+
],
|
|
4253
|
+
"properties": {
|
|
4254
|
+
"method": {
|
|
4255
|
+
"type": "string",
|
|
4256
|
+
"description": "HTTP method (e.g. \"GET\", \"POST\", \"PUT\", \"DELETE\")."
|
|
4257
|
+
},
|
|
4258
|
+
"path": {
|
|
4259
|
+
"type": "string",
|
|
4260
|
+
"description": "Request path (e.g. \"/organizations/{id}/flows\")."
|
|
4261
|
+
},
|
|
4262
|
+
"type": {
|
|
4263
|
+
"type": "string",
|
|
4264
|
+
"enum": [
|
|
4265
|
+
"HTTP"
|
|
4266
|
+
]
|
|
4267
|
+
}
|
|
4268
|
+
}
|
|
4269
|
+
},
|
|
4270
|
+
{
|
|
4271
|
+
"type": "object",
|
|
4272
|
+
"description": "Background worker trigger.",
|
|
4273
|
+
"required": [
|
|
4274
|
+
"workerType",
|
|
4275
|
+
"scenario",
|
|
4276
|
+
"type"
|
|
4277
|
+
],
|
|
4278
|
+
"properties": {
|
|
4279
|
+
"scenario": {
|
|
4280
|
+
"$ref": "#/components/schemas/WorkerScenario"
|
|
4281
|
+
},
|
|
4282
|
+
"type": {
|
|
4283
|
+
"type": "string",
|
|
4284
|
+
"enum": [
|
|
4285
|
+
"WORKER"
|
|
4286
|
+
]
|
|
4287
|
+
},
|
|
4288
|
+
"workerType": {
|
|
4289
|
+
"$ref": "#/components/schemas/WorkerType"
|
|
4290
|
+
}
|
|
4291
|
+
}
|
|
4292
|
+
},
|
|
4293
|
+
{
|
|
4294
|
+
"type": "object",
|
|
4295
|
+
"description": "Scheduled/cron task trigger.",
|
|
4296
|
+
"required": [
|
|
4297
|
+
"taskName",
|
|
4298
|
+
"type"
|
|
4299
|
+
],
|
|
4300
|
+
"properties": {
|
|
4301
|
+
"taskName": {
|
|
4302
|
+
"type": "string",
|
|
4303
|
+
"description": "Name of the scheduled task (e.g. \"AML_REFRESH\", \"CLEANUP\")."
|
|
4304
|
+
},
|
|
4305
|
+
"type": {
|
|
4306
|
+
"type": "string",
|
|
4307
|
+
"enum": [
|
|
4308
|
+
"SCHEDULED"
|
|
4309
|
+
]
|
|
4310
|
+
}
|
|
4311
|
+
}
|
|
4312
|
+
}
|
|
4313
|
+
],
|
|
4314
|
+
"description": "The origin/trigger of an audit event.\n\nAll audit events MUST have a source - this allows filtering/excluding events\nby their origin and provides context for investigations.\n\n## Variants\n- `Http` — Event originated from an HTTP request (method + path).\n- `Worker` — Event emitted by a background worker (type + scenario).\n- `Scheduled` — Event from a scheduled/cron task (task name).",
|
|
4315
|
+
"discriminator": {
|
|
4316
|
+
"propertyName": "type"
|
|
4317
|
+
}
|
|
4318
|
+
},
|
|
2488
4319
|
"AutoOneClickKycConfig": {
|
|
2489
4320
|
"type": "object",
|
|
2490
4321
|
"required": [
|
|
@@ -2587,6 +4418,14 @@
|
|
|
2587
4418
|
}
|
|
2588
4419
|
}
|
|
2589
4420
|
},
|
|
4421
|
+
"BotTokenScope": {
|
|
4422
|
+
"type": "string",
|
|
4423
|
+
"description": "Describes the visibility scope of a bot token.\n\n- `Organization` — the bot is connected to one specific organisation and is\nonly visible in that organisation's bot list.\n- `Platform` — the bot is a platform-root identity (no\n`default_organization_id`) and is visible in every organisation's bot\nlist.\n\nStored inside the `credentialData` JSONB of the `BOT_TOKEN` credential row.\n`Organization` is the default to ensure backward-compatible deserialization\nof rows written before this field existed.",
|
|
4424
|
+
"enum": [
|
|
4425
|
+
"ORGANIZATION",
|
|
4426
|
+
"PLATFORM"
|
|
4427
|
+
]
|
|
4428
|
+
},
|
|
2590
4429
|
"BranchCondition": {
|
|
2591
4430
|
"type": "object",
|
|
2592
4431
|
"description": "A condition branch for switch operators.",
|
|
@@ -2652,7 +4491,7 @@
|
|
|
2652
4491
|
},
|
|
2653
4492
|
"suggestedValue": {
|
|
2654
4493
|
"type": "string",
|
|
2655
|
-
"description": "The canonical corrected value recommended by the AI agent.\
|
|
4494
|
+
"description": "The canonical corrected value recommended by the AI agent.\nWhen a suggested value is safely applied, `run_business_info_cross_check` stores the field\nas `AutoCorrect`. `Mismatch` and `NotFound` suggestions are surfaced for manual review\nwithout mutating the stored record.",
|
|
2656
4495
|
"nullable": true
|
|
2657
4496
|
}
|
|
2658
4497
|
}
|
|
@@ -2662,6 +4501,7 @@
|
|
|
2662
4501
|
"description": "Match type for a single business information field against document-extracted values.",
|
|
2663
4502
|
"enum": [
|
|
2664
4503
|
"match",
|
|
4504
|
+
"autoCorrect",
|
|
2665
4505
|
"fuzzy",
|
|
2666
4506
|
"mismatch",
|
|
2667
4507
|
"notFound"
|
|
@@ -2768,6 +4608,18 @@
|
|
|
2768
4608
|
"unknown"
|
|
2769
4609
|
]
|
|
2770
4610
|
},
|
|
4611
|
+
"CheckoutSessionResponse": {
|
|
4612
|
+
"type": "object",
|
|
4613
|
+
"description": "Response from creating a checkout session",
|
|
4614
|
+
"required": [
|
|
4615
|
+
"checkoutUrl"
|
|
4616
|
+
],
|
|
4617
|
+
"properties": {
|
|
4618
|
+
"checkoutUrl": {
|
|
4619
|
+
"type": "string"
|
|
4620
|
+
}
|
|
4621
|
+
}
|
|
4622
|
+
},
|
|
2771
4623
|
"CloudflareTracePayload": {
|
|
2772
4624
|
"type": "object",
|
|
2773
4625
|
"properties": {
|
|
@@ -3218,6 +5070,24 @@
|
|
|
3218
5070
|
}
|
|
3219
5071
|
}
|
|
3220
5072
|
},
|
|
5073
|
+
"CreateTopupCheckoutRequest": {
|
|
5074
|
+
"type": "object",
|
|
5075
|
+
"description": "Request to create a payment-mode Stripe Checkout session for a one-time credit top-up\npurchase (`POST .../billing/topup/checkout`).",
|
|
5076
|
+
"required": [
|
|
5077
|
+
"priceId"
|
|
5078
|
+
],
|
|
5079
|
+
"properties": {
|
|
5080
|
+
"priceId": {
|
|
5081
|
+
"type": "string",
|
|
5082
|
+
"description": "The Stripe price ID of the top-up pack to purchase, as returned by\n`GET .../billing/topup-packs`."
|
|
5083
|
+
},
|
|
5084
|
+
"redirectUri": {
|
|
5085
|
+
"type": "string",
|
|
5086
|
+
"description": "Optional redirect URI after checkout. If not provided, redirects to the webapp root.",
|
|
5087
|
+
"nullable": true
|
|
5088
|
+
}
|
|
5089
|
+
}
|
|
5090
|
+
},
|
|
3221
5091
|
"CreateVerificationRequestPayload": {
|
|
3222
5092
|
"allOf": [
|
|
3223
5093
|
{
|
|
@@ -3269,6 +5139,15 @@
|
|
|
3269
5139
|
}
|
|
3270
5140
|
}
|
|
3271
5141
|
},
|
|
5142
|
+
"CreationSource": {
|
|
5143
|
+
"type": "string",
|
|
5144
|
+
"description": "How an organization was created. Lets the frontend tell self-serve signups\napart from admin- or partner-provisioned orgs (e.g. to force self-serve orgs\nto pick a real plan instead of the custom plan).\n\n- `SelfServe` — public signup with no invite.\n- `Admin` — created by platform staff; also the default for pre-existing orgs.\n- `Partner` — created through a validated partner invite.",
|
|
5145
|
+
"enum": [
|
|
5146
|
+
"SELF_SERVE",
|
|
5147
|
+
"ADMIN",
|
|
5148
|
+
"PARTNER"
|
|
5149
|
+
]
|
|
5150
|
+
},
|
|
3272
5151
|
"CredentialType": {
|
|
3273
5152
|
"type": "string",
|
|
3274
5153
|
"enum": [
|
|
@@ -3280,6 +5159,88 @@
|
|
|
3280
5159
|
"EXTERNAL_ID"
|
|
3281
5160
|
]
|
|
3282
5161
|
},
|
|
5162
|
+
"CreditExpiryPolicy": {
|
|
5163
|
+
"oneOf": [
|
|
5164
|
+
{
|
|
5165
|
+
"type": "object",
|
|
5166
|
+
"required": [
|
|
5167
|
+
"type"
|
|
5168
|
+
],
|
|
5169
|
+
"properties": {
|
|
5170
|
+
"type": {
|
|
5171
|
+
"type": "string",
|
|
5172
|
+
"enum": [
|
|
5173
|
+
"periodEnd"
|
|
5174
|
+
]
|
|
5175
|
+
}
|
|
5176
|
+
}
|
|
5177
|
+
},
|
|
5178
|
+
{
|
|
5179
|
+
"type": "object",
|
|
5180
|
+
"required": [
|
|
5181
|
+
"type"
|
|
5182
|
+
],
|
|
5183
|
+
"properties": {
|
|
5184
|
+
"type": {
|
|
5185
|
+
"type": "string",
|
|
5186
|
+
"enum": [
|
|
5187
|
+
"never"
|
|
5188
|
+
]
|
|
5189
|
+
}
|
|
5190
|
+
}
|
|
5191
|
+
},
|
|
5192
|
+
{
|
|
5193
|
+
"type": "object",
|
|
5194
|
+
"description": "Rolling validity: each grant expires `months` after it was granted,\nsnapped forward to a billing-period boundary.",
|
|
5195
|
+
"required": [
|
|
5196
|
+
"months",
|
|
5197
|
+
"type"
|
|
5198
|
+
],
|
|
5199
|
+
"properties": {
|
|
5200
|
+
"months": {
|
|
5201
|
+
"type": "integer",
|
|
5202
|
+
"format": "int32",
|
|
5203
|
+
"minimum": 0
|
|
5204
|
+
},
|
|
5205
|
+
"type": {
|
|
5206
|
+
"type": "string",
|
|
5207
|
+
"enum": [
|
|
5208
|
+
"monthsFromGrant"
|
|
5209
|
+
]
|
|
5210
|
+
}
|
|
5211
|
+
}
|
|
5212
|
+
},
|
|
5213
|
+
{
|
|
5214
|
+
"type": "object",
|
|
5215
|
+
"description": "Absolute cutoff: grants expire `months` after the subscription started,\nsnapped to a boundary and clamped to at least the current period end.",
|
|
5216
|
+
"required": [
|
|
5217
|
+
"months",
|
|
5218
|
+
"type"
|
|
5219
|
+
],
|
|
5220
|
+
"properties": {
|
|
5221
|
+
"months": {
|
|
5222
|
+
"type": "integer",
|
|
5223
|
+
"format": "int32",
|
|
5224
|
+
"minimum": 0
|
|
5225
|
+
},
|
|
5226
|
+
"type": {
|
|
5227
|
+
"type": "string",
|
|
5228
|
+
"enum": [
|
|
5229
|
+
"monthsFromSubscription"
|
|
5230
|
+
]
|
|
5231
|
+
}
|
|
5232
|
+
}
|
|
5233
|
+
}
|
|
5234
|
+
],
|
|
5235
|
+
"description": "Plan credit expiry policy — replaces the former `carry_over` bool.\n\nDetermines the `expires_at` of Stripe Credit Grants created at renewal.\nStored as JSONB on `SubscriptionPlan.creditExpiryPolicy`.",
|
|
5236
|
+
"discriminator": {
|
|
5237
|
+
"propertyName": "type"
|
|
5238
|
+
}
|
|
5239
|
+
},
|
|
5240
|
+
"Currency": {
|
|
5241
|
+
"type": "string",
|
|
5242
|
+
"example": "usd"
|
|
5243
|
+
},
|
|
3283
5244
|
"CustomDocumentConfig": {
|
|
3284
5245
|
"type": "object",
|
|
3285
5246
|
"required": [
|
|
@@ -3305,7 +5266,6 @@
|
|
|
3305
5266
|
"DirectorDefinition": {
|
|
3306
5267
|
"type": "object",
|
|
3307
5268
|
"required": [
|
|
3308
|
-
"emailAddress",
|
|
3309
5269
|
"firstName",
|
|
3310
5270
|
"lastName",
|
|
3311
5271
|
"dateOfBirth",
|
|
@@ -3320,7 +5280,9 @@
|
|
|
3320
5280
|
"type": "string"
|
|
3321
5281
|
},
|
|
3322
5282
|
"emailAddress": {
|
|
3323
|
-
"type": "string"
|
|
5283
|
+
"type": "string",
|
|
5284
|
+
"description": "Email of the director. `None` for a name-only director added without an email.",
|
|
5285
|
+
"nullable": true
|
|
3324
5286
|
},
|
|
3325
5287
|
"firstName": {
|
|
3326
5288
|
"type": "string"
|
|
@@ -3328,6 +5290,12 @@
|
|
|
3328
5290
|
"gender": {
|
|
3329
5291
|
"type": "string"
|
|
3330
5292
|
},
|
|
5293
|
+
"id": {
|
|
5294
|
+
"type": "string",
|
|
5295
|
+
"format": "uuid",
|
|
5296
|
+
"description": "Stable identifier for this director within the KYB result. See [`UboDefinition::id`].",
|
|
5297
|
+
"nullable": true
|
|
5298
|
+
},
|
|
3331
5299
|
"lastName": {
|
|
3332
5300
|
"type": "string"
|
|
3333
5301
|
}
|
|
@@ -3383,6 +5351,11 @@
|
|
|
3383
5351
|
"DocumentConfig": {
|
|
3384
5352
|
"type": "object",
|
|
3385
5353
|
"properties": {
|
|
5354
|
+
"onDemand": {
|
|
5355
|
+
"type": "boolean",
|
|
5356
|
+
"description": "Whether this document is requested on demand by a reviewer (excluded from the\nrequired-document gate and the end-user's upload form) instead of being demanded upfront.\n\nConfigurable per document. `None` means \"unset\" — the backend then applies the document's\ndefault: `proofOfAttorney` defaults to on-demand (`true`), every other default document\ndefaults to upfront (`false`). An explicit value overrides that default.",
|
|
5357
|
+
"nullable": true
|
|
5358
|
+
},
|
|
3386
5359
|
"required": {
|
|
3387
5360
|
"type": "boolean"
|
|
3388
5361
|
}
|
|
@@ -3587,10 +5560,29 @@
|
|
|
3587
5560
|
"minimumAge"
|
|
3588
5561
|
],
|
|
3589
5562
|
"properties": {
|
|
5563
|
+
"amlAgenticMode": {
|
|
5564
|
+
"allOf": [
|
|
5565
|
+
{
|
|
5566
|
+
"$ref": "#/components/schemas/KybAgenticMode"
|
|
5567
|
+
}
|
|
5568
|
+
],
|
|
5569
|
+
"default": "DISABLED"
|
|
5570
|
+
},
|
|
3590
5571
|
"documentSelectionStepId": {
|
|
3591
5572
|
"type": "string",
|
|
3592
5573
|
"format": "uuid"
|
|
3593
5574
|
},
|
|
5575
|
+
"incodeConfigurationId": {
|
|
5576
|
+
"type": "string",
|
|
5577
|
+
"description": "Incode configuration ID the frontend must use when creating the capture session.\n\nComputed server-side during rehydration from `poa_from_govcheck` and the\nsandbox/live environment (see [`crate::types::dto::DvConfig`] rehydration in\nthe core handler). It is never persisted: it defaults to `None` and is skipped\nwhen serializing `None`, so storing a config round-trips cleanly.",
|
|
5578
|
+
"nullable": true
|
|
5579
|
+
},
|
|
5580
|
+
"kycValiditySeconds": {
|
|
5581
|
+
"type": "integer",
|
|
5582
|
+
"format": "int64",
|
|
5583
|
+
"description": "How long (in seconds) a successful DV result remains valid before\nre-KYC is required. `None` = never expires (existing behaviour).",
|
|
5584
|
+
"nullable": true
|
|
5585
|
+
},
|
|
3594
5586
|
"labels": {
|
|
3595
5587
|
"type": "object",
|
|
3596
5588
|
"additionalProperties": {
|
|
@@ -3610,6 +5602,10 @@
|
|
|
3610
5602
|
"format": "int32",
|
|
3611
5603
|
"minimum": 0
|
|
3612
5604
|
},
|
|
5605
|
+
"poaFromGovcheck": {
|
|
5606
|
+
"type": "boolean",
|
|
5607
|
+
"description": "When true, route Incode through the government-validation flow and, after the\ndocument scan, produce a PoA result (source DLDV) from the driver's-license\naddress validation. Backward compatible: missing key deserializes to false."
|
|
5608
|
+
},
|
|
3613
5609
|
"processImagesOverrides": {
|
|
3614
5610
|
"allOf": [
|
|
3615
5611
|
{
|
|
@@ -3624,6 +5620,12 @@
|
|
|
3624
5620
|
"$ref": "#/components/schemas/RequiredDocumentField"
|
|
3625
5621
|
}
|
|
3626
5622
|
},
|
|
5623
|
+
"reverificationLeadSeconds": {
|
|
5624
|
+
"type": "integer",
|
|
5625
|
+
"format": "int64",
|
|
5626
|
+
"description": "How long (in seconds) *before* a result's expiry to begin re-verification:\nthe flow is reopened and a re-verify reminder email is sent, so the holder can\nrenew while their current result is still valid (continuous validity). `None`\ndefaults to one week ([`DvConfig::DEFAULT_REVERIFICATION_LEAD_SECONDS`]).\nIgnored when `kyc_validity_seconds` is `None`; clamped to the validity window.",
|
|
5627
|
+
"nullable": true
|
|
5628
|
+
},
|
|
3627
5629
|
"thresholds": {
|
|
3628
5630
|
"type": "object",
|
|
3629
5631
|
"additionalProperties": {
|
|
@@ -3815,6 +5817,12 @@
|
|
|
3815
5817
|
"format": "date-time",
|
|
3816
5818
|
"nullable": true
|
|
3817
5819
|
},
|
|
5820
|
+
"validUntil": {
|
|
5821
|
+
"type": "string",
|
|
5822
|
+
"format": "date-time",
|
|
5823
|
+
"description": "When this KYC result expires and re-verification is required (re-KYC validity).\n`null` means it never expires (no `kyc_validity_seconds` configured, or a legacy result).",
|
|
5824
|
+
"nullable": true
|
|
5825
|
+
},
|
|
3818
5826
|
"verificationRequestId": {
|
|
3819
5827
|
"type": "string",
|
|
3820
5828
|
"format": "uuid",
|
|
@@ -3871,6 +5879,10 @@
|
|
|
3871
5879
|
"status": {
|
|
3872
5880
|
"$ref": "#/components/schemas/ResultStatus"
|
|
3873
5881
|
}
|
|
5882
|
+
},
|
|
5883
|
+
"additionalProperties": {
|
|
5884
|
+
"type": "boolean",
|
|
5885
|
+
"description": "Pre-compiled results of conditions that reference vault-derived personal data\n(name, surname, date of birth, age, etc.).\n\nEach entry maps a stable `condition_hash` (16-char hex, see\n`matcher::precompile::condition_hash`) to the boolean result of evaluating\nthat condition against the live in-memory `VaultDocument` at the moment the\nDV background job ran.\n\nFlattened into the serialized output so each hash becomes a top-level sibling\nof `status`, `issuingCountry`, etc. — referenceable as `\"dv_step.<hash>\"`.\n\nAt JDM evaluation time, `vault_condition::resolve_precompiled_graph` replaces\nany condition whose hash is present here with `Condition::Literal { value }`,\nso no vault PII ever needs to be stored in or read from the database."
|
|
3874
5886
|
}
|
|
3875
5887
|
},
|
|
3876
5888
|
"ErrorTags": {
|
|
@@ -3906,6 +5918,7 @@
|
|
|
3906
5918
|
"document_reader",
|
|
3907
5919
|
"websocket",
|
|
3908
5920
|
"organization_settings_not_found",
|
|
5921
|
+
"theme_not_found",
|
|
3909
5922
|
"start_job",
|
|
3910
5923
|
"result_not_found",
|
|
3911
5924
|
"kyc_grant_not_found",
|
|
@@ -3949,7 +5962,8 @@
|
|
|
3949
5962
|
"share_does_not_have_write_access",
|
|
3950
5963
|
"write_access_already_revoked",
|
|
3951
5964
|
"invite_required",
|
|
3952
|
-
"billing"
|
|
5965
|
+
"billing",
|
|
5966
|
+
"product_not_active"
|
|
3953
5967
|
]
|
|
3954
5968
|
},
|
|
3955
5969
|
"ExecutedAction": {
|
|
@@ -3970,6 +5984,46 @@
|
|
|
3970
5984
|
}
|
|
3971
5985
|
}
|
|
3972
5986
|
},
|
|
5987
|
+
"FactorKey": {
|
|
5988
|
+
"oneOf": [
|
|
5989
|
+
{
|
|
5990
|
+
"type": "object",
|
|
5991
|
+
"required": [
|
|
5992
|
+
"type",
|
|
5993
|
+
"value"
|
|
5994
|
+
],
|
|
5995
|
+
"properties": {
|
|
5996
|
+
"type": {
|
|
5997
|
+
"type": "string",
|
|
5998
|
+
"enum": [
|
|
5999
|
+
"fixed"
|
|
6000
|
+
]
|
|
6001
|
+
},
|
|
6002
|
+
"value": {
|
|
6003
|
+
"type": "string"
|
|
6004
|
+
}
|
|
6005
|
+
}
|
|
6006
|
+
},
|
|
6007
|
+
{
|
|
6008
|
+
"type": "object",
|
|
6009
|
+
"required": [
|
|
6010
|
+
"type"
|
|
6011
|
+
],
|
|
6012
|
+
"properties": {
|
|
6013
|
+
"type": {
|
|
6014
|
+
"type": "string",
|
|
6015
|
+
"enum": [
|
|
6016
|
+
"answerValue"
|
|
6017
|
+
]
|
|
6018
|
+
}
|
|
6019
|
+
}
|
|
6020
|
+
}
|
|
6021
|
+
],
|
|
6022
|
+
"description": "A FORM factor key: a fixed string, or the submitted answer value itself (so each distinct\nanswer maps to its own FORM factor — e.g. a country select).\n\n`AnswerValue` on a `Select` field authors one `ScoreFactor` row per enumerated\n`SelectOptions.values` entry at form-sync time (`form_risk_sync::DesiredRisk::from_sections`),\nsharing the factor's multiplier, so any of those answers resolves to a real multiplier at\nscore time.\n\n**Remaining gap (D-13):** a field has no enumerable option set to author against when it is\nnot a `Select` (e.g. free-text `Text`), or when it is a `Select` with `isOtherAllowed: true`\nand the submitted answer is the free-text \"Other\" value. In those cases the emitted\n`AnswerValue` key in `FormResult.riskFactorKeys` has no matching `ScoreFactor` row, the score-time\nlookup returns `None`, and the factor's multiplier is silently skipped (undercounting the\ncontextual multiplier). Form-sync logs a warning when this applies to a saved field.",
|
|
6023
|
+
"discriminator": {
|
|
6024
|
+
"propertyName": "type"
|
|
6025
|
+
}
|
|
6026
|
+
},
|
|
3973
6027
|
"FieldControlOperation": {
|
|
3974
6028
|
"type": "object",
|
|
3975
6029
|
"required": [
|
|
@@ -4065,6 +6119,82 @@
|
|
|
4065
6119
|
"REJECTED"
|
|
4066
6120
|
]
|
|
4067
6121
|
},
|
|
6122
|
+
"FieldRiskConfig": {
|
|
6123
|
+
"type": "object",
|
|
6124
|
+
"description": "Risk authoring attached to a single form field (compiled to Forms-source score rows on save).",
|
|
6125
|
+
"properties": {
|
|
6126
|
+
"factors": {
|
|
6127
|
+
"type": "array",
|
|
6128
|
+
"items": {
|
|
6129
|
+
"$ref": "#/components/schemas/FieldRiskFactor"
|
|
6130
|
+
}
|
|
6131
|
+
},
|
|
6132
|
+
"tags": {
|
|
6133
|
+
"type": "array",
|
|
6134
|
+
"items": {
|
|
6135
|
+
"$ref": "#/components/schemas/FieldRiskTag"
|
|
6136
|
+
}
|
|
6137
|
+
}
|
|
6138
|
+
}
|
|
6139
|
+
},
|
|
6140
|
+
"FieldRiskFactor": {
|
|
6141
|
+
"type": "object",
|
|
6142
|
+
"required": [
|
|
6143
|
+
"key",
|
|
6144
|
+
"multiplier"
|
|
6145
|
+
],
|
|
6146
|
+
"properties": {
|
|
6147
|
+
"definitionKey": {
|
|
6148
|
+
"type": "string",
|
|
6149
|
+
"description": "Target ScoreDefinition key. None = \"forms\" (100% backward compatible).",
|
|
6150
|
+
"nullable": true
|
|
6151
|
+
},
|
|
6152
|
+
"key": {
|
|
6153
|
+
"$ref": "#/components/schemas/FactorKey"
|
|
6154
|
+
},
|
|
6155
|
+
"multiplier": {
|
|
6156
|
+
"type": "number",
|
|
6157
|
+
"format": "double"
|
|
6158
|
+
},
|
|
6159
|
+
"when": {
|
|
6160
|
+
"allOf": [
|
|
6161
|
+
{
|
|
6162
|
+
"$ref": "#/components/schemas/Condition"
|
|
6163
|
+
}
|
|
6164
|
+
],
|
|
6165
|
+
"nullable": true
|
|
6166
|
+
}
|
|
6167
|
+
}
|
|
6168
|
+
},
|
|
6169
|
+
"FieldRiskTag": {
|
|
6170
|
+
"type": "object",
|
|
6171
|
+
"required": [
|
|
6172
|
+
"tag",
|
|
6173
|
+
"weight"
|
|
6174
|
+
],
|
|
6175
|
+
"properties": {
|
|
6176
|
+
"definitionKey": {
|
|
6177
|
+
"type": "string",
|
|
6178
|
+
"description": "Target ScoreDefinition key. None = \"forms\" (100% backward compatible).",
|
|
6179
|
+
"nullable": true
|
|
6180
|
+
},
|
|
6181
|
+
"tag": {
|
|
6182
|
+
"type": "string"
|
|
6183
|
+
},
|
|
6184
|
+
"weight": {
|
|
6185
|
+
"type": "number",
|
|
6186
|
+
"format": "double"
|
|
6187
|
+
},
|
|
6188
|
+
"when": {
|
|
6189
|
+
"allOf": [
|
|
6190
|
+
{
|
|
6191
|
+
"$ref": "#/components/schemas/Condition"
|
|
6192
|
+
}
|
|
6193
|
+
],
|
|
6194
|
+
"nullable": true
|
|
6195
|
+
}
|
|
6196
|
+
}
|
|
6197
|
+
},
|
|
4068
6198
|
"FieldWithControl": {
|
|
4069
6199
|
"type": "object",
|
|
4070
6200
|
"required": [
|
|
@@ -4117,7 +6247,9 @@
|
|
|
4117
6247
|
"equals",
|
|
4118
6248
|
"not-in",
|
|
4119
6249
|
"not-equals",
|
|
4120
|
-
"contains"
|
|
6250
|
+
"contains",
|
|
6251
|
+
"gte",
|
|
6252
|
+
"lte"
|
|
4121
6253
|
]
|
|
4122
6254
|
},
|
|
4123
6255
|
"Flow": {
|
|
@@ -4163,6 +6295,12 @@
|
|
|
4163
6295
|
"successUrl": {
|
|
4164
6296
|
"type": "string"
|
|
4165
6297
|
},
|
|
6298
|
+
"themeId": {
|
|
6299
|
+
"type": "string",
|
|
6300
|
+
"format": "uuid",
|
|
6301
|
+
"description": "The theme this flow renders with; `None` means use the org default theme.",
|
|
6302
|
+
"nullable": true
|
|
6303
|
+
},
|
|
4166
6304
|
"updatedAt": {
|
|
4167
6305
|
"type": "string",
|
|
4168
6306
|
"format": "date-time",
|
|
@@ -4300,6 +6438,12 @@
|
|
|
4300
6438
|
],
|
|
4301
6439
|
"nullable": true
|
|
4302
6440
|
},
|
|
6441
|
+
"riskScorePercent": {
|
|
6442
|
+
"type": "integer",
|
|
6443
|
+
"format": "int32",
|
|
6444
|
+
"description": "Composed global risk score for the flow (0–100). `None` if not yet scored.",
|
|
6445
|
+
"nullable": true
|
|
6446
|
+
},
|
|
4303
6447
|
"spidResults": {
|
|
4304
6448
|
"type": "array",
|
|
4305
6449
|
"items": {
|
|
@@ -5733,6 +7877,14 @@
|
|
|
5733
7877
|
"sections"
|
|
5734
7878
|
],
|
|
5735
7879
|
"properties": {
|
|
7880
|
+
"assignedRiskTags": {
|
|
7881
|
+
"type": "array",
|
|
7882
|
+
"items": {
|
|
7883
|
+
"$ref": "#/components/schemas/AssignedRiskTag"
|
|
7884
|
+
},
|
|
7885
|
+
"description": "Risk tags assigned during form scoring. `None` if not scored.",
|
|
7886
|
+
"nullable": true
|
|
7887
|
+
},
|
|
5736
7888
|
"createdAt": {
|
|
5737
7889
|
"type": "string",
|
|
5738
7890
|
"format": "date-time",
|
|
@@ -5780,6 +7932,14 @@
|
|
|
5780
7932
|
],
|
|
5781
7933
|
"nullable": true
|
|
5782
7934
|
},
|
|
7935
|
+
"riskFactorKeys": {
|
|
7936
|
+
"type": "array",
|
|
7937
|
+
"items": {
|
|
7938
|
+
"type": "string"
|
|
7939
|
+
},
|
|
7940
|
+
"description": "Risk factor keys matched during form scoring. `None` if not scored.",
|
|
7941
|
+
"nullable": true
|
|
7942
|
+
},
|
|
5783
7943
|
"sections": {
|
|
5784
7944
|
"type": "array",
|
|
5785
7945
|
"items": {
|
|
@@ -5828,7 +7988,7 @@
|
|
|
5828
7988
|
},
|
|
5829
7989
|
"FormStepOutput": {
|
|
5830
7990
|
"type": "object",
|
|
5831
|
-
"description": "Form step output for workflow decisions.\n\n# Field Name Restrictions\n\nThe `fields` HashMap is flattened during serialization. Form field names must not conflict\nwith the reserved field
|
|
7991
|
+
"description": "Form step output for workflow decisions.\n\n# Field Name Restrictions\n\nThe `fields` HashMap is flattened during serialization. Form field names must not conflict\nwith the reserved field names \"status\" and \"riskScorePercent\", as this would create duplicate\nkeys in the serialized JSON output, resulting in invalid JSON.",
|
|
5832
7992
|
"required": [
|
|
5833
7993
|
"status"
|
|
5834
7994
|
],
|
|
@@ -5838,7 +7998,7 @@
|
|
|
5838
7998
|
}
|
|
5839
7999
|
},
|
|
5840
8000
|
"additionalProperties": {
|
|
5841
|
-
"description": "Dynamic form fields flattened into the output.\nNote: Field names must not conflict with \"status\" to avoid duplicate
|
|
8001
|
+
"description": "Dynamic form fields flattened into the output.\nNote: Field names must not conflict with \"status\" or \"riskScorePercent\" to avoid duplicate\nkeys during serialization."
|
|
5842
8002
|
}
|
|
5843
8003
|
},
|
|
5844
8004
|
"GeolocationConfig": {
|
|
@@ -6045,6 +8205,14 @@
|
|
|
6045
8205
|
},
|
|
6046
8206
|
"settings": {
|
|
6047
8207
|
"$ref": "#/components/schemas/Settings"
|
|
8208
|
+
},
|
|
8209
|
+
"theme": {
|
|
8210
|
+
"allOf": [
|
|
8211
|
+
{
|
|
8212
|
+
"$ref": "#/components/schemas/Theme"
|
|
8213
|
+
}
|
|
8214
|
+
],
|
|
8215
|
+
"nullable": true
|
|
6048
8216
|
}
|
|
6049
8217
|
}
|
|
6050
8218
|
},
|
|
@@ -6059,6 +8227,7 @@
|
|
|
6059
8227
|
"movementDurationMs",
|
|
6060
8228
|
"rotationThresholds",
|
|
6061
8229
|
"rotationThresholdsDiagonal",
|
|
8230
|
+
"cardinalDominanceRatio",
|
|
6062
8231
|
"video",
|
|
6063
8232
|
"calibrationImage",
|
|
6064
8233
|
"movementImages",
|
|
@@ -6068,6 +8237,10 @@
|
|
|
6068
8237
|
"calibrationImage": {
|
|
6069
8238
|
"$ref": "#/components/schemas/LivenessUploadUrl"
|
|
6070
8239
|
},
|
|
8240
|
+
"cardinalDominanceRatio": {
|
|
8241
|
+
"type": "number",
|
|
8242
|
+
"format": "float"
|
|
8243
|
+
},
|
|
6071
8244
|
"id": {
|
|
6072
8245
|
"type": "string",
|
|
6073
8246
|
"format": "uuid"
|
|
@@ -6391,6 +8564,14 @@
|
|
|
6391
8564
|
],
|
|
6392
8565
|
"nullable": true
|
|
6393
8566
|
},
|
|
8567
|
+
"risk": {
|
|
8568
|
+
"allOf": [
|
|
8569
|
+
{
|
|
8570
|
+
"$ref": "#/components/schemas/FieldRiskConfig"
|
|
8571
|
+
}
|
|
8572
|
+
],
|
|
8573
|
+
"nullable": true
|
|
8574
|
+
},
|
|
6394
8575
|
"type": {
|
|
6395
8576
|
"type": "string",
|
|
6396
8577
|
"enum": [
|
|
@@ -6437,12 +8618,84 @@
|
|
|
6437
8618
|
],
|
|
6438
8619
|
"nullable": true
|
|
6439
8620
|
},
|
|
8621
|
+
"risk": {
|
|
8622
|
+
"allOf": [
|
|
8623
|
+
{
|
|
8624
|
+
"$ref": "#/components/schemas/FieldRiskConfig"
|
|
8625
|
+
}
|
|
8626
|
+
],
|
|
8627
|
+
"nullable": true
|
|
8628
|
+
},
|
|
6440
8629
|
"type": {
|
|
6441
8630
|
"type": "string",
|
|
6442
8631
|
"enum": [
|
|
6443
8632
|
"text"
|
|
6444
8633
|
]
|
|
6445
8634
|
},
|
|
8635
|
+
"validationRegex": {
|
|
8636
|
+
"type": "string",
|
|
8637
|
+
"description": "Optional regex pattern validated against the submitted value.\nWritten by the platform admin at form-build time; both frontend and\nbackend validate against it on submission.",
|
|
8638
|
+
"nullable": true
|
|
8639
|
+
},
|
|
8640
|
+
"value": {
|
|
8641
|
+
"nullable": true
|
|
8642
|
+
},
|
|
8643
|
+
"visibleWhen": {
|
|
8644
|
+
"allOf": [
|
|
8645
|
+
{
|
|
8646
|
+
"$ref": "#/components/schemas/Condition"
|
|
8647
|
+
}
|
|
8648
|
+
],
|
|
8649
|
+
"nullable": true
|
|
8650
|
+
}
|
|
8651
|
+
}
|
|
8652
|
+
},
|
|
8653
|
+
{
|
|
8654
|
+
"type": "object",
|
|
8655
|
+
"required": [
|
|
8656
|
+
"label",
|
|
8657
|
+
"name",
|
|
8658
|
+
"options",
|
|
8659
|
+
"type"
|
|
8660
|
+
],
|
|
8661
|
+
"properties": {
|
|
8662
|
+
"label": {
|
|
8663
|
+
"type": "object",
|
|
8664
|
+
"additionalProperties": {
|
|
8665
|
+
"type": "string"
|
|
8666
|
+
}
|
|
8667
|
+
},
|
|
8668
|
+
"name": {
|
|
8669
|
+
"type": "string"
|
|
8670
|
+
},
|
|
8671
|
+
"options": {},
|
|
8672
|
+
"requiredWhen": {
|
|
8673
|
+
"allOf": [
|
|
8674
|
+
{
|
|
8675
|
+
"$ref": "#/components/schemas/Condition"
|
|
8676
|
+
}
|
|
8677
|
+
],
|
|
8678
|
+
"nullable": true
|
|
8679
|
+
},
|
|
8680
|
+
"risk": {
|
|
8681
|
+
"allOf": [
|
|
8682
|
+
{
|
|
8683
|
+
"$ref": "#/components/schemas/FieldRiskConfig"
|
|
8684
|
+
}
|
|
8685
|
+
],
|
|
8686
|
+
"nullable": true
|
|
8687
|
+
},
|
|
8688
|
+
"type": {
|
|
8689
|
+
"type": "string",
|
|
8690
|
+
"enum": [
|
|
8691
|
+
"number"
|
|
8692
|
+
]
|
|
8693
|
+
},
|
|
8694
|
+
"validationRegex": {
|
|
8695
|
+
"type": "string",
|
|
8696
|
+
"description": "Optional regex pattern validated against the stringified submitted number.",
|
|
8697
|
+
"nullable": true
|
|
8698
|
+
},
|
|
6446
8699
|
"value": {
|
|
6447
8700
|
"nullable": true
|
|
6448
8701
|
},
|
|
@@ -6483,12 +8736,25 @@
|
|
|
6483
8736
|
],
|
|
6484
8737
|
"nullable": true
|
|
6485
8738
|
},
|
|
8739
|
+
"risk": {
|
|
8740
|
+
"allOf": [
|
|
8741
|
+
{
|
|
8742
|
+
"$ref": "#/components/schemas/FieldRiskConfig"
|
|
8743
|
+
}
|
|
8744
|
+
],
|
|
8745
|
+
"nullable": true
|
|
8746
|
+
},
|
|
6486
8747
|
"type": {
|
|
6487
8748
|
"type": "string",
|
|
6488
8749
|
"enum": [
|
|
6489
8750
|
"textarea"
|
|
6490
8751
|
]
|
|
6491
8752
|
},
|
|
8753
|
+
"validationRegex": {
|
|
8754
|
+
"type": "string",
|
|
8755
|
+
"description": "Optional regex pattern validated against the submitted value.",
|
|
8756
|
+
"nullable": true
|
|
8757
|
+
},
|
|
6492
8758
|
"value": {
|
|
6493
8759
|
"nullable": true
|
|
6494
8760
|
},
|
|
@@ -6529,6 +8795,14 @@
|
|
|
6529
8795
|
],
|
|
6530
8796
|
"nullable": true
|
|
6531
8797
|
},
|
|
8798
|
+
"risk": {
|
|
8799
|
+
"allOf": [
|
|
8800
|
+
{
|
|
8801
|
+
"$ref": "#/components/schemas/FieldRiskConfig"
|
|
8802
|
+
}
|
|
8803
|
+
],
|
|
8804
|
+
"nullable": true
|
|
8805
|
+
},
|
|
6532
8806
|
"type": {
|
|
6533
8807
|
"type": "string",
|
|
6534
8808
|
"enum": [
|
|
@@ -6577,6 +8851,14 @@
|
|
|
6577
8851
|
],
|
|
6578
8852
|
"nullable": true
|
|
6579
8853
|
},
|
|
8854
|
+
"risk": {
|
|
8855
|
+
"allOf": [
|
|
8856
|
+
{
|
|
8857
|
+
"$ref": "#/components/schemas/FieldRiskConfig"
|
|
8858
|
+
}
|
|
8859
|
+
],
|
|
8860
|
+
"nullable": true
|
|
8861
|
+
},
|
|
6580
8862
|
"type": {
|
|
6581
8863
|
"type": "string",
|
|
6582
8864
|
"enum": [
|
|
@@ -6636,6 +8918,14 @@
|
|
|
6636
8918
|
],
|
|
6637
8919
|
"nullable": true
|
|
6638
8920
|
},
|
|
8921
|
+
"risk": {
|
|
8922
|
+
"allOf": [
|
|
8923
|
+
{
|
|
8924
|
+
"$ref": "#/components/schemas/FieldRiskConfig"
|
|
8925
|
+
}
|
|
8926
|
+
],
|
|
8927
|
+
"nullable": true
|
|
8928
|
+
},
|
|
6639
8929
|
"type": {
|
|
6640
8930
|
"type": "string",
|
|
6641
8931
|
"enum": [
|
|
@@ -6682,6 +8972,14 @@
|
|
|
6682
8972
|
],
|
|
6683
8973
|
"nullable": true
|
|
6684
8974
|
},
|
|
8975
|
+
"risk": {
|
|
8976
|
+
"allOf": [
|
|
8977
|
+
{
|
|
8978
|
+
"$ref": "#/components/schemas/FieldRiskConfig"
|
|
8979
|
+
}
|
|
8980
|
+
],
|
|
8981
|
+
"nullable": true
|
|
8982
|
+
},
|
|
6685
8983
|
"type": {
|
|
6686
8984
|
"type": "string",
|
|
6687
8985
|
"enum": [
|
|
@@ -6722,6 +9020,7 @@
|
|
|
6722
9020
|
"enum": [
|
|
6723
9021
|
"date",
|
|
6724
9022
|
"text",
|
|
9023
|
+
"number",
|
|
6725
9024
|
"textarea",
|
|
6726
9025
|
"checkbox",
|
|
6727
9026
|
"file",
|
|
@@ -6759,42 +9058,14 @@
|
|
|
6759
9058
|
"back"
|
|
6760
9059
|
]
|
|
6761
9060
|
},
|
|
6762
|
-
"
|
|
6763
|
-
"type": "
|
|
6764
|
-
"
|
|
6765
|
-
|
|
6766
|
-
"
|
|
6767
|
-
"
|
|
6768
|
-
"
|
|
6769
|
-
]
|
|
6770
|
-
"properties": {
|
|
6771
|
-
"actorIdentityId": {
|
|
6772
|
-
"type": "string",
|
|
6773
|
-
"format": "uuid",
|
|
6774
|
-
"nullable": true
|
|
6775
|
-
},
|
|
6776
|
-
"actorIdentityZid": {
|
|
6777
|
-
"type": "string",
|
|
6778
|
-
"nullable": true
|
|
6779
|
-
},
|
|
6780
|
-
"createdAt": {
|
|
6781
|
-
"type": "string",
|
|
6782
|
-
"format": "date-time",
|
|
6783
|
-
"nullable": true
|
|
6784
|
-
},
|
|
6785
|
-
"details": {},
|
|
6786
|
-
"eventType": {
|
|
6787
|
-
"type": "string"
|
|
6788
|
-
},
|
|
6789
|
-
"id": {
|
|
6790
|
-
"type": "string",
|
|
6791
|
-
"format": "uuid"
|
|
6792
|
-
},
|
|
6793
|
-
"kybResultId": {
|
|
6794
|
-
"type": "string",
|
|
6795
|
-
"format": "uuid"
|
|
6796
|
-
}
|
|
6797
|
-
}
|
|
9061
|
+
"KybAgenticMode": {
|
|
9062
|
+
"type": "string",
|
|
9063
|
+
"description": "Per-domain agentic review mode shared by the compliance review agents (KYB, AML, …):\n`Disabled` → never dispatched; `Suggest` → the terminal approve/clear action is suppressed and\nrecorded as a suggestion; `AutoPilot` → the actuator may enact it behind the deterministic\nguards. `JsonFromStr`/`JsonDisplay` let deployment config carry a mode as its serde string\n(e.g. `SUGGEST`). Kept as the `KybAgenticMode` OpenAPI component for API compatibility.",
|
|
9064
|
+
"enum": [
|
|
9065
|
+
"DISABLED",
|
|
9066
|
+
"SUGGEST",
|
|
9067
|
+
"AUTO_PILOT"
|
|
9068
|
+
]
|
|
6798
9069
|
},
|
|
6799
9070
|
"KybCommunication": {
|
|
6800
9071
|
"type": "object",
|
|
@@ -6846,6 +9117,22 @@
|
|
|
6846
9117
|
"kycFlowId"
|
|
6847
9118
|
],
|
|
6848
9119
|
"properties": {
|
|
9120
|
+
"agenticMode": {
|
|
9121
|
+
"allOf": [
|
|
9122
|
+
{
|
|
9123
|
+
"$ref": "#/components/schemas/KybAgenticMode"
|
|
9124
|
+
}
|
|
9125
|
+
],
|
|
9126
|
+
"default": "DISABLED"
|
|
9127
|
+
},
|
|
9128
|
+
"amlAgenticMode": {
|
|
9129
|
+
"allOf": [
|
|
9130
|
+
{
|
|
9131
|
+
"$ref": "#/components/schemas/KybAgenticMode"
|
|
9132
|
+
}
|
|
9133
|
+
],
|
|
9134
|
+
"default": "DISABLED"
|
|
9135
|
+
},
|
|
6849
9136
|
"articlesOfAssociation": {
|
|
6850
9137
|
"allOf": [
|
|
6851
9138
|
{
|
|
@@ -6854,6 +9141,12 @@
|
|
|
6854
9141
|
],
|
|
6855
9142
|
"nullable": true
|
|
6856
9143
|
},
|
|
9144
|
+
"autoSendUboKycEmail": {
|
|
9145
|
+
"type": "boolean",
|
|
9146
|
+
"description": "When `false`, the KYC invitation email is NOT automatically sent to UBOs on KYB\nsubmission; a reviewer instead triggers it on demand via the UBO reminder endpoint\n(which sends the initial invitation for un-onboarded UBOs). Defaults to `true`\n(auto-send), preserving existing behavior.",
|
|
9147
|
+
"default": "true",
|
|
9148
|
+
"example": "true"
|
|
9149
|
+
},
|
|
6857
9150
|
"certificateOfIncorporation": {
|
|
6858
9151
|
"allOf": [
|
|
6859
9152
|
{
|
|
@@ -6867,6 +9160,16 @@
|
|
|
6867
9160
|
"default": "false",
|
|
6868
9161
|
"example": "false"
|
|
6869
9162
|
},
|
|
9163
|
+
"customCountryDocuments": {
|
|
9164
|
+
"type": "object",
|
|
9165
|
+
"description": "Per-org, per-country document overrides set by the org admin in the flow builder.\nTakes priority over platform-level document definitions for matching countries.\nStored in the flow step config JSON. NOT used in extraction/cross-check.\n\nKeys are ISO 3166-1 alpha-2 codes (normalised from any ISO format on input).",
|
|
9166
|
+
"additionalProperties": {
|
|
9167
|
+
"type": "array",
|
|
9168
|
+
"items": {
|
|
9169
|
+
"$ref": "#/components/schemas/KybCountryDocument"
|
|
9170
|
+
}
|
|
9171
|
+
}
|
|
9172
|
+
},
|
|
6870
9173
|
"customDocuments": {
|
|
6871
9174
|
"type": "array",
|
|
6872
9175
|
"items": {
|
|
@@ -6874,6 +9177,17 @@
|
|
|
6874
9177
|
},
|
|
6875
9178
|
"nullable": true
|
|
6876
9179
|
},
|
|
9180
|
+
"documentsPerCountry": {
|
|
9181
|
+
"type": "object",
|
|
9182
|
+
"description": "Merged per-country document map populated at rehydration time.\n\nBuilt by `rehydrate_flow_step` by merging platform-level DB definitions\nwith org-admin `custom_country_documents` (custom wins per-country).\nThis is the single source of truth for document requirements at runtime.\nFrontend uses this to render upload UI — no priority logic needed client-side.\nAlso round-trips through cache so frontend always sees correct data.",
|
|
9183
|
+
"additionalProperties": {
|
|
9184
|
+
"type": "array",
|
|
9185
|
+
"items": {
|
|
9186
|
+
"$ref": "#/components/schemas/KybCountryDocument"
|
|
9187
|
+
}
|
|
9188
|
+
},
|
|
9189
|
+
"nullable": true
|
|
9190
|
+
},
|
|
6877
9191
|
"kycFlowId": {
|
|
6878
9192
|
"type": "string",
|
|
6879
9193
|
"format": "uuid"
|
|
@@ -6913,6 +9227,43 @@
|
|
|
6913
9227
|
}
|
|
6914
9228
|
],
|
|
6915
9229
|
"nullable": true
|
|
9230
|
+
},
|
|
9231
|
+
"proofOfAttorney": {
|
|
9232
|
+
"allOf": [
|
|
9233
|
+
{
|
|
9234
|
+
"$ref": "#/components/schemas/DocumentConfig"
|
|
9235
|
+
}
|
|
9236
|
+
],
|
|
9237
|
+
"nullable": true
|
|
9238
|
+
}
|
|
9239
|
+
}
|
|
9240
|
+
},
|
|
9241
|
+
"KybCountryDocument": {
|
|
9242
|
+
"type": "object",
|
|
9243
|
+
"description": "A document required for KYB in a specific country.\n\nPopulated at runtime via rehydration from the platform-level\n`document_definitions` table. Contains the extraction/validation\nschema for future LLM-driven field extraction.",
|
|
9244
|
+
"required": [
|
|
9245
|
+
"key",
|
|
9246
|
+
"label"
|
|
9247
|
+
],
|
|
9248
|
+
"properties": {
|
|
9249
|
+
"key": {
|
|
9250
|
+
"type": "string",
|
|
9251
|
+
"description": "Machine-readable key used as the document type identifier (e.g.\n`\"visura_camerale\"`, `\"certificate_of_incorporation\"`).\nUnique within (scope, country)."
|
|
9252
|
+
},
|
|
9253
|
+
"label": {
|
|
9254
|
+
"type": "string",
|
|
9255
|
+
"description": "Human-readable label shown to the user during the KYB flow."
|
|
9256
|
+
},
|
|
9257
|
+
"onDemand": {
|
|
9258
|
+
"type": "boolean",
|
|
9259
|
+
"description": "When `true`, the document is NOT demanded upfront (excluded from the required-document\ngate) and is instead requested on demand by a reviewer during review. Defaults to\n`false`."
|
|
9260
|
+
},
|
|
9261
|
+
"required": {
|
|
9262
|
+
"type": "boolean",
|
|
9263
|
+
"description": "Whether upload of this document is mandatory for KYB approval.\nDefaults to `true`."
|
|
9264
|
+
},
|
|
9265
|
+
"validationSchema": {
|
|
9266
|
+
"description": "JSON schema for extraction/validation. Opaque for now — will be used by\n`KybDocumentIntelligenceService` for schema-driven field extraction."
|
|
6916
9267
|
}
|
|
6917
9268
|
}
|
|
6918
9269
|
},
|
|
@@ -7048,6 +9399,23 @@
|
|
|
7048
9399
|
}
|
|
7049
9400
|
]
|
|
7050
9401
|
},
|
|
9402
|
+
"KybMetadata": {
|
|
9403
|
+
"type": "object",
|
|
9404
|
+
"description": "The KYB result metadata bag. Empty by default.",
|
|
9405
|
+
"properties": {
|
|
9406
|
+
"ownershipStructure": {
|
|
9407
|
+
"allOf": [
|
|
9408
|
+
{
|
|
9409
|
+
"$ref": "#/components/schemas/OwnershipStructure"
|
|
9410
|
+
}
|
|
9411
|
+
],
|
|
9412
|
+
"nullable": true
|
|
9413
|
+
}
|
|
9414
|
+
},
|
|
9415
|
+
"additionalProperties": {
|
|
9416
|
+
"description": "Any other top-level key. Opaque to the backend, passed through verbatim."
|
|
9417
|
+
}
|
|
9418
|
+
},
|
|
7051
9419
|
"KybResult": {
|
|
7052
9420
|
"type": "object",
|
|
7053
9421
|
"required": [
|
|
@@ -7100,6 +9468,14 @@
|
|
|
7100
9468
|
},
|
|
7101
9469
|
"nullable": true
|
|
7102
9470
|
},
|
|
9471
|
+
"effectiveRequiredDocuments": {
|
|
9472
|
+
"type": "array",
|
|
9473
|
+
"items": {
|
|
9474
|
+
"$ref": "#/components/schemas/KybCountryDocument"
|
|
9475
|
+
},
|
|
9476
|
+
"description": "The effective list of required KYB documents for this result's country.\n\nResolved by `DocumentDefinitionService::resolve_for_country` using the full\npriority chain: platform DB definitions → org-admin `custom_country_documents`\n→ global legacy fields. `None` until explicitly set by a caller with DB access\n(e.g. the MCP `get_kyb_result` tool). Not computed in the `From` conversion.",
|
|
9477
|
+
"nullable": true
|
|
9478
|
+
},
|
|
7103
9479
|
"flowStep": {
|
|
7104
9480
|
"allOf": [
|
|
7105
9481
|
{
|
|
@@ -7122,6 +9498,10 @@
|
|
|
7122
9498
|
"type": "string",
|
|
7123
9499
|
"format": "uuid"
|
|
7124
9500
|
},
|
|
9501
|
+
"metadata": {
|
|
9502
|
+
"type": "object",
|
|
9503
|
+
"description": "Admin-curated metadata. Organizations read it; only admins write it.\nEmpty (`{}`) when nothing has been recorded."
|
|
9504
|
+
},
|
|
7125
9505
|
"nextAction": {
|
|
7126
9506
|
"allOf": [
|
|
7127
9507
|
{
|
|
@@ -7170,6 +9550,19 @@
|
|
|
7170
9550
|
"status"
|
|
7171
9551
|
],
|
|
7172
9552
|
"properties": {
|
|
9553
|
+
"amlPep": {
|
|
9554
|
+
"type": "boolean",
|
|
9555
|
+
"nullable": true
|
|
9556
|
+
},
|
|
9557
|
+
"amlRiskScorePercent": {
|
|
9558
|
+
"type": "integer",
|
|
9559
|
+
"format": "int32",
|
|
9560
|
+
"nullable": true
|
|
9561
|
+
},
|
|
9562
|
+
"amlSanctions": {
|
|
9563
|
+
"type": "boolean",
|
|
9564
|
+
"nullable": true
|
|
9565
|
+
},
|
|
7173
9566
|
"businessName": {
|
|
7174
9567
|
"type": "string",
|
|
7175
9568
|
"nullable": true
|
|
@@ -7203,18 +9596,6 @@
|
|
|
7203
9596
|
}
|
|
7204
9597
|
}
|
|
7205
9598
|
},
|
|
7206
|
-
"Likelihood": {
|
|
7207
|
-
"type": "string",
|
|
7208
|
-
"enum": [
|
|
7209
|
-
"No Match",
|
|
7210
|
-
"Very Low",
|
|
7211
|
-
"low",
|
|
7212
|
-
"medium",
|
|
7213
|
-
"high",
|
|
7214
|
-
"Very High",
|
|
7215
|
-
"Exact Match"
|
|
7216
|
-
]
|
|
7217
|
-
},
|
|
7218
9599
|
"ListAllFlowResultsResponse": {
|
|
7219
9600
|
"type": "object",
|
|
7220
9601
|
"required": [
|
|
@@ -7255,6 +9636,26 @@
|
|
|
7255
9636
|
}
|
|
7256
9637
|
}
|
|
7257
9638
|
},
|
|
9639
|
+
"ListAuditLogResponse": {
|
|
9640
|
+
"type": "object",
|
|
9641
|
+
"required": [
|
|
9642
|
+
"page",
|
|
9643
|
+
"totalCount"
|
|
9644
|
+
],
|
|
9645
|
+
"properties": {
|
|
9646
|
+
"page": {
|
|
9647
|
+
"type": "array",
|
|
9648
|
+
"items": {
|
|
9649
|
+
"$ref": "#/components/schemas/AuditLogEntry"
|
|
9650
|
+
}
|
|
9651
|
+
},
|
|
9652
|
+
"totalCount": {
|
|
9653
|
+
"type": "integer",
|
|
9654
|
+
"format": "int64",
|
|
9655
|
+
"minimum": 0
|
|
9656
|
+
}
|
|
9657
|
+
}
|
|
9658
|
+
},
|
|
7258
9659
|
"ListOrganizationApiKeysResponse": {
|
|
7259
9660
|
"type": "object",
|
|
7260
9661
|
"required": [
|
|
@@ -7435,7 +9836,7 @@
|
|
|
7435
9836
|
}
|
|
7436
9837
|
}
|
|
7437
9838
|
},
|
|
7438
|
-
"
|
|
9839
|
+
"ListSharedKycResultsResponse": {
|
|
7439
9840
|
"type": "object",
|
|
7440
9841
|
"required": [
|
|
7441
9842
|
"page",
|
|
@@ -7445,7 +9846,7 @@
|
|
|
7445
9846
|
"page": {
|
|
7446
9847
|
"type": "array",
|
|
7447
9848
|
"items": {
|
|
7448
|
-
"$ref": "#/components/schemas/
|
|
9849
|
+
"$ref": "#/components/schemas/FlowResult"
|
|
7449
9850
|
}
|
|
7450
9851
|
},
|
|
7451
9852
|
"totalCount": {
|
|
@@ -7455,7 +9856,7 @@
|
|
|
7455
9856
|
}
|
|
7456
9857
|
}
|
|
7457
9858
|
},
|
|
7458
|
-
"
|
|
9859
|
+
"ListThemesResponse": {
|
|
7459
9860
|
"type": "object",
|
|
7460
9861
|
"required": [
|
|
7461
9862
|
"page",
|
|
@@ -7465,7 +9866,7 @@
|
|
|
7465
9866
|
"page": {
|
|
7466
9867
|
"type": "array",
|
|
7467
9868
|
"items": {
|
|
7468
|
-
"$ref": "#/components/schemas/
|
|
9869
|
+
"$ref": "#/components/schemas/Theme"
|
|
7469
9870
|
}
|
|
7470
9871
|
},
|
|
7471
9872
|
"totalCount": {
|
|
@@ -7532,6 +9933,11 @@
|
|
|
7532
9933
|
"type": "boolean",
|
|
7533
9934
|
"nullable": true
|
|
7534
9935
|
},
|
|
9936
|
+
"skipIfPreviousLivenessPassed": {
|
|
9937
|
+
"type": "boolean",
|
|
9938
|
+
"description": "When enabled (the default when unset), the liveness step is skipped during a\none-click KYC reuse if the reused document verification result already carries a\nsuccessful liveness outcome (`processAdditionalData.rawLivenessData`).\n\nThe reused liveness must originate from a flow of the same organization, unless\nthe one-click was authenticated via passkey — in which case cross-organization\nreuse is allowed. Set to `false` to always require a fresh liveness.",
|
|
9939
|
+
"nullable": true
|
|
9940
|
+
},
|
|
7535
9941
|
"thresholds": {
|
|
7536
9942
|
"type": "object",
|
|
7537
9943
|
"additionalProperties": {
|
|
@@ -7609,104 +10015,6 @@
|
|
|
7609
10015
|
"failed"
|
|
7610
10016
|
]
|
|
7611
10017
|
},
|
|
7612
|
-
"MatchDetail": {
|
|
7613
|
-
"type": "object",
|
|
7614
|
-
"properties": {
|
|
7615
|
-
"internalInfo": {
|
|
7616
|
-
"type": "string",
|
|
7617
|
-
"nullable": true
|
|
7618
|
-
},
|
|
7619
|
-
"matchCriteria": {
|
|
7620
|
-
"type": "string",
|
|
7621
|
-
"nullable": true
|
|
7622
|
-
},
|
|
7623
|
-
"matchCriteriaNumeric": {
|
|
7624
|
-
"type": "integer",
|
|
7625
|
-
"format": "int32",
|
|
7626
|
-
"nullable": true
|
|
7627
|
-
},
|
|
7628
|
-
"matchedEntity": {
|
|
7629
|
-
"type": "string",
|
|
7630
|
-
"nullable": true
|
|
7631
|
-
}
|
|
7632
|
-
}
|
|
7633
|
-
},
|
|
7634
|
-
"MatchReportData": {
|
|
7635
|
-
"type": "object",
|
|
7636
|
-
"properties": {
|
|
7637
|
-
"category": {
|
|
7638
|
-
"type": "string",
|
|
7639
|
-
"nullable": true
|
|
7640
|
-
},
|
|
7641
|
-
"database": {
|
|
7642
|
-
"type": "string",
|
|
7643
|
-
"nullable": true
|
|
7644
|
-
},
|
|
7645
|
-
"description": {
|
|
7646
|
-
"type": "string",
|
|
7647
|
-
"nullable": true
|
|
7648
|
-
},
|
|
7649
|
-
"entity_id": {
|
|
7650
|
-
"type": "string",
|
|
7651
|
-
"nullable": true
|
|
7652
|
-
},
|
|
7653
|
-
"entity_name": {
|
|
7654
|
-
"type": "string",
|
|
7655
|
-
"nullable": true
|
|
7656
|
-
},
|
|
7657
|
-
"likelihood": {
|
|
7658
|
-
"allOf": [
|
|
7659
|
-
{
|
|
7660
|
-
"$ref": "#/components/schemas/Likelihood"
|
|
7661
|
-
}
|
|
7662
|
-
],
|
|
7663
|
-
"nullable": true
|
|
7664
|
-
},
|
|
7665
|
-
"mapped_entity_details": {
|
|
7666
|
-
"allOf": [
|
|
7667
|
-
{
|
|
7668
|
-
"$ref": "#/components/schemas/ScreeningDetailsMappedEntityDetails"
|
|
7669
|
-
}
|
|
7670
|
-
],
|
|
7671
|
-
"nullable": true
|
|
7672
|
-
},
|
|
7673
|
-
"match_id": {
|
|
7674
|
-
"type": "string",
|
|
7675
|
-
"nullable": true
|
|
7676
|
-
},
|
|
7677
|
-
"match_level": {
|
|
7678
|
-
"type": "string",
|
|
7679
|
-
"nullable": true
|
|
7680
|
-
},
|
|
7681
|
-
"references": {
|
|
7682
|
-
"type": "array",
|
|
7683
|
-
"items": {
|
|
7684
|
-
"type": "string"
|
|
7685
|
-
},
|
|
7686
|
-
"nullable": true
|
|
7687
|
-
},
|
|
7688
|
-
"score": {
|
|
7689
|
-
"type": "number",
|
|
7690
|
-
"format": "double",
|
|
7691
|
-
"nullable": true
|
|
7692
|
-
},
|
|
7693
|
-
"sources": {
|
|
7694
|
-
"type": "array",
|
|
7695
|
-
"items": {
|
|
7696
|
-
"type": "string"
|
|
7697
|
-
},
|
|
7698
|
-
"nullable": true
|
|
7699
|
-
},
|
|
7700
|
-
"sub_category": {
|
|
7701
|
-
"type": "string",
|
|
7702
|
-
"nullable": true
|
|
7703
|
-
},
|
|
7704
|
-
"updated_date": {
|
|
7705
|
-
"type": "string",
|
|
7706
|
-
"nullable": true
|
|
7707
|
-
}
|
|
7708
|
-
}
|
|
7709
|
-
},
|
|
7710
10018
|
"ModerateKybResultPayload": {
|
|
7711
10019
|
"type": "object",
|
|
7712
10020
|
"properties": {
|
|
@@ -7811,7 +10119,8 @@
|
|
|
7811
10119
|
"address",
|
|
7812
10120
|
"website",
|
|
7813
10121
|
"email",
|
|
7814
|
-
"phone"
|
|
10122
|
+
"phone",
|
|
10123
|
+
"creationSource"
|
|
7815
10124
|
],
|
|
7816
10125
|
"properties": {
|
|
7817
10126
|
"address": {
|
|
@@ -7825,6 +10134,9 @@
|
|
|
7825
10134
|
"format": "date-time",
|
|
7826
10135
|
"nullable": true
|
|
7827
10136
|
},
|
|
10137
|
+
"creationSource": {
|
|
10138
|
+
"$ref": "#/components/schemas/CreationSource"
|
|
10139
|
+
},
|
|
7828
10140
|
"email": {
|
|
7829
10141
|
"type": "string"
|
|
7830
10142
|
},
|
|
@@ -7857,107 +10169,312 @@
|
|
|
7857
10169
|
],
|
|
7858
10170
|
"nullable": true
|
|
7859
10171
|
},
|
|
7860
|
-
"slug": {
|
|
7861
|
-
"type": "string"
|
|
10172
|
+
"slug": {
|
|
10173
|
+
"type": "string"
|
|
10174
|
+
},
|
|
10175
|
+
"updatedAt": {
|
|
10176
|
+
"type": "string",
|
|
10177
|
+
"format": "date-time",
|
|
10178
|
+
"nullable": true
|
|
10179
|
+
},
|
|
10180
|
+
"website": {
|
|
10181
|
+
"type": "string"
|
|
10182
|
+
}
|
|
10183
|
+
}
|
|
10184
|
+
},
|
|
10185
|
+
"OrganizationInvite": {
|
|
10186
|
+
"type": "object",
|
|
10187
|
+
"required": [
|
|
10188
|
+
"id",
|
|
10189
|
+
"email",
|
|
10190
|
+
"organizationId",
|
|
10191
|
+
"used",
|
|
10192
|
+
"validBefore",
|
|
10193
|
+
"role"
|
|
10194
|
+
],
|
|
10195
|
+
"properties": {
|
|
10196
|
+
"createdAt": {
|
|
10197
|
+
"type": "string",
|
|
10198
|
+
"format": "date-time",
|
|
10199
|
+
"nullable": true
|
|
10200
|
+
},
|
|
10201
|
+
"email": {
|
|
10202
|
+
"type": "string"
|
|
10203
|
+
},
|
|
10204
|
+
"id": {
|
|
10205
|
+
"type": "string",
|
|
10206
|
+
"format": "uuid"
|
|
10207
|
+
},
|
|
10208
|
+
"inviter": {
|
|
10209
|
+
"allOf": [
|
|
10210
|
+
{
|
|
10211
|
+
"$ref": "#/components/schemas/OrganizationInviterInfo"
|
|
10212
|
+
}
|
|
10213
|
+
],
|
|
10214
|
+
"nullable": true
|
|
10215
|
+
},
|
|
10216
|
+
"organizationId": {
|
|
10217
|
+
"type": "string",
|
|
10218
|
+
"format": "uuid"
|
|
10219
|
+
},
|
|
10220
|
+
"revoked": {
|
|
10221
|
+
"type": "boolean",
|
|
10222
|
+
"nullable": true
|
|
10223
|
+
},
|
|
10224
|
+
"revokedAt": {
|
|
10225
|
+
"type": "string",
|
|
10226
|
+
"format": "date-time",
|
|
10227
|
+
"nullable": true
|
|
10228
|
+
},
|
|
10229
|
+
"role": {
|
|
10230
|
+
"$ref": "#/components/schemas/Role"
|
|
10231
|
+
},
|
|
10232
|
+
"used": {
|
|
10233
|
+
"type": "boolean"
|
|
10234
|
+
},
|
|
10235
|
+
"validBefore": {
|
|
10236
|
+
"type": "string",
|
|
10237
|
+
"format": "date-time"
|
|
10238
|
+
}
|
|
10239
|
+
}
|
|
10240
|
+
},
|
|
10241
|
+
"OrganizationInviterInfo": {
|
|
10242
|
+
"type": "object",
|
|
10243
|
+
"required": [
|
|
10244
|
+
"role"
|
|
10245
|
+
],
|
|
10246
|
+
"properties": {
|
|
10247
|
+
"email": {
|
|
10248
|
+
"type": "string",
|
|
10249
|
+
"nullable": true
|
|
10250
|
+
},
|
|
10251
|
+
"role": {
|
|
10252
|
+
"$ref": "#/components/schemas/Role"
|
|
10253
|
+
}
|
|
10254
|
+
}
|
|
10255
|
+
},
|
|
10256
|
+
"OwnershipBirthDate": {
|
|
10257
|
+
"type": "object",
|
|
10258
|
+
"required": [
|
|
10259
|
+
"day",
|
|
10260
|
+
"month",
|
|
10261
|
+
"year"
|
|
10262
|
+
],
|
|
10263
|
+
"properties": {
|
|
10264
|
+
"day": {
|
|
10265
|
+
"type": "integer",
|
|
10266
|
+
"format": "int32",
|
|
10267
|
+
"minimum": 0
|
|
10268
|
+
},
|
|
10269
|
+
"month": {
|
|
10270
|
+
"type": "integer",
|
|
10271
|
+
"format": "int32",
|
|
10272
|
+
"minimum": 0
|
|
10273
|
+
},
|
|
10274
|
+
"year": {
|
|
10275
|
+
"type": "integer",
|
|
10276
|
+
"format": "int32"
|
|
10277
|
+
}
|
|
10278
|
+
}
|
|
10279
|
+
},
|
|
10280
|
+
"OwnershipCompany": {
|
|
10281
|
+
"type": "object",
|
|
10282
|
+
"required": [
|
|
10283
|
+
"id",
|
|
10284
|
+
"legalName",
|
|
10285
|
+
"countryCode"
|
|
10286
|
+
],
|
|
10287
|
+
"properties": {
|
|
10288
|
+
"countryCode": {
|
|
10289
|
+
"type": "string"
|
|
10290
|
+
},
|
|
10291
|
+
"id": {
|
|
10292
|
+
"type": "string"
|
|
10293
|
+
},
|
|
10294
|
+
"legalName": {
|
|
10295
|
+
"type": "string"
|
|
10296
|
+
}
|
|
10297
|
+
}
|
|
10298
|
+
},
|
|
10299
|
+
"OwnershipEdge": {
|
|
10300
|
+
"type": "object",
|
|
10301
|
+
"required": [
|
|
10302
|
+
"id",
|
|
10303
|
+
"fromId",
|
|
10304
|
+
"toId",
|
|
10305
|
+
"percentage"
|
|
10306
|
+
],
|
|
10307
|
+
"properties": {
|
|
10308
|
+
"fromId": {
|
|
10309
|
+
"type": "string"
|
|
10310
|
+
},
|
|
10311
|
+
"id": {
|
|
10312
|
+
"type": "string"
|
|
10313
|
+
},
|
|
10314
|
+
"percentage": {
|
|
10315
|
+
"type": "number",
|
|
10316
|
+
"format": "double"
|
|
10317
|
+
},
|
|
10318
|
+
"source": {
|
|
10319
|
+
"type": "string",
|
|
10320
|
+
"nullable": true
|
|
10321
|
+
},
|
|
10322
|
+
"toId": {
|
|
10323
|
+
"type": "string"
|
|
10324
|
+
}
|
|
10325
|
+
}
|
|
10326
|
+
},
|
|
10327
|
+
"OwnershipEntity": {
|
|
10328
|
+
"oneOf": [
|
|
10329
|
+
{
|
|
10330
|
+
"type": "object",
|
|
10331
|
+
"required": [
|
|
10332
|
+
"company",
|
|
10333
|
+
"type"
|
|
10334
|
+
],
|
|
10335
|
+
"properties": {
|
|
10336
|
+
"company": {
|
|
10337
|
+
"$ref": "#/components/schemas/OwnershipCompany"
|
|
10338
|
+
},
|
|
10339
|
+
"type": {
|
|
10340
|
+
"type": "string",
|
|
10341
|
+
"enum": [
|
|
10342
|
+
"company"
|
|
10343
|
+
]
|
|
10344
|
+
}
|
|
10345
|
+
}
|
|
10346
|
+
},
|
|
10347
|
+
{
|
|
10348
|
+
"type": "object",
|
|
10349
|
+
"required": [
|
|
10350
|
+
"individual",
|
|
10351
|
+
"type"
|
|
10352
|
+
],
|
|
10353
|
+
"properties": {
|
|
10354
|
+
"individual": {
|
|
10355
|
+
"$ref": "#/components/schemas/OwnershipIndividual"
|
|
10356
|
+
},
|
|
10357
|
+
"type": {
|
|
10358
|
+
"type": "string",
|
|
10359
|
+
"enum": [
|
|
10360
|
+
"individual"
|
|
10361
|
+
]
|
|
10362
|
+
}
|
|
10363
|
+
}
|
|
10364
|
+
}
|
|
10365
|
+
],
|
|
10366
|
+
"description": "The provider's wire shape `{ \"type\": \"company\", \"company\": { ... } }`, expressed as an\ninternally tagged enum: the `type` tag selects the variant, so a tag that disagrees with\nits payload — or an unknown tag — is unrepresentable and rejected at deserialization.",
|
|
10367
|
+
"discriminator": {
|
|
10368
|
+
"propertyName": "type"
|
|
10369
|
+
}
|
|
10370
|
+
},
|
|
10371
|
+
"OwnershipFlags": {
|
|
10372
|
+
"type": "object",
|
|
10373
|
+
"description": "Per-node flags. `status` is free-form for the same reason as `stopped_reason`; the\nreference provider already emits `found`, `budget_truncated`, `placeholder`, and\n`coverage_unavailable`, and a fifth value must not fail a write.\n\n`status` is the load-bearing truncation signal: an unexplored node must render\ndifferently from a resolved one, so \"no UBO found\" is never read as \"no UBO exists\".",
|
|
10374
|
+
"required": [
|
|
10375
|
+
"status"
|
|
10376
|
+
],
|
|
10377
|
+
"properties": {
|
|
10378
|
+
"isRoot": {
|
|
10379
|
+
"type": "boolean"
|
|
10380
|
+
},
|
|
10381
|
+
"isUbo": {
|
|
10382
|
+
"type": "boolean"
|
|
7862
10383
|
},
|
|
7863
|
-
"
|
|
7864
|
-
"type": "
|
|
7865
|
-
"format": "date-time",
|
|
7866
|
-
"nullable": true
|
|
10384
|
+
"isUboProxy": {
|
|
10385
|
+
"type": "boolean"
|
|
7867
10386
|
},
|
|
7868
|
-
"
|
|
10387
|
+
"status": {
|
|
7869
10388
|
"type": "string"
|
|
7870
10389
|
}
|
|
7871
10390
|
}
|
|
7872
10391
|
},
|
|
7873
|
-
"
|
|
10392
|
+
"OwnershipIndividual": {
|
|
7874
10393
|
"type": "object",
|
|
7875
10394
|
"required": [
|
|
7876
|
-
"
|
|
7877
|
-
"email",
|
|
7878
|
-
"organizationId",
|
|
7879
|
-
"used",
|
|
7880
|
-
"validBefore",
|
|
7881
|
-
"role"
|
|
10395
|
+
"name"
|
|
7882
10396
|
],
|
|
7883
10397
|
"properties": {
|
|
7884
|
-
"
|
|
7885
|
-
"type": "string",
|
|
7886
|
-
"format": "date-time",
|
|
7887
|
-
"nullable": true
|
|
7888
|
-
},
|
|
7889
|
-
"email": {
|
|
7890
|
-
"type": "string"
|
|
7891
|
-
},
|
|
7892
|
-
"id": {
|
|
7893
|
-
"type": "string",
|
|
7894
|
-
"format": "uuid"
|
|
7895
|
-
},
|
|
7896
|
-
"inviter": {
|
|
10398
|
+
"birthDate": {
|
|
7897
10399
|
"allOf": [
|
|
7898
10400
|
{
|
|
7899
|
-
"$ref": "#/components/schemas/
|
|
10401
|
+
"$ref": "#/components/schemas/OwnershipBirthDate"
|
|
7900
10402
|
}
|
|
7901
10403
|
],
|
|
7902
10404
|
"nullable": true
|
|
7903
10405
|
},
|
|
7904
|
-
"
|
|
7905
|
-
"
|
|
7906
|
-
"format": "uuid"
|
|
7907
|
-
},
|
|
7908
|
-
"revoked": {
|
|
7909
|
-
"type": "boolean",
|
|
7910
|
-
"nullable": true
|
|
10406
|
+
"name": {
|
|
10407
|
+
"$ref": "#/components/schemas/OwnershipIndividualName"
|
|
7911
10408
|
},
|
|
7912
|
-
"
|
|
10409
|
+
"nationality": {
|
|
7913
10410
|
"type": "string",
|
|
7914
|
-
"format": "date-time",
|
|
7915
10411
|
"nullable": true
|
|
7916
|
-
},
|
|
7917
|
-
"role": {
|
|
7918
|
-
"$ref": "#/components/schemas/Role"
|
|
7919
|
-
},
|
|
7920
|
-
"used": {
|
|
7921
|
-
"type": "boolean"
|
|
7922
|
-
},
|
|
7923
|
-
"validBefore": {
|
|
7924
|
-
"type": "string",
|
|
7925
|
-
"format": "date-time"
|
|
7926
10412
|
}
|
|
7927
10413
|
}
|
|
7928
10414
|
},
|
|
7929
|
-
"
|
|
10415
|
+
"OwnershipIndividualName": {
|
|
7930
10416
|
"type": "object",
|
|
7931
10417
|
"required": [
|
|
7932
|
-
"
|
|
10418
|
+
"fullName"
|
|
7933
10419
|
],
|
|
7934
10420
|
"properties": {
|
|
7935
|
-
"
|
|
7936
|
-
"type": "string"
|
|
7937
|
-
"nullable": true
|
|
7938
|
-
},
|
|
7939
|
-
"role": {
|
|
7940
|
-
"$ref": "#/components/schemas/Role"
|
|
10421
|
+
"fullName": {
|
|
10422
|
+
"type": "string"
|
|
7941
10423
|
}
|
|
7942
10424
|
}
|
|
7943
10425
|
},
|
|
7944
|
-
"
|
|
10426
|
+
"OwnershipNode": {
|
|
10427
|
+
"allOf": [
|
|
10428
|
+
{
|
|
10429
|
+
"$ref": "#/components/schemas/OwnershipEntity"
|
|
10430
|
+
},
|
|
10431
|
+
{
|
|
10432
|
+
"type": "object",
|
|
10433
|
+
"required": [
|
|
10434
|
+
"nodeId",
|
|
10435
|
+
"flags"
|
|
10436
|
+
],
|
|
10437
|
+
"properties": {
|
|
10438
|
+
"flags": {
|
|
10439
|
+
"$ref": "#/components/schemas/OwnershipFlags"
|
|
10440
|
+
},
|
|
10441
|
+
"nodeId": {
|
|
10442
|
+
"type": "string"
|
|
10443
|
+
},
|
|
10444
|
+
"totalOwnershipPercentage": {
|
|
10445
|
+
"type": "number",
|
|
10446
|
+
"format": "double",
|
|
10447
|
+
"nullable": true
|
|
10448
|
+
}
|
|
10449
|
+
}
|
|
10450
|
+
}
|
|
10451
|
+
],
|
|
10452
|
+
"description": "A graph node. `entity` is flattened and tagged on `type`, so a `company`-typed node\ncannot exist without company data."
|
|
10453
|
+
},
|
|
10454
|
+
"OwnershipStructure": {
|
|
7945
10455
|
"type": "object",
|
|
10456
|
+
"description": "An ownership graph: who owns the subject company, transitively.",
|
|
7946
10457
|
"required": [
|
|
7947
|
-
"
|
|
7948
|
-
"
|
|
10458
|
+
"nodes",
|
|
10459
|
+
"edges"
|
|
7949
10460
|
],
|
|
7950
10461
|
"properties": {
|
|
7951
|
-
"
|
|
10462
|
+
"edges": {
|
|
7952
10463
|
"type": "array",
|
|
7953
10464
|
"items": {
|
|
7954
|
-
"$ref": "#/components/schemas/
|
|
10465
|
+
"$ref": "#/components/schemas/OwnershipEdge"
|
|
7955
10466
|
}
|
|
7956
10467
|
},
|
|
7957
|
-
"
|
|
7958
|
-
"type": "
|
|
7959
|
-
"
|
|
7960
|
-
|
|
10468
|
+
"nodes": {
|
|
10469
|
+
"type": "array",
|
|
10470
|
+
"items": {
|
|
10471
|
+
"$ref": "#/components/schemas/OwnershipNode"
|
|
10472
|
+
}
|
|
10473
|
+
},
|
|
10474
|
+
"stoppedReason": {
|
|
10475
|
+
"type": "string",
|
|
10476
|
+
"description": "Why graph traversal stopped, when it stopped early (e.g. `max_depth_reached`).\nFree-form: provider-defined and admin-entered, so a closed enum would reject\nan unrecognised value at write time.",
|
|
10477
|
+
"nullable": true
|
|
7961
10478
|
}
|
|
7962
10479
|
}
|
|
7963
10480
|
},
|
|
@@ -8218,6 +10735,7 @@
|
|
|
8218
10735
|
"TAX_CLEARANCE_CERTIFICATE",
|
|
8219
10736
|
"HOUSEHOLD_REGISTER",
|
|
8220
10737
|
"CERTIFICATE_OF_RESIDENCE",
|
|
10738
|
+
"DLDV",
|
|
8221
10739
|
"OTHER"
|
|
8222
10740
|
]
|
|
8223
10741
|
},
|
|
@@ -8390,9 +10908,15 @@
|
|
|
8390
10908
|
"type": "object",
|
|
8391
10909
|
"required": [
|
|
8392
10910
|
"verificationRequestId",
|
|
8393
|
-
"jobId"
|
|
10911
|
+
"jobId",
|
|
10912
|
+
"attemptsCount"
|
|
8394
10913
|
],
|
|
8395
10914
|
"properties": {
|
|
10915
|
+
"attemptsCount": {
|
|
10916
|
+
"type": "integer",
|
|
10917
|
+
"format": "int32",
|
|
10918
|
+
"description": "Number of prior attempts on this verification request.\n`0` = first submission (`Created`); `> 0` = retry (`Updated`)."
|
|
10919
|
+
},
|
|
8396
10920
|
"jobId": {
|
|
8397
10921
|
"type": "string"
|
|
8398
10922
|
},
|
|
@@ -8476,12 +11000,6 @@
|
|
|
8476
11000
|
"type": "string",
|
|
8477
11001
|
"nullable": true
|
|
8478
11002
|
},
|
|
8479
|
-
"requiredDocumentFields": {
|
|
8480
|
-
"type": "object",
|
|
8481
|
-
"additionalProperties": {
|
|
8482
|
-
"type": "string"
|
|
8483
|
-
}
|
|
8484
|
-
},
|
|
8485
11003
|
"sessionToken": {
|
|
8486
11004
|
"type": "string",
|
|
8487
11005
|
"description": "Session token for session-based providers (e.g. Incode JWT).\nIf provided along with interview_id, the backend will fetch results from the provider.",
|
|
@@ -8493,9 +11011,14 @@
|
|
|
8493
11011
|
"type": "object",
|
|
8494
11012
|
"required": [
|
|
8495
11013
|
"verificationRequestId",
|
|
8496
|
-
"jobId"
|
|
11014
|
+
"jobId",
|
|
11015
|
+
"attemptsCount"
|
|
8497
11016
|
],
|
|
8498
11017
|
"properties": {
|
|
11018
|
+
"attemptsCount": {
|
|
11019
|
+
"type": "integer",
|
|
11020
|
+
"format": "int32"
|
|
11021
|
+
},
|
|
8499
11022
|
"jobId": {
|
|
8500
11023
|
"type": "string"
|
|
8501
11024
|
},
|
|
@@ -8573,9 +11096,43 @@
|
|
|
8573
11096
|
"BUSINESS_VERIFICATION",
|
|
8574
11097
|
"FLOW_BUILDER",
|
|
8575
11098
|
"GEOLOCATION",
|
|
8576
|
-
"FORM"
|
|
11099
|
+
"FORM",
|
|
11100
|
+
"AML"
|
|
8577
11101
|
]
|
|
8578
11102
|
},
|
|
11103
|
+
"RequestOnDemandDocumentPayload": {
|
|
11104
|
+
"type": "object",
|
|
11105
|
+
"description": "Request body for `POST .../kyb/{kyb_result_id}/document-requests/on-demand`.\n\nAsks the client for a specific on-demand per-country document (identified by its catalog\n`key`). The server validates the key resolves to an on-demand document for the KYB's\ncountry, creates a `Standard` document request from it, and notifies the client.",
|
|
11106
|
+
"required": [
|
|
11107
|
+
"documentKey"
|
|
11108
|
+
],
|
|
11109
|
+
"properties": {
|
|
11110
|
+
"body": {
|
|
11111
|
+
"type": "string",
|
|
11112
|
+
"description": "Optional email body; defaults to a generated body referencing the document.",
|
|
11113
|
+
"nullable": true
|
|
11114
|
+
},
|
|
11115
|
+
"description": {
|
|
11116
|
+
"type": "string",
|
|
11117
|
+
"description": "Optional description shown to the client; defaults to a generated message.",
|
|
11118
|
+
"nullable": true
|
|
11119
|
+
},
|
|
11120
|
+
"documentKey": {
|
|
11121
|
+
"type": "string",
|
|
11122
|
+
"description": "Catalog `key` of the on-demand document to request (must be on-demand for this country)."
|
|
11123
|
+
},
|
|
11124
|
+
"recipientEmail": {
|
|
11125
|
+
"type": "string",
|
|
11126
|
+
"description": "Optional recipient override; defaults to the business contact email.",
|
|
11127
|
+
"nullable": true
|
|
11128
|
+
},
|
|
11129
|
+
"subject": {
|
|
11130
|
+
"type": "string",
|
|
11131
|
+
"description": "Optional email subject; defaults to a generated subject referencing the document.",
|
|
11132
|
+
"nullable": true
|
|
11133
|
+
}
|
|
11134
|
+
}
|
|
11135
|
+
},
|
|
8579
11136
|
"RequiredDocumentField": {
|
|
8580
11137
|
"type": "string",
|
|
8581
11138
|
"enum": [
|
|
@@ -8590,7 +11147,8 @@
|
|
|
8590
11147
|
"state",
|
|
8591
11148
|
"postcode",
|
|
8592
11149
|
"country",
|
|
8593
|
-
"socialSecurityNumber"
|
|
11150
|
+
"socialSecurityNumber",
|
|
11151
|
+
"expirationDate"
|
|
8594
11152
|
]
|
|
8595
11153
|
},
|
|
8596
11154
|
"ResultControlOperation": {
|
|
@@ -8699,6 +11257,13 @@
|
|
|
8699
11257
|
}
|
|
8700
11258
|
}
|
|
8701
11259
|
},
|
|
11260
|
+
"RiskFactorKeys": {
|
|
11261
|
+
"type": "array",
|
|
11262
|
+
"items": {
|
|
11263
|
+
"type": "string"
|
|
11264
|
+
},
|
|
11265
|
+
"description": "Snapshot of the FORM factor keys matched for a form step (JSONB column)."
|
|
11266
|
+
},
|
|
8702
11267
|
"RiskLevel": {
|
|
8703
11268
|
"type": "string",
|
|
8704
11269
|
"enum": [
|
|
@@ -8729,6 +11294,87 @@
|
|
|
8729
11294
|
}
|
|
8730
11295
|
}
|
|
8731
11296
|
},
|
|
11297
|
+
"RiskTagSource": {
|
|
11298
|
+
"oneOf": [
|
|
11299
|
+
{
|
|
11300
|
+
"type": "object",
|
|
11301
|
+
"description": "Human-asserted; only a human clears it. Never auto-retracted.",
|
|
11302
|
+
"required": [
|
|
11303
|
+
"kind"
|
|
11304
|
+
],
|
|
11305
|
+
"properties": {
|
|
11306
|
+
"by": {
|
|
11307
|
+
"type": "string",
|
|
11308
|
+
"format": "uuid",
|
|
11309
|
+
"nullable": true
|
|
11310
|
+
},
|
|
11311
|
+
"kind": {
|
|
11312
|
+
"type": "string",
|
|
11313
|
+
"enum": [
|
|
11314
|
+
"manual"
|
|
11315
|
+
]
|
|
11316
|
+
}
|
|
11317
|
+
}
|
|
11318
|
+
},
|
|
11319
|
+
{
|
|
11320
|
+
"type": "object",
|
|
11321
|
+
"description": "Answer-driven form emission; recomputed at form submit.",
|
|
11322
|
+
"required": [
|
|
11323
|
+
"field",
|
|
11324
|
+
"kind"
|
|
11325
|
+
],
|
|
11326
|
+
"properties": {
|
|
11327
|
+
"field": {
|
|
11328
|
+
"type": "string"
|
|
11329
|
+
},
|
|
11330
|
+
"kind": {
|
|
11331
|
+
"type": "string",
|
|
11332
|
+
"enum": [
|
|
11333
|
+
"formAnswer"
|
|
11334
|
+
]
|
|
11335
|
+
}
|
|
11336
|
+
}
|
|
11337
|
+
},
|
|
11338
|
+
{
|
|
11339
|
+
"type": "object",
|
|
11340
|
+
"description": "`AssignRiskTags` action node; recomputed by forward re-derivation.",
|
|
11341
|
+
"required": [
|
|
11342
|
+
"node_id",
|
|
11343
|
+
"kind"
|
|
11344
|
+
],
|
|
11345
|
+
"properties": {
|
|
11346
|
+
"kind": {
|
|
11347
|
+
"type": "string",
|
|
11348
|
+
"enum": [
|
|
11349
|
+
"action"
|
|
11350
|
+
]
|
|
11351
|
+
},
|
|
11352
|
+
"node_id": {
|
|
11353
|
+
"type": "string",
|
|
11354
|
+
"format": "uuid"
|
|
11355
|
+
}
|
|
11356
|
+
}
|
|
11357
|
+
},
|
|
11358
|
+
{
|
|
11359
|
+
"type": "object",
|
|
11360
|
+
"required": [
|
|
11361
|
+
"kind"
|
|
11362
|
+
],
|
|
11363
|
+
"properties": {
|
|
11364
|
+
"kind": {
|
|
11365
|
+
"type": "string",
|
|
11366
|
+
"enum": [
|
|
11367
|
+
"legacy"
|
|
11368
|
+
]
|
|
11369
|
+
}
|
|
11370
|
+
}
|
|
11371
|
+
}
|
|
11372
|
+
],
|
|
11373
|
+
"description": "Provenance for an `AssignedRiskTag` derivation. Determines whether a machine-driven\nrecompute is allowed to retract it (`Manual`/`Legacy` are sticky; only a human clears them).",
|
|
11374
|
+
"discriminator": {
|
|
11375
|
+
"propertyName": "kind"
|
|
11376
|
+
}
|
|
11377
|
+
},
|
|
8732
11378
|
"Role": {
|
|
8733
11379
|
"type": "string",
|
|
8734
11380
|
"enum": [
|
|
@@ -8742,7 +11388,8 @@
|
|
|
8742
11388
|
"PLATFORM_OPERATOR",
|
|
8743
11389
|
"PLATFORM_SALES",
|
|
8744
11390
|
"PLATFORM_ADMIN",
|
|
8745
|
-
"SDK"
|
|
11391
|
+
"SDK",
|
|
11392
|
+
"SYSTEM"
|
|
8746
11393
|
]
|
|
8747
11394
|
},
|
|
8748
11395
|
"RotationThresholds": {
|
|
@@ -8773,91 +11420,122 @@
|
|
|
8773
11420
|
}
|
|
8774
11421
|
}
|
|
8775
11422
|
},
|
|
8776
|
-
"
|
|
11423
|
+
"SdkAmlScreenQuery": {
|
|
8777
11424
|
"type": "object",
|
|
11425
|
+
"description": "Every meaningful OpenSanctions/Yente search field as an optional string. Result-only\nfields (sanctions, topics, position occupancies) are not exposed as inputs.",
|
|
8778
11426
|
"properties": {
|
|
8779
|
-
"
|
|
8780
|
-
"
|
|
8781
|
-
{
|
|
8782
|
-
"$ref": "#/components/schemas/MatchDetail"
|
|
8783
|
-
}
|
|
8784
|
-
],
|
|
11427
|
+
"address": {
|
|
11428
|
+
"type": "string",
|
|
8785
11429
|
"nullable": true
|
|
8786
11430
|
},
|
|
8787
|
-
"
|
|
8788
|
-
"
|
|
8789
|
-
|
|
8790
|
-
|
|
8791
|
-
|
|
8792
|
-
|
|
11431
|
+
"alias": {
|
|
11432
|
+
"type": "string",
|
|
11433
|
+
"nullable": true
|
|
11434
|
+
},
|
|
11435
|
+
"birthCountry": {
|
|
11436
|
+
"type": "string",
|
|
11437
|
+
"nullable": true
|
|
11438
|
+
},
|
|
11439
|
+
"birthDate": {
|
|
11440
|
+
"type": "string",
|
|
11441
|
+
"nullable": true
|
|
11442
|
+
},
|
|
11443
|
+
"birthPlace": {
|
|
11444
|
+
"type": "string",
|
|
8793
11445
|
"nullable": true
|
|
8794
11446
|
},
|
|
8795
11447
|
"country": {
|
|
8796
|
-
"
|
|
8797
|
-
|
|
8798
|
-
|
|
8799
|
-
|
|
8800
|
-
|
|
11448
|
+
"type": "string",
|
|
11449
|
+
"nullable": true
|
|
11450
|
+
},
|
|
11451
|
+
"email": {
|
|
11452
|
+
"type": "string",
|
|
11453
|
+
"nullable": true
|
|
11454
|
+
},
|
|
11455
|
+
"firstName": {
|
|
11456
|
+
"type": "string",
|
|
11457
|
+
"nullable": true
|
|
11458
|
+
},
|
|
11459
|
+
"gender": {
|
|
11460
|
+
"type": "string",
|
|
11461
|
+
"nullable": true
|
|
11462
|
+
},
|
|
11463
|
+
"lastName": {
|
|
11464
|
+
"type": "string",
|
|
11465
|
+
"nullable": true
|
|
11466
|
+
},
|
|
11467
|
+
"middleName": {
|
|
11468
|
+
"type": "string",
|
|
8801
11469
|
"nullable": true
|
|
8802
11470
|
},
|
|
8803
|
-
"
|
|
8804
|
-
"
|
|
8805
|
-
{
|
|
8806
|
-
"$ref": "#/components/schemas/MatchDetail"
|
|
8807
|
-
}
|
|
8808
|
-
],
|
|
11471
|
+
"name": {
|
|
11472
|
+
"type": "string",
|
|
8809
11473
|
"nullable": true
|
|
8810
11474
|
},
|
|
8811
|
-
"
|
|
8812
|
-
"
|
|
8813
|
-
{
|
|
8814
|
-
"$ref": "#/components/schemas/MatchDetail"
|
|
8815
|
-
}
|
|
8816
|
-
],
|
|
11475
|
+
"nationality": {
|
|
11476
|
+
"type": "string",
|
|
8817
11477
|
"nullable": true
|
|
8818
11478
|
},
|
|
8819
|
-
"
|
|
8820
|
-
"
|
|
8821
|
-
{
|
|
8822
|
-
"$ref": "#/components/schemas/MatchDetail"
|
|
8823
|
-
}
|
|
8824
|
-
],
|
|
11479
|
+
"passportNumber": {
|
|
11480
|
+
"type": "string",
|
|
8825
11481
|
"nullable": true
|
|
8826
11482
|
},
|
|
8827
|
-
"
|
|
8828
|
-
"
|
|
8829
|
-
{
|
|
8830
|
-
"$ref": "#/components/schemas/MatchDetail"
|
|
8831
|
-
}
|
|
8832
|
-
],
|
|
11483
|
+
"phone": {
|
|
11484
|
+
"type": "string",
|
|
8833
11485
|
"nullable": true
|
|
8834
11486
|
},
|
|
8835
|
-
"
|
|
8836
|
-
"
|
|
8837
|
-
{
|
|
8838
|
-
"$ref": "#/components/schemas/MatchDetail"
|
|
8839
|
-
}
|
|
8840
|
-
],
|
|
11487
|
+
"position": {
|
|
11488
|
+
"type": "string",
|
|
8841
11489
|
"nullable": true
|
|
8842
11490
|
},
|
|
8843
|
-
"
|
|
8844
|
-
"
|
|
8845
|
-
{
|
|
8846
|
-
"$ref": "#/components/schemas/MatchDetail"
|
|
8847
|
-
}
|
|
8848
|
-
],
|
|
11491
|
+
"registrationNumber": {
|
|
11492
|
+
"type": "string",
|
|
8849
11493
|
"nullable": true
|
|
8850
11494
|
},
|
|
8851
|
-
"
|
|
8852
|
-
"
|
|
8853
|
-
{
|
|
8854
|
-
"$ref": "#/components/schemas/MatchDetail"
|
|
8855
|
-
}
|
|
8856
|
-
],
|
|
11495
|
+
"title": {
|
|
11496
|
+
"type": "string",
|
|
8857
11497
|
"nullable": true
|
|
8858
11498
|
}
|
|
8859
11499
|
}
|
|
8860
11500
|
},
|
|
11501
|
+
"SdkAmlScreenRequest": {
|
|
11502
|
+
"type": "object",
|
|
11503
|
+
"required": [
|
|
11504
|
+
"query"
|
|
11505
|
+
],
|
|
11506
|
+
"properties": {
|
|
11507
|
+
"query": {
|
|
11508
|
+
"$ref": "#/components/schemas/SdkAmlScreenQuery"
|
|
11509
|
+
},
|
|
11510
|
+
"subjectType": {
|
|
11511
|
+
"$ref": "#/components/schemas/AmlSubjectType"
|
|
11512
|
+
}
|
|
11513
|
+
}
|
|
11514
|
+
},
|
|
11515
|
+
"SdkAmlScreenResponse": {
|
|
11516
|
+
"type": "object",
|
|
11517
|
+
"required": [
|
|
11518
|
+
"format",
|
|
11519
|
+
"provider",
|
|
11520
|
+
"entities"
|
|
11521
|
+
],
|
|
11522
|
+
"properties": {
|
|
11523
|
+
"entities": {
|
|
11524
|
+
"type": "array",
|
|
11525
|
+
"items": {
|
|
11526
|
+
"$ref": "#/components/schemas/AmlEntityResponse"
|
|
11527
|
+
}
|
|
11528
|
+
},
|
|
11529
|
+
"format": {
|
|
11530
|
+
"type": "string",
|
|
11531
|
+
"description": "Entity format marker, currently always `\"ftm/1\"` (FollowTheMoney)."
|
|
11532
|
+
},
|
|
11533
|
+
"provider": {
|
|
11534
|
+
"type": "string",
|
|
11535
|
+
"description": "The screening provider that produced these results (e.g. `\"yente\"`, `\"worldcheck\"`).\nField richness is provider-dependent — see the SDK docs for coverage differences."
|
|
11536
|
+
}
|
|
11537
|
+
}
|
|
11538
|
+
},
|
|
8861
11539
|
"SdkCreateVerificationRequestPayload": {
|
|
8862
11540
|
"allOf": [
|
|
8863
11541
|
{
|
|
@@ -9006,21 +11684,9 @@
|
|
|
9006
11684
|
"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.",
|
|
9007
11685
|
"nullable": true
|
|
9008
11686
|
},
|
|
9009
|
-
"primaryColor": {
|
|
9010
|
-
"type": "string",
|
|
9011
|
-
"nullable": true
|
|
9012
|
-
},
|
|
9013
|
-
"profileImage": {
|
|
9014
|
-
"type": "string",
|
|
9015
|
-
"nullable": true
|
|
9016
|
-
},
|
|
9017
11687
|
"published": {
|
|
9018
11688
|
"type": "boolean"
|
|
9019
11689
|
},
|
|
9020
|
-
"secondaryColor": {
|
|
9021
|
-
"type": "string",
|
|
9022
|
-
"nullable": true
|
|
9023
|
-
},
|
|
9024
11690
|
"skipSignedAccess": {
|
|
9025
11691
|
"type": "boolean"
|
|
9026
11692
|
},
|
|
@@ -9299,10 +11965,189 @@
|
|
|
9299
11965
|
}
|
|
9300
11966
|
}
|
|
9301
11967
|
},
|
|
11968
|
+
"Theme": {
|
|
11969
|
+
"type": "object",
|
|
11970
|
+
"description": "Flat theme API response. Logo/font fields hold raw S3 keys when built from `ThemeData`; the\nhandler swaps them for presigned URLs before returning.",
|
|
11971
|
+
"required": [
|
|
11972
|
+
"id",
|
|
11973
|
+
"name",
|
|
11974
|
+
"isDefault"
|
|
11975
|
+
],
|
|
11976
|
+
"properties": {
|
|
11977
|
+
"borderRadius": {
|
|
11978
|
+
"type": "string",
|
|
11979
|
+
"nullable": true
|
|
11980
|
+
},
|
|
11981
|
+
"createdAt": {
|
|
11982
|
+
"type": "string",
|
|
11983
|
+
"format": "date-time",
|
|
11984
|
+
"nullable": true
|
|
11985
|
+
},
|
|
11986
|
+
"dark": {
|
|
11987
|
+
"allOf": [
|
|
11988
|
+
{
|
|
11989
|
+
"$ref": "#/components/schemas/ThemeColorSetResponse"
|
|
11990
|
+
}
|
|
11991
|
+
],
|
|
11992
|
+
"nullable": true
|
|
11993
|
+
},
|
|
11994
|
+
"fontFamily": {
|
|
11995
|
+
"type": "string",
|
|
11996
|
+
"nullable": true
|
|
11997
|
+
},
|
|
11998
|
+
"fontLicense": {
|
|
11999
|
+
"allOf": [
|
|
12000
|
+
{
|
|
12001
|
+
"$ref": "#/components/schemas/ThemeFontLicense"
|
|
12002
|
+
}
|
|
12003
|
+
],
|
|
12004
|
+
"nullable": true
|
|
12005
|
+
},
|
|
12006
|
+
"fontUrl": {
|
|
12007
|
+
"type": "string",
|
|
12008
|
+
"description": "Presigned read URL for the uploaded font (or the raw S3 key before presigning).",
|
|
12009
|
+
"nullable": true
|
|
12010
|
+
},
|
|
12011
|
+
"id": {
|
|
12012
|
+
"type": "string",
|
|
12013
|
+
"format": "uuid"
|
|
12014
|
+
},
|
|
12015
|
+
"isDefault": {
|
|
12016
|
+
"type": "boolean"
|
|
12017
|
+
},
|
|
12018
|
+
"light": {
|
|
12019
|
+
"allOf": [
|
|
12020
|
+
{
|
|
12021
|
+
"$ref": "#/components/schemas/ThemeColorSetResponse"
|
|
12022
|
+
}
|
|
12023
|
+
],
|
|
12024
|
+
"nullable": true
|
|
12025
|
+
},
|
|
12026
|
+
"name": {
|
|
12027
|
+
"type": "string"
|
|
12028
|
+
},
|
|
12029
|
+
"updatedAt": {
|
|
12030
|
+
"type": "string",
|
|
12031
|
+
"format": "date-time",
|
|
12032
|
+
"nullable": true
|
|
12033
|
+
}
|
|
12034
|
+
}
|
|
12035
|
+
},
|
|
12036
|
+
"ThemeColorSetResponse": {
|
|
12037
|
+
"type": "object",
|
|
12038
|
+
"description": "Per-mode color set as returned by the API (logo resolved to a presigned URL).",
|
|
12039
|
+
"properties": {
|
|
12040
|
+
"accent": {
|
|
12041
|
+
"type": "string",
|
|
12042
|
+
"nullable": true
|
|
12043
|
+
},
|
|
12044
|
+
"background": {
|
|
12045
|
+
"type": "string",
|
|
12046
|
+
"nullable": true
|
|
12047
|
+
},
|
|
12048
|
+
"card": {
|
|
12049
|
+
"type": "string",
|
|
12050
|
+
"nullable": true
|
|
12051
|
+
},
|
|
12052
|
+
"logoUrl": {
|
|
12053
|
+
"type": "string",
|
|
12054
|
+
"description": "Presigned read URL for this mode's logo (or the raw S3 key before the handler presigns it).",
|
|
12055
|
+
"nullable": true
|
|
12056
|
+
}
|
|
12057
|
+
}
|
|
12058
|
+
},
|
|
12059
|
+
"ThemeFontLicense": {
|
|
12060
|
+
"type": "object",
|
|
12061
|
+
"description": "Attestation that the org has the right to use the uploaded font.",
|
|
12062
|
+
"required": [
|
|
12063
|
+
"attested"
|
|
12064
|
+
],
|
|
12065
|
+
"properties": {
|
|
12066
|
+
"attested": {
|
|
12067
|
+
"type": "boolean"
|
|
12068
|
+
},
|
|
12069
|
+
"attestedAt": {
|
|
12070
|
+
"type": "string",
|
|
12071
|
+
"format": "date-time",
|
|
12072
|
+
"nullable": true
|
|
12073
|
+
},
|
|
12074
|
+
"attestedByIdentityId": {
|
|
12075
|
+
"type": "string",
|
|
12076
|
+
"format": "uuid",
|
|
12077
|
+
"nullable": true
|
|
12078
|
+
}
|
|
12079
|
+
}
|
|
12080
|
+
},
|
|
12081
|
+
"TopupPack": {
|
|
12082
|
+
"type": "object",
|
|
12083
|
+
"description": "A top-up pack: a one-time Stripe Price tagged with `zyphe_type=credit_topup` metadata.\n\nProduced by [`list_topup_prices`] from Stripe one-time prices whose product is active\nand whose metadata carries `zyphe_type=credit_topup`. `credits` and `validity_months`\nare parsed from price metadata (`credits`, `validity_months`).\n\n[`list_topup_prices`]: https://docs.stripe.com/api/prices/list",
|
|
12084
|
+
"required": [
|
|
12085
|
+
"priceId",
|
|
12086
|
+
"name",
|
|
12087
|
+
"credits",
|
|
12088
|
+
"amountCents",
|
|
12089
|
+
"currency"
|
|
12090
|
+
],
|
|
12091
|
+
"properties": {
|
|
12092
|
+
"amountCents": {
|
|
12093
|
+
"type": "integer",
|
|
12094
|
+
"format": "int64",
|
|
12095
|
+
"description": "Price amount in the smallest currency unit (e.g. cents)"
|
|
12096
|
+
},
|
|
12097
|
+
"credits": {
|
|
12098
|
+
"type": "integer",
|
|
12099
|
+
"format": "int64",
|
|
12100
|
+
"description": "Number of credits granted by this pack, from metadata `credits`"
|
|
12101
|
+
},
|
|
12102
|
+
"currency": {
|
|
12103
|
+
"$ref": "#/components/schemas/Currency"
|
|
12104
|
+
},
|
|
12105
|
+
"name": {
|
|
12106
|
+
"type": "string",
|
|
12107
|
+
"description": "Display name: nickname > product name > price ID"
|
|
12108
|
+
},
|
|
12109
|
+
"priceId": {
|
|
12110
|
+
"type": "string",
|
|
12111
|
+
"description": "The Stripe price ID (e.g., \"price_xxx\")"
|
|
12112
|
+
},
|
|
12113
|
+
"validityMonths": {
|
|
12114
|
+
"type": "integer",
|
|
12115
|
+
"format": "int32",
|
|
12116
|
+
"description": "Optional validity window (in months) for the granted credits, from metadata `validity_months`",
|
|
12117
|
+
"nullable": true,
|
|
12118
|
+
"minimum": 0
|
|
12119
|
+
}
|
|
12120
|
+
}
|
|
12121
|
+
},
|
|
12122
|
+
"TopupPacksResponse": {
|
|
12123
|
+
"type": "object",
|
|
12124
|
+
"description": "Response for the top-up pack catalog endpoint (`GET .../billing/topup-packs`).",
|
|
12125
|
+
"required": [
|
|
12126
|
+
"packs"
|
|
12127
|
+
],
|
|
12128
|
+
"properties": {
|
|
12129
|
+
"packs": {
|
|
12130
|
+
"type": "array",
|
|
12131
|
+
"items": {
|
|
12132
|
+
"$ref": "#/components/schemas/TopupPack"
|
|
12133
|
+
}
|
|
12134
|
+
}
|
|
12135
|
+
}
|
|
12136
|
+
},
|
|
12137
|
+
"TriggerReminderResponse": {
|
|
12138
|
+
"type": "object",
|
|
12139
|
+
"required": [
|
|
12140
|
+
"enqueued"
|
|
12141
|
+
],
|
|
12142
|
+
"properties": {
|
|
12143
|
+
"enqueued": {
|
|
12144
|
+
"type": "boolean"
|
|
12145
|
+
}
|
|
12146
|
+
}
|
|
12147
|
+
},
|
|
9302
12148
|
"UboDefinition": {
|
|
9303
12149
|
"type": "object",
|
|
9304
12150
|
"required": [
|
|
9305
|
-
"emailAddress",
|
|
9306
12151
|
"firstName",
|
|
9307
12152
|
"lastName",
|
|
9308
12153
|
"dateOfBirth",
|
|
@@ -9317,7 +12162,9 @@
|
|
|
9317
12162
|
"type": "string"
|
|
9318
12163
|
},
|
|
9319
12164
|
"emailAddress": {
|
|
9320
|
-
"type": "string"
|
|
12165
|
+
"type": "string",
|
|
12166
|
+
"description": "Email of the UBO. `None` for a name-only UBO added without an email: such a UBO is\nAML-screened by name and is never sent a KYC invitation.",
|
|
12167
|
+
"nullable": true
|
|
9321
12168
|
},
|
|
9322
12169
|
"firstName": {
|
|
9323
12170
|
"type": "string"
|
|
@@ -9325,6 +12172,12 @@
|
|
|
9325
12172
|
"gender": {
|
|
9326
12173
|
"type": "string"
|
|
9327
12174
|
},
|
|
12175
|
+
"id": {
|
|
12176
|
+
"type": "string",
|
|
12177
|
+
"format": "uuid",
|
|
12178
|
+
"description": "Stable identifier for this UBO within the KYB result. Assigned on creation\n(submission or post-submission add) and used to address the UBO for removal /\nname-screening instead of a positional index. `None` only for legacy entries\ncreated before this field existed.",
|
|
12179
|
+
"nullable": true
|
|
12180
|
+
},
|
|
9328
12181
|
"lastName": {
|
|
9329
12182
|
"type": "string"
|
|
9330
12183
|
}
|
|
@@ -9399,7 +12252,7 @@
|
|
|
9399
12252
|
},
|
|
9400
12253
|
"options": {
|
|
9401
12254
|
"type": "object",
|
|
9402
|
-
"description": "
|
|
12255
|
+
"description": "Full WebAuthn `PublicKeyCredentialRequestOptions` for vault unlock.\nFrontends should pass `options.publicKey` directly to\n`navigator.credentials.get({ publicKey })`."
|
|
9403
12256
|
},
|
|
9404
12257
|
"prfSalt": {
|
|
9405
12258
|
"type": "string",
|
|
@@ -9875,6 +12728,58 @@
|
|
|
9875
12728
|
}
|
|
9876
12729
|
}
|
|
9877
12730
|
},
|
|
12731
|
+
"WorkerScenario": {
|
|
12732
|
+
"oneOf": [
|
|
12733
|
+
{
|
|
12734
|
+
"type": "string",
|
|
12735
|
+
"description": "User-initiated verification request via SDK/API.",
|
|
12736
|
+
"enum": [
|
|
12737
|
+
"USER_INITIATED"
|
|
12738
|
+
]
|
|
12739
|
+
},
|
|
12740
|
+
{
|
|
12741
|
+
"type": "object",
|
|
12742
|
+
"required": [
|
|
12743
|
+
"TRIGGERED_BY_WORKER"
|
|
12744
|
+
],
|
|
12745
|
+
"properties": {
|
|
12746
|
+
"TRIGGERED_BY_WORKER": {
|
|
12747
|
+
"$ref": "#/components/schemas/WorkerType"
|
|
12748
|
+
}
|
|
12749
|
+
}
|
|
12750
|
+
},
|
|
12751
|
+
{
|
|
12752
|
+
"type": "string",
|
|
12753
|
+
"description": "Admin-initiated manual review action.",
|
|
12754
|
+
"enum": [
|
|
12755
|
+
"ADMIN_ACTION"
|
|
12756
|
+
]
|
|
12757
|
+
},
|
|
12758
|
+
{
|
|
12759
|
+
"type": "string",
|
|
12760
|
+
"description": "One-click reuse of previous verification data.",
|
|
12761
|
+
"enum": [
|
|
12762
|
+
"ONE_CLICK_REUSE"
|
|
12763
|
+
]
|
|
12764
|
+
}
|
|
12765
|
+
],
|
|
12766
|
+
"description": "The scenario/context that triggered a worker.\n\nThis helps distinguish between different flows that can trigger the same\nworker type (e.g. AML worker triggered by DV vs scheduled refresh)."
|
|
12767
|
+
},
|
|
12768
|
+
"WorkerType": {
|
|
12769
|
+
"type": "string",
|
|
12770
|
+
"description": "Types of background workers that can emit audit events.\n\nThis enum is used in audit event sources and in job records to track\nwhich worker triggered an action (e.g., AML triggered by DV).\n\n`Display` (via `JsonDisplay`) renders the SCREAMING_SNAKE_CASE serde name\n(e.g. `DV`, `ONE_CLICK_FORM`) — the same value shown in `source.workerType`.",
|
|
12771
|
+
"enum": [
|
|
12772
|
+
"DV",
|
|
12773
|
+
"LIVENESS",
|
|
12774
|
+
"AML",
|
|
12775
|
+
"POA",
|
|
12776
|
+
"SPID",
|
|
12777
|
+
"FORM",
|
|
12778
|
+
"ONE_CLICK_DV",
|
|
12779
|
+
"ONE_CLICK_FORM",
|
|
12780
|
+
"MANUAL_REVIEW"
|
|
12781
|
+
]
|
|
12782
|
+
},
|
|
9878
12783
|
"WorkflowContext": {
|
|
9879
12784
|
"type": "object",
|
|
9880
12785
|
"description": "Context data available to JDM rules during flow evaluation.\n\nThis structure is serialized to JSON and passed to the Zen Engine for evaluation.\nJDM rules can access any field to make routing decisions.\n\n# Example JDM Access Patterns\n\nIn JDM rules, you can access:\n- `identity.email` - User's email address\n- `jdmData.my_step_slug.data.issuingCountry` - Output from a previous step\n- `customData.someKey` - Custom data passed during flow\n\n# Serialization\n\nFields are serialized with camelCase naming to match JDM conventions.",
|
|
@@ -10378,6 +13283,12 @@
|
|
|
10378
13283
|
{
|
|
10379
13284
|
"name": "SDK: Organizations"
|
|
10380
13285
|
},
|
|
13286
|
+
{
|
|
13287
|
+
"name": "SDK: KYB"
|
|
13288
|
+
},
|
|
13289
|
+
{
|
|
13290
|
+
"name": "SDK: AML"
|
|
13291
|
+
},
|
|
10381
13292
|
{
|
|
10382
13293
|
"name": "API Keys"
|
|
10383
13294
|
}
|