@talonic/docs 0.20.26 → 0.20.28

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
@@ -1,5 +1,5 @@
1
1
  // src/content/helpers.ts
2
- function deriveBreadcrumbs(sections61, leafId, domain) {
2
+ function deriveBreadcrumbs(sections62, leafId, domain) {
3
3
  const domainLabels = {
4
4
  api: "API Reference",
5
5
  platform: "Platform Guide",
@@ -10,20 +10,20 @@ function deriveBreadcrumbs(sections61, leafId, domain) {
10
10
  label: domainLabels[domain] ?? domain,
11
11
  slug: domain
12
12
  };
13
- for (const group of sections61) {
13
+ for (const group of sections62) {
14
14
  const child = group.children?.find((c) => c.id === leafId);
15
15
  if (child) {
16
16
  return [root, { label: group.label, slug: group.id }, { label: child.label, slug: child.id }];
17
17
  }
18
18
  }
19
- const topLevel = sections61.find((s) => s.id === leafId);
19
+ const topLevel = sections62.find((s) => s.id === leafId);
20
20
  if (topLevel) {
21
21
  return [root, { label: topLevel.label, slug: topLevel.id }];
22
22
  }
23
23
  return [root];
24
24
  }
25
- function derivePrevNext(sections61, leafId) {
26
- const flat = sections61.flatMap(
25
+ function derivePrevNext(sections62, leafId) {
26
+ const flat = sections62.flatMap(
27
27
  (s) => s.children ?? [{ id: s.id, label: s.label }]
28
28
  );
29
29
  const idx = flat.findIndex((c) => c.id === leafId);
@@ -284,7 +284,11 @@ var API_NAV_SECTIONS = [
284
284
  { id: "cost-headers", label: "Cost Headers" }
285
285
  ] },
286
286
  { id: "usage", label: "Usage", children: [
287
- { id: "usage-overview", label: "Overview" }
287
+ { id: "usage-overview", label: "Overview" },
288
+ { id: "usage-credits", label: "Credit Usage" }
289
+ ] },
290
+ { id: "pricing", label: "Pricing", children: [
291
+ { id: "pricing-overview", label: "Pricing Catalog" }
288
292
  ] },
289
293
  { id: "document-types", label: "Document Types", children: [
290
294
  { id: "list-document-types", label: "Document Types" }
@@ -25873,7 +25877,8 @@ var sections47 = [
25873
25877
  { type: "paragraph", text: "Two endpoints cover aggregate and document-level views. The aggregate endpoint returns workspace-wide totals with a breakdown by operation type and model over a configurable date range. The per-document endpoint drills into a specific document to show every AI call made during its processing lifecycle, including cache token utilization and per-operation cost estimates." },
25874
25878
  { type: "paragraph", text: "Cost estimates are computed from the model-specific token pricing at the time of the API call. Input tokens, output tokens, and cache read tokens are each priced at their respective rates. Cache read tokens represent prompt cache hits where previously cached input was reused at a significantly lower rate than fresh input tokens \u2014 high cache utilization indicates efficient prompt reuse across similar documents." },
25875
25879
  { type: "paragraph", text: "Usage data is available immediately after each AI operation completes. There is no delay or batching \u2014 the token counts and cost estimates are recorded synchronously as part of the operation lifecycle. Historical data is retained indefinitely and can be queried over any date range." },
25876
- { type: "callout", variant: "info", text: "Usage tracking is automatic and requires no configuration. Every AI operation performed by the platform \u2014 extraction, classification, triage, resolution, matching \u2014 is metered and available through these endpoints." },
25880
+ { type: "callout", variant: "info", text: "Usage tracking is automatic and requires no configuration. Every AI operation performed by the platform (extraction, classification, triage, resolution, matching) is metered and available through these endpoints." },
25881
+ { type: "callout", variant: "info", text: "There are two usage views. This endpoint (`GET /v1/usage`) reports raw AI token and call counts. `GET /v1/usage/credits` (see Credit Usage below) reports per-function CREDIT consumption from the customer-pay ledger. Use the first to understand token cost, the second to see where credits went." },
25877
25882
  {
25878
25883
  type: "endpoint",
25879
25884
  method: "GET",
@@ -26045,11 +26050,207 @@ var sections47 = [
26045
26050
  { question: "Why might a document have multiple usage entries?", answer: "A single document can trigger several AI operations during processing: OCR classification, document type resolution, field extraction (potentially chunked for large documents), and quality verification passes. Each operation is logged as a separate entry with its own token counts and cost." }
26046
26051
  ],
26047
26052
  mentions: ["token usage", "cost analysis", "AI operations", "input tokens", "output tokens", "cache tokens", "usage tracking"]
26053
+ },
26054
+ {
26055
+ slug: "usage-credits",
26056
+ parentSlug: "usage",
26057
+ title: "Credit Usage by Function",
26058
+ seoTitle: "Credit Usage API \u2014 Per-Function Credit Spend \u2014 Talonic Docs",
26059
+ description: "See where your credits went: per-function credit consumption (extraction, structuring, intelligence operations) from the customer-pay ledger, over a trailing window.",
26060
+ content: [
26061
+ { type: "paragraph", text: 'The Credit Usage endpoint reports how many credits the workspace spent on each platform function over a trailing window. Where the aggregate Usage endpoint reports raw AI token counts, this endpoint reports the customer-pay view: the credits actually charged, grouped by the function that incurred them. It answers "where did my credits go" rather than "how many tokens did the platform burn".' },
26062
+ { type: "paragraph", text: "Consumption is grouped by `operation_type`, the billable function (for example page ingestion, structuring cells, or intelligence operations such as matching and reconciliation). Each group reports the number of charged operations and the total credits they consumed, and the response carries a workspace total across all functions. The breakdown is ordered by spend, highest first, so the dominant cost driver is the first row." },
26063
+ { type: "paragraph", text: "The window defaults to the last 30 days and is configurable from 1 to 365 days through the `days` query parameter. The endpoint reads the credit transaction ledger directly, so the figures reconcile exactly with the balance and transaction history reported by the Credits API. To convert credits to euros, divide by the credits-per-EUR rate returned by the Pricing API (1,000 credits per EUR at the standard rate)." },
26064
+ { type: "paragraph", text: 'This endpoint requires an API key with the `read` scope. It is the natural companion to the Credits Balance endpoint: balance answers "how much is left", and credit usage answers "what consumed it". Together they let an agent monitor burn by function and decide whether to shift work to batch mode or trim a particular operation.' },
26065
+ { type: "callout", variant: "info", text: "Per-function rows populate as billable operations are charged. While credit metering runs in shadow mode the ledger records what each operation would cost without deducting, so the breakdown can legitimately read as empty until enforcement is enabled for the workspace." },
26066
+ {
26067
+ type: "endpoint",
26068
+ method: "GET",
26069
+ path: "/v1/usage/credits",
26070
+ summary: "Get per-function credit consumption.",
26071
+ description: "Returns credit consumption grouped by platform function over the requested window, plus the workspace total. Requires the read scope.",
26072
+ blocks: [
26073
+ {
26074
+ type: "param-table",
26075
+ title: "Query parameters",
26076
+ params: [
26077
+ { name: "days", type: "integer", description: "Trailing reporting window in days. Default 30, clamped between 1 and 365." }
26078
+ ]
26079
+ }
26080
+ ]
26081
+ },
26082
+ { type: "heading", level: 2, id: "usage-credits-response", text: "Response" },
26083
+ {
26084
+ type: "param-table",
26085
+ title: "Response fields",
26086
+ params: [
26087
+ { name: "period_days", type: "integer", description: "Length of the reporting window in days." },
26088
+ { name: "total_credits", type: "integer", description: "Total credits consumed across all functions in the window." },
26089
+ { name: "by_function", type: "array", description: "Per-function breakdown, highest spend first." },
26090
+ { name: "by_function[].operation_type", type: "string", description: "The platform function (billable operation type) that consumed credits." },
26091
+ { name: "by_function[].operations", type: "integer", description: "Number of charged operations of this type in the window." },
26092
+ { name: "by_function[].credits", type: "integer", description: "Total credits consumed by this function." }
26093
+ ]
26094
+ },
26095
+ {
26096
+ type: "code",
26097
+ title: "Response \u2014 Credit usage by function",
26098
+ code: `{
26099
+ "period_days": 30,
26100
+ "total_credits": 48200,
26101
+ "by_function": [
26102
+ { "operation_type": "page_ingest", "operations": 412, "credits": 41200 },
26103
+ { "operation_type": "structuring_cell", "operations": 300, "credits": 6000 },
26104
+ { "operation_type": "intelligence_op", "operations": 10, "credits": 1000 }
26105
+ ]
26106
+ }`
26107
+ },
26108
+ {
26109
+ type: "code",
26110
+ title: "cURL \u2014 Credit usage for the last 7 days",
26111
+ code: `curl -X GET "https://api.talonic.ai/v1/usage/credits?days=7" \\
26112
+ -H "Authorization: Bearer tlnc_your_api_key"`
26113
+ },
26114
+ { type: "heading", level: 2, id: "usage-credits-errors", text: "Errors" },
26115
+ {
26116
+ type: "param-table",
26117
+ title: "Error responses",
26118
+ params: [
26119
+ { name: "401", type: "unauthorized", description: "Missing or invalid API key." },
26120
+ { name: "403", type: "forbidden", description: "API key lacks the read scope." },
26121
+ { name: "429", type: "rate_limited", description: "Too many requests. Retry after the period indicated in the Retry-After header." }
26122
+ ]
26123
+ }
26124
+ ],
26125
+ related: [
26126
+ { label: "Pricing Catalog", slug: "pricing-overview" },
26127
+ { label: "Credits Balance", slug: "credits-balance" },
26128
+ { label: "Usage Overview", slug: "usage-overview" }
26129
+ ],
26130
+ faq: [
26131
+ { question: "How is this different from the aggregate Usage endpoint?", answer: "The aggregate Usage endpoint reports raw AI token and call counts (the technical view). Credit Usage reports the credits actually charged per function from the customer-pay ledger (the billing view). One tells you token cost; the other tells you where your credits went." },
26132
+ { question: "What does operation_type contain?", answer: "It is the billable function that consumed the credits, such as page_ingest for document ingestion, structuring_cell for cells filled by model reasoning, or intelligence_op for matching, cases, and reconciliation. The values match the unit identifiers in the Pricing catalog." },
26133
+ { question: "Why is my breakdown empty?", answer: "Per-function rows appear once billable operations are charged. While metering runs in shadow mode the ledger records what each operation would cost without deducting, so the breakdown can be empty until enforcement is enabled. The Pricing endpoint still returns the rates in the meantime." },
26134
+ { question: "How do I convert credits to euros?", answer: "Divide credits by the credits_per_eur value returned by the Pricing endpoint (1,000 credits per EUR at the standard rate). For example, 41,200 credits of page ingestion is 41.20 EUR." }
26135
+ ],
26136
+ mentions: ["credit usage", "per-function spend", "credit consumption", "billing", "burn rate", "operation type", "credit ledger"]
26048
26137
  }
26049
26138
  ];
26050
26139
 
26051
- // src/content/api/document-types.ts
26140
+ // src/content/api/pricing.ts
26052
26141
  var sections48 = [
26142
+ {
26143
+ slug: "pricing-overview",
26144
+ parentSlug: "pricing",
26145
+ title: "Pricing Catalog",
26146
+ seoTitle: "Pricing API \u2014 Machine-Readable Credit Catalog \u2014 Talonic Docs",
26147
+ description: "Fetch the public credit pricing catalog: fixed per-unit credit rates, EUR equivalents, the credits-per-EUR conversion, and processing-mode multipliers, so an agent can predict spend before running anything.",
26148
+ content: [
26149
+ { type: "paragraph", text: "The Pricing API exposes the credit catalog that governs what every billable Talonic operation costs. It returns fixed per-unit rates rather than fluctuating token costs, so the price of a planned job is known in advance. An agent can call this endpoint, read the per-page and per-cell rates, and compute the exact credit cost of a workload before spending a single credit." },
26150
+ { type: "paragraph", text: 'Pricing is denominated in credits, the universal unit for all platform operations. The catalog also returns the credits-per-EUR conversion rate and the EUR equivalent of each unit, so the same response answers both "how many credits will this cost" and "how much is that in euros". One page of document ingestion costs 100 credits, which is 0.10 EUR at the standard rate of 1,000 credits per EUR.' },
26151
+ { type: "paragraph", text: "The catalog separates the operations that carry a cost from the ones that are free. Document page ingestion, structuring cells filled by fresh model reasoning, and intelligence operations (matching, cases, reconciliation) are billable. Field Registry resolved cells, delivery, and validation are free: reusing knowledge the platform already captured, delivering data you already paid to produce, and checking quality should never carry a surcharge." },
26152
+ { type: "paragraph", text: "Processing-mode multipliers apply on top of the per-unit rate. Batch mode runs at half cost (a 0.5x multiplier) in exchange for a 48-hour delivery window, while realtime processing runs at the full 1.0x rate. To quote a batch workload, multiply the per-unit credits by the unit count and then by the batch multiplier. The multipliers are returned in the same response so a caller never has to hardcode them." },
26153
+ { type: "callout", variant: "info", text: "This endpoint is public and unauthenticated. An agent can read pricing before it signs up or provisions an API key, which makes it the right first call when deciding whether a workload fits a budget." },
26154
+ {
26155
+ type: "endpoint",
26156
+ method: "GET",
26157
+ path: "/v1/pricing",
26158
+ summary: "Get the credit pricing catalog.",
26159
+ description: "Returns the fixed per-unit credit rates, their EUR equivalents, the credits-per-EUR conversion rate, and processing-mode multipliers. No authentication required.",
26160
+ blocks: [
26161
+ {
26162
+ type: "param-table",
26163
+ title: "Query parameters",
26164
+ params: [
26165
+ { name: "(none)", type: "", description: "This endpoint takes no parameters." }
26166
+ ]
26167
+ }
26168
+ ]
26169
+ },
26170
+ { type: "heading", level: 2, id: "pricing-response", text: "Response" },
26171
+ {
26172
+ type: "param-table",
26173
+ title: "Response fields",
26174
+ params: [
26175
+ { name: "currency", type: "string", description: "Billing currency for the EUR equivalents. Always EUR." },
26176
+ { name: "credits_per_eur", type: "number", description: "Conversion rate between credits and EUR (1,000 credits = 1 EUR at the standard rate)." },
26177
+ { name: "multipliers", type: "object", description: "Processing-mode multipliers applied on top of per-unit cost, keyed by mode (e.g. realtime: 1, batch: 0.5)." },
26178
+ { name: "units", type: "array", description: "The per-unit pricing catalog." },
26179
+ { name: "units[].unit", type: "string", description: "Billable unit identifier (page_ingest, structuring_cell, registry_resolved_cell, intelligence_op, delivery, validation)." },
26180
+ { name: "units[].label", type: "string", description: "Human-readable label for the unit." },
26181
+ { name: "units[].credits", type: "number", description: "Credits charged per single unit. Zero for free units." },
26182
+ { name: "units[].eur", type: "number", description: "EUR equivalent of one unit at the current conversion rate." },
26183
+ { name: "units[].free", type: "boolean", description: "Whether the unit is free (credits equal zero)." }
26184
+ ]
26185
+ },
26186
+ {
26187
+ type: "code",
26188
+ title: "Response \u2014 Pricing catalog",
26189
+ code: `{
26190
+ "currency": "EUR",
26191
+ "credits_per_eur": 1000,
26192
+ "multipliers": { "realtime": 1, "batch": 0.5 },
26193
+ "units": [
26194
+ { "unit": "page_ingest", "label": "Document page ingestion", "credits": 100, "eur": 0.1, "free": false },
26195
+ { "unit": "structuring_cell", "label": "Structuring cell (LLM-reasoned)", "credits": 20, "eur": 0.02, "free": false },
26196
+ { "unit": "registry_resolved_cell", "label": "Structuring cell (Field Registry resolved)", "credits": 0, "eur": 0, "free": true },
26197
+ { "unit": "intelligence_op", "label": "Intelligence operation (matching, cases, reconciliation)", "credits": 100, "eur": 0.1, "free": false },
26198
+ { "unit": "delivery", "label": "Delivery (webhook / export)", "credits": 0, "eur": 0, "free": true },
26199
+ { "unit": "validation", "label": "Validation / quality check", "credits": 0, "eur": 0, "free": true }
26200
+ ]
26201
+ }`
26202
+ },
26203
+ { type: "heading", level: 2, id: "pricing-estimate-example", text: "Estimating a Workload" },
26204
+ { type: "paragraph", text: "To estimate the cost of a job, read the relevant unit rate and multiply by the expected unit count, then apply the processing-mode multiplier. A realtime extraction of a 20-page document costs 20 pages times 100 credits, which is 2,000 credits (2.00 EUR). The same workload submitted in batch mode costs 1,000 credits (1.00 EUR) at the 0.5x multiplier. Registry-resolved cells add nothing, so a document whose fields are answered entirely from the Field Registry incurs only its page-ingestion cost." },
26205
+ {
26206
+ type: "code",
26207
+ title: "cURL \u2014 Fetch the pricing catalog",
26208
+ code: `curl -X GET "https://api.talonic.ai/v1/pricing"`
26209
+ },
26210
+ {
26211
+ type: "code",
26212
+ title: "TypeScript \u2014 Predict spend before running",
26213
+ code: `import { Talonic } from "@talonic/node"
26214
+
26215
+ const talonic = new Talonic({ apiKey: process.env.TALONIC_API_KEY! })
26216
+
26217
+ const pricing = await talonic.pricing.get()
26218
+ const perPage = pricing.units.find((u) => u.unit === "page_ingest")!
26219
+
26220
+ const pages = 20
26221
+ const realtimeCredits = perPage.credits * pages
26222
+ const batchCredits = realtimeCredits * pricing.multipliers.batch
26223
+
26224
+ console.log(\`Realtime: \${realtimeCredits} credits (\${realtimeCredits / pricing.credits_per_eur} EUR)\`)
26225
+ console.log(\`Batch: \${batchCredits} credits (\${batchCredits / pricing.credits_per_eur} EUR)\`)`
26226
+ },
26227
+ { type: "heading", level: 2, id: "pricing-errors", text: "Errors" },
26228
+ {
26229
+ type: "param-table",
26230
+ title: "Error responses",
26231
+ params: [
26232
+ { name: "429", type: "rate_limited", description: "Too many requests. Retry after the period indicated in the Retry-After header." }
26233
+ ]
26234
+ }
26235
+ ],
26236
+ related: [
26237
+ { label: "Credit Usage by Function", slug: "usage-credits" },
26238
+ { label: "Credits Balance", slug: "credits-balance" },
26239
+ { label: "Usage Overview", slug: "usage-overview" }
26240
+ ],
26241
+ faq: [
26242
+ { question: "Do I need an API key to read pricing?", answer: "No. The pricing endpoint is public and unauthenticated, so an agent can fetch rates before signing up or provisioning a key. This makes it the natural first call when deciding whether a workload fits a budget." },
26243
+ { question: "How is the credit cost of an operation calculated?", answer: "Multiply the per-unit credit rate by the number of units (pages, structuring cells, or intelligence operations), then apply the processing-mode multiplier (1.0 for realtime, 0.5 for batch). The catalog returns both the per-unit rates and the multipliers, so the full quote is computable client-side." },
26244
+ { question: "Which operations are free?", answer: "Field Registry resolved cells, delivery, and validation cost zero credits. Reusing previously captured knowledge, delivering data you already paid to produce, and checking quality do not carry a surcharge. Only fresh ingestion, fresh model reasoning, and intelligence operations are billable." },
26245
+ { question: "Why are prices in credits instead of EUR?", answer: "Credits are the universal unit across every platform operation, which keeps a single balance and a single rate table regardless of operation type. The catalog also returns the credits-per-EUR conversion and the EUR equivalent of each unit, so you can present either view." },
26246
+ { question: "How do batch discounts work?", answer: "Batch mode applies a 0.5x multiplier to every per-unit rate in exchange for a 48-hour delivery window. The multiplier is returned under multipliers.batch so you never have to hardcode it; multiply your realtime estimate by that value to get the batch cost." }
26247
+ ],
26248
+ mentions: ["pricing", "credit catalog", "cost estimation", "per-page pricing", "batch discount", "credits per EUR", "budget", "agent pricing"]
26249
+ }
26250
+ ];
26251
+
26252
+ // src/content/api/document-types.ts
26253
+ var sections49 = [
26053
26254
  {
26054
26255
  slug: "list-document-types",
26055
26256
  parentSlug: "document-types",
@@ -26206,7 +26407,7 @@ var sections48 = [
26206
26407
  ];
26207
26408
 
26208
26409
  // src/content/api/dialects.ts
26209
- var sections49 = [
26410
+ var sections50 = [
26210
26411
  {
26211
26412
  slug: "list-dialects",
26212
26413
  parentSlug: "dialects",
@@ -26735,7 +26936,7 @@ var sections49 = [
26735
26936
  ];
26736
26937
 
26737
26938
  // src/content/api/fields.ts
26738
- var sections50 = [
26939
+ var sections51 = [
26739
26940
  {
26740
26941
  slug: "list-fields",
26741
26942
  parentSlug: "fields",
@@ -27154,7 +27355,7 @@ var sections50 = [
27154
27355
  ];
27155
27356
 
27156
27357
  // src/content/api/data-products.ts
27157
- var sections51 = [
27358
+ var sections52 = [
27158
27359
  {
27159
27360
  slug: "list-data-products",
27160
27361
  parentSlug: "data-products",
@@ -27646,7 +27847,7 @@ var sections51 = [
27646
27847
  ];
27647
27848
 
27648
27849
  // src/content/api/data-policies.ts
27649
- var sections52 = [
27850
+ var sections53 = [
27650
27851
  {
27651
27852
  slug: "list-data-policies",
27652
27853
  parentSlug: "data-policies",
@@ -28334,7 +28535,7 @@ var sections52 = [
28334
28535
  ];
28335
28536
 
28336
28537
  // src/content/api/record-sets.ts
28337
- var sections53 = [
28538
+ var sections54 = [
28338
28539
  {
28339
28540
  slug: "list-record-sets",
28340
28541
  parentSlug: "record-sets",
@@ -28794,7 +28995,7 @@ var sections53 = [
28794
28995
  ];
28795
28996
 
28796
28997
  // src/content/api/pipelines.ts
28797
- var sections54 = [
28998
+ var sections55 = [
28798
28999
  {
28799
29000
  slug: "run-pipeline",
28800
29001
  parentSlug: "pipelines",
@@ -29351,7 +29552,7 @@ var sections54 = [
29351
29552
  ];
29352
29553
 
29353
29554
  // src/content/api/field-reviews.ts
29354
- var sections55 = [
29555
+ var sections56 = [
29355
29556
  {
29356
29557
  slug: "list-field-reviews",
29357
29558
  parentSlug: "field-reviews",
@@ -29966,7 +30167,7 @@ dec_uuid_1,a1b2c3d4-e5f6-7890-abcd-ef1234567890,lease_oct.pdf,total_amount,gate,
29966
30167
  ];
29967
30168
 
29968
30169
  // src/content/api/spec-config.ts
29969
- var sections56 = [
30170
+ var sections57 = [
29970
30171
  {
29971
30172
  slug: "get-spec-rail",
29972
30173
  parentSlug: "spec-config",
@@ -30958,7 +31159,7 @@ var sections56 = [
30958
31159
  ];
30959
31160
 
30960
31161
  // src/content/api/reconciliation.ts
30961
- var sections57 = [
31162
+ var sections58 = [
30962
31163
  {
30963
31164
  slug: "analyze-reconciliation",
30964
31165
  parentSlug: "reconciliation",
@@ -31530,7 +31731,7 @@ var sections57 = [
31530
31731
  ];
31531
31732
 
31532
31733
  // src/content/api/matching-packages.ts
31533
- var sections58 = [
31734
+ var sections59 = [
31534
31735
  {
31535
31736
  slug: "create-matching-package-config",
31536
31737
  parentSlug: "matching-packages",
@@ -32423,7 +32624,7 @@ talonic --help` }
32423
32624
  ];
32424
32625
 
32425
32626
  // src/content/sdk/index.ts
32426
- var sections59 = sections_default;
32627
+ var sections60 = sections_default;
32427
32628
 
32428
32629
  // src/content/mcp/sections.json
32429
32630
  var sections_default2 = [
@@ -34918,7 +35119,7 @@ var sections_default2 = [
34918
35119
  ];
34919
35120
 
34920
35121
  // src/content/mcp/index.ts
34921
- var sections60 = sections_default2;
35122
+ var sections61 = sections_default2;
34922
35123
 
34923
35124
  // src/content/index.ts
34924
35125
  var ALL_PLATFORM_RAW = [
@@ -34981,10 +35182,11 @@ var ALL_API_RAW = [
34981
35182
  ...sections56,
34982
35183
  ...sections57,
34983
35184
  ...sections58,
35185
+ ...sections59,
34984
35186
  ...sections46
34985
35187
  ];
34986
- var ALL_SDK_RAW = [...sections59];
34987
- var ALL_MCP_RAW = [...sections60];
35188
+ var ALL_SDK_RAW = [...sections60];
35189
+ var ALL_MCP_RAW = [...sections61];
34988
35190
  function enrich(raw, navSections, domain) {
34989
35191
  return raw.map((r) => {
34990
35192
  const { prev, next } = derivePrevNext(navSections, r.slug);
package/dist/index.js CHANGED
@@ -6997,7 +6997,11 @@ var API_NAV_SECTIONS = [
6997
6997
  { id: "cost-headers", label: "Cost Headers" }
6998
6998
  ] },
6999
6999
  { id: "usage", label: "Usage", children: [
7000
- { id: "usage-overview", label: "Overview" }
7000
+ { id: "usage-overview", label: "Overview" },
7001
+ { id: "usage-credits", label: "Credit Usage" }
7002
+ ] },
7003
+ { id: "pricing", label: "Pricing", children: [
7004
+ { id: "pricing-overview", label: "Pricing Catalog" }
7001
7005
  ] },
7002
7006
  { id: "document-types", label: "Document Types", children: [
7003
7007
  { id: "list-document-types", label: "Document Types" }
@@ -7201,7 +7205,8 @@ var API_SECTION_META = [
7201
7205
  { id: "routing-rules", title: "Routing Rules API", description: "Document routing rules \u2014 create, manage, and reorder priority-based rules for automatic document workflow assignment." },
7202
7206
  { id: "reference-data", title: "Reference Data API", description: "Upload, list, and manage reference data tables used as lookup targets for matching configurations. Supports JSON upload, paginated row access, and CSV export." },
7203
7207
  { id: "fields", title: "Fields API", description: "Read-only access to the field registry \u2014 list fields with filters, cross-schema harmonization analysis, field detail with occurrences, and embedding-based similarity search." },
7204
- { id: "usage", title: "Usage API", description: "AI token usage tracking \u2014 aggregate stats by operation type and model, per-document usage breakdown with cost estimates." },
7208
+ { id: "usage", title: "Usage API", description: "AI token usage tracking \u2014 aggregate stats by operation type and model, per-document usage breakdown with cost estimates, and per-function credit consumption." },
7209
+ { id: "pricing", title: "Pricing API", description: "Public machine-readable credit pricing catalog \u2014 fixed per-unit credit rates, EUR equivalents, the credits-per-EUR conversion, and processing-mode multipliers, so an agent can predict spend before running." },
7205
7210
  { id: "document-types", title: "Document Types API", description: "Document type classification \u2014 list workspace document types by frequency and retrieve the 529-type ontology taxonomy." },
7206
7211
  { id: "registry", title: "Registry API", description: "Query previously-extracted field values across all documents \u2014 ingest once, query forever. Zero re-extraction, zero AI calls." },
7207
7212
  { id: "billing", title: "Billing API", description: "Billing settings, auto top-up for AI agents, and cost response headers on extraction requests." },