@deepraxis/sdk 0.2.0-dev.6528e7c → 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 +41 -1
- package/dist/generated/index.d.ts +2 -2
- package/dist/generated/index.js +1 -1
- package/dist/generated/sdk.gen.d.ts +65 -11
- package/dist/generated/sdk.gen.js +139 -10
- package/dist/generated/types.gen.d.ts +2060 -493
- 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 +319 -18
- package/dist/resources.generated.d.ts +69 -0
- package/dist/resources.generated.js +25 -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
|
*/
|
|
@@ -3859,12 +3959,16 @@ export type BrowserSessionCreateResult = {
|
|
|
3859
3959
|
* 该地址返回 501;不支持 Selenium。
|
|
3860
3960
|
*/
|
|
3861
3961
|
seleniumRemoteUrl: string;
|
|
3962
|
+
/**
|
|
3963
|
+
* true 表示本次按 name 复用了已在运行的同名会话(HTTP 200),没有新开会话;false 表示新开了会话(HTTP 201)。
|
|
3964
|
+
*/
|
|
3965
|
+
reused: boolean;
|
|
3862
3966
|
};
|
|
3863
3967
|
export type BrowserError = {
|
|
3864
3968
|
statusCode: number;
|
|
3865
3969
|
error: string;
|
|
3866
3970
|
message: string;
|
|
3867
|
-
code: 'INVALID_PARAMS' | 'PERMISSION_DENIED' | 'NOT_IMPLEMENTED' | 'INTERNAL' | 'UNAUTHENTICATED' | 'CONNECT_SIGNATURE_INVALID' | 'SESSION_NOT_FOUND' | 'SESSION_ENDED' | 'SESSION_INVALID_STATE' | 'CONTEXT_NOT_FOUND' | 'CONTEXT_LOCKED' | 'CONTEXT_READ_ONLY' | 'HANDOFF_NOT_PENDING' | 'CONCURRENCY_LIMIT' | 'RATE_LIMITED' | 'INSUFFICIENT_BALANCE' | 'QUOTA_EXHAUSTED' | 'ACCOUNT_SUSPENDED' | 'PROVIDER_UNSUPPORTED' | 'PROVIDER_CAPACITY' | 'PROVIDER_FAILED' | 'SERVICE_UNAVAILABLE' | 'PARENT_NOT_FOUND' | 'INVALID_FILTER' | 'INVALID_PAGE_TOKEN' | 'ACTION_TAB_NOT_FOUND' | 'ACTION_NO_TAB' | 'ACTION_REF_STALE' | 'ACTION_FAILED' | 'ACTION_TIMEOUT' | 'ACTION_RESULT_TOO_LARGE';
|
|
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';
|
|
3868
3972
|
};
|
|
3869
3973
|
export type BrowserSession = {
|
|
3870
3974
|
/**
|
|
@@ -3888,9 +3992,9 @@ export type BrowserSession = {
|
|
|
3888
3992
|
*/
|
|
3889
3993
|
region: 'ap-southeast-1';
|
|
3890
3994
|
/**
|
|
3891
|
-
*
|
|
3995
|
+
* 会话经代理链转发的流量字节数(上行与下行之和),容器后端的会话按它计费;Browser Run 和自带浏览器固定为 0,运行中每几分钟更新一次。
|
|
3892
3996
|
*/
|
|
3893
|
-
proxyBytes:
|
|
3997
|
+
proxyBytes: number;
|
|
3894
3998
|
/**
|
|
3895
3999
|
* 会话创建时刻,UTC ISO 8601 时间。
|
|
3896
4000
|
*/
|
|
@@ -3935,6 +4039,41 @@ export type BrowserSession = {
|
|
|
3935
4039
|
* 会话创建入口;api 为 API 创建,connect 为一步连接创建,console 为 Console 创建。
|
|
3936
4040
|
*/
|
|
3937
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
|
+
};
|
|
3938
4077
|
/**
|
|
3939
4078
|
* 创建这个会话的用户或智能体标识;通过能力 URL 创建、或在引入创建者之前创建的会话省略此字段。
|
|
3940
4079
|
*/
|
|
@@ -4012,9 +4151,9 @@ export type BrowserSessionGetResult = {
|
|
|
4012
4151
|
*/
|
|
4013
4152
|
region: 'ap-southeast-1';
|
|
4014
4153
|
/**
|
|
4015
|
-
*
|
|
4154
|
+
* 会话经代理链转发的流量字节数(上行与下行之和),容器后端的会话按它计费;Browser Run 和自带浏览器固定为 0,运行中每几分钟更新一次。
|
|
4016
4155
|
*/
|
|
4017
|
-
proxyBytes:
|
|
4156
|
+
proxyBytes: number;
|
|
4018
4157
|
/**
|
|
4019
4158
|
* 会话创建时刻,UTC ISO 8601 时间。
|
|
4020
4159
|
*/
|
|
@@ -4059,6 +4198,41 @@ export type BrowserSessionGetResult = {
|
|
|
4059
4198
|
* 会话创建入口;api 为 API 创建,connect 为一步连接创建,console 为 Console 创建。
|
|
4060
4199
|
*/
|
|
4061
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
|
+
};
|
|
4062
4236
|
/**
|
|
4063
4237
|
* 创建这个会话的用户或智能体标识;通过能力 URL 创建、或在引入创建者之前创建的会话省略此字段。
|
|
4064
4238
|
*/
|
|
@@ -4253,6 +4427,36 @@ export type BrowserContextCreateResult = {
|
|
|
4253
4427
|
* UTC timestamp when a session last started with this context; absent if it has never been used.
|
|
4254
4428
|
*/
|
|
4255
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
|
+
};
|
|
4256
4460
|
/**
|
|
4257
4461
|
* Empty compatibility field; context encryption keys are held by the server.
|
|
4258
4462
|
*/
|
|
@@ -4313,6 +4517,150 @@ export type BrowserContext = {
|
|
|
4313
4517
|
* UTC timestamp when a session last started with this context; absent if it has never been used.
|
|
4314
4518
|
*/
|
|
4315
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;
|
|
4316
4664
|
};
|
|
4317
4665
|
export type BrowserStreamMessage = {
|
|
4318
4666
|
event: 'snapshot';
|
|
@@ -10618,6 +10966,10 @@ export type ApplicationCreateWorkerInput = {
|
|
|
10618
10966
|
labels?: {
|
|
10619
10967
|
[key: string]: string;
|
|
10620
10968
|
};
|
|
10969
|
+
/**
|
|
10970
|
+
* Who may open the application on its default host (ADR-206). Only the organization's owner (full authority) may change it; a credential limited to bound resources is refused with PERMISSION_DENIED. A change takes effect within 10 seconds.
|
|
10971
|
+
*/
|
|
10972
|
+
access?: 'public' | 'organization';
|
|
10621
10973
|
};
|
|
10622
10974
|
};
|
|
10623
10975
|
export type ApplicationWorker = {
|
|
@@ -10689,6 +11041,10 @@ export type ApplicationWorker = {
|
|
|
10689
11041
|
labels: {
|
|
10690
11042
|
[key: string]: string;
|
|
10691
11043
|
};
|
|
11044
|
+
/**
|
|
11045
|
+
* Who may open the application on its default host (ADR-206). Only the organization's owner (full authority) may change it; a credential limited to bound resources is refused with PERMISSION_DENIED. A change takes effect within 10 seconds.
|
|
11046
|
+
*/
|
|
11047
|
+
access: 'public' | 'organization';
|
|
10692
11048
|
/**
|
|
10693
11049
|
* When the Worker was deleted.
|
|
10694
11050
|
*/
|
|
@@ -10770,6 +11126,10 @@ export type ApplicationUpdateWorkerInput = {
|
|
|
10770
11126
|
labels?: {
|
|
10771
11127
|
[key: string]: string;
|
|
10772
11128
|
};
|
|
11129
|
+
/**
|
|
11130
|
+
* Who may open the application on its default host (ADR-206). Only the organization's owner (full authority) may change it; a credential limited to bound resources is refused with PERMISSION_DENIED. A change takes effect within 10 seconds.
|
|
11131
|
+
*/
|
|
11132
|
+
access?: 'public' | 'organization';
|
|
10773
11133
|
};
|
|
10774
11134
|
};
|
|
10775
11135
|
export type ApplicationVersionPage = {
|
|
@@ -19553,6 +19913,32 @@ export type DevopsChangeMarkLastSliceRequest = {
|
|
|
19553
19913
|
*/
|
|
19554
19914
|
lastSlice: boolean;
|
|
19555
19915
|
};
|
|
19916
|
+
/**
|
|
19917
|
+
* Where the new slice starts. Every field is optional: with none the slice is cut from the default branch.
|
|
19918
|
+
*/
|
|
19919
|
+
export type DevopsChangeSliceCreateRequest = {
|
|
19920
|
+
/**
|
|
19921
|
+
* Another branch of the same change to cut the slice from, such as feat/run-page-v2--2; omit it to cut from the default branch. A slice cut from a branch is restacked onto the default branch when that branch merges.
|
|
19922
|
+
*/
|
|
19923
|
+
from?: string;
|
|
19924
|
+
};
|
|
19925
|
+
/**
|
|
19926
|
+
* The slice that was opened.
|
|
19927
|
+
*/
|
|
19928
|
+
export type DevopsChangeSliceOpened = {
|
|
19929
|
+
/**
|
|
19930
|
+
* The new slice's branch, <change id>--<n> with n at least 2; commit and push here, and open its pull request with `praxis devops change pr`.
|
|
19931
|
+
*/
|
|
19932
|
+
branch: string;
|
|
19933
|
+
/**
|
|
19934
|
+
* The directory to work in: the slice's git worktree inside the change's workspace. It exists at once when the workspace is already running, otherwise once the workspace is available.
|
|
19935
|
+
*/
|
|
19936
|
+
directory: string;
|
|
19937
|
+
/**
|
|
19938
|
+
* The id of the change's workspace that holds the slice (wsu_…), usable with the units methods; this call opened it when the change had none live.
|
|
19939
|
+
*/
|
|
19940
|
+
unit: string;
|
|
19941
|
+
};
|
|
19556
19942
|
/**
|
|
19557
19943
|
* What the pull request says. Every field is optional: without a title the change's own title is used.
|
|
19558
19944
|
*/
|
|
@@ -19569,6 +19955,10 @@ export type DevopsChangeOpenPullRequestRequest = {
|
|
|
19569
19955
|
* Open it as a draft. Defaults to false.
|
|
19570
19956
|
*/
|
|
19571
19957
|
draft?: boolean;
|
|
19958
|
+
/**
|
|
19959
|
+
* The branch the pull request is opened from, for a later slice of the change: <change id>--<n>, as `slices.create` answered it; omit it for the change's own branch. A branch that belongs to another change is refused with INVALID_ARGUMENT.
|
|
19960
|
+
*/
|
|
19961
|
+
head?: string;
|
|
19572
19962
|
};
|
|
19573
19963
|
/**
|
|
19574
19964
|
* The pull request for a change's branch.
|
|
@@ -34710,6 +35100,14 @@ export type SandboxSandboxNetworkConfig = {
|
|
|
34710
35100
|
rules?: {
|
|
34711
35101
|
[key: string]: Array<SandboxSandboxNetworkRule>;
|
|
34712
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;
|
|
34713
35111
|
};
|
|
34714
35112
|
/**
|
|
34715
35113
|
* Sandbox lifecycle policy returned by sandbox info.
|
|
@@ -39983,6 +40381,10 @@ export type DevopsUnitGit = {
|
|
|
39983
40381
|
* The ref holding the unit's work in progress, or null when none was recorded.
|
|
39984
40382
|
*/
|
|
39985
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;
|
|
39986
40388
|
/**
|
|
39987
40389
|
* RFC 3339 UTC time these facts were observed, or null before the first observation.
|
|
39988
40390
|
*/
|
|
@@ -47846,7 +48248,7 @@ export type DevopsPlannedSkip = {
|
|
|
47846
48248
|
/**
|
|
47847
48249
|
* Why it is left out, which is what tells a deliberate skip apart from an oversight.
|
|
47848
48250
|
*/
|
|
47849
|
-
reason: 'unchanged' | 'newer_checkpoint' | 'not_requested' | 'callee_excluded' | 'artifact_identical';
|
|
48251
|
+
reason: 'unchanged' | 'newer_checkpoint' | 'not_requested' | 'callee_excluded' | 'not_deployed_upstream' | 'artifact_identical';
|
|
47850
48252
|
};
|
|
47851
48253
|
/**
|
|
47852
48254
|
* The migrations one target has pending, as the plan found them.
|
|
@@ -50701,6 +51103,58 @@ export type UpdateMediaPipelineRequestWritable = {
|
|
|
50701
51103
|
* Models to use for completion
|
|
50702
51104
|
*/
|
|
50703
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
|
+
};
|
|
50704
51158
|
/**
|
|
50705
51159
|
* Free-form string key/value pairs stored with the session, changed through sessions.update patch semantics.
|
|
50706
51160
|
*/
|
|
@@ -51280,6 +51734,94 @@ export type MediaSemanticSearchResultWritable = {
|
|
|
51280
51734
|
*/
|
|
51281
51735
|
not_ready_excluded: number;
|
|
51282
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
|
+
};
|
|
51283
51825
|
/**
|
|
51284
51826
|
* Arguments the model passed to the tool.
|
|
51285
51827
|
*/
|
|
@@ -51358,6 +51900,43 @@ export type AnthropicAnonymous204Writable = {
|
|
|
51358
51900
|
export type AnthropicAnonymous206Writable = {
|
|
51359
51901
|
[key: string]: unknown;
|
|
51360
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
|
+
};
|
|
51361
51940
|
/**
|
|
51362
51941
|
* Free-form string key/value pairs.
|
|
51363
51942
|
*/
|
|
@@ -51993,6 +52572,10 @@ export type DevopsLockId = string;
|
|
|
51993
52572
|
* The change's id, which is its branch name <type>/<slug> from a change list or create answer. Give it as it comes back — `feat/run-page-v2`: the SDK and the CLI encode the slash themselves, and an id that is already percent-encoded is encoded a second time and answers CHANGE_NOT_FOUND. Only a caller writing the HTTP request by hand sends feat%2Frun-page-v2.
|
|
51994
52573
|
*/
|
|
51995
52574
|
export type DevopsChangeIdPath = string;
|
|
52575
|
+
/**
|
|
52576
|
+
* The change whose slice you are opening: its id, which is its branch name <type>/<slug> from a change list or create answer. Give it as it comes back — `feat/run-page-v2`; the SDK and the CLI encode the slash themselves.
|
|
52577
|
+
*/
|
|
52578
|
+
export type DevopsChangePathParam = string;
|
|
51996
52579
|
/**
|
|
51997
52580
|
* The pull request's platform id (pr_…) from a pull request list, not GitHub's pull request number; the retrieve, rerunGate, merge and recordVerdict calls all address the pull request by it.
|
|
51998
52581
|
*/
|
|
@@ -54081,6 +54664,86 @@ export type ListAgentInboxLettersResponses = {
|
|
|
54081
54664
|
};
|
|
54082
54665
|
};
|
|
54083
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];
|
|
54084
54747
|
export type CreateAgentLoginIntentData = {
|
|
54085
54748
|
body?: never;
|
|
54086
54749
|
path?: never;
|
|
@@ -54981,6 +55644,15 @@ export type ApplyAgentVersionResponses = {
|
|
|
54981
55644
|
name: string;
|
|
54982
55645
|
}>;
|
|
54983
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;
|
|
54984
55656
|
/**
|
|
54985
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.
|
|
54986
55658
|
*/
|
|
@@ -55366,7 +56038,7 @@ export type ApplyAgentVersionResponses = {
|
|
|
55366
56038
|
*/
|
|
55367
56039
|
environment_id?: string | null;
|
|
55368
56040
|
/**
|
|
55369
|
-
* 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.
|
|
55370
56042
|
*/
|
|
55371
56043
|
vault_ids?: Array<string>;
|
|
55372
56044
|
/**
|
|
@@ -56232,6 +56904,15 @@ export type UnarchiveAgentResponses = {
|
|
|
56232
56904
|
name: string;
|
|
56233
56905
|
}>;
|
|
56234
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;
|
|
56235
56916
|
/**
|
|
56236
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.
|
|
56237
56918
|
*/
|
|
@@ -56617,7 +57298,7 @@ export type UnarchiveAgentResponses = {
|
|
|
56617
57298
|
*/
|
|
56618
57299
|
environment_id?: string | null;
|
|
56619
57300
|
/**
|
|
56620
|
-
* 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.
|
|
56621
57302
|
*/
|
|
56622
57303
|
vault_ids?: Array<string>;
|
|
56623
57304
|
/**
|
|
@@ -59086,9 +59767,13 @@ export type ComputersRetrieveResponse = ComputersRetrieveResponses[keyof Compute
|
|
|
59086
59767
|
export type ComputersUpdateData = {
|
|
59087
59768
|
body: {
|
|
59088
59769
|
/**
|
|
59089
|
-
*
|
|
59770
|
+
* New display name, 1 to 255 characters after trimming. Omit to keep the current name.
|
|
59090
59771
|
*/
|
|
59091
|
-
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;
|
|
59092
59777
|
};
|
|
59093
59778
|
path: {
|
|
59094
59779
|
/**
|
|
@@ -61258,7 +61943,7 @@ export type ComputersFilesConvertResponse = ComputersFilesConvertResponses[keyof
|
|
|
61258
61943
|
export type ConnectComputerData = {
|
|
61259
61944
|
body?: {
|
|
61260
61945
|
/**
|
|
61261
|
-
*
|
|
61946
|
+
* Accepted for compatibility and ignored: light and heavy both reach the same machine, because a Computer is one machine. Omit it.
|
|
61262
61947
|
*/
|
|
61263
61948
|
need?: 'light' | 'heavy';
|
|
61264
61949
|
};
|
|
@@ -68866,90 +69551,17 @@ export type BrowserListSessionsErrors = {
|
|
|
68866
69551
|
*/
|
|
68867
69552
|
403: BrowserError;
|
|
68868
69553
|
/**
|
|
68869
|
-
* 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
|
|
68870
69555
|
*/
|
|
68871
69556
|
404: BrowserError;
|
|
68872
69557
|
/**
|
|
68873
|
-
* SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
69558
|
+
* SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
68874
69559
|
*/
|
|
68875
69560
|
409: BrowserError;
|
|
68876
69561
|
/**
|
|
68877
|
-
*
|
|
68878
|
-
*/
|
|
68879
|
-
413: BrowserError;
|
|
68880
|
-
/**
|
|
68881
|
-
* CONCURRENCY_LIMIT / RATE_LIMITED / PROVIDER_CAPACITY
|
|
68882
|
-
*/
|
|
68883
|
-
429: BrowserError;
|
|
68884
|
-
/**
|
|
68885
|
-
* INTERNAL
|
|
68886
|
-
*/
|
|
68887
|
-
500: BrowserError;
|
|
68888
|
-
/**
|
|
68889
|
-
* NOT_IMPLEMENTED / PROVIDER_UNSUPPORTED
|
|
68890
|
-
*/
|
|
68891
|
-
501: BrowserError;
|
|
68892
|
-
/**
|
|
68893
|
-
* PROVIDER_FAILED
|
|
68894
|
-
*/
|
|
68895
|
-
502: BrowserError;
|
|
68896
|
-
/**
|
|
68897
|
-
* SERVICE_UNAVAILABLE
|
|
68898
|
-
*/
|
|
68899
|
-
503: BrowserError;
|
|
68900
|
-
/**
|
|
68901
|
-
* ACTION_TIMEOUT
|
|
68902
|
-
*/
|
|
68903
|
-
504: BrowserError;
|
|
68904
|
-
};
|
|
68905
|
-
export type BrowserListSessionsError = BrowserListSessionsErrors[keyof BrowserListSessionsErrors];
|
|
68906
|
-
export type BrowserListSessionsResponses = {
|
|
68907
|
-
/**
|
|
68908
|
-
* 分页查询结果,包含本页记录和下一页游标。
|
|
69562
|
+
* BROWSER_REVOKED
|
|
68909
69563
|
*/
|
|
68910
|
-
|
|
68911
|
-
/**
|
|
68912
|
-
* 本页查询匹配的记录;没有匹配项时为空数组。
|
|
68913
|
-
*/
|
|
68914
|
-
data: Array<BrowserSession>;
|
|
68915
|
-
/**
|
|
68916
|
-
* 下一页游标;原样传入 cursor,null 表示没有更多结果。
|
|
68917
|
-
*/
|
|
68918
|
-
nextCursor: string | null;
|
|
68919
|
-
};
|
|
68920
|
-
};
|
|
68921
|
-
export type BrowserListSessionsResponse = BrowserListSessionsResponses[keyof BrowserListSessionsResponses];
|
|
68922
|
-
export type BrowserCreateSessionData = {
|
|
68923
|
-
body: BrowserSessionCreateParams;
|
|
68924
|
-
path?: never;
|
|
68925
|
-
query?: never;
|
|
68926
|
-
url: '/browser/v1/sessions';
|
|
68927
|
-
};
|
|
68928
|
-
export type BrowserCreateSessionErrors = {
|
|
68929
|
-
/**
|
|
68930
|
-
* INVALID_PARAMS / INVALID_FILTER / INVALID_PAGE_TOKEN
|
|
68931
|
-
*/
|
|
68932
|
-
400: BrowserError;
|
|
68933
|
-
/**
|
|
68934
|
-
* UNAUTHENTICATED / CONNECT_SIGNATURE_INVALID
|
|
68935
|
-
*/
|
|
68936
|
-
401: BrowserError;
|
|
68937
|
-
/**
|
|
68938
|
-
* INSUFFICIENT_BALANCE / QUOTA_EXHAUSTED
|
|
68939
|
-
*/
|
|
68940
|
-
402: BrowserError;
|
|
68941
|
-
/**
|
|
68942
|
-
* PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
|
|
68943
|
-
*/
|
|
68944
|
-
403: BrowserError;
|
|
68945
|
-
/**
|
|
68946
|
-
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
68947
|
-
*/
|
|
68948
|
-
404: BrowserError;
|
|
68949
|
-
/**
|
|
68950
|
-
* SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
68951
|
-
*/
|
|
68952
|
-
409: BrowserError;
|
|
69564
|
+
410: BrowserError;
|
|
68953
69565
|
/**
|
|
68954
69566
|
* ACTION_RESULT_TOO_LARGE
|
|
68955
69567
|
*/
|
|
@@ -68971,7 +69583,88 @@ export type BrowserCreateSessionErrors = {
|
|
|
68971
69583
|
*/
|
|
68972
69584
|
502: BrowserError;
|
|
68973
69585
|
/**
|
|
68974
|
-
* SERVICE_UNAVAILABLE
|
|
69586
|
+
* BROWSER_OFFLINE / SERVICE_UNAVAILABLE
|
|
69587
|
+
*/
|
|
69588
|
+
503: BrowserError;
|
|
69589
|
+
/**
|
|
69590
|
+
* ACTION_TIMEOUT
|
|
69591
|
+
*/
|
|
69592
|
+
504: BrowserError;
|
|
69593
|
+
};
|
|
69594
|
+
export type BrowserListSessionsError = BrowserListSessionsErrors[keyof BrowserListSessionsErrors];
|
|
69595
|
+
export type BrowserListSessionsResponses = {
|
|
69596
|
+
/**
|
|
69597
|
+
* 分页查询结果,包含本页记录和下一页游标。
|
|
69598
|
+
*/
|
|
69599
|
+
200: {
|
|
69600
|
+
/**
|
|
69601
|
+
* 本页查询匹配的记录;没有匹配项时为空数组。
|
|
69602
|
+
*/
|
|
69603
|
+
data: Array<BrowserSession>;
|
|
69604
|
+
/**
|
|
69605
|
+
* 下一页游标;原样传入 cursor,null 表示没有更多结果。
|
|
69606
|
+
*/
|
|
69607
|
+
nextCursor: string | null;
|
|
69608
|
+
};
|
|
69609
|
+
};
|
|
69610
|
+
export type BrowserListSessionsResponse = BrowserListSessionsResponses[keyof BrowserListSessionsResponses];
|
|
69611
|
+
export type BrowserCreateSessionData = {
|
|
69612
|
+
body: BrowserSessionCreateParams;
|
|
69613
|
+
path?: never;
|
|
69614
|
+
query?: never;
|
|
69615
|
+
url: '/browser/v1/sessions';
|
|
69616
|
+
};
|
|
69617
|
+
export type BrowserCreateSessionErrors = {
|
|
69618
|
+
/**
|
|
69619
|
+
* INVALID_PARAMS / INVALID_FILTER / INVALID_PAGE_TOKEN
|
|
69620
|
+
*/
|
|
69621
|
+
400: BrowserError;
|
|
69622
|
+
/**
|
|
69623
|
+
* UNAUTHENTICATED / CONNECT_SIGNATURE_INVALID
|
|
69624
|
+
*/
|
|
69625
|
+
401: BrowserError;
|
|
69626
|
+
/**
|
|
69627
|
+
* INSUFFICIENT_BALANCE / QUOTA_EXHAUSTED
|
|
69628
|
+
*/
|
|
69629
|
+
402: BrowserError;
|
|
69630
|
+
/**
|
|
69631
|
+
* PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
|
|
69632
|
+
*/
|
|
69633
|
+
403: BrowserError;
|
|
69634
|
+
/**
|
|
69635
|
+
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
69636
|
+
*/
|
|
69637
|
+
404: BrowserError;
|
|
69638
|
+
/**
|
|
69639
|
+
* SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
69640
|
+
*/
|
|
69641
|
+
409: BrowserError;
|
|
69642
|
+
/**
|
|
69643
|
+
* BROWSER_REVOKED
|
|
69644
|
+
*/
|
|
69645
|
+
410: BrowserError;
|
|
69646
|
+
/**
|
|
69647
|
+
* ACTION_RESULT_TOO_LARGE
|
|
69648
|
+
*/
|
|
69649
|
+
413: BrowserError;
|
|
69650
|
+
/**
|
|
69651
|
+
* CONCURRENCY_LIMIT / RATE_LIMITED / PROVIDER_CAPACITY
|
|
69652
|
+
*/
|
|
69653
|
+
429: BrowserError;
|
|
69654
|
+
/**
|
|
69655
|
+
* INTERNAL
|
|
69656
|
+
*/
|
|
69657
|
+
500: BrowserError;
|
|
69658
|
+
/**
|
|
69659
|
+
* NOT_IMPLEMENTED / PROVIDER_UNSUPPORTED
|
|
69660
|
+
*/
|
|
69661
|
+
501: BrowserError;
|
|
69662
|
+
/**
|
|
69663
|
+
* PROVIDER_FAILED
|
|
69664
|
+
*/
|
|
69665
|
+
502: BrowserError;
|
|
69666
|
+
/**
|
|
69667
|
+
* BROWSER_OFFLINE / SERVICE_UNAVAILABLE
|
|
68975
69668
|
*/
|
|
68976
69669
|
503: BrowserError;
|
|
68977
69670
|
/**
|
|
@@ -68981,6 +69674,10 @@ export type BrowserCreateSessionErrors = {
|
|
|
68981
69674
|
};
|
|
68982
69675
|
export type BrowserCreateSessionError = BrowserCreateSessionErrors[keyof BrowserCreateSessionErrors];
|
|
68983
69676
|
export type BrowserCreateSessionResponses = {
|
|
69677
|
+
/**
|
|
69678
|
+
* 请求成功。
|
|
69679
|
+
*/
|
|
69680
|
+
200: BrowserSessionCreateResult;
|
|
68984
69681
|
/**
|
|
68985
69682
|
* 请求成功。
|
|
68986
69683
|
*/
|
|
@@ -69021,13 +69718,17 @@ export type BrowserGetSessionErrors = {
|
|
|
69021
69718
|
*/
|
|
69022
69719
|
403: BrowserError;
|
|
69023
69720
|
/**
|
|
69024
|
-
* 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
|
|
69025
69722
|
*/
|
|
69026
69723
|
404: BrowserError;
|
|
69027
69724
|
/**
|
|
69028
|
-
* SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
69725
|
+
* SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
69029
69726
|
*/
|
|
69030
69727
|
409: BrowserError;
|
|
69728
|
+
/**
|
|
69729
|
+
* BROWSER_REVOKED
|
|
69730
|
+
*/
|
|
69731
|
+
410: BrowserError;
|
|
69031
69732
|
/**
|
|
69032
69733
|
* ACTION_RESULT_TOO_LARGE
|
|
69033
69734
|
*/
|
|
@@ -69049,7 +69750,7 @@ export type BrowserGetSessionErrors = {
|
|
|
69049
69750
|
*/
|
|
69050
69751
|
502: BrowserError;
|
|
69051
69752
|
/**
|
|
69052
|
-
* SERVICE_UNAVAILABLE
|
|
69753
|
+
* BROWSER_OFFLINE / SERVICE_UNAVAILABLE
|
|
69053
69754
|
*/
|
|
69054
69755
|
503: BrowserError;
|
|
69055
69756
|
/**
|
|
@@ -69099,13 +69800,17 @@ export type BrowserCloseSessionErrors = {
|
|
|
69099
69800
|
*/
|
|
69100
69801
|
403: BrowserError;
|
|
69101
69802
|
/**
|
|
69102
|
-
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
69803
|
+
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
69103
69804
|
*/
|
|
69104
69805
|
404: BrowserError;
|
|
69105
69806
|
/**
|
|
69106
|
-
* SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
69807
|
+
* SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
69107
69808
|
*/
|
|
69108
69809
|
409: BrowserError;
|
|
69810
|
+
/**
|
|
69811
|
+
* BROWSER_REVOKED
|
|
69812
|
+
*/
|
|
69813
|
+
410: BrowserError;
|
|
69109
69814
|
/**
|
|
69110
69815
|
* ACTION_RESULT_TOO_LARGE
|
|
69111
69816
|
*/
|
|
@@ -69127,7 +69832,7 @@ export type BrowserCloseSessionErrors = {
|
|
|
69127
69832
|
*/
|
|
69128
69833
|
502: BrowserError;
|
|
69129
69834
|
/**
|
|
69130
|
-
* SERVICE_UNAVAILABLE
|
|
69835
|
+
* BROWSER_OFFLINE / SERVICE_UNAVAILABLE
|
|
69131
69836
|
*/
|
|
69132
69837
|
503: BrowserError;
|
|
69133
69838
|
/**
|
|
@@ -69172,13 +69877,17 @@ export type BrowserGetDebugErrors = {
|
|
|
69172
69877
|
*/
|
|
69173
69878
|
403: BrowserError;
|
|
69174
69879
|
/**
|
|
69175
|
-
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
69880
|
+
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
69176
69881
|
*/
|
|
69177
69882
|
404: BrowserError;
|
|
69178
69883
|
/**
|
|
69179
|
-
* SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
69884
|
+
* SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
69180
69885
|
*/
|
|
69181
69886
|
409: BrowserError;
|
|
69887
|
+
/**
|
|
69888
|
+
* BROWSER_REVOKED
|
|
69889
|
+
*/
|
|
69890
|
+
410: BrowserError;
|
|
69182
69891
|
/**
|
|
69183
69892
|
* ACTION_RESULT_TOO_LARGE
|
|
69184
69893
|
*/
|
|
@@ -69200,7 +69909,7 @@ export type BrowserGetDebugErrors = {
|
|
|
69200
69909
|
*/
|
|
69201
69910
|
502: BrowserError;
|
|
69202
69911
|
/**
|
|
69203
|
-
* SERVICE_UNAVAILABLE
|
|
69912
|
+
* BROWSER_OFFLINE / SERVICE_UNAVAILABLE
|
|
69204
69913
|
*/
|
|
69205
69914
|
503: BrowserError;
|
|
69206
69915
|
/**
|
|
@@ -69258,13 +69967,17 @@ export type BrowserListEventsErrors = {
|
|
|
69258
69967
|
*/
|
|
69259
69968
|
403: BrowserError;
|
|
69260
69969
|
/**
|
|
69261
|
-
* 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
|
|
69262
69971
|
*/
|
|
69263
69972
|
404: BrowserError;
|
|
69264
69973
|
/**
|
|
69265
|
-
* SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
69974
|
+
* SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
69266
69975
|
*/
|
|
69267
69976
|
409: BrowserError;
|
|
69977
|
+
/**
|
|
69978
|
+
* BROWSER_REVOKED
|
|
69979
|
+
*/
|
|
69980
|
+
410: BrowserError;
|
|
69268
69981
|
/**
|
|
69269
69982
|
* ACTION_RESULT_TOO_LARGE
|
|
69270
69983
|
*/
|
|
@@ -69286,7 +69999,7 @@ export type BrowserListEventsErrors = {
|
|
|
69286
69999
|
*/
|
|
69287
70000
|
502: BrowserError;
|
|
69288
70001
|
/**
|
|
69289
|
-
* SERVICE_UNAVAILABLE
|
|
70002
|
+
* BROWSER_OFFLINE / SERVICE_UNAVAILABLE
|
|
69290
70003
|
*/
|
|
69291
70004
|
503: BrowserError;
|
|
69292
70005
|
/**
|
|
@@ -69537,231 +70250,17 @@ export type BrowserRunPageActionErrors = {
|
|
|
69537
70250
|
*/
|
|
69538
70251
|
403: BrowserError;
|
|
69539
70252
|
/**
|
|
69540
|
-
* 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
|
|
69541
70254
|
*/
|
|
69542
70255
|
404: BrowserError;
|
|
69543
70256
|
/**
|
|
69544
|
-
* SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
70257
|
+
* SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
69545
70258
|
*/
|
|
69546
70259
|
409: BrowserError;
|
|
69547
70260
|
/**
|
|
69548
|
-
*
|
|
69549
|
-
*/
|
|
69550
|
-
413: BrowserError;
|
|
69551
|
-
/**
|
|
69552
|
-
* CONCURRENCY_LIMIT / RATE_LIMITED / PROVIDER_CAPACITY
|
|
69553
|
-
*/
|
|
69554
|
-
429: BrowserError;
|
|
69555
|
-
/**
|
|
69556
|
-
* INTERNAL
|
|
69557
|
-
*/
|
|
69558
|
-
500: BrowserError;
|
|
69559
|
-
/**
|
|
69560
|
-
* NOT_IMPLEMENTED / PROVIDER_UNSUPPORTED
|
|
69561
|
-
*/
|
|
69562
|
-
501: BrowserError;
|
|
69563
|
-
/**
|
|
69564
|
-
* PROVIDER_FAILED
|
|
69565
|
-
*/
|
|
69566
|
-
502: BrowserError;
|
|
69567
|
-
/**
|
|
69568
|
-
* SERVICE_UNAVAILABLE
|
|
69569
|
-
*/
|
|
69570
|
-
503: BrowserError;
|
|
69571
|
-
/**
|
|
69572
|
-
* ACTION_TIMEOUT
|
|
69573
|
-
*/
|
|
69574
|
-
504: BrowserError;
|
|
69575
|
-
};
|
|
69576
|
-
export type BrowserRunPageActionError = BrowserRunPageActionErrors[keyof BrowserRunPageActionErrors];
|
|
69577
|
-
export type BrowserRunPageActionResponses = {
|
|
69578
|
-
/**
|
|
69579
|
-
* 请求成功。
|
|
69580
|
-
*/
|
|
69581
|
-
200: {
|
|
69582
|
-
/**
|
|
69583
|
-
* 这次执行的动作类型,与请求的 type 相同。
|
|
69584
|
-
*/
|
|
69585
|
-
type: 'open' | 'click' | 'fill' | 'press' | 'scroll' | 'back' | 'forward' | 'reload';
|
|
69586
|
-
/**
|
|
69587
|
-
* 动作作用的标签页 ID,可在后续动作的 tab 里使用。
|
|
69588
|
-
*/
|
|
69589
|
-
tab: string;
|
|
69590
|
-
/**
|
|
69591
|
-
* 动作完成后该标签页的地址。
|
|
69592
|
-
*/
|
|
69593
|
-
url: string;
|
|
69594
|
-
/**
|
|
69595
|
-
* 动作完成后该标签页的标题,页面没有标题时为空字符串。
|
|
69596
|
-
*/
|
|
69597
|
-
title: string;
|
|
69598
|
-
} | {
|
|
69599
|
-
/**
|
|
69600
|
-
* 动作类型,固定为 select。
|
|
69601
|
-
*/
|
|
69602
|
-
type: 'select';
|
|
69603
|
-
/**
|
|
69604
|
-
* 动作作用的标签页 ID,可在后续动作的 tab 里使用。
|
|
69605
|
-
*/
|
|
69606
|
-
tab: string;
|
|
69607
|
-
/**
|
|
69608
|
-
* 这次选中的 option 的 value,按它们在下拉框中出现的顺序;单选下拉框最多一项。
|
|
69609
|
-
*/
|
|
69610
|
-
values: Array<string>;
|
|
69611
|
-
} | {
|
|
69612
|
-
/**
|
|
69613
|
-
* 动作类型,固定为 tabs.list。
|
|
69614
|
-
*/
|
|
69615
|
-
type: 'tabs.list';
|
|
69616
|
-
/**
|
|
69617
|
-
* 会话里所有打开的标签页。
|
|
69618
|
-
*/
|
|
69619
|
-
tabs: Array<{
|
|
69620
|
-
/**
|
|
69621
|
-
* 标签页 ID,可在动作的 tab 里使用。
|
|
69622
|
-
*/
|
|
69623
|
-
id: string;
|
|
69624
|
-
/**
|
|
69625
|
-
* 标签页当前地址。
|
|
69626
|
-
*/
|
|
69627
|
-
url: string;
|
|
69628
|
-
/**
|
|
69629
|
-
* 标签页当前标题。
|
|
69630
|
-
*/
|
|
69631
|
-
title: string;
|
|
69632
|
-
/**
|
|
69633
|
-
* 是否为当前标签页,省略 tab 的动作作用于它。
|
|
69634
|
-
*/
|
|
69635
|
-
active: boolean;
|
|
69636
|
-
}>;
|
|
69637
|
-
} | {
|
|
69638
|
-
/**
|
|
69639
|
-
* 动作类型,固定为 snapshot。
|
|
69640
|
-
*/
|
|
69641
|
-
type: 'snapshot';
|
|
69642
|
-
/**
|
|
69643
|
-
* 动作作用的标签页 ID,可在后续动作的 tab 里使用。
|
|
69644
|
-
*/
|
|
69645
|
-
tab: string;
|
|
69646
|
-
/**
|
|
69647
|
-
* 动作完成后该标签页的地址。
|
|
69648
|
-
*/
|
|
69649
|
-
url: string;
|
|
69650
|
-
/**
|
|
69651
|
-
* 动作完成后该标签页的标题,页面没有标题时为空字符串。
|
|
69652
|
-
*/
|
|
69653
|
-
title: string;
|
|
69654
|
-
/**
|
|
69655
|
-
* 页面的 ARIA 快照文本,每行一个元素,可操作的元素带 [ref=eN]。
|
|
69656
|
-
*/
|
|
69657
|
-
snapshot: string;
|
|
69658
|
-
/**
|
|
69659
|
-
* 这份快照里分配出去的 ref 个数。
|
|
69660
|
-
*/
|
|
69661
|
-
refs: number;
|
|
69662
|
-
/**
|
|
69663
|
-
* 快照超过 200000 个字符被截断时为 true。
|
|
69664
|
-
*/
|
|
69665
|
-
truncated: boolean;
|
|
69666
|
-
} | {
|
|
69667
|
-
/**
|
|
69668
|
-
* 动作类型,固定为 screenshot。
|
|
69669
|
-
*/
|
|
69670
|
-
type: 'screenshot';
|
|
69671
|
-
/**
|
|
69672
|
-
* 动作作用的标签页 ID,可在后续动作的 tab 里使用。
|
|
69673
|
-
*/
|
|
69674
|
-
tab: string;
|
|
69675
|
-
/**
|
|
69676
|
-
* 图片格式,固定为 image/png。
|
|
69677
|
-
*/
|
|
69678
|
-
mediaType: 'image/png';
|
|
69679
|
-
/**
|
|
69680
|
-
* PNG 图片的 base64 编码;解码后最多 5 MiB。
|
|
69681
|
-
*/
|
|
69682
|
-
data: string;
|
|
69683
|
-
/**
|
|
69684
|
-
* 图片 base64 解码后的字节数。
|
|
69685
|
-
*/
|
|
69686
|
-
bytes: number;
|
|
69687
|
-
} | {
|
|
69688
|
-
/**
|
|
69689
|
-
* 动作类型,固定为 evaluate。
|
|
69690
|
-
*/
|
|
69691
|
-
type: 'evaluate';
|
|
69692
|
-
/**
|
|
69693
|
-
* 动作作用的标签页 ID,可在后续动作的 tab 里使用。
|
|
69694
|
-
*/
|
|
69695
|
-
tab: string;
|
|
69696
|
-
/**
|
|
69697
|
-
* 表达式的结果,按 JSON 返回;序列化后最多 64000 个字符。
|
|
69698
|
-
*/
|
|
69699
|
-
value: unknown;
|
|
69700
|
-
} | {
|
|
69701
|
-
/**
|
|
69702
|
-
* 动作类型,固定为 set_cookie。
|
|
69703
|
-
*/
|
|
69704
|
-
type: 'set_cookie';
|
|
69705
|
-
/**
|
|
69706
|
-
* 动作作用的标签页 ID,可在后续动作的 tab 里使用。
|
|
69707
|
-
*/
|
|
69708
|
-
tab: string;
|
|
69709
|
-
/**
|
|
69710
|
-
* 已设置的 cookie 名称。
|
|
69711
|
-
*/
|
|
69712
|
-
name: string;
|
|
69713
|
-
/**
|
|
69714
|
-
* 已设置的 cookie 的域。
|
|
69715
|
-
*/
|
|
69716
|
-
domain: string;
|
|
69717
|
-
};
|
|
69718
|
-
};
|
|
69719
|
-
export type BrowserRunPageActionResponse = BrowserRunPageActionResponses[keyof BrowserRunPageActionResponses];
|
|
69720
|
-
export type BrowserRequestHandoffData = {
|
|
69721
|
-
body: {
|
|
69722
|
-
/**
|
|
69723
|
-
* 交给人工操作者的接管说明,可为空字符串。
|
|
69724
|
-
*/
|
|
69725
|
-
message: string;
|
|
69726
|
-
/**
|
|
69727
|
-
* 接管请求有效时长,单位为毫秒;必须大于 0,可含小数。超过 3600000(60 分钟)的按 60 分钟算,返回事件里的到期时刻就是实际值。接管未完成、未到期期间,会话不按空闲回收;接管结束后重新开始计空闲。
|
|
69728
|
-
*/
|
|
69729
|
-
timeoutMs?: number;
|
|
69730
|
-
};
|
|
69731
|
-
path: {
|
|
69732
|
-
/**
|
|
69733
|
-
* 浏览器会话 ID;使用创建或列出会话返回的 id,以 bss_ 开头。
|
|
69734
|
-
*/
|
|
69735
|
-
sessionId: string;
|
|
69736
|
-
};
|
|
69737
|
-
query?: never;
|
|
69738
|
-
url: '/browser/v1/sessions/{sessionId}/handoff';
|
|
69739
|
-
};
|
|
69740
|
-
export type BrowserRequestHandoffErrors = {
|
|
69741
|
-
/**
|
|
69742
|
-
* INVALID_PARAMS / INVALID_FILTER / INVALID_PAGE_TOKEN
|
|
70261
|
+
* BROWSER_REVOKED
|
|
69743
70262
|
*/
|
|
69744
|
-
|
|
69745
|
-
/**
|
|
69746
|
-
* UNAUTHENTICATED / CONNECT_SIGNATURE_INVALID
|
|
69747
|
-
*/
|
|
69748
|
-
401: BrowserError;
|
|
69749
|
-
/**
|
|
69750
|
-
* INSUFFICIENT_BALANCE / QUOTA_EXHAUSTED
|
|
69751
|
-
*/
|
|
69752
|
-
402: BrowserError;
|
|
69753
|
-
/**
|
|
69754
|
-
* PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
|
|
69755
|
-
*/
|
|
69756
|
-
403: BrowserError;
|
|
69757
|
-
/**
|
|
69758
|
-
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
69759
|
-
*/
|
|
69760
|
-
404: BrowserError;
|
|
69761
|
-
/**
|
|
69762
|
-
* SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
69763
|
-
*/
|
|
69764
|
-
409: BrowserError;
|
|
70263
|
+
410: BrowserError;
|
|
69765
70264
|
/**
|
|
69766
70265
|
* ACTION_RESULT_TOO_LARGE
|
|
69767
70266
|
*/
|
|
@@ -69783,7 +70282,229 @@ export type BrowserRequestHandoffErrors = {
|
|
|
69783
70282
|
*/
|
|
69784
70283
|
502: BrowserError;
|
|
69785
70284
|
/**
|
|
69786
|
-
* SERVICE_UNAVAILABLE
|
|
70285
|
+
* BROWSER_OFFLINE / SERVICE_UNAVAILABLE
|
|
70286
|
+
*/
|
|
70287
|
+
503: BrowserError;
|
|
70288
|
+
/**
|
|
70289
|
+
* ACTION_TIMEOUT
|
|
70290
|
+
*/
|
|
70291
|
+
504: BrowserError;
|
|
70292
|
+
};
|
|
70293
|
+
export type BrowserRunPageActionError = BrowserRunPageActionErrors[keyof BrowserRunPageActionErrors];
|
|
70294
|
+
export type BrowserRunPageActionResponses = {
|
|
70295
|
+
/**
|
|
70296
|
+
* 请求成功。
|
|
70297
|
+
*/
|
|
70298
|
+
200: {
|
|
70299
|
+
/**
|
|
70300
|
+
* 这次执行的动作类型,与请求的 type 相同。
|
|
70301
|
+
*/
|
|
70302
|
+
type: 'open' | 'click' | 'fill' | 'press' | 'scroll' | 'back' | 'forward' | 'reload';
|
|
70303
|
+
/**
|
|
70304
|
+
* 动作作用的标签页 ID,可在后续动作的 tab 里使用。
|
|
70305
|
+
*/
|
|
70306
|
+
tab: string;
|
|
70307
|
+
/**
|
|
70308
|
+
* 动作完成后该标签页的地址。
|
|
70309
|
+
*/
|
|
70310
|
+
url: string;
|
|
70311
|
+
/**
|
|
70312
|
+
* 动作完成后该标签页的标题,页面没有标题时为空字符串。
|
|
70313
|
+
*/
|
|
70314
|
+
title: string;
|
|
70315
|
+
} | {
|
|
70316
|
+
/**
|
|
70317
|
+
* 动作类型,固定为 select。
|
|
70318
|
+
*/
|
|
70319
|
+
type: 'select';
|
|
70320
|
+
/**
|
|
70321
|
+
* 动作作用的标签页 ID,可在后续动作的 tab 里使用。
|
|
70322
|
+
*/
|
|
70323
|
+
tab: string;
|
|
70324
|
+
/**
|
|
70325
|
+
* 这次选中的 option 的 value,按它们在下拉框中出现的顺序;单选下拉框最多一项。
|
|
70326
|
+
*/
|
|
70327
|
+
values: Array<string>;
|
|
70328
|
+
} | {
|
|
70329
|
+
/**
|
|
70330
|
+
* 动作类型,固定为 tabs.list。
|
|
70331
|
+
*/
|
|
70332
|
+
type: 'tabs.list';
|
|
70333
|
+
/**
|
|
70334
|
+
* 会话里所有打开的标签页。
|
|
70335
|
+
*/
|
|
70336
|
+
tabs: Array<{
|
|
70337
|
+
/**
|
|
70338
|
+
* 标签页 ID,可在动作的 tab 里使用。
|
|
70339
|
+
*/
|
|
70340
|
+
id: string;
|
|
70341
|
+
/**
|
|
70342
|
+
* 标签页当前地址。
|
|
70343
|
+
*/
|
|
70344
|
+
url: string;
|
|
70345
|
+
/**
|
|
70346
|
+
* 标签页当前标题。
|
|
70347
|
+
*/
|
|
70348
|
+
title: string;
|
|
70349
|
+
/**
|
|
70350
|
+
* 是否为当前标签页,省略 tab 的动作作用于它。
|
|
70351
|
+
*/
|
|
70352
|
+
active: boolean;
|
|
70353
|
+
}>;
|
|
70354
|
+
} | {
|
|
70355
|
+
/**
|
|
70356
|
+
* 动作类型,固定为 snapshot。
|
|
70357
|
+
*/
|
|
70358
|
+
type: 'snapshot';
|
|
70359
|
+
/**
|
|
70360
|
+
* 动作作用的标签页 ID,可在后续动作的 tab 里使用。
|
|
70361
|
+
*/
|
|
70362
|
+
tab: string;
|
|
70363
|
+
/**
|
|
70364
|
+
* 动作完成后该标签页的地址。
|
|
70365
|
+
*/
|
|
70366
|
+
url: string;
|
|
70367
|
+
/**
|
|
70368
|
+
* 动作完成后该标签页的标题,页面没有标题时为空字符串。
|
|
70369
|
+
*/
|
|
70370
|
+
title: string;
|
|
70371
|
+
/**
|
|
70372
|
+
* 页面的 ARIA 快照文本,每行一个元素,可操作的元素带 [ref=eN]。
|
|
70373
|
+
*/
|
|
70374
|
+
snapshot: string;
|
|
70375
|
+
/**
|
|
70376
|
+
* 这份快照里分配出去的 ref 个数。
|
|
70377
|
+
*/
|
|
70378
|
+
refs: number;
|
|
70379
|
+
/**
|
|
70380
|
+
* 快照超过 200000 个字符被截断时为 true。
|
|
70381
|
+
*/
|
|
70382
|
+
truncated: boolean;
|
|
70383
|
+
} | {
|
|
70384
|
+
/**
|
|
70385
|
+
* 动作类型,固定为 screenshot。
|
|
70386
|
+
*/
|
|
70387
|
+
type: 'screenshot';
|
|
70388
|
+
/**
|
|
70389
|
+
* 动作作用的标签页 ID,可在后续动作的 tab 里使用。
|
|
70390
|
+
*/
|
|
70391
|
+
tab: string;
|
|
70392
|
+
/**
|
|
70393
|
+
* 图片格式,固定为 image/png。
|
|
70394
|
+
*/
|
|
70395
|
+
mediaType: 'image/png';
|
|
70396
|
+
/**
|
|
70397
|
+
* PNG 图片的 base64 编码;解码后最多 5 MiB。
|
|
70398
|
+
*/
|
|
70399
|
+
data: string;
|
|
70400
|
+
/**
|
|
70401
|
+
* 图片 base64 解码后的字节数。
|
|
70402
|
+
*/
|
|
70403
|
+
bytes: number;
|
|
70404
|
+
} | {
|
|
70405
|
+
/**
|
|
70406
|
+
* 动作类型,固定为 evaluate。
|
|
70407
|
+
*/
|
|
70408
|
+
type: 'evaluate';
|
|
70409
|
+
/**
|
|
70410
|
+
* 动作作用的标签页 ID,可在后续动作的 tab 里使用。
|
|
70411
|
+
*/
|
|
70412
|
+
tab: string;
|
|
70413
|
+
/**
|
|
70414
|
+
* 表达式的结果,按 JSON 返回;序列化后最多 64000 个字符。
|
|
70415
|
+
*/
|
|
70416
|
+
value: unknown;
|
|
70417
|
+
} | {
|
|
70418
|
+
/**
|
|
70419
|
+
* 动作类型,固定为 set_cookie。
|
|
70420
|
+
*/
|
|
70421
|
+
type: 'set_cookie';
|
|
70422
|
+
/**
|
|
70423
|
+
* 动作作用的标签页 ID,可在后续动作的 tab 里使用。
|
|
70424
|
+
*/
|
|
70425
|
+
tab: string;
|
|
70426
|
+
/**
|
|
70427
|
+
* 已设置的 cookie 名称。
|
|
70428
|
+
*/
|
|
70429
|
+
name: string;
|
|
70430
|
+
/**
|
|
70431
|
+
* 已设置的 cookie 的域。
|
|
70432
|
+
*/
|
|
70433
|
+
domain: string;
|
|
70434
|
+
};
|
|
70435
|
+
};
|
|
70436
|
+
export type BrowserRunPageActionResponse = BrowserRunPageActionResponses[keyof BrowserRunPageActionResponses];
|
|
70437
|
+
export type BrowserRequestHandoffData = {
|
|
70438
|
+
body: {
|
|
70439
|
+
/**
|
|
70440
|
+
* 交给人工操作者的接管说明,可为空字符串。
|
|
70441
|
+
*/
|
|
70442
|
+
message: string;
|
|
70443
|
+
/**
|
|
70444
|
+
* 接管请求有效时长,单位为毫秒;必须大于 0,可含小数。超过 3600000(60 分钟)的按 60 分钟算,返回事件里的到期时刻就是实际值。接管未完成、未到期期间,会话不按空闲回收;接管结束后重新开始计空闲。
|
|
70445
|
+
*/
|
|
70446
|
+
timeoutMs?: number;
|
|
70447
|
+
};
|
|
70448
|
+
path: {
|
|
70449
|
+
/**
|
|
70450
|
+
* 浏览器会话 ID;使用创建或列出会话返回的 id,以 bss_ 开头。
|
|
70451
|
+
*/
|
|
70452
|
+
sessionId: string;
|
|
70453
|
+
};
|
|
70454
|
+
query?: never;
|
|
70455
|
+
url: '/browser/v1/sessions/{sessionId}/handoff';
|
|
70456
|
+
};
|
|
70457
|
+
export type BrowserRequestHandoffErrors = {
|
|
70458
|
+
/**
|
|
70459
|
+
* INVALID_PARAMS / INVALID_FILTER / INVALID_PAGE_TOKEN
|
|
70460
|
+
*/
|
|
70461
|
+
400: BrowserError;
|
|
70462
|
+
/**
|
|
70463
|
+
* UNAUTHENTICATED / CONNECT_SIGNATURE_INVALID
|
|
70464
|
+
*/
|
|
70465
|
+
401: BrowserError;
|
|
70466
|
+
/**
|
|
70467
|
+
* INSUFFICIENT_BALANCE / QUOTA_EXHAUSTED
|
|
70468
|
+
*/
|
|
70469
|
+
402: BrowserError;
|
|
70470
|
+
/**
|
|
70471
|
+
* PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
|
|
70472
|
+
*/
|
|
70473
|
+
403: BrowserError;
|
|
70474
|
+
/**
|
|
70475
|
+
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
70476
|
+
*/
|
|
70477
|
+
404: BrowserError;
|
|
70478
|
+
/**
|
|
70479
|
+
* SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
70480
|
+
*/
|
|
70481
|
+
409: BrowserError;
|
|
70482
|
+
/**
|
|
70483
|
+
* BROWSER_REVOKED
|
|
70484
|
+
*/
|
|
70485
|
+
410: BrowserError;
|
|
70486
|
+
/**
|
|
70487
|
+
* ACTION_RESULT_TOO_LARGE
|
|
70488
|
+
*/
|
|
70489
|
+
413: BrowserError;
|
|
70490
|
+
/**
|
|
70491
|
+
* CONCURRENCY_LIMIT / RATE_LIMITED / PROVIDER_CAPACITY
|
|
70492
|
+
*/
|
|
70493
|
+
429: BrowserError;
|
|
70494
|
+
/**
|
|
70495
|
+
* INTERNAL
|
|
70496
|
+
*/
|
|
70497
|
+
500: BrowserError;
|
|
70498
|
+
/**
|
|
70499
|
+
* NOT_IMPLEMENTED / PROVIDER_UNSUPPORTED
|
|
70500
|
+
*/
|
|
70501
|
+
501: BrowserError;
|
|
70502
|
+
/**
|
|
70503
|
+
* PROVIDER_FAILED
|
|
70504
|
+
*/
|
|
70505
|
+
502: BrowserError;
|
|
70506
|
+
/**
|
|
70507
|
+
* BROWSER_OFFLINE / SERVICE_UNAVAILABLE
|
|
69787
70508
|
*/
|
|
69788
70509
|
503: BrowserError;
|
|
69789
70510
|
/**
|
|
@@ -69828,13 +70549,17 @@ export type BrowserCompleteHandoffErrors = {
|
|
|
69828
70549
|
*/
|
|
69829
70550
|
403: BrowserError;
|
|
69830
70551
|
/**
|
|
69831
|
-
* 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
|
|
69832
70553
|
*/
|
|
69833
70554
|
404: BrowserError;
|
|
69834
70555
|
/**
|
|
69835
|
-
* SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
70556
|
+
* SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
69836
70557
|
*/
|
|
69837
70558
|
409: BrowserError;
|
|
70559
|
+
/**
|
|
70560
|
+
* BROWSER_REVOKED
|
|
70561
|
+
*/
|
|
70562
|
+
410: BrowserError;
|
|
69838
70563
|
/**
|
|
69839
70564
|
* ACTION_RESULT_TOO_LARGE
|
|
69840
70565
|
*/
|
|
@@ -69856,7 +70581,7 @@ export type BrowserCompleteHandoffErrors = {
|
|
|
69856
70581
|
*/
|
|
69857
70582
|
502: BrowserError;
|
|
69858
70583
|
/**
|
|
69859
|
-
* SERVICE_UNAVAILABLE
|
|
70584
|
+
* BROWSER_OFFLINE / SERVICE_UNAVAILABLE
|
|
69860
70585
|
*/
|
|
69861
70586
|
503: BrowserError;
|
|
69862
70587
|
/**
|
|
@@ -69910,13 +70635,659 @@ export type BrowserViewerHeartbeatErrors = {
|
|
|
69910
70635
|
*/
|
|
69911
70636
|
403: BrowserError;
|
|
69912
70637
|
/**
|
|
69913
|
-
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
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
|
|
69914
70806
|
*/
|
|
69915
70807
|
404: BrowserError;
|
|
69916
70808
|
/**
|
|
69917
|
-
* SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
70809
|
+
* SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
69918
70810
|
*/
|
|
69919
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
|
|
71091
|
+
*/
|
|
71092
|
+
404: BrowserError;
|
|
71093
|
+
/**
|
|
71094
|
+
* SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
71095
|
+
*/
|
|
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;
|
|
69920
71291
|
/**
|
|
69921
71292
|
* ACTION_RESULT_TOO_LARGE
|
|
69922
71293
|
*/
|
|
@@ -69938,7 +71309,7 @@ export type BrowserViewerHeartbeatErrors = {
|
|
|
69938
71309
|
*/
|
|
69939
71310
|
502: BrowserError;
|
|
69940
71311
|
/**
|
|
69941
|
-
* SERVICE_UNAVAILABLE
|
|
71312
|
+
* BROWSER_OFFLINE / SERVICE_UNAVAILABLE
|
|
69942
71313
|
*/
|
|
69943
71314
|
503: BrowserError;
|
|
69944
71315
|
/**
|
|
@@ -69946,31 +71317,30 @@ export type BrowserViewerHeartbeatErrors = {
|
|
|
69946
71317
|
*/
|
|
69947
71318
|
504: BrowserError;
|
|
69948
71319
|
};
|
|
69949
|
-
export type
|
|
69950
|
-
export type
|
|
71320
|
+
export type BrowserCreateByobPairingError = BrowserCreateByobPairingErrors[keyof BrowserCreateByobPairingErrors];
|
|
71321
|
+
export type BrowserCreateByobPairingResponses = {
|
|
69951
71322
|
/**
|
|
69952
71323
|
* 请求成功。
|
|
69953
71324
|
*/
|
|
69954
|
-
|
|
69955
|
-
/**
|
|
69956
|
-
* 心跳已被接受,成功时固定返回 true。
|
|
69957
|
-
*/
|
|
69958
|
-
ok: true;
|
|
69959
|
-
};
|
|
71325
|
+
201: BrowserByobPairing;
|
|
69960
71326
|
};
|
|
69961
|
-
export type
|
|
69962
|
-
export type
|
|
71327
|
+
export type BrowserCreateByobPairingResponse = BrowserCreateByobPairingResponses[keyof BrowserCreateByobPairingResponses];
|
|
71328
|
+
export type BrowserListByobBrowsersData = {
|
|
69963
71329
|
body?: never;
|
|
69964
|
-
path
|
|
71330
|
+
path?: never;
|
|
71331
|
+
query?: {
|
|
69965
71332
|
/**
|
|
69966
|
-
*
|
|
71333
|
+
* 上一页返回的 nextCursor,原样传入;省略时读取第一页。
|
|
69967
71334
|
*/
|
|
69968
|
-
|
|
71335
|
+
cursor?: string;
|
|
71336
|
+
/**
|
|
71337
|
+
* 每页最多返回的浏览器数量;默认 50,范围 1–100。
|
|
71338
|
+
*/
|
|
71339
|
+
limit?: number;
|
|
69969
71340
|
};
|
|
69970
|
-
|
|
69971
|
-
url: '/browser/v1/sessions/{sessionId}/frame';
|
|
71341
|
+
url: '/browser/v1/byob/browsers';
|
|
69972
71342
|
};
|
|
69973
|
-
export type
|
|
71343
|
+
export type BrowserListByobBrowsersErrors = {
|
|
69974
71344
|
/**
|
|
69975
71345
|
* INVALID_PARAMS / INVALID_FILTER / INVALID_PAGE_TOKEN
|
|
69976
71346
|
*/
|
|
@@ -69988,13 +71358,17 @@ export type BrowserGetSessionFrameErrors = {
|
|
|
69988
71358
|
*/
|
|
69989
71359
|
403: BrowserError;
|
|
69990
71360
|
/**
|
|
69991
|
-
* 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
|
|
69992
71362
|
*/
|
|
69993
71363
|
404: BrowserError;
|
|
69994
71364
|
/**
|
|
69995
|
-
* SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
71365
|
+
* SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
69996
71366
|
*/
|
|
69997
71367
|
409: BrowserError;
|
|
71368
|
+
/**
|
|
71369
|
+
* BROWSER_REVOKED
|
|
71370
|
+
*/
|
|
71371
|
+
410: BrowserError;
|
|
69998
71372
|
/**
|
|
69999
71373
|
* ACTION_RESULT_TOO_LARGE
|
|
70000
71374
|
*/
|
|
@@ -70016,7 +71390,7 @@ export type BrowserGetSessionFrameErrors = {
|
|
|
70016
71390
|
*/
|
|
70017
71391
|
502: BrowserError;
|
|
70018
71392
|
/**
|
|
70019
|
-
* SERVICE_UNAVAILABLE
|
|
71393
|
+
* BROWSER_OFFLINE / SERVICE_UNAVAILABLE
|
|
70020
71394
|
*/
|
|
70021
71395
|
503: BrowserError;
|
|
70022
71396
|
/**
|
|
@@ -70024,34 +71398,35 @@ export type BrowserGetSessionFrameErrors = {
|
|
|
70024
71398
|
*/
|
|
70025
71399
|
504: BrowserError;
|
|
70026
71400
|
};
|
|
70027
|
-
export type
|
|
70028
|
-
export type
|
|
71401
|
+
export type BrowserListByobBrowsersError = BrowserListByobBrowsersErrors[keyof BrowserListByobBrowsersErrors];
|
|
71402
|
+
export type BrowserListByobBrowsersResponses = {
|
|
70029
71403
|
/**
|
|
70030
|
-
*
|
|
71404
|
+
* 分页列出的自带浏览器,按 ID 升序。
|
|
70031
71405
|
*/
|
|
70032
|
-
200:
|
|
70033
|
-
};
|
|
70034
|
-
export type BrowserGetSessionFrameResponse = BrowserGetSessionFrameResponses[keyof BrowserGetSessionFrameResponses];
|
|
70035
|
-
export type BrowserListContextsData = {
|
|
70036
|
-
body?: never;
|
|
70037
|
-
path?: never;
|
|
70038
|
-
query?: {
|
|
71406
|
+
200: {
|
|
70039
71407
|
/**
|
|
70040
|
-
*
|
|
71408
|
+
* 本页的自带浏览器;已断开的不在列表里。
|
|
70041
71409
|
*/
|
|
70042
|
-
|
|
71410
|
+
data: Array<BrowserByobBrowser>;
|
|
70043
71411
|
/**
|
|
70044
|
-
*
|
|
71412
|
+
* 下一页游标;原样传入 cursor,null 表示没有更多结果。
|
|
70045
71413
|
*/
|
|
70046
|
-
|
|
71414
|
+
nextCursor: string | null;
|
|
71415
|
+
};
|
|
71416
|
+
};
|
|
71417
|
+
export type BrowserListByobBrowsersResponse = BrowserListByobBrowsersResponses[keyof BrowserListByobBrowsersResponses];
|
|
71418
|
+
export type BrowserGetByobBrowserData = {
|
|
71419
|
+
body?: never;
|
|
71420
|
+
path: {
|
|
70047
71421
|
/**
|
|
70048
|
-
*
|
|
71422
|
+
* 自带浏览器 ID,以 byb_ 开头;使用配对认领或列出自带浏览器返回的 id。
|
|
70049
71423
|
*/
|
|
70050
|
-
|
|
71424
|
+
browser_id: string;
|
|
70051
71425
|
};
|
|
70052
|
-
|
|
71426
|
+
query?: never;
|
|
71427
|
+
url: '/browser/v1/byob/browsers/{browser_id}';
|
|
70053
71428
|
};
|
|
70054
|
-
export type
|
|
71429
|
+
export type BrowserGetByobBrowserErrors = {
|
|
70055
71430
|
/**
|
|
70056
71431
|
* INVALID_PARAMS / INVALID_FILTER / INVALID_PAGE_TOKEN
|
|
70057
71432
|
*/
|
|
@@ -70069,13 +71444,17 @@ export type BrowserListContextsErrors = {
|
|
|
70069
71444
|
*/
|
|
70070
71445
|
403: BrowserError;
|
|
70071
71446
|
/**
|
|
70072
|
-
* 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
|
|
70073
71448
|
*/
|
|
70074
71449
|
404: BrowserError;
|
|
70075
71450
|
/**
|
|
70076
|
-
* SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
71451
|
+
* SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
70077
71452
|
*/
|
|
70078
71453
|
409: BrowserError;
|
|
71454
|
+
/**
|
|
71455
|
+
* BROWSER_REVOKED
|
|
71456
|
+
*/
|
|
71457
|
+
410: BrowserError;
|
|
70079
71458
|
/**
|
|
70080
71459
|
* ACTION_RESULT_TOO_LARGE
|
|
70081
71460
|
*/
|
|
@@ -70097,7 +71476,7 @@ export type BrowserListContextsErrors = {
|
|
|
70097
71476
|
*/
|
|
70098
71477
|
502: BrowserError;
|
|
70099
71478
|
/**
|
|
70100
|
-
* SERVICE_UNAVAILABLE
|
|
71479
|
+
* BROWSER_OFFLINE / SERVICE_UNAVAILABLE
|
|
70101
71480
|
*/
|
|
70102
71481
|
503: BrowserError;
|
|
70103
71482
|
/**
|
|
@@ -70105,45 +71484,31 @@ export type BrowserListContextsErrors = {
|
|
|
70105
71484
|
*/
|
|
70106
71485
|
504: BrowserError;
|
|
70107
71486
|
};
|
|
70108
|
-
export type
|
|
70109
|
-
export type
|
|
71487
|
+
export type BrowserGetByobBrowserError = BrowserGetByobBrowserErrors[keyof BrowserGetByobBrowserErrors];
|
|
71488
|
+
export type BrowserGetByobBrowserResponses = {
|
|
70110
71489
|
/**
|
|
70111
|
-
*
|
|
71490
|
+
* 请求成功。
|
|
70112
71491
|
*/
|
|
70113
|
-
200:
|
|
70114
|
-
/**
|
|
70115
|
-
* 本页查询匹配的记录;没有匹配项时为空数组。
|
|
70116
|
-
*/
|
|
70117
|
-
data: Array<BrowserContext>;
|
|
70118
|
-
/**
|
|
70119
|
-
* 下一页游标;原样传入 cursor,null 表示没有更多结果。
|
|
70120
|
-
*/
|
|
70121
|
-
nextCursor: string | null;
|
|
70122
|
-
};
|
|
71492
|
+
200: BrowserByobBrowser;
|
|
70123
71493
|
};
|
|
70124
|
-
export type
|
|
70125
|
-
export type
|
|
71494
|
+
export type BrowserGetByobBrowserResponse = BrowserGetByobBrowserResponses[keyof BrowserGetByobBrowserResponses];
|
|
71495
|
+
export type BrowserUpdateByobBrowserData = {
|
|
70126
71496
|
body: {
|
|
70127
71497
|
/**
|
|
70128
|
-
*
|
|
71498
|
+
* 新的显示名称,1–80 个字符。
|
|
70129
71499
|
*/
|
|
70130
|
-
|
|
70131
|
-
|
|
70132
|
-
|
|
70133
|
-
*/
|
|
70134
|
-
name?: '' | unknown;
|
|
71500
|
+
name?: string;
|
|
71501
|
+
};
|
|
71502
|
+
path: {
|
|
70135
71503
|
/**
|
|
70136
|
-
*
|
|
71504
|
+
* 自带浏览器 ID,以 byb_ 开头;使用配对认领或列出自带浏览器返回的 id。
|
|
70137
71505
|
*/
|
|
70138
|
-
|
|
70139
|
-
[key: string]: string;
|
|
70140
|
-
};
|
|
71506
|
+
browser_id: string;
|
|
70141
71507
|
};
|
|
70142
|
-
path?: never;
|
|
70143
71508
|
query?: never;
|
|
70144
|
-
url: '/browser/v1/
|
|
71509
|
+
url: '/browser/v1/byob/browsers/{browser_id}';
|
|
70145
71510
|
};
|
|
70146
|
-
export type
|
|
71511
|
+
export type BrowserUpdateByobBrowserErrors = {
|
|
70147
71512
|
/**
|
|
70148
71513
|
* INVALID_PARAMS / INVALID_FILTER / INVALID_PAGE_TOKEN
|
|
70149
71514
|
*/
|
|
@@ -70161,13 +71526,17 @@ export type BrowserCreateContextErrors = {
|
|
|
70161
71526
|
*/
|
|
70162
71527
|
403: BrowserError;
|
|
70163
71528
|
/**
|
|
70164
|
-
* 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
|
|
70165
71530
|
*/
|
|
70166
71531
|
404: BrowserError;
|
|
70167
71532
|
/**
|
|
70168
|
-
* SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
71533
|
+
* SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
70169
71534
|
*/
|
|
70170
71535
|
409: BrowserError;
|
|
71536
|
+
/**
|
|
71537
|
+
* BROWSER_REVOKED
|
|
71538
|
+
*/
|
|
71539
|
+
410: BrowserError;
|
|
70171
71540
|
/**
|
|
70172
71541
|
* ACTION_RESULT_TOO_LARGE
|
|
70173
71542
|
*/
|
|
@@ -70189,7 +71558,7 @@ export type BrowserCreateContextErrors = {
|
|
|
70189
71558
|
*/
|
|
70190
71559
|
502: BrowserError;
|
|
70191
71560
|
/**
|
|
70192
|
-
* SERVICE_UNAVAILABLE
|
|
71561
|
+
* BROWSER_OFFLINE / SERVICE_UNAVAILABLE
|
|
70193
71562
|
*/
|
|
70194
71563
|
503: BrowserError;
|
|
70195
71564
|
/**
|
|
@@ -70197,26 +71566,26 @@ export type BrowserCreateContextErrors = {
|
|
|
70197
71566
|
*/
|
|
70198
71567
|
504: BrowserError;
|
|
70199
71568
|
};
|
|
70200
|
-
export type
|
|
70201
|
-
export type
|
|
71569
|
+
export type BrowserUpdateByobBrowserError = BrowserUpdateByobBrowserErrors[keyof BrowserUpdateByobBrowserErrors];
|
|
71570
|
+
export type BrowserUpdateByobBrowserResponses = {
|
|
70202
71571
|
/**
|
|
70203
71572
|
* 请求成功。
|
|
70204
71573
|
*/
|
|
70205
|
-
|
|
71574
|
+
200: BrowserByobBrowser;
|
|
70206
71575
|
};
|
|
70207
|
-
export type
|
|
70208
|
-
export type
|
|
71576
|
+
export type BrowserUpdateByobBrowserResponse = BrowserUpdateByobBrowserResponses[keyof BrowserUpdateByobBrowserResponses];
|
|
71577
|
+
export type BrowserDisconnectByobBrowserData = {
|
|
70209
71578
|
body?: never;
|
|
70210
71579
|
path: {
|
|
70211
71580
|
/**
|
|
70212
|
-
*
|
|
71581
|
+
* 自带浏览器 ID,以 byb_ 开头;使用配对认领或列出自带浏览器返回的 id。
|
|
70213
71582
|
*/
|
|
70214
|
-
|
|
71583
|
+
browser_id: string;
|
|
70215
71584
|
};
|
|
70216
71585
|
query?: never;
|
|
70217
|
-
url: '/browser/v1/
|
|
71586
|
+
url: '/browser/v1/byob/browsers/{browser_id}/disconnect';
|
|
70218
71587
|
};
|
|
70219
|
-
export type
|
|
71588
|
+
export type BrowserDisconnectByobBrowserErrors = {
|
|
70220
71589
|
/**
|
|
70221
71590
|
* INVALID_PARAMS / INVALID_FILTER / INVALID_PAGE_TOKEN
|
|
70222
71591
|
*/
|
|
@@ -70234,13 +71603,17 @@ export type BrowserDeleteContextErrors = {
|
|
|
70234
71603
|
*/
|
|
70235
71604
|
403: BrowserError;
|
|
70236
71605
|
/**
|
|
70237
|
-
* 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
|
|
70238
71607
|
*/
|
|
70239
71608
|
404: BrowserError;
|
|
70240
71609
|
/**
|
|
70241
|
-
* SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
71610
|
+
* SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
70242
71611
|
*/
|
|
70243
71612
|
409: BrowserError;
|
|
71613
|
+
/**
|
|
71614
|
+
* BROWSER_REVOKED
|
|
71615
|
+
*/
|
|
71616
|
+
410: BrowserError;
|
|
70244
71617
|
/**
|
|
70245
71618
|
* ACTION_RESULT_TOO_LARGE
|
|
70246
71619
|
*/
|
|
@@ -70262,7 +71635,7 @@ export type BrowserDeleteContextErrors = {
|
|
|
70262
71635
|
*/
|
|
70263
71636
|
502: BrowserError;
|
|
70264
71637
|
/**
|
|
70265
|
-
* SERVICE_UNAVAILABLE
|
|
71638
|
+
* BROWSER_OFFLINE / SERVICE_UNAVAILABLE
|
|
70266
71639
|
*/
|
|
70267
71640
|
503: BrowserError;
|
|
70268
71641
|
/**
|
|
@@ -70270,31 +71643,26 @@ export type BrowserDeleteContextErrors = {
|
|
|
70270
71643
|
*/
|
|
70271
71644
|
504: BrowserError;
|
|
70272
71645
|
};
|
|
70273
|
-
export type
|
|
70274
|
-
export type
|
|
71646
|
+
export type BrowserDisconnectByobBrowserError = BrowserDisconnectByobBrowserErrors[keyof BrowserDisconnectByobBrowserErrors];
|
|
71647
|
+
export type BrowserDisconnectByobBrowserResponses = {
|
|
70275
71648
|
/**
|
|
70276
71649
|
* 请求成功。
|
|
70277
71650
|
*/
|
|
70278
|
-
200:
|
|
70279
|
-
/**
|
|
70280
|
-
* 登录态及保存内容已删除,成功时固定返回 true。
|
|
70281
|
-
*/
|
|
70282
|
-
deleted: true;
|
|
70283
|
-
};
|
|
71651
|
+
200: BrowserByobBrowser;
|
|
70284
71652
|
};
|
|
70285
|
-
export type
|
|
70286
|
-
export type
|
|
71653
|
+
export type BrowserDisconnectByobBrowserResponse = BrowserDisconnectByobBrowserResponses[keyof BrowserDisconnectByobBrowserResponses];
|
|
71654
|
+
export type BrowserReadByobPairingData = {
|
|
70287
71655
|
body?: never;
|
|
70288
71656
|
path: {
|
|
70289
71657
|
/**
|
|
70290
|
-
*
|
|
71658
|
+
* 8 位配对码,来自创建配对码的结果。
|
|
70291
71659
|
*/
|
|
70292
|
-
|
|
71660
|
+
code: string;
|
|
70293
71661
|
};
|
|
70294
71662
|
query?: never;
|
|
70295
|
-
url: '/browser/v1/
|
|
71663
|
+
url: '/browser/v1/byob/pairings/{code}';
|
|
70296
71664
|
};
|
|
70297
|
-
export type
|
|
71665
|
+
export type BrowserReadByobPairingErrors = {
|
|
70298
71666
|
/**
|
|
70299
71667
|
* INVALID_PARAMS / INVALID_FILTER / INVALID_PAGE_TOKEN
|
|
70300
71668
|
*/
|
|
@@ -70312,13 +71680,17 @@ export type BrowserGetContextErrors = {
|
|
|
70312
71680
|
*/
|
|
70313
71681
|
403: BrowserError;
|
|
70314
71682
|
/**
|
|
70315
|
-
* 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
|
|
70316
71684
|
*/
|
|
70317
71685
|
404: BrowserError;
|
|
70318
71686
|
/**
|
|
70319
|
-
* SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
71687
|
+
* SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
70320
71688
|
*/
|
|
70321
71689
|
409: BrowserError;
|
|
71690
|
+
/**
|
|
71691
|
+
* BROWSER_REVOKED
|
|
71692
|
+
*/
|
|
71693
|
+
410: BrowserError;
|
|
70322
71694
|
/**
|
|
70323
71695
|
* ACTION_RESULT_TOO_LARGE
|
|
70324
71696
|
*/
|
|
@@ -70340,7 +71712,7 @@ export type BrowserGetContextErrors = {
|
|
|
70340
71712
|
*/
|
|
70341
71713
|
502: BrowserError;
|
|
70342
71714
|
/**
|
|
70343
|
-
* SERVICE_UNAVAILABLE
|
|
71715
|
+
* BROWSER_OFFLINE / SERVICE_UNAVAILABLE
|
|
70344
71716
|
*/
|
|
70345
71717
|
503: BrowserError;
|
|
70346
71718
|
/**
|
|
@@ -70348,37 +71720,26 @@ export type BrowserGetContextErrors = {
|
|
|
70348
71720
|
*/
|
|
70349
71721
|
504: BrowserError;
|
|
70350
71722
|
};
|
|
70351
|
-
export type
|
|
70352
|
-
export type
|
|
71723
|
+
export type BrowserReadByobPairingError = BrowserReadByobPairingErrors[keyof BrowserReadByobPairingErrors];
|
|
71724
|
+
export type BrowserReadByobPairingResponses = {
|
|
70353
71725
|
/**
|
|
70354
71726
|
* 请求成功。
|
|
70355
71727
|
*/
|
|
70356
|
-
200:
|
|
71728
|
+
200: BrowserByobPairingView;
|
|
70357
71729
|
};
|
|
70358
|
-
export type
|
|
70359
|
-
export type
|
|
70360
|
-
body:
|
|
70361
|
-
/**
|
|
70362
|
-
* 登录态名称;非空时为 1–128 个 ASCII 字母、数字或 . _ : -,在当前账户内唯一;空字符串表示不设名称或清除名称。
|
|
70363
|
-
*/
|
|
70364
|
-
name?: '' | unknown;
|
|
70365
|
-
/**
|
|
70366
|
-
* 自定义字符串标签;最多 32 项,键最多 128 个 UTF-8 字节,值最多 1024 个 UTF-8 字节。 更新时整体替换;空对象清除标签,省略则保留。
|
|
70367
|
-
*/
|
|
70368
|
-
labels?: {
|
|
70369
|
-
[key: string]: string;
|
|
70370
|
-
};
|
|
70371
|
-
};
|
|
71730
|
+
export type BrowserReadByobPairingResponse = BrowserReadByobPairingResponses[keyof BrowserReadByobPairingResponses];
|
|
71731
|
+
export type BrowserClaimByobPairingData = {
|
|
71732
|
+
body: BrowserByobClaim;
|
|
70372
71733
|
path: {
|
|
70373
71734
|
/**
|
|
70374
|
-
*
|
|
71735
|
+
* 8 位配对码,来自创建配对码的结果。
|
|
70375
71736
|
*/
|
|
70376
|
-
|
|
71737
|
+
code: string;
|
|
70377
71738
|
};
|
|
70378
71739
|
query?: never;
|
|
70379
|
-
url: '/browser/v1/
|
|
71740
|
+
url: '/browser/v1/byob/pairings/{code}/claim';
|
|
70380
71741
|
};
|
|
70381
|
-
export type
|
|
71742
|
+
export type BrowserClaimByobPairingErrors = {
|
|
70382
71743
|
/**
|
|
70383
71744
|
* INVALID_PARAMS / INVALID_FILTER / INVALID_PAGE_TOKEN
|
|
70384
71745
|
*/
|
|
@@ -70396,13 +71757,17 @@ export type BrowserUpdateContextErrors = {
|
|
|
70396
71757
|
*/
|
|
70397
71758
|
403: BrowserError;
|
|
70398
71759
|
/**
|
|
70399
|
-
* 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
|
|
70400
71761
|
*/
|
|
70401
71762
|
404: BrowserError;
|
|
70402
71763
|
/**
|
|
70403
|
-
* SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
71764
|
+
* SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
70404
71765
|
*/
|
|
70405
71766
|
409: BrowserError;
|
|
71767
|
+
/**
|
|
71768
|
+
* BROWSER_REVOKED
|
|
71769
|
+
*/
|
|
71770
|
+
410: BrowserError;
|
|
70406
71771
|
/**
|
|
70407
71772
|
* ACTION_RESULT_TOO_LARGE
|
|
70408
71773
|
*/
|
|
@@ -70424,7 +71789,7 @@ export type BrowserUpdateContextErrors = {
|
|
|
70424
71789
|
*/
|
|
70425
71790
|
502: BrowserError;
|
|
70426
71791
|
/**
|
|
70427
|
-
* SERVICE_UNAVAILABLE
|
|
71792
|
+
* BROWSER_OFFLINE / SERVICE_UNAVAILABLE
|
|
70428
71793
|
*/
|
|
70429
71794
|
503: BrowserError;
|
|
70430
71795
|
/**
|
|
@@ -70432,14 +71797,14 @@ export type BrowserUpdateContextErrors = {
|
|
|
70432
71797
|
*/
|
|
70433
71798
|
504: BrowserError;
|
|
70434
71799
|
};
|
|
70435
|
-
export type
|
|
70436
|
-
export type
|
|
71800
|
+
export type BrowserClaimByobPairingError = BrowserClaimByobPairingErrors[keyof BrowserClaimByobPairingErrors];
|
|
71801
|
+
export type BrowserClaimByobPairingResponses = {
|
|
70437
71802
|
/**
|
|
70438
|
-
*
|
|
71803
|
+
* 认领成功。
|
|
70439
71804
|
*/
|
|
70440
|
-
|
|
71805
|
+
201: BrowserByobClaimResult;
|
|
70441
71806
|
};
|
|
70442
|
-
export type
|
|
71807
|
+
export type BrowserClaimByobPairingResponse = BrowserClaimByobPairingResponses[keyof BrowserClaimByobPairingResponses];
|
|
70443
71808
|
export type BrowserConnectData = {
|
|
70444
71809
|
body?: never;
|
|
70445
71810
|
path?: never;
|
|
@@ -70501,13 +71866,17 @@ export type BrowserConnectErrors = {
|
|
|
70501
71866
|
*/
|
|
70502
71867
|
403: BrowserError;
|
|
70503
71868
|
/**
|
|
70504
|
-
* 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
|
|
70505
71870
|
*/
|
|
70506
71871
|
404: BrowserError;
|
|
70507
71872
|
/**
|
|
70508
|
-
* SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
71873
|
+
* SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
70509
71874
|
*/
|
|
70510
71875
|
409: BrowserError;
|
|
71876
|
+
/**
|
|
71877
|
+
* BROWSER_REVOKED
|
|
71878
|
+
*/
|
|
71879
|
+
410: BrowserError;
|
|
70511
71880
|
/**
|
|
70512
71881
|
* ACTION_RESULT_TOO_LARGE
|
|
70513
71882
|
*/
|
|
@@ -70529,7 +71898,7 @@ export type BrowserConnectErrors = {
|
|
|
70529
71898
|
*/
|
|
70530
71899
|
502: BrowserError;
|
|
70531
71900
|
/**
|
|
70532
|
-
* SERVICE_UNAVAILABLE
|
|
71901
|
+
* BROWSER_OFFLINE / SERVICE_UNAVAILABLE
|
|
70533
71902
|
*/
|
|
70534
71903
|
503: BrowserError;
|
|
70535
71904
|
/**
|
|
@@ -70576,13 +71945,17 @@ export type BrowserLiveViewErrors = {
|
|
|
70576
71945
|
*/
|
|
70577
71946
|
403: BrowserError;
|
|
70578
71947
|
/**
|
|
70579
|
-
* 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
|
|
70580
71949
|
*/
|
|
70581
71950
|
404: BrowserError;
|
|
70582
71951
|
/**
|
|
70583
|
-
* SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
71952
|
+
* SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
70584
71953
|
*/
|
|
70585
71954
|
409: BrowserError;
|
|
71955
|
+
/**
|
|
71956
|
+
* BROWSER_REVOKED
|
|
71957
|
+
*/
|
|
71958
|
+
410: BrowserError;
|
|
70586
71959
|
/**
|
|
70587
71960
|
* ACTION_RESULT_TOO_LARGE
|
|
70588
71961
|
*/
|
|
@@ -70604,7 +71977,7 @@ export type BrowserLiveViewErrors = {
|
|
|
70604
71977
|
*/
|
|
70605
71978
|
502: BrowserError;
|
|
70606
71979
|
/**
|
|
70607
|
-
* SERVICE_UNAVAILABLE
|
|
71980
|
+
* BROWSER_OFFLINE / SERVICE_UNAVAILABLE
|
|
70608
71981
|
*/
|
|
70609
71982
|
503: BrowserError;
|
|
70610
71983
|
/**
|
|
@@ -70642,13 +72015,17 @@ export type BrowserStreamSessionErrors = {
|
|
|
70642
72015
|
*/
|
|
70643
72016
|
403: BrowserError;
|
|
70644
72017
|
/**
|
|
70645
|
-
* 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
|
|
70646
72019
|
*/
|
|
70647
72020
|
404: BrowserError;
|
|
70648
72021
|
/**
|
|
70649
|
-
* SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
72022
|
+
* SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
70650
72023
|
*/
|
|
70651
72024
|
409: BrowserError;
|
|
72025
|
+
/**
|
|
72026
|
+
* BROWSER_REVOKED
|
|
72027
|
+
*/
|
|
72028
|
+
410: BrowserError;
|
|
70652
72029
|
/**
|
|
70653
72030
|
* ACTION_RESULT_TOO_LARGE
|
|
70654
72031
|
*/
|
|
@@ -70670,7 +72047,7 @@ export type BrowserStreamSessionErrors = {
|
|
|
70670
72047
|
*/
|
|
70671
72048
|
502: BrowserError;
|
|
70672
72049
|
/**
|
|
70673
|
-
* SERVICE_UNAVAILABLE
|
|
72050
|
+
* BROWSER_OFFLINE / SERVICE_UNAVAILABLE
|
|
70674
72051
|
*/
|
|
70675
72052
|
503: BrowserError;
|
|
70676
72053
|
/**
|
|
@@ -70715,13 +72092,17 @@ export type BrowserStreamSessionFramesErrors = {
|
|
|
70715
72092
|
*/
|
|
70716
72093
|
403: BrowserError;
|
|
70717
72094
|
/**
|
|
70718
|
-
* 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
|
|
70719
72096
|
*/
|
|
70720
72097
|
404: BrowserError;
|
|
70721
72098
|
/**
|
|
70722
|
-
* SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
72099
|
+
* SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
70723
72100
|
*/
|
|
70724
72101
|
409: BrowserError;
|
|
72102
|
+
/**
|
|
72103
|
+
* BROWSER_REVOKED
|
|
72104
|
+
*/
|
|
72105
|
+
410: BrowserError;
|
|
70725
72106
|
/**
|
|
70726
72107
|
* ACTION_RESULT_TOO_LARGE
|
|
70727
72108
|
*/
|
|
@@ -70743,7 +72124,7 @@ export type BrowserStreamSessionFramesErrors = {
|
|
|
70743
72124
|
*/
|
|
70744
72125
|
502: BrowserError;
|
|
70745
72126
|
/**
|
|
70746
|
-
* SERVICE_UNAVAILABLE
|
|
72127
|
+
* BROWSER_OFFLINE / SERVICE_UNAVAILABLE
|
|
70747
72128
|
*/
|
|
70748
72129
|
503: BrowserError;
|
|
70749
72130
|
/**
|
|
@@ -78048,10 +79429,18 @@ export type GetOrganizationNotificationsInboxData = {
|
|
|
78048
79429
|
url: '/organization/v1/notifications/inbox';
|
|
78049
79430
|
};
|
|
78050
79431
|
export type GetOrganizationNotificationsInboxErrors = {
|
|
79432
|
+
/**
|
|
79433
|
+
* `INVALID_PARAMS` from the service for a read it cannot answer (RFC 9457 problem).
|
|
79434
|
+
*/
|
|
79435
|
+
400: unknown;
|
|
78051
79436
|
/**
|
|
78052
79437
|
* Missing or invalid credential (RFC 9457 problem).
|
|
78053
79438
|
*/
|
|
78054
79439
|
401: unknown;
|
|
79440
|
+
/**
|
|
79441
|
+
* The notification service did not answer, or failed in a way it did not classify (RFC 9457 problem, `UNAVAILABLE`). A refusal the service classifies is never a 502 — it reaches the caller in its own class (400, 403, 404), so a client may act on it.
|
|
79442
|
+
*/
|
|
79443
|
+
502: unknown;
|
|
78055
79444
|
};
|
|
78056
79445
|
export type GetOrganizationNotificationsInboxResponses = {
|
|
78057
79446
|
/**
|
|
@@ -78352,13 +79741,17 @@ export type ReadAllOrganizationNotificationLettersData = {
|
|
|
78352
79741
|
};
|
|
78353
79742
|
export type ReadAllOrganizationNotificationLettersErrors = {
|
|
78354
79743
|
/**
|
|
78355
|
-
* The body is not a JSON object,
|
|
79744
|
+
* The body is not a JSON object, `kind` is unknown, or `INVALID_PARAMS` from the service (RFC 9457 problem).
|
|
78356
79745
|
*/
|
|
78357
79746
|
400: unknown;
|
|
78358
79747
|
/**
|
|
78359
79748
|
* Missing or invalid credential (RFC 9457 problem).
|
|
78360
79749
|
*/
|
|
78361
79750
|
401: unknown;
|
|
79751
|
+
/**
|
|
79752
|
+
* The notification service did not answer, or failed in a way it did not classify (RFC 9457 problem, `UNAVAILABLE`). A refusal the service classifies is never a 502 — it reaches the caller in its own class (400, 403, 404), so a client may act on it.
|
|
79753
|
+
*/
|
|
79754
|
+
502: unknown;
|
|
78362
79755
|
};
|
|
78363
79756
|
export type ReadAllOrganizationNotificationLettersResponses = {
|
|
78364
79757
|
/**
|
|
@@ -78424,6 +79817,10 @@ export type GetOrganizationNotificationPreferencesErrors = {
|
|
|
78424
79817
|
* Missing or invalid credential (RFC 9457 problem).
|
|
78425
79818
|
*/
|
|
78426
79819
|
401: unknown;
|
|
79820
|
+
/**
|
|
79821
|
+
* The notification service did not answer, or failed in a way it did not classify (RFC 9457 problem, `UNAVAILABLE`). A refusal the service classifies is never a 502 — it reaches the caller in its own class (400, 403, 404), so a client may act on it.
|
|
79822
|
+
*/
|
|
79823
|
+
502: unknown;
|
|
78427
79824
|
};
|
|
78428
79825
|
export type GetOrganizationNotificationPreferencesResponses = {
|
|
78429
79826
|
/**
|
|
@@ -78515,7 +79912,7 @@ export type UpdateOrganizationNotificationPreferencesData = {
|
|
|
78515
79912
|
};
|
|
78516
79913
|
export type UpdateOrganizationNotificationPreferencesErrors = {
|
|
78517
79914
|
/**
|
|
78518
|
-
* Invalid switch, unknown category or unoffered channel (RFC 9457 problem).
|
|
79915
|
+
* Invalid switch, unknown category or unoffered channel — `INVALID_PARAMS`, `NOT_CONFIGURABLE` or `CRITICAL_CHANNELS_OFF` from the service (RFC 9457 problem).
|
|
78519
79916
|
*/
|
|
78520
79917
|
400: unknown;
|
|
78521
79918
|
/**
|
|
@@ -78523,9 +79920,13 @@ export type UpdateOrganizationNotificationPreferencesErrors = {
|
|
|
78523
79920
|
*/
|
|
78524
79921
|
401: unknown;
|
|
78525
79922
|
/**
|
|
78526
|
-
* The organization does not let members change their own switches (
|
|
79923
|
+
* The organization does not let members change their own switches — `ORGANIZATION_LOCKED` from the service (RFC 9457 problem).
|
|
78527
79924
|
*/
|
|
78528
79925
|
403: unknown;
|
|
79926
|
+
/**
|
|
79927
|
+
* The notification service did not answer, or failed in a way it did not classify (RFC 9457 problem, `UNAVAILABLE`). A refusal the service classifies is never a 502 — it reaches the caller in its own class (400, 403, 404), so a client may act on it.
|
|
79928
|
+
*/
|
|
79929
|
+
502: unknown;
|
|
78529
79930
|
};
|
|
78530
79931
|
export type UpdateOrganizationNotificationPreferencesResponses = {
|
|
78531
79932
|
/**
|
|
@@ -78547,6 +79948,10 @@ export type GetOrganizationNotificationDefaultsErrors = {
|
|
|
78547
79948
|
* Missing or invalid credential (RFC 9457 problem).
|
|
78548
79949
|
*/
|
|
78549
79950
|
401: unknown;
|
|
79951
|
+
/**
|
|
79952
|
+
* The notification service did not answer, or failed in a way it did not classify (RFC 9457 problem, `UNAVAILABLE`). A refusal the service classifies is never a 502 — it reaches the caller in its own class (400, 403, 404), so a client may act on it.
|
|
79953
|
+
*/
|
|
79954
|
+
502: unknown;
|
|
78550
79955
|
};
|
|
78551
79956
|
export type GetOrganizationNotificationDefaultsResponses = {
|
|
78552
79957
|
/**
|
|
@@ -78626,13 +80031,17 @@ export type ListOrganizationNotificationDeliveriesData = {
|
|
|
78626
80031
|
};
|
|
78627
80032
|
export type ListOrganizationNotificationDeliveriesErrors = {
|
|
78628
80033
|
/**
|
|
78629
|
-
* Invalid limit or page cursor (RFC 9457 problem).
|
|
80034
|
+
* Invalid limit, or `INVALID_PARAMS` from the service for a page cursor it did not issue (RFC 9457 problem).
|
|
78630
80035
|
*/
|
|
78631
80036
|
400: unknown;
|
|
78632
80037
|
/**
|
|
78633
80038
|
* Missing or invalid credential (RFC 9457 problem).
|
|
78634
80039
|
*/
|
|
78635
80040
|
401: unknown;
|
|
80041
|
+
/**
|
|
80042
|
+
* The notification service did not answer, or failed in a way it did not classify (RFC 9457 problem, `UNAVAILABLE`). A refusal the service classifies is never a 502 — it reaches the caller in its own class (400, 403, 404), so a client may act on it.
|
|
80043
|
+
*/
|
|
80044
|
+
502: unknown;
|
|
78636
80045
|
};
|
|
78637
80046
|
export type ListOrganizationNotificationDeliveriesResponses = {
|
|
78638
80047
|
/**
|
|
@@ -79864,7 +81273,7 @@ export type ListByodDevicesResponses = {
|
|
|
79864
81273
|
*/
|
|
79865
81274
|
id: string;
|
|
79866
81275
|
/**
|
|
79867
|
-
* 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.
|
|
79868
81277
|
*/
|
|
79869
81278
|
platform: 'android' | 'macos' | 'linux';
|
|
79870
81279
|
/**
|
|
@@ -79899,6 +81308,23 @@ export type ListByodDevicesResponses = {
|
|
|
79899
81308
|
* The absolute directories a desktop registered for agent sessions with its last hello; a session may only start in one of these. Empty for a phone and for a desktop that has not connected yet.
|
|
79900
81309
|
*/
|
|
79901
81310
|
agent_dirs: Array<string>;
|
|
81311
|
+
/**
|
|
81312
|
+
* Which agent each registered directory is bound to, as the desktop's last hello reported. Empty for a phone and for a desktop that has not connected yet.
|
|
81313
|
+
*/
|
|
81314
|
+
agent_bindings: Array<{
|
|
81315
|
+
/**
|
|
81316
|
+
* The absolute directory the desktop bound to an agent with praxis agent connect.
|
|
81317
|
+
*/
|
|
81318
|
+
dir: string;
|
|
81319
|
+
/**
|
|
81320
|
+
* The agent the directory is bound to: its identity number or its agent id.
|
|
81321
|
+
*/
|
|
81322
|
+
agent: string;
|
|
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;
|
|
79902
81328
|
/**
|
|
79903
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.
|
|
79904
81330
|
*/
|
|
@@ -79946,7 +81372,7 @@ export type GetByodDeviceResponses = {
|
|
|
79946
81372
|
*/
|
|
79947
81373
|
id: string;
|
|
79948
81374
|
/**
|
|
79949
|
-
* 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.
|
|
79950
81376
|
*/
|
|
79951
81377
|
platform: 'android' | 'macos' | 'linux';
|
|
79952
81378
|
/**
|
|
@@ -79981,6 +81407,23 @@ export type GetByodDeviceResponses = {
|
|
|
79981
81407
|
* The absolute directories a desktop registered for agent sessions with its last hello; a session may only start in one of these. Empty for a phone and for a desktop that has not connected yet.
|
|
79982
81408
|
*/
|
|
79983
81409
|
agent_dirs: Array<string>;
|
|
81410
|
+
/**
|
|
81411
|
+
* Which agent each registered directory is bound to, as the desktop's last hello reported. Empty for a phone and for a desktop that has not connected yet.
|
|
81412
|
+
*/
|
|
81413
|
+
agent_bindings: Array<{
|
|
81414
|
+
/**
|
|
81415
|
+
* The absolute directory the desktop bound to an agent with praxis agent connect.
|
|
81416
|
+
*/
|
|
81417
|
+
dir: string;
|
|
81418
|
+
/**
|
|
81419
|
+
* The agent the directory is bound to: its identity number or its agent id.
|
|
81420
|
+
*/
|
|
81421
|
+
agent: string;
|
|
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;
|
|
79984
81427
|
/**
|
|
79985
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.
|
|
79986
81429
|
*/
|
|
@@ -80039,7 +81482,7 @@ export type UpdateByodDeviceResponses = {
|
|
|
80039
81482
|
*/
|
|
80040
81483
|
id: string;
|
|
80041
81484
|
/**
|
|
80042
|
-
* 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.
|
|
80043
81486
|
*/
|
|
80044
81487
|
platform: 'android' | 'macos' | 'linux';
|
|
80045
81488
|
/**
|
|
@@ -80074,6 +81517,23 @@ export type UpdateByodDeviceResponses = {
|
|
|
80074
81517
|
* The absolute directories a desktop registered for agent sessions with its last hello; a session may only start in one of these. Empty for a phone and for a desktop that has not connected yet.
|
|
80075
81518
|
*/
|
|
80076
81519
|
agent_dirs: Array<string>;
|
|
81520
|
+
/**
|
|
81521
|
+
* Which agent each registered directory is bound to, as the desktop's last hello reported. Empty for a phone and for a desktop that has not connected yet.
|
|
81522
|
+
*/
|
|
81523
|
+
agent_bindings: Array<{
|
|
81524
|
+
/**
|
|
81525
|
+
* The absolute directory the desktop bound to an agent with praxis agent connect.
|
|
81526
|
+
*/
|
|
81527
|
+
dir: string;
|
|
81528
|
+
/**
|
|
81529
|
+
* The agent the directory is bound to: its identity number or its agent id.
|
|
81530
|
+
*/
|
|
81531
|
+
agent: string;
|
|
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;
|
|
80077
81537
|
/**
|
|
80078
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.
|
|
80079
81539
|
*/
|
|
@@ -80165,7 +81625,7 @@ export type ClaimByodPairingData = {
|
|
|
80165
81625
|
*/
|
|
80166
81626
|
body: {
|
|
80167
81627
|
/**
|
|
80168
|
-
* 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.
|
|
80169
81629
|
*/
|
|
80170
81630
|
platform: 'android' | 'macos' | 'linux';
|
|
80171
81631
|
/**
|
|
@@ -80196,7 +81656,7 @@ export type ClaimByodPairingData = {
|
|
|
80196
81656
|
};
|
|
80197
81657
|
export type ClaimByodPairingErrors = {
|
|
80198
81658
|
/**
|
|
80199
|
-
* 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.
|
|
80200
81660
|
*/
|
|
80201
81661
|
400: unknown;
|
|
80202
81662
|
/**
|
|
@@ -82819,8 +84279,7 @@ export type SessionsUpdateData = {
|
|
|
82819
84279
|
*/
|
|
82820
84280
|
title?: null | string;
|
|
82821
84281
|
/**
|
|
82822
|
-
*
|
|
82823
|
-
* 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.
|
|
82824
84283
|
*/
|
|
82825
84284
|
vault_ids?: Array<string>;
|
|
82826
84285
|
/**
|
|
@@ -83367,6 +84826,15 @@ export type AgentsListResponses = {
|
|
|
83367
84826
|
name: string;
|
|
83368
84827
|
}>;
|
|
83369
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;
|
|
83370
84838
|
/**
|
|
83371
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.
|
|
83372
84840
|
*/
|
|
@@ -83752,7 +85220,7 @@ export type AgentsListResponses = {
|
|
|
83752
85220
|
*/
|
|
83753
85221
|
environment_id?: string | null;
|
|
83754
85222
|
/**
|
|
83755
|
-
* 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.
|
|
83756
85224
|
*/
|
|
83757
85225
|
vault_ids?: Array<string>;
|
|
83758
85226
|
/**
|
|
@@ -84291,7 +85759,7 @@ export type AgentsCreateData = {
|
|
|
84291
85759
|
*/
|
|
84292
85760
|
environment_id?: string | null;
|
|
84293
85761
|
/**
|
|
84294
|
-
* 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.
|
|
84295
85763
|
*/
|
|
84296
85764
|
vault_ids?: Array<string>;
|
|
84297
85765
|
/**
|
|
@@ -84316,6 +85784,15 @@ export type AgentsCreateData = {
|
|
|
84316
85784
|
name: string;
|
|
84317
85785
|
}>;
|
|
84318
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;
|
|
84319
85796
|
/**
|
|
84320
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.
|
|
84321
85798
|
*/
|
|
@@ -84571,6 +86048,15 @@ export type AgentsCreateResponses = {
|
|
|
84571
86048
|
name: string;
|
|
84572
86049
|
}>;
|
|
84573
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;
|
|
84574
86060
|
/**
|
|
84575
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.
|
|
84576
86062
|
*/
|
|
@@ -84956,7 +86442,7 @@ export type AgentsCreateResponses = {
|
|
|
84956
86442
|
*/
|
|
84957
86443
|
environment_id?: string | null;
|
|
84958
86444
|
/**
|
|
84959
|
-
* 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.
|
|
84960
86446
|
*/
|
|
84961
86447
|
vault_ids?: Array<string>;
|
|
84962
86448
|
/**
|
|
@@ -85233,6 +86719,15 @@ export type AgentsRetrieveResponses = {
|
|
|
85233
86719
|
name: string;
|
|
85234
86720
|
}>;
|
|
85235
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;
|
|
85236
86731
|
/**
|
|
85237
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.
|
|
85238
86733
|
*/
|
|
@@ -85618,7 +87113,7 @@ export type AgentsRetrieveResponses = {
|
|
|
85618
87113
|
*/
|
|
85619
87114
|
environment_id?: string | null;
|
|
85620
87115
|
/**
|
|
85621
|
-
* 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.
|
|
85622
87117
|
*/
|
|
85623
87118
|
vault_ids?: Array<string>;
|
|
85624
87119
|
/**
|
|
@@ -86166,7 +87661,7 @@ export type AgentsUpdateData = {
|
|
|
86166
87661
|
*/
|
|
86167
87662
|
environment_id?: string | null;
|
|
86168
87663
|
/**
|
|
86169
|
-
* 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.
|
|
86170
87665
|
*/
|
|
86171
87666
|
vault_ids?: Array<string>;
|
|
86172
87667
|
/**
|
|
@@ -86191,6 +87686,15 @@ export type AgentsUpdateData = {
|
|
|
86191
87686
|
name: string;
|
|
86192
87687
|
}>;
|
|
86193
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;
|
|
86194
87698
|
/**
|
|
86195
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.
|
|
86196
87700
|
*/
|
|
@@ -86459,6 +87963,15 @@ export type AgentsUpdateResponses = {
|
|
|
86459
87963
|
name: string;
|
|
86460
87964
|
}>;
|
|
86461
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;
|
|
86462
87975
|
/**
|
|
86463
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.
|
|
86464
87977
|
*/
|
|
@@ -86844,7 +88357,7 @@ export type AgentsUpdateResponses = {
|
|
|
86844
88357
|
*/
|
|
86845
88358
|
environment_id?: string | null;
|
|
86846
88359
|
/**
|
|
86847
|
-
* 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.
|
|
86848
88361
|
*/
|
|
86849
88362
|
vault_ids?: Array<string>;
|
|
86850
88363
|
/**
|
|
@@ -87470,7 +88983,7 @@ export type AgentsArchiveResponses = {
|
|
|
87470
88983
|
*/
|
|
87471
88984
|
environment_id?: string | null;
|
|
87472
88985
|
/**
|
|
87473
|
-
* 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.
|
|
87474
88987
|
*/
|
|
87475
88988
|
vault_ids?: Array<string>;
|
|
87476
88989
|
/**
|
|
@@ -87747,6 +89260,15 @@ export type AgentsVersionsListResponses = {
|
|
|
87747
89260
|
name: string;
|
|
87748
89261
|
}>;
|
|
87749
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;
|
|
87750
89272
|
/**
|
|
87751
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.
|
|
87752
89274
|
*/
|
|
@@ -88132,7 +89654,7 @@ export type AgentsVersionsListResponses = {
|
|
|
88132
89654
|
*/
|
|
88133
89655
|
environment_id?: string | null;
|
|
88134
89656
|
/**
|
|
88135
|
-
* 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.
|
|
88136
89658
|
*/
|
|
88137
89659
|
vault_ids?: Array<string>;
|
|
88138
89660
|
/**
|
|
@@ -111139,6 +112661,51 @@ export type DevopsChangesMarkLastSliceResponses = {
|
|
|
111139
112661
|
200: DevopsChange;
|
|
111140
112662
|
};
|
|
111141
112663
|
export type DevopsChangesMarkLastSliceResponse = DevopsChangesMarkLastSliceResponses[keyof DevopsChangesMarkLastSliceResponses];
|
|
112664
|
+
export type DevopsChangesSlicesCreateData = {
|
|
112665
|
+
body?: DevopsChangeSliceCreateRequest;
|
|
112666
|
+
path: {
|
|
112667
|
+
/**
|
|
112668
|
+
* Identifies the project whose data you are reading, from the project list or create answer.
|
|
112669
|
+
*/
|
|
112670
|
+
project: string;
|
|
112671
|
+
/**
|
|
112672
|
+
* The change whose slice you are opening: its id, which is its branch name <type>/<slug> from a change list or create answer. Give it as it comes back — `feat/run-page-v2`; the SDK and the CLI encode the slash themselves.
|
|
112673
|
+
*/
|
|
112674
|
+
change: string;
|
|
112675
|
+
};
|
|
112676
|
+
query?: never;
|
|
112677
|
+
url: '/devops/v1/projects/{project}/changes/{change}/slices';
|
|
112678
|
+
};
|
|
112679
|
+
export type DevopsChangesSlicesCreateErrors = {
|
|
112680
|
+
/**
|
|
112681
|
+
* INVALID_ARGUMENT means the change is abandoned, or from names a branch that does not belong to this change; nothing was cut. Open a new change, or pick from the change's own branches.
|
|
112682
|
+
*/
|
|
112683
|
+
400: DevopsDevOpsError;
|
|
112684
|
+
/**
|
|
112685
|
+
* The API key is missing or invalid; send a valid Praxis API key in the Authorization header before retrying.
|
|
112686
|
+
*/
|
|
112687
|
+
401: DevopsDevOpsError;
|
|
112688
|
+
/**
|
|
112689
|
+
* The credential carries no organization, or that organization cannot reach this project; use a key belonging to the project's organization. No cross-organization read is possible.
|
|
112690
|
+
*/
|
|
112691
|
+
403: DevopsDevOpsError;
|
|
112692
|
+
/**
|
|
112693
|
+
* CHANGE_NOT_FOUND means no change with that id exists in this organization; list the project's changes and use an id from that answer, with its slash percent-encoded.
|
|
112694
|
+
*/
|
|
112695
|
+
404: DevopsDevOpsError;
|
|
112696
|
+
/**
|
|
112697
|
+
* INTERNAL means the service could not complete the request; retry once, and if it repeats report the request id. A read is safe to repeat; a write that failed this way should be re-read before it is sent again.
|
|
112698
|
+
*/
|
|
112699
|
+
500: DevopsDevOpsError;
|
|
112700
|
+
};
|
|
112701
|
+
export type DevopsChangesSlicesCreateError = DevopsChangesSlicesCreateErrors[keyof DevopsChangesSlicesCreateErrors];
|
|
112702
|
+
export type DevopsChangesSlicesCreateResponses = {
|
|
112703
|
+
/**
|
|
112704
|
+
* The new slice: its branch, the directory to work in and the workspace that holds it. Calling again opens a further slice; it does not return the previous one.
|
|
112705
|
+
*/
|
|
112706
|
+
200: DevopsChangeSliceOpened;
|
|
112707
|
+
};
|
|
112708
|
+
export type DevopsChangesSlicesCreateResponse = DevopsChangesSlicesCreateResponses[keyof DevopsChangesSlicesCreateResponses];
|
|
111142
112709
|
export type DevopsChangesOpenPullRequestData = {
|
|
111143
112710
|
body?: DevopsChangeOpenPullRequestRequest;
|
|
111144
112711
|
path: {
|
|
@@ -112495,7 +114062,7 @@ export type DevopsUnitsPushErrors = {
|
|
|
112495
114062
|
*/
|
|
112496
114063
|
404: DevopsDevOpsError;
|
|
112497
114064
|
/**
|
|
112498
|
-
* 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.
|
|
112499
114066
|
*/
|
|
112500
114067
|
409: DevopsDevOpsError;
|
|
112501
114068
|
/**
|
|
@@ -120210,7 +121777,7 @@ export type GetSandboxV1SandboxesResponses = {
|
|
|
120210
121777
|
};
|
|
120211
121778
|
export type GetSandboxV1SandboxesResponse = GetSandboxV1SandboxesResponses[keyof GetSandboxV1SandboxesResponses];
|
|
120212
121779
|
export type PostSandboxV1SandboxesData = {
|
|
120213
|
-
body:
|
|
121780
|
+
body: SandboxNewSandboxV2Writable;
|
|
120214
121781
|
path?: never;
|
|
120215
121782
|
query?: never;
|
|
120216
121783
|
url: '/sandbox/v1/sandboxes';
|