@talonic/docs 0.21.8 → 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 +29 -11
- package/dist/index.js +23 -7
- package/dist/index.js.map +1 -1
- package/dist/seo.js +178 -2
- package/openapi.json +178 -2
- package/package.json +1 -1
- package/dist/tailwind-preset.d.cts +0 -45
- package/dist/tailwind-preset.d.ts +0 -45
package/dist/seo.js
CHANGED
|
@@ -60,7 +60,7 @@ var openapi_default = {
|
|
|
60
60
|
},
|
|
61
61
|
{
|
|
62
62
|
name: "Delivery",
|
|
63
|
-
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
|
|
63
|
+
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 \u2014 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 \u2014 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 \u2014 correct under byte-identical dedup and append, where the canonical documents row can carry a different submission\'s tags \u2014 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` \u2014\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 \u2014 null when a row\'s document identity cannot be resolved \u2014\nalongside the legacy `structured_data`,\nstill emitted but considered legacy in favor of `records`),\n`run.failed` (a `POST /v1/run` pipeline failed \u2014 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 \u2014 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\u2014 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'
|
|
64
64
|
},
|
|
65
65
|
{
|
|
66
66
|
name: "Filter",
|
|
@@ -4115,6 +4115,104 @@ var openapi_default = {
|
|
|
4115
4115
|
$ref: "#/components/responses/RateLimitExceeded"
|
|
4116
4116
|
}
|
|
4117
4117
|
}
|
|
4118
|
+
},
|
|
4119
|
+
delete: {
|
|
4120
|
+
operationId: "clearDeliveryDlq",
|
|
4121
|
+
summary: "Bulk dismiss dead-letter rows",
|
|
4122
|
+
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",
|
|
4123
|
+
tags: [
|
|
4124
|
+
"Delivery"
|
|
4125
|
+
],
|
|
4126
|
+
parameters: [
|
|
4127
|
+
{
|
|
4128
|
+
in: "query",
|
|
4129
|
+
name: "binding_id",
|
|
4130
|
+
schema: {
|
|
4131
|
+
type: "string",
|
|
4132
|
+
format: "uuid"
|
|
4133
|
+
}
|
|
4134
|
+
},
|
|
4135
|
+
{
|
|
4136
|
+
in: "query",
|
|
4137
|
+
name: "error_code",
|
|
4138
|
+
schema: {
|
|
4139
|
+
type: "string"
|
|
4140
|
+
}
|
|
4141
|
+
}
|
|
4142
|
+
],
|
|
4143
|
+
responses: {
|
|
4144
|
+
"200": {
|
|
4145
|
+
description: "Rows removed.",
|
|
4146
|
+
content: {
|
|
4147
|
+
"application/json": {
|
|
4148
|
+
schema: {
|
|
4149
|
+
type: "object",
|
|
4150
|
+
properties: {
|
|
4151
|
+
deleted: {
|
|
4152
|
+
type: "integer"
|
|
4153
|
+
}
|
|
4154
|
+
}
|
|
4155
|
+
}
|
|
4156
|
+
}
|
|
4157
|
+
}
|
|
4158
|
+
},
|
|
4159
|
+
"401": {
|
|
4160
|
+
$ref: "#/components/responses/Unauthorized"
|
|
4161
|
+
},
|
|
4162
|
+
"429": {
|
|
4163
|
+
$ref: "#/components/responses/RateLimitExceeded"
|
|
4164
|
+
}
|
|
4165
|
+
}
|
|
4166
|
+
}
|
|
4167
|
+
},
|
|
4168
|
+
"/v1/delivery/dlq/replay-all": {
|
|
4169
|
+
post: {
|
|
4170
|
+
operationId: "replayAllDeliveryDlq",
|
|
4171
|
+
summary: "Bulk re-enqueue dead-letter rows",
|
|
4172
|
+
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",
|
|
4173
|
+
tags: [
|
|
4174
|
+
"Delivery"
|
|
4175
|
+
],
|
|
4176
|
+
parameters: [
|
|
4177
|
+
{
|
|
4178
|
+
in: "query",
|
|
4179
|
+
name: "binding_id",
|
|
4180
|
+
schema: {
|
|
4181
|
+
type: "string",
|
|
4182
|
+
format: "uuid"
|
|
4183
|
+
}
|
|
4184
|
+
},
|
|
4185
|
+
{
|
|
4186
|
+
in: "query",
|
|
4187
|
+
name: "error_code",
|
|
4188
|
+
schema: {
|
|
4189
|
+
type: "string"
|
|
4190
|
+
}
|
|
4191
|
+
}
|
|
4192
|
+
],
|
|
4193
|
+
responses: {
|
|
4194
|
+
"200": {
|
|
4195
|
+
description: "Replays enqueued.",
|
|
4196
|
+
content: {
|
|
4197
|
+
"application/json": {
|
|
4198
|
+
schema: {
|
|
4199
|
+
type: "object",
|
|
4200
|
+
properties: {
|
|
4201
|
+
replayed: {
|
|
4202
|
+
type: "integer"
|
|
4203
|
+
}
|
|
4204
|
+
}
|
|
4205
|
+
}
|
|
4206
|
+
}
|
|
4207
|
+
}
|
|
4208
|
+
},
|
|
4209
|
+
"401": {
|
|
4210
|
+
$ref: "#/components/responses/Unauthorized"
|
|
4211
|
+
},
|
|
4212
|
+
"429": {
|
|
4213
|
+
$ref: "#/components/responses/RateLimitExceeded"
|
|
4214
|
+
}
|
|
4215
|
+
}
|
|
4118
4216
|
}
|
|
4119
4217
|
},
|
|
4120
4218
|
"/v1/delivery/dlq/{id}": {
|
|
@@ -4307,6 +4405,37 @@ var openapi_default = {
|
|
|
4307
4405
|
$ref: "#/components/responses/RateLimitExceeded"
|
|
4308
4406
|
}
|
|
4309
4407
|
}
|
|
4408
|
+
},
|
|
4409
|
+
delete: {
|
|
4410
|
+
operationId: "cancelAllPendingRetries",
|
|
4411
|
+
summary: "Cancel all in-flight retries for the tenant",
|
|
4412
|
+
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 \u2014 under a deep backlog one call\nclears up to the cap and can be repeated.\n",
|
|
4413
|
+
tags: [
|
|
4414
|
+
"Delivery"
|
|
4415
|
+
],
|
|
4416
|
+
responses: {
|
|
4417
|
+
"200": {
|
|
4418
|
+
description: "Retries cancelled.",
|
|
4419
|
+
content: {
|
|
4420
|
+
"application/json": {
|
|
4421
|
+
schema: {
|
|
4422
|
+
type: "object",
|
|
4423
|
+
properties: {
|
|
4424
|
+
cancelled: {
|
|
4425
|
+
type: "integer"
|
|
4426
|
+
}
|
|
4427
|
+
}
|
|
4428
|
+
}
|
|
4429
|
+
}
|
|
4430
|
+
}
|
|
4431
|
+
},
|
|
4432
|
+
"401": {
|
|
4433
|
+
$ref: "#/components/responses/Unauthorized"
|
|
4434
|
+
},
|
|
4435
|
+
"429": {
|
|
4436
|
+
$ref: "#/components/responses/RateLimitExceeded"
|
|
4437
|
+
}
|
|
4438
|
+
}
|
|
4310
4439
|
}
|
|
4311
4440
|
},
|
|
4312
4441
|
"/v1/delivery/pending/{jobId}": {
|
|
@@ -17459,6 +17588,14 @@ var openapi_default = {
|
|
|
17459
17588
|
type: "string",
|
|
17460
17589
|
minLength: 1,
|
|
17461
17590
|
maxLength: 200
|
|
17591
|
+
},
|
|
17592
|
+
pipeline_mode: {
|
|
17593
|
+
type: "string",
|
|
17594
|
+
enum: [
|
|
17595
|
+
"new",
|
|
17596
|
+
"append"
|
|
17597
|
+
],
|
|
17598
|
+
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 \u2192 the Spec's own setting (default `new`).\n"
|
|
17462
17599
|
}
|
|
17463
17600
|
}
|
|
17464
17601
|
}
|
|
@@ -17467,7 +17604,7 @@ var openapi_default = {
|
|
|
17467
17604
|
},
|
|
17468
17605
|
responses: {
|
|
17469
17606
|
"201": {
|
|
17470
|
-
description: "Created pipeline run with links to progress + data-product."
|
|
17607
|
+
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)."
|
|
17471
17608
|
},
|
|
17472
17609
|
"400": {
|
|
17473
17610
|
description: "The Spec has no composed rail, or the body failed validation."
|
|
@@ -17736,6 +17873,18 @@ var openapi_default = {
|
|
|
17736
17873
|
type: "string",
|
|
17737
17874
|
description: "Optional JSON string of a FLAT object `{ [key]: string | number | boolean | null }` (nested objects/arrays are rejected 400; limits: \u226450 keys, key \u2264128 chars, string value \u22641024 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"
|
|
17738
17875
|
},
|
|
17876
|
+
file_metadata: {
|
|
17877
|
+
type: "string",
|
|
17878
|
+
description: "Optional JSON string of a map `{ [inputKey: string]: ClientMetadata }` for tagging individual files in a multi-file call \u2014 each value obeys the same constraints as `metadata` (\u226450 keys, key \u2264128 chars, string value \u22641024 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` \u2014 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) \u2014 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 \u2014 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"
|
|
17879
|
+
},
|
|
17880
|
+
pipeline_mode: {
|
|
17881
|
+
type: "string",
|
|
17882
|
+
enum: [
|
|
17883
|
+
"new",
|
|
17884
|
+
"append"
|
|
17885
|
+
],
|
|
17886
|
+
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 \u2014 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"
|
|
17887
|
+
},
|
|
17739
17888
|
ingestion_target: {
|
|
17740
17889
|
type: "string",
|
|
17741
17890
|
enum: [
|
|
@@ -17822,6 +17971,11 @@ var openapi_default = {
|
|
|
17822
17971
|
type: "string",
|
|
17823
17972
|
format: "uuid",
|
|
17824
17973
|
description: "Present only when deduplicated is true \u2014 the thin per-upload link row created for this input."
|
|
17974
|
+
},
|
|
17975
|
+
metadata: {
|
|
17976
|
+
type: "object",
|
|
17977
|
+
additionalProperties: true,
|
|
17978
|
+
description: "This input's EFFECTIVE metadata for THIS request \u2014 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 \u2014 this echo is the authoritative per-request tag source; read it (not the document) to see what THIS call tagged.\n"
|
|
17825
17979
|
}
|
|
17826
17980
|
},
|
|
17827
17981
|
example: {
|
|
@@ -17909,6 +18063,14 @@ var openapi_default = {
|
|
|
17909
18063
|
format: "uuid",
|
|
17910
18064
|
nullable: true
|
|
17911
18065
|
},
|
|
18066
|
+
pipeline_mode: {
|
|
18067
|
+
type: "string",
|
|
18068
|
+
enum: [
|
|
18069
|
+
"new",
|
|
18070
|
+
"append"
|
|
18071
|
+
],
|
|
18072
|
+
description: "The EFFECTIVE mode this request resolved to (present only when recorded \u2014 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"
|
|
18073
|
+
},
|
|
17912
18074
|
input_count: {
|
|
17913
18075
|
type: "integer"
|
|
17914
18076
|
},
|
|
@@ -17993,6 +18155,11 @@ var openapi_default = {
|
|
|
17993
18155
|
format: "uuid",
|
|
17994
18156
|
description: "Present only when deduplicated is true."
|
|
17995
18157
|
},
|
|
18158
|
+
metadata: {
|
|
18159
|
+
type: "object",
|
|
18160
|
+
additionalProperties: true,
|
|
18161
|
+
description: "This input's EFFECTIVE per-request metadata, echoed from submit time (see POST /v1/run's documents[].metadata). Present only when set.\n"
|
|
18162
|
+
},
|
|
17996
18163
|
status: {
|
|
17997
18164
|
type: "string",
|
|
17998
18165
|
enum: [
|
|
@@ -20602,6 +20769,15 @@ var openapi_default = {
|
|
|
20602
20769
|
},
|
|
20603
20770
|
description: "Fields that have been manually corrected (locked at confidence 1.0)."
|
|
20604
20771
|
},
|
|
20772
|
+
batch_id: {
|
|
20773
|
+
type: "string",
|
|
20774
|
+
description: "The caller grouping key stamped on this document at ingestion (documents.client_batch_id) \u2014 e.g. from POST /v1/run or POST /v1/sources/:id/documents. Present only when set.\n"
|
|
20775
|
+
},
|
|
20776
|
+
metadata: {
|
|
20777
|
+
type: "object",
|
|
20778
|
+
additionalProperties: true,
|
|
20779
|
+
description: "The caller's flat metadata bag stamped on this document at ingestion (documents.client_metadata) \u2014 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"
|
|
20780
|
+
},
|
|
20605
20781
|
processing: {
|
|
20606
20782
|
type: "object",
|
|
20607
20783
|
properties: {
|
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}": {
|
|
@@ -17439,6 +17568,14 @@
|
|
|
17439
17568
|
"type": "string",
|
|
17440
17569
|
"minLength": 1,
|
|
17441
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"
|
|
17442
17579
|
}
|
|
17443
17580
|
}
|
|
17444
17581
|
}
|
|
@@ -17447,7 +17584,7 @@
|
|
|
17447
17584
|
},
|
|
17448
17585
|
"responses": {
|
|
17449
17586
|
"201": {
|
|
17450
|
-
"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)."
|
|
17451
17588
|
},
|
|
17452
17589
|
"400": {
|
|
17453
17590
|
"description": "The Spec has no composed rail, or the body failed validation."
|
|
@@ -17716,6 +17853,18 @@
|
|
|
17716
17853
|
"type": "string",
|
|
17717
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"
|
|
17718
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
|
+
},
|
|
17719
17868
|
"ingestion_target": {
|
|
17720
17869
|
"type": "string",
|
|
17721
17870
|
"enum": [
|
|
@@ -17802,6 +17951,11 @@
|
|
|
17802
17951
|
"type": "string",
|
|
17803
17952
|
"format": "uuid",
|
|
17804
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"
|
|
17805
17959
|
}
|
|
17806
17960
|
},
|
|
17807
17961
|
"example": {
|
|
@@ -17889,6 +18043,14 @@
|
|
|
17889
18043
|
"format": "uuid",
|
|
17890
18044
|
"nullable": true
|
|
17891
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
|
+
},
|
|
17892
18054
|
"input_count": {
|
|
17893
18055
|
"type": "integer"
|
|
17894
18056
|
},
|
|
@@ -17973,6 +18135,11 @@
|
|
|
17973
18135
|
"format": "uuid",
|
|
17974
18136
|
"description": "Present only when deduplicated is true."
|
|
17975
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
|
+
},
|
|
17976
18143
|
"status": {
|
|
17977
18144
|
"type": "string",
|
|
17978
18145
|
"enum": [
|
|
@@ -20582,6 +20749,15 @@
|
|
|
20582
20749
|
},
|
|
20583
20750
|
"description": "Fields that have been manually corrected (locked at confidence 1.0)."
|
|
20584
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
|
+
},
|
|
20585
20761
|
"processing": {
|
|
20586
20762
|
"type": "object",
|
|
20587
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 };
|
|
@@ -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 };
|