@talonic/docs 0.21.29 → 0.21.31
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 +1264 -152
- package/dist/seo.js +1185 -23
- package/openapi.json +1185 -23
- 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
|
@@ -68,7 +68,7 @@ var openapi_default = {
|
|
|
68
68
|
},
|
|
69
69
|
{
|
|
70
70
|
name: "Delivery",
|
|
71
|
-
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`
|
|
71
|
+
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.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`dispatch.row.requested` (a Spec Dispatch node was manually triggered at row\ngrain \u2014 one signal per record; payload carries `pipeline_id`, `spec_id`,\n`stage_id`, `dispatch_id`, `row_source` (`document` | `product`),\n`document_id` and optional `product_record_id`; deliver with the\n`pipeline.capture` deliverable),\n`dispatch.pipeline.requested` (manual Dispatch at pipeline grain \u2014 one signal\nper chunk of structured rows; payload carries `pipeline_id`, `spec_id`,\n`stage_id`, `dispatch_id`, `scope` (`all` | `changed_since`),\n`chunk` (`{ index, count }`) and `record_count`; deliver with `pipeline.rows`),\n`dispatch.assembly.requested` (same payload, assembled records; deliver with\n`pipeline.assembly_product`),\n`dispatch.matcher.requested` (same payload, matched records; deliver with\n`pipeline.matcher_product`),\n`dispatch.data_product.requested` (manual Dispatch at data-product grain \u2014 one\nsignal per dispatch; payload carries `pipeline_id`, `spec_id`, `stage_id`,\n`dispatch_id` and `data_product_id`; deliver with `data_product.export`),\n`pipeline.completed` (a One Engine pipeline finished every phase; payload\ncarries `pipeline_id`, `schema_id` and optional `run_request_id`/\n`document_ids` for the submitting `POST /v1/run` request; deliver with the\n`pipeline.rows` deliverable),\n`pipeline.failed` (a One Engine pipeline run terminated with a fatal error;\npayload carries the `error` object plus optional `run_request_id` and\n`schema_id` \u2014 `pipeline_id` is null when the failure preceded pipeline\ncreation, in which case the run-request id is the only handle; deliver with\nthe `notification` deliverable).\n\n**Typed structured values:** `pipeline.completed` and `document.structured`\nemit typed field values natively \u2014 a field backed by a structured\nsubschema arrives as an array of objects (e.g.\n`[{"label":"BoL","value":"123"}]`), not a stringified scalar, and each\nobject\'s subfields are typed per their declared subfield `data_type`. A\nconsumer that assumes every field value is a scalar breaks silently on\nsuch a field; that is the consumer\'s contract violation, not a payload\nchange. `document.extracted` is unaffected \u2014 its arrays are pre-flattened\nat the capture layer.\n\n\nThe same subfield typing applies on `json`/`ndjson` delivery and on the\n`/v1` poll \u2014 `GET /v1/run/{id}/results` and `GET /v1/pipelines/{id}/results`,\nboth the `fields` map and the `?include=cells` `cells[].value` \u2014 so the\npoll and the webhook agree. Per-subfield miss behavior follows the wire\nform of the declared type: a `number` or `boolean` subfield value that\nfails to parse emits `null` (these types have no string wire form, so the\nwire stays strictly number-or-null / boolean-or-null); an `enum` or `date`\nsubfield value that is out-of-vocabulary or unparseable passes through as\nits raw string (these types ARE string-typed on the wire, so a present\nvalue is never dropped). A nested array or object subfield value passes\nthrough raw. The `audit[].value` view is the deliberate raw history view\nand is never type-projected. Every extraction WIRE leaf remains\nstring-typed \u2014 subfield typing is derived at this outbound edge, not\ncarried on the extraction wire.\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'
|
|
72
72
|
},
|
|
73
73
|
{
|
|
74
74
|
name: "Filter",
|
|
@@ -674,6 +674,99 @@ var openapi_default = {
|
|
|
674
674
|
}
|
|
675
675
|
}
|
|
676
676
|
},
|
|
677
|
+
patch: {
|
|
678
|
+
operationId: "updateDocumentTags",
|
|
679
|
+
summary: "Update a document's caller tags",
|
|
680
|
+
description: "Post-ingest update of the caller tags accepted at upload time (`batch_id` and `metadata`). `metadata` is MERGED over the stored bag \u2014 a patch key wins, `null` is a stored value (never a deletion), and the merged bag must satisfy the same caps as at ingest (\u226450 keys, key \u2264128 chars, string value \u22641024 chars) or the request is rejected with the document unchanged. `batch_id` is three-state: a non-blank string sets it, `null` clears it, and omitting the field leaves it untouched. Note that a byte-identical re-upload does NOT update tags (dedup keeps the canonical document's original tags) \u2014 this endpoint is the way to change what an existing document id carries. Pipelines read `batch_id`/`metadata` at run time, so a later run or rerun of the document picks the new tags up.",
|
|
681
|
+
tags: [
|
|
682
|
+
"Documents"
|
|
683
|
+
],
|
|
684
|
+
parameters: [
|
|
685
|
+
{
|
|
686
|
+
$ref: "#/components/parameters/ResourceId"
|
|
687
|
+
}
|
|
688
|
+
],
|
|
689
|
+
requestBody: {
|
|
690
|
+
required: true,
|
|
691
|
+
content: {
|
|
692
|
+
"application/json": {
|
|
693
|
+
schema: {
|
|
694
|
+
type: "object",
|
|
695
|
+
minProperties: 1,
|
|
696
|
+
properties: {
|
|
697
|
+
batch_id: {
|
|
698
|
+
type: "string",
|
|
699
|
+
nullable: true,
|
|
700
|
+
maxLength: 200,
|
|
701
|
+
description: "Grouping key \u2014 string sets, null clears, absent untouched."
|
|
702
|
+
},
|
|
703
|
+
metadata: {
|
|
704
|
+
type: "object",
|
|
705
|
+
additionalProperties: {
|
|
706
|
+
nullable: true,
|
|
707
|
+
oneOf: [
|
|
708
|
+
{
|
|
709
|
+
type: "string"
|
|
710
|
+
},
|
|
711
|
+
{
|
|
712
|
+
type: "number"
|
|
713
|
+
},
|
|
714
|
+
{
|
|
715
|
+
type: "boolean"
|
|
716
|
+
}
|
|
717
|
+
]
|
|
718
|
+
},
|
|
719
|
+
description: "Flat primitive bag merged over the stored metadata."
|
|
720
|
+
}
|
|
721
|
+
}
|
|
722
|
+
}
|
|
723
|
+
}
|
|
724
|
+
}
|
|
725
|
+
},
|
|
726
|
+
responses: {
|
|
727
|
+
"200": {
|
|
728
|
+
description: "Updated tags. `batch_id`/`metadata` are echoed only when set.",
|
|
729
|
+
content: {
|
|
730
|
+
"application/json": {
|
|
731
|
+
schema: {
|
|
732
|
+
type: "object",
|
|
733
|
+
required: [
|
|
734
|
+
"id",
|
|
735
|
+
"updated"
|
|
736
|
+
],
|
|
737
|
+
properties: {
|
|
738
|
+
id: {
|
|
739
|
+
type: "string",
|
|
740
|
+
format: "uuid"
|
|
741
|
+
},
|
|
742
|
+
updated: {
|
|
743
|
+
type: "boolean"
|
|
744
|
+
},
|
|
745
|
+
batch_id: {
|
|
746
|
+
type: "string"
|
|
747
|
+
},
|
|
748
|
+
metadata: {
|
|
749
|
+
type: "object"
|
|
750
|
+
}
|
|
751
|
+
}
|
|
752
|
+
}
|
|
753
|
+
}
|
|
754
|
+
}
|
|
755
|
+
},
|
|
756
|
+
"400": {
|
|
757
|
+
$ref: "#/components/responses/BadRequest"
|
|
758
|
+
},
|
|
759
|
+
"401": {
|
|
760
|
+
$ref: "#/components/responses/Unauthorized"
|
|
761
|
+
},
|
|
762
|
+
"404": {
|
|
763
|
+
$ref: "#/components/responses/NotFound"
|
|
764
|
+
},
|
|
765
|
+
"429": {
|
|
766
|
+
$ref: "#/components/responses/RateLimitExceeded"
|
|
767
|
+
}
|
|
768
|
+
}
|
|
769
|
+
},
|
|
677
770
|
delete: {
|
|
678
771
|
operationId: "deleteDocument",
|
|
679
772
|
summary: "Delete a document",
|
|
@@ -1047,6 +1140,142 @@ var openapi_default = {
|
|
|
1047
1140
|
}
|
|
1048
1141
|
}
|
|
1049
1142
|
},
|
|
1143
|
+
"/v1/documents/{id}/span-geometry": {
|
|
1144
|
+
get: {
|
|
1145
|
+
operationId: "getDocumentSpanGeometry",
|
|
1146
|
+
summary: "Locate a provenance span on the original page (bounding boxes)",
|
|
1147
|
+
description: "Resolves a provenance `text` quote to rectangles on the ORIGINAL page of the\ndocument \u2014 the server-side path for scanned (image-only) PDFs and image\nuploads, where no client-side text-layer match is possible. The document's\nown text layer is used when it has one; otherwise the page is OCR'd for word\nboxes and the span is aligned to them. Results are cached per document.\n\nRectangles are **page fractions** in `[0, 1]` with a top-left origin. Render\nyour own copy of `page_index` at any DPI (or use the image as is) and multiply\nby the rendered width and height:\n`box = (left \xD7 W, top \xD7 H, width \xD7 W, height \xD7 H)`. For an image the fractions\nare relative to the stored pixel grid \u2014 draw against the raw pixels (EXIF\norientation not applied). Render PDFs with a tool that honors the page's\n`/Rotate`, as the server does.\n\nGate on `method`: `pdf_text_layer` and `ocr_word_boxes` are the exact span\nwindow, `section` is the enclosing line (a region hint), `llm_vision` is a\nmodel-located box verified against the page's own words, `page` means the page\nwas located but no rectangle aligned (`rects` empty), and `none` means nothing\nwas located (`page_index` null). An empty result is an honest miss \u2014 show no\nhighlight rather than a wrong one.\n\nThis is an interactive, per-click endpoint: a cold page costs several seconds\nof OCR and pages are processed one at a time per API instance. One call per\norganization is in flight at a time on this route; a concurrent second call\nreceives `429` with `Retry-After: 5`. Call it when a user selects a field, not\nin bulk across a corpus. `text` longer than the configured maximum (500\ncharacters by default) is truncated before matching.\n",
|
|
1148
|
+
tags: [
|
|
1149
|
+
"Documents"
|
|
1150
|
+
],
|
|
1151
|
+
parameters: [
|
|
1152
|
+
{
|
|
1153
|
+
$ref: "#/components/parameters/ResourceId"
|
|
1154
|
+
},
|
|
1155
|
+
{
|
|
1156
|
+
name: "text",
|
|
1157
|
+
in: "query",
|
|
1158
|
+
required: true,
|
|
1159
|
+
schema: {
|
|
1160
|
+
type: "string"
|
|
1161
|
+
},
|
|
1162
|
+
example: "Load # U6694044",
|
|
1163
|
+
description: "The provenance entry's `text` (the verbatim document quote) to locate, exactly as delivered. Exactly once \u2014 a repeated key is a 400."
|
|
1164
|
+
},
|
|
1165
|
+
{
|
|
1166
|
+
name: "page",
|
|
1167
|
+
in: "query",
|
|
1168
|
+
required: false,
|
|
1169
|
+
schema: {
|
|
1170
|
+
type: "integer",
|
|
1171
|
+
minimum: 0
|
|
1172
|
+
},
|
|
1173
|
+
example: 0,
|
|
1174
|
+
description: "0-based page to search first (the provenance entry's `page_index`). When\nomitted the page is derived from the document's OCR page map.\n"
|
|
1175
|
+
}
|
|
1176
|
+
],
|
|
1177
|
+
responses: {
|
|
1178
|
+
"200": {
|
|
1179
|
+
description: "Located rectangles, or an honest miss.",
|
|
1180
|
+
content: {
|
|
1181
|
+
"application/json": {
|
|
1182
|
+
schema: {
|
|
1183
|
+
type: "object",
|
|
1184
|
+
required: [
|
|
1185
|
+
"document_id",
|
|
1186
|
+
"page_index",
|
|
1187
|
+
"rects",
|
|
1188
|
+
"method"
|
|
1189
|
+
],
|
|
1190
|
+
properties: {
|
|
1191
|
+
document_id: {
|
|
1192
|
+
type: "string",
|
|
1193
|
+
format: "uuid"
|
|
1194
|
+
},
|
|
1195
|
+
page_index: {
|
|
1196
|
+
type: "integer",
|
|
1197
|
+
nullable: true,
|
|
1198
|
+
description: "0-based page the rectangles belong to; null when nothing was located."
|
|
1199
|
+
},
|
|
1200
|
+
rects: {
|
|
1201
|
+
type: "array",
|
|
1202
|
+
description: "Page-fraction rectangles, one per text line. Empty for `page` and `none`.",
|
|
1203
|
+
items: {
|
|
1204
|
+
type: "object",
|
|
1205
|
+
required: [
|
|
1206
|
+
"left",
|
|
1207
|
+
"top",
|
|
1208
|
+
"width",
|
|
1209
|
+
"height"
|
|
1210
|
+
],
|
|
1211
|
+
properties: {
|
|
1212
|
+
left: {
|
|
1213
|
+
type: "number",
|
|
1214
|
+
minimum: 0,
|
|
1215
|
+
maximum: 1
|
|
1216
|
+
},
|
|
1217
|
+
top: {
|
|
1218
|
+
type: "number",
|
|
1219
|
+
minimum: 0,
|
|
1220
|
+
maximum: 1
|
|
1221
|
+
},
|
|
1222
|
+
width: {
|
|
1223
|
+
type: "number",
|
|
1224
|
+
minimum: 0,
|
|
1225
|
+
maximum: 1
|
|
1226
|
+
},
|
|
1227
|
+
height: {
|
|
1228
|
+
type: "number",
|
|
1229
|
+
minimum: 0,
|
|
1230
|
+
maximum: 1
|
|
1231
|
+
}
|
|
1232
|
+
}
|
|
1233
|
+
}
|
|
1234
|
+
},
|
|
1235
|
+
method: {
|
|
1236
|
+
type: "string",
|
|
1237
|
+
enum: [
|
|
1238
|
+
"pdf_text_layer",
|
|
1239
|
+
"ocr_word_boxes",
|
|
1240
|
+
"section",
|
|
1241
|
+
"llm_vision",
|
|
1242
|
+
"page",
|
|
1243
|
+
"none"
|
|
1244
|
+
]
|
|
1245
|
+
}
|
|
1246
|
+
}
|
|
1247
|
+
},
|
|
1248
|
+
example: {
|
|
1249
|
+
document_id: "2521dead-3e80-4210-945f-eac86a60fdf5",
|
|
1250
|
+
page_index: 0,
|
|
1251
|
+
rects: [
|
|
1252
|
+
{
|
|
1253
|
+
left: 0.8355,
|
|
1254
|
+
top: 0.0391,
|
|
1255
|
+
width: 0.157,
|
|
1256
|
+
height: 69e-4
|
|
1257
|
+
}
|
|
1258
|
+
],
|
|
1259
|
+
method: "ocr_word_boxes"
|
|
1260
|
+
}
|
|
1261
|
+
}
|
|
1262
|
+
}
|
|
1263
|
+
},
|
|
1264
|
+
"400": {
|
|
1265
|
+
description: "Missing or repeated `text`, or `page` is not a single non-negative integer."
|
|
1266
|
+
},
|
|
1267
|
+
"401": {
|
|
1268
|
+
$ref: "#/components/responses/Unauthorized"
|
|
1269
|
+
},
|
|
1270
|
+
"404": {
|
|
1271
|
+
$ref: "#/components/responses/NotFound"
|
|
1272
|
+
},
|
|
1273
|
+
"429": {
|
|
1274
|
+
description: "Another span-geometry call for this organization is in flight (`Retry-After: 5`), or the rate limit was exceeded."
|
|
1275
|
+
}
|
|
1276
|
+
}
|
|
1277
|
+
}
|
|
1278
|
+
},
|
|
1050
1279
|
"/v1/documents/upload-session": {
|
|
1051
1280
|
post: {
|
|
1052
1281
|
operationId: "createUploadSession",
|
|
@@ -5091,7 +5320,7 @@ var openapi_default = {
|
|
|
5091
5320
|
get: {
|
|
5092
5321
|
operationId: "getDeliveryCatalogDeliverables",
|
|
5093
5322
|
summary: "All registered deliverable resolvers",
|
|
5094
|
-
description: "Live resolvers include `notification`, `markdown`, `document.capture`,\n`document.meta`, `run.dataspace.outcome`, `run.structuring.outcome`,\n`run.resolution.outcome`, `run.extraction.outcome`, `record.approved`,\
|
|
5323
|
+
description: "Live resolvers include `notification`, `markdown`, `document.capture`,\n`document.meta`, `run.dataspace.outcome`, `run.structuring.outcome`,\n`run.resolution.outcome`, `run.extraction.outcome`, `record.approved`,\n`pipeline.capture`, and `case.snapshot` (routes the `case.resolved`\nsignal into a flat case snapshot record).\n\n\nFour resolvers serve pipeline-level and Dispatch-node grains:\n`pipeline.rows` (every structured record of a One Engine pipeline, or a\nDispatch node's frozen document slice \u2014 one row per document, the\n`records[]` contract of the retired `run.completed` webhook; binds to\n`pipeline.completed` and `dispatch.pipeline.requested`),\n`pipeline.assembly_product` (the composed assembly product set, one row\nper anchor-merged product record; binds to\n`dispatch.assembly.requested`), `pipeline.matcher_product` (per\ndocument, the matcher decision for each bound output field \u2014 matched /\nshortlist / no_match, tier, matched value and the winner's pinned\nreference columns; rival rows never ship; binds to\n`dispatch.matcher.requested`) and `data_product.export` (the same CSV\nbytes `GET /data-products/{id}/export` serves, for the pipeline's data\nproduct; blob shape, so raw/file serializers only; binds to\n`dispatch.data_product.requested`).\n\n\nThe `graph.relations` resolver remains a stub with an\nempty `compatible_signals` array and never routes real traffic.\n",
|
|
5095
5324
|
tags: [
|
|
5096
5325
|
"Delivery"
|
|
5097
5326
|
],
|
|
@@ -16499,6 +16728,7 @@ var openapi_default = {
|
|
|
16499
16728
|
"valid",
|
|
16500
16729
|
"assembly",
|
|
16501
16730
|
"deliver",
|
|
16731
|
+
"dispatch",
|
|
16502
16732
|
"reconcile",
|
|
16503
16733
|
"sanitize",
|
|
16504
16734
|
"triage"
|
|
@@ -19908,6 +20138,67 @@ var openapi_default = {
|
|
|
19908
20138
|
}
|
|
19909
20139
|
}
|
|
19910
20140
|
},
|
|
20141
|
+
"/v1/pipelines/{id}/cancel": {
|
|
20142
|
+
post: {
|
|
20143
|
+
tags: [
|
|
20144
|
+
"Pipelines"
|
|
20145
|
+
],
|
|
20146
|
+
summary: "Cancel a running pipeline",
|
|
20147
|
+
description: "Stops the run: no new phase starts, documents still in flight finish their current step and are marked cancelled, finished documents keep their results, every live /v1/run request on the pipeline is cancelled with it (each gets its own run.cancelled webhook). The pipeline keeps accepting new submissions and reruns afterwards. Requires write scope.\n",
|
|
20148
|
+
operationId: "cancelPipeline",
|
|
20149
|
+
security: [
|
|
20150
|
+
{
|
|
20151
|
+
BearerAuth: []
|
|
20152
|
+
}
|
|
20153
|
+
],
|
|
20154
|
+
parameters: [
|
|
20155
|
+
{
|
|
20156
|
+
name: "id",
|
|
20157
|
+
in: "path",
|
|
20158
|
+
required: true,
|
|
20159
|
+
schema: {
|
|
20160
|
+
type: "string",
|
|
20161
|
+
format: "uuid"
|
|
20162
|
+
}
|
|
20163
|
+
}
|
|
20164
|
+
],
|
|
20165
|
+
requestBody: {
|
|
20166
|
+
required: false,
|
|
20167
|
+
content: {
|
|
20168
|
+
"application/json": {
|
|
20169
|
+
schema: {
|
|
20170
|
+
type: "object",
|
|
20171
|
+
properties: {
|
|
20172
|
+
reason: {
|
|
20173
|
+
type: "string",
|
|
20174
|
+
maxLength: 500,
|
|
20175
|
+
description: "Optional free text recorded on the run and carried by the run.cancelled webhook."
|
|
20176
|
+
}
|
|
20177
|
+
}
|
|
20178
|
+
}
|
|
20179
|
+
}
|
|
20180
|
+
}
|
|
20181
|
+
},
|
|
20182
|
+
responses: {
|
|
20183
|
+
"200": {
|
|
20184
|
+
description: "Cancel result (idempotent: `already: true` on a run that was already terminal).",
|
|
20185
|
+
content: {
|
|
20186
|
+
"application/json": {
|
|
20187
|
+
schema: {
|
|
20188
|
+
$ref: "#/components/schemas/PipelineCancelResponse"
|
|
20189
|
+
}
|
|
20190
|
+
}
|
|
20191
|
+
}
|
|
20192
|
+
},
|
|
20193
|
+
"401": {
|
|
20194
|
+
$ref: "#/components/responses/Unauthorized"
|
|
20195
|
+
},
|
|
20196
|
+
"404": {
|
|
20197
|
+
$ref: "#/components/responses/NotFound"
|
|
20198
|
+
}
|
|
20199
|
+
}
|
|
20200
|
+
}
|
|
20201
|
+
},
|
|
19911
20202
|
"/v1/pipelines/{id}/data-product": {
|
|
19912
20203
|
post: {
|
|
19913
20204
|
tags: [
|
|
@@ -20038,7 +20329,7 @@ var openapi_default = {
|
|
|
20038
20329
|
schema: {
|
|
20039
20330
|
type: "string"
|
|
20040
20331
|
},
|
|
20041
|
-
description: "Comma-separated subset of cells, provenance, audit."
|
|
20332
|
+
description: "Comma-separated subset of cells, provenance, provenance.nested, audit. `provenance` returns one entry per field (kind, quote, match grade, confidence, path, markdown offsets) \u2014 see ResultsProvenance; `provenance.nested` adds one entry per scalar leaf of a structured (array/object) field, keyed by the escaped dot-path."
|
|
20042
20333
|
},
|
|
20043
20334
|
{
|
|
20044
20335
|
name: "limit",
|
|
@@ -20100,6 +20391,360 @@ var openapi_default = {
|
|
|
20100
20391
|
}
|
|
20101
20392
|
}
|
|
20102
20393
|
},
|
|
20394
|
+
"/v1/pipelines/{id}/dispatches/{stageId}": {
|
|
20395
|
+
post: {
|
|
20396
|
+
tags: [
|
|
20397
|
+
"Pipelines"
|
|
20398
|
+
],
|
|
20399
|
+
summary: "Trigger a Spec Dispatch node",
|
|
20400
|
+
description: "Ships a payload of the node's grain to whatever delivery bindings target that node. `stageId` is the Spec stage id of a `dispatch` node on the Spec's PUBLISHED head (`GET /v1/specs/{id}` lists the stages and their ids); the node's grain, selection and projection come from the node's own configuration, not from this call.\n\nThe trigger FREEZES what the dispatch means \u2014 the explicit document / product-record ids, the delta bounds and the projected field set \u2014 onto a dispatch row, so every attempt, every chunk and every re-dispatch resolves the same payload. It then publishes the `dispatch.*` outbox signals; the delivery poller fans them out to the matching bindings (each of which needs `signal_filter.match.spec_id` + `stage_id` naming this node). Collection grains publish one event per chunk of `delivery.dispatch.chunk_records` records; row grain publishes one event per record.\n\nOptional `document_ids` / `product_record_ids` narrow the node's population: both lists are INTERSECTED with what the node would select anyway, never unioned \u2014 a caller cannot dispatch a record the node would not. Requires write scope.\n\n`Idempotency-Key` (the UI sends one per click) makes a double-submit return the EXISTING dispatch with **200** and `existing: true` instead of publishing a second time. A fresh trigger returns **201**.\n",
|
|
20401
|
+
operationId: "triggerPipelineDispatch",
|
|
20402
|
+
security: [
|
|
20403
|
+
{
|
|
20404
|
+
BearerAuth: []
|
|
20405
|
+
}
|
|
20406
|
+
],
|
|
20407
|
+
parameters: [
|
|
20408
|
+
{
|
|
20409
|
+
name: "id",
|
|
20410
|
+
in: "path",
|
|
20411
|
+
required: true,
|
|
20412
|
+
schema: {
|
|
20413
|
+
type: "string",
|
|
20414
|
+
format: "uuid"
|
|
20415
|
+
},
|
|
20416
|
+
description: "The pipeline run to dispatch from."
|
|
20417
|
+
},
|
|
20418
|
+
{
|
|
20419
|
+
name: "stageId",
|
|
20420
|
+
in: "path",
|
|
20421
|
+
required: true,
|
|
20422
|
+
schema: {
|
|
20423
|
+
type: "string",
|
|
20424
|
+
pattern: "^[A-Za-z0-9_-]{1,64}$",
|
|
20425
|
+
maxLength: 64
|
|
20426
|
+
},
|
|
20427
|
+
description: "Spec stage id of the Dispatch node (editor-minted uuid or a normalized `s-dispatch` form)."
|
|
20428
|
+
},
|
|
20429
|
+
{
|
|
20430
|
+
name: "Idempotency-Key",
|
|
20431
|
+
in: "header",
|
|
20432
|
+
required: false,
|
|
20433
|
+
schema: {
|
|
20434
|
+
type: "string",
|
|
20435
|
+
maxLength: 200
|
|
20436
|
+
},
|
|
20437
|
+
description: "Caller trigger key, unique per (pipeline, node). A repeat returns the existing dispatch with 200."
|
|
20438
|
+
}
|
|
20439
|
+
],
|
|
20440
|
+
requestBody: {
|
|
20441
|
+
required: false,
|
|
20442
|
+
content: {
|
|
20443
|
+
"application/json": {
|
|
20444
|
+
schema: {
|
|
20445
|
+
type: "object",
|
|
20446
|
+
properties: {
|
|
20447
|
+
document_ids: {
|
|
20448
|
+
type: "array",
|
|
20449
|
+
maxItems: 5e4,
|
|
20450
|
+
items: {
|
|
20451
|
+
type: "string",
|
|
20452
|
+
format: "uuid"
|
|
20453
|
+
},
|
|
20454
|
+
description: "Explicit subset of the node's document population (document-keyed grains). Intersected, never unioned."
|
|
20455
|
+
},
|
|
20456
|
+
product_record_ids: {
|
|
20457
|
+
type: "array",
|
|
20458
|
+
maxItems: 5e4,
|
|
20459
|
+
items: {
|
|
20460
|
+
type: "string",
|
|
20461
|
+
format: "uuid"
|
|
20462
|
+
},
|
|
20463
|
+
description: "Explicit subset of the assembly product records (product-keyed grains). Intersected, never unioned."
|
|
20464
|
+
}
|
|
20465
|
+
}
|
|
20466
|
+
}
|
|
20467
|
+
}
|
|
20468
|
+
}
|
|
20469
|
+
},
|
|
20470
|
+
responses: {
|
|
20471
|
+
"200": {
|
|
20472
|
+
description: "The `Idempotency-Key` matched an existing dispatch \u2014 its row is returned unchanged, with `existing` true, and nothing was published a second time.\n",
|
|
20473
|
+
content: {
|
|
20474
|
+
"application/json": {
|
|
20475
|
+
schema: {
|
|
20476
|
+
$ref: "#/components/schemas/DispatchTriggerResult"
|
|
20477
|
+
}
|
|
20478
|
+
}
|
|
20479
|
+
}
|
|
20480
|
+
},
|
|
20481
|
+
"201": {
|
|
20482
|
+
description: "Dispatch created and its events published. `status` is `published` (events on the outbox), `empty` (the frozen selection held no records \u2014 nothing was published), or `failed` (publishing threw part-way; `error` carries the reason and the pending sweep retries the missing events).\n",
|
|
20483
|
+
content: {
|
|
20484
|
+
"application/json": {
|
|
20485
|
+
schema: {
|
|
20486
|
+
$ref: "#/components/schemas/DispatchTriggerResult"
|
|
20487
|
+
}
|
|
20488
|
+
}
|
|
20489
|
+
}
|
|
20490
|
+
},
|
|
20491
|
+
"400": {
|
|
20492
|
+
description: "Malformed stage id, or a body that failed validation (`VALIDATION_ERROR`).",
|
|
20493
|
+
content: {
|
|
20494
|
+
"application/json": {
|
|
20495
|
+
schema: {
|
|
20496
|
+
$ref: "#/components/schemas/ErrorResponse"
|
|
20497
|
+
}
|
|
20498
|
+
}
|
|
20499
|
+
}
|
|
20500
|
+
},
|
|
20501
|
+
"404": {
|
|
20502
|
+
description: "Pipeline not found (`RESOURCE_NOT_FOUND`), or the Spec's published head carries no `dispatch` node with that stage id (`DISPATCH_NODE_NOT_FOUND`).\n",
|
|
20503
|
+
content: {
|
|
20504
|
+
"application/json": {
|
|
20505
|
+
schema: {
|
|
20506
|
+
$ref: "#/components/schemas/ErrorResponse"
|
|
20507
|
+
}
|
|
20508
|
+
}
|
|
20509
|
+
}
|
|
20510
|
+
},
|
|
20511
|
+
"409": {
|
|
20512
|
+
description: "`DISPATCH_PIPELINE_NOT_READY` \u2014 the pipeline is a preview, or is still running and the node's grain needs a settled run (the pipeline / assembly / data_product grains; row grain may ship completed documents of a live run). `DISPATCH_SPEC_UNPUBLISHED` \u2014 the Spec has no published version (a draft-only Spec has no head to read the node from). `DISPATCH_NODE_INVALID` \u2014 the node carries an error-level diagnostic. `DISPATCH_NO_DATA_PRODUCT` \u2014 `data_product` grain on a pipeline with no active data product (Dispatch never creates one). A governance hold on the run's documents also 409s, listing the holds.\n",
|
|
20513
|
+
content: {
|
|
20514
|
+
"application/json": {
|
|
20515
|
+
schema: {
|
|
20516
|
+
$ref: "#/components/schemas/ErrorResponse"
|
|
20517
|
+
}
|
|
20518
|
+
}
|
|
20519
|
+
}
|
|
20520
|
+
},
|
|
20521
|
+
"413": {
|
|
20522
|
+
description: "`DISPATCH_TOO_LARGE` \u2014 the frozen selection exceeds `delivery.dispatch.max_records` (default 50 000), or a row-grain dispatch exceeds `delivery.dispatch.max_row_events` (default 5 000, since row grain publishes one event per record).\n",
|
|
20523
|
+
content: {
|
|
20524
|
+
"application/json": {
|
|
20525
|
+
schema: {
|
|
20526
|
+
$ref: "#/components/schemas/ErrorResponse"
|
|
20527
|
+
}
|
|
20528
|
+
}
|
|
20529
|
+
}
|
|
20530
|
+
},
|
|
20531
|
+
"429": {
|
|
20532
|
+
$ref: "#/components/responses/RateLimitExceeded"
|
|
20533
|
+
}
|
|
20534
|
+
}
|
|
20535
|
+
}
|
|
20536
|
+
},
|
|
20537
|
+
"/v1/pipelines/{id}/dispatches": {
|
|
20538
|
+
get: {
|
|
20539
|
+
tags: [
|
|
20540
|
+
"Pipelines"
|
|
20541
|
+
],
|
|
20542
|
+
summary: "List a pipeline's dispatches",
|
|
20543
|
+
description: "Dispatch history for the pipeline, newest first, optionally for one node. Each row carries its frozen selection and projection plus `items[]` \u2014 the per-binding delivery-attempt summary joined through the outbox events' `dispatch_id`, so a dispatch shows where its payload actually went. Requires read scope.\n",
|
|
20544
|
+
operationId: "listPipelineDispatches",
|
|
20545
|
+
security: [
|
|
20546
|
+
{
|
|
20547
|
+
BearerAuth: []
|
|
20548
|
+
}
|
|
20549
|
+
],
|
|
20550
|
+
parameters: [
|
|
20551
|
+
{
|
|
20552
|
+
name: "id",
|
|
20553
|
+
in: "path",
|
|
20554
|
+
required: true,
|
|
20555
|
+
schema: {
|
|
20556
|
+
type: "string",
|
|
20557
|
+
format: "uuid"
|
|
20558
|
+
}
|
|
20559
|
+
},
|
|
20560
|
+
{
|
|
20561
|
+
name: "stage_id",
|
|
20562
|
+
in: "query",
|
|
20563
|
+
required: false,
|
|
20564
|
+
schema: {
|
|
20565
|
+
type: "string",
|
|
20566
|
+
pattern: "^[A-Za-z0-9_-]{1,64}$",
|
|
20567
|
+
maxLength: 64
|
|
20568
|
+
},
|
|
20569
|
+
description: "Limit to one Dispatch node."
|
|
20570
|
+
},
|
|
20571
|
+
{
|
|
20572
|
+
name: "limit",
|
|
20573
|
+
in: "query",
|
|
20574
|
+
required: false,
|
|
20575
|
+
schema: {
|
|
20576
|
+
type: "integer",
|
|
20577
|
+
default: 50,
|
|
20578
|
+
minimum: 1,
|
|
20579
|
+
maximum: 200
|
|
20580
|
+
},
|
|
20581
|
+
description: "Rows to return (clamped to 1..200; default 50)."
|
|
20582
|
+
}
|
|
20583
|
+
],
|
|
20584
|
+
responses: {
|
|
20585
|
+
"200": {
|
|
20586
|
+
description: "Dispatch rows, newest first.",
|
|
20587
|
+
content: {
|
|
20588
|
+
"application/json": {
|
|
20589
|
+
schema: {
|
|
20590
|
+
type: "array",
|
|
20591
|
+
items: {
|
|
20592
|
+
$ref: "#/components/schemas/Dispatch"
|
|
20593
|
+
}
|
|
20594
|
+
}
|
|
20595
|
+
}
|
|
20596
|
+
}
|
|
20597
|
+
},
|
|
20598
|
+
"429": {
|
|
20599
|
+
$ref: "#/components/responses/RateLimitExceeded"
|
|
20600
|
+
}
|
|
20601
|
+
}
|
|
20602
|
+
}
|
|
20603
|
+
},
|
|
20604
|
+
"/v1/pipelines/{id}/dispatches/{dispatchId}": {
|
|
20605
|
+
get: {
|
|
20606
|
+
tags: [
|
|
20607
|
+
"Pipelines"
|
|
20608
|
+
],
|
|
20609
|
+
summary: "Get one dispatch",
|
|
20610
|
+
description: "One dispatch row with its frozen selection, projection and publish outcome. Requires read scope.",
|
|
20611
|
+
operationId: "getPipelineDispatch",
|
|
20612
|
+
security: [
|
|
20613
|
+
{
|
|
20614
|
+
BearerAuth: []
|
|
20615
|
+
}
|
|
20616
|
+
],
|
|
20617
|
+
parameters: [
|
|
20618
|
+
{
|
|
20619
|
+
name: "id",
|
|
20620
|
+
in: "path",
|
|
20621
|
+
required: true,
|
|
20622
|
+
schema: {
|
|
20623
|
+
type: "string",
|
|
20624
|
+
format: "uuid"
|
|
20625
|
+
}
|
|
20626
|
+
},
|
|
20627
|
+
{
|
|
20628
|
+
name: "dispatchId",
|
|
20629
|
+
in: "path",
|
|
20630
|
+
required: true,
|
|
20631
|
+
schema: {
|
|
20632
|
+
type: "string",
|
|
20633
|
+
format: "uuid"
|
|
20634
|
+
}
|
|
20635
|
+
}
|
|
20636
|
+
],
|
|
20637
|
+
responses: {
|
|
20638
|
+
"200": {
|
|
20639
|
+
description: "The dispatch row (without the `items[]` summary \u2014 that is on the list read).",
|
|
20640
|
+
content: {
|
|
20641
|
+
"application/json": {
|
|
20642
|
+
schema: {
|
|
20643
|
+
$ref: "#/components/schemas/Dispatch"
|
|
20644
|
+
}
|
|
20645
|
+
}
|
|
20646
|
+
}
|
|
20647
|
+
},
|
|
20648
|
+
"404": {
|
|
20649
|
+
description: "Dispatch not found for this pipeline and tenant (`RESOURCE_NOT_FOUND`).",
|
|
20650
|
+
content: {
|
|
20651
|
+
"application/json": {
|
|
20652
|
+
schema: {
|
|
20653
|
+
$ref: "#/components/schemas/ErrorResponse"
|
|
20654
|
+
}
|
|
20655
|
+
}
|
|
20656
|
+
}
|
|
20657
|
+
},
|
|
20658
|
+
"429": {
|
|
20659
|
+
$ref: "#/components/responses/RateLimitExceeded"
|
|
20660
|
+
}
|
|
20661
|
+
}
|
|
20662
|
+
}
|
|
20663
|
+
},
|
|
20664
|
+
"/v1/pipelines/{id}/dispatches/{dispatchId}/redispatch": {
|
|
20665
|
+
post: {
|
|
20666
|
+
tags: [
|
|
20667
|
+
"Pipelines"
|
|
20668
|
+
],
|
|
20669
|
+
summary: "Re-dispatch a previous dispatch",
|
|
20670
|
+
description: "Creates a NEW dispatch row inheriting the original's frozen selection, projection, watermark and data product (`replay_of` points back at it), and publishes fresh events \u2014 new dedup keys, new idempotency keys \u2014 to whatever bindings match NOW. The original row is untouched.\n\nA re-dispatch is a new row, not a re-publish, because the outbox suppresses a duplicate `dedup_key`: re-publishing the same dispatch would be a no-op. The payload is identical (the selection is frozen), so a receiver sees the same records with a new delivery identity. Requires write scope.\n",
|
|
20671
|
+
operationId: "redispatchPipelineDispatch",
|
|
20672
|
+
security: [
|
|
20673
|
+
{
|
|
20674
|
+
BearerAuth: []
|
|
20675
|
+
}
|
|
20676
|
+
],
|
|
20677
|
+
parameters: [
|
|
20678
|
+
{
|
|
20679
|
+
name: "id",
|
|
20680
|
+
in: "path",
|
|
20681
|
+
required: true,
|
|
20682
|
+
schema: {
|
|
20683
|
+
type: "string",
|
|
20684
|
+
format: "uuid"
|
|
20685
|
+
}
|
|
20686
|
+
},
|
|
20687
|
+
{
|
|
20688
|
+
name: "dispatchId",
|
|
20689
|
+
in: "path",
|
|
20690
|
+
required: true,
|
|
20691
|
+
schema: {
|
|
20692
|
+
type: "string",
|
|
20693
|
+
format: "uuid"
|
|
20694
|
+
}
|
|
20695
|
+
}
|
|
20696
|
+
],
|
|
20697
|
+
responses: {
|
|
20698
|
+
"201": {
|
|
20699
|
+
description: "The new dispatch row.",
|
|
20700
|
+
content: {
|
|
20701
|
+
"application/json": {
|
|
20702
|
+
schema: {
|
|
20703
|
+
allOf: [
|
|
20704
|
+
{
|
|
20705
|
+
$ref: "#/components/schemas/DispatchTriggerResult"
|
|
20706
|
+
},
|
|
20707
|
+
{
|
|
20708
|
+
type: "object",
|
|
20709
|
+
properties: {
|
|
20710
|
+
replay_of: {
|
|
20711
|
+
type: "string",
|
|
20712
|
+
format: "uuid",
|
|
20713
|
+
description: "The dispatch whose frozen selection this one inherited."
|
|
20714
|
+
}
|
|
20715
|
+
}
|
|
20716
|
+
}
|
|
20717
|
+
]
|
|
20718
|
+
}
|
|
20719
|
+
}
|
|
20720
|
+
}
|
|
20721
|
+
},
|
|
20722
|
+
"404": {
|
|
20723
|
+
description: "Dispatch not found for this pipeline and tenant (`RESOURCE_NOT_FOUND`).",
|
|
20724
|
+
content: {
|
|
20725
|
+
"application/json": {
|
|
20726
|
+
schema: {
|
|
20727
|
+
$ref: "#/components/schemas/ErrorResponse"
|
|
20728
|
+
}
|
|
20729
|
+
}
|
|
20730
|
+
}
|
|
20731
|
+
},
|
|
20732
|
+
"409": {
|
|
20733
|
+
description: "A governance hold blocks delivery for the run's documents.",
|
|
20734
|
+
content: {
|
|
20735
|
+
"application/json": {
|
|
20736
|
+
schema: {
|
|
20737
|
+
$ref: "#/components/schemas/ErrorResponse"
|
|
20738
|
+
}
|
|
20739
|
+
}
|
|
20740
|
+
}
|
|
20741
|
+
},
|
|
20742
|
+
"429": {
|
|
20743
|
+
$ref: "#/components/responses/RateLimitExceeded"
|
|
20744
|
+
}
|
|
20745
|
+
}
|
|
20746
|
+
}
|
|
20747
|
+
},
|
|
20103
20748
|
"/v1/run": {
|
|
20104
20749
|
post: {
|
|
20105
20750
|
tags: [
|
|
@@ -20152,7 +20797,7 @@ var openapi_default = {
|
|
|
20152
20797
|
batch_id: {
|
|
20153
20798
|
type: "string",
|
|
20154
20799
|
maxLength: 200,
|
|
20155
|
-
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"
|
|
20800
|
+
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. A batch_id may span multiple POST /v1/run calls; batch-derived webhooks stream per document and re-emit on revision, so no single-call containment is required.\n"
|
|
20156
20801
|
},
|
|
20157
20802
|
metadata: {
|
|
20158
20803
|
type: "string",
|
|
@@ -20301,7 +20946,7 @@ var openapi_default = {
|
|
|
20301
20946
|
"Run"
|
|
20302
20947
|
],
|
|
20303
20948
|
summary: "Poll a /v1/run request",
|
|
20304
|
-
description: "Row status, folded with the compiled pipeline's live progress once one exists (`pipeline_id` set). `status` is `processing` (in flight), `completed`, or `
|
|
20949
|
+
description: "Row status, folded with the compiled pipeline's live progress once one exists (`pipeline_id` set). `status` is `processing` (in flight), `completed`, `failed`, or `cancelled` (the run, or the pipeline behind it, was stopped through `POST /v1/run/{id}/cancel`) \u2014 the same vocabulary `POST /v1/run` returns. A non-null `pipeline_id` plus the `progress` object indicate the pipeline has started. `documents` (when present) echoes each input's resolved document plus a per-entry live `status` \u2014 omitted entirely for runs submitted before this field shipped. Requires read scope.\n",
|
|
20305
20950
|
operationId: "pollRunRequest",
|
|
20306
20951
|
security: [
|
|
20307
20952
|
{
|
|
@@ -20340,7 +20985,8 @@ var openapi_default = {
|
|
|
20340
20985
|
enum: [
|
|
20341
20986
|
"processing",
|
|
20342
20987
|
"completed",
|
|
20343
|
-
"failed"
|
|
20988
|
+
"failed",
|
|
20989
|
+
"cancelled"
|
|
20344
20990
|
]
|
|
20345
20991
|
},
|
|
20346
20992
|
pipeline_id: {
|
|
@@ -20450,7 +21096,8 @@ var openapi_default = {
|
|
|
20450
21096
|
enum: [
|
|
20451
21097
|
"processing",
|
|
20452
21098
|
"completed",
|
|
20453
|
-
"failed"
|
|
21099
|
+
"failed",
|
|
21100
|
+
"cancelled"
|
|
20454
21101
|
]
|
|
20455
21102
|
}
|
|
20456
21103
|
}
|
|
@@ -20467,6 +21114,70 @@ var openapi_default = {
|
|
|
20467
21114
|
}
|
|
20468
21115
|
}
|
|
20469
21116
|
},
|
|
21117
|
+
"/v1/run/{id}/cancel": {
|
|
21118
|
+
post: {
|
|
21119
|
+
tags: [
|
|
21120
|
+
"Run"
|
|
21121
|
+
],
|
|
21122
|
+
summary: "Cancel the pipeline behind a /v1/run request",
|
|
21123
|
+
description: "Resolves the request to its pipeline and cancels the WHOLE pipeline \u2014 under append mode that includes every other live request appended to it, each of which receives its own run.cancelled webhook and is listed in run_requests. 409 not_cancellable_yet while the request is still ingesting (no pipeline_id yet); 200 with already: true on a request that is already terminal. Requires write scope.\n",
|
|
21124
|
+
operationId: "cancelRun",
|
|
21125
|
+
security: [
|
|
21126
|
+
{
|
|
21127
|
+
BearerAuth: []
|
|
21128
|
+
}
|
|
21129
|
+
],
|
|
21130
|
+
parameters: [
|
|
21131
|
+
{
|
|
21132
|
+
name: "id",
|
|
21133
|
+
in: "path",
|
|
21134
|
+
required: true,
|
|
21135
|
+
schema: {
|
|
21136
|
+
type: "string",
|
|
21137
|
+
format: "uuid"
|
|
21138
|
+
}
|
|
21139
|
+
}
|
|
21140
|
+
],
|
|
21141
|
+
requestBody: {
|
|
21142
|
+
required: false,
|
|
21143
|
+
content: {
|
|
21144
|
+
"application/json": {
|
|
21145
|
+
schema: {
|
|
21146
|
+
type: "object",
|
|
21147
|
+
properties: {
|
|
21148
|
+
reason: {
|
|
21149
|
+
type: "string",
|
|
21150
|
+
maxLength: 500,
|
|
21151
|
+
description: "Optional free text recorded on the run and carried by the run.cancelled webhook."
|
|
21152
|
+
}
|
|
21153
|
+
}
|
|
21154
|
+
}
|
|
21155
|
+
}
|
|
21156
|
+
}
|
|
21157
|
+
},
|
|
21158
|
+
responses: {
|
|
21159
|
+
"200": {
|
|
21160
|
+
description: "Cancel result (idempotent: `already: true` on a run that was already terminal).",
|
|
21161
|
+
content: {
|
|
21162
|
+
"application/json": {
|
|
21163
|
+
schema: {
|
|
21164
|
+
$ref: "#/components/schemas/PipelineCancelResponse"
|
|
21165
|
+
}
|
|
21166
|
+
}
|
|
21167
|
+
}
|
|
21168
|
+
},
|
|
21169
|
+
"401": {
|
|
21170
|
+
$ref: "#/components/responses/Unauthorized"
|
|
21171
|
+
},
|
|
21172
|
+
"404": {
|
|
21173
|
+
$ref: "#/components/responses/NotFound"
|
|
21174
|
+
},
|
|
21175
|
+
"409": {
|
|
21176
|
+
description: "not_cancellable_yet: the run has no pipeline yet; retry once pipeline_id is set."
|
|
21177
|
+
}
|
|
21178
|
+
}
|
|
21179
|
+
}
|
|
21180
|
+
},
|
|
20470
21181
|
"/v1/run/{id}/results": {
|
|
20471
21182
|
get: {
|
|
20472
21183
|
tags: [
|
|
@@ -20504,7 +21215,7 @@ var openapi_default = {
|
|
|
20504
21215
|
schema: {
|
|
20505
21216
|
type: "string"
|
|
20506
21217
|
},
|
|
20507
|
-
description: "Comma-separated subset of cells, provenance, audit."
|
|
21218
|
+
description: "Comma-separated subset of cells, provenance, provenance.nested, audit. `provenance` returns one entry per field (kind, quote, match grade, confidence, path, markdown offsets) \u2014 see ResultsProvenance; `provenance.nested` adds one entry per scalar leaf of a structured (array/object) field, keyed by the escaped dot-path."
|
|
20508
21219
|
},
|
|
20509
21220
|
{
|
|
20510
21221
|
name: "limit",
|
|
@@ -20869,7 +21580,7 @@ var openapi_default = {
|
|
|
20869
21580
|
],
|
|
20870
21581
|
responses: {
|
|
20871
21582
|
"200": {
|
|
20872
|
-
description: "{ data: [{ event, description }] }"
|
|
21583
|
+
description: "`{ data: [{ event, description }] }`. The `run.completed` and `run.failed` entries carry an extra `served_by_delivery` note: under `delivery.run_signals_via_outbox` those two are served by Delivery as `pipeline.completed` / `pipeline.failed` and are subscribed through `/v1/delivery/bindings` instead. Existing `/v1/webhooks` subscriptions keep working until migrated.\n"
|
|
20873
21584
|
}
|
|
20874
21585
|
}
|
|
20875
21586
|
}
|
|
@@ -20888,11 +21599,7 @@ var openapi_default = {
|
|
|
20888
21599
|
],
|
|
20889
21600
|
responses: {
|
|
20890
21601
|
"200": {
|
|
20891
|
-
description: "Content type"
|
|
20892
|
-
method: null,
|
|
20893
|
-
headers: null,
|
|
20894
|
-
body: null,
|
|
20895
|
-
"example.": null
|
|
21602
|
+
description: "Content type, method, headers, body, example \u2014 the legacy `/v1/webhooks` wire format. Also carries `run_events_served_by`, pointing at `/v1/delivery/items` for the attempts, retries and DLQ entries of a migrated `run.completed` / `run.failed` subscription (the wire format itself is unchanged for a binding using the legacy `delivery_policy`).\n"
|
|
20896
21603
|
}
|
|
20897
21604
|
}
|
|
20898
21605
|
}
|
|
@@ -26303,6 +27010,94 @@ var openapi_default = {
|
|
|
26303
27010
|
}
|
|
26304
27011
|
},
|
|
26305
27012
|
schemas: {
|
|
27013
|
+
PipelineCancelResponse: {
|
|
27014
|
+
type: "object",
|
|
27015
|
+
required: [
|
|
27016
|
+
"id",
|
|
27017
|
+
"status",
|
|
27018
|
+
"already",
|
|
27019
|
+
"cancelled_at",
|
|
27020
|
+
"documents",
|
|
27021
|
+
"run_requests",
|
|
27022
|
+
"jobs"
|
|
27023
|
+
],
|
|
27024
|
+
properties: {
|
|
27025
|
+
id: {
|
|
27026
|
+
type: "string",
|
|
27027
|
+
format: "uuid"
|
|
27028
|
+
},
|
|
27029
|
+
status: {
|
|
27030
|
+
type: "string",
|
|
27031
|
+
description: "The run's status after the call: cancelled, or the terminal state it already had."
|
|
27032
|
+
},
|
|
27033
|
+
already: {
|
|
27034
|
+
type: "boolean",
|
|
27035
|
+
description: "True when the run was already terminal and nothing changed."
|
|
27036
|
+
},
|
|
27037
|
+
cancelled_at: {
|
|
27038
|
+
type: "string",
|
|
27039
|
+
format: "date-time",
|
|
27040
|
+
nullable: true
|
|
27041
|
+
},
|
|
27042
|
+
documents: {
|
|
27043
|
+
type: "object",
|
|
27044
|
+
properties: {
|
|
27045
|
+
total: {
|
|
27046
|
+
type: "integer"
|
|
27047
|
+
},
|
|
27048
|
+
completed: {
|
|
27049
|
+
type: "integer"
|
|
27050
|
+
},
|
|
27051
|
+
cancelled: {
|
|
27052
|
+
type: "integer"
|
|
27053
|
+
},
|
|
27054
|
+
errored: {
|
|
27055
|
+
type: "integer"
|
|
27056
|
+
}
|
|
27057
|
+
}
|
|
27058
|
+
},
|
|
27059
|
+
run_requests: {
|
|
27060
|
+
type: "array",
|
|
27061
|
+
items: {
|
|
27062
|
+
type: "string",
|
|
27063
|
+
format: "uuid"
|
|
27064
|
+
},
|
|
27065
|
+
description: "run_ids of the /v1/run requests cancelled along with the pipeline."
|
|
27066
|
+
},
|
|
27067
|
+
jobs: {
|
|
27068
|
+
type: "object",
|
|
27069
|
+
description: "Best-effort removal of the run's queued jobs (a survivor stops at its next checkpoint).",
|
|
27070
|
+
properties: {
|
|
27071
|
+
removed: {
|
|
27072
|
+
type: "integer"
|
|
27073
|
+
},
|
|
27074
|
+
failed: {
|
|
27075
|
+
type: "integer"
|
|
27076
|
+
},
|
|
27077
|
+
scanned: {
|
|
27078
|
+
type: "integer"
|
|
27079
|
+
},
|
|
27080
|
+
scan_capped: {
|
|
27081
|
+
type: "boolean"
|
|
27082
|
+
},
|
|
27083
|
+
timed_out: {
|
|
27084
|
+
type: "boolean"
|
|
27085
|
+
}
|
|
27086
|
+
}
|
|
27087
|
+
},
|
|
27088
|
+
run_id: {
|
|
27089
|
+
type: "string",
|
|
27090
|
+
format: "uuid",
|
|
27091
|
+
description: "Present on /v1/run/{id}/cancel: the request that was cancelled."
|
|
27092
|
+
},
|
|
27093
|
+
pipeline_id: {
|
|
27094
|
+
type: "string",
|
|
27095
|
+
format: "uuid",
|
|
27096
|
+
nullable: true,
|
|
27097
|
+
description: "Present on /v1/run/{id}/cancel."
|
|
27098
|
+
}
|
|
27099
|
+
}
|
|
27100
|
+
},
|
|
26306
27101
|
CursorPagination: {
|
|
26307
27102
|
type: "object",
|
|
26308
27103
|
required: [
|
|
@@ -27301,6 +28096,20 @@ var openapi_default = {
|
|
|
27301
28096
|
}
|
|
27302
28097
|
}
|
|
27303
28098
|
},
|
|
28099
|
+
StructuredRow: {
|
|
28100
|
+
type: "object",
|
|
28101
|
+
description: "One extracted row: schema field key -> extracted value. Keys are the Spec's field keys; a field with no cell, or one held for review, is `null`. Scalars are strings/numbers/booleans; a structured field is an object or an array of objects per its declared element shape.",
|
|
28102
|
+
additionalProperties: {
|
|
28103
|
+
nullable: true,
|
|
28104
|
+
description: "The extracted value for one schema field."
|
|
28105
|
+
},
|
|
28106
|
+
example: {
|
|
28107
|
+
invoice_date: "2026-08-07",
|
|
28108
|
+
carrier_name: "ACME LOGISTICS",
|
|
28109
|
+
total_carrier_pay: "1400.00",
|
|
28110
|
+
bill_to_name: null
|
|
28111
|
+
}
|
|
28112
|
+
},
|
|
27304
28113
|
RunResponse: {
|
|
27305
28114
|
type: "object",
|
|
27306
28115
|
properties: {
|
|
@@ -27349,8 +28158,18 @@ var openapi_default = {
|
|
|
27349
28158
|
description: "OCR-converted markdown (on completion)."
|
|
27350
28159
|
},
|
|
27351
28160
|
structured_data: {
|
|
27352
|
-
|
|
27353
|
-
|
|
28161
|
+
description: "Structured extraction results (on completion). Shape forks on document count: a SINGLE-document run returns one flat `field_key -> value` object; a MULTI-document run returns an array of those row objects. A review-held cell arrives as `null`. Values are the typed projection (subfields cast to their declared types), matching the `run.completed` webhook byte-for-byte. Prefer `records[]` for new integrations \u2014 it is always an array and binds each row to its source document.",
|
|
28162
|
+
oneOf: [
|
|
28163
|
+
{
|
|
28164
|
+
$ref: "#/components/schemas/StructuredRow"
|
|
28165
|
+
},
|
|
28166
|
+
{
|
|
28167
|
+
type: "array",
|
|
28168
|
+
items: {
|
|
28169
|
+
$ref: "#/components/schemas/StructuredRow"
|
|
28170
|
+
}
|
|
28171
|
+
}
|
|
28172
|
+
]
|
|
27354
28173
|
},
|
|
27355
28174
|
reconciliation: {
|
|
27356
28175
|
type: "object",
|
|
@@ -28601,6 +29420,7 @@ var openapi_default = {
|
|
|
28601
29420
|
"valid",
|
|
28602
29421
|
"assembly",
|
|
28603
29422
|
"deliver",
|
|
29423
|
+
"dispatch",
|
|
28604
29424
|
"reconcile",
|
|
28605
29425
|
"sanitize",
|
|
28606
29426
|
"triage",
|
|
@@ -30370,7 +31190,7 @@ var openapi_default = {
|
|
|
30370
31190
|
}
|
|
30371
31191
|
]
|
|
30372
31192
|
},
|
|
30373
|
-
description: "Optional equality filter on payload keys."
|
|
31193
|
+
description: "Optional equality filter on payload keys \u2014 EXCEPT on a `dispatch.*`\nbinding, where `match.spec_id` AND `match.stage_id` are REQUIRED\n(400 otherwise). A Dispatch binding targets one Dispatch node of\none Spec; an absent or empty `match` matches every event, so\nwithout both keys the binding would receive every Dispatch node's\nevents tenant-wide. `stage_id` alone is not tenant-unique \u2014 an\nid-less rail node normalizes to `s-dispatch` \u2014 hence `spec_id`\ntoo. Every `dispatch.*` payload carries both.\n"
|
|
30374
31194
|
}
|
|
30375
31195
|
}
|
|
30376
31196
|
},
|
|
@@ -30409,10 +31229,304 @@ var openapi_default = {
|
|
|
30409
31229
|
}
|
|
30410
31230
|
}
|
|
30411
31231
|
},
|
|
31232
|
+
DispatchTriggerResult: {
|
|
31233
|
+
type: "object",
|
|
31234
|
+
required: [
|
|
31235
|
+
"dispatch_id",
|
|
31236
|
+
"grain",
|
|
31237
|
+
"status",
|
|
31238
|
+
"record_count",
|
|
31239
|
+
"event_count"
|
|
31240
|
+
],
|
|
31241
|
+
properties: {
|
|
31242
|
+
dispatch_id: {
|
|
31243
|
+
type: "string",
|
|
31244
|
+
format: "uuid"
|
|
31245
|
+
},
|
|
31246
|
+
grain: {
|
|
31247
|
+
type: "string",
|
|
31248
|
+
enum: [
|
|
31249
|
+
"row",
|
|
31250
|
+
"pipeline",
|
|
31251
|
+
"assembly",
|
|
31252
|
+
"matcher",
|
|
31253
|
+
"data_product"
|
|
31254
|
+
],
|
|
31255
|
+
description: "What one deliverable is \u2014 set by the node, not by the caller."
|
|
31256
|
+
},
|
|
31257
|
+
status: {
|
|
31258
|
+
type: "string",
|
|
31259
|
+
enum: [
|
|
31260
|
+
"pending",
|
|
31261
|
+
"published",
|
|
31262
|
+
"empty",
|
|
31263
|
+
"failed"
|
|
31264
|
+
]
|
|
31265
|
+
},
|
|
31266
|
+
record_count: {
|
|
31267
|
+
type: "integer",
|
|
31268
|
+
description: "Records the dispatch froze."
|
|
31269
|
+
},
|
|
31270
|
+
event_count: {
|
|
31271
|
+
type: "integer",
|
|
31272
|
+
description: "Outbox events published (chunks for a collection grain, one per record for row grain)."
|
|
31273
|
+
},
|
|
31274
|
+
existing: {
|
|
31275
|
+
type: "boolean",
|
|
31276
|
+
description: "Present on the trigger route \u2014 `true` when the `Idempotency-Key` matched an earlier dispatch (returned with 200; nothing was published again)."
|
|
31277
|
+
},
|
|
31278
|
+
error: {
|
|
31279
|
+
type: "string",
|
|
31280
|
+
description: "Present only when `status` is `failed`."
|
|
31281
|
+
}
|
|
31282
|
+
}
|
|
31283
|
+
},
|
|
31284
|
+
Dispatch: {
|
|
31285
|
+
type: "object",
|
|
31286
|
+
description: "One trigger of one Spec Dispatch node on one pipeline. The row FREEZES\nthe selection (which units) and the projection (which fields) so every\nattempt, chunk and re-dispatch resolves the same payload \u2014 a resolver\nloads the row by `dispatch_id` and never re-derives a delta.\n",
|
|
31287
|
+
required: [
|
|
31288
|
+
"id",
|
|
31289
|
+
"customer_id",
|
|
31290
|
+
"pipeline_id",
|
|
31291
|
+
"stage_id",
|
|
31292
|
+
"grain",
|
|
31293
|
+
"mode",
|
|
31294
|
+
"status",
|
|
31295
|
+
"selection",
|
|
31296
|
+
"projection",
|
|
31297
|
+
"record_count",
|
|
31298
|
+
"event_count",
|
|
31299
|
+
"created_at"
|
|
31300
|
+
],
|
|
31301
|
+
properties: {
|
|
31302
|
+
id: {
|
|
31303
|
+
type: "string",
|
|
31304
|
+
format: "uuid"
|
|
31305
|
+
},
|
|
31306
|
+
customer_id: {
|
|
31307
|
+
type: "string",
|
|
31308
|
+
format: "uuid"
|
|
31309
|
+
},
|
|
31310
|
+
pipeline_id: {
|
|
31311
|
+
type: "string",
|
|
31312
|
+
format: "uuid"
|
|
31313
|
+
},
|
|
31314
|
+
stage_id: {
|
|
31315
|
+
type: "string",
|
|
31316
|
+
description: "Spec stage id of the Dispatch node."
|
|
31317
|
+
},
|
|
31318
|
+
spec_id: {
|
|
31319
|
+
type: [
|
|
31320
|
+
"string",
|
|
31321
|
+
"null"
|
|
31322
|
+
],
|
|
31323
|
+
format: "uuid"
|
|
31324
|
+
},
|
|
31325
|
+
spec_version_id: {
|
|
31326
|
+
type: [
|
|
31327
|
+
"string",
|
|
31328
|
+
"null"
|
|
31329
|
+
],
|
|
31330
|
+
format: "uuid",
|
|
31331
|
+
description: "The published Spec version the node config was read from."
|
|
31332
|
+
},
|
|
31333
|
+
grain: {
|
|
31334
|
+
type: "string",
|
|
31335
|
+
enum: [
|
|
31336
|
+
"row",
|
|
31337
|
+
"pipeline",
|
|
31338
|
+
"assembly",
|
|
31339
|
+
"matcher",
|
|
31340
|
+
"data_product"
|
|
31341
|
+
]
|
|
31342
|
+
},
|
|
31343
|
+
mode: {
|
|
31344
|
+
type: "string",
|
|
31345
|
+
enum: [
|
|
31346
|
+
"manual",
|
|
31347
|
+
"on_run_completed"
|
|
31348
|
+
]
|
|
31349
|
+
},
|
|
31350
|
+
idempotency_key: {
|
|
31351
|
+
type: [
|
|
31352
|
+
"string",
|
|
31353
|
+
"null"
|
|
31354
|
+
]
|
|
31355
|
+
},
|
|
31356
|
+
replay_of: {
|
|
31357
|
+
type: [
|
|
31358
|
+
"string",
|
|
31359
|
+
"null"
|
|
31360
|
+
],
|
|
31361
|
+
format: "uuid",
|
|
31362
|
+
description: "Set on a re-dispatch \u2014 the dispatch whose frozen selection this one inherited."
|
|
31363
|
+
},
|
|
31364
|
+
status: {
|
|
31365
|
+
type: "string",
|
|
31366
|
+
enum: [
|
|
31367
|
+
"pending",
|
|
31368
|
+
"published",
|
|
31369
|
+
"empty",
|
|
31370
|
+
"failed"
|
|
31371
|
+
]
|
|
31372
|
+
},
|
|
31373
|
+
error: {
|
|
31374
|
+
type: [
|
|
31375
|
+
"string",
|
|
31376
|
+
"null"
|
|
31377
|
+
]
|
|
31378
|
+
},
|
|
31379
|
+
selection: {
|
|
31380
|
+
type: "object",
|
|
31381
|
+
description: "The FROZEN selection. Two id spaces, never mixed.",
|
|
31382
|
+
properties: {
|
|
31383
|
+
scope: {
|
|
31384
|
+
type: "string",
|
|
31385
|
+
enum: [
|
|
31386
|
+
"all",
|
|
31387
|
+
"changed_since"
|
|
31388
|
+
]
|
|
31389
|
+
},
|
|
31390
|
+
row_source: {
|
|
31391
|
+
type: "string",
|
|
31392
|
+
enum: [
|
|
31393
|
+
"document",
|
|
31394
|
+
"product"
|
|
31395
|
+
]
|
|
31396
|
+
},
|
|
31397
|
+
document_ids: {
|
|
31398
|
+
type: "array",
|
|
31399
|
+
items: {
|
|
31400
|
+
type: "string",
|
|
31401
|
+
format: "uuid"
|
|
31402
|
+
}
|
|
31403
|
+
},
|
|
31404
|
+
product_record_ids: {
|
|
31405
|
+
type: "array",
|
|
31406
|
+
items: {
|
|
31407
|
+
type: "string",
|
|
31408
|
+
format: "uuid"
|
|
31409
|
+
}
|
|
31410
|
+
},
|
|
31411
|
+
since: {
|
|
31412
|
+
type: "string",
|
|
31413
|
+
format: "date-time",
|
|
31414
|
+
description: "Exclusive lower bound of the delta window."
|
|
31415
|
+
},
|
|
31416
|
+
until: {
|
|
31417
|
+
type: "string",
|
|
31418
|
+
format: "date-time",
|
|
31419
|
+
description: "Inclusive upper bound of the delta window."
|
|
31420
|
+
}
|
|
31421
|
+
}
|
|
31422
|
+
},
|
|
31423
|
+
projection: {
|
|
31424
|
+
type: "object",
|
|
31425
|
+
description: "The FROZEN projection \u2014 one column set per node, so tabular serializers stay stable.",
|
|
31426
|
+
properties: {
|
|
31427
|
+
field_ids: {
|
|
31428
|
+
type: "array",
|
|
31429
|
+
items: {
|
|
31430
|
+
type: "string"
|
|
31431
|
+
}
|
|
31432
|
+
},
|
|
31433
|
+
field_keys: {
|
|
31434
|
+
type: "array",
|
|
31435
|
+
items: {
|
|
31436
|
+
type: "string"
|
|
31437
|
+
}
|
|
31438
|
+
},
|
|
31439
|
+
changed_fields_only: {
|
|
31440
|
+
type: "boolean"
|
|
31441
|
+
},
|
|
31442
|
+
include_shortlist_keys: {
|
|
31443
|
+
type: "boolean",
|
|
31444
|
+
description: "matcher grain only \u2014 ship the rival KEYS of a shortlist."
|
|
31445
|
+
}
|
|
31446
|
+
}
|
|
31447
|
+
},
|
|
31448
|
+
data_product_id: {
|
|
31449
|
+
type: [
|
|
31450
|
+
"string",
|
|
31451
|
+
"null"
|
|
31452
|
+
],
|
|
31453
|
+
format: "uuid",
|
|
31454
|
+
description: "`data_product` grain only \u2014 the product frozen at trigger time."
|
|
31455
|
+
},
|
|
31456
|
+
watermark_at: {
|
|
31457
|
+
type: [
|
|
31458
|
+
"string",
|
|
31459
|
+
"null"
|
|
31460
|
+
],
|
|
31461
|
+
format: "date-time",
|
|
31462
|
+
description: "Max value-cell timestamp covered; set for changed_since scope only."
|
|
31463
|
+
},
|
|
31464
|
+
record_count: {
|
|
31465
|
+
type: "integer"
|
|
31466
|
+
},
|
|
31467
|
+
event_count: {
|
|
31468
|
+
type: "integer"
|
|
31469
|
+
},
|
|
31470
|
+
triggered_by: {
|
|
31471
|
+
type: [
|
|
31472
|
+
"string",
|
|
31473
|
+
"null"
|
|
31474
|
+
],
|
|
31475
|
+
format: "uuid",
|
|
31476
|
+
description: "User id for a manual trigger; null for `on_run_completed`."
|
|
31477
|
+
},
|
|
31478
|
+
created_at: {
|
|
31479
|
+
type: "string",
|
|
31480
|
+
format: "date-time"
|
|
31481
|
+
},
|
|
31482
|
+
items: {
|
|
31483
|
+
type: "array",
|
|
31484
|
+
description: "Present on the list read \u2014 per-binding delivery-attempt counts for this dispatch, joined through the outbox events.",
|
|
31485
|
+
items: {
|
|
31486
|
+
type: "object",
|
|
31487
|
+
properties: {
|
|
31488
|
+
binding_id: {
|
|
31489
|
+
type: "string",
|
|
31490
|
+
format: "uuid"
|
|
31491
|
+
},
|
|
31492
|
+
status: {
|
|
31493
|
+
type: "string",
|
|
31494
|
+
description: "Delivery item status (pending",
|
|
31495
|
+
in_flight: null,
|
|
31496
|
+
delivered: null,
|
|
31497
|
+
failed: null,
|
|
31498
|
+
"dead_letter).": null
|
|
31499
|
+
},
|
|
31500
|
+
count: {
|
|
31501
|
+
type: "integer"
|
|
31502
|
+
}
|
|
31503
|
+
}
|
|
31504
|
+
}
|
|
31505
|
+
}
|
|
31506
|
+
}
|
|
31507
|
+
},
|
|
30412
31508
|
DeliveryPolicy: {
|
|
30413
31509
|
type: "object",
|
|
30414
|
-
description: "Retry / timeout overrides consumed by the TransportWrapper
|
|
31510
|
+
description: "Retry / timeout overrides consumed by the TransportWrapper, plus the\nper-binding wire-compatibility knobs read by the webhook connector.\nSlice 1 defaults to a 6-attempt ladder with backoff\n`[5s, 30s, 2min, 10min, 1h]`.\n",
|
|
30415
31511
|
properties: {
|
|
31512
|
+
wire_format: {
|
|
31513
|
+
type: "string",
|
|
31514
|
+
enum: [
|
|
31515
|
+
"v1",
|
|
31516
|
+
"legacy_v1_webhooks"
|
|
31517
|
+
],
|
|
31518
|
+
default: "v1",
|
|
31519
|
+
description: "Body shape a `webhook` destination receives. `v1` (default) is the\ndelivery envelope `{ event, payload }`. `legacy_v1_webhooks`\nreproduces the retired `/v1/webhooks` body \u2014\n`{ event, delivery_id, timestamp, data }`, with `event` mapped\nback to the legacy name (`pipeline.completed` \u2192 `run.completed`,\n`pipeline.failed` \u2192 `run.failed`) and `delivery_id` =\n`dlv_` + the first 16 chars of the idempotency key (stable across\nattempts, unlike the legacy random-per-fire id) \u2014 so a receiver\nmigrated off `/v1/webhooks` parses it unchanged. Legacy values are\nrejected (400) on a non-`webhook` destination, and an unknown\nvalue is a 400 rather than a silent fallback to `v1`.\n"
|
|
31520
|
+
},
|
|
31521
|
+
signature_scheme: {
|
|
31522
|
+
type: "string",
|
|
31523
|
+
enum: [
|
|
31524
|
+
"v1",
|
|
31525
|
+
"legacy_sha256"
|
|
31526
|
+
],
|
|
31527
|
+
default: "v1",
|
|
31528
|
+
description: "How `X-Talonic-Signature` is computed for a `webhook` destination\ncarrying a signing secret. `v1` (default) signs `t=<ms>,v1=<hmac(ts.body)>`.\n`legacy_sha256` signs `sha256=<hmac(body)>` and adds the legacy\n`X-Talonic-Event`, `X-Talonic-Delivery` and\n`User-Agent: Talonic-Webhooks/1.0` headers (the `v1` headers are\nstill sent). Legacy values are rejected (400) on a non-`webhook`\ndestination; an unknown value is a 400.\n"
|
|
31529
|
+
},
|
|
30416
31530
|
max_attempts: {
|
|
30417
31531
|
type: "integer",
|
|
30418
31532
|
minimum: 1
|
|
@@ -34029,8 +35143,10 @@ var openapi_default = {
|
|
|
34029
35143
|
ResultsProvenance: {
|
|
34030
35144
|
type: "object",
|
|
34031
35145
|
required: [
|
|
34032
|
-
"kind"
|
|
35146
|
+
"kind",
|
|
35147
|
+
"match"
|
|
34033
35148
|
],
|
|
35149
|
+
description: "Where one delivered value came from. The same shape the `pipeline.capture` webhook carries in its `provenance` sidecar, so a consumer reads one contract whether it polls or receives the push. Only `kind: span` entries are highlightable: their `text` is the verbatim document quote to locate (client side with the provenance kit, or server side via `GET /v1/documents/{id}/span-geometry`).",
|
|
34034
35150
|
properties: {
|
|
34035
35151
|
kind: {
|
|
34036
35152
|
type: "string",
|
|
@@ -34040,16 +35156,17 @@ var openapi_default = {
|
|
|
34040
35156
|
"auto_adjudication",
|
|
34041
35157
|
"human",
|
|
34042
35158
|
"derived",
|
|
34043
|
-
"legacy"
|
|
35159
|
+
"legacy",
|
|
35160
|
+
"matcher_decision"
|
|
34044
35161
|
],
|
|
34045
|
-
description: "legacy covers the internal legacy_unvalidated kind plus any unparseable/unknown envelope."
|
|
35162
|
+
description: "`legacy` covers the internal legacy_unvalidated kind plus any unparseable/unknown envelope; `matcher_decision` is a reference-data match (a decision about a row, never a document quote)."
|
|
34046
35163
|
},
|
|
34047
35164
|
text: {
|
|
34048
35165
|
type: [
|
|
34049
35166
|
"string",
|
|
34050
35167
|
"null"
|
|
34051
35168
|
],
|
|
34052
|
-
description: "The winning value's genesis span text. Absent for a held cell (kind-only redaction)
|
|
35169
|
+
description: "The winning value's genesis span text, verbatim from the document markdown. Absent for a held cell (kind-only redaction); null for kinds that carry no quote (`matcher_decision`, `legacy` without text); never a displaced/previous value even when unheld."
|
|
34053
35170
|
},
|
|
34054
35171
|
derived_reason: {
|
|
34055
35172
|
type: "string",
|
|
@@ -34063,6 +35180,50 @@ var openapi_default = {
|
|
|
34063
35180
|
format: "uuid"
|
|
34064
35181
|
},
|
|
34065
35182
|
page_index: {
|
|
35183
|
+
type: [
|
|
35184
|
+
"integer",
|
|
35185
|
+
"null"
|
|
35186
|
+
],
|
|
35187
|
+
description: "0-based OCR page the quote was found on; null when no page was located. Present only on kinds that carry a quote (`span`, `assembly_override`, `auto_adjudication`) \u2014 absent, not null, on the others."
|
|
35188
|
+
},
|
|
35189
|
+
match: {
|
|
35190
|
+
type: "string",
|
|
35191
|
+
enum: [
|
|
35192
|
+
"exact",
|
|
35193
|
+
"approximate",
|
|
35194
|
+
"none"
|
|
35195
|
+
],
|
|
35196
|
+
description: "How well `text` locates in the document's served markdown (`GET /v1/documents/{id}/markdown`). `exact` deserves a tight highlight; `approximate` means the stored text is a section or a different rendering of the value \u2014 treat it as a region hint; `none` means do not highlight (also the value for every non-span kind and for a held cell)."
|
|
35197
|
+
},
|
|
35198
|
+
confidence: {
|
|
35199
|
+
type: [
|
|
35200
|
+
"number",
|
|
35201
|
+
"null"
|
|
35202
|
+
],
|
|
35203
|
+
description: "Always present. The anchor's own confidence in [0, 1]; falls back to the cell's stored extraction confidence when the envelope carries none (legacy/human/matcher kinds); null when neither exists."
|
|
35204
|
+
},
|
|
35205
|
+
path: {
|
|
35206
|
+
type: "array",
|
|
35207
|
+
items: {
|
|
35208
|
+
oneOf: [
|
|
35209
|
+
{
|
|
35210
|
+
type: "string"
|
|
35211
|
+
},
|
|
35212
|
+
{
|
|
35213
|
+
type: "integer"
|
|
35214
|
+
}
|
|
35215
|
+
]
|
|
35216
|
+
},
|
|
35217
|
+
description: 'Always present. Explicit path from the `fields` root \u2014 `["invoice_date"]` for a top-level field, `["addresses", 0, "city"]` for a leaf emitted under `include=provenance.nested`. Key off this, not the map key: without the nested include the map key is the raw field key; with it, every key (flat and leaf) is the escaped serialization of the path, so a field whose own name contains a dot appears as `stops\\\\.pickup\\\\.city`.'
|
|
35218
|
+
},
|
|
35219
|
+
char_start: {
|
|
35220
|
+
type: [
|
|
35221
|
+
"integer",
|
|
35222
|
+
"null"
|
|
35223
|
+
],
|
|
35224
|
+
description: "UTF-16 code-unit offset of the located quote in the served markdown; null when it did not locate. Present only on kinds that carry a quote \u2014 absent, not null, on the others, so test with `!= null`. `markdown.slice(char_start, char_end)` CONTAINS the quote but is not guaranteed to equal it byte for byte (normalization can widen the region by a character or two)."
|
|
35225
|
+
},
|
|
35226
|
+
char_end: {
|
|
34066
35227
|
type: [
|
|
34067
35228
|
"integer",
|
|
34068
35229
|
"null"
|
|
@@ -34367,7 +35528,8 @@ var openapi_default = {
|
|
|
34367
35528
|
enum: [
|
|
34368
35529
|
"processing",
|
|
34369
35530
|
"completed",
|
|
34370
|
-
"failed"
|
|
35531
|
+
"failed",
|
|
35532
|
+
"cancelled"
|
|
34371
35533
|
],
|
|
34372
35534
|
description: "The folded public run status (same vocabulary as GET /v1/run/{id}) \u2014 settles even for an append pipeline that never settles at the pipeline level."
|
|
34373
35535
|
},
|