@talonic/docs 0.21.16 → 0.21.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/content.js +1701 -122
- package/dist/index.js +25 -7
- package/dist/index.js.map +1 -1
- package/dist/seo.js +2795 -654
- package/openapi.json +2773 -650
- package/package.json +1 -1
package/openapi.json
CHANGED
|
@@ -180,6 +180,10 @@
|
|
|
180
180
|
{
|
|
181
181
|
"name": "Provenance",
|
|
182
182
|
"description": "Document-level provenance — deterministic (subject, predicate, object) claims synthesized from captured fields and spans, each carrying its evidence quote and grounded flag."
|
|
183
|
+
},
|
|
184
|
+
{
|
|
185
|
+
"name": "AI Policy",
|
|
186
|
+
"description": "Tenant AI policy and model routing. Read the effective policy, replace or patch it, list every model and model class with reachability, inspect the operation catalog, dry-run a routing decision, and read the policy's own version history. The mandatory constraints (region pin, provider allowlist, model denylist) are enforced at routing time for every call; a policy that leaves an operation without a compliant route makes that operation fail closed rather than reach a provider the policy forbids. All routes require a workspace-scoped API key.\n"
|
|
183
187
|
}
|
|
184
188
|
],
|
|
185
189
|
"paths": {
|
|
@@ -1009,6 +1013,192 @@
|
|
|
1009
1013
|
}
|
|
1010
1014
|
}
|
|
1011
1015
|
},
|
|
1016
|
+
"/v1/documents/upload-session": {
|
|
1017
|
+
"post": {
|
|
1018
|
+
"operationId": "createUploadSession",
|
|
1019
|
+
"summary": "Create a browser-handoff upload session",
|
|
1020
|
+
"description": "Creates a pending document row plus a short-lived upload token and\nreturns a browser `upload_url` for it. This is the first half of the\nbrowser-handoff upload pair used by the hosted MCP connector: an\nagent creates the session, the user opens `upload_url` in a browser\nand picks the file, and the browser posts it to\n`POST /v1/upload/{token}`.\n\n**Auth is asymmetric across the pair.** This route requires an\nOAuth 2.1 bearer token (the connector OAuth session) and REJECTS\n`tlnc_` API keys with `401`. The upload route is unauthenticated\nbecause the short-lived token IS the credential. The token expires\nafter 15 minutes by default and is single-use.\n\nThe created document is targeted at extraction only\n(`ingestion_target: extract`): once uploaded, call `POST /v1/extract`\nwith the returned `document_id`.\n",
|
|
1021
|
+
"tags": [
|
|
1022
|
+
"Documents"
|
|
1023
|
+
],
|
|
1024
|
+
"security": [
|
|
1025
|
+
{
|
|
1026
|
+
"OAuthBearerAuth": []
|
|
1027
|
+
}
|
|
1028
|
+
],
|
|
1029
|
+
"requestBody": {
|
|
1030
|
+
"required": true,
|
|
1031
|
+
"content": {
|
|
1032
|
+
"application/json": {
|
|
1033
|
+
"schema": {
|
|
1034
|
+
"type": "object",
|
|
1035
|
+
"required": [
|
|
1036
|
+
"filename"
|
|
1037
|
+
],
|
|
1038
|
+
"properties": {
|
|
1039
|
+
"filename": {
|
|
1040
|
+
"type": "string",
|
|
1041
|
+
"maxLength": 512,
|
|
1042
|
+
"description": "Filename of the file the user will upload.",
|
|
1043
|
+
"example": "invoice-2026-04.pdf"
|
|
1044
|
+
}
|
|
1045
|
+
}
|
|
1046
|
+
}
|
|
1047
|
+
}
|
|
1048
|
+
}
|
|
1049
|
+
},
|
|
1050
|
+
"responses": {
|
|
1051
|
+
"201": {
|
|
1052
|
+
"description": "Upload session created.",
|
|
1053
|
+
"content": {
|
|
1054
|
+
"application/json": {
|
|
1055
|
+
"schema": {
|
|
1056
|
+
"type": "object",
|
|
1057
|
+
"required": [
|
|
1058
|
+
"document_id",
|
|
1059
|
+
"upload_url",
|
|
1060
|
+
"expires_at"
|
|
1061
|
+
],
|
|
1062
|
+
"properties": {
|
|
1063
|
+
"document_id": {
|
|
1064
|
+
"type": "string",
|
|
1065
|
+
"format": "uuid",
|
|
1066
|
+
"description": "Pending document row awaiting the upload.",
|
|
1067
|
+
"example": "f0e1d2c3-b4a5-9687-8765-432109876543"
|
|
1068
|
+
},
|
|
1069
|
+
"upload_url": {
|
|
1070
|
+
"type": "string",
|
|
1071
|
+
"description": "Browser URL the user opens to pick and upload the file.",
|
|
1072
|
+
"example": "https://app.talonic.com/u/1f2e3d4c-5b6a-7980-abcd-ef0123456789"
|
|
1073
|
+
},
|
|
1074
|
+
"expires_at": {
|
|
1075
|
+
"type": "string",
|
|
1076
|
+
"format": "date-time",
|
|
1077
|
+
"description": "Token expiry (15 minutes from creation by default)."
|
|
1078
|
+
}
|
|
1079
|
+
}
|
|
1080
|
+
}
|
|
1081
|
+
}
|
|
1082
|
+
}
|
|
1083
|
+
},
|
|
1084
|
+
"400": {
|
|
1085
|
+
"$ref": "#/components/responses/BadRequest"
|
|
1086
|
+
},
|
|
1087
|
+
"401": {
|
|
1088
|
+
"description": "Missing or invalid OAuth bearer token, or a `tlnc_` API key was used (not accepted on this route).",
|
|
1089
|
+
"content": {
|
|
1090
|
+
"application/json": {
|
|
1091
|
+
"schema": {
|
|
1092
|
+
"$ref": "#/components/schemas/ErrorResponse"
|
|
1093
|
+
}
|
|
1094
|
+
}
|
|
1095
|
+
}
|
|
1096
|
+
},
|
|
1097
|
+
"429": {
|
|
1098
|
+
"$ref": "#/components/responses/RateLimitExceeded"
|
|
1099
|
+
}
|
|
1100
|
+
}
|
|
1101
|
+
}
|
|
1102
|
+
},
|
|
1103
|
+
"/v1/upload/{token}": {
|
|
1104
|
+
"post": {
|
|
1105
|
+
"operationId": "uploadWithToken",
|
|
1106
|
+
"summary": "Upload a file against an upload-session token",
|
|
1107
|
+
"description": "Accepts the file for an upload session. This route is public: no\n`Authorization` header is required or read, because the single-use,\nshort-lived session token in the path IS the credential. The token is\nclaimed atomically, so a second request with the same token gets\n`404` even if it races the first.\n\nSend the file as `multipart/form-data` in the `file` field. The\ndefault size cap is 500 MB. On success the document is stored and\nextraction is enqueued; the returned `status` is normally `queued`\n(`uploaded` when the queue is temporarily unavailable, in which case\n`POST /v1/extract` still processes the document inline).\n",
|
|
1108
|
+
"tags": [
|
|
1109
|
+
"Documents"
|
|
1110
|
+
],
|
|
1111
|
+
"security": [],
|
|
1112
|
+
"parameters": [
|
|
1113
|
+
{
|
|
1114
|
+
"name": "token",
|
|
1115
|
+
"in": "path",
|
|
1116
|
+
"required": true,
|
|
1117
|
+
"schema": {
|
|
1118
|
+
"type": "string",
|
|
1119
|
+
"format": "uuid"
|
|
1120
|
+
},
|
|
1121
|
+
"description": "Single-use upload token minted by `POST /v1/documents/upload-session`."
|
|
1122
|
+
}
|
|
1123
|
+
],
|
|
1124
|
+
"requestBody": {
|
|
1125
|
+
"required": true,
|
|
1126
|
+
"content": {
|
|
1127
|
+
"multipart/form-data": {
|
|
1128
|
+
"schema": {
|
|
1129
|
+
"type": "object",
|
|
1130
|
+
"required": [
|
|
1131
|
+
"file"
|
|
1132
|
+
],
|
|
1133
|
+
"properties": {
|
|
1134
|
+
"file": {
|
|
1135
|
+
"type": "string",
|
|
1136
|
+
"format": "binary",
|
|
1137
|
+
"description": "The file to upload (500 MB default cap)."
|
|
1138
|
+
}
|
|
1139
|
+
}
|
|
1140
|
+
}
|
|
1141
|
+
}
|
|
1142
|
+
}
|
|
1143
|
+
},
|
|
1144
|
+
"responses": {
|
|
1145
|
+
"201": {
|
|
1146
|
+
"description": "File accepted and extraction enqueued.",
|
|
1147
|
+
"content": {
|
|
1148
|
+
"application/json": {
|
|
1149
|
+
"schema": {
|
|
1150
|
+
"type": "object",
|
|
1151
|
+
"required": [
|
|
1152
|
+
"document_id",
|
|
1153
|
+
"status",
|
|
1154
|
+
"filename"
|
|
1155
|
+
],
|
|
1156
|
+
"properties": {
|
|
1157
|
+
"document_id": {
|
|
1158
|
+
"type": "string",
|
|
1159
|
+
"format": "uuid",
|
|
1160
|
+
"example": "f0e1d2c3-b4a5-9687-8765-432109876543"
|
|
1161
|
+
},
|
|
1162
|
+
"status": {
|
|
1163
|
+
"type": "string",
|
|
1164
|
+
"description": "Document status after upload, normally `queued`.",
|
|
1165
|
+
"example": "queued"
|
|
1166
|
+
},
|
|
1167
|
+
"filename": {
|
|
1168
|
+
"type": "string",
|
|
1169
|
+
"example": "invoice-2026-04.pdf"
|
|
1170
|
+
}
|
|
1171
|
+
}
|
|
1172
|
+
}
|
|
1173
|
+
}
|
|
1174
|
+
}
|
|
1175
|
+
},
|
|
1176
|
+
"400": {
|
|
1177
|
+
"description": "No file was included in the multipart body.",
|
|
1178
|
+
"content": {
|
|
1179
|
+
"application/json": {
|
|
1180
|
+
"schema": {
|
|
1181
|
+
"$ref": "#/components/schemas/ErrorResponse"
|
|
1182
|
+
}
|
|
1183
|
+
}
|
|
1184
|
+
}
|
|
1185
|
+
},
|
|
1186
|
+
"404": {
|
|
1187
|
+
"description": "Upload token not found, expired, or already used.",
|
|
1188
|
+
"content": {
|
|
1189
|
+
"application/json": {
|
|
1190
|
+
"schema": {
|
|
1191
|
+
"$ref": "#/components/schemas/ErrorResponse"
|
|
1192
|
+
}
|
|
1193
|
+
}
|
|
1194
|
+
}
|
|
1195
|
+
},
|
|
1196
|
+
"429": {
|
|
1197
|
+
"$ref": "#/components/responses/RateLimitExceeded"
|
|
1198
|
+
}
|
|
1199
|
+
}
|
|
1200
|
+
}
|
|
1201
|
+
},
|
|
1012
1202
|
"/v1/inject-customer-metadata": {
|
|
1013
1203
|
"post": {
|
|
1014
1204
|
"operationId": "injectCustomerMetadata",
|
|
@@ -1729,6 +1919,59 @@
|
|
|
1729
1919
|
}
|
|
1730
1920
|
}
|
|
1731
1921
|
},
|
|
1922
|
+
"patch": {
|
|
1923
|
+
"operationId": "patchSchema",
|
|
1924
|
+
"x-required-scopes": [
|
|
1925
|
+
"write"
|
|
1926
|
+
],
|
|
1927
|
+
"summary": "Update a schema",
|
|
1928
|
+
"description": "Partially update a schema. `name` and `description` are patched\nindependently; omitted keys are left unchanged. If `definition.properties`\nor a non-empty `fields` array is provided, all existing fields are\nreplaced with the new set. `PUT` on this path delegates to the same\nhandler, so both methods accept the same body and behave identically.\nSchemas managed by a Spec document are read-only through the public API\nand return `409 Conflict`.\n",
|
|
1929
|
+
"tags": [
|
|
1930
|
+
"Schemas"
|
|
1931
|
+
],
|
|
1932
|
+
"parameters": [
|
|
1933
|
+
{
|
|
1934
|
+
"$ref": "#/components/parameters/ResourceId"
|
|
1935
|
+
}
|
|
1936
|
+
],
|
|
1937
|
+
"requestBody": {
|
|
1938
|
+
"required": true,
|
|
1939
|
+
"content": {
|
|
1940
|
+
"application/json": {
|
|
1941
|
+
"schema": {
|
|
1942
|
+
"$ref": "#/components/schemas/SchemaUpdateRequest"
|
|
1943
|
+
}
|
|
1944
|
+
}
|
|
1945
|
+
}
|
|
1946
|
+
},
|
|
1947
|
+
"responses": {
|
|
1948
|
+
"200": {
|
|
1949
|
+
"description": "Schema updated.",
|
|
1950
|
+
"content": {
|
|
1951
|
+
"application/json": {
|
|
1952
|
+
"schema": {
|
|
1953
|
+
"$ref": "#/components/schemas/SchemaResponse"
|
|
1954
|
+
}
|
|
1955
|
+
}
|
|
1956
|
+
}
|
|
1957
|
+
},
|
|
1958
|
+
"400": {
|
|
1959
|
+
"$ref": "#/components/responses/BadRequest"
|
|
1960
|
+
},
|
|
1961
|
+
"401": {
|
|
1962
|
+
"$ref": "#/components/responses/Unauthorized"
|
|
1963
|
+
},
|
|
1964
|
+
"404": {
|
|
1965
|
+
"$ref": "#/components/responses/NotFound"
|
|
1966
|
+
},
|
|
1967
|
+
"409": {
|
|
1968
|
+
"$ref": "#/components/responses/Conflict"
|
|
1969
|
+
},
|
|
1970
|
+
"429": {
|
|
1971
|
+
"$ref": "#/components/responses/RateLimitExceeded"
|
|
1972
|
+
}
|
|
1973
|
+
}
|
|
1974
|
+
},
|
|
1732
1975
|
"delete": {
|
|
1733
1976
|
"operationId": "deleteSchema",
|
|
1734
1977
|
"summary": "Delete a schema",
|
|
@@ -3964,47 +4207,154 @@
|
|
|
3964
4207
|
"$ref": "#/components/responses/RateLimitExceeded"
|
|
3965
4208
|
}
|
|
3966
4209
|
}
|
|
3967
|
-
}
|
|
3968
|
-
|
|
3969
|
-
|
|
3970
|
-
|
|
3971
|
-
|
|
3972
|
-
|
|
4210
|
+
},
|
|
4211
|
+
"delete": {
|
|
4212
|
+
"operationId": "clearDeliveryItems",
|
|
4213
|
+
"x-required-scopes": [
|
|
4214
|
+
"write"
|
|
4215
|
+
],
|
|
4216
|
+
"summary": "Bulk-clear the delivery log",
|
|
4217
|
+
"description": "Deletes every delivery attempt record for the tenant matching the\noptional `binding_id` / `destination_id` / `status` filters, the\nsame filters as the list route (no filters clears the whole log).\nThis is a deliberate admin cleanup: dead-letter rows referencing a\ndeleted item are de-linked, not removed. Requires an\norganization-scoped API key.\n",
|
|
3973
4218
|
"tags": [
|
|
3974
4219
|
"Delivery"
|
|
3975
4220
|
],
|
|
3976
4221
|
"parameters": [
|
|
3977
4222
|
{
|
|
3978
|
-
"
|
|
4223
|
+
"in": "query",
|
|
4224
|
+
"name": "binding_id",
|
|
4225
|
+
"schema": {
|
|
4226
|
+
"type": "string",
|
|
4227
|
+
"format": "uuid"
|
|
4228
|
+
}
|
|
4229
|
+
},
|
|
4230
|
+
{
|
|
4231
|
+
"in": "query",
|
|
4232
|
+
"name": "destination_id",
|
|
4233
|
+
"schema": {
|
|
4234
|
+
"type": "string",
|
|
4235
|
+
"format": "uuid"
|
|
4236
|
+
}
|
|
4237
|
+
},
|
|
4238
|
+
{
|
|
4239
|
+
"in": "query",
|
|
4240
|
+
"name": "status",
|
|
4241
|
+
"schema": {
|
|
4242
|
+
"type": "string",
|
|
4243
|
+
"enum": [
|
|
4244
|
+
"in_flight",
|
|
4245
|
+
"succeeded",
|
|
4246
|
+
"failed"
|
|
4247
|
+
]
|
|
4248
|
+
}
|
|
3979
4249
|
}
|
|
3980
4250
|
],
|
|
3981
4251
|
"responses": {
|
|
3982
4252
|
"200": {
|
|
3983
|
-
"description": "
|
|
4253
|
+
"description": "Rows removed.",
|
|
3984
4254
|
"content": {
|
|
3985
4255
|
"application/json": {
|
|
3986
4256
|
"schema": {
|
|
3987
|
-
"
|
|
4257
|
+
"type": "object",
|
|
4258
|
+
"properties": {
|
|
4259
|
+
"deleted": {
|
|
4260
|
+
"type": "integer"
|
|
4261
|
+
}
|
|
4262
|
+
}
|
|
3988
4263
|
}
|
|
3989
4264
|
}
|
|
3990
4265
|
}
|
|
3991
4266
|
},
|
|
4267
|
+
"400": {
|
|
4268
|
+
"$ref": "#/components/responses/BadRequest"
|
|
4269
|
+
},
|
|
3992
4270
|
"401": {
|
|
3993
4271
|
"$ref": "#/components/responses/Unauthorized"
|
|
3994
4272
|
},
|
|
3995
|
-
"404": {
|
|
3996
|
-
"$ref": "#/components/responses/NotFound"
|
|
3997
|
-
},
|
|
3998
4273
|
"429": {
|
|
3999
4274
|
"$ref": "#/components/responses/RateLimitExceeded"
|
|
4000
4275
|
}
|
|
4001
4276
|
}
|
|
4002
4277
|
}
|
|
4003
4278
|
},
|
|
4004
|
-
"/v1/delivery/items/{id}
|
|
4005
|
-
"
|
|
4006
|
-
"operationId": "
|
|
4007
|
-
"summary": "
|
|
4279
|
+
"/v1/delivery/items/{id}": {
|
|
4280
|
+
"get": {
|
|
4281
|
+
"operationId": "getDeliveryItem",
|
|
4282
|
+
"summary": "Get a delivery attempt record",
|
|
4283
|
+
"tags": [
|
|
4284
|
+
"Delivery"
|
|
4285
|
+
],
|
|
4286
|
+
"parameters": [
|
|
4287
|
+
{
|
|
4288
|
+
"$ref": "#/components/parameters/ResourceId"
|
|
4289
|
+
}
|
|
4290
|
+
],
|
|
4291
|
+
"responses": {
|
|
4292
|
+
"200": {
|
|
4293
|
+
"description": "Delivery item detail including request/response bodies.",
|
|
4294
|
+
"content": {
|
|
4295
|
+
"application/json": {
|
|
4296
|
+
"schema": {
|
|
4297
|
+
"$ref": "#/components/schemas/DeliveryItem"
|
|
4298
|
+
}
|
|
4299
|
+
}
|
|
4300
|
+
}
|
|
4301
|
+
},
|
|
4302
|
+
"401": {
|
|
4303
|
+
"$ref": "#/components/responses/Unauthorized"
|
|
4304
|
+
},
|
|
4305
|
+
"404": {
|
|
4306
|
+
"$ref": "#/components/responses/NotFound"
|
|
4307
|
+
},
|
|
4308
|
+
"429": {
|
|
4309
|
+
"$ref": "#/components/responses/RateLimitExceeded"
|
|
4310
|
+
}
|
|
4311
|
+
}
|
|
4312
|
+
},
|
|
4313
|
+
"delete": {
|
|
4314
|
+
"operationId": "deleteDeliveryItem",
|
|
4315
|
+
"x-required-scopes": [
|
|
4316
|
+
"write"
|
|
4317
|
+
],
|
|
4318
|
+
"summary": "Delete a delivery attempt record",
|
|
4319
|
+
"description": "Deletes one delivery attempt record. A dead-letter row referencing\nthe deleted item is de-linked rather than removed. Requires an\norganization-scoped API key.\n",
|
|
4320
|
+
"tags": [
|
|
4321
|
+
"Delivery"
|
|
4322
|
+
],
|
|
4323
|
+
"parameters": [
|
|
4324
|
+
{
|
|
4325
|
+
"$ref": "#/components/parameters/ResourceId"
|
|
4326
|
+
}
|
|
4327
|
+
],
|
|
4328
|
+
"responses": {
|
|
4329
|
+
"200": {
|
|
4330
|
+
"description": "Item deleted.",
|
|
4331
|
+
"content": {
|
|
4332
|
+
"application/json": {
|
|
4333
|
+
"schema": {
|
|
4334
|
+
"$ref": "#/components/schemas/DeletedResponse"
|
|
4335
|
+
}
|
|
4336
|
+
}
|
|
4337
|
+
}
|
|
4338
|
+
},
|
|
4339
|
+
"400": {
|
|
4340
|
+
"$ref": "#/components/responses/BadRequest"
|
|
4341
|
+
},
|
|
4342
|
+
"401": {
|
|
4343
|
+
"$ref": "#/components/responses/Unauthorized"
|
|
4344
|
+
},
|
|
4345
|
+
"404": {
|
|
4346
|
+
"$ref": "#/components/responses/NotFound"
|
|
4347
|
+
},
|
|
4348
|
+
"429": {
|
|
4349
|
+
"$ref": "#/components/responses/RateLimitExceeded"
|
|
4350
|
+
}
|
|
4351
|
+
}
|
|
4352
|
+
}
|
|
4353
|
+
},
|
|
4354
|
+
"/v1/delivery/items/{id}/replay": {
|
|
4355
|
+
"post": {
|
|
4356
|
+
"operationId": "replayDeliveryItem",
|
|
4357
|
+
"summary": "Re-enqueue a delivery attempt",
|
|
4008
4358
|
"description": "Enqueues a new attempt for the binding/event pair. Generates a new\nidempotency key — replays are new attempts, never mutations.\n",
|
|
4009
4359
|
"tags": [
|
|
4010
4360
|
"Delivery"
|
|
@@ -5467,6 +5817,74 @@
|
|
|
5467
5817
|
"$ref": "#/components/responses/RateLimitExceeded"
|
|
5468
5818
|
}
|
|
5469
5819
|
}
|
|
5820
|
+
},
|
|
5821
|
+
"post": {
|
|
5822
|
+
"operationId": "startBenchmarkRun",
|
|
5823
|
+
"x-required-scopes": [
|
|
5824
|
+
"write"
|
|
5825
|
+
],
|
|
5826
|
+
"summary": "Start a benchmark run",
|
|
5827
|
+
"description": "Start an asynchronous benchmark run that evaluates extraction output\nagainst a ground truth dataset. The run is created with status\n`queued`; `documents_total` is set to the dataset's entry count and\naccuracy fields stay null until the run completes. Poll\n`GET /v1/quality/benchmarks/{id}` for progress and read per-document\noutcomes from `GET /v1/quality/benchmarks/{id}/results`.\n",
|
|
5828
|
+
"tags": [
|
|
5829
|
+
"Benchmarks"
|
|
5830
|
+
],
|
|
5831
|
+
"requestBody": {
|
|
5832
|
+
"required": true,
|
|
5833
|
+
"content": {
|
|
5834
|
+
"application/json": {
|
|
5835
|
+
"schema": {
|
|
5836
|
+
"type": "object",
|
|
5837
|
+
"required": [
|
|
5838
|
+
"dataset_id",
|
|
5839
|
+
"user_schema_id"
|
|
5840
|
+
],
|
|
5841
|
+
"properties": {
|
|
5842
|
+
"dataset_id": {
|
|
5843
|
+
"type": "string",
|
|
5844
|
+
"format": "uuid",
|
|
5845
|
+
"description": "Ground truth dataset to benchmark against.",
|
|
5846
|
+
"example": "a1b2c3d4-e5f6-7890-abcd-ef1234567890"
|
|
5847
|
+
},
|
|
5848
|
+
"user_schema_id": {
|
|
5849
|
+
"type": "string",
|
|
5850
|
+
"format": "uuid",
|
|
5851
|
+
"description": "User schema that defines the fields to evaluate.",
|
|
5852
|
+
"example": "b2c3d4e5-f6a7-8901-bcde-f12345678901"
|
|
5853
|
+
},
|
|
5854
|
+
"name": {
|
|
5855
|
+
"type": "string",
|
|
5856
|
+
"description": "Human-readable name for this run. Defaults to \"Benchmark YYYY-MM-DD\".",
|
|
5857
|
+
"example": "Post-prompt-tune run"
|
|
5858
|
+
}
|
|
5859
|
+
}
|
|
5860
|
+
}
|
|
5861
|
+
}
|
|
5862
|
+
}
|
|
5863
|
+
},
|
|
5864
|
+
"responses": {
|
|
5865
|
+
"201": {
|
|
5866
|
+
"description": "Benchmark run created with status `queued`.",
|
|
5867
|
+
"content": {
|
|
5868
|
+
"application/json": {
|
|
5869
|
+
"schema": {
|
|
5870
|
+
"$ref": "#/components/schemas/BenchmarkResponse"
|
|
5871
|
+
}
|
|
5872
|
+
}
|
|
5873
|
+
}
|
|
5874
|
+
},
|
|
5875
|
+
"400": {
|
|
5876
|
+
"$ref": "#/components/responses/BadRequest"
|
|
5877
|
+
},
|
|
5878
|
+
"401": {
|
|
5879
|
+
"$ref": "#/components/responses/Unauthorized"
|
|
5880
|
+
},
|
|
5881
|
+
"404": {
|
|
5882
|
+
"$ref": "#/components/responses/NotFound"
|
|
5883
|
+
},
|
|
5884
|
+
"429": {
|
|
5885
|
+
"$ref": "#/components/responses/RateLimitExceeded"
|
|
5886
|
+
}
|
|
5887
|
+
}
|
|
5470
5888
|
}
|
|
5471
5889
|
},
|
|
5472
5890
|
"/v1/quality/benchmarks/{id}": {
|
|
@@ -5614,6 +6032,9 @@
|
|
|
5614
6032
|
"/v1/cases": {
|
|
5615
6033
|
"get": {
|
|
5616
6034
|
"operationId": "listCases",
|
|
6035
|
+
"x-required-scopes": [
|
|
6036
|
+
"read"
|
|
6037
|
+
],
|
|
5617
6038
|
"summary": "List cases",
|
|
5618
6039
|
"description": "Cases are document clusters discovered automatically from shared entity values across documents (BFS on the linking graph; inference mode may materialise them as first-class entities).",
|
|
5619
6040
|
"tags": [
|
|
@@ -5669,6 +6090,9 @@
|
|
|
5669
6090
|
"/v1/cases/{key}": {
|
|
5670
6091
|
"get": {
|
|
5671
6092
|
"operationId": "getCase",
|
|
6093
|
+
"x-required-scopes": [
|
|
6094
|
+
"read"
|
|
6095
|
+
],
|
|
5672
6096
|
"summary": "Get a case by key",
|
|
5673
6097
|
"description": "The case resource is keyed on its stable UUID (`id`), which never\nchanges across rebuilds. Each case also carries a content-derived\n`case_key` (hex hash of its member document set) for reference, but API\npaths take the UUID. Returns the label, narrative, linked documents,\nand anomaly count.\n",
|
|
5674
6098
|
"tags": [
|
|
@@ -8126,39 +8550,6 @@
|
|
|
8126
8550
|
}
|
|
8127
8551
|
},
|
|
8128
8552
|
"/v1/structuring/checks/{id}": {
|
|
8129
|
-
"get": {
|
|
8130
|
-
"operationId": "getStructuringCheck",
|
|
8131
|
-
"summary": "Get a structuring check",
|
|
8132
|
-
"tags": [
|
|
8133
|
-
"Structuring"
|
|
8134
|
-
],
|
|
8135
|
-
"parameters": [
|
|
8136
|
-
{
|
|
8137
|
-
"$ref": "#/components/parameters/ResourceId"
|
|
8138
|
-
}
|
|
8139
|
-
],
|
|
8140
|
-
"responses": {
|
|
8141
|
-
"200": {
|
|
8142
|
-
"description": "Structuring check detail.",
|
|
8143
|
-
"content": {
|
|
8144
|
-
"application/json": {
|
|
8145
|
-
"schema": {
|
|
8146
|
-
"$ref": "#/components/schemas/StructuringCheckResponse"
|
|
8147
|
-
}
|
|
8148
|
-
}
|
|
8149
|
-
}
|
|
8150
|
-
},
|
|
8151
|
-
"401": {
|
|
8152
|
-
"$ref": "#/components/responses/Unauthorized"
|
|
8153
|
-
},
|
|
8154
|
-
"404": {
|
|
8155
|
-
"$ref": "#/components/responses/NotFound"
|
|
8156
|
-
},
|
|
8157
|
-
"429": {
|
|
8158
|
-
"$ref": "#/components/responses/RateLimitExceeded"
|
|
8159
|
-
}
|
|
8160
|
-
}
|
|
8161
|
-
},
|
|
8162
8553
|
"put": {
|
|
8163
8554
|
"operationId": "updateStructuringCheck",
|
|
8164
8555
|
"summary": "Update a structuring check",
|
|
@@ -10292,7 +10683,7 @@
|
|
|
10292
10683
|
"post": {
|
|
10293
10684
|
"operationId": "ask",
|
|
10294
10685
|
"summary": "Ask a question over your documents",
|
|
10295
|
-
"description": "Ask a natural-language question over the workspace corpus and get back a cited,\nverified answer. This is the \"replace your RAG stack\" endpoint: instead of\nchunk-embed-retrieve, the Talonic agent plans over the structured field plane\n(three-plane retrieval: semantic field match, lexical value match, and document\ntext search), runs read-only SQL over extracted cells, extracts-and-persists\nmissing fields at query time, and grounds every load-bearing claim in an exact\nsource span.\n\nThe turn runs detached and typically takes 10-60 seconds, so the endpoint is\nasynchronous: it returns `202` with an `ask_id` immediately
|
|
10686
|
+
"description": "Ask a natural-language question over the workspace corpus and get back a cited,\nverified answer. This is the \"replace your RAG stack\" endpoint: instead of\nchunk-embed-retrieve, the Talonic agent plans over the structured field plane\n(three-plane retrieval: semantic field match, lexical value match, and document\ntext search), runs read-only SQL over extracted cells, extracts-and-persists\nmissing fields at query time, and grounds every load-bearing claim in an exact\nsource span.\n\nOnly `question` is required. The optional fields narrow, route, shape, or\nthread the turn:\n\n- `scope` restricts the turn to a slice of the workspace. The scope is compiled\n into a parameterized SQL predicate applied to every retrieval plane and every\n virtual table the agent can query, so it bounds what the agent CAN read rather\n than suggesting where it should look. `document_ids` is capped at 1000 entries\n and `tags` at 100. An explicit `\"document_ids\": []` is an active scope that\n matches nothing; it never means \"unscoped\".\n- `conversation_id` continues an existing conversation, so the agent answers\n with the prior turns in view. Absent, every ask starts a fresh conversation\n whose id comes back on the response.\n- `model` runs the turn on a named model, and `model_class` selects a class when\n `model` is absent. Resolution order: explicit `model`, then `model_class`,\n then the workspace AI policy binding, then the platform default. A model the\n workspace AI policy denies fails loudly; it is never silently substituted.\n- `output_format` shapes the final answer with a response-format instruction, a\n markdown template, or both. It constrains form only, never grounding.\n- `on_behalf_of` opts this single request into compartment-correct retrieval as\n a named workspace user. Without it the key reads workspace-wide, across every\n compartment and classification.\n\nThe turn runs detached and typically takes 10-60 seconds, so the endpoint is\nasynchronous: it returns `202` with an `ask_id` immediately. Poll\n`GET /v1/ask/{id}` (about every 2 seconds) or stream `GET /v1/ask/{id}/stream`\nfor the answer.\n\nEach accepted ask charges one flat `agent_ask` credit unit at submission, keyed\nto the turn, so streaming, polling, and retrying the same turn never bill twice\n(see `GET /v1/pricing`). The turn is pinned to the least-privilege viewer role:\nonly read tools run, every mutation is denied before it executes.\n",
|
|
10296
10687
|
"tags": [
|
|
10297
10688
|
"Agent"
|
|
10298
10689
|
],
|
|
@@ -10311,15 +10702,120 @@
|
|
|
10311
10702
|
"maxLength": 20000,
|
|
10312
10703
|
"description": "The natural-language question to answer over the workspace corpus.",
|
|
10313
10704
|
"example": "What is the payment term in the Globex contract, and where does it say so?"
|
|
10705
|
+
},
|
|
10706
|
+
"scope": {
|
|
10707
|
+
"type": "object",
|
|
10708
|
+
"description": "Restrict the turn to a slice of the workspace. Present fields are ANDed, and the whole object is enforced as a bound SQL predicate on every retrieval plane. An empty `document_ids` array matches nothing.",
|
|
10709
|
+
"properties": {
|
|
10710
|
+
"document_ids": {
|
|
10711
|
+
"type": "array",
|
|
10712
|
+
"maxItems": 1000,
|
|
10713
|
+
"items": {
|
|
10714
|
+
"type": "string",
|
|
10715
|
+
"format": "uuid"
|
|
10716
|
+
},
|
|
10717
|
+
"description": "Restrict to these documents. An empty array matches nothing."
|
|
10718
|
+
},
|
|
10719
|
+
"schema_id": {
|
|
10720
|
+
"type": "string",
|
|
10721
|
+
"format": "uuid",
|
|
10722
|
+
"description": "Restrict to documents processed by a pipeline of this Spec."
|
|
10723
|
+
},
|
|
10724
|
+
"pipeline_id": {
|
|
10725
|
+
"type": "string",
|
|
10726
|
+
"format": "uuid",
|
|
10727
|
+
"description": "Restrict to documents attached to this pipeline run."
|
|
10728
|
+
},
|
|
10729
|
+
"data_product_id": {
|
|
10730
|
+
"type": "string",
|
|
10731
|
+
"format": "uuid",
|
|
10732
|
+
"description": "Restrict to documents behind this data product's pipeline run."
|
|
10733
|
+
},
|
|
10734
|
+
"document_type": {
|
|
10735
|
+
"type": "string",
|
|
10736
|
+
"maxLength": 200,
|
|
10737
|
+
"description": "Restrict to documents of this classification (a document type name)."
|
|
10738
|
+
},
|
|
10739
|
+
"source_id": {
|
|
10740
|
+
"type": "string",
|
|
10741
|
+
"format": "uuid",
|
|
10742
|
+
"description": "Restrict to documents ingested through this source connection."
|
|
10743
|
+
},
|
|
10744
|
+
"tags": {
|
|
10745
|
+
"type": "array",
|
|
10746
|
+
"maxItems": 100,
|
|
10747
|
+
"items": {
|
|
10748
|
+
"type": "string",
|
|
10749
|
+
"maxLength": 200
|
|
10750
|
+
},
|
|
10751
|
+
"description": "Restrict to documents carrying ANY of these user tags."
|
|
10752
|
+
},
|
|
10753
|
+
"ingested_after": {
|
|
10754
|
+
"type": "string",
|
|
10755
|
+
"format": "date-time",
|
|
10756
|
+
"description": "Restrict to documents ingested at or after this ISO timestamp."
|
|
10757
|
+
},
|
|
10758
|
+
"ingested_before": {
|
|
10759
|
+
"type": "string",
|
|
10760
|
+
"format": "date-time",
|
|
10761
|
+
"description": "Restrict to documents ingested at or before this ISO timestamp."
|
|
10762
|
+
}
|
|
10763
|
+
}
|
|
10764
|
+
},
|
|
10765
|
+
"conversation_id": {
|
|
10766
|
+
"type": "string",
|
|
10767
|
+
"format": "uuid",
|
|
10768
|
+
"description": "Continue this conversation; the agent sees its prior turns."
|
|
10769
|
+
},
|
|
10770
|
+
"model": {
|
|
10771
|
+
"type": "string",
|
|
10772
|
+
"maxLength": 120,
|
|
10773
|
+
"description": "Run the turn on a specific model (e.g. `claude-opus`). A model the workspace AI policy denies fails loudly; it is never substituted."
|
|
10774
|
+
},
|
|
10775
|
+
"model_class": {
|
|
10776
|
+
"type": "string",
|
|
10777
|
+
"maxLength": 120,
|
|
10778
|
+
"description": "Run the turn on a model class (e.g. `complex`); used when `model` is absent."
|
|
10779
|
+
},
|
|
10780
|
+
"output_format": {
|
|
10781
|
+
"type": "object",
|
|
10782
|
+
"description": "Shape the final answer. Constrains form only, never grounding or citation.",
|
|
10783
|
+
"properties": {
|
|
10784
|
+
"instruction": {
|
|
10785
|
+
"type": "string",
|
|
10786
|
+
"maxLength": 4000,
|
|
10787
|
+
"description": "Free-text response-format instruction, e.g. \"answer as a two-column table\"."
|
|
10788
|
+
},
|
|
10789
|
+
"template": {
|
|
10790
|
+
"type": "string",
|
|
10791
|
+
"maxLength": 20000,
|
|
10792
|
+
"description": "A markdown skeleton whose headings and order the answer keeps."
|
|
10793
|
+
}
|
|
10794
|
+
}
|
|
10795
|
+
},
|
|
10796
|
+
"on_behalf_of": {
|
|
10797
|
+
"type": "string",
|
|
10798
|
+
"format": "uuid",
|
|
10799
|
+
"description": "Answer as this workspace user would see it, applying that user's compartment and classification visibility. Opt-in per request; the user must be an active member of the calling workspace."
|
|
10314
10800
|
}
|
|
10315
10801
|
}
|
|
10802
|
+
},
|
|
10803
|
+
"example": {
|
|
10804
|
+
"question": "Which invoices in this pipeline are overdue, and by how much?",
|
|
10805
|
+
"scope": {
|
|
10806
|
+
"pipeline_id": "9e107d9d-372b-4c81-90c3-9dfe9f2c4b6a"
|
|
10807
|
+
},
|
|
10808
|
+
"model_class": "complex",
|
|
10809
|
+
"output_format": {
|
|
10810
|
+
"instruction": "Answer as a markdown table with columns invoice, due date, days overdue."
|
|
10811
|
+
}
|
|
10316
10812
|
}
|
|
10317
10813
|
}
|
|
10318
10814
|
}
|
|
10319
10815
|
},
|
|
10320
10816
|
"responses": {
|
|
10321
10817
|
"202": {
|
|
10322
|
-
"description": "Ask accepted; poll `poll_url` for the answer.",
|
|
10818
|
+
"description": "Ask accepted; poll `poll_url` or stream `stream_url` for the answer.",
|
|
10323
10819
|
"content": {
|
|
10324
10820
|
"application/json": {
|
|
10325
10821
|
"schema": {
|
|
@@ -10338,8 +10834,24 @@
|
|
|
10338
10834
|
"poll_url": {
|
|
10339
10835
|
"type": "string",
|
|
10340
10836
|
"example": "/v1/ask/3fa85f64-5717-4562-b3fc-2c963f66afa6"
|
|
10837
|
+
},
|
|
10838
|
+
"stream_url": {
|
|
10839
|
+
"type": "string",
|
|
10840
|
+
"example": "/v1/ask/3fa85f64-5717-4562-b3fc-2c963f66afa6/stream"
|
|
10841
|
+
},
|
|
10842
|
+
"conversation_id": {
|
|
10843
|
+
"type": "string",
|
|
10844
|
+
"format": "uuid",
|
|
10845
|
+
"description": "The conversation this ask threads into (created when none was given)."
|
|
10341
10846
|
}
|
|
10342
10847
|
}
|
|
10848
|
+
},
|
|
10849
|
+
"example": {
|
|
10850
|
+
"ask_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
|
|
10851
|
+
"status": "processing",
|
|
10852
|
+
"poll_url": "/v1/ask/3fa85f64-5717-4562-b3fc-2c963f66afa6",
|
|
10853
|
+
"stream_url": "/v1/ask/3fa85f64-5717-4562-b3fc-2c963f66afa6/stream",
|
|
10854
|
+
"conversation_id": "8c4f2a1e-0b6d-4e2f-9a3c-5d7e1f2a3b4c"
|
|
10343
10855
|
}
|
|
10344
10856
|
}
|
|
10345
10857
|
}
|
|
@@ -10363,7 +10875,7 @@
|
|
|
10363
10875
|
"get": {
|
|
10364
10876
|
"operationId": "getAsk",
|
|
10365
10877
|
"summary": "Poll an ask for its answer",
|
|
10366
|
-
"description": "Poll a previously-started ask. Tenant-isolated: an ask that belongs to a different\nworkspace reads as not found. While the turn runs the response is\n`{ \"status\": \"processing\" }`; once completed it carries:\n\n- `answer
|
|
10878
|
+
"description": "Poll a previously-started ask. Tenant-isolated: an ask that belongs to a different\nworkspace reads as not found. While the turn runs the response is\n`{ \"status\": \"processing\" }` plus `conversation_id`; once completed it carries:\n\n- `answer`: the full answer in markdown, citations inline as links.\n- `citations[]`: the same citations structured: source `document_id`, the cited\n `quote`, whether it grounds a captured `field` or a verbatim `quote`, the source\n `filename` when resolved, and a deep `app_url` that opens the document with the\n span highlighted.\n- `cards[]` and `artifacts[]`: the generative UI cards and artifacts the turn\n produced, when any.\n- `tool_calls`: how many tool invocations the turn ran, an audit-trail count.\n- `verification`: the post-answer verification verdict: a fast model re-checks the\n answer's claims against the turn's own tool evidence (`supported` | `issues` |\n `unverifiable`, with check counts and an optional correction). Treat `issues` as a\n review pointer, not ground truth.\n- `usage`: token count and the flat `credits_charged`.\n",
|
|
10367
10879
|
"tags": [
|
|
10368
10880
|
"Agent"
|
|
10369
10881
|
],
|
|
@@ -10401,6 +10913,11 @@
|
|
|
10401
10913
|
"poll_url": {
|
|
10402
10914
|
"type": "string"
|
|
10403
10915
|
},
|
|
10916
|
+
"conversation_id": {
|
|
10917
|
+
"type": "string",
|
|
10918
|
+
"format": "uuid",
|
|
10919
|
+
"nullable": true
|
|
10920
|
+
},
|
|
10404
10921
|
"answer": {
|
|
10405
10922
|
"type": "string",
|
|
10406
10923
|
"description": "Markdown answer (present when completed)."
|
|
@@ -10427,12 +10944,47 @@
|
|
|
10427
10944
|
"reference": {
|
|
10428
10945
|
"type": "string"
|
|
10429
10946
|
},
|
|
10947
|
+
"filename": {
|
|
10948
|
+
"type": "string",
|
|
10949
|
+
"nullable": true
|
|
10950
|
+
},
|
|
10430
10951
|
"app_url": {
|
|
10431
10952
|
"type": "string"
|
|
10432
10953
|
}
|
|
10433
10954
|
}
|
|
10434
10955
|
}
|
|
10435
10956
|
},
|
|
10957
|
+
"cards": {
|
|
10958
|
+
"type": "array",
|
|
10959
|
+
"items": {
|
|
10960
|
+
"type": "object"
|
|
10961
|
+
},
|
|
10962
|
+
"description": "Generative UI cards the turn produced (present when completed)."
|
|
10963
|
+
},
|
|
10964
|
+
"artifacts": {
|
|
10965
|
+
"type": "array",
|
|
10966
|
+
"items": {
|
|
10967
|
+
"type": "object",
|
|
10968
|
+
"properties": {
|
|
10969
|
+
"type": {
|
|
10970
|
+
"type": "string"
|
|
10971
|
+
},
|
|
10972
|
+
"id": {
|
|
10973
|
+
"type": "string"
|
|
10974
|
+
},
|
|
10975
|
+
"label": {
|
|
10976
|
+
"type": "string"
|
|
10977
|
+
},
|
|
10978
|
+
"link": {
|
|
10979
|
+
"type": "string"
|
|
10980
|
+
}
|
|
10981
|
+
}
|
|
10982
|
+
}
|
|
10983
|
+
},
|
|
10984
|
+
"tool_calls": {
|
|
10985
|
+
"type": "integer",
|
|
10986
|
+
"description": "Number of tool invocations the turn ran."
|
|
10987
|
+
},
|
|
10436
10988
|
"verification": {
|
|
10437
10989
|
"type": "object",
|
|
10438
10990
|
"nullable": true,
|
|
@@ -10469,6 +11021,35 @@
|
|
|
10469
11021
|
}
|
|
10470
11022
|
}
|
|
10471
11023
|
}
|
|
11024
|
+
},
|
|
11025
|
+
"example": {
|
|
11026
|
+
"ask_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
|
|
11027
|
+
"status": "completed",
|
|
11028
|
+
"poll_url": "/v1/ask/3fa85f64-5717-4562-b3fc-2c963f66afa6",
|
|
11029
|
+
"conversation_id": "8c4f2a1e-0b6d-4e2f-9a3c-5d7e1f2a3b4c",
|
|
11030
|
+
"answer": "Two invoices are overdue: [INV-1041](https://app.talonic.com/documents/1b6f2c3d-4e5f-6a7b-8c9d-0e1f2a3b4c5d?cite=due_date) by 12 days and INV-1055 by 3 days.",
|
|
11031
|
+
"citations": [
|
|
11032
|
+
{
|
|
11033
|
+
"quote": "INV-1041",
|
|
11034
|
+
"document_id": "1b6f2c3d-4e5f-6a7b-8c9d-0e1f2a3b4c5d",
|
|
11035
|
+
"kind": "field",
|
|
11036
|
+
"reference": "due_date",
|
|
11037
|
+
"filename": "invoice-1041.pdf",
|
|
11038
|
+
"app_url": "https://app.talonic.com/documents/1b6f2c3d-4e5f-6a7b-8c9d-0e1f2a3b4c5d?cite=due_date"
|
|
11039
|
+
}
|
|
11040
|
+
],
|
|
11041
|
+
"cards": [],
|
|
11042
|
+
"artifacts": [],
|
|
11043
|
+
"tool_calls": 4,
|
|
11044
|
+
"verification": {
|
|
11045
|
+
"verdict": "supported",
|
|
11046
|
+
"checks_total": 3,
|
|
11047
|
+
"checks_unsupported": 0
|
|
11048
|
+
},
|
|
11049
|
+
"usage": {
|
|
11050
|
+
"tokens": 18432,
|
|
11051
|
+
"credits_charged": 100
|
|
11052
|
+
}
|
|
10472
11053
|
}
|
|
10473
11054
|
}
|
|
10474
11055
|
}
|
|
@@ -10485,6 +11066,50 @@
|
|
|
10485
11066
|
}
|
|
10486
11067
|
}
|
|
10487
11068
|
},
|
|
11069
|
+
"/v1/ask/{id}/stream": {
|
|
11070
|
+
"get": {
|
|
11071
|
+
"operationId": "streamAsk",
|
|
11072
|
+
"summary": "Stream an ask over server-sent events",
|
|
11073
|
+
"description": "Stream a turn's events as they happen instead of polling. The response is\n`text/event-stream`: every frame is a `data: {json}` line followed by a blank\nline, and a `: keep-alive` comment line goes out every 25 seconds so proxies\nkeep an idle turn's socket open.\n\nThe stream first replays every event the turn has already persisted, then\nfollows with live events, and closes when the turn's `status` reaches\n`completed`, `failed`, or `awaiting_confirmation`. A reconnect therefore loses\nnothing: reopen the stream and the replay delivers the whole turn again.\n\nEach frame is a JSON object discriminated by `kind`: `status`, `stage`, `text`,\n`text.delta`, `tool.call`, `tool.progress`, `tool.result`,\n`confirmation.required`, `card`, `artifact`, and `done`. The model's raw\nreasoning (`thinking.delta`) is deliberately withheld from the public stream.\n\nStreaming is additive: the turn is started (and charged) by `POST /v1/ask`, so\nopening, dropping, and reopening a stream never bills, and the poll contract is\nunchanged. A missing or cross-tenant turn is a real `404` issued before any SSE\nheader goes out, never a `200` stream carrying an error frame. Connects are\nmetered in the `ask_stream` rate-limit namespace, and a workspace can hold at\nmost 20 concurrent streams; the 21st connect is refused with `429`.\n",
|
|
11074
|
+
"tags": [
|
|
11075
|
+
"Agent"
|
|
11076
|
+
],
|
|
11077
|
+
"parameters": [
|
|
11078
|
+
{
|
|
11079
|
+
"name": "id",
|
|
11080
|
+
"in": "path",
|
|
11081
|
+
"required": true,
|
|
11082
|
+
"schema": {
|
|
11083
|
+
"type": "string",
|
|
11084
|
+
"format": "uuid"
|
|
11085
|
+
}
|
|
11086
|
+
}
|
|
11087
|
+
],
|
|
11088
|
+
"responses": {
|
|
11089
|
+
"200": {
|
|
11090
|
+
"description": "Server-sent event stream of the turn's frames, closed on terminal status.",
|
|
11091
|
+
"content": {
|
|
11092
|
+
"text/event-stream": {
|
|
11093
|
+
"schema": {
|
|
11094
|
+
"type": "string",
|
|
11095
|
+
"description": "SSE frames, one JSON object per `data:` line, discriminated by `kind`."
|
|
11096
|
+
},
|
|
11097
|
+
"example": "data: {\"kind\":\"status\",\"status\":\"running\"}\n\ndata: {\"kind\":\"stage\",\"stage\":\"retrieve\",\"state\":\"started\"}\n\ndata: {\"kind\":\"tool.call\",\"id\":\"t1\",\"name\":\"query_data\",\"impact\":\"read\",\"title\":\"Query overdue invoices\",\"args\":{}}\n\ndata: {\"kind\":\"tool.result\",\"id\":\"t1\",\"name\":\"query_data\",\"ok\":true,\"summary\":\"2 rows\",\"durationMs\":412}\n\n: keep-alive\n\ndata: {\"kind\":\"text.delta\",\"text\":\"Two invoices are overdue\"}\n\ndata: {\"kind\":\"done\",\"headline\":\"2 overdue invoices found\"}\n\ndata: {\"kind\":\"status\",\"status\":\"completed\"}\n"
|
|
11098
|
+
}
|
|
11099
|
+
}
|
|
11100
|
+
},
|
|
11101
|
+
"401": {
|
|
11102
|
+
"$ref": "#/components/responses/Unauthorized"
|
|
11103
|
+
},
|
|
11104
|
+
"404": {
|
|
11105
|
+
"$ref": "#/components/responses/NotFound"
|
|
11106
|
+
},
|
|
11107
|
+
"429": {
|
|
11108
|
+
"$ref": "#/components/responses/RateLimitExceeded"
|
|
11109
|
+
}
|
|
11110
|
+
}
|
|
11111
|
+
}
|
|
11112
|
+
},
|
|
10488
11113
|
"/v1/agent/query": {
|
|
10489
11114
|
"post": {
|
|
10490
11115
|
"operationId": "startAgentQuery",
|
|
@@ -10748,7 +11373,7 @@
|
|
|
10748
11373
|
"get": {
|
|
10749
11374
|
"operationId": "listAgentTools",
|
|
10750
11375
|
"summary": "List agent tools",
|
|
10751
|
-
"description": "Returns the catalogue of tools available to the embedded agent. Each tool entry
|
|
11376
|
+
"description": "Returns the catalogue of tools available to the embedded agent, read live from\nthe loop's registry. Each tool entry carries a stable name, a short description,\nan impact level (`read`, `draft_mutation`, `live_mutation`, `irreversible`), the\ncapability the tool requires, its JSON Schema argument shape (`input_schema`),\nand `can_invoke`: whether THIS key can run it via\n`POST /v1/agent/tools/{name}/invoke`. An API key runs as the least-privilege\nviewer role, so the invocable set is the read subset; the rest are listed so a\ncaller can see the full surface the in-product agent operates.\n",
|
|
10752
11377
|
"tags": [
|
|
10753
11378
|
"Agent"
|
|
10754
11379
|
],
|
|
@@ -10784,14 +11409,66 @@
|
|
|
10784
11409
|
"live_mutation",
|
|
10785
11410
|
"irreversible"
|
|
10786
11411
|
]
|
|
11412
|
+
},
|
|
11413
|
+
"capability": {
|
|
11414
|
+
"type": "string",
|
|
11415
|
+
"description": "The permission the tool requires (e.g. `data.read`)."
|
|
11416
|
+
},
|
|
11417
|
+
"can_invoke": {
|
|
11418
|
+
"type": "boolean",
|
|
11419
|
+
"description": "Whether this key can run the tool via `POST /v1/agent/tools/{name}/invoke`."
|
|
11420
|
+
},
|
|
11421
|
+
"input_schema": {
|
|
11422
|
+
"type": "object",
|
|
11423
|
+
"description": "JSON Schema for the tool's `args`."
|
|
10787
11424
|
}
|
|
10788
11425
|
}
|
|
10789
11426
|
}
|
|
10790
11427
|
},
|
|
10791
11428
|
"totalCount": {
|
|
10792
11429
|
"type": "integer"
|
|
11430
|
+
},
|
|
11431
|
+
"invocable_count": {
|
|
11432
|
+
"type": "integer",
|
|
11433
|
+
"description": "How many listed tools this key can invoke."
|
|
10793
11434
|
}
|
|
10794
11435
|
}
|
|
11436
|
+
},
|
|
11437
|
+
"example": {
|
|
11438
|
+
"tools": [
|
|
11439
|
+
{
|
|
11440
|
+
"name": "query_data",
|
|
11441
|
+
"impact": "read",
|
|
11442
|
+
"capability": "data.read",
|
|
11443
|
+
"description": "Runs a read-only SQL query over the structured cell plane.",
|
|
11444
|
+
"can_invoke": true,
|
|
11445
|
+
"input_schema": {
|
|
11446
|
+
"type": "object",
|
|
11447
|
+
"properties": {
|
|
11448
|
+
"sql": {
|
|
11449
|
+
"type": "string"
|
|
11450
|
+
}
|
|
11451
|
+
}
|
|
11452
|
+
}
|
|
11453
|
+
},
|
|
11454
|
+
{
|
|
11455
|
+
"name": "promote_field",
|
|
11456
|
+
"impact": "draft_mutation",
|
|
11457
|
+
"capability": "data.promote",
|
|
11458
|
+
"description": "Makes an already-captured field queryable.",
|
|
11459
|
+
"can_invoke": false,
|
|
11460
|
+
"input_schema": {
|
|
11461
|
+
"type": "object",
|
|
11462
|
+
"properties": {
|
|
11463
|
+
"field_id": {
|
|
11464
|
+
"type": "string"
|
|
11465
|
+
}
|
|
11466
|
+
}
|
|
11467
|
+
}
|
|
11468
|
+
}
|
|
11469
|
+
],
|
|
11470
|
+
"totalCount": 61,
|
|
11471
|
+
"invocable_count": 32
|
|
10795
11472
|
}
|
|
10796
11473
|
}
|
|
10797
11474
|
}
|
|
@@ -10805,163 +11482,243 @@
|
|
|
10805
11482
|
}
|
|
10806
11483
|
}
|
|
10807
11484
|
},
|
|
10808
|
-
"/v1/
|
|
10809
|
-
"
|
|
10810
|
-
"operationId": "
|
|
10811
|
-
"summary": "
|
|
10812
|
-
"
|
|
10813
|
-
"description": "The `/v1/exports/*` namespace was retired on 2026-04-21 in favour of the unified\n`/v1/delivery/*` surface. All requests against any verb of this path return\n`410 Gone` with a pointer to the replacement endpoint. This entry exists so SDK\ngenerators see the deprecation flag; do not call.\n",
|
|
11485
|
+
"/v1/agent/tools/{name}/invoke": {
|
|
11486
|
+
"post": {
|
|
11487
|
+
"operationId": "invokeAgentTool",
|
|
11488
|
+
"summary": "Invoke one agent tool directly",
|
|
11489
|
+
"description": "Run ONE named tool directly, with no model in the loop: the caller supplies the\narguments the agent would otherwise choose. This is the seam for building your\nown agent on top of Talonic's retrieval and provenance while driving control\nflow yourself.\n\nThe same capability matrix the agent loop applies governs this route, so a key\ncan only run the tools whose `can_invoke` is `true` on `GET /v1/agent/tools`;\na denied tool answers `403` naming the capability it needs. `scope` and\n`on_behalf_of` behave exactly as on `POST /v1/ask`: the scope is a bound SQL\npredicate, and `on_behalf_of` applies that user's compartment visibility.\n\nDirect invocation charges no credits: every tool this key can reach does no\nmodel work, so there is no model call to meter. The route is bounded by the\n`agent_tools` rate-limit namespace instead. A tool that runs but fails answers\n`422` with the tool's own failure summary.\n",
|
|
10814
11490
|
"tags": [
|
|
10815
|
-
"
|
|
11491
|
+
"Agent"
|
|
10816
11492
|
],
|
|
10817
11493
|
"parameters": [
|
|
10818
11494
|
{
|
|
10819
|
-
"name": "
|
|
11495
|
+
"name": "name",
|
|
10820
11496
|
"in": "path",
|
|
10821
11497
|
"required": true,
|
|
10822
11498
|
"schema": {
|
|
10823
11499
|
"type": "string"
|
|
10824
11500
|
},
|
|
10825
|
-
"description": "
|
|
10826
|
-
}
|
|
10827
|
-
],
|
|
10828
|
-
"x-sunset": "2026-04-21",
|
|
10829
|
-
"responses": {
|
|
10830
|
-
"410": {
|
|
10831
|
-
"description": "Gone — use `/v1/delivery/*` instead.",
|
|
10832
|
-
"content": {
|
|
10833
|
-
"application/json": {
|
|
10834
|
-
"schema": {
|
|
10835
|
-
"$ref": "#/components/schemas/ErrorResponse"
|
|
10836
|
-
}
|
|
10837
|
-
}
|
|
10838
|
-
}
|
|
10839
|
-
}
|
|
10840
|
-
}
|
|
10841
|
-
}
|
|
10842
|
-
},
|
|
10843
|
-
"/v1/cases/{key}/status": {
|
|
10844
|
-
"patch": {
|
|
10845
|
-
"operationId": "updateCaseStatus",
|
|
10846
|
-
"summary": "Update case status",
|
|
10847
|
-
"tags": [
|
|
10848
|
-
"Cases"
|
|
10849
|
-
],
|
|
10850
|
-
"parameters": [
|
|
10851
|
-
{
|
|
10852
|
-
"name": "key",
|
|
10853
|
-
"in": "path",
|
|
10854
|
-
"required": true,
|
|
10855
|
-
"schema": {
|
|
10856
|
-
"type": "string",
|
|
10857
|
-
"format": "uuid"
|
|
10858
|
-
},
|
|
10859
|
-
"description": "Case UUID (the stable resource id)."
|
|
11501
|
+
"description": "The tool name as listed by `GET /v1/agent/tools`."
|
|
10860
11502
|
}
|
|
10861
11503
|
],
|
|
10862
11504
|
"requestBody": {
|
|
10863
|
-
"required":
|
|
11505
|
+
"required": false,
|
|
10864
11506
|
"content": {
|
|
10865
11507
|
"application/json": {
|
|
10866
11508
|
"schema": {
|
|
10867
11509
|
"type": "object",
|
|
10868
|
-
"required": [
|
|
10869
|
-
"status"
|
|
10870
|
-
],
|
|
10871
11510
|
"properties": {
|
|
10872
|
-
"
|
|
11511
|
+
"args": {
|
|
11512
|
+
"type": "object",
|
|
11513
|
+
"description": "Arguments matching the tool's `input_schema` from `GET /v1/agent/tools`."
|
|
11514
|
+
},
|
|
11515
|
+
"scope": {
|
|
11516
|
+
"type": "object",
|
|
11517
|
+
"description": "Restrict the invocation to a slice of the workspace, exactly as on `POST /v1/ask`."
|
|
11518
|
+
},
|
|
11519
|
+
"on_behalf_of": {
|
|
10873
11520
|
"type": "string",
|
|
10874
|
-
"
|
|
10875
|
-
"description": "
|
|
11521
|
+
"format": "uuid",
|
|
11522
|
+
"description": "Apply this workspace user's compartment visibility to the invocation."
|
|
10876
11523
|
}
|
|
10877
11524
|
}
|
|
11525
|
+
},
|
|
11526
|
+
"example": {
|
|
11527
|
+
"args": {
|
|
11528
|
+
"query": "termination notice period"
|
|
11529
|
+
},
|
|
11530
|
+
"scope": {
|
|
11531
|
+
"document_type": "Master Services Agreement"
|
|
11532
|
+
}
|
|
10878
11533
|
}
|
|
10879
11534
|
}
|
|
10880
11535
|
}
|
|
10881
11536
|
},
|
|
10882
11537
|
"responses": {
|
|
10883
11538
|
"200": {
|
|
10884
|
-
"description": "
|
|
11539
|
+
"description": "The tool ran; its raw output plus any cards, artifacts, and citations.",
|
|
10885
11540
|
"content": {
|
|
10886
11541
|
"application/json": {
|
|
10887
11542
|
"schema": {
|
|
10888
|
-
"
|
|
11543
|
+
"type": "object",
|
|
11544
|
+
"properties": {
|
|
11545
|
+
"tool": {
|
|
11546
|
+
"type": "string"
|
|
11547
|
+
},
|
|
11548
|
+
"ok": {
|
|
11549
|
+
"type": "boolean"
|
|
11550
|
+
},
|
|
11551
|
+
"content": {
|
|
11552
|
+
"type": "string",
|
|
11553
|
+
"description": "The tool's raw output, usually JSON serialized as a string."
|
|
11554
|
+
},
|
|
11555
|
+
"cards": {
|
|
11556
|
+
"type": "array",
|
|
11557
|
+
"items": {
|
|
11558
|
+
"type": "object"
|
|
11559
|
+
}
|
|
11560
|
+
},
|
|
11561
|
+
"artifacts": {
|
|
11562
|
+
"type": "array",
|
|
11563
|
+
"items": {
|
|
11564
|
+
"type": "object"
|
|
11565
|
+
}
|
|
11566
|
+
},
|
|
11567
|
+
"citations": {
|
|
11568
|
+
"type": "array",
|
|
11569
|
+
"items": {
|
|
11570
|
+
"type": "object",
|
|
11571
|
+
"properties": {
|
|
11572
|
+
"quote": {
|
|
11573
|
+
"type": "string"
|
|
11574
|
+
},
|
|
11575
|
+
"document_id": {
|
|
11576
|
+
"type": "string",
|
|
11577
|
+
"format": "uuid"
|
|
11578
|
+
},
|
|
11579
|
+
"kind": {
|
|
11580
|
+
"type": "string",
|
|
11581
|
+
"enum": [
|
|
11582
|
+
"field",
|
|
11583
|
+
"quote"
|
|
11584
|
+
]
|
|
11585
|
+
},
|
|
11586
|
+
"reference": {
|
|
11587
|
+
"type": "string"
|
|
11588
|
+
},
|
|
11589
|
+
"filename": {
|
|
11590
|
+
"type": "string",
|
|
11591
|
+
"nullable": true
|
|
11592
|
+
},
|
|
11593
|
+
"app_url": {
|
|
11594
|
+
"type": "string"
|
|
11595
|
+
}
|
|
11596
|
+
}
|
|
11597
|
+
}
|
|
11598
|
+
}
|
|
11599
|
+
}
|
|
11600
|
+
},
|
|
11601
|
+
"example": {
|
|
11602
|
+
"tool": "query_data",
|
|
11603
|
+
"ok": true,
|
|
11604
|
+
"content": "[{\"invoice\":\"INV-1041\",\"days_overdue\":12}]",
|
|
11605
|
+
"cards": [],
|
|
11606
|
+
"artifacts": [],
|
|
11607
|
+
"citations": []
|
|
10889
11608
|
}
|
|
10890
11609
|
}
|
|
10891
11610
|
}
|
|
10892
11611
|
},
|
|
10893
|
-
"400": {
|
|
10894
|
-
"$ref": "#/components/responses/BadRequest"
|
|
10895
|
-
},
|
|
10896
11612
|
"401": {
|
|
10897
11613
|
"$ref": "#/components/responses/Unauthorized"
|
|
10898
11614
|
},
|
|
11615
|
+
"403": {
|
|
11616
|
+
"description": "The tool requires a capability this key's role does not grant; the message names it."
|
|
11617
|
+
},
|
|
10899
11618
|
"404": {
|
|
10900
11619
|
"$ref": "#/components/responses/NotFound"
|
|
10901
11620
|
},
|
|
11621
|
+
"422": {
|
|
11622
|
+
"description": "The tool itself failed; the message is the tool's failure summary."
|
|
11623
|
+
},
|
|
10902
11624
|
"429": {
|
|
10903
11625
|
"$ref": "#/components/responses/RateLimitExceeded"
|
|
10904
11626
|
}
|
|
10905
11627
|
}
|
|
10906
11628
|
}
|
|
10907
11629
|
},
|
|
10908
|
-
"/v1/
|
|
11630
|
+
"/v1/agent/conversations": {
|
|
10909
11631
|
"get": {
|
|
10910
|
-
"operationId": "
|
|
10911
|
-
"summary": "
|
|
10912
|
-
"description": "
|
|
11632
|
+
"operationId": "listAgentConversations",
|
|
11633
|
+
"summary": "List agent conversations",
|
|
11634
|
+
"description": "List the conversations asks have threaded into, newest activity first,\nkeyset-paginated: pass the previous page's `next_cursor` as `cursor` to\ncontinue, until `next_cursor` is null.\n\nConversations belong to the workspace's API principal, not to a platform user:\na key sees the asks made through the API and never a colleague's in-product\nagent chat. `on_behalf_of` selects the separate partition of conversations run\nfor that user, so per-user threads never mix.\n",
|
|
10913
11635
|
"tags": [
|
|
10914
|
-
"
|
|
11636
|
+
"Agent"
|
|
10915
11637
|
],
|
|
10916
11638
|
"parameters": [
|
|
10917
11639
|
{
|
|
10918
|
-
"name": "
|
|
10919
|
-
"in": "
|
|
10920
|
-
"
|
|
11640
|
+
"name": "limit",
|
|
11641
|
+
"in": "query",
|
|
11642
|
+
"schema": {
|
|
11643
|
+
"type": "integer",
|
|
11644
|
+
"minimum": 1,
|
|
11645
|
+
"maximum": 100,
|
|
11646
|
+
"default": 30
|
|
11647
|
+
},
|
|
11648
|
+
"description": "Page size (1-100)."
|
|
11649
|
+
},
|
|
11650
|
+
{
|
|
11651
|
+
"name": "cursor",
|
|
11652
|
+
"in": "query",
|
|
11653
|
+
"schema": {
|
|
11654
|
+
"type": "string",
|
|
11655
|
+
"format": "date-time"
|
|
11656
|
+
},
|
|
11657
|
+
"description": "The previous page's `next_cursor`."
|
|
11658
|
+
},
|
|
11659
|
+
{
|
|
11660
|
+
"name": "on_behalf_of",
|
|
11661
|
+
"in": "query",
|
|
10921
11662
|
"schema": {
|
|
10922
11663
|
"type": "string",
|
|
10923
11664
|
"format": "uuid"
|
|
10924
11665
|
},
|
|
10925
|
-
"description": "
|
|
11666
|
+
"description": "List the conversation partition of this workspace user."
|
|
10926
11667
|
}
|
|
10927
11668
|
],
|
|
10928
11669
|
"responses": {
|
|
10929
11670
|
"200": {
|
|
10930
|
-
"description": "
|
|
11671
|
+
"description": "One page of conversations, newest activity first.",
|
|
10931
11672
|
"content": {
|
|
10932
11673
|
"application/json": {
|
|
10933
11674
|
"schema": {
|
|
10934
11675
|
"type": "object",
|
|
10935
11676
|
"properties": {
|
|
10936
|
-
"
|
|
11677
|
+
"conversations": {
|
|
10937
11678
|
"type": "array",
|
|
10938
11679
|
"items": {
|
|
10939
11680
|
"type": "object",
|
|
10940
11681
|
"properties": {
|
|
10941
|
-
"
|
|
10942
|
-
"type": "string",
|
|
10943
|
-
"format": "uuid",
|
|
10944
|
-
"example": "a1b2c3d4-e5f6-7890-abcd-ef1234567890"
|
|
10945
|
-
},
|
|
10946
|
-
"target_document_id": {
|
|
11682
|
+
"conversation_id": {
|
|
10947
11683
|
"type": "string",
|
|
10948
|
-
"format": "uuid"
|
|
10949
|
-
"example": "a1b2c3d4-e5f6-7890-abcd-ef1234567890"
|
|
11684
|
+
"format": "uuid"
|
|
10950
11685
|
},
|
|
10951
|
-
"
|
|
11686
|
+
"title": {
|
|
10952
11687
|
"type": "string"
|
|
10953
11688
|
},
|
|
10954
|
-
"
|
|
10955
|
-
"type": "
|
|
11689
|
+
"turn_count": {
|
|
11690
|
+
"type": "integer"
|
|
10956
11691
|
},
|
|
10957
|
-
"
|
|
10958
|
-
"type": "
|
|
10959
|
-
"format": "
|
|
11692
|
+
"created_at": {
|
|
11693
|
+
"type": "string",
|
|
11694
|
+
"format": "date-time"
|
|
11695
|
+
},
|
|
11696
|
+
"last_activity_at": {
|
|
11697
|
+
"type": "string",
|
|
11698
|
+
"format": "date-time"
|
|
10960
11699
|
}
|
|
10961
11700
|
}
|
|
10962
11701
|
}
|
|
11702
|
+
},
|
|
11703
|
+
"next_cursor": {
|
|
11704
|
+
"type": "string",
|
|
11705
|
+
"format": "date-time",
|
|
11706
|
+
"nullable": true,
|
|
11707
|
+
"description": "Pass as `cursor` for the next page; null when this is the last page."
|
|
10963
11708
|
}
|
|
10964
11709
|
}
|
|
11710
|
+
},
|
|
11711
|
+
"example": {
|
|
11712
|
+
"conversations": [
|
|
11713
|
+
{
|
|
11714
|
+
"conversation_id": "8c4f2a1e-0b6d-4e2f-9a3c-5d7e1f2a3b4c",
|
|
11715
|
+
"title": "Overdue invoices in Q3",
|
|
11716
|
+
"turn_count": 3,
|
|
11717
|
+
"created_at": "2026-07-30T09:12:00.000Z",
|
|
11718
|
+
"last_activity_at": "2026-07-30T09:41:00.000Z"
|
|
11719
|
+
}
|
|
11720
|
+
],
|
|
11721
|
+
"next_cursor": null
|
|
10965
11722
|
}
|
|
10966
11723
|
}
|
|
10967
11724
|
}
|
|
@@ -10969,64 +11726,109 @@
|
|
|
10969
11726
|
"401": {
|
|
10970
11727
|
"$ref": "#/components/responses/Unauthorized"
|
|
10971
11728
|
},
|
|
10972
|
-
"404": {
|
|
10973
|
-
"$ref": "#/components/responses/NotFound"
|
|
10974
|
-
},
|
|
10975
11729
|
"429": {
|
|
10976
11730
|
"$ref": "#/components/responses/RateLimitExceeded"
|
|
10977
11731
|
}
|
|
10978
11732
|
}
|
|
10979
11733
|
}
|
|
10980
11734
|
},
|
|
10981
|
-
"/v1/
|
|
10982
|
-
"
|
|
10983
|
-
"operationId": "
|
|
10984
|
-
"summary": "
|
|
10985
|
-
"description": "
|
|
11735
|
+
"/v1/agent/conversations/{id}": {
|
|
11736
|
+
"get": {
|
|
11737
|
+
"operationId": "getAgentConversation",
|
|
11738
|
+
"summary": "Get one conversation with its asks",
|
|
11739
|
+
"description": "One conversation with its asks in order, oldest first. Each turn carries the\nquestion, its lifecycle status (`processing` | `completed` | `error`), and the\nanswer text once settled. Tenant-isolated and partition-scoped: a conversation\nof another workspace, or of another `on_behalf_of` partition, reads as not\nfound.\n",
|
|
10986
11740
|
"tags": [
|
|
10987
|
-
"
|
|
11741
|
+
"Agent"
|
|
10988
11742
|
],
|
|
10989
11743
|
"parameters": [
|
|
10990
11744
|
{
|
|
10991
|
-
"name": "
|
|
11745
|
+
"name": "id",
|
|
10992
11746
|
"in": "path",
|
|
10993
11747
|
"required": true,
|
|
10994
11748
|
"schema": {
|
|
10995
11749
|
"type": "string",
|
|
10996
11750
|
"format": "uuid"
|
|
10997
|
-
}
|
|
10998
|
-
"description": "Case UUID (the stable resource id)."
|
|
11751
|
+
}
|
|
10999
11752
|
},
|
|
11000
11753
|
{
|
|
11001
|
-
"name": "
|
|
11002
|
-
"in": "
|
|
11003
|
-
"required": true,
|
|
11754
|
+
"name": "on_behalf_of",
|
|
11755
|
+
"in": "query",
|
|
11004
11756
|
"schema": {
|
|
11005
11757
|
"type": "string",
|
|
11006
11758
|
"format": "uuid"
|
|
11007
11759
|
},
|
|
11008
|
-
"description": "
|
|
11760
|
+
"description": "Read from the conversation partition of this workspace user."
|
|
11009
11761
|
}
|
|
11010
11762
|
],
|
|
11011
11763
|
"responses": {
|
|
11012
11764
|
"200": {
|
|
11013
|
-
"description": "
|
|
11765
|
+
"description": "The conversation and its turns.",
|
|
11014
11766
|
"content": {
|
|
11015
11767
|
"application/json": {
|
|
11016
11768
|
"schema": {
|
|
11017
11769
|
"type": "object",
|
|
11018
11770
|
"properties": {
|
|
11019
|
-
"
|
|
11020
|
-
"type": "
|
|
11771
|
+
"conversation_id": {
|
|
11772
|
+
"type": "string",
|
|
11773
|
+
"format": "uuid"
|
|
11774
|
+
},
|
|
11775
|
+
"title": {
|
|
11776
|
+
"type": "string"
|
|
11777
|
+
},
|
|
11778
|
+
"created_at": {
|
|
11779
|
+
"type": "string",
|
|
11780
|
+
"format": "date-time"
|
|
11781
|
+
},
|
|
11782
|
+
"turns": {
|
|
11783
|
+
"type": "array",
|
|
11784
|
+
"items": {
|
|
11785
|
+
"type": "object",
|
|
11786
|
+
"properties": {
|
|
11787
|
+
"ask_id": {
|
|
11788
|
+
"type": "string",
|
|
11789
|
+
"format": "uuid"
|
|
11790
|
+
},
|
|
11791
|
+
"question": {
|
|
11792
|
+
"type": "string"
|
|
11793
|
+
},
|
|
11794
|
+
"status": {
|
|
11795
|
+
"type": "string",
|
|
11796
|
+
"enum": [
|
|
11797
|
+
"processing",
|
|
11798
|
+
"completed",
|
|
11799
|
+
"error"
|
|
11800
|
+
]
|
|
11801
|
+
},
|
|
11802
|
+
"answer": {
|
|
11803
|
+
"type": "string",
|
|
11804
|
+
"description": "The answer markdown; empty until the turn completes."
|
|
11805
|
+
},
|
|
11806
|
+
"created_at": {
|
|
11807
|
+
"type": "string",
|
|
11808
|
+
"format": "date-time"
|
|
11809
|
+
}
|
|
11810
|
+
}
|
|
11811
|
+
}
|
|
11021
11812
|
}
|
|
11022
11813
|
}
|
|
11814
|
+
},
|
|
11815
|
+
"example": {
|
|
11816
|
+
"conversation_id": "8c4f2a1e-0b6d-4e2f-9a3c-5d7e1f2a3b4c",
|
|
11817
|
+
"title": "Overdue invoices in Q3",
|
|
11818
|
+
"created_at": "2026-07-30T09:12:00.000Z",
|
|
11819
|
+
"turns": [
|
|
11820
|
+
{
|
|
11821
|
+
"ask_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
|
|
11822
|
+
"question": "Which invoices in this pipeline are overdue, and by how much?",
|
|
11823
|
+
"status": "completed",
|
|
11824
|
+
"answer": "Two invoices are overdue: INV-1041 by 12 days and INV-1055 by 3 days.",
|
|
11825
|
+
"created_at": "2026-07-30T09:12:00.000Z"
|
|
11826
|
+
}
|
|
11827
|
+
]
|
|
11023
11828
|
}
|
|
11024
11829
|
}
|
|
11025
11830
|
}
|
|
11026
11831
|
},
|
|
11027
|
-
"400": {
|
|
11028
|
-
"$ref": "#/components/responses/BadRequest"
|
|
11029
|
-
},
|
|
11030
11832
|
"401": {
|
|
11031
11833
|
"$ref": "#/components/responses/Unauthorized"
|
|
11032
11834
|
},
|
|
@@ -11037,57 +11839,80 @@
|
|
|
11037
11839
|
"$ref": "#/components/responses/RateLimitExceeded"
|
|
11038
11840
|
}
|
|
11039
11841
|
}
|
|
11040
|
-
}
|
|
11041
|
-
|
|
11042
|
-
|
|
11043
|
-
|
|
11044
|
-
"
|
|
11045
|
-
"summary": "Reject a case edge",
|
|
11046
|
-
"description": "Reject a proposed entity edge between documents in this case.",
|
|
11842
|
+
},
|
|
11843
|
+
"patch": {
|
|
11844
|
+
"operationId": "renameAgentConversation",
|
|
11845
|
+
"summary": "Rename a conversation",
|
|
11846
|
+
"description": "Rename a conversation. The title is trimmed server-side and capped at 300\ncharacters. Requires the `write` scope.\n",
|
|
11047
11847
|
"tags": [
|
|
11048
|
-
"
|
|
11848
|
+
"Agent"
|
|
11049
11849
|
],
|
|
11050
11850
|
"parameters": [
|
|
11051
11851
|
{
|
|
11052
|
-
"name": "
|
|
11852
|
+
"name": "id",
|
|
11053
11853
|
"in": "path",
|
|
11054
11854
|
"required": true,
|
|
11055
11855
|
"schema": {
|
|
11056
11856
|
"type": "string",
|
|
11057
11857
|
"format": "uuid"
|
|
11058
|
-
}
|
|
11059
|
-
"description": "Case UUID (the stable resource id)."
|
|
11858
|
+
}
|
|
11060
11859
|
},
|
|
11061
11860
|
{
|
|
11062
|
-
"name": "
|
|
11063
|
-
"in": "
|
|
11064
|
-
"required": true,
|
|
11861
|
+
"name": "on_behalf_of",
|
|
11862
|
+
"in": "query",
|
|
11065
11863
|
"schema": {
|
|
11066
11864
|
"type": "string",
|
|
11067
11865
|
"format": "uuid"
|
|
11068
11866
|
},
|
|
11069
|
-
"description": "
|
|
11867
|
+
"description": "Rename within the conversation partition of this workspace user."
|
|
11070
11868
|
}
|
|
11071
11869
|
],
|
|
11870
|
+
"requestBody": {
|
|
11871
|
+
"required": true,
|
|
11872
|
+
"content": {
|
|
11873
|
+
"application/json": {
|
|
11874
|
+
"schema": {
|
|
11875
|
+
"type": "object",
|
|
11876
|
+
"required": [
|
|
11877
|
+
"title"
|
|
11878
|
+
],
|
|
11879
|
+
"properties": {
|
|
11880
|
+
"title": {
|
|
11881
|
+
"type": "string",
|
|
11882
|
+
"maxLength": 300
|
|
11883
|
+
}
|
|
11884
|
+
}
|
|
11885
|
+
},
|
|
11886
|
+
"example": {
|
|
11887
|
+
"title": "Q3 collections review"
|
|
11888
|
+
}
|
|
11889
|
+
}
|
|
11890
|
+
}
|
|
11891
|
+
},
|
|
11072
11892
|
"responses": {
|
|
11073
11893
|
"200": {
|
|
11074
|
-
"description": "
|
|
11894
|
+
"description": "The conversation's new title.",
|
|
11075
11895
|
"content": {
|
|
11076
11896
|
"application/json": {
|
|
11077
11897
|
"schema": {
|
|
11078
11898
|
"type": "object",
|
|
11079
11899
|
"properties": {
|
|
11080
|
-
"
|
|
11081
|
-
"type": "
|
|
11900
|
+
"conversation_id": {
|
|
11901
|
+
"type": "string",
|
|
11902
|
+
"format": "uuid"
|
|
11903
|
+
},
|
|
11904
|
+
"title": {
|
|
11905
|
+
"type": "string"
|
|
11082
11906
|
}
|
|
11083
11907
|
}
|
|
11908
|
+
},
|
|
11909
|
+
"example": {
|
|
11910
|
+
"conversation_id": "8c4f2a1e-0b6d-4e2f-9a3c-5d7e1f2a3b4c",
|
|
11911
|
+
"title": "Q3 collections review"
|
|
11084
11912
|
}
|
|
11085
11913
|
}
|
|
11086
11914
|
}
|
|
11087
11915
|
},
|
|
11088
|
-
"400": {
|
|
11089
|
-
"$ref": "#/components/responses/BadRequest"
|
|
11090
|
-
},
|
|
11091
11916
|
"401": {
|
|
11092
11917
|
"$ref": "#/components/responses/Unauthorized"
|
|
11093
11918
|
},
|
|
@@ -11098,124 +11923,114 @@
|
|
|
11098
11923
|
"$ref": "#/components/responses/RateLimitExceeded"
|
|
11099
11924
|
}
|
|
11100
11925
|
}
|
|
11101
|
-
}
|
|
11102
|
-
|
|
11103
|
-
|
|
11104
|
-
|
|
11105
|
-
"
|
|
11106
|
-
"summary": "Get case anomalies",
|
|
11107
|
-
"description": "Detector anomalies for the case (the risk surface) — field conflicts, divergent shared keys, suspicious value reuse, missing-document-type signals — plus open dangling-reference findings and the matched workflow template. Computed on-read from the case's field occurrences; no LLM, nothing persisted.\n",
|
|
11926
|
+
},
|
|
11927
|
+
"delete": {
|
|
11928
|
+
"operationId": "deleteAgentConversation",
|
|
11929
|
+
"summary": "Delete a conversation",
|
|
11930
|
+
"description": "Delete a conversation. It disappears from the list and can no longer be\ncontinued; the asks themselves stay readable by id via `GET /v1/ask/{id}`,\nbecause they are the caller's own answer history. Requires the `write` scope.\n",
|
|
11108
11931
|
"tags": [
|
|
11109
|
-
"
|
|
11110
|
-
],
|
|
11111
|
-
"security": [
|
|
11112
|
-
{
|
|
11113
|
-
"BearerAuth": []
|
|
11114
|
-
}
|
|
11932
|
+
"Agent"
|
|
11115
11933
|
],
|
|
11116
11934
|
"parameters": [
|
|
11117
11935
|
{
|
|
11118
|
-
"name": "
|
|
11936
|
+
"name": "id",
|
|
11119
11937
|
"in": "path",
|
|
11120
11938
|
"required": true,
|
|
11939
|
+
"schema": {
|
|
11940
|
+
"type": "string",
|
|
11941
|
+
"format": "uuid"
|
|
11942
|
+
}
|
|
11943
|
+
},
|
|
11944
|
+
{
|
|
11945
|
+
"name": "on_behalf_of",
|
|
11946
|
+
"in": "query",
|
|
11121
11947
|
"schema": {
|
|
11122
11948
|
"type": "string",
|
|
11123
11949
|
"format": "uuid"
|
|
11124
11950
|
},
|
|
11125
|
-
"description": "
|
|
11951
|
+
"description": "Delete within the conversation partition of this workspace user."
|
|
11126
11952
|
}
|
|
11127
11953
|
],
|
|
11128
11954
|
"responses": {
|
|
11129
11955
|
"200": {
|
|
11130
|
-
"description": "
|
|
11956
|
+
"description": "The conversation was deleted.",
|
|
11131
11957
|
"content": {
|
|
11132
11958
|
"application/json": {
|
|
11133
11959
|
"schema": {
|
|
11134
11960
|
"type": "object",
|
|
11135
11961
|
"properties": {
|
|
11136
|
-
"
|
|
11137
|
-
"type": "
|
|
11138
|
-
"
|
|
11139
|
-
"type": "object",
|
|
11140
|
-
"properties": {
|
|
11141
|
-
"type": {
|
|
11142
|
-
"type": "string"
|
|
11143
|
-
},
|
|
11144
|
-
"severity": {
|
|
11145
|
-
"type": "string",
|
|
11146
|
-
"enum": [
|
|
11147
|
-
"critical",
|
|
11148
|
-
"warning",
|
|
11149
|
-
"info"
|
|
11150
|
-
]
|
|
11151
|
-
},
|
|
11152
|
-
"title": {
|
|
11153
|
-
"type": "string"
|
|
11154
|
-
},
|
|
11155
|
-
"description": {
|
|
11156
|
-
"type": "string"
|
|
11157
|
-
},
|
|
11158
|
-
"document_ids": {
|
|
11159
|
-
"type": "array",
|
|
11160
|
-
"items": {
|
|
11161
|
-
"type": "string",
|
|
11162
|
-
"format": "uuid"
|
|
11163
|
-
}
|
|
11164
|
-
},
|
|
11165
|
-
"targets": {
|
|
11166
|
-
"type": "array",
|
|
11167
|
-
"items": {
|
|
11168
|
-
"type": "object",
|
|
11169
|
-
"properties": {
|
|
11170
|
-
"document_id": {
|
|
11171
|
-
"type": "string",
|
|
11172
|
-
"format": "uuid"
|
|
11173
|
-
},
|
|
11174
|
-
"field": {
|
|
11175
|
-
"type": "string"
|
|
11176
|
-
},
|
|
11177
|
-
"value": {
|
|
11178
|
-
"type": "string"
|
|
11179
|
-
}
|
|
11180
|
-
}
|
|
11181
|
-
}
|
|
11182
|
-
}
|
|
11183
|
-
}
|
|
11184
|
-
}
|
|
11185
|
-
},
|
|
11186
|
-
"findings": {
|
|
11187
|
-
"type": "array",
|
|
11188
|
-
"items": {
|
|
11189
|
-
"type": "object"
|
|
11190
|
-
}
|
|
11962
|
+
"conversation_id": {
|
|
11963
|
+
"type": "string",
|
|
11964
|
+
"format": "uuid"
|
|
11191
11965
|
},
|
|
11192
|
-
"
|
|
11193
|
-
"type": "
|
|
11194
|
-
"nullable": true
|
|
11966
|
+
"deleted": {
|
|
11967
|
+
"type": "boolean"
|
|
11195
11968
|
}
|
|
11196
11969
|
}
|
|
11970
|
+
},
|
|
11971
|
+
"example": {
|
|
11972
|
+
"conversation_id": "8c4f2a1e-0b6d-4e2f-9a3c-5d7e1f2a3b4c",
|
|
11973
|
+
"deleted": true
|
|
11197
11974
|
}
|
|
11198
11975
|
}
|
|
11199
11976
|
}
|
|
11200
11977
|
},
|
|
11978
|
+
"401": {
|
|
11979
|
+
"$ref": "#/components/responses/Unauthorized"
|
|
11980
|
+
},
|
|
11201
11981
|
"404": {
|
|
11202
11982
|
"$ref": "#/components/responses/NotFound"
|
|
11983
|
+
},
|
|
11984
|
+
"429": {
|
|
11985
|
+
"$ref": "#/components/responses/RateLimitExceeded"
|
|
11203
11986
|
}
|
|
11204
11987
|
}
|
|
11205
11988
|
}
|
|
11206
11989
|
},
|
|
11207
|
-
"/v1/
|
|
11990
|
+
"/v1/exports/{path}": {
|
|
11208
11991
|
"get": {
|
|
11209
|
-
"operationId": "
|
|
11210
|
-
"summary": "
|
|
11211
|
-
"
|
|
11992
|
+
"operationId": "deprecatedExportsGet",
|
|
11993
|
+
"summary": "Deprecated exports endpoint (any verb)",
|
|
11994
|
+
"deprecated": true,
|
|
11995
|
+
"description": "The `/v1/exports/*` namespace was retired on 2026-04-21 in favour of the unified\n`/v1/delivery/*` surface. All requests against any verb of this path return\n`410 Gone` with a pointer to the replacement endpoint. This entry exists so SDK\ngenerators see the deprecation flag; do not call.\n",
|
|
11212
11996
|
"tags": [
|
|
11213
|
-
"
|
|
11997
|
+
"Delivery"
|
|
11214
11998
|
],
|
|
11215
|
-
"
|
|
11999
|
+
"parameters": [
|
|
11216
12000
|
{
|
|
11217
|
-
"
|
|
12001
|
+
"name": "path",
|
|
12002
|
+
"in": "path",
|
|
12003
|
+
"required": true,
|
|
12004
|
+
"schema": {
|
|
12005
|
+
"type": "string"
|
|
12006
|
+
},
|
|
12007
|
+
"description": "Any sub-path under `/v1/exports/`."
|
|
12008
|
+
}
|
|
12009
|
+
],
|
|
12010
|
+
"x-sunset": "2026-04-21",
|
|
12011
|
+
"responses": {
|
|
12012
|
+
"410": {
|
|
12013
|
+
"description": "Gone — use `/v1/delivery/*` instead.",
|
|
12014
|
+
"content": {
|
|
12015
|
+
"application/json": {
|
|
12016
|
+
"schema": {
|
|
12017
|
+
"$ref": "#/components/schemas/ErrorResponse"
|
|
12018
|
+
}
|
|
12019
|
+
}
|
|
12020
|
+
}
|
|
11218
12021
|
}
|
|
12022
|
+
}
|
|
12023
|
+
}
|
|
12024
|
+
},
|
|
12025
|
+
"/v1/cases/{key}/status": {
|
|
12026
|
+
"patch": {
|
|
12027
|
+
"operationId": "updateCaseStatus",
|
|
12028
|
+
"x-required-scopes": [
|
|
12029
|
+
"write"
|
|
12030
|
+
],
|
|
12031
|
+
"summary": "Update case status",
|
|
12032
|
+
"tags": [
|
|
12033
|
+
"Cases"
|
|
11219
12034
|
],
|
|
11220
12035
|
"parameters": [
|
|
11221
12036
|
{
|
|
@@ -11229,76 +12044,136 @@
|
|
|
11229
12044
|
"description": "Case UUID (the stable resource id)."
|
|
11230
12045
|
}
|
|
11231
12046
|
],
|
|
11232
|
-
"
|
|
11233
|
-
"
|
|
11234
|
-
|
|
12047
|
+
"requestBody": {
|
|
12048
|
+
"required": true,
|
|
12049
|
+
"content": {
|
|
12050
|
+
"application/json": {
|
|
12051
|
+
"schema": {
|
|
12052
|
+
"type": "object",
|
|
12053
|
+
"required": [
|
|
12054
|
+
"status"
|
|
12055
|
+
],
|
|
12056
|
+
"properties": {
|
|
12057
|
+
"status": {
|
|
12058
|
+
"type": "string",
|
|
12059
|
+
"example": "completed",
|
|
12060
|
+
"description": "New status (e.g. open, in_review, resolved, archived)."
|
|
12061
|
+
}
|
|
12062
|
+
}
|
|
12063
|
+
}
|
|
12064
|
+
}
|
|
12065
|
+
}
|
|
12066
|
+
},
|
|
12067
|
+
"responses": {
|
|
12068
|
+
"200": {
|
|
12069
|
+
"description": "Case status updated.",
|
|
12070
|
+
"content": {
|
|
12071
|
+
"application/json": {
|
|
12072
|
+
"schema": {
|
|
12073
|
+
"$ref": "#/components/schemas/CaseDetailResponse"
|
|
12074
|
+
}
|
|
12075
|
+
}
|
|
12076
|
+
}
|
|
12077
|
+
},
|
|
12078
|
+
"400": {
|
|
12079
|
+
"$ref": "#/components/responses/BadRequest"
|
|
12080
|
+
},
|
|
12081
|
+
"401": {
|
|
12082
|
+
"$ref": "#/components/responses/Unauthorized"
|
|
12083
|
+
},
|
|
12084
|
+
"404": {
|
|
12085
|
+
"$ref": "#/components/responses/NotFound"
|
|
12086
|
+
},
|
|
12087
|
+
"429": {
|
|
12088
|
+
"$ref": "#/components/responses/RateLimitExceeded"
|
|
12089
|
+
}
|
|
12090
|
+
}
|
|
12091
|
+
}
|
|
12092
|
+
},
|
|
12093
|
+
"/v1/cases/{key}/edges": {
|
|
12094
|
+
"get": {
|
|
12095
|
+
"operationId": "getCaseEdges",
|
|
12096
|
+
"x-required-scopes": [
|
|
12097
|
+
"read"
|
|
12098
|
+
],
|
|
12099
|
+
"summary": "Get case edges",
|
|
12100
|
+
"description": "Returns the entity edges (evidence chain) connecting documents within the case.",
|
|
12101
|
+
"tags": [
|
|
12102
|
+
"Cases"
|
|
12103
|
+
],
|
|
12104
|
+
"parameters": [
|
|
12105
|
+
{
|
|
12106
|
+
"name": "key",
|
|
12107
|
+
"in": "path",
|
|
12108
|
+
"required": true,
|
|
12109
|
+
"schema": {
|
|
12110
|
+
"type": "string",
|
|
12111
|
+
"format": "uuid"
|
|
12112
|
+
},
|
|
12113
|
+
"description": "Case UUID (the stable resource id)."
|
|
12114
|
+
}
|
|
12115
|
+
],
|
|
12116
|
+
"responses": {
|
|
12117
|
+
"200": {
|
|
12118
|
+
"description": "Case edges.",
|
|
11235
12119
|
"content": {
|
|
11236
12120
|
"application/json": {
|
|
11237
12121
|
"schema": {
|
|
11238
12122
|
"type": "object",
|
|
11239
12123
|
"properties": {
|
|
11240
|
-
"
|
|
12124
|
+
"data": {
|
|
11241
12125
|
"type": "array",
|
|
11242
12126
|
"items": {
|
|
11243
12127
|
"type": "object",
|
|
11244
12128
|
"properties": {
|
|
11245
|
-
"
|
|
12129
|
+
"source_document_id": {
|
|
11246
12130
|
"type": "string",
|
|
11247
|
-
"format": "uuid"
|
|
12131
|
+
"format": "uuid",
|
|
12132
|
+
"example": "a1b2c3d4-e5f6-7890-abcd-ef1234567890"
|
|
11248
12133
|
},
|
|
11249
|
-
"
|
|
12134
|
+
"target_document_id": {
|
|
11250
12135
|
"type": "string",
|
|
11251
12136
|
"format": "uuid",
|
|
11252
|
-
"
|
|
11253
|
-
},
|
|
11254
|
-
"via_field": {
|
|
11255
|
-
"type": "string"
|
|
12137
|
+
"example": "a1b2c3d4-e5f6-7890-abcd-ef1234567890"
|
|
11256
12138
|
},
|
|
11257
|
-
"
|
|
12139
|
+
"entity_value": {
|
|
11258
12140
|
"type": "string"
|
|
11259
12141
|
},
|
|
11260
|
-
"
|
|
12142
|
+
"entity_type": {
|
|
11261
12143
|
"type": "string"
|
|
11262
12144
|
},
|
|
11263
12145
|
"confidence": {
|
|
11264
12146
|
"type": "number",
|
|
11265
|
-
"
|
|
11266
|
-
},
|
|
11267
|
-
"verdict": {
|
|
11268
|
-
"type": "string",
|
|
11269
|
-
"nullable": true
|
|
12147
|
+
"format": "float"
|
|
11270
12148
|
}
|
|
11271
12149
|
}
|
|
11272
12150
|
}
|
|
11273
|
-
},
|
|
11274
|
-
"gaps": {
|
|
11275
|
-
"type": "array",
|
|
11276
|
-
"items": {
|
|
11277
|
-
"type": "object"
|
|
11278
|
-
}
|
|
11279
|
-
},
|
|
11280
|
-
"documents": {
|
|
11281
|
-
"type": "array",
|
|
11282
|
-
"items": {
|
|
11283
|
-
"type": "object"
|
|
11284
|
-
}
|
|
11285
12151
|
}
|
|
11286
12152
|
}
|
|
11287
12153
|
}
|
|
11288
12154
|
}
|
|
11289
12155
|
}
|
|
11290
12156
|
},
|
|
12157
|
+
"401": {
|
|
12158
|
+
"$ref": "#/components/responses/Unauthorized"
|
|
12159
|
+
},
|
|
11291
12160
|
"404": {
|
|
11292
12161
|
"$ref": "#/components/responses/NotFound"
|
|
12162
|
+
},
|
|
12163
|
+
"429": {
|
|
12164
|
+
"$ref": "#/components/responses/RateLimitExceeded"
|
|
11293
12165
|
}
|
|
11294
12166
|
}
|
|
11295
12167
|
}
|
|
11296
12168
|
},
|
|
11297
|
-
"/v1/cases/{key}/
|
|
12169
|
+
"/v1/cases/{key}/edges/{edgeId}/confirm": {
|
|
11298
12170
|
"post": {
|
|
11299
|
-
"operationId": "
|
|
11300
|
-
"
|
|
11301
|
-
|
|
12171
|
+
"operationId": "confirmCaseEdge",
|
|
12172
|
+
"x-required-scopes": [
|
|
12173
|
+
"write"
|
|
12174
|
+
],
|
|
12175
|
+
"summary": "Confirm a case edge",
|
|
12176
|
+
"description": "Confirm a proposed entity edge between documents in this case.",
|
|
11302
12177
|
"tags": [
|
|
11303
12178
|
"Cases"
|
|
11304
12179
|
],
|
|
@@ -11312,67 +12187,28 @@
|
|
|
11312
12187
|
"format": "uuid"
|
|
11313
12188
|
},
|
|
11314
12189
|
"description": "Case UUID (the stable resource id)."
|
|
12190
|
+
},
|
|
12191
|
+
{
|
|
12192
|
+
"name": "edgeId",
|
|
12193
|
+
"in": "path",
|
|
12194
|
+
"required": true,
|
|
12195
|
+
"schema": {
|
|
12196
|
+
"type": "string",
|
|
12197
|
+
"format": "uuid"
|
|
12198
|
+
},
|
|
12199
|
+
"description": "Edge identifier from the case edges list."
|
|
11315
12200
|
}
|
|
11316
12201
|
],
|
|
11317
|
-
"requestBody": {
|
|
11318
|
-
"required": true,
|
|
11319
|
-
"content": {
|
|
11320
|
-
"application/json": {
|
|
11321
|
-
"schema": {
|
|
11322
|
-
"type": "object",
|
|
11323
|
-
"required": [
|
|
11324
|
-
"partition_b"
|
|
11325
|
-
],
|
|
11326
|
-
"properties": {
|
|
11327
|
-
"partition_b": {
|
|
11328
|
-
"type": "array",
|
|
11329
|
-
"items": {
|
|
11330
|
-
"type": "string",
|
|
11331
|
-
"format": "uuid",
|
|
11332
|
-
"example": "a1b2c3d4-e5f6-7890-abcd-ef1234567890"
|
|
11333
|
-
},
|
|
11334
|
-
"description": "Document IDs that move out into the newly-created case (non-empty strict subset). Everything not listed stays on the existing case."
|
|
11335
|
-
},
|
|
11336
|
-
"partition_a": {
|
|
11337
|
-
"type": "array",
|
|
11338
|
-
"items": {
|
|
11339
|
-
"type": "string",
|
|
11340
|
-
"format": "uuid",
|
|
11341
|
-
"example": "a1b2c3d4-e5f6-7890-abcd-ef1234567890"
|
|
11342
|
-
},
|
|
11343
|
-
"description": "Informational only — the kept documents are derived as the complement of partition_b."
|
|
11344
|
-
}
|
|
11345
|
-
}
|
|
11346
|
-
}
|
|
11347
|
-
}
|
|
11348
|
-
}
|
|
11349
|
-
},
|
|
11350
12202
|
"responses": {
|
|
11351
12203
|
"200": {
|
|
11352
|
-
"description": "
|
|
12204
|
+
"description": "Edge confirmed.",
|
|
11353
12205
|
"content": {
|
|
11354
12206
|
"application/json": {
|
|
11355
12207
|
"schema": {
|
|
11356
12208
|
"type": "object",
|
|
11357
|
-
"required": [
|
|
11358
|
-
"source_id",
|
|
11359
|
-
"new_case_id",
|
|
11360
|
-
"moved"
|
|
11361
|
-
],
|
|
11362
12209
|
"properties": {
|
|
11363
|
-
"
|
|
11364
|
-
"type": "
|
|
11365
|
-
"format": "uuid",
|
|
11366
|
-
"description": "UUID of the existing case (retains the documents not listed in partition_b)."
|
|
11367
|
-
},
|
|
11368
|
-
"new_case_id": {
|
|
11369
|
-
"type": "string",
|
|
11370
|
-
"format": "uuid",
|
|
11371
|
-
"description": "UUID of the newly created case holding the partition_b documents."
|
|
11372
|
-
},
|
|
11373
|
-
"moved": {
|
|
11374
|
-
"type": "integer",
|
|
11375
|
-
"description": "Count of documents moved into the new case."
|
|
12210
|
+
"success": {
|
|
12211
|
+
"type": "boolean"
|
|
11376
12212
|
}
|
|
11377
12213
|
}
|
|
11378
12214
|
}
|
|
@@ -11394,73 +12230,51 @@
|
|
|
11394
12230
|
}
|
|
11395
12231
|
}
|
|
11396
12232
|
},
|
|
11397
|
-
"/v1/cases/
|
|
12233
|
+
"/v1/cases/{key}/edges/{edgeId}/reject": {
|
|
11398
12234
|
"post": {
|
|
11399
|
-
"operationId": "
|
|
11400
|
-
"
|
|
11401
|
-
|
|
12235
|
+
"operationId": "rejectCaseEdge",
|
|
12236
|
+
"x-required-scopes": [
|
|
12237
|
+
"write"
|
|
12238
|
+
],
|
|
12239
|
+
"summary": "Reject a case edge",
|
|
12240
|
+
"description": "Reject a proposed entity edge between documents in this case.",
|
|
11402
12241
|
"tags": [
|
|
11403
12242
|
"Cases"
|
|
11404
12243
|
],
|
|
11405
|
-
"
|
|
11406
|
-
|
|
11407
|
-
|
|
11408
|
-
"
|
|
11409
|
-
|
|
11410
|
-
|
|
11411
|
-
|
|
11412
|
-
|
|
11413
|
-
|
|
11414
|
-
|
|
11415
|
-
|
|
11416
|
-
|
|
11417
|
-
|
|
11418
|
-
|
|
11419
|
-
|
|
11420
|
-
|
|
11421
|
-
|
|
11422
|
-
|
|
11423
|
-
|
|
11424
|
-
|
|
11425
|
-
}
|
|
11426
|
-
}
|
|
11427
|
-
}
|
|
11428
|
-
}
|
|
12244
|
+
"parameters": [
|
|
12245
|
+
{
|
|
12246
|
+
"name": "key",
|
|
12247
|
+
"in": "path",
|
|
12248
|
+
"required": true,
|
|
12249
|
+
"schema": {
|
|
12250
|
+
"type": "string",
|
|
12251
|
+
"format": "uuid"
|
|
12252
|
+
},
|
|
12253
|
+
"description": "Case UUID (the stable resource id)."
|
|
12254
|
+
},
|
|
12255
|
+
{
|
|
12256
|
+
"name": "edgeId",
|
|
12257
|
+
"in": "path",
|
|
12258
|
+
"required": true,
|
|
12259
|
+
"schema": {
|
|
12260
|
+
"type": "string",
|
|
12261
|
+
"format": "uuid"
|
|
12262
|
+
},
|
|
12263
|
+
"description": "Edge identifier from the case edges list."
|
|
11429
12264
|
}
|
|
11430
|
-
|
|
12265
|
+
],
|
|
11431
12266
|
"responses": {
|
|
11432
12267
|
"200": {
|
|
11433
|
-
"description": "
|
|
12268
|
+
"description": "Edge rejected.",
|
|
11434
12269
|
"content": {
|
|
11435
12270
|
"application/json": {
|
|
11436
12271
|
"schema": {
|
|
11437
12272
|
"type": "object",
|
|
11438
|
-
"description": "The surviving target case row.",
|
|
11439
12273
|
"properties": {
|
|
11440
|
-
"
|
|
11441
|
-
"type": "
|
|
11442
|
-
"format": "uuid"
|
|
11443
|
-
},
|
|
11444
|
-
"case_key": {
|
|
11445
|
-
"type": "string"
|
|
11446
|
-
},
|
|
11447
|
-
"status": {
|
|
11448
|
-
"type": "string",
|
|
11449
|
-
"enum": [
|
|
11450
|
-
"discovered",
|
|
11451
|
-
"confirmed",
|
|
11452
|
-
"active",
|
|
11453
|
-
"resolved"
|
|
11454
|
-
]
|
|
11455
|
-
},
|
|
11456
|
-
"display_name": {
|
|
11457
|
-
"type": [
|
|
11458
|
-
"string",
|
|
11459
|
-
"null"
|
|
11460
|
-
]
|
|
12274
|
+
"success": {
|
|
12275
|
+
"type": "boolean"
|
|
11461
12276
|
}
|
|
11462
|
-
}
|
|
11463
|
-
"additionalProperties": true
|
|
12277
|
+
}
|
|
11464
12278
|
}
|
|
11465
12279
|
}
|
|
11466
12280
|
}
|
|
@@ -11480,14 +12294,22 @@
|
|
|
11480
12294
|
}
|
|
11481
12295
|
}
|
|
11482
12296
|
},
|
|
11483
|
-
"/v1/cases/{key}/
|
|
12297
|
+
"/v1/cases/{key}/anomalies": {
|
|
11484
12298
|
"get": {
|
|
11485
|
-
"operationId": "
|
|
11486
|
-
"
|
|
11487
|
-
|
|
12299
|
+
"operationId": "getCaseAnomalies",
|
|
12300
|
+
"x-required-scopes": [
|
|
12301
|
+
"read"
|
|
12302
|
+
],
|
|
12303
|
+
"summary": "Get case anomalies",
|
|
12304
|
+
"description": "Detector anomalies for the case (the risk surface) — field conflicts, divergent shared keys, suspicious value reuse, missing-document-type signals — plus open dangling-reference findings and the matched workflow template. Computed on-read from the case's field occurrences; no LLM, nothing persisted.\n",
|
|
11488
12305
|
"tags": [
|
|
11489
12306
|
"Cases"
|
|
11490
12307
|
],
|
|
12308
|
+
"security": [
|
|
12309
|
+
{
|
|
12310
|
+
"BearerAuth": []
|
|
12311
|
+
}
|
|
12312
|
+
],
|
|
11491
12313
|
"parameters": [
|
|
11492
12314
|
{
|
|
11493
12315
|
"name": "key",
|
|
@@ -11502,59 +12324,99 @@
|
|
|
11502
12324
|
],
|
|
11503
12325
|
"responses": {
|
|
11504
12326
|
"200": {
|
|
11505
|
-
"description": "
|
|
12327
|
+
"description": "Anomalies, findings, and matched template.",
|
|
11506
12328
|
"content": {
|
|
11507
12329
|
"application/json": {
|
|
11508
12330
|
"schema": {
|
|
11509
12331
|
"type": "object",
|
|
11510
12332
|
"properties": {
|
|
11511
|
-
"
|
|
11512
|
-
"type": "number",
|
|
11513
|
-
"format": "float"
|
|
11514
|
-
},
|
|
11515
|
-
"expected_document_types": {
|
|
12333
|
+
"data": {
|
|
11516
12334
|
"type": "array",
|
|
11517
12335
|
"items": {
|
|
11518
|
-
"type": "
|
|
12336
|
+
"type": "object",
|
|
12337
|
+
"properties": {
|
|
12338
|
+
"type": {
|
|
12339
|
+
"type": "string"
|
|
12340
|
+
},
|
|
12341
|
+
"severity": {
|
|
12342
|
+
"type": "string",
|
|
12343
|
+
"enum": [
|
|
12344
|
+
"critical",
|
|
12345
|
+
"warning",
|
|
12346
|
+
"info"
|
|
12347
|
+
]
|
|
12348
|
+
},
|
|
12349
|
+
"title": {
|
|
12350
|
+
"type": "string"
|
|
12351
|
+
},
|
|
12352
|
+
"description": {
|
|
12353
|
+
"type": "string"
|
|
12354
|
+
},
|
|
12355
|
+
"document_ids": {
|
|
12356
|
+
"type": "array",
|
|
12357
|
+
"items": {
|
|
12358
|
+
"type": "string",
|
|
12359
|
+
"format": "uuid"
|
|
12360
|
+
}
|
|
12361
|
+
},
|
|
12362
|
+
"targets": {
|
|
12363
|
+
"type": "array",
|
|
12364
|
+
"items": {
|
|
12365
|
+
"type": "object",
|
|
12366
|
+
"properties": {
|
|
12367
|
+
"document_id": {
|
|
12368
|
+
"type": "string",
|
|
12369
|
+
"format": "uuid"
|
|
12370
|
+
},
|
|
12371
|
+
"field": {
|
|
12372
|
+
"type": "string"
|
|
12373
|
+
},
|
|
12374
|
+
"value": {
|
|
12375
|
+
"type": "string"
|
|
12376
|
+
}
|
|
12377
|
+
}
|
|
12378
|
+
}
|
|
12379
|
+
}
|
|
12380
|
+
}
|
|
11519
12381
|
}
|
|
11520
12382
|
},
|
|
11521
|
-
"
|
|
12383
|
+
"findings": {
|
|
11522
12384
|
"type": "array",
|
|
11523
12385
|
"items": {
|
|
11524
|
-
"type": "
|
|
12386
|
+
"type": "object"
|
|
11525
12387
|
}
|
|
11526
12388
|
},
|
|
11527
|
-
"
|
|
11528
|
-
"type": "
|
|
11529
|
-
"
|
|
11530
|
-
"type": "string"
|
|
11531
|
-
}
|
|
12389
|
+
"template": {
|
|
12390
|
+
"type": "object",
|
|
12391
|
+
"nullable": true
|
|
11532
12392
|
}
|
|
11533
12393
|
}
|
|
11534
12394
|
}
|
|
11535
12395
|
}
|
|
11536
12396
|
}
|
|
11537
12397
|
},
|
|
11538
|
-
"401": {
|
|
11539
|
-
"$ref": "#/components/responses/Unauthorized"
|
|
11540
|
-
},
|
|
11541
12398
|
"404": {
|
|
11542
12399
|
"$ref": "#/components/responses/NotFound"
|
|
11543
|
-
},
|
|
11544
|
-
"429": {
|
|
11545
|
-
"$ref": "#/components/responses/RateLimitExceeded"
|
|
11546
12400
|
}
|
|
11547
12401
|
}
|
|
11548
12402
|
}
|
|
11549
12403
|
},
|
|
11550
|
-
"/v1/cases/{key}/
|
|
11551
|
-
"
|
|
11552
|
-
"operationId": "
|
|
11553
|
-
"
|
|
11554
|
-
|
|
12404
|
+
"/v1/cases/{key}/evidence": {
|
|
12405
|
+
"get": {
|
|
12406
|
+
"operationId": "getCaseEvidence",
|
|
12407
|
+
"x-required-scopes": [
|
|
12408
|
+
"read"
|
|
12409
|
+
],
|
|
12410
|
+
"summary": "Get case evidence",
|
|
12411
|
+
"description": "The case's connective evidence: the shared-reference `connections` that join its documents (each with the via-field, value, kind, confidence, and any curator verdict), the open `gaps` (dangling references / missing documents), and the member documents. The synth case evidence model — why these documents form one case and what is still missing.\n",
|
|
11555
12412
|
"tags": [
|
|
11556
12413
|
"Cases"
|
|
11557
12414
|
],
|
|
12415
|
+
"security": [
|
|
12416
|
+
{
|
|
12417
|
+
"BearerAuth": []
|
|
12418
|
+
}
|
|
12419
|
+
],
|
|
11558
12420
|
"parameters": [
|
|
11559
12421
|
{
|
|
11560
12422
|
"name": "key",
|
|
@@ -11565,49 +12427,81 @@
|
|
|
11565
12427
|
"format": "uuid"
|
|
11566
12428
|
},
|
|
11567
12429
|
"description": "Case UUID (the stable resource id)."
|
|
11568
|
-
},
|
|
11569
|
-
{
|
|
11570
|
-
"name": "docId",
|
|
11571
|
-
"in": "path",
|
|
11572
|
-
"required": true,
|
|
11573
|
-
"schema": {
|
|
11574
|
-
"type": "string",
|
|
11575
|
-
"format": "uuid"
|
|
11576
|
-
},
|
|
11577
|
-
"description": "Document identifier to pin."
|
|
11578
12430
|
}
|
|
11579
12431
|
],
|
|
11580
12432
|
"responses": {
|
|
11581
12433
|
"200": {
|
|
11582
|
-
"description": "
|
|
12434
|
+
"description": "Connections, gaps, and documents.",
|
|
11583
12435
|
"content": {
|
|
11584
12436
|
"application/json": {
|
|
11585
12437
|
"schema": {
|
|
11586
|
-
"
|
|
12438
|
+
"type": "object",
|
|
12439
|
+
"properties": {
|
|
12440
|
+
"connections": {
|
|
12441
|
+
"type": "array",
|
|
12442
|
+
"items": {
|
|
12443
|
+
"type": "object",
|
|
12444
|
+
"properties": {
|
|
12445
|
+
"document_a": {
|
|
12446
|
+
"type": "string",
|
|
12447
|
+
"format": "uuid"
|
|
12448
|
+
},
|
|
12449
|
+
"document_b": {
|
|
12450
|
+
"type": "string",
|
|
12451
|
+
"format": "uuid",
|
|
12452
|
+
"nullable": true
|
|
12453
|
+
},
|
|
12454
|
+
"via_field": {
|
|
12455
|
+
"type": "string"
|
|
12456
|
+
},
|
|
12457
|
+
"value": {
|
|
12458
|
+
"type": "string"
|
|
12459
|
+
},
|
|
12460
|
+
"kind": {
|
|
12461
|
+
"type": "string"
|
|
12462
|
+
},
|
|
12463
|
+
"confidence": {
|
|
12464
|
+
"type": "number",
|
|
12465
|
+
"nullable": true
|
|
12466
|
+
},
|
|
12467
|
+
"verdict": {
|
|
12468
|
+
"type": "string",
|
|
12469
|
+
"nullable": true
|
|
12470
|
+
}
|
|
12471
|
+
}
|
|
12472
|
+
}
|
|
12473
|
+
},
|
|
12474
|
+
"gaps": {
|
|
12475
|
+
"type": "array",
|
|
12476
|
+
"items": {
|
|
12477
|
+
"type": "object"
|
|
12478
|
+
}
|
|
12479
|
+
},
|
|
12480
|
+
"documents": {
|
|
12481
|
+
"type": "array",
|
|
12482
|
+
"items": {
|
|
12483
|
+
"type": "object"
|
|
12484
|
+
}
|
|
12485
|
+
}
|
|
12486
|
+
}
|
|
11587
12487
|
}
|
|
11588
12488
|
}
|
|
11589
12489
|
}
|
|
11590
12490
|
},
|
|
11591
|
-
"400": {
|
|
11592
|
-
"$ref": "#/components/responses/BadRequest"
|
|
11593
|
-
},
|
|
11594
|
-
"401": {
|
|
11595
|
-
"$ref": "#/components/responses/Unauthorized"
|
|
11596
|
-
},
|
|
11597
12491
|
"404": {
|
|
11598
12492
|
"$ref": "#/components/responses/NotFound"
|
|
11599
|
-
},
|
|
11600
|
-
"429": {
|
|
11601
|
-
"$ref": "#/components/responses/RateLimitExceeded"
|
|
11602
12493
|
}
|
|
11603
12494
|
}
|
|
11604
12495
|
}
|
|
11605
12496
|
},
|
|
11606
|
-
"/v1/cases/{key}/
|
|
11607
|
-
"
|
|
11608
|
-
"operationId": "
|
|
11609
|
-
"
|
|
11610
|
-
|
|
12497
|
+
"/v1/cases/{key}/split": {
|
|
12498
|
+
"post": {
|
|
12499
|
+
"operationId": "splitCase",
|
|
12500
|
+
"x-required-scopes": [
|
|
12501
|
+
"write"
|
|
12502
|
+
],
|
|
12503
|
+
"summary": "Split a case",
|
|
12504
|
+
"description": "Split a case into two separate cases by partitioning its documents into two groups.",
|
|
11611
12505
|
"tags": [
|
|
11612
12506
|
"Cases"
|
|
11613
12507
|
],
|
|
@@ -11621,36 +12515,80 @@
|
|
|
11621
12515
|
"format": "uuid"
|
|
11622
12516
|
},
|
|
11623
12517
|
"description": "Case UUID (the stable resource id)."
|
|
11624
|
-
},
|
|
11625
|
-
{
|
|
11626
|
-
"name": "docId",
|
|
11627
|
-
"in": "path",
|
|
11628
|
-
"required": true,
|
|
11629
|
-
"schema": {
|
|
11630
|
-
"type": "string",
|
|
11631
|
-
"format": "uuid"
|
|
11632
|
-
},
|
|
11633
|
-
"description": "Document identifier to remove."
|
|
11634
12518
|
}
|
|
11635
12519
|
],
|
|
12520
|
+
"requestBody": {
|
|
12521
|
+
"required": true,
|
|
12522
|
+
"content": {
|
|
12523
|
+
"application/json": {
|
|
12524
|
+
"schema": {
|
|
12525
|
+
"type": "object",
|
|
12526
|
+
"required": [
|
|
12527
|
+
"partition_b"
|
|
12528
|
+
],
|
|
12529
|
+
"properties": {
|
|
12530
|
+
"partition_b": {
|
|
12531
|
+
"type": "array",
|
|
12532
|
+
"items": {
|
|
12533
|
+
"type": "string",
|
|
12534
|
+
"format": "uuid",
|
|
12535
|
+
"example": "a1b2c3d4-e5f6-7890-abcd-ef1234567890"
|
|
12536
|
+
},
|
|
12537
|
+
"description": "Document IDs that move out into the newly-created case (non-empty strict subset). Everything not listed stays on the existing case."
|
|
12538
|
+
},
|
|
12539
|
+
"partition_a": {
|
|
12540
|
+
"type": "array",
|
|
12541
|
+
"items": {
|
|
12542
|
+
"type": "string",
|
|
12543
|
+
"format": "uuid",
|
|
12544
|
+
"example": "a1b2c3d4-e5f6-7890-abcd-ef1234567890"
|
|
12545
|
+
},
|
|
12546
|
+
"description": "Informational only — the kept documents are derived as the complement of partition_b."
|
|
12547
|
+
}
|
|
12548
|
+
}
|
|
12549
|
+
}
|
|
12550
|
+
}
|
|
12551
|
+
}
|
|
12552
|
+
},
|
|
11636
12553
|
"responses": {
|
|
11637
12554
|
"200": {
|
|
11638
|
-
"description": "
|
|
12555
|
+
"description": "Case split.",
|
|
11639
12556
|
"content": {
|
|
11640
12557
|
"application/json": {
|
|
11641
12558
|
"schema": {
|
|
11642
|
-
"
|
|
11643
|
-
|
|
11644
|
-
|
|
11645
|
-
|
|
11646
|
-
|
|
11647
|
-
|
|
11648
|
-
|
|
11649
|
-
|
|
11650
|
-
|
|
11651
|
-
|
|
11652
|
-
|
|
11653
|
-
|
|
12559
|
+
"type": "object",
|
|
12560
|
+
"required": [
|
|
12561
|
+
"source_id",
|
|
12562
|
+
"new_case_id",
|
|
12563
|
+
"moved"
|
|
12564
|
+
],
|
|
12565
|
+
"properties": {
|
|
12566
|
+
"source_id": {
|
|
12567
|
+
"type": "string",
|
|
12568
|
+
"format": "uuid",
|
|
12569
|
+
"description": "UUID of the existing case (retains the documents not listed in partition_b)."
|
|
12570
|
+
},
|
|
12571
|
+
"new_case_id": {
|
|
12572
|
+
"type": "string",
|
|
12573
|
+
"format": "uuid",
|
|
12574
|
+
"description": "UUID of the newly created case holding the partition_b documents."
|
|
12575
|
+
},
|
|
12576
|
+
"moved": {
|
|
12577
|
+
"type": "integer",
|
|
12578
|
+
"description": "Count of documents moved into the new case."
|
|
12579
|
+
}
|
|
12580
|
+
}
|
|
12581
|
+
}
|
|
12582
|
+
}
|
|
12583
|
+
}
|
|
12584
|
+
},
|
|
12585
|
+
"400": {
|
|
12586
|
+
"$ref": "#/components/responses/BadRequest"
|
|
12587
|
+
},
|
|
12588
|
+
"401": {
|
|
12589
|
+
"$ref": "#/components/responses/Unauthorized"
|
|
12590
|
+
},
|
|
12591
|
+
"404": {
|
|
11654
12592
|
"$ref": "#/components/responses/NotFound"
|
|
11655
12593
|
},
|
|
11656
12594
|
"429": {
|
|
@@ -11659,30 +12597,83 @@
|
|
|
11659
12597
|
}
|
|
11660
12598
|
}
|
|
11661
12599
|
},
|
|
11662
|
-
"/v1/
|
|
12600
|
+
"/v1/cases/merge": {
|
|
11663
12601
|
"post": {
|
|
11664
|
-
"operationId": "
|
|
11665
|
-
"
|
|
11666
|
-
|
|
12602
|
+
"operationId": "mergeCases",
|
|
12603
|
+
"x-required-scopes": [
|
|
12604
|
+
"write"
|
|
12605
|
+
],
|
|
12606
|
+
"summary": "Merge two cases",
|
|
12607
|
+
"description": "Absorb case B into case A by passing both case UUIDs in the request\nbody. A's documents/links/findings are kept and B's are reparented onto\nA; B is tombstoned (excluded from future rebuilds, never deleted).\n",
|
|
11667
12608
|
"tags": [
|
|
11668
|
-
"
|
|
12609
|
+
"Cases"
|
|
11669
12610
|
],
|
|
11670
|
-
"
|
|
11671
|
-
|
|
11672
|
-
|
|
12611
|
+
"requestBody": {
|
|
12612
|
+
"required": true,
|
|
12613
|
+
"content": {
|
|
12614
|
+
"application/json": {
|
|
12615
|
+
"schema": {
|
|
12616
|
+
"type": "object",
|
|
12617
|
+
"required": [
|
|
12618
|
+
"case_key_a",
|
|
12619
|
+
"case_key_b"
|
|
12620
|
+
],
|
|
12621
|
+
"properties": {
|
|
12622
|
+
"case_key_a": {
|
|
12623
|
+
"type": "string",
|
|
12624
|
+
"format": "uuid",
|
|
12625
|
+
"description": "UUID of the surviving target case — receives the merged documents."
|
|
12626
|
+
},
|
|
12627
|
+
"case_key_b": {
|
|
12628
|
+
"type": "string",
|
|
12629
|
+
"format": "uuid",
|
|
12630
|
+
"description": "UUID of the absorbed case — its documents are folded into case A."
|
|
12631
|
+
}
|
|
12632
|
+
}
|
|
12633
|
+
}
|
|
12634
|
+
}
|
|
11673
12635
|
}
|
|
11674
|
-
|
|
12636
|
+
},
|
|
11675
12637
|
"responses": {
|
|
11676
12638
|
"200": {
|
|
11677
|
-
"description": "
|
|
12639
|
+
"description": "Cases merged. Returns the surviving (target) case row — an object\ncarrying at least `id`, `case_key`, `status`, `display_name`,\n`assignee`, `resolution_notes`, `title`, `blurb`, `summary`,\n`source`, `stale`, and build timestamps.\n",
|
|
11678
12640
|
"content": {
|
|
11679
12641
|
"application/json": {
|
|
11680
12642
|
"schema": {
|
|
11681
|
-
"
|
|
12643
|
+
"type": "object",
|
|
12644
|
+
"description": "The surviving target case row.",
|
|
12645
|
+
"properties": {
|
|
12646
|
+
"id": {
|
|
12647
|
+
"type": "string",
|
|
12648
|
+
"format": "uuid"
|
|
12649
|
+
},
|
|
12650
|
+
"case_key": {
|
|
12651
|
+
"type": "string"
|
|
12652
|
+
},
|
|
12653
|
+
"status": {
|
|
12654
|
+
"type": "string",
|
|
12655
|
+
"enum": [
|
|
12656
|
+
"discovered",
|
|
12657
|
+
"confirmed",
|
|
12658
|
+
"active",
|
|
12659
|
+
"resolved"
|
|
12660
|
+
]
|
|
12661
|
+
},
|
|
12662
|
+
"display_name": {
|
|
12663
|
+
"type": [
|
|
12664
|
+
"string",
|
|
12665
|
+
"null"
|
|
12666
|
+
]
|
|
12667
|
+
}
|
|
12668
|
+
},
|
|
12669
|
+
"additionalProperties": true
|
|
11682
12670
|
}
|
|
11683
12671
|
}
|
|
11684
12672
|
}
|
|
11685
12673
|
},
|
|
12674
|
+
"400": {
|
|
12675
|
+
"$ref": "#/components/responses/BadRequest"
|
|
12676
|
+
},
|
|
11686
12677
|
"401": {
|
|
11687
12678
|
"$ref": "#/components/responses/Unauthorized"
|
|
11688
12679
|
},
|
|
@@ -11695,26 +12686,60 @@
|
|
|
11695
12686
|
}
|
|
11696
12687
|
}
|
|
11697
12688
|
},
|
|
11698
|
-
"/v1/
|
|
11699
|
-
"
|
|
11700
|
-
"operationId": "
|
|
11701
|
-
"
|
|
11702
|
-
|
|
12689
|
+
"/v1/cases/{key}/completeness": {
|
|
12690
|
+
"get": {
|
|
12691
|
+
"operationId": "getCaseCompleteness",
|
|
12692
|
+
"x-required-scopes": [
|
|
12693
|
+
"read"
|
|
12694
|
+
],
|
|
12695
|
+
"summary": "Get case completeness",
|
|
12696
|
+
"description": "Returns a completeness assessment for the case (expected vs. present document types, missing fields).",
|
|
11703
12697
|
"tags": [
|
|
11704
|
-
"
|
|
12698
|
+
"Cases"
|
|
11705
12699
|
],
|
|
11706
12700
|
"parameters": [
|
|
11707
12701
|
{
|
|
11708
|
-
"
|
|
12702
|
+
"name": "key",
|
|
12703
|
+
"in": "path",
|
|
12704
|
+
"required": true,
|
|
12705
|
+
"schema": {
|
|
12706
|
+
"type": "string",
|
|
12707
|
+
"format": "uuid"
|
|
12708
|
+
},
|
|
12709
|
+
"description": "Case UUID (the stable resource id)."
|
|
11709
12710
|
}
|
|
11710
12711
|
],
|
|
11711
12712
|
"responses": {
|
|
11712
12713
|
"200": {
|
|
11713
|
-
"description": "
|
|
12714
|
+
"description": "Completeness assessment.",
|
|
11714
12715
|
"content": {
|
|
11715
12716
|
"application/json": {
|
|
11716
12717
|
"schema": {
|
|
11717
|
-
"
|
|
12718
|
+
"type": "object",
|
|
12719
|
+
"properties": {
|
|
12720
|
+
"completeness_score": {
|
|
12721
|
+
"type": "number",
|
|
12722
|
+
"format": "float"
|
|
12723
|
+
},
|
|
12724
|
+
"expected_document_types": {
|
|
12725
|
+
"type": "array",
|
|
12726
|
+
"items": {
|
|
12727
|
+
"type": "string"
|
|
12728
|
+
}
|
|
12729
|
+
},
|
|
12730
|
+
"present_document_types": {
|
|
12731
|
+
"type": "array",
|
|
12732
|
+
"items": {
|
|
12733
|
+
"type": "string"
|
|
12734
|
+
}
|
|
12735
|
+
},
|
|
12736
|
+
"missing_document_types": {
|
|
12737
|
+
"type": "array",
|
|
12738
|
+
"items": {
|
|
12739
|
+
"type": "string"
|
|
12740
|
+
}
|
|
12741
|
+
}
|
|
12742
|
+
}
|
|
11718
12743
|
}
|
|
11719
12744
|
}
|
|
11720
12745
|
}
|
|
@@ -11725,56 +12750,52 @@
|
|
|
11725
12750
|
"404": {
|
|
11726
12751
|
"$ref": "#/components/responses/NotFound"
|
|
11727
12752
|
},
|
|
11728
|
-
"409": {
|
|
11729
|
-
"$ref": "#/components/responses/Conflict"
|
|
11730
|
-
},
|
|
11731
12753
|
"429": {
|
|
11732
12754
|
"$ref": "#/components/responses/RateLimitExceeded"
|
|
11733
12755
|
}
|
|
11734
12756
|
}
|
|
11735
12757
|
}
|
|
11736
12758
|
},
|
|
11737
|
-
"/v1/
|
|
12759
|
+
"/v1/cases/{key}/documents/{docId}/pin": {
|
|
11738
12760
|
"post": {
|
|
11739
|
-
"operationId": "
|
|
11740
|
-
"
|
|
11741
|
-
|
|
12761
|
+
"operationId": "pinCaseDocument",
|
|
12762
|
+
"x-required-scopes": [
|
|
12763
|
+
"write"
|
|
12764
|
+
],
|
|
12765
|
+
"summary": "Pin a document to a case",
|
|
12766
|
+
"description": "Manually pin a document to a case so it persists across re-clustering.",
|
|
11742
12767
|
"tags": [
|
|
11743
|
-
"
|
|
12768
|
+
"Cases"
|
|
11744
12769
|
],
|
|
11745
12770
|
"parameters": [
|
|
11746
12771
|
{
|
|
11747
|
-
"
|
|
12772
|
+
"name": "key",
|
|
12773
|
+
"in": "path",
|
|
12774
|
+
"required": true,
|
|
12775
|
+
"schema": {
|
|
12776
|
+
"type": "string",
|
|
12777
|
+
"format": "uuid"
|
|
12778
|
+
},
|
|
12779
|
+
"description": "Case UUID (the stable resource id)."
|
|
12780
|
+
},
|
|
12781
|
+
{
|
|
12782
|
+
"name": "docId",
|
|
12783
|
+
"in": "path",
|
|
12784
|
+
"required": true,
|
|
12785
|
+
"schema": {
|
|
12786
|
+
"type": "string",
|
|
12787
|
+
"format": "uuid"
|
|
12788
|
+
},
|
|
12789
|
+
"description": "Document identifier to pin."
|
|
11748
12790
|
}
|
|
11749
12791
|
],
|
|
11750
|
-
"requestBody": {
|
|
11751
|
-
"required": true,
|
|
11752
|
-
"content": {
|
|
11753
|
-
"application/json": {
|
|
11754
|
-
"schema": {
|
|
11755
|
-
"type": "object",
|
|
11756
|
-
"required": [
|
|
11757
|
-
"strategy_id"
|
|
11758
|
-
],
|
|
11759
|
-
"properties": {
|
|
11760
|
-
"strategy_id": {
|
|
11761
|
-
"type": "string",
|
|
11762
|
-
"format": "uuid",
|
|
11763
|
-
"example": "c9d0e1f2-a3b4-5678-cdef-789012345678",
|
|
11764
|
-
"description": "Strategy generated via POST /v1/matching/strategies/generate to execute against this config."
|
|
11765
|
-
}
|
|
11766
|
-
}
|
|
11767
|
-
}
|
|
11768
|
-
}
|
|
11769
|
-
}
|
|
11770
|
-
},
|
|
11771
12792
|
"responses": {
|
|
11772
|
-
"
|
|
11773
|
-
"description": "
|
|
12793
|
+
"200": {
|
|
12794
|
+
"description": "Document pinned.",
|
|
11774
12795
|
"content": {
|
|
11775
12796
|
"application/json": {
|
|
11776
12797
|
"schema": {
|
|
11777
|
-
"$ref": "#/components/schemas/
|
|
12798
|
+
"$ref": "#/components/schemas/CaseDetailResponse"
|
|
11778
12799
|
}
|
|
11779
12800
|
}
|
|
11780
12801
|
}
|
|
@@ -11794,31 +12815,225 @@
|
|
|
11794
12815
|
}
|
|
11795
12816
|
}
|
|
11796
12817
|
},
|
|
11797
|
-
"/v1/
|
|
11798
|
-
"
|
|
11799
|
-
"operationId": "
|
|
11800
|
-
"
|
|
11801
|
-
|
|
12818
|
+
"/v1/cases/{key}/documents/{docId}": {
|
|
12819
|
+
"delete": {
|
|
12820
|
+
"operationId": "removeCaseDocument",
|
|
12821
|
+
"x-required-scopes": [
|
|
12822
|
+
"write"
|
|
12823
|
+
],
|
|
12824
|
+
"summary": "Remove a document from a case",
|
|
12825
|
+
"description": "Remove a manually-pinned document from a case.",
|
|
11802
12826
|
"tags": [
|
|
11803
|
-
"
|
|
12827
|
+
"Cases"
|
|
11804
12828
|
],
|
|
11805
12829
|
"parameters": [
|
|
11806
12830
|
{
|
|
11807
|
-
"
|
|
12831
|
+
"name": "key",
|
|
12832
|
+
"in": "path",
|
|
12833
|
+
"required": true,
|
|
12834
|
+
"schema": {
|
|
12835
|
+
"type": "string",
|
|
12836
|
+
"format": "uuid"
|
|
12837
|
+
},
|
|
12838
|
+
"description": "Case UUID (the stable resource id)."
|
|
12839
|
+
},
|
|
12840
|
+
{
|
|
12841
|
+
"name": "docId",
|
|
12842
|
+
"in": "path",
|
|
12843
|
+
"required": true,
|
|
12844
|
+
"schema": {
|
|
12845
|
+
"type": "string",
|
|
12846
|
+
"format": "uuid"
|
|
12847
|
+
},
|
|
12848
|
+
"description": "Document identifier to remove."
|
|
11808
12849
|
}
|
|
11809
12850
|
],
|
|
11810
12851
|
"responses": {
|
|
11811
12852
|
"200": {
|
|
11812
|
-
"description": "
|
|
12853
|
+
"description": "Document removed.",
|
|
11813
12854
|
"content": {
|
|
11814
12855
|
"application/json": {
|
|
11815
12856
|
"schema": {
|
|
11816
|
-
"
|
|
11817
|
-
|
|
11818
|
-
|
|
11819
|
-
|
|
11820
|
-
|
|
11821
|
-
|
|
12857
|
+
"$ref": "#/components/schemas/CaseDetailResponse"
|
|
12858
|
+
}
|
|
12859
|
+
}
|
|
12860
|
+
}
|
|
12861
|
+
},
|
|
12862
|
+
"400": {
|
|
12863
|
+
"$ref": "#/components/responses/BadRequest"
|
|
12864
|
+
},
|
|
12865
|
+
"401": {
|
|
12866
|
+
"$ref": "#/components/responses/Unauthorized"
|
|
12867
|
+
},
|
|
12868
|
+
"404": {
|
|
12869
|
+
"$ref": "#/components/responses/NotFound"
|
|
12870
|
+
},
|
|
12871
|
+
"429": {
|
|
12872
|
+
"$ref": "#/components/responses/RateLimitExceeded"
|
|
12873
|
+
}
|
|
12874
|
+
}
|
|
12875
|
+
}
|
|
12876
|
+
},
|
|
12877
|
+
"/v1/batches/{id}/sync": {
|
|
12878
|
+
"post": {
|
|
12879
|
+
"operationId": "syncBatch",
|
|
12880
|
+
"summary": "Sync batch status with provider",
|
|
12881
|
+
"description": "Force a status sync with the batch inference provider (Anthropic or Bedrock).",
|
|
12882
|
+
"tags": [
|
|
12883
|
+
"Jobs & Batches"
|
|
12884
|
+
],
|
|
12885
|
+
"parameters": [
|
|
12886
|
+
{
|
|
12887
|
+
"$ref": "#/components/parameters/ResourceId"
|
|
12888
|
+
}
|
|
12889
|
+
],
|
|
12890
|
+
"responses": {
|
|
12891
|
+
"200": {
|
|
12892
|
+
"description": "Batch synced.",
|
|
12893
|
+
"content": {
|
|
12894
|
+
"application/json": {
|
|
12895
|
+
"schema": {
|
|
12896
|
+
"$ref": "#/components/schemas/BatchResponse"
|
|
12897
|
+
}
|
|
12898
|
+
}
|
|
12899
|
+
}
|
|
12900
|
+
},
|
|
12901
|
+
"401": {
|
|
12902
|
+
"$ref": "#/components/responses/Unauthorized"
|
|
12903
|
+
},
|
|
12904
|
+
"404": {
|
|
12905
|
+
"$ref": "#/components/responses/NotFound"
|
|
12906
|
+
},
|
|
12907
|
+
"429": {
|
|
12908
|
+
"$ref": "#/components/responses/RateLimitExceeded"
|
|
12909
|
+
}
|
|
12910
|
+
}
|
|
12911
|
+
}
|
|
12912
|
+
},
|
|
12913
|
+
"/v1/batches/{id}/cancel": {
|
|
12914
|
+
"post": {
|
|
12915
|
+
"operationId": "cancelBatch",
|
|
12916
|
+
"summary": "Cancel a batch inference run",
|
|
12917
|
+
"description": "Cancel an in-flight batch. Only batches in `accumulating` or `submitted` status can be cancelled.",
|
|
12918
|
+
"tags": [
|
|
12919
|
+
"Jobs & Batches"
|
|
12920
|
+
],
|
|
12921
|
+
"parameters": [
|
|
12922
|
+
{
|
|
12923
|
+
"$ref": "#/components/parameters/ResourceId"
|
|
12924
|
+
}
|
|
12925
|
+
],
|
|
12926
|
+
"responses": {
|
|
12927
|
+
"200": {
|
|
12928
|
+
"description": "Batch cancelled.",
|
|
12929
|
+
"content": {
|
|
12930
|
+
"application/json": {
|
|
12931
|
+
"schema": {
|
|
12932
|
+
"$ref": "#/components/schemas/BatchResponse"
|
|
12933
|
+
}
|
|
12934
|
+
}
|
|
12935
|
+
}
|
|
12936
|
+
},
|
|
12937
|
+
"401": {
|
|
12938
|
+
"$ref": "#/components/responses/Unauthorized"
|
|
12939
|
+
},
|
|
12940
|
+
"404": {
|
|
12941
|
+
"$ref": "#/components/responses/NotFound"
|
|
12942
|
+
},
|
|
12943
|
+
"409": {
|
|
12944
|
+
"$ref": "#/components/responses/Conflict"
|
|
12945
|
+
},
|
|
12946
|
+
"429": {
|
|
12947
|
+
"$ref": "#/components/responses/RateLimitExceeded"
|
|
12948
|
+
}
|
|
12949
|
+
}
|
|
12950
|
+
}
|
|
12951
|
+
},
|
|
12952
|
+
"/v1/matching/configs/{id}/smart-run": {
|
|
12953
|
+
"post": {
|
|
12954
|
+
"operationId": "triggerSmartMatchingRun",
|
|
12955
|
+
"summary": "Trigger a smart matching run for a config",
|
|
12956
|
+
"description": "Run a previously-generated AI matching strategy against the documents scoped by the matching config.",
|
|
12957
|
+
"tags": [
|
|
12958
|
+
"Matching"
|
|
12959
|
+
],
|
|
12960
|
+
"parameters": [
|
|
12961
|
+
{
|
|
12962
|
+
"$ref": "#/components/parameters/ResourceId"
|
|
12963
|
+
}
|
|
12964
|
+
],
|
|
12965
|
+
"requestBody": {
|
|
12966
|
+
"required": true,
|
|
12967
|
+
"content": {
|
|
12968
|
+
"application/json": {
|
|
12969
|
+
"schema": {
|
|
12970
|
+
"type": "object",
|
|
12971
|
+
"required": [
|
|
12972
|
+
"strategy_id"
|
|
12973
|
+
],
|
|
12974
|
+
"properties": {
|
|
12975
|
+
"strategy_id": {
|
|
12976
|
+
"type": "string",
|
|
12977
|
+
"format": "uuid",
|
|
12978
|
+
"example": "c9d0e1f2-a3b4-5678-cdef-789012345678",
|
|
12979
|
+
"description": "Strategy generated via POST /v1/matching/strategies/generate to execute against this config."
|
|
12980
|
+
}
|
|
12981
|
+
}
|
|
12982
|
+
}
|
|
12983
|
+
}
|
|
12984
|
+
}
|
|
12985
|
+
},
|
|
12986
|
+
"responses": {
|
|
12987
|
+
"201": {
|
|
12988
|
+
"description": "Smart matching run queued.",
|
|
12989
|
+
"content": {
|
|
12990
|
+
"application/json": {
|
|
12991
|
+
"schema": {
|
|
12992
|
+
"$ref": "#/components/schemas/MatchingRunResponse"
|
|
12993
|
+
}
|
|
12994
|
+
}
|
|
12995
|
+
}
|
|
12996
|
+
},
|
|
12997
|
+
"400": {
|
|
12998
|
+
"$ref": "#/components/responses/BadRequest"
|
|
12999
|
+
},
|
|
13000
|
+
"401": {
|
|
13001
|
+
"$ref": "#/components/responses/Unauthorized"
|
|
13002
|
+
},
|
|
13003
|
+
"404": {
|
|
13004
|
+
"$ref": "#/components/responses/NotFound"
|
|
13005
|
+
},
|
|
13006
|
+
"429": {
|
|
13007
|
+
"$ref": "#/components/responses/RateLimitExceeded"
|
|
13008
|
+
}
|
|
13009
|
+
}
|
|
13010
|
+
}
|
|
13011
|
+
},
|
|
13012
|
+
"/v1/matching/runs/{id}/ai-resolve": {
|
|
13013
|
+
"post": {
|
|
13014
|
+
"operationId": "aiResolveMatchingRun",
|
|
13015
|
+
"summary": "AI-resolve a matching run's review band",
|
|
13016
|
+
"description": "Trigger AI-driven resolution on a completed matching run's review-band candidates. Requires the run to have an associated strategy.",
|
|
13017
|
+
"tags": [
|
|
13018
|
+
"Matching"
|
|
13019
|
+
],
|
|
13020
|
+
"parameters": [
|
|
13021
|
+
{
|
|
13022
|
+
"$ref": "#/components/parameters/ResourceId"
|
|
13023
|
+
}
|
|
13024
|
+
],
|
|
13025
|
+
"responses": {
|
|
13026
|
+
"200": {
|
|
13027
|
+
"description": "AI resolution started.",
|
|
13028
|
+
"content": {
|
|
13029
|
+
"application/json": {
|
|
13030
|
+
"schema": {
|
|
13031
|
+
"type": "object",
|
|
13032
|
+
"properties": {
|
|
13033
|
+
"id": {
|
|
13034
|
+
"type": "string",
|
|
13035
|
+
"format": "uuid"
|
|
13036
|
+
},
|
|
11822
13037
|
"status": {
|
|
11823
13038
|
"type": "string"
|
|
11824
13039
|
},
|
|
@@ -12457,70 +13672,6 @@
|
|
|
12457
13672
|
}
|
|
12458
13673
|
},
|
|
12459
13674
|
"/v1/quality/ground-truth/{id}/entries/{entryId}": {
|
|
12460
|
-
"put": {
|
|
12461
|
-
"operationId": "updateGroundTruthEntry",
|
|
12462
|
-
"summary": "Update a ground truth entry",
|
|
12463
|
-
"tags": [
|
|
12464
|
-
"Benchmarks"
|
|
12465
|
-
],
|
|
12466
|
-
"parameters": [
|
|
12467
|
-
{
|
|
12468
|
-
"$ref": "#/components/parameters/ResourceId"
|
|
12469
|
-
},
|
|
12470
|
-
{
|
|
12471
|
-
"name": "entryId",
|
|
12472
|
-
"in": "path",
|
|
12473
|
-
"required": true,
|
|
12474
|
-
"schema": {
|
|
12475
|
-
"type": "string",
|
|
12476
|
-
"format": "uuid",
|
|
12477
|
-
"example": "a1b2c3d4-e5f6-7890-abcd-ef1234567890"
|
|
12478
|
-
},
|
|
12479
|
-
"description": "Entry ID."
|
|
12480
|
-
}
|
|
12481
|
-
],
|
|
12482
|
-
"requestBody": {
|
|
12483
|
-
"required": true,
|
|
12484
|
-
"content": {
|
|
12485
|
-
"application/json": {
|
|
12486
|
-
"schema": {
|
|
12487
|
-
"type": "object",
|
|
12488
|
-
"properties": {
|
|
12489
|
-
"expected_data": {
|
|
12490
|
-
"type": "object",
|
|
12491
|
-
"additionalProperties": true
|
|
12492
|
-
},
|
|
12493
|
-
"notes": {
|
|
12494
|
-
"type": "string",
|
|
12495
|
-
"example": "Reviewed and confirmed."
|
|
12496
|
-
}
|
|
12497
|
-
}
|
|
12498
|
-
}
|
|
12499
|
-
}
|
|
12500
|
-
}
|
|
12501
|
-
},
|
|
12502
|
-
"responses": {
|
|
12503
|
-
"200": {
|
|
12504
|
-
"description": "Entry updated.",
|
|
12505
|
-
"content": {
|
|
12506
|
-
"application/json": {
|
|
12507
|
-
"schema": {
|
|
12508
|
-
"$ref": "#/components/schemas/GroundTruthEntryItem"
|
|
12509
|
-
}
|
|
12510
|
-
}
|
|
12511
|
-
}
|
|
12512
|
-
},
|
|
12513
|
-
"401": {
|
|
12514
|
-
"$ref": "#/components/responses/Unauthorized"
|
|
12515
|
-
},
|
|
12516
|
-
"404": {
|
|
12517
|
-
"$ref": "#/components/responses/NotFound"
|
|
12518
|
-
},
|
|
12519
|
-
"429": {
|
|
12520
|
-
"$ref": "#/components/responses/RateLimitExceeded"
|
|
12521
|
-
}
|
|
12522
|
-
}
|
|
12523
|
-
},
|
|
12524
13675
|
"delete": {
|
|
12525
13676
|
"operationId": "deleteGroundTruthEntry",
|
|
12526
13677
|
"summary": "Delete a ground truth entry",
|
|
@@ -19476,6 +20627,9 @@
|
|
|
19476
20627
|
"summary": "Get the cached synthesis threads",
|
|
19477
20628
|
"description": "The cached synthesis artifact (threads + findings). Never triggers a rebuild.",
|
|
19478
20629
|
"operationId": "getCaseThreads",
|
|
20630
|
+
"x-required-scopes": [
|
|
20631
|
+
"read"
|
|
20632
|
+
],
|
|
19479
20633
|
"security": [
|
|
19480
20634
|
{
|
|
19481
20635
|
"BearerAuth": []
|
|
@@ -19495,6 +20649,9 @@
|
|
|
19495
20649
|
],
|
|
19496
20650
|
"summary": "Get the case-synthesis build status",
|
|
19497
20651
|
"operationId": "getCaseSynthesisStatus",
|
|
20652
|
+
"x-required-scopes": [
|
|
20653
|
+
"read"
|
|
20654
|
+
],
|
|
19498
20655
|
"security": [
|
|
19499
20656
|
{
|
|
19500
20657
|
"BearerAuth": []
|
|
@@ -19515,6 +20672,9 @@
|
|
|
19515
20672
|
"summary": "Trigger an async case-synthesis recompute",
|
|
19516
20673
|
"description": "Enqueues the multi-minute synthesis pipeline and returns immediately. Poll the status endpoint. Requires write scope.",
|
|
19517
20674
|
"operationId": "recomputeCaseSynthesis",
|
|
20675
|
+
"x-required-scopes": [
|
|
20676
|
+
"write"
|
|
20677
|
+
],
|
|
19518
20678
|
"security": [
|
|
19519
20679
|
{
|
|
19520
20680
|
"BearerAuth": []
|
|
@@ -19784,95 +20944,921 @@
|
|
|
19784
20944
|
}
|
|
19785
20945
|
},
|
|
19786
20946
|
"400": {
|
|
19787
|
-
"$ref": "#/components/responses/BadRequest"
|
|
20947
|
+
"$ref": "#/components/responses/BadRequest"
|
|
20948
|
+
},
|
|
20949
|
+
"401": {
|
|
20950
|
+
"$ref": "#/components/responses/Unauthorized"
|
|
20951
|
+
},
|
|
20952
|
+
"413": {
|
|
20953
|
+
"$ref": "#/components/responses/PayloadTooLarge"
|
|
20954
|
+
}
|
|
20955
|
+
}
|
|
20956
|
+
}
|
|
20957
|
+
},
|
|
20958
|
+
"/v1/billing/settings": {
|
|
20959
|
+
"get": {
|
|
20960
|
+
"tags": [
|
|
20961
|
+
"Billing"
|
|
20962
|
+
],
|
|
20963
|
+
"summary": "Get billing (auto top-up) settings",
|
|
20964
|
+
"operationId": "getBillingSettings",
|
|
20965
|
+
"security": [
|
|
20966
|
+
{
|
|
20967
|
+
"BearerAuth": []
|
|
20968
|
+
}
|
|
20969
|
+
],
|
|
20970
|
+
"responses": {
|
|
20971
|
+
"200": {
|
|
20972
|
+
"description": "Auto-topup configuration"
|
|
20973
|
+
}
|
|
20974
|
+
}
|
|
20975
|
+
},
|
|
20976
|
+
"patch": {
|
|
20977
|
+
"tags": [
|
|
20978
|
+
"Billing"
|
|
20979
|
+
],
|
|
20980
|
+
"summary": "Update billing (auto top-up) settings",
|
|
20981
|
+
"operationId": "updateBillingSettings",
|
|
20982
|
+
"security": [
|
|
20983
|
+
{
|
|
20984
|
+
"BearerAuth": []
|
|
20985
|
+
}
|
|
20986
|
+
],
|
|
20987
|
+
"requestBody": {
|
|
20988
|
+
"required": true,
|
|
20989
|
+
"content": {
|
|
20990
|
+
"application/json": {
|
|
20991
|
+
"schema": {
|
|
20992
|
+
"type": "object",
|
|
20993
|
+
"properties": {
|
|
20994
|
+
"auto_topup_enabled": {
|
|
20995
|
+
"type": "boolean"
|
|
20996
|
+
},
|
|
20997
|
+
"auto_topup_threshold": {
|
|
20998
|
+
"type": "integer",
|
|
20999
|
+
"minimum": 1000
|
|
21000
|
+
},
|
|
21001
|
+
"auto_topup_amount": {
|
|
21002
|
+
"type": "integer",
|
|
21003
|
+
"minimum": 1000
|
|
21004
|
+
}
|
|
21005
|
+
}
|
|
21006
|
+
}
|
|
21007
|
+
}
|
|
21008
|
+
}
|
|
21009
|
+
},
|
|
21010
|
+
"responses": {
|
|
21011
|
+
"200": {
|
|
21012
|
+
"description": "Updated settings"
|
|
21013
|
+
}
|
|
21014
|
+
}
|
|
21015
|
+
}
|
|
21016
|
+
},
|
|
21017
|
+
"/v1/billing/topup": {
|
|
21018
|
+
"post": {
|
|
21019
|
+
"tags": [
|
|
21020
|
+
"Billing"
|
|
21021
|
+
],
|
|
21022
|
+
"summary": "Trigger an auto top-up now",
|
|
21023
|
+
"description": "Charges a top-up if auto top-up is enabled. Requires the billing scope.",
|
|
21024
|
+
"operationId": "triggerBillingTopup",
|
|
21025
|
+
"security": [
|
|
21026
|
+
{
|
|
21027
|
+
"BearerAuth": []
|
|
21028
|
+
}
|
|
21029
|
+
],
|
|
21030
|
+
"responses": {
|
|
21031
|
+
"200": {
|
|
21032
|
+
"description": "{ topped_up, ... }"
|
|
21033
|
+
},
|
|
21034
|
+
"403": {
|
|
21035
|
+
"description": "auto_topup_disabled"
|
|
21036
|
+
}
|
|
21037
|
+
}
|
|
21038
|
+
}
|
|
21039
|
+
},
|
|
21040
|
+
"/v1/ai/policy": {
|
|
21041
|
+
"get": {
|
|
21042
|
+
"operationId": "getAiPolicy",
|
|
21043
|
+
"summary": "Get the effective AI policy",
|
|
21044
|
+
"tags": [
|
|
21045
|
+
"AI Policy"
|
|
21046
|
+
],
|
|
21047
|
+
"description": "The caller's own AI policy as it is enforced right now: the mandatory\nconstraints applied at routing time, the per-operation class map, the\nresolved defaults, and whether the policy currently leaves every gating\noperation with a compliant route.\n\n`constraints` is the enforced view: it folds the workspace policy\ntogether with the platform provider floor\n(`constraints.platform_provider_floor`), a deployment-level constraint\nthat intersects with the tenant policy and can only narrow it.\n`inherited: true` means the workspace has stored no policy of its own\nand runs on the platform default.\n\nThe workspace is taken from the authenticated key and from nowhere\nelse. A master-view key spans every workspace, has no single policy to\nread, and is rejected with 400 `workspace_scope_required`.\n",
|
|
21048
|
+
"responses": {
|
|
21049
|
+
"200": {
|
|
21050
|
+
"description": "The effective policy, constraints, operation class map, and satisfiability status.",
|
|
21051
|
+
"content": {
|
|
21052
|
+
"application/json": {
|
|
21053
|
+
"example": {
|
|
21054
|
+
"policy": {
|
|
21055
|
+
"version": 4,
|
|
21056
|
+
"status": "active",
|
|
21057
|
+
"region_pin": "eu",
|
|
21058
|
+
"allowed_providers": [
|
|
21059
|
+
"bedrock"
|
|
21060
|
+
],
|
|
21061
|
+
"denied_models": [
|
|
21062
|
+
"claude-opus"
|
|
21063
|
+
],
|
|
21064
|
+
"model_substitutions": null,
|
|
21065
|
+
"default_models": null,
|
|
21066
|
+
"max_attempts": null,
|
|
21067
|
+
"model_classes": null,
|
|
21068
|
+
"operation_classes": {
|
|
21069
|
+
"extraction": "complex"
|
|
21070
|
+
},
|
|
21071
|
+
"features": null
|
|
21072
|
+
},
|
|
21073
|
+
"inherited": false,
|
|
21074
|
+
"constraints": {
|
|
21075
|
+
"region_pin": "eu",
|
|
21076
|
+
"allowed_providers": [
|
|
21077
|
+
"bedrock"
|
|
21078
|
+
],
|
|
21079
|
+
"denied_models": [
|
|
21080
|
+
"claude-opus"
|
|
21081
|
+
],
|
|
21082
|
+
"platform_provider_floor": [
|
|
21083
|
+
"bedrock"
|
|
21084
|
+
]
|
|
21085
|
+
},
|
|
21086
|
+
"operation_classes": {
|
|
21087
|
+
"extraction": {
|
|
21088
|
+
"class": "complex",
|
|
21089
|
+
"source": "org",
|
|
21090
|
+
"overridden": true
|
|
21091
|
+
}
|
|
21092
|
+
},
|
|
21093
|
+
"status": {
|
|
21094
|
+
"satisfiable": true,
|
|
21095
|
+
"unroutable_operations": [],
|
|
21096
|
+
"advisory_warnings": [
|
|
21097
|
+
"document_ocr"
|
|
21098
|
+
]
|
|
21099
|
+
}
|
|
21100
|
+
}
|
|
21101
|
+
}
|
|
21102
|
+
}
|
|
21103
|
+
},
|
|
21104
|
+
"400": {
|
|
21105
|
+
"description": "The API key is not scoped to a single workspace.",
|
|
21106
|
+
"content": {
|
|
21107
|
+
"application/json": {
|
|
21108
|
+
"example": {
|
|
21109
|
+
"error": "workspace_scope_required",
|
|
21110
|
+
"message": "A workspace-scoped API key is required to read or change AI policy."
|
|
21111
|
+
}
|
|
21112
|
+
}
|
|
21113
|
+
}
|
|
21114
|
+
},
|
|
21115
|
+
"401": {
|
|
21116
|
+
"$ref": "#/components/responses/Unauthorized"
|
|
21117
|
+
},
|
|
21118
|
+
"429": {
|
|
21119
|
+
"$ref": "#/components/responses/RateLimitExceeded"
|
|
21120
|
+
}
|
|
21121
|
+
}
|
|
21122
|
+
},
|
|
21123
|
+
"put": {
|
|
21124
|
+
"operationId": "replaceAiPolicy",
|
|
21125
|
+
"summary": "Replace the AI policy",
|
|
21126
|
+
"tags": [
|
|
21127
|
+
"AI Policy"
|
|
21128
|
+
],
|
|
21129
|
+
"description": "Replace the policy wholesale. Every field is optional in the body, but\nan omitted field is CLEARED, which makes this the route to use when the\npolicy is generated from the customer's own source of truth. To change\none field while keeping the rest, use PATCH instead.\n\nThe write defaults to `status: active`, so the satisfiability gate\nbinds: a policy that would leave a registered operation with no\ncompliant route is refused with 400 `policy_unsatisfiable` and nothing\nis stored. Only `active` policies are enforced at routing time;\n`draft` and `shadow` versions are stored without taking effect.\n\nNaming asymmetry, deliberate: top-level fields are snake_case, but\nvalues INSIDE `model_classes` (`chain`, `requiredCapabilities`,\n`fallback`) and the keys of `features` (`dataCapture`,\n`markdownExtraction`, `assetVision`, `assetAnnotation`,\n`classificationEscalation`, `richSummary`, `documentClassification`)\nstay camelCase because they pass straight to the shared policy\nvalidator.\n",
|
|
21130
|
+
"requestBody": {
|
|
21131
|
+
"required": true,
|
|
21132
|
+
"content": {
|
|
21133
|
+
"application/json": {
|
|
21134
|
+
"schema": {
|
|
21135
|
+
"type": "object",
|
|
21136
|
+
"properties": {
|
|
21137
|
+
"region_pin": {
|
|
21138
|
+
"type": [
|
|
21139
|
+
"string",
|
|
21140
|
+
"null"
|
|
21141
|
+
],
|
|
21142
|
+
"enum": [
|
|
21143
|
+
"us",
|
|
21144
|
+
"eu",
|
|
21145
|
+
null
|
|
21146
|
+
],
|
|
21147
|
+
"description": "Hard residency constraint. A deployment in any other region is rejected, including globally-routed ones."
|
|
21148
|
+
},
|
|
21149
|
+
"allowed_providers": {
|
|
21150
|
+
"type": [
|
|
21151
|
+
"array",
|
|
21152
|
+
"null"
|
|
21153
|
+
],
|
|
21154
|
+
"items": {
|
|
21155
|
+
"type": "string",
|
|
21156
|
+
"enum": [
|
|
21157
|
+
"anthropic",
|
|
21158
|
+
"bedrock",
|
|
21159
|
+
"foundry",
|
|
21160
|
+
"openai",
|
|
21161
|
+
"azure-openai",
|
|
21162
|
+
"google",
|
|
21163
|
+
"mistral",
|
|
21164
|
+
"local"
|
|
21165
|
+
]
|
|
21166
|
+
},
|
|
21167
|
+
"description": "Providers permitted to process this workspace's data. Null or omitted means every provider the platform permits."
|
|
21168
|
+
},
|
|
21169
|
+
"denied_models": {
|
|
21170
|
+
"type": [
|
|
21171
|
+
"array",
|
|
21172
|
+
"null"
|
|
21173
|
+
],
|
|
21174
|
+
"items": {
|
|
21175
|
+
"type": "string"
|
|
21176
|
+
},
|
|
21177
|
+
"description": "Models this workspace may never be routed to, whatever else permits them. Applies to explicit requests and every fallback chain step alike."
|
|
21178
|
+
},
|
|
21179
|
+
"model_substitutions": {
|
|
21180
|
+
"type": "object",
|
|
21181
|
+
"additionalProperties": {
|
|
21182
|
+
"type": "string"
|
|
21183
|
+
},
|
|
21184
|
+
"description": "Remap one model onto another wherever the first would be chosen."
|
|
21185
|
+
},
|
|
21186
|
+
"default_models": {
|
|
21187
|
+
"type": "object",
|
|
21188
|
+
"description": "Preferred model per speed tier where no class governs the call. Keys are fast, default, powerful."
|
|
21189
|
+
},
|
|
21190
|
+
"max_attempts": {
|
|
21191
|
+
"type": "integer",
|
|
21192
|
+
"minimum": 1,
|
|
21193
|
+
"maximum": 8,
|
|
21194
|
+
"description": "Ceiling on provider attempts for one logical call."
|
|
21195
|
+
},
|
|
21196
|
+
"model_classes": {
|
|
21197
|
+
"type": "object",
|
|
21198
|
+
"description": "Named model lineage overrides. Values are camelCase: { description, chain: [{ model, deployments: [{ provider, region }] }], requiredCapabilities, fallback: chain | primary_only }."
|
|
21199
|
+
},
|
|
21200
|
+
"operation_classes": {
|
|
21201
|
+
"type": "object",
|
|
21202
|
+
"additionalProperties": {
|
|
21203
|
+
"type": [
|
|
21204
|
+
"string",
|
|
21205
|
+
"null"
|
|
21206
|
+
]
|
|
21207
|
+
},
|
|
21208
|
+
"description": "Per-operation class overrides, keyed by operation type."
|
|
21209
|
+
},
|
|
21210
|
+
"features": {
|
|
21211
|
+
"type": "object",
|
|
21212
|
+
"additionalProperties": {
|
|
21213
|
+
"type": "boolean"
|
|
21214
|
+
},
|
|
21215
|
+
"description": "Feature toggles, camelCase keys. Absent toggles stay on."
|
|
21216
|
+
},
|
|
21217
|
+
"status": {
|
|
21218
|
+
"type": "string",
|
|
21219
|
+
"enum": [
|
|
21220
|
+
"draft",
|
|
21221
|
+
"shadow",
|
|
21222
|
+
"active"
|
|
21223
|
+
],
|
|
21224
|
+
"default": "active",
|
|
21225
|
+
"description": "Lifecycle state to save under. Only active is enforced at runtime."
|
|
21226
|
+
},
|
|
21227
|
+
"change_reason": {
|
|
21228
|
+
"type": "string",
|
|
21229
|
+
"maxLength": 200,
|
|
21230
|
+
"description": "Why this change is being made. Recorded on the stored version."
|
|
21231
|
+
}
|
|
21232
|
+
}
|
|
21233
|
+
},
|
|
21234
|
+
"example": {
|
|
21235
|
+
"region_pin": "eu",
|
|
21236
|
+
"allowed_providers": [
|
|
21237
|
+
"bedrock"
|
|
21238
|
+
],
|
|
21239
|
+
"denied_models": [
|
|
21240
|
+
"claude-opus"
|
|
21241
|
+
],
|
|
21242
|
+
"operation_classes": {
|
|
21243
|
+
"extraction": "complex"
|
|
21244
|
+
},
|
|
21245
|
+
"change_reason": "Contractual EU residency"
|
|
21246
|
+
}
|
|
21247
|
+
}
|
|
21248
|
+
}
|
|
21249
|
+
},
|
|
21250
|
+
"responses": {
|
|
21251
|
+
"200": {
|
|
21252
|
+
"description": "The saved version plus the resulting effective policy view (the GET response body).",
|
|
21253
|
+
"content": {
|
|
21254
|
+
"application/json": {
|
|
21255
|
+
"example": {
|
|
21256
|
+
"saved": {
|
|
21257
|
+
"version": 7,
|
|
21258
|
+
"status": "active"
|
|
21259
|
+
},
|
|
21260
|
+
"policy": {
|
|
21261
|
+
"version": 7,
|
|
21262
|
+
"status": "active",
|
|
21263
|
+
"region_pin": "eu",
|
|
21264
|
+
"allowed_providers": [
|
|
21265
|
+
"bedrock"
|
|
21266
|
+
],
|
|
21267
|
+
"denied_models": [
|
|
21268
|
+
"claude-opus"
|
|
21269
|
+
],
|
|
21270
|
+
"model_substitutions": null,
|
|
21271
|
+
"default_models": null,
|
|
21272
|
+
"max_attempts": null,
|
|
21273
|
+
"model_classes": null,
|
|
21274
|
+
"operation_classes": {
|
|
21275
|
+
"extraction": "complex"
|
|
21276
|
+
},
|
|
21277
|
+
"features": null
|
|
21278
|
+
},
|
|
21279
|
+
"inherited": false,
|
|
21280
|
+
"constraints": {
|
|
21281
|
+
"region_pin": "eu",
|
|
21282
|
+
"allowed_providers": [
|
|
21283
|
+
"bedrock"
|
|
21284
|
+
],
|
|
21285
|
+
"denied_models": [
|
|
21286
|
+
"claude-opus"
|
|
21287
|
+
],
|
|
21288
|
+
"platform_provider_floor": [
|
|
21289
|
+
"bedrock"
|
|
21290
|
+
]
|
|
21291
|
+
},
|
|
21292
|
+
"operation_classes": {
|
|
21293
|
+
"extraction": {
|
|
21294
|
+
"class": "complex",
|
|
21295
|
+
"source": "org",
|
|
21296
|
+
"overridden": true
|
|
21297
|
+
}
|
|
21298
|
+
},
|
|
21299
|
+
"status": {
|
|
21300
|
+
"satisfiable": true,
|
|
21301
|
+
"unroutable_operations": [],
|
|
21302
|
+
"advisory_warnings": [
|
|
21303
|
+
"document_ocr"
|
|
21304
|
+
]
|
|
21305
|
+
}
|
|
21306
|
+
}
|
|
21307
|
+
}
|
|
21308
|
+
}
|
|
21309
|
+
},
|
|
21310
|
+
"400": {
|
|
21311
|
+
"description": "The policy was refused and nothing was stored.",
|
|
21312
|
+
"content": {
|
|
21313
|
+
"application/json": {
|
|
21314
|
+
"examples": {
|
|
21315
|
+
"policy_unsatisfiable": {
|
|
21316
|
+
"summary": "Activation would strand registered operations",
|
|
21317
|
+
"value": {
|
|
21318
|
+
"error": "policy_unsatisfiable",
|
|
21319
|
+
"message": "This policy leaves 2 operations with no compliant route: extraction, classification. Widen the allowed providers, the region pin, or the denied models, then submit again.",
|
|
21320
|
+
"unroutable_operations": [
|
|
21321
|
+
"extraction",
|
|
21322
|
+
"classification"
|
|
21323
|
+
],
|
|
21324
|
+
"advisory_warnings": [
|
|
21325
|
+
"document_ocr"
|
|
21326
|
+
]
|
|
21327
|
+
}
|
|
21328
|
+
},
|
|
21329
|
+
"invalid_policy": {
|
|
21330
|
+
"summary": "The policy shape or a referenced model is invalid",
|
|
21331
|
+
"value": {
|
|
21332
|
+
"error": "invalid_policy",
|
|
21333
|
+
"message": "denied model 'not-a-real-model' is not in the catalog"
|
|
21334
|
+
}
|
|
21335
|
+
},
|
|
21336
|
+
"workspace_scope_required": {
|
|
21337
|
+
"summary": "The key is not scoped to a single workspace",
|
|
21338
|
+
"value": {
|
|
21339
|
+
"error": "workspace_scope_required",
|
|
21340
|
+
"message": "A workspace-scoped API key is required to read or change AI policy."
|
|
21341
|
+
}
|
|
21342
|
+
}
|
|
21343
|
+
}
|
|
21344
|
+
}
|
|
21345
|
+
}
|
|
21346
|
+
},
|
|
21347
|
+
"401": {
|
|
21348
|
+
"$ref": "#/components/responses/Unauthorized"
|
|
21349
|
+
},
|
|
21350
|
+
"403": {
|
|
21351
|
+
"$ref": "#/components/responses/Forbidden"
|
|
21352
|
+
},
|
|
21353
|
+
"429": {
|
|
21354
|
+
"$ref": "#/components/responses/RateLimitExceeded"
|
|
21355
|
+
}
|
|
21356
|
+
}
|
|
21357
|
+
},
|
|
21358
|
+
"patch": {
|
|
21359
|
+
"operationId": "patchAiPolicy",
|
|
21360
|
+
"summary": "Update part of the AI policy",
|
|
21361
|
+
"tags": [
|
|
21362
|
+
"AI Policy"
|
|
21363
|
+
],
|
|
21364
|
+
"description": "Partial update. Omitted fields keep their current value, and inside the\noverride maps (`model_substitutions`, `default_models`,\n`model_classes`, `operation_classes`, `features`) omitted keys survive\ntoo. Sending `null` as a map value removes that single override and\nrestores the platform default for it.\n\n`status` defaults to the policy's current status (or `active` when\nnone is stored), so patching an active policy keeps it active and the\nsatisfiability gate binds exactly as it does on PUT. The same camelCase\nrule applies to values inside `model_classes` and to `features` keys.\n",
|
|
21365
|
+
"requestBody": {
|
|
21366
|
+
"required": true,
|
|
21367
|
+
"content": {
|
|
21368
|
+
"application/json": {
|
|
21369
|
+
"schema": {
|
|
21370
|
+
"type": "object",
|
|
21371
|
+
"description": "Same fields as PUT /v1/ai/policy; every field optional, omissions preserved."
|
|
21372
|
+
},
|
|
21373
|
+
"example": {
|
|
21374
|
+
"denied_models": [
|
|
21375
|
+
"claude-opus"
|
|
21376
|
+
],
|
|
21377
|
+
"operation_classes": {
|
|
21378
|
+
"extraction": null
|
|
21379
|
+
},
|
|
21380
|
+
"change_reason": "Remove the extraction override, deny one model"
|
|
21381
|
+
}
|
|
21382
|
+
}
|
|
21383
|
+
}
|
|
21384
|
+
},
|
|
21385
|
+
"responses": {
|
|
21386
|
+
"200": {
|
|
21387
|
+
"description": "The saved version plus the resulting effective policy view (the GET response body).",
|
|
21388
|
+
"content": {
|
|
21389
|
+
"application/json": {
|
|
21390
|
+
"example": {
|
|
21391
|
+
"saved": {
|
|
21392
|
+
"version": 8,
|
|
21393
|
+
"status": "active"
|
|
21394
|
+
},
|
|
21395
|
+
"policy": {
|
|
21396
|
+
"version": 8,
|
|
21397
|
+
"status": "active",
|
|
21398
|
+
"region_pin": "eu",
|
|
21399
|
+
"allowed_providers": [
|
|
21400
|
+
"bedrock"
|
|
21401
|
+
],
|
|
21402
|
+
"denied_models": [
|
|
21403
|
+
"claude-opus"
|
|
21404
|
+
],
|
|
21405
|
+
"model_substitutions": null,
|
|
21406
|
+
"default_models": null,
|
|
21407
|
+
"max_attempts": null,
|
|
21408
|
+
"model_classes": null,
|
|
21409
|
+
"operation_classes": null,
|
|
21410
|
+
"features": null
|
|
21411
|
+
},
|
|
21412
|
+
"inherited": false,
|
|
21413
|
+
"constraints": {
|
|
21414
|
+
"region_pin": "eu",
|
|
21415
|
+
"allowed_providers": [
|
|
21416
|
+
"bedrock"
|
|
21417
|
+
],
|
|
21418
|
+
"denied_models": [
|
|
21419
|
+
"claude-opus"
|
|
21420
|
+
],
|
|
21421
|
+
"platform_provider_floor": [
|
|
21422
|
+
"bedrock"
|
|
21423
|
+
]
|
|
21424
|
+
},
|
|
21425
|
+
"operation_classes": {
|
|
21426
|
+
"extraction": {
|
|
21427
|
+
"class": "standard",
|
|
21428
|
+
"source": "builtin",
|
|
21429
|
+
"overridden": false
|
|
21430
|
+
}
|
|
21431
|
+
},
|
|
21432
|
+
"status": {
|
|
21433
|
+
"satisfiable": true,
|
|
21434
|
+
"unroutable_operations": [],
|
|
21435
|
+
"advisory_warnings": []
|
|
21436
|
+
}
|
|
21437
|
+
}
|
|
21438
|
+
}
|
|
21439
|
+
}
|
|
21440
|
+
},
|
|
21441
|
+
"400": {
|
|
21442
|
+
"description": "The policy was refused and nothing was stored. Same error contract as PUT.",
|
|
21443
|
+
"content": {
|
|
21444
|
+
"application/json": {
|
|
21445
|
+
"example": {
|
|
21446
|
+
"error": "policy_unsatisfiable",
|
|
21447
|
+
"message": "This policy leaves 1 operation with no compliant route: extraction. Widen the allowed providers, the region pin, or the denied models, then submit again.",
|
|
21448
|
+
"unroutable_operations": [
|
|
21449
|
+
"extraction"
|
|
21450
|
+
],
|
|
21451
|
+
"advisory_warnings": []
|
|
21452
|
+
}
|
|
21453
|
+
}
|
|
21454
|
+
}
|
|
21455
|
+
},
|
|
21456
|
+
"401": {
|
|
21457
|
+
"$ref": "#/components/responses/Unauthorized"
|
|
21458
|
+
},
|
|
21459
|
+
"403": {
|
|
21460
|
+
"$ref": "#/components/responses/Forbidden"
|
|
21461
|
+
},
|
|
21462
|
+
"429": {
|
|
21463
|
+
"$ref": "#/components/responses/RateLimitExceeded"
|
|
21464
|
+
}
|
|
21465
|
+
}
|
|
21466
|
+
}
|
|
21467
|
+
},
|
|
21468
|
+
"/v1/ai/models": {
|
|
21469
|
+
"get": {
|
|
21470
|
+
"operationId": "listAiModels",
|
|
21471
|
+
"summary": "List models and model classes with reachability",
|
|
21472
|
+
"tags": [
|
|
21473
|
+
"AI Policy"
|
|
21474
|
+
],
|
|
21475
|
+
"description": "Every model and model class the platform knows, annotated with\nprovider, region, and why each is or is not reachable for this\nworkspace under the live policy. This is the answer to \"which models\ncan touch our data\", derived from the policy rather than from\ndocumentation that can drift away from it.\n\n`reason` is one of `allowed`, `model_denied`, `provider_floor`,\n`provider_not_allowed`, `region_not_permitted`. A class's `source` is\n`builtin`, `platform`, or `org`. A deployment with\n`custom_endpoint: true` is a self-hosted or customer-operated\ninference endpoint declared at deployment level; no host and no\ncredential detail is ever returned.\n",
|
|
21476
|
+
"responses": {
|
|
21477
|
+
"200": {
|
|
21478
|
+
"description": "The annotated model catalog, class definitions, enforced constraints, and reachability counts.",
|
|
21479
|
+
"content": {
|
|
21480
|
+
"application/json": {
|
|
21481
|
+
"example": {
|
|
21482
|
+
"models": [
|
|
21483
|
+
{
|
|
21484
|
+
"model": "claude-sonnet",
|
|
21485
|
+
"tier": "default",
|
|
21486
|
+
"capabilities": [
|
|
21487
|
+
"generate",
|
|
21488
|
+
"tool_use"
|
|
21489
|
+
],
|
|
21490
|
+
"reachable": true,
|
|
21491
|
+
"reason": "allowed",
|
|
21492
|
+
"deployments": [
|
|
21493
|
+
{
|
|
21494
|
+
"provider": "bedrock",
|
|
21495
|
+
"region": "eu",
|
|
21496
|
+
"custom_endpoint": false,
|
|
21497
|
+
"reachable": true,
|
|
21498
|
+
"reason": "allowed"
|
|
21499
|
+
}
|
|
21500
|
+
]
|
|
21501
|
+
},
|
|
21502
|
+
{
|
|
21503
|
+
"model": "claude-opus",
|
|
21504
|
+
"tier": "powerful",
|
|
21505
|
+
"capabilities": [
|
|
21506
|
+
"generate",
|
|
21507
|
+
"tool_use"
|
|
21508
|
+
],
|
|
21509
|
+
"reachable": false,
|
|
21510
|
+
"reason": "model_denied",
|
|
21511
|
+
"deployments": [
|
|
21512
|
+
{
|
|
21513
|
+
"provider": "bedrock",
|
|
21514
|
+
"region": "eu",
|
|
21515
|
+
"custom_endpoint": false,
|
|
21516
|
+
"reachable": false,
|
|
21517
|
+
"reason": "model_denied"
|
|
21518
|
+
}
|
|
21519
|
+
]
|
|
21520
|
+
}
|
|
21521
|
+
],
|
|
21522
|
+
"classes": [
|
|
21523
|
+
{
|
|
21524
|
+
"name": "standard",
|
|
21525
|
+
"description": "General-purpose extraction lineage",
|
|
21526
|
+
"source": "builtin",
|
|
21527
|
+
"required_capabilities": [],
|
|
21528
|
+
"fallback": "chain",
|
|
21529
|
+
"chain": [
|
|
21530
|
+
{
|
|
21531
|
+
"model": "claude-sonnet",
|
|
21532
|
+
"reachable": true,
|
|
21533
|
+
"reason": "allowed"
|
|
21534
|
+
}
|
|
21535
|
+
],
|
|
21536
|
+
"reachable": true
|
|
21537
|
+
}
|
|
21538
|
+
],
|
|
21539
|
+
"constraints": {
|
|
21540
|
+
"region_pin": "eu",
|
|
21541
|
+
"allowed_providers": [
|
|
21542
|
+
"bedrock"
|
|
21543
|
+
],
|
|
21544
|
+
"denied_models": [
|
|
21545
|
+
"claude-opus"
|
|
21546
|
+
],
|
|
21547
|
+
"platform_provider_floor": [
|
|
21548
|
+
"bedrock"
|
|
21549
|
+
]
|
|
21550
|
+
},
|
|
21551
|
+
"counts": {
|
|
21552
|
+
"total": 18,
|
|
21553
|
+
"reachable": 9
|
|
21554
|
+
}
|
|
21555
|
+
}
|
|
21556
|
+
}
|
|
21557
|
+
}
|
|
21558
|
+
},
|
|
21559
|
+
"400": {
|
|
21560
|
+
"description": "The API key is not scoped to a single workspace.",
|
|
21561
|
+
"content": {
|
|
21562
|
+
"application/json": {
|
|
21563
|
+
"example": {
|
|
21564
|
+
"error": "workspace_scope_required",
|
|
21565
|
+
"message": "A workspace-scoped API key is required to read or change AI policy."
|
|
21566
|
+
}
|
|
21567
|
+
}
|
|
21568
|
+
}
|
|
19788
21569
|
},
|
|
19789
21570
|
"401": {
|
|
19790
21571
|
"$ref": "#/components/responses/Unauthorized"
|
|
19791
21572
|
},
|
|
19792
|
-
"
|
|
19793
|
-
"$ref": "#/components/responses/
|
|
21573
|
+
"429": {
|
|
21574
|
+
"$ref": "#/components/responses/RateLimitExceeded"
|
|
19794
21575
|
}
|
|
19795
21576
|
}
|
|
19796
21577
|
}
|
|
19797
21578
|
},
|
|
19798
|
-
"/v1/
|
|
21579
|
+
"/v1/ai/operations": {
|
|
19799
21580
|
"get": {
|
|
21581
|
+
"operationId": "listAiOperations",
|
|
21582
|
+
"summary": "List the operation catalog",
|
|
19800
21583
|
"tags": [
|
|
19801
|
-
"
|
|
19802
|
-
],
|
|
19803
|
-
"summary": "Get billing (auto top-up) settings",
|
|
19804
|
-
"operationId": "getBillingSettings",
|
|
19805
|
-
"security": [
|
|
19806
|
-
{
|
|
19807
|
-
"BearerAuth": []
|
|
19808
|
-
}
|
|
21584
|
+
"AI Policy"
|
|
19809
21585
|
],
|
|
21586
|
+
"description": "Every operation type the platform runs, the model class it resolves to\nfor this workspace, whether the workspace overrode it, how it gates\npolicy activation, and whether it currently has a compliant route.\n\n`gating` separates operations: `registered` operations block a policy\nfrom activating when they lose their route, `advisory` operations only\nwarn, and `none` operations are not swept at all (`routable` is null\nfor them rather than implying a check that never ran). This\ndistinction is why a region pin can leave document OCR unroutable\nwithout blocking the rest of the workspace.\n",
|
|
19810
21587
|
"responses": {
|
|
19811
21588
|
"200": {
|
|
19812
|
-
"description": "
|
|
21589
|
+
"description": "The operation catalog with per-operation class, gating, and routability.",
|
|
21590
|
+
"content": {
|
|
21591
|
+
"application/json": {
|
|
21592
|
+
"example": {
|
|
21593
|
+
"operations": [
|
|
21594
|
+
{
|
|
21595
|
+
"operation_type": "extraction",
|
|
21596
|
+
"class": "standard",
|
|
21597
|
+
"source": "builtin",
|
|
21598
|
+
"overridden": false,
|
|
21599
|
+
"gating": "registered",
|
|
21600
|
+
"routable": true
|
|
21601
|
+
},
|
|
21602
|
+
{
|
|
21603
|
+
"operation_type": "document_ocr",
|
|
21604
|
+
"class": "ocr",
|
|
21605
|
+
"source": "builtin",
|
|
21606
|
+
"overridden": false,
|
|
21607
|
+
"gating": "advisory",
|
|
21608
|
+
"routable": false,
|
|
21609
|
+
"reason": "no_compliant_route"
|
|
21610
|
+
}
|
|
21611
|
+
],
|
|
21612
|
+
"counts": {
|
|
21613
|
+
"total": 60,
|
|
21614
|
+
"overridden": 1,
|
|
21615
|
+
"registered": 8,
|
|
21616
|
+
"advisory": 1
|
|
21617
|
+
}
|
|
21618
|
+
}
|
|
21619
|
+
}
|
|
21620
|
+
}
|
|
21621
|
+
},
|
|
21622
|
+
"400": {
|
|
21623
|
+
"description": "The API key is not scoped to a single workspace.",
|
|
21624
|
+
"content": {
|
|
21625
|
+
"application/json": {
|
|
21626
|
+
"example": {
|
|
21627
|
+
"error": "workspace_scope_required",
|
|
21628
|
+
"message": "A workspace-scoped API key is required to read or change AI policy."
|
|
21629
|
+
}
|
|
21630
|
+
}
|
|
21631
|
+
}
|
|
21632
|
+
},
|
|
21633
|
+
"401": {
|
|
21634
|
+
"$ref": "#/components/responses/Unauthorized"
|
|
21635
|
+
},
|
|
21636
|
+
"429": {
|
|
21637
|
+
"$ref": "#/components/responses/RateLimitExceeded"
|
|
19813
21638
|
}
|
|
19814
21639
|
}
|
|
19815
|
-
}
|
|
19816
|
-
|
|
21640
|
+
}
|
|
21641
|
+
},
|
|
21642
|
+
"/v1/ai/routes:explain": {
|
|
21643
|
+
"post": {
|
|
21644
|
+
"operationId": "explainAiRoute",
|
|
21645
|
+
"summary": "Dry-run a routing decision",
|
|
19817
21646
|
"tags": [
|
|
19818
|
-
"
|
|
19819
|
-
],
|
|
19820
|
-
"summary": "Update billing (auto top-up) settings",
|
|
19821
|
-
"operationId": "updateBillingSettings",
|
|
19822
|
-
"security": [
|
|
19823
|
-
{
|
|
19824
|
-
"BearerAuth": []
|
|
19825
|
-
}
|
|
21647
|
+
"AI Policy"
|
|
19826
21648
|
],
|
|
21649
|
+
"description": "Answer \"what would this operation route to right now\" without spending\na model call. The question runs through the same resolver that serves\nlive traffic, so the answer is evidence rather than a forecast: the\nordered candidate chain that would serve the operation, and every\ncandidate the policy discarded with the constraint that discarded it.\n\nWhen the policy permits no route, the response is still 201 with\n`routable: false` and a plain-language explanation. A policy that\npermits no route is a valid configuration whose consequence is that\nthe live call fails closed rather than reaching a provider the policy\nforbids.\n\n`model` pins a specific logical model instead of letting the\noperation's class choose; `class` pins a specific model class. Both\nare optional.\n",
|
|
19827
21650
|
"requestBody": {
|
|
19828
21651
|
"required": true,
|
|
19829
21652
|
"content": {
|
|
19830
21653
|
"application/json": {
|
|
19831
21654
|
"schema": {
|
|
19832
21655
|
"type": "object",
|
|
21656
|
+
"required": [
|
|
21657
|
+
"operation_type"
|
|
21658
|
+
],
|
|
19833
21659
|
"properties": {
|
|
19834
|
-
"
|
|
19835
|
-
"type": "
|
|
21660
|
+
"operation_type": {
|
|
21661
|
+
"type": "string",
|
|
21662
|
+
"maxLength": 120,
|
|
21663
|
+
"description": "The operation to route, for example extraction or classification."
|
|
19836
21664
|
},
|
|
19837
|
-
"
|
|
19838
|
-
"type": "
|
|
19839
|
-
"
|
|
21665
|
+
"model": {
|
|
21666
|
+
"type": "string",
|
|
21667
|
+
"maxLength": 120,
|
|
21668
|
+
"description": "Optional. Pin a specific logical model."
|
|
19840
21669
|
},
|
|
19841
|
-
"
|
|
19842
|
-
"type": "
|
|
19843
|
-
"
|
|
21670
|
+
"class": {
|
|
21671
|
+
"type": "string",
|
|
21672
|
+
"maxLength": 120,
|
|
21673
|
+
"description": "Optional. Pin a specific model class."
|
|
19844
21674
|
}
|
|
19845
21675
|
}
|
|
21676
|
+
},
|
|
21677
|
+
"example": {
|
|
21678
|
+
"operation_type": "extraction",
|
|
21679
|
+
"model": "claude-sonnet",
|
|
21680
|
+
"class": "standard"
|
|
19846
21681
|
}
|
|
19847
21682
|
}
|
|
19848
21683
|
}
|
|
19849
21684
|
},
|
|
19850
21685
|
"responses": {
|
|
19851
|
-
"
|
|
19852
|
-
"description": "
|
|
21686
|
+
"201": {
|
|
21687
|
+
"description": "The routing plan, or a fail-closed explanation when nothing is routable.",
|
|
21688
|
+
"content": {
|
|
21689
|
+
"application/json": {
|
|
21690
|
+
"examples": {
|
|
21691
|
+
"routable": {
|
|
21692
|
+
"summary": "An ordered candidate chain exists",
|
|
21693
|
+
"value": {
|
|
21694
|
+
"operation_type": "extraction",
|
|
21695
|
+
"routable": true,
|
|
21696
|
+
"class": "standard",
|
|
21697
|
+
"fallback_scope": "class_chain",
|
|
21698
|
+
"candidates": [
|
|
21699
|
+
{
|
|
21700
|
+
"model": "claude-sonnet",
|
|
21701
|
+
"provider": "bedrock",
|
|
21702
|
+
"region": "eu",
|
|
21703
|
+
"custom_endpoint": false
|
|
21704
|
+
}
|
|
21705
|
+
],
|
|
21706
|
+
"rejected": [
|
|
21707
|
+
{
|
|
21708
|
+
"model": "gpt-balanced",
|
|
21709
|
+
"provider": "openai",
|
|
21710
|
+
"region": "global",
|
|
21711
|
+
"reason": "provider_not_allowed"
|
|
21712
|
+
}
|
|
21713
|
+
]
|
|
21714
|
+
}
|
|
21715
|
+
},
|
|
21716
|
+
"fail_closed": {
|
|
21717
|
+
"summary": "The policy permits no route for this operation",
|
|
21718
|
+
"value": {
|
|
21719
|
+
"operation_type": "document_ocr",
|
|
21720
|
+
"routable": false,
|
|
21721
|
+
"reason": "no_compliant_route",
|
|
21722
|
+
"message": "No route satisfies this workspace policy for this operation, so the call fails closed rather than reaching a provider the policy does not permit.",
|
|
21723
|
+
"candidates": [],
|
|
21724
|
+
"rejected": [
|
|
21725
|
+
{
|
|
21726
|
+
"model": "mistral-ocr",
|
|
21727
|
+
"provider": "mistral",
|
|
21728
|
+
"region": "global",
|
|
21729
|
+
"reason": "provider_not_allowed"
|
|
21730
|
+
}
|
|
21731
|
+
]
|
|
21732
|
+
}
|
|
21733
|
+
}
|
|
21734
|
+
}
|
|
21735
|
+
}
|
|
21736
|
+
}
|
|
21737
|
+
},
|
|
21738
|
+
"400": {
|
|
21739
|
+
"description": "The request body is invalid or the key is not workspace-scoped.",
|
|
21740
|
+
"content": {
|
|
21741
|
+
"application/json": {
|
|
21742
|
+
"example": {
|
|
21743
|
+
"error": "workspace_scope_required",
|
|
21744
|
+
"message": "A workspace-scoped API key is required to read or change AI policy."
|
|
21745
|
+
}
|
|
21746
|
+
}
|
|
21747
|
+
}
|
|
21748
|
+
},
|
|
21749
|
+
"401": {
|
|
21750
|
+
"$ref": "#/components/responses/Unauthorized"
|
|
21751
|
+
},
|
|
21752
|
+
"429": {
|
|
21753
|
+
"$ref": "#/components/responses/RateLimitExceeded"
|
|
19853
21754
|
}
|
|
19854
21755
|
}
|
|
19855
21756
|
}
|
|
19856
21757
|
},
|
|
19857
|
-
"/v1/
|
|
19858
|
-
"
|
|
21758
|
+
"/v1/ai/policy/history": {
|
|
21759
|
+
"get": {
|
|
21760
|
+
"operationId": "getAiPolicyHistory",
|
|
21761
|
+
"summary": "Get the policy version history",
|
|
19859
21762
|
"tags": [
|
|
19860
|
-
"
|
|
21763
|
+
"AI Policy"
|
|
19861
21764
|
],
|
|
19862
|
-
"
|
|
19863
|
-
"
|
|
19864
|
-
"operationId": "triggerBillingTopup",
|
|
19865
|
-
"security": [
|
|
21765
|
+
"description": "Version history of the caller's own policy, newest first, each version\ncarrying its lifecycle status, the fields it changed relative to the\nprevious version, its attribution (`changed_by`, `change_reason`,\n`changed_at`, each nullable: null means the store did not record it,\nnot that nothing changed), and the full stored policy.\n\nOnly versions this workspace stored appear. A workspace running on the\ninherited platform default has no versions of its own and reads as an\nempty list, which is the honest answer to \"what have we changed\".\n",
|
|
21766
|
+
"parameters": [
|
|
19866
21767
|
{
|
|
19867
|
-
"
|
|
21768
|
+
"name": "limit",
|
|
21769
|
+
"in": "query",
|
|
21770
|
+
"schema": {
|
|
21771
|
+
"type": "integer",
|
|
21772
|
+
"minimum": 1,
|
|
21773
|
+
"maximum": 200,
|
|
21774
|
+
"default": 50
|
|
21775
|
+
},
|
|
21776
|
+
"description": "Maximum number of versions to return (1-200)."
|
|
19868
21777
|
}
|
|
19869
21778
|
],
|
|
19870
21779
|
"responses": {
|
|
19871
21780
|
"200": {
|
|
19872
|
-
"description": "
|
|
21781
|
+
"description": "Stored policy versions, newest first.",
|
|
21782
|
+
"content": {
|
|
21783
|
+
"application/json": {
|
|
21784
|
+
"example": {
|
|
21785
|
+
"versions": [
|
|
21786
|
+
{
|
|
21787
|
+
"version": 2,
|
|
21788
|
+
"status": "active",
|
|
21789
|
+
"changed": [
|
|
21790
|
+
"region_pin",
|
|
21791
|
+
"denied_models"
|
|
21792
|
+
],
|
|
21793
|
+
"changed_by": "api_key:c1a2b3d4-5e6f-4a7b-8c9d-0e1f2a3b4c5d",
|
|
21794
|
+
"change_reason": "Contractual EU residency",
|
|
21795
|
+
"changed_at": "2026-07-28T14:02:11.000Z",
|
|
21796
|
+
"policy": {
|
|
21797
|
+
"version": 2,
|
|
21798
|
+
"status": "active",
|
|
21799
|
+
"region_pin": "eu",
|
|
21800
|
+
"allowed_providers": [
|
|
21801
|
+
"bedrock"
|
|
21802
|
+
],
|
|
21803
|
+
"denied_models": [
|
|
21804
|
+
"claude-opus"
|
|
21805
|
+
],
|
|
21806
|
+
"model_substitutions": null,
|
|
21807
|
+
"default_models": null,
|
|
21808
|
+
"max_attempts": null,
|
|
21809
|
+
"model_classes": null,
|
|
21810
|
+
"operation_classes": null,
|
|
21811
|
+
"features": null
|
|
21812
|
+
}
|
|
21813
|
+
},
|
|
21814
|
+
{
|
|
21815
|
+
"version": 1,
|
|
21816
|
+
"status": "active",
|
|
21817
|
+
"changed": [
|
|
21818
|
+
"allowed_providers"
|
|
21819
|
+
],
|
|
21820
|
+
"changed_by": null,
|
|
21821
|
+
"change_reason": null,
|
|
21822
|
+
"changed_at": null,
|
|
21823
|
+
"policy": {
|
|
21824
|
+
"version": 1,
|
|
21825
|
+
"status": "active",
|
|
21826
|
+
"region_pin": null,
|
|
21827
|
+
"allowed_providers": [
|
|
21828
|
+
"bedrock"
|
|
21829
|
+
],
|
|
21830
|
+
"denied_models": null,
|
|
21831
|
+
"model_substitutions": null,
|
|
21832
|
+
"default_models": null,
|
|
21833
|
+
"max_attempts": null,
|
|
21834
|
+
"model_classes": null,
|
|
21835
|
+
"operation_classes": null,
|
|
21836
|
+
"features": null
|
|
21837
|
+
}
|
|
21838
|
+
}
|
|
21839
|
+
],
|
|
21840
|
+
"total": 2,
|
|
21841
|
+
"limit": 50
|
|
21842
|
+
}
|
|
21843
|
+
}
|
|
21844
|
+
}
|
|
19873
21845
|
},
|
|
19874
|
-
"
|
|
19875
|
-
"description": "
|
|
21846
|
+
"400": {
|
|
21847
|
+
"description": "The API key is not scoped to a single workspace.",
|
|
21848
|
+
"content": {
|
|
21849
|
+
"application/json": {
|
|
21850
|
+
"example": {
|
|
21851
|
+
"error": "workspace_scope_required",
|
|
21852
|
+
"message": "A workspace-scoped API key is required to read or change AI policy."
|
|
21853
|
+
}
|
|
21854
|
+
}
|
|
21855
|
+
}
|
|
21856
|
+
},
|
|
21857
|
+
"401": {
|
|
21858
|
+
"$ref": "#/components/responses/Unauthorized"
|
|
21859
|
+
},
|
|
21860
|
+
"429": {
|
|
21861
|
+
"$ref": "#/components/responses/RateLimitExceeded"
|
|
19876
21862
|
}
|
|
19877
21863
|
}
|
|
19878
21864
|
}
|
|
@@ -19885,6 +21871,12 @@
|
|
|
19885
21871
|
"scheme": "bearer",
|
|
19886
21872
|
"bearerFormat": "tlnc_*",
|
|
19887
21873
|
"description": "API key with `tlnc_` prefix. Pass as `Authorization: Bearer tlnc_live_...`.\n"
|
|
21874
|
+
},
|
|
21875
|
+
"OAuthBearerAuth": {
|
|
21876
|
+
"type": "http",
|
|
21877
|
+
"scheme": "bearer",
|
|
21878
|
+
"bearerFormat": "JWT",
|
|
21879
|
+
"description": "OAuth 2.1 access token (JWT) from the connector OAuth flow. Routes\nthat declare this scheme reject `tlnc_` API keys with `401`.\n"
|
|
19888
21880
|
}
|
|
19889
21881
|
},
|
|
19890
21882
|
"parameters": {
|
|
@@ -20936,6 +22928,11 @@
|
|
|
20936
22928
|
"error"
|
|
20937
22929
|
]
|
|
20938
22930
|
},
|
|
22931
|
+
"error": {
|
|
22932
|
+
"type": "string",
|
|
22933
|
+
"description": "Human-readable failure message. Present ONLY when status is `error`; omitted otherwise.\n",
|
|
22934
|
+
"example": "Extraction failed"
|
|
22935
|
+
},
|
|
20939
22936
|
"source": {
|
|
20940
22937
|
"type": "object",
|
|
20941
22938
|
"properties": {
|
|
@@ -20953,6 +22950,89 @@
|
|
|
20953
22950
|
}
|
|
20954
22951
|
}
|
|
20955
22952
|
},
|
|
22953
|
+
"field_count": {
|
|
22954
|
+
"type": "integer",
|
|
22955
|
+
"description": "Number of fields captured from the document. 0 until extraction completes.",
|
|
22956
|
+
"example": 42
|
|
22957
|
+
},
|
|
22958
|
+
"triage": {
|
|
22959
|
+
"type": [
|
|
22960
|
+
"object",
|
|
22961
|
+
"null"
|
|
22962
|
+
],
|
|
22963
|
+
"description": "Compliance triage signals for the document. `null` until triage has run.\n",
|
|
22964
|
+
"properties": {
|
|
22965
|
+
"sensitivity": {
|
|
22966
|
+
"type": [
|
|
22967
|
+
"string",
|
|
22968
|
+
"null"
|
|
22969
|
+
],
|
|
22970
|
+
"enum": [
|
|
22971
|
+
"public",
|
|
22972
|
+
"internal",
|
|
22973
|
+
"restricted",
|
|
22974
|
+
null
|
|
22975
|
+
],
|
|
22976
|
+
"description": "Sensitivity tier.",
|
|
22977
|
+
"example": "internal"
|
|
22978
|
+
},
|
|
22979
|
+
"department": {
|
|
22980
|
+
"type": [
|
|
22981
|
+
"string",
|
|
22982
|
+
"null"
|
|
22983
|
+
],
|
|
22984
|
+
"example": "finance"
|
|
22985
|
+
},
|
|
22986
|
+
"jurisdiction": {
|
|
22987
|
+
"type": [
|
|
22988
|
+
"string",
|
|
22989
|
+
"null"
|
|
22990
|
+
],
|
|
22991
|
+
"description": "Two-letter country code.",
|
|
22992
|
+
"example": "DE"
|
|
22993
|
+
},
|
|
22994
|
+
"pii_detected": {
|
|
22995
|
+
"type": "boolean",
|
|
22996
|
+
"description": "True when at least one PII category was detected.",
|
|
22997
|
+
"example": true
|
|
22998
|
+
},
|
|
22999
|
+
"pii_categories": {
|
|
23000
|
+
"type": [
|
|
23001
|
+
"array",
|
|
23002
|
+
"null"
|
|
23003
|
+
],
|
|
23004
|
+
"items": {
|
|
23005
|
+
"type": "string"
|
|
23006
|
+
},
|
|
23007
|
+
"description": "Detected PII categories. `null` until the compliance pass has run.",
|
|
23008
|
+
"example": [
|
|
23009
|
+
"name",
|
|
23010
|
+
"email"
|
|
23011
|
+
]
|
|
23012
|
+
},
|
|
23013
|
+
"regulated_data": {
|
|
23014
|
+
"type": "boolean",
|
|
23015
|
+
"description": "Whether the document likely contains regulated data.",
|
|
23016
|
+
"example": false
|
|
23017
|
+
},
|
|
23018
|
+
"confidentiality_marking": {
|
|
23019
|
+
"type": [
|
|
23020
|
+
"string",
|
|
23021
|
+
"null"
|
|
23022
|
+
],
|
|
23023
|
+
"description": "Confidentiality marking found in the document, if any.",
|
|
23024
|
+
"example": "Vertraulich"
|
|
23025
|
+
}
|
|
23026
|
+
}
|
|
23027
|
+
},
|
|
23028
|
+
"original_path": {
|
|
23029
|
+
"type": [
|
|
23030
|
+
"string",
|
|
23031
|
+
"null"
|
|
23032
|
+
],
|
|
23033
|
+
"description": "Folder path of the file at its source, when ingested from a connector.",
|
|
23034
|
+
"example": "/invoices/2026/04"
|
|
23035
|
+
},
|
|
20956
23036
|
"batch_id": {
|
|
20957
23037
|
"type": "string",
|
|
20958
23038
|
"description": "Caller grouping key supplied at ingest (batch_id). Present ONLY when the document was tagged; omitted otherwise (backwards-compatible).\n",
|
|
@@ -20986,6 +23066,43 @@
|
|
|
20986
23066
|
"format": "uuid",
|
|
20987
23067
|
"example": "d1a2b3c4-5678-9abc-def0-1234567890ab"
|
|
20988
23068
|
},
|
|
23069
|
+
"processing_log": {
|
|
23070
|
+
"type": "array",
|
|
23071
|
+
"description": "Per-stage pipeline timing log (OCR, classify, extract). Present ONLY when at least one stage has been recorded; omitted otherwise.\n",
|
|
23072
|
+
"items": {
|
|
23073
|
+
"type": "object",
|
|
23074
|
+
"required": [
|
|
23075
|
+
"step",
|
|
23076
|
+
"status",
|
|
23077
|
+
"started_at"
|
|
23078
|
+
],
|
|
23079
|
+
"properties": {
|
|
23080
|
+
"step": {
|
|
23081
|
+
"type": "string",
|
|
23082
|
+
"example": "ocr"
|
|
23083
|
+
},
|
|
23084
|
+
"status": {
|
|
23085
|
+
"type": "string",
|
|
23086
|
+
"example": "completed"
|
|
23087
|
+
},
|
|
23088
|
+
"started_at": {
|
|
23089
|
+
"type": "string",
|
|
23090
|
+
"format": "date-time"
|
|
23091
|
+
},
|
|
23092
|
+
"completed_at": {
|
|
23093
|
+
"type": "string",
|
|
23094
|
+
"format": "date-time"
|
|
23095
|
+
},
|
|
23096
|
+
"duration_ms": {
|
|
23097
|
+
"type": "integer",
|
|
23098
|
+
"example": 3120
|
|
23099
|
+
},
|
|
23100
|
+
"detail": {
|
|
23101
|
+
"type": "string"
|
|
23102
|
+
}
|
|
23103
|
+
}
|
|
23104
|
+
}
|
|
23105
|
+
},
|
|
20989
23106
|
"created_at": {
|
|
20990
23107
|
"type": "string",
|
|
20991
23108
|
"format": "date-time",
|
|
@@ -21000,6 +23117,12 @@
|
|
|
21000
23117
|
"extractions": {
|
|
21001
23118
|
"type": "string"
|
|
21002
23119
|
},
|
|
23120
|
+
"fields": {
|
|
23121
|
+
"type": "string"
|
|
23122
|
+
},
|
|
23123
|
+
"lineage": {
|
|
23124
|
+
"type": "string"
|
|
23125
|
+
},
|
|
21003
23126
|
"dashboard": {
|
|
21004
23127
|
"type": "string",
|
|
21005
23128
|
"format": "uri"
|