@talonic/docs 0.21.30 → 0.21.32
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 +170 -10
- package/dist/index.js +2 -1
- package/dist/index.js.map +1 -1
- package/dist/seo.js +2025 -26
- package/openapi.json +2023 -25
- package/package.json +1 -1
- package/dist/tailwind-preset.d.cts +0 -45
- package/dist/tailwind-preset.d.ts +0 -45
package/dist/content.js
CHANGED
|
@@ -293,7 +293,8 @@ var API_NAV_SECTIONS = [
|
|
|
293
293
|
{ id: "fields", label: "Fields", children: [
|
|
294
294
|
{ id: "list-fields", label: "List Fields" },
|
|
295
295
|
{ id: "field-harmonization", label: "Harmonization" },
|
|
296
|
-
{ id: "get-field", label: "Get Field" }
|
|
296
|
+
{ id: "get-field", label: "Get Field" },
|
|
297
|
+
{ id: "field-contract", label: "Registry Contract" }
|
|
297
298
|
] },
|
|
298
299
|
{ id: "registry", label: "Registry", children: [
|
|
299
300
|
{ id: "registry-query", label: "Query" },
|
|
@@ -18166,7 +18167,8 @@ var sections31 = [
|
|
|
18166
18167
|
"`process.completed` \u2014 A document processing run finished all steps and the result is available.",
|
|
18167
18168
|
"`process.failed` \u2014 A document processing run failed. The error payload includes the step name and error detail.",
|
|
18168
18169
|
"`run.completed` \u2014 A `POST /v1/run` Spec pipeline finished; structured output is available (review-held fields null). The payload carries `records[]` \u2014 always an array, one `{document_id, filename, data, metadata?, batch_id?}` entry per output row (`metadata`/`batch_id` are the submitting request's per-input tags, present only when set) \u2014 alongside the legacy `structured_data` field kept for compatibility; prefer `records`.",
|
|
18169
|
-
"`run.failed` \u2014 A `POST /v1/run` Spec pipeline failed because every document errored during ingest or extraction. When the failure occurred at the ingest leg, the `error` payload includes `document_ids`, the best-effort list of documents that were being ingested."
|
|
18170
|
+
"`run.failed` \u2014 A `POST /v1/run` Spec pipeline failed because every document errored during ingest or extraction. When the failure occurred at the ingest leg, the `error` payload includes `document_ids`, the best-effort list of documents that were being ingested.",
|
|
18171
|
+
"`run.cancelled` \u2014 A Spec pipeline was stopped through `POST /v1/run/:id/cancel` or `POST /v1/pipelines/:id/cancel`. Every live `/v1/run` request on the pipeline receives its own event (`run_id` set); the pipeline-level copy has none. The payload carries `reason` and `cancelled_at`, never output rows; results completed before the cancel stay readable."
|
|
18170
18172
|
] },
|
|
18171
18173
|
{ type: "paragraph", text: "Most integrations subscribe to `extraction.complete` to trigger downstream processing, for example writing structured data to a database or notifying a user. A typical workflow is to pass `webhook_url` on `POST /v1/extract`, then handle the callback payload in your server without polling. New webhook configurations subscribe to `extraction.complete` and `extraction.failed` by default." },
|
|
18172
18174
|
{ type: "paragraph", text: "The `data` object of each payload is event-specific. For `extraction.complete` it includes the `document_id`, `extraction_id`, `filename`, `field_count`, and `confidence_overall` score. Use the `extraction_id` to fetch the full result via `GET /v1/extractions/:id` when the payload does not contain all the fields you need." },
|
|
@@ -33934,10 +33936,10 @@ var sections56 = [
|
|
|
33934
33936
|
seoTitle: "Poll a Spec Run \u2014 GET /v1/run/:id \u2014 Talonic Docs",
|
|
33935
33937
|
description: "Poll a /v1/run request by id: run status folded with live pipeline progress, per-document completion counts, and the echoed batch_id and metadata tags.",
|
|
33936
33938
|
content: [
|
|
33937
|
-
{ type: "paragraph", text: "The **Poll a Run** endpoint, `GET /v1/run/:id`, reads a `/v1/run` request by the `run_id` returned on submission. The response folds the request row together with the compiled pipeline's live progress. The public status vocabulary is
|
|
33939
|
+
{ type: "paragraph", text: "The **Poll a Run** endpoint, `GET /v1/run/:id`, reads a `/v1/run` request by the `run_id` returned on submission. The response folds the request row together with the compiled pipeline's live progress. The public status vocabulary is four states: `processing` covers both ingestion/OCR (before a pipeline exists) and the compiled pipeline actually executing, ending at `completed`, `failed`, or `cancelled` (the run, or the pipeline behind it, was stopped through `POST /v1/run/:id/cancel` or `POST /v1/pipelines/:id/cancel`)." },
|
|
33938
33940
|
{ type: "paragraph", text: "Once the pipeline exists, `pipeline_id` is set and a `progress` object reports per-document counts \u2014 how many documents finished, and how many errored. A run reports `failed` only when **every** document errored (no usable output); a run where some documents succeeded and some errored completes with the error count visible in `progress.error_documents`." },
|
|
33939
33941
|
{ type: "paragraph", text: "The response also echoes `documents[]` \u2014 the same array returned at submission, each entry augmented with a per-document `status` (`processing`, `completed`, or `failed`) so you can tell which specific inputs are still in flight without waiting for the whole run to finish. `documents[]` is omitted for runs submitted before this field existed." },
|
|
33940
|
-
{ type: "callout", variant: "info", text: "Poll this endpoint, not the pipeline: the run request is the stable public handle, and its status is folded live at read time. The same terminal states also fire the run.completed / run.failed webhooks, so poll or subscribe \u2014 whichever fits your integration." },
|
|
33942
|
+
{ type: "callout", variant: "info", text: "Poll this endpoint, not the pipeline: the run request is the stable public handle, and its status is folded live at read time. The same terminal states also fire the run.completed / run.failed / run.cancelled webhooks, so poll or subscribe \u2014 whichever fits your integration. To stop a run, POST /v1/run/:id/cancel \u2014 it cancels the whole pipeline behind the request, including other requests appended to it." },
|
|
33941
33943
|
{
|
|
33942
33944
|
type: "endpoint",
|
|
33943
33945
|
method: "GET",
|
|
@@ -33962,7 +33964,7 @@ var sections56 = [
|
|
|
33962
33964
|
params: [
|
|
33963
33965
|
{ name: "run_id", type: "uuid", description: "The run request id." },
|
|
33964
33966
|
{ name: "spec_id", type: "uuid", description: "The Spec being run." },
|
|
33965
|
-
{ name: "status", type: "string", description: "processing, completed, or
|
|
33967
|
+
{ name: "status", type: "string", description: "processing, completed, failed, or cancelled. processing covers both the pre-pipeline ingestion/OCR wait and the pipeline actually executing; cancelled means the run was stopped and finished documents keep their results." },
|
|
33966
33968
|
{ name: "pipeline_id", type: "uuid | null", description: "The compiled pipeline, once it exists." },
|
|
33967
33969
|
{ name: "pipeline_mode", type: "string", description: "Present only when recorded: the effective mode the run resolved to (new or append). Under append the pipeline is shared across requests, and status/progress are scoped to THIS request's own documents." },
|
|
33968
33970
|
{ name: "input_count", type: "integer", description: "Total inputs accepted at submission." },
|
|
@@ -34041,7 +34043,7 @@ var sections56 = [
|
|
|
34041
34043
|
content: [
|
|
34042
34044
|
{ type: "paragraph", text: '`GET /v1/run/{id}/results` returns **this `/v1/run` request\'s own structured rows** as poll-able JSON \u2014 the same governed read behind `GET /v1/pipelines/{id}/results` (review holdback, demoted-field projection, `__` diagnostics filtering, assembly awareness), scoped to exactly the documents *this call* submitted. It answers "what did MY submitted documents produce," which is the question most `/v1/run` integrations actually have, without needing to track the compiled `pipeline_id` at all.' },
|
|
34043
34045
|
{ type: "paragraph", text: "This route is ALWAYS the per-document view, scoped to the request's own `documents[]` echo, uniformly across `new` and `append` pipeline modes. This is a **deliberate divergence** from the per-run `run.completed` webhook: for an unscoped, non-append assembly run, that webhook actually delivers COMPOSED rows. Composed output for an assembly run lives at `GET /v1/pipelines/{id}/results?view=composed` instead \u2014 this response's `links.composed_results` points there once a pipeline exists, so the divergence is always discoverable from the response itself." },
|
|
34044
|
-
{ type: "paragraph", text: "Only `document_id` and `include` filter the rows here. `run_id`, `view`, `since`, `until`, and `status` are pipeline-route-only parameters \u2014 supplying any of them 400s with `unsupported_filter` rather than silently ignoring it, since the run itself already IS the scope and its time window is already bounded. `include=cells,provenance,audit` behave exactly as on the pipeline route: `cells` for per-field value/status/confidence/source, `provenance` for
|
|
34046
|
+
{ type: "paragraph", text: "Only `document_id` and `include` filter the rows here. `run_id`, `view`, `since`, `until`, and `status` are pipeline-route-only parameters \u2014 supplying any of them 400s with `unsupported_filter` rather than silently ignoring it, since the run itself already IS the scope and its time window is already bounded. `include=cells,provenance,provenance.nested,audit` behave exactly as on the pipeline route: `cells` for per-field value/status/confidence/source, `provenance` for the per-field entry the webhook sidecar also carries (kind, quote, `match` grade, confidence, path, markdown offsets), `provenance.nested` for per-leaf entries of structured fields, `audit` for the bounded cell-version trail \u2014 see [Pipeline Results](get-pipeline-results) for the full shape and the held-value redaction rules (a held field's value is never exposed under any include)." },
|
|
34045
34047
|
{ type: "paragraph", text: "Two zero-states return `200` with an empty page and a `scope_note` explaining why \u2014 never `404` \u2014 since pollers hit these windows constantly: no compiled pipeline exists yet for this run (still ingesting, or it failed before a pipeline was created), or the run predates per-request document tracking (an echo-less legacy row whose membership is unknowable, so an honest empty page beats a guess). The envelope's `status` folds the same three-state vocabulary as `GET /v1/run/{id}` (`processing`/`completed`/`failed`) and, unlike the pipeline route's own `status`, it DOES settle even when the underlying pipeline is shared under append mode \u2014 poll this route, not the pipeline route, for append integrations that need a status that eventually reaches `completed`." },
|
|
34046
34048
|
{ type: "callout", variant: "info", text: 'Prefer this endpoint over GET /v1/pipelines/{id}/results whenever your integration thinks in terms of "my /v1/run call", not "the pipeline it landed on" \u2014 it needs no pipeline_id bookkeeping and its status always settles, even under append mode.' },
|
|
34047
34049
|
{
|
|
@@ -34055,7 +34057,7 @@ var sections56 = [
|
|
|
34055
34057
|
title: "Query parameters",
|
|
34056
34058
|
params: [
|
|
34057
34059
|
{ name: "document_id", type: "string", description: "Comma-separated document UUIDs (1-100), intersected with this run's own documents echo." },
|
|
34058
|
-
{ name: "include", type: "string", description: "Comma-separated subset of cells, provenance, audit." },
|
|
34060
|
+
{ name: "include", type: "string", description: "Comma-separated subset of cells, provenance, provenance.nested, audit." },
|
|
34059
34061
|
{ name: "limit", type: "integer", default: "25", description: "Maximum records per page (max 100)." },
|
|
34060
34062
|
{ name: "cursor", type: "string", description: "Pagination cursor from a previous response's pagination.next_cursor." }
|
|
34061
34063
|
]
|
|
@@ -36649,6 +36651,76 @@ var sections63 = [
|
|
|
36649
36651
|
{ question: "What is the raw_field_name in occurrences?", answer: "The `raw_field_name` is the original field name as it appeared in the source document before canonicalization. For example, a field canonicalized as `invoice_number` might have raw names like `Inv. No.`, `Invoice #`, or `Rechnungsnummer` depending on the document. This helps you understand the naming variations the registry has normalized." }
|
|
36650
36652
|
],
|
|
36651
36653
|
mentions: ["field detail", "recent occurrences", "similar fields", "cosine similarity", "name embedding", "field merge", "raw field name"]
|
|
36654
|
+
},
|
|
36655
|
+
{
|
|
36656
|
+
slug: "field-contract",
|
|
36657
|
+
parentSlug: "fields",
|
|
36658
|
+
title: "Registry Contract: Resolve, Card, Values, History",
|
|
36659
|
+
seoTitle: "Field Registry Contract \u2014 Resolve, Concept Card, Values, History",
|
|
36660
|
+
description: "The Field Registry as a source of truth for agents and apps: stable ids under curation, name resolution, named maturity levels, the concept card, cross-document values with provenance, curation history and field.* events.",
|
|
36661
|
+
content: [
|
|
36662
|
+
{ type: "paragraph", text: "These reads make the Field Registry safe to build on: an id you stored keeps working after a merge, a name resolves to the live concept, every read names its **maturity** level, and curation is announced on the event feed so a cached vocabulary can invalidate instead of polling." },
|
|
36663
|
+
{ type: "heading", level: 2, id: "field-maturity", text: "Maturity levels" },
|
|
36664
|
+
{ type: "paragraph", text: "Every `/v1/fields*` response carries `maturity` beside the frozen numeric `tier`. Treat it as the contract for what you may rely on." },
|
|
36665
|
+
{ type: "param-table", title: "Levels", params: [
|
|
36666
|
+
{ name: "core", type: "tier 1", description: "Universal, fully trusted. Safe to bind schemas, dashboards and downstream models to. Demotion is hysteresis-guarded and always emits `field.demoted`." },
|
|
36667
|
+
{ name: "proven", type: "tier 2", description: "Recurring and useful. Stable id; the name may still be groomed, announced by `field.renamed` / `field.merged`." },
|
|
36668
|
+
{ name: "candidate", type: "tier 3", description: "Newly discovered. May be merged, renamed or expire with no notice beyond the event feed. Do not hard-code." }
|
|
36669
|
+
] },
|
|
36670
|
+
{ type: "paragraph", text: "`GET /v1/fields?maturity=core|proven|candidate` filters by level. The list hides rows merged into another concept unless `include_superseded=true`, so a cached vocabulary never carries two ids for one concept." },
|
|
36671
|
+
{ type: "heading", level: 2, id: "field-identity", text: "Stable identity under curation" },
|
|
36672
|
+
{ type: "paragraph", text: "When curation merges a concept into a survivor, the absorbed row stays readable with `superseded_by: { id, links.self }` \u2014 `GET /v1/fields/{id}` never 404s a stored id. Pass `follow_redirects=true` to receive the survivor instead; the hops are listed in `redirected_from` so you can rewrite your keys." },
|
|
36673
|
+
{ type: "endpoint", method: "GET", path: "/v1/fields/resolve", summary: "Resolve a NAME to the live concept.", blocks: [
|
|
36674
|
+
{ type: "param-table", title: "Query parameters", params: [
|
|
36675
|
+
{ name: "name", type: "string", required: true, description: "The field name, in any spelling you hold: `Invoice No`, `invoice_number`, `Rechnungsnummer`." },
|
|
36676
|
+
{ name: "follow_redirects", type: "boolean", description: "Walk `superseded_by` to the survivor.", default: "true" }
|
|
36677
|
+
] },
|
|
36678
|
+
{ type: "paragraph", text: "Lookup order, first hit wins: exact `canonical_name` \u2192 the registry `match_key` fold (separator, case, accent and plural insensitive \u2014 the same fold the resolver binds with) \u2192 a merge alias \u2192 exact `synonyms[]` containment (names folded in by merges and cleanup) \u2192 case-insensitive canonical name \u2192 case-insensitive synonym. The first four arms are index lookups; the last two scan the tenant registry and run only when everything indexed missed. The response says which arm matched; no match is `404 unknown_field`." },
|
|
36679
|
+
{ type: "code", language: "json", title: "Response", code: `{
|
|
36680
|
+
"name": "Invoice No",
|
|
36681
|
+
"matched_by": "synonym",
|
|
36682
|
+
"redirected_from": ["b7c1\u2026"],
|
|
36683
|
+
"field": { "id": "a1b2\u2026", "canonical_name": "invoice_number", "maturity": "proven", "tier": 2, "synonyms": ["inv_no", "invoice no"], "superseded_by": null, "links": { "card": "/v1/fields/a1b2\u2026/card" } }
|
|
36684
|
+
}` }
|
|
36685
|
+
] },
|
|
36686
|
+
{ type: "heading", level: 2, id: "field-card", text: "The concept card" },
|
|
36687
|
+
{ type: "endpoint", method: "GET", path: "/v1/fields/{id}/card", summary: "One read that says what a concept means and how it behaves.", blocks: [
|
|
36688
|
+
{ type: "param-table", title: "Response sections", params: [
|
|
36689
|
+
{ name: "definition", type: "object", description: "`description`, `instruction` (the master extraction instruction), `variance_notes`, `synonyms[]`, `aliases[]`." },
|
|
36690
|
+
{ name: "identity", type: "object", description: "`pinned`, `source`, `link_key`, `superseded_by`, `absorbed[]` (concepts merged INTO this one that still exist as redirect rows)." },
|
|
36691
|
+
{ name: "occurrence", type: "object", description: "`occurrence_count`, `document_count`, `occurrence_rate`, `first_seen_at`, `last_seen_at`, `promoted_at`, `document_type_distribution`." },
|
|
36692
|
+
{ name: "values", type: "object", description: "Sources-IAM filtered distribution over the concept and its absorbed redirects: `total`, `distinct_count`, `top[]` (value, count, share), `examples[]`." },
|
|
36693
|
+
{ name: "usage", type: "object", description: "`schema_count`, `schema_field_count` \u2014 how many Specs bind the concept." }
|
|
36694
|
+
] }
|
|
36695
|
+
] },
|
|
36696
|
+
{ type: "heading", level: 2, id: "field-values", text: "Values across documents" },
|
|
36697
|
+
{ type: "endpoint", method: "GET", path: "/v1/fields/{id}/values", summary: "Current values of the concept across documents, with provenance.", blocks: [
|
|
36698
|
+
{ type: "param-table", title: "Query parameters", params: [
|
|
36699
|
+
{ name: "document_id", type: "string", description: "Only occurrences on this document." },
|
|
36700
|
+
{ name: "value", type: "string", description: "Case-insensitive contains filter on the value text." },
|
|
36701
|
+
{ name: "include_redirected", type: "boolean", description: "Include occurrences still bound to concepts merged into this one (`provenance.via_redirect: true`).", default: "true" },
|
|
36702
|
+
{ name: "limit / cursor / order", type: "string", description: "Cursor pagination, newest first by default (max 100 per page)." }
|
|
36703
|
+
] },
|
|
36704
|
+
{ type: "paragraph", text: "One row per bound occurrence \u2014 a per-cell table column is several rows sharing `document_id`. Each row carries `value`, `confidence`, and `provenance` (`raw_field_name`, verbatim `source_text`, the `resolved_by` band, `needs_confirmation`). Rows and `pagination.total` are Sources-IAM filtered as the key's minting user." }
|
|
36705
|
+
] },
|
|
36706
|
+
{ type: "heading", level: 2, id: "field-history", text: "Curation history and events" },
|
|
36707
|
+
{ type: "endpoint", method: "GET", path: "/v1/fields/{id}/history", summary: "The curation trail, newest first.", blocks: [
|
|
36708
|
+
{ type: "paragraph", text: "Event kinds: `tier_changed` (with `from_maturity` / `to_maturity` and `direction`), `merge_log_absorbed` / `merge_log_merged_into`, `absorbed`, `superseded`, `renamed`, `rewritten`, `split`, `deleted`, `alias_added`. Never follows redirects \u2014 the trail belongs to the id asked for." }
|
|
36709
|
+
] },
|
|
36710
|
+
{ type: "paragraph", text: "The same changes arrive live on `GET /v1/events` (and to webhook / delivery bindings) as `field.graduated`, `field.promoted`, `field.demoted`, `field.merged` and `field.renamed`. Every payload names the concept by stable `field_id`; `field.merged` carries `merged_into_id` and `mode` (`redirect` keeps the absorbed row, `deleted` removes it). Events are published only after the curation write has committed." },
|
|
36711
|
+
{ type: "callout", variant: "info", text: "Caching the vocabulary? Store `id`, read `maturity`, subscribe to `field.*`, and re-resolve through `GET /v1/fields/resolve` when a name stops matching. Never key on `canonical_name` alone." }
|
|
36712
|
+
],
|
|
36713
|
+
related: [
|
|
36714
|
+
{ label: "List Fields", slug: "list-fields" },
|
|
36715
|
+
{ label: "Get Field", slug: "get-field" },
|
|
36716
|
+
{ label: "Webhook Events", slug: "webhook-events" }
|
|
36717
|
+
],
|
|
36718
|
+
faq: [
|
|
36719
|
+
{ question: "A field id I stored now returns superseded_by. Did I lose data?", answer: "No. The absorbed row stays readable and its occurrences move to the survivor. Read `superseded_by.id` (or call with `follow_redirects=true`) and rewrite your key; `GET /v1/fields/{id}/values` on the survivor includes the not-yet-repointed occurrences with `provenance.via_redirect: true`." },
|
|
36720
|
+
{ question: "Which maturity level is safe to hard-code?", answer: "`core`. A `proven` concept keeps its id but its name may still be groomed; a `candidate` may be merged or expire. Subscribe to the `field.*` events either way so a cache never goes stale silently." },
|
|
36721
|
+
{ question: "How do I go from a name in a user prompt to the right concept?", answer: "Call `GET /v1/fields/resolve?name=` with the wording you have. It tries the exact canonical name, the registry spelling fold, merge aliases and synonyms in that order (then case-insensitive fallbacks), follows redirects, and tells you which arm matched \u2014 then read `/card` to confirm the definition and example values before querying." }
|
|
36722
|
+
],
|
|
36723
|
+
mentions: ["field registry", "maturity", "core", "proven", "candidate", "superseded_by", "follow_redirects", "resolve field name", "concept card", "field values", "field history", "field.merged", "field.promoted", "field.graduated", "field.renamed", "field.demoted"]
|
|
36652
36724
|
}
|
|
36653
36725
|
];
|
|
36654
36726
|
|
|
@@ -39462,7 +39534,7 @@ curl -s -X POST "https://api.talonic.com/v1/pipelines/$PIPELINE_ID/data-product"
|
|
|
39462
39534
|
{ name: "until", type: "string", description: "ISO 8601 timestamp. Only records with completed_at at or before this bound." },
|
|
39463
39535
|
{ name: "status", type: "string", description: "Comma-separated subset of complete, partial, error, processing." },
|
|
39464
39536
|
{ name: "view", type: "string", description: "composed or documents. Defaults to composed when the run has an assembly product set, else documents." },
|
|
39465
|
-
{ name: "include", type: "string", description: "Comma-separated subset of cells, provenance, audit." },
|
|
39537
|
+
{ name: "include", type: "string", description: "Comma-separated subset of cells, provenance, provenance.nested, audit. provenance.nested adds one entry per scalar leaf of a structured (array/object) field." },
|
|
39466
39538
|
{ name: "limit", type: "integer", default: "25", description: "Maximum records per page (max 100)." },
|
|
39467
39539
|
{ name: "cursor", type: "string", description: "Pagination cursor from a previous response's pagination.next_cursor." }
|
|
39468
39540
|
]
|
|
@@ -39490,7 +39562,7 @@ curl -s -X POST "https://api.talonic.com/v1/pipelines/$PIPELINE_ID/data-product"
|
|
|
39490
39562
|
{ name: "data", type: "array", description: "The result records for this page." },
|
|
39491
39563
|
{ name: "data[].fields", type: "object", description: "field_key -> clean value. Held fields are null; demoted fields and __ diagnostics are absent." },
|
|
39492
39564
|
{ name: "data[].cells", type: "object", description: "Present only with include=cells. field_key -> { value, status, confidence, source, document_id, filename }." },
|
|
39493
|
-
{ name: "data[].provenance", type: "object", description: "Present only with include=provenance. field_key -> { kind, text?, derived_reason?, source_document_id?, page_index
|
|
39565
|
+
{ name: "data[].provenance", type: "object", description: "Present only with include=provenance. field_key -> { path, kind, match, text?, derived_reason?, source_document_id?, char_start?, char_end?, page_index?, confidence } \u2014 the same entry shape the pipeline.capture webhook sidecar carries. match (exact | approximate | none) grades the quote against GET /v1/documents/{id}/markdown; char_start/char_end are UTF-16 offsets into that markdown. Held fields project kind-only with match none." },
|
|
39494
39566
|
{ name: "data[].audit", type: "object", description: "Present only with include=audit. field_key -> the cell-version trail, held-redacted whole-trail if the latest version is held." },
|
|
39495
39567
|
{ name: "pagination", type: "object", description: "{ total, limit, has_more, next_cursor } \u2014 cursor keyed on record_id." },
|
|
39496
39568
|
{ name: "pending_review_count", type: "integer", description: "Held cells in this page's records only." },
|
|
@@ -39850,7 +39922,8 @@ curl -s https://api.talonic.com/v1/pipelines/a1b2c3d4-e5f6-7890-abcd-ef123456789
|
|
|
39850
39922
|
related: [
|
|
39851
39923
|
{ label: "Get Pipeline", slug: "get-pipeline" },
|
|
39852
39924
|
{ label: "List Pipelines", slug: "list-pipelines" },
|
|
39853
|
-
{ label: "Run Pipeline", slug: "run-pipeline" }
|
|
39925
|
+
{ label: "Run Pipeline", slug: "run-pipeline" },
|
|
39926
|
+
{ label: "Cancel Pipeline", slug: "cancel-pipeline" }
|
|
39854
39927
|
],
|
|
39855
39928
|
faq: [
|
|
39856
39929
|
{ question: "Does deleting a run delete its source documents?", answer: "No. Deletion removes the run's owned data (value cells, record sets, documents, field states), but the Spec's seed record set and the underlying source documents are untouched." },
|
|
@@ -39860,6 +39933,93 @@ curl -s https://api.talonic.com/v1/pipelines/a1b2c3d4-e5f6-7890-abcd-ef123456789
|
|
|
39860
39933
|
{ question: "What do reads of the run return after the delete?", answer: "GET /v1/pipelines/{id}, /progress, and /results all return 404 not_found once the delete commits, and the run no longer appears in GET /v1/pipelines. Treat that 404 as terminal in polling loops: stop polling and drop any cached poll URLs, since the id will never resolve again." }
|
|
39861
39934
|
],
|
|
39862
39935
|
mentions: ["delete pipeline run", "value cells", "record sets", "tenant isolation", "irreversible deletion", "retention hold", "reconciliation case"]
|
|
39936
|
+
},
|
|
39937
|
+
{
|
|
39938
|
+
slug: "cancel-pipeline",
|
|
39939
|
+
parentSlug: "pipelines",
|
|
39940
|
+
title: "Cancel Pipeline",
|
|
39941
|
+
seoTitle: "Cancel a Running Pipeline \u2014 POST /v1/pipelines/:id/cancel \u2014 Talonic Docs",
|
|
39942
|
+
description: "Stop a running document processing pipeline: no new work starts, documents still in flight are marked cancelled, finished documents keep their results, and the run stays available for new submissions.",
|
|
39943
|
+
content: [
|
|
39944
|
+
{ type: "paragraph", text: "`POST /v1/pipelines/{id}/cancel` **stops a running pipeline**. From the moment the call returns, no new phase starts for any of its documents; documents that were still mid-phase finish their current step and are then marked cancelled; documents that had already completed keep their results and stay readable through `GET /v1/pipelines/{id}/results`. The run's status becomes `cancelled`, and every live `POST /v1/run` request attached to the pipeline is cancelled with it (each receives its own `run.cancelled` webhook)." },
|
|
39945
|
+
{ type: "paragraph", text: "A cancel is not a delete. Nothing is removed, and the pipeline keeps accepting work afterwards: a new `/v1/run` submission in append mode, `POST /v1/pipelines/{id}/rerun`, or adding documents reopens it exactly like a completed run. Cancelling stops further spend; it does not refund calls that were already made." },
|
|
39946
|
+
{ type: "paragraph", text: "The call is idempotent. Cancelling a run that is already `completed`, `cancelled`, or `archived` returns `200` with `already: true` and changes nothing, so a retrying client never fails on its own success. Requires an API key with the `write` scope." },
|
|
39947
|
+
{ type: "callout", variant: "info", text: "Documents that were in flight at the moment of the cancel finish their current phase before stopping (a single model call at most). The response's `documents.cancelled` count is final once `status` reads `cancelled`; poll `GET /v1/pipelines/{id}/progress` to watch the last documents drain." },
|
|
39948
|
+
{
|
|
39949
|
+
type: "endpoint",
|
|
39950
|
+
method: "POST",
|
|
39951
|
+
path: "/v1/pipelines/{id}/cancel",
|
|
39952
|
+
summary: "Stop a running pipeline.",
|
|
39953
|
+
blocks: [
|
|
39954
|
+
{
|
|
39955
|
+
type: "param-table",
|
|
39956
|
+
title: "Body parameters",
|
|
39957
|
+
params: [
|
|
39958
|
+
{ name: "reason", type: "string", required: false, description: "Optional free text (up to 500 characters) recorded on the run and carried by the run.cancelled webhook." }
|
|
39959
|
+
]
|
|
39960
|
+
}
|
|
39961
|
+
]
|
|
39962
|
+
},
|
|
39963
|
+
{
|
|
39964
|
+
type: "code",
|
|
39965
|
+
language: "bash",
|
|
39966
|
+
title: "Request",
|
|
39967
|
+
code: `curl -X POST https://api.talonic.com/v1/pipelines/a1b2c3d4-e5f6-7890-abcd-ef1234567890/cancel \\
|
|
39968
|
+
-H "Authorization: Bearer $TALONIC_API_KEY" \\
|
|
39969
|
+
-H "Content-Type: application/json" \\
|
|
39970
|
+
-d '{"reason": "wrong Spec version"}'`
|
|
39971
|
+
},
|
|
39972
|
+
{ type: "heading", level: 2, id: "cancel-pipeline-response", text: "Response" },
|
|
39973
|
+
{
|
|
39974
|
+
type: "param-table",
|
|
39975
|
+
title: "Response fields",
|
|
39976
|
+
params: [
|
|
39977
|
+
{ name: "id", type: "string", description: "UUID of the pipeline run." },
|
|
39978
|
+
{ name: "status", type: "string", description: "The run's status after the call: cancelled, or the terminal state it already had." },
|
|
39979
|
+
{ name: "already", type: "boolean", description: "True when the run was already terminal and nothing changed." },
|
|
39980
|
+
{ name: "cancelled_at", type: "string | null", description: "ISO-8601 timestamp of the cancellation." },
|
|
39981
|
+
{ name: "documents", type: "object", description: "{ total, completed, cancelled, errored } \u2014 completed documents keep their results; cancelled are the ones this call stopped." },
|
|
39982
|
+
{ name: "run_requests", type: "string[]", description: "run_ids of the /v1/run requests cancelled along with the pipeline." },
|
|
39983
|
+
{ name: "jobs", type: "object", description: "{ removed, failed, scanned, scan_capped, timed_out } \u2014 best-effort removal of the run's queued jobs; a survivor stops at its next checkpoint." }
|
|
39984
|
+
]
|
|
39985
|
+
},
|
|
39986
|
+
{
|
|
39987
|
+
type: "code",
|
|
39988
|
+
title: "Response",
|
|
39989
|
+
code: `{
|
|
39990
|
+
"id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
|
|
39991
|
+
"status": "cancelled",
|
|
39992
|
+
"already": false,
|
|
39993
|
+
"cancelled_at": "2026-08-28T10:15:00.000Z",
|
|
39994
|
+
"documents": { "total": 120, "completed": 83, "cancelled": 37, "errored": 0 },
|
|
39995
|
+
"run_requests": ["9f3c1e2a-0b7d-4c8e-9a1f-2d3e4f5a6b7c"],
|
|
39996
|
+
"jobs": { "removed": 37, "failed": 0, "scanned": 412, "scan_capped": false, "timed_out": false }
|
|
39997
|
+
}`
|
|
39998
|
+
},
|
|
39999
|
+
{ type: "heading", level: 2, id: "cancel-pipeline-errors", text: "Errors" },
|
|
40000
|
+
{
|
|
40001
|
+
type: "param-table",
|
|
40002
|
+
title: "Error responses",
|
|
40003
|
+
params: [
|
|
40004
|
+
{ name: "400", type: "bad_request", description: "Invalid pipeline ID format, or an active organization is required (the master view cannot cancel)." },
|
|
40005
|
+
{ name: "401", type: "unauthorized", description: "Missing or invalid API key." },
|
|
40006
|
+
{ name: "404", type: "not_found", description: "No pipeline with this ID exists for your organization." },
|
|
40007
|
+
{ name: "429", type: "rate_limited", description: "Too many requests. Retry after the period indicated in the Retry-After header." }
|
|
40008
|
+
]
|
|
40009
|
+
}
|
|
40010
|
+
],
|
|
40011
|
+
related: [
|
|
40012
|
+
{ label: "Get Pipeline", slug: "get-pipeline" },
|
|
40013
|
+
{ label: "Pipeline Progress", slug: "get-pipeline-progress" },
|
|
40014
|
+
{ label: "Delete Pipeline", slug: "delete-pipeline" }
|
|
40015
|
+
],
|
|
40016
|
+
faq: [
|
|
40017
|
+
{ question: "What happens to documents that were being processed?", answer: "They finish the phase they are in (at most one model call) and are then marked cancelled. Documents that had already finished keep their results." },
|
|
40018
|
+
{ question: "Can I resume a cancelled run?", answer: "Yes. Rerun it, add documents, or submit to it again in append mode: the run reopens exactly like a completed one. Cancelled documents are retried with the rerun / retry endpoints." },
|
|
40019
|
+
{ question: "Does cancelling refund credits?", answer: "No. Cancelling stops further model calls; calls already made are billed as usual." },
|
|
40020
|
+
{ question: "I submitted through /v1/run \u2014 which endpoint do I use?", answer: "POST /v1/run/{id}/cancel resolves the run to its pipeline and cancels the whole pipeline, including any other requests appended to it; each affected request receives its own run.cancelled webhook." }
|
|
40021
|
+
],
|
|
40022
|
+
mentions: ["cancel pipeline run", "stop processing", "run.cancelled webhook", "idempotent cancel", "append mode"]
|
|
39863
40023
|
}
|
|
39864
40024
|
];
|
|
39865
40025
|
|
package/dist/index.js
CHANGED
|
@@ -8126,7 +8126,8 @@ var API_NAV_SECTIONS = [
|
|
|
8126
8126
|
{ id: "fields", label: "Fields", children: [
|
|
8127
8127
|
{ id: "list-fields", label: "List Fields" },
|
|
8128
8128
|
{ id: "field-harmonization", label: "Harmonization" },
|
|
8129
|
-
{ id: "get-field", label: "Get Field" }
|
|
8129
|
+
{ id: "get-field", label: "Get Field" },
|
|
8130
|
+
{ id: "field-contract", label: "Registry Contract" }
|
|
8130
8131
|
] },
|
|
8131
8132
|
{ id: "registry", label: "Registry", children: [
|
|
8132
8133
|
{ id: "registry-query", label: "Query" },
|