@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/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
|
],
|
|
@@ -6301,6 +6530,42 @@ var openapi_default = {
|
|
|
6301
6530
|
example: "a1b2c3d4-e5f6-7890-abcd-ef1234567890"
|
|
6302
6531
|
},
|
|
6303
6532
|
description: "Filter by cluster."
|
|
6533
|
+
},
|
|
6534
|
+
{
|
|
6535
|
+
name: "maturity",
|
|
6536
|
+
in: "query",
|
|
6537
|
+
schema: {
|
|
6538
|
+
type: "string",
|
|
6539
|
+
enum: [
|
|
6540
|
+
"core",
|
|
6541
|
+
"proven",
|
|
6542
|
+
"candidate"
|
|
6543
|
+
]
|
|
6544
|
+
},
|
|
6545
|
+
description: "Filter by the named maturity level (`core` = tier 1, `proven` = tier 2, `candidate` = tier 3). Takes precedence over `tier`. Unknown values 400 (`invalid_maturity`)."
|
|
6546
|
+
},
|
|
6547
|
+
{
|
|
6548
|
+
name: "include_superseded",
|
|
6549
|
+
in: "query",
|
|
6550
|
+
schema: {
|
|
6551
|
+
type: "boolean",
|
|
6552
|
+
default: false
|
|
6553
|
+
},
|
|
6554
|
+
description: "Superseded rows (merged into a survivor; `superseded_by` set) are hidden by default so a cached vocabulary never carries two ids for one concept. `true` includes them."
|
|
6555
|
+
},
|
|
6556
|
+
{
|
|
6557
|
+
name: "admission_state",
|
|
6558
|
+
in: "query",
|
|
6559
|
+
schema: {
|
|
6560
|
+
type: "string",
|
|
6561
|
+
enum: [
|
|
6562
|
+
"canonical",
|
|
6563
|
+
"provisional",
|
|
6564
|
+
"all"
|
|
6565
|
+
],
|
|
6566
|
+
default: "canonical"
|
|
6567
|
+
},
|
|
6568
|
+
description: "Canonical read plane. Defaults to proven concepts only; `provisional` shows the recurrence-gated pool, `all` disables the filter."
|
|
6304
6569
|
}
|
|
6305
6570
|
],
|
|
6306
6571
|
responses: {
|
|
@@ -6374,17 +6639,80 @@ var openapi_default = {
|
|
|
6374
6639
|
}
|
|
6375
6640
|
}
|
|
6376
6641
|
},
|
|
6642
|
+
"/v1/fields/resolve": {
|
|
6643
|
+
get: {
|
|
6644
|
+
operationId: "resolveField",
|
|
6645
|
+
summary: "Resolve a field name to the live concept",
|
|
6646
|
+
description: "Stable-identity entry point for a consumer that holds a field NAME rather\nthan an id. Lookup order, first hit wins \u2014 indexed arms first, then two\ncase-insensitive sequential-scan fallbacks: exact `canonical_name` \u2192 the\nregistry `match_key` fold (separator / case / accent / plural\ninsensitive, the same `field_match_key()` the resolver binds with) \u2192 a\nmerge alias (`field_registry_aliases`) \u2192 exact `synonyms[]` containment\n(names folded in by merges and cleanup) \u2192 case-insensitive canonical\nname \u2192 case-insensitive synonym. The hit's redirect chain\nis then followed to the survivor unless `follow_redirects=false`, and\nevery hop is reported in `redirected_from` so a cache can rewrite its keys.\n",
|
|
6647
|
+
tags: [
|
|
6648
|
+
"Schemas"
|
|
6649
|
+
],
|
|
6650
|
+
parameters: [
|
|
6651
|
+
{
|
|
6652
|
+
name: "name",
|
|
6653
|
+
in: "query",
|
|
6654
|
+
required: true,
|
|
6655
|
+
schema: {
|
|
6656
|
+
type: "string"
|
|
6657
|
+
},
|
|
6658
|
+
description: "The field name to resolve, e.g. `Invoice No`."
|
|
6659
|
+
},
|
|
6660
|
+
{
|
|
6661
|
+
name: "follow_redirects",
|
|
6662
|
+
in: "query",
|
|
6663
|
+
schema: {
|
|
6664
|
+
type: "boolean",
|
|
6665
|
+
default: true
|
|
6666
|
+
},
|
|
6667
|
+
description: "Walk `superseded_by` to the live survivor (default true)."
|
|
6668
|
+
}
|
|
6669
|
+
],
|
|
6670
|
+
responses: {
|
|
6671
|
+
"200": {
|
|
6672
|
+
description: "The resolved concept.",
|
|
6673
|
+
content: {
|
|
6674
|
+
"application/json": {
|
|
6675
|
+
schema: {
|
|
6676
|
+
$ref: "#/components/schemas/FieldResolveResponse"
|
|
6677
|
+
}
|
|
6678
|
+
}
|
|
6679
|
+
}
|
|
6680
|
+
},
|
|
6681
|
+
"400": {
|
|
6682
|
+
description: "`missing_name` \u2014 the `name` query parameter is required exactly once."
|
|
6683
|
+
},
|
|
6684
|
+
"401": {
|
|
6685
|
+
$ref: "#/components/responses/Unauthorized"
|
|
6686
|
+
},
|
|
6687
|
+
"404": {
|
|
6688
|
+
description: "`unknown_field` \u2014 no arm matched the name in this registry."
|
|
6689
|
+
},
|
|
6690
|
+
"429": {
|
|
6691
|
+
$ref: "#/components/responses/RateLimitExceeded"
|
|
6692
|
+
}
|
|
6693
|
+
}
|
|
6694
|
+
}
|
|
6695
|
+
},
|
|
6377
6696
|
"/v1/fields/{id}": {
|
|
6378
6697
|
get: {
|
|
6379
6698
|
operationId: "getField",
|
|
6380
6699
|
summary: "Get a field",
|
|
6381
|
-
description: "Returns the field registry row plus up to 20 most recent occurrences.",
|
|
6700
|
+
description: "Returns the field registry row plus up to 20 most recent occurrences.\n\nA superseded row (merged into a survivor) is returned as-is with\n`superseded_by` set, so a stored id never 404s after curation. Pass\n`follow_redirects=true` to receive the survivor instead; the hops walked\nare listed in `redirected_from`.\n",
|
|
6382
6701
|
tags: [
|
|
6383
6702
|
"Schemas"
|
|
6384
6703
|
],
|
|
6385
6704
|
parameters: [
|
|
6386
6705
|
{
|
|
6387
6706
|
$ref: "#/components/parameters/ResourceId"
|
|
6707
|
+
},
|
|
6708
|
+
{
|
|
6709
|
+
name: "follow_redirects",
|
|
6710
|
+
in: "query",
|
|
6711
|
+
schema: {
|
|
6712
|
+
type: "boolean",
|
|
6713
|
+
default: false
|
|
6714
|
+
},
|
|
6715
|
+
description: "Walk `superseded_by` to the live survivor and return that row."
|
|
6388
6716
|
}
|
|
6389
6717
|
],
|
|
6390
6718
|
responses: {
|
|
@@ -6490,6 +6818,176 @@ var openapi_default = {
|
|
|
6490
6818
|
}
|
|
6491
6819
|
}
|
|
6492
6820
|
},
|
|
6821
|
+
"/v1/fields/{id}/card": {
|
|
6822
|
+
get: {
|
|
6823
|
+
operationId: "getFieldCard",
|
|
6824
|
+
summary: "Get the concept card for a field",
|
|
6825
|
+
description: "One read that tells a consumer what a field MEANS and how it BEHAVES, so\nan agent can choose the right concept without trial and error:\ndefinition (curated description + extraction instruction), synonyms and\nmerge aliases, maturity, where it occurs (document / occurrence counts,\nfirst/last seen, document-type spread), the value distribution (top\nvalues with counts and shares, distinct count), schema usage, and its\nidentity links (`superseded_by`, absorbed concepts).\n\nValue statistics are Sources-IAM filtered as the key's minting user and\ninclude occurrences still bound to concepts merged INTO this one, so the\ncard is complete while a merge's lazy repoint is in flight.\n",
|
|
6826
|
+
tags: [
|
|
6827
|
+
"Schemas"
|
|
6828
|
+
],
|
|
6829
|
+
parameters: [
|
|
6830
|
+
{
|
|
6831
|
+
$ref: "#/components/parameters/ResourceId"
|
|
6832
|
+
},
|
|
6833
|
+
{
|
|
6834
|
+
name: "follow_redirects",
|
|
6835
|
+
in: "query",
|
|
6836
|
+
schema: {
|
|
6837
|
+
type: "boolean",
|
|
6838
|
+
default: false
|
|
6839
|
+
},
|
|
6840
|
+
description: "Walk `superseded_by` to the live survivor and describe that concept."
|
|
6841
|
+
}
|
|
6842
|
+
],
|
|
6843
|
+
responses: {
|
|
6844
|
+
"200": {
|
|
6845
|
+
description: "Concept card.",
|
|
6846
|
+
content: {
|
|
6847
|
+
"application/json": {
|
|
6848
|
+
schema: {
|
|
6849
|
+
$ref: "#/components/schemas/FieldCardResponse"
|
|
6850
|
+
}
|
|
6851
|
+
}
|
|
6852
|
+
}
|
|
6853
|
+
},
|
|
6854
|
+
"401": {
|
|
6855
|
+
$ref: "#/components/responses/Unauthorized"
|
|
6856
|
+
},
|
|
6857
|
+
"404": {
|
|
6858
|
+
$ref: "#/components/responses/NotFound"
|
|
6859
|
+
},
|
|
6860
|
+
"429": {
|
|
6861
|
+
$ref: "#/components/responses/RateLimitExceeded"
|
|
6862
|
+
}
|
|
6863
|
+
}
|
|
6864
|
+
}
|
|
6865
|
+
},
|
|
6866
|
+
"/v1/fields/{id}/values": {
|
|
6867
|
+
get: {
|
|
6868
|
+
operationId: "listFieldValues",
|
|
6869
|
+
summary: "List a field's current values across documents",
|
|
6870
|
+
description: "The cross-document read: one row per occurrence bound to the concept\n(a per-cell column is several rows sharing `document_id`), newest first,\ncursor-paginated, each with its provenance (raw name, verbatim source\ntext, resolution band, confirmation state). `document_id` narrows to one\ndocument; `value` is a case-insensitive contains match on the value text.\n\nSources-IAM filtered as the key's minting user \u2014 `pagination.total`\ncounts the visible set. Includes occurrences still bound to concepts\nmerged INTO this one unless `include_redirected=false`; such rows carry\n`provenance.via_redirect: true`.\n",
|
|
6871
|
+
tags: [
|
|
6872
|
+
"Schemas"
|
|
6873
|
+
],
|
|
6874
|
+
parameters: [
|
|
6875
|
+
{
|
|
6876
|
+
$ref: "#/components/parameters/ResourceId"
|
|
6877
|
+
},
|
|
6878
|
+
{
|
|
6879
|
+
$ref: "#/components/parameters/Limit"
|
|
6880
|
+
},
|
|
6881
|
+
{
|
|
6882
|
+
$ref: "#/components/parameters/Cursor"
|
|
6883
|
+
},
|
|
6884
|
+
{
|
|
6885
|
+
$ref: "#/components/parameters/Order"
|
|
6886
|
+
},
|
|
6887
|
+
{
|
|
6888
|
+
name: "document_id",
|
|
6889
|
+
in: "query",
|
|
6890
|
+
schema: {
|
|
6891
|
+
type: "string",
|
|
6892
|
+
format: "uuid"
|
|
6893
|
+
},
|
|
6894
|
+
description: "Only occurrences on this document."
|
|
6895
|
+
},
|
|
6896
|
+
{
|
|
6897
|
+
name: "value",
|
|
6898
|
+
in: "query",
|
|
6899
|
+
schema: {
|
|
6900
|
+
type: "string"
|
|
6901
|
+
},
|
|
6902
|
+
description: "Case-insensitive contains filter on the value text."
|
|
6903
|
+
},
|
|
6904
|
+
{
|
|
6905
|
+
name: "include_redirected",
|
|
6906
|
+
in: "query",
|
|
6907
|
+
schema: {
|
|
6908
|
+
type: "boolean",
|
|
6909
|
+
default: true
|
|
6910
|
+
},
|
|
6911
|
+
description: "Include occurrences bound to concepts merged into this one."
|
|
6912
|
+
},
|
|
6913
|
+
{
|
|
6914
|
+
name: "follow_redirects",
|
|
6915
|
+
in: "query",
|
|
6916
|
+
schema: {
|
|
6917
|
+
type: "boolean",
|
|
6918
|
+
default: false
|
|
6919
|
+
},
|
|
6920
|
+
description: "Walk `superseded_by` first and list the survivor's values."
|
|
6921
|
+
}
|
|
6922
|
+
],
|
|
6923
|
+
responses: {
|
|
6924
|
+
"200": {
|
|
6925
|
+
description: "Paginated values with provenance.",
|
|
6926
|
+
content: {
|
|
6927
|
+
"application/json": {
|
|
6928
|
+
schema: {
|
|
6929
|
+
$ref: "#/components/schemas/FieldValuesResponse"
|
|
6930
|
+
}
|
|
6931
|
+
}
|
|
6932
|
+
}
|
|
6933
|
+
},
|
|
6934
|
+
"401": {
|
|
6935
|
+
$ref: "#/components/responses/Unauthorized"
|
|
6936
|
+
},
|
|
6937
|
+
"404": {
|
|
6938
|
+
$ref: "#/components/responses/NotFound"
|
|
6939
|
+
},
|
|
6940
|
+
"429": {
|
|
6941
|
+
$ref: "#/components/responses/RateLimitExceeded"
|
|
6942
|
+
}
|
|
6943
|
+
}
|
|
6944
|
+
}
|
|
6945
|
+
},
|
|
6946
|
+
"/v1/fields/{id}/history": {
|
|
6947
|
+
get: {
|
|
6948
|
+
operationId: "getFieldHistory",
|
|
6949
|
+
summary: "Get a field's curation history",
|
|
6950
|
+
description: "The concept's curation trail, newest first \u2014 what a consumer replays to\nkeep a cached vocabulary correct: maturity moves (`tier_changed`), merges\nin either direction (`merge_log_absorbed`, `merge_log_merged_into`,\n`absorbed`), cleanup actions applied to it (`renamed`, `rewritten`,\n`split`, `deleted`), the current redirect (`superseded`) and the names\nthat now fold onto it (`alias_added`). The same changes are announced live\non `GET /v1/events` as `field.*` signals. Never follows redirects \u2014 the\ntrail belongs to the id asked for.\n",
|
|
6951
|
+
tags: [
|
|
6952
|
+
"Schemas"
|
|
6953
|
+
],
|
|
6954
|
+
parameters: [
|
|
6955
|
+
{
|
|
6956
|
+
$ref: "#/components/parameters/ResourceId"
|
|
6957
|
+
},
|
|
6958
|
+
{
|
|
6959
|
+
name: "limit",
|
|
6960
|
+
in: "query",
|
|
6961
|
+
schema: {
|
|
6962
|
+
type: "integer",
|
|
6963
|
+
default: 100,
|
|
6964
|
+
maximum: 500
|
|
6965
|
+
}
|
|
6966
|
+
}
|
|
6967
|
+
],
|
|
6968
|
+
responses: {
|
|
6969
|
+
"200": {
|
|
6970
|
+
description: "Curation events, newest first.",
|
|
6971
|
+
content: {
|
|
6972
|
+
"application/json": {
|
|
6973
|
+
schema: {
|
|
6974
|
+
$ref: "#/components/schemas/FieldHistoryResponse"
|
|
6975
|
+
}
|
|
6976
|
+
}
|
|
6977
|
+
}
|
|
6978
|
+
},
|
|
6979
|
+
"401": {
|
|
6980
|
+
$ref: "#/components/responses/Unauthorized"
|
|
6981
|
+
},
|
|
6982
|
+
"404": {
|
|
6983
|
+
$ref: "#/components/responses/NotFound"
|
|
6984
|
+
},
|
|
6985
|
+
"429": {
|
|
6986
|
+
$ref: "#/components/responses/RateLimitExceeded"
|
|
6987
|
+
}
|
|
6988
|
+
}
|
|
6989
|
+
}
|
|
6990
|
+
},
|
|
6493
6991
|
"/v1/reference-data": {
|
|
6494
6992
|
get: {
|
|
6495
6993
|
operationId: "listReferenceData",
|
|
@@ -16499,6 +16997,7 @@ var openapi_default = {
|
|
|
16499
16997
|
"valid",
|
|
16500
16998
|
"assembly",
|
|
16501
16999
|
"deliver",
|
|
17000
|
+
"dispatch",
|
|
16502
17001
|
"reconcile",
|
|
16503
17002
|
"sanitize",
|
|
16504
17003
|
"triage"
|
|
@@ -19908,6 +20407,67 @@ var openapi_default = {
|
|
|
19908
20407
|
}
|
|
19909
20408
|
}
|
|
19910
20409
|
},
|
|
20410
|
+
"/v1/pipelines/{id}/cancel": {
|
|
20411
|
+
post: {
|
|
20412
|
+
tags: [
|
|
20413
|
+
"Pipelines"
|
|
20414
|
+
],
|
|
20415
|
+
summary: "Cancel a running pipeline",
|
|
20416
|
+
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",
|
|
20417
|
+
operationId: "cancelPipeline",
|
|
20418
|
+
security: [
|
|
20419
|
+
{
|
|
20420
|
+
BearerAuth: []
|
|
20421
|
+
}
|
|
20422
|
+
],
|
|
20423
|
+
parameters: [
|
|
20424
|
+
{
|
|
20425
|
+
name: "id",
|
|
20426
|
+
in: "path",
|
|
20427
|
+
required: true,
|
|
20428
|
+
schema: {
|
|
20429
|
+
type: "string",
|
|
20430
|
+
format: "uuid"
|
|
20431
|
+
}
|
|
20432
|
+
}
|
|
20433
|
+
],
|
|
20434
|
+
requestBody: {
|
|
20435
|
+
required: false,
|
|
20436
|
+
content: {
|
|
20437
|
+
"application/json": {
|
|
20438
|
+
schema: {
|
|
20439
|
+
type: "object",
|
|
20440
|
+
properties: {
|
|
20441
|
+
reason: {
|
|
20442
|
+
type: "string",
|
|
20443
|
+
maxLength: 500,
|
|
20444
|
+
description: "Optional free text recorded on the run and carried by the run.cancelled webhook."
|
|
20445
|
+
}
|
|
20446
|
+
}
|
|
20447
|
+
}
|
|
20448
|
+
}
|
|
20449
|
+
}
|
|
20450
|
+
},
|
|
20451
|
+
responses: {
|
|
20452
|
+
"200": {
|
|
20453
|
+
description: "Cancel result (idempotent: `already: true` on a run that was already terminal).",
|
|
20454
|
+
content: {
|
|
20455
|
+
"application/json": {
|
|
20456
|
+
schema: {
|
|
20457
|
+
$ref: "#/components/schemas/PipelineCancelResponse"
|
|
20458
|
+
}
|
|
20459
|
+
}
|
|
20460
|
+
}
|
|
20461
|
+
},
|
|
20462
|
+
"401": {
|
|
20463
|
+
$ref: "#/components/responses/Unauthorized"
|
|
20464
|
+
},
|
|
20465
|
+
"404": {
|
|
20466
|
+
$ref: "#/components/responses/NotFound"
|
|
20467
|
+
}
|
|
20468
|
+
}
|
|
20469
|
+
}
|
|
20470
|
+
},
|
|
19911
20471
|
"/v1/pipelines/{id}/data-product": {
|
|
19912
20472
|
post: {
|
|
19913
20473
|
tags: [
|
|
@@ -20038,7 +20598,7 @@ var openapi_default = {
|
|
|
20038
20598
|
schema: {
|
|
20039
20599
|
type: "string"
|
|
20040
20600
|
},
|
|
20041
|
-
description: "Comma-separated subset of cells, provenance, audit."
|
|
20601
|
+
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
20602
|
},
|
|
20043
20603
|
{
|
|
20044
20604
|
name: "limit",
|
|
@@ -20100,6 +20660,360 @@ var openapi_default = {
|
|
|
20100
20660
|
}
|
|
20101
20661
|
}
|
|
20102
20662
|
},
|
|
20663
|
+
"/v1/pipelines/{id}/dispatches/{stageId}": {
|
|
20664
|
+
post: {
|
|
20665
|
+
tags: [
|
|
20666
|
+
"Pipelines"
|
|
20667
|
+
],
|
|
20668
|
+
summary: "Trigger a Spec Dispatch node",
|
|
20669
|
+
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",
|
|
20670
|
+
operationId: "triggerPipelineDispatch",
|
|
20671
|
+
security: [
|
|
20672
|
+
{
|
|
20673
|
+
BearerAuth: []
|
|
20674
|
+
}
|
|
20675
|
+
],
|
|
20676
|
+
parameters: [
|
|
20677
|
+
{
|
|
20678
|
+
name: "id",
|
|
20679
|
+
in: "path",
|
|
20680
|
+
required: true,
|
|
20681
|
+
schema: {
|
|
20682
|
+
type: "string",
|
|
20683
|
+
format: "uuid"
|
|
20684
|
+
},
|
|
20685
|
+
description: "The pipeline run to dispatch from."
|
|
20686
|
+
},
|
|
20687
|
+
{
|
|
20688
|
+
name: "stageId",
|
|
20689
|
+
in: "path",
|
|
20690
|
+
required: true,
|
|
20691
|
+
schema: {
|
|
20692
|
+
type: "string",
|
|
20693
|
+
pattern: "^[A-Za-z0-9_-]{1,64}$",
|
|
20694
|
+
maxLength: 64
|
|
20695
|
+
},
|
|
20696
|
+
description: "Spec stage id of the Dispatch node (editor-minted uuid or a normalized `s-dispatch` form)."
|
|
20697
|
+
},
|
|
20698
|
+
{
|
|
20699
|
+
name: "Idempotency-Key",
|
|
20700
|
+
in: "header",
|
|
20701
|
+
required: false,
|
|
20702
|
+
schema: {
|
|
20703
|
+
type: "string",
|
|
20704
|
+
maxLength: 200
|
|
20705
|
+
},
|
|
20706
|
+
description: "Caller trigger key, unique per (pipeline, node). A repeat returns the existing dispatch with 200."
|
|
20707
|
+
}
|
|
20708
|
+
],
|
|
20709
|
+
requestBody: {
|
|
20710
|
+
required: false,
|
|
20711
|
+
content: {
|
|
20712
|
+
"application/json": {
|
|
20713
|
+
schema: {
|
|
20714
|
+
type: "object",
|
|
20715
|
+
properties: {
|
|
20716
|
+
document_ids: {
|
|
20717
|
+
type: "array",
|
|
20718
|
+
maxItems: 5e4,
|
|
20719
|
+
items: {
|
|
20720
|
+
type: "string",
|
|
20721
|
+
format: "uuid"
|
|
20722
|
+
},
|
|
20723
|
+
description: "Explicit subset of the node's document population (document-keyed grains). Intersected, never unioned."
|
|
20724
|
+
},
|
|
20725
|
+
product_record_ids: {
|
|
20726
|
+
type: "array",
|
|
20727
|
+
maxItems: 5e4,
|
|
20728
|
+
items: {
|
|
20729
|
+
type: "string",
|
|
20730
|
+
format: "uuid"
|
|
20731
|
+
},
|
|
20732
|
+
description: "Explicit subset of the assembly product records (product-keyed grains). Intersected, never unioned."
|
|
20733
|
+
}
|
|
20734
|
+
}
|
|
20735
|
+
}
|
|
20736
|
+
}
|
|
20737
|
+
}
|
|
20738
|
+
},
|
|
20739
|
+
responses: {
|
|
20740
|
+
"200": {
|
|
20741
|
+
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",
|
|
20742
|
+
content: {
|
|
20743
|
+
"application/json": {
|
|
20744
|
+
schema: {
|
|
20745
|
+
$ref: "#/components/schemas/DispatchTriggerResult"
|
|
20746
|
+
}
|
|
20747
|
+
}
|
|
20748
|
+
}
|
|
20749
|
+
},
|
|
20750
|
+
"201": {
|
|
20751
|
+
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",
|
|
20752
|
+
content: {
|
|
20753
|
+
"application/json": {
|
|
20754
|
+
schema: {
|
|
20755
|
+
$ref: "#/components/schemas/DispatchTriggerResult"
|
|
20756
|
+
}
|
|
20757
|
+
}
|
|
20758
|
+
}
|
|
20759
|
+
},
|
|
20760
|
+
"400": {
|
|
20761
|
+
description: "Malformed stage id, or a body that failed validation (`VALIDATION_ERROR`).",
|
|
20762
|
+
content: {
|
|
20763
|
+
"application/json": {
|
|
20764
|
+
schema: {
|
|
20765
|
+
$ref: "#/components/schemas/ErrorResponse"
|
|
20766
|
+
}
|
|
20767
|
+
}
|
|
20768
|
+
}
|
|
20769
|
+
},
|
|
20770
|
+
"404": {
|
|
20771
|
+
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",
|
|
20772
|
+
content: {
|
|
20773
|
+
"application/json": {
|
|
20774
|
+
schema: {
|
|
20775
|
+
$ref: "#/components/schemas/ErrorResponse"
|
|
20776
|
+
}
|
|
20777
|
+
}
|
|
20778
|
+
}
|
|
20779
|
+
},
|
|
20780
|
+
"409": {
|
|
20781
|
+
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",
|
|
20782
|
+
content: {
|
|
20783
|
+
"application/json": {
|
|
20784
|
+
schema: {
|
|
20785
|
+
$ref: "#/components/schemas/ErrorResponse"
|
|
20786
|
+
}
|
|
20787
|
+
}
|
|
20788
|
+
}
|
|
20789
|
+
},
|
|
20790
|
+
"413": {
|
|
20791
|
+
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",
|
|
20792
|
+
content: {
|
|
20793
|
+
"application/json": {
|
|
20794
|
+
schema: {
|
|
20795
|
+
$ref: "#/components/schemas/ErrorResponse"
|
|
20796
|
+
}
|
|
20797
|
+
}
|
|
20798
|
+
}
|
|
20799
|
+
},
|
|
20800
|
+
"429": {
|
|
20801
|
+
$ref: "#/components/responses/RateLimitExceeded"
|
|
20802
|
+
}
|
|
20803
|
+
}
|
|
20804
|
+
}
|
|
20805
|
+
},
|
|
20806
|
+
"/v1/pipelines/{id}/dispatches": {
|
|
20807
|
+
get: {
|
|
20808
|
+
tags: [
|
|
20809
|
+
"Pipelines"
|
|
20810
|
+
],
|
|
20811
|
+
summary: "List a pipeline's dispatches",
|
|
20812
|
+
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",
|
|
20813
|
+
operationId: "listPipelineDispatches",
|
|
20814
|
+
security: [
|
|
20815
|
+
{
|
|
20816
|
+
BearerAuth: []
|
|
20817
|
+
}
|
|
20818
|
+
],
|
|
20819
|
+
parameters: [
|
|
20820
|
+
{
|
|
20821
|
+
name: "id",
|
|
20822
|
+
in: "path",
|
|
20823
|
+
required: true,
|
|
20824
|
+
schema: {
|
|
20825
|
+
type: "string",
|
|
20826
|
+
format: "uuid"
|
|
20827
|
+
}
|
|
20828
|
+
},
|
|
20829
|
+
{
|
|
20830
|
+
name: "stage_id",
|
|
20831
|
+
in: "query",
|
|
20832
|
+
required: false,
|
|
20833
|
+
schema: {
|
|
20834
|
+
type: "string",
|
|
20835
|
+
pattern: "^[A-Za-z0-9_-]{1,64}$",
|
|
20836
|
+
maxLength: 64
|
|
20837
|
+
},
|
|
20838
|
+
description: "Limit to one Dispatch node."
|
|
20839
|
+
},
|
|
20840
|
+
{
|
|
20841
|
+
name: "limit",
|
|
20842
|
+
in: "query",
|
|
20843
|
+
required: false,
|
|
20844
|
+
schema: {
|
|
20845
|
+
type: "integer",
|
|
20846
|
+
default: 50,
|
|
20847
|
+
minimum: 1,
|
|
20848
|
+
maximum: 200
|
|
20849
|
+
},
|
|
20850
|
+
description: "Rows to return (clamped to 1..200; default 50)."
|
|
20851
|
+
}
|
|
20852
|
+
],
|
|
20853
|
+
responses: {
|
|
20854
|
+
"200": {
|
|
20855
|
+
description: "Dispatch rows, newest first.",
|
|
20856
|
+
content: {
|
|
20857
|
+
"application/json": {
|
|
20858
|
+
schema: {
|
|
20859
|
+
type: "array",
|
|
20860
|
+
items: {
|
|
20861
|
+
$ref: "#/components/schemas/Dispatch"
|
|
20862
|
+
}
|
|
20863
|
+
}
|
|
20864
|
+
}
|
|
20865
|
+
}
|
|
20866
|
+
},
|
|
20867
|
+
"429": {
|
|
20868
|
+
$ref: "#/components/responses/RateLimitExceeded"
|
|
20869
|
+
}
|
|
20870
|
+
}
|
|
20871
|
+
}
|
|
20872
|
+
},
|
|
20873
|
+
"/v1/pipelines/{id}/dispatches/{dispatchId}": {
|
|
20874
|
+
get: {
|
|
20875
|
+
tags: [
|
|
20876
|
+
"Pipelines"
|
|
20877
|
+
],
|
|
20878
|
+
summary: "Get one dispatch",
|
|
20879
|
+
description: "One dispatch row with its frozen selection, projection and publish outcome. Requires read scope.",
|
|
20880
|
+
operationId: "getPipelineDispatch",
|
|
20881
|
+
security: [
|
|
20882
|
+
{
|
|
20883
|
+
BearerAuth: []
|
|
20884
|
+
}
|
|
20885
|
+
],
|
|
20886
|
+
parameters: [
|
|
20887
|
+
{
|
|
20888
|
+
name: "id",
|
|
20889
|
+
in: "path",
|
|
20890
|
+
required: true,
|
|
20891
|
+
schema: {
|
|
20892
|
+
type: "string",
|
|
20893
|
+
format: "uuid"
|
|
20894
|
+
}
|
|
20895
|
+
},
|
|
20896
|
+
{
|
|
20897
|
+
name: "dispatchId",
|
|
20898
|
+
in: "path",
|
|
20899
|
+
required: true,
|
|
20900
|
+
schema: {
|
|
20901
|
+
type: "string",
|
|
20902
|
+
format: "uuid"
|
|
20903
|
+
}
|
|
20904
|
+
}
|
|
20905
|
+
],
|
|
20906
|
+
responses: {
|
|
20907
|
+
"200": {
|
|
20908
|
+
description: "The dispatch row (without the `items[]` summary \u2014 that is on the list read).",
|
|
20909
|
+
content: {
|
|
20910
|
+
"application/json": {
|
|
20911
|
+
schema: {
|
|
20912
|
+
$ref: "#/components/schemas/Dispatch"
|
|
20913
|
+
}
|
|
20914
|
+
}
|
|
20915
|
+
}
|
|
20916
|
+
},
|
|
20917
|
+
"404": {
|
|
20918
|
+
description: "Dispatch not found for this pipeline and tenant (`RESOURCE_NOT_FOUND`).",
|
|
20919
|
+
content: {
|
|
20920
|
+
"application/json": {
|
|
20921
|
+
schema: {
|
|
20922
|
+
$ref: "#/components/schemas/ErrorResponse"
|
|
20923
|
+
}
|
|
20924
|
+
}
|
|
20925
|
+
}
|
|
20926
|
+
},
|
|
20927
|
+
"429": {
|
|
20928
|
+
$ref: "#/components/responses/RateLimitExceeded"
|
|
20929
|
+
}
|
|
20930
|
+
}
|
|
20931
|
+
}
|
|
20932
|
+
},
|
|
20933
|
+
"/v1/pipelines/{id}/dispatches/{dispatchId}/redispatch": {
|
|
20934
|
+
post: {
|
|
20935
|
+
tags: [
|
|
20936
|
+
"Pipelines"
|
|
20937
|
+
],
|
|
20938
|
+
summary: "Re-dispatch a previous dispatch",
|
|
20939
|
+
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",
|
|
20940
|
+
operationId: "redispatchPipelineDispatch",
|
|
20941
|
+
security: [
|
|
20942
|
+
{
|
|
20943
|
+
BearerAuth: []
|
|
20944
|
+
}
|
|
20945
|
+
],
|
|
20946
|
+
parameters: [
|
|
20947
|
+
{
|
|
20948
|
+
name: "id",
|
|
20949
|
+
in: "path",
|
|
20950
|
+
required: true,
|
|
20951
|
+
schema: {
|
|
20952
|
+
type: "string",
|
|
20953
|
+
format: "uuid"
|
|
20954
|
+
}
|
|
20955
|
+
},
|
|
20956
|
+
{
|
|
20957
|
+
name: "dispatchId",
|
|
20958
|
+
in: "path",
|
|
20959
|
+
required: true,
|
|
20960
|
+
schema: {
|
|
20961
|
+
type: "string",
|
|
20962
|
+
format: "uuid"
|
|
20963
|
+
}
|
|
20964
|
+
}
|
|
20965
|
+
],
|
|
20966
|
+
responses: {
|
|
20967
|
+
"201": {
|
|
20968
|
+
description: "The new dispatch row.",
|
|
20969
|
+
content: {
|
|
20970
|
+
"application/json": {
|
|
20971
|
+
schema: {
|
|
20972
|
+
allOf: [
|
|
20973
|
+
{
|
|
20974
|
+
$ref: "#/components/schemas/DispatchTriggerResult"
|
|
20975
|
+
},
|
|
20976
|
+
{
|
|
20977
|
+
type: "object",
|
|
20978
|
+
properties: {
|
|
20979
|
+
replay_of: {
|
|
20980
|
+
type: "string",
|
|
20981
|
+
format: "uuid",
|
|
20982
|
+
description: "The dispatch whose frozen selection this one inherited."
|
|
20983
|
+
}
|
|
20984
|
+
}
|
|
20985
|
+
}
|
|
20986
|
+
]
|
|
20987
|
+
}
|
|
20988
|
+
}
|
|
20989
|
+
}
|
|
20990
|
+
},
|
|
20991
|
+
"404": {
|
|
20992
|
+
description: "Dispatch not found for this pipeline and tenant (`RESOURCE_NOT_FOUND`).",
|
|
20993
|
+
content: {
|
|
20994
|
+
"application/json": {
|
|
20995
|
+
schema: {
|
|
20996
|
+
$ref: "#/components/schemas/ErrorResponse"
|
|
20997
|
+
}
|
|
20998
|
+
}
|
|
20999
|
+
}
|
|
21000
|
+
},
|
|
21001
|
+
"409": {
|
|
21002
|
+
description: "A governance hold blocks delivery for the run's documents.",
|
|
21003
|
+
content: {
|
|
21004
|
+
"application/json": {
|
|
21005
|
+
schema: {
|
|
21006
|
+
$ref: "#/components/schemas/ErrorResponse"
|
|
21007
|
+
}
|
|
21008
|
+
}
|
|
21009
|
+
}
|
|
21010
|
+
},
|
|
21011
|
+
"429": {
|
|
21012
|
+
$ref: "#/components/responses/RateLimitExceeded"
|
|
21013
|
+
}
|
|
21014
|
+
}
|
|
21015
|
+
}
|
|
21016
|
+
},
|
|
20103
21017
|
"/v1/run": {
|
|
20104
21018
|
post: {
|
|
20105
21019
|
tags: [
|
|
@@ -20152,7 +21066,7 @@ var openapi_default = {
|
|
|
20152
21066
|
batch_id: {
|
|
20153
21067
|
type: "string",
|
|
20154
21068
|
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"
|
|
21069
|
+
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
21070
|
},
|
|
20157
21071
|
metadata: {
|
|
20158
21072
|
type: "string",
|
|
@@ -20301,7 +21215,7 @@ var openapi_default = {
|
|
|
20301
21215
|
"Run"
|
|
20302
21216
|
],
|
|
20303
21217
|
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 `
|
|
21218
|
+
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
21219
|
operationId: "pollRunRequest",
|
|
20306
21220
|
security: [
|
|
20307
21221
|
{
|
|
@@ -20340,7 +21254,8 @@ var openapi_default = {
|
|
|
20340
21254
|
enum: [
|
|
20341
21255
|
"processing",
|
|
20342
21256
|
"completed",
|
|
20343
|
-
"failed"
|
|
21257
|
+
"failed",
|
|
21258
|
+
"cancelled"
|
|
20344
21259
|
]
|
|
20345
21260
|
},
|
|
20346
21261
|
pipeline_id: {
|
|
@@ -20450,7 +21365,8 @@ var openapi_default = {
|
|
|
20450
21365
|
enum: [
|
|
20451
21366
|
"processing",
|
|
20452
21367
|
"completed",
|
|
20453
|
-
"failed"
|
|
21368
|
+
"failed",
|
|
21369
|
+
"cancelled"
|
|
20454
21370
|
]
|
|
20455
21371
|
}
|
|
20456
21372
|
}
|
|
@@ -20467,6 +21383,70 @@ var openapi_default = {
|
|
|
20467
21383
|
}
|
|
20468
21384
|
}
|
|
20469
21385
|
},
|
|
21386
|
+
"/v1/run/{id}/cancel": {
|
|
21387
|
+
post: {
|
|
21388
|
+
tags: [
|
|
21389
|
+
"Run"
|
|
21390
|
+
],
|
|
21391
|
+
summary: "Cancel the pipeline behind a /v1/run request",
|
|
21392
|
+
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",
|
|
21393
|
+
operationId: "cancelRun",
|
|
21394
|
+
security: [
|
|
21395
|
+
{
|
|
21396
|
+
BearerAuth: []
|
|
21397
|
+
}
|
|
21398
|
+
],
|
|
21399
|
+
parameters: [
|
|
21400
|
+
{
|
|
21401
|
+
name: "id",
|
|
21402
|
+
in: "path",
|
|
21403
|
+
required: true,
|
|
21404
|
+
schema: {
|
|
21405
|
+
type: "string",
|
|
21406
|
+
format: "uuid"
|
|
21407
|
+
}
|
|
21408
|
+
}
|
|
21409
|
+
],
|
|
21410
|
+
requestBody: {
|
|
21411
|
+
required: false,
|
|
21412
|
+
content: {
|
|
21413
|
+
"application/json": {
|
|
21414
|
+
schema: {
|
|
21415
|
+
type: "object",
|
|
21416
|
+
properties: {
|
|
21417
|
+
reason: {
|
|
21418
|
+
type: "string",
|
|
21419
|
+
maxLength: 500,
|
|
21420
|
+
description: "Optional free text recorded on the run and carried by the run.cancelled webhook."
|
|
21421
|
+
}
|
|
21422
|
+
}
|
|
21423
|
+
}
|
|
21424
|
+
}
|
|
21425
|
+
}
|
|
21426
|
+
},
|
|
21427
|
+
responses: {
|
|
21428
|
+
"200": {
|
|
21429
|
+
description: "Cancel result (idempotent: `already: true` on a run that was already terminal).",
|
|
21430
|
+
content: {
|
|
21431
|
+
"application/json": {
|
|
21432
|
+
schema: {
|
|
21433
|
+
$ref: "#/components/schemas/PipelineCancelResponse"
|
|
21434
|
+
}
|
|
21435
|
+
}
|
|
21436
|
+
}
|
|
21437
|
+
},
|
|
21438
|
+
"401": {
|
|
21439
|
+
$ref: "#/components/responses/Unauthorized"
|
|
21440
|
+
},
|
|
21441
|
+
"404": {
|
|
21442
|
+
$ref: "#/components/responses/NotFound"
|
|
21443
|
+
},
|
|
21444
|
+
"409": {
|
|
21445
|
+
description: "not_cancellable_yet: the run has no pipeline yet; retry once pipeline_id is set."
|
|
21446
|
+
}
|
|
21447
|
+
}
|
|
21448
|
+
}
|
|
21449
|
+
},
|
|
20470
21450
|
"/v1/run/{id}/results": {
|
|
20471
21451
|
get: {
|
|
20472
21452
|
tags: [
|
|
@@ -20504,7 +21484,7 @@ var openapi_default = {
|
|
|
20504
21484
|
schema: {
|
|
20505
21485
|
type: "string"
|
|
20506
21486
|
},
|
|
20507
|
-
description: "Comma-separated subset of cells, provenance, audit."
|
|
21487
|
+
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
21488
|
},
|
|
20509
21489
|
{
|
|
20510
21490
|
name: "limit",
|
|
@@ -20767,7 +21747,7 @@ var openapi_default = {
|
|
|
20767
21747
|
"Events"
|
|
20768
21748
|
],
|
|
20769
21749
|
summary: "List tenant events",
|
|
20770
|
-
description: "Newest-first feed of platform events (document.extracted, run.*.completed/failed, result.flagged/approved/rejected, delivery.item.*, case.resolved). Alias of /v1/delivery/events at the API root.\n",
|
|
21750
|
+
description: "Newest-first feed of platform events (document.extracted, run.*.completed/failed, result.flagged/approved/rejected, delivery.item.*, case.resolved, and the Field Registry lifecycle family field.graduated / field.promoted / field.demoted / field.merged / field.renamed \u2014 every payload names the concept by stable `field_id`, so a consumer caching /v1/fields can invalidate instead of polling). Alias of /v1/delivery/events at the API root.\n",
|
|
20771
21751
|
operationId: "listEvents",
|
|
20772
21752
|
security: [
|
|
20773
21753
|
{
|
|
@@ -20869,7 +21849,7 @@ var openapi_default = {
|
|
|
20869
21849
|
],
|
|
20870
21850
|
responses: {
|
|
20871
21851
|
"200": {
|
|
20872
|
-
description: "{ data: [{ event, description }] }"
|
|
21852
|
+
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
21853
|
}
|
|
20874
21854
|
}
|
|
20875
21855
|
}
|
|
@@ -20888,11 +21868,7 @@ var openapi_default = {
|
|
|
20888
21868
|
],
|
|
20889
21869
|
responses: {
|
|
20890
21870
|
"200": {
|
|
20891
|
-
description: "Content type"
|
|
20892
|
-
method: null,
|
|
20893
|
-
headers: null,
|
|
20894
|
-
body: null,
|
|
20895
|
-
"example.": null
|
|
21871
|
+
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
21872
|
}
|
|
20897
21873
|
}
|
|
20898
21874
|
}
|
|
@@ -26303,6 +27279,94 @@ var openapi_default = {
|
|
|
26303
27279
|
}
|
|
26304
27280
|
},
|
|
26305
27281
|
schemas: {
|
|
27282
|
+
PipelineCancelResponse: {
|
|
27283
|
+
type: "object",
|
|
27284
|
+
required: [
|
|
27285
|
+
"id",
|
|
27286
|
+
"status",
|
|
27287
|
+
"already",
|
|
27288
|
+
"cancelled_at",
|
|
27289
|
+
"documents",
|
|
27290
|
+
"run_requests",
|
|
27291
|
+
"jobs"
|
|
27292
|
+
],
|
|
27293
|
+
properties: {
|
|
27294
|
+
id: {
|
|
27295
|
+
type: "string",
|
|
27296
|
+
format: "uuid"
|
|
27297
|
+
},
|
|
27298
|
+
status: {
|
|
27299
|
+
type: "string",
|
|
27300
|
+
description: "The run's status after the call: cancelled, or the terminal state it already had."
|
|
27301
|
+
},
|
|
27302
|
+
already: {
|
|
27303
|
+
type: "boolean",
|
|
27304
|
+
description: "True when the run was already terminal and nothing changed."
|
|
27305
|
+
},
|
|
27306
|
+
cancelled_at: {
|
|
27307
|
+
type: "string",
|
|
27308
|
+
format: "date-time",
|
|
27309
|
+
nullable: true
|
|
27310
|
+
},
|
|
27311
|
+
documents: {
|
|
27312
|
+
type: "object",
|
|
27313
|
+
properties: {
|
|
27314
|
+
total: {
|
|
27315
|
+
type: "integer"
|
|
27316
|
+
},
|
|
27317
|
+
completed: {
|
|
27318
|
+
type: "integer"
|
|
27319
|
+
},
|
|
27320
|
+
cancelled: {
|
|
27321
|
+
type: "integer"
|
|
27322
|
+
},
|
|
27323
|
+
errored: {
|
|
27324
|
+
type: "integer"
|
|
27325
|
+
}
|
|
27326
|
+
}
|
|
27327
|
+
},
|
|
27328
|
+
run_requests: {
|
|
27329
|
+
type: "array",
|
|
27330
|
+
items: {
|
|
27331
|
+
type: "string",
|
|
27332
|
+
format: "uuid"
|
|
27333
|
+
},
|
|
27334
|
+
description: "run_ids of the /v1/run requests cancelled along with the pipeline."
|
|
27335
|
+
},
|
|
27336
|
+
jobs: {
|
|
27337
|
+
type: "object",
|
|
27338
|
+
description: "Best-effort removal of the run's queued jobs (a survivor stops at its next checkpoint).",
|
|
27339
|
+
properties: {
|
|
27340
|
+
removed: {
|
|
27341
|
+
type: "integer"
|
|
27342
|
+
},
|
|
27343
|
+
failed: {
|
|
27344
|
+
type: "integer"
|
|
27345
|
+
},
|
|
27346
|
+
scanned: {
|
|
27347
|
+
type: "integer"
|
|
27348
|
+
},
|
|
27349
|
+
scan_capped: {
|
|
27350
|
+
type: "boolean"
|
|
27351
|
+
},
|
|
27352
|
+
timed_out: {
|
|
27353
|
+
type: "boolean"
|
|
27354
|
+
}
|
|
27355
|
+
}
|
|
27356
|
+
},
|
|
27357
|
+
run_id: {
|
|
27358
|
+
type: "string",
|
|
27359
|
+
format: "uuid",
|
|
27360
|
+
description: "Present on /v1/run/{id}/cancel: the request that was cancelled."
|
|
27361
|
+
},
|
|
27362
|
+
pipeline_id: {
|
|
27363
|
+
type: "string",
|
|
27364
|
+
format: "uuid",
|
|
27365
|
+
nullable: true,
|
|
27366
|
+
description: "Present on /v1/run/{id}/cancel."
|
|
27367
|
+
}
|
|
27368
|
+
}
|
|
27369
|
+
},
|
|
26306
27370
|
CursorPagination: {
|
|
26307
27371
|
type: "object",
|
|
26308
27372
|
required: [
|
|
@@ -27301,6 +28365,20 @@ var openapi_default = {
|
|
|
27301
28365
|
}
|
|
27302
28366
|
}
|
|
27303
28367
|
},
|
|
28368
|
+
StructuredRow: {
|
|
28369
|
+
type: "object",
|
|
28370
|
+
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.",
|
|
28371
|
+
additionalProperties: {
|
|
28372
|
+
nullable: true,
|
|
28373
|
+
description: "The extracted value for one schema field."
|
|
28374
|
+
},
|
|
28375
|
+
example: {
|
|
28376
|
+
invoice_date: "2026-08-07",
|
|
28377
|
+
carrier_name: "ACME LOGISTICS",
|
|
28378
|
+
total_carrier_pay: "1400.00",
|
|
28379
|
+
bill_to_name: null
|
|
28380
|
+
}
|
|
28381
|
+
},
|
|
27304
28382
|
RunResponse: {
|
|
27305
28383
|
type: "object",
|
|
27306
28384
|
properties: {
|
|
@@ -27349,8 +28427,18 @@ var openapi_default = {
|
|
|
27349
28427
|
description: "OCR-converted markdown (on completion)."
|
|
27350
28428
|
},
|
|
27351
28429
|
structured_data: {
|
|
27352
|
-
|
|
27353
|
-
|
|
28430
|
+
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.",
|
|
28431
|
+
oneOf: [
|
|
28432
|
+
{
|
|
28433
|
+
$ref: "#/components/schemas/StructuredRow"
|
|
28434
|
+
},
|
|
28435
|
+
{
|
|
28436
|
+
type: "array",
|
|
28437
|
+
items: {
|
|
28438
|
+
$ref: "#/components/schemas/StructuredRow"
|
|
28439
|
+
}
|
|
28440
|
+
}
|
|
28441
|
+
]
|
|
27354
28442
|
},
|
|
27355
28443
|
reconciliation: {
|
|
27356
28444
|
type: "object",
|
|
@@ -28601,6 +29689,7 @@ var openapi_default = {
|
|
|
28601
29689
|
"valid",
|
|
28602
29690
|
"assembly",
|
|
28603
29691
|
"deliver",
|
|
29692
|
+
"dispatch",
|
|
28604
29693
|
"reconcile",
|
|
28605
29694
|
"sanitize",
|
|
28606
29695
|
"triage",
|
|
@@ -30370,7 +31459,7 @@ var openapi_default = {
|
|
|
30370
31459
|
}
|
|
30371
31460
|
]
|
|
30372
31461
|
},
|
|
30373
|
-
description: "Optional equality filter on payload keys."
|
|
31462
|
+
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
31463
|
}
|
|
30375
31464
|
}
|
|
30376
31465
|
},
|
|
@@ -30409,10 +31498,304 @@ var openapi_default = {
|
|
|
30409
31498
|
}
|
|
30410
31499
|
}
|
|
30411
31500
|
},
|
|
31501
|
+
DispatchTriggerResult: {
|
|
31502
|
+
type: "object",
|
|
31503
|
+
required: [
|
|
31504
|
+
"dispatch_id",
|
|
31505
|
+
"grain",
|
|
31506
|
+
"status",
|
|
31507
|
+
"record_count",
|
|
31508
|
+
"event_count"
|
|
31509
|
+
],
|
|
31510
|
+
properties: {
|
|
31511
|
+
dispatch_id: {
|
|
31512
|
+
type: "string",
|
|
31513
|
+
format: "uuid"
|
|
31514
|
+
},
|
|
31515
|
+
grain: {
|
|
31516
|
+
type: "string",
|
|
31517
|
+
enum: [
|
|
31518
|
+
"row",
|
|
31519
|
+
"pipeline",
|
|
31520
|
+
"assembly",
|
|
31521
|
+
"matcher",
|
|
31522
|
+
"data_product"
|
|
31523
|
+
],
|
|
31524
|
+
description: "What one deliverable is \u2014 set by the node, not by the caller."
|
|
31525
|
+
},
|
|
31526
|
+
status: {
|
|
31527
|
+
type: "string",
|
|
31528
|
+
enum: [
|
|
31529
|
+
"pending",
|
|
31530
|
+
"published",
|
|
31531
|
+
"empty",
|
|
31532
|
+
"failed"
|
|
31533
|
+
]
|
|
31534
|
+
},
|
|
31535
|
+
record_count: {
|
|
31536
|
+
type: "integer",
|
|
31537
|
+
description: "Records the dispatch froze."
|
|
31538
|
+
},
|
|
31539
|
+
event_count: {
|
|
31540
|
+
type: "integer",
|
|
31541
|
+
description: "Outbox events published (chunks for a collection grain, one per record for row grain)."
|
|
31542
|
+
},
|
|
31543
|
+
existing: {
|
|
31544
|
+
type: "boolean",
|
|
31545
|
+
description: "Present on the trigger route \u2014 `true` when the `Idempotency-Key` matched an earlier dispatch (returned with 200; nothing was published again)."
|
|
31546
|
+
},
|
|
31547
|
+
error: {
|
|
31548
|
+
type: "string",
|
|
31549
|
+
description: "Present only when `status` is `failed`."
|
|
31550
|
+
}
|
|
31551
|
+
}
|
|
31552
|
+
},
|
|
31553
|
+
Dispatch: {
|
|
31554
|
+
type: "object",
|
|
31555
|
+
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",
|
|
31556
|
+
required: [
|
|
31557
|
+
"id",
|
|
31558
|
+
"customer_id",
|
|
31559
|
+
"pipeline_id",
|
|
31560
|
+
"stage_id",
|
|
31561
|
+
"grain",
|
|
31562
|
+
"mode",
|
|
31563
|
+
"status",
|
|
31564
|
+
"selection",
|
|
31565
|
+
"projection",
|
|
31566
|
+
"record_count",
|
|
31567
|
+
"event_count",
|
|
31568
|
+
"created_at"
|
|
31569
|
+
],
|
|
31570
|
+
properties: {
|
|
31571
|
+
id: {
|
|
31572
|
+
type: "string",
|
|
31573
|
+
format: "uuid"
|
|
31574
|
+
},
|
|
31575
|
+
customer_id: {
|
|
31576
|
+
type: "string",
|
|
31577
|
+
format: "uuid"
|
|
31578
|
+
},
|
|
31579
|
+
pipeline_id: {
|
|
31580
|
+
type: "string",
|
|
31581
|
+
format: "uuid"
|
|
31582
|
+
},
|
|
31583
|
+
stage_id: {
|
|
31584
|
+
type: "string",
|
|
31585
|
+
description: "Spec stage id of the Dispatch node."
|
|
31586
|
+
},
|
|
31587
|
+
spec_id: {
|
|
31588
|
+
type: [
|
|
31589
|
+
"string",
|
|
31590
|
+
"null"
|
|
31591
|
+
],
|
|
31592
|
+
format: "uuid"
|
|
31593
|
+
},
|
|
31594
|
+
spec_version_id: {
|
|
31595
|
+
type: [
|
|
31596
|
+
"string",
|
|
31597
|
+
"null"
|
|
31598
|
+
],
|
|
31599
|
+
format: "uuid",
|
|
31600
|
+
description: "The published Spec version the node config was read from."
|
|
31601
|
+
},
|
|
31602
|
+
grain: {
|
|
31603
|
+
type: "string",
|
|
31604
|
+
enum: [
|
|
31605
|
+
"row",
|
|
31606
|
+
"pipeline",
|
|
31607
|
+
"assembly",
|
|
31608
|
+
"matcher",
|
|
31609
|
+
"data_product"
|
|
31610
|
+
]
|
|
31611
|
+
},
|
|
31612
|
+
mode: {
|
|
31613
|
+
type: "string",
|
|
31614
|
+
enum: [
|
|
31615
|
+
"manual",
|
|
31616
|
+
"on_run_completed"
|
|
31617
|
+
]
|
|
31618
|
+
},
|
|
31619
|
+
idempotency_key: {
|
|
31620
|
+
type: [
|
|
31621
|
+
"string",
|
|
31622
|
+
"null"
|
|
31623
|
+
]
|
|
31624
|
+
},
|
|
31625
|
+
replay_of: {
|
|
31626
|
+
type: [
|
|
31627
|
+
"string",
|
|
31628
|
+
"null"
|
|
31629
|
+
],
|
|
31630
|
+
format: "uuid",
|
|
31631
|
+
description: "Set on a re-dispatch \u2014 the dispatch whose frozen selection this one inherited."
|
|
31632
|
+
},
|
|
31633
|
+
status: {
|
|
31634
|
+
type: "string",
|
|
31635
|
+
enum: [
|
|
31636
|
+
"pending",
|
|
31637
|
+
"published",
|
|
31638
|
+
"empty",
|
|
31639
|
+
"failed"
|
|
31640
|
+
]
|
|
31641
|
+
},
|
|
31642
|
+
error: {
|
|
31643
|
+
type: [
|
|
31644
|
+
"string",
|
|
31645
|
+
"null"
|
|
31646
|
+
]
|
|
31647
|
+
},
|
|
31648
|
+
selection: {
|
|
31649
|
+
type: "object",
|
|
31650
|
+
description: "The FROZEN selection. Two id spaces, never mixed.",
|
|
31651
|
+
properties: {
|
|
31652
|
+
scope: {
|
|
31653
|
+
type: "string",
|
|
31654
|
+
enum: [
|
|
31655
|
+
"all",
|
|
31656
|
+
"changed_since"
|
|
31657
|
+
]
|
|
31658
|
+
},
|
|
31659
|
+
row_source: {
|
|
31660
|
+
type: "string",
|
|
31661
|
+
enum: [
|
|
31662
|
+
"document",
|
|
31663
|
+
"product"
|
|
31664
|
+
]
|
|
31665
|
+
},
|
|
31666
|
+
document_ids: {
|
|
31667
|
+
type: "array",
|
|
31668
|
+
items: {
|
|
31669
|
+
type: "string",
|
|
31670
|
+
format: "uuid"
|
|
31671
|
+
}
|
|
31672
|
+
},
|
|
31673
|
+
product_record_ids: {
|
|
31674
|
+
type: "array",
|
|
31675
|
+
items: {
|
|
31676
|
+
type: "string",
|
|
31677
|
+
format: "uuid"
|
|
31678
|
+
}
|
|
31679
|
+
},
|
|
31680
|
+
since: {
|
|
31681
|
+
type: "string",
|
|
31682
|
+
format: "date-time",
|
|
31683
|
+
description: "Exclusive lower bound of the delta window."
|
|
31684
|
+
},
|
|
31685
|
+
until: {
|
|
31686
|
+
type: "string",
|
|
31687
|
+
format: "date-time",
|
|
31688
|
+
description: "Inclusive upper bound of the delta window."
|
|
31689
|
+
}
|
|
31690
|
+
}
|
|
31691
|
+
},
|
|
31692
|
+
projection: {
|
|
31693
|
+
type: "object",
|
|
31694
|
+
description: "The FROZEN projection \u2014 one column set per node, so tabular serializers stay stable.",
|
|
31695
|
+
properties: {
|
|
31696
|
+
field_ids: {
|
|
31697
|
+
type: "array",
|
|
31698
|
+
items: {
|
|
31699
|
+
type: "string"
|
|
31700
|
+
}
|
|
31701
|
+
},
|
|
31702
|
+
field_keys: {
|
|
31703
|
+
type: "array",
|
|
31704
|
+
items: {
|
|
31705
|
+
type: "string"
|
|
31706
|
+
}
|
|
31707
|
+
},
|
|
31708
|
+
changed_fields_only: {
|
|
31709
|
+
type: "boolean"
|
|
31710
|
+
},
|
|
31711
|
+
include_shortlist_keys: {
|
|
31712
|
+
type: "boolean",
|
|
31713
|
+
description: "matcher grain only \u2014 ship the rival KEYS of a shortlist."
|
|
31714
|
+
}
|
|
31715
|
+
}
|
|
31716
|
+
},
|
|
31717
|
+
data_product_id: {
|
|
31718
|
+
type: [
|
|
31719
|
+
"string",
|
|
31720
|
+
"null"
|
|
31721
|
+
],
|
|
31722
|
+
format: "uuid",
|
|
31723
|
+
description: "`data_product` grain only \u2014 the product frozen at trigger time."
|
|
31724
|
+
},
|
|
31725
|
+
watermark_at: {
|
|
31726
|
+
type: [
|
|
31727
|
+
"string",
|
|
31728
|
+
"null"
|
|
31729
|
+
],
|
|
31730
|
+
format: "date-time",
|
|
31731
|
+
description: "Max value-cell timestamp covered; set for changed_since scope only."
|
|
31732
|
+
},
|
|
31733
|
+
record_count: {
|
|
31734
|
+
type: "integer"
|
|
31735
|
+
},
|
|
31736
|
+
event_count: {
|
|
31737
|
+
type: "integer"
|
|
31738
|
+
},
|
|
31739
|
+
triggered_by: {
|
|
31740
|
+
type: [
|
|
31741
|
+
"string",
|
|
31742
|
+
"null"
|
|
31743
|
+
],
|
|
31744
|
+
format: "uuid",
|
|
31745
|
+
description: "User id for a manual trigger; null for `on_run_completed`."
|
|
31746
|
+
},
|
|
31747
|
+
created_at: {
|
|
31748
|
+
type: "string",
|
|
31749
|
+
format: "date-time"
|
|
31750
|
+
},
|
|
31751
|
+
items: {
|
|
31752
|
+
type: "array",
|
|
31753
|
+
description: "Present on the list read \u2014 per-binding delivery-attempt counts for this dispatch, joined through the outbox events.",
|
|
31754
|
+
items: {
|
|
31755
|
+
type: "object",
|
|
31756
|
+
properties: {
|
|
31757
|
+
binding_id: {
|
|
31758
|
+
type: "string",
|
|
31759
|
+
format: "uuid"
|
|
31760
|
+
},
|
|
31761
|
+
status: {
|
|
31762
|
+
type: "string",
|
|
31763
|
+
description: "Delivery item status (pending",
|
|
31764
|
+
in_flight: null,
|
|
31765
|
+
delivered: null,
|
|
31766
|
+
failed: null,
|
|
31767
|
+
"dead_letter).": null
|
|
31768
|
+
},
|
|
31769
|
+
count: {
|
|
31770
|
+
type: "integer"
|
|
31771
|
+
}
|
|
31772
|
+
}
|
|
31773
|
+
}
|
|
31774
|
+
}
|
|
31775
|
+
}
|
|
31776
|
+
},
|
|
30412
31777
|
DeliveryPolicy: {
|
|
30413
31778
|
type: "object",
|
|
30414
|
-
description: "Retry / timeout overrides consumed by the TransportWrapper
|
|
31779
|
+
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
31780
|
properties: {
|
|
31781
|
+
wire_format: {
|
|
31782
|
+
type: "string",
|
|
31783
|
+
enum: [
|
|
31784
|
+
"v1",
|
|
31785
|
+
"legacy_v1_webhooks"
|
|
31786
|
+
],
|
|
31787
|
+
default: "v1",
|
|
31788
|
+
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"
|
|
31789
|
+
},
|
|
31790
|
+
signature_scheme: {
|
|
31791
|
+
type: "string",
|
|
31792
|
+
enum: [
|
|
31793
|
+
"v1",
|
|
31794
|
+
"legacy_sha256"
|
|
31795
|
+
],
|
|
31796
|
+
default: "v1",
|
|
31797
|
+
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"
|
|
31798
|
+
},
|
|
30416
31799
|
max_attempts: {
|
|
30417
31800
|
type: "integer",
|
|
30418
31801
|
minimum: 1
|
|
@@ -32642,6 +34025,36 @@ var openapi_default = {
|
|
|
32642
34025
|
}
|
|
32643
34026
|
}
|
|
32644
34027
|
},
|
|
34028
|
+
FieldMaturity: {
|
|
34029
|
+
type: "string",
|
|
34030
|
+
enum: [
|
|
34031
|
+
"core",
|
|
34032
|
+
"proven",
|
|
34033
|
+
"candidate"
|
|
34034
|
+
],
|
|
34035
|
+
description: "Named maturity level \u2014 the contract a consumer caching the vocabulary\ncan rely on (`tier` is the frozen numeric twin: core = 1, proven = 2,\ncandidate = 3).\n- `core`: universal, fully trusted; safe to bind schemas, dashboards and\n downstream models to. Demotion is hysteresis-guarded and always emits\n `field.demoted`.\n- `proven`: recurring and useful; stable id, name may still be groomed\n (`field.renamed` / `field.merged` announce it).\n- `candidate`: newly discovered; may be merged, renamed or expire with no\n notice beyond the event feed. Do not hard-code.\n"
|
|
34036
|
+
},
|
|
34037
|
+
FieldRef: {
|
|
34038
|
+
type: "object",
|
|
34039
|
+
required: [
|
|
34040
|
+
"id",
|
|
34041
|
+
"links"
|
|
34042
|
+
],
|
|
34043
|
+
properties: {
|
|
34044
|
+
id: {
|
|
34045
|
+
type: "string",
|
|
34046
|
+
format: "uuid"
|
|
34047
|
+
},
|
|
34048
|
+
links: {
|
|
34049
|
+
type: "object",
|
|
34050
|
+
properties: {
|
|
34051
|
+
self: {
|
|
34052
|
+
type: "string"
|
|
34053
|
+
}
|
|
34054
|
+
}
|
|
34055
|
+
}
|
|
34056
|
+
}
|
|
34057
|
+
},
|
|
32645
34058
|
FieldResponse: {
|
|
32646
34059
|
type: "object",
|
|
32647
34060
|
required: [
|
|
@@ -32650,6 +34063,7 @@ var openapi_default = {
|
|
|
32650
34063
|
"display_name",
|
|
32651
34064
|
"data_type",
|
|
32652
34065
|
"tier",
|
|
34066
|
+
"maturity",
|
|
32653
34067
|
"occurrence_count",
|
|
32654
34068
|
"created_at",
|
|
32655
34069
|
"links"
|
|
@@ -32664,6 +34078,41 @@ var openapi_default = {
|
|
|
32664
34078
|
type: "string",
|
|
32665
34079
|
example: "invoice_number"
|
|
32666
34080
|
},
|
|
34081
|
+
maturity: {
|
|
34082
|
+
$ref: "#/components/schemas/FieldMaturity"
|
|
34083
|
+
},
|
|
34084
|
+
admission_state: {
|
|
34085
|
+
type: "string",
|
|
34086
|
+
enum: [
|
|
34087
|
+
"canonical",
|
|
34088
|
+
"provisional"
|
|
34089
|
+
]
|
|
34090
|
+
},
|
|
34091
|
+
description: {
|
|
34092
|
+
type: [
|
|
34093
|
+
"string",
|
|
34094
|
+
"null"
|
|
34095
|
+
],
|
|
34096
|
+
description: "Curated semantic description of the concept."
|
|
34097
|
+
},
|
|
34098
|
+
synonyms: {
|
|
34099
|
+
type: "array",
|
|
34100
|
+
items: {
|
|
34101
|
+
type: "string"
|
|
34102
|
+
},
|
|
34103
|
+
description: "Names folded onto this concept by merges and cleanup; all resolve via `GET /v1/fields/resolve`."
|
|
34104
|
+
},
|
|
34105
|
+
superseded_by: {
|
|
34106
|
+
oneOf: [
|
|
34107
|
+
{
|
|
34108
|
+
$ref: "#/components/schemas/FieldRef"
|
|
34109
|
+
},
|
|
34110
|
+
{
|
|
34111
|
+
type: "null"
|
|
34112
|
+
}
|
|
34113
|
+
],
|
|
34114
|
+
description: "Set when this row was merged into a survivor; the id stays readable, follow it (or pass `follow_redirects=true`)."
|
|
34115
|
+
},
|
|
32667
34116
|
display_name: {
|
|
32668
34117
|
type: "string",
|
|
32669
34118
|
description: "Human-readable label, always present. A stored display name wins; otherwise it is derived from `canonical_name`, e.g. `invoice_number` \u2192 `Invoice Number`.",
|
|
@@ -32709,6 +34158,499 @@ var openapi_default = {
|
|
|
32709
34158
|
},
|
|
32710
34159
|
similar: {
|
|
32711
34160
|
type: "string"
|
|
34161
|
+
},
|
|
34162
|
+
card: {
|
|
34163
|
+
type: "string"
|
|
34164
|
+
},
|
|
34165
|
+
values: {
|
|
34166
|
+
type: "string"
|
|
34167
|
+
},
|
|
34168
|
+
history: {
|
|
34169
|
+
type: "string"
|
|
34170
|
+
}
|
|
34171
|
+
}
|
|
34172
|
+
}
|
|
34173
|
+
}
|
|
34174
|
+
},
|
|
34175
|
+
FieldResolveResponse: {
|
|
34176
|
+
type: "object",
|
|
34177
|
+
required: [
|
|
34178
|
+
"name",
|
|
34179
|
+
"matched_by",
|
|
34180
|
+
"redirected_from",
|
|
34181
|
+
"field"
|
|
34182
|
+
],
|
|
34183
|
+
properties: {
|
|
34184
|
+
name: {
|
|
34185
|
+
type: "string"
|
|
34186
|
+
},
|
|
34187
|
+
matched_by: {
|
|
34188
|
+
type: "string",
|
|
34189
|
+
enum: [
|
|
34190
|
+
"canonical_name",
|
|
34191
|
+
"synonym",
|
|
34192
|
+
"alias",
|
|
34193
|
+
"match_key"
|
|
34194
|
+
]
|
|
34195
|
+
},
|
|
34196
|
+
redirected_from: {
|
|
34197
|
+
type: "array",
|
|
34198
|
+
items: {
|
|
34199
|
+
type: "string",
|
|
34200
|
+
format: "uuid"
|
|
34201
|
+
},
|
|
34202
|
+
description: "Ids walked through `superseded_by`, oldest first (empty when the hit was live)."
|
|
34203
|
+
},
|
|
34204
|
+
field: {
|
|
34205
|
+
$ref: "#/components/schemas/FieldResponse"
|
|
34206
|
+
}
|
|
34207
|
+
}
|
|
34208
|
+
},
|
|
34209
|
+
FieldCardResponse: {
|
|
34210
|
+
allOf: [
|
|
34211
|
+
{
|
|
34212
|
+
$ref: "#/components/schemas/FieldResponse"
|
|
34213
|
+
},
|
|
34214
|
+
{
|
|
34215
|
+
type: "object",
|
|
34216
|
+
required: [
|
|
34217
|
+
"definition",
|
|
34218
|
+
"identity",
|
|
34219
|
+
"occurrence",
|
|
34220
|
+
"values",
|
|
34221
|
+
"usage"
|
|
34222
|
+
],
|
|
34223
|
+
properties: {
|
|
34224
|
+
redirected_from: {
|
|
34225
|
+
type: "array",
|
|
34226
|
+
items: {
|
|
34227
|
+
type: "string",
|
|
34228
|
+
format: "uuid"
|
|
34229
|
+
}
|
|
34230
|
+
},
|
|
34231
|
+
definition: {
|
|
34232
|
+
type: "object",
|
|
34233
|
+
properties: {
|
|
34234
|
+
description: {
|
|
34235
|
+
type: [
|
|
34236
|
+
"string",
|
|
34237
|
+
"null"
|
|
34238
|
+
]
|
|
34239
|
+
},
|
|
34240
|
+
instruction: {
|
|
34241
|
+
type: [
|
|
34242
|
+
"string",
|
|
34243
|
+
"null"
|
|
34244
|
+
],
|
|
34245
|
+
description: "The master extraction instruction."
|
|
34246
|
+
},
|
|
34247
|
+
variance_notes: {
|
|
34248
|
+
type: [
|
|
34249
|
+
"string",
|
|
34250
|
+
"null"
|
|
34251
|
+
]
|
|
34252
|
+
},
|
|
34253
|
+
synonyms: {
|
|
34254
|
+
type: "array",
|
|
34255
|
+
items: {
|
|
34256
|
+
type: "string"
|
|
34257
|
+
}
|
|
34258
|
+
},
|
|
34259
|
+
aliases: {
|
|
34260
|
+
type: "array",
|
|
34261
|
+
items: {
|
|
34262
|
+
type: "object",
|
|
34263
|
+
properties: {
|
|
34264
|
+
name: {
|
|
34265
|
+
type: "string"
|
|
34266
|
+
},
|
|
34267
|
+
source: {
|
|
34268
|
+
type: "string"
|
|
34269
|
+
}
|
|
34270
|
+
}
|
|
34271
|
+
}
|
|
34272
|
+
}
|
|
34273
|
+
}
|
|
34274
|
+
},
|
|
34275
|
+
identity: {
|
|
34276
|
+
type: "object",
|
|
34277
|
+
properties: {
|
|
34278
|
+
pinned: {
|
|
34279
|
+
type: "boolean",
|
|
34280
|
+
description: "A customer-declared concept",
|
|
34281
|
+
"exempt from autonomous grooming.": null
|
|
34282
|
+
},
|
|
34283
|
+
source: {
|
|
34284
|
+
type: [
|
|
34285
|
+
"string",
|
|
34286
|
+
"null"
|
|
34287
|
+
]
|
|
34288
|
+
},
|
|
34289
|
+
link_key: {
|
|
34290
|
+
type: "boolean"
|
|
34291
|
+
},
|
|
34292
|
+
link_key_category: {
|
|
34293
|
+
type: [
|
|
34294
|
+
"string",
|
|
34295
|
+
"null"
|
|
34296
|
+
]
|
|
34297
|
+
},
|
|
34298
|
+
superseded_by: {
|
|
34299
|
+
oneOf: [
|
|
34300
|
+
{
|
|
34301
|
+
$ref: "#/components/schemas/FieldRef"
|
|
34302
|
+
},
|
|
34303
|
+
{
|
|
34304
|
+
type: "null"
|
|
34305
|
+
}
|
|
34306
|
+
]
|
|
34307
|
+
},
|
|
34308
|
+
absorbed: {
|
|
34309
|
+
type: "array",
|
|
34310
|
+
description: "Concepts merged INTO this one that still exist as redirect rows.",
|
|
34311
|
+
items: {
|
|
34312
|
+
type: "object",
|
|
34313
|
+
properties: {
|
|
34314
|
+
id: {
|
|
34315
|
+
type: "string",
|
|
34316
|
+
format: "uuid"
|
|
34317
|
+
},
|
|
34318
|
+
canonical_name: {
|
|
34319
|
+
type: "string"
|
|
34320
|
+
},
|
|
34321
|
+
links: {
|
|
34322
|
+
type: "object",
|
|
34323
|
+
properties: {
|
|
34324
|
+
self: {
|
|
34325
|
+
type: "string"
|
|
34326
|
+
}
|
|
34327
|
+
}
|
|
34328
|
+
}
|
|
34329
|
+
}
|
|
34330
|
+
}
|
|
34331
|
+
}
|
|
34332
|
+
}
|
|
34333
|
+
},
|
|
34334
|
+
occurrence: {
|
|
34335
|
+
type: "object",
|
|
34336
|
+
properties: {
|
|
34337
|
+
occurrence_count: {
|
|
34338
|
+
type: "integer"
|
|
34339
|
+
},
|
|
34340
|
+
document_count: {
|
|
34341
|
+
type: "integer"
|
|
34342
|
+
},
|
|
34343
|
+
occurrence_rate: {
|
|
34344
|
+
type: [
|
|
34345
|
+
"number",
|
|
34346
|
+
"null"
|
|
34347
|
+
]
|
|
34348
|
+
},
|
|
34349
|
+
first_seen_at: {
|
|
34350
|
+
type: [
|
|
34351
|
+
"string",
|
|
34352
|
+
"null"
|
|
34353
|
+
],
|
|
34354
|
+
format: "date-time"
|
|
34355
|
+
},
|
|
34356
|
+
last_seen_at: {
|
|
34357
|
+
type: [
|
|
34358
|
+
"string",
|
|
34359
|
+
"null"
|
|
34360
|
+
],
|
|
34361
|
+
format: "date-time"
|
|
34362
|
+
},
|
|
34363
|
+
promoted_at: {
|
|
34364
|
+
type: [
|
|
34365
|
+
"string",
|
|
34366
|
+
"null"
|
|
34367
|
+
],
|
|
34368
|
+
format: "date-time"
|
|
34369
|
+
},
|
|
34370
|
+
document_type_distribution: {
|
|
34371
|
+
type: "object",
|
|
34372
|
+
additionalProperties: true
|
|
34373
|
+
}
|
|
34374
|
+
}
|
|
34375
|
+
},
|
|
34376
|
+
values: {
|
|
34377
|
+
type: "object",
|
|
34378
|
+
description: "Sources-IAM filtered value distribution over the concept and its absorbed redirects.",
|
|
34379
|
+
properties: {
|
|
34380
|
+
total: {
|
|
34381
|
+
type: "integer"
|
|
34382
|
+
},
|
|
34383
|
+
distinct_count: {
|
|
34384
|
+
type: "integer"
|
|
34385
|
+
},
|
|
34386
|
+
visible_document_count: {
|
|
34387
|
+
type: "integer"
|
|
34388
|
+
},
|
|
34389
|
+
top: {
|
|
34390
|
+
type: "array",
|
|
34391
|
+
maxItems: 8,
|
|
34392
|
+
items: {
|
|
34393
|
+
type: "object",
|
|
34394
|
+
properties: {
|
|
34395
|
+
value: {
|
|
34396
|
+
type: "string"
|
|
34397
|
+
},
|
|
34398
|
+
count: {
|
|
34399
|
+
type: "integer"
|
|
34400
|
+
},
|
|
34401
|
+
share: {
|
|
34402
|
+
type: "number"
|
|
34403
|
+
}
|
|
34404
|
+
}
|
|
34405
|
+
}
|
|
34406
|
+
},
|
|
34407
|
+
examples: {
|
|
34408
|
+
type: "array",
|
|
34409
|
+
maxItems: 5,
|
|
34410
|
+
items: {
|
|
34411
|
+
type: "string"
|
|
34412
|
+
}
|
|
34413
|
+
}
|
|
34414
|
+
}
|
|
34415
|
+
},
|
|
34416
|
+
usage: {
|
|
34417
|
+
type: "object",
|
|
34418
|
+
properties: {
|
|
34419
|
+
schema_count: {
|
|
34420
|
+
type: "integer"
|
|
34421
|
+
},
|
|
34422
|
+
schema_field_count: {
|
|
34423
|
+
type: "integer"
|
|
34424
|
+
}
|
|
34425
|
+
}
|
|
34426
|
+
}
|
|
34427
|
+
}
|
|
34428
|
+
}
|
|
34429
|
+
]
|
|
34430
|
+
},
|
|
34431
|
+
FieldValuesResponse: {
|
|
34432
|
+
type: "object",
|
|
34433
|
+
required: [
|
|
34434
|
+
"field_id",
|
|
34435
|
+
"canonical_name",
|
|
34436
|
+
"concept_ids",
|
|
34437
|
+
"data",
|
|
34438
|
+
"pagination"
|
|
34439
|
+
],
|
|
34440
|
+
properties: {
|
|
34441
|
+
field_id: {
|
|
34442
|
+
type: "string",
|
|
34443
|
+
format: "uuid"
|
|
34444
|
+
},
|
|
34445
|
+
canonical_name: {
|
|
34446
|
+
type: "string"
|
|
34447
|
+
},
|
|
34448
|
+
concept_ids: {
|
|
34449
|
+
type: "array",
|
|
34450
|
+
items: {
|
|
34451
|
+
type: "string",
|
|
34452
|
+
format: "uuid"
|
|
34453
|
+
},
|
|
34454
|
+
description: "The concept plus the absorbed redirects whose occurrences are included."
|
|
34455
|
+
},
|
|
34456
|
+
data: {
|
|
34457
|
+
type: "array",
|
|
34458
|
+
items: {
|
|
34459
|
+
type: "object",
|
|
34460
|
+
required: [
|
|
34461
|
+
"occurrence_id",
|
|
34462
|
+
"document_id",
|
|
34463
|
+
"value",
|
|
34464
|
+
"provenance",
|
|
34465
|
+
"links"
|
|
34466
|
+
],
|
|
34467
|
+
properties: {
|
|
34468
|
+
occurrence_id: {
|
|
34469
|
+
type: "string",
|
|
34470
|
+
format: "uuid"
|
|
34471
|
+
},
|
|
34472
|
+
document_id: {
|
|
34473
|
+
type: "string",
|
|
34474
|
+
format: "uuid"
|
|
34475
|
+
},
|
|
34476
|
+
document_filename: {
|
|
34477
|
+
type: [
|
|
34478
|
+
"string",
|
|
34479
|
+
"null"
|
|
34480
|
+
]
|
|
34481
|
+
},
|
|
34482
|
+
document_type: {
|
|
34483
|
+
type: [
|
|
34484
|
+
"string",
|
|
34485
|
+
"null"
|
|
34486
|
+
]
|
|
34487
|
+
},
|
|
34488
|
+
value: {
|
|
34489
|
+
description: "The current bound value (raw JSON as captured)."
|
|
34490
|
+
},
|
|
34491
|
+
data_type: {
|
|
34492
|
+
type: [
|
|
34493
|
+
"string",
|
|
34494
|
+
"null"
|
|
34495
|
+
]
|
|
34496
|
+
},
|
|
34497
|
+
confidence: {
|
|
34498
|
+
type: [
|
|
34499
|
+
"number",
|
|
34500
|
+
"null"
|
|
34501
|
+
]
|
|
34502
|
+
},
|
|
34503
|
+
provenance: {
|
|
34504
|
+
type: "object",
|
|
34505
|
+
properties: {
|
|
34506
|
+
raw_field_name: {
|
|
34507
|
+
type: [
|
|
34508
|
+
"string",
|
|
34509
|
+
"null"
|
|
34510
|
+
],
|
|
34511
|
+
description: "The name the value was captured under."
|
|
34512
|
+
},
|
|
34513
|
+
source_text: {
|
|
34514
|
+
type: [
|
|
34515
|
+
"string",
|
|
34516
|
+
"null"
|
|
34517
|
+
],
|
|
34518
|
+
description: "Verbatim document text the value sat in."
|
|
34519
|
+
},
|
|
34520
|
+
resolved_by: {
|
|
34521
|
+
type: [
|
|
34522
|
+
"string",
|
|
34523
|
+
"null"
|
|
34524
|
+
],
|
|
34525
|
+
description: "Resolution band that bound it (`exact`, `cluster`, `semantic_auto`, `llm_rescue`, \u2026)."
|
|
34526
|
+
},
|
|
34527
|
+
needs_confirmation: {
|
|
34528
|
+
type: "boolean"
|
|
34529
|
+
},
|
|
34530
|
+
bound_field_id: {
|
|
34531
|
+
type: "string",
|
|
34532
|
+
format: "uuid"
|
|
34533
|
+
},
|
|
34534
|
+
via_redirect: {
|
|
34535
|
+
type: "boolean",
|
|
34536
|
+
description: "true when the row is still bound to a concept merged into this one."
|
|
34537
|
+
}
|
|
34538
|
+
}
|
|
34539
|
+
},
|
|
34540
|
+
created_at: {
|
|
34541
|
+
type: [
|
|
34542
|
+
"string",
|
|
34543
|
+
"null"
|
|
34544
|
+
],
|
|
34545
|
+
format: "date-time"
|
|
34546
|
+
},
|
|
34547
|
+
links: {
|
|
34548
|
+
type: "object",
|
|
34549
|
+
properties: {
|
|
34550
|
+
document: {
|
|
34551
|
+
type: "string"
|
|
34552
|
+
},
|
|
34553
|
+
document_fields: {
|
|
34554
|
+
type: "string"
|
|
34555
|
+
}
|
|
34556
|
+
}
|
|
34557
|
+
}
|
|
34558
|
+
}
|
|
34559
|
+
}
|
|
34560
|
+
},
|
|
34561
|
+
pagination: {
|
|
34562
|
+
type: "object",
|
|
34563
|
+
properties: {
|
|
34564
|
+
total: {
|
|
34565
|
+
type: "integer"
|
|
34566
|
+
},
|
|
34567
|
+
limit: {
|
|
34568
|
+
type: "integer"
|
|
34569
|
+
},
|
|
34570
|
+
has_more: {
|
|
34571
|
+
type: "boolean"
|
|
34572
|
+
},
|
|
34573
|
+
next_cursor: {
|
|
34574
|
+
type: [
|
|
34575
|
+
"string",
|
|
34576
|
+
"null"
|
|
34577
|
+
]
|
|
34578
|
+
}
|
|
34579
|
+
}
|
|
34580
|
+
}
|
|
34581
|
+
}
|
|
34582
|
+
},
|
|
34583
|
+
FieldHistoryResponse: {
|
|
34584
|
+
type: "object",
|
|
34585
|
+
required: [
|
|
34586
|
+
"field_id",
|
|
34587
|
+
"canonical_name",
|
|
34588
|
+
"maturity",
|
|
34589
|
+
"superseded_by",
|
|
34590
|
+
"data",
|
|
34591
|
+
"total"
|
|
34592
|
+
],
|
|
34593
|
+
properties: {
|
|
34594
|
+
field_id: {
|
|
34595
|
+
type: "string",
|
|
34596
|
+
format: "uuid"
|
|
34597
|
+
},
|
|
34598
|
+
canonical_name: {
|
|
34599
|
+
type: "string"
|
|
34600
|
+
},
|
|
34601
|
+
maturity: {
|
|
34602
|
+
$ref: "#/components/schemas/FieldMaturity"
|
|
34603
|
+
},
|
|
34604
|
+
superseded_by: {
|
|
34605
|
+
oneOf: [
|
|
34606
|
+
{
|
|
34607
|
+
$ref: "#/components/schemas/FieldRef"
|
|
34608
|
+
},
|
|
34609
|
+
{
|
|
34610
|
+
type: "null"
|
|
34611
|
+
}
|
|
34612
|
+
]
|
|
34613
|
+
},
|
|
34614
|
+
total: {
|
|
34615
|
+
type: "integer"
|
|
34616
|
+
},
|
|
34617
|
+
data: {
|
|
34618
|
+
type: "array",
|
|
34619
|
+
description: "Newest first.",
|
|
34620
|
+
items: {
|
|
34621
|
+
type: "object",
|
|
34622
|
+
required: [
|
|
34623
|
+
"kind",
|
|
34624
|
+
"at",
|
|
34625
|
+
"detail"
|
|
34626
|
+
],
|
|
34627
|
+
properties: {
|
|
34628
|
+
kind: {
|
|
34629
|
+
type: "string",
|
|
34630
|
+
enum: [
|
|
34631
|
+
"tier_changed",
|
|
34632
|
+
"merge_log_absorbed",
|
|
34633
|
+
"merge_log_merged_into",
|
|
34634
|
+
"absorbed",
|
|
34635
|
+
"superseded",
|
|
34636
|
+
"renamed",
|
|
34637
|
+
"rewritten",
|
|
34638
|
+
"split",
|
|
34639
|
+
"deleted",
|
|
34640
|
+
"alias_added"
|
|
34641
|
+
]
|
|
34642
|
+
},
|
|
34643
|
+
at: {
|
|
34644
|
+
type: [
|
|
34645
|
+
"string",
|
|
34646
|
+
"null"
|
|
34647
|
+
],
|
|
34648
|
+
format: "date-time"
|
|
34649
|
+
},
|
|
34650
|
+
detail: {
|
|
34651
|
+
type: "object",
|
|
34652
|
+
additionalProperties: true
|
|
34653
|
+
}
|
|
32712
34654
|
}
|
|
32713
34655
|
}
|
|
32714
34656
|
}
|
|
@@ -32722,6 +34664,14 @@ var openapi_default = {
|
|
|
32722
34664
|
{
|
|
32723
34665
|
type: "object",
|
|
32724
34666
|
properties: {
|
|
34667
|
+
redirected_from: {
|
|
34668
|
+
type: "array",
|
|
34669
|
+
items: {
|
|
34670
|
+
type: "string",
|
|
34671
|
+
format: "uuid"
|
|
34672
|
+
},
|
|
34673
|
+
description: "Ids walked when `follow_redirects=true` (oldest first); empty otherwise."
|
|
34674
|
+
},
|
|
32725
34675
|
recent_occurrences: {
|
|
32726
34676
|
type: "array",
|
|
32727
34677
|
maxItems: 20,
|
|
@@ -34029,8 +35979,10 @@ var openapi_default = {
|
|
|
34029
35979
|
ResultsProvenance: {
|
|
34030
35980
|
type: "object",
|
|
34031
35981
|
required: [
|
|
34032
|
-
"kind"
|
|
35982
|
+
"kind",
|
|
35983
|
+
"match"
|
|
34033
35984
|
],
|
|
35985
|
+
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
35986
|
properties: {
|
|
34035
35987
|
kind: {
|
|
34036
35988
|
type: "string",
|
|
@@ -34040,16 +35992,17 @@ var openapi_default = {
|
|
|
34040
35992
|
"auto_adjudication",
|
|
34041
35993
|
"human",
|
|
34042
35994
|
"derived",
|
|
34043
|
-
"legacy"
|
|
35995
|
+
"legacy",
|
|
35996
|
+
"matcher_decision"
|
|
34044
35997
|
],
|
|
34045
|
-
description: "legacy covers the internal legacy_unvalidated kind plus any unparseable/unknown envelope."
|
|
35998
|
+
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
35999
|
},
|
|
34047
36000
|
text: {
|
|
34048
36001
|
type: [
|
|
34049
36002
|
"string",
|
|
34050
36003
|
"null"
|
|
34051
36004
|
],
|
|
34052
|
-
description: "The winning value's genesis span text. Absent for a held cell (kind-only redaction)
|
|
36005
|
+
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
36006
|
},
|
|
34054
36007
|
derived_reason: {
|
|
34055
36008
|
type: "string",
|
|
@@ -34063,6 +36016,50 @@ var openapi_default = {
|
|
|
34063
36016
|
format: "uuid"
|
|
34064
36017
|
},
|
|
34065
36018
|
page_index: {
|
|
36019
|
+
type: [
|
|
36020
|
+
"integer",
|
|
36021
|
+
"null"
|
|
36022
|
+
],
|
|
36023
|
+
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."
|
|
36024
|
+
},
|
|
36025
|
+
match: {
|
|
36026
|
+
type: "string",
|
|
36027
|
+
enum: [
|
|
36028
|
+
"exact",
|
|
36029
|
+
"approximate",
|
|
36030
|
+
"none"
|
|
36031
|
+
],
|
|
36032
|
+
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)."
|
|
36033
|
+
},
|
|
36034
|
+
confidence: {
|
|
36035
|
+
type: [
|
|
36036
|
+
"number",
|
|
36037
|
+
"null"
|
|
36038
|
+
],
|
|
36039
|
+
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."
|
|
36040
|
+
},
|
|
36041
|
+
path: {
|
|
36042
|
+
type: "array",
|
|
36043
|
+
items: {
|
|
36044
|
+
oneOf: [
|
|
36045
|
+
{
|
|
36046
|
+
type: "string"
|
|
36047
|
+
},
|
|
36048
|
+
{
|
|
36049
|
+
type: "integer"
|
|
36050
|
+
}
|
|
36051
|
+
]
|
|
36052
|
+
},
|
|
36053
|
+
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`.'
|
|
36054
|
+
},
|
|
36055
|
+
char_start: {
|
|
36056
|
+
type: [
|
|
36057
|
+
"integer",
|
|
36058
|
+
"null"
|
|
36059
|
+
],
|
|
36060
|
+
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)."
|
|
36061
|
+
},
|
|
36062
|
+
char_end: {
|
|
34066
36063
|
type: [
|
|
34067
36064
|
"integer",
|
|
34068
36065
|
"null"
|
|
@@ -34367,7 +36364,8 @@ var openapi_default = {
|
|
|
34367
36364
|
enum: [
|
|
34368
36365
|
"processing",
|
|
34369
36366
|
"completed",
|
|
34370
|
-
"failed"
|
|
36367
|
+
"failed",
|
|
36368
|
+
"cancelled"
|
|
34371
36369
|
],
|
|
34372
36370
|
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
36371
|
},
|
|
@@ -35452,7 +37450,8 @@ var API_NAV_SECTIONS = [
|
|
|
35452
37450
|
{ id: "fields", label: "Fields", children: [
|
|
35453
37451
|
{ id: "list-fields", label: "List Fields" },
|
|
35454
37452
|
{ id: "field-harmonization", label: "Harmonization" },
|
|
35455
|
-
{ id: "get-field", label: "Get Field" }
|
|
37453
|
+
{ id: "get-field", label: "Get Field" },
|
|
37454
|
+
{ id: "field-contract", label: "Registry Contract" }
|
|
35456
37455
|
] },
|
|
35457
37456
|
{ id: "registry", label: "Registry", children: [
|
|
35458
37457
|
{ id: "registry-query", label: "Query" },
|