@talonic/docs 0.21.55 → 0.21.57

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 CHANGED
@@ -35905,9 +35905,9 @@ var sections57 = [
35905
35905
  { type: "paragraph", text: "Inputs are flexible: attach up to 20 `files` as multipart parts, pass remote `file_urls` for documents the platform should download, or mix both in one call. At least one input is required. The endpoint always answers `202 Accepted` immediately with a `run_id` and a `poll_url` \u2014 ingestion and the pipeline run continue asynchronously, so the caller never blocks on OCR or LLM work." },
35906
35906
  { type: "paragraph", text: "Two optional tagging fields ride along and are stamped on **every document** the call ingests: `batch_id`, an opaque grouping key for correlating the run with an external job or batch, and `metadata`, a flat key-value object for anything else the caller wants to carry through. Both are echoed back by `GET /v1/run/:id`, and both surface on the ingested documents (`batch_id` / `metadata` on the document reads)." },
35907
35907
  { type: "paragraph", text: "For a multi-file call, `file_metadata` tags individual inputs instead of stamping the same bag on every document: a JSON string keyed by each file's uploaded filename (or the exact `file_urls` entry), each value a flat object with the same shape and limits as `metadata`. Per file, its bag is merged over the call-level `metadata` \u2014 per-file wins on a shared key \u2014 and the resolved, per-input EFFECTIVE bag is what actually lands on the document and is echoed back in `documents[].metadata` on both this response and `GET /v1/run/:id`." },
35908
- { type: "paragraph", text: "The 202 response carries a `documents[]` array \u2014 one entry per input, in the order you sent them \u2014 so you always know which platform document each upload became. Each entry has `document_id`, `filename`, `size_bytes`, and `source` (`file` or `file_url`). `document_id` is the **canonical** document: for a byte-identical re-upload it resolves to the existing document already on the platform rather than minting a new one, and the entry additionally carries `deduplicated: true` plus `linked_document_id`, the id of the thin per-upload link row created for this call. A first-time upload carries `deduplicated: false` and no `linked_document_id`." },
35908
+ { type: "paragraph", text: "The 202 response carries a `documents[]` array \u2014 one entry per input, in the order you sent them \u2014 so you always know which platform document each upload became. Each entry has `document_id`, `filename`, `size_bytes`, and `source` (`file` or `file_url`). `document_id` identifies the upload occurrence: a byte-identical re-upload from a later request gets its own occurrence so its batch can be matched and delivered independently, and the entry carries `duplicate_of` for the first upload of those bytes. A deduplicated entry also carries `existing_document_id` (the same first upload) and `linked_document_id`, a deprecated alias of `document_id`. Byte-identical inputs within one request share one processing identity." },
35909
35909
  { type: "paragraph", text: "The `ingestion_target` field controls how deep ingestion goes after OCR. The default, `ingest`, makes every document **askable**: once a document's OCR markdown is ready, Stage-2 field capture runs asynchronously in the background, extracting every field into the workspace corpus that [`POST /v1/ask`](post-ask) answers over and feeding the field registry. Capture follows the answers, it never delays them: the Spec pipeline starts the moment OCR markdown is ready, without waiting for capture. Pass `extract` to restore markdown-only ingestion: no background capture runs, and the documents do not join the askable corpus." },
35910
- { type: "callout", variant: "info", text: "Unlike POST /v1/process, this endpoint does not deduplicate submissions \u2014 every call starts a fresh run. Byte-identical documents are still content-deduplicated at the ingestion layer (the run reads the canonical document's data)." },
35910
+ { type: "callout", variant: "info", text: "Every call starts a fresh run. A re-upload gets a new occurrence identity while reusing file bytes and OCR; Spec extraction, matching, validation, and delivery run in the new request context." },
35911
35911
  {
35912
35912
  type: "endpoint",
35913
35913
  method: "POST",
@@ -35962,13 +35962,15 @@ var sections57 = [
35962
35962
  { name: "input_count", type: "integer", description: "Total inputs accepted (files + file_urls)." },
35963
35963
  { name: "poll_url", type: "string", description: "Relative URL to poll: /v1/run/:id." },
35964
35964
  { name: "documents[]", type: "array", description: "One entry per input, in input order." },
35965
- { name: "documents[].document_id", type: "uuid", description: "The canonical document id \u2014 the id output rows (webhook records[], data products) carry for this document." },
35965
+ { name: "documents[].document_id", type: "uuid", description: "The id output rows carry: one occurrence per upload, so a re-upload of known bytes gets a new id. It is the canonical id only when the occurrence row cannot be created or read. A repeat of a file within one request carries the first copy's id." },
35966
35966
  { name: "documents[].filename", type: "string | null", description: "The uploaded filename (file input), or the acquired document's filename (file_url input)." },
35967
35967
  { name: "documents[].size_bytes", type: "integer | null", description: "File size in bytes." },
35968
35968
  { name: "documents[].source", type: "string", description: '"file" or "file_url" \u2014 which input kind produced this document.' },
35969
- { name: "documents[].deduplicated", type: "boolean", description: "true when this upload content-matched an existing document; document_id then points at that existing (canonical) document." },
35970
- { name: "documents[].linked_document_id", type: "uuid", description: "Present only when deduplicated is true \u2014 the id of the thin link row created for this specific upload." },
35971
- { name: "documents[].metadata", type: "object", description: "This input's EFFECTIVE metadata for this request \u2014 the call-level metadata merged with its file_metadata entry (per-file wins). Present only when set. Under byte-identical dedup this can differ from GET /v1/documents/:id's metadata, which keeps the canonical document's tags from its first submission \u2014 this echo is the authoritative source for what THIS call tagged." },
35969
+ { name: "documents[].deduplicated", type: "boolean", description: "true when this occurrence reuses an existing document's bytes and OCR." },
35970
+ { name: "documents[].existing_document_id", type: "uuid", description: "Present only when deduplicated is true \u2014 the canonical: the first upload of these bytes, whose bytes and OCR this occurrence reuses. Equals duplicate_of.id when that is present." },
35971
+ { name: "documents[].duplicate_of", type: "object", description: "For a duplicate occurrence, `{ id, filename }` of the first upload of these bytes, whose bytes and OCR it reuses." },
35972
+ { name: "documents[].linked_document_id", type: "uuid", description: "Present only when deduplicated is true \u2014 the link row minted for this input. Deprecated alias of document_id; they differ only for a repeat within one request (document_id is the first copy's id) or when the occurrence row cannot be read (document_id is the canonical id)." },
35973
+ { name: "documents[].metadata", type: "object", description: "This input's effective metadata for this request \u2014 the call-level metadata merged with its file_metadata entry (per-file wins). Present only when set." },
35972
35974
  { name: "warnings[]", type: "array", description: "Present only when delivery controls produced warnings: { code, message } with code no_binding_for_node, node_not_in_live_pipeline, or node_not_on_published_version. The run is accepted either way." }
35973
35975
  ]
35974
35976
  },
@@ -35991,11 +35993,13 @@ var sections57 = [
35991
35993
  "metadata": { "source_system": "sap", "priority": 1, "cost_center": "AP-14" }
35992
35994
  },
35993
35995
  {
35994
- "document_id": "9f1e2d3c-4b5a-6789-0123-456789abcdef",
35996
+ "document_id": "b7a6c5d4-e3f2-1098-7654-3210fedcba98",
35995
35997
  "filename": "msa-2026.pdf",
35996
35998
  "size_bytes": 92160,
35997
35999
  "source": "file_url",
35998
36000
  "deduplicated": true,
36001
+ "existing_document_id": "9f1e2d3c-4b5a-6789-0123-456789abcdef",
36002
+ "duplicate_of": { "id": "9f1e2d3c-4b5a-6789-0123-456789abcdef", "filename": "msa-2026.pdf" },
35999
36003
  "linked_document_id": "b7a6c5d4-e3f2-1098-7654-3210fedcba98"
36000
36004
  }
36001
36005
  ]
@@ -36031,7 +36035,7 @@ var sections57 = [
36031
36035
  { question: "Does polling count against my rate limit?", answer: "Polling GET /v1/run/:id is metered under the general read namespace, not the run submission namespace \u2014 frequent polling never burns your daily submission quota." },
36032
36036
  { question: "What happens if I run out of credits?", answer: "The call is rejected up front with 402 insufficient_credits before any document is ingested \u2014 no partial run is created. Top up and resubmit the same call." },
36033
36037
  { question: "What does ingestion_target do?", answer: "It sets how deep ingestion goes after OCR. The default, ingest, kicks asynchronous Stage-2 field capture once a document's OCR markdown is ready, which puts the document into the corpus POST /v1/ask answers over and feeds the field registry. The Spec pipeline starts on the OCR markdown in both modes and never waits for capture, so the default costs you no run latency. Pass extract for the old markdown-only behavior; those documents will not be askable." },
36034
- { question: "How do I match run.completed results back to my uploads?", answer: "Use document_id. Each entry in the submit response's documents[] array carries the canonical document_id for that input, and each row in the run.completed webhook's records[] array carries the same document_id (plus filename) for the output it produced \u2014 join on that field to attribute a structured row back to the file or URL you sent. For a deduplicated upload (deduplicated: true), document_id points at the pre-existing canonical document, and linked_document_id identifies the link row created for this specific call." },
36038
+ { question: "How do I match run.completed results back to my uploads?", answer: "Use document_id. Each submit-response entry and run.completed record carries the same processing id. For a duplicate occurrence, duplicate_of.id relates the re-upload to the canonical bytes/OCR source." },
36035
36039
  { question: "Should I use append mode for bulk uploads?", answer: "Yes, when you want one accumulated table: with pipeline_mode=append (or the Spec's Source stage set to append) every call adds its documents to the same pipeline, and each request still gets its own run.completed webhook scoped to its own documents. Keep the default (new) when each call should produce an isolated pipeline \u2014 e.g. one pipeline per customer folder." },
36036
36040
  { question: "How do I tag individual files differently in one call?", answer: "Use file_metadata instead of (or alongside) metadata: a JSON string mapping each file's filename, or each file_urls entry, to its own flat metadata object. Per file, that bag is merged over the call-level metadata \u2014 per-file wins on a shared key \u2014 and the resolved bag lands on the document and is echoed in documents[].metadata. A key that does not match any file or URL in the call fails the whole request with a 400 naming the bad key, so a typo never silently tags nothing." }
36037
36041
  ],
@@ -39344,8 +39348,8 @@ var sections65 = [
39344
39348
  seoTitle: "Get Data Product Result Rows as JSON via API \u2014 Talonic Docs",
39345
39349
  description: "Retrieve the result rows of a data product as JSON. Each row maps schema field names to extracted values and links back to its source run and document.",
39346
39350
  content: [
39347
- { type: "paragraph", text: "Retrieve the **result rows** for a data product as JSON. The endpoint reads the stored results of every run listed in the product's `run_ids` and returns one row per processed document, newest first. Each row carries the `run_id` and `document_id` it came from plus a `values` map of schema field names to extracted values, so every data point is traceable to its source." },
39348
- { type: "paragraph", text: "This is the programmatic read path for downstream integration: poll it after your runs complete, or fetch on demand when a consumer needs the current dataset. The response is a flat page \u2014 pass `limit` to bound the page size. For a complete snapshot of a large product in a single request, prefer the CSV export endpoints (`links.export_plain` and `links.export_audit` on the product), which stream the whole dataset as a file." },
39351
+ { type: "paragraph", text: "Retrieve the **result rows** for a data product as JSON. For a run-backed product the endpoint reads the stored results of every run listed in the product's `run_ids` and returns one row per processed document, newest first. For a pipeline-backed product it reads the pipeline's record set \u2014 the same rows, values and review holdback the CSV exports serve \u2014 in record order. Each row carries the `run_id` (or `pipeline_id`) and `document_id` it came from plus a `values` map of schema field names to extracted values, so every data point is traceable to its source." },
39352
+ { type: "paragraph", text: "This is the programmatic read path for downstream integration: poll it after your runs complete, or fetch on demand when a consumer needs the current dataset. The response is one page \u2014 pass `limit` to bound the page size and follow `pagination.next_cursor` while `pagination.has_more` is true. For a complete snapshot of a large product in a single request, prefer the CSV export endpoints (`links.export_plain` and `links.export_audit` on the product), which stream the whole dataset as a file." },
39349
39353
  { type: "paragraph", text: "Rows are visibility-filtered through Sources IAM: if access rules hide a document from the user who minted your API key, that document's row is omitted from the response entirely. Internal diagnostic fields \u2014 keys prefixed with `__`, such as assembly diagnostics \u2014 are never part of `values`; they are excluded from the product grid, CSV exports, and delivery payloads alike." },
39350
39354
  {
39351
39355
  type: "endpoint",
@@ -39365,7 +39369,8 @@ var sections65 = [
39365
39369
  type: "param-table",
39366
39370
  title: "Query parameters",
39367
39371
  params: [
39368
- { name: "limit", type: "integer", default: "20", description: "Maximum number of rows to return (1-100)." }
39372
+ { name: "limit", type: "integer", default: "20", description: "Maximum number of rows to return (1-100)." },
39373
+ { name: "cursor", type: "string", description: "Opaque cursor from a previous response's `pagination.next_cursor`; returns the rows after it." }
39369
39374
  ]
39370
39375
  }
39371
39376
  ]
@@ -39377,11 +39382,17 @@ var sections65 = [
39377
39382
  params: [
39378
39383
  { name: "data", type: "array", description: "Array of result row objects, newest first." },
39379
39384
  { name: "data[].id", type: "string", description: "Result row UUID." },
39380
- { name: "data[].run_id", type: "string", description: "UUID of the run that produced this row." },
39385
+ { name: "data[].run_id", type: "string", description: "UUID of the run that produced this row. `null` for a pipeline-backed product." },
39386
+ { name: "data[].pipeline_id", type: "string", description: "Pipeline-backed products only: UUID of the pipeline whose record set the row belongs to." },
39381
39387
  { name: "data[].document_id", type: "string", description: "Source document UUID." },
39382
- { name: "data[].values", type: "object", description: "Map of schema field names to extracted values." },
39383
- { name: "data[].created_at", type: "string", description: "ISO 8601 timestamp when the row was produced." },
39384
- { name: "total", type: "integer", description: "Number of rows in this response." }
39388
+ { name: "data[].document_filename", type: "string", description: "Pipeline-backed products only: filename of the source document, as in the CSV `document_name` column." },
39389
+ { name: "data[].values", type: "object", description: 'Map of schema field names to cell objects. Each cell carries `value` plus its confidence and provenance; on a pipeline-backed product a cell still held in the review queue arrives as `value: null` with `status: "pending_review"` \u2014 the held value never leaves the API, matching the empty cell in the CSV export.' },
39390
+ { name: "data[].created_at", type: "string", description: "ISO 8601 timestamp when the row was produced. `null` for a pipeline-backed product." },
39391
+ { name: "total", type: "integer", description: "Number of rows in this response." },
39392
+ { name: "pagination.total", type: "integer", description: "Total number of rows visible to your key across all pages." },
39393
+ { name: "pagination.limit", type: "integer", description: "The page size applied." },
39394
+ { name: "pagination.has_more", type: "boolean", description: "Whether rows remain after this page." },
39395
+ { name: "pagination.next_cursor", type: "string", description: "Cursor for the next page, or `null` on the last page." }
39385
39396
  ]
39386
39397
  },
39387
39398
  {
@@ -39410,10 +39421,11 @@ var sections65 = [
39410
39421
  "created_at": "2026-06-01T14:25:00.000Z"
39411
39422
  }
39412
39423
  ],
39413
- "total": 1
39424
+ "total": 1,
39425
+ "pagination": { "total": 1, "limit": 10, "has_more": false, "next_cursor": null }
39414
39426
  }`
39415
39427
  },
39416
- { type: "callout", variant: "info", text: 'This endpoint serves run-backed products. A product with an empty `run_ids` array \u2014 for example one backed by a pipeline rather than runs \u2014 returns `{ "data": [], "total": 0 }` here; read pipeline output through the pipeline results endpoints instead.' },
39428
+ { type: "callout", variant: "info", text: 'JSON and CSV agree. A pipeline-backed product (empty `run_ids`, non-null `pipeline_id`) serves the same records here as `export/plain`, with the same review holdback: a held cell is empty in the CSV and `value: null, status: "pending_review"` in JSON. An empty `data` array therefore means the product currently has no records \u2014 a run-backed product with an empty `run_ids` array, or a pipeline whose record set is empty.' },
39417
39429
  { type: "paragraph", text: "When a product assembles several runs, rows from all of them interleave in one newest-first stream, and the `run_id` on each row tells you which run produced it. Duplicate documents across runs are not merged on this surface \u2014 a document processed by two linked runs yields two rows \u2014 so deduplicate on `document_id` client-side when your consumer expects one row per document." },
39418
39430
  { type: "heading", level: 2, id: "get-data-product-results-errors", text: "Errors" },
39419
39431
  {
package/dist/seo.js CHANGED
@@ -501,6 +501,7 @@ var openapi_default = {
501
501
  "pending",
502
502
  "processing",
503
503
  "completed",
504
+ "duplicate",
504
505
  "error"
505
506
  ]
506
507
  },
@@ -15377,7 +15378,7 @@ var openapi_default = {
15377
15378
  "Data Products"
15378
15379
  ],
15379
15380
  summary: "Get data product results",
15380
- description: "Returns paginated results for a data product.",
15381
+ description: "Returns paginated results for a data product. A run-backed product serves the stored rows of its linked runs, newest first. A pipeline-backed product serves its pipeline's record set \u2014 the same records and values as `export/plain`, in record order \u2014 with cells still held in the review queue delivered as `value: null`, `status: pending_review`; the held value never leaves the API.\n",
15381
15382
  operationId: "getDataProductResults",
15382
15383
  security: [
15383
15384
  {
@@ -21328,7 +21329,7 @@ var openapi_default = {
21328
21329
  },
21329
21330
  documents: {
21330
21331
  type: "array",
21331
- description: "One entry per input, in input order \u2014 multipart files (in request order) first, then file_urls; documents.length === input_count. Identical files submitted in the same call resolve to the same document_id, so GET /v1/run/{id}'s progress.total_documents can be lower than input_count.\n",
21332
+ description: "One entry per input, in input order \u2014 multipart files (in request order) first, then file_urls; documents.length === input_count. Byte-identical inputs in the same request share one processing identity, so GET /v1/run/{id}'s progress.total_documents can be lower than input_count. A byte-identical re-upload from a later request gets its own occurrence id and carries duplicate_of.\n",
21332
21333
  items: {
21333
21334
  type: "object",
21334
21335
  required: [
@@ -21342,12 +21343,12 @@ var openapi_default = {
21342
21343
  document_id: {
21343
21344
  type: "string",
21344
21345
  format: "uuid",
21345
- description: "The CANONICAL document \u2014 the same id result rows and the run.completed webhook's records[] carry. A byte-identical re-upload resolves to an existing document whose filename/tags may pre-date this run. This deliberately diverges from the sources/ingest dedup shape, where document_id is the link row and existing_document_id is the canonical.\n"
21346
+ description: "The id result rows and run.completed records[] carry. Every upload gets its own occurrence id; a byte-identical re-upload from a later request gets a new occurrence (its link row). When that link row cannot be created or read, the re-upload carries the canonical id. A repeat of a file within one request carries the first copy's id.\n"
21346
21347
  },
21347
21348
  filename: {
21348
21349
  type: "string",
21349
21350
  nullable: true,
21350
- description: "For file inputs, the caller's uploaded filename (even when deduplicated). For file_url inputs, the filename derived at download \u2014 for a deduplicated URL input this is the canonical document's stored filename, which may differ from the URL.\n"
21351
+ description: "For file inputs, the caller's uploaded filename (even when deduplicated). For file_url inputs, the filename derived at download.\n"
21351
21352
  },
21352
21353
  size_bytes: {
21353
21354
  type: "integer",
@@ -21362,17 +21363,40 @@ var openapi_default = {
21362
21363
  },
21363
21364
  deduplicated: {
21364
21365
  type: "boolean",
21365
- description: "True when this input resolved to a pre-existing document instead of creating a new one."
21366
+ description: "True when this occurrence reused a pre-existing document's bytes and OCR."
21367
+ },
21368
+ existing_document_id: {
21369
+ type: "string",
21370
+ format: "uuid",
21371
+ description: "Present only when deduplicated is true \u2014 the canonical, i.e. the first upload of these bytes, whose file bytes and OCR are reused (equals duplicate_of.id when that is present)."
21372
+ },
21373
+ duplicate_of: {
21374
+ type: "object",
21375
+ required: [
21376
+ "id",
21377
+ "filename"
21378
+ ],
21379
+ description: "Present on a duplicate occurrence \u2014 the first upload of these bytes, whose file bytes and OCR this occurrence reuses.",
21380
+ properties: {
21381
+ id: {
21382
+ type: "string",
21383
+ format: "uuid"
21384
+ },
21385
+ filename: {
21386
+ type: "string",
21387
+ nullable: true
21388
+ }
21389
+ }
21366
21390
  },
21367
21391
  linked_document_id: {
21368
21392
  type: "string",
21369
21393
  format: "uuid",
21370
- description: "Present only when deduplicated is true \u2014 the thin per-upload link row created for this input."
21394
+ description: "Present only when deduplicated is true \u2014 the link row minted for this input. Deprecated alias of document_id: it equals document_id when this input is the first copy of its bytes in the request and the link row resolves. Otherwise document_id is the canonical id, or the first copy's id for a repeat within the request.\n"
21371
21395
  },
21372
21396
  metadata: {
21373
21397
  type: "object",
21374
21398
  additionalProperties: true,
21375
- description: "This input's EFFECTIVE metadata for THIS request \u2014 the call-level `metadata` merged with its `file_metadata` entry (per-file wins), captured at submit. Present only when set. Under byte-identical dedup this can legitimately diverge from GET /v1/documents/{id}'s `metadata`, which keeps the CANONICAL document's tags from its FIRST submission \u2014 this echo is the authoritative per-request tag source; read it (not the document) to see what THIS call tagged.\n"
21399
+ description: "This input's EFFECTIVE metadata for THIS request \u2014 the call-level `metadata` merged with its `file_metadata` entry (per-file wins), captured at submit. Present only when set. It is stored on this occurrence and is the authoritative request tag source.\n"
21376
21400
  }
21377
21401
  },
21378
21402
  example: {
@@ -21592,10 +21616,33 @@ var openapi_default = {
21592
21616
  deduplicated: {
21593
21617
  type: "boolean"
21594
21618
  },
21619
+ existing_document_id: {
21620
+ type: "string",
21621
+ format: "uuid",
21622
+ description: "Present only when deduplicated is true \u2014 the canonical, i.e. the first upload of these bytes (equals duplicate_of.id when that is present)."
21623
+ },
21624
+ duplicate_of: {
21625
+ type: "object",
21626
+ required: [
21627
+ "id",
21628
+ "filename"
21629
+ ],
21630
+ description: "Present on a duplicate occurrence \u2014 the first upload of these bytes, whose file bytes and OCR this occurrence reuses.",
21631
+ properties: {
21632
+ id: {
21633
+ type: "string",
21634
+ format: "uuid"
21635
+ },
21636
+ filename: {
21637
+ type: "string",
21638
+ nullable: true
21639
+ }
21640
+ }
21641
+ },
21595
21642
  linked_document_id: {
21596
21643
  type: "string",
21597
21644
  format: "uuid",
21598
- description: "Present only when deduplicated is true."
21645
+ description: "Present only when deduplicated is true \u2014 the link row minted for this input (see POST /v1/run's documents[].linked_document_id).\n"
21599
21646
  },
21600
21647
  metadata: {
21601
21648
  type: "object",
@@ -40585,6 +40632,26 @@ var openapi_default = {
40585
40632
  type: "string",
40586
40633
  description: "Present only when set."
40587
40634
  },
40635
+ duplicate_of: {
40636
+ type: "object",
40637
+ required: [
40638
+ "id",
40639
+ "filename"
40640
+ ],
40641
+ description: "Present only on a run-scoped duplicate occurrence (GET /v1/run/{id}/results, or the run_id filter) \u2014 the canonical whose bytes/OCR it reused, from the request's documents[] echo.",
40642
+ properties: {
40643
+ id: {
40644
+ type: "string",
40645
+ format: "uuid"
40646
+ },
40647
+ filename: {
40648
+ type: [
40649
+ "string",
40650
+ "null"
40651
+ ]
40652
+ }
40653
+ }
40654
+ },
40588
40655
  fields: {
40589
40656
  type: "object",
40590
40657
  additionalProperties: true,
package/openapi.json CHANGED
@@ -496,6 +496,7 @@
496
496
  "pending",
497
497
  "processing",
498
498
  "completed",
499
+ "duplicate",
499
500
  "error"
500
501
  ]
501
502
  },
@@ -15357,7 +15358,7 @@
15357
15358
  "Data Products"
15358
15359
  ],
15359
15360
  "summary": "Get data product results",
15360
- "description": "Returns paginated results for a data product.",
15361
+ "description": "Returns paginated results for a data product. A run-backed product serves the stored rows of its linked runs, newest first. A pipeline-backed product serves its pipeline's record set — the same records and values as `export/plain`, in record order — with cells still held in the review queue delivered as `value: null`, `status: pending_review`; the held value never leaves the API.\n",
15361
15362
  "operationId": "getDataProductResults",
15362
15363
  "security": [
15363
15364
  {
@@ -21308,7 +21309,7 @@
21308
21309
  },
21309
21310
  "documents": {
21310
21311
  "type": "array",
21311
- "description": "One entry per input, in input order — multipart files (in request order) first, then file_urls; documents.length === input_count. Identical files submitted in the same call resolve to the same document_id, so GET /v1/run/{id}'s progress.total_documents can be lower than input_count.\n",
21312
+ "description": "One entry per input, in input order — multipart files (in request order) first, then file_urls; documents.length === input_count. Byte-identical inputs in the same request share one processing identity, so GET /v1/run/{id}'s progress.total_documents can be lower than input_count. A byte-identical re-upload from a later request gets its own occurrence id and carries duplicate_of.\n",
21312
21313
  "items": {
21313
21314
  "type": "object",
21314
21315
  "required": [
@@ -21322,12 +21323,12 @@
21322
21323
  "document_id": {
21323
21324
  "type": "string",
21324
21325
  "format": "uuid",
21325
- "description": "The CANONICAL document — the same id result rows and the run.completed webhook's records[] carry. A byte-identical re-upload resolves to an existing document whose filename/tags may pre-date this run. This deliberately diverges from the sources/ingest dedup shape, where document_id is the link row and existing_document_id is the canonical.\n"
21326
+ "description": "The id result rows and run.completed records[] carry. Every upload gets its own occurrence id; a byte-identical re-upload from a later request gets a new occurrence (its link row). When that link row cannot be created or read, the re-upload carries the canonical id. A repeat of a file within one request carries the first copy's id.\n"
21326
21327
  },
21327
21328
  "filename": {
21328
21329
  "type": "string",
21329
21330
  "nullable": true,
21330
- "description": "For file inputs, the caller's uploaded filename (even when deduplicated). For file_url inputs, the filename derived at download — for a deduplicated URL input this is the canonical document's stored filename, which may differ from the URL.\n"
21331
+ "description": "For file inputs, the caller's uploaded filename (even when deduplicated). For file_url inputs, the filename derived at download.\n"
21331
21332
  },
21332
21333
  "size_bytes": {
21333
21334
  "type": "integer",
@@ -21342,17 +21343,40 @@
21342
21343
  },
21343
21344
  "deduplicated": {
21344
21345
  "type": "boolean",
21345
- "description": "True when this input resolved to a pre-existing document instead of creating a new one."
21346
+ "description": "True when this occurrence reused a pre-existing document's bytes and OCR."
21347
+ },
21348
+ "existing_document_id": {
21349
+ "type": "string",
21350
+ "format": "uuid",
21351
+ "description": "Present only when deduplicated is true — the canonical, i.e. the first upload of these bytes, whose file bytes and OCR are reused (equals duplicate_of.id when that is present)."
21352
+ },
21353
+ "duplicate_of": {
21354
+ "type": "object",
21355
+ "required": [
21356
+ "id",
21357
+ "filename"
21358
+ ],
21359
+ "description": "Present on a duplicate occurrence — the first upload of these bytes, whose file bytes and OCR this occurrence reuses.",
21360
+ "properties": {
21361
+ "id": {
21362
+ "type": "string",
21363
+ "format": "uuid"
21364
+ },
21365
+ "filename": {
21366
+ "type": "string",
21367
+ "nullable": true
21368
+ }
21369
+ }
21346
21370
  },
21347
21371
  "linked_document_id": {
21348
21372
  "type": "string",
21349
21373
  "format": "uuid",
21350
- "description": "Present only when deduplicated is true — the thin per-upload link row created for this input."
21374
+ "description": "Present only when deduplicated is true — the link row minted for this input. Deprecated alias of document_id: it equals document_id when this input is the first copy of its bytes in the request and the link row resolves. Otherwise document_id is the canonical id, or the first copy's id for a repeat within the request.\n"
21351
21375
  },
21352
21376
  "metadata": {
21353
21377
  "type": "object",
21354
21378
  "additionalProperties": true,
21355
- "description": "This input's EFFECTIVE metadata for THIS request — the call-level `metadata` merged with its `file_metadata` entry (per-file wins), captured at submit. Present only when set. Under byte-identical dedup this can legitimately diverge from GET /v1/documents/{id}'s `metadata`, which keeps the CANONICAL document's tags from its FIRST submission — this echo is the authoritative per-request tag source; read it (not the document) to see what THIS call tagged.\n"
21379
+ "description": "This input's EFFECTIVE metadata for THIS request — the call-level `metadata` merged with its `file_metadata` entry (per-file wins), captured at submit. Present only when set. It is stored on this occurrence and is the authoritative request tag source.\n"
21356
21380
  }
21357
21381
  },
21358
21382
  "example": {
@@ -21572,10 +21596,33 @@
21572
21596
  "deduplicated": {
21573
21597
  "type": "boolean"
21574
21598
  },
21599
+ "existing_document_id": {
21600
+ "type": "string",
21601
+ "format": "uuid",
21602
+ "description": "Present only when deduplicated is true — the canonical, i.e. the first upload of these bytes (equals duplicate_of.id when that is present)."
21603
+ },
21604
+ "duplicate_of": {
21605
+ "type": "object",
21606
+ "required": [
21607
+ "id",
21608
+ "filename"
21609
+ ],
21610
+ "description": "Present on a duplicate occurrence — the first upload of these bytes, whose file bytes and OCR this occurrence reuses.",
21611
+ "properties": {
21612
+ "id": {
21613
+ "type": "string",
21614
+ "format": "uuid"
21615
+ },
21616
+ "filename": {
21617
+ "type": "string",
21618
+ "nullable": true
21619
+ }
21620
+ }
21621
+ },
21575
21622
  "linked_document_id": {
21576
21623
  "type": "string",
21577
21624
  "format": "uuid",
21578
- "description": "Present only when deduplicated is true."
21625
+ "description": "Present only when deduplicated is true — the link row minted for this input (see POST /v1/run's documents[].linked_document_id).\n"
21579
21626
  },
21580
21627
  "metadata": {
21581
21628
  "type": "object",
@@ -40565,6 +40612,26 @@
40565
40612
  "type": "string",
40566
40613
  "description": "Present only when set."
40567
40614
  },
40615
+ "duplicate_of": {
40616
+ "type": "object",
40617
+ "required": [
40618
+ "id",
40619
+ "filename"
40620
+ ],
40621
+ "description": "Present only on a run-scoped duplicate occurrence (GET /v1/run/{id}/results, or the run_id filter) — the canonical whose bytes/OCR it reused, from the request's documents[] echo.",
40622
+ "properties": {
40623
+ "id": {
40624
+ "type": "string",
40625
+ "format": "uuid"
40626
+ },
40627
+ "filename": {
40628
+ "type": [
40629
+ "string",
40630
+ "null"
40631
+ ]
40632
+ }
40633
+ }
40634
+ },
40568
40635
  "fields": {
40569
40636
  "type": "object",
40570
40637
  "additionalProperties": true,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@talonic/docs",
3
- "version": "0.21.55",
3
+ "version": "0.21.57",
4
4
  "description": "Talonic documentation components — API Reference & Platform Guide",
5
5
  "license": "UNLICENSED",
6
6
  "private": false,
@@ -1,45 +0,0 @@
1
- /**
2
- * Tailwind CSS preset for @talonic/docs consumers.
3
- * Adds the Void design system color tokens and font families
4
- * so doc components render correctly in any host app.
5
- */
6
- declare const voidDocsPreset: {
7
- darkMode: "class";
8
- theme: {
9
- extend: {
10
- colors: {
11
- 'void-bg': string;
12
- 'void-bg-elevated': string;
13
- 'void-surface': string;
14
- 'void-surface-2': string;
15
- 'void-surface-3': string;
16
- 'void-border': string;
17
- 'void-border-hover': string;
18
- 'void-text-primary': string;
19
- 'void-text-secondary': string;
20
- 'void-text-muted': string;
21
- 'void-text-tertiary': string;
22
- 'void-accent': string;
23
- 'void-accent-hover': string;
24
- 'void-accent-dim': string;
25
- 'void-accent-tint': string;
26
- 'void-danger': string;
27
- 'void-danger-solid': string;
28
- 'void-divider': string;
29
- 'void-warning': string;
30
- 'void-warning-dim': string;
31
- 'void-tier-1': string;
32
- 'void-tier-2': string;
33
- 'void-tier-3': string;
34
- };
35
- fontFamily: {
36
- space: string[];
37
- body: string[];
38
- mono: string[];
39
- };
40
- };
41
- };
42
- plugins: never[];
43
- };
44
-
45
- export { voidDocsPreset as default };
@@ -1,45 +0,0 @@
1
- /**
2
- * Tailwind CSS preset for @talonic/docs consumers.
3
- * Adds the Void design system color tokens and font families
4
- * so doc components render correctly in any host app.
5
- */
6
- declare const voidDocsPreset: {
7
- darkMode: "class";
8
- theme: {
9
- extend: {
10
- colors: {
11
- 'void-bg': string;
12
- 'void-bg-elevated': string;
13
- 'void-surface': string;
14
- 'void-surface-2': string;
15
- 'void-surface-3': string;
16
- 'void-border': string;
17
- 'void-border-hover': string;
18
- 'void-text-primary': string;
19
- 'void-text-secondary': string;
20
- 'void-text-muted': string;
21
- 'void-text-tertiary': string;
22
- 'void-accent': string;
23
- 'void-accent-hover': string;
24
- 'void-accent-dim': string;
25
- 'void-accent-tint': string;
26
- 'void-danger': string;
27
- 'void-danger-solid': string;
28
- 'void-divider': string;
29
- 'void-warning': string;
30
- 'void-warning-dim': string;
31
- 'void-tier-1': string;
32
- 'void-tier-2': string;
33
- 'void-tier-3': string;
34
- };
35
- fontFamily: {
36
- space: string[];
37
- body: string[];
38
- mono: string[];
39
- };
40
- };
41
- };
42
- plugins: never[];
43
- };
44
-
45
- export { voidDocsPreset as default };