@talonic/docs 0.21.4 → 0.21.6
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 +218 -26
- package/dist/index.js +128 -0
- package/dist/index.js.map +1 -1
- package/dist/seo.js +79 -6
- package/dist/tailwind-preset.d.cts +45 -0
- package/dist/tailwind-preset.d.ts +45 -0
- package/openapi.json +75 -6
- package/package.json +1 -1
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`, `document.extraction_failed`,\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'
|
|
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`, `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`, and `fields` for submission correlation),\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",
|
|
@@ -241,6 +241,15 @@ var openapi_default = {
|
|
|
241
241
|
options: {
|
|
242
242
|
type: "string",
|
|
243
243
|
description: "JSON string of extraction options.\n- `async` (boolean) \u2014 force async (`true`) or sync (`false`) processing.\n"
|
|
244
|
+
},
|
|
245
|
+
batch_id: {
|
|
246
|
+
type: "string",
|
|
247
|
+
maxLength: 200,
|
|
248
|
+
description: "Optional caller grouping key stamped on the document (documents.client_batch_id)."
|
|
249
|
+
},
|
|
250
|
+
metadata: {
|
|
251
|
+
type: "string",
|
|
252
|
+
description: "Optional JSON string of a FLAT object `{ [key]: string | number | boolean | null }` (nested objects/arrays rejected 400; \u226450 keys, key \u2264128, string value \u22641024), stamped on the document as documents.client_metadata.\n"
|
|
244
253
|
}
|
|
245
254
|
}
|
|
246
255
|
},
|
|
@@ -2355,6 +2364,15 @@ var openapi_default = {
|
|
|
2355
2364
|
],
|
|
2356
2365
|
default: "realtime",
|
|
2357
2366
|
description: '"realtime" (default) \u2014 processed immediately.\n"batch" \u2014 50% cost discount, results within 48 hours.\n'
|
|
2367
|
+
},
|
|
2368
|
+
batch_id: {
|
|
2369
|
+
type: "string",
|
|
2370
|
+
maxLength: 200,
|
|
2371
|
+
description: "Optional caller grouping key stamped on the document (documents.client_batch_id)."
|
|
2372
|
+
},
|
|
2373
|
+
metadata: {
|
|
2374
|
+
type: "string",
|
|
2375
|
+
description: "Optional JSON string of a FLAT object `{ [key]: string | number | boolean | null }` (nested objects/arrays rejected 400; \u226450 keys, key \u2264128, string value \u22641024), stamped on the document as documents.client_metadata.\n"
|
|
2358
2376
|
}
|
|
2359
2377
|
}
|
|
2360
2378
|
}
|
|
@@ -17391,9 +17409,14 @@ var openapi_default = {
|
|
|
17391
17409
|
maxLength: 200,
|
|
17392
17410
|
description: "Optional display name for the run."
|
|
17393
17411
|
},
|
|
17412
|
+
batch_id: {
|
|
17413
|
+
type: "string",
|
|
17414
|
+
maxLength: 200,
|
|
17415
|
+
description: "Optional caller grouping key stamped on every document ingested by this call (documents.client_batch_id) and echoed by GET /v1/run/{id}. Opaque to the platform \u2014 an external job/batch id for grouping.\n"
|
|
17416
|
+
},
|
|
17394
17417
|
metadata: {
|
|
17395
17418
|
type: "string",
|
|
17396
|
-
description: "Optional JSON string, persisted on the run request
|
|
17419
|
+
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"
|
|
17397
17420
|
}
|
|
17398
17421
|
}
|
|
17399
17422
|
}
|
|
@@ -17436,11 +17459,14 @@ var openapi_default = {
|
|
|
17436
17459
|
}
|
|
17437
17460
|
},
|
|
17438
17461
|
"400": {
|
|
17439
|
-
description: "Missing spec_id, no input provided (both files and file_urls empty), or metadata is not valid JSON."
|
|
17462
|
+
description: "Missing spec_id, no input provided (both files and file_urls empty), or metadata is not a valid flat JSON object."
|
|
17440
17463
|
},
|
|
17441
17464
|
"402": {
|
|
17442
17465
|
description: "Insufficient credits for an ingest leg."
|
|
17443
17466
|
},
|
|
17467
|
+
"413": {
|
|
17468
|
+
description: "A file exceeds the tier's per-file size cap."
|
|
17469
|
+
},
|
|
17444
17470
|
"429": {
|
|
17445
17471
|
$ref: "#/components/responses/RateLimitExceeded"
|
|
17446
17472
|
}
|
|
@@ -17453,7 +17479,7 @@ var openapi_default = {
|
|
|
17453
17479
|
"Run"
|
|
17454
17480
|
],
|
|
17455
17481
|
summary: "Poll a /v1/run request",
|
|
17456
|
-
description: "Row status, folded with the compiled pipeline's live progress once one exists (`pipeline_id` set). `status` is `processing` (
|
|
17482
|
+
description: "Row status, folded with the compiled pipeline's live progress once one exists (`pipeline_id` set). `status` is `processing` (in flight), `completed`, or `failed` \u2014 the same vocabulary `POST /v1/run` returns. A non-null `pipeline_id` plus the `progress` object indicate the pipeline has started. Requires read scope.\n",
|
|
17457
17483
|
operationId: "pollRunRequest",
|
|
17458
17484
|
security: [
|
|
17459
17485
|
{
|
|
@@ -17491,7 +17517,6 @@ var openapi_default = {
|
|
|
17491
17517
|
type: "string",
|
|
17492
17518
|
enum: [
|
|
17493
17519
|
"processing",
|
|
17494
|
-
"running",
|
|
17495
17520
|
"completed",
|
|
17496
17521
|
"failed"
|
|
17497
17522
|
]
|
|
@@ -17512,7 +17537,12 @@ var openapi_default = {
|
|
|
17512
17537
|
type: "object",
|
|
17513
17538
|
nullable: true,
|
|
17514
17539
|
additionalProperties: true,
|
|
17515
|
-
description: "The
|
|
17540
|
+
description: "The validated flat metadata object supplied on POST /v1/run, echoed back here."
|
|
17541
|
+
},
|
|
17542
|
+
batch_id: {
|
|
17543
|
+
type: "string",
|
|
17544
|
+
nullable: true,
|
|
17545
|
+
description: "The caller grouping key supplied on POST /v1/run, echoed back here."
|
|
17516
17546
|
},
|
|
17517
17547
|
created_at: {
|
|
17518
17548
|
type: "string",
|
|
@@ -19830,6 +19860,27 @@ var openapi_default = {
|
|
|
19830
19860
|
}
|
|
19831
19861
|
}
|
|
19832
19862
|
},
|
|
19863
|
+
batch_id: {
|
|
19864
|
+
type: "string",
|
|
19865
|
+
description: "Caller grouping key supplied at ingest (batch_id). Present ONLY when the document was tagged; omitted otherwise (backwards-compatible).\n",
|
|
19866
|
+
example: "2026-07-14-run-042"
|
|
19867
|
+
},
|
|
19868
|
+
metadata: {
|
|
19869
|
+
type: "object",
|
|
19870
|
+
additionalProperties: {
|
|
19871
|
+
type: [
|
|
19872
|
+
"string",
|
|
19873
|
+
"number",
|
|
19874
|
+
"boolean",
|
|
19875
|
+
"null"
|
|
19876
|
+
]
|
|
19877
|
+
},
|
|
19878
|
+
description: "Caller flat metadata supplied at ingest. Present ONLY when the document was tagged; omitted otherwise (backwards-compatible).\n",
|
|
19879
|
+
example: {
|
|
19880
|
+
customer: "bridgeway",
|
|
19881
|
+
source: "sftp"
|
|
19882
|
+
}
|
|
19883
|
+
},
|
|
19833
19884
|
extraction_count: {
|
|
19834
19885
|
type: "integer",
|
|
19835
19886
|
example: 1
|
|
@@ -21856,6 +21907,14 @@ var openapi_default = {
|
|
|
21856
21907
|
type: "object",
|
|
21857
21908
|
additionalProperties: true
|
|
21858
21909
|
},
|
|
21910
|
+
resolver_config: {
|
|
21911
|
+
type: [
|
|
21912
|
+
"object",
|
|
21913
|
+
"null"
|
|
21914
|
+
],
|
|
21915
|
+
additionalProperties: true,
|
|
21916
|
+
description: "Per-binding resolver options threaded into the deliverable resolver. First consumer: `null_handling` on the `pipeline.capture` deliverable \u2014 `always_null` (default: every declared schema field present, missing values as null), `omit_absent` (valued fields only), or `distinguish` (null = deliberately cleared by resolution; never-captured keys omitted). The sparse modes require a json or ndjson serializer (compatibility validated on create/update).\n"
|
|
21917
|
+
},
|
|
21859
21918
|
delivery_policy: {
|
|
21860
21919
|
$ref: "#/components/schemas/DeliveryPolicy"
|
|
21861
21920
|
},
|
|
@@ -21914,6 +21973,11 @@ var openapi_default = {
|
|
|
21914
21973
|
type: "object",
|
|
21915
21974
|
additionalProperties: true
|
|
21916
21975
|
},
|
|
21976
|
+
resolver_config: {
|
|
21977
|
+
type: "object",
|
|
21978
|
+
additionalProperties: true,
|
|
21979
|
+
description: 'Per-binding resolver options \u2014 e.g. `{"null_handling": "distinguish"}` on a `pipeline.capture` binding. Sparse modes (`omit_absent`, `distinguish`) require a json/ndjson serializer (400 otherwise).\n'
|
|
21980
|
+
},
|
|
21917
21981
|
delivery_policy: {
|
|
21918
21982
|
$ref: "#/components/schemas/DeliveryPolicy"
|
|
21919
21983
|
},
|
|
@@ -21950,6 +22014,11 @@ var openapi_default = {
|
|
|
21950
22014
|
type: "object",
|
|
21951
22015
|
additionalProperties: true
|
|
21952
22016
|
},
|
|
22017
|
+
resolver_config: {
|
|
22018
|
+
type: "object",
|
|
22019
|
+
additionalProperties: true,
|
|
22020
|
+
description: 'Per-binding resolver options \u2014 e.g. `{"null_handling": "distinguish"}` on a `pipeline.capture` binding. Sparse modes (`omit_absent`, `distinguish`) require a json/ndjson serializer (400 otherwise).\n'
|
|
22021
|
+
},
|
|
21953
22022
|
delivery_policy: {
|
|
21954
22023
|
$ref: "#/components/schemas/DeliveryPolicy"
|
|
21955
22024
|
},
|
|
@@ -25408,6 +25477,10 @@ var API_NAV_SECTIONS = [
|
|
|
25408
25477
|
{ id: "error-codes", label: "Error Codes" },
|
|
25409
25478
|
{ id: "rate-limits", label: "Rate Limits" }
|
|
25410
25479
|
] },
|
|
25480
|
+
{ id: "run", label: "Run", children: [
|
|
25481
|
+
{ id: "run-spec", label: "Run a Spec" },
|
|
25482
|
+
{ id: "poll-spec-run", label: "Poll a Run" }
|
|
25483
|
+
] },
|
|
25411
25484
|
{ id: "pipelines", label: "Pipelines", children: [
|
|
25412
25485
|
{ id: "run-pipeline", label: "Run Pipeline" },
|
|
25413
25486
|
{ id: "list-pipelines", label: "List Pipelines" },
|
|
@@ -0,0 +1,45 @@
|
|
|
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 };
|
|
@@ -0,0 +1,45 @@
|
|
|
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 };
|
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`, `document.extraction_failed`,\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"
|
|
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`, `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`, and `fields` for submission correlation),\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",
|
|
@@ -240,6 +240,15 @@
|
|
|
240
240
|
"options": {
|
|
241
241
|
"type": "string",
|
|
242
242
|
"description": "JSON string of extraction options.\n- `async` (boolean) — force async (`true`) or sync (`false`) processing.\n"
|
|
243
|
+
},
|
|
244
|
+
"batch_id": {
|
|
245
|
+
"type": "string",
|
|
246
|
+
"maxLength": 200,
|
|
247
|
+
"description": "Optional caller grouping key stamped on the document (documents.client_batch_id)."
|
|
248
|
+
},
|
|
249
|
+
"metadata": {
|
|
250
|
+
"type": "string",
|
|
251
|
+
"description": "Optional JSON string of a FLAT object `{ [key]: string | number | boolean | null }` (nested objects/arrays rejected 400; ≤50 keys, key ≤128, string value ≤1024), stamped on the document as documents.client_metadata.\n"
|
|
243
252
|
}
|
|
244
253
|
}
|
|
245
254
|
},
|
|
@@ -2335,6 +2344,15 @@
|
|
|
2335
2344
|
],
|
|
2336
2345
|
"default": "realtime",
|
|
2337
2346
|
"description": "\"realtime\" (default) — processed immediately.\n\"batch\" — 50% cost discount, results within 48 hours.\n"
|
|
2347
|
+
},
|
|
2348
|
+
"batch_id": {
|
|
2349
|
+
"type": "string",
|
|
2350
|
+
"maxLength": 200,
|
|
2351
|
+
"description": "Optional caller grouping key stamped on the document (documents.client_batch_id)."
|
|
2352
|
+
},
|
|
2353
|
+
"metadata": {
|
|
2354
|
+
"type": "string",
|
|
2355
|
+
"description": "Optional JSON string of a FLAT object `{ [key]: string | number | boolean | null }` (nested objects/arrays rejected 400; ≤50 keys, key ≤128, string value ≤1024), stamped on the document as documents.client_metadata.\n"
|
|
2338
2356
|
}
|
|
2339
2357
|
}
|
|
2340
2358
|
}
|
|
@@ -17371,9 +17389,14 @@
|
|
|
17371
17389
|
"maxLength": 200,
|
|
17372
17390
|
"description": "Optional display name for the run."
|
|
17373
17391
|
},
|
|
17392
|
+
"batch_id": {
|
|
17393
|
+
"type": "string",
|
|
17394
|
+
"maxLength": 200,
|
|
17395
|
+
"description": "Optional caller grouping key stamped on every document ingested by this call (documents.client_batch_id) and echoed by GET /v1/run/{id}. Opaque to the platform — an external job/batch id for grouping.\n"
|
|
17396
|
+
},
|
|
17374
17397
|
"metadata": {
|
|
17375
17398
|
"type": "string",
|
|
17376
|
-
"description": "Optional JSON string, persisted on the run request
|
|
17399
|
+
"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"
|
|
17377
17400
|
}
|
|
17378
17401
|
}
|
|
17379
17402
|
}
|
|
@@ -17416,11 +17439,14 @@
|
|
|
17416
17439
|
}
|
|
17417
17440
|
},
|
|
17418
17441
|
"400": {
|
|
17419
|
-
"description": "Missing spec_id, no input provided (both files and file_urls empty), or metadata is not valid JSON."
|
|
17442
|
+
"description": "Missing spec_id, no input provided (both files and file_urls empty), or metadata is not a valid flat JSON object."
|
|
17420
17443
|
},
|
|
17421
17444
|
"402": {
|
|
17422
17445
|
"description": "Insufficient credits for an ingest leg."
|
|
17423
17446
|
},
|
|
17447
|
+
"413": {
|
|
17448
|
+
"description": "A file exceeds the tier's per-file size cap."
|
|
17449
|
+
},
|
|
17424
17450
|
"429": {
|
|
17425
17451
|
"$ref": "#/components/responses/RateLimitExceeded"
|
|
17426
17452
|
}
|
|
@@ -17433,7 +17459,7 @@
|
|
|
17433
17459
|
"Run"
|
|
17434
17460
|
],
|
|
17435
17461
|
"summary": "Poll a /v1/run request",
|
|
17436
|
-
"description": "Row status, folded with the compiled pipeline's live progress once one exists (`pipeline_id` set). `status` is `processing` (
|
|
17462
|
+
"description": "Row status, folded with the compiled pipeline's live progress once one exists (`pipeline_id` set). `status` is `processing` (in flight), `completed`, or `failed` — the same vocabulary `POST /v1/run` returns. A non-null `pipeline_id` plus the `progress` object indicate the pipeline has started. Requires read scope.\n",
|
|
17437
17463
|
"operationId": "pollRunRequest",
|
|
17438
17464
|
"security": [
|
|
17439
17465
|
{
|
|
@@ -17471,7 +17497,6 @@
|
|
|
17471
17497
|
"type": "string",
|
|
17472
17498
|
"enum": [
|
|
17473
17499
|
"processing",
|
|
17474
|
-
"running",
|
|
17475
17500
|
"completed",
|
|
17476
17501
|
"failed"
|
|
17477
17502
|
]
|
|
@@ -17492,7 +17517,12 @@
|
|
|
17492
17517
|
"type": "object",
|
|
17493
17518
|
"nullable": true,
|
|
17494
17519
|
"additionalProperties": true,
|
|
17495
|
-
"description": "The
|
|
17520
|
+
"description": "The validated flat metadata object supplied on POST /v1/run, echoed back here."
|
|
17521
|
+
},
|
|
17522
|
+
"batch_id": {
|
|
17523
|
+
"type": "string",
|
|
17524
|
+
"nullable": true,
|
|
17525
|
+
"description": "The caller grouping key supplied on POST /v1/run, echoed back here."
|
|
17496
17526
|
},
|
|
17497
17527
|
"created_at": {
|
|
17498
17528
|
"type": "string",
|
|
@@ -19810,6 +19840,27 @@
|
|
|
19810
19840
|
}
|
|
19811
19841
|
}
|
|
19812
19842
|
},
|
|
19843
|
+
"batch_id": {
|
|
19844
|
+
"type": "string",
|
|
19845
|
+
"description": "Caller grouping key supplied at ingest (batch_id). Present ONLY when the document was tagged; omitted otherwise (backwards-compatible).\n",
|
|
19846
|
+
"example": "2026-07-14-run-042"
|
|
19847
|
+
},
|
|
19848
|
+
"metadata": {
|
|
19849
|
+
"type": "object",
|
|
19850
|
+
"additionalProperties": {
|
|
19851
|
+
"type": [
|
|
19852
|
+
"string",
|
|
19853
|
+
"number",
|
|
19854
|
+
"boolean",
|
|
19855
|
+
"null"
|
|
19856
|
+
]
|
|
19857
|
+
},
|
|
19858
|
+
"description": "Caller flat metadata supplied at ingest. Present ONLY when the document was tagged; omitted otherwise (backwards-compatible).\n",
|
|
19859
|
+
"example": {
|
|
19860
|
+
"customer": "bridgeway",
|
|
19861
|
+
"source": "sftp"
|
|
19862
|
+
}
|
|
19863
|
+
},
|
|
19813
19864
|
"extraction_count": {
|
|
19814
19865
|
"type": "integer",
|
|
19815
19866
|
"example": 1
|
|
@@ -21836,6 +21887,14 @@
|
|
|
21836
21887
|
"type": "object",
|
|
21837
21888
|
"additionalProperties": true
|
|
21838
21889
|
},
|
|
21890
|
+
"resolver_config": {
|
|
21891
|
+
"type": [
|
|
21892
|
+
"object",
|
|
21893
|
+
"null"
|
|
21894
|
+
],
|
|
21895
|
+
"additionalProperties": true,
|
|
21896
|
+
"description": "Per-binding resolver options threaded into the deliverable resolver. First consumer: `null_handling` on the `pipeline.capture` deliverable — `always_null` (default: every declared schema field present, missing values as null), `omit_absent` (valued fields only), or `distinguish` (null = deliberately cleared by resolution; never-captured keys omitted). The sparse modes require a json or ndjson serializer (compatibility validated on create/update).\n"
|
|
21897
|
+
},
|
|
21839
21898
|
"delivery_policy": {
|
|
21840
21899
|
"$ref": "#/components/schemas/DeliveryPolicy"
|
|
21841
21900
|
},
|
|
@@ -21894,6 +21953,11 @@
|
|
|
21894
21953
|
"type": "object",
|
|
21895
21954
|
"additionalProperties": true
|
|
21896
21955
|
},
|
|
21956
|
+
"resolver_config": {
|
|
21957
|
+
"type": "object",
|
|
21958
|
+
"additionalProperties": true,
|
|
21959
|
+
"description": "Per-binding resolver options — e.g. `{\"null_handling\": \"distinguish\"}` on a `pipeline.capture` binding. Sparse modes (`omit_absent`, `distinguish`) require a json/ndjson serializer (400 otherwise).\n"
|
|
21960
|
+
},
|
|
21897
21961
|
"delivery_policy": {
|
|
21898
21962
|
"$ref": "#/components/schemas/DeliveryPolicy"
|
|
21899
21963
|
},
|
|
@@ -21930,6 +21994,11 @@
|
|
|
21930
21994
|
"type": "object",
|
|
21931
21995
|
"additionalProperties": true
|
|
21932
21996
|
},
|
|
21997
|
+
"resolver_config": {
|
|
21998
|
+
"type": "object",
|
|
21999
|
+
"additionalProperties": true,
|
|
22000
|
+
"description": "Per-binding resolver options — e.g. `{\"null_handling\": \"distinguish\"}` on a `pipeline.capture` binding. Sparse modes (`omit_absent`, `distinguish`) require a json/ndjson serializer (400 otherwise).\n"
|
|
22001
|
+
},
|
|
21933
22002
|
"delivery_policy": {
|
|
21934
22003
|
"$ref": "#/components/schemas/DeliveryPolicy"
|
|
21935
22004
|
},
|