@talonic/docs 0.21.24 → 0.21.26

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/content.js CHANGED
@@ -41257,11 +41257,11 @@ var sections_default2 = [
41257
41257
  parentSlug: "mcp-overview",
41258
41258
  title: "Introduction",
41259
41259
  seoTitle: "MCP Server Introduction \u2014 Talonic Docs",
41260
- description: "Official Talonic MCP server for AI agents. Nine tools and two resources for structured document extraction via the Model Context Protocol.",
41260
+ description: "Official Talonic MCP server for AI agents. Sixteen public tools and two resources for structured document extraction via the Model Context Protocol.",
41261
41261
  content: [
41262
41262
  {
41263
41263
  type: "paragraph",
41264
- text: "The `@talonic/mcp` package is the official Talonic MCP server. It gives AI agents nine tools and two resources for extracting structured, schema-validated data from any document via the [Model Context Protocol](https://modelcontextprotocol.io)."
41264
+ text: "The `@talonic/mcp` package is the official Talonic MCP server. It gives AI agents sixteen public tools and two resources for extracting structured, schema-validated data from any document via the [Model Context Protocol](https://modelcontextprotocol.io)."
41265
41265
  },
41266
41266
  {
41267
41267
  type: "paragraph",
@@ -41269,7 +41269,7 @@ var sections_default2 = [
41269
41269
  },
41270
41270
  {
41271
41271
  type: "paragraph",
41272
- text: "With this MCP server installed, the agent has a `talonic_extract` tool that returns schema-validated JSON with per-field confidence scores, a detected document type, and stable IDs for follow-up calls. The other eight tools cover the rest of the workflow: requesting a browser upload link for files too large to pass through a hosted connector, searching the workspace, filtering by extracted field values, fetching document metadata, getting OCR markdown, listing saved schemas, saving new ones, and reading the workspace credit balance for budget-aware behaviour."
41272
+ text: "With this MCP server installed, the agent has a `talonic_extract` tool that returns schema-validated JSON with per-field confidence scores, a detected document type, and stable IDs for follow-up calls. The other fifteen public tools cover browser-handoff upload, workspace search and filtering, document metadata and OCR markdown, schema management, balance, pricing and usage, plus the Agent-stage list, fetch, claim, heartbeat and submit lifecycle."
41273
41273
  },
41274
41274
  {
41275
41275
  type: "callout",
@@ -41293,7 +41293,7 @@ var sections_default2 = [
41293
41293
  faq: [
41294
41294
  {
41295
41295
  question: "What is the Talonic MCP server?",
41296
- answer: "An official Model Context Protocol server that gives AI agents nine tools for document extraction, search, filtering, schema management, and credit-balance lookup via the Talonic API."
41296
+ answer: "An official Model Context Protocol server that gives AI agents sixteen public tools for document extraction, search, filtering, schema management, and credit-balance lookup via the Talonic API."
41297
41297
  }
41298
41298
  ],
41299
41299
  mentions: [
@@ -41380,7 +41380,7 @@ var sections_default2 = [
41380
41380
  },
41381
41381
  {
41382
41382
  type: "paragraph",
41383
- text: "All three install paths expose the same nine tools and two resources."
41383
+ text: "All three install paths expose the same sixteen public tools and two resources."
41384
41384
  }
41385
41385
  ],
41386
41386
  related: [
@@ -41544,7 +41544,7 @@ var sections_default2 = [
41544
41544
  },
41545
41545
  {
41546
41546
  type: "paragraph",
41547
- text: "Fully restart Claude Desktop (Cmd+Q on macOS, not just close the window). Talonic appears in the connected servers list with all nine tools and two resources."
41547
+ text: "Fully restart Claude Desktop (Cmd+Q on macOS, not just close the window). Talonic appears in the connected servers list with all sixteen public tools and two resources."
41548
41548
  }
41549
41549
  ],
41550
41550
  related: [
package/dist/seo.js CHANGED
@@ -138,6 +138,10 @@ var openapi_default = {
138
138
  name: "Agent",
139
139
  description: "Workspace context and tool registry for the embedded AI agent. Read-only."
140
140
  },
141
+ {
142
+ name: "Agent Tasks",
143
+ description: "Pull worklist for external AI agents at Agent (via MCP) stages. Tasks use leased claims and declared-field result submission."
144
+ },
141
145
  {
142
146
  name: "Account",
143
147
  description: "Self-serve account introspection (tier, status, credits, daily limits, today's usage) and programmatic API-key management."
@@ -22103,6 +22107,278 @@ var openapi_default = {
22103
22107
  }
22104
22108
  }
22105
22109
  }
22110
+ },
22111
+ "/v1/agent-tasks": {
22112
+ get: {
22113
+ operationId: "listAgentTasks",
22114
+ summary: "List Agent (via MCP) tasks visible to this credential",
22115
+ tags: [
22116
+ "Agent Tasks"
22117
+ ],
22118
+ parameters: [
22119
+ {
22120
+ name: "status",
22121
+ in: "query",
22122
+ schema: {
22123
+ type: "string",
22124
+ enum: [
22125
+ "available",
22126
+ "claimed",
22127
+ "submitted",
22128
+ "timed_out",
22129
+ "cancelled"
22130
+ ]
22131
+ }
22132
+ },
22133
+ {
22134
+ name: "limit",
22135
+ in: "query",
22136
+ schema: {
22137
+ type: "integer",
22138
+ minimum: 1,
22139
+ maximum: 100,
22140
+ default: 50
22141
+ }
22142
+ },
22143
+ {
22144
+ name: "cursor",
22145
+ in: "query",
22146
+ schema: {
22147
+ type: "string"
22148
+ }
22149
+ }
22150
+ ],
22151
+ responses: {
22152
+ "200": {
22153
+ description: "Cursor-paginated task metadata. Payloads are fetched individually and audited.",
22154
+ content: {
22155
+ "application/json": {
22156
+ schema: {
22157
+ type: "object",
22158
+ properties: {
22159
+ data: {
22160
+ type: "array",
22161
+ items: {
22162
+ $ref: "#/components/schemas/AgentTaskMetadata"
22163
+ }
22164
+ },
22165
+ pagination: {
22166
+ $ref: "#/components/schemas/CursorPagination"
22167
+ }
22168
+ }
22169
+ }
22170
+ }
22171
+ }
22172
+ },
22173
+ "401": {
22174
+ $ref: "#/components/responses/Unauthorized"
22175
+ },
22176
+ "429": {
22177
+ $ref: "#/components/responses/RateLimitExceeded"
22178
+ }
22179
+ }
22180
+ }
22181
+ },
22182
+ "/v1/agent-tasks/{id}": {
22183
+ get: {
22184
+ operationId: "getAgentTask",
22185
+ summary: "Fetch one Agent task payload",
22186
+ description: "Fetching the immutable snapshot is recorded as an audited data disclosure.",
22187
+ tags: [
22188
+ "Agent Tasks"
22189
+ ],
22190
+ parameters: [
22191
+ {
22192
+ name: "id",
22193
+ in: "path",
22194
+ required: true,
22195
+ schema: {
22196
+ type: "string",
22197
+ format: "uuid"
22198
+ }
22199
+ }
22200
+ ],
22201
+ responses: {
22202
+ "200": {
22203
+ description: "Task metadata, immutable input snapshot, and declared output contract.",
22204
+ content: {
22205
+ "application/json": {
22206
+ schema: {
22207
+ $ref: "#/components/schemas/AgentTaskPayload"
22208
+ }
22209
+ }
22210
+ }
22211
+ },
22212
+ "401": {
22213
+ $ref: "#/components/responses/Unauthorized"
22214
+ },
22215
+ "404": {
22216
+ $ref: "#/components/responses/NotFound"
22217
+ },
22218
+ "429": {
22219
+ $ref: "#/components/responses/RateLimitExceeded"
22220
+ }
22221
+ }
22222
+ }
22223
+ },
22224
+ "/v1/agent-tasks/{id}/claim": {
22225
+ post: {
22226
+ operationId: "claimAgentTask",
22227
+ summary: "Claim or reclaim an expired Agent task lease",
22228
+ tags: [
22229
+ "Agent Tasks"
22230
+ ],
22231
+ parameters: [
22232
+ {
22233
+ name: "id",
22234
+ in: "path",
22235
+ required: true,
22236
+ schema: {
22237
+ type: "string",
22238
+ format: "uuid"
22239
+ }
22240
+ }
22241
+ ],
22242
+ responses: {
22243
+ "200": {
22244
+ description: "Claimed task payload with a new execution epoch and lease expiry.",
22245
+ content: {
22246
+ "application/json": {
22247
+ schema: {
22248
+ $ref: "#/components/schemas/AgentTaskPayload"
22249
+ }
22250
+ }
22251
+ }
22252
+ },
22253
+ "401": {
22254
+ $ref: "#/components/responses/Unauthorized"
22255
+ },
22256
+ "404": {
22257
+ $ref: "#/components/responses/NotFound"
22258
+ },
22259
+ "409": {
22260
+ $ref: "#/components/responses/Conflict"
22261
+ },
22262
+ "429": {
22263
+ $ref: "#/components/responses/RateLimitExceeded"
22264
+ }
22265
+ }
22266
+ }
22267
+ },
22268
+ "/v1/agent-tasks/{id}/heartbeat": {
22269
+ post: {
22270
+ operationId: "heartbeatAgentTask",
22271
+ summary: "Extend the current Agent task lease",
22272
+ tags: [
22273
+ "Agent Tasks"
22274
+ ],
22275
+ parameters: [
22276
+ {
22277
+ name: "id",
22278
+ in: "path",
22279
+ required: true,
22280
+ schema: {
22281
+ type: "string",
22282
+ format: "uuid"
22283
+ }
22284
+ }
22285
+ ],
22286
+ requestBody: {
22287
+ required: true,
22288
+ content: {
22289
+ "application/json": {
22290
+ schema: {
22291
+ $ref: "#/components/schemas/AgentTaskHeartbeat"
22292
+ }
22293
+ }
22294
+ }
22295
+ },
22296
+ responses: {
22297
+ "200": {
22298
+ description: "Updated task metadata.",
22299
+ content: {
22300
+ "application/json": {
22301
+ schema: {
22302
+ $ref: "#/components/schemas/AgentTaskMetadata"
22303
+ }
22304
+ }
22305
+ }
22306
+ },
22307
+ "401": {
22308
+ $ref: "#/components/responses/Unauthorized"
22309
+ },
22310
+ "404": {
22311
+ $ref: "#/components/responses/NotFound"
22312
+ },
22313
+ "409": {
22314
+ $ref: "#/components/responses/Conflict"
22315
+ },
22316
+ "429": {
22317
+ $ref: "#/components/responses/RateLimitExceeded"
22318
+ }
22319
+ }
22320
+ }
22321
+ },
22322
+ "/v1/agent-tasks/{id}/submit": {
22323
+ post: {
22324
+ operationId: "submitAgentTask",
22325
+ summary: "Submit declared Agent output fields and resume the document",
22326
+ description: "Undeclared fields, invalid field types, stale epochs, and foreign claims are rejected before any value is written.",
22327
+ tags: [
22328
+ "Agent Tasks"
22329
+ ],
22330
+ parameters: [
22331
+ {
22332
+ name: "id",
22333
+ in: "path",
22334
+ required: true,
22335
+ schema: {
22336
+ type: "string",
22337
+ format: "uuid"
22338
+ }
22339
+ }
22340
+ ],
22341
+ requestBody: {
22342
+ required: true,
22343
+ content: {
22344
+ "application/json": {
22345
+ schema: {
22346
+ $ref: "#/components/schemas/AgentTaskSubmit"
22347
+ }
22348
+ }
22349
+ }
22350
+ },
22351
+ responses: {
22352
+ "200": {
22353
+ description: "Submitted task metadata.",
22354
+ content: {
22355
+ "application/json": {
22356
+ schema: {
22357
+ $ref: "#/components/schemas/AgentTaskMetadata"
22358
+ }
22359
+ }
22360
+ }
22361
+ },
22362
+ "400": {
22363
+ $ref: "#/components/responses/BadRequest"
22364
+ },
22365
+ "401": {
22366
+ $ref: "#/components/responses/Unauthorized"
22367
+ },
22368
+ "404": {
22369
+ $ref: "#/components/responses/NotFound"
22370
+ },
22371
+ "409": {
22372
+ $ref: "#/components/responses/Conflict"
22373
+ },
22374
+ "422": {
22375
+ $ref: "#/components/responses/ValidationError"
22376
+ },
22377
+ "429": {
22378
+ $ref: "#/components/responses/RateLimitExceeded"
22379
+ }
22380
+ }
22381
+ }
22106
22382
  }
22107
22383
  },
22108
22384
  components: {
@@ -22290,6 +22566,16 @@ var openapi_default = {
22290
22566
  }
22291
22567
  }
22292
22568
  },
22569
+ ValidationError: {
22570
+ description: "The request is well-formed but violates the declared task contract.",
22571
+ content: {
22572
+ "application/json": {
22573
+ schema: {
22574
+ $ref: "#/components/schemas/ErrorResponse"
22575
+ }
22576
+ }
22577
+ }
22578
+ },
22293
22579
  PayloadTooLarge: {
22294
22580
  description: "The uploaded file exceeds the size limit.",
22295
22581
  content: {
@@ -22424,6 +22710,233 @@ var openapi_default = {
22424
22710
  }
22425
22711
  },
22426
22712
  schemas: {
22713
+ CursorPagination: {
22714
+ type: "object",
22715
+ required: [
22716
+ "has_more",
22717
+ "next_cursor"
22718
+ ],
22719
+ properties: {
22720
+ has_more: {
22721
+ type: "boolean"
22722
+ },
22723
+ next_cursor: {
22724
+ type: [
22725
+ "string",
22726
+ "null"
22727
+ ]
22728
+ }
22729
+ }
22730
+ },
22731
+ AgentTaskMetadata: {
22732
+ type: "object",
22733
+ required: [
22734
+ "id",
22735
+ "customer_id",
22736
+ "pipeline_id",
22737
+ "pipeline_document_id",
22738
+ "document_id",
22739
+ "stage_id",
22740
+ "phase_index",
22741
+ "status",
22742
+ "execution_epoch",
22743
+ "timeout_at",
22744
+ "created_at",
22745
+ "updated_at"
22746
+ ],
22747
+ properties: {
22748
+ id: {
22749
+ type: "string",
22750
+ format: "uuid"
22751
+ },
22752
+ customer_id: {
22753
+ type: "string",
22754
+ format: "uuid"
22755
+ },
22756
+ pipeline_id: {
22757
+ type: "string",
22758
+ format: "uuid"
22759
+ },
22760
+ pipeline_document_id: {
22761
+ type: "string",
22762
+ format: "uuid"
22763
+ },
22764
+ document_id: {
22765
+ type: "string",
22766
+ format: "uuid"
22767
+ },
22768
+ stage_id: {
22769
+ type: "string"
22770
+ },
22771
+ phase_index: {
22772
+ type: "integer",
22773
+ minimum: 0
22774
+ },
22775
+ status: {
22776
+ type: "string",
22777
+ enum: [
22778
+ "available",
22779
+ "claimed",
22780
+ "submitted",
22781
+ "timed_out",
22782
+ "cancelled"
22783
+ ]
22784
+ },
22785
+ execution_epoch: {
22786
+ type: "integer",
22787
+ minimum: 0
22788
+ },
22789
+ claimed_at: {
22790
+ type: [
22791
+ "string",
22792
+ "null"
22793
+ ],
22794
+ format: "date-time"
22795
+ },
22796
+ lease_expires_at: {
22797
+ type: [
22798
+ "string",
22799
+ "null"
22800
+ ],
22801
+ format: "date-time"
22802
+ },
22803
+ timeout_at: {
22804
+ type: "string",
22805
+ format: "date-time"
22806
+ },
22807
+ submitted_at: {
22808
+ type: [
22809
+ "string",
22810
+ "null"
22811
+ ],
22812
+ format: "date-time"
22813
+ },
22814
+ created_at: {
22815
+ type: "string",
22816
+ format: "date-time"
22817
+ },
22818
+ updated_at: {
22819
+ type: "string",
22820
+ format: "date-time"
22821
+ }
22822
+ }
22823
+ },
22824
+ AgentTaskPayload: {
22825
+ allOf: [
22826
+ {
22827
+ $ref: "#/components/schemas/AgentTaskMetadata"
22828
+ },
22829
+ {
22830
+ type: "object",
22831
+ required: [
22832
+ "input_snapshot",
22833
+ "output_contract",
22834
+ "timeout_fallthrough"
22835
+ ],
22836
+ properties: {
22837
+ input_snapshot: {
22838
+ type: "object",
22839
+ description: "Immutable latest-cell snapshot captured when the document reached the Agent (via MCP) stage.",
22840
+ additionalProperties: true
22841
+ },
22842
+ output_contract: {
22843
+ type: "array",
22844
+ items: {
22845
+ type: "object",
22846
+ required: [
22847
+ "key",
22848
+ "dataType",
22849
+ "required"
22850
+ ],
22851
+ properties: {
22852
+ key: {
22853
+ type: "string"
22854
+ },
22855
+ dataType: {
22856
+ type: "string",
22857
+ enum: [
22858
+ "string",
22859
+ "number",
22860
+ "date",
22861
+ "boolean",
22862
+ "object",
22863
+ "array"
22864
+ ]
22865
+ },
22866
+ required: {
22867
+ type: "boolean"
22868
+ }
22869
+ }
22870
+ }
22871
+ },
22872
+ instructions: {
22873
+ type: [
22874
+ "string",
22875
+ "null"
22876
+ ]
22877
+ },
22878
+ timeout_fallthrough: {
22879
+ type: "string",
22880
+ enum: [
22881
+ "hold",
22882
+ "skip",
22883
+ "route_to_review"
22884
+ ]
22885
+ }
22886
+ }
22887
+ }
22888
+ ]
22889
+ },
22890
+ AgentTaskHeartbeat: {
22891
+ type: "object",
22892
+ required: [
22893
+ "execution_epoch"
22894
+ ],
22895
+ properties: {
22896
+ execution_epoch: {
22897
+ type: "integer",
22898
+ minimum: 1
22899
+ }
22900
+ }
22901
+ },
22902
+ AgentTaskSubmit: {
22903
+ type: "object",
22904
+ required: [
22905
+ "execution_epoch",
22906
+ "outputs"
22907
+ ],
22908
+ properties: {
22909
+ execution_epoch: {
22910
+ type: "integer",
22911
+ minimum: 1
22912
+ },
22913
+ outputs: {
22914
+ type: "object",
22915
+ additionalProperties: {
22916
+ type: "object",
22917
+ required: [
22918
+ "value"
22919
+ ],
22920
+ properties: {
22921
+ value: {},
22922
+ confidence: {
22923
+ type: "number",
22924
+ minimum: 0,
22925
+ maximum: 1
22926
+ },
22927
+ reasoning: {
22928
+ type: "string",
22929
+ maxLength: 4e3
22930
+ }
22931
+ }
22932
+ }
22933
+ },
22934
+ summary: {
22935
+ type: "string",
22936
+ maxLength: 4e3
22937
+ }
22938
+ }
22939
+ },
22427
22940
  OntologyDoctype: {
22428
22941
  type: "object",
22429
22942
  required: [
package/openapi.json CHANGED
@@ -137,6 +137,10 @@
137
137
  "name": "Agent",
138
138
  "description": "Workspace context and tool registry for the embedded AI agent. Read-only."
139
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
+ },
140
144
  {
141
145
  "name": "Account",
142
146
  "description": "Self-serve account introspection (tier, status, credits, daily limits, today's usage) and programmatic API-key management."
@@ -22083,6 +22087,278 @@
22083
22087
  }
22084
22088
  }
22085
22089
  }
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
+ }
22160
+ }
22161
+ },
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
+ }
22086
22362
  }
22087
22363
  },
22088
22364
  "components": {
@@ -22270,6 +22546,16 @@
22270
22546
  }
22271
22547
  }
22272
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
+ },
22273
22559
  "PayloadTooLarge": {
22274
22560
  "description": "The uploaded file exceeds the size limit.",
22275
22561
  "content": {
@@ -22404,6 +22690,233 @@
22404
22690
  }
22405
22691
  },
22406
22692
  "schemas": {
22693
+ "CursorPagination": {
22694
+ "type": "object",
22695
+ "required": [
22696
+ "has_more",
22697
+ "next_cursor"
22698
+ ],
22699
+ "properties": {
22700
+ "has_more": {
22701
+ "type": "boolean"
22702
+ },
22703
+ "next_cursor": {
22704
+ "type": [
22705
+ "string",
22706
+ "null"
22707
+ ]
22708
+ }
22709
+ }
22710
+ },
22711
+ "AgentTaskMetadata": {
22712
+ "type": "object",
22713
+ "required": [
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"
22726
+ ],
22727
+ "properties": {
22728
+ "id": {
22729
+ "type": "string",
22730
+ "format": "uuid"
22731
+ },
22732
+ "customer_id": {
22733
+ "type": "string",
22734
+ "format": "uuid"
22735
+ },
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
+ },
22407
22920
  "OntologyDoctype": {
22408
22921
  "type": "object",
22409
22922
  "required": [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@talonic/docs",
3
- "version": "0.21.24",
3
+ "version": "0.21.26",
4
4
  "description": "Talonic documentation components — API Reference & Platform Guide",
5
5
  "license": "UNLICENSED",
6
6
  "private": false,
@@ -1,45 +0,0 @@
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 };
@@ -1,45 +0,0 @@
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 };