@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
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Tailwind CSS preset for @talonic/docs consumers.
|
|
3
|
+
* Adds the Void design system color tokens and font families
|
|
4
|
+
* so doc components render correctly in any host app.
|
|
5
|
+
*/
|
|
6
|
+
declare const voidDocsPreset: {
|
|
7
|
+
darkMode: "class";
|
|
8
|
+
theme: {
|
|
9
|
+
extend: {
|
|
10
|
+
colors: {
|
|
11
|
+
'void-bg': string;
|
|
12
|
+
'void-bg-elevated': string;
|
|
13
|
+
'void-surface': string;
|
|
14
|
+
'void-surface-2': string;
|
|
15
|
+
'void-surface-3': string;
|
|
16
|
+
'void-border': string;
|
|
17
|
+
'void-border-hover': string;
|
|
18
|
+
'void-text-primary': string;
|
|
19
|
+
'void-text-secondary': string;
|
|
20
|
+
'void-text-muted': string;
|
|
21
|
+
'void-text-tertiary': string;
|
|
22
|
+
'void-accent': string;
|
|
23
|
+
'void-accent-hover': string;
|
|
24
|
+
'void-accent-dim': string;
|
|
25
|
+
'void-accent-tint': string;
|
|
26
|
+
'void-danger': string;
|
|
27
|
+
'void-danger-solid': string;
|
|
28
|
+
'void-divider': string;
|
|
29
|
+
'void-warning': string;
|
|
30
|
+
'void-warning-dim': string;
|
|
31
|
+
'void-tier-1': string;
|
|
32
|
+
'void-tier-2': string;
|
|
33
|
+
'void-tier-3': string;
|
|
34
|
+
};
|
|
35
|
+
fontFamily: {
|
|
36
|
+
space: string[];
|
|
37
|
+
body: string[];
|
|
38
|
+
mono: string[];
|
|
39
|
+
};
|
|
40
|
+
};
|
|
41
|
+
};
|
|
42
|
+
plugins: never[];
|
|
43
|
+
};
|
|
44
|
+
|
|
45
|
+
export { voidDocsPreset as default };
|
package/openapi.json
CHANGED
|
@@ -49,6 +49,10 @@
|
|
|
49
49
|
"name": "Schemas",
|
|
50
50
|
"description": "Create and manage reusable extraction schemas, schema graph classes, output dialects, and the field registry."
|
|
51
51
|
},
|
|
52
|
+
{
|
|
53
|
+
"name": "Specs",
|
|
54
|
+
"description": "Read the authoring documents behind `/specs/{id}`: identity, published versions, the ordered stages with their live per-stage ids, and the Spec-field to schema-field correspondence. A Spec and the schema it runs on are two records with two ids — `schema_id` here and `spec_id` on `/v1/schemas` bridge them. Read-only; authoring happens in the Spec editor.\n"
|
|
55
|
+
},
|
|
52
56
|
{
|
|
53
57
|
"name": "Jobs & Batches",
|
|
54
58
|
"description": "Track async processing jobs, poll for completion, retrieve result grids, and manage batch inference runs at 50% cost."
|
|
@@ -15616,6 +15620,154 @@
|
|
|
15616
15620
|
}
|
|
15617
15621
|
}
|
|
15618
15622
|
},
|
|
15623
|
+
"/v1/specs": {
|
|
15624
|
+
"get": {
|
|
15625
|
+
"tags": [
|
|
15626
|
+
"Specs"
|
|
15627
|
+
],
|
|
15628
|
+
"summary": "List Specs",
|
|
15629
|
+
"description": "Every Spec in the workspace. A Spec is the authoring document behind\n`/specs/{id}` in the app; running it materializes onto a schema, and\n`schema_id` on each row is that schema — a **different** id from the\nSpec's own. Pair with `spec_id` on `GET /v1/schemas` to cross in the\nother direction.\n",
|
|
15630
|
+
"operationId": "listSpecs",
|
|
15631
|
+
"parameters": [
|
|
15632
|
+
{
|
|
15633
|
+
"$ref": "#/components/parameters/Limit"
|
|
15634
|
+
},
|
|
15635
|
+
{
|
|
15636
|
+
"$ref": "#/components/parameters/Cursor"
|
|
15637
|
+
},
|
|
15638
|
+
{
|
|
15639
|
+
"$ref": "#/components/parameters/Order"
|
|
15640
|
+
},
|
|
15641
|
+
{
|
|
15642
|
+
"name": "search",
|
|
15643
|
+
"in": "query",
|
|
15644
|
+
"schema": {
|
|
15645
|
+
"type": "string"
|
|
15646
|
+
},
|
|
15647
|
+
"description": "Case-insensitive name search."
|
|
15648
|
+
}
|
|
15649
|
+
],
|
|
15650
|
+
"responses": {
|
|
15651
|
+
"200": {
|
|
15652
|
+
"description": "Paginated list of Specs.",
|
|
15653
|
+
"content": {
|
|
15654
|
+
"application/json": {
|
|
15655
|
+
"schema": {
|
|
15656
|
+
"allOf": [
|
|
15657
|
+
{
|
|
15658
|
+
"$ref": "#/components/schemas/PaginatedResponse"
|
|
15659
|
+
},
|
|
15660
|
+
{
|
|
15661
|
+
"type": "object",
|
|
15662
|
+
"properties": {
|
|
15663
|
+
"data": {
|
|
15664
|
+
"type": "array",
|
|
15665
|
+
"items": {
|
|
15666
|
+
"$ref": "#/components/schemas/SpecSummary"
|
|
15667
|
+
}
|
|
15668
|
+
}
|
|
15669
|
+
}
|
|
15670
|
+
}
|
|
15671
|
+
]
|
|
15672
|
+
}
|
|
15673
|
+
}
|
|
15674
|
+
}
|
|
15675
|
+
},
|
|
15676
|
+
"401": {
|
|
15677
|
+
"$ref": "#/components/responses/Unauthorized"
|
|
15678
|
+
},
|
|
15679
|
+
"429": {
|
|
15680
|
+
"$ref": "#/components/responses/RateLimitExceeded"
|
|
15681
|
+
}
|
|
15682
|
+
}
|
|
15683
|
+
}
|
|
15684
|
+
},
|
|
15685
|
+
"/v1/specs/{id}": {
|
|
15686
|
+
"get": {
|
|
15687
|
+
"tags": [
|
|
15688
|
+
"Specs"
|
|
15689
|
+
],
|
|
15690
|
+
"summary": "Get a Spec's structure",
|
|
15691
|
+
"description": "Spec identity, version state, and its stages with their live ids.\n\n**Two stage lists, and they differ on purpose.**\n\n- `nodes` — the rail **as authored**, in editing order. Includes\n non-executing stages such as Source and Data Product.\n- `phases` — the **compiled execution plan**, in run order. Source and\n Data Product produce no phase; a validation checkpoint expands to one\n phase per member gate. So the two lists rarely have the same length.\n\n`rail_stage_id` on a phase is the join key back to `nodes[].node_id`. It\nis also the per-step cost-attribution key, so a phase here lines up with\nits spend on `GET /v1/usage/pipelines/{id}`.\n\n`phases` describes what a **new** run would execute, compiled from the\ncurrent rail. To see what a specific run actually executed, read its\nfrozen plan via `GET /v1/pipelines/{id}?include=phases` — same shape,\nsame join key.\n\nStructure and ids only: no rules, gate configuration, prompts, samples,\nor ground truth. Editing stays in the Spec editor.\n",
|
|
15692
|
+
"operationId": "getSpec",
|
|
15693
|
+
"parameters": [
|
|
15694
|
+
{
|
|
15695
|
+
"name": "id",
|
|
15696
|
+
"in": "path",
|
|
15697
|
+
"required": true,
|
|
15698
|
+
"schema": {
|
|
15699
|
+
"type": "string",
|
|
15700
|
+
"format": "uuid"
|
|
15701
|
+
}
|
|
15702
|
+
}
|
|
15703
|
+
],
|
|
15704
|
+
"responses": {
|
|
15705
|
+
"200": {
|
|
15706
|
+
"description": "Spec structure.",
|
|
15707
|
+
"content": {
|
|
15708
|
+
"application/json": {
|
|
15709
|
+
"schema": {
|
|
15710
|
+
"$ref": "#/components/schemas/SpecDetail"
|
|
15711
|
+
}
|
|
15712
|
+
}
|
|
15713
|
+
}
|
|
15714
|
+
},
|
|
15715
|
+
"401": {
|
|
15716
|
+
"$ref": "#/components/responses/Unauthorized"
|
|
15717
|
+
},
|
|
15718
|
+
"404": {
|
|
15719
|
+
"description": "Spec not found"
|
|
15720
|
+
}
|
|
15721
|
+
}
|
|
15722
|
+
}
|
|
15723
|
+
},
|
|
15724
|
+
"/v1/specs/{id}/versions": {
|
|
15725
|
+
"get": {
|
|
15726
|
+
"tags": [
|
|
15727
|
+
"Specs"
|
|
15728
|
+
],
|
|
15729
|
+
"summary": "List a Spec's published versions",
|
|
15730
|
+
"description": "The Spec's published versions, newest first — this is where a Spec's\n\"v3\" lives.\n\nNot to be confused with `GET /v1/schemas/{id}/versions`, which reads the\nunrelated legacy schema-version counter. A Spec-authored schema never\nadvances that one, so it is normally empty for these schemas.\n",
|
|
15731
|
+
"operationId": "listSpecVersions",
|
|
15732
|
+
"parameters": [
|
|
15733
|
+
{
|
|
15734
|
+
"name": "id",
|
|
15735
|
+
"in": "path",
|
|
15736
|
+
"required": true,
|
|
15737
|
+
"schema": {
|
|
15738
|
+
"type": "string",
|
|
15739
|
+
"format": "uuid"
|
|
15740
|
+
}
|
|
15741
|
+
}
|
|
15742
|
+
],
|
|
15743
|
+
"responses": {
|
|
15744
|
+
"200": {
|
|
15745
|
+
"description": "Published versions, newest first.",
|
|
15746
|
+
"content": {
|
|
15747
|
+
"application/json": {
|
|
15748
|
+
"schema": {
|
|
15749
|
+
"type": "object",
|
|
15750
|
+
"properties": {
|
|
15751
|
+
"data": {
|
|
15752
|
+
"type": "array",
|
|
15753
|
+
"items": {
|
|
15754
|
+
"$ref": "#/components/schemas/SpecVersion"
|
|
15755
|
+
}
|
|
15756
|
+
}
|
|
15757
|
+
}
|
|
15758
|
+
}
|
|
15759
|
+
}
|
|
15760
|
+
}
|
|
15761
|
+
},
|
|
15762
|
+
"401": {
|
|
15763
|
+
"$ref": "#/components/responses/Unauthorized"
|
|
15764
|
+
},
|
|
15765
|
+
"404": {
|
|
15766
|
+
"description": "Spec not found"
|
|
15767
|
+
}
|
|
15768
|
+
}
|
|
15769
|
+
}
|
|
15770
|
+
},
|
|
15619
15771
|
"/v1/schemas/{id}/rail": {
|
|
15620
15772
|
"get": {
|
|
15621
15773
|
"tags": [
|
|
@@ -18908,6 +19060,7 @@
|
|
|
18908
19060
|
"Pipelines"
|
|
18909
19061
|
],
|
|
18910
19062
|
"summary": "Get a pipeline run",
|
|
19063
|
+
"description": "Run detail. `?include=phases` adds the run's FROZEN phase plan — the\nconfiguration compiled when the run was created, i.e. what this run\nactually executed. That can differ from what the Spec compiles to today\n(a rail edit, a republish, a new policy version), so comparing it with\n`phases` on `GET /v1/specs/{id}` shows the drift. Same shape and the same\n`rail_stage_id` join key.\n",
|
|
18911
19064
|
"operationId": "getPipeline",
|
|
18912
19065
|
"security": [
|
|
18913
19066
|
{
|
|
@@ -18923,11 +19076,68 @@
|
|
|
18923
19076
|
"type": "string",
|
|
18924
19077
|
"format": "uuid"
|
|
18925
19078
|
}
|
|
19079
|
+
},
|
|
19080
|
+
{
|
|
19081
|
+
"name": "include",
|
|
19082
|
+
"in": "query",
|
|
19083
|
+
"required": false,
|
|
19084
|
+
"schema": {
|
|
19085
|
+
"type": "string",
|
|
19086
|
+
"enum": [
|
|
19087
|
+
"phases"
|
|
19088
|
+
]
|
|
19089
|
+
},
|
|
19090
|
+
"description": "Comma-separated extras. `phases` adds the run's frozen phase plan."
|
|
18926
19091
|
}
|
|
18927
19092
|
],
|
|
18928
19093
|
"responses": {
|
|
18929
19094
|
"200": {
|
|
18930
|
-
"description": "Run detail: id, name, status, schema, phase_count, links."
|
|
19095
|
+
"description": "Run detail: id, name, status, schema, phase_count, links (+ phases when requested).",
|
|
19096
|
+
"content": {
|
|
19097
|
+
"application/json": {
|
|
19098
|
+
"schema": {
|
|
19099
|
+
"type": "object",
|
|
19100
|
+
"properties": {
|
|
19101
|
+
"id": {
|
|
19102
|
+
"type": "string",
|
|
19103
|
+
"format": "uuid"
|
|
19104
|
+
},
|
|
19105
|
+
"name": {
|
|
19106
|
+
"type": "string"
|
|
19107
|
+
},
|
|
19108
|
+
"status": {
|
|
19109
|
+
"type": "string"
|
|
19110
|
+
},
|
|
19111
|
+
"schema": {
|
|
19112
|
+
"type": "object",
|
|
19113
|
+
"properties": {
|
|
19114
|
+
"id": {
|
|
19115
|
+
"type": "string",
|
|
19116
|
+
"format": "uuid"
|
|
19117
|
+
}
|
|
19118
|
+
}
|
|
19119
|
+
},
|
|
19120
|
+
"phase_count": {
|
|
19121
|
+
"type": "integer"
|
|
19122
|
+
},
|
|
19123
|
+
"phases": {
|
|
19124
|
+
"type": "array",
|
|
19125
|
+
"description": "Present only with `?include=phases`. The run's frozen plan.",
|
|
19126
|
+
"items": {
|
|
19127
|
+
"$ref": "#/components/schemas/SpecPhase"
|
|
19128
|
+
}
|
|
19129
|
+
},
|
|
19130
|
+
"created_at": {
|
|
19131
|
+
"type": "string",
|
|
19132
|
+
"format": "date-time"
|
|
19133
|
+
},
|
|
19134
|
+
"links": {
|
|
19135
|
+
"type": "object"
|
|
19136
|
+
}
|
|
19137
|
+
}
|
|
19138
|
+
}
|
|
19139
|
+
}
|
|
19140
|
+
}
|
|
18931
19141
|
},
|
|
18932
19142
|
"404": {
|
|
18933
19143
|
"description": "Pipeline not found"
|
|
@@ -23329,6 +23539,36 @@
|
|
|
23329
23539
|
"format": "uuid",
|
|
23330
23540
|
"example": "a1b2c3d4-e5f6-7890-abcd-ef1234567890"
|
|
23331
23541
|
},
|
|
23542
|
+
"short_id": {
|
|
23543
|
+
"type": "string",
|
|
23544
|
+
"description": "Short form of `id` (`SCH-` + the first 8 hex characters, uppercased). Accepted wherever `{id}` is.",
|
|
23545
|
+
"example": "SCH-A1B2C3D4"
|
|
23546
|
+
},
|
|
23547
|
+
"spec_id": {
|
|
23548
|
+
"type": [
|
|
23549
|
+
"string",
|
|
23550
|
+
"null"
|
|
23551
|
+
],
|
|
23552
|
+
"format": "uuid",
|
|
23553
|
+
"description": "The Spec that authors this schema, or `null` when the schema was created\ndirectly (via `POST /v1/schemas` or the legacy editor). This is the id in\nthe Spec editor URL (`/specs/{spec_id}`) and is a DIFFERENT id from the\nschema `id` above — a Spec is materialized onto a schema, it is not the\nsame record. Use this to cross between the two.\n",
|
|
23554
|
+
"example": "e2144027-39c0-44e8-a196-72be1e360749"
|
|
23555
|
+
},
|
|
23556
|
+
"spec_version": {
|
|
23557
|
+
"type": [
|
|
23558
|
+
"integer",
|
|
23559
|
+
"null"
|
|
23560
|
+
],
|
|
23561
|
+
"description": "The Spec's published head version — the number shown in the Spec editor.\n`null` when `spec_id` is `null`, or when the Spec has never been published.\nNot the same counter as `version` below.\n",
|
|
23562
|
+
"example": 3
|
|
23563
|
+
},
|
|
23564
|
+
"spec_materialized_version": {
|
|
23565
|
+
"type": [
|
|
23566
|
+
"integer",
|
|
23567
|
+
"null"
|
|
23568
|
+
],
|
|
23569
|
+
"description": "The Spec version whose configuration is live on this schema — what a run of\nit actually executes. Normally equal to `spec_version`; it lags when a\npublish was refused by the acknowledgement gate or a stale activation\nno-opped. `null` when `spec_id` is `null`.\n",
|
|
23570
|
+
"example": 3
|
|
23571
|
+
},
|
|
23332
23572
|
"name": {
|
|
23333
23573
|
"type": "string",
|
|
23334
23574
|
"example": "Invoice Schema"
|
|
@@ -23396,6 +23636,7 @@
|
|
|
23396
23636
|
},
|
|
23397
23637
|
"version": {
|
|
23398
23638
|
"type": "integer",
|
|
23639
|
+
"description": "Legacy schema-version counter, advanced by the version endpoints\n(`/v1/schemas/{id}/versions`). A Spec-authored schema never advances it —\nread `spec_version` for those.\n",
|
|
23399
23640
|
"example": 1
|
|
23400
23641
|
},
|
|
23401
23642
|
"created_at": {
|
|
@@ -23425,6 +23666,337 @@
|
|
|
23425
23666
|
}
|
|
23426
23667
|
}
|
|
23427
23668
|
},
|
|
23669
|
+
"SpecSummary": {
|
|
23670
|
+
"type": "object",
|
|
23671
|
+
"required": [
|
|
23672
|
+
"id",
|
|
23673
|
+
"name"
|
|
23674
|
+
],
|
|
23675
|
+
"properties": {
|
|
23676
|
+
"id": {
|
|
23677
|
+
"type": "string",
|
|
23678
|
+
"format": "uuid",
|
|
23679
|
+
"description": "The Spec id — the one in the `/specs/{id}` editor URL.",
|
|
23680
|
+
"example": "e2144027-39c0-44e8-a196-72be1e360749"
|
|
23681
|
+
},
|
|
23682
|
+
"name": {
|
|
23683
|
+
"type": "string",
|
|
23684
|
+
"example": "Bridgeway V25"
|
|
23685
|
+
},
|
|
23686
|
+
"description": {
|
|
23687
|
+
"type": [
|
|
23688
|
+
"string",
|
|
23689
|
+
"null"
|
|
23690
|
+
]
|
|
23691
|
+
},
|
|
23692
|
+
"schema_id": {
|
|
23693
|
+
"type": [
|
|
23694
|
+
"string",
|
|
23695
|
+
"null"
|
|
23696
|
+
],
|
|
23697
|
+
"format": "uuid",
|
|
23698
|
+
"description": "The schema this Spec is materialized onto — a DIFFERENT record from the\nSpec. `null` until the Spec is first published. Use it against\n`/v1/schemas/{schema_id}` and its sub-resources.\n",
|
|
23699
|
+
"example": "2e3ddf8c-b9ab-4934-bb11-a371e9c5d7a8"
|
|
23700
|
+
},
|
|
23701
|
+
"version": {
|
|
23702
|
+
"type": [
|
|
23703
|
+
"integer",
|
|
23704
|
+
"null"
|
|
23705
|
+
],
|
|
23706
|
+
"description": "Published head version — what the editor shows. `null` if never published.",
|
|
23707
|
+
"example": 3
|
|
23708
|
+
},
|
|
23709
|
+
"materialized_version": {
|
|
23710
|
+
"type": [
|
|
23711
|
+
"integer",
|
|
23712
|
+
"null"
|
|
23713
|
+
],
|
|
23714
|
+
"description": "The version whose configuration is live on the schema — what a run\nexecutes. Normally equal to `version`; it lags when a publish was\nrefused by the acknowledgement gate or a stale activation no-opped.\n",
|
|
23715
|
+
"example": 3
|
|
23716
|
+
},
|
|
23717
|
+
"materialized_at": {
|
|
23718
|
+
"type": [
|
|
23719
|
+
"string",
|
|
23720
|
+
"null"
|
|
23721
|
+
],
|
|
23722
|
+
"format": "date-time"
|
|
23723
|
+
},
|
|
23724
|
+
"field_count": {
|
|
23725
|
+
"type": "integer",
|
|
23726
|
+
"description": "Fields declared by the Spec.",
|
|
23727
|
+
"example": 60
|
|
23728
|
+
},
|
|
23729
|
+
"node_count": {
|
|
23730
|
+
"type": "integer",
|
|
23731
|
+
"description": "Stages in the rail — the `nodes` count on the detail route. NOT the\nnumber of executable phases: a Source or Data Product marker compiles\nto no phase and a validation checkpoint expands to one per gate, so\nread `phases` on `GET /v1/specs/{id}` for the executable plan.\n",
|
|
23732
|
+
"example": 7
|
|
23733
|
+
},
|
|
23734
|
+
"created_at": {
|
|
23735
|
+
"type": "string",
|
|
23736
|
+
"format": "date-time"
|
|
23737
|
+
},
|
|
23738
|
+
"updated_at": {
|
|
23739
|
+
"type": "string",
|
|
23740
|
+
"format": "date-time"
|
|
23741
|
+
},
|
|
23742
|
+
"links": {
|
|
23743
|
+
"type": "object",
|
|
23744
|
+
"properties": {
|
|
23745
|
+
"self": {
|
|
23746
|
+
"type": "string"
|
|
23747
|
+
},
|
|
23748
|
+
"versions": {
|
|
23749
|
+
"type": "string"
|
|
23750
|
+
},
|
|
23751
|
+
"schema": {
|
|
23752
|
+
"type": "string",
|
|
23753
|
+
"description": "Present only once the Spec has a schema."
|
|
23754
|
+
},
|
|
23755
|
+
"rail": {
|
|
23756
|
+
"type": "string",
|
|
23757
|
+
"description": "Present only once the Spec has a schema."
|
|
23758
|
+
},
|
|
23759
|
+
"dashboard": {
|
|
23760
|
+
"type": "string",
|
|
23761
|
+
"format": "uri"
|
|
23762
|
+
}
|
|
23763
|
+
}
|
|
23764
|
+
}
|
|
23765
|
+
}
|
|
23766
|
+
},
|
|
23767
|
+
"SpecDetail": {
|
|
23768
|
+
"allOf": [
|
|
23769
|
+
{
|
|
23770
|
+
"$ref": "#/components/schemas/SpecSummary"
|
|
23771
|
+
},
|
|
23772
|
+
{
|
|
23773
|
+
"type": "object",
|
|
23774
|
+
"properties": {
|
|
23775
|
+
"schema": {
|
|
23776
|
+
"type": [
|
|
23777
|
+
"object",
|
|
23778
|
+
"null"
|
|
23779
|
+
],
|
|
23780
|
+
"properties": {
|
|
23781
|
+
"id": {
|
|
23782
|
+
"type": "string",
|
|
23783
|
+
"format": "uuid"
|
|
23784
|
+
},
|
|
23785
|
+
"name": {
|
|
23786
|
+
"type": "string"
|
|
23787
|
+
}
|
|
23788
|
+
}
|
|
23789
|
+
},
|
|
23790
|
+
"nodes": {
|
|
23791
|
+
"type": "array",
|
|
23792
|
+
"description": "The rail as authored, in editing order.",
|
|
23793
|
+
"items": {
|
|
23794
|
+
"$ref": "#/components/schemas/SpecNode"
|
|
23795
|
+
}
|
|
23796
|
+
},
|
|
23797
|
+
"phases": {
|
|
23798
|
+
"type": "array",
|
|
23799
|
+
"description": "The compiled execution plan, in run order — what a NEW run would\nexecute. Shorter or longer than `nodes`: Source and Data Product\nproduce no phase, a checkpoint expands to one phase per gate.\n",
|
|
23800
|
+
"items": {
|
|
23801
|
+
"$ref": "#/components/schemas/SpecPhase"
|
|
23802
|
+
}
|
|
23803
|
+
},
|
|
23804
|
+
"fields": {
|
|
23805
|
+
"type": "array",
|
|
23806
|
+
"description": "Spec-field ↔ schema-field correspondence.",
|
|
23807
|
+
"items": {
|
|
23808
|
+
"$ref": "#/components/schemas/SpecFieldMapping"
|
|
23809
|
+
}
|
|
23810
|
+
}
|
|
23811
|
+
}
|
|
23812
|
+
}
|
|
23813
|
+
]
|
|
23814
|
+
},
|
|
23815
|
+
"SpecNode": {
|
|
23816
|
+
"type": "object",
|
|
23817
|
+
"description": "One rail stage. Carries identity and the live ids the stage points at;\nauthoring configuration (lane predicates, assembly grouping, gate target\nphases) is not included.\n",
|
|
23818
|
+
"properties": {
|
|
23819
|
+
"node_id": {
|
|
23820
|
+
"type": [
|
|
23821
|
+
"string",
|
|
23822
|
+
"null"
|
|
23823
|
+
],
|
|
23824
|
+
"description": "Stage id within the Spec. `null` on a legacy rail that keyed stages by position.",
|
|
23825
|
+
"example": "s-schema"
|
|
23826
|
+
},
|
|
23827
|
+
"position": {
|
|
23828
|
+
"type": "integer",
|
|
23829
|
+
"description": "0-based index in the rail.",
|
|
23830
|
+
"example": 1
|
|
23831
|
+
},
|
|
23832
|
+
"type": {
|
|
23833
|
+
"type": "string",
|
|
23834
|
+
"enum": [
|
|
23835
|
+
"source",
|
|
23836
|
+
"registry",
|
|
23837
|
+
"schema",
|
|
23838
|
+
"resolve",
|
|
23839
|
+
"valid",
|
|
23840
|
+
"assembly",
|
|
23841
|
+
"deliver",
|
|
23842
|
+
"reconcile",
|
|
23843
|
+
"sanitize",
|
|
23844
|
+
"triage",
|
|
23845
|
+
"switch"
|
|
23846
|
+
],
|
|
23847
|
+
"example": "schema"
|
|
23848
|
+
},
|
|
23849
|
+
"name": {
|
|
23850
|
+
"type": [
|
|
23851
|
+
"string",
|
|
23852
|
+
"null"
|
|
23853
|
+
],
|
|
23854
|
+
"example": "Extraction"
|
|
23855
|
+
},
|
|
23856
|
+
"schema_id": {
|
|
23857
|
+
"type": "string",
|
|
23858
|
+
"format": "uuid",
|
|
23859
|
+
"description": "The schema this stage reads/writes."
|
|
23860
|
+
},
|
|
23861
|
+
"policy_ids": {
|
|
23862
|
+
"type": "array",
|
|
23863
|
+
"description": "`data_policies` ids — resolve stages.",
|
|
23864
|
+
"items": {
|
|
23865
|
+
"type": "string",
|
|
23866
|
+
"format": "uuid"
|
|
23867
|
+
}
|
|
23868
|
+
},
|
|
23869
|
+
"validation_stage_ids": {
|
|
23870
|
+
"type": "array",
|
|
23871
|
+
"description": "`validation_stages` ids — the gates a checkpoint contains.",
|
|
23872
|
+
"items": {
|
|
23873
|
+
"type": "string",
|
|
23874
|
+
"format": "uuid"
|
|
23875
|
+
}
|
|
23876
|
+
},
|
|
23877
|
+
"matcher_stage_id": {
|
|
23878
|
+
"type": "string",
|
|
23879
|
+
"format": "uuid",
|
|
23880
|
+
"description": "`matcher_stages` id — reconcile stages."
|
|
23881
|
+
},
|
|
23882
|
+
"source_pipeline_id": {
|
|
23883
|
+
"type": "string",
|
|
23884
|
+
"format": "uuid",
|
|
23885
|
+
"description": "Upstream run, when the Source stage injects from a pipeline."
|
|
23886
|
+
}
|
|
23887
|
+
}
|
|
23888
|
+
},
|
|
23889
|
+
"SpecPhase": {
|
|
23890
|
+
"type": "object",
|
|
23891
|
+
"description": "One compiled phase. The identical shape is returned by\n`GET /v1/pipelines/{id}?include=phases` for a run's frozen plan, so the\ntwo are directly comparable.\n",
|
|
23892
|
+
"properties": {
|
|
23893
|
+
"number": {
|
|
23894
|
+
"type": "integer",
|
|
23895
|
+
"description": "1-based execution order.",
|
|
23896
|
+
"example": 3
|
|
23897
|
+
},
|
|
23898
|
+
"phase_id": {
|
|
23899
|
+
"type": [
|
|
23900
|
+
"string",
|
|
23901
|
+
"null"
|
|
23902
|
+
],
|
|
23903
|
+
"description": "Positional id within the plan.",
|
|
23904
|
+
"example": "phase-3"
|
|
23905
|
+
},
|
|
23906
|
+
"type": {
|
|
23907
|
+
"type": [
|
|
23908
|
+
"string",
|
|
23909
|
+
"null"
|
|
23910
|
+
],
|
|
23911
|
+
"example": "matching"
|
|
23912
|
+
},
|
|
23913
|
+
"name": {
|
|
23914
|
+
"type": [
|
|
23915
|
+
"string",
|
|
23916
|
+
"null"
|
|
23917
|
+
],
|
|
23918
|
+
"example": "Matching"
|
|
23919
|
+
},
|
|
23920
|
+
"rail_stage_id": {
|
|
23921
|
+
"type": [
|
|
23922
|
+
"string",
|
|
23923
|
+
"null"
|
|
23924
|
+
],
|
|
23925
|
+
"description": "The rail stage this phase compiled from — join key to\n`nodes[].node_id`, and the per-step cost-attribution key on\n`/v1/usage/pipelines/{id}`. `null` only for a rail-less extraction.\n",
|
|
23926
|
+
"example": "3a76507f-00ef-4ebd-b8f1-e78a02139634"
|
|
23927
|
+
},
|
|
23928
|
+
"policy_id": {
|
|
23929
|
+
"type": "string",
|
|
23930
|
+
"format": "uuid",
|
|
23931
|
+
"description": "Resolution phases."
|
|
23932
|
+
},
|
|
23933
|
+
"validation_stage_id": {
|
|
23934
|
+
"type": "string",
|
|
23935
|
+
"format": "uuid",
|
|
23936
|
+
"description": "Validation phases — one per gate."
|
|
23937
|
+
},
|
|
23938
|
+
"matcher_stage_id": {
|
|
23939
|
+
"type": "string",
|
|
23940
|
+
"format": "uuid",
|
|
23941
|
+
"description": "Matching phases."
|
|
23942
|
+
},
|
|
23943
|
+
"scope": {
|
|
23944
|
+
"type": "string",
|
|
23945
|
+
"description": "`pipeline` for a post-assembly phase; absent in the per-document loop."
|
|
23946
|
+
}
|
|
23947
|
+
}
|
|
23948
|
+
},
|
|
23949
|
+
"SpecFieldMapping": {
|
|
23950
|
+
"type": "object",
|
|
23951
|
+
"description": "Pairs a Spec field with the schema field that holds its values. `field_id`\nis the Spec document's immutable field identity — what lane conditions,\nassembly anchors, gate scopes and ground-truth keys reference — while\n`user_schema_field_id` is the runtime row. This pairing is available\nnowhere else on the API.\n",
|
|
23952
|
+
"properties": {
|
|
23953
|
+
"field_id": {
|
|
23954
|
+
"type": "string",
|
|
23955
|
+
"format": "uuid",
|
|
23956
|
+
"example": "c086cb2d-06bf-4c22-9007-c6e455531133"
|
|
23957
|
+
},
|
|
23958
|
+
"user_schema_field_id": {
|
|
23959
|
+
"type": "string",
|
|
23960
|
+
"format": "uuid",
|
|
23961
|
+
"example": "a3952c40-9f78-41a3-975f-57c5c79c3fae"
|
|
23962
|
+
},
|
|
23963
|
+
"name": {
|
|
23964
|
+
"type": [
|
|
23965
|
+
"string",
|
|
23966
|
+
"null"
|
|
23967
|
+
],
|
|
23968
|
+
"example": "shipper_number"
|
|
23969
|
+
},
|
|
23970
|
+
"type": {
|
|
23971
|
+
"type": [
|
|
23972
|
+
"string",
|
|
23973
|
+
"null"
|
|
23974
|
+
],
|
|
23975
|
+
"example": "string"
|
|
23976
|
+
}
|
|
23977
|
+
}
|
|
23978
|
+
},
|
|
23979
|
+
"SpecVersion": {
|
|
23980
|
+
"type": "object",
|
|
23981
|
+
"properties": {
|
|
23982
|
+
"version": {
|
|
23983
|
+
"type": "integer",
|
|
23984
|
+
"example": 3
|
|
23985
|
+
},
|
|
23986
|
+
"content_hash": {
|
|
23987
|
+
"type": "string",
|
|
23988
|
+
"description": "sha256 of the canonical Spec document — identical hashes are identical Specs."
|
|
23989
|
+
},
|
|
23990
|
+
"created_at": {
|
|
23991
|
+
"type": "string",
|
|
23992
|
+
"format": "date-time"
|
|
23993
|
+
},
|
|
23994
|
+
"is_materialized": {
|
|
23995
|
+
"type": "boolean",
|
|
23996
|
+
"description": "Whether this is the version currently live on the schema."
|
|
23997
|
+
}
|
|
23998
|
+
}
|
|
23999
|
+
},
|
|
23428
24000
|
"SchemaCreateRequest": {
|
|
23429
24001
|
"type": "object",
|
|
23430
24002
|
"required": [
|