@deepraxis/sdk 0.1.1-dev.b176367 → 0.1.1-dev.b3a6ca0

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."
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",
@@ -157,6 +161,12 @@ export const operations = [
157
161
  "required": false,
158
162
  "description": "Praxis extension: default subagent model ID, pinned in the agent revision. Call model overrides this; otherwise it overrides the roster member model or the parent model for built-ins. Null clears the default. /agent/v1 only."
159
163
  },
164
+ {
165
+ "name": "image_model",
166
+ "type": "string",
167
+ "required": false,
168
+ "description": "Model used by the imagine image tool; defaults to gpt-image-2 when unset. Only models that can generate images are accepted. Omit to preserve; null clears the configured model. /agent/v1 only."
169
+ },
160
170
  {
161
171
  "name": "subagents",
162
172
  "type": "array",
@@ -187,7 +197,7 @@ export const operations = [
187
197
  "name": "avatar",
188
198
  "type": "string",
189
199
  "required": false,
190
- "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."
191
201
  },
192
202
  {
193
203
  "name": "environment_id",
@@ -220,7 +230,7 @@ export const operations = [
220
230
  "resource": "agent.agents",
221
231
  "method": "retrieve",
222
232
  "summary": "Get agent",
223
- "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.",
224
234
  "http": "GET",
225
235
  "path": "/agent/v1/agents/{agent_id}",
226
236
  "streaming": "no",
@@ -229,7 +239,7 @@ export const operations = [
229
239
  {
230
240
  "name": "agent_id",
231
241
  "sdkName": "agent_id",
232
- "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_…."
233
243
  }
234
244
  ],
235
245
  "query": [
@@ -237,7 +247,7 @@ export const operations = [
237
247
  "name": "version",
238
248
  "type": "number",
239
249
  "required": false,
240
- "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."
241
251
  }
242
252
  ]
243
253
  },
@@ -245,7 +255,7 @@ export const operations = [
245
255
  "resource": "agent.agents",
246
256
  "method": "update",
247
257
  "summary": "Update agent",
248
- "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.",
249
259
  "http": "POST",
250
260
  "path": "/agent/v1/agents/{agent_id}",
251
261
  "streaming": "no",
@@ -254,7 +264,7 @@ export const operations = [
254
264
  {
255
265
  "name": "agent_id",
256
266
  "sdkName": "agent_id",
257
- "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_…."
258
268
  }
259
269
  ],
260
270
  "query": [],
@@ -284,13 +294,13 @@ export const operations = [
284
294
  "name": "model",
285
295
  "type": "object",
286
296
  "required": false,
287
- "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."
288
298
  },
289
299
  {
290
300
  "name": "multiagent",
291
301
  "type": "object",
292
302
  "required": false,
293
- "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."
294
304
  },
295
305
  {
296
306
  "name": "name",
@@ -322,19 +332,19 @@ export const operations = [
322
332
  "name": "version",
323
333
  "type": "number",
324
334
  "required": false,
325
- "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."
326
336
  },
327
337
  {
328
338
  "name": "apply",
329
339
  "type": "boolean",
330
340
  "required": false,
331
- "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."
332
342
  },
333
343
  {
334
344
  "name": "version_note",
335
345
  "type": "string",
336
346
  "required": false,
337
- "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."
338
348
  },
339
349
  {
340
350
  "name": "bindings",
@@ -347,11 +357,13 @@ export const operations = [
347
357
  "name": "kind",
348
358
  "type": "string",
349
359
  "enum": [
360
+ "general",
350
361
  "personal",
351
- "service"
362
+ "service",
363
+ "assume"
352
364
  ],
353
365
  "required": false,
354
- "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."
355
367
  },
356
368
  {
357
369
  "name": "computer_id",
@@ -365,6 +377,12 @@ export const operations = [
365
377
  "required": false,
366
378
  "description": "Praxis extension: default subagent model ID, pinned in the agent revision. Call model overrides this; otherwise it overrides the roster member model or the parent model for built-ins. Null clears the default. /agent/v1 only."
367
379
  },
380
+ {
381
+ "name": "image_model",
382
+ "type": "string",
383
+ "required": false,
384
+ "description": "Model used by the imagine image tool; defaults to gpt-image-2 when unset. Only models that can generate images are accepted. Omit to preserve; null clears the configured model. /agent/v1 only."
385
+ },
368
386
  {
369
387
  "name": "subagents",
370
388
  "type": "array",
@@ -395,7 +413,7 @@ export const operations = [
395
413
  "name": "avatar",
396
414
  "type": "string",
397
415
  "required": false,
398
- "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."
399
417
  },
400
418
  {
401
419
  "name": "environment_id",
@@ -424,6 +442,24 @@ export const operations = [
424
442
  ]
425
443
  }
426
444
  },
445
+ {
446
+ "resource": "agent.agents",
447
+ "method": "retrieveAppearance",
448
+ "summary": "Get agent appearance",
449
+ "description": "Read the saved chat appearance of a service agent.\n\nAgent Kit calls this from the page with a customer access token of this agent; your API key and console members can read it too. A token of another agent returns 404. The body is the same as the embed appearance read; a missing appearance returns the agent's own name and avatar only. Responses are private and cacheable for 60 seconds.",
450
+ "http": "GET",
451
+ "path": "/agent/v1/agents/{agent_id}/appearance",
452
+ "streaming": "no",
453
+ "pagination": false,
454
+ "pathParams": [
455
+ {
456
+ "name": "agent_id",
457
+ "sdkName": "agent_id",
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_…."
459
+ }
460
+ ],
461
+ "query": []
462
+ },
427
463
  {
428
464
  "resource": "agent.agents",
429
465
  "method": "archive",
@@ -437,11 +473,64 @@ export const operations = [
437
473
  {
438
474
  "name": "agent_id",
439
475
  "sdkName": "agent_id",
440
- "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_…."
441
477
  }
442
478
  ],
443
479
  "query": []
444
480
  },
481
+ {
482
+ "resource": "agent.agents.customers",
483
+ "method": "list",
484
+ "summary": "List customers",
485
+ "description": "List the customers of a service agent, identified and anonymous, most recently seen first.\n\nCall this from your backend with your API key, or from the console. Customers follow Shopify Admin customers (list, retrieve, block, sign-out and data deletion of the people who use your storefront), so that experience applies. The list includes customers who signed in but have not started a session yet, and customers recorded under your own ids by embed tokens before customer sign-in existed; an id first seen that way is identified unless it starts with anon_. Unlike Shopify, a customer can be anonymous: a visitor admitted with the publishable key gets an anon_ id, and when it later signs in with anonymous_access_token it is merged: merged_into names the identified customer, and its sessions count toward that customer. Filter with q (a case-sensitive customer id prefix), type (identified or anonymous) and blocked (true or false). limit is 1 to 100, default 20; reuse next_page with the same filters and limit. A customer access token gets 404. Example: GET /agent/v1/agents/agent_example/customers?type=identified&blocked=false&limit=50.",
486
+ "http": "GET",
487
+ "path": "/agent/v1/agents/{agent_id}/customers",
488
+ "streaming": "no",
489
+ "pagination": false,
490
+ "pathParams": [
491
+ {
492
+ "name": "agent_id",
493
+ "sdkName": "agent_id",
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_…."
495
+ }
496
+ ],
497
+ "query": [
498
+ {
499
+ "name": "limit",
500
+ "type": "integer",
501
+ "required": false,
502
+ "description": "Maximum customers per page, 1 to 100; defaults to 20."
503
+ },
504
+ {
505
+ "name": "page",
506
+ "type": "string",
507
+ "required": false,
508
+ "description": "next_page from the previous response with the same q, type, blocked and limit."
509
+ },
510
+ {
511
+ "name": "q",
512
+ "type": "string",
513
+ "required": false,
514
+ "description": "Case-sensitive literal prefix of the customer id; omit for all customers."
515
+ },
516
+ {
517
+ "name": "type",
518
+ "type": "string",
519
+ "enum": [
520
+ "identified",
521
+ "anonymous"
522
+ ],
523
+ "required": false,
524
+ "description": "Only identified or only anonymous customers; omit for both."
525
+ },
526
+ {
527
+ "name": "blocked",
528
+ "type": "boolean",
529
+ "required": false,
530
+ "description": "true for blocked customers only, false for customers who are not blocked; omit for both."
531
+ }
532
+ ]
533
+ },
445
534
  {
446
535
  "resource": "agent.agents.customers.auth.accessTokens",
447
536
  "method": "create",
@@ -455,7 +544,7 @@ export const operations = [
455
544
  {
456
545
  "name": "agent_id",
457
546
  "sdkName": "agent_id",
458
- "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_…."
459
548
  }
460
549
  ],
461
550
  "query": [],
@@ -477,7 +566,7 @@ export const operations = [
477
566
  {
478
567
  "name": "agent_id",
479
568
  "sdkName": "agent_id",
480
- "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_…."
481
570
  }
482
571
  ],
483
572
  "query": []
@@ -495,7 +584,7 @@ export const operations = [
495
584
  {
496
585
  "name": "agent_id",
497
586
  "sdkName": "agent_id",
498
- "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_…."
499
588
  }
500
589
  ],
501
590
  "query": []
@@ -504,7 +593,7 @@ export const operations = [
504
593
  "resource": "agent.agents.customers.auth.grantCodes",
505
594
  "method": "create",
506
595
  "summary": "Create customer grant code",
507
- "description": "Sign your logged-in customer in to a service agent from your backend with a one-time grant code that Agent Kit exchanges for a customer access token.\n\nCall this from your backend with your API key after your own login succeeds, then pass the returned code to Agent Kit in the browser; never call it from the browser. Customer authorization follows Shopify Storefront customer access tokens (Multipass-style sign-in, a short-lived token, renewal and logout), so that experience applies. customer_id is your own identifier for the customer: use an opaque id such as your database user id, not an email address or phone number. The value auth is reserved, and ids starting with anon_ are reserved for anonymous customers. The code works once and expires after expires_in seconds (default 900). The sign-in it starts lasts max_session_seconds (default 7 days); version, budget_cents, system_message, agent_override and metadata apply to every token of the sign-in. Unlike Shopify, origin binds the whole sign-in to one page origin, and anonymous_access_token merges the conversations of the anonymous visitor who chatted before signing in into this customer. Example body: {\"customer_id\":\"cus_8f2a91\",\"origin\":\"https://shop.example.com\"}.",
596
+ "description": "Sign your logged-in customer in to a service agent from your backend with a one-time grant code that Agent Kit exchanges for a customer access token.\n\nCall this from your backend with your API key after your own login succeeds, then pass the returned code to Agent Kit in the browser; never call it from the browser. Customer authorization follows Shopify Storefront customer access tokens (Multipass-style sign-in, a short-lived token, renewal and logout), so that experience applies. customer_id is your own identifier for the customer: use an opaque id such as your database user id, not an email address or phone number. The value auth is reserved, and ids starting with anon_ are reserved for anonymous customers. The code works once and expires after expires_in seconds (default 900). The sign-in it starts lasts max_session_seconds (default 7 days); version, budget (US dollars, at most 2 decimals), system_message, agent_override and metadata apply to every token of the sign-in. Unlike Shopify, origin binds the whole sign-in to one page origin, and anonymous_access_token merges the conversations of the anonymous visitor who chatted before signing in into this customer. Example body: {\"customer_id\":\"cus_8f2a91\",\"origin\":\"https://shop.example.com\"}.",
508
597
  "http": "POST",
509
598
  "path": "/agent/v1/agents/{agent_id}/customers/auth/grant_codes",
510
599
  "streaming": "no",
@@ -513,7 +602,7 @@ export const operations = [
513
602
  {
514
603
  "name": "agent_id",
515
604
  "sdkName": "agent_id",
516
- "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_…."
517
606
  }
518
607
  ],
519
608
  "query": [],
@@ -533,10 +622,10 @@ export const operations = [
533
622
  "description": "Existing agent version that every token of this sign-in pins. Defaults to the agent's active_version when the code is issued."
534
623
  },
535
624
  {
536
- "name": "budget_cents",
537
- "type": "integer",
625
+ "name": "budget",
626
+ "type": "object",
538
627
  "required": false,
539
- "description": "Budget in cents for each session the customer starts. Defaults to the embed policy session budget and cannot exceed its maximum."
628
+ "description": "Budget for each session the customer starts, in the same shape as a session budget. Defaults to the embed policy session budget and cannot exceed its maximum."
540
629
  },
541
630
  {
542
631
  "name": "system_message",
@@ -591,61 +680,24 @@ export const operations = [
591
680
  }
592
681
  },
593
682
  {
594
- "resource": "agent.agents.endUsers",
595
- "method": "list",
596
- "summary": "List End Users",
597
- "description": "List users who have sessions or token issuance history on a service agent.\n\nOrdered by last_active_at and external_user_id descending. q is a case-sensitive literal prefix, including underscores. limit is 1–100, default 20. Reuse next_page with the same organization, agent, q and limit. Preemptively blocked users without history do not appear. End-user credentials and inaccessible or personal agents return 404.",
598
- "http": "GET",
599
- "path": "/agent/v1/agents/{agent_id}/end_users",
600
- "streaming": "no",
601
- "pagination": false,
602
- "pathParams": [
603
- {
604
- "name": "agent_id",
605
- "sdkName": "agent_id",
606
- "description": "Active service agent identifier from agent creation or listing."
607
- }
608
- ],
609
- "query": [
610
- {
611
- "name": "limit",
612
- "type": "integer",
613
- "required": false,
614
- "description": "Maximum users per page; defaults to 20."
615
- },
616
- {
617
- "name": "page",
618
- "type": "string",
619
- "required": false,
620
- "description": "next_page from the previous response with the same agent, q and limit."
621
- },
622
- {
623
- "name": "q",
624
- "type": "string",
625
- "required": false,
626
- "description": "Case-sensitive literal prefix of external_user_id; omit or use an empty string for all users."
627
- }
628
- ]
629
- },
630
- {
631
- "resource": "agent.agents.endUsers",
683
+ "resource": "agent.agents.customers",
632
684
  "method": "delete",
633
- "summary": "Delete end-user data",
634
- "description": "Delete a host application's end-user data from one service agent after explicit confirmation.\n\nDevelop only. Set confirm to the exact external_user_id; missing or mismatched confirmation returns 400. Returns 202 with a pending task id, not completion. Poll the deletion endpoint. Concurrent requests reuse the unfinished task; retry DELETE after failure to resume it. Tokens are revoked and the user is blocked before a seven-day recovery snapshot is verified. Sessions including child sessions, conversation data, grants and feedback are then removed. A pre-existing block remains; a temporary block is removed on success. Attachment metadata is recorded and File attachments are retained. No charge is introduced by this operation. Example: DELETE /agent/v1/agents/agent_example/end_users/customer_123?confirm=customer_123.",
685
+ "summary": "Delete customer data",
686
+ "description": "Delete a customer's data from one service agent after explicit confirmation.\n\nDevelop only. Set confirm to the exact customer id; a missing or different confirm returns 400 naming the value to send. Returns 202 with a pending task id; poll the deletion endpoint. Concurrent requests reuse the unfinished task; retry DELETE after failure to resume it. Tokens are revoked and the customer is blocked before a seven-day recovery snapshot is verified; sessions including child sessions, conversation data, grants and feedback are then removed. A block that existed before stays; a temporary block is removed on success. File attachments are retained. Example: DELETE /agent/v1/agents/agent_example/customers/cus_8f2a91?confirm=cus_8f2a91.",
635
687
  "http": "DELETE",
636
- "path": "/agent/v1/agents/{agent_id}/end_users/{external_user_id}",
688
+ "path": "/agent/v1/agents/{agent_id}/customers/{customer_id}",
637
689
  "streaming": "no",
638
690
  "pagination": false,
639
691
  "pathParams": [
640
692
  {
641
693
  "name": "agent_id",
642
694
  "sdkName": "agent_id",
643
- "description": "Active service agent identifier 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_…."
644
696
  },
645
697
  {
646
- "name": "external_user_id",
647
- "sdkName": "external_user_id",
648
- "description": "Host user identifier supplied at issuance or from end-user listing."
698
+ "name": "customer_id",
699
+ "sdkName": "customer_id",
700
+ "description": "Customer id from customer listing, or your own customer_id."
649
701
  }
650
702
  ],
651
703
  "query": [
@@ -653,121 +705,121 @@ export const operations = [
653
705
  "name": "confirm",
654
706
  "type": "string",
655
707
  "required": true,
656
- "description": "Must exactly equal the external_user_id path parameter to confirm destructive deletion."
708
+ "description": "Must equal the customer_id path parameter exactly, confirming the destructive deletion."
657
709
  }
658
710
  ]
659
711
  },
660
712
  {
661
- "resource": "agent.agents.endUsers",
713
+ "resource": "agent.agents.customers",
662
714
  "method": "retrieve",
663
- "summary": "Get End User",
664
- "description": "Inspect one end user and their twenty most recently updated sessions.\n\nUse external_user_id from listing or your host application. Users without session or issuance history return 404, including preemptively blocked users. End-user credentials and inaccessible or personal agents return 404.",
715
+ "summary": "Get customer",
716
+ "description": "Retrieve one customer of a service agent with its twenty most recently updated sessions.\n\nUse the customer id from the list or your own customer_id. An unknown customer returns 404 CUSTOMER_NOT_FOUND, and so does a customer access token. Unlike Shopify, an identified customer's session_count, cost and recent_sessions include the sessions of anonymous customers merged into it; the merged anonymous customer still shows its own sessions and its merged_into.",
665
717
  "http": "GET",
666
- "path": "/agent/v1/agents/{agent_id}/end_users/{external_user_id}",
718
+ "path": "/agent/v1/agents/{agent_id}/customers/{customer_id}",
667
719
  "streaming": "no",
668
720
  "pagination": false,
669
721
  "pathParams": [
670
722
  {
671
723
  "name": "agent_id",
672
724
  "sdkName": "agent_id",
673
- "description": "Active service agent identifier 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_…."
674
726
  },
675
727
  {
676
- "name": "external_user_id",
677
- "sdkName": "external_user_id",
678
- "description": "Host user identifier supplied at issuance or from end-user listing."
728
+ "name": "customer_id",
729
+ "sdkName": "customer_id",
730
+ "description": "Customer id from customer listing, or your own customer_id."
679
731
  }
680
732
  ],
681
733
  "query": []
682
734
  },
683
735
  {
684
- "resource": "agent.agents.endUsers.block",
736
+ "resource": "agent.agents.customers.block",
685
737
  "method": "create",
686
- "summary": "Block End User",
687
- "description": "Block token issuance and session creation, then revoke existing tokens for an end user.\n\nMay block a user before any history exists; timestamps are then null and counts and cost are zero. Requires an embed policy, otherwise returns 409 with setup guidance. Deduplicates the policy blocklist and retains its 1000-user maximum. If revocation returns 502, the user remains blocked; retry to finish revocation. Repeats keep the user blocked and revoke any remaining grants. End-user credentials and inaccessible or personal agents return 404.",
738
+ "summary": "Block customer",
739
+ "description": "Block a customer and end every sign-in it has on this agent.\n\nBlocks the customer, then ends every live sign-in the way logout does: each access token is revoked and its open event streams close. From then on grant_codes, access_tokens, renew and new sessions for this customer return CUSTOMER_BLOCKED until you unblock it. Idempotent: a repeat keeps the first block time and revokes whatever is still live. If credential revocation fails the request returns 502 and the customer stays blocked; retry to finish. An unknown customer returns 404 CUSTOMER_NOT_FOUND.",
688
740
  "http": "POST",
689
- "path": "/agent/v1/agents/{agent_id}/end_users/{external_user_id}/block",
741
+ "path": "/agent/v1/agents/{agent_id}/customers/{customer_id}/block",
690
742
  "streaming": "no",
691
743
  "pagination": false,
692
744
  "pathParams": [
693
745
  {
694
746
  "name": "agent_id",
695
747
  "sdkName": "agent_id",
696
- "description": "Active service agent identifier 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_…."
697
749
  },
698
750
  {
699
- "name": "external_user_id",
700
- "sdkName": "external_user_id",
701
- "description": "Host user identifier supplied at issuance or from end-user listing."
751
+ "name": "customer_id",
752
+ "sdkName": "customer_id",
753
+ "description": "Customer id from customer listing, or your own customer_id."
702
754
  }
703
755
  ],
704
756
  "query": []
705
757
  },
706
758
  {
707
- "resource": "agent.agents.endUsers",
759
+ "resource": "agent.agents.customers",
708
760
  "method": "retrieveDeletion",
709
- "summary": "Get end-user deletion",
710
- "description": "Poll the latest deletion task for an end user, including after the user data has been removed.\n\nUse the same agent_id and external_user_id as the confirmed DELETE. Status is pending, snapshotting, deleting, done or failed. Counts are empty until a verified snapshot exists. A failed task remains blocked and resumes when DELETE is retried with matching confirmation. snapshot_key is an operator recovery reference retained for seven days, not a public download URL. End-user credentials, inaccessible or personal agents, and missing tasks return 404. This read does not create a task or charge usage.",
761
+ "summary": "Get customer deletion",
762
+ "description": "Poll the latest deletion task of a customer, including after its data has been removed.\n\nUse the same agent_id and customer id as the confirmed DELETE. Status is pending, snapshotting, deleting, done or failed. Counts are empty until a verified snapshot exists. snapshot_key is an operator recovery reference retained for seven days, not a download URL. A customer access token and a missing task return 404.",
711
763
  "http": "GET",
712
- "path": "/agent/v1/agents/{agent_id}/end_users/{external_user_id}/deletion",
764
+ "path": "/agent/v1/agents/{agent_id}/customers/{customer_id}/deletion",
713
765
  "streaming": "no",
714
766
  "pagination": false,
715
767
  "pathParams": [
716
768
  {
717
769
  "name": "agent_id",
718
770
  "sdkName": "agent_id",
719
- "description": "Active service agent identifier 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_…."
720
772
  },
721
773
  {
722
- "name": "external_user_id",
723
- "sdkName": "external_user_id",
724
- "description": "Host user identifier supplied at issuance or from end-user listing."
774
+ "name": "customer_id",
775
+ "sdkName": "customer_id",
776
+ "description": "Customer id from customer listing, or your own customer_id."
725
777
  }
726
778
  ],
727
779
  "query": []
728
780
  },
729
781
  {
730
- "resource": "agent.agents.endUsers.revokeTokens",
782
+ "resource": "agent.agents.customers.revokeTokens",
731
783
  "method": "create",
732
- "summary": "Revoke End User Tokens",
733
- "description": "Revoke all issued tokens for an end user and terminate their open embed streams.\n\nRevokes credentials before marking grants revoked. Upstream failure returns 502 without changing grant revocation timestamps. Returns the count of newly revoked grants; a repeat without new grants returns zero. Does not block future issuance. End-user credentials and inaccessible or personal agents return 404.",
784
+ "summary": "Revoke customer tokens",
785
+ "description": "Sign a customer out everywhere without blocking it.\n\nEnds every live sign-in of the customer, revoking each access token and closing its open event streams; the customer can sign in again right away. Returns the number of access tokens this request revoked; a repeat returns 0. Credential revocation failure returns 502; retry to finish. An unknown customer returns 404 CUSTOMER_NOT_FOUND.",
734
786
  "http": "POST",
735
- "path": "/agent/v1/agents/{agent_id}/end_users/{external_user_id}/revoke_tokens",
787
+ "path": "/agent/v1/agents/{agent_id}/customers/{customer_id}/revoke_tokens",
736
788
  "streaming": "no",
737
789
  "pagination": false,
738
790
  "pathParams": [
739
791
  {
740
792
  "name": "agent_id",
741
793
  "sdkName": "agent_id",
742
- "description": "Active service agent identifier 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_…."
743
795
  },
744
796
  {
745
- "name": "external_user_id",
746
- "sdkName": "external_user_id",
747
- "description": "Host user identifier supplied at issuance or from end-user listing."
797
+ "name": "customer_id",
798
+ "sdkName": "customer_id",
799
+ "description": "Customer id from customer listing, or your own customer_id."
748
800
  }
749
801
  ],
750
802
  "query": []
751
803
  },
752
804
  {
753
- "resource": "agent.agents.endUsers.unblock",
805
+ "resource": "agent.agents.customers.unblock",
754
806
  "method": "create",
755
- "summary": "Unblock End User",
756
- "description": "Allow an end user to receive new tokens and create new sessions again.\n\nRemoves the user from the blocklist; previously revoked tokens stay revoked. Idempotent. Requires an embed policy, otherwise returns 409 with setup guidance. Returns null timestamps and zero counts and cost when no session or issuance history exists. End-user credentials and inaccessible or personal agents return 404.",
807
+ "summary": "Unblock customer",
808
+ "description": "Allow a blocked customer to sign in and start sessions again.\n\nIdempotent. Access tokens revoked while the customer was blocked stay revoked; sign the customer in again with a new grant code. An unknown customer returns 404 CUSTOMER_NOT_FOUND.",
757
809
  "http": "POST",
758
- "path": "/agent/v1/agents/{agent_id}/end_users/{external_user_id}/unblock",
810
+ "path": "/agent/v1/agents/{agent_id}/customers/{customer_id}/unblock",
759
811
  "streaming": "no",
760
812
  "pagination": false,
761
813
  "pathParams": [
762
814
  {
763
815
  "name": "agent_id",
764
816
  "sdkName": "agent_id",
765
- "description": "Active service agent identifier 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_…."
766
818
  },
767
819
  {
768
- "name": "external_user_id",
769
- "sdkName": "external_user_id",
770
- "description": "Host user identifier supplied at issuance or from end-user listing."
820
+ "name": "customer_id",
821
+ "sdkName": "customer_id",
822
+ "description": "Customer id from customer listing, or your own customer_id."
771
823
  }
772
824
  ],
773
825
  "query": []
@@ -785,7 +837,7 @@ export const operations = [
785
837
  {
786
838
  "name": "agent_id",
787
839
  "sdkName": "agent_id",
788
- "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_…."
789
841
  }
790
842
  ],
791
843
  "query": []
@@ -794,7 +846,7 @@ export const operations = [
794
846
  "resource": "agent.agents.versions",
795
847
  "method": "list",
796
848
  "summary": "List agent versions",
797
- "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.",
798
850
  "http": "GET",
799
851
  "path": "/agent/v1/agents/{agent_id}/versions",
800
852
  "streaming": "no",
@@ -803,7 +855,7 @@ export const operations = [
803
855
  {
804
856
  "name": "agent_id",
805
857
  "sdkName": "agent_id",
806
- "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_…."
807
859
  }
808
860
  ],
809
861
  "query": [
@@ -825,7 +877,7 @@ export const operations = [
825
877
  "resource": "agent.agents.versions",
826
878
  "method": "apply",
827
879
  "summary": "Apply Agent Version",
828
- "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.",
829
881
  "http": "POST",
830
882
  "path": "/agent/v1/agents/{agent_id}/versions/{version}/apply",
831
883
  "streaming": "no",
@@ -834,7 +886,7 @@ export const operations = [
834
886
  {
835
887
  "name": "agent_id",
836
888
  "sdkName": "agent_id",
837
- "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_…."
838
890
  },
839
891
  {
840
892
  "name": "version",
@@ -874,7 +926,7 @@ export const operations = [
874
926
  "resource": "agent.computers",
875
927
  "method": "create",
876
928
  "summary": "Create Computer",
877
- "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.",
878
930
  "http": "POST",
879
931
  "path": "/agent/v1/computers",
880
932
  "streaming": "no",
@@ -1300,7 +1352,7 @@ export const operations = [
1300
1352
  "resource": "agent.deployments",
1301
1353
  "method": "create",
1302
1354
  "summary": "Create deployment",
1303
- "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.",
1304
1356
  "http": "POST",
1305
1357
  "path": "/agent/v1/deployments",
1306
1358
  "streaming": "no",
@@ -1377,7 +1429,7 @@ export const operations = [
1377
1429
  "name": "target",
1378
1430
  "type": "object",
1379
1431
  "required": false,
1380
- "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."
1381
1433
  }
1382
1434
  ]
1383
1435
  }
@@ -1487,7 +1539,7 @@ export const operations = [
1487
1539
  "name": "target",
1488
1540
  "type": "object",
1489
1541
  "required": false,
1490
- "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."
1491
1543
  }
1492
1544
  ]
1493
1545
  }
@@ -1564,204 +1616,6 @@ export const operations = [
1564
1616
  ],
1565
1617
  "query": []
1566
1618
  },
1567
- {
1568
- "resource": "agent.embed",
1569
- "method": "retrieveAppearance",
1570
- "summary": "Read chat appearance",
1571
- "description": "Load saved appearance for an iframe or Hosted chat page. Supply an end-user embed token as Bearer authorization, or a console-issued publishable key in Praxis-Publishable-Key before anonymous token issuance. The credential selects the agent; identity_number and agent_id query parameters are rejected with 400. Missing appearance returns an empty object. Kit option names retain camelCase. Responses are private and cacheable for 60 seconds. Component hosts configure Kit in their own code instead.",
1572
- "http": "GET",
1573
- "path": "/agent/v1/embed/appearance",
1574
- "streaming": "no",
1575
- "pagination": false,
1576
- "pathParams": [],
1577
- "query": []
1578
- },
1579
- {
1580
- "resource": "agent.embed.exchange",
1581
- "method": "create",
1582
- "summary": "Exchange Hosted Code",
1583
- "description": "Redeem a single-use hosted link credential for an end-user token.\n\nRead code from the c fragment parameter of hosted_url returned by embed token creation with hosted true, then remove the fragment before exchanging. No Authorization header is required; the code authenticates this request. The code expires after 60 seconds and is consumed atomically on exchange, so concurrent attempts have only one winner. Expired, used and unknown codes return the same 404 body. Keep the token in memory and return to the host website for a fresh link when it expires; exchange cannot refresh it. Requests are IP limited per minute using the anonymous entrypoint budget (default 20). Example body is {\"code\":\"<code from hosted_url>\"}.",
1584
- "http": "POST",
1585
- "path": "/agent/v1/embed/exchange",
1586
- "streaming": "no",
1587
- "pagination": false,
1588
- "pathParams": [],
1589
- "query": [],
1590
- "body": {
1591
- "required": true,
1592
- "fields": [
1593
- {
1594
- "name": "code",
1595
- "type": "string",
1596
- "required": true,
1597
- "description": "Single-use credential from the c fragment parameter of hosted_url returned by embed token creation. Valid for 60 seconds."
1598
- }
1599
- ]
1600
- }
1601
- },
1602
- {
1603
- "resource": "agent.embedTokens",
1604
- "method": "list",
1605
- "summary": "List Embed Tokens",
1606
- "description": "List embed token issuance records in your organization.\n\nIncludes expired and revoked grants; returns neither token nor token_id. Sorts by created_at, then grant id, both descending. agent_id accepts agent_ or agt_; external_user_id matches exactly. limit is 1–100 (default 20). Reuse next_page as page with the same filters and organization; a mismatch returns 400. End-user credentials return 404.",
1607
- "http": "GET",
1608
- "path": "/agent/v1/embed_tokens",
1609
- "streaming": "no",
1610
- "pagination": false,
1611
- "pathParams": [],
1612
- "query": [
1613
- {
1614
- "name": "agent_id",
1615
- "type": "string",
1616
- "required": false,
1617
- "description": "Filter by service agent identifier (agent_ or agt_ prefix)."
1618
- },
1619
- {
1620
- "name": "external_user_id",
1621
- "type": "string",
1622
- "required": false,
1623
- "description": "Exact host user identifier supplied at issuance."
1624
- },
1625
- {
1626
- "name": "limit",
1627
- "type": "integer",
1628
- "required": false,
1629
- "description": "Maximum records per page; defaults to 20."
1630
- },
1631
- {
1632
- "name": "page",
1633
- "type": "string",
1634
- "required": false,
1635
- "description": "next_page from a previous response with the same filters."
1636
- }
1637
- ]
1638
- },
1639
- {
1640
- "resource": "agent.embedTokens",
1641
- "method": "create",
1642
- "summary": "Create Embed Token",
1643
- "description": "Issue a short-lived credential on your backend for an end user of a service agent.\n\nRequires an active service agent in your organization with an embed policy. Pins the requested version or the latest version and snapshots the policy environment, vaults and resources; metadata comes from the request. Blocked users cannot receive tokens. Keep your API key on the backend and pass only the returned token to the frontend. Every call creates a new grant; issuance is not idempotent. Set hosted to true to also receive hosted_url; redirect the user there within 60 seconds. The agent must have an identity_number. The URL fragment contains a single-use exchange credential, not the token. Omit hosted or set false for ordinary token issuance.",
1644
- "http": "POST",
1645
- "path": "/agent/v1/embed_tokens",
1646
- "streaming": "no",
1647
- "pagination": false,
1648
- "pathParams": [],
1649
- "query": [],
1650
- "body": {
1651
- "required": true,
1652
- "fields": [
1653
- {
1654
- "name": "hosted",
1655
- "type": "boolean",
1656
- "required": false,
1657
- "description": "Set true to also return a hosted chat URL with a single-use credential valid for 60 seconds. Defaults to false; the agent must have an identity_number."
1658
- },
1659
- {
1660
- "name": "agent",
1661
- "type": "string",
1662
- "required": true,
1663
- "description": "Service agent ID or identity_number from agent retrieval; it must belong to your organization and be active."
1664
- },
1665
- {
1666
- "name": "version",
1667
- "type": "integer",
1668
- "required": false,
1669
- "description": "Existing agent version to pin. Omit to pin the latest version at issuance."
1670
- },
1671
- {
1672
- "name": "external_user_id",
1673
- "type": "string",
1674
- "required": true,
1675
- "description": "Your application's stable end-user identifier, scoped to this organization and agent."
1676
- },
1677
- {
1678
- "name": "ttl_seconds",
1679
- "type": "integer",
1680
- "required": false,
1681
- "description": "Token lifetime in seconds. Defaults to the embed policy TTL and cannot exceed its maximum or 3600 seconds."
1682
- },
1683
- {
1684
- "name": "budget_cents",
1685
- "type": "integer",
1686
- "required": false,
1687
- "description": "Session budget in cents. Defaults to the embed policy session budget and cannot exceed its maximum."
1688
- },
1689
- {
1690
- "name": "system_message",
1691
- "type": "array",
1692
- "itemType": "object",
1693
- "required": false,
1694
- "description": "Optional host context as text blocks, limited to 8192 UTF-8 bytes in total."
1695
- },
1696
- {
1697
- "name": "agent_override",
1698
- "type": "object",
1699
- "required": false,
1700
- "description": "Optional system prompt override, accepted only when the embed policy allows agent overrides."
1701
- },
1702
- {
1703
- "name": "allowed_origins",
1704
- "type": "array",
1705
- "itemType": "string",
1706
- "required": false,
1707
- "description": "Optional subset of the policy origin entries, compared exactly. Omit to snapshot every policy origin."
1708
- },
1709
- {
1710
- "name": "metadata",
1711
- "type": "object",
1712
- "required": false,
1713
- "description": "Host metadata preserved verbatim; at most 16 keys of 1–64 characters and string values of at most 512 characters. Defaults to an empty object."
1714
- }
1715
- ]
1716
- }
1717
- },
1718
- {
1719
- "resource": "agent.embedTokens.anonymous",
1720
- "method": "create",
1721
- "summary": "Issue anonymous visitor token",
1722
- "description": "Obtain a short-lived embedding token for a visitor without an account using the agent owner's publishable key.\n\nNo Authorization header is required. Send the browser Origin allowed by the agent policy. Save a returned visitor_secret and reuse it for refreshes; only new visitors receive one. Unknown secrets create new visitors, and extra fields including visitor_id return 400. Issuance uses the key creator's organization membership, the key session budget and the smaller of the policy TTL maximum and 3600 seconds. IP requests are limited per minute (default 20); UTC daily session and spending caps are checked across the key's primary sessions created that day. Token issuance itself does not create a session or charge usage; subsequent sessions bill the host organization. Example body: {\"publishable_key\":\"pk_praxis_example\"}.",
1723
- "http": "POST",
1724
- "path": "/agent/v1/embed_tokens/anonymous",
1725
- "streaming": "no",
1726
- "pagination": false,
1727
- "pathParams": [],
1728
- "query": [],
1729
- "body": {
1730
- "required": true,
1731
- "fields": [
1732
- {
1733
- "name": "publishable_key",
1734
- "type": "string",
1735
- "required": true,
1736
- "description": "Public key created by the service agent owner; safe to include in browser code."
1737
- },
1738
- {
1739
- "name": "visitor_secret",
1740
- "type": "string",
1741
- "required": false,
1742
- "description": "Secret returned by a previous anonymous issuance for this key. Omit for a new visitor; an unknown secret creates a new visitor."
1743
- }
1744
- ]
1745
- }
1746
- },
1747
- {
1748
- "resource": "agent.embedTokens.revoke",
1749
- "method": "create",
1750
- "summary": "Revoke Embed Token",
1751
- "description": "Revoke an embed token and close its open event streams.\n\nUse an id from issuance or listing. Revokes the credential before setting revoked_at; upstream failure leaves it unset. Streams receive session.error (EMBED_TOKEN_REVOKED), then close immediately; other credentials are unaffected. Idempotent; repeats return the original revoked record without another revocation or audit. Missing or foreign grants and end-user credentials return 404.",
1752
- "http": "POST",
1753
- "path": "/agent/v1/embed_tokens/{id}/revoke",
1754
- "streaming": "no",
1755
- "pagination": false,
1756
- "pathParams": [
1757
- {
1758
- "name": "id",
1759
- "sdkName": "id",
1760
- "description": "Grant id returned by issuance or listing."
1761
- }
1762
- ],
1763
- "query": []
1764
- },
1765
1619
  {
1766
1620
  "resource": "agent.environments",
1767
1621
  "method": "list",
@@ -2050,7 +1904,7 @@ export const operations = [
2050
1904
  "resource": "agent.sessions",
2051
1905
  "method": "create",
2052
1906
  "summary": "Create session",
2053
- "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.",
2054
1908
  "http": "POST",
2055
1909
  "path": "/agent/v1/sessions",
2056
1910
  "streaming": "no",
@@ -2076,7 +1930,7 @@ export const operations = [
2076
1930
  "name": "budget",
2077
1931
  "type": "object",
2078
1932
  "required": false,
2079
- "description": "Session spending limit, {type: \"limit\", max_list_cost: {amount, currency}}; null when unlimited. Creation defaults to a limit of 2000 US cents (USD 20.00) when omitted. amount is a positive integer string of US cents; removing the limit with null prevents setting it again for that session."
1933
+ "description": "Session spending limit, {type: \"limit\", max_list_cost: {amount, currency}}; null when unlimited. amount is in US dollars: send an integer or up to 2 decimals (\"0.50\"), and responses carry exactly 2 decimals (\"20.00\"). Creation defaults to USD 20.00 when omitted. More decimals, zero or a number return 400. Removing the limit with null prevents setting it again for that session."
2080
1934
  },
2081
1935
  {
2082
1936
  "name": "initial_events",
@@ -2339,7 +2193,7 @@ export const operations = [
2339
2193
  "resource": "agent.sessions",
2340
2194
  "method": "compact",
2341
2195
  "summary": "Compact Session (Extension)",
2342
- "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.",
2343
2197
  "http": "POST",
2344
2198
  "path": "/agent/v1/sessions/{session_id}/compact",
2345
2199
  "streaming": "no",
@@ -2391,7 +2245,7 @@ export const operations = [
2391
2245
  "resource": "agent.sessions.compactions",
2392
2246
  "method": "list",
2393
2247
  "summary": "List Session Compactions (Extension)",
2394
- "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.",
2395
2249
  "http": "GET",
2396
2250
  "path": "/agent/v1/sessions/{session_id}/compactions",
2397
2251
  "streaming": "no",
@@ -2603,9 +2457,9 @@ export const operations = [
2603
2457
  "query": [
2604
2458
  {
2605
2459
  "name": "limit",
2606
- "type": "number",
2460
+ "type": "integer",
2607
2461
  "required": false,
2608
- "description": "Number of items per page."
2462
+ "description": "Number of resources per page, from 1 to 100; defaults to 100."
2609
2463
  },
2610
2464
  {
2611
2465
  "name": "page",
@@ -3653,7 +3507,7 @@ export const operations = [
3653
3507
  "resource": "application.workers.grants",
3654
3508
  "method": "create",
3655
3509
  "summary": "Create grant",
3656
- "description": "Let this Worker's platform token access one of your databases, folders or knowledge bases.",
3510
+ "description": "Record access to an organization-owned database or knowledge base, all organization files (files, id *), or models (models, id *, read only). Each resource and optional alias must be unique within this Worker. Foreign and missing resources both return RESOURCE_NOT_FOUND (404); an unavailable resource service returns PROVIDER_CAPACITY (503, retryable).",
3657
3511
  "http": "POST",
3658
3512
  "path": "/application/v1/workers/{worker_id}/grants",
3659
3513
  "streaming": "no",
@@ -3673,7 +3527,13 @@ export const operations = [
3673
3527
  "name": "resource",
3674
3528
  "type": "object",
3675
3529
  "required": true,
3676
- "description": "Resource to grant."
3530
+ "description": "Resource to grant. Each (type, id) may be granted once per Worker; duplicates return GRANT_CONFLICT (409)."
3531
+ },
3532
+ {
3533
+ "name": "alias",
3534
+ "type": "string",
3535
+ "required": false,
3536
+ "description": "Optional name, unique within this Worker. Available for reuse after the grant is deleted."
3677
3537
  },
3678
3538
  {
3679
3539
  "name": "access",
@@ -3683,7 +3543,7 @@ export const operations = [
3683
3543
  "read_write"
3684
3544
  ],
3685
3545
  "required": true,
3686
- "description": "Access level."
3546
+ "description": "Access level; models accepts read only."
3687
3547
  }
3688
3548
  ]
3689
3549
  }
@@ -3965,7 +3825,7 @@ export const operations = [
3965
3825
  "resource": "automation.actions",
3966
3826
  "method": "list",
3967
3827
  "summary": "List actions",
3968
- "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.",
3828
+ "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.",
3969
3829
  "http": "GET",
3970
3830
  "path": "/automation/v1/actions",
3971
3831
  "streaming": "no",
@@ -4134,7 +3994,7 @@ export const operations = [
4134
3994
  "resource": "automation.actions",
4135
3995
  "method": "retrieve",
4136
3996
  "summary": "Get an Action with its current input and output JSON Schemas",
4137
- "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.",
3997
+ "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.",
4138
3998
  "http": "GET",
4139
3999
  "path": "/automation/v1/actions/{ns}/{name}",
4140
4000
  "streaming": "no",
@@ -4481,27 +4341,190 @@ export const operations = [
4481
4341
  "description": "Action revision ID (actr_); the query parameter filters invocation records."
4482
4342
  }
4483
4343
  ],
4484
- "query": []
4344
+ "query": []
4345
+ },
4346
+ {
4347
+ "resource": "automation.actions",
4348
+ "method": "rollback",
4349
+ "summary": "Roll back an action",
4350
+ "description": "Create a compatible new revision from historical contents. Compatibility is checked against the current and five recent historical revisions. The current pointer does not revert to the old ID. Optional If-Match accepts the current revision or *; * matches any existing representation.",
4351
+ "http": "POST",
4352
+ "path": "/automation/v1/actions/{ns}/{name}/rollback",
4353
+ "streaming": "no",
4354
+ "pagination": false,
4355
+ "pathParams": [
4356
+ {
4357
+ "name": "ns",
4358
+ "sdkName": "ns",
4359
+ "description": "Namespace, folded to lowercase; matches [a-z0-9][a-z0-9._-]{0,63} for existing references, including historical dotted names; new names must match [a-z0-9][a-z0-9_-]{0,63}. praxis is reserved for built-in Actions."
4360
+ },
4361
+ {
4362
+ "name": "name",
4363
+ "sdkName": "name",
4364
+ "description": "Name, folded to lowercase; matches [a-z0-9][a-z0-9._-]{0,63} for existing references, including historical dotted names; new names must match [a-z0-9][a-z0-9_-]{0,63}."
4365
+ }
4366
+ ],
4367
+ "query": [],
4368
+ "body": {
4369
+ "required": true,
4370
+ "fields": [
4371
+ {
4372
+ "name": "revision",
4373
+ "type": "string",
4374
+ "required": true,
4375
+ "description": "Historical revision ID (actr_) to copy into a new revision."
4376
+ },
4377
+ {
4378
+ "name": "message",
4379
+ "type": "string",
4380
+ "required": false,
4381
+ "description": "A message describing this revision."
4382
+ }
4383
+ ]
4384
+ }
4385
+ },
4386
+ {
4387
+ "resource": "automation.hooks",
4388
+ "method": "send",
4389
+ "summary": "Receive a webhook",
4390
+ "description": "No API key is needed: the URL token authenticates requests. Invalid tokens, absent triggers, wrong kinds and inactive time windows return 404; a paused trigger (circuit breaker after 5 consecutive failures, or manual pause) returns 409 TRIGGER_PAUSED whose message gives the reason and whose hint gives the way back, POST /automation/v1/triggers/{id}/resume. Raw bodies are limited to 512 KiB; serialized run input, including raw and parsed copies, must fit within 1 MiB. Exceeding either limit returns 413 synchronously without recording a firing; webhook-id deduplicates for 24 hours. A 202 with outcome=accepted acknowledges receipt; the final outcome is updated later, and repeats return deduped. Invalid JSON yields body=null; other UTF-8 is text and non-UTF-8 is base64. The envelope contains body, raw_body, raw_body_encoding, allowlisted headers, webhook_id and received_at. raw_body preserves exact bytes with utf8 or base64 encoding for caller-side signature verification.",
4391
+ "http": "POST",
4392
+ "path": "/automation/v1/hooks/{trigger_id}/{token}",
4393
+ "streaming": "no",
4394
+ "pagination": false,
4395
+ "pathParams": [
4396
+ {
4397
+ "name": "trigger_id",
4398
+ "sdkName": "trigger_id",
4399
+ "description": "Trigger ID (trg_)."
4400
+ },
4401
+ {
4402
+ "name": "token",
4403
+ "sdkName": "token",
4404
+ "description": "Secret URL token returned on creation or rotation; do not disclose it."
4405
+ }
4406
+ ],
4407
+ "query": [],
4408
+ "body": {
4409
+ "required": false,
4410
+ "fields": []
4411
+ }
4412
+ },
4413
+ {
4414
+ "resource": "automation.humanTasks",
4415
+ "method": "list",
4416
+ "summary": "List human tasks",
4417
+ "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.",
4418
+ "http": "GET",
4419
+ "path": "/automation/v1/human-tasks",
4420
+ "streaming": "no",
4421
+ "pagination": true,
4422
+ "pathParams": [],
4423
+ "query": [
4424
+ {
4425
+ "name": "limit",
4426
+ "type": "integer",
4427
+ "required": false,
4428
+ "description": "Page size, 1–100, default 50."
4429
+ },
4430
+ {
4431
+ "name": "cursor",
4432
+ "type": "string",
4433
+ "required": false,
4434
+ "description": "The next_cursor of the previous page; omit for the first page."
4435
+ },
4436
+ {
4437
+ "name": "status",
4438
+ "type": "array",
4439
+ "itemType": "string",
4440
+ "enum": [
4441
+ "open",
4442
+ "completed",
4443
+ "expired",
4444
+ "cancelled"
4445
+ ],
4446
+ "required": false,
4447
+ "description": "Filter by status, comma-separated: open, completed, expired, cancelled. Defaults to open."
4448
+ },
4449
+ {
4450
+ "name": "run_id",
4451
+ "type": "string",
4452
+ "required": false,
4453
+ "description": "Only tasks opened by this run (run_)."
4454
+ },
4455
+ {
4456
+ "name": "scope",
4457
+ "type": "string",
4458
+ "enum": [
4459
+ "assigned",
4460
+ "all"
4461
+ ],
4462
+ "required": false,
4463
+ "description": "assigned (default) lists only tasks assigned to the caller; all lists every task of the organization."
4464
+ }
4465
+ ]
4466
+ },
4467
+ {
4468
+ "resource": "automation.humanTasks",
4469
+ "method": "retrieve",
4470
+ "summary": "Retrieve a human task",
4471
+ "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.",
4472
+ "http": "GET",
4473
+ "path": "/automation/v1/human-tasks/{id}",
4474
+ "streaming": "no",
4475
+ "pagination": false,
4476
+ "pathParams": [
4477
+ {
4478
+ "name": "id",
4479
+ "sdkName": "id",
4480
+ "description": "Human task ID (htask_), from the list or the run's waits."
4481
+ }
4482
+ ],
4483
+ "query": []
4484
+ },
4485
+ {
4486
+ "resource": "automation.humanTasks",
4487
+ "method": "cancel",
4488
+ "summary": "Cancel a human task",
4489
+ "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.",
4490
+ "http": "POST",
4491
+ "path": "/automation/v1/human-tasks/{id}/cancel",
4492
+ "streaming": "no",
4493
+ "pagination": false,
4494
+ "pathParams": [
4495
+ {
4496
+ "name": "id",
4497
+ "sdkName": "id",
4498
+ "description": "Human task ID (htask_)."
4499
+ }
4500
+ ],
4501
+ "query": [],
4502
+ "body": {
4503
+ "required": false,
4504
+ "fields": [
4505
+ {
4506
+ "name": "reason",
4507
+ "type": "string",
4508
+ "required": false,
4509
+ "description": "Optional cancellation reason, at most 500 characters."
4510
+ }
4511
+ ]
4512
+ }
4485
4513
  },
4486
4514
  {
4487
- "resource": "automation.actions",
4488
- "method": "rollback",
4489
- "summary": "Roll back an action",
4490
- "description": "Create a compatible new revision from historical contents. Compatibility is checked against the current and five recent historical revisions. The current pointer does not revert to the old ID. Optional If-Match accepts the current revision or *; * matches any existing representation.",
4515
+ "resource": "automation.humanTasks",
4516
+ "method": "delegate",
4517
+ "summary": "Delegate a human task",
4518
+ "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.",
4491
4519
  "http": "POST",
4492
- "path": "/automation/v1/actions/{ns}/{name}/rollback",
4520
+ "path": "/automation/v1/human-tasks/{id}/delegate",
4493
4521
  "streaming": "no",
4494
4522
  "pagination": false,
4495
4523
  "pathParams": [
4496
4524
  {
4497
- "name": "ns",
4498
- "sdkName": "ns",
4499
- "description": "Namespace, folded to lowercase; matches [a-z0-9][a-z0-9._-]{0,63} for existing references, including historical dotted names; new names must match [a-z0-9][a-z0-9_-]{0,63}. praxis is reserved for built-in Actions."
4500
- },
4501
- {
4502
- "name": "name",
4503
- "sdkName": "name",
4504
- "description": "Name, folded to lowercase; matches [a-z0-9][a-z0-9._-]{0,63} for existing references, including historical dotted names; new names must match [a-z0-9][a-z0-9_-]{0,63}."
4525
+ "name": "id",
4526
+ "sdkName": "id",
4527
+ "description": "Human task ID (htask_)."
4505
4528
  }
4506
4529
  ],
4507
4530
  "query": [],
@@ -4509,45 +4532,53 @@ export const operations = [
4509
4532
  "required": true,
4510
4533
  "fields": [
4511
4534
  {
4512
- "name": "revision",
4535
+ "name": "to_user",
4513
4536
  "type": "string",
4514
4537
  "required": true,
4515
- "description": "Historical revision ID (actr_) to copy into a new revision."
4516
- },
4517
- {
4518
- "name": "message",
4519
- "type": "string",
4520
- "required": false,
4521
- "description": "A message describing this revision."
4538
+ "description": "User ID taking over; cannot already be an assignee, nor the initiator unless self-approval is allowed."
4522
4539
  }
4523
4540
  ]
4524
4541
  }
4525
4542
  },
4526
4543
  {
4527
- "resource": "automation.hooks",
4528
- "method": "send",
4529
- "summary": "Receive a webhook",
4530
- "description": "No API key is needed: the URL token authenticates requests. Invalid tokens, absent triggers, wrong kinds and inactive time windows return 404; a paused trigger (circuit breaker after 5 consecutive failures, or manual pause) returns 409 TRIGGER_PAUSED whose message gives the reason and whose hint gives the way back, POST /automation/v1/triggers/{id}/resume. Raw bodies are limited to 512 KiB; serialized run input, including raw and parsed copies, must fit within 1 MiB. Exceeding either limit returns 413 synchronously without recording a firing; webhook-id deduplicates for 24 hours. A 202 with outcome=accepted acknowledges receipt; the final outcome is updated later, and repeats return deduped. Invalid JSON yields body=null; other UTF-8 is text and non-UTF-8 is base64. The envelope contains body, raw_body, raw_body_encoding, allowlisted headers, webhook_id and received_at. raw_body preserves exact bytes with utf8 or base64 encoding for caller-side signature verification.",
4544
+ "resource": "automation.humanTasks",
4545
+ "method": "respond",
4546
+ "summary": "Respond to a human task",
4547
+ "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.",
4531
4548
  "http": "POST",
4532
- "path": "/automation/v1/hooks/{trigger_id}/{token}",
4549
+ "path": "/automation/v1/human-tasks/{id}/respond",
4533
4550
  "streaming": "no",
4534
4551
  "pagination": false,
4535
4552
  "pathParams": [
4536
4553
  {
4537
- "name": "trigger_id",
4538
- "sdkName": "trigger_id",
4539
- "description": "Trigger ID (trg_)."
4540
- },
4541
- {
4542
- "name": "token",
4543
- "sdkName": "token",
4544
- "description": "Secret URL token returned on creation or rotation; do not disclose it."
4554
+ "name": "id",
4555
+ "sdkName": "id",
4556
+ "description": "Human task ID (htask_)."
4545
4557
  }
4546
4558
  ],
4547
4559
  "query": [],
4548
4560
  "body": {
4549
- "required": false,
4550
- "fields": []
4561
+ "required": true,
4562
+ "fields": [
4563
+ {
4564
+ "name": "action_id",
4565
+ "type": "string",
4566
+ "required": true,
4567
+ "description": "The chosen action ID from the task's actions, for example approve."
4568
+ },
4569
+ {
4570
+ "name": "values",
4571
+ "type": "object",
4572
+ "required": false,
4573
+ "description": "Any JSON object whose keys are strings and whose values are any JSON value."
4574
+ },
4575
+ {
4576
+ "name": "comment",
4577
+ "type": "string",
4578
+ "required": false,
4579
+ "description": "Comment of at most 4000 characters; required when the action has require_comment true."
4580
+ }
4581
+ ]
4551
4582
  }
4552
4583
  },
4553
4584
  {
@@ -4730,7 +4761,7 @@ export const operations = [
4730
4761
  "resource": "automation.runs",
4731
4762
  "method": "create",
4732
4763
  "summary": "Run a published target or execute draft source",
4733
- "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.",
4764
+ "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.",
4734
4765
  "http": "POST",
4735
4766
  "path": "/automation/v1/runs",
4736
4767
  "streaming": "no",
@@ -5222,7 +5253,7 @@ export const operations = [
5222
5253
  "resource": "automation.scripts",
5223
5254
  "method": "create",
5224
5255
  "summary": "Create a script",
5225
- "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.",
5256
+ "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.",
5226
5257
  "http": "POST",
5227
5258
  "path": "/automation/v1/scripts",
5228
5259
  "streaming": "no",
@@ -6171,7 +6202,7 @@ export const operations = [
6171
6202
  "resource": "automation.validate",
6172
6203
  "method": "create",
6173
6204
  "summary": "Validate a definition",
6174
- "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.",
6205
+ "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.",
6175
6206
  "http": "POST",
6176
6207
  "path": "/automation/v1/validate",
6177
6208
  "streaming": "no",
@@ -6278,7 +6309,7 @@ export const operations = [
6278
6309
  "resource": "automation.workflows",
6279
6310
  "method": "create",
6280
6311
  "summary": "Create a workflow",
6281
- "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.",
6312
+ "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. To pause for a person, call praxis/approval (it opens a human task; the step output is the decision); agents answer with praxis.automation.humanTasks.respond on behalf of their user. Guide: /docs/developers/automation/guides/approvals 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.",
6282
6313
  "http": "POST",
6283
6314
  "path": "/automation/v1/workflows",
6284
6315
  "streaming": "no",
@@ -6348,7 +6379,7 @@ export const operations = [
6348
6379
  "resource": "automation.workflows",
6349
6380
  "method": "update",
6350
6381
  "summary": "Update a workflow draft",
6351
- "description": "Update description, labels or draft with the current draft revision in If-Match. Even metadata-only updates create a new draft revision.",
6382
+ "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.",
6352
6383
  "http": "PATCH",
6353
6384
  "path": "/automation/v1/workflows/{ns}/{name}",
6354
6385
  "streaming": "no",
@@ -6586,7 +6617,7 @@ export const operations = [
6586
6617
  "publish"
6587
6618
  ],
6588
6619
  "summary": "Publish a workflow version",
6589
- "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.",
6620
+ "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).",
6590
6621
  "http": "POST",
6591
6622
  "path": "/automation/v1/workflows/{ns}/{name}/versions",
6592
6623
  "streaming": "no",
@@ -7261,6 +7292,209 @@ export const operations = [
7261
7292
  ]
7262
7293
  }
7263
7294
  },
7295
+ {
7296
+ "resource": "canvas.canvases",
7297
+ "method": "list",
7298
+ "summary": "List canvases",
7299
+ "description": "Discover canvases in the API key's organization and obtain ids for retrieval or editing. Results are ordered by updated_at from newest to oldest. limit is 1–100 and defaults to 50; omit cursor for the first page, then copy next_cursor into the next request until it is null. Deleted canvases are unavailable.",
7300
+ "http": "GET",
7301
+ "path": "/canvas/v1/canvases",
7302
+ "streaming": "no",
7303
+ "pagination": true,
7304
+ "pathParams": [],
7305
+ "query": [
7306
+ {
7307
+ "name": "limit",
7308
+ "type": "integer",
7309
+ "required": false,
7310
+ "description": "Maximum canvases to return per page, from 1 to 100; defaults to 50 when omitted."
7311
+ },
7312
+ {
7313
+ "name": "cursor",
7314
+ "type": "string",
7315
+ "required": false,
7316
+ "description": "Opaque next_cursor from the preceding list response; omit for the first page and stop when next_cursor is null."
7317
+ }
7318
+ ]
7319
+ },
7320
+ {
7321
+ "resource": "canvas.canvases",
7322
+ "method": "create",
7323
+ "summary": "Create canvas",
7324
+ "description": "Create a blank design canvas in the API key's organization before drawing with praxis.canvas.canvases.execute. Send an optional name of at most 200 characters; omitting name uses Untitled. Each successful call creates a new canvas and returns its id and viewer_url with HTTP 201; save the id for subsequent reads, edits and deletion.",
7325
+ "http": "POST",
7326
+ "path": "/canvas/v1/canvases",
7327
+ "streaming": "no",
7328
+ "pagination": false,
7329
+ "pathParams": [],
7330
+ "query": [],
7331
+ "body": {
7332
+ "required": false,
7333
+ "fields": [
7334
+ {
7335
+ "name": "name",
7336
+ "type": "string",
7337
+ "required": false,
7338
+ "description": "Display name for the new canvas, at most 200 characters; omission uses Untitled."
7339
+ }
7340
+ ]
7341
+ }
7342
+ },
7343
+ {
7344
+ "resource": "canvas.canvases",
7345
+ "method": "delete",
7346
+ "summary": "Delete canvas",
7347
+ "description": "Permanently delete a canvas and its design content when it is no longer needed. Obtain canvas_id from create or list and confirm the target before calling; deletion cannot be undone. HTTP 200 confirms deletion with deleted=true. Subsequent access returns CANVAS_NOT_FOUND, as it does for a missing canvas or one outside the API key's organization.",
7348
+ "http": "DELETE",
7349
+ "path": "/canvas/v1/canvases/{canvas_id}",
7350
+ "streaming": "no",
7351
+ "pagination": false,
7352
+ "pathParams": [
7353
+ {
7354
+ "name": "canvas_id",
7355
+ "sdkName": "canvas_id",
7356
+ "description": "Canvas id returned by create or list, in the form cvs_ followed by 16 lowercase letters or digits; a display name is not accepted."
7357
+ }
7358
+ ],
7359
+ "query": []
7360
+ },
7361
+ {
7362
+ "resource": "canvas.canvases",
7363
+ "method": "retrieve",
7364
+ "summary": "Retrieve canvas",
7365
+ "description": "Inspect the current canvas before editing, like Pencil get_app_state. The response adds top-level node summaries in canvas order and reusable component ids to the canvas metadata. Use these ids in nodes.list, images.list or an execute script; use the returned version as expected_version to detect concurrent edits. Read full node content with nodes.list rather than guessing fields from these summaries.",
7366
+ "http": "GET",
7367
+ "path": "/canvas/v1/canvases/{canvas_id}",
7368
+ "streaming": "no",
7369
+ "pagination": false,
7370
+ "pathParams": [
7371
+ {
7372
+ "name": "canvas_id",
7373
+ "sdkName": "canvas_id",
7374
+ "description": "Canvas id returned by create or list, in the form cvs_ followed by 16 lowercase letters or digits; a display name is not accepted."
7375
+ }
7376
+ ],
7377
+ "query": []
7378
+ },
7379
+ {
7380
+ "resource": "canvas.canvases.images",
7381
+ "method": "list",
7382
+ "summary": "Render canvas nodes",
7383
+ "description": "Render 1–4 nodes to inspect the visual result of a design edit. Use ids from retrieve, execute.created or execute.screenshots; scale defaults to 1 and accepts 0.25–4, and png is the only supported format. Unlike Figma, images contains inline data:image/png;base64,... URLs, not hosted image URLs; a null entry means no image is available for that id. Use nodes.list for editable node content instead of pixels.",
7384
+ "http": "GET",
7385
+ "path": "/canvas/v1/canvases/{canvas_id}/images",
7386
+ "streaming": "no",
7387
+ "pagination": false,
7388
+ "pathParams": [
7389
+ {
7390
+ "name": "canvas_id",
7391
+ "sdkName": "canvas_id",
7392
+ "description": "Canvas id returned by create or list, in the form cvs_ followed by 16 lowercase letters or digits; a display name is not accepted."
7393
+ }
7394
+ ],
7395
+ "query": [
7396
+ {
7397
+ "name": "ids",
7398
+ "type": "string",
7399
+ "required": true,
7400
+ "description": "Comma-separated list of 1–4 node ids to render, from retrieve, execute.created or execute.screenshots."
7401
+ },
7402
+ {
7403
+ "name": "scale",
7404
+ "type": "number",
7405
+ "required": false,
7406
+ "description": "Output pixel scale relative to canvas dimensions, from 0.25 to 4 inclusive; defaults to 1 when omitted."
7407
+ },
7408
+ {
7409
+ "name": "format",
7410
+ "type": "string",
7411
+ "enum": [
7412
+ "png"
7413
+ ],
7414
+ "required": false,
7415
+ "description": "Image encoding; png produces a PNG data URL and is the only supported value. Omit to use png."
7416
+ }
7417
+ ]
7418
+ },
7419
+ {
7420
+ "resource": "canvas.canvases.nodes",
7421
+ "method": "list",
7422
+ "summary": "Read canvas nodes",
7423
+ "description": "Read node documents for inspection before changing individual nodes. Supply 1–100 comma-separated node ids from retrieve or execute, or instance paths such as a/b. depth is an integer at least 0; omit it for complete subtrees. Each requested id maps to a document wrapper or null if absent. Unlike Figma, document contains a Pencil .pen 2.21 node, not a Figma node. For top-level summaries use canvases.retrieve; for pixels use images.list.",
7424
+ "http": "GET",
7425
+ "path": "/canvas/v1/canvases/{canvas_id}/nodes",
7426
+ "streaming": "no",
7427
+ "pagination": false,
7428
+ "pathParams": [
7429
+ {
7430
+ "name": "canvas_id",
7431
+ "sdkName": "canvas_id",
7432
+ "description": "Canvas id returned by create or list, in the form cvs_ followed by 16 lowercase letters or digits; a display name is not accepted."
7433
+ }
7434
+ ],
7435
+ "query": [
7436
+ {
7437
+ "name": "ids",
7438
+ "type": "string",
7439
+ "required": true,
7440
+ "description": "Comma-separated list of 1–100 node ids from retrieve or execute, or instance paths such as a/b; missing ids map to null."
7441
+ },
7442
+ {
7443
+ "name": "depth",
7444
+ "type": "integer",
7445
+ "required": false,
7446
+ "description": "Maximum child depth below each requested node, as an integer at least 0; 0 returns the node without descendants, and omission returns the complete subtree."
7447
+ }
7448
+ ]
7449
+ },
7450
+ {
7451
+ "resource": "canvas.canvases",
7452
+ "method": "execute",
7453
+ "summary": "Execute canvas script",
7454
+ "description": "Draw or edit a canvas atomically with a synchronous Pencil execute script. First create a canvas with praxis.canvas.canvases.create and use its id as canvas_id; inspect an existing canvas with retrieve before modifying it. Send exactly one of script (new source) or edit_id (a failed script to patch using edits). Unlike Figma REST, :execute writes design content; nodes use Pencil .pen schema 2.21 (frame/group/rectangle/ellipse/polygon/path/text/icon/ref/note), not Figma node fields.\n\nThe root variable is document. Synchronous functions are Insert / Copy / Update / Replace / Move / Delete / SetVariables / Get / GetVariables / FindEmptySpace / Print / TakeScreenshot; globals persist for the next call. A first frame needs only this body.script:\n\n```js\nconst f = Insert(document, { type: \"frame\", name: \"Hero\", width: 1200, layout: \"vertical\", padding: 48, fill: \"#FFFFFF\" }); Insert(f, { type: \"text\", content: \"Hello\", fontSize: 32, fill: \"#111111\" }); Print(f)\n```\n\nUse viewer_url to watch the result in Console. TakeScreenshot records node ids in screenshots; call images.list with those ids to fetch PNG data URLs. See the [Canvas execute reference](https://deepraxis.com/en/docs/api/native/canvas/execute) for request fields and results, and the [Canvas node reference](https://deepraxis.com/en/docs/developers/canvas/nodes) for node content.\n\nA successful write increments version by one. Optionally set expected_version to the version from retrieve or nodes.list; on 409 REVISION_CONFLICT read again, merge your intent and retry with the current version. Every script failure rolls back all writes. On 400 SCRIPT_ERROR, SCRIPT_LIMIT or OPS_REJECTED, use error.details.edit_id plus edits to repair and rerun the stored source without resending the entire script; details may include line, column and rejection. On 400 EDIT_EXPIRED the saved script is older than ten minutes: submit a corrected new script. On 429 CANVAS_BUSY, more than four calls are queued for this canvas: wait for pending calls before retrying.\n",
7455
+ "http": "POST",
7456
+ "path": "/canvas/v1/canvases/{canvas_id}:execute",
7457
+ "streaming": "no",
7458
+ "pagination": false,
7459
+ "pathParams": [
7460
+ {
7461
+ "name": "canvas_id",
7462
+ "sdkName": "canvas_id",
7463
+ "description": "Canvas id returned by create or list, in the form cvs_ followed by 16 lowercase letters or digits; a display name is not accepted."
7464
+ }
7465
+ ],
7466
+ "query": [],
7467
+ "body": {
7468
+ "required": true,
7469
+ "fields": [
7470
+ {
7471
+ "name": "script",
7472
+ "type": "string",
7473
+ "required": false,
7474
+ "description": "New synchronous Pencil execute source using document as the root; provide this or edit_id, never both. See the operation's first-frame example."
7475
+ },
7476
+ {
7477
+ "name": "edit_id",
7478
+ "type": "string",
7479
+ "required": false,
7480
+ "description": "Saved failed-script identifier from error.details.edit_id; use with edits instead of script within ten minutes of the failure."
7481
+ },
7482
+ {
7483
+ "name": "edits",
7484
+ "type": "array",
7485
+ "itemType": "object",
7486
+ "required": false,
7487
+ "description": "Text replacements applied to the source identified by edit_id before rerunning; use error line, column or rejection to choose the correction."
7488
+ },
7489
+ {
7490
+ "name": "expected_version",
7491
+ "type": "string",
7492
+ "required": false,
7493
+ "description": "Revision from retrieve, nodes.list or the previous execute response; omit for an unguarded write. A mismatch returns 409 REVISION_CONFLICT with details.version."
7494
+ }
7495
+ ]
7496
+ }
7497
+ },
7264
7498
  {
7265
7499
  "resource": "database.databases",
7266
7500
  "method": "list",
@@ -8270,7 +8504,7 @@ export const operations = [
8270
8504
  "resource": "file.files",
8271
8505
  "method": "create",
8272
8506
  "summary": "Upload file",
8273
- "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.",
8507
+ "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.",
8274
8508
  "http": "POST",
8275
8509
  "path": "/file/v1/files",
8276
8510
  "streaming": "no",
@@ -8292,23 +8526,16 @@ export const operations = [
8292
8526
  "type": "string",
8293
8527
  "enum": [
8294
8528
  "user_data",
8295
- "assistants",
8296
8529
  "vision"
8297
8530
  ],
8298
8531
  "required": true,
8299
- "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."
8532
+ "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."
8300
8533
  },
8301
8534
  {
8302
8535
  "name": "expires_after",
8303
8536
  "type": "object",
8304
8537
  "required": false,
8305
8538
  "description": "Optional expiry relative to created_at. Files without an expiry persist until deleted."
8306
- },
8307
- {
8308
- "name": "praxis",
8309
- "type": "object",
8310
- "required": false,
8311
- "description": "Own-face extensions. Use at most one expiry setting."
8312
8539
  }
8313
8540
  ]
8314
8541
  }
@@ -8371,7 +8598,7 @@ export const operations = [
8371
8598
  "resource": "file.uploads",
8372
8599
  "method": "create",
8373
8600
  "summary": "Create an upload",
8374
- "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.",
8601
+ "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.",
8375
8602
  "http": "POST",
8376
8603
  "path": "/file/v1/uploads",
8377
8604
  "streaming": "no",
@@ -8404,11 +8631,10 @@ export const operations = [
8404
8631
  "type": "string",
8405
8632
  "enum": [
8406
8633
  "user_data",
8407
- "assistants",
8408
8634
  "vision"
8409
8635
  ],
8410
8636
  "required": true,
8411
- "description": "Use user_data for conversation attachments, assistants for assistant files, or vision for PNG, JPEG, GIF and WebP images."
8637
+ "description": "Use user_data for conversation attachments, or vision for PNG, JPEG, GIF and WebP images."
8412
8638
  },
8413
8639
  {
8414
8640
  "name": "expires_after",
@@ -9588,7 +9814,7 @@ export const operations = [
9588
9814
  "name": "overwrite",
9589
9815
  "type": "boolean",
9590
9816
  "required": false,
9591
- "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."
9817
+ "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."
9592
9818
  },
9593
9819
  {
9594
9820
  "name": "tags",
@@ -9646,7 +9872,8 @@ export const operations = [
9646
9872
  {
9647
9873
  "name": "file_id",
9648
9874
  "type": "string",
9649
- "required": true
9875
+ "required": true,
9876
+ "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."
9650
9877
  },
9651
9878
  {
9652
9879
  "name": "public_id",
@@ -9700,7 +9927,7 @@ export const operations = [
9700
9927
  "name": "overwrite",
9701
9928
  "type": "boolean",
9702
9929
  "required": false,
9703
- "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."
9930
+ "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."
9704
9931
  },
9705
9932
  {
9706
9933
  "name": "tags",
@@ -10217,7 +10444,7 @@ export const operations = [
10217
10444
  "name": "expression",
10218
10445
  "type": "string",
10219
10446
  "required": false,
10220
- "description": "Asset filter expression supporting field comparisons, AND, OR, NOT, parentheses and suffix wildcards. An empty expression matches all assets."
10447
+ "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."
10221
10448
  },
10222
10449
  {
10223
10450
  "name": "sort_by",
@@ -10363,6 +10590,70 @@ export const operations = [
10363
10590
  ]
10364
10591
  }
10365
10592
  },
10593
+ {
10594
+ "resource": "meta.docs",
10595
+ "method": "search",
10596
+ "summary": "Search platform documentation",
10597
+ "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.",
10598
+ "http": "GET",
10599
+ "path": "/meta/v1/docs/search",
10600
+ "streaming": "no",
10601
+ "pagination": false,
10602
+ "pathParams": [],
10603
+ "query": [
10604
+ {
10605
+ "name": "q",
10606
+ "type": "string",
10607
+ "required": true,
10608
+ "description": "Keywords describing the syntax or guide needed, for example export or workflow."
10609
+ },
10610
+ {
10611
+ "name": "limit",
10612
+ "type": "integer",
10613
+ "required": false,
10614
+ "description": "Maximum number of matching pages returned; integer 1–50, default 20."
10615
+ },
10616
+ {
10617
+ "name": "lang",
10618
+ "type": "string",
10619
+ "enum": [
10620
+ "zh",
10621
+ "en"
10622
+ ],
10623
+ "required": false,
10624
+ "description": "Documentation language: zh for Chinese (default), en for English."
10625
+ }
10626
+ ]
10627
+ },
10628
+ {
10629
+ "resource": "meta.docs",
10630
+ "method": "retrieve",
10631
+ "summary": "Read documentation Markdown",
10632
+ "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.",
10633
+ "http": "GET",
10634
+ "path": "/meta/v1/docs/{path}",
10635
+ "streaming": "no",
10636
+ "pagination": false,
10637
+ "pathParams": [
10638
+ {
10639
+ "name": "path",
10640
+ "sdkName": "path",
10641
+ "description": "Slash-separated documentation path from docs.search; optionally append #heading-id to select a section."
10642
+ }
10643
+ ],
10644
+ "query": [
10645
+ {
10646
+ "name": "lang",
10647
+ "type": "string",
10648
+ "enum": [
10649
+ "zh",
10650
+ "en"
10651
+ ],
10652
+ "required": false,
10653
+ "description": "Documentation language: zh for Chinese (default), en for English."
10654
+ }
10655
+ ]
10656
+ },
10366
10657
  {
10367
10658
  "resource": "meta.health",
10368
10659
  "method": "retrieve",