@deepraxis/sdk 0.2.0-dev.62855e4 → 0.2.0-dev.6a19327
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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 +1803 -402
- 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 +277 -16
- package/dist/resources.generated.d.ts +54 -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,74 @@ export type BrowserSessionCreateParams = {
|
|
|
3696
3696
|
ignoreCertificateErrors?: boolean;
|
|
3697
3697
|
};
|
|
3698
3698
|
/**
|
|
3699
|
-
*
|
|
3699
|
+
* 让会话经一个固定的外部 HTTP 代理(如住宅 IP)出网:[{type: 'external', server: 'host:port', username?, password_secret?}];省略、false 或 [{type: 'none'}] 表示不用代理。只能有一个代理条目;密码推荐用 password_secret 引用保管库(只在连接代理主机时兑换),也可以直接给明文 password,二者不能同时出现。带代理的会话一定在我们的 Chrome 容器里运行,需要组织已开通容器后端,否则返回 501 PROVIDER_UNSUPPORTED;不能与 source.type 为 cloud 或 byob 同用,返回 400 INVALID_PARAMS(格式错误、私网地址、用户名没有密码等同样返回 400,reason 写明原因)。其它代理类型和 socks5 返回 501 PROVIDER_UNSUPPORTED。要让某个账号始终从同一个出口地址出去,把代理绑定在登录态上(contexts 的 proxy),不必每次会话重复传。
|
|
3700
3700
|
*/
|
|
3701
|
-
proxies?: boolean |
|
|
3701
|
+
proxies?: boolean | [
|
|
3702
|
+
{
|
|
3703
|
+
/**
|
|
3704
|
+
* 固定为 external:经一个你自己的外部 HTTP 代理出网。
|
|
3705
|
+
*/
|
|
3706
|
+
type: 'external';
|
|
3707
|
+
/**
|
|
3708
|
+
* 代理地址,host:port 或 http://host:port;只支持 HTTP 代理,不接受 socks5:// 等协议,也不接受 localhost 和内网、链路本地地址。
|
|
3709
|
+
*/
|
|
3710
|
+
server: string;
|
|
3711
|
+
/**
|
|
3712
|
+
* 代理用户名;有密码时才能填,填了就必须同时给出密码。
|
|
3713
|
+
*/
|
|
3714
|
+
username?: string;
|
|
3715
|
+
/**
|
|
3716
|
+
* 代理密码明文,只在这次创建中使用,不会保存;推荐改用 password_secret。与 password_secret 二选一。
|
|
3717
|
+
*/
|
|
3718
|
+
password?: string;
|
|
3719
|
+
/**
|
|
3720
|
+
* 推荐:引用保管库里的代理密码,只在连接这个代理的主机时兑换,不会交给网页。与 password 二选一。
|
|
3721
|
+
*/
|
|
3722
|
+
password_secret?: {
|
|
3723
|
+
/**
|
|
3724
|
+
* 保存代理密码的保管库 ID,以 vlt_ 开头。
|
|
3725
|
+
*/
|
|
3726
|
+
vault_id: string;
|
|
3727
|
+
/**
|
|
3728
|
+
* 保管库中该密码的密钥 ID(不是密码本身)。
|
|
3729
|
+
*/
|
|
3730
|
+
secret: string;
|
|
3731
|
+
};
|
|
3732
|
+
} | {
|
|
3733
|
+
/**
|
|
3734
|
+
* 固定为 none:不用代理,与省略 proxies 相同。
|
|
3735
|
+
*/
|
|
3736
|
+
type: 'none';
|
|
3737
|
+
}
|
|
3738
|
+
];
|
|
3739
|
+
/**
|
|
3740
|
+
* 选择浏览器后端,只有 container 支持外部代理:cloud(Browser Run)和 byob 都不能用代理。{type: 'cloud'}:Browser Run,启动最快、不能用代理、自动化特征可被网站发现。{type: 'container'}:我们自己的 Chrome 容器,可带 proxies(或用登录态绑定的代理),也可不带;组织未开通容器后端时返回 501 PROVIDER_UNSUPPORTED。{type: 'byob', browser: 'byb_…'}:用户自己配对的浏览器,不能与 proxies 或登录态同用。简写 {byob: 'byb_…'} 等同最后一种。省略时按旧规则:带 proxies 进容器,否则 Browser Run。cloud 加代理、未知 type、格式错误都返回 400 INVALID_PARAMS。
|
|
3741
|
+
*/
|
|
3742
|
+
source?: {
|
|
3743
|
+
/**
|
|
3744
|
+
* Browser Run。
|
|
3745
|
+
*/
|
|
3746
|
+
type: 'cloud';
|
|
3747
|
+
} | {
|
|
3748
|
+
/**
|
|
3749
|
+
* 自家 Chrome 容器。
|
|
3750
|
+
*/
|
|
3751
|
+
type: 'container';
|
|
3752
|
+
} | {
|
|
3753
|
+
/**
|
|
3754
|
+
* 用户自己的浏览器。
|
|
3755
|
+
*/
|
|
3756
|
+
type: 'byob';
|
|
3757
|
+
/**
|
|
3758
|
+
* 自带浏览器 ID,以 byb_ 开头。
|
|
3759
|
+
*/
|
|
3760
|
+
browser: string;
|
|
3761
|
+
} | {
|
|
3762
|
+
/**
|
|
3763
|
+
* 自带浏览器 ID,type 为 byob 的简写。
|
|
3764
|
+
*/
|
|
3765
|
+
byob: string;
|
|
3766
|
+
};
|
|
3702
3767
|
/**
|
|
3703
3768
|
* 接受但忽略;不能选择区域。
|
|
3704
3769
|
*/
|
|
@@ -3746,9 +3811,9 @@ export type BrowserSessionCreateResult = {
|
|
|
3746
3811
|
*/
|
|
3747
3812
|
region: 'ap-southeast-1';
|
|
3748
3813
|
/**
|
|
3749
|
-
*
|
|
3814
|
+
* 会话经代理链转发的流量字节数(上行与下行之和),容器后端的会话按它计费;Browser Run 和自带浏览器固定为 0,运行中每几分钟更新一次。
|
|
3750
3815
|
*/
|
|
3751
|
-
proxyBytes:
|
|
3816
|
+
proxyBytes: number;
|
|
3752
3817
|
/**
|
|
3753
3818
|
* 会话创建时刻,UTC ISO 8601 时间。
|
|
3754
3819
|
*/
|
|
@@ -3793,6 +3858,41 @@ export type BrowserSessionCreateResult = {
|
|
|
3793
3858
|
* 会话创建入口;api 为 API 创建,connect 为一步连接创建,console 为 Console 创建。
|
|
3794
3859
|
*/
|
|
3795
3860
|
origin: 'api' | 'connect' | 'console';
|
|
3861
|
+
/**
|
|
3862
|
+
* 会话实际使用的浏览器后端:cloud 是云浏览器(Browser Run),container 是我们自己的 Chrome 容器,byob 是用户自己配对的浏览器(browser 为它的 ID)。type 与 kind 同值,type 是公开名称,kind 为兼容旧读者保留。
|
|
3863
|
+
*/
|
|
3864
|
+
source: {
|
|
3865
|
+
/**
|
|
3866
|
+
* 云浏览器会话,固定为 cloud。
|
|
3867
|
+
*/
|
|
3868
|
+
type: 'cloud';
|
|
3869
|
+
/**
|
|
3870
|
+
* 与 type 同值。
|
|
3871
|
+
*/
|
|
3872
|
+
kind: 'cloud';
|
|
3873
|
+
} | {
|
|
3874
|
+
/**
|
|
3875
|
+
* 自家 Chrome 容器会话,固定为 container。
|
|
3876
|
+
*/
|
|
3877
|
+
type: 'container';
|
|
3878
|
+
/**
|
|
3879
|
+
* 与 type 同值。
|
|
3880
|
+
*/
|
|
3881
|
+
kind: 'container';
|
|
3882
|
+
} | {
|
|
3883
|
+
/**
|
|
3884
|
+
* 用户自己配对的浏览器会话,固定为 byob。
|
|
3885
|
+
*/
|
|
3886
|
+
type: 'byob';
|
|
3887
|
+
/**
|
|
3888
|
+
* 与 type 同值。
|
|
3889
|
+
*/
|
|
3890
|
+
kind: 'byob';
|
|
3891
|
+
/**
|
|
3892
|
+
* 自带浏览器 ID,以 byb_ 开头。
|
|
3893
|
+
*/
|
|
3894
|
+
browser: string;
|
|
3895
|
+
};
|
|
3796
3896
|
/**
|
|
3797
3897
|
* 创建这个会话的用户或智能体标识;通过能力 URL 创建、或在引入创建者之前创建的会话省略此字段。
|
|
3798
3898
|
*/
|
|
@@ -3868,7 +3968,7 @@ export type BrowserError = {
|
|
|
3868
3968
|
statusCode: number;
|
|
3869
3969
|
error: string;
|
|
3870
3970
|
message: string;
|
|
3871
|
-
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' | 'CONTEXT_LOCKED' | 'CONTEXT_READ_ONLY' | 'HANDOFF_NOT_PENDING' | 'CONCURRENCY_LIMIT' | 'RATE_LIMITED' | 'INSUFFICIENT_BALANCE' | 'QUOTA_EXHAUSTED' | 'ACCOUNT_SUSPENDED' | 'PROVIDER_UNSUPPORTED' | 'PROVIDER_CAPACITY' | 'PROVIDER_FAILED' | 'SERVICE_UNAVAILABLE' | 'PARENT_NOT_FOUND' | 'INVALID_FILTER' | 'INVALID_PAGE_TOKEN' | 'ACTION_TAB_NOT_FOUND' | 'ACTION_NO_TAB' | 'ACTION_REF_STALE' | 'ACTION_FAILED' | 'ACTION_TIMEOUT' | 'ACTION_RESULT_TOO_LARGE';
|
|
3971
|
+
code: 'INVALID_PARAMS' | 'PERMISSION_DENIED' | 'NOT_IMPLEMENTED' | 'INTERNAL' | 'UNAUTHENTICATED' | 'CONNECT_SIGNATURE_INVALID' | 'SESSION_NOT_FOUND' | 'SESSION_ENDED' | 'SESSION_INVALID_STATE' | 'SESSION_NAME_IN_USE' | 'CONTEXT_NOT_FOUND' | 'BROWSER_OFFLINE' | 'BROWSER_REVOKED' | 'PAIRING_NOT_FOUND' | 'BROWSER_NOT_FOUND' | 'CONTEXT_LOCKED' | 'CONTEXT_READ_ONLY' | 'HANDOFF_NOT_PENDING' | 'CONCURRENCY_LIMIT' | 'RATE_LIMITED' | 'INSUFFICIENT_BALANCE' | 'QUOTA_EXHAUSTED' | 'ACCOUNT_SUSPENDED' | 'PROVIDER_UNSUPPORTED' | 'PROVIDER_CAPACITY' | 'PROVIDER_FAILED' | 'SERVICE_UNAVAILABLE' | 'PARENT_NOT_FOUND' | 'INVALID_FILTER' | 'INVALID_PAGE_TOKEN' | 'ACTION_TAB_NOT_FOUND' | 'ACTION_NO_TAB' | 'ACTION_REF_STALE' | 'ACTION_FAILED' | 'ACTION_TIMEOUT' | 'ACTION_RESULT_TOO_LARGE';
|
|
3872
3972
|
};
|
|
3873
3973
|
export type BrowserSession = {
|
|
3874
3974
|
/**
|
|
@@ -3892,9 +3992,9 @@ export type BrowserSession = {
|
|
|
3892
3992
|
*/
|
|
3893
3993
|
region: 'ap-southeast-1';
|
|
3894
3994
|
/**
|
|
3895
|
-
*
|
|
3995
|
+
* 会话经代理链转发的流量字节数(上行与下行之和),容器后端的会话按它计费;Browser Run 和自带浏览器固定为 0,运行中每几分钟更新一次。
|
|
3896
3996
|
*/
|
|
3897
|
-
proxyBytes:
|
|
3997
|
+
proxyBytes: number;
|
|
3898
3998
|
/**
|
|
3899
3999
|
* 会话创建时刻,UTC ISO 8601 时间。
|
|
3900
4000
|
*/
|
|
@@ -3939,6 +4039,41 @@ export type BrowserSession = {
|
|
|
3939
4039
|
* 会话创建入口;api 为 API 创建,connect 为一步连接创建,console 为 Console 创建。
|
|
3940
4040
|
*/
|
|
3941
4041
|
origin: 'api' | 'connect' | 'console';
|
|
4042
|
+
/**
|
|
4043
|
+
* 会话实际使用的浏览器后端:cloud 是云浏览器(Browser Run),container 是我们自己的 Chrome 容器,byob 是用户自己配对的浏览器(browser 为它的 ID)。type 与 kind 同值,type 是公开名称,kind 为兼容旧读者保留。
|
|
4044
|
+
*/
|
|
4045
|
+
source: {
|
|
4046
|
+
/**
|
|
4047
|
+
* 云浏览器会话,固定为 cloud。
|
|
4048
|
+
*/
|
|
4049
|
+
type: 'cloud';
|
|
4050
|
+
/**
|
|
4051
|
+
* 与 type 同值。
|
|
4052
|
+
*/
|
|
4053
|
+
kind: 'cloud';
|
|
4054
|
+
} | {
|
|
4055
|
+
/**
|
|
4056
|
+
* 自家 Chrome 容器会话,固定为 container。
|
|
4057
|
+
*/
|
|
4058
|
+
type: 'container';
|
|
4059
|
+
/**
|
|
4060
|
+
* 与 type 同值。
|
|
4061
|
+
*/
|
|
4062
|
+
kind: 'container';
|
|
4063
|
+
} | {
|
|
4064
|
+
/**
|
|
4065
|
+
* 用户自己配对的浏览器会话,固定为 byob。
|
|
4066
|
+
*/
|
|
4067
|
+
type: 'byob';
|
|
4068
|
+
/**
|
|
4069
|
+
* 与 type 同值。
|
|
4070
|
+
*/
|
|
4071
|
+
kind: 'byob';
|
|
4072
|
+
/**
|
|
4073
|
+
* 自带浏览器 ID,以 byb_ 开头。
|
|
4074
|
+
*/
|
|
4075
|
+
browser: string;
|
|
4076
|
+
};
|
|
3942
4077
|
/**
|
|
3943
4078
|
* 创建这个会话的用户或智能体标识;通过能力 URL 创建、或在引入创建者之前创建的会话省略此字段。
|
|
3944
4079
|
*/
|
|
@@ -4016,9 +4151,9 @@ export type BrowserSessionGetResult = {
|
|
|
4016
4151
|
*/
|
|
4017
4152
|
region: 'ap-southeast-1';
|
|
4018
4153
|
/**
|
|
4019
|
-
*
|
|
4154
|
+
* 会话经代理链转发的流量字节数(上行与下行之和),容器后端的会话按它计费;Browser Run 和自带浏览器固定为 0,运行中每几分钟更新一次。
|
|
4020
4155
|
*/
|
|
4021
|
-
proxyBytes:
|
|
4156
|
+
proxyBytes: number;
|
|
4022
4157
|
/**
|
|
4023
4158
|
* 会话创建时刻,UTC ISO 8601 时间。
|
|
4024
4159
|
*/
|
|
@@ -4063,6 +4198,41 @@ export type BrowserSessionGetResult = {
|
|
|
4063
4198
|
* 会话创建入口;api 为 API 创建,connect 为一步连接创建,console 为 Console 创建。
|
|
4064
4199
|
*/
|
|
4065
4200
|
origin: 'api' | 'connect' | 'console';
|
|
4201
|
+
/**
|
|
4202
|
+
* 会话实际使用的浏览器后端:cloud 是云浏览器(Browser Run),container 是我们自己的 Chrome 容器,byob 是用户自己配对的浏览器(browser 为它的 ID)。type 与 kind 同值,type 是公开名称,kind 为兼容旧读者保留。
|
|
4203
|
+
*/
|
|
4204
|
+
source: {
|
|
4205
|
+
/**
|
|
4206
|
+
* 云浏览器会话,固定为 cloud。
|
|
4207
|
+
*/
|
|
4208
|
+
type: 'cloud';
|
|
4209
|
+
/**
|
|
4210
|
+
* 与 type 同值。
|
|
4211
|
+
*/
|
|
4212
|
+
kind: 'cloud';
|
|
4213
|
+
} | {
|
|
4214
|
+
/**
|
|
4215
|
+
* 自家 Chrome 容器会话,固定为 container。
|
|
4216
|
+
*/
|
|
4217
|
+
type: 'container';
|
|
4218
|
+
/**
|
|
4219
|
+
* 与 type 同值。
|
|
4220
|
+
*/
|
|
4221
|
+
kind: 'container';
|
|
4222
|
+
} | {
|
|
4223
|
+
/**
|
|
4224
|
+
* 用户自己配对的浏览器会话,固定为 byob。
|
|
4225
|
+
*/
|
|
4226
|
+
type: 'byob';
|
|
4227
|
+
/**
|
|
4228
|
+
* 与 type 同值。
|
|
4229
|
+
*/
|
|
4230
|
+
kind: 'byob';
|
|
4231
|
+
/**
|
|
4232
|
+
* 自带浏览器 ID,以 byb_ 开头。
|
|
4233
|
+
*/
|
|
4234
|
+
browser: string;
|
|
4235
|
+
};
|
|
4066
4236
|
/**
|
|
4067
4237
|
* 创建这个会话的用户或智能体标识;通过能力 URL 创建、或在引入创建者之前创建的会话省略此字段。
|
|
4068
4238
|
*/
|
|
@@ -4257,6 +4427,36 @@ export type BrowserContextCreateResult = {
|
|
|
4257
4427
|
* UTC timestamp when a session last started with this context; absent if it has never been used.
|
|
4258
4428
|
*/
|
|
4259
4429
|
lastUsedAt?: string;
|
|
4430
|
+
/**
|
|
4431
|
+
* 登录态绑定的固定外部代理(只含保管库引用,不含密码);没有绑定时省略。
|
|
4432
|
+
*/
|
|
4433
|
+
proxy?: {
|
|
4434
|
+
/**
|
|
4435
|
+
* 固定为 external:经一个你自己的外部 HTTP 代理出网。
|
|
4436
|
+
*/
|
|
4437
|
+
type: 'external';
|
|
4438
|
+
/**
|
|
4439
|
+
* 代理地址,host:port 或 http://host:port;只支持 HTTP 代理,不接受 socks5:// 等协议,也不接受 localhost 和内网、链路本地地址。
|
|
4440
|
+
*/
|
|
4441
|
+
server: string;
|
|
4442
|
+
/**
|
|
4443
|
+
* 代理用户名;有密码时才能填,填了就必须同时给出密码。
|
|
4444
|
+
*/
|
|
4445
|
+
username?: string;
|
|
4446
|
+
/**
|
|
4447
|
+
* 必须用这种形式:引用保管库里的代理密码,只在连接这个代理的主机时兑换,不会交给网页。登录态里只存引用,传明文 password 返回 400 INVALID_PARAMS。
|
|
4448
|
+
*/
|
|
4449
|
+
password_secret?: {
|
|
4450
|
+
/**
|
|
4451
|
+
* 保存代理密码的保管库 ID,以 vlt_ 开头。
|
|
4452
|
+
*/
|
|
4453
|
+
vault_id: string;
|
|
4454
|
+
/**
|
|
4455
|
+
* 保管库中该密码的密钥 ID(不是密码本身)。
|
|
4456
|
+
*/
|
|
4457
|
+
secret: string;
|
|
4458
|
+
};
|
|
4459
|
+
};
|
|
4260
4460
|
/**
|
|
4261
4461
|
* Empty compatibility field; context encryption keys are held by the server.
|
|
4262
4462
|
*/
|
|
@@ -4317,6 +4517,150 @@ export type BrowserContext = {
|
|
|
4317
4517
|
* UTC timestamp when a session last started with this context; absent if it has never been used.
|
|
4318
4518
|
*/
|
|
4319
4519
|
lastUsedAt?: string;
|
|
4520
|
+
/**
|
|
4521
|
+
* 登录态绑定的固定外部代理(只含保管库引用,不含密码);没有绑定时省略。
|
|
4522
|
+
*/
|
|
4523
|
+
proxy?: {
|
|
4524
|
+
/**
|
|
4525
|
+
* 固定为 external:经一个你自己的外部 HTTP 代理出网。
|
|
4526
|
+
*/
|
|
4527
|
+
type: 'external';
|
|
4528
|
+
/**
|
|
4529
|
+
* 代理地址,host:port 或 http://host:port;只支持 HTTP 代理,不接受 socks5:// 等协议,也不接受 localhost 和内网、链路本地地址。
|
|
4530
|
+
*/
|
|
4531
|
+
server: string;
|
|
4532
|
+
/**
|
|
4533
|
+
* 代理用户名;有密码时才能填,填了就必须同时给出密码。
|
|
4534
|
+
*/
|
|
4535
|
+
username?: string;
|
|
4536
|
+
/**
|
|
4537
|
+
* 必须用这种形式:引用保管库里的代理密码,只在连接这个代理的主机时兑换,不会交给网页。登录态里只存引用,传明文 password 返回 400 INVALID_PARAMS。
|
|
4538
|
+
*/
|
|
4539
|
+
password_secret?: {
|
|
4540
|
+
/**
|
|
4541
|
+
* 保存代理密码的保管库 ID,以 vlt_ 开头。
|
|
4542
|
+
*/
|
|
4543
|
+
vault_id: string;
|
|
4544
|
+
/**
|
|
4545
|
+
* 保管库中该密码的密钥 ID(不是密码本身)。
|
|
4546
|
+
*/
|
|
4547
|
+
secret: string;
|
|
4548
|
+
};
|
|
4549
|
+
};
|
|
4550
|
+
};
|
|
4551
|
+
export type BrowserByobPairing = {
|
|
4552
|
+
/**
|
|
4553
|
+
* 8 位配对码,一次性、10 分钟内有效;它是秘密,只交给要配对的那个浏览器的用户。
|
|
4554
|
+
*/
|
|
4555
|
+
code: string;
|
|
4556
|
+
/**
|
|
4557
|
+
* 配对码失效的时刻,UTC ISO 8601 时间。
|
|
4558
|
+
*/
|
|
4559
|
+
expires_at: string;
|
|
4560
|
+
};
|
|
4561
|
+
export type BrowserByobBrowser = {
|
|
4562
|
+
/**
|
|
4563
|
+
* 对象类型,固定为 byob_browser。
|
|
4564
|
+
*/
|
|
4565
|
+
object: 'byob_browser';
|
|
4566
|
+
/**
|
|
4567
|
+
* 自带浏览器 ID,以 byb_ 开头;使用配对认领或列出自带浏览器返回的 id。
|
|
4568
|
+
*/
|
|
4569
|
+
id: string;
|
|
4570
|
+
/**
|
|
4571
|
+
* 浏览器的显示名称,配对时由扩展上报,1–80 个字符;可通过更新修改。
|
|
4572
|
+
*/
|
|
4573
|
+
name: string;
|
|
4574
|
+
/**
|
|
4575
|
+
* 这个自带浏览器的种类,配对时由扩展上报。
|
|
4576
|
+
*/
|
|
4577
|
+
browser: 'chrome' | 'edge';
|
|
4578
|
+
/**
|
|
4579
|
+
* 浏览器版本号,配对时由扩展上报。
|
|
4580
|
+
*/
|
|
4581
|
+
version: string;
|
|
4582
|
+
/**
|
|
4583
|
+
* 操作系统,配对时由扩展上报。
|
|
4584
|
+
*/
|
|
4585
|
+
os: string;
|
|
4586
|
+
/**
|
|
4587
|
+
* 配对用的扩展 ID。
|
|
4588
|
+
*/
|
|
4589
|
+
extension_id: string;
|
|
4590
|
+
/**
|
|
4591
|
+
* 扩展的连接当前是否在线;连接对象上线之前固定为 false。
|
|
4592
|
+
*/
|
|
4593
|
+
online: boolean;
|
|
4594
|
+
/**
|
|
4595
|
+
* 扩展最近一次被看到在线的时刻,UTC ISO 8601 时间。
|
|
4596
|
+
*/
|
|
4597
|
+
last_seen_at: string | null;
|
|
4598
|
+
/**
|
|
4599
|
+
* 发起配对的用户标识;浏览器属于组织,这里只记录是谁配的。
|
|
4600
|
+
*/
|
|
4601
|
+
created_by: string | null;
|
|
4602
|
+
/**
|
|
4603
|
+
* 浏览器完成配对的时刻,UTC ISO 8601 时间。
|
|
4604
|
+
*/
|
|
4605
|
+
created_at: string;
|
|
4606
|
+
/**
|
|
4607
|
+
* 组织断开这个浏览器的时刻,UTC ISO 8601 时间;未断开时为 null。
|
|
4608
|
+
*/
|
|
4609
|
+
revoked_at: string | null;
|
|
4610
|
+
};
|
|
4611
|
+
export type BrowserByobPairingView = {
|
|
4612
|
+
/**
|
|
4613
|
+
* 发起配对的组织名称,扩展的授权页显示它。
|
|
4614
|
+
*/
|
|
4615
|
+
organization_name: string;
|
|
4616
|
+
/**
|
|
4617
|
+
* 发起配对的用户标识。
|
|
4618
|
+
*/
|
|
4619
|
+
created_by: string | null;
|
|
4620
|
+
/**
|
|
4621
|
+
* 配对码失效的时刻,UTC ISO 8601 时间。
|
|
4622
|
+
*/
|
|
4623
|
+
expires_at: string;
|
|
4624
|
+
};
|
|
4625
|
+
export type BrowserByobClaim = {
|
|
4626
|
+
/**
|
|
4627
|
+
* 要登记的浏览器种类,只支持 Chrome 和 Edge。
|
|
4628
|
+
*/
|
|
4629
|
+
browser: 'chrome' | 'edge';
|
|
4630
|
+
/**
|
|
4631
|
+
* 浏览器版本号,1–64 个字符。
|
|
4632
|
+
*/
|
|
4633
|
+
version: string;
|
|
4634
|
+
/**
|
|
4635
|
+
* 操作系统,1–64 个字符。
|
|
4636
|
+
*/
|
|
4637
|
+
os: string;
|
|
4638
|
+
/**
|
|
4639
|
+
* 浏览器的显示名称,1–80 个字符。
|
|
4640
|
+
*/
|
|
4641
|
+
name: string;
|
|
4642
|
+
/**
|
|
4643
|
+
* 扩展用 WebCrypto 生成的不可导出 ECDSA P-256 密钥对的公钥;平台只保存公钥。
|
|
4644
|
+
*/
|
|
4645
|
+
public_key: string;
|
|
4646
|
+
/**
|
|
4647
|
+
* 扩展 ID,1–64 个字符。
|
|
4648
|
+
*/
|
|
4649
|
+
extension_id: string;
|
|
4650
|
+
/**
|
|
4651
|
+
* 扩展保存的随机安装密钥,8–128 个字母、数字、_ 或 -;同一个 profile 带同一密钥重新配对会复用原来的浏览器,平台只保存它的哈希。省略则每次认领都是新浏览器。
|
|
4652
|
+
*/
|
|
4653
|
+
install_key?: string;
|
|
4654
|
+
};
|
|
4655
|
+
export type BrowserByobClaimResult = {
|
|
4656
|
+
/**
|
|
4657
|
+
* 自带浏览器 ID,以 byb_ 开头;使用配对认领或列出自带浏览器返回的 id。
|
|
4658
|
+
*/
|
|
4659
|
+
browser_id: string;
|
|
4660
|
+
/**
|
|
4661
|
+
* 扩展要拨入的 WSS 地址,属于这个浏览器自己的链接主机;连接时用配对时的私钥签名完成认证,地址本身不是凭证。
|
|
4662
|
+
*/
|
|
4663
|
+
link_url: string;
|
|
4320
4664
|
};
|
|
4321
4665
|
export type BrowserStreamMessage = {
|
|
4322
4666
|
event: 'snapshot';
|
|
@@ -34756,6 +35100,14 @@ export type SandboxSandboxNetworkConfig = {
|
|
|
34756
35100
|
rules?: {
|
|
34757
35101
|
[key: string]: Array<SandboxSandboxNetworkRule>;
|
|
34758
35102
|
};
|
|
35103
|
+
/**
|
|
35104
|
+
* Own face, persistent sandboxes only (autoPause: true, or ephemeral: false): true gives the sandbox one fixed public egress IP for its whole life, held through pause and resume and released when the sandbox is deleted. Without it the egress IP is not stable: it changes when a spot machine is reclaimed, when a paused machine starts again, and when the machine is rebuilt. An ephemeral sandbox returns INVALID_PARAMS; the E2B face refuses the field; it is placed only on capacity that declares static IPs, and without such capacity the create does not start (it never falls back to a changing IP). Billed as the usage item sandbox:public_ip:hours from allocation to release, paused time included, plus outbound traffic as usual.
|
|
35105
|
+
*/
|
|
35106
|
+
staticEgressIp?: boolean;
|
|
35107
|
+
/**
|
|
35108
|
+
* Own face, read-only: the fixed public egress IP of a sandbox created with staticEgressIp: true, present once the machine has bound it; add this address to the IP allowlist of the service you call (for example a WeCom trusted IP list). Absent on a sandbox that did not ask for a static IP, because its public address can change.
|
|
35109
|
+
*/
|
|
35110
|
+
readonly egressIp?: string;
|
|
34759
35111
|
};
|
|
34760
35112
|
/**
|
|
34761
35113
|
* Sandbox lifecycle policy returned by sandbox info.
|
|
@@ -40029,6 +40381,10 @@ export type DevopsUnitGit = {
|
|
|
40029
40381
|
* The ref holding the unit's work in progress, or null when none was recorded.
|
|
40030
40382
|
*/
|
|
40031
40383
|
wipRef: string | null;
|
|
40384
|
+
/**
|
|
40385
|
+
* The branch's head on the remote as of the last fetch: the value units push wants as expectedHead. Absent before the first observation or when the branch has no upstream. Call fetch first when someone else may have pushed.
|
|
40386
|
+
*/
|
|
40387
|
+
remoteHead?: string;
|
|
40032
40388
|
/**
|
|
40033
40389
|
* RFC 3339 UTC time these facts were observed, or null before the first observation.
|
|
40034
40390
|
*/
|
|
@@ -47892,7 +48248,7 @@ export type DevopsPlannedSkip = {
|
|
|
47892
48248
|
/**
|
|
47893
48249
|
* Why it is left out, which is what tells a deliberate skip apart from an oversight.
|
|
47894
48250
|
*/
|
|
47895
|
-
reason: 'unchanged' | 'newer_checkpoint' | 'not_requested' | 'callee_excluded' | 'artifact_identical';
|
|
48251
|
+
reason: 'unchanged' | 'newer_checkpoint' | 'not_requested' | 'callee_excluded' | 'not_deployed_upstream' | 'artifact_identical';
|
|
47896
48252
|
};
|
|
47897
48253
|
/**
|
|
47898
48254
|
* The migrations one target has pending, as the plan found them.
|
|
@@ -50747,6 +51103,58 @@ export type UpdateMediaPipelineRequestWritable = {
|
|
|
50747
51103
|
* Models to use for completion
|
|
50748
51104
|
*/
|
|
50749
51105
|
export type OpenaiChatModelNamesWritable = Array<OpenaiModelName & unknown>;
|
|
51106
|
+
export type SandboxSandboxDetailWritable = {
|
|
51107
|
+
/**
|
|
51108
|
+
* Identifier of the template from which is the sandbox created
|
|
51109
|
+
*/
|
|
51110
|
+
templateID: string;
|
|
51111
|
+
/**
|
|
51112
|
+
* Alias of the template
|
|
51113
|
+
*/
|
|
51114
|
+
alias?: string;
|
|
51115
|
+
/**
|
|
51116
|
+
* Identifier of the sandbox
|
|
51117
|
+
*/
|
|
51118
|
+
sandboxID: string;
|
|
51119
|
+
/**
|
|
51120
|
+
* Identifier of the client
|
|
51121
|
+
*
|
|
51122
|
+
* @deprecated
|
|
51123
|
+
*/
|
|
51124
|
+
clientID: string;
|
|
51125
|
+
/**
|
|
51126
|
+
* Time when the sandbox was started
|
|
51127
|
+
*/
|
|
51128
|
+
startedAt: string;
|
|
51129
|
+
/**
|
|
51130
|
+
* Time when the sandbox will expire
|
|
51131
|
+
*/
|
|
51132
|
+
endAt: string;
|
|
51133
|
+
envdVersion: SandboxEnvdVersion;
|
|
51134
|
+
/**
|
|
51135
|
+
* Access token used for envd communication
|
|
51136
|
+
*/
|
|
51137
|
+
envdAccessToken?: string;
|
|
51138
|
+
/**
|
|
51139
|
+
* Whether internet access was explicitly enabled or disabled for the sandbox. Null means it was not explicitly set.
|
|
51140
|
+
*/
|
|
51141
|
+
allowInternetAccess?: boolean;
|
|
51142
|
+
/**
|
|
51143
|
+
* Base domain where the sandbox traffic is accessible
|
|
51144
|
+
*/
|
|
51145
|
+
domain?: string;
|
|
51146
|
+
cpuCount: SandboxCpuCount;
|
|
51147
|
+
memoryMB: SandboxMemoryMb;
|
|
51148
|
+
diskSizeMB: SandboxDiskSizeMb;
|
|
51149
|
+
metadata?: SandboxSandboxMetadata;
|
|
51150
|
+
state: SandboxSandboxState;
|
|
51151
|
+
network?: SandboxSandboxNetworkConfigWritable;
|
|
51152
|
+
lifecycle?: SandboxSandboxLifecycle;
|
|
51153
|
+
/**
|
|
51154
|
+
* Volumes mounted into the sandbox.
|
|
51155
|
+
*/
|
|
51156
|
+
volumeMounts?: Array<SandboxSandboxVolumeMount>;
|
|
51157
|
+
};
|
|
50750
51158
|
/**
|
|
50751
51159
|
* Free-form string key/value pairs stored with the session, changed through sessions.update patch semantics.
|
|
50752
51160
|
*/
|
|
@@ -51326,6 +51734,94 @@ export type MediaSemanticSearchResultWritable = {
|
|
|
51326
51734
|
*/
|
|
51327
51735
|
not_ready_excluded: number;
|
|
51328
51736
|
};
|
|
51737
|
+
/**
|
|
51738
|
+
* Sandbox creation request. All system communication with the sandbox is always secured; the template's envd version must support secured access.
|
|
51739
|
+
*/
|
|
51740
|
+
export type SandboxNewSandboxV2Writable = {
|
|
51741
|
+
/**
|
|
51742
|
+
* Identifier of the required template
|
|
51743
|
+
*/
|
|
51744
|
+
templateID: string;
|
|
51745
|
+
/**
|
|
51746
|
+
* Lifetime of the new sandbox in seconds. Defaults to 300 seconds when omitted.
|
|
51747
|
+
*/
|
|
51748
|
+
timeout?: number;
|
|
51749
|
+
/**
|
|
51750
|
+
* Lifecycle declaration on the E2B-compatible face. true creates a persistent sandbox that pauses at its timeout and can be resumed; false or absent creates an ephemeral sandbox that ends at its timeout and keeps nothing. Keep true only for long-lived computers. The own face declares with ephemeral instead.
|
|
51751
|
+
*/
|
|
51752
|
+
autoPause?: boolean;
|
|
51753
|
+
/**
|
|
51754
|
+
* Controls the snapshot kind taken when the sandbox auto-pauses on timeout (only relevant when autoPause is true). When false, the auto-pause drops the in-memory state and persists only the filesystem (a filesystem-only snapshot); resuming it cold-boots (reboots) the sandbox from disk. Such a snapshot cannot be auto-resumed by traffic and must be resumed explicitly, so it cannot be combined with autoResume. Defaults to true (full memory snapshot).
|
|
51755
|
+
*/
|
|
51756
|
+
autoPauseMemory?: boolean;
|
|
51757
|
+
autoResume?: SandboxSandboxAutoResumeConfig;
|
|
51758
|
+
/**
|
|
51759
|
+
* Allow sandbox to access the internet. When set to false, it behaves the same as specifying denyOut to 0.0.0.0/0 in the network config.
|
|
51760
|
+
*/
|
|
51761
|
+
allow_internet_access?: boolean;
|
|
51762
|
+
network?: SandboxSandboxNetworkConfigWritable;
|
|
51763
|
+
metadata?: SandboxSandboxMetadata;
|
|
51764
|
+
envVars?: SandboxEnvVars;
|
|
51765
|
+
mcp?: SandboxMcp;
|
|
51766
|
+
iam?: SandboxSandboxIam;
|
|
51767
|
+
/**
|
|
51768
|
+
* Volumes to mount into the sandbox, each with the volume name and the path inside the sandbox.
|
|
51769
|
+
*/
|
|
51770
|
+
volumeMounts?: Array<SandboxSandboxVolumeMount>;
|
|
51771
|
+
/**
|
|
51772
|
+
* Own face, required unless sku is named: true for an ephemeral sandbox (ends at its timeout, never pauses, cannot be snapshotted), false for a persistent one (pauses, resumes, snapshots, mounts volumes). Leaving it out returns INVALID_PARAMS.
|
|
51773
|
+
*/
|
|
51774
|
+
ephemeral?: boolean;
|
|
51775
|
+
/**
|
|
51776
|
+
* Own face: the machine size, a SKU id such as base-2c4g or, for an android phone, android-2c4g. Omitted, the template's default size is used.
|
|
51777
|
+
*/
|
|
51778
|
+
size?: string;
|
|
51779
|
+
/**
|
|
51780
|
+
* Own face: a display name for the sandbox, 1 to 64 characters. Omitted, one is generated from the template.
|
|
51781
|
+
*/
|
|
51782
|
+
name?: string;
|
|
51783
|
+
/**
|
|
51784
|
+
* Own face, android phones only: keep the create open until the phone is running or 55 seconds have passed since the request arrived; running out is not an error and answers the state reached.
|
|
51785
|
+
*/
|
|
51786
|
+
waitForReady?: boolean;
|
|
51787
|
+
/**
|
|
51788
|
+
* Own face: what happens at the timeout. pause needs ephemeral: false; must agree with autoPause when both are sent.
|
|
51789
|
+
*/
|
|
51790
|
+
onExpire?: 'kill' | 'pause';
|
|
51791
|
+
/**
|
|
51792
|
+
* Own face, persistent sandboxes only: pause after this many milliseconds without activity; null turns the idle pause off.
|
|
51793
|
+
*/
|
|
51794
|
+
idleTimeout?: number;
|
|
51795
|
+
/**
|
|
51796
|
+
* Own face, persistent sandboxes only: whose activity resets idleTimeout. traffic (default) counts data-plane calls, preview traffic and live processes; caller counts only your own control-plane calls.
|
|
51797
|
+
*/
|
|
51798
|
+
idleActivity?: 'traffic' | 'caller';
|
|
51799
|
+
/**
|
|
51800
|
+
* Own face: a demand-profile SKU <kind>.<image>.<size>, such as run.document.medium (someone waits; starts fast), job.base.large (background work that must not be cut off), batch.base.large (retried work that may be reclaimed) or computer.base.medium (keeps its disk). It fixes ephemeral, interruptible, size and the template, so those may be left out; any of them you also send must agree with it, otherwise the create fails with INVALID_PARAMS naming the field. The sandbox answers it back as sku and as the read-only label praxis.sku.
|
|
51801
|
+
*/
|
|
51802
|
+
sku?: string;
|
|
51803
|
+
/**
|
|
51804
|
+
* Own face: the kind of sandbox you need, when you do not name a full sku. The sandbox completes <kind>.<image>.<size> from the template you start (its family, or custom for your own environment or snapshot) and the size you send, or medium. run is for work someone waits for (starts fast), job is background work that must not be cut off, batch is retried work that may be reclaimed (spot capacity), computer keeps its disk, and compat is the E2B-compatible persistent series. The kind fixes ephemeral and interruptible, so leave those out; if you also send them, or a sku of another kind, the create fails with INVALID_PARAMS naming the field. The light template always starts the light shell, whatever the kind says.
|
|
51805
|
+
*/
|
|
51806
|
+
kind?: 'run' | 'job' | 'batch' | 'computer' | 'compat';
|
|
51807
|
+
/**
|
|
51808
|
+
* Own face, ephemeral sandboxes only: true says this sandbox may be reclaimed while it runs (a build or test you retry), which lets it run on cheaper spot capacity. A reclaimed sandbox ends with PROVIDER_FAILED; create it again. Absent or false keeps the usual capacity.
|
|
51809
|
+
*/
|
|
51810
|
+
interruptible?: boolean;
|
|
51811
|
+
/**
|
|
51812
|
+
* Own face, persistent sandboxes only: what happens when the provider loses the machine. fail (default) ends the sandbox; rebuild starts a new machine under the same id with its state lost.
|
|
51813
|
+
*/
|
|
51814
|
+
onLoss?: 'fail' | 'rebuild';
|
|
51815
|
+
/**
|
|
51816
|
+
* Own face: up to eight absolute paths to keep when the sandbox ends; each is packed as .tar.gz into File and listed on the killed event.
|
|
51817
|
+
*/
|
|
51818
|
+
outputs?: Array<{
|
|
51819
|
+
/**
|
|
51820
|
+
* Absolute path of a directory or file inside the sandbox.
|
|
51821
|
+
*/
|
|
51822
|
+
path: string;
|
|
51823
|
+
}>;
|
|
51824
|
+
};
|
|
51329
51825
|
/**
|
|
51330
51826
|
* Arguments the model passed to the tool.
|
|
51331
51827
|
*/
|
|
@@ -51404,6 +51900,43 @@ export type AnthropicAnonymous204Writable = {
|
|
|
51404
51900
|
export type AnthropicAnonymous206Writable = {
|
|
51405
51901
|
[key: string]: unknown;
|
|
51406
51902
|
};
|
|
51903
|
+
/**
|
|
51904
|
+
* Network policy of the sandbox: public access, egress allow and deny lists and proxy.
|
|
51905
|
+
*/
|
|
51906
|
+
export type SandboxSandboxNetworkConfigWritable = {
|
|
51907
|
+
/**
|
|
51908
|
+
* Specify if the sandbox URLs should be accessible only with authentication.
|
|
51909
|
+
*/
|
|
51910
|
+
allowPublicTraffic?: boolean;
|
|
51911
|
+
/**
|
|
51912
|
+
* List of allowed destinations for egress traffic. Each entry can be a CIDR block (e.g. "8.8.8.8/32"), a bare IP address (e.g. "8.8.8.8"), or a domain name (e.g. "example.com", "*.example.com"). Allowed entries always take precedence over denied entries.
|
|
51913
|
+
*/
|
|
51914
|
+
allowOut?: Array<string>;
|
|
51915
|
+
/**
|
|
51916
|
+
* List of denied CIDR blocks or IP addresses for egress traffic. Domain names are not supported for deny rules.
|
|
51917
|
+
*/
|
|
51918
|
+
denyOut?: Array<string>;
|
|
51919
|
+
egressProxy?: SandboxSandboxEgressProxyConfig;
|
|
51920
|
+
/**
|
|
51921
|
+
* Specify host mask which will be used for all sandbox requests
|
|
51922
|
+
*/
|
|
51923
|
+
maskRequestHost?: string;
|
|
51924
|
+
/**
|
|
51925
|
+
* Unlike E2B, network.httpsPorts is rejected; omit it when creating a sandbox.
|
|
51926
|
+
*/
|
|
51927
|
+
httpsPorts?: Array<number>;
|
|
51928
|
+
/**
|
|
51929
|
+
* Per-domain transform rules applied to matching outbound HTTPS requests. Keys may be exact DNS names (for example, "api.example.com") or a leading wildcard (for example, "*.example.com"), and are normalized to lowercase on write. Wildcards match subdomains at any depth but not the apex domain; a bare "*" is invalid. Exact rules take precedence, followed by the longest matching wildcard suffix, and matching rule sets are not merged. Broad wildcards such as "*.com" are allowed and may expose transformed credentials to every matching destination the sandbox contacts. Rules do not grant network access; configure allowOut separately to permit the destination.
|
|
51930
|
+
*
|
|
51931
|
+
*/
|
|
51932
|
+
rules?: {
|
|
51933
|
+
[key: string]: Array<SandboxSandboxNetworkRule>;
|
|
51934
|
+
};
|
|
51935
|
+
/**
|
|
51936
|
+
* Own face, persistent sandboxes only (autoPause: true, or ephemeral: false): true gives the sandbox one fixed public egress IP for its whole life, held through pause and resume and released when the sandbox is deleted. Without it the egress IP is not stable: it changes when a spot machine is reclaimed, when a paused machine starts again, and when the machine is rebuilt. An ephemeral sandbox returns INVALID_PARAMS; the E2B face refuses the field; it is placed only on capacity that declares static IPs, and without such capacity the create does not start (it never falls back to a changing IP). Billed as the usage item sandbox:public_ip:hours from allocation to release, paused time included, plus outbound traffic as usual.
|
|
51937
|
+
*/
|
|
51938
|
+
staticEgressIp?: boolean;
|
|
51939
|
+
};
|
|
51407
51940
|
/**
|
|
51408
51941
|
* Free-form string key/value pairs.
|
|
51409
51942
|
*/
|
|
@@ -54131,6 +54664,86 @@ export type ListAgentInboxLettersResponses = {
|
|
|
54131
54664
|
};
|
|
54132
54665
|
};
|
|
54133
54666
|
export type ListAgentInboxLettersResponse = ListAgentInboxLettersResponses[keyof ListAgentInboxLettersResponses];
|
|
54667
|
+
export type ListAgentDeviceLocalSessionsData = {
|
|
54668
|
+
body?: never;
|
|
54669
|
+
path: {
|
|
54670
|
+
/**
|
|
54671
|
+
* 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_….
|
|
54672
|
+
*/
|
|
54673
|
+
agent_id: string;
|
|
54674
|
+
/**
|
|
54675
|
+
* The paired desktop device (byd_ and 26 hex characters) whose sessions to list; you must be the person who paired it.
|
|
54676
|
+
*/
|
|
54677
|
+
device_id: string;
|
|
54678
|
+
};
|
|
54679
|
+
query: {
|
|
54680
|
+
/**
|
|
54681
|
+
* The absolute directory on the device, exactly as the device registered it and bound it to this agent.
|
|
54682
|
+
*/
|
|
54683
|
+
cwd: string;
|
|
54684
|
+
/**
|
|
54685
|
+
* The next_cursor of the previous page; leave it out for the first page.
|
|
54686
|
+
*/
|
|
54687
|
+
cursor?: string;
|
|
54688
|
+
};
|
|
54689
|
+
url: '/agent/v1/agents/{agent_id}/devices/{device_id}/local-sessions';
|
|
54690
|
+
};
|
|
54691
|
+
export type ListAgentDeviceLocalSessionsErrors = {
|
|
54692
|
+
/**
|
|
54693
|
+
* 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.
|
|
54694
|
+
*/
|
|
54695
|
+
400: unknown;
|
|
54696
|
+
/**
|
|
54697
|
+
* Authenticate with your own API key or a console session; an agent's or robot's credential cannot list a person's device.
|
|
54698
|
+
*/
|
|
54699
|
+
401: unknown;
|
|
54700
|
+
/**
|
|
54701
|
+
* 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.
|
|
54702
|
+
*/
|
|
54703
|
+
403: AgentError;
|
|
54704
|
+
/**
|
|
54705
|
+
* AGENT_NOT_FOUND: no agent with this reference exists in your organization; list agents with agents.list.
|
|
54706
|
+
*/
|
|
54707
|
+
404: unknown;
|
|
54708
|
+
/**
|
|
54709
|
+
* 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.
|
|
54710
|
+
*/
|
|
54711
|
+
503: unknown;
|
|
54712
|
+
};
|
|
54713
|
+
export type ListAgentDeviceLocalSessionsError = ListAgentDeviceLocalSessionsErrors[keyof ListAgentDeviceLocalSessionsErrors];
|
|
54714
|
+
export type ListAgentDeviceLocalSessionsResponses = {
|
|
54715
|
+
/**
|
|
54716
|
+
* One page of the device's sessions for that directory, newest first.
|
|
54717
|
+
*/
|
|
54718
|
+
200: {
|
|
54719
|
+
/**
|
|
54720
|
+
* The sessions of this page; empty when the directory has none.
|
|
54721
|
+
*/
|
|
54722
|
+
data: Array<{
|
|
54723
|
+
/**
|
|
54724
|
+
* The Claude Code session id on the device; pass it as runtime.resume_session_id when creating a session to continue it.
|
|
54725
|
+
*/
|
|
54726
|
+
id: string;
|
|
54727
|
+
/**
|
|
54728
|
+
* The session's title as Claude Code shows it; empty when it has none.
|
|
54729
|
+
*/
|
|
54730
|
+
title: string;
|
|
54731
|
+
/**
|
|
54732
|
+
* When the session was last written to, RFC 3339; sessions are ordered newest first.
|
|
54733
|
+
*/
|
|
54734
|
+
updated_at: string | null;
|
|
54735
|
+
/**
|
|
54736
|
+
* The directory the session ran in on the device.
|
|
54737
|
+
*/
|
|
54738
|
+
cwd: string | null;
|
|
54739
|
+
}>;
|
|
54740
|
+
/**
|
|
54741
|
+
* Pass as cursor for the next page; null on the last page.
|
|
54742
|
+
*/
|
|
54743
|
+
next_cursor: string | null;
|
|
54744
|
+
};
|
|
54745
|
+
};
|
|
54746
|
+
export type ListAgentDeviceLocalSessionsResponse = ListAgentDeviceLocalSessionsResponses[keyof ListAgentDeviceLocalSessionsResponses];
|
|
54134
54747
|
export type CreateAgentLoginIntentData = {
|
|
54135
54748
|
body?: never;
|
|
54136
54749
|
path?: never;
|
|
@@ -55031,6 +55644,15 @@ export type ApplyAgentVersionResponses = {
|
|
|
55031
55644
|
name: string;
|
|
55032
55645
|
}>;
|
|
55033
55646
|
};
|
|
55647
|
+
/**
|
|
55648
|
+
* 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.
|
|
55649
|
+
*/
|
|
55650
|
+
browser?: {
|
|
55651
|
+
/**
|
|
55652
|
+
* A paired browser's id (byb_ and 26 lowercase hex characters), from browser.byob.browsers.list.
|
|
55653
|
+
*/
|
|
55654
|
+
byob: string;
|
|
55655
|
+
} | null;
|
|
55034
55656
|
/**
|
|
55035
55657
|
* 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.
|
|
55036
55658
|
*/
|
|
@@ -55416,7 +56038,7 @@ export type ApplyAgentVersionResponses = {
|
|
|
55416
56038
|
*/
|
|
55417
56039
|
environment_id?: string | null;
|
|
55418
56040
|
/**
|
|
55419
|
-
* Default vaults of this service or assume agent version: the vault_ids new
|
|
56041
|
+
* 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.
|
|
55420
56042
|
*/
|
|
55421
56043
|
vault_ids?: Array<string>;
|
|
55422
56044
|
/**
|
|
@@ -56282,6 +56904,15 @@ export type UnarchiveAgentResponses = {
|
|
|
56282
56904
|
name: string;
|
|
56283
56905
|
}>;
|
|
56284
56906
|
};
|
|
56907
|
+
/**
|
|
56908
|
+
* 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.
|
|
56909
|
+
*/
|
|
56910
|
+
browser?: {
|
|
56911
|
+
/**
|
|
56912
|
+
* A paired browser's id (byb_ and 26 lowercase hex characters), from browser.byob.browsers.list.
|
|
56913
|
+
*/
|
|
56914
|
+
byob: string;
|
|
56915
|
+
} | null;
|
|
56285
56916
|
/**
|
|
56286
56917
|
* 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.
|
|
56287
56918
|
*/
|
|
@@ -56667,7 +57298,7 @@ export type UnarchiveAgentResponses = {
|
|
|
56667
57298
|
*/
|
|
56668
57299
|
environment_id?: string | null;
|
|
56669
57300
|
/**
|
|
56670
|
-
* Default vaults of this service or assume agent version: the vault_ids new
|
|
57301
|
+
* 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.
|
|
56671
57302
|
*/
|
|
56672
57303
|
vault_ids?: Array<string>;
|
|
56673
57304
|
/**
|
|
@@ -59136,9 +59767,13 @@ export type ComputersRetrieveResponse = ComputersRetrieveResponses[keyof Compute
|
|
|
59136
59767
|
export type ComputersUpdateData = {
|
|
59137
59768
|
body: {
|
|
59138
59769
|
/**
|
|
59139
|
-
*
|
|
59770
|
+
* New display name, 1 to 255 characters after trimming. Omit to keep the current name.
|
|
59140
59771
|
*/
|
|
59141
|
-
name
|
|
59772
|
+
name?: string;
|
|
59773
|
+
/**
|
|
59774
|
+
* 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.
|
|
59775
|
+
*/
|
|
59776
|
+
environment_id?: string | null;
|
|
59142
59777
|
};
|
|
59143
59778
|
path: {
|
|
59144
59779
|
/**
|
|
@@ -61308,7 +61943,7 @@ export type ComputersFilesConvertResponse = ComputersFilesConvertResponses[keyof
|
|
|
61308
61943
|
export type ConnectComputerData = {
|
|
61309
61944
|
body?: {
|
|
61310
61945
|
/**
|
|
61311
|
-
*
|
|
61946
|
+
* Accepted for compatibility and ignored: light and heavy both reach the same machine, because a Computer is one machine. Omit it.
|
|
61312
61947
|
*/
|
|
61313
61948
|
need?: 'light' | 'heavy';
|
|
61314
61949
|
};
|
|
@@ -68916,13 +69551,17 @@ export type BrowserListSessionsErrors = {
|
|
|
68916
69551
|
*/
|
|
68917
69552
|
403: BrowserError;
|
|
68918
69553
|
/**
|
|
68919
|
-
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
69554
|
+
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
68920
69555
|
*/
|
|
68921
69556
|
404: BrowserError;
|
|
68922
69557
|
/**
|
|
68923
69558
|
* SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
68924
69559
|
*/
|
|
68925
69560
|
409: BrowserError;
|
|
69561
|
+
/**
|
|
69562
|
+
* BROWSER_REVOKED
|
|
69563
|
+
*/
|
|
69564
|
+
410: BrowserError;
|
|
68926
69565
|
/**
|
|
68927
69566
|
* ACTION_RESULT_TOO_LARGE
|
|
68928
69567
|
*/
|
|
@@ -68944,7 +69583,7 @@ export type BrowserListSessionsErrors = {
|
|
|
68944
69583
|
*/
|
|
68945
69584
|
502: BrowserError;
|
|
68946
69585
|
/**
|
|
68947
|
-
* SERVICE_UNAVAILABLE
|
|
69586
|
+
* BROWSER_OFFLINE / SERVICE_UNAVAILABLE
|
|
68948
69587
|
*/
|
|
68949
69588
|
503: BrowserError;
|
|
68950
69589
|
/**
|
|
@@ -68993,13 +69632,17 @@ export type BrowserCreateSessionErrors = {
|
|
|
68993
69632
|
*/
|
|
68994
69633
|
403: BrowserError;
|
|
68995
69634
|
/**
|
|
68996
|
-
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
69635
|
+
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
68997
69636
|
*/
|
|
68998
69637
|
404: BrowserError;
|
|
68999
69638
|
/**
|
|
69000
69639
|
* SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
69001
69640
|
*/
|
|
69002
69641
|
409: BrowserError;
|
|
69642
|
+
/**
|
|
69643
|
+
* BROWSER_REVOKED
|
|
69644
|
+
*/
|
|
69645
|
+
410: BrowserError;
|
|
69003
69646
|
/**
|
|
69004
69647
|
* ACTION_RESULT_TOO_LARGE
|
|
69005
69648
|
*/
|
|
@@ -69021,7 +69664,7 @@ export type BrowserCreateSessionErrors = {
|
|
|
69021
69664
|
*/
|
|
69022
69665
|
502: BrowserError;
|
|
69023
69666
|
/**
|
|
69024
|
-
* SERVICE_UNAVAILABLE
|
|
69667
|
+
* BROWSER_OFFLINE / SERVICE_UNAVAILABLE
|
|
69025
69668
|
*/
|
|
69026
69669
|
503: BrowserError;
|
|
69027
69670
|
/**
|
|
@@ -69075,85 +69718,7 @@ export type BrowserGetSessionErrors = {
|
|
|
69075
69718
|
*/
|
|
69076
69719
|
403: BrowserError;
|
|
69077
69720
|
/**
|
|
69078
|
-
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
69079
|
-
*/
|
|
69080
|
-
404: BrowserError;
|
|
69081
|
-
/**
|
|
69082
|
-
* SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
69083
|
-
*/
|
|
69084
|
-
409: BrowserError;
|
|
69085
|
-
/**
|
|
69086
|
-
* ACTION_RESULT_TOO_LARGE
|
|
69087
|
-
*/
|
|
69088
|
-
413: BrowserError;
|
|
69089
|
-
/**
|
|
69090
|
-
* CONCURRENCY_LIMIT / RATE_LIMITED / PROVIDER_CAPACITY
|
|
69091
|
-
*/
|
|
69092
|
-
429: BrowserError;
|
|
69093
|
-
/**
|
|
69094
|
-
* INTERNAL
|
|
69095
|
-
*/
|
|
69096
|
-
500: BrowserError;
|
|
69097
|
-
/**
|
|
69098
|
-
* NOT_IMPLEMENTED / PROVIDER_UNSUPPORTED
|
|
69099
|
-
*/
|
|
69100
|
-
501: BrowserError;
|
|
69101
|
-
/**
|
|
69102
|
-
* PROVIDER_FAILED
|
|
69103
|
-
*/
|
|
69104
|
-
502: BrowserError;
|
|
69105
|
-
/**
|
|
69106
|
-
* SERVICE_UNAVAILABLE
|
|
69107
|
-
*/
|
|
69108
|
-
503: BrowserError;
|
|
69109
|
-
/**
|
|
69110
|
-
* ACTION_TIMEOUT
|
|
69111
|
-
*/
|
|
69112
|
-
504: BrowserError;
|
|
69113
|
-
};
|
|
69114
|
-
export type BrowserGetSessionError = BrowserGetSessionErrors[keyof BrowserGetSessionErrors];
|
|
69115
|
-
export type BrowserGetSessionResponses = {
|
|
69116
|
-
/**
|
|
69117
|
-
* 请求成功。
|
|
69118
|
-
*/
|
|
69119
|
-
200: BrowserSessionGetResult;
|
|
69120
|
-
};
|
|
69121
|
-
export type BrowserGetSessionResponse = BrowserGetSessionResponses[keyof BrowserGetSessionResponses];
|
|
69122
|
-
export type BrowserCloseSessionData = {
|
|
69123
|
-
body: {
|
|
69124
|
-
/**
|
|
69125
|
-
* 会话操作指令;REQUEST_RELEASE 表示请求关闭浏览器并结束会话。
|
|
69126
|
-
*/
|
|
69127
|
-
status: 'REQUEST_RELEASE';
|
|
69128
|
-
};
|
|
69129
|
-
path: {
|
|
69130
|
-
/**
|
|
69131
|
-
* 浏览器会话 ID;使用创建或列出会话返回的 id,以 bss_ 开头。
|
|
69132
|
-
*/
|
|
69133
|
-
sessionId: string;
|
|
69134
|
-
};
|
|
69135
|
-
query?: never;
|
|
69136
|
-
url: '/browser/v1/sessions/{sessionId}';
|
|
69137
|
-
};
|
|
69138
|
-
export type BrowserCloseSessionErrors = {
|
|
69139
|
-
/**
|
|
69140
|
-
* INVALID_PARAMS / INVALID_FILTER / INVALID_PAGE_TOKEN
|
|
69141
|
-
*/
|
|
69142
|
-
400: BrowserError;
|
|
69143
|
-
/**
|
|
69144
|
-
* UNAUTHENTICATED / CONNECT_SIGNATURE_INVALID
|
|
69145
|
-
*/
|
|
69146
|
-
401: BrowserError;
|
|
69147
|
-
/**
|
|
69148
|
-
* INSUFFICIENT_BALANCE / QUOTA_EXHAUSTED
|
|
69149
|
-
*/
|
|
69150
|
-
402: BrowserError;
|
|
69151
|
-
/**
|
|
69152
|
-
* PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
|
|
69153
|
-
*/
|
|
69154
|
-
403: BrowserError;
|
|
69155
|
-
/**
|
|
69156
|
-
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
69721
|
+
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
69157
69722
|
*/
|
|
69158
69723
|
404: BrowserError;
|
|
69159
69724
|
/**
|
|
@@ -69161,78 +69726,9 @@ export type BrowserCloseSessionErrors = {
|
|
|
69161
69726
|
*/
|
|
69162
69727
|
409: BrowserError;
|
|
69163
69728
|
/**
|
|
69164
|
-
*
|
|
69165
|
-
*/
|
|
69166
|
-
413: BrowserError;
|
|
69167
|
-
/**
|
|
69168
|
-
* CONCURRENCY_LIMIT / RATE_LIMITED / PROVIDER_CAPACITY
|
|
69729
|
+
* BROWSER_REVOKED
|
|
69169
69730
|
*/
|
|
69170
|
-
|
|
69171
|
-
/**
|
|
69172
|
-
* INTERNAL
|
|
69173
|
-
*/
|
|
69174
|
-
500: BrowserError;
|
|
69175
|
-
/**
|
|
69176
|
-
* NOT_IMPLEMENTED / PROVIDER_UNSUPPORTED
|
|
69177
|
-
*/
|
|
69178
|
-
501: BrowserError;
|
|
69179
|
-
/**
|
|
69180
|
-
* PROVIDER_FAILED
|
|
69181
|
-
*/
|
|
69182
|
-
502: BrowserError;
|
|
69183
|
-
/**
|
|
69184
|
-
* SERVICE_UNAVAILABLE
|
|
69185
|
-
*/
|
|
69186
|
-
503: BrowserError;
|
|
69187
|
-
/**
|
|
69188
|
-
* ACTION_TIMEOUT
|
|
69189
|
-
*/
|
|
69190
|
-
504: BrowserError;
|
|
69191
|
-
};
|
|
69192
|
-
export type BrowserCloseSessionError = BrowserCloseSessionErrors[keyof BrowserCloseSessionErrors];
|
|
69193
|
-
export type BrowserCloseSessionResponses = {
|
|
69194
|
-
/**
|
|
69195
|
-
* 请求成功。
|
|
69196
|
-
*/
|
|
69197
|
-
200: BrowserSession;
|
|
69198
|
-
};
|
|
69199
|
-
export type BrowserCloseSessionResponse = BrowserCloseSessionResponses[keyof BrowserCloseSessionResponses];
|
|
69200
|
-
export type BrowserGetDebugData = {
|
|
69201
|
-
body?: never;
|
|
69202
|
-
path: {
|
|
69203
|
-
/**
|
|
69204
|
-
* 浏览器会话 ID;使用创建或列出会话返回的 id,以 bss_ 开头。
|
|
69205
|
-
*/
|
|
69206
|
-
sessionId: string;
|
|
69207
|
-
};
|
|
69208
|
-
query?: never;
|
|
69209
|
-
url: '/browser/v1/sessions/{sessionId}/debug';
|
|
69210
|
-
};
|
|
69211
|
-
export type BrowserGetDebugErrors = {
|
|
69212
|
-
/**
|
|
69213
|
-
* INVALID_PARAMS / INVALID_FILTER / INVALID_PAGE_TOKEN
|
|
69214
|
-
*/
|
|
69215
|
-
400: BrowserError;
|
|
69216
|
-
/**
|
|
69217
|
-
* UNAUTHENTICATED / CONNECT_SIGNATURE_INVALID
|
|
69218
|
-
*/
|
|
69219
|
-
401: BrowserError;
|
|
69220
|
-
/**
|
|
69221
|
-
* INSUFFICIENT_BALANCE / QUOTA_EXHAUSTED
|
|
69222
|
-
*/
|
|
69223
|
-
402: BrowserError;
|
|
69224
|
-
/**
|
|
69225
|
-
* PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
|
|
69226
|
-
*/
|
|
69227
|
-
403: BrowserError;
|
|
69228
|
-
/**
|
|
69229
|
-
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
69230
|
-
*/
|
|
69231
|
-
404: BrowserError;
|
|
69232
|
-
/**
|
|
69233
|
-
* SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
69234
|
-
*/
|
|
69235
|
-
409: BrowserError;
|
|
69731
|
+
410: BrowserError;
|
|
69236
69732
|
/**
|
|
69237
69733
|
* ACTION_RESULT_TOO_LARGE
|
|
69238
69734
|
*/
|
|
@@ -69254,7 +69750,166 @@ export type BrowserGetDebugErrors = {
|
|
|
69254
69750
|
*/
|
|
69255
69751
|
502: BrowserError;
|
|
69256
69752
|
/**
|
|
69257
|
-
* SERVICE_UNAVAILABLE
|
|
69753
|
+
* BROWSER_OFFLINE / SERVICE_UNAVAILABLE
|
|
69754
|
+
*/
|
|
69755
|
+
503: BrowserError;
|
|
69756
|
+
/**
|
|
69757
|
+
* ACTION_TIMEOUT
|
|
69758
|
+
*/
|
|
69759
|
+
504: BrowserError;
|
|
69760
|
+
};
|
|
69761
|
+
export type BrowserGetSessionError = BrowserGetSessionErrors[keyof BrowserGetSessionErrors];
|
|
69762
|
+
export type BrowserGetSessionResponses = {
|
|
69763
|
+
/**
|
|
69764
|
+
* 请求成功。
|
|
69765
|
+
*/
|
|
69766
|
+
200: BrowserSessionGetResult;
|
|
69767
|
+
};
|
|
69768
|
+
export type BrowserGetSessionResponse = BrowserGetSessionResponses[keyof BrowserGetSessionResponses];
|
|
69769
|
+
export type BrowserCloseSessionData = {
|
|
69770
|
+
body: {
|
|
69771
|
+
/**
|
|
69772
|
+
* 会话操作指令;REQUEST_RELEASE 表示请求关闭浏览器并结束会话。
|
|
69773
|
+
*/
|
|
69774
|
+
status: 'REQUEST_RELEASE';
|
|
69775
|
+
};
|
|
69776
|
+
path: {
|
|
69777
|
+
/**
|
|
69778
|
+
* 浏览器会话 ID;使用创建或列出会话返回的 id,以 bss_ 开头。
|
|
69779
|
+
*/
|
|
69780
|
+
sessionId: string;
|
|
69781
|
+
};
|
|
69782
|
+
query?: never;
|
|
69783
|
+
url: '/browser/v1/sessions/{sessionId}';
|
|
69784
|
+
};
|
|
69785
|
+
export type BrowserCloseSessionErrors = {
|
|
69786
|
+
/**
|
|
69787
|
+
* INVALID_PARAMS / INVALID_FILTER / INVALID_PAGE_TOKEN
|
|
69788
|
+
*/
|
|
69789
|
+
400: BrowserError;
|
|
69790
|
+
/**
|
|
69791
|
+
* UNAUTHENTICATED / CONNECT_SIGNATURE_INVALID
|
|
69792
|
+
*/
|
|
69793
|
+
401: BrowserError;
|
|
69794
|
+
/**
|
|
69795
|
+
* INSUFFICIENT_BALANCE / QUOTA_EXHAUSTED
|
|
69796
|
+
*/
|
|
69797
|
+
402: BrowserError;
|
|
69798
|
+
/**
|
|
69799
|
+
* PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
|
|
69800
|
+
*/
|
|
69801
|
+
403: BrowserError;
|
|
69802
|
+
/**
|
|
69803
|
+
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
69804
|
+
*/
|
|
69805
|
+
404: BrowserError;
|
|
69806
|
+
/**
|
|
69807
|
+
* SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
69808
|
+
*/
|
|
69809
|
+
409: BrowserError;
|
|
69810
|
+
/**
|
|
69811
|
+
* BROWSER_REVOKED
|
|
69812
|
+
*/
|
|
69813
|
+
410: BrowserError;
|
|
69814
|
+
/**
|
|
69815
|
+
* ACTION_RESULT_TOO_LARGE
|
|
69816
|
+
*/
|
|
69817
|
+
413: BrowserError;
|
|
69818
|
+
/**
|
|
69819
|
+
* CONCURRENCY_LIMIT / RATE_LIMITED / PROVIDER_CAPACITY
|
|
69820
|
+
*/
|
|
69821
|
+
429: BrowserError;
|
|
69822
|
+
/**
|
|
69823
|
+
* INTERNAL
|
|
69824
|
+
*/
|
|
69825
|
+
500: BrowserError;
|
|
69826
|
+
/**
|
|
69827
|
+
* NOT_IMPLEMENTED / PROVIDER_UNSUPPORTED
|
|
69828
|
+
*/
|
|
69829
|
+
501: BrowserError;
|
|
69830
|
+
/**
|
|
69831
|
+
* PROVIDER_FAILED
|
|
69832
|
+
*/
|
|
69833
|
+
502: BrowserError;
|
|
69834
|
+
/**
|
|
69835
|
+
* BROWSER_OFFLINE / SERVICE_UNAVAILABLE
|
|
69836
|
+
*/
|
|
69837
|
+
503: BrowserError;
|
|
69838
|
+
/**
|
|
69839
|
+
* ACTION_TIMEOUT
|
|
69840
|
+
*/
|
|
69841
|
+
504: BrowserError;
|
|
69842
|
+
};
|
|
69843
|
+
export type BrowserCloseSessionError = BrowserCloseSessionErrors[keyof BrowserCloseSessionErrors];
|
|
69844
|
+
export type BrowserCloseSessionResponses = {
|
|
69845
|
+
/**
|
|
69846
|
+
* 请求成功。
|
|
69847
|
+
*/
|
|
69848
|
+
200: BrowserSession;
|
|
69849
|
+
};
|
|
69850
|
+
export type BrowserCloseSessionResponse = BrowserCloseSessionResponses[keyof BrowserCloseSessionResponses];
|
|
69851
|
+
export type BrowserGetDebugData = {
|
|
69852
|
+
body?: never;
|
|
69853
|
+
path: {
|
|
69854
|
+
/**
|
|
69855
|
+
* 浏览器会话 ID;使用创建或列出会话返回的 id,以 bss_ 开头。
|
|
69856
|
+
*/
|
|
69857
|
+
sessionId: string;
|
|
69858
|
+
};
|
|
69859
|
+
query?: never;
|
|
69860
|
+
url: '/browser/v1/sessions/{sessionId}/debug';
|
|
69861
|
+
};
|
|
69862
|
+
export type BrowserGetDebugErrors = {
|
|
69863
|
+
/**
|
|
69864
|
+
* INVALID_PARAMS / INVALID_FILTER / INVALID_PAGE_TOKEN
|
|
69865
|
+
*/
|
|
69866
|
+
400: BrowserError;
|
|
69867
|
+
/**
|
|
69868
|
+
* UNAUTHENTICATED / CONNECT_SIGNATURE_INVALID
|
|
69869
|
+
*/
|
|
69870
|
+
401: BrowserError;
|
|
69871
|
+
/**
|
|
69872
|
+
* INSUFFICIENT_BALANCE / QUOTA_EXHAUSTED
|
|
69873
|
+
*/
|
|
69874
|
+
402: BrowserError;
|
|
69875
|
+
/**
|
|
69876
|
+
* PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
|
|
69877
|
+
*/
|
|
69878
|
+
403: BrowserError;
|
|
69879
|
+
/**
|
|
69880
|
+
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
69881
|
+
*/
|
|
69882
|
+
404: BrowserError;
|
|
69883
|
+
/**
|
|
69884
|
+
* SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
69885
|
+
*/
|
|
69886
|
+
409: BrowserError;
|
|
69887
|
+
/**
|
|
69888
|
+
* BROWSER_REVOKED
|
|
69889
|
+
*/
|
|
69890
|
+
410: BrowserError;
|
|
69891
|
+
/**
|
|
69892
|
+
* ACTION_RESULT_TOO_LARGE
|
|
69893
|
+
*/
|
|
69894
|
+
413: BrowserError;
|
|
69895
|
+
/**
|
|
69896
|
+
* CONCURRENCY_LIMIT / RATE_LIMITED / PROVIDER_CAPACITY
|
|
69897
|
+
*/
|
|
69898
|
+
429: BrowserError;
|
|
69899
|
+
/**
|
|
69900
|
+
* INTERNAL
|
|
69901
|
+
*/
|
|
69902
|
+
500: BrowserError;
|
|
69903
|
+
/**
|
|
69904
|
+
* NOT_IMPLEMENTED / PROVIDER_UNSUPPORTED
|
|
69905
|
+
*/
|
|
69906
|
+
501: BrowserError;
|
|
69907
|
+
/**
|
|
69908
|
+
* PROVIDER_FAILED
|
|
69909
|
+
*/
|
|
69910
|
+
502: BrowserError;
|
|
69911
|
+
/**
|
|
69912
|
+
* BROWSER_OFFLINE / SERVICE_UNAVAILABLE
|
|
69258
69913
|
*/
|
|
69259
69914
|
503: BrowserError;
|
|
69260
69915
|
/**
|
|
@@ -69312,13 +69967,17 @@ export type BrowserListEventsErrors = {
|
|
|
69312
69967
|
*/
|
|
69313
69968
|
403: BrowserError;
|
|
69314
69969
|
/**
|
|
69315
|
-
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
69970
|
+
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
69316
69971
|
*/
|
|
69317
69972
|
404: BrowserError;
|
|
69318
69973
|
/**
|
|
69319
69974
|
* SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
69320
69975
|
*/
|
|
69321
69976
|
409: BrowserError;
|
|
69977
|
+
/**
|
|
69978
|
+
* BROWSER_REVOKED
|
|
69979
|
+
*/
|
|
69980
|
+
410: BrowserError;
|
|
69322
69981
|
/**
|
|
69323
69982
|
* ACTION_RESULT_TOO_LARGE
|
|
69324
69983
|
*/
|
|
@@ -69340,7 +69999,7 @@ export type BrowserListEventsErrors = {
|
|
|
69340
69999
|
*/
|
|
69341
70000
|
502: BrowserError;
|
|
69342
70001
|
/**
|
|
69343
|
-
* SERVICE_UNAVAILABLE
|
|
70002
|
+
* BROWSER_OFFLINE / SERVICE_UNAVAILABLE
|
|
69344
70003
|
*/
|
|
69345
70004
|
503: BrowserError;
|
|
69346
70005
|
/**
|
|
@@ -69591,13 +70250,17 @@ export type BrowserRunPageActionErrors = {
|
|
|
69591
70250
|
*/
|
|
69592
70251
|
403: BrowserError;
|
|
69593
70252
|
/**
|
|
69594
|
-
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
70253
|
+
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
69595
70254
|
*/
|
|
69596
70255
|
404: BrowserError;
|
|
69597
70256
|
/**
|
|
69598
70257
|
* SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
69599
70258
|
*/
|
|
69600
70259
|
409: BrowserError;
|
|
70260
|
+
/**
|
|
70261
|
+
* BROWSER_REVOKED
|
|
70262
|
+
*/
|
|
70263
|
+
410: BrowserError;
|
|
69601
70264
|
/**
|
|
69602
70265
|
* ACTION_RESULT_TOO_LARGE
|
|
69603
70266
|
*/
|
|
@@ -69619,7 +70282,7 @@ export type BrowserRunPageActionErrors = {
|
|
|
69619
70282
|
*/
|
|
69620
70283
|
502: BrowserError;
|
|
69621
70284
|
/**
|
|
69622
|
-
* SERVICE_UNAVAILABLE
|
|
70285
|
+
* BROWSER_OFFLINE / SERVICE_UNAVAILABLE
|
|
69623
70286
|
*/
|
|
69624
70287
|
503: BrowserError;
|
|
69625
70288
|
/**
|
|
@@ -69809,13 +70472,17 @@ export type BrowserRequestHandoffErrors = {
|
|
|
69809
70472
|
*/
|
|
69810
70473
|
403: BrowserError;
|
|
69811
70474
|
/**
|
|
69812
|
-
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
70475
|
+
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
69813
70476
|
*/
|
|
69814
70477
|
404: BrowserError;
|
|
69815
70478
|
/**
|
|
69816
70479
|
* SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
69817
70480
|
*/
|
|
69818
70481
|
409: BrowserError;
|
|
70482
|
+
/**
|
|
70483
|
+
* BROWSER_REVOKED
|
|
70484
|
+
*/
|
|
70485
|
+
410: BrowserError;
|
|
69819
70486
|
/**
|
|
69820
70487
|
* ACTION_RESULT_TOO_LARGE
|
|
69821
70488
|
*/
|
|
@@ -69837,7 +70504,7 @@ export type BrowserRequestHandoffErrors = {
|
|
|
69837
70504
|
*/
|
|
69838
70505
|
502: BrowserError;
|
|
69839
70506
|
/**
|
|
69840
|
-
* SERVICE_UNAVAILABLE
|
|
70507
|
+
* BROWSER_OFFLINE / SERVICE_UNAVAILABLE
|
|
69841
70508
|
*/
|
|
69842
70509
|
503: BrowserError;
|
|
69843
70510
|
/**
|
|
@@ -69882,13 +70549,745 @@ export type BrowserCompleteHandoffErrors = {
|
|
|
69882
70549
|
*/
|
|
69883
70550
|
403: BrowserError;
|
|
69884
70551
|
/**
|
|
69885
|
-
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
70552
|
+
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
70553
|
+
*/
|
|
70554
|
+
404: BrowserError;
|
|
70555
|
+
/**
|
|
70556
|
+
* SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
70557
|
+
*/
|
|
70558
|
+
409: BrowserError;
|
|
70559
|
+
/**
|
|
70560
|
+
* BROWSER_REVOKED
|
|
70561
|
+
*/
|
|
70562
|
+
410: BrowserError;
|
|
70563
|
+
/**
|
|
70564
|
+
* ACTION_RESULT_TOO_LARGE
|
|
70565
|
+
*/
|
|
70566
|
+
413: BrowserError;
|
|
70567
|
+
/**
|
|
70568
|
+
* CONCURRENCY_LIMIT / RATE_LIMITED / PROVIDER_CAPACITY
|
|
70569
|
+
*/
|
|
70570
|
+
429: BrowserError;
|
|
70571
|
+
/**
|
|
70572
|
+
* INTERNAL
|
|
70573
|
+
*/
|
|
70574
|
+
500: BrowserError;
|
|
70575
|
+
/**
|
|
70576
|
+
* NOT_IMPLEMENTED / PROVIDER_UNSUPPORTED
|
|
70577
|
+
*/
|
|
70578
|
+
501: BrowserError;
|
|
70579
|
+
/**
|
|
70580
|
+
* PROVIDER_FAILED
|
|
70581
|
+
*/
|
|
70582
|
+
502: BrowserError;
|
|
70583
|
+
/**
|
|
70584
|
+
* BROWSER_OFFLINE / SERVICE_UNAVAILABLE
|
|
70585
|
+
*/
|
|
70586
|
+
503: BrowserError;
|
|
70587
|
+
/**
|
|
70588
|
+
* ACTION_TIMEOUT
|
|
70589
|
+
*/
|
|
70590
|
+
504: BrowserError;
|
|
70591
|
+
};
|
|
70592
|
+
export type BrowserCompleteHandoffError = BrowserCompleteHandoffErrors[keyof BrowserCompleteHandoffErrors];
|
|
70593
|
+
export type BrowserCompleteHandoffResponses = {
|
|
70594
|
+
/**
|
|
70595
|
+
* 请求成功。
|
|
70596
|
+
*/
|
|
70597
|
+
200: BrowserEventRecord;
|
|
70598
|
+
};
|
|
70599
|
+
export type BrowserCompleteHandoffResponse = BrowserCompleteHandoffResponses[keyof BrowserCompleteHandoffResponses];
|
|
70600
|
+
export type BrowserViewerHeartbeatData = {
|
|
70601
|
+
body: {
|
|
70602
|
+
/**
|
|
70603
|
+
* 当前观看者的稳定标识;同一观看者重复心跳应使用相同值,长度为 1–128 个 UTF-16 代码单元。
|
|
70604
|
+
*/
|
|
70605
|
+
viewerId: string;
|
|
70606
|
+
/**
|
|
70607
|
+
* 观看者类型:control 是需要控制浏览器的客户端,readonly 是只读观看者。只读观看者发送 control 也会按 readonly 记录。
|
|
70608
|
+
*/
|
|
70609
|
+
kind?: 'control' | 'readonly';
|
|
70610
|
+
};
|
|
70611
|
+
path: {
|
|
70612
|
+
/**
|
|
70613
|
+
* 浏览器会话 ID;使用创建或列出会话返回的 id,以 bss_ 开头。
|
|
70614
|
+
*/
|
|
70615
|
+
sessionId: string;
|
|
70616
|
+
};
|
|
70617
|
+
query?: never;
|
|
70618
|
+
url: '/browser/v1/sessions/{sessionId}/viewer';
|
|
70619
|
+
};
|
|
70620
|
+
export type BrowserViewerHeartbeatErrors = {
|
|
70621
|
+
/**
|
|
70622
|
+
* INVALID_PARAMS / INVALID_FILTER / INVALID_PAGE_TOKEN
|
|
70623
|
+
*/
|
|
70624
|
+
400: BrowserError;
|
|
70625
|
+
/**
|
|
70626
|
+
* UNAUTHENTICATED / CONNECT_SIGNATURE_INVALID
|
|
70627
|
+
*/
|
|
70628
|
+
401: BrowserError;
|
|
70629
|
+
/**
|
|
70630
|
+
* INSUFFICIENT_BALANCE / QUOTA_EXHAUSTED
|
|
70631
|
+
*/
|
|
70632
|
+
402: BrowserError;
|
|
70633
|
+
/**
|
|
70634
|
+
* PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
|
|
70635
|
+
*/
|
|
70636
|
+
403: BrowserError;
|
|
70637
|
+
/**
|
|
70638
|
+
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
70639
|
+
*/
|
|
70640
|
+
404: BrowserError;
|
|
70641
|
+
/**
|
|
70642
|
+
* SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
70643
|
+
*/
|
|
70644
|
+
409: BrowserError;
|
|
70645
|
+
/**
|
|
70646
|
+
* BROWSER_REVOKED
|
|
70647
|
+
*/
|
|
70648
|
+
410: BrowserError;
|
|
70649
|
+
/**
|
|
70650
|
+
* ACTION_RESULT_TOO_LARGE
|
|
70651
|
+
*/
|
|
70652
|
+
413: BrowserError;
|
|
70653
|
+
/**
|
|
70654
|
+
* CONCURRENCY_LIMIT / RATE_LIMITED / PROVIDER_CAPACITY
|
|
70655
|
+
*/
|
|
70656
|
+
429: BrowserError;
|
|
70657
|
+
/**
|
|
70658
|
+
* INTERNAL
|
|
70659
|
+
*/
|
|
70660
|
+
500: BrowserError;
|
|
70661
|
+
/**
|
|
70662
|
+
* NOT_IMPLEMENTED / PROVIDER_UNSUPPORTED
|
|
70663
|
+
*/
|
|
70664
|
+
501: BrowserError;
|
|
70665
|
+
/**
|
|
70666
|
+
* PROVIDER_FAILED
|
|
70667
|
+
*/
|
|
70668
|
+
502: BrowserError;
|
|
70669
|
+
/**
|
|
70670
|
+
* BROWSER_OFFLINE / SERVICE_UNAVAILABLE
|
|
70671
|
+
*/
|
|
70672
|
+
503: BrowserError;
|
|
70673
|
+
/**
|
|
70674
|
+
* ACTION_TIMEOUT
|
|
70675
|
+
*/
|
|
70676
|
+
504: BrowserError;
|
|
70677
|
+
};
|
|
70678
|
+
export type BrowserViewerHeartbeatError = BrowserViewerHeartbeatErrors[keyof BrowserViewerHeartbeatErrors];
|
|
70679
|
+
export type BrowserViewerHeartbeatResponses = {
|
|
70680
|
+
/**
|
|
70681
|
+
* 请求成功。
|
|
70682
|
+
*/
|
|
70683
|
+
200: {
|
|
70684
|
+
/**
|
|
70685
|
+
* 心跳已被接受,成功时固定返回 true。
|
|
70686
|
+
*/
|
|
70687
|
+
ok: true;
|
|
70688
|
+
};
|
|
70689
|
+
};
|
|
70690
|
+
export type BrowserViewerHeartbeatResponse = BrowserViewerHeartbeatResponses[keyof BrowserViewerHeartbeatResponses];
|
|
70691
|
+
export type BrowserGetSessionFrameData = {
|
|
70692
|
+
body?: never;
|
|
70693
|
+
path: {
|
|
70694
|
+
/**
|
|
70695
|
+
* 浏览器会话 ID;使用创建或列出会话返回的 id,以 bss_ 开头。
|
|
70696
|
+
*/
|
|
70697
|
+
sessionId: string;
|
|
70698
|
+
};
|
|
70699
|
+
query?: never;
|
|
70700
|
+
url: '/browser/v1/sessions/{sessionId}/frame';
|
|
70701
|
+
};
|
|
70702
|
+
export type BrowserGetSessionFrameErrors = {
|
|
70703
|
+
/**
|
|
70704
|
+
* INVALID_PARAMS / INVALID_FILTER / INVALID_PAGE_TOKEN
|
|
70705
|
+
*/
|
|
70706
|
+
400: BrowserError;
|
|
70707
|
+
/**
|
|
70708
|
+
* UNAUTHENTICATED / CONNECT_SIGNATURE_INVALID
|
|
70709
|
+
*/
|
|
70710
|
+
401: BrowserError;
|
|
70711
|
+
/**
|
|
70712
|
+
* INSUFFICIENT_BALANCE / QUOTA_EXHAUSTED
|
|
70713
|
+
*/
|
|
70714
|
+
402: BrowserError;
|
|
70715
|
+
/**
|
|
70716
|
+
* PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
|
|
70717
|
+
*/
|
|
70718
|
+
403: BrowserError;
|
|
70719
|
+
/**
|
|
70720
|
+
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
70721
|
+
*/
|
|
70722
|
+
404: BrowserError;
|
|
70723
|
+
/**
|
|
70724
|
+
* SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
70725
|
+
*/
|
|
70726
|
+
409: BrowserError;
|
|
70727
|
+
/**
|
|
70728
|
+
* BROWSER_REVOKED
|
|
70729
|
+
*/
|
|
70730
|
+
410: BrowserError;
|
|
70731
|
+
/**
|
|
70732
|
+
* ACTION_RESULT_TOO_LARGE
|
|
70733
|
+
*/
|
|
70734
|
+
413: BrowserError;
|
|
70735
|
+
/**
|
|
70736
|
+
* CONCURRENCY_LIMIT / RATE_LIMITED / PROVIDER_CAPACITY
|
|
70737
|
+
*/
|
|
70738
|
+
429: BrowserError;
|
|
70739
|
+
/**
|
|
70740
|
+
* INTERNAL
|
|
70741
|
+
*/
|
|
70742
|
+
500: BrowserError;
|
|
70743
|
+
/**
|
|
70744
|
+
* NOT_IMPLEMENTED / PROVIDER_UNSUPPORTED
|
|
70745
|
+
*/
|
|
70746
|
+
501: BrowserError;
|
|
70747
|
+
/**
|
|
70748
|
+
* PROVIDER_FAILED
|
|
70749
|
+
*/
|
|
70750
|
+
502: BrowserError;
|
|
70751
|
+
/**
|
|
70752
|
+
* BROWSER_OFFLINE / SERVICE_UNAVAILABLE
|
|
70753
|
+
*/
|
|
70754
|
+
503: BrowserError;
|
|
70755
|
+
/**
|
|
70756
|
+
* ACTION_TIMEOUT
|
|
70757
|
+
*/
|
|
70758
|
+
504: BrowserError;
|
|
70759
|
+
};
|
|
70760
|
+
export type BrowserGetSessionFrameError = BrowserGetSessionFrameErrors[keyof BrowserGetSessionFrameErrors];
|
|
70761
|
+
export type BrowserGetSessionFrameResponses = {
|
|
70762
|
+
/**
|
|
70763
|
+
* JPEG 画面帧,最多 2 MiB。
|
|
70764
|
+
*/
|
|
70765
|
+
200: Blob | File;
|
|
70766
|
+
};
|
|
70767
|
+
export type BrowserGetSessionFrameResponse = BrowserGetSessionFrameResponses[keyof BrowserGetSessionFrameResponses];
|
|
70768
|
+
export type BrowserListContextsData = {
|
|
70769
|
+
body?: never;
|
|
70770
|
+
path?: never;
|
|
70771
|
+
query?: {
|
|
70772
|
+
/**
|
|
70773
|
+
* 按登录态名称精确匹配;名称在当前账户内唯一,所以最多返回一条。省略时列出全部登录态。
|
|
70774
|
+
*/
|
|
70775
|
+
name?: string;
|
|
70776
|
+
/**
|
|
70777
|
+
* 登录态 ID;使用创建或列出登录态返回的 id,以 bsc_ 开头。
|
|
70778
|
+
*/
|
|
70779
|
+
cursor?: string;
|
|
70780
|
+
/**
|
|
70781
|
+
* 每页最多返回的登录态数量;默认 25,范围 1–100。
|
|
70782
|
+
*/
|
|
70783
|
+
limit?: number;
|
|
70784
|
+
};
|
|
70785
|
+
url: '/browser/v1/contexts';
|
|
70786
|
+
};
|
|
70787
|
+
export type BrowserListContextsErrors = {
|
|
70788
|
+
/**
|
|
70789
|
+
* INVALID_PARAMS / INVALID_FILTER / INVALID_PAGE_TOKEN
|
|
70790
|
+
*/
|
|
70791
|
+
400: BrowserError;
|
|
70792
|
+
/**
|
|
70793
|
+
* UNAUTHENTICATED / CONNECT_SIGNATURE_INVALID
|
|
70794
|
+
*/
|
|
70795
|
+
401: BrowserError;
|
|
70796
|
+
/**
|
|
70797
|
+
* INSUFFICIENT_BALANCE / QUOTA_EXHAUSTED
|
|
70798
|
+
*/
|
|
70799
|
+
402: BrowserError;
|
|
70800
|
+
/**
|
|
70801
|
+
* PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
|
|
70802
|
+
*/
|
|
70803
|
+
403: BrowserError;
|
|
70804
|
+
/**
|
|
70805
|
+
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
70806
|
+
*/
|
|
70807
|
+
404: BrowserError;
|
|
70808
|
+
/**
|
|
70809
|
+
* SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
70810
|
+
*/
|
|
70811
|
+
409: BrowserError;
|
|
70812
|
+
/**
|
|
70813
|
+
* BROWSER_REVOKED
|
|
70814
|
+
*/
|
|
70815
|
+
410: BrowserError;
|
|
70816
|
+
/**
|
|
70817
|
+
* ACTION_RESULT_TOO_LARGE
|
|
70818
|
+
*/
|
|
70819
|
+
413: BrowserError;
|
|
70820
|
+
/**
|
|
70821
|
+
* CONCURRENCY_LIMIT / RATE_LIMITED / PROVIDER_CAPACITY
|
|
70822
|
+
*/
|
|
70823
|
+
429: BrowserError;
|
|
70824
|
+
/**
|
|
70825
|
+
* INTERNAL
|
|
70826
|
+
*/
|
|
70827
|
+
500: BrowserError;
|
|
70828
|
+
/**
|
|
70829
|
+
* NOT_IMPLEMENTED / PROVIDER_UNSUPPORTED
|
|
70830
|
+
*/
|
|
70831
|
+
501: BrowserError;
|
|
70832
|
+
/**
|
|
70833
|
+
* PROVIDER_FAILED
|
|
70834
|
+
*/
|
|
70835
|
+
502: BrowserError;
|
|
70836
|
+
/**
|
|
70837
|
+
* BROWSER_OFFLINE / SERVICE_UNAVAILABLE
|
|
70838
|
+
*/
|
|
70839
|
+
503: BrowserError;
|
|
70840
|
+
/**
|
|
70841
|
+
* ACTION_TIMEOUT
|
|
70842
|
+
*/
|
|
70843
|
+
504: BrowserError;
|
|
70844
|
+
};
|
|
70845
|
+
export type BrowserListContextsError = BrowserListContextsErrors[keyof BrowserListContextsErrors];
|
|
70846
|
+
export type BrowserListContextsResponses = {
|
|
70847
|
+
/**
|
|
70848
|
+
* 分页查询结果,包含本页记录和下一页游标。
|
|
70849
|
+
*/
|
|
70850
|
+
200: {
|
|
70851
|
+
/**
|
|
70852
|
+
* 本页查询匹配的记录;没有匹配项时为空数组。
|
|
70853
|
+
*/
|
|
70854
|
+
data: Array<BrowserContext>;
|
|
70855
|
+
/**
|
|
70856
|
+
* 下一页游标;原样传入 cursor,null 表示没有更多结果。
|
|
70857
|
+
*/
|
|
70858
|
+
nextCursor: string | null;
|
|
70859
|
+
};
|
|
70860
|
+
};
|
|
70861
|
+
export type BrowserListContextsResponse = BrowserListContextsResponses[keyof BrowserListContextsResponses];
|
|
70862
|
+
export type BrowserCreateContextData = {
|
|
70863
|
+
body: {
|
|
70864
|
+
/**
|
|
70865
|
+
* 兼容项目字段;传入值被忽略,创建结果的 projectId 固定为 default。
|
|
70866
|
+
*/
|
|
70867
|
+
projectId?: string;
|
|
70868
|
+
/**
|
|
70869
|
+
* 登录态名称;非空时为 1–128 个 ASCII 字母、数字或 . _ : -,在当前账户内唯一;空字符串表示不设名称或清除名称。
|
|
70870
|
+
*/
|
|
70871
|
+
name?: '' | unknown;
|
|
70872
|
+
/**
|
|
70873
|
+
* 自定义字符串标签;最多 32 项,键最多 128 个 UTF-8 字节,值最多 1024 个 UTF-8 字节。
|
|
70874
|
+
*/
|
|
70875
|
+
labels?: {
|
|
70876
|
+
[key: string]: string;
|
|
70877
|
+
};
|
|
70878
|
+
/**
|
|
70879
|
+
* 给登录态绑定一个固定的外部代理(如住宅 IP),使用这个登录态的会话没有写 proxies 时都经它出网,让同一账号始终从同一个出口地址出去。只存保管库引用(password_secret),不存密码;会话自己写了 proxies 时以会话的为准。需要组织已开通容器后端,否则返回 501 PROVIDER_UNSUPPORTED。
|
|
70880
|
+
*/
|
|
70881
|
+
proxy?: {
|
|
70882
|
+
/**
|
|
70883
|
+
* 固定为 external:经一个你自己的外部 HTTP 代理出网。
|
|
70884
|
+
*/
|
|
70885
|
+
type: 'external';
|
|
70886
|
+
/**
|
|
70887
|
+
* 代理地址,host:port 或 http://host:port;只支持 HTTP 代理,不接受 socks5:// 等协议,也不接受 localhost 和内网、链路本地地址。
|
|
70888
|
+
*/
|
|
70889
|
+
server: string;
|
|
70890
|
+
/**
|
|
70891
|
+
* 代理用户名;有密码时才能填,填了就必须同时给出密码。
|
|
70892
|
+
*/
|
|
70893
|
+
username?: string;
|
|
70894
|
+
/**
|
|
70895
|
+
* 必须用这种形式:引用保管库里的代理密码,只在连接这个代理的主机时兑换,不会交给网页。登录态里只存引用,传明文 password 返回 400 INVALID_PARAMS。
|
|
70896
|
+
*/
|
|
70897
|
+
password_secret?: {
|
|
70898
|
+
/**
|
|
70899
|
+
* 保存代理密码的保管库 ID,以 vlt_ 开头。
|
|
70900
|
+
*/
|
|
70901
|
+
vault_id: string;
|
|
70902
|
+
/**
|
|
70903
|
+
* 保管库中该密码的密钥 ID(不是密码本身)。
|
|
70904
|
+
*/
|
|
70905
|
+
secret: string;
|
|
70906
|
+
};
|
|
70907
|
+
};
|
|
70908
|
+
};
|
|
70909
|
+
path?: never;
|
|
70910
|
+
query?: never;
|
|
70911
|
+
url: '/browser/v1/contexts';
|
|
70912
|
+
};
|
|
70913
|
+
export type BrowserCreateContextErrors = {
|
|
70914
|
+
/**
|
|
70915
|
+
* INVALID_PARAMS / INVALID_FILTER / INVALID_PAGE_TOKEN
|
|
70916
|
+
*/
|
|
70917
|
+
400: BrowserError;
|
|
70918
|
+
/**
|
|
70919
|
+
* UNAUTHENTICATED / CONNECT_SIGNATURE_INVALID
|
|
70920
|
+
*/
|
|
70921
|
+
401: BrowserError;
|
|
70922
|
+
/**
|
|
70923
|
+
* INSUFFICIENT_BALANCE / QUOTA_EXHAUSTED
|
|
70924
|
+
*/
|
|
70925
|
+
402: BrowserError;
|
|
70926
|
+
/**
|
|
70927
|
+
* PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
|
|
70928
|
+
*/
|
|
70929
|
+
403: BrowserError;
|
|
70930
|
+
/**
|
|
70931
|
+
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
70932
|
+
*/
|
|
70933
|
+
404: BrowserError;
|
|
70934
|
+
/**
|
|
70935
|
+
* SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
70936
|
+
*/
|
|
70937
|
+
409: BrowserError;
|
|
70938
|
+
/**
|
|
70939
|
+
* BROWSER_REVOKED
|
|
70940
|
+
*/
|
|
70941
|
+
410: BrowserError;
|
|
70942
|
+
/**
|
|
70943
|
+
* ACTION_RESULT_TOO_LARGE
|
|
70944
|
+
*/
|
|
70945
|
+
413: BrowserError;
|
|
70946
|
+
/**
|
|
70947
|
+
* CONCURRENCY_LIMIT / RATE_LIMITED / PROVIDER_CAPACITY
|
|
70948
|
+
*/
|
|
70949
|
+
429: BrowserError;
|
|
70950
|
+
/**
|
|
70951
|
+
* INTERNAL
|
|
70952
|
+
*/
|
|
70953
|
+
500: BrowserError;
|
|
70954
|
+
/**
|
|
70955
|
+
* NOT_IMPLEMENTED / PROVIDER_UNSUPPORTED
|
|
70956
|
+
*/
|
|
70957
|
+
501: BrowserError;
|
|
70958
|
+
/**
|
|
70959
|
+
* PROVIDER_FAILED
|
|
70960
|
+
*/
|
|
70961
|
+
502: BrowserError;
|
|
70962
|
+
/**
|
|
70963
|
+
* BROWSER_OFFLINE / SERVICE_UNAVAILABLE
|
|
70964
|
+
*/
|
|
70965
|
+
503: BrowserError;
|
|
70966
|
+
/**
|
|
70967
|
+
* ACTION_TIMEOUT
|
|
70968
|
+
*/
|
|
70969
|
+
504: BrowserError;
|
|
70970
|
+
};
|
|
70971
|
+
export type BrowserCreateContextError = BrowserCreateContextErrors[keyof BrowserCreateContextErrors];
|
|
70972
|
+
export type BrowserCreateContextResponses = {
|
|
70973
|
+
/**
|
|
70974
|
+
* 请求成功。
|
|
70975
|
+
*/
|
|
70976
|
+
201: BrowserContextCreateResult;
|
|
70977
|
+
};
|
|
70978
|
+
export type BrowserCreateContextResponse = BrowserCreateContextResponses[keyof BrowserCreateContextResponses];
|
|
70979
|
+
export type BrowserDeleteContextData = {
|
|
70980
|
+
body?: never;
|
|
70981
|
+
path: {
|
|
70982
|
+
/**
|
|
70983
|
+
* 登录态 ID;使用创建或列出登录态返回的 id,以 bsc_ 开头。
|
|
70984
|
+
*/
|
|
70985
|
+
contextId: string;
|
|
70986
|
+
};
|
|
70987
|
+
query?: never;
|
|
70988
|
+
url: '/browser/v1/contexts/{contextId}';
|
|
70989
|
+
};
|
|
70990
|
+
export type BrowserDeleteContextErrors = {
|
|
70991
|
+
/**
|
|
70992
|
+
* INVALID_PARAMS / INVALID_FILTER / INVALID_PAGE_TOKEN
|
|
70993
|
+
*/
|
|
70994
|
+
400: BrowserError;
|
|
70995
|
+
/**
|
|
70996
|
+
* UNAUTHENTICATED / CONNECT_SIGNATURE_INVALID
|
|
70997
|
+
*/
|
|
70998
|
+
401: BrowserError;
|
|
70999
|
+
/**
|
|
71000
|
+
* INSUFFICIENT_BALANCE / QUOTA_EXHAUSTED
|
|
71001
|
+
*/
|
|
71002
|
+
402: BrowserError;
|
|
71003
|
+
/**
|
|
71004
|
+
* PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
|
|
71005
|
+
*/
|
|
71006
|
+
403: BrowserError;
|
|
71007
|
+
/**
|
|
71008
|
+
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
71009
|
+
*/
|
|
71010
|
+
404: BrowserError;
|
|
71011
|
+
/**
|
|
71012
|
+
* SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
71013
|
+
*/
|
|
71014
|
+
409: BrowserError;
|
|
71015
|
+
/**
|
|
71016
|
+
* BROWSER_REVOKED
|
|
71017
|
+
*/
|
|
71018
|
+
410: BrowserError;
|
|
71019
|
+
/**
|
|
71020
|
+
* ACTION_RESULT_TOO_LARGE
|
|
71021
|
+
*/
|
|
71022
|
+
413: BrowserError;
|
|
71023
|
+
/**
|
|
71024
|
+
* CONCURRENCY_LIMIT / RATE_LIMITED / PROVIDER_CAPACITY
|
|
71025
|
+
*/
|
|
71026
|
+
429: BrowserError;
|
|
71027
|
+
/**
|
|
71028
|
+
* INTERNAL
|
|
71029
|
+
*/
|
|
71030
|
+
500: BrowserError;
|
|
71031
|
+
/**
|
|
71032
|
+
* NOT_IMPLEMENTED / PROVIDER_UNSUPPORTED
|
|
71033
|
+
*/
|
|
71034
|
+
501: BrowserError;
|
|
71035
|
+
/**
|
|
71036
|
+
* PROVIDER_FAILED
|
|
71037
|
+
*/
|
|
71038
|
+
502: BrowserError;
|
|
71039
|
+
/**
|
|
71040
|
+
* BROWSER_OFFLINE / SERVICE_UNAVAILABLE
|
|
71041
|
+
*/
|
|
71042
|
+
503: BrowserError;
|
|
71043
|
+
/**
|
|
71044
|
+
* ACTION_TIMEOUT
|
|
71045
|
+
*/
|
|
71046
|
+
504: BrowserError;
|
|
71047
|
+
};
|
|
71048
|
+
export type BrowserDeleteContextError = BrowserDeleteContextErrors[keyof BrowserDeleteContextErrors];
|
|
71049
|
+
export type BrowserDeleteContextResponses = {
|
|
71050
|
+
/**
|
|
71051
|
+
* 请求成功。
|
|
71052
|
+
*/
|
|
71053
|
+
200: {
|
|
71054
|
+
/**
|
|
71055
|
+
* 登录态及保存内容已删除,成功时固定返回 true。
|
|
71056
|
+
*/
|
|
71057
|
+
deleted: true;
|
|
71058
|
+
};
|
|
71059
|
+
};
|
|
71060
|
+
export type BrowserDeleteContextResponse = BrowserDeleteContextResponses[keyof BrowserDeleteContextResponses];
|
|
71061
|
+
export type BrowserGetContextData = {
|
|
71062
|
+
body?: never;
|
|
71063
|
+
path: {
|
|
71064
|
+
/**
|
|
71065
|
+
* 登录态 ID;使用创建或列出登录态返回的 id,以 bsc_ 开头。
|
|
71066
|
+
*/
|
|
71067
|
+
contextId: string;
|
|
71068
|
+
};
|
|
71069
|
+
query?: never;
|
|
71070
|
+
url: '/browser/v1/contexts/{contextId}';
|
|
71071
|
+
};
|
|
71072
|
+
export type BrowserGetContextErrors = {
|
|
71073
|
+
/**
|
|
71074
|
+
* INVALID_PARAMS / INVALID_FILTER / INVALID_PAGE_TOKEN
|
|
71075
|
+
*/
|
|
71076
|
+
400: BrowserError;
|
|
71077
|
+
/**
|
|
71078
|
+
* UNAUTHENTICATED / CONNECT_SIGNATURE_INVALID
|
|
71079
|
+
*/
|
|
71080
|
+
401: BrowserError;
|
|
71081
|
+
/**
|
|
71082
|
+
* INSUFFICIENT_BALANCE / QUOTA_EXHAUSTED
|
|
71083
|
+
*/
|
|
71084
|
+
402: BrowserError;
|
|
71085
|
+
/**
|
|
71086
|
+
* PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
|
|
71087
|
+
*/
|
|
71088
|
+
403: BrowserError;
|
|
71089
|
+
/**
|
|
71090
|
+
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
69886
71091
|
*/
|
|
69887
71092
|
404: BrowserError;
|
|
69888
71093
|
/**
|
|
69889
71094
|
* SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
69890
71095
|
*/
|
|
69891
71096
|
409: BrowserError;
|
|
71097
|
+
/**
|
|
71098
|
+
* BROWSER_REVOKED
|
|
71099
|
+
*/
|
|
71100
|
+
410: BrowserError;
|
|
71101
|
+
/**
|
|
71102
|
+
* ACTION_RESULT_TOO_LARGE
|
|
71103
|
+
*/
|
|
71104
|
+
413: BrowserError;
|
|
71105
|
+
/**
|
|
71106
|
+
* CONCURRENCY_LIMIT / RATE_LIMITED / PROVIDER_CAPACITY
|
|
71107
|
+
*/
|
|
71108
|
+
429: BrowserError;
|
|
71109
|
+
/**
|
|
71110
|
+
* INTERNAL
|
|
71111
|
+
*/
|
|
71112
|
+
500: BrowserError;
|
|
71113
|
+
/**
|
|
71114
|
+
* NOT_IMPLEMENTED / PROVIDER_UNSUPPORTED
|
|
71115
|
+
*/
|
|
71116
|
+
501: BrowserError;
|
|
71117
|
+
/**
|
|
71118
|
+
* PROVIDER_FAILED
|
|
71119
|
+
*/
|
|
71120
|
+
502: BrowserError;
|
|
71121
|
+
/**
|
|
71122
|
+
* BROWSER_OFFLINE / SERVICE_UNAVAILABLE
|
|
71123
|
+
*/
|
|
71124
|
+
503: BrowserError;
|
|
71125
|
+
/**
|
|
71126
|
+
* ACTION_TIMEOUT
|
|
71127
|
+
*/
|
|
71128
|
+
504: BrowserError;
|
|
71129
|
+
};
|
|
71130
|
+
export type BrowserGetContextError = BrowserGetContextErrors[keyof BrowserGetContextErrors];
|
|
71131
|
+
export type BrowserGetContextResponses = {
|
|
71132
|
+
/**
|
|
71133
|
+
* 请求成功。
|
|
71134
|
+
*/
|
|
71135
|
+
200: BrowserContext;
|
|
71136
|
+
};
|
|
71137
|
+
export type BrowserGetContextResponse = BrowserGetContextResponses[keyof BrowserGetContextResponses];
|
|
71138
|
+
export type BrowserUpdateContextData = {
|
|
71139
|
+
body: {
|
|
71140
|
+
/**
|
|
71141
|
+
* 登录态名称;非空时为 1–128 个 ASCII 字母、数字或 . _ : -,在当前账户内唯一;空字符串表示不设名称或清除名称。
|
|
71142
|
+
*/
|
|
71143
|
+
name?: '' | unknown;
|
|
71144
|
+
/**
|
|
71145
|
+
* 自定义字符串标签;最多 32 项,键最多 128 个 UTF-8 字节,值最多 1024 个 UTF-8 字节。 更新时整体替换;空对象清除标签,省略则保留。
|
|
71146
|
+
*/
|
|
71147
|
+
labels?: {
|
|
71148
|
+
[key: string]: string;
|
|
71149
|
+
};
|
|
71150
|
+
/**
|
|
71151
|
+
* 给登录态绑定一个固定的外部代理(如住宅 IP),使用这个登录态的会话没有写 proxies 时都经它出网,让同一账号始终从同一个出口地址出去。只存保管库引用(password_secret),不存密码;会话自己写了 proxies 时以会话的为准。需要组织已开通容器后端,否则返回 501 PROVIDER_UNSUPPORTED。 更新时传 null 解除绑定,省略则保留原绑定。
|
|
71152
|
+
*/
|
|
71153
|
+
proxy?: {
|
|
71154
|
+
/**
|
|
71155
|
+
* 固定为 external:经一个你自己的外部 HTTP 代理出网。
|
|
71156
|
+
*/
|
|
71157
|
+
type: 'external';
|
|
71158
|
+
/**
|
|
71159
|
+
* 代理地址,host:port 或 http://host:port;只支持 HTTP 代理,不接受 socks5:// 等协议,也不接受 localhost 和内网、链路本地地址。
|
|
71160
|
+
*/
|
|
71161
|
+
server: string;
|
|
71162
|
+
/**
|
|
71163
|
+
* 代理用户名;有密码时才能填,填了就必须同时给出密码。
|
|
71164
|
+
*/
|
|
71165
|
+
username?: string;
|
|
71166
|
+
/**
|
|
71167
|
+
* 必须用这种形式:引用保管库里的代理密码,只在连接这个代理的主机时兑换,不会交给网页。登录态里只存引用,传明文 password 返回 400 INVALID_PARAMS。
|
|
71168
|
+
*/
|
|
71169
|
+
password_secret?: {
|
|
71170
|
+
/**
|
|
71171
|
+
* 保存代理密码的保管库 ID,以 vlt_ 开头。
|
|
71172
|
+
*/
|
|
71173
|
+
vault_id: string;
|
|
71174
|
+
/**
|
|
71175
|
+
* 保管库中该密码的密钥 ID(不是密码本身)。
|
|
71176
|
+
*/
|
|
71177
|
+
secret: string;
|
|
71178
|
+
};
|
|
71179
|
+
} | null;
|
|
71180
|
+
};
|
|
71181
|
+
path: {
|
|
71182
|
+
/**
|
|
71183
|
+
* 登录态 ID;使用创建或列出登录态返回的 id,以 bsc_ 开头。
|
|
71184
|
+
*/
|
|
71185
|
+
contextId: string;
|
|
71186
|
+
};
|
|
71187
|
+
query?: never;
|
|
71188
|
+
url: '/browser/v1/contexts/{contextId}';
|
|
71189
|
+
};
|
|
71190
|
+
export type BrowserUpdateContextErrors = {
|
|
71191
|
+
/**
|
|
71192
|
+
* INVALID_PARAMS / INVALID_FILTER / INVALID_PAGE_TOKEN
|
|
71193
|
+
*/
|
|
71194
|
+
400: BrowserError;
|
|
71195
|
+
/**
|
|
71196
|
+
* UNAUTHENTICATED / CONNECT_SIGNATURE_INVALID
|
|
71197
|
+
*/
|
|
71198
|
+
401: BrowserError;
|
|
71199
|
+
/**
|
|
71200
|
+
* INSUFFICIENT_BALANCE / QUOTA_EXHAUSTED
|
|
71201
|
+
*/
|
|
71202
|
+
402: BrowserError;
|
|
71203
|
+
/**
|
|
71204
|
+
* PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
|
|
71205
|
+
*/
|
|
71206
|
+
403: BrowserError;
|
|
71207
|
+
/**
|
|
71208
|
+
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
71209
|
+
*/
|
|
71210
|
+
404: BrowserError;
|
|
71211
|
+
/**
|
|
71212
|
+
* SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
71213
|
+
*/
|
|
71214
|
+
409: BrowserError;
|
|
71215
|
+
/**
|
|
71216
|
+
* BROWSER_REVOKED
|
|
71217
|
+
*/
|
|
71218
|
+
410: BrowserError;
|
|
71219
|
+
/**
|
|
71220
|
+
* ACTION_RESULT_TOO_LARGE
|
|
71221
|
+
*/
|
|
71222
|
+
413: BrowserError;
|
|
71223
|
+
/**
|
|
71224
|
+
* CONCURRENCY_LIMIT / RATE_LIMITED / PROVIDER_CAPACITY
|
|
71225
|
+
*/
|
|
71226
|
+
429: BrowserError;
|
|
71227
|
+
/**
|
|
71228
|
+
* INTERNAL
|
|
71229
|
+
*/
|
|
71230
|
+
500: BrowserError;
|
|
71231
|
+
/**
|
|
71232
|
+
* NOT_IMPLEMENTED / PROVIDER_UNSUPPORTED
|
|
71233
|
+
*/
|
|
71234
|
+
501: BrowserError;
|
|
71235
|
+
/**
|
|
71236
|
+
* PROVIDER_FAILED
|
|
71237
|
+
*/
|
|
71238
|
+
502: BrowserError;
|
|
71239
|
+
/**
|
|
71240
|
+
* BROWSER_OFFLINE / SERVICE_UNAVAILABLE
|
|
71241
|
+
*/
|
|
71242
|
+
503: BrowserError;
|
|
71243
|
+
/**
|
|
71244
|
+
* ACTION_TIMEOUT
|
|
71245
|
+
*/
|
|
71246
|
+
504: BrowserError;
|
|
71247
|
+
};
|
|
71248
|
+
export type BrowserUpdateContextError = BrowserUpdateContextErrors[keyof BrowserUpdateContextErrors];
|
|
71249
|
+
export type BrowserUpdateContextResponses = {
|
|
71250
|
+
/**
|
|
71251
|
+
* 请求成功。
|
|
71252
|
+
*/
|
|
71253
|
+
200: BrowserContext;
|
|
71254
|
+
};
|
|
71255
|
+
export type BrowserUpdateContextResponse = BrowserUpdateContextResponses[keyof BrowserUpdateContextResponses];
|
|
71256
|
+
export type BrowserCreateByobPairingData = {
|
|
71257
|
+
body?: never;
|
|
71258
|
+
path?: never;
|
|
71259
|
+
query?: never;
|
|
71260
|
+
url: '/browser/v1/byob/pairings';
|
|
71261
|
+
};
|
|
71262
|
+
export type BrowserCreateByobPairingErrors = {
|
|
71263
|
+
/**
|
|
71264
|
+
* INVALID_PARAMS / INVALID_FILTER / INVALID_PAGE_TOKEN
|
|
71265
|
+
*/
|
|
71266
|
+
400: BrowserError;
|
|
71267
|
+
/**
|
|
71268
|
+
* UNAUTHENTICATED / CONNECT_SIGNATURE_INVALID
|
|
71269
|
+
*/
|
|
71270
|
+
401: BrowserError;
|
|
71271
|
+
/**
|
|
71272
|
+
* INSUFFICIENT_BALANCE / QUOTA_EXHAUSTED
|
|
71273
|
+
*/
|
|
71274
|
+
402: BrowserError;
|
|
71275
|
+
/**
|
|
71276
|
+
* PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
|
|
71277
|
+
*/
|
|
71278
|
+
403: BrowserError;
|
|
71279
|
+
/**
|
|
71280
|
+
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
71281
|
+
*/
|
|
71282
|
+
404: BrowserError;
|
|
71283
|
+
/**
|
|
71284
|
+
* SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
71285
|
+
*/
|
|
71286
|
+
409: BrowserError;
|
|
71287
|
+
/**
|
|
71288
|
+
* BROWSER_REVOKED
|
|
71289
|
+
*/
|
|
71290
|
+
410: BrowserError;
|
|
69892
71291
|
/**
|
|
69893
71292
|
* ACTION_RESULT_TOO_LARGE
|
|
69894
71293
|
*/
|
|
@@ -69910,7 +71309,7 @@ export type BrowserCompleteHandoffErrors = {
|
|
|
69910
71309
|
*/
|
|
69911
71310
|
502: BrowserError;
|
|
69912
71311
|
/**
|
|
69913
|
-
* SERVICE_UNAVAILABLE
|
|
71312
|
+
* BROWSER_OFFLINE / SERVICE_UNAVAILABLE
|
|
69914
71313
|
*/
|
|
69915
71314
|
503: BrowserError;
|
|
69916
71315
|
/**
|
|
@@ -69918,35 +71317,30 @@ export type BrowserCompleteHandoffErrors = {
|
|
|
69918
71317
|
*/
|
|
69919
71318
|
504: BrowserError;
|
|
69920
71319
|
};
|
|
69921
|
-
export type
|
|
69922
|
-
export type
|
|
71320
|
+
export type BrowserCreateByobPairingError = BrowserCreateByobPairingErrors[keyof BrowserCreateByobPairingErrors];
|
|
71321
|
+
export type BrowserCreateByobPairingResponses = {
|
|
69923
71322
|
/**
|
|
69924
71323
|
* 请求成功。
|
|
69925
71324
|
*/
|
|
69926
|
-
|
|
71325
|
+
201: BrowserByobPairing;
|
|
69927
71326
|
};
|
|
69928
|
-
export type
|
|
69929
|
-
export type
|
|
69930
|
-
body
|
|
69931
|
-
|
|
69932
|
-
|
|
69933
|
-
*/
|
|
69934
|
-
viewerId: string;
|
|
71327
|
+
export type BrowserCreateByobPairingResponse = BrowserCreateByobPairingResponses[keyof BrowserCreateByobPairingResponses];
|
|
71328
|
+
export type BrowserListByobBrowsersData = {
|
|
71329
|
+
body?: never;
|
|
71330
|
+
path?: never;
|
|
71331
|
+
query?: {
|
|
69935
71332
|
/**
|
|
69936
|
-
*
|
|
71333
|
+
* 上一页返回的 nextCursor,原样传入;省略时读取第一页。
|
|
69937
71334
|
*/
|
|
69938
|
-
|
|
69939
|
-
};
|
|
69940
|
-
path: {
|
|
71335
|
+
cursor?: string;
|
|
69941
71336
|
/**
|
|
69942
|
-
*
|
|
71337
|
+
* 每页最多返回的浏览器数量;默认 50,范围 1–100。
|
|
69943
71338
|
*/
|
|
69944
|
-
|
|
71339
|
+
limit?: number;
|
|
69945
71340
|
};
|
|
69946
|
-
|
|
69947
|
-
url: '/browser/v1/sessions/{sessionId}/viewer';
|
|
71341
|
+
url: '/browser/v1/byob/browsers';
|
|
69948
71342
|
};
|
|
69949
|
-
export type
|
|
71343
|
+
export type BrowserListByobBrowsersErrors = {
|
|
69950
71344
|
/**
|
|
69951
71345
|
* INVALID_PARAMS / INVALID_FILTER / INVALID_PAGE_TOKEN
|
|
69952
71346
|
*/
|
|
@@ -69964,13 +71358,17 @@ export type BrowserViewerHeartbeatErrors = {
|
|
|
69964
71358
|
*/
|
|
69965
71359
|
403: BrowserError;
|
|
69966
71360
|
/**
|
|
69967
|
-
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
71361
|
+
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
69968
71362
|
*/
|
|
69969
71363
|
404: BrowserError;
|
|
69970
71364
|
/**
|
|
69971
71365
|
* SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
69972
71366
|
*/
|
|
69973
71367
|
409: BrowserError;
|
|
71368
|
+
/**
|
|
71369
|
+
* BROWSER_REVOKED
|
|
71370
|
+
*/
|
|
71371
|
+
410: BrowserError;
|
|
69974
71372
|
/**
|
|
69975
71373
|
* ACTION_RESULT_TOO_LARGE
|
|
69976
71374
|
*/
|
|
@@ -69992,7 +71390,7 @@ export type BrowserViewerHeartbeatErrors = {
|
|
|
69992
71390
|
*/
|
|
69993
71391
|
502: BrowserError;
|
|
69994
71392
|
/**
|
|
69995
|
-
* SERVICE_UNAVAILABLE
|
|
71393
|
+
* BROWSER_OFFLINE / SERVICE_UNAVAILABLE
|
|
69996
71394
|
*/
|
|
69997
71395
|
503: BrowserError;
|
|
69998
71396
|
/**
|
|
@@ -70000,31 +71398,35 @@ export type BrowserViewerHeartbeatErrors = {
|
|
|
70000
71398
|
*/
|
|
70001
71399
|
504: BrowserError;
|
|
70002
71400
|
};
|
|
70003
|
-
export type
|
|
70004
|
-
export type
|
|
71401
|
+
export type BrowserListByobBrowsersError = BrowserListByobBrowsersErrors[keyof BrowserListByobBrowsersErrors];
|
|
71402
|
+
export type BrowserListByobBrowsersResponses = {
|
|
70005
71403
|
/**
|
|
70006
|
-
*
|
|
71404
|
+
* 分页列出的自带浏览器,按 ID 升序。
|
|
70007
71405
|
*/
|
|
70008
71406
|
200: {
|
|
70009
71407
|
/**
|
|
70010
|
-
*
|
|
71408
|
+
* 本页的自带浏览器;已断开的不在列表里。
|
|
70011
71409
|
*/
|
|
70012
|
-
|
|
71410
|
+
data: Array<BrowserByobBrowser>;
|
|
71411
|
+
/**
|
|
71412
|
+
* 下一页游标;原样传入 cursor,null 表示没有更多结果。
|
|
71413
|
+
*/
|
|
71414
|
+
nextCursor: string | null;
|
|
70013
71415
|
};
|
|
70014
71416
|
};
|
|
70015
|
-
export type
|
|
70016
|
-
export type
|
|
71417
|
+
export type BrowserListByobBrowsersResponse = BrowserListByobBrowsersResponses[keyof BrowserListByobBrowsersResponses];
|
|
71418
|
+
export type BrowserGetByobBrowserData = {
|
|
70017
71419
|
body?: never;
|
|
70018
71420
|
path: {
|
|
70019
71421
|
/**
|
|
70020
|
-
*
|
|
71422
|
+
* 自带浏览器 ID,以 byb_ 开头;使用配对认领或列出自带浏览器返回的 id。
|
|
70021
71423
|
*/
|
|
70022
|
-
|
|
71424
|
+
browser_id: string;
|
|
70023
71425
|
};
|
|
70024
71426
|
query?: never;
|
|
70025
|
-
url: '/browser/v1/
|
|
71427
|
+
url: '/browser/v1/byob/browsers/{browser_id}';
|
|
70026
71428
|
};
|
|
70027
|
-
export type
|
|
71429
|
+
export type BrowserGetByobBrowserErrors = {
|
|
70028
71430
|
/**
|
|
70029
71431
|
* INVALID_PARAMS / INVALID_FILTER / INVALID_PAGE_TOKEN
|
|
70030
71432
|
*/
|
|
@@ -70042,7 +71444,7 @@ export type BrowserGetSessionFrameErrors = {
|
|
|
70042
71444
|
*/
|
|
70043
71445
|
403: BrowserError;
|
|
70044
71446
|
/**
|
|
70045
|
-
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
71447
|
+
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
70046
71448
|
*/
|
|
70047
71449
|
404: BrowserError;
|
|
70048
71450
|
/**
|
|
@@ -70050,86 +71452,9 @@ export type BrowserGetSessionFrameErrors = {
|
|
|
70050
71452
|
*/
|
|
70051
71453
|
409: BrowserError;
|
|
70052
71454
|
/**
|
|
70053
|
-
*
|
|
70054
|
-
*/
|
|
70055
|
-
413: BrowserError;
|
|
70056
|
-
/**
|
|
70057
|
-
* CONCURRENCY_LIMIT / RATE_LIMITED / PROVIDER_CAPACITY
|
|
70058
|
-
*/
|
|
70059
|
-
429: BrowserError;
|
|
70060
|
-
/**
|
|
70061
|
-
* INTERNAL
|
|
70062
|
-
*/
|
|
70063
|
-
500: BrowserError;
|
|
70064
|
-
/**
|
|
70065
|
-
* NOT_IMPLEMENTED / PROVIDER_UNSUPPORTED
|
|
70066
|
-
*/
|
|
70067
|
-
501: BrowserError;
|
|
70068
|
-
/**
|
|
70069
|
-
* PROVIDER_FAILED
|
|
70070
|
-
*/
|
|
70071
|
-
502: BrowserError;
|
|
70072
|
-
/**
|
|
70073
|
-
* SERVICE_UNAVAILABLE
|
|
71455
|
+
* BROWSER_REVOKED
|
|
70074
71456
|
*/
|
|
70075
|
-
|
|
70076
|
-
/**
|
|
70077
|
-
* ACTION_TIMEOUT
|
|
70078
|
-
*/
|
|
70079
|
-
504: BrowserError;
|
|
70080
|
-
};
|
|
70081
|
-
export type BrowserGetSessionFrameError = BrowserGetSessionFrameErrors[keyof BrowserGetSessionFrameErrors];
|
|
70082
|
-
export type BrowserGetSessionFrameResponses = {
|
|
70083
|
-
/**
|
|
70084
|
-
* JPEG 画面帧,最多 2 MiB。
|
|
70085
|
-
*/
|
|
70086
|
-
200: Blob | File;
|
|
70087
|
-
};
|
|
70088
|
-
export type BrowserGetSessionFrameResponse = BrowserGetSessionFrameResponses[keyof BrowserGetSessionFrameResponses];
|
|
70089
|
-
export type BrowserListContextsData = {
|
|
70090
|
-
body?: never;
|
|
70091
|
-
path?: never;
|
|
70092
|
-
query?: {
|
|
70093
|
-
/**
|
|
70094
|
-
* 按登录态名称精确匹配;名称在当前账户内唯一,所以最多返回一条。省略时列出全部登录态。
|
|
70095
|
-
*/
|
|
70096
|
-
name?: string;
|
|
70097
|
-
/**
|
|
70098
|
-
* 登录态 ID;使用创建或列出登录态返回的 id,以 bsc_ 开头。
|
|
70099
|
-
*/
|
|
70100
|
-
cursor?: string;
|
|
70101
|
-
/**
|
|
70102
|
-
* 每页最多返回的登录态数量;默认 25,范围 1–100。
|
|
70103
|
-
*/
|
|
70104
|
-
limit?: number;
|
|
70105
|
-
};
|
|
70106
|
-
url: '/browser/v1/contexts';
|
|
70107
|
-
};
|
|
70108
|
-
export type BrowserListContextsErrors = {
|
|
70109
|
-
/**
|
|
70110
|
-
* INVALID_PARAMS / INVALID_FILTER / INVALID_PAGE_TOKEN
|
|
70111
|
-
*/
|
|
70112
|
-
400: BrowserError;
|
|
70113
|
-
/**
|
|
70114
|
-
* UNAUTHENTICATED / CONNECT_SIGNATURE_INVALID
|
|
70115
|
-
*/
|
|
70116
|
-
401: BrowserError;
|
|
70117
|
-
/**
|
|
70118
|
-
* INSUFFICIENT_BALANCE / QUOTA_EXHAUSTED
|
|
70119
|
-
*/
|
|
70120
|
-
402: BrowserError;
|
|
70121
|
-
/**
|
|
70122
|
-
* PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
|
|
70123
|
-
*/
|
|
70124
|
-
403: BrowserError;
|
|
70125
|
-
/**
|
|
70126
|
-
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
70127
|
-
*/
|
|
70128
|
-
404: BrowserError;
|
|
70129
|
-
/**
|
|
70130
|
-
* SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
70131
|
-
*/
|
|
70132
|
-
409: BrowserError;
|
|
71457
|
+
410: BrowserError;
|
|
70133
71458
|
/**
|
|
70134
71459
|
* ACTION_RESULT_TOO_LARGE
|
|
70135
71460
|
*/
|
|
@@ -70151,7 +71476,7 @@ export type BrowserListContextsErrors = {
|
|
|
70151
71476
|
*/
|
|
70152
71477
|
502: BrowserError;
|
|
70153
71478
|
/**
|
|
70154
|
-
* SERVICE_UNAVAILABLE
|
|
71479
|
+
* BROWSER_OFFLINE / SERVICE_UNAVAILABLE
|
|
70155
71480
|
*/
|
|
70156
71481
|
503: BrowserError;
|
|
70157
71482
|
/**
|
|
@@ -70159,45 +71484,31 @@ export type BrowserListContextsErrors = {
|
|
|
70159
71484
|
*/
|
|
70160
71485
|
504: BrowserError;
|
|
70161
71486
|
};
|
|
70162
|
-
export type
|
|
70163
|
-
export type
|
|
71487
|
+
export type BrowserGetByobBrowserError = BrowserGetByobBrowserErrors[keyof BrowserGetByobBrowserErrors];
|
|
71488
|
+
export type BrowserGetByobBrowserResponses = {
|
|
70164
71489
|
/**
|
|
70165
|
-
*
|
|
71490
|
+
* 请求成功。
|
|
70166
71491
|
*/
|
|
70167
|
-
200:
|
|
70168
|
-
/**
|
|
70169
|
-
* 本页查询匹配的记录;没有匹配项时为空数组。
|
|
70170
|
-
*/
|
|
70171
|
-
data: Array<BrowserContext>;
|
|
70172
|
-
/**
|
|
70173
|
-
* 下一页游标;原样传入 cursor,null 表示没有更多结果。
|
|
70174
|
-
*/
|
|
70175
|
-
nextCursor: string | null;
|
|
70176
|
-
};
|
|
71492
|
+
200: BrowserByobBrowser;
|
|
70177
71493
|
};
|
|
70178
|
-
export type
|
|
70179
|
-
export type
|
|
71494
|
+
export type BrowserGetByobBrowserResponse = BrowserGetByobBrowserResponses[keyof BrowserGetByobBrowserResponses];
|
|
71495
|
+
export type BrowserUpdateByobBrowserData = {
|
|
70180
71496
|
body: {
|
|
70181
71497
|
/**
|
|
70182
|
-
*
|
|
71498
|
+
* 新的显示名称,1–80 个字符。
|
|
70183
71499
|
*/
|
|
70184
|
-
|
|
70185
|
-
|
|
70186
|
-
|
|
70187
|
-
*/
|
|
70188
|
-
name?: '' | unknown;
|
|
71500
|
+
name?: string;
|
|
71501
|
+
};
|
|
71502
|
+
path: {
|
|
70189
71503
|
/**
|
|
70190
|
-
*
|
|
71504
|
+
* 自带浏览器 ID,以 byb_ 开头;使用配对认领或列出自带浏览器返回的 id。
|
|
70191
71505
|
*/
|
|
70192
|
-
|
|
70193
|
-
[key: string]: string;
|
|
70194
|
-
};
|
|
71506
|
+
browser_id: string;
|
|
70195
71507
|
};
|
|
70196
|
-
path?: never;
|
|
70197
71508
|
query?: never;
|
|
70198
|
-
url: '/browser/v1/
|
|
71509
|
+
url: '/browser/v1/byob/browsers/{browser_id}';
|
|
70199
71510
|
};
|
|
70200
|
-
export type
|
|
71511
|
+
export type BrowserUpdateByobBrowserErrors = {
|
|
70201
71512
|
/**
|
|
70202
71513
|
* INVALID_PARAMS / INVALID_FILTER / INVALID_PAGE_TOKEN
|
|
70203
71514
|
*/
|
|
@@ -70215,13 +71526,17 @@ export type BrowserCreateContextErrors = {
|
|
|
70215
71526
|
*/
|
|
70216
71527
|
403: BrowserError;
|
|
70217
71528
|
/**
|
|
70218
|
-
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
71529
|
+
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
70219
71530
|
*/
|
|
70220
71531
|
404: BrowserError;
|
|
70221
71532
|
/**
|
|
70222
71533
|
* SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
70223
71534
|
*/
|
|
70224
71535
|
409: BrowserError;
|
|
71536
|
+
/**
|
|
71537
|
+
* BROWSER_REVOKED
|
|
71538
|
+
*/
|
|
71539
|
+
410: BrowserError;
|
|
70225
71540
|
/**
|
|
70226
71541
|
* ACTION_RESULT_TOO_LARGE
|
|
70227
71542
|
*/
|
|
@@ -70243,7 +71558,7 @@ export type BrowserCreateContextErrors = {
|
|
|
70243
71558
|
*/
|
|
70244
71559
|
502: BrowserError;
|
|
70245
71560
|
/**
|
|
70246
|
-
* SERVICE_UNAVAILABLE
|
|
71561
|
+
* BROWSER_OFFLINE / SERVICE_UNAVAILABLE
|
|
70247
71562
|
*/
|
|
70248
71563
|
503: BrowserError;
|
|
70249
71564
|
/**
|
|
@@ -70251,26 +71566,26 @@ export type BrowserCreateContextErrors = {
|
|
|
70251
71566
|
*/
|
|
70252
71567
|
504: BrowserError;
|
|
70253
71568
|
};
|
|
70254
|
-
export type
|
|
70255
|
-
export type
|
|
71569
|
+
export type BrowserUpdateByobBrowserError = BrowserUpdateByobBrowserErrors[keyof BrowserUpdateByobBrowserErrors];
|
|
71570
|
+
export type BrowserUpdateByobBrowserResponses = {
|
|
70256
71571
|
/**
|
|
70257
71572
|
* 请求成功。
|
|
70258
71573
|
*/
|
|
70259
|
-
|
|
71574
|
+
200: BrowserByobBrowser;
|
|
70260
71575
|
};
|
|
70261
|
-
export type
|
|
70262
|
-
export type
|
|
71576
|
+
export type BrowserUpdateByobBrowserResponse = BrowserUpdateByobBrowserResponses[keyof BrowserUpdateByobBrowserResponses];
|
|
71577
|
+
export type BrowserDisconnectByobBrowserData = {
|
|
70263
71578
|
body?: never;
|
|
70264
71579
|
path: {
|
|
70265
71580
|
/**
|
|
70266
|
-
*
|
|
71581
|
+
* 自带浏览器 ID,以 byb_ 开头;使用配对认领或列出自带浏览器返回的 id。
|
|
70267
71582
|
*/
|
|
70268
|
-
|
|
71583
|
+
browser_id: string;
|
|
70269
71584
|
};
|
|
70270
71585
|
query?: never;
|
|
70271
|
-
url: '/browser/v1/
|
|
71586
|
+
url: '/browser/v1/byob/browsers/{browser_id}/disconnect';
|
|
70272
71587
|
};
|
|
70273
|
-
export type
|
|
71588
|
+
export type BrowserDisconnectByobBrowserErrors = {
|
|
70274
71589
|
/**
|
|
70275
71590
|
* INVALID_PARAMS / INVALID_FILTER / INVALID_PAGE_TOKEN
|
|
70276
71591
|
*/
|
|
@@ -70288,13 +71603,17 @@ export type BrowserDeleteContextErrors = {
|
|
|
70288
71603
|
*/
|
|
70289
71604
|
403: BrowserError;
|
|
70290
71605
|
/**
|
|
70291
|
-
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
71606
|
+
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
70292
71607
|
*/
|
|
70293
71608
|
404: BrowserError;
|
|
70294
71609
|
/**
|
|
70295
71610
|
* SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
70296
71611
|
*/
|
|
70297
71612
|
409: BrowserError;
|
|
71613
|
+
/**
|
|
71614
|
+
* BROWSER_REVOKED
|
|
71615
|
+
*/
|
|
71616
|
+
410: BrowserError;
|
|
70298
71617
|
/**
|
|
70299
71618
|
* ACTION_RESULT_TOO_LARGE
|
|
70300
71619
|
*/
|
|
@@ -70316,7 +71635,7 @@ export type BrowserDeleteContextErrors = {
|
|
|
70316
71635
|
*/
|
|
70317
71636
|
502: BrowserError;
|
|
70318
71637
|
/**
|
|
70319
|
-
* SERVICE_UNAVAILABLE
|
|
71638
|
+
* BROWSER_OFFLINE / SERVICE_UNAVAILABLE
|
|
70320
71639
|
*/
|
|
70321
71640
|
503: BrowserError;
|
|
70322
71641
|
/**
|
|
@@ -70324,31 +71643,26 @@ export type BrowserDeleteContextErrors = {
|
|
|
70324
71643
|
*/
|
|
70325
71644
|
504: BrowserError;
|
|
70326
71645
|
};
|
|
70327
|
-
export type
|
|
70328
|
-
export type
|
|
71646
|
+
export type BrowserDisconnectByobBrowserError = BrowserDisconnectByobBrowserErrors[keyof BrowserDisconnectByobBrowserErrors];
|
|
71647
|
+
export type BrowserDisconnectByobBrowserResponses = {
|
|
70329
71648
|
/**
|
|
70330
71649
|
* 请求成功。
|
|
70331
71650
|
*/
|
|
70332
|
-
200:
|
|
70333
|
-
/**
|
|
70334
|
-
* 登录态及保存内容已删除,成功时固定返回 true。
|
|
70335
|
-
*/
|
|
70336
|
-
deleted: true;
|
|
70337
|
-
};
|
|
71651
|
+
200: BrowserByobBrowser;
|
|
70338
71652
|
};
|
|
70339
|
-
export type
|
|
70340
|
-
export type
|
|
71653
|
+
export type BrowserDisconnectByobBrowserResponse = BrowserDisconnectByobBrowserResponses[keyof BrowserDisconnectByobBrowserResponses];
|
|
71654
|
+
export type BrowserReadByobPairingData = {
|
|
70341
71655
|
body?: never;
|
|
70342
71656
|
path: {
|
|
70343
71657
|
/**
|
|
70344
|
-
*
|
|
71658
|
+
* 8 位配对码,来自创建配对码的结果。
|
|
70345
71659
|
*/
|
|
70346
|
-
|
|
71660
|
+
code: string;
|
|
70347
71661
|
};
|
|
70348
71662
|
query?: never;
|
|
70349
|
-
url: '/browser/v1/
|
|
71663
|
+
url: '/browser/v1/byob/pairings/{code}';
|
|
70350
71664
|
};
|
|
70351
|
-
export type
|
|
71665
|
+
export type BrowserReadByobPairingErrors = {
|
|
70352
71666
|
/**
|
|
70353
71667
|
* INVALID_PARAMS / INVALID_FILTER / INVALID_PAGE_TOKEN
|
|
70354
71668
|
*/
|
|
@@ -70366,13 +71680,17 @@ export type BrowserGetContextErrors = {
|
|
|
70366
71680
|
*/
|
|
70367
71681
|
403: BrowserError;
|
|
70368
71682
|
/**
|
|
70369
|
-
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
71683
|
+
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
70370
71684
|
*/
|
|
70371
71685
|
404: BrowserError;
|
|
70372
71686
|
/**
|
|
70373
71687
|
* SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
70374
71688
|
*/
|
|
70375
71689
|
409: BrowserError;
|
|
71690
|
+
/**
|
|
71691
|
+
* BROWSER_REVOKED
|
|
71692
|
+
*/
|
|
71693
|
+
410: BrowserError;
|
|
70376
71694
|
/**
|
|
70377
71695
|
* ACTION_RESULT_TOO_LARGE
|
|
70378
71696
|
*/
|
|
@@ -70394,7 +71712,7 @@ export type BrowserGetContextErrors = {
|
|
|
70394
71712
|
*/
|
|
70395
71713
|
502: BrowserError;
|
|
70396
71714
|
/**
|
|
70397
|
-
* SERVICE_UNAVAILABLE
|
|
71715
|
+
* BROWSER_OFFLINE / SERVICE_UNAVAILABLE
|
|
70398
71716
|
*/
|
|
70399
71717
|
503: BrowserError;
|
|
70400
71718
|
/**
|
|
@@ -70402,37 +71720,26 @@ export type BrowserGetContextErrors = {
|
|
|
70402
71720
|
*/
|
|
70403
71721
|
504: BrowserError;
|
|
70404
71722
|
};
|
|
70405
|
-
export type
|
|
70406
|
-
export type
|
|
71723
|
+
export type BrowserReadByobPairingError = BrowserReadByobPairingErrors[keyof BrowserReadByobPairingErrors];
|
|
71724
|
+
export type BrowserReadByobPairingResponses = {
|
|
70407
71725
|
/**
|
|
70408
71726
|
* 请求成功。
|
|
70409
71727
|
*/
|
|
70410
|
-
200:
|
|
71728
|
+
200: BrowserByobPairingView;
|
|
70411
71729
|
};
|
|
70412
|
-
export type
|
|
70413
|
-
export type
|
|
70414
|
-
body:
|
|
70415
|
-
/**
|
|
70416
|
-
* 登录态名称;非空时为 1–128 个 ASCII 字母、数字或 . _ : -,在当前账户内唯一;空字符串表示不设名称或清除名称。
|
|
70417
|
-
*/
|
|
70418
|
-
name?: '' | unknown;
|
|
70419
|
-
/**
|
|
70420
|
-
* 自定义字符串标签;最多 32 项,键最多 128 个 UTF-8 字节,值最多 1024 个 UTF-8 字节。 更新时整体替换;空对象清除标签,省略则保留。
|
|
70421
|
-
*/
|
|
70422
|
-
labels?: {
|
|
70423
|
-
[key: string]: string;
|
|
70424
|
-
};
|
|
70425
|
-
};
|
|
71730
|
+
export type BrowserReadByobPairingResponse = BrowserReadByobPairingResponses[keyof BrowserReadByobPairingResponses];
|
|
71731
|
+
export type BrowserClaimByobPairingData = {
|
|
71732
|
+
body: BrowserByobClaim;
|
|
70426
71733
|
path: {
|
|
70427
71734
|
/**
|
|
70428
|
-
*
|
|
71735
|
+
* 8 位配对码,来自创建配对码的结果。
|
|
70429
71736
|
*/
|
|
70430
|
-
|
|
71737
|
+
code: string;
|
|
70431
71738
|
};
|
|
70432
71739
|
query?: never;
|
|
70433
|
-
url: '/browser/v1/
|
|
71740
|
+
url: '/browser/v1/byob/pairings/{code}/claim';
|
|
70434
71741
|
};
|
|
70435
|
-
export type
|
|
71742
|
+
export type BrowserClaimByobPairingErrors = {
|
|
70436
71743
|
/**
|
|
70437
71744
|
* INVALID_PARAMS / INVALID_FILTER / INVALID_PAGE_TOKEN
|
|
70438
71745
|
*/
|
|
@@ -70450,13 +71757,17 @@ export type BrowserUpdateContextErrors = {
|
|
|
70450
71757
|
*/
|
|
70451
71758
|
403: BrowserError;
|
|
70452
71759
|
/**
|
|
70453
|
-
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
71760
|
+
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
70454
71761
|
*/
|
|
70455
71762
|
404: BrowserError;
|
|
70456
71763
|
/**
|
|
70457
71764
|
* SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
70458
71765
|
*/
|
|
70459
71766
|
409: BrowserError;
|
|
71767
|
+
/**
|
|
71768
|
+
* BROWSER_REVOKED
|
|
71769
|
+
*/
|
|
71770
|
+
410: BrowserError;
|
|
70460
71771
|
/**
|
|
70461
71772
|
* ACTION_RESULT_TOO_LARGE
|
|
70462
71773
|
*/
|
|
@@ -70478,7 +71789,7 @@ export type BrowserUpdateContextErrors = {
|
|
|
70478
71789
|
*/
|
|
70479
71790
|
502: BrowserError;
|
|
70480
71791
|
/**
|
|
70481
|
-
* SERVICE_UNAVAILABLE
|
|
71792
|
+
* BROWSER_OFFLINE / SERVICE_UNAVAILABLE
|
|
70482
71793
|
*/
|
|
70483
71794
|
503: BrowserError;
|
|
70484
71795
|
/**
|
|
@@ -70486,14 +71797,14 @@ export type BrowserUpdateContextErrors = {
|
|
|
70486
71797
|
*/
|
|
70487
71798
|
504: BrowserError;
|
|
70488
71799
|
};
|
|
70489
|
-
export type
|
|
70490
|
-
export type
|
|
71800
|
+
export type BrowserClaimByobPairingError = BrowserClaimByobPairingErrors[keyof BrowserClaimByobPairingErrors];
|
|
71801
|
+
export type BrowserClaimByobPairingResponses = {
|
|
70491
71802
|
/**
|
|
70492
|
-
*
|
|
71803
|
+
* 认领成功。
|
|
70493
71804
|
*/
|
|
70494
|
-
|
|
71805
|
+
201: BrowserByobClaimResult;
|
|
70495
71806
|
};
|
|
70496
|
-
export type
|
|
71807
|
+
export type BrowserClaimByobPairingResponse = BrowserClaimByobPairingResponses[keyof BrowserClaimByobPairingResponses];
|
|
70497
71808
|
export type BrowserConnectData = {
|
|
70498
71809
|
body?: never;
|
|
70499
71810
|
path?: never;
|
|
@@ -70555,13 +71866,17 @@ export type BrowserConnectErrors = {
|
|
|
70555
71866
|
*/
|
|
70556
71867
|
403: BrowserError;
|
|
70557
71868
|
/**
|
|
70558
|
-
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
71869
|
+
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
70559
71870
|
*/
|
|
70560
71871
|
404: BrowserError;
|
|
70561
71872
|
/**
|
|
70562
71873
|
* SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
70563
71874
|
*/
|
|
70564
71875
|
409: BrowserError;
|
|
71876
|
+
/**
|
|
71877
|
+
* BROWSER_REVOKED
|
|
71878
|
+
*/
|
|
71879
|
+
410: BrowserError;
|
|
70565
71880
|
/**
|
|
70566
71881
|
* ACTION_RESULT_TOO_LARGE
|
|
70567
71882
|
*/
|
|
@@ -70583,7 +71898,7 @@ export type BrowserConnectErrors = {
|
|
|
70583
71898
|
*/
|
|
70584
71899
|
502: BrowserError;
|
|
70585
71900
|
/**
|
|
70586
|
-
* SERVICE_UNAVAILABLE
|
|
71901
|
+
* BROWSER_OFFLINE / SERVICE_UNAVAILABLE
|
|
70587
71902
|
*/
|
|
70588
71903
|
503: BrowserError;
|
|
70589
71904
|
/**
|
|
@@ -70630,13 +71945,17 @@ export type BrowserLiveViewErrors = {
|
|
|
70630
71945
|
*/
|
|
70631
71946
|
403: BrowserError;
|
|
70632
71947
|
/**
|
|
70633
|
-
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
71948
|
+
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
70634
71949
|
*/
|
|
70635
71950
|
404: BrowserError;
|
|
70636
71951
|
/**
|
|
70637
71952
|
* SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
70638
71953
|
*/
|
|
70639
71954
|
409: BrowserError;
|
|
71955
|
+
/**
|
|
71956
|
+
* BROWSER_REVOKED
|
|
71957
|
+
*/
|
|
71958
|
+
410: BrowserError;
|
|
70640
71959
|
/**
|
|
70641
71960
|
* ACTION_RESULT_TOO_LARGE
|
|
70642
71961
|
*/
|
|
@@ -70658,7 +71977,7 @@ export type BrowserLiveViewErrors = {
|
|
|
70658
71977
|
*/
|
|
70659
71978
|
502: BrowserError;
|
|
70660
71979
|
/**
|
|
70661
|
-
* SERVICE_UNAVAILABLE
|
|
71980
|
+
* BROWSER_OFFLINE / SERVICE_UNAVAILABLE
|
|
70662
71981
|
*/
|
|
70663
71982
|
503: BrowserError;
|
|
70664
71983
|
/**
|
|
@@ -70696,13 +72015,17 @@ export type BrowserStreamSessionErrors = {
|
|
|
70696
72015
|
*/
|
|
70697
72016
|
403: BrowserError;
|
|
70698
72017
|
/**
|
|
70699
|
-
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
72018
|
+
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
70700
72019
|
*/
|
|
70701
72020
|
404: BrowserError;
|
|
70702
72021
|
/**
|
|
70703
72022
|
* SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
70704
72023
|
*/
|
|
70705
72024
|
409: BrowserError;
|
|
72025
|
+
/**
|
|
72026
|
+
* BROWSER_REVOKED
|
|
72027
|
+
*/
|
|
72028
|
+
410: BrowserError;
|
|
70706
72029
|
/**
|
|
70707
72030
|
* ACTION_RESULT_TOO_LARGE
|
|
70708
72031
|
*/
|
|
@@ -70724,7 +72047,7 @@ export type BrowserStreamSessionErrors = {
|
|
|
70724
72047
|
*/
|
|
70725
72048
|
502: BrowserError;
|
|
70726
72049
|
/**
|
|
70727
|
-
* SERVICE_UNAVAILABLE
|
|
72050
|
+
* BROWSER_OFFLINE / SERVICE_UNAVAILABLE
|
|
70728
72051
|
*/
|
|
70729
72052
|
503: BrowserError;
|
|
70730
72053
|
/**
|
|
@@ -70769,13 +72092,17 @@ export type BrowserStreamSessionFramesErrors = {
|
|
|
70769
72092
|
*/
|
|
70770
72093
|
403: BrowserError;
|
|
70771
72094
|
/**
|
|
70772
|
-
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
72095
|
+
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
70773
72096
|
*/
|
|
70774
72097
|
404: BrowserError;
|
|
70775
72098
|
/**
|
|
70776
72099
|
* SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
70777
72100
|
*/
|
|
70778
72101
|
409: BrowserError;
|
|
72102
|
+
/**
|
|
72103
|
+
* BROWSER_REVOKED
|
|
72104
|
+
*/
|
|
72105
|
+
410: BrowserError;
|
|
70779
72106
|
/**
|
|
70780
72107
|
* ACTION_RESULT_TOO_LARGE
|
|
70781
72108
|
*/
|
|
@@ -70797,7 +72124,7 @@ export type BrowserStreamSessionFramesErrors = {
|
|
|
70797
72124
|
*/
|
|
70798
72125
|
502: BrowserError;
|
|
70799
72126
|
/**
|
|
70800
|
-
* SERVICE_UNAVAILABLE
|
|
72127
|
+
* BROWSER_OFFLINE / SERVICE_UNAVAILABLE
|
|
70801
72128
|
*/
|
|
70802
72129
|
503: BrowserError;
|
|
70803
72130
|
/**
|
|
@@ -79946,7 +81273,7 @@ export type ListByodDevicesResponses = {
|
|
|
79946
81273
|
*/
|
|
79947
81274
|
id: string;
|
|
79948
81275
|
/**
|
|
79949
|
-
* The device's platform, which decides the use faces it answers. A desktop (macos, linux) pairs
|
|
81276
|
+
* The device's platform, which decides the use faces it answers. A desktop (macos, linux) pairs like a phone; windows is not supported yet.
|
|
79950
81277
|
*/
|
|
79951
81278
|
platform: 'android' | 'macos' | 'linux';
|
|
79952
81279
|
/**
|
|
@@ -79994,6 +81321,10 @@ export type ListByodDevicesResponses = {
|
|
|
79994
81321
|
*/
|
|
79995
81322
|
agent: string;
|
|
79996
81323
|
}>;
|
|
81324
|
+
/**
|
|
81325
|
+
* 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.
|
|
81326
|
+
*/
|
|
81327
|
+
envd_version: string | null;
|
|
79997
81328
|
/**
|
|
79998
81329
|
* 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.
|
|
79999
81330
|
*/
|
|
@@ -80041,7 +81372,7 @@ export type GetByodDeviceResponses = {
|
|
|
80041
81372
|
*/
|
|
80042
81373
|
id: string;
|
|
80043
81374
|
/**
|
|
80044
|
-
* The device's platform, which decides the use faces it answers. A desktop (macos, linux) pairs
|
|
81375
|
+
* The device's platform, which decides the use faces it answers. A desktop (macos, linux) pairs like a phone; windows is not supported yet.
|
|
80045
81376
|
*/
|
|
80046
81377
|
platform: 'android' | 'macos' | 'linux';
|
|
80047
81378
|
/**
|
|
@@ -80089,6 +81420,10 @@ export type GetByodDeviceResponses = {
|
|
|
80089
81420
|
*/
|
|
80090
81421
|
agent: string;
|
|
80091
81422
|
}>;
|
|
81423
|
+
/**
|
|
81424
|
+
* 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.
|
|
81425
|
+
*/
|
|
81426
|
+
envd_version: string | null;
|
|
80092
81427
|
/**
|
|
80093
81428
|
* 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.
|
|
80094
81429
|
*/
|
|
@@ -80147,7 +81482,7 @@ export type UpdateByodDeviceResponses = {
|
|
|
80147
81482
|
*/
|
|
80148
81483
|
id: string;
|
|
80149
81484
|
/**
|
|
80150
|
-
* The device's platform, which decides the use faces it answers. A desktop (macos, linux) pairs
|
|
81485
|
+
* The device's platform, which decides the use faces it answers. A desktop (macos, linux) pairs like a phone; windows is not supported yet.
|
|
80151
81486
|
*/
|
|
80152
81487
|
platform: 'android' | 'macos' | 'linux';
|
|
80153
81488
|
/**
|
|
@@ -80195,6 +81530,10 @@ export type UpdateByodDeviceResponses = {
|
|
|
80195
81530
|
*/
|
|
80196
81531
|
agent: string;
|
|
80197
81532
|
}>;
|
|
81533
|
+
/**
|
|
81534
|
+
* 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.
|
|
81535
|
+
*/
|
|
81536
|
+
envd_version: string | null;
|
|
80198
81537
|
/**
|
|
80199
81538
|
* 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.
|
|
80200
81539
|
*/
|
|
@@ -80286,7 +81625,7 @@ export type ClaimByodPairingData = {
|
|
|
80286
81625
|
*/
|
|
80287
81626
|
body: {
|
|
80288
81627
|
/**
|
|
80289
|
-
* The device's platform. macos and linux are accepted
|
|
81628
|
+
* The device's platform. macos and linux are accepted for every organization; any other value than android, macos or linux answers INVALID_PARAMS.
|
|
80290
81629
|
*/
|
|
80291
81630
|
platform: 'android' | 'macos' | 'linux';
|
|
80292
81631
|
/**
|
|
@@ -80317,7 +81656,7 @@ export type ClaimByodPairingData = {
|
|
|
80317
81656
|
};
|
|
80318
81657
|
export type ClaimByodPairingErrors = {
|
|
80319
81658
|
/**
|
|
80320
|
-
* INVALID_PARAMS: the body is missing, platform is not android, macos or linux
|
|
81659
|
+
* 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.
|
|
80321
81660
|
*/
|
|
80322
81661
|
400: unknown;
|
|
80323
81662
|
/**
|
|
@@ -82940,8 +84279,7 @@ export type SessionsUpdateData = {
|
|
|
82940
84279
|
*/
|
|
82941
84280
|
title?: null | string;
|
|
82942
84281
|
/**
|
|
82943
|
-
*
|
|
82944
|
-
* requests setting this field are rejected. Reserved for future use.
|
|
84282
|
+
* 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.
|
|
82945
84283
|
*/
|
|
82946
84284
|
vault_ids?: Array<string>;
|
|
82947
84285
|
/**
|
|
@@ -83488,6 +84826,15 @@ export type AgentsListResponses = {
|
|
|
83488
84826
|
name: string;
|
|
83489
84827
|
}>;
|
|
83490
84828
|
};
|
|
84829
|
+
/**
|
|
84830
|
+
* 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.
|
|
84831
|
+
*/
|
|
84832
|
+
browser?: {
|
|
84833
|
+
/**
|
|
84834
|
+
* A paired browser's id (byb_ and 26 lowercase hex characters), from browser.byob.browsers.list.
|
|
84835
|
+
*/
|
|
84836
|
+
byob: string;
|
|
84837
|
+
} | null;
|
|
83491
84838
|
/**
|
|
83492
84839
|
* 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.
|
|
83493
84840
|
*/
|
|
@@ -83873,7 +85220,7 @@ export type AgentsListResponses = {
|
|
|
83873
85220
|
*/
|
|
83874
85221
|
environment_id?: string | null;
|
|
83875
85222
|
/**
|
|
83876
|
-
* Default vaults of this service or assume agent version: the vault_ids new
|
|
85223
|
+
* 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.
|
|
83877
85224
|
*/
|
|
83878
85225
|
vault_ids?: Array<string>;
|
|
83879
85226
|
/**
|
|
@@ -84412,7 +85759,7 @@ export type AgentsCreateData = {
|
|
|
84412
85759
|
*/
|
|
84413
85760
|
environment_id?: string | null;
|
|
84414
85761
|
/**
|
|
84415
|
-
* Default vaults of
|
|
85762
|
+
* 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.
|
|
84416
85763
|
*/
|
|
84417
85764
|
vault_ids?: Array<string>;
|
|
84418
85765
|
/**
|
|
@@ -84437,6 +85784,15 @@ export type AgentsCreateData = {
|
|
|
84437
85784
|
name: string;
|
|
84438
85785
|
}>;
|
|
84439
85786
|
};
|
|
85787
|
+
/**
|
|
85788
|
+
* 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.
|
|
85789
|
+
*/
|
|
85790
|
+
browser?: {
|
|
85791
|
+
/**
|
|
85792
|
+
* A paired browser's id (byb_ and 26 lowercase hex characters), from browser.byob.browsers.list.
|
|
85793
|
+
*/
|
|
85794
|
+
byob: string;
|
|
85795
|
+
} | null;
|
|
84440
85796
|
/**
|
|
84441
85797
|
* 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.
|
|
84442
85798
|
*/
|
|
@@ -84692,6 +86048,15 @@ export type AgentsCreateResponses = {
|
|
|
84692
86048
|
name: string;
|
|
84693
86049
|
}>;
|
|
84694
86050
|
};
|
|
86051
|
+
/**
|
|
86052
|
+
* 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.
|
|
86053
|
+
*/
|
|
86054
|
+
browser?: {
|
|
86055
|
+
/**
|
|
86056
|
+
* A paired browser's id (byb_ and 26 lowercase hex characters), from browser.byob.browsers.list.
|
|
86057
|
+
*/
|
|
86058
|
+
byob: string;
|
|
86059
|
+
} | null;
|
|
84695
86060
|
/**
|
|
84696
86061
|
* 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.
|
|
84697
86062
|
*/
|
|
@@ -85077,7 +86442,7 @@ export type AgentsCreateResponses = {
|
|
|
85077
86442
|
*/
|
|
85078
86443
|
environment_id?: string | null;
|
|
85079
86444
|
/**
|
|
85080
|
-
* Default vaults of this service or assume agent version: the vault_ids new
|
|
86445
|
+
* 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.
|
|
85081
86446
|
*/
|
|
85082
86447
|
vault_ids?: Array<string>;
|
|
85083
86448
|
/**
|
|
@@ -85354,6 +86719,15 @@ export type AgentsRetrieveResponses = {
|
|
|
85354
86719
|
name: string;
|
|
85355
86720
|
}>;
|
|
85356
86721
|
};
|
|
86722
|
+
/**
|
|
86723
|
+
* 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.
|
|
86724
|
+
*/
|
|
86725
|
+
browser?: {
|
|
86726
|
+
/**
|
|
86727
|
+
* A paired browser's id (byb_ and 26 lowercase hex characters), from browser.byob.browsers.list.
|
|
86728
|
+
*/
|
|
86729
|
+
byob: string;
|
|
86730
|
+
} | null;
|
|
85357
86731
|
/**
|
|
85358
86732
|
* 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.
|
|
85359
86733
|
*/
|
|
@@ -85739,7 +87113,7 @@ export type AgentsRetrieveResponses = {
|
|
|
85739
87113
|
*/
|
|
85740
87114
|
environment_id?: string | null;
|
|
85741
87115
|
/**
|
|
85742
|
-
* Default vaults of this service or assume agent version: the vault_ids new
|
|
87116
|
+
* 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.
|
|
85743
87117
|
*/
|
|
85744
87118
|
vault_ids?: Array<string>;
|
|
85745
87119
|
/**
|
|
@@ -86287,7 +87661,7 @@ export type AgentsUpdateData = {
|
|
|
86287
87661
|
*/
|
|
86288
87662
|
environment_id?: string | null;
|
|
86289
87663
|
/**
|
|
86290
|
-
* Default vaults of
|
|
87664
|
+
* 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.
|
|
86291
87665
|
*/
|
|
86292
87666
|
vault_ids?: Array<string>;
|
|
86293
87667
|
/**
|
|
@@ -86312,6 +87686,15 @@ export type AgentsUpdateData = {
|
|
|
86312
87686
|
name: string;
|
|
86313
87687
|
}>;
|
|
86314
87688
|
};
|
|
87689
|
+
/**
|
|
87690
|
+
* 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.
|
|
87691
|
+
*/
|
|
87692
|
+
browser?: {
|
|
87693
|
+
/**
|
|
87694
|
+
* A paired browser's id (byb_ and 26 lowercase hex characters), from browser.byob.browsers.list.
|
|
87695
|
+
*/
|
|
87696
|
+
byob: string;
|
|
87697
|
+
} | null;
|
|
86315
87698
|
/**
|
|
86316
87699
|
* 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.
|
|
86317
87700
|
*/
|
|
@@ -86580,6 +87963,15 @@ export type AgentsUpdateResponses = {
|
|
|
86580
87963
|
name: string;
|
|
86581
87964
|
}>;
|
|
86582
87965
|
};
|
|
87966
|
+
/**
|
|
87967
|
+
* 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.
|
|
87968
|
+
*/
|
|
87969
|
+
browser?: {
|
|
87970
|
+
/**
|
|
87971
|
+
* A paired browser's id (byb_ and 26 lowercase hex characters), from browser.byob.browsers.list.
|
|
87972
|
+
*/
|
|
87973
|
+
byob: string;
|
|
87974
|
+
} | null;
|
|
86583
87975
|
/**
|
|
86584
87976
|
* 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.
|
|
86585
87977
|
*/
|
|
@@ -86965,7 +88357,7 @@ export type AgentsUpdateResponses = {
|
|
|
86965
88357
|
*/
|
|
86966
88358
|
environment_id?: string | null;
|
|
86967
88359
|
/**
|
|
86968
|
-
* Default vaults of this service or assume agent version: the vault_ids new
|
|
88360
|
+
* 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.
|
|
86969
88361
|
*/
|
|
86970
88362
|
vault_ids?: Array<string>;
|
|
86971
88363
|
/**
|
|
@@ -87591,7 +88983,7 @@ export type AgentsArchiveResponses = {
|
|
|
87591
88983
|
*/
|
|
87592
88984
|
environment_id?: string | null;
|
|
87593
88985
|
/**
|
|
87594
|
-
* Default vaults of this service or assume agent version: the vault_ids new
|
|
88986
|
+
* 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.
|
|
87595
88987
|
*/
|
|
87596
88988
|
vault_ids?: Array<string>;
|
|
87597
88989
|
/**
|
|
@@ -87868,6 +89260,15 @@ export type AgentsVersionsListResponses = {
|
|
|
87868
89260
|
name: string;
|
|
87869
89261
|
}>;
|
|
87870
89262
|
};
|
|
89263
|
+
/**
|
|
89264
|
+
* 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.
|
|
89265
|
+
*/
|
|
89266
|
+
browser?: {
|
|
89267
|
+
/**
|
|
89268
|
+
* A paired browser's id (byb_ and 26 lowercase hex characters), from browser.byob.browsers.list.
|
|
89269
|
+
*/
|
|
89270
|
+
byob: string;
|
|
89271
|
+
} | null;
|
|
87871
89272
|
/**
|
|
87872
89273
|
* 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.
|
|
87873
89274
|
*/
|
|
@@ -88253,7 +89654,7 @@ export type AgentsVersionsListResponses = {
|
|
|
88253
89654
|
*/
|
|
88254
89655
|
environment_id?: string | null;
|
|
88255
89656
|
/**
|
|
88256
|
-
* Default vaults of this service or assume agent version: the vault_ids new
|
|
89657
|
+
* 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.
|
|
88257
89658
|
*/
|
|
88258
89659
|
vault_ids?: Array<string>;
|
|
88259
89660
|
/**
|
|
@@ -112661,7 +114062,7 @@ export type DevopsUnitsPushErrors = {
|
|
|
112661
114062
|
*/
|
|
112662
114063
|
404: DevopsDevOpsError;
|
|
112663
114064
|
/**
|
|
112664
|
-
* HEAD_MOVED means the change's branch on the remote is no longer the expectedHead that was sent — someone pushed to it since — so nothing was pushed
|
|
114065
|
+
* HEAD_MOVED means the change's branch on the remote is no longer the expectedHead that was sent — someone pushed to it since — so nothing was pushed. The message says where the remote is ("remote is at <sha7> (<full sha>) on <ref>") and details.remoteHead carries the full sha: send it as expectedHead after reconciling your checkout. PUSH_REJECTED_BY_HOOK means the machine's git ran a pre-push hook (lefthook, for example) and the hook refused: details.detail holds the hook's output and details.exitCode git's exit code; fix what the hook names, commit, and push again. PUSH_REJECTED_NON_FAST_FORWARD means the remote branch has commits your checkout lacks; fetch, reconcile and push again. UNIT_INVALID_STATE means the unit is not available (no machine or no checkout yet, or another transition is in flight), so there is nothing to push; read the unit's phase and retry once it has settled.
|
|
112665
114066
|
*/
|
|
112666
114067
|
409: DevopsDevOpsError;
|
|
112667
114068
|
/**
|
|
@@ -120376,7 +121777,7 @@ export type GetSandboxV1SandboxesResponses = {
|
|
|
120376
121777
|
};
|
|
120377
121778
|
export type GetSandboxV1SandboxesResponse = GetSandboxV1SandboxesResponses[keyof GetSandboxV1SandboxesResponses];
|
|
120378
121779
|
export type PostSandboxV1SandboxesData = {
|
|
120379
|
-
body:
|
|
121780
|
+
body: SandboxNewSandboxV2Writable;
|
|
120380
121781
|
path?: never;
|
|
120381
121782
|
query?: never;
|
|
120382
121783
|
url: '/sandbox/v1/sandboxes';
|