@deepraxis/sdk 0.2.0-dev.93f321b → 0.2.0-dev.9bf33e2

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.
@@ -3609,7 +3609,7 @@ export type BrowserSessionCreateParams = {
3609
3609
  */
3610
3610
  projectId?: string;
3611
3611
  /**
3612
- * 谁能看到这个新会话:默认 private 只有创建者;organization 允许同组织其他成员只读观看画面。
3612
+ * 谁能看到这个新会话:默认 private 只有创建者;organization 允许同组织其他成员只读观看画面。自带浏览器(source.type 为 byob)的会话一律是 organization,传 private 也会被改成 organization,不报错。
3613
3613
  */
3614
3614
  visibility?: 'private' | 'organization';
3615
3615
  /**
@@ -3696,9 +3696,74 @@ export type BrowserSessionCreateParams = {
3696
3696
  ignoreCertificateErrors?: boolean;
3697
3697
  };
3698
3698
  /**
3699
- * 仅省略、false 或 [{type: 'none'}] 可用;其它代理配置返回 501。
3699
+ * 让会话经一个固定的外部 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),不必每次会话重复传。
3700
3700
  */
3701
- proxies?: boolean | Array<unknown>;
3701
+ proxies?: boolean | [
3702
+ {
3703
+ /**
3704
+ * 固定为 external:经一个你自己的外部 HTTP 代理出网。
3705
+ */
3706
+ type: 'external';
3707
+ /**
3708
+ * 代理地址,host:port 或 http://host:port;只支持 HTTP 代理,不接受 socks5:// 等协议,也不接受 localhost 和内网、链路本地地址。
3709
+ */
3710
+ server: string;
3711
+ /**
3712
+ * 代理用户名;有密码时才能填,填了就必须同时给出密码。
3713
+ */
3714
+ username?: string;
3715
+ /**
3716
+ * 代理密码明文,只在这次创建中使用,不会保存;推荐改用 password_secret。与 password_secret 二选一。
3717
+ */
3718
+ password?: string;
3719
+ /**
3720
+ * 推荐:引用保管库里的代理密码,只在连接这个代理的主机时兑换,不会交给网页。与 password 二选一。
3721
+ */
3722
+ password_secret?: {
3723
+ /**
3724
+ * 保存代理密码的保管库 ID,以 vlt_ 开头。
3725
+ */
3726
+ vault_id: string;
3727
+ /**
3728
+ * 保管库中该密码的密钥 ID(不是密码本身)。
3729
+ */
3730
+ secret: string;
3731
+ };
3732
+ } | {
3733
+ /**
3734
+ * 固定为 none:不用代理,与省略 proxies 相同。
3735
+ */
3736
+ type: 'none';
3737
+ }
3738
+ ];
3739
+ /**
3740
+ * 选择浏览器后端,只有 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。
3741
+ */
3742
+ source?: {
3743
+ /**
3744
+ * Browser Run。
3745
+ */
3746
+ type: 'cloud';
3747
+ } | {
3748
+ /**
3749
+ * 自家 Chrome 容器。
3750
+ */
3751
+ type: 'container';
3752
+ } | {
3753
+ /**
3754
+ * 用户自己的浏览器。
3755
+ */
3756
+ type: 'byob';
3757
+ /**
3758
+ * 自带浏览器 ID,以 byb_ 开头。
3759
+ */
3760
+ browser: string;
3761
+ } | {
3762
+ /**
3763
+ * 自带浏览器 ID,type 为 byob 的简写。
3764
+ */
3765
+ byob: string;
3766
+ };
3702
3767
  /**
3703
3768
  * 接受但忽略;不能选择区域。
3704
3769
  */
@@ -3746,9 +3811,9 @@ export type BrowserSessionCreateResult = {
3746
3811
  */
3747
3812
  region: 'ap-southeast-1';
3748
3813
  /**
3749
- * 兼容的代理流量字节数;当前未使用代理,固定返回 0。
3814
+ * 会话经代理链转发的流量字节数(上行与下行之和),容器后端的会话按它计费;Browser Run 和自带浏览器固定为 0,运行中每几分钟更新一次。
3750
3815
  */
3751
- proxyBytes: 0;
3816
+ proxyBytes: number;
3752
3817
  /**
3753
3818
  * 会话创建时刻,UTC ISO 8601 时间。
3754
3819
  */
@@ -3794,17 +3859,34 @@ export type BrowserSessionCreateResult = {
3794
3859
  */
3795
3860
  origin: 'api' | 'connect' | 'console';
3796
3861
  /**
3797
- * 会话的浏览器来源:cloud 是云浏览器,byob 是用户自己配对的浏览器(browser 为它的 ID)。
3862
+ * 会话实际使用的浏览器后端:cloud 是云浏览器(Browser Run),container 是我们自己的 Chrome 容器,byob 是用户自己配对的浏览器(browser 为它的 ID)。type 与 kind 同值,type 是公开名称,kind 为兼容旧读者保留。
3798
3863
  */
3799
3864
  source: {
3800
3865
  /**
3801
3866
  * 云浏览器会话,固定为 cloud。
3802
3867
  */
3868
+ type: 'cloud';
3869
+ /**
3870
+ * 与 type 同值。
3871
+ */
3803
3872
  kind: 'cloud';
3873
+ } | {
3874
+ /**
3875
+ * 自家 Chrome 容器会话,固定为 container。
3876
+ */
3877
+ type: 'container';
3878
+ /**
3879
+ * 与 type 同值。
3880
+ */
3881
+ kind: 'container';
3804
3882
  } | {
3805
3883
  /**
3806
3884
  * 用户自己配对的浏览器会话,固定为 byob。
3807
3885
  */
3886
+ type: 'byob';
3887
+ /**
3888
+ * 与 type 同值。
3889
+ */
3808
3890
  kind: 'byob';
3809
3891
  /**
3810
3892
  * 自带浏览器 ID,以 byb_ 开头。
@@ -3886,7 +3968,7 @@ export type BrowserError = {
3886
3968
  statusCode: number;
3887
3969
  error: string;
3888
3970
  message: string;
3889
- code: 'INVALID_PARAMS' | 'PERMISSION_DENIED' | 'NOT_IMPLEMENTED' | 'INTERNAL' | 'UNAUTHENTICATED' | 'CONNECT_SIGNATURE_INVALID' | 'SESSION_NOT_FOUND' | 'SESSION_ENDED' | 'SESSION_INVALID_STATE' | 'SESSION_NAME_IN_USE' | 'CONTEXT_NOT_FOUND' | 'BROWSER_NOT_GRANTED' | 'BROWSER_OFFLINE' | 'BROWSER_REVOKED' | 'PAIRING_NOT_FOUND' | 'BROWSER_NOT_FOUND' | 'CONTEXT_LOCKED' | 'CONTEXT_READ_ONLY' | 'HANDOFF_NOT_PENDING' | 'CONCURRENCY_LIMIT' | 'RATE_LIMITED' | 'INSUFFICIENT_BALANCE' | 'QUOTA_EXHAUSTED' | 'ACCOUNT_SUSPENDED' | 'PROVIDER_UNSUPPORTED' | 'PROVIDER_CAPACITY' | 'PROVIDER_FAILED' | 'SERVICE_UNAVAILABLE' | 'PARENT_NOT_FOUND' | 'INVALID_FILTER' | 'INVALID_PAGE_TOKEN' | 'ACTION_TAB_NOT_FOUND' | 'ACTION_NO_TAB' | 'ACTION_REF_STALE' | 'ACTION_FAILED' | 'ACTION_TIMEOUT' | 'ACTION_RESULT_TOO_LARGE';
3971
+ code: 'INVALID_PARAMS' | 'PERMISSION_DENIED' | 'NOT_IMPLEMENTED' | 'INTERNAL' | 'UNAUTHENTICATED' | 'CONNECT_SIGNATURE_INVALID' | 'SESSION_NOT_FOUND' | 'SESSION_ENDED' | 'SESSION_INVALID_STATE' | 'SESSION_NAME_IN_USE' | 'CONTEXT_NOT_FOUND' | 'BROWSER_OFFLINE' | 'BROWSER_REVOKED' | 'PAIRING_NOT_FOUND' | 'BROWSER_NOT_FOUND' | 'CONTEXT_LOCKED' | 'CONTEXT_READ_ONLY' | 'HANDOFF_NOT_PENDING' | 'CONCURRENCY_LIMIT' | 'RATE_LIMITED' | 'INSUFFICIENT_BALANCE' | 'QUOTA_EXHAUSTED' | 'ACCOUNT_SUSPENDED' | 'PROVIDER_UNSUPPORTED' | 'PROVIDER_CAPACITY' | 'PROVIDER_FAILED' | 'SERVICE_UNAVAILABLE' | 'PARENT_NOT_FOUND' | 'INVALID_FILTER' | 'INVALID_PAGE_TOKEN' | 'ACTION_TAB_NOT_FOUND' | 'ACTION_NO_TAB' | 'ACTION_REF_STALE' | 'ACTION_FAILED' | 'ACTION_TIMEOUT' | 'ACTION_RESULT_TOO_LARGE';
3890
3972
  };
3891
3973
  export type BrowserSession = {
3892
3974
  /**
@@ -3910,9 +3992,9 @@ export type BrowserSession = {
3910
3992
  */
3911
3993
  region: 'ap-southeast-1';
3912
3994
  /**
3913
- * 兼容的代理流量字节数;当前未使用代理,固定返回 0。
3995
+ * 会话经代理链转发的流量字节数(上行与下行之和),容器后端的会话按它计费;Browser Run 和自带浏览器固定为 0,运行中每几分钟更新一次。
3914
3996
  */
3915
- proxyBytes: 0;
3997
+ proxyBytes: number;
3916
3998
  /**
3917
3999
  * 会话创建时刻,UTC ISO 8601 时间。
3918
4000
  */
@@ -3958,17 +4040,34 @@ export type BrowserSession = {
3958
4040
  */
3959
4041
  origin: 'api' | 'connect' | 'console';
3960
4042
  /**
3961
- * 会话的浏览器来源:cloud 是云浏览器,byob 是用户自己配对的浏览器(browser 为它的 ID)。
4043
+ * 会话实际使用的浏览器后端:cloud 是云浏览器(Browser Run),container 是我们自己的 Chrome 容器,byob 是用户自己配对的浏览器(browser 为它的 ID)。type 与 kind 同值,type 是公开名称,kind 为兼容旧读者保留。
3962
4044
  */
3963
4045
  source: {
3964
4046
  /**
3965
4047
  * 云浏览器会话,固定为 cloud。
3966
4048
  */
4049
+ type: 'cloud';
4050
+ /**
4051
+ * 与 type 同值。
4052
+ */
3967
4053
  kind: 'cloud';
4054
+ } | {
4055
+ /**
4056
+ * 自家 Chrome 容器会话,固定为 container。
4057
+ */
4058
+ type: 'container';
4059
+ /**
4060
+ * 与 type 同值。
4061
+ */
4062
+ kind: 'container';
3968
4063
  } | {
3969
4064
  /**
3970
4065
  * 用户自己配对的浏览器会话,固定为 byob。
3971
4066
  */
4067
+ type: 'byob';
4068
+ /**
4069
+ * 与 type 同值。
4070
+ */
3972
4071
  kind: 'byob';
3973
4072
  /**
3974
4073
  * 自带浏览器 ID,以 byb_ 开头。
@@ -4052,9 +4151,9 @@ export type BrowserSessionGetResult = {
4052
4151
  */
4053
4152
  region: 'ap-southeast-1';
4054
4153
  /**
4055
- * 兼容的代理流量字节数;当前未使用代理,固定返回 0。
4154
+ * 会话经代理链转发的流量字节数(上行与下行之和),容器后端的会话按它计费;Browser Run 和自带浏览器固定为 0,运行中每几分钟更新一次。
4056
4155
  */
4057
- proxyBytes: 0;
4156
+ proxyBytes: number;
4058
4157
  /**
4059
4158
  * 会话创建时刻,UTC ISO 8601 时间。
4060
4159
  */
@@ -4100,17 +4199,34 @@ export type BrowserSessionGetResult = {
4100
4199
  */
4101
4200
  origin: 'api' | 'connect' | 'console';
4102
4201
  /**
4103
- * 会话的浏览器来源:cloud 是云浏览器,byob 是用户自己配对的浏览器(browser 为它的 ID)。
4202
+ * 会话实际使用的浏览器后端:cloud 是云浏览器(Browser Run),container 是我们自己的 Chrome 容器,byob 是用户自己配对的浏览器(browser 为它的 ID)。type 与 kind 同值,type 是公开名称,kind 为兼容旧读者保留。
4104
4203
  */
4105
4204
  source: {
4106
4205
  /**
4107
4206
  * 云浏览器会话,固定为 cloud。
4108
4207
  */
4208
+ type: 'cloud';
4209
+ /**
4210
+ * 与 type 同值。
4211
+ */
4109
4212
  kind: 'cloud';
4213
+ } | {
4214
+ /**
4215
+ * 自家 Chrome 容器会话,固定为 container。
4216
+ */
4217
+ type: 'container';
4218
+ /**
4219
+ * 与 type 同值。
4220
+ */
4221
+ kind: 'container';
4110
4222
  } | {
4111
4223
  /**
4112
4224
  * 用户自己配对的浏览器会话,固定为 byob。
4113
4225
  */
4226
+ type: 'byob';
4227
+ /**
4228
+ * 与 type 同值。
4229
+ */
4114
4230
  kind: 'byob';
4115
4231
  /**
4116
4232
  * 自带浏览器 ID,以 byb_ 开头。
@@ -4311,6 +4427,36 @@ export type BrowserContextCreateResult = {
4311
4427
  * UTC timestamp when a session last started with this context; absent if it has never been used.
4312
4428
  */
4313
4429
  lastUsedAt?: string;
4430
+ /**
4431
+ * 登录态绑定的固定外部代理(只含保管库引用,不含密码);没有绑定时省略。
4432
+ */
4433
+ proxy?: {
4434
+ /**
4435
+ * 固定为 external:经一个你自己的外部 HTTP 代理出网。
4436
+ */
4437
+ type: 'external';
4438
+ /**
4439
+ * 代理地址,host:port 或 http://host:port;只支持 HTTP 代理,不接受 socks5:// 等协议,也不接受 localhost 和内网、链路本地地址。
4440
+ */
4441
+ server: string;
4442
+ /**
4443
+ * 代理用户名;有密码时才能填,填了就必须同时给出密码。
4444
+ */
4445
+ username?: string;
4446
+ /**
4447
+ * 必须用这种形式:引用保管库里的代理密码,只在连接这个代理的主机时兑换,不会交给网页。登录态里只存引用,传明文 password 返回 400 INVALID_PARAMS。
4448
+ */
4449
+ password_secret?: {
4450
+ /**
4451
+ * 保存代理密码的保管库 ID,以 vlt_ 开头。
4452
+ */
4453
+ vault_id: string;
4454
+ /**
4455
+ * 保管库中该密码的密钥 ID(不是密码本身)。
4456
+ */
4457
+ secret: string;
4458
+ };
4459
+ };
4314
4460
  /**
4315
4461
  * Empty compatibility field; context encryption keys are held by the server.
4316
4462
  */
@@ -4371,6 +4517,36 @@ export type BrowserContext = {
4371
4517
  * UTC timestamp when a session last started with this context; absent if it has never been used.
4372
4518
  */
4373
4519
  lastUsedAt?: string;
4520
+ /**
4521
+ * 登录态绑定的固定外部代理(只含保管库引用,不含密码);没有绑定时省略。
4522
+ */
4523
+ proxy?: {
4524
+ /**
4525
+ * 固定为 external:经一个你自己的外部 HTTP 代理出网。
4526
+ */
4527
+ type: 'external';
4528
+ /**
4529
+ * 代理地址,host:port 或 http://host:port;只支持 HTTP 代理,不接受 socks5:// 等协议,也不接受 localhost 和内网、链路本地地址。
4530
+ */
4531
+ server: string;
4532
+ /**
4533
+ * 代理用户名;有密码时才能填,填了就必须同时给出密码。
4534
+ */
4535
+ username?: string;
4536
+ /**
4537
+ * 必须用这种形式:引用保管库里的代理密码,只在连接这个代理的主机时兑换,不会交给网页。登录态里只存引用,传明文 password 返回 400 INVALID_PARAMS。
4538
+ */
4539
+ password_secret?: {
4540
+ /**
4541
+ * 保存代理密码的保管库 ID,以 vlt_ 开头。
4542
+ */
4543
+ vault_id: string;
4544
+ /**
4545
+ * 保管库中该密码的密钥 ID(不是密码本身)。
4546
+ */
4547
+ secret: string;
4548
+ };
4549
+ };
4374
4550
  };
4375
4551
  export type BrowserByobPairing = {
4376
4552
  /**
@@ -4411,14 +4587,6 @@ export type BrowserByobBrowser = {
4411
4587
  * 配对用的扩展 ID。
4412
4588
  */
4413
4589
  extension_id: string;
4414
- /**
4415
- * 被授权驱动这个浏览器的智能体 ID 列表;智能体不在列表里时不能打开它的会话。空数组表示没有智能体被授权。
4416
- */
4417
- granted_agents: Array<string>;
4418
- /**
4419
- * 允许智能体访问的站点列表;空数组表示不限制 http(s) 站点。这是护栏,不是数据边界。
4420
- */
4421
- allowed_sites: Array<string>;
4422
4590
  /**
4423
4591
  * 扩展的连接当前是否在线;连接对象上线之前固定为 false。
4424
4592
  */
@@ -34932,6 +35100,14 @@ export type SandboxSandboxNetworkConfig = {
34932
35100
  rules?: {
34933
35101
  [key: string]: Array<SandboxSandboxNetworkRule>;
34934
35102
  };
35103
+ /**
35104
+ * Own face, persistent sandboxes only (autoPause: true, or ephemeral: false): true gives the sandbox one fixed public egress IP for its whole life, held through pause and resume and released when the sandbox is deleted. Without it the egress IP is not stable: it changes when a spot machine is reclaimed, when a paused machine starts again, and when the machine is rebuilt. An ephemeral sandbox returns INVALID_PARAMS; the E2B face refuses the field; it is placed only on capacity that declares static IPs, and without such capacity the create does not start (it never falls back to a changing IP). Billed as the usage item sandbox:public_ip:hours from allocation to release, paused time included, plus outbound traffic as usual.
35105
+ */
35106
+ staticEgressIp?: boolean;
35107
+ /**
35108
+ * Own face, read-only: the fixed public egress IP of a sandbox created with staticEgressIp: true, present once the machine has bound it; add this address to the IP allowlist of the service you call (for example a WeCom trusted IP list). Absent on a sandbox that did not ask for a static IP, because its public address can change.
35109
+ */
35110
+ readonly egressIp?: string;
34935
35111
  };
34936
35112
  /**
34937
35113
  * Sandbox lifecycle policy returned by sandbox info.
@@ -48068,7 +48244,7 @@ export type DevopsPlannedSkip = {
48068
48244
  /**
48069
48245
  * Why it is left out, which is what tells a deliberate skip apart from an oversight.
48070
48246
  */
48071
- reason: 'unchanged' | 'newer_checkpoint' | 'not_requested' | 'callee_excluded' | 'artifact_identical';
48247
+ reason: 'unchanged' | 'newer_checkpoint' | 'not_requested' | 'callee_excluded' | 'not_deployed_upstream' | 'artifact_identical';
48072
48248
  };
48073
48249
  /**
48074
48250
  * The migrations one target has pending, as the plan found them.
@@ -50923,6 +51099,58 @@ export type UpdateMediaPipelineRequestWritable = {
50923
51099
  * Models to use for completion
50924
51100
  */
50925
51101
  export type OpenaiChatModelNamesWritable = Array<OpenaiModelName & unknown>;
51102
+ export type SandboxSandboxDetailWritable = {
51103
+ /**
51104
+ * Identifier of the template from which is the sandbox created
51105
+ */
51106
+ templateID: string;
51107
+ /**
51108
+ * Alias of the template
51109
+ */
51110
+ alias?: string;
51111
+ /**
51112
+ * Identifier of the sandbox
51113
+ */
51114
+ sandboxID: string;
51115
+ /**
51116
+ * Identifier of the client
51117
+ *
51118
+ * @deprecated
51119
+ */
51120
+ clientID: string;
51121
+ /**
51122
+ * Time when the sandbox was started
51123
+ */
51124
+ startedAt: string;
51125
+ /**
51126
+ * Time when the sandbox will expire
51127
+ */
51128
+ endAt: string;
51129
+ envdVersion: SandboxEnvdVersion;
51130
+ /**
51131
+ * Access token used for envd communication
51132
+ */
51133
+ envdAccessToken?: string;
51134
+ /**
51135
+ * Whether internet access was explicitly enabled or disabled for the sandbox. Null means it was not explicitly set.
51136
+ */
51137
+ allowInternetAccess?: boolean;
51138
+ /**
51139
+ * Base domain where the sandbox traffic is accessible
51140
+ */
51141
+ domain?: string;
51142
+ cpuCount: SandboxCpuCount;
51143
+ memoryMB: SandboxMemoryMb;
51144
+ diskSizeMB: SandboxDiskSizeMb;
51145
+ metadata?: SandboxSandboxMetadata;
51146
+ state: SandboxSandboxState;
51147
+ network?: SandboxSandboxNetworkConfigWritable;
51148
+ lifecycle?: SandboxSandboxLifecycle;
51149
+ /**
51150
+ * Volumes mounted into the sandbox.
51151
+ */
51152
+ volumeMounts?: Array<SandboxSandboxVolumeMount>;
51153
+ };
50926
51154
  /**
50927
51155
  * Free-form string key/value pairs stored with the session, changed through sessions.update patch semantics.
50928
51156
  */
@@ -51502,6 +51730,94 @@ export type MediaSemanticSearchResultWritable = {
51502
51730
  */
51503
51731
  not_ready_excluded: number;
51504
51732
  };
51733
+ /**
51734
+ * Sandbox creation request. All system communication with the sandbox is always secured; the template's envd version must support secured access.
51735
+ */
51736
+ export type SandboxNewSandboxV2Writable = {
51737
+ /**
51738
+ * Identifier of the required template
51739
+ */
51740
+ templateID: string;
51741
+ /**
51742
+ * Lifetime of the new sandbox in seconds. Defaults to 300 seconds when omitted.
51743
+ */
51744
+ timeout?: number;
51745
+ /**
51746
+ * Lifecycle declaration on the E2B-compatible face. true creates a persistent sandbox that pauses at its timeout and can be resumed; false or absent creates an ephemeral sandbox that ends at its timeout and keeps nothing. Keep true only for long-lived computers. The own face declares with ephemeral instead.
51747
+ */
51748
+ autoPause?: boolean;
51749
+ /**
51750
+ * Controls the snapshot kind taken when the sandbox auto-pauses on timeout (only relevant when autoPause is true). When false, the auto-pause drops the in-memory state and persists only the filesystem (a filesystem-only snapshot); resuming it cold-boots (reboots) the sandbox from disk. Such a snapshot cannot be auto-resumed by traffic and must be resumed explicitly, so it cannot be combined with autoResume. Defaults to true (full memory snapshot).
51751
+ */
51752
+ autoPauseMemory?: boolean;
51753
+ autoResume?: SandboxSandboxAutoResumeConfig;
51754
+ /**
51755
+ * Allow sandbox to access the internet. When set to false, it behaves the same as specifying denyOut to 0.0.0.0/0 in the network config.
51756
+ */
51757
+ allow_internet_access?: boolean;
51758
+ network?: SandboxSandboxNetworkConfigWritable;
51759
+ metadata?: SandboxSandboxMetadata;
51760
+ envVars?: SandboxEnvVars;
51761
+ mcp?: SandboxMcp;
51762
+ iam?: SandboxSandboxIam;
51763
+ /**
51764
+ * Volumes to mount into the sandbox, each with the volume name and the path inside the sandbox.
51765
+ */
51766
+ volumeMounts?: Array<SandboxSandboxVolumeMount>;
51767
+ /**
51768
+ * Own face, required unless sku is named: true for an ephemeral sandbox (ends at its timeout, never pauses, cannot be snapshotted), false for a persistent one (pauses, resumes, snapshots, mounts volumes). Leaving it out returns INVALID_PARAMS.
51769
+ */
51770
+ ephemeral?: boolean;
51771
+ /**
51772
+ * 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.
51773
+ */
51774
+ size?: string;
51775
+ /**
51776
+ * Own face: a display name for the sandbox, 1 to 64 characters. Omitted, one is generated from the template.
51777
+ */
51778
+ name?: string;
51779
+ /**
51780
+ * 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.
51781
+ */
51782
+ waitForReady?: boolean;
51783
+ /**
51784
+ * Own face: what happens at the timeout. pause needs ephemeral: false; must agree with autoPause when both are sent.
51785
+ */
51786
+ onExpire?: 'kill' | 'pause';
51787
+ /**
51788
+ * Own face, persistent sandboxes only: pause after this many milliseconds without activity; null turns the idle pause off.
51789
+ */
51790
+ idleTimeout?: number;
51791
+ /**
51792
+ * 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.
51793
+ */
51794
+ idleActivity?: 'traffic' | 'caller';
51795
+ /**
51796
+ * Own face: a demand-profile SKU <kind>.<image>.<size>, such as run.document.medium (someone waits; starts fast), job.base.large (background work that must not be cut off), batch.base.large (retried work that may be reclaimed) or computer.base.medium (keeps its disk). It fixes ephemeral, interruptible, size and the template, so those may be left out; any of them you also send must agree with it, otherwise the create fails with INVALID_PARAMS naming the field. The sandbox answers it back as sku and as the read-only label praxis.sku.
51797
+ */
51798
+ sku?: string;
51799
+ /**
51800
+ * Own face: the kind of sandbox you need, when you do not name a full sku. The sandbox completes <kind>.<image>.<size> from the template you start (its family, or custom for your own environment or snapshot) and the size you send, or medium. run is for work someone waits for (starts fast), job is background work that must not be cut off, batch is retried work that may be reclaimed (spot capacity), computer keeps its disk, and compat is the E2B-compatible persistent series. The kind fixes ephemeral and interruptible, so leave those out; if you also send them, or a sku of another kind, the create fails with INVALID_PARAMS naming the field. The light template always starts the light shell, whatever the kind says.
51801
+ */
51802
+ kind?: 'run' | 'job' | 'batch' | 'computer' | 'compat';
51803
+ /**
51804
+ * Own face, ephemeral sandboxes only: true says this sandbox may be reclaimed while it runs (a build or test you retry), which lets it run on cheaper spot capacity. A reclaimed sandbox ends with PROVIDER_FAILED; create it again. Absent or false keeps the usual capacity.
51805
+ */
51806
+ interruptible?: boolean;
51807
+ /**
51808
+ * 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.
51809
+ */
51810
+ onLoss?: 'fail' | 'rebuild';
51811
+ /**
51812
+ * 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.
51813
+ */
51814
+ outputs?: Array<{
51815
+ /**
51816
+ * Absolute path of a directory or file inside the sandbox.
51817
+ */
51818
+ path: string;
51819
+ }>;
51820
+ };
51505
51821
  /**
51506
51822
  * Arguments the model passed to the tool.
51507
51823
  */
@@ -51580,6 +51896,43 @@ export type AnthropicAnonymous204Writable = {
51580
51896
  export type AnthropicAnonymous206Writable = {
51581
51897
  [key: string]: unknown;
51582
51898
  };
51899
+ /**
51900
+ * Network policy of the sandbox: public access, egress allow and deny lists and proxy.
51901
+ */
51902
+ export type SandboxSandboxNetworkConfigWritable = {
51903
+ /**
51904
+ * Specify if the sandbox URLs should be accessible only with authentication.
51905
+ */
51906
+ allowPublicTraffic?: boolean;
51907
+ /**
51908
+ * List of allowed destinations for egress traffic. Each entry can be a CIDR block (e.g. "8.8.8.8/32"), a bare IP address (e.g. "8.8.8.8"), or a domain name (e.g. "example.com", "*.example.com"). Allowed entries always take precedence over denied entries.
51909
+ */
51910
+ allowOut?: Array<string>;
51911
+ /**
51912
+ * List of denied CIDR blocks or IP addresses for egress traffic. Domain names are not supported for deny rules.
51913
+ */
51914
+ denyOut?: Array<string>;
51915
+ egressProxy?: SandboxSandboxEgressProxyConfig;
51916
+ /**
51917
+ * Specify host mask which will be used for all sandbox requests
51918
+ */
51919
+ maskRequestHost?: string;
51920
+ /**
51921
+ * Unlike E2B, network.httpsPorts is rejected; omit it when creating a sandbox.
51922
+ */
51923
+ httpsPorts?: Array<number>;
51924
+ /**
51925
+ * Per-domain transform rules applied to matching outbound HTTPS requests. Keys may be exact DNS names (for example, "api.example.com") or a leading wildcard (for example, "*.example.com"), and are normalized to lowercase on write. Wildcards match subdomains at any depth but not the apex domain; a bare "*" is invalid. Exact rules take precedence, followed by the longest matching wildcard suffix, and matching rule sets are not merged. Broad wildcards such as "*.com" are allowed and may expose transformed credentials to every matching destination the sandbox contacts. Rules do not grant network access; configure allowOut separately to permit the destination.
51926
+ *
51927
+ */
51928
+ rules?: {
51929
+ [key: string]: Array<SandboxSandboxNetworkRule>;
51930
+ };
51931
+ /**
51932
+ * Own face, persistent sandboxes only (autoPause: true, or ephemeral: false): true gives the sandbox one fixed public egress IP for its whole life, held through pause and resume and released when the sandbox is deleted. Without it the egress IP is not stable: it changes when a spot machine is reclaimed, when a paused machine starts again, and when the machine is rebuilt. An ephemeral sandbox returns INVALID_PARAMS; the E2B face refuses the field; it is placed only on capacity that declares static IPs, and without such capacity the create does not start (it never falls back to a changing IP). Billed as the usage item sandbox:public_ip:hours from allocation to release, paused time included, plus outbound traffic as usual.
51933
+ */
51934
+ staticEgressIp?: boolean;
51935
+ };
51583
51936
  /**
51584
51937
  * Free-form string key/value pairs.
51585
51938
  */
@@ -54307,6 +54660,86 @@ export type ListAgentInboxLettersResponses = {
54307
54660
  };
54308
54661
  };
54309
54662
  export type ListAgentInboxLettersResponse = ListAgentInboxLettersResponses[keyof ListAgentInboxLettersResponses];
54663
+ export type ListAgentDeviceLocalSessionsData = {
54664
+ body?: never;
54665
+ path: {
54666
+ /**
54667
+ * 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_….
54668
+ */
54669
+ agent_id: string;
54670
+ /**
54671
+ * The paired desktop device (byd_ and 26 hex characters) whose sessions to list; you must be the person who paired it.
54672
+ */
54673
+ device_id: string;
54674
+ };
54675
+ query: {
54676
+ /**
54677
+ * The absolute directory on the device, exactly as the device registered it and bound it to this agent.
54678
+ */
54679
+ cwd: string;
54680
+ /**
54681
+ * The next_cursor of the previous page; leave it out for the first page.
54682
+ */
54683
+ cursor?: string;
54684
+ };
54685
+ url: '/agent/v1/agents/{agent_id}/devices/{device_id}/local-sessions';
54686
+ };
54687
+ export type ListAgentDeviceLocalSessionsErrors = {
54688
+ /**
54689
+ * INVALID_PARAMS: cwd is missing, not absolute or not bound to this agent on that device, the device is not one you paired, or a query parameter is unsupported; ASSUME_AGENT_REQUIRED: the agent is not a BYOA agent.
54690
+ */
54691
+ 400: unknown;
54692
+ /**
54693
+ * Authenticate with your own API key or a console session; an agent's or robot's credential cannot list a person's device.
54694
+ */
54695
+ 401: unknown;
54696
+ /**
54697
+ * permission_error: the credential's role or bound resources do not allow this operation. Use a key with access to the agent domain and its resources.
54698
+ */
54699
+ 403: AgentError;
54700
+ /**
54701
+ * AGENT_NOT_FOUND: no agent with this reference exists in your organization; list agents with agents.list.
54702
+ */
54703
+ 404: unknown;
54704
+ /**
54705
+ * DEVICE_NOT_READY: the device is offline; retry once it is connected. DEVICE_TIMEOUT (504) means it is connected but did not answer in time.
54706
+ */
54707
+ 503: unknown;
54708
+ };
54709
+ export type ListAgentDeviceLocalSessionsError = ListAgentDeviceLocalSessionsErrors[keyof ListAgentDeviceLocalSessionsErrors];
54710
+ export type ListAgentDeviceLocalSessionsResponses = {
54711
+ /**
54712
+ * One page of the device's sessions for that directory, newest first.
54713
+ */
54714
+ 200: {
54715
+ /**
54716
+ * The sessions of this page; empty when the directory has none.
54717
+ */
54718
+ data: Array<{
54719
+ /**
54720
+ * The Claude Code session id on the device; pass it as runtime.resume_session_id when creating a session to continue it.
54721
+ */
54722
+ id: string;
54723
+ /**
54724
+ * The session's title as Claude Code shows it; empty when it has none.
54725
+ */
54726
+ title: string;
54727
+ /**
54728
+ * When the session was last written to, RFC 3339; sessions are ordered newest first.
54729
+ */
54730
+ updated_at: string | null;
54731
+ /**
54732
+ * The directory the session ran in on the device.
54733
+ */
54734
+ cwd: string | null;
54735
+ }>;
54736
+ /**
54737
+ * Pass as cursor for the next page; null on the last page.
54738
+ */
54739
+ next_cursor: string | null;
54740
+ };
54741
+ };
54742
+ export type ListAgentDeviceLocalSessionsResponse = ListAgentDeviceLocalSessionsResponses[keyof ListAgentDeviceLocalSessionsResponses];
54310
54743
  export type CreateAgentLoginIntentData = {
54311
54744
  body?: never;
54312
54745
  path?: never;
@@ -55207,6 +55640,15 @@ export type ApplyAgentVersionResponses = {
55207
55640
  name: string;
55208
55641
  }>;
55209
55642
  };
55643
+ /**
55644
+ * 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.
55645
+ */
55646
+ browser?: {
55647
+ /**
55648
+ * A paired browser's id (byb_ and 26 lowercase hex characters), from browser.byob.browsers.list.
55649
+ */
55650
+ byob: string;
55651
+ } | null;
55210
55652
  /**
55211
55653
  * Praxis extension: MA only has session-scoped temporary containers and memory_stores, not durable browsable computers. computer_id selects a tenant-owned active computer. Session selection overrides the agent default; a sandbox environment_id and computer_id cannot be combined. Omitted when no computer is selected.
55212
55654
  */
@@ -55592,7 +56034,7 @@ export type ApplyAgentVersionResponses = {
55592
56034
  */
55593
56035
  environment_id?: string | null;
55594
56036
  /**
55595
- * Default vaults of this service or assume agent version: the vault_ids new sessions get when they name none. Present for service and assume agents. Follows the version like other configuration: a version saved with apply=false does not change the vaults in effect. Versions saved before this field existed read as []. /agent/v1 only.
56037
+ * Default vaults of this service or assume agent version: the vault_ids every new session carries; a session's own vault_ids are added to them. Present for service and assume agents. Follows the version like other configuration: a version saved with apply=false does not change the vaults in effect. Versions saved before this field existed read as []. /agent/v1 only.
55596
56038
  */
55597
56039
  vault_ids?: Array<string>;
55598
56040
  /**
@@ -56458,6 +56900,15 @@ export type UnarchiveAgentResponses = {
56458
56900
  name: string;
56459
56901
  }>;
56460
56902
  };
56903
+ /**
56904
+ * 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.
56905
+ */
56906
+ browser?: {
56907
+ /**
56908
+ * A paired browser's id (byb_ and 26 lowercase hex characters), from browser.byob.browsers.list.
56909
+ */
56910
+ byob: string;
56911
+ } | null;
56461
56912
  /**
56462
56913
  * Praxis extension: MA only has session-scoped temporary containers and memory_stores, not durable browsable computers. computer_id selects a tenant-owned active computer. Session selection overrides the agent default; a sandbox environment_id and computer_id cannot be combined. Omitted when no computer is selected.
56463
56914
  */
@@ -56843,7 +57294,7 @@ export type UnarchiveAgentResponses = {
56843
57294
  */
56844
57295
  environment_id?: string | null;
56845
57296
  /**
56846
- * Default vaults of this service or assume agent version: the vault_ids new sessions get when they name none. Present for service and assume agents. Follows the version like other configuration: a version saved with apply=false does not change the vaults in effect. Versions saved before this field existed read as []. /agent/v1 only.
57297
+ * Default vaults of this service or assume agent version: the vault_ids every new session carries; a session's own vault_ids are added to them. Present for service and assume agents. Follows the version like other configuration: a version saved with apply=false does not change the vaults in effect. Versions saved before this field existed read as []. /agent/v1 only.
56847
57298
  */
56848
57299
  vault_ids?: Array<string>;
56849
57300
  /**
@@ -59312,9 +59763,13 @@ export type ComputersRetrieveResponse = ComputersRetrieveResponses[keyof Compute
59312
59763
  export type ComputersUpdateData = {
59313
59764
  body: {
59314
59765
  /**
59315
- * Name of the entry or object.
59766
+ * New display name, 1 to 255 characters after trimming. Omit to keep the current name.
59316
59767
  */
59317
- name: string;
59768
+ name?: string;
59769
+ /**
59770
+ * 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.
59771
+ */
59772
+ environment_id?: string | null;
59318
59773
  };
59319
59774
  path: {
59320
59775
  /**
@@ -61484,7 +61939,7 @@ export type ComputersFilesConvertResponse = ComputersFilesConvertResponses[keyof
61484
61939
  export type ConnectComputerData = {
61485
61940
  body?: {
61486
61941
  /**
61487
- * 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.
61942
+ * Accepted for compatibility and ignored: light and heavy both reach the same machine, because a Computer is one machine. Omit it.
61488
61943
  */
61489
61944
  need?: 'light' | 'heavy';
61490
61945
  };
@@ -69088,7 +69543,7 @@ export type BrowserListSessionsErrors = {
69088
69543
  */
69089
69544
  402: BrowserError;
69090
69545
  /**
69091
- * PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
69546
+ * PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
69092
69547
  */
69093
69548
  403: BrowserError;
69094
69549
  /**
@@ -69169,7 +69624,7 @@ export type BrowserCreateSessionErrors = {
69169
69624
  */
69170
69625
  402: BrowserError;
69171
69626
  /**
69172
- * PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
69627
+ * PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
69173
69628
  */
69174
69629
  403: BrowserError;
69175
69630
  /**
@@ -69255,7 +69710,7 @@ export type BrowserGetSessionErrors = {
69255
69710
  */
69256
69711
  402: BrowserError;
69257
69712
  /**
69258
- * PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
69713
+ * PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
69259
69714
  */
69260
69715
  403: BrowserError;
69261
69716
  /**
@@ -69337,7 +69792,7 @@ export type BrowserCloseSessionErrors = {
69337
69792
  */
69338
69793
  402: BrowserError;
69339
69794
  /**
69340
- * PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
69795
+ * PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
69341
69796
  */
69342
69797
  403: BrowserError;
69343
69798
  /**
@@ -69414,7 +69869,7 @@ export type BrowserGetDebugErrors = {
69414
69869
  */
69415
69870
  402: BrowserError;
69416
69871
  /**
69417
- * PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
69872
+ * PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
69418
69873
  */
69419
69874
  403: BrowserError;
69420
69875
  /**
@@ -69504,7 +69959,7 @@ export type BrowserListEventsErrors = {
69504
69959
  */
69505
69960
  402: BrowserError;
69506
69961
  /**
69507
- * PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
69962
+ * PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
69508
69963
  */
69509
69964
  403: BrowserError;
69510
69965
  /**
@@ -69787,7 +70242,7 @@ export type BrowserRunPageActionErrors = {
69787
70242
  */
69788
70243
  402: BrowserError;
69789
70244
  /**
69790
- * PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
70245
+ * PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
69791
70246
  */
69792
70247
  403: BrowserError;
69793
70248
  /**
@@ -70009,7 +70464,7 @@ export type BrowserRequestHandoffErrors = {
70009
70464
  */
70010
70465
  402: BrowserError;
70011
70466
  /**
70012
- * PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
70467
+ * PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
70013
70468
  */
70014
70469
  403: BrowserError;
70015
70470
  /**
@@ -70086,7 +70541,7 @@ export type BrowserCompleteHandoffErrors = {
70086
70541
  */
70087
70542
  402: BrowserError;
70088
70543
  /**
70089
- * PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
70544
+ * PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
70090
70545
  */
70091
70546
  403: BrowserError;
70092
70547
  /**
@@ -70172,7 +70627,7 @@ export type BrowserViewerHeartbeatErrors = {
70172
70627
  */
70173
70628
  402: BrowserError;
70174
70629
  /**
70175
- * PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
70630
+ * PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
70176
70631
  */
70177
70632
  403: BrowserError;
70178
70633
  /**
@@ -70254,7 +70709,7 @@ export type BrowserGetSessionFrameErrors = {
70254
70709
  */
70255
70710
  402: BrowserError;
70256
70711
  /**
70257
- * PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
70712
+ * PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
70258
70713
  */
70259
70714
  403: BrowserError;
70260
70715
  /**
@@ -70339,7 +70794,7 @@ export type BrowserListContextsErrors = {
70339
70794
  */
70340
70795
  402: BrowserError;
70341
70796
  /**
70342
- * PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
70797
+ * PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
70343
70798
  */
70344
70799
  403: BrowserError;
70345
70800
  /**
@@ -70416,6 +70871,36 @@ export type BrowserCreateContextData = {
70416
70871
  labels?: {
70417
70872
  [key: string]: string;
70418
70873
  };
70874
+ /**
70875
+ * 给登录态绑定一个固定的外部代理(如住宅 IP),使用这个登录态的会话没有写 proxies 时都经它出网,让同一账号始终从同一个出口地址出去。只存保管库引用(password_secret),不存密码;会话自己写了 proxies 时以会话的为准。需要组织已开通容器后端,否则返回 501 PROVIDER_UNSUPPORTED。
70876
+ */
70877
+ proxy?: {
70878
+ /**
70879
+ * 固定为 external:经一个你自己的外部 HTTP 代理出网。
70880
+ */
70881
+ type: 'external';
70882
+ /**
70883
+ * 代理地址,host:port 或 http://host:port;只支持 HTTP 代理,不接受 socks5:// 等协议,也不接受 localhost 和内网、链路本地地址。
70884
+ */
70885
+ server: string;
70886
+ /**
70887
+ * 代理用户名;有密码时才能填,填了就必须同时给出密码。
70888
+ */
70889
+ username?: string;
70890
+ /**
70891
+ * 必须用这种形式:引用保管库里的代理密码,只在连接这个代理的主机时兑换,不会交给网页。登录态里只存引用,传明文 password 返回 400 INVALID_PARAMS。
70892
+ */
70893
+ password_secret?: {
70894
+ /**
70895
+ * 保存代理密码的保管库 ID,以 vlt_ 开头。
70896
+ */
70897
+ vault_id: string;
70898
+ /**
70899
+ * 保管库中该密码的密钥 ID(不是密码本身)。
70900
+ */
70901
+ secret: string;
70902
+ };
70903
+ };
70419
70904
  };
70420
70905
  path?: never;
70421
70906
  query?: never;
@@ -70435,7 +70920,7 @@ export type BrowserCreateContextErrors = {
70435
70920
  */
70436
70921
  402: BrowserError;
70437
70922
  /**
70438
- * PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
70923
+ * PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
70439
70924
  */
70440
70925
  403: BrowserError;
70441
70926
  /**
@@ -70512,7 +70997,7 @@ export type BrowserDeleteContextErrors = {
70512
70997
  */
70513
70998
  402: BrowserError;
70514
70999
  /**
70515
- * PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
71000
+ * PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
70516
71001
  */
70517
71002
  403: BrowserError;
70518
71003
  /**
@@ -70594,7 +71079,7 @@ export type BrowserGetContextErrors = {
70594
71079
  */
70595
71080
  402: BrowserError;
70596
71081
  /**
70597
- * PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
71082
+ * PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
70598
71083
  */
70599
71084
  403: BrowserError;
70600
71085
  /**
@@ -70658,6 +71143,36 @@ export type BrowserUpdateContextData = {
70658
71143
  labels?: {
70659
71144
  [key: string]: string;
70660
71145
  };
71146
+ /**
71147
+ * 给登录态绑定一个固定的外部代理(如住宅 IP),使用这个登录态的会话没有写 proxies 时都经它出网,让同一账号始终从同一个出口地址出去。只存保管库引用(password_secret),不存密码;会话自己写了 proxies 时以会话的为准。需要组织已开通容器后端,否则返回 501 PROVIDER_UNSUPPORTED。 更新时传 null 解除绑定,省略则保留原绑定。
71148
+ */
71149
+ proxy?: {
71150
+ /**
71151
+ * 固定为 external:经一个你自己的外部 HTTP 代理出网。
71152
+ */
71153
+ type: 'external';
71154
+ /**
71155
+ * 代理地址,host:port 或 http://host:port;只支持 HTTP 代理,不接受 socks5:// 等协议,也不接受 localhost 和内网、链路本地地址。
71156
+ */
71157
+ server: string;
71158
+ /**
71159
+ * 代理用户名;有密码时才能填,填了就必须同时给出密码。
71160
+ */
71161
+ username?: string;
71162
+ /**
71163
+ * 必须用这种形式:引用保管库里的代理密码,只在连接这个代理的主机时兑换,不会交给网页。登录态里只存引用,传明文 password 返回 400 INVALID_PARAMS。
71164
+ */
71165
+ password_secret?: {
71166
+ /**
71167
+ * 保存代理密码的保管库 ID,以 vlt_ 开头。
71168
+ */
71169
+ vault_id: string;
71170
+ /**
71171
+ * 保管库中该密码的密钥 ID(不是密码本身)。
71172
+ */
71173
+ secret: string;
71174
+ };
71175
+ } | null;
70661
71176
  };
70662
71177
  path: {
70663
71178
  /**
@@ -70682,7 +71197,7 @@ export type BrowserUpdateContextErrors = {
70682
71197
  */
70683
71198
  402: BrowserError;
70684
71199
  /**
70685
- * PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
71200
+ * PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
70686
71201
  */
70687
71202
  403: BrowserError;
70688
71203
  /**
@@ -70754,7 +71269,7 @@ export type BrowserCreateByobPairingErrors = {
70754
71269
  */
70755
71270
  402: BrowserError;
70756
71271
  /**
70757
- * PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
71272
+ * PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
70758
71273
  */
70759
71274
  403: BrowserError;
70760
71275
  /**
@@ -70835,7 +71350,7 @@ export type BrowserListByobBrowsersErrors = {
70835
71350
  */
70836
71351
  402: BrowserError;
70837
71352
  /**
70838
- * PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
71353
+ * PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
70839
71354
  */
70840
71355
  403: BrowserError;
70841
71356
  /**
@@ -70921,7 +71436,7 @@ export type BrowserGetByobBrowserErrors = {
70921
71436
  */
70922
71437
  402: BrowserError;
70923
71438
  /**
70924
- * PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
71439
+ * PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
70925
71440
  */
70926
71441
  403: BrowserError;
70927
71442
  /**
@@ -70979,14 +71494,6 @@ export type BrowserUpdateByobBrowserData = {
70979
71494
  * 新的显示名称,1–80 个字符。
70980
71495
  */
70981
71496
  name?: string;
70982
- /**
70983
- * 整体替换被授权的智能体 ID 列表;传空数组撤销全部授权。
70984
- */
70985
- granted_agents?: Array<string>;
70986
- /**
70987
- * 整体替换允许站点列表;传空数组表示不限制。
70988
- */
70989
- allowed_sites?: Array<string>;
70990
71497
  };
70991
71498
  path: {
70992
71499
  /**
@@ -71011,7 +71518,7 @@ export type BrowserUpdateByobBrowserErrors = {
71011
71518
  */
71012
71519
  402: BrowserError;
71013
71520
  /**
71014
- * PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
71521
+ * PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
71015
71522
  */
71016
71523
  403: BrowserError;
71017
71524
  /**
@@ -71088,7 +71595,7 @@ export type BrowserDisconnectByobBrowserErrors = {
71088
71595
  */
71089
71596
  402: BrowserError;
71090
71597
  /**
71091
- * PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
71598
+ * PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
71092
71599
  */
71093
71600
  403: BrowserError;
71094
71601
  /**
@@ -71165,7 +71672,7 @@ export type BrowserReadByobPairingErrors = {
71165
71672
  */
71166
71673
  402: BrowserError;
71167
71674
  /**
71168
- * PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
71675
+ * PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
71169
71676
  */
71170
71677
  403: BrowserError;
71171
71678
  /**
@@ -71242,7 +71749,7 @@ export type BrowserClaimByobPairingErrors = {
71242
71749
  */
71243
71750
  402: BrowserError;
71244
71751
  /**
71245
- * PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
71752
+ * PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
71246
71753
  */
71247
71754
  403: BrowserError;
71248
71755
  /**
@@ -71351,7 +71858,7 @@ export type BrowserConnectErrors = {
71351
71858
  */
71352
71859
  402: BrowserError;
71353
71860
  /**
71354
- * PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
71861
+ * PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
71355
71862
  */
71356
71863
  403: BrowserError;
71357
71864
  /**
@@ -71430,7 +71937,7 @@ export type BrowserLiveViewErrors = {
71430
71937
  */
71431
71938
  402: BrowserError;
71432
71939
  /**
71433
- * PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
71940
+ * PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
71434
71941
  */
71435
71942
  403: BrowserError;
71436
71943
  /**
@@ -71500,7 +72007,7 @@ export type BrowserStreamSessionErrors = {
71500
72007
  */
71501
72008
  402: BrowserError;
71502
72009
  /**
71503
- * PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
72010
+ * PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
71504
72011
  */
71505
72012
  403: BrowserError;
71506
72013
  /**
@@ -71577,7 +72084,7 @@ export type BrowserStreamSessionFramesErrors = {
71577
72084
  */
71578
72085
  402: BrowserError;
71579
72086
  /**
71580
- * PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
72087
+ * PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
71581
72088
  */
71582
72089
  403: BrowserError;
71583
72090
  /**
@@ -80762,7 +81269,7 @@ export type ListByodDevicesResponses = {
80762
81269
  */
80763
81270
  id: string;
80764
81271
  /**
80765
- * The device's platform, which decides the use faces it answers. A desktop (macos, linux) pairs only for an organization with the local-agent-connect flag on; windows is not supported yet.
81272
+ * The device's platform, which decides the use faces it answers. A desktop (macos, linux) pairs like a phone; windows is not supported yet.
80766
81273
  */
80767
81274
  platform: 'android' | 'macos' | 'linux';
80768
81275
  /**
@@ -80810,6 +81317,10 @@ export type ListByodDevicesResponses = {
80810
81317
  */
80811
81318
  agent: string;
80812
81319
  }>;
81320
+ /**
81321
+ * The version of the envd on the desktop, as its last hello reported. Null for a phone, for a desktop that has not connected yet, and for an envd that sent no version.
81322
+ */
81323
+ envd_version: string | null;
80813
81324
  /**
80814
81325
  * Whether the desktop's envd lets a platform session run in bypassPermissions (all tool calls without asking). True unless the person ran praxis connect agent --no-bypass on that machine; a session create that asks for bypassPermissions on a device where this is false answers 400 INVALID_PARAMS. False for a phone and for a desktop that has not connected yet.
80815
81326
  */
@@ -80857,7 +81368,7 @@ export type GetByodDeviceResponses = {
80857
81368
  */
80858
81369
  id: string;
80859
81370
  /**
80860
- * The device's platform, which decides the use faces it answers. A desktop (macos, linux) pairs only for an organization with the local-agent-connect flag on; windows is not supported yet.
81371
+ * The device's platform, which decides the use faces it answers. A desktop (macos, linux) pairs like a phone; windows is not supported yet.
80861
81372
  */
80862
81373
  platform: 'android' | 'macos' | 'linux';
80863
81374
  /**
@@ -80905,6 +81416,10 @@ export type GetByodDeviceResponses = {
80905
81416
  */
80906
81417
  agent: string;
80907
81418
  }>;
81419
+ /**
81420
+ * The version of the envd on the desktop, as its last hello reported. Null for a phone, for a desktop that has not connected yet, and for an envd that sent no version.
81421
+ */
81422
+ envd_version: string | null;
80908
81423
  /**
80909
81424
  * Whether the desktop's envd lets a platform session run in bypassPermissions (all tool calls without asking). True unless the person ran praxis connect agent --no-bypass on that machine; a session create that asks for bypassPermissions on a device where this is false answers 400 INVALID_PARAMS. False for a phone and for a desktop that has not connected yet.
80910
81425
  */
@@ -80963,7 +81478,7 @@ export type UpdateByodDeviceResponses = {
80963
81478
  */
80964
81479
  id: string;
80965
81480
  /**
80966
- * The device's platform, which decides the use faces it answers. A desktop (macos, linux) pairs only for an organization with the local-agent-connect flag on; windows is not supported yet.
81481
+ * The device's platform, which decides the use faces it answers. A desktop (macos, linux) pairs like a phone; windows is not supported yet.
80967
81482
  */
80968
81483
  platform: 'android' | 'macos' | 'linux';
80969
81484
  /**
@@ -81011,6 +81526,10 @@ export type UpdateByodDeviceResponses = {
81011
81526
  */
81012
81527
  agent: string;
81013
81528
  }>;
81529
+ /**
81530
+ * The version of the envd on the desktop, as its last hello reported. Null for a phone, for a desktop that has not connected yet, and for an envd that sent no version.
81531
+ */
81532
+ envd_version: string | null;
81014
81533
  /**
81015
81534
  * Whether the desktop's envd lets a platform session run in bypassPermissions (all tool calls without asking). True unless the person ran praxis connect agent --no-bypass on that machine; a session create that asks for bypassPermissions on a device where this is false answers 400 INVALID_PARAMS. False for a phone and for a desktop that has not connected yet.
81016
81535
  */
@@ -81102,7 +81621,7 @@ export type ClaimByodPairingData = {
81102
81621
  */
81103
81622
  body: {
81104
81623
  /**
81105
- * 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.
81624
+ * The device's platform. macos and linux are accepted for every organization; any other value than android, macos or linux answers INVALID_PARAMS.
81106
81625
  */
81107
81626
  platform: 'android' | 'macos' | 'linux';
81108
81627
  /**
@@ -81133,7 +81652,7 @@ export type ClaimByodPairingData = {
81133
81652
  };
81134
81653
  export type ClaimByodPairingErrors = {
81135
81654
  /**
81136
- * INVALID_PARAMS: the body is missing, platform is not android, macos or linux, or a desktop platform was claimed where local-agent-connect is off. Fix the body and resend; the code is not spent by a refused claim.
81655
+ * INVALID_PARAMS: the body is missing, platform is not android, macos or linux. Fix the body and resend; the code is not spent by a refused claim.
81137
81656
  */
81138
81657
  400: unknown;
81139
81658
  /**
@@ -83756,8 +84275,7 @@ export type SessionsUpdateData = {
83756
84275
  */
83757
84276
  title?: null | string;
83758
84277
  /**
83759
- * Vault IDs (`vlt_*`) to attach to the session. Not yet supported;
83760
- * requests setting this field are rejected. Reserved for future use.
84278
+ * 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.
83761
84279
  */
83762
84280
  vault_ids?: Array<string>;
83763
84281
  /**
@@ -84304,6 +84822,15 @@ export type AgentsListResponses = {
84304
84822
  name: string;
84305
84823
  }>;
84306
84824
  };
84825
+ /**
84826
+ * 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.
84827
+ */
84828
+ browser?: {
84829
+ /**
84830
+ * A paired browser's id (byb_ and 26 lowercase hex characters), from browser.byob.browsers.list.
84831
+ */
84832
+ byob: string;
84833
+ } | null;
84307
84834
  /**
84308
84835
  * Praxis extension: MA only has session-scoped temporary containers and memory_stores, not durable browsable computers. computer_id selects a tenant-owned active computer. Session selection overrides the agent default; a sandbox environment_id and computer_id cannot be combined. Omitted when no computer is selected.
84309
84836
  */
@@ -84689,7 +85216,7 @@ export type AgentsListResponses = {
84689
85216
  */
84690
85217
  environment_id?: string | null;
84691
85218
  /**
84692
- * Default vaults of this service or assume agent version: the vault_ids new sessions get when they name none. Present for service and assume agents. Follows the version like other configuration: a version saved with apply=false does not change the vaults in effect. Versions saved before this field existed read as []. /agent/v1 only.
85219
+ * Default vaults of this service or assume agent version: the vault_ids every new session carries; a session's own vault_ids are added to them. Present for service and assume agents. Follows the version like other configuration: a version saved with apply=false does not change the vaults in effect. Versions saved before this field existed read as []. /agent/v1 only.
84693
85220
  */
84694
85221
  vault_ids?: Array<string>;
84695
85222
  /**
@@ -85228,7 +85755,7 @@ export type AgentsCreateData = {
85228
85755
  */
85229
85756
  environment_id?: string | null;
85230
85757
  /**
85231
- * 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.
85758
+ * 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.
85232
85759
  */
85233
85760
  vault_ids?: Array<string>;
85234
85761
  /**
@@ -85253,6 +85780,15 @@ export type AgentsCreateData = {
85253
85780
  name: string;
85254
85781
  }>;
85255
85782
  };
85783
+ /**
85784
+ * 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.
85785
+ */
85786
+ browser?: {
85787
+ /**
85788
+ * A paired browser's id (byb_ and 26 lowercase hex characters), from browser.byob.browsers.list.
85789
+ */
85790
+ byob: string;
85791
+ } | null;
85256
85792
  /**
85257
85793
  * Optional tool preset. minimal enables read, glob and grep; data-editor also enables write and edit; full uses the default toolset with always_allow. Explicit tools override matching preset entries. codemode requires bash and is absent from data-editor.
85258
85794
  */
@@ -85508,6 +86044,15 @@ export type AgentsCreateResponses = {
85508
86044
  name: string;
85509
86045
  }>;
85510
86046
  };
86047
+ /**
86048
+ * 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.
86049
+ */
86050
+ browser?: {
86051
+ /**
86052
+ * A paired browser's id (byb_ and 26 lowercase hex characters), from browser.byob.browsers.list.
86053
+ */
86054
+ byob: string;
86055
+ } | null;
85511
86056
  /**
85512
86057
  * Praxis extension: MA only has session-scoped temporary containers and memory_stores, not durable browsable computers. computer_id selects a tenant-owned active computer. Session selection overrides the agent default; a sandbox environment_id and computer_id cannot be combined. Omitted when no computer is selected.
85513
86058
  */
@@ -85893,7 +86438,7 @@ export type AgentsCreateResponses = {
85893
86438
  */
85894
86439
  environment_id?: string | null;
85895
86440
  /**
85896
- * Default vaults of this service or assume agent version: the vault_ids new sessions get when they name none. Present for service and assume agents. Follows the version like other configuration: a version saved with apply=false does not change the vaults in effect. Versions saved before this field existed read as []. /agent/v1 only.
86441
+ * Default vaults of this service or assume agent version: the vault_ids every new session carries; a session's own vault_ids are added to them. Present for service and assume agents. Follows the version like other configuration: a version saved with apply=false does not change the vaults in effect. Versions saved before this field existed read as []. /agent/v1 only.
85897
86442
  */
85898
86443
  vault_ids?: Array<string>;
85899
86444
  /**
@@ -86170,6 +86715,15 @@ export type AgentsRetrieveResponses = {
86170
86715
  name: string;
86171
86716
  }>;
86172
86717
  };
86718
+ /**
86719
+ * 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.
86720
+ */
86721
+ browser?: {
86722
+ /**
86723
+ * A paired browser's id (byb_ and 26 lowercase hex characters), from browser.byob.browsers.list.
86724
+ */
86725
+ byob: string;
86726
+ } | null;
86173
86727
  /**
86174
86728
  * Praxis extension: MA only has session-scoped temporary containers and memory_stores, not durable browsable computers. computer_id selects a tenant-owned active computer. Session selection overrides the agent default; a sandbox environment_id and computer_id cannot be combined. Omitted when no computer is selected.
86175
86729
  */
@@ -86555,7 +87109,7 @@ export type AgentsRetrieveResponses = {
86555
87109
  */
86556
87110
  environment_id?: string | null;
86557
87111
  /**
86558
- * Default vaults of this service or assume agent version: the vault_ids new sessions get when they name none. Present for service and assume agents. Follows the version like other configuration: a version saved with apply=false does not change the vaults in effect. Versions saved before this field existed read as []. /agent/v1 only.
87112
+ * Default vaults of this service or assume agent version: the vault_ids every new session carries; a session's own vault_ids are added to them. Present for service and assume agents. Follows the version like other configuration: a version saved with apply=false does not change the vaults in effect. Versions saved before this field existed read as []. /agent/v1 only.
86559
87113
  */
86560
87114
  vault_ids?: Array<string>;
86561
87115
  /**
@@ -87103,7 +87657,7 @@ export type AgentsUpdateData = {
87103
87657
  */
87104
87658
  environment_id?: string | null;
87105
87659
  /**
87106
- * 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.
87660
+ * 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.
87107
87661
  */
87108
87662
  vault_ids?: Array<string>;
87109
87663
  /**
@@ -87128,6 +87682,15 @@ export type AgentsUpdateData = {
87128
87682
  name: string;
87129
87683
  }>;
87130
87684
  };
87685
+ /**
87686
+ * 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.
87687
+ */
87688
+ browser?: {
87689
+ /**
87690
+ * A paired browser's id (byb_ and 26 lowercase hex characters), from browser.byob.browsers.list.
87691
+ */
87692
+ byob: string;
87693
+ } | null;
87131
87694
  /**
87132
87695
  * Optional tool preset. minimal enables read, glob and grep; data-editor also enables write and edit; full uses the default toolset with always_allow. Explicit tools override matching preset entries. codemode requires bash and is absent from data-editor.
87133
87696
  */
@@ -87396,6 +87959,15 @@ export type AgentsUpdateResponses = {
87396
87959
  name: string;
87397
87960
  }>;
87398
87961
  };
87962
+ /**
87963
+ * 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.
87964
+ */
87965
+ browser?: {
87966
+ /**
87967
+ * A paired browser's id (byb_ and 26 lowercase hex characters), from browser.byob.browsers.list.
87968
+ */
87969
+ byob: string;
87970
+ } | null;
87399
87971
  /**
87400
87972
  * Praxis extension: MA only has session-scoped temporary containers and memory_stores, not durable browsable computers. computer_id selects a tenant-owned active computer. Session selection overrides the agent default; a sandbox environment_id and computer_id cannot be combined. Omitted when no computer is selected.
87401
87973
  */
@@ -87781,7 +88353,7 @@ export type AgentsUpdateResponses = {
87781
88353
  */
87782
88354
  environment_id?: string | null;
87783
88355
  /**
87784
- * Default vaults of this service or assume agent version: the vault_ids new sessions get when they name none. Present for service and assume agents. Follows the version like other configuration: a version saved with apply=false does not change the vaults in effect. Versions saved before this field existed read as []. /agent/v1 only.
88356
+ * Default vaults of this service or assume agent version: the vault_ids every new session carries; a session's own vault_ids are added to them. Present for service and assume agents. Follows the version like other configuration: a version saved with apply=false does not change the vaults in effect. Versions saved before this field existed read as []. /agent/v1 only.
87785
88357
  */
87786
88358
  vault_ids?: Array<string>;
87787
88359
  /**
@@ -88407,7 +88979,7 @@ export type AgentsArchiveResponses = {
88407
88979
  */
88408
88980
  environment_id?: string | null;
88409
88981
  /**
88410
- * Default vaults of this service or assume agent version: the vault_ids new sessions get when they name none. Present for service and assume agents. Follows the version like other configuration: a version saved with apply=false does not change the vaults in effect. Versions saved before this field existed read as []. /agent/v1 only.
88982
+ * Default vaults of this service or assume agent version: the vault_ids every new session carries; a session's own vault_ids are added to them. Present for service and assume agents. Follows the version like other configuration: a version saved with apply=false does not change the vaults in effect. Versions saved before this field existed read as []. /agent/v1 only.
88411
88983
  */
88412
88984
  vault_ids?: Array<string>;
88413
88985
  /**
@@ -88684,6 +89256,15 @@ export type AgentsVersionsListResponses = {
88684
89256
  name: string;
88685
89257
  }>;
88686
89258
  };
89259
+ /**
89260
+ * 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.
89261
+ */
89262
+ browser?: {
89263
+ /**
89264
+ * A paired browser's id (byb_ and 26 lowercase hex characters), from browser.byob.browsers.list.
89265
+ */
89266
+ byob: string;
89267
+ } | null;
88687
89268
  /**
88688
89269
  * Praxis extension: MA only has session-scoped temporary containers and memory_stores, not durable browsable computers. computer_id selects a tenant-owned active computer. Session selection overrides the agent default; a sandbox environment_id and computer_id cannot be combined. Omitted when no computer is selected.
88689
89270
  */
@@ -89069,7 +89650,7 @@ export type AgentsVersionsListResponses = {
89069
89650
  */
89070
89651
  environment_id?: string | null;
89071
89652
  /**
89072
- * Default vaults of this service or assume agent version: the vault_ids new sessions get when they name none. Present for service and assume agents. Follows the version like other configuration: a version saved with apply=false does not change the vaults in effect. Versions saved before this field existed read as []. /agent/v1 only.
89653
+ * Default vaults of this service or assume agent version: the vault_ids every new session carries; a session's own vault_ids are added to them. Present for service and assume agents. Follows the version like other configuration: a version saved with apply=false does not change the vaults in effect. Versions saved before this field existed read as []. /agent/v1 only.
89073
89654
  */
89074
89655
  vault_ids?: Array<string>;
89075
89656
  /**
@@ -121192,7 +121773,7 @@ export type GetSandboxV1SandboxesResponses = {
121192
121773
  };
121193
121774
  export type GetSandboxV1SandboxesResponse = GetSandboxV1SandboxesResponses[keyof GetSandboxV1SandboxesResponses];
121194
121775
  export type PostSandboxV1SandboxesData = {
121195
- body: SandboxNewSandboxV2;
121776
+ body: SandboxNewSandboxV2Writable;
121196
121777
  path?: never;
121197
121778
  query?: never;
121198
121779
  url: '/sandbox/v1/sandboxes';