@deepraxis/sdk 0.1.1-dev.218780d → 0.1.1-dev.21f8389

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.
@@ -61,7 +61,7 @@ export const operations = [
61
61
  "resource": "agent.agents",
62
62
  "method": "create",
63
63
  "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, 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\"}]}. kind defaults to service when it is omitted and no computer_id is given, and to general when computer_id is given; it cannot change after creation. 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.",
64
+ "description": "Create a reusable agent definition, then pass its returned id to sessions.create to start a conversation. Omit kind to create a service agent (Managed Agents behaviour: a fresh environment per session). Pass kind: \"general\" for an employee-style agent with its own computer, created with it; size and template come from the agent's computers configuration. 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 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\"}]}. kind defaults to service when it is omitted and no computer_id is given, and to general when computer_id is given; it cannot change after creation. A general or assume agent created without computer_id gets a new computer registered in the same request, named after the agent; a service agent with computer_id returns 400. For kind assume, provide name without model, models, subagent_model, subagents or multiagent; vault_ids are accepted, bindings and environment_id are refused. phone gives the agent one phone, in one of two mutually exclusive forms: {sku, name?, archive: {exclude}} is a cloud Android device the platform builds on demand from that Sandbox SKU, and {byod, name?} is your organization's own device, named by a byd_… id it already owns (Brought Your Own Device), which the platform drives but never builds. A body naming both sku and byod returns 400, and a byd_… id this organization does not own returns 400 INVALID_PARAMS. Only a general or assume agent may have a phone: a service agent with phone returns 400. Drive assume agents over MCP at /agent/v1/agents/{id}/mcp.",
65
65
  "http": "POST",
66
66
  "path": "/agent/v1/agents",
67
67
  "streaming": "no",
@@ -144,7 +144,7 @@ export const operations = [
144
144
  "assume"
145
145
  ],
146
146
  "required": false,
147
- "description": "Immutable agent kind. general requires computer_id; on creation, assume may omit computer_id to register a new computer named after the agent, without starting an instance; assume has no conversation model and rejects model, models, subagent_model, subagents and multiagent; 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."
147
+ "description": "Immutable agent kind. general uses a durable computer and acts for its owner; service uses a clean environment per session; assume is driven over MCP with a durable computer and no conversation model. Omit on create to infer from computer_id (general with a computer, service without). A general or assume agent created without computer_id registers a new computer named after the agent in the same request; a service agent cannot take computer_id. assume rejects model, models, subagent_model, subagents and multiagent. On update, the same kind is ignored; changing kind or crossing its computer binding returns 400 invalid_request_error."
148
148
  },
149
149
  {
150
150
  "name": "computer_id",
@@ -224,7 +224,7 @@ export const operations = [
224
224
  "full"
225
225
  ],
226
226
  "required": false,
227
- "description": "Optional tool preset. minimal enables read, glob, grep and ask_user_question; data-editor also enables write and edit; full uses the default toolset with always_allow. Explicit tools override matching preset entries. codemode requires bash and is absent from data-editor."
227
+ "description": "Optional tool preset. minimal enables read, glob and grep; data-editor also enables write and edit; full uses the default toolset with always_allow. Explicit tools override matching preset entries. codemode requires bash and is absent from data-editor."
228
228
  },
229
229
  {
230
230
  "name": "output_styles",
@@ -265,7 +265,7 @@ export const operations = [
265
265
  "resource": "agent.agents",
266
266
  "method": "update",
267
267
  "summary": "Update agent",
268
- "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.",
268
+ "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. phone takes the same two mutually exclusive forms as agents.create: {sku, name?, archive} for a cloud device, or {byod, name?} for your organization's own device (a byd_… id); naming both returns 400, and a byd_… id this organization does not own returns 400 INVALID_PARAMS. phone: null turns the phone off and releases a cloud device; a BYOD phone is the organization's and is never killed. 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.",
269
269
  "http": "POST",
270
270
  "path": "/agent/v1/agents/{agent_id}",
271
271
  "streaming": "no",
@@ -372,7 +372,7 @@ export const operations = [
372
372
  "assume"
373
373
  ],
374
374
  "required": false,
375
- "description": "Immutable agent kind. general requires computer_id; on creation, assume may omit computer_id to register a new computer named after the agent, without starting an instance; assume has no conversation model and rejects model, models, subagent_model, subagents and multiagent; 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."
375
+ "description": "Immutable agent kind. general uses a durable computer and acts for its owner; service uses a clean environment per session; assume is driven over MCP with a durable computer and no conversation model. Omit on create to infer from computer_id (general with a computer, service without). A general or assume agent created without computer_id registers a new computer named after the agent in the same request; a service agent cannot take computer_id. assume rejects model, models, subagent_model, subagents and multiagent. On update, the same kind is ignored; changing kind or crossing its computer binding returns 400 invalid_request_error."
376
376
  },
377
377
  {
378
378
  "name": "computer_id",
@@ -452,7 +452,7 @@ export const operations = [
452
452
  "full"
453
453
  ],
454
454
  "required": false,
455
- "description": "Optional tool preset. minimal enables read, glob, grep and ask_user_question; data-editor also enables write and edit; full uses the default toolset with always_allow. Explicit tools override matching preset entries. codemode requires bash and is absent from data-editor."
455
+ "description": "Optional tool preset. minimal enables read, glob and grep; data-editor also enables write and edit; full uses the default toolset with always_allow. Explicit tools override matching preset entries. codemode requires bash and is absent from data-editor."
456
456
  },
457
457
  {
458
458
  "name": "output_styles",
@@ -1013,6 +1013,42 @@ export const operations = [
1013
1013
  }
1014
1014
  ]
1015
1015
  },
1016
+ {
1017
+ "resource": "agent.agents.phone",
1018
+ "method": "retrieve",
1019
+ "summary": "Retrieve agent phone",
1020
+ "description": "Read the agent's phone, or learn that it has none: use it before driving the phone or to show its state in a settings page. configured says whether a phone block is saved at all (false is not an error: the phone is off). A cloud phone's state is one of none, starting, booting, restoring, running, archiving or releasing — none means no instance exists (never built, already released, or gone), archiving means its app state is being packed, and releasing means a release was asked for and the cron has not finished. A BYOD phone (the organization's own device) has two states instead, online and offline, and reports byod_device as its byd_… id, sku null and no lease. sku and name come from the configuration when one exists. When a cloud phone is reachable, sandbox_id is the public sandbox id of its running instance; for a BYOD phone sandbox_id is the byd_… id itself: take either phone over through POST /sandbox/v1/sandboxes/{id}/act, or open the sandbox page's screen tab in the Console; lease_ends_at is when a cloud instance's lease runs out and the sandbox kills it, and is always null for a BYOD phone. archived_at and archive_error describe the last app-state archive, which a fresh instance restores on the next use; both are null for a BYOD phone, which is never archived. Reading never builds a phone. Only a general or assume agent may have one: a service agent, an agent of another organization and a missing agent all answer 404 AGENT_NOT_FOUND. This operation is for people and their tools — the model cannot call it; an agent drives its own phone only through its phone tool, which can act on the device but cannot read this state or release it.",
1021
+ "http": "GET",
1022
+ "path": "/agent/v1/agents/{agent_id}/phone",
1023
+ "streaming": "no",
1024
+ "pagination": false,
1025
+ "pathParams": [
1026
+ {
1027
+ "name": "agent_id",
1028
+ "sdkName": "agent_id",
1029
+ "description": "Agent id from agent creation or listing, the eight character identity number or the handle. A service agent never has a phone and answers not found. Also accepts an 8-character identity number (0–9, A–Z); malformed, absent and foreign references return 404, and response ids always use agent_…."
1030
+ }
1031
+ ],
1032
+ "query": []
1033
+ },
1034
+ {
1035
+ "resource": "agent.agents.phone",
1036
+ "method": "release",
1037
+ "summary": "Release agent phone",
1038
+ "description": "Ask for the agent's cloud phone to go, and answer its state afterwards. The phone is not killed here: its app state is packed first (state archiving), then the instance is killed and the row cleared, so the state answers releasing until that sweep finishes and the next use builds a fresh instance and restores the archive. The configuration is never deleted — the phone block stays and turning the phone off is agents.update with phone null, a different door. With no phone configured, or one that was never built (state none), the call changes nothing and answers none, so it is safe to repeat; repeating it while a release is pending is idempotent. A BYOD phone (the organization's own device) is not the platform's to kill, so the call changes nothing and answers online or offline. Only a general or assume agent may have a phone: a service agent, an agent of another organization and a missing agent all answer 404 AGENT_NOT_FOUND. This operation is for people and their tools — the model cannot call it.",
1039
+ "http": "POST",
1040
+ "path": "/agent/v1/agents/{agent_id}/phone/release",
1041
+ "streaming": "no",
1042
+ "pagination": false,
1043
+ "pathParams": [
1044
+ {
1045
+ "name": "agent_id",
1046
+ "sdkName": "agent_id",
1047
+ "description": "Agent id from agent creation or listing, the eight character identity number or the handle. A service agent never has a phone and answers not found. Also accepts an 8-character identity number (0–9, A–Z); malformed, absent and foreign references return 404, and response ids always use agent_…."
1048
+ }
1049
+ ],
1050
+ "query": []
1051
+ },
1016
1052
  {
1017
1053
  "resource": "agent.agents.unarchive",
1018
1054
  "method": "create",
@@ -1090,7 +1126,7 @@ export const operations = [
1090
1126
  "resource": "agent.computers",
1091
1127
  "method": "list",
1092
1128
  "summary": "List Computers",
1093
- "description": "List the computers of your organization, archived ones included.\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.",
1129
+ "description": "List the computers of your organization, archived ones included.\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; a computer starts on first use and exposes the public SDK sandbox_id. Lists include archived computers.",
1094
1130
  "http": "GET",
1095
1131
  "path": "/agent/v1/computers",
1096
1132
  "streaming": "no",
@@ -1115,7 +1151,7 @@ export const operations = [
1115
1151
  "resource": "agent.computers",
1116
1152
  "method": "create",
1117
1153
  "summary": "Create Computer",
1118
- "description": "Create a durable computer: a named machine whose files outlive sessions, for general 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.",
1154
+ "description": "Create a durable computer: a named machine whose files outlive sessions, for general 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; a computer starts on first use and exposes the public SDK sandbox_id. Lists include archived computers.",
1119
1155
  "http": "POST",
1120
1156
  "path": "/agent/v1/computers",
1121
1157
  "streaming": "no",
@@ -1162,7 +1198,7 @@ export const operations = [
1162
1198
  "resource": "agent.computers",
1163
1199
  "method": "retrieve",
1164
1200
  "summary": "Get Computer",
1165
- "description": "Read one computer's status, storage use and sandbox id.\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.",
1201
+ "description": "Read one computer's status, storage use and sandbox id.\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; a computer starts on first use and exposes the public SDK sandbox_id. Lists include archived computers.",
1166
1202
  "http": "GET",
1167
1203
  "path": "/agent/v1/computers/{computer_id}",
1168
1204
  "streaming": "no",
@@ -1180,7 +1216,7 @@ export const operations = [
1180
1216
  "resource": "agent.computers",
1181
1217
  "method": "update",
1182
1218
  "summary": "Update Computer",
1183
- "description": "Rename a computer.\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.",
1219
+ "description": "Rename a computer.\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; a computer starts on first use and exposes the public SDK sandbox_id. Lists include archived computers.",
1184
1220
  "http": "POST",
1185
1221
  "path": "/agent/v1/computers/{computer_id}",
1186
1222
  "streaming": "no",
@@ -1209,7 +1245,7 @@ export const operations = [
1209
1245
  "resource": "agent.computers",
1210
1246
  "method": "archive",
1211
1247
  "summary": "Archive Computer",
1212
- "description": "Archive a computer: its files stay readable but new sessions cannot use it.\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.",
1248
+ "description": "Archive a computer: its files stay readable but new sessions cannot use it.\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; a computer starts on first use and exposes the public SDK sandbox_id. Lists include archived computers. A computer an active agent holds is refused with 409 COMPUTER_IN_USE; archive the agent first.",
1213
1249
  "http": "POST",
1214
1250
  "path": "/agent/v1/computers/{computer_id}/archive",
1215
1251
  "streaming": "no",
@@ -1289,7 +1325,7 @@ export const operations = [
1289
1325
  "resource": "agent.computers.files",
1290
1326
  "method": "list",
1291
1327
  "summary": "List Computer Files",
1292
- "description": "List the entries of one directory on a computer.\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.",
1328
+ "description": "List the entries of one directory on a computer.\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; a computer starts on first use and exposes the public SDK sandbox_id. Lists include archived computers.",
1293
1329
  "http": "GET",
1294
1330
  "path": "/agent/v1/computers/{computer_id}/files",
1295
1331
  "streaming": "no",
@@ -1314,7 +1350,7 @@ export const operations = [
1314
1350
  "resource": "agent.computers.files",
1315
1351
  "method": "retrieveContent",
1316
1352
  "summary": "Get Computer File Content",
1317
- "description": "Download the bytes of one file on a computer, up to 16 MiB, with single-range support.\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.",
1353
+ "description": "Download the bytes of one file on a computer, up to 16 MiB, with single-range support.\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; a computer starts on first use and exposes the public SDK sandbox_id. Lists include archived computers.",
1318
1354
  "http": "GET",
1319
1355
  "path": "/agent/v1/computers/{computer_id}/files/content",
1320
1356
  "streaming": "no",
@@ -1360,6 +1396,50 @@ export const operations = [
1360
1396
  }
1361
1397
  ]
1362
1398
  },
1399
+ {
1400
+ "resource": "agent.computers.files",
1401
+ "method": "retrievePreview",
1402
+ "summary": "Preview a computer file",
1403
+ "description": "The preview product of one version of one computer file: an image becomes a 1600 px WebP, an Office document a linearized PDF, text and source the first 64 KiB, and PDF, xlsx, epub, GIF, SVG and unknown types their original bytes. Products live in the File service and are keyed by computer, path, size, mtime, variant and format version. A request that pins `v` answers from that registry without stat'ing or waking the computer; without `v` the file is read and the product generated once. A file over the size threshold, or a deployment without the File service, answers `fallback: \"content\"` so the caller keeps the ordinary content door.",
1404
+ "http": "GET",
1405
+ "path": "/agent/v1/computers/{computer_id}/files/preview",
1406
+ "streaming": "no",
1407
+ "pagination": false,
1408
+ "pathParams": [
1409
+ {
1410
+ "name": "computer_id",
1411
+ "sdkName": "computer_id",
1412
+ "description": "Computer id from computer creation or listing; a computer another tenant owns is not found."
1413
+ }
1414
+ ],
1415
+ "query": [
1416
+ {
1417
+ "name": "path",
1418
+ "type": "string",
1419
+ "required": true,
1420
+ "description": "Absolute path of the file on the computer, or a /workspace/ relative path."
1421
+ },
1422
+ {
1423
+ "name": "v",
1424
+ "type": "string",
1425
+ "required": false,
1426
+ "description": "The file version to answer for: the file listing's version (<size>-<mtimeMs>), or the full product version (<size>-<mtimeMs>-<variant>-fmt<N>) a previous answer returned. A pinned version answers from the product registry without a stat or a wake."
1427
+ },
1428
+ {
1429
+ "name": "variant",
1430
+ "type": "string",
1431
+ "enum": [
1432
+ "auto",
1433
+ "image",
1434
+ "pdf",
1435
+ "text",
1436
+ "original"
1437
+ ],
1438
+ "required": false,
1439
+ "description": "The product to answer; auto picks the kind's own (image, pdf, text or original). A variant the file cannot produce answers 400 PREVIEW_VARIANT_UNAVAILABLE."
1440
+ }
1441
+ ]
1442
+ },
1363
1443
  {
1364
1444
  "resource": "agent.computers.leases",
1365
1445
  "method": "delete",
@@ -1566,7 +1646,7 @@ export const operations = [
1566
1646
  "resource": "agent.deployments",
1567
1647
  "method": "create",
1568
1648
  "summary": "Create deployment",
1569
- "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 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.",
1649
+ "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 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. Example, a weekly cron deployment on the agent's computer: {\"agent\":\"agent_123\",\"name\":\"weekly report\",\"initial_events\":[{\"type\":\"user.message\",\"content\":[{\"type\":\"text\",\"text\":\"Write the weekly report.\"}]}],\"target\":{\"type\":\"computer\"},\"schedule\":{\"type\":\"cron\",\"expression\":\"0 9 * * 1\",\"timezone\":\"America/Los_Angeles\"}}.",
1570
1650
  "http": "POST",
1571
1651
  "path": "/agent/v1/deployments",
1572
1652
  "streaming": "no",
@@ -2185,6 +2265,16 @@ export const operations = [
2185
2265
  "required": false,
2186
2266
  "description": "Session working directory on any machine. Must be an absolute path within /home/user with no . or .. segments. Repeated and trailing slashes are normalized. Invalid values return 400 invalid_request_error with Invalid cwd."
2187
2267
  },
2268
+ {
2269
+ "name": "workspace",
2270
+ "type": "string",
2271
+ "enum": [
2272
+ "shared",
2273
+ "isolated"
2274
+ ],
2275
+ "required": false,
2276
+ "description": "Praxis extension: where the session's work happens. shared (default) opens it in the project's own folder; isolated asks for a session-owned git worktree when a named project's folder is a git repository, so concurrent desks in one project never touch each other's files. An explicit cwd is always taken as given, and a project that is not a git repository is always shared."
2277
+ },
2188
2278
  {
2189
2279
  "name": "computer_id",
2190
2280
  "type": "string",
@@ -2742,11 +2832,40 @@ export const operations = [
2742
2832
  ]
2743
2833
  }
2744
2834
  },
2835
+ {
2836
+ "resource": "agent.sessions.name",
2837
+ "method": "create",
2838
+ "summary": "Rename Session (Extension)",
2839
+ "description": "Give a session a short, branch-like name; the main session is always main and cannot be renamed.\n\nAvailable only on /agent/v1. The name is normalized first (surrounding whitespace trimmed, upper case folded to lowercase, runs of whitespace become one hyphen, characters the rule does not admit dropped, and no hyphen left hanging at either end) and then validated: non-empty, at most 32 display columns wide (a Han character counts as two), made only of Han characters, lowercase ASCII letters, digits and hyphens, and never the reserved word main. A name another of the caller's own sessions already holds is not an error: the answer carries a numeric suffix (base-2, base-3, …). Renaming the main session returns 400; a missing session, one that belongs to another caller, or one the caller cannot write returns 404. Returns 200 with the same Session shape as retrieval, name set to the new name; one rename writes a session.renamed event. Example: POST /agent/v1/sessions/sesn_login/name with body {\"name\":\"login-fix\"}.",
2840
+ "http": "POST",
2841
+ "path": "/agent/v1/sessions/{session_id}/name",
2842
+ "streaming": "no",
2843
+ "pagination": false,
2844
+ "pathParams": [
2845
+ {
2846
+ "name": "session_id",
2847
+ "sdkName": "session_id",
2848
+ "description": "Session id from session creation or listing. The reserved name main is not renameable."
2849
+ }
2850
+ ],
2851
+ "query": [],
2852
+ "body": {
2853
+ "required": true,
2854
+ "fields": [
2855
+ {
2856
+ "name": "name",
2857
+ "type": "string",
2858
+ "required": true,
2859
+ "description": "The session's new short name: Han characters, lowercase ASCII letters, digits and hyphens, at most 32 columns (a Han character counts as two), never the reserved word main. Surrounding whitespace is trimmed and uppercase is folded to lowercase."
2860
+ }
2861
+ ]
2862
+ }
2863
+ },
2745
2864
  {
2746
2865
  "resource": "agent.sessions.requests",
2747
2866
  "method": "list",
2748
2867
  "summary": "List Session Requests (Extension)",
2749
- "description": "List the requests a session is waiting on; an end-customer token reads its own session.\n\nOwn-face extension. When a session stops at session.status_idle with stop_reason requires_action, read what it waits on here instead of replaying events. Returns { data: Request[] } ordered by create_time, an empty array when nothing is pending, not paginated. Each request has id (the pending tool call id), object (request), kind (question for the ask_user_question tool, approval for any other tool that waits for permission), status (pending), tool_name, input (the same input the agent.tool_use event shows), create_time and expire_time. Answer a request as before: send a user.tool_confirmation event for its id. expire_time is set only for a session with no collaboration mode while the requests-v1 release is on (create_time plus 24 hours; an expired request counts as declined), otherwise null. Answered, expired and superseded requests are not listed, and neither are pending custom tool results (user.custom_tool_result). Whoever may read the session may read its requests; a session that is missing or not yours returns 404.",
2868
+ "description": "List the requests a session is waiting on; an end-customer token reads its own session.\n\nOwn-face extension. When a session stops at session.status_idle with stop_reason requires_action, read what it waits on here instead of replaying events. Returns { data: Request[] } ordered by create_time, an empty array when nothing is pending, not paginated. Each request has id (the pending tool call id), object (request), kind (always approval, a tool waiting for permission; question is kept for compatibility and is never returned), status (pending), tool_name, input (the same input the agent.tool_use event shows), create_time and expire_time. Answer a request as before: send a user.tool_confirmation event for its id. expire_time is set only for a session with no collaboration mode while the requests-v1 release is on (create_time plus 24 hours; an expired request counts as declined), otherwise null. Answered, expired and superseded requests are not listed, and neither are pending custom tool results (user.custom_tool_result). Whoever may read the session may read its requests; a session that is missing or not yours returns 404.",
2750
2869
  "http": "GET",
2751
2870
  "path": "/agent/v1/sessions/{session_id}/requests",
2752
2871
  "streaming": "no",
@@ -3376,7 +3495,7 @@ export const operations = [
3376
3495
  "resource": "agent.toolsets",
3377
3496
  "method": "list",
3378
3497
  "summary": "List Toolsets",
3379
- "description": "Discover tool names, input schemas, read-only status and default permission policies before configuring an agent. The catalog is read-only: enable tools through agents.create or agents.update. agent_toolset_20260401 includes bash, edit, glob, grep, read, write, web_search, web_fetch, task_output, task_stop, monitor, agent, send_message, codemode and skill, plus todo_write, ask_user_question and goal_read, which are listed so they can be switched off. Native additions require bash enabled; codemode requires bash (enabling it with bash disabled returns 400; keep bash enabled with permission_policy always_ask to restrict it); send_message also requires agent. To keep only some tools, set default_config.enabled to false and enable the wanted tools in configs; unlisted tools follow default_config. The catalog includes plugin names and versions. Sessions created through /anthropic/v1 expose only the eight official tools.",
3498
+ "description": "Discover tool names, input schemas, read-only status and default permission policies before configuring an agent. The catalog is read-only: enable tools through agents.create or agents.update. agent_toolset_20260401 includes bash, edit, glob, grep, read, write, web_search, web_fetch, task_output, task_stop, monitor, agent, send_message, codemode and skill, plus todo_write and goal_read, which are listed so they can be switched off. Native additions require bash enabled; codemode requires bash (enabling it with bash disabled returns 400; keep bash enabled with permission_policy always_ask to restrict it); send_message also requires agent. To keep only some tools, set default_config.enabled to false and enable the wanted tools in configs; unlisted tools follow default_config. The catalog includes plugin names and versions. Sessions created through /anthropic/v1 expose only the eight official tools.",
3380
3499
  "http": "GET",
3381
3500
  "path": "/agent/v1/toolsets",
3382
3501
  "streaming": "no",
@@ -4080,7 +4199,7 @@ export const operations = [
4080
4199
  "resource": "application.workers.versions",
4081
4200
  "method": "create",
4082
4201
  "summary": "Create version",
4083
- "description": "Upload code and bindings as a new version; a version serves nothing until deployed. Set deploy true to create the pending deployment in the same call. Rejected binding types return UNSUPPORTED.",
4202
+ "description": "Upload code and bindings as a new version; a version serves nothing until deployed. Set deploy true to create the pending deployment in the same call. Rejected binding types return UNSUPPORTED. Send an Idempotency-Key to make a create safe to retry: within 24 hours the same key with the same body answers the first version (and its deployment) again instead of creating a second one, and the same key with a different body is refused.",
4084
4203
  "http": "POST",
4085
4204
  "path": "/application/v1/workers/{worker_id}/versions",
4086
4205
  "streaming": "no",
@@ -7268,6 +7387,18 @@ export const operations = [
7268
7387
  ]
7269
7388
  }
7270
7389
  },
7390
+ {
7391
+ "resource": "billing.prices",
7392
+ "method": "list",
7393
+ "summary": "List current prices",
7394
+ "description": "Read every open price item with the amount in force now, in USD and CNY, for example to show a pricing page or check what a meter costs before using it. No credential: the response is the public price book, not an organization's prices, so customer-specific prices and cost floors are not part of it (the source does not carry them). Each entry names the item id, the product (the id's namespace such as router, sandbox or search), the meter's unit and how many units one amount covers (per is 1000000 for per-million-token meters). A model with one amount has one entry; a price that varies by tier or by dimensions has one entry per tier or cell, told apart by variant: tier carries up_to, cell carries when, and a matrix default is kind default. Only versions already in force are shown, so an announced price never appears before its effective_from. usd and cny are decimal strings of major units copied from the price book; a currency the item does not price is null and must be shown as \"—\", never as 0. pricing_version and effective_at identify the catalog this body came from, and the ETag is derived from both: send it as If-None-Match to get 304 until either changes. Cache-Control is public, max-age=60, so revalidate rather than keeping a copy longer. Reading is free.",
7395
+ "http": "GET",
7396
+ "path": "/billing/v1/prices",
7397
+ "streaming": "no",
7398
+ "pagination": false,
7399
+ "pathParams": [],
7400
+ "query": []
7401
+ },
7271
7402
  {
7272
7403
  "resource": "browser.connect",
7273
7404
  "method": "retrieve",
@@ -12539,7 +12670,7 @@ export const operations = [
12539
12670
  "resource": "devops.changes",
12540
12671
  "method": "abandon",
12541
12672
  "summary": "Abandon a change",
12542
- "description": "Stop a change for good: it no longer moves forward and its stage becomes abandoned. reason is required and is kept with the change. Pull requests that were already merged are not undone — the system cleans them up, or a new change reverts them — so abandoning is a statement about the change, not a rollback of code. The id is the branch name and its slash must be percent-encoded in the path (feat%2Frun-page-v2). A change that is already abandoned is refused with INVALID_ARGUMENT, which is how a caller tells an earlier abandon apart from a call that had no effect.",
12673
+ "description": "Stop a change for good: it no longer moves forward and its stage becomes abandoned. reason is required and is kept with the change. Pull requests it has not merged are closed with it: each one is closed on GitHub with a note naming the change and this reason, so an abandoned change never leaves an open pull request behind for someone else to clean up — a change with no open pull request makes no GitHub call at all. That close happens BEFORE the change is marked, so an abandon that cannot close them is refused with GITHUB_UNAVAILABLE and nothing has changed; send it again. Pull requests that were already merged are not undone — the system cleans them up, or a new change reverts them — so abandoning is a statement about the change, not a rollback of code. The id is the branch name and its slash must be percent-encoded in the path (feat%2Frun-page-v2). Repeating the call on a change that is already abandoned answers the change as it stands instead of refusing it: the first abandon is the fact, and a caller that lost the answer gets it back.",
12543
12674
  "http": "POST",
12544
12675
  "path": "/devops/v1/changes/{id}:abandon",
12545
12676
  "streaming": "no",
@@ -12828,7 +12959,7 @@ export const operations = [
12828
12959
  "type": "array",
12829
12960
  "itemType": "string",
12830
12961
  "required": false,
12831
- "description": "Which environment fields to write, by name: name, order, requireApproval, observeMinutes, blocksLater, domainSuffix. Omit it to write every field the environment object carries."
12962
+ "description": "Which environment fields to write, by name: name, order, requireApproval, observeMinutes, blocksLater, domainSuffix, stage. Omit it to write every field the environment object carries."
12832
12963
  }
12833
12964
  ]
12834
12965
  }
@@ -13250,7 +13381,7 @@ export const operations = [
13250
13381
  "resource": "devops.projects",
13251
13382
  "method": "list",
13252
13383
  "summary": "List projects",
13253
- "description": "List the delivery projects this organization has, newest first, with each project's repository binding and settings. Call this first when you do not already hold a project id: every other operation in this domain is addressed by one. A project from another organization is never listed, so an empty page means this organization has none rather than that they are hidden. The order is by creation time descending; follow nextPageToken until it is empty to see them all.",
13384
+ "description": "List the delivery projects this organization has, newest first, with each project's repository binding and settings. Call this first when you do not already hold a project id: every other operation in this domain is addressed by one. A project from another organization is never listed, so an empty page means this organization has none rather than that they are hidden. The order is by creation time descending; follow nextPageToken until it is empty to see them all. The page always carries visibleProjects: how many projects the caller's own organization has in total, deleted ones excluded. Those are the projects visible to the credential's organization — the count filters by organization_id and is not a permission check — so an empty items array reads as \"this organization has none yet\" instead of leaving you to guess whether the read was lost or the credential points at another organization. It is the organization's total across all pages, not this page's length.",
13254
13385
  "http": "GET",
13255
13386
  "path": "/devops/v1/projects",
13256
13387
  "streaming": "no",
@@ -13271,6 +13402,81 @@ export const operations = [
13271
13402
  }
13272
13403
  ]
13273
13404
  },
13405
+ {
13406
+ "resource": "devops.projects",
13407
+ "method": "create",
13408
+ "summary": "Create a project",
13409
+ "description": "Create a delivery project and its two default environments (develop, production). The code lives in one of two places. Our own Git: pass provider platform and package, the id (pkg_...) of a git package in your organization's registry (the registry domain lists packages and creates git libraries); there is no install flow and no connection, the project records the provider, the package and the package's default branch, and from then on pull requests, the merge gate, changes and cloud workspaces use that package and DevOps merges a pull request itself. A package backs at most one project (REPOSITORY_ALREADY_BOUND) and a package that is not a git package of your organization is INVALID_ARGUMENT. If the package has no default branch yet, which is usual for a library imported from elsewhere, pass initialRef, an existing branch such as import: the default branch is created at its head while the project is created, and no change can be opened before it exists. If the default branch already exists the call is refused with DEFAULT_BRANCH_EXISTS, and a missing initialRef branch with REF_NOT_FOUND; neither leaves a project behind. For a package whose project already exists, use devops.projects.initializeDefaultBranch instead. GitHub (the default): pass the connection of a completed GitHub App install and the repository (owner/name) it can see; leave both out to create a project with no repository yet. A name must be kebab-case and unused in the organization (PROJECT_NAME_TAKEN).",
13410
+ "http": "POST",
13411
+ "path": "/devops/v1/projects",
13412
+ "streaming": "no",
13413
+ "pagination": false,
13414
+ "pathParams": [],
13415
+ "query": [],
13416
+ "body": {
13417
+ "required": true,
13418
+ "fields": [
13419
+ {
13420
+ "name": "name",
13421
+ "type": "string",
13422
+ "required": true,
13423
+ "description": "Kebab-case name, unique within the organization."
13424
+ },
13425
+ {
13426
+ "name": "description",
13427
+ "type": "string",
13428
+ "required": false,
13429
+ "description": "What the project is for, in your own words."
13430
+ },
13431
+ {
13432
+ "name": "provider",
13433
+ "type": "string",
13434
+ "enum": [
13435
+ "github",
13436
+ "platform"
13437
+ ],
13438
+ "required": false,
13439
+ "description": "Where the code lives: github (the default) or platform, a git package of our own Git."
13440
+ },
13441
+ {
13442
+ "name": "package",
13443
+ "type": "string",
13444
+ "required": false,
13445
+ "description": "provider platform only: the id of a git package of your organization's registry. Not valid with connection or repository."
13446
+ },
13447
+ {
13448
+ "name": "initialRef",
13449
+ "type": "string",
13450
+ "required": false,
13451
+ "description": "provider platform only: an existing branch (for example import) to create the default branch from, when the package has none yet. Refused with DEFAULT_BRANCH_EXISTS if the default branch exists, REF_NOT_FOUND if this branch does not; no project is created then."
13452
+ },
13453
+ {
13454
+ "name": "connection",
13455
+ "type": "string",
13456
+ "required": false,
13457
+ "description": "provider github only: the connection of a completed GitHub App install that can see the repository."
13458
+ },
13459
+ {
13460
+ "name": "repository",
13461
+ "type": "string",
13462
+ "required": false,
13463
+ "description": "provider github only: the repository as owner/name."
13464
+ },
13465
+ {
13466
+ "name": "settings",
13467
+ "type": "object",
13468
+ "required": false,
13469
+ "description": "Delivery settings; keys you leave out take their defaults."
13470
+ },
13471
+ {
13472
+ "name": "requestId",
13473
+ "type": "string",
13474
+ "required": false,
13475
+ "description": "Idempotency key: repeat the call with the same value to be given the same answer."
13476
+ }
13477
+ ]
13478
+ }
13479
+ },
13274
13480
  {
13275
13481
  "resource": "devops.projects",
13276
13482
  "method": "retrieve",
@@ -13325,6 +13531,35 @@ export const operations = [
13325
13531
  ]
13326
13532
  }
13327
13533
  },
13534
+ {
13535
+ "resource": "devops.projects.defaultBranch",
13536
+ "method": "initialize",
13537
+ "summary": "Create a project's default branch",
13538
+ "description": "Create the default branch of a project on our own Git, once. A git package imported from elsewhere can hold branches and no default branch, and every change is cut from the default branch, so until it exists no change can be opened. The default branch is protected and only DevOps holds the credential that may write it, so this call is the one way to create it: it points the default branch at the head of the existing branch named in from (for example import). It only creates: a default branch that already exists is refused with DEFAULT_BRANCH_EXISTS and is never moved, a from that is not a branch of the repository is REF_NOT_FOUND, and a GitHub project is INVALID_ARGUMENT because GitHub's branches are GitHub's. The push reaches the project like any other push to its default branch. Read the project first (devops.projects.retrieve) for the package's default branch name.",
13539
+ "http": "POST",
13540
+ "path": "/devops/v1/projects/{id}/default-branch:initialize",
13541
+ "streaming": "no",
13542
+ "pagination": false,
13543
+ "pathParams": [
13544
+ {
13545
+ "name": "id",
13546
+ "sdkName": "id",
13547
+ "description": "The project identifier returned by the project list, not the project's display name or its repository name."
13548
+ }
13549
+ ],
13550
+ "query": [],
13551
+ "body": {
13552
+ "required": true,
13553
+ "fields": [
13554
+ {
13555
+ "name": "from",
13556
+ "type": "string",
13557
+ "required": true,
13558
+ "description": "An existing branch of the repository, for example import. The default branch is created at its head."
13559
+ }
13560
+ ]
13561
+ }
13562
+ },
13328
13563
  {
13329
13564
  "resource": "devops.projects.changes",
13330
13565
  "method": "list",
@@ -14015,6 +14250,12 @@ export const operations = [
14015
14250
  "type": "string",
14016
14251
  "required": false,
14017
14252
  "description": "A GitHub login to build the \"waiting on me\" list: only pull requests where that person is a requested reviewer and has not answered yet are returned. Somebody who already approved, requested changes or commented is no longer waiting on, so they do not appear."
14253
+ },
14254
+ {
14255
+ "name": "reviewed",
14256
+ "type": "boolean",
14257
+ "required": false,
14258
+ "description": "Review is after-the-fact sampling (Sean 2026-11-24). false lists the pull requests nobody has recorded a review verdict for — send it with filter state=merged to get the merged pull requests still waiting for a sample; true lists the ones that have a review. Omit it to ignore reviews."
14018
14259
  }
14019
14260
  ]
14020
14261
  },
@@ -14357,7 +14598,7 @@ export const operations = [
14357
14598
  "resource": "devops.projects",
14358
14599
  "method": "retrieveTestPlan",
14359
14600
  "summary": "Retrieve the merge gate's test plan at a commit",
14360
- "description": "Ask what the merge gate would require at one commit before running anything: the packages the base...commit diff affects, each package's input hash at that commit's own tree, and whether evidence already answers it. Read a package as passed when a recorded run covered every case the package has at the gate's sizes and they passed, failed when the newest evidence at its input hash failed, and missing when no run has a row for that (package, input hash). Use it before running tests — `praxis devops test --gate` asks this and runs exactly the missing and failed packages — or to explain a gate verdict, because it is the same required set and the same (package, input hash) lookup the gate itself decides on. The call is read-only: it starts no run, runs no case and writes nothing. The commit must already be pushed, since the hashes are recomputed from the tree GitHub holds; a commit whose tree cannot be read answers COMMIT_NOT_FOUND instead of an empty plan. A selection of nothing means every changed path belongs to no test package, which is a pass and not a failure.",
14601
+ "description": "Ask what the merge gate would require at one commit before running anything: the packages the base...commit diff affects, each package's input hash at that commit's own tree, and whether evidence already answers it. The answer also carries cases: every feature scenario of the affected packages at the gate's sizes, each with required (whether this diff can affect it, chosen by the files the scenario was recorded running), the reason, the deps hash it is judged at and its own evidence. A merge needs evidence only for the required cases; run `praxis devops test <package> --record-impact` to record coverage and results. Read a package as passed when a recorded run covered every case the package has at the gate's sizes and they passed, failed when the newest evidence at its input hash failed, and missing when no run has a row for that (package, input hash). Use it before running tests — run `praxis devops test <package>` for each missing or failed package on a clean, pushed commit and the run files the evidence itself — or to explain a gate verdict, because it is the same required set and the same (package, input hash) lookup the gate itself decides on. The call is read-only: it starts no run, runs no case and writes nothing. The commit must already be pushed, since the hashes are recomputed from the tree GitHub holds; a commit whose tree cannot be read answers COMMIT_NOT_FOUND instead of an empty plan. A selection of nothing means every changed path belongs to no test package, which is a pass and not a failure.",
14361
14602
  "http": "GET",
14362
14603
  "path": "/devops/v1/projects/{project}/test-plan",
14363
14604
  "streaming": "no",
@@ -14515,7 +14756,7 @@ export const operations = [
14515
14756
  "resource": "devops.projects.testReports",
14516
14757
  "method": "create",
14517
14758
  "summary": "Upload an external test report",
14518
- "description": "Record the results of a run executed outside Praxis by uploading a CTRF or JUnit report. Nothing has to exist first: a first upload from CI creates the run it reports on (executor external) and catalogues the cases the report names, so there is no setup call before the first result. When the report already belongs to a run, pass ref and the upload joins it; the run's counts and verdict are recomputed from the report. Uploading the same reportId again is idempotent and counts once, so a retry after a timeout is safe — and a reported case is catalogued once, however many reports carry it. The report's bytes are kept as a file (the file field of the answer) rather than in the results database, so the original document stays retrievable. Send purpose feedback instead when the report is your own local run rather than evidence: the document is stored as an organization-private file and nothing else happens — no run is created or joined, no case state changes and the merge gate never reads it — so a developer's machine can publish what it ran without any commit being credited as tested.",
14759
+ "description": "Record the results of a run executed outside Praxis by uploading a CTRF or JUnit report. Nothing has to exist first: a first upload from CI creates the run it reports on (executor external) and catalogues the cases the report names, so there is no setup call before the first result. When the report already belongs to a run, pass ref and the upload joins it; the run's counts and verdict are recomputed from the report. Uploading the same reportId again is idempotent and counts once, so a retry after a timeout is safe — and a reported case is catalogued once, however many reports carry it. The report's bytes are kept as a file (the file field of the answer) rather than in the results database, so the original document stays retrievable. Send purpose feedback instead when the report is your own local run rather than evidence: the document is stored as an organization-private file and nothing else happens — no run is created or joined, no case state changes and the merge gate never reads it — so a developer's machine can publish what it ran without any commit being credited as tested. With purpose evidence the report is also filed as test evidence, package by package: DevOps recomputes each package's input hash from ref.commit (so the commit must already be pushed; an unreadable commit records the run but no evidence), and writes passed or failed only for a package whose every case at the gate's sizes the report carries — a report of a few files leaves that package without evidence. Pass ref.branch and ref.pullRequest so the run says where it came from; devops.projects.retrieveTestPlan at the commit then shows what the gate will read.",
14519
14760
  "http": "POST",
14520
14761
  "path": "/devops/v1/projects/{project}/test-reports",
14521
14762
  "streaming": "no",
@@ -14545,7 +14786,7 @@ export const operations = [
14545
14786
  "feedback"
14546
14787
  ],
14547
14788
  "required": false,
14548
- "description": "What the report is for, and it decides whether the upload touches a run at all. evidence, the default, is test evidence: the report is folded into a run at ref.commit, catalogues the cases it names and counts when the merge gate reads the newest run at that commit. feedback only stores the document, as an organization-private file, and changes nothing else — no run is created or joined, no case state changes and no gate ever reads it; use it for a report produced on a developer's own machine, which is never evidence."
14789
+ "description": "What the report is for, and it decides whether the upload touches a run at all. evidence, the default, is test evidence: the report is folded into a run at ref.commit, catalogues the cases it names and is filed as evidence for each package it fully covers, which the merge gate and later stages read by the package's input hash. feedback only stores the document, as an organization-private file, and changes nothing else — no run is created or joined, no case state changes and no gate ever reads it; use it for a report produced on a developer's own machine, which is never evidence."
14549
14790
  },
14550
14791
  {
14551
14792
  "name": "format",
@@ -14788,7 +15029,7 @@ export const operations = [
14788
15029
  "enum": [
14789
15030
  "development",
14790
15031
  "integration",
14791
- "runtime"
15032
+ "release"
14792
15033
  ],
14793
15034
  "required": false,
14794
15035
  "description": "Return only units of this stage; omit it to return every stage."
@@ -14856,7 +15097,7 @@ export const operations = [
14856
15097
  "resource": "devops.projects.workspaces",
14857
15098
  "method": "list",
14858
15099
  "summary": "List a project's stage workspaces",
14859
- "description": "List the project's three stage workspaces — development, integration and runtime — in that order. Each row says how a machine of that stage is built and how long it lives; it is configuration, not a machine, so listing never opens one. A project whose rows do not exist yet gets all three materialized on this call with the defaults (size medium, prebuild on, idle timeout 30 minutes, retention 7 days), and a later call reads those same rows back rather than replacing them. Read one stage with the workspace retrieve; the machines actually running are units.",
15100
+ "description": "List the project's three stage workspaces — development, integration and release — in that order. Each row says how a machine of that stage is built and how long it lives; it is configuration, not a machine, so listing never opens one. A project whose rows do not exist yet gets all three materialized on this call with the defaults (size medium, prebuild on, idle timeout 30 minutes, retention 7 days), and a later call reads those same rows back rather than replacing them. Read one stage with the workspace retrieve; the machines actually running are units.",
14860
15101
  "http": "GET",
14861
15102
  "path": "/devops/v1/projects/{project}/workspaces",
14862
15103
  "streaming": "no",
@@ -14888,7 +15129,7 @@ export const operations = [
14888
15129
  {
14889
15130
  "name": "stage",
14890
15131
  "sdkName": "stage",
14891
- "description": "The stage whose workspace you address: development, integration or runtime. development is the persistent stage that carries changes; integration and runtime hold one-off units."
15132
+ "description": "The stage whose workspace you address: development, integration or release. development is the persistent stage that carries changes; integration and release hold one-off units."
14892
15133
  }
14893
15134
  ],
14894
15135
  "query": []
@@ -14911,7 +15152,7 @@ export const operations = [
14911
15152
  {
14912
15153
  "name": "stage",
14913
15154
  "sdkName": "stage",
14914
- "description": "The stage whose workspace you address: development, integration or runtime. development is the persistent stage that carries changes; integration and runtime hold one-off units."
15155
+ "description": "The stage whose workspace you address: development, integration or release. development is the persistent stage that carries changes; integration and release hold one-off units."
14915
15156
  }
14916
15157
  ],
14917
15158
  "query": [],
@@ -15151,7 +15392,7 @@ export const operations = [
15151
15392
  "resource": "devops.promotions",
15152
15393
  "method": "retry",
15153
15394
  "summary": "Retry a promotion",
15154
- "description": "Continue a promotion that stopped part-way, such as one in halted where some targets succeeded and others failed. The retry re-runs the targets that did not succeed and leaves the ones that did alone, so a partially deployed environment is completed rather than redeployed from the start. A promotion that is still running is refused, and so is one that already reached a terminal state; read the promotion first and retry only a halted or errored one. The retry is attributed to the credential that sends it and is recorded on the promotion.",
15395
+ "description": "Continue a promotion that stopped part-way: one in halted (some targets deployed, some failed, some never started) or one in failed. The answer is a NEW promotion whose plan names only the targets that did not reach the release, so a partially deployed environment is completed rather than redeployed from the start. A halted promotion is stopped first — its run is asked to cancel and the executor is read back until the run is no longer running — because a new plan that starts while the old run still deploys the same targets would deploy them twice; when the run will not stop, the call is refused with PROMOTION_RUN_STILL_RUNNING and creates nothing. Once that run is over the halt is closed as the partial deploy it is (the targets that really deployed move their checkpoints) and the new promotion is planned from those checkpoints. Any other state is refused with PROMOTION_NOT_RETRYABLE, whose message names the state and what to do instead: a promotion that is still deploying has nothing to continue (cancel it to stop it), and a succeeded, cancelled or superseded one has nothing left — promote the release again if this environment must take it. The retry is attributed to the credential that sends it and is recorded on the promotion.",
15155
15396
  "http": "POST",
15156
15397
  "path": "/devops/v1/promotions/{id}:retry",
15157
15398
  "streaming": "no",
@@ -15200,7 +15441,7 @@ export const operations = [
15200
15441
  "resource": "devops.pullRequests",
15201
15442
  "method": "retrieve",
15202
15443
  "summary": "Retrieve a pull request",
15203
- "description": "Read one pull request in full: its state, its head and base, its changed paths, the exposure its description declares, and — the part this call exists for — its gate. The gate is a list of named checks (the declaration, the flag duties, the affected tests, and the one judgement only a person makes), each with a result and, when it failed or is pending, the sentence saying what is missing; the gate's own state is passed only when no check failed and none is still pending. Read the gate here before merging or before recording a verdict, and read it again after a rerun: the checks are facts about the current head, and a new head starts a new gate. Add expand=runs to also get the affected test runs reported at the head commit, newest first, which is how you see why the tests check came out the way it did.",
15444
+ "description": "Read one pull request in full: its state, its head and base, its changed paths, the exposure its description declares, and — the part this call exists for — its gate. The gate is a list of named checks (the declaration, the flag duties, the affected tests, and the one judgement only a person makes), each with a result and, when it failed or is pending, the sentence saying what is missing; the tests check is never pending, because DevOps runs no tests for a pull request: it is passed, or failed naming the missing or failed cases and the command `praxis devops test <package> --record-impact` the author runs on the pushed head; the gate's own state is passed only when no check failed and none is still pending. Read the gate here before merging or before recording a verdict, and read it again after a rerun: the checks are facts about the current head, and a new head starts a new gate. Add expand=runs to also get the test runs reported at the head commit (uploaded by the author, never started by DevOps), newest first.",
15204
15445
  "http": "GET",
15205
15446
  "path": "/devops/v1/pull-requests/{id}",
15206
15447
  "streaming": "no",
@@ -15221,11 +15462,80 @@ export const operations = [
15221
15462
  }
15222
15463
  ]
15223
15464
  },
15465
+ {
15466
+ "resource": "devops.pullRequests.reviews",
15467
+ "method": "create",
15468
+ "summary": "Review a pull request on our own Git",
15469
+ "description": "Give your verdict on a pull request whose project keeps its code on the platform's own Git, where there is no GitHub to hold reviews. The reviewer is you — the user or agent the credential names, never a name in the body — and the platform stores your verdict on the pull request's reviewers under your id, so an ownership rule that lists principal ids reads it. Send approved to approve, changes_requested to hold it with changes you want, or commented to say something without a verdict. A second review from you replaces your first, and the gate is decided again so a rule that reads reviews sees it at once. Only an open pull request is reviewed: a merged or closed one is refused with PULL_REQUEST_NOT_OPEN. A project connected to GitHub is refused with INVALID_ARGUMENT, because its reviews belong to GitHub and the platform projects them from there, so a verdict is never recorded in two places that can disagree.",
15470
+ "http": "POST",
15471
+ "path": "/devops/v1/pull-requests/{id}/reviews",
15472
+ "streaming": "no",
15473
+ "pagination": false,
15474
+ "pathParams": [
15475
+ {
15476
+ "name": "id",
15477
+ "sdkName": "id",
15478
+ "description": "The pull request's platform id (pr_…) from a pull request list, not GitHub's pull request number; the retrieve, rerunGate, merge and recordVerdict calls all address the pull request by it."
15479
+ }
15480
+ ],
15481
+ "query": [],
15482
+ "body": {
15483
+ "required": true,
15484
+ "fields": [
15485
+ {
15486
+ "name": "state",
15487
+ "type": "string",
15488
+ "enum": [
15489
+ "approved",
15490
+ "changes_requested",
15491
+ "commented"
15492
+ ],
15493
+ "required": true,
15494
+ "description": "The verdict. A value outside this set is refused with INVALID_ARGUMENT."
15495
+ },
15496
+ {
15497
+ "name": "body",
15498
+ "type": "string",
15499
+ "required": false,
15500
+ "description": "The words that go with the verdict. Accepted now and not stored yet: DevOps keeps no review thread, so say what must change on the change's own ticket as well."
15501
+ }
15502
+ ]
15503
+ }
15504
+ },
15505
+ {
15506
+ "resource": "devops.pullRequests",
15507
+ "method": "close",
15508
+ "summary": "Close a pull request without merging it",
15509
+ "description": "End a pull request that will never land, without abandoning the change it belongs to. DevOps closes it on GitHub through the project's own App installation, after writing this reason on the pull request, so it leaves the review queue instead of waiting for a merge that is not coming and whoever finds it later sees who ended it and why. Use it when one slice of a change is dropped while the change continues; abandoning the CHANGE closes its unmerged pull requests on its own and needs no second call. Only an open pull request can be closed: a merged one is refused with PULL_REQUEST_NOT_OPEN, because closing does not undo a merge and GitHub will not move a merged pull request back to closed, and one that is already closed answers itself unchanged, so repeating the call is safe. A pull request GitHub no longer has open is refused the same way — nothing was closed, and the platform's record catches up with GitHub on its next delivery.",
15510
+ "http": "POST",
15511
+ "path": "/devops/v1/pull-requests/{id}:close",
15512
+ "streaming": "no",
15513
+ "pagination": false,
15514
+ "pathParams": [
15515
+ {
15516
+ "name": "id",
15517
+ "sdkName": "id",
15518
+ "description": "The pull request's platform id (pr_…) from a pull request list, not GitHub's pull request number; the retrieve, rerunGate, merge and recordVerdict calls all address the pull request by it."
15519
+ }
15520
+ ],
15521
+ "query": [],
15522
+ "body": {
15523
+ "required": true,
15524
+ "fields": [
15525
+ {
15526
+ "name": "reason",
15527
+ "type": "string",
15528
+ "required": true,
15529
+ "description": "Why, in a sentence the next reader of the pull request can act on. It is posted as a note on the pull request before it is closed, and the note names the change when the head branch is one."
15530
+ }
15531
+ ]
15532
+ }
15533
+ },
15224
15534
  {
15225
15535
  "resource": "devops.pullRequests",
15226
15536
  "method": "merge",
15227
15537
  "summary": "Merge a pull request through its gate",
15228
- "description": "Land a pull request by having DevOps call GitHub, so the merge goes through the platform's own merge gate instead of around it. The gate is the permission: while the gate is pending or failed the merge is refused with GATE_NOT_PASSED, and a pull request that is already merged or closed is refused with PULL_REQUEST_NOT_OPEN. Only the commit the gate decided on may land — that commit is sent to GitHub as the merge sha, so a head that moved underneath is refused with HEAD_MOVED rather than merged untested — and GitHub's own refusal, such as a conflict, comes back as MERGE_REFUSED carrying its words. method picks the merge shape and defaults to merge. queue true does not merge now: it puts the pull request into its (project, base) merge queue, where the commit that eventually lands is one GitHub built from the current base and a test run proved. Send requestId to make a retry safe — a retry that reaches a pull request DevOps itself already merged answers that merge without calling GitHub again; it does not make the merge wait. Merging something already merged by somebody else stays a refusal rather than a replay.",
15538
+ "description": "Land a pull request by having DevOps call GitHub, so the merge goes through the platform's own merge gate instead of around it. The gate is the permission: while the gate is pending or failed the merge is refused with GATE_NOT_PASSED, and a pull request that is already merged or closed is refused with PULL_REQUEST_NOT_OPEN. Only the commit the gate decided on may land — that commit is sent to GitHub as the merge sha, so a head that moved underneath is refused with HEAD_MOVED rather than merged untested — and GitHub's own refusal, such as a conflict, comes back as MERGE_REFUSED carrying its words. method picks the merge shape; on GitHub it defaults to rebase. A project on our own Git (provider platform) merges by squash only: no method means squash, and rebase or merge is refused with INVALID_ARGUMENT naming squash. queue true does not merge now: it puts the pull request into its (project, base) merge queue, where the commit that eventually lands is one GitHub built from the current base and a test run proved. Send requestId to make a retry safe — a retry that reaches a pull request DevOps itself already merged answers that merge without calling GitHub again; it does not make the merge wait. Merging something already merged by somebody else stays a refusal rather than a replay.",
15229
15539
  "http": "POST",
15230
15540
  "path": "/devops/v1/pull-requests/{id}:merge",
15231
15541
  "streaming": "no",
@@ -15270,8 +15580,8 @@ export const operations = [
15270
15580
  {
15271
15581
  "resource": "devops.pullRequests",
15272
15582
  "method": "recordVerdict",
15273
- "summary": "Record a gatekeeper's verdict on a direct change",
15274
- "description": "A gatekeeper's judgement of a change declared direct — the one gate check a person answers, because a direct change has no flag to hold it back. Send result passed to let it through, or failed to hold it, with reason saying in a sentence a reviewer can act on why; the reason becomes the message of the gate's exposure-judged check. The verdict is about ONE commit: headSha must be the pull request's current head, and a verdict for any other commit is refused with INVALID_ARGUMENT rather than applied, because a judgement of a version nobody reviewed must never pass the version that is there now — so a recorded verdict stops applying the moment the head moves, and the new head must be judged on its own. Recording it decides the gate again, so a passed verdict makes the gate passed once every other check has too, and the answer is the pull request with the gate it now reaches. A passed verdict for a change whose tests have not run leaves the gate pending: a person's judgement never outvotes a missing test.",
15583
+ "summary": "Record a review verdict on a pull request",
15584
+ "description": "Record a reviewer's verdict on a pull request, after the fact (Sean 2026-11-24). The merge gate no longer waits for it: exposure-judged is decided by machine from the declaration for every kind of exposure, so a pull request merges without any verdict. This call is the review record — send result passed or failed with reason saying in a sentence a reviewer can act on why. It is stored on the pull request as review and announced with the event devops.pullRequest.reviewed. A failed verdict on an already merged pull request is a finding for follow-up (the event says finding true): the merge stands, nothing is un-merged, and a rollback or a fix is asked for on the ticket. headSha must be the pull request's head, and a verdict for another commit is refused with INVALID_ARGUMENT. List the merged pull requests nobody reviewed with pullRequests.list reviewed=false.",
15275
15585
  "http": "POST",
15276
15586
  "path": "/devops/v1/pull-requests/{id}:recordVerdict",
15277
15587
  "streaming": "no",
@@ -15322,7 +15632,7 @@ export const operations = [
15322
15632
  "resource": "devops.pullRequests",
15323
15633
  "method": "rerunGate",
15324
15634
  "summary": "Decide a pull request's merge gate again",
15325
- "description": "Decide the merge gate again at the pull request's current head and report the result on GitHub as the \"Praxis DevOps / gate\" check run. Use it when a fact the gate reads has changed without a new push — a test run finished, a flag was registered, or a check that had no evidence now has some — so nobody has to push an empty commit to make the check move. The answer is the pull request with the gate it now reaches. A head whose earlier gate already had a verdict and comes back pending opens a NEW check run, because GitHub will not reopen a completed one; while the same head is still deciding, the run it already owns is updated in place. Nothing else on the pull request changes, and repeating the call is safe: the same facts decide the same gate.",
15635
+ "description": "Decide the merge gate again at the pull request's current head and report the result on GitHub as the \"Praxis DevOps / gate\" check run. Use it when a fact the gate reads has changed without a new push — a flag was registered, or a check that had no evidence now has some (test evidence uploaded for the head already decides the gate again by itself) — so nobody has to push an empty commit to make the check move. The answer is the pull request with the gate it now reaches. A head whose earlier gate already had a verdict and comes back pending opens a NEW check run, because GitHub will not reopen a completed one; while the same head is still deciding, the run it already owns is updated in place. Nothing else on the pull request changes, and repeating the call is safe: the same facts decide the same gate.",
15326
15636
  "http": "POST",
15327
15637
  "path": "/devops/v1/pull-requests/{id}:rerunGate",
15328
15638
  "streaming": "no",
@@ -15976,7 +16286,7 @@ export const operations = [
15976
16286
  "resource": "file.files",
15977
16287
  "method": "list",
15978
16288
  "summary": "List files",
15979
- "description": "List live files owned by your tenant, optionally filtered by purpose or session scope_id. Results default to descending creation order with a limit of 10000. Page using after or before with a file ID from the list; these cursors are mutually exclusive. Deleted and expired files are excluded.",
16289
+ "description": "List live files owned by your tenant, optionally filtered by purpose, session scope_id or up to 100 file ids. Results default to descending creation order with a limit of 10000. Page using after or before with a file ID from the list; these cursors are mutually exclusive. Deleted and expired files are excluded.",
15980
16290
  "http": "GET",
15981
16291
  "path": "/file/v1/files",
15982
16292
  "streaming": "no",
@@ -16017,6 +16327,13 @@ export const operations = [
16017
16327
  "required": false,
16018
16328
  "description": "Session whose output files to list. Accepts sesn_ or ags_ followed by 1 to 251 letters, digits, underscores or hyphens. An existing session with no outputs returns an empty list; a nonexistent or inaccessible session returns 404."
16019
16329
  },
16330
+ {
16331
+ "name": "ids",
16332
+ "type": "array",
16333
+ "itemType": "string",
16334
+ "required": false,
16335
+ "description": "Return only these files, up to 100 IDs separated by commas, so metadata for many known files takes one call instead of one retrieve per file. An ID that is not a live file of your tenant is simply absent from the list, as a retrieve would answer 404; more than 100 IDs returns 400. Combines with the other filters."
16336
+ },
16020
16337
  {
16021
16338
  "name": "before",
16022
16339
  "type": "string",
@@ -17262,6 +17579,17 @@ export const operations = [
17262
17579
  "required": false,
17263
17580
  "description": "Model role overrides. Omitted roles keep their current values on update and use defaults on creation; null restores all defaults, and a null role restores that role’s default. Changing embedding is rejected while the library contains assets."
17264
17581
  },
17582
+ {
17583
+ "name": "default_tier",
17584
+ "type": "string",
17585
+ "enum": [
17586
+ "economy",
17587
+ "balanced",
17588
+ "quality"
17589
+ ],
17590
+ "required": false,
17591
+ "description": "Performance tier to run this request in, an alternative to naming a model: economy is the cheapest and fastest, balanced is the best value, quality puts the result first. Send tier or model, never both — a request that carries both is refused with INVALID_PARAMS in the tier field. A capability with no model for the exact tier answers the nearest declared tier, and a tie goes to the cheaper one, so a request never pays more than it asked for; a capability that has only one model answers every tier with that model. The job and the produced asset’s provenance report the tier that actually served the request."
17592
+ },
17265
17593
  {
17266
17594
  "name": "name",
17267
17595
  "type": "string",
@@ -17393,6 +17721,17 @@ export const operations = [
17393
17721
  "required": false,
17394
17722
  "description": "Model role overrides. Omitted roles keep their current values on update and use defaults on creation; null restores all defaults, and a null role restores that role’s default. Changing embedding is rejected while the library contains assets."
17395
17723
  },
17724
+ {
17725
+ "name": "default_tier",
17726
+ "type": "string",
17727
+ "enum": [
17728
+ "economy",
17729
+ "balanced",
17730
+ "quality"
17731
+ ],
17732
+ "required": false,
17733
+ "description": "Performance tier to run this request in, an alternative to naming a model: economy is the cheapest and fastest, balanced is the best value, quality puts the result first. Send tier or model, never both — a request that carries both is refused with INVALID_PARAMS in the tier field. A capability with no model for the exact tier answers the nearest declared tier, and a tie goes to the cheaper one, so a request never pays more than it asked for; a capability that has only one model answers every tier with that model. The job and the produced asset’s provenance report the tier that actually served the request."
17734
+ },
17396
17735
  {
17397
17736
  "name": "name",
17398
17737
  "type": "string",
@@ -17860,7 +18199,7 @@ export const operations = [
17860
18199
  "resource": "media.assets",
17861
18200
  "method": "edit",
17862
18201
  "summary": "Edit asset",
17863
- "description": "Change an existing asset and store the result as a new asset; the source is never overwritten. {library_id} also accepts default, the organization’s default library. The body is operation (its type selects the edit and carries that edit’s own fields) plus optional model, asset_folder, understanding and idempotency_key. Edits by material: on an image, variations (near copies of a take you like), inpaint (mask, a PNG File id beginning with file-, whose transparent area is replaced by what prompt describes), erase, replace_object, recolor, replace_background, remove_background, upscale and talking_avatar (the portrait speaks a recording of the same library); on a video, upscale, reframe, redact, trim, mute, crop, erase (removes burned-in subtitles, captions and corner watermarks, found automatically or inside the boxes given), replace_person (puts the person of an image of the same library in place of the video’s person), lip_sync (re-syncs the lips to a recording of the same library), animate_person (an image of the same library performs the video’s motion) and remove_background; on a recording or a video’s audio, enhance_voice; and to_video, frame and resynthesize on the material each takes. Any other type answers OPERATION_NOT_SUPPORTED, and an edit that does not fit the source’s material answers REFERENCE_TYPE_MISMATCH. Video and audio edits take their model from the platform catalogue (override with operation.model); an edit whose catalogue is empty answers OPERATION_NOT_SUPPORTED, 尚未上架. remove_background on a video makes a portrait matte: output mask is a small black-and-white video to use as a Cut track mask (the choice for compositing), output alpha (the default) a transparent ProRes 4444 file of about 870 MB per 15 s of 1080p, for when the transparent file itself is the deliverable; pick model from types.matting.models of the generation capabilities. output and model on an image source answer INVALID_PARAMS. The new asset records the source in derived_from; assets.lineage reads the whole edit chain. Charges are at the model API prices (video and audio edits per second of input) and appear in the Job’s usage; repeating the same edit of the same source answers the asset already made instead of paying again. The response is 202 with a queued Job whose source_asset_id is the edited asset; poll GET /media/v1/libraries/{library_id}/jobs/{job_id}, give the output’s viewer_url to the person and tell them usage.",
18202
+ "description": "Change an existing asset and store the result as a new asset; the source is never overwritten. {library_id} also accepts default, the organization’s default library. The body is operation (its type selects the edit and carries that edit’s own fields) plus optional model, asset_folder, understanding and idempotency_key. Edits by material: on an image, variations (near copies of a take you like), inpaint (mask, a PNG File id beginning with file-, whose transparent area is replaced by what prompt describes), erase, replace_object, recolor, replace_background, remove_background, upscale and talking_avatar (the portrait speaks a recording of the same library); on a video, upscale, reframe, redact, trim, mute, crop, extract_audio (pulls the sound out of a video as its own audio asset), erase (removes burned-in subtitles, captions and corner watermarks, found automatically or inside the boxes given), replace_person (puts the person of an image of the same library in place of the video’s person), lip_sync (re-syncs the lips to a recording of the same library), animate_person (an image of the same library performs the video’s motion), edit_video (the video changed by a one-line instruction, optionally guided by one image of the same library) and remove_background; on a recording or a video’s audio, enhance_voice; and to_video, frame and resynthesize on the material each takes. Any other type answers OPERATION_NOT_SUPPORTED, and an edit that does not fit the source’s material answers REFERENCE_TYPE_MISMATCH. Video and audio edits take their model from the platform catalogue (override with operation.model; extract_audio takes no model, it has exactly one function); an edit whose catalogue is empty answers OPERATION_NOT_SUPPORTED, 尚未上架. remove_background on a video makes a portrait matte: output mask is a small black-and-white video to use as a Cut track mask (the choice for compositing), output alpha (the default) a transparent ProRes 4444 file of about 870 MB per 15 s of 1080p, for when the transparent file itself is the deliverable; pick model from types.matting.models of the generation capabilities. output and model on an image source answer INVALID_PARAMS. The new asset records the source in derived_from; assets.lineage reads the whole edit chain. Charges are at the model API prices (video and audio edits per second of input) and appear in the Job’s usage; repeating the same edit of the same source answers the asset already made instead of paying again. The response is 202 with a queued Job whose source_asset_id is the edited asset; poll GET /media/v1/libraries/{library_id}/jobs/{job_id}, give the output’s viewer_url to the person and tell them usage.",
17864
18203
  "http": "POST",
17865
18204
  "path": "/media/v1/libraries/{library_id}/assets/{asset_id}/edits",
17866
18205
  "streaming": "no",
@@ -17885,16 +18224,27 @@ export const operations = [
17885
18224
  "name": "operation",
17886
18225
  "type": "object",
17887
18226
  "required": true,
17888
- "description": "One edit to apply to the source asset. type selects the operation and the discriminating branch carries that operation’s fields. This release performs variations, inpaint, erase, replace_object, recolor and replace_background on images, remove_background on an image or a video, upscale, enhance_voice, reframe, redact, trim, mute and crop through Media’s processing lane (upscale on a picture or a video; enhance_voice on a recording or a video, whose audio is used; reframe, redact, trim, mute and crop on a video), erase, replace_person, lip_sync and animate_person on a video and talking_avatar on an image through the same lane, and to_video, frame and resynthesize on the material each takes; every other type here describes the operation vocabulary and is refused with OPERATION_NOT_SUPPORTED. align is not an edit — it compares two assets and has its own endpoint, POST /media/v1/libraries/{library_id}/assets/{asset_id}/align."
18227
+ "description": "One edit to apply to the source asset. type selects the operation and the discriminating branch carries that operation’s fields. This release performs variations, inpaint, erase, replace_object, recolor and replace_background on images, remove_background on an image or a video, upscale, enhance_voice, reframe, redact, trim, mute, crop and extract_audio through Media’s processing lane (upscale on a picture or a video; enhance_voice on a recording or a video, whose audio is used; reframe, redact, trim, mute, crop and extract_audio on a video), erase, replace_person, lip_sync, animate_person and edit_video on a video and talking_avatar on an image through the same lane, and to_video, frame and resynthesize on the material each takes; every other type here describes the operation vocabulary and is refused with OPERATION_NOT_SUPPORTED. align is not an edit — it compares two assets and has its own endpoint, POST /media/v1/libraries/{library_id}/assets/{asset_id}/align."
17889
18228
  },
17890
18229
  {
17891
18230
  "name": "model",
17892
18231
  "type": "string",
17893
18232
  "required": false,
17894
- "description": "Model that performs the edit; omit it to use the library default image model."
18233
+ "description": "Model that performs the edit; omit it to use the library default image model. This is the transition-window parameter; prefer tier, and send only one of the two. A value that is exactly a tier name (economy, balanced or quality) is read as that tier; any other value is a real model id, which keeps working only during the transition and is refused once the platform retires the parameter."
17895
18234
  },
17896
18235
  {
17897
- "name": "asset_folder",
18236
+ "name": "tier",
18237
+ "type": "string",
18238
+ "enum": [
18239
+ "economy",
18240
+ "balanced",
18241
+ "quality"
18242
+ ],
18243
+ "required": false,
18244
+ "description": "Performance tier to run this request in, an alternative to naming a model: economy is the cheapest and fastest, balanced is the best value, quality puts the result first. Send tier or model, never both — a request that carries both is refused with INVALID_PARAMS in the tier field. A capability with no model for the exact tier answers the nearest declared tier, and a tie goes to the cheaper one, so a request never pays more than it asked for; a capability that has only one model answers every tier with that model. The job and the produced asset’s provenance report the tier that actually served the request."
18245
+ },
18246
+ {
18247
+ "name": "asset_folder",
17898
18248
  "type": "string",
17899
18249
  "required": false,
17900
18250
  "description": "Folder the produced asset is filed under; defaults to the source asset’s folder. New path segments containing U+FFFD or consisting only of question marks are rejected with INVALID_PARAMS; send UTF-8 names. Existing affected folders remain readable and assets can be moved out."
@@ -18219,7 +18569,7 @@ export const operations = [
18219
18569
  "resource": "media.speech",
18220
18570
  "method": "create",
18221
18571
  "summary": "Create speech",
18222
- "description": "Synthesise speech from text and store the recording straight into the library. Use library_id from creation or listing; the path segment {library_id} also accepts the literal default, which resolves to the organization’s default library before the credential check, so an agent that has never listed a library can still synthesise. input is the text to speak. voice is optional and may be omitted, in which case the model’s default voice is used; when it is given it must be one of the voices of the model being used — read them from the types.speech list of GET /media/v1/generation/capabilities, which gives each voice an id, a name, a gender, a language and a style, or pass a voice material id of this same library — and a voice that is neither is refused with INVALID_PARAMS in the voice field before any job exists, so a wrong name is free to try but reading the capabilities first is free without trying. Do not use OpenAI voice names such as alloy or aura: they are not valid here. speed is passed to the provider unchanged, and instructions and language are refused with OPERATION_NOT_SUPPORTED in this release. Cloning a voice from recordings is not available yet. The provider caps one request at a short stretch of text, so a long input is cut into segments at paragraph and sentence boundaries and synthesised in order, then joined into the single recording the library receives: nothing is spoken twice and nothing is dropped. Because the segments are joined byte for byte, a multi-segment input accepts only response_format mp3 (the default) or pcm; opus is available for a single-segment input. A speech job has one result however many segments it took. Synthesis is billed by the model usage it consumes, at the same prices as the model API, and the job reports the charge in usage (US dollars, six decimals, the sum over every segment) and the recording carries it in provenance.cost; a request refused before it starts costs nothing. When the job is done, tell the person the usage amount and give them the output’s viewer_url. The response is 202 with a queued Job whose type is speech and whose operation is generate; poll GET /media/v1/libraries/{library_id}/jobs/{job_id} until its status is completed or failed, then read the produced asset from the library — the recording carries material_type audio, audio_role voice, ai_generated true, and provenance naming this job, the text spoken and the model. Send Idempotency-Key, or idempotency_key in the body, to retry without synthesising and charging twice. Example: POST /media/v1/libraries/default/audio/speech with {\"input\":\"A red kite above a calm sea at sunrise.\"}, or with {\"input\":\"A red kite above a calm sea at sunrise.\",\"voice\":\"zh_female_wenroumama_uranus_bigtts\"} for a gentle female voice.",
18572
+ "description": "Synthesise speech from text and store the recording straight into the library. Use library_id from creation or listing; the path segment {library_id} also accepts the literal default, which resolves to the organization’s default library before the credential check, so an agent that has never listed a library can still synthesise. input is the text to speak. voice is optional and may be omitted, in which case the model’s default voice is used; when it is given it must be one of the voices of the model being used — read them from the types.speech list of GET /media/v1/generation/capabilities, which gives each voice an id, a name, a gender, a language and a style, or pass a voice material id of this same library — and a voice that is neither is refused with INVALID_PARAMS in the voice field before any job exists, so a wrong name is free to try but reading the capabilities first is free without trying. Do not use OpenAI voice names such as alloy or aura: they are not valid here. tier chooses which speech model speaks, instead of naming one: economy is the cheapest and fastest, balanced the best value and quality the best result, and the tier picks among the models that carry the voice you name — a voice a model does not offer is never selected and then refused. model is the transition-window parameter and names the same choice, so send only one of the two; omitting both speaks with the library’s speech model, or by its default tier once the platform turns the media-tier-defaults switch on. speed is passed to the provider unchanged, and instructions and language are refused with OPERATION_NOT_SUPPORTED in this release. Cloning a voice from recordings is not available yet. The provider caps one request at a short stretch of text, so a long input is cut into segments at paragraph and sentence boundaries and synthesised in order, then joined into the single recording the library receives: nothing is spoken twice and nothing is dropped. Because the segments are joined byte for byte, a multi-segment input accepts only response_format mp3 (the default) or pcm; opus is available for a single-segment input. A speech job has one result however many segments it took. Synthesis is billed by the model usage it consumes, at the same prices as the model API, and the job reports the charge in usage (US dollars, six decimals, the sum over every segment) and the recording carries it in provenance.cost; a request refused before it starts costs nothing. When the job is done, tell the person the usage amount and give them the output’s viewer_url. The response is 202 with a queued Job whose type is speech and whose operation is generate; poll GET /media/v1/libraries/{library_id}/jobs/{job_id} until its status is completed or failed, then read the produced asset from the library — the recording carries material_type audio, audio_role voice, ai_generated true, and provenance naming this job, the text spoken and the model. Send Idempotency-Key, or idempotency_key in the body, to retry without synthesising and charging twice. Example: POST /media/v1/libraries/default/audio/speech with {\"input\":\"A red kite above a calm sea at sunrise.\"}, or with {\"input\":\"A red kite above a calm sea at sunrise.\",\"voice\":\"zh_female_wenroumama_uranus_bigtts\"} for a gentle female voice.",
18223
18573
  "http": "POST",
18224
18574
  "path": "/media/v1/libraries/{library_id}/audio/speech",
18225
18575
  "streaming": "no",
@@ -18278,6 +18628,23 @@ export const operations = [
18278
18628
  "type": "string",
18279
18629
  "required": false,
18280
18630
  "description": "Language of the text, when the voice supports several."
18631
+ },
18632
+ {
18633
+ "name": "model",
18634
+ "type": "string",
18635
+ "required": false,
18636
+ "description": "Speech model that synthesises the recording; omit it to use the library’s speech model (models.speech). This is the transition-window parameter; prefer tier, and send only one of the two. A value that is exactly a tier name (economy, balanced or quality) is read as that tier; any other value is a real model id, which keeps working only during the transition and is refused once the platform retires the parameter."
18637
+ },
18638
+ {
18639
+ "name": "tier",
18640
+ "type": "string",
18641
+ "enum": [
18642
+ "economy",
18643
+ "balanced",
18644
+ "quality"
18645
+ ],
18646
+ "required": false,
18647
+ "description": "Performance tier to run this request in, an alternative to naming a model: economy is the cheapest and fastest, balanced is the best value, quality puts the result first. Send tier or model, never both — a request that carries both is refused with INVALID_PARAMS in the tier field. A capability with no model for the exact tier answers the nearest declared tier, and a tie goes to the cheaper one, so a request never pays more than it asked for; a capability that has only one model answers every tier with that model. The job and the produced asset’s provenance report the tier that actually served the request."
18281
18648
  }
18282
18649
  ]
18283
18650
  }
@@ -18545,7 +18912,18 @@ export const operations = [
18545
18912
  "name": "model",
18546
18913
  "type": "string",
18547
18914
  "required": false,
18548
- "description": "Model with image-generation capability; omit it to use the library default image model."
18915
+ "description": "Model with image-generation capability; omit it to use the library default image model. This is the transition-window parameter; prefer tier, and send only one of the two. A value that is exactly a tier name (economy, balanced or quality) is read as that tier; any other value is a real model id, which keeps working only during the transition and is refused once the platform retires the parameter."
18916
+ },
18917
+ {
18918
+ "name": "tier",
18919
+ "type": "string",
18920
+ "enum": [
18921
+ "economy",
18922
+ "balanced",
18923
+ "quality"
18924
+ ],
18925
+ "required": false,
18926
+ "description": "Performance tier to run this request in, an alternative to naming a model: economy is the cheapest and fastest, balanced is the best value, quality puts the result first. Send tier or model, never both — a request that carries both is refused with INVALID_PARAMS in the tier field. A capability with no model for the exact tier answers the nearest declared tier, and a tie goes to the cheaper one, so a request never pays more than it asked for; a capability that has only one model answers every tier with that model. The job and the produced asset’s provenance report the tier that actually served the request."
18549
18927
  },
18550
18928
  {
18551
18929
  "name": "asset_folder",
@@ -19292,7 +19670,18 @@ export const operations = [
19292
19670
  "name": "model",
19293
19671
  "type": "string",
19294
19672
  "required": false,
19295
- "description": "Model with video-generation capability; omit it to use the library default video model."
19673
+ "description": "Model with video-generation capability; omit it to use the library default video model. This is the transition-window parameter; prefer tier, and send only one of the two. A value that is exactly a tier name (economy, balanced or quality) is read as that tier; any other value is a real model id, which keeps working only during the transition and is refused once the platform retires the parameter."
19674
+ },
19675
+ {
19676
+ "name": "tier",
19677
+ "type": "string",
19678
+ "enum": [
19679
+ "economy",
19680
+ "balanced",
19681
+ "quality"
19682
+ ],
19683
+ "required": false,
19684
+ "description": "Performance tier to run this request in, an alternative to naming a model: economy is the cheapest and fastest, balanced is the best value, quality puts the result first. Send tier or model, never both — a request that carries both is refused with INVALID_PARAMS in the tier field. A capability with no model for the exact tier answers the nearest declared tier, and a tie goes to the cheaper one, so a request never pays more than it asked for; a capability that has only one model answers every tier with that model. The job and the produced asset’s provenance report the tier that actually served the request."
19296
19685
  },
19297
19686
  {
19298
19687
  "name": "asset_folder",
@@ -19319,6 +19708,79 @@ export const operations = [
19319
19708
  ]
19320
19709
  }
19321
19710
  },
19711
+ {
19712
+ "resource": "media.libraries.voices",
19713
+ "method": "create",
19714
+ "summary": "Create voice",
19715
+ "description": "Create a voice for this library. Send exactly one of the two shapes: consent_id with samples (a real person’s recordings, a consented voice, cloned before it can speak) or design_asset_id (a preview the voice-design run produced in this library, a generated voice). A generated voice is not cloned: it is ready when the call answers, its job already completed, and it speaks only through the speech model recorded on it, so speech naming another model is refused with INVALID_PARAMS. Each preview builds at most one voice, and building one gives back the design’s other previews, which then cannot be used. Sending both shapes, or neither, is refused with INVALID_PARAMS, and origin is written by the platform only. Answers 202 with a job.",
19716
+ "http": "POST",
19717
+ "path": "/media/v1/libraries/{library_id}/voices",
19718
+ "streaming": "no",
19719
+ "pagination": false,
19720
+ "pathParams": [
19721
+ {
19722
+ "name": "library_id",
19723
+ "sdkName": "library_id",
19724
+ "description": "Library ID returned by creation."
19725
+ }
19726
+ ],
19727
+ "query": [],
19728
+ "body": {
19729
+ "required": true,
19730
+ "fields": []
19731
+ }
19732
+ },
19733
+ {
19734
+ "resource": "media.libraries.voices.designs",
19735
+ "method": "create",
19736
+ "summary": "Design a voice",
19737
+ "description": "Design a voice from a text description. The model makes count preview recordings (default 3), each stored in this library as an audio asset; listen, then create a voice whose design_asset_id names the preview you chose. Send description (1 to 500 characters), preview_text (15 to 200 characters, the line each preview speaks), language (zh or en) and optionally count (1 to 3). A description that fails review fails the slot with CONTENT_REJECTED and is never retried, so changing the words is the fix. Answers 202 with a job to poll.",
19738
+ "http": "POST",
19739
+ "path": "/media/v1/libraries/{library_id}/voices/designs",
19740
+ "streaming": "no",
19741
+ "pagination": false,
19742
+ "pathParams": [
19743
+ {
19744
+ "name": "library_id",
19745
+ "sdkName": "library_id",
19746
+ "description": "Library ID returned by creation."
19747
+ }
19748
+ ],
19749
+ "query": [],
19750
+ "body": {
19751
+ "required": true,
19752
+ "fields": [
19753
+ {
19754
+ "name": "description",
19755
+ "type": "string",
19756
+ "required": true,
19757
+ "description": "Text description of the voice to design, 1 to 500 characters. The model makes every preview from it; a description that fails review answers CONTENT_REJECTED."
19758
+ },
19759
+ {
19760
+ "name": "preview_text",
19761
+ "type": "string",
19762
+ "required": true,
19763
+ "description": "Line each preview speaks, 15 to 200 characters: long enough to hear the voice, short enough for one model call."
19764
+ },
19765
+ {
19766
+ "name": "language",
19767
+ "type": "string",
19768
+ "enum": [
19769
+ "zh",
19770
+ "en"
19771
+ ],
19772
+ "required": true,
19773
+ "description": "Language the previews speak: zh or en only."
19774
+ },
19775
+ {
19776
+ "name": "count",
19777
+ "type": "number",
19778
+ "required": false,
19779
+ "description": "How many preview recordings to design, 1 to 3; defaults to 3. Each one is stored as an audio asset."
19780
+ }
19781
+ ]
19782
+ }
19783
+ },
19322
19784
  {
19323
19785
  "resource": "meta.docs",
19324
19786
  "method": "search",
@@ -20772,6 +21234,7 @@ export const operations = [
20772
21234
  "enum": [
20773
21235
  "anthropic.messages",
20774
21236
  "cohere.rerank",
21237
+ "dashscope.voice_design",
20775
21238
  "google.generateContent",
20776
21239
  "mistral.ocr",
20777
21240
  "openai.audio.speech",
@@ -22781,11 +23244,46 @@ export const operations = [
22781
23244
  ],
22782
23245
  "query": []
22783
23246
  },
23247
+ {
23248
+ "resource": "organization.effectiveSpec",
23249
+ "method": "retrieve",
23250
+ "summary": "Read the effective spec",
23251
+ "description": "Merges the spec chain of a seat or an actor and returns the one effective configuration: the merged capability blocks, the document of every layer, where each merged value came from, and anything only the merged result shows to be wrong. Give exactly one of actor (every seat the actor holds) or position_id (one seat, held or vacant, a preview before hiring); holder_kind defaults from the seat's holder. Read-only; nothing is changed. Errors: 400 INVALID_PARAMS when neither or both of actor and position_id are given, the actor address is malformed, holder_kind is neither agent nor human, or a query parameter is unknown; 403 PERMISSION_DENIED for a run or computer token, or a session token that names no agent; 404 POSITION_NOT_FOUND. Example: GET /organization/v1/effective_spec?actor=agent:agent_123.",
23252
+ "http": "GET",
23253
+ "path": "/organization/v1/effective_spec",
23254
+ "streaming": "no",
23255
+ "pagination": false,
23256
+ "pathParams": [],
23257
+ "query": [
23258
+ {
23259
+ "name": "actor",
23260
+ "type": "string",
23261
+ "required": false,
23262
+ "description": "Actor address whose every current seat is merged (agent:agent_... or human:usr_...); give this or position_id, not both."
23263
+ },
23264
+ {
23265
+ "name": "position_id",
23266
+ "type": "string",
23267
+ "required": false,
23268
+ "description": "One seat to merge, held or vacant (pos_...); give this or actor, not both."
23269
+ },
23270
+ {
23271
+ "name": "holder_kind",
23272
+ "type": "string",
23273
+ "enum": [
23274
+ "agent",
23275
+ "human"
23276
+ ],
23277
+ "required": false,
23278
+ "description": "Which holder kind to merge for; omit to derive it from the seat's holder."
23279
+ }
23280
+ ]
23281
+ },
22784
23282
  {
22785
23283
  "resource": "organization.events",
22786
23284
  "method": "list",
22787
23285
  "summary": "List Organization Usage Events",
22788
- "description": "Usage events newest first, one opaque cursor page at a time; a page never duplicates or skips an event. Every item carries its metering lines (meter, display name, consumed quantity and unit, mapped from the billing measurements); the per-line price split (list unit price, pricing unit, billed cost) rides only the single event — fetch /organization/v1/events/{id} for it.\n",
23286
+ "description": "Usage events newest first by occurrence time (occurred_at, when the usage happened), one opaque cursor page at a time; a page never duplicates or skips an event. Every item carries its metering lines (meter, display name, consumed quantity and unit, mapped from the billing measurements); the per-line price split (list unit price, pricing unit, billed cost) rides only the single event — fetch /organization/v1/events/{id} for it. A cursor belongs to the order it was issued under: one obtained before this occurrence-time ordering, or used under the other sort direction, is refused with 400 INVALID_PARAMS instead of being reused — restart the listing.\n",
22789
23287
  "http": "GET",
22790
23288
  "path": "/organization/v1/events",
22791
23289
  "streaming": "no",
@@ -24277,119 +24775,682 @@ export const operations = [
24277
24775
  "query": []
24278
24776
  },
24279
24777
  {
24280
- "resource": "organization.usage",
24281
- "method": "list",
24282
- "summary": "List Organization Usage",
24283
- "description": "Consumed quantity per time bucket per group. Buckets are whole UTC hour/day periods covering the requested window. Each result carries exactly one ConsumedQuantity + ConsumedUnit — quantities of different units are never added together.\n",
24778
+ "resource": "organization.reconcile",
24779
+ "method": "pause",
24780
+ "summary": "Pause reconciliation",
24781
+ "description": "Stops the sweep from reconciling one holder until it is resumed: the holder's blocks keep their state and no further update is applied. Requires an organization owner or admin. Errors: 400 INVALID_PARAMS when actor is missing or is not an actor address, or a body field is unknown; 403 PERMISSION_DENIED. Example body: {\"actor\":\"agent:agent_123\"}.",
24782
+ "http": "POST",
24783
+ "path": "/organization/v1/reconcile/pause",
24784
+ "streaming": "no",
24785
+ "pagination": false,
24786
+ "pathParams": [],
24787
+ "query": [],
24788
+ "body": {
24789
+ "required": true,
24790
+ "fields": [
24791
+ {
24792
+ "name": "actor",
24793
+ "type": "string",
24794
+ "required": true,
24795
+ "description": "Actor address to reconcile (agent:agent_... or human:usr_...); its every current seat is merged."
24796
+ }
24797
+ ]
24798
+ }
24799
+ },
24800
+ {
24801
+ "resource": "organization.reconcile",
24802
+ "method": "retrievePlan",
24803
+ "summary": "Plan reconciliation",
24804
+ "description": "Dry-runs the reconciler for one holder and returns what it would change: an action per block (hold, update, none, pending, blocked) with the value it would write, and the violations only the merged result shows. It changes nothing - no state, no agent and no memory. Give the holder as actor. Errors: 400 INVALID_PARAMS when actor is missing or is not an actor address, or a query parameter is unknown; 403 PERMISSION_DENIED for a run or computer token, or a session token that names no agent. Example: GET /organization/v1/reconcile/plan?actor=agent:agent_123.",
24284
24805
  "http": "GET",
24285
- "path": "/organization/v1/usage",
24806
+ "path": "/organization/v1/reconcile/plan",
24286
24807
  "streaming": "no",
24287
24808
  "pagination": false,
24288
24809
  "pathParams": [],
24289
24810
  "query": [
24290
24811
  {
24291
- "name": "starting_at",
24812
+ "name": "actor",
24292
24813
  "type": "string",
24293
24814
  "required": true,
24294
- "description": "Window start, UTC ISO 8601, inclusive."
24295
- },
24815
+ "description": "The holder whose seats are reconciled (agent:agent_... or human:usr_...); its every current seat is merged."
24816
+ }
24817
+ ]
24818
+ },
24819
+ {
24820
+ "resource": "organization.reconcile",
24821
+ "method": "resume",
24822
+ "summary": "Resume reconciliation",
24823
+ "description": "Restarts the sweep for a paused holder and reconciles it now, returning the new status. Requires an organization owner or admin. Errors: 400 INVALID_PARAMS when actor is missing or is not an actor address, or a body field is unknown; 403 PERMISSION_DENIED. Example body: {\"actor\":\"agent:agent_123\"}.",
24824
+ "http": "POST",
24825
+ "path": "/organization/v1/reconcile/resume",
24826
+ "streaming": "no",
24827
+ "pagination": false,
24828
+ "pathParams": [],
24829
+ "query": [],
24830
+ "body": {
24831
+ "required": true,
24832
+ "fields": [
24833
+ {
24834
+ "name": "actor",
24835
+ "type": "string",
24836
+ "required": true,
24837
+ "description": "Actor address to reconcile (agent:agent_... or human:usr_...); its every current seat is merged."
24838
+ }
24839
+ ]
24840
+ }
24841
+ },
24842
+ {
24843
+ "resource": "organization.reconcile.run",
24844
+ "method": "create",
24845
+ "summary": "Run reconciliation now",
24846
+ "description": "Reconciles one holder now instead of waiting for the sweep: it plans, applies every update and returns the new status. Run plan first to see the changes without applying them. Requires an organization owner or admin. A block that cannot be applied now stays pending, waiting_human or failed, and the returned status says so. Errors: 400 INVALID_PARAMS when actor is missing or is not an actor address, or a body field is unknown; 403 PERMISSION_DENIED. Example body: {\"actor\":\"agent:agent_123\"}.",
24847
+ "http": "POST",
24848
+ "path": "/organization/v1/reconcile/run",
24849
+ "streaming": "no",
24850
+ "pagination": false,
24851
+ "pathParams": [],
24852
+ "query": [],
24853
+ "body": {
24854
+ "required": true,
24855
+ "fields": [
24856
+ {
24857
+ "name": "actor",
24858
+ "type": "string",
24859
+ "required": true,
24860
+ "description": "Actor address to reconcile (agent:agent_... or human:usr_...); its every current seat is merged."
24861
+ }
24862
+ ]
24863
+ }
24864
+ },
24865
+ {
24866
+ "resource": "organization.reconcile.status",
24867
+ "method": "list",
24868
+ "summary": "Read reconcile status",
24869
+ "description": "Reads the reconciler's last result for one holder: whether the sweep is paused, the seats and layer revisions of the last applied run, each block's state (ready, pending, failed, waiting_human or paused), the drift between what is applied and what the specs want, and when it last applied. Read-only; it changes nothing. Give the holder as actor. Errors: 400 INVALID_PARAMS when actor is missing or is not an actor address, or a query parameter is unknown; 403 PERMISSION_DENIED for a run or computer token, or a session token that names no agent. Example: GET /organization/v1/reconcile/status?actor=agent:agent_123.",
24870
+ "http": "GET",
24871
+ "path": "/organization/v1/reconcile/status",
24872
+ "streaming": "no",
24873
+ "pagination": false,
24874
+ "pathParams": [],
24875
+ "query": [
24296
24876
  {
24297
- "name": "ending_at",
24877
+ "name": "actor",
24298
24878
  "type": "string",
24299
24879
  "required": true,
24300
- "description": "Window end, UTC ISO 8601, exclusive. At most 93 days after starting_at."
24301
- },
24880
+ "description": "The holder whose reconcile status to read (agent:agent_... or human:usr_...)."
24881
+ }
24882
+ ]
24883
+ },
24884
+ {
24885
+ "resource": "organization.specs",
24886
+ "method": "list",
24887
+ "summary": "List specs",
24888
+ "description": "Lists the specs (规定) of the organization, most recently updated first; use it to find which subject already has a spec before reading or revising one. Narrow it with kind. Filters combine with AND. Pass next_page unchanged as page; null means the end. Read-only. Errors: 400 INVALID_PARAMS for an unknown query parameter, an unknown kind, a limit outside 1 to 100 or a stale cursor; 403 PERMISSION_DENIED for a run or computer token, or a session token that names no agent. Example: GET /organization/v1/specs?kind=job.",
24889
+ "http": "GET",
24890
+ "path": "/organization/v1/specs",
24891
+ "streaming": "no",
24892
+ "pagination": false,
24893
+ "pathParams": [],
24894
+ "query": [
24302
24895
  {
24303
- "name": "bucket_width",
24304
- "type": "string",
24305
- "enum": [
24306
- "1h",
24307
- "1d"
24308
- ],
24309
- "required": true,
24310
- "description": "Length of each time bucket: 1h for hours or 1d for days, both aligned to whole UTC periods (or to local hours and days when time_zone is set)."
24896
+ "name": "limit",
24897
+ "type": "integer",
24898
+ "required": false,
24899
+ "description": "Maximum items per page, from 1 to 100; defaults to 20."
24311
24900
  },
24312
24901
  {
24313
- "name": "time_zone",
24902
+ "name": "page",
24314
24903
  "type": "string",
24315
24904
  "required": false,
24316
- "description": "IANA time zone name (for example Asia/Shanghai) whose local hours or days form the buckets. Defaults to UTC. Offsets such as +08:00 are rejected. The window widens to whole local buckets; a day that crosses a daylight-saving change lasts 23 or 25 hours. starting_at and ending_at stay UTC instants.\n"
24905
+ "description": "Opaque next_page cursor returned by the previous response; omit for the first page."
24317
24906
  },
24318
24907
  {
24319
- "name": "group_by",
24320
- "type": "array",
24321
- "itemType": "string",
24908
+ "name": "kind",
24909
+ "type": "string",
24322
24910
  "enum": [
24323
- "ServiceName",
24324
- "ServiceCategory",
24325
- "ResourceId",
24326
- "ConsumedUnit"
24911
+ "organization",
24912
+ "department",
24913
+ "level",
24914
+ "job",
24915
+ "position",
24916
+ "assignment"
24327
24917
  ],
24328
24918
  "required": false,
24329
- "description": "FOCUS columns to group by (repeatable). Defaults to ServiceName and ConsumedUnit; the consumed unit is always split out server-side. A resource belongs to exactly one service, so ResourceId rows always carry ServiceName and ServiceCategory too — fact columns of that resource's service, not extra grouping dimensions (#4637).\n"
24919
+ "description": "Only specs of this subject kind; omit to list every kind together."
24920
+ }
24921
+ ]
24922
+ },
24923
+ {
24924
+ "resource": "organization.specs",
24925
+ "method": "retrieve",
24926
+ "summary": "Get a spec",
24927
+ "description": "Reads one subject's live spec, or one historical revision with revision; a subject never written answers revision 0 with an empty spec, so a first revise sends expected_revision 0. Read-only. Errors: 400 INVALID_PARAMS for a non-integer revision; 403 PERMISSION_DENIED for a run or computer token, or a session token that names no agent; 404 when the subject, or the named SPEC_REVISION_NOT_FOUND, does not exist. Example: GET /organization/v1/specs/job/jpr_123?revision=2.",
24928
+ "http": "GET",
24929
+ "path": "/organization/v1/specs/{kind}/{id}",
24930
+ "streaming": "no",
24931
+ "pagination": false,
24932
+ "pathParams": [
24933
+ {
24934
+ "name": "kind",
24935
+ "sdkName": "kind",
24936
+ "description": "Kind of the subject whose spec to read."
24330
24937
  },
24331
24938
  {
24332
- "name": "page",
24333
- "type": "string",
24939
+ "name": "id",
24940
+ "sdkName": "id",
24941
+ "description": "The subject's own id (org_..., dept_..., lvl_..., jpr_..., pos_... or asg_...)."
24942
+ }
24943
+ ],
24944
+ "query": [
24945
+ {
24946
+ "name": "revision",
24947
+ "type": "integer",
24334
24948
  "required": false,
24335
- "description": "Opaque cursor from the previous page's next_page."
24949
+ "description": "Read this historical revision instead of the live one; 0 answers the empty spec of a subject never written."
24336
24950
  }
24337
24951
  ]
24338
24952
  },
24339
24953
  {
24340
- "resource": "registry.installations",
24341
- "method": "delete",
24342
- "summary": "Remove an installation",
24343
- "description": "把包从目标上卸下来,并删掉这条安装记录:技能从智能体的技能列表里移除,插件从电脑上卸载。目标那边已经没有它时也算完成。包本身和它的版本不受影响,之后可以重新安装。记录删除后重发会 404,所以删除前先用 installations.list 确认。",
24344
- "http": "DELETE",
24345
- "path": "/registry/v1/installations/{installation_id}",
24954
+ "resource": "organization.specs",
24955
+ "method": "update",
24956
+ "summary": "Revise a spec",
24957
+ "description": "Replaces the whole spec of a subject: expected_revision is the revision you last read (0 when none was written) and each success raises it by one, so a mismatch returns REVISION_CONFLICT and you must read again, merge and retry. The spec body is stored and returned verbatim; its blocks are document, agent, computer, phone, roles, grants, repositories, schedules, browser and remove, and it is validated against the block registry. Requires an organization owner or admin, or the head of the subject's department. Errors: 400 INVALID_PARAMS for a missing spec or expected_revision, a block outside the registry or an unknown body field; 403 PERMISSION_DENIED; 404 when the subject does not exist; 409 REVISION_CONFLICT. Example body: {\"expected_revision\":0,\"spec\":{\"document\":\"Deliver reliably.\"}}.",
24958
+ "http": "PUT",
24959
+ "path": "/organization/v1/specs/{kind}/{id}",
24346
24960
  "streaming": "no",
24347
24961
  "pagination": false,
24348
24962
  "pathParams": [
24349
24963
  {
24350
- "name": "installation_id",
24351
- "sdkName": "installation_id",
24964
+ "name": "kind",
24965
+ "sdkName": "kind",
24966
+ "description": "Kind of the subject whose spec to revise."
24967
+ },
24968
+ {
24969
+ "name": "id",
24970
+ "sdkName": "id",
24971
+ "description": "The subject's own id (org_..., dept_..., lvl_..., jpr_..., pos_... or asg_...)."
24972
+ }
24973
+ ],
24974
+ "query": [],
24975
+ "body": {
24976
+ "required": true,
24977
+ "fields": [
24978
+ {
24979
+ "name": "expected_revision",
24980
+ "type": "integer",
24981
+ "required": true,
24982
+ "description": "The revision you last read, or 0 when the subject has no spec yet; the write is refused with REVISION_CONFLICT unless it is still the live one."
24983
+ },
24984
+ {
24985
+ "name": "spec",
24986
+ "type": "object",
24987
+ "required": true,
24988
+ "description": "The whole spec body, replacing the previous one: a map from block name to block value, sent through verbatim. Registered blocks are document, agent, computer, phone, roles, grants, repositories, schedules, browser and remove."
24989
+ }
24990
+ ]
24991
+ }
24992
+ },
24993
+ {
24994
+ "resource": "organization.specs",
24995
+ "method": "retrieveDiff",
24996
+ "summary": "Diff two spec revisions",
24997
+ "description": "Compares two revisions of one subject's spec and lists the changes between them, each with its path and, for a change, the value before and after; revision 0 is the empty spec, so diffing 0 against 1 shows the first write. Read-only. Errors: 400 INVALID_PARAMS when from or to is missing or not an integer; 403 PERMISSION_DENIED for a run or computer token, or a session token that names no agent; 404 when the subject does not exist, or SPEC_REVISION_NOT_FOUND when from or to was never written. Example: GET /organization/v1/specs/job/jpr_123/diff?from=1&to=2.",
24998
+ "http": "GET",
24999
+ "path": "/organization/v1/specs/{kind}/{id}/diff",
25000
+ "streaming": "no",
25001
+ "pagination": false,
25002
+ "pathParams": [
25003
+ {
25004
+ "name": "kind",
25005
+ "sdkName": "kind",
25006
+ "description": "Kind of the subject whose revisions to compare."
25007
+ },
25008
+ {
25009
+ "name": "id",
25010
+ "sdkName": "id",
25011
+ "description": "The subject's own id (org_..., dept_..., lvl_..., jpr_..., pos_... or asg_...)."
25012
+ }
25013
+ ],
25014
+ "query": [
25015
+ {
25016
+ "name": "from",
25017
+ "type": "integer",
25018
+ "required": true,
25019
+ "description": "The earlier revision to compare from; 0 is the empty spec before the first write."
25020
+ },
25021
+ {
25022
+ "name": "to",
25023
+ "type": "integer",
25024
+ "required": true,
25025
+ "description": "The later revision to compare to."
25026
+ }
25027
+ ]
25028
+ },
25029
+ {
25030
+ "resource": "organization.specs.revisions",
25031
+ "method": "list",
25032
+ "summary": "List spec revisions",
25033
+ "description": "Lists every stored revision of one subject's spec, newest first, each with its body, author and creation instant; use it to see what changed over time or to pick a revision to read or diff. Pass next_page unchanged as page; null means the end. Read-only. Errors: 400 INVALID_PARAMS for an unknown query parameter, a limit outside 1 to 100 or a stale cursor; 403 PERMISSION_DENIED for a run or computer token, or a session token that names no agent; 404 when the subject does not exist.",
25034
+ "http": "GET",
25035
+ "path": "/organization/v1/specs/{kind}/{id}/revisions",
25036
+ "streaming": "no",
25037
+ "pagination": false,
25038
+ "pathParams": [
25039
+ {
25040
+ "name": "kind",
25041
+ "sdkName": "kind",
25042
+ "description": "Kind of the subject whose revision history to list."
25043
+ },
25044
+ {
25045
+ "name": "id",
25046
+ "sdkName": "id",
25047
+ "description": "The subject's own id (org_..., dept_..., lvl_..., jpr_..., pos_... or asg_...)."
25048
+ }
25049
+ ],
25050
+ "query": [
25051
+ {
25052
+ "name": "limit",
25053
+ "type": "integer",
25054
+ "required": false,
25055
+ "description": "Maximum revisions per page, from 1 to 100; defaults to 20."
25056
+ },
25057
+ {
25058
+ "name": "page",
25059
+ "type": "string",
25060
+ "required": false,
25061
+ "description": "Opaque next_page cursor returned by the previous response; omit for the first page."
25062
+ }
25063
+ ]
25064
+ },
25065
+ {
25066
+ "resource": "organization.usage",
25067
+ "method": "list",
25068
+ "summary": "List Organization Usage",
25069
+ "description": "Consumed quantity per time bucket per group. Buckets are whole UTC hour/day periods covering the requested window. Each result carries exactly one ConsumedQuantity + ConsumedUnit — quantities of different units are never added together.\n",
25070
+ "http": "GET",
25071
+ "path": "/organization/v1/usage",
25072
+ "streaming": "no",
25073
+ "pagination": false,
25074
+ "pathParams": [],
25075
+ "query": [
25076
+ {
25077
+ "name": "starting_at",
25078
+ "type": "string",
25079
+ "required": true,
25080
+ "description": "Window start, UTC ISO 8601, inclusive."
25081
+ },
25082
+ {
25083
+ "name": "ending_at",
25084
+ "type": "string",
25085
+ "required": true,
25086
+ "description": "Window end, UTC ISO 8601, exclusive. At most 93 days after starting_at."
25087
+ },
25088
+ {
25089
+ "name": "bucket_width",
25090
+ "type": "string",
25091
+ "enum": [
25092
+ "1h",
25093
+ "1d"
25094
+ ],
25095
+ "required": true,
25096
+ "description": "Length of each time bucket: 1h for hours or 1d for days, both aligned to whole UTC periods (or to local hours and days when time_zone is set)."
25097
+ },
25098
+ {
25099
+ "name": "time_zone",
25100
+ "type": "string",
25101
+ "required": false,
25102
+ "description": "IANA time zone name (for example Asia/Shanghai) whose local hours or days form the buckets. Defaults to UTC. Offsets such as +08:00 are rejected. The window widens to whole local buckets; a day that crosses a daylight-saving change lasts 23 or 25 hours. starting_at and ending_at stay UTC instants.\n"
25103
+ },
25104
+ {
25105
+ "name": "group_by",
25106
+ "type": "array",
25107
+ "itemType": "string",
25108
+ "enum": [
25109
+ "ServiceName",
25110
+ "ServiceCategory",
25111
+ "ResourceId",
25112
+ "ConsumedUnit"
25113
+ ],
25114
+ "required": false,
25115
+ "description": "FOCUS columns to group by (repeatable). Defaults to ServiceName and ConsumedUnit; the consumed unit is always split out server-side. A resource belongs to exactly one service, so ResourceId rows always carry ServiceName and ServiceCategory too — fact columns of that resource's service, not extra grouping dimensions (#4637).\n"
25116
+ },
25117
+ {
25118
+ "name": "page",
25119
+ "type": "string",
25120
+ "required": false,
25121
+ "description": "Opaque cursor from the previous page's next_page."
25122
+ }
25123
+ ]
25124
+ },
25125
+ {
25126
+ "resource": "registry.installations",
25127
+ "method": "delete",
25128
+ "summary": "Remove an installation",
25129
+ "description": "把包从目标上卸下来,并删掉这条安装记录:技能从智能体的技能列表里移除,插件从电脑上卸载。目标那边已经没有它时也算完成。包本身和它的版本不受影响,之后可以重新安装。记录删除后重发会 404,所以删除前先用 installations.list 确认。",
25130
+ "http": "DELETE",
25131
+ "path": "/registry/v1/installations/{installation_id}",
25132
+ "streaming": "no",
25133
+ "pagination": false,
25134
+ "pathParams": [
25135
+ {
25136
+ "name": "installation_id",
25137
+ "sdkName": "installation_id",
24352
25138
  "description": "安装记录的标识,来自 packages.installations.list 或 packages.installations.create 返回的 id(ins_ 开头);不要传包或目标的 id。"
24353
25139
  }
24354
25140
  ],
24355
- "query": []
25141
+ "query": []
25142
+ },
25143
+ {
25144
+ "resource": "registry.installations",
25145
+ "method": "update",
25146
+ "summary": "Update an installation",
25147
+ "description": "把一条安装记录换到另一个版本。技能可以换到任何未撤回的版本(升级或回退),version 省略时换到最新版;插件只能换到库里的最新版本,version 给了也必须等于最新版。撤回的版本不能换过去。对账为 missing 的记录用它可以重新装回去。同名冲突和 20 个技能上限的规则与安装时相同。",
25148
+ "http": "POST",
25149
+ "path": "/registry/v1/installations/{installation_id}:update",
25150
+ "streaming": "no",
25151
+ "pagination": false,
25152
+ "pathParams": [
25153
+ {
25154
+ "name": "installation_id",
25155
+ "sdkName": "installation_id",
25156
+ "description": "安装记录的标识,来自 packages.installations.list 或 packages.installations.create 返回的 id(ins_ 开头);不要传包或目标的 id。"
25157
+ }
25158
+ ],
25159
+ "query": [],
25160
+ "body": {
25161
+ "required": true,
25162
+ "fields": [
25163
+ {
25164
+ "name": "version",
25165
+ "type": "string",
25166
+ "required": false,
25167
+ "description": "要换到的版本号,完整 semver;省略时换到最新版;插件给了也必须等于最新版,撤回的版本不能换。"
25168
+ }
25169
+ ]
25170
+ }
25171
+ },
25172
+ {
25173
+ "resource": "registry.packages",
25174
+ "method": "retrieve",
25175
+ "summary": "Retrieve package",
25176
+ "description": "读一个包的元数据:种类、所属库、当前 latest_version、作者、标签和累计下载量。package_id 来自 packages.list 或 packages.create;另一个组织或不存在都返回 404。软删期间这个包一律 404,恢复后才重新出现。",
25177
+ "http": "GET",
25178
+ "path": "/registry/v1/packages/{package_id}",
25179
+ "streaming": "no",
25180
+ "pagination": false,
25181
+ "pathParams": [
25182
+ {
25183
+ "name": "package_id",
25184
+ "sdkName": "package_id",
25185
+ "description": "包的标识,来自 repositories.packages.list 或 repositories.packages.create 返回的 id;不要传包名。"
25186
+ }
25187
+ ],
25188
+ "query": []
25189
+ },
25190
+ {
25191
+ "resource": "registry.packages.gitCredential",
25192
+ "method": "create",
25193
+ "summary": "Create a git credential",
25194
+ "description": "给一个 git 包换一个短期的 git 凭据,用来 git clone / git push。access 选 pull(只读,用来克隆和拉取)或 push(推分支,同时可以克隆和拉取)。push-protected(更新受保护分支)暂不发放,请推到别的分支再合并,请求它返回 400。ttl_seconds 是有效秒数,1-3600,默认 3600;到期后重新调用本接口,不要缓存过期的凭据。返回的 password 是敏感信息,只出现这一次,不要写进日志或提交。用法:git clone https://x-access-token:$PASSWORD@host/git/组织/库/包.git,或把 url 里的地址配上 http.extraHeader。组织未开放 git 功能返回 409;另一个组织的包、已被删除的包和 oci 包都返回 404。同一个 package_id 可以多次取,每次是一个新凭据,互不影响。",
25195
+ "http": "POST",
25196
+ "path": "/registry/v1/packages/{package_id}/git-credential",
25197
+ "streaming": "no",
25198
+ "pagination": false,
25199
+ "pathParams": [
25200
+ {
25201
+ "name": "package_id",
25202
+ "sdkName": "package_id",
25203
+ "description": "包的标识,来自 repositories.packages.list 或 repositories.packages.create 返回的 id;不要传包名。"
25204
+ }
25205
+ ],
25206
+ "query": [],
25207
+ "body": {
25208
+ "required": true,
25209
+ "fields": [
25210
+ {
25211
+ "name": "access",
25212
+ "type": "string",
25213
+ "enum": [
25214
+ "pull",
25215
+ "push",
25216
+ "push-protected"
25217
+ ],
25218
+ "required": true,
25219
+ "description": "凭据能做什么;pull 只读,push 推分支但不能更新受保护的引用,push-protected 暂不发放(400)。"
25220
+ },
25221
+ {
25222
+ "name": "ttl_seconds",
25223
+ "type": "integer",
25224
+ "required": false,
25225
+ "description": "凭据的有效秒数,1-3600,省略为 3600;超出范围返回 400,不会被截断。"
25226
+ }
25227
+ ]
25228
+ }
25229
+ },
25230
+ {
25231
+ "resource": "registry.packages.git.commits",
25232
+ "method": "retrieve",
25233
+ "summary": "Read a commit",
25234
+ "description": "按对象 id 读一个提交(完整 sha,不解析缩写)。返回提交信息、作者、提交时间与父提交;changed_files=true 时再返回它相对第一个父提交改了哪些文件(根提交的全部文件算新增),文件列表被上限截断时 changed_files_truncated 为 true。仓库里没有这个对象返回 404。",
25235
+ "http": "GET",
25236
+ "path": "/registry/v1/packages/{package_id}/git/commits/{sha}",
25237
+ "streaming": "no",
25238
+ "pagination": false,
25239
+ "pathParams": [
25240
+ {
25241
+ "name": "package_id",
25242
+ "sdkName": "package_id",
25243
+ "description": "包的标识,来自 repositories.packages.list 或 repositories.packages.create 返回的 id;不要传包名。"
25244
+ },
25245
+ {
25246
+ "name": "sha",
25247
+ "sdkName": "sha",
25248
+ "description": "完整的 git 对象 id(40 或 64 位十六进制),不接受缩写。"
25249
+ }
25250
+ ],
25251
+ "query": [
25252
+ {
25253
+ "name": "changed_files",
25254
+ "type": "boolean",
25255
+ "required": false,
25256
+ "description": "为 true 时同时返回这个提交相对第一个父提交改了哪些文件;默认 false,不多读树。"
25257
+ }
25258
+ ]
25259
+ },
25260
+ {
25261
+ "resource": "registry.packages.git",
25262
+ "method": "retrieveCompare",
25263
+ "summary": "Compare two refs",
25264
+ "description": "比较 base 与 head(引用名或完整对象 id):status 是 identical、ahead(head 在 base 之上有新提交)、behind(head 已包含在 base 里)或 diverged(两边各有提交);merge_base 是找到的最近共同祖先;files 是 head 相对 merge_base 改了哪些文件(added、modified、removed、renamed,renamed 带 previous_path),commits 是 head 比 base 多出的提交,最新的在前。Artifacts 无法低成本回答祖先关系,所以这里只沿两边的第一父链各走最多 300 个提交,并在有界读取下比对树:找不到共同祖先时返回 diverged、merge_base 为 null;files 被上限(3000 个文件、1000 次树读取)截断时 truncated 为 true;commits 被截断、或合并提交藏起了被合并分支上的提交时 commits_truncated 为 true。truncated 或 commits_truncated 为 true 时不要把列表当作完整结果。引用不存在返回 404。只读。",
25265
+ "http": "GET",
25266
+ "path": "/registry/v1/packages/{package_id}/git/compare",
25267
+ "streaming": "no",
25268
+ "pagination": false,
25269
+ "pathParams": [
25270
+ {
25271
+ "name": "package_id",
25272
+ "sdkName": "package_id",
25273
+ "description": "包的标识,来自 repositories.packages.list 或 repositories.packages.create 返回的 id;不要传包名。"
25274
+ }
25275
+ ],
25276
+ "query": [
25277
+ {
25278
+ "name": "base",
25279
+ "type": "string",
25280
+ "required": true,
25281
+ "description": "比较的起点:分支名、标签名、refs/… 全名或完整对象 id;status 与 files 都是 head 相对它的结果。"
25282
+ },
25283
+ {
25284
+ "name": "head",
25285
+ "type": "string",
25286
+ "required": true,
25287
+ "description": "比较的终点:分支名、标签名、refs/… 全名或完整对象 id。"
25288
+ }
25289
+ ]
25290
+ },
25291
+ {
25292
+ "resource": "registry.packages.git.files",
25293
+ "method": "retrieve",
25294
+ "summary": "Download a file from a ref",
25295
+ "description": "按引用读一个文件的原始字节,边读边发(流式),没有大小上限。path 是仓库内相对路径,可以含斜杠;ref 不给就是默认分支。路径不是文件或引用不存在返回 404。",
25296
+ "http": "GET",
25297
+ "path": "/registry/v1/packages/{package_id}/git/files/{path}",
25298
+ "streaming": "no",
25299
+ "pagination": false,
25300
+ "pathParams": [
25301
+ {
25302
+ "name": "package_id",
25303
+ "sdkName": "package_id",
25304
+ "description": "包的标识,来自 repositories.packages.list 或 repositories.packages.create 返回的 id;不要传包名。"
25305
+ },
25306
+ {
25307
+ "name": "path",
25308
+ "sdkName": "path",
25309
+ "description": "仓库内的相对文件路径,可以含斜杠(例如 src/main.ts);不要以 / 开头,不能含 ..。"
25310
+ }
25311
+ ],
25312
+ "query": [
25313
+ {
25314
+ "name": "ref",
25315
+ "type": "string",
25316
+ "required": false,
25317
+ "description": "分支名、标签名、refs/… 全名或完整对象 id;不给就是包的默认分支。"
25318
+ }
25319
+ ]
25320
+ },
25321
+ {
25322
+ "resource": "registry.packages.git",
25323
+ "method": "retrieveLog",
25324
+ "summary": "List commits",
25325
+ "description": "列出一个 git 包的提交历史,最新的在前。ref 不给就是包的默认分支;limit 与 offset 分页,has_more 为 true 表示还有下一页。只读:提交只能通过 git 协议推送(clone 地址在包的 clone_url)。OCI 包没有 git 读接口,返回 404。",
25326
+ "http": "GET",
25327
+ "path": "/registry/v1/packages/{package_id}/git/log",
25328
+ "streaming": "no",
25329
+ "pagination": false,
25330
+ "pathParams": [
25331
+ {
25332
+ "name": "package_id",
25333
+ "sdkName": "package_id",
25334
+ "description": "包的标识,来自 repositories.packages.list 或 repositories.packages.create 返回的 id;不要传包名。"
25335
+ }
25336
+ ],
25337
+ "query": [
25338
+ {
25339
+ "name": "ref",
25340
+ "type": "string",
25341
+ "required": false,
25342
+ "description": "分支名、标签名、refs/… 全名或完整对象 id;不给就是包的默认分支。"
25343
+ },
25344
+ {
25345
+ "name": "limit",
25346
+ "type": "integer",
25347
+ "required": false,
25348
+ "description": "这一页最多返回多少个提交,1 到 100,默认 20。"
25349
+ },
25350
+ {
25351
+ "name": "offset",
25352
+ "type": "integer",
25353
+ "required": false,
25354
+ "description": "从历史开头跳过多少个提交,用来翻页;非负整数,默认 0。"
25355
+ }
25356
+ ]
25357
+ },
25358
+ {
25359
+ "resource": "registry.packages.git.refs",
25360
+ "method": "list",
25361
+ "summary": "List branches and tags",
25362
+ "description": "列出一个 git 包的分支和标签,按名字排序;prefix 只取 refs/heads/(分支)或 refs/tags/(标签),不给就两者都列。page 从 1 起,size 1 到 500,默认 100;has_more 为 true 表示还有下一页。带注解的标签返回它指向的提交 id,不是标签对象的 id。想把一个名字换成提交 id 用 git/resolve,不要自己在这个列表里找。只读;OCI 包返回 404。",
25363
+ "http": "GET",
25364
+ "path": "/registry/v1/packages/{package_id}/git/refs",
25365
+ "streaming": "no",
25366
+ "pagination": false,
25367
+ "pathParams": [
25368
+ {
25369
+ "name": "package_id",
25370
+ "sdkName": "package_id",
25371
+ "description": "包的标识,来自 repositories.packages.list 或 repositories.packages.create 返回的 id;不要传包名。"
25372
+ }
25373
+ ],
25374
+ "query": [
25375
+ {
25376
+ "name": "prefix",
25377
+ "type": "string",
25378
+ "enum": [
25379
+ "refs/heads/",
25380
+ "refs/tags/"
25381
+ ],
25382
+ "required": false,
25383
+ "description": "只列一种引用:refs/heads/(分支)或 refs/tags/(标签);不给就两者都列。"
25384
+ },
25385
+ {
25386
+ "name": "page",
25387
+ "type": "integer",
25388
+ "required": false,
25389
+ "description": "页码,从 1 起,默认 1。"
25390
+ },
25391
+ {
25392
+ "name": "size",
25393
+ "type": "integer",
25394
+ "required": false,
25395
+ "description": "这一页最多返回多少个引用,1 到 500,默认 100。"
25396
+ }
25397
+ ]
25398
+ },
25399
+ {
25400
+ "resource": "registry.packages.git",
25401
+ "method": "retrieveResolve",
25402
+ "summary": "Resolve a ref",
25403
+ "description": "把一个引用换成它指向的提交 id:ref 可以是分支名、标签名、refs/… 全名、HEAD 或完整对象 id(40 或 64 位十六进制,缩写不解析)。名字既是标签又是分支时取标签。完整对象 id 只在仓库里真有这个提交时才返回。仓库没有这个引用或提交返回 404(GIT_OBJECT_NOT_FOUND),不会返回空值。要比较两个引用用 git/compare。",
25404
+ "http": "GET",
25405
+ "path": "/registry/v1/packages/{package_id}/git/resolve",
25406
+ "streaming": "no",
25407
+ "pagination": false,
25408
+ "pathParams": [
25409
+ {
25410
+ "name": "package_id",
25411
+ "sdkName": "package_id",
25412
+ "description": "包的标识,来自 repositories.packages.list 或 repositories.packages.create 返回的 id;不要传包名。"
25413
+ }
25414
+ ],
25415
+ "query": [
25416
+ {
25417
+ "name": "ref",
25418
+ "type": "string",
25419
+ "required": true,
25420
+ "description": "要换成提交 id 的引用:分支名、标签名、refs/… 全名、HEAD 或完整对象 id。"
25421
+ }
25422
+ ]
24356
25423
  },
24357
25424
  {
24358
- "resource": "registry.installations",
24359
- "method": "update",
24360
- "summary": "Update an installation",
24361
- "description": "把一条安装记录换到另一个版本。技能可以换到任何未撤回的版本(升级或回退),version 省略时换到最新版;插件只能换到库里的最新版本,version 给了也必须等于最新版。撤回的版本不能换过去。对账为 missing 的记录用它可以重新装回去。同名冲突和 20 个技能上限的规则与安装时相同。",
24362
- "http": "POST",
24363
- "path": "/registry/v1/installations/{installation_id}:update",
25425
+ "resource": "registry.packages.git.trees",
25426
+ "method": "retrieve",
25427
+ "summary": "List a tree",
25428
+ "description": "读一个树对象(或一个提交的根树)的条目:名字、类型(blob / tree / commit)、模式、对象 id,以及已知时的大小。只列这一层,不递归。",
25429
+ "http": "GET",
25430
+ "path": "/registry/v1/packages/{package_id}/git/trees/{sha}",
24364
25431
  "streaming": "no",
24365
25432
  "pagination": false,
24366
25433
  "pathParams": [
24367
25434
  {
24368
- "name": "installation_id",
24369
- "sdkName": "installation_id",
24370
- "description": "安装记录的标识,来自 packages.installations.list 或 packages.installations.create 返回的 id(ins_ 开头);不要传包或目标的 id。"
25435
+ "name": "package_id",
25436
+ "sdkName": "package_id",
25437
+ "description": "包的标识,来自 repositories.packages.list 或 repositories.packages.create 返回的 id;不要传包名。"
25438
+ },
25439
+ {
25440
+ "name": "sha",
25441
+ "sdkName": "sha",
25442
+ "description": "完整的 git 对象 id(40 或 64 位十六进制),不接受缩写。"
24371
25443
  }
24372
25444
  ],
24373
- "query": [],
24374
- "body": {
24375
- "required": true,
24376
- "fields": [
24377
- {
24378
- "name": "version",
24379
- "type": "string",
24380
- "required": false,
24381
- "description": "要换到的版本号,完整 semver;省略时换到最新版;插件给了也必须等于最新版,撤回的版本不能换。"
24382
- }
24383
- ]
24384
- }
25445
+ "query": []
24385
25446
  },
24386
25447
  {
24387
- "resource": "registry.packages",
24388
- "method": "retrieve",
24389
- "summary": "Retrieve package",
24390
- "description": "读一个包的元数据:种类、所属库、当前 latest_version、作者、标签和累计下载量。package_id 来自 packages.list 或 packages.create;另一个组织或不存在都返回 404。",
25448
+ "resource": "registry.packages.git.trees",
25449
+ "method": "retrieveRecursive",
25450
+ "summary": "List a tree recursively",
25451
+ "description": "读一个提交(或树对象)下的全部条目,递归,每个条目用相对根的完整路径命名,目录和子模块也是条目(子模块不展开)。适合要拿到整个仓库文件清单的场景(例如 DevOps 的构建判断);只想看一个目录用 git/trees/{sha}。相同的子树只读一次。条目上限 20000、树读取上限 1000 次,撞到上限时 truncated 为 true、entries 只是前一部分,不要当作全部。sha 通常来自 git/resolve。仓库里没有这个对象返回 404。只读。",
24391
25452
  "http": "GET",
24392
- "path": "/registry/v1/packages/{package_id}",
25453
+ "path": "/registry/v1/packages/{package_id}/git/trees/{sha}/recursive",
24393
25454
  "streaming": "no",
24394
25455
  "pagination": false,
24395
25456
  "pathParams": [
@@ -24397,6 +25458,11 @@ export const operations = [
24397
25458
  "name": "package_id",
24398
25459
  "sdkName": "package_id",
24399
25460
  "description": "包的标识,来自 repositories.packages.list 或 repositories.packages.create 返回的 id;不要传包名。"
25461
+ },
25462
+ {
25463
+ "name": "sha",
25464
+ "sdkName": "sha",
25465
+ "description": "完整的 git 对象 id(40 或 64 位十六进制),不接受缩写。"
24400
25466
  }
24401
25467
  ],
24402
25468
  "query": []
@@ -24680,7 +25746,7 @@ export const operations = [
24680
25746
  "resource": "registry.repositories",
24681
25747
  "method": "create",
24682
25748
  "summary": "Create repository",
24683
- "description": "新建一个库来分类存放包。name 是库的唯一标识,小写字母、数字和连字符,最多 63 个字符,且不能和已有的库重名;display_name 和 description 是给人看的。每个组织本来就有一个默认库,需要新分类时才建;一个库非空时不能删除,所以不要用库来临时隔离一次上传。",
25749
+ "description": "新建一个库来分类存放包。name 是库的唯一标识,小写字母、数字和连字符,最多 63 个字符,且不能和已有的库重名;display_name 和 description 是给人看的。每个组织本来就有一个默认库,需要新分类时才建;一个库非空时不能删除,所以不要用库来临时隔离一次上传。format 默认 oci,库里放技能和插件;要放 git 仓库就传 format=git,建库后 format 不能改。git 库需要这个组织已开放 git 功能,否则返回 409。",
24684
25750
  "http": "POST",
24685
25751
  "path": "/registry/v1/repositories",
24686
25752
  "streaming": "no",
@@ -24707,6 +25773,16 @@ export const operations = [
24707
25773
  "type": "string",
24708
25774
  "required": false,
24709
25775
  "description": "库的说明;省略时不写。"
25776
+ },
25777
+ {
25778
+ "name": "format",
25779
+ "type": "string",
25780
+ "enum": [
25781
+ "oci",
25782
+ "git"
25783
+ ],
25784
+ "required": false,
25785
+ "description": "库里放什么,省略为 oci;git 库放 git 仓库,要求组织已开放 git 功能(否则 409),建库后不能改。"
24710
25786
  }
24711
25787
  ]
24712
25788
  }
@@ -24842,8 +25918,8 @@ export const operations = [
24842
25918
  {
24843
25919
  "resource": "registry.repositories.packages",
24844
25920
  "method": "create",
24845
- "summary": "Publish a package",
24846
- "description": "把一个新包发布进这个库,一次调用建立包并上传它的第一个版本。发布内容是 multipart:version 必填,archive 给一个 zip,或者 files 给一组文件(每个文件的 filename 是相对上传根的路径,例如 pdf/SKILL.md)。单个顶层目录会被剥掉。种类按根上有什么判:有 SKILL.md 就是 skill,有 .claude-plugin/plugin.json 就是 plugin;两者都没有、或都有,会被拒。名字从 SKILL.md 或 plugin.json 里读,不从路径或 query 猜。限额:上传 ≤25 MiB,解压后 ≤50 MiB,≤1000 个文件。版本必须是 semver 且严格递增;第一个版本可以是任意合法 semver,之后每个新版本都要比已发布的最高版本高。把已有智能体的技能搬过来时,先用 GET /agent/v1/skills/{id}/versions/{v}/content 导出 zip,再在这里作为 archive 发布。",
25921
+ "summary": "Create a package",
25922
+ "description": "在一个库里建新包,按库的 format 走两条路。git 库(format=git):Content-Type 用 application/json,请求体 {name, format:\"git\", default_branch?, description?, import?},建一个空的 git 仓库,或者用 import.url(公开 https 仓库)从现有仓库导入;成功返回的包带 clone_url、default_branch 和 protected_refs(默认只保护默认分支),接着调用 packages.git-credential 取推拉凭据;组织未开放 git 功能返回 409,往 oci 库里用 JSON 建包也是 409。oci 库(技能和插件):把一个新包发布进这个库,一次调用建立包并上传它的第一个版本,Content-Type 用 multipart/form-data。发布内容是 multipart:version 必填,archive 给一个 zip,或者 files 给一组文件(每个文件的 filename 是相对上传根的路径,例如 pdf/SKILL.md)。单个顶层目录会被剥掉。种类按根上有什么判:有 SKILL.md 就是 skill,有 .claude-plugin/plugin.json 就是 plugin;两者都没有、或都有,会被拒。名字从 SKILL.md 或 plugin.json 里读,不从路径或 query 猜。限额:上传 ≤25 MiB,解压后 ≤50 MiB,≤1000 个文件。版本必须是 semver 且严格递增;第一个版本可以是任意合法 semver,之后每个新版本都要比已发布的最高版本高。把已有智能体的技能搬过来时,先用 GET /agent/v1/skills/{id}/versions/{v}/content 导出 zip,再在这里作为 archive 发布。",
24847
25923
  "http": "POST",
24848
25924
  "path": "/registry/v1/repositories/{repository_id}/packages",
24849
25925
  "streaming": "no",
@@ -24861,41 +25937,196 @@ export const operations = [
24861
25937
  "required": true,
24862
25938
  "fields": [
24863
25939
  {
24864
- "name": "version",
25940
+ "name": "name",
24865
25941
  "type": "string",
24866
25942
  "required": true,
24867
- "description": "要发布的版本号,完整 semver,例如 1.2.0;每个包内必须严格递增,撤回的版本也占号。"
25943
+ "description": "包名,也是仓库名,小写字母、数字和 . _ -,在这个库里不能重名;出现在 clone_url 里,建后不能改。"
24868
25944
  },
24869
25945
  {
24870
- "name": "archive",
25946
+ "name": "format",
25947
+ "type": "string",
25948
+ "enum": [
25949
+ "git"
25950
+ ],
25951
+ "required": true,
25952
+ "description": "建的包是什么;JSON 请求只能建 git 包,所以固定为 git。"
25953
+ },
25954
+ {
25955
+ "name": "default_branch",
24871
25956
  "type": "string",
24872
25957
  "required": false,
24873
- "description": "一个 zip 文件,内含包的内容;与 files 二选一。单个顶层目录会被剥掉。"
25958
+ "description": "默认分支名,省略为 main;默认受保护,普通凭据不能直接推,请推到别的分支。"
24874
25959
  },
24875
25960
  {
24876
- "name": "files",
24877
- "type": "array",
24878
- "itemType": "string",
25961
+ "name": "description",
25962
+ "type": "string",
24879
25963
  "required": false,
24880
- "description": "直接上传的一组文件,每个 part 的 filename 是相对路径;与 archive 二选一。"
25964
+ "description": "仓库的说明;省略时为空。"
24881
25965
  },
24882
25966
  {
24883
- "name": "title",
25967
+ "name": "import",
25968
+ "type": "object",
25969
+ "required": false,
25970
+ "description": "从一个现有的公开仓库导入内容,建出来的仓库不是空的;省略则建空仓库。"
25971
+ }
25972
+ ]
25973
+ }
25974
+ },
25975
+ {
25976
+ "resource": "sandbox.byod.devices",
25977
+ "method": "list",
25978
+ "summary": "List your organization's own devices",
25979
+ "description": "List the devices your organization has paired, oldest first, with each one's platform, name, model, OS version, live online fact and when it was last seen. Use it to find a device id before you act on it, rename it or disconnect it, or to show the BYOD page. A revoked device is not listed, so a device that disappears from this answer was disconnected; there is no paging because an organization's own devices are few. Each row carries capabilities and, for a desktop, the agent_dirs it registered. Example: GET /sandbox/v1/byod/devices returns {data:[{object:'byod_device',id:'byd_0123456789abcdefghijklmno',platform:'android',name:'Shelf phone',model:'23127PN0CC',os_version:'16',online:true,last_seen_at:'2026-11-22T12:58:00.000Z',created_at:'2026-11-22T12:40:00.000Z',capabilities:['display'],agent_dirs:[]}]}.",
25980
+ "http": "GET",
25981
+ "path": "/sandbox/v1/byod/devices",
25982
+ "streaming": "no",
25983
+ "pagination": false,
25984
+ "pathParams": [],
25985
+ "query": []
25986
+ },
25987
+ {
25988
+ "resource": "sandbox.byod.devices",
25989
+ "method": "retrieve",
25990
+ "summary": "Read one of your organization's devices",
25991
+ "description": "Read one BYOD device: the same fields listByodDevices returns, for a single device. Use it to poll whether a device is online before acting on it, or to refresh one row of the BYOD page after a rename. An unknown id and another organization's device both answer 404, so the answer never reveals that a foreign device exists. Example: GET /sandbox/v1/byod/devices/byd_0123456789abcdefghijklmno.",
25992
+ "http": "GET",
25993
+ "path": "/sandbox/v1/byod/devices/{deviceID}",
25994
+ "streaming": "no",
25995
+ "pagination": false,
25996
+ "pathParams": [
25997
+ {
25998
+ "name": "deviceID",
25999
+ "sdkName": "deviceID",
26000
+ "description": "Device id from the claim or from listByodDevices, `byd_` followed by 26 lowercase hex characters. An unknown id and another organization's device both answer 404."
26001
+ }
26002
+ ],
26003
+ "query": []
26004
+ },
26005
+ {
26006
+ "resource": "sandbox.byod.devices",
26007
+ "method": "update",
26008
+ "summary": "Rename one of your organization's devices",
26009
+ "description": "Change a device's display name, and nothing else: pairing, credential, platform and connection are untouched. Use it to give a shared phone a name your team recognises. The body takes exactly one field, name, 1 to 64 characters after trimming; a missing, extra or wrongly typed field answers INVALID_PARAMS. An unknown id and another organization's device both answer 404. Example: PATCH /sandbox/v1/byod/devices/byd_0123456789abcdefghijklmno with {name:'Shelf phone'} returns the updated device.",
26010
+ "http": "PATCH",
26011
+ "path": "/sandbox/v1/byod/devices/{deviceID}",
26012
+ "streaming": "no",
26013
+ "pagination": false,
26014
+ "pathParams": [
26015
+ {
26016
+ "name": "deviceID",
26017
+ "sdkName": "deviceID",
26018
+ "description": "Device id from the claim or from listByodDevices, `byd_` followed by 26 lowercase hex characters. An unknown id and another organization's device both answer 404."
26019
+ }
26020
+ ],
26021
+ "query": [],
26022
+ "body": {
26023
+ "required": true,
26024
+ "fields": [
26025
+ {
26026
+ "name": "name",
26027
+ "type": "string",
26028
+ "required": true,
26029
+ "description": "New display name for the device, 1 to 64 characters after trimming leading and trailing whitespace; it does not have to be unique."
26030
+ }
26031
+ ]
26032
+ }
26033
+ },
26034
+ {
26035
+ "resource": "sandbox.byod.devices.disconnect",
26036
+ "method": "create",
26037
+ "summary": "Disconnect a device and revoke its credential",
26038
+ "description": "Disconnect a paired device: the device's credential is revoked, its control connection is closed, and it stops appearing in listByodDevices. Use it when the phone is lost, lent or no longer wanted; the same disconnect is offered as one tap on the device itself. The operation is idempotent — disconnecting an already-disconnected device answers the same 200 — so a retry after a lost response is safe. The device is untouched: nothing is erased on the phone, and it can be paired again with a new pairing. Because a revoked device is not listed, a later listByodDevices no longer shows it. An unknown id and another organization's device both answer 404. Example: POST /sandbox/v1/byod/devices/byd_0123456789abcdefghijklmno/disconnect returns {id:'byd_0123456789abcdefghijklmno',object:'byod_device',disconnected:true}.",
26039
+ "http": "POST",
26040
+ "path": "/sandbox/v1/byod/devices/{deviceID}/disconnect",
26041
+ "streaming": "no",
26042
+ "pagination": false,
26043
+ "pathParams": [
26044
+ {
26045
+ "name": "deviceID",
26046
+ "sdkName": "deviceID",
26047
+ "description": "Device id from the claim or from listByodDevices, `byd_` followed by 26 lowercase hex characters. An unknown id and another organization's device both answer 404."
26048
+ }
26049
+ ],
26050
+ "query": []
26051
+ },
26052
+ {
26053
+ "resource": "sandbox.byod.pairings",
26054
+ "method": "create",
26055
+ "summary": "Start adding a phone of your own",
26056
+ "description": "Begin bringing your own device (BYOD): the platform answers an 8-character code, its ten-minute deadline and the QR payload your phone's app scans, and nothing is registered until the owner taps Allow on the phone. Show the QR payload (or the code) in your app; the phone opens GET /sandbox/v1/byod/pairings/{code} — with no credential — to show the organization and the deadline, then posts the claim once. The pairing stores the organization's display name, which the phone shows on its Allow screen, so create the pairing from a session or key that carries one. A code is spent by the first successful claim and cannot be reused; create a new pairing for another device. BYOD devices are separate from sandboxes: they never appear in listSandboxes and have no template, size or expiry. Example: POST /sandbox/v1/byod/pairings with no body returns {code:'K7M4PQRS',expires_at:'2026-11-22T13:10:00.000Z',qr:'praxis://byod/pair?code=K7M4PQRS&api=https%3A%2F%2Fapi.deepraxis.com'}.",
26057
+ "http": "POST",
26058
+ "path": "/sandbox/v1/byod/pairings",
26059
+ "streaming": "no",
26060
+ "pagination": false,
26061
+ "pathParams": [],
26062
+ "query": []
26063
+ },
26064
+ {
26065
+ "resource": "sandbox.byod.pairings",
26066
+ "method": "retrieve",
26067
+ "summary": "Read a pairing for the phone's Allow screen",
26068
+ "description": "The phone's own read, called by the app that scanned the QR code or the code was typed into: it answers the organization's display name and the code's deadline, which the owner sees before tapping Allow. This path carries no Praxis credential — the one-time code is what it is addressed by — so do not send an API key and do not call it from server code. An unknown, spent or expired code answers 404, with nothing said about which of the three it is; that also covers a code another organization created. The read is a preview only: it registers nothing, and the claim is what spends the code. Example: GET /sandbox/v1/byod/pairings/K7M4PQRS returns {organization_name:'烟火测试团队',expires_at:'2026-11-22T13:10:00.000Z'}.",
26069
+ "http": "GET",
26070
+ "path": "/sandbox/v1/byod/pairings/{code}",
26071
+ "streaming": "no",
26072
+ "pagination": false,
26073
+ "pathParams": [
26074
+ {
26075
+ "name": "code",
26076
+ "sdkName": "code",
26077
+ "description": "The 8-character pairing code returned by createByodPairing. An unknown, spent or expired code answers 404."
26078
+ }
26079
+ ],
26080
+ "query": []
26081
+ },
26082
+ {
26083
+ "resource": "sandbox.byod.pairings.claim",
26084
+ "method": "create",
26085
+ "summary": "Claim a pairing and register the phone",
26086
+ "description": "The phone's own final step after the owner taps Allow: it registers the device and answers the device id, a one-time credential and the control socket url the app dials. This path carries no Praxis credential — the one-time code is what it is addressed by — so do not send an API key and never call it from server code. The claim is single use: the first successful call spends the code and a second call answers 404, as does an unknown or expired code, so the app must store the credential the moment it arrives because it is never shown again. Connect to socket_url with Authorization: Bearer <credential>; the socket speaks the phone channel (hello, ping/pong, act, result/error) and the device's one connection is replaced if the app reconnects. Example: POST /sandbox/v1/byod/pairings/K7M4PQRS/claim with {platform:'android',name:'Shelf phone',model:'23127PN0CC',os_version:'16'} returns {device_id:'byd_0123456789abcdefghijklmno',credential:'…',socket_url:'wss://49982-byd0123456789abcdefghijklmno--sbx-develop.praxisusercontent.com/'}.",
26087
+ "http": "POST",
26088
+ "path": "/sandbox/v1/byod/pairings/{code}/claim",
26089
+ "streaming": "no",
26090
+ "pagination": false,
26091
+ "pathParams": [
26092
+ {
26093
+ "name": "code",
26094
+ "sdkName": "code",
26095
+ "description": "The 8-character pairing code returned by createByodPairing. An unknown, spent or expired code answers 404."
26096
+ }
26097
+ ],
26098
+ "query": [],
26099
+ "body": {
26100
+ "required": true,
26101
+ "fields": [
26102
+ {
26103
+ "name": "platform",
26104
+ "type": "string",
26105
+ "enum": [
26106
+ "android",
26107
+ "macos",
26108
+ "linux"
26109
+ ],
26110
+ "required": true,
26111
+ "description": "The device's platform. macos and linux are accepted only for an organization with the local-agent-connect flag on; with it off, and for any other value, the claim answers INVALID_PARAMS."
26112
+ },
26113
+ {
26114
+ "name": "name",
24884
26115
  "type": "string",
24885
26116
  "required": false,
24886
- "description": "给人看的标题;省略时从包内容里取。"
26117
+ "description": "Display name to register the device with, 1 to 64 characters; omitted or empty becomes the placeholder My device, which the caller can change later."
24887
26118
  },
24888
26119
  {
24889
- "name": "description",
26120
+ "name": "model",
24890
26121
  "type": "string",
24891
26122
  "required": false,
24892
- "description": "包说明;省略时从包内容里取。"
26123
+ "description": "The device model the app reports, at most 128 characters; it is display only and can be omitted."
24893
26124
  },
24894
26125
  {
24895
- "name": "tags",
26126
+ "name": "os_version",
24896
26127
  "type": "string",
24897
26128
  "required": false,
24898
- "description": "逗号分隔的标签,例如 review,quality;省略时没有标签。"
26129
+ "description": "The operating-system version the app reports, at most 64 characters; it is display only and can be omitted."
24899
26130
  }
24900
26131
  ]
24901
26132
  }
@@ -25018,7 +26249,7 @@ export const operations = [
25018
26249
  "resource": "sandbox.sandboxes",
25019
26250
  "method": "create",
25020
26251
  "summary": "Create sandbox (v2)",
25021
- "description": "Create a sandbox from a template. Every sandbox declares its lifecycle at creation. On the own face (X-Praxis-Face: own-v1) send ephemeral: true for an ephemeral sandbox (never pauses, cannot be snapshotted, deleted when it ends; for jobs such as transcodes, scripts and builds) or ephemeral: false for a persistent one (pauses and resumes, snapshots, mounts volumes, kept after it stops; for long-lived computers). Leaving ephemeral out returns INVALID_PARAMS. autoPause: true, onExpire: pause, autoPauseMemory, autoResume, idleTimeout, retention and volumes belong to persistent sandboxes and need ephemeral: false. Choose persistent only for long-lived computers. On the E2B-compatible face autoPause is the declaration: true is persistent, false or absent is ephemeral and ends at its timeout. Responses carry ephemeral. When a sandbox's machine has ended (timeout, kill, retention, provider loss), reaching it returns SANDBOX_EXPIRED (410) with terminationReason in the message: its files are gone, create a new sandbox. To keep results, declare outputs: [{ path }] on the own face (up to eight absolute paths, a directory or a file): when the sandbox ends for any reason except provider loss or a failed start, each path is packed as .tar.gz and stored in File, and the killed event of GET /sandbox/v1/events/sandboxes/{sandboxID} lists each fileId or the reason it was not kept. Paths not declared are not kept. The E2B face refuses outputs.",
26252
+ "description": "Create a sandbox from a template. Every sandbox declares its lifecycle at creation. On the own face (X-Praxis-Face: own-v1) send ephemeral: true for an ephemeral sandbox (never pauses, cannot be snapshotted, deleted when it ends; for jobs such as transcodes, scripts and builds) or ephemeral: false for a persistent one (pauses and resumes, snapshots, mounts volumes, kept after it stops; for long-lived computers). Leaving ephemeral out returns INVALID_PARAMS. autoPause: true, onExpire: pause, autoPauseMemory, autoResume, idleTimeout, retention and volumes belong to persistent sandboxes and need ephemeral: false. Choose persistent only for long-lived computers. On the E2B-compatible face autoPause is the declaration: true is persistent, false or absent is ephemeral and ends at its timeout. Responses carry ephemeral. When a sandbox's machine has ended (timeout, kill, retention, provider loss), reaching it returns SANDBOX_EXPIRED (410) with terminationReason in the message: its files are gone, create a new sandbox. To keep results, declare outputs: [{ path }] on the own face (up to eight absolute paths, a directory or a file): when the sandbox ends for any reason except provider loss or a failed start, each path is packed as .tar.gz and stored in File, and the killed event of GET /sandbox/v1/events/sandboxes/{sandboxID} lists each fileId or the reason it was not kept. Paths not declared are not kept. The E2B face refuses outputs. On the own face an android phone accepts waitForReady: true, an own-face-only option: the create then waits until the phone program has connected (state running) or 55 seconds have passed since the request arrived (the vendor create itself takes about 48 s, so this is often not enough), and answers with the state it reached — a timeout is not an error; omit it (the default) and the create answers at once, before the phone connects, with state starting or booting, which you follow with the detail read or the act socket.",
25022
26253
  "http": "POST",
25023
26254
  "path": "/sandbox/v1/sandboxes",
25024
26255
  "streaming": "no",
@@ -25100,6 +26331,98 @@ export const operations = [
25100
26331
  "itemType": "object",
25101
26332
  "required": false,
25102
26333
  "description": "Volumes to mount into the sandbox, each with the volume name and the path inside the sandbox."
26334
+ },
26335
+ {
26336
+ "name": "ephemeral",
26337
+ "type": "boolean",
26338
+ "required": false,
26339
+ "description": "Own face, required unless sku is named: true for an ephemeral sandbox (ends at its timeout, never pauses, cannot be snapshotted), false for a persistent one (pauses, resumes, snapshots, mounts volumes). Leaving it out returns INVALID_PARAMS."
26340
+ },
26341
+ {
26342
+ "name": "size",
26343
+ "type": "string",
26344
+ "required": false,
26345
+ "description": "Own face: the machine size, a SKU id such as base-2c4g or, for an android phone, android-2c4g. Omitted, the template's default size is used."
26346
+ },
26347
+ {
26348
+ "name": "name",
26349
+ "type": "string",
26350
+ "required": false,
26351
+ "description": "Own face: a display name for the sandbox, 1 to 64 characters. Omitted, one is generated from the template."
26352
+ },
26353
+ {
26354
+ "name": "waitForReady",
26355
+ "type": "boolean",
26356
+ "required": false,
26357
+ "description": "Own face, android phones only: keep the create open until the phone is running or 55 seconds have passed since the request arrived; running out is not an error and answers the state reached."
26358
+ },
26359
+ {
26360
+ "name": "onExpire",
26361
+ "type": "string",
26362
+ "enum": [
26363
+ "kill",
26364
+ "pause"
26365
+ ],
26366
+ "required": false,
26367
+ "description": "Own face: what happens at the timeout. pause needs ephemeral: false; must agree with autoPause when both are sent."
26368
+ },
26369
+ {
26370
+ "name": "idleTimeout",
26371
+ "type": "integer",
26372
+ "required": false,
26373
+ "description": "Own face, persistent sandboxes only: pause after this many milliseconds without activity; null turns the idle pause off."
26374
+ },
26375
+ {
26376
+ "name": "idleActivity",
26377
+ "type": "string",
26378
+ "enum": [
26379
+ "traffic",
26380
+ "caller"
26381
+ ],
26382
+ "required": false,
26383
+ "description": "Own face, persistent sandboxes only: whose activity resets idleTimeout. traffic (default) counts data-plane calls, preview traffic and live processes; caller counts only your own control-plane calls."
26384
+ },
26385
+ {
26386
+ "name": "sku",
26387
+ "type": "string",
26388
+ "required": false,
26389
+ "description": "Own face: a demand-profile SKU <kind>.<image>.<size>, such as run.document.medium (someone waits; starts fast), job.base.large (background work that must not be cut off), batch.base.large (retried work that may be reclaimed) or computer.base.medium (keeps its disk). It fixes ephemeral, interruptible, size and the template, so those may be left out; any of them you also send must agree with it, otherwise the create fails with INVALID_PARAMS naming the field. The sandbox answers it back as sku and as the read-only label praxis.sku."
26390
+ },
26391
+ {
26392
+ "name": "kind",
26393
+ "type": "string",
26394
+ "enum": [
26395
+ "run",
26396
+ "job",
26397
+ "batch",
26398
+ "computer",
26399
+ "compat"
26400
+ ],
26401
+ "required": false,
26402
+ "description": "Own face: the kind of sandbox you need, when you do not name a full sku. The sandbox completes <kind>.<image>.<size> from the template you start (its family, or custom for your own environment or snapshot) and the size you send, or medium. run is for work someone waits for (starts fast), job is background work that must not be cut off, batch is retried work that may be reclaimed (spot capacity), computer keeps its disk, and compat is the E2B-compatible persistent series. The kind fixes ephemeral and interruptible, so leave those out; if you also send them, or a sku of another kind, the create fails with INVALID_PARAMS naming the field. The light template always starts the light shell, whatever the kind says."
26403
+ },
26404
+ {
26405
+ "name": "interruptible",
26406
+ "type": "boolean",
26407
+ "required": false,
26408
+ "description": "Own face, ephemeral sandboxes only: true says this sandbox may be reclaimed while it runs (a build or test you retry), which lets it run on cheaper spot capacity. A reclaimed sandbox ends with PROVIDER_FAILED; create it again. Absent or false keeps the usual capacity."
26409
+ },
26410
+ {
26411
+ "name": "onLoss",
26412
+ "type": "string",
26413
+ "enum": [
26414
+ "fail",
26415
+ "rebuild"
26416
+ ],
26417
+ "required": false,
26418
+ "description": "Own face, persistent sandboxes only: what happens when the provider loses the machine. fail (default) ends the sandbox; rebuild starts a new machine under the same id with its state lost."
26419
+ },
26420
+ {
26421
+ "name": "outputs",
26422
+ "type": "array",
26423
+ "itemType": "object",
26424
+ "required": false,
26425
+ "description": "Own face: up to eight absolute paths to keep when the sandbox ends; each is packed as .tar.gz into File and listed on the killed event."
25103
26426
  }
25104
26427
  ]
25105
26428
  }
@@ -25169,6 +26492,28 @@ export const operations = [
25169
26492
  ]
25170
26493
  }
25171
26494
  },
26495
+ {
26496
+ "resource": "sandbox.sandboxes",
26497
+ "method": "act",
26498
+ "summary": "Act on a phone sandbox's screen",
26499
+ "description": "See and operate an android sandbox's phone screen: take a screenshot, read the UI hierarchy to get a ref for each node, then tap a node or a screen point, long-press, swipe, scroll, type text, press a key, open or close an app, open a URL, or wait. Use it to drive and automate a mobile app on a phone sandbox created with templateID \"android\"; those machines have no terminal or file API, so drive the screen with this operation and run shell commands with commands.run. Start with a snapshot to learn what is on screen and to mint the refs the tap-like actions use; a ref names a node in the latest snapshot only, so after a newer snapshot, or after an action that changed the screen, take a fresh snapshot — a stale ref is refused with INVALID_PARAMS. The phone runs one action at a time, so actions on one sandbox are serial: send the next only after the previous call returns. A phone that has just been created may not have connected yet and answers 503 SERVICE_UNAVAILABLE with Retry-After: 2; retry after that delay (measured on develop: the sandbox is created in about 45 s and the phone program connects about 15 s later). Text is entered through the phone's own input, which supports ASCII only, so typing non-ASCII text into a Chinese app is not supported and answers INVALID_PARAMS. A linux sandbox has no screen and answers CAPABILITY_UNSUPPORTED.\n\nThe same path is the caller's action socket: send GET with the standard WebSocket upgrade headers instead of POST and drive many actions over one connection. The server answers {\"type\":\"ready\",\"instanceId\":\"<id>\"} first, then every frame {\"id\":\"<your correlation id>\",\"action\":{…}} (an action of the same shape as this operation's body, at most 64 characters of id) is answered by its own id, in submission order, as {\"id\":\"…\",\"result\":{…}} or {\"id\":\"…\",\"error\":{\"code\":\"…\",\"message\":\"…\",\"retryable\":true}}. At most 8 actions may be in flight on one connection (the next answers RATE_LIMITED), and 10 malformed frames in a row close the connection 1008. Authentication is the caller's own (an organization API key), never the phone's token. Closing the connection ends only that client's view: actions already accepted are answered, and the phone stays connected. Before the handshake, a phone that is still being built or has not connected yet answers 503 DEVICE_NOT_READY with the state it is in and Retry-After: 2.",
26500
+ "http": "POST",
26501
+ "path": "/sandbox/v1/sandboxes/{sandboxID}/act",
26502
+ "streaming": "no",
26503
+ "pagination": false,
26504
+ "pathParams": [
26505
+ {
26506
+ "name": "sandboxID",
26507
+ "sdkName": "sandboxID",
26508
+ "description": "Id of the sandbox, the `sandboxID` returned by the create call (or listed by listSandboxes). Another team's sandbox and an unknown id both answer 404."
26509
+ }
26510
+ ],
26511
+ "query": [],
26512
+ "body": {
26513
+ "required": true,
26514
+ "fields": []
26515
+ }
26516
+ },
25172
26517
  {
25173
26518
  "resource": "sandbox.sandboxes",
25174
26519
  "method": "connect",
@@ -25681,7 +27026,7 @@ export const operations = [
25681
27026
  "resource": "sandbox.sandboxes.commands",
25682
27027
  "method": "run",
25683
27028
  "summary": "Run a command in the sandbox",
25684
- "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\"}.",
27029
+ "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. On an android sandbox the command runs in the phone's root shell, its stderr is merged into stdout (read stdout and expect stderr to come back empty), and background mode is unavailable. Example body: {\"cmd\":\"echo hi\"}.",
25685
27030
  "http": "POST",
25686
27031
  "path": "/sandbox/v1/sandboxes/{sandbox_id}/commands",
25687
27032
  "streaming": "no",
@@ -31012,7 +32357,7 @@ export const operations = [
31012
32357
  "name": "duplicate_of",
31013
32358
  "type": "integer",
31014
32359
  "required": false,
31015
- "description": "Repository-local number returned by create or list; distinct from the object's id."
32360
+ "description": "The original ticket's number; required when state_reason is duplicate."
31016
32361
  }
31017
32362
  ]
31018
32363
  }
@@ -31709,7 +33054,7 @@ export const operations = [
31709
33054
  "resource": "vault.authorizations",
31710
33055
  "method": "create",
31711
33056
  "summary": "Create authorization",
31712
- "description": "Connect an OAuth service to an active vault using either an OAuth template or a resource URL. Unlike Anthropic mcp_oauth credential creation, this flow obtains tokens through user consent rather than accepting an auth token bundle; compatible mcp_oauth creation and updates return 501. Open connect_url, then poll praxis.vault.authorizations.retrieve until completed, failed or expired; only completed supplies the resulting secret_id. This stores a credential but does not enable vault-backed MCP authentication in Agent sessions.",
33057
+ "description": "Connect an OAuth service to an active vault using either an OAuth template or a resource URL. Unlike Anthropic mcp_oauth credential creation, this flow obtains tokens through user consent rather than accepting an auth token bundle; compatible mcp_oauth creation and updates return 501. Open connect_url, then poll praxis.vault.authorizations.retrieve until completed, failed or expired; only completed supplies the resulting secret_id. The resulting oauth secret serves vault-backed MCP authentication — an Agent session or deployment whose vault_ids include this vault sends it to the MCP server whose URL equals this authorization's resource URL (normalized), and the platform refreshes the token once when that server answers 401.",
31713
33058
  "http": "POST",
31714
33059
  "path": "/vault/v1/authorizations",
31715
33060
  "streaming": "no",
@@ -32121,7 +33466,7 @@ export const operations = [
32121
33466
  "resource": "vault.vaults.secrets",
32122
33467
  "method": "create",
32123
33468
  "summary": "Create secret",
32124
- "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.",
33469
+ "description": "Store a manually supplied token in an active vault. Declare allowed_hosts (1–16 domains) to let the value be redeemed for those destinations; omit it to store an empty list, which name-based resolution still returns but no destination can redeem, and which a service agent's session environment never receives either way. MCP credential matching reads the same declarations, so a `*.` entry covers subdomains there too. Unlike Anthropic credentials, this native operation takes name and value 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.",
32125
33470
  "http": "POST",
32126
33471
  "path": "/vault/v1/vaults/{vault_id}/secrets",
32127
33472
  "streaming": "no",
@@ -32154,7 +33499,7 @@ export const operations = [
32154
33499
  "type": "array",
32155
33500
  "itemType": "string",
32156
33501
  "required": false,
32157
- "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."
33502
+ "description": "Allowed destinations for the secret; checked at write and enforced when a value is redeemed for a destination host, which an empty list never satisfies. Omit it on creation to store an empty list: the value stays readable by name-based resolution only. 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. A service agent's session environment never receives a credential that declares hosts."
32158
33503
  },
32159
33504
  {
32160
33505
  "name": "description",
@@ -32274,7 +33619,7 @@ export const operations = [
32274
33619
  "type": "array",
32275
33620
  "itemType": "string",
32276
33621
  "required": false,
32277
- "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."
33622
+ "description": "Allowed destinations for the secret; checked at write and enforced when a value is redeemed for a destination host. Omit it to keep the current list; an empty list removes the declaration, so every redemption is denied and only name-based resolution still returns the value. When supplied with entries, 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. A service agent's session environment never receives a credential that declares hosts."
32278
33623
  },
32279
33624
  {
32280
33625
  "name": "description",
@@ -32378,7 +33723,7 @@ export const operations = [
32378
33723
  "resource": "vault.vaults.secrets",
32379
33724
  "method": "import",
32380
33725
  "summary": "Import secrets",
32381
- "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.",
33726
+ "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 get an empty host list, which name-based resolution still returns but no destination can redeem. Imported entries carry the same host rules as Create secret, and a service agent's session environment never receives a credential that declares hosts.",
32382
33727
  "http": "POST",
32383
33728
  "path": "/vault/v1/vaults/{vault_id}/secrets:import",
32384
33729
  "streaming": "no",