@talonic/docs 0.21.16 → 0.21.17
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 +2789 -696
- package/openapi.json +2767 -692
- package/package.json +1 -1
package/dist/seo.js
CHANGED
|
@@ -181,6 +181,10 @@ var openapi_default = {
|
|
|
181
181
|
{
|
|
182
182
|
name: "Provenance",
|
|
183
183
|
description: "Document-level provenance \u2014 deterministic (subject, predicate, object) claims synthesized from captured fields and spans, each carrying its evidence quote and grounded flag."
|
|
184
|
+
},
|
|
185
|
+
{
|
|
186
|
+
name: "AI Policy",
|
|
187
|
+
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"
|
|
184
188
|
}
|
|
185
189
|
],
|
|
186
190
|
paths: {
|
|
@@ -1015,6 +1019,192 @@ var openapi_default = {
|
|
|
1015
1019
|
}
|
|
1016
1020
|
}
|
|
1017
1021
|
},
|
|
1022
|
+
"/v1/documents/upload-session": {
|
|
1023
|
+
post: {
|
|
1024
|
+
operationId: "createUploadSession",
|
|
1025
|
+
summary: "Create a browser-handoff upload session",
|
|
1026
|
+
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",
|
|
1027
|
+
tags: [
|
|
1028
|
+
"Documents"
|
|
1029
|
+
],
|
|
1030
|
+
security: [
|
|
1031
|
+
{
|
|
1032
|
+
OAuthBearerAuth: []
|
|
1033
|
+
}
|
|
1034
|
+
],
|
|
1035
|
+
requestBody: {
|
|
1036
|
+
required: true,
|
|
1037
|
+
content: {
|
|
1038
|
+
"application/json": {
|
|
1039
|
+
schema: {
|
|
1040
|
+
type: "object",
|
|
1041
|
+
required: [
|
|
1042
|
+
"filename"
|
|
1043
|
+
],
|
|
1044
|
+
properties: {
|
|
1045
|
+
filename: {
|
|
1046
|
+
type: "string",
|
|
1047
|
+
maxLength: 512,
|
|
1048
|
+
description: "Filename of the file the user will upload.",
|
|
1049
|
+
example: "invoice-2026-04.pdf"
|
|
1050
|
+
}
|
|
1051
|
+
}
|
|
1052
|
+
}
|
|
1053
|
+
}
|
|
1054
|
+
}
|
|
1055
|
+
},
|
|
1056
|
+
responses: {
|
|
1057
|
+
"201": {
|
|
1058
|
+
description: "Upload session created.",
|
|
1059
|
+
content: {
|
|
1060
|
+
"application/json": {
|
|
1061
|
+
schema: {
|
|
1062
|
+
type: "object",
|
|
1063
|
+
required: [
|
|
1064
|
+
"document_id",
|
|
1065
|
+
"upload_url",
|
|
1066
|
+
"expires_at"
|
|
1067
|
+
],
|
|
1068
|
+
properties: {
|
|
1069
|
+
document_id: {
|
|
1070
|
+
type: "string",
|
|
1071
|
+
format: "uuid",
|
|
1072
|
+
description: "Pending document row awaiting the upload.",
|
|
1073
|
+
example: "f0e1d2c3-b4a5-9687-8765-432109876543"
|
|
1074
|
+
},
|
|
1075
|
+
upload_url: {
|
|
1076
|
+
type: "string",
|
|
1077
|
+
description: "Browser URL the user opens to pick and upload the file.",
|
|
1078
|
+
example: "https://app.talonic.com/u/1f2e3d4c-5b6a-7980-abcd-ef0123456789"
|
|
1079
|
+
},
|
|
1080
|
+
expires_at: {
|
|
1081
|
+
type: "string",
|
|
1082
|
+
format: "date-time",
|
|
1083
|
+
description: "Token expiry (15 minutes from creation by default)."
|
|
1084
|
+
}
|
|
1085
|
+
}
|
|
1086
|
+
}
|
|
1087
|
+
}
|
|
1088
|
+
}
|
|
1089
|
+
},
|
|
1090
|
+
"400": {
|
|
1091
|
+
$ref: "#/components/responses/BadRequest"
|
|
1092
|
+
},
|
|
1093
|
+
"401": {
|
|
1094
|
+
description: "Missing or invalid OAuth bearer token, or a `tlnc_` API key was used (not accepted on this route).",
|
|
1095
|
+
content: {
|
|
1096
|
+
"application/json": {
|
|
1097
|
+
schema: {
|
|
1098
|
+
$ref: "#/components/schemas/ErrorResponse"
|
|
1099
|
+
}
|
|
1100
|
+
}
|
|
1101
|
+
}
|
|
1102
|
+
},
|
|
1103
|
+
"429": {
|
|
1104
|
+
$ref: "#/components/responses/RateLimitExceeded"
|
|
1105
|
+
}
|
|
1106
|
+
}
|
|
1107
|
+
}
|
|
1108
|
+
},
|
|
1109
|
+
"/v1/upload/{token}": {
|
|
1110
|
+
post: {
|
|
1111
|
+
operationId: "uploadWithToken",
|
|
1112
|
+
summary: "Upload a file against an upload-session token",
|
|
1113
|
+
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",
|
|
1114
|
+
tags: [
|
|
1115
|
+
"Documents"
|
|
1116
|
+
],
|
|
1117
|
+
security: [],
|
|
1118
|
+
parameters: [
|
|
1119
|
+
{
|
|
1120
|
+
name: "token",
|
|
1121
|
+
in: "path",
|
|
1122
|
+
required: true,
|
|
1123
|
+
schema: {
|
|
1124
|
+
type: "string",
|
|
1125
|
+
format: "uuid"
|
|
1126
|
+
},
|
|
1127
|
+
description: "Single-use upload token minted by `POST /v1/documents/upload-session`."
|
|
1128
|
+
}
|
|
1129
|
+
],
|
|
1130
|
+
requestBody: {
|
|
1131
|
+
required: true,
|
|
1132
|
+
content: {
|
|
1133
|
+
"multipart/form-data": {
|
|
1134
|
+
schema: {
|
|
1135
|
+
type: "object",
|
|
1136
|
+
required: [
|
|
1137
|
+
"file"
|
|
1138
|
+
],
|
|
1139
|
+
properties: {
|
|
1140
|
+
file: {
|
|
1141
|
+
type: "string",
|
|
1142
|
+
format: "binary",
|
|
1143
|
+
description: "The file to upload (500 MB default cap)."
|
|
1144
|
+
}
|
|
1145
|
+
}
|
|
1146
|
+
}
|
|
1147
|
+
}
|
|
1148
|
+
}
|
|
1149
|
+
},
|
|
1150
|
+
responses: {
|
|
1151
|
+
"201": {
|
|
1152
|
+
description: "File accepted and extraction enqueued.",
|
|
1153
|
+
content: {
|
|
1154
|
+
"application/json": {
|
|
1155
|
+
schema: {
|
|
1156
|
+
type: "object",
|
|
1157
|
+
required: [
|
|
1158
|
+
"document_id",
|
|
1159
|
+
"status",
|
|
1160
|
+
"filename"
|
|
1161
|
+
],
|
|
1162
|
+
properties: {
|
|
1163
|
+
document_id: {
|
|
1164
|
+
type: "string",
|
|
1165
|
+
format: "uuid",
|
|
1166
|
+
example: "f0e1d2c3-b4a5-9687-8765-432109876543"
|
|
1167
|
+
},
|
|
1168
|
+
status: {
|
|
1169
|
+
type: "string",
|
|
1170
|
+
description: "Document status after upload, normally `queued`.",
|
|
1171
|
+
example: "queued"
|
|
1172
|
+
},
|
|
1173
|
+
filename: {
|
|
1174
|
+
type: "string",
|
|
1175
|
+
example: "invoice-2026-04.pdf"
|
|
1176
|
+
}
|
|
1177
|
+
}
|
|
1178
|
+
}
|
|
1179
|
+
}
|
|
1180
|
+
}
|
|
1181
|
+
},
|
|
1182
|
+
"400": {
|
|
1183
|
+
description: "No file was included in the multipart body.",
|
|
1184
|
+
content: {
|
|
1185
|
+
"application/json": {
|
|
1186
|
+
schema: {
|
|
1187
|
+
$ref: "#/components/schemas/ErrorResponse"
|
|
1188
|
+
}
|
|
1189
|
+
}
|
|
1190
|
+
}
|
|
1191
|
+
},
|
|
1192
|
+
"404": {
|
|
1193
|
+
description: "Upload token not found, expired, or already used.",
|
|
1194
|
+
content: {
|
|
1195
|
+
"application/json": {
|
|
1196
|
+
schema: {
|
|
1197
|
+
$ref: "#/components/schemas/ErrorResponse"
|
|
1198
|
+
}
|
|
1199
|
+
}
|
|
1200
|
+
}
|
|
1201
|
+
},
|
|
1202
|
+
"429": {
|
|
1203
|
+
$ref: "#/components/responses/RateLimitExceeded"
|
|
1204
|
+
}
|
|
1205
|
+
}
|
|
1206
|
+
}
|
|
1207
|
+
},
|
|
1018
1208
|
"/v1/inject-customer-metadata": {
|
|
1019
1209
|
post: {
|
|
1020
1210
|
operationId: "injectCustomerMetadata",
|
|
@@ -1749,6 +1939,59 @@ var openapi_default = {
|
|
|
1749
1939
|
}
|
|
1750
1940
|
}
|
|
1751
1941
|
},
|
|
1942
|
+
patch: {
|
|
1943
|
+
operationId: "patchSchema",
|
|
1944
|
+
"x-required-scopes": [
|
|
1945
|
+
"write"
|
|
1946
|
+
],
|
|
1947
|
+
summary: "Update a schema",
|
|
1948
|
+
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",
|
|
1949
|
+
tags: [
|
|
1950
|
+
"Schemas"
|
|
1951
|
+
],
|
|
1952
|
+
parameters: [
|
|
1953
|
+
{
|
|
1954
|
+
$ref: "#/components/parameters/ResourceId"
|
|
1955
|
+
}
|
|
1956
|
+
],
|
|
1957
|
+
requestBody: {
|
|
1958
|
+
required: true,
|
|
1959
|
+
content: {
|
|
1960
|
+
"application/json": {
|
|
1961
|
+
schema: {
|
|
1962
|
+
$ref: "#/components/schemas/SchemaUpdateRequest"
|
|
1963
|
+
}
|
|
1964
|
+
}
|
|
1965
|
+
}
|
|
1966
|
+
},
|
|
1967
|
+
responses: {
|
|
1968
|
+
"200": {
|
|
1969
|
+
description: "Schema updated.",
|
|
1970
|
+
content: {
|
|
1971
|
+
"application/json": {
|
|
1972
|
+
schema: {
|
|
1973
|
+
$ref: "#/components/schemas/SchemaResponse"
|
|
1974
|
+
}
|
|
1975
|
+
}
|
|
1976
|
+
}
|
|
1977
|
+
},
|
|
1978
|
+
"400": {
|
|
1979
|
+
$ref: "#/components/responses/BadRequest"
|
|
1980
|
+
},
|
|
1981
|
+
"401": {
|
|
1982
|
+
$ref: "#/components/responses/Unauthorized"
|
|
1983
|
+
},
|
|
1984
|
+
"404": {
|
|
1985
|
+
$ref: "#/components/responses/NotFound"
|
|
1986
|
+
},
|
|
1987
|
+
"409": {
|
|
1988
|
+
$ref: "#/components/responses/Conflict"
|
|
1989
|
+
},
|
|
1990
|
+
"429": {
|
|
1991
|
+
$ref: "#/components/responses/RateLimitExceeded"
|
|
1992
|
+
}
|
|
1993
|
+
}
|
|
1994
|
+
},
|
|
1752
1995
|
delete: {
|
|
1753
1996
|
operationId: "deleteSchema",
|
|
1754
1997
|
summary: "Delete a schema",
|
|
@@ -3984,47 +4227,154 @@ var openapi_default = {
|
|
|
3984
4227
|
$ref: "#/components/responses/RateLimitExceeded"
|
|
3985
4228
|
}
|
|
3986
4229
|
}
|
|
3987
|
-
}
|
|
3988
|
-
|
|
3989
|
-
|
|
3990
|
-
|
|
3991
|
-
|
|
3992
|
-
|
|
4230
|
+
},
|
|
4231
|
+
delete: {
|
|
4232
|
+
operationId: "clearDeliveryItems",
|
|
4233
|
+
"x-required-scopes": [
|
|
4234
|
+
"write"
|
|
4235
|
+
],
|
|
4236
|
+
summary: "Bulk-clear the delivery log",
|
|
4237
|
+
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",
|
|
3993
4238
|
tags: [
|
|
3994
4239
|
"Delivery"
|
|
3995
4240
|
],
|
|
3996
4241
|
parameters: [
|
|
3997
4242
|
{
|
|
3998
|
-
|
|
4243
|
+
in: "query",
|
|
4244
|
+
name: "binding_id",
|
|
4245
|
+
schema: {
|
|
4246
|
+
type: "string",
|
|
4247
|
+
format: "uuid"
|
|
4248
|
+
}
|
|
4249
|
+
},
|
|
4250
|
+
{
|
|
4251
|
+
in: "query",
|
|
4252
|
+
name: "destination_id",
|
|
4253
|
+
schema: {
|
|
4254
|
+
type: "string",
|
|
4255
|
+
format: "uuid"
|
|
4256
|
+
}
|
|
4257
|
+
},
|
|
4258
|
+
{
|
|
4259
|
+
in: "query",
|
|
4260
|
+
name: "status",
|
|
4261
|
+
schema: {
|
|
4262
|
+
type: "string",
|
|
4263
|
+
enum: [
|
|
4264
|
+
"in_flight",
|
|
4265
|
+
"succeeded",
|
|
4266
|
+
"failed"
|
|
4267
|
+
]
|
|
4268
|
+
}
|
|
3999
4269
|
}
|
|
4000
4270
|
],
|
|
4001
4271
|
responses: {
|
|
4002
4272
|
"200": {
|
|
4003
|
-
description: "
|
|
4273
|
+
description: "Rows removed.",
|
|
4004
4274
|
content: {
|
|
4005
4275
|
"application/json": {
|
|
4006
4276
|
schema: {
|
|
4007
|
-
|
|
4277
|
+
type: "object",
|
|
4278
|
+
properties: {
|
|
4279
|
+
deleted: {
|
|
4280
|
+
type: "integer"
|
|
4281
|
+
}
|
|
4282
|
+
}
|
|
4008
4283
|
}
|
|
4009
4284
|
}
|
|
4010
4285
|
}
|
|
4011
4286
|
},
|
|
4287
|
+
"400": {
|
|
4288
|
+
$ref: "#/components/responses/BadRequest"
|
|
4289
|
+
},
|
|
4012
4290
|
"401": {
|
|
4013
4291
|
$ref: "#/components/responses/Unauthorized"
|
|
4014
4292
|
},
|
|
4015
|
-
"404": {
|
|
4016
|
-
$ref: "#/components/responses/NotFound"
|
|
4017
|
-
},
|
|
4018
4293
|
"429": {
|
|
4019
4294
|
$ref: "#/components/responses/RateLimitExceeded"
|
|
4020
4295
|
}
|
|
4021
4296
|
}
|
|
4022
4297
|
}
|
|
4023
4298
|
},
|
|
4024
|
-
"/v1/delivery/items/{id}
|
|
4025
|
-
|
|
4026
|
-
operationId: "
|
|
4027
|
-
summary: "
|
|
4299
|
+
"/v1/delivery/items/{id}": {
|
|
4300
|
+
get: {
|
|
4301
|
+
operationId: "getDeliveryItem",
|
|
4302
|
+
summary: "Get a delivery attempt record",
|
|
4303
|
+
tags: [
|
|
4304
|
+
"Delivery"
|
|
4305
|
+
],
|
|
4306
|
+
parameters: [
|
|
4307
|
+
{
|
|
4308
|
+
$ref: "#/components/parameters/ResourceId"
|
|
4309
|
+
}
|
|
4310
|
+
],
|
|
4311
|
+
responses: {
|
|
4312
|
+
"200": {
|
|
4313
|
+
description: "Delivery item detail including request/response bodies.",
|
|
4314
|
+
content: {
|
|
4315
|
+
"application/json": {
|
|
4316
|
+
schema: {
|
|
4317
|
+
$ref: "#/components/schemas/DeliveryItem"
|
|
4318
|
+
}
|
|
4319
|
+
}
|
|
4320
|
+
}
|
|
4321
|
+
},
|
|
4322
|
+
"401": {
|
|
4323
|
+
$ref: "#/components/responses/Unauthorized"
|
|
4324
|
+
},
|
|
4325
|
+
"404": {
|
|
4326
|
+
$ref: "#/components/responses/NotFound"
|
|
4327
|
+
},
|
|
4328
|
+
"429": {
|
|
4329
|
+
$ref: "#/components/responses/RateLimitExceeded"
|
|
4330
|
+
}
|
|
4331
|
+
}
|
|
4332
|
+
},
|
|
4333
|
+
delete: {
|
|
4334
|
+
operationId: "deleteDeliveryItem",
|
|
4335
|
+
"x-required-scopes": [
|
|
4336
|
+
"write"
|
|
4337
|
+
],
|
|
4338
|
+
summary: "Delete a delivery attempt record",
|
|
4339
|
+
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",
|
|
4340
|
+
tags: [
|
|
4341
|
+
"Delivery"
|
|
4342
|
+
],
|
|
4343
|
+
parameters: [
|
|
4344
|
+
{
|
|
4345
|
+
$ref: "#/components/parameters/ResourceId"
|
|
4346
|
+
}
|
|
4347
|
+
],
|
|
4348
|
+
responses: {
|
|
4349
|
+
"200": {
|
|
4350
|
+
description: "Item deleted.",
|
|
4351
|
+
content: {
|
|
4352
|
+
"application/json": {
|
|
4353
|
+
schema: {
|
|
4354
|
+
$ref: "#/components/schemas/DeletedResponse"
|
|
4355
|
+
}
|
|
4356
|
+
}
|
|
4357
|
+
}
|
|
4358
|
+
},
|
|
4359
|
+
"400": {
|
|
4360
|
+
$ref: "#/components/responses/BadRequest"
|
|
4361
|
+
},
|
|
4362
|
+
"401": {
|
|
4363
|
+
$ref: "#/components/responses/Unauthorized"
|
|
4364
|
+
},
|
|
4365
|
+
"404": {
|
|
4366
|
+
$ref: "#/components/responses/NotFound"
|
|
4367
|
+
},
|
|
4368
|
+
"429": {
|
|
4369
|
+
$ref: "#/components/responses/RateLimitExceeded"
|
|
4370
|
+
}
|
|
4371
|
+
}
|
|
4372
|
+
}
|
|
4373
|
+
},
|
|
4374
|
+
"/v1/delivery/items/{id}/replay": {
|
|
4375
|
+
post: {
|
|
4376
|
+
operationId: "replayDeliveryItem",
|
|
4377
|
+
summary: "Re-enqueue a delivery attempt",
|
|
4028
4378
|
description: "Enqueues a new attempt for the binding/event pair. Generates a new\nidempotency key \u2014 replays are new attempts, never mutations.\n",
|
|
4029
4379
|
tags: [
|
|
4030
4380
|
"Delivery"
|
|
@@ -5487,6 +5837,74 @@ var openapi_default = {
|
|
|
5487
5837
|
$ref: "#/components/responses/RateLimitExceeded"
|
|
5488
5838
|
}
|
|
5489
5839
|
}
|
|
5840
|
+
},
|
|
5841
|
+
post: {
|
|
5842
|
+
operationId: "startBenchmarkRun",
|
|
5843
|
+
"x-required-scopes": [
|
|
5844
|
+
"write"
|
|
5845
|
+
],
|
|
5846
|
+
summary: "Start a benchmark run",
|
|
5847
|
+
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",
|
|
5848
|
+
tags: [
|
|
5849
|
+
"Benchmarks"
|
|
5850
|
+
],
|
|
5851
|
+
requestBody: {
|
|
5852
|
+
required: true,
|
|
5853
|
+
content: {
|
|
5854
|
+
"application/json": {
|
|
5855
|
+
schema: {
|
|
5856
|
+
type: "object",
|
|
5857
|
+
required: [
|
|
5858
|
+
"dataset_id",
|
|
5859
|
+
"user_schema_id"
|
|
5860
|
+
],
|
|
5861
|
+
properties: {
|
|
5862
|
+
dataset_id: {
|
|
5863
|
+
type: "string",
|
|
5864
|
+
format: "uuid",
|
|
5865
|
+
description: "Ground truth dataset to benchmark against.",
|
|
5866
|
+
example: "a1b2c3d4-e5f6-7890-abcd-ef1234567890"
|
|
5867
|
+
},
|
|
5868
|
+
user_schema_id: {
|
|
5869
|
+
type: "string",
|
|
5870
|
+
format: "uuid",
|
|
5871
|
+
description: "User schema that defines the fields to evaluate.",
|
|
5872
|
+
example: "b2c3d4e5-f6a7-8901-bcde-f12345678901"
|
|
5873
|
+
},
|
|
5874
|
+
name: {
|
|
5875
|
+
type: "string",
|
|
5876
|
+
description: 'Human-readable name for this run. Defaults to "Benchmark YYYY-MM-DD".',
|
|
5877
|
+
example: "Post-prompt-tune run"
|
|
5878
|
+
}
|
|
5879
|
+
}
|
|
5880
|
+
}
|
|
5881
|
+
}
|
|
5882
|
+
}
|
|
5883
|
+
},
|
|
5884
|
+
responses: {
|
|
5885
|
+
"201": {
|
|
5886
|
+
description: "Benchmark run created with status `queued`.",
|
|
5887
|
+
content: {
|
|
5888
|
+
"application/json": {
|
|
5889
|
+
schema: {
|
|
5890
|
+
$ref: "#/components/schemas/BenchmarkResponse"
|
|
5891
|
+
}
|
|
5892
|
+
}
|
|
5893
|
+
}
|
|
5894
|
+
},
|
|
5895
|
+
"400": {
|
|
5896
|
+
$ref: "#/components/responses/BadRequest"
|
|
5897
|
+
},
|
|
5898
|
+
"401": {
|
|
5899
|
+
$ref: "#/components/responses/Unauthorized"
|
|
5900
|
+
},
|
|
5901
|
+
"404": {
|
|
5902
|
+
$ref: "#/components/responses/NotFound"
|
|
5903
|
+
},
|
|
5904
|
+
"429": {
|
|
5905
|
+
$ref: "#/components/responses/RateLimitExceeded"
|
|
5906
|
+
}
|
|
5907
|
+
}
|
|
5490
5908
|
}
|
|
5491
5909
|
},
|
|
5492
5910
|
"/v1/quality/benchmarks/{id}": {
|
|
@@ -8146,39 +8564,6 @@ var openapi_default = {
|
|
|
8146
8564
|
}
|
|
8147
8565
|
},
|
|
8148
8566
|
"/v1/structuring/checks/{id}": {
|
|
8149
|
-
get: {
|
|
8150
|
-
operationId: "getStructuringCheck",
|
|
8151
|
-
summary: "Get a structuring check",
|
|
8152
|
-
tags: [
|
|
8153
|
-
"Structuring"
|
|
8154
|
-
],
|
|
8155
|
-
parameters: [
|
|
8156
|
-
{
|
|
8157
|
-
$ref: "#/components/parameters/ResourceId"
|
|
8158
|
-
}
|
|
8159
|
-
],
|
|
8160
|
-
responses: {
|
|
8161
|
-
"200": {
|
|
8162
|
-
description: "Structuring check detail.",
|
|
8163
|
-
content: {
|
|
8164
|
-
"application/json": {
|
|
8165
|
-
schema: {
|
|
8166
|
-
$ref: "#/components/schemas/StructuringCheckResponse"
|
|
8167
|
-
}
|
|
8168
|
-
}
|
|
8169
|
-
}
|
|
8170
|
-
},
|
|
8171
|
-
"401": {
|
|
8172
|
-
$ref: "#/components/responses/Unauthorized"
|
|
8173
|
-
},
|
|
8174
|
-
"404": {
|
|
8175
|
-
$ref: "#/components/responses/NotFound"
|
|
8176
|
-
},
|
|
8177
|
-
"429": {
|
|
8178
|
-
$ref: "#/components/responses/RateLimitExceeded"
|
|
8179
|
-
}
|
|
8180
|
-
}
|
|
8181
|
-
},
|
|
8182
8567
|
put: {
|
|
8183
8568
|
operationId: "updateStructuringCheck",
|
|
8184
8569
|
summary: "Update a structuring check",
|
|
@@ -10312,7 +10697,7 @@ var openapi_default = {
|
|
|
10312
10697
|
post: {
|
|
10313
10698
|
operationId: "ask",
|
|
10314
10699
|
summary: "Ask a question over your documents",
|
|
10315
|
-
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 \
|
|
10700
|
+
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',
|
|
10316
10701
|
tags: [
|
|
10317
10702
|
"Agent"
|
|
10318
10703
|
],
|
|
@@ -10331,15 +10716,120 @@ var openapi_default = {
|
|
|
10331
10716
|
maxLength: 2e4,
|
|
10332
10717
|
description: "The natural-language question to answer over the workspace corpus.",
|
|
10333
10718
|
example: "What is the payment term in the Globex contract, and where does it say so?"
|
|
10719
|
+
},
|
|
10720
|
+
scope: {
|
|
10721
|
+
type: "object",
|
|
10722
|
+
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.",
|
|
10723
|
+
properties: {
|
|
10724
|
+
document_ids: {
|
|
10725
|
+
type: "array",
|
|
10726
|
+
maxItems: 1e3,
|
|
10727
|
+
items: {
|
|
10728
|
+
type: "string",
|
|
10729
|
+
format: "uuid"
|
|
10730
|
+
},
|
|
10731
|
+
description: "Restrict to these documents. An empty array matches nothing."
|
|
10732
|
+
},
|
|
10733
|
+
schema_id: {
|
|
10734
|
+
type: "string",
|
|
10735
|
+
format: "uuid",
|
|
10736
|
+
description: "Restrict to documents processed by a pipeline of this Spec."
|
|
10737
|
+
},
|
|
10738
|
+
pipeline_id: {
|
|
10739
|
+
type: "string",
|
|
10740
|
+
format: "uuid",
|
|
10741
|
+
description: "Restrict to documents attached to this pipeline run."
|
|
10742
|
+
},
|
|
10743
|
+
data_product_id: {
|
|
10744
|
+
type: "string",
|
|
10745
|
+
format: "uuid",
|
|
10746
|
+
description: "Restrict to documents behind this data product's pipeline run."
|
|
10747
|
+
},
|
|
10748
|
+
document_type: {
|
|
10749
|
+
type: "string",
|
|
10750
|
+
maxLength: 200,
|
|
10751
|
+
description: "Restrict to documents of this classification (a document type name)."
|
|
10752
|
+
},
|
|
10753
|
+
source_id: {
|
|
10754
|
+
type: "string",
|
|
10755
|
+
format: "uuid",
|
|
10756
|
+
description: "Restrict to documents ingested through this source connection."
|
|
10757
|
+
},
|
|
10758
|
+
tags: {
|
|
10759
|
+
type: "array",
|
|
10760
|
+
maxItems: 100,
|
|
10761
|
+
items: {
|
|
10762
|
+
type: "string",
|
|
10763
|
+
maxLength: 200
|
|
10764
|
+
},
|
|
10765
|
+
description: "Restrict to documents carrying ANY of these user tags."
|
|
10766
|
+
},
|
|
10767
|
+
ingested_after: {
|
|
10768
|
+
type: "string",
|
|
10769
|
+
format: "date-time",
|
|
10770
|
+
description: "Restrict to documents ingested at or after this ISO timestamp."
|
|
10771
|
+
},
|
|
10772
|
+
ingested_before: {
|
|
10773
|
+
type: "string",
|
|
10774
|
+
format: "date-time",
|
|
10775
|
+
description: "Restrict to documents ingested at or before this ISO timestamp."
|
|
10776
|
+
}
|
|
10777
|
+
}
|
|
10778
|
+
},
|
|
10779
|
+
conversation_id: {
|
|
10780
|
+
type: "string",
|
|
10781
|
+
format: "uuid",
|
|
10782
|
+
description: "Continue this conversation; the agent sees its prior turns."
|
|
10783
|
+
},
|
|
10784
|
+
model: {
|
|
10785
|
+
type: "string",
|
|
10786
|
+
maxLength: 120,
|
|
10787
|
+
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."
|
|
10788
|
+
},
|
|
10789
|
+
model_class: {
|
|
10790
|
+
type: "string",
|
|
10791
|
+
maxLength: 120,
|
|
10792
|
+
description: "Run the turn on a model class (e.g. `complex`); used when `model` is absent."
|
|
10793
|
+
},
|
|
10794
|
+
output_format: {
|
|
10795
|
+
type: "object",
|
|
10796
|
+
description: "Shape the final answer. Constrains form only, never grounding or citation.",
|
|
10797
|
+
properties: {
|
|
10798
|
+
instruction: {
|
|
10799
|
+
type: "string",
|
|
10800
|
+
maxLength: 4e3,
|
|
10801
|
+
description: 'Free-text response-format instruction, e.g. "answer as a two-column table".'
|
|
10802
|
+
},
|
|
10803
|
+
template: {
|
|
10804
|
+
type: "string",
|
|
10805
|
+
maxLength: 2e4,
|
|
10806
|
+
description: "A markdown skeleton whose headings and order the answer keeps."
|
|
10807
|
+
}
|
|
10808
|
+
}
|
|
10809
|
+
},
|
|
10810
|
+
on_behalf_of: {
|
|
10811
|
+
type: "string",
|
|
10812
|
+
format: "uuid",
|
|
10813
|
+
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."
|
|
10334
10814
|
}
|
|
10335
10815
|
}
|
|
10816
|
+
},
|
|
10817
|
+
example: {
|
|
10818
|
+
question: "Which invoices in this pipeline are overdue, and by how much?",
|
|
10819
|
+
scope: {
|
|
10820
|
+
pipeline_id: "9e107d9d-372b-4c81-90c3-9dfe9f2c4b6a"
|
|
10821
|
+
},
|
|
10822
|
+
model_class: "complex",
|
|
10823
|
+
output_format: {
|
|
10824
|
+
instruction: "Answer as a markdown table with columns invoice, due date, days overdue."
|
|
10825
|
+
}
|
|
10336
10826
|
}
|
|
10337
10827
|
}
|
|
10338
10828
|
}
|
|
10339
10829
|
},
|
|
10340
10830
|
responses: {
|
|
10341
10831
|
"202": {
|
|
10342
|
-
description: "Ask accepted; poll `poll_url` for the answer.",
|
|
10832
|
+
description: "Ask accepted; poll `poll_url` or stream `stream_url` for the answer.",
|
|
10343
10833
|
content: {
|
|
10344
10834
|
"application/json": {
|
|
10345
10835
|
schema: {
|
|
@@ -10358,8 +10848,24 @@ var openapi_default = {
|
|
|
10358
10848
|
poll_url: {
|
|
10359
10849
|
type: "string",
|
|
10360
10850
|
example: "/v1/ask/3fa85f64-5717-4562-b3fc-2c963f66afa6"
|
|
10851
|
+
},
|
|
10852
|
+
stream_url: {
|
|
10853
|
+
type: "string",
|
|
10854
|
+
example: "/v1/ask/3fa85f64-5717-4562-b3fc-2c963f66afa6/stream"
|
|
10855
|
+
},
|
|
10856
|
+
conversation_id: {
|
|
10857
|
+
type: "string",
|
|
10858
|
+
format: "uuid",
|
|
10859
|
+
description: "The conversation this ask threads into (created when none was given)."
|
|
10361
10860
|
}
|
|
10362
10861
|
}
|
|
10862
|
+
},
|
|
10863
|
+
example: {
|
|
10864
|
+
ask_id: "3fa85f64-5717-4562-b3fc-2c963f66afa6",
|
|
10865
|
+
status: "processing",
|
|
10866
|
+
poll_url: "/v1/ask/3fa85f64-5717-4562-b3fc-2c963f66afa6",
|
|
10867
|
+
stream_url: "/v1/ask/3fa85f64-5717-4562-b3fc-2c963f66afa6/stream",
|
|
10868
|
+
conversation_id: "8c4f2a1e-0b6d-4e2f-9a3c-5d7e1f2a3b4c"
|
|
10363
10869
|
}
|
|
10364
10870
|
}
|
|
10365
10871
|
}
|
|
@@ -10383,7 +10889,7 @@ var openapi_default = {
|
|
|
10383
10889
|
get: {
|
|
10384
10890
|
operationId: "getAsk",
|
|
10385
10891
|
summary: "Poll an ask for its answer",
|
|
10386
|
-
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
|
|
10892
|
+
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',
|
|
10387
10893
|
tags: [
|
|
10388
10894
|
"Agent"
|
|
10389
10895
|
],
|
|
@@ -10421,6 +10927,11 @@ var openapi_default = {
|
|
|
10421
10927
|
poll_url: {
|
|
10422
10928
|
type: "string"
|
|
10423
10929
|
},
|
|
10930
|
+
conversation_id: {
|
|
10931
|
+
type: "string",
|
|
10932
|
+
format: "uuid",
|
|
10933
|
+
nullable: true
|
|
10934
|
+
},
|
|
10424
10935
|
answer: {
|
|
10425
10936
|
type: "string",
|
|
10426
10937
|
description: "Markdown answer (present when completed)."
|
|
@@ -10447,12 +10958,47 @@ var openapi_default = {
|
|
|
10447
10958
|
reference: {
|
|
10448
10959
|
type: "string"
|
|
10449
10960
|
},
|
|
10961
|
+
filename: {
|
|
10962
|
+
type: "string",
|
|
10963
|
+
nullable: true
|
|
10964
|
+
},
|
|
10450
10965
|
app_url: {
|
|
10451
10966
|
type: "string"
|
|
10452
10967
|
}
|
|
10453
10968
|
}
|
|
10454
10969
|
}
|
|
10455
10970
|
},
|
|
10971
|
+
cards: {
|
|
10972
|
+
type: "array",
|
|
10973
|
+
items: {
|
|
10974
|
+
type: "object"
|
|
10975
|
+
},
|
|
10976
|
+
description: "Generative UI cards the turn produced (present when completed)."
|
|
10977
|
+
},
|
|
10978
|
+
artifacts: {
|
|
10979
|
+
type: "array",
|
|
10980
|
+
items: {
|
|
10981
|
+
type: "object",
|
|
10982
|
+
properties: {
|
|
10983
|
+
type: {
|
|
10984
|
+
type: "string"
|
|
10985
|
+
},
|
|
10986
|
+
id: {
|
|
10987
|
+
type: "string"
|
|
10988
|
+
},
|
|
10989
|
+
label: {
|
|
10990
|
+
type: "string"
|
|
10991
|
+
},
|
|
10992
|
+
link: {
|
|
10993
|
+
type: "string"
|
|
10994
|
+
}
|
|
10995
|
+
}
|
|
10996
|
+
}
|
|
10997
|
+
},
|
|
10998
|
+
tool_calls: {
|
|
10999
|
+
type: "integer",
|
|
11000
|
+
description: "Number of tool invocations the turn ran."
|
|
11001
|
+
},
|
|
10456
11002
|
verification: {
|
|
10457
11003
|
type: "object",
|
|
10458
11004
|
nullable: true,
|
|
@@ -10489,6 +11035,35 @@ var openapi_default = {
|
|
|
10489
11035
|
}
|
|
10490
11036
|
}
|
|
10491
11037
|
}
|
|
11038
|
+
},
|
|
11039
|
+
example: {
|
|
11040
|
+
ask_id: "3fa85f64-5717-4562-b3fc-2c963f66afa6",
|
|
11041
|
+
status: "completed",
|
|
11042
|
+
poll_url: "/v1/ask/3fa85f64-5717-4562-b3fc-2c963f66afa6",
|
|
11043
|
+
conversation_id: "8c4f2a1e-0b6d-4e2f-9a3c-5d7e1f2a3b4c",
|
|
11044
|
+
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.",
|
|
11045
|
+
citations: [
|
|
11046
|
+
{
|
|
11047
|
+
quote: "INV-1041",
|
|
11048
|
+
document_id: "1b6f2c3d-4e5f-6a7b-8c9d-0e1f2a3b4c5d",
|
|
11049
|
+
kind: "field",
|
|
11050
|
+
reference: "due_date",
|
|
11051
|
+
filename: "invoice-1041.pdf",
|
|
11052
|
+
app_url: "https://app.talonic.com/documents/1b6f2c3d-4e5f-6a7b-8c9d-0e1f2a3b4c5d?cite=due_date"
|
|
11053
|
+
}
|
|
11054
|
+
],
|
|
11055
|
+
cards: [],
|
|
11056
|
+
artifacts: [],
|
|
11057
|
+
tool_calls: 4,
|
|
11058
|
+
verification: {
|
|
11059
|
+
verdict: "supported",
|
|
11060
|
+
checks_total: 3,
|
|
11061
|
+
checks_unsupported: 0
|
|
11062
|
+
},
|
|
11063
|
+
usage: {
|
|
11064
|
+
tokens: 18432,
|
|
11065
|
+
credits_charged: 100
|
|
11066
|
+
}
|
|
10492
11067
|
}
|
|
10493
11068
|
}
|
|
10494
11069
|
}
|
|
@@ -10505,8 +11080,52 @@ var openapi_default = {
|
|
|
10505
11080
|
}
|
|
10506
11081
|
}
|
|
10507
11082
|
},
|
|
10508
|
-
"/v1/
|
|
10509
|
-
|
|
11083
|
+
"/v1/ask/{id}/stream": {
|
|
11084
|
+
get: {
|
|
11085
|
+
operationId: "streamAsk",
|
|
11086
|
+
summary: "Stream an ask over server-sent events",
|
|
11087
|
+
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",
|
|
11088
|
+
tags: [
|
|
11089
|
+
"Agent"
|
|
11090
|
+
],
|
|
11091
|
+
parameters: [
|
|
11092
|
+
{
|
|
11093
|
+
name: "id",
|
|
11094
|
+
in: "path",
|
|
11095
|
+
required: true,
|
|
11096
|
+
schema: {
|
|
11097
|
+
type: "string",
|
|
11098
|
+
format: "uuid"
|
|
11099
|
+
}
|
|
11100
|
+
}
|
|
11101
|
+
],
|
|
11102
|
+
responses: {
|
|
11103
|
+
"200": {
|
|
11104
|
+
description: "Server-sent event stream of the turn's frames, closed on terminal status.",
|
|
11105
|
+
content: {
|
|
11106
|
+
"text/event-stream": {
|
|
11107
|
+
schema: {
|
|
11108
|
+
type: "string",
|
|
11109
|
+
description: "SSE frames, one JSON object per `data:` line, discriminated by `kind`."
|
|
11110
|
+
},
|
|
11111
|
+
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'
|
|
11112
|
+
}
|
|
11113
|
+
}
|
|
11114
|
+
},
|
|
11115
|
+
"401": {
|
|
11116
|
+
$ref: "#/components/responses/Unauthorized"
|
|
11117
|
+
},
|
|
11118
|
+
"404": {
|
|
11119
|
+
$ref: "#/components/responses/NotFound"
|
|
11120
|
+
},
|
|
11121
|
+
"429": {
|
|
11122
|
+
$ref: "#/components/responses/RateLimitExceeded"
|
|
11123
|
+
}
|
|
11124
|
+
}
|
|
11125
|
+
}
|
|
11126
|
+
},
|
|
11127
|
+
"/v1/agent/query": {
|
|
11128
|
+
post: {
|
|
10510
11129
|
operationId: "startAgentQuery",
|
|
10511
11130
|
summary: "Ask the agent (legacy alias of /v1/ask)",
|
|
10512
11131
|
description: "Legacy alias of `POST /v1/ask` with a minimal response shape. Starts a read-only\nagent turn (202) to poll via `GET /v1/agent/query/{id}`, which returns only\n`status` and the plain `answer` text. New integrations should use `/v1/ask`,\nwhich adds structured citations, the verification verdict, and usage. Charges the\nsame flat `agent_ask` unit.\n",
|
|
@@ -10768,7 +11387,7 @@ var openapi_default = {
|
|
|
10768
11387
|
get: {
|
|
10769
11388
|
operationId: "listAgentTools",
|
|
10770
11389
|
summary: "List agent tools",
|
|
10771
|
-
description: "Returns the catalogue of tools available to the embedded agent. Each tool entry
|
|
11390
|
+
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",
|
|
10772
11391
|
tags: [
|
|
10773
11392
|
"Agent"
|
|
10774
11393
|
],
|
|
@@ -10804,14 +11423,66 @@ var openapi_default = {
|
|
|
10804
11423
|
"live_mutation",
|
|
10805
11424
|
"irreversible"
|
|
10806
11425
|
]
|
|
11426
|
+
},
|
|
11427
|
+
capability: {
|
|
11428
|
+
type: "string",
|
|
11429
|
+
description: "The permission the tool requires (e.g. `data.read`)."
|
|
11430
|
+
},
|
|
11431
|
+
can_invoke: {
|
|
11432
|
+
type: "boolean",
|
|
11433
|
+
description: "Whether this key can run the tool via `POST /v1/agent/tools/{name}/invoke`."
|
|
11434
|
+
},
|
|
11435
|
+
input_schema: {
|
|
11436
|
+
type: "object",
|
|
11437
|
+
description: "JSON Schema for the tool's `args`."
|
|
10807
11438
|
}
|
|
10808
11439
|
}
|
|
10809
11440
|
}
|
|
10810
11441
|
},
|
|
10811
11442
|
totalCount: {
|
|
10812
11443
|
type: "integer"
|
|
11444
|
+
},
|
|
11445
|
+
invocable_count: {
|
|
11446
|
+
type: "integer",
|
|
11447
|
+
description: "How many listed tools this key can invoke."
|
|
10813
11448
|
}
|
|
10814
11449
|
}
|
|
11450
|
+
},
|
|
11451
|
+
example: {
|
|
11452
|
+
tools: [
|
|
11453
|
+
{
|
|
11454
|
+
name: "query_data",
|
|
11455
|
+
impact: "read",
|
|
11456
|
+
capability: "data.read",
|
|
11457
|
+
description: "Runs a read-only SQL query over the structured cell plane.",
|
|
11458
|
+
can_invoke: true,
|
|
11459
|
+
input_schema: {
|
|
11460
|
+
type: "object",
|
|
11461
|
+
properties: {
|
|
11462
|
+
sql: {
|
|
11463
|
+
type: "string"
|
|
11464
|
+
}
|
|
11465
|
+
}
|
|
11466
|
+
}
|
|
11467
|
+
},
|
|
11468
|
+
{
|
|
11469
|
+
name: "promote_field",
|
|
11470
|
+
impact: "draft_mutation",
|
|
11471
|
+
capability: "data.promote",
|
|
11472
|
+
description: "Makes an already-captured field queryable.",
|
|
11473
|
+
can_invoke: false,
|
|
11474
|
+
input_schema: {
|
|
11475
|
+
type: "object",
|
|
11476
|
+
properties: {
|
|
11477
|
+
field_id: {
|
|
11478
|
+
type: "string"
|
|
11479
|
+
}
|
|
11480
|
+
}
|
|
11481
|
+
}
|
|
11482
|
+
}
|
|
11483
|
+
],
|
|
11484
|
+
totalCount: 61,
|
|
11485
|
+
invocable_count: 32
|
|
10815
11486
|
}
|
|
10816
11487
|
}
|
|
10817
11488
|
}
|
|
@@ -10825,163 +11496,243 @@ var openapi_default = {
|
|
|
10825
11496
|
}
|
|
10826
11497
|
}
|
|
10827
11498
|
},
|
|
10828
|
-
"/v1/
|
|
10829
|
-
|
|
10830
|
-
operationId: "
|
|
10831
|
-
summary: "
|
|
10832
|
-
|
|
10833
|
-
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",
|
|
11499
|
+
"/v1/agent/tools/{name}/invoke": {
|
|
11500
|
+
post: {
|
|
11501
|
+
operationId: "invokeAgentTool",
|
|
11502
|
+
summary: "Invoke one agent tool directly",
|
|
11503
|
+
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",
|
|
10834
11504
|
tags: [
|
|
10835
|
-
"
|
|
11505
|
+
"Agent"
|
|
10836
11506
|
],
|
|
10837
11507
|
parameters: [
|
|
10838
11508
|
{
|
|
10839
|
-
name: "
|
|
11509
|
+
name: "name",
|
|
10840
11510
|
in: "path",
|
|
10841
11511
|
required: true,
|
|
10842
11512
|
schema: {
|
|
10843
11513
|
type: "string"
|
|
10844
11514
|
},
|
|
10845
|
-
description: "
|
|
10846
|
-
}
|
|
10847
|
-
],
|
|
10848
|
-
"x-sunset": "2026-04-21",
|
|
10849
|
-
responses: {
|
|
10850
|
-
"410": {
|
|
10851
|
-
description: "Gone \u2014 use `/v1/delivery/*` instead.",
|
|
10852
|
-
content: {
|
|
10853
|
-
"application/json": {
|
|
10854
|
-
schema: {
|
|
10855
|
-
$ref: "#/components/schemas/ErrorResponse"
|
|
10856
|
-
}
|
|
10857
|
-
}
|
|
10858
|
-
}
|
|
10859
|
-
}
|
|
10860
|
-
}
|
|
10861
|
-
}
|
|
10862
|
-
},
|
|
10863
|
-
"/v1/cases/{key}/status": {
|
|
10864
|
-
patch: {
|
|
10865
|
-
operationId: "updateCaseStatus",
|
|
10866
|
-
summary: "Update case status",
|
|
10867
|
-
tags: [
|
|
10868
|
-
"Cases"
|
|
10869
|
-
],
|
|
10870
|
-
parameters: [
|
|
10871
|
-
{
|
|
10872
|
-
name: "key",
|
|
10873
|
-
in: "path",
|
|
10874
|
-
required: true,
|
|
10875
|
-
schema: {
|
|
10876
|
-
type: "string",
|
|
10877
|
-
format: "uuid"
|
|
10878
|
-
},
|
|
10879
|
-
description: "Case UUID (the stable resource id)."
|
|
11515
|
+
description: "The tool name as listed by `GET /v1/agent/tools`."
|
|
10880
11516
|
}
|
|
10881
11517
|
],
|
|
10882
11518
|
requestBody: {
|
|
10883
|
-
required:
|
|
11519
|
+
required: false,
|
|
10884
11520
|
content: {
|
|
10885
11521
|
"application/json": {
|
|
10886
11522
|
schema: {
|
|
10887
11523
|
type: "object",
|
|
10888
|
-
required: [
|
|
10889
|
-
"status"
|
|
10890
|
-
],
|
|
10891
11524
|
properties: {
|
|
10892
|
-
|
|
11525
|
+
args: {
|
|
11526
|
+
type: "object",
|
|
11527
|
+
description: "Arguments matching the tool's `input_schema` from `GET /v1/agent/tools`."
|
|
11528
|
+
},
|
|
11529
|
+
scope: {
|
|
11530
|
+
type: "object",
|
|
11531
|
+
description: "Restrict the invocation to a slice of the workspace, exactly as on `POST /v1/ask`."
|
|
11532
|
+
},
|
|
11533
|
+
on_behalf_of: {
|
|
10893
11534
|
type: "string",
|
|
10894
|
-
|
|
10895
|
-
description: "
|
|
11535
|
+
format: "uuid",
|
|
11536
|
+
description: "Apply this workspace user's compartment visibility to the invocation."
|
|
10896
11537
|
}
|
|
10897
11538
|
}
|
|
11539
|
+
},
|
|
11540
|
+
example: {
|
|
11541
|
+
args: {
|
|
11542
|
+
query: "termination notice period"
|
|
11543
|
+
},
|
|
11544
|
+
scope: {
|
|
11545
|
+
document_type: "Master Services Agreement"
|
|
11546
|
+
}
|
|
10898
11547
|
}
|
|
10899
11548
|
}
|
|
10900
11549
|
}
|
|
10901
11550
|
},
|
|
10902
11551
|
responses: {
|
|
10903
11552
|
"200": {
|
|
10904
|
-
description: "
|
|
11553
|
+
description: "The tool ran; its raw output plus any cards, artifacts, and citations.",
|
|
10905
11554
|
content: {
|
|
10906
11555
|
"application/json": {
|
|
10907
11556
|
schema: {
|
|
10908
|
-
|
|
11557
|
+
type: "object",
|
|
11558
|
+
properties: {
|
|
11559
|
+
tool: {
|
|
11560
|
+
type: "string"
|
|
11561
|
+
},
|
|
11562
|
+
ok: {
|
|
11563
|
+
type: "boolean"
|
|
11564
|
+
},
|
|
11565
|
+
content: {
|
|
11566
|
+
type: "string",
|
|
11567
|
+
description: "The tool's raw output, usually JSON serialized as a string."
|
|
11568
|
+
},
|
|
11569
|
+
cards: {
|
|
11570
|
+
type: "array",
|
|
11571
|
+
items: {
|
|
11572
|
+
type: "object"
|
|
11573
|
+
}
|
|
11574
|
+
},
|
|
11575
|
+
artifacts: {
|
|
11576
|
+
type: "array",
|
|
11577
|
+
items: {
|
|
11578
|
+
type: "object"
|
|
11579
|
+
}
|
|
11580
|
+
},
|
|
11581
|
+
citations: {
|
|
11582
|
+
type: "array",
|
|
11583
|
+
items: {
|
|
11584
|
+
type: "object",
|
|
11585
|
+
properties: {
|
|
11586
|
+
quote: {
|
|
11587
|
+
type: "string"
|
|
11588
|
+
},
|
|
11589
|
+
document_id: {
|
|
11590
|
+
type: "string",
|
|
11591
|
+
format: "uuid"
|
|
11592
|
+
},
|
|
11593
|
+
kind: {
|
|
11594
|
+
type: "string",
|
|
11595
|
+
enum: [
|
|
11596
|
+
"field",
|
|
11597
|
+
"quote"
|
|
11598
|
+
]
|
|
11599
|
+
},
|
|
11600
|
+
reference: {
|
|
11601
|
+
type: "string"
|
|
11602
|
+
},
|
|
11603
|
+
filename: {
|
|
11604
|
+
type: "string",
|
|
11605
|
+
nullable: true
|
|
11606
|
+
},
|
|
11607
|
+
app_url: {
|
|
11608
|
+
type: "string"
|
|
11609
|
+
}
|
|
11610
|
+
}
|
|
11611
|
+
}
|
|
11612
|
+
}
|
|
11613
|
+
}
|
|
11614
|
+
},
|
|
11615
|
+
example: {
|
|
11616
|
+
tool: "query_data",
|
|
11617
|
+
ok: true,
|
|
11618
|
+
content: '[{"invoice":"INV-1041","days_overdue":12}]',
|
|
11619
|
+
cards: [],
|
|
11620
|
+
artifacts: [],
|
|
11621
|
+
citations: []
|
|
10909
11622
|
}
|
|
10910
11623
|
}
|
|
10911
11624
|
}
|
|
10912
11625
|
},
|
|
10913
|
-
"400": {
|
|
10914
|
-
$ref: "#/components/responses/BadRequest"
|
|
10915
|
-
},
|
|
10916
11626
|
"401": {
|
|
10917
11627
|
$ref: "#/components/responses/Unauthorized"
|
|
10918
11628
|
},
|
|
11629
|
+
"403": {
|
|
11630
|
+
description: "The tool requires a capability this key's role does not grant; the message names it."
|
|
11631
|
+
},
|
|
10919
11632
|
"404": {
|
|
10920
11633
|
$ref: "#/components/responses/NotFound"
|
|
10921
11634
|
},
|
|
11635
|
+
"422": {
|
|
11636
|
+
description: "The tool itself failed; the message is the tool's failure summary."
|
|
11637
|
+
},
|
|
10922
11638
|
"429": {
|
|
10923
11639
|
$ref: "#/components/responses/RateLimitExceeded"
|
|
10924
11640
|
}
|
|
10925
11641
|
}
|
|
10926
11642
|
}
|
|
10927
11643
|
},
|
|
10928
|
-
"/v1/
|
|
11644
|
+
"/v1/agent/conversations": {
|
|
10929
11645
|
get: {
|
|
10930
|
-
operationId: "
|
|
10931
|
-
summary: "
|
|
10932
|
-
description: "
|
|
11646
|
+
operationId: "listAgentConversations",
|
|
11647
|
+
summary: "List agent conversations",
|
|
11648
|
+
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",
|
|
10933
11649
|
tags: [
|
|
10934
|
-
"
|
|
11650
|
+
"Agent"
|
|
10935
11651
|
],
|
|
10936
11652
|
parameters: [
|
|
10937
11653
|
{
|
|
10938
|
-
name: "
|
|
10939
|
-
in: "
|
|
10940
|
-
|
|
11654
|
+
name: "limit",
|
|
11655
|
+
in: "query",
|
|
11656
|
+
schema: {
|
|
11657
|
+
type: "integer",
|
|
11658
|
+
minimum: 1,
|
|
11659
|
+
maximum: 100,
|
|
11660
|
+
default: 30
|
|
11661
|
+
},
|
|
11662
|
+
description: "Page size (1-100)."
|
|
11663
|
+
},
|
|
11664
|
+
{
|
|
11665
|
+
name: "cursor",
|
|
11666
|
+
in: "query",
|
|
11667
|
+
schema: {
|
|
11668
|
+
type: "string",
|
|
11669
|
+
format: "date-time"
|
|
11670
|
+
},
|
|
11671
|
+
description: "The previous page's `next_cursor`."
|
|
11672
|
+
},
|
|
11673
|
+
{
|
|
11674
|
+
name: "on_behalf_of",
|
|
11675
|
+
in: "query",
|
|
10941
11676
|
schema: {
|
|
10942
11677
|
type: "string",
|
|
10943
11678
|
format: "uuid"
|
|
10944
11679
|
},
|
|
10945
|
-
description: "
|
|
11680
|
+
description: "List the conversation partition of this workspace user."
|
|
10946
11681
|
}
|
|
10947
11682
|
],
|
|
10948
11683
|
responses: {
|
|
10949
11684
|
"200": {
|
|
10950
|
-
description: "
|
|
11685
|
+
description: "One page of conversations, newest activity first.",
|
|
10951
11686
|
content: {
|
|
10952
11687
|
"application/json": {
|
|
10953
11688
|
schema: {
|
|
10954
11689
|
type: "object",
|
|
10955
11690
|
properties: {
|
|
10956
|
-
|
|
11691
|
+
conversations: {
|
|
10957
11692
|
type: "array",
|
|
10958
11693
|
items: {
|
|
10959
11694
|
type: "object",
|
|
10960
11695
|
properties: {
|
|
10961
|
-
|
|
10962
|
-
type: "string",
|
|
10963
|
-
format: "uuid",
|
|
10964
|
-
example: "a1b2c3d4-e5f6-7890-abcd-ef1234567890"
|
|
10965
|
-
},
|
|
10966
|
-
target_document_id: {
|
|
11696
|
+
conversation_id: {
|
|
10967
11697
|
type: "string",
|
|
10968
|
-
format: "uuid"
|
|
10969
|
-
example: "a1b2c3d4-e5f6-7890-abcd-ef1234567890"
|
|
11698
|
+
format: "uuid"
|
|
10970
11699
|
},
|
|
10971
|
-
|
|
11700
|
+
title: {
|
|
10972
11701
|
type: "string"
|
|
10973
11702
|
},
|
|
10974
|
-
|
|
10975
|
-
type: "
|
|
11703
|
+
turn_count: {
|
|
11704
|
+
type: "integer"
|
|
10976
11705
|
},
|
|
10977
|
-
|
|
10978
|
-
type: "
|
|
10979
|
-
format: "
|
|
11706
|
+
created_at: {
|
|
11707
|
+
type: "string",
|
|
11708
|
+
format: "date-time"
|
|
11709
|
+
},
|
|
11710
|
+
last_activity_at: {
|
|
11711
|
+
type: "string",
|
|
11712
|
+
format: "date-time"
|
|
10980
11713
|
}
|
|
10981
11714
|
}
|
|
10982
11715
|
}
|
|
11716
|
+
},
|
|
11717
|
+
next_cursor: {
|
|
11718
|
+
type: "string",
|
|
11719
|
+
format: "date-time",
|
|
11720
|
+
nullable: true,
|
|
11721
|
+
description: "Pass as `cursor` for the next page; null when this is the last page."
|
|
10983
11722
|
}
|
|
10984
11723
|
}
|
|
11724
|
+
},
|
|
11725
|
+
example: {
|
|
11726
|
+
conversations: [
|
|
11727
|
+
{
|
|
11728
|
+
conversation_id: "8c4f2a1e-0b6d-4e2f-9a3c-5d7e1f2a3b4c",
|
|
11729
|
+
title: "Overdue invoices in Q3",
|
|
11730
|
+
turn_count: 3,
|
|
11731
|
+
created_at: "2026-07-30T09:12:00.000Z",
|
|
11732
|
+
last_activity_at: "2026-07-30T09:41:00.000Z"
|
|
11733
|
+
}
|
|
11734
|
+
],
|
|
11735
|
+
next_cursor: null
|
|
10985
11736
|
}
|
|
10986
11737
|
}
|
|
10987
11738
|
}
|
|
@@ -10989,64 +11740,109 @@ var openapi_default = {
|
|
|
10989
11740
|
"401": {
|
|
10990
11741
|
$ref: "#/components/responses/Unauthorized"
|
|
10991
11742
|
},
|
|
10992
|
-
"404": {
|
|
10993
|
-
$ref: "#/components/responses/NotFound"
|
|
10994
|
-
},
|
|
10995
11743
|
"429": {
|
|
10996
11744
|
$ref: "#/components/responses/RateLimitExceeded"
|
|
10997
11745
|
}
|
|
10998
11746
|
}
|
|
10999
11747
|
}
|
|
11000
11748
|
},
|
|
11001
|
-
"/v1/
|
|
11002
|
-
|
|
11003
|
-
operationId: "
|
|
11004
|
-
summary: "
|
|
11005
|
-
description: "
|
|
11749
|
+
"/v1/agent/conversations/{id}": {
|
|
11750
|
+
get: {
|
|
11751
|
+
operationId: "getAgentConversation",
|
|
11752
|
+
summary: "Get one conversation with its asks",
|
|
11753
|
+
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",
|
|
11006
11754
|
tags: [
|
|
11007
|
-
"
|
|
11755
|
+
"Agent"
|
|
11008
11756
|
],
|
|
11009
11757
|
parameters: [
|
|
11010
11758
|
{
|
|
11011
|
-
name: "
|
|
11759
|
+
name: "id",
|
|
11012
11760
|
in: "path",
|
|
11013
11761
|
required: true,
|
|
11014
11762
|
schema: {
|
|
11015
11763
|
type: "string",
|
|
11016
11764
|
format: "uuid"
|
|
11017
|
-
}
|
|
11018
|
-
description: "Case UUID (the stable resource id)."
|
|
11765
|
+
}
|
|
11019
11766
|
},
|
|
11020
11767
|
{
|
|
11021
|
-
name: "
|
|
11022
|
-
in: "
|
|
11023
|
-
required: true,
|
|
11768
|
+
name: "on_behalf_of",
|
|
11769
|
+
in: "query",
|
|
11024
11770
|
schema: {
|
|
11025
11771
|
type: "string",
|
|
11026
11772
|
format: "uuid"
|
|
11027
11773
|
},
|
|
11028
|
-
description: "
|
|
11774
|
+
description: "Read from the conversation partition of this workspace user."
|
|
11029
11775
|
}
|
|
11030
11776
|
],
|
|
11031
11777
|
responses: {
|
|
11032
11778
|
"200": {
|
|
11033
|
-
description: "
|
|
11779
|
+
description: "The conversation and its turns.",
|
|
11034
11780
|
content: {
|
|
11035
11781
|
"application/json": {
|
|
11036
11782
|
schema: {
|
|
11037
11783
|
type: "object",
|
|
11038
11784
|
properties: {
|
|
11039
|
-
|
|
11040
|
-
type: "
|
|
11785
|
+
conversation_id: {
|
|
11786
|
+
type: "string",
|
|
11787
|
+
format: "uuid"
|
|
11788
|
+
},
|
|
11789
|
+
title: {
|
|
11790
|
+
type: "string"
|
|
11791
|
+
},
|
|
11792
|
+
created_at: {
|
|
11793
|
+
type: "string",
|
|
11794
|
+
format: "date-time"
|
|
11795
|
+
},
|
|
11796
|
+
turns: {
|
|
11797
|
+
type: "array",
|
|
11798
|
+
items: {
|
|
11799
|
+
type: "object",
|
|
11800
|
+
properties: {
|
|
11801
|
+
ask_id: {
|
|
11802
|
+
type: "string",
|
|
11803
|
+
format: "uuid"
|
|
11804
|
+
},
|
|
11805
|
+
question: {
|
|
11806
|
+
type: "string"
|
|
11807
|
+
},
|
|
11808
|
+
status: {
|
|
11809
|
+
type: "string",
|
|
11810
|
+
enum: [
|
|
11811
|
+
"processing",
|
|
11812
|
+
"completed",
|
|
11813
|
+
"error"
|
|
11814
|
+
]
|
|
11815
|
+
},
|
|
11816
|
+
answer: {
|
|
11817
|
+
type: "string",
|
|
11818
|
+
description: "The answer markdown; empty until the turn completes."
|
|
11819
|
+
},
|
|
11820
|
+
created_at: {
|
|
11821
|
+
type: "string",
|
|
11822
|
+
format: "date-time"
|
|
11823
|
+
}
|
|
11824
|
+
}
|
|
11825
|
+
}
|
|
11041
11826
|
}
|
|
11042
11827
|
}
|
|
11828
|
+
},
|
|
11829
|
+
example: {
|
|
11830
|
+
conversation_id: "8c4f2a1e-0b6d-4e2f-9a3c-5d7e1f2a3b4c",
|
|
11831
|
+
title: "Overdue invoices in Q3",
|
|
11832
|
+
created_at: "2026-07-30T09:12:00.000Z",
|
|
11833
|
+
turns: [
|
|
11834
|
+
{
|
|
11835
|
+
ask_id: "3fa85f64-5717-4562-b3fc-2c963f66afa6",
|
|
11836
|
+
question: "Which invoices in this pipeline are overdue, and by how much?",
|
|
11837
|
+
status: "completed",
|
|
11838
|
+
answer: "Two invoices are overdue: INV-1041 by 12 days and INV-1055 by 3 days.",
|
|
11839
|
+
created_at: "2026-07-30T09:12:00.000Z"
|
|
11840
|
+
}
|
|
11841
|
+
]
|
|
11043
11842
|
}
|
|
11044
11843
|
}
|
|
11045
11844
|
}
|
|
11046
11845
|
},
|
|
11047
|
-
"400": {
|
|
11048
|
-
$ref: "#/components/responses/BadRequest"
|
|
11049
|
-
},
|
|
11050
11846
|
"401": {
|
|
11051
11847
|
$ref: "#/components/responses/Unauthorized"
|
|
11052
11848
|
},
|
|
@@ -11057,57 +11853,80 @@ var openapi_default = {
|
|
|
11057
11853
|
$ref: "#/components/responses/RateLimitExceeded"
|
|
11058
11854
|
}
|
|
11059
11855
|
}
|
|
11060
|
-
}
|
|
11061
|
-
|
|
11062
|
-
|
|
11063
|
-
|
|
11064
|
-
|
|
11065
|
-
summary: "Reject a case edge",
|
|
11066
|
-
description: "Reject a proposed entity edge between documents in this case.",
|
|
11856
|
+
},
|
|
11857
|
+
patch: {
|
|
11858
|
+
operationId: "renameAgentConversation",
|
|
11859
|
+
summary: "Rename a conversation",
|
|
11860
|
+
description: "Rename a conversation. The title is trimmed server-side and capped at 300\ncharacters. Requires the `write` scope.\n",
|
|
11067
11861
|
tags: [
|
|
11068
|
-
"
|
|
11862
|
+
"Agent"
|
|
11069
11863
|
],
|
|
11070
11864
|
parameters: [
|
|
11071
11865
|
{
|
|
11072
|
-
name: "
|
|
11866
|
+
name: "id",
|
|
11073
11867
|
in: "path",
|
|
11074
11868
|
required: true,
|
|
11075
11869
|
schema: {
|
|
11076
11870
|
type: "string",
|
|
11077
11871
|
format: "uuid"
|
|
11078
|
-
}
|
|
11079
|
-
description: "Case UUID (the stable resource id)."
|
|
11872
|
+
}
|
|
11080
11873
|
},
|
|
11081
11874
|
{
|
|
11082
|
-
name: "
|
|
11083
|
-
in: "
|
|
11084
|
-
required: true,
|
|
11875
|
+
name: "on_behalf_of",
|
|
11876
|
+
in: "query",
|
|
11085
11877
|
schema: {
|
|
11086
11878
|
type: "string",
|
|
11087
11879
|
format: "uuid"
|
|
11088
11880
|
},
|
|
11089
|
-
description: "
|
|
11881
|
+
description: "Rename within the conversation partition of this workspace user."
|
|
11090
11882
|
}
|
|
11091
11883
|
],
|
|
11884
|
+
requestBody: {
|
|
11885
|
+
required: true,
|
|
11886
|
+
content: {
|
|
11887
|
+
"application/json": {
|
|
11888
|
+
schema: {
|
|
11889
|
+
type: "object",
|
|
11890
|
+
required: [
|
|
11891
|
+
"title"
|
|
11892
|
+
],
|
|
11893
|
+
properties: {
|
|
11894
|
+
title: {
|
|
11895
|
+
type: "string",
|
|
11896
|
+
maxLength: 300
|
|
11897
|
+
}
|
|
11898
|
+
}
|
|
11899
|
+
},
|
|
11900
|
+
example: {
|
|
11901
|
+
title: "Q3 collections review"
|
|
11902
|
+
}
|
|
11903
|
+
}
|
|
11904
|
+
}
|
|
11905
|
+
},
|
|
11092
11906
|
responses: {
|
|
11093
11907
|
"200": {
|
|
11094
|
-
description: "
|
|
11908
|
+
description: "The conversation's new title.",
|
|
11095
11909
|
content: {
|
|
11096
11910
|
"application/json": {
|
|
11097
11911
|
schema: {
|
|
11098
11912
|
type: "object",
|
|
11099
11913
|
properties: {
|
|
11100
|
-
|
|
11101
|
-
type: "
|
|
11914
|
+
conversation_id: {
|
|
11915
|
+
type: "string",
|
|
11916
|
+
format: "uuid"
|
|
11917
|
+
},
|
|
11918
|
+
title: {
|
|
11919
|
+
type: "string"
|
|
11102
11920
|
}
|
|
11103
11921
|
}
|
|
11922
|
+
},
|
|
11923
|
+
example: {
|
|
11924
|
+
conversation_id: "8c4f2a1e-0b6d-4e2f-9a3c-5d7e1f2a3b4c",
|
|
11925
|
+
title: "Q3 collections review"
|
|
11104
11926
|
}
|
|
11105
11927
|
}
|
|
11106
11928
|
}
|
|
11107
11929
|
},
|
|
11108
|
-
"400": {
|
|
11109
|
-
$ref: "#/components/responses/BadRequest"
|
|
11110
|
-
},
|
|
11111
11930
|
"401": {
|
|
11112
11931
|
$ref: "#/components/responses/Unauthorized"
|
|
11113
11932
|
},
|
|
@@ -11118,124 +11937,111 @@ var openapi_default = {
|
|
|
11118
11937
|
$ref: "#/components/responses/RateLimitExceeded"
|
|
11119
11938
|
}
|
|
11120
11939
|
}
|
|
11121
|
-
}
|
|
11122
|
-
|
|
11123
|
-
|
|
11124
|
-
|
|
11125
|
-
|
|
11126
|
-
summary: "Get case anomalies",
|
|
11127
|
-
description: "Detector anomalies for the case (the risk surface) \u2014 field conflicts, divergent shared keys, suspicious value reuse, missing-document-type signals \u2014 plus open dangling-reference findings and the matched workflow template. Computed on-read from the case's field occurrences; no LLM, nothing persisted.\n",
|
|
11940
|
+
},
|
|
11941
|
+
delete: {
|
|
11942
|
+
operationId: "deleteAgentConversation",
|
|
11943
|
+
summary: "Delete a conversation",
|
|
11944
|
+
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",
|
|
11128
11945
|
tags: [
|
|
11129
|
-
"
|
|
11130
|
-
],
|
|
11131
|
-
security: [
|
|
11132
|
-
{
|
|
11133
|
-
BearerAuth: []
|
|
11134
|
-
}
|
|
11946
|
+
"Agent"
|
|
11135
11947
|
],
|
|
11136
11948
|
parameters: [
|
|
11137
11949
|
{
|
|
11138
|
-
name: "
|
|
11950
|
+
name: "id",
|
|
11139
11951
|
in: "path",
|
|
11140
11952
|
required: true,
|
|
11953
|
+
schema: {
|
|
11954
|
+
type: "string",
|
|
11955
|
+
format: "uuid"
|
|
11956
|
+
}
|
|
11957
|
+
},
|
|
11958
|
+
{
|
|
11959
|
+
name: "on_behalf_of",
|
|
11960
|
+
in: "query",
|
|
11141
11961
|
schema: {
|
|
11142
11962
|
type: "string",
|
|
11143
11963
|
format: "uuid"
|
|
11144
11964
|
},
|
|
11145
|
-
description: "
|
|
11965
|
+
description: "Delete within the conversation partition of this workspace user."
|
|
11146
11966
|
}
|
|
11147
11967
|
],
|
|
11148
11968
|
responses: {
|
|
11149
11969
|
"200": {
|
|
11150
|
-
description: "
|
|
11970
|
+
description: "The conversation was deleted.",
|
|
11151
11971
|
content: {
|
|
11152
11972
|
"application/json": {
|
|
11153
11973
|
schema: {
|
|
11154
11974
|
type: "object",
|
|
11155
11975
|
properties: {
|
|
11156
|
-
|
|
11157
|
-
type: "
|
|
11158
|
-
|
|
11159
|
-
type: "object",
|
|
11160
|
-
properties: {
|
|
11161
|
-
type: {
|
|
11162
|
-
type: "string"
|
|
11163
|
-
},
|
|
11164
|
-
severity: {
|
|
11165
|
-
type: "string",
|
|
11166
|
-
enum: [
|
|
11167
|
-
"critical",
|
|
11168
|
-
"warning",
|
|
11169
|
-
"info"
|
|
11170
|
-
]
|
|
11171
|
-
},
|
|
11172
|
-
title: {
|
|
11173
|
-
type: "string"
|
|
11174
|
-
},
|
|
11175
|
-
description: {
|
|
11176
|
-
type: "string"
|
|
11177
|
-
},
|
|
11178
|
-
document_ids: {
|
|
11179
|
-
type: "array",
|
|
11180
|
-
items: {
|
|
11181
|
-
type: "string",
|
|
11182
|
-
format: "uuid"
|
|
11183
|
-
}
|
|
11184
|
-
},
|
|
11185
|
-
targets: {
|
|
11186
|
-
type: "array",
|
|
11187
|
-
items: {
|
|
11188
|
-
type: "object",
|
|
11189
|
-
properties: {
|
|
11190
|
-
document_id: {
|
|
11191
|
-
type: "string",
|
|
11192
|
-
format: "uuid"
|
|
11193
|
-
},
|
|
11194
|
-
field: {
|
|
11195
|
-
type: "string"
|
|
11196
|
-
},
|
|
11197
|
-
value: {
|
|
11198
|
-
type: "string"
|
|
11199
|
-
}
|
|
11200
|
-
}
|
|
11201
|
-
}
|
|
11202
|
-
}
|
|
11203
|
-
}
|
|
11204
|
-
}
|
|
11205
|
-
},
|
|
11206
|
-
findings: {
|
|
11207
|
-
type: "array",
|
|
11208
|
-
items: {
|
|
11209
|
-
type: "object"
|
|
11210
|
-
}
|
|
11976
|
+
conversation_id: {
|
|
11977
|
+
type: "string",
|
|
11978
|
+
format: "uuid"
|
|
11211
11979
|
},
|
|
11212
|
-
|
|
11213
|
-
type: "
|
|
11214
|
-
nullable: true
|
|
11980
|
+
deleted: {
|
|
11981
|
+
type: "boolean"
|
|
11215
11982
|
}
|
|
11216
11983
|
}
|
|
11984
|
+
},
|
|
11985
|
+
example: {
|
|
11986
|
+
conversation_id: "8c4f2a1e-0b6d-4e2f-9a3c-5d7e1f2a3b4c",
|
|
11987
|
+
deleted: true
|
|
11217
11988
|
}
|
|
11218
11989
|
}
|
|
11219
11990
|
}
|
|
11220
11991
|
},
|
|
11992
|
+
"401": {
|
|
11993
|
+
$ref: "#/components/responses/Unauthorized"
|
|
11994
|
+
},
|
|
11221
11995
|
"404": {
|
|
11222
11996
|
$ref: "#/components/responses/NotFound"
|
|
11997
|
+
},
|
|
11998
|
+
"429": {
|
|
11999
|
+
$ref: "#/components/responses/RateLimitExceeded"
|
|
11223
12000
|
}
|
|
11224
12001
|
}
|
|
11225
12002
|
}
|
|
11226
12003
|
},
|
|
11227
|
-
"/v1/
|
|
12004
|
+
"/v1/exports/{path}": {
|
|
11228
12005
|
get: {
|
|
11229
|
-
operationId: "
|
|
11230
|
-
summary: "
|
|
11231
|
-
|
|
12006
|
+
operationId: "deprecatedExportsGet",
|
|
12007
|
+
summary: "Deprecated exports endpoint (any verb)",
|
|
12008
|
+
deprecated: true,
|
|
12009
|
+
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",
|
|
11232
12010
|
tags: [
|
|
11233
|
-
"
|
|
12011
|
+
"Delivery"
|
|
11234
12012
|
],
|
|
11235
|
-
|
|
12013
|
+
parameters: [
|
|
11236
12014
|
{
|
|
11237
|
-
|
|
12015
|
+
name: "path",
|
|
12016
|
+
in: "path",
|
|
12017
|
+
required: true,
|
|
12018
|
+
schema: {
|
|
12019
|
+
type: "string"
|
|
12020
|
+
},
|
|
12021
|
+
description: "Any sub-path under `/v1/exports/`."
|
|
12022
|
+
}
|
|
12023
|
+
],
|
|
12024
|
+
"x-sunset": "2026-04-21",
|
|
12025
|
+
responses: {
|
|
12026
|
+
"410": {
|
|
12027
|
+
description: "Gone \u2014 use `/v1/delivery/*` instead.",
|
|
12028
|
+
content: {
|
|
12029
|
+
"application/json": {
|
|
12030
|
+
schema: {
|
|
12031
|
+
$ref: "#/components/schemas/ErrorResponse"
|
|
12032
|
+
}
|
|
12033
|
+
}
|
|
12034
|
+
}
|
|
11238
12035
|
}
|
|
12036
|
+
}
|
|
12037
|
+
}
|
|
12038
|
+
},
|
|
12039
|
+
"/v1/cases/{key}/status": {
|
|
12040
|
+
patch: {
|
|
12041
|
+
operationId: "updateCaseStatus",
|
|
12042
|
+
summary: "Update case status",
|
|
12043
|
+
tags: [
|
|
12044
|
+
"Cases"
|
|
11239
12045
|
],
|
|
11240
12046
|
parameters: [
|
|
11241
12047
|
{
|
|
@@ -11249,76 +12055,130 @@ var openapi_default = {
|
|
|
11249
12055
|
description: "Case UUID (the stable resource id)."
|
|
11250
12056
|
}
|
|
11251
12057
|
],
|
|
11252
|
-
|
|
12058
|
+
requestBody: {
|
|
12059
|
+
required: true,
|
|
12060
|
+
content: {
|
|
12061
|
+
"application/json": {
|
|
12062
|
+
schema: {
|
|
12063
|
+
type: "object",
|
|
12064
|
+
required: [
|
|
12065
|
+
"status"
|
|
12066
|
+
],
|
|
12067
|
+
properties: {
|
|
12068
|
+
status: {
|
|
12069
|
+
type: "string",
|
|
12070
|
+
example: "completed",
|
|
12071
|
+
description: "New status (e.g. open, in_review, resolved, archived)."
|
|
12072
|
+
}
|
|
12073
|
+
}
|
|
12074
|
+
}
|
|
12075
|
+
}
|
|
12076
|
+
}
|
|
12077
|
+
},
|
|
12078
|
+
responses: {
|
|
11253
12079
|
"200": {
|
|
11254
|
-
description: "
|
|
12080
|
+
description: "Case status updated.",
|
|
12081
|
+
content: {
|
|
12082
|
+
"application/json": {
|
|
12083
|
+
schema: {
|
|
12084
|
+
$ref: "#/components/schemas/CaseDetailResponse"
|
|
12085
|
+
}
|
|
12086
|
+
}
|
|
12087
|
+
}
|
|
12088
|
+
},
|
|
12089
|
+
"400": {
|
|
12090
|
+
$ref: "#/components/responses/BadRequest"
|
|
12091
|
+
},
|
|
12092
|
+
"401": {
|
|
12093
|
+
$ref: "#/components/responses/Unauthorized"
|
|
12094
|
+
},
|
|
12095
|
+
"404": {
|
|
12096
|
+
$ref: "#/components/responses/NotFound"
|
|
12097
|
+
},
|
|
12098
|
+
"429": {
|
|
12099
|
+
$ref: "#/components/responses/RateLimitExceeded"
|
|
12100
|
+
}
|
|
12101
|
+
}
|
|
12102
|
+
}
|
|
12103
|
+
},
|
|
12104
|
+
"/v1/cases/{key}/edges": {
|
|
12105
|
+
get: {
|
|
12106
|
+
operationId: "getCaseEdges",
|
|
12107
|
+
summary: "Get case edges",
|
|
12108
|
+
description: "Returns the entity edges (evidence chain) connecting documents within the case.",
|
|
12109
|
+
tags: [
|
|
12110
|
+
"Cases"
|
|
12111
|
+
],
|
|
12112
|
+
parameters: [
|
|
12113
|
+
{
|
|
12114
|
+
name: "key",
|
|
12115
|
+
in: "path",
|
|
12116
|
+
required: true,
|
|
12117
|
+
schema: {
|
|
12118
|
+
type: "string",
|
|
12119
|
+
format: "uuid"
|
|
12120
|
+
},
|
|
12121
|
+
description: "Case UUID (the stable resource id)."
|
|
12122
|
+
}
|
|
12123
|
+
],
|
|
12124
|
+
responses: {
|
|
12125
|
+
"200": {
|
|
12126
|
+
description: "Case edges.",
|
|
11255
12127
|
content: {
|
|
11256
12128
|
"application/json": {
|
|
11257
12129
|
schema: {
|
|
11258
12130
|
type: "object",
|
|
11259
12131
|
properties: {
|
|
11260
|
-
|
|
12132
|
+
data: {
|
|
11261
12133
|
type: "array",
|
|
11262
12134
|
items: {
|
|
11263
12135
|
type: "object",
|
|
11264
12136
|
properties: {
|
|
11265
|
-
|
|
12137
|
+
source_document_id: {
|
|
11266
12138
|
type: "string",
|
|
11267
|
-
format: "uuid"
|
|
12139
|
+
format: "uuid",
|
|
12140
|
+
example: "a1b2c3d4-e5f6-7890-abcd-ef1234567890"
|
|
11268
12141
|
},
|
|
11269
|
-
|
|
12142
|
+
target_document_id: {
|
|
11270
12143
|
type: "string",
|
|
11271
12144
|
format: "uuid",
|
|
11272
|
-
|
|
11273
|
-
},
|
|
11274
|
-
via_field: {
|
|
11275
|
-
type: "string"
|
|
12145
|
+
example: "a1b2c3d4-e5f6-7890-abcd-ef1234567890"
|
|
11276
12146
|
},
|
|
11277
|
-
|
|
12147
|
+
entity_value: {
|
|
11278
12148
|
type: "string"
|
|
11279
12149
|
},
|
|
11280
|
-
|
|
12150
|
+
entity_type: {
|
|
11281
12151
|
type: "string"
|
|
11282
12152
|
},
|
|
11283
12153
|
confidence: {
|
|
11284
12154
|
type: "number",
|
|
11285
|
-
|
|
11286
|
-
},
|
|
11287
|
-
verdict: {
|
|
11288
|
-
type: "string",
|
|
11289
|
-
nullable: true
|
|
12155
|
+
format: "float"
|
|
11290
12156
|
}
|
|
11291
12157
|
}
|
|
11292
12158
|
}
|
|
11293
|
-
},
|
|
11294
|
-
gaps: {
|
|
11295
|
-
type: "array",
|
|
11296
|
-
items: {
|
|
11297
|
-
type: "object"
|
|
11298
|
-
}
|
|
11299
|
-
},
|
|
11300
|
-
documents: {
|
|
11301
|
-
type: "array",
|
|
11302
|
-
items: {
|
|
11303
|
-
type: "object"
|
|
11304
|
-
}
|
|
11305
12159
|
}
|
|
11306
12160
|
}
|
|
11307
12161
|
}
|
|
11308
12162
|
}
|
|
11309
12163
|
}
|
|
11310
12164
|
},
|
|
12165
|
+
"401": {
|
|
12166
|
+
$ref: "#/components/responses/Unauthorized"
|
|
12167
|
+
},
|
|
11311
12168
|
"404": {
|
|
11312
12169
|
$ref: "#/components/responses/NotFound"
|
|
12170
|
+
},
|
|
12171
|
+
"429": {
|
|
12172
|
+
$ref: "#/components/responses/RateLimitExceeded"
|
|
11313
12173
|
}
|
|
11314
12174
|
}
|
|
11315
12175
|
}
|
|
11316
12176
|
},
|
|
11317
|
-
"/v1/cases/{key}/
|
|
12177
|
+
"/v1/cases/{key}/edges/{edgeId}/confirm": {
|
|
11318
12178
|
post: {
|
|
11319
|
-
operationId: "
|
|
11320
|
-
summary: "
|
|
11321
|
-
description: "
|
|
12179
|
+
operationId: "confirmCaseEdge",
|
|
12180
|
+
summary: "Confirm a case edge",
|
|
12181
|
+
description: "Confirm a proposed entity edge between documents in this case.",
|
|
11322
12182
|
tags: [
|
|
11323
12183
|
"Cases"
|
|
11324
12184
|
],
|
|
@@ -11332,67 +12192,28 @@ var openapi_default = {
|
|
|
11332
12192
|
format: "uuid"
|
|
11333
12193
|
},
|
|
11334
12194
|
description: "Case UUID (the stable resource id)."
|
|
12195
|
+
},
|
|
12196
|
+
{
|
|
12197
|
+
name: "edgeId",
|
|
12198
|
+
in: "path",
|
|
12199
|
+
required: true,
|
|
12200
|
+
schema: {
|
|
12201
|
+
type: "string",
|
|
12202
|
+
format: "uuid"
|
|
12203
|
+
},
|
|
12204
|
+
description: "Edge identifier from the case edges list."
|
|
11335
12205
|
}
|
|
11336
12206
|
],
|
|
11337
|
-
requestBody: {
|
|
11338
|
-
required: true,
|
|
11339
|
-
content: {
|
|
11340
|
-
"application/json": {
|
|
11341
|
-
schema: {
|
|
11342
|
-
type: "object",
|
|
11343
|
-
required: [
|
|
11344
|
-
"partition_b"
|
|
11345
|
-
],
|
|
11346
|
-
properties: {
|
|
11347
|
-
partition_b: {
|
|
11348
|
-
type: "array",
|
|
11349
|
-
items: {
|
|
11350
|
-
type: "string",
|
|
11351
|
-
format: "uuid",
|
|
11352
|
-
example: "a1b2c3d4-e5f6-7890-abcd-ef1234567890"
|
|
11353
|
-
},
|
|
11354
|
-
description: "Document IDs that move out into the newly-created case (non-empty strict subset). Everything not listed stays on the existing case."
|
|
11355
|
-
},
|
|
11356
|
-
partition_a: {
|
|
11357
|
-
type: "array",
|
|
11358
|
-
items: {
|
|
11359
|
-
type: "string",
|
|
11360
|
-
format: "uuid",
|
|
11361
|
-
example: "a1b2c3d4-e5f6-7890-abcd-ef1234567890"
|
|
11362
|
-
},
|
|
11363
|
-
description: "Informational only \u2014 the kept documents are derived as the complement of partition_b."
|
|
11364
|
-
}
|
|
11365
|
-
}
|
|
11366
|
-
}
|
|
11367
|
-
}
|
|
11368
|
-
}
|
|
11369
|
-
},
|
|
11370
12207
|
responses: {
|
|
11371
12208
|
"200": {
|
|
11372
|
-
description: "
|
|
12209
|
+
description: "Edge confirmed.",
|
|
11373
12210
|
content: {
|
|
11374
12211
|
"application/json": {
|
|
11375
12212
|
schema: {
|
|
11376
12213
|
type: "object",
|
|
11377
|
-
required: [
|
|
11378
|
-
"source_id",
|
|
11379
|
-
"new_case_id",
|
|
11380
|
-
"moved"
|
|
11381
|
-
],
|
|
11382
12214
|
properties: {
|
|
11383
|
-
|
|
11384
|
-
type: "
|
|
11385
|
-
format: "uuid",
|
|
11386
|
-
description: "UUID of the existing case (retains the documents not listed in partition_b)."
|
|
11387
|
-
},
|
|
11388
|
-
new_case_id: {
|
|
11389
|
-
type: "string",
|
|
11390
|
-
format: "uuid",
|
|
11391
|
-
description: "UUID of the newly created case holding the partition_b documents."
|
|
11392
|
-
},
|
|
11393
|
-
moved: {
|
|
11394
|
-
type: "integer",
|
|
11395
|
-
description: "Count of documents moved into the new case."
|
|
12215
|
+
success: {
|
|
12216
|
+
type: "boolean"
|
|
11396
12217
|
}
|
|
11397
12218
|
}
|
|
11398
12219
|
}
|
|
@@ -11414,73 +12235,48 @@ var openapi_default = {
|
|
|
11414
12235
|
}
|
|
11415
12236
|
}
|
|
11416
12237
|
},
|
|
11417
|
-
"/v1/cases/
|
|
12238
|
+
"/v1/cases/{key}/edges/{edgeId}/reject": {
|
|
11418
12239
|
post: {
|
|
11419
|
-
operationId: "
|
|
11420
|
-
summary: "
|
|
11421
|
-
description: "
|
|
12240
|
+
operationId: "rejectCaseEdge",
|
|
12241
|
+
summary: "Reject a case edge",
|
|
12242
|
+
description: "Reject a proposed entity edge between documents in this case.",
|
|
11422
12243
|
tags: [
|
|
11423
12244
|
"Cases"
|
|
11424
12245
|
],
|
|
11425
|
-
|
|
11426
|
-
|
|
11427
|
-
|
|
11428
|
-
"
|
|
11429
|
-
|
|
11430
|
-
|
|
11431
|
-
|
|
11432
|
-
|
|
11433
|
-
|
|
11434
|
-
|
|
11435
|
-
|
|
11436
|
-
|
|
11437
|
-
|
|
11438
|
-
|
|
11439
|
-
|
|
11440
|
-
|
|
11441
|
-
|
|
11442
|
-
|
|
11443
|
-
|
|
11444
|
-
|
|
11445
|
-
}
|
|
11446
|
-
}
|
|
11447
|
-
}
|
|
11448
|
-
}
|
|
12246
|
+
parameters: [
|
|
12247
|
+
{
|
|
12248
|
+
name: "key",
|
|
12249
|
+
in: "path",
|
|
12250
|
+
required: true,
|
|
12251
|
+
schema: {
|
|
12252
|
+
type: "string",
|
|
12253
|
+
format: "uuid"
|
|
12254
|
+
},
|
|
12255
|
+
description: "Case UUID (the stable resource id)."
|
|
12256
|
+
},
|
|
12257
|
+
{
|
|
12258
|
+
name: "edgeId",
|
|
12259
|
+
in: "path",
|
|
12260
|
+
required: true,
|
|
12261
|
+
schema: {
|
|
12262
|
+
type: "string",
|
|
12263
|
+
format: "uuid"
|
|
12264
|
+
},
|
|
12265
|
+
description: "Edge identifier from the case edges list."
|
|
11449
12266
|
}
|
|
11450
|
-
|
|
12267
|
+
],
|
|
11451
12268
|
responses: {
|
|
11452
12269
|
"200": {
|
|
11453
|
-
description: "
|
|
12270
|
+
description: "Edge rejected.",
|
|
11454
12271
|
content: {
|
|
11455
12272
|
"application/json": {
|
|
11456
12273
|
schema: {
|
|
11457
12274
|
type: "object",
|
|
11458
|
-
description: "The surviving target case row.",
|
|
11459
12275
|
properties: {
|
|
11460
|
-
|
|
11461
|
-
type: "
|
|
11462
|
-
format: "uuid"
|
|
11463
|
-
},
|
|
11464
|
-
case_key: {
|
|
11465
|
-
type: "string"
|
|
11466
|
-
},
|
|
11467
|
-
status: {
|
|
11468
|
-
type: "string",
|
|
11469
|
-
enum: [
|
|
11470
|
-
"discovered",
|
|
11471
|
-
"confirmed",
|
|
11472
|
-
"active",
|
|
11473
|
-
"resolved"
|
|
11474
|
-
]
|
|
11475
|
-
},
|
|
11476
|
-
display_name: {
|
|
11477
|
-
type: [
|
|
11478
|
-
"string",
|
|
11479
|
-
"null"
|
|
11480
|
-
]
|
|
12276
|
+
success: {
|
|
12277
|
+
type: "boolean"
|
|
11481
12278
|
}
|
|
11482
|
-
}
|
|
11483
|
-
additionalProperties: true
|
|
12279
|
+
}
|
|
11484
12280
|
}
|
|
11485
12281
|
}
|
|
11486
12282
|
}
|
|
@@ -11500,14 +12296,19 @@ var openapi_default = {
|
|
|
11500
12296
|
}
|
|
11501
12297
|
}
|
|
11502
12298
|
},
|
|
11503
|
-
"/v1/cases/{key}/
|
|
12299
|
+
"/v1/cases/{key}/anomalies": {
|
|
11504
12300
|
get: {
|
|
11505
|
-
operationId: "
|
|
11506
|
-
summary: "Get case
|
|
11507
|
-
description: "
|
|
12301
|
+
operationId: "getCaseAnomalies",
|
|
12302
|
+
summary: "Get case anomalies",
|
|
12303
|
+
description: "Detector anomalies for the case (the risk surface) \u2014 field conflicts, divergent shared keys, suspicious value reuse, missing-document-type signals \u2014 plus open dangling-reference findings and the matched workflow template. Computed on-read from the case's field occurrences; no LLM, nothing persisted.\n",
|
|
11508
12304
|
tags: [
|
|
11509
12305
|
"Cases"
|
|
11510
12306
|
],
|
|
12307
|
+
security: [
|
|
12308
|
+
{
|
|
12309
|
+
BearerAuth: []
|
|
12310
|
+
}
|
|
12311
|
+
],
|
|
11511
12312
|
parameters: [
|
|
11512
12313
|
{
|
|
11513
12314
|
name: "key",
|
|
@@ -11522,59 +12323,96 @@ var openapi_default = {
|
|
|
11522
12323
|
],
|
|
11523
12324
|
responses: {
|
|
11524
12325
|
"200": {
|
|
11525
|
-
description: "
|
|
12326
|
+
description: "Anomalies, findings, and matched template.",
|
|
11526
12327
|
content: {
|
|
11527
12328
|
"application/json": {
|
|
11528
12329
|
schema: {
|
|
11529
12330
|
type: "object",
|
|
11530
12331
|
properties: {
|
|
11531
|
-
|
|
11532
|
-
type: "number",
|
|
11533
|
-
format: "float"
|
|
11534
|
-
},
|
|
11535
|
-
expected_document_types: {
|
|
12332
|
+
data: {
|
|
11536
12333
|
type: "array",
|
|
11537
12334
|
items: {
|
|
11538
|
-
type: "
|
|
12335
|
+
type: "object",
|
|
12336
|
+
properties: {
|
|
12337
|
+
type: {
|
|
12338
|
+
type: "string"
|
|
12339
|
+
},
|
|
12340
|
+
severity: {
|
|
12341
|
+
type: "string",
|
|
12342
|
+
enum: [
|
|
12343
|
+
"critical",
|
|
12344
|
+
"warning",
|
|
12345
|
+
"info"
|
|
12346
|
+
]
|
|
12347
|
+
},
|
|
12348
|
+
title: {
|
|
12349
|
+
type: "string"
|
|
12350
|
+
},
|
|
12351
|
+
description: {
|
|
12352
|
+
type: "string"
|
|
12353
|
+
},
|
|
12354
|
+
document_ids: {
|
|
12355
|
+
type: "array",
|
|
12356
|
+
items: {
|
|
12357
|
+
type: "string",
|
|
12358
|
+
format: "uuid"
|
|
12359
|
+
}
|
|
12360
|
+
},
|
|
12361
|
+
targets: {
|
|
12362
|
+
type: "array",
|
|
12363
|
+
items: {
|
|
12364
|
+
type: "object",
|
|
12365
|
+
properties: {
|
|
12366
|
+
document_id: {
|
|
12367
|
+
type: "string",
|
|
12368
|
+
format: "uuid"
|
|
12369
|
+
},
|
|
12370
|
+
field: {
|
|
12371
|
+
type: "string"
|
|
12372
|
+
},
|
|
12373
|
+
value: {
|
|
12374
|
+
type: "string"
|
|
12375
|
+
}
|
|
12376
|
+
}
|
|
12377
|
+
}
|
|
12378
|
+
}
|
|
12379
|
+
}
|
|
11539
12380
|
}
|
|
11540
12381
|
},
|
|
11541
|
-
|
|
12382
|
+
findings: {
|
|
11542
12383
|
type: "array",
|
|
11543
12384
|
items: {
|
|
11544
|
-
type: "
|
|
12385
|
+
type: "object"
|
|
11545
12386
|
}
|
|
11546
12387
|
},
|
|
11547
|
-
|
|
11548
|
-
type: "
|
|
11549
|
-
|
|
11550
|
-
type: "string"
|
|
11551
|
-
}
|
|
12388
|
+
template: {
|
|
12389
|
+
type: "object",
|
|
12390
|
+
nullable: true
|
|
11552
12391
|
}
|
|
11553
12392
|
}
|
|
11554
12393
|
}
|
|
11555
12394
|
}
|
|
11556
12395
|
}
|
|
11557
12396
|
},
|
|
11558
|
-
"401": {
|
|
11559
|
-
$ref: "#/components/responses/Unauthorized"
|
|
11560
|
-
},
|
|
11561
12397
|
"404": {
|
|
11562
12398
|
$ref: "#/components/responses/NotFound"
|
|
11563
|
-
},
|
|
11564
|
-
"429": {
|
|
11565
|
-
$ref: "#/components/responses/RateLimitExceeded"
|
|
11566
12399
|
}
|
|
11567
12400
|
}
|
|
11568
12401
|
}
|
|
11569
12402
|
},
|
|
11570
|
-
"/v1/cases/{key}/
|
|
11571
|
-
|
|
11572
|
-
operationId: "
|
|
11573
|
-
summary: "
|
|
11574
|
-
description: "
|
|
12403
|
+
"/v1/cases/{key}/evidence": {
|
|
12404
|
+
get: {
|
|
12405
|
+
operationId: "getCaseEvidence",
|
|
12406
|
+
summary: "Get case evidence",
|
|
12407
|
+
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 \u2014 why these documents form one case and what is still missing.\n",
|
|
11575
12408
|
tags: [
|
|
11576
12409
|
"Cases"
|
|
11577
12410
|
],
|
|
12411
|
+
security: [
|
|
12412
|
+
{
|
|
12413
|
+
BearerAuth: []
|
|
12414
|
+
}
|
|
12415
|
+
],
|
|
11578
12416
|
parameters: [
|
|
11579
12417
|
{
|
|
11580
12418
|
name: "key",
|
|
@@ -11585,49 +12423,78 @@ var openapi_default = {
|
|
|
11585
12423
|
format: "uuid"
|
|
11586
12424
|
},
|
|
11587
12425
|
description: "Case UUID (the stable resource id)."
|
|
11588
|
-
},
|
|
11589
|
-
{
|
|
11590
|
-
name: "docId",
|
|
11591
|
-
in: "path",
|
|
11592
|
-
required: true,
|
|
11593
|
-
schema: {
|
|
11594
|
-
type: "string",
|
|
11595
|
-
format: "uuid"
|
|
11596
|
-
},
|
|
11597
|
-
description: "Document identifier to pin."
|
|
11598
12426
|
}
|
|
11599
12427
|
],
|
|
11600
12428
|
responses: {
|
|
11601
12429
|
"200": {
|
|
11602
|
-
description: "
|
|
12430
|
+
description: "Connections, gaps, and documents.",
|
|
11603
12431
|
content: {
|
|
11604
12432
|
"application/json": {
|
|
11605
12433
|
schema: {
|
|
11606
|
-
|
|
12434
|
+
type: "object",
|
|
12435
|
+
properties: {
|
|
12436
|
+
connections: {
|
|
12437
|
+
type: "array",
|
|
12438
|
+
items: {
|
|
12439
|
+
type: "object",
|
|
12440
|
+
properties: {
|
|
12441
|
+
document_a: {
|
|
12442
|
+
type: "string",
|
|
12443
|
+
format: "uuid"
|
|
12444
|
+
},
|
|
12445
|
+
document_b: {
|
|
12446
|
+
type: "string",
|
|
12447
|
+
format: "uuid",
|
|
12448
|
+
nullable: true
|
|
12449
|
+
},
|
|
12450
|
+
via_field: {
|
|
12451
|
+
type: "string"
|
|
12452
|
+
},
|
|
12453
|
+
value: {
|
|
12454
|
+
type: "string"
|
|
12455
|
+
},
|
|
12456
|
+
kind: {
|
|
12457
|
+
type: "string"
|
|
12458
|
+
},
|
|
12459
|
+
confidence: {
|
|
12460
|
+
type: "number",
|
|
12461
|
+
nullable: true
|
|
12462
|
+
},
|
|
12463
|
+
verdict: {
|
|
12464
|
+
type: "string",
|
|
12465
|
+
nullable: true
|
|
12466
|
+
}
|
|
12467
|
+
}
|
|
12468
|
+
}
|
|
12469
|
+
},
|
|
12470
|
+
gaps: {
|
|
12471
|
+
type: "array",
|
|
12472
|
+
items: {
|
|
12473
|
+
type: "object"
|
|
12474
|
+
}
|
|
12475
|
+
},
|
|
12476
|
+
documents: {
|
|
12477
|
+
type: "array",
|
|
12478
|
+
items: {
|
|
12479
|
+
type: "object"
|
|
12480
|
+
}
|
|
12481
|
+
}
|
|
12482
|
+
}
|
|
11607
12483
|
}
|
|
11608
12484
|
}
|
|
11609
12485
|
}
|
|
11610
12486
|
},
|
|
11611
|
-
"400": {
|
|
11612
|
-
$ref: "#/components/responses/BadRequest"
|
|
11613
|
-
},
|
|
11614
|
-
"401": {
|
|
11615
|
-
$ref: "#/components/responses/Unauthorized"
|
|
11616
|
-
},
|
|
11617
12487
|
"404": {
|
|
11618
12488
|
$ref: "#/components/responses/NotFound"
|
|
11619
|
-
},
|
|
11620
|
-
"429": {
|
|
11621
|
-
$ref: "#/components/responses/RateLimitExceeded"
|
|
11622
12489
|
}
|
|
11623
12490
|
}
|
|
11624
12491
|
}
|
|
11625
12492
|
},
|
|
11626
|
-
"/v1/cases/{key}/
|
|
11627
|
-
|
|
11628
|
-
operationId: "
|
|
11629
|
-
summary: "
|
|
11630
|
-
description: "
|
|
12493
|
+
"/v1/cases/{key}/split": {
|
|
12494
|
+
post: {
|
|
12495
|
+
operationId: "splitCase",
|
|
12496
|
+
summary: "Split a case",
|
|
12497
|
+
description: "Split a case into two separate cases by partitioning its documents into two groups.",
|
|
11631
12498
|
tags: [
|
|
11632
12499
|
"Cases"
|
|
11633
12500
|
],
|
|
@@ -11641,68 +12508,76 @@ var openapi_default = {
|
|
|
11641
12508
|
format: "uuid"
|
|
11642
12509
|
},
|
|
11643
12510
|
description: "Case UUID (the stable resource id)."
|
|
11644
|
-
},
|
|
11645
|
-
{
|
|
11646
|
-
name: "docId",
|
|
11647
|
-
in: "path",
|
|
11648
|
-
required: true,
|
|
11649
|
-
schema: {
|
|
11650
|
-
type: "string",
|
|
11651
|
-
format: "uuid"
|
|
11652
|
-
},
|
|
11653
|
-
description: "Document identifier to remove."
|
|
11654
12511
|
}
|
|
11655
12512
|
],
|
|
12513
|
+
requestBody: {
|
|
12514
|
+
required: true,
|
|
12515
|
+
content: {
|
|
12516
|
+
"application/json": {
|
|
12517
|
+
schema: {
|
|
12518
|
+
type: "object",
|
|
12519
|
+
required: [
|
|
12520
|
+
"partition_b"
|
|
12521
|
+
],
|
|
12522
|
+
properties: {
|
|
12523
|
+
partition_b: {
|
|
12524
|
+
type: "array",
|
|
12525
|
+
items: {
|
|
12526
|
+
type: "string",
|
|
12527
|
+
format: "uuid",
|
|
12528
|
+
example: "a1b2c3d4-e5f6-7890-abcd-ef1234567890"
|
|
12529
|
+
},
|
|
12530
|
+
description: "Document IDs that move out into the newly-created case (non-empty strict subset). Everything not listed stays on the existing case."
|
|
12531
|
+
},
|
|
12532
|
+
partition_a: {
|
|
12533
|
+
type: "array",
|
|
12534
|
+
items: {
|
|
12535
|
+
type: "string",
|
|
12536
|
+
format: "uuid",
|
|
12537
|
+
example: "a1b2c3d4-e5f6-7890-abcd-ef1234567890"
|
|
12538
|
+
},
|
|
12539
|
+
description: "Informational only \u2014 the kept documents are derived as the complement of partition_b."
|
|
12540
|
+
}
|
|
12541
|
+
}
|
|
12542
|
+
}
|
|
12543
|
+
}
|
|
12544
|
+
}
|
|
12545
|
+
},
|
|
11656
12546
|
responses: {
|
|
11657
12547
|
"200": {
|
|
11658
|
-
description: "
|
|
12548
|
+
description: "Case split.",
|
|
11659
12549
|
content: {
|
|
11660
12550
|
"application/json": {
|
|
11661
12551
|
schema: {
|
|
11662
|
-
|
|
11663
|
-
|
|
11664
|
-
|
|
11665
|
-
|
|
11666
|
-
|
|
11667
|
-
|
|
11668
|
-
|
|
11669
|
-
|
|
11670
|
-
|
|
11671
|
-
|
|
11672
|
-
|
|
11673
|
-
|
|
11674
|
-
|
|
11675
|
-
|
|
11676
|
-
|
|
11677
|
-
|
|
11678
|
-
|
|
11679
|
-
|
|
11680
|
-
|
|
11681
|
-
|
|
11682
|
-
|
|
11683
|
-
|
|
11684
|
-
operationId: "syncBatch",
|
|
11685
|
-
summary: "Sync batch status with provider",
|
|
11686
|
-
description: "Force a status sync with the batch inference provider (Anthropic or Bedrock).",
|
|
11687
|
-
tags: [
|
|
11688
|
-
"Jobs & Batches"
|
|
11689
|
-
],
|
|
11690
|
-
parameters: [
|
|
11691
|
-
{
|
|
11692
|
-
$ref: "#/components/parameters/ResourceId"
|
|
11693
|
-
}
|
|
11694
|
-
],
|
|
11695
|
-
responses: {
|
|
11696
|
-
"200": {
|
|
11697
|
-
description: "Batch synced.",
|
|
11698
|
-
content: {
|
|
11699
|
-
"application/json": {
|
|
11700
|
-
schema: {
|
|
11701
|
-
$ref: "#/components/schemas/BatchResponse"
|
|
12552
|
+
type: "object",
|
|
12553
|
+
required: [
|
|
12554
|
+
"source_id",
|
|
12555
|
+
"new_case_id",
|
|
12556
|
+
"moved"
|
|
12557
|
+
],
|
|
12558
|
+
properties: {
|
|
12559
|
+
source_id: {
|
|
12560
|
+
type: "string",
|
|
12561
|
+
format: "uuid",
|
|
12562
|
+
description: "UUID of the existing case (retains the documents not listed in partition_b)."
|
|
12563
|
+
},
|
|
12564
|
+
new_case_id: {
|
|
12565
|
+
type: "string",
|
|
12566
|
+
format: "uuid",
|
|
12567
|
+
description: "UUID of the newly created case holding the partition_b documents."
|
|
12568
|
+
},
|
|
12569
|
+
moved: {
|
|
12570
|
+
type: "integer",
|
|
12571
|
+
description: "Count of documents moved into the new case."
|
|
12572
|
+
}
|
|
12573
|
+
}
|
|
11702
12574
|
}
|
|
11703
12575
|
}
|
|
11704
12576
|
}
|
|
11705
12577
|
},
|
|
12578
|
+
"400": {
|
|
12579
|
+
$ref: "#/components/responses/BadRequest"
|
|
12580
|
+
},
|
|
11706
12581
|
"401": {
|
|
11707
12582
|
$ref: "#/components/responses/Unauthorized"
|
|
11708
12583
|
},
|
|
@@ -11715,93 +12590,147 @@ var openapi_default = {
|
|
|
11715
12590
|
}
|
|
11716
12591
|
}
|
|
11717
12592
|
},
|
|
11718
|
-
"/v1/
|
|
12593
|
+
"/v1/cases/merge": {
|
|
11719
12594
|
post: {
|
|
11720
|
-
operationId: "
|
|
11721
|
-
summary: "
|
|
11722
|
-
description: "
|
|
12595
|
+
operationId: "mergeCases",
|
|
12596
|
+
summary: "Merge two cases",
|
|
12597
|
+
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",
|
|
11723
12598
|
tags: [
|
|
11724
|
-
"
|
|
12599
|
+
"Cases"
|
|
11725
12600
|
],
|
|
11726
|
-
|
|
11727
|
-
|
|
11728
|
-
|
|
12601
|
+
requestBody: {
|
|
12602
|
+
required: true,
|
|
12603
|
+
content: {
|
|
12604
|
+
"application/json": {
|
|
12605
|
+
schema: {
|
|
12606
|
+
type: "object",
|
|
12607
|
+
required: [
|
|
12608
|
+
"case_key_a",
|
|
12609
|
+
"case_key_b"
|
|
12610
|
+
],
|
|
12611
|
+
properties: {
|
|
12612
|
+
case_key_a: {
|
|
12613
|
+
type: "string",
|
|
12614
|
+
format: "uuid",
|
|
12615
|
+
description: "UUID of the surviving target case \u2014 receives the merged documents."
|
|
12616
|
+
},
|
|
12617
|
+
case_key_b: {
|
|
12618
|
+
type: "string",
|
|
12619
|
+
format: "uuid",
|
|
12620
|
+
description: "UUID of the absorbed case \u2014 its documents are folded into case A."
|
|
12621
|
+
}
|
|
12622
|
+
}
|
|
12623
|
+
}
|
|
12624
|
+
}
|
|
11729
12625
|
}
|
|
11730
|
-
|
|
12626
|
+
},
|
|
11731
12627
|
responses: {
|
|
11732
12628
|
"200": {
|
|
11733
|
-
description: "
|
|
12629
|
+
description: "Cases merged. Returns the surviving (target) case row \u2014 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",
|
|
11734
12630
|
content: {
|
|
11735
12631
|
"application/json": {
|
|
11736
12632
|
schema: {
|
|
11737
|
-
|
|
12633
|
+
type: "object",
|
|
12634
|
+
description: "The surviving target case row.",
|
|
12635
|
+
properties: {
|
|
12636
|
+
id: {
|
|
12637
|
+
type: "string",
|
|
12638
|
+
format: "uuid"
|
|
12639
|
+
},
|
|
12640
|
+
case_key: {
|
|
12641
|
+
type: "string"
|
|
12642
|
+
},
|
|
12643
|
+
status: {
|
|
12644
|
+
type: "string",
|
|
12645
|
+
enum: [
|
|
12646
|
+
"discovered",
|
|
12647
|
+
"confirmed",
|
|
12648
|
+
"active",
|
|
12649
|
+
"resolved"
|
|
12650
|
+
]
|
|
12651
|
+
},
|
|
12652
|
+
display_name: {
|
|
12653
|
+
type: [
|
|
12654
|
+
"string",
|
|
12655
|
+
"null"
|
|
12656
|
+
]
|
|
12657
|
+
}
|
|
12658
|
+
},
|
|
12659
|
+
additionalProperties: true
|
|
11738
12660
|
}
|
|
11739
12661
|
}
|
|
11740
12662
|
}
|
|
11741
12663
|
},
|
|
12664
|
+
"400": {
|
|
12665
|
+
$ref: "#/components/responses/BadRequest"
|
|
12666
|
+
},
|
|
11742
12667
|
"401": {
|
|
11743
12668
|
$ref: "#/components/responses/Unauthorized"
|
|
11744
12669
|
},
|
|
11745
12670
|
"404": {
|
|
11746
12671
|
$ref: "#/components/responses/NotFound"
|
|
11747
12672
|
},
|
|
11748
|
-
"409": {
|
|
11749
|
-
$ref: "#/components/responses/Conflict"
|
|
11750
|
-
},
|
|
11751
12673
|
"429": {
|
|
11752
12674
|
$ref: "#/components/responses/RateLimitExceeded"
|
|
11753
12675
|
}
|
|
11754
12676
|
}
|
|
11755
12677
|
}
|
|
11756
12678
|
},
|
|
11757
|
-
"/v1/
|
|
11758
|
-
|
|
11759
|
-
operationId: "
|
|
11760
|
-
summary: "
|
|
11761
|
-
description: "
|
|
12679
|
+
"/v1/cases/{key}/completeness": {
|
|
12680
|
+
get: {
|
|
12681
|
+
operationId: "getCaseCompleteness",
|
|
12682
|
+
summary: "Get case completeness",
|
|
12683
|
+
description: "Returns a completeness assessment for the case (expected vs. present document types, missing fields).",
|
|
11762
12684
|
tags: [
|
|
11763
|
-
"
|
|
12685
|
+
"Cases"
|
|
11764
12686
|
],
|
|
11765
12687
|
parameters: [
|
|
11766
12688
|
{
|
|
11767
|
-
|
|
12689
|
+
name: "key",
|
|
12690
|
+
in: "path",
|
|
12691
|
+
required: true,
|
|
12692
|
+
schema: {
|
|
12693
|
+
type: "string",
|
|
12694
|
+
format: "uuid"
|
|
12695
|
+
},
|
|
12696
|
+
description: "Case UUID (the stable resource id)."
|
|
11768
12697
|
}
|
|
11769
12698
|
],
|
|
11770
|
-
requestBody: {
|
|
11771
|
-
required: true,
|
|
11772
|
-
content: {
|
|
11773
|
-
"application/json": {
|
|
11774
|
-
schema: {
|
|
11775
|
-
type: "object",
|
|
11776
|
-
required: [
|
|
11777
|
-
"strategy_id"
|
|
11778
|
-
],
|
|
11779
|
-
properties: {
|
|
11780
|
-
strategy_id: {
|
|
11781
|
-
type: "string",
|
|
11782
|
-
format: "uuid",
|
|
11783
|
-
example: "c9d0e1f2-a3b4-5678-cdef-789012345678",
|
|
11784
|
-
description: "Strategy generated via POST /v1/matching/strategies/generate to execute against this config."
|
|
11785
|
-
}
|
|
11786
|
-
}
|
|
11787
|
-
}
|
|
11788
|
-
}
|
|
11789
|
-
}
|
|
11790
|
-
},
|
|
11791
12699
|
responses: {
|
|
11792
|
-
"
|
|
11793
|
-
description: "
|
|
12700
|
+
"200": {
|
|
12701
|
+
description: "Completeness assessment.",
|
|
11794
12702
|
content: {
|
|
11795
12703
|
"application/json": {
|
|
11796
12704
|
schema: {
|
|
11797
|
-
|
|
12705
|
+
type: "object",
|
|
12706
|
+
properties: {
|
|
12707
|
+
completeness_score: {
|
|
12708
|
+
type: "number",
|
|
12709
|
+
format: "float"
|
|
12710
|
+
},
|
|
12711
|
+
expected_document_types: {
|
|
12712
|
+
type: "array",
|
|
12713
|
+
items: {
|
|
12714
|
+
type: "string"
|
|
12715
|
+
}
|
|
12716
|
+
},
|
|
12717
|
+
present_document_types: {
|
|
12718
|
+
type: "array",
|
|
12719
|
+
items: {
|
|
12720
|
+
type: "string"
|
|
12721
|
+
}
|
|
12722
|
+
},
|
|
12723
|
+
missing_document_types: {
|
|
12724
|
+
type: "array",
|
|
12725
|
+
items: {
|
|
12726
|
+
type: "string"
|
|
12727
|
+
}
|
|
12728
|
+
}
|
|
12729
|
+
}
|
|
11798
12730
|
}
|
|
11799
12731
|
}
|
|
11800
12732
|
}
|
|
11801
12733
|
},
|
|
11802
|
-
"400": {
|
|
11803
|
-
$ref: "#/components/responses/BadRequest"
|
|
11804
|
-
},
|
|
11805
12734
|
"401": {
|
|
11806
12735
|
$ref: "#/components/responses/Unauthorized"
|
|
11807
12736
|
},
|
|
@@ -11814,38 +12743,43 @@ var openapi_default = {
|
|
|
11814
12743
|
}
|
|
11815
12744
|
}
|
|
11816
12745
|
},
|
|
11817
|
-
"/v1/
|
|
12746
|
+
"/v1/cases/{key}/documents/{docId}/pin": {
|
|
11818
12747
|
post: {
|
|
11819
|
-
operationId: "
|
|
11820
|
-
summary: "
|
|
11821
|
-
description: "
|
|
12748
|
+
operationId: "pinCaseDocument",
|
|
12749
|
+
summary: "Pin a document to a case",
|
|
12750
|
+
description: "Manually pin a document to a case so it persists across re-clustering.",
|
|
11822
12751
|
tags: [
|
|
11823
|
-
"
|
|
12752
|
+
"Cases"
|
|
11824
12753
|
],
|
|
11825
12754
|
parameters: [
|
|
11826
12755
|
{
|
|
11827
|
-
|
|
12756
|
+
name: "key",
|
|
12757
|
+
in: "path",
|
|
12758
|
+
required: true,
|
|
12759
|
+
schema: {
|
|
12760
|
+
type: "string",
|
|
12761
|
+
format: "uuid"
|
|
12762
|
+
},
|
|
12763
|
+
description: "Case UUID (the stable resource id)."
|
|
12764
|
+
},
|
|
12765
|
+
{
|
|
12766
|
+
name: "docId",
|
|
12767
|
+
in: "path",
|
|
12768
|
+
required: true,
|
|
12769
|
+
schema: {
|
|
12770
|
+
type: "string",
|
|
12771
|
+
format: "uuid"
|
|
12772
|
+
},
|
|
12773
|
+
description: "Document identifier to pin."
|
|
11828
12774
|
}
|
|
11829
12775
|
],
|
|
11830
12776
|
responses: {
|
|
11831
12777
|
"200": {
|
|
11832
|
-
description: "
|
|
12778
|
+
description: "Document pinned.",
|
|
11833
12779
|
content: {
|
|
11834
12780
|
"application/json": {
|
|
11835
12781
|
schema: {
|
|
11836
|
-
|
|
11837
|
-
properties: {
|
|
11838
|
-
id: {
|
|
11839
|
-
type: "string",
|
|
11840
|
-
format: "uuid"
|
|
11841
|
-
},
|
|
11842
|
-
status: {
|
|
11843
|
-
type: "string"
|
|
11844
|
-
},
|
|
11845
|
-
message: {
|
|
11846
|
-
type: "string"
|
|
11847
|
-
}
|
|
11848
|
-
}
|
|
12782
|
+
$ref: "#/components/schemas/CaseDetailResponse"
|
|
11849
12783
|
}
|
|
11850
12784
|
}
|
|
11851
12785
|
}
|
|
@@ -11865,17 +12799,259 @@ var openapi_default = {
|
|
|
11865
12799
|
}
|
|
11866
12800
|
}
|
|
11867
12801
|
},
|
|
11868
|
-
"/v1/
|
|
11869
|
-
|
|
11870
|
-
operationId: "
|
|
11871
|
-
summary: "
|
|
11872
|
-
description: "
|
|
12802
|
+
"/v1/cases/{key}/documents/{docId}": {
|
|
12803
|
+
delete: {
|
|
12804
|
+
operationId: "removeCaseDocument",
|
|
12805
|
+
summary: "Remove a document from a case",
|
|
12806
|
+
description: "Remove a manually-pinned document from a case.",
|
|
11873
12807
|
tags: [
|
|
11874
|
-
"
|
|
12808
|
+
"Cases"
|
|
11875
12809
|
],
|
|
11876
|
-
|
|
11877
|
-
|
|
11878
|
-
|
|
12810
|
+
parameters: [
|
|
12811
|
+
{
|
|
12812
|
+
name: "key",
|
|
12813
|
+
in: "path",
|
|
12814
|
+
required: true,
|
|
12815
|
+
schema: {
|
|
12816
|
+
type: "string",
|
|
12817
|
+
format: "uuid"
|
|
12818
|
+
},
|
|
12819
|
+
description: "Case UUID (the stable resource id)."
|
|
12820
|
+
},
|
|
12821
|
+
{
|
|
12822
|
+
name: "docId",
|
|
12823
|
+
in: "path",
|
|
12824
|
+
required: true,
|
|
12825
|
+
schema: {
|
|
12826
|
+
type: "string",
|
|
12827
|
+
format: "uuid"
|
|
12828
|
+
},
|
|
12829
|
+
description: "Document identifier to remove."
|
|
12830
|
+
}
|
|
12831
|
+
],
|
|
12832
|
+
responses: {
|
|
12833
|
+
"200": {
|
|
12834
|
+
description: "Document removed.",
|
|
12835
|
+
content: {
|
|
12836
|
+
"application/json": {
|
|
12837
|
+
schema: {
|
|
12838
|
+
$ref: "#/components/schemas/CaseDetailResponse"
|
|
12839
|
+
}
|
|
12840
|
+
}
|
|
12841
|
+
}
|
|
12842
|
+
},
|
|
12843
|
+
"400": {
|
|
12844
|
+
$ref: "#/components/responses/BadRequest"
|
|
12845
|
+
},
|
|
12846
|
+
"401": {
|
|
12847
|
+
$ref: "#/components/responses/Unauthorized"
|
|
12848
|
+
},
|
|
12849
|
+
"404": {
|
|
12850
|
+
$ref: "#/components/responses/NotFound"
|
|
12851
|
+
},
|
|
12852
|
+
"429": {
|
|
12853
|
+
$ref: "#/components/responses/RateLimitExceeded"
|
|
12854
|
+
}
|
|
12855
|
+
}
|
|
12856
|
+
}
|
|
12857
|
+
},
|
|
12858
|
+
"/v1/batches/{id}/sync": {
|
|
12859
|
+
post: {
|
|
12860
|
+
operationId: "syncBatch",
|
|
12861
|
+
summary: "Sync batch status with provider",
|
|
12862
|
+
description: "Force a status sync with the batch inference provider (Anthropic or Bedrock).",
|
|
12863
|
+
tags: [
|
|
12864
|
+
"Jobs & Batches"
|
|
12865
|
+
],
|
|
12866
|
+
parameters: [
|
|
12867
|
+
{
|
|
12868
|
+
$ref: "#/components/parameters/ResourceId"
|
|
12869
|
+
}
|
|
12870
|
+
],
|
|
12871
|
+
responses: {
|
|
12872
|
+
"200": {
|
|
12873
|
+
description: "Batch synced.",
|
|
12874
|
+
content: {
|
|
12875
|
+
"application/json": {
|
|
12876
|
+
schema: {
|
|
12877
|
+
$ref: "#/components/schemas/BatchResponse"
|
|
12878
|
+
}
|
|
12879
|
+
}
|
|
12880
|
+
}
|
|
12881
|
+
},
|
|
12882
|
+
"401": {
|
|
12883
|
+
$ref: "#/components/responses/Unauthorized"
|
|
12884
|
+
},
|
|
12885
|
+
"404": {
|
|
12886
|
+
$ref: "#/components/responses/NotFound"
|
|
12887
|
+
},
|
|
12888
|
+
"429": {
|
|
12889
|
+
$ref: "#/components/responses/RateLimitExceeded"
|
|
12890
|
+
}
|
|
12891
|
+
}
|
|
12892
|
+
}
|
|
12893
|
+
},
|
|
12894
|
+
"/v1/batches/{id}/cancel": {
|
|
12895
|
+
post: {
|
|
12896
|
+
operationId: "cancelBatch",
|
|
12897
|
+
summary: "Cancel a batch inference run",
|
|
12898
|
+
description: "Cancel an in-flight batch. Only batches in `accumulating` or `submitted` status can be cancelled.",
|
|
12899
|
+
tags: [
|
|
12900
|
+
"Jobs & Batches"
|
|
12901
|
+
],
|
|
12902
|
+
parameters: [
|
|
12903
|
+
{
|
|
12904
|
+
$ref: "#/components/parameters/ResourceId"
|
|
12905
|
+
}
|
|
12906
|
+
],
|
|
12907
|
+
responses: {
|
|
12908
|
+
"200": {
|
|
12909
|
+
description: "Batch cancelled.",
|
|
12910
|
+
content: {
|
|
12911
|
+
"application/json": {
|
|
12912
|
+
schema: {
|
|
12913
|
+
$ref: "#/components/schemas/BatchResponse"
|
|
12914
|
+
}
|
|
12915
|
+
}
|
|
12916
|
+
}
|
|
12917
|
+
},
|
|
12918
|
+
"401": {
|
|
12919
|
+
$ref: "#/components/responses/Unauthorized"
|
|
12920
|
+
},
|
|
12921
|
+
"404": {
|
|
12922
|
+
$ref: "#/components/responses/NotFound"
|
|
12923
|
+
},
|
|
12924
|
+
"409": {
|
|
12925
|
+
$ref: "#/components/responses/Conflict"
|
|
12926
|
+
},
|
|
12927
|
+
"429": {
|
|
12928
|
+
$ref: "#/components/responses/RateLimitExceeded"
|
|
12929
|
+
}
|
|
12930
|
+
}
|
|
12931
|
+
}
|
|
12932
|
+
},
|
|
12933
|
+
"/v1/matching/configs/{id}/smart-run": {
|
|
12934
|
+
post: {
|
|
12935
|
+
operationId: "triggerSmartMatchingRun",
|
|
12936
|
+
summary: "Trigger a smart matching run for a config",
|
|
12937
|
+
description: "Run a previously-generated AI matching strategy against the documents scoped by the matching config.",
|
|
12938
|
+
tags: [
|
|
12939
|
+
"Matching"
|
|
12940
|
+
],
|
|
12941
|
+
parameters: [
|
|
12942
|
+
{
|
|
12943
|
+
$ref: "#/components/parameters/ResourceId"
|
|
12944
|
+
}
|
|
12945
|
+
],
|
|
12946
|
+
requestBody: {
|
|
12947
|
+
required: true,
|
|
12948
|
+
content: {
|
|
12949
|
+
"application/json": {
|
|
12950
|
+
schema: {
|
|
12951
|
+
type: "object",
|
|
12952
|
+
required: [
|
|
12953
|
+
"strategy_id"
|
|
12954
|
+
],
|
|
12955
|
+
properties: {
|
|
12956
|
+
strategy_id: {
|
|
12957
|
+
type: "string",
|
|
12958
|
+
format: "uuid",
|
|
12959
|
+
example: "c9d0e1f2-a3b4-5678-cdef-789012345678",
|
|
12960
|
+
description: "Strategy generated via POST /v1/matching/strategies/generate to execute against this config."
|
|
12961
|
+
}
|
|
12962
|
+
}
|
|
12963
|
+
}
|
|
12964
|
+
}
|
|
12965
|
+
}
|
|
12966
|
+
},
|
|
12967
|
+
responses: {
|
|
12968
|
+
"201": {
|
|
12969
|
+
description: "Smart matching run queued.",
|
|
12970
|
+
content: {
|
|
12971
|
+
"application/json": {
|
|
12972
|
+
schema: {
|
|
12973
|
+
$ref: "#/components/schemas/MatchingRunResponse"
|
|
12974
|
+
}
|
|
12975
|
+
}
|
|
12976
|
+
}
|
|
12977
|
+
},
|
|
12978
|
+
"400": {
|
|
12979
|
+
$ref: "#/components/responses/BadRequest"
|
|
12980
|
+
},
|
|
12981
|
+
"401": {
|
|
12982
|
+
$ref: "#/components/responses/Unauthorized"
|
|
12983
|
+
},
|
|
12984
|
+
"404": {
|
|
12985
|
+
$ref: "#/components/responses/NotFound"
|
|
12986
|
+
},
|
|
12987
|
+
"429": {
|
|
12988
|
+
$ref: "#/components/responses/RateLimitExceeded"
|
|
12989
|
+
}
|
|
12990
|
+
}
|
|
12991
|
+
}
|
|
12992
|
+
},
|
|
12993
|
+
"/v1/matching/runs/{id}/ai-resolve": {
|
|
12994
|
+
post: {
|
|
12995
|
+
operationId: "aiResolveMatchingRun",
|
|
12996
|
+
summary: "AI-resolve a matching run's review band",
|
|
12997
|
+
description: "Trigger AI-driven resolution on a completed matching run's review-band candidates. Requires the run to have an associated strategy.",
|
|
12998
|
+
tags: [
|
|
12999
|
+
"Matching"
|
|
13000
|
+
],
|
|
13001
|
+
parameters: [
|
|
13002
|
+
{
|
|
13003
|
+
$ref: "#/components/parameters/ResourceId"
|
|
13004
|
+
}
|
|
13005
|
+
],
|
|
13006
|
+
responses: {
|
|
13007
|
+
"200": {
|
|
13008
|
+
description: "AI resolution started.",
|
|
13009
|
+
content: {
|
|
13010
|
+
"application/json": {
|
|
13011
|
+
schema: {
|
|
13012
|
+
type: "object",
|
|
13013
|
+
properties: {
|
|
13014
|
+
id: {
|
|
13015
|
+
type: "string",
|
|
13016
|
+
format: "uuid"
|
|
13017
|
+
},
|
|
13018
|
+
status: {
|
|
13019
|
+
type: "string"
|
|
13020
|
+
},
|
|
13021
|
+
message: {
|
|
13022
|
+
type: "string"
|
|
13023
|
+
}
|
|
13024
|
+
}
|
|
13025
|
+
}
|
|
13026
|
+
}
|
|
13027
|
+
}
|
|
13028
|
+
},
|
|
13029
|
+
"400": {
|
|
13030
|
+
$ref: "#/components/responses/BadRequest"
|
|
13031
|
+
},
|
|
13032
|
+
"401": {
|
|
13033
|
+
$ref: "#/components/responses/Unauthorized"
|
|
13034
|
+
},
|
|
13035
|
+
"404": {
|
|
13036
|
+
$ref: "#/components/responses/NotFound"
|
|
13037
|
+
},
|
|
13038
|
+
"429": {
|
|
13039
|
+
$ref: "#/components/responses/RateLimitExceeded"
|
|
13040
|
+
}
|
|
13041
|
+
}
|
|
13042
|
+
}
|
|
13043
|
+
},
|
|
13044
|
+
"/v1/matching/strategies/generate": {
|
|
13045
|
+
post: {
|
|
13046
|
+
operationId: "generateMatchingStrategy",
|
|
13047
|
+
summary: "Generate a matching strategy",
|
|
13048
|
+
description: "Synthesize a draft matching strategy by analysing reference data shape and the supplied target descriptor. Returns the generated strategy entity for review and execution via /v1/matching/configs/{id}/smart-run.",
|
|
13049
|
+
tags: [
|
|
13050
|
+
"Matching"
|
|
13051
|
+
],
|
|
13052
|
+
requestBody: {
|
|
13053
|
+
required: true,
|
|
13054
|
+
content: {
|
|
11879
13055
|
"application/json": {
|
|
11880
13056
|
schema: {
|
|
11881
13057
|
type: "object",
|
|
@@ -12477,73 +13653,9 @@ var openapi_default = {
|
|
|
12477
13653
|
}
|
|
12478
13654
|
},
|
|
12479
13655
|
"/v1/quality/ground-truth/{id}/entries/{entryId}": {
|
|
12480
|
-
|
|
12481
|
-
operationId: "
|
|
12482
|
-
summary: "
|
|
12483
|
-
tags: [
|
|
12484
|
-
"Benchmarks"
|
|
12485
|
-
],
|
|
12486
|
-
parameters: [
|
|
12487
|
-
{
|
|
12488
|
-
$ref: "#/components/parameters/ResourceId"
|
|
12489
|
-
},
|
|
12490
|
-
{
|
|
12491
|
-
name: "entryId",
|
|
12492
|
-
in: "path",
|
|
12493
|
-
required: true,
|
|
12494
|
-
schema: {
|
|
12495
|
-
type: "string",
|
|
12496
|
-
format: "uuid",
|
|
12497
|
-
example: "a1b2c3d4-e5f6-7890-abcd-ef1234567890"
|
|
12498
|
-
},
|
|
12499
|
-
description: "Entry ID."
|
|
12500
|
-
}
|
|
12501
|
-
],
|
|
12502
|
-
requestBody: {
|
|
12503
|
-
required: true,
|
|
12504
|
-
content: {
|
|
12505
|
-
"application/json": {
|
|
12506
|
-
schema: {
|
|
12507
|
-
type: "object",
|
|
12508
|
-
properties: {
|
|
12509
|
-
expected_data: {
|
|
12510
|
-
type: "object",
|
|
12511
|
-
additionalProperties: true
|
|
12512
|
-
},
|
|
12513
|
-
notes: {
|
|
12514
|
-
type: "string",
|
|
12515
|
-
example: "Reviewed and confirmed."
|
|
12516
|
-
}
|
|
12517
|
-
}
|
|
12518
|
-
}
|
|
12519
|
-
}
|
|
12520
|
-
}
|
|
12521
|
-
},
|
|
12522
|
-
responses: {
|
|
12523
|
-
"200": {
|
|
12524
|
-
description: "Entry updated.",
|
|
12525
|
-
content: {
|
|
12526
|
-
"application/json": {
|
|
12527
|
-
schema: {
|
|
12528
|
-
$ref: "#/components/schemas/GroundTruthEntryItem"
|
|
12529
|
-
}
|
|
12530
|
-
}
|
|
12531
|
-
}
|
|
12532
|
-
},
|
|
12533
|
-
"401": {
|
|
12534
|
-
$ref: "#/components/responses/Unauthorized"
|
|
12535
|
-
},
|
|
12536
|
-
"404": {
|
|
12537
|
-
$ref: "#/components/responses/NotFound"
|
|
12538
|
-
},
|
|
12539
|
-
"429": {
|
|
12540
|
-
$ref: "#/components/responses/RateLimitExceeded"
|
|
12541
|
-
}
|
|
12542
|
-
}
|
|
12543
|
-
},
|
|
12544
|
-
delete: {
|
|
12545
|
-
operationId: "deleteGroundTruthEntry",
|
|
12546
|
-
summary: "Delete a ground truth entry",
|
|
13656
|
+
delete: {
|
|
13657
|
+
operationId: "deleteGroundTruthEntry",
|
|
13658
|
+
summary: "Delete a ground truth entry",
|
|
12547
13659
|
tags: [
|
|
12548
13660
|
"Benchmarks"
|
|
12549
13661
|
],
|
|
@@ -19804,95 +20916,921 @@ var openapi_default = {
|
|
|
19804
20916
|
}
|
|
19805
20917
|
},
|
|
19806
20918
|
"400": {
|
|
19807
|
-
$ref: "#/components/responses/BadRequest"
|
|
20919
|
+
$ref: "#/components/responses/BadRequest"
|
|
20920
|
+
},
|
|
20921
|
+
"401": {
|
|
20922
|
+
$ref: "#/components/responses/Unauthorized"
|
|
20923
|
+
},
|
|
20924
|
+
"413": {
|
|
20925
|
+
$ref: "#/components/responses/PayloadTooLarge"
|
|
20926
|
+
}
|
|
20927
|
+
}
|
|
20928
|
+
}
|
|
20929
|
+
},
|
|
20930
|
+
"/v1/billing/settings": {
|
|
20931
|
+
get: {
|
|
20932
|
+
tags: [
|
|
20933
|
+
"Billing"
|
|
20934
|
+
],
|
|
20935
|
+
summary: "Get billing (auto top-up) settings",
|
|
20936
|
+
operationId: "getBillingSettings",
|
|
20937
|
+
security: [
|
|
20938
|
+
{
|
|
20939
|
+
BearerAuth: []
|
|
20940
|
+
}
|
|
20941
|
+
],
|
|
20942
|
+
responses: {
|
|
20943
|
+
"200": {
|
|
20944
|
+
description: "Auto-topup configuration"
|
|
20945
|
+
}
|
|
20946
|
+
}
|
|
20947
|
+
},
|
|
20948
|
+
patch: {
|
|
20949
|
+
tags: [
|
|
20950
|
+
"Billing"
|
|
20951
|
+
],
|
|
20952
|
+
summary: "Update billing (auto top-up) settings",
|
|
20953
|
+
operationId: "updateBillingSettings",
|
|
20954
|
+
security: [
|
|
20955
|
+
{
|
|
20956
|
+
BearerAuth: []
|
|
20957
|
+
}
|
|
20958
|
+
],
|
|
20959
|
+
requestBody: {
|
|
20960
|
+
required: true,
|
|
20961
|
+
content: {
|
|
20962
|
+
"application/json": {
|
|
20963
|
+
schema: {
|
|
20964
|
+
type: "object",
|
|
20965
|
+
properties: {
|
|
20966
|
+
auto_topup_enabled: {
|
|
20967
|
+
type: "boolean"
|
|
20968
|
+
},
|
|
20969
|
+
auto_topup_threshold: {
|
|
20970
|
+
type: "integer",
|
|
20971
|
+
minimum: 1e3
|
|
20972
|
+
},
|
|
20973
|
+
auto_topup_amount: {
|
|
20974
|
+
type: "integer",
|
|
20975
|
+
minimum: 1e3
|
|
20976
|
+
}
|
|
20977
|
+
}
|
|
20978
|
+
}
|
|
20979
|
+
}
|
|
20980
|
+
}
|
|
20981
|
+
},
|
|
20982
|
+
responses: {
|
|
20983
|
+
"200": {
|
|
20984
|
+
description: "Updated settings"
|
|
20985
|
+
}
|
|
20986
|
+
}
|
|
20987
|
+
}
|
|
20988
|
+
},
|
|
20989
|
+
"/v1/billing/topup": {
|
|
20990
|
+
post: {
|
|
20991
|
+
tags: [
|
|
20992
|
+
"Billing"
|
|
20993
|
+
],
|
|
20994
|
+
summary: "Trigger an auto top-up now",
|
|
20995
|
+
description: "Charges a top-up if auto top-up is enabled. Requires the billing scope.",
|
|
20996
|
+
operationId: "triggerBillingTopup",
|
|
20997
|
+
security: [
|
|
20998
|
+
{
|
|
20999
|
+
BearerAuth: []
|
|
21000
|
+
}
|
|
21001
|
+
],
|
|
21002
|
+
responses: {
|
|
21003
|
+
"200": {
|
|
21004
|
+
description: "{ topped_up, ... }"
|
|
21005
|
+
},
|
|
21006
|
+
"403": {
|
|
21007
|
+
description: "auto_topup_disabled"
|
|
21008
|
+
}
|
|
21009
|
+
}
|
|
21010
|
+
}
|
|
21011
|
+
},
|
|
21012
|
+
"/v1/ai/policy": {
|
|
21013
|
+
get: {
|
|
21014
|
+
operationId: "getAiPolicy",
|
|
21015
|
+
summary: "Get the effective AI policy",
|
|
21016
|
+
tags: [
|
|
21017
|
+
"AI Policy"
|
|
21018
|
+
],
|
|
21019
|
+
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",
|
|
21020
|
+
responses: {
|
|
21021
|
+
"200": {
|
|
21022
|
+
description: "The effective policy, constraints, operation class map, and satisfiability status.",
|
|
21023
|
+
content: {
|
|
21024
|
+
"application/json": {
|
|
21025
|
+
example: {
|
|
21026
|
+
policy: {
|
|
21027
|
+
version: 4,
|
|
21028
|
+
status: "active",
|
|
21029
|
+
region_pin: "eu",
|
|
21030
|
+
allowed_providers: [
|
|
21031
|
+
"bedrock"
|
|
21032
|
+
],
|
|
21033
|
+
denied_models: [
|
|
21034
|
+
"claude-opus"
|
|
21035
|
+
],
|
|
21036
|
+
model_substitutions: null,
|
|
21037
|
+
default_models: null,
|
|
21038
|
+
max_attempts: null,
|
|
21039
|
+
model_classes: null,
|
|
21040
|
+
operation_classes: {
|
|
21041
|
+
extraction: "complex"
|
|
21042
|
+
},
|
|
21043
|
+
features: null
|
|
21044
|
+
},
|
|
21045
|
+
inherited: false,
|
|
21046
|
+
constraints: {
|
|
21047
|
+
region_pin: "eu",
|
|
21048
|
+
allowed_providers: [
|
|
21049
|
+
"bedrock"
|
|
21050
|
+
],
|
|
21051
|
+
denied_models: [
|
|
21052
|
+
"claude-opus"
|
|
21053
|
+
],
|
|
21054
|
+
platform_provider_floor: [
|
|
21055
|
+
"bedrock"
|
|
21056
|
+
]
|
|
21057
|
+
},
|
|
21058
|
+
operation_classes: {
|
|
21059
|
+
extraction: {
|
|
21060
|
+
class: "complex",
|
|
21061
|
+
source: "org",
|
|
21062
|
+
overridden: true
|
|
21063
|
+
}
|
|
21064
|
+
},
|
|
21065
|
+
status: {
|
|
21066
|
+
satisfiable: true,
|
|
21067
|
+
unroutable_operations: [],
|
|
21068
|
+
advisory_warnings: [
|
|
21069
|
+
"document_ocr"
|
|
21070
|
+
]
|
|
21071
|
+
}
|
|
21072
|
+
}
|
|
21073
|
+
}
|
|
21074
|
+
}
|
|
21075
|
+
},
|
|
21076
|
+
"400": {
|
|
21077
|
+
description: "The API key is not scoped to a single workspace.",
|
|
21078
|
+
content: {
|
|
21079
|
+
"application/json": {
|
|
21080
|
+
example: {
|
|
21081
|
+
error: "workspace_scope_required",
|
|
21082
|
+
message: "A workspace-scoped API key is required to read or change AI policy."
|
|
21083
|
+
}
|
|
21084
|
+
}
|
|
21085
|
+
}
|
|
21086
|
+
},
|
|
21087
|
+
"401": {
|
|
21088
|
+
$ref: "#/components/responses/Unauthorized"
|
|
21089
|
+
},
|
|
21090
|
+
"429": {
|
|
21091
|
+
$ref: "#/components/responses/RateLimitExceeded"
|
|
21092
|
+
}
|
|
21093
|
+
}
|
|
21094
|
+
},
|
|
21095
|
+
put: {
|
|
21096
|
+
operationId: "replaceAiPolicy",
|
|
21097
|
+
summary: "Replace the AI policy",
|
|
21098
|
+
tags: [
|
|
21099
|
+
"AI Policy"
|
|
21100
|
+
],
|
|
21101
|
+
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",
|
|
21102
|
+
requestBody: {
|
|
21103
|
+
required: true,
|
|
21104
|
+
content: {
|
|
21105
|
+
"application/json": {
|
|
21106
|
+
schema: {
|
|
21107
|
+
type: "object",
|
|
21108
|
+
properties: {
|
|
21109
|
+
region_pin: {
|
|
21110
|
+
type: [
|
|
21111
|
+
"string",
|
|
21112
|
+
"null"
|
|
21113
|
+
],
|
|
21114
|
+
enum: [
|
|
21115
|
+
"us",
|
|
21116
|
+
"eu",
|
|
21117
|
+
null
|
|
21118
|
+
],
|
|
21119
|
+
description: "Hard residency constraint. A deployment in any other region is rejected, including globally-routed ones."
|
|
21120
|
+
},
|
|
21121
|
+
allowed_providers: {
|
|
21122
|
+
type: [
|
|
21123
|
+
"array",
|
|
21124
|
+
"null"
|
|
21125
|
+
],
|
|
21126
|
+
items: {
|
|
21127
|
+
type: "string",
|
|
21128
|
+
enum: [
|
|
21129
|
+
"anthropic",
|
|
21130
|
+
"bedrock",
|
|
21131
|
+
"foundry",
|
|
21132
|
+
"openai",
|
|
21133
|
+
"azure-openai",
|
|
21134
|
+
"google",
|
|
21135
|
+
"mistral",
|
|
21136
|
+
"local"
|
|
21137
|
+
]
|
|
21138
|
+
},
|
|
21139
|
+
description: "Providers permitted to process this workspace's data. Null or omitted means every provider the platform permits."
|
|
21140
|
+
},
|
|
21141
|
+
denied_models: {
|
|
21142
|
+
type: [
|
|
21143
|
+
"array",
|
|
21144
|
+
"null"
|
|
21145
|
+
],
|
|
21146
|
+
items: {
|
|
21147
|
+
type: "string"
|
|
21148
|
+
},
|
|
21149
|
+
description: "Models this workspace may never be routed to, whatever else permits them. Applies to explicit requests and every fallback chain step alike."
|
|
21150
|
+
},
|
|
21151
|
+
model_substitutions: {
|
|
21152
|
+
type: "object",
|
|
21153
|
+
additionalProperties: {
|
|
21154
|
+
type: "string"
|
|
21155
|
+
},
|
|
21156
|
+
description: "Remap one model onto another wherever the first would be chosen."
|
|
21157
|
+
},
|
|
21158
|
+
default_models: {
|
|
21159
|
+
type: "object",
|
|
21160
|
+
description: "Preferred model per speed tier where no class governs the call. Keys are fast, default, powerful."
|
|
21161
|
+
},
|
|
21162
|
+
max_attempts: {
|
|
21163
|
+
type: "integer",
|
|
21164
|
+
minimum: 1,
|
|
21165
|
+
maximum: 8,
|
|
21166
|
+
description: "Ceiling on provider attempts for one logical call."
|
|
21167
|
+
},
|
|
21168
|
+
model_classes: {
|
|
21169
|
+
type: "object",
|
|
21170
|
+
description: "Named model lineage overrides. Values are camelCase: { description, chain: [{ model, deployments: [{ provider, region }] }], requiredCapabilities, fallback: chain | primary_only }."
|
|
21171
|
+
},
|
|
21172
|
+
operation_classes: {
|
|
21173
|
+
type: "object",
|
|
21174
|
+
additionalProperties: {
|
|
21175
|
+
type: [
|
|
21176
|
+
"string",
|
|
21177
|
+
"null"
|
|
21178
|
+
]
|
|
21179
|
+
},
|
|
21180
|
+
description: "Per-operation class overrides, keyed by operation type."
|
|
21181
|
+
},
|
|
21182
|
+
features: {
|
|
21183
|
+
type: "object",
|
|
21184
|
+
additionalProperties: {
|
|
21185
|
+
type: "boolean"
|
|
21186
|
+
},
|
|
21187
|
+
description: "Feature toggles, camelCase keys. Absent toggles stay on."
|
|
21188
|
+
},
|
|
21189
|
+
status: {
|
|
21190
|
+
type: "string",
|
|
21191
|
+
enum: [
|
|
21192
|
+
"draft",
|
|
21193
|
+
"shadow",
|
|
21194
|
+
"active"
|
|
21195
|
+
],
|
|
21196
|
+
default: "active",
|
|
21197
|
+
description: "Lifecycle state to save under. Only active is enforced at runtime."
|
|
21198
|
+
},
|
|
21199
|
+
change_reason: {
|
|
21200
|
+
type: "string",
|
|
21201
|
+
maxLength: 200,
|
|
21202
|
+
description: "Why this change is being made. Recorded on the stored version."
|
|
21203
|
+
}
|
|
21204
|
+
}
|
|
21205
|
+
},
|
|
21206
|
+
example: {
|
|
21207
|
+
region_pin: "eu",
|
|
21208
|
+
allowed_providers: [
|
|
21209
|
+
"bedrock"
|
|
21210
|
+
],
|
|
21211
|
+
denied_models: [
|
|
21212
|
+
"claude-opus"
|
|
21213
|
+
],
|
|
21214
|
+
operation_classes: {
|
|
21215
|
+
extraction: "complex"
|
|
21216
|
+
},
|
|
21217
|
+
change_reason: "Contractual EU residency"
|
|
21218
|
+
}
|
|
21219
|
+
}
|
|
21220
|
+
}
|
|
21221
|
+
},
|
|
21222
|
+
responses: {
|
|
21223
|
+
"200": {
|
|
21224
|
+
description: "The saved version plus the resulting effective policy view (the GET response body).",
|
|
21225
|
+
content: {
|
|
21226
|
+
"application/json": {
|
|
21227
|
+
example: {
|
|
21228
|
+
saved: {
|
|
21229
|
+
version: 7,
|
|
21230
|
+
status: "active"
|
|
21231
|
+
},
|
|
21232
|
+
policy: {
|
|
21233
|
+
version: 7,
|
|
21234
|
+
status: "active",
|
|
21235
|
+
region_pin: "eu",
|
|
21236
|
+
allowed_providers: [
|
|
21237
|
+
"bedrock"
|
|
21238
|
+
],
|
|
21239
|
+
denied_models: [
|
|
21240
|
+
"claude-opus"
|
|
21241
|
+
],
|
|
21242
|
+
model_substitutions: null,
|
|
21243
|
+
default_models: null,
|
|
21244
|
+
max_attempts: null,
|
|
21245
|
+
model_classes: null,
|
|
21246
|
+
operation_classes: {
|
|
21247
|
+
extraction: "complex"
|
|
21248
|
+
},
|
|
21249
|
+
features: null
|
|
21250
|
+
},
|
|
21251
|
+
inherited: false,
|
|
21252
|
+
constraints: {
|
|
21253
|
+
region_pin: "eu",
|
|
21254
|
+
allowed_providers: [
|
|
21255
|
+
"bedrock"
|
|
21256
|
+
],
|
|
21257
|
+
denied_models: [
|
|
21258
|
+
"claude-opus"
|
|
21259
|
+
],
|
|
21260
|
+
platform_provider_floor: [
|
|
21261
|
+
"bedrock"
|
|
21262
|
+
]
|
|
21263
|
+
},
|
|
21264
|
+
operation_classes: {
|
|
21265
|
+
extraction: {
|
|
21266
|
+
class: "complex",
|
|
21267
|
+
source: "org",
|
|
21268
|
+
overridden: true
|
|
21269
|
+
}
|
|
21270
|
+
},
|
|
21271
|
+
status: {
|
|
21272
|
+
satisfiable: true,
|
|
21273
|
+
unroutable_operations: [],
|
|
21274
|
+
advisory_warnings: [
|
|
21275
|
+
"document_ocr"
|
|
21276
|
+
]
|
|
21277
|
+
}
|
|
21278
|
+
}
|
|
21279
|
+
}
|
|
21280
|
+
}
|
|
21281
|
+
},
|
|
21282
|
+
"400": {
|
|
21283
|
+
description: "The policy was refused and nothing was stored.",
|
|
21284
|
+
content: {
|
|
21285
|
+
"application/json": {
|
|
21286
|
+
examples: {
|
|
21287
|
+
policy_unsatisfiable: {
|
|
21288
|
+
summary: "Activation would strand registered operations",
|
|
21289
|
+
value: {
|
|
21290
|
+
error: "policy_unsatisfiable",
|
|
21291
|
+
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.",
|
|
21292
|
+
unroutable_operations: [
|
|
21293
|
+
"extraction",
|
|
21294
|
+
"classification"
|
|
21295
|
+
],
|
|
21296
|
+
advisory_warnings: [
|
|
21297
|
+
"document_ocr"
|
|
21298
|
+
]
|
|
21299
|
+
}
|
|
21300
|
+
},
|
|
21301
|
+
invalid_policy: {
|
|
21302
|
+
summary: "The policy shape or a referenced model is invalid",
|
|
21303
|
+
value: {
|
|
21304
|
+
error: "invalid_policy",
|
|
21305
|
+
message: "denied model 'not-a-real-model' is not in the catalog"
|
|
21306
|
+
}
|
|
21307
|
+
},
|
|
21308
|
+
workspace_scope_required: {
|
|
21309
|
+
summary: "The key is not scoped to a single workspace",
|
|
21310
|
+
value: {
|
|
21311
|
+
error: "workspace_scope_required",
|
|
21312
|
+
message: "A workspace-scoped API key is required to read or change AI policy."
|
|
21313
|
+
}
|
|
21314
|
+
}
|
|
21315
|
+
}
|
|
21316
|
+
}
|
|
21317
|
+
}
|
|
21318
|
+
},
|
|
21319
|
+
"401": {
|
|
21320
|
+
$ref: "#/components/responses/Unauthorized"
|
|
21321
|
+
},
|
|
21322
|
+
"403": {
|
|
21323
|
+
$ref: "#/components/responses/Forbidden"
|
|
21324
|
+
},
|
|
21325
|
+
"429": {
|
|
21326
|
+
$ref: "#/components/responses/RateLimitExceeded"
|
|
21327
|
+
}
|
|
21328
|
+
}
|
|
21329
|
+
},
|
|
21330
|
+
patch: {
|
|
21331
|
+
operationId: "patchAiPolicy",
|
|
21332
|
+
summary: "Update part of the AI policy",
|
|
21333
|
+
tags: [
|
|
21334
|
+
"AI Policy"
|
|
21335
|
+
],
|
|
21336
|
+
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",
|
|
21337
|
+
requestBody: {
|
|
21338
|
+
required: true,
|
|
21339
|
+
content: {
|
|
21340
|
+
"application/json": {
|
|
21341
|
+
schema: {
|
|
21342
|
+
type: "object",
|
|
21343
|
+
description: "Same fields as PUT /v1/ai/policy; every field optional, omissions preserved."
|
|
21344
|
+
},
|
|
21345
|
+
example: {
|
|
21346
|
+
denied_models: [
|
|
21347
|
+
"claude-opus"
|
|
21348
|
+
],
|
|
21349
|
+
operation_classes: {
|
|
21350
|
+
extraction: null
|
|
21351
|
+
},
|
|
21352
|
+
change_reason: "Remove the extraction override, deny one model"
|
|
21353
|
+
}
|
|
21354
|
+
}
|
|
21355
|
+
}
|
|
21356
|
+
},
|
|
21357
|
+
responses: {
|
|
21358
|
+
"200": {
|
|
21359
|
+
description: "The saved version plus the resulting effective policy view (the GET response body).",
|
|
21360
|
+
content: {
|
|
21361
|
+
"application/json": {
|
|
21362
|
+
example: {
|
|
21363
|
+
saved: {
|
|
21364
|
+
version: 8,
|
|
21365
|
+
status: "active"
|
|
21366
|
+
},
|
|
21367
|
+
policy: {
|
|
21368
|
+
version: 8,
|
|
21369
|
+
status: "active",
|
|
21370
|
+
region_pin: "eu",
|
|
21371
|
+
allowed_providers: [
|
|
21372
|
+
"bedrock"
|
|
21373
|
+
],
|
|
21374
|
+
denied_models: [
|
|
21375
|
+
"claude-opus"
|
|
21376
|
+
],
|
|
21377
|
+
model_substitutions: null,
|
|
21378
|
+
default_models: null,
|
|
21379
|
+
max_attempts: null,
|
|
21380
|
+
model_classes: null,
|
|
21381
|
+
operation_classes: null,
|
|
21382
|
+
features: null
|
|
21383
|
+
},
|
|
21384
|
+
inherited: false,
|
|
21385
|
+
constraints: {
|
|
21386
|
+
region_pin: "eu",
|
|
21387
|
+
allowed_providers: [
|
|
21388
|
+
"bedrock"
|
|
21389
|
+
],
|
|
21390
|
+
denied_models: [
|
|
21391
|
+
"claude-opus"
|
|
21392
|
+
],
|
|
21393
|
+
platform_provider_floor: [
|
|
21394
|
+
"bedrock"
|
|
21395
|
+
]
|
|
21396
|
+
},
|
|
21397
|
+
operation_classes: {
|
|
21398
|
+
extraction: {
|
|
21399
|
+
class: "standard",
|
|
21400
|
+
source: "builtin",
|
|
21401
|
+
overridden: false
|
|
21402
|
+
}
|
|
21403
|
+
},
|
|
21404
|
+
status: {
|
|
21405
|
+
satisfiable: true,
|
|
21406
|
+
unroutable_operations: [],
|
|
21407
|
+
advisory_warnings: []
|
|
21408
|
+
}
|
|
21409
|
+
}
|
|
21410
|
+
}
|
|
21411
|
+
}
|
|
21412
|
+
},
|
|
21413
|
+
"400": {
|
|
21414
|
+
description: "The policy was refused and nothing was stored. Same error contract as PUT.",
|
|
21415
|
+
content: {
|
|
21416
|
+
"application/json": {
|
|
21417
|
+
example: {
|
|
21418
|
+
error: "policy_unsatisfiable",
|
|
21419
|
+
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.",
|
|
21420
|
+
unroutable_operations: [
|
|
21421
|
+
"extraction"
|
|
21422
|
+
],
|
|
21423
|
+
advisory_warnings: []
|
|
21424
|
+
}
|
|
21425
|
+
}
|
|
21426
|
+
}
|
|
21427
|
+
},
|
|
21428
|
+
"401": {
|
|
21429
|
+
$ref: "#/components/responses/Unauthorized"
|
|
21430
|
+
},
|
|
21431
|
+
"403": {
|
|
21432
|
+
$ref: "#/components/responses/Forbidden"
|
|
21433
|
+
},
|
|
21434
|
+
"429": {
|
|
21435
|
+
$ref: "#/components/responses/RateLimitExceeded"
|
|
21436
|
+
}
|
|
21437
|
+
}
|
|
21438
|
+
}
|
|
21439
|
+
},
|
|
21440
|
+
"/v1/ai/models": {
|
|
21441
|
+
get: {
|
|
21442
|
+
operationId: "listAiModels",
|
|
21443
|
+
summary: "List models and model classes with reachability",
|
|
21444
|
+
tags: [
|
|
21445
|
+
"AI Policy"
|
|
21446
|
+
],
|
|
21447
|
+
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',
|
|
21448
|
+
responses: {
|
|
21449
|
+
"200": {
|
|
21450
|
+
description: "The annotated model catalog, class definitions, enforced constraints, and reachability counts.",
|
|
21451
|
+
content: {
|
|
21452
|
+
"application/json": {
|
|
21453
|
+
example: {
|
|
21454
|
+
models: [
|
|
21455
|
+
{
|
|
21456
|
+
model: "claude-sonnet",
|
|
21457
|
+
tier: "default",
|
|
21458
|
+
capabilities: [
|
|
21459
|
+
"generate",
|
|
21460
|
+
"tool_use"
|
|
21461
|
+
],
|
|
21462
|
+
reachable: true,
|
|
21463
|
+
reason: "allowed",
|
|
21464
|
+
deployments: [
|
|
21465
|
+
{
|
|
21466
|
+
provider: "bedrock",
|
|
21467
|
+
region: "eu",
|
|
21468
|
+
custom_endpoint: false,
|
|
21469
|
+
reachable: true,
|
|
21470
|
+
reason: "allowed"
|
|
21471
|
+
}
|
|
21472
|
+
]
|
|
21473
|
+
},
|
|
21474
|
+
{
|
|
21475
|
+
model: "claude-opus",
|
|
21476
|
+
tier: "powerful",
|
|
21477
|
+
capabilities: [
|
|
21478
|
+
"generate",
|
|
21479
|
+
"tool_use"
|
|
21480
|
+
],
|
|
21481
|
+
reachable: false,
|
|
21482
|
+
reason: "model_denied",
|
|
21483
|
+
deployments: [
|
|
21484
|
+
{
|
|
21485
|
+
provider: "bedrock",
|
|
21486
|
+
region: "eu",
|
|
21487
|
+
custom_endpoint: false,
|
|
21488
|
+
reachable: false,
|
|
21489
|
+
reason: "model_denied"
|
|
21490
|
+
}
|
|
21491
|
+
]
|
|
21492
|
+
}
|
|
21493
|
+
],
|
|
21494
|
+
classes: [
|
|
21495
|
+
{
|
|
21496
|
+
name: "standard",
|
|
21497
|
+
description: "General-purpose extraction lineage",
|
|
21498
|
+
source: "builtin",
|
|
21499
|
+
required_capabilities: [],
|
|
21500
|
+
fallback: "chain",
|
|
21501
|
+
chain: [
|
|
21502
|
+
{
|
|
21503
|
+
model: "claude-sonnet",
|
|
21504
|
+
reachable: true,
|
|
21505
|
+
reason: "allowed"
|
|
21506
|
+
}
|
|
21507
|
+
],
|
|
21508
|
+
reachable: true
|
|
21509
|
+
}
|
|
21510
|
+
],
|
|
21511
|
+
constraints: {
|
|
21512
|
+
region_pin: "eu",
|
|
21513
|
+
allowed_providers: [
|
|
21514
|
+
"bedrock"
|
|
21515
|
+
],
|
|
21516
|
+
denied_models: [
|
|
21517
|
+
"claude-opus"
|
|
21518
|
+
],
|
|
21519
|
+
platform_provider_floor: [
|
|
21520
|
+
"bedrock"
|
|
21521
|
+
]
|
|
21522
|
+
},
|
|
21523
|
+
counts: {
|
|
21524
|
+
total: 18,
|
|
21525
|
+
reachable: 9
|
|
21526
|
+
}
|
|
21527
|
+
}
|
|
21528
|
+
}
|
|
21529
|
+
}
|
|
21530
|
+
},
|
|
21531
|
+
"400": {
|
|
21532
|
+
description: "The API key is not scoped to a single workspace.",
|
|
21533
|
+
content: {
|
|
21534
|
+
"application/json": {
|
|
21535
|
+
example: {
|
|
21536
|
+
error: "workspace_scope_required",
|
|
21537
|
+
message: "A workspace-scoped API key is required to read or change AI policy."
|
|
21538
|
+
}
|
|
21539
|
+
}
|
|
21540
|
+
}
|
|
19808
21541
|
},
|
|
19809
21542
|
"401": {
|
|
19810
21543
|
$ref: "#/components/responses/Unauthorized"
|
|
19811
21544
|
},
|
|
19812
|
-
"
|
|
19813
|
-
$ref: "#/components/responses/
|
|
21545
|
+
"429": {
|
|
21546
|
+
$ref: "#/components/responses/RateLimitExceeded"
|
|
19814
21547
|
}
|
|
19815
21548
|
}
|
|
19816
21549
|
}
|
|
19817
21550
|
},
|
|
19818
|
-
"/v1/
|
|
21551
|
+
"/v1/ai/operations": {
|
|
19819
21552
|
get: {
|
|
21553
|
+
operationId: "listAiOperations",
|
|
21554
|
+
summary: "List the operation catalog",
|
|
19820
21555
|
tags: [
|
|
19821
|
-
"
|
|
19822
|
-
],
|
|
19823
|
-
summary: "Get billing (auto top-up) settings",
|
|
19824
|
-
operationId: "getBillingSettings",
|
|
19825
|
-
security: [
|
|
19826
|
-
{
|
|
19827
|
-
BearerAuth: []
|
|
19828
|
-
}
|
|
21556
|
+
"AI Policy"
|
|
19829
21557
|
],
|
|
21558
|
+
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",
|
|
19830
21559
|
responses: {
|
|
19831
21560
|
"200": {
|
|
19832
|
-
description: "
|
|
21561
|
+
description: "The operation catalog with per-operation class, gating, and routability.",
|
|
21562
|
+
content: {
|
|
21563
|
+
"application/json": {
|
|
21564
|
+
example: {
|
|
21565
|
+
operations: [
|
|
21566
|
+
{
|
|
21567
|
+
operation_type: "extraction",
|
|
21568
|
+
class: "standard",
|
|
21569
|
+
source: "builtin",
|
|
21570
|
+
overridden: false,
|
|
21571
|
+
gating: "registered",
|
|
21572
|
+
routable: true
|
|
21573
|
+
},
|
|
21574
|
+
{
|
|
21575
|
+
operation_type: "document_ocr",
|
|
21576
|
+
class: "ocr",
|
|
21577
|
+
source: "builtin",
|
|
21578
|
+
overridden: false,
|
|
21579
|
+
gating: "advisory",
|
|
21580
|
+
routable: false,
|
|
21581
|
+
reason: "no_compliant_route"
|
|
21582
|
+
}
|
|
21583
|
+
],
|
|
21584
|
+
counts: {
|
|
21585
|
+
total: 60,
|
|
21586
|
+
overridden: 1,
|
|
21587
|
+
registered: 8,
|
|
21588
|
+
advisory: 1
|
|
21589
|
+
}
|
|
21590
|
+
}
|
|
21591
|
+
}
|
|
21592
|
+
}
|
|
21593
|
+
},
|
|
21594
|
+
"400": {
|
|
21595
|
+
description: "The API key is not scoped to a single workspace.",
|
|
21596
|
+
content: {
|
|
21597
|
+
"application/json": {
|
|
21598
|
+
example: {
|
|
21599
|
+
error: "workspace_scope_required",
|
|
21600
|
+
message: "A workspace-scoped API key is required to read or change AI policy."
|
|
21601
|
+
}
|
|
21602
|
+
}
|
|
21603
|
+
}
|
|
21604
|
+
},
|
|
21605
|
+
"401": {
|
|
21606
|
+
$ref: "#/components/responses/Unauthorized"
|
|
21607
|
+
},
|
|
21608
|
+
"429": {
|
|
21609
|
+
$ref: "#/components/responses/RateLimitExceeded"
|
|
19833
21610
|
}
|
|
19834
21611
|
}
|
|
19835
|
-
}
|
|
19836
|
-
|
|
21612
|
+
}
|
|
21613
|
+
},
|
|
21614
|
+
"/v1/ai/routes:explain": {
|
|
21615
|
+
post: {
|
|
21616
|
+
operationId: "explainAiRoute",
|
|
21617
|
+
summary: "Dry-run a routing decision",
|
|
19837
21618
|
tags: [
|
|
19838
|
-
"
|
|
19839
|
-
],
|
|
19840
|
-
summary: "Update billing (auto top-up) settings",
|
|
19841
|
-
operationId: "updateBillingSettings",
|
|
19842
|
-
security: [
|
|
19843
|
-
{
|
|
19844
|
-
BearerAuth: []
|
|
19845
|
-
}
|
|
21619
|
+
"AI Policy"
|
|
19846
21620
|
],
|
|
21621
|
+
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',
|
|
19847
21622
|
requestBody: {
|
|
19848
21623
|
required: true,
|
|
19849
21624
|
content: {
|
|
19850
21625
|
"application/json": {
|
|
19851
21626
|
schema: {
|
|
19852
21627
|
type: "object",
|
|
21628
|
+
required: [
|
|
21629
|
+
"operation_type"
|
|
21630
|
+
],
|
|
19853
21631
|
properties: {
|
|
19854
|
-
|
|
19855
|
-
type: "
|
|
21632
|
+
operation_type: {
|
|
21633
|
+
type: "string",
|
|
21634
|
+
maxLength: 120,
|
|
21635
|
+
description: "The operation to route, for example extraction or classification."
|
|
19856
21636
|
},
|
|
19857
|
-
|
|
19858
|
-
type: "
|
|
19859
|
-
|
|
21637
|
+
model: {
|
|
21638
|
+
type: "string",
|
|
21639
|
+
maxLength: 120,
|
|
21640
|
+
description: "Optional. Pin a specific logical model."
|
|
19860
21641
|
},
|
|
19861
|
-
|
|
19862
|
-
type: "
|
|
19863
|
-
|
|
21642
|
+
class: {
|
|
21643
|
+
type: "string",
|
|
21644
|
+
maxLength: 120,
|
|
21645
|
+
description: "Optional. Pin a specific model class."
|
|
19864
21646
|
}
|
|
19865
21647
|
}
|
|
21648
|
+
},
|
|
21649
|
+
example: {
|
|
21650
|
+
operation_type: "extraction",
|
|
21651
|
+
model: "claude-sonnet",
|
|
21652
|
+
class: "standard"
|
|
19866
21653
|
}
|
|
19867
21654
|
}
|
|
19868
21655
|
}
|
|
19869
21656
|
},
|
|
19870
21657
|
responses: {
|
|
19871
|
-
"
|
|
19872
|
-
description: "
|
|
21658
|
+
"201": {
|
|
21659
|
+
description: "The routing plan, or a fail-closed explanation when nothing is routable.",
|
|
21660
|
+
content: {
|
|
21661
|
+
"application/json": {
|
|
21662
|
+
examples: {
|
|
21663
|
+
routable: {
|
|
21664
|
+
summary: "An ordered candidate chain exists",
|
|
21665
|
+
value: {
|
|
21666
|
+
operation_type: "extraction",
|
|
21667
|
+
routable: true,
|
|
21668
|
+
class: "standard",
|
|
21669
|
+
fallback_scope: "class_chain",
|
|
21670
|
+
candidates: [
|
|
21671
|
+
{
|
|
21672
|
+
model: "claude-sonnet",
|
|
21673
|
+
provider: "bedrock",
|
|
21674
|
+
region: "eu",
|
|
21675
|
+
custom_endpoint: false
|
|
21676
|
+
}
|
|
21677
|
+
],
|
|
21678
|
+
rejected: [
|
|
21679
|
+
{
|
|
21680
|
+
model: "gpt-balanced",
|
|
21681
|
+
provider: "openai",
|
|
21682
|
+
region: "global",
|
|
21683
|
+
reason: "provider_not_allowed"
|
|
21684
|
+
}
|
|
21685
|
+
]
|
|
21686
|
+
}
|
|
21687
|
+
},
|
|
21688
|
+
fail_closed: {
|
|
21689
|
+
summary: "The policy permits no route for this operation",
|
|
21690
|
+
value: {
|
|
21691
|
+
operation_type: "document_ocr",
|
|
21692
|
+
routable: false,
|
|
21693
|
+
reason: "no_compliant_route",
|
|
21694
|
+
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.",
|
|
21695
|
+
candidates: [],
|
|
21696
|
+
rejected: [
|
|
21697
|
+
{
|
|
21698
|
+
model: "mistral-ocr",
|
|
21699
|
+
provider: "mistral",
|
|
21700
|
+
region: "global",
|
|
21701
|
+
reason: "provider_not_allowed"
|
|
21702
|
+
}
|
|
21703
|
+
]
|
|
21704
|
+
}
|
|
21705
|
+
}
|
|
21706
|
+
}
|
|
21707
|
+
}
|
|
21708
|
+
}
|
|
21709
|
+
},
|
|
21710
|
+
"400": {
|
|
21711
|
+
description: "The request body is invalid or the key is not workspace-scoped.",
|
|
21712
|
+
content: {
|
|
21713
|
+
"application/json": {
|
|
21714
|
+
example: {
|
|
21715
|
+
error: "workspace_scope_required",
|
|
21716
|
+
message: "A workspace-scoped API key is required to read or change AI policy."
|
|
21717
|
+
}
|
|
21718
|
+
}
|
|
21719
|
+
}
|
|
21720
|
+
},
|
|
21721
|
+
"401": {
|
|
21722
|
+
$ref: "#/components/responses/Unauthorized"
|
|
21723
|
+
},
|
|
21724
|
+
"429": {
|
|
21725
|
+
$ref: "#/components/responses/RateLimitExceeded"
|
|
19873
21726
|
}
|
|
19874
21727
|
}
|
|
19875
21728
|
}
|
|
19876
21729
|
},
|
|
19877
|
-
"/v1/
|
|
19878
|
-
|
|
21730
|
+
"/v1/ai/policy/history": {
|
|
21731
|
+
get: {
|
|
21732
|
+
operationId: "getAiPolicyHistory",
|
|
21733
|
+
summary: "Get the policy version history",
|
|
19879
21734
|
tags: [
|
|
19880
|
-
"
|
|
21735
|
+
"AI Policy"
|
|
19881
21736
|
],
|
|
19882
|
-
|
|
19883
|
-
|
|
19884
|
-
operationId: "triggerBillingTopup",
|
|
19885
|
-
security: [
|
|
21737
|
+
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',
|
|
21738
|
+
parameters: [
|
|
19886
21739
|
{
|
|
19887
|
-
|
|
21740
|
+
name: "limit",
|
|
21741
|
+
in: "query",
|
|
21742
|
+
schema: {
|
|
21743
|
+
type: "integer",
|
|
21744
|
+
minimum: 1,
|
|
21745
|
+
maximum: 200,
|
|
21746
|
+
default: 50
|
|
21747
|
+
},
|
|
21748
|
+
description: "Maximum number of versions to return (1-200)."
|
|
19888
21749
|
}
|
|
19889
21750
|
],
|
|
19890
21751
|
responses: {
|
|
19891
21752
|
"200": {
|
|
19892
|
-
description: "
|
|
21753
|
+
description: "Stored policy versions, newest first.",
|
|
21754
|
+
content: {
|
|
21755
|
+
"application/json": {
|
|
21756
|
+
example: {
|
|
21757
|
+
versions: [
|
|
21758
|
+
{
|
|
21759
|
+
version: 2,
|
|
21760
|
+
status: "active",
|
|
21761
|
+
changed: [
|
|
21762
|
+
"region_pin",
|
|
21763
|
+
"denied_models"
|
|
21764
|
+
],
|
|
21765
|
+
changed_by: "api_key:c1a2b3d4-5e6f-4a7b-8c9d-0e1f2a3b4c5d",
|
|
21766
|
+
change_reason: "Contractual EU residency",
|
|
21767
|
+
changed_at: "2026-07-28T14:02:11.000Z",
|
|
21768
|
+
policy: {
|
|
21769
|
+
version: 2,
|
|
21770
|
+
status: "active",
|
|
21771
|
+
region_pin: "eu",
|
|
21772
|
+
allowed_providers: [
|
|
21773
|
+
"bedrock"
|
|
21774
|
+
],
|
|
21775
|
+
denied_models: [
|
|
21776
|
+
"claude-opus"
|
|
21777
|
+
],
|
|
21778
|
+
model_substitutions: null,
|
|
21779
|
+
default_models: null,
|
|
21780
|
+
max_attempts: null,
|
|
21781
|
+
model_classes: null,
|
|
21782
|
+
operation_classes: null,
|
|
21783
|
+
features: null
|
|
21784
|
+
}
|
|
21785
|
+
},
|
|
21786
|
+
{
|
|
21787
|
+
version: 1,
|
|
21788
|
+
status: "active",
|
|
21789
|
+
changed: [
|
|
21790
|
+
"allowed_providers"
|
|
21791
|
+
],
|
|
21792
|
+
changed_by: null,
|
|
21793
|
+
change_reason: null,
|
|
21794
|
+
changed_at: null,
|
|
21795
|
+
policy: {
|
|
21796
|
+
version: 1,
|
|
21797
|
+
status: "active",
|
|
21798
|
+
region_pin: null,
|
|
21799
|
+
allowed_providers: [
|
|
21800
|
+
"bedrock"
|
|
21801
|
+
],
|
|
21802
|
+
denied_models: null,
|
|
21803
|
+
model_substitutions: null,
|
|
21804
|
+
default_models: null,
|
|
21805
|
+
max_attempts: null,
|
|
21806
|
+
model_classes: null,
|
|
21807
|
+
operation_classes: null,
|
|
21808
|
+
features: null
|
|
21809
|
+
}
|
|
21810
|
+
}
|
|
21811
|
+
],
|
|
21812
|
+
total: 2,
|
|
21813
|
+
limit: 50
|
|
21814
|
+
}
|
|
21815
|
+
}
|
|
21816
|
+
}
|
|
19893
21817
|
},
|
|
19894
|
-
"
|
|
19895
|
-
description: "
|
|
21818
|
+
"400": {
|
|
21819
|
+
description: "The API key is not scoped to a single workspace.",
|
|
21820
|
+
content: {
|
|
21821
|
+
"application/json": {
|
|
21822
|
+
example: {
|
|
21823
|
+
error: "workspace_scope_required",
|
|
21824
|
+
message: "A workspace-scoped API key is required to read or change AI policy."
|
|
21825
|
+
}
|
|
21826
|
+
}
|
|
21827
|
+
}
|
|
21828
|
+
},
|
|
21829
|
+
"401": {
|
|
21830
|
+
$ref: "#/components/responses/Unauthorized"
|
|
21831
|
+
},
|
|
21832
|
+
"429": {
|
|
21833
|
+
$ref: "#/components/responses/RateLimitExceeded"
|
|
19896
21834
|
}
|
|
19897
21835
|
}
|
|
19898
21836
|
}
|
|
@@ -19905,6 +21843,12 @@ var openapi_default = {
|
|
|
19905
21843
|
scheme: "bearer",
|
|
19906
21844
|
bearerFormat: "tlnc_*",
|
|
19907
21845
|
description: "API key with `tlnc_` prefix. Pass as `Authorization: Bearer tlnc_live_...`.\n"
|
|
21846
|
+
},
|
|
21847
|
+
OAuthBearerAuth: {
|
|
21848
|
+
type: "http",
|
|
21849
|
+
scheme: "bearer",
|
|
21850
|
+
bearerFormat: "JWT",
|
|
21851
|
+
description: "OAuth 2.1 access token (JWT) from the connector OAuth flow. Routes\nthat declare this scheme reject `tlnc_` API keys with `401`.\n"
|
|
19908
21852
|
}
|
|
19909
21853
|
},
|
|
19910
21854
|
parameters: {
|
|
@@ -20956,6 +22900,11 @@ var openapi_default = {
|
|
|
20956
22900
|
"error"
|
|
20957
22901
|
]
|
|
20958
22902
|
},
|
|
22903
|
+
error: {
|
|
22904
|
+
type: "string",
|
|
22905
|
+
description: "Human-readable failure message. Present ONLY when status is `error`; omitted otherwise.\n",
|
|
22906
|
+
example: "Extraction failed"
|
|
22907
|
+
},
|
|
20959
22908
|
source: {
|
|
20960
22909
|
type: "object",
|
|
20961
22910
|
properties: {
|
|
@@ -20973,6 +22922,89 @@ var openapi_default = {
|
|
|
20973
22922
|
}
|
|
20974
22923
|
}
|
|
20975
22924
|
},
|
|
22925
|
+
field_count: {
|
|
22926
|
+
type: "integer",
|
|
22927
|
+
description: "Number of fields captured from the document. 0 until extraction completes.",
|
|
22928
|
+
example: 42
|
|
22929
|
+
},
|
|
22930
|
+
triage: {
|
|
22931
|
+
type: [
|
|
22932
|
+
"object",
|
|
22933
|
+
"null"
|
|
22934
|
+
],
|
|
22935
|
+
description: "Compliance triage signals for the document. `null` until triage has run.\n",
|
|
22936
|
+
properties: {
|
|
22937
|
+
sensitivity: {
|
|
22938
|
+
type: [
|
|
22939
|
+
"string",
|
|
22940
|
+
"null"
|
|
22941
|
+
],
|
|
22942
|
+
enum: [
|
|
22943
|
+
"public",
|
|
22944
|
+
"internal",
|
|
22945
|
+
"restricted",
|
|
22946
|
+
null
|
|
22947
|
+
],
|
|
22948
|
+
description: "Sensitivity tier.",
|
|
22949
|
+
example: "internal"
|
|
22950
|
+
},
|
|
22951
|
+
department: {
|
|
22952
|
+
type: [
|
|
22953
|
+
"string",
|
|
22954
|
+
"null"
|
|
22955
|
+
],
|
|
22956
|
+
example: "finance"
|
|
22957
|
+
},
|
|
22958
|
+
jurisdiction: {
|
|
22959
|
+
type: [
|
|
22960
|
+
"string",
|
|
22961
|
+
"null"
|
|
22962
|
+
],
|
|
22963
|
+
description: "Two-letter country code.",
|
|
22964
|
+
example: "DE"
|
|
22965
|
+
},
|
|
22966
|
+
pii_detected: {
|
|
22967
|
+
type: "boolean",
|
|
22968
|
+
description: "True when at least one PII category was detected.",
|
|
22969
|
+
example: true
|
|
22970
|
+
},
|
|
22971
|
+
pii_categories: {
|
|
22972
|
+
type: [
|
|
22973
|
+
"array",
|
|
22974
|
+
"null"
|
|
22975
|
+
],
|
|
22976
|
+
items: {
|
|
22977
|
+
type: "string"
|
|
22978
|
+
},
|
|
22979
|
+
description: "Detected PII categories. `null` until the compliance pass has run.",
|
|
22980
|
+
example: [
|
|
22981
|
+
"name",
|
|
22982
|
+
"email"
|
|
22983
|
+
]
|
|
22984
|
+
},
|
|
22985
|
+
regulated_data: {
|
|
22986
|
+
type: "boolean",
|
|
22987
|
+
description: "Whether the document likely contains regulated data.",
|
|
22988
|
+
example: false
|
|
22989
|
+
},
|
|
22990
|
+
confidentiality_marking: {
|
|
22991
|
+
type: [
|
|
22992
|
+
"string",
|
|
22993
|
+
"null"
|
|
22994
|
+
],
|
|
22995
|
+
description: "Confidentiality marking found in the document, if any.",
|
|
22996
|
+
example: "Vertraulich"
|
|
22997
|
+
}
|
|
22998
|
+
}
|
|
22999
|
+
},
|
|
23000
|
+
original_path: {
|
|
23001
|
+
type: [
|
|
23002
|
+
"string",
|
|
23003
|
+
"null"
|
|
23004
|
+
],
|
|
23005
|
+
description: "Folder path of the file at its source, when ingested from a connector.",
|
|
23006
|
+
example: "/invoices/2026/04"
|
|
23007
|
+
},
|
|
20976
23008
|
batch_id: {
|
|
20977
23009
|
type: "string",
|
|
20978
23010
|
description: "Caller grouping key supplied at ingest (batch_id). Present ONLY when the document was tagged; omitted otherwise (backwards-compatible).\n",
|
|
@@ -21006,6 +23038,43 @@ var openapi_default = {
|
|
|
21006
23038
|
format: "uuid",
|
|
21007
23039
|
example: "d1a2b3c4-5678-9abc-def0-1234567890ab"
|
|
21008
23040
|
},
|
|
23041
|
+
processing_log: {
|
|
23042
|
+
type: "array",
|
|
23043
|
+
description: "Per-stage pipeline timing log (OCR, classify, extract). Present ONLY when at least one stage has been recorded; omitted otherwise.\n",
|
|
23044
|
+
items: {
|
|
23045
|
+
type: "object",
|
|
23046
|
+
required: [
|
|
23047
|
+
"step",
|
|
23048
|
+
"status",
|
|
23049
|
+
"started_at"
|
|
23050
|
+
],
|
|
23051
|
+
properties: {
|
|
23052
|
+
step: {
|
|
23053
|
+
type: "string",
|
|
23054
|
+
example: "ocr"
|
|
23055
|
+
},
|
|
23056
|
+
status: {
|
|
23057
|
+
type: "string",
|
|
23058
|
+
example: "completed"
|
|
23059
|
+
},
|
|
23060
|
+
started_at: {
|
|
23061
|
+
type: "string",
|
|
23062
|
+
format: "date-time"
|
|
23063
|
+
},
|
|
23064
|
+
completed_at: {
|
|
23065
|
+
type: "string",
|
|
23066
|
+
format: "date-time"
|
|
23067
|
+
},
|
|
23068
|
+
duration_ms: {
|
|
23069
|
+
type: "integer",
|
|
23070
|
+
example: 3120
|
|
23071
|
+
},
|
|
23072
|
+
detail: {
|
|
23073
|
+
type: "string"
|
|
23074
|
+
}
|
|
23075
|
+
}
|
|
23076
|
+
}
|
|
23077
|
+
},
|
|
21009
23078
|
created_at: {
|
|
21010
23079
|
type: "string",
|
|
21011
23080
|
format: "date-time",
|
|
@@ -21020,6 +23089,12 @@ var openapi_default = {
|
|
|
21020
23089
|
extractions: {
|
|
21021
23090
|
type: "string"
|
|
21022
23091
|
},
|
|
23092
|
+
fields: {
|
|
23093
|
+
type: "string"
|
|
23094
|
+
},
|
|
23095
|
+
lineage: {
|
|
23096
|
+
type: "string"
|
|
23097
|
+
},
|
|
21023
23098
|
dashboard: {
|
|
21024
23099
|
type: "string",
|
|
21025
23100
|
format: "uri"
|
|
@@ -27253,7 +29328,9 @@ var API_NAV_SECTIONS = [
|
|
|
27253
29328
|
] },
|
|
27254
29329
|
{ id: "ask", label: "Ask", children: [
|
|
27255
29330
|
{ id: "post-ask", label: "POST /v1/ask" },
|
|
29331
|
+
{ id: "ask-scoping", label: "Scope, Models & Access" },
|
|
27256
29332
|
{ id: "ask-results", label: "Poll & Results" },
|
|
29333
|
+
{ id: "ask-streaming", label: "Streaming" },
|
|
27257
29334
|
{ id: "ask-citations-verification", label: "Citations & Verification" }
|
|
27258
29335
|
] },
|
|
27259
29336
|
{ id: "documents", label: "Documents", children: [
|
|
@@ -27263,7 +29340,9 @@ var API_NAV_SECTIONS = [
|
|
|
27263
29340
|
{ id: "get-document-lineage", label: "Get Document Lineage" },
|
|
27264
29341
|
{ id: "delete-document", label: "Delete Document" },
|
|
27265
29342
|
{ id: "convert-document", label: "Convert to Markdown" },
|
|
27266
|
-
{ id: "inject-customer-metadata", label: "Inject Metadata" }
|
|
29343
|
+
{ id: "inject-customer-metadata", label: "Inject Metadata" },
|
|
29344
|
+
{ id: "get-document-claims", label: "Document Claims" },
|
|
29345
|
+
{ id: "upload-session", label: "Browser-Handoff Upload" }
|
|
27267
29346
|
] },
|
|
27268
29347
|
{ id: "extractions", label: "Extractions", children: [
|
|
27269
29348
|
{ id: "list-extractions", label: "List Extractions" },
|
|
@@ -27310,7 +29389,8 @@ var API_NAV_SECTIONS = [
|
|
|
27310
29389
|
{ id: "list-webhook-configs", label: "List Configs" },
|
|
27311
29390
|
{ id: "create-webhook-config", label: "Create Config" },
|
|
27312
29391
|
{ id: "manage-webhook-config", label: "Manage Config" },
|
|
27313
|
-
{ id: "webhook-reference-endpoints", label: "Reference Endpoints" }
|
|
29392
|
+
{ id: "webhook-reference-endpoints", label: "Reference Endpoints" },
|
|
29393
|
+
{ id: "events-feed", label: "Event Feed" }
|
|
27314
29394
|
] },
|
|
27315
29395
|
{ id: "resolutions", label: "Resolutions", children: [
|
|
27316
29396
|
{ id: "list-resolutions", label: "List Resolutions" },
|
|
@@ -27352,7 +29432,7 @@ var API_NAV_SECTIONS = [
|
|
|
27352
29432
|
{ id: "structuring", label: "Structuring", children: [
|
|
27353
29433
|
{ id: "list-structuring-checks", label: "List Checks" },
|
|
27354
29434
|
{ id: "create-structuring-check", label: "Create Check" },
|
|
27355
|
-
{ id: "get-structuring-check", label: "
|
|
29435
|
+
{ id: "get-structuring-check", label: "Update / Delete Check" },
|
|
27356
29436
|
{ id: "list-structuring-gates", label: "List Gates" },
|
|
27357
29437
|
{ id: "create-structuring-gate", label: "Create Gate" },
|
|
27358
29438
|
{ id: "get-structuring-gate", label: "Get / Update / Delete Gate" },
|
|
@@ -27386,6 +29466,8 @@ var API_NAV_SECTIONS = [
|
|
|
27386
29466
|
{ id: "agent", label: "Agent", children: [
|
|
27387
29467
|
{ id: "agent-context", label: "Get Workspace Context" },
|
|
27388
29468
|
{ id: "agent-tools", label: "List Agent Tools" },
|
|
29469
|
+
{ id: "agent-invoke-tool", label: "Invoke a Tool" },
|
|
29470
|
+
{ id: "agent-conversations", label: "Conversations" },
|
|
27389
29471
|
{ id: "agent-query", label: "Agent Query (Legacy)" }
|
|
27390
29472
|
] },
|
|
27391
29473
|
{ id: "matching", label: "Matching", children: [
|
|
@@ -27507,6 +29589,7 @@ var API_NAV_SECTIONS = [
|
|
|
27507
29589
|
{ id: "billing-settings", label: "Settings" },
|
|
27508
29590
|
{ id: "billing-topup", label: "Auto Top-Up" },
|
|
27509
29591
|
{ id: "billing-upgrade-link", label: "Upgrade Link" },
|
|
29592
|
+
{ id: "billing-packs", label: "Credit Packs" },
|
|
27510
29593
|
{ id: "cost-headers", label: "Cost Headers" }
|
|
27511
29594
|
] },
|
|
27512
29595
|
{ id: "usage", label: "Usage", children: [
|
|
@@ -27517,6 +29600,14 @@ var API_NAV_SECTIONS = [
|
|
|
27517
29600
|
{ id: "get-account", label: "Account Snapshot" },
|
|
27518
29601
|
{ id: "account-keys", label: "Manage API Keys" }
|
|
27519
29602
|
] },
|
|
29603
|
+
{ id: "ai", label: "AI Policy", children: [
|
|
29604
|
+
{ id: "ai-policy-overview", label: "AI Policy Overview" },
|
|
29605
|
+
{ id: "get-ai-policy", label: "Read the Policy" },
|
|
29606
|
+
{ id: "update-ai-policy", label: "Update the Policy" },
|
|
29607
|
+
{ id: "ai-models-operations", label: "Models & Operations" },
|
|
29608
|
+
{ id: "explain-ai-route", label: "Explain a Route" },
|
|
29609
|
+
{ id: "ai-policy-history", label: "Policy History" }
|
|
29610
|
+
] },
|
|
27520
29611
|
{ id: "nodes", label: "Node Jobs", children: [
|
|
27521
29612
|
{ id: "node-jobs", label: "Node Jobs" }
|
|
27522
29613
|
] },
|
|
@@ -27692,7 +29783,8 @@ var PLATFORM_NAV_SECTIONS = [
|
|
|
27692
29783
|
{ id: "workspace-settings", label: "Workspace Settings", children: [
|
|
27693
29784
|
{ id: "shared-dialects", label: "Shared Dialects" },
|
|
27694
29785
|
{ id: "reference-primitives", label: "Reference Primitives" },
|
|
27695
|
-
{ id: "change-review", label: "Change Review" }
|
|
29786
|
+
{ id: "change-review", label: "Change Review" },
|
|
29787
|
+
{ id: "ai-policy", label: "AI Policy" }
|
|
27696
29788
|
] },
|
|
27697
29789
|
{ id: "enterprise-archive", label: "Enterprise Archive", children: [
|
|
27698
29790
|
{ id: "archive-overview", label: "Archive Overview" },
|
|
@@ -27755,6 +29847,7 @@ var API_SECTION_META = [
|
|
|
27755
29847
|
{ id: "document-types", title: "Document Types API", description: "Document type classification \u2014 list workspace document types by frequency and retrieve the 529-type ontology taxonomy." },
|
|
27756
29848
|
{ id: "registry", title: "Registry API", description: "Query previously-extracted field values across all documents \u2014 ingest once, query forever. Zero re-extraction, zero AI calls." },
|
|
27757
29849
|
{ id: "billing", title: "Billing API", description: "Billing settings, auto top-up for AI agents, and cost response headers on extraction requests." },
|
|
29850
|
+
{ id: "ai", title: "AI Policy API", description: "Tenant AI policy and model routing: mandatory provider, region, and model constraints, live reachability catalogs, routing dry runs, and an append-only policy version history." },
|
|
27758
29851
|
{ id: "errors-rate-limits", title: "Errors & Rate Limits", description: "Error response format, error codes, rate limit tiers by plan, and rate limit headers." }
|
|
27759
29852
|
];
|
|
27760
29853
|
var PLATFORM_SECTION_META = [
|