@deepraxis/sdk 0.1.1-dev.1538445 → 0.1.1-dev.266ca7d

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.
@@ -4,7 +4,7 @@ export const operations = [
4
4
  "resource": "agent.agents",
5
5
  "method": "list",
6
6
  "summary": "List agents",
7
- "description": "List the agents of the workspace behind your API key, newest first, in pages of at most 100 (default 20). Use it to find an agent id before creating a session; to read one agent use agents.retrieve, to see its history use agents.versions.list. Archived agents are hidden unless include_archived is true. Filter kind=personal for durable-computer agents or kind=service for per-session environments. Pass next_page from the response as page to read the next page; a null next_page means the end.",
7
+ "description": "List the agents of the workspace behind your API key, newest first, in pages of at most 100 (default 20). Use it to find an agent id before creating a session; to read one agent use agents.retrieve, to see its history use agents.versions.list. Archived agents are hidden unless include_archived is true. Filter kind=general or kind=personal for durable-computer agents, kind=service for per-session environments, or kind=assume for external MCP clients. Pass next_page from the response as page to read the next page; a null next_page means the end.",
8
8
  "http": "GET",
9
9
  "path": "/agent/v1/agents",
10
10
  "streaming": "no",
@@ -49,8 +49,10 @@ export const operations = [
49
49
  "name": "kind",
50
50
  "type": "string",
51
51
  "enum": [
52
+ "general",
52
53
  "personal",
53
- "service"
54
+ "service",
55
+ "assume"
54
56
  ],
55
57
  "required": false,
56
58
  "description": "Filter agents by their immutable kind, including agents created before kind was recorded."
@@ -61,7 +63,7 @@ export const operations = [
61
63
  "resource": "agent.agents",
62
64
  "method": "create",
63
65
  "summary": "Create agent",
64
- "description": "Create a reusable agent definition, then pass its returned id to sessions.create to start a conversation. The definition includes model, system prompt, tools, MCP servers and an optional multiagent roster. It is saved as version 1; real updates create new versions. skills attaches uploaded custom skills as [{type: \"custom\", skill_id, version?}] (skill_id from skills.create or skills.list; at most 20, no repeated skill_id). Omit version, or send \"latest\", to use the skill's newest version when a session starts. type anthropic returns 400. Use tools: [{type: \"agent_toolset_20260401\"}] for built-in tools including codemode, skill and agent; inspect toolsets.list for names and schemas, and keep bash enabled for native additions. To offer only some tools, set default_config: {enabled: false} and list the tools to keep in configs, e.g. tools: [{type: \"agent_toolset_20260401\", default_config: {enabled: false}, configs: [{name: \"codemode\", enabled: true}, {name: \"bash\", enabled: true, permission_policy: {type: \"always_ask\"}}]}]; every tool not listed, including todo_write, enter_plan_mode, ask_user_question and goal_read, follows default_config, and the response echoes it. codemode runs through bash, so enabling codemode while bash is disabled returns 400. Optional mcp_toolset entries pair with mcp_servers. model accepts platform model IDs such as deepseek-flash, not only the Claude IDs in the protocol examples. model.settings.reasoning sets default thinking; other extra model controls return 400. model and every models.allowed entry must be a catalog model that can run an agent: an unknown id returns 400 \"model <id> is not in the model catalog\" and an embedding, image or speech model returns 400 \"model <id> cannot run an agent\". name is a label, not a unique key: 1 to 256 characters after trimming, no NUL or line breaks. avatar is trimmed, must not contain spaces or point at a loopback, private or internal host, and its scheme is stored in lowercase. script and workflow binding ids are stored in lowercase, the form automation matches; bindings together with environment_id null return 400 because bindings need a machine. Example: {\"name\":\"helper\",\"model\":{\"id\":\"deepseek-flash\"},\"tools\":[{\"type\":\"agent_toolset_20260401\"}]}.",
66
+ "description": "Create a reusable agent definition, then pass its returned id to sessions.create to start a conversation. The definition includes model, system prompt, tools, MCP servers and an optional multiagent roster. It is saved as version 1; real updates create new versions. skills attaches uploaded custom skills as [{type: \"custom\", skill_id, version?}] (skill_id from skills.create or skills.list; at most 20, no repeated skill_id). Omit version, or send \"latest\", to use the skill's newest version when a session starts. type anthropic returns 400. Use tools: [{type: \"agent_toolset_20260401\"}] for built-in tools including codemode, skill and agent; inspect toolsets.list for names and schemas, and keep bash enabled for native additions. To offer only some tools, set default_config: {enabled: false} and list the tools to keep in configs, e.g. tools: [{type: \"agent_toolset_20260401\", default_config: {enabled: false}, configs: [{name: \"codemode\", enabled: true}, {name: \"bash\", enabled: true, permission_policy: {type: \"always_ask\"}}]}]; every tool not listed, including todo_write, enter_plan_mode, ask_user_question and goal_read, follows default_config, and the response echoes it. codemode runs through bash, so enabling codemode while bash is disabled returns 400. Optional mcp_toolset entries pair with mcp_servers. model accepts platform model IDs such as deepseek-flash, not only the Claude IDs in the protocol examples. model.settings.reasoning sets default thinking; other extra model controls return 400. model and every models.allowed entry must be a catalog model that can run an agent: an unknown id returns 400 \"model <id> is not in the model catalog\" and an embedding, image or speech model returns 400 \"model <id> cannot run an agent\". name is a label, not a unique key: 1 to 256 characters after trimming, no NUL or line breaks. avatar is trimmed, must not contain spaces or point at a loopback, private or internal host, and its scheme is stored in lowercase. script and workflow binding ids are stored in lowercase, the form automation matches; bindings together with environment_id null return 400 because bindings need a machine. Example: {\"name\":\"helper\",\"model\":{\"id\":\"deepseek-flash\"},\"tools\":[{\"type\":\"agent_toolset_20260401\"}]}. For kind assume, provide name and computer_id without model, models, subagent_model, subagents or multiagent; vault_ids are accepted, bindings and environment_id are refused. Drive assume agents over MCP at /agent/v1/agents/{id}/mcp.",
65
67
  "http": "POST",
66
68
  "path": "/agent/v1/agents",
67
69
  "streaming": "no",
@@ -74,8 +76,8 @@ export const operations = [
74
76
  {
75
77
  "name": "model",
76
78
  "type": "object",
77
- "required": true,
78
- "description": "A model id from the Praxis model catalog (`praxis.model.models.list`), or a `model_config` object for additional configuration control. Unlike Anthropic, Claude model ids other than those in the catalog are rejected."
79
+ "required": false,
80
+ "description": "A model id from the Praxis model catalog (`praxis.model.models.list`), or a `model_config` object for additional configuration control. Unlike Anthropic, Claude model ids other than those in the catalog are rejected. Forbidden and omitted on assume agents."
79
81
  },
80
82
  {
81
83
  "name": "name",
@@ -106,7 +108,7 @@ export const operations = [
106
108
  "name": "multiagent",
107
109
  "type": "object",
108
110
  "required": false,
109
- "description": "A coordinator topology: the session's primary thread orchestrates\nwork by spawning session threads, each running an agent drawn from the `agents`\nroster."
111
+ "description": "Coordinator roster. A bare string agent id is equivalent to {type: \"agent\", id}; omitting its version pins the referenced agent's current saved version when this roster is saved. {type: \"self\"} refers to this agent. Specify a concrete version to pin it explicitly."
110
112
  },
111
113
  {
112
114
  "name": "skills",
@@ -133,17 +135,19 @@ export const operations = [
133
135
  "type": "array",
134
136
  "itemType": "object",
135
137
  "required": false,
136
- "description": "Platform resources and services this service agent's codemode may reach, as one list of typed bindings. Only kind=service accepts a nonempty list; personal agents return 400. There are two kinds. A resource binding names one resource with id and access: database (id db_..., read_only or read_write), vector_store (id vs_..., read_only or read_write), file (id file- plus 24 letters or digits, as the File API returns it; read_only), media_library (any id without ':' or whitespace, read_only or read_write), model (a model catalog id, invoke), workflow and script (id <namespace>/<name>, invoke). A service binding opens a whole service and carries only enabled: search or browser. At most 20 bindings per type, no repeated type and id, and each service type at most once. A session is authorized by the agent version it runs: newly added bindings apply only to new sessions, and a version saved with apply=false changes no access until it is applied. Applying a version that disables, removes or downgrades a binding revokes it immediately in running sessions on older versions. A resource that is not bound returns 404, a service that is not opened returns 403, and a write to a resource bound read_only returns 403 BINDING_READ_ONLY. Unknown types, fields on the wrong kind (id, access or instructions on a service binding), wrong access and malformed ids return 400. The former databases, vector_stores and files fields are removed and return 400. Omit on create for no bindings. Saving checks added or changed database, vector_store, media_library and file bindings in the organization: unknown or deleted ids return 400. If an owner is unavailable or takes more than 3 seconds, saving succeeds with verified=false for the affected bindings. Unchanged bindings keep their previous verification result and are not rechecked. workflow and script ids are not verified at save time."
138
+ "description": "Platform resources and services this service agent's codemode may reach, as one list of typed bindings. Only kind=service accepts a nonempty list; general and personal agents return 400. There are two kinds. A resource binding names one resource with id and access: database (id db_..., read_only or read_write), vector_store (id vs_..., read_only or read_write), file (id file- plus 24 letters or digits, as the File API returns it; read_only), media_library (any id without ':' or whitespace, read_only or read_write), model (a model catalog id, invoke), workflow and script (id <namespace>/<name>, invoke). A service binding opens a whole service and carries only enabled: search or browser. At most 20 bindings per type, no repeated type and id, and each service type at most once. A session is authorized by the agent version it runs: newly added bindings apply only to new sessions, and a version saved with apply=false changes no access until it is applied. Applying a version that disables, removes or downgrades a binding revokes it immediately in running sessions on older versions. A resource that is not bound returns 404, a service that is not opened returns 403, and a write to a resource bound read_only returns 403 BINDING_READ_ONLY. Unknown types, fields on the wrong kind (id, access or instructions on a service binding), wrong access and malformed ids return 400. The former databases, vector_stores and files fields are removed and return 400. Omit on create for no bindings. Saving checks added or changed database, vector_store, media_library and file bindings in the organization: unknown or deleted ids return 400. If an owner is unavailable or takes more than 3 seconds, saving succeeds with verified=false for the affected bindings. Unchanged bindings keep their previous verification result and are not rechecked. workflow and script ids are not verified at save time."
137
139
  },
138
140
  {
139
141
  "name": "kind",
140
142
  "type": "string",
141
143
  "enum": [
144
+ "general",
142
145
  "personal",
143
- "service"
146
+ "service",
147
+ "assume"
144
148
  ],
145
149
  "required": false,
146
- "description": "Immutable agent kind. personal requires computer_id; service cannot bind a computer. Omit on create to infer from computer_id. On update, the same kind is ignored; changing kind or crossing its computer binding returns 400 invalid_request_error."
150
+ "description": "Immutable agent kind. general and personal require computer_id; service cannot bind a computer. Omit on create to infer from computer_id (general with a computer, service without). On update, the same kind is ignored; changing kind or crossing its computer binding returns 400 invalid_request_error. Assume agents use a durable computer driven over MCP without a conversation model; model, models, subagent_model, subagents and multiagent are forbidden and omitted."
147
151
  },
148
152
  {
149
153
  "name": "computer_id",
@@ -193,7 +197,7 @@ export const operations = [
193
197
  "name": "avatar",
194
198
  "type": "string",
195
199
  "required": false,
196
- "description": "Avatar image of the agent: an absolute https URL of at most 2048 characters, without credentials; any other value returns 400 avatar must be an https URL. It is the default picture in agent lists, the agent detail, the chat header and embedded chat when the embed appearance sets none. Saved with the agent version like other configuration, so apply=false keeps the previous avatar in effect until that version is applied. Omit on create for no avatar; on update, omit to keep it and send null to clear it. Both personal and service agents accept it. /agent/v1 only; /anthropic neither accepts nor returns it."
200
+ "description": "Avatar image of the agent: an absolute https URL of at most 2048 characters, without credentials; any other value returns 400 avatar must be an https URL. It is the default picture in agent lists, the agent detail, the chat header and embedded chat when the embed appearance sets none. Saved with the agent version like other configuration, so apply=false keeps the previous avatar in effect until that version is applied. Omit on create for no avatar; on update, omit to keep it and send null to clear it. General, personal and service agents accept it. /agent/v1 only; /anthropic neither accepts nor returns it."
197
201
  },
198
202
  {
199
203
  "name": "environment_id",
@@ -226,7 +230,7 @@ export const operations = [
226
230
  "resource": "agent.agents",
227
231
  "method": "retrieve",
228
232
  "summary": "Get agent",
229
- "description": "Read one agent by id. The top level is the latest saved version, the editable head whose version you send back for optimistic concurrency; after a save with apply false it differs from active_version, and new sessions use active_version, which you read with version=active. With version, read a specific saved version. The response lists every native tool with its resolved configuration in one agent_toolset_20260401 entry, so it can be sent back unchanged to agents.update. Use agents.versions.list to enumerate versions.",
233
+ "description": "Read the agent configuration currently effective for new sessions. By default, version equals active_version and latest_version identifies the newest saved version, including an unapplied save. Use latest_version for optimistic concurrency when updating. Pass version as a positive integer to read that saved version; version=active is equivalent to omission. The response lists every native tool with its resolved configuration in one agent_toolset_20260401 entry, so tools can be sent back unchanged to agents.update. Use agents.versions.list to enumerate saved versions.",
230
234
  "http": "GET",
231
235
  "path": "/agent/v1/agents/{agent_id}",
232
236
  "streaming": "no",
@@ -235,7 +239,7 @@ export const operations = [
235
239
  {
236
240
  "name": "agent_id",
237
241
  "sdkName": "agent_id",
238
- "description": "Agent id, as returned by agents.create or agents.list (for a session filter, the agent the session was created with). Not the agent name."
242
+ "description": "Agent id, as returned by agents.create or agents.list (for a session filter, the agent the session was created with). Not the agent name. Also accepts an 8-character identity number (0–9, A–Z); malformed, absent and foreign references return 404, and response ids always use agent_…."
239
243
  }
240
244
  ],
241
245
  "query": [
@@ -243,7 +247,7 @@ export const operations = [
243
247
  "name": "version",
244
248
  "type": "number",
245
249
  "required": false,
246
- "description": "Agent version to read; omit for the latest saved version. An integer of at least 1 (versions are listed by agents.versions.list), or the string active for the version new sessions use."
250
+ "description": "Agent version to read. Omit, or send active, for the currently effective version used by new sessions. Send an integer of at least 1 from agents.versions.list to read that saved version. The default response also includes latest_version, the newest saved version number."
247
251
  }
248
252
  ]
249
253
  },
@@ -251,7 +255,7 @@ export const operations = [
251
255
  "resource": "agent.agents",
252
256
  "method": "update",
253
257
  "summary": "Update agent",
254
- "description": "Update an agent. Send the current version in the body for optimistic concurrency: a stale version returns 409, and an update that changes nothing keeps the version number. Any real change saves a new version. apply defaults to true and moves active_version to the new version, or to the latest when configuration is unchanged; apply false saves without applying. version_note optionally records up to 280 characters on a newly created version; null means no note, and a note sent when the request changes nothing else returns 400 because a note is stored only with a new version. Existing sessions and tokens keep their version. Omitted fields keep their value. multiagent takes null or a coordinator roster; subagent_model keeps its value when omitted and is cleared by null. Archived agents cannot be updated. tools: [] removes every tool, while tools: null returns 400 (tools cannot be null; send [] to remove every tool). On update, omit skills to keep them, send an array to replace them, or send [] or null to clear them. skills attaches uploaded custom skills as [{type: \"custom\", skill_id, version?}] (skill_id from skills.create or skills.list; at most 20, no repeated skill_id). Omit version, or send \"latest\", to use the skill's newest version when a session starts. type anthropic returns 400.",
258
+ "description": "Save configuration changes as a new immutable version. Send latest_version from a default retrieve or update response as the request version for optimistic concurrency; a stale value returns 409. apply defaults to true and makes the new version effective; apply false saves without changing active_version. The response contains the effective configuration, with version equal to active_version and latest_version naming the newest saved version. An unchanged configuration, including a note-only update, is a no-op returning 200 and the current effective version without creating or activating a version. version_note records up to 280 characters only when a configuration change creates a new version; null is equivalent to omission. Use agents.versions.apply to activate an existing saved version. Existing sessions and tokens keep their version. Omitted fields keep their value. multiagent takes null or a coordinator roster; subagent_model keeps its value when omitted and is cleared by null. Archived agents cannot be updated. tools: [] removes every tool, while tools: null returns 400 (tools cannot be null; send [] to remove every tool). On update, omit skills to keep them, send an array to replace them, or send [] or null to clear them. skills attaches uploaded custom skills as [{type: \"custom\", skill_id, version?}] (skill_id from skills.create or skills.list; at most 20, no repeated skill_id). Omit version, or send \"latest\", to use the skill's newest version when a session starts. type anthropic returns 400. Assume agents reject model, models, subagent_model, subagents and multiagent on every update; other fields follow the general agent rules, with vault_ids also accepted.",
255
259
  "http": "POST",
256
260
  "path": "/agent/v1/agents/{agent_id}",
257
261
  "streaming": "no",
@@ -260,7 +264,7 @@ export const operations = [
260
264
  {
261
265
  "name": "agent_id",
262
266
  "sdkName": "agent_id",
263
- "description": "Agent id, as returned by agents.create or agents.list (for a session filter, the agent the session was created with). Not the agent name."
267
+ "description": "Agent id, as returned by agents.create or agents.list (for a session filter, the agent the session was created with). Not the agent name. Also accepts an 8-character identity number (0–9, A–Z); malformed, absent and foreign references return 404, and response ids always use agent_…."
264
268
  }
265
269
  ],
266
270
  "query": [],
@@ -290,13 +294,13 @@ export const operations = [
290
294
  "name": "model",
291
295
  "type": "object",
292
296
  "required": false,
293
- "description": "A model id from the Praxis model catalog (`praxis.model.models.list`), or a `model_config` object for additional configuration control. Unlike Anthropic, Claude model ids other than those in the catalog are rejected."
297
+ "description": "A model id from the Praxis model catalog (`praxis.model.models.list`), or a `model_config` object for additional configuration control. Unlike Anthropic, Claude model ids other than those in the catalog are rejected. Forbidden and omitted on assume agents."
294
298
  },
295
299
  {
296
300
  "name": "multiagent",
297
301
  "type": "object",
298
302
  "required": false,
299
- "description": "A coordinator topology: the session's primary thread orchestrates\nwork by spawning session threads, each running an agent drawn from the `agents`\nroster."
303
+ "description": "Coordinator roster. A bare string agent id is equivalent to {type: \"agent\", id}; omitting its version pins the referenced agent's current saved version when this roster is saved. {type: \"self\"} refers to this agent. Specify a concrete version to pin it explicitly."
300
304
  },
301
305
  {
302
306
  "name": "name",
@@ -328,19 +332,19 @@ export const operations = [
328
332
  "name": "version",
329
333
  "type": "number",
330
334
  "required": false,
331
- "description": "The agent's current version, used to prevent concurrent overwrites.\nObtain this value from a create or retrieve response. Must be at least 1 if\nspecified. When supplied, the request fails if it does not match the server's\ncurrent version; omit to apply the update unconditionally."
335
+ "description": "Newest saved version used for optimistic concurrency. Obtain latest_version from the default retrieve or update response, or version from versions.list. A stale value returns 409; omit for an unconditional update."
332
336
  },
333
337
  {
334
338
  "name": "apply",
335
339
  "type": "boolean",
336
340
  "required": false,
337
- "description": "Defaults to true: apply the newly saved version, or the latest version when configuration is unchanged. Set false to save without changing active_version. Unlike Managed Agents, saving and applying can be separate."
341
+ "description": "Defaults to true: apply a newly saved configuration version. Set false to save without changing active_version. An unchanged configuration is a no-op, including note-only updates; use versions.apply to activate a saved version."
338
342
  },
339
343
  {
340
344
  "name": "version_note",
341
345
  "type": "string",
342
346
  "required": false,
343
- "description": "Optional change explanation stored as note on the new immutable version, up to 280 characters. Omission or null stores no note. A note sent when nothing else changes returns 400 (nothing to save), because a note is stored only with a new version."
347
+ "description": "Optional change explanation, at most 280 characters. Recorded only when a configuration change creates a new immutable version. A note-only update is a no-op returning 200 and the current effective version. Null is equivalent to omission."
344
348
  },
345
349
  {
346
350
  "name": "bindings",
@@ -353,11 +357,13 @@ export const operations = [
353
357
  "name": "kind",
354
358
  "type": "string",
355
359
  "enum": [
360
+ "general",
356
361
  "personal",
357
- "service"
362
+ "service",
363
+ "assume"
358
364
  ],
359
365
  "required": false,
360
- "description": "Immutable agent kind. personal requires computer_id; service cannot bind a computer. Omit on create to infer from computer_id. On update, the same kind is ignored; changing kind or crossing its computer binding returns 400 invalid_request_error."
366
+ "description": "Immutable agent kind. general and personal require computer_id; service cannot bind a computer. Omit on create to infer from computer_id (general with a computer, service without). On update, the same kind is ignored; changing kind or crossing its computer binding returns 400 invalid_request_error. Assume agents use a durable computer driven over MCP without a conversation model; model, models, subagent_model, subagents and multiagent are forbidden and omitted."
361
367
  },
362
368
  {
363
369
  "name": "computer_id",
@@ -407,7 +413,7 @@ export const operations = [
407
413
  "name": "avatar",
408
414
  "type": "string",
409
415
  "required": false,
410
- "description": "Avatar image of the agent: an absolute https URL of at most 2048 characters, without credentials; any other value returns 400 avatar must be an https URL. It is the default picture in agent lists, the agent detail, the chat header and embedded chat when the embed appearance sets none. Saved with the agent version like other configuration, so apply=false keeps the previous avatar in effect until that version is applied. Omit on create for no avatar; on update, omit to keep it and send null to clear it. Both personal and service agents accept it. /agent/v1 only; /anthropic neither accepts nor returns it."
416
+ "description": "Avatar image of the agent: an absolute https URL of at most 2048 characters, without credentials; any other value returns 400 avatar must be an https URL. It is the default picture in agent lists, the agent detail, the chat header and embedded chat when the embed appearance sets none. Saved with the agent version like other configuration, so apply=false keeps the previous avatar in effect until that version is applied. Omit on create for no avatar; on update, omit to keep it and send null to clear it. General, personal and service agents accept it. /agent/v1 only; /anthropic neither accepts nor returns it."
411
417
  },
412
418
  {
413
419
  "name": "environment_id",
@@ -449,7 +455,7 @@ export const operations = [
449
455
  {
450
456
  "name": "agent_id",
451
457
  "sdkName": "agent_id",
452
- "description": "Service agent id from agent creation or listing; with a customer access token, the agent the token was issued for."
458
+ "description": "Service agent id from agent creation or listing; with a customer access token, the agent the token was issued for. Also accepts an 8-character identity number (0–9, A–Z); malformed, absent and foreign references return 404, and response ids always use agent_…."
453
459
  }
454
460
  ],
455
461
  "query": []
@@ -467,7 +473,7 @@ export const operations = [
467
473
  {
468
474
  "name": "agent_id",
469
475
  "sdkName": "agent_id",
470
- "description": "Agent id, as returned by agents.create or agents.list (for a session filter, the agent the session was created with). Not the agent name."
476
+ "description": "Agent id, as returned by agents.create or agents.list (for a session filter, the agent the session was created with). Not the agent name. Also accepts an 8-character identity number (0–9, A–Z); malformed, absent and foreign references return 404, and response ids always use agent_…."
471
477
  }
472
478
  ],
473
479
  "query": []
@@ -485,7 +491,7 @@ export const operations = [
485
491
  {
486
492
  "name": "agent_id",
487
493
  "sdkName": "agent_id",
488
- "description": "Active service agent id from agent creation or listing."
494
+ "description": "Active service agent id from agent creation or listing. Also accepts an 8-character identity number (0–9, A–Z); malformed, absent and foreign references return 404, and response ids always use agent_…."
489
495
  }
490
496
  ],
491
497
  "query": [
@@ -538,7 +544,7 @@ export const operations = [
538
544
  {
539
545
  "name": "agent_id",
540
546
  "sdkName": "agent_id",
541
- "description": "Service agent id (agent_…) or its short identity number, from agent creation or listing."
547
+ "description": "Service agent id (agent_…) or its short identity number, from agent creation or listing. Also accepts an 8-character identity number (0–9, A–Z); malformed, absent and foreign references return 404, and response ids always use agent_…."
542
548
  }
543
549
  ],
544
550
  "query": [],
@@ -560,7 +566,7 @@ export const operations = [
560
566
  {
561
567
  "name": "agent_id",
562
568
  "sdkName": "agent_id",
563
- "description": "Service agent id (agent_…) or its short identity number, from agent creation or listing."
569
+ "description": "Service agent id (agent_…) or its short identity number, from agent creation or listing. Also accepts an 8-character identity number (0–9, A–Z); malformed, absent and foreign references return 404, and response ids always use agent_…."
564
570
  }
565
571
  ],
566
572
  "query": []
@@ -578,7 +584,7 @@ export const operations = [
578
584
  {
579
585
  "name": "agent_id",
580
586
  "sdkName": "agent_id",
581
- "description": "Service agent id (agent_…) or its short identity number, from agent creation or listing."
587
+ "description": "Service agent id (agent_…) or its short identity number, from agent creation or listing. Also accepts an 8-character identity number (0–9, A–Z); malformed, absent and foreign references return 404, and response ids always use agent_…."
582
588
  }
583
589
  ],
584
590
  "query": []
@@ -596,7 +602,7 @@ export const operations = [
596
602
  {
597
603
  "name": "agent_id",
598
604
  "sdkName": "agent_id",
599
- "description": "Service agent id (agent_…) or its short identity number, from agent creation or listing."
605
+ "description": "Service agent id (agent_…) or its short identity number, from agent creation or listing. Also accepts an 8-character identity number (0–9, A–Z); malformed, absent and foreign references return 404, and response ids always use agent_…."
600
606
  }
601
607
  ],
602
608
  "query": [],
@@ -686,7 +692,7 @@ export const operations = [
686
692
  {
687
693
  "name": "agent_id",
688
694
  "sdkName": "agent_id",
689
- "description": "Active service agent id from agent creation or listing."
695
+ "description": "Active service agent id from agent creation or listing. Also accepts an 8-character identity number (0–9, A–Z); malformed, absent and foreign references return 404, and response ids always use agent_…."
690
696
  },
691
697
  {
692
698
  "name": "customer_id",
@@ -716,7 +722,7 @@ export const operations = [
716
722
  {
717
723
  "name": "agent_id",
718
724
  "sdkName": "agent_id",
719
- "description": "Active service agent id from agent creation or listing."
725
+ "description": "Active service agent id from agent creation or listing. Also accepts an 8-character identity number (0–9, A–Z); malformed, absent and foreign references return 404, and response ids always use agent_…."
720
726
  },
721
727
  {
722
728
  "name": "customer_id",
@@ -739,7 +745,7 @@ export const operations = [
739
745
  {
740
746
  "name": "agent_id",
741
747
  "sdkName": "agent_id",
742
- "description": "Active service agent id from agent creation or listing."
748
+ "description": "Active service agent id from agent creation or listing. Also accepts an 8-character identity number (0–9, A–Z); malformed, absent and foreign references return 404, and response ids always use agent_…."
743
749
  },
744
750
  {
745
751
  "name": "customer_id",
@@ -762,7 +768,7 @@ export const operations = [
762
768
  {
763
769
  "name": "agent_id",
764
770
  "sdkName": "agent_id",
765
- "description": "Active service agent id from agent creation or listing."
771
+ "description": "Active service agent id from agent creation or listing. Also accepts an 8-character identity number (0–9, A–Z); malformed, absent and foreign references return 404, and response ids always use agent_…."
766
772
  },
767
773
  {
768
774
  "name": "customer_id",
@@ -785,7 +791,7 @@ export const operations = [
785
791
  {
786
792
  "name": "agent_id",
787
793
  "sdkName": "agent_id",
788
- "description": "Active service agent id from agent creation or listing."
794
+ "description": "Active service agent id from agent creation or listing. Also accepts an 8-character identity number (0–9, A–Z); malformed, absent and foreign references return 404, and response ids always use agent_…."
789
795
  },
790
796
  {
791
797
  "name": "customer_id",
@@ -808,7 +814,7 @@ export const operations = [
808
814
  {
809
815
  "name": "agent_id",
810
816
  "sdkName": "agent_id",
811
- "description": "Active service agent id from agent creation or listing."
817
+ "description": "Active service agent id from agent creation or listing. Also accepts an 8-character identity number (0–9, A–Z); malformed, absent and foreign references return 404, and response ids always use agent_…."
812
818
  },
813
819
  {
814
820
  "name": "customer_id",
@@ -831,7 +837,7 @@ export const operations = [
831
837
  {
832
838
  "name": "agent_id",
833
839
  "sdkName": "agent_id",
834
- "description": "Agent id from creation or listing."
840
+ "description": "Agent id from creation or listing. Also accepts an 8-character identity number (0–9, A–Z); malformed, absent and foreign references return 404, and response ids always use agent_…."
835
841
  }
836
842
  ],
837
843
  "query": []
@@ -840,7 +846,7 @@ export const operations = [
840
846
  "resource": "agent.agents.versions",
841
847
  "method": "list",
842
848
  "summary": "List agent versions",
843
- "description": "List the saved versions of one agent, in pages of at most 100 (default 20). Each item is the full agent definition at that version, so you can compare what changed between versions. active is true only for the item that new sessions use; active_version on each item is the agent-level value, kept for compatibility. Use agents.retrieve with version to read a single one; agent_id comes from agents.list or agents.create.",
849
+ "description": "List the saved versions of one agent in ascending version number, oldest first, in pages of at most 100 (default 20). Each item is the full agent definition at that saved version, so you can compare configurations. active is true only for the item new sessions use. active_version on every item is the same agent-level currently effective version; it is not that item's version. Use agents.retrieve with version to read a single saved version; agent_id comes from agents.list or agents.create. Pass next_page as page to continue.",
844
850
  "http": "GET",
845
851
  "path": "/agent/v1/agents/{agent_id}/versions",
846
852
  "streaming": "no",
@@ -849,7 +855,7 @@ export const operations = [
849
855
  {
850
856
  "name": "agent_id",
851
857
  "sdkName": "agent_id",
852
- "description": "Agent id, as returned by agents.create or agents.list (for a session filter, the agent the session was created with). Not the agent name."
858
+ "description": "Agent id, as returned by agents.create or agents.list (for a session filter, the agent the session was created with). Not the agent name. Also accepts an 8-character identity number (0–9, A–Z); malformed, absent and foreign references return 404, and response ids always use agent_…."
853
859
  }
854
860
  ],
855
861
  "query": [
@@ -871,7 +877,7 @@ export const operations = [
871
877
  "resource": "agent.agents.versions",
872
878
  "method": "apply",
873
879
  "summary": "Apply Agent Version",
874
- "description": "Apply a version from agents.versions.list by its version number. This idempotent operation changes active_version without creating a version; existing sessions and tokens keep their version. The response is the latest saved agent with its current active_version. Missing versions return 404 Agent version not found; archived agents return 409 Agent is archived. For example, POST /agent/v1/agents/{agent_id}/versions/2/apply with no body.",
880
+ "description": "Apply a saved version from agents.versions.list for new sessions and newly issued tokens, without creating a version. Existing sessions and tokens retain their version. The response contains the effective configuration with version equal to active_version and latest_version naming the newest saved version. Missing versions return 404; archived agents return 409. For example, POST /agent/v1/agents/{agent_id}/versions/2/apply with no body.",
875
881
  "http": "POST",
876
882
  "path": "/agent/v1/agents/{agent_id}/versions/{version}/apply",
877
883
  "streaming": "no",
@@ -880,7 +886,7 @@ export const operations = [
880
886
  {
881
887
  "name": "agent_id",
882
888
  "sdkName": "agent_id",
883
- "description": "Agent identifier from agents.create or agents.list."
889
+ "description": "Agent identifier from agents.create or agents.list. Also accepts an 8-character identity number (0–9, A–Z); malformed, absent and foreign references return 404, and response ids always use agent_…."
884
890
  },
885
891
  {
886
892
  "name": "version",
@@ -920,7 +926,7 @@ export const operations = [
920
926
  "resource": "agent.computers",
921
927
  "method": "create",
922
928
  "summary": "Create Computer",
923
- "description": "Create a durable computer: a named machine whose files outlive sessions, for personal agents.\n\nPraxis extension: MA only has session-scoped temporary containers and memory_stores, not durable browsable computers. Archived files remain readable, but new sessions cannot bind them. environment_id is an optional recipe reference; computers start with a light sandbox and expose the public SDK sandbox_id. Lists include archived computers.",
929
+ "description": "Create a durable computer: a named machine whose files outlive sessions, for general and personal agents.\n\nPraxis extension: MA only has session-scoped temporary containers and memory_stores, not durable browsable computers. Archived files remain readable, but new sessions cannot bind them. environment_id is an optional recipe reference; computers start with a light sandbox and expose the public SDK sandbox_id. Lists include archived computers.",
924
930
  "http": "POST",
925
931
  "path": "/agent/v1/computers",
926
932
  "streaming": "no",
@@ -1346,7 +1352,7 @@ export const operations = [
1346
1352
  "resource": "agent.deployments",
1347
1353
  "method": "create",
1348
1354
  "summary": "Create deployment",
1349
- "description": "Freeze session parameters as a deployment; this operation does not open a session. Pass an agent id or versioned reference, a name, 1–50 user.message initial events and an environment_id from environments.list. Unlike Anthropic Managed Agents, /agent/v1 also accepts agent_with_overrides (model, permission_mode and cwd) and target=computer for personal agents, with environment_id omitted. Cron schedules use five POSIX fields and an IANA timezone. File resources are accepted. Supports vault_ids, up to 50, owned by the current organization and not archived; credential injection is deferred to a later version. Active schedules run every minute when due; session creation errors pause the deployment. Unsupported tools, mcp_servers, system and skills overrides return 400.",
1355
+ "description": "Freeze session parameters as a deployment; this operation does not open a session. Pass an agent id or versioned reference, a name, 1–50 user.message initial events and an environment_id from environments.list. Unlike Anthropic Managed Agents, /agent/v1 also accepts agent_with_overrides (model, permission_mode and cwd) and target=computer for general and personal agents, with environment_id omitted. Cron schedules use five POSIX fields and an IANA timezone. File resources are accepted. Supports vault_ids, up to 50, owned by the current organization and not archived; credential injection is deferred to a later version. Active schedules run every minute when due; session creation errors pause the deployment. Unsupported tools, mcp_servers, system and skills overrides return 400.",
1350
1356
  "http": "POST",
1351
1357
  "path": "/agent/v1/deployments",
1352
1358
  "streaming": "no",
@@ -1423,7 +1429,7 @@ export const operations = [
1423
1429
  "name": "target",
1424
1430
  "type": "object",
1425
1431
  "required": false,
1426
- "description": "Execution target. environment (default) requires an existing, unarchived environment_id. computer is available only for personal agents and permits environment_id to be omitted."
1432
+ "description": "Execution target. environment (default) requires an existing, unarchived environment_id. computer is available only for general and personal agents and permits environment_id to be omitted."
1427
1433
  }
1428
1434
  ]
1429
1435
  }
@@ -1533,7 +1539,7 @@ export const operations = [
1533
1539
  "name": "target",
1534
1540
  "type": "object",
1535
1541
  "required": false,
1536
- "description": "Execution target. environment (default) requires an existing, unarchived environment_id. computer is available only for personal agents and permits environment_id to be omitted."
1542
+ "description": "Execution target. environment (default) requires an existing, unarchived environment_id. computer is available only for general and personal agents and permits environment_id to be omitted."
1537
1543
  }
1538
1544
  ]
1539
1545
  }
@@ -1898,7 +1904,7 @@ export const operations = [
1898
1904
  "resource": "agent.sessions",
1899
1905
  "method": "create",
1900
1906
  "summary": "Create session",
1901
- "description": "Create a session: one conversation with an agent. Pass agent as an agent id or {type:\"agent\", id, version?}; an id alone, or an object without version, pins the agent's active_version (the version chosen with agents.versions.apply, not necessarily the newest saved one). Unlike Anthropic Managed Agents, omit environment_id to use the default environment saved in the agent version (light for a new agent), unless computer_id (explicit, or the agent's default) selects a Computer; pass an environment id for a sandbox recipe. For service agents, explicit null allocates no machine, so codemode, bash and other machine tools are unavailable. Optional model must be one of the agent's allowed models; optional thinking is {effort: low|medium|high|xhigh|max|none} or null, where null inherits the agent default and then the model default (none requires the model to allow disabling thinking). Selections are saved before initial_events run; invalid ones return 400 invalid_request_error. Unlike Anthropic Managed Agents, the only inline agent override is system ({type:\"agent_with_overrides\", id, system}); to change the model, tools, MCP servers or skills, save a version instead. Supports vault_ids, up to 50, owned by the current organization and not archived; credential injection is deferred to a later version. budget is {type:\"limit\", max_list_cost:{amount, currency:\"USD\"}} where amount is a positive integer string of US cents (\"2000\" is USD 20.00); omitted budget defaults to \"2000\" and null removes the limit. Up to 500 file resources can be attached. Use initial_events to send a first user.message in this request, or send messages afterwards with sessions.events.send. The returned status can still be idle before initial events run; read agent.message and the subsequent session.status_idle event to confirm completion.",
1907
+ "description": "Create a session: one conversation with an agent. Pass agent as an agent id or {type:\"agent\", id, version?}; an id alone, or an object without version, pins the agent's active_version (the version chosen with agents.versions.apply, not necessarily the newest saved one). Unlike Anthropic Managed Agents, omit environment_id to use the default environment saved in the agent version (light for a new agent), unless computer_id (explicit, or the agent's default) selects a Computer; pass an environment id for a sandbox recipe. For service agents, explicit null allocates no machine, so codemode, bash and other machine tools are unavailable. Optional model must be one of the agent's allowed models; optional thinking is {effort: low|medium|high|xhigh|max|none} or null, where null inherits the agent default and then the model default (none requires the model to allow disabling thinking). Selections are saved before initial_events run; invalid ones return 400 invalid_request_error. Unlike Anthropic Managed Agents, the only inline agent override is system ({type:\"agent_with_overrides\", id, system}); to change the model, tools, MCP servers or skills, save a version instead. Supports vault_ids, up to 50, owned by the current organization and not archived; credential injection is deferred to a later version. budget is {type:\"limit\", max_list_cost:{amount, currency:\"USD\"}} where amount is a positive decimal string of US dollars with at most 2 decimal places (\"20.00\" is USD 20.00); omitted budget defaults to \"20.00\" and null removes the limit. Up to 500 file resources can be attached. Use initial_events to send a first user.message in this request, or send messages afterwards with sessions.events.send. The returned status can still be idle before initial events run; read agent.message and the subsequent session.status_idle event to confirm completion. Assume agents return 400 INVALID_PARAMS; drive them over MCP at /agent/v1/agents/{id}/mcp instead.",
1902
1908
  "http": "POST",
1903
1909
  "path": "/agent/v1/sessions",
1904
1910
  "streaming": "no",
@@ -2187,7 +2193,7 @@ export const operations = [
2187
2193
  "resource": "agent.sessions",
2188
2194
  "method": "compact",
2189
2195
  "summary": "Compact Session (Extension)",
2190
- "description": "Request session context compaction and retrieve an operation receipt.\n\nAvailable only on /agent/v1. The body may be omitted or {}. Optional instructions must be a string and is forwarded unchanged. Idempotency-Key is forwarded unchanged; a UUID is generated when absent. Returns { type: session_compaction, id, status, reason? }, where id is the operation ID. queued/running return 202; skipped/succeeded/failed return 200. Non-string instructions return 400 invalid_request_error. Missing or inaccessible managed sessions return 404 not_found_error.",
2196
+ "description": "Request session context compaction and retrieve an operation receipt.\n\nAvailable only on /agent/v1. The body may be omitted or {}. Optional instructions must be a string and is forwarded unchanged. Idempotency-Key is forwarded unchanged; a UUID is generated when absent. Returns { type: session_compaction, id, status, reason? }, where id is the operation ID. queued/running return 202; skipped/succeeded/failed/cancelled return 200. Non-string instructions return 400 invalid_request_error. Missing or inaccessible managed sessions return 404 not_found_error.",
2191
2197
  "http": "POST",
2192
2198
  "path": "/agent/v1/sessions/{session_id}/compact",
2193
2199
  "streaming": "no",
@@ -2239,7 +2245,7 @@ export const operations = [
2239
2245
  "resource": "agent.sessions.compactions",
2240
2246
  "method": "list",
2241
2247
  "summary": "List Session Compactions (Extension)",
2242
- "description": "Read session compaction history and summaries.\n\nAvailable only on /agent/v1. Returns { data: [...] }. Each entry contains type, id, event_id, trigger, status, model, compacted_message_count, input_tokens_before, input_tokens_after, summary, error and created_at, as recorded by the service. Missing or inaccessible managed sessions return 404 not_found_error.",
2248
+ "description": "Read session compaction history and summaries.\n\nAvailable only on /agent/v1. Returns { data: [...], active }. active is the queued or running compaction ({ type: session_compaction, id, status, trigger: manual|auto|idle }), or null when none; manual work takes precedence. Each data entry contains type, id, event_id, trigger, status, model, compacted_message_count, input_tokens_before, input_tokens_after, summary, error and created_at, as recorded by the service. Missing or inaccessible managed sessions return 404 not_found_error.",
2243
2249
  "http": "GET",
2244
2250
  "path": "/agent/v1/sessions/{session_id}/compactions",
2245
2251
  "streaming": "no",
@@ -2451,9 +2457,9 @@ export const operations = [
2451
2457
  "query": [
2452
2458
  {
2453
2459
  "name": "limit",
2454
- "type": "number",
2460
+ "type": "integer",
2455
2461
  "required": false,
2456
- "description": "Number of items per page."
2462
+ "description": "Number of resources per page, from 1 to 100; defaults to 100."
2457
2463
  },
2458
2464
  {
2459
2465
  "name": "page",
@@ -3813,7 +3819,7 @@ export const operations = [
3813
3819
  "resource": "automation.actions",
3814
3820
  "method": "list",
3815
3821
  "summary": "List actions",
3816
- "description": "Discover callable Actions and their ns/name references without executing them. Combine each returned namespace and name as ns/name; Action calls use the current revision and do not accept @version or @tag. Filter by name or description; results include seven-day statistics and revision summaries without implementation source. Archived actions are excluded by default.",
3822
+ "description": "Discover callable Actions and their ns/name references without executing them. Combine each returned namespace and name as ns/name; Action calls use the current revision and do not accept @version or @tag. Filter by name or description; results include seven-day statistics and revision summaries without implementation source. Archived actions are excluded by default. List items carry no input contract: get the action and read current_revision.input_schema. Call it with call(\"ns/name\", input) in a script or call: ns/name with with: in a workflow.",
3817
3823
  "http": "GET",
3818
3824
  "path": "/automation/v1/actions",
3819
3825
  "streaming": "no",
@@ -3982,7 +3988,7 @@ export const operations = [
3982
3988
  "resource": "automation.actions",
3983
3989
  "method": "retrieve",
3984
3990
  "summary": "Get an Action with its current input and output JSON Schemas",
3985
- "description": "Read the Action and its full current implementation, with input and output JSON Schemas at current_revision.input_schema and current_revision.output_schema. To read a built-in Action, use ns=praxis and name=<bare name>, for example name=ocr; invoke it in a script with call(\"ocr\", input). The response ETag is the current revision ID for conditional updates.",
3991
+ "description": "Read the Action and its full current implementation, with input and output JSON Schemas at current_revision.input_schema and current_revision.output_schema. To read a built-in Action, use ns=praxis and name=<bare name>, for example name=ocr; invoke it in a script with call(\"ocr\", input) or in a workflow step with call: ocr and with:. Input that breaks the contract returns INPUT_INVALID, with the fields in errors[]. The response ETag is the current revision ID for conditional updates.",
3986
3992
  "http": "GET",
3987
3993
  "path": "/automation/v1/actions/{ns}/{name}",
3988
3994
  "streaming": "no",
@@ -4398,6 +4404,177 @@ export const operations = [
4398
4404
  "fields": []
4399
4405
  }
4400
4406
  },
4407
+ {
4408
+ "resource": "automation.humanTasks",
4409
+ "method": "list",
4410
+ "summary": "List human tasks",
4411
+ "description": "List the human tasks that praxis/approval workflow steps opened, newest first. By default it returns only open tasks assigned to the caller: their approval inbox. scope=all lists every task of the organization, and status and run_id narrow the list. Use a returned id with retrieve for details and respond to decide. Read-only: listing never changes a task.",
4412
+ "http": "GET",
4413
+ "path": "/automation/v1/human-tasks",
4414
+ "streaming": "no",
4415
+ "pagination": true,
4416
+ "pathParams": [],
4417
+ "query": [
4418
+ {
4419
+ "name": "limit",
4420
+ "type": "integer",
4421
+ "required": false,
4422
+ "description": "Page size, 1–100, default 50."
4423
+ },
4424
+ {
4425
+ "name": "cursor",
4426
+ "type": "string",
4427
+ "required": false,
4428
+ "description": "The next_cursor of the previous page; omit for the first page."
4429
+ },
4430
+ {
4431
+ "name": "status",
4432
+ "type": "array",
4433
+ "itemType": "string",
4434
+ "enum": [
4435
+ "open",
4436
+ "completed",
4437
+ "expired",
4438
+ "cancelled"
4439
+ ],
4440
+ "required": false,
4441
+ "description": "Filter by status, comma-separated: open, completed, expired, cancelled. Defaults to open."
4442
+ },
4443
+ {
4444
+ "name": "run_id",
4445
+ "type": "string",
4446
+ "required": false,
4447
+ "description": "Only tasks opened by this run (run_)."
4448
+ },
4449
+ {
4450
+ "name": "scope",
4451
+ "type": "string",
4452
+ "enum": [
4453
+ "assigned",
4454
+ "all"
4455
+ ],
4456
+ "required": false,
4457
+ "description": "assigned (default) lists only tasks assigned to the caller; all lists every task of the organization."
4458
+ }
4459
+ ]
4460
+ },
4461
+ {
4462
+ "resource": "automation.humanTasks",
4463
+ "method": "retrieve",
4464
+ "summary": "Retrieve a human task",
4465
+ "description": "Read one human task - title, Markdown body, context, actions, form, assignees, mode, due time, responses and outcome - so an assignee can choose an action and fill the form. Read-only; the Console approval page /automation/tasks/{id} reads the same resource.",
4466
+ "http": "GET",
4467
+ "path": "/automation/v1/human-tasks/{id}",
4468
+ "streaming": "no",
4469
+ "pagination": false,
4470
+ "pathParams": [
4471
+ {
4472
+ "name": "id",
4473
+ "sdkName": "id",
4474
+ "description": "Human task ID (htask_), from the list or the run's waits."
4475
+ }
4476
+ ],
4477
+ "query": []
4478
+ },
4479
+ {
4480
+ "resource": "automation.humanTasks",
4481
+ "method": "cancel",
4482
+ "summary": "Cancel a human task",
4483
+ "description": "Cancel an open human task; only the person who started the run or an organization API key may cancel. The task becomes cancelled and the waiting workflow step raises a runtime error with code HUMAN_TASK_CANCELLED, which try/catch can catch. Open tasks are cancelled automatically when their run ends, so this call is not needed then.",
4484
+ "http": "POST",
4485
+ "path": "/automation/v1/human-tasks/{id}/cancel",
4486
+ "streaming": "no",
4487
+ "pagination": false,
4488
+ "pathParams": [
4489
+ {
4490
+ "name": "id",
4491
+ "sdkName": "id",
4492
+ "description": "Human task ID (htask_)."
4493
+ }
4494
+ ],
4495
+ "query": [],
4496
+ "body": {
4497
+ "required": false,
4498
+ "fields": [
4499
+ {
4500
+ "name": "reason",
4501
+ "type": "string",
4502
+ "required": false,
4503
+ "description": "Optional cancellation reason, at most 500 characters."
4504
+ }
4505
+ ]
4506
+ }
4507
+ },
4508
+ {
4509
+ "resource": "automation.humanTasks",
4510
+ "method": "delegate",
4511
+ "summary": "Delegate a human task",
4512
+ "description": "An assignee who has not responded hands their place to another user (to_user), replacing their entry in assignees.users in place, so sequential order is kept. The new user cannot already be an assignee, nor the initiator unless self-approval is allowed. The task must still be open.",
4513
+ "http": "POST",
4514
+ "path": "/automation/v1/human-tasks/{id}/delegate",
4515
+ "streaming": "no",
4516
+ "pagination": false,
4517
+ "pathParams": [
4518
+ {
4519
+ "name": "id",
4520
+ "sdkName": "id",
4521
+ "description": "Human task ID (htask_)."
4522
+ }
4523
+ ],
4524
+ "query": [],
4525
+ "body": {
4526
+ "required": true,
4527
+ "fields": [
4528
+ {
4529
+ "name": "to_user",
4530
+ "type": "string",
4531
+ "required": true,
4532
+ "description": "User ID taking over; cannot already be an assignee, nor the initiator unless self-approval is allowed."
4533
+ }
4534
+ ]
4535
+ }
4536
+ },
4537
+ {
4538
+ "resource": "automation.humanTasks",
4539
+ "method": "respond",
4540
+ "summary": "Respond to a human task",
4541
+ "description": "Submit an action (action_id), form values (values) and a comment as the calling user. Depending on the task's mode the response either decides it (status becomes completed, outcome is set, and the waiting workflow resumes with outcome as the step output) or is recorded while other assignees are awaited. When two assignees respond at once, exactly one decides and the other gets TASK_CLOSED. An agent may respond only if the workflow set allow_agent_decision. Send an Idempotency-Key to retry safely.",
4542
+ "http": "POST",
4543
+ "path": "/automation/v1/human-tasks/{id}/respond",
4544
+ "streaming": "no",
4545
+ "pagination": false,
4546
+ "pathParams": [
4547
+ {
4548
+ "name": "id",
4549
+ "sdkName": "id",
4550
+ "description": "Human task ID (htask_)."
4551
+ }
4552
+ ],
4553
+ "query": [],
4554
+ "body": {
4555
+ "required": true,
4556
+ "fields": [
4557
+ {
4558
+ "name": "action_id",
4559
+ "type": "string",
4560
+ "required": true,
4561
+ "description": "The chosen action ID from the task's actions, for example approve."
4562
+ },
4563
+ {
4564
+ "name": "values",
4565
+ "type": "object",
4566
+ "required": false,
4567
+ "description": "Any JSON object whose keys are strings and whose values are any JSON value."
4568
+ },
4569
+ {
4570
+ "name": "comment",
4571
+ "type": "string",
4572
+ "required": false,
4573
+ "description": "Comment of at most 4000 characters; required when the action has require_comment true."
4574
+ }
4575
+ ]
4576
+ }
4577
+ },
4401
4578
  {
4402
4579
  "resource": "automation.resolve",
4403
4580
  "method": "retrieve",
@@ -4578,7 +4755,7 @@ export const operations = [
4578
4755
  "resource": "automation.runs",
4579
4756
  "method": "create",
4580
4757
  "summary": "Run a published target or execute draft source",
4581
- "description": "Execute a published script or workflow with target, or test unpublished code directly with source and language (ts for TypeScript, yaml for workflow YAML), without first saving or publishing a definition. Minimal script: `export default async ({ file_id }: { file_id: string }) => { const result = await call(\"ocr\", { document: { type: \"file\", file_id } }); return result; }`; send it as source with language=\"ts\", input={\"file_id\":\"<uploaded file ID>\"} and wait=0, using a PDF or image already uploaded to your account. To call a platform API directly in the same script, use the praxis SDK object, for example `praxis.model.ocr.create({ body: { model: \"glm-ocr\", document: { type: \"file\", file_id } } })`; Action IDs are strings passed to call(), not SDK methods such as praxis.ocr(...). praxis, call, invoke, console and codemode are module-scope bindings, not on globalThis, and need no import; invoke(\"namespace/name\", input) starts a child run. target and source are mutually exclusive; target accepts ns/name@version, @tag or @range and defaults to latest when @ is omitted. Source/input validation precedes run creation, so a separate validate call is optional. input defaults to {} and must match the input schema and fit within 1 MiB. wait is 0–60 seconds (default 0): a terminal run returns 200, otherwise 202. Use the returned id with praxis.automation.runs.retrieve and inspect status, output and error; acceptance does not mean successful completion. For long-running, background or batch work, use wait: 0 and poll the run, or split work into child runs or a workflow; wait only controls the response wait and does not extend execution limits. Actions time out after 30 s (run-sandbox after 10 min); scripts have a 5 min wall-clock limit and a 30 s CPU limit; workflows default to 24 h and allow up to 7 days. Each run can start at most 100 child runs, with at most 20 active at once; nesting depth is limited to 10. Idempotency-Key is scoped to tenant, method and path for 24 hours, excluding wait from the fingerprint; replay returns the current run with Idempotent-Replayed: true, changed contents return 422 and an in-flight request returns 409. New non-deterministic run IDs contain 78 characters, compared with 46 for legacy random IDs; treat IDs as opaque strings. Historical and deterministic IDs remain valid; same-millisecond order is not guaranteed.",
4758
+ "description": "Execute a published script or workflow with target, or test unpublished code directly with source and language (ts for TypeScript, yaml for workflow YAML), without first saving or publishing a definition. Minimal script: `export default async ({ file_id }: { file_id: string }) => { const result = await call(\"ocr\", { document: { type: \"file\", file_id } }); return result; }`; send it as source with language=\"ts\", input={\"file_id\":\"<uploaded file ID>\"} and wait=0, using a PDF or image already uploaded to your account. To call a platform API directly in the same script, use the praxis SDK object, for example `praxis.model.ocr.create({ body: { model: \"glm-ocr\", document: { type: \"file\", file_id } } })`; Action IDs are strings passed to call(), not SDK methods such as praxis.ocr(...). praxis, call, invoke, console and codemode are module-scope bindings, not on globalThis, and need no import; invoke(\"namespace/name\", input) starts a child run. target and source are mutually exclusive; target accepts ns/name@version, @tag or @range and defaults to latest when @ is omitted. Source/input validation precedes run creation, so a separate validate call is optional. input defaults to {} and must match the input schema and fit within 1 MiB. wait is 0–60 seconds (default 0): a terminal run returns 200, otherwise 202. Use the returned id with praxis.automation.runs.retrieve and inspect status, output and error; acceptance does not mean successful completion. For long-running, background or batch work, use wait: 0 and poll the run, or split work into child runs or a workflow; wait only controls the response wait and does not extend execution limits. Actions time out after 30 s (run-sandbox after 10 min); scripts have a 5 min wall-clock limit and a 30 s CPU limit; workflows default to 24 h and allow up to 30 days. Each run can start at most 100 child runs, with at most 20 active at once; nesting depth is limited to 10. Idempotency-Key is scoped to tenant, method and path for 24 hours, excluding wait from the fingerprint; replay returns the current run with Idempotent-Replayed: true, changed contents return 422 and an in-flight request returns 409. With language=yaml, source is a workflow YAML: the run input is . in the first step, and the shape is described in create workflow. Error details are in errors[] (pointer, detail, hint). New non-deterministic run IDs contain 78 characters, compared with 46 for legacy random IDs; treat IDs as opaque strings. Historical and deterministic IDs remain valid; same-millisecond order is not guaranteed.",
4582
4759
  "http": "POST",
4583
4760
  "path": "/automation/v1/runs",
4584
4761
  "streaming": "no",
@@ -5070,7 +5247,7 @@ export const operations = [
5070
5247
  "resource": "automation.scripts",
5071
5248
  "method": "create",
5072
5249
  "summary": "Create a script",
5073
- "description": "Save a TypeScript script as an editable draft for later reuse; this does not publish or start a run. Choose your own namespace without registering it first; praxis is reserved for built-in Actions. Scripts and workflows share names within the tenant; a duplicate returns NAME_TAKEN. The draft is a source string with a default-exported function, for example `export default async (input: {name: string}) => ({greeting: \"Hello, \" + input.name});`. Scripts provide praxis, call, invoke, console and codemode as module-scope bindings, not on globalThis, with no import needed: praxis.<domain>.<resource>.<method>(...) calls a platform API, call(\"ocr\", input) calls a built-in Action, and invoke(\"namespace/name\", input) starts a child run. Action IDs are strings (bare names for built-ins, namespace/name for your own Actions); praxis.ocr(...) does not exist. To test it, pass that source and language=ts to praxis.automation.runs.create without publishing. To publish later, use the returned draft.revision as expected_draft_revision.",
5250
+ "description": "Save a TypeScript script as an editable draft for later reuse; this does not publish or start a run. Choose your own namespace without registering it first; praxis is reserved for built-in Actions. Scripts and workflows share names within the tenant; a duplicate returns NAME_TAKEN. The draft is a source string with a default-exported function, for example `export default async (input: {name: string}) => ({greeting: \"Hello, \" + input.name});`. Scripts provide praxis, call, invoke, console and codemode as module-scope bindings, not on globalThis, with no import needed: praxis.<domain>.<resource>.<method>(...) calls a platform API, call(\"ocr\", input) calls a built-in Action, and invoke(\"namespace/name\", input) starts a child run. Action IDs are strings (bare names for built-ins, namespace/name for your own Actions); praxis.ocr(...) does not exist. The return value is limited to 1 MiB: write large results to a file with call(\"write-file\", ...) and return the file ID. A call error carries errors[] (pointer, detail, hint); String(e) is only the summary. To test it, pass that source and language=ts to praxis.automation.runs.create without publishing. To publish later, use the returned draft.revision as expected_draft_revision.",
5074
5251
  "http": "POST",
5075
5252
  "path": "/automation/v1/scripts",
5076
5253
  "streaming": "no",
@@ -6019,7 +6196,7 @@ export const operations = [
6019
6196
  "resource": "automation.validate",
6020
6197
  "method": "create",
6021
6198
  "summary": "Validate a definition",
6022
- "description": "Check source without executing it when you need diagnostics, inferred schemas or references. This is optional before praxis.automation.runs.create, which also validates source before execution. Actions, scripts and workflows are supported; results include validity without saving. Invalid source is reported with valid=false. Script/action output schemas are inferred from return types: Promise unwrapping, Record, intersections and Date. Unknown types yield an empty schema and a warning in warnings. Source diagnostics use /source or /implementation/source with 1-based line/column. For kind=action the same admission checks as action creation apply (no external imports, platform operations only as direct call(praxis/<api>.<op>, input) calls, no agent or automation calls), so source that validates is not rejected at creation.",
6199
+ "description": "Check source without executing it when you need diagnostics, inferred schemas or references. This is optional before praxis.automation.runs.create, which also validates source before execution. Actions, scripts and workflows are supported; results include validity without saving. Invalid source is reported with valid=false. Script/action output schemas are inferred from return types: Promise unwrapping, Record, intersections and Date. Unknown types yield an empty schema and a warning in warnings. Source diagnostics use /source or /implementation/source with 1-based line/column. For kind=action the same admission checks as action creation apply (no external imports, platform operations only as direct call(praxis/<api>.<op>, input) calls, no agent or automation calls), so source that validates is not rejected at creation. For kind=workflow the YAML needs document (dsl, namespace, name, version) and do; each problem is one entry in errors[] (pointer, detail, hint), so read the first one. A listen outside the supported subset (to.all, inside a fork) and emit are not reported here and fail with DEFINITION_INVALID only when a run is created. Workflow syntax reference: https://deepraxis.com/docs/developers/automation/reference/workflow-syntax.",
6023
6200
  "http": "POST",
6024
6201
  "path": "/automation/v1/validate",
6025
6202
  "streaming": "no",
@@ -6126,7 +6303,7 @@ export const operations = [
6126
6303
  "resource": "automation.workflows",
6127
6304
  "method": "create",
6128
6305
  "summary": "Create a workflow",
6129
- "description": "Save a YAML workflow as an editable draft without publishing or starting a run. Choose your own namespace without registering it first; praxis is reserved for built-in Actions. To test the draft, send its source and language=yaml to praxis.automation.runs.create. Scripts and workflows share names within the tenant; a duplicate returns NAME_TAKEN. run.workflow accepts ns/name@range or {namespace, name, version, input}; run.script uses the same reference shape as a platform extension. Object namespace, name and version are required; version accepts an exact version, dist-tag or range, locked at publication. Object input defaults to {} and supports expressions; string references retain task-level with. run.await defaults to true and returns the child output. With false, the child uses detach and the task immediately returns {run_id}; parent cancellation does not cascade. Inline script.code returns DEFINITION_INVALID with a detail asking you to save a script and reference it first. raise.error retains its type URI, status, title and detail in the run error.",
6306
+ "description": "Workflow syntax reference: https://deepraxis.com/docs/developers/automation/reference/workflow-syntax. Save a YAML workflow as an editable draft; this does not validate, publish or run it, so check it with validate (kind=workflow) first. Minimal draft: document with dsl (\"1.0.3\"), namespace, name and version, plus a do list of steps, for example document: {dsl: \"1.0.3\", namespace: demo, name: add, version: \"1.0.0\"} and do: [{first: {call: demo/add-one, with: {n: \"${ .n }\"}}}]. call: <ns/name> calls an Action directly (bare name for built-ins such as ocr) and with is the Action input; the input contract is at current_revision.input_schema in the get-action response. run: starts a saved script or child workflow. The run input is . in the first step, and expressions are jq written as a whole ${ ... } string. Limits: Action 30 s (run-sandbox 10 min), workflow 24 h by default and 30 days at most, payload 1 MiB. Test the draft by sending its source and language=yaml to praxis.automation.runs.create. Guide: /docs/developers/automation/guides/write-workflow. Error details are in the errors[] of the response (pointer, detail, hint). Choose your own namespace without registering it first; praxis is reserved for built-in Actions. Scripts and workflows share names within the tenant; a duplicate returns NAME_TAKEN. run.workflow accepts ns/name@range or {namespace, name, version, input}; run.script uses the same reference shape as a platform extension. Object namespace, name and version are required; version accepts an exact version, dist-tag or range, locked at publication. Object input defaults to {} and supports expressions; string references retain task-level with. run.await defaults to true and returns the child output. With false, the child uses detach and the task immediately returns {run_id}; parent cancellation does not cascade. Inline script.code returns DEFINITION_INVALID with a detail asking you to save a script and reference it first. raise.error retains its type URI, status, title and detail in the run error.",
6130
6307
  "http": "POST",
6131
6308
  "path": "/automation/v1/workflows",
6132
6309
  "streaming": "no",
@@ -6196,7 +6373,7 @@ export const operations = [
6196
6373
  "resource": "automation.workflows",
6197
6374
  "method": "update",
6198
6375
  "summary": "Update a workflow draft",
6199
- "description": "Update description, labels or draft with the current draft revision in If-Match. Even metadata-only updates create a new draft revision.",
6376
+ "description": "Update description, labels or draft with the current draft revision in If-Match, taken from draft.revision in the get-workflow response. Even metadata-only updates create a new draft revision. A mismatch returns 412 PRECONDITION_FAILED; read the draft again, merge and retry. The draft is not validated here, so check it with validate (kind=workflow) before publishing. Error details are in errors[]. See the workflow syntax reference at https://deepraxis.com/docs/developers/automation/reference/workflow-syntax.",
6200
6377
  "http": "PATCH",
6201
6378
  "path": "/automation/v1/workflows/{ns}/{name}",
6202
6379
  "streaming": "no",
@@ -6434,7 +6611,7 @@ export const operations = [
6434
6611
  "publish"
6435
6612
  ],
6436
6613
  "summary": "Publish a workflow version",
6437
- "description": "Publish a saved definition from its draft or an ad hoc run as a reusable version for named runs or triggers, validating the definition and locking dependencies. To test unpublished code, use praxis.automation.runs.create with source and language instead. Use draft.revision from create or retrieve as expected_draft_revision. The draft must match expected_draft_revision; an ad hoc run requires from_run and expected_source_sha256. The same version and contents return the existing version; different contents return VERSION_EXISTS, prereleases require an explicit tag (not latest, URL-safe characters only, not a version or range; violations return TAG_REQUIRED or TAG_INVALID with the complete rules in hint), and invalid definitions return DEFINITION_INVALID. Stable releases automatically advance latest only above the highest existing stable version; workflows becoming latest synchronize their declared schedule. String and object run.workflow/run.script references share version resolution and dependency locking. Publishing removes +build metadata from the version number.",
6614
+ "description": "Publish a saved definition from its draft or an ad hoc run as a reusable version for named runs or triggers, validating the definition and locking dependencies. To test unpublished code, use praxis.automation.runs.create with source and language instead. Use draft.revision from create or retrieve as expected_draft_revision. The draft must match expected_draft_revision; an ad hoc run requires from_run and expected_source_sha256. The same version and contents return the existing version; different contents return VERSION_EXISTS, prereleases require an explicit tag (not latest, URL-safe characters only, not a version or range; violations return TAG_REQUIRED or TAG_INVALID with the complete rules in hint), and invalid definitions return DEFINITION_INVALID. Stable releases automatically advance latest only above the highest existing stable version; workflows becoming latest synchronize their declared schedule. String and object run.workflow/run.script references share version resolution and dependency locking. Publishing removes +build metadata from the version number. For a workflow, document namespace, name and version must equal the publish target, otherwise DEFINITION_IDENTITY_MISMATCH; where a DEFINITION_INVALID failure sits is listed in errors[] (pointer, detail, hint).",
6438
6615
  "http": "POST",
6439
6616
  "path": "/automation/v1/workflows/{ns}/{name}/versions",
6440
6617
  "streaming": "no",
@@ -8118,7 +8295,7 @@ export const operations = [
8118
8295
  "resource": "file.files",
8119
8296
  "method": "create",
8120
8297
  "summary": "Upload file",
8121
- "description": "Upload a file to reuse in conversations or attach to a knowledge base. Unlike OpenAI Files, uploads must be nonempty and at most 100000000 bytes, and only user_data, assistants and vision purposes are accepted. Send file bytes as a multipart file part, not a filename or file ID; in the SDK use a File or Blob, for example new File([\"Return within 23 days.\"], \"policy.txt\", { type: \"text/plain\" }). Content determines the MIME type. Supported uploads include PDF, DOCX/XLSX/PPTX, PNG/JPEG/GIF/WebP, MP3/WAV/FLAC/OGG/M4A, MP4/WebM, and UTF-8 JSON/NDJSON/CSV/Markdown/plain text; empty, unsupported, oversized files and unsupported purposes return 400. Use Uploads for larger files. The purpose vision accepts only PNG, JPEG, GIF and WebP, while conversation images require user_data. The returned ID belongs to your tenant; upload alone does not ingest the file into Knowledge. Knowledge attachment has a lower limit of 100000000 bytes. Optionally set expires_after[anchor]=created_at with expires_after[seconds] (3600–2592000), or praxis[expires_in_seconds] (3600–7776000), never both. Without expiry, the file persists until deleted.",
8298
+ "description": "Upload a file to reuse in conversations or attach to a knowledge base. Unlike OpenAI Files, uploads must be nonempty and at most 100000000 bytes, and only user_data and vision purposes are accepted. Send file bytes as a multipart file part, not a filename or file ID; in the SDK use a File or Blob, for example new File([\"Return within 23 days.\"], \"policy.txt\", { type: \"text/plain\" }). Content determines the MIME type. Supported uploads include PDF, DOCX/XLSX/PPTX, PNG/JPEG/GIF/WebP, MP3/WAV/FLAC/OGG/M4A, MP4/WebM, and UTF-8 JSON/NDJSON/CSV/Markdown/plain text; empty, unsupported, oversized files and unsupported purposes return 400. Use Uploads for larger files. The purpose vision accepts only PNG, JPEG, GIF and WebP, while conversation images require user_data. The returned ID belongs to your tenant; upload alone does not ingest the file into Knowledge. Knowledge attachment has a lower limit of 100000000 bytes. Optionally set expires_after[anchor]=created_at with expires_after[seconds] (3600–7776000). Without expiry, the file persists until deleted.",
8122
8299
  "http": "POST",
8123
8300
  "path": "/file/v1/files",
8124
8301
  "streaming": "no",
@@ -8140,23 +8317,16 @@ export const operations = [
8140
8317
  "type": "string",
8141
8318
  "enum": [
8142
8319
  "user_data",
8143
- "assistants",
8144
8320
  "vision"
8145
8321
  ],
8146
8322
  "required": true,
8147
- "description": "Purpose label stored with the file: user_data, assistants or vision. The vision purpose accepts only PNG, JPEG, GIF and WebP images. Conversation image references require user_data."
8323
+ "description": "Purpose label stored with the file: user_data or vision. The vision purpose accepts only PNG, JPEG, GIF and WebP images. Conversation image references require user_data."
8148
8324
  },
8149
8325
  {
8150
8326
  "name": "expires_after",
8151
8327
  "type": "object",
8152
8328
  "required": false,
8153
8329
  "description": "Optional expiry relative to created_at. Files without an expiry persist until deleted."
8154
- },
8155
- {
8156
- "name": "praxis",
8157
- "type": "object",
8158
- "required": false,
8159
- "description": "Own-face extensions. Use at most one expiry setting."
8160
8330
  }
8161
8331
  ]
8162
8332
  }
@@ -8219,7 +8389,7 @@ export const operations = [
8219
8389
  "resource": "file.uploads",
8220
8390
  "method": "create",
8221
8391
  "summary": "Create an upload",
8222
- "description": "Start a multipart upload for a file larger than the 100000000-byte direct-upload limit. Supply the exact byte length, filename, MIME type and purpose. Unlike OpenAI, uploads accept at most 2 GiB (2147483648 bytes) and only user_data, assistants and vision purposes. Add parts of at most 64000000 bytes and complete within one hour. Optional part_size enables fixed-size, retryable parts. expires_after applies to the resulting file (3600–7776000 seconds on this own face); without it the file persists until deleted.",
8392
+ "description": "Start a multipart upload for a file larger than the 100000000-byte direct-upload limit. Supply the exact byte length, filename, MIME type and purpose. Unlike OpenAI, uploads accept at most 2 GiB (2147483648 bytes) and only user_data and vision purposes. Add parts of at most 64000000 bytes and complete within one hour. Optional part_size enables fixed-size, retryable parts. expires_after applies to the resulting file (3600–7776000 seconds on this own face); without it the file persists until deleted.",
8223
8393
  "http": "POST",
8224
8394
  "path": "/file/v1/uploads",
8225
8395
  "streaming": "no",
@@ -8252,11 +8422,10 @@ export const operations = [
8252
8422
  "type": "string",
8253
8423
  "enum": [
8254
8424
  "user_data",
8255
- "assistants",
8256
8425
  "vision"
8257
8426
  ],
8258
8427
  "required": true,
8259
- "description": "Use user_data for conversation attachments, assistants for assistant files, or vision for PNG, JPEG, GIF and WebP images."
8428
+ "description": "Use user_data for conversation attachments, or vision for PNG, JPEG, GIF and WebP images."
8260
8429
  },
8261
8430
  {
8262
8431
  "name": "expires_after",
@@ -9436,7 +9605,7 @@ export const operations = [
9436
9605
  "name": "overwrite",
9437
9606
  "type": "boolean",
9438
9607
  "required": false,
9439
- "description": "Allow replacing an existing public_id, preserving its asset_id and increasing its version. False returns the existing resource without replacing it; defaults to true."
9608
+ "description": "Allow replacing an existing public_id, preserving its asset_id and increasing its version. Only the latest version is deliverable; old version URLs return 404. Create a new public_id to retain old deliveries. False returns the existing resource without replacing it; defaults to true."
9440
9609
  },
9441
9610
  {
9442
9611
  "name": "tags",
@@ -9494,7 +9663,8 @@ export const operations = [
9494
9663
  {
9495
9664
  "name": "file_id",
9496
9665
  "type": "string",
9497
- "required": true
9666
+ "required": true,
9667
+ "description": "File ID to copy into this library; passed as the upload source instead of file bytes. This creates an independent public copy readable without authentication. Deleting the source File does not delete this asset; do not import confidential content."
9498
9668
  },
9499
9669
  {
9500
9670
  "name": "public_id",
@@ -9548,7 +9718,7 @@ export const operations = [
9548
9718
  "name": "overwrite",
9549
9719
  "type": "boolean",
9550
9720
  "required": false,
9551
- "description": "Allow replacing an existing public_id, preserving its asset_id and increasing its version. False returns the existing resource without replacing it; defaults to true."
9721
+ "description": "Allow replacing an existing public_id, preserving its asset_id and increasing its version. Only the latest version is deliverable; old version URLs return 404. Create a new public_id to retain old deliveries. False returns the existing resource without replacing it; defaults to true."
9552
9722
  },
9553
9723
  {
9554
9724
  "name": "tags",
@@ -10065,7 +10235,7 @@ export const operations = [
10065
10235
  "name": "expression",
10066
10236
  "type": "string",
10067
10237
  "required": false,
10068
- "description": "Asset filter expression supporting field comparisons, AND, OR, NOT, parentheses and suffix wildcards. An empty expression matches all assets."
10238
+ "description": "Asset filter expression supporting field comparisons, AND, OR, NOT, parentheses and suffix wildcards. An empty expression matches all assets. For business metadata use context.sku=KETTLE-RED AND context.revision=2; request with_field: [\"context\"] to include context."
10069
10239
  },
10070
10240
  {
10071
10241
  "name": "sort_by",
@@ -10211,6 +10381,70 @@ export const operations = [
10211
10381
  ]
10212
10382
  }
10213
10383
  },
10384
+ {
10385
+ "resource": "meta.docs",
10386
+ "method": "search",
10387
+ "summary": "Search platform documentation",
10388
+ "description": "Find guides and references by keyword before reading them with praxis.meta.docs.retrieve. Public; no API key required. Matches documentation titles, headings and page text without case sensitivity; all query words must occur. q is required; limit defaults to 20 and accepts 1–50. lang defaults to zh or use en for English. Returns paths, page titles, canonical URLs and short matching snippets; no matches returns an empty array.",
10389
+ "http": "GET",
10390
+ "path": "/meta/v1/docs/search",
10391
+ "streaming": "no",
10392
+ "pagination": false,
10393
+ "pathParams": [],
10394
+ "query": [
10395
+ {
10396
+ "name": "q",
10397
+ "type": "string",
10398
+ "required": true,
10399
+ "description": "Keywords describing the syntax or guide needed, for example export or workflow."
10400
+ },
10401
+ {
10402
+ "name": "limit",
10403
+ "type": "integer",
10404
+ "required": false,
10405
+ "description": "Maximum number of matching pages returned; integer 1–50, default 20."
10406
+ },
10407
+ {
10408
+ "name": "lang",
10409
+ "type": "string",
10410
+ "enum": [
10411
+ "zh",
10412
+ "en"
10413
+ ],
10414
+ "required": false,
10415
+ "description": "Documentation language: zh for Chinese (default), en for English."
10416
+ }
10417
+ ]
10418
+ },
10419
+ {
10420
+ "resource": "meta.docs",
10421
+ "method": "retrieve",
10422
+ "summary": "Read documentation Markdown",
10423
+ "description": "Read a platform guide or reference before implementing an unfamiliar capability. Public; no API key required. Take path from praxis.meta.docs.search, or use developers/automation/guides/write-workflow. Append #heading-id to path to read only that section, including its subsections. Encode the hash as %23 over HTTP; SDK callers pass it in the path string. lang defaults to zh; en selects the English page. Unknown pages or anchors return DOC_NOT_FOUND; search again for a valid path.",
10424
+ "http": "GET",
10425
+ "path": "/meta/v1/docs/{path}",
10426
+ "streaming": "no",
10427
+ "pagination": false,
10428
+ "pathParams": [
10429
+ {
10430
+ "name": "path",
10431
+ "sdkName": "path",
10432
+ "description": "Slash-separated documentation path from docs.search; optionally append #heading-id to select a section."
10433
+ }
10434
+ ],
10435
+ "query": [
10436
+ {
10437
+ "name": "lang",
10438
+ "type": "string",
10439
+ "enum": [
10440
+ "zh",
10441
+ "en"
10442
+ ],
10443
+ "required": false,
10444
+ "description": "Documentation language: zh for Chinese (default), en for English."
10445
+ }
10446
+ ]
10447
+ },
10214
10448
  {
10215
10449
  "resource": "meta.health",
10216
10450
  "method": "retrieve",