@talonic/docs 0.21.23 → 0.21.24
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 +335 -13
- package/dist/index.js +224 -0
- package/dist/index.js.map +1 -1
- package/dist/seo.js +578 -1
- package/dist/tailwind-preset.d.cts +45 -0
- package/dist/tailwind-preset.d.ts +45 -0
- package/openapi.json +573 -1
- package/package.json +1 -1
package/dist/content.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// src/content/helpers.ts
|
|
2
|
-
function deriveBreadcrumbs(
|
|
2
|
+
function deriveBreadcrumbs(sections75, leafId, domain) {
|
|
3
3
|
const domainLabels = {
|
|
4
4
|
api: "API Reference",
|
|
5
5
|
platform: "Platform Guide",
|
|
@@ -10,20 +10,20 @@ function deriveBreadcrumbs(sections74, leafId, domain) {
|
|
|
10
10
|
label: domainLabels[domain] ?? domain,
|
|
11
11
|
slug: domain
|
|
12
12
|
};
|
|
13
|
-
for (const group of
|
|
13
|
+
for (const group of sections75) {
|
|
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 = sections75.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(sections75, leafId) {
|
|
26
|
+
const flat = sections75.flatMap(
|
|
27
27
|
(s) => s.children ?? [{ id: s.id, label: s.label }]
|
|
28
28
|
);
|
|
29
29
|
const idx = flat.findIndex((c) => c.id === leafId);
|
|
@@ -377,6 +377,11 @@ var API_NAV_SECTIONS = [
|
|
|
377
377
|
{ id: "field-review-triage", label: "Triage Breakdown" },
|
|
378
378
|
{ id: "field-review-value-clusters", label: "Value Clusters" }
|
|
379
379
|
] },
|
|
380
|
+
{ id: "specs", label: "Specs", children: [
|
|
381
|
+
{ id: "list-specs", label: "List Specs" },
|
|
382
|
+
{ id: "get-spec", label: "Get a Spec" },
|
|
383
|
+
{ id: "spec-published-versions", label: "Published Versions" }
|
|
384
|
+
] },
|
|
380
385
|
{ id: "spec-config", label: "Spec Config", children: [
|
|
381
386
|
{ id: "get-spec-rail", label: "Get Rail" },
|
|
382
387
|
{ id: "set-spec-rail", label: "Set Rail" },
|
|
@@ -37790,8 +37795,324 @@ dec_uuid_1,a1b2c3d4-e5f6-7890-abcd-ef1234567890,lease_oct.pdf,total_amount,gate,
|
|
|
37790
37795
|
}
|
|
37791
37796
|
];
|
|
37792
37797
|
|
|
37793
|
-
// src/content/api/
|
|
37798
|
+
// src/content/api/specs.ts
|
|
37794
37799
|
var sections68 = [
|
|
37800
|
+
{
|
|
37801
|
+
slug: "list-specs",
|
|
37802
|
+
parentSlug: "specs",
|
|
37803
|
+
title: "List Specs",
|
|
37804
|
+
seoTitle: "List Specs via API \u2014 Talonic Docs",
|
|
37805
|
+
description: "List every Spec in your workspace with its schema, published version, and links. A Spec and the schema it runs on are two records with two different IDs.",
|
|
37806
|
+
content: [
|
|
37807
|
+
{ type: "paragraph", text: "A **Spec** is the authoring document behind `/specs/{id}` in the app. Publishing a Spec *materializes* it onto a schema, which is what pipelines actually run. The two are separate records with separate IDs: the ID in the Spec editor URL is not the schema ID, and vice versa." },
|
|
37808
|
+
{ type: "callout", variant: "info", text: "This is the single most common surprise on this API. If you take the UUID out of a `/specs/...` browser URL and look it up under `/v1/schemas/{id}`, you will get a 404 \u2014 not because the Spec is missing, but because that endpoint is keyed on schema IDs. Use `schema_id` below to cross over, or `spec_id` on `GET /v1/schemas` to cross back." },
|
|
37809
|
+
{
|
|
37810
|
+
type: "endpoint",
|
|
37811
|
+
method: "GET",
|
|
37812
|
+
path: "/v1/specs",
|
|
37813
|
+
summary: "List Specs, newest first.",
|
|
37814
|
+
blocks: [
|
|
37815
|
+
{
|
|
37816
|
+
type: "param-table",
|
|
37817
|
+
title: "Query parameters",
|
|
37818
|
+
params: [
|
|
37819
|
+
{ name: "limit", type: "integer", description: "Page size, 1\u2013100. Defaults to 20." },
|
|
37820
|
+
{ name: "cursor", type: "string", description: "Opaque cursor from the previous page's `next_cursor`." },
|
|
37821
|
+
{ name: "order", type: "string", description: "`desc` (default) or `asc`, by creation time." },
|
|
37822
|
+
{ name: "search", type: "string", description: "Case-insensitive name search." }
|
|
37823
|
+
]
|
|
37824
|
+
}
|
|
37825
|
+
]
|
|
37826
|
+
},
|
|
37827
|
+
{
|
|
37828
|
+
type: "code",
|
|
37829
|
+
language: "bash",
|
|
37830
|
+
title: "List Specs",
|
|
37831
|
+
code: `curl -H "Authorization: Bearer $TALONIC_API_KEY" \\
|
|
37832
|
+
"https://api.talonic.com/v1/specs?limit=20"`
|
|
37833
|
+
},
|
|
37834
|
+
{ type: "heading", level: 2, id: "list-specs-response", text: "Response" },
|
|
37835
|
+
{
|
|
37836
|
+
type: "param-table",
|
|
37837
|
+
title: "Response fields",
|
|
37838
|
+
params: [
|
|
37839
|
+
{ name: "data[].id", type: "string", description: "The Spec ID \u2014 the one in the `/specs/{id}` editor URL." },
|
|
37840
|
+
{ name: "data[].name", type: "string", description: "Spec name." },
|
|
37841
|
+
{ name: "data[].schema_id", type: "string | null", description: "The schema this Spec is materialized onto. A different record from the Spec. Null until first published." },
|
|
37842
|
+
{ name: "data[].version", type: "integer | null", description: "Published head version \u2014 the number the Spec editor shows. Null if never published." },
|
|
37843
|
+
{ name: "data[].materialized_version", type: "integer | null", description: "The version whose configuration is live on the schema \u2014 what a run executes. Normally equal to version." },
|
|
37844
|
+
{ name: "data[].materialized_at", type: "string | null", description: "When that version last converged onto the schema (ISO 8601)." },
|
|
37845
|
+
{ name: "data[].field_count", type: "integer", description: "Fields declared by the Spec." },
|
|
37846
|
+
{ name: "data[].node_count", type: "integer", description: "Stages in the rail. Not the number of executable phases \u2014 see Get a Spec." },
|
|
37847
|
+
{ name: "data[].links", type: "object", description: "self, versions, and \u2014 once the Spec has a schema \u2014 schema and rail." }
|
|
37848
|
+
]
|
|
37849
|
+
},
|
|
37850
|
+
{
|
|
37851
|
+
type: "code",
|
|
37852
|
+
title: "Response",
|
|
37853
|
+
code: `{
|
|
37854
|
+
"data": [
|
|
37855
|
+
{
|
|
37856
|
+
"id": "e2144027-39c0-44e8-a196-72be1e360749",
|
|
37857
|
+
"name": "Order Intake V25",
|
|
37858
|
+
"description": null,
|
|
37859
|
+
"schema_id": "2e3ddf8c-b9ab-4934-bb11-a371e9c5d7a8",
|
|
37860
|
+
"version": 3,
|
|
37861
|
+
"materialized_version": 3,
|
|
37862
|
+
"materialized_at": "2026-04-25T14:30:00.000Z",
|
|
37863
|
+
"field_count": 60,
|
|
37864
|
+
"node_count": 7,
|
|
37865
|
+
"created_at": "2026-04-20T09:12:00.000Z",
|
|
37866
|
+
"updated_at": "2026-04-25T14:30:00.000Z",
|
|
37867
|
+
"links": {
|
|
37868
|
+
"self": "/v1/specs/e2144027-39c0-44e8-a196-72be1e360749",
|
|
37869
|
+
"versions": "/v1/specs/e2144027-39c0-44e8-a196-72be1e360749/versions",
|
|
37870
|
+
"schema": "/v1/schemas/2e3ddf8c-b9ab-4934-bb11-a371e9c5d7a8",
|
|
37871
|
+
"rail": "/v1/schemas/2e3ddf8c-b9ab-4934-bb11-a371e9c5d7a8/rail"
|
|
37872
|
+
}
|
|
37873
|
+
}
|
|
37874
|
+
],
|
|
37875
|
+
"pagination": { "total": 6, "limit": 20, "has_more": false, "next_cursor": null }
|
|
37876
|
+
}`
|
|
37877
|
+
},
|
|
37878
|
+
{ type: "paragraph", text: "Specs are read-only over the API. Authoring happens in the Spec editor, which re-converges the live schema on every publish \u2014 an API write would be overwritten by the next one." }
|
|
37879
|
+
],
|
|
37880
|
+
related: [
|
|
37881
|
+
{ label: "Get a Spec", slug: "get-spec" },
|
|
37882
|
+
{ label: "Published Versions", slug: "spec-published-versions" },
|
|
37883
|
+
{ label: "List Schemas", slug: "list-schemas" }
|
|
37884
|
+
],
|
|
37885
|
+
faq: [
|
|
37886
|
+
{
|
|
37887
|
+
question: "Why does my Spec ID return 404 on /v1/schemas/{id}?",
|
|
37888
|
+
answer: "Because a Spec and its schema are two different records. The ID in the `/specs/...` editor URL is the Spec ID; `/v1/schemas/{id}` is keyed on schema IDs. Call `GET /v1/specs/{spec_id}` and use the `schema_id` it returns, or list schemas and match on their `spec_id` field."
|
|
37889
|
+
},
|
|
37890
|
+
{
|
|
37891
|
+
question: "My Spec is published to v3, but the schema reports version 1. Why?",
|
|
37892
|
+
answer: "They are unrelated counters. `version` on a schema is the legacy schema-version counter, which a Spec-authored schema never advances. The Spec's own published version is `version` on this endpoint, `spec_version` on `GET /v1/schemas`, and the full history is at `GET /v1/specs/{id}/versions`."
|
|
37893
|
+
},
|
|
37894
|
+
{
|
|
37895
|
+
question: "What is the difference between version and materialized_version?",
|
|
37896
|
+
answer: "`version` is the published head \u2014 what the editor shows. `materialized_version` is the version whose configuration is currently live on the schema, i.e. what a run executes. They are normally identical; materialized_version lags when a publish was refused by the acknowledgement gate or a stale activation no-opped."
|
|
37897
|
+
}
|
|
37898
|
+
],
|
|
37899
|
+
mentions: ["Spec", "schema", "pipeline rail", "materialization", "published version"]
|
|
37900
|
+
},
|
|
37901
|
+
{
|
|
37902
|
+
slug: "get-spec",
|
|
37903
|
+
parentSlug: "specs",
|
|
37904
|
+
title: "Get a Spec",
|
|
37905
|
+
seoTitle: "Get a Spec's Stages and Live IDs via API \u2014 Talonic Docs",
|
|
37906
|
+
description: "Read a Spec's structure: its stages in authoring order and in compiled execution order, each with the live IDs it points at, plus the Spec-field to schema-field mapping.",
|
|
37907
|
+
content: [
|
|
37908
|
+
{ type: "paragraph", text: "Returns the Spec's identity, version state, and structure. Structure and IDs only \u2014 no rules, gate configuration, prompts, samples, or ground truth." },
|
|
37909
|
+
{ type: "heading", level: 2, id: "get-spec-two-lists", text: "Two stage lists, and they differ on purpose" },
|
|
37910
|
+
{ type: "paragraph", text: 'The response carries the stages twice, because "the stages of a Spec" has two legitimate answers and collapsing them would misrepresent one of the two.' },
|
|
37911
|
+
{
|
|
37912
|
+
type: "list",
|
|
37913
|
+
ordered: false,
|
|
37914
|
+
items: [
|
|
37915
|
+
"`nodes` \u2014 the rail **as authored**, in editing order. Includes stages that do not execute on their own, such as Source and Data Product.",
|
|
37916
|
+
"`phases` \u2014 the **compiled execution plan**, in run order. Source and Data Product produce no phase; a validation checkpoint expands to one phase per member gate. So this list is often a different length from `nodes`."
|
|
37917
|
+
]
|
|
37918
|
+
},
|
|
37919
|
+
{ type: "paragraph", text: "`rail_stage_id` on a phase is the join key back to `nodes[].node_id`. It is also the per-step cost-attribution key, so a phase here lines up with its spend on `GET /v1/usage/pipelines/{id}`." },
|
|
37920
|
+
{ type: "callout", variant: "info", text: "`phases` describes what a **new** run would execute, compiled from the current rail. To see what a specific run actually executed, read its frozen plan with `GET /v1/pipelines/{id}?include=phases` \u2014 same shape, same join key. Comparing the two shows configuration drift since that run." },
|
|
37921
|
+
{
|
|
37922
|
+
type: "endpoint",
|
|
37923
|
+
method: "GET",
|
|
37924
|
+
path: "/v1/specs/{id}",
|
|
37925
|
+
summary: "Get a Spec's structure.",
|
|
37926
|
+
blocks: [
|
|
37927
|
+
{
|
|
37928
|
+
type: "param-table",
|
|
37929
|
+
title: "Path parameters",
|
|
37930
|
+
params: [
|
|
37931
|
+
{ name: "id", type: "string", required: true, description: "Spec UUID \u2014 the ID in the `/specs/{id}` editor URL, not the schema ID." }
|
|
37932
|
+
]
|
|
37933
|
+
}
|
|
37934
|
+
]
|
|
37935
|
+
},
|
|
37936
|
+
{
|
|
37937
|
+
type: "code",
|
|
37938
|
+
language: "bash",
|
|
37939
|
+
title: "Get a Spec",
|
|
37940
|
+
code: `curl -H "Authorization: Bearer $TALONIC_API_KEY" \\
|
|
37941
|
+
"https://api.talonic.com/v1/specs/e2144027-39c0-44e8-a196-72be1e360749"`
|
|
37942
|
+
},
|
|
37943
|
+
{ type: "heading", level: 2, id: "get-spec-response", text: "Response" },
|
|
37944
|
+
{
|
|
37945
|
+
type: "param-table",
|
|
37946
|
+
title: "Structure fields",
|
|
37947
|
+
params: [
|
|
37948
|
+
{ name: "schema", type: "object | null", description: "The materialized schema: id and name. Null before first publish." },
|
|
37949
|
+
{ name: "nodes[].node_id", type: "string | null", description: "Stage ID within the Spec. Null on a legacy rail that keyed stages by position." },
|
|
37950
|
+
{ name: "nodes[].position", type: "integer", description: "0-based index in the rail." },
|
|
37951
|
+
{ name: "nodes[].type", type: "string", description: "source, registry, schema, resolve, valid, assembly, deliver, reconcile, sanitize, triage, switch." },
|
|
37952
|
+
{ name: "nodes[].policy_ids", type: "array | undefined", description: "Data policy IDs \u2014 resolve stages." },
|
|
37953
|
+
{ name: "nodes[].validation_stage_ids", type: "array | undefined", description: "Validation stage IDs \u2014 the gates a checkpoint contains." },
|
|
37954
|
+
{ name: "nodes[].matcher_stage_id", type: "string | undefined", description: "Matcher stage ID \u2014 reconcile stages." },
|
|
37955
|
+
{ name: "nodes[].source_pipeline_id", type: "string | undefined", description: "Upstream run, when the Source stage injects from a pipeline." },
|
|
37956
|
+
{ name: "phases[].number", type: "integer", description: "1-based execution order." },
|
|
37957
|
+
{ name: "phases[].rail_stage_id", type: "string | null", description: "The rail stage this phase compiled from. Join key to nodes[].node_id." },
|
|
37958
|
+
{ name: "phases[].policy_id", type: "string | undefined", description: "Resolution phases." },
|
|
37959
|
+
{ name: "phases[].validation_stage_id", type: "string | undefined", description: "Validation phases \u2014 one per gate." },
|
|
37960
|
+
{ name: "phases[].matcher_stage_id", type: "string | undefined", description: "Matching phases." },
|
|
37961
|
+
{ name: "fields[].field_id", type: "string", description: "The Spec document's immutable field identity." },
|
|
37962
|
+
{ name: "fields[].user_schema_field_id", type: "string", description: "The schema field row that holds the extracted values." }
|
|
37963
|
+
]
|
|
37964
|
+
},
|
|
37965
|
+
{
|
|
37966
|
+
type: "code",
|
|
37967
|
+
title: "Response (abridged)",
|
|
37968
|
+
code: `{
|
|
37969
|
+
"id": "e2144027-39c0-44e8-a196-72be1e360749",
|
|
37970
|
+
"name": "Order Intake V25",
|
|
37971
|
+
"schema_id": "2e3ddf8c-b9ab-4934-bb11-a371e9c5d7a8",
|
|
37972
|
+
"version": 3,
|
|
37973
|
+
"materialized_version": 3,
|
|
37974
|
+
"schema": { "id": "2e3ddf8c-b9ab-4934-bb11-a371e9c5d7a8", "name": "Order Intake V25" },
|
|
37975
|
+
|
|
37976
|
+
"nodes": [
|
|
37977
|
+
{ "node_id": "s-source", "position": 0, "type": "source", "name": "Source" },
|
|
37978
|
+
{ "node_id": "s-schema", "position": 1, "type": "schema", "name": "Extraction",
|
|
37979
|
+
"schema_id": "2e3ddf8c-b9ab-4934-bb11-a371e9c5d7a8" },
|
|
37980
|
+
{ "node_id": "res-1", "position": 2, "type": "resolve", "name": "Resolution",
|
|
37981
|
+
"policy_ids": ["fadfb451-7c2e-4849-a6f1-1f5d20116336"] },
|
|
37982
|
+
{ "node_id": "rec-1", "position": 3, "type": "reconcile", "name": "Matching",
|
|
37983
|
+
"matcher_stage_id": "d055b6f8-b324-4bc2-98ef-048e893ba762" },
|
|
37984
|
+
{ "node_id": "s-deliver", "position": 4, "type": "deliver", "name": "Data Product" }
|
|
37985
|
+
],
|
|
37986
|
+
|
|
37987
|
+
"phases": [
|
|
37988
|
+
{ "number": 1, "phase_id": "phase-1", "type": "extraction", "name": "Extraction",
|
|
37989
|
+
"rail_stage_id": "s-schema" },
|
|
37990
|
+
{ "number": 2, "phase_id": "phase-2", "type": "resolution", "name": "Resolution",
|
|
37991
|
+
"rail_stage_id": "res-1", "policy_id": "fadfb451-7c2e-4849-a6f1-1f5d20116336" },
|
|
37992
|
+
{ "number": 3, "phase_id": "phase-3", "type": "matching", "name": "Matching",
|
|
37993
|
+
"rail_stage_id": "rec-1", "matcher_stage_id": "d055b6f8-b324-4bc2-98ef-048e893ba762" }
|
|
37994
|
+
],
|
|
37995
|
+
|
|
37996
|
+
"fields": [
|
|
37997
|
+
{ "field_id": "c086cb2d-06bf-4c22-9007-c6e455531133",
|
|
37998
|
+
"user_schema_field_id": "a3952c40-9f78-41a3-975f-57c5c79c3fae",
|
|
37999
|
+
"name": "shipper_number", "type": "string" }
|
|
38000
|
+
]
|
|
38001
|
+
}`
|
|
38002
|
+
},
|
|
38003
|
+
{ type: "paragraph", text: "Note that the five rail nodes compiled to three phases: Source and Data Product mark composition, they do not execute as phases of their own." },
|
|
38004
|
+
{ type: "heading", level: 2, id: "get-spec-field-map", text: "The field mapping" },
|
|
38005
|
+
{ type: "paragraph", text: "Every field in a Spec carries a `field_id` that is minted once and never changes, even when the field is renamed. Everything inside the Spec references that ID rather than the name: switch-lane conditions, assembly anchors, gate scopes, ground-truth keys, rule bindings. The values themselves live on a schema field row with its own ID." },
|
|
38006
|
+
{ type: "paragraph", text: "`fields` pairs the two, which is what lets you resolve a Spec-level reference to actual extracted data. That pairing is not available on any other endpoint." },
|
|
38007
|
+
{ type: "heading", level: 2, id: "get-spec-errors", text: "Errors" },
|
|
38008
|
+
{
|
|
38009
|
+
type: "param-table",
|
|
38010
|
+
title: "Error responses",
|
|
38011
|
+
params: [
|
|
38012
|
+
{ name: "400", type: "validation_error", description: "The ID is not a UUID." },
|
|
38013
|
+
{ name: "401", type: "unauthorized", description: "Missing or invalid API key." },
|
|
38014
|
+
{ name: "404", type: "not_found", description: "No Spec with this ID exists for your organization. If you passed a schema ID, use GET /v1/schemas/{id} and read its spec_id." },
|
|
38015
|
+
{ name: "429", type: "rate_limited", description: "Too many requests. Retry after the period indicated in the Retry-After header." }
|
|
38016
|
+
]
|
|
38017
|
+
},
|
|
38018
|
+
{ type: "callout", variant: "info", text: "A Spec that has never been published returns `schema: null` with empty `nodes`, `phases`, and `fields`. That is a valid read, not an error." }
|
|
38019
|
+
],
|
|
38020
|
+
related: [
|
|
38021
|
+
{ label: "List Specs", slug: "list-specs" },
|
|
38022
|
+
{ label: "Published Versions", slug: "spec-published-versions" },
|
|
38023
|
+
{ label: "Get Rail", slug: "get-spec-rail" }
|
|
38024
|
+
],
|
|
38025
|
+
faq: [
|
|
38026
|
+
{
|
|
38027
|
+
question: "Why do nodes and phases have different lengths?",
|
|
38028
|
+
answer: "They describe different things. `nodes` is the rail as authored, including composition markers such as Source and Data Product that produce no phase. `phases` is the compiled execution plan, where a validation checkpoint expands to one phase per member gate. Join them on `rail_stage_id`."
|
|
38029
|
+
},
|
|
38030
|
+
{
|
|
38031
|
+
question: "How do I tell what a specific run actually executed?",
|
|
38032
|
+
answer: "Read `GET /v1/pipelines/{id}?include=phases`. That returns the plan frozen when the run was created, in the same shape and with the same `rail_stage_id` join key, so you can diff it against the Spec's current `phases`."
|
|
38033
|
+
},
|
|
38034
|
+
{
|
|
38035
|
+
question: "How do I attribute cost to a stage?",
|
|
38036
|
+
answer: "`rail_stage_id` is also the per-step cost-attribution key. Match it against the step IDs on `GET /v1/usage/pipelines/{id}`."
|
|
38037
|
+
}
|
|
38038
|
+
],
|
|
38039
|
+
mentions: ["Spec", "pipeline rail", "phase", "field ID", "cost attribution", "One Engine"]
|
|
38040
|
+
},
|
|
38041
|
+
{
|
|
38042
|
+
slug: "spec-published-versions",
|
|
38043
|
+
parentSlug: "specs",
|
|
38044
|
+
title: "Published Versions",
|
|
38045
|
+
seoTitle: "List a Spec's Published Versions via API \u2014 Talonic Docs",
|
|
38046
|
+
description: "List every published version of a Spec, newest first, with its content hash and which one is currently live on the schema.",
|
|
38047
|
+
content: [
|
|
38048
|
+
{ type: "paragraph", text: `Every publish appends an immutable version. This endpoint lists them newest first \u2014 this is where a Spec's "v3" lives.` },
|
|
38049
|
+
{ type: "callout", variant: "warning", text: "Do not confuse this with `GET /v1/schemas/{id}/versions`, which reads the unrelated legacy schema-version counter. A Spec-authored schema never advances that counter, so that endpoint is normally empty for these schemas." },
|
|
38050
|
+
{
|
|
38051
|
+
type: "endpoint",
|
|
38052
|
+
method: "GET",
|
|
38053
|
+
path: "/v1/specs/{id}/versions",
|
|
38054
|
+
summary: "List a Spec's published versions, newest first.",
|
|
38055
|
+
blocks: [
|
|
38056
|
+
{
|
|
38057
|
+
type: "param-table",
|
|
38058
|
+
title: "Path parameters",
|
|
38059
|
+
params: [
|
|
38060
|
+
{ name: "id", type: "string", required: true, description: "Spec UUID." }
|
|
38061
|
+
]
|
|
38062
|
+
}
|
|
38063
|
+
]
|
|
38064
|
+
},
|
|
38065
|
+
{
|
|
38066
|
+
type: "code",
|
|
38067
|
+
language: "bash",
|
|
38068
|
+
title: "List versions",
|
|
38069
|
+
code: `curl -H "Authorization: Bearer $TALONIC_API_KEY" \\
|
|
38070
|
+
"https://api.talonic.com/v1/specs/e2144027-39c0-44e8-a196-72be1e360749/versions"`
|
|
38071
|
+
},
|
|
38072
|
+
{ type: "heading", level: 2, id: "spec-published-versions-response", text: "Response" },
|
|
38073
|
+
{
|
|
38074
|
+
type: "param-table",
|
|
38075
|
+
title: "Response fields",
|
|
38076
|
+
params: [
|
|
38077
|
+
{ name: "data[].version", type: "integer", description: "Version number. Publishes only ever append." },
|
|
38078
|
+
{ name: "data[].content_hash", type: "string", description: "sha256 of the canonical Spec document. Identical hashes are identical Specs." },
|
|
38079
|
+
{ name: "data[].created_at", type: "string", description: "When the version was published (ISO 8601)." },
|
|
38080
|
+
{ name: "data[].is_materialized", type: "boolean", description: "Whether this is the version currently live on the schema." }
|
|
38081
|
+
]
|
|
38082
|
+
},
|
|
38083
|
+
{
|
|
38084
|
+
type: "code",
|
|
38085
|
+
title: "Response",
|
|
38086
|
+
code: `{
|
|
38087
|
+
"data": [
|
|
38088
|
+
{ "version": 3, "content_hash": "9f2c\u2026", "created_at": "2026-04-25T14:30:00.000Z", "is_materialized": true },
|
|
38089
|
+
{ "version": 2, "content_hash": "41ab\u2026", "created_at": "2026-04-22T10:05:00.000Z", "is_materialized": false },
|
|
38090
|
+
{ "version": 1, "content_hash": "c7d0\u2026", "created_at": "2026-04-20T09:12:00.000Z", "is_materialized": false }
|
|
38091
|
+
]
|
|
38092
|
+
}`
|
|
38093
|
+
},
|
|
38094
|
+
{ type: "paragraph", text: "Exactly one version is normally flagged `is_materialized`. If none is, the Spec has been published but never converged onto a schema." }
|
|
38095
|
+
],
|
|
38096
|
+
related: [
|
|
38097
|
+
{ label: "Get a Spec", slug: "get-spec" },
|
|
38098
|
+
{ label: "List Specs", slug: "list-specs" }
|
|
38099
|
+
],
|
|
38100
|
+
faq: [
|
|
38101
|
+
{
|
|
38102
|
+
question: "Why is /v1/schemas/{id}/versions empty for my Spec-authored schema?",
|
|
38103
|
+
answer: "That endpoint reads the legacy schema-version counter, which a Spec-authored schema never advances. Spec versions live here, at `GET /v1/specs/{id}/versions`."
|
|
38104
|
+
},
|
|
38105
|
+
{
|
|
38106
|
+
question: "Can two versions have the same content hash?",
|
|
38107
|
+
answer: "No \u2014 a publish that would produce a document identical to the head is a no-op and appends nothing. Identical hashes across different Specs do mean identical documents."
|
|
38108
|
+
}
|
|
38109
|
+
],
|
|
38110
|
+
mentions: ["Spec version", "content hash", "publish", "materialization"]
|
|
38111
|
+
}
|
|
38112
|
+
];
|
|
38113
|
+
|
|
38114
|
+
// src/content/api/spec-config.ts
|
|
38115
|
+
var sections69 = [
|
|
37795
38116
|
{
|
|
37796
38117
|
slug: "get-spec-rail",
|
|
37797
38118
|
parentSlug: "spec-config",
|
|
@@ -38803,7 +39124,7 @@ var sections68 = [
|
|
|
38803
39124
|
];
|
|
38804
39125
|
|
|
38805
39126
|
// src/content/api/reconciliation.ts
|
|
38806
|
-
var
|
|
39127
|
+
var sections70 = [
|
|
38807
39128
|
{
|
|
38808
39129
|
slug: "analyze-reconciliation",
|
|
38809
39130
|
parentSlug: "reconciliation",
|
|
@@ -39394,7 +39715,7 @@ var sections69 = [
|
|
|
39394
39715
|
];
|
|
39395
39716
|
|
|
39396
39717
|
// src/content/api/matching-packages.ts
|
|
39397
|
-
var
|
|
39718
|
+
var sections71 = [
|
|
39398
39719
|
{
|
|
39399
39720
|
slug: "create-matching-package-config",
|
|
39400
39721
|
parentSlug: "matching-packages",
|
|
@@ -40073,7 +40394,7 @@ var sections70 = [
|
|
|
40073
40394
|
];
|
|
40074
40395
|
|
|
40075
40396
|
// src/content/api/ai-policies.ts
|
|
40076
|
-
var
|
|
40397
|
+
var sections72 = [
|
|
40077
40398
|
{
|
|
40078
40399
|
slug: "ai-policy-overview",
|
|
40079
40400
|
parentSlug: "ai",
|
|
@@ -40927,7 +41248,7 @@ talonic --help` }
|
|
|
40927
41248
|
];
|
|
40928
41249
|
|
|
40929
41250
|
// src/content/sdk/index.ts
|
|
40930
|
-
var
|
|
41251
|
+
var sections73 = sections_default;
|
|
40931
41252
|
|
|
40932
41253
|
// src/content/mcp/sections.json
|
|
40933
41254
|
var sections_default2 = [
|
|
@@ -43422,7 +43743,7 @@ var sections_default2 = [
|
|
|
43422
43743
|
];
|
|
43423
43744
|
|
|
43424
43745
|
// src/content/mcp/index.ts
|
|
43425
|
-
var
|
|
43746
|
+
var sections74 = sections_default2;
|
|
43426
43747
|
|
|
43427
43748
|
// src/content/index.ts
|
|
43428
43749
|
var ALL_PLATFORM_RAW = [
|
|
@@ -43498,10 +43819,11 @@ var ALL_API_RAW = [
|
|
|
43498
43819
|
...sections69,
|
|
43499
43820
|
...sections70,
|
|
43500
43821
|
...sections71,
|
|
43822
|
+
...sections72,
|
|
43501
43823
|
...sections57
|
|
43502
43824
|
];
|
|
43503
|
-
var ALL_SDK_RAW = [...
|
|
43504
|
-
var ALL_MCP_RAW = [...
|
|
43825
|
+
var ALL_SDK_RAW = [...sections73];
|
|
43826
|
+
var ALL_MCP_RAW = [...sections74];
|
|
43505
43827
|
function enrich(raw, navSections, domain) {
|
|
43506
43828
|
return raw.map((r) => {
|
|
43507
43829
|
const { prev, next } = derivePrevNext(navSections, r.slug);
|