@talonic/docs 0.21.48 → 0.21.49

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
@@ -73,7 +73,7 @@ var API_NAV_SECTIONS = [
73
73
  { id: "list-extractions", label: "List Extractions" },
74
74
  { id: "get-extraction", label: "Get Extraction" },
75
75
  { id: "get-extraction-fields", label: "Get Extraction Data" },
76
- { id: "get-extraction-markdown", label: "Correct Fields" },
76
+ { id: "correct-fields", label: "Correct Fields" },
77
77
  { id: "correct-extraction", label: "Correct Extraction" }
78
78
  ] },
79
79
  { id: "schemas", label: "Schemas", children: [
@@ -15197,7 +15197,7 @@ X-Talonic-Cells-Resolved-AI: 5` },
15197
15197
  "**Reuse schemas** \u2014 save your schema with `POST /v1/schemas`, then pass `schema_id` on future extractions.",
15198
15198
  "**Large documents** \u2014 files >5 pages return `202 Accepted` with a `poll_url`. See [Processing Modes](extract-processing-mode).",
15199
15199
  "**Webhooks** \u2014 receive results via `extraction.complete` events instead of polling. See [Webhook Events](webhook-events).",
15200
- "**Batch mode** \u2014 process at 50% cost with `processing_mode=batch`. See [Batches](batches).",
15200
+ "**Batch mode** \u2014 process at 50% cost with `processing_mode=batch`. See [Batches](list-batches).",
15201
15201
  "**Credits** \u2014 check your balance anytime with `GET /v1/credits/balance`. See [Credits](credits-balance)."
15202
15202
  ] }
15203
15203
  ],
@@ -17184,7 +17184,7 @@ done`
17184
17184
  related: [
17185
17185
  { label: "List Extractions", slug: "list-extractions" },
17186
17186
  { label: "Get Extraction Data", slug: "get-extraction-fields" },
17187
- { label: "Correct Fields", slug: "get-extraction-markdown" },
17187
+ { label: "Correct Fields", slug: "correct-fields" },
17188
17188
  { label: "Correct Extraction", slug: "correct-extraction" },
17189
17189
  { label: "Get Document", slug: "get-document" }
17190
17190
  ],
@@ -17278,7 +17278,7 @@ curl -s "https://api.talonic.com/v1/extractions/a1b2c3d4-e5f6-7890-abcd-ef123456
17278
17278
  related: [
17279
17279
  { label: "Get Extraction", slug: "get-extraction" },
17280
17280
  { label: "List Extractions", slug: "list-extractions" },
17281
- { label: "Correct Fields", slug: "get-extraction-markdown" },
17281
+ { label: "Correct Fields", slug: "correct-fields" },
17282
17282
  { label: "POST /v1/extract", slug: "post-extract" }
17283
17283
  ],
17284
17284
  faq: [
@@ -17290,7 +17290,7 @@ curl -s "https://api.talonic.com/v1/extractions/a1b2c3d4-e5f6-7890-abcd-ef123456
17290
17290
  mentions: ["CSV export", "extraction data", "JSON output", "data download", "Content-Disposition", "key-value data"]
17291
17291
  },
17292
17292
  {
17293
- slug: "get-extraction-markdown",
17293
+ slug: "correct-fields",
17294
17294
  parentSlug: "extractions",
17295
17295
  title: "Correct Fields",
17296
17296
  seoTitle: "Correct Extraction Fields via PATCH API \u2014 Talonic Docs",
@@ -17334,7 +17334,7 @@ curl -s "https://api.talonic.com/v1/extractions/a1b2c3d4-e5f6-7890-abcd-ef123456
17334
17334
  -H "Content-Type: application/json" \\
17335
17335
  -d '{ "total_amount": 14500.00 }'`
17336
17336
  },
17337
- { type: "heading", level: 2, id: "get-extraction-markdown-response", text: "Response" },
17337
+ { type: "heading", level: 2, id: "correct-fields-response", text: "Response" },
17338
17338
  {
17339
17339
  type: "param-table",
17340
17340
  title: "Response fields",
@@ -17399,7 +17399,7 @@ curl -s "https://api.talonic.com/v1/extractions/a1b2c3d4-e5f6-7890-abcd-ef123456
17399
17399
  "cells_skipped": []
17400
17400
  }`
17401
17401
  },
17402
- { type: "heading", level: 2, id: "get-extraction-markdown-errors", text: "Errors" },
17402
+ { type: "heading", level: 2, id: "correct-fields-errors", text: "Errors" },
17403
17403
  {
17404
17404
  type: "param-table",
17405
17405
  title: "Error responses",
@@ -17435,7 +17435,7 @@ curl -s "https://api.talonic.com/v1/extractions/a1b2c3d4-e5f6-7890-abcd-ef123456
17435
17435
  description: "Override extracted field values with POST /v1/extractions/:id/correct \u2014 every corrected field is written at confidence 1.0 and locked as ground truth.",
17436
17436
  content: [
17437
17437
  { type: "paragraph", text: "The **Correct Extraction** endpoint, `POST /v1/extractions/:id/correct`, overrides field values on an extraction. Pass a flat map of field name to corrected value; each field you set is written at confidence 1.0 and locked, so it is treated as ground truth and not re-derived. Use it to fix a misread value programmatically without re-running extraction." },
17438
- { type: "paragraph", text: "This route is an **exact alias** of [`PATCH /v1/extractions/:id/data`](get-extraction-markdown): same request body, same write scope, same locking behavior, and the same response \u2014 the full updated extraction, so one round trip both applies and verifies the correction. It exists for clients and API gateways that prefer an explicit action-named POST over PATCH semantics; pick either route and stay consistent." },
17438
+ { type: "paragraph", text: "This route is an **exact alias** of [`PATCH /v1/extractions/:id/data`](correct-fields): same request body, same write scope, same locking behavior, and the same response \u2014 the full updated extraction, so one round trip both applies and verifies the correction. It exists for clients and API gateways that prefer an explicit action-named POST over PATCH semantics; pick either route and stay consistent." },
17439
17439
  { type: "paragraph", text: "A typical workflow is to read the extraction with `GET /v1/extractions/:id`, spot the fields whose confidence is low or whose values fail your own validation, and post the known-good values here. Fields you do not include are left unchanged. A field name not present on the extraction is added as a new locked field rather than rejected, so exact key spelling matters \u2014 copy names from the extraction's `data` object." },
17440
17440
  { type: "paragraph", text: "Send values in their proper JSON types: a number sent as `1240.00` keeps the field numeric, while a quoted string stores a string. Corrections are visible immediately in every read \u2014 `GET /v1/extractions/:id`, the [data endpoint](get-extraction-fields) and its CSV export all reflect the corrected values, and the field appears in `locked_fields` with confidence 1.0." },
17441
17441
  { type: "callout", variant: "info", text: "This endpoint requires write scope; keys with only read/extract scopes receive 403. Locking is permanent \u2014 a later correction can change the value, but the field never returns to model-derived values on re-extraction." },
@@ -17509,7 +17509,7 @@ curl -s "https://api.talonic.com/v1/extractions/a1b2c3d4-e5f6-7890-abcd-ef123456
17509
17509
  related: [
17510
17510
  { label: "Get Extraction", slug: "get-extraction" },
17511
17511
  { label: "Get Extraction Data", slug: "get-extraction-fields" },
17512
- { label: "Correct Fields (PATCH)", slug: "get-extraction-markdown" },
17512
+ { label: "Correct Fields (PATCH)", slug: "correct-fields" },
17513
17513
  { label: "List Extractions", slug: "list-extractions" }
17514
17514
  ],
17515
17515
  faq: [
package/dist/index.js CHANGED
@@ -7906,7 +7906,7 @@ var API_NAV_SECTIONS = [
7906
7906
  { id: "list-extractions", label: "List Extractions" },
7907
7907
  { id: "get-extraction", label: "Get Extraction" },
7908
7908
  { id: "get-extraction-fields", label: "Get Extraction Data" },
7909
- { id: "get-extraction-markdown", label: "Correct Fields" },
7909
+ { id: "correct-fields", label: "Correct Fields" },
7910
7910
  { id: "correct-extraction", label: "Correct Extraction" }
7911
7911
  ] },
7912
7912
  { id: "schemas", label: "Schemas", children: [