@deepraxis/sdk 0.1.1-dev.a936efe → 0.1.1-dev.aa440c9
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.
- package/METHODS.md +22 -1
- package/dist/core/binary-operations.d.ts +3 -0
- package/dist/core/binary-operations.js +14 -0
- package/dist/core/transport.js +8 -4
- package/dist/generated/binary-operations.gen.d.ts +3 -0
- package/dist/generated/binary-operations.gen.js +14 -0
- package/dist/generated/index.d.ts +2 -2
- package/dist/generated/index.js +1 -1
- package/dist/generated/sdk.gen.d.ts +53 -15
- package/dist/generated/sdk.gen.js +116 -14
- package/dist/generated/types.gen.d.ts +1212 -101
- package/dist/helpers/application-publish.js +16 -2
- package/dist/helpers/browser-connect-error.d.ts +28 -0
- package/dist/helpers/browser-connect-error.js +74 -0
- package/dist/helpers/browser-connect.d.ts +2 -0
- package/dist/helpers/browser-connect.js +36 -42
- package/dist/helpers/browser-decisions.d.ts +13 -0
- package/dist/helpers/browser-decisions.js +11 -0
- package/dist/helpers/browser-documentation.d.ts +1 -1
- package/dist/helpers/browser-documentation.js +4 -2
- package/dist/operations.generated.js +260 -17
- package/dist/resources.generated.d.ts +107 -0
- package/dist/resources.generated.js +15 -0
- package/package.json +1 -1
|
@@ -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, 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. 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",
|
|
@@ -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",
|
|
@@ -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",
|
|
@@ -1360,6 +1396,50 @@ export const operations = [
|
|
|
1360
1396
|
}
|
|
1361
1397
|
]
|
|
1362
1398
|
},
|
|
1399
|
+
{
|
|
1400
|
+
"resource": "agent.computers.files",
|
|
1401
|
+
"method": "retrievePreview",
|
|
1402
|
+
"summary": "Preview a computer file",
|
|
1403
|
+
"description": "The preview product of one version of one computer file: an image becomes a 1600 px WebP, an Office document a linearized PDF, text and source the first 64 KiB, and PDF, xlsx, epub, GIF, SVG and unknown types their original bytes. Products live in the File service and are keyed by computer, path, size, mtime, variant and format version. A request that pins `v` answers from that registry without stat'ing or waking the computer; without `v` the file is read and the product generated once. A file over the size threshold, or a deployment without the File service, answers `fallback: \"content\"` so the caller keeps the ordinary content door.",
|
|
1404
|
+
"http": "GET",
|
|
1405
|
+
"path": "/agent/v1/computers/{computer_id}/files/preview",
|
|
1406
|
+
"streaming": "no",
|
|
1407
|
+
"pagination": false,
|
|
1408
|
+
"pathParams": [
|
|
1409
|
+
{
|
|
1410
|
+
"name": "computer_id",
|
|
1411
|
+
"sdkName": "computer_id",
|
|
1412
|
+
"description": "Computer id from computer creation or listing; a computer another tenant owns is not found."
|
|
1413
|
+
}
|
|
1414
|
+
],
|
|
1415
|
+
"query": [
|
|
1416
|
+
{
|
|
1417
|
+
"name": "path",
|
|
1418
|
+
"type": "string",
|
|
1419
|
+
"required": true,
|
|
1420
|
+
"description": "Absolute path of the file on the computer, or a /workspace/ relative path."
|
|
1421
|
+
},
|
|
1422
|
+
{
|
|
1423
|
+
"name": "v",
|
|
1424
|
+
"type": "string",
|
|
1425
|
+
"required": false,
|
|
1426
|
+
"description": "The file version to answer for: the file listing's version (<size>-<mtimeMs>), or the full product version (<size>-<mtimeMs>-<variant>-fmt<N>) a previous answer returned. A pinned version answers from the product registry without a stat or a wake."
|
|
1427
|
+
},
|
|
1428
|
+
{
|
|
1429
|
+
"name": "variant",
|
|
1430
|
+
"type": "string",
|
|
1431
|
+
"enum": [
|
|
1432
|
+
"auto",
|
|
1433
|
+
"image",
|
|
1434
|
+
"pdf",
|
|
1435
|
+
"text",
|
|
1436
|
+
"original"
|
|
1437
|
+
],
|
|
1438
|
+
"required": false,
|
|
1439
|
+
"description": "The product to answer; auto picks the kind's own (image, pdf, text or original). A variant the file cannot produce answers 400 PREVIEW_VARIANT_UNAVAILABLE."
|
|
1440
|
+
}
|
|
1441
|
+
]
|
|
1442
|
+
},
|
|
1363
1443
|
{
|
|
1364
1444
|
"resource": "agent.computers.leases",
|
|
1365
1445
|
"method": "delete",
|
|
@@ -1566,7 +1646,7 @@ export const operations = [
|
|
|
1566
1646
|
"resource": "agent.deployments",
|
|
1567
1647
|
"method": "create",
|
|
1568
1648
|
"summary": "Create deployment",
|
|
1569
|
-
"description": "Freeze session parameters as a deployment; this operation does not open a session. Pass an agent id or versioned reference, a name, 1–50 user.message initial events and an environment_id from environments.list. Unlike Anthropic Managed Agents, /agent/v1 also accepts agent_with_overrides (model, permission_mode and cwd) and target=computer for general agents, with environment_id omitted. Cron schedules use five POSIX fields and an IANA timezone. File resources are accepted. Supports vault_ids, up to 50, owned by the current organization and not archived; credential injection is deferred to a later version. Active schedules run every minute when due; session creation errors pause the deployment. Unsupported tools, mcp_servers, system and skills overrides return 400.",
|
|
1649
|
+
"description": "Freeze session parameters as a deployment; this operation does not open a session. Pass an agent id or versioned reference, a name, 1–50 user.message initial events and an environment_id from environments.list. Unlike Anthropic Managed Agents, /agent/v1 also accepts agent_with_overrides (model, permission_mode and cwd) and target=computer for general agents, with environment_id omitted. Cron schedules use five POSIX fields and an IANA timezone. File resources are accepted. Supports vault_ids, up to 50, owned by the current organization and not archived; credential injection is deferred to a later version. Active schedules run every minute when due; session creation errors pause the deployment. Unsupported tools, mcp_servers, system and skills overrides return 400. Example, a weekly cron deployment on the agent's computer: {\"agent\":\"agent_123\",\"name\":\"weekly report\",\"initial_events\":[{\"type\":\"user.message\",\"content\":[{\"type\":\"text\",\"text\":\"Write the weekly report.\"}]}],\"target\":{\"type\":\"computer\"},\"schedule\":{\"type\":\"cron\",\"expression\":\"0 9 * * 1\",\"timezone\":\"America/Los_Angeles\"}}.",
|
|
1570
1650
|
"http": "POST",
|
|
1571
1651
|
"path": "/agent/v1/deployments",
|
|
1572
1652
|
"streaming": "no",
|
|
@@ -2185,6 +2265,16 @@ export const operations = [
|
|
|
2185
2265
|
"required": false,
|
|
2186
2266
|
"description": "Session working directory on any machine. Must be an absolute path within /home/user with no . or .. segments. Repeated and trailing slashes are normalized. Invalid values return 400 invalid_request_error with Invalid cwd."
|
|
2187
2267
|
},
|
|
2268
|
+
{
|
|
2269
|
+
"name": "workspace",
|
|
2270
|
+
"type": "string",
|
|
2271
|
+
"enum": [
|
|
2272
|
+
"shared",
|
|
2273
|
+
"isolated"
|
|
2274
|
+
],
|
|
2275
|
+
"required": false,
|
|
2276
|
+
"description": "Praxis extension: where the session's work happens. shared (default) opens it in the project's own folder; isolated asks for a session-owned git worktree when a named project's folder is a git repository, so concurrent desks in one project never touch each other's files. An explicit cwd is always taken as given, and a project that is not a git repository is always shared."
|
|
2277
|
+
},
|
|
2188
2278
|
{
|
|
2189
2279
|
"name": "computer_id",
|
|
2190
2280
|
"type": "string",
|
|
@@ -4109,7 +4199,7 @@ export const operations = [
|
|
|
4109
4199
|
"resource": "application.workers.versions",
|
|
4110
4200
|
"method": "create",
|
|
4111
4201
|
"summary": "Create version",
|
|
4112
|
-
"description": "Upload code and bindings as a new version; a version serves nothing until deployed. Set deploy true to create the pending deployment in the same call. Rejected binding types return UNSUPPORTED.",
|
|
4202
|
+
"description": "Upload code and bindings as a new version; a version serves nothing until deployed. Set deploy true to create the pending deployment in the same call. Rejected binding types return UNSUPPORTED. Send an Idempotency-Key to make a create safe to retry: within 24 hours the same key with the same body answers the first version (and its deployment) again instead of creating a second one, and the same key with a different body is refused.",
|
|
4113
4203
|
"http": "POST",
|
|
4114
4204
|
"path": "/application/v1/workers/{worker_id}/versions",
|
|
4115
4205
|
"streaming": "no",
|
|
@@ -7297,6 +7387,18 @@ export const operations = [
|
|
|
7297
7387
|
]
|
|
7298
7388
|
}
|
|
7299
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
|
+
},
|
|
7300
7402
|
{
|
|
7301
7403
|
"resource": "browser.connect",
|
|
7302
7404
|
"method": "retrieve",
|
|
@@ -12568,7 +12670,7 @@ export const operations = [
|
|
|
12568
12670
|
"resource": "devops.changes",
|
|
12569
12671
|
"method": "abandon",
|
|
12570
12672
|
"summary": "Abandon a change",
|
|
12571
|
-
"description": "Stop a change for good: it no longer moves forward and its stage becomes abandoned. reason is required and is kept with the change. Pull requests that were already merged are not undone — the system cleans them up, or a new change reverts them — so abandoning is a statement about the change, not a rollback of code. The id is the branch name and its slash must be percent-encoded in the path (feat%2Frun-page-v2).
|
|
12673
|
+
"description": "Stop a change for good: it no longer moves forward and its stage becomes abandoned. reason is required and is kept with the change. Pull requests it has not merged are closed with it: each one is closed on GitHub with a note naming the change and this reason, so an abandoned change never leaves an open pull request behind for someone else to clean up — a change with no open pull request makes no GitHub call at all. That close happens BEFORE the change is marked, so an abandon that cannot close them is refused with GITHUB_UNAVAILABLE and nothing has changed; send it again. Pull requests that were already merged are not undone — the system cleans them up, or a new change reverts them — so abandoning is a statement about the change, not a rollback of code. The id is the branch name and its slash must be percent-encoded in the path (feat%2Frun-page-v2). Repeating the call on a change that is already abandoned answers the change as it stands instead of refusing it: the first abandon is the fact, and a caller that lost the answer gets it back.",
|
|
12572
12674
|
"http": "POST",
|
|
12573
12675
|
"path": "/devops/v1/changes/{id}:abandon",
|
|
12574
12676
|
"streaming": "no",
|
|
@@ -15180,7 +15282,7 @@ export const operations = [
|
|
|
15180
15282
|
"resource": "devops.promotions",
|
|
15181
15283
|
"method": "retry",
|
|
15182
15284
|
"summary": "Retry a promotion",
|
|
15183
|
-
"description": "Continue a promotion that stopped part-way
|
|
15285
|
+
"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.",
|
|
15184
15286
|
"http": "POST",
|
|
15185
15287
|
"path": "/devops/v1/promotions/{id}:retry",
|
|
15186
15288
|
"streaming": "no",
|
|
@@ -15250,6 +15352,35 @@ export const operations = [
|
|
|
15250
15352
|
}
|
|
15251
15353
|
]
|
|
15252
15354
|
},
|
|
15355
|
+
{
|
|
15356
|
+
"resource": "devops.pullRequests",
|
|
15357
|
+
"method": "close",
|
|
15358
|
+
"summary": "Close a pull request without merging it",
|
|
15359
|
+
"description": "End a pull request that will never land, without abandoning the change it belongs to. DevOps closes it on GitHub through the project's own App installation, after writing this reason on the pull request, so it leaves the review queue instead of waiting for a merge that is not coming and whoever finds it later sees who ended it and why. Use it when one slice of a change is dropped while the change continues; abandoning the CHANGE closes its unmerged pull requests on its own and needs no second call. Only an open pull request can be closed: a merged one is refused with PULL_REQUEST_NOT_OPEN, because closing does not undo a merge and GitHub will not move a merged pull request back to closed, and one that is already closed answers itself unchanged, so repeating the call is safe. A pull request GitHub no longer has open is refused the same way — nothing was closed, and the platform's record catches up with GitHub on its next delivery.",
|
|
15360
|
+
"http": "POST",
|
|
15361
|
+
"path": "/devops/v1/pull-requests/{id}:close",
|
|
15362
|
+
"streaming": "no",
|
|
15363
|
+
"pagination": false,
|
|
15364
|
+
"pathParams": [
|
|
15365
|
+
{
|
|
15366
|
+
"name": "id",
|
|
15367
|
+
"sdkName": "id",
|
|
15368
|
+
"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."
|
|
15369
|
+
}
|
|
15370
|
+
],
|
|
15371
|
+
"query": [],
|
|
15372
|
+
"body": {
|
|
15373
|
+
"required": true,
|
|
15374
|
+
"fields": [
|
|
15375
|
+
{
|
|
15376
|
+
"name": "reason",
|
|
15377
|
+
"type": "string",
|
|
15378
|
+
"required": true,
|
|
15379
|
+
"description": "Why, in a sentence the next reader of the pull request can act on. It is posted as a note on the pull request before it is closed, and the note names the change when the head branch is one."
|
|
15380
|
+
}
|
|
15381
|
+
]
|
|
15382
|
+
}
|
|
15383
|
+
},
|
|
15253
15384
|
{
|
|
15254
15385
|
"resource": "devops.pullRequests",
|
|
15255
15386
|
"method": "merge",
|
|
@@ -18281,7 +18412,7 @@ export const operations = [
|
|
|
18281
18412
|
"resource": "media.speech",
|
|
18282
18413
|
"method": "create",
|
|
18283
18414
|
"summary": "Create speech",
|
|
18284
|
-
"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.",
|
|
18415
|
+
"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.",
|
|
18285
18416
|
"http": "POST",
|
|
18286
18417
|
"path": "/media/v1/libraries/{library_id}/audio/speech",
|
|
18287
18418
|
"streaming": "no",
|
|
@@ -18340,6 +18471,23 @@ export const operations = [
|
|
|
18340
18471
|
"type": "string",
|
|
18341
18472
|
"required": false,
|
|
18342
18473
|
"description": "Language of the text, when the voice supports several."
|
|
18474
|
+
},
|
|
18475
|
+
{
|
|
18476
|
+
"name": "model",
|
|
18477
|
+
"type": "string",
|
|
18478
|
+
"required": false,
|
|
18479
|
+
"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."
|
|
18480
|
+
},
|
|
18481
|
+
{
|
|
18482
|
+
"name": "tier",
|
|
18483
|
+
"type": "string",
|
|
18484
|
+
"enum": [
|
|
18485
|
+
"economy",
|
|
18486
|
+
"balanced",
|
|
18487
|
+
"quality"
|
|
18488
|
+
],
|
|
18489
|
+
"required": false,
|
|
18490
|
+
"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."
|
|
18343
18491
|
}
|
|
18344
18492
|
]
|
|
18345
18493
|
}
|
|
@@ -19407,7 +19555,7 @@ export const operations = [
|
|
|
19407
19555
|
"resource": "media.libraries.voices",
|
|
19408
19556
|
"method": "create",
|
|
19409
19557
|
"summary": "Create voice",
|
|
19410
|
-
"description": "Create a voice for this library
|
|
19558
|
+
"description": "Create a voice for this library. Send exactly one of the two shapes: consent_id with samples (a real person’s recordings, a consented voice, cloned before it can speak) or design_asset_id (a preview the voice-design run produced in this library, a generated voice). A generated voice is not cloned: it is ready when the call answers, its job already completed, and it speaks only through the speech model recorded on it, so speech naming another model is refused with INVALID_PARAMS. Each preview builds at most one voice, and building one gives back the design’s other previews, which then cannot be used. Sending both shapes, or neither, is refused with INVALID_PARAMS, and origin is written by the platform only. Answers 202 with a job.",
|
|
19411
19559
|
"http": "POST",
|
|
19412
19560
|
"path": "/media/v1/libraries/{library_id}/voices",
|
|
19413
19561
|
"streaming": "no",
|
|
@@ -22943,7 +23091,7 @@ export const operations = [
|
|
|
22943
23091
|
"resource": "organization.events",
|
|
22944
23092
|
"method": "list",
|
|
22945
23093
|
"summary": "List Organization Usage Events",
|
|
22946
|
-
"description": "Usage events newest first, one opaque cursor page at a time; a page never duplicates or skips an event. Every item carries its metering lines (meter, display name, consumed quantity and unit, mapped from the billing measurements); the per-line price split (list unit price, pricing unit, billed cost) rides only the single event — fetch /organization/v1/events/{id} for it.\n",
|
|
23094
|
+
"description": "Usage events newest first by occurrence time (occurred_at, when the usage happened), one opaque cursor page at a time; a page never duplicates or skips an event. Every item carries its metering lines (meter, display name, consumed quantity and unit, mapped from the billing measurements); the per-line price split (list unit price, pricing unit, billed cost) rides only the single event — fetch /organization/v1/events/{id} for it. A cursor belongs to the order it was issued under: one obtained before this occurrence-time ordering, or used under the other sort direction, is refused with 400 INVALID_PARAMS instead of being reused — restart the listing.\n",
|
|
22947
23095
|
"http": "GET",
|
|
22948
23096
|
"path": "/organization/v1/events",
|
|
22949
23097
|
"streaming": "no",
|
|
@@ -24586,7 +24734,7 @@ export const operations = [
|
|
|
24586
24734
|
"resource": "registry.packages.git.files",
|
|
24587
24735
|
"method": "retrieve",
|
|
24588
24736
|
"summary": "Download a file from a ref",
|
|
24589
|
-
"description": "
|
|
24737
|
+
"description": "按引用读一个文件的原始字节,边读边发(流式),没有大小上限。path 是仓库内相对路径,可以含斜杠;ref 不给就是默认分支。路径不是文件或引用不存在返回 404。",
|
|
24590
24738
|
"http": "GET",
|
|
24591
24739
|
"path": "/registry/v1/packages/{package_id}/git/files/{path}",
|
|
24592
24740
|
"streaming": "no",
|
|
@@ -25289,7 +25437,7 @@ export const operations = [
|
|
|
25289
25437
|
"resource": "sandbox.sandboxes",
|
|
25290
25438
|
"method": "create",
|
|
25291
25439
|
"summary": "Create sandbox (v2)",
|
|
25292
|
-
"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.",
|
|
25440
|
+
"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.",
|
|
25293
25441
|
"http": "POST",
|
|
25294
25442
|
"path": "/sandbox/v1/sandboxes",
|
|
25295
25443
|
"streaming": "no",
|
|
@@ -25371,6 +25519,79 @@ export const operations = [
|
|
|
25371
25519
|
"itemType": "object",
|
|
25372
25520
|
"required": false,
|
|
25373
25521
|
"description": "Volumes to mount into the sandbox, each with the volume name and the path inside the sandbox."
|
|
25522
|
+
},
|
|
25523
|
+
{
|
|
25524
|
+
"name": "ephemeral",
|
|
25525
|
+
"type": "boolean",
|
|
25526
|
+
"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."
|
|
25528
|
+
},
|
|
25529
|
+
{
|
|
25530
|
+
"name": "size",
|
|
25531
|
+
"type": "string",
|
|
25532
|
+
"required": false,
|
|
25533
|
+
"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."
|
|
25534
|
+
},
|
|
25535
|
+
{
|
|
25536
|
+
"name": "name",
|
|
25537
|
+
"type": "string",
|
|
25538
|
+
"required": false,
|
|
25539
|
+
"description": "Own face: a display name for the sandbox, 1 to 64 characters. Omitted, one is generated from the template."
|
|
25540
|
+
},
|
|
25541
|
+
{
|
|
25542
|
+
"name": "waitForReady",
|
|
25543
|
+
"type": "boolean",
|
|
25544
|
+
"required": false,
|
|
25545
|
+
"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."
|
|
25546
|
+
},
|
|
25547
|
+
{
|
|
25548
|
+
"name": "onExpire",
|
|
25549
|
+
"type": "string",
|
|
25550
|
+
"enum": [
|
|
25551
|
+
"kill",
|
|
25552
|
+
"pause"
|
|
25553
|
+
],
|
|
25554
|
+
"required": false,
|
|
25555
|
+
"description": "Own face: what happens at the timeout. pause needs ephemeral: false; must agree with autoPause when both are sent."
|
|
25556
|
+
},
|
|
25557
|
+
{
|
|
25558
|
+
"name": "idleTimeout",
|
|
25559
|
+
"type": "integer",
|
|
25560
|
+
"required": false,
|
|
25561
|
+
"description": "Own face, persistent sandboxes only: pause after this many milliseconds without activity; null turns the idle pause off."
|
|
25562
|
+
},
|
|
25563
|
+
{
|
|
25564
|
+
"name": "idleActivity",
|
|
25565
|
+
"type": "string",
|
|
25566
|
+
"enum": [
|
|
25567
|
+
"traffic",
|
|
25568
|
+
"caller"
|
|
25569
|
+
],
|
|
25570
|
+
"required": false,
|
|
25571
|
+
"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
|
+
},
|
|
25573
|
+
{
|
|
25574
|
+
"name": "interruptible",
|
|
25575
|
+
"type": "boolean",
|
|
25576
|
+
"required": false,
|
|
25577
|
+
"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."
|
|
25578
|
+
},
|
|
25579
|
+
{
|
|
25580
|
+
"name": "onLoss",
|
|
25581
|
+
"type": "string",
|
|
25582
|
+
"enum": [
|
|
25583
|
+
"fail",
|
|
25584
|
+
"rebuild"
|
|
25585
|
+
],
|
|
25586
|
+
"required": false,
|
|
25587
|
+
"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."
|
|
25588
|
+
},
|
|
25589
|
+
{
|
|
25590
|
+
"name": "outputs",
|
|
25591
|
+
"type": "array",
|
|
25592
|
+
"itemType": "object",
|
|
25593
|
+
"required": false,
|
|
25594
|
+
"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."
|
|
25374
25595
|
}
|
|
25375
25596
|
]
|
|
25376
25597
|
}
|
|
@@ -25440,6 +25661,28 @@ export const operations = [
|
|
|
25440
25661
|
]
|
|
25441
25662
|
}
|
|
25442
25663
|
},
|
|
25664
|
+
{
|
|
25665
|
+
"resource": "sandbox.sandboxes",
|
|
25666
|
+
"method": "act",
|
|
25667
|
+
"summary": "Act on a phone sandbox's screen",
|
|
25668
|
+
"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.",
|
|
25669
|
+
"http": "POST",
|
|
25670
|
+
"path": "/sandbox/v1/sandboxes/{sandboxID}/act",
|
|
25671
|
+
"streaming": "no",
|
|
25672
|
+
"pagination": false,
|
|
25673
|
+
"pathParams": [
|
|
25674
|
+
{
|
|
25675
|
+
"name": "sandboxID",
|
|
25676
|
+
"sdkName": "sandboxID",
|
|
25677
|
+
"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."
|
|
25678
|
+
}
|
|
25679
|
+
],
|
|
25680
|
+
"query": [],
|
|
25681
|
+
"body": {
|
|
25682
|
+
"required": true,
|
|
25683
|
+
"fields": []
|
|
25684
|
+
}
|
|
25685
|
+
},
|
|
25443
25686
|
{
|
|
25444
25687
|
"resource": "sandbox.sandboxes",
|
|
25445
25688
|
"method": "connect",
|
|
@@ -25952,7 +26195,7 @@ export const operations = [
|
|
|
25952
26195
|
"resource": "sandbox.sandboxes.commands",
|
|
25953
26196
|
"method": "run",
|
|
25954
26197
|
"summary": "Run a command in the sandbox",
|
|
25955
|
-
"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\"}.",
|
|
26198
|
+
"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\"}.",
|
|
25956
26199
|
"http": "POST",
|
|
25957
26200
|
"path": "/sandbox/v1/sandboxes/{sandbox_id}/commands",
|
|
25958
26201
|
"streaming": "no",
|
|
@@ -31283,7 +31526,7 @@ export const operations = [
|
|
|
31283
31526
|
"name": "duplicate_of",
|
|
31284
31527
|
"type": "integer",
|
|
31285
31528
|
"required": false,
|
|
31286
|
-
"description": "
|
|
31529
|
+
"description": "The original ticket's number; required when state_reason is duplicate."
|
|
31287
31530
|
}
|
|
31288
31531
|
]
|
|
31289
31532
|
}
|
|
@@ -32392,7 +32635,7 @@ export const operations = [
|
|
|
32392
32635
|
"resource": "vault.vaults.secrets",
|
|
32393
32636
|
"method": "create",
|
|
32394
32637
|
"summary": "Create secret",
|
|
32395
|
-
"description": "Store a manually supplied token in an active vault.
|
|
32638
|
+
"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.",
|
|
32396
32639
|
"http": "POST",
|
|
32397
32640
|
"path": "/vault/v1/vaults/{vault_id}/secrets",
|
|
32398
32641
|
"streaming": "no",
|
|
@@ -32425,7 +32668,7 @@ export const operations = [
|
|
|
32425
32668
|
"type": "array",
|
|
32426
32669
|
"itemType": "string",
|
|
32427
32670
|
"required": false,
|
|
32428
|
-
"description": "Allowed destinations for the secret.
|
|
32671
|
+
"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."
|
|
32429
32672
|
},
|
|
32430
32673
|
{
|
|
32431
32674
|
"name": "description",
|
|
@@ -32545,7 +32788,7 @@ export const operations = [
|
|
|
32545
32788
|
"type": "array",
|
|
32546
32789
|
"itemType": "string",
|
|
32547
32790
|
"required": false,
|
|
32548
|
-
"description": "Allowed destinations for the secret.
|
|
32791
|
+
"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."
|
|
32549
32792
|
},
|
|
32550
32793
|
{
|
|
32551
32794
|
"name": "description",
|
|
@@ -32649,7 +32892,7 @@ export const operations = [
|
|
|
32649
32892
|
"resource": "vault.vaults.secrets",
|
|
32650
32893
|
"method": "import",
|
|
32651
32894
|
"summary": "Import secrets",
|
|
32652
|
-
"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
|
|
32895
|
+
"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.",
|
|
32653
32896
|
"http": "POST",
|
|
32654
32897
|
"path": "/vault/v1/vaults/{vault_id}/secrets:import",
|
|
32655
32898
|
"streaming": "no",
|