@deepraxis/sdk 0.2.0-dev.ed8a023 → 0.2.0-dev.ee28d4e

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,37 @@ export type BrowserSessionCreateParams = {
3696
3696
  ignoreCertificateErrors?: boolean;
3697
3697
  };
3698
3698
  /**
3699
- * 仅省略、false 或 [{type: 'none'}] 可用;其它代理配置返回 501。
3699
+ * 省略、false 或 [{type: 'none'}] 表示不用代理。一条 {type: 'external', server, username?, password? | password_secret?} 让会话在我们的 Chrome 容器里经这个 HTTP 代理出网(需要组织已开通容器后端,否则返回 501 PROVIDER_UNSUPPORTED);不能与 source.type 为 cloud 或 byob 同用,返回 400 INVALID_PARAMS。其它代理类型返回 501。
3700
3700
  */
3701
3701
  proxies?: boolean | Array<unknown>;
3702
+ /**
3703
+ * 选择浏览器后端。{type: 'cloud'}:Browser Run,启动最快、不能用代理、自动化特征可被网站发现。{type: 'container'}:我们自己的 Chrome 容器,可带代理也可不带;组织未开通容器后端时返回 501 PROVIDER_UNSUPPORTED。{type: 'byob', browser: 'byb_…'}:用户自己配对的浏览器,不能与 proxies 或登录态同用。简写 {byob: 'byb_…'} 等同最后一种。省略时按旧规则:带 proxies 进容器,否则 Browser Run。cloud 加代理、未知 type、格式错误都返回 400 INVALID_PARAMS。
3704
+ */
3705
+ source?: {
3706
+ /**
3707
+ * Browser Run。
3708
+ */
3709
+ type: 'cloud';
3710
+ } | {
3711
+ /**
3712
+ * 自家 Chrome 容器。
3713
+ */
3714
+ type: 'container';
3715
+ } | {
3716
+ /**
3717
+ * 用户自己的浏览器。
3718
+ */
3719
+ type: 'byob';
3720
+ /**
3721
+ * 自带浏览器 ID,以 byb_ 开头。
3722
+ */
3723
+ browser: string;
3724
+ } | {
3725
+ /**
3726
+ * 自带浏览器 ID,type 为 byob 的简写。
3727
+ */
3728
+ byob: string;
3729
+ };
3702
3730
  /**
3703
3731
  * 接受但忽略;不能选择区域。
3704
3732
  */
@@ -3746,9 +3774,9 @@ export type BrowserSessionCreateResult = {
3746
3774
  */
3747
3775
  region: 'ap-southeast-1';
3748
3776
  /**
3749
- * 兼容的代理流量字节数;当前未使用代理,固定返回 0。
3777
+ * 会话经代理转发的流量字节数(上行与下行之和);仅容器后端的会话有值,其余后端固定为 0。
3750
3778
  */
3751
- proxyBytes: 0;
3779
+ proxyBytes: number;
3752
3780
  /**
3753
3781
  * 会话创建时刻,UTC ISO 8601 时间。
3754
3782
  */
@@ -3793,6 +3821,41 @@ export type BrowserSessionCreateResult = {
3793
3821
  * 会话创建入口;api 为 API 创建,connect 为一步连接创建,console 为 Console 创建。
3794
3822
  */
3795
3823
  origin: 'api' | 'connect' | 'console';
3824
+ /**
3825
+ * 会话实际使用的浏览器后端:cloud 是云浏览器(Browser Run),container 是我们自己的 Chrome 容器,byob 是用户自己配对的浏览器(browser 为它的 ID)。type 与 kind 同值,type 是公开名称,kind 为兼容旧读者保留。
3826
+ */
3827
+ source: {
3828
+ /**
3829
+ * 云浏览器会话,固定为 cloud。
3830
+ */
3831
+ type: 'cloud';
3832
+ /**
3833
+ * 与 type 同值。
3834
+ */
3835
+ kind: 'cloud';
3836
+ } | {
3837
+ /**
3838
+ * 自家 Chrome 容器会话,固定为 container。
3839
+ */
3840
+ type: 'container';
3841
+ /**
3842
+ * 与 type 同值。
3843
+ */
3844
+ kind: 'container';
3845
+ } | {
3846
+ /**
3847
+ * 用户自己配对的浏览器会话,固定为 byob。
3848
+ */
3849
+ type: 'byob';
3850
+ /**
3851
+ * 与 type 同值。
3852
+ */
3853
+ kind: 'byob';
3854
+ /**
3855
+ * 自带浏览器 ID,以 byb_ 开头。
3856
+ */
3857
+ browser: string;
3858
+ };
3796
3859
  /**
3797
3860
  * 创建这个会话的用户或智能体标识;通过能力 URL 创建、或在引入创建者之前创建的会话省略此字段。
3798
3861
  */
@@ -3859,12 +3922,16 @@ export type BrowserSessionCreateResult = {
3859
3922
  * 该地址返回 501;不支持 Selenium。
3860
3923
  */
3861
3924
  seleniumRemoteUrl: string;
3925
+ /**
3926
+ * true 表示本次按 name 复用了已在运行的同名会话(HTTP 200),没有新开会话;false 表示新开了会话(HTTP 201)。
3927
+ */
3928
+ reused: boolean;
3862
3929
  };
3863
3930
  export type BrowserError = {
3864
3931
  statusCode: number;
3865
3932
  error: string;
3866
3933
  message: string;
3867
- code: 'INVALID_PARAMS' | 'PERMISSION_DENIED' | 'NOT_IMPLEMENTED' | 'INTERNAL' | 'UNAUTHENTICATED' | 'CONNECT_SIGNATURE_INVALID' | 'SESSION_NOT_FOUND' | 'SESSION_ENDED' | 'SESSION_INVALID_STATE' | 'CONTEXT_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';
3934
+ 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';
3868
3935
  };
3869
3936
  export type BrowserSession = {
3870
3937
  /**
@@ -3888,9 +3955,9 @@ export type BrowserSession = {
3888
3955
  */
3889
3956
  region: 'ap-southeast-1';
3890
3957
  /**
3891
- * 兼容的代理流量字节数;当前未使用代理,固定返回 0。
3958
+ * 会话经代理转发的流量字节数(上行与下行之和);仅容器后端的会话有值,其余后端固定为 0。
3892
3959
  */
3893
- proxyBytes: 0;
3960
+ proxyBytes: number;
3894
3961
  /**
3895
3962
  * 会话创建时刻,UTC ISO 8601 时间。
3896
3963
  */
@@ -3935,6 +4002,41 @@ export type BrowserSession = {
3935
4002
  * 会话创建入口;api 为 API 创建,connect 为一步连接创建,console 为 Console 创建。
3936
4003
  */
3937
4004
  origin: 'api' | 'connect' | 'console';
4005
+ /**
4006
+ * 会话实际使用的浏览器后端:cloud 是云浏览器(Browser Run),container 是我们自己的 Chrome 容器,byob 是用户自己配对的浏览器(browser 为它的 ID)。type 与 kind 同值,type 是公开名称,kind 为兼容旧读者保留。
4007
+ */
4008
+ source: {
4009
+ /**
4010
+ * 云浏览器会话,固定为 cloud。
4011
+ */
4012
+ type: 'cloud';
4013
+ /**
4014
+ * 与 type 同值。
4015
+ */
4016
+ kind: 'cloud';
4017
+ } | {
4018
+ /**
4019
+ * 自家 Chrome 容器会话,固定为 container。
4020
+ */
4021
+ type: 'container';
4022
+ /**
4023
+ * 与 type 同值。
4024
+ */
4025
+ kind: 'container';
4026
+ } | {
4027
+ /**
4028
+ * 用户自己配对的浏览器会话,固定为 byob。
4029
+ */
4030
+ type: 'byob';
4031
+ /**
4032
+ * 与 type 同值。
4033
+ */
4034
+ kind: 'byob';
4035
+ /**
4036
+ * 自带浏览器 ID,以 byb_ 开头。
4037
+ */
4038
+ browser: string;
4039
+ };
3938
4040
  /**
3939
4041
  * 创建这个会话的用户或智能体标识;通过能力 URL 创建、或在引入创建者之前创建的会话省略此字段。
3940
4042
  */
@@ -4012,9 +4114,9 @@ export type BrowserSessionGetResult = {
4012
4114
  */
4013
4115
  region: 'ap-southeast-1';
4014
4116
  /**
4015
- * 兼容的代理流量字节数;当前未使用代理,固定返回 0。
4117
+ * 会话经代理转发的流量字节数(上行与下行之和);仅容器后端的会话有值,其余后端固定为 0。
4016
4118
  */
4017
- proxyBytes: 0;
4119
+ proxyBytes: number;
4018
4120
  /**
4019
4121
  * 会话创建时刻,UTC ISO 8601 时间。
4020
4122
  */
@@ -4059,6 +4161,41 @@ export type BrowserSessionGetResult = {
4059
4161
  * 会话创建入口;api 为 API 创建,connect 为一步连接创建,console 为 Console 创建。
4060
4162
  */
4061
4163
  origin: 'api' | 'connect' | 'console';
4164
+ /**
4165
+ * 会话实际使用的浏览器后端:cloud 是云浏览器(Browser Run),container 是我们自己的 Chrome 容器,byob 是用户自己配对的浏览器(browser 为它的 ID)。type 与 kind 同值,type 是公开名称,kind 为兼容旧读者保留。
4166
+ */
4167
+ source: {
4168
+ /**
4169
+ * 云浏览器会话,固定为 cloud。
4170
+ */
4171
+ type: 'cloud';
4172
+ /**
4173
+ * 与 type 同值。
4174
+ */
4175
+ kind: 'cloud';
4176
+ } | {
4177
+ /**
4178
+ * 自家 Chrome 容器会话,固定为 container。
4179
+ */
4180
+ type: 'container';
4181
+ /**
4182
+ * 与 type 同值。
4183
+ */
4184
+ kind: 'container';
4185
+ } | {
4186
+ /**
4187
+ * 用户自己配对的浏览器会话,固定为 byob。
4188
+ */
4189
+ type: 'byob';
4190
+ /**
4191
+ * 与 type 同值。
4192
+ */
4193
+ kind: 'byob';
4194
+ /**
4195
+ * 自带浏览器 ID,以 byb_ 开头。
4196
+ */
4197
+ browser: string;
4198
+ };
4062
4199
  /**
4063
4200
  * 创建这个会话的用户或智能体标识;通过能力 URL 创建、或在引入创建者之前创建的会话省略此字段。
4064
4201
  */
@@ -4314,6 +4451,120 @@ export type BrowserContext = {
4314
4451
  */
4315
4452
  lastUsedAt?: string;
4316
4453
  };
4454
+ export type BrowserByobPairing = {
4455
+ /**
4456
+ * 8 位配对码,一次性、10 分钟内有效;它是秘密,只交给要配对的那个浏览器的用户。
4457
+ */
4458
+ code: string;
4459
+ /**
4460
+ * 配对码失效的时刻,UTC ISO 8601 时间。
4461
+ */
4462
+ expires_at: string;
4463
+ };
4464
+ export type BrowserByobBrowser = {
4465
+ /**
4466
+ * 对象类型,固定为 byob_browser。
4467
+ */
4468
+ object: 'byob_browser';
4469
+ /**
4470
+ * 自带浏览器 ID,以 byb_ 开头;使用配对认领或列出自带浏览器返回的 id。
4471
+ */
4472
+ id: string;
4473
+ /**
4474
+ * 浏览器的显示名称,配对时由扩展上报,1–80 个字符;可通过更新修改。
4475
+ */
4476
+ name: string;
4477
+ /**
4478
+ * 这个自带浏览器的种类,配对时由扩展上报。
4479
+ */
4480
+ browser: 'chrome' | 'edge';
4481
+ /**
4482
+ * 浏览器版本号,配对时由扩展上报。
4483
+ */
4484
+ version: string;
4485
+ /**
4486
+ * 操作系统,配对时由扩展上报。
4487
+ */
4488
+ os: string;
4489
+ /**
4490
+ * 配对用的扩展 ID。
4491
+ */
4492
+ extension_id: string;
4493
+ /**
4494
+ * 扩展的连接当前是否在线;连接对象上线之前固定为 false。
4495
+ */
4496
+ online: boolean;
4497
+ /**
4498
+ * 扩展最近一次被看到在线的时刻,UTC ISO 8601 时间。
4499
+ */
4500
+ last_seen_at: string | null;
4501
+ /**
4502
+ * 发起配对的用户标识;浏览器属于组织,这里只记录是谁配的。
4503
+ */
4504
+ created_by: string | null;
4505
+ /**
4506
+ * 浏览器完成配对的时刻,UTC ISO 8601 时间。
4507
+ */
4508
+ created_at: string;
4509
+ /**
4510
+ * 组织断开这个浏览器的时刻,UTC ISO 8601 时间;未断开时为 null。
4511
+ */
4512
+ revoked_at: string | null;
4513
+ };
4514
+ export type BrowserByobPairingView = {
4515
+ /**
4516
+ * 发起配对的组织名称,扩展的授权页显示它。
4517
+ */
4518
+ organization_name: string;
4519
+ /**
4520
+ * 发起配对的用户标识。
4521
+ */
4522
+ created_by: string | null;
4523
+ /**
4524
+ * 配对码失效的时刻,UTC ISO 8601 时间。
4525
+ */
4526
+ expires_at: string;
4527
+ };
4528
+ export type BrowserByobClaim = {
4529
+ /**
4530
+ * 要登记的浏览器种类,只支持 Chrome 和 Edge。
4531
+ */
4532
+ browser: 'chrome' | 'edge';
4533
+ /**
4534
+ * 浏览器版本号,1–64 个字符。
4535
+ */
4536
+ version: string;
4537
+ /**
4538
+ * 操作系统,1–64 个字符。
4539
+ */
4540
+ os: string;
4541
+ /**
4542
+ * 浏览器的显示名称,1–80 个字符。
4543
+ */
4544
+ name: string;
4545
+ /**
4546
+ * 扩展用 WebCrypto 生成的不可导出 ECDSA P-256 密钥对的公钥;平台只保存公钥。
4547
+ */
4548
+ public_key: string;
4549
+ /**
4550
+ * 扩展 ID,1–64 个字符。
4551
+ */
4552
+ extension_id: string;
4553
+ /**
4554
+ * 扩展保存的随机安装密钥,8–128 个字母、数字、_ 或 -;同一个 profile 带同一密钥重新配对会复用原来的浏览器,平台只保存它的哈希。省略则每次认领都是新浏览器。
4555
+ */
4556
+ install_key?: string;
4557
+ };
4558
+ export type BrowserByobClaimResult = {
4559
+ /**
4560
+ * 自带浏览器 ID,以 byb_ 开头;使用配对认领或列出自带浏览器返回的 id。
4561
+ */
4562
+ browser_id: string;
4563
+ /**
4564
+ * 扩展要拨入的 WSS 地址,属于这个浏览器自己的链接主机;连接时用配对时的私钥签名完成认证,地址本身不是凭证。
4565
+ */
4566
+ link_url: string;
4567
+ };
4317
4568
  export type BrowserStreamMessage = {
4318
4569
  event: 'snapshot';
4319
4570
  data: {
@@ -10618,6 +10869,10 @@ export type ApplicationCreateWorkerInput = {
10618
10869
  labels?: {
10619
10870
  [key: string]: string;
10620
10871
  };
10872
+ /**
10873
+ * Who may open the application on its default host (ADR-206). Only the organization's owner (full authority) may change it; a credential limited to bound resources is refused with PERMISSION_DENIED. A change takes effect within 10 seconds.
10874
+ */
10875
+ access?: 'public' | 'organization';
10621
10876
  };
10622
10877
  };
10623
10878
  export type ApplicationWorker = {
@@ -10689,6 +10944,10 @@ export type ApplicationWorker = {
10689
10944
  labels: {
10690
10945
  [key: string]: string;
10691
10946
  };
10947
+ /**
10948
+ * Who may open the application on its default host (ADR-206). Only the organization's owner (full authority) may change it; a credential limited to bound resources is refused with PERMISSION_DENIED. A change takes effect within 10 seconds.
10949
+ */
10950
+ access: 'public' | 'organization';
10692
10951
  /**
10693
10952
  * When the Worker was deleted.
10694
10953
  */
@@ -10770,6 +11029,10 @@ export type ApplicationUpdateWorkerInput = {
10770
11029
  labels?: {
10771
11030
  [key: string]: string;
10772
11031
  };
11032
+ /**
11033
+ * Who may open the application on its default host (ADR-206). Only the organization's owner (full authority) may change it; a credential limited to bound resources is refused with PERMISSION_DENIED. A change takes effect within 10 seconds.
11034
+ */
11035
+ access?: 'public' | 'organization';
10773
11036
  };
10774
11037
  };
10775
11038
  export type ApplicationVersionPage = {
@@ -19553,6 +19816,32 @@ export type DevopsChangeMarkLastSliceRequest = {
19553
19816
  */
19554
19817
  lastSlice: boolean;
19555
19818
  };
19819
+ /**
19820
+ * Where the new slice starts. Every field is optional: with none the slice is cut from the default branch.
19821
+ */
19822
+ export type DevopsChangeSliceCreateRequest = {
19823
+ /**
19824
+ * Another branch of the same change to cut the slice from, such as feat/run-page-v2--2; omit it to cut from the default branch. A slice cut from a branch is restacked onto the default branch when that branch merges.
19825
+ */
19826
+ from?: string;
19827
+ };
19828
+ /**
19829
+ * The slice that was opened.
19830
+ */
19831
+ export type DevopsChangeSliceOpened = {
19832
+ /**
19833
+ * The new slice's branch, <change id>--<n> with n at least 2; commit and push here, and open its pull request with `praxis devops change pr`.
19834
+ */
19835
+ branch: string;
19836
+ /**
19837
+ * The directory to work in: the slice's git worktree inside the change's workspace. It exists at once when the workspace is already running, otherwise once the workspace is available.
19838
+ */
19839
+ directory: string;
19840
+ /**
19841
+ * The id of the change's workspace that holds the slice (wsu_…), usable with the units methods; this call opened it when the change had none live.
19842
+ */
19843
+ unit: string;
19844
+ };
19556
19845
  /**
19557
19846
  * What the pull request says. Every field is optional: without a title the change's own title is used.
19558
19847
  */
@@ -19569,6 +19858,10 @@ export type DevopsChangeOpenPullRequestRequest = {
19569
19858
  * Open it as a draft. Defaults to false.
19570
19859
  */
19571
19860
  draft?: boolean;
19861
+ /**
19862
+ * The branch the pull request is opened from, for a later slice of the change: <change id>--<n>, as `slices.create` answered it; omit it for the change's own branch. A branch that belongs to another change is refused with INVALID_ARGUMENT.
19863
+ */
19864
+ head?: string;
19572
19865
  };
19573
19866
  /**
19574
19867
  * The pull request for a change's branch.
@@ -34710,6 +35003,14 @@ export type SandboxSandboxNetworkConfig = {
34710
35003
  rules?: {
34711
35004
  [key: string]: Array<SandboxSandboxNetworkRule>;
34712
35005
  };
35006
+ /**
35007
+ * 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.
35008
+ */
35009
+ staticEgressIp?: boolean;
35010
+ /**
35011
+ * 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.
35012
+ */
35013
+ readonly egressIp?: string;
34713
35014
  };
34714
35015
  /**
34715
35016
  * Sandbox lifecycle policy returned by sandbox info.
@@ -47846,7 +48147,7 @@ export type DevopsPlannedSkip = {
47846
48147
  /**
47847
48148
  * Why it is left out, which is what tells a deliberate skip apart from an oversight.
47848
48149
  */
47849
- reason: 'unchanged' | 'newer_checkpoint' | 'not_requested' | 'callee_excluded' | 'artifact_identical';
48150
+ reason: 'unchanged' | 'newer_checkpoint' | 'not_requested' | 'callee_excluded' | 'not_deployed_upstream' | 'artifact_identical';
47850
48151
  };
47851
48152
  /**
47852
48153
  * The migrations one target has pending, as the plan found them.
@@ -50701,6 +51002,58 @@ export type UpdateMediaPipelineRequestWritable = {
50701
51002
  * Models to use for completion
50702
51003
  */
50703
51004
  export type OpenaiChatModelNamesWritable = Array<OpenaiModelName & unknown>;
51005
+ export type SandboxSandboxDetailWritable = {
51006
+ /**
51007
+ * Identifier of the template from which is the sandbox created
51008
+ */
51009
+ templateID: string;
51010
+ /**
51011
+ * Alias of the template
51012
+ */
51013
+ alias?: string;
51014
+ /**
51015
+ * Identifier of the sandbox
51016
+ */
51017
+ sandboxID: string;
51018
+ /**
51019
+ * Identifier of the client
51020
+ *
51021
+ * @deprecated
51022
+ */
51023
+ clientID: string;
51024
+ /**
51025
+ * Time when the sandbox was started
51026
+ */
51027
+ startedAt: string;
51028
+ /**
51029
+ * Time when the sandbox will expire
51030
+ */
51031
+ endAt: string;
51032
+ envdVersion: SandboxEnvdVersion;
51033
+ /**
51034
+ * Access token used for envd communication
51035
+ */
51036
+ envdAccessToken?: string;
51037
+ /**
51038
+ * Whether internet access was explicitly enabled or disabled for the sandbox. Null means it was not explicitly set.
51039
+ */
51040
+ allowInternetAccess?: boolean;
51041
+ /**
51042
+ * Base domain where the sandbox traffic is accessible
51043
+ */
51044
+ domain?: string;
51045
+ cpuCount: SandboxCpuCount;
51046
+ memoryMB: SandboxMemoryMb;
51047
+ diskSizeMB: SandboxDiskSizeMb;
51048
+ metadata?: SandboxSandboxMetadata;
51049
+ state: SandboxSandboxState;
51050
+ network?: SandboxSandboxNetworkConfigWritable;
51051
+ lifecycle?: SandboxSandboxLifecycle;
51052
+ /**
51053
+ * Volumes mounted into the sandbox.
51054
+ */
51055
+ volumeMounts?: Array<SandboxSandboxVolumeMount>;
51056
+ };
50704
51057
  /**
50705
51058
  * Free-form string key/value pairs stored with the session, changed through sessions.update patch semantics.
50706
51059
  */
@@ -51280,6 +51633,94 @@ export type MediaSemanticSearchResultWritable = {
51280
51633
  */
51281
51634
  not_ready_excluded: number;
51282
51635
  };
51636
+ /**
51637
+ * Sandbox creation request. All system communication with the sandbox is always secured; the template's envd version must support secured access.
51638
+ */
51639
+ export type SandboxNewSandboxV2Writable = {
51640
+ /**
51641
+ * Identifier of the required template
51642
+ */
51643
+ templateID: string;
51644
+ /**
51645
+ * Lifetime of the new sandbox in seconds. Defaults to 300 seconds when omitted.
51646
+ */
51647
+ timeout?: number;
51648
+ /**
51649
+ * 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.
51650
+ */
51651
+ autoPause?: boolean;
51652
+ /**
51653
+ * 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).
51654
+ */
51655
+ autoPauseMemory?: boolean;
51656
+ autoResume?: SandboxSandboxAutoResumeConfig;
51657
+ /**
51658
+ * 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.
51659
+ */
51660
+ allow_internet_access?: boolean;
51661
+ network?: SandboxSandboxNetworkConfigWritable;
51662
+ metadata?: SandboxSandboxMetadata;
51663
+ envVars?: SandboxEnvVars;
51664
+ mcp?: SandboxMcp;
51665
+ iam?: SandboxSandboxIam;
51666
+ /**
51667
+ * Volumes to mount into the sandbox, each with the volume name and the path inside the sandbox.
51668
+ */
51669
+ volumeMounts?: Array<SandboxSandboxVolumeMount>;
51670
+ /**
51671
+ * 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.
51672
+ */
51673
+ ephemeral?: boolean;
51674
+ /**
51675
+ * 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.
51676
+ */
51677
+ size?: string;
51678
+ /**
51679
+ * Own face: a display name for the sandbox, 1 to 64 characters. Omitted, one is generated from the template.
51680
+ */
51681
+ name?: string;
51682
+ /**
51683
+ * 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.
51684
+ */
51685
+ waitForReady?: boolean;
51686
+ /**
51687
+ * Own face: what happens at the timeout. pause needs ephemeral: false; must agree with autoPause when both are sent.
51688
+ */
51689
+ onExpire?: 'kill' | 'pause';
51690
+ /**
51691
+ * Own face, persistent sandboxes only: pause after this many milliseconds without activity; null turns the idle pause off.
51692
+ */
51693
+ idleTimeout?: number;
51694
+ /**
51695
+ * 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.
51696
+ */
51697
+ idleActivity?: 'traffic' | 'caller';
51698
+ /**
51699
+ * 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.
51700
+ */
51701
+ sku?: string;
51702
+ /**
51703
+ * 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.
51704
+ */
51705
+ kind?: 'run' | 'job' | 'batch' | 'computer' | 'compat';
51706
+ /**
51707
+ * 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.
51708
+ */
51709
+ interruptible?: boolean;
51710
+ /**
51711
+ * 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.
51712
+ */
51713
+ onLoss?: 'fail' | 'rebuild';
51714
+ /**
51715
+ * 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.
51716
+ */
51717
+ outputs?: Array<{
51718
+ /**
51719
+ * Absolute path of a directory or file inside the sandbox.
51720
+ */
51721
+ path: string;
51722
+ }>;
51723
+ };
51283
51724
  /**
51284
51725
  * Arguments the model passed to the tool.
51285
51726
  */
@@ -51358,6 +51799,43 @@ export type AnthropicAnonymous204Writable = {
51358
51799
  export type AnthropicAnonymous206Writable = {
51359
51800
  [key: string]: unknown;
51360
51801
  };
51802
+ /**
51803
+ * Network policy of the sandbox: public access, egress allow and deny lists and proxy.
51804
+ */
51805
+ export type SandboxSandboxNetworkConfigWritable = {
51806
+ /**
51807
+ * Specify if the sandbox URLs should be accessible only with authentication.
51808
+ */
51809
+ allowPublicTraffic?: boolean;
51810
+ /**
51811
+ * 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.
51812
+ */
51813
+ allowOut?: Array<string>;
51814
+ /**
51815
+ * List of denied CIDR blocks or IP addresses for egress traffic. Domain names are not supported for deny rules.
51816
+ */
51817
+ denyOut?: Array<string>;
51818
+ egressProxy?: SandboxSandboxEgressProxyConfig;
51819
+ /**
51820
+ * Specify host mask which will be used for all sandbox requests
51821
+ */
51822
+ maskRequestHost?: string;
51823
+ /**
51824
+ * Unlike E2B, network.httpsPorts is rejected; omit it when creating a sandbox.
51825
+ */
51826
+ httpsPorts?: Array<number>;
51827
+ /**
51828
+ * 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.
51829
+ *
51830
+ */
51831
+ rules?: {
51832
+ [key: string]: Array<SandboxSandboxNetworkRule>;
51833
+ };
51834
+ /**
51835
+ * 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.
51836
+ */
51837
+ staticEgressIp?: boolean;
51838
+ };
51361
51839
  /**
51362
51840
  * Free-form string key/value pairs.
51363
51841
  */
@@ -51993,6 +52471,10 @@ export type DevopsLockId = string;
51993
52471
  * The change's id, which is its branch name <type>/<slug> from a change list or create answer. Give it as it comes back — `feat/run-page-v2`: the SDK and the CLI encode the slash themselves, and an id that is already percent-encoded is encoded a second time and answers CHANGE_NOT_FOUND. Only a caller writing the HTTP request by hand sends feat%2Frun-page-v2.
51994
52472
  */
51995
52473
  export type DevopsChangeIdPath = string;
52474
+ /**
52475
+ * The change whose slice you are opening: its id, which is its branch name <type>/<slug> from a change list or create answer. Give it as it comes back — `feat/run-page-v2`; the SDK and the CLI encode the slash themselves.
52476
+ */
52477
+ export type DevopsChangePathParam = string;
51996
52478
  /**
51997
52479
  * The pull request's platform id (pr_…) from a pull request list, not GitHub's pull request number; the retrieve, rerunGate, merge and recordVerdict calls all address the pull request by it.
51998
52480
  */
@@ -54081,6 +54563,86 @@ export type ListAgentInboxLettersResponses = {
54081
54563
  };
54082
54564
  };
54083
54565
  export type ListAgentInboxLettersResponse = ListAgentInboxLettersResponses[keyof ListAgentInboxLettersResponses];
54566
+ export type ListAgentDeviceLocalSessionsData = {
54567
+ body?: never;
54568
+ path: {
54569
+ /**
54570
+ * 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_….
54571
+ */
54572
+ agent_id: string;
54573
+ /**
54574
+ * The paired desktop device (byd_ and 26 hex characters) whose sessions to list; you must be the person who paired it.
54575
+ */
54576
+ device_id: string;
54577
+ };
54578
+ query: {
54579
+ /**
54580
+ * The absolute directory on the device, exactly as the device registered it and bound it to this agent.
54581
+ */
54582
+ cwd: string;
54583
+ /**
54584
+ * The next_cursor of the previous page; leave it out for the first page.
54585
+ */
54586
+ cursor?: string;
54587
+ };
54588
+ url: '/agent/v1/agents/{agent_id}/devices/{device_id}/local-sessions';
54589
+ };
54590
+ export type ListAgentDeviceLocalSessionsErrors = {
54591
+ /**
54592
+ * 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.
54593
+ */
54594
+ 400: unknown;
54595
+ /**
54596
+ * Authenticate with your own API key or a console session; an agent's or robot's credential cannot list a person's device.
54597
+ */
54598
+ 401: unknown;
54599
+ /**
54600
+ * 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.
54601
+ */
54602
+ 403: AgentError;
54603
+ /**
54604
+ * AGENT_NOT_FOUND: no agent with this reference exists in your organization; list agents with agents.list.
54605
+ */
54606
+ 404: unknown;
54607
+ /**
54608
+ * 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.
54609
+ */
54610
+ 503: unknown;
54611
+ };
54612
+ export type ListAgentDeviceLocalSessionsError = ListAgentDeviceLocalSessionsErrors[keyof ListAgentDeviceLocalSessionsErrors];
54613
+ export type ListAgentDeviceLocalSessionsResponses = {
54614
+ /**
54615
+ * One page of the device's sessions for that directory, newest first.
54616
+ */
54617
+ 200: {
54618
+ /**
54619
+ * The sessions of this page; empty when the directory has none.
54620
+ */
54621
+ data: Array<{
54622
+ /**
54623
+ * The Claude Code session id on the device; pass it as runtime.resume_session_id when creating a session to continue it.
54624
+ */
54625
+ id: string;
54626
+ /**
54627
+ * The session's title as Claude Code shows it; empty when it has none.
54628
+ */
54629
+ title: string;
54630
+ /**
54631
+ * When the session was last written to, RFC 3339; sessions are ordered newest first.
54632
+ */
54633
+ updated_at: string | null;
54634
+ /**
54635
+ * The directory the session ran in on the device.
54636
+ */
54637
+ cwd: string | null;
54638
+ }>;
54639
+ /**
54640
+ * Pass as cursor for the next page; null on the last page.
54641
+ */
54642
+ next_cursor: string | null;
54643
+ };
54644
+ };
54645
+ export type ListAgentDeviceLocalSessionsResponse = ListAgentDeviceLocalSessionsResponses[keyof ListAgentDeviceLocalSessionsResponses];
54084
54646
  export type CreateAgentLoginIntentData = {
54085
54647
  body?: never;
54086
54648
  path?: never;
@@ -54981,6 +55543,15 @@ export type ApplyAgentVersionResponses = {
54981
55543
  name: string;
54982
55544
  }>;
54983
55545
  };
55546
+ /**
55547
+ * 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.
55548
+ */
55549
+ browser?: {
55550
+ /**
55551
+ * A paired browser's id (byb_ and 26 lowercase hex characters), from browser.byob.browsers.list.
55552
+ */
55553
+ byob: string;
55554
+ } | null;
54984
55555
  /**
54985
55556
  * 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.
54986
55557
  */
@@ -55366,7 +55937,7 @@ export type ApplyAgentVersionResponses = {
55366
55937
  */
55367
55938
  environment_id?: string | null;
55368
55939
  /**
55369
- * 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.
55940
+ * 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.
55370
55941
  */
55371
55942
  vault_ids?: Array<string>;
55372
55943
  /**
@@ -56232,6 +56803,15 @@ export type UnarchiveAgentResponses = {
56232
56803
  name: string;
56233
56804
  }>;
56234
56805
  };
56806
+ /**
56807
+ * 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.
56808
+ */
56809
+ browser?: {
56810
+ /**
56811
+ * A paired browser's id (byb_ and 26 lowercase hex characters), from browser.byob.browsers.list.
56812
+ */
56813
+ byob: string;
56814
+ } | null;
56235
56815
  /**
56236
56816
  * 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.
56237
56817
  */
@@ -56617,7 +57197,7 @@ export type UnarchiveAgentResponses = {
56617
57197
  */
56618
57198
  environment_id?: string | null;
56619
57199
  /**
56620
- * 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.
57200
+ * 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.
56621
57201
  */
56622
57202
  vault_ids?: Array<string>;
56623
57203
  /**
@@ -59086,9 +59666,13 @@ export type ComputersRetrieveResponse = ComputersRetrieveResponses[keyof Compute
59086
59666
  export type ComputersUpdateData = {
59087
59667
  body: {
59088
59668
  /**
59089
- * Name of the entry or object.
59669
+ * New display name, 1 to 255 characters after trimming. Omit to keep the current name.
59090
59670
  */
59091
- name: string;
59671
+ name?: string;
59672
+ /**
59673
+ * 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.
59674
+ */
59675
+ environment_id?: string | null;
59092
59676
  };
59093
59677
  path: {
59094
59678
  /**
@@ -61258,7 +61842,7 @@ export type ComputersFilesConvertResponse = ComputersFilesConvertResponses[keyof
61258
61842
  export type ConnectComputerData = {
61259
61843
  body?: {
61260
61844
  /**
61261
- * 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.
61845
+ * Accepted for compatibility and ignored: light and heavy both reach the same machine, because a Computer is one machine. Omit it.
61262
61846
  */
61263
61847
  need?: 'light' | 'heavy';
61264
61848
  };
@@ -68866,13 +69450,17 @@ export type BrowserListSessionsErrors = {
68866
69450
  */
68867
69451
  403: BrowserError;
68868
69452
  /**
68869
- * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
69453
+ * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
68870
69454
  */
68871
69455
  404: BrowserError;
68872
69456
  /**
68873
- * SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
69457
+ * SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
68874
69458
  */
68875
69459
  409: BrowserError;
69460
+ /**
69461
+ * BROWSER_REVOKED
69462
+ */
69463
+ 410: BrowserError;
68876
69464
  /**
68877
69465
  * ACTION_RESULT_TOO_LARGE
68878
69466
  */
@@ -68894,7 +69482,7 @@ export type BrowserListSessionsErrors = {
68894
69482
  */
68895
69483
  502: BrowserError;
68896
69484
  /**
68897
- * SERVICE_UNAVAILABLE
69485
+ * BROWSER_OFFLINE / SERVICE_UNAVAILABLE
68898
69486
  */
68899
69487
  503: BrowserError;
68900
69488
  /**
@@ -68943,13 +69531,17 @@ export type BrowserCreateSessionErrors = {
68943
69531
  */
68944
69532
  403: BrowserError;
68945
69533
  /**
68946
- * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
69534
+ * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
68947
69535
  */
68948
69536
  404: BrowserError;
68949
69537
  /**
68950
- * SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
69538
+ * SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
68951
69539
  */
68952
69540
  409: BrowserError;
69541
+ /**
69542
+ * BROWSER_REVOKED
69543
+ */
69544
+ 410: BrowserError;
68953
69545
  /**
68954
69546
  * ACTION_RESULT_TOO_LARGE
68955
69547
  */
@@ -68971,7 +69563,7 @@ export type BrowserCreateSessionErrors = {
68971
69563
  */
68972
69564
  502: BrowserError;
68973
69565
  /**
68974
- * SERVICE_UNAVAILABLE
69566
+ * BROWSER_OFFLINE / SERVICE_UNAVAILABLE
68975
69567
  */
68976
69568
  503: BrowserError;
68977
69569
  /**
@@ -68981,6 +69573,10 @@ export type BrowserCreateSessionErrors = {
68981
69573
  };
68982
69574
  export type BrowserCreateSessionError = BrowserCreateSessionErrors[keyof BrowserCreateSessionErrors];
68983
69575
  export type BrowserCreateSessionResponses = {
69576
+ /**
69577
+ * 请求成功。
69578
+ */
69579
+ 200: BrowserSessionCreateResult;
68984
69580
  /**
68985
69581
  * 请求成功。
68986
69582
  */
@@ -69021,13 +69617,17 @@ export type BrowserGetSessionErrors = {
69021
69617
  */
69022
69618
  403: BrowserError;
69023
69619
  /**
69024
- * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
69620
+ * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
69025
69621
  */
69026
69622
  404: BrowserError;
69027
69623
  /**
69028
- * SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
69624
+ * SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
69029
69625
  */
69030
69626
  409: BrowserError;
69627
+ /**
69628
+ * BROWSER_REVOKED
69629
+ */
69630
+ 410: BrowserError;
69031
69631
  /**
69032
69632
  * ACTION_RESULT_TOO_LARGE
69033
69633
  */
@@ -69049,7 +69649,7 @@ export type BrowserGetSessionErrors = {
69049
69649
  */
69050
69650
  502: BrowserError;
69051
69651
  /**
69052
- * SERVICE_UNAVAILABLE
69652
+ * BROWSER_OFFLINE / SERVICE_UNAVAILABLE
69053
69653
  */
69054
69654
  503: BrowserError;
69055
69655
  /**
@@ -69099,13 +69699,17 @@ export type BrowserCloseSessionErrors = {
69099
69699
  */
69100
69700
  403: BrowserError;
69101
69701
  /**
69102
- * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
69702
+ * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
69103
69703
  */
69104
69704
  404: BrowserError;
69105
69705
  /**
69106
- * SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
69706
+ * SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
69107
69707
  */
69108
69708
  409: BrowserError;
69709
+ /**
69710
+ * BROWSER_REVOKED
69711
+ */
69712
+ 410: BrowserError;
69109
69713
  /**
69110
69714
  * ACTION_RESULT_TOO_LARGE
69111
69715
  */
@@ -69127,7 +69731,7 @@ export type BrowserCloseSessionErrors = {
69127
69731
  */
69128
69732
  502: BrowserError;
69129
69733
  /**
69130
- * SERVICE_UNAVAILABLE
69734
+ * BROWSER_OFFLINE / SERVICE_UNAVAILABLE
69131
69735
  */
69132
69736
  503: BrowserError;
69133
69737
  /**
@@ -69172,13 +69776,17 @@ export type BrowserGetDebugErrors = {
69172
69776
  */
69173
69777
  403: BrowserError;
69174
69778
  /**
69175
- * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
69779
+ * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
69176
69780
  */
69177
69781
  404: BrowserError;
69178
69782
  /**
69179
- * SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
69783
+ * SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
69180
69784
  */
69181
69785
  409: BrowserError;
69786
+ /**
69787
+ * BROWSER_REVOKED
69788
+ */
69789
+ 410: BrowserError;
69182
69790
  /**
69183
69791
  * ACTION_RESULT_TOO_LARGE
69184
69792
  */
@@ -69200,7 +69808,7 @@ export type BrowserGetDebugErrors = {
69200
69808
  */
69201
69809
  502: BrowserError;
69202
69810
  /**
69203
- * SERVICE_UNAVAILABLE
69811
+ * BROWSER_OFFLINE / SERVICE_UNAVAILABLE
69204
69812
  */
69205
69813
  503: BrowserError;
69206
69814
  /**
@@ -69258,13 +69866,17 @@ export type BrowserListEventsErrors = {
69258
69866
  */
69259
69867
  403: BrowserError;
69260
69868
  /**
69261
- * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
69869
+ * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
69262
69870
  */
69263
69871
  404: BrowserError;
69264
69872
  /**
69265
- * SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
69873
+ * SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
69266
69874
  */
69267
69875
  409: BrowserError;
69876
+ /**
69877
+ * BROWSER_REVOKED
69878
+ */
69879
+ 410: BrowserError;
69268
69880
  /**
69269
69881
  * ACTION_RESULT_TOO_LARGE
69270
69882
  */
@@ -69286,7 +69898,7 @@ export type BrowserListEventsErrors = {
69286
69898
  */
69287
69899
  502: BrowserError;
69288
69900
  /**
69289
- * SERVICE_UNAVAILABLE
69901
+ * BROWSER_OFFLINE / SERVICE_UNAVAILABLE
69290
69902
  */
69291
69903
  503: BrowserError;
69292
69904
  /**
@@ -69537,13 +70149,17 @@ export type BrowserRunPageActionErrors = {
69537
70149
  */
69538
70150
  403: BrowserError;
69539
70151
  /**
69540
- * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
70152
+ * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
69541
70153
  */
69542
70154
  404: BrowserError;
69543
70155
  /**
69544
- * SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
70156
+ * SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
69545
70157
  */
69546
70158
  409: BrowserError;
70159
+ /**
70160
+ * BROWSER_REVOKED
70161
+ */
70162
+ 410: BrowserError;
69547
70163
  /**
69548
70164
  * ACTION_RESULT_TOO_LARGE
69549
70165
  */
@@ -69565,7 +70181,7 @@ export type BrowserRunPageActionErrors = {
69565
70181
  */
69566
70182
  502: BrowserError;
69567
70183
  /**
69568
- * SERVICE_UNAVAILABLE
70184
+ * BROWSER_OFFLINE / SERVICE_UNAVAILABLE
69569
70185
  */
69570
70186
  503: BrowserError;
69571
70187
  /**
@@ -69755,13 +70371,17 @@ export type BrowserRequestHandoffErrors = {
69755
70371
  */
69756
70372
  403: BrowserError;
69757
70373
  /**
69758
- * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
70374
+ * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
69759
70375
  */
69760
70376
  404: BrowserError;
69761
70377
  /**
69762
- * SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
70378
+ * SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
69763
70379
  */
69764
70380
  409: BrowserError;
70381
+ /**
70382
+ * BROWSER_REVOKED
70383
+ */
70384
+ 410: BrowserError;
69765
70385
  /**
69766
70386
  * ACTION_RESULT_TOO_LARGE
69767
70387
  */
@@ -69783,7 +70403,7 @@ export type BrowserRequestHandoffErrors = {
69783
70403
  */
69784
70404
  502: BrowserError;
69785
70405
  /**
69786
- * SERVICE_UNAVAILABLE
70406
+ * BROWSER_OFFLINE / SERVICE_UNAVAILABLE
69787
70407
  */
69788
70408
  503: BrowserError;
69789
70409
  /**
@@ -69828,13 +70448,17 @@ export type BrowserCompleteHandoffErrors = {
69828
70448
  */
69829
70449
  403: BrowserError;
69830
70450
  /**
69831
- * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
70451
+ * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
69832
70452
  */
69833
70453
  404: BrowserError;
69834
70454
  /**
69835
- * SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
70455
+ * SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
69836
70456
  */
69837
70457
  409: BrowserError;
70458
+ /**
70459
+ * BROWSER_REVOKED
70460
+ */
70461
+ 410: BrowserError;
69838
70462
  /**
69839
70463
  * ACTION_RESULT_TOO_LARGE
69840
70464
  */
@@ -69856,7 +70480,7 @@ export type BrowserCompleteHandoffErrors = {
69856
70480
  */
69857
70481
  502: BrowserError;
69858
70482
  /**
69859
- * SERVICE_UNAVAILABLE
70483
+ * BROWSER_OFFLINE / SERVICE_UNAVAILABLE
69860
70484
  */
69861
70485
  503: BrowserError;
69862
70486
  /**
@@ -69910,13 +70534,17 @@ export type BrowserViewerHeartbeatErrors = {
69910
70534
  */
69911
70535
  403: BrowserError;
69912
70536
  /**
69913
- * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
70537
+ * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
69914
70538
  */
69915
70539
  404: BrowserError;
69916
70540
  /**
69917
- * SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
70541
+ * SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
69918
70542
  */
69919
70543
  409: BrowserError;
70544
+ /**
70545
+ * BROWSER_REVOKED
70546
+ */
70547
+ 410: BrowserError;
69920
70548
  /**
69921
70549
  * ACTION_RESULT_TOO_LARGE
69922
70550
  */
@@ -69938,7 +70566,7 @@ export type BrowserViewerHeartbeatErrors = {
69938
70566
  */
69939
70567
  502: BrowserError;
69940
70568
  /**
69941
- * SERVICE_UNAVAILABLE
70569
+ * BROWSER_OFFLINE / SERVICE_UNAVAILABLE
69942
70570
  */
69943
70571
  503: BrowserError;
69944
70572
  /**
@@ -69988,13 +70616,598 @@ export type BrowserGetSessionFrameErrors = {
69988
70616
  */
69989
70617
  403: BrowserError;
69990
70618
  /**
69991
- * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
70619
+ * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
70620
+ */
70621
+ 404: BrowserError;
70622
+ /**
70623
+ * SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
70624
+ */
70625
+ 409: BrowserError;
70626
+ /**
70627
+ * BROWSER_REVOKED
70628
+ */
70629
+ 410: BrowserError;
70630
+ /**
70631
+ * ACTION_RESULT_TOO_LARGE
70632
+ */
70633
+ 413: BrowserError;
70634
+ /**
70635
+ * CONCURRENCY_LIMIT / RATE_LIMITED / PROVIDER_CAPACITY
70636
+ */
70637
+ 429: BrowserError;
70638
+ /**
70639
+ * INTERNAL
70640
+ */
70641
+ 500: BrowserError;
70642
+ /**
70643
+ * NOT_IMPLEMENTED / PROVIDER_UNSUPPORTED
70644
+ */
70645
+ 501: BrowserError;
70646
+ /**
70647
+ * PROVIDER_FAILED
70648
+ */
70649
+ 502: BrowserError;
70650
+ /**
70651
+ * BROWSER_OFFLINE / SERVICE_UNAVAILABLE
70652
+ */
70653
+ 503: BrowserError;
70654
+ /**
70655
+ * ACTION_TIMEOUT
70656
+ */
70657
+ 504: BrowserError;
70658
+ };
70659
+ export type BrowserGetSessionFrameError = BrowserGetSessionFrameErrors[keyof BrowserGetSessionFrameErrors];
70660
+ export type BrowserGetSessionFrameResponses = {
70661
+ /**
70662
+ * JPEG 画面帧,最多 2 MiB。
70663
+ */
70664
+ 200: Blob | File;
70665
+ };
70666
+ export type BrowserGetSessionFrameResponse = BrowserGetSessionFrameResponses[keyof BrowserGetSessionFrameResponses];
70667
+ export type BrowserListContextsData = {
70668
+ body?: never;
70669
+ path?: never;
70670
+ query?: {
70671
+ /**
70672
+ * 按登录态名称精确匹配;名称在当前账户内唯一,所以最多返回一条。省略时列出全部登录态。
70673
+ */
70674
+ name?: string;
70675
+ /**
70676
+ * 登录态 ID;使用创建或列出登录态返回的 id,以 bsc_ 开头。
70677
+ */
70678
+ cursor?: string;
70679
+ /**
70680
+ * 每页最多返回的登录态数量;默认 25,范围 1–100。
70681
+ */
70682
+ limit?: number;
70683
+ };
70684
+ url: '/browser/v1/contexts';
70685
+ };
70686
+ export type BrowserListContextsErrors = {
70687
+ /**
70688
+ * INVALID_PARAMS / INVALID_FILTER / INVALID_PAGE_TOKEN
70689
+ */
70690
+ 400: BrowserError;
70691
+ /**
70692
+ * UNAUTHENTICATED / CONNECT_SIGNATURE_INVALID
70693
+ */
70694
+ 401: BrowserError;
70695
+ /**
70696
+ * INSUFFICIENT_BALANCE / QUOTA_EXHAUSTED
70697
+ */
70698
+ 402: BrowserError;
70699
+ /**
70700
+ * PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
70701
+ */
70702
+ 403: BrowserError;
70703
+ /**
70704
+ * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
70705
+ */
70706
+ 404: BrowserError;
70707
+ /**
70708
+ * SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
70709
+ */
70710
+ 409: BrowserError;
70711
+ /**
70712
+ * BROWSER_REVOKED
70713
+ */
70714
+ 410: BrowserError;
70715
+ /**
70716
+ * ACTION_RESULT_TOO_LARGE
70717
+ */
70718
+ 413: BrowserError;
70719
+ /**
70720
+ * CONCURRENCY_LIMIT / RATE_LIMITED / PROVIDER_CAPACITY
70721
+ */
70722
+ 429: BrowserError;
70723
+ /**
70724
+ * INTERNAL
70725
+ */
70726
+ 500: BrowserError;
70727
+ /**
70728
+ * NOT_IMPLEMENTED / PROVIDER_UNSUPPORTED
70729
+ */
70730
+ 501: BrowserError;
70731
+ /**
70732
+ * PROVIDER_FAILED
70733
+ */
70734
+ 502: BrowserError;
70735
+ /**
70736
+ * BROWSER_OFFLINE / SERVICE_UNAVAILABLE
70737
+ */
70738
+ 503: BrowserError;
70739
+ /**
70740
+ * ACTION_TIMEOUT
70741
+ */
70742
+ 504: BrowserError;
70743
+ };
70744
+ export type BrowserListContextsError = BrowserListContextsErrors[keyof BrowserListContextsErrors];
70745
+ export type BrowserListContextsResponses = {
70746
+ /**
70747
+ * 分页查询结果,包含本页记录和下一页游标。
70748
+ */
70749
+ 200: {
70750
+ /**
70751
+ * 本页查询匹配的记录;没有匹配项时为空数组。
70752
+ */
70753
+ data: Array<BrowserContext>;
70754
+ /**
70755
+ * 下一页游标;原样传入 cursor,null 表示没有更多结果。
70756
+ */
70757
+ nextCursor: string | null;
70758
+ };
70759
+ };
70760
+ export type BrowserListContextsResponse = BrowserListContextsResponses[keyof BrowserListContextsResponses];
70761
+ export type BrowserCreateContextData = {
70762
+ body: {
70763
+ /**
70764
+ * 兼容项目字段;传入值被忽略,创建结果的 projectId 固定为 default。
70765
+ */
70766
+ projectId?: string;
70767
+ /**
70768
+ * 登录态名称;非空时为 1–128 个 ASCII 字母、数字或 . _ : -,在当前账户内唯一;空字符串表示不设名称或清除名称。
70769
+ */
70770
+ name?: '' | unknown;
70771
+ /**
70772
+ * 自定义字符串标签;最多 32 项,键最多 128 个 UTF-8 字节,值最多 1024 个 UTF-8 字节。
70773
+ */
70774
+ labels?: {
70775
+ [key: string]: string;
70776
+ };
70777
+ };
70778
+ path?: never;
70779
+ query?: never;
70780
+ url: '/browser/v1/contexts';
70781
+ };
70782
+ export type BrowserCreateContextErrors = {
70783
+ /**
70784
+ * INVALID_PARAMS / INVALID_FILTER / INVALID_PAGE_TOKEN
70785
+ */
70786
+ 400: BrowserError;
70787
+ /**
70788
+ * UNAUTHENTICATED / CONNECT_SIGNATURE_INVALID
70789
+ */
70790
+ 401: BrowserError;
70791
+ /**
70792
+ * INSUFFICIENT_BALANCE / QUOTA_EXHAUSTED
70793
+ */
70794
+ 402: BrowserError;
70795
+ /**
70796
+ * PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
70797
+ */
70798
+ 403: BrowserError;
70799
+ /**
70800
+ * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
70801
+ */
70802
+ 404: BrowserError;
70803
+ /**
70804
+ * SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
70805
+ */
70806
+ 409: BrowserError;
70807
+ /**
70808
+ * BROWSER_REVOKED
70809
+ */
70810
+ 410: BrowserError;
70811
+ /**
70812
+ * ACTION_RESULT_TOO_LARGE
70813
+ */
70814
+ 413: BrowserError;
70815
+ /**
70816
+ * CONCURRENCY_LIMIT / RATE_LIMITED / PROVIDER_CAPACITY
70817
+ */
70818
+ 429: BrowserError;
70819
+ /**
70820
+ * INTERNAL
70821
+ */
70822
+ 500: BrowserError;
70823
+ /**
70824
+ * NOT_IMPLEMENTED / PROVIDER_UNSUPPORTED
70825
+ */
70826
+ 501: BrowserError;
70827
+ /**
70828
+ * PROVIDER_FAILED
70829
+ */
70830
+ 502: BrowserError;
70831
+ /**
70832
+ * BROWSER_OFFLINE / SERVICE_UNAVAILABLE
70833
+ */
70834
+ 503: BrowserError;
70835
+ /**
70836
+ * ACTION_TIMEOUT
70837
+ */
70838
+ 504: BrowserError;
70839
+ };
70840
+ export type BrowserCreateContextError = BrowserCreateContextErrors[keyof BrowserCreateContextErrors];
70841
+ export type BrowserCreateContextResponses = {
70842
+ /**
70843
+ * 请求成功。
70844
+ */
70845
+ 201: BrowserContextCreateResult;
70846
+ };
70847
+ export type BrowserCreateContextResponse = BrowserCreateContextResponses[keyof BrowserCreateContextResponses];
70848
+ export type BrowserDeleteContextData = {
70849
+ body?: never;
70850
+ path: {
70851
+ /**
70852
+ * 登录态 ID;使用创建或列出登录态返回的 id,以 bsc_ 开头。
70853
+ */
70854
+ contextId: string;
70855
+ };
70856
+ query?: never;
70857
+ url: '/browser/v1/contexts/{contextId}';
70858
+ };
70859
+ export type BrowserDeleteContextErrors = {
70860
+ /**
70861
+ * INVALID_PARAMS / INVALID_FILTER / INVALID_PAGE_TOKEN
70862
+ */
70863
+ 400: BrowserError;
70864
+ /**
70865
+ * UNAUTHENTICATED / CONNECT_SIGNATURE_INVALID
70866
+ */
70867
+ 401: BrowserError;
70868
+ /**
70869
+ * INSUFFICIENT_BALANCE / QUOTA_EXHAUSTED
70870
+ */
70871
+ 402: BrowserError;
70872
+ /**
70873
+ * PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
70874
+ */
70875
+ 403: BrowserError;
70876
+ /**
70877
+ * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
70878
+ */
70879
+ 404: BrowserError;
70880
+ /**
70881
+ * SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
70882
+ */
70883
+ 409: BrowserError;
70884
+ /**
70885
+ * BROWSER_REVOKED
70886
+ */
70887
+ 410: BrowserError;
70888
+ /**
70889
+ * ACTION_RESULT_TOO_LARGE
70890
+ */
70891
+ 413: BrowserError;
70892
+ /**
70893
+ * CONCURRENCY_LIMIT / RATE_LIMITED / PROVIDER_CAPACITY
70894
+ */
70895
+ 429: BrowserError;
70896
+ /**
70897
+ * INTERNAL
70898
+ */
70899
+ 500: BrowserError;
70900
+ /**
70901
+ * NOT_IMPLEMENTED / PROVIDER_UNSUPPORTED
70902
+ */
70903
+ 501: BrowserError;
70904
+ /**
70905
+ * PROVIDER_FAILED
70906
+ */
70907
+ 502: BrowserError;
70908
+ /**
70909
+ * BROWSER_OFFLINE / SERVICE_UNAVAILABLE
70910
+ */
70911
+ 503: BrowserError;
70912
+ /**
70913
+ * ACTION_TIMEOUT
70914
+ */
70915
+ 504: BrowserError;
70916
+ };
70917
+ export type BrowserDeleteContextError = BrowserDeleteContextErrors[keyof BrowserDeleteContextErrors];
70918
+ export type BrowserDeleteContextResponses = {
70919
+ /**
70920
+ * 请求成功。
70921
+ */
70922
+ 200: {
70923
+ /**
70924
+ * 登录态及保存内容已删除,成功时固定返回 true。
70925
+ */
70926
+ deleted: true;
70927
+ };
70928
+ };
70929
+ export type BrowserDeleteContextResponse = BrowserDeleteContextResponses[keyof BrowserDeleteContextResponses];
70930
+ export type BrowserGetContextData = {
70931
+ body?: never;
70932
+ path: {
70933
+ /**
70934
+ * 登录态 ID;使用创建或列出登录态返回的 id,以 bsc_ 开头。
70935
+ */
70936
+ contextId: string;
70937
+ };
70938
+ query?: never;
70939
+ url: '/browser/v1/contexts/{contextId}';
70940
+ };
70941
+ export type BrowserGetContextErrors = {
70942
+ /**
70943
+ * INVALID_PARAMS / INVALID_FILTER / INVALID_PAGE_TOKEN
70944
+ */
70945
+ 400: BrowserError;
70946
+ /**
70947
+ * UNAUTHENTICATED / CONNECT_SIGNATURE_INVALID
70948
+ */
70949
+ 401: BrowserError;
70950
+ /**
70951
+ * INSUFFICIENT_BALANCE / QUOTA_EXHAUSTED
70952
+ */
70953
+ 402: BrowserError;
70954
+ /**
70955
+ * PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
70956
+ */
70957
+ 403: BrowserError;
70958
+ /**
70959
+ * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
69992
70960
  */
69993
70961
  404: BrowserError;
69994
70962
  /**
69995
- * SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
70963
+ * SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
69996
70964
  */
69997
70965
  409: BrowserError;
70966
+ /**
70967
+ * BROWSER_REVOKED
70968
+ */
70969
+ 410: BrowserError;
70970
+ /**
70971
+ * ACTION_RESULT_TOO_LARGE
70972
+ */
70973
+ 413: BrowserError;
70974
+ /**
70975
+ * CONCURRENCY_LIMIT / RATE_LIMITED / PROVIDER_CAPACITY
70976
+ */
70977
+ 429: BrowserError;
70978
+ /**
70979
+ * INTERNAL
70980
+ */
70981
+ 500: BrowserError;
70982
+ /**
70983
+ * NOT_IMPLEMENTED / PROVIDER_UNSUPPORTED
70984
+ */
70985
+ 501: BrowserError;
70986
+ /**
70987
+ * PROVIDER_FAILED
70988
+ */
70989
+ 502: BrowserError;
70990
+ /**
70991
+ * BROWSER_OFFLINE / SERVICE_UNAVAILABLE
70992
+ */
70993
+ 503: BrowserError;
70994
+ /**
70995
+ * ACTION_TIMEOUT
70996
+ */
70997
+ 504: BrowserError;
70998
+ };
70999
+ export type BrowserGetContextError = BrowserGetContextErrors[keyof BrowserGetContextErrors];
71000
+ export type BrowserGetContextResponses = {
71001
+ /**
71002
+ * 请求成功。
71003
+ */
71004
+ 200: BrowserContext;
71005
+ };
71006
+ export type BrowserGetContextResponse = BrowserGetContextResponses[keyof BrowserGetContextResponses];
71007
+ export type BrowserUpdateContextData = {
71008
+ body: {
71009
+ /**
71010
+ * 登录态名称;非空时为 1–128 个 ASCII 字母、数字或 . _ : -,在当前账户内唯一;空字符串表示不设名称或清除名称。
71011
+ */
71012
+ name?: '' | unknown;
71013
+ /**
71014
+ * 自定义字符串标签;最多 32 项,键最多 128 个 UTF-8 字节,值最多 1024 个 UTF-8 字节。 更新时整体替换;空对象清除标签,省略则保留。
71015
+ */
71016
+ labels?: {
71017
+ [key: string]: string;
71018
+ };
71019
+ };
71020
+ path: {
71021
+ /**
71022
+ * 登录态 ID;使用创建或列出登录态返回的 id,以 bsc_ 开头。
71023
+ */
71024
+ contextId: string;
71025
+ };
71026
+ query?: never;
71027
+ url: '/browser/v1/contexts/{contextId}';
71028
+ };
71029
+ export type BrowserUpdateContextErrors = {
71030
+ /**
71031
+ * INVALID_PARAMS / INVALID_FILTER / INVALID_PAGE_TOKEN
71032
+ */
71033
+ 400: BrowserError;
71034
+ /**
71035
+ * UNAUTHENTICATED / CONNECT_SIGNATURE_INVALID
71036
+ */
71037
+ 401: BrowserError;
71038
+ /**
71039
+ * INSUFFICIENT_BALANCE / QUOTA_EXHAUSTED
71040
+ */
71041
+ 402: BrowserError;
71042
+ /**
71043
+ * PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
71044
+ */
71045
+ 403: BrowserError;
71046
+ /**
71047
+ * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
71048
+ */
71049
+ 404: BrowserError;
71050
+ /**
71051
+ * SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
71052
+ */
71053
+ 409: BrowserError;
71054
+ /**
71055
+ * BROWSER_REVOKED
71056
+ */
71057
+ 410: BrowserError;
71058
+ /**
71059
+ * ACTION_RESULT_TOO_LARGE
71060
+ */
71061
+ 413: BrowserError;
71062
+ /**
71063
+ * CONCURRENCY_LIMIT / RATE_LIMITED / PROVIDER_CAPACITY
71064
+ */
71065
+ 429: BrowserError;
71066
+ /**
71067
+ * INTERNAL
71068
+ */
71069
+ 500: BrowserError;
71070
+ /**
71071
+ * NOT_IMPLEMENTED / PROVIDER_UNSUPPORTED
71072
+ */
71073
+ 501: BrowserError;
71074
+ /**
71075
+ * PROVIDER_FAILED
71076
+ */
71077
+ 502: BrowserError;
71078
+ /**
71079
+ * BROWSER_OFFLINE / SERVICE_UNAVAILABLE
71080
+ */
71081
+ 503: BrowserError;
71082
+ /**
71083
+ * ACTION_TIMEOUT
71084
+ */
71085
+ 504: BrowserError;
71086
+ };
71087
+ export type BrowserUpdateContextError = BrowserUpdateContextErrors[keyof BrowserUpdateContextErrors];
71088
+ export type BrowserUpdateContextResponses = {
71089
+ /**
71090
+ * 请求成功。
71091
+ */
71092
+ 200: BrowserContext;
71093
+ };
71094
+ export type BrowserUpdateContextResponse = BrowserUpdateContextResponses[keyof BrowserUpdateContextResponses];
71095
+ export type BrowserCreateByobPairingData = {
71096
+ body?: never;
71097
+ path?: never;
71098
+ query?: never;
71099
+ url: '/browser/v1/byob/pairings';
71100
+ };
71101
+ export type BrowserCreateByobPairingErrors = {
71102
+ /**
71103
+ * INVALID_PARAMS / INVALID_FILTER / INVALID_PAGE_TOKEN
71104
+ */
71105
+ 400: BrowserError;
71106
+ /**
71107
+ * UNAUTHENTICATED / CONNECT_SIGNATURE_INVALID
71108
+ */
71109
+ 401: BrowserError;
71110
+ /**
71111
+ * INSUFFICIENT_BALANCE / QUOTA_EXHAUSTED
71112
+ */
71113
+ 402: BrowserError;
71114
+ /**
71115
+ * PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
71116
+ */
71117
+ 403: BrowserError;
71118
+ /**
71119
+ * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
71120
+ */
71121
+ 404: BrowserError;
71122
+ /**
71123
+ * SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
71124
+ */
71125
+ 409: BrowserError;
71126
+ /**
71127
+ * BROWSER_REVOKED
71128
+ */
71129
+ 410: BrowserError;
71130
+ /**
71131
+ * ACTION_RESULT_TOO_LARGE
71132
+ */
71133
+ 413: BrowserError;
71134
+ /**
71135
+ * CONCURRENCY_LIMIT / RATE_LIMITED / PROVIDER_CAPACITY
71136
+ */
71137
+ 429: BrowserError;
71138
+ /**
71139
+ * INTERNAL
71140
+ */
71141
+ 500: BrowserError;
71142
+ /**
71143
+ * NOT_IMPLEMENTED / PROVIDER_UNSUPPORTED
71144
+ */
71145
+ 501: BrowserError;
71146
+ /**
71147
+ * PROVIDER_FAILED
71148
+ */
71149
+ 502: BrowserError;
71150
+ /**
71151
+ * BROWSER_OFFLINE / SERVICE_UNAVAILABLE
71152
+ */
71153
+ 503: BrowserError;
71154
+ /**
71155
+ * ACTION_TIMEOUT
71156
+ */
71157
+ 504: BrowserError;
71158
+ };
71159
+ export type BrowserCreateByobPairingError = BrowserCreateByobPairingErrors[keyof BrowserCreateByobPairingErrors];
71160
+ export type BrowserCreateByobPairingResponses = {
71161
+ /**
71162
+ * 请求成功。
71163
+ */
71164
+ 201: BrowserByobPairing;
71165
+ };
71166
+ export type BrowserCreateByobPairingResponse = BrowserCreateByobPairingResponses[keyof BrowserCreateByobPairingResponses];
71167
+ export type BrowserListByobBrowsersData = {
71168
+ body?: never;
71169
+ path?: never;
71170
+ query?: {
71171
+ /**
71172
+ * 上一页返回的 nextCursor,原样传入;省略时读取第一页。
71173
+ */
71174
+ cursor?: string;
71175
+ /**
71176
+ * 每页最多返回的浏览器数量;默认 50,范围 1–100。
71177
+ */
71178
+ limit?: number;
71179
+ };
71180
+ url: '/browser/v1/byob/browsers';
71181
+ };
71182
+ export type BrowserListByobBrowsersErrors = {
71183
+ /**
71184
+ * INVALID_PARAMS / INVALID_FILTER / INVALID_PAGE_TOKEN
71185
+ */
71186
+ 400: BrowserError;
71187
+ /**
71188
+ * UNAUTHENTICATED / CONNECT_SIGNATURE_INVALID
71189
+ */
71190
+ 401: BrowserError;
71191
+ /**
71192
+ * INSUFFICIENT_BALANCE / QUOTA_EXHAUSTED
71193
+ */
71194
+ 402: BrowserError;
71195
+ /**
71196
+ * PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
71197
+ */
71198
+ 403: BrowserError;
71199
+ /**
71200
+ * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
71201
+ */
71202
+ 404: BrowserError;
71203
+ /**
71204
+ * SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
71205
+ */
71206
+ 409: BrowserError;
71207
+ /**
71208
+ * BROWSER_REVOKED
71209
+ */
71210
+ 410: BrowserError;
69998
71211
  /**
69999
71212
  * ACTION_RESULT_TOO_LARGE
70000
71213
  */
@@ -70016,7 +71229,7 @@ export type BrowserGetSessionFrameErrors = {
70016
71229
  */
70017
71230
  502: BrowserError;
70018
71231
  /**
70019
- * SERVICE_UNAVAILABLE
71232
+ * BROWSER_OFFLINE / SERVICE_UNAVAILABLE
70020
71233
  */
70021
71234
  503: BrowserError;
70022
71235
  /**
@@ -70024,34 +71237,35 @@ export type BrowserGetSessionFrameErrors = {
70024
71237
  */
70025
71238
  504: BrowserError;
70026
71239
  };
70027
- export type BrowserGetSessionFrameError = BrowserGetSessionFrameErrors[keyof BrowserGetSessionFrameErrors];
70028
- export type BrowserGetSessionFrameResponses = {
71240
+ export type BrowserListByobBrowsersError = BrowserListByobBrowsersErrors[keyof BrowserListByobBrowsersErrors];
71241
+ export type BrowserListByobBrowsersResponses = {
70029
71242
  /**
70030
- * JPEG 画面帧,最多 2 MiB。
71243
+ * 分页列出的自带浏览器,按 ID 升序。
70031
71244
  */
70032
- 200: Blob | File;
70033
- };
70034
- export type BrowserGetSessionFrameResponse = BrowserGetSessionFrameResponses[keyof BrowserGetSessionFrameResponses];
70035
- export type BrowserListContextsData = {
70036
- body?: never;
70037
- path?: never;
70038
- query?: {
71245
+ 200: {
70039
71246
  /**
70040
- * 按登录态名称精确匹配;名称在当前账户内唯一,所以最多返回一条。省略时列出全部登录态。
71247
+ * 本页的自带浏览器;已断开的不在列表里。
70041
71248
  */
70042
- name?: string;
71249
+ data: Array<BrowserByobBrowser>;
70043
71250
  /**
70044
- * 登录态 ID;使用创建或列出登录态返回的 id,以 bsc_ 开头。
71251
+ * 下一页游标;原样传入 cursor,null 表示没有更多结果。
70045
71252
  */
70046
- cursor?: string;
71253
+ nextCursor: string | null;
71254
+ };
71255
+ };
71256
+ export type BrowserListByobBrowsersResponse = BrowserListByobBrowsersResponses[keyof BrowserListByobBrowsersResponses];
71257
+ export type BrowserGetByobBrowserData = {
71258
+ body?: never;
71259
+ path: {
70047
71260
  /**
70048
- * 每页最多返回的登录态数量;默认 25,范围 1–100。
71261
+ * 自带浏览器 ID,以 byb_ 开头;使用配对认领或列出自带浏览器返回的 id。
70049
71262
  */
70050
- limit?: number;
71263
+ browser_id: string;
70051
71264
  };
70052
- url: '/browser/v1/contexts';
71265
+ query?: never;
71266
+ url: '/browser/v1/byob/browsers/{browser_id}';
70053
71267
  };
70054
- export type BrowserListContextsErrors = {
71268
+ export type BrowserGetByobBrowserErrors = {
70055
71269
  /**
70056
71270
  * INVALID_PARAMS / INVALID_FILTER / INVALID_PAGE_TOKEN
70057
71271
  */
@@ -70069,13 +71283,17 @@ export type BrowserListContextsErrors = {
70069
71283
  */
70070
71284
  403: BrowserError;
70071
71285
  /**
70072
- * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
71286
+ * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
70073
71287
  */
70074
71288
  404: BrowserError;
70075
71289
  /**
70076
- * SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
71290
+ * SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
70077
71291
  */
70078
71292
  409: BrowserError;
71293
+ /**
71294
+ * BROWSER_REVOKED
71295
+ */
71296
+ 410: BrowserError;
70079
71297
  /**
70080
71298
  * ACTION_RESULT_TOO_LARGE
70081
71299
  */
@@ -70097,7 +71315,7 @@ export type BrowserListContextsErrors = {
70097
71315
  */
70098
71316
  502: BrowserError;
70099
71317
  /**
70100
- * SERVICE_UNAVAILABLE
71318
+ * BROWSER_OFFLINE / SERVICE_UNAVAILABLE
70101
71319
  */
70102
71320
  503: BrowserError;
70103
71321
  /**
@@ -70105,45 +71323,31 @@ export type BrowserListContextsErrors = {
70105
71323
  */
70106
71324
  504: BrowserError;
70107
71325
  };
70108
- export type BrowserListContextsError = BrowserListContextsErrors[keyof BrowserListContextsErrors];
70109
- export type BrowserListContextsResponses = {
71326
+ export type BrowserGetByobBrowserError = BrowserGetByobBrowserErrors[keyof BrowserGetByobBrowserErrors];
71327
+ export type BrowserGetByobBrowserResponses = {
70110
71328
  /**
70111
- * 分页查询结果,包含本页记录和下一页游标。
71329
+ * 请求成功。
70112
71330
  */
70113
- 200: {
70114
- /**
70115
- * 本页查询匹配的记录;没有匹配项时为空数组。
70116
- */
70117
- data: Array<BrowserContext>;
70118
- /**
70119
- * 下一页游标;原样传入 cursor,null 表示没有更多结果。
70120
- */
70121
- nextCursor: string | null;
70122
- };
71331
+ 200: BrowserByobBrowser;
70123
71332
  };
70124
- export type BrowserListContextsResponse = BrowserListContextsResponses[keyof BrowserListContextsResponses];
70125
- export type BrowserCreateContextData = {
71333
+ export type BrowserGetByobBrowserResponse = BrowserGetByobBrowserResponses[keyof BrowserGetByobBrowserResponses];
71334
+ export type BrowserUpdateByobBrowserData = {
70126
71335
  body: {
70127
71336
  /**
70128
- * 兼容项目字段;传入值被忽略,创建结果的 projectId 固定为 default。
70129
- */
70130
- projectId?: string;
70131
- /**
70132
- * 登录态名称;非空时为 1–128 个 ASCII 字母、数字或 . _ : -,在当前账户内唯一;空字符串表示不设名称或清除名称。
71337
+ * 新的显示名称,1–80 个字符。
70133
71338
  */
70134
- name?: '' | unknown;
71339
+ name?: string;
71340
+ };
71341
+ path: {
70135
71342
  /**
70136
- * 自定义字符串标签;最多 32 项,键最多 128 个 UTF-8 字节,值最多 1024 个 UTF-8 字节。
71343
+ * 自带浏览器 ID,以 byb_ 开头;使用配对认领或列出自带浏览器返回的 id。
70137
71344
  */
70138
- labels?: {
70139
- [key: string]: string;
70140
- };
71345
+ browser_id: string;
70141
71346
  };
70142
- path?: never;
70143
71347
  query?: never;
70144
- url: '/browser/v1/contexts';
71348
+ url: '/browser/v1/byob/browsers/{browser_id}';
70145
71349
  };
70146
- export type BrowserCreateContextErrors = {
71350
+ export type BrowserUpdateByobBrowserErrors = {
70147
71351
  /**
70148
71352
  * INVALID_PARAMS / INVALID_FILTER / INVALID_PAGE_TOKEN
70149
71353
  */
@@ -70161,13 +71365,17 @@ export type BrowserCreateContextErrors = {
70161
71365
  */
70162
71366
  403: BrowserError;
70163
71367
  /**
70164
- * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
71368
+ * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
70165
71369
  */
70166
71370
  404: BrowserError;
70167
71371
  /**
70168
- * SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
71372
+ * SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
70169
71373
  */
70170
71374
  409: BrowserError;
71375
+ /**
71376
+ * BROWSER_REVOKED
71377
+ */
71378
+ 410: BrowserError;
70171
71379
  /**
70172
71380
  * ACTION_RESULT_TOO_LARGE
70173
71381
  */
@@ -70189,7 +71397,7 @@ export type BrowserCreateContextErrors = {
70189
71397
  */
70190
71398
  502: BrowserError;
70191
71399
  /**
70192
- * SERVICE_UNAVAILABLE
71400
+ * BROWSER_OFFLINE / SERVICE_UNAVAILABLE
70193
71401
  */
70194
71402
  503: BrowserError;
70195
71403
  /**
@@ -70197,26 +71405,26 @@ export type BrowserCreateContextErrors = {
70197
71405
  */
70198
71406
  504: BrowserError;
70199
71407
  };
70200
- export type BrowserCreateContextError = BrowserCreateContextErrors[keyof BrowserCreateContextErrors];
70201
- export type BrowserCreateContextResponses = {
71408
+ export type BrowserUpdateByobBrowserError = BrowserUpdateByobBrowserErrors[keyof BrowserUpdateByobBrowserErrors];
71409
+ export type BrowserUpdateByobBrowserResponses = {
70202
71410
  /**
70203
71411
  * 请求成功。
70204
71412
  */
70205
- 201: BrowserContextCreateResult;
71413
+ 200: BrowserByobBrowser;
70206
71414
  };
70207
- export type BrowserCreateContextResponse = BrowserCreateContextResponses[keyof BrowserCreateContextResponses];
70208
- export type BrowserDeleteContextData = {
71415
+ export type BrowserUpdateByobBrowserResponse = BrowserUpdateByobBrowserResponses[keyof BrowserUpdateByobBrowserResponses];
71416
+ export type BrowserDisconnectByobBrowserData = {
70209
71417
  body?: never;
70210
71418
  path: {
70211
71419
  /**
70212
- * 登录态 ID;使用创建或列出登录态返回的 id,以 bsc_ 开头。
71420
+ * 自带浏览器 ID,以 byb_ 开头;使用配对认领或列出自带浏览器返回的 id。
70213
71421
  */
70214
- contextId: string;
71422
+ browser_id: string;
70215
71423
  };
70216
71424
  query?: never;
70217
- url: '/browser/v1/contexts/{contextId}';
71425
+ url: '/browser/v1/byob/browsers/{browser_id}/disconnect';
70218
71426
  };
70219
- export type BrowserDeleteContextErrors = {
71427
+ export type BrowserDisconnectByobBrowserErrors = {
70220
71428
  /**
70221
71429
  * INVALID_PARAMS / INVALID_FILTER / INVALID_PAGE_TOKEN
70222
71430
  */
@@ -70234,13 +71442,17 @@ export type BrowserDeleteContextErrors = {
70234
71442
  */
70235
71443
  403: BrowserError;
70236
71444
  /**
70237
- * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
71445
+ * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
70238
71446
  */
70239
71447
  404: BrowserError;
70240
71448
  /**
70241
- * SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
71449
+ * SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
70242
71450
  */
70243
71451
  409: BrowserError;
71452
+ /**
71453
+ * BROWSER_REVOKED
71454
+ */
71455
+ 410: BrowserError;
70244
71456
  /**
70245
71457
  * ACTION_RESULT_TOO_LARGE
70246
71458
  */
@@ -70262,7 +71474,7 @@ export type BrowserDeleteContextErrors = {
70262
71474
  */
70263
71475
  502: BrowserError;
70264
71476
  /**
70265
- * SERVICE_UNAVAILABLE
71477
+ * BROWSER_OFFLINE / SERVICE_UNAVAILABLE
70266
71478
  */
70267
71479
  503: BrowserError;
70268
71480
  /**
@@ -70270,31 +71482,26 @@ export type BrowserDeleteContextErrors = {
70270
71482
  */
70271
71483
  504: BrowserError;
70272
71484
  };
70273
- export type BrowserDeleteContextError = BrowserDeleteContextErrors[keyof BrowserDeleteContextErrors];
70274
- export type BrowserDeleteContextResponses = {
71485
+ export type BrowserDisconnectByobBrowserError = BrowserDisconnectByobBrowserErrors[keyof BrowserDisconnectByobBrowserErrors];
71486
+ export type BrowserDisconnectByobBrowserResponses = {
70275
71487
  /**
70276
71488
  * 请求成功。
70277
71489
  */
70278
- 200: {
70279
- /**
70280
- * 登录态及保存内容已删除,成功时固定返回 true。
70281
- */
70282
- deleted: true;
70283
- };
71490
+ 200: BrowserByobBrowser;
70284
71491
  };
70285
- export type BrowserDeleteContextResponse = BrowserDeleteContextResponses[keyof BrowserDeleteContextResponses];
70286
- export type BrowserGetContextData = {
71492
+ export type BrowserDisconnectByobBrowserResponse = BrowserDisconnectByobBrowserResponses[keyof BrowserDisconnectByobBrowserResponses];
71493
+ export type BrowserReadByobPairingData = {
70287
71494
  body?: never;
70288
71495
  path: {
70289
71496
  /**
70290
- * 登录态 ID;使用创建或列出登录态返回的 id,以 bsc_ 开头。
71497
+ * 8 位配对码,来自创建配对码的结果。
70291
71498
  */
70292
- contextId: string;
71499
+ code: string;
70293
71500
  };
70294
71501
  query?: never;
70295
- url: '/browser/v1/contexts/{contextId}';
71502
+ url: '/browser/v1/byob/pairings/{code}';
70296
71503
  };
70297
- export type BrowserGetContextErrors = {
71504
+ export type BrowserReadByobPairingErrors = {
70298
71505
  /**
70299
71506
  * INVALID_PARAMS / INVALID_FILTER / INVALID_PAGE_TOKEN
70300
71507
  */
@@ -70312,13 +71519,17 @@ export type BrowserGetContextErrors = {
70312
71519
  */
70313
71520
  403: BrowserError;
70314
71521
  /**
70315
- * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
71522
+ * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
70316
71523
  */
70317
71524
  404: BrowserError;
70318
71525
  /**
70319
- * SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
71526
+ * SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
70320
71527
  */
70321
71528
  409: BrowserError;
71529
+ /**
71530
+ * BROWSER_REVOKED
71531
+ */
71532
+ 410: BrowserError;
70322
71533
  /**
70323
71534
  * ACTION_RESULT_TOO_LARGE
70324
71535
  */
@@ -70340,7 +71551,7 @@ export type BrowserGetContextErrors = {
70340
71551
  */
70341
71552
  502: BrowserError;
70342
71553
  /**
70343
- * SERVICE_UNAVAILABLE
71554
+ * BROWSER_OFFLINE / SERVICE_UNAVAILABLE
70344
71555
  */
70345
71556
  503: BrowserError;
70346
71557
  /**
@@ -70348,37 +71559,26 @@ export type BrowserGetContextErrors = {
70348
71559
  */
70349
71560
  504: BrowserError;
70350
71561
  };
70351
- export type BrowserGetContextError = BrowserGetContextErrors[keyof BrowserGetContextErrors];
70352
- export type BrowserGetContextResponses = {
71562
+ export type BrowserReadByobPairingError = BrowserReadByobPairingErrors[keyof BrowserReadByobPairingErrors];
71563
+ export type BrowserReadByobPairingResponses = {
70353
71564
  /**
70354
71565
  * 请求成功。
70355
71566
  */
70356
- 200: BrowserContext;
71567
+ 200: BrowserByobPairingView;
70357
71568
  };
70358
- export type BrowserGetContextResponse = BrowserGetContextResponses[keyof BrowserGetContextResponses];
70359
- export type BrowserUpdateContextData = {
70360
- body: {
70361
- /**
70362
- * 登录态名称;非空时为 1–128 个 ASCII 字母、数字或 . _ : -,在当前账户内唯一;空字符串表示不设名称或清除名称。
70363
- */
70364
- name?: '' | unknown;
70365
- /**
70366
- * 自定义字符串标签;最多 32 项,键最多 128 个 UTF-8 字节,值最多 1024 个 UTF-8 字节。 更新时整体替换;空对象清除标签,省略则保留。
70367
- */
70368
- labels?: {
70369
- [key: string]: string;
70370
- };
70371
- };
71569
+ export type BrowserReadByobPairingResponse = BrowserReadByobPairingResponses[keyof BrowserReadByobPairingResponses];
71570
+ export type BrowserClaimByobPairingData = {
71571
+ body: BrowserByobClaim;
70372
71572
  path: {
70373
71573
  /**
70374
- * 登录态 ID;使用创建或列出登录态返回的 id,以 bsc_ 开头。
71574
+ * 8 位配对码,来自创建配对码的结果。
70375
71575
  */
70376
- contextId: string;
71576
+ code: string;
70377
71577
  };
70378
71578
  query?: never;
70379
- url: '/browser/v1/contexts/{contextId}';
71579
+ url: '/browser/v1/byob/pairings/{code}/claim';
70380
71580
  };
70381
- export type BrowserUpdateContextErrors = {
71581
+ export type BrowserClaimByobPairingErrors = {
70382
71582
  /**
70383
71583
  * INVALID_PARAMS / INVALID_FILTER / INVALID_PAGE_TOKEN
70384
71584
  */
@@ -70396,13 +71596,17 @@ export type BrowserUpdateContextErrors = {
70396
71596
  */
70397
71597
  403: BrowserError;
70398
71598
  /**
70399
- * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
71599
+ * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
70400
71600
  */
70401
71601
  404: BrowserError;
70402
71602
  /**
70403
- * SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
71603
+ * SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
70404
71604
  */
70405
71605
  409: BrowserError;
71606
+ /**
71607
+ * BROWSER_REVOKED
71608
+ */
71609
+ 410: BrowserError;
70406
71610
  /**
70407
71611
  * ACTION_RESULT_TOO_LARGE
70408
71612
  */
@@ -70424,7 +71628,7 @@ export type BrowserUpdateContextErrors = {
70424
71628
  */
70425
71629
  502: BrowserError;
70426
71630
  /**
70427
- * SERVICE_UNAVAILABLE
71631
+ * BROWSER_OFFLINE / SERVICE_UNAVAILABLE
70428
71632
  */
70429
71633
  503: BrowserError;
70430
71634
  /**
@@ -70432,14 +71636,14 @@ export type BrowserUpdateContextErrors = {
70432
71636
  */
70433
71637
  504: BrowserError;
70434
71638
  };
70435
- export type BrowserUpdateContextError = BrowserUpdateContextErrors[keyof BrowserUpdateContextErrors];
70436
- export type BrowserUpdateContextResponses = {
71639
+ export type BrowserClaimByobPairingError = BrowserClaimByobPairingErrors[keyof BrowserClaimByobPairingErrors];
71640
+ export type BrowserClaimByobPairingResponses = {
70437
71641
  /**
70438
- * 请求成功。
71642
+ * 认领成功。
70439
71643
  */
70440
- 200: BrowserContext;
71644
+ 201: BrowserByobClaimResult;
70441
71645
  };
70442
- export type BrowserUpdateContextResponse = BrowserUpdateContextResponses[keyof BrowserUpdateContextResponses];
71646
+ export type BrowserClaimByobPairingResponse = BrowserClaimByobPairingResponses[keyof BrowserClaimByobPairingResponses];
70443
71647
  export type BrowserConnectData = {
70444
71648
  body?: never;
70445
71649
  path?: never;
@@ -70501,13 +71705,17 @@ export type BrowserConnectErrors = {
70501
71705
  */
70502
71706
  403: BrowserError;
70503
71707
  /**
70504
- * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
71708
+ * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
70505
71709
  */
70506
71710
  404: BrowserError;
70507
71711
  /**
70508
- * SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
71712
+ * SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
70509
71713
  */
70510
71714
  409: BrowserError;
71715
+ /**
71716
+ * BROWSER_REVOKED
71717
+ */
71718
+ 410: BrowserError;
70511
71719
  /**
70512
71720
  * ACTION_RESULT_TOO_LARGE
70513
71721
  */
@@ -70529,7 +71737,7 @@ export type BrowserConnectErrors = {
70529
71737
  */
70530
71738
  502: BrowserError;
70531
71739
  /**
70532
- * SERVICE_UNAVAILABLE
71740
+ * BROWSER_OFFLINE / SERVICE_UNAVAILABLE
70533
71741
  */
70534
71742
  503: BrowserError;
70535
71743
  /**
@@ -70576,13 +71784,17 @@ export type BrowserLiveViewErrors = {
70576
71784
  */
70577
71785
  403: BrowserError;
70578
71786
  /**
70579
- * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
71787
+ * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
70580
71788
  */
70581
71789
  404: BrowserError;
70582
71790
  /**
70583
- * SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
71791
+ * SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
70584
71792
  */
70585
71793
  409: BrowserError;
71794
+ /**
71795
+ * BROWSER_REVOKED
71796
+ */
71797
+ 410: BrowserError;
70586
71798
  /**
70587
71799
  * ACTION_RESULT_TOO_LARGE
70588
71800
  */
@@ -70604,7 +71816,7 @@ export type BrowserLiveViewErrors = {
70604
71816
  */
70605
71817
  502: BrowserError;
70606
71818
  /**
70607
- * SERVICE_UNAVAILABLE
71819
+ * BROWSER_OFFLINE / SERVICE_UNAVAILABLE
70608
71820
  */
70609
71821
  503: BrowserError;
70610
71822
  /**
@@ -70642,13 +71854,17 @@ export type BrowserStreamSessionErrors = {
70642
71854
  */
70643
71855
  403: BrowserError;
70644
71856
  /**
70645
- * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
71857
+ * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
70646
71858
  */
70647
71859
  404: BrowserError;
70648
71860
  /**
70649
- * SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
71861
+ * SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
70650
71862
  */
70651
71863
  409: BrowserError;
71864
+ /**
71865
+ * BROWSER_REVOKED
71866
+ */
71867
+ 410: BrowserError;
70652
71868
  /**
70653
71869
  * ACTION_RESULT_TOO_LARGE
70654
71870
  */
@@ -70670,7 +71886,7 @@ export type BrowserStreamSessionErrors = {
70670
71886
  */
70671
71887
  502: BrowserError;
70672
71888
  /**
70673
- * SERVICE_UNAVAILABLE
71889
+ * BROWSER_OFFLINE / SERVICE_UNAVAILABLE
70674
71890
  */
70675
71891
  503: BrowserError;
70676
71892
  /**
@@ -70715,13 +71931,17 @@ export type BrowserStreamSessionFramesErrors = {
70715
71931
  */
70716
71932
  403: BrowserError;
70717
71933
  /**
70718
- * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
71934
+ * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
70719
71935
  */
70720
71936
  404: BrowserError;
70721
71937
  /**
70722
- * SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
71938
+ * SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
70723
71939
  */
70724
71940
  409: BrowserError;
71941
+ /**
71942
+ * BROWSER_REVOKED
71943
+ */
71944
+ 410: BrowserError;
70725
71945
  /**
70726
71946
  * ACTION_RESULT_TOO_LARGE
70727
71947
  */
@@ -70743,7 +71963,7 @@ export type BrowserStreamSessionFramesErrors = {
70743
71963
  */
70744
71964
  502: BrowserError;
70745
71965
  /**
70746
- * SERVICE_UNAVAILABLE
71966
+ * BROWSER_OFFLINE / SERVICE_UNAVAILABLE
70747
71967
  */
70748
71968
  503: BrowserError;
70749
71969
  /**
@@ -78048,10 +79268,18 @@ export type GetOrganizationNotificationsInboxData = {
78048
79268
  url: '/organization/v1/notifications/inbox';
78049
79269
  };
78050
79270
  export type GetOrganizationNotificationsInboxErrors = {
79271
+ /**
79272
+ * `INVALID_PARAMS` from the service for a read it cannot answer (RFC 9457 problem).
79273
+ */
79274
+ 400: unknown;
78051
79275
  /**
78052
79276
  * Missing or invalid credential (RFC 9457 problem).
78053
79277
  */
78054
79278
  401: unknown;
79279
+ /**
79280
+ * The notification service did not answer, or failed in a way it did not classify (RFC 9457 problem, `UNAVAILABLE`). A refusal the service classifies is never a 502 — it reaches the caller in its own class (400, 403, 404), so a client may act on it.
79281
+ */
79282
+ 502: unknown;
78055
79283
  };
78056
79284
  export type GetOrganizationNotificationsInboxResponses = {
78057
79285
  /**
@@ -78094,13 +79322,17 @@ export type ListOrganizationNotificationLettersData = {
78094
79322
  };
78095
79323
  export type ListOrganizationNotificationLettersErrors = {
78096
79324
  /**
78097
- * Invalid status, archived or limit (RFC 9457 problem).
79325
+ * A bad `status`, `archived` or `limit`, or `INVALID_PARAMS` from the service for a cursor it did not issue (RFC 9457 problem).
78098
79326
  */
78099
79327
  400: unknown;
78100
79328
  /**
78101
79329
  * Missing or invalid credential (RFC 9457 problem).
78102
79330
  */
78103
79331
  401: unknown;
79332
+ /**
79333
+ * The notification service did not answer, or failed in a way it did not classify (RFC 9457 problem, `UNAVAILABLE`). A refusal the service classifies is never a 502 — it reaches the caller in its own class (400, 403, 404), so a client may act on it.
79334
+ */
79335
+ 502: unknown;
78104
79336
  };
78105
79337
  export type ListOrganizationNotificationLettersResponses = {
78106
79338
  /**
@@ -78203,7 +79435,7 @@ export type GetOrganizationNotificationLetterData = {
78203
79435
  };
78204
79436
  export type GetOrganizationNotificationLetterErrors = {
78205
79437
  /**
78206
- * The id is not a letter id (RFC 9457 problem).
79438
+ * The id is not a letter id — `INVALID_PARAMS` from the service (RFC 9457 problem).
78207
79439
  */
78208
79440
  400: unknown;
78209
79441
  /**
@@ -78211,9 +79443,13 @@ export type GetOrganizationNotificationLetterErrors = {
78211
79443
  */
78212
79444
  401: unknown;
78213
79445
  /**
78214
- * No such letter in your mailbox (RFC 9457 problem).
79446
+ * No such letter in your mailbox in this organization — `MESSAGE_NOT_FOUND`, the same answer for a letter that is not yours, is still scheduled, or never existed (RFC 9457 problem).
78215
79447
  */
78216
79448
  404: unknown;
79449
+ /**
79450
+ * The notification service did not answer, or failed in a way it did not classify (RFC 9457 problem, `UNAVAILABLE`). A refusal the service classifies is never a 502 — it reaches the caller in its own class (400, 403, 404), so a client may act on it.
79451
+ */
79452
+ 502: unknown;
78217
79453
  };
78218
79454
  export type GetOrganizationNotificationLetterResponses = {
78219
79455
  /**
@@ -78303,7 +79539,7 @@ export type ReadOrganizationNotificationLetterData = {
78303
79539
  };
78304
79540
  export type ReadOrganizationNotificationLetterErrors = {
78305
79541
  /**
78306
- * The id is not a letter id (RFC 9457 problem).
79542
+ * The id is not a letter id — `INVALID_PARAMS` from the service (RFC 9457 problem).
78307
79543
  */
78308
79544
  400: unknown;
78309
79545
  /**
@@ -78311,9 +79547,13 @@ export type ReadOrganizationNotificationLetterErrors = {
78311
79547
  */
78312
79548
  401: unknown;
78313
79549
  /**
78314
- * No such letter in your mailbox (RFC 9457 problem).
79550
+ * No such letter in your mailbox in this organization — `MESSAGE_NOT_FOUND` (RFC 9457 problem).
78315
79551
  */
78316
79552
  404: unknown;
79553
+ /**
79554
+ * The notification service did not answer, or failed in a way it did not classify (RFC 9457 problem, `UNAVAILABLE`). A refusal the service classifies is never a 502 — it reaches the caller in its own class (400, 403, 404), so a client may act on it.
79555
+ */
79556
+ 502: unknown;
78317
79557
  };
78318
79558
  export type ReadOrganizationNotificationLetterResponses = {
78319
79559
  /**
@@ -78340,13 +79580,17 @@ export type ReadAllOrganizationNotificationLettersData = {
78340
79580
  };
78341
79581
  export type ReadAllOrganizationNotificationLettersErrors = {
78342
79582
  /**
78343
- * The body is not a JSON object, or kind is unknown (RFC 9457 problem).
79583
+ * The body is not a JSON object, `kind` is unknown, or `INVALID_PARAMS` from the service (RFC 9457 problem).
78344
79584
  */
78345
79585
  400: unknown;
78346
79586
  /**
78347
79587
  * Missing or invalid credential (RFC 9457 problem).
78348
79588
  */
78349
79589
  401: unknown;
79590
+ /**
79591
+ * The notification service did not answer, or failed in a way it did not classify (RFC 9457 problem, `UNAVAILABLE`). A refusal the service classifies is never a 502 — it reaches the caller in its own class (400, 403, 404), so a client may act on it.
79592
+ */
79593
+ 502: unknown;
78350
79594
  };
78351
79595
  export type ReadAllOrganizationNotificationLettersResponses = {
78352
79596
  /**
@@ -78373,7 +79617,7 @@ export type ArchiveOrganizationNotificationLetterData = {
78373
79617
  };
78374
79618
  export type ArchiveOrganizationNotificationLetterErrors = {
78375
79619
  /**
78376
- * The id is not a letter id (RFC 9457 problem).
79620
+ * The id is not a letter id — `INVALID_PARAMS` from the service (RFC 9457 problem).
78377
79621
  */
78378
79622
  400: unknown;
78379
79623
  /**
@@ -78381,9 +79625,13 @@ export type ArchiveOrganizationNotificationLetterErrors = {
78381
79625
  */
78382
79626
  401: unknown;
78383
79627
  /**
78384
- * No such letter in your mailbox (RFC 9457 problem).
79628
+ * No such letter in your mailbox in this organization — `MESSAGE_NOT_FOUND` (RFC 9457 problem).
78385
79629
  */
78386
79630
  404: unknown;
79631
+ /**
79632
+ * The notification service did not answer, or failed in a way it did not classify (RFC 9457 problem, `UNAVAILABLE`). A refusal the service classifies is never a 502 — it reaches the caller in its own class (400, 403, 404), so a client may act on it.
79633
+ */
79634
+ 502: unknown;
78387
79635
  };
78388
79636
  export type ArchiveOrganizationNotificationLetterResponses = {
78389
79637
  /**
@@ -78408,6 +79656,10 @@ export type GetOrganizationNotificationPreferencesErrors = {
78408
79656
  * Missing or invalid credential (RFC 9457 problem).
78409
79657
  */
78410
79658
  401: unknown;
79659
+ /**
79660
+ * The notification service did not answer, or failed in a way it did not classify (RFC 9457 problem, `UNAVAILABLE`). A refusal the service classifies is never a 502 — it reaches the caller in its own class (400, 403, 404), so a client may act on it.
79661
+ */
79662
+ 502: unknown;
78411
79663
  };
78412
79664
  export type GetOrganizationNotificationPreferencesResponses = {
78413
79665
  /**
@@ -78499,7 +79751,7 @@ export type UpdateOrganizationNotificationPreferencesData = {
78499
79751
  };
78500
79752
  export type UpdateOrganizationNotificationPreferencesErrors = {
78501
79753
  /**
78502
- * Invalid switch, unknown category or unoffered channel (RFC 9457 problem).
79754
+ * Invalid switch, unknown category or unoffered channel — `INVALID_PARAMS`, `NOT_CONFIGURABLE` or `CRITICAL_CHANNELS_OFF` from the service (RFC 9457 problem).
78503
79755
  */
78504
79756
  400: unknown;
78505
79757
  /**
@@ -78507,9 +79759,13 @@ export type UpdateOrganizationNotificationPreferencesErrors = {
78507
79759
  */
78508
79760
  401: unknown;
78509
79761
  /**
78510
- * The organization does not let members change their own switches (ORGANIZATION_LOCKED).
79762
+ * The organization does not let members change their own switches — `ORGANIZATION_LOCKED` from the service (RFC 9457 problem).
78511
79763
  */
78512
79764
  403: unknown;
79765
+ /**
79766
+ * The notification service did not answer, or failed in a way it did not classify (RFC 9457 problem, `UNAVAILABLE`). A refusal the service classifies is never a 502 — it reaches the caller in its own class (400, 403, 404), so a client may act on it.
79767
+ */
79768
+ 502: unknown;
78513
79769
  };
78514
79770
  export type UpdateOrganizationNotificationPreferencesResponses = {
78515
79771
  /**
@@ -78531,6 +79787,10 @@ export type GetOrganizationNotificationDefaultsErrors = {
78531
79787
  * Missing or invalid credential (RFC 9457 problem).
78532
79788
  */
78533
79789
  401: unknown;
79790
+ /**
79791
+ * The notification service did not answer, or failed in a way it did not classify (RFC 9457 problem, `UNAVAILABLE`). A refusal the service classifies is never a 502 — it reaches the caller in its own class (400, 403, 404), so a client may act on it.
79792
+ */
79793
+ 502: unknown;
78534
79794
  };
78535
79795
  export type GetOrganizationNotificationDefaultsResponses = {
78536
79796
  /**
@@ -78568,7 +79828,7 @@ export type UpdateOrganizationNotificationDefaultsData = {
78568
79828
  };
78569
79829
  export type UpdateOrganizationNotificationDefaultsErrors = {
78570
79830
  /**
78571
- * Invalid default, unknown category or hidden critical category (RFC 9457 problem).
79831
+ * Invalid default, unknown category or hidden critical category (RFC 9457 problem, `INVALID_PARAMS`).
78572
79832
  */
78573
79833
  400: unknown;
78574
79834
  /**
@@ -78576,9 +79836,13 @@ export type UpdateOrganizationNotificationDefaultsErrors = {
78576
79836
  */
78577
79837
  401: unknown;
78578
79838
  /**
78579
- * The caller is not an owner or admin of this organization.
79839
+ * The caller is not an owner or admin of this organization — `PERMISSION_DENIED` from the service (RFC 9457 problem).
78580
79840
  */
78581
79841
  403: unknown;
79842
+ /**
79843
+ * The notification service did not answer, or failed in a way it did not classify (RFC 9457 problem, `UNAVAILABLE`). A refusal the service classifies is never a 502 — it reaches the caller in its own class (400, 403, 404), so a client may act on it.
79844
+ */
79845
+ 502: unknown;
78582
79846
  };
78583
79847
  export type UpdateOrganizationNotificationDefaultsResponses = {
78584
79848
  /**
@@ -78606,13 +79870,17 @@ export type ListOrganizationNotificationDeliveriesData = {
78606
79870
  };
78607
79871
  export type ListOrganizationNotificationDeliveriesErrors = {
78608
79872
  /**
78609
- * Invalid limit or page cursor (RFC 9457 problem).
79873
+ * Invalid limit, or `INVALID_PARAMS` from the service for a page cursor it did not issue (RFC 9457 problem).
78610
79874
  */
78611
79875
  400: unknown;
78612
79876
  /**
78613
79877
  * Missing or invalid credential (RFC 9457 problem).
78614
79878
  */
78615
79879
  401: unknown;
79880
+ /**
79881
+ * The notification service did not answer, or failed in a way it did not classify (RFC 9457 problem, `UNAVAILABLE`). A refusal the service classifies is never a 502 — it reaches the caller in its own class (400, 403, 404), so a client may act on it.
79882
+ */
79883
+ 502: unknown;
78616
79884
  };
78617
79885
  export type ListOrganizationNotificationDeliveriesResponses = {
78618
79886
  /**
@@ -79844,7 +81112,7 @@ export type ListByodDevicesResponses = {
79844
81112
  */
79845
81113
  id: string;
79846
81114
  /**
79847
- * 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.
81115
+ * The device's platform, which decides the use faces it answers. A desktop (macos, linux) pairs like a phone; windows is not supported yet.
79848
81116
  */
79849
81117
  platform: 'android' | 'macos' | 'linux';
79850
81118
  /**
@@ -79879,6 +81147,23 @@ export type ListByodDevicesResponses = {
79879
81147
  * The absolute directories a desktop registered for agent sessions with its last hello; a session may only start in one of these. Empty for a phone and for a desktop that has not connected yet.
79880
81148
  */
79881
81149
  agent_dirs: Array<string>;
81150
+ /**
81151
+ * Which agent each registered directory is bound to, as the desktop's last hello reported. Empty for a phone and for a desktop that has not connected yet.
81152
+ */
81153
+ agent_bindings: Array<{
81154
+ /**
81155
+ * The absolute directory the desktop bound to an agent with praxis agent connect.
81156
+ */
81157
+ dir: string;
81158
+ /**
81159
+ * The agent the directory is bound to: its identity number or its agent id.
81160
+ */
81161
+ agent: string;
81162
+ }>;
81163
+ /**
81164
+ * 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.
81165
+ */
81166
+ envd_version: string | null;
79882
81167
  /**
79883
81168
  * 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.
79884
81169
  */
@@ -79926,7 +81211,7 @@ export type GetByodDeviceResponses = {
79926
81211
  */
79927
81212
  id: string;
79928
81213
  /**
79929
- * 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.
81214
+ * The device's platform, which decides the use faces it answers. A desktop (macos, linux) pairs like a phone; windows is not supported yet.
79930
81215
  */
79931
81216
  platform: 'android' | 'macos' | 'linux';
79932
81217
  /**
@@ -79961,6 +81246,23 @@ export type GetByodDeviceResponses = {
79961
81246
  * The absolute directories a desktop registered for agent sessions with its last hello; a session may only start in one of these. Empty for a phone and for a desktop that has not connected yet.
79962
81247
  */
79963
81248
  agent_dirs: Array<string>;
81249
+ /**
81250
+ * Which agent each registered directory is bound to, as the desktop's last hello reported. Empty for a phone and for a desktop that has not connected yet.
81251
+ */
81252
+ agent_bindings: Array<{
81253
+ /**
81254
+ * The absolute directory the desktop bound to an agent with praxis agent connect.
81255
+ */
81256
+ dir: string;
81257
+ /**
81258
+ * The agent the directory is bound to: its identity number or its agent id.
81259
+ */
81260
+ agent: string;
81261
+ }>;
81262
+ /**
81263
+ * 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.
81264
+ */
81265
+ envd_version: string | null;
79964
81266
  /**
79965
81267
  * 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.
79966
81268
  */
@@ -80019,7 +81321,7 @@ export type UpdateByodDeviceResponses = {
80019
81321
  */
80020
81322
  id: string;
80021
81323
  /**
80022
- * 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.
81324
+ * The device's platform, which decides the use faces it answers. A desktop (macos, linux) pairs like a phone; windows is not supported yet.
80023
81325
  */
80024
81326
  platform: 'android' | 'macos' | 'linux';
80025
81327
  /**
@@ -80054,6 +81356,23 @@ export type UpdateByodDeviceResponses = {
80054
81356
  * The absolute directories a desktop registered for agent sessions with its last hello; a session may only start in one of these. Empty for a phone and for a desktop that has not connected yet.
80055
81357
  */
80056
81358
  agent_dirs: Array<string>;
81359
+ /**
81360
+ * Which agent each registered directory is bound to, as the desktop's last hello reported. Empty for a phone and for a desktop that has not connected yet.
81361
+ */
81362
+ agent_bindings: Array<{
81363
+ /**
81364
+ * The absolute directory the desktop bound to an agent with praxis agent connect.
81365
+ */
81366
+ dir: string;
81367
+ /**
81368
+ * The agent the directory is bound to: its identity number or its agent id.
81369
+ */
81370
+ agent: string;
81371
+ }>;
81372
+ /**
81373
+ * 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.
81374
+ */
81375
+ envd_version: string | null;
80057
81376
  /**
80058
81377
  * 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.
80059
81378
  */
@@ -80145,7 +81464,7 @@ export type ClaimByodPairingData = {
80145
81464
  */
80146
81465
  body: {
80147
81466
  /**
80148
- * 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.
81467
+ * The device's platform. macos and linux are accepted for every organization; any other value than android, macos or linux answers INVALID_PARAMS.
80149
81468
  */
80150
81469
  platform: 'android' | 'macos' | 'linux';
80151
81470
  /**
@@ -80176,7 +81495,7 @@ export type ClaimByodPairingData = {
80176
81495
  };
80177
81496
  export type ClaimByodPairingErrors = {
80178
81497
  /**
80179
- * 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.
81498
+ * 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.
80180
81499
  */
80181
81500
  400: unknown;
80182
81501
  /**
@@ -82799,8 +84118,7 @@ export type SessionsUpdateData = {
82799
84118
  */
82800
84119
  title?: null | string;
82801
84120
  /**
82802
- * Vault IDs (`vlt_*`) to attach to the session. Not yet supported;
82803
- * requests setting this field are rejected. Reserved for future use.
84121
+ * 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.
82804
84122
  */
82805
84123
  vault_ids?: Array<string>;
82806
84124
  /**
@@ -83347,6 +84665,15 @@ export type AgentsListResponses = {
83347
84665
  name: string;
83348
84666
  }>;
83349
84667
  };
84668
+ /**
84669
+ * 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.
84670
+ */
84671
+ browser?: {
84672
+ /**
84673
+ * A paired browser's id (byb_ and 26 lowercase hex characters), from browser.byob.browsers.list.
84674
+ */
84675
+ byob: string;
84676
+ } | null;
83350
84677
  /**
83351
84678
  * 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.
83352
84679
  */
@@ -83732,7 +85059,7 @@ export type AgentsListResponses = {
83732
85059
  */
83733
85060
  environment_id?: string | null;
83734
85061
  /**
83735
- * 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.
85062
+ * 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.
83736
85063
  */
83737
85064
  vault_ids?: Array<string>;
83738
85065
  /**
@@ -84271,7 +85598,7 @@ export type AgentsCreateData = {
84271
85598
  */
84272
85599
  environment_id?: string | null;
84273
85600
  /**
84274
- * 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.
85601
+ * 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.
84275
85602
  */
84276
85603
  vault_ids?: Array<string>;
84277
85604
  /**
@@ -84296,6 +85623,15 @@ export type AgentsCreateData = {
84296
85623
  name: string;
84297
85624
  }>;
84298
85625
  };
85626
+ /**
85627
+ * 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.
85628
+ */
85629
+ browser?: {
85630
+ /**
85631
+ * A paired browser's id (byb_ and 26 lowercase hex characters), from browser.byob.browsers.list.
85632
+ */
85633
+ byob: string;
85634
+ } | null;
84299
85635
  /**
84300
85636
  * 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.
84301
85637
  */
@@ -84551,6 +85887,15 @@ export type AgentsCreateResponses = {
84551
85887
  name: string;
84552
85888
  }>;
84553
85889
  };
85890
+ /**
85891
+ * 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.
85892
+ */
85893
+ browser?: {
85894
+ /**
85895
+ * A paired browser's id (byb_ and 26 lowercase hex characters), from browser.byob.browsers.list.
85896
+ */
85897
+ byob: string;
85898
+ } | null;
84554
85899
  /**
84555
85900
  * 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.
84556
85901
  */
@@ -84936,7 +86281,7 @@ export type AgentsCreateResponses = {
84936
86281
  */
84937
86282
  environment_id?: string | null;
84938
86283
  /**
84939
- * 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.
86284
+ * 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.
84940
86285
  */
84941
86286
  vault_ids?: Array<string>;
84942
86287
  /**
@@ -85213,6 +86558,15 @@ export type AgentsRetrieveResponses = {
85213
86558
  name: string;
85214
86559
  }>;
85215
86560
  };
86561
+ /**
86562
+ * 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.
86563
+ */
86564
+ browser?: {
86565
+ /**
86566
+ * A paired browser's id (byb_ and 26 lowercase hex characters), from browser.byob.browsers.list.
86567
+ */
86568
+ byob: string;
86569
+ } | null;
85216
86570
  /**
85217
86571
  * 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.
85218
86572
  */
@@ -85598,7 +86952,7 @@ export type AgentsRetrieveResponses = {
85598
86952
  */
85599
86953
  environment_id?: string | null;
85600
86954
  /**
85601
- * 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.
86955
+ * 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.
85602
86956
  */
85603
86957
  vault_ids?: Array<string>;
85604
86958
  /**
@@ -86146,7 +87500,7 @@ export type AgentsUpdateData = {
86146
87500
  */
86147
87501
  environment_id?: string | null;
86148
87502
  /**
86149
- * 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.
87503
+ * 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.
86150
87504
  */
86151
87505
  vault_ids?: Array<string>;
86152
87506
  /**
@@ -86171,6 +87525,15 @@ export type AgentsUpdateData = {
86171
87525
  name: string;
86172
87526
  }>;
86173
87527
  };
87528
+ /**
87529
+ * 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.
87530
+ */
87531
+ browser?: {
87532
+ /**
87533
+ * A paired browser's id (byb_ and 26 lowercase hex characters), from browser.byob.browsers.list.
87534
+ */
87535
+ byob: string;
87536
+ } | null;
86174
87537
  /**
86175
87538
  * 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.
86176
87539
  */
@@ -86439,6 +87802,15 @@ export type AgentsUpdateResponses = {
86439
87802
  name: string;
86440
87803
  }>;
86441
87804
  };
87805
+ /**
87806
+ * 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.
87807
+ */
87808
+ browser?: {
87809
+ /**
87810
+ * A paired browser's id (byb_ and 26 lowercase hex characters), from browser.byob.browsers.list.
87811
+ */
87812
+ byob: string;
87813
+ } | null;
86442
87814
  /**
86443
87815
  * 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.
86444
87816
  */
@@ -86824,7 +88196,7 @@ export type AgentsUpdateResponses = {
86824
88196
  */
86825
88197
  environment_id?: string | null;
86826
88198
  /**
86827
- * 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.
88199
+ * 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.
86828
88200
  */
86829
88201
  vault_ids?: Array<string>;
86830
88202
  /**
@@ -87450,7 +88822,7 @@ export type AgentsArchiveResponses = {
87450
88822
  */
87451
88823
  environment_id?: string | null;
87452
88824
  /**
87453
- * 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.
88825
+ * 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.
87454
88826
  */
87455
88827
  vault_ids?: Array<string>;
87456
88828
  /**
@@ -87727,6 +89099,15 @@ export type AgentsVersionsListResponses = {
87727
89099
  name: string;
87728
89100
  }>;
87729
89101
  };
89102
+ /**
89103
+ * 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.
89104
+ */
89105
+ browser?: {
89106
+ /**
89107
+ * A paired browser's id (byb_ and 26 lowercase hex characters), from browser.byob.browsers.list.
89108
+ */
89109
+ byob: string;
89110
+ } | null;
87730
89111
  /**
87731
89112
  * 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.
87732
89113
  */
@@ -88112,7 +89493,7 @@ export type AgentsVersionsListResponses = {
88112
89493
  */
88113
89494
  environment_id?: string | null;
88114
89495
  /**
88115
- * 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.
89496
+ * 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.
88116
89497
  */
88117
89498
  vault_ids?: Array<string>;
88118
89499
  /**
@@ -111119,6 +112500,51 @@ export type DevopsChangesMarkLastSliceResponses = {
111119
112500
  200: DevopsChange;
111120
112501
  };
111121
112502
  export type DevopsChangesMarkLastSliceResponse = DevopsChangesMarkLastSliceResponses[keyof DevopsChangesMarkLastSliceResponses];
112503
+ export type DevopsChangesSlicesCreateData = {
112504
+ body?: DevopsChangeSliceCreateRequest;
112505
+ path: {
112506
+ /**
112507
+ * Identifies the project whose data you are reading, from the project list or create answer.
112508
+ */
112509
+ project: string;
112510
+ /**
112511
+ * The change whose slice you are opening: its id, which is its branch name <type>/<slug> from a change list or create answer. Give it as it comes back — `feat/run-page-v2`; the SDK and the CLI encode the slash themselves.
112512
+ */
112513
+ change: string;
112514
+ };
112515
+ query?: never;
112516
+ url: '/devops/v1/projects/{project}/changes/{change}/slices';
112517
+ };
112518
+ export type DevopsChangesSlicesCreateErrors = {
112519
+ /**
112520
+ * INVALID_ARGUMENT means the change is abandoned, or from names a branch that does not belong to this change; nothing was cut. Open a new change, or pick from the change's own branches.
112521
+ */
112522
+ 400: DevopsDevOpsError;
112523
+ /**
112524
+ * The API key is missing or invalid; send a valid Praxis API key in the Authorization header before retrying.
112525
+ */
112526
+ 401: DevopsDevOpsError;
112527
+ /**
112528
+ * The credential carries no organization, or that organization cannot reach this project; use a key belonging to the project's organization. No cross-organization read is possible.
112529
+ */
112530
+ 403: DevopsDevOpsError;
112531
+ /**
112532
+ * CHANGE_NOT_FOUND means no change with that id exists in this organization; list the project's changes and use an id from that answer, with its slash percent-encoded.
112533
+ */
112534
+ 404: DevopsDevOpsError;
112535
+ /**
112536
+ * INTERNAL means the service could not complete the request; retry once, and if it repeats report the request id. A read is safe to repeat; a write that failed this way should be re-read before it is sent again.
112537
+ */
112538
+ 500: DevopsDevOpsError;
112539
+ };
112540
+ export type DevopsChangesSlicesCreateError = DevopsChangesSlicesCreateErrors[keyof DevopsChangesSlicesCreateErrors];
112541
+ export type DevopsChangesSlicesCreateResponses = {
112542
+ /**
112543
+ * The new slice: its branch, the directory to work in and the workspace that holds it. Calling again opens a further slice; it does not return the previous one.
112544
+ */
112545
+ 200: DevopsChangeSliceOpened;
112546
+ };
112547
+ export type DevopsChangesSlicesCreateResponse = DevopsChangesSlicesCreateResponses[keyof DevopsChangesSlicesCreateResponses];
111122
112548
  export type DevopsChangesOpenPullRequestData = {
111123
112549
  body?: DevopsChangeOpenPullRequestRequest;
111124
112550
  path: {
@@ -120190,7 +121616,7 @@ export type GetSandboxV1SandboxesResponses = {
120190
121616
  };
120191
121617
  export type GetSandboxV1SandboxesResponse = GetSandboxV1SandboxesResponses[keyof GetSandboxV1SandboxesResponses];
120192
121618
  export type PostSandboxV1SandboxesData = {
120193
- body: SandboxNewSandboxV2;
121619
+ body: SandboxNewSandboxV2Writable;
120194
121620
  path?: never;
120195
121621
  query?: never;
120196
121622
  url: '/sandbox/v1/sandboxes';