@deepraxis/sdk 0.2.0-dev.4379954 → 0.2.0-dev.47ce97a

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.
@@ -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: {
@@ -19565,6 +19816,32 @@ export type DevopsChangeMarkLastSliceRequest = {
19565
19816
  */
19566
19817
  lastSlice: boolean;
19567
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
+ };
19568
19845
  /**
19569
19846
  * What the pull request says. Every field is optional: without a title the change's own title is used.
19570
19847
  */
@@ -19581,6 +19858,10 @@ export type DevopsChangeOpenPullRequestRequest = {
19581
19858
  * Open it as a draft. Defaults to false.
19582
19859
  */
19583
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;
19584
19865
  };
19585
19866
  /**
19586
19867
  * The pull request for a change's branch.
@@ -52005,6 +52286,10 @@ export type DevopsLockId = string;
52005
52286
  * 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.
52006
52287
  */
52007
52288
  export type DevopsChangeIdPath = string;
52289
+ /**
52290
+ * 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.
52291
+ */
52292
+ export type DevopsChangePathParam = string;
52008
52293
  /**
52009
52294
  * 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.
52010
52295
  */
@@ -54093,6 +54378,86 @@ export type ListAgentInboxLettersResponses = {
54093
54378
  };
54094
54379
  };
54095
54380
  export type ListAgentInboxLettersResponse = ListAgentInboxLettersResponses[keyof ListAgentInboxLettersResponses];
54381
+ export type ListAgentDeviceLocalSessionsData = {
54382
+ body?: never;
54383
+ path: {
54384
+ /**
54385
+ * 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_….
54386
+ */
54387
+ agent_id: string;
54388
+ /**
54389
+ * The paired desktop device (byd_ and 26 hex characters) whose sessions to list; you must be the person who paired it.
54390
+ */
54391
+ device_id: string;
54392
+ };
54393
+ query: {
54394
+ /**
54395
+ * The absolute directory on the device, exactly as the device registered it and bound it to this agent.
54396
+ */
54397
+ cwd: string;
54398
+ /**
54399
+ * The next_cursor of the previous page; leave it out for the first page.
54400
+ */
54401
+ cursor?: string;
54402
+ };
54403
+ url: '/agent/v1/agents/{agent_id}/devices/{device_id}/local-sessions';
54404
+ };
54405
+ export type ListAgentDeviceLocalSessionsErrors = {
54406
+ /**
54407
+ * 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.
54408
+ */
54409
+ 400: unknown;
54410
+ /**
54411
+ * Authenticate with your own API key or a console session; an agent's or robot's credential cannot list a person's device.
54412
+ */
54413
+ 401: unknown;
54414
+ /**
54415
+ * 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.
54416
+ */
54417
+ 403: AgentError;
54418
+ /**
54419
+ * AGENT_NOT_FOUND: no agent with this reference exists in your organization; list agents with agents.list.
54420
+ */
54421
+ 404: unknown;
54422
+ /**
54423
+ * 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.
54424
+ */
54425
+ 503: unknown;
54426
+ };
54427
+ export type ListAgentDeviceLocalSessionsError = ListAgentDeviceLocalSessionsErrors[keyof ListAgentDeviceLocalSessionsErrors];
54428
+ export type ListAgentDeviceLocalSessionsResponses = {
54429
+ /**
54430
+ * One page of the device's sessions for that directory, newest first.
54431
+ */
54432
+ 200: {
54433
+ /**
54434
+ * The sessions of this page; empty when the directory has none.
54435
+ */
54436
+ data: Array<{
54437
+ /**
54438
+ * The Claude Code session id on the device; pass it as runtime.resume_session_id when creating a session to continue it.
54439
+ */
54440
+ id: string;
54441
+ /**
54442
+ * The session's title as Claude Code shows it; empty when it has none.
54443
+ */
54444
+ title: string;
54445
+ /**
54446
+ * When the session was last written to, RFC 3339; sessions are ordered newest first.
54447
+ */
54448
+ updated_at: string | null;
54449
+ /**
54450
+ * The directory the session ran in on the device.
54451
+ */
54452
+ cwd: string | null;
54453
+ }>;
54454
+ /**
54455
+ * Pass as cursor for the next page; null on the last page.
54456
+ */
54457
+ next_cursor: string | null;
54458
+ };
54459
+ };
54460
+ export type ListAgentDeviceLocalSessionsResponse = ListAgentDeviceLocalSessionsResponses[keyof ListAgentDeviceLocalSessionsResponses];
54096
54461
  export type CreateAgentLoginIntentData = {
54097
54462
  body?: never;
54098
54463
  path?: never;
@@ -54993,6 +55358,15 @@ export type ApplyAgentVersionResponses = {
54993
55358
  name: string;
54994
55359
  }>;
54995
55360
  };
55361
+ /**
55362
+ * 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.
55363
+ */
55364
+ browser?: {
55365
+ /**
55366
+ * A paired browser's id (byb_ and 26 lowercase hex characters), from browser.byob.browsers.list.
55367
+ */
55368
+ byob: string;
55369
+ } | null;
54996
55370
  /**
54997
55371
  * 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.
54998
55372
  */
@@ -56244,6 +56618,15 @@ export type UnarchiveAgentResponses = {
56244
56618
  name: string;
56245
56619
  }>;
56246
56620
  };
56621
+ /**
56622
+ * 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.
56623
+ */
56624
+ browser?: {
56625
+ /**
56626
+ * A paired browser's id (byb_ and 26 lowercase hex characters), from browser.byob.browsers.list.
56627
+ */
56628
+ byob: string;
56629
+ } | null;
56247
56630
  /**
56248
56631
  * 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.
56249
56632
  */
@@ -68878,13 +69261,17 @@ export type BrowserListSessionsErrors = {
68878
69261
  */
68879
69262
  403: BrowserError;
68880
69263
  /**
68881
- * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
69264
+ * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
68882
69265
  */
68883
69266
  404: BrowserError;
68884
69267
  /**
68885
- * SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
69268
+ * SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
68886
69269
  */
68887
69270
  409: BrowserError;
69271
+ /**
69272
+ * BROWSER_REVOKED
69273
+ */
69274
+ 410: BrowserError;
68888
69275
  /**
68889
69276
  * ACTION_RESULT_TOO_LARGE
68890
69277
  */
@@ -68906,7 +69293,7 @@ export type BrowserListSessionsErrors = {
68906
69293
  */
68907
69294
  502: BrowserError;
68908
69295
  /**
68909
- * SERVICE_UNAVAILABLE
69296
+ * BROWSER_OFFLINE / SERVICE_UNAVAILABLE
68910
69297
  */
68911
69298
  503: BrowserError;
68912
69299
  /**
@@ -68955,13 +69342,17 @@ export type BrowserCreateSessionErrors = {
68955
69342
  */
68956
69343
  403: BrowserError;
68957
69344
  /**
68958
- * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
69345
+ * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
68959
69346
  */
68960
69347
  404: BrowserError;
68961
69348
  /**
68962
- * SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
69349
+ * SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
68963
69350
  */
68964
69351
  409: BrowserError;
69352
+ /**
69353
+ * BROWSER_REVOKED
69354
+ */
69355
+ 410: BrowserError;
68965
69356
  /**
68966
69357
  * ACTION_RESULT_TOO_LARGE
68967
69358
  */
@@ -68983,7 +69374,7 @@ export type BrowserCreateSessionErrors = {
68983
69374
  */
68984
69375
  502: BrowserError;
68985
69376
  /**
68986
- * SERVICE_UNAVAILABLE
69377
+ * BROWSER_OFFLINE / SERVICE_UNAVAILABLE
68987
69378
  */
68988
69379
  503: BrowserError;
68989
69380
  /**
@@ -68993,6 +69384,10 @@ export type BrowserCreateSessionErrors = {
68993
69384
  };
68994
69385
  export type BrowserCreateSessionError = BrowserCreateSessionErrors[keyof BrowserCreateSessionErrors];
68995
69386
  export type BrowserCreateSessionResponses = {
69387
+ /**
69388
+ * 请求成功。
69389
+ */
69390
+ 200: BrowserSessionCreateResult;
68996
69391
  /**
68997
69392
  * 请求成功。
68998
69393
  */
@@ -69033,13 +69428,17 @@ export type BrowserGetSessionErrors = {
69033
69428
  */
69034
69429
  403: BrowserError;
69035
69430
  /**
69036
- * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
69431
+ * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
69037
69432
  */
69038
69433
  404: BrowserError;
69039
69434
  /**
69040
- * SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
69435
+ * SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
69041
69436
  */
69042
69437
  409: BrowserError;
69438
+ /**
69439
+ * BROWSER_REVOKED
69440
+ */
69441
+ 410: BrowserError;
69043
69442
  /**
69044
69443
  * ACTION_RESULT_TOO_LARGE
69045
69444
  */
@@ -69061,7 +69460,7 @@ export type BrowserGetSessionErrors = {
69061
69460
  */
69062
69461
  502: BrowserError;
69063
69462
  /**
69064
- * SERVICE_UNAVAILABLE
69463
+ * BROWSER_OFFLINE / SERVICE_UNAVAILABLE
69065
69464
  */
69066
69465
  503: BrowserError;
69067
69466
  /**
@@ -69111,13 +69510,17 @@ export type BrowserCloseSessionErrors = {
69111
69510
  */
69112
69511
  403: BrowserError;
69113
69512
  /**
69114
- * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
69513
+ * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
69115
69514
  */
69116
69515
  404: BrowserError;
69117
69516
  /**
69118
- * SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
69517
+ * SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
69119
69518
  */
69120
69519
  409: BrowserError;
69520
+ /**
69521
+ * BROWSER_REVOKED
69522
+ */
69523
+ 410: BrowserError;
69121
69524
  /**
69122
69525
  * ACTION_RESULT_TOO_LARGE
69123
69526
  */
@@ -69139,7 +69542,7 @@ export type BrowserCloseSessionErrors = {
69139
69542
  */
69140
69543
  502: BrowserError;
69141
69544
  /**
69142
- * SERVICE_UNAVAILABLE
69545
+ * BROWSER_OFFLINE / SERVICE_UNAVAILABLE
69143
69546
  */
69144
69547
  503: BrowserError;
69145
69548
  /**
@@ -69184,13 +69587,17 @@ export type BrowserGetDebugErrors = {
69184
69587
  */
69185
69588
  403: BrowserError;
69186
69589
  /**
69187
- * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
69590
+ * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
69188
69591
  */
69189
69592
  404: BrowserError;
69190
69593
  /**
69191
- * SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
69594
+ * SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
69192
69595
  */
69193
69596
  409: BrowserError;
69597
+ /**
69598
+ * BROWSER_REVOKED
69599
+ */
69600
+ 410: BrowserError;
69194
69601
  /**
69195
69602
  * ACTION_RESULT_TOO_LARGE
69196
69603
  */
@@ -69212,7 +69619,7 @@ export type BrowserGetDebugErrors = {
69212
69619
  */
69213
69620
  502: BrowserError;
69214
69621
  /**
69215
- * SERVICE_UNAVAILABLE
69622
+ * BROWSER_OFFLINE / SERVICE_UNAVAILABLE
69216
69623
  */
69217
69624
  503: BrowserError;
69218
69625
  /**
@@ -69270,13 +69677,17 @@ export type BrowserListEventsErrors = {
69270
69677
  */
69271
69678
  403: BrowserError;
69272
69679
  /**
69273
- * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
69680
+ * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
69274
69681
  */
69275
69682
  404: BrowserError;
69276
69683
  /**
69277
- * SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
69684
+ * SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
69278
69685
  */
69279
69686
  409: BrowserError;
69687
+ /**
69688
+ * BROWSER_REVOKED
69689
+ */
69690
+ 410: BrowserError;
69280
69691
  /**
69281
69692
  * ACTION_RESULT_TOO_LARGE
69282
69693
  */
@@ -69298,7 +69709,7 @@ export type BrowserListEventsErrors = {
69298
69709
  */
69299
69710
  502: BrowserError;
69300
69711
  /**
69301
- * SERVICE_UNAVAILABLE
69712
+ * BROWSER_OFFLINE / SERVICE_UNAVAILABLE
69302
69713
  */
69303
69714
  503: BrowserError;
69304
69715
  /**
@@ -69549,13 +69960,17 @@ export type BrowserRunPageActionErrors = {
69549
69960
  */
69550
69961
  403: BrowserError;
69551
69962
  /**
69552
- * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
69963
+ * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
69553
69964
  */
69554
69965
  404: BrowserError;
69555
69966
  /**
69556
- * SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
69967
+ * SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
69557
69968
  */
69558
69969
  409: BrowserError;
69970
+ /**
69971
+ * BROWSER_REVOKED
69972
+ */
69973
+ 410: BrowserError;
69559
69974
  /**
69560
69975
  * ACTION_RESULT_TOO_LARGE
69561
69976
  */
@@ -69577,7 +69992,7 @@ export type BrowserRunPageActionErrors = {
69577
69992
  */
69578
69993
  502: BrowserError;
69579
69994
  /**
69580
- * SERVICE_UNAVAILABLE
69995
+ * BROWSER_OFFLINE / SERVICE_UNAVAILABLE
69581
69996
  */
69582
69997
  503: BrowserError;
69583
69998
  /**
@@ -69767,13 +70182,17 @@ export type BrowserRequestHandoffErrors = {
69767
70182
  */
69768
70183
  403: BrowserError;
69769
70184
  /**
69770
- * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
70185
+ * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
69771
70186
  */
69772
70187
  404: BrowserError;
69773
70188
  /**
69774
- * SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
70189
+ * SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
69775
70190
  */
69776
70191
  409: BrowserError;
70192
+ /**
70193
+ * BROWSER_REVOKED
70194
+ */
70195
+ 410: BrowserError;
69777
70196
  /**
69778
70197
  * ACTION_RESULT_TOO_LARGE
69779
70198
  */
@@ -69795,7 +70214,7 @@ export type BrowserRequestHandoffErrors = {
69795
70214
  */
69796
70215
  502: BrowserError;
69797
70216
  /**
69798
- * SERVICE_UNAVAILABLE
70217
+ * BROWSER_OFFLINE / SERVICE_UNAVAILABLE
69799
70218
  */
69800
70219
  503: BrowserError;
69801
70220
  /**
@@ -69840,13 +70259,17 @@ export type BrowserCompleteHandoffErrors = {
69840
70259
  */
69841
70260
  403: BrowserError;
69842
70261
  /**
69843
- * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
70262
+ * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
69844
70263
  */
69845
70264
  404: BrowserError;
69846
70265
  /**
69847
- * SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
70266
+ * SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
69848
70267
  */
69849
70268
  409: BrowserError;
70269
+ /**
70270
+ * BROWSER_REVOKED
70271
+ */
70272
+ 410: BrowserError;
69850
70273
  /**
69851
70274
  * ACTION_RESULT_TOO_LARGE
69852
70275
  */
@@ -69868,7 +70291,7 @@ export type BrowserCompleteHandoffErrors = {
69868
70291
  */
69869
70292
  502: BrowserError;
69870
70293
  /**
69871
- * SERVICE_UNAVAILABLE
70294
+ * BROWSER_OFFLINE / SERVICE_UNAVAILABLE
69872
70295
  */
69873
70296
  503: BrowserError;
69874
70297
  /**
@@ -69922,13 +70345,17 @@ export type BrowserViewerHeartbeatErrors = {
69922
70345
  */
69923
70346
  403: BrowserError;
69924
70347
  /**
69925
- * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
70348
+ * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
69926
70349
  */
69927
70350
  404: BrowserError;
69928
70351
  /**
69929
- * SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
70352
+ * SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
69930
70353
  */
69931
70354
  409: BrowserError;
70355
+ /**
70356
+ * BROWSER_REVOKED
70357
+ */
70358
+ 410: BrowserError;
69932
70359
  /**
69933
70360
  * ACTION_RESULT_TOO_LARGE
69934
70361
  */
@@ -69950,7 +70377,7 @@ export type BrowserViewerHeartbeatErrors = {
69950
70377
  */
69951
70378
  502: BrowserError;
69952
70379
  /**
69953
- * SERVICE_UNAVAILABLE
70380
+ * BROWSER_OFFLINE / SERVICE_UNAVAILABLE
69954
70381
  */
69955
70382
  503: BrowserError;
69956
70383
  /**
@@ -70000,13 +70427,17 @@ export type BrowserGetSessionFrameErrors = {
70000
70427
  */
70001
70428
  403: BrowserError;
70002
70429
  /**
70003
- * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
70430
+ * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
70004
70431
  */
70005
70432
  404: BrowserError;
70006
70433
  /**
70007
- * SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
70434
+ * SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
70008
70435
  */
70009
70436
  409: BrowserError;
70437
+ /**
70438
+ * BROWSER_REVOKED
70439
+ */
70440
+ 410: BrowserError;
70010
70441
  /**
70011
70442
  * ACTION_RESULT_TOO_LARGE
70012
70443
  */
@@ -70028,7 +70459,7 @@ export type BrowserGetSessionFrameErrors = {
70028
70459
  */
70029
70460
  502: BrowserError;
70030
70461
  /**
70031
- * SERVICE_UNAVAILABLE
70462
+ * BROWSER_OFFLINE / SERVICE_UNAVAILABLE
70032
70463
  */
70033
70464
  503: BrowserError;
70034
70465
  /**
@@ -70081,13 +70512,17 @@ export type BrowserListContextsErrors = {
70081
70512
  */
70082
70513
  403: BrowserError;
70083
70514
  /**
70084
- * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
70515
+ * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
70085
70516
  */
70086
70517
  404: BrowserError;
70087
70518
  /**
70088
- * SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
70519
+ * SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
70089
70520
  */
70090
70521
  409: BrowserError;
70522
+ /**
70523
+ * BROWSER_REVOKED
70524
+ */
70525
+ 410: BrowserError;
70091
70526
  /**
70092
70527
  * ACTION_RESULT_TOO_LARGE
70093
70528
  */
@@ -70109,7 +70544,7 @@ export type BrowserListContextsErrors = {
70109
70544
  */
70110
70545
  502: BrowserError;
70111
70546
  /**
70112
- * SERVICE_UNAVAILABLE
70547
+ * BROWSER_OFFLINE / SERVICE_UNAVAILABLE
70113
70548
  */
70114
70549
  503: BrowserError;
70115
70550
  /**
@@ -70173,13 +70608,17 @@ export type BrowserCreateContextErrors = {
70173
70608
  */
70174
70609
  403: BrowserError;
70175
70610
  /**
70176
- * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
70611
+ * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
70177
70612
  */
70178
70613
  404: BrowserError;
70179
70614
  /**
70180
- * SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
70615
+ * SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
70181
70616
  */
70182
70617
  409: BrowserError;
70618
+ /**
70619
+ * BROWSER_REVOKED
70620
+ */
70621
+ 410: BrowserError;
70183
70622
  /**
70184
70623
  * ACTION_RESULT_TOO_LARGE
70185
70624
  */
@@ -70201,7 +70640,7 @@ export type BrowserCreateContextErrors = {
70201
70640
  */
70202
70641
  502: BrowserError;
70203
70642
  /**
70204
- * SERVICE_UNAVAILABLE
70643
+ * BROWSER_OFFLINE / SERVICE_UNAVAILABLE
70205
70644
  */
70206
70645
  503: BrowserError;
70207
70646
  /**
@@ -70246,13 +70685,17 @@ export type BrowserDeleteContextErrors = {
70246
70685
  */
70247
70686
  403: BrowserError;
70248
70687
  /**
70249
- * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
70688
+ * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
70250
70689
  */
70251
70690
  404: BrowserError;
70252
70691
  /**
70253
- * SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
70692
+ * SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
70254
70693
  */
70255
70694
  409: BrowserError;
70695
+ /**
70696
+ * BROWSER_REVOKED
70697
+ */
70698
+ 410: BrowserError;
70256
70699
  /**
70257
70700
  * ACTION_RESULT_TOO_LARGE
70258
70701
  */
@@ -70274,7 +70717,7 @@ export type BrowserDeleteContextErrors = {
70274
70717
  */
70275
70718
  502: BrowserError;
70276
70719
  /**
70277
- * SERVICE_UNAVAILABLE
70720
+ * BROWSER_OFFLINE / SERVICE_UNAVAILABLE
70278
70721
  */
70279
70722
  503: BrowserError;
70280
70723
  /**
@@ -70324,13 +70767,17 @@ export type BrowserGetContextErrors = {
70324
70767
  */
70325
70768
  403: BrowserError;
70326
70769
  /**
70327
- * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
70770
+ * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
70328
70771
  */
70329
70772
  404: BrowserError;
70330
70773
  /**
70331
- * SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
70774
+ * SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
70332
70775
  */
70333
70776
  409: BrowserError;
70777
+ /**
70778
+ * BROWSER_REVOKED
70779
+ */
70780
+ 410: BrowserError;
70334
70781
  /**
70335
70782
  * ACTION_RESULT_TOO_LARGE
70336
70783
  */
@@ -70352,7 +70799,7 @@ export type BrowserGetContextErrors = {
70352
70799
  */
70353
70800
  502: BrowserError;
70354
70801
  /**
70355
- * SERVICE_UNAVAILABLE
70802
+ * BROWSER_OFFLINE / SERVICE_UNAVAILABLE
70356
70803
  */
70357
70804
  503: BrowserError;
70358
70805
  /**
@@ -70408,13 +70855,17 @@ export type BrowserUpdateContextErrors = {
70408
70855
  */
70409
70856
  403: BrowserError;
70410
70857
  /**
70411
- * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
70858
+ * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
70412
70859
  */
70413
70860
  404: BrowserError;
70414
70861
  /**
70415
- * SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
70862
+ * SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
70416
70863
  */
70417
70864
  409: BrowserError;
70865
+ /**
70866
+ * BROWSER_REVOKED
70867
+ */
70868
+ 410: BrowserError;
70418
70869
  /**
70419
70870
  * ACTION_RESULT_TOO_LARGE
70420
70871
  */
@@ -70436,7 +70887,7 @@ export type BrowserUpdateContextErrors = {
70436
70887
  */
70437
70888
  502: BrowserError;
70438
70889
  /**
70439
- * SERVICE_UNAVAILABLE
70890
+ * BROWSER_OFFLINE / SERVICE_UNAVAILABLE
70440
70891
  */
70441
70892
  503: BrowserError;
70442
70893
  /**
@@ -70452,50 +70903,262 @@ export type BrowserUpdateContextResponses = {
70452
70903
  200: BrowserContext;
70453
70904
  };
70454
70905
  export type BrowserUpdateContextResponse = BrowserUpdateContextResponses[keyof BrowserUpdateContextResponses];
70455
- export type BrowserConnectData = {
70906
+ export type BrowserCreateByobPairingData = {
70907
+ body?: never;
70908
+ path?: never;
70909
+ query?: never;
70910
+ url: '/browser/v1/byob/pairings';
70911
+ };
70912
+ export type BrowserCreateByobPairingErrors = {
70913
+ /**
70914
+ * INVALID_PARAMS / INVALID_FILTER / INVALID_PAGE_TOKEN
70915
+ */
70916
+ 400: BrowserError;
70917
+ /**
70918
+ * UNAUTHENTICATED / CONNECT_SIGNATURE_INVALID
70919
+ */
70920
+ 401: BrowserError;
70921
+ /**
70922
+ * INSUFFICIENT_BALANCE / QUOTA_EXHAUSTED
70923
+ */
70924
+ 402: BrowserError;
70925
+ /**
70926
+ * PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
70927
+ */
70928
+ 403: BrowserError;
70929
+ /**
70930
+ * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
70931
+ */
70932
+ 404: BrowserError;
70933
+ /**
70934
+ * SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
70935
+ */
70936
+ 409: BrowserError;
70937
+ /**
70938
+ * BROWSER_REVOKED
70939
+ */
70940
+ 410: BrowserError;
70941
+ /**
70942
+ * ACTION_RESULT_TOO_LARGE
70943
+ */
70944
+ 413: BrowserError;
70945
+ /**
70946
+ * CONCURRENCY_LIMIT / RATE_LIMITED / PROVIDER_CAPACITY
70947
+ */
70948
+ 429: BrowserError;
70949
+ /**
70950
+ * INTERNAL
70951
+ */
70952
+ 500: BrowserError;
70953
+ /**
70954
+ * NOT_IMPLEMENTED / PROVIDER_UNSUPPORTED
70955
+ */
70956
+ 501: BrowserError;
70957
+ /**
70958
+ * PROVIDER_FAILED
70959
+ */
70960
+ 502: BrowserError;
70961
+ /**
70962
+ * BROWSER_OFFLINE / SERVICE_UNAVAILABLE
70963
+ */
70964
+ 503: BrowserError;
70965
+ /**
70966
+ * ACTION_TIMEOUT
70967
+ */
70968
+ 504: BrowserError;
70969
+ };
70970
+ export type BrowserCreateByobPairingError = BrowserCreateByobPairingErrors[keyof BrowserCreateByobPairingErrors];
70971
+ export type BrowserCreateByobPairingResponses = {
70972
+ /**
70973
+ * 请求成功。
70974
+ */
70975
+ 201: BrowserByobPairing;
70976
+ };
70977
+ export type BrowserCreateByobPairingResponse = BrowserCreateByobPairingResponses[keyof BrowserCreateByobPairingResponses];
70978
+ export type BrowserListByobBrowsersData = {
70456
70979
  body?: never;
70457
70980
  path?: never;
70458
70981
  query?: {
70459
70982
  /**
70460
- * 浏览器会话 ID;使用创建或列出会话返回的 id,以 bss_ 开头。
70983
+ * 上一页返回的 nextCursor,原样传入;省略时读取第一页。
70461
70984
  */
70462
- session?: string;
70463
- /**
70464
- * 会话名称;1–128 个 ASCII 字母、数字或 . _ : -,可用于筛选会话。
70465
- */
70466
- name?: string;
70467
- /**
70468
- * connectUrl 自带凭证;必须同时带 session。
70469
- */
70470
- signingKey?: string;
70985
+ cursor?: string;
70471
70986
  /**
70472
- * 登录态 ID;使用创建或列出登录态返回的 id,以 bsc_ 开头。
70987
+ * 每页最多返回的浏览器数量;默认 50,范围 1–100。
70473
70988
  */
70474
- context?: string;
70989
+ limit?: number;
70990
+ };
70991
+ url: '/browser/v1/byob/browsers';
70992
+ };
70993
+ export type BrowserListByobBrowsersErrors = {
70994
+ /**
70995
+ * INVALID_PARAMS / INVALID_FILTER / INVALID_PAGE_TOKEN
70996
+ */
70997
+ 400: BrowserError;
70998
+ /**
70999
+ * UNAUTHENTICATED / CONNECT_SIGNATURE_INVALID
71000
+ */
71001
+ 401: BrowserError;
71002
+ /**
71003
+ * INSUFFICIENT_BALANCE / QUOTA_EXHAUSTED
71004
+ */
71005
+ 402: BrowserError;
71006
+ /**
71007
+ * PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
71008
+ */
71009
+ 403: BrowserError;
71010
+ /**
71011
+ * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
71012
+ */
71013
+ 404: BrowserError;
71014
+ /**
71015
+ * SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
71016
+ */
71017
+ 409: BrowserError;
71018
+ /**
71019
+ * BROWSER_REVOKED
71020
+ */
71021
+ 410: BrowserError;
71022
+ /**
71023
+ * ACTION_RESULT_TOO_LARGE
71024
+ */
71025
+ 413: BrowserError;
71026
+ /**
71027
+ * CONCURRENCY_LIMIT / RATE_LIMITED / PROVIDER_CAPACITY
71028
+ */
71029
+ 429: BrowserError;
71030
+ /**
71031
+ * INTERNAL
71032
+ */
71033
+ 500: BrowserError;
71034
+ /**
71035
+ * NOT_IMPLEMENTED / PROVIDER_UNSUPPORTED
71036
+ */
71037
+ 501: BrowserError;
71038
+ /**
71039
+ * PROVIDER_FAILED
71040
+ */
71041
+ 502: BrowserError;
71042
+ /**
71043
+ * BROWSER_OFFLINE / SERVICE_UNAVAILABLE
71044
+ */
71045
+ 503: BrowserError;
71046
+ /**
71047
+ * ACTION_TIMEOUT
71048
+ */
71049
+ 504: BrowserError;
71050
+ };
71051
+ export type BrowserListByobBrowsersError = BrowserListByobBrowsersErrors[keyof BrowserListByobBrowsersErrors];
71052
+ export type BrowserListByobBrowsersResponses = {
71053
+ /**
71054
+ * 分页列出的自带浏览器,按 ID 升序。
71055
+ */
71056
+ 200: {
70475
71057
  /**
70476
- * 关闭时保存登录态。
71058
+ * 本页的自带浏览器;已断开的不在列表里。
70477
71059
  */
70478
- persist?: boolean;
71060
+ data: Array<BrowserByobBrowser>;
70479
71061
  /**
70480
- * 新会话最长寿命,单位为秒,可含小数;连接已有会话时忽略。
71062
+ * 下一页游标;原样传入 cursor,null 表示没有更多结果。
70481
71063
  */
70482
- timeout?: number;
71064
+ nextCursor: string | null;
71065
+ };
71066
+ };
71067
+ export type BrowserListByobBrowsersResponse = BrowserListByobBrowsersResponses[keyof BrowserListByobBrowsersResponses];
71068
+ export type BrowserGetByobBrowserData = {
71069
+ body?: never;
71070
+ path: {
70483
71071
  /**
70484
- * 新会话无人连接或观看后的释放等待时长,单位为毫秒;允许 0 或小数,连接已有会话时忽略。
71072
+ * 自带浏览器 ID,以 byb_ 开头;使用配对认领或列出自带浏览器返回的 id。
70485
71073
  */
70486
- idle?: number;
71074
+ browser_id: string;
71075
+ };
71076
+ query?: never;
71077
+ url: '/browser/v1/byob/browsers/{browser_id}';
71078
+ };
71079
+ export type BrowserGetByobBrowserErrors = {
71080
+ /**
71081
+ * INVALID_PARAMS / INVALID_FILTER / INVALID_PAGE_TOKEN
71082
+ */
71083
+ 400: BrowserError;
71084
+ /**
71085
+ * UNAUTHENTICATED / CONNECT_SIGNATURE_INVALID
71086
+ */
71087
+ 401: BrowserError;
71088
+ /**
71089
+ * INSUFFICIENT_BALANCE / QUOTA_EXHAUSTED
71090
+ */
71091
+ 402: BrowserError;
71092
+ /**
71093
+ * PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
71094
+ */
71095
+ 403: BrowserError;
71096
+ /**
71097
+ * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
71098
+ */
71099
+ 404: BrowserError;
71100
+ /**
71101
+ * SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
71102
+ */
71103
+ 409: BrowserError;
71104
+ /**
71105
+ * BROWSER_REVOKED
71106
+ */
71107
+ 410: BrowserError;
71108
+ /**
71109
+ * ACTION_RESULT_TOO_LARGE
71110
+ */
71111
+ 413: BrowserError;
71112
+ /**
71113
+ * CONCURRENCY_LIMIT / RATE_LIMITED / PROVIDER_CAPACITY
71114
+ */
71115
+ 429: BrowserError;
71116
+ /**
71117
+ * INTERNAL
71118
+ */
71119
+ 500: BrowserError;
71120
+ /**
71121
+ * NOT_IMPLEMENTED / PROVIDER_UNSUPPORTED
71122
+ */
71123
+ 501: BrowserError;
71124
+ /**
71125
+ * PROVIDER_FAILED
71126
+ */
71127
+ 502: BrowserError;
71128
+ /**
71129
+ * BROWSER_OFFLINE / SERVICE_UNAVAILABLE
71130
+ */
71131
+ 503: BrowserError;
71132
+ /**
71133
+ * ACTION_TIMEOUT
71134
+ */
71135
+ 504: BrowserError;
71136
+ };
71137
+ export type BrowserGetByobBrowserError = BrowserGetByobBrowserErrors[keyof BrowserGetByobBrowserErrors];
71138
+ export type BrowserGetByobBrowserResponses = {
71139
+ /**
71140
+ * 请求成功。
71141
+ */
71142
+ 200: BrowserByobBrowser;
71143
+ };
71144
+ export type BrowserGetByobBrowserResponse = BrowserGetByobBrowserResponses[keyof BrowserGetByobBrowserResponses];
71145
+ export type BrowserUpdateByobBrowserData = {
71146
+ body: {
70487
71147
  /**
70488
- * JSON 编码的字符串标签对象。
71148
+ * 新的显示名称,1–80 个字符。
70489
71149
  */
70490
- labels?: string;
71150
+ name?: string;
71151
+ };
71152
+ path: {
70491
71153
  /**
70492
- * JSON 编码的视口,例如 {"width":1280,"height":800}。
71154
+ * 自带浏览器 ID,以 byb_ 开头;使用配对认领或列出自带浏览器返回的 id。
70493
71155
  */
70494
- viewport?: string;
71156
+ browser_id: string;
70495
71157
  };
70496
- url: '/browser/v1/connect';
71158
+ query?: never;
71159
+ url: '/browser/v1/byob/browsers/{browser_id}';
70497
71160
  };
70498
- export type BrowserConnectErrors = {
71161
+ export type BrowserUpdateByobBrowserErrors = {
70499
71162
  /**
70500
71163
  * INVALID_PARAMS / INVALID_FILTER / INVALID_PAGE_TOKEN
70501
71164
  */
@@ -70513,13 +71176,17 @@ export type BrowserConnectErrors = {
70513
71176
  */
70514
71177
  403: BrowserError;
70515
71178
  /**
70516
- * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
71179
+ * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
70517
71180
  */
70518
71181
  404: BrowserError;
70519
71182
  /**
70520
- * SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
71183
+ * SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
70521
71184
  */
70522
71185
  409: BrowserError;
71186
+ /**
71187
+ * BROWSER_REVOKED
71188
+ */
71189
+ 410: BrowserError;
70523
71190
  /**
70524
71191
  * ACTION_RESULT_TOO_LARGE
70525
71192
  */
@@ -70541,7 +71208,7 @@ export type BrowserConnectErrors = {
70541
71208
  */
70542
71209
  502: BrowserError;
70543
71210
  /**
70544
- * SERVICE_UNAVAILABLE
71211
+ * BROWSER_OFFLINE / SERVICE_UNAVAILABLE
70545
71212
  */
70546
71213
  503: BrowserError;
70547
71214
  /**
@@ -70549,28 +71216,26 @@ export type BrowserConnectErrors = {
70549
71216
  */
70550
71217
  504: BrowserError;
70551
71218
  };
70552
- export type BrowserConnectError = BrowserConnectErrors[keyof BrowserConnectErrors];
70553
- export type BrowserLiveViewData = {
71219
+ export type BrowserUpdateByobBrowserError = BrowserUpdateByobBrowserErrors[keyof BrowserUpdateByobBrowserErrors];
71220
+ export type BrowserUpdateByobBrowserResponses = {
71221
+ /**
71222
+ * 请求成功。
71223
+ */
71224
+ 200: BrowserByobBrowser;
71225
+ };
71226
+ export type BrowserUpdateByobBrowserResponse = BrowserUpdateByobBrowserResponses[keyof BrowserUpdateByobBrowserResponses];
71227
+ export type BrowserDisconnectByobBrowserData = {
70554
71228
  body?: never;
70555
71229
  path: {
70556
71230
  /**
70557
- * 浏览器会话 ID;使用创建或列出会话返回的 id,以 bss_ 开头。
70558
- */
70559
- sessionId: string;
70560
- /**
70561
- * 实时观看地址中的标签页 ID;使用 debug 返回链接中的原值,_ 表示会话级画面。
70562
- */
70563
- pageId: string;
70564
- };
70565
- query?: {
70566
- /**
70567
- * 实时观看地址自带的凭证。
71231
+ * 自带浏览器 ID,以 byb_ 开头;使用配对认领或列出自带浏览器返回的 id。
70568
71232
  */
70569
- t?: string;
71233
+ browser_id: string;
70570
71234
  };
70571
- url: '/browser/v1/live/{sessionId}/{pageId}';
71235
+ query?: never;
71236
+ url: '/browser/v1/byob/browsers/{browser_id}/disconnect';
70572
71237
  };
70573
- export type BrowserLiveViewErrors = {
71238
+ export type BrowserDisconnectByobBrowserErrors = {
70574
71239
  /**
70575
71240
  * INVALID_PARAMS / INVALID_FILTER / INVALID_PAGE_TOKEN
70576
71241
  */
@@ -70588,13 +71253,17 @@ export type BrowserLiveViewErrors = {
70588
71253
  */
70589
71254
  403: BrowserError;
70590
71255
  /**
70591
- * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
71256
+ * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
70592
71257
  */
70593
71258
  404: BrowserError;
70594
71259
  /**
70595
- * SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
71260
+ * SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
70596
71261
  */
70597
71262
  409: BrowserError;
71263
+ /**
71264
+ * BROWSER_REVOKED
71265
+ */
71266
+ 410: BrowserError;
70598
71267
  /**
70599
71268
  * ACTION_RESULT_TOO_LARGE
70600
71269
  */
@@ -70616,7 +71285,7 @@ export type BrowserLiveViewErrors = {
70616
71285
  */
70617
71286
  502: BrowserError;
70618
71287
  /**
70619
- * SERVICE_UNAVAILABLE
71288
+ * BROWSER_OFFLINE / SERVICE_UNAVAILABLE
70620
71289
  */
70621
71290
  503: BrowserError;
70622
71291
  /**
@@ -70624,19 +71293,26 @@ export type BrowserLiveViewErrors = {
70624
71293
  */
70625
71294
  504: BrowserError;
70626
71295
  };
70627
- export type BrowserLiveViewError = BrowserLiveViewErrors[keyof BrowserLiveViewErrors];
70628
- export type BrowserStreamSessionData = {
71296
+ export type BrowserDisconnectByobBrowserError = BrowserDisconnectByobBrowserErrors[keyof BrowserDisconnectByobBrowserErrors];
71297
+ export type BrowserDisconnectByobBrowserResponses = {
71298
+ /**
71299
+ * 请求成功。
71300
+ */
71301
+ 200: BrowserByobBrowser;
71302
+ };
71303
+ export type BrowserDisconnectByobBrowserResponse = BrowserDisconnectByobBrowserResponses[keyof BrowserDisconnectByobBrowserResponses];
71304
+ export type BrowserReadByobPairingData = {
70629
71305
  body?: never;
70630
71306
  path: {
70631
71307
  /**
70632
- * 浏览器会话 ID;使用创建或列出会话返回的 id,以 bss_ 开头。
71308
+ * 8 位配对码,来自创建配对码的结果。
70633
71309
  */
70634
- sessionId: string;
71310
+ code: string;
70635
71311
  };
70636
71312
  query?: never;
70637
- url: '/browser/v1/sessions/{sessionId}/stream';
71313
+ url: '/browser/v1/byob/pairings/{code}';
70638
71314
  };
70639
- export type BrowserStreamSessionErrors = {
71315
+ export type BrowserReadByobPairingErrors = {
70640
71316
  /**
70641
71317
  * INVALID_PARAMS / INVALID_FILTER / INVALID_PAGE_TOKEN
70642
71318
  */
@@ -70654,13 +71330,352 @@ export type BrowserStreamSessionErrors = {
70654
71330
  */
70655
71331
  403: BrowserError;
70656
71332
  /**
70657
- * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
71333
+ * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
70658
71334
  */
70659
71335
  404: BrowserError;
70660
71336
  /**
70661
- * SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
71337
+ * SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
70662
71338
  */
70663
71339
  409: BrowserError;
71340
+ /**
71341
+ * BROWSER_REVOKED
71342
+ */
71343
+ 410: BrowserError;
71344
+ /**
71345
+ * ACTION_RESULT_TOO_LARGE
71346
+ */
71347
+ 413: BrowserError;
71348
+ /**
71349
+ * CONCURRENCY_LIMIT / RATE_LIMITED / PROVIDER_CAPACITY
71350
+ */
71351
+ 429: BrowserError;
71352
+ /**
71353
+ * INTERNAL
71354
+ */
71355
+ 500: BrowserError;
71356
+ /**
71357
+ * NOT_IMPLEMENTED / PROVIDER_UNSUPPORTED
71358
+ */
71359
+ 501: BrowserError;
71360
+ /**
71361
+ * PROVIDER_FAILED
71362
+ */
71363
+ 502: BrowserError;
71364
+ /**
71365
+ * BROWSER_OFFLINE / SERVICE_UNAVAILABLE
71366
+ */
71367
+ 503: BrowserError;
71368
+ /**
71369
+ * ACTION_TIMEOUT
71370
+ */
71371
+ 504: BrowserError;
71372
+ };
71373
+ export type BrowserReadByobPairingError = BrowserReadByobPairingErrors[keyof BrowserReadByobPairingErrors];
71374
+ export type BrowserReadByobPairingResponses = {
71375
+ /**
71376
+ * 请求成功。
71377
+ */
71378
+ 200: BrowserByobPairingView;
71379
+ };
71380
+ export type BrowserReadByobPairingResponse = BrowserReadByobPairingResponses[keyof BrowserReadByobPairingResponses];
71381
+ export type BrowserClaimByobPairingData = {
71382
+ body: BrowserByobClaim;
71383
+ path: {
71384
+ /**
71385
+ * 8 位配对码,来自创建配对码的结果。
71386
+ */
71387
+ code: string;
71388
+ };
71389
+ query?: never;
71390
+ url: '/browser/v1/byob/pairings/{code}/claim';
71391
+ };
71392
+ export type BrowserClaimByobPairingErrors = {
71393
+ /**
71394
+ * INVALID_PARAMS / INVALID_FILTER / INVALID_PAGE_TOKEN
71395
+ */
71396
+ 400: BrowserError;
71397
+ /**
71398
+ * UNAUTHENTICATED / CONNECT_SIGNATURE_INVALID
71399
+ */
71400
+ 401: BrowserError;
71401
+ /**
71402
+ * INSUFFICIENT_BALANCE / QUOTA_EXHAUSTED
71403
+ */
71404
+ 402: BrowserError;
71405
+ /**
71406
+ * PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
71407
+ */
71408
+ 403: BrowserError;
71409
+ /**
71410
+ * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
71411
+ */
71412
+ 404: BrowserError;
71413
+ /**
71414
+ * SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
71415
+ */
71416
+ 409: BrowserError;
71417
+ /**
71418
+ * BROWSER_REVOKED
71419
+ */
71420
+ 410: BrowserError;
71421
+ /**
71422
+ * ACTION_RESULT_TOO_LARGE
71423
+ */
71424
+ 413: BrowserError;
71425
+ /**
71426
+ * CONCURRENCY_LIMIT / RATE_LIMITED / PROVIDER_CAPACITY
71427
+ */
71428
+ 429: BrowserError;
71429
+ /**
71430
+ * INTERNAL
71431
+ */
71432
+ 500: BrowserError;
71433
+ /**
71434
+ * NOT_IMPLEMENTED / PROVIDER_UNSUPPORTED
71435
+ */
71436
+ 501: BrowserError;
71437
+ /**
71438
+ * PROVIDER_FAILED
71439
+ */
71440
+ 502: BrowserError;
71441
+ /**
71442
+ * BROWSER_OFFLINE / SERVICE_UNAVAILABLE
71443
+ */
71444
+ 503: BrowserError;
71445
+ /**
71446
+ * ACTION_TIMEOUT
71447
+ */
71448
+ 504: BrowserError;
71449
+ };
71450
+ export type BrowserClaimByobPairingError = BrowserClaimByobPairingErrors[keyof BrowserClaimByobPairingErrors];
71451
+ export type BrowserClaimByobPairingResponses = {
71452
+ /**
71453
+ * 认领成功。
71454
+ */
71455
+ 201: BrowserByobClaimResult;
71456
+ };
71457
+ export type BrowserClaimByobPairingResponse = BrowserClaimByobPairingResponses[keyof BrowserClaimByobPairingResponses];
71458
+ export type BrowserConnectData = {
71459
+ body?: never;
71460
+ path?: never;
71461
+ query?: {
71462
+ /**
71463
+ * 浏览器会话 ID;使用创建或列出会话返回的 id,以 bss_ 开头。
71464
+ */
71465
+ session?: string;
71466
+ /**
71467
+ * 会话名称;1–128 个 ASCII 字母、数字或 . _ : -,可用于筛选会话。
71468
+ */
71469
+ name?: string;
71470
+ /**
71471
+ * connectUrl 自带凭证;必须同时带 session。
71472
+ */
71473
+ signingKey?: string;
71474
+ /**
71475
+ * 登录态 ID;使用创建或列出登录态返回的 id,以 bsc_ 开头。
71476
+ */
71477
+ context?: string;
71478
+ /**
71479
+ * 关闭时保存登录态。
71480
+ */
71481
+ persist?: boolean;
71482
+ /**
71483
+ * 新会话最长寿命,单位为秒,可含小数;连接已有会话时忽略。
71484
+ */
71485
+ timeout?: number;
71486
+ /**
71487
+ * 新会话无人连接或观看后的释放等待时长,单位为毫秒;允许 0 或小数,连接已有会话时忽略。
71488
+ */
71489
+ idle?: number;
71490
+ /**
71491
+ * JSON 编码的字符串标签对象。
71492
+ */
71493
+ labels?: string;
71494
+ /**
71495
+ * JSON 编码的视口,例如 {"width":1280,"height":800}。
71496
+ */
71497
+ viewport?: string;
71498
+ };
71499
+ url: '/browser/v1/connect';
71500
+ };
71501
+ export type BrowserConnectErrors = {
71502
+ /**
71503
+ * INVALID_PARAMS / INVALID_FILTER / INVALID_PAGE_TOKEN
71504
+ */
71505
+ 400: BrowserError;
71506
+ /**
71507
+ * UNAUTHENTICATED / CONNECT_SIGNATURE_INVALID
71508
+ */
71509
+ 401: BrowserError;
71510
+ /**
71511
+ * INSUFFICIENT_BALANCE / QUOTA_EXHAUSTED
71512
+ */
71513
+ 402: BrowserError;
71514
+ /**
71515
+ * PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
71516
+ */
71517
+ 403: BrowserError;
71518
+ /**
71519
+ * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
71520
+ */
71521
+ 404: BrowserError;
71522
+ /**
71523
+ * SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
71524
+ */
71525
+ 409: BrowserError;
71526
+ /**
71527
+ * BROWSER_REVOKED
71528
+ */
71529
+ 410: BrowserError;
71530
+ /**
71531
+ * ACTION_RESULT_TOO_LARGE
71532
+ */
71533
+ 413: BrowserError;
71534
+ /**
71535
+ * CONCURRENCY_LIMIT / RATE_LIMITED / PROVIDER_CAPACITY
71536
+ */
71537
+ 429: BrowserError;
71538
+ /**
71539
+ * INTERNAL
71540
+ */
71541
+ 500: BrowserError;
71542
+ /**
71543
+ * NOT_IMPLEMENTED / PROVIDER_UNSUPPORTED
71544
+ */
71545
+ 501: BrowserError;
71546
+ /**
71547
+ * PROVIDER_FAILED
71548
+ */
71549
+ 502: BrowserError;
71550
+ /**
71551
+ * BROWSER_OFFLINE / SERVICE_UNAVAILABLE
71552
+ */
71553
+ 503: BrowserError;
71554
+ /**
71555
+ * ACTION_TIMEOUT
71556
+ */
71557
+ 504: BrowserError;
71558
+ };
71559
+ export type BrowserConnectError = BrowserConnectErrors[keyof BrowserConnectErrors];
71560
+ export type BrowserLiveViewData = {
71561
+ body?: never;
71562
+ path: {
71563
+ /**
71564
+ * 浏览器会话 ID;使用创建或列出会话返回的 id,以 bss_ 开头。
71565
+ */
71566
+ sessionId: string;
71567
+ /**
71568
+ * 实时观看地址中的标签页 ID;使用 debug 返回链接中的原值,_ 表示会话级画面。
71569
+ */
71570
+ pageId: string;
71571
+ };
71572
+ query?: {
71573
+ /**
71574
+ * 实时观看地址自带的凭证。
71575
+ */
71576
+ t?: string;
71577
+ };
71578
+ url: '/browser/v1/live/{sessionId}/{pageId}';
71579
+ };
71580
+ export type BrowserLiveViewErrors = {
71581
+ /**
71582
+ * INVALID_PARAMS / INVALID_FILTER / INVALID_PAGE_TOKEN
71583
+ */
71584
+ 400: BrowserError;
71585
+ /**
71586
+ * UNAUTHENTICATED / CONNECT_SIGNATURE_INVALID
71587
+ */
71588
+ 401: BrowserError;
71589
+ /**
71590
+ * INSUFFICIENT_BALANCE / QUOTA_EXHAUSTED
71591
+ */
71592
+ 402: BrowserError;
71593
+ /**
71594
+ * PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
71595
+ */
71596
+ 403: BrowserError;
71597
+ /**
71598
+ * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
71599
+ */
71600
+ 404: BrowserError;
71601
+ /**
71602
+ * SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
71603
+ */
71604
+ 409: BrowserError;
71605
+ /**
71606
+ * BROWSER_REVOKED
71607
+ */
71608
+ 410: BrowserError;
71609
+ /**
71610
+ * ACTION_RESULT_TOO_LARGE
71611
+ */
71612
+ 413: BrowserError;
71613
+ /**
71614
+ * CONCURRENCY_LIMIT / RATE_LIMITED / PROVIDER_CAPACITY
71615
+ */
71616
+ 429: BrowserError;
71617
+ /**
71618
+ * INTERNAL
71619
+ */
71620
+ 500: BrowserError;
71621
+ /**
71622
+ * NOT_IMPLEMENTED / PROVIDER_UNSUPPORTED
71623
+ */
71624
+ 501: BrowserError;
71625
+ /**
71626
+ * PROVIDER_FAILED
71627
+ */
71628
+ 502: BrowserError;
71629
+ /**
71630
+ * BROWSER_OFFLINE / SERVICE_UNAVAILABLE
71631
+ */
71632
+ 503: BrowserError;
71633
+ /**
71634
+ * ACTION_TIMEOUT
71635
+ */
71636
+ 504: BrowserError;
71637
+ };
71638
+ export type BrowserLiveViewError = BrowserLiveViewErrors[keyof BrowserLiveViewErrors];
71639
+ export type BrowserStreamSessionData = {
71640
+ body?: never;
71641
+ path: {
71642
+ /**
71643
+ * 浏览器会话 ID;使用创建或列出会话返回的 id,以 bss_ 开头。
71644
+ */
71645
+ sessionId: string;
71646
+ };
71647
+ query?: never;
71648
+ url: '/browser/v1/sessions/{sessionId}/stream';
71649
+ };
71650
+ export type BrowserStreamSessionErrors = {
71651
+ /**
71652
+ * INVALID_PARAMS / INVALID_FILTER / INVALID_PAGE_TOKEN
71653
+ */
71654
+ 400: BrowserError;
71655
+ /**
71656
+ * UNAUTHENTICATED / CONNECT_SIGNATURE_INVALID
71657
+ */
71658
+ 401: BrowserError;
71659
+ /**
71660
+ * INSUFFICIENT_BALANCE / QUOTA_EXHAUSTED
71661
+ */
71662
+ 402: BrowserError;
71663
+ /**
71664
+ * PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
71665
+ */
71666
+ 403: BrowserError;
71667
+ /**
71668
+ * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
71669
+ */
71670
+ 404: BrowserError;
71671
+ /**
71672
+ * SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
71673
+ */
71674
+ 409: BrowserError;
71675
+ /**
71676
+ * BROWSER_REVOKED
71677
+ */
71678
+ 410: BrowserError;
70664
71679
  /**
70665
71680
  * ACTION_RESULT_TOO_LARGE
70666
71681
  */
@@ -70682,7 +71697,7 @@ export type BrowserStreamSessionErrors = {
70682
71697
  */
70683
71698
  502: BrowserError;
70684
71699
  /**
70685
- * SERVICE_UNAVAILABLE
71700
+ * BROWSER_OFFLINE / SERVICE_UNAVAILABLE
70686
71701
  */
70687
71702
  503: BrowserError;
70688
71703
  /**
@@ -70727,13 +71742,17 @@ export type BrowserStreamSessionFramesErrors = {
70727
71742
  */
70728
71743
  403: BrowserError;
70729
71744
  /**
70730
- * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
71745
+ * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
70731
71746
  */
70732
71747
  404: BrowserError;
70733
71748
  /**
70734
- * SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
71749
+ * SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
70735
71750
  */
70736
71751
  409: BrowserError;
71752
+ /**
71753
+ * BROWSER_REVOKED
71754
+ */
71755
+ 410: BrowserError;
70737
71756
  /**
70738
71757
  * ACTION_RESULT_TOO_LARGE
70739
71758
  */
@@ -70755,7 +71774,7 @@ export type BrowserStreamSessionFramesErrors = {
70755
71774
  */
70756
71775
  502: BrowserError;
70757
71776
  /**
70758
- * SERVICE_UNAVAILABLE
71777
+ * BROWSER_OFFLINE / SERVICE_UNAVAILABLE
70759
71778
  */
70760
71779
  503: BrowserError;
70761
71780
  /**
@@ -79939,6 +80958,23 @@ export type ListByodDevicesResponses = {
79939
80958
  * 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.
79940
80959
  */
79941
80960
  agent_dirs: Array<string>;
80961
+ /**
80962
+ * 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.
80963
+ */
80964
+ agent_bindings: Array<{
80965
+ /**
80966
+ * The absolute directory the desktop bound to an agent with praxis agent connect.
80967
+ */
80968
+ dir: string;
80969
+ /**
80970
+ * The agent the directory is bound to: its identity number or its agent id.
80971
+ */
80972
+ agent: string;
80973
+ }>;
80974
+ /**
80975
+ * 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.
80976
+ */
80977
+ envd_version: string | null;
79942
80978
  /**
79943
80979
  * 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.
79944
80980
  */
@@ -80021,6 +81057,23 @@ export type GetByodDeviceResponses = {
80021
81057
  * 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.
80022
81058
  */
80023
81059
  agent_dirs: Array<string>;
81060
+ /**
81061
+ * 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.
81062
+ */
81063
+ agent_bindings: Array<{
81064
+ /**
81065
+ * The absolute directory the desktop bound to an agent with praxis agent connect.
81066
+ */
81067
+ dir: string;
81068
+ /**
81069
+ * The agent the directory is bound to: its identity number or its agent id.
81070
+ */
81071
+ agent: string;
81072
+ }>;
81073
+ /**
81074
+ * 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.
81075
+ */
81076
+ envd_version: string | null;
80024
81077
  /**
80025
81078
  * 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.
80026
81079
  */
@@ -80114,6 +81167,23 @@ export type UpdateByodDeviceResponses = {
80114
81167
  * 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.
80115
81168
  */
80116
81169
  agent_dirs: Array<string>;
81170
+ /**
81171
+ * 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.
81172
+ */
81173
+ agent_bindings: Array<{
81174
+ /**
81175
+ * The absolute directory the desktop bound to an agent with praxis agent connect.
81176
+ */
81177
+ dir: string;
81178
+ /**
81179
+ * The agent the directory is bound to: its identity number or its agent id.
81180
+ */
81181
+ agent: string;
81182
+ }>;
81183
+ /**
81184
+ * 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.
81185
+ */
81186
+ envd_version: string | null;
80117
81187
  /**
80118
81188
  * 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.
80119
81189
  */
@@ -83407,6 +84477,15 @@ export type AgentsListResponses = {
83407
84477
  name: string;
83408
84478
  }>;
83409
84479
  };
84480
+ /**
84481
+ * 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.
84482
+ */
84483
+ browser?: {
84484
+ /**
84485
+ * A paired browser's id (byb_ and 26 lowercase hex characters), from browser.byob.browsers.list.
84486
+ */
84487
+ byob: string;
84488
+ } | null;
83410
84489
  /**
83411
84490
  * 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.
83412
84491
  */
@@ -84356,6 +85435,15 @@ export type AgentsCreateData = {
84356
85435
  name: string;
84357
85436
  }>;
84358
85437
  };
85438
+ /**
85439
+ * 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.
85440
+ */
85441
+ browser?: {
85442
+ /**
85443
+ * A paired browser's id (byb_ and 26 lowercase hex characters), from browser.byob.browsers.list.
85444
+ */
85445
+ byob: string;
85446
+ } | null;
84359
85447
  /**
84360
85448
  * 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.
84361
85449
  */
@@ -84611,6 +85699,15 @@ export type AgentsCreateResponses = {
84611
85699
  name: string;
84612
85700
  }>;
84613
85701
  };
85702
+ /**
85703
+ * 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.
85704
+ */
85705
+ browser?: {
85706
+ /**
85707
+ * A paired browser's id (byb_ and 26 lowercase hex characters), from browser.byob.browsers.list.
85708
+ */
85709
+ byob: string;
85710
+ } | null;
84614
85711
  /**
84615
85712
  * 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.
84616
85713
  */
@@ -85273,6 +86370,15 @@ export type AgentsRetrieveResponses = {
85273
86370
  name: string;
85274
86371
  }>;
85275
86372
  };
86373
+ /**
86374
+ * 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.
86375
+ */
86376
+ browser?: {
86377
+ /**
86378
+ * A paired browser's id (byb_ and 26 lowercase hex characters), from browser.byob.browsers.list.
86379
+ */
86380
+ byob: string;
86381
+ } | null;
85276
86382
  /**
85277
86383
  * 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.
85278
86384
  */
@@ -86231,6 +87337,15 @@ export type AgentsUpdateData = {
86231
87337
  name: string;
86232
87338
  }>;
86233
87339
  };
87340
+ /**
87341
+ * 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.
87342
+ */
87343
+ browser?: {
87344
+ /**
87345
+ * A paired browser's id (byb_ and 26 lowercase hex characters), from browser.byob.browsers.list.
87346
+ */
87347
+ byob: string;
87348
+ } | null;
86234
87349
  /**
86235
87350
  * 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.
86236
87351
  */
@@ -86499,6 +87614,15 @@ export type AgentsUpdateResponses = {
86499
87614
  name: string;
86500
87615
  }>;
86501
87616
  };
87617
+ /**
87618
+ * 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.
87619
+ */
87620
+ browser?: {
87621
+ /**
87622
+ * A paired browser's id (byb_ and 26 lowercase hex characters), from browser.byob.browsers.list.
87623
+ */
87624
+ byob: string;
87625
+ } | null;
86502
87626
  /**
86503
87627
  * 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.
86504
87628
  */
@@ -87787,6 +88911,15 @@ export type AgentsVersionsListResponses = {
87787
88911
  name: string;
87788
88912
  }>;
87789
88913
  };
88914
+ /**
88915
+ * 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.
88916
+ */
88917
+ browser?: {
88918
+ /**
88919
+ * A paired browser's id (byb_ and 26 lowercase hex characters), from browser.byob.browsers.list.
88920
+ */
88921
+ byob: string;
88922
+ } | null;
87790
88923
  /**
87791
88924
  * 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.
87792
88925
  */
@@ -111179,6 +112312,51 @@ export type DevopsChangesMarkLastSliceResponses = {
111179
112312
  200: DevopsChange;
111180
112313
  };
111181
112314
  export type DevopsChangesMarkLastSliceResponse = DevopsChangesMarkLastSliceResponses[keyof DevopsChangesMarkLastSliceResponses];
112315
+ export type DevopsChangesSlicesCreateData = {
112316
+ body?: DevopsChangeSliceCreateRequest;
112317
+ path: {
112318
+ /**
112319
+ * Identifies the project whose data you are reading, from the project list or create answer.
112320
+ */
112321
+ project: string;
112322
+ /**
112323
+ * 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.
112324
+ */
112325
+ change: string;
112326
+ };
112327
+ query?: never;
112328
+ url: '/devops/v1/projects/{project}/changes/{change}/slices';
112329
+ };
112330
+ export type DevopsChangesSlicesCreateErrors = {
112331
+ /**
112332
+ * 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.
112333
+ */
112334
+ 400: DevopsDevOpsError;
112335
+ /**
112336
+ * The API key is missing or invalid; send a valid Praxis API key in the Authorization header before retrying.
112337
+ */
112338
+ 401: DevopsDevOpsError;
112339
+ /**
112340
+ * 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.
112341
+ */
112342
+ 403: DevopsDevOpsError;
112343
+ /**
112344
+ * 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.
112345
+ */
112346
+ 404: DevopsDevOpsError;
112347
+ /**
112348
+ * 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.
112349
+ */
112350
+ 500: DevopsDevOpsError;
112351
+ };
112352
+ export type DevopsChangesSlicesCreateError = DevopsChangesSlicesCreateErrors[keyof DevopsChangesSlicesCreateErrors];
112353
+ export type DevopsChangesSlicesCreateResponses = {
112354
+ /**
112355
+ * 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.
112356
+ */
112357
+ 200: DevopsChangeSliceOpened;
112358
+ };
112359
+ export type DevopsChangesSlicesCreateResponse = DevopsChangesSlicesCreateResponses[keyof DevopsChangesSlicesCreateResponses];
111182
112360
  export type DevopsChangesOpenPullRequestData = {
111183
112361
  body?: DevopsChangeOpenPullRequestRequest;
111184
112362
  path: {