@deepraxis/sdk 0.1.1-dev.cdb6bda → 0.1.1-dev.cfb65a9

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. 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, 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. 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. 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",
@@ -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",
@@ -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",
@@ -1610,7 +1646,7 @@ export const operations = [
1610
1646
  "resource": "agent.deployments",
1611
1647
  "method": "create",
1612
1648
  "summary": "Create deployment",
1613
- "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\"}}.",
1614
1650
  "http": "POST",
1615
1651
  "path": "/agent/v1/deployments",
1616
1652
  "streaming": "no",
@@ -2229,6 +2265,16 @@ export const operations = [
2229
2265
  "required": false,
2230
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."
2231
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
+ },
2232
2278
  {
2233
2279
  "name": "computer_id",
2234
2280
  "type": "string",
@@ -2819,7 +2865,7 @@ export const operations = [
2819
2865
  "resource": "agent.sessions.requests",
2820
2866
  "method": "list",
2821
2867
  "summary": "List Session Requests (Extension)",
2822
- "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.",
2823
2869
  "http": "GET",
2824
2870
  "path": "/agent/v1/sessions/{session_id}/requests",
2825
2871
  "streaming": "no",
@@ -3449,7 +3495,7 @@ export const operations = [
3449
3495
  "resource": "agent.toolsets",
3450
3496
  "method": "list",
3451
3497
  "summary": "List Toolsets",
3452
- "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.",
3453
3499
  "http": "GET",
3454
3500
  "path": "/agent/v1/toolsets",
3455
3501
  "streaming": "no",
@@ -7341,6 +7387,18 @@ export const operations = [
7341
7387
  ]
7342
7388
  }
7343
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
+ },
7344
7402
  {
7345
7403
  "resource": "browser.connect",
7346
7404
  "method": "retrieve",
@@ -13323,7 +13381,7 @@ export const operations = [
13323
13381
  "resource": "devops.projects",
13324
13382
  "method": "list",
13325
13383
  "summary": "List projects",
13326
- "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.",
13327
13385
  "http": "GET",
13328
13386
  "path": "/devops/v1/projects",
13329
13387
  "streaming": "no",
@@ -13344,6 +13402,81 @@ export const operations = [
13344
13402
  }
13345
13403
  ]
13346
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
+ },
13347
13480
  {
13348
13481
  "resource": "devops.projects",
13349
13482
  "method": "retrieve",
@@ -13398,6 +13531,35 @@ export const operations = [
13398
13531
  ]
13399
13532
  }
13400
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
+ },
13401
13563
  {
13402
13564
  "resource": "devops.projects.changes",
13403
13565
  "method": "list",
@@ -14430,7 +14592,7 @@ export const operations = [
14430
14592
  "resource": "devops.projects",
14431
14593
  "method": "retrieveTestPlan",
14432
14594
  "summary": "Retrieve the merge gate's test plan at a commit",
14433
- "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.",
14595
+ "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.",
14434
14596
  "http": "GET",
14435
14597
  "path": "/devops/v1/projects/{project}/test-plan",
14436
14598
  "streaming": "no",
@@ -14588,7 +14750,7 @@ export const operations = [
14588
14750
  "resource": "devops.projects.testReports",
14589
14751
  "method": "create",
14590
14752
  "summary": "Upload an external test report",
14591
- "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.",
14753
+ "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.",
14592
14754
  "http": "POST",
14593
14755
  "path": "/devops/v1/projects/{project}/test-reports",
14594
14756
  "streaming": "no",
@@ -14618,7 +14780,7 @@ export const operations = [
14618
14780
  "feedback"
14619
14781
  ],
14620
14782
  "required": false,
14621
- "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."
14783
+ "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."
14622
14784
  },
14623
14785
  {
14624
14786
  "name": "format",
@@ -15224,7 +15386,7 @@ export const operations = [
15224
15386
  "resource": "devops.promotions",
15225
15387
  "method": "retry",
15226
15388
  "summary": "Retry a promotion",
15227
- "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.",
15389
+ "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.",
15228
15390
  "http": "POST",
15229
15391
  "path": "/devops/v1/promotions/{id}:retry",
15230
15392
  "streaming": "no",
@@ -15273,7 +15435,7 @@ export const operations = [
15273
15435
  "resource": "devops.pullRequests",
15274
15436
  "method": "retrieve",
15275
15437
  "summary": "Retrieve a pull request",
15276
- "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.",
15438
+ "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.",
15277
15439
  "http": "GET",
15278
15440
  "path": "/devops/v1/pull-requests/{id}",
15279
15441
  "streaming": "no",
@@ -15294,6 +15456,46 @@ export const operations = [
15294
15456
  }
15295
15457
  ]
15296
15458
  },
15459
+ {
15460
+ "resource": "devops.pullRequests.reviews",
15461
+ "method": "create",
15462
+ "summary": "Review a pull request on our own Git",
15463
+ "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.",
15464
+ "http": "POST",
15465
+ "path": "/devops/v1/pull-requests/{id}/reviews",
15466
+ "streaming": "no",
15467
+ "pagination": false,
15468
+ "pathParams": [
15469
+ {
15470
+ "name": "id",
15471
+ "sdkName": "id",
15472
+ "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."
15473
+ }
15474
+ ],
15475
+ "query": [],
15476
+ "body": {
15477
+ "required": true,
15478
+ "fields": [
15479
+ {
15480
+ "name": "state",
15481
+ "type": "string",
15482
+ "enum": [
15483
+ "approved",
15484
+ "changes_requested",
15485
+ "commented"
15486
+ ],
15487
+ "required": true,
15488
+ "description": "The verdict. A value outside this set is refused with INVALID_ARGUMENT."
15489
+ },
15490
+ {
15491
+ "name": "body",
15492
+ "type": "string",
15493
+ "required": false,
15494
+ "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."
15495
+ }
15496
+ ]
15497
+ }
15498
+ },
15297
15499
  {
15298
15500
  "resource": "devops.pullRequests",
15299
15501
  "method": "close",
@@ -15424,7 +15626,7 @@ export const operations = [
15424
15626
  "resource": "devops.pullRequests",
15425
15627
  "method": "rerunGate",
15426
15628
  "summary": "Decide a pull request's merge gate again",
15427
- "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.",
15629
+ "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.",
15428
15630
  "http": "POST",
15429
15631
  "path": "/devops/v1/pull-requests/{id}:rerunGate",
15430
15632
  "streaming": "no",
@@ -16078,7 +16280,7 @@ export const operations = [
16078
16280
  "resource": "file.files",
16079
16281
  "method": "list",
16080
16282
  "summary": "List files",
16081
- "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.",
16283
+ "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.",
16082
16284
  "http": "GET",
16083
16285
  "path": "/file/v1/files",
16084
16286
  "streaming": "no",
@@ -16119,6 +16321,13 @@ export const operations = [
16119
16321
  "required": false,
16120
16322
  "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."
16121
16323
  },
16324
+ {
16325
+ "name": "ids",
16326
+ "type": "array",
16327
+ "itemType": "string",
16328
+ "required": false,
16329
+ "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."
16330
+ },
16122
16331
  {
16123
16332
  "name": "before",
16124
16333
  "type": "string",
@@ -18354,7 +18563,7 @@ export const operations = [
18354
18563
  "resource": "media.speech",
18355
18564
  "method": "create",
18356
18565
  "summary": "Create speech",
18357
- "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.",
18566
+ "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.",
18358
18567
  "http": "POST",
18359
18568
  "path": "/media/v1/libraries/{library_id}/audio/speech",
18360
18569
  "streaming": "no",
@@ -18413,6 +18622,23 @@ export const operations = [
18413
18622
  "type": "string",
18414
18623
  "required": false,
18415
18624
  "description": "Language of the text, when the voice supports several."
18625
+ },
18626
+ {
18627
+ "name": "model",
18628
+ "type": "string",
18629
+ "required": false,
18630
+ "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."
18631
+ },
18632
+ {
18633
+ "name": "tier",
18634
+ "type": "string",
18635
+ "enum": [
18636
+ "economy",
18637
+ "balanced",
18638
+ "quality"
18639
+ ],
18640
+ "required": false,
18641
+ "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."
18416
18642
  }
18417
18643
  ]
18418
18644
  }
@@ -23012,6 +23238,41 @@ export const operations = [
23012
23238
  ],
23013
23239
  "query": []
23014
23240
  },
23241
+ {
23242
+ "resource": "organization.effectiveSpec",
23243
+ "method": "retrieve",
23244
+ "summary": "Read the effective spec",
23245
+ "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.",
23246
+ "http": "GET",
23247
+ "path": "/organization/v1/effective_spec",
23248
+ "streaming": "no",
23249
+ "pagination": false,
23250
+ "pathParams": [],
23251
+ "query": [
23252
+ {
23253
+ "name": "actor",
23254
+ "type": "string",
23255
+ "required": false,
23256
+ "description": "Actor address whose every current seat is merged (agent:agent_... or human:usr_...); give this or position_id, not both."
23257
+ },
23258
+ {
23259
+ "name": "position_id",
23260
+ "type": "string",
23261
+ "required": false,
23262
+ "description": "One seat to merge, held or vacant (pos_...); give this or actor, not both."
23263
+ },
23264
+ {
23265
+ "name": "holder_kind",
23266
+ "type": "string",
23267
+ "enum": [
23268
+ "agent",
23269
+ "human"
23270
+ ],
23271
+ "required": false,
23272
+ "description": "Which holder kind to merge for; omit to derive it from the seat's holder."
23273
+ }
23274
+ ]
23275
+ },
23015
23276
  {
23016
23277
  "resource": "organization.events",
23017
23278
  "method": "list",
@@ -24507,6 +24768,294 @@ export const operations = [
24507
24768
  ],
24508
24769
  "query": []
24509
24770
  },
24771
+ {
24772
+ "resource": "organization.reconcile",
24773
+ "method": "pause",
24774
+ "summary": "Pause reconciliation",
24775
+ "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\"}.",
24776
+ "http": "POST",
24777
+ "path": "/organization/v1/reconcile/pause",
24778
+ "streaming": "no",
24779
+ "pagination": false,
24780
+ "pathParams": [],
24781
+ "query": [],
24782
+ "body": {
24783
+ "required": true,
24784
+ "fields": [
24785
+ {
24786
+ "name": "actor",
24787
+ "type": "string",
24788
+ "required": true,
24789
+ "description": "Actor address to reconcile (agent:agent_... or human:usr_...); its every current seat is merged."
24790
+ }
24791
+ ]
24792
+ }
24793
+ },
24794
+ {
24795
+ "resource": "organization.reconcile",
24796
+ "method": "retrievePlan",
24797
+ "summary": "Plan reconciliation",
24798
+ "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.",
24799
+ "http": "GET",
24800
+ "path": "/organization/v1/reconcile/plan",
24801
+ "streaming": "no",
24802
+ "pagination": false,
24803
+ "pathParams": [],
24804
+ "query": [
24805
+ {
24806
+ "name": "actor",
24807
+ "type": "string",
24808
+ "required": true,
24809
+ "description": "The holder whose seats are reconciled (agent:agent_... or human:usr_...); its every current seat is merged."
24810
+ }
24811
+ ]
24812
+ },
24813
+ {
24814
+ "resource": "organization.reconcile",
24815
+ "method": "resume",
24816
+ "summary": "Resume reconciliation",
24817
+ "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\"}.",
24818
+ "http": "POST",
24819
+ "path": "/organization/v1/reconcile/resume",
24820
+ "streaming": "no",
24821
+ "pagination": false,
24822
+ "pathParams": [],
24823
+ "query": [],
24824
+ "body": {
24825
+ "required": true,
24826
+ "fields": [
24827
+ {
24828
+ "name": "actor",
24829
+ "type": "string",
24830
+ "required": true,
24831
+ "description": "Actor address to reconcile (agent:agent_... or human:usr_...); its every current seat is merged."
24832
+ }
24833
+ ]
24834
+ }
24835
+ },
24836
+ {
24837
+ "resource": "organization.reconcile.run",
24838
+ "method": "create",
24839
+ "summary": "Run reconciliation now",
24840
+ "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\"}.",
24841
+ "http": "POST",
24842
+ "path": "/organization/v1/reconcile/run",
24843
+ "streaming": "no",
24844
+ "pagination": false,
24845
+ "pathParams": [],
24846
+ "query": [],
24847
+ "body": {
24848
+ "required": true,
24849
+ "fields": [
24850
+ {
24851
+ "name": "actor",
24852
+ "type": "string",
24853
+ "required": true,
24854
+ "description": "Actor address to reconcile (agent:agent_... or human:usr_...); its every current seat is merged."
24855
+ }
24856
+ ]
24857
+ }
24858
+ },
24859
+ {
24860
+ "resource": "organization.reconcile.status",
24861
+ "method": "list",
24862
+ "summary": "Read reconcile status",
24863
+ "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.",
24864
+ "http": "GET",
24865
+ "path": "/organization/v1/reconcile/status",
24866
+ "streaming": "no",
24867
+ "pagination": false,
24868
+ "pathParams": [],
24869
+ "query": [
24870
+ {
24871
+ "name": "actor",
24872
+ "type": "string",
24873
+ "required": true,
24874
+ "description": "The holder whose reconcile status to read (agent:agent_... or human:usr_...)."
24875
+ }
24876
+ ]
24877
+ },
24878
+ {
24879
+ "resource": "organization.specs",
24880
+ "method": "list",
24881
+ "summary": "List specs",
24882
+ "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.",
24883
+ "http": "GET",
24884
+ "path": "/organization/v1/specs",
24885
+ "streaming": "no",
24886
+ "pagination": false,
24887
+ "pathParams": [],
24888
+ "query": [
24889
+ {
24890
+ "name": "limit",
24891
+ "type": "integer",
24892
+ "required": false,
24893
+ "description": "Maximum items per page, from 1 to 100; defaults to 20."
24894
+ },
24895
+ {
24896
+ "name": "page",
24897
+ "type": "string",
24898
+ "required": false,
24899
+ "description": "Opaque next_page cursor returned by the previous response; omit for the first page."
24900
+ },
24901
+ {
24902
+ "name": "kind",
24903
+ "type": "string",
24904
+ "enum": [
24905
+ "organization",
24906
+ "department",
24907
+ "level",
24908
+ "job",
24909
+ "position",
24910
+ "assignment"
24911
+ ],
24912
+ "required": false,
24913
+ "description": "Only specs of this subject kind; omit to list every kind together."
24914
+ }
24915
+ ]
24916
+ },
24917
+ {
24918
+ "resource": "organization.specs",
24919
+ "method": "retrieve",
24920
+ "summary": "Get a spec",
24921
+ "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.",
24922
+ "http": "GET",
24923
+ "path": "/organization/v1/specs/{kind}/{id}",
24924
+ "streaming": "no",
24925
+ "pagination": false,
24926
+ "pathParams": [
24927
+ {
24928
+ "name": "kind",
24929
+ "sdkName": "kind",
24930
+ "description": "Kind of the subject whose spec to read."
24931
+ },
24932
+ {
24933
+ "name": "id",
24934
+ "sdkName": "id",
24935
+ "description": "The subject's own id (org_..., dept_..., lvl_..., jpr_..., pos_... or asg_...)."
24936
+ }
24937
+ ],
24938
+ "query": [
24939
+ {
24940
+ "name": "revision",
24941
+ "type": "integer",
24942
+ "required": false,
24943
+ "description": "Read this historical revision instead of the live one; 0 answers the empty spec of a subject never written."
24944
+ }
24945
+ ]
24946
+ },
24947
+ {
24948
+ "resource": "organization.specs",
24949
+ "method": "update",
24950
+ "summary": "Revise a spec",
24951
+ "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.\"}}.",
24952
+ "http": "PUT",
24953
+ "path": "/organization/v1/specs/{kind}/{id}",
24954
+ "streaming": "no",
24955
+ "pagination": false,
24956
+ "pathParams": [
24957
+ {
24958
+ "name": "kind",
24959
+ "sdkName": "kind",
24960
+ "description": "Kind of the subject whose spec to revise."
24961
+ },
24962
+ {
24963
+ "name": "id",
24964
+ "sdkName": "id",
24965
+ "description": "The subject's own id (org_..., dept_..., lvl_..., jpr_..., pos_... or asg_...)."
24966
+ }
24967
+ ],
24968
+ "query": [],
24969
+ "body": {
24970
+ "required": true,
24971
+ "fields": [
24972
+ {
24973
+ "name": "expected_revision",
24974
+ "type": "integer",
24975
+ "required": true,
24976
+ "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."
24977
+ },
24978
+ {
24979
+ "name": "spec",
24980
+ "type": "object",
24981
+ "required": true,
24982
+ "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."
24983
+ }
24984
+ ]
24985
+ }
24986
+ },
24987
+ {
24988
+ "resource": "organization.specs",
24989
+ "method": "retrieveDiff",
24990
+ "summary": "Diff two spec revisions",
24991
+ "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.",
24992
+ "http": "GET",
24993
+ "path": "/organization/v1/specs/{kind}/{id}/diff",
24994
+ "streaming": "no",
24995
+ "pagination": false,
24996
+ "pathParams": [
24997
+ {
24998
+ "name": "kind",
24999
+ "sdkName": "kind",
25000
+ "description": "Kind of the subject whose revisions to compare."
25001
+ },
25002
+ {
25003
+ "name": "id",
25004
+ "sdkName": "id",
25005
+ "description": "The subject's own id (org_..., dept_..., lvl_..., jpr_..., pos_... or asg_...)."
25006
+ }
25007
+ ],
25008
+ "query": [
25009
+ {
25010
+ "name": "from",
25011
+ "type": "integer",
25012
+ "required": true,
25013
+ "description": "The earlier revision to compare from; 0 is the empty spec before the first write."
25014
+ },
25015
+ {
25016
+ "name": "to",
25017
+ "type": "integer",
25018
+ "required": true,
25019
+ "description": "The later revision to compare to."
25020
+ }
25021
+ ]
25022
+ },
25023
+ {
25024
+ "resource": "organization.specs.revisions",
25025
+ "method": "list",
25026
+ "summary": "List spec revisions",
25027
+ "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.",
25028
+ "http": "GET",
25029
+ "path": "/organization/v1/specs/{kind}/{id}/revisions",
25030
+ "streaming": "no",
25031
+ "pagination": false,
25032
+ "pathParams": [
25033
+ {
25034
+ "name": "kind",
25035
+ "sdkName": "kind",
25036
+ "description": "Kind of the subject whose revision history to list."
25037
+ },
25038
+ {
25039
+ "name": "id",
25040
+ "sdkName": "id",
25041
+ "description": "The subject's own id (org_..., dept_..., lvl_..., jpr_..., pos_... or asg_...)."
25042
+ }
25043
+ ],
25044
+ "query": [
25045
+ {
25046
+ "name": "limit",
25047
+ "type": "integer",
25048
+ "required": false,
25049
+ "description": "Maximum revisions per page, from 1 to 100; defaults to 20."
25050
+ },
25051
+ {
25052
+ "name": "page",
25053
+ "type": "string",
25054
+ "required": false,
25055
+ "description": "Opaque next_page cursor returned by the previous response; omit for the first page."
25056
+ }
25057
+ ]
25058
+ },
24510
25059
  {
24511
25060
  "resource": "organization.usage",
24512
25061
  "method": "list",
@@ -24632,11 +25181,51 @@ export const operations = [
24632
25181
  ],
24633
25182
  "query": []
24634
25183
  },
25184
+ {
25185
+ "resource": "registry.packages.gitCredential",
25186
+ "method": "create",
25187
+ "summary": "Create a git credential",
25188
+ "description": "给一个 git 包换一个短期的 git 凭据,用来 git clone / git push。access 选 pull(只读,用来克隆和拉取)或 push(推分支);一个 push 凭据只能推,克隆要另取 pull 凭据。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 可以多次取,每次是一个新凭据,互不影响。",
25189
+ "http": "POST",
25190
+ "path": "/registry/v1/packages/{package_id}/git-credential",
25191
+ "streaming": "no",
25192
+ "pagination": false,
25193
+ "pathParams": [
25194
+ {
25195
+ "name": "package_id",
25196
+ "sdkName": "package_id",
25197
+ "description": "包的标识,来自 repositories.packages.list 或 repositories.packages.create 返回的 id;不要传包名。"
25198
+ }
25199
+ ],
25200
+ "query": [],
25201
+ "body": {
25202
+ "required": true,
25203
+ "fields": [
25204
+ {
25205
+ "name": "access",
25206
+ "type": "string",
25207
+ "enum": [
25208
+ "pull",
25209
+ "push",
25210
+ "push-protected"
25211
+ ],
25212
+ "required": true,
25213
+ "description": "凭据能做什么;pull 只读,push 推分支但不能更新受保护的引用,push-protected 暂不发放(400)。"
25214
+ },
25215
+ {
25216
+ "name": "ttl_seconds",
25217
+ "type": "integer",
25218
+ "required": false,
25219
+ "description": "凭据的有效秒数,1-3600,省略为 3600;超出范围返回 400,不会被截断。"
25220
+ }
25221
+ ]
25222
+ }
25223
+ },
24635
25224
  {
24636
25225
  "resource": "registry.packages.git.commits",
24637
25226
  "method": "retrieve",
24638
25227
  "summary": "Read a commit",
24639
- "description": "按对象 id 读一个提交(完整 sha,不解析缩写)。返回提交信息、作者、提交时间与父提交。仓库里没有这个对象返回 404。",
25228
+ "description": "按对象 id 读一个提交(完整 sha,不解析缩写)。返回提交信息、作者、提交时间与父提交;changed_files=true 时再返回它相对第一个父提交改了哪些文件(根提交的全部文件算新增),文件列表被上限截断时 changed_files_truncated 为 true。仓库里没有这个对象返回 404。",
24640
25229
  "http": "GET",
24641
25230
  "path": "/registry/v1/packages/{package_id}/git/commits/{sha}",
24642
25231
  "streaming": "no",
@@ -24653,7 +25242,45 @@ export const operations = [
24653
25242
  "description": "完整的 git 对象 id(40 或 64 位十六进制),不接受缩写。"
24654
25243
  }
24655
25244
  ],
24656
- "query": []
25245
+ "query": [
25246
+ {
25247
+ "name": "changed_files",
25248
+ "type": "boolean",
25249
+ "required": false,
25250
+ "description": "为 true 时同时返回这个提交相对第一个父提交改了哪些文件;默认 false,不多读树。"
25251
+ }
25252
+ ]
25253
+ },
25254
+ {
25255
+ "resource": "registry.packages.git",
25256
+ "method": "retrieveCompare",
25257
+ "summary": "Compare two refs",
25258
+ "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。只读。",
25259
+ "http": "GET",
25260
+ "path": "/registry/v1/packages/{package_id}/git/compare",
25261
+ "streaming": "no",
25262
+ "pagination": false,
25263
+ "pathParams": [
25264
+ {
25265
+ "name": "package_id",
25266
+ "sdkName": "package_id",
25267
+ "description": "包的标识,来自 repositories.packages.list 或 repositories.packages.create 返回的 id;不要传包名。"
25268
+ }
25269
+ ],
25270
+ "query": [
25271
+ {
25272
+ "name": "base",
25273
+ "type": "string",
25274
+ "required": true,
25275
+ "description": "比较的起点:分支名、标签名、refs/… 全名或完整对象 id;status 与 files 都是 head 相对它的结果。"
25276
+ },
25277
+ {
25278
+ "name": "head",
25279
+ "type": "string",
25280
+ "required": true,
25281
+ "description": "比较的终点:分支名、标签名、refs/… 全名或完整对象 id。"
25282
+ }
25283
+ ]
24657
25284
  },
24658
25285
  {
24659
25286
  "resource": "registry.packages.git.files",
@@ -24722,6 +25349,72 @@ export const operations = [
24722
25349
  }
24723
25350
  ]
24724
25351
  },
25352
+ {
25353
+ "resource": "registry.packages.git.refs",
25354
+ "method": "list",
25355
+ "summary": "List branches and tags",
25356
+ "description": "列出一个 git 包的分支和标签,按名字排序;prefix 只取 refs/heads/(分支)或 refs/tags/(标签),不给就两者都列。page 从 1 起,size 1 到 500,默认 100;has_more 为 true 表示还有下一页。带注解的标签返回它指向的提交 id,不是标签对象的 id。想把一个名字换成提交 id 用 git/resolve,不要自己在这个列表里找。只读;OCI 包返回 404。",
25357
+ "http": "GET",
25358
+ "path": "/registry/v1/packages/{package_id}/git/refs",
25359
+ "streaming": "no",
25360
+ "pagination": false,
25361
+ "pathParams": [
25362
+ {
25363
+ "name": "package_id",
25364
+ "sdkName": "package_id",
25365
+ "description": "包的标识,来自 repositories.packages.list 或 repositories.packages.create 返回的 id;不要传包名。"
25366
+ }
25367
+ ],
25368
+ "query": [
25369
+ {
25370
+ "name": "prefix",
25371
+ "type": "string",
25372
+ "enum": [
25373
+ "refs/heads/",
25374
+ "refs/tags/"
25375
+ ],
25376
+ "required": false,
25377
+ "description": "只列一种引用:refs/heads/(分支)或 refs/tags/(标签);不给就两者都列。"
25378
+ },
25379
+ {
25380
+ "name": "page",
25381
+ "type": "integer",
25382
+ "required": false,
25383
+ "description": "页码,从 1 起,默认 1。"
25384
+ },
25385
+ {
25386
+ "name": "size",
25387
+ "type": "integer",
25388
+ "required": false,
25389
+ "description": "这一页最多返回多少个引用,1 到 500,默认 100。"
25390
+ }
25391
+ ]
25392
+ },
25393
+ {
25394
+ "resource": "registry.packages.git",
25395
+ "method": "retrieveResolve",
25396
+ "summary": "Resolve a ref",
25397
+ "description": "把一个引用换成它指向的提交 id:ref 可以是分支名、标签名、refs/… 全名、HEAD 或完整对象 id(40 或 64 位十六进制,缩写不解析)。名字既是标签又是分支时取标签。完整对象 id 只在仓库里真有这个提交时才返回。仓库没有这个引用或提交返回 404(GIT_OBJECT_NOT_FOUND),不会返回空值。要比较两个引用用 git/compare。",
25398
+ "http": "GET",
25399
+ "path": "/registry/v1/packages/{package_id}/git/resolve",
25400
+ "streaming": "no",
25401
+ "pagination": false,
25402
+ "pathParams": [
25403
+ {
25404
+ "name": "package_id",
25405
+ "sdkName": "package_id",
25406
+ "description": "包的标识,来自 repositories.packages.list 或 repositories.packages.create 返回的 id;不要传包名。"
25407
+ }
25408
+ ],
25409
+ "query": [
25410
+ {
25411
+ "name": "ref",
25412
+ "type": "string",
25413
+ "required": true,
25414
+ "description": "要换成提交 id 的引用:分支名、标签名、refs/… 全名、HEAD 或完整对象 id。"
25415
+ }
25416
+ ]
25417
+ },
24725
25418
  {
24726
25419
  "resource": "registry.packages.git.trees",
24727
25420
  "method": "retrieve",
@@ -24745,6 +25438,29 @@ export const operations = [
24745
25438
  ],
24746
25439
  "query": []
24747
25440
  },
25441
+ {
25442
+ "resource": "registry.packages.git.trees",
25443
+ "method": "retrieveRecursive",
25444
+ "summary": "List a tree recursively",
25445
+ "description": "读一个提交(或树对象)下的全部条目,递归,每个条目用相对根的完整路径命名,目录和子模块也是条目(子模块不展开)。适合要拿到整个仓库文件清单的场景(例如 DevOps 的构建判断);只想看一个目录用 git/trees/{sha}。相同的子树只读一次。条目上限 20000、树读取上限 1000 次,撞到上限时 truncated 为 true、entries 只是前一部分,不要当作全部。sha 通常来自 git/resolve。仓库里没有这个对象返回 404。只读。",
25446
+ "http": "GET",
25447
+ "path": "/registry/v1/packages/{package_id}/git/trees/{sha}/recursive",
25448
+ "streaming": "no",
25449
+ "pagination": false,
25450
+ "pathParams": [
25451
+ {
25452
+ "name": "package_id",
25453
+ "sdkName": "package_id",
25454
+ "description": "包的标识,来自 repositories.packages.list 或 repositories.packages.create 返回的 id;不要传包名。"
25455
+ },
25456
+ {
25457
+ "name": "sha",
25458
+ "sdkName": "sha",
25459
+ "description": "完整的 git 对象 id(40 或 64 位十六进制),不接受缩写。"
25460
+ }
25461
+ ],
25462
+ "query": []
25463
+ },
24748
25464
  {
24749
25465
  "resource": "registry.packages.installations",
24750
25466
  "method": "list",
@@ -25024,7 +25740,7 @@ export const operations = [
25024
25740
  "resource": "registry.repositories",
25025
25741
  "method": "create",
25026
25742
  "summary": "Create repository",
25027
- "description": "新建一个库来分类存放包。name 是库的唯一标识,小写字母、数字和连字符,最多 63 个字符,且不能和已有的库重名;display_name 和 description 是给人看的。每个组织本来就有一个默认库,需要新分类时才建;一个库非空时不能删除,所以不要用库来临时隔离一次上传。",
25743
+ "description": "新建一个库来分类存放包。name 是库的唯一标识,小写字母、数字和连字符,最多 63 个字符,且不能和已有的库重名;display_name 和 description 是给人看的。每个组织本来就有一个默认库,需要新分类时才建;一个库非空时不能删除,所以不要用库来临时隔离一次上传。format 默认 oci,库里放技能和插件;要放 git 仓库就传 format=git,建库后 format 不能改。git 库需要这个组织已开放 git 功能,否则返回 409。",
25028
25744
  "http": "POST",
25029
25745
  "path": "/registry/v1/repositories",
25030
25746
  "streaming": "no",
@@ -25051,6 +25767,16 @@ export const operations = [
25051
25767
  "type": "string",
25052
25768
  "required": false,
25053
25769
  "description": "库的说明;省略时不写。"
25770
+ },
25771
+ {
25772
+ "name": "format",
25773
+ "type": "string",
25774
+ "enum": [
25775
+ "oci",
25776
+ "git"
25777
+ ],
25778
+ "required": false,
25779
+ "description": "库里放什么,省略为 oci;git 库放 git 仓库,要求组织已开放 git 功能(否则 409),建库后不能改。"
25054
25780
  }
25055
25781
  ]
25056
25782
  }
@@ -25186,8 +25912,8 @@ export const operations = [
25186
25912
  {
25187
25913
  "resource": "registry.repositories.packages",
25188
25914
  "method": "create",
25189
- "summary": "Publish a package",
25190
- "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 发布。",
25915
+ "summary": "Create a package",
25916
+ "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 发布。",
25191
25917
  "http": "POST",
25192
25918
  "path": "/registry/v1/repositories/{repository_id}/packages",
25193
25919
  "streaming": "no",
@@ -25205,41 +25931,196 @@ export const operations = [
25205
25931
  "required": true,
25206
25932
  "fields": [
25207
25933
  {
25208
- "name": "version",
25934
+ "name": "name",
25209
25935
  "type": "string",
25210
25936
  "required": true,
25211
- "description": "要发布的版本号,完整 semver,例如 1.2.0;每个包内必须严格递增,撤回的版本也占号。"
25937
+ "description": "包名,也是仓库名,小写字母、数字和 . _ -,在这个库里不能重名;出现在 clone_url 里,建后不能改。"
25212
25938
  },
25213
25939
  {
25214
- "name": "archive",
25940
+ "name": "format",
25941
+ "type": "string",
25942
+ "enum": [
25943
+ "git"
25944
+ ],
25945
+ "required": true,
25946
+ "description": "建的包是什么;JSON 请求只能建 git 包,所以固定为 git。"
25947
+ },
25948
+ {
25949
+ "name": "default_branch",
25215
25950
  "type": "string",
25216
25951
  "required": false,
25217
- "description": "一个 zip 文件,内含包的内容;与 files 二选一。单个顶层目录会被剥掉。"
25952
+ "description": "默认分支名,省略为 main;默认受保护,普通凭据不能直接推,请推到别的分支。"
25218
25953
  },
25219
25954
  {
25220
- "name": "files",
25221
- "type": "array",
25222
- "itemType": "string",
25955
+ "name": "description",
25956
+ "type": "string",
25223
25957
  "required": false,
25224
- "description": "直接上传的一组文件,每个 part 的 filename 是相对路径;与 archive 二选一。"
25958
+ "description": "仓库的说明;省略时为空。"
25225
25959
  },
25226
25960
  {
25227
- "name": "title",
25961
+ "name": "import",
25962
+ "type": "object",
25963
+ "required": false,
25964
+ "description": "从一个现有的公开仓库导入内容,建出来的仓库不是空的;省略则建空仓库。"
25965
+ }
25966
+ ]
25967
+ }
25968
+ },
25969
+ {
25970
+ "resource": "sandbox.byod.devices",
25971
+ "method": "list",
25972
+ "summary": "List your organization's own devices",
25973
+ "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:[]}]}.",
25974
+ "http": "GET",
25975
+ "path": "/sandbox/v1/byod/devices",
25976
+ "streaming": "no",
25977
+ "pagination": false,
25978
+ "pathParams": [],
25979
+ "query": []
25980
+ },
25981
+ {
25982
+ "resource": "sandbox.byod.devices",
25983
+ "method": "retrieve",
25984
+ "summary": "Read one of your organization's devices",
25985
+ "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.",
25986
+ "http": "GET",
25987
+ "path": "/sandbox/v1/byod/devices/{deviceID}",
25988
+ "streaming": "no",
25989
+ "pagination": false,
25990
+ "pathParams": [
25991
+ {
25992
+ "name": "deviceID",
25993
+ "sdkName": "deviceID",
25994
+ "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."
25995
+ }
25996
+ ],
25997
+ "query": []
25998
+ },
25999
+ {
26000
+ "resource": "sandbox.byod.devices",
26001
+ "method": "update",
26002
+ "summary": "Rename one of your organization's devices",
26003
+ "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.",
26004
+ "http": "PATCH",
26005
+ "path": "/sandbox/v1/byod/devices/{deviceID}",
26006
+ "streaming": "no",
26007
+ "pagination": false,
26008
+ "pathParams": [
26009
+ {
26010
+ "name": "deviceID",
26011
+ "sdkName": "deviceID",
26012
+ "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."
26013
+ }
26014
+ ],
26015
+ "query": [],
26016
+ "body": {
26017
+ "required": true,
26018
+ "fields": [
26019
+ {
26020
+ "name": "name",
26021
+ "type": "string",
26022
+ "required": true,
26023
+ "description": "New display name for the device, 1 to 64 characters after trimming leading and trailing whitespace; it does not have to be unique."
26024
+ }
26025
+ ]
26026
+ }
26027
+ },
26028
+ {
26029
+ "resource": "sandbox.byod.devices.disconnect",
26030
+ "method": "create",
26031
+ "summary": "Disconnect a device and revoke its credential",
26032
+ "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}.",
26033
+ "http": "POST",
26034
+ "path": "/sandbox/v1/byod/devices/{deviceID}/disconnect",
26035
+ "streaming": "no",
26036
+ "pagination": false,
26037
+ "pathParams": [
26038
+ {
26039
+ "name": "deviceID",
26040
+ "sdkName": "deviceID",
26041
+ "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."
26042
+ }
26043
+ ],
26044
+ "query": []
26045
+ },
26046
+ {
26047
+ "resource": "sandbox.byod.pairings",
26048
+ "method": "create",
26049
+ "summary": "Start adding a phone of your own",
26050
+ "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'}.",
26051
+ "http": "POST",
26052
+ "path": "/sandbox/v1/byod/pairings",
26053
+ "streaming": "no",
26054
+ "pagination": false,
26055
+ "pathParams": [],
26056
+ "query": []
26057
+ },
26058
+ {
26059
+ "resource": "sandbox.byod.pairings",
26060
+ "method": "retrieve",
26061
+ "summary": "Read a pairing for the phone's Allow screen",
26062
+ "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'}.",
26063
+ "http": "GET",
26064
+ "path": "/sandbox/v1/byod/pairings/{code}",
26065
+ "streaming": "no",
26066
+ "pagination": false,
26067
+ "pathParams": [
26068
+ {
26069
+ "name": "code",
26070
+ "sdkName": "code",
26071
+ "description": "The 8-character pairing code returned by createByodPairing. An unknown, spent or expired code answers 404."
26072
+ }
26073
+ ],
26074
+ "query": []
26075
+ },
26076
+ {
26077
+ "resource": "sandbox.byod.pairings.claim",
26078
+ "method": "create",
26079
+ "summary": "Claim a pairing and register the phone",
26080
+ "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/'}.",
26081
+ "http": "POST",
26082
+ "path": "/sandbox/v1/byod/pairings/{code}/claim",
26083
+ "streaming": "no",
26084
+ "pagination": false,
26085
+ "pathParams": [
26086
+ {
26087
+ "name": "code",
26088
+ "sdkName": "code",
26089
+ "description": "The 8-character pairing code returned by createByodPairing. An unknown, spent or expired code answers 404."
26090
+ }
26091
+ ],
26092
+ "query": [],
26093
+ "body": {
26094
+ "required": true,
26095
+ "fields": [
26096
+ {
26097
+ "name": "platform",
26098
+ "type": "string",
26099
+ "enum": [
26100
+ "android",
26101
+ "macos",
26102
+ "linux"
26103
+ ],
26104
+ "required": true,
26105
+ "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."
26106
+ },
26107
+ {
26108
+ "name": "name",
25228
26109
  "type": "string",
25229
26110
  "required": false,
25230
- "description": "给人看的标题;省略时从包内容里取。"
26111
+ "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."
25231
26112
  },
25232
26113
  {
25233
- "name": "description",
26114
+ "name": "model",
25234
26115
  "type": "string",
25235
26116
  "required": false,
25236
- "description": "包说明;省略时从包内容里取。"
26117
+ "description": "The device model the app reports, at most 128 characters; it is display only and can be omitted."
25237
26118
  },
25238
26119
  {
25239
- "name": "tags",
26120
+ "name": "os_version",
25240
26121
  "type": "string",
25241
26122
  "required": false,
25242
- "description": "逗号分隔的标签,例如 review,quality;省略时没有标签。"
26123
+ "description": "The operating-system version the app reports, at most 64 characters; it is display only and can be omitted."
25243
26124
  }
25244
26125
  ]
25245
26126
  }
@@ -25362,7 +26243,7 @@ export const operations = [
25362
26243
  "resource": "sandbox.sandboxes",
25363
26244
  "method": "create",
25364
26245
  "summary": "Create sandbox (v2)",
25365
- "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.",
26246
+ "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.",
25366
26247
  "http": "POST",
25367
26248
  "path": "/sandbox/v1/sandboxes",
25368
26249
  "streaming": "no",
@@ -25444,6 +26325,98 @@ export const operations = [
25444
26325
  "itemType": "object",
25445
26326
  "required": false,
25446
26327
  "description": "Volumes to mount into the sandbox, each with the volume name and the path inside the sandbox."
26328
+ },
26329
+ {
26330
+ "name": "ephemeral",
26331
+ "type": "boolean",
26332
+ "required": false,
26333
+ "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."
26334
+ },
26335
+ {
26336
+ "name": "size",
26337
+ "type": "string",
26338
+ "required": false,
26339
+ "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."
26340
+ },
26341
+ {
26342
+ "name": "name",
26343
+ "type": "string",
26344
+ "required": false,
26345
+ "description": "Own face: a display name for the sandbox, 1 to 64 characters. Omitted, one is generated from the template."
26346
+ },
26347
+ {
26348
+ "name": "waitForReady",
26349
+ "type": "boolean",
26350
+ "required": false,
26351
+ "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."
26352
+ },
26353
+ {
26354
+ "name": "onExpire",
26355
+ "type": "string",
26356
+ "enum": [
26357
+ "kill",
26358
+ "pause"
26359
+ ],
26360
+ "required": false,
26361
+ "description": "Own face: what happens at the timeout. pause needs ephemeral: false; must agree with autoPause when both are sent."
26362
+ },
26363
+ {
26364
+ "name": "idleTimeout",
26365
+ "type": "integer",
26366
+ "required": false,
26367
+ "description": "Own face, persistent sandboxes only: pause after this many milliseconds without activity; null turns the idle pause off."
26368
+ },
26369
+ {
26370
+ "name": "idleActivity",
26371
+ "type": "string",
26372
+ "enum": [
26373
+ "traffic",
26374
+ "caller"
26375
+ ],
26376
+ "required": false,
26377
+ "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."
26378
+ },
26379
+ {
26380
+ "name": "sku",
26381
+ "type": "string",
26382
+ "required": false,
26383
+ "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."
26384
+ },
26385
+ {
26386
+ "name": "kind",
26387
+ "type": "string",
26388
+ "enum": [
26389
+ "run",
26390
+ "job",
26391
+ "batch",
26392
+ "computer",
26393
+ "compat"
26394
+ ],
26395
+ "required": false,
26396
+ "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."
26397
+ },
26398
+ {
26399
+ "name": "interruptible",
26400
+ "type": "boolean",
26401
+ "required": false,
26402
+ "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."
26403
+ },
26404
+ {
26405
+ "name": "onLoss",
26406
+ "type": "string",
26407
+ "enum": [
26408
+ "fail",
26409
+ "rebuild"
26410
+ ],
26411
+ "required": false,
26412
+ "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."
26413
+ },
26414
+ {
26415
+ "name": "outputs",
26416
+ "type": "array",
26417
+ "itemType": "object",
26418
+ "required": false,
26419
+ "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."
25447
26420
  }
25448
26421
  ]
25449
26422
  }
@@ -25513,6 +26486,28 @@ export const operations = [
25513
26486
  ]
25514
26487
  }
25515
26488
  },
26489
+ {
26490
+ "resource": "sandbox.sandboxes",
26491
+ "method": "act",
26492
+ "summary": "Act on a phone sandbox's screen",
26493
+ "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.",
26494
+ "http": "POST",
26495
+ "path": "/sandbox/v1/sandboxes/{sandboxID}/act",
26496
+ "streaming": "no",
26497
+ "pagination": false,
26498
+ "pathParams": [
26499
+ {
26500
+ "name": "sandboxID",
26501
+ "sdkName": "sandboxID",
26502
+ "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."
26503
+ }
26504
+ ],
26505
+ "query": [],
26506
+ "body": {
26507
+ "required": true,
26508
+ "fields": []
26509
+ }
26510
+ },
25516
26511
  {
25517
26512
  "resource": "sandbox.sandboxes",
25518
26513
  "method": "connect",
@@ -26025,7 +27020,7 @@ export const operations = [
26025
27020
  "resource": "sandbox.sandboxes.commands",
26026
27021
  "method": "run",
26027
27022
  "summary": "Run a command in the sandbox",
26028
- "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\"}.",
27023
+ "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\"}.",
26029
27024
  "http": "POST",
26030
27025
  "path": "/sandbox/v1/sandboxes/{sandbox_id}/commands",
26031
27026
  "streaming": "no",
@@ -32053,7 +33048,7 @@ export const operations = [
32053
33048
  "resource": "vault.authorizations",
32054
33049
  "method": "create",
32055
33050
  "summary": "Create authorization",
32056
- "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.",
33051
+ "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.",
32057
33052
  "http": "POST",
32058
33053
  "path": "/vault/v1/authorizations",
32059
33054
  "streaming": "no",
@@ -32465,7 +33460,7 @@ export const operations = [
32465
33460
  "resource": "vault.vaults.secrets",
32466
33461
  "method": "create",
32467
33462
  "summary": "Create secret",
32468
- "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.",
33463
+ "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.",
32469
33464
  "http": "POST",
32470
33465
  "path": "/vault/v1/vaults/{vault_id}/secrets",
32471
33466
  "streaming": "no",
@@ -32498,7 +33493,7 @@ export const operations = [
32498
33493
  "type": "array",
32499
33494
  "itemType": "string",
32500
33495
  "required": false,
32501
- "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."
33496
+ "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."
32502
33497
  },
32503
33498
  {
32504
33499
  "name": "description",
@@ -32618,7 +33613,7 @@ export const operations = [
32618
33613
  "type": "array",
32619
33614
  "itemType": "string",
32620
33615
  "required": false,
32621
- "description": "Allowed destinations for the secret. Omit it to keep the current list; an empty list removes the declaration, leaving the credential for name-based resolution only — host-based redemption never matches. 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."
33616
+ "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."
32622
33617
  },
32623
33618
  {
32624
33619
  "name": "description",
@@ -32722,7 +33717,7 @@ export const operations = [
32722
33717
  "resource": "vault.vaults.secrets",
32723
33718
  "method": "import",
32724
33719
  "summary": "Import secrets",
32725
- "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.",
33720
+ "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.",
32726
33721
  "http": "POST",
32727
33722
  "path": "/vault/v1/vaults/{vault_id}/secrets:import",
32728
33723
  "streaming": "no",