@deepraxis/sdk 0.1.1-dev.78b913a → 0.1.1-dev.7f17950

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 without model, models, subagent_model, subagents or multiagent; omit computer_id to register a new computer named after the agent without starting an instance, or provide an existing computer_id; 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",
@@ -193,7 +197,7 @@ export const operations = [
193
197
  "name": "avatar",
194
198
  "type": "string",
195
199
  "required": false,
196
- "description": "Avatar image of the agent: an absolute https URL of at most 2048 characters, without credentials; any other value returns 400 avatar must be an https URL. It is the default picture in agent lists, the agent detail, the chat header and embedded chat when the embed appearance sets none. Saved with the agent version like other configuration, so apply=false keeps the previous avatar in effect until that version is applied. Omit on create for no avatar; on update, omit to keep it and send null to clear it. Both personal and service agents accept it. /agent/v1 only; /anthropic neither accepts nor returns it."
200
+ "description": "Avatar image of the agent: an absolute https URL of at most 2048 characters, without credentials; any other value returns 400 avatar must be an https URL. It is the default picture in agent lists, the agent detail, the chat header and embedded chat when the embed appearance sets none. Saved with the agent version like other configuration, so apply=false keeps the previous avatar in effect until that version is applied. Omit on create for no avatar; on update, omit to keep it and send null to clear it. General, personal and service agents accept it. /agent/v1 only; /anthropic neither accepts nor returns it."
197
201
  },
198
202
  {
199
203
  "name": "environment_id",
@@ -226,7 +230,7 @@ export const operations = [
226
230
  "resource": "agent.agents",
227
231
  "method": "retrieve",
228
232
  "summary": "Get agent",
229
- "description": "Read one agent by id. The top level is the latest saved version, the editable head whose version you send back for optimistic concurrency; after a save with apply false it differs from active_version, and new sessions use active_version, which you read with version=active. With version, read a specific saved version. The response lists every native tool with its resolved configuration in one agent_toolset_20260401 entry, so it can be sent back unchanged to agents.update. Use agents.versions.list to enumerate versions.",
233
+ "description": "Read the agent configuration currently effective for new sessions. By default, version equals active_version and latest_version identifies the newest saved version, including an unapplied save. Use latest_version for optimistic concurrency when updating. Pass version as a positive integer to read that saved version; version=active is equivalent to omission. The response lists every native tool with its resolved configuration in one agent_toolset_20260401 entry, so tools can be sent back unchanged to agents.update. Use agents.versions.list to enumerate saved versions.",
230
234
  "http": "GET",
231
235
  "path": "/agent/v1/agents/{agent_id}",
232
236
  "streaming": "no",
@@ -235,7 +239,7 @@ export const operations = [
235
239
  {
236
240
  "name": "agent_id",
237
241
  "sdkName": "agent_id",
238
- "description": "Agent id, as returned by agents.create or agents.list (for a session filter, the agent the session was created with). Not the agent name."
242
+ "description": "Agent id, as returned by agents.create or agents.list (for a session filter, the agent the session was created with). Not the agent name. Also accepts an 8-character identity number (0–9, A–Z); malformed, absent and foreign references return 404, and response ids always use agent_…."
239
243
  }
240
244
  ],
241
245
  "query": [
@@ -243,7 +247,7 @@ export const operations = [
243
247
  "name": "version",
244
248
  "type": "number",
245
249
  "required": false,
246
- "description": "Agent version to read; omit for the latest saved version. An integer of at least 1 (versions are listed by agents.versions.list), or the string active for the version new sessions use."
250
+ "description": "Agent version to read. Omit, or send active, for the currently effective version used by new sessions. Send an integer of at least 1 from agents.versions.list to read that saved version. The default response also includes latest_version, the newest saved version number."
247
251
  }
248
252
  ]
249
253
  },
@@ -251,7 +255,7 @@ export const operations = [
251
255
  "resource": "agent.agents",
252
256
  "method": "update",
253
257
  "summary": "Update agent",
254
- "description": "Update an agent. Send the current version in the body for optimistic concurrency: a stale version returns 409, and an update that changes nothing keeps the version number. Any real change saves a new version. apply defaults to true and moves active_version to the new version, or to the latest when configuration is unchanged; apply false saves without applying. version_note optionally records up to 280 characters on a newly created version; null means no note, and a note sent when the request changes nothing else returns 400 because a note is stored only with a new version. Existing sessions and tokens keep their version. Omitted fields keep their value. multiagent takes null or a coordinator roster; subagent_model keeps its value when omitted and is cleared by null. Archived agents cannot be updated. tools: [] removes every tool, while tools: null returns 400 (tools cannot be null; send [] to remove every tool). On update, omit skills to keep them, send an array to replace them, or send [] or null to clear them. skills attaches uploaded custom skills as [{type: \"custom\", skill_id, version?}] (skill_id from skills.create or skills.list; at most 20, no repeated skill_id). Omit version, or send \"latest\", to use the skill's newest version when a session starts. type anthropic returns 400.",
258
+ "description": "Save configuration changes as a new immutable version. Send latest_version from a default retrieve or update response as the request version for optimistic concurrency; a stale value returns 409. apply defaults to true and makes the new version effective; apply false saves without changing active_version. The response contains the effective configuration, with version equal to active_version and latest_version naming the newest saved version. An unchanged configuration, including a note-only update, is a no-op returning 200 and the current effective version without creating or activating a version. version_note records up to 280 characters only when a configuration change creates a new version; null is equivalent to omission. Use agents.versions.apply to activate an existing saved version. Existing sessions and tokens keep their version. Omitted fields keep their value. multiagent takes null or a coordinator roster; subagent_model keeps its value when omitted and is cleared by null. Archived agents cannot be updated. tools: [] removes every tool, while tools: null returns 400 (tools cannot be null; send [] to remove every tool). On update, omit skills to keep them, send an array to replace them, or send [] or null to clear them. skills attaches uploaded custom skills as [{type: \"custom\", skill_id, version?}] (skill_id from skills.create or skills.list; at most 20, no repeated skill_id). Omit version, or send \"latest\", to use the skill's newest version when a session starts. type anthropic returns 400. Assume agents reject model, models, subagent_model, subagents and multiagent on every update; other fields follow the general agent rules, with vault_ids also accepted.",
255
259
  "http": "POST",
256
260
  "path": "/agent/v1/agents/{agent_id}",
257
261
  "streaming": "no",
@@ -260,7 +264,7 @@ export const operations = [
260
264
  {
261
265
  "name": "agent_id",
262
266
  "sdkName": "agent_id",
263
- "description": "Agent id, as returned by agents.create or agents.list (for a session filter, the agent the session was created with). Not the agent name."
267
+ "description": "Agent id, as returned by agents.create or agents.list (for a session filter, the agent the session was created with). Not the agent name. Also accepts an 8-character identity number (0–9, A–Z); malformed, absent and foreign references return 404, and response ids always use agent_…."
264
268
  }
265
269
  ],
266
270
  "query": [],
@@ -290,13 +294,13 @@ export const operations = [
290
294
  "name": "model",
291
295
  "type": "object",
292
296
  "required": false,
293
- "description": "A model id from the Praxis model catalog (`praxis.model.models.list`), or a `model_config` object for additional configuration control. Unlike Anthropic, Claude model ids other than those in the catalog are rejected."
297
+ "description": "A model id from the Praxis model catalog (`praxis.model.models.list`), or a `model_config` object for additional configuration control. Unlike Anthropic, Claude model ids other than those in the catalog are rejected. Forbidden and omitted on assume agents."
294
298
  },
295
299
  {
296
300
  "name": "multiagent",
297
301
  "type": "object",
298
302
  "required": false,
299
- "description": "A coordinator topology: the session's primary thread orchestrates\nwork by spawning session threads, each running an agent drawn from the `agents`\nroster."
303
+ "description": "Coordinator roster. A bare string agent id is equivalent to {type: \"agent\", id}; omitting its version pins the referenced agent's current saved version when this roster is saved. {type: \"self\"} refers to this agent. Specify a concrete version to pin it explicitly."
300
304
  },
301
305
  {
302
306
  "name": "name",
@@ -328,19 +332,19 @@ export const operations = [
328
332
  "name": "version",
329
333
  "type": "number",
330
334
  "required": false,
331
- "description": "The agent's current version, used to prevent concurrent overwrites.\nObtain this value from a create or retrieve response. Must be at least 1 if\nspecified. When supplied, the request fails if it does not match the server's\ncurrent version; omit to apply the update unconditionally."
335
+ "description": "Newest saved version used for optimistic concurrency. Obtain latest_version from the default retrieve or update response, or version from versions.list. A stale value returns 409; omit for an unconditional update."
332
336
  },
333
337
  {
334
338
  "name": "apply",
335
339
  "type": "boolean",
336
340
  "required": false,
337
- "description": "Defaults to true: apply the newly saved version, or the latest version when configuration is unchanged. Set false to save without changing active_version. Unlike Managed Agents, saving and applying can be separate."
341
+ "description": "Defaults to true: apply a newly saved configuration version. Set false to save without changing active_version. An unchanged configuration is a no-op, including note-only updates; use versions.apply to activate a saved version."
338
342
  },
339
343
  {
340
344
  "name": "version_note",
341
345
  "type": "string",
342
346
  "required": false,
343
- "description": "Optional change explanation stored as note on the new immutable version, up to 280 characters. Omission or null stores no note. A note sent when nothing else changes returns 400 (nothing to save), because a note is stored only with a new version."
347
+ "description": "Optional change explanation, at most 280 characters. Recorded only when a configuration change creates a new immutable version. A note-only update is a no-op returning 200 and the current effective version. Null is equivalent to omission."
344
348
  },
345
349
  {
346
350
  "name": "bindings",
@@ -353,11 +357,13 @@ export const operations = [
353
357
  "name": "kind",
354
358
  "type": "string",
355
359
  "enum": [
360
+ "general",
356
361
  "personal",
357
- "service"
362
+ "service",
363
+ "assume"
358
364
  ],
359
365
  "required": false,
360
- "description": "Immutable agent kind. personal requires computer_id; service cannot bind a computer. Omit on create to infer from computer_id. On update, the same kind is ignored; changing kind or crossing its computer binding returns 400 invalid_request_error."
366
+ "description": "Immutable agent kind. general and personal require computer_id; service cannot bind a computer. Omit on create to infer from computer_id (general with a computer, service without). On update, the same kind is ignored; changing kind or crossing its computer binding returns 400 invalid_request_error. Assume agents use a durable computer driven over MCP without a conversation model; model, models, subagent_model, subagents and multiagent are forbidden and omitted."
361
367
  },
362
368
  {
363
369
  "name": "computer_id",
@@ -407,7 +413,7 @@ export const operations = [
407
413
  "name": "avatar",
408
414
  "type": "string",
409
415
  "required": false,
410
- "description": "Avatar image of the agent: an absolute https URL of at most 2048 characters, without credentials; any other value returns 400 avatar must be an https URL. It is the default picture in agent lists, the agent detail, the chat header and embedded chat when the embed appearance sets none. Saved with the agent version like other configuration, so apply=false keeps the previous avatar in effect until that version is applied. Omit on create for no avatar; on update, omit to keep it and send null to clear it. Both personal and service agents accept it. /agent/v1 only; /anthropic neither accepts nor returns it."
416
+ "description": "Avatar image of the agent: an absolute https URL of at most 2048 characters, without credentials; any other value returns 400 avatar must be an https URL. It is the default picture in agent lists, the agent detail, the chat header and embedded chat when the embed appearance sets none. Saved with the agent version like other configuration, so apply=false keeps the previous avatar in effect until that version is applied. Omit on create for no avatar; on update, omit to keep it and send null to clear it. General, personal and service agents accept it. /agent/v1 only; /anthropic neither accepts nor returns it."
411
417
  },
412
418
  {
413
419
  "name": "environment_id",
@@ -449,7 +455,7 @@ export const operations = [
449
455
  {
450
456
  "name": "agent_id",
451
457
  "sdkName": "agent_id",
452
- "description": "Service agent id from agent creation or listing; with a customer access token, the agent the token was issued for."
458
+ "description": "Service agent id from agent creation or listing; with a customer access token, the agent the token was issued for. Also accepts an 8-character identity number (0–9, A–Z); malformed, absent and foreign references return 404, and response ids always use agent_…."
453
459
  }
454
460
  ],
455
461
  "query": []
@@ -467,7 +473,7 @@ export const operations = [
467
473
  {
468
474
  "name": "agent_id",
469
475
  "sdkName": "agent_id",
470
- "description": "Agent id, as returned by agents.create or agents.list (for a session filter, the agent the session was created with). Not the agent name."
476
+ "description": "Agent id, as returned by agents.create or agents.list (for a session filter, the agent the session was created with). Not the agent name. Also accepts an 8-character identity number (0–9, A–Z); malformed, absent and foreign references return 404, and response ids always use agent_…."
471
477
  }
472
478
  ],
473
479
  "query": []
@@ -485,7 +491,7 @@ export const operations = [
485
491
  {
486
492
  "name": "agent_id",
487
493
  "sdkName": "agent_id",
488
- "description": "Active service agent id from agent creation or listing."
494
+ "description": "Active service agent id from agent creation or listing. Also accepts an 8-character identity number (0–9, A–Z); malformed, absent and foreign references return 404, and response ids always use agent_…."
489
495
  }
490
496
  ],
491
497
  "query": [
@@ -538,7 +544,7 @@ export const operations = [
538
544
  {
539
545
  "name": "agent_id",
540
546
  "sdkName": "agent_id",
541
- "description": "Service agent id (agent_…) or its short identity number, from agent creation or listing."
547
+ "description": "Service agent id (agent_…) or its short identity number, from agent creation or listing. Also accepts an 8-character identity number (0–9, A–Z); malformed, absent and foreign references return 404, and response ids always use agent_…."
542
548
  }
543
549
  ],
544
550
  "query": [],
@@ -560,7 +566,7 @@ export const operations = [
560
566
  {
561
567
  "name": "agent_id",
562
568
  "sdkName": "agent_id",
563
- "description": "Service agent id (agent_…) or its short identity number, from agent creation or listing."
569
+ "description": "Service agent id (agent_…) or its short identity number, from agent creation or listing. Also accepts an 8-character identity number (0–9, A–Z); malformed, absent and foreign references return 404, and response ids always use agent_…."
564
570
  }
565
571
  ],
566
572
  "query": []
@@ -578,7 +584,7 @@ export const operations = [
578
584
  {
579
585
  "name": "agent_id",
580
586
  "sdkName": "agent_id",
581
- "description": "Service agent id (agent_…) or its short identity number, from agent creation or listing."
587
+ "description": "Service agent id (agent_…) or its short identity number, from agent creation or listing. Also accepts an 8-character identity number (0–9, A–Z); malformed, absent and foreign references return 404, and response ids always use agent_…."
582
588
  }
583
589
  ],
584
590
  "query": []
@@ -596,7 +602,7 @@ export const operations = [
596
602
  {
597
603
  "name": "agent_id",
598
604
  "sdkName": "agent_id",
599
- "description": "Service agent id (agent_…) or its short identity number, from agent creation or listing."
605
+ "description": "Service agent id (agent_…) or its short identity number, from agent creation or listing. Also accepts an 8-character identity number (0–9, A–Z); malformed, absent and foreign references return 404, and response ids always use agent_…."
600
606
  }
601
607
  ],
602
608
  "query": [],
@@ -686,7 +692,7 @@ export const operations = [
686
692
  {
687
693
  "name": "agent_id",
688
694
  "sdkName": "agent_id",
689
- "description": "Active service agent id from agent creation or listing."
695
+ "description": "Active service agent id from agent creation or listing. Also accepts an 8-character identity number (0–9, A–Z); malformed, absent and foreign references return 404, and response ids always use agent_…."
690
696
  },
691
697
  {
692
698
  "name": "customer_id",
@@ -716,7 +722,7 @@ export const operations = [
716
722
  {
717
723
  "name": "agent_id",
718
724
  "sdkName": "agent_id",
719
- "description": "Active service agent id from agent creation or listing."
725
+ "description": "Active service agent id from agent creation or listing. Also accepts an 8-character identity number (0–9, A–Z); malformed, absent and foreign references return 404, and response ids always use agent_…."
720
726
  },
721
727
  {
722
728
  "name": "customer_id",
@@ -739,7 +745,7 @@ export const operations = [
739
745
  {
740
746
  "name": "agent_id",
741
747
  "sdkName": "agent_id",
742
- "description": "Active service agent id from agent creation or listing."
748
+ "description": "Active service agent id from agent creation or listing. Also accepts an 8-character identity number (0–9, A–Z); malformed, absent and foreign references return 404, and response ids always use agent_…."
743
749
  },
744
750
  {
745
751
  "name": "customer_id",
@@ -762,7 +768,7 @@ export const operations = [
762
768
  {
763
769
  "name": "agent_id",
764
770
  "sdkName": "agent_id",
765
- "description": "Active service agent id from agent creation or listing."
771
+ "description": "Active service agent id from agent creation or listing. Also accepts an 8-character identity number (0–9, A–Z); malformed, absent and foreign references return 404, and response ids always use agent_…."
766
772
  },
767
773
  {
768
774
  "name": "customer_id",
@@ -785,7 +791,7 @@ export const operations = [
785
791
  {
786
792
  "name": "agent_id",
787
793
  "sdkName": "agent_id",
788
- "description": "Active service agent id from agent creation or listing."
794
+ "description": "Active service agent id from agent creation or listing. Also accepts an 8-character identity number (0–9, A–Z); malformed, absent and foreign references return 404, and response ids always use agent_…."
789
795
  },
790
796
  {
791
797
  "name": "customer_id",
@@ -808,7 +814,7 @@ export const operations = [
808
814
  {
809
815
  "name": "agent_id",
810
816
  "sdkName": "agent_id",
811
- "description": "Active service agent id from agent creation or listing."
817
+ "description": "Active service agent id from agent creation or listing. Also accepts an 8-character identity number (0–9, A–Z); malformed, absent and foreign references return 404, and response ids always use agent_…."
812
818
  },
813
819
  {
814
820
  "name": "customer_id",
@@ -818,188 +824,6 @@ export const operations = [
818
824
  ],
819
825
  "query": []
820
826
  },
821
- {
822
- "resource": "agent.agents.endUsers",
823
- "method": "list",
824
- "summary": "List End Users",
825
- "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.",
826
- "http": "GET",
827
- "path": "/agent/v1/agents/{agent_id}/end_users",
828
- "streaming": "no",
829
- "pagination": false,
830
- "pathParams": [
831
- {
832
- "name": "agent_id",
833
- "sdkName": "agent_id",
834
- "description": "Active service agent identifier from agent creation or listing."
835
- }
836
- ],
837
- "query": [
838
- {
839
- "name": "limit",
840
- "type": "integer",
841
- "required": false,
842
- "description": "Maximum users per page; defaults to 20."
843
- },
844
- {
845
- "name": "page",
846
- "type": "string",
847
- "required": false,
848
- "description": "next_page from the previous response with the same agent, q and limit."
849
- },
850
- {
851
- "name": "q",
852
- "type": "string",
853
- "required": false,
854
- "description": "Case-sensitive literal prefix of external_user_id; omit or use an empty string for all users."
855
- }
856
- ]
857
- },
858
- {
859
- "resource": "agent.agents.endUsers",
860
- "method": "delete",
861
- "summary": "Delete end-user data",
862
- "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.",
863
- "http": "DELETE",
864
- "path": "/agent/v1/agents/{agent_id}/end_users/{external_user_id}",
865
- "streaming": "no",
866
- "pagination": false,
867
- "pathParams": [
868
- {
869
- "name": "agent_id",
870
- "sdkName": "agent_id",
871
- "description": "Active service agent identifier from agent creation or listing."
872
- },
873
- {
874
- "name": "external_user_id",
875
- "sdkName": "external_user_id",
876
- "description": "Host user identifier supplied at issuance or from end-user listing."
877
- }
878
- ],
879
- "query": [
880
- {
881
- "name": "confirm",
882
- "type": "string",
883
- "required": true,
884
- "description": "Must exactly equal the external_user_id path parameter to confirm destructive deletion."
885
- }
886
- ]
887
- },
888
- {
889
- "resource": "agent.agents.endUsers",
890
- "method": "retrieve",
891
- "summary": "Get End User",
892
- "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.",
893
- "http": "GET",
894
- "path": "/agent/v1/agents/{agent_id}/end_users/{external_user_id}",
895
- "streaming": "no",
896
- "pagination": false,
897
- "pathParams": [
898
- {
899
- "name": "agent_id",
900
- "sdkName": "agent_id",
901
- "description": "Active service agent identifier from agent creation or listing."
902
- },
903
- {
904
- "name": "external_user_id",
905
- "sdkName": "external_user_id",
906
- "description": "Host user identifier supplied at issuance or from end-user listing."
907
- }
908
- ],
909
- "query": []
910
- },
911
- {
912
- "resource": "agent.agents.endUsers.block",
913
- "method": "create",
914
- "summary": "Block End User",
915
- "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.",
916
- "http": "POST",
917
- "path": "/agent/v1/agents/{agent_id}/end_users/{external_user_id}/block",
918
- "streaming": "no",
919
- "pagination": false,
920
- "pathParams": [
921
- {
922
- "name": "agent_id",
923
- "sdkName": "agent_id",
924
- "description": "Active service agent identifier from agent creation or listing."
925
- },
926
- {
927
- "name": "external_user_id",
928
- "sdkName": "external_user_id",
929
- "description": "Host user identifier supplied at issuance or from end-user listing."
930
- }
931
- ],
932
- "query": []
933
- },
934
- {
935
- "resource": "agent.agents.endUsers",
936
- "method": "retrieveDeletion",
937
- "summary": "Get end-user deletion",
938
- "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.",
939
- "http": "GET",
940
- "path": "/agent/v1/agents/{agent_id}/end_users/{external_user_id}/deletion",
941
- "streaming": "no",
942
- "pagination": false,
943
- "pathParams": [
944
- {
945
- "name": "agent_id",
946
- "sdkName": "agent_id",
947
- "description": "Active service agent identifier from agent creation or listing."
948
- },
949
- {
950
- "name": "external_user_id",
951
- "sdkName": "external_user_id",
952
- "description": "Host user identifier supplied at issuance or from end-user listing."
953
- }
954
- ],
955
- "query": []
956
- },
957
- {
958
- "resource": "agent.agents.endUsers.revokeTokens",
959
- "method": "create",
960
- "summary": "Revoke End User Tokens",
961
- "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.",
962
- "http": "POST",
963
- "path": "/agent/v1/agents/{agent_id}/end_users/{external_user_id}/revoke_tokens",
964
- "streaming": "no",
965
- "pagination": false,
966
- "pathParams": [
967
- {
968
- "name": "agent_id",
969
- "sdkName": "agent_id",
970
- "description": "Active service agent identifier from agent creation or listing."
971
- },
972
- {
973
- "name": "external_user_id",
974
- "sdkName": "external_user_id",
975
- "description": "Host user identifier supplied at issuance or from end-user listing."
976
- }
977
- ],
978
- "query": []
979
- },
980
- {
981
- "resource": "agent.agents.endUsers.unblock",
982
- "method": "create",
983
- "summary": "Unblock End User",
984
- "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.",
985
- "http": "POST",
986
- "path": "/agent/v1/agents/{agent_id}/end_users/{external_user_id}/unblock",
987
- "streaming": "no",
988
- "pagination": false,
989
- "pathParams": [
990
- {
991
- "name": "agent_id",
992
- "sdkName": "agent_id",
993
- "description": "Active service agent identifier from agent creation or listing."
994
- },
995
- {
996
- "name": "external_user_id",
997
- "sdkName": "external_user_id",
998
- "description": "Host user identifier supplied at issuance or from end-user listing."
999
- }
1000
- ],
1001
- "query": []
1002
- },
1003
827
  {
1004
828
  "resource": "agent.agents.unarchive",
1005
829
  "method": "create",
@@ -1013,7 +837,7 @@ export const operations = [
1013
837
  {
1014
838
  "name": "agent_id",
1015
839
  "sdkName": "agent_id",
1016
- "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_…."
1017
841
  }
1018
842
  ],
1019
843
  "query": []
@@ -1022,7 +846,7 @@ export const operations = [
1022
846
  "resource": "agent.agents.versions",
1023
847
  "method": "list",
1024
848
  "summary": "List agent versions",
1025
- "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.",
1026
850
  "http": "GET",
1027
851
  "path": "/agent/v1/agents/{agent_id}/versions",
1028
852
  "streaming": "no",
@@ -1031,7 +855,7 @@ export const operations = [
1031
855
  {
1032
856
  "name": "agent_id",
1033
857
  "sdkName": "agent_id",
1034
- "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_…."
1035
859
  }
1036
860
  ],
1037
861
  "query": [
@@ -1053,7 +877,7 @@ export const operations = [
1053
877
  "resource": "agent.agents.versions",
1054
878
  "method": "apply",
1055
879
  "summary": "Apply Agent Version",
1056
- "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.",
1057
881
  "http": "POST",
1058
882
  "path": "/agent/v1/agents/{agent_id}/versions/{version}/apply",
1059
883
  "streaming": "no",
@@ -1062,7 +886,7 @@ export const operations = [
1062
886
  {
1063
887
  "name": "agent_id",
1064
888
  "sdkName": "agent_id",
1065
- "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_…."
1066
890
  },
1067
891
  {
1068
892
  "name": "version",
@@ -1102,7 +926,7 @@ export const operations = [
1102
926
  "resource": "agent.computers",
1103
927
  "method": "create",
1104
928
  "summary": "Create Computer",
1105
- "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.",
1106
930
  "http": "POST",
1107
931
  "path": "/agent/v1/computers",
1108
932
  "streaming": "no",
@@ -1528,7 +1352,7 @@ export const operations = [
1528
1352
  "resource": "agent.deployments",
1529
1353
  "method": "create",
1530
1354
  "summary": "Create deployment",
1531
- "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.",
1532
1356
  "http": "POST",
1533
1357
  "path": "/agent/v1/deployments",
1534
1358
  "streaming": "no",
@@ -1605,7 +1429,7 @@ export const operations = [
1605
1429
  "name": "target",
1606
1430
  "type": "object",
1607
1431
  "required": false,
1608
- "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."
1609
1433
  }
1610
1434
  ]
1611
1435
  }
@@ -1715,7 +1539,7 @@ export const operations = [
1715
1539
  "name": "target",
1716
1540
  "type": "object",
1717
1541
  "required": false,
1718
- "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."
1719
1543
  }
1720
1544
  ]
1721
1545
  }
@@ -1793,84 +1617,47 @@ export const operations = [
1793
1617
  "query": []
1794
1618
  },
1795
1619
  {
1796
- "resource": "agent.embed",
1797
- "method": "retrieveAppearance",
1798
- "summary": "Read chat appearance",
1799
- "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.",
1800
- "http": "GET",
1801
- "path": "/agent/v1/embed/appearance",
1802
- "streaming": "no",
1803
- "pagination": false,
1804
- "pathParams": [],
1805
- "query": []
1806
- },
1807
- {
1808
- "resource": "agent.embed.exchange",
1809
- "method": "create",
1810
- "summary": "Exchange Hosted Code",
1811
- "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>\"}.",
1812
- "http": "POST",
1813
- "path": "/agent/v1/embed/exchange",
1814
- "streaming": "no",
1815
- "pagination": false,
1816
- "pathParams": [],
1817
- "query": [],
1818
- "body": {
1819
- "required": true,
1820
- "fields": [
1821
- {
1822
- "name": "code",
1823
- "type": "string",
1824
- "required": true,
1825
- "description": "Single-use credential from the c fragment parameter of hosted_url returned by embed token creation. Valid for 60 seconds."
1826
- }
1827
- ]
1828
- }
1829
- },
1830
- {
1831
- "resource": "agent.embedTokens",
1620
+ "resource": "agent.environments",
1832
1621
  "method": "list",
1833
- "summary": "List Embed Tokens",
1834
- "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.",
1622
+ "summary": "List environments",
1623
+ "description": "List execution environments: the built-in recipes and the tenant-owned cloud environments that a session can run in. Archived environments are hidden unless include_archived is true. Pages hold at most 100 items (default 20); pass next_page as page to continue. Use the returned id as environment_id when creating a session.",
1835
1624
  "http": "GET",
1836
- "path": "/agent/v1/embed_tokens",
1625
+ "path": "/agent/v1/environments",
1837
1626
  "streaming": "no",
1838
1627
  "pagination": false,
1839
1628
  "pathParams": [],
1840
1629
  "query": [
1841
1630
  {
1842
- "name": "agent_id",
1843
- "type": "string",
1844
- "required": false,
1845
- "description": "Filter by service agent identifier (agent_ or agt_ prefix)."
1846
- },
1847
- {
1848
- "name": "external_user_id",
1849
- "type": "string",
1631
+ "name": "include_archived",
1632
+ "type": "boolean",
1633
+ "enum": [
1634
+ false,
1635
+ true
1636
+ ],
1850
1637
  "required": false,
1851
- "description": "Exact host user identifier supplied at issuance."
1638
+ "description": "Include archived environments in the response"
1852
1639
  },
1853
1640
  {
1854
1641
  "name": "limit",
1855
- "type": "integer",
1642
+ "type": "number",
1856
1643
  "required": false,
1857
- "description": "Maximum records per page; defaults to 20."
1644
+ "description": "Number of items per page."
1858
1645
  },
1859
1646
  {
1860
1647
  "name": "page",
1861
1648
  "type": "string",
1862
1649
  "required": false,
1863
- "description": "next_page from a previous response with the same filters."
1650
+ "description": "Opaque pagination cursor: pass the next_page value of the previous response unchanged. Omit it for the first page. A cursor from a different query or a malformed one returns 400."
1864
1651
  }
1865
1652
  ]
1866
1653
  },
1867
1654
  {
1868
- "resource": "agent.embedTokens",
1655
+ "resource": "agent.environments",
1869
1656
  "method": "create",
1870
- "summary": "Create Embed Token",
1871
- "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.",
1657
+ "summary": "Create environment",
1658
+ "description": "Create a tenant-owned cloud environment: a sandbox recipe (packages to install and networking policy) that sessions can select through environment_id. Package installation happens when the session's sandbox is created; a failed install terminates that session with ENVIRONMENT_PACKAGE_INSTALL_FAILED. Limited networking is applied at sandbox creation. Unlike Anthropic Managed Agents, self_hosted environments, scope and cross-session package caching are not supported. config.template must name an available sandbox template, otherwise 400 lists the available ones.",
1872
1659
  "http": "POST",
1873
- "path": "/agent/v1/embed_tokens",
1660
+ "path": "/agent/v1/environments",
1874
1661
  "streaming": "no",
1875
1662
  "pagination": false,
1876
1663
  "pathParams": [],
@@ -1879,218 +1666,57 @@ export const operations = [
1879
1666
  "required": true,
1880
1667
  "fields": [
1881
1668
  {
1882
- "name": "hosted",
1883
- "type": "boolean",
1884
- "required": false,
1885
- "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."
1886
- },
1887
- {
1888
- "name": "agent",
1889
- "type": "string",
1890
- "required": true,
1891
- "description": "Service agent ID or identity_number from agent retrieval; it must belong to your organization and be active."
1892
- },
1893
- {
1894
- "name": "version",
1895
- "type": "integer",
1896
- "required": false,
1897
- "description": "Existing agent version to pin. Omit to pin the latest version at issuance."
1898
- },
1899
- {
1900
- "name": "external_user_id",
1669
+ "name": "name",
1901
1670
  "type": "string",
1902
1671
  "required": true,
1903
- "description": "Your application's stable end-user identifier, scoped to this organization and agent."
1904
- },
1905
- {
1906
- "name": "ttl_seconds",
1907
- "type": "integer",
1908
- "required": false,
1909
- "description": "Token lifetime in seconds. Defaults to the embed policy TTL and cannot exceed its maximum or 3600 seconds."
1910
- },
1911
- {
1912
- "name": "budget_cents",
1913
- "type": "integer",
1914
- "required": false,
1915
- "description": "Session budget in cents. Defaults to the embed policy session budget and cannot exceed its maximum."
1916
- },
1917
- {
1918
- "name": "system_message",
1919
- "type": "array",
1920
- "itemType": "object",
1921
- "required": false,
1922
- "description": "Optional host context as text blocks, limited to 8192 UTF-8 bytes in total."
1672
+ "description": "Human-readable name for the environment"
1923
1673
  },
1924
1674
  {
1925
- "name": "agent_override",
1675
+ "name": "config",
1926
1676
  "type": "object",
1927
1677
  "required": false,
1928
- "description": "Optional system prompt override, accepted only when the embed policy allows agent overrides."
1678
+ "description": "Environment configuration"
1929
1679
  },
1930
1680
  {
1931
- "name": "allowed_origins",
1932
- "type": "array",
1933
- "itemType": "string",
1681
+ "name": "description",
1682
+ "type": "string",
1934
1683
  "required": false,
1935
- "description": "Optional subset of the policy origin entries, compared exactly. Omit to snapshot every policy origin."
1684
+ "description": "Optional description of the environment"
1936
1685
  },
1937
1686
  {
1938
1687
  "name": "metadata",
1939
1688
  "type": "object",
1940
1689
  "required": false,
1941
- "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."
1690
+ "description": "Free-form string key/value pairs."
1942
1691
  }
1943
1692
  ]
1944
1693
  }
1945
1694
  },
1946
1695
  {
1947
- "resource": "agent.embedTokens.anonymous",
1948
- "method": "create",
1949
- "summary": "Issue anonymous visitor token",
1950
- "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\"}.",
1696
+ "resource": "agent.environments",
1697
+ "method": "retrieve",
1698
+ "summary": "Get environment",
1699
+ "description": "Read one environment's configuration and status by id. Built-in environments are readable but never editable; tenant-owned ones can be updated or archived. environment_id comes from environments.list or environments.create.",
1700
+ "http": "GET",
1701
+ "path": "/agent/v1/environments/{environment_id}",
1702
+ "streaming": "no",
1703
+ "pagination": false,
1704
+ "pathParams": [
1705
+ {
1706
+ "name": "environment_id",
1707
+ "sdkName": "environment_id",
1708
+ "description": "Environment id, as returned by environments.create or environments.list. Built-in environments can be read but not changed."
1709
+ }
1710
+ ],
1711
+ "query": []
1712
+ },
1713
+ {
1714
+ "resource": "agent.environments",
1715
+ "method": "update",
1716
+ "summary": "Update environment",
1717
+ "description": "Update the configuration of a tenant-owned cloud environment. Built-in environments are read-only. Package installation and limited networking are applied when a session's sandbox is created. Omitted fields keep their value. A changed config.template must name an available sandbox template, otherwise 400 lists the available ones.",
1951
1718
  "http": "POST",
1952
- "path": "/agent/v1/embed_tokens/anonymous",
1953
- "streaming": "no",
1954
- "pagination": false,
1955
- "pathParams": [],
1956
- "query": [],
1957
- "body": {
1958
- "required": true,
1959
- "fields": [
1960
- {
1961
- "name": "publishable_key",
1962
- "type": "string",
1963
- "required": true,
1964
- "description": "Public key created by the service agent owner; safe to include in browser code."
1965
- },
1966
- {
1967
- "name": "visitor_secret",
1968
- "type": "string",
1969
- "required": false,
1970
- "description": "Secret returned by a previous anonymous issuance for this key. Omit for a new visitor; an unknown secret creates a new visitor."
1971
- }
1972
- ]
1973
- }
1974
- },
1975
- {
1976
- "resource": "agent.embedTokens.revoke",
1977
- "method": "create",
1978
- "summary": "Revoke Embed Token",
1979
- "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.",
1980
- "http": "POST",
1981
- "path": "/agent/v1/embed_tokens/{id}/revoke",
1982
- "streaming": "no",
1983
- "pagination": false,
1984
- "pathParams": [
1985
- {
1986
- "name": "id",
1987
- "sdkName": "id",
1988
- "description": "Grant id returned by issuance or listing."
1989
- }
1990
- ],
1991
- "query": []
1992
- },
1993
- {
1994
- "resource": "agent.environments",
1995
- "method": "list",
1996
- "summary": "List environments",
1997
- "description": "List execution environments: the built-in recipes and the tenant-owned cloud environments that a session can run in. Archived environments are hidden unless include_archived is true. Pages hold at most 100 items (default 20); pass next_page as page to continue. Use the returned id as environment_id when creating a session.",
1998
- "http": "GET",
1999
- "path": "/agent/v1/environments",
2000
- "streaming": "no",
2001
- "pagination": false,
2002
- "pathParams": [],
2003
- "query": [
2004
- {
2005
- "name": "include_archived",
2006
- "type": "boolean",
2007
- "enum": [
2008
- false,
2009
- true
2010
- ],
2011
- "required": false,
2012
- "description": "Include archived environments in the response"
2013
- },
2014
- {
2015
- "name": "limit",
2016
- "type": "number",
2017
- "required": false,
2018
- "description": "Number of items per page."
2019
- },
2020
- {
2021
- "name": "page",
2022
- "type": "string",
2023
- "required": false,
2024
- "description": "Opaque pagination cursor: pass the next_page value of the previous response unchanged. Omit it for the first page. A cursor from a different query or a malformed one returns 400."
2025
- }
2026
- ]
2027
- },
2028
- {
2029
- "resource": "agent.environments",
2030
- "method": "create",
2031
- "summary": "Create environment",
2032
- "description": "Create a tenant-owned cloud environment: a sandbox recipe (packages to install and networking policy) that sessions can select through environment_id. Package installation happens when the session's sandbox is created; a failed install terminates that session with ENVIRONMENT_PACKAGE_INSTALL_FAILED. Limited networking is applied at sandbox creation. Unlike Anthropic Managed Agents, self_hosted environments, scope and cross-session package caching are not supported. config.template must name an available sandbox template, otherwise 400 lists the available ones.",
2033
- "http": "POST",
2034
- "path": "/agent/v1/environments",
2035
- "streaming": "no",
2036
- "pagination": false,
2037
- "pathParams": [],
2038
- "query": [],
2039
- "body": {
2040
- "required": true,
2041
- "fields": [
2042
- {
2043
- "name": "name",
2044
- "type": "string",
2045
- "required": true,
2046
- "description": "Human-readable name for the environment"
2047
- },
2048
- {
2049
- "name": "config",
2050
- "type": "object",
2051
- "required": false,
2052
- "description": "Environment configuration"
2053
- },
2054
- {
2055
- "name": "description",
2056
- "type": "string",
2057
- "required": false,
2058
- "description": "Optional description of the environment"
2059
- },
2060
- {
2061
- "name": "metadata",
2062
- "type": "object",
2063
- "required": false,
2064
- "description": "Free-form string key/value pairs."
2065
- }
2066
- ]
2067
- }
2068
- },
2069
- {
2070
- "resource": "agent.environments",
2071
- "method": "retrieve",
2072
- "summary": "Get environment",
2073
- "description": "Read one environment's configuration and status by id. Built-in environments are readable but never editable; tenant-owned ones can be updated or archived. environment_id comes from environments.list or environments.create.",
2074
- "http": "GET",
2075
- "path": "/agent/v1/environments/{environment_id}",
2076
- "streaming": "no",
2077
- "pagination": false,
2078
- "pathParams": [
2079
- {
2080
- "name": "environment_id",
2081
- "sdkName": "environment_id",
2082
- "description": "Environment id, as returned by environments.create or environments.list. Built-in environments can be read but not changed."
2083
- }
2084
- ],
2085
- "query": []
2086
- },
2087
- {
2088
- "resource": "agent.environments",
2089
- "method": "update",
2090
- "summary": "Update environment",
2091
- "description": "Update the configuration of a tenant-owned cloud environment. Built-in environments are read-only. Package installation and limited networking are applied when a session's sandbox is created. Omitted fields keep their value. A changed config.template must name an available sandbox template, otherwise 400 lists the available ones.",
2092
- "http": "POST",
2093
- "path": "/agent/v1/environments/{environment_id}",
1719
+ "path": "/agent/v1/environments/{environment_id}",
2094
1720
  "streaming": "no",
2095
1721
  "pagination": false,
2096
1722
  "pathParams": [
@@ -2278,7 +1904,7 @@ export const operations = [
2278
1904
  "resource": "agent.sessions",
2279
1905
  "method": "create",
2280
1906
  "summary": "Create session",
2281
- "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.",
2282
1908
  "http": "POST",
2283
1909
  "path": "/agent/v1/sessions",
2284
1910
  "streaming": "no",
@@ -2567,7 +2193,7 @@ export const operations = [
2567
2193
  "resource": "agent.sessions",
2568
2194
  "method": "compact",
2569
2195
  "summary": "Compact Session (Extension)",
2570
- "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.",
2571
2197
  "http": "POST",
2572
2198
  "path": "/agent/v1/sessions/{session_id}/compact",
2573
2199
  "streaming": "no",
@@ -2619,7 +2245,7 @@ export const operations = [
2619
2245
  "resource": "agent.sessions.compactions",
2620
2246
  "method": "list",
2621
2247
  "summary": "List Session Compactions (Extension)",
2622
- "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.",
2623
2249
  "http": "GET",
2624
2250
  "path": "/agent/v1/sessions/{session_id}/compactions",
2625
2251
  "streaming": "no",
@@ -2831,9 +2457,9 @@ export const operations = [
2831
2457
  "query": [
2832
2458
  {
2833
2459
  "name": "limit",
2834
- "type": "number",
2460
+ "type": "integer",
2835
2461
  "required": false,
2836
- "description": "Number of items per page."
2462
+ "description": "Number of resources per page, from 1 to 100; defaults to 100."
2837
2463
  },
2838
2464
  {
2839
2465
  "name": "page",
@@ -3881,7 +3507,7 @@ export const operations = [
3881
3507
  "resource": "application.workers.grants",
3882
3508
  "method": "create",
3883
3509
  "summary": "Create grant",
3884
- "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).",
3885
3511
  "http": "POST",
3886
3512
  "path": "/application/v1/workers/{worker_id}/grants",
3887
3513
  "streaming": "no",
@@ -3901,7 +3527,13 @@ export const operations = [
3901
3527
  "name": "resource",
3902
3528
  "type": "object",
3903
3529
  "required": true,
3904
- "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."
3905
3537
  },
3906
3538
  {
3907
3539
  "name": "access",
@@ -3911,7 +3543,7 @@ export const operations = [
3911
3543
  "read_write"
3912
3544
  ],
3913
3545
  "required": true,
3914
- "description": "Access level."
3546
+ "description": "Access level; models accepts read only."
3915
3547
  }
3916
3548
  ]
3917
3549
  }
@@ -4193,7 +3825,7 @@ export const operations = [
4193
3825
  "resource": "automation.actions",
4194
3826
  "method": "list",
4195
3827
  "summary": "List actions",
4196
- "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.",
4197
3829
  "http": "GET",
4198
3830
  "path": "/automation/v1/actions",
4199
3831
  "streaming": "no",
@@ -4362,7 +3994,7 @@ export const operations = [
4362
3994
  "resource": "automation.actions",
4363
3995
  "method": "retrieve",
4364
3996
  "summary": "Get an Action with its current input and output JSON Schemas",
4365
- "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.",
4366
3998
  "http": "GET",
4367
3999
  "path": "/automation/v1/actions/{ns}/{name}",
4368
4000
  "streaming": "no",
@@ -4779,31 +4411,12 @@ export const operations = [
4779
4411
  }
4780
4412
  },
4781
4413
  {
4782
- "resource": "automation.resolve",
4783
- "method": "retrieve",
4784
- "summary": "Resolve a run target",
4785
- "description": "Resolve ns/name@tag, an exact version or a version range to a runnable exact version. Omitting @ selects latest; archived targets are rejected and no match returns NO_MATCHING_VERSION.",
4786
- "http": "GET",
4787
- "path": "/automation/v1/resolve",
4788
- "streaming": "no",
4789
- "pagination": false,
4790
- "pathParams": [],
4791
- "query": [
4792
- {
4793
- "name": "target",
4794
- "type": "string",
4795
- "required": true,
4796
- "description": "ns/name@tag, ns/name@version or ns/name@range; omitting @ selects latest."
4797
- }
4798
- ]
4799
- },
4800
- {
4801
- "resource": "automation.runs",
4414
+ "resource": "automation.humanTasks",
4802
4415
  "method": "list",
4803
- "summary": "List runs",
4804
- "description": "Filter tenant runs and list them newest first. Filters include multiple statuses, target, origin, labels[k] and a creation-time lower bound. q matches a run ID exactly when it starts with run_; otherwise it matches a definition-name prefix. Large input/output values are null in lists with input_truncated/output_truncated true; get run details for full values.",
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.",
4805
4418
  "http": "GET",
4806
- "path": "/automation/v1/runs",
4419
+ "path": "/automation/v1/human-tasks",
4807
4420
  "streaming": "no",
4808
4421
  "pagination": true,
4809
4422
  "pathParams": [],
@@ -4812,97 +4425,287 @@ export const operations = [
4812
4425
  "name": "limit",
4813
4426
  "type": "integer",
4814
4427
  "required": false,
4815
- "description": "Page size: integer 1–100, default 50."
4428
+ "description": "Page size, 1–100, default 50."
4816
4429
  },
4817
4430
  {
4818
4431
  "name": "cursor",
4819
4432
  "type": "string",
4820
4433
  "required": false,
4821
- "description": "Opaque next_cursor from the previous page; keep the original filters when paging."
4822
- },
4823
- {
4824
- "name": "kind",
4825
- "type": "array",
4826
- "itemType": "string",
4827
- "enum": [
4828
- "script",
4829
- "workflow"
4830
- ],
4831
- "required": false,
4832
- "description": "script or workflow; omit for both. Separate multiple values with commas to match any value."
4833
- },
4834
- {
4835
- "name": "definition",
4836
- "type": "array",
4837
- "itemType": "string",
4838
- "required": false,
4839
- "description": "Exact definition name in ns/name format. Separate multiple values with commas to match any value."
4840
- },
4841
- {
4842
- "name": "version",
4843
- "type": "array",
4844
- "itemType": "string",
4845
- "required": false,
4846
- "description": "An exact canonical semantic version, such as 1.2.0 or 1.3.0-beta.1, not a range. Separate multiple values with commas to match any value."
4434
+ "description": "The next_cursor of the previous page; omit for the first page."
4847
4435
  },
4848
4436
  {
4849
4437
  "name": "status",
4850
4438
  "type": "array",
4851
4439
  "itemType": "string",
4852
4440
  "enum": [
4853
- "pending",
4854
- "running",
4855
- "waiting",
4856
- "suspended",
4857
- "cancelled",
4858
- "faulted",
4859
- "completed"
4860
- ],
4861
- "required": false,
4862
- "description": "Comma-separated statuses: pending, running, waiting, suspended, cancelled, faulted, completed; omit for all. Separate multiple values with commas to match any value."
4863
- },
4864
- {
4865
- "name": "channel",
4866
- "type": "array",
4867
- "itemType": "string",
4868
- "enum": [
4869
- "console",
4870
- "api",
4871
- "internal",
4872
- "run",
4873
- "trigger"
4441
+ "open",
4442
+ "completed",
4443
+ "expired",
4444
+ "cancelled"
4874
4445
  ],
4875
4446
  "required": false,
4876
- "description": "Origin channel: run selects child runs; console, api, internal and trigger select root runs. Separate multiple values with commas to match any value."
4447
+ "description": "Filter by status, comma-separated: open, completed, expired, cancelled. Defaults to open."
4877
4448
  },
4878
4449
  {
4879
- "name": "initiator_type",
4880
- "type": "array",
4881
- "itemType": "string",
4882
- "enum": [
4883
- "user",
4884
- "api_key",
4885
- "agent",
4886
- "trigger"
4887
- ],
4450
+ "name": "run_id",
4451
+ "type": "string",
4888
4452
  "required": false,
4889
- "description": "Root initiator type: user, api_key, agent or trigger, inherited by child runs. run returns INPUT_INVALID; filter origin with channel=run or parent_run_id. Separate multiple values with commas to match any value."
4453
+ "description": "Only tasks opened by this run (run_)."
4890
4454
  },
4891
4455
  {
4892
- "name": "initiator",
4456
+ "name": "scope",
4893
4457
  "type": "string",
4894
4458
  "enum": [
4895
- "me"
4459
+ "assigned",
4460
+ "all"
4896
4461
  ],
4897
4462
  "required": false,
4898
- "description": "Only me is supported, matching the current credential subject type and ID, including child runs derived from my runs; omit for all."
4899
- },
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": [
4900
4477
  {
4901
- "name": "adhoc",
4902
- "type": "boolean",
4903
- "required": false,
4904
- "description": "true selects ad hoc runs, false published-definition runs; omit for both."
4905
- },
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
+ }
4513
+ },
4514
+ {
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.",
4519
+ "http": "POST",
4520
+ "path": "/automation/v1/human-tasks/{id}/delegate",
4521
+ "streaming": "no",
4522
+ "pagination": false,
4523
+ "pathParams": [
4524
+ {
4525
+ "name": "id",
4526
+ "sdkName": "id",
4527
+ "description": "Human task ID (htask_)."
4528
+ }
4529
+ ],
4530
+ "query": [],
4531
+ "body": {
4532
+ "required": true,
4533
+ "fields": [
4534
+ {
4535
+ "name": "to_user",
4536
+ "type": "string",
4537
+ "required": true,
4538
+ "description": "User ID taking over; cannot already be an assignee, nor the initiator unless self-approval is allowed."
4539
+ }
4540
+ ]
4541
+ }
4542
+ },
4543
+ {
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.",
4548
+ "http": "POST",
4549
+ "path": "/automation/v1/human-tasks/{id}/respond",
4550
+ "streaming": "no",
4551
+ "pagination": false,
4552
+ "pathParams": [
4553
+ {
4554
+ "name": "id",
4555
+ "sdkName": "id",
4556
+ "description": "Human task ID (htask_)."
4557
+ }
4558
+ ],
4559
+ "query": [],
4560
+ "body": {
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
+ ]
4582
+ }
4583
+ },
4584
+ {
4585
+ "resource": "automation.resolve",
4586
+ "method": "retrieve",
4587
+ "summary": "Resolve a run target",
4588
+ "description": "Resolve ns/name@tag, an exact version or a version range to a runnable exact version. Omitting @ selects latest; archived targets are rejected and no match returns NO_MATCHING_VERSION.",
4589
+ "http": "GET",
4590
+ "path": "/automation/v1/resolve",
4591
+ "streaming": "no",
4592
+ "pagination": false,
4593
+ "pathParams": [],
4594
+ "query": [
4595
+ {
4596
+ "name": "target",
4597
+ "type": "string",
4598
+ "required": true,
4599
+ "description": "ns/name@tag, ns/name@version or ns/name@range; omitting @ selects latest."
4600
+ }
4601
+ ]
4602
+ },
4603
+ {
4604
+ "resource": "automation.runs",
4605
+ "method": "list",
4606
+ "summary": "List runs",
4607
+ "description": "Filter tenant runs and list them newest first. Filters include multiple statuses, target, origin, labels[k] and a creation-time lower bound. q matches a run ID exactly when it starts with run_; otherwise it matches a definition-name prefix. Large input/output values are null in lists with input_truncated/output_truncated true; get run details for full values.",
4608
+ "http": "GET",
4609
+ "path": "/automation/v1/runs",
4610
+ "streaming": "no",
4611
+ "pagination": true,
4612
+ "pathParams": [],
4613
+ "query": [
4614
+ {
4615
+ "name": "limit",
4616
+ "type": "integer",
4617
+ "required": false,
4618
+ "description": "Page size: integer 1–100, default 50."
4619
+ },
4620
+ {
4621
+ "name": "cursor",
4622
+ "type": "string",
4623
+ "required": false,
4624
+ "description": "Opaque next_cursor from the previous page; keep the original filters when paging."
4625
+ },
4626
+ {
4627
+ "name": "kind",
4628
+ "type": "array",
4629
+ "itemType": "string",
4630
+ "enum": [
4631
+ "script",
4632
+ "workflow"
4633
+ ],
4634
+ "required": false,
4635
+ "description": "script or workflow; omit for both. Separate multiple values with commas to match any value."
4636
+ },
4637
+ {
4638
+ "name": "definition",
4639
+ "type": "array",
4640
+ "itemType": "string",
4641
+ "required": false,
4642
+ "description": "Exact definition name in ns/name format. Separate multiple values with commas to match any value."
4643
+ },
4644
+ {
4645
+ "name": "version",
4646
+ "type": "array",
4647
+ "itemType": "string",
4648
+ "required": false,
4649
+ "description": "An exact canonical semantic version, such as 1.2.0 or 1.3.0-beta.1, not a range. Separate multiple values with commas to match any value."
4650
+ },
4651
+ {
4652
+ "name": "status",
4653
+ "type": "array",
4654
+ "itemType": "string",
4655
+ "enum": [
4656
+ "pending",
4657
+ "running",
4658
+ "waiting",
4659
+ "suspended",
4660
+ "cancelled",
4661
+ "faulted",
4662
+ "completed"
4663
+ ],
4664
+ "required": false,
4665
+ "description": "Comma-separated statuses: pending, running, waiting, suspended, cancelled, faulted, completed; omit for all. Separate multiple values with commas to match any value."
4666
+ },
4667
+ {
4668
+ "name": "channel",
4669
+ "type": "array",
4670
+ "itemType": "string",
4671
+ "enum": [
4672
+ "console",
4673
+ "api",
4674
+ "internal",
4675
+ "run",
4676
+ "trigger"
4677
+ ],
4678
+ "required": false,
4679
+ "description": "Origin channel: run selects child runs; console, api, internal and trigger select root runs. Separate multiple values with commas to match any value."
4680
+ },
4681
+ {
4682
+ "name": "initiator_type",
4683
+ "type": "array",
4684
+ "itemType": "string",
4685
+ "enum": [
4686
+ "user",
4687
+ "api_key",
4688
+ "agent",
4689
+ "trigger"
4690
+ ],
4691
+ "required": false,
4692
+ "description": "Root initiator type: user, api_key, agent or trigger, inherited by child runs. run returns INPUT_INVALID; filter origin with channel=run or parent_run_id. Separate multiple values with commas to match any value."
4693
+ },
4694
+ {
4695
+ "name": "initiator",
4696
+ "type": "string",
4697
+ "enum": [
4698
+ "me"
4699
+ ],
4700
+ "required": false,
4701
+ "description": "Only me is supported, matching the current credential subject type and ID, including child runs derived from my runs; omit for all."
4702
+ },
4703
+ {
4704
+ "name": "adhoc",
4705
+ "type": "boolean",
4706
+ "required": false,
4707
+ "description": "true selects ad hoc runs, false published-definition runs; omit for both."
4708
+ },
4906
4709
  {
4907
4710
  "name": "language",
4908
4711
  "type": "array",
@@ -4958,7 +4761,7 @@ export const operations = [
4958
4761
  "resource": "automation.runs",
4959
4762
  "method": "create",
4960
4763
  "summary": "Run a published target or execute draft source",
4961
- "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.",
4962
4765
  "http": "POST",
4963
4766
  "path": "/automation/v1/runs",
4964
4767
  "streaming": "no",
@@ -5450,7 +5253,7 @@ export const operations = [
5450
5253
  "resource": "automation.scripts",
5451
5254
  "method": "create",
5452
5255
  "summary": "Create a script",
5453
- "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.",
5454
5257
  "http": "POST",
5455
5258
  "path": "/automation/v1/scripts",
5456
5259
  "streaming": "no",
@@ -5707,99 +5510,189 @@ export const operations = [
5707
5510
  }
5708
5511
  },
5709
5512
  {
5710
- "resource": "automation.scripts.versions",
5513
+ "resource": "automation.scripts.vaults",
5711
5514
  "method": "list",
5712
- "summary": "List script versions",
5713
- "description": "Page through immutable schemas and locked dependencies in descending semantic-version order. Lists omit source by default; only expand=source includes full source, and other values return 400. Detail endpoints retain full source.",
5515
+ "summary": "List script vault bindings",
5516
+ "description": "Inspect the whole vaults attached to a saved script, including archived definitions, without reading secret values. Obtain ns and name from automation.scripts.list. Bindings belong to the definition rather than a published version. When vault or secret metadata cannot be read, the binding remains visible with secrets: [] and secrets_unavailable: true.",
5714
5517
  "http": "GET",
5715
- "path": "/automation/v1/scripts/{ns}/{name}/versions",
5518
+ "path": "/automation/v1/scripts/{ns}/{name}/vaults",
5716
5519
  "streaming": "no",
5717
- "pagination": true,
5520
+ "pagination": false,
5718
5521
  "pathParams": [
5719
5522
  {
5720
5523
  "name": "ns",
5721
5524
  "sdkName": "ns",
5722
- "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."
5525
+ "description": "Namespace from automation.scripts.list or create; identifies the saved script, independently of versions."
5723
5526
  },
5724
5527
  {
5725
5528
  "name": "name",
5726
5529
  "sdkName": "name",
5727
- "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}."
5530
+ "description": "Resource name from automation.scripts.list or create; combine with ns to identify the saved script."
5728
5531
  }
5729
5532
  ],
5730
- "query": [
5731
- {
5732
- "name": "limit",
5733
- "type": "integer",
5734
- "required": false,
5735
- "description": "Page size: integer 1–100, default 25."
5736
- },
5737
- {
5738
- "name": "cursor",
5739
- "type": "string",
5740
- "required": false,
5741
- "description": "Opaque next_cursor from the previous page; keep the original filters when paging."
5742
- },
5743
- {
5744
- "name": "expand",
5745
- "type": "string",
5746
- "enum": [
5747
- "source"
5748
- ],
5749
- "required": false,
5750
- "description": "Only source is accepted; source is omitted by default and other values return 400."
5751
- }
5752
- ]
5533
+ "query": []
5753
5534
  },
5754
5535
  {
5755
- "resource": "automation.scripts.versions",
5756
- "method": "create",
5757
- "aliases": [
5758
- "publish"
5759
- ],
5760
- "summary": "Publish a script version",
5761
- "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. Publishing removes +build metadata from the version number.",
5762
- "http": "POST",
5763
- "path": "/automation/v1/scripts/{ns}/{name}/versions",
5536
+ "resource": "automation.scripts.vaults",
5537
+ "method": "delete",
5538
+ "summary": "Delete a script vault binding",
5539
+ "description": "Remove the vault assignment from this saved script without deleting the vault or its secrets. Obtain aliases from automation.scripts.vaults.list. Repeating deletion of an absent alias on an existing definition succeeds. Bindings also disappear when the definition is permanently deleted, while archival retains them.",
5540
+ "http": "DELETE",
5541
+ "path": "/automation/v1/scripts/{ns}/{name}/vaults/{alias}",
5764
5542
  "streaming": "no",
5765
5543
  "pagination": false,
5766
5544
  "pathParams": [
5767
5545
  {
5768
5546
  "name": "ns",
5769
5547
  "sdkName": "ns",
5770
- "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."
5548
+ "description": "Namespace from automation.scripts.list or create; identifies the saved script, independently of versions."
5771
5549
  },
5772
5550
  {
5773
5551
  "name": "name",
5774
5552
  "sdkName": "name",
5775
- "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}."
5553
+ "description": "Resource name from automation.scripts.list or create; combine with ns to identify the saved script."
5554
+ },
5555
+ {
5556
+ "name": "alias",
5557
+ "sdkName": "alias",
5558
+ "description": "Binding alias chosen by the caller: 1–40 lowercase letters, digits or hyphens, beginning with a letter."
5776
5559
  }
5777
5560
  ],
5778
- "query": [],
5779
- "body": {
5780
- "required": true,
5781
- "fields": []
5782
- }
5561
+ "query": []
5783
5562
  },
5784
5563
  {
5785
- "resource": "automation.scripts.versions",
5786
- "method": "retrieve",
5787
- "summary": "Get a script version",
5788
- "description": "Read source, input/output schemas and deprecation details for an exact version. Missing versions return VERSION_NOT_FOUND. Details always return full source. version accepts an exact version or dist-tag; a range returns 400 with a hint to use /resolve.",
5789
- "http": "GET",
5790
- "path": "/automation/v1/scripts/{ns}/{name}/versions/{version}",
5564
+ "resource": "automation.scripts.vaults",
5565
+ "method": "set",
5566
+ "summary": "Set a script vault binding",
5567
+ "description": "Attach an entire active vault in your organization to a saved script, or replace the vault at an existing alias. Obtain the vault ID or display name from praxis.vault.vaults.list; ambiguous names require an ID. Bindings are independent of published versions and survive archival. The same vault cannot be assigned to two aliases on one definition. Repeating the same assignment is idempotent. Example body: {\"vault\":\"Production\"}.",
5568
+ "http": "PUT",
5569
+ "path": "/automation/v1/scripts/{ns}/{name}/vaults/{alias}",
5791
5570
  "streaming": "no",
5792
5571
  "pagination": false,
5793
5572
  "pathParams": [
5794
5573
  {
5795
5574
  "name": "ns",
5796
5575
  "sdkName": "ns",
5797
- "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."
5576
+ "description": "Namespace from automation.scripts.list or create; identifies the saved script, independently of versions."
5798
5577
  },
5799
5578
  {
5800
5579
  "name": "name",
5801
5580
  "sdkName": "name",
5802
- "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}."
5581
+ "description": "Resource name from automation.scripts.list or create; combine with ns to identify the saved script."
5582
+ },
5583
+ {
5584
+ "name": "alias",
5585
+ "sdkName": "alias",
5586
+ "description": "Binding alias chosen by the caller: 1–40 lowercase letters, digits or hyphens, beginning with a letter."
5587
+ }
5588
+ ],
5589
+ "query": [],
5590
+ "body": {
5591
+ "required": true,
5592
+ "fields": [
5593
+ {
5594
+ "name": "vault",
5595
+ "type": "string",
5596
+ "required": true,
5597
+ "description": "Active vault ID or exact display name from praxis.vault.vaults.list in your organization. Use an ID if display names are duplicated."
5598
+ }
5599
+ ]
5600
+ }
5601
+ },
5602
+ {
5603
+ "resource": "automation.scripts.versions",
5604
+ "method": "list",
5605
+ "summary": "List script versions",
5606
+ "description": "Page through immutable schemas and locked dependencies in descending semantic-version order. Lists omit source by default; only expand=source includes full source, and other values return 400. Detail endpoints retain full source.",
5607
+ "http": "GET",
5608
+ "path": "/automation/v1/scripts/{ns}/{name}/versions",
5609
+ "streaming": "no",
5610
+ "pagination": true,
5611
+ "pathParams": [
5612
+ {
5613
+ "name": "ns",
5614
+ "sdkName": "ns",
5615
+ "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."
5616
+ },
5617
+ {
5618
+ "name": "name",
5619
+ "sdkName": "name",
5620
+ "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}."
5621
+ }
5622
+ ],
5623
+ "query": [
5624
+ {
5625
+ "name": "limit",
5626
+ "type": "integer",
5627
+ "required": false,
5628
+ "description": "Page size: integer 1–100, default 25."
5629
+ },
5630
+ {
5631
+ "name": "cursor",
5632
+ "type": "string",
5633
+ "required": false,
5634
+ "description": "Opaque next_cursor from the previous page; keep the original filters when paging."
5635
+ },
5636
+ {
5637
+ "name": "expand",
5638
+ "type": "string",
5639
+ "enum": [
5640
+ "source"
5641
+ ],
5642
+ "required": false,
5643
+ "description": "Only source is accepted; source is omitted by default and other values return 400."
5644
+ }
5645
+ ]
5646
+ },
5647
+ {
5648
+ "resource": "automation.scripts.versions",
5649
+ "method": "create",
5650
+ "aliases": [
5651
+ "publish"
5652
+ ],
5653
+ "summary": "Publish a script version",
5654
+ "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. Publishing removes +build metadata from the version number.",
5655
+ "http": "POST",
5656
+ "path": "/automation/v1/scripts/{ns}/{name}/versions",
5657
+ "streaming": "no",
5658
+ "pagination": false,
5659
+ "pathParams": [
5660
+ {
5661
+ "name": "ns",
5662
+ "sdkName": "ns",
5663
+ "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."
5664
+ },
5665
+ {
5666
+ "name": "name",
5667
+ "sdkName": "name",
5668
+ "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}."
5669
+ }
5670
+ ],
5671
+ "query": [],
5672
+ "body": {
5673
+ "required": true,
5674
+ "fields": []
5675
+ }
5676
+ },
5677
+ {
5678
+ "resource": "automation.scripts.versions",
5679
+ "method": "retrieve",
5680
+ "summary": "Get a script version",
5681
+ "description": "Read source, input/output schemas and deprecation details for an exact version. Missing versions return VERSION_NOT_FOUND. Details always return full source. version accepts an exact version or dist-tag; a range returns 400 with a hint to use /resolve.",
5682
+ "http": "GET",
5683
+ "path": "/automation/v1/scripts/{ns}/{name}/versions/{version}",
5684
+ "streaming": "no",
5685
+ "pagination": false,
5686
+ "pathParams": [
5687
+ {
5688
+ "name": "ns",
5689
+ "sdkName": "ns",
5690
+ "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."
5691
+ },
5692
+ {
5693
+ "name": "name",
5694
+ "sdkName": "name",
5695
+ "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}."
5803
5696
  },
5804
5697
  {
5805
5698
  "name": "version",
@@ -6399,7 +6292,7 @@ export const operations = [
6399
6292
  "resource": "automation.validate",
6400
6293
  "method": "create",
6401
6294
  "summary": "Validate a definition",
6402
- "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.",
6295
+ "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.",
6403
6296
  "http": "POST",
6404
6297
  "path": "/automation/v1/validate",
6405
6298
  "streaming": "no",
@@ -6506,7 +6399,7 @@ export const operations = [
6506
6399
  "resource": "automation.workflows",
6507
6400
  "method": "create",
6508
6401
  "summary": "Create a workflow",
6509
- "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.",
6402
+ "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.",
6510
6403
  "http": "POST",
6511
6404
  "path": "/automation/v1/workflows",
6512
6405
  "streaming": "no",
@@ -6576,7 +6469,7 @@ export const operations = [
6576
6469
  "resource": "automation.workflows",
6577
6470
  "method": "update",
6578
6471
  "summary": "Update a workflow draft",
6579
- "description": "Update description, labels or draft with the current draft revision in If-Match. Even metadata-only updates create a new draft revision.",
6472
+ "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.",
6580
6473
  "http": "PATCH",
6581
6474
  "path": "/automation/v1/workflows/{ns}/{name}",
6582
6475
  "streaming": "no",
@@ -6762,6 +6655,96 @@ export const operations = [
6762
6655
  "fields": []
6763
6656
  }
6764
6657
  },
6658
+ {
6659
+ "resource": "automation.workflows.vaults",
6660
+ "method": "list",
6661
+ "summary": "List workflow vault bindings",
6662
+ "description": "Inspect the whole vaults attached to a saved workflow, including archived definitions, without reading secret values. Obtain ns and name from automation.workflows.list. Bindings belong to the definition rather than a published version. When vault or secret metadata cannot be read, the binding remains visible with secrets: [] and secrets_unavailable: true.",
6663
+ "http": "GET",
6664
+ "path": "/automation/v1/workflows/{ns}/{name}/vaults",
6665
+ "streaming": "no",
6666
+ "pagination": false,
6667
+ "pathParams": [
6668
+ {
6669
+ "name": "ns",
6670
+ "sdkName": "ns",
6671
+ "description": "Namespace from automation.workflows.list or create; identifies the saved workflow, independently of versions."
6672
+ },
6673
+ {
6674
+ "name": "name",
6675
+ "sdkName": "name",
6676
+ "description": "Resource name from automation.workflows.list or create; combine with ns to identify the saved workflow."
6677
+ }
6678
+ ],
6679
+ "query": []
6680
+ },
6681
+ {
6682
+ "resource": "automation.workflows.vaults",
6683
+ "method": "delete",
6684
+ "summary": "Delete a workflow vault binding",
6685
+ "description": "Remove the vault assignment from this saved workflow without deleting the vault or its secrets. Obtain aliases from automation.workflows.vaults.list. Repeating deletion of an absent alias on an existing definition succeeds. Bindings also disappear when the definition is permanently deleted, while archival retains them.",
6686
+ "http": "DELETE",
6687
+ "path": "/automation/v1/workflows/{ns}/{name}/vaults/{alias}",
6688
+ "streaming": "no",
6689
+ "pagination": false,
6690
+ "pathParams": [
6691
+ {
6692
+ "name": "ns",
6693
+ "sdkName": "ns",
6694
+ "description": "Namespace from automation.workflows.list or create; identifies the saved workflow, independently of versions."
6695
+ },
6696
+ {
6697
+ "name": "name",
6698
+ "sdkName": "name",
6699
+ "description": "Resource name from automation.workflows.list or create; combine with ns to identify the saved workflow."
6700
+ },
6701
+ {
6702
+ "name": "alias",
6703
+ "sdkName": "alias",
6704
+ "description": "Binding alias chosen by the caller: 1–40 lowercase letters, digits or hyphens, beginning with a letter."
6705
+ }
6706
+ ],
6707
+ "query": []
6708
+ },
6709
+ {
6710
+ "resource": "automation.workflows.vaults",
6711
+ "method": "set",
6712
+ "summary": "Set a workflow vault binding",
6713
+ "description": "Attach an entire active vault in your organization to a saved workflow, or replace the vault at an existing alias. Obtain the vault ID or display name from praxis.vault.vaults.list; ambiguous names require an ID. Bindings are independent of published versions and survive archival. The same vault cannot be assigned to two aliases on one definition. Repeating the same assignment is idempotent. Example body: {\"vault\":\"Production\"}.",
6714
+ "http": "PUT",
6715
+ "path": "/automation/v1/workflows/{ns}/{name}/vaults/{alias}",
6716
+ "streaming": "no",
6717
+ "pagination": false,
6718
+ "pathParams": [
6719
+ {
6720
+ "name": "ns",
6721
+ "sdkName": "ns",
6722
+ "description": "Namespace from automation.workflows.list or create; identifies the saved workflow, independently of versions."
6723
+ },
6724
+ {
6725
+ "name": "name",
6726
+ "sdkName": "name",
6727
+ "description": "Resource name from automation.workflows.list or create; combine with ns to identify the saved workflow."
6728
+ },
6729
+ {
6730
+ "name": "alias",
6731
+ "sdkName": "alias",
6732
+ "description": "Binding alias chosen by the caller: 1–40 lowercase letters, digits or hyphens, beginning with a letter."
6733
+ }
6734
+ ],
6735
+ "query": [],
6736
+ "body": {
6737
+ "required": true,
6738
+ "fields": [
6739
+ {
6740
+ "name": "vault",
6741
+ "type": "string",
6742
+ "required": true,
6743
+ "description": "Active vault ID or exact display name from praxis.vault.vaults.list in your organization. Use an ID if display names are duplicated."
6744
+ }
6745
+ ]
6746
+ }
6747
+ },
6765
6748
  {
6766
6749
  "resource": "automation.workflows.versions",
6767
6750
  "method": "list",
@@ -6814,7 +6797,7 @@ export const operations = [
6814
6797
  "publish"
6815
6798
  ],
6816
6799
  "summary": "Publish a workflow version",
6817
- "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.",
6800
+ "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).",
6818
6801
  "http": "POST",
6819
6802
  "path": "/automation/v1/workflows/{ns}/{name}/versions",
6820
6803
  "streaming": "no",
@@ -7410,84 +7393,986 @@ export const operations = [
7410
7393
  "required": true,
7411
7394
  "fields": [
7412
7395
  {
7413
- "name": "message",
7396
+ "name": "message",
7397
+ "type": "string",
7398
+ "required": true,
7399
+ "description": "交给人工操作者的接管说明,可为空字符串。"
7400
+ },
7401
+ {
7402
+ "name": "timeoutMs",
7403
+ "type": "number",
7404
+ "required": false,
7405
+ "description": "接管请求有效时长,单位为毫秒;必须大于 0,可含小数。"
7406
+ }
7407
+ ]
7408
+ }
7409
+ },
7410
+ {
7411
+ "resource": "browser.sessions.handoff",
7412
+ "method": "complete",
7413
+ "summary": "完成人工接管",
7414
+ "description": "完成运行中会话的待处理人工接管,清除接管请求并返回完成事件,客户端可恢复发送 Input.* 指令。没有请求或请求已过期时返回 409 HANDOFF_NOT_PENDING。",
7415
+ "http": "POST",
7416
+ "path": "/browser/v1/sessions/{sessionId}/handoff/complete",
7417
+ "streaming": "no",
7418
+ "pagination": false,
7419
+ "pathParams": [
7420
+ {
7421
+ "name": "sessionId",
7422
+ "sdkName": "sessionId",
7423
+ "description": "浏览器会话 ID;使用创建或列出会话返回的 id,以 bss_ 开头。"
7424
+ }
7425
+ ],
7426
+ "query": []
7427
+ },
7428
+ {
7429
+ "resource": "browser.sessions",
7430
+ "method": "stream",
7431
+ "summary": "订阅会话动态",
7432
+ "description": "SSE:event 为 snapshot、session、pages、action、event 或 end,data 为对应 JSON。先发送 snapshot 快照,再推送实时变化和 ping 注释;end 后关闭。不支持按 Last-Event-ID 历史重放。",
7433
+ "http": "GET",
7434
+ "path": "/browser/v1/sessions/{sessionId}/stream",
7435
+ "streaming": "always",
7436
+ "pagination": false,
7437
+ "pathParams": [
7438
+ {
7439
+ "name": "sessionId",
7440
+ "sdkName": "sessionId",
7441
+ "description": "浏览器会话 ID;使用创建或列出会话返回的 id,以 bss_ 开头。"
7442
+ }
7443
+ ],
7444
+ "query": []
7445
+ },
7446
+ {
7447
+ "resource": "browser.sessions.viewer",
7448
+ "method": "create",
7449
+ "summary": "更新查看者心跳",
7450
+ "description": "登记运行中会话的观看者仍在线,以免无人连接时因空闲被释放。观看页面可见期间为同一观看者重复发送相同 viewerId;停止观看后停止发送,过期心跳不再计为在线。",
7451
+ "http": "POST",
7452
+ "path": "/browser/v1/sessions/{sessionId}/viewer",
7453
+ "streaming": "no",
7454
+ "pagination": false,
7455
+ "pathParams": [
7456
+ {
7457
+ "name": "sessionId",
7458
+ "sdkName": "sessionId",
7459
+ "description": "浏览器会话 ID;使用创建或列出会话返回的 id,以 bss_ 开头。"
7460
+ }
7461
+ ],
7462
+ "query": [],
7463
+ "body": {
7464
+ "required": true,
7465
+ "fields": [
7466
+ {
7467
+ "name": "viewerId",
7468
+ "type": "string",
7469
+ "required": true,
7470
+ "description": "当前观看者的稳定标识;同一观看者重复心跳应使用相同值,长度为 1–128 个 UTF-16 代码单元。"
7471
+ }
7472
+ ]
7473
+ }
7474
+ },
7475
+ {
7476
+ "resource": "canvas.canvases",
7477
+ "method": "list",
7478
+ "summary": "List canvases",
7479
+ "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.",
7480
+ "http": "GET",
7481
+ "path": "/canvas/v1/canvases",
7482
+ "streaming": "no",
7483
+ "pagination": true,
7484
+ "pathParams": [],
7485
+ "query": [
7486
+ {
7487
+ "name": "limit",
7488
+ "type": "integer",
7489
+ "required": false,
7490
+ "description": "Maximum canvases to return per page, from 1 to 100; defaults to 50 when omitted."
7491
+ },
7492
+ {
7493
+ "name": "cursor",
7494
+ "type": "string",
7495
+ "required": false,
7496
+ "description": "Opaque next_cursor from the preceding list response; omit for the first page and stop when next_cursor is null."
7497
+ }
7498
+ ]
7499
+ },
7500
+ {
7501
+ "resource": "canvas.canvases",
7502
+ "method": "create",
7503
+ "summary": "Create canvas",
7504
+ "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.",
7505
+ "http": "POST",
7506
+ "path": "/canvas/v1/canvases",
7507
+ "streaming": "no",
7508
+ "pagination": false,
7509
+ "pathParams": [],
7510
+ "query": [],
7511
+ "body": {
7512
+ "required": false,
7513
+ "fields": [
7514
+ {
7515
+ "name": "name",
7516
+ "type": "string",
7517
+ "required": false,
7518
+ "description": "Display name for the new canvas, at most 200 characters; omission uses Untitled."
7519
+ }
7520
+ ]
7521
+ }
7522
+ },
7523
+ {
7524
+ "resource": "canvas.canvases",
7525
+ "method": "delete",
7526
+ "summary": "Delete canvas",
7527
+ "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.",
7528
+ "http": "DELETE",
7529
+ "path": "/canvas/v1/canvases/{canvas_id}",
7530
+ "streaming": "no",
7531
+ "pagination": false,
7532
+ "pathParams": [
7533
+ {
7534
+ "name": "canvas_id",
7535
+ "sdkName": "canvas_id",
7536
+ "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."
7537
+ }
7538
+ ],
7539
+ "query": []
7540
+ },
7541
+ {
7542
+ "resource": "canvas.canvases",
7543
+ "method": "retrieve",
7544
+ "summary": "Retrieve canvas",
7545
+ "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.",
7546
+ "http": "GET",
7547
+ "path": "/canvas/v1/canvases/{canvas_id}",
7548
+ "streaming": "no",
7549
+ "pagination": false,
7550
+ "pathParams": [
7551
+ {
7552
+ "name": "canvas_id",
7553
+ "sdkName": "canvas_id",
7554
+ "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."
7555
+ }
7556
+ ],
7557
+ "query": []
7558
+ },
7559
+ {
7560
+ "resource": "canvas.canvases.images",
7561
+ "method": "list",
7562
+ "summary": "Render canvas nodes",
7563
+ "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.",
7564
+ "http": "GET",
7565
+ "path": "/canvas/v1/canvases/{canvas_id}/images",
7566
+ "streaming": "no",
7567
+ "pagination": false,
7568
+ "pathParams": [
7569
+ {
7570
+ "name": "canvas_id",
7571
+ "sdkName": "canvas_id",
7572
+ "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."
7573
+ }
7574
+ ],
7575
+ "query": [
7576
+ {
7577
+ "name": "ids",
7578
+ "type": "string",
7579
+ "required": true,
7580
+ "description": "Comma-separated list of 1–4 node ids to render, from retrieve, execute.created or execute.screenshots."
7581
+ },
7582
+ {
7583
+ "name": "scale",
7584
+ "type": "number",
7585
+ "required": false,
7586
+ "description": "Output pixel scale relative to canvas dimensions, from 0.25 to 4 inclusive; defaults to 1 when omitted."
7587
+ },
7588
+ {
7589
+ "name": "format",
7590
+ "type": "string",
7591
+ "enum": [
7592
+ "png"
7593
+ ],
7594
+ "required": false,
7595
+ "description": "Image encoding; png produces a PNG data URL and is the only supported value. Omit to use png."
7596
+ }
7597
+ ]
7598
+ },
7599
+ {
7600
+ "resource": "canvas.canvases.nodes",
7601
+ "method": "list",
7602
+ "summary": "Read canvas nodes",
7603
+ "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.",
7604
+ "http": "GET",
7605
+ "path": "/canvas/v1/canvases/{canvas_id}/nodes",
7606
+ "streaming": "no",
7607
+ "pagination": false,
7608
+ "pathParams": [
7609
+ {
7610
+ "name": "canvas_id",
7611
+ "sdkName": "canvas_id",
7612
+ "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."
7613
+ }
7614
+ ],
7615
+ "query": [
7616
+ {
7617
+ "name": "ids",
7618
+ "type": "string",
7619
+ "required": true,
7620
+ "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."
7621
+ },
7622
+ {
7623
+ "name": "depth",
7624
+ "type": "integer",
7625
+ "required": false,
7626
+ "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."
7627
+ }
7628
+ ]
7629
+ },
7630
+ {
7631
+ "resource": "canvas.canvases",
7632
+ "method": "execute",
7633
+ "summary": "Execute canvas script",
7634
+ "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",
7635
+ "http": "POST",
7636
+ "path": "/canvas/v1/canvases/{canvas_id}:execute",
7637
+ "streaming": "no",
7638
+ "pagination": false,
7639
+ "pathParams": [
7640
+ {
7641
+ "name": "canvas_id",
7642
+ "sdkName": "canvas_id",
7643
+ "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."
7644
+ }
7645
+ ],
7646
+ "query": [],
7647
+ "body": {
7648
+ "required": true,
7649
+ "fields": [
7650
+ {
7651
+ "name": "script",
7652
+ "type": "string",
7653
+ "required": false,
7654
+ "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."
7655
+ },
7656
+ {
7657
+ "name": "edit_id",
7658
+ "type": "string",
7659
+ "required": false,
7660
+ "description": "Saved failed-script identifier from error.details.edit_id; use with edits instead of script within ten minutes of the failure."
7661
+ },
7662
+ {
7663
+ "name": "edits",
7664
+ "type": "array",
7665
+ "itemType": "object",
7666
+ "required": false,
7667
+ "description": "Text replacements applied to the source identified by edit_id before rerunning; use error line, column or rejection to choose the correction."
7668
+ },
7669
+ {
7670
+ "name": "expected_version",
7671
+ "type": "string",
7672
+ "required": false,
7673
+ "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."
7674
+ }
7675
+ ]
7676
+ }
7677
+ },
7678
+ {
7679
+ "resource": "cut.exports",
7680
+ "method": "retrieve",
7681
+ "summary": "Retrieve video export",
7682
+ "description": "Poll an export id returned by projects.exports.create or list to observe render progress. queued, fetching, rendering, stitching and saving are in progress; done provides asset in the target library, failed provides error, and canceled means the job stopped. Only done confirms a usable output asset.",
7683
+ "http": "GET",
7684
+ "path": "/cut/v1/exports/{export_id}",
7685
+ "streaming": "no",
7686
+ "pagination": false,
7687
+ "pathParams": [
7688
+ {
7689
+ "name": "export_id",
7690
+ "sdkName": "export_id",
7691
+ "description": "Export identifier returned by its create or list operation; use the id, not a display name."
7692
+ }
7693
+ ],
7694
+ "query": []
7695
+ },
7696
+ {
7697
+ "resource": "cut.exports",
7698
+ "method": "cancel",
7699
+ "summary": "Cancel video export",
7700
+ "description": "Request cancellation of an export obtained from projects.exports.create or list when its output is no longer needed. Read the returned job status and retrieve it to confirm the terminal outcome; do not interpret a cancellation request as successful rendering.",
7701
+ "http": "POST",
7702
+ "path": "/cut/v1/exports/{export_id}:cancel",
7703
+ "streaming": "no",
7704
+ "pagination": false,
7705
+ "pathParams": [
7706
+ {
7707
+ "name": "export_id",
7708
+ "sdkName": "export_id",
7709
+ "description": "Export identifier returned by its create or list operation; use the id, not a display name."
7710
+ }
7711
+ ],
7712
+ "query": []
7713
+ },
7714
+ {
7715
+ "resource": "cut.projects",
7716
+ "method": "list",
7717
+ "summary": "List projects",
7718
+ "description": "Discover projects owned by the API key organization and obtain project_id values. Results default to active projects ordered by updateTime descending; use filter state = \"deleted\" to find retained deleted projects for undelete. Continue with next_page_token as page_token until the token is absent.",
7719
+ "http": "GET",
7720
+ "path": "/cut/v1/projects",
7721
+ "streaming": "no",
7722
+ "pagination": false,
7723
+ "pathParams": [],
7724
+ "query": [
7725
+ {
7726
+ "name": "page_size",
7727
+ "type": "integer",
7728
+ "required": false,
7729
+ "description": "Maximum resources in one page, from 1 to 100; defaults to 50."
7730
+ },
7731
+ {
7732
+ "name": "page_token",
7733
+ "type": "string",
7734
+ "required": false,
7735
+ "description": "Opaque next_page_token from the preceding page; omit on the first request."
7736
+ },
7737
+ {
7738
+ "name": "filter",
7739
+ "type": "string",
7740
+ "required": false,
7741
+ "description": "Optional resource filter; projects supports state = \"active\" or state = \"deleted\"."
7742
+ },
7743
+ {
7744
+ "name": "order_by",
7745
+ "type": "string",
7746
+ "required": false,
7747
+ "description": "Optional ordering expression; projects supports updateTime desc."
7748
+ }
7749
+ ]
7750
+ },
7751
+ {
7752
+ "resource": "cut.projects",
7753
+ "method": "create",
7754
+ "summary": "Create project",
7755
+ "description": "Create a blank editing project in the API key organization before writing a script. First obtain accessible library ids from praxis.media; bindings must include exactly one read_write library with default_upload true. Each call creates a new project and returns HTTP 201; save its id for execute, state and timeline calls. All editing positions use seconds.",
7756
+ "http": "POST",
7757
+ "path": "/cut/v1/projects",
7758
+ "streaming": "no",
7759
+ "pagination": false,
7760
+ "pathParams": [],
7761
+ "query": [],
7762
+ "body": {
7763
+ "required": true,
7764
+ "fields": [
7765
+ {
7766
+ "name": "name",
7767
+ "type": "string",
7768
+ "required": true,
7769
+ "description": "Human-readable project name; required and must contain non-whitespace text."
7770
+ },
7771
+ {
7772
+ "name": "labels",
7773
+ "type": "object",
7774
+ "required": false,
7775
+ "description": "User-defined string labels for organizing projects; label keys retain their original spelling."
7776
+ },
7777
+ {
7778
+ "name": "settings",
7779
+ "type": "object",
7780
+ "required": true,
7781
+ "description": "Dimensions and frame rate for a new editing project."
7782
+ },
7783
+ {
7784
+ "name": "bindings",
7785
+ "type": "array",
7786
+ "itemType": "object",
7787
+ "required": true,
7788
+ "description": "Accessible library bindings; exactly one read_write entry must have default_upload true."
7789
+ }
7790
+ ]
7791
+ }
7792
+ },
7793
+ {
7794
+ "resource": "cut.projects",
7795
+ "method": "delete",
7796
+ "summary": "Delete project",
7797
+ "description": "Soft-delete a project selected from projects.list. The project is retained for seven days until purge_time and can be restored with undelete before that deadline. Deleted projects cannot be edited; list with filter state = \"deleted\" to locate retained projects.",
7798
+ "http": "DELETE",
7799
+ "path": "/cut/v1/projects/{project_id}",
7800
+ "streaming": "no",
7801
+ "pagination": false,
7802
+ "pathParams": [
7803
+ {
7804
+ "name": "project_id",
7805
+ "sdkName": "project_id",
7806
+ "description": "Project identifier returned by its create or list operation; use the id, not a display name."
7807
+ }
7808
+ ],
7809
+ "query": []
7810
+ },
7811
+ {
7812
+ "resource": "cut.projects",
7813
+ "method": "retrieve",
7814
+ "summary": "Retrieve project",
7815
+ "description": "Inspect project metadata, settings and library bindings before editing. Copy id from projects.create or list; expand=timeline,exports,versions includes selected related resources. The expanded timeline uses seconds and the returned revision can guard a later execute call with expected_revision.",
7816
+ "http": "GET",
7817
+ "path": "/cut/v1/projects/{project_id}",
7818
+ "streaming": "no",
7819
+ "pagination": false,
7820
+ "pathParams": [
7821
+ {
7822
+ "name": "project_id",
7823
+ "sdkName": "project_id",
7824
+ "description": "Project identifier returned by its create or list operation; use the id, not a display name."
7825
+ }
7826
+ ],
7827
+ "query": [
7828
+ {
7829
+ "name": "expand",
7830
+ "type": "string",
7831
+ "required": false,
7832
+ "description": "Comma-separated expansions: timeline includes clips, exports includes render jobs, versions includes saved snapshots."
7833
+ }
7834
+ ]
7835
+ },
7836
+ {
7837
+ "resource": "cut.projects",
7838
+ "method": "update",
7839
+ "summary": "Update project metadata",
7840
+ "description": "Change the project display name or replace its labels by naming those fields in update_mask. Use execute for clip or track edits. Each successful update commits a new revision; labels are replaced as a whole when selected, so read and merge existing labels before overwriting them.",
7841
+ "http": "PATCH",
7842
+ "path": "/cut/v1/projects/{project_id}",
7843
+ "streaming": "no",
7844
+ "pagination": false,
7845
+ "pathParams": [
7846
+ {
7847
+ "name": "project_id",
7848
+ "sdkName": "project_id",
7849
+ "description": "Project identifier returned by its create or list operation; use the id, not a display name."
7850
+ }
7851
+ ],
7852
+ "query": [],
7853
+ "body": {
7854
+ "required": true,
7855
+ "fields": [
7856
+ {
7857
+ "name": "name",
7858
+ "type": "string",
7859
+ "required": false,
7860
+ "description": "Replacement display name when update_mask includes name."
7861
+ },
7862
+ {
7863
+ "name": "labels",
7864
+ "type": "object",
7865
+ "required": false,
7866
+ "description": "User-defined string labels for organizing projects; label keys retain their original spelling."
7867
+ },
7868
+ {
7869
+ "name": "update_mask",
7870
+ "type": "array",
7871
+ "itemType": "string",
7872
+ "enum": [
7873
+ "name",
7874
+ "labels"
7875
+ ],
7876
+ "required": true,
7877
+ "description": "Metadata fields to replace; name changes the display name and labels replaces all labels."
7878
+ }
7879
+ ]
7880
+ }
7881
+ },
7882
+ {
7883
+ "resource": "cut.projects.analysis",
7884
+ "method": "create",
7885
+ "summary": "Analyze project media",
7886
+ "description": "Request silence, filler-word or scene analysis for selected bound assets before editing. Omit media to select project sources; ranges returned in segments use source seconds. A pending result is not completion: use retry_after_sec before checking again, and inspect failed or unsupported asset results before deciding which edits are possible.",
7887
+ "http": "POST",
7888
+ "path": "/cut/v1/projects/{project_id}/analysis",
7889
+ "streaming": "no",
7890
+ "pagination": false,
7891
+ "pathParams": [
7892
+ {
7893
+ "name": "project_id",
7894
+ "sdkName": "project_id",
7895
+ "description": "Project identifier returned by its create or list operation; use the id, not a display name."
7896
+ }
7897
+ ],
7898
+ "query": [],
7899
+ "body": {
7900
+ "required": true,
7901
+ "fields": [
7902
+ {
7903
+ "name": "media",
7904
+ "type": "array",
7905
+ "itemType": "object",
7906
+ "required": false,
7907
+ "description": "Bound-library assets to analyze; omission selects project media."
7908
+ },
7909
+ {
7910
+ "name": "kinds",
7911
+ "type": "array",
7912
+ "itemType": "string",
7913
+ "enum": [
7914
+ "silence",
7915
+ "filler",
7916
+ "scenes"
7917
+ ],
7918
+ "required": true,
7919
+ "description": "Analysis types to request for the selected source assets."
7920
+ }
7921
+ ]
7922
+ }
7923
+ },
7924
+ {
7925
+ "resource": "cut.projects.bindings",
7926
+ "method": "list",
7927
+ "summary": "List library bindings",
7928
+ "description": "Discover the named media libraries available to this project before selecting source assets or an import/export destination. read bindings supply source assets; read_write bindings also accept uploads. Exactly one writable binding supplies the default upload destination.",
7929
+ "http": "GET",
7930
+ "path": "/cut/v1/projects/{project_id}/bindings",
7931
+ "streaming": "no",
7932
+ "pagination": false,
7933
+ "pathParams": [
7934
+ {
7935
+ "name": "project_id",
7936
+ "sdkName": "project_id",
7937
+ "description": "Project identifier returned by its create or list operation; use the id, not a display name."
7938
+ }
7939
+ ],
7940
+ "query": []
7941
+ },
7942
+ {
7943
+ "resource": "cut.projects.bindings",
7944
+ "method": "create",
7945
+ "summary": "Bind media library",
7946
+ "description": "Attach an accessible media library to an existing project under a unique name. Obtain library_id from praxis.media and choose read for source-only access or read_write for imports and exports. The project must retain exactly one read_write binding with default_upload true after the change.",
7947
+ "http": "POST",
7948
+ "path": "/cut/v1/projects/{project_id}/bindings",
7949
+ "streaming": "no",
7950
+ "pagination": false,
7951
+ "pathParams": [
7952
+ {
7953
+ "name": "project_id",
7954
+ "sdkName": "project_id",
7955
+ "description": "Project identifier returned by its create or list operation; use the id, not a display name."
7956
+ }
7957
+ ],
7958
+ "query": [],
7959
+ "body": {
7960
+ "required": true,
7961
+ "fields": [
7962
+ {
7963
+ "name": "binding",
7964
+ "type": "object",
7965
+ "required": true,
7966
+ "description": "A named project link to a media library. Exactly one read_write binding must be default_upload."
7967
+ }
7968
+ ]
7969
+ }
7970
+ },
7971
+ {
7972
+ "resource": "cut.projects.bindings",
7973
+ "method": "delete",
7974
+ "summary": "Remove library binding",
7975
+ "description": "Detach a library alias obtained from bindings.list after removing all timeline clips that reference its library. BINDING_IN_USE returns 409 while references remain; inspect timeline and edit those clips first. Removal must preserve the one writable default upload binding.",
7976
+ "http": "DELETE",
7977
+ "path": "/cut/v1/projects/{project_id}/bindings/{name}",
7978
+ "streaming": "no",
7979
+ "pagination": false,
7980
+ "pathParams": [
7981
+ {
7982
+ "name": "project_id",
7983
+ "sdkName": "project_id",
7984
+ "description": "Project identifier returned by its create or list operation; use the id, not a display name."
7985
+ },
7986
+ {
7987
+ "name": "name",
7988
+ "sdkName": "name",
7989
+ "description": "Project-local binding alias from bindings.list; detach only after removing all clips that reference its library."
7990
+ }
7991
+ ],
7992
+ "query": []
7993
+ },
7994
+ {
7995
+ "resource": "cut.projects.exports",
7996
+ "method": "list",
7997
+ "summary": "List project exports",
7998
+ "description": "Find export jobs associated with this project before polling or canceling a render. Copy an export id into praxis.cut.exports.retrieve or cancel. Continue with next_page_token as page_token when present; queued or in-progress jobs have not produced a final media asset.",
7999
+ "http": "GET",
8000
+ "path": "/cut/v1/projects/{project_id}/exports",
8001
+ "streaming": "no",
8002
+ "pagination": false,
8003
+ "pathParams": [
8004
+ {
8005
+ "name": "project_id",
8006
+ "sdkName": "project_id",
8007
+ "description": "Project identifier returned by its create or list operation; use the id, not a display name."
8008
+ }
8009
+ ],
8010
+ "query": [
8011
+ {
8012
+ "name": "page_size",
8013
+ "type": "integer",
8014
+ "required": false,
8015
+ "description": "Maximum resources in one page, from 1 to 100; defaults to 50."
8016
+ },
8017
+ {
8018
+ "name": "page_token",
8019
+ "type": "string",
8020
+ "required": false,
8021
+ "description": "Opaque next_page_token from the preceding page; omit on the first request."
8022
+ },
8023
+ {
8024
+ "name": "filter",
8025
+ "type": "string",
8026
+ "required": false,
8027
+ "description": "Optional resource filter; projects supports state = \"active\" or state = \"deleted\"."
8028
+ },
8029
+ {
8030
+ "name": "order_by",
8031
+ "type": "string",
8032
+ "required": false,
8033
+ "description": "Optional ordering expression; projects supports updateTime desc."
8034
+ }
8035
+ ]
8036
+ },
8037
+ {
8038
+ "resource": "cut.projects.exports",
8039
+ "method": "create",
8040
+ "summary": "Create video export",
8041
+ "description": "Start an asynchronous video export from the project into a writable bound media library. Choose binding from bindings.list or omit it for default_upload, and optionally select revision and output settings. HTTP 202 only accepts the job; poll praxis.cut.exports.retrieve using the returned id until status is done, failed or canceled. On done, asset identifies the video written back to praxis.media. Each call starts a job, so retrieve a known job before retrying a submission.",
8042
+ "http": "POST",
8043
+ "path": "/cut/v1/projects/{project_id}/exports",
8044
+ "streaming": "no",
8045
+ "pagination": false,
8046
+ "pathParams": [
8047
+ {
8048
+ "name": "project_id",
8049
+ "sdkName": "project_id",
8050
+ "description": "Project identifier returned by its create or list operation; use the id, not a display name."
8051
+ }
8052
+ ],
8053
+ "query": [],
8054
+ "body": {
8055
+ "required": true,
8056
+ "fields": [
8057
+ {
8058
+ "name": "output",
8059
+ "type": "object",
8060
+ "required": false,
8061
+ "description": "Rendering options for an exported video."
8062
+ },
8063
+ {
8064
+ "name": "binding",
8065
+ "type": "string",
8066
+ "required": false,
8067
+ "description": "Writable binding name used as the export destination; omission uses default_upload."
8068
+ },
8069
+ {
8070
+ "name": "revision",
8071
+ "type": "integer",
8072
+ "required": false,
8073
+ "description": "Committed project revision from retrieve, state, timeline or execute; increases after each successful write."
8074
+ }
8075
+ ]
8076
+ }
8077
+ },
8078
+ {
8079
+ "resource": "cut.projects.frames",
8080
+ "method": "list",
8081
+ "summary": "Render preview frames",
8082
+ "description": "Review the visual result at one or more project times without creating an export. Pass comma-separated seconds in at, such as 12,15.5; scale changes preview size and revision selects a committed project revision. Fetch the returned image URLs before expires_at; render again when they expire.",
8083
+ "http": "GET",
8084
+ "path": "/cut/v1/projects/{project_id}/frames",
8085
+ "streaming": "no",
8086
+ "pagination": false,
8087
+ "pathParams": [
8088
+ {
8089
+ "name": "project_id",
8090
+ "sdkName": "project_id",
8091
+ "description": "Project identifier returned by its create or list operation; use the id, not a display name."
8092
+ }
8093
+ ],
8094
+ "query": [
8095
+ {
8096
+ "name": "at",
8097
+ "type": "string",
8098
+ "required": true,
8099
+ "description": "Required comma-separated non-negative project times in seconds, for example 12,15.5."
8100
+ },
8101
+ {
8102
+ "name": "scale",
8103
+ "type": "number",
8104
+ "required": false,
8105
+ "description": "Positive image size multiplier; 0.5 renders at half the project dimensions."
8106
+ },
8107
+ {
8108
+ "name": "revision",
8109
+ "type": "integer",
8110
+ "required": false,
8111
+ "description": "Optional committed project revision from state or execute; omission selects the current revision."
8112
+ }
8113
+ ]
8114
+ },
8115
+ {
8116
+ "resource": "cut.projects.media",
8117
+ "method": "import",
8118
+ "summary": "Import project media",
8119
+ "description": "Import a URL, data URI or existing file into a writable project media library. Select binding from bindings.list or omit it to use default_upload. Save library_id and asset_id from the result and use them as libraryId and assetId inside execute script media references; overwrites follow the source asset latest version.",
8120
+ "http": "POST",
8121
+ "path": "/cut/v1/projects/{project_id}/media:import",
8122
+ "streaming": "no",
8123
+ "pagination": false,
8124
+ "pathParams": [
8125
+ {
8126
+ "name": "project_id",
8127
+ "sdkName": "project_id",
8128
+ "description": "Project identifier returned by its create or list operation; use the id, not a display name."
8129
+ }
8130
+ ],
8131
+ "query": [],
8132
+ "body": {
8133
+ "required": true,
8134
+ "fields": [
8135
+ {
8136
+ "name": "binding",
8137
+ "type": "string",
8138
+ "required": false,
8139
+ "description": "Writable binding name from project bindings; omission uses default_upload."
8140
+ },
8141
+ {
8142
+ "name": "source",
8143
+ "type": "object",
8144
+ "required": true,
8145
+ "description": "Exactly one input source for the imported asset."
8146
+ },
8147
+ {
8148
+ "name": "display_name",
8149
+ "type": "string",
8150
+ "required": false,
8151
+ "description": "Optional human-readable display name for the new media asset."
8152
+ }
8153
+ ]
8154
+ }
8155
+ },
8156
+ {
8157
+ "resource": "cut.projects",
8158
+ "method": "retrieveState",
8159
+ "summary": "Read editing state",
8160
+ "description": "Read lightweight project context before composing an execute script. Returns current revision, rendering settings, track counts, library bindings and offline media count without individual clips. For complete clip documents or a selected time range, read timeline instead.",
8161
+ "http": "GET",
8162
+ "path": "/cut/v1/projects/{project_id}/state",
8163
+ "streaming": "no",
8164
+ "pagination": false,
8165
+ "pathParams": [
8166
+ {
8167
+ "name": "project_id",
8168
+ "sdkName": "project_id",
8169
+ "description": "Project identifier returned by its create or list operation; use the id, not a display name."
8170
+ }
8171
+ ],
8172
+ "query": []
8173
+ },
8174
+ {
8175
+ "resource": "cut.projects",
8176
+ "method": "retrieveTimeline",
8177
+ "summary": "Read project timeline",
8178
+ "description": "Inspect clips and markers in a selected project range before editing. view=full returns structured tracks with all timeline positions in seconds; view=compact returns compact text for script context. from and to are seconds and tracks limits the selection to comma-separated track ids from state. Concurrent changes while preparing a full timeline return 409; retrieve the latest state and try the read again.",
8179
+ "http": "GET",
8180
+ "path": "/cut/v1/projects/{project_id}/timeline",
8181
+ "streaming": "no",
8182
+ "pagination": false,
8183
+ "pathParams": [
8184
+ {
8185
+ "name": "project_id",
8186
+ "sdkName": "project_id",
8187
+ "description": "Project identifier returned by its create or list operation; use the id, not a display name."
8188
+ }
8189
+ ],
8190
+ "query": [
8191
+ {
8192
+ "name": "view",
8193
+ "type": "string",
8194
+ "enum": [
8195
+ "full",
8196
+ "compact"
8197
+ ],
8198
+ "required": false,
8199
+ "description": "full returns structured clips; compact returns compact textual editing context."
8200
+ },
8201
+ {
8202
+ "name": "from",
8203
+ "type": "number",
8204
+ "required": false,
8205
+ "description": "Optional start of the selected project range in seconds; omit for the beginning."
8206
+ },
8207
+ {
8208
+ "name": "to",
8209
+ "type": "number",
8210
+ "required": false,
8211
+ "description": "Optional end of the selected project range in seconds; omit for the end."
8212
+ },
8213
+ {
8214
+ "name": "tracks",
8215
+ "type": "string",
8216
+ "required": false,
8217
+ "description": "Comma-separated track ids from state to include; omit to include every track."
8218
+ }
8219
+ ]
8220
+ },
8221
+ {
8222
+ "resource": "cut.projects.versions",
8223
+ "method": "list",
8224
+ "summary": "List saved versions",
8225
+ "description": "Find saved timeline snapshots for this project and obtain version_id values for restore. A saved version records its original revision; restoring it creates a new current revision rather than rewinding the revision counter. Continue with next_page_token as page_token until absent.",
8226
+ "http": "GET",
8227
+ "path": "/cut/v1/projects/{project_id}/versions",
8228
+ "streaming": "no",
8229
+ "pagination": false,
8230
+ "pathParams": [
8231
+ {
8232
+ "name": "project_id",
8233
+ "sdkName": "project_id",
8234
+ "description": "Project identifier returned by its create or list operation; use the id, not a display name."
8235
+ }
8236
+ ],
8237
+ "query": [
8238
+ {
8239
+ "name": "page_size",
8240
+ "type": "integer",
8241
+ "required": false,
8242
+ "description": "Maximum resources in one page, from 1 to 100; defaults to 50."
8243
+ },
8244
+ {
8245
+ "name": "page_token",
8246
+ "type": "string",
8247
+ "required": false,
8248
+ "description": "Opaque next_page_token from the preceding page; omit on the first request."
8249
+ },
8250
+ {
8251
+ "name": "filter",
8252
+ "type": "string",
8253
+ "required": false,
8254
+ "description": "Optional resource filter; projects supports state = \"active\" or state = \"deleted\"."
8255
+ },
8256
+ {
8257
+ "name": "order_by",
8258
+ "type": "string",
8259
+ "required": false,
8260
+ "description": "Optional ordering expression; projects supports updateTime desc."
8261
+ }
8262
+ ]
8263
+ },
8264
+ {
8265
+ "resource": "cut.projects.versions",
8266
+ "method": "create",
8267
+ "summary": "Save project version",
8268
+ "description": "Save the current project timeline as a named recovery point before a substantial edit. Supply an optional label or send an empty object; keep the returned version id for versions.restore. Saving a version does not publish a rendered asset; use projects.exports.create for video output.",
8269
+ "http": "POST",
8270
+ "path": "/cut/v1/projects/{project_id}/versions",
8271
+ "streaming": "no",
8272
+ "pagination": false,
8273
+ "pathParams": [
8274
+ {
8275
+ "name": "project_id",
8276
+ "sdkName": "project_id",
8277
+ "description": "Project identifier returned by its create or list operation; use the id, not a display name."
8278
+ }
8279
+ ],
8280
+ "query": [],
8281
+ "body": {
8282
+ "required": true,
8283
+ "fields": [
8284
+ {
8285
+ "name": "label",
8286
+ "type": "string",
8287
+ "required": false,
8288
+ "description": "Human-readable snapshot label, such as Before captions."
8289
+ }
8290
+ ]
8291
+ }
8292
+ },
8293
+ {
8294
+ "resource": "cut.projects",
8295
+ "method": "execute",
8296
+ "summary": "Execute editing script",
8297
+ "description": "Edit the current timeline atomically using synchronous JavaScript source. Read state or timeline first, then pass its revision as expected_revision to detect concurrent changes. Use AddTrack, Insert, Update, Delete, Split, Trim, Move, RippleDeleteRange, UpdateTrack, DeleteTrack, SetSettings, AddCaptionsFromTranscript and SetMarker for writes; GetTimeline, GetItem, FindItems, GetMedia, GetTranscript and GetAnalysis read editing context; Print emits text and Preview requests frame previews. All script times are seconds; script object fields use camelCase, for example `media: {libraryId, assetId}`. Unlike Shotstack, execute applies script edits to a persistent project in one transaction. Provide script or a saved edit_id with literal edits, never both; failures roll back writes. A revision conflict while preparing the response may follow a committed edit: retrieve state before retrying. Minimal script after creating a project:\n\n```js\nconst t = AddTrack(\"video\");\nInsert(t, {type: \"color\", color: \"#123456\", start: 0, length: 3});\nPrint(t);\n```",
8298
+ "http": "POST",
8299
+ "path": "/cut/v1/projects/{project_id}:execute",
8300
+ "streaming": "no",
8301
+ "pagination": false,
8302
+ "pathParams": [
8303
+ {
8304
+ "name": "project_id",
8305
+ "sdkName": "project_id",
8306
+ "description": "Project identifier returned by its create or list operation; use the id, not a display name."
8307
+ }
8308
+ ],
8309
+ "query": [],
8310
+ "body": {
8311
+ "required": true,
8312
+ "fields": [
8313
+ {
8314
+ "name": "script",
8315
+ "type": "string",
8316
+ "required": false,
8317
+ "description": "Synchronous editing source using Cut execute functions; submit this or edit_id, never both. Script source is opaque: function names and object fields inside JavaScript use their documented camelCase spelling."
8318
+ },
8319
+ {
8320
+ "name": "edit_id",
7414
8321
  "type": "string",
7415
- "required": true,
7416
- "description": "交给人工操作者的接管说明,可为空字符串。"
8322
+ "required": false,
8323
+ "description": "Saved failed script identifier from error.details.edit_id; valid for ten minutes."
7417
8324
  },
7418
8325
  {
7419
- "name": "timeoutMs",
7420
- "type": "number",
8326
+ "name": "edits",
8327
+ "type": "array",
8328
+ "itemType": "object",
7421
8329
  "required": false,
7422
- "description": "接管请求有效时长,单位为毫秒;必须大于 0,可含小数。"
8330
+ "description": "Literal replacements applied to the saved source before rerunning."
8331
+ },
8332
+ {
8333
+ "name": "expected_revision",
8334
+ "type": "integer",
8335
+ "required": false,
8336
+ "description": "Committed project revision from retrieve, state, timeline or execute; increases after each successful write."
7423
8337
  }
7424
8338
  ]
7425
8339
  }
7426
8340
  },
7427
8341
  {
7428
- "resource": "browser.sessions.handoff",
7429
- "method": "complete",
7430
- "summary": "完成人工接管",
7431
- "description": "完成运行中会话的待处理人工接管,清除接管请求并返回完成事件,客户端可恢复发送 Input.* 指令。没有请求或请求已过期时返回 409 HANDOFF_NOT_PENDING。",
8342
+ "resource": "cut.projects",
8343
+ "method": "undelete",
8344
+ "summary": "Restore deleted project",
8345
+ "description": "Return a retained deleted project to active state before its purge_time. Obtain project_id from projects.list filtered to deleted projects. This restores the project, not an older timeline revision; use versions.restore when reverting editing content.",
7432
8346
  "http": "POST",
7433
- "path": "/browser/v1/sessions/{sessionId}/handoff/complete",
8347
+ "path": "/cut/v1/projects/{project_id}:undelete",
7434
8348
  "streaming": "no",
7435
8349
  "pagination": false,
7436
8350
  "pathParams": [
7437
8351
  {
7438
- "name": "sessionId",
7439
- "sdkName": "sessionId",
7440
- "description": "浏览器会话 ID;使用创建或列出会话返回的 id,以 bss_ 开头。"
7441
- }
7442
- ],
7443
- "query": []
7444
- },
7445
- {
7446
- "resource": "browser.sessions",
7447
- "method": "stream",
7448
- "summary": "订阅会话动态",
7449
- "description": "SSE:event 为 snapshot、session、pages、action、event 或 end,data 为对应 JSON。先发送 snapshot 快照,再推送实时变化和 ping 注释;end 后关闭。不支持按 Last-Event-ID 历史重放。",
7450
- "http": "GET",
7451
- "path": "/browser/v1/sessions/{sessionId}/stream",
7452
- "streaming": "always",
7453
- "pagination": false,
7454
- "pathParams": [
7455
- {
7456
- "name": "sessionId",
7457
- "sdkName": "sessionId",
7458
- "description": "浏览器会话 ID;使用创建或列出会话返回的 id,以 bss_ 开头。"
8352
+ "name": "project_id",
8353
+ "sdkName": "project_id",
8354
+ "description": "Project identifier returned by its create or list operation; use the id, not a display name."
7459
8355
  }
7460
8356
  ],
7461
8357
  "query": []
7462
8358
  },
7463
8359
  {
7464
- "resource": "browser.sessions.viewer",
7465
- "method": "create",
7466
- "summary": "更新查看者心跳",
7467
- "description": "登记运行中会话的观看者仍在线,以免无人连接时因空闲被释放。观看页面可见期间为同一观看者重复发送相同 viewerId;停止观看后停止发送,过期心跳不再计为在线。",
8360
+ "resource": "cut.versions",
8361
+ "method": "restore",
8362
+ "summary": "Restore saved version",
8363
+ "description": "Replace current editing content with a saved project snapshot selected from projects.versions.list. The restore commits a new transaction and revision while preserving the saved version for future use. Inspect the returned summary and timeline before further editing; a response revision conflict can follow a committed restore, so retrieve current state before retrying.",
7468
8364
  "http": "POST",
7469
- "path": "/browser/v1/sessions/{sessionId}/viewer",
8365
+ "path": "/cut/v1/versions/{version_id}:restore",
7470
8366
  "streaming": "no",
7471
8367
  "pagination": false,
7472
8368
  "pathParams": [
7473
8369
  {
7474
- "name": "sessionId",
7475
- "sdkName": "sessionId",
7476
- "description": "浏览器会话 ID;使用创建或列出会话返回的 id,以 bss_ 开头。"
8370
+ "name": "version_id",
8371
+ "sdkName": "version_id",
8372
+ "description": "Version identifier returned by its create or list operation; use the id, not a display name."
7477
8373
  }
7478
8374
  ],
7479
- "query": [],
7480
- "body": {
7481
- "required": true,
7482
- "fields": [
7483
- {
7484
- "name": "viewerId",
7485
- "type": "string",
7486
- "required": true,
7487
- "description": "当前观看者的稳定标识;同一观看者重复心跳应使用相同值,长度为 1–128 个 UTF-16 代码单元。"
7488
- }
7489
- ]
7490
- }
8375
+ "query": []
7491
8376
  },
7492
8377
  {
7493
8378
  "resource": "database.databases",
@@ -8498,7 +9383,7 @@ export const operations = [
8498
9383
  "resource": "file.files",
8499
9384
  "method": "create",
8500
9385
  "summary": "Upload file",
8501
- "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.",
9386
+ "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.",
8502
9387
  "http": "POST",
8503
9388
  "path": "/file/v1/files",
8504
9389
  "streaming": "no",
@@ -8520,23 +9405,16 @@ export const operations = [
8520
9405
  "type": "string",
8521
9406
  "enum": [
8522
9407
  "user_data",
8523
- "assistants",
8524
9408
  "vision"
8525
9409
  ],
8526
9410
  "required": true,
8527
- "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."
9411
+ "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."
8528
9412
  },
8529
9413
  {
8530
9414
  "name": "expires_after",
8531
9415
  "type": "object",
8532
9416
  "required": false,
8533
9417
  "description": "Optional expiry relative to created_at. Files without an expiry persist until deleted."
8534
- },
8535
- {
8536
- "name": "praxis",
8537
- "type": "object",
8538
- "required": false,
8539
- "description": "Own-face extensions. Use at most one expiry setting."
8540
9418
  }
8541
9419
  ]
8542
9420
  }
@@ -8595,11 +9473,40 @@ export const operations = [
8595
9473
  ],
8596
9474
  "query": []
8597
9475
  },
9476
+ {
9477
+ "resource": "file.files.contentLinks",
9478
+ "method": "revoke",
9479
+ "summary": "Revoke a file content link",
9480
+ "description": "Stop a previously issued content link from reading a file. Use file_id from file creation or listing and the token path component from a content URL (/c/<token>), not the complete URL. The caller must own the file and have write access; a read-only binding is refused. Revocation propagates through the capability deny list within 30 seconds; the file and other links remain available. Only current IAM capability tokens can be revoked; legacy content links expire at the migration deadline. Example body: {\"token\":\"<token from /c/>\"}.",
9481
+ "http": "POST",
9482
+ "path": "/file/v1/files/{file_id}/content_links:revoke",
9483
+ "streaming": "no",
9484
+ "pagination": false,
9485
+ "pathParams": [
9486
+ {
9487
+ "name": "file_id",
9488
+ "sdkName": "file_id",
9489
+ "description": "Tenant-owned file identifier returned by file creation or listing; the token must name this same file."
9490
+ }
9491
+ ],
9492
+ "query": [],
9493
+ "body": {
9494
+ "required": true,
9495
+ "fields": [
9496
+ {
9497
+ "name": "token",
9498
+ "type": "string",
9499
+ "required": true,
9500
+ "description": "Signed token taken from the /c/ path component of a previously issued file content URL, without the host or /c/ prefix."
9501
+ }
9502
+ ]
9503
+ }
9504
+ },
8598
9505
  {
8599
9506
  "resource": "file.uploads",
8600
9507
  "method": "create",
8601
9508
  "summary": "Create an upload",
8602
- "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.",
9509
+ "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.",
8603
9510
  "http": "POST",
8604
9511
  "path": "/file/v1/uploads",
8605
9512
  "streaming": "no",
@@ -8632,11 +9539,10 @@ export const operations = [
8632
9539
  "type": "string",
8633
9540
  "enum": [
8634
9541
  "user_data",
8635
- "assistants",
8636
9542
  "vision"
8637
9543
  ],
8638
9544
  "required": true,
8639
- "description": "Use user_data for conversation attachments, assistants for assistant files, or vision for PNG, JPEG, GIF and WebP images."
9545
+ "description": "Use user_data for conversation attachments, or vision for PNG, JPEG, GIF and WebP images."
8640
9546
  },
8641
9547
  {
8642
9548
  "name": "expires_after",
@@ -8653,6 +9559,63 @@ export const operations = [
8653
9559
  ]
8654
9560
  }
8655
9561
  },
9562
+ {
9563
+ "resource": "file.uploads",
9564
+ "method": "createSigned",
9565
+ "summary": "Create a one-time upload URL",
9566
+ "description": "Upload a local file of up to 2 GiB from a coding agent without sending bytes through the model. Provide basename, exact byte count and MIME type. Up to 104857600 bytes, PUT the file to url with curl -T photo.png -H 'Content-Type: image/png' '<url>'; success returns 201 with the file object, and reuse returns 410 CAPABILITY_USED. Above that threshold, split the file into part_size chunks (default 64000000 bytes), PUT each chunk to its numbered parts[].url in any order, then POST complete_url without a body. Part PUTs return 200; completion returns 201 with the file object, including its state, or 400 if a part is missing. A processing file can be polled with files.retrieve until active. Identical part bytes may be retried; changed bytes at the same number return 400. Completion reuse returns 410 CAPABILITY_USED. Each PUT requires the exact signed Content-Length; single-PUT Content-Type must match content_type or be omitted. Expired, revoked, invalid, wrong-action or cross-organization URLs return 404. URL lifetime defaults to 900 seconds for single PUT or 3600 for multipart, at most 604800; all multipart URLs share an expiry. Multipart creation reserves storage quota. Issuance requires the same unscoped credential as direct file creation. Each issuance creates a new upload and is not idempotent. Example body: {\"filename\":\"photo.png\",\"bytes\":2048,\"content_type\":\"image/png\"}.",
9567
+ "http": "POST",
9568
+ "path": "/file/v1/uploads/signed",
9569
+ "streaming": "no",
9570
+ "pagination": false,
9571
+ "pathParams": [],
9572
+ "query": [],
9573
+ "body": {
9574
+ "required": true,
9575
+ "fields": [
9576
+ {
9577
+ "name": "filename",
9578
+ "type": "string",
9579
+ "required": true,
9580
+ "description": "Stored basename, 1–255 UTF-8 bytes without control characters or path separators."
9581
+ },
9582
+ {
9583
+ "name": "bytes",
9584
+ "type": "integer",
9585
+ "required": true,
9586
+ "description": "Exact local file size in bytes, from 1 through 2147483648 (2 GiB). Up to 104857600 bytes returns one PUT URL; larger files return numbered part URLs and a completion URL. Every PUT requires its exact signed Content-Length."
9587
+ },
9588
+ {
9589
+ "name": "content_type",
9590
+ "type": "string",
9591
+ "required": true,
9592
+ "description": "Declared MIME type, such as image/png. In single-PUT mode, send exactly this Content-Type or omit it. Stored file metadata is detected from the bytes in both modes."
9593
+ },
9594
+ {
9595
+ "name": "purpose",
9596
+ "type": "string",
9597
+ "enum": [
9598
+ "user_data",
9599
+ "vision"
9600
+ ],
9601
+ "required": false,
9602
+ "description": "user_data stores ordinary files and conversation images; vision accepts PNG, JPEG, GIF or WebP images only. Omitted means user_data."
9603
+ },
9604
+ {
9605
+ "name": "expires_in",
9606
+ "type": "integer",
9607
+ "required": false,
9608
+ "description": "Lifetime in seconds, from 1 through 604800: defaults to 900 for single PUT or 3600 for multipart. All part URLs and the completion URL share one expiry. This does not set the resulting file's lifetime."
9609
+ },
9610
+ {
9611
+ "name": "part_size",
9612
+ "type": "integer",
9613
+ "required": false,
9614
+ "description": "Fixed multipart chunk size in bytes, from 5242880 through 64000000; defaults to 64000000. Used only above 104857600 total bytes. The final part contains the remaining bytes; single-PUT mode keeps its existing response."
9615
+ }
9616
+ ]
9617
+ }
9618
+ },
8656
9619
  {
8657
9620
  "resource": "file.uploads",
8658
9621
  "method": "cancel",
@@ -9816,7 +10779,7 @@ export const operations = [
9816
10779
  "name": "overwrite",
9817
10780
  "type": "boolean",
9818
10781
  "required": false,
9819
- "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."
10782
+ "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."
9820
10783
  },
9821
10784
  {
9822
10785
  "name": "tags",
@@ -9847,6 +10810,16 @@ export const operations = [
9847
10810
  ],
9848
10811
  "required": false,
9849
10812
  "description": "Upload category: image for images, video for video or audio, raw for unprocessed files, or auto to detect the category. Defaults to auto."
10813
+ },
10814
+ {
10815
+ "name": "type",
10816
+ "type": "string",
10817
+ "enum": [
10818
+ "upload",
10819
+ "authenticated"
10820
+ ],
10821
+ "required": false,
10822
+ "description": "Asset delivery mode: upload is public; authenticated requires a signed URL or delivery token for originals and derivatives. private is unsupported."
9850
10823
  }
9851
10824
  ]
9852
10825
  }
@@ -9874,7 +10847,8 @@ export const operations = [
9874
10847
  {
9875
10848
  "name": "file_id",
9876
10849
  "type": "string",
9877
- "required": true
10850
+ "required": true,
10851
+ "description": "File ID to copy into this library instead of file bytes. This independent copy defaults to public delivery; set type=authenticated for private delivery. Deleting the source File does not delete this asset."
9878
10852
  },
9879
10853
  {
9880
10854
  "name": "public_id",
@@ -9928,7 +10902,7 @@ export const operations = [
9928
10902
  "name": "overwrite",
9929
10903
  "type": "boolean",
9930
10904
  "required": false,
9931
- "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."
10905
+ "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."
9932
10906
  },
9933
10907
  {
9934
10908
  "name": "tags",
@@ -9959,6 +10933,16 @@ export const operations = [
9959
10933
  ],
9960
10934
  "required": false,
9961
10935
  "description": "Upload category: image for images, video for video or audio, raw for unprocessed files, or auto to detect the category. Defaults to auto."
10936
+ },
10937
+ {
10938
+ "name": "type",
10939
+ "type": "string",
10940
+ "enum": [
10941
+ "upload",
10942
+ "authenticated"
10943
+ ],
10944
+ "required": false,
10945
+ "description": "Asset delivery mode: upload is public; authenticated requires a signed URL or delivery token for originals and derivatives. private is unsupported."
9962
10946
  }
9963
10947
  ]
9964
10948
  }
@@ -10239,6 +11223,41 @@ export const operations = [
10239
11223
  ],
10240
11224
  "query": []
10241
11225
  },
11226
+ {
11227
+ "resource": "media.libraries.deliveryTokens",
11228
+ "method": "create",
11229
+ "summary": "Create delivery token",
11230
+ "description": "Issue a time-limited bearer token for originals and transformed authenticated assets in an active library. Use library_id from library creation or listing; read access is sufficient. Append token as the __cld_token__ query parameter on a matching delivery URL. The default ACL covers this library and the default lifetime is 3600 seconds; narrow acl and expires_in before sharing. Anyone holding the token can read matching paths until expires_at.",
11231
+ "http": "POST",
11232
+ "path": "/media/v1/libraries/{library_id}/delivery_tokens",
11233
+ "streaming": "no",
11234
+ "pagination": false,
11235
+ "pathParams": [
11236
+ {
11237
+ "name": "library_id",
11238
+ "sdkName": "library_id",
11239
+ "description": "Library ID returned by creation."
11240
+ }
11241
+ ],
11242
+ "query": [],
11243
+ "body": {
11244
+ "required": true,
11245
+ "fields": [
11246
+ {
11247
+ "name": "acl",
11248
+ "type": "string",
11249
+ "required": false,
11250
+ "description": "Delivery path glob restricted to the library path prefix (a slash, library_id, then a slash). Defaults to that prefix followed by *; * matches any path text. Tildes and control characters are rejected."
11251
+ },
11252
+ {
11253
+ "name": "expires_in",
11254
+ "type": "integer",
11255
+ "required": false,
11256
+ "description": "Token lifetime in seconds, from 1 to 604800 inclusive; defaults to 3600."
11257
+ }
11258
+ ]
11259
+ }
11260
+ },
10242
11261
  {
10243
11262
  "resource": "media.libraries.events",
10244
11263
  "method": "list",
@@ -10445,7 +11464,7 @@ export const operations = [
10445
11464
  "name": "expression",
10446
11465
  "type": "string",
10447
11466
  "required": false,
10448
- "description": "Asset filter expression supporting field comparisons, AND, OR, NOT, parentheses and suffix wildcards. An empty expression matches all assets."
11467
+ "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."
10449
11468
  },
10450
11469
  {
10451
11470
  "name": "sort_by",
@@ -10591,6 +11610,70 @@ export const operations = [
10591
11610
  ]
10592
11611
  }
10593
11612
  },
11613
+ {
11614
+ "resource": "meta.docs",
11615
+ "method": "search",
11616
+ "summary": "Search platform documentation",
11617
+ "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.",
11618
+ "http": "GET",
11619
+ "path": "/meta/v1/docs/search",
11620
+ "streaming": "no",
11621
+ "pagination": false,
11622
+ "pathParams": [],
11623
+ "query": [
11624
+ {
11625
+ "name": "q",
11626
+ "type": "string",
11627
+ "required": true,
11628
+ "description": "Keywords describing the syntax or guide needed, for example export or workflow."
11629
+ },
11630
+ {
11631
+ "name": "limit",
11632
+ "type": "integer",
11633
+ "required": false,
11634
+ "description": "Maximum number of matching pages returned; integer 1–50, default 20."
11635
+ },
11636
+ {
11637
+ "name": "lang",
11638
+ "type": "string",
11639
+ "enum": [
11640
+ "zh",
11641
+ "en"
11642
+ ],
11643
+ "required": false,
11644
+ "description": "Documentation language: zh for Chinese (default), en for English."
11645
+ }
11646
+ ]
11647
+ },
11648
+ {
11649
+ "resource": "meta.docs",
11650
+ "method": "retrieve",
11651
+ "summary": "Read documentation Markdown",
11652
+ "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.",
11653
+ "http": "GET",
11654
+ "path": "/meta/v1/docs/{path}",
11655
+ "streaming": "no",
11656
+ "pagination": false,
11657
+ "pathParams": [
11658
+ {
11659
+ "name": "path",
11660
+ "sdkName": "path",
11661
+ "description": "Slash-separated documentation path from docs.search; optionally append #heading-id to select a section."
11662
+ }
11663
+ ],
11664
+ "query": [
11665
+ {
11666
+ "name": "lang",
11667
+ "type": "string",
11668
+ "enum": [
11669
+ "zh",
11670
+ "en"
11671
+ ],
11672
+ "required": false,
11673
+ "description": "Documentation language: zh for Chinese (default), en for English."
11674
+ }
11675
+ ]
11676
+ },
10594
11677
  {
10595
11678
  "resource": "meta.health",
10596
11679
  "method": "retrieve",
@@ -11955,7 +13038,8 @@ export const operations = [
11955
13038
  "openai.images.edits",
11956
13039
  "openai.images.generations",
11957
13040
  "openai.responses",
11958
- "openai.videos"
13041
+ "openai.videos",
13042
+ "typesafe.systemone"
11959
13043
  ],
11960
13044
  "required": false,
11961
13045
  "description": "Match any comma-separated declared protocol ID; omitted or empty includes all models. Combined with type and output_modalities using AND. Invalid IDs return 400 with all legal values."
@@ -12530,6 +13614,47 @@ export const operations = [
12530
13614
  ],
12531
13615
  "query": []
12532
13616
  },
13617
+ {
13618
+ "resource": "model.systemone",
13619
+ "method": "create",
13620
+ "summary": "Ask structured decision questions",
13621
+ "description": "Ask typed questions about a state and get calibrated probabilities instead of generated text. Same request and response as TypeSafe System One. Use model ids from model.models.list declaring typesafe.systemone. Send one or more noul, choice or score questions; answers use the same question ids. Input tokens are charged at the catalog input price; output tokens are free. usage.cost and X-Praxis-Cost-Usd expose the same customer charge in USD. box questions and assets are unsupported and return 400: images are not supported. Unknown top-level fields pass unchanged to the native upstream.",
13622
+ "http": "POST",
13623
+ "path": "/model/v1/systemone",
13624
+ "streaming": "no",
13625
+ "pagination": false,
13626
+ "pathParams": [],
13627
+ "query": [],
13628
+ "body": {
13629
+ "required": true,
13630
+ "fields": [
13631
+ {
13632
+ "name": "model",
13633
+ "type": "string",
13634
+ "required": true,
13635
+ "description": "Published model id from model.models.list with supported_apis containing typesafe.systemone; returned unchanged in the response."
13636
+ },
13637
+ {
13638
+ "name": "state",
13639
+ "type": "object",
13640
+ "required": true,
13641
+ "description": "Shared content evaluated by every question, supplied as text, a JSON object or an array."
13642
+ },
13643
+ {
13644
+ "name": "questions",
13645
+ "type": "object",
13646
+ "required": true,
13647
+ "description": "Non-empty map of caller-chosen question ids to typed questions; answers preserve these ids. noul evaluates yes/no, choice selects a named option, score rates ordered levels. box is unsupported."
13648
+ },
13649
+ {
13650
+ "name": "assets",
13651
+ "type": "object",
13652
+ "required": false,
13653
+ "description": "Unsupported image assets. Supplying this field, including null or an empty collection, returns 400: images are not supported."
13654
+ }
13655
+ ]
13656
+ }
13657
+ },
12533
13658
  {
12534
13659
  "resource": "model.videos",
12535
13660
  "method": "list",
@@ -13828,7 +14953,7 @@ export const operations = [
13828
14953
  "resource": "sandbox.sandboxes.commands",
13829
14954
  "method": "run",
13830
14955
  "summary": "Run a command in the sandbox",
13831
- "description": "Execute a shell command and wait for stdout, stderr and exitCode. Supply cmd, optional cwd and envs, and timeoutMs (1–60000 milliseconds, default 60000). Unlike E2B, this endpoint is synchronous only: no background mode, callbacks or unlimited timeout; output is bounded to 1 MiB including stream framing. Nonzero exit codes return 200 with the result. A timeout returns COMMAND_TIMEOUT (504); transport timeout does not confirm process termination, so do not blindly retry commands with side effects. Example body: {\"cmd\":\"echo hi\"}.",
14956
+ "description": "Execute a shell command and wait for stdout, stderr and exitCode. Supply cmd, optional cwd and envs, and timeoutMs (1–3600000 milliseconds, default 600000, that is 10 minutes; E2B defaults to 60000). Unlike E2B, this endpoint is synchronous only: no background mode, callbacks or unlimited timeout (timeoutMs 0); output is bounded to 1 MiB including stream framing. Nonzero exit codes return 200 with the result. A timeout returns COMMAND_TIMEOUT (504); transport timeout does not confirm process termination, so do not blindly retry commands with side effects. Example body: {\"cmd\":\"echo hi\"}.",
13832
14957
  "http": "POST",
13833
14958
  "path": "/sandbox/v1/sandboxes/{sandbox_id}/commands",
13834
14959
  "streaming": "no",
@@ -13866,7 +14991,7 @@ export const operations = [
13866
14991
  "name": "timeoutMs",
13867
14992
  "type": "integer",
13868
14993
  "required": false,
13869
- "description": "Execution timeout in milliseconds, from 1 to 60000; defaults to 60000."
14994
+ "description": "Execution timeout in milliseconds, from 1 to 3600000 (1 hour); defaults to 600000 (10 minutes)."
13870
14995
  }
13871
14996
  ]
13872
14997
  }
@@ -15251,7 +16376,7 @@ export const operations = [
15251
16376
  "resource": "ticket.milestones",
15252
16377
  "method": "create",
15253
16378
  "summary": "Create or add milestones",
15254
- "description": "Create or add milestones within the authenticated organization. Obtain resource identifiers from the corresponding list or create response. Writes complete synchronously; read the returned resource to observe the result. Organization owner or admin authority is required for this write; API keys without role information act as members.",
16379
+ "description": "Create or add milestones within the authenticated organization. Obtain resource identifiers from the corresponding list or create response. Writes complete synchronously; read the returned resource to observe the result. Service authorization applies to the verified human subject.",
15255
16380
  "http": "POST",
15256
16381
  "path": "/ticket/v1/milestones",
15257
16382
  "streaming": "no",
@@ -15303,7 +16428,7 @@ export const operations = [
15303
16428
  "resource": "ticket.milestones",
15304
16429
  "method": "delete",
15305
16430
  "summary": "Remove milestones",
15306
- "description": "Remove milestones within the authenticated organization. Obtain resource identifiers from the corresponding list or create response. Writes complete synchronously; read the returned resource to observe the result. Organization owner or admin authority is required for this write; API keys without role information act as members.",
16431
+ "description": "Remove milestones within the authenticated organization. Obtain resource identifiers from the corresponding list or create response. Writes complete synchronously; read the returned resource to observe the result. Service authorization applies to the verified human subject.",
15307
16432
  "http": "DELETE",
15308
16433
  "path": "/ticket/v1/milestones/{number}",
15309
16434
  "streaming": "no",
@@ -15355,7 +16480,7 @@ export const operations = [
15355
16480
  "resource": "ticket.milestones",
15356
16481
  "method": "update",
15357
16482
  "summary": "Update milestones",
15358
- "description": "Update milestones within the authenticated organization. Obtain resource identifiers from the corresponding list or create response. Writes complete synchronously; read the returned resource to observe the result. Organization owner or admin authority is required for this write; API keys without role information act as members.",
16483
+ "description": "Update milestones within the authenticated organization. Obtain resource identifiers from the corresponding list or create response. Writes complete synchronously; read the returned resource to observe the result. Service authorization applies to the verified human subject.",
15359
16484
  "http": "PATCH",
15360
16485
  "path": "/ticket/v1/milestones/{number}",
15361
16486
  "streaming": "no",
@@ -16766,7 +17891,7 @@ export const operations = [
16766
17891
  "resource": "vault.vaults.secrets",
16767
17892
  "method": "create",
16768
17893
  "summary": "Create secret",
16769
- "description": "Store a manually supplied token in an active vault for use on requests to its allowed_hosts. Unlike Anthropic credentials, this native operation takes name, value and allowed_hosts directly and creates only static secrets; use praxis.vault.authorizations.create for OAuth. Its name must be unused by any non-archived secret in that vault; the response contains metadata but never the supplied value. Application praxis_vault_ref bindings declare vault_id and secret (the secret name), but currently return 501; do not copy the value into a plain-text binding or metadata as a substitute.",
17894
+ "description": "Store a manually supplied token in an active vault. Omit allowed_hosts for name-based resolution only; host-based redemption never matches an empty host list. Unlike Anthropic credentials, this native operation takes name and value directly, with optional allowed_hosts and creates only static secrets; use praxis.vault.authorizations.create for OAuth. Its name must be unused by any non-archived secret in that vault; the response contains metadata but never the supplied value. Application praxis_vault_ref bindings declare vault_id and secret (the secret name), but currently return 501; do not copy the value into a plain-text binding or metadata as a substitute.",
16770
17895
  "http": "POST",
16771
17896
  "path": "/vault/v1/vaults/{vault_id}/secrets",
16772
17897
  "streaming": "no",
@@ -16798,8 +17923,8 @@ export const operations = [
16798
17923
  "name": "allowed_hosts",
16799
17924
  "type": "array",
16800
17925
  "itemType": "string",
16801
- "required": true,
16802
- "description": "Allowed destinations for the secret. Unlike Anthropic's unrestricted networking option, an explicit allowlist is required. Supply 1–16 bare domain names, dotted-decimal IPv4 addresses or leading *. domain wildcards. A wildcard matches subdomains, not the domain itself. URLs, ports, paths, IPv6, local/private and platform hosts are rejected. Entries are lowercased, one trailing dot is removed, internationalized domains use Punycode, and duplicates are removed."
17926
+ "required": false,
17927
+ "description": "Allowed destinations for the secret. Omitting allowed_hosts on creation stores an empty list for name-based resolution only: host-based redemption never matches. When supplied, list 1–16 bare domain names, dotted-decimal IPv4 addresses or leading *. domain wildcards. A wildcard matches subdomains, not the domain itself. URLs, ports, paths, IPv6, local/private and platform hosts are rejected. Entries are lowercased, one trailing dot is removed, internationalized domains use Punycode, and duplicates are removed."
16803
17928
  },
16804
17929
  {
16805
17930
  "name": "description",
@@ -16823,7 +17948,7 @@ export const operations = [
16823
17948
  "stripe"
16824
17949
  ],
16825
17950
  "required": false,
16826
- "description": "Static template ID from List templates. Records metadata.template; name, value and allowed_hosts must still be supplied explicitly."
17951
+ "description": "Static template ID from List templates. Records metadata.template; name and value must still be supplied explicitly; allowed_hosts is optional."
16827
17952
  },
16828
17953
  {
16829
17954
  "name": "kind",
@@ -16919,7 +18044,7 @@ export const operations = [
16919
18044
  "type": "array",
16920
18045
  "itemType": "string",
16921
18046
  "required": false,
16922
- "description": "Allowed destinations for the secret. Unlike Anthropic's unrestricted networking option, an explicit allowlist is required. Supply 1–16 bare domain names, dotted-decimal IPv4 addresses or leading *. domain wildcards. A wildcard matches subdomains, not the domain itself. URLs, ports, paths, IPv6, local/private and platform hosts are rejected. Entries are lowercased, one trailing dot is removed, internationalized domains use Punycode, and duplicates are removed."
18047
+ "description": "Allowed destinations for the secret. Omitting allowed_hosts on creation stores an empty list for name-based resolution only: host-based redemption never matches. When supplied, list 1–16 bare domain names, dotted-decimal IPv4 addresses or leading *. domain wildcards. A wildcard matches subdomains, not the domain itself. URLs, ports, paths, IPv6, local/private and platform hosts are rejected. Entries are lowercased, one trailing dot is removed, internationalized domains use Punycode, and duplicates are removed."
16923
18048
  },
16924
18049
  {
16925
18050
  "name": "description",
@@ -17023,7 +18148,7 @@ export const operations = [
17023
18148
  "resource": "vault.vaults.secrets",
17024
18149
  "method": "import",
17025
18150
  "summary": "Import secrets",
17026
- "description": "Import lines or dotenv text into an active vault, reporting success or failure for each entry. Existing names have their values replaced; their hosts change only when that line supplies allowed_hosts. Shared hosts apply only to newly created secrets.",
18151
+ "description": "Import lines or dotenv text into an active vault, reporting success or failure for each entry. Existing names have their values replaced; their hosts change only when that line supplies allowed_hosts. Shared hosts apply only to newly created secrets; if neither shared nor per-line hosts are supplied, new secrets use an empty host list for name-based resolution only.",
17027
18152
  "http": "POST",
17028
18153
  "path": "/vault/v1/vaults/{vault_id}/secrets:import",
17029
18154
  "streaming": "no",