@deepraxis/sdk 0.1.1-dev.d61d469 → 0.1.1-dev.d6fe1a0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -61,7 +61,7 @@ export const operations = [
61
61
  "resource": "agent.agents",
62
62
  "method": "create",
63
63
  "summary": "Create agent",
64
- "description": "Create a reusable agent definition, then pass its returned id to sessions.create to start a conversation. The definition includes model, system prompt, tools, MCP servers and an optional multiagent roster. It is saved as version 1; real updates create new versions. skills attaches uploaded custom skills as [{type: \"custom\", skill_id, version?}] (skill_id from skills.create or skills.list; at most 20, no repeated skill_id). Omit version, or send \"latest\", to use the skill's newest version when a session starts. type anthropic returns 400. Use tools: [{type: \"agent_toolset_20260401\"}] for built-in tools including codemode, skill and agent; inspect toolsets.list for names and schemas, and keep bash enabled for native additions. To offer only some tools, set default_config: {enabled: false} and list the tools to keep in configs, e.g. tools: [{type: \"agent_toolset_20260401\", default_config: {enabled: false}, configs: [{name: \"codemode\", enabled: true}, {name: \"bash\", enabled: true, permission_policy: {type: \"always_ask\"}}]}]; every tool not listed, including todo_write, ask_user_question and goal_read, follows default_config, and the response echoes it. codemode runs through bash, so enabling codemode while bash is disabled returns 400. Optional mcp_toolset entries pair with mcp_servers. model accepts platform model IDs such as deepseek-flash, not only the Claude IDs in the protocol examples. model.settings.reasoning sets default thinking; other extra model controls return 400. model and every models.allowed entry must be a catalog model that can run an agent: an unknown id returns 400 \"model <id> is not in the model catalog\" and an embedding, image or speech model returns 400 \"model <id> cannot run an agent\". name is a label, not a unique key: 1 to 256 characters after trimming, no NUL or line breaks. avatar is trimmed, must not contain spaces or point at a loopback, private or internal host, and its scheme is stored in lowercase. script and workflow binding ids are stored in lowercase, the form automation matches; bindings together with environment_id null return 400 because bindings need a machine. Example: {\"name\":\"helper\",\"model\":{\"id\":\"deepseek-flash\"},\"tools\":[{\"type\":\"agent_toolset_20260401\"}]}. kind defaults to service when it is omitted and no computer_id is given, and to general when computer_id is given; it cannot change after creation. For kind assume, provide name without model, models, subagent_model, subagents or multiagent; omit computer_id to register a new computer named after the agent without starting an instance, or provide an existing computer_id; vault_ids are accepted, bindings and environment_id are refused. Drive assume agents over MCP at /agent/v1/agents/{id}/mcp.",
64
+ "description": "Create a reusable agent definition, then pass its returned id to sessions.create to start a conversation. Omit kind to create a service agent (Managed Agents behaviour: a fresh environment per session). Pass kind: \"general\" for an employee-style agent with its own computer, created with it; size and template come from the agent's computers configuration. The definition includes model, system prompt, tools, MCP servers and an optional multiagent roster. It is saved as version 1; real updates create new versions. skills attaches uploaded custom skills as [{type: \"custom\", skill_id, version?}] (skill_id from skills.create or skills.list; at most 20, no repeated skill_id). Omit version, or send \"latest\", to use the skill's newest version when a session starts. type anthropic returns 400. Use tools: [{type: \"agent_toolset_20260401\"}] for built-in tools including codemode, skill and agent; inspect toolsets.list for names and schemas, and keep bash enabled for native additions. To offer only some tools, set default_config: {enabled: false} and list the tools to keep in configs, e.g. tools: [{type: \"agent_toolset_20260401\", default_config: {enabled: false}, configs: [{name: \"codemode\", enabled: true}, {name: \"bash\", enabled: true, permission_policy: {type: \"always_ask\"}}]}]; every tool not listed, including todo_write, 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.",
65
65
  "http": "POST",
66
66
  "path": "/agent/v1/agents",
67
67
  "streaming": "no",
@@ -144,7 +144,7 @@ export const operations = [
144
144
  "assume"
145
145
  ],
146
146
  "required": false,
147
- "description": "Immutable agent kind. general requires computer_id; on creation, assume may omit computer_id to register a new computer named after the agent, without starting an instance; assume has no conversation model and rejects model, models, subagent_model, subagents and multiagent; service cannot bind a computer. Omit on create to infer from computer_id (general with a computer, service without). On update, the same kind is ignored; changing kind or crossing its computer binding returns 400 invalid_request_error."
147
+ "description": "Immutable agent kind. general uses a durable computer and acts for its owner; service uses a clean environment per session; assume is driven over MCP with a durable computer and no conversation model. Omit on create to infer from computer_id (general with a computer, service without). A general or assume agent created without computer_id registers a new computer named after the agent in the same request; a service agent cannot take computer_id. assume rejects model, models, subagent_model, subagents and multiagent. On update, the same kind is ignored; changing kind or crossing its computer binding returns 400 invalid_request_error."
148
148
  },
149
149
  {
150
150
  "name": "computer_id",
@@ -372,7 +372,7 @@ export const operations = [
372
372
  "assume"
373
373
  ],
374
374
  "required": false,
375
- "description": "Immutable agent kind. general requires computer_id; on creation, assume may omit computer_id to register a new computer named after the agent, without starting an instance; assume has no conversation model and rejects model, models, subagent_model, subagents and multiagent; service cannot bind a computer. Omit on create to infer from computer_id (general with a computer, service without). On update, the same kind is ignored; changing kind or crossing its computer binding returns 400 invalid_request_error."
375
+ "description": "Immutable agent kind. general uses a durable computer and acts for its owner; service uses a clean environment per session; assume is driven over MCP with a durable computer and no conversation model. Omit on create to infer from computer_id (general with a computer, service without). A general or assume agent created without computer_id registers a new computer named after the agent in the same request; a service agent cannot take computer_id. assume rejects model, models, subagent_model, subagents and multiagent. On update, the same kind is ignored; changing kind or crossing its computer binding returns 400 invalid_request_error."
376
376
  },
377
377
  {
378
378
  "name": "computer_id",
@@ -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 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.",
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. Only a general or assume agent may have a phone: a service agent, an agent of another organization and a missing agent all answer 404 AGENT_NOT_FOUND. This operation is for people and their tools — the model cannot call it.",
1039
+ "http": "POST",
1040
+ "path": "/agent/v1/agents/{agent_id}/phone/release",
1041
+ "streaming": "no",
1042
+ "pagination": false,
1043
+ "pathParams": [
1044
+ {
1045
+ "name": "agent_id",
1046
+ "sdkName": "agent_id",
1047
+ "description": "Agent id from agent creation or listing, the eight character identity number or the handle. A service agent never has a phone and answers not found. Also accepts an 8-character identity number (0–9, A–Z); malformed, absent and foreign references return 404, and response ids always use agent_…."
1048
+ }
1049
+ ],
1050
+ "query": []
1051
+ },
1016
1052
  {
1017
1053
  "resource": "agent.agents.unarchive",
1018
1054
  "method": "create",
@@ -1090,7 +1126,7 @@ export const operations = [
1090
1126
  "resource": "agent.computers",
1091
1127
  "method": "list",
1092
1128
  "summary": "List Computers",
1093
- "description": "List the computers of your organization, archived ones included.\n\nPraxis extension: MA only has session-scoped temporary containers and memory_stores, not durable browsable computers. Archived files remain readable, but new sessions cannot bind them. environment_id is an optional recipe reference; computers start with a light sandbox and expose the public SDK sandbox_id. Lists include archived computers.",
1129
+ "description": "List the computers of your organization, archived ones included.\n\nPraxis extension: MA only has session-scoped temporary containers and memory_stores, not durable browsable computers. Archived files remain readable, but new sessions cannot bind them. environment_id is an optional recipe reference; a computer starts on first use and exposes the public SDK sandbox_id. Lists include archived computers.",
1094
1130
  "http": "GET",
1095
1131
  "path": "/agent/v1/computers",
1096
1132
  "streaming": "no",
@@ -1115,7 +1151,7 @@ export const operations = [
1115
1151
  "resource": "agent.computers",
1116
1152
  "method": "create",
1117
1153
  "summary": "Create Computer",
1118
- "description": "Create a durable computer: a named machine whose files outlive sessions, for general agents.\n\nPraxis extension: MA only has session-scoped temporary containers and memory_stores, not durable browsable computers. Archived files remain readable, but new sessions cannot bind them. environment_id is an optional recipe reference; computers start with a light sandbox and expose the public SDK sandbox_id. Lists include archived computers.",
1154
+ "description": "Create a durable computer: a named machine whose files outlive sessions, for general agents.\n\nPraxis extension: MA only has session-scoped temporary containers and memory_stores, not durable browsable computers. Archived files remain readable, but new sessions cannot bind them. environment_id is an optional recipe reference; a computer starts on first use and exposes the public SDK sandbox_id. Lists include archived computers.",
1119
1155
  "http": "POST",
1120
1156
  "path": "/agent/v1/computers",
1121
1157
  "streaming": "no",
@@ -1162,7 +1198,7 @@ export const operations = [
1162
1198
  "resource": "agent.computers",
1163
1199
  "method": "retrieve",
1164
1200
  "summary": "Get Computer",
1165
- "description": "Read one computer's status, storage use and sandbox id.\n\nPraxis extension: MA only has session-scoped temporary containers and memory_stores, not durable browsable computers. Archived files remain readable, but new sessions cannot bind them. environment_id is an optional recipe reference; computers start with a light sandbox and expose the public SDK sandbox_id. Lists include archived computers.",
1201
+ "description": "Read one computer's status, storage use and sandbox id.\n\nPraxis extension: MA only has session-scoped temporary containers and memory_stores, not durable browsable computers. Archived files remain readable, but new sessions cannot bind them. environment_id is an optional recipe reference; a computer starts on first use and exposes the public SDK sandbox_id. Lists include archived computers.",
1166
1202
  "http": "GET",
1167
1203
  "path": "/agent/v1/computers/{computer_id}",
1168
1204
  "streaming": "no",
@@ -1180,7 +1216,7 @@ export const operations = [
1180
1216
  "resource": "agent.computers",
1181
1217
  "method": "update",
1182
1218
  "summary": "Update Computer",
1183
- "description": "Rename a computer.\n\nPraxis extension: MA only has session-scoped temporary containers and memory_stores, not durable browsable computers. Archived files remain readable, but new sessions cannot bind them. environment_id is an optional recipe reference; computers start with a light sandbox and expose the public SDK sandbox_id. Lists include archived computers.",
1219
+ "description": "Rename a computer.\n\nPraxis extension: MA only has session-scoped temporary containers and memory_stores, not durable browsable computers. Archived files remain readable, but new sessions cannot bind them. environment_id is an optional recipe reference; a computer starts on first use and exposes the public SDK sandbox_id. Lists include archived computers.",
1184
1220
  "http": "POST",
1185
1221
  "path": "/agent/v1/computers/{computer_id}",
1186
1222
  "streaming": "no",
@@ -1209,7 +1245,7 @@ export const operations = [
1209
1245
  "resource": "agent.computers",
1210
1246
  "method": "archive",
1211
1247
  "summary": "Archive Computer",
1212
- "description": "Archive a computer: its files stay readable but new sessions cannot use it.\n\nPraxis extension: MA only has session-scoped temporary containers and memory_stores, not durable browsable computers. Archived files remain readable, but new sessions cannot bind them. environment_id is an optional recipe reference; computers start with a light sandbox and expose the public SDK sandbox_id. Lists include archived computers.",
1248
+ "description": "Archive a computer: its files stay readable but new sessions cannot use it.\n\nPraxis extension: MA only has session-scoped temporary containers and memory_stores, not durable browsable computers. Archived files remain readable, but new sessions cannot bind them. environment_id is an optional recipe reference; a computer starts on first use and exposes the public SDK sandbox_id. Lists include archived computers. A computer an active agent holds is refused with 409 COMPUTER_IN_USE; archive the agent first.",
1213
1249
  "http": "POST",
1214
1250
  "path": "/agent/v1/computers/{computer_id}/archive",
1215
1251
  "streaming": "no",
@@ -1289,7 +1325,7 @@ export const operations = [
1289
1325
  "resource": "agent.computers.files",
1290
1326
  "method": "list",
1291
1327
  "summary": "List Computer Files",
1292
- "description": "List the entries of one directory on a computer.\n\nPraxis extension: MA only has session-scoped temporary containers and memory_stores, not durable browsable computers. Archived files remain readable, but new sessions cannot bind them. environment_id is an optional recipe reference; computers start with a light sandbox and expose the public SDK sandbox_id. Lists include archived computers.",
1328
+ "description": "List the entries of one directory on a computer.\n\nPraxis extension: MA only has session-scoped temporary containers and memory_stores, not durable browsable computers. Archived files remain readable, but new sessions cannot bind them. environment_id is an optional recipe reference; a computer starts on first use and exposes the public SDK sandbox_id. Lists include archived computers.",
1293
1329
  "http": "GET",
1294
1330
  "path": "/agent/v1/computers/{computer_id}/files",
1295
1331
  "streaming": "no",
@@ -1314,7 +1350,7 @@ export const operations = [
1314
1350
  "resource": "agent.computers.files",
1315
1351
  "method": "retrieveContent",
1316
1352
  "summary": "Get Computer File Content",
1317
- "description": "Download the bytes of one file on a computer, up to 16 MiB, with single-range support.\n\nPraxis extension: MA only has session-scoped temporary containers and memory_stores, not durable browsable computers. Archived files remain readable, but new sessions cannot bind them. environment_id is an optional recipe reference; computers start with a light sandbox and expose the public SDK sandbox_id. Lists include archived computers.",
1353
+ "description": "Download the bytes of one file on a computer, up to 16 MiB, with single-range support.\n\nPraxis extension: MA only has session-scoped temporary containers and memory_stores, not durable browsable computers. Archived files remain readable, but new sessions cannot bind them. environment_id is an optional recipe reference; a computer starts on first use and exposes the public SDK sandbox_id. Lists include archived computers.",
1318
1354
  "http": "GET",
1319
1355
  "path": "/agent/v1/computers/{computer_id}/files/content",
1320
1356
  "streaming": "no",
@@ -1360,6 +1396,50 @@ export const operations = [
1360
1396
  }
1361
1397
  ]
1362
1398
  },
1399
+ {
1400
+ "resource": "agent.computers.files",
1401
+ "method": "retrievePreview",
1402
+ "summary": "Preview a computer file",
1403
+ "description": "The preview product of one version of one computer file: an image becomes a 1600 px WebP, an Office document a linearized PDF, text and source the first 64 KiB, and PDF, xlsx, epub, GIF, SVG and unknown types their original bytes. Products live in the File service and are keyed by computer, path, size, mtime, variant and format version. A request that pins `v` answers from that registry without stat'ing or waking the computer; without `v` the file is read and the product generated once. A file over the size threshold, or a deployment without the File service, answers `fallback: \"content\"` so the caller keeps the ordinary content door.",
1404
+ "http": "GET",
1405
+ "path": "/agent/v1/computers/{computer_id}/files/preview",
1406
+ "streaming": "no",
1407
+ "pagination": false,
1408
+ "pathParams": [
1409
+ {
1410
+ "name": "computer_id",
1411
+ "sdkName": "computer_id",
1412
+ "description": "Computer id from computer creation or listing; a computer another tenant owns is not found."
1413
+ }
1414
+ ],
1415
+ "query": [
1416
+ {
1417
+ "name": "path",
1418
+ "type": "string",
1419
+ "required": true,
1420
+ "description": "Absolute path of the file on the computer, or a /workspace/ relative path."
1421
+ },
1422
+ {
1423
+ "name": "v",
1424
+ "type": "string",
1425
+ "required": false,
1426
+ "description": "The file version to answer for: the file listing's version (<size>-<mtimeMs>), or the full product version (<size>-<mtimeMs>-<variant>-fmt<N>) a previous answer returned. A pinned version answers from the product registry without a stat or a wake."
1427
+ },
1428
+ {
1429
+ "name": "variant",
1430
+ "type": "string",
1431
+ "enum": [
1432
+ "auto",
1433
+ "image",
1434
+ "pdf",
1435
+ "text",
1436
+ "original"
1437
+ ],
1438
+ "required": false,
1439
+ "description": "The product to answer; auto picks the kind's own (image, pdf, text or original). A variant the file cannot produce answers 400 PREVIEW_VARIANT_UNAVAILABLE."
1440
+ }
1441
+ ]
1442
+ },
1363
1443
  {
1364
1444
  "resource": "agent.computers.leases",
1365
1445
  "method": "delete",
@@ -1566,7 +1646,7 @@ export const operations = [
1566
1646
  "resource": "agent.deployments",
1567
1647
  "method": "create",
1568
1648
  "summary": "Create deployment",
1569
- "description": "Freeze session parameters as a deployment; this operation does not open a session. Pass an agent id or versioned reference, a name, 1–50 user.message initial events and an environment_id from environments.list. Unlike Anthropic Managed Agents, /agent/v1 also accepts agent_with_overrides (model, permission_mode and cwd) and target=computer for general agents, with environment_id omitted. Cron schedules use five POSIX fields and an IANA timezone. File resources are accepted. Supports vault_ids, up to 50, owned by the current organization and not archived; credential injection is deferred to a later version. Active schedules run every minute when due; session creation errors pause the deployment. Unsupported tools, mcp_servers, system and skills overrides return 400.",
1649
+ "description": "Freeze session parameters as a deployment; this operation does not open a session. Pass an agent id or versioned reference, a name, 1–50 user.message initial events and an environment_id from environments.list. Unlike Anthropic Managed Agents, /agent/v1 also accepts agent_with_overrides (model, permission_mode and cwd) and target=computer for general agents, with environment_id omitted. Cron schedules use five POSIX fields and an IANA timezone. File resources are accepted. Supports vault_ids, up to 50, owned by the current organization and not archived; credential injection is deferred to a later version. Active schedules run every minute when due; session creation errors pause the deployment. Unsupported tools, mcp_servers, system and skills overrides return 400. Example, a weekly cron deployment on the agent's computer: {\"agent\":\"agent_123\",\"name\":\"weekly report\",\"initial_events\":[{\"type\":\"user.message\",\"content\":[{\"type\":\"text\",\"text\":\"Write the weekly report.\"}]}],\"target\":{\"type\":\"computer\"},\"schedule\":{\"type\":\"cron\",\"expression\":\"0 9 * * 1\",\"timezone\":\"America/Los_Angeles\"}}.",
1570
1650
  "http": "POST",
1571
1651
  "path": "/agent/v1/deployments",
1572
1652
  "streaming": "no",
@@ -2185,6 +2265,16 @@ export const operations = [
2185
2265
  "required": false,
2186
2266
  "description": "Session working directory on any machine. Must be an absolute path within /home/user with no . or .. segments. Repeated and trailing slashes are normalized. Invalid values return 400 invalid_request_error with Invalid cwd."
2187
2267
  },
2268
+ {
2269
+ "name": "workspace",
2270
+ "type": "string",
2271
+ "enum": [
2272
+ "shared",
2273
+ "isolated"
2274
+ ],
2275
+ "required": false,
2276
+ "description": "Praxis extension: where the session's work happens. shared (default) opens it in the project's own folder; isolated asks for a session-owned git worktree when a named project's folder is a git repository, so concurrent desks in one project never touch each other's files. An explicit cwd is always taken as given, and a project that is not a git repository is always shared."
2277
+ },
2188
2278
  {
2189
2279
  "name": "computer_id",
2190
2280
  "type": "string",
@@ -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). A change that is already abandoned is refused with INVALID_ARGUMENT, which is how a caller tells an earlier abandon apart from a call that had no effect.",
12673
+ "description": "Stop a change for good: it no longer moves forward and its stage becomes abandoned. reason is required and is kept with the change. Pull requests it has not merged are closed with it: each one is closed on GitHub with a note naming the change and this reason, so an abandoned change never leaves an open pull request behind for someone else to clean up — a change with no open pull request makes no GitHub call at all. That close happens BEFORE the change is marked, so an abandon that cannot close them is refused with GITHUB_UNAVAILABLE and nothing has changed; send it again. Pull requests that were already merged are not undone — the system cleans them up, or a new change reverts them — so abandoning is a statement about the change, not a rollback of code. The id is the branch name and its slash must be percent-encoded in the path (feat%2Frun-page-v2). Repeating the call on a change that is already abandoned answers the change as it stands instead of refusing it: the first abandon is the fact, and a caller that lost the answer gets it back.",
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, such as one in halted where some targets succeeded and others failed. The retry re-runs the targets that did not succeed and leaves the ones that did alone, so a partially deployed environment is completed rather than redeployed from the start. A promotion that is still running is refused, and so is one that already reached a terminal state; read the promotion first and retry only a halted or errored one. The retry is attributed to the credential that sends it and is recorded on the promotion.",
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",
@@ -17291,6 +17422,17 @@ export const operations = [
17291
17422
  "required": false,
17292
17423
  "description": "Model role overrides. Omitted roles keep their current values on update and use defaults on creation; null restores all defaults, and a null role restores that role’s default. Changing embedding is rejected while the library contains assets."
17293
17424
  },
17425
+ {
17426
+ "name": "default_tier",
17427
+ "type": "string",
17428
+ "enum": [
17429
+ "economy",
17430
+ "balanced",
17431
+ "quality"
17432
+ ],
17433
+ "required": false,
17434
+ "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."
17435
+ },
17294
17436
  {
17295
17437
  "name": "name",
17296
17438
  "type": "string",
@@ -17422,6 +17564,17 @@ export const operations = [
17422
17564
  "required": false,
17423
17565
  "description": "Model role overrides. Omitted roles keep their current values on update and use defaults on creation; null restores all defaults, and a null role restores that role’s default. Changing embedding is rejected while the library contains assets."
17424
17566
  },
17567
+ {
17568
+ "name": "default_tier",
17569
+ "type": "string",
17570
+ "enum": [
17571
+ "economy",
17572
+ "balanced",
17573
+ "quality"
17574
+ ],
17575
+ "required": false,
17576
+ "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."
17577
+ },
17425
17578
  {
17426
17579
  "name": "name",
17427
17580
  "type": "string",
@@ -17889,7 +18042,7 @@ export const operations = [
17889
18042
  "resource": "media.assets",
17890
18043
  "method": "edit",
17891
18044
  "summary": "Edit asset",
17892
- "description": "Change an existing asset and store the result as a new asset; the source is never overwritten. {library_id} also accepts default, the organization’s default library. The body is operation (its type selects the edit and carries that edit’s own fields) plus optional model, asset_folder, understanding and idempotency_key. Edits by material: on an image, variations (near copies of a take you like), inpaint (mask, a PNG File id beginning with file-, whose transparent area is replaced by what prompt describes), erase, replace_object, recolor, replace_background, remove_background, upscale and talking_avatar (the portrait speaks a recording of the same library); on a video, upscale, reframe, redact, trim, mute, crop, erase (removes burned-in subtitles, captions and corner watermarks, found automatically or inside the boxes given), replace_person (puts the person of an image of the same library in place of the video’s person), lip_sync (re-syncs the lips to a recording of the same library), animate_person (an image of the same library performs the video’s motion), edit_video (the video changed by a one-line instruction, optionally guided by one image of the same library) and remove_background; on a recording or a video’s audio, enhance_voice; and to_video, frame and resynthesize on the material each takes. Any other type answers OPERATION_NOT_SUPPORTED, and an edit that does not fit the source’s material answers REFERENCE_TYPE_MISMATCH. Video and audio edits take their model from the platform catalogue (override with operation.model); an edit whose catalogue is empty answers OPERATION_NOT_SUPPORTED, 尚未上架. remove_background on a video makes a portrait matte: output mask is a small black-and-white video to use as a Cut track mask (the choice for compositing), output alpha (the default) a transparent ProRes 4444 file of about 870 MB per 15 s of 1080p, for when the transparent file itself is the deliverable; pick model from types.matting.models of the generation capabilities. output and model on an image source answer INVALID_PARAMS. The new asset records the source in derived_from; assets.lineage reads the whole edit chain. Charges are at the model API prices (video and audio edits per second of input) and appear in the Job’s usage; repeating the same edit of the same source answers the asset already made instead of paying again. The response is 202 with a queued Job whose source_asset_id is the edited asset; poll GET /media/v1/libraries/{library_id}/jobs/{job_id}, give the output’s viewer_url to the person and tell them usage.",
18045
+ "description": "Change an existing asset and store the result as a new asset; the source is never overwritten. {library_id} also accepts default, the organization’s default library. The body is operation (its type selects the edit and carries that edit’s own fields) plus optional model, asset_folder, understanding and idempotency_key. Edits by material: on an image, variations (near copies of a take you like), inpaint (mask, a PNG File id beginning with file-, whose transparent area is replaced by what prompt describes), erase, replace_object, recolor, replace_background, remove_background, upscale and talking_avatar (the portrait speaks a recording of the same library); on a video, upscale, reframe, redact, trim, mute, crop, extract_audio (pulls the sound out of a video as its own audio asset), erase (removes burned-in subtitles, captions and corner watermarks, found automatically or inside the boxes given), replace_person (puts the person of an image of the same library in place of the video’s person), lip_sync (re-syncs the lips to a recording of the same library), animate_person (an image of the same library performs the video’s motion), edit_video (the video changed by a one-line instruction, optionally guided by one image of the same library) and remove_background; on a recording or a video’s audio, enhance_voice; and to_video, frame and resynthesize on the material each takes. Any other type answers OPERATION_NOT_SUPPORTED, and an edit that does not fit the source’s material answers REFERENCE_TYPE_MISMATCH. Video and audio edits take their model from the platform catalogue (override with operation.model; extract_audio takes no model, it has exactly one function); an edit whose catalogue is empty answers OPERATION_NOT_SUPPORTED, 尚未上架. remove_background on a video makes a portrait matte: output mask is a small black-and-white video to use as a Cut track mask (the choice for compositing), output alpha (the default) a transparent ProRes 4444 file of about 870 MB per 15 s of 1080p, for when the transparent file itself is the deliverable; pick model from types.matting.models of the generation capabilities. output and model on an image source answer INVALID_PARAMS. The new asset records the source in derived_from; assets.lineage reads the whole edit chain. Charges are at the model API prices (video and audio edits per second of input) and appear in the Job’s usage; repeating the same edit of the same source answers the asset already made instead of paying again. The response is 202 with a queued Job whose source_asset_id is the edited asset; poll GET /media/v1/libraries/{library_id}/jobs/{job_id}, give the output’s viewer_url to the person and tell them usage.",
17893
18046
  "http": "POST",
17894
18047
  "path": "/media/v1/libraries/{library_id}/assets/{asset_id}/edits",
17895
18048
  "streaming": "no",
@@ -17914,13 +18067,24 @@ export const operations = [
17914
18067
  "name": "operation",
17915
18068
  "type": "object",
17916
18069
  "required": true,
17917
- "description": "One edit to apply to the source asset. type selects the operation and the discriminating branch carries that operation’s fields. This release performs variations, inpaint, erase, replace_object, recolor and replace_background on images, remove_background on an image or a video, upscale, enhance_voice, reframe, redact, trim, mute and crop through Media’s processing lane (upscale on a picture or a video; enhance_voice on a recording or a video, whose audio is used; reframe, redact, trim, mute and crop on a video), erase, replace_person, lip_sync, animate_person and edit_video on a video and talking_avatar on an image through the same lane, and to_video, frame and resynthesize on the material each takes; every other type here describes the operation vocabulary and is refused with OPERATION_NOT_SUPPORTED. align is not an edit — it compares two assets and has its own endpoint, POST /media/v1/libraries/{library_id}/assets/{asset_id}/align."
18070
+ "description": "One edit to apply to the source asset. type selects the operation and the discriminating branch carries that operation’s fields. This release performs variations, inpaint, erase, replace_object, recolor and replace_background on images, remove_background on an image or a video, upscale, enhance_voice, reframe, redact, trim, mute, crop and extract_audio through Media’s processing lane (upscale on a picture or a video; enhance_voice on a recording or a video, whose audio is used; reframe, redact, trim, mute, crop and extract_audio on a video), erase, replace_person, lip_sync, animate_person and edit_video on a video and talking_avatar on an image through the same lane, and to_video, frame and resynthesize on the material each takes; every other type here describes the operation vocabulary and is refused with OPERATION_NOT_SUPPORTED. align is not an edit — it compares two assets and has its own endpoint, POST /media/v1/libraries/{library_id}/assets/{asset_id}/align."
17918
18071
  },
17919
18072
  {
17920
18073
  "name": "model",
17921
18074
  "type": "string",
17922
18075
  "required": false,
17923
- "description": "Model that performs the edit; omit it to use the library default image model."
18076
+ "description": "Model that performs the edit; omit it to use the library default image model. This is the transition-window parameter; prefer tier, and send only one of the two. A value that is exactly a tier name (economy, balanced or quality) is read as that tier; any other value is a real model id, which keeps working only during the transition and is refused once the platform retires the parameter."
18077
+ },
18078
+ {
18079
+ "name": "tier",
18080
+ "type": "string",
18081
+ "enum": [
18082
+ "economy",
18083
+ "balanced",
18084
+ "quality"
18085
+ ],
18086
+ "required": false,
18087
+ "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."
17924
18088
  },
17925
18089
  {
17926
18090
  "name": "asset_folder",
@@ -18248,7 +18412,7 @@ export const operations = [
18248
18412
  "resource": "media.speech",
18249
18413
  "method": "create",
18250
18414
  "summary": "Create speech",
18251
- "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.",
18252
18416
  "http": "POST",
18253
18417
  "path": "/media/v1/libraries/{library_id}/audio/speech",
18254
18418
  "streaming": "no",
@@ -18307,6 +18471,23 @@ export const operations = [
18307
18471
  "type": "string",
18308
18472
  "required": false,
18309
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."
18310
18491
  }
18311
18492
  ]
18312
18493
  }
@@ -18574,7 +18755,18 @@ export const operations = [
18574
18755
  "name": "model",
18575
18756
  "type": "string",
18576
18757
  "required": false,
18577
- "description": "Model with image-generation capability; omit it to use the library default image model."
18758
+ "description": "Model with image-generation capability; omit it to use the library default image model. This is the transition-window parameter; prefer tier, and send only one of the two. A value that is exactly a tier name (economy, balanced or quality) is read as that tier; any other value is a real model id, which keeps working only during the transition and is refused once the platform retires the parameter."
18759
+ },
18760
+ {
18761
+ "name": "tier",
18762
+ "type": "string",
18763
+ "enum": [
18764
+ "economy",
18765
+ "balanced",
18766
+ "quality"
18767
+ ],
18768
+ "required": false,
18769
+ "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."
18578
18770
  },
18579
18771
  {
18580
18772
  "name": "asset_folder",
@@ -19321,7 +19513,18 @@ export const operations = [
19321
19513
  "name": "model",
19322
19514
  "type": "string",
19323
19515
  "required": false,
19324
- "description": "Model with video-generation capability; omit it to use the library default video model."
19516
+ "description": "Model with video-generation capability; omit it to use the library default video model. This is the transition-window parameter; prefer tier, and send only one of the two. A value that is exactly a tier name (economy, balanced or quality) is read as that tier; any other value is a real model id, which keeps working only during the transition and is refused once the platform retires the parameter."
19517
+ },
19518
+ {
19519
+ "name": "tier",
19520
+ "type": "string",
19521
+ "enum": [
19522
+ "economy",
19523
+ "balanced",
19524
+ "quality"
19525
+ ],
19526
+ "required": false,
19527
+ "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."
19325
19528
  },
19326
19529
  {
19327
19530
  "name": "asset_folder",
@@ -19348,6 +19551,79 @@ export const operations = [
19348
19551
  ]
19349
19552
  }
19350
19553
  },
19554
+ {
19555
+ "resource": "media.libraries.voices",
19556
+ "method": "create",
19557
+ "summary": "Create voice",
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.",
19559
+ "http": "POST",
19560
+ "path": "/media/v1/libraries/{library_id}/voices",
19561
+ "streaming": "no",
19562
+ "pagination": false,
19563
+ "pathParams": [
19564
+ {
19565
+ "name": "library_id",
19566
+ "sdkName": "library_id",
19567
+ "description": "Library ID returned by creation."
19568
+ }
19569
+ ],
19570
+ "query": [],
19571
+ "body": {
19572
+ "required": true,
19573
+ "fields": []
19574
+ }
19575
+ },
19576
+ {
19577
+ "resource": "media.libraries.voices.designs",
19578
+ "method": "create",
19579
+ "summary": "Design a voice",
19580
+ "description": "Design a voice from a text description. The model makes count preview recordings (default 3), each stored in this library as an audio asset; listen, then create a voice whose design_asset_id names the preview you chose. Send description (1 to 500 characters), preview_text (15 to 200 characters, the line each preview speaks), language (zh or en) and optionally count (1 to 3). A description that fails review fails the slot with CONTENT_REJECTED and is never retried, so changing the words is the fix. Answers 202 with a job to poll.",
19581
+ "http": "POST",
19582
+ "path": "/media/v1/libraries/{library_id}/voices/designs",
19583
+ "streaming": "no",
19584
+ "pagination": false,
19585
+ "pathParams": [
19586
+ {
19587
+ "name": "library_id",
19588
+ "sdkName": "library_id",
19589
+ "description": "Library ID returned by creation."
19590
+ }
19591
+ ],
19592
+ "query": [],
19593
+ "body": {
19594
+ "required": true,
19595
+ "fields": [
19596
+ {
19597
+ "name": "description",
19598
+ "type": "string",
19599
+ "required": true,
19600
+ "description": "Text description of the voice to design, 1 to 500 characters. The model makes every preview from it; a description that fails review answers CONTENT_REJECTED."
19601
+ },
19602
+ {
19603
+ "name": "preview_text",
19604
+ "type": "string",
19605
+ "required": true,
19606
+ "description": "Line each preview speaks, 15 to 200 characters: long enough to hear the voice, short enough for one model call."
19607
+ },
19608
+ {
19609
+ "name": "language",
19610
+ "type": "string",
19611
+ "enum": [
19612
+ "zh",
19613
+ "en"
19614
+ ],
19615
+ "required": true,
19616
+ "description": "Language the previews speak: zh or en only."
19617
+ },
19618
+ {
19619
+ "name": "count",
19620
+ "type": "number",
19621
+ "required": false,
19622
+ "description": "How many preview recordings to design, 1 to 3; defaults to 3. Each one is stored as an audio asset."
19623
+ }
19624
+ ]
19625
+ }
19626
+ },
19351
19627
  {
19352
19628
  "resource": "meta.docs",
19353
19629
  "method": "search",
@@ -20801,6 +21077,7 @@ export const operations = [
20801
21077
  "enum": [
20802
21078
  "anthropic.messages",
20803
21079
  "cohere.rerank",
21080
+ "dashscope.voice_design",
20804
21081
  "google.generateContent",
20805
21082
  "mistral.ocr",
20806
21083
  "openai.audio.speech",
@@ -22814,7 +23091,7 @@ export const operations = [
22814
23091
  "resource": "organization.events",
22815
23092
  "method": "list",
22816
23093
  "summary": "List Organization Usage Events",
22817
- "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",
22818
23095
  "http": "GET",
22819
23096
  "path": "/organization/v1/events",
22820
23097
  "streaming": "no",
@@ -24416,7 +24693,7 @@ export const operations = [
24416
24693
  "resource": "registry.packages",
24417
24694
  "method": "retrieve",
24418
24695
  "summary": "Retrieve package",
24419
- "description": "读一个包的元数据:种类、所属库、当前 latest_version、作者、标签和累计下载量。package_id 来自 packages.list 或 packages.create;另一个组织或不存在都返回 404。",
24696
+ "description": "读一个包的元数据:种类、所属库、当前 latest_version、作者、标签和累计下载量。package_id 来自 packages.list 或 packages.create;另一个组织或不存在都返回 404。软删期间这个包一律 404,恢复后才重新出现。",
24420
24697
  "http": "GET",
24421
24698
  "path": "/registry/v1/packages/{package_id}",
24422
24699
  "streaming": "no",
@@ -24430,6 +24707,119 @@ export const operations = [
24430
24707
  ],
24431
24708
  "query": []
24432
24709
  },
24710
+ {
24711
+ "resource": "registry.packages.git.commits",
24712
+ "method": "retrieve",
24713
+ "summary": "Read a commit",
24714
+ "description": "按对象 id 读一个提交(完整 sha,不解析缩写)。返回提交信息、作者、提交时间与父提交。仓库里没有这个对象返回 404。",
24715
+ "http": "GET",
24716
+ "path": "/registry/v1/packages/{package_id}/git/commits/{sha}",
24717
+ "streaming": "no",
24718
+ "pagination": false,
24719
+ "pathParams": [
24720
+ {
24721
+ "name": "package_id",
24722
+ "sdkName": "package_id",
24723
+ "description": "包的标识,来自 repositories.packages.list 或 repositories.packages.create 返回的 id;不要传包名。"
24724
+ },
24725
+ {
24726
+ "name": "sha",
24727
+ "sdkName": "sha",
24728
+ "description": "完整的 git 对象 id(40 或 64 位十六进制),不接受缩写。"
24729
+ }
24730
+ ],
24731
+ "query": []
24732
+ },
24733
+ {
24734
+ "resource": "registry.packages.git.files",
24735
+ "method": "retrieve",
24736
+ "summary": "Download a file from a ref",
24737
+ "description": "按引用读一个文件的原始字节,边读边发(流式),没有大小上限。path 是仓库内相对路径,可以含斜杠;ref 不给就是默认分支。路径不是文件或引用不存在返回 404。",
24738
+ "http": "GET",
24739
+ "path": "/registry/v1/packages/{package_id}/git/files/{path}",
24740
+ "streaming": "no",
24741
+ "pagination": false,
24742
+ "pathParams": [
24743
+ {
24744
+ "name": "package_id",
24745
+ "sdkName": "package_id",
24746
+ "description": "包的标识,来自 repositories.packages.list 或 repositories.packages.create 返回的 id;不要传包名。"
24747
+ },
24748
+ {
24749
+ "name": "path",
24750
+ "sdkName": "path",
24751
+ "description": "仓库内的相对文件路径,可以含斜杠(例如 src/main.ts);不要以 / 开头,不能含 ..。"
24752
+ }
24753
+ ],
24754
+ "query": [
24755
+ {
24756
+ "name": "ref",
24757
+ "type": "string",
24758
+ "required": false,
24759
+ "description": "分支名、标签名、refs/… 全名或完整对象 id;不给就是包的默认分支。"
24760
+ }
24761
+ ]
24762
+ },
24763
+ {
24764
+ "resource": "registry.packages.git",
24765
+ "method": "retrieveLog",
24766
+ "summary": "List commits",
24767
+ "description": "列出一个 git 包的提交历史,最新的在前。ref 不给就是包的默认分支;limit 与 offset 分页,has_more 为 true 表示还有下一页。只读:提交只能通过 git 协议推送(clone 地址在包的 clone_url)。OCI 包没有 git 读接口,返回 404。",
24768
+ "http": "GET",
24769
+ "path": "/registry/v1/packages/{package_id}/git/log",
24770
+ "streaming": "no",
24771
+ "pagination": false,
24772
+ "pathParams": [
24773
+ {
24774
+ "name": "package_id",
24775
+ "sdkName": "package_id",
24776
+ "description": "包的标识,来自 repositories.packages.list 或 repositories.packages.create 返回的 id;不要传包名。"
24777
+ }
24778
+ ],
24779
+ "query": [
24780
+ {
24781
+ "name": "ref",
24782
+ "type": "string",
24783
+ "required": false,
24784
+ "description": "分支名、标签名、refs/… 全名或完整对象 id;不给就是包的默认分支。"
24785
+ },
24786
+ {
24787
+ "name": "limit",
24788
+ "type": "integer",
24789
+ "required": false,
24790
+ "description": "这一页最多返回多少个提交,1 到 100,默认 20。"
24791
+ },
24792
+ {
24793
+ "name": "offset",
24794
+ "type": "integer",
24795
+ "required": false,
24796
+ "description": "从历史开头跳过多少个提交,用来翻页;非负整数,默认 0。"
24797
+ }
24798
+ ]
24799
+ },
24800
+ {
24801
+ "resource": "registry.packages.git.trees",
24802
+ "method": "retrieve",
24803
+ "summary": "List a tree",
24804
+ "description": "读一个树对象(或一个提交的根树)的条目:名字、类型(blob / tree / commit)、模式、对象 id,以及已知时的大小。只列这一层,不递归。",
24805
+ "http": "GET",
24806
+ "path": "/registry/v1/packages/{package_id}/git/trees/{sha}",
24807
+ "streaming": "no",
24808
+ "pagination": false,
24809
+ "pathParams": [
24810
+ {
24811
+ "name": "package_id",
24812
+ "sdkName": "package_id",
24813
+ "description": "包的标识,来自 repositories.packages.list 或 repositories.packages.create 返回的 id;不要传包名。"
24814
+ },
24815
+ {
24816
+ "name": "sha",
24817
+ "sdkName": "sha",
24818
+ "description": "完整的 git 对象 id(40 或 64 位十六进制),不接受缩写。"
24819
+ }
24820
+ ],
24821
+ "query": []
24822
+ },
24433
24823
  {
24434
24824
  "resource": "registry.packages.installations",
24435
24825
  "method": "list",
@@ -25047,7 +25437,7 @@ export const operations = [
25047
25437
  "resource": "sandbox.sandboxes",
25048
25438
  "method": "create",
25049
25439
  "summary": "Create sandbox (v2)",
25050
- "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.",
25051
25441
  "http": "POST",
25052
25442
  "path": "/sandbox/v1/sandboxes",
25053
25443
  "streaming": "no",
@@ -25129,6 +25519,73 @@ export const operations = [
25129
25519
  "itemType": "object",
25130
25520
  "required": false,
25131
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": "onLoss",
25575
+ "type": "string",
25576
+ "enum": [
25577
+ "fail",
25578
+ "rebuild"
25579
+ ],
25580
+ "required": false,
25581
+ "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."
25582
+ },
25583
+ {
25584
+ "name": "outputs",
25585
+ "type": "array",
25586
+ "itemType": "object",
25587
+ "required": false,
25588
+ "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."
25132
25589
  }
25133
25590
  ]
25134
25591
  }
@@ -25198,6 +25655,28 @@ export const operations = [
25198
25655
  ]
25199
25656
  }
25200
25657
  },
25658
+ {
25659
+ "resource": "sandbox.sandboxes",
25660
+ "method": "act",
25661
+ "summary": "Act on a phone sandbox's screen",
25662
+ "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.",
25663
+ "http": "POST",
25664
+ "path": "/sandbox/v1/sandboxes/{sandboxID}/act",
25665
+ "streaming": "no",
25666
+ "pagination": false,
25667
+ "pathParams": [
25668
+ {
25669
+ "name": "sandboxID",
25670
+ "sdkName": "sandboxID",
25671
+ "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."
25672
+ }
25673
+ ],
25674
+ "query": [],
25675
+ "body": {
25676
+ "required": true,
25677
+ "fields": []
25678
+ }
25679
+ },
25201
25680
  {
25202
25681
  "resource": "sandbox.sandboxes",
25203
25682
  "method": "connect",
@@ -25710,7 +26189,7 @@ export const operations = [
25710
26189
  "resource": "sandbox.sandboxes.commands",
25711
26190
  "method": "run",
25712
26191
  "summary": "Run a command in the sandbox",
25713
- "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\"}.",
26192
+ "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\"}.",
25714
26193
  "http": "POST",
25715
26194
  "path": "/sandbox/v1/sandboxes/{sandbox_id}/commands",
25716
26195
  "streaming": "no",
@@ -31041,7 +31520,7 @@ export const operations = [
31041
31520
  "name": "duplicate_of",
31042
31521
  "type": "integer",
31043
31522
  "required": false,
31044
- "description": "Repository-local number returned by create or list; distinct from the object's id."
31523
+ "description": "The original ticket's number; required when state_reason is duplicate."
31045
31524
  }
31046
31525
  ]
31047
31526
  }
@@ -32150,7 +32629,7 @@ export const operations = [
32150
32629
  "resource": "vault.vaults.secrets",
32151
32630
  "method": "create",
32152
32631
  "summary": "Create secret",
32153
- "description": "Store a manually supplied token in an active vault. Omit allowed_hosts for name-based resolution only; host-based redemption never matches an empty host list. Unlike Anthropic credentials, this native operation takes name and value directly, with optional allowed_hosts and creates only static secrets; use praxis.vault.authorizations.create for OAuth. Its name must be unused by any non-archived secret in that vault; the response contains metadata but never the supplied value. Application praxis_vault_ref bindings declare vault_id and secret (the secret name), but currently return 501; do not copy the value into a plain-text binding or metadata as a substitute.",
32632
+ "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.",
32154
32633
  "http": "POST",
32155
32634
  "path": "/vault/v1/vaults/{vault_id}/secrets",
32156
32635
  "streaming": "no",
@@ -32183,7 +32662,7 @@ export const operations = [
32183
32662
  "type": "array",
32184
32663
  "itemType": "string",
32185
32664
  "required": false,
32186
- "description": "Allowed destinations for the secret. Omitting allowed_hosts on creation stores an empty list for name-based resolution only: host-based redemption never matches. When supplied, list 1–16 bare domain names, dotted-decimal IPv4 addresses or leading *. domain wildcards. A wildcard matches subdomains, not the domain itself. URLs, ports, paths, IPv6, local/private and platform hosts are rejected. Entries are lowercased, one trailing dot is removed, internationalized domains use Punycode, and duplicates are removed."
32665
+ "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."
32187
32666
  },
32188
32667
  {
32189
32668
  "name": "description",
@@ -32303,7 +32782,7 @@ export const operations = [
32303
32782
  "type": "array",
32304
32783
  "itemType": "string",
32305
32784
  "required": false,
32306
- "description": "Allowed destinations for the secret. Omitting allowed_hosts on creation stores an empty list for name-based resolution only: host-based redemption never matches. When supplied, list 1–16 bare domain names, dotted-decimal IPv4 addresses or leading *. domain wildcards. A wildcard matches subdomains, not the domain itself. URLs, ports, paths, IPv6, local/private and platform hosts are rejected. Entries are lowercased, one trailing dot is removed, internationalized domains use Punycode, and duplicates are removed."
32785
+ "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."
32307
32786
  },
32308
32787
  {
32309
32788
  "name": "description",
@@ -32407,7 +32886,7 @@ export const operations = [
32407
32886
  "resource": "vault.vaults.secrets",
32408
32887
  "method": "import",
32409
32888
  "summary": "Import secrets",
32410
- "description": "Import lines or dotenv text into an active vault, reporting success or failure for each entry. Existing names have their values replaced; their hosts change only when that line supplies allowed_hosts. Shared hosts apply only to newly created secrets; if neither shared nor per-line hosts are supplied, new secrets use an empty host list for name-based resolution only.",
32889
+ "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.",
32411
32890
  "http": "POST",
32412
32891
  "path": "/vault/v1/vaults/{vault_id}/secrets:import",
32413
32892
  "streaming": "no",