@deepraxis/sdk 0.1.1-dev.1048c59 → 0.1.1-dev.10da273

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",
@@ -1017,7 +1017,7 @@ export const operations = [
1017
1017
  "resource": "agent.agents.phone",
1018
1018
  "method": "retrieve",
1019
1019
  "summary": "Retrieve agent phone",
1020
- "description": "Read the agent's cloud 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), and 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. sku and name come from the configuration when one exists. When the phone is reachable, sandbox_id is the public sandbox id of its running instance: take the phone over with it through POST /sandbox/v1/sandboxes/{id}/act, or open the sandbox page's screen tab in the Console; lease_ends_at is when that instance's lease runs out and the sandbox kills it. archived_at and archive_error describe the last app-state archive, which a fresh instance restores on the next use. 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.",
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
1021
  "http": "GET",
1022
1022
  "path": "/agent/v1/agents/{agent_id}/phone",
1023
1023
  "streaming": "no",
@@ -1035,7 +1035,7 @@ export const operations = [
1035
1035
  "resource": "agent.agents.phone",
1036
1036
  "method": "release",
1037
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. 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.",
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
1039
  "http": "POST",
1040
1040
  "path": "/agent/v1/agents/{agent_id}/phone/release",
1041
1041
  "streaming": "no",
@@ -2865,7 +2865,7 @@ export const operations = [
2865
2865
  "resource": "agent.sessions.requests",
2866
2866
  "method": "list",
2867
2867
  "summary": "List Session Requests (Extension)",
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 (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.",
2869
2869
  "http": "GET",
2870
2870
  "path": "/agent/v1/sessions/{session_id}/requests",
2871
2871
  "streaming": "no",
@@ -3495,7 +3495,7 @@ export const operations = [
3495
3495
  "resource": "agent.toolsets",
3496
3496
  "method": "list",
3497
3497
  "summary": "List Toolsets",
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, 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.",
3499
3499
  "http": "GET",
3500
3500
  "path": "/agent/v1/toolsets",
3501
3501
  "streaming": "no",
@@ -13381,7 +13381,7 @@ export const operations = [
13381
13381
  "resource": "devops.projects",
13382
13382
  "method": "list",
13383
13383
  "summary": "List projects",
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.",
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.",
13385
13385
  "http": "GET",
13386
13386
  "path": "/devops/v1/projects",
13387
13387
  "streaming": "no",
@@ -14488,7 +14488,7 @@ export const operations = [
14488
14488
  "resource": "devops.projects",
14489
14489
  "method": "retrieveTestPlan",
14490
14490
  "summary": "Retrieve the merge gate's test plan at a commit",
14491
- "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.",
14491
+ "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.",
14492
14492
  "http": "GET",
14493
14493
  "path": "/devops/v1/projects/{project}/test-plan",
14494
14494
  "streaming": "no",
@@ -14646,7 +14646,7 @@ export const operations = [
14646
14646
  "resource": "devops.projects.testReports",
14647
14647
  "method": "create",
14648
14648
  "summary": "Upload an external test report",
14649
- "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.",
14649
+ "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.",
14650
14650
  "http": "POST",
14651
14651
  "path": "/devops/v1/projects/{project}/test-reports",
14652
14652
  "streaming": "no",
@@ -14676,7 +14676,7 @@ export const operations = [
14676
14676
  "feedback"
14677
14677
  ],
14678
14678
  "required": false,
14679
- "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."
14679
+ "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."
14680
14680
  },
14681
14681
  {
14682
14682
  "name": "format",
@@ -15331,7 +15331,7 @@ export const operations = [
15331
15331
  "resource": "devops.pullRequests",
15332
15332
  "method": "retrieve",
15333
15333
  "summary": "Retrieve a pull request",
15334
- "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.",
15334
+ "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.",
15335
15335
  "http": "GET",
15336
15336
  "path": "/devops/v1/pull-requests/{id}",
15337
15337
  "streaming": "no",
@@ -15482,7 +15482,7 @@ export const operations = [
15482
15482
  "resource": "devops.pullRequests",
15483
15483
  "method": "rerunGate",
15484
15484
  "summary": "Decide a pull request's merge gate again",
15485
- "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.",
15485
+ "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.",
15486
15486
  "http": "POST",
15487
15487
  "path": "/devops/v1/pull-requests/{id}:rerunGate",
15488
15488
  "streaming": "no",
@@ -16136,7 +16136,7 @@ export const operations = [
16136
16136
  "resource": "file.files",
16137
16137
  "method": "list",
16138
16138
  "summary": "List files",
16139
- "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.",
16139
+ "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.",
16140
16140
  "http": "GET",
16141
16141
  "path": "/file/v1/files",
16142
16142
  "streaming": "no",
@@ -16177,6 +16177,13 @@ export const operations = [
16177
16177
  "required": false,
16178
16178
  "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."
16179
16179
  },
16180
+ {
16181
+ "name": "ids",
16182
+ "type": "array",
16183
+ "itemType": "string",
16184
+ "required": false,
16185
+ "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."
16186
+ },
16180
16187
  {
16181
16188
  "name": "before",
16182
16189
  "type": "string",
@@ -23087,6 +23094,41 @@ export const operations = [
23087
23094
  ],
23088
23095
  "query": []
23089
23096
  },
23097
+ {
23098
+ "resource": "organization.effectiveSpec",
23099
+ "method": "retrieve",
23100
+ "summary": "Read the effective spec",
23101
+ "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.",
23102
+ "http": "GET",
23103
+ "path": "/organization/v1/effective_spec",
23104
+ "streaming": "no",
23105
+ "pagination": false,
23106
+ "pathParams": [],
23107
+ "query": [
23108
+ {
23109
+ "name": "actor",
23110
+ "type": "string",
23111
+ "required": false,
23112
+ "description": "Actor address whose every current seat is merged (agent:agent_... or human:usr_...); give this or position_id, not both."
23113
+ },
23114
+ {
23115
+ "name": "position_id",
23116
+ "type": "string",
23117
+ "required": false,
23118
+ "description": "One seat to merge, held or vacant (pos_...); give this or actor, not both."
23119
+ },
23120
+ {
23121
+ "name": "holder_kind",
23122
+ "type": "string",
23123
+ "enum": [
23124
+ "agent",
23125
+ "human"
23126
+ ],
23127
+ "required": false,
23128
+ "description": "Which holder kind to merge for; omit to derive it from the seat's holder."
23129
+ }
23130
+ ]
23131
+ },
23090
23132
  {
23091
23133
  "resource": "organization.events",
23092
23134
  "method": "list",
@@ -24582,6 +24624,294 @@ export const operations = [
24582
24624
  ],
24583
24625
  "query": []
24584
24626
  },
24627
+ {
24628
+ "resource": "organization.reconcile",
24629
+ "method": "pause",
24630
+ "summary": "Pause reconciliation",
24631
+ "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\"}.",
24632
+ "http": "POST",
24633
+ "path": "/organization/v1/reconcile/pause",
24634
+ "streaming": "no",
24635
+ "pagination": false,
24636
+ "pathParams": [],
24637
+ "query": [],
24638
+ "body": {
24639
+ "required": true,
24640
+ "fields": [
24641
+ {
24642
+ "name": "actor",
24643
+ "type": "string",
24644
+ "required": true,
24645
+ "description": "Actor address to reconcile (agent:agent_... or human:usr_...); its every current seat is merged."
24646
+ }
24647
+ ]
24648
+ }
24649
+ },
24650
+ {
24651
+ "resource": "organization.reconcile",
24652
+ "method": "retrievePlan",
24653
+ "summary": "Plan reconciliation",
24654
+ "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.",
24655
+ "http": "GET",
24656
+ "path": "/organization/v1/reconcile/plan",
24657
+ "streaming": "no",
24658
+ "pagination": false,
24659
+ "pathParams": [],
24660
+ "query": [
24661
+ {
24662
+ "name": "actor",
24663
+ "type": "string",
24664
+ "required": true,
24665
+ "description": "The holder whose seats are reconciled (agent:agent_... or human:usr_...); its every current seat is merged."
24666
+ }
24667
+ ]
24668
+ },
24669
+ {
24670
+ "resource": "organization.reconcile",
24671
+ "method": "resume",
24672
+ "summary": "Resume reconciliation",
24673
+ "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\"}.",
24674
+ "http": "POST",
24675
+ "path": "/organization/v1/reconcile/resume",
24676
+ "streaming": "no",
24677
+ "pagination": false,
24678
+ "pathParams": [],
24679
+ "query": [],
24680
+ "body": {
24681
+ "required": true,
24682
+ "fields": [
24683
+ {
24684
+ "name": "actor",
24685
+ "type": "string",
24686
+ "required": true,
24687
+ "description": "Actor address to reconcile (agent:agent_... or human:usr_...); its every current seat is merged."
24688
+ }
24689
+ ]
24690
+ }
24691
+ },
24692
+ {
24693
+ "resource": "organization.reconcile.run",
24694
+ "method": "create",
24695
+ "summary": "Run reconciliation now",
24696
+ "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\"}.",
24697
+ "http": "POST",
24698
+ "path": "/organization/v1/reconcile/run",
24699
+ "streaming": "no",
24700
+ "pagination": false,
24701
+ "pathParams": [],
24702
+ "query": [],
24703
+ "body": {
24704
+ "required": true,
24705
+ "fields": [
24706
+ {
24707
+ "name": "actor",
24708
+ "type": "string",
24709
+ "required": true,
24710
+ "description": "Actor address to reconcile (agent:agent_... or human:usr_...); its every current seat is merged."
24711
+ }
24712
+ ]
24713
+ }
24714
+ },
24715
+ {
24716
+ "resource": "organization.reconcile.status",
24717
+ "method": "list",
24718
+ "summary": "Read reconcile status",
24719
+ "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.",
24720
+ "http": "GET",
24721
+ "path": "/organization/v1/reconcile/status",
24722
+ "streaming": "no",
24723
+ "pagination": false,
24724
+ "pathParams": [],
24725
+ "query": [
24726
+ {
24727
+ "name": "actor",
24728
+ "type": "string",
24729
+ "required": true,
24730
+ "description": "The holder whose reconcile status to read (agent:agent_... or human:usr_...)."
24731
+ }
24732
+ ]
24733
+ },
24734
+ {
24735
+ "resource": "organization.specs",
24736
+ "method": "list",
24737
+ "summary": "List specs",
24738
+ "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.",
24739
+ "http": "GET",
24740
+ "path": "/organization/v1/specs",
24741
+ "streaming": "no",
24742
+ "pagination": false,
24743
+ "pathParams": [],
24744
+ "query": [
24745
+ {
24746
+ "name": "limit",
24747
+ "type": "integer",
24748
+ "required": false,
24749
+ "description": "Maximum items per page, from 1 to 100; defaults to 20."
24750
+ },
24751
+ {
24752
+ "name": "page",
24753
+ "type": "string",
24754
+ "required": false,
24755
+ "description": "Opaque next_page cursor returned by the previous response; omit for the first page."
24756
+ },
24757
+ {
24758
+ "name": "kind",
24759
+ "type": "string",
24760
+ "enum": [
24761
+ "organization",
24762
+ "department",
24763
+ "level",
24764
+ "job",
24765
+ "position",
24766
+ "assignment"
24767
+ ],
24768
+ "required": false,
24769
+ "description": "Only specs of this subject kind; omit to list every kind together."
24770
+ }
24771
+ ]
24772
+ },
24773
+ {
24774
+ "resource": "organization.specs",
24775
+ "method": "retrieve",
24776
+ "summary": "Get a spec",
24777
+ "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.",
24778
+ "http": "GET",
24779
+ "path": "/organization/v1/specs/{kind}/{id}",
24780
+ "streaming": "no",
24781
+ "pagination": false,
24782
+ "pathParams": [
24783
+ {
24784
+ "name": "kind",
24785
+ "sdkName": "kind",
24786
+ "description": "Kind of the subject whose spec to read."
24787
+ },
24788
+ {
24789
+ "name": "id",
24790
+ "sdkName": "id",
24791
+ "description": "The subject's own id (org_..., dept_..., lvl_..., jpr_..., pos_... or asg_...)."
24792
+ }
24793
+ ],
24794
+ "query": [
24795
+ {
24796
+ "name": "revision",
24797
+ "type": "integer",
24798
+ "required": false,
24799
+ "description": "Read this historical revision instead of the live one; 0 answers the empty spec of a subject never written."
24800
+ }
24801
+ ]
24802
+ },
24803
+ {
24804
+ "resource": "organization.specs",
24805
+ "method": "update",
24806
+ "summary": "Revise a spec",
24807
+ "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.\"}}.",
24808
+ "http": "PUT",
24809
+ "path": "/organization/v1/specs/{kind}/{id}",
24810
+ "streaming": "no",
24811
+ "pagination": false,
24812
+ "pathParams": [
24813
+ {
24814
+ "name": "kind",
24815
+ "sdkName": "kind",
24816
+ "description": "Kind of the subject whose spec to revise."
24817
+ },
24818
+ {
24819
+ "name": "id",
24820
+ "sdkName": "id",
24821
+ "description": "The subject's own id (org_..., dept_..., lvl_..., jpr_..., pos_... or asg_...)."
24822
+ }
24823
+ ],
24824
+ "query": [],
24825
+ "body": {
24826
+ "required": true,
24827
+ "fields": [
24828
+ {
24829
+ "name": "expected_revision",
24830
+ "type": "integer",
24831
+ "required": true,
24832
+ "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."
24833
+ },
24834
+ {
24835
+ "name": "spec",
24836
+ "type": "object",
24837
+ "required": true,
24838
+ "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."
24839
+ }
24840
+ ]
24841
+ }
24842
+ },
24843
+ {
24844
+ "resource": "organization.specs",
24845
+ "method": "retrieveDiff",
24846
+ "summary": "Diff two spec revisions",
24847
+ "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.",
24848
+ "http": "GET",
24849
+ "path": "/organization/v1/specs/{kind}/{id}/diff",
24850
+ "streaming": "no",
24851
+ "pagination": false,
24852
+ "pathParams": [
24853
+ {
24854
+ "name": "kind",
24855
+ "sdkName": "kind",
24856
+ "description": "Kind of the subject whose revisions to compare."
24857
+ },
24858
+ {
24859
+ "name": "id",
24860
+ "sdkName": "id",
24861
+ "description": "The subject's own id (org_..., dept_..., lvl_..., jpr_..., pos_... or asg_...)."
24862
+ }
24863
+ ],
24864
+ "query": [
24865
+ {
24866
+ "name": "from",
24867
+ "type": "integer",
24868
+ "required": true,
24869
+ "description": "The earlier revision to compare from; 0 is the empty spec before the first write."
24870
+ },
24871
+ {
24872
+ "name": "to",
24873
+ "type": "integer",
24874
+ "required": true,
24875
+ "description": "The later revision to compare to."
24876
+ }
24877
+ ]
24878
+ },
24879
+ {
24880
+ "resource": "organization.specs.revisions",
24881
+ "method": "list",
24882
+ "summary": "List spec revisions",
24883
+ "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.",
24884
+ "http": "GET",
24885
+ "path": "/organization/v1/specs/{kind}/{id}/revisions",
24886
+ "streaming": "no",
24887
+ "pagination": false,
24888
+ "pathParams": [
24889
+ {
24890
+ "name": "kind",
24891
+ "sdkName": "kind",
24892
+ "description": "Kind of the subject whose revision history to list."
24893
+ },
24894
+ {
24895
+ "name": "id",
24896
+ "sdkName": "id",
24897
+ "description": "The subject's own id (org_..., dept_..., lvl_..., jpr_..., pos_... or asg_...)."
24898
+ }
24899
+ ],
24900
+ "query": [
24901
+ {
24902
+ "name": "limit",
24903
+ "type": "integer",
24904
+ "required": false,
24905
+ "description": "Maximum revisions per page, from 1 to 100; defaults to 20."
24906
+ },
24907
+ {
24908
+ "name": "page",
24909
+ "type": "string",
24910
+ "required": false,
24911
+ "description": "Opaque next_page cursor returned by the previous response; omit for the first page."
24912
+ }
24913
+ ]
24914
+ },
24585
24915
  {
24586
24916
  "resource": "organization.usage",
24587
24917
  "method": "list",
@@ -25319,6 +25649,165 @@ export const operations = [
25319
25649
  ]
25320
25650
  }
25321
25651
  },
25652
+ {
25653
+ "resource": "sandbox.byod.devices",
25654
+ "method": "list",
25655
+ "summary": "List your organization's own devices",
25656
+ "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:[]}]}.",
25657
+ "http": "GET",
25658
+ "path": "/sandbox/v1/byod/devices",
25659
+ "streaming": "no",
25660
+ "pagination": false,
25661
+ "pathParams": [],
25662
+ "query": []
25663
+ },
25664
+ {
25665
+ "resource": "sandbox.byod.devices",
25666
+ "method": "retrieve",
25667
+ "summary": "Read one of your organization's devices",
25668
+ "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.",
25669
+ "http": "GET",
25670
+ "path": "/sandbox/v1/byod/devices/{deviceID}",
25671
+ "streaming": "no",
25672
+ "pagination": false,
25673
+ "pathParams": [
25674
+ {
25675
+ "name": "deviceID",
25676
+ "sdkName": "deviceID",
25677
+ "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."
25678
+ }
25679
+ ],
25680
+ "query": []
25681
+ },
25682
+ {
25683
+ "resource": "sandbox.byod.devices",
25684
+ "method": "update",
25685
+ "summary": "Rename one of your organization's devices",
25686
+ "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.",
25687
+ "http": "PATCH",
25688
+ "path": "/sandbox/v1/byod/devices/{deviceID}",
25689
+ "streaming": "no",
25690
+ "pagination": false,
25691
+ "pathParams": [
25692
+ {
25693
+ "name": "deviceID",
25694
+ "sdkName": "deviceID",
25695
+ "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."
25696
+ }
25697
+ ],
25698
+ "query": [],
25699
+ "body": {
25700
+ "required": true,
25701
+ "fields": [
25702
+ {
25703
+ "name": "name",
25704
+ "type": "string",
25705
+ "required": true,
25706
+ "description": "New display name for the device, 1 to 64 characters after trimming leading and trailing whitespace; it does not have to be unique."
25707
+ }
25708
+ ]
25709
+ }
25710
+ },
25711
+ {
25712
+ "resource": "sandbox.byod.devices.disconnect",
25713
+ "method": "create",
25714
+ "summary": "Disconnect a device and revoke its credential",
25715
+ "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}.",
25716
+ "http": "POST",
25717
+ "path": "/sandbox/v1/byod/devices/{deviceID}/disconnect",
25718
+ "streaming": "no",
25719
+ "pagination": false,
25720
+ "pathParams": [
25721
+ {
25722
+ "name": "deviceID",
25723
+ "sdkName": "deviceID",
25724
+ "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."
25725
+ }
25726
+ ],
25727
+ "query": []
25728
+ },
25729
+ {
25730
+ "resource": "sandbox.byod.pairings",
25731
+ "method": "create",
25732
+ "summary": "Start adding a phone of your own",
25733
+ "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'}.",
25734
+ "http": "POST",
25735
+ "path": "/sandbox/v1/byod/pairings",
25736
+ "streaming": "no",
25737
+ "pagination": false,
25738
+ "pathParams": [],
25739
+ "query": []
25740
+ },
25741
+ {
25742
+ "resource": "sandbox.byod.pairings",
25743
+ "method": "retrieve",
25744
+ "summary": "Read a pairing for the phone's Allow screen",
25745
+ "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'}.",
25746
+ "http": "GET",
25747
+ "path": "/sandbox/v1/byod/pairings/{code}",
25748
+ "streaming": "no",
25749
+ "pagination": false,
25750
+ "pathParams": [
25751
+ {
25752
+ "name": "code",
25753
+ "sdkName": "code",
25754
+ "description": "The 8-character pairing code returned by createByodPairing. An unknown, spent or expired code answers 404."
25755
+ }
25756
+ ],
25757
+ "query": []
25758
+ },
25759
+ {
25760
+ "resource": "sandbox.byod.pairings.claim",
25761
+ "method": "create",
25762
+ "summary": "Claim a pairing and register the phone",
25763
+ "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/'}.",
25764
+ "http": "POST",
25765
+ "path": "/sandbox/v1/byod/pairings/{code}/claim",
25766
+ "streaming": "no",
25767
+ "pagination": false,
25768
+ "pathParams": [
25769
+ {
25770
+ "name": "code",
25771
+ "sdkName": "code",
25772
+ "description": "The 8-character pairing code returned by createByodPairing. An unknown, spent or expired code answers 404."
25773
+ }
25774
+ ],
25775
+ "query": [],
25776
+ "body": {
25777
+ "required": true,
25778
+ "fields": [
25779
+ {
25780
+ "name": "platform",
25781
+ "type": "string",
25782
+ "enum": [
25783
+ "android",
25784
+ "macos",
25785
+ "linux"
25786
+ ],
25787
+ "required": true,
25788
+ "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."
25789
+ },
25790
+ {
25791
+ "name": "name",
25792
+ "type": "string",
25793
+ "required": false,
25794
+ "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."
25795
+ },
25796
+ {
25797
+ "name": "model",
25798
+ "type": "string",
25799
+ "required": false,
25800
+ "description": "The device model the app reports, at most 128 characters; it is display only and can be omitted."
25801
+ },
25802
+ {
25803
+ "name": "os_version",
25804
+ "type": "string",
25805
+ "required": false,
25806
+ "description": "The operating-system version the app reports, at most 64 characters; it is display only and can be omitted."
25807
+ }
25808
+ ]
25809
+ }
25810
+ },
25322
25811
  {
25323
25812
  "resource": "sandbox.events.sandboxes",
25324
25813
  "method": "retrieve",
@@ -25524,7 +26013,7 @@ export const operations = [
25524
26013
  "name": "ephemeral",
25525
26014
  "type": "boolean",
25526
26015
  "required": false,
25527
- "description": "Own face, required: 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."
26016
+ "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."
25528
26017
  },
25529
26018
  {
25530
26019
  "name": "size",
@@ -25570,6 +26059,31 @@ export const operations = [
25570
26059
  "required": false,
25571
26060
  "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."
25572
26061
  },
26062
+ {
26063
+ "name": "sku",
26064
+ "type": "string",
26065
+ "required": false,
26066
+ "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."
26067
+ },
26068
+ {
26069
+ "name": "kind",
26070
+ "type": "string",
26071
+ "enum": [
26072
+ "run",
26073
+ "job",
26074
+ "batch",
26075
+ "computer",
26076
+ "compat"
26077
+ ],
26078
+ "required": false,
26079
+ "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."
26080
+ },
26081
+ {
26082
+ "name": "interruptible",
26083
+ "type": "boolean",
26084
+ "required": false,
26085
+ "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."
26086
+ },
25573
26087
  {
25574
26088
  "name": "onLoss",
25575
26089
  "type": "string",