@talonic/docs 0.21.65 → 0.21.67
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 +253 -43
- package/dist/index.js +5 -0
- package/dist/index.js.map +1 -1
- package/dist/seo.js +793 -9
- package/openapi.json +788 -9
- package/package.json +1 -1
- package/dist/tailwind-preset.d.cts +0 -45
- package/dist/tailwind-preset.d.ts +0 -45
package/dist/content.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// src/content/helpers.ts
|
|
2
|
-
function deriveBreadcrumbs(
|
|
2
|
+
function deriveBreadcrumbs(sections95, leafId, domain) {
|
|
3
3
|
const domainLabels = {
|
|
4
4
|
api: "API Reference",
|
|
5
5
|
platform: "Platform Guide",
|
|
@@ -10,20 +10,20 @@ function deriveBreadcrumbs(sections94, leafId, domain) {
|
|
|
10
10
|
label: domainLabels[domain] ?? domain,
|
|
11
11
|
slug: domain
|
|
12
12
|
};
|
|
13
|
-
for (const group of
|
|
13
|
+
for (const group of sections95) {
|
|
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 =
|
|
19
|
+
const topLevel = sections95.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(
|
|
26
|
-
const flat =
|
|
25
|
+
function derivePrevNext(sections95, leafId) {
|
|
26
|
+
const flat = sections95.flatMap(
|
|
27
27
|
(s) => s.children ?? [{ id: s.id, label: s.label }]
|
|
28
28
|
);
|
|
29
29
|
const idx = flat.findIndex((c) => c.id === leafId);
|
|
@@ -353,6 +353,10 @@ var API_NAV_SECTIONS = [
|
|
|
353
353
|
{ id: "usage-overview", label: "Overview" },
|
|
354
354
|
{ id: "usage-credits", label: "Credit Usage" }
|
|
355
355
|
] },
|
|
356
|
+
{ id: "aggregate", label: "Aggregate", children: [
|
|
357
|
+
{ id: "aggregate-overview", label: "Overview" },
|
|
358
|
+
{ id: "aggregate-catalog", label: "Catalog" }
|
|
359
|
+
] },
|
|
356
360
|
{ id: "account", label: "Account", children: [
|
|
357
361
|
{ id: "get-account", label: "Account Snapshot" },
|
|
358
362
|
{ id: "account-keys", label: "Manage API Keys" },
|
|
@@ -37998,8 +38002,209 @@ var sections60 = [
|
|
|
37998
38002
|
}
|
|
37999
38003
|
];
|
|
38000
38004
|
|
|
38001
|
-
// src/content/api/
|
|
38005
|
+
// src/content/api/aggregate.ts
|
|
38002
38006
|
var sections61 = [
|
|
38007
|
+
{
|
|
38008
|
+
slug: "aggregate-overview",
|
|
38009
|
+
parentSlug: "aggregate",
|
|
38010
|
+
title: "Aggregate Overview",
|
|
38011
|
+
seoTitle: "Aggregate API \u2014 Workspace Metrics in One Call \u2014 Talonic",
|
|
38012
|
+
description: "Count documents, failures, app decisions, deliveries, model calls and cost per document in one request. Numbers only, filtered, grouped by field or by day.",
|
|
38013
|
+
content: [
|
|
38014
|
+
{ type: "paragraph", text: "`POST /v1/aggregate` answers several questions about your workspace in one request and returns numbers, never document contents. A typical dashboard asks: how many documents arrived in the last 12 hours, how many of them failed, how they split by document type, and what processing a document cost on average. Each of those is one query in the same request, and the answer comes back keyed by the `id` you gave each query." },
|
|
38015
|
+
{ type: "paragraph", text: "Every request names a time window with `from` and `to`. Both are ISO-8601 timestamps that carry an offset, such as `2026-11-05T12:00:00Z`; a timestamp without one is refused, because it would be read in an unknown time zone. The window includes `from` and excludes `to`, so two back-to-back windows never count the same row twice. A window can be at most 31 days long." },
|
|
38016
|
+
{ type: "paragraph", text: "Each query picks a **dataset** (what you are counting, such as `documents` or `deliveries`), a **measure** (`count`, `sum`, `avg`, `median`, a percentile like `p90`, and a few more) and optionally `where` filters and `group_by` fields. `GET /v1/aggregate/catalog` lists every dataset with a sentence on what one row is, every field with its type and the filters it takes, and every limit. Read it first: it is generated from the same definitions the endpoint checks requests against, so it is always current." },
|
|
38017
|
+
{ type: "paragraph", text: "Most datasets count things **created** in the window and report their state **now**. A document that arrived yesterday and failed this morning counts as failed in yesterday's window. This makes repeated reports for the same window change slightly while work is still in progress, and settle once it is done. `as_of` in the answer says when the numbers were read; all queries of one request read the same moment." },
|
|
38018
|
+
{ type: "paragraph", text: "`scope` narrows every query of the request to some documents: by id, by tag, by source, by document type, by the `batch_id` you sent at upload, or to top-level documents or attachments only. Datasets that are not about documents refuse a scope with a 400, so a filter never silently does nothing; the catalog marks them with `document_scope: false`. Rows tied to a document the owner of the API key may not see are left out. Rows tied to no document at all, such as a model call outside any document, still count unless a scope is set." },
|
|
38019
|
+
{ type: "callout", variant: "warning", text: "One aggregate request runs at a time per workspace. A second request sent while the first is running gets `429` with a `Retry-After` header: wait that many seconds and send it again. Schedule dashboards one after the other rather than in parallel. (On a deployment that does not share this limit across its API processes, the limit is per process; the catalog says which in `limits.concurrency.per`.)" },
|
|
38020
|
+
{ type: "callout", variant: "info", text: "Cost fields (`cost_usd`, `credit_cost`) and grouping by `model` need cost visibility for your organization. Without it they answer `403 cost_not_visible`; every other field still works. `GET /v1/aggregate/catalog` says whether your workspace has it (`cost_visible`) and marks each field that needs it (`cost: true`)." },
|
|
38021
|
+
{
|
|
38022
|
+
type: "endpoint",
|
|
38023
|
+
method: "POST",
|
|
38024
|
+
path: "/v1/aggregate",
|
|
38025
|
+
summary: "Several workspace metrics in one request.",
|
|
38026
|
+
description: "Runs up to 20 queries over one window and returns one result per query id. Needs an API key with the `read` scope.",
|
|
38027
|
+
blocks: [
|
|
38028
|
+
{
|
|
38029
|
+
type: "param-table",
|
|
38030
|
+
title: "Request body",
|
|
38031
|
+
params: [
|
|
38032
|
+
{ name: "from", type: "string", description: "Start of the window (included), ISO-8601 with an offset." },
|
|
38033
|
+
{ name: "to", type: "string", description: "End of the window (excluded), ISO-8601 with an offset. At most 31 days after `from`." },
|
|
38034
|
+
{ name: "scope", type: "object", description: "Optional. Restricts every query to some documents: `document_ids`, `tags` (`{ any: [...] }` or `{ all: [...] }`), `system_tags`, `source_connection_ids`, `document_types` (ids or names), `client_batch_ids`, `roots_only`, `attachments_only`." },
|
|
38035
|
+
{ name: "queries[].id", type: "string", description: "Your name for the query (lowercase letters, digits, `_`); the answer is keyed by it." },
|
|
38036
|
+
{ name: "queries[].dataset", type: "string", description: "What to count; see `GET /v1/aggregate/catalog`." },
|
|
38037
|
+
{ name: "queries[].measure", type: "string | string[]", description: "`count`, `rows`, `count_distinct`, `sum`, `avg`, `min`, `max`, `median` or `p1`\u2013`p99`. A list answers several at once." },
|
|
38038
|
+
{ name: "queries[].of", type: "string", description: "The field a measure other than `count` / `rows` is computed over." },
|
|
38039
|
+
{ name: "queries[].where", type: "array", description: "Filters: `{ field, op, value }`. Operators: `eq`, `neq`, `in`, `not_in`, `is_null`, `not_null`, `gt`, `gte`, `lt`, `lte`, `contains_any`, `contains_all`; the catalog lists which ones each field takes." },
|
|
38040
|
+
{ name: "queries[].group_by", type: "string[]", description: "Up to three groupable fields, or `hour` / `day` (UTC)." }
|
|
38041
|
+
]
|
|
38042
|
+
}
|
|
38043
|
+
]
|
|
38044
|
+
},
|
|
38045
|
+
{
|
|
38046
|
+
type: "code",
|
|
38047
|
+
title: "Request \u2014 the last 12 hours",
|
|
38048
|
+
language: "bash",
|
|
38049
|
+
code: `curl -s https://api.talonic.com/v1/aggregate \\
|
|
38050
|
+
-H "Authorization: Bearer $TALONIC_API_KEY" \\
|
|
38051
|
+
-H "Content-Type: application/json" \\
|
|
38052
|
+
-d '{
|
|
38053
|
+
"from": "2026-11-05T12:00:00Z",
|
|
38054
|
+
"to": "2026-11-06T00:00:00Z",
|
|
38055
|
+
"queries": [
|
|
38056
|
+
{ "id": "received", "dataset": "documents", "measure": "count",
|
|
38057
|
+
"where": [{ "field": "duplicate", "op": "eq", "value": false }] },
|
|
38058
|
+
{ "id": "failed", "dataset": "documents", "measure": "count",
|
|
38059
|
+
"where": [{ "field": "failed", "op": "eq", "value": true }] },
|
|
38060
|
+
{ "id": "by_type", "dataset": "documents", "measure": "count",
|
|
38061
|
+
"group_by": ["document_type"] },
|
|
38062
|
+
{ "id": "cost", "dataset": "document_cost",
|
|
38063
|
+
"measure": ["avg", "median", "p90"], "of": "cost_usd" }
|
|
38064
|
+
]
|
|
38065
|
+
}'`
|
|
38066
|
+
},
|
|
38067
|
+
{
|
|
38068
|
+
type: "code",
|
|
38069
|
+
title: "Response",
|
|
38070
|
+
language: "json",
|
|
38071
|
+
code: `{
|
|
38072
|
+
"window": { "from": "2026-11-05T12:00:00.000Z", "to": "2026-11-06T00:00:00.000Z" },
|
|
38073
|
+
"as_of": "2026-11-06T00:00:03.120Z",
|
|
38074
|
+
"results": {
|
|
38075
|
+
"received": { "dataset": "documents", "kind": "entity", "value": 412 },
|
|
38076
|
+
"failed": { "dataset": "documents", "kind": "entity", "value": 3 },
|
|
38077
|
+
"by_type": {
|
|
38078
|
+
"dataset": "documents", "kind": "entity",
|
|
38079
|
+
"groups": [
|
|
38080
|
+
{ "key": { "document_type": "Invoice" }, "value": 301 },
|
|
38081
|
+
{ "key": { "document_type": "Delivery Note" }, "value": 97 },
|
|
38082
|
+
{ "key": { "document_type": null }, "value": 14 }
|
|
38083
|
+
],
|
|
38084
|
+
"groups_total": 3
|
|
38085
|
+
},
|
|
38086
|
+
"cost": { "dataset": "document_cost", "kind": "entity",
|
|
38087
|
+
"values": { "avg": 0.0108, "median": 0.0104, "p90": 0.0124, "n": 412 } }
|
|
38088
|
+
}
|
|
38089
|
+
}`
|
|
38090
|
+
},
|
|
38091
|
+
{ type: "heading", level: 2, id: "aggregate-reading-results", text: "Reading the answer" },
|
|
38092
|
+
{ type: "paragraph", text: "A query with one measure answers `value`; a query with a list of measures answers `values`, one entry per measure, plus `n`, the number of rows they were computed over. A grouped query answers `groups`, each with the `key` it groups by and its value; a `null` key collects the rows without a value for that field (above: documents not yet classified). Groups come largest first, or in time order when grouped by `hour` or `day`." },
|
|
38093
|
+
{ type: "paragraph", text: "At most 200 groups come back per query. `groups_total` says how many existed, so when it is larger than the number of groups returned, narrow the query with a `where` filter or a shorter window. A computed measure such as `avg` or `sum` is `null` when there were no rows to compute it over; counts are `0`." },
|
|
38094
|
+
{
|
|
38095
|
+
type: "code",
|
|
38096
|
+
title: "Request \u2014 failures per day, by source",
|
|
38097
|
+
language: "json",
|
|
38098
|
+
code: `{
|
|
38099
|
+
"from": "2026-10-07T00:00:00Z",
|
|
38100
|
+
"to": "2026-11-06T00:00:00Z",
|
|
38101
|
+
"queries": [
|
|
38102
|
+
{ "id": "failed_daily", "dataset": "documents", "measure": "count",
|
|
38103
|
+
"where": [{ "field": "failed", "op": "eq", "value": true }],
|
|
38104
|
+
"group_by": ["day", "source_connection_id"] }
|
|
38105
|
+
]
|
|
38106
|
+
}`
|
|
38107
|
+
},
|
|
38108
|
+
{ type: "heading", level: 2, id: "aggregate-errors", text: "Errors" },
|
|
38109
|
+
{
|
|
38110
|
+
type: "list",
|
|
38111
|
+
items: [
|
|
38112
|
+
"`400 invalid_aggregate`: a name, operator, value or limit is wrong. The message says which, and `details` lists the names allowed there (`allowed_datasets`, `allowed_fields`, `allowed_ops`, `allowed_keys`).",
|
|
38113
|
+
"`403 cost_not_visible`: the request asks for a cost field or groups by `model`, and cost visibility is off for your organization.",
|
|
38114
|
+
"`422 aggregate_timeout`: one statement ran longer than `limits.statement_timeout_ms` and the request was stopped; `details.dataset` names the dataset. Ask for a shorter window, fewer groups or fewer queries.",
|
|
38115
|
+
"`429` with `Retry-After`: another aggregate request of your workspace is still running. Retry after that many seconds.",
|
|
38116
|
+
"`429` with `X-RateLimit-Reset`: the daily rate limit of your workspace is used up until that time."
|
|
38117
|
+
]
|
|
38118
|
+
}
|
|
38119
|
+
],
|
|
38120
|
+
related: [
|
|
38121
|
+
{ label: "Aggregate Catalog", slug: "aggregate-catalog" },
|
|
38122
|
+
{ label: "Usage Overview", slug: "usage-overview" },
|
|
38123
|
+
{ label: "Accounts Payable", slug: "payables-overview" },
|
|
38124
|
+
{ label: "Money Found", slug: "money-found-overview" },
|
|
38125
|
+
{ label: "Rate Limits", slug: "rate-limits" }
|
|
38126
|
+
],
|
|
38127
|
+
faq: [
|
|
38128
|
+
{ question: "Why does a number for a past window change when I ask again?", answer: "Most datasets count rows created in the window and report their state now. A document that arrived in the window and finishes processing later moves from processing to completed or failed. Once all work from the window is done, its numbers stop changing." },
|
|
38129
|
+
{ question: "Why do I get 400 when I add a scope?", answer: "Some datasets are not about documents, for example delivery attempts or app runs. A document scope cannot apply to them, so the request is refused instead of the scope being ignored. The catalog marks each such dataset with `document_scope: false`; send its queries in a separate request without a scope." },
|
|
38130
|
+
{ question: "Can I count Accounts Payable bills waiting for a person?", answer: "Not with this endpoint. Accounts Payable works out each bill and its status when you read it, so no stored list of bills exists to count. Read the totals from GET /v1/ap/overview instead. The Money Found ledger is the same: read it from GET /v1/money-found/levers." },
|
|
38131
|
+
{ question: "What does document_cost measure?", answer: "For each document created in the window, what its processing has cost so far: model calls and OCR, at list price. It is not what your workspace is charged in credits, and a document without any calls counts with 0. Its `cost_usd` field needs cost visibility for your organization; counting documents and reading `pages` (OCR pages) work without it." },
|
|
38132
|
+
{ question: "How do I find out which fields a dataset has?", answer: "Call GET /v1/aggregate/catalog. It lists every dataset with its fields, their types, whether they can be grouped and which filters they take. A request with a wrong name also answers 400 with the allowed names in details." }
|
|
38133
|
+
],
|
|
38134
|
+
mentions: ["aggregate", "workspace metrics", "dashboard", "document counts", "failed documents", "cost per document", "group by", "percentile", "median", "time window", "catalog"]
|
|
38135
|
+
},
|
|
38136
|
+
{
|
|
38137
|
+
slug: "aggregate-catalog",
|
|
38138
|
+
parentSlug: "aggregate",
|
|
38139
|
+
title: "Aggregate Catalog",
|
|
38140
|
+
seoTitle: "Aggregate Catalog \u2014 Datasets, Fields and Limits \u2014 Talonic",
|
|
38141
|
+
description: "Every dataset, field, measure and limit POST /v1/aggregate accepts, generated from the definitions it checks against: types, filters, grouping, cost fields.",
|
|
38142
|
+
content: [
|
|
38143
|
+
{ type: "paragraph", text: "`GET /v1/aggregate/catalog` describes everything `POST /v1/aggregate` accepts. It is generated from the same definitions the endpoint uses to check requests, so a field listed here works and a field not listed here does not. It reads no workspace data, is not limited to one request at a time, and is safe to call on every dashboard start to build a query builder or to check names." },
|
|
38144
|
+
{ type: "paragraph", text: "Each dataset carries a `description` that says what one row is and what `count` counts: for `documents` a row is a document, for `pipeline_documents` a row is a document in one pipeline and `count` counts distinct documents. `kind` is `entity` for rows created in the window and read as they are now, and `event` for rows written in the window that never change (model calls). `document_scope` says whether the request's `scope` applies, and `defaults` lists filters applied unless your query filters the same field, such as leaving out preview runs or replaced decisions." },
|
|
38145
|
+
{ type: "paragraph", text: "Each field carries its `type` (`text`, `uuid`, `bool`, `number` or `text[]`), whether it can appear in `group_by` (`groupable`), the `where` operators it takes (`ops`), and whether it needs cost visibility (`cost`). Number fields can be measured with `sum`, `avg`, `median` and the percentiles; any field can be measured with `count_distinct`. True/false fields take `eq` and `neq`, not `in`, and tag lists take `contains_any` and `contains_all`." },
|
|
38146
|
+
{ type: "paragraph", text: "`limits` lists the window length, the number of queries per request, the number of values a list filter may carry, how long one statement may run (`statement_timeout_ms`; a request runs one statement per dataset plus one per grouped query, so a whole request can take longer), and how many requests may run at once (`concurrency`: one per workspace, or per API process where the deployment does not share that limit). `group_by` lists the time buckets (`hour`, `day`, both UTC), how many grouping fields a query may name and how many groups come back. `cost_visible` says whether your workspace may read fields marked `cost`." },
|
|
38147
|
+
{ type: "callout", variant: "info", text: "The datasets cover documents, pipelines, app decisions and runs, deliveries, model calls, and the standard apps: compliance checks, Money Found reviews, Contract Check decisions, Document Generation jobs and documents, and Price Baseline invoice checks." },
|
|
38148
|
+
{
|
|
38149
|
+
type: "endpoint",
|
|
38150
|
+
method: "GET",
|
|
38151
|
+
path: "/v1/aggregate/catalog",
|
|
38152
|
+
summary: "Every dataset, field, measure and limit of /v1/aggregate.",
|
|
38153
|
+
description: "Needs an API key with the `read` scope. Reads no workspace data.",
|
|
38154
|
+
blocks: []
|
|
38155
|
+
},
|
|
38156
|
+
{
|
|
38157
|
+
type: "code",
|
|
38158
|
+
title: "Response (shortened to one dataset and two fields)",
|
|
38159
|
+
language: "json",
|
|
38160
|
+
code: `{
|
|
38161
|
+
"datasets": [
|
|
38162
|
+
{
|
|
38163
|
+
"name": "documents",
|
|
38164
|
+
"description": "Documents created in the window, with their status now. Deleted documents are left out. \`count\` counts documents.",
|
|
38165
|
+
"kind": "entity",
|
|
38166
|
+
"document_scope": true,
|
|
38167
|
+
"defaults": [],
|
|
38168
|
+
"fields": [
|
|
38169
|
+
{ "name": "failed", "description": "True when processing ended in an error (upload, OCR or extraction).",
|
|
38170
|
+
"type": "bool", "groupable": true, "cost": false, "ops": ["eq", "neq", "is_null", "not_null"] },
|
|
38171
|
+
{ "name": "document_type", "description": "Name of the document type the document is classified as (e.g. \\"Invoice\\").",
|
|
38172
|
+
"type": "text", "groupable": true, "cost": false, "ops": ["eq", "neq", "in", "not_in", "is_null", "not_null"] }
|
|
38173
|
+
]
|
|
38174
|
+
}
|
|
38175
|
+
],
|
|
38176
|
+
"measures": [ { "name": "count", "description": "What the dataset counts (its description says: rows, documents or distinct documents).", "needs_of": false } ],
|
|
38177
|
+
"group_by": { "time": ["hour", "day"], "max": 3, "max_buckets": 200 },
|
|
38178
|
+
"scope_keys": ["document_ids", "tags", "system_tags", "source_connection_ids", "document_types", "client_batch_ids", "roots_only", "attachments_only"],
|
|
38179
|
+
"limits": { "max_window_days": 31, "max_queries": 20, "max_list_values": 1000, "statement_timeout_ms": 30000,
|
|
38180
|
+
"concurrency": { "requests": 1, "per": "workspace" } },
|
|
38181
|
+
"cost_visible": true
|
|
38182
|
+
}`
|
|
38183
|
+
},
|
|
38184
|
+
{
|
|
38185
|
+
type: "code",
|
|
38186
|
+
title: "List the datasets and their groupable fields",
|
|
38187
|
+
language: "bash",
|
|
38188
|
+
code: `curl -s https://api.talonic.com/v1/aggregate/catalog \\
|
|
38189
|
+
-H "Authorization: Bearer $TALONIC_API_KEY" \\
|
|
38190
|
+
| jq -r '.datasets[] | "\\(.name): \\([.fields[] | select(.groupable) | .name] | join(", "))"'`
|
|
38191
|
+
}
|
|
38192
|
+
],
|
|
38193
|
+
related: [
|
|
38194
|
+
{ label: "Aggregate Overview", slug: "aggregate-overview" },
|
|
38195
|
+
{ label: "Usage Overview", slug: "usage-overview" }
|
|
38196
|
+
],
|
|
38197
|
+
faq: [
|
|
38198
|
+
{ question: "Does the catalog differ between workspaces?", answer: "The datasets and fields are the same for every workspace. Only `cost_visible` depends on your organization, and the limits follow the deployment you call. A dataset can still be empty for you, for example app decisions in a workspace without apps." },
|
|
38199
|
+
{ question: "Why is a field listed with cost: true?", answer: "It reveals what processing cost or which model ran. Those need cost visibility for your organization; without it, a query that names the field answers 403 cost_not_visible. All other fields of the same dataset keep working." },
|
|
38200
|
+
{ question: "What is the difference between count and rows?", answer: "rows always counts rows. count counts what the dataset says it counts: for most datasets that is the same, but for pipeline_documents and app_verdicts it counts distinct documents, because one document can have several rows." }
|
|
38201
|
+
],
|
|
38202
|
+
mentions: ["aggregate catalog", "datasets", "fields", "measures", "group by", "filters", "operators", "limits", "cost visibility"]
|
|
38203
|
+
}
|
|
38204
|
+
];
|
|
38205
|
+
|
|
38206
|
+
// src/content/api/pricing.ts
|
|
38207
|
+
var sections62 = [
|
|
38003
38208
|
{
|
|
38004
38209
|
slug: "pricing-overview",
|
|
38005
38210
|
parentSlug: "pricing",
|
|
@@ -38112,7 +38317,7 @@ console.log(\`Batch: \${batchCredits} credits (\${batchCredits / pricing.cred
|
|
|
38112
38317
|
];
|
|
38113
38318
|
|
|
38114
38319
|
// src/content/api/document-types.ts
|
|
38115
|
-
var
|
|
38320
|
+
var sections63 = [
|
|
38116
38321
|
{
|
|
38117
38322
|
slug: "list-document-types",
|
|
38118
38323
|
parentSlug: "document-types",
|
|
@@ -38278,7 +38483,7 @@ var sections62 = [
|
|
|
38278
38483
|
];
|
|
38279
38484
|
|
|
38280
38485
|
// src/content/api/dialects.ts
|
|
38281
|
-
var
|
|
38486
|
+
var sections64 = [
|
|
38282
38487
|
{
|
|
38283
38488
|
slug: "list-dialects",
|
|
38284
38489
|
parentSlug: "dialects",
|
|
@@ -38826,7 +39031,7 @@ var sections63 = [
|
|
|
38826
39031
|
];
|
|
38827
39032
|
|
|
38828
39033
|
// src/content/api/fields.ts
|
|
38829
|
-
var
|
|
39034
|
+
var sections65 = [
|
|
38830
39035
|
{
|
|
38831
39036
|
slug: "list-fields",
|
|
38832
39037
|
parentSlug: "fields",
|
|
@@ -39355,7 +39560,7 @@ var sections64 = [
|
|
|
39355
39560
|
];
|
|
39356
39561
|
|
|
39357
39562
|
// src/content/api/data-products.ts
|
|
39358
|
-
var
|
|
39563
|
+
var sections66 = [
|
|
39359
39564
|
{
|
|
39360
39565
|
slug: "list-data-products",
|
|
39361
39566
|
parentSlug: "data-products",
|
|
@@ -40221,7 +40426,7 @@ inv_0043.pdf,INV-2026-0043,,842.10,USD`
|
|
|
40221
40426
|
];
|
|
40222
40427
|
|
|
40223
40428
|
// src/content/api/data-policies.ts
|
|
40224
|
-
var
|
|
40429
|
+
var sections67 = [
|
|
40225
40430
|
{
|
|
40226
40431
|
slug: "list-data-policies",
|
|
40227
40432
|
parentSlug: "data-policies",
|
|
@@ -41105,7 +41310,7 @@ end
|
|
|
41105
41310
|
];
|
|
41106
41311
|
|
|
41107
41312
|
// src/content/api/record-sets.ts
|
|
41108
|
-
var
|
|
41313
|
+
var sections68 = [
|
|
41109
41314
|
{
|
|
41110
41315
|
slug: "list-record-sets",
|
|
41111
41316
|
parentSlug: "record-sets",
|
|
@@ -41701,7 +41906,7 @@ var sections67 = [
|
|
|
41701
41906
|
];
|
|
41702
41907
|
|
|
41703
41908
|
// src/content/api/pipelines.ts
|
|
41704
|
-
var
|
|
41909
|
+
var sections69 = [
|
|
41705
41910
|
{
|
|
41706
41911
|
slug: "run-pipeline",
|
|
41707
41912
|
parentSlug: "pipelines",
|
|
@@ -42868,7 +43073,7 @@ curl -s https://api.talonic.com/v1/pipelines/a1b2c3d4-e5f6-7890-abcd-ef123456789
|
|
|
42868
43073
|
];
|
|
42869
43074
|
|
|
42870
43075
|
// src/content/api/field-reviews.ts
|
|
42871
|
-
var
|
|
43076
|
+
var sections70 = [
|
|
42872
43077
|
{
|
|
42873
43078
|
slug: "list-field-reviews",
|
|
42874
43079
|
parentSlug: "field-reviews",
|
|
@@ -43982,7 +44187,7 @@ var sections69 = [
|
|
|
43982
44187
|
];
|
|
43983
44188
|
|
|
43984
44189
|
// src/content/api/specs.ts
|
|
43985
|
-
var
|
|
44190
|
+
var sections71 = [
|
|
43986
44191
|
{
|
|
43987
44192
|
slug: "list-specs",
|
|
43988
44193
|
parentSlug: "specs",
|
|
@@ -44329,7 +44534,7 @@ var sections70 = [
|
|
|
44329
44534
|
];
|
|
44330
44535
|
|
|
44331
44536
|
// src/content/api/spec-config.ts
|
|
44332
|
-
var
|
|
44537
|
+
var sections72 = [
|
|
44333
44538
|
{
|
|
44334
44539
|
slug: "get-spec-rail",
|
|
44335
44540
|
parentSlug: "spec-config",
|
|
@@ -45547,7 +45752,7 @@ var sections71 = [
|
|
|
45547
45752
|
];
|
|
45548
45753
|
|
|
45549
45754
|
// src/content/api/reconciliation.ts
|
|
45550
|
-
var
|
|
45755
|
+
var sections73 = [
|
|
45551
45756
|
{
|
|
45552
45757
|
slug: "analyze-reconciliation",
|
|
45553
45758
|
parentSlug: "reconciliation",
|
|
@@ -46138,7 +46343,7 @@ var sections72 = [
|
|
|
46138
46343
|
];
|
|
46139
46344
|
|
|
46140
46345
|
// src/content/api/matching-packages.ts
|
|
46141
|
-
var
|
|
46346
|
+
var sections74 = [
|
|
46142
46347
|
{
|
|
46143
46348
|
slug: "create-matching-package-config",
|
|
46144
46349
|
parentSlug: "matching-packages",
|
|
@@ -46842,7 +47047,7 @@ curl -s "https://api.talonic.com/v1/matching/packages/runs?package_config_id=4f2
|
|
|
46842
47047
|
];
|
|
46843
47048
|
|
|
46844
47049
|
// src/content/api/ai-policies.ts
|
|
46845
|
-
var
|
|
47050
|
+
var sections75 = [
|
|
46846
47051
|
{
|
|
46847
47052
|
slug: "ai-policy-overview",
|
|
46848
47053
|
parentSlug: "ai",
|
|
@@ -47433,7 +47638,7 @@ curl "https://api.talonic.com/v1/ai/models" \\
|
|
|
47433
47638
|
];
|
|
47434
47639
|
|
|
47435
47640
|
// src/content/api/apps.ts
|
|
47436
|
-
var
|
|
47641
|
+
var sections76 = [
|
|
47437
47642
|
{
|
|
47438
47643
|
slug: "apps-overview",
|
|
47439
47644
|
parentSlug: "apps",
|
|
@@ -49124,7 +49329,7 @@ curl -s "https://api.talonic.com/v1/decision-tasks/$TASK_ID/package?cursor=$CURS
|
|
|
49124
49329
|
];
|
|
49125
49330
|
|
|
49126
49331
|
// src/content/api/agent-tasks.ts
|
|
49127
|
-
var
|
|
49332
|
+
var sections77 = [
|
|
49128
49333
|
{
|
|
49129
49334
|
slug: "agent-tasks-overview",
|
|
49130
49335
|
parentSlug: "agent-tasks",
|
|
@@ -49389,7 +49594,7 @@ curl -s -X POST https://api.talonic.com/v1/agent-tasks/0b6a2f5e-8c1d-4e7a-9f3b-2
|
|
|
49389
49594
|
];
|
|
49390
49595
|
|
|
49391
49596
|
// src/content/api/db-snapshots.ts
|
|
49392
|
-
var
|
|
49597
|
+
var sections78 = [
|
|
49393
49598
|
{
|
|
49394
49599
|
slug: "db-snapshot-sources",
|
|
49395
49600
|
parentSlug: "db-snapshots",
|
|
@@ -49748,7 +49953,7 @@ var sections77 = [
|
|
|
49748
49953
|
];
|
|
49749
49954
|
|
|
49750
49955
|
// src/content/api/binding-resolutions.ts
|
|
49751
|
-
var
|
|
49956
|
+
var sections79 = [
|
|
49752
49957
|
{
|
|
49753
49958
|
slug: "resolve-bindings",
|
|
49754
49959
|
parentSlug: "binding-resolutions",
|
|
@@ -49964,7 +50169,7 @@ for (const { field_key, bindings } of res.resolutions) {
|
|
|
49964
50169
|
];
|
|
49965
50170
|
|
|
49966
50171
|
// src/content/api/compliance.ts
|
|
49967
|
-
var
|
|
50172
|
+
var sections80 = [
|
|
49968
50173
|
{
|
|
49969
50174
|
slug: "compliance-overview",
|
|
49970
50175
|
parentSlug: "compliance",
|
|
@@ -51180,7 +51385,7 @@ curl -X POST "https://api.talonic.com/v1/compliance/tasks/$TASK_ID/submit" \\
|
|
|
51180
51385
|
];
|
|
51181
51386
|
|
|
51182
51387
|
// src/content/api/contracts.ts
|
|
51183
|
-
var
|
|
51388
|
+
var sections81 = [
|
|
51184
51389
|
{
|
|
51185
51390
|
slug: "contracts-overview",
|
|
51186
51391
|
parentSlug: "contracts",
|
|
@@ -52120,7 +52325,7 @@ curl -X POST "https://api.talonic.com/v1/contracts/import/all" \\
|
|
|
52120
52325
|
];
|
|
52121
52326
|
|
|
52122
52327
|
// src/content/api/parties.ts
|
|
52123
|
-
var
|
|
52328
|
+
var sections82 = [
|
|
52124
52329
|
{
|
|
52125
52330
|
slug: "parties-overview",
|
|
52126
52331
|
parentSlug: "parties",
|
|
@@ -52345,13 +52550,13 @@ curl -X PATCH "https://api.talonic.com/v1/parties/roles/$ROLE_ID" \\
|
|
|
52345
52550
|
description: "List contract partners with their roles and open problems, create and edit parties, and read one party with its letters, contracts, documents and duplicates.",
|
|
52346
52551
|
content: [
|
|
52347
52552
|
{ type: "paragraph", text: "`GET /v1/parties` lists the parties the key's minting user may see: a party holding a role on a visible row, or one that user created and that has no role yet. By default the register lists **contract partners**, meaning parties holding the `partner` or `our_party` role, or no role yet. Every other entity (a Verwalter, a tenant, an owner, a contact) appears with `scope=all`. The list is sorted by display name." },
|
|
52348
|
-
{ type: "paragraph", text: "Each entry is a party with three additions: `contracts` (the contract rows the party holds a non-rejected role on), `roles` (the role names it holds) and `issues` (the problems that name the party, plus one when the party has a duplicate candidate). `total` counts the parties matching the filters before `limit`, and `needs_attention` counts the parties in scope, before the other filters, that need a person. `attention=true` (or `1`) keeps only those; any other value applies no filter." },
|
|
52553
|
+
{ type: "paragraph", text: "Each entry is a party with three additions: `contracts` (the contract rows the party holds a non-rejected role on), `roles` (the role names it holds) and `issues` (the problems that name the party, plus one when the party has a duplicate candidate). `total` counts the parties matching the filters before paging (`limit` rows from `offset`, or the 1-based `page`), and `needs_attention` counts the parties in scope, before the other filters, that need a person. `attention=true` (or `1`) keeps only those; any other value applies no filter." },
|
|
52349
52554
|
{
|
|
52350
52555
|
type: "endpoint",
|
|
52351
52556
|
method: "GET",
|
|
52352
52557
|
path: "/v1/parties",
|
|
52353
52558
|
summary: "The register of contract partners.",
|
|
52354
|
-
description: "Requires the read scope. Returns { total, needs_attention, data[] }.",
|
|
52559
|
+
description: "Requires the read scope. Returns one page: { total, needs_attention, offset, limit, data[] }.",
|
|
52355
52560
|
blocks: [
|
|
52356
52561
|
{
|
|
52357
52562
|
type: "param-table",
|
|
@@ -52361,7 +52566,9 @@ curl -X PATCH "https://api.talonic.com/v1/parties/roles/$ROLE_ID" \\
|
|
|
52361
52566
|
{ name: "q", type: "string", description: "Case-insensitive substring over name, street, postcode, town and e-mail; also matches the normalized name key." },
|
|
52362
52567
|
{ name: "kind", type: "string", description: "person, company, owners_association or unknown." },
|
|
52363
52568
|
{ name: "attention", type: "string", description: "true or 1 keeps only parties that need a person (a problem names them, or they have a duplicate candidate)." },
|
|
52364
|
-
{ name: "limit", type: "integer", description: "1 to 5000.", default: "200" },
|
|
52569
|
+
{ name: "limit", type: "integer", description: "Rows per page, 1 to 5000.", default: "200" },
|
|
52570
|
+
{ name: "offset", type: "integer", description: "The first row of the page (0-based); wins over page when both are given.", default: "0" },
|
|
52571
|
+
{ name: "page", type: "integer", description: "The page to return (1-based, limit rows each), an alternative to offset." },
|
|
52365
52572
|
{ name: "scope", type: "string", description: "partners or all.", default: "partners" }
|
|
52366
52573
|
]
|
|
52367
52574
|
}
|
|
@@ -52819,7 +53026,7 @@ curl -X POST "https://api.talonic.com/v1/parties/$DUPLICATE_ID/merge" \\
|
|
|
52819
53026
|
];
|
|
52820
53027
|
|
|
52821
53028
|
// src/content/api/doc-gen.ts
|
|
52822
|
-
var
|
|
53029
|
+
var sections83 = [
|
|
52823
53030
|
{
|
|
52824
53031
|
slug: "doc-gen-overview",
|
|
52825
53032
|
parentSlug: "doc-gen",
|
|
@@ -53841,7 +54048,7 @@ curl -OJ "https://api.talonic.com/v1/doc-gen/jobs/$JOB_ID/zip" \\
|
|
|
53841
54048
|
];
|
|
53842
54049
|
|
|
53843
54050
|
// src/content/api/customs-declaration.ts
|
|
53844
|
-
var
|
|
54051
|
+
var sections84 = [
|
|
53845
54052
|
{
|
|
53846
54053
|
slug: "customs-declaration-overview",
|
|
53847
54054
|
parentSlug: "customs-declaration",
|
|
@@ -54187,7 +54394,7 @@ curl "https://api.talonic.com/v1/customs-declaration/declarations?pipeline_id=$P
|
|
|
54187
54394
|
];
|
|
54188
54395
|
|
|
54189
54396
|
// src/content/api/chart-to-data.ts
|
|
54190
|
-
var
|
|
54397
|
+
var sections85 = [
|
|
54191
54398
|
{
|
|
54192
54399
|
slug: "chart-to-data-overview",
|
|
54193
54400
|
parentSlug: "chart-to-data",
|
|
@@ -54404,6 +54611,8 @@ curl "https://api.talonic.com/v1/chart-to-data/runs/$RUN_ID" \\
|
|
|
54404
54611
|
{ name: "page_count", type: "integer | null", description: "Null until the scan is done." },
|
|
54405
54612
|
{ name: "pages_scanned", type: "integer", description: "0 until the scan is done." },
|
|
54406
54613
|
{ name: "charts[]", type: "array", description: "page_number, box { x, y, width, height }, state (ready or found), chart_key (nullable), id (stable across rescans) and title." },
|
|
54614
|
+
{ name: "charts[].reason", type: "string (optional)", description: "Engineering text explaining why a found chart is not ready, from its scan or latest reading that returned no values. Absent for ready charts or when no reason was stored. Map recognized codes to localized sentences and use a generic fallback for unknown codes; raw text is not display copy." },
|
|
54615
|
+
{ name: "pictures[]", type: "array (optional)", description: "Unread figure-sized pictures grouped by page: page_number and reasons (one engineering string per picture). Omitted when none were recorded, including older scans without these diagnostics. These are not chart assets or claims. Map recognized codes to localized sentences and fall back generically for unknown codes." },
|
|
54407
54616
|
{ name: "diagrams[]", type: "array", description: "page_number and view: reader (pipe, station, or null when the page holds no diagram), page { width, height }, nodes, edges and lanes." }
|
|
54408
54617
|
]
|
|
54409
54618
|
}
|
|
@@ -54669,7 +54878,7 @@ curl "https://api.talonic.com/v1/chart-to-data/runs/$RUN_ID" \\
|
|
|
54669
54878
|
];
|
|
54670
54879
|
|
|
54671
54880
|
// src/content/api/data-library.ts
|
|
54672
|
-
var
|
|
54881
|
+
var sections86 = [
|
|
54673
54882
|
{
|
|
54674
54883
|
slug: "data-library-overview",
|
|
54675
54884
|
parentSlug: "data-library",
|
|
@@ -55276,7 +55485,7 @@ var sections85 = [
|
|
|
55276
55485
|
];
|
|
55277
55486
|
|
|
55278
55487
|
// src/content/api/object-model.ts
|
|
55279
|
-
var
|
|
55488
|
+
var sections87 = [
|
|
55280
55489
|
{
|
|
55281
55490
|
slug: "object-model-overview",
|
|
55282
55491
|
parentSlug: "object-model",
|
|
@@ -55504,7 +55713,7 @@ var sections86 = [
|
|
|
55504
55713
|
];
|
|
55505
55714
|
|
|
55506
55715
|
// src/content/api/price-baseline.ts
|
|
55507
|
-
var
|
|
55716
|
+
var sections88 = [
|
|
55508
55717
|
{
|
|
55509
55718
|
slug: "price-baseline-overview",
|
|
55510
55719
|
parentSlug: "price-baseline",
|
|
@@ -56996,7 +57205,7 @@ curl "https://api.talonic.com/v1/price-baseline/comparisons/e04a9b17-6d28-47c5-b
|
|
|
56996
57205
|
];
|
|
56997
57206
|
|
|
56998
57207
|
// src/content/api/submissions.ts
|
|
56999
|
-
var
|
|
57208
|
+
var sections89 = [
|
|
57000
57209
|
{
|
|
57001
57210
|
slug: "submissions-overview",
|
|
57002
57211
|
parentSlug: "submissions",
|
|
@@ -57775,7 +57984,7 @@ curl "https://api.talonic.com/v1/submissions/export?spec_id=5d1c0a52-0c1e-4b64-9
|
|
|
57775
57984
|
];
|
|
57776
57985
|
|
|
57777
57986
|
// src/content/api/payables.ts
|
|
57778
|
-
var
|
|
57987
|
+
var sections90 = [
|
|
57779
57988
|
{
|
|
57780
57989
|
slug: "payables-overview",
|
|
57781
57990
|
parentSlug: "payables",
|
|
@@ -58296,7 +58505,7 @@ curl "https://api.talonic.com/v1/ap/netsuite/runs" \\
|
|
|
58296
58505
|
];
|
|
58297
58506
|
|
|
58298
58507
|
// src/content/api/money-found.ts
|
|
58299
|
-
var
|
|
58508
|
+
var sections91 = [
|
|
58300
58509
|
{
|
|
58301
58510
|
slug: "money-found-overview",
|
|
58302
58511
|
parentSlug: "money-found",
|
|
@@ -58712,7 +58921,7 @@ curl "https://api.talonic.com/v1/money-found/reviews" \\
|
|
|
58712
58921
|
];
|
|
58713
58922
|
|
|
58714
58923
|
// src/content/api/master-records.ts
|
|
58715
|
-
var
|
|
58924
|
+
var sections92 = [
|
|
58716
58925
|
{
|
|
58717
58926
|
slug: "master-records-overview",
|
|
58718
58927
|
parentSlug: "master-records",
|
|
@@ -60588,7 +60797,7 @@ talonic --version`
|
|
|
60588
60797
|
];
|
|
60589
60798
|
|
|
60590
60799
|
// src/content/sdk/index.ts
|
|
60591
|
-
var
|
|
60800
|
+
var sections93 = sections_default;
|
|
60592
60801
|
|
|
60593
60802
|
// src/content/mcp/sections.json
|
|
60594
60803
|
var sections_default2 = [
|
|
@@ -66320,7 +66529,7 @@ var sections_default2 = [
|
|
|
66320
66529
|
];
|
|
66321
66530
|
|
|
66322
66531
|
// src/content/mcp/index.ts
|
|
66323
|
-
var
|
|
66532
|
+
var sections94 = sections_default2;
|
|
66324
66533
|
|
|
66325
66534
|
// src/content/index.ts
|
|
66326
66535
|
var ALL_PLATFORM_RAW = [
|
|
@@ -66416,10 +66625,11 @@ var ALL_API_RAW = [
|
|
|
66416
66625
|
...sections89,
|
|
66417
66626
|
...sections90,
|
|
66418
66627
|
...sections91,
|
|
66628
|
+
...sections92,
|
|
66419
66629
|
...sections59
|
|
66420
66630
|
];
|
|
66421
|
-
var ALL_SDK_RAW = [...
|
|
66422
|
-
var ALL_MCP_RAW = [...
|
|
66631
|
+
var ALL_SDK_RAW = [...sections93];
|
|
66632
|
+
var ALL_MCP_RAW = [...sections94];
|
|
66423
66633
|
function enrich(raw, navSections, domain) {
|
|
66424
66634
|
return raw.map((r) => {
|
|
66425
66635
|
const { prev, next } = derivePrevNext(navSections, r.slug);
|
package/dist/index.js
CHANGED
|
@@ -8186,6 +8186,10 @@ var API_NAV_SECTIONS = [
|
|
|
8186
8186
|
{ id: "usage-overview", label: "Overview" },
|
|
8187
8187
|
{ id: "usage-credits", label: "Credit Usage" }
|
|
8188
8188
|
] },
|
|
8189
|
+
{ id: "aggregate", label: "Aggregate", children: [
|
|
8190
|
+
{ id: "aggregate-overview", label: "Overview" },
|
|
8191
|
+
{ id: "aggregate-catalog", label: "Catalog" }
|
|
8192
|
+
] },
|
|
8189
8193
|
{ id: "account", label: "Account", children: [
|
|
8190
8194
|
{ id: "get-account", label: "Account Snapshot" },
|
|
8191
8195
|
{ id: "account-keys", label: "Manage API Keys" },
|
|
@@ -8560,6 +8564,7 @@ var API_SECTION_META = [
|
|
|
8560
8564
|
{ id: "routing-rules", title: "Routing Rules API", description: "Document routing rules \u2014 create, manage, and reorder priority-based rules for automatic document workflow assignment." },
|
|
8561
8565
|
{ 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." },
|
|
8562
8566
|
{ 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." },
|
|
8567
|
+
{ id: "aggregate", title: "Aggregate API", description: "Workspace metrics in one request \u2014 counts, sums, averages, medians and percentiles over documents, pipelines, app decisions, deliveries, model calls and the standard apps, filtered and grouped." },
|
|
8563
8568
|
{ 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." },
|
|
8564
8569
|
{ 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." },
|
|
8565
8570
|
{ 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." },
|