@talonic/docs 0.21.16 → 0.21.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/content.js +1701 -122
- package/dist/index.js +25 -7
- package/dist/index.js.map +1 -1
- package/dist/seo.js +2795 -654
- package/openapi.json +2773 -650
- package/package.json +1 -1
package/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}": {
|
|
@@ -5634,6 +6052,9 @@ var openapi_default = {
|
|
|
5634
6052
|
"/v1/cases": {
|
|
5635
6053
|
get: {
|
|
5636
6054
|
operationId: "listCases",
|
|
6055
|
+
"x-required-scopes": [
|
|
6056
|
+
"read"
|
|
6057
|
+
],
|
|
5637
6058
|
summary: "List cases",
|
|
5638
6059
|
description: "Cases are document clusters discovered automatically from shared entity values across documents (BFS on the linking graph; inference mode may materialise them as first-class entities).",
|
|
5639
6060
|
tags: [
|
|
@@ -5689,6 +6110,9 @@ var openapi_default = {
|
|
|
5689
6110
|
"/v1/cases/{key}": {
|
|
5690
6111
|
get: {
|
|
5691
6112
|
operationId: "getCase",
|
|
6113
|
+
"x-required-scopes": [
|
|
6114
|
+
"read"
|
|
6115
|
+
],
|
|
5692
6116
|
summary: "Get a case by key",
|
|
5693
6117
|
description: "The case resource is keyed on its stable UUID (`id`), which never\nchanges across rebuilds. Each case also carries a content-derived\n`case_key` (hex hash of its member document set) for reference, but API\npaths take the UUID. Returns the label, narrative, linked documents,\nand anomaly count.\n",
|
|
5694
6118
|
tags: [
|
|
@@ -8146,39 +8570,6 @@ var openapi_default = {
|
|
|
8146
8570
|
}
|
|
8147
8571
|
},
|
|
8148
8572
|
"/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
8573
|
put: {
|
|
8183
8574
|
operationId: "updateStructuringCheck",
|
|
8184
8575
|
summary: "Update a structuring check",
|
|
@@ -10312,7 +10703,7 @@ var openapi_default = {
|
|
|
10312
10703
|
post: {
|
|
10313
10704
|
operationId: "ask",
|
|
10314
10705
|
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 \
|
|
10706
|
+
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
10707
|
tags: [
|
|
10317
10708
|
"Agent"
|
|
10318
10709
|
],
|
|
@@ -10331,15 +10722,120 @@ var openapi_default = {
|
|
|
10331
10722
|
maxLength: 2e4,
|
|
10332
10723
|
description: "The natural-language question to answer over the workspace corpus.",
|
|
10333
10724
|
example: "What is the payment term in the Globex contract, and where does it say so?"
|
|
10725
|
+
},
|
|
10726
|
+
scope: {
|
|
10727
|
+
type: "object",
|
|
10728
|
+
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.",
|
|
10729
|
+
properties: {
|
|
10730
|
+
document_ids: {
|
|
10731
|
+
type: "array",
|
|
10732
|
+
maxItems: 1e3,
|
|
10733
|
+
items: {
|
|
10734
|
+
type: "string",
|
|
10735
|
+
format: "uuid"
|
|
10736
|
+
},
|
|
10737
|
+
description: "Restrict to these documents. An empty array matches nothing."
|
|
10738
|
+
},
|
|
10739
|
+
schema_id: {
|
|
10740
|
+
type: "string",
|
|
10741
|
+
format: "uuid",
|
|
10742
|
+
description: "Restrict to documents processed by a pipeline of this Spec."
|
|
10743
|
+
},
|
|
10744
|
+
pipeline_id: {
|
|
10745
|
+
type: "string",
|
|
10746
|
+
format: "uuid",
|
|
10747
|
+
description: "Restrict to documents attached to this pipeline run."
|
|
10748
|
+
},
|
|
10749
|
+
data_product_id: {
|
|
10750
|
+
type: "string",
|
|
10751
|
+
format: "uuid",
|
|
10752
|
+
description: "Restrict to documents behind this data product's pipeline run."
|
|
10753
|
+
},
|
|
10754
|
+
document_type: {
|
|
10755
|
+
type: "string",
|
|
10756
|
+
maxLength: 200,
|
|
10757
|
+
description: "Restrict to documents of this classification (a document type name)."
|
|
10758
|
+
},
|
|
10759
|
+
source_id: {
|
|
10760
|
+
type: "string",
|
|
10761
|
+
format: "uuid",
|
|
10762
|
+
description: "Restrict to documents ingested through this source connection."
|
|
10763
|
+
},
|
|
10764
|
+
tags: {
|
|
10765
|
+
type: "array",
|
|
10766
|
+
maxItems: 100,
|
|
10767
|
+
items: {
|
|
10768
|
+
type: "string",
|
|
10769
|
+
maxLength: 200
|
|
10770
|
+
},
|
|
10771
|
+
description: "Restrict to documents carrying ANY of these user tags."
|
|
10772
|
+
},
|
|
10773
|
+
ingested_after: {
|
|
10774
|
+
type: "string",
|
|
10775
|
+
format: "date-time",
|
|
10776
|
+
description: "Restrict to documents ingested at or after this ISO timestamp."
|
|
10777
|
+
},
|
|
10778
|
+
ingested_before: {
|
|
10779
|
+
type: "string",
|
|
10780
|
+
format: "date-time",
|
|
10781
|
+
description: "Restrict to documents ingested at or before this ISO timestamp."
|
|
10782
|
+
}
|
|
10783
|
+
}
|
|
10784
|
+
},
|
|
10785
|
+
conversation_id: {
|
|
10786
|
+
type: "string",
|
|
10787
|
+
format: "uuid",
|
|
10788
|
+
description: "Continue this conversation; the agent sees its prior turns."
|
|
10789
|
+
},
|
|
10790
|
+
model: {
|
|
10791
|
+
type: "string",
|
|
10792
|
+
maxLength: 120,
|
|
10793
|
+
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."
|
|
10794
|
+
},
|
|
10795
|
+
model_class: {
|
|
10796
|
+
type: "string",
|
|
10797
|
+
maxLength: 120,
|
|
10798
|
+
description: "Run the turn on a model class (e.g. `complex`); used when `model` is absent."
|
|
10799
|
+
},
|
|
10800
|
+
output_format: {
|
|
10801
|
+
type: "object",
|
|
10802
|
+
description: "Shape the final answer. Constrains form only, never grounding or citation.",
|
|
10803
|
+
properties: {
|
|
10804
|
+
instruction: {
|
|
10805
|
+
type: "string",
|
|
10806
|
+
maxLength: 4e3,
|
|
10807
|
+
description: 'Free-text response-format instruction, e.g. "answer as a two-column table".'
|
|
10808
|
+
},
|
|
10809
|
+
template: {
|
|
10810
|
+
type: "string",
|
|
10811
|
+
maxLength: 2e4,
|
|
10812
|
+
description: "A markdown skeleton whose headings and order the answer keeps."
|
|
10813
|
+
}
|
|
10814
|
+
}
|
|
10815
|
+
},
|
|
10816
|
+
on_behalf_of: {
|
|
10817
|
+
type: "string",
|
|
10818
|
+
format: "uuid",
|
|
10819
|
+
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
10820
|
}
|
|
10335
10821
|
}
|
|
10822
|
+
},
|
|
10823
|
+
example: {
|
|
10824
|
+
question: "Which invoices in this pipeline are overdue, and by how much?",
|
|
10825
|
+
scope: {
|
|
10826
|
+
pipeline_id: "9e107d9d-372b-4c81-90c3-9dfe9f2c4b6a"
|
|
10827
|
+
},
|
|
10828
|
+
model_class: "complex",
|
|
10829
|
+
output_format: {
|
|
10830
|
+
instruction: "Answer as a markdown table with columns invoice, due date, days overdue."
|
|
10831
|
+
}
|
|
10336
10832
|
}
|
|
10337
10833
|
}
|
|
10338
10834
|
}
|
|
10339
10835
|
},
|
|
10340
10836
|
responses: {
|
|
10341
10837
|
"202": {
|
|
10342
|
-
description: "Ask accepted; poll `poll_url` for the answer.",
|
|
10838
|
+
description: "Ask accepted; poll `poll_url` or stream `stream_url` for the answer.",
|
|
10343
10839
|
content: {
|
|
10344
10840
|
"application/json": {
|
|
10345
10841
|
schema: {
|
|
@@ -10358,8 +10854,24 @@ var openapi_default = {
|
|
|
10358
10854
|
poll_url: {
|
|
10359
10855
|
type: "string",
|
|
10360
10856
|
example: "/v1/ask/3fa85f64-5717-4562-b3fc-2c963f66afa6"
|
|
10857
|
+
},
|
|
10858
|
+
stream_url: {
|
|
10859
|
+
type: "string",
|
|
10860
|
+
example: "/v1/ask/3fa85f64-5717-4562-b3fc-2c963f66afa6/stream"
|
|
10861
|
+
},
|
|
10862
|
+
conversation_id: {
|
|
10863
|
+
type: "string",
|
|
10864
|
+
format: "uuid",
|
|
10865
|
+
description: "The conversation this ask threads into (created when none was given)."
|
|
10361
10866
|
}
|
|
10362
10867
|
}
|
|
10868
|
+
},
|
|
10869
|
+
example: {
|
|
10870
|
+
ask_id: "3fa85f64-5717-4562-b3fc-2c963f66afa6",
|
|
10871
|
+
status: "processing",
|
|
10872
|
+
poll_url: "/v1/ask/3fa85f64-5717-4562-b3fc-2c963f66afa6",
|
|
10873
|
+
stream_url: "/v1/ask/3fa85f64-5717-4562-b3fc-2c963f66afa6/stream",
|
|
10874
|
+
conversation_id: "8c4f2a1e-0b6d-4e2f-9a3c-5d7e1f2a3b4c"
|
|
10363
10875
|
}
|
|
10364
10876
|
}
|
|
10365
10877
|
}
|
|
@@ -10383,7 +10895,7 @@ var openapi_default = {
|
|
|
10383
10895
|
get: {
|
|
10384
10896
|
operationId: "getAsk",
|
|
10385
10897
|
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
|
|
10898
|
+
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
10899
|
tags: [
|
|
10388
10900
|
"Agent"
|
|
10389
10901
|
],
|
|
@@ -10421,6 +10933,11 @@ var openapi_default = {
|
|
|
10421
10933
|
poll_url: {
|
|
10422
10934
|
type: "string"
|
|
10423
10935
|
},
|
|
10936
|
+
conversation_id: {
|
|
10937
|
+
type: "string",
|
|
10938
|
+
format: "uuid",
|
|
10939
|
+
nullable: true
|
|
10940
|
+
},
|
|
10424
10941
|
answer: {
|
|
10425
10942
|
type: "string",
|
|
10426
10943
|
description: "Markdown answer (present when completed)."
|
|
@@ -10447,12 +10964,47 @@ var openapi_default = {
|
|
|
10447
10964
|
reference: {
|
|
10448
10965
|
type: "string"
|
|
10449
10966
|
},
|
|
10967
|
+
filename: {
|
|
10968
|
+
type: "string",
|
|
10969
|
+
nullable: true
|
|
10970
|
+
},
|
|
10450
10971
|
app_url: {
|
|
10451
10972
|
type: "string"
|
|
10452
10973
|
}
|
|
10453
10974
|
}
|
|
10454
10975
|
}
|
|
10455
10976
|
},
|
|
10977
|
+
cards: {
|
|
10978
|
+
type: "array",
|
|
10979
|
+
items: {
|
|
10980
|
+
type: "object"
|
|
10981
|
+
},
|
|
10982
|
+
description: "Generative UI cards the turn produced (present when completed)."
|
|
10983
|
+
},
|
|
10984
|
+
artifacts: {
|
|
10985
|
+
type: "array",
|
|
10986
|
+
items: {
|
|
10987
|
+
type: "object",
|
|
10988
|
+
properties: {
|
|
10989
|
+
type: {
|
|
10990
|
+
type: "string"
|
|
10991
|
+
},
|
|
10992
|
+
id: {
|
|
10993
|
+
type: "string"
|
|
10994
|
+
},
|
|
10995
|
+
label: {
|
|
10996
|
+
type: "string"
|
|
10997
|
+
},
|
|
10998
|
+
link: {
|
|
10999
|
+
type: "string"
|
|
11000
|
+
}
|
|
11001
|
+
}
|
|
11002
|
+
}
|
|
11003
|
+
},
|
|
11004
|
+
tool_calls: {
|
|
11005
|
+
type: "integer",
|
|
11006
|
+
description: "Number of tool invocations the turn ran."
|
|
11007
|
+
},
|
|
10456
11008
|
verification: {
|
|
10457
11009
|
type: "object",
|
|
10458
11010
|
nullable: true,
|
|
@@ -10489,6 +11041,35 @@ var openapi_default = {
|
|
|
10489
11041
|
}
|
|
10490
11042
|
}
|
|
10491
11043
|
}
|
|
11044
|
+
},
|
|
11045
|
+
example: {
|
|
11046
|
+
ask_id: "3fa85f64-5717-4562-b3fc-2c963f66afa6",
|
|
11047
|
+
status: "completed",
|
|
11048
|
+
poll_url: "/v1/ask/3fa85f64-5717-4562-b3fc-2c963f66afa6",
|
|
11049
|
+
conversation_id: "8c4f2a1e-0b6d-4e2f-9a3c-5d7e1f2a3b4c",
|
|
11050
|
+
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.",
|
|
11051
|
+
citations: [
|
|
11052
|
+
{
|
|
11053
|
+
quote: "INV-1041",
|
|
11054
|
+
document_id: "1b6f2c3d-4e5f-6a7b-8c9d-0e1f2a3b4c5d",
|
|
11055
|
+
kind: "field",
|
|
11056
|
+
reference: "due_date",
|
|
11057
|
+
filename: "invoice-1041.pdf",
|
|
11058
|
+
app_url: "https://app.talonic.com/documents/1b6f2c3d-4e5f-6a7b-8c9d-0e1f2a3b4c5d?cite=due_date"
|
|
11059
|
+
}
|
|
11060
|
+
],
|
|
11061
|
+
cards: [],
|
|
11062
|
+
artifacts: [],
|
|
11063
|
+
tool_calls: 4,
|
|
11064
|
+
verification: {
|
|
11065
|
+
verdict: "supported",
|
|
11066
|
+
checks_total: 3,
|
|
11067
|
+
checks_unsupported: 0
|
|
11068
|
+
},
|
|
11069
|
+
usage: {
|
|
11070
|
+
tokens: 18432,
|
|
11071
|
+
credits_charged: 100
|
|
11072
|
+
}
|
|
10492
11073
|
}
|
|
10493
11074
|
}
|
|
10494
11075
|
}
|
|
@@ -10505,6 +11086,50 @@ var openapi_default = {
|
|
|
10505
11086
|
}
|
|
10506
11087
|
}
|
|
10507
11088
|
},
|
|
11089
|
+
"/v1/ask/{id}/stream": {
|
|
11090
|
+
get: {
|
|
11091
|
+
operationId: "streamAsk",
|
|
11092
|
+
summary: "Stream an ask over server-sent events",
|
|
11093
|
+
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",
|
|
11094
|
+
tags: [
|
|
11095
|
+
"Agent"
|
|
11096
|
+
],
|
|
11097
|
+
parameters: [
|
|
11098
|
+
{
|
|
11099
|
+
name: "id",
|
|
11100
|
+
in: "path",
|
|
11101
|
+
required: true,
|
|
11102
|
+
schema: {
|
|
11103
|
+
type: "string",
|
|
11104
|
+
format: "uuid"
|
|
11105
|
+
}
|
|
11106
|
+
}
|
|
11107
|
+
],
|
|
11108
|
+
responses: {
|
|
11109
|
+
"200": {
|
|
11110
|
+
description: "Server-sent event stream of the turn's frames, closed on terminal status.",
|
|
11111
|
+
content: {
|
|
11112
|
+
"text/event-stream": {
|
|
11113
|
+
schema: {
|
|
11114
|
+
type: "string",
|
|
11115
|
+
description: "SSE frames, one JSON object per `data:` line, discriminated by `kind`."
|
|
11116
|
+
},
|
|
11117
|
+
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'
|
|
11118
|
+
}
|
|
11119
|
+
}
|
|
11120
|
+
},
|
|
11121
|
+
"401": {
|
|
11122
|
+
$ref: "#/components/responses/Unauthorized"
|
|
11123
|
+
},
|
|
11124
|
+
"404": {
|
|
11125
|
+
$ref: "#/components/responses/NotFound"
|
|
11126
|
+
},
|
|
11127
|
+
"429": {
|
|
11128
|
+
$ref: "#/components/responses/RateLimitExceeded"
|
|
11129
|
+
}
|
|
11130
|
+
}
|
|
11131
|
+
}
|
|
11132
|
+
},
|
|
10508
11133
|
"/v1/agent/query": {
|
|
10509
11134
|
post: {
|
|
10510
11135
|
operationId: "startAgentQuery",
|
|
@@ -10768,7 +11393,7 @@ var openapi_default = {
|
|
|
10768
11393
|
get: {
|
|
10769
11394
|
operationId: "listAgentTools",
|
|
10770
11395
|
summary: "List agent tools",
|
|
10771
|
-
description: "Returns the catalogue of tools available to the embedded agent. Each tool entry
|
|
11396
|
+
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
11397
|
tags: [
|
|
10773
11398
|
"Agent"
|
|
10774
11399
|
],
|
|
@@ -10804,14 +11429,66 @@ var openapi_default = {
|
|
|
10804
11429
|
"live_mutation",
|
|
10805
11430
|
"irreversible"
|
|
10806
11431
|
]
|
|
11432
|
+
},
|
|
11433
|
+
capability: {
|
|
11434
|
+
type: "string",
|
|
11435
|
+
description: "The permission the tool requires (e.g. `data.read`)."
|
|
11436
|
+
},
|
|
11437
|
+
can_invoke: {
|
|
11438
|
+
type: "boolean",
|
|
11439
|
+
description: "Whether this key can run the tool via `POST /v1/agent/tools/{name}/invoke`."
|
|
11440
|
+
},
|
|
11441
|
+
input_schema: {
|
|
11442
|
+
type: "object",
|
|
11443
|
+
description: "JSON Schema for the tool's `args`."
|
|
10807
11444
|
}
|
|
10808
11445
|
}
|
|
10809
11446
|
}
|
|
10810
11447
|
},
|
|
10811
11448
|
totalCount: {
|
|
10812
11449
|
type: "integer"
|
|
11450
|
+
},
|
|
11451
|
+
invocable_count: {
|
|
11452
|
+
type: "integer",
|
|
11453
|
+
description: "How many listed tools this key can invoke."
|
|
10813
11454
|
}
|
|
10814
11455
|
}
|
|
11456
|
+
},
|
|
11457
|
+
example: {
|
|
11458
|
+
tools: [
|
|
11459
|
+
{
|
|
11460
|
+
name: "query_data",
|
|
11461
|
+
impact: "read",
|
|
11462
|
+
capability: "data.read",
|
|
11463
|
+
description: "Runs a read-only SQL query over the structured cell plane.",
|
|
11464
|
+
can_invoke: true,
|
|
11465
|
+
input_schema: {
|
|
11466
|
+
type: "object",
|
|
11467
|
+
properties: {
|
|
11468
|
+
sql: {
|
|
11469
|
+
type: "string"
|
|
11470
|
+
}
|
|
11471
|
+
}
|
|
11472
|
+
}
|
|
11473
|
+
},
|
|
11474
|
+
{
|
|
11475
|
+
name: "promote_field",
|
|
11476
|
+
impact: "draft_mutation",
|
|
11477
|
+
capability: "data.promote",
|
|
11478
|
+
description: "Makes an already-captured field queryable.",
|
|
11479
|
+
can_invoke: false,
|
|
11480
|
+
input_schema: {
|
|
11481
|
+
type: "object",
|
|
11482
|
+
properties: {
|
|
11483
|
+
field_id: {
|
|
11484
|
+
type: "string"
|
|
11485
|
+
}
|
|
11486
|
+
}
|
|
11487
|
+
}
|
|
11488
|
+
}
|
|
11489
|
+
],
|
|
11490
|
+
totalCount: 61,
|
|
11491
|
+
invocable_count: 32
|
|
10815
11492
|
}
|
|
10816
11493
|
}
|
|
10817
11494
|
}
|
|
@@ -10825,163 +11502,243 @@ var openapi_default = {
|
|
|
10825
11502
|
}
|
|
10826
11503
|
}
|
|
10827
11504
|
},
|
|
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",
|
|
11505
|
+
"/v1/agent/tools/{name}/invoke": {
|
|
11506
|
+
post: {
|
|
11507
|
+
operationId: "invokeAgentTool",
|
|
11508
|
+
summary: "Invoke one agent tool directly",
|
|
11509
|
+
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
11510
|
tags: [
|
|
10835
|
-
"
|
|
11511
|
+
"Agent"
|
|
10836
11512
|
],
|
|
10837
11513
|
parameters: [
|
|
10838
11514
|
{
|
|
10839
|
-
name: "
|
|
11515
|
+
name: "name",
|
|
10840
11516
|
in: "path",
|
|
10841
11517
|
required: true,
|
|
10842
11518
|
schema: {
|
|
10843
11519
|
type: "string"
|
|
10844
11520
|
},
|
|
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)."
|
|
11521
|
+
description: "The tool name as listed by `GET /v1/agent/tools`."
|
|
10880
11522
|
}
|
|
10881
11523
|
],
|
|
10882
11524
|
requestBody: {
|
|
10883
|
-
required:
|
|
11525
|
+
required: false,
|
|
10884
11526
|
content: {
|
|
10885
11527
|
"application/json": {
|
|
10886
11528
|
schema: {
|
|
10887
11529
|
type: "object",
|
|
10888
|
-
required: [
|
|
10889
|
-
"status"
|
|
10890
|
-
],
|
|
10891
11530
|
properties: {
|
|
10892
|
-
|
|
11531
|
+
args: {
|
|
11532
|
+
type: "object",
|
|
11533
|
+
description: "Arguments matching the tool's `input_schema` from `GET /v1/agent/tools`."
|
|
11534
|
+
},
|
|
11535
|
+
scope: {
|
|
11536
|
+
type: "object",
|
|
11537
|
+
description: "Restrict the invocation to a slice of the workspace, exactly as on `POST /v1/ask`."
|
|
11538
|
+
},
|
|
11539
|
+
on_behalf_of: {
|
|
10893
11540
|
type: "string",
|
|
10894
|
-
|
|
10895
|
-
description: "
|
|
11541
|
+
format: "uuid",
|
|
11542
|
+
description: "Apply this workspace user's compartment visibility to the invocation."
|
|
10896
11543
|
}
|
|
10897
11544
|
}
|
|
11545
|
+
},
|
|
11546
|
+
example: {
|
|
11547
|
+
args: {
|
|
11548
|
+
query: "termination notice period"
|
|
11549
|
+
},
|
|
11550
|
+
scope: {
|
|
11551
|
+
document_type: "Master Services Agreement"
|
|
11552
|
+
}
|
|
10898
11553
|
}
|
|
10899
11554
|
}
|
|
10900
11555
|
}
|
|
10901
11556
|
},
|
|
10902
11557
|
responses: {
|
|
10903
11558
|
"200": {
|
|
10904
|
-
description: "
|
|
11559
|
+
description: "The tool ran; its raw output plus any cards, artifacts, and citations.",
|
|
10905
11560
|
content: {
|
|
10906
11561
|
"application/json": {
|
|
10907
11562
|
schema: {
|
|
10908
|
-
|
|
11563
|
+
type: "object",
|
|
11564
|
+
properties: {
|
|
11565
|
+
tool: {
|
|
11566
|
+
type: "string"
|
|
11567
|
+
},
|
|
11568
|
+
ok: {
|
|
11569
|
+
type: "boolean"
|
|
11570
|
+
},
|
|
11571
|
+
content: {
|
|
11572
|
+
type: "string",
|
|
11573
|
+
description: "The tool's raw output, usually JSON serialized as a string."
|
|
11574
|
+
},
|
|
11575
|
+
cards: {
|
|
11576
|
+
type: "array",
|
|
11577
|
+
items: {
|
|
11578
|
+
type: "object"
|
|
11579
|
+
}
|
|
11580
|
+
},
|
|
11581
|
+
artifacts: {
|
|
11582
|
+
type: "array",
|
|
11583
|
+
items: {
|
|
11584
|
+
type: "object"
|
|
11585
|
+
}
|
|
11586
|
+
},
|
|
11587
|
+
citations: {
|
|
11588
|
+
type: "array",
|
|
11589
|
+
items: {
|
|
11590
|
+
type: "object",
|
|
11591
|
+
properties: {
|
|
11592
|
+
quote: {
|
|
11593
|
+
type: "string"
|
|
11594
|
+
},
|
|
11595
|
+
document_id: {
|
|
11596
|
+
type: "string",
|
|
11597
|
+
format: "uuid"
|
|
11598
|
+
},
|
|
11599
|
+
kind: {
|
|
11600
|
+
type: "string",
|
|
11601
|
+
enum: [
|
|
11602
|
+
"field",
|
|
11603
|
+
"quote"
|
|
11604
|
+
]
|
|
11605
|
+
},
|
|
11606
|
+
reference: {
|
|
11607
|
+
type: "string"
|
|
11608
|
+
},
|
|
11609
|
+
filename: {
|
|
11610
|
+
type: "string",
|
|
11611
|
+
nullable: true
|
|
11612
|
+
},
|
|
11613
|
+
app_url: {
|
|
11614
|
+
type: "string"
|
|
11615
|
+
}
|
|
11616
|
+
}
|
|
11617
|
+
}
|
|
11618
|
+
}
|
|
11619
|
+
}
|
|
11620
|
+
},
|
|
11621
|
+
example: {
|
|
11622
|
+
tool: "query_data",
|
|
11623
|
+
ok: true,
|
|
11624
|
+
content: '[{"invoice":"INV-1041","days_overdue":12}]',
|
|
11625
|
+
cards: [],
|
|
11626
|
+
artifacts: [],
|
|
11627
|
+
citations: []
|
|
10909
11628
|
}
|
|
10910
11629
|
}
|
|
10911
11630
|
}
|
|
10912
11631
|
},
|
|
10913
|
-
"400": {
|
|
10914
|
-
$ref: "#/components/responses/BadRequest"
|
|
10915
|
-
},
|
|
10916
11632
|
"401": {
|
|
10917
11633
|
$ref: "#/components/responses/Unauthorized"
|
|
10918
11634
|
},
|
|
11635
|
+
"403": {
|
|
11636
|
+
description: "The tool requires a capability this key's role does not grant; the message names it."
|
|
11637
|
+
},
|
|
10919
11638
|
"404": {
|
|
10920
11639
|
$ref: "#/components/responses/NotFound"
|
|
10921
11640
|
},
|
|
11641
|
+
"422": {
|
|
11642
|
+
description: "The tool itself failed; the message is the tool's failure summary."
|
|
11643
|
+
},
|
|
10922
11644
|
"429": {
|
|
10923
11645
|
$ref: "#/components/responses/RateLimitExceeded"
|
|
10924
11646
|
}
|
|
10925
11647
|
}
|
|
10926
11648
|
}
|
|
10927
11649
|
},
|
|
10928
|
-
"/v1/
|
|
11650
|
+
"/v1/agent/conversations": {
|
|
10929
11651
|
get: {
|
|
10930
|
-
operationId: "
|
|
10931
|
-
summary: "
|
|
10932
|
-
description: "
|
|
11652
|
+
operationId: "listAgentConversations",
|
|
11653
|
+
summary: "List agent conversations",
|
|
11654
|
+
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
11655
|
tags: [
|
|
10934
|
-
"
|
|
11656
|
+
"Agent"
|
|
10935
11657
|
],
|
|
10936
11658
|
parameters: [
|
|
10937
11659
|
{
|
|
10938
|
-
name: "
|
|
10939
|
-
in: "
|
|
10940
|
-
|
|
11660
|
+
name: "limit",
|
|
11661
|
+
in: "query",
|
|
11662
|
+
schema: {
|
|
11663
|
+
type: "integer",
|
|
11664
|
+
minimum: 1,
|
|
11665
|
+
maximum: 100,
|
|
11666
|
+
default: 30
|
|
11667
|
+
},
|
|
11668
|
+
description: "Page size (1-100)."
|
|
11669
|
+
},
|
|
11670
|
+
{
|
|
11671
|
+
name: "cursor",
|
|
11672
|
+
in: "query",
|
|
11673
|
+
schema: {
|
|
11674
|
+
type: "string",
|
|
11675
|
+
format: "date-time"
|
|
11676
|
+
},
|
|
11677
|
+
description: "The previous page's `next_cursor`."
|
|
11678
|
+
},
|
|
11679
|
+
{
|
|
11680
|
+
name: "on_behalf_of",
|
|
11681
|
+
in: "query",
|
|
10941
11682
|
schema: {
|
|
10942
11683
|
type: "string",
|
|
10943
11684
|
format: "uuid"
|
|
10944
11685
|
},
|
|
10945
|
-
description: "
|
|
11686
|
+
description: "List the conversation partition of this workspace user."
|
|
10946
11687
|
}
|
|
10947
11688
|
],
|
|
10948
11689
|
responses: {
|
|
10949
11690
|
"200": {
|
|
10950
|
-
description: "
|
|
11691
|
+
description: "One page of conversations, newest activity first.",
|
|
10951
11692
|
content: {
|
|
10952
11693
|
"application/json": {
|
|
10953
11694
|
schema: {
|
|
10954
11695
|
type: "object",
|
|
10955
11696
|
properties: {
|
|
10956
|
-
|
|
11697
|
+
conversations: {
|
|
10957
11698
|
type: "array",
|
|
10958
11699
|
items: {
|
|
10959
11700
|
type: "object",
|
|
10960
11701
|
properties: {
|
|
10961
|
-
|
|
10962
|
-
type: "string",
|
|
10963
|
-
format: "uuid",
|
|
10964
|
-
example: "a1b2c3d4-e5f6-7890-abcd-ef1234567890"
|
|
10965
|
-
},
|
|
10966
|
-
target_document_id: {
|
|
11702
|
+
conversation_id: {
|
|
10967
11703
|
type: "string",
|
|
10968
|
-
format: "uuid"
|
|
10969
|
-
example: "a1b2c3d4-e5f6-7890-abcd-ef1234567890"
|
|
11704
|
+
format: "uuid"
|
|
10970
11705
|
},
|
|
10971
|
-
|
|
11706
|
+
title: {
|
|
10972
11707
|
type: "string"
|
|
10973
11708
|
},
|
|
10974
|
-
|
|
10975
|
-
type: "
|
|
11709
|
+
turn_count: {
|
|
11710
|
+
type: "integer"
|
|
10976
11711
|
},
|
|
10977
|
-
|
|
10978
|
-
type: "
|
|
10979
|
-
format: "
|
|
11712
|
+
created_at: {
|
|
11713
|
+
type: "string",
|
|
11714
|
+
format: "date-time"
|
|
11715
|
+
},
|
|
11716
|
+
last_activity_at: {
|
|
11717
|
+
type: "string",
|
|
11718
|
+
format: "date-time"
|
|
10980
11719
|
}
|
|
10981
11720
|
}
|
|
10982
11721
|
}
|
|
11722
|
+
},
|
|
11723
|
+
next_cursor: {
|
|
11724
|
+
type: "string",
|
|
11725
|
+
format: "date-time",
|
|
11726
|
+
nullable: true,
|
|
11727
|
+
description: "Pass as `cursor` for the next page; null when this is the last page."
|
|
10983
11728
|
}
|
|
10984
11729
|
}
|
|
11730
|
+
},
|
|
11731
|
+
example: {
|
|
11732
|
+
conversations: [
|
|
11733
|
+
{
|
|
11734
|
+
conversation_id: "8c4f2a1e-0b6d-4e2f-9a3c-5d7e1f2a3b4c",
|
|
11735
|
+
title: "Overdue invoices in Q3",
|
|
11736
|
+
turn_count: 3,
|
|
11737
|
+
created_at: "2026-07-30T09:12:00.000Z",
|
|
11738
|
+
last_activity_at: "2026-07-30T09:41:00.000Z"
|
|
11739
|
+
}
|
|
11740
|
+
],
|
|
11741
|
+
next_cursor: null
|
|
10985
11742
|
}
|
|
10986
11743
|
}
|
|
10987
11744
|
}
|
|
@@ -10989,64 +11746,109 @@ var openapi_default = {
|
|
|
10989
11746
|
"401": {
|
|
10990
11747
|
$ref: "#/components/responses/Unauthorized"
|
|
10991
11748
|
},
|
|
10992
|
-
"404": {
|
|
10993
|
-
$ref: "#/components/responses/NotFound"
|
|
10994
|
-
},
|
|
10995
11749
|
"429": {
|
|
10996
11750
|
$ref: "#/components/responses/RateLimitExceeded"
|
|
10997
11751
|
}
|
|
10998
11752
|
}
|
|
10999
11753
|
}
|
|
11000
11754
|
},
|
|
11001
|
-
"/v1/
|
|
11002
|
-
|
|
11003
|
-
operationId: "
|
|
11004
|
-
summary: "
|
|
11005
|
-
description: "
|
|
11755
|
+
"/v1/agent/conversations/{id}": {
|
|
11756
|
+
get: {
|
|
11757
|
+
operationId: "getAgentConversation",
|
|
11758
|
+
summary: "Get one conversation with its asks",
|
|
11759
|
+
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
11760
|
tags: [
|
|
11007
|
-
"
|
|
11761
|
+
"Agent"
|
|
11008
11762
|
],
|
|
11009
11763
|
parameters: [
|
|
11010
11764
|
{
|
|
11011
|
-
name: "
|
|
11765
|
+
name: "id",
|
|
11012
11766
|
in: "path",
|
|
11013
11767
|
required: true,
|
|
11014
11768
|
schema: {
|
|
11015
11769
|
type: "string",
|
|
11016
11770
|
format: "uuid"
|
|
11017
|
-
}
|
|
11018
|
-
description: "Case UUID (the stable resource id)."
|
|
11771
|
+
}
|
|
11019
11772
|
},
|
|
11020
11773
|
{
|
|
11021
|
-
name: "
|
|
11022
|
-
in: "
|
|
11023
|
-
required: true,
|
|
11774
|
+
name: "on_behalf_of",
|
|
11775
|
+
in: "query",
|
|
11024
11776
|
schema: {
|
|
11025
11777
|
type: "string",
|
|
11026
11778
|
format: "uuid"
|
|
11027
11779
|
},
|
|
11028
|
-
description: "
|
|
11780
|
+
description: "Read from the conversation partition of this workspace user."
|
|
11029
11781
|
}
|
|
11030
11782
|
],
|
|
11031
11783
|
responses: {
|
|
11032
11784
|
"200": {
|
|
11033
|
-
description: "
|
|
11785
|
+
description: "The conversation and its turns.",
|
|
11034
11786
|
content: {
|
|
11035
11787
|
"application/json": {
|
|
11036
11788
|
schema: {
|
|
11037
11789
|
type: "object",
|
|
11038
11790
|
properties: {
|
|
11039
|
-
|
|
11040
|
-
type: "
|
|
11791
|
+
conversation_id: {
|
|
11792
|
+
type: "string",
|
|
11793
|
+
format: "uuid"
|
|
11794
|
+
},
|
|
11795
|
+
title: {
|
|
11796
|
+
type: "string"
|
|
11797
|
+
},
|
|
11798
|
+
created_at: {
|
|
11799
|
+
type: "string",
|
|
11800
|
+
format: "date-time"
|
|
11801
|
+
},
|
|
11802
|
+
turns: {
|
|
11803
|
+
type: "array",
|
|
11804
|
+
items: {
|
|
11805
|
+
type: "object",
|
|
11806
|
+
properties: {
|
|
11807
|
+
ask_id: {
|
|
11808
|
+
type: "string",
|
|
11809
|
+
format: "uuid"
|
|
11810
|
+
},
|
|
11811
|
+
question: {
|
|
11812
|
+
type: "string"
|
|
11813
|
+
},
|
|
11814
|
+
status: {
|
|
11815
|
+
type: "string",
|
|
11816
|
+
enum: [
|
|
11817
|
+
"processing",
|
|
11818
|
+
"completed",
|
|
11819
|
+
"error"
|
|
11820
|
+
]
|
|
11821
|
+
},
|
|
11822
|
+
answer: {
|
|
11823
|
+
type: "string",
|
|
11824
|
+
description: "The answer markdown; empty until the turn completes."
|
|
11825
|
+
},
|
|
11826
|
+
created_at: {
|
|
11827
|
+
type: "string",
|
|
11828
|
+
format: "date-time"
|
|
11829
|
+
}
|
|
11830
|
+
}
|
|
11831
|
+
}
|
|
11041
11832
|
}
|
|
11042
11833
|
}
|
|
11834
|
+
},
|
|
11835
|
+
example: {
|
|
11836
|
+
conversation_id: "8c4f2a1e-0b6d-4e2f-9a3c-5d7e1f2a3b4c",
|
|
11837
|
+
title: "Overdue invoices in Q3",
|
|
11838
|
+
created_at: "2026-07-30T09:12:00.000Z",
|
|
11839
|
+
turns: [
|
|
11840
|
+
{
|
|
11841
|
+
ask_id: "3fa85f64-5717-4562-b3fc-2c963f66afa6",
|
|
11842
|
+
question: "Which invoices in this pipeline are overdue, and by how much?",
|
|
11843
|
+
status: "completed",
|
|
11844
|
+
answer: "Two invoices are overdue: INV-1041 by 12 days and INV-1055 by 3 days.",
|
|
11845
|
+
created_at: "2026-07-30T09:12:00.000Z"
|
|
11846
|
+
}
|
|
11847
|
+
]
|
|
11043
11848
|
}
|
|
11044
11849
|
}
|
|
11045
11850
|
}
|
|
11046
11851
|
},
|
|
11047
|
-
"400": {
|
|
11048
|
-
$ref: "#/components/responses/BadRequest"
|
|
11049
|
-
},
|
|
11050
11852
|
"401": {
|
|
11051
11853
|
$ref: "#/components/responses/Unauthorized"
|
|
11052
11854
|
},
|
|
@@ -11057,57 +11859,80 @@ var openapi_default = {
|
|
|
11057
11859
|
$ref: "#/components/responses/RateLimitExceeded"
|
|
11058
11860
|
}
|
|
11059
11861
|
}
|
|
11060
|
-
}
|
|
11061
|
-
|
|
11062
|
-
|
|
11063
|
-
|
|
11064
|
-
|
|
11065
|
-
summary: "Reject a case edge",
|
|
11066
|
-
description: "Reject a proposed entity edge between documents in this case.",
|
|
11862
|
+
},
|
|
11863
|
+
patch: {
|
|
11864
|
+
operationId: "renameAgentConversation",
|
|
11865
|
+
summary: "Rename a conversation",
|
|
11866
|
+
description: "Rename a conversation. The title is trimmed server-side and capped at 300\ncharacters. Requires the `write` scope.\n",
|
|
11067
11867
|
tags: [
|
|
11068
|
-
"
|
|
11868
|
+
"Agent"
|
|
11069
11869
|
],
|
|
11070
11870
|
parameters: [
|
|
11071
11871
|
{
|
|
11072
|
-
name: "
|
|
11872
|
+
name: "id",
|
|
11073
11873
|
in: "path",
|
|
11074
11874
|
required: true,
|
|
11075
11875
|
schema: {
|
|
11076
11876
|
type: "string",
|
|
11077
11877
|
format: "uuid"
|
|
11078
|
-
}
|
|
11079
|
-
description: "Case UUID (the stable resource id)."
|
|
11878
|
+
}
|
|
11080
11879
|
},
|
|
11081
11880
|
{
|
|
11082
|
-
name: "
|
|
11083
|
-
in: "
|
|
11084
|
-
required: true,
|
|
11881
|
+
name: "on_behalf_of",
|
|
11882
|
+
in: "query",
|
|
11085
11883
|
schema: {
|
|
11086
11884
|
type: "string",
|
|
11087
11885
|
format: "uuid"
|
|
11088
11886
|
},
|
|
11089
|
-
description: "
|
|
11887
|
+
description: "Rename within the conversation partition of this workspace user."
|
|
11090
11888
|
}
|
|
11091
11889
|
],
|
|
11890
|
+
requestBody: {
|
|
11891
|
+
required: true,
|
|
11892
|
+
content: {
|
|
11893
|
+
"application/json": {
|
|
11894
|
+
schema: {
|
|
11895
|
+
type: "object",
|
|
11896
|
+
required: [
|
|
11897
|
+
"title"
|
|
11898
|
+
],
|
|
11899
|
+
properties: {
|
|
11900
|
+
title: {
|
|
11901
|
+
type: "string",
|
|
11902
|
+
maxLength: 300
|
|
11903
|
+
}
|
|
11904
|
+
}
|
|
11905
|
+
},
|
|
11906
|
+
example: {
|
|
11907
|
+
title: "Q3 collections review"
|
|
11908
|
+
}
|
|
11909
|
+
}
|
|
11910
|
+
}
|
|
11911
|
+
},
|
|
11092
11912
|
responses: {
|
|
11093
11913
|
"200": {
|
|
11094
|
-
description: "
|
|
11914
|
+
description: "The conversation's new title.",
|
|
11095
11915
|
content: {
|
|
11096
11916
|
"application/json": {
|
|
11097
11917
|
schema: {
|
|
11098
11918
|
type: "object",
|
|
11099
11919
|
properties: {
|
|
11100
|
-
|
|
11101
|
-
type: "
|
|
11920
|
+
conversation_id: {
|
|
11921
|
+
type: "string",
|
|
11922
|
+
format: "uuid"
|
|
11923
|
+
},
|
|
11924
|
+
title: {
|
|
11925
|
+
type: "string"
|
|
11102
11926
|
}
|
|
11103
11927
|
}
|
|
11928
|
+
},
|
|
11929
|
+
example: {
|
|
11930
|
+
conversation_id: "8c4f2a1e-0b6d-4e2f-9a3c-5d7e1f2a3b4c",
|
|
11931
|
+
title: "Q3 collections review"
|
|
11104
11932
|
}
|
|
11105
11933
|
}
|
|
11106
11934
|
}
|
|
11107
11935
|
},
|
|
11108
|
-
"400": {
|
|
11109
|
-
$ref: "#/components/responses/BadRequest"
|
|
11110
|
-
},
|
|
11111
11936
|
"401": {
|
|
11112
11937
|
$ref: "#/components/responses/Unauthorized"
|
|
11113
11938
|
},
|
|
@@ -11118,124 +11943,114 @@ var openapi_default = {
|
|
|
11118
11943
|
$ref: "#/components/responses/RateLimitExceeded"
|
|
11119
11944
|
}
|
|
11120
11945
|
}
|
|
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",
|
|
11946
|
+
},
|
|
11947
|
+
delete: {
|
|
11948
|
+
operationId: "deleteAgentConversation",
|
|
11949
|
+
summary: "Delete a conversation",
|
|
11950
|
+
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
11951
|
tags: [
|
|
11129
|
-
"
|
|
11130
|
-
],
|
|
11131
|
-
security: [
|
|
11132
|
-
{
|
|
11133
|
-
BearerAuth: []
|
|
11134
|
-
}
|
|
11952
|
+
"Agent"
|
|
11135
11953
|
],
|
|
11136
11954
|
parameters: [
|
|
11137
11955
|
{
|
|
11138
|
-
name: "
|
|
11956
|
+
name: "id",
|
|
11139
11957
|
in: "path",
|
|
11140
11958
|
required: true,
|
|
11959
|
+
schema: {
|
|
11960
|
+
type: "string",
|
|
11961
|
+
format: "uuid"
|
|
11962
|
+
}
|
|
11963
|
+
},
|
|
11964
|
+
{
|
|
11965
|
+
name: "on_behalf_of",
|
|
11966
|
+
in: "query",
|
|
11141
11967
|
schema: {
|
|
11142
11968
|
type: "string",
|
|
11143
11969
|
format: "uuid"
|
|
11144
11970
|
},
|
|
11145
|
-
description: "
|
|
11971
|
+
description: "Delete within the conversation partition of this workspace user."
|
|
11146
11972
|
}
|
|
11147
11973
|
],
|
|
11148
11974
|
responses: {
|
|
11149
11975
|
"200": {
|
|
11150
|
-
description: "
|
|
11976
|
+
description: "The conversation was deleted.",
|
|
11151
11977
|
content: {
|
|
11152
11978
|
"application/json": {
|
|
11153
11979
|
schema: {
|
|
11154
11980
|
type: "object",
|
|
11155
11981
|
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
|
-
}
|
|
11982
|
+
conversation_id: {
|
|
11983
|
+
type: "string",
|
|
11984
|
+
format: "uuid"
|
|
11211
11985
|
},
|
|
11212
|
-
|
|
11213
|
-
type: "
|
|
11214
|
-
nullable: true
|
|
11986
|
+
deleted: {
|
|
11987
|
+
type: "boolean"
|
|
11215
11988
|
}
|
|
11216
11989
|
}
|
|
11990
|
+
},
|
|
11991
|
+
example: {
|
|
11992
|
+
conversation_id: "8c4f2a1e-0b6d-4e2f-9a3c-5d7e1f2a3b4c",
|
|
11993
|
+
deleted: true
|
|
11217
11994
|
}
|
|
11218
11995
|
}
|
|
11219
11996
|
}
|
|
11220
11997
|
},
|
|
11998
|
+
"401": {
|
|
11999
|
+
$ref: "#/components/responses/Unauthorized"
|
|
12000
|
+
},
|
|
11221
12001
|
"404": {
|
|
11222
12002
|
$ref: "#/components/responses/NotFound"
|
|
12003
|
+
},
|
|
12004
|
+
"429": {
|
|
12005
|
+
$ref: "#/components/responses/RateLimitExceeded"
|
|
11223
12006
|
}
|
|
11224
12007
|
}
|
|
11225
12008
|
}
|
|
11226
12009
|
},
|
|
11227
|
-
"/v1/
|
|
12010
|
+
"/v1/exports/{path}": {
|
|
11228
12011
|
get: {
|
|
11229
|
-
operationId: "
|
|
11230
|
-
summary: "
|
|
11231
|
-
|
|
12012
|
+
operationId: "deprecatedExportsGet",
|
|
12013
|
+
summary: "Deprecated exports endpoint (any verb)",
|
|
12014
|
+
deprecated: true,
|
|
12015
|
+
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
12016
|
tags: [
|
|
11233
|
-
"
|
|
12017
|
+
"Delivery"
|
|
11234
12018
|
],
|
|
11235
|
-
|
|
12019
|
+
parameters: [
|
|
11236
12020
|
{
|
|
11237
|
-
|
|
12021
|
+
name: "path",
|
|
12022
|
+
in: "path",
|
|
12023
|
+
required: true,
|
|
12024
|
+
schema: {
|
|
12025
|
+
type: "string"
|
|
12026
|
+
},
|
|
12027
|
+
description: "Any sub-path under `/v1/exports/`."
|
|
12028
|
+
}
|
|
12029
|
+
],
|
|
12030
|
+
"x-sunset": "2026-04-21",
|
|
12031
|
+
responses: {
|
|
12032
|
+
"410": {
|
|
12033
|
+
description: "Gone \u2014 use `/v1/delivery/*` instead.",
|
|
12034
|
+
content: {
|
|
12035
|
+
"application/json": {
|
|
12036
|
+
schema: {
|
|
12037
|
+
$ref: "#/components/schemas/ErrorResponse"
|
|
12038
|
+
}
|
|
12039
|
+
}
|
|
12040
|
+
}
|
|
11238
12041
|
}
|
|
12042
|
+
}
|
|
12043
|
+
}
|
|
12044
|
+
},
|
|
12045
|
+
"/v1/cases/{key}/status": {
|
|
12046
|
+
patch: {
|
|
12047
|
+
operationId: "updateCaseStatus",
|
|
12048
|
+
"x-required-scopes": [
|
|
12049
|
+
"write"
|
|
12050
|
+
],
|
|
12051
|
+
summary: "Update case status",
|
|
12052
|
+
tags: [
|
|
12053
|
+
"Cases"
|
|
11239
12054
|
],
|
|
11240
12055
|
parameters: [
|
|
11241
12056
|
{
|
|
@@ -11249,76 +12064,136 @@ var openapi_default = {
|
|
|
11249
12064
|
description: "Case UUID (the stable resource id)."
|
|
11250
12065
|
}
|
|
11251
12066
|
],
|
|
11252
|
-
|
|
11253
|
-
|
|
11254
|
-
|
|
12067
|
+
requestBody: {
|
|
12068
|
+
required: true,
|
|
12069
|
+
content: {
|
|
12070
|
+
"application/json": {
|
|
12071
|
+
schema: {
|
|
12072
|
+
type: "object",
|
|
12073
|
+
required: [
|
|
12074
|
+
"status"
|
|
12075
|
+
],
|
|
12076
|
+
properties: {
|
|
12077
|
+
status: {
|
|
12078
|
+
type: "string",
|
|
12079
|
+
example: "completed",
|
|
12080
|
+
description: "New status (e.g. open, in_review, resolved, archived)."
|
|
12081
|
+
}
|
|
12082
|
+
}
|
|
12083
|
+
}
|
|
12084
|
+
}
|
|
12085
|
+
}
|
|
12086
|
+
},
|
|
12087
|
+
responses: {
|
|
12088
|
+
"200": {
|
|
12089
|
+
description: "Case status updated.",
|
|
12090
|
+
content: {
|
|
12091
|
+
"application/json": {
|
|
12092
|
+
schema: {
|
|
12093
|
+
$ref: "#/components/schemas/CaseDetailResponse"
|
|
12094
|
+
}
|
|
12095
|
+
}
|
|
12096
|
+
}
|
|
12097
|
+
},
|
|
12098
|
+
"400": {
|
|
12099
|
+
$ref: "#/components/responses/BadRequest"
|
|
12100
|
+
},
|
|
12101
|
+
"401": {
|
|
12102
|
+
$ref: "#/components/responses/Unauthorized"
|
|
12103
|
+
},
|
|
12104
|
+
"404": {
|
|
12105
|
+
$ref: "#/components/responses/NotFound"
|
|
12106
|
+
},
|
|
12107
|
+
"429": {
|
|
12108
|
+
$ref: "#/components/responses/RateLimitExceeded"
|
|
12109
|
+
}
|
|
12110
|
+
}
|
|
12111
|
+
}
|
|
12112
|
+
},
|
|
12113
|
+
"/v1/cases/{key}/edges": {
|
|
12114
|
+
get: {
|
|
12115
|
+
operationId: "getCaseEdges",
|
|
12116
|
+
"x-required-scopes": [
|
|
12117
|
+
"read"
|
|
12118
|
+
],
|
|
12119
|
+
summary: "Get case edges",
|
|
12120
|
+
description: "Returns the entity edges (evidence chain) connecting documents within the case.",
|
|
12121
|
+
tags: [
|
|
12122
|
+
"Cases"
|
|
12123
|
+
],
|
|
12124
|
+
parameters: [
|
|
12125
|
+
{
|
|
12126
|
+
name: "key",
|
|
12127
|
+
in: "path",
|
|
12128
|
+
required: true,
|
|
12129
|
+
schema: {
|
|
12130
|
+
type: "string",
|
|
12131
|
+
format: "uuid"
|
|
12132
|
+
},
|
|
12133
|
+
description: "Case UUID (the stable resource id)."
|
|
12134
|
+
}
|
|
12135
|
+
],
|
|
12136
|
+
responses: {
|
|
12137
|
+
"200": {
|
|
12138
|
+
description: "Case edges.",
|
|
11255
12139
|
content: {
|
|
11256
12140
|
"application/json": {
|
|
11257
12141
|
schema: {
|
|
11258
12142
|
type: "object",
|
|
11259
12143
|
properties: {
|
|
11260
|
-
|
|
12144
|
+
data: {
|
|
11261
12145
|
type: "array",
|
|
11262
12146
|
items: {
|
|
11263
12147
|
type: "object",
|
|
11264
12148
|
properties: {
|
|
11265
|
-
|
|
12149
|
+
source_document_id: {
|
|
11266
12150
|
type: "string",
|
|
11267
|
-
format: "uuid"
|
|
12151
|
+
format: "uuid",
|
|
12152
|
+
example: "a1b2c3d4-e5f6-7890-abcd-ef1234567890"
|
|
11268
12153
|
},
|
|
11269
|
-
|
|
12154
|
+
target_document_id: {
|
|
11270
12155
|
type: "string",
|
|
11271
12156
|
format: "uuid",
|
|
11272
|
-
|
|
11273
|
-
},
|
|
11274
|
-
via_field: {
|
|
11275
|
-
type: "string"
|
|
12157
|
+
example: "a1b2c3d4-e5f6-7890-abcd-ef1234567890"
|
|
11276
12158
|
},
|
|
11277
|
-
|
|
12159
|
+
entity_value: {
|
|
11278
12160
|
type: "string"
|
|
11279
12161
|
},
|
|
11280
|
-
|
|
12162
|
+
entity_type: {
|
|
11281
12163
|
type: "string"
|
|
11282
12164
|
},
|
|
11283
12165
|
confidence: {
|
|
11284
12166
|
type: "number",
|
|
11285
|
-
|
|
11286
|
-
},
|
|
11287
|
-
verdict: {
|
|
11288
|
-
type: "string",
|
|
11289
|
-
nullable: true
|
|
12167
|
+
format: "float"
|
|
11290
12168
|
}
|
|
11291
12169
|
}
|
|
11292
12170
|
}
|
|
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
12171
|
}
|
|
11306
12172
|
}
|
|
11307
12173
|
}
|
|
11308
12174
|
}
|
|
11309
12175
|
}
|
|
11310
12176
|
},
|
|
12177
|
+
"401": {
|
|
12178
|
+
$ref: "#/components/responses/Unauthorized"
|
|
12179
|
+
},
|
|
11311
12180
|
"404": {
|
|
11312
12181
|
$ref: "#/components/responses/NotFound"
|
|
12182
|
+
},
|
|
12183
|
+
"429": {
|
|
12184
|
+
$ref: "#/components/responses/RateLimitExceeded"
|
|
11313
12185
|
}
|
|
11314
12186
|
}
|
|
11315
12187
|
}
|
|
11316
12188
|
},
|
|
11317
|
-
"/v1/cases/{key}/
|
|
12189
|
+
"/v1/cases/{key}/edges/{edgeId}/confirm": {
|
|
11318
12190
|
post: {
|
|
11319
|
-
operationId: "
|
|
11320
|
-
|
|
11321
|
-
|
|
12191
|
+
operationId: "confirmCaseEdge",
|
|
12192
|
+
"x-required-scopes": [
|
|
12193
|
+
"write"
|
|
12194
|
+
],
|
|
12195
|
+
summary: "Confirm a case edge",
|
|
12196
|
+
description: "Confirm a proposed entity edge between documents in this case.",
|
|
11322
12197
|
tags: [
|
|
11323
12198
|
"Cases"
|
|
11324
12199
|
],
|
|
@@ -11332,67 +12207,28 @@ var openapi_default = {
|
|
|
11332
12207
|
format: "uuid"
|
|
11333
12208
|
},
|
|
11334
12209
|
description: "Case UUID (the stable resource id)."
|
|
12210
|
+
},
|
|
12211
|
+
{
|
|
12212
|
+
name: "edgeId",
|
|
12213
|
+
in: "path",
|
|
12214
|
+
required: true,
|
|
12215
|
+
schema: {
|
|
12216
|
+
type: "string",
|
|
12217
|
+
format: "uuid"
|
|
12218
|
+
},
|
|
12219
|
+
description: "Edge identifier from the case edges list."
|
|
11335
12220
|
}
|
|
11336
12221
|
],
|
|
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
12222
|
responses: {
|
|
11371
12223
|
"200": {
|
|
11372
|
-
description: "
|
|
12224
|
+
description: "Edge confirmed.",
|
|
11373
12225
|
content: {
|
|
11374
12226
|
"application/json": {
|
|
11375
12227
|
schema: {
|
|
11376
12228
|
type: "object",
|
|
11377
|
-
required: [
|
|
11378
|
-
"source_id",
|
|
11379
|
-
"new_case_id",
|
|
11380
|
-
"moved"
|
|
11381
|
-
],
|
|
11382
12229
|
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."
|
|
12230
|
+
success: {
|
|
12231
|
+
type: "boolean"
|
|
11396
12232
|
}
|
|
11397
12233
|
}
|
|
11398
12234
|
}
|
|
@@ -11414,73 +12250,51 @@ var openapi_default = {
|
|
|
11414
12250
|
}
|
|
11415
12251
|
}
|
|
11416
12252
|
},
|
|
11417
|
-
"/v1/cases/
|
|
12253
|
+
"/v1/cases/{key}/edges/{edgeId}/reject": {
|
|
11418
12254
|
post: {
|
|
11419
|
-
operationId: "
|
|
11420
|
-
|
|
11421
|
-
|
|
12255
|
+
operationId: "rejectCaseEdge",
|
|
12256
|
+
"x-required-scopes": [
|
|
12257
|
+
"write"
|
|
12258
|
+
],
|
|
12259
|
+
summary: "Reject a case edge",
|
|
12260
|
+
description: "Reject a proposed entity edge between documents in this case.",
|
|
11422
12261
|
tags: [
|
|
11423
12262
|
"Cases"
|
|
11424
12263
|
],
|
|
11425
|
-
|
|
11426
|
-
|
|
11427
|
-
|
|
11428
|
-
"
|
|
11429
|
-
|
|
11430
|
-
|
|
11431
|
-
|
|
11432
|
-
|
|
11433
|
-
|
|
11434
|
-
|
|
11435
|
-
|
|
11436
|
-
|
|
11437
|
-
|
|
11438
|
-
|
|
11439
|
-
|
|
11440
|
-
|
|
11441
|
-
|
|
11442
|
-
|
|
11443
|
-
|
|
11444
|
-
|
|
11445
|
-
}
|
|
11446
|
-
}
|
|
11447
|
-
}
|
|
11448
|
-
}
|
|
12264
|
+
parameters: [
|
|
12265
|
+
{
|
|
12266
|
+
name: "key",
|
|
12267
|
+
in: "path",
|
|
12268
|
+
required: true,
|
|
12269
|
+
schema: {
|
|
12270
|
+
type: "string",
|
|
12271
|
+
format: "uuid"
|
|
12272
|
+
},
|
|
12273
|
+
description: "Case UUID (the stable resource id)."
|
|
12274
|
+
},
|
|
12275
|
+
{
|
|
12276
|
+
name: "edgeId",
|
|
12277
|
+
in: "path",
|
|
12278
|
+
required: true,
|
|
12279
|
+
schema: {
|
|
12280
|
+
type: "string",
|
|
12281
|
+
format: "uuid"
|
|
12282
|
+
},
|
|
12283
|
+
description: "Edge identifier from the case edges list."
|
|
11449
12284
|
}
|
|
11450
|
-
|
|
12285
|
+
],
|
|
11451
12286
|
responses: {
|
|
11452
12287
|
"200": {
|
|
11453
|
-
description: "
|
|
12288
|
+
description: "Edge rejected.",
|
|
11454
12289
|
content: {
|
|
11455
12290
|
"application/json": {
|
|
11456
12291
|
schema: {
|
|
11457
12292
|
type: "object",
|
|
11458
|
-
description: "The surviving target case row.",
|
|
11459
12293
|
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
|
-
]
|
|
12294
|
+
success: {
|
|
12295
|
+
type: "boolean"
|
|
11481
12296
|
}
|
|
11482
|
-
}
|
|
11483
|
-
additionalProperties: true
|
|
12297
|
+
}
|
|
11484
12298
|
}
|
|
11485
12299
|
}
|
|
11486
12300
|
}
|
|
@@ -11500,14 +12314,22 @@ var openapi_default = {
|
|
|
11500
12314
|
}
|
|
11501
12315
|
}
|
|
11502
12316
|
},
|
|
11503
|
-
"/v1/cases/{key}/
|
|
12317
|
+
"/v1/cases/{key}/anomalies": {
|
|
11504
12318
|
get: {
|
|
11505
|
-
operationId: "
|
|
11506
|
-
|
|
11507
|
-
|
|
12319
|
+
operationId: "getCaseAnomalies",
|
|
12320
|
+
"x-required-scopes": [
|
|
12321
|
+
"read"
|
|
12322
|
+
],
|
|
12323
|
+
summary: "Get case anomalies",
|
|
12324
|
+
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
12325
|
tags: [
|
|
11509
12326
|
"Cases"
|
|
11510
12327
|
],
|
|
12328
|
+
security: [
|
|
12329
|
+
{
|
|
12330
|
+
BearerAuth: []
|
|
12331
|
+
}
|
|
12332
|
+
],
|
|
11511
12333
|
parameters: [
|
|
11512
12334
|
{
|
|
11513
12335
|
name: "key",
|
|
@@ -11522,59 +12344,99 @@ var openapi_default = {
|
|
|
11522
12344
|
],
|
|
11523
12345
|
responses: {
|
|
11524
12346
|
"200": {
|
|
11525
|
-
description: "
|
|
12347
|
+
description: "Anomalies, findings, and matched template.",
|
|
11526
12348
|
content: {
|
|
11527
12349
|
"application/json": {
|
|
11528
12350
|
schema: {
|
|
11529
12351
|
type: "object",
|
|
11530
12352
|
properties: {
|
|
11531
|
-
|
|
11532
|
-
type: "number",
|
|
11533
|
-
format: "float"
|
|
11534
|
-
},
|
|
11535
|
-
expected_document_types: {
|
|
12353
|
+
data: {
|
|
11536
12354
|
type: "array",
|
|
11537
12355
|
items: {
|
|
11538
|
-
type: "
|
|
12356
|
+
type: "object",
|
|
12357
|
+
properties: {
|
|
12358
|
+
type: {
|
|
12359
|
+
type: "string"
|
|
12360
|
+
},
|
|
12361
|
+
severity: {
|
|
12362
|
+
type: "string",
|
|
12363
|
+
enum: [
|
|
12364
|
+
"critical",
|
|
12365
|
+
"warning",
|
|
12366
|
+
"info"
|
|
12367
|
+
]
|
|
12368
|
+
},
|
|
12369
|
+
title: {
|
|
12370
|
+
type: "string"
|
|
12371
|
+
},
|
|
12372
|
+
description: {
|
|
12373
|
+
type: "string"
|
|
12374
|
+
},
|
|
12375
|
+
document_ids: {
|
|
12376
|
+
type: "array",
|
|
12377
|
+
items: {
|
|
12378
|
+
type: "string",
|
|
12379
|
+
format: "uuid"
|
|
12380
|
+
}
|
|
12381
|
+
},
|
|
12382
|
+
targets: {
|
|
12383
|
+
type: "array",
|
|
12384
|
+
items: {
|
|
12385
|
+
type: "object",
|
|
12386
|
+
properties: {
|
|
12387
|
+
document_id: {
|
|
12388
|
+
type: "string",
|
|
12389
|
+
format: "uuid"
|
|
12390
|
+
},
|
|
12391
|
+
field: {
|
|
12392
|
+
type: "string"
|
|
12393
|
+
},
|
|
12394
|
+
value: {
|
|
12395
|
+
type: "string"
|
|
12396
|
+
}
|
|
12397
|
+
}
|
|
12398
|
+
}
|
|
12399
|
+
}
|
|
12400
|
+
}
|
|
11539
12401
|
}
|
|
11540
12402
|
},
|
|
11541
|
-
|
|
12403
|
+
findings: {
|
|
11542
12404
|
type: "array",
|
|
11543
12405
|
items: {
|
|
11544
|
-
type: "
|
|
12406
|
+
type: "object"
|
|
11545
12407
|
}
|
|
11546
12408
|
},
|
|
11547
|
-
|
|
11548
|
-
type: "
|
|
11549
|
-
|
|
11550
|
-
type: "string"
|
|
11551
|
-
}
|
|
12409
|
+
template: {
|
|
12410
|
+
type: "object",
|
|
12411
|
+
nullable: true
|
|
11552
12412
|
}
|
|
11553
12413
|
}
|
|
11554
12414
|
}
|
|
11555
12415
|
}
|
|
11556
12416
|
}
|
|
11557
12417
|
},
|
|
11558
|
-
"401": {
|
|
11559
|
-
$ref: "#/components/responses/Unauthorized"
|
|
11560
|
-
},
|
|
11561
12418
|
"404": {
|
|
11562
12419
|
$ref: "#/components/responses/NotFound"
|
|
11563
|
-
},
|
|
11564
|
-
"429": {
|
|
11565
|
-
$ref: "#/components/responses/RateLimitExceeded"
|
|
11566
12420
|
}
|
|
11567
12421
|
}
|
|
11568
12422
|
}
|
|
11569
12423
|
},
|
|
11570
|
-
"/v1/cases/{key}/
|
|
11571
|
-
|
|
11572
|
-
operationId: "
|
|
11573
|
-
|
|
11574
|
-
|
|
12424
|
+
"/v1/cases/{key}/evidence": {
|
|
12425
|
+
get: {
|
|
12426
|
+
operationId: "getCaseEvidence",
|
|
12427
|
+
"x-required-scopes": [
|
|
12428
|
+
"read"
|
|
12429
|
+
],
|
|
12430
|
+
summary: "Get case evidence",
|
|
12431
|
+
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
12432
|
tags: [
|
|
11576
12433
|
"Cases"
|
|
11577
12434
|
],
|
|
12435
|
+
security: [
|
|
12436
|
+
{
|
|
12437
|
+
BearerAuth: []
|
|
12438
|
+
}
|
|
12439
|
+
],
|
|
11578
12440
|
parameters: [
|
|
11579
12441
|
{
|
|
11580
12442
|
name: "key",
|
|
@@ -11585,49 +12447,81 @@ var openapi_default = {
|
|
|
11585
12447
|
format: "uuid"
|
|
11586
12448
|
},
|
|
11587
12449
|
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
12450
|
}
|
|
11599
12451
|
],
|
|
11600
12452
|
responses: {
|
|
11601
12453
|
"200": {
|
|
11602
|
-
description: "
|
|
12454
|
+
description: "Connections, gaps, and documents.",
|
|
11603
12455
|
content: {
|
|
11604
12456
|
"application/json": {
|
|
11605
12457
|
schema: {
|
|
11606
|
-
|
|
12458
|
+
type: "object",
|
|
12459
|
+
properties: {
|
|
12460
|
+
connections: {
|
|
12461
|
+
type: "array",
|
|
12462
|
+
items: {
|
|
12463
|
+
type: "object",
|
|
12464
|
+
properties: {
|
|
12465
|
+
document_a: {
|
|
12466
|
+
type: "string",
|
|
12467
|
+
format: "uuid"
|
|
12468
|
+
},
|
|
12469
|
+
document_b: {
|
|
12470
|
+
type: "string",
|
|
12471
|
+
format: "uuid",
|
|
12472
|
+
nullable: true
|
|
12473
|
+
},
|
|
12474
|
+
via_field: {
|
|
12475
|
+
type: "string"
|
|
12476
|
+
},
|
|
12477
|
+
value: {
|
|
12478
|
+
type: "string"
|
|
12479
|
+
},
|
|
12480
|
+
kind: {
|
|
12481
|
+
type: "string"
|
|
12482
|
+
},
|
|
12483
|
+
confidence: {
|
|
12484
|
+
type: "number",
|
|
12485
|
+
nullable: true
|
|
12486
|
+
},
|
|
12487
|
+
verdict: {
|
|
12488
|
+
type: "string",
|
|
12489
|
+
nullable: true
|
|
12490
|
+
}
|
|
12491
|
+
}
|
|
12492
|
+
}
|
|
12493
|
+
},
|
|
12494
|
+
gaps: {
|
|
12495
|
+
type: "array",
|
|
12496
|
+
items: {
|
|
12497
|
+
type: "object"
|
|
12498
|
+
}
|
|
12499
|
+
},
|
|
12500
|
+
documents: {
|
|
12501
|
+
type: "array",
|
|
12502
|
+
items: {
|
|
12503
|
+
type: "object"
|
|
12504
|
+
}
|
|
12505
|
+
}
|
|
12506
|
+
}
|
|
11607
12507
|
}
|
|
11608
12508
|
}
|
|
11609
12509
|
}
|
|
11610
12510
|
},
|
|
11611
|
-
"400": {
|
|
11612
|
-
$ref: "#/components/responses/BadRequest"
|
|
11613
|
-
},
|
|
11614
|
-
"401": {
|
|
11615
|
-
$ref: "#/components/responses/Unauthorized"
|
|
11616
|
-
},
|
|
11617
12511
|
"404": {
|
|
11618
12512
|
$ref: "#/components/responses/NotFound"
|
|
11619
|
-
},
|
|
11620
|
-
"429": {
|
|
11621
|
-
$ref: "#/components/responses/RateLimitExceeded"
|
|
11622
12513
|
}
|
|
11623
12514
|
}
|
|
11624
12515
|
}
|
|
11625
12516
|
},
|
|
11626
|
-
"/v1/cases/{key}/
|
|
11627
|
-
|
|
11628
|
-
operationId: "
|
|
11629
|
-
|
|
11630
|
-
|
|
12517
|
+
"/v1/cases/{key}/split": {
|
|
12518
|
+
post: {
|
|
12519
|
+
operationId: "splitCase",
|
|
12520
|
+
"x-required-scopes": [
|
|
12521
|
+
"write"
|
|
12522
|
+
],
|
|
12523
|
+
summary: "Split a case",
|
|
12524
|
+
description: "Split a case into two separate cases by partitioning its documents into two groups.",
|
|
11631
12525
|
tags: [
|
|
11632
12526
|
"Cases"
|
|
11633
12527
|
],
|
|
@@ -11641,36 +12535,80 @@ var openapi_default = {
|
|
|
11641
12535
|
format: "uuid"
|
|
11642
12536
|
},
|
|
11643
12537
|
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
12538
|
}
|
|
11655
12539
|
],
|
|
12540
|
+
requestBody: {
|
|
12541
|
+
required: true,
|
|
12542
|
+
content: {
|
|
12543
|
+
"application/json": {
|
|
12544
|
+
schema: {
|
|
12545
|
+
type: "object",
|
|
12546
|
+
required: [
|
|
12547
|
+
"partition_b"
|
|
12548
|
+
],
|
|
12549
|
+
properties: {
|
|
12550
|
+
partition_b: {
|
|
12551
|
+
type: "array",
|
|
12552
|
+
items: {
|
|
12553
|
+
type: "string",
|
|
12554
|
+
format: "uuid",
|
|
12555
|
+
example: "a1b2c3d4-e5f6-7890-abcd-ef1234567890"
|
|
12556
|
+
},
|
|
12557
|
+
description: "Document IDs that move out into the newly-created case (non-empty strict subset). Everything not listed stays on the existing case."
|
|
12558
|
+
},
|
|
12559
|
+
partition_a: {
|
|
12560
|
+
type: "array",
|
|
12561
|
+
items: {
|
|
12562
|
+
type: "string",
|
|
12563
|
+
format: "uuid",
|
|
12564
|
+
example: "a1b2c3d4-e5f6-7890-abcd-ef1234567890"
|
|
12565
|
+
},
|
|
12566
|
+
description: "Informational only \u2014 the kept documents are derived as the complement of partition_b."
|
|
12567
|
+
}
|
|
12568
|
+
}
|
|
12569
|
+
}
|
|
12570
|
+
}
|
|
12571
|
+
}
|
|
12572
|
+
},
|
|
11656
12573
|
responses: {
|
|
11657
12574
|
"200": {
|
|
11658
|
-
description: "
|
|
12575
|
+
description: "Case split.",
|
|
11659
12576
|
content: {
|
|
11660
12577
|
"application/json": {
|
|
11661
12578
|
schema: {
|
|
11662
|
-
|
|
11663
|
-
|
|
11664
|
-
|
|
11665
|
-
|
|
11666
|
-
|
|
11667
|
-
|
|
11668
|
-
|
|
11669
|
-
|
|
11670
|
-
|
|
11671
|
-
|
|
11672
|
-
|
|
11673
|
-
|
|
12579
|
+
type: "object",
|
|
12580
|
+
required: [
|
|
12581
|
+
"source_id",
|
|
12582
|
+
"new_case_id",
|
|
12583
|
+
"moved"
|
|
12584
|
+
],
|
|
12585
|
+
properties: {
|
|
12586
|
+
source_id: {
|
|
12587
|
+
type: "string",
|
|
12588
|
+
format: "uuid",
|
|
12589
|
+
description: "UUID of the existing case (retains the documents not listed in partition_b)."
|
|
12590
|
+
},
|
|
12591
|
+
new_case_id: {
|
|
12592
|
+
type: "string",
|
|
12593
|
+
format: "uuid",
|
|
12594
|
+
description: "UUID of the newly created case holding the partition_b documents."
|
|
12595
|
+
},
|
|
12596
|
+
moved: {
|
|
12597
|
+
type: "integer",
|
|
12598
|
+
description: "Count of documents moved into the new case."
|
|
12599
|
+
}
|
|
12600
|
+
}
|
|
12601
|
+
}
|
|
12602
|
+
}
|
|
12603
|
+
}
|
|
12604
|
+
},
|
|
12605
|
+
"400": {
|
|
12606
|
+
$ref: "#/components/responses/BadRequest"
|
|
12607
|
+
},
|
|
12608
|
+
"401": {
|
|
12609
|
+
$ref: "#/components/responses/Unauthorized"
|
|
12610
|
+
},
|
|
12611
|
+
"404": {
|
|
11674
12612
|
$ref: "#/components/responses/NotFound"
|
|
11675
12613
|
},
|
|
11676
12614
|
"429": {
|
|
@@ -11679,30 +12617,83 @@ var openapi_default = {
|
|
|
11679
12617
|
}
|
|
11680
12618
|
}
|
|
11681
12619
|
},
|
|
11682
|
-
"/v1/
|
|
12620
|
+
"/v1/cases/merge": {
|
|
11683
12621
|
post: {
|
|
11684
|
-
operationId: "
|
|
11685
|
-
|
|
11686
|
-
|
|
12622
|
+
operationId: "mergeCases",
|
|
12623
|
+
"x-required-scopes": [
|
|
12624
|
+
"write"
|
|
12625
|
+
],
|
|
12626
|
+
summary: "Merge two cases",
|
|
12627
|
+
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",
|
|
11687
12628
|
tags: [
|
|
11688
|
-
"
|
|
12629
|
+
"Cases"
|
|
11689
12630
|
],
|
|
11690
|
-
|
|
11691
|
-
|
|
11692
|
-
|
|
12631
|
+
requestBody: {
|
|
12632
|
+
required: true,
|
|
12633
|
+
content: {
|
|
12634
|
+
"application/json": {
|
|
12635
|
+
schema: {
|
|
12636
|
+
type: "object",
|
|
12637
|
+
required: [
|
|
12638
|
+
"case_key_a",
|
|
12639
|
+
"case_key_b"
|
|
12640
|
+
],
|
|
12641
|
+
properties: {
|
|
12642
|
+
case_key_a: {
|
|
12643
|
+
type: "string",
|
|
12644
|
+
format: "uuid",
|
|
12645
|
+
description: "UUID of the surviving target case \u2014 receives the merged documents."
|
|
12646
|
+
},
|
|
12647
|
+
case_key_b: {
|
|
12648
|
+
type: "string",
|
|
12649
|
+
format: "uuid",
|
|
12650
|
+
description: "UUID of the absorbed case \u2014 its documents are folded into case A."
|
|
12651
|
+
}
|
|
12652
|
+
}
|
|
12653
|
+
}
|
|
12654
|
+
}
|
|
11693
12655
|
}
|
|
11694
|
-
|
|
12656
|
+
},
|
|
11695
12657
|
responses: {
|
|
11696
12658
|
"200": {
|
|
11697
|
-
description: "
|
|
12659
|
+
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",
|
|
11698
12660
|
content: {
|
|
11699
12661
|
"application/json": {
|
|
11700
12662
|
schema: {
|
|
11701
|
-
|
|
12663
|
+
type: "object",
|
|
12664
|
+
description: "The surviving target case row.",
|
|
12665
|
+
properties: {
|
|
12666
|
+
id: {
|
|
12667
|
+
type: "string",
|
|
12668
|
+
format: "uuid"
|
|
12669
|
+
},
|
|
12670
|
+
case_key: {
|
|
12671
|
+
type: "string"
|
|
12672
|
+
},
|
|
12673
|
+
status: {
|
|
12674
|
+
type: "string",
|
|
12675
|
+
enum: [
|
|
12676
|
+
"discovered",
|
|
12677
|
+
"confirmed",
|
|
12678
|
+
"active",
|
|
12679
|
+
"resolved"
|
|
12680
|
+
]
|
|
12681
|
+
},
|
|
12682
|
+
display_name: {
|
|
12683
|
+
type: [
|
|
12684
|
+
"string",
|
|
12685
|
+
"null"
|
|
12686
|
+
]
|
|
12687
|
+
}
|
|
12688
|
+
},
|
|
12689
|
+
additionalProperties: true
|
|
11702
12690
|
}
|
|
11703
12691
|
}
|
|
11704
12692
|
}
|
|
11705
12693
|
},
|
|
12694
|
+
"400": {
|
|
12695
|
+
$ref: "#/components/responses/BadRequest"
|
|
12696
|
+
},
|
|
11706
12697
|
"401": {
|
|
11707
12698
|
$ref: "#/components/responses/Unauthorized"
|
|
11708
12699
|
},
|
|
@@ -11715,26 +12706,60 @@ var openapi_default = {
|
|
|
11715
12706
|
}
|
|
11716
12707
|
}
|
|
11717
12708
|
},
|
|
11718
|
-
"/v1/
|
|
11719
|
-
|
|
11720
|
-
operationId: "
|
|
11721
|
-
|
|
11722
|
-
|
|
12709
|
+
"/v1/cases/{key}/completeness": {
|
|
12710
|
+
get: {
|
|
12711
|
+
operationId: "getCaseCompleteness",
|
|
12712
|
+
"x-required-scopes": [
|
|
12713
|
+
"read"
|
|
12714
|
+
],
|
|
12715
|
+
summary: "Get case completeness",
|
|
12716
|
+
description: "Returns a completeness assessment for the case (expected vs. present document types, missing fields).",
|
|
11723
12717
|
tags: [
|
|
11724
|
-
"
|
|
12718
|
+
"Cases"
|
|
11725
12719
|
],
|
|
11726
12720
|
parameters: [
|
|
11727
12721
|
{
|
|
11728
|
-
|
|
12722
|
+
name: "key",
|
|
12723
|
+
in: "path",
|
|
12724
|
+
required: true,
|
|
12725
|
+
schema: {
|
|
12726
|
+
type: "string",
|
|
12727
|
+
format: "uuid"
|
|
12728
|
+
},
|
|
12729
|
+
description: "Case UUID (the stable resource id)."
|
|
11729
12730
|
}
|
|
11730
12731
|
],
|
|
11731
12732
|
responses: {
|
|
11732
12733
|
"200": {
|
|
11733
|
-
description: "
|
|
12734
|
+
description: "Completeness assessment.",
|
|
11734
12735
|
content: {
|
|
11735
12736
|
"application/json": {
|
|
11736
12737
|
schema: {
|
|
11737
|
-
|
|
12738
|
+
type: "object",
|
|
12739
|
+
properties: {
|
|
12740
|
+
completeness_score: {
|
|
12741
|
+
type: "number",
|
|
12742
|
+
format: "float"
|
|
12743
|
+
},
|
|
12744
|
+
expected_document_types: {
|
|
12745
|
+
type: "array",
|
|
12746
|
+
items: {
|
|
12747
|
+
type: "string"
|
|
12748
|
+
}
|
|
12749
|
+
},
|
|
12750
|
+
present_document_types: {
|
|
12751
|
+
type: "array",
|
|
12752
|
+
items: {
|
|
12753
|
+
type: "string"
|
|
12754
|
+
}
|
|
12755
|
+
},
|
|
12756
|
+
missing_document_types: {
|
|
12757
|
+
type: "array",
|
|
12758
|
+
items: {
|
|
12759
|
+
type: "string"
|
|
12760
|
+
}
|
|
12761
|
+
}
|
|
12762
|
+
}
|
|
11738
12763
|
}
|
|
11739
12764
|
}
|
|
11740
12765
|
}
|
|
@@ -11745,56 +12770,52 @@ var openapi_default = {
|
|
|
11745
12770
|
"404": {
|
|
11746
12771
|
$ref: "#/components/responses/NotFound"
|
|
11747
12772
|
},
|
|
11748
|
-
"409": {
|
|
11749
|
-
$ref: "#/components/responses/Conflict"
|
|
11750
|
-
},
|
|
11751
12773
|
"429": {
|
|
11752
12774
|
$ref: "#/components/responses/RateLimitExceeded"
|
|
11753
12775
|
}
|
|
11754
12776
|
}
|
|
11755
12777
|
}
|
|
11756
12778
|
},
|
|
11757
|
-
"/v1/
|
|
12779
|
+
"/v1/cases/{key}/documents/{docId}/pin": {
|
|
11758
12780
|
post: {
|
|
11759
|
-
operationId: "
|
|
11760
|
-
|
|
11761
|
-
|
|
12781
|
+
operationId: "pinCaseDocument",
|
|
12782
|
+
"x-required-scopes": [
|
|
12783
|
+
"write"
|
|
12784
|
+
],
|
|
12785
|
+
summary: "Pin a document to a case",
|
|
12786
|
+
description: "Manually pin a document to a case so it persists across re-clustering.",
|
|
11762
12787
|
tags: [
|
|
11763
|
-
"
|
|
12788
|
+
"Cases"
|
|
11764
12789
|
],
|
|
11765
12790
|
parameters: [
|
|
11766
12791
|
{
|
|
11767
|
-
|
|
12792
|
+
name: "key",
|
|
12793
|
+
in: "path",
|
|
12794
|
+
required: true,
|
|
12795
|
+
schema: {
|
|
12796
|
+
type: "string",
|
|
12797
|
+
format: "uuid"
|
|
12798
|
+
},
|
|
12799
|
+
description: "Case UUID (the stable resource id)."
|
|
12800
|
+
},
|
|
12801
|
+
{
|
|
12802
|
+
name: "docId",
|
|
12803
|
+
in: "path",
|
|
12804
|
+
required: true,
|
|
12805
|
+
schema: {
|
|
12806
|
+
type: "string",
|
|
12807
|
+
format: "uuid"
|
|
12808
|
+
},
|
|
12809
|
+
description: "Document identifier to pin."
|
|
11768
12810
|
}
|
|
11769
12811
|
],
|
|
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
12812
|
responses: {
|
|
11792
|
-
"
|
|
11793
|
-
description: "
|
|
12813
|
+
"200": {
|
|
12814
|
+
description: "Document pinned.",
|
|
11794
12815
|
content: {
|
|
11795
12816
|
"application/json": {
|
|
11796
12817
|
schema: {
|
|
11797
|
-
$ref: "#/components/schemas/
|
|
12818
|
+
$ref: "#/components/schemas/CaseDetailResponse"
|
|
11798
12819
|
}
|
|
11799
12820
|
}
|
|
11800
12821
|
}
|
|
@@ -11814,31 +12835,225 @@ var openapi_default = {
|
|
|
11814
12835
|
}
|
|
11815
12836
|
}
|
|
11816
12837
|
},
|
|
11817
|
-
"/v1/
|
|
11818
|
-
|
|
11819
|
-
operationId: "
|
|
11820
|
-
|
|
11821
|
-
|
|
12838
|
+
"/v1/cases/{key}/documents/{docId}": {
|
|
12839
|
+
delete: {
|
|
12840
|
+
operationId: "removeCaseDocument",
|
|
12841
|
+
"x-required-scopes": [
|
|
12842
|
+
"write"
|
|
12843
|
+
],
|
|
12844
|
+
summary: "Remove a document from a case",
|
|
12845
|
+
description: "Remove a manually-pinned document from a case.",
|
|
11822
12846
|
tags: [
|
|
11823
|
-
"
|
|
12847
|
+
"Cases"
|
|
11824
12848
|
],
|
|
11825
12849
|
parameters: [
|
|
11826
12850
|
{
|
|
11827
|
-
|
|
12851
|
+
name: "key",
|
|
12852
|
+
in: "path",
|
|
12853
|
+
required: true,
|
|
12854
|
+
schema: {
|
|
12855
|
+
type: "string",
|
|
12856
|
+
format: "uuid"
|
|
12857
|
+
},
|
|
12858
|
+
description: "Case UUID (the stable resource id)."
|
|
12859
|
+
},
|
|
12860
|
+
{
|
|
12861
|
+
name: "docId",
|
|
12862
|
+
in: "path",
|
|
12863
|
+
required: true,
|
|
12864
|
+
schema: {
|
|
12865
|
+
type: "string",
|
|
12866
|
+
format: "uuid"
|
|
12867
|
+
},
|
|
12868
|
+
description: "Document identifier to remove."
|
|
11828
12869
|
}
|
|
11829
12870
|
],
|
|
11830
12871
|
responses: {
|
|
11831
12872
|
"200": {
|
|
11832
|
-
description: "
|
|
12873
|
+
description: "Document removed.",
|
|
11833
12874
|
content: {
|
|
11834
12875
|
"application/json": {
|
|
11835
12876
|
schema: {
|
|
11836
|
-
|
|
11837
|
-
|
|
11838
|
-
|
|
11839
|
-
|
|
11840
|
-
|
|
11841
|
-
|
|
12877
|
+
$ref: "#/components/schemas/CaseDetailResponse"
|
|
12878
|
+
}
|
|
12879
|
+
}
|
|
12880
|
+
}
|
|
12881
|
+
},
|
|
12882
|
+
"400": {
|
|
12883
|
+
$ref: "#/components/responses/BadRequest"
|
|
12884
|
+
},
|
|
12885
|
+
"401": {
|
|
12886
|
+
$ref: "#/components/responses/Unauthorized"
|
|
12887
|
+
},
|
|
12888
|
+
"404": {
|
|
12889
|
+
$ref: "#/components/responses/NotFound"
|
|
12890
|
+
},
|
|
12891
|
+
"429": {
|
|
12892
|
+
$ref: "#/components/responses/RateLimitExceeded"
|
|
12893
|
+
}
|
|
12894
|
+
}
|
|
12895
|
+
}
|
|
12896
|
+
},
|
|
12897
|
+
"/v1/batches/{id}/sync": {
|
|
12898
|
+
post: {
|
|
12899
|
+
operationId: "syncBatch",
|
|
12900
|
+
summary: "Sync batch status with provider",
|
|
12901
|
+
description: "Force a status sync with the batch inference provider (Anthropic or Bedrock).",
|
|
12902
|
+
tags: [
|
|
12903
|
+
"Jobs & Batches"
|
|
12904
|
+
],
|
|
12905
|
+
parameters: [
|
|
12906
|
+
{
|
|
12907
|
+
$ref: "#/components/parameters/ResourceId"
|
|
12908
|
+
}
|
|
12909
|
+
],
|
|
12910
|
+
responses: {
|
|
12911
|
+
"200": {
|
|
12912
|
+
description: "Batch synced.",
|
|
12913
|
+
content: {
|
|
12914
|
+
"application/json": {
|
|
12915
|
+
schema: {
|
|
12916
|
+
$ref: "#/components/schemas/BatchResponse"
|
|
12917
|
+
}
|
|
12918
|
+
}
|
|
12919
|
+
}
|
|
12920
|
+
},
|
|
12921
|
+
"401": {
|
|
12922
|
+
$ref: "#/components/responses/Unauthorized"
|
|
12923
|
+
},
|
|
12924
|
+
"404": {
|
|
12925
|
+
$ref: "#/components/responses/NotFound"
|
|
12926
|
+
},
|
|
12927
|
+
"429": {
|
|
12928
|
+
$ref: "#/components/responses/RateLimitExceeded"
|
|
12929
|
+
}
|
|
12930
|
+
}
|
|
12931
|
+
}
|
|
12932
|
+
},
|
|
12933
|
+
"/v1/batches/{id}/cancel": {
|
|
12934
|
+
post: {
|
|
12935
|
+
operationId: "cancelBatch",
|
|
12936
|
+
summary: "Cancel a batch inference run",
|
|
12937
|
+
description: "Cancel an in-flight batch. Only batches in `accumulating` or `submitted` status can be cancelled.",
|
|
12938
|
+
tags: [
|
|
12939
|
+
"Jobs & Batches"
|
|
12940
|
+
],
|
|
12941
|
+
parameters: [
|
|
12942
|
+
{
|
|
12943
|
+
$ref: "#/components/parameters/ResourceId"
|
|
12944
|
+
}
|
|
12945
|
+
],
|
|
12946
|
+
responses: {
|
|
12947
|
+
"200": {
|
|
12948
|
+
description: "Batch cancelled.",
|
|
12949
|
+
content: {
|
|
12950
|
+
"application/json": {
|
|
12951
|
+
schema: {
|
|
12952
|
+
$ref: "#/components/schemas/BatchResponse"
|
|
12953
|
+
}
|
|
12954
|
+
}
|
|
12955
|
+
}
|
|
12956
|
+
},
|
|
12957
|
+
"401": {
|
|
12958
|
+
$ref: "#/components/responses/Unauthorized"
|
|
12959
|
+
},
|
|
12960
|
+
"404": {
|
|
12961
|
+
$ref: "#/components/responses/NotFound"
|
|
12962
|
+
},
|
|
12963
|
+
"409": {
|
|
12964
|
+
$ref: "#/components/responses/Conflict"
|
|
12965
|
+
},
|
|
12966
|
+
"429": {
|
|
12967
|
+
$ref: "#/components/responses/RateLimitExceeded"
|
|
12968
|
+
}
|
|
12969
|
+
}
|
|
12970
|
+
}
|
|
12971
|
+
},
|
|
12972
|
+
"/v1/matching/configs/{id}/smart-run": {
|
|
12973
|
+
post: {
|
|
12974
|
+
operationId: "triggerSmartMatchingRun",
|
|
12975
|
+
summary: "Trigger a smart matching run for a config",
|
|
12976
|
+
description: "Run a previously-generated AI matching strategy against the documents scoped by the matching config.",
|
|
12977
|
+
tags: [
|
|
12978
|
+
"Matching"
|
|
12979
|
+
],
|
|
12980
|
+
parameters: [
|
|
12981
|
+
{
|
|
12982
|
+
$ref: "#/components/parameters/ResourceId"
|
|
12983
|
+
}
|
|
12984
|
+
],
|
|
12985
|
+
requestBody: {
|
|
12986
|
+
required: true,
|
|
12987
|
+
content: {
|
|
12988
|
+
"application/json": {
|
|
12989
|
+
schema: {
|
|
12990
|
+
type: "object",
|
|
12991
|
+
required: [
|
|
12992
|
+
"strategy_id"
|
|
12993
|
+
],
|
|
12994
|
+
properties: {
|
|
12995
|
+
strategy_id: {
|
|
12996
|
+
type: "string",
|
|
12997
|
+
format: "uuid",
|
|
12998
|
+
example: "c9d0e1f2-a3b4-5678-cdef-789012345678",
|
|
12999
|
+
description: "Strategy generated via POST /v1/matching/strategies/generate to execute against this config."
|
|
13000
|
+
}
|
|
13001
|
+
}
|
|
13002
|
+
}
|
|
13003
|
+
}
|
|
13004
|
+
}
|
|
13005
|
+
},
|
|
13006
|
+
responses: {
|
|
13007
|
+
"201": {
|
|
13008
|
+
description: "Smart matching run queued.",
|
|
13009
|
+
content: {
|
|
13010
|
+
"application/json": {
|
|
13011
|
+
schema: {
|
|
13012
|
+
$ref: "#/components/schemas/MatchingRunResponse"
|
|
13013
|
+
}
|
|
13014
|
+
}
|
|
13015
|
+
}
|
|
13016
|
+
},
|
|
13017
|
+
"400": {
|
|
13018
|
+
$ref: "#/components/responses/BadRequest"
|
|
13019
|
+
},
|
|
13020
|
+
"401": {
|
|
13021
|
+
$ref: "#/components/responses/Unauthorized"
|
|
13022
|
+
},
|
|
13023
|
+
"404": {
|
|
13024
|
+
$ref: "#/components/responses/NotFound"
|
|
13025
|
+
},
|
|
13026
|
+
"429": {
|
|
13027
|
+
$ref: "#/components/responses/RateLimitExceeded"
|
|
13028
|
+
}
|
|
13029
|
+
}
|
|
13030
|
+
}
|
|
13031
|
+
},
|
|
13032
|
+
"/v1/matching/runs/{id}/ai-resolve": {
|
|
13033
|
+
post: {
|
|
13034
|
+
operationId: "aiResolveMatchingRun",
|
|
13035
|
+
summary: "AI-resolve a matching run's review band",
|
|
13036
|
+
description: "Trigger AI-driven resolution on a completed matching run's review-band candidates. Requires the run to have an associated strategy.",
|
|
13037
|
+
tags: [
|
|
13038
|
+
"Matching"
|
|
13039
|
+
],
|
|
13040
|
+
parameters: [
|
|
13041
|
+
{
|
|
13042
|
+
$ref: "#/components/parameters/ResourceId"
|
|
13043
|
+
}
|
|
13044
|
+
],
|
|
13045
|
+
responses: {
|
|
13046
|
+
"200": {
|
|
13047
|
+
description: "AI resolution started.",
|
|
13048
|
+
content: {
|
|
13049
|
+
"application/json": {
|
|
13050
|
+
schema: {
|
|
13051
|
+
type: "object",
|
|
13052
|
+
properties: {
|
|
13053
|
+
id: {
|
|
13054
|
+
type: "string",
|
|
13055
|
+
format: "uuid"
|
|
13056
|
+
},
|
|
11842
13057
|
status: {
|
|
11843
13058
|
type: "string"
|
|
11844
13059
|
},
|
|
@@ -12477,70 +13692,6 @@ var openapi_default = {
|
|
|
12477
13692
|
}
|
|
12478
13693
|
},
|
|
12479
13694
|
"/v1/quality/ground-truth/{id}/entries/{entryId}": {
|
|
12480
|
-
put: {
|
|
12481
|
-
operationId: "updateGroundTruthEntry",
|
|
12482
|
-
summary: "Update a ground truth entry",
|
|
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
13695
|
delete: {
|
|
12545
13696
|
operationId: "deleteGroundTruthEntry",
|
|
12546
13697
|
summary: "Delete a ground truth entry",
|
|
@@ -19496,6 +20647,9 @@ var openapi_default = {
|
|
|
19496
20647
|
summary: "Get the cached synthesis threads",
|
|
19497
20648
|
description: "The cached synthesis artifact (threads + findings). Never triggers a rebuild.",
|
|
19498
20649
|
operationId: "getCaseThreads",
|
|
20650
|
+
"x-required-scopes": [
|
|
20651
|
+
"read"
|
|
20652
|
+
],
|
|
19499
20653
|
security: [
|
|
19500
20654
|
{
|
|
19501
20655
|
BearerAuth: []
|
|
@@ -19515,6 +20669,9 @@ var openapi_default = {
|
|
|
19515
20669
|
],
|
|
19516
20670
|
summary: "Get the case-synthesis build status",
|
|
19517
20671
|
operationId: "getCaseSynthesisStatus",
|
|
20672
|
+
"x-required-scopes": [
|
|
20673
|
+
"read"
|
|
20674
|
+
],
|
|
19518
20675
|
security: [
|
|
19519
20676
|
{
|
|
19520
20677
|
BearerAuth: []
|
|
@@ -19535,6 +20692,9 @@ var openapi_default = {
|
|
|
19535
20692
|
summary: "Trigger an async case-synthesis recompute",
|
|
19536
20693
|
description: "Enqueues the multi-minute synthesis pipeline and returns immediately. Poll the status endpoint. Requires write scope.",
|
|
19537
20694
|
operationId: "recomputeCaseSynthesis",
|
|
20695
|
+
"x-required-scopes": [
|
|
20696
|
+
"write"
|
|
20697
|
+
],
|
|
19538
20698
|
security: [
|
|
19539
20699
|
{
|
|
19540
20700
|
BearerAuth: []
|
|
@@ -19804,95 +20964,921 @@ var openapi_default = {
|
|
|
19804
20964
|
}
|
|
19805
20965
|
},
|
|
19806
20966
|
"400": {
|
|
19807
|
-
$ref: "#/components/responses/BadRequest"
|
|
20967
|
+
$ref: "#/components/responses/BadRequest"
|
|
20968
|
+
},
|
|
20969
|
+
"401": {
|
|
20970
|
+
$ref: "#/components/responses/Unauthorized"
|
|
20971
|
+
},
|
|
20972
|
+
"413": {
|
|
20973
|
+
$ref: "#/components/responses/PayloadTooLarge"
|
|
20974
|
+
}
|
|
20975
|
+
}
|
|
20976
|
+
}
|
|
20977
|
+
},
|
|
20978
|
+
"/v1/billing/settings": {
|
|
20979
|
+
get: {
|
|
20980
|
+
tags: [
|
|
20981
|
+
"Billing"
|
|
20982
|
+
],
|
|
20983
|
+
summary: "Get billing (auto top-up) settings",
|
|
20984
|
+
operationId: "getBillingSettings",
|
|
20985
|
+
security: [
|
|
20986
|
+
{
|
|
20987
|
+
BearerAuth: []
|
|
20988
|
+
}
|
|
20989
|
+
],
|
|
20990
|
+
responses: {
|
|
20991
|
+
"200": {
|
|
20992
|
+
description: "Auto-topup configuration"
|
|
20993
|
+
}
|
|
20994
|
+
}
|
|
20995
|
+
},
|
|
20996
|
+
patch: {
|
|
20997
|
+
tags: [
|
|
20998
|
+
"Billing"
|
|
20999
|
+
],
|
|
21000
|
+
summary: "Update billing (auto top-up) settings",
|
|
21001
|
+
operationId: "updateBillingSettings",
|
|
21002
|
+
security: [
|
|
21003
|
+
{
|
|
21004
|
+
BearerAuth: []
|
|
21005
|
+
}
|
|
21006
|
+
],
|
|
21007
|
+
requestBody: {
|
|
21008
|
+
required: true,
|
|
21009
|
+
content: {
|
|
21010
|
+
"application/json": {
|
|
21011
|
+
schema: {
|
|
21012
|
+
type: "object",
|
|
21013
|
+
properties: {
|
|
21014
|
+
auto_topup_enabled: {
|
|
21015
|
+
type: "boolean"
|
|
21016
|
+
},
|
|
21017
|
+
auto_topup_threshold: {
|
|
21018
|
+
type: "integer",
|
|
21019
|
+
minimum: 1e3
|
|
21020
|
+
},
|
|
21021
|
+
auto_topup_amount: {
|
|
21022
|
+
type: "integer",
|
|
21023
|
+
minimum: 1e3
|
|
21024
|
+
}
|
|
21025
|
+
}
|
|
21026
|
+
}
|
|
21027
|
+
}
|
|
21028
|
+
}
|
|
21029
|
+
},
|
|
21030
|
+
responses: {
|
|
21031
|
+
"200": {
|
|
21032
|
+
description: "Updated settings"
|
|
21033
|
+
}
|
|
21034
|
+
}
|
|
21035
|
+
}
|
|
21036
|
+
},
|
|
21037
|
+
"/v1/billing/topup": {
|
|
21038
|
+
post: {
|
|
21039
|
+
tags: [
|
|
21040
|
+
"Billing"
|
|
21041
|
+
],
|
|
21042
|
+
summary: "Trigger an auto top-up now",
|
|
21043
|
+
description: "Charges a top-up if auto top-up is enabled. Requires the billing scope.",
|
|
21044
|
+
operationId: "triggerBillingTopup",
|
|
21045
|
+
security: [
|
|
21046
|
+
{
|
|
21047
|
+
BearerAuth: []
|
|
21048
|
+
}
|
|
21049
|
+
],
|
|
21050
|
+
responses: {
|
|
21051
|
+
"200": {
|
|
21052
|
+
description: "{ topped_up, ... }"
|
|
21053
|
+
},
|
|
21054
|
+
"403": {
|
|
21055
|
+
description: "auto_topup_disabled"
|
|
21056
|
+
}
|
|
21057
|
+
}
|
|
21058
|
+
}
|
|
21059
|
+
},
|
|
21060
|
+
"/v1/ai/policy": {
|
|
21061
|
+
get: {
|
|
21062
|
+
operationId: "getAiPolicy",
|
|
21063
|
+
summary: "Get the effective AI policy",
|
|
21064
|
+
tags: [
|
|
21065
|
+
"AI Policy"
|
|
21066
|
+
],
|
|
21067
|
+
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",
|
|
21068
|
+
responses: {
|
|
21069
|
+
"200": {
|
|
21070
|
+
description: "The effective policy, constraints, operation class map, and satisfiability status.",
|
|
21071
|
+
content: {
|
|
21072
|
+
"application/json": {
|
|
21073
|
+
example: {
|
|
21074
|
+
policy: {
|
|
21075
|
+
version: 4,
|
|
21076
|
+
status: "active",
|
|
21077
|
+
region_pin: "eu",
|
|
21078
|
+
allowed_providers: [
|
|
21079
|
+
"bedrock"
|
|
21080
|
+
],
|
|
21081
|
+
denied_models: [
|
|
21082
|
+
"claude-opus"
|
|
21083
|
+
],
|
|
21084
|
+
model_substitutions: null,
|
|
21085
|
+
default_models: null,
|
|
21086
|
+
max_attempts: null,
|
|
21087
|
+
model_classes: null,
|
|
21088
|
+
operation_classes: {
|
|
21089
|
+
extraction: "complex"
|
|
21090
|
+
},
|
|
21091
|
+
features: null
|
|
21092
|
+
},
|
|
21093
|
+
inherited: false,
|
|
21094
|
+
constraints: {
|
|
21095
|
+
region_pin: "eu",
|
|
21096
|
+
allowed_providers: [
|
|
21097
|
+
"bedrock"
|
|
21098
|
+
],
|
|
21099
|
+
denied_models: [
|
|
21100
|
+
"claude-opus"
|
|
21101
|
+
],
|
|
21102
|
+
platform_provider_floor: [
|
|
21103
|
+
"bedrock"
|
|
21104
|
+
]
|
|
21105
|
+
},
|
|
21106
|
+
operation_classes: {
|
|
21107
|
+
extraction: {
|
|
21108
|
+
class: "complex",
|
|
21109
|
+
source: "org",
|
|
21110
|
+
overridden: true
|
|
21111
|
+
}
|
|
21112
|
+
},
|
|
21113
|
+
status: {
|
|
21114
|
+
satisfiable: true,
|
|
21115
|
+
unroutable_operations: [],
|
|
21116
|
+
advisory_warnings: [
|
|
21117
|
+
"document_ocr"
|
|
21118
|
+
]
|
|
21119
|
+
}
|
|
21120
|
+
}
|
|
21121
|
+
}
|
|
21122
|
+
}
|
|
21123
|
+
},
|
|
21124
|
+
"400": {
|
|
21125
|
+
description: "The API key is not scoped to a single workspace.",
|
|
21126
|
+
content: {
|
|
21127
|
+
"application/json": {
|
|
21128
|
+
example: {
|
|
21129
|
+
error: "workspace_scope_required",
|
|
21130
|
+
message: "A workspace-scoped API key is required to read or change AI policy."
|
|
21131
|
+
}
|
|
21132
|
+
}
|
|
21133
|
+
}
|
|
21134
|
+
},
|
|
21135
|
+
"401": {
|
|
21136
|
+
$ref: "#/components/responses/Unauthorized"
|
|
21137
|
+
},
|
|
21138
|
+
"429": {
|
|
21139
|
+
$ref: "#/components/responses/RateLimitExceeded"
|
|
21140
|
+
}
|
|
21141
|
+
}
|
|
21142
|
+
},
|
|
21143
|
+
put: {
|
|
21144
|
+
operationId: "replaceAiPolicy",
|
|
21145
|
+
summary: "Replace the AI policy",
|
|
21146
|
+
tags: [
|
|
21147
|
+
"AI Policy"
|
|
21148
|
+
],
|
|
21149
|
+
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",
|
|
21150
|
+
requestBody: {
|
|
21151
|
+
required: true,
|
|
21152
|
+
content: {
|
|
21153
|
+
"application/json": {
|
|
21154
|
+
schema: {
|
|
21155
|
+
type: "object",
|
|
21156
|
+
properties: {
|
|
21157
|
+
region_pin: {
|
|
21158
|
+
type: [
|
|
21159
|
+
"string",
|
|
21160
|
+
"null"
|
|
21161
|
+
],
|
|
21162
|
+
enum: [
|
|
21163
|
+
"us",
|
|
21164
|
+
"eu",
|
|
21165
|
+
null
|
|
21166
|
+
],
|
|
21167
|
+
description: "Hard residency constraint. A deployment in any other region is rejected, including globally-routed ones."
|
|
21168
|
+
},
|
|
21169
|
+
allowed_providers: {
|
|
21170
|
+
type: [
|
|
21171
|
+
"array",
|
|
21172
|
+
"null"
|
|
21173
|
+
],
|
|
21174
|
+
items: {
|
|
21175
|
+
type: "string",
|
|
21176
|
+
enum: [
|
|
21177
|
+
"anthropic",
|
|
21178
|
+
"bedrock",
|
|
21179
|
+
"foundry",
|
|
21180
|
+
"openai",
|
|
21181
|
+
"azure-openai",
|
|
21182
|
+
"google",
|
|
21183
|
+
"mistral",
|
|
21184
|
+
"local"
|
|
21185
|
+
]
|
|
21186
|
+
},
|
|
21187
|
+
description: "Providers permitted to process this workspace's data. Null or omitted means every provider the platform permits."
|
|
21188
|
+
},
|
|
21189
|
+
denied_models: {
|
|
21190
|
+
type: [
|
|
21191
|
+
"array",
|
|
21192
|
+
"null"
|
|
21193
|
+
],
|
|
21194
|
+
items: {
|
|
21195
|
+
type: "string"
|
|
21196
|
+
},
|
|
21197
|
+
description: "Models this workspace may never be routed to, whatever else permits them. Applies to explicit requests and every fallback chain step alike."
|
|
21198
|
+
},
|
|
21199
|
+
model_substitutions: {
|
|
21200
|
+
type: "object",
|
|
21201
|
+
additionalProperties: {
|
|
21202
|
+
type: "string"
|
|
21203
|
+
},
|
|
21204
|
+
description: "Remap one model onto another wherever the first would be chosen."
|
|
21205
|
+
},
|
|
21206
|
+
default_models: {
|
|
21207
|
+
type: "object",
|
|
21208
|
+
description: "Preferred model per speed tier where no class governs the call. Keys are fast, default, powerful."
|
|
21209
|
+
},
|
|
21210
|
+
max_attempts: {
|
|
21211
|
+
type: "integer",
|
|
21212
|
+
minimum: 1,
|
|
21213
|
+
maximum: 8,
|
|
21214
|
+
description: "Ceiling on provider attempts for one logical call."
|
|
21215
|
+
},
|
|
21216
|
+
model_classes: {
|
|
21217
|
+
type: "object",
|
|
21218
|
+
description: "Named model lineage overrides. Values are camelCase: { description, chain: [{ model, deployments: [{ provider, region }] }], requiredCapabilities, fallback: chain | primary_only }."
|
|
21219
|
+
},
|
|
21220
|
+
operation_classes: {
|
|
21221
|
+
type: "object",
|
|
21222
|
+
additionalProperties: {
|
|
21223
|
+
type: [
|
|
21224
|
+
"string",
|
|
21225
|
+
"null"
|
|
21226
|
+
]
|
|
21227
|
+
},
|
|
21228
|
+
description: "Per-operation class overrides, keyed by operation type."
|
|
21229
|
+
},
|
|
21230
|
+
features: {
|
|
21231
|
+
type: "object",
|
|
21232
|
+
additionalProperties: {
|
|
21233
|
+
type: "boolean"
|
|
21234
|
+
},
|
|
21235
|
+
description: "Feature toggles, camelCase keys. Absent toggles stay on."
|
|
21236
|
+
},
|
|
21237
|
+
status: {
|
|
21238
|
+
type: "string",
|
|
21239
|
+
enum: [
|
|
21240
|
+
"draft",
|
|
21241
|
+
"shadow",
|
|
21242
|
+
"active"
|
|
21243
|
+
],
|
|
21244
|
+
default: "active",
|
|
21245
|
+
description: "Lifecycle state to save under. Only active is enforced at runtime."
|
|
21246
|
+
},
|
|
21247
|
+
change_reason: {
|
|
21248
|
+
type: "string",
|
|
21249
|
+
maxLength: 200,
|
|
21250
|
+
description: "Why this change is being made. Recorded on the stored version."
|
|
21251
|
+
}
|
|
21252
|
+
}
|
|
21253
|
+
},
|
|
21254
|
+
example: {
|
|
21255
|
+
region_pin: "eu",
|
|
21256
|
+
allowed_providers: [
|
|
21257
|
+
"bedrock"
|
|
21258
|
+
],
|
|
21259
|
+
denied_models: [
|
|
21260
|
+
"claude-opus"
|
|
21261
|
+
],
|
|
21262
|
+
operation_classes: {
|
|
21263
|
+
extraction: "complex"
|
|
21264
|
+
},
|
|
21265
|
+
change_reason: "Contractual EU residency"
|
|
21266
|
+
}
|
|
21267
|
+
}
|
|
21268
|
+
}
|
|
21269
|
+
},
|
|
21270
|
+
responses: {
|
|
21271
|
+
"200": {
|
|
21272
|
+
description: "The saved version plus the resulting effective policy view (the GET response body).",
|
|
21273
|
+
content: {
|
|
21274
|
+
"application/json": {
|
|
21275
|
+
example: {
|
|
21276
|
+
saved: {
|
|
21277
|
+
version: 7,
|
|
21278
|
+
status: "active"
|
|
21279
|
+
},
|
|
21280
|
+
policy: {
|
|
21281
|
+
version: 7,
|
|
21282
|
+
status: "active",
|
|
21283
|
+
region_pin: "eu",
|
|
21284
|
+
allowed_providers: [
|
|
21285
|
+
"bedrock"
|
|
21286
|
+
],
|
|
21287
|
+
denied_models: [
|
|
21288
|
+
"claude-opus"
|
|
21289
|
+
],
|
|
21290
|
+
model_substitutions: null,
|
|
21291
|
+
default_models: null,
|
|
21292
|
+
max_attempts: null,
|
|
21293
|
+
model_classes: null,
|
|
21294
|
+
operation_classes: {
|
|
21295
|
+
extraction: "complex"
|
|
21296
|
+
},
|
|
21297
|
+
features: null
|
|
21298
|
+
},
|
|
21299
|
+
inherited: false,
|
|
21300
|
+
constraints: {
|
|
21301
|
+
region_pin: "eu",
|
|
21302
|
+
allowed_providers: [
|
|
21303
|
+
"bedrock"
|
|
21304
|
+
],
|
|
21305
|
+
denied_models: [
|
|
21306
|
+
"claude-opus"
|
|
21307
|
+
],
|
|
21308
|
+
platform_provider_floor: [
|
|
21309
|
+
"bedrock"
|
|
21310
|
+
]
|
|
21311
|
+
},
|
|
21312
|
+
operation_classes: {
|
|
21313
|
+
extraction: {
|
|
21314
|
+
class: "complex",
|
|
21315
|
+
source: "org",
|
|
21316
|
+
overridden: true
|
|
21317
|
+
}
|
|
21318
|
+
},
|
|
21319
|
+
status: {
|
|
21320
|
+
satisfiable: true,
|
|
21321
|
+
unroutable_operations: [],
|
|
21322
|
+
advisory_warnings: [
|
|
21323
|
+
"document_ocr"
|
|
21324
|
+
]
|
|
21325
|
+
}
|
|
21326
|
+
}
|
|
21327
|
+
}
|
|
21328
|
+
}
|
|
21329
|
+
},
|
|
21330
|
+
"400": {
|
|
21331
|
+
description: "The policy was refused and nothing was stored.",
|
|
21332
|
+
content: {
|
|
21333
|
+
"application/json": {
|
|
21334
|
+
examples: {
|
|
21335
|
+
policy_unsatisfiable: {
|
|
21336
|
+
summary: "Activation would strand registered operations",
|
|
21337
|
+
value: {
|
|
21338
|
+
error: "policy_unsatisfiable",
|
|
21339
|
+
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.",
|
|
21340
|
+
unroutable_operations: [
|
|
21341
|
+
"extraction",
|
|
21342
|
+
"classification"
|
|
21343
|
+
],
|
|
21344
|
+
advisory_warnings: [
|
|
21345
|
+
"document_ocr"
|
|
21346
|
+
]
|
|
21347
|
+
}
|
|
21348
|
+
},
|
|
21349
|
+
invalid_policy: {
|
|
21350
|
+
summary: "The policy shape or a referenced model is invalid",
|
|
21351
|
+
value: {
|
|
21352
|
+
error: "invalid_policy",
|
|
21353
|
+
message: "denied model 'not-a-real-model' is not in the catalog"
|
|
21354
|
+
}
|
|
21355
|
+
},
|
|
21356
|
+
workspace_scope_required: {
|
|
21357
|
+
summary: "The key is not scoped to a single workspace",
|
|
21358
|
+
value: {
|
|
21359
|
+
error: "workspace_scope_required",
|
|
21360
|
+
message: "A workspace-scoped API key is required to read or change AI policy."
|
|
21361
|
+
}
|
|
21362
|
+
}
|
|
21363
|
+
}
|
|
21364
|
+
}
|
|
21365
|
+
}
|
|
21366
|
+
},
|
|
21367
|
+
"401": {
|
|
21368
|
+
$ref: "#/components/responses/Unauthorized"
|
|
21369
|
+
},
|
|
21370
|
+
"403": {
|
|
21371
|
+
$ref: "#/components/responses/Forbidden"
|
|
21372
|
+
},
|
|
21373
|
+
"429": {
|
|
21374
|
+
$ref: "#/components/responses/RateLimitExceeded"
|
|
21375
|
+
}
|
|
21376
|
+
}
|
|
21377
|
+
},
|
|
21378
|
+
patch: {
|
|
21379
|
+
operationId: "patchAiPolicy",
|
|
21380
|
+
summary: "Update part of the AI policy",
|
|
21381
|
+
tags: [
|
|
21382
|
+
"AI Policy"
|
|
21383
|
+
],
|
|
21384
|
+
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",
|
|
21385
|
+
requestBody: {
|
|
21386
|
+
required: true,
|
|
21387
|
+
content: {
|
|
21388
|
+
"application/json": {
|
|
21389
|
+
schema: {
|
|
21390
|
+
type: "object",
|
|
21391
|
+
description: "Same fields as PUT /v1/ai/policy; every field optional, omissions preserved."
|
|
21392
|
+
},
|
|
21393
|
+
example: {
|
|
21394
|
+
denied_models: [
|
|
21395
|
+
"claude-opus"
|
|
21396
|
+
],
|
|
21397
|
+
operation_classes: {
|
|
21398
|
+
extraction: null
|
|
21399
|
+
},
|
|
21400
|
+
change_reason: "Remove the extraction override, deny one model"
|
|
21401
|
+
}
|
|
21402
|
+
}
|
|
21403
|
+
}
|
|
21404
|
+
},
|
|
21405
|
+
responses: {
|
|
21406
|
+
"200": {
|
|
21407
|
+
description: "The saved version plus the resulting effective policy view (the GET response body).",
|
|
21408
|
+
content: {
|
|
21409
|
+
"application/json": {
|
|
21410
|
+
example: {
|
|
21411
|
+
saved: {
|
|
21412
|
+
version: 8,
|
|
21413
|
+
status: "active"
|
|
21414
|
+
},
|
|
21415
|
+
policy: {
|
|
21416
|
+
version: 8,
|
|
21417
|
+
status: "active",
|
|
21418
|
+
region_pin: "eu",
|
|
21419
|
+
allowed_providers: [
|
|
21420
|
+
"bedrock"
|
|
21421
|
+
],
|
|
21422
|
+
denied_models: [
|
|
21423
|
+
"claude-opus"
|
|
21424
|
+
],
|
|
21425
|
+
model_substitutions: null,
|
|
21426
|
+
default_models: null,
|
|
21427
|
+
max_attempts: null,
|
|
21428
|
+
model_classes: null,
|
|
21429
|
+
operation_classes: null,
|
|
21430
|
+
features: null
|
|
21431
|
+
},
|
|
21432
|
+
inherited: false,
|
|
21433
|
+
constraints: {
|
|
21434
|
+
region_pin: "eu",
|
|
21435
|
+
allowed_providers: [
|
|
21436
|
+
"bedrock"
|
|
21437
|
+
],
|
|
21438
|
+
denied_models: [
|
|
21439
|
+
"claude-opus"
|
|
21440
|
+
],
|
|
21441
|
+
platform_provider_floor: [
|
|
21442
|
+
"bedrock"
|
|
21443
|
+
]
|
|
21444
|
+
},
|
|
21445
|
+
operation_classes: {
|
|
21446
|
+
extraction: {
|
|
21447
|
+
class: "standard",
|
|
21448
|
+
source: "builtin",
|
|
21449
|
+
overridden: false
|
|
21450
|
+
}
|
|
21451
|
+
},
|
|
21452
|
+
status: {
|
|
21453
|
+
satisfiable: true,
|
|
21454
|
+
unroutable_operations: [],
|
|
21455
|
+
advisory_warnings: []
|
|
21456
|
+
}
|
|
21457
|
+
}
|
|
21458
|
+
}
|
|
21459
|
+
}
|
|
21460
|
+
},
|
|
21461
|
+
"400": {
|
|
21462
|
+
description: "The policy was refused and nothing was stored. Same error contract as PUT.",
|
|
21463
|
+
content: {
|
|
21464
|
+
"application/json": {
|
|
21465
|
+
example: {
|
|
21466
|
+
error: "policy_unsatisfiable",
|
|
21467
|
+
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.",
|
|
21468
|
+
unroutable_operations: [
|
|
21469
|
+
"extraction"
|
|
21470
|
+
],
|
|
21471
|
+
advisory_warnings: []
|
|
21472
|
+
}
|
|
21473
|
+
}
|
|
21474
|
+
}
|
|
21475
|
+
},
|
|
21476
|
+
"401": {
|
|
21477
|
+
$ref: "#/components/responses/Unauthorized"
|
|
21478
|
+
},
|
|
21479
|
+
"403": {
|
|
21480
|
+
$ref: "#/components/responses/Forbidden"
|
|
21481
|
+
},
|
|
21482
|
+
"429": {
|
|
21483
|
+
$ref: "#/components/responses/RateLimitExceeded"
|
|
21484
|
+
}
|
|
21485
|
+
}
|
|
21486
|
+
}
|
|
21487
|
+
},
|
|
21488
|
+
"/v1/ai/models": {
|
|
21489
|
+
get: {
|
|
21490
|
+
operationId: "listAiModels",
|
|
21491
|
+
summary: "List models and model classes with reachability",
|
|
21492
|
+
tags: [
|
|
21493
|
+
"AI Policy"
|
|
21494
|
+
],
|
|
21495
|
+
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',
|
|
21496
|
+
responses: {
|
|
21497
|
+
"200": {
|
|
21498
|
+
description: "The annotated model catalog, class definitions, enforced constraints, and reachability counts.",
|
|
21499
|
+
content: {
|
|
21500
|
+
"application/json": {
|
|
21501
|
+
example: {
|
|
21502
|
+
models: [
|
|
21503
|
+
{
|
|
21504
|
+
model: "claude-sonnet",
|
|
21505
|
+
tier: "default",
|
|
21506
|
+
capabilities: [
|
|
21507
|
+
"generate",
|
|
21508
|
+
"tool_use"
|
|
21509
|
+
],
|
|
21510
|
+
reachable: true,
|
|
21511
|
+
reason: "allowed",
|
|
21512
|
+
deployments: [
|
|
21513
|
+
{
|
|
21514
|
+
provider: "bedrock",
|
|
21515
|
+
region: "eu",
|
|
21516
|
+
custom_endpoint: false,
|
|
21517
|
+
reachable: true,
|
|
21518
|
+
reason: "allowed"
|
|
21519
|
+
}
|
|
21520
|
+
]
|
|
21521
|
+
},
|
|
21522
|
+
{
|
|
21523
|
+
model: "claude-opus",
|
|
21524
|
+
tier: "powerful",
|
|
21525
|
+
capabilities: [
|
|
21526
|
+
"generate",
|
|
21527
|
+
"tool_use"
|
|
21528
|
+
],
|
|
21529
|
+
reachable: false,
|
|
21530
|
+
reason: "model_denied",
|
|
21531
|
+
deployments: [
|
|
21532
|
+
{
|
|
21533
|
+
provider: "bedrock",
|
|
21534
|
+
region: "eu",
|
|
21535
|
+
custom_endpoint: false,
|
|
21536
|
+
reachable: false,
|
|
21537
|
+
reason: "model_denied"
|
|
21538
|
+
}
|
|
21539
|
+
]
|
|
21540
|
+
}
|
|
21541
|
+
],
|
|
21542
|
+
classes: [
|
|
21543
|
+
{
|
|
21544
|
+
name: "standard",
|
|
21545
|
+
description: "General-purpose extraction lineage",
|
|
21546
|
+
source: "builtin",
|
|
21547
|
+
required_capabilities: [],
|
|
21548
|
+
fallback: "chain",
|
|
21549
|
+
chain: [
|
|
21550
|
+
{
|
|
21551
|
+
model: "claude-sonnet",
|
|
21552
|
+
reachable: true,
|
|
21553
|
+
reason: "allowed"
|
|
21554
|
+
}
|
|
21555
|
+
],
|
|
21556
|
+
reachable: true
|
|
21557
|
+
}
|
|
21558
|
+
],
|
|
21559
|
+
constraints: {
|
|
21560
|
+
region_pin: "eu",
|
|
21561
|
+
allowed_providers: [
|
|
21562
|
+
"bedrock"
|
|
21563
|
+
],
|
|
21564
|
+
denied_models: [
|
|
21565
|
+
"claude-opus"
|
|
21566
|
+
],
|
|
21567
|
+
platform_provider_floor: [
|
|
21568
|
+
"bedrock"
|
|
21569
|
+
]
|
|
21570
|
+
},
|
|
21571
|
+
counts: {
|
|
21572
|
+
total: 18,
|
|
21573
|
+
reachable: 9
|
|
21574
|
+
}
|
|
21575
|
+
}
|
|
21576
|
+
}
|
|
21577
|
+
}
|
|
21578
|
+
},
|
|
21579
|
+
"400": {
|
|
21580
|
+
description: "The API key is not scoped to a single workspace.",
|
|
21581
|
+
content: {
|
|
21582
|
+
"application/json": {
|
|
21583
|
+
example: {
|
|
21584
|
+
error: "workspace_scope_required",
|
|
21585
|
+
message: "A workspace-scoped API key is required to read or change AI policy."
|
|
21586
|
+
}
|
|
21587
|
+
}
|
|
21588
|
+
}
|
|
19808
21589
|
},
|
|
19809
21590
|
"401": {
|
|
19810
21591
|
$ref: "#/components/responses/Unauthorized"
|
|
19811
21592
|
},
|
|
19812
|
-
"
|
|
19813
|
-
$ref: "#/components/responses/
|
|
21593
|
+
"429": {
|
|
21594
|
+
$ref: "#/components/responses/RateLimitExceeded"
|
|
19814
21595
|
}
|
|
19815
21596
|
}
|
|
19816
21597
|
}
|
|
19817
21598
|
},
|
|
19818
|
-
"/v1/
|
|
21599
|
+
"/v1/ai/operations": {
|
|
19819
21600
|
get: {
|
|
21601
|
+
operationId: "listAiOperations",
|
|
21602
|
+
summary: "List the operation catalog",
|
|
19820
21603
|
tags: [
|
|
19821
|
-
"
|
|
19822
|
-
],
|
|
19823
|
-
summary: "Get billing (auto top-up) settings",
|
|
19824
|
-
operationId: "getBillingSettings",
|
|
19825
|
-
security: [
|
|
19826
|
-
{
|
|
19827
|
-
BearerAuth: []
|
|
19828
|
-
}
|
|
21604
|
+
"AI Policy"
|
|
19829
21605
|
],
|
|
21606
|
+
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
21607
|
responses: {
|
|
19831
21608
|
"200": {
|
|
19832
|
-
description: "
|
|
21609
|
+
description: "The operation catalog with per-operation class, gating, and routability.",
|
|
21610
|
+
content: {
|
|
21611
|
+
"application/json": {
|
|
21612
|
+
example: {
|
|
21613
|
+
operations: [
|
|
21614
|
+
{
|
|
21615
|
+
operation_type: "extraction",
|
|
21616
|
+
class: "standard",
|
|
21617
|
+
source: "builtin",
|
|
21618
|
+
overridden: false,
|
|
21619
|
+
gating: "registered",
|
|
21620
|
+
routable: true
|
|
21621
|
+
},
|
|
21622
|
+
{
|
|
21623
|
+
operation_type: "document_ocr",
|
|
21624
|
+
class: "ocr",
|
|
21625
|
+
source: "builtin",
|
|
21626
|
+
overridden: false,
|
|
21627
|
+
gating: "advisory",
|
|
21628
|
+
routable: false,
|
|
21629
|
+
reason: "no_compliant_route"
|
|
21630
|
+
}
|
|
21631
|
+
],
|
|
21632
|
+
counts: {
|
|
21633
|
+
total: 60,
|
|
21634
|
+
overridden: 1,
|
|
21635
|
+
registered: 8,
|
|
21636
|
+
advisory: 1
|
|
21637
|
+
}
|
|
21638
|
+
}
|
|
21639
|
+
}
|
|
21640
|
+
}
|
|
21641
|
+
},
|
|
21642
|
+
"400": {
|
|
21643
|
+
description: "The API key is not scoped to a single workspace.",
|
|
21644
|
+
content: {
|
|
21645
|
+
"application/json": {
|
|
21646
|
+
example: {
|
|
21647
|
+
error: "workspace_scope_required",
|
|
21648
|
+
message: "A workspace-scoped API key is required to read or change AI policy."
|
|
21649
|
+
}
|
|
21650
|
+
}
|
|
21651
|
+
}
|
|
21652
|
+
},
|
|
21653
|
+
"401": {
|
|
21654
|
+
$ref: "#/components/responses/Unauthorized"
|
|
21655
|
+
},
|
|
21656
|
+
"429": {
|
|
21657
|
+
$ref: "#/components/responses/RateLimitExceeded"
|
|
19833
21658
|
}
|
|
19834
21659
|
}
|
|
19835
|
-
}
|
|
19836
|
-
|
|
21660
|
+
}
|
|
21661
|
+
},
|
|
21662
|
+
"/v1/ai/routes:explain": {
|
|
21663
|
+
post: {
|
|
21664
|
+
operationId: "explainAiRoute",
|
|
21665
|
+
summary: "Dry-run a routing decision",
|
|
19837
21666
|
tags: [
|
|
19838
|
-
"
|
|
19839
|
-
],
|
|
19840
|
-
summary: "Update billing (auto top-up) settings",
|
|
19841
|
-
operationId: "updateBillingSettings",
|
|
19842
|
-
security: [
|
|
19843
|
-
{
|
|
19844
|
-
BearerAuth: []
|
|
19845
|
-
}
|
|
21667
|
+
"AI Policy"
|
|
19846
21668
|
],
|
|
21669
|
+
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
21670
|
requestBody: {
|
|
19848
21671
|
required: true,
|
|
19849
21672
|
content: {
|
|
19850
21673
|
"application/json": {
|
|
19851
21674
|
schema: {
|
|
19852
21675
|
type: "object",
|
|
21676
|
+
required: [
|
|
21677
|
+
"operation_type"
|
|
21678
|
+
],
|
|
19853
21679
|
properties: {
|
|
19854
|
-
|
|
19855
|
-
type: "
|
|
21680
|
+
operation_type: {
|
|
21681
|
+
type: "string",
|
|
21682
|
+
maxLength: 120,
|
|
21683
|
+
description: "The operation to route, for example extraction or classification."
|
|
19856
21684
|
},
|
|
19857
|
-
|
|
19858
|
-
type: "
|
|
19859
|
-
|
|
21685
|
+
model: {
|
|
21686
|
+
type: "string",
|
|
21687
|
+
maxLength: 120,
|
|
21688
|
+
description: "Optional. Pin a specific logical model."
|
|
19860
21689
|
},
|
|
19861
|
-
|
|
19862
|
-
type: "
|
|
19863
|
-
|
|
21690
|
+
class: {
|
|
21691
|
+
type: "string",
|
|
21692
|
+
maxLength: 120,
|
|
21693
|
+
description: "Optional. Pin a specific model class."
|
|
19864
21694
|
}
|
|
19865
21695
|
}
|
|
21696
|
+
},
|
|
21697
|
+
example: {
|
|
21698
|
+
operation_type: "extraction",
|
|
21699
|
+
model: "claude-sonnet",
|
|
21700
|
+
class: "standard"
|
|
19866
21701
|
}
|
|
19867
21702
|
}
|
|
19868
21703
|
}
|
|
19869
21704
|
},
|
|
19870
21705
|
responses: {
|
|
19871
|
-
"
|
|
19872
|
-
description: "
|
|
21706
|
+
"201": {
|
|
21707
|
+
description: "The routing plan, or a fail-closed explanation when nothing is routable.",
|
|
21708
|
+
content: {
|
|
21709
|
+
"application/json": {
|
|
21710
|
+
examples: {
|
|
21711
|
+
routable: {
|
|
21712
|
+
summary: "An ordered candidate chain exists",
|
|
21713
|
+
value: {
|
|
21714
|
+
operation_type: "extraction",
|
|
21715
|
+
routable: true,
|
|
21716
|
+
class: "standard",
|
|
21717
|
+
fallback_scope: "class_chain",
|
|
21718
|
+
candidates: [
|
|
21719
|
+
{
|
|
21720
|
+
model: "claude-sonnet",
|
|
21721
|
+
provider: "bedrock",
|
|
21722
|
+
region: "eu",
|
|
21723
|
+
custom_endpoint: false
|
|
21724
|
+
}
|
|
21725
|
+
],
|
|
21726
|
+
rejected: [
|
|
21727
|
+
{
|
|
21728
|
+
model: "gpt-balanced",
|
|
21729
|
+
provider: "openai",
|
|
21730
|
+
region: "global",
|
|
21731
|
+
reason: "provider_not_allowed"
|
|
21732
|
+
}
|
|
21733
|
+
]
|
|
21734
|
+
}
|
|
21735
|
+
},
|
|
21736
|
+
fail_closed: {
|
|
21737
|
+
summary: "The policy permits no route for this operation",
|
|
21738
|
+
value: {
|
|
21739
|
+
operation_type: "document_ocr",
|
|
21740
|
+
routable: false,
|
|
21741
|
+
reason: "no_compliant_route",
|
|
21742
|
+
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.",
|
|
21743
|
+
candidates: [],
|
|
21744
|
+
rejected: [
|
|
21745
|
+
{
|
|
21746
|
+
model: "mistral-ocr",
|
|
21747
|
+
provider: "mistral",
|
|
21748
|
+
region: "global",
|
|
21749
|
+
reason: "provider_not_allowed"
|
|
21750
|
+
}
|
|
21751
|
+
]
|
|
21752
|
+
}
|
|
21753
|
+
}
|
|
21754
|
+
}
|
|
21755
|
+
}
|
|
21756
|
+
}
|
|
21757
|
+
},
|
|
21758
|
+
"400": {
|
|
21759
|
+
description: "The request body is invalid or the key is not workspace-scoped.",
|
|
21760
|
+
content: {
|
|
21761
|
+
"application/json": {
|
|
21762
|
+
example: {
|
|
21763
|
+
error: "workspace_scope_required",
|
|
21764
|
+
message: "A workspace-scoped API key is required to read or change AI policy."
|
|
21765
|
+
}
|
|
21766
|
+
}
|
|
21767
|
+
}
|
|
21768
|
+
},
|
|
21769
|
+
"401": {
|
|
21770
|
+
$ref: "#/components/responses/Unauthorized"
|
|
21771
|
+
},
|
|
21772
|
+
"429": {
|
|
21773
|
+
$ref: "#/components/responses/RateLimitExceeded"
|
|
19873
21774
|
}
|
|
19874
21775
|
}
|
|
19875
21776
|
}
|
|
19876
21777
|
},
|
|
19877
|
-
"/v1/
|
|
19878
|
-
|
|
21778
|
+
"/v1/ai/policy/history": {
|
|
21779
|
+
get: {
|
|
21780
|
+
operationId: "getAiPolicyHistory",
|
|
21781
|
+
summary: "Get the policy version history",
|
|
19879
21782
|
tags: [
|
|
19880
|
-
"
|
|
21783
|
+
"AI Policy"
|
|
19881
21784
|
],
|
|
19882
|
-
|
|
19883
|
-
|
|
19884
|
-
operationId: "triggerBillingTopup",
|
|
19885
|
-
security: [
|
|
21785
|
+
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',
|
|
21786
|
+
parameters: [
|
|
19886
21787
|
{
|
|
19887
|
-
|
|
21788
|
+
name: "limit",
|
|
21789
|
+
in: "query",
|
|
21790
|
+
schema: {
|
|
21791
|
+
type: "integer",
|
|
21792
|
+
minimum: 1,
|
|
21793
|
+
maximum: 200,
|
|
21794
|
+
default: 50
|
|
21795
|
+
},
|
|
21796
|
+
description: "Maximum number of versions to return (1-200)."
|
|
19888
21797
|
}
|
|
19889
21798
|
],
|
|
19890
21799
|
responses: {
|
|
19891
21800
|
"200": {
|
|
19892
|
-
description: "
|
|
21801
|
+
description: "Stored policy versions, newest first.",
|
|
21802
|
+
content: {
|
|
21803
|
+
"application/json": {
|
|
21804
|
+
example: {
|
|
21805
|
+
versions: [
|
|
21806
|
+
{
|
|
21807
|
+
version: 2,
|
|
21808
|
+
status: "active",
|
|
21809
|
+
changed: [
|
|
21810
|
+
"region_pin",
|
|
21811
|
+
"denied_models"
|
|
21812
|
+
],
|
|
21813
|
+
changed_by: "api_key:c1a2b3d4-5e6f-4a7b-8c9d-0e1f2a3b4c5d",
|
|
21814
|
+
change_reason: "Contractual EU residency",
|
|
21815
|
+
changed_at: "2026-07-28T14:02:11.000Z",
|
|
21816
|
+
policy: {
|
|
21817
|
+
version: 2,
|
|
21818
|
+
status: "active",
|
|
21819
|
+
region_pin: "eu",
|
|
21820
|
+
allowed_providers: [
|
|
21821
|
+
"bedrock"
|
|
21822
|
+
],
|
|
21823
|
+
denied_models: [
|
|
21824
|
+
"claude-opus"
|
|
21825
|
+
],
|
|
21826
|
+
model_substitutions: null,
|
|
21827
|
+
default_models: null,
|
|
21828
|
+
max_attempts: null,
|
|
21829
|
+
model_classes: null,
|
|
21830
|
+
operation_classes: null,
|
|
21831
|
+
features: null
|
|
21832
|
+
}
|
|
21833
|
+
},
|
|
21834
|
+
{
|
|
21835
|
+
version: 1,
|
|
21836
|
+
status: "active",
|
|
21837
|
+
changed: [
|
|
21838
|
+
"allowed_providers"
|
|
21839
|
+
],
|
|
21840
|
+
changed_by: null,
|
|
21841
|
+
change_reason: null,
|
|
21842
|
+
changed_at: null,
|
|
21843
|
+
policy: {
|
|
21844
|
+
version: 1,
|
|
21845
|
+
status: "active",
|
|
21846
|
+
region_pin: null,
|
|
21847
|
+
allowed_providers: [
|
|
21848
|
+
"bedrock"
|
|
21849
|
+
],
|
|
21850
|
+
denied_models: null,
|
|
21851
|
+
model_substitutions: null,
|
|
21852
|
+
default_models: null,
|
|
21853
|
+
max_attempts: null,
|
|
21854
|
+
model_classes: null,
|
|
21855
|
+
operation_classes: null,
|
|
21856
|
+
features: null
|
|
21857
|
+
}
|
|
21858
|
+
}
|
|
21859
|
+
],
|
|
21860
|
+
total: 2,
|
|
21861
|
+
limit: 50
|
|
21862
|
+
}
|
|
21863
|
+
}
|
|
21864
|
+
}
|
|
19893
21865
|
},
|
|
19894
|
-
"
|
|
19895
|
-
description: "
|
|
21866
|
+
"400": {
|
|
21867
|
+
description: "The API key is not scoped to a single workspace.",
|
|
21868
|
+
content: {
|
|
21869
|
+
"application/json": {
|
|
21870
|
+
example: {
|
|
21871
|
+
error: "workspace_scope_required",
|
|
21872
|
+
message: "A workspace-scoped API key is required to read or change AI policy."
|
|
21873
|
+
}
|
|
21874
|
+
}
|
|
21875
|
+
}
|
|
21876
|
+
},
|
|
21877
|
+
"401": {
|
|
21878
|
+
$ref: "#/components/responses/Unauthorized"
|
|
21879
|
+
},
|
|
21880
|
+
"429": {
|
|
21881
|
+
$ref: "#/components/responses/RateLimitExceeded"
|
|
19896
21882
|
}
|
|
19897
21883
|
}
|
|
19898
21884
|
}
|
|
@@ -19905,6 +21891,12 @@ var openapi_default = {
|
|
|
19905
21891
|
scheme: "bearer",
|
|
19906
21892
|
bearerFormat: "tlnc_*",
|
|
19907
21893
|
description: "API key with `tlnc_` prefix. Pass as `Authorization: Bearer tlnc_live_...`.\n"
|
|
21894
|
+
},
|
|
21895
|
+
OAuthBearerAuth: {
|
|
21896
|
+
type: "http",
|
|
21897
|
+
scheme: "bearer",
|
|
21898
|
+
bearerFormat: "JWT",
|
|
21899
|
+
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
21900
|
}
|
|
19909
21901
|
},
|
|
19910
21902
|
parameters: {
|
|
@@ -20956,6 +22948,11 @@ var openapi_default = {
|
|
|
20956
22948
|
"error"
|
|
20957
22949
|
]
|
|
20958
22950
|
},
|
|
22951
|
+
error: {
|
|
22952
|
+
type: "string",
|
|
22953
|
+
description: "Human-readable failure message. Present ONLY when status is `error`; omitted otherwise.\n",
|
|
22954
|
+
example: "Extraction failed"
|
|
22955
|
+
},
|
|
20959
22956
|
source: {
|
|
20960
22957
|
type: "object",
|
|
20961
22958
|
properties: {
|
|
@@ -20973,6 +22970,89 @@ var openapi_default = {
|
|
|
20973
22970
|
}
|
|
20974
22971
|
}
|
|
20975
22972
|
},
|
|
22973
|
+
field_count: {
|
|
22974
|
+
type: "integer",
|
|
22975
|
+
description: "Number of fields captured from the document. 0 until extraction completes.",
|
|
22976
|
+
example: 42
|
|
22977
|
+
},
|
|
22978
|
+
triage: {
|
|
22979
|
+
type: [
|
|
22980
|
+
"object",
|
|
22981
|
+
"null"
|
|
22982
|
+
],
|
|
22983
|
+
description: "Compliance triage signals for the document. `null` until triage has run.\n",
|
|
22984
|
+
properties: {
|
|
22985
|
+
sensitivity: {
|
|
22986
|
+
type: [
|
|
22987
|
+
"string",
|
|
22988
|
+
"null"
|
|
22989
|
+
],
|
|
22990
|
+
enum: [
|
|
22991
|
+
"public",
|
|
22992
|
+
"internal",
|
|
22993
|
+
"restricted",
|
|
22994
|
+
null
|
|
22995
|
+
],
|
|
22996
|
+
description: "Sensitivity tier.",
|
|
22997
|
+
example: "internal"
|
|
22998
|
+
},
|
|
22999
|
+
department: {
|
|
23000
|
+
type: [
|
|
23001
|
+
"string",
|
|
23002
|
+
"null"
|
|
23003
|
+
],
|
|
23004
|
+
example: "finance"
|
|
23005
|
+
},
|
|
23006
|
+
jurisdiction: {
|
|
23007
|
+
type: [
|
|
23008
|
+
"string",
|
|
23009
|
+
"null"
|
|
23010
|
+
],
|
|
23011
|
+
description: "Two-letter country code.",
|
|
23012
|
+
example: "DE"
|
|
23013
|
+
},
|
|
23014
|
+
pii_detected: {
|
|
23015
|
+
type: "boolean",
|
|
23016
|
+
description: "True when at least one PII category was detected.",
|
|
23017
|
+
example: true
|
|
23018
|
+
},
|
|
23019
|
+
pii_categories: {
|
|
23020
|
+
type: [
|
|
23021
|
+
"array",
|
|
23022
|
+
"null"
|
|
23023
|
+
],
|
|
23024
|
+
items: {
|
|
23025
|
+
type: "string"
|
|
23026
|
+
},
|
|
23027
|
+
description: "Detected PII categories. `null` until the compliance pass has run.",
|
|
23028
|
+
example: [
|
|
23029
|
+
"name",
|
|
23030
|
+
"email"
|
|
23031
|
+
]
|
|
23032
|
+
},
|
|
23033
|
+
regulated_data: {
|
|
23034
|
+
type: "boolean",
|
|
23035
|
+
description: "Whether the document likely contains regulated data.",
|
|
23036
|
+
example: false
|
|
23037
|
+
},
|
|
23038
|
+
confidentiality_marking: {
|
|
23039
|
+
type: [
|
|
23040
|
+
"string",
|
|
23041
|
+
"null"
|
|
23042
|
+
],
|
|
23043
|
+
description: "Confidentiality marking found in the document, if any.",
|
|
23044
|
+
example: "Vertraulich"
|
|
23045
|
+
}
|
|
23046
|
+
}
|
|
23047
|
+
},
|
|
23048
|
+
original_path: {
|
|
23049
|
+
type: [
|
|
23050
|
+
"string",
|
|
23051
|
+
"null"
|
|
23052
|
+
],
|
|
23053
|
+
description: "Folder path of the file at its source, when ingested from a connector.",
|
|
23054
|
+
example: "/invoices/2026/04"
|
|
23055
|
+
},
|
|
20976
23056
|
batch_id: {
|
|
20977
23057
|
type: "string",
|
|
20978
23058
|
description: "Caller grouping key supplied at ingest (batch_id). Present ONLY when the document was tagged; omitted otherwise (backwards-compatible).\n",
|
|
@@ -21006,6 +23086,43 @@ var openapi_default = {
|
|
|
21006
23086
|
format: "uuid",
|
|
21007
23087
|
example: "d1a2b3c4-5678-9abc-def0-1234567890ab"
|
|
21008
23088
|
},
|
|
23089
|
+
processing_log: {
|
|
23090
|
+
type: "array",
|
|
23091
|
+
description: "Per-stage pipeline timing log (OCR, classify, extract). Present ONLY when at least one stage has been recorded; omitted otherwise.\n",
|
|
23092
|
+
items: {
|
|
23093
|
+
type: "object",
|
|
23094
|
+
required: [
|
|
23095
|
+
"step",
|
|
23096
|
+
"status",
|
|
23097
|
+
"started_at"
|
|
23098
|
+
],
|
|
23099
|
+
properties: {
|
|
23100
|
+
step: {
|
|
23101
|
+
type: "string",
|
|
23102
|
+
example: "ocr"
|
|
23103
|
+
},
|
|
23104
|
+
status: {
|
|
23105
|
+
type: "string",
|
|
23106
|
+
example: "completed"
|
|
23107
|
+
},
|
|
23108
|
+
started_at: {
|
|
23109
|
+
type: "string",
|
|
23110
|
+
format: "date-time"
|
|
23111
|
+
},
|
|
23112
|
+
completed_at: {
|
|
23113
|
+
type: "string",
|
|
23114
|
+
format: "date-time"
|
|
23115
|
+
},
|
|
23116
|
+
duration_ms: {
|
|
23117
|
+
type: "integer",
|
|
23118
|
+
example: 3120
|
|
23119
|
+
},
|
|
23120
|
+
detail: {
|
|
23121
|
+
type: "string"
|
|
23122
|
+
}
|
|
23123
|
+
}
|
|
23124
|
+
}
|
|
23125
|
+
},
|
|
21009
23126
|
created_at: {
|
|
21010
23127
|
type: "string",
|
|
21011
23128
|
format: "date-time",
|
|
@@ -21020,6 +23137,12 @@ var openapi_default = {
|
|
|
21020
23137
|
extractions: {
|
|
21021
23138
|
type: "string"
|
|
21022
23139
|
},
|
|
23140
|
+
fields: {
|
|
23141
|
+
type: "string"
|
|
23142
|
+
},
|
|
23143
|
+
lineage: {
|
|
23144
|
+
type: "string"
|
|
23145
|
+
},
|
|
21023
23146
|
dashboard: {
|
|
21024
23147
|
type: "string",
|
|
21025
23148
|
format: "uri"
|
|
@@ -27253,7 +29376,9 @@ var API_NAV_SECTIONS = [
|
|
|
27253
29376
|
] },
|
|
27254
29377
|
{ id: "ask", label: "Ask", children: [
|
|
27255
29378
|
{ id: "post-ask", label: "POST /v1/ask" },
|
|
29379
|
+
{ id: "ask-scoping", label: "Scope, Models & Access" },
|
|
27256
29380
|
{ id: "ask-results", label: "Poll & Results" },
|
|
29381
|
+
{ id: "ask-streaming", label: "Streaming" },
|
|
27257
29382
|
{ id: "ask-citations-verification", label: "Citations & Verification" }
|
|
27258
29383
|
] },
|
|
27259
29384
|
{ id: "documents", label: "Documents", children: [
|
|
@@ -27263,7 +29388,9 @@ var API_NAV_SECTIONS = [
|
|
|
27263
29388
|
{ id: "get-document-lineage", label: "Get Document Lineage" },
|
|
27264
29389
|
{ id: "delete-document", label: "Delete Document" },
|
|
27265
29390
|
{ id: "convert-document", label: "Convert to Markdown" },
|
|
27266
|
-
{ id: "inject-customer-metadata", label: "Inject Metadata" }
|
|
29391
|
+
{ id: "inject-customer-metadata", label: "Inject Metadata" },
|
|
29392
|
+
{ id: "get-document-claims", label: "Document Claims" },
|
|
29393
|
+
{ id: "upload-session", label: "Browser-Handoff Upload" }
|
|
27267
29394
|
] },
|
|
27268
29395
|
{ id: "extractions", label: "Extractions", children: [
|
|
27269
29396
|
{ id: "list-extractions", label: "List Extractions" },
|
|
@@ -27310,7 +29437,8 @@ var API_NAV_SECTIONS = [
|
|
|
27310
29437
|
{ id: "list-webhook-configs", label: "List Configs" },
|
|
27311
29438
|
{ id: "create-webhook-config", label: "Create Config" },
|
|
27312
29439
|
{ id: "manage-webhook-config", label: "Manage Config" },
|
|
27313
|
-
{ id: "webhook-reference-endpoints", label: "Reference Endpoints" }
|
|
29440
|
+
{ id: "webhook-reference-endpoints", label: "Reference Endpoints" },
|
|
29441
|
+
{ id: "events-feed", label: "Event Feed" }
|
|
27314
29442
|
] },
|
|
27315
29443
|
{ id: "resolutions", label: "Resolutions", children: [
|
|
27316
29444
|
{ id: "list-resolutions", label: "List Resolutions" },
|
|
@@ -27352,7 +29480,7 @@ var API_NAV_SECTIONS = [
|
|
|
27352
29480
|
{ id: "structuring", label: "Structuring", children: [
|
|
27353
29481
|
{ id: "list-structuring-checks", label: "List Checks" },
|
|
27354
29482
|
{ id: "create-structuring-check", label: "Create Check" },
|
|
27355
|
-
{ id: "get-structuring-check", label: "
|
|
29483
|
+
{ id: "get-structuring-check", label: "Update / Delete Check" },
|
|
27356
29484
|
{ id: "list-structuring-gates", label: "List Gates" },
|
|
27357
29485
|
{ id: "create-structuring-gate", label: "Create Gate" },
|
|
27358
29486
|
{ id: "get-structuring-gate", label: "Get / Update / Delete Gate" },
|
|
@@ -27386,6 +29514,8 @@ var API_NAV_SECTIONS = [
|
|
|
27386
29514
|
{ id: "agent", label: "Agent", children: [
|
|
27387
29515
|
{ id: "agent-context", label: "Get Workspace Context" },
|
|
27388
29516
|
{ id: "agent-tools", label: "List Agent Tools" },
|
|
29517
|
+
{ id: "agent-invoke-tool", label: "Invoke a Tool" },
|
|
29518
|
+
{ id: "agent-conversations", label: "Conversations" },
|
|
27389
29519
|
{ id: "agent-query", label: "Agent Query (Legacy)" }
|
|
27390
29520
|
] },
|
|
27391
29521
|
{ id: "matching", label: "Matching", children: [
|
|
@@ -27507,6 +29637,7 @@ var API_NAV_SECTIONS = [
|
|
|
27507
29637
|
{ id: "billing-settings", label: "Settings" },
|
|
27508
29638
|
{ id: "billing-topup", label: "Auto Top-Up" },
|
|
27509
29639
|
{ id: "billing-upgrade-link", label: "Upgrade Link" },
|
|
29640
|
+
{ id: "billing-packs", label: "Credit Packs" },
|
|
27510
29641
|
{ id: "cost-headers", label: "Cost Headers" }
|
|
27511
29642
|
] },
|
|
27512
29643
|
{ id: "usage", label: "Usage", children: [
|
|
@@ -27517,6 +29648,14 @@ var API_NAV_SECTIONS = [
|
|
|
27517
29648
|
{ id: "get-account", label: "Account Snapshot" },
|
|
27518
29649
|
{ id: "account-keys", label: "Manage API Keys" }
|
|
27519
29650
|
] },
|
|
29651
|
+
{ id: "ai", label: "AI Policy", children: [
|
|
29652
|
+
{ id: "ai-policy-overview", label: "AI Policy Overview" },
|
|
29653
|
+
{ id: "get-ai-policy", label: "Read the Policy" },
|
|
29654
|
+
{ id: "update-ai-policy", label: "Update the Policy" },
|
|
29655
|
+
{ id: "ai-models-operations", label: "Models & Operations" },
|
|
29656
|
+
{ id: "explain-ai-route", label: "Explain a Route" },
|
|
29657
|
+
{ id: "ai-policy-history", label: "Policy History" }
|
|
29658
|
+
] },
|
|
27520
29659
|
{ id: "nodes", label: "Node Jobs", children: [
|
|
27521
29660
|
{ id: "node-jobs", label: "Node Jobs" }
|
|
27522
29661
|
] },
|
|
@@ -27692,7 +29831,8 @@ var PLATFORM_NAV_SECTIONS = [
|
|
|
27692
29831
|
{ id: "workspace-settings", label: "Workspace Settings", children: [
|
|
27693
29832
|
{ id: "shared-dialects", label: "Shared Dialects" },
|
|
27694
29833
|
{ id: "reference-primitives", label: "Reference Primitives" },
|
|
27695
|
-
{ id: "change-review", label: "Change Review" }
|
|
29834
|
+
{ id: "change-review", label: "Change Review" },
|
|
29835
|
+
{ id: "ai-policy", label: "AI Policy" }
|
|
27696
29836
|
] },
|
|
27697
29837
|
{ id: "enterprise-archive", label: "Enterprise Archive", children: [
|
|
27698
29838
|
{ id: "archive-overview", label: "Archive Overview" },
|
|
@@ -27755,6 +29895,7 @@ var API_SECTION_META = [
|
|
|
27755
29895
|
{ 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
29896
|
{ 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
29897
|
{ id: "billing", title: "Billing API", description: "Billing settings, auto top-up for AI agents, and cost response headers on extraction requests." },
|
|
29898
|
+
{ 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
29899
|
{ id: "errors-rate-limits", title: "Errors & Rate Limits", description: "Error response format, error codes, rate limit tiers by plan, and rate limit headers." }
|
|
27759
29900
|
];
|
|
27760
29901
|
var PLATFORM_SECTION_META = [
|