@deepraxis/sdk 0.2.0-dev.62855e4 → 0.2.0-dev.6a19327

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.
@@ -207,7 +207,7 @@ export const operations = [
207
207
  "type": "array",
208
208
  "itemType": "string",
209
209
  "required": false,
210
- "description": "Default vaults of a service agent: the vault_ids a new session gets when it names none, so the agent's credentials follow the version. At most 50 ids without duplicates; each must be a vault of your organization that is not archived, otherwise 400 vault_ids[<index>] <id> was not found. Saved with the agent version like other configuration, so apply=false keeps the previous vaults in effect for new sessions until that version is applied; a session that sets vault_ids itself, [] included, overrides it. Omit on create for []; on update, omit to keep the list and send an array to replace it as a whole. Versions saved before this field existed read as []. Embed tokens use the vault_ids of the version they pin; vault_ids on the embed policy is deprecated, still accepted and ignored. Personal agents get no default vaults: a non-empty value returns 400 and the field is not returned. /agent/v1 only; /anthropic neither accepts nor returns it."
210
+ "description": "Default vaults of the agent: the vault_ids every new session carries, so the agent's credentials follow the version. A department or organization rule's grants write this list on the agents it reaches (the agent's vaults become exactly the rule's set). Their secrets reach each session's machine as environment variables and match its MCP servers; sessions.create says which are skipped. At most 50 ids without duplicates; each must be a vault of your organization that is not archived, otherwise 400 vault_ids[<index>] <id> was not found. Saved with the agent version like other configuration, so apply=false keeps the previous vaults in effect for new sessions until that version is applied; a session that sets vault_ids itself adds its vaults to these and does not replace them; sessions already open keep the vaults they were created with. Omit on create for []; on update, omit to keep the list and send an array to replace it as a whole. Versions saved before this field existed read as []. Embed tokens use the vault_ids of the version they pin; vault_ids on the embed policy is deprecated, still accepted and ignored. General and assume agents hold vaults on themselves the same way. /agent/v1 only; /anthropic neither accepts nor returns it."
211
211
  },
212
212
  {
213
213
  "name": "computers",
@@ -215,6 +215,12 @@ export const operations = [
215
215
  "required": false,
216
216
  "description": "General agents only: the agent's computers, configured like its models. default is the template its Computer starts on; allowed lists the computers resize may switch to, and a resize to anything else is refused with COMPUTER_NOT_CONFIGURED. Omit on create for {default: base, allowed: Small base-small, Base base, Large base-large}; on update, omit to keep it, send an object to replace it as a whole. Service and assume agents return 400 computers is for general agents; service agents use environment_id. /agent/v1 only."
217
217
  },
218
+ {
219
+ "name": "browser",
220
+ "type": "object",
221
+ "required": false,
222
+ "description": "ADR-205: which browser the agent drives. {byob: byb_…} names one of your organization's paired browsers (browser.byob.browsers.list), which the agent then drives through connect() instead of a cloud browser; null or absent is the cloud browser. The browser must belong to your organization (otherwise 400) and must grant this agent before a session can open it. Omit on update to keep it, send an object to replace it, or null to go back to the cloud browser. /agent/v1 only."
223
+ },
218
224
  {
219
225
  "name": "preset",
220
226
  "type": "string",
@@ -435,7 +441,7 @@ export const operations = [
435
441
  "type": "array",
436
442
  "itemType": "string",
437
443
  "required": false,
438
- "description": "Default vaults of a service agent: the vault_ids a new session gets when it names none, so the agent's credentials follow the version. At most 50 ids without duplicates; each must be a vault of your organization that is not archived, otherwise 400 vault_ids[<index>] <id> was not found. Saved with the agent version like other configuration, so apply=false keeps the previous vaults in effect for new sessions until that version is applied; a session that sets vault_ids itself, [] included, overrides it. Omit on create for []; on update, omit to keep the list and send an array to replace it as a whole. Versions saved before this field existed read as []. Embed tokens use the vault_ids of the version they pin; vault_ids on the embed policy is deprecated, still accepted and ignored. Personal agents get no default vaults: a non-empty value returns 400 and the field is not returned. /agent/v1 only; /anthropic neither accepts nor returns it."
444
+ "description": "Default vaults of the agent: the vault_ids every new session carries, so the agent's credentials follow the version. A department or organization rule's grants write this list on the agents it reaches (the agent's vaults become exactly the rule's set). Their secrets reach each session's machine as environment variables and match its MCP servers; sessions.create says which are skipped. At most 50 ids without duplicates; each must be a vault of your organization that is not archived, otherwise 400 vault_ids[<index>] <id> was not found. Saved with the agent version like other configuration, so apply=false keeps the previous vaults in effect for new sessions until that version is applied; a session that sets vault_ids itself adds its vaults to these and does not replace them; sessions already open keep the vaults they were created with. Omit on create for []; on update, omit to keep the list and send an array to replace it as a whole. Versions saved before this field existed read as []. Embed tokens use the vault_ids of the version they pin; vault_ids on the embed policy is deprecated, still accepted and ignored. General and assume agents hold vaults on themselves the same way. /agent/v1 only; /anthropic neither accepts nor returns it."
439
445
  },
440
446
  {
441
447
  "name": "computers",
@@ -443,6 +449,12 @@ export const operations = [
443
449
  "required": false,
444
450
  "description": "General agents only: the agent's computers, configured like its models. default is the template its Computer starts on; allowed lists the computers resize may switch to, and a resize to anything else is refused with COMPUTER_NOT_CONFIGURED. Omit on create for {default: base, allowed: Small base-small, Base base, Large base-large}; on update, omit to keep it, send an object to replace it as a whole. Service and assume agents return 400 computers is for general agents; service agents use environment_id. /agent/v1 only."
445
451
  },
452
+ {
453
+ "name": "browser",
454
+ "type": "object",
455
+ "required": false,
456
+ "description": "ADR-205: which browser the agent drives. {byob: byb_…} names one of your organization's paired browsers (browser.byob.browsers.list), which the agent then drives through connect() instead of a cloud browser; null or absent is the cloud browser. The browser must belong to your organization (otherwise 400) and must grant this agent before a session can open it. Omit on update to keep it, send an object to replace it, or null to go back to the cloud browser. /agent/v1 only."
457
+ },
446
458
  {
447
459
  "name": "preset",
448
460
  "type": "string",
@@ -776,6 +788,42 @@ export const operations = [
776
788
  ],
777
789
  "query": []
778
790
  },
791
+ {
792
+ "resource": "agent.agents.devices.localSessions",
793
+ "method": "list",
794
+ "summary": "List the Claude Code sessions already on a device",
795
+ "description": "List the Claude Code sessions that already exist on a person's paired machine for a directory bound to this BYOA agent (started in a terminal, not on the platform), newest first, so one can be continued from the platform: pick an id and create a session with runtime.resume_session_id set to it (runtime.type device, the same device_id and cwd). Only the person who paired the device may ask. cwd is required and must be the directory exactly as the device registered it and bound it to this agent. Pass next_cursor back as cursor for the next page; null means the last page.",
796
+ "http": "GET",
797
+ "path": "/agent/v1/agents/{agent_id}/devices/{device_id}/local-sessions",
798
+ "streaming": "no",
799
+ "pagination": true,
800
+ "pathParams": [
801
+ {
802
+ "name": "agent_id",
803
+ "sdkName": "agent_id",
804
+ "description": "The BYOA agent: its agent_… id, eight character identity number or handle, from agents.list; resolved in your organization. Also accepts an 8-character identity number (0–9, A–Z); malformed, absent and foreign references return 404, and response ids always use agent_…."
805
+ },
806
+ {
807
+ "name": "device_id",
808
+ "sdkName": "device_id",
809
+ "description": "The paired desktop device (byd_ and 26 hex characters) whose sessions to list; you must be the person who paired it."
810
+ }
811
+ ],
812
+ "query": [
813
+ {
814
+ "name": "cwd",
815
+ "type": "string",
816
+ "required": true,
817
+ "description": "The absolute directory on the device, exactly as the device registered it and bound it to this agent."
818
+ },
819
+ {
820
+ "name": "cursor",
821
+ "type": "string",
822
+ "required": false,
823
+ "description": "The next_cursor of the previous page; leave it out for the first page."
824
+ }
825
+ ]
826
+ },
779
827
  {
780
828
  "resource": "agent.agents",
781
829
  "method": "retrieveEmbedPolicy",
@@ -1216,7 +1264,7 @@ export const operations = [
1216
1264
  "resource": "agent.computers",
1217
1265
  "method": "update",
1218
1266
  "summary": "Update Computer",
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.",
1267
+ "description": "Rename a computer, declare its environment, or drop that declaration without touching the machine.\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.",
1220
1268
  "http": "POST",
1221
1269
  "path": "/agent/v1/computers/{computer_id}",
1222
1270
  "streaming": "no",
@@ -1235,8 +1283,14 @@ export const operations = [
1235
1283
  {
1236
1284
  "name": "name",
1237
1285
  "type": "string",
1238
- "required": true,
1239
- "description": "Name of the entry or object."
1286
+ "required": false,
1287
+ "description": "New display name, 1 to 255 characters after trimming. Omit to keep the current name."
1288
+ },
1289
+ {
1290
+ "name": "environment_id",
1291
+ "type": "string",
1292
+ "required": false,
1293
+ "description": "Environment recipe the computer declares (agent.environments.list or agent.environments.create, or a built-in id). A string sets the declaration and is checked as in computers.create: an unknown, foreign or archived environment is refused. null removes the declaration. Omit to leave it unchanged. Only the record changes: the machine is not touched or restarted, so the new declaration applies from the computer's next start; restart the computer once to apply it at once."
1240
1294
  }
1241
1295
  ]
1242
1296
  }
@@ -1292,7 +1346,7 @@ export const operations = [
1292
1346
  "resource": "agent.computers",
1293
1347
  "method": "connect",
1294
1348
  "summary": "Connect computer",
1295
- "description": "Resume the computer and issue a sandbox connection.\n\nOwn-face extension: Managed Agents has no persistent Computer connection. Returns the public SDK sandbox_id, envd_access_token and template_id, plus the machine tier the computer is on now (light or heavy) and the lease that keeps it there (lease_id, lease_expires_at; lease_id is null when no lease exists). Keep the lease while the connection stays open: renew it about every 20 seconds (POST .../leases/{lease_id}/renew) and release it on close (DELETE .../leases/{lease_id}). An unrenewed lease simply expires, and the full machine is reclaimed only after that. Archived computers remain accessible; foreign or absent computers return 404. Never cache credentials.\n\nConnect to a computer with a caller-held lease. Omit the body or send {} to request light: the lightweight shell, or the heavy instance while it is running. Send {\"need\":\"heavy\"} to request full Linux for interactive programs; files are synchronized before the heavy connection is returned with tier heavy. Renew the lease while using the connection and release it with DELETE when finished.",
1349
+ "description": "Resume the computer and issue a sandbox connection.\n\nOwn-face extension: Managed Agents has no persistent Computer connection. Returns the public SDK sandbox_id, envd_access_token and template_id, plus tier (kept for compatibility: a Computer is one machine, so tier does not name a machine you can choose) and the lease that keeps the machine in service (lease_id, lease_expires_at; lease_id is null when no lease exists). Keep the lease while the connection stays open: renew it about every 20 seconds (POST .../leases/{lease_id}/renew) and release it on close (DELETE .../leases/{lease_id}). An unrenewed lease simply expires, and the machine is reclaimed only after that. Archived computers remain accessible; foreign or absent computers return 404. Never cache credentials.\n\nConnect to a computer with a caller-held lease. Omit the body or send {}: the optional need field is accepted for compatibility and changes nothing, because a Computer is one machine. Renew the lease while using the connection and release it with DELETE when finished.",
1296
1350
  "http": "POST",
1297
1351
  "path": "/agent/v1/computers/{computer_id}/connect",
1298
1352
  "streaming": "no",
@@ -1316,7 +1370,7 @@ export const operations = [
1316
1370
  "heavy"
1317
1371
  ],
1318
1372
  "required": false,
1319
- "description": "Defaults to light. light uses the lightweight shell, or the heavy instance while it is running. heavy requests a full Linux computer for interactive programs; heavy running time counts toward the daily budget in seconds."
1373
+ "description": "Accepted for compatibility and ignored: light and heavy both reach the same machine, because a Computer is one machine. Omit it."
1320
1374
  }
1321
1375
  ]
1322
1376
  }
@@ -1683,7 +1737,7 @@ export const operations = [
1683
1737
  "resource": "agent.deployments",
1684
1738
  "method": "create",
1685
1739
  "summary": "Create deployment",
1686
- "description": "Freeze session parameters as a deployment; this operation does not open a session. An agent reference with only an id follows the agent's active version: each run uses the version in effect at that moment, so a later agent save reaches the next run with no edit here. Name a version to pin it; only a version that is applied can be pinned, so a save made with apply false is refused with 409 AGENT_VERSION_NOT_APPLIED. Pass an agent id or versioned reference, a name, 1–50 user.message initial events and an environment_id from environments.list. environment_id and target are alternatives: send at least one of them; target:{type:\"computer\"} is for general agents and needs no environment_id, while target:{type:\"environment\"} still requires one. 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\"}}.",
1740
+ "description": "Freeze session parameters as a deployment; this operation does not open a session. An agent reference with only an id follows the agent's active version: each run uses the version in effect at that moment, so a later agent save reaches the next run with no edit here. Name a version to pin it; only a version that is applied can be pinned, so a save made with apply false is refused with 409 AGENT_VERSION_NOT_APPLIED. Pass an agent id or versioned reference, a name, 1–50 user.message initial events and an environment_id from environments.list. environment_id and target are alternatives: send at least one of them; target:{type:\"computer\"} is for general agents and needs no environment_id, while target:{type:\"environment\"} still requires one. 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; secrets reach the session's machine as environment variables and are matched against its MCP servers. 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\"}}.",
1687
1741
  "http": "POST",
1688
1742
  "path": "/agent/v1/deployments",
1689
1743
  "streaming": "no",
@@ -2247,7 +2301,7 @@ export const operations = [
2247
2301
  "resource": "agent.sessions",
2248
2302
  "method": "create",
2249
2303
  "summary": "Create session",
2250
- "description": "Create a session: one conversation with an agent. Pass agent as an agent id or {type:\"agent\", id, version?}; an id alone, or an object without version, pins the agent's active_version (the version chosen with agents.versions.apply, not necessarily the newest saved one). Unlike Anthropic Managed Agents, omit environment_id to use the default environment saved in the agent version (node22 for a new agent), unless computer_id (explicit, or the agent's default) selects a Computer; pass an environment id for a sandbox recipe. The retired \"light\" returns 400 naming the two forms that work: \"node22\", or null for no machine. For service agents, explicit null allocates no machine, so codemode, bash and other machine tools are unavailable. Optional model must be one of the agent's allowed models; optional thinking is {effort: low|medium|high|xhigh|max|none} or null, where null inherits the agent default and then the model default (none requires the model to allow disabling thinking). Selections are saved before initial_events run; invalid ones return 400 invalid_request_error. Unlike Anthropic Managed Agents, the only inline agent override is system ({type:\"agent_with_overrides\", id, system}); to change the model, tools, MCP servers or skills, save a version instead. Supports vault_ids, up to 50, owned by the current organization and not archived; credential injection is deferred to a later version. budget is {type:\"limit\", max_list_cost:{amount, currency:\"USD\"}} where amount is a positive decimal string of US dollars with at most 2 decimal places (\"20.00\" is USD 20.00); omitted budget defaults to \"20.00\" and null removes the limit. Up to 500 file resources can be attached. Use initial_events to send a first user.message in this request, or send messages afterwards with sessions.events.send. The returned status can still be idle before initial events run; read agent.message and the subsequent session.status_idle event to confirm completion. Assume agents return 400 INVALID_PARAMS; drive them over MCP at /agent/v1/agents/{id}/mcp instead.",
2304
+ "description": "Create a session: one conversation with an agent. Pass agent as an agent id or {type:\"agent\", id, version?}; an id alone, or an object without version, pins the agent's active_version (the version chosen with agents.versions.apply, not necessarily the newest saved one). Unlike Anthropic Managed Agents, omit environment_id to use the default environment saved in the agent version (node22 for a new agent), unless computer_id (explicit, or the agent's default) selects a Computer; pass an environment id for a sandbox recipe. The retired \"light\" returns 400 naming the two forms that work: \"node22\", or null for no machine. For service agents, explicit null allocates no machine, so codemode, bash and other machine tools are unavailable. Optional model must be one of the agent's allowed models; optional thinking is {effort: low|medium|high|xhigh|max|none} or null, where null inherits the agent default and then the model default (none requires the model to allow disabling thinking). Selections are saved before initial_events run; invalid ones return 400 invalid_request_error. Unlike Anthropic Managed Agents, the only inline agent override is system ({type:\"agent_with_overrides\", id, system}); to change the model, tools, MCP servers or skills, save a version instead. vault_ids (at most 50, owned by the organization, not archived) adds vaults to the agent's own vault_ids, the ones its department or organization rule grants attach, and the session carries both sets from creation; sessions.update replaces the session's own set later. The secrets of those vaults reach the session's machine as environment variables named after the secret, in every command it runs, and are matched against its MCP servers; a service agent's session skips OAuth credentials and secrets that declare allowed_hosts, and names the platform login owns are never taken. allowed_hosts does not limit what a command does with an exported value. A session with no machine has no environment. budget is {type:\"limit\", max_list_cost:{amount, currency:\"USD\"}} where amount is a positive decimal string of US dollars with at most 2 decimal places (\"20.00\" is USD 20.00); omitted budget defaults to \"20.00\" and null removes the limit. Up to 500 file resources can be attached. Use initial_events to send a first user.message in this request, or send messages afterwards with sessions.events.send. The returned status can still be idle before initial events run; read agent.message and the subsequent session.status_idle event to confirm completion. Assume agents return 400 INVALID_PARAMS; drive them over MCP at /agent/v1/agents/{id}/mcp instead.",
2251
2305
  "http": "POST",
2252
2306
  "path": "/agent/v1/sessions",
2253
2307
  "streaming": "no",
@@ -2391,7 +2445,7 @@ export const operations = [
2391
2445
  "resource": "agent.sessions",
2392
2446
  "method": "update",
2393
2447
  "summary": "Update session",
2394
- "description": "Update a session's title, metadata, model or thinking selection. metadata follows patch semantics: a string value sets the key, null deletes it, a null metadata clears all keys, untouched keys stay. model must be allowed by the session's agent version; thinking is {effort} or null (null restores inheritance); a model-only change clears a session thinking that the new model does not support, and combined changes are validated against the new model, with the previous selection kept on a 400. Changes apply from the next turn, not to a turn already running. Agent overrides are not supported (400 naming the field). Supports vault_ids, up to 50, owned by the current organization and not archived; credential injection is deferred to a later version. A budget limit must exceed consumed cost; null removes it permanently for this session. Updating an archived session returns 409.",
2448
+ "description": "Update a session's title, metadata, model or thinking selection. metadata follows patch semantics: a string value sets the key, null deletes it, a null metadata clears all keys, untouched keys stay. model must be allowed by the session's agent version; thinking is {effort} or null (null restores inheritance); a model-only change clears a session thinking that the new model does not support, and combined changes are validated against the new model, with the previous selection kept on a 400. Changes apply from the next turn, not to a turn already running. Agent overrides are not supported (400 naming the field). Supports vault_ids, up to 50, owned by the current organization and not archived; secrets reach the session's machine as environment variables and are matched against its MCP servers. A budget limit must exceed consumed cost; null removes it permanently for this session. Updating an archived session returns 409.",
2395
2449
  "http": "POST",
2396
2450
  "path": "/agent/v1/sessions/{session_id}",
2397
2451
  "streaming": "no",
@@ -2430,7 +2484,7 @@ export const operations = [
2430
2484
  "type": "array",
2431
2485
  "itemType": "string",
2432
2486
  "required": false,
2433
- "description": "Vault IDs (`vlt_*`) to attach to the session. Not yet supported;\nrequests setting this field are rejected. Reserved for future use."
2487
+ "description": "The vaults this session carries, replacing the whole set it has now, including the vaults it took from its agent when it was created: send those ids again to keep them. At most 50 ids, each a vault of your organization that is not archived. The next command the session runs sees the new set: the secrets of the vaults become environment variables on its machine and are matched against its MCP servers, as sessions.create describes."
2434
2488
  },
2435
2489
  {
2436
2490
  "name": "model",
@@ -7584,6 +7638,195 @@ export const operations = [
7584
7638
  "pathParams": [],
7585
7639
  "query": []
7586
7640
  },
7641
+ {
7642
+ "resource": "browser.byob.browsers",
7643
+ "method": "list",
7644
+ "summary": "列出自带浏览器",
7645
+ "description": "分页列出当前组织已配对且未断开的自带浏览器,按 ID 升序。将 nextCursor 原样传入读取下一页,直到其为 null。",
7646
+ "http": "GET",
7647
+ "path": "/browser/v1/byob/browsers",
7648
+ "streaming": "no",
7649
+ "pagination": false,
7650
+ "pathParams": [],
7651
+ "query": [
7652
+ {
7653
+ "name": "cursor",
7654
+ "type": "string",
7655
+ "required": false,
7656
+ "description": "上一页返回的 nextCursor,原样传入;省略时读取第一页。"
7657
+ },
7658
+ {
7659
+ "name": "limit",
7660
+ "type": "integer",
7661
+ "required": false,
7662
+ "description": "每页最多返回的浏览器数量;默认 50,范围 1–100。"
7663
+ }
7664
+ ]
7665
+ },
7666
+ {
7667
+ "resource": "browser.byob.browsers",
7668
+ "method": "retrieve",
7669
+ "summary": "读取自带浏览器",
7670
+ "description": "读取当前组织的指定自带浏览器,包括已断开的(revoked_at 不为 null)。不存在或不属于当前组织时返回 404 BROWSER_NOT_FOUND。",
7671
+ "http": "GET",
7672
+ "path": "/browser/v1/byob/browsers/{browser_id}",
7673
+ "streaming": "no",
7674
+ "pagination": false,
7675
+ "pathParams": [
7676
+ {
7677
+ "name": "browser_id",
7678
+ "sdkName": "browser_id",
7679
+ "description": "自带浏览器 ID,以 byb_ 开头;使用配对认领或列出自带浏览器返回的 id。"
7680
+ }
7681
+ ],
7682
+ "query": []
7683
+ },
7684
+ {
7685
+ "resource": "browser.byob.browsers",
7686
+ "method": "update",
7687
+ "summary": "更新自带浏览器的名称、授权智能体与允许站点",
7688
+ "description": "给自带浏览器改名,只改请求里出现的字段。已断开的浏览器返回 410 BROWSER_REVOKED,需要重新配对。",
7689
+ "http": "PATCH",
7690
+ "path": "/browser/v1/byob/browsers/{browser_id}",
7691
+ "streaming": "no",
7692
+ "pagination": false,
7693
+ "pathParams": [
7694
+ {
7695
+ "name": "browser_id",
7696
+ "sdkName": "browser_id",
7697
+ "description": "自带浏览器 ID,以 byb_ 开头;使用配对认领或列出自带浏览器返回的 id。"
7698
+ }
7699
+ ],
7700
+ "query": [],
7701
+ "body": {
7702
+ "required": true,
7703
+ "fields": [
7704
+ {
7705
+ "name": "name",
7706
+ "type": "string",
7707
+ "required": false,
7708
+ "description": "新的显示名称,1–80 个字符。"
7709
+ }
7710
+ ]
7711
+ }
7712
+ },
7713
+ {
7714
+ "resource": "browser.byob.browsers.disconnect",
7715
+ "method": "create",
7716
+ "summary": "断开自带浏览器",
7717
+ "description": "断开自带浏览器:之后没有任何智能体能再驱动它,要用必须重新配对。可重复调用,结果相同;功能开关关闭时也能断开。",
7718
+ "http": "POST",
7719
+ "path": "/browser/v1/byob/browsers/{browser_id}/disconnect",
7720
+ "streaming": "no",
7721
+ "pagination": false,
7722
+ "pathParams": [
7723
+ {
7724
+ "name": "browser_id",
7725
+ "sdkName": "browser_id",
7726
+ "description": "自带浏览器 ID,以 byb_ 开头;使用配对认领或列出自带浏览器返回的 id。"
7727
+ }
7728
+ ],
7729
+ "query": []
7730
+ },
7731
+ {
7732
+ "resource": "browser.byob.pairings",
7733
+ "method": "create",
7734
+ "summary": "创建浏览器配对码",
7735
+ "description": "为一个要接入的 Chrome 或 Edge 创建 8 位配对码,一次性、10 分钟有效;把它交给用户,由用户在浏览器扩展里输入或由 Console 直接交给扩展,用户点「允许」后配对完成。需要组织已开通 BYOB,否则返回 501 PROVIDER_UNSUPPORTED。",
7736
+ "http": "POST",
7737
+ "path": "/browser/v1/byob/pairings",
7738
+ "streaming": "no",
7739
+ "pagination": false,
7740
+ "pathParams": [],
7741
+ "query": []
7742
+ },
7743
+ {
7744
+ "resource": "browser.byob.pairings",
7745
+ "method": "retrieve",
7746
+ "summary": "读取浏览器配对授权页信息",
7747
+ "description": "扩展的授权页读取配对码对应的组织与发起人,让用户确认后再点「允许」。不需要 API Key,配对码就是凭证;码不存在、已过期、已使用一律返回 404 PAIRING_NOT_FOUND,不区分原因。",
7748
+ "http": "GET",
7749
+ "path": "/browser/v1/byob/pairings/{code}",
7750
+ "streaming": "no",
7751
+ "pagination": false,
7752
+ "pathParams": [
7753
+ {
7754
+ "name": "code",
7755
+ "sdkName": "code",
7756
+ "description": "8 位配对码,来自创建配对码的结果。"
7757
+ }
7758
+ ],
7759
+ "query": []
7760
+ },
7761
+ {
7762
+ "resource": "browser.byob.pairings.claim",
7763
+ "method": "create",
7764
+ "summary": "认领浏览器配对码",
7765
+ "description": "用户点「允许」后,扩展用配对码认领一次,登记这个浏览器并取得 browser_id 和要拨入的 link_url。不需要 API Key,配对码就是凭证,只能使用一次;码不存在、已过期、已使用一律返回 404 PAIRING_NOT_FOUND。请求体不合格时返回 400 且不消耗配对码。",
7766
+ "http": "POST",
7767
+ "path": "/browser/v1/byob/pairings/{code}/claim",
7768
+ "streaming": "no",
7769
+ "pagination": false,
7770
+ "pathParams": [
7771
+ {
7772
+ "name": "code",
7773
+ "sdkName": "code",
7774
+ "description": "8 位配对码,来自创建配对码的结果。"
7775
+ }
7776
+ ],
7777
+ "query": [],
7778
+ "body": {
7779
+ "required": true,
7780
+ "fields": [
7781
+ {
7782
+ "name": "browser",
7783
+ "type": "string",
7784
+ "enum": [
7785
+ "chrome",
7786
+ "edge"
7787
+ ],
7788
+ "required": true,
7789
+ "description": "要登记的浏览器种类,只支持 Chrome 和 Edge。"
7790
+ },
7791
+ {
7792
+ "name": "version",
7793
+ "type": "string",
7794
+ "required": true,
7795
+ "description": "浏览器版本号,1–64 个字符。"
7796
+ },
7797
+ {
7798
+ "name": "os",
7799
+ "type": "string",
7800
+ "required": true,
7801
+ "description": "操作系统,1–64 个字符。"
7802
+ },
7803
+ {
7804
+ "name": "name",
7805
+ "type": "string",
7806
+ "required": true,
7807
+ "description": "浏览器的显示名称,1–80 个字符。"
7808
+ },
7809
+ {
7810
+ "name": "public_key",
7811
+ "type": "string",
7812
+ "required": true,
7813
+ "description": "扩展用 WebCrypto 生成的不可导出 ECDSA P-256 密钥对的公钥;平台只保存公钥。"
7814
+ },
7815
+ {
7816
+ "name": "extension_id",
7817
+ "type": "string",
7818
+ "required": true,
7819
+ "description": "扩展 ID,1–64 个字符。"
7820
+ },
7821
+ {
7822
+ "name": "install_key",
7823
+ "type": "string",
7824
+ "required": false,
7825
+ "description": "扩展保存的随机安装密钥,8–128 个字母、数字、_ 或 -;同一个 profile 带同一密钥重新配对会复用原来的浏览器,平台只保存它的哈希。省略则每次认领都是新浏览器。"
7826
+ }
7827
+ ]
7828
+ }
7829
+ },
7587
7830
  {
7588
7831
  "resource": "browser.connect",
7589
7832
  "method": "retrieve",
@@ -7713,6 +7956,12 @@ export const operations = [
7713
7956
  "type": "object",
7714
7957
  "required": false,
7715
7958
  "description": "自定义字符串标签;最多 32 项,键最多 128 个 UTF-8 字节,值最多 1024 个 UTF-8 字节。"
7959
+ },
7960
+ {
7961
+ "name": "proxy",
7962
+ "type": "object",
7963
+ "required": false,
7964
+ "description": "给登录态绑定一个固定的外部代理(如住宅 IP),使用这个登录态的会话没有写 proxies 时都经它出网,让同一账号始终从同一个出口地址出去。只存保管库引用(password_secret),不存密码;会话自己写了 proxies 时以会话的为准。需要组织已开通容器后端,否则返回 501 PROVIDER_UNSUPPORTED。"
7716
7965
  }
7717
7966
  ]
7718
7967
  }
@@ -7784,6 +8033,12 @@ export const operations = [
7784
8033
  "type": "object",
7785
8034
  "required": false,
7786
8035
  "description": "自定义字符串标签;最多 32 项,键最多 128 个 UTF-8 字节,值最多 1024 个 UTF-8 字节。 更新时整体替换;空对象清除标签,省略则保留。"
8036
+ },
8037
+ {
8038
+ "name": "proxy",
8039
+ "type": "object",
8040
+ "required": false,
8041
+ "description": "给登录态绑定一个固定的外部代理(如住宅 IP),使用这个登录态的会话没有写 proxies 时都经它出网,让同一账号始终从同一个出口地址出去。只存保管库引用(password_secret),不存密码;会话自己写了 proxies 时以会话的为准。需要组织已开通容器后端,否则返回 501 PROVIDER_UNSUPPORTED。 更新时传 null 解除绑定,省略则保留原绑定。"
7787
8042
  }
7788
8043
  ]
7789
8044
  }
@@ -7914,7 +8169,7 @@ export const operations = [
7914
8169
  "organization"
7915
8170
  ],
7916
8171
  "required": false,
7917
- "description": "谁能看到这个新会话:默认 private 只有创建者;organization 允许同组织其他成员只读观看画面。"
8172
+ "description": "谁能看到这个新会话:默认 private 只有创建者;organization 允许同组织其他成员只读观看画面。自带浏览器(source.type 为 byob)的会话一律是 organization,传 private 也会被改成 organization,不报错。"
7918
8173
  },
7919
8174
  {
7920
8175
  "name": "keepAlive",
@@ -7938,7 +8193,13 @@ export const operations = [
7938
8193
  "name": "proxies",
7939
8194
  "type": "object",
7940
8195
  "required": false,
7941
- "description": "仅省略、false 或 [{type: 'none'}] 可用;其它代理配置返回 501。"
8196
+ "description": "让会话经一个固定的外部 HTTP 代理(如住宅 IP)出网:[{type: 'external', server: 'host:port', username?, password_secret?}];省略、false 或 [{type: 'none'}] 表示不用代理。只能有一个代理条目;密码推荐用 password_secret 引用保管库(只在连接代理主机时兑换),也可以直接给明文 password,二者不能同时出现。带代理的会话一定在我们的 Chrome 容器里运行,需要组织已开通容器后端,否则返回 501 PROVIDER_UNSUPPORTED;不能与 source.type 为 cloud 或 byob 同用,返回 400 INVALID_PARAMS(格式错误、私网地址、用户名没有密码等同样返回 400,reason 写明原因)。其它代理类型和 socks5 返回 501 PROVIDER_UNSUPPORTED。要让某个账号始终从同一个出口地址出去,把代理绑定在登录态上(contexts 的 proxy),不必每次会话重复传。"
8197
+ },
8198
+ {
8199
+ "name": "source",
8200
+ "type": "object",
8201
+ "required": false,
8202
+ "description": "选择浏览器后端,只有 container 支持外部代理:cloud(Browser Run)和 byob 都不能用代理。{type: 'cloud'}:Browser Run,启动最快、不能用代理、自动化特征可被网站发现。{type: 'container'}:我们自己的 Chrome 容器,可带 proxies(或用登录态绑定的代理),也可不带;组织未开通容器后端时返回 501 PROVIDER_UNSUPPORTED。{type: 'byob', browser: 'byb_…'}:用户自己配对的浏览器,不能与 proxies 或登录态同用。简写 {byob: 'byb_…'} 等同最后一种。省略时按旧规则:带 proxies 进容器,否则 Browser Run。cloud 加代理、未知 type、格式错误都返回 400 INVALID_PARAMS。"
7942
8203
  },
7943
8204
  {
7944
8205
  "name": "region",
@@ -18584,7 +18845,7 @@ export const operations = [
18584
18845
  "resource": "devops.units",
18585
18846
  "method": "push",
18586
18847
  "summary": "Push a unit's branch",
18587
- "description": "Publish the unit's local commits to the remote for the change: the machine itself holds no git credential and cannot reach the remote, so this verb is the way work done on a unit lands. ref says what to push — branch for the change's own branch, wip for this unit's own refs/praxis/wip/<change>, or a full ref name; anything else (the default branch, another change's branch, a tag, another unit's wip ref) is refused with 400 PUSH_REF_FORBIDDEN and nothing is pushed. expectedHead is the commit you believe the remote branch is at now; DevOps checks it before signing anything, and a remote that has moved since answers 409 HEAD_MOVED with nothing pushed, so fetch first when unsure, reconcile, and send the new head. For branch the call also takes a lease on that head, so the push cannot silently overwrite work that landed in between; wip is this change's own ref and is force-pushed. On success the answer is pushedSha, the commit that landed. Commit inside the machine first, through the sandbox instance API — this verb pushes commits, it does not create them. The unit must be available with a machine and a checkout, or the call answers 409 UNIT_INVALID_STATE; a push that git refuses inside the machine answers with the cause in the error message and in details.detail (the last 4000 characters of git's output, credentials redacted) and details.exitCode (git's exit code): 409 PUSH_REJECTED_BY_HOOK when a pre-push hook such as lefthook rejected it, so read the hook output, fix the content and push again, 409 PUSH_REJECTED_NON_FAST_FORWARD when the remote moved ahead, so fetch and reconcile, 409 HEAD_MOVED when the lease on expectedHead no longer holds, and 500 PUSH_FAILED for anything else. Do not retry the same push unchanged.",
18848
+ "description": "Publish the unit's local commits to the remote for the change: the machine itself holds no git credential and cannot reach the remote, so this verb is the way work done on a unit lands. ref says what to push — branch for the change's own branch, wip for this unit's own refs/praxis/wip/<change>, or a full ref name; anything else (the default branch, another change's branch, a tag, another unit's wip ref) is refused with 400 PUSH_REF_FORBIDDEN and nothing is pushed. expectedHead is the commit you believe the remote branch is at now; DevOps checks it before signing anything, and a remote that has moved since answers 409 HEAD_MOVED with nothing pushed, naming the head it is at now in the message and in details.remoteHead. Read the starting value from the unit's git.remoteHead (fetch first when someone else may have pushed). For branch the call also takes a lease on that head, so the push cannot silently overwrite work that landed in between; wip is this change's own ref and is force-pushed. On success the answer is pushedSha, the commit that landed. Commit inside the machine first, through the sandbox instance API — this verb pushes commits, it does not create them. The unit must be available with a machine and a checkout, or the call answers 409 UNIT_INVALID_STATE; a push that git refuses inside the machine answers with the cause in the error message and in details.detail (the last 4000 characters of git's output, credentials redacted) and details.exitCode (git's exit code): 409 PUSH_REJECTED_BY_HOOK when a pre-push hook such as lefthook rejected it, so read the hook output, fix the content and push again, 409 PUSH_REJECTED_NON_FAST_FORWARD when the remote moved ahead, so fetch and reconcile, 409 HEAD_MOVED when the lease on expectedHead no longer holds, and 500 PUSH_FAILED for anything else. Do not retry the same push unchanged.",
18588
18849
  "http": "POST",
18589
18850
  "path": "/devops/v1/units/{id}:push",
18590
18851
  "streaming": "no",
@@ -27495,7 +27756,7 @@ export const operations = [
27495
27756
  "linux"
27496
27757
  ],
27497
27758
  "required": true,
27498
- "description": "The device's platform. macos and linux are accepted only for an organization with the local-agent-connect flag on; with it off, and for any other value, the claim answers INVALID_PARAMS."
27759
+ "description": "The device's platform. macos and linux are accepted for every organization; any other value than android, macos or linux answers INVALID_PARAMS."
27499
27760
  },
27500
27761
  {
27501
27762
  "name": "name",
@@ -34667,7 +34928,7 @@ export const operations = [
34667
34928
  "resource": "vault.vaults",
34668
34929
  "method": "create",
34669
34930
  "summary": "Create vault",
34670
- "description": "Create an empty, active vault to hold credentials for your account, with a display name and optional metadata. Use its returned id as vault_id when creating secrets or OAuth authorizations. Agent sessions and deployments accept up to 50 vault_ids and match their credentials against the session's MCP servers, so a stored static or oauth credential does serve as vault-backed MCP authentication; only environment_variable credentials are not yet placed, because the egress proxy ADR-058 §6 gives them is not built. Application vault references are also unavailable; praxis_vault_ref version bindings and secret writes with a vault source return 501, so creating a vault does not yet enable either consumer.",
34931
+ "description": "Create an empty, active vault to hold credentials for your account, with a display name and optional metadata. Use its returned id as vault_id when creating secrets or OAuth authorizations. A session carries its agent's vaults (agent vault_ids, which a department or organization rule's grants also write) plus its own vault_ids, at most 50 together, and it matches their credentials against its MCP servers, so a stored static or oauth credential serves as vault-backed MCP authentication, and it exports their secrets to its machine as environment variables named after the secret, with real values (a service agent's session leaves out OAuth credentials and secrets that declare allowed_hosts; allowed_hosts does not limit what a command does with an exported value). Application vault references are also unavailable; praxis_vault_ref version bindings and secret writes with a vault source return 501, so creating a vault does not yet enable either consumer.",
34671
34932
  "http": "POST",
34672
34933
  "path": "/vault/v1/vaults",
34673
34934
  "streaming": "no",
@@ -248,6 +248,9 @@ export declare function createAgent(transport: Transport): {
248
248
  name: string;
249
249
  }>;
250
250
  };
251
+ browser?: {
252
+ byob: string;
253
+ } | null;
251
254
  computer_id?: string;
252
255
  subagent_model?: string | null;
253
256
  subagents?: Array<{
@@ -460,6 +463,16 @@ export declare function createAgent(transport: Transport): {
460
463
  }>;
461
464
  };
462
465
  };
466
+ devices: {
467
+ localSessions: {
468
+ list: (options: import("./core/transport.js").CallOptions<Types.ListAgentDeviceLocalSessionsData>) => Promise<import("./automation.js").Page<{
469
+ id: string;
470
+ title: string;
471
+ updated_at: string | null;
472
+ cwd: string | null;
473
+ }>>;
474
+ };
475
+ };
463
476
  events: {
464
477
  list: (options: import("./core/transport.js").CallOptions<Types.ListAgentEventsData>) => Promise<{
465
478
  data: Array<{
@@ -938,6 +951,9 @@ export declare function createAgent(transport: Transport): {
938
951
  name: string;
939
952
  }>;
940
953
  };
954
+ browser?: {
955
+ byob: string;
956
+ } | null;
941
957
  computer_id?: string;
942
958
  subagent_model?: string | null;
943
959
  subagents?: Array<{
@@ -1146,6 +1162,9 @@ export declare function createAgent(transport: Transport): {
1146
1162
  name: string;
1147
1163
  }>;
1148
1164
  };
1165
+ browser?: {
1166
+ byob: string;
1167
+ } | null;
1149
1168
  computer_id?: string;
1150
1169
  subagent_model?: string | null;
1151
1170
  subagents?: Array<{
@@ -1605,6 +1624,9 @@ export declare function createAgent(transport: Transport): {
1605
1624
  name: string;
1606
1625
  }>;
1607
1626
  };
1627
+ browser?: {
1628
+ byob: string;
1629
+ } | null;
1608
1630
  computer_id?: string;
1609
1631
  subagent_model?: string | null;
1610
1632
  subagents?: Array<{
@@ -1784,6 +1806,9 @@ export declare function createAgent(transport: Transport): {
1784
1806
  name: string;
1785
1807
  }>;
1786
1808
  };
1809
+ browser?: {
1810
+ byob: string;
1811
+ } | null;
1787
1812
  computer_id?: string;
1788
1813
  subagent_model?: string | null;
1789
1814
  subagents?: Array<{
@@ -2180,6 +2205,9 @@ export declare function createAgent(transport: Transport): {
2180
2205
  name: string;
2181
2206
  }>;
2182
2207
  };
2208
+ browser?: {
2209
+ byob: string;
2210
+ } | null;
2183
2211
  computer_id?: string;
2184
2212
  subagent_model?: string | null;
2185
2213
  subagents?: Array<{
@@ -2358,6 +2386,9 @@ export declare function createAgent(transport: Transport): {
2358
2386
  name: string;
2359
2387
  }>;
2360
2388
  };
2389
+ browser?: {
2390
+ byob: string;
2391
+ } | null;
2361
2392
  computer_id?: string;
2362
2393
  subagent_model?: string | null;
2363
2394
  subagents?: Array<{
@@ -6252,6 +6283,26 @@ export declare function createBilling(transport: Transport): {
6252
6283
  };
6253
6284
  };
6254
6285
  export declare function createBrowser(transport: Transport): {
6286
+ byob: {
6287
+ browsers: {
6288
+ disconnect: {
6289
+ create: (options: import("./core/transport.js").CallOptions<Types.BrowserDisconnectByobBrowserData>) => Promise<Types.BrowserByobBrowser>;
6290
+ };
6291
+ list: (options?: import("./core/transport.js").CallOptions<Types.BrowserListByobBrowsersData> | undefined) => Promise<{
6292
+ data: Array<Types.BrowserByobBrowser>;
6293
+ nextCursor: string | null;
6294
+ }>;
6295
+ retrieve: (options: import("./core/transport.js").CallOptions<Types.BrowserGetByobBrowserData>) => Promise<Types.BrowserByobBrowser>;
6296
+ update: (options: import("./core/transport.js").CallOptions<Types.BrowserUpdateByobBrowserData>) => Promise<Types.BrowserByobBrowser>;
6297
+ };
6298
+ pairings: {
6299
+ claim: {
6300
+ create: (options: import("./core/transport.js").CallOptions<Types.BrowserClaimByobPairingData>) => Promise<Types.BrowserByobClaimResult>;
6301
+ };
6302
+ create: (options?: import("./core/transport.js").CallOptions<Types.BrowserCreateByobPairingData> | undefined) => Promise<Types.BrowserByobPairing>;
6303
+ retrieve: (options: import("./core/transport.js").CallOptions<Types.BrowserReadByobPairingData>) => Promise<Types.BrowserByobPairingView>;
6304
+ };
6305
+ };
6255
6306
  connect: {
6256
6307
  retrieve: (options?: import("./core/transport.js").CallOptions<Types.BrowserConnectData> | undefined) => Promise<unknown>;
6257
6308
  };
@@ -8195,6 +8246,7 @@ export declare function createSandbox(transport: Transport): {
8195
8246
  dir: string;
8196
8247
  agent: string;
8197
8248
  }>;
8249
+ envd_version: string | null;
8198
8250
  allow_bypass: boolean;
8199
8251
  }>;
8200
8252
  }>;
@@ -8214,6 +8266,7 @@ export declare function createSandbox(transport: Transport): {
8214
8266
  dir: string;
8215
8267
  agent: string;
8216
8268
  }>;
8269
+ envd_version: string | null;
8217
8270
  allow_bypass: boolean;
8218
8271
  }>;
8219
8272
  update: (options: import("./core/transport.js").CallOptions<Types.UpdateByodDeviceData>) => Promise<{
@@ -8232,6 +8285,7 @@ export declare function createSandbox(transport: Transport): {
8232
8285
  dir: string;
8233
8286
  agent: string;
8234
8287
  }>;
8288
+ envd_version: string | null;
8235
8289
  allow_bypass: boolean;
8236
8290
  }>;
8237
8291
  };