@talonic/docs 0.21.7 → 0.21.10
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 +1522 -82
- package/dist/index.d.ts +1 -1
- package/dist/index.js +225 -9
- package/dist/index.js.map +1 -1
- package/dist/seo.d.ts +1 -1
- package/dist/seo.js +531 -6
- package/openapi.json +509 -4
- package/package.json +1 -1
- package/dist/tailwind-preset.d.cts +0 -45
- package/dist/tailwind-preset.d.ts +0 -45
package/openapi.json
CHANGED
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
},
|
|
60
60
|
{
|
|
61
61
|
"name": "Delivery",
|
|
62
|
-
"description": "Outbound delivery. Configure destinations (six live connectors: webhook, sftp,\ns3, azure_blob, google_drive, onedrive), create bindings that join signal filters\nto deliverable types + destinations + serializers, and inspect the\nhistory/DLQ/events log. Every delivery is at-least-once with an idempotency key\non the wire.\n\n## Webhook Contract\n\n**Event payload:**\n```json\n{\n \"event\": {\n \"event_type\": \"document.extracted\",\n \"event_id\": \"42\",\n \"binding_id\": \"a1b2c3d4-e5f6-7890-abcd-ef1234567890\",\n \"idempotency_key\": \"c9f3a7e1b2d4f6a8e0c2d4f6a8e0c2d4\",\n \"attempt\": 1,\n \"delivered_at\": \"2026-04-25T14:30:00.000Z\"\n },\n \"payload\": { \"document_id\": \"...\", \"data\": { \"...extracted fields...\" } }\n}\n```\n\n**Event types:** `document.extracted
|
|
62
|
+
"description": "Outbound delivery. Configure destinations (six live connectors: webhook, sftp,\ns3, azure_blob, google_drive, onedrive), create bindings that join signal filters\nto deliverable types + destinations + serializers, and inspect the\nhistory/DLQ/events log. Every delivery is at-least-once with an idempotency key\non the wire.\n\n## Webhook Contract\n\n**Event payload:**\n```json\n{\n \"event\": {\n \"event_type\": \"document.extracted\",\n \"event_id\": \"42\",\n \"binding_id\": \"a1b2c3d4-e5f6-7890-abcd-ef1234567890\",\n \"idempotency_key\": \"c9f3a7e1b2d4f6a8e0c2d4f6a8e0c2d4\",\n \"attempt\": 1,\n \"delivered_at\": \"2026-04-25T14:30:00.000Z\"\n },\n \"payload\": { \"document_id\": \"...\", \"data\": { \"...extracted fields...\" } }\n}\n```\n\n**Event types:** `document.extracted` (deliver with the `document.capture`\ndeliverable for the raw field map; its payload gains optional `metadata`/\n`batch_id` read from the document's own `client_metadata`/`client_batch_id`\ncolumns — document-scoped, not request-scoped, since this deliverable has\nno run-request context; present only when set),\n`document.extraction_failed`,\n`document.structured` (per-document structured fields from a Spec pipeline / `/v1/run`; deliver with the `pipeline.capture` deliverable — its payload carries `run_id` (null outside `/v1/run`), `document_id`, `pipeline_id`, `fields` for submission correlation, and optional `metadata`/`batch_id`; for a `/v1/run`-attributed document these read the ATTRIBUTED REQUEST's per-input merged bag first — correct under byte-identical dedup and append, where the canonical documents row can carry a different submission's tags — falling back to the documents row when no request is attributed; present only when set),\n`run.completed` (a `POST /v1/run` pipeline finished; payload adds `records` —\nan array of `{ document_id, filename, data, metadata?, batch_id? }`, one entry\nper output row, ALWAYS an array even for a single document; `metadata`/\n`batch_id` are the submitting request's per-input merged bag (echo-sourced,\nso dedup/append never leaks another request's tags onto this one's records),\npresent only when set; assembled runs attribute each\ncomposed row to its anchor document; `document_id` and `filename` are\nnullable — null when a row's document identity cannot be resolved —\nalongside the legacy `structured_data`,\nstill emitted but considered legacy in favor of `records`),\n`run.failed` (a `POST /v1/run` pipeline failed — every document errored\nduring ingest or extraction; the `error` object's shape varies by failure\nstage and may include `document_ids`, a best-effort array of the input\ndocument ids),\n`run.dataspace.completed`, `run.dataspace.failed`, `result.dataspace.completed`,\n`result.dataspace.failed`, `run.structuring.completed`, `run.structuring.failed`,\n`run.resolution.completed`, `run.resolution.failed`, `run.extraction.completed`,\n`run.extraction.failed`, `result.flagged`, `result.approved`, `result.rejected`,\n`delivery.item.completed`, `delivery.item.failed`.\n\n**Signature verification (HMAC-SHA256):**\n\nHeader: `X-Talonic-Signature: t=1714060200000,v1=abc123...`\n\n```javascript\nconst crypto = require('crypto');\nconst [tPart, vPart] = signature.split(',');\nconst timestamp = tPart.split('=')[1];\nconst received = vPart.split('=')[1];\nconst expected = crypto.createHmac('sha256', signingSecret)\n .update(timestamp + '.' + rawBody).digest('hex');\nconst valid = crypto.timingSafeEqual(\n Buffer.from(received), Buffer.from(expected));\n```\n\n**Retry policy:** Up to 7 attempts — 0s, 30s, 2m, 8m, 30m, 2h, 8h (~10.5h total).\nHTTP 429/5xx are retryable. HTTP 4xx (except 408) goes to DLQ immediately.\n\n**Dead-letter queue recovery:** When all retries are exhausted, the delivery\nlands in the DLQ. List failed deliveries with `GET /v1/delivery/dlq`\n(filterable by `binding_id` and `error_code`). Inspect a single entry with\n`GET /v1/delivery/dlq/{id}`. Replay with `POST /v1/delivery/dlq/{id}/replay`\n— this deletes the DLQ entry, re-signs the payload with the current\nsigning secret, resets the retry counter to attempt 1, and re-enqueues\nthe delivery through the full backoff ladder.\n"
|
|
63
63
|
},
|
|
64
64
|
{
|
|
65
65
|
"name": "Filter",
|
|
@@ -4095,6 +4095,104 @@
|
|
|
4095
4095
|
"$ref": "#/components/responses/RateLimitExceeded"
|
|
4096
4096
|
}
|
|
4097
4097
|
}
|
|
4098
|
+
},
|
|
4099
|
+
"delete": {
|
|
4100
|
+
"operationId": "clearDeliveryDlq",
|
|
4101
|
+
"summary": "Bulk dismiss dead-letter rows",
|
|
4102
|
+
"description": "Deletes every dead-letter row for the tenant matching the optional\n`binding_id` / `error_code` filters (no filters clears the whole\nDLQ). The rows are dismissed, not replayed.\n",
|
|
4103
|
+
"tags": [
|
|
4104
|
+
"Delivery"
|
|
4105
|
+
],
|
|
4106
|
+
"parameters": [
|
|
4107
|
+
{
|
|
4108
|
+
"in": "query",
|
|
4109
|
+
"name": "binding_id",
|
|
4110
|
+
"schema": {
|
|
4111
|
+
"type": "string",
|
|
4112
|
+
"format": "uuid"
|
|
4113
|
+
}
|
|
4114
|
+
},
|
|
4115
|
+
{
|
|
4116
|
+
"in": "query",
|
|
4117
|
+
"name": "error_code",
|
|
4118
|
+
"schema": {
|
|
4119
|
+
"type": "string"
|
|
4120
|
+
}
|
|
4121
|
+
}
|
|
4122
|
+
],
|
|
4123
|
+
"responses": {
|
|
4124
|
+
"200": {
|
|
4125
|
+
"description": "Rows removed.",
|
|
4126
|
+
"content": {
|
|
4127
|
+
"application/json": {
|
|
4128
|
+
"schema": {
|
|
4129
|
+
"type": "object",
|
|
4130
|
+
"properties": {
|
|
4131
|
+
"deleted": {
|
|
4132
|
+
"type": "integer"
|
|
4133
|
+
}
|
|
4134
|
+
}
|
|
4135
|
+
}
|
|
4136
|
+
}
|
|
4137
|
+
}
|
|
4138
|
+
},
|
|
4139
|
+
"401": {
|
|
4140
|
+
"$ref": "#/components/responses/Unauthorized"
|
|
4141
|
+
},
|
|
4142
|
+
"429": {
|
|
4143
|
+
"$ref": "#/components/responses/RateLimitExceeded"
|
|
4144
|
+
}
|
|
4145
|
+
}
|
|
4146
|
+
}
|
|
4147
|
+
},
|
|
4148
|
+
"/v1/delivery/dlq/replay-all": {
|
|
4149
|
+
"post": {
|
|
4150
|
+
"operationId": "replayAllDeliveryDlq",
|
|
4151
|
+
"summary": "Bulk re-enqueue dead-letter rows",
|
|
4152
|
+
"description": "Deletes every dead-letter row for the tenant matching the optional\n`binding_id` / `error_code` filters and re-enqueues each as a fresh\nattempt-1 delivery (the retry ladder restarts). Idempotency keys are\nunchanged, so receivers that dedupe on\n`X-Talonic-Idempotency-Key` will dedupe the replays.\n",
|
|
4153
|
+
"tags": [
|
|
4154
|
+
"Delivery"
|
|
4155
|
+
],
|
|
4156
|
+
"parameters": [
|
|
4157
|
+
{
|
|
4158
|
+
"in": "query",
|
|
4159
|
+
"name": "binding_id",
|
|
4160
|
+
"schema": {
|
|
4161
|
+
"type": "string",
|
|
4162
|
+
"format": "uuid"
|
|
4163
|
+
}
|
|
4164
|
+
},
|
|
4165
|
+
{
|
|
4166
|
+
"in": "query",
|
|
4167
|
+
"name": "error_code",
|
|
4168
|
+
"schema": {
|
|
4169
|
+
"type": "string"
|
|
4170
|
+
}
|
|
4171
|
+
}
|
|
4172
|
+
],
|
|
4173
|
+
"responses": {
|
|
4174
|
+
"200": {
|
|
4175
|
+
"description": "Replays enqueued.",
|
|
4176
|
+
"content": {
|
|
4177
|
+
"application/json": {
|
|
4178
|
+
"schema": {
|
|
4179
|
+
"type": "object",
|
|
4180
|
+
"properties": {
|
|
4181
|
+
"replayed": {
|
|
4182
|
+
"type": "integer"
|
|
4183
|
+
}
|
|
4184
|
+
}
|
|
4185
|
+
}
|
|
4186
|
+
}
|
|
4187
|
+
}
|
|
4188
|
+
},
|
|
4189
|
+
"401": {
|
|
4190
|
+
"$ref": "#/components/responses/Unauthorized"
|
|
4191
|
+
},
|
|
4192
|
+
"429": {
|
|
4193
|
+
"$ref": "#/components/responses/RateLimitExceeded"
|
|
4194
|
+
}
|
|
4195
|
+
}
|
|
4098
4196
|
}
|
|
4099
4197
|
},
|
|
4100
4198
|
"/v1/delivery/dlq/{id}": {
|
|
@@ -4287,6 +4385,37 @@
|
|
|
4287
4385
|
"$ref": "#/components/responses/RateLimitExceeded"
|
|
4288
4386
|
}
|
|
4289
4387
|
}
|
|
4388
|
+
},
|
|
4389
|
+
"delete": {
|
|
4390
|
+
"operationId": "cancelAllPendingRetries",
|
|
4391
|
+
"summary": "Cancel all in-flight retries for the tenant",
|
|
4392
|
+
"description": "Removes every delayed/waiting retry job across all the tenant's\nbindings. In-progress (`active`) jobs are not affected. Bounded to\nthe most recent jobs per state — under a deep backlog one call\nclears up to the cap and can be repeated.\n",
|
|
4393
|
+
"tags": [
|
|
4394
|
+
"Delivery"
|
|
4395
|
+
],
|
|
4396
|
+
"responses": {
|
|
4397
|
+
"200": {
|
|
4398
|
+
"description": "Retries cancelled.",
|
|
4399
|
+
"content": {
|
|
4400
|
+
"application/json": {
|
|
4401
|
+
"schema": {
|
|
4402
|
+
"type": "object",
|
|
4403
|
+
"properties": {
|
|
4404
|
+
"cancelled": {
|
|
4405
|
+
"type": "integer"
|
|
4406
|
+
}
|
|
4407
|
+
}
|
|
4408
|
+
}
|
|
4409
|
+
}
|
|
4410
|
+
}
|
|
4411
|
+
},
|
|
4412
|
+
"401": {
|
|
4413
|
+
"$ref": "#/components/responses/Unauthorized"
|
|
4414
|
+
},
|
|
4415
|
+
"429": {
|
|
4416
|
+
"$ref": "#/components/responses/RateLimitExceeded"
|
|
4417
|
+
}
|
|
4418
|
+
}
|
|
4290
4419
|
}
|
|
4291
4420
|
},
|
|
4292
4421
|
"/v1/delivery/pending/{jobId}": {
|
|
@@ -10020,6 +10149,314 @@
|
|
|
10020
10149
|
}
|
|
10021
10150
|
}
|
|
10022
10151
|
},
|
|
10152
|
+
"/v1/ask": {
|
|
10153
|
+
"post": {
|
|
10154
|
+
"operationId": "ask",
|
|
10155
|
+
"summary": "Ask a question over your documents",
|
|
10156
|
+
"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 — poll\n`GET /v1/ask/{id}` (about every 2 seconds) for the answer.\n\nEach accepted ask charges one flat `agent_ask` credit unit (see `GET /v1/pricing`).\nThe turn is pinned to the least-privilege viewer role: only read tools run, every\nmutation is denied before it executes.\n",
|
|
10157
|
+
"tags": [
|
|
10158
|
+
"Agent"
|
|
10159
|
+
],
|
|
10160
|
+
"requestBody": {
|
|
10161
|
+
"required": true,
|
|
10162
|
+
"content": {
|
|
10163
|
+
"application/json": {
|
|
10164
|
+
"schema": {
|
|
10165
|
+
"type": "object",
|
|
10166
|
+
"required": [
|
|
10167
|
+
"question"
|
|
10168
|
+
],
|
|
10169
|
+
"properties": {
|
|
10170
|
+
"question": {
|
|
10171
|
+
"type": "string",
|
|
10172
|
+
"maxLength": 20000,
|
|
10173
|
+
"description": "The natural-language question to answer over the workspace corpus.",
|
|
10174
|
+
"example": "What is the payment term in the Globex contract, and where does it say so?"
|
|
10175
|
+
}
|
|
10176
|
+
}
|
|
10177
|
+
}
|
|
10178
|
+
}
|
|
10179
|
+
}
|
|
10180
|
+
},
|
|
10181
|
+
"responses": {
|
|
10182
|
+
"202": {
|
|
10183
|
+
"description": "Ask accepted; poll `poll_url` for the answer.",
|
|
10184
|
+
"content": {
|
|
10185
|
+
"application/json": {
|
|
10186
|
+
"schema": {
|
|
10187
|
+
"type": "object",
|
|
10188
|
+
"properties": {
|
|
10189
|
+
"ask_id": {
|
|
10190
|
+
"type": "string",
|
|
10191
|
+
"format": "uuid"
|
|
10192
|
+
},
|
|
10193
|
+
"status": {
|
|
10194
|
+
"type": "string",
|
|
10195
|
+
"enum": [
|
|
10196
|
+
"processing"
|
|
10197
|
+
]
|
|
10198
|
+
},
|
|
10199
|
+
"poll_url": {
|
|
10200
|
+
"type": "string",
|
|
10201
|
+
"example": "/v1/ask/3fa85f64-5717-4562-b3fc-2c963f66afa6"
|
|
10202
|
+
}
|
|
10203
|
+
}
|
|
10204
|
+
}
|
|
10205
|
+
}
|
|
10206
|
+
}
|
|
10207
|
+
},
|
|
10208
|
+
"400": {
|
|
10209
|
+
"$ref": "#/components/responses/BadRequest"
|
|
10210
|
+
},
|
|
10211
|
+
"401": {
|
|
10212
|
+
"$ref": "#/components/responses/Unauthorized"
|
|
10213
|
+
},
|
|
10214
|
+
"402": {
|
|
10215
|
+
"description": "Insufficient credits. The body is the agent-actionable `insufficient_credits` contract with `buy_credits_url` and `pricing_url`."
|
|
10216
|
+
},
|
|
10217
|
+
"429": {
|
|
10218
|
+
"$ref": "#/components/responses/RateLimitExceeded"
|
|
10219
|
+
}
|
|
10220
|
+
}
|
|
10221
|
+
}
|
|
10222
|
+
},
|
|
10223
|
+
"/v1/ask/{id}": {
|
|
10224
|
+
"get": {
|
|
10225
|
+
"operationId": "getAsk",
|
|
10226
|
+
"summary": "Poll an ask for its answer",
|
|
10227
|
+
"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` — 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`, and a deep\n `app_url` that opens the document with the span highlighted.\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",
|
|
10228
|
+
"tags": [
|
|
10229
|
+
"Agent"
|
|
10230
|
+
],
|
|
10231
|
+
"parameters": [
|
|
10232
|
+
{
|
|
10233
|
+
"name": "id",
|
|
10234
|
+
"in": "path",
|
|
10235
|
+
"required": true,
|
|
10236
|
+
"schema": {
|
|
10237
|
+
"type": "string",
|
|
10238
|
+
"format": "uuid"
|
|
10239
|
+
}
|
|
10240
|
+
}
|
|
10241
|
+
],
|
|
10242
|
+
"responses": {
|
|
10243
|
+
"200": {
|
|
10244
|
+
"description": "The ask's current state (processing, completed, or error).",
|
|
10245
|
+
"content": {
|
|
10246
|
+
"application/json": {
|
|
10247
|
+
"schema": {
|
|
10248
|
+
"type": "object",
|
|
10249
|
+
"properties": {
|
|
10250
|
+
"ask_id": {
|
|
10251
|
+
"type": "string",
|
|
10252
|
+
"format": "uuid"
|
|
10253
|
+
},
|
|
10254
|
+
"status": {
|
|
10255
|
+
"type": "string",
|
|
10256
|
+
"enum": [
|
|
10257
|
+
"processing",
|
|
10258
|
+
"completed",
|
|
10259
|
+
"error"
|
|
10260
|
+
]
|
|
10261
|
+
},
|
|
10262
|
+
"poll_url": {
|
|
10263
|
+
"type": "string"
|
|
10264
|
+
},
|
|
10265
|
+
"answer": {
|
|
10266
|
+
"type": "string",
|
|
10267
|
+
"description": "Markdown answer (present when completed)."
|
|
10268
|
+
},
|
|
10269
|
+
"citations": {
|
|
10270
|
+
"type": "array",
|
|
10271
|
+
"items": {
|
|
10272
|
+
"type": "object",
|
|
10273
|
+
"properties": {
|
|
10274
|
+
"quote": {
|
|
10275
|
+
"type": "string"
|
|
10276
|
+
},
|
|
10277
|
+
"document_id": {
|
|
10278
|
+
"type": "string",
|
|
10279
|
+
"format": "uuid"
|
|
10280
|
+
},
|
|
10281
|
+
"kind": {
|
|
10282
|
+
"type": "string",
|
|
10283
|
+
"enum": [
|
|
10284
|
+
"field",
|
|
10285
|
+
"quote"
|
|
10286
|
+
]
|
|
10287
|
+
},
|
|
10288
|
+
"reference": {
|
|
10289
|
+
"type": "string"
|
|
10290
|
+
},
|
|
10291
|
+
"app_url": {
|
|
10292
|
+
"type": "string"
|
|
10293
|
+
}
|
|
10294
|
+
}
|
|
10295
|
+
}
|
|
10296
|
+
},
|
|
10297
|
+
"verification": {
|
|
10298
|
+
"type": "object",
|
|
10299
|
+
"nullable": true,
|
|
10300
|
+
"properties": {
|
|
10301
|
+
"verdict": {
|
|
10302
|
+
"type": "string",
|
|
10303
|
+
"enum": [
|
|
10304
|
+
"supported",
|
|
10305
|
+
"issues",
|
|
10306
|
+
"unverifiable"
|
|
10307
|
+
]
|
|
10308
|
+
},
|
|
10309
|
+
"checks_total": {
|
|
10310
|
+
"type": "integer"
|
|
10311
|
+
},
|
|
10312
|
+
"checks_unsupported": {
|
|
10313
|
+
"type": "integer"
|
|
10314
|
+
},
|
|
10315
|
+
"correction": {
|
|
10316
|
+
"type": "string"
|
|
10317
|
+
}
|
|
10318
|
+
}
|
|
10319
|
+
},
|
|
10320
|
+
"usage": {
|
|
10321
|
+
"type": "object",
|
|
10322
|
+
"properties": {
|
|
10323
|
+
"tokens": {
|
|
10324
|
+
"type": "integer",
|
|
10325
|
+
"nullable": true
|
|
10326
|
+
},
|
|
10327
|
+
"credits_charged": {
|
|
10328
|
+
"type": "integer"
|
|
10329
|
+
}
|
|
10330
|
+
}
|
|
10331
|
+
}
|
|
10332
|
+
}
|
|
10333
|
+
}
|
|
10334
|
+
}
|
|
10335
|
+
}
|
|
10336
|
+
},
|
|
10337
|
+
"401": {
|
|
10338
|
+
"$ref": "#/components/responses/Unauthorized"
|
|
10339
|
+
},
|
|
10340
|
+
"404": {
|
|
10341
|
+
"$ref": "#/components/responses/NotFound"
|
|
10342
|
+
},
|
|
10343
|
+
"429": {
|
|
10344
|
+
"$ref": "#/components/responses/RateLimitExceeded"
|
|
10345
|
+
}
|
|
10346
|
+
}
|
|
10347
|
+
}
|
|
10348
|
+
},
|
|
10349
|
+
"/v1/agent/query": {
|
|
10350
|
+
"post": {
|
|
10351
|
+
"operationId": "startAgentQuery",
|
|
10352
|
+
"summary": "Ask the agent (legacy alias of /v1/ask)",
|
|
10353
|
+
"description": "Legacy alias of `POST /v1/ask` with a minimal response shape. Starts a read-only\nagent turn (202) to poll via `GET /v1/agent/query/{id}`, which returns only\n`status` and the plain `answer` text. New integrations should use `/v1/ask`,\nwhich adds structured citations, the verification verdict, and usage. Charges the\nsame flat `agent_ask` unit.\n",
|
|
10354
|
+
"tags": [
|
|
10355
|
+
"Agent"
|
|
10356
|
+
],
|
|
10357
|
+
"requestBody": {
|
|
10358
|
+
"required": true,
|
|
10359
|
+
"content": {
|
|
10360
|
+
"application/json": {
|
|
10361
|
+
"schema": {
|
|
10362
|
+
"type": "object",
|
|
10363
|
+
"required": [
|
|
10364
|
+
"query"
|
|
10365
|
+
],
|
|
10366
|
+
"properties": {
|
|
10367
|
+
"query": {
|
|
10368
|
+
"type": "string",
|
|
10369
|
+
"maxLength": 20000
|
|
10370
|
+
}
|
|
10371
|
+
}
|
|
10372
|
+
}
|
|
10373
|
+
}
|
|
10374
|
+
}
|
|
10375
|
+
},
|
|
10376
|
+
"responses": {
|
|
10377
|
+
"202": {
|
|
10378
|
+
"description": "Turn started.",
|
|
10379
|
+
"content": {
|
|
10380
|
+
"application/json": {
|
|
10381
|
+
"schema": {
|
|
10382
|
+
"type": "object",
|
|
10383
|
+
"properties": {
|
|
10384
|
+
"turnId": {
|
|
10385
|
+
"type": "string",
|
|
10386
|
+
"format": "uuid"
|
|
10387
|
+
}
|
|
10388
|
+
}
|
|
10389
|
+
}
|
|
10390
|
+
}
|
|
10391
|
+
}
|
|
10392
|
+
},
|
|
10393
|
+
"400": {
|
|
10394
|
+
"$ref": "#/components/responses/BadRequest"
|
|
10395
|
+
},
|
|
10396
|
+
"401": {
|
|
10397
|
+
"$ref": "#/components/responses/Unauthorized"
|
|
10398
|
+
},
|
|
10399
|
+
"402": {
|
|
10400
|
+
"description": "Insufficient credits (`insufficient_credits` contract)."
|
|
10401
|
+
},
|
|
10402
|
+
"429": {
|
|
10403
|
+
"$ref": "#/components/responses/RateLimitExceeded"
|
|
10404
|
+
}
|
|
10405
|
+
}
|
|
10406
|
+
}
|
|
10407
|
+
},
|
|
10408
|
+
"/v1/agent/query/{id}": {
|
|
10409
|
+
"get": {
|
|
10410
|
+
"operationId": "getAgentQuery",
|
|
10411
|
+
"summary": "Poll an agent query (legacy alias)",
|
|
10412
|
+
"description": "Poll a turn started via `POST /v1/agent/query`. Returns `status` and the plain answer text; empty until the turn completes.",
|
|
10413
|
+
"tags": [
|
|
10414
|
+
"Agent"
|
|
10415
|
+
],
|
|
10416
|
+
"parameters": [
|
|
10417
|
+
{
|
|
10418
|
+
"name": "id",
|
|
10419
|
+
"in": "path",
|
|
10420
|
+
"required": true,
|
|
10421
|
+
"schema": {
|
|
10422
|
+
"type": "string",
|
|
10423
|
+
"format": "uuid"
|
|
10424
|
+
}
|
|
10425
|
+
}
|
|
10426
|
+
],
|
|
10427
|
+
"responses": {
|
|
10428
|
+
"200": {
|
|
10429
|
+
"description": "The turn's status and answer.",
|
|
10430
|
+
"content": {
|
|
10431
|
+
"application/json": {
|
|
10432
|
+
"schema": {
|
|
10433
|
+
"type": "object",
|
|
10434
|
+
"properties": {
|
|
10435
|
+
"status": {
|
|
10436
|
+
"type": "string",
|
|
10437
|
+
"enum": [
|
|
10438
|
+
"processing",
|
|
10439
|
+
"completed",
|
|
10440
|
+
"error"
|
|
10441
|
+
]
|
|
10442
|
+
},
|
|
10443
|
+
"answer": {
|
|
10444
|
+
"type": "string"
|
|
10445
|
+
}
|
|
10446
|
+
}
|
|
10447
|
+
}
|
|
10448
|
+
}
|
|
10449
|
+
}
|
|
10450
|
+
},
|
|
10451
|
+
"401": {
|
|
10452
|
+
"$ref": "#/components/responses/Unauthorized"
|
|
10453
|
+
},
|
|
10454
|
+
"404": {
|
|
10455
|
+
"$ref": "#/components/responses/NotFound"
|
|
10456
|
+
}
|
|
10457
|
+
}
|
|
10458
|
+
}
|
|
10459
|
+
},
|
|
10023
10460
|
"/v1/agent/context": {
|
|
10024
10461
|
"get": {
|
|
10025
10462
|
"operationId": "getAgentContext",
|
|
@@ -17121,7 +17558,7 @@
|
|
|
17121
17558
|
"document_ids": {
|
|
17122
17559
|
"type": "array",
|
|
17123
17560
|
"minItems": 1,
|
|
17124
|
-
"maxItems":
|
|
17561
|
+
"maxItems": 3000,
|
|
17125
17562
|
"items": {
|
|
17126
17563
|
"type": "string",
|
|
17127
17564
|
"format": "uuid"
|
|
@@ -17131,6 +17568,14 @@
|
|
|
17131
17568
|
"type": "string",
|
|
17132
17569
|
"minLength": 1,
|
|
17133
17570
|
"maxLength": 200
|
|
17571
|
+
},
|
|
17572
|
+
"pipeline_mode": {
|
|
17573
|
+
"type": "string",
|
|
17574
|
+
"enum": [
|
|
17575
|
+
"new",
|
|
17576
|
+
"append"
|
|
17577
|
+
],
|
|
17578
|
+
"description": "Explicit override of the Spec's configured pipeline mode. `append` adds the documents to the newest eligible existing pipeline on the Spec (config-matching, under the size cap) instead of creating one; the response's `appended` reports which happened. Omitted → the Spec's own setting (default `new`).\n"
|
|
17134
17579
|
}
|
|
17135
17580
|
}
|
|
17136
17581
|
}
|
|
@@ -17139,10 +17584,19 @@
|
|
|
17139
17584
|
},
|
|
17140
17585
|
"responses": {
|
|
17141
17586
|
"201": {
|
|
17142
|
-
"description": "Created pipeline run with links to progress + data-product."
|
|
17587
|
+
"description": "Created pipeline run with links to progress + data-product. `appended: true` marks an append-mode reuse of an existing pipeline (its id is returned)."
|
|
17143
17588
|
},
|
|
17144
17589
|
"400": {
|
|
17145
17590
|
"description": "The Spec has no composed rail, or the body failed validation."
|
|
17591
|
+
},
|
|
17592
|
+
"413": {
|
|
17593
|
+
"description": "The request exceeds the tested per-run document ceiling."
|
|
17594
|
+
},
|
|
17595
|
+
"429": {
|
|
17596
|
+
"description": "The pipeline queue lacks tested headroom; retry after the advised delay."
|
|
17597
|
+
},
|
|
17598
|
+
"503": {
|
|
17599
|
+
"description": "Pipeline queue headroom or durable fan-out could not be verified."
|
|
17146
17600
|
}
|
|
17147
17601
|
}
|
|
17148
17602
|
}
|
|
@@ -17398,6 +17852,27 @@
|
|
|
17398
17852
|
"metadata": {
|
|
17399
17853
|
"type": "string",
|
|
17400
17854
|
"description": "Optional JSON string of a FLAT object `{ [key]: string | number | boolean | null }` (nested objects/arrays are rejected 400; limits: ≤50 keys, key ≤128 chars, string value ≤1024 chars). The validated object is persisted on the run request (echoed by GET /v1/run/{id}) AND stamped on every ingested document as documents.client_metadata.\n"
|
|
17855
|
+
},
|
|
17856
|
+
"file_metadata": {
|
|
17857
|
+
"type": "string",
|
|
17858
|
+
"description": "Optional JSON string of a map `{ [inputKey: string]: ClientMetadata }` for tagging individual files in a multi-file call — each value obeys the same constraints as `metadata` (≤50 keys, key ≤128 chars, string value ≤1024 chars). `inputKey` is the input's identity: for `files`, the uploaded filename exactly as echoed back in `documents[]` (filenames are NFC-normalized before matching, so an umlaut/NFD name still keys correctly); for `file_urls`, the exact URL string (no trim, no normalization). A key matching several same-named inputs applies to ALL of them; a key matching NO input is a 400 `invalid_metadata` naming the offending key, so a typo'd filename fails loudly instead of silently tagging nothing. Per input, the file's bag is merged OVER the call-level `metadata` — per-file wins per key, and `null` is a value (it overrides), never a deletion, so a per-file entry cannot unset a call-level key. The MERGED result must still satisfy the caps above (a 30-key call bag plus a disjoint 30-key file bag is rejected, not silently truncated) — 400 `invalid_metadata` otherwise. The map itself is capped at the call's max input count (20) entries and 64 KB of decoded JSON; the size cap binds BEFORE per-entry validation, so 20 individually-legal maximal bags can still exceed it. Container inputs (ZIP/email) key by the archive's filename only — a key can target the archive, never its extracted members, which inherit the archive's merged bag. The resolved per-input bag is echoed back in `documents[].metadata` on this response and on GET /v1/run/{id}.\n"
|
|
17859
|
+
},
|
|
17860
|
+
"pipeline_mode": {
|
|
17861
|
+
"type": "string",
|
|
17862
|
+
"enum": [
|
|
17863
|
+
"new",
|
|
17864
|
+
"append"
|
|
17865
|
+
],
|
|
17866
|
+
"description": "Explicit override of the Spec's configured pipeline mode. `new` (the default when neither this nor the Spec sets a mode) creates a fresh pipeline per call. `append` adds this call's documents to the newest eligible existing pipeline on the Spec — so bulk uploads accumulate into one growing table instead of one pipeline per call. A pipeline is eligible when its config still matches the Spec (schema fields, policies, gates, assembly/review config) and it is under the append size cap; otherwise a fresh pipeline is created and becomes the new append target. Under append, completion is PER REQUEST: the run.completed webhook and GET /v1/run/{id} report this request's own documents (payloads carry run_id and are scoped to them), and the shared pipeline fires no pipeline-level run.* webhook.\n"
|
|
17867
|
+
},
|
|
17868
|
+
"ingestion_target": {
|
|
17869
|
+
"type": "string",
|
|
17870
|
+
"enum": [
|
|
17871
|
+
"ingest",
|
|
17872
|
+
"extract"
|
|
17873
|
+
],
|
|
17874
|
+
"default": "ingest",
|
|
17875
|
+
"description": "How far the platform processes the run's documents beyond the Spec pipeline. `ingest` (default): after OCR, Stage-2 field capture runs asynchronously so the corpus becomes queryable by the agent surfaces (POST /v1/ask) and the pipeline's Transfer phase — the pipeline still starts the moment OCR markdown is ready, capture never delays it. `extract`: markdown-only; the documents are not askable.\n"
|
|
17401
17876
|
}
|
|
17402
17877
|
}
|
|
17403
17878
|
}
|
|
@@ -17476,6 +17951,11 @@
|
|
|
17476
17951
|
"type": "string",
|
|
17477
17952
|
"format": "uuid",
|
|
17478
17953
|
"description": "Present only when deduplicated is true — the thin per-upload link row created for this input."
|
|
17954
|
+
},
|
|
17955
|
+
"metadata": {
|
|
17956
|
+
"type": "object",
|
|
17957
|
+
"additionalProperties": true,
|
|
17958
|
+
"description": "This input's EFFECTIVE metadata for THIS request — the call-level `metadata` merged with its `file_metadata` entry (per-file wins), captured at submit. Present only when set. Under byte-identical dedup this can legitimately diverge from GET /v1/documents/{id}'s `metadata`, which keeps the CANONICAL document's tags from its FIRST submission — this echo is the authoritative per-request tag source; read it (not the document) to see what THIS call tagged.\n"
|
|
17479
17959
|
}
|
|
17480
17960
|
},
|
|
17481
17961
|
"example": {
|
|
@@ -17502,7 +17982,10 @@
|
|
|
17502
17982
|
"description": "A file exceeds the tier's per-file size cap."
|
|
17503
17983
|
},
|
|
17504
17984
|
"429": {
|
|
17505
|
-
"
|
|
17985
|
+
"description": "API rate limit or pipeline-queue admission limit reached; retry after the advised delay."
|
|
17986
|
+
},
|
|
17987
|
+
"503": {
|
|
17988
|
+
"description": "Pipeline queue headroom could not be verified before ingest."
|
|
17506
17989
|
}
|
|
17507
17990
|
}
|
|
17508
17991
|
}
|
|
@@ -17560,6 +18043,14 @@
|
|
|
17560
18043
|
"format": "uuid",
|
|
17561
18044
|
"nullable": true
|
|
17562
18045
|
},
|
|
18046
|
+
"pipeline_mode": {
|
|
18047
|
+
"type": "string",
|
|
18048
|
+
"enum": [
|
|
18049
|
+
"new",
|
|
18050
|
+
"append"
|
|
18051
|
+
],
|
|
18052
|
+
"description": "The EFFECTIVE mode this request resolved to (present only when recorded — omitted for legacy requests). Under `append` the pipeline is shared across requests, and `status`/`progress` are scoped to THIS request's own documents (the same all-terminal fold the per-request webhook fires on), not the whole pipeline.\n"
|
|
18053
|
+
},
|
|
17563
18054
|
"input_count": {
|
|
17564
18055
|
"type": "integer"
|
|
17565
18056
|
},
|
|
@@ -17644,6 +18135,11 @@
|
|
|
17644
18135
|
"format": "uuid",
|
|
17645
18136
|
"description": "Present only when deduplicated is true."
|
|
17646
18137
|
},
|
|
18138
|
+
"metadata": {
|
|
18139
|
+
"type": "object",
|
|
18140
|
+
"additionalProperties": true,
|
|
18141
|
+
"description": "This input's EFFECTIVE per-request metadata, echoed from submit time (see POST /v1/run's documents[].metadata). Present only when set.\n"
|
|
18142
|
+
},
|
|
17647
18143
|
"status": {
|
|
17648
18144
|
"type": "string",
|
|
17649
18145
|
"enum": [
|
|
@@ -20253,6 +20749,15 @@
|
|
|
20253
20749
|
},
|
|
20254
20750
|
"description": "Fields that have been manually corrected (locked at confidence 1.0)."
|
|
20255
20751
|
},
|
|
20752
|
+
"batch_id": {
|
|
20753
|
+
"type": "string",
|
|
20754
|
+
"description": "The caller grouping key stamped on this document at ingestion (documents.client_batch_id) — e.g. from POST /v1/run or POST /v1/sources/:id/documents. Present only when set.\n"
|
|
20755
|
+
},
|
|
20756
|
+
"metadata": {
|
|
20757
|
+
"type": "object",
|
|
20758
|
+
"additionalProperties": true,
|
|
20759
|
+
"description": "The caller's flat metadata bag stamped on this document at ingestion (documents.client_metadata) — for a /v1/run input, its per-request EFFECTIVE merged bag (call-level metadata merged with any file_metadata entry). Present only when set.\n"
|
|
20760
|
+
},
|
|
20256
20761
|
"processing": {
|
|
20257
20762
|
"type": "object",
|
|
20258
20763
|
"properties": {
|
package/package.json
CHANGED
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Tailwind CSS preset for @talonic/docs consumers.
|
|
3
|
-
* Adds the Void design system color tokens and font families
|
|
4
|
-
* so doc components render correctly in any host app.
|
|
5
|
-
*/
|
|
6
|
-
declare const voidDocsPreset: {
|
|
7
|
-
darkMode: "class";
|
|
8
|
-
theme: {
|
|
9
|
-
extend: {
|
|
10
|
-
colors: {
|
|
11
|
-
'void-bg': string;
|
|
12
|
-
'void-bg-elevated': string;
|
|
13
|
-
'void-surface': string;
|
|
14
|
-
'void-surface-2': string;
|
|
15
|
-
'void-surface-3': string;
|
|
16
|
-
'void-border': string;
|
|
17
|
-
'void-border-hover': string;
|
|
18
|
-
'void-text-primary': string;
|
|
19
|
-
'void-text-secondary': string;
|
|
20
|
-
'void-text-muted': string;
|
|
21
|
-
'void-text-tertiary': string;
|
|
22
|
-
'void-accent': string;
|
|
23
|
-
'void-accent-hover': string;
|
|
24
|
-
'void-accent-dim': string;
|
|
25
|
-
'void-accent-tint': string;
|
|
26
|
-
'void-danger': string;
|
|
27
|
-
'void-danger-solid': string;
|
|
28
|
-
'void-divider': string;
|
|
29
|
-
'void-warning': string;
|
|
30
|
-
'void-warning-dim': string;
|
|
31
|
-
'void-tier-1': string;
|
|
32
|
-
'void-tier-2': string;
|
|
33
|
-
'void-tier-3': string;
|
|
34
|
-
};
|
|
35
|
-
fontFamily: {
|
|
36
|
-
space: string[];
|
|
37
|
-
body: string[];
|
|
38
|
-
mono: string[];
|
|
39
|
-
};
|
|
40
|
-
};
|
|
41
|
-
};
|
|
42
|
-
plugins: never[];
|
|
43
|
-
};
|
|
44
|
-
|
|
45
|
-
export { voidDocsPreset as default };
|