@deepraxis/sdk 0.2.0-dev.b859571 → 0.2.0-dev.bda9e20
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.
- package/METHODS.md +34 -1
- package/dist/generated/index.d.ts +2 -2
- package/dist/generated/index.js +1 -1
- package/dist/generated/sdk.gen.d.ts +57 -9
- package/dist/generated/sdk.gen.js +119 -8
- package/dist/generated/types.gen.d.ts +1363 -261
- package/dist/helpers/browser-actions.d.ts +2 -0
- package/dist/helpers/browser-actions.js +5 -1
- package/dist/helpers/browser-connect-error.d.ts +7 -1
- package/dist/helpers/browser-connect-error.js +12 -1
- package/dist/helpers/browser-connect.d.ts +1 -1
- package/dist/helpers/browser-connect.js +16 -5
- package/dist/helpers/browser-decisions.d.ts +3 -0
- package/dist/helpers/browser-decisions.js +5 -0
- package/dist/helpers/browser-documentation.d.ts +1 -1
- package/dist/helpers/browser-documentation.js +3 -0
- package/dist/operations.generated.js +265 -16
- package/dist/resources.generated.d.ts +66 -0
- package/dist/resources.generated.js +22 -0
- package/package.json +1 -1
|
@@ -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
|
-
*
|
|
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
|
-
*
|
|
3777
|
+
* 会话经代理转发的流量字节数(上行与下行之和);仅容器后端的会话有值,其余后端固定为 0。
|
|
3750
3778
|
*/
|
|
3751
|
-
proxyBytes:
|
|
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
|
-
*
|
|
3958
|
+
* 会话经代理转发的流量字节数(上行与下行之和);仅容器后端的会话有值,其余后端固定为 0。
|
|
3892
3959
|
*/
|
|
3893
|
-
proxyBytes:
|
|
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
|
-
*
|
|
4117
|
+
* 会话经代理转发的流量字节数(上行与下行之和);仅容器后端的会话有值,其余后端固定为 0。
|
|
4016
4118
|
*/
|
|
4017
|
-
proxyBytes:
|
|
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: {
|
|
@@ -54127,6 +54378,86 @@ export type ListAgentInboxLettersResponses = {
|
|
|
54127
54378
|
};
|
|
54128
54379
|
};
|
|
54129
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];
|
|
54130
54461
|
export type CreateAgentLoginIntentData = {
|
|
54131
54462
|
body?: never;
|
|
54132
54463
|
path?: never;
|
|
@@ -55027,6 +55358,15 @@ export type ApplyAgentVersionResponses = {
|
|
|
55027
55358
|
name: string;
|
|
55028
55359
|
}>;
|
|
55029
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;
|
|
55030
55370
|
/**
|
|
55031
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.
|
|
55032
55372
|
*/
|
|
@@ -55412,7 +55752,7 @@ export type ApplyAgentVersionResponses = {
|
|
|
55412
55752
|
*/
|
|
55413
55753
|
environment_id?: string | null;
|
|
55414
55754
|
/**
|
|
55415
|
-
* Default vaults of this service or assume agent version: the vault_ids new
|
|
55755
|
+
* 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.
|
|
55416
55756
|
*/
|
|
55417
55757
|
vault_ids?: Array<string>;
|
|
55418
55758
|
/**
|
|
@@ -56278,6 +56618,15 @@ export type UnarchiveAgentResponses = {
|
|
|
56278
56618
|
name: string;
|
|
56279
56619
|
}>;
|
|
56280
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;
|
|
56281
56630
|
/**
|
|
56282
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.
|
|
56283
56632
|
*/
|
|
@@ -56663,7 +57012,7 @@ export type UnarchiveAgentResponses = {
|
|
|
56663
57012
|
*/
|
|
56664
57013
|
environment_id?: string | null;
|
|
56665
57014
|
/**
|
|
56666
|
-
* Default vaults of this service or assume agent version: the vault_ids new
|
|
57015
|
+
* 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.
|
|
56667
57016
|
*/
|
|
56668
57017
|
vault_ids?: Array<string>;
|
|
56669
57018
|
/**
|
|
@@ -59132,9 +59481,13 @@ export type ComputersRetrieveResponse = ComputersRetrieveResponses[keyof Compute
|
|
|
59132
59481
|
export type ComputersUpdateData = {
|
|
59133
59482
|
body: {
|
|
59134
59483
|
/**
|
|
59135
|
-
*
|
|
59484
|
+
* New display name, 1 to 255 characters after trimming. Omit to keep the current name.
|
|
59136
59485
|
*/
|
|
59137
|
-
name
|
|
59486
|
+
name?: string;
|
|
59487
|
+
/**
|
|
59488
|
+
* 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.
|
|
59489
|
+
*/
|
|
59490
|
+
environment_id?: string | null;
|
|
59138
59491
|
};
|
|
59139
59492
|
path: {
|
|
59140
59493
|
/**
|
|
@@ -61304,7 +61657,7 @@ export type ComputersFilesConvertResponse = ComputersFilesConvertResponses[keyof
|
|
|
61304
61657
|
export type ConnectComputerData = {
|
|
61305
61658
|
body?: {
|
|
61306
61659
|
/**
|
|
61307
|
-
*
|
|
61660
|
+
* Accepted for compatibility and ignored: light and heavy both reach the same machine, because a Computer is one machine. Omit it.
|
|
61308
61661
|
*/
|
|
61309
61662
|
need?: 'light' | 'heavy';
|
|
61310
61663
|
};
|
|
@@ -68912,90 +69265,17 @@ export type BrowserListSessionsErrors = {
|
|
|
68912
69265
|
*/
|
|
68913
69266
|
403: BrowserError;
|
|
68914
69267
|
/**
|
|
68915
|
-
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
69268
|
+
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
68916
69269
|
*/
|
|
68917
69270
|
404: BrowserError;
|
|
68918
69271
|
/**
|
|
68919
|
-
* SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
69272
|
+
* SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
68920
69273
|
*/
|
|
68921
69274
|
409: BrowserError;
|
|
68922
69275
|
/**
|
|
68923
|
-
*
|
|
68924
|
-
*/
|
|
68925
|
-
413: BrowserError;
|
|
68926
|
-
/**
|
|
68927
|
-
* CONCURRENCY_LIMIT / RATE_LIMITED / PROVIDER_CAPACITY
|
|
68928
|
-
*/
|
|
68929
|
-
429: BrowserError;
|
|
68930
|
-
/**
|
|
68931
|
-
* INTERNAL
|
|
69276
|
+
* BROWSER_REVOKED
|
|
68932
69277
|
*/
|
|
68933
|
-
|
|
68934
|
-
/**
|
|
68935
|
-
* NOT_IMPLEMENTED / PROVIDER_UNSUPPORTED
|
|
68936
|
-
*/
|
|
68937
|
-
501: BrowserError;
|
|
68938
|
-
/**
|
|
68939
|
-
* PROVIDER_FAILED
|
|
68940
|
-
*/
|
|
68941
|
-
502: BrowserError;
|
|
68942
|
-
/**
|
|
68943
|
-
* SERVICE_UNAVAILABLE
|
|
68944
|
-
*/
|
|
68945
|
-
503: BrowserError;
|
|
68946
|
-
/**
|
|
68947
|
-
* ACTION_TIMEOUT
|
|
68948
|
-
*/
|
|
68949
|
-
504: BrowserError;
|
|
68950
|
-
};
|
|
68951
|
-
export type BrowserListSessionsError = BrowserListSessionsErrors[keyof BrowserListSessionsErrors];
|
|
68952
|
-
export type BrowserListSessionsResponses = {
|
|
68953
|
-
/**
|
|
68954
|
-
* 分页查询结果,包含本页记录和下一页游标。
|
|
68955
|
-
*/
|
|
68956
|
-
200: {
|
|
68957
|
-
/**
|
|
68958
|
-
* 本页查询匹配的记录;没有匹配项时为空数组。
|
|
68959
|
-
*/
|
|
68960
|
-
data: Array<BrowserSession>;
|
|
68961
|
-
/**
|
|
68962
|
-
* 下一页游标;原样传入 cursor,null 表示没有更多结果。
|
|
68963
|
-
*/
|
|
68964
|
-
nextCursor: string | null;
|
|
68965
|
-
};
|
|
68966
|
-
};
|
|
68967
|
-
export type BrowserListSessionsResponse = BrowserListSessionsResponses[keyof BrowserListSessionsResponses];
|
|
68968
|
-
export type BrowserCreateSessionData = {
|
|
68969
|
-
body: BrowserSessionCreateParams;
|
|
68970
|
-
path?: never;
|
|
68971
|
-
query?: never;
|
|
68972
|
-
url: '/browser/v1/sessions';
|
|
68973
|
-
};
|
|
68974
|
-
export type BrowserCreateSessionErrors = {
|
|
68975
|
-
/**
|
|
68976
|
-
* INVALID_PARAMS / INVALID_FILTER / INVALID_PAGE_TOKEN
|
|
68977
|
-
*/
|
|
68978
|
-
400: BrowserError;
|
|
68979
|
-
/**
|
|
68980
|
-
* UNAUTHENTICATED / CONNECT_SIGNATURE_INVALID
|
|
68981
|
-
*/
|
|
68982
|
-
401: BrowserError;
|
|
68983
|
-
/**
|
|
68984
|
-
* INSUFFICIENT_BALANCE / QUOTA_EXHAUSTED
|
|
68985
|
-
*/
|
|
68986
|
-
402: BrowserError;
|
|
68987
|
-
/**
|
|
68988
|
-
* PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
|
|
68989
|
-
*/
|
|
68990
|
-
403: BrowserError;
|
|
68991
|
-
/**
|
|
68992
|
-
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
68993
|
-
*/
|
|
68994
|
-
404: BrowserError;
|
|
68995
|
-
/**
|
|
68996
|
-
* SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
68997
|
-
*/
|
|
68998
|
-
409: BrowserError;
|
|
69278
|
+
410: BrowserError;
|
|
68999
69279
|
/**
|
|
69000
69280
|
* ACTION_RESULT_TOO_LARGE
|
|
69001
69281
|
*/
|
|
@@ -69017,7 +69297,88 @@ export type BrowserCreateSessionErrors = {
|
|
|
69017
69297
|
*/
|
|
69018
69298
|
502: BrowserError;
|
|
69019
69299
|
/**
|
|
69020
|
-
* SERVICE_UNAVAILABLE
|
|
69300
|
+
* BROWSER_OFFLINE / SERVICE_UNAVAILABLE
|
|
69301
|
+
*/
|
|
69302
|
+
503: BrowserError;
|
|
69303
|
+
/**
|
|
69304
|
+
* ACTION_TIMEOUT
|
|
69305
|
+
*/
|
|
69306
|
+
504: BrowserError;
|
|
69307
|
+
};
|
|
69308
|
+
export type BrowserListSessionsError = BrowserListSessionsErrors[keyof BrowserListSessionsErrors];
|
|
69309
|
+
export type BrowserListSessionsResponses = {
|
|
69310
|
+
/**
|
|
69311
|
+
* 分页查询结果,包含本页记录和下一页游标。
|
|
69312
|
+
*/
|
|
69313
|
+
200: {
|
|
69314
|
+
/**
|
|
69315
|
+
* 本页查询匹配的记录;没有匹配项时为空数组。
|
|
69316
|
+
*/
|
|
69317
|
+
data: Array<BrowserSession>;
|
|
69318
|
+
/**
|
|
69319
|
+
* 下一页游标;原样传入 cursor,null 表示没有更多结果。
|
|
69320
|
+
*/
|
|
69321
|
+
nextCursor: string | null;
|
|
69322
|
+
};
|
|
69323
|
+
};
|
|
69324
|
+
export type BrowserListSessionsResponse = BrowserListSessionsResponses[keyof BrowserListSessionsResponses];
|
|
69325
|
+
export type BrowserCreateSessionData = {
|
|
69326
|
+
body: BrowserSessionCreateParams;
|
|
69327
|
+
path?: never;
|
|
69328
|
+
query?: never;
|
|
69329
|
+
url: '/browser/v1/sessions';
|
|
69330
|
+
};
|
|
69331
|
+
export type BrowserCreateSessionErrors = {
|
|
69332
|
+
/**
|
|
69333
|
+
* INVALID_PARAMS / INVALID_FILTER / INVALID_PAGE_TOKEN
|
|
69334
|
+
*/
|
|
69335
|
+
400: BrowserError;
|
|
69336
|
+
/**
|
|
69337
|
+
* UNAUTHENTICATED / CONNECT_SIGNATURE_INVALID
|
|
69338
|
+
*/
|
|
69339
|
+
401: BrowserError;
|
|
69340
|
+
/**
|
|
69341
|
+
* INSUFFICIENT_BALANCE / QUOTA_EXHAUSTED
|
|
69342
|
+
*/
|
|
69343
|
+
402: BrowserError;
|
|
69344
|
+
/**
|
|
69345
|
+
* PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
|
|
69346
|
+
*/
|
|
69347
|
+
403: BrowserError;
|
|
69348
|
+
/**
|
|
69349
|
+
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
69350
|
+
*/
|
|
69351
|
+
404: BrowserError;
|
|
69352
|
+
/**
|
|
69353
|
+
* SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
69354
|
+
*/
|
|
69355
|
+
409: BrowserError;
|
|
69356
|
+
/**
|
|
69357
|
+
* BROWSER_REVOKED
|
|
69358
|
+
*/
|
|
69359
|
+
410: BrowserError;
|
|
69360
|
+
/**
|
|
69361
|
+
* ACTION_RESULT_TOO_LARGE
|
|
69362
|
+
*/
|
|
69363
|
+
413: BrowserError;
|
|
69364
|
+
/**
|
|
69365
|
+
* CONCURRENCY_LIMIT / RATE_LIMITED / PROVIDER_CAPACITY
|
|
69366
|
+
*/
|
|
69367
|
+
429: BrowserError;
|
|
69368
|
+
/**
|
|
69369
|
+
* INTERNAL
|
|
69370
|
+
*/
|
|
69371
|
+
500: BrowserError;
|
|
69372
|
+
/**
|
|
69373
|
+
* NOT_IMPLEMENTED / PROVIDER_UNSUPPORTED
|
|
69374
|
+
*/
|
|
69375
|
+
501: BrowserError;
|
|
69376
|
+
/**
|
|
69377
|
+
* PROVIDER_FAILED
|
|
69378
|
+
*/
|
|
69379
|
+
502: BrowserError;
|
|
69380
|
+
/**
|
|
69381
|
+
* BROWSER_OFFLINE / SERVICE_UNAVAILABLE
|
|
69021
69382
|
*/
|
|
69022
69383
|
503: BrowserError;
|
|
69023
69384
|
/**
|
|
@@ -69027,6 +69388,10 @@ export type BrowserCreateSessionErrors = {
|
|
|
69027
69388
|
};
|
|
69028
69389
|
export type BrowserCreateSessionError = BrowserCreateSessionErrors[keyof BrowserCreateSessionErrors];
|
|
69029
69390
|
export type BrowserCreateSessionResponses = {
|
|
69391
|
+
/**
|
|
69392
|
+
* 请求成功。
|
|
69393
|
+
*/
|
|
69394
|
+
200: BrowserSessionCreateResult;
|
|
69030
69395
|
/**
|
|
69031
69396
|
* 请求成功。
|
|
69032
69397
|
*/
|
|
@@ -69067,13 +69432,17 @@ export type BrowserGetSessionErrors = {
|
|
|
69067
69432
|
*/
|
|
69068
69433
|
403: BrowserError;
|
|
69069
69434
|
/**
|
|
69070
|
-
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
69435
|
+
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
69071
69436
|
*/
|
|
69072
69437
|
404: BrowserError;
|
|
69073
69438
|
/**
|
|
69074
|
-
* SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
69439
|
+
* SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
69075
69440
|
*/
|
|
69076
69441
|
409: BrowserError;
|
|
69442
|
+
/**
|
|
69443
|
+
* BROWSER_REVOKED
|
|
69444
|
+
*/
|
|
69445
|
+
410: BrowserError;
|
|
69077
69446
|
/**
|
|
69078
69447
|
* ACTION_RESULT_TOO_LARGE
|
|
69079
69448
|
*/
|
|
@@ -69095,7 +69464,7 @@ export type BrowserGetSessionErrors = {
|
|
|
69095
69464
|
*/
|
|
69096
69465
|
502: BrowserError;
|
|
69097
69466
|
/**
|
|
69098
|
-
* SERVICE_UNAVAILABLE
|
|
69467
|
+
* BROWSER_OFFLINE / SERVICE_UNAVAILABLE
|
|
69099
69468
|
*/
|
|
69100
69469
|
503: BrowserError;
|
|
69101
69470
|
/**
|
|
@@ -69145,13 +69514,17 @@ export type BrowserCloseSessionErrors = {
|
|
|
69145
69514
|
*/
|
|
69146
69515
|
403: BrowserError;
|
|
69147
69516
|
/**
|
|
69148
|
-
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
69517
|
+
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
69149
69518
|
*/
|
|
69150
69519
|
404: BrowserError;
|
|
69151
69520
|
/**
|
|
69152
|
-
* SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
69521
|
+
* SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
69153
69522
|
*/
|
|
69154
69523
|
409: BrowserError;
|
|
69524
|
+
/**
|
|
69525
|
+
* BROWSER_REVOKED
|
|
69526
|
+
*/
|
|
69527
|
+
410: BrowserError;
|
|
69155
69528
|
/**
|
|
69156
69529
|
* ACTION_RESULT_TOO_LARGE
|
|
69157
69530
|
*/
|
|
@@ -69173,7 +69546,7 @@ export type BrowserCloseSessionErrors = {
|
|
|
69173
69546
|
*/
|
|
69174
69547
|
502: BrowserError;
|
|
69175
69548
|
/**
|
|
69176
|
-
* SERVICE_UNAVAILABLE
|
|
69549
|
+
* BROWSER_OFFLINE / SERVICE_UNAVAILABLE
|
|
69177
69550
|
*/
|
|
69178
69551
|
503: BrowserError;
|
|
69179
69552
|
/**
|
|
@@ -69218,13 +69591,17 @@ export type BrowserGetDebugErrors = {
|
|
|
69218
69591
|
*/
|
|
69219
69592
|
403: BrowserError;
|
|
69220
69593
|
/**
|
|
69221
|
-
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
69594
|
+
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
69222
69595
|
*/
|
|
69223
69596
|
404: BrowserError;
|
|
69224
69597
|
/**
|
|
69225
|
-
* SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
69598
|
+
* SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
69226
69599
|
*/
|
|
69227
69600
|
409: BrowserError;
|
|
69601
|
+
/**
|
|
69602
|
+
* BROWSER_REVOKED
|
|
69603
|
+
*/
|
|
69604
|
+
410: BrowserError;
|
|
69228
69605
|
/**
|
|
69229
69606
|
* ACTION_RESULT_TOO_LARGE
|
|
69230
69607
|
*/
|
|
@@ -69246,7 +69623,7 @@ export type BrowserGetDebugErrors = {
|
|
|
69246
69623
|
*/
|
|
69247
69624
|
502: BrowserError;
|
|
69248
69625
|
/**
|
|
69249
|
-
* SERVICE_UNAVAILABLE
|
|
69626
|
+
* BROWSER_OFFLINE / SERVICE_UNAVAILABLE
|
|
69250
69627
|
*/
|
|
69251
69628
|
503: BrowserError;
|
|
69252
69629
|
/**
|
|
@@ -69304,13 +69681,17 @@ export type BrowserListEventsErrors = {
|
|
|
69304
69681
|
*/
|
|
69305
69682
|
403: BrowserError;
|
|
69306
69683
|
/**
|
|
69307
|
-
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
69684
|
+
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
69308
69685
|
*/
|
|
69309
69686
|
404: BrowserError;
|
|
69310
69687
|
/**
|
|
69311
|
-
* SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
69688
|
+
* SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
69312
69689
|
*/
|
|
69313
69690
|
409: BrowserError;
|
|
69691
|
+
/**
|
|
69692
|
+
* BROWSER_REVOKED
|
|
69693
|
+
*/
|
|
69694
|
+
410: BrowserError;
|
|
69314
69695
|
/**
|
|
69315
69696
|
* ACTION_RESULT_TOO_LARGE
|
|
69316
69697
|
*/
|
|
@@ -69332,7 +69713,7 @@ export type BrowserListEventsErrors = {
|
|
|
69332
69713
|
*/
|
|
69333
69714
|
502: BrowserError;
|
|
69334
69715
|
/**
|
|
69335
|
-
* SERVICE_UNAVAILABLE
|
|
69716
|
+
* BROWSER_OFFLINE / SERVICE_UNAVAILABLE
|
|
69336
69717
|
*/
|
|
69337
69718
|
503: BrowserError;
|
|
69338
69719
|
/**
|
|
@@ -69583,13 +69964,17 @@ export type BrowserRunPageActionErrors = {
|
|
|
69583
69964
|
*/
|
|
69584
69965
|
403: BrowserError;
|
|
69585
69966
|
/**
|
|
69586
|
-
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
69967
|
+
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
69587
69968
|
*/
|
|
69588
69969
|
404: BrowserError;
|
|
69589
69970
|
/**
|
|
69590
|
-
* SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
69971
|
+
* SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
69591
69972
|
*/
|
|
69592
69973
|
409: BrowserError;
|
|
69974
|
+
/**
|
|
69975
|
+
* BROWSER_REVOKED
|
|
69976
|
+
*/
|
|
69977
|
+
410: BrowserError;
|
|
69593
69978
|
/**
|
|
69594
69979
|
* ACTION_RESULT_TOO_LARGE
|
|
69595
69980
|
*/
|
|
@@ -69611,7 +69996,7 @@ export type BrowserRunPageActionErrors = {
|
|
|
69611
69996
|
*/
|
|
69612
69997
|
502: BrowserError;
|
|
69613
69998
|
/**
|
|
69614
|
-
* SERVICE_UNAVAILABLE
|
|
69999
|
+
* BROWSER_OFFLINE / SERVICE_UNAVAILABLE
|
|
69615
70000
|
*/
|
|
69616
70001
|
503: BrowserError;
|
|
69617
70002
|
/**
|
|
@@ -69801,13 +70186,17 @@ export type BrowserRequestHandoffErrors = {
|
|
|
69801
70186
|
*/
|
|
69802
70187
|
403: BrowserError;
|
|
69803
70188
|
/**
|
|
69804
|
-
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
70189
|
+
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
69805
70190
|
*/
|
|
69806
70191
|
404: BrowserError;
|
|
69807
70192
|
/**
|
|
69808
|
-
* SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
70193
|
+
* SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
69809
70194
|
*/
|
|
69810
70195
|
409: BrowserError;
|
|
70196
|
+
/**
|
|
70197
|
+
* BROWSER_REVOKED
|
|
70198
|
+
*/
|
|
70199
|
+
410: BrowserError;
|
|
69811
70200
|
/**
|
|
69812
70201
|
* ACTION_RESULT_TOO_LARGE
|
|
69813
70202
|
*/
|
|
@@ -69829,7 +70218,7 @@ export type BrowserRequestHandoffErrors = {
|
|
|
69829
70218
|
*/
|
|
69830
70219
|
502: BrowserError;
|
|
69831
70220
|
/**
|
|
69832
|
-
* SERVICE_UNAVAILABLE
|
|
70221
|
+
* BROWSER_OFFLINE / SERVICE_UNAVAILABLE
|
|
69833
70222
|
*/
|
|
69834
70223
|
503: BrowserError;
|
|
69835
70224
|
/**
|
|
@@ -69874,13 +70263,17 @@ export type BrowserCompleteHandoffErrors = {
|
|
|
69874
70263
|
*/
|
|
69875
70264
|
403: BrowserError;
|
|
69876
70265
|
/**
|
|
69877
|
-
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
70266
|
+
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
69878
70267
|
*/
|
|
69879
70268
|
404: BrowserError;
|
|
69880
70269
|
/**
|
|
69881
|
-
* SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
70270
|
+
* SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
69882
70271
|
*/
|
|
69883
70272
|
409: BrowserError;
|
|
70273
|
+
/**
|
|
70274
|
+
* BROWSER_REVOKED
|
|
70275
|
+
*/
|
|
70276
|
+
410: BrowserError;
|
|
69884
70277
|
/**
|
|
69885
70278
|
* ACTION_RESULT_TOO_LARGE
|
|
69886
70279
|
*/
|
|
@@ -69902,7 +70295,7 @@ export type BrowserCompleteHandoffErrors = {
|
|
|
69902
70295
|
*/
|
|
69903
70296
|
502: BrowserError;
|
|
69904
70297
|
/**
|
|
69905
|
-
* SERVICE_UNAVAILABLE
|
|
70298
|
+
* BROWSER_OFFLINE / SERVICE_UNAVAILABLE
|
|
69906
70299
|
*/
|
|
69907
70300
|
503: BrowserError;
|
|
69908
70301
|
/**
|
|
@@ -69956,13 +70349,527 @@ export type BrowserViewerHeartbeatErrors = {
|
|
|
69956
70349
|
*/
|
|
69957
70350
|
403: BrowserError;
|
|
69958
70351
|
/**
|
|
69959
|
-
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
70352
|
+
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
70353
|
+
*/
|
|
70354
|
+
404: BrowserError;
|
|
70355
|
+
/**
|
|
70356
|
+
* SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
70357
|
+
*/
|
|
70358
|
+
409: BrowserError;
|
|
70359
|
+
/**
|
|
70360
|
+
* BROWSER_REVOKED
|
|
70361
|
+
*/
|
|
70362
|
+
410: BrowserError;
|
|
70363
|
+
/**
|
|
70364
|
+
* ACTION_RESULT_TOO_LARGE
|
|
70365
|
+
*/
|
|
70366
|
+
413: BrowserError;
|
|
70367
|
+
/**
|
|
70368
|
+
* CONCURRENCY_LIMIT / RATE_LIMITED / PROVIDER_CAPACITY
|
|
70369
|
+
*/
|
|
70370
|
+
429: BrowserError;
|
|
70371
|
+
/**
|
|
70372
|
+
* INTERNAL
|
|
70373
|
+
*/
|
|
70374
|
+
500: BrowserError;
|
|
70375
|
+
/**
|
|
70376
|
+
* NOT_IMPLEMENTED / PROVIDER_UNSUPPORTED
|
|
70377
|
+
*/
|
|
70378
|
+
501: BrowserError;
|
|
70379
|
+
/**
|
|
70380
|
+
* PROVIDER_FAILED
|
|
70381
|
+
*/
|
|
70382
|
+
502: BrowserError;
|
|
70383
|
+
/**
|
|
70384
|
+
* BROWSER_OFFLINE / SERVICE_UNAVAILABLE
|
|
70385
|
+
*/
|
|
70386
|
+
503: BrowserError;
|
|
70387
|
+
/**
|
|
70388
|
+
* ACTION_TIMEOUT
|
|
70389
|
+
*/
|
|
70390
|
+
504: BrowserError;
|
|
70391
|
+
};
|
|
70392
|
+
export type BrowserViewerHeartbeatError = BrowserViewerHeartbeatErrors[keyof BrowserViewerHeartbeatErrors];
|
|
70393
|
+
export type BrowserViewerHeartbeatResponses = {
|
|
70394
|
+
/**
|
|
70395
|
+
* 请求成功。
|
|
70396
|
+
*/
|
|
70397
|
+
200: {
|
|
70398
|
+
/**
|
|
70399
|
+
* 心跳已被接受,成功时固定返回 true。
|
|
70400
|
+
*/
|
|
70401
|
+
ok: true;
|
|
70402
|
+
};
|
|
70403
|
+
};
|
|
70404
|
+
export type BrowserViewerHeartbeatResponse = BrowserViewerHeartbeatResponses[keyof BrowserViewerHeartbeatResponses];
|
|
70405
|
+
export type BrowserGetSessionFrameData = {
|
|
70406
|
+
body?: never;
|
|
70407
|
+
path: {
|
|
70408
|
+
/**
|
|
70409
|
+
* 浏览器会话 ID;使用创建或列出会话返回的 id,以 bss_ 开头。
|
|
70410
|
+
*/
|
|
70411
|
+
sessionId: string;
|
|
70412
|
+
};
|
|
70413
|
+
query?: never;
|
|
70414
|
+
url: '/browser/v1/sessions/{sessionId}/frame';
|
|
70415
|
+
};
|
|
70416
|
+
export type BrowserGetSessionFrameErrors = {
|
|
70417
|
+
/**
|
|
70418
|
+
* INVALID_PARAMS / INVALID_FILTER / INVALID_PAGE_TOKEN
|
|
70419
|
+
*/
|
|
70420
|
+
400: BrowserError;
|
|
70421
|
+
/**
|
|
70422
|
+
* UNAUTHENTICATED / CONNECT_SIGNATURE_INVALID
|
|
70423
|
+
*/
|
|
70424
|
+
401: BrowserError;
|
|
70425
|
+
/**
|
|
70426
|
+
* INSUFFICIENT_BALANCE / QUOTA_EXHAUSTED
|
|
70427
|
+
*/
|
|
70428
|
+
402: BrowserError;
|
|
70429
|
+
/**
|
|
70430
|
+
* PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
|
|
70431
|
+
*/
|
|
70432
|
+
403: BrowserError;
|
|
70433
|
+
/**
|
|
70434
|
+
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
70435
|
+
*/
|
|
70436
|
+
404: BrowserError;
|
|
70437
|
+
/**
|
|
70438
|
+
* SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
70439
|
+
*/
|
|
70440
|
+
409: BrowserError;
|
|
70441
|
+
/**
|
|
70442
|
+
* BROWSER_REVOKED
|
|
70443
|
+
*/
|
|
70444
|
+
410: BrowserError;
|
|
70445
|
+
/**
|
|
70446
|
+
* ACTION_RESULT_TOO_LARGE
|
|
70447
|
+
*/
|
|
70448
|
+
413: BrowserError;
|
|
70449
|
+
/**
|
|
70450
|
+
* CONCURRENCY_LIMIT / RATE_LIMITED / PROVIDER_CAPACITY
|
|
70451
|
+
*/
|
|
70452
|
+
429: BrowserError;
|
|
70453
|
+
/**
|
|
70454
|
+
* INTERNAL
|
|
70455
|
+
*/
|
|
70456
|
+
500: BrowserError;
|
|
70457
|
+
/**
|
|
70458
|
+
* NOT_IMPLEMENTED / PROVIDER_UNSUPPORTED
|
|
70459
|
+
*/
|
|
70460
|
+
501: BrowserError;
|
|
70461
|
+
/**
|
|
70462
|
+
* PROVIDER_FAILED
|
|
70463
|
+
*/
|
|
70464
|
+
502: BrowserError;
|
|
70465
|
+
/**
|
|
70466
|
+
* BROWSER_OFFLINE / SERVICE_UNAVAILABLE
|
|
70467
|
+
*/
|
|
70468
|
+
503: BrowserError;
|
|
70469
|
+
/**
|
|
70470
|
+
* ACTION_TIMEOUT
|
|
70471
|
+
*/
|
|
70472
|
+
504: BrowserError;
|
|
70473
|
+
};
|
|
70474
|
+
export type BrowserGetSessionFrameError = BrowserGetSessionFrameErrors[keyof BrowserGetSessionFrameErrors];
|
|
70475
|
+
export type BrowserGetSessionFrameResponses = {
|
|
70476
|
+
/**
|
|
70477
|
+
* JPEG 画面帧,最多 2 MiB。
|
|
70478
|
+
*/
|
|
70479
|
+
200: Blob | File;
|
|
70480
|
+
};
|
|
70481
|
+
export type BrowserGetSessionFrameResponse = BrowserGetSessionFrameResponses[keyof BrowserGetSessionFrameResponses];
|
|
70482
|
+
export type BrowserListContextsData = {
|
|
70483
|
+
body?: never;
|
|
70484
|
+
path?: never;
|
|
70485
|
+
query?: {
|
|
70486
|
+
/**
|
|
70487
|
+
* 按登录态名称精确匹配;名称在当前账户内唯一,所以最多返回一条。省略时列出全部登录态。
|
|
70488
|
+
*/
|
|
70489
|
+
name?: string;
|
|
70490
|
+
/**
|
|
70491
|
+
* 登录态 ID;使用创建或列出登录态返回的 id,以 bsc_ 开头。
|
|
70492
|
+
*/
|
|
70493
|
+
cursor?: string;
|
|
70494
|
+
/**
|
|
70495
|
+
* 每页最多返回的登录态数量;默认 25,范围 1–100。
|
|
70496
|
+
*/
|
|
70497
|
+
limit?: number;
|
|
70498
|
+
};
|
|
70499
|
+
url: '/browser/v1/contexts';
|
|
70500
|
+
};
|
|
70501
|
+
export type BrowserListContextsErrors = {
|
|
70502
|
+
/**
|
|
70503
|
+
* INVALID_PARAMS / INVALID_FILTER / INVALID_PAGE_TOKEN
|
|
70504
|
+
*/
|
|
70505
|
+
400: BrowserError;
|
|
70506
|
+
/**
|
|
70507
|
+
* UNAUTHENTICATED / CONNECT_SIGNATURE_INVALID
|
|
70508
|
+
*/
|
|
70509
|
+
401: BrowserError;
|
|
70510
|
+
/**
|
|
70511
|
+
* INSUFFICIENT_BALANCE / QUOTA_EXHAUSTED
|
|
70512
|
+
*/
|
|
70513
|
+
402: BrowserError;
|
|
70514
|
+
/**
|
|
70515
|
+
* PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
|
|
70516
|
+
*/
|
|
70517
|
+
403: BrowserError;
|
|
70518
|
+
/**
|
|
70519
|
+
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
70520
|
+
*/
|
|
70521
|
+
404: BrowserError;
|
|
70522
|
+
/**
|
|
70523
|
+
* SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
70524
|
+
*/
|
|
70525
|
+
409: BrowserError;
|
|
70526
|
+
/**
|
|
70527
|
+
* BROWSER_REVOKED
|
|
70528
|
+
*/
|
|
70529
|
+
410: BrowserError;
|
|
70530
|
+
/**
|
|
70531
|
+
* ACTION_RESULT_TOO_LARGE
|
|
70532
|
+
*/
|
|
70533
|
+
413: BrowserError;
|
|
70534
|
+
/**
|
|
70535
|
+
* CONCURRENCY_LIMIT / RATE_LIMITED / PROVIDER_CAPACITY
|
|
70536
|
+
*/
|
|
70537
|
+
429: BrowserError;
|
|
70538
|
+
/**
|
|
70539
|
+
* INTERNAL
|
|
70540
|
+
*/
|
|
70541
|
+
500: BrowserError;
|
|
70542
|
+
/**
|
|
70543
|
+
* NOT_IMPLEMENTED / PROVIDER_UNSUPPORTED
|
|
70544
|
+
*/
|
|
70545
|
+
501: BrowserError;
|
|
70546
|
+
/**
|
|
70547
|
+
* PROVIDER_FAILED
|
|
70548
|
+
*/
|
|
70549
|
+
502: BrowserError;
|
|
70550
|
+
/**
|
|
70551
|
+
* BROWSER_OFFLINE / SERVICE_UNAVAILABLE
|
|
70552
|
+
*/
|
|
70553
|
+
503: BrowserError;
|
|
70554
|
+
/**
|
|
70555
|
+
* ACTION_TIMEOUT
|
|
70556
|
+
*/
|
|
70557
|
+
504: BrowserError;
|
|
70558
|
+
};
|
|
70559
|
+
export type BrowserListContextsError = BrowserListContextsErrors[keyof BrowserListContextsErrors];
|
|
70560
|
+
export type BrowserListContextsResponses = {
|
|
70561
|
+
/**
|
|
70562
|
+
* 分页查询结果,包含本页记录和下一页游标。
|
|
70563
|
+
*/
|
|
70564
|
+
200: {
|
|
70565
|
+
/**
|
|
70566
|
+
* 本页查询匹配的记录;没有匹配项时为空数组。
|
|
70567
|
+
*/
|
|
70568
|
+
data: Array<BrowserContext>;
|
|
70569
|
+
/**
|
|
70570
|
+
* 下一页游标;原样传入 cursor,null 表示没有更多结果。
|
|
70571
|
+
*/
|
|
70572
|
+
nextCursor: string | null;
|
|
70573
|
+
};
|
|
70574
|
+
};
|
|
70575
|
+
export type BrowserListContextsResponse = BrowserListContextsResponses[keyof BrowserListContextsResponses];
|
|
70576
|
+
export type BrowserCreateContextData = {
|
|
70577
|
+
body: {
|
|
70578
|
+
/**
|
|
70579
|
+
* 兼容项目字段;传入值被忽略,创建结果的 projectId 固定为 default。
|
|
70580
|
+
*/
|
|
70581
|
+
projectId?: string;
|
|
70582
|
+
/**
|
|
70583
|
+
* 登录态名称;非空时为 1–128 个 ASCII 字母、数字或 . _ : -,在当前账户内唯一;空字符串表示不设名称或清除名称。
|
|
70584
|
+
*/
|
|
70585
|
+
name?: '' | unknown;
|
|
70586
|
+
/**
|
|
70587
|
+
* 自定义字符串标签;最多 32 项,键最多 128 个 UTF-8 字节,值最多 1024 个 UTF-8 字节。
|
|
70588
|
+
*/
|
|
70589
|
+
labels?: {
|
|
70590
|
+
[key: string]: string;
|
|
70591
|
+
};
|
|
70592
|
+
};
|
|
70593
|
+
path?: never;
|
|
70594
|
+
query?: never;
|
|
70595
|
+
url: '/browser/v1/contexts';
|
|
70596
|
+
};
|
|
70597
|
+
export type BrowserCreateContextErrors = {
|
|
70598
|
+
/**
|
|
70599
|
+
* INVALID_PARAMS / INVALID_FILTER / INVALID_PAGE_TOKEN
|
|
70600
|
+
*/
|
|
70601
|
+
400: BrowserError;
|
|
70602
|
+
/**
|
|
70603
|
+
* UNAUTHENTICATED / CONNECT_SIGNATURE_INVALID
|
|
70604
|
+
*/
|
|
70605
|
+
401: BrowserError;
|
|
70606
|
+
/**
|
|
70607
|
+
* INSUFFICIENT_BALANCE / QUOTA_EXHAUSTED
|
|
70608
|
+
*/
|
|
70609
|
+
402: BrowserError;
|
|
70610
|
+
/**
|
|
70611
|
+
* PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
|
|
70612
|
+
*/
|
|
70613
|
+
403: BrowserError;
|
|
70614
|
+
/**
|
|
70615
|
+
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
70616
|
+
*/
|
|
70617
|
+
404: BrowserError;
|
|
70618
|
+
/**
|
|
70619
|
+
* SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
70620
|
+
*/
|
|
70621
|
+
409: BrowserError;
|
|
70622
|
+
/**
|
|
70623
|
+
* BROWSER_REVOKED
|
|
70624
|
+
*/
|
|
70625
|
+
410: BrowserError;
|
|
70626
|
+
/**
|
|
70627
|
+
* ACTION_RESULT_TOO_LARGE
|
|
70628
|
+
*/
|
|
70629
|
+
413: BrowserError;
|
|
70630
|
+
/**
|
|
70631
|
+
* CONCURRENCY_LIMIT / RATE_LIMITED / PROVIDER_CAPACITY
|
|
70632
|
+
*/
|
|
70633
|
+
429: BrowserError;
|
|
70634
|
+
/**
|
|
70635
|
+
* INTERNAL
|
|
70636
|
+
*/
|
|
70637
|
+
500: BrowserError;
|
|
70638
|
+
/**
|
|
70639
|
+
* NOT_IMPLEMENTED / PROVIDER_UNSUPPORTED
|
|
70640
|
+
*/
|
|
70641
|
+
501: BrowserError;
|
|
70642
|
+
/**
|
|
70643
|
+
* PROVIDER_FAILED
|
|
70644
|
+
*/
|
|
70645
|
+
502: BrowserError;
|
|
70646
|
+
/**
|
|
70647
|
+
* BROWSER_OFFLINE / SERVICE_UNAVAILABLE
|
|
70648
|
+
*/
|
|
70649
|
+
503: BrowserError;
|
|
70650
|
+
/**
|
|
70651
|
+
* ACTION_TIMEOUT
|
|
70652
|
+
*/
|
|
70653
|
+
504: BrowserError;
|
|
70654
|
+
};
|
|
70655
|
+
export type BrowserCreateContextError = BrowserCreateContextErrors[keyof BrowserCreateContextErrors];
|
|
70656
|
+
export type BrowserCreateContextResponses = {
|
|
70657
|
+
/**
|
|
70658
|
+
* 请求成功。
|
|
70659
|
+
*/
|
|
70660
|
+
201: BrowserContextCreateResult;
|
|
70661
|
+
};
|
|
70662
|
+
export type BrowserCreateContextResponse = BrowserCreateContextResponses[keyof BrowserCreateContextResponses];
|
|
70663
|
+
export type BrowserDeleteContextData = {
|
|
70664
|
+
body?: never;
|
|
70665
|
+
path: {
|
|
70666
|
+
/**
|
|
70667
|
+
* 登录态 ID;使用创建或列出登录态返回的 id,以 bsc_ 开头。
|
|
70668
|
+
*/
|
|
70669
|
+
contextId: string;
|
|
70670
|
+
};
|
|
70671
|
+
query?: never;
|
|
70672
|
+
url: '/browser/v1/contexts/{contextId}';
|
|
70673
|
+
};
|
|
70674
|
+
export type BrowserDeleteContextErrors = {
|
|
70675
|
+
/**
|
|
70676
|
+
* INVALID_PARAMS / INVALID_FILTER / INVALID_PAGE_TOKEN
|
|
70677
|
+
*/
|
|
70678
|
+
400: BrowserError;
|
|
70679
|
+
/**
|
|
70680
|
+
* UNAUTHENTICATED / CONNECT_SIGNATURE_INVALID
|
|
70681
|
+
*/
|
|
70682
|
+
401: BrowserError;
|
|
70683
|
+
/**
|
|
70684
|
+
* INSUFFICIENT_BALANCE / QUOTA_EXHAUSTED
|
|
70685
|
+
*/
|
|
70686
|
+
402: BrowserError;
|
|
70687
|
+
/**
|
|
70688
|
+
* PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
|
|
70689
|
+
*/
|
|
70690
|
+
403: BrowserError;
|
|
70691
|
+
/**
|
|
70692
|
+
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
70693
|
+
*/
|
|
70694
|
+
404: BrowserError;
|
|
70695
|
+
/**
|
|
70696
|
+
* SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
70697
|
+
*/
|
|
70698
|
+
409: BrowserError;
|
|
70699
|
+
/**
|
|
70700
|
+
* BROWSER_REVOKED
|
|
70701
|
+
*/
|
|
70702
|
+
410: BrowserError;
|
|
70703
|
+
/**
|
|
70704
|
+
* ACTION_RESULT_TOO_LARGE
|
|
70705
|
+
*/
|
|
70706
|
+
413: BrowserError;
|
|
70707
|
+
/**
|
|
70708
|
+
* CONCURRENCY_LIMIT / RATE_LIMITED / PROVIDER_CAPACITY
|
|
70709
|
+
*/
|
|
70710
|
+
429: BrowserError;
|
|
70711
|
+
/**
|
|
70712
|
+
* INTERNAL
|
|
70713
|
+
*/
|
|
70714
|
+
500: BrowserError;
|
|
70715
|
+
/**
|
|
70716
|
+
* NOT_IMPLEMENTED / PROVIDER_UNSUPPORTED
|
|
70717
|
+
*/
|
|
70718
|
+
501: BrowserError;
|
|
70719
|
+
/**
|
|
70720
|
+
* PROVIDER_FAILED
|
|
70721
|
+
*/
|
|
70722
|
+
502: BrowserError;
|
|
70723
|
+
/**
|
|
70724
|
+
* BROWSER_OFFLINE / SERVICE_UNAVAILABLE
|
|
70725
|
+
*/
|
|
70726
|
+
503: BrowserError;
|
|
70727
|
+
/**
|
|
70728
|
+
* ACTION_TIMEOUT
|
|
70729
|
+
*/
|
|
70730
|
+
504: BrowserError;
|
|
70731
|
+
};
|
|
70732
|
+
export type BrowserDeleteContextError = BrowserDeleteContextErrors[keyof BrowserDeleteContextErrors];
|
|
70733
|
+
export type BrowserDeleteContextResponses = {
|
|
70734
|
+
/**
|
|
70735
|
+
* 请求成功。
|
|
70736
|
+
*/
|
|
70737
|
+
200: {
|
|
70738
|
+
/**
|
|
70739
|
+
* 登录态及保存内容已删除,成功时固定返回 true。
|
|
70740
|
+
*/
|
|
70741
|
+
deleted: true;
|
|
70742
|
+
};
|
|
70743
|
+
};
|
|
70744
|
+
export type BrowserDeleteContextResponse = BrowserDeleteContextResponses[keyof BrowserDeleteContextResponses];
|
|
70745
|
+
export type BrowserGetContextData = {
|
|
70746
|
+
body?: never;
|
|
70747
|
+
path: {
|
|
70748
|
+
/**
|
|
70749
|
+
* 登录态 ID;使用创建或列出登录态返回的 id,以 bsc_ 开头。
|
|
70750
|
+
*/
|
|
70751
|
+
contextId: string;
|
|
70752
|
+
};
|
|
70753
|
+
query?: never;
|
|
70754
|
+
url: '/browser/v1/contexts/{contextId}';
|
|
70755
|
+
};
|
|
70756
|
+
export type BrowserGetContextErrors = {
|
|
70757
|
+
/**
|
|
70758
|
+
* INVALID_PARAMS / INVALID_FILTER / INVALID_PAGE_TOKEN
|
|
70759
|
+
*/
|
|
70760
|
+
400: BrowserError;
|
|
70761
|
+
/**
|
|
70762
|
+
* UNAUTHENTICATED / CONNECT_SIGNATURE_INVALID
|
|
70763
|
+
*/
|
|
70764
|
+
401: BrowserError;
|
|
70765
|
+
/**
|
|
70766
|
+
* INSUFFICIENT_BALANCE / QUOTA_EXHAUSTED
|
|
70767
|
+
*/
|
|
70768
|
+
402: BrowserError;
|
|
70769
|
+
/**
|
|
70770
|
+
* PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
|
|
70771
|
+
*/
|
|
70772
|
+
403: BrowserError;
|
|
70773
|
+
/**
|
|
70774
|
+
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
70775
|
+
*/
|
|
70776
|
+
404: BrowserError;
|
|
70777
|
+
/**
|
|
70778
|
+
* SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
70779
|
+
*/
|
|
70780
|
+
409: BrowserError;
|
|
70781
|
+
/**
|
|
70782
|
+
* BROWSER_REVOKED
|
|
70783
|
+
*/
|
|
70784
|
+
410: BrowserError;
|
|
70785
|
+
/**
|
|
70786
|
+
* ACTION_RESULT_TOO_LARGE
|
|
70787
|
+
*/
|
|
70788
|
+
413: BrowserError;
|
|
70789
|
+
/**
|
|
70790
|
+
* CONCURRENCY_LIMIT / RATE_LIMITED / PROVIDER_CAPACITY
|
|
70791
|
+
*/
|
|
70792
|
+
429: BrowserError;
|
|
70793
|
+
/**
|
|
70794
|
+
* INTERNAL
|
|
70795
|
+
*/
|
|
70796
|
+
500: BrowserError;
|
|
70797
|
+
/**
|
|
70798
|
+
* NOT_IMPLEMENTED / PROVIDER_UNSUPPORTED
|
|
70799
|
+
*/
|
|
70800
|
+
501: BrowserError;
|
|
70801
|
+
/**
|
|
70802
|
+
* PROVIDER_FAILED
|
|
70803
|
+
*/
|
|
70804
|
+
502: BrowserError;
|
|
70805
|
+
/**
|
|
70806
|
+
* BROWSER_OFFLINE / SERVICE_UNAVAILABLE
|
|
70807
|
+
*/
|
|
70808
|
+
503: BrowserError;
|
|
70809
|
+
/**
|
|
70810
|
+
* ACTION_TIMEOUT
|
|
70811
|
+
*/
|
|
70812
|
+
504: BrowserError;
|
|
70813
|
+
};
|
|
70814
|
+
export type BrowserGetContextError = BrowserGetContextErrors[keyof BrowserGetContextErrors];
|
|
70815
|
+
export type BrowserGetContextResponses = {
|
|
70816
|
+
/**
|
|
70817
|
+
* 请求成功。
|
|
70818
|
+
*/
|
|
70819
|
+
200: BrowserContext;
|
|
70820
|
+
};
|
|
70821
|
+
export type BrowserGetContextResponse = BrowserGetContextResponses[keyof BrowserGetContextResponses];
|
|
70822
|
+
export type BrowserUpdateContextData = {
|
|
70823
|
+
body: {
|
|
70824
|
+
/**
|
|
70825
|
+
* 登录态名称;非空时为 1–128 个 ASCII 字母、数字或 . _ : -,在当前账户内唯一;空字符串表示不设名称或清除名称。
|
|
70826
|
+
*/
|
|
70827
|
+
name?: '' | unknown;
|
|
70828
|
+
/**
|
|
70829
|
+
* 自定义字符串标签;最多 32 项,键最多 128 个 UTF-8 字节,值最多 1024 个 UTF-8 字节。 更新时整体替换;空对象清除标签,省略则保留。
|
|
70830
|
+
*/
|
|
70831
|
+
labels?: {
|
|
70832
|
+
[key: string]: string;
|
|
70833
|
+
};
|
|
70834
|
+
};
|
|
70835
|
+
path: {
|
|
70836
|
+
/**
|
|
70837
|
+
* 登录态 ID;使用创建或列出登录态返回的 id,以 bsc_ 开头。
|
|
70838
|
+
*/
|
|
70839
|
+
contextId: string;
|
|
70840
|
+
};
|
|
70841
|
+
query?: never;
|
|
70842
|
+
url: '/browser/v1/contexts/{contextId}';
|
|
70843
|
+
};
|
|
70844
|
+
export type BrowserUpdateContextErrors = {
|
|
70845
|
+
/**
|
|
70846
|
+
* INVALID_PARAMS / INVALID_FILTER / INVALID_PAGE_TOKEN
|
|
70847
|
+
*/
|
|
70848
|
+
400: BrowserError;
|
|
70849
|
+
/**
|
|
70850
|
+
* UNAUTHENTICATED / CONNECT_SIGNATURE_INVALID
|
|
70851
|
+
*/
|
|
70852
|
+
401: BrowserError;
|
|
70853
|
+
/**
|
|
70854
|
+
* INSUFFICIENT_BALANCE / QUOTA_EXHAUSTED
|
|
70855
|
+
*/
|
|
70856
|
+
402: BrowserError;
|
|
70857
|
+
/**
|
|
70858
|
+
* PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
|
|
70859
|
+
*/
|
|
70860
|
+
403: BrowserError;
|
|
70861
|
+
/**
|
|
70862
|
+
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
69960
70863
|
*/
|
|
69961
70864
|
404: BrowserError;
|
|
69962
70865
|
/**
|
|
69963
|
-
* SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
70866
|
+
* SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
69964
70867
|
*/
|
|
69965
70868
|
409: BrowserError;
|
|
70869
|
+
/**
|
|
70870
|
+
* BROWSER_REVOKED
|
|
70871
|
+
*/
|
|
70872
|
+
410: BrowserError;
|
|
69966
70873
|
/**
|
|
69967
70874
|
* ACTION_RESULT_TOO_LARGE
|
|
69968
70875
|
*/
|
|
@@ -69984,7 +70891,7 @@ export type BrowserViewerHeartbeatErrors = {
|
|
|
69984
70891
|
*/
|
|
69985
70892
|
502: BrowserError;
|
|
69986
70893
|
/**
|
|
69987
|
-
* SERVICE_UNAVAILABLE
|
|
70894
|
+
* BROWSER_OFFLINE / SERVICE_UNAVAILABLE
|
|
69988
70895
|
*/
|
|
69989
70896
|
503: BrowserError;
|
|
69990
70897
|
/**
|
|
@@ -69992,31 +70899,21 @@ export type BrowserViewerHeartbeatErrors = {
|
|
|
69992
70899
|
*/
|
|
69993
70900
|
504: BrowserError;
|
|
69994
70901
|
};
|
|
69995
|
-
export type
|
|
69996
|
-
export type
|
|
70902
|
+
export type BrowserUpdateContextError = BrowserUpdateContextErrors[keyof BrowserUpdateContextErrors];
|
|
70903
|
+
export type BrowserUpdateContextResponses = {
|
|
69997
70904
|
/**
|
|
69998
70905
|
* 请求成功。
|
|
69999
70906
|
*/
|
|
70000
|
-
200:
|
|
70001
|
-
/**
|
|
70002
|
-
* 心跳已被接受,成功时固定返回 true。
|
|
70003
|
-
*/
|
|
70004
|
-
ok: true;
|
|
70005
|
-
};
|
|
70907
|
+
200: BrowserContext;
|
|
70006
70908
|
};
|
|
70007
|
-
export type
|
|
70008
|
-
export type
|
|
70909
|
+
export type BrowserUpdateContextResponse = BrowserUpdateContextResponses[keyof BrowserUpdateContextResponses];
|
|
70910
|
+
export type BrowserCreateByobPairingData = {
|
|
70009
70911
|
body?: never;
|
|
70010
|
-
path
|
|
70011
|
-
/**
|
|
70012
|
-
* 浏览器会话 ID;使用创建或列出会话返回的 id,以 bss_ 开头。
|
|
70013
|
-
*/
|
|
70014
|
-
sessionId: string;
|
|
70015
|
-
};
|
|
70912
|
+
path?: never;
|
|
70016
70913
|
query?: never;
|
|
70017
|
-
url: '/browser/v1/
|
|
70914
|
+
url: '/browser/v1/byob/pairings';
|
|
70018
70915
|
};
|
|
70019
|
-
export type
|
|
70916
|
+
export type BrowserCreateByobPairingErrors = {
|
|
70020
70917
|
/**
|
|
70021
70918
|
* INVALID_PARAMS / INVALID_FILTER / INVALID_PAGE_TOKEN
|
|
70022
70919
|
*/
|
|
@@ -70034,13 +70931,17 @@ export type BrowserGetSessionFrameErrors = {
|
|
|
70034
70931
|
*/
|
|
70035
70932
|
403: BrowserError;
|
|
70036
70933
|
/**
|
|
70037
|
-
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
70934
|
+
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
70038
70935
|
*/
|
|
70039
70936
|
404: BrowserError;
|
|
70040
70937
|
/**
|
|
70041
|
-
* SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
70938
|
+
* SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
70042
70939
|
*/
|
|
70043
70940
|
409: BrowserError;
|
|
70941
|
+
/**
|
|
70942
|
+
* BROWSER_REVOKED
|
|
70943
|
+
*/
|
|
70944
|
+
410: BrowserError;
|
|
70044
70945
|
/**
|
|
70045
70946
|
* ACTION_RESULT_TOO_LARGE
|
|
70046
70947
|
*/
|
|
@@ -70062,7 +70963,7 @@ export type BrowserGetSessionFrameErrors = {
|
|
|
70062
70963
|
*/
|
|
70063
70964
|
502: BrowserError;
|
|
70064
70965
|
/**
|
|
70065
|
-
* SERVICE_UNAVAILABLE
|
|
70966
|
+
* BROWSER_OFFLINE / SERVICE_UNAVAILABLE
|
|
70066
70967
|
*/
|
|
70067
70968
|
503: BrowserError;
|
|
70068
70969
|
/**
|
|
@@ -70070,34 +70971,30 @@ export type BrowserGetSessionFrameErrors = {
|
|
|
70070
70971
|
*/
|
|
70071
70972
|
504: BrowserError;
|
|
70072
70973
|
};
|
|
70073
|
-
export type
|
|
70074
|
-
export type
|
|
70974
|
+
export type BrowserCreateByobPairingError = BrowserCreateByobPairingErrors[keyof BrowserCreateByobPairingErrors];
|
|
70975
|
+
export type BrowserCreateByobPairingResponses = {
|
|
70075
70976
|
/**
|
|
70076
|
-
*
|
|
70977
|
+
* 请求成功。
|
|
70077
70978
|
*/
|
|
70078
|
-
|
|
70979
|
+
201: BrowserByobPairing;
|
|
70079
70980
|
};
|
|
70080
|
-
export type
|
|
70081
|
-
export type
|
|
70981
|
+
export type BrowserCreateByobPairingResponse = BrowserCreateByobPairingResponses[keyof BrowserCreateByobPairingResponses];
|
|
70982
|
+
export type BrowserListByobBrowsersData = {
|
|
70082
70983
|
body?: never;
|
|
70083
70984
|
path?: never;
|
|
70084
70985
|
query?: {
|
|
70085
70986
|
/**
|
|
70086
|
-
*
|
|
70087
|
-
*/
|
|
70088
|
-
name?: string;
|
|
70089
|
-
/**
|
|
70090
|
-
* 登录态 ID;使用创建或列出登录态返回的 id,以 bsc_ 开头。
|
|
70987
|
+
* 上一页返回的 nextCursor,原样传入;省略时读取第一页。
|
|
70091
70988
|
*/
|
|
70092
70989
|
cursor?: string;
|
|
70093
70990
|
/**
|
|
70094
|
-
*
|
|
70991
|
+
* 每页最多返回的浏览器数量;默认 50,范围 1–100。
|
|
70095
70992
|
*/
|
|
70096
70993
|
limit?: number;
|
|
70097
70994
|
};
|
|
70098
|
-
url: '/browser/v1/
|
|
70995
|
+
url: '/browser/v1/byob/browsers';
|
|
70099
70996
|
};
|
|
70100
|
-
export type
|
|
70997
|
+
export type BrowserListByobBrowsersErrors = {
|
|
70101
70998
|
/**
|
|
70102
70999
|
* INVALID_PARAMS / INVALID_FILTER / INVALID_PAGE_TOKEN
|
|
70103
71000
|
*/
|
|
@@ -70115,13 +71012,17 @@ export type BrowserListContextsErrors = {
|
|
|
70115
71012
|
*/
|
|
70116
71013
|
403: BrowserError;
|
|
70117
71014
|
/**
|
|
70118
|
-
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
71015
|
+
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
70119
71016
|
*/
|
|
70120
71017
|
404: BrowserError;
|
|
70121
71018
|
/**
|
|
70122
|
-
* SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
71019
|
+
* SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
70123
71020
|
*/
|
|
70124
71021
|
409: BrowserError;
|
|
71022
|
+
/**
|
|
71023
|
+
* BROWSER_REVOKED
|
|
71024
|
+
*/
|
|
71025
|
+
410: BrowserError;
|
|
70125
71026
|
/**
|
|
70126
71027
|
* ACTION_RESULT_TOO_LARGE
|
|
70127
71028
|
*/
|
|
@@ -70143,7 +71044,7 @@ export type BrowserListContextsErrors = {
|
|
|
70143
71044
|
*/
|
|
70144
71045
|
502: BrowserError;
|
|
70145
71046
|
/**
|
|
70146
|
-
* SERVICE_UNAVAILABLE
|
|
71047
|
+
* BROWSER_OFFLINE / SERVICE_UNAVAILABLE
|
|
70147
71048
|
*/
|
|
70148
71049
|
503: BrowserError;
|
|
70149
71050
|
/**
|
|
@@ -70151,45 +71052,117 @@ export type BrowserListContextsErrors = {
|
|
|
70151
71052
|
*/
|
|
70152
71053
|
504: BrowserError;
|
|
70153
71054
|
};
|
|
70154
|
-
export type
|
|
70155
|
-
export type
|
|
71055
|
+
export type BrowserListByobBrowsersError = BrowserListByobBrowsersErrors[keyof BrowserListByobBrowsersErrors];
|
|
71056
|
+
export type BrowserListByobBrowsersResponses = {
|
|
70156
71057
|
/**
|
|
70157
|
-
*
|
|
71058
|
+
* 分页列出的自带浏览器,按 ID 升序。
|
|
70158
71059
|
*/
|
|
70159
71060
|
200: {
|
|
70160
71061
|
/**
|
|
70161
|
-
*
|
|
71062
|
+
* 本页的自带浏览器;已断开的不在列表里。
|
|
70162
71063
|
*/
|
|
70163
|
-
data: Array<
|
|
71064
|
+
data: Array<BrowserByobBrowser>;
|
|
70164
71065
|
/**
|
|
70165
71066
|
* 下一页游标;原样传入 cursor,null 表示没有更多结果。
|
|
70166
71067
|
*/
|
|
70167
71068
|
nextCursor: string | null;
|
|
70168
71069
|
};
|
|
70169
71070
|
};
|
|
70170
|
-
export type
|
|
70171
|
-
export type
|
|
70172
|
-
body
|
|
71071
|
+
export type BrowserListByobBrowsersResponse = BrowserListByobBrowsersResponses[keyof BrowserListByobBrowsersResponses];
|
|
71072
|
+
export type BrowserGetByobBrowserData = {
|
|
71073
|
+
body?: never;
|
|
71074
|
+
path: {
|
|
70173
71075
|
/**
|
|
70174
|
-
*
|
|
71076
|
+
* 自带浏览器 ID,以 byb_ 开头;使用配对认领或列出自带浏览器返回的 id。
|
|
70175
71077
|
*/
|
|
70176
|
-
|
|
71078
|
+
browser_id: string;
|
|
71079
|
+
};
|
|
71080
|
+
query?: never;
|
|
71081
|
+
url: '/browser/v1/byob/browsers/{browser_id}';
|
|
71082
|
+
};
|
|
71083
|
+
export type BrowserGetByobBrowserErrors = {
|
|
71084
|
+
/**
|
|
71085
|
+
* INVALID_PARAMS / INVALID_FILTER / INVALID_PAGE_TOKEN
|
|
71086
|
+
*/
|
|
71087
|
+
400: BrowserError;
|
|
71088
|
+
/**
|
|
71089
|
+
* UNAUTHENTICATED / CONNECT_SIGNATURE_INVALID
|
|
71090
|
+
*/
|
|
71091
|
+
401: BrowserError;
|
|
71092
|
+
/**
|
|
71093
|
+
* INSUFFICIENT_BALANCE / QUOTA_EXHAUSTED
|
|
71094
|
+
*/
|
|
71095
|
+
402: BrowserError;
|
|
71096
|
+
/**
|
|
71097
|
+
* PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
|
|
71098
|
+
*/
|
|
71099
|
+
403: BrowserError;
|
|
71100
|
+
/**
|
|
71101
|
+
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
71102
|
+
*/
|
|
71103
|
+
404: BrowserError;
|
|
71104
|
+
/**
|
|
71105
|
+
* SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
71106
|
+
*/
|
|
71107
|
+
409: BrowserError;
|
|
71108
|
+
/**
|
|
71109
|
+
* BROWSER_REVOKED
|
|
71110
|
+
*/
|
|
71111
|
+
410: BrowserError;
|
|
71112
|
+
/**
|
|
71113
|
+
* ACTION_RESULT_TOO_LARGE
|
|
71114
|
+
*/
|
|
71115
|
+
413: BrowserError;
|
|
71116
|
+
/**
|
|
71117
|
+
* CONCURRENCY_LIMIT / RATE_LIMITED / PROVIDER_CAPACITY
|
|
71118
|
+
*/
|
|
71119
|
+
429: BrowserError;
|
|
71120
|
+
/**
|
|
71121
|
+
* INTERNAL
|
|
71122
|
+
*/
|
|
71123
|
+
500: BrowserError;
|
|
71124
|
+
/**
|
|
71125
|
+
* NOT_IMPLEMENTED / PROVIDER_UNSUPPORTED
|
|
71126
|
+
*/
|
|
71127
|
+
501: BrowserError;
|
|
71128
|
+
/**
|
|
71129
|
+
* PROVIDER_FAILED
|
|
71130
|
+
*/
|
|
71131
|
+
502: BrowserError;
|
|
71132
|
+
/**
|
|
71133
|
+
* BROWSER_OFFLINE / SERVICE_UNAVAILABLE
|
|
71134
|
+
*/
|
|
71135
|
+
503: BrowserError;
|
|
71136
|
+
/**
|
|
71137
|
+
* ACTION_TIMEOUT
|
|
71138
|
+
*/
|
|
71139
|
+
504: BrowserError;
|
|
71140
|
+
};
|
|
71141
|
+
export type BrowserGetByobBrowserError = BrowserGetByobBrowserErrors[keyof BrowserGetByobBrowserErrors];
|
|
71142
|
+
export type BrowserGetByobBrowserResponses = {
|
|
71143
|
+
/**
|
|
71144
|
+
* 请求成功。
|
|
71145
|
+
*/
|
|
71146
|
+
200: BrowserByobBrowser;
|
|
71147
|
+
};
|
|
71148
|
+
export type BrowserGetByobBrowserResponse = BrowserGetByobBrowserResponses[keyof BrowserGetByobBrowserResponses];
|
|
71149
|
+
export type BrowserUpdateByobBrowserData = {
|
|
71150
|
+
body: {
|
|
70177
71151
|
/**
|
|
70178
|
-
*
|
|
71152
|
+
* 新的显示名称,1–80 个字符。
|
|
70179
71153
|
*/
|
|
70180
|
-
name?:
|
|
71154
|
+
name?: string;
|
|
71155
|
+
};
|
|
71156
|
+
path: {
|
|
70181
71157
|
/**
|
|
70182
|
-
*
|
|
71158
|
+
* 自带浏览器 ID,以 byb_ 开头;使用配对认领或列出自带浏览器返回的 id。
|
|
70183
71159
|
*/
|
|
70184
|
-
|
|
70185
|
-
[key: string]: string;
|
|
70186
|
-
};
|
|
71160
|
+
browser_id: string;
|
|
70187
71161
|
};
|
|
70188
|
-
path?: never;
|
|
70189
71162
|
query?: never;
|
|
70190
|
-
url: '/browser/v1/
|
|
71163
|
+
url: '/browser/v1/byob/browsers/{browser_id}';
|
|
70191
71164
|
};
|
|
70192
|
-
export type
|
|
71165
|
+
export type BrowserUpdateByobBrowserErrors = {
|
|
70193
71166
|
/**
|
|
70194
71167
|
* INVALID_PARAMS / INVALID_FILTER / INVALID_PAGE_TOKEN
|
|
70195
71168
|
*/
|
|
@@ -70207,13 +71180,17 @@ export type BrowserCreateContextErrors = {
|
|
|
70207
71180
|
*/
|
|
70208
71181
|
403: BrowserError;
|
|
70209
71182
|
/**
|
|
70210
|
-
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
71183
|
+
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
70211
71184
|
*/
|
|
70212
71185
|
404: BrowserError;
|
|
70213
71186
|
/**
|
|
70214
|
-
* SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
71187
|
+
* SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
70215
71188
|
*/
|
|
70216
71189
|
409: BrowserError;
|
|
71190
|
+
/**
|
|
71191
|
+
* BROWSER_REVOKED
|
|
71192
|
+
*/
|
|
71193
|
+
410: BrowserError;
|
|
70217
71194
|
/**
|
|
70218
71195
|
* ACTION_RESULT_TOO_LARGE
|
|
70219
71196
|
*/
|
|
@@ -70235,7 +71212,7 @@ export type BrowserCreateContextErrors = {
|
|
|
70235
71212
|
*/
|
|
70236
71213
|
502: BrowserError;
|
|
70237
71214
|
/**
|
|
70238
|
-
* SERVICE_UNAVAILABLE
|
|
71215
|
+
* BROWSER_OFFLINE / SERVICE_UNAVAILABLE
|
|
70239
71216
|
*/
|
|
70240
71217
|
503: BrowserError;
|
|
70241
71218
|
/**
|
|
@@ -70243,26 +71220,26 @@ export type BrowserCreateContextErrors = {
|
|
|
70243
71220
|
*/
|
|
70244
71221
|
504: BrowserError;
|
|
70245
71222
|
};
|
|
70246
|
-
export type
|
|
70247
|
-
export type
|
|
71223
|
+
export type BrowserUpdateByobBrowserError = BrowserUpdateByobBrowserErrors[keyof BrowserUpdateByobBrowserErrors];
|
|
71224
|
+
export type BrowserUpdateByobBrowserResponses = {
|
|
70248
71225
|
/**
|
|
70249
71226
|
* 请求成功。
|
|
70250
71227
|
*/
|
|
70251
|
-
|
|
71228
|
+
200: BrowserByobBrowser;
|
|
70252
71229
|
};
|
|
70253
|
-
export type
|
|
70254
|
-
export type
|
|
71230
|
+
export type BrowserUpdateByobBrowserResponse = BrowserUpdateByobBrowserResponses[keyof BrowserUpdateByobBrowserResponses];
|
|
71231
|
+
export type BrowserDisconnectByobBrowserData = {
|
|
70255
71232
|
body?: never;
|
|
70256
71233
|
path: {
|
|
70257
71234
|
/**
|
|
70258
|
-
*
|
|
71235
|
+
* 自带浏览器 ID,以 byb_ 开头;使用配对认领或列出自带浏览器返回的 id。
|
|
70259
71236
|
*/
|
|
70260
|
-
|
|
71237
|
+
browser_id: string;
|
|
70261
71238
|
};
|
|
70262
71239
|
query?: never;
|
|
70263
|
-
url: '/browser/v1/
|
|
71240
|
+
url: '/browser/v1/byob/browsers/{browser_id}/disconnect';
|
|
70264
71241
|
};
|
|
70265
|
-
export type
|
|
71242
|
+
export type BrowserDisconnectByobBrowserErrors = {
|
|
70266
71243
|
/**
|
|
70267
71244
|
* INVALID_PARAMS / INVALID_FILTER / INVALID_PAGE_TOKEN
|
|
70268
71245
|
*/
|
|
@@ -70280,13 +71257,17 @@ export type BrowserDeleteContextErrors = {
|
|
|
70280
71257
|
*/
|
|
70281
71258
|
403: BrowserError;
|
|
70282
71259
|
/**
|
|
70283
|
-
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
71260
|
+
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
70284
71261
|
*/
|
|
70285
71262
|
404: BrowserError;
|
|
70286
71263
|
/**
|
|
70287
|
-
* SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
71264
|
+
* SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
70288
71265
|
*/
|
|
70289
71266
|
409: BrowserError;
|
|
71267
|
+
/**
|
|
71268
|
+
* BROWSER_REVOKED
|
|
71269
|
+
*/
|
|
71270
|
+
410: BrowserError;
|
|
70290
71271
|
/**
|
|
70291
71272
|
* ACTION_RESULT_TOO_LARGE
|
|
70292
71273
|
*/
|
|
@@ -70308,7 +71289,7 @@ export type BrowserDeleteContextErrors = {
|
|
|
70308
71289
|
*/
|
|
70309
71290
|
502: BrowserError;
|
|
70310
71291
|
/**
|
|
70311
|
-
* SERVICE_UNAVAILABLE
|
|
71292
|
+
* BROWSER_OFFLINE / SERVICE_UNAVAILABLE
|
|
70312
71293
|
*/
|
|
70313
71294
|
503: BrowserError;
|
|
70314
71295
|
/**
|
|
@@ -70316,31 +71297,26 @@ export type BrowserDeleteContextErrors = {
|
|
|
70316
71297
|
*/
|
|
70317
71298
|
504: BrowserError;
|
|
70318
71299
|
};
|
|
70319
|
-
export type
|
|
70320
|
-
export type
|
|
71300
|
+
export type BrowserDisconnectByobBrowserError = BrowserDisconnectByobBrowserErrors[keyof BrowserDisconnectByobBrowserErrors];
|
|
71301
|
+
export type BrowserDisconnectByobBrowserResponses = {
|
|
70321
71302
|
/**
|
|
70322
71303
|
* 请求成功。
|
|
70323
71304
|
*/
|
|
70324
|
-
200:
|
|
70325
|
-
/**
|
|
70326
|
-
* 登录态及保存内容已删除,成功时固定返回 true。
|
|
70327
|
-
*/
|
|
70328
|
-
deleted: true;
|
|
70329
|
-
};
|
|
71305
|
+
200: BrowserByobBrowser;
|
|
70330
71306
|
};
|
|
70331
|
-
export type
|
|
70332
|
-
export type
|
|
71307
|
+
export type BrowserDisconnectByobBrowserResponse = BrowserDisconnectByobBrowserResponses[keyof BrowserDisconnectByobBrowserResponses];
|
|
71308
|
+
export type BrowserReadByobPairingData = {
|
|
70333
71309
|
body?: never;
|
|
70334
71310
|
path: {
|
|
70335
71311
|
/**
|
|
70336
|
-
*
|
|
71312
|
+
* 8 位配对码,来自创建配对码的结果。
|
|
70337
71313
|
*/
|
|
70338
|
-
|
|
71314
|
+
code: string;
|
|
70339
71315
|
};
|
|
70340
71316
|
query?: never;
|
|
70341
|
-
url: '/browser/v1/
|
|
71317
|
+
url: '/browser/v1/byob/pairings/{code}';
|
|
70342
71318
|
};
|
|
70343
|
-
export type
|
|
71319
|
+
export type BrowserReadByobPairingErrors = {
|
|
70344
71320
|
/**
|
|
70345
71321
|
* INVALID_PARAMS / INVALID_FILTER / INVALID_PAGE_TOKEN
|
|
70346
71322
|
*/
|
|
@@ -70358,13 +71334,17 @@ export type BrowserGetContextErrors = {
|
|
|
70358
71334
|
*/
|
|
70359
71335
|
403: BrowserError;
|
|
70360
71336
|
/**
|
|
70361
|
-
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
71337
|
+
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
70362
71338
|
*/
|
|
70363
71339
|
404: BrowserError;
|
|
70364
71340
|
/**
|
|
70365
|
-
* SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
71341
|
+
* SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
70366
71342
|
*/
|
|
70367
71343
|
409: BrowserError;
|
|
71344
|
+
/**
|
|
71345
|
+
* BROWSER_REVOKED
|
|
71346
|
+
*/
|
|
71347
|
+
410: BrowserError;
|
|
70368
71348
|
/**
|
|
70369
71349
|
* ACTION_RESULT_TOO_LARGE
|
|
70370
71350
|
*/
|
|
@@ -70386,7 +71366,7 @@ export type BrowserGetContextErrors = {
|
|
|
70386
71366
|
*/
|
|
70387
71367
|
502: BrowserError;
|
|
70388
71368
|
/**
|
|
70389
|
-
* SERVICE_UNAVAILABLE
|
|
71369
|
+
* BROWSER_OFFLINE / SERVICE_UNAVAILABLE
|
|
70390
71370
|
*/
|
|
70391
71371
|
503: BrowserError;
|
|
70392
71372
|
/**
|
|
@@ -70394,37 +71374,26 @@ export type BrowserGetContextErrors = {
|
|
|
70394
71374
|
*/
|
|
70395
71375
|
504: BrowserError;
|
|
70396
71376
|
};
|
|
70397
|
-
export type
|
|
70398
|
-
export type
|
|
71377
|
+
export type BrowserReadByobPairingError = BrowserReadByobPairingErrors[keyof BrowserReadByobPairingErrors];
|
|
71378
|
+
export type BrowserReadByobPairingResponses = {
|
|
70399
71379
|
/**
|
|
70400
71380
|
* 请求成功。
|
|
70401
71381
|
*/
|
|
70402
|
-
200:
|
|
71382
|
+
200: BrowserByobPairingView;
|
|
70403
71383
|
};
|
|
70404
|
-
export type
|
|
70405
|
-
export type
|
|
70406
|
-
body:
|
|
70407
|
-
/**
|
|
70408
|
-
* 登录态名称;非空时为 1–128 个 ASCII 字母、数字或 . _ : -,在当前账户内唯一;空字符串表示不设名称或清除名称。
|
|
70409
|
-
*/
|
|
70410
|
-
name?: '' | unknown;
|
|
70411
|
-
/**
|
|
70412
|
-
* 自定义字符串标签;最多 32 项,键最多 128 个 UTF-8 字节,值最多 1024 个 UTF-8 字节。 更新时整体替换;空对象清除标签,省略则保留。
|
|
70413
|
-
*/
|
|
70414
|
-
labels?: {
|
|
70415
|
-
[key: string]: string;
|
|
70416
|
-
};
|
|
70417
|
-
};
|
|
71384
|
+
export type BrowserReadByobPairingResponse = BrowserReadByobPairingResponses[keyof BrowserReadByobPairingResponses];
|
|
71385
|
+
export type BrowserClaimByobPairingData = {
|
|
71386
|
+
body: BrowserByobClaim;
|
|
70418
71387
|
path: {
|
|
70419
71388
|
/**
|
|
70420
|
-
*
|
|
71389
|
+
* 8 位配对码,来自创建配对码的结果。
|
|
70421
71390
|
*/
|
|
70422
|
-
|
|
71391
|
+
code: string;
|
|
70423
71392
|
};
|
|
70424
71393
|
query?: never;
|
|
70425
|
-
url: '/browser/v1/
|
|
71394
|
+
url: '/browser/v1/byob/pairings/{code}/claim';
|
|
70426
71395
|
};
|
|
70427
|
-
export type
|
|
71396
|
+
export type BrowserClaimByobPairingErrors = {
|
|
70428
71397
|
/**
|
|
70429
71398
|
* INVALID_PARAMS / INVALID_FILTER / INVALID_PAGE_TOKEN
|
|
70430
71399
|
*/
|
|
@@ -70442,13 +71411,17 @@ export type BrowserUpdateContextErrors = {
|
|
|
70442
71411
|
*/
|
|
70443
71412
|
403: BrowserError;
|
|
70444
71413
|
/**
|
|
70445
|
-
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
71414
|
+
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
70446
71415
|
*/
|
|
70447
71416
|
404: BrowserError;
|
|
70448
71417
|
/**
|
|
70449
|
-
* SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
71418
|
+
* SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
70450
71419
|
*/
|
|
70451
71420
|
409: BrowserError;
|
|
71421
|
+
/**
|
|
71422
|
+
* BROWSER_REVOKED
|
|
71423
|
+
*/
|
|
71424
|
+
410: BrowserError;
|
|
70452
71425
|
/**
|
|
70453
71426
|
* ACTION_RESULT_TOO_LARGE
|
|
70454
71427
|
*/
|
|
@@ -70470,7 +71443,7 @@ export type BrowserUpdateContextErrors = {
|
|
|
70470
71443
|
*/
|
|
70471
71444
|
502: BrowserError;
|
|
70472
71445
|
/**
|
|
70473
|
-
* SERVICE_UNAVAILABLE
|
|
71446
|
+
* BROWSER_OFFLINE / SERVICE_UNAVAILABLE
|
|
70474
71447
|
*/
|
|
70475
71448
|
503: BrowserError;
|
|
70476
71449
|
/**
|
|
@@ -70478,14 +71451,14 @@ export type BrowserUpdateContextErrors = {
|
|
|
70478
71451
|
*/
|
|
70479
71452
|
504: BrowserError;
|
|
70480
71453
|
};
|
|
70481
|
-
export type
|
|
70482
|
-
export type
|
|
71454
|
+
export type BrowserClaimByobPairingError = BrowserClaimByobPairingErrors[keyof BrowserClaimByobPairingErrors];
|
|
71455
|
+
export type BrowserClaimByobPairingResponses = {
|
|
70483
71456
|
/**
|
|
70484
|
-
*
|
|
71457
|
+
* 认领成功。
|
|
70485
71458
|
*/
|
|
70486
|
-
|
|
71459
|
+
201: BrowserByobClaimResult;
|
|
70487
71460
|
};
|
|
70488
|
-
export type
|
|
71461
|
+
export type BrowserClaimByobPairingResponse = BrowserClaimByobPairingResponses[keyof BrowserClaimByobPairingResponses];
|
|
70489
71462
|
export type BrowserConnectData = {
|
|
70490
71463
|
body?: never;
|
|
70491
71464
|
path?: never;
|
|
@@ -70547,13 +71520,17 @@ export type BrowserConnectErrors = {
|
|
|
70547
71520
|
*/
|
|
70548
71521
|
403: BrowserError;
|
|
70549
71522
|
/**
|
|
70550
|
-
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
71523
|
+
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
70551
71524
|
*/
|
|
70552
71525
|
404: BrowserError;
|
|
70553
71526
|
/**
|
|
70554
|
-
* SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
71527
|
+
* SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
70555
71528
|
*/
|
|
70556
71529
|
409: BrowserError;
|
|
71530
|
+
/**
|
|
71531
|
+
* BROWSER_REVOKED
|
|
71532
|
+
*/
|
|
71533
|
+
410: BrowserError;
|
|
70557
71534
|
/**
|
|
70558
71535
|
* ACTION_RESULT_TOO_LARGE
|
|
70559
71536
|
*/
|
|
@@ -70575,7 +71552,7 @@ export type BrowserConnectErrors = {
|
|
|
70575
71552
|
*/
|
|
70576
71553
|
502: BrowserError;
|
|
70577
71554
|
/**
|
|
70578
|
-
* SERVICE_UNAVAILABLE
|
|
71555
|
+
* BROWSER_OFFLINE / SERVICE_UNAVAILABLE
|
|
70579
71556
|
*/
|
|
70580
71557
|
503: BrowserError;
|
|
70581
71558
|
/**
|
|
@@ -70622,13 +71599,17 @@ export type BrowserLiveViewErrors = {
|
|
|
70622
71599
|
*/
|
|
70623
71600
|
403: BrowserError;
|
|
70624
71601
|
/**
|
|
70625
|
-
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
71602
|
+
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
70626
71603
|
*/
|
|
70627
71604
|
404: BrowserError;
|
|
70628
71605
|
/**
|
|
70629
|
-
* SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
71606
|
+
* SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
70630
71607
|
*/
|
|
70631
71608
|
409: BrowserError;
|
|
71609
|
+
/**
|
|
71610
|
+
* BROWSER_REVOKED
|
|
71611
|
+
*/
|
|
71612
|
+
410: BrowserError;
|
|
70632
71613
|
/**
|
|
70633
71614
|
* ACTION_RESULT_TOO_LARGE
|
|
70634
71615
|
*/
|
|
@@ -70650,7 +71631,7 @@ export type BrowserLiveViewErrors = {
|
|
|
70650
71631
|
*/
|
|
70651
71632
|
502: BrowserError;
|
|
70652
71633
|
/**
|
|
70653
|
-
* SERVICE_UNAVAILABLE
|
|
71634
|
+
* BROWSER_OFFLINE / SERVICE_UNAVAILABLE
|
|
70654
71635
|
*/
|
|
70655
71636
|
503: BrowserError;
|
|
70656
71637
|
/**
|
|
@@ -70688,13 +71669,17 @@ export type BrowserStreamSessionErrors = {
|
|
|
70688
71669
|
*/
|
|
70689
71670
|
403: BrowserError;
|
|
70690
71671
|
/**
|
|
70691
|
-
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
71672
|
+
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
70692
71673
|
*/
|
|
70693
71674
|
404: BrowserError;
|
|
70694
71675
|
/**
|
|
70695
|
-
* SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
71676
|
+
* SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
70696
71677
|
*/
|
|
70697
71678
|
409: BrowserError;
|
|
71679
|
+
/**
|
|
71680
|
+
* BROWSER_REVOKED
|
|
71681
|
+
*/
|
|
71682
|
+
410: BrowserError;
|
|
70698
71683
|
/**
|
|
70699
71684
|
* ACTION_RESULT_TOO_LARGE
|
|
70700
71685
|
*/
|
|
@@ -70716,7 +71701,7 @@ export type BrowserStreamSessionErrors = {
|
|
|
70716
71701
|
*/
|
|
70717
71702
|
502: BrowserError;
|
|
70718
71703
|
/**
|
|
70719
|
-
* SERVICE_UNAVAILABLE
|
|
71704
|
+
* BROWSER_OFFLINE / SERVICE_UNAVAILABLE
|
|
70720
71705
|
*/
|
|
70721
71706
|
503: BrowserError;
|
|
70722
71707
|
/**
|
|
@@ -70761,13 +71746,17 @@ export type BrowserStreamSessionFramesErrors = {
|
|
|
70761
71746
|
*/
|
|
70762
71747
|
403: BrowserError;
|
|
70763
71748
|
/**
|
|
70764
|
-
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
71749
|
+
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
70765
71750
|
*/
|
|
70766
71751
|
404: BrowserError;
|
|
70767
71752
|
/**
|
|
70768
|
-
* SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
71753
|
+
* SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
70769
71754
|
*/
|
|
70770
71755
|
409: BrowserError;
|
|
71756
|
+
/**
|
|
71757
|
+
* BROWSER_REVOKED
|
|
71758
|
+
*/
|
|
71759
|
+
410: BrowserError;
|
|
70771
71760
|
/**
|
|
70772
71761
|
* ACTION_RESULT_TOO_LARGE
|
|
70773
71762
|
*/
|
|
@@ -70789,7 +71778,7 @@ export type BrowserStreamSessionFramesErrors = {
|
|
|
70789
71778
|
*/
|
|
70790
71779
|
502: BrowserError;
|
|
70791
71780
|
/**
|
|
70792
|
-
* SERVICE_UNAVAILABLE
|
|
71781
|
+
* BROWSER_OFFLINE / SERVICE_UNAVAILABLE
|
|
70793
71782
|
*/
|
|
70794
71783
|
503: BrowserError;
|
|
70795
71784
|
/**
|
|
@@ -79938,7 +80927,7 @@ export type ListByodDevicesResponses = {
|
|
|
79938
80927
|
*/
|
|
79939
80928
|
id: string;
|
|
79940
80929
|
/**
|
|
79941
|
-
* The device's platform, which decides the use faces it answers. A desktop (macos, linux) pairs
|
|
80930
|
+
* The device's platform, which decides the use faces it answers. A desktop (macos, linux) pairs like a phone; windows is not supported yet.
|
|
79942
80931
|
*/
|
|
79943
80932
|
platform: 'android' | 'macos' | 'linux';
|
|
79944
80933
|
/**
|
|
@@ -79973,6 +80962,23 @@ export type ListByodDevicesResponses = {
|
|
|
79973
80962
|
* 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.
|
|
79974
80963
|
*/
|
|
79975
80964
|
agent_dirs: Array<string>;
|
|
80965
|
+
/**
|
|
80966
|
+
* 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.
|
|
80967
|
+
*/
|
|
80968
|
+
agent_bindings: Array<{
|
|
80969
|
+
/**
|
|
80970
|
+
* The absolute directory the desktop bound to an agent with praxis agent connect.
|
|
80971
|
+
*/
|
|
80972
|
+
dir: string;
|
|
80973
|
+
/**
|
|
80974
|
+
* The agent the directory is bound to: its identity number or its agent id.
|
|
80975
|
+
*/
|
|
80976
|
+
agent: string;
|
|
80977
|
+
}>;
|
|
80978
|
+
/**
|
|
80979
|
+
* 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.
|
|
80980
|
+
*/
|
|
80981
|
+
envd_version: string | null;
|
|
79976
80982
|
/**
|
|
79977
80983
|
* 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.
|
|
79978
80984
|
*/
|
|
@@ -80020,7 +81026,7 @@ export type GetByodDeviceResponses = {
|
|
|
80020
81026
|
*/
|
|
80021
81027
|
id: string;
|
|
80022
81028
|
/**
|
|
80023
|
-
* The device's platform, which decides the use faces it answers. A desktop (macos, linux) pairs
|
|
81029
|
+
* The device's platform, which decides the use faces it answers. A desktop (macos, linux) pairs like a phone; windows is not supported yet.
|
|
80024
81030
|
*/
|
|
80025
81031
|
platform: 'android' | 'macos' | 'linux';
|
|
80026
81032
|
/**
|
|
@@ -80055,6 +81061,23 @@ export type GetByodDeviceResponses = {
|
|
|
80055
81061
|
* 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.
|
|
80056
81062
|
*/
|
|
80057
81063
|
agent_dirs: Array<string>;
|
|
81064
|
+
/**
|
|
81065
|
+
* 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.
|
|
81066
|
+
*/
|
|
81067
|
+
agent_bindings: Array<{
|
|
81068
|
+
/**
|
|
81069
|
+
* The absolute directory the desktop bound to an agent with praxis agent connect.
|
|
81070
|
+
*/
|
|
81071
|
+
dir: string;
|
|
81072
|
+
/**
|
|
81073
|
+
* The agent the directory is bound to: its identity number or its agent id.
|
|
81074
|
+
*/
|
|
81075
|
+
agent: string;
|
|
81076
|
+
}>;
|
|
81077
|
+
/**
|
|
81078
|
+
* 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.
|
|
81079
|
+
*/
|
|
81080
|
+
envd_version: string | null;
|
|
80058
81081
|
/**
|
|
80059
81082
|
* 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.
|
|
80060
81083
|
*/
|
|
@@ -80113,7 +81136,7 @@ export type UpdateByodDeviceResponses = {
|
|
|
80113
81136
|
*/
|
|
80114
81137
|
id: string;
|
|
80115
81138
|
/**
|
|
80116
|
-
* The device's platform, which decides the use faces it answers. A desktop (macos, linux) pairs
|
|
81139
|
+
* The device's platform, which decides the use faces it answers. A desktop (macos, linux) pairs like a phone; windows is not supported yet.
|
|
80117
81140
|
*/
|
|
80118
81141
|
platform: 'android' | 'macos' | 'linux';
|
|
80119
81142
|
/**
|
|
@@ -80148,6 +81171,23 @@ export type UpdateByodDeviceResponses = {
|
|
|
80148
81171
|
* 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.
|
|
80149
81172
|
*/
|
|
80150
81173
|
agent_dirs: Array<string>;
|
|
81174
|
+
/**
|
|
81175
|
+
* 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.
|
|
81176
|
+
*/
|
|
81177
|
+
agent_bindings: Array<{
|
|
81178
|
+
/**
|
|
81179
|
+
* The absolute directory the desktop bound to an agent with praxis agent connect.
|
|
81180
|
+
*/
|
|
81181
|
+
dir: string;
|
|
81182
|
+
/**
|
|
81183
|
+
* The agent the directory is bound to: its identity number or its agent id.
|
|
81184
|
+
*/
|
|
81185
|
+
agent: string;
|
|
81186
|
+
}>;
|
|
81187
|
+
/**
|
|
81188
|
+
* 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.
|
|
81189
|
+
*/
|
|
81190
|
+
envd_version: string | null;
|
|
80151
81191
|
/**
|
|
80152
81192
|
* 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.
|
|
80153
81193
|
*/
|
|
@@ -80239,7 +81279,7 @@ export type ClaimByodPairingData = {
|
|
|
80239
81279
|
*/
|
|
80240
81280
|
body: {
|
|
80241
81281
|
/**
|
|
80242
|
-
* The device's platform. macos and linux are accepted
|
|
81282
|
+
* The device's platform. macos and linux are accepted for every organization; any other value than android, macos or linux answers INVALID_PARAMS.
|
|
80243
81283
|
*/
|
|
80244
81284
|
platform: 'android' | 'macos' | 'linux';
|
|
80245
81285
|
/**
|
|
@@ -80270,7 +81310,7 @@ export type ClaimByodPairingData = {
|
|
|
80270
81310
|
};
|
|
80271
81311
|
export type ClaimByodPairingErrors = {
|
|
80272
81312
|
/**
|
|
80273
|
-
* INVALID_PARAMS: the body is missing, platform is not android, macos or linux
|
|
81313
|
+
* 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.
|
|
80274
81314
|
*/
|
|
80275
81315
|
400: unknown;
|
|
80276
81316
|
/**
|
|
@@ -82893,8 +83933,7 @@ export type SessionsUpdateData = {
|
|
|
82893
83933
|
*/
|
|
82894
83934
|
title?: null | string;
|
|
82895
83935
|
/**
|
|
82896
|
-
*
|
|
82897
|
-
* requests setting this field are rejected. Reserved for future use.
|
|
83936
|
+
* 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.
|
|
82898
83937
|
*/
|
|
82899
83938
|
vault_ids?: Array<string>;
|
|
82900
83939
|
/**
|
|
@@ -83441,6 +84480,15 @@ export type AgentsListResponses = {
|
|
|
83441
84480
|
name: string;
|
|
83442
84481
|
}>;
|
|
83443
84482
|
};
|
|
84483
|
+
/**
|
|
84484
|
+
* 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.
|
|
84485
|
+
*/
|
|
84486
|
+
browser?: {
|
|
84487
|
+
/**
|
|
84488
|
+
* A paired browser's id (byb_ and 26 lowercase hex characters), from browser.byob.browsers.list.
|
|
84489
|
+
*/
|
|
84490
|
+
byob: string;
|
|
84491
|
+
} | null;
|
|
83444
84492
|
/**
|
|
83445
84493
|
* 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.
|
|
83446
84494
|
*/
|
|
@@ -83826,7 +84874,7 @@ export type AgentsListResponses = {
|
|
|
83826
84874
|
*/
|
|
83827
84875
|
environment_id?: string | null;
|
|
83828
84876
|
/**
|
|
83829
|
-
* Default vaults of this service or assume agent version: the vault_ids new
|
|
84877
|
+
* 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.
|
|
83830
84878
|
*/
|
|
83831
84879
|
vault_ids?: Array<string>;
|
|
83832
84880
|
/**
|
|
@@ -84365,7 +85413,7 @@ export type AgentsCreateData = {
|
|
|
84365
85413
|
*/
|
|
84366
85414
|
environment_id?: string | null;
|
|
84367
85415
|
/**
|
|
84368
|
-
* Default vaults of
|
|
85416
|
+
* 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.
|
|
84369
85417
|
*/
|
|
84370
85418
|
vault_ids?: Array<string>;
|
|
84371
85419
|
/**
|
|
@@ -84390,6 +85438,15 @@ export type AgentsCreateData = {
|
|
|
84390
85438
|
name: string;
|
|
84391
85439
|
}>;
|
|
84392
85440
|
};
|
|
85441
|
+
/**
|
|
85442
|
+
* 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.
|
|
85443
|
+
*/
|
|
85444
|
+
browser?: {
|
|
85445
|
+
/**
|
|
85446
|
+
* A paired browser's id (byb_ and 26 lowercase hex characters), from browser.byob.browsers.list.
|
|
85447
|
+
*/
|
|
85448
|
+
byob: string;
|
|
85449
|
+
} | null;
|
|
84393
85450
|
/**
|
|
84394
85451
|
* 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.
|
|
84395
85452
|
*/
|
|
@@ -84645,6 +85702,15 @@ export type AgentsCreateResponses = {
|
|
|
84645
85702
|
name: string;
|
|
84646
85703
|
}>;
|
|
84647
85704
|
};
|
|
85705
|
+
/**
|
|
85706
|
+
* 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.
|
|
85707
|
+
*/
|
|
85708
|
+
browser?: {
|
|
85709
|
+
/**
|
|
85710
|
+
* A paired browser's id (byb_ and 26 lowercase hex characters), from browser.byob.browsers.list.
|
|
85711
|
+
*/
|
|
85712
|
+
byob: string;
|
|
85713
|
+
} | null;
|
|
84648
85714
|
/**
|
|
84649
85715
|
* 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.
|
|
84650
85716
|
*/
|
|
@@ -85030,7 +86096,7 @@ export type AgentsCreateResponses = {
|
|
|
85030
86096
|
*/
|
|
85031
86097
|
environment_id?: string | null;
|
|
85032
86098
|
/**
|
|
85033
|
-
* Default vaults of this service or assume agent version: the vault_ids new
|
|
86099
|
+
* 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.
|
|
85034
86100
|
*/
|
|
85035
86101
|
vault_ids?: Array<string>;
|
|
85036
86102
|
/**
|
|
@@ -85307,6 +86373,15 @@ export type AgentsRetrieveResponses = {
|
|
|
85307
86373
|
name: string;
|
|
85308
86374
|
}>;
|
|
85309
86375
|
};
|
|
86376
|
+
/**
|
|
86377
|
+
* 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.
|
|
86378
|
+
*/
|
|
86379
|
+
browser?: {
|
|
86380
|
+
/**
|
|
86381
|
+
* A paired browser's id (byb_ and 26 lowercase hex characters), from browser.byob.browsers.list.
|
|
86382
|
+
*/
|
|
86383
|
+
byob: string;
|
|
86384
|
+
} | null;
|
|
85310
86385
|
/**
|
|
85311
86386
|
* 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.
|
|
85312
86387
|
*/
|
|
@@ -85692,7 +86767,7 @@ export type AgentsRetrieveResponses = {
|
|
|
85692
86767
|
*/
|
|
85693
86768
|
environment_id?: string | null;
|
|
85694
86769
|
/**
|
|
85695
|
-
* Default vaults of this service or assume agent version: the vault_ids new
|
|
86770
|
+
* 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.
|
|
85696
86771
|
*/
|
|
85697
86772
|
vault_ids?: Array<string>;
|
|
85698
86773
|
/**
|
|
@@ -86240,7 +87315,7 @@ export type AgentsUpdateData = {
|
|
|
86240
87315
|
*/
|
|
86241
87316
|
environment_id?: string | null;
|
|
86242
87317
|
/**
|
|
86243
|
-
* Default vaults of
|
|
87318
|
+
* 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.
|
|
86244
87319
|
*/
|
|
86245
87320
|
vault_ids?: Array<string>;
|
|
86246
87321
|
/**
|
|
@@ -86265,6 +87340,15 @@ export type AgentsUpdateData = {
|
|
|
86265
87340
|
name: string;
|
|
86266
87341
|
}>;
|
|
86267
87342
|
};
|
|
87343
|
+
/**
|
|
87344
|
+
* 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.
|
|
87345
|
+
*/
|
|
87346
|
+
browser?: {
|
|
87347
|
+
/**
|
|
87348
|
+
* A paired browser's id (byb_ and 26 lowercase hex characters), from browser.byob.browsers.list.
|
|
87349
|
+
*/
|
|
87350
|
+
byob: string;
|
|
87351
|
+
} | null;
|
|
86268
87352
|
/**
|
|
86269
87353
|
* 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.
|
|
86270
87354
|
*/
|
|
@@ -86533,6 +87617,15 @@ export type AgentsUpdateResponses = {
|
|
|
86533
87617
|
name: string;
|
|
86534
87618
|
}>;
|
|
86535
87619
|
};
|
|
87620
|
+
/**
|
|
87621
|
+
* 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.
|
|
87622
|
+
*/
|
|
87623
|
+
browser?: {
|
|
87624
|
+
/**
|
|
87625
|
+
* A paired browser's id (byb_ and 26 lowercase hex characters), from browser.byob.browsers.list.
|
|
87626
|
+
*/
|
|
87627
|
+
byob: string;
|
|
87628
|
+
} | null;
|
|
86536
87629
|
/**
|
|
86537
87630
|
* 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.
|
|
86538
87631
|
*/
|
|
@@ -86918,7 +88011,7 @@ export type AgentsUpdateResponses = {
|
|
|
86918
88011
|
*/
|
|
86919
88012
|
environment_id?: string | null;
|
|
86920
88013
|
/**
|
|
86921
|
-
* Default vaults of this service or assume agent version: the vault_ids new
|
|
88014
|
+
* 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.
|
|
86922
88015
|
*/
|
|
86923
88016
|
vault_ids?: Array<string>;
|
|
86924
88017
|
/**
|
|
@@ -87544,7 +88637,7 @@ export type AgentsArchiveResponses = {
|
|
|
87544
88637
|
*/
|
|
87545
88638
|
environment_id?: string | null;
|
|
87546
88639
|
/**
|
|
87547
|
-
* Default vaults of this service or assume agent version: the vault_ids new
|
|
88640
|
+
* 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.
|
|
87548
88641
|
*/
|
|
87549
88642
|
vault_ids?: Array<string>;
|
|
87550
88643
|
/**
|
|
@@ -87821,6 +88914,15 @@ export type AgentsVersionsListResponses = {
|
|
|
87821
88914
|
name: string;
|
|
87822
88915
|
}>;
|
|
87823
88916
|
};
|
|
88917
|
+
/**
|
|
88918
|
+
* 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.
|
|
88919
|
+
*/
|
|
88920
|
+
browser?: {
|
|
88921
|
+
/**
|
|
88922
|
+
* A paired browser's id (byb_ and 26 lowercase hex characters), from browser.byob.browsers.list.
|
|
88923
|
+
*/
|
|
88924
|
+
byob: string;
|
|
88925
|
+
} | null;
|
|
87824
88926
|
/**
|
|
87825
88927
|
* 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.
|
|
87826
88928
|
*/
|
|
@@ -88206,7 +89308,7 @@ export type AgentsVersionsListResponses = {
|
|
|
88206
89308
|
*/
|
|
88207
89309
|
environment_id?: string | null;
|
|
88208
89310
|
/**
|
|
88209
|
-
* Default vaults of this service or assume agent version: the vault_ids new
|
|
89311
|
+
* 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.
|
|
88210
89312
|
*/
|
|
88211
89313
|
vault_ids?: Array<string>;
|
|
88212
89314
|
/**
|