@talonic/docs 0.21.48 → 0.21.50

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: [
@@ -46355,7 +46355,7 @@ curl "https://api.talonic.com/v1/ai/models" \\
46355
46355
  type: "param-table",
46356
46356
  title: "Response fields",
46357
46357
  params: [
46358
- { name: "policy", type: "object", description: "The stored policy document: version, status, region_pin, allowed_providers, denied_models, model_substitutions, default_models, max_attempts, model_classes, operation_classes, features. Unset fields are null." },
46358
+ { name: "policy", type: "object", description: "The stored policy document: version, status, region_pin, allowed_providers, denied_models, model_substitutions, default_models, max_attempts, image_attachment_quality, model_classes, operation_classes, features. Unset fields are null." },
46359
46359
  { name: "inherited", type: "boolean", description: "True when the workspace has no stored policy and runs on the platform default." },
46360
46360
  { name: "constraints", type: "object", description: "The enforced mandatory constraints: region_pin, allowed_providers, denied_models, and platform_provider_floor (the deployment-level bound the tenant policy can only narrow, never widen)." },
46361
46361
  { name: "operation_classes", type: "object", description: "Per operation type: { class, source, overridden }. source is builtin, platform, or org; overridden is true when the workspace remapped the operation." },
@@ -46385,6 +46385,7 @@ curl "https://api.talonic.com/v1/ai/models" \\
46385
46385
  "model_substitutions": null,
46386
46386
  "default_models": null,
46387
46387
  "max_attempts": null,
46388
+ "image_attachment_quality": null,
46388
46389
  "model_classes": null,
46389
46390
  "operation_classes": { "extraction": "complex" },
46390
46391
  "features": null
@@ -46450,6 +46451,7 @@ curl "https://api.talonic.com/v1/ai/models" \\
46450
46451
  { name: "model_substitutions", type: "object", description: 'Remap one model onto another wherever the first would be chosen, for example {"claude-opus": "claude-sonnet"}. The substitute is still subject to every mandatory constraint.' },
46451
46452
  { name: "default_models", type: "object", description: "Preferred model per speed tier where no class governs the call. Keys are fast, default, powerful." },
46452
46453
  { name: "max_attempts", type: "integer", description: "Ceiling on provider attempts for one logical call. 1 to 8." },
46454
+ { name: "image_attachment_quality", type: "string | null", description: "How much the vision model spends rasterising an attached PDF page (Gemini media resolution): low, medium (560 tokens per page) or high (1120). Image attachments are unaffected. Null means the deployment default; omitting it on PUT clears it." },
46453
46455
  { name: "model_classes", type: "object", description: "Named model lineage overrides. Values are camelCase: { description, chain: [{ model, deployments: [{ provider, region }] }], requiredCapabilities, fallback }. fallback is chain or primary_only." },
46454
46456
  { name: "operation_classes", type: "object", description: 'Per-operation class overrides keyed by operation type, for example {"extraction": "standard"}.' },
46455
46457
  { name: "features", type: "object", description: "Feature toggles with camelCase keys mapped to booleans. Absent toggles stay on." },
@@ -46806,6 +46808,7 @@ curl "https://api.talonic.com/v1/ai/models" \\
46806
46808
  "model_substitutions": null,
46807
46809
  "default_models": null,
46808
46810
  "max_attempts": null,
46811
+ "image_attachment_quality": null,
46809
46812
  "model_classes": null,
46810
46813
  "operation_classes": null,
46811
46814
  "features": null
@@ -46824,6 +46827,7 @@ curl "https://api.talonic.com/v1/ai/models" \\
46824
46827
  "model_substitutions": null,
46825
46828
  "default_models": null,
46826
46829
  "max_attempts": null,
46830
+ "image_attachment_quality": null,
46827
46831
  "model_classes": null,
46828
46832
  "operation_classes": null,
46829
46833
  "features": null
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: [