@talonic/docs 0.21.23 → 0.21.25
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 +1111 -21
- package/dist/tailwind-preset.d.cts +45 -0
- package/dist/tailwind-preset.d.ts +45 -0
- package/openapi.json +1136 -51
- package/package.json +1 -1
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."
|
|
@@ -133,6 +137,10 @@
|
|
|
133
137
|
"name": "Agent",
|
|
134
138
|
"description": "Workspace context and tool registry for the embedded AI agent. Read-only."
|
|
135
139
|
},
|
|
140
|
+
{
|
|
141
|
+
"name": "Agent Tasks",
|
|
142
|
+
"description": "Pull worklist for external AI agents at Agent (via MCP) stages. Tasks use leased claims and declared-field result submission."
|
|
143
|
+
},
|
|
136
144
|
{
|
|
137
145
|
"name": "Account",
|
|
138
146
|
"description": "Self-serve account introspection (tier, status, credits, daily limits, today's usage) and programmatic API-key management."
|
|
@@ -15616,6 +15624,154 @@
|
|
|
15616
15624
|
}
|
|
15617
15625
|
}
|
|
15618
15626
|
},
|
|
15627
|
+
"/v1/specs": {
|
|
15628
|
+
"get": {
|
|
15629
|
+
"tags": [
|
|
15630
|
+
"Specs"
|
|
15631
|
+
],
|
|
15632
|
+
"summary": "List Specs",
|
|
15633
|
+
"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",
|
|
15634
|
+
"operationId": "listSpecs",
|
|
15635
|
+
"parameters": [
|
|
15636
|
+
{
|
|
15637
|
+
"$ref": "#/components/parameters/Limit"
|
|
15638
|
+
},
|
|
15639
|
+
{
|
|
15640
|
+
"$ref": "#/components/parameters/Cursor"
|
|
15641
|
+
},
|
|
15642
|
+
{
|
|
15643
|
+
"$ref": "#/components/parameters/Order"
|
|
15644
|
+
},
|
|
15645
|
+
{
|
|
15646
|
+
"name": "search",
|
|
15647
|
+
"in": "query",
|
|
15648
|
+
"schema": {
|
|
15649
|
+
"type": "string"
|
|
15650
|
+
},
|
|
15651
|
+
"description": "Case-insensitive name search."
|
|
15652
|
+
}
|
|
15653
|
+
],
|
|
15654
|
+
"responses": {
|
|
15655
|
+
"200": {
|
|
15656
|
+
"description": "Paginated list of Specs.",
|
|
15657
|
+
"content": {
|
|
15658
|
+
"application/json": {
|
|
15659
|
+
"schema": {
|
|
15660
|
+
"allOf": [
|
|
15661
|
+
{
|
|
15662
|
+
"$ref": "#/components/schemas/PaginatedResponse"
|
|
15663
|
+
},
|
|
15664
|
+
{
|
|
15665
|
+
"type": "object",
|
|
15666
|
+
"properties": {
|
|
15667
|
+
"data": {
|
|
15668
|
+
"type": "array",
|
|
15669
|
+
"items": {
|
|
15670
|
+
"$ref": "#/components/schemas/SpecSummary"
|
|
15671
|
+
}
|
|
15672
|
+
}
|
|
15673
|
+
}
|
|
15674
|
+
}
|
|
15675
|
+
]
|
|
15676
|
+
}
|
|
15677
|
+
}
|
|
15678
|
+
}
|
|
15679
|
+
},
|
|
15680
|
+
"401": {
|
|
15681
|
+
"$ref": "#/components/responses/Unauthorized"
|
|
15682
|
+
},
|
|
15683
|
+
"429": {
|
|
15684
|
+
"$ref": "#/components/responses/RateLimitExceeded"
|
|
15685
|
+
}
|
|
15686
|
+
}
|
|
15687
|
+
}
|
|
15688
|
+
},
|
|
15689
|
+
"/v1/specs/{id}": {
|
|
15690
|
+
"get": {
|
|
15691
|
+
"tags": [
|
|
15692
|
+
"Specs"
|
|
15693
|
+
],
|
|
15694
|
+
"summary": "Get a Spec's structure",
|
|
15695
|
+
"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",
|
|
15696
|
+
"operationId": "getSpec",
|
|
15697
|
+
"parameters": [
|
|
15698
|
+
{
|
|
15699
|
+
"name": "id",
|
|
15700
|
+
"in": "path",
|
|
15701
|
+
"required": true,
|
|
15702
|
+
"schema": {
|
|
15703
|
+
"type": "string",
|
|
15704
|
+
"format": "uuid"
|
|
15705
|
+
}
|
|
15706
|
+
}
|
|
15707
|
+
],
|
|
15708
|
+
"responses": {
|
|
15709
|
+
"200": {
|
|
15710
|
+
"description": "Spec structure.",
|
|
15711
|
+
"content": {
|
|
15712
|
+
"application/json": {
|
|
15713
|
+
"schema": {
|
|
15714
|
+
"$ref": "#/components/schemas/SpecDetail"
|
|
15715
|
+
}
|
|
15716
|
+
}
|
|
15717
|
+
}
|
|
15718
|
+
},
|
|
15719
|
+
"401": {
|
|
15720
|
+
"$ref": "#/components/responses/Unauthorized"
|
|
15721
|
+
},
|
|
15722
|
+
"404": {
|
|
15723
|
+
"description": "Spec not found"
|
|
15724
|
+
}
|
|
15725
|
+
}
|
|
15726
|
+
}
|
|
15727
|
+
},
|
|
15728
|
+
"/v1/specs/{id}/versions": {
|
|
15729
|
+
"get": {
|
|
15730
|
+
"tags": [
|
|
15731
|
+
"Specs"
|
|
15732
|
+
],
|
|
15733
|
+
"summary": "List a Spec's published versions",
|
|
15734
|
+
"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",
|
|
15735
|
+
"operationId": "listSpecVersions",
|
|
15736
|
+
"parameters": [
|
|
15737
|
+
{
|
|
15738
|
+
"name": "id",
|
|
15739
|
+
"in": "path",
|
|
15740
|
+
"required": true,
|
|
15741
|
+
"schema": {
|
|
15742
|
+
"type": "string",
|
|
15743
|
+
"format": "uuid"
|
|
15744
|
+
}
|
|
15745
|
+
}
|
|
15746
|
+
],
|
|
15747
|
+
"responses": {
|
|
15748
|
+
"200": {
|
|
15749
|
+
"description": "Published versions, newest first.",
|
|
15750
|
+
"content": {
|
|
15751
|
+
"application/json": {
|
|
15752
|
+
"schema": {
|
|
15753
|
+
"type": "object",
|
|
15754
|
+
"properties": {
|
|
15755
|
+
"data": {
|
|
15756
|
+
"type": "array",
|
|
15757
|
+
"items": {
|
|
15758
|
+
"$ref": "#/components/schemas/SpecVersion"
|
|
15759
|
+
}
|
|
15760
|
+
}
|
|
15761
|
+
}
|
|
15762
|
+
}
|
|
15763
|
+
}
|
|
15764
|
+
}
|
|
15765
|
+
},
|
|
15766
|
+
"401": {
|
|
15767
|
+
"$ref": "#/components/responses/Unauthorized"
|
|
15768
|
+
},
|
|
15769
|
+
"404": {
|
|
15770
|
+
"description": "Spec not found"
|
|
15771
|
+
}
|
|
15772
|
+
}
|
|
15773
|
+
}
|
|
15774
|
+
},
|
|
15619
15775
|
"/v1/schemas/{id}/rail": {
|
|
15620
15776
|
"get": {
|
|
15621
15777
|
"tags": [
|
|
@@ -18908,6 +19064,7 @@
|
|
|
18908
19064
|
"Pipelines"
|
|
18909
19065
|
],
|
|
18910
19066
|
"summary": "Get a pipeline run",
|
|
19067
|
+
"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
19068
|
"operationId": "getPipeline",
|
|
18912
19069
|
"security": [
|
|
18913
19070
|
{
|
|
@@ -18923,11 +19080,68 @@
|
|
|
18923
19080
|
"type": "string",
|
|
18924
19081
|
"format": "uuid"
|
|
18925
19082
|
}
|
|
19083
|
+
},
|
|
19084
|
+
{
|
|
19085
|
+
"name": "include",
|
|
19086
|
+
"in": "query",
|
|
19087
|
+
"required": false,
|
|
19088
|
+
"schema": {
|
|
19089
|
+
"type": "string",
|
|
19090
|
+
"enum": [
|
|
19091
|
+
"phases"
|
|
19092
|
+
]
|
|
19093
|
+
},
|
|
19094
|
+
"description": "Comma-separated extras. `phases` adds the run's frozen phase plan."
|
|
18926
19095
|
}
|
|
18927
19096
|
],
|
|
18928
19097
|
"responses": {
|
|
18929
19098
|
"200": {
|
|
18930
|
-
"description": "Run detail: id, name, status, schema, phase_count, links."
|
|
19099
|
+
"description": "Run detail: id, name, status, schema, phase_count, links (+ phases when requested).",
|
|
19100
|
+
"content": {
|
|
19101
|
+
"application/json": {
|
|
19102
|
+
"schema": {
|
|
19103
|
+
"type": "object",
|
|
19104
|
+
"properties": {
|
|
19105
|
+
"id": {
|
|
19106
|
+
"type": "string",
|
|
19107
|
+
"format": "uuid"
|
|
19108
|
+
},
|
|
19109
|
+
"name": {
|
|
19110
|
+
"type": "string"
|
|
19111
|
+
},
|
|
19112
|
+
"status": {
|
|
19113
|
+
"type": "string"
|
|
19114
|
+
},
|
|
19115
|
+
"schema": {
|
|
19116
|
+
"type": "object",
|
|
19117
|
+
"properties": {
|
|
19118
|
+
"id": {
|
|
19119
|
+
"type": "string",
|
|
19120
|
+
"format": "uuid"
|
|
19121
|
+
}
|
|
19122
|
+
}
|
|
19123
|
+
},
|
|
19124
|
+
"phase_count": {
|
|
19125
|
+
"type": "integer"
|
|
19126
|
+
},
|
|
19127
|
+
"phases": {
|
|
19128
|
+
"type": "array",
|
|
19129
|
+
"description": "Present only with `?include=phases`. The run's frozen plan.",
|
|
19130
|
+
"items": {
|
|
19131
|
+
"$ref": "#/components/schemas/SpecPhase"
|
|
19132
|
+
}
|
|
19133
|
+
},
|
|
19134
|
+
"created_at": {
|
|
19135
|
+
"type": "string",
|
|
19136
|
+
"format": "date-time"
|
|
19137
|
+
},
|
|
19138
|
+
"links": {
|
|
19139
|
+
"type": "object"
|
|
19140
|
+
}
|
|
19141
|
+
}
|
|
19142
|
+
}
|
|
19143
|
+
}
|
|
19144
|
+
}
|
|
18931
19145
|
},
|
|
18932
19146
|
"404": {
|
|
18933
19147
|
"description": "Pipeline not found"
|
|
@@ -21873,27 +22087,299 @@
|
|
|
21873
22087
|
}
|
|
21874
22088
|
}
|
|
21875
22089
|
}
|
|
21876
|
-
}
|
|
21877
|
-
|
|
21878
|
-
|
|
21879
|
-
|
|
21880
|
-
|
|
21881
|
-
"
|
|
21882
|
-
|
|
21883
|
-
|
|
21884
|
-
"
|
|
21885
|
-
|
|
21886
|
-
|
|
21887
|
-
|
|
21888
|
-
|
|
21889
|
-
|
|
21890
|
-
|
|
22090
|
+
},
|
|
22091
|
+
"/v1/agent-tasks": {
|
|
22092
|
+
"get": {
|
|
22093
|
+
"operationId": "listAgentTasks",
|
|
22094
|
+
"summary": "List Agent (via MCP) tasks visible to this credential",
|
|
22095
|
+
"tags": [
|
|
22096
|
+
"Agent Tasks"
|
|
22097
|
+
],
|
|
22098
|
+
"parameters": [
|
|
22099
|
+
{
|
|
22100
|
+
"name": "status",
|
|
22101
|
+
"in": "query",
|
|
22102
|
+
"schema": {
|
|
22103
|
+
"type": "string",
|
|
22104
|
+
"enum": [
|
|
22105
|
+
"available",
|
|
22106
|
+
"claimed",
|
|
22107
|
+
"submitted",
|
|
22108
|
+
"timed_out",
|
|
22109
|
+
"cancelled"
|
|
22110
|
+
]
|
|
22111
|
+
}
|
|
22112
|
+
},
|
|
22113
|
+
{
|
|
22114
|
+
"name": "limit",
|
|
22115
|
+
"in": "query",
|
|
22116
|
+
"schema": {
|
|
22117
|
+
"type": "integer",
|
|
22118
|
+
"minimum": 1,
|
|
22119
|
+
"maximum": 100,
|
|
22120
|
+
"default": 50
|
|
22121
|
+
}
|
|
22122
|
+
},
|
|
22123
|
+
{
|
|
22124
|
+
"name": "cursor",
|
|
22125
|
+
"in": "query",
|
|
22126
|
+
"schema": {
|
|
22127
|
+
"type": "string"
|
|
22128
|
+
}
|
|
22129
|
+
}
|
|
22130
|
+
],
|
|
22131
|
+
"responses": {
|
|
22132
|
+
"200": {
|
|
22133
|
+
"description": "Cursor-paginated task metadata. Payloads are fetched individually and audited.",
|
|
22134
|
+
"content": {
|
|
22135
|
+
"application/json": {
|
|
22136
|
+
"schema": {
|
|
22137
|
+
"type": "object",
|
|
22138
|
+
"properties": {
|
|
22139
|
+
"data": {
|
|
22140
|
+
"type": "array",
|
|
22141
|
+
"items": {
|
|
22142
|
+
"$ref": "#/components/schemas/AgentTaskMetadata"
|
|
22143
|
+
}
|
|
22144
|
+
},
|
|
22145
|
+
"pagination": {
|
|
22146
|
+
"$ref": "#/components/schemas/CursorPagination"
|
|
22147
|
+
}
|
|
22148
|
+
}
|
|
22149
|
+
}
|
|
22150
|
+
}
|
|
22151
|
+
}
|
|
22152
|
+
},
|
|
22153
|
+
"401": {
|
|
22154
|
+
"$ref": "#/components/responses/Unauthorized"
|
|
22155
|
+
},
|
|
22156
|
+
"429": {
|
|
22157
|
+
"$ref": "#/components/responses/RateLimitExceeded"
|
|
22158
|
+
}
|
|
22159
|
+
}
|
|
21891
22160
|
}
|
|
21892
22161
|
},
|
|
21893
|
-
"
|
|
21894
|
-
"
|
|
21895
|
-
"
|
|
21896
|
-
"
|
|
22162
|
+
"/v1/agent-tasks/{id}": {
|
|
22163
|
+
"get": {
|
|
22164
|
+
"operationId": "getAgentTask",
|
|
22165
|
+
"summary": "Fetch one Agent task payload",
|
|
22166
|
+
"description": "Fetching the immutable snapshot is recorded as an audited data disclosure.",
|
|
22167
|
+
"tags": [
|
|
22168
|
+
"Agent Tasks"
|
|
22169
|
+
],
|
|
22170
|
+
"parameters": [
|
|
22171
|
+
{
|
|
22172
|
+
"name": "id",
|
|
22173
|
+
"in": "path",
|
|
22174
|
+
"required": true,
|
|
22175
|
+
"schema": {
|
|
22176
|
+
"type": "string",
|
|
22177
|
+
"format": "uuid"
|
|
22178
|
+
}
|
|
22179
|
+
}
|
|
22180
|
+
],
|
|
22181
|
+
"responses": {
|
|
22182
|
+
"200": {
|
|
22183
|
+
"description": "Task metadata, immutable input snapshot, and declared output contract.",
|
|
22184
|
+
"content": {
|
|
22185
|
+
"application/json": {
|
|
22186
|
+
"schema": {
|
|
22187
|
+
"$ref": "#/components/schemas/AgentTaskPayload"
|
|
22188
|
+
}
|
|
22189
|
+
}
|
|
22190
|
+
}
|
|
22191
|
+
},
|
|
22192
|
+
"401": {
|
|
22193
|
+
"$ref": "#/components/responses/Unauthorized"
|
|
22194
|
+
},
|
|
22195
|
+
"404": {
|
|
22196
|
+
"$ref": "#/components/responses/NotFound"
|
|
22197
|
+
},
|
|
22198
|
+
"429": {
|
|
22199
|
+
"$ref": "#/components/responses/RateLimitExceeded"
|
|
22200
|
+
}
|
|
22201
|
+
}
|
|
22202
|
+
}
|
|
22203
|
+
},
|
|
22204
|
+
"/v1/agent-tasks/{id}/claim": {
|
|
22205
|
+
"post": {
|
|
22206
|
+
"operationId": "claimAgentTask",
|
|
22207
|
+
"summary": "Claim or reclaim an expired Agent task lease",
|
|
22208
|
+
"tags": [
|
|
22209
|
+
"Agent Tasks"
|
|
22210
|
+
],
|
|
22211
|
+
"parameters": [
|
|
22212
|
+
{
|
|
22213
|
+
"name": "id",
|
|
22214
|
+
"in": "path",
|
|
22215
|
+
"required": true,
|
|
22216
|
+
"schema": {
|
|
22217
|
+
"type": "string",
|
|
22218
|
+
"format": "uuid"
|
|
22219
|
+
}
|
|
22220
|
+
}
|
|
22221
|
+
],
|
|
22222
|
+
"responses": {
|
|
22223
|
+
"200": {
|
|
22224
|
+
"description": "Claimed task payload with a new execution epoch and lease expiry.",
|
|
22225
|
+
"content": {
|
|
22226
|
+
"application/json": {
|
|
22227
|
+
"schema": {
|
|
22228
|
+
"$ref": "#/components/schemas/AgentTaskPayload"
|
|
22229
|
+
}
|
|
22230
|
+
}
|
|
22231
|
+
}
|
|
22232
|
+
},
|
|
22233
|
+
"401": {
|
|
22234
|
+
"$ref": "#/components/responses/Unauthorized"
|
|
22235
|
+
},
|
|
22236
|
+
"404": {
|
|
22237
|
+
"$ref": "#/components/responses/NotFound"
|
|
22238
|
+
},
|
|
22239
|
+
"409": {
|
|
22240
|
+
"$ref": "#/components/responses/Conflict"
|
|
22241
|
+
},
|
|
22242
|
+
"429": {
|
|
22243
|
+
"$ref": "#/components/responses/RateLimitExceeded"
|
|
22244
|
+
}
|
|
22245
|
+
}
|
|
22246
|
+
}
|
|
22247
|
+
},
|
|
22248
|
+
"/v1/agent-tasks/{id}/heartbeat": {
|
|
22249
|
+
"post": {
|
|
22250
|
+
"operationId": "heartbeatAgentTask",
|
|
22251
|
+
"summary": "Extend the current Agent task lease",
|
|
22252
|
+
"tags": [
|
|
22253
|
+
"Agent Tasks"
|
|
22254
|
+
],
|
|
22255
|
+
"parameters": [
|
|
22256
|
+
{
|
|
22257
|
+
"name": "id",
|
|
22258
|
+
"in": "path",
|
|
22259
|
+
"required": true,
|
|
22260
|
+
"schema": {
|
|
22261
|
+
"type": "string",
|
|
22262
|
+
"format": "uuid"
|
|
22263
|
+
}
|
|
22264
|
+
}
|
|
22265
|
+
],
|
|
22266
|
+
"requestBody": {
|
|
22267
|
+
"required": true,
|
|
22268
|
+
"content": {
|
|
22269
|
+
"application/json": {
|
|
22270
|
+
"schema": {
|
|
22271
|
+
"$ref": "#/components/schemas/AgentTaskHeartbeat"
|
|
22272
|
+
}
|
|
22273
|
+
}
|
|
22274
|
+
}
|
|
22275
|
+
},
|
|
22276
|
+
"responses": {
|
|
22277
|
+
"200": {
|
|
22278
|
+
"description": "Updated task metadata.",
|
|
22279
|
+
"content": {
|
|
22280
|
+
"application/json": {
|
|
22281
|
+
"schema": {
|
|
22282
|
+
"$ref": "#/components/schemas/AgentTaskMetadata"
|
|
22283
|
+
}
|
|
22284
|
+
}
|
|
22285
|
+
}
|
|
22286
|
+
},
|
|
22287
|
+
"401": {
|
|
22288
|
+
"$ref": "#/components/responses/Unauthorized"
|
|
22289
|
+
},
|
|
22290
|
+
"404": {
|
|
22291
|
+
"$ref": "#/components/responses/NotFound"
|
|
22292
|
+
},
|
|
22293
|
+
"409": {
|
|
22294
|
+
"$ref": "#/components/responses/Conflict"
|
|
22295
|
+
},
|
|
22296
|
+
"429": {
|
|
22297
|
+
"$ref": "#/components/responses/RateLimitExceeded"
|
|
22298
|
+
}
|
|
22299
|
+
}
|
|
22300
|
+
}
|
|
22301
|
+
},
|
|
22302
|
+
"/v1/agent-tasks/{id}/submit": {
|
|
22303
|
+
"post": {
|
|
22304
|
+
"operationId": "submitAgentTask",
|
|
22305
|
+
"summary": "Submit declared Agent output fields and resume the document",
|
|
22306
|
+
"description": "Undeclared fields, invalid field types, stale epochs, and foreign claims are rejected before any value is written.",
|
|
22307
|
+
"tags": [
|
|
22308
|
+
"Agent Tasks"
|
|
22309
|
+
],
|
|
22310
|
+
"parameters": [
|
|
22311
|
+
{
|
|
22312
|
+
"name": "id",
|
|
22313
|
+
"in": "path",
|
|
22314
|
+
"required": true,
|
|
22315
|
+
"schema": {
|
|
22316
|
+
"type": "string",
|
|
22317
|
+
"format": "uuid"
|
|
22318
|
+
}
|
|
22319
|
+
}
|
|
22320
|
+
],
|
|
22321
|
+
"requestBody": {
|
|
22322
|
+
"required": true,
|
|
22323
|
+
"content": {
|
|
22324
|
+
"application/json": {
|
|
22325
|
+
"schema": {
|
|
22326
|
+
"$ref": "#/components/schemas/AgentTaskSubmit"
|
|
22327
|
+
}
|
|
22328
|
+
}
|
|
22329
|
+
}
|
|
22330
|
+
},
|
|
22331
|
+
"responses": {
|
|
22332
|
+
"200": {
|
|
22333
|
+
"description": "Submitted task metadata.",
|
|
22334
|
+
"content": {
|
|
22335
|
+
"application/json": {
|
|
22336
|
+
"schema": {
|
|
22337
|
+
"$ref": "#/components/schemas/AgentTaskMetadata"
|
|
22338
|
+
}
|
|
22339
|
+
}
|
|
22340
|
+
}
|
|
22341
|
+
},
|
|
22342
|
+
"400": {
|
|
22343
|
+
"$ref": "#/components/responses/BadRequest"
|
|
22344
|
+
},
|
|
22345
|
+
"401": {
|
|
22346
|
+
"$ref": "#/components/responses/Unauthorized"
|
|
22347
|
+
},
|
|
22348
|
+
"404": {
|
|
22349
|
+
"$ref": "#/components/responses/NotFound"
|
|
22350
|
+
},
|
|
22351
|
+
"409": {
|
|
22352
|
+
"$ref": "#/components/responses/Conflict"
|
|
22353
|
+
},
|
|
22354
|
+
"422": {
|
|
22355
|
+
"$ref": "#/components/responses/ValidationError"
|
|
22356
|
+
},
|
|
22357
|
+
"429": {
|
|
22358
|
+
"$ref": "#/components/responses/RateLimitExceeded"
|
|
22359
|
+
}
|
|
22360
|
+
}
|
|
22361
|
+
}
|
|
22362
|
+
}
|
|
22363
|
+
},
|
|
22364
|
+
"components": {
|
|
22365
|
+
"securitySchemes": {
|
|
22366
|
+
"BearerAuth": {
|
|
22367
|
+
"type": "http",
|
|
22368
|
+
"scheme": "bearer",
|
|
22369
|
+
"bearerFormat": "tlnc_*",
|
|
22370
|
+
"description": "API key with `tlnc_` prefix. Pass as `Authorization: Bearer tlnc_live_...`.\n"
|
|
22371
|
+
},
|
|
22372
|
+
"OAuthBearerAuth": {
|
|
22373
|
+
"type": "http",
|
|
22374
|
+
"scheme": "bearer",
|
|
22375
|
+
"bearerFormat": "JWT",
|
|
22376
|
+
"description": "OAuth 2.1 access token (JWT) from the connector OAuth flow. Routes\nthat declare this scheme reject `tlnc_` API keys with `401`.\n"
|
|
22377
|
+
}
|
|
22378
|
+
},
|
|
22379
|
+
"parameters": {
|
|
22380
|
+
"ResourceId": {
|
|
22381
|
+
"name": "id",
|
|
22382
|
+
"in": "path",
|
|
21897
22383
|
"required": true,
|
|
21898
22384
|
"schema": {
|
|
21899
22385
|
"type": "string",
|
|
@@ -22060,6 +22546,16 @@
|
|
|
22060
22546
|
}
|
|
22061
22547
|
}
|
|
22062
22548
|
},
|
|
22549
|
+
"ValidationError": {
|
|
22550
|
+
"description": "The request is well-formed but violates the declared task contract.",
|
|
22551
|
+
"content": {
|
|
22552
|
+
"application/json": {
|
|
22553
|
+
"schema": {
|
|
22554
|
+
"$ref": "#/components/schemas/ErrorResponse"
|
|
22555
|
+
}
|
|
22556
|
+
}
|
|
22557
|
+
}
|
|
22558
|
+
},
|
|
22063
22559
|
"PayloadTooLarge": {
|
|
22064
22560
|
"description": "The uploaded file exceeds the size limit.",
|
|
22065
22561
|
"content": {
|
|
@@ -22194,51 +22690,278 @@
|
|
|
22194
22690
|
}
|
|
22195
22691
|
},
|
|
22196
22692
|
"schemas": {
|
|
22197
|
-
"
|
|
22693
|
+
"CursorPagination": {
|
|
22198
22694
|
"type": "object",
|
|
22199
22695
|
"required": [
|
|
22200
|
-
"
|
|
22201
|
-
"
|
|
22696
|
+
"has_more",
|
|
22697
|
+
"next_cursor"
|
|
22202
22698
|
],
|
|
22203
22699
|
"properties": {
|
|
22204
|
-
"
|
|
22205
|
-
"type": "
|
|
22206
|
-
},
|
|
22207
|
-
"name": {
|
|
22208
|
-
"type": "string"
|
|
22209
|
-
},
|
|
22210
|
-
"category": {
|
|
22211
|
-
"type": "string"
|
|
22212
|
-
},
|
|
22213
|
-
"maps_to": {
|
|
22214
|
-
"type": "string",
|
|
22215
|
-
"description": "A Talonic ontology_type_id the doctype anchors to."
|
|
22216
|
-
},
|
|
22217
|
-
"description": {
|
|
22218
|
-
"type": "string"
|
|
22700
|
+
"has_more": {
|
|
22701
|
+
"type": "boolean"
|
|
22219
22702
|
},
|
|
22220
|
-
"
|
|
22221
|
-
"type":
|
|
22222
|
-
|
|
22223
|
-
"
|
|
22224
|
-
|
|
22703
|
+
"next_cursor": {
|
|
22704
|
+
"type": [
|
|
22705
|
+
"string",
|
|
22706
|
+
"null"
|
|
22707
|
+
]
|
|
22225
22708
|
}
|
|
22226
22709
|
}
|
|
22227
22710
|
},
|
|
22228
|
-
"
|
|
22711
|
+
"AgentTaskMetadata": {
|
|
22229
22712
|
"type": "object",
|
|
22230
22713
|
"required": [
|
|
22231
|
-
"
|
|
22714
|
+
"id",
|
|
22715
|
+
"customer_id",
|
|
22716
|
+
"pipeline_id",
|
|
22717
|
+
"pipeline_document_id",
|
|
22718
|
+
"document_id",
|
|
22719
|
+
"stage_id",
|
|
22720
|
+
"phase_index",
|
|
22721
|
+
"status",
|
|
22722
|
+
"execution_epoch",
|
|
22723
|
+
"timeout_at",
|
|
22724
|
+
"created_at",
|
|
22725
|
+
"updated_at"
|
|
22232
22726
|
],
|
|
22233
22727
|
"properties": {
|
|
22234
|
-
"
|
|
22235
|
-
"type": "string"
|
|
22728
|
+
"id": {
|
|
22729
|
+
"type": "string",
|
|
22730
|
+
"format": "uuid"
|
|
22236
22731
|
},
|
|
22237
|
-
"
|
|
22238
|
-
"type": "string"
|
|
22732
|
+
"customer_id": {
|
|
22733
|
+
"type": "string",
|
|
22734
|
+
"format": "uuid"
|
|
22239
22735
|
},
|
|
22240
|
-
"
|
|
22241
|
-
"type": "string"
|
|
22736
|
+
"pipeline_id": {
|
|
22737
|
+
"type": "string",
|
|
22738
|
+
"format": "uuid"
|
|
22739
|
+
},
|
|
22740
|
+
"pipeline_document_id": {
|
|
22741
|
+
"type": "string",
|
|
22742
|
+
"format": "uuid"
|
|
22743
|
+
},
|
|
22744
|
+
"document_id": {
|
|
22745
|
+
"type": "string",
|
|
22746
|
+
"format": "uuid"
|
|
22747
|
+
},
|
|
22748
|
+
"stage_id": {
|
|
22749
|
+
"type": "string"
|
|
22750
|
+
},
|
|
22751
|
+
"phase_index": {
|
|
22752
|
+
"type": "integer",
|
|
22753
|
+
"minimum": 0
|
|
22754
|
+
},
|
|
22755
|
+
"status": {
|
|
22756
|
+
"type": "string",
|
|
22757
|
+
"enum": [
|
|
22758
|
+
"available",
|
|
22759
|
+
"claimed",
|
|
22760
|
+
"submitted",
|
|
22761
|
+
"timed_out",
|
|
22762
|
+
"cancelled"
|
|
22763
|
+
]
|
|
22764
|
+
},
|
|
22765
|
+
"execution_epoch": {
|
|
22766
|
+
"type": "integer",
|
|
22767
|
+
"minimum": 0
|
|
22768
|
+
},
|
|
22769
|
+
"claimed_at": {
|
|
22770
|
+
"type": [
|
|
22771
|
+
"string",
|
|
22772
|
+
"null"
|
|
22773
|
+
],
|
|
22774
|
+
"format": "date-time"
|
|
22775
|
+
},
|
|
22776
|
+
"lease_expires_at": {
|
|
22777
|
+
"type": [
|
|
22778
|
+
"string",
|
|
22779
|
+
"null"
|
|
22780
|
+
],
|
|
22781
|
+
"format": "date-time"
|
|
22782
|
+
},
|
|
22783
|
+
"timeout_at": {
|
|
22784
|
+
"type": "string",
|
|
22785
|
+
"format": "date-time"
|
|
22786
|
+
},
|
|
22787
|
+
"submitted_at": {
|
|
22788
|
+
"type": [
|
|
22789
|
+
"string",
|
|
22790
|
+
"null"
|
|
22791
|
+
],
|
|
22792
|
+
"format": "date-time"
|
|
22793
|
+
},
|
|
22794
|
+
"created_at": {
|
|
22795
|
+
"type": "string",
|
|
22796
|
+
"format": "date-time"
|
|
22797
|
+
},
|
|
22798
|
+
"updated_at": {
|
|
22799
|
+
"type": "string",
|
|
22800
|
+
"format": "date-time"
|
|
22801
|
+
}
|
|
22802
|
+
}
|
|
22803
|
+
},
|
|
22804
|
+
"AgentTaskPayload": {
|
|
22805
|
+
"allOf": [
|
|
22806
|
+
{
|
|
22807
|
+
"$ref": "#/components/schemas/AgentTaskMetadata"
|
|
22808
|
+
},
|
|
22809
|
+
{
|
|
22810
|
+
"type": "object",
|
|
22811
|
+
"required": [
|
|
22812
|
+
"input_snapshot",
|
|
22813
|
+
"output_contract",
|
|
22814
|
+
"timeout_fallthrough"
|
|
22815
|
+
],
|
|
22816
|
+
"properties": {
|
|
22817
|
+
"input_snapshot": {
|
|
22818
|
+
"type": "object",
|
|
22819
|
+
"description": "Immutable latest-cell snapshot captured when the document reached the Agent (via MCP) stage.",
|
|
22820
|
+
"additionalProperties": true
|
|
22821
|
+
},
|
|
22822
|
+
"output_contract": {
|
|
22823
|
+
"type": "array",
|
|
22824
|
+
"items": {
|
|
22825
|
+
"type": "object",
|
|
22826
|
+
"required": [
|
|
22827
|
+
"key",
|
|
22828
|
+
"dataType",
|
|
22829
|
+
"required"
|
|
22830
|
+
],
|
|
22831
|
+
"properties": {
|
|
22832
|
+
"key": {
|
|
22833
|
+
"type": "string"
|
|
22834
|
+
},
|
|
22835
|
+
"dataType": {
|
|
22836
|
+
"type": "string",
|
|
22837
|
+
"enum": [
|
|
22838
|
+
"string",
|
|
22839
|
+
"number",
|
|
22840
|
+
"date",
|
|
22841
|
+
"boolean",
|
|
22842
|
+
"object",
|
|
22843
|
+
"array"
|
|
22844
|
+
]
|
|
22845
|
+
},
|
|
22846
|
+
"required": {
|
|
22847
|
+
"type": "boolean"
|
|
22848
|
+
}
|
|
22849
|
+
}
|
|
22850
|
+
}
|
|
22851
|
+
},
|
|
22852
|
+
"instructions": {
|
|
22853
|
+
"type": [
|
|
22854
|
+
"string",
|
|
22855
|
+
"null"
|
|
22856
|
+
]
|
|
22857
|
+
},
|
|
22858
|
+
"timeout_fallthrough": {
|
|
22859
|
+
"type": "string",
|
|
22860
|
+
"enum": [
|
|
22861
|
+
"hold",
|
|
22862
|
+
"skip",
|
|
22863
|
+
"route_to_review"
|
|
22864
|
+
]
|
|
22865
|
+
}
|
|
22866
|
+
}
|
|
22867
|
+
}
|
|
22868
|
+
]
|
|
22869
|
+
},
|
|
22870
|
+
"AgentTaskHeartbeat": {
|
|
22871
|
+
"type": "object",
|
|
22872
|
+
"required": [
|
|
22873
|
+
"execution_epoch"
|
|
22874
|
+
],
|
|
22875
|
+
"properties": {
|
|
22876
|
+
"execution_epoch": {
|
|
22877
|
+
"type": "integer",
|
|
22878
|
+
"minimum": 1
|
|
22879
|
+
}
|
|
22880
|
+
}
|
|
22881
|
+
},
|
|
22882
|
+
"AgentTaskSubmit": {
|
|
22883
|
+
"type": "object",
|
|
22884
|
+
"required": [
|
|
22885
|
+
"execution_epoch",
|
|
22886
|
+
"outputs"
|
|
22887
|
+
],
|
|
22888
|
+
"properties": {
|
|
22889
|
+
"execution_epoch": {
|
|
22890
|
+
"type": "integer",
|
|
22891
|
+
"minimum": 1
|
|
22892
|
+
},
|
|
22893
|
+
"outputs": {
|
|
22894
|
+
"type": "object",
|
|
22895
|
+
"additionalProperties": {
|
|
22896
|
+
"type": "object",
|
|
22897
|
+
"required": [
|
|
22898
|
+
"value"
|
|
22899
|
+
],
|
|
22900
|
+
"properties": {
|
|
22901
|
+
"value": {},
|
|
22902
|
+
"confidence": {
|
|
22903
|
+
"type": "number",
|
|
22904
|
+
"minimum": 0,
|
|
22905
|
+
"maximum": 1
|
|
22906
|
+
},
|
|
22907
|
+
"reasoning": {
|
|
22908
|
+
"type": "string",
|
|
22909
|
+
"maxLength": 4000
|
|
22910
|
+
}
|
|
22911
|
+
}
|
|
22912
|
+
}
|
|
22913
|
+
},
|
|
22914
|
+
"summary": {
|
|
22915
|
+
"type": "string",
|
|
22916
|
+
"maxLength": 4000
|
|
22917
|
+
}
|
|
22918
|
+
}
|
|
22919
|
+
},
|
|
22920
|
+
"OntologyDoctype": {
|
|
22921
|
+
"type": "object",
|
|
22922
|
+
"required": [
|
|
22923
|
+
"key",
|
|
22924
|
+
"name"
|
|
22925
|
+
],
|
|
22926
|
+
"properties": {
|
|
22927
|
+
"key": {
|
|
22928
|
+
"type": "string"
|
|
22929
|
+
},
|
|
22930
|
+
"name": {
|
|
22931
|
+
"type": "string"
|
|
22932
|
+
},
|
|
22933
|
+
"category": {
|
|
22934
|
+
"type": "string"
|
|
22935
|
+
},
|
|
22936
|
+
"maps_to": {
|
|
22937
|
+
"type": "string",
|
|
22938
|
+
"description": "A Talonic ontology_type_id the doctype anchors to."
|
|
22939
|
+
},
|
|
22940
|
+
"description": {
|
|
22941
|
+
"type": "string"
|
|
22942
|
+
},
|
|
22943
|
+
"signals": {
|
|
22944
|
+
"type": "array",
|
|
22945
|
+
"items": {
|
|
22946
|
+
"type": "string"
|
|
22947
|
+
}
|
|
22948
|
+
}
|
|
22949
|
+
}
|
|
22950
|
+
},
|
|
22951
|
+
"OntologyField": {
|
|
22952
|
+
"type": "object",
|
|
22953
|
+
"required": [
|
|
22954
|
+
"key"
|
|
22955
|
+
],
|
|
22956
|
+
"properties": {
|
|
22957
|
+
"key": {
|
|
22958
|
+
"type": "string"
|
|
22959
|
+
},
|
|
22960
|
+
"canonical_name": {
|
|
22961
|
+
"type": "string"
|
|
22962
|
+
},
|
|
22963
|
+
"display_name": {
|
|
22964
|
+
"type": "string"
|
|
22242
22965
|
},
|
|
22243
22966
|
"data_type": {
|
|
22244
22967
|
"type": "string"
|
|
@@ -23329,6 +24052,36 @@
|
|
|
23329
24052
|
"format": "uuid",
|
|
23330
24053
|
"example": "a1b2c3d4-e5f6-7890-abcd-ef1234567890"
|
|
23331
24054
|
},
|
|
24055
|
+
"short_id": {
|
|
24056
|
+
"type": "string",
|
|
24057
|
+
"description": "Short form of `id` (`SCH-` + the first 8 hex characters, uppercased). Accepted wherever `{id}` is.",
|
|
24058
|
+
"example": "SCH-A1B2C3D4"
|
|
24059
|
+
},
|
|
24060
|
+
"spec_id": {
|
|
24061
|
+
"type": [
|
|
24062
|
+
"string",
|
|
24063
|
+
"null"
|
|
24064
|
+
],
|
|
24065
|
+
"format": "uuid",
|
|
24066
|
+
"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",
|
|
24067
|
+
"example": "e2144027-39c0-44e8-a196-72be1e360749"
|
|
24068
|
+
},
|
|
24069
|
+
"spec_version": {
|
|
24070
|
+
"type": [
|
|
24071
|
+
"integer",
|
|
24072
|
+
"null"
|
|
24073
|
+
],
|
|
24074
|
+
"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",
|
|
24075
|
+
"example": 3
|
|
24076
|
+
},
|
|
24077
|
+
"spec_materialized_version": {
|
|
24078
|
+
"type": [
|
|
24079
|
+
"integer",
|
|
24080
|
+
"null"
|
|
24081
|
+
],
|
|
24082
|
+
"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",
|
|
24083
|
+
"example": 3
|
|
24084
|
+
},
|
|
23332
24085
|
"name": {
|
|
23333
24086
|
"type": "string",
|
|
23334
24087
|
"example": "Invoice Schema"
|
|
@@ -23396,6 +24149,7 @@
|
|
|
23396
24149
|
},
|
|
23397
24150
|
"version": {
|
|
23398
24151
|
"type": "integer",
|
|
24152
|
+
"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
24153
|
"example": 1
|
|
23400
24154
|
},
|
|
23401
24155
|
"created_at": {
|
|
@@ -23425,6 +24179,337 @@
|
|
|
23425
24179
|
}
|
|
23426
24180
|
}
|
|
23427
24181
|
},
|
|
24182
|
+
"SpecSummary": {
|
|
24183
|
+
"type": "object",
|
|
24184
|
+
"required": [
|
|
24185
|
+
"id",
|
|
24186
|
+
"name"
|
|
24187
|
+
],
|
|
24188
|
+
"properties": {
|
|
24189
|
+
"id": {
|
|
24190
|
+
"type": "string",
|
|
24191
|
+
"format": "uuid",
|
|
24192
|
+
"description": "The Spec id — the one in the `/specs/{id}` editor URL.",
|
|
24193
|
+
"example": "e2144027-39c0-44e8-a196-72be1e360749"
|
|
24194
|
+
},
|
|
24195
|
+
"name": {
|
|
24196
|
+
"type": "string",
|
|
24197
|
+
"example": "Bridgeway V25"
|
|
24198
|
+
},
|
|
24199
|
+
"description": {
|
|
24200
|
+
"type": [
|
|
24201
|
+
"string",
|
|
24202
|
+
"null"
|
|
24203
|
+
]
|
|
24204
|
+
},
|
|
24205
|
+
"schema_id": {
|
|
24206
|
+
"type": [
|
|
24207
|
+
"string",
|
|
24208
|
+
"null"
|
|
24209
|
+
],
|
|
24210
|
+
"format": "uuid",
|
|
24211
|
+
"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",
|
|
24212
|
+
"example": "2e3ddf8c-b9ab-4934-bb11-a371e9c5d7a8"
|
|
24213
|
+
},
|
|
24214
|
+
"version": {
|
|
24215
|
+
"type": [
|
|
24216
|
+
"integer",
|
|
24217
|
+
"null"
|
|
24218
|
+
],
|
|
24219
|
+
"description": "Published head version — what the editor shows. `null` if never published.",
|
|
24220
|
+
"example": 3
|
|
24221
|
+
},
|
|
24222
|
+
"materialized_version": {
|
|
24223
|
+
"type": [
|
|
24224
|
+
"integer",
|
|
24225
|
+
"null"
|
|
24226
|
+
],
|
|
24227
|
+
"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",
|
|
24228
|
+
"example": 3
|
|
24229
|
+
},
|
|
24230
|
+
"materialized_at": {
|
|
24231
|
+
"type": [
|
|
24232
|
+
"string",
|
|
24233
|
+
"null"
|
|
24234
|
+
],
|
|
24235
|
+
"format": "date-time"
|
|
24236
|
+
},
|
|
24237
|
+
"field_count": {
|
|
24238
|
+
"type": "integer",
|
|
24239
|
+
"description": "Fields declared by the Spec.",
|
|
24240
|
+
"example": 60
|
|
24241
|
+
},
|
|
24242
|
+
"node_count": {
|
|
24243
|
+
"type": "integer",
|
|
24244
|
+
"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",
|
|
24245
|
+
"example": 7
|
|
24246
|
+
},
|
|
24247
|
+
"created_at": {
|
|
24248
|
+
"type": "string",
|
|
24249
|
+
"format": "date-time"
|
|
24250
|
+
},
|
|
24251
|
+
"updated_at": {
|
|
24252
|
+
"type": "string",
|
|
24253
|
+
"format": "date-time"
|
|
24254
|
+
},
|
|
24255
|
+
"links": {
|
|
24256
|
+
"type": "object",
|
|
24257
|
+
"properties": {
|
|
24258
|
+
"self": {
|
|
24259
|
+
"type": "string"
|
|
24260
|
+
},
|
|
24261
|
+
"versions": {
|
|
24262
|
+
"type": "string"
|
|
24263
|
+
},
|
|
24264
|
+
"schema": {
|
|
24265
|
+
"type": "string",
|
|
24266
|
+
"description": "Present only once the Spec has a schema."
|
|
24267
|
+
},
|
|
24268
|
+
"rail": {
|
|
24269
|
+
"type": "string",
|
|
24270
|
+
"description": "Present only once the Spec has a schema."
|
|
24271
|
+
},
|
|
24272
|
+
"dashboard": {
|
|
24273
|
+
"type": "string",
|
|
24274
|
+
"format": "uri"
|
|
24275
|
+
}
|
|
24276
|
+
}
|
|
24277
|
+
}
|
|
24278
|
+
}
|
|
24279
|
+
},
|
|
24280
|
+
"SpecDetail": {
|
|
24281
|
+
"allOf": [
|
|
24282
|
+
{
|
|
24283
|
+
"$ref": "#/components/schemas/SpecSummary"
|
|
24284
|
+
},
|
|
24285
|
+
{
|
|
24286
|
+
"type": "object",
|
|
24287
|
+
"properties": {
|
|
24288
|
+
"schema": {
|
|
24289
|
+
"type": [
|
|
24290
|
+
"object",
|
|
24291
|
+
"null"
|
|
24292
|
+
],
|
|
24293
|
+
"properties": {
|
|
24294
|
+
"id": {
|
|
24295
|
+
"type": "string",
|
|
24296
|
+
"format": "uuid"
|
|
24297
|
+
},
|
|
24298
|
+
"name": {
|
|
24299
|
+
"type": "string"
|
|
24300
|
+
}
|
|
24301
|
+
}
|
|
24302
|
+
},
|
|
24303
|
+
"nodes": {
|
|
24304
|
+
"type": "array",
|
|
24305
|
+
"description": "The rail as authored, in editing order.",
|
|
24306
|
+
"items": {
|
|
24307
|
+
"$ref": "#/components/schemas/SpecNode"
|
|
24308
|
+
}
|
|
24309
|
+
},
|
|
24310
|
+
"phases": {
|
|
24311
|
+
"type": "array",
|
|
24312
|
+
"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",
|
|
24313
|
+
"items": {
|
|
24314
|
+
"$ref": "#/components/schemas/SpecPhase"
|
|
24315
|
+
}
|
|
24316
|
+
},
|
|
24317
|
+
"fields": {
|
|
24318
|
+
"type": "array",
|
|
24319
|
+
"description": "Spec-field ↔ schema-field correspondence.",
|
|
24320
|
+
"items": {
|
|
24321
|
+
"$ref": "#/components/schemas/SpecFieldMapping"
|
|
24322
|
+
}
|
|
24323
|
+
}
|
|
24324
|
+
}
|
|
24325
|
+
}
|
|
24326
|
+
]
|
|
24327
|
+
},
|
|
24328
|
+
"SpecNode": {
|
|
24329
|
+
"type": "object",
|
|
24330
|
+
"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",
|
|
24331
|
+
"properties": {
|
|
24332
|
+
"node_id": {
|
|
24333
|
+
"type": [
|
|
24334
|
+
"string",
|
|
24335
|
+
"null"
|
|
24336
|
+
],
|
|
24337
|
+
"description": "Stage id within the Spec. `null` on a legacy rail that keyed stages by position.",
|
|
24338
|
+
"example": "s-schema"
|
|
24339
|
+
},
|
|
24340
|
+
"position": {
|
|
24341
|
+
"type": "integer",
|
|
24342
|
+
"description": "0-based index in the rail.",
|
|
24343
|
+
"example": 1
|
|
24344
|
+
},
|
|
24345
|
+
"type": {
|
|
24346
|
+
"type": "string",
|
|
24347
|
+
"enum": [
|
|
24348
|
+
"source",
|
|
24349
|
+
"registry",
|
|
24350
|
+
"schema",
|
|
24351
|
+
"resolve",
|
|
24352
|
+
"valid",
|
|
24353
|
+
"assembly",
|
|
24354
|
+
"deliver",
|
|
24355
|
+
"reconcile",
|
|
24356
|
+
"sanitize",
|
|
24357
|
+
"triage",
|
|
24358
|
+
"switch"
|
|
24359
|
+
],
|
|
24360
|
+
"example": "schema"
|
|
24361
|
+
},
|
|
24362
|
+
"name": {
|
|
24363
|
+
"type": [
|
|
24364
|
+
"string",
|
|
24365
|
+
"null"
|
|
24366
|
+
],
|
|
24367
|
+
"example": "Extraction"
|
|
24368
|
+
},
|
|
24369
|
+
"schema_id": {
|
|
24370
|
+
"type": "string",
|
|
24371
|
+
"format": "uuid",
|
|
24372
|
+
"description": "The schema this stage reads/writes."
|
|
24373
|
+
},
|
|
24374
|
+
"policy_ids": {
|
|
24375
|
+
"type": "array",
|
|
24376
|
+
"description": "`data_policies` ids — resolve stages.",
|
|
24377
|
+
"items": {
|
|
24378
|
+
"type": "string",
|
|
24379
|
+
"format": "uuid"
|
|
24380
|
+
}
|
|
24381
|
+
},
|
|
24382
|
+
"validation_stage_ids": {
|
|
24383
|
+
"type": "array",
|
|
24384
|
+
"description": "`validation_stages` ids — the gates a checkpoint contains.",
|
|
24385
|
+
"items": {
|
|
24386
|
+
"type": "string",
|
|
24387
|
+
"format": "uuid"
|
|
24388
|
+
}
|
|
24389
|
+
},
|
|
24390
|
+
"matcher_stage_id": {
|
|
24391
|
+
"type": "string",
|
|
24392
|
+
"format": "uuid",
|
|
24393
|
+
"description": "`matcher_stages` id — reconcile stages."
|
|
24394
|
+
},
|
|
24395
|
+
"source_pipeline_id": {
|
|
24396
|
+
"type": "string",
|
|
24397
|
+
"format": "uuid",
|
|
24398
|
+
"description": "Upstream run, when the Source stage injects from a pipeline."
|
|
24399
|
+
}
|
|
24400
|
+
}
|
|
24401
|
+
},
|
|
24402
|
+
"SpecPhase": {
|
|
24403
|
+
"type": "object",
|
|
24404
|
+
"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",
|
|
24405
|
+
"properties": {
|
|
24406
|
+
"number": {
|
|
24407
|
+
"type": "integer",
|
|
24408
|
+
"description": "1-based execution order.",
|
|
24409
|
+
"example": 3
|
|
24410
|
+
},
|
|
24411
|
+
"phase_id": {
|
|
24412
|
+
"type": [
|
|
24413
|
+
"string",
|
|
24414
|
+
"null"
|
|
24415
|
+
],
|
|
24416
|
+
"description": "Positional id within the plan.",
|
|
24417
|
+
"example": "phase-3"
|
|
24418
|
+
},
|
|
24419
|
+
"type": {
|
|
24420
|
+
"type": [
|
|
24421
|
+
"string",
|
|
24422
|
+
"null"
|
|
24423
|
+
],
|
|
24424
|
+
"example": "matching"
|
|
24425
|
+
},
|
|
24426
|
+
"name": {
|
|
24427
|
+
"type": [
|
|
24428
|
+
"string",
|
|
24429
|
+
"null"
|
|
24430
|
+
],
|
|
24431
|
+
"example": "Matching"
|
|
24432
|
+
},
|
|
24433
|
+
"rail_stage_id": {
|
|
24434
|
+
"type": [
|
|
24435
|
+
"string",
|
|
24436
|
+
"null"
|
|
24437
|
+
],
|
|
24438
|
+
"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",
|
|
24439
|
+
"example": "3a76507f-00ef-4ebd-b8f1-e78a02139634"
|
|
24440
|
+
},
|
|
24441
|
+
"policy_id": {
|
|
24442
|
+
"type": "string",
|
|
24443
|
+
"format": "uuid",
|
|
24444
|
+
"description": "Resolution phases."
|
|
24445
|
+
},
|
|
24446
|
+
"validation_stage_id": {
|
|
24447
|
+
"type": "string",
|
|
24448
|
+
"format": "uuid",
|
|
24449
|
+
"description": "Validation phases — one per gate."
|
|
24450
|
+
},
|
|
24451
|
+
"matcher_stage_id": {
|
|
24452
|
+
"type": "string",
|
|
24453
|
+
"format": "uuid",
|
|
24454
|
+
"description": "Matching phases."
|
|
24455
|
+
},
|
|
24456
|
+
"scope": {
|
|
24457
|
+
"type": "string",
|
|
24458
|
+
"description": "`pipeline` for a post-assembly phase; absent in the per-document loop."
|
|
24459
|
+
}
|
|
24460
|
+
}
|
|
24461
|
+
},
|
|
24462
|
+
"SpecFieldMapping": {
|
|
24463
|
+
"type": "object",
|
|
24464
|
+
"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",
|
|
24465
|
+
"properties": {
|
|
24466
|
+
"field_id": {
|
|
24467
|
+
"type": "string",
|
|
24468
|
+
"format": "uuid",
|
|
24469
|
+
"example": "c086cb2d-06bf-4c22-9007-c6e455531133"
|
|
24470
|
+
},
|
|
24471
|
+
"user_schema_field_id": {
|
|
24472
|
+
"type": "string",
|
|
24473
|
+
"format": "uuid",
|
|
24474
|
+
"example": "a3952c40-9f78-41a3-975f-57c5c79c3fae"
|
|
24475
|
+
},
|
|
24476
|
+
"name": {
|
|
24477
|
+
"type": [
|
|
24478
|
+
"string",
|
|
24479
|
+
"null"
|
|
24480
|
+
],
|
|
24481
|
+
"example": "shipper_number"
|
|
24482
|
+
},
|
|
24483
|
+
"type": {
|
|
24484
|
+
"type": [
|
|
24485
|
+
"string",
|
|
24486
|
+
"null"
|
|
24487
|
+
],
|
|
24488
|
+
"example": "string"
|
|
24489
|
+
}
|
|
24490
|
+
}
|
|
24491
|
+
},
|
|
24492
|
+
"SpecVersion": {
|
|
24493
|
+
"type": "object",
|
|
24494
|
+
"properties": {
|
|
24495
|
+
"version": {
|
|
24496
|
+
"type": "integer",
|
|
24497
|
+
"example": 3
|
|
24498
|
+
},
|
|
24499
|
+
"content_hash": {
|
|
24500
|
+
"type": "string",
|
|
24501
|
+
"description": "sha256 of the canonical Spec document — identical hashes are identical Specs."
|
|
24502
|
+
},
|
|
24503
|
+
"created_at": {
|
|
24504
|
+
"type": "string",
|
|
24505
|
+
"format": "date-time"
|
|
24506
|
+
},
|
|
24507
|
+
"is_materialized": {
|
|
24508
|
+
"type": "boolean",
|
|
24509
|
+
"description": "Whether this is the version currently live on the schema."
|
|
24510
|
+
}
|
|
24511
|
+
}
|
|
24512
|
+
},
|
|
23428
24513
|
"SchemaCreateRequest": {
|
|
23429
24514
|
"type": "object",
|
|
23430
24515
|
"required": [
|