@deepraxis/sdk 0.2.0-dev.826472f → 0.2.0-dev.855f099
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/METHODS.md +34 -1
- package/dist/generated/index.d.ts +2 -2
- package/dist/generated/index.js +1 -1
- package/dist/generated/sdk.gen.d.ts +97 -19
- package/dist/generated/sdk.gen.js +244 -18
- package/dist/generated/types.gen.d.ts +2274 -336
- package/dist/helpers/browser-actions.d.ts +2 -0
- package/dist/helpers/browser-actions.js +2 -0
- package/dist/helpers/browser-connect-error.d.ts +1 -1
- package/dist/helpers/browser-connect-error.js +1 -1
- package/dist/helpers/browser-connect.d.ts +10 -1
- package/dist/helpers/browser-connect.js +29 -6
- package/dist/helpers/browser-decisions.d.ts +2 -0
- package/dist/helpers/browser-decisions.js +7 -0
- package/dist/helpers/browser-documentation.d.ts +1 -1
- package/dist/helpers/browser-documentation.js +2 -1
- package/dist/operations.generated.js +530 -46
- package/dist/resources.generated.d.ts +97 -0
- package/dist/resources.generated.js +23 -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
|
*/
|
|
@@ -3794,17 +3859,34 @@ export type BrowserSessionCreateResult = {
|
|
|
3794
3859
|
*/
|
|
3795
3860
|
origin: 'api' | 'connect' | 'console';
|
|
3796
3861
|
/**
|
|
3797
|
-
*
|
|
3862
|
+
* 会话实际使用的浏览器后端:cloud 是云浏览器(Browser Run),container 是我们自己的 Chrome 容器,byob 是用户自己配对的浏览器(browser 为它的 ID)。type 与 kind 同值,type 是公开名称,kind 为兼容旧读者保留。
|
|
3798
3863
|
*/
|
|
3799
3864
|
source: {
|
|
3800
3865
|
/**
|
|
3801
3866
|
* 云浏览器会话,固定为 cloud。
|
|
3802
3867
|
*/
|
|
3868
|
+
type: 'cloud';
|
|
3869
|
+
/**
|
|
3870
|
+
* 与 type 同值。
|
|
3871
|
+
*/
|
|
3803
3872
|
kind: 'cloud';
|
|
3873
|
+
} | {
|
|
3874
|
+
/**
|
|
3875
|
+
* 自家 Chrome 容器会话,固定为 container。
|
|
3876
|
+
*/
|
|
3877
|
+
type: 'container';
|
|
3878
|
+
/**
|
|
3879
|
+
* 与 type 同值。
|
|
3880
|
+
*/
|
|
3881
|
+
kind: 'container';
|
|
3804
3882
|
} | {
|
|
3805
3883
|
/**
|
|
3806
3884
|
* 用户自己配对的浏览器会话,固定为 byob。
|
|
3807
3885
|
*/
|
|
3886
|
+
type: 'byob';
|
|
3887
|
+
/**
|
|
3888
|
+
* 与 type 同值。
|
|
3889
|
+
*/
|
|
3808
3890
|
kind: 'byob';
|
|
3809
3891
|
/**
|
|
3810
3892
|
* 自带浏览器 ID,以 byb_ 开头。
|
|
@@ -3886,7 +3968,7 @@ export type BrowserError = {
|
|
|
3886
3968
|
statusCode: number;
|
|
3887
3969
|
error: string;
|
|
3888
3970
|
message: string;
|
|
3889
|
-
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' | '
|
|
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';
|
|
3890
3972
|
};
|
|
3891
3973
|
export type BrowserSession = {
|
|
3892
3974
|
/**
|
|
@@ -3910,9 +3992,9 @@ export type BrowserSession = {
|
|
|
3910
3992
|
*/
|
|
3911
3993
|
region: 'ap-southeast-1';
|
|
3912
3994
|
/**
|
|
3913
|
-
*
|
|
3995
|
+
* 会话经代理链转发的流量字节数(上行与下行之和),容器后端的会话按它计费;Browser Run 和自带浏览器固定为 0,运行中每几分钟更新一次。
|
|
3914
3996
|
*/
|
|
3915
|
-
proxyBytes:
|
|
3997
|
+
proxyBytes: number;
|
|
3916
3998
|
/**
|
|
3917
3999
|
* 会话创建时刻,UTC ISO 8601 时间。
|
|
3918
4000
|
*/
|
|
@@ -3958,17 +4040,34 @@ export type BrowserSession = {
|
|
|
3958
4040
|
*/
|
|
3959
4041
|
origin: 'api' | 'connect' | 'console';
|
|
3960
4042
|
/**
|
|
3961
|
-
*
|
|
4043
|
+
* 会话实际使用的浏览器后端:cloud 是云浏览器(Browser Run),container 是我们自己的 Chrome 容器,byob 是用户自己配对的浏览器(browser 为它的 ID)。type 与 kind 同值,type 是公开名称,kind 为兼容旧读者保留。
|
|
3962
4044
|
*/
|
|
3963
4045
|
source: {
|
|
3964
4046
|
/**
|
|
3965
4047
|
* 云浏览器会话,固定为 cloud。
|
|
3966
4048
|
*/
|
|
4049
|
+
type: 'cloud';
|
|
4050
|
+
/**
|
|
4051
|
+
* 与 type 同值。
|
|
4052
|
+
*/
|
|
3967
4053
|
kind: 'cloud';
|
|
4054
|
+
} | {
|
|
4055
|
+
/**
|
|
4056
|
+
* 自家 Chrome 容器会话,固定为 container。
|
|
4057
|
+
*/
|
|
4058
|
+
type: 'container';
|
|
4059
|
+
/**
|
|
4060
|
+
* 与 type 同值。
|
|
4061
|
+
*/
|
|
4062
|
+
kind: 'container';
|
|
3968
4063
|
} | {
|
|
3969
4064
|
/**
|
|
3970
4065
|
* 用户自己配对的浏览器会话,固定为 byob。
|
|
3971
4066
|
*/
|
|
4067
|
+
type: 'byob';
|
|
4068
|
+
/**
|
|
4069
|
+
* 与 type 同值。
|
|
4070
|
+
*/
|
|
3972
4071
|
kind: 'byob';
|
|
3973
4072
|
/**
|
|
3974
4073
|
* 自带浏览器 ID,以 byb_ 开头。
|
|
@@ -4052,9 +4151,9 @@ export type BrowserSessionGetResult = {
|
|
|
4052
4151
|
*/
|
|
4053
4152
|
region: 'ap-southeast-1';
|
|
4054
4153
|
/**
|
|
4055
|
-
*
|
|
4154
|
+
* 会话经代理链转发的流量字节数(上行与下行之和),容器后端的会话按它计费;Browser Run 和自带浏览器固定为 0,运行中每几分钟更新一次。
|
|
4056
4155
|
*/
|
|
4057
|
-
proxyBytes:
|
|
4156
|
+
proxyBytes: number;
|
|
4058
4157
|
/**
|
|
4059
4158
|
* 会话创建时刻,UTC ISO 8601 时间。
|
|
4060
4159
|
*/
|
|
@@ -4100,17 +4199,34 @@ export type BrowserSessionGetResult = {
|
|
|
4100
4199
|
*/
|
|
4101
4200
|
origin: 'api' | 'connect' | 'console';
|
|
4102
4201
|
/**
|
|
4103
|
-
*
|
|
4202
|
+
* 会话实际使用的浏览器后端:cloud 是云浏览器(Browser Run),container 是我们自己的 Chrome 容器,byob 是用户自己配对的浏览器(browser 为它的 ID)。type 与 kind 同值,type 是公开名称,kind 为兼容旧读者保留。
|
|
4104
4203
|
*/
|
|
4105
4204
|
source: {
|
|
4106
4205
|
/**
|
|
4107
4206
|
* 云浏览器会话,固定为 cloud。
|
|
4108
4207
|
*/
|
|
4208
|
+
type: 'cloud';
|
|
4209
|
+
/**
|
|
4210
|
+
* 与 type 同值。
|
|
4211
|
+
*/
|
|
4109
4212
|
kind: 'cloud';
|
|
4213
|
+
} | {
|
|
4214
|
+
/**
|
|
4215
|
+
* 自家 Chrome 容器会话,固定为 container。
|
|
4216
|
+
*/
|
|
4217
|
+
type: 'container';
|
|
4218
|
+
/**
|
|
4219
|
+
* 与 type 同值。
|
|
4220
|
+
*/
|
|
4221
|
+
kind: 'container';
|
|
4110
4222
|
} | {
|
|
4111
4223
|
/**
|
|
4112
4224
|
* 用户自己配对的浏览器会话,固定为 byob。
|
|
4113
4225
|
*/
|
|
4226
|
+
type: 'byob';
|
|
4227
|
+
/**
|
|
4228
|
+
* 与 type 同值。
|
|
4229
|
+
*/
|
|
4114
4230
|
kind: 'byob';
|
|
4115
4231
|
/**
|
|
4116
4232
|
* 自带浏览器 ID,以 byb_ 开头。
|
|
@@ -4191,11 +4307,11 @@ export type BrowserSessionGetResult = {
|
|
|
4191
4307
|
*/
|
|
4192
4308
|
export type BrowserSessionLiveUrls = {
|
|
4193
4309
|
/**
|
|
4194
|
-
*
|
|
4310
|
+
* 与 debuggerUrl 相同:会话在 Console 的会话页地址。
|
|
4195
4311
|
*/
|
|
4196
4312
|
debuggerFullscreenUrl: string;
|
|
4197
4313
|
/**
|
|
4198
|
-
*
|
|
4314
|
+
* 会话在 Console 的会话页地址,发给人观看或接管。打开的人须登录 Console 且属于会话所在组织;会话创建者或在接管请求有效期内的组织成员可以点「接管」直接点击、拖动和输入,其他成员只读观看。地址不带凭证,不能嵌入 iframe。
|
|
4199
4315
|
*/
|
|
4200
4316
|
debuggerUrl: string;
|
|
4201
4317
|
/**
|
|
@@ -4223,11 +4339,11 @@ export type BrowserSessionLiveUrls = {
|
|
|
4223
4339
|
*/
|
|
4224
4340
|
faviconUrl: string;
|
|
4225
4341
|
/**
|
|
4226
|
-
*
|
|
4342
|
+
* 会话在 Console 的会话页地址,与会话级 debuggerUrl 相同。
|
|
4227
4343
|
*/
|
|
4228
4344
|
debuggerUrl: string;
|
|
4229
4345
|
/**
|
|
4230
|
-
*
|
|
4346
|
+
* 与该页 debuggerUrl 相同。
|
|
4231
4347
|
*/
|
|
4232
4348
|
debuggerFullscreenUrl: string;
|
|
4233
4349
|
}>;
|
|
@@ -4311,6 +4427,36 @@ export type BrowserContextCreateResult = {
|
|
|
4311
4427
|
* UTC timestamp when a session last started with this context; absent if it has never been used.
|
|
4312
4428
|
*/
|
|
4313
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
|
+
};
|
|
4314
4460
|
/**
|
|
4315
4461
|
* Empty compatibility field; context encryption keys are held by the server.
|
|
4316
4462
|
*/
|
|
@@ -4371,6 +4517,36 @@ export type BrowserContext = {
|
|
|
4371
4517
|
* UTC timestamp when a session last started with this context; absent if it has never been used.
|
|
4372
4518
|
*/
|
|
4373
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
|
+
};
|
|
4374
4550
|
};
|
|
4375
4551
|
export type BrowserByobPairing = {
|
|
4376
4552
|
/**
|
|
@@ -4411,14 +4587,6 @@ export type BrowserByobBrowser = {
|
|
|
4411
4587
|
* 配对用的扩展 ID。
|
|
4412
4588
|
*/
|
|
4413
4589
|
extension_id: string;
|
|
4414
|
-
/**
|
|
4415
|
-
* 被授权驱动这个浏览器的智能体 ID 列表;智能体不在列表里时不能打开它的会话。空数组表示没有智能体被授权。
|
|
4416
|
-
*/
|
|
4417
|
-
granted_agents: Array<string>;
|
|
4418
|
-
/**
|
|
4419
|
-
* 允许智能体访问的站点列表;空数组表示不限制 http(s) 站点。这是护栏,不是数据边界。
|
|
4420
|
-
*/
|
|
4421
|
-
allowed_sites: Array<string>;
|
|
4422
4590
|
/**
|
|
4423
4591
|
* 扩展的连接当前是否在线;连接对象上线之前固定为 false。
|
|
4424
4592
|
*/
|
|
@@ -4512,6 +4680,10 @@ export type BrowserStreamMessage = {
|
|
|
4512
4680
|
*/
|
|
4513
4681
|
nextCursor: string | null;
|
|
4514
4682
|
};
|
|
4683
|
+
/**
|
|
4684
|
+
* The tab in front: the newest one the browser opened or the one a client last brought to the front. null when unknown.
|
|
4685
|
+
*/
|
|
4686
|
+
activePageId?: string | null;
|
|
4515
4687
|
};
|
|
4516
4688
|
} | {
|
|
4517
4689
|
event: 'session';
|
|
@@ -4522,7 +4694,10 @@ export type BrowserStreamMessage = {
|
|
|
4522
4694
|
} | {
|
|
4523
4695
|
event: 'action';
|
|
4524
4696
|
data: {
|
|
4525
|
-
|
|
4697
|
+
/**
|
|
4698
|
+
* page_activated: a client brought pageId to the front. Tab changes (page_opened, page_closed, page_activated) are never thinned out; the other kinds are sent at most four times a second.
|
|
4699
|
+
*/
|
|
4700
|
+
kind: 'navigate' | 'click' | 'type' | 'scroll' | 'page_opened' | 'page_closed' | 'page_activated';
|
|
4526
4701
|
pageId?: string;
|
|
4527
4702
|
url?: string;
|
|
4528
4703
|
x?: number;
|
|
@@ -13671,7 +13846,7 @@ export type AutomationHumanTask = {
|
|
|
13671
13846
|
*/
|
|
13672
13847
|
initiator: {
|
|
13673
13848
|
/**
|
|
13674
|
-
* Initiator type: user, api_key, agent, run (a parent run) or
|
|
13849
|
+
* Initiator type: user, api_key, agent, run (a parent run), trigger or application.
|
|
13675
13850
|
*/
|
|
13676
13851
|
type: 'user' | 'api_key' | 'agent' | 'run' | 'trigger';
|
|
13677
13852
|
/**
|
|
@@ -19968,6 +20143,10 @@ export type DevopsPullRequest = {
|
|
|
19968
20143
|
* The mergeability word, an open set. A GitHub project keeps GitHub's own word verbatim (clean, dirty, blocked, behind, unstable and so on), unknown when GitHub has not said. A project whose code is on our own Git gets DevOps's reading of the head against the base: clean when nothing stands in the way, behind when the head adds nothing the base lacks, dirty when both sides changed the same path since they diverged, unknown when the comparison was capped.
|
|
19969
20144
|
*/
|
|
19970
20145
|
mergeableState: string;
|
|
20146
|
+
/**
|
|
20147
|
+
* Who this pull request's letters go to — the gate verdict, the merge, the deploy to each integration environment and an integration failure — as the description's praxis block names it with notify: agent:<id> or notify: human:<id>. Optional and never part of the gate: absent when the block names nobody or names something that is not an address. A pull request of a DevOps change that names nobody writes to the change's owner.
|
|
20148
|
+
*/
|
|
20149
|
+
notify?: string;
|
|
19971
20150
|
/**
|
|
19972
20151
|
* The exposure the description's praxis block declares, or null when the description declares none — which is itself a failed gate check. The kind decides which other checks apply: a flag adds its key and observe window, unwired and expand-contract add a reason, expand-contract also a phase, and direct is judged by a person.
|
|
19973
20152
|
*/
|
|
@@ -21269,7 +21448,7 @@ export type MediaLibrary = {
|
|
|
21269
21448
|
};
|
|
21270
21449
|
export type MediaMediaError = {
|
|
21271
21450
|
error: {
|
|
21272
|
-
code: 'LIBRARY_NOT_FOUND' | 'ASSET_NOT_FOUND' | 'JOB_NOT_FOUND' | 'UNDERSTANDING_NOT_FOUND' | 'ASSET_VERSION_CHANGED' | 'LIBRARY_INVALID_STATE' | 'INVALID_PARAMS' | 'INVALID_EXPRESSION' | 'UNSUPPORTED' | 'NOT_IMPLEMENTED' | 'FILE_TOO_LARGE' | 'FILE_EMPTY' | 'FILE_NOT_READY' | 'UNSUPPORTED_MEDIA' | 'FETCH_FAILED' | 'LIMIT_EXCEEDED' | 'CHUNK_INVALID' | 'RATE_LIMITED' | 'CAPACITY' | 'UPSTREAM_FAILED' | 'CONTENT_REJECTED' | 'GENERATION_FAILED' | 'BINDING_READ_ONLY' | 'OPERATION_NOT_SUPPORTED' | 'MODEL_PENDING' | 'REFERENCE_TYPE_MISMATCH' | 'CONSENT_REQUIRED' | 'LIBRARY_IS_DEFAULT' | 'JOB_INVALID_STATE' | 'VOICE_TRAINING' | 'INSUFFICIENT_BALANCE';
|
|
21451
|
+
code: 'LIBRARY_NOT_FOUND' | 'ASSET_NOT_FOUND' | 'WORK_NOT_FOUND' | 'REVISION_CONFLICT' | 'JOB_NOT_FOUND' | 'UNDERSTANDING_NOT_FOUND' | 'ASSET_VERSION_CHANGED' | 'LIBRARY_INVALID_STATE' | 'INVALID_PARAMS' | 'INVALID_EXPRESSION' | 'UNSUPPORTED' | 'NOT_IMPLEMENTED' | 'FILE_TOO_LARGE' | 'FILE_EMPTY' | 'FILE_NOT_READY' | 'UNSUPPORTED_MEDIA' | 'FETCH_FAILED' | 'LIMIT_EXCEEDED' | 'CHUNK_INVALID' | 'RATE_LIMITED' | 'CAPACITY' | 'UPSTREAM_FAILED' | 'CONTENT_REJECTED' | 'GENERATION_FAILED' | 'BINDING_READ_ONLY' | 'OPERATION_NOT_SUPPORTED' | 'MODEL_PENDING' | 'REFERENCE_TYPE_MISMATCH' | 'CONSENT_REQUIRED' | 'LIBRARY_IS_DEFAULT' | 'JOB_INVALID_STATE' | 'VOICE_TRAINING' | 'INSUFFICIENT_BALANCE';
|
|
21273
21452
|
message: string;
|
|
21274
21453
|
details: string | null;
|
|
21275
21454
|
};
|
|
@@ -22798,6 +22977,107 @@ export type MediaVoiceDesignCreateInput = {
|
|
|
22798
22977
|
*/
|
|
22799
22978
|
description?: string;
|
|
22800
22979
|
};
|
|
22980
|
+
/**
|
|
22981
|
+
* A work: an object of the library above its assets that orders references to them and adds a title and text. It copies no file and changes no asset.
|
|
22982
|
+
*/
|
|
22983
|
+
export type MediaWork = {
|
|
22984
|
+
/**
|
|
22985
|
+
* Always work.
|
|
22986
|
+
*/
|
|
22987
|
+
object: 'work';
|
|
22988
|
+
/**
|
|
22989
|
+
* Work id (wrk_…).
|
|
22990
|
+
*/
|
|
22991
|
+
id: string;
|
|
22992
|
+
/**
|
|
22993
|
+
* Library the work belongs to.
|
|
22994
|
+
*/
|
|
22995
|
+
library_id: MediaLibraryId;
|
|
22996
|
+
/**
|
|
22997
|
+
* The work’s kind.
|
|
22998
|
+
*/
|
|
22999
|
+
kind: MediaWorkKind;
|
|
23000
|
+
/**
|
|
23001
|
+
* The title, copied from body.title.
|
|
23002
|
+
*/
|
|
23003
|
+
title: string;
|
|
23004
|
+
/**
|
|
23005
|
+
* Groups the platform versions of one story; null when unset.
|
|
23006
|
+
*/
|
|
23007
|
+
series: string | null;
|
|
23008
|
+
/**
|
|
23009
|
+
* The kind’s body as stored.
|
|
23010
|
+
*/
|
|
23011
|
+
body: MediaWorkBody;
|
|
23012
|
+
/**
|
|
23013
|
+
* Caller data such as source, published links and numbers; changed with a JSON Merge Patch.
|
|
23014
|
+
*/
|
|
23015
|
+
custom: MediaWorkCustom;
|
|
23016
|
+
/**
|
|
23017
|
+
* Asset ids the body names that have been deleted since; the body keeps them in place and the Console draws a placeholder there.
|
|
23018
|
+
*/
|
|
23019
|
+
missing: Array<string>;
|
|
23020
|
+
/**
|
|
23021
|
+
* Bumped by every change; send it back as if_revision to update only an unchanged work.
|
|
23022
|
+
*/
|
|
23023
|
+
revision: number;
|
|
23024
|
+
/**
|
|
23025
|
+
* Who created the work: human:<user id>, agent:<agent id> or system.
|
|
23026
|
+
*/
|
|
23027
|
+
created_by: string;
|
|
23028
|
+
/**
|
|
23029
|
+
* When the work was created.
|
|
23030
|
+
*/
|
|
23031
|
+
created_at: MediaIsoTimestamp;
|
|
23032
|
+
/**
|
|
23033
|
+
* When the work last changed.
|
|
23034
|
+
*/
|
|
23035
|
+
updated_at: MediaIsoTimestamp;
|
|
23036
|
+
/**
|
|
23037
|
+
* Only with expand=assets: every live referenced asset by id, with its URLs and size.
|
|
23038
|
+
*/
|
|
23039
|
+
assets?: {
|
|
23040
|
+
[key: string]: MediaWorkAsset;
|
|
23041
|
+
};
|
|
23042
|
+
};
|
|
23043
|
+
/**
|
|
23044
|
+
* Kind of work: gallery (图文), article (长文) or product_listing (商品图组). short_video is reserved.
|
|
23045
|
+
*/
|
|
23046
|
+
export type MediaWorkKind = 'gallery' | 'article' | 'product_listing' | 'blocks';
|
|
23047
|
+
export type MediaWorkBody = MediaGalleryBody | MediaArticleBody | MediaProductListingBody | MediaBlocksBody;
|
|
23048
|
+
export type MediaWorkCustom = {
|
|
23049
|
+
[key: string]: unknown;
|
|
23050
|
+
};
|
|
23051
|
+
/**
|
|
23052
|
+
* A page of work summaries.
|
|
23053
|
+
*/
|
|
23054
|
+
export type MediaWorkPage = {
|
|
23055
|
+
/**
|
|
23056
|
+
* Works in this page, most recently changed first.
|
|
23057
|
+
*/
|
|
23058
|
+
data: Array<MediaWorkSummary>;
|
|
23059
|
+
/**
|
|
23060
|
+
* Cursor for the next page, or null when there are no more works.
|
|
23061
|
+
*/
|
|
23062
|
+
next_cursor: string | null;
|
|
23063
|
+
};
|
|
23064
|
+
/**
|
|
23065
|
+
* The answer to deleting a work.
|
|
23066
|
+
*/
|
|
23067
|
+
export type MediaDeletedWork = {
|
|
23068
|
+
/**
|
|
23069
|
+
* Id of the deleted work.
|
|
23070
|
+
*/
|
|
23071
|
+
id: string;
|
|
23072
|
+
/**
|
|
23073
|
+
* Always work.
|
|
23074
|
+
*/
|
|
23075
|
+
object: 'work';
|
|
23076
|
+
/**
|
|
23077
|
+
* Always true: the work is deleted; every asset it named is unchanged.
|
|
23078
|
+
*/
|
|
23079
|
+
deleted: true;
|
|
23080
|
+
};
|
|
22801
23081
|
/**
|
|
22802
23082
|
* One page of type registrations; types are few enough that this face returns them in a single page.
|
|
22803
23083
|
*/
|
|
@@ -34932,6 +35212,14 @@ export type SandboxSandboxNetworkConfig = {
|
|
|
34932
35212
|
rules?: {
|
|
34933
35213
|
[key: string]: Array<SandboxSandboxNetworkRule>;
|
|
34934
35214
|
};
|
|
35215
|
+
/**
|
|
35216
|
+
* 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.
|
|
35217
|
+
*/
|
|
35218
|
+
staticEgressIp?: boolean;
|
|
35219
|
+
/**
|
|
35220
|
+
* 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.
|
|
35221
|
+
*/
|
|
35222
|
+
readonly egressIp?: string;
|
|
34935
35223
|
};
|
|
34936
35224
|
/**
|
|
34937
35225
|
* Sandbox lifecycle policy returned by sandbox info.
|
|
@@ -36642,11 +36930,11 @@ export type AutomationActionHost = 'builtin' | 'isolate' | 'sandbox';
|
|
|
36642
36930
|
*/
|
|
36643
36931
|
export type AutomationSubject = {
|
|
36644
36932
|
/**
|
|
36645
|
-
* Principal type. user is a signed-in user; api_key is a platform API key; agent is an agent; run is an action performed by a run itself (for example a parent run); trigger is a trigger.
|
|
36933
|
+
* Principal type. user is a signed-in user; api_key is a platform API key; agent is an agent; run is an action performed by a run itself (for example a parent run); trigger is a trigger; application is an application.
|
|
36646
36934
|
*/
|
|
36647
36935
|
type: 'user' | 'api_key' | 'agent' | 'run' | 'trigger';
|
|
36648
36936
|
/**
|
|
36649
|
-
* Principal identifier whose meaning follows type: a user, API key, agent, run or
|
|
36937
|
+
* Principal identifier whose meaning follows type: a user, API key, agent, run, trigger or application id. Treat it as an opaque string.
|
|
36650
36938
|
*/
|
|
36651
36939
|
id: string;
|
|
36652
36940
|
};
|
|
@@ -40205,6 +40493,10 @@ export type DevopsUnitGit = {
|
|
|
40205
40493
|
* The ref holding the unit's work in progress, or null when none was recorded.
|
|
40206
40494
|
*/
|
|
40207
40495
|
wipRef: string | null;
|
|
40496
|
+
/**
|
|
40497
|
+
* 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.
|
|
40498
|
+
*/
|
|
40499
|
+
remoteHead?: string;
|
|
40208
40500
|
/**
|
|
40209
40501
|
* RFC 3339 UTC time these facts were observed, or null before the first observation.
|
|
40210
40502
|
*/
|
|
@@ -41374,7 +41666,7 @@ export type MediaGenerationType = 'image' | 'video' | 'speech' | 'music' | 'soun
|
|
|
41374
41666
|
* Edit operations: the change this step applied to its parent asset.
|
|
41375
41667
|
*/
|
|
41376
41668
|
export type MediaGenerationOperation = 'generate' | 'clone' | 'tag' | 'untag' | 'set_context' | 'move' | 'delete' | 'reprocess' | 'variations' | 'upscale' | 'outpaint' | 'inpaint' | 'erase' | 'replace_object' | 'recolor' | 'remove_background' | 'replace_background' | 'to_video' | 'extend' | 'edit' | 'lip_sync' | 'frame' | 'to_gif' | 'voice_change' | 'resynthesize';
|
|
41377
|
-
export type MediaMediaErrorCode = 'LIBRARY_NOT_FOUND' | 'ASSET_NOT_FOUND' | 'JOB_NOT_FOUND' | 'UNDERSTANDING_NOT_FOUND' | 'ASSET_VERSION_CHANGED' | 'LIBRARY_INVALID_STATE' | 'INVALID_PARAMS' | 'INVALID_EXPRESSION' | 'UNSUPPORTED' | 'NOT_IMPLEMENTED' | 'FILE_TOO_LARGE' | 'FILE_EMPTY' | 'FILE_NOT_READY' | 'UNSUPPORTED_MEDIA' | 'FETCH_FAILED' | 'LIMIT_EXCEEDED' | 'CHUNK_INVALID' | 'RATE_LIMITED' | 'CAPACITY' | 'UPSTREAM_FAILED' | 'CONTENT_REJECTED' | 'GENERATION_FAILED' | 'BINDING_READ_ONLY' | 'OPERATION_NOT_SUPPORTED' | 'MODEL_PENDING' | 'REFERENCE_TYPE_MISMATCH' | 'CONSENT_REQUIRED' | 'LIBRARY_IS_DEFAULT' | 'JOB_INVALID_STATE' | 'VOICE_TRAINING' | 'INSUFFICIENT_BALANCE';
|
|
41669
|
+
export type MediaMediaErrorCode = 'LIBRARY_NOT_FOUND' | 'ASSET_NOT_FOUND' | 'WORK_NOT_FOUND' | 'REVISION_CONFLICT' | 'JOB_NOT_FOUND' | 'UNDERSTANDING_NOT_FOUND' | 'ASSET_VERSION_CHANGED' | 'LIBRARY_INVALID_STATE' | 'INVALID_PARAMS' | 'INVALID_EXPRESSION' | 'UNSUPPORTED' | 'NOT_IMPLEMENTED' | 'FILE_TOO_LARGE' | 'FILE_EMPTY' | 'FILE_NOT_READY' | 'UNSUPPORTED_MEDIA' | 'FETCH_FAILED' | 'LIMIT_EXCEEDED' | 'CHUNK_INVALID' | 'RATE_LIMITED' | 'CAPACITY' | 'UPSTREAM_FAILED' | 'CONTENT_REJECTED' | 'GENERATION_FAILED' | 'BINDING_READ_ONLY' | 'OPERATION_NOT_SUPPORTED' | 'MODEL_PENDING' | 'REFERENCE_TYPE_MISMATCH' | 'CONSENT_REQUIRED' | 'LIBRARY_IS_DEFAULT' | 'JOB_INVALID_STATE' | 'VOICE_TRAINING' | 'INSUFFICIENT_BALANCE';
|
|
41378
41670
|
/**
|
|
41379
41671
|
* State of a requested generation output.
|
|
41380
41672
|
*/
|
|
@@ -41720,6 +42012,192 @@ export type MediaHlsRendition = {
|
|
|
41720
42012
|
state: MediaHlsRenditionState;
|
|
41721
42013
|
};
|
|
41722
42014
|
export type MediaVoiceConsentId = string;
|
|
42015
|
+
/**
|
|
42016
|
+
* One referenced asset as expand=assets returns it: enough to draw it without another call.
|
|
42017
|
+
*/
|
|
42018
|
+
export type MediaWorkAsset = {
|
|
42019
|
+
/**
|
|
42020
|
+
* The asset’s material type, such as image or video.
|
|
42021
|
+
*/
|
|
42022
|
+
type: MediaMaterialType;
|
|
42023
|
+
/**
|
|
42024
|
+
* Short-lived delivery URL of the asset.
|
|
42025
|
+
*/
|
|
42026
|
+
url: string;
|
|
42027
|
+
/**
|
|
42028
|
+
* Short-lived URL of a small picture: the poster of a video, otherwise the asset itself.
|
|
42029
|
+
*/
|
|
42030
|
+
thumbnail_url: string;
|
|
42031
|
+
/**
|
|
42032
|
+
* Width in pixels when known.
|
|
42033
|
+
*/
|
|
42034
|
+
width?: number;
|
|
42035
|
+
/**
|
|
42036
|
+
* Height in pixels when known.
|
|
42037
|
+
*/
|
|
42038
|
+
height?: number;
|
|
42039
|
+
/**
|
|
42040
|
+
* The asset’s display name.
|
|
42041
|
+
*/
|
|
42042
|
+
display_name: string;
|
|
42043
|
+
};
|
|
42044
|
+
/**
|
|
42045
|
+
* Body of a gallery (图文). Order is the order of items.
|
|
42046
|
+
*/
|
|
42047
|
+
export type MediaGalleryBody = {
|
|
42048
|
+
/**
|
|
42049
|
+
* Title, 1 to 100 characters.
|
|
42050
|
+
*/
|
|
42051
|
+
title: string;
|
|
42052
|
+
/**
|
|
42053
|
+
* Body text, at most 10000 characters.
|
|
42054
|
+
*/
|
|
42055
|
+
text?: string;
|
|
42056
|
+
/**
|
|
42057
|
+
* Topics without the # sign, at most 30 of up to 40 characters.
|
|
42058
|
+
*/
|
|
42059
|
+
topics?: Array<string>;
|
|
42060
|
+
/**
|
|
42061
|
+
* Optional cover: an image or sticker asset of this library; without it the first picture is the cover.
|
|
42062
|
+
*/
|
|
42063
|
+
cover?: string;
|
|
42064
|
+
/**
|
|
42065
|
+
* Pictures, videos and text segments in order, 1 to 100 entries with at least one asset; each asset appears once.
|
|
42066
|
+
*/
|
|
42067
|
+
items: Array<MediaGalleryItem>;
|
|
42068
|
+
/**
|
|
42069
|
+
* Display style; defaults to xiaohongshu in the Console.
|
|
42070
|
+
*/
|
|
42071
|
+
style?: MediaWorkStyle;
|
|
42072
|
+
};
|
|
42073
|
+
/**
|
|
42074
|
+
* Body of an article (长文). Inline images live in the Markdown as  and sit where they are written.
|
|
42075
|
+
*/
|
|
42076
|
+
export type MediaArticleBody = {
|
|
42077
|
+
/**
|
|
42078
|
+
* Title, 1 to 200 characters.
|
|
42079
|
+
*/
|
|
42080
|
+
title: string;
|
|
42081
|
+
/**
|
|
42082
|
+
* Optional summary or digest, at most 500 characters.
|
|
42083
|
+
*/
|
|
42084
|
+
summary?: string;
|
|
42085
|
+
/**
|
|
42086
|
+
* Optional author name, at most 60 characters.
|
|
42087
|
+
*/
|
|
42088
|
+
author?: string;
|
|
42089
|
+
/**
|
|
42090
|
+
* The article in Markdown, 1 to 100000 characters; every asset:<asset_id> image must be an image or sticker of this library.
|
|
42091
|
+
*/
|
|
42092
|
+
body: string;
|
|
42093
|
+
/**
|
|
42094
|
+
* Optional cover: an image or sticker asset of this library.
|
|
42095
|
+
*/
|
|
42096
|
+
cover?: string;
|
|
42097
|
+
/**
|
|
42098
|
+
* Display style; defaults to wechat_mp in the Console.
|
|
42099
|
+
*/
|
|
42100
|
+
style?: MediaWorkStyle;
|
|
42101
|
+
};
|
|
42102
|
+
/**
|
|
42103
|
+
* Body of a product listing (商品图组). Images and copy only: price, stock and other business data are managed outside the library and are refused.
|
|
42104
|
+
*/
|
|
42105
|
+
export type MediaProductListingBody = {
|
|
42106
|
+
/**
|
|
42107
|
+
* Listing title, 1 to 200 characters.
|
|
42108
|
+
*/
|
|
42109
|
+
title: string;
|
|
42110
|
+
/**
|
|
42111
|
+
* Selling points in order, at most 10 of up to 100 characters.
|
|
42112
|
+
*/
|
|
42113
|
+
selling_points?: Array<string>;
|
|
42114
|
+
/**
|
|
42115
|
+
* Parameter rows in order, at most 50.
|
|
42116
|
+
*/
|
|
42117
|
+
attributes?: Array<MediaListingAttribute>;
|
|
42118
|
+
/**
|
|
42119
|
+
* Main images in order, 1 to 20 image or sticker assets of this library.
|
|
42120
|
+
*/
|
|
42121
|
+
main: Array<string>;
|
|
42122
|
+
/**
|
|
42123
|
+
* Detail images in order, at most 100 image or sticker assets of this library.
|
|
42124
|
+
*/
|
|
42125
|
+
detail?: Array<string>;
|
|
42126
|
+
/**
|
|
42127
|
+
* SKUs in order, at most 200.
|
|
42128
|
+
*/
|
|
42129
|
+
skus?: Array<MediaListingSku>;
|
|
42130
|
+
/**
|
|
42131
|
+
* Optional product element (material_type product) this listing shows.
|
|
42132
|
+
*/
|
|
42133
|
+
product?: string;
|
|
42134
|
+
/**
|
|
42135
|
+
* Display style; defaults to generic in the Console.
|
|
42136
|
+
*/
|
|
42137
|
+
style?: MediaWorkStyle;
|
|
42138
|
+
};
|
|
42139
|
+
/**
|
|
42140
|
+
* Body of a general work (通用作品): Editor.js saved data plus one field of ours, a required title. Business attributes go in the work’s custom, not in a block.
|
|
42141
|
+
*/
|
|
42142
|
+
export type MediaBlocksBody = {
|
|
42143
|
+
/**
|
|
42144
|
+
* The work’s title, 1 to 200 characters, written explicitly as in the other kinds; lists and sorting use it.
|
|
42145
|
+
*/
|
|
42146
|
+
title: string;
|
|
42147
|
+
/**
|
|
42148
|
+
* Optional Editor.js save time in milliseconds, kept as sent.
|
|
42149
|
+
*/
|
|
42150
|
+
time?: number;
|
|
42151
|
+
/**
|
|
42152
|
+
* The blocks in order, 1 to 500.
|
|
42153
|
+
*/
|
|
42154
|
+
blocks: Array<MediaEditorBlock>;
|
|
42155
|
+
/**
|
|
42156
|
+
* Optional Editor.js version string, kept as sent.
|
|
42157
|
+
*/
|
|
42158
|
+
version?: string;
|
|
42159
|
+
};
|
|
42160
|
+
/**
|
|
42161
|
+
* One work in a list.
|
|
42162
|
+
*/
|
|
42163
|
+
export type MediaWorkSummary = {
|
|
42164
|
+
/**
|
|
42165
|
+
* Always work.
|
|
42166
|
+
*/
|
|
42167
|
+
object: 'work';
|
|
42168
|
+
/**
|
|
42169
|
+
* Work id (wrk_…).
|
|
42170
|
+
*/
|
|
42171
|
+
id: string;
|
|
42172
|
+
/**
|
|
42173
|
+
* The work’s kind.
|
|
42174
|
+
*/
|
|
42175
|
+
kind: MediaWorkKind;
|
|
42176
|
+
/**
|
|
42177
|
+
* The work’s title.
|
|
42178
|
+
*/
|
|
42179
|
+
title: string;
|
|
42180
|
+
/**
|
|
42181
|
+
* The work’s series, or null.
|
|
42182
|
+
*/
|
|
42183
|
+
series: string | null;
|
|
42184
|
+
/**
|
|
42185
|
+
* Short-lived URL of the cover picture, or null when it is missing.
|
|
42186
|
+
*/
|
|
42187
|
+
cover_url: string | null;
|
|
42188
|
+
/**
|
|
42189
|
+
* How many distinct assets the body orders, cover and product element excluded.
|
|
42190
|
+
*/
|
|
42191
|
+
item_count: number;
|
|
42192
|
+
/**
|
|
42193
|
+
* How many referenced assets have been deleted since.
|
|
42194
|
+
*/
|
|
42195
|
+
missing_count: number;
|
|
42196
|
+
/**
|
|
42197
|
+
* When the work last changed.
|
|
42198
|
+
*/
|
|
42199
|
+
updated_at: MediaIsoTimestamp;
|
|
42200
|
+
};
|
|
41723
42201
|
/**
|
|
41724
42202
|
* A kind of entity the graph accepts, for example a file or a customer.
|
|
41725
42203
|
*/
|
|
@@ -48068,7 +48546,7 @@ export type DevopsPlannedSkip = {
|
|
|
48068
48546
|
/**
|
|
48069
48547
|
* Why it is left out, which is what tells a deliberate skip apart from an oversight.
|
|
48070
48548
|
*/
|
|
48071
|
-
reason: 'unchanged' | 'newer_checkpoint' | 'not_requested' | 'callee_excluded' | 'artifact_identical';
|
|
48549
|
+
reason: 'unchanged' | 'newer_checkpoint' | 'not_requested' | 'callee_excluded' | 'not_deployed_upstream' | 'artifact_identical';
|
|
48072
48550
|
};
|
|
48073
48551
|
/**
|
|
48074
48552
|
* The migrations one target has pending, as the plan found them.
|
|
@@ -48704,7 +49182,7 @@ export type MediaSemanticMatch = {
|
|
|
48704
49182
|
/**
|
|
48705
49183
|
* Type of change recorded for a library, asset, processing task, search index or batch.
|
|
48706
49184
|
*/
|
|
48707
|
-
export type MediaMediaEventType = 'library.status_provisioning' | 'library.status_active' | 'library.status_deleting' | 'library.status_deleted' | 'library.status_failed' | 'library.restored' | 'library.updated' | 'asset.created' | 'asset.updated' | 'asset.overwritten' | 'asset.renamed' | 'asset.deleted' | 'understanding.status_ready' | 'understanding.status_failed' | 'understanding.status_unsupported' | 'search.indexed' | 'batch.succeeded' | 'batch.failed' | 'library.understanding_drained' | 'batch.created' | 'hls.requested' | 'generation.created' | 'generation.succeeded' | 'generation.failed' | 'generation.cancelled';
|
|
49185
|
+
export type MediaMediaEventType = 'library.status_provisioning' | 'library.status_active' | 'library.status_deleting' | 'library.status_deleted' | 'library.status_failed' | 'library.restored' | 'library.updated' | 'asset.created' | 'asset.updated' | 'asset.overwritten' | 'asset.renamed' | 'asset.deleted' | 'understanding.status_ready' | 'understanding.status_failed' | 'understanding.status_unsupported' | 'search.indexed' | 'batch.succeeded' | 'batch.failed' | 'library.understanding_drained' | 'batch.created' | 'hls.requested' | 'generation.created' | 'generation.succeeded' | 'generation.failed' | 'generation.cancelled' | 'work.created' | 'work.updated' | 'work.deleted';
|
|
48708
49186
|
/**
|
|
48709
49187
|
* One picture an element names, with the word the caller uses for that view.
|
|
48710
49188
|
*/
|
|
@@ -48800,6 +49278,75 @@ export type MediaGenerationCapabilityModel = {
|
|
|
48800
49278
|
* Readiness of one rung or of the ladder it is part of.
|
|
48801
49279
|
*/
|
|
48802
49280
|
export type MediaHlsRenditionState = 'processing' | 'ready' | 'failed';
|
|
49281
|
+
/**
|
|
49282
|
+
* One position of a gallery: a picture or video of this library ({asset_id, caption?}) or a text segment between pictures ({text}).
|
|
49283
|
+
*/
|
|
49284
|
+
export type MediaGalleryItem = {
|
|
49285
|
+
/**
|
|
49286
|
+
* An image, sticker or video asset of this library; its position in items is its position in the gallery.
|
|
49287
|
+
*/
|
|
49288
|
+
asset_id: string;
|
|
49289
|
+
/**
|
|
49290
|
+
* Optional caption for this picture, at most 1000 characters.
|
|
49291
|
+
*/
|
|
49292
|
+
caption?: string;
|
|
49293
|
+
} | {
|
|
49294
|
+
/**
|
|
49295
|
+
* A text segment shown between pictures, at most 1000 characters.
|
|
49296
|
+
*/
|
|
49297
|
+
text: string;
|
|
49298
|
+
};
|
|
49299
|
+
/**
|
|
49300
|
+
* Which platform look the Console draws the work in; a display hint, never a platform check.
|
|
49301
|
+
*/
|
|
49302
|
+
export type MediaWorkStyle = 'xiaohongshu' | 'wechat_mp' | 'jike' | 'generic';
|
|
49303
|
+
/**
|
|
49304
|
+
* One parameter row of a listing.
|
|
49305
|
+
*/
|
|
49306
|
+
export type MediaListingAttribute = {
|
|
49307
|
+
/**
|
|
49308
|
+
* Parameter name such as 容量, at most 40 characters.
|
|
49309
|
+
*/
|
|
49310
|
+
name: string;
|
|
49311
|
+
/**
|
|
49312
|
+
* Parameter value such as 500ml, at most 200 characters.
|
|
49313
|
+
*/
|
|
49314
|
+
value: string;
|
|
49315
|
+
};
|
|
49316
|
+
/**
|
|
49317
|
+
* One SKU of a listing.
|
|
49318
|
+
*/
|
|
49319
|
+
export type MediaListingSku = {
|
|
49320
|
+
/**
|
|
49321
|
+
* The SKU’s value on each spec axis, such as {"颜色":"白"}; 1 to 5 axes; the keys are kept as written.
|
|
49322
|
+
*/
|
|
49323
|
+
spec: {
|
|
49324
|
+
[key: string]: string;
|
|
49325
|
+
};
|
|
49326
|
+
/**
|
|
49327
|
+
* Optional picture of this SKU: an image or sticker asset of this library.
|
|
49328
|
+
*/
|
|
49329
|
+
asset_id?: string;
|
|
49330
|
+
};
|
|
49331
|
+
/**
|
|
49332
|
+
* One Editor.js block, as Editor.js saves it. type is one of the official blocks: paragraph {text}, header {text, level 1–6}, list {style ordered|unordered|checklist, meta, items[{content, meta, items}]}, quote {text, caption, alignment left|center}, delimiter {}, image, table {withHeadings, stretched, content string[][]}, checklist {items[{text, checked}]}, warning {title, message}, embed {service, source, embed, width, height, caption}. The one departure from Editor.js: an image block is {asset_id, caption, withBorder, withBackground, stretched} and names an image or sticker asset of this library instead of file.url. Text keeps Editor.js inline HTML. Unknown types and fields are refused.
|
|
49333
|
+
*/
|
|
49334
|
+
export type MediaEditorBlock = {
|
|
49335
|
+
/**
|
|
49336
|
+
* Block id, 1–64 letters, digits, _ or -, unique in the body.
|
|
49337
|
+
*/
|
|
49338
|
+
id: string;
|
|
49339
|
+
/**
|
|
49340
|
+
* The official Editor.js block type.
|
|
49341
|
+
*/
|
|
49342
|
+
type: 'paragraph' | 'header' | 'list' | 'quote' | 'delimiter' | 'image' | 'table' | 'checklist' | 'warning' | 'embed';
|
|
49343
|
+
/**
|
|
49344
|
+
* The block’s data in that type’s Editor.js shape.
|
|
49345
|
+
*/
|
|
49346
|
+
data: {
|
|
49347
|
+
[key: string]: unknown;
|
|
49348
|
+
};
|
|
49349
|
+
};
|
|
48803
49350
|
/**
|
|
48804
49351
|
* Auto-resume enabled flag for paused sandboxes. Default false.
|
|
48805
49352
|
*/
|
|
@@ -50923,6 +51470,58 @@ export type UpdateMediaPipelineRequestWritable = {
|
|
|
50923
51470
|
* Models to use for completion
|
|
50924
51471
|
*/
|
|
50925
51472
|
export type OpenaiChatModelNamesWritable = Array<OpenaiModelName & unknown>;
|
|
51473
|
+
export type SandboxSandboxDetailWritable = {
|
|
51474
|
+
/**
|
|
51475
|
+
* Identifier of the template from which is the sandbox created
|
|
51476
|
+
*/
|
|
51477
|
+
templateID: string;
|
|
51478
|
+
/**
|
|
51479
|
+
* Alias of the template
|
|
51480
|
+
*/
|
|
51481
|
+
alias?: string;
|
|
51482
|
+
/**
|
|
51483
|
+
* Identifier of the sandbox
|
|
51484
|
+
*/
|
|
51485
|
+
sandboxID: string;
|
|
51486
|
+
/**
|
|
51487
|
+
* Identifier of the client
|
|
51488
|
+
*
|
|
51489
|
+
* @deprecated
|
|
51490
|
+
*/
|
|
51491
|
+
clientID: string;
|
|
51492
|
+
/**
|
|
51493
|
+
* Time when the sandbox was started
|
|
51494
|
+
*/
|
|
51495
|
+
startedAt: string;
|
|
51496
|
+
/**
|
|
51497
|
+
* Time when the sandbox will expire
|
|
51498
|
+
*/
|
|
51499
|
+
endAt: string;
|
|
51500
|
+
envdVersion: SandboxEnvdVersion;
|
|
51501
|
+
/**
|
|
51502
|
+
* Access token used for envd communication
|
|
51503
|
+
*/
|
|
51504
|
+
envdAccessToken?: string;
|
|
51505
|
+
/**
|
|
51506
|
+
* Whether internet access was explicitly enabled or disabled for the sandbox. Null means it was not explicitly set.
|
|
51507
|
+
*/
|
|
51508
|
+
allowInternetAccess?: boolean;
|
|
51509
|
+
/**
|
|
51510
|
+
* Base domain where the sandbox traffic is accessible
|
|
51511
|
+
*/
|
|
51512
|
+
domain?: string;
|
|
51513
|
+
cpuCount: SandboxCpuCount;
|
|
51514
|
+
memoryMB: SandboxMemoryMb;
|
|
51515
|
+
diskSizeMB: SandboxDiskSizeMb;
|
|
51516
|
+
metadata?: SandboxSandboxMetadata;
|
|
51517
|
+
state: SandboxSandboxState;
|
|
51518
|
+
network?: SandboxSandboxNetworkConfigWritable;
|
|
51519
|
+
lifecycle?: SandboxSandboxLifecycle;
|
|
51520
|
+
/**
|
|
51521
|
+
* Volumes mounted into the sandbox.
|
|
51522
|
+
*/
|
|
51523
|
+
volumeMounts?: Array<SandboxSandboxVolumeMount>;
|
|
51524
|
+
};
|
|
50926
51525
|
/**
|
|
50927
51526
|
* Free-form string key/value pairs stored with the session, changed through sessions.update patch semantics.
|
|
50928
51527
|
*/
|
|
@@ -51502,6 +52101,94 @@ export type MediaSemanticSearchResultWritable = {
|
|
|
51502
52101
|
*/
|
|
51503
52102
|
not_ready_excluded: number;
|
|
51504
52103
|
};
|
|
52104
|
+
/**
|
|
52105
|
+
* Sandbox creation request. All system communication with the sandbox is always secured; the template's envd version must support secured access.
|
|
52106
|
+
*/
|
|
52107
|
+
export type SandboxNewSandboxV2Writable = {
|
|
52108
|
+
/**
|
|
52109
|
+
* Identifier of the required template
|
|
52110
|
+
*/
|
|
52111
|
+
templateID: string;
|
|
52112
|
+
/**
|
|
52113
|
+
* Lifetime of the new sandbox in seconds. Defaults to 300 seconds when omitted.
|
|
52114
|
+
*/
|
|
52115
|
+
timeout?: number;
|
|
52116
|
+
/**
|
|
52117
|
+
* 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.
|
|
52118
|
+
*/
|
|
52119
|
+
autoPause?: boolean;
|
|
52120
|
+
/**
|
|
52121
|
+
* 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).
|
|
52122
|
+
*/
|
|
52123
|
+
autoPauseMemory?: boolean;
|
|
52124
|
+
autoResume?: SandboxSandboxAutoResumeConfig;
|
|
52125
|
+
/**
|
|
52126
|
+
* 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.
|
|
52127
|
+
*/
|
|
52128
|
+
allow_internet_access?: boolean;
|
|
52129
|
+
network?: SandboxSandboxNetworkConfigWritable;
|
|
52130
|
+
metadata?: SandboxSandboxMetadata;
|
|
52131
|
+
envVars?: SandboxEnvVars;
|
|
52132
|
+
mcp?: SandboxMcp;
|
|
52133
|
+
iam?: SandboxSandboxIam;
|
|
52134
|
+
/**
|
|
52135
|
+
* Volumes to mount into the sandbox, each with the volume name and the path inside the sandbox.
|
|
52136
|
+
*/
|
|
52137
|
+
volumeMounts?: Array<SandboxSandboxVolumeMount>;
|
|
52138
|
+
/**
|
|
52139
|
+
* 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.
|
|
52140
|
+
*/
|
|
52141
|
+
ephemeral?: boolean;
|
|
52142
|
+
/**
|
|
52143
|
+
* 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.
|
|
52144
|
+
*/
|
|
52145
|
+
size?: string;
|
|
52146
|
+
/**
|
|
52147
|
+
* Own face: a display name for the sandbox, 1 to 64 characters. Omitted, one is generated from the template.
|
|
52148
|
+
*/
|
|
52149
|
+
name?: string;
|
|
52150
|
+
/**
|
|
52151
|
+
* 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.
|
|
52152
|
+
*/
|
|
52153
|
+
waitForReady?: boolean;
|
|
52154
|
+
/**
|
|
52155
|
+
* Own face: what happens at the timeout. pause needs ephemeral: false; must agree with autoPause when both are sent.
|
|
52156
|
+
*/
|
|
52157
|
+
onExpire?: 'kill' | 'pause';
|
|
52158
|
+
/**
|
|
52159
|
+
* Own face, persistent sandboxes only: pause after this many milliseconds without activity; null turns the idle pause off.
|
|
52160
|
+
*/
|
|
52161
|
+
idleTimeout?: number;
|
|
52162
|
+
/**
|
|
52163
|
+
* 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.
|
|
52164
|
+
*/
|
|
52165
|
+
idleActivity?: 'traffic' | 'caller';
|
|
52166
|
+
/**
|
|
52167
|
+
* 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.
|
|
52168
|
+
*/
|
|
52169
|
+
sku?: string;
|
|
52170
|
+
/**
|
|
52171
|
+
* 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.
|
|
52172
|
+
*/
|
|
52173
|
+
kind?: 'run' | 'job' | 'batch' | 'computer' | 'compat';
|
|
52174
|
+
/**
|
|
52175
|
+
* 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.
|
|
52176
|
+
*/
|
|
52177
|
+
interruptible?: boolean;
|
|
52178
|
+
/**
|
|
52179
|
+
* 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.
|
|
52180
|
+
*/
|
|
52181
|
+
onLoss?: 'fail' | 'rebuild';
|
|
52182
|
+
/**
|
|
52183
|
+
* 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.
|
|
52184
|
+
*/
|
|
52185
|
+
outputs?: Array<{
|
|
52186
|
+
/**
|
|
52187
|
+
* Absolute path of a directory or file inside the sandbox.
|
|
52188
|
+
*/
|
|
52189
|
+
path: string;
|
|
52190
|
+
}>;
|
|
52191
|
+
};
|
|
51505
52192
|
/**
|
|
51506
52193
|
* Arguments the model passed to the tool.
|
|
51507
52194
|
*/
|
|
@@ -51580,6 +52267,43 @@ export type AnthropicAnonymous204Writable = {
|
|
|
51580
52267
|
export type AnthropicAnonymous206Writable = {
|
|
51581
52268
|
[key: string]: unknown;
|
|
51582
52269
|
};
|
|
52270
|
+
/**
|
|
52271
|
+
* Network policy of the sandbox: public access, egress allow and deny lists and proxy.
|
|
52272
|
+
*/
|
|
52273
|
+
export type SandboxSandboxNetworkConfigWritable = {
|
|
52274
|
+
/**
|
|
52275
|
+
* Specify if the sandbox URLs should be accessible only with authentication.
|
|
52276
|
+
*/
|
|
52277
|
+
allowPublicTraffic?: boolean;
|
|
52278
|
+
/**
|
|
52279
|
+
* 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.
|
|
52280
|
+
*/
|
|
52281
|
+
allowOut?: Array<string>;
|
|
52282
|
+
/**
|
|
52283
|
+
* List of denied CIDR blocks or IP addresses for egress traffic. Domain names are not supported for deny rules.
|
|
52284
|
+
*/
|
|
52285
|
+
denyOut?: Array<string>;
|
|
52286
|
+
egressProxy?: SandboxSandboxEgressProxyConfig;
|
|
52287
|
+
/**
|
|
52288
|
+
* Specify host mask which will be used for all sandbox requests
|
|
52289
|
+
*/
|
|
52290
|
+
maskRequestHost?: string;
|
|
52291
|
+
/**
|
|
52292
|
+
* Unlike E2B, network.httpsPorts is rejected; omit it when creating a sandbox.
|
|
52293
|
+
*/
|
|
52294
|
+
httpsPorts?: Array<number>;
|
|
52295
|
+
/**
|
|
52296
|
+
* 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.
|
|
52297
|
+
*
|
|
52298
|
+
*/
|
|
52299
|
+
rules?: {
|
|
52300
|
+
[key: string]: Array<SandboxSandboxNetworkRule>;
|
|
52301
|
+
};
|
|
52302
|
+
/**
|
|
52303
|
+
* 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.
|
|
52304
|
+
*/
|
|
52305
|
+
staticEgressIp?: boolean;
|
|
52306
|
+
};
|
|
51583
52307
|
/**
|
|
51584
52308
|
* Free-form string key/value pairs.
|
|
51585
52309
|
*/
|
|
@@ -54307,6 +55031,86 @@ export type ListAgentInboxLettersResponses = {
|
|
|
54307
55031
|
};
|
|
54308
55032
|
};
|
|
54309
55033
|
export type ListAgentInboxLettersResponse = ListAgentInboxLettersResponses[keyof ListAgentInboxLettersResponses];
|
|
55034
|
+
export type ListAgentDeviceLocalSessionsData = {
|
|
55035
|
+
body?: never;
|
|
55036
|
+
path: {
|
|
55037
|
+
/**
|
|
55038
|
+
* 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_….
|
|
55039
|
+
*/
|
|
55040
|
+
agent_id: string;
|
|
55041
|
+
/**
|
|
55042
|
+
* The paired desktop device (byd_ and 26 hex characters) whose sessions to list; you must be the person who paired it.
|
|
55043
|
+
*/
|
|
55044
|
+
device_id: string;
|
|
55045
|
+
};
|
|
55046
|
+
query: {
|
|
55047
|
+
/**
|
|
55048
|
+
* The absolute directory on the device, exactly as the device registered it and bound it to this agent.
|
|
55049
|
+
*/
|
|
55050
|
+
cwd: string;
|
|
55051
|
+
/**
|
|
55052
|
+
* The next_cursor of the previous page; leave it out for the first page.
|
|
55053
|
+
*/
|
|
55054
|
+
cursor?: string;
|
|
55055
|
+
};
|
|
55056
|
+
url: '/agent/v1/agents/{agent_id}/devices/{device_id}/local-sessions';
|
|
55057
|
+
};
|
|
55058
|
+
export type ListAgentDeviceLocalSessionsErrors = {
|
|
55059
|
+
/**
|
|
55060
|
+
* 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.
|
|
55061
|
+
*/
|
|
55062
|
+
400: unknown;
|
|
55063
|
+
/**
|
|
55064
|
+
* Authenticate with your own API key or a console session; an agent's or robot's credential cannot list a person's device.
|
|
55065
|
+
*/
|
|
55066
|
+
401: unknown;
|
|
55067
|
+
/**
|
|
55068
|
+
* 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.
|
|
55069
|
+
*/
|
|
55070
|
+
403: AgentError;
|
|
55071
|
+
/**
|
|
55072
|
+
* AGENT_NOT_FOUND: no agent with this reference exists in your organization; list agents with agents.list.
|
|
55073
|
+
*/
|
|
55074
|
+
404: unknown;
|
|
55075
|
+
/**
|
|
55076
|
+
* 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.
|
|
55077
|
+
*/
|
|
55078
|
+
503: unknown;
|
|
55079
|
+
};
|
|
55080
|
+
export type ListAgentDeviceLocalSessionsError = ListAgentDeviceLocalSessionsErrors[keyof ListAgentDeviceLocalSessionsErrors];
|
|
55081
|
+
export type ListAgentDeviceLocalSessionsResponses = {
|
|
55082
|
+
/**
|
|
55083
|
+
* One page of the device's sessions for that directory, newest first.
|
|
55084
|
+
*/
|
|
55085
|
+
200: {
|
|
55086
|
+
/**
|
|
55087
|
+
* The sessions of this page; empty when the directory has none.
|
|
55088
|
+
*/
|
|
55089
|
+
data: Array<{
|
|
55090
|
+
/**
|
|
55091
|
+
* The Claude Code session id on the device; pass it as runtime.resume_session_id when creating a session to continue it.
|
|
55092
|
+
*/
|
|
55093
|
+
id: string;
|
|
55094
|
+
/**
|
|
55095
|
+
* The session's title as Claude Code shows it; empty when it has none.
|
|
55096
|
+
*/
|
|
55097
|
+
title: string;
|
|
55098
|
+
/**
|
|
55099
|
+
* When the session was last written to, RFC 3339; sessions are ordered newest first.
|
|
55100
|
+
*/
|
|
55101
|
+
updated_at: string | null;
|
|
55102
|
+
/**
|
|
55103
|
+
* The directory the session ran in on the device.
|
|
55104
|
+
*/
|
|
55105
|
+
cwd: string | null;
|
|
55106
|
+
}>;
|
|
55107
|
+
/**
|
|
55108
|
+
* Pass as cursor for the next page; null on the last page.
|
|
55109
|
+
*/
|
|
55110
|
+
next_cursor: string | null;
|
|
55111
|
+
};
|
|
55112
|
+
};
|
|
55113
|
+
export type ListAgentDeviceLocalSessionsResponse = ListAgentDeviceLocalSessionsResponses[keyof ListAgentDeviceLocalSessionsResponses];
|
|
54310
55114
|
export type CreateAgentLoginIntentData = {
|
|
54311
55115
|
body?: never;
|
|
54312
55116
|
path?: never;
|
|
@@ -55601,7 +56405,7 @@ export type ApplyAgentVersionResponses = {
|
|
|
55601
56405
|
*/
|
|
55602
56406
|
environment_id?: string | null;
|
|
55603
56407
|
/**
|
|
55604
|
-
* Default vaults of this service or assume agent version: the vault_ids new
|
|
56408
|
+
* 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.
|
|
55605
56409
|
*/
|
|
55606
56410
|
vault_ids?: Array<string>;
|
|
55607
56411
|
/**
|
|
@@ -56861,7 +57665,7 @@ export type UnarchiveAgentResponses = {
|
|
|
56861
57665
|
*/
|
|
56862
57666
|
environment_id?: string | null;
|
|
56863
57667
|
/**
|
|
56864
|
-
* Default vaults of this service or assume agent version: the vault_ids new
|
|
57668
|
+
* 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.
|
|
56865
57669
|
*/
|
|
56866
57670
|
vault_ids?: Array<string>;
|
|
56867
57671
|
/**
|
|
@@ -59330,9 +60134,13 @@ export type ComputersRetrieveResponse = ComputersRetrieveResponses[keyof Compute
|
|
|
59330
60134
|
export type ComputersUpdateData = {
|
|
59331
60135
|
body: {
|
|
59332
60136
|
/**
|
|
59333
|
-
*
|
|
60137
|
+
* New display name, 1 to 255 characters after trimming. Omit to keep the current name.
|
|
59334
60138
|
*/
|
|
59335
|
-
name
|
|
60139
|
+
name?: string;
|
|
60140
|
+
/**
|
|
60141
|
+
* 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.
|
|
60142
|
+
*/
|
|
60143
|
+
environment_id?: string | null;
|
|
59336
60144
|
};
|
|
59337
60145
|
path: {
|
|
59338
60146
|
/**
|
|
@@ -61502,7 +62310,7 @@ export type ComputersFilesConvertResponse = ComputersFilesConvertResponses[keyof
|
|
|
61502
62310
|
export type ConnectComputerData = {
|
|
61503
62311
|
body?: {
|
|
61504
62312
|
/**
|
|
61505
|
-
*
|
|
62313
|
+
* Accepted for compatibility and ignored: light and heavy both reach the same machine, because a Computer is one machine. Omit it.
|
|
61506
62314
|
*/
|
|
61507
62315
|
need?: 'light' | 'heavy';
|
|
61508
62316
|
};
|
|
@@ -69106,7 +69914,7 @@ export type BrowserListSessionsErrors = {
|
|
|
69106
69914
|
*/
|
|
69107
69915
|
402: BrowserError;
|
|
69108
69916
|
/**
|
|
69109
|
-
* PERMISSION_DENIED /
|
|
69917
|
+
* PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
|
|
69110
69918
|
*/
|
|
69111
69919
|
403: BrowserError;
|
|
69112
69920
|
/**
|
|
@@ -69187,7 +69995,7 @@ export type BrowserCreateSessionErrors = {
|
|
|
69187
69995
|
*/
|
|
69188
69996
|
402: BrowserError;
|
|
69189
69997
|
/**
|
|
69190
|
-
* PERMISSION_DENIED /
|
|
69998
|
+
* PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
|
|
69191
69999
|
*/
|
|
69192
70000
|
403: BrowserError;
|
|
69193
70001
|
/**
|
|
@@ -69273,7 +70081,7 @@ export type BrowserGetSessionErrors = {
|
|
|
69273
70081
|
*/
|
|
69274
70082
|
402: BrowserError;
|
|
69275
70083
|
/**
|
|
69276
|
-
* PERMISSION_DENIED /
|
|
70084
|
+
* PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
|
|
69277
70085
|
*/
|
|
69278
70086
|
403: BrowserError;
|
|
69279
70087
|
/**
|
|
@@ -69355,7 +70163,7 @@ export type BrowserCloseSessionErrors = {
|
|
|
69355
70163
|
*/
|
|
69356
70164
|
402: BrowserError;
|
|
69357
70165
|
/**
|
|
69358
|
-
* PERMISSION_DENIED /
|
|
70166
|
+
* PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
|
|
69359
70167
|
*/
|
|
69360
70168
|
403: BrowserError;
|
|
69361
70169
|
/**
|
|
@@ -69432,7 +70240,7 @@ export type BrowserGetDebugErrors = {
|
|
|
69432
70240
|
*/
|
|
69433
70241
|
402: BrowserError;
|
|
69434
70242
|
/**
|
|
69435
|
-
* PERMISSION_DENIED /
|
|
70243
|
+
* PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
|
|
69436
70244
|
*/
|
|
69437
70245
|
403: BrowserError;
|
|
69438
70246
|
/**
|
|
@@ -69522,7 +70330,7 @@ export type BrowserListEventsErrors = {
|
|
|
69522
70330
|
*/
|
|
69523
70331
|
402: BrowserError;
|
|
69524
70332
|
/**
|
|
69525
|
-
* PERMISSION_DENIED /
|
|
70333
|
+
* PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
|
|
69526
70334
|
*/
|
|
69527
70335
|
403: BrowserError;
|
|
69528
70336
|
/**
|
|
@@ -69772,6 +70580,78 @@ export type BrowserRunPageActionData = {
|
|
|
69772
70580
|
* 标签页 ID,来自 tabs.list 或上一个动作的结果;省略时作用于当前标签页。
|
|
69773
70581
|
*/
|
|
69774
70582
|
tab?: string;
|
|
70583
|
+
} | {
|
|
70584
|
+
/**
|
|
70585
|
+
* 动作类型,固定为 route。
|
|
70586
|
+
*/
|
|
70587
|
+
type: 'route';
|
|
70588
|
+
/**
|
|
70589
|
+
* 要匹配的请求地址:glob(* 不跨 /,** 跨 /,** 匹配零段或更多路径段)或用 /…/ 包起来的正则;最多 2048 个字符,写错在注册时即返回 400 INVALID_PARAMS。
|
|
70590
|
+
*/
|
|
70591
|
+
url: string;
|
|
70592
|
+
/**
|
|
70593
|
+
* 只匹配这个 HTTP 方法(不区分大小写);省略则匹配所有方法。
|
|
70594
|
+
*/
|
|
70595
|
+
method?: string;
|
|
70596
|
+
/**
|
|
70597
|
+
* 标签页 ID,来自 tabs.list 或上一个动作的结果;省略时作用于当前标签页。
|
|
70598
|
+
*/
|
|
70599
|
+
tab?: string;
|
|
70600
|
+
/**
|
|
70601
|
+
* 命中后的处理方式,由 kind 选择:fulfill 直接返回给定响应,abort 让请求失败,delay 按原样转发但推迟给定的毫秒数。
|
|
70602
|
+
*/
|
|
70603
|
+
response: {
|
|
70604
|
+
/**
|
|
70605
|
+
* 直接返回给定响应。
|
|
70606
|
+
*/
|
|
70607
|
+
kind: 'fulfill';
|
|
70608
|
+
/**
|
|
70609
|
+
* 返回的 HTTP 状态码,100 到 599。
|
|
70610
|
+
*/
|
|
70611
|
+
status: number;
|
|
70612
|
+
/**
|
|
70613
|
+
* 返回的响应头,名 → 值;最多 100 项。
|
|
70614
|
+
*/
|
|
70615
|
+
headers?: {
|
|
70616
|
+
[key: string]: string;
|
|
70617
|
+
};
|
|
70618
|
+
/**
|
|
70619
|
+
* 返回的响应体,最多 1000000 个字符。
|
|
70620
|
+
*/
|
|
70621
|
+
body?: string;
|
|
70622
|
+
} | {
|
|
70623
|
+
/**
|
|
70624
|
+
* 让请求失败,页面看到一次网络错误。
|
|
70625
|
+
*/
|
|
70626
|
+
kind: 'abort';
|
|
70627
|
+
/**
|
|
70628
|
+
* Playwright 的错误码;省略为 failed。
|
|
70629
|
+
*/
|
|
70630
|
+
error?: 'aborted' | 'accessdenied' | 'addressunreachable' | 'blockedbyclient' | 'blockedbyresponse' | 'connectionaborted' | 'connectionclosed' | 'connectionfailed' | 'connectionrefused' | 'connectionreset' | 'internetdisconnected' | 'namenotresolved' | 'timedout' | 'failed';
|
|
70631
|
+
} | {
|
|
70632
|
+
/**
|
|
70633
|
+
* 按原样转发请求,但推迟给定毫秒数,用来观察页面的加载态。
|
|
70634
|
+
*/
|
|
70635
|
+
kind: 'delay';
|
|
70636
|
+
/**
|
|
70637
|
+
* 推迟的毫秒数,0 到 60000;超出返回 400 INVALID_PARAMS。
|
|
70638
|
+
*/
|
|
70639
|
+
ms: number;
|
|
70640
|
+
};
|
|
70641
|
+
} | {
|
|
70642
|
+
/**
|
|
70643
|
+
* 动作类型,固定为 unroute。
|
|
70644
|
+
*/
|
|
70645
|
+
type: 'unroute';
|
|
70646
|
+
/**
|
|
70647
|
+
* route 动作返回的规则 ID;不存在时 removed 为 false,不报错。
|
|
70648
|
+
*/
|
|
70649
|
+
routeId: string;
|
|
70650
|
+
} | {
|
|
70651
|
+
/**
|
|
70652
|
+
* 动作类型,固定为 routes。
|
|
70653
|
+
*/
|
|
70654
|
+
type: 'routes';
|
|
69775
70655
|
} | {
|
|
69776
70656
|
/**
|
|
69777
70657
|
* 动作类型:后退、前进或刷新当前页。
|
|
@@ -69805,7 +70685,7 @@ export type BrowserRunPageActionErrors = {
|
|
|
69805
70685
|
*/
|
|
69806
70686
|
402: BrowserError;
|
|
69807
70687
|
/**
|
|
69808
|
-
* PERMISSION_DENIED /
|
|
70688
|
+
* PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
|
|
69809
70689
|
*/
|
|
69810
70690
|
403: BrowserError;
|
|
69811
70691
|
/**
|
|
@@ -69990,265 +70870,74 @@ export type BrowserRunPageActionResponses = {
|
|
|
69990
70870
|
* 已设置的 cookie 的域。
|
|
69991
70871
|
*/
|
|
69992
70872
|
domain: string;
|
|
69993
|
-
}
|
|
69994
|
-
};
|
|
69995
|
-
export type BrowserRunPageActionResponse = BrowserRunPageActionResponses[keyof BrowserRunPageActionResponses];
|
|
69996
|
-
export type BrowserRequestHandoffData = {
|
|
69997
|
-
body: {
|
|
70873
|
+
} | {
|
|
69998
70874
|
/**
|
|
69999
|
-
*
|
|
70875
|
+
* 动作类型,固定为 route。
|
|
70000
70876
|
*/
|
|
70001
|
-
|
|
70877
|
+
type: 'route';
|
|
70002
70878
|
/**
|
|
70003
|
-
*
|
|
70879
|
+
* 新规则的 ID,后续 unroute 用它移除;规则的作用域是会话,会话结束时随之清除。
|
|
70004
70880
|
*/
|
|
70005
|
-
|
|
70006
|
-
}
|
|
70007
|
-
path: {
|
|
70881
|
+
routeId: string;
|
|
70882
|
+
} | {
|
|
70008
70883
|
/**
|
|
70009
|
-
*
|
|
70884
|
+
* 动作类型,固定为 unroute。
|
|
70010
70885
|
*/
|
|
70011
|
-
|
|
70012
|
-
};
|
|
70013
|
-
query?: never;
|
|
70014
|
-
url: '/browser/v1/sessions/{sessionId}/handoff';
|
|
70015
|
-
};
|
|
70016
|
-
export type BrowserRequestHandoffErrors = {
|
|
70017
|
-
/**
|
|
70018
|
-
* INVALID_PARAMS / INVALID_FILTER / INVALID_PAGE_TOKEN
|
|
70019
|
-
*/
|
|
70020
|
-
400: BrowserError;
|
|
70021
|
-
/**
|
|
70022
|
-
* UNAUTHENTICATED / CONNECT_SIGNATURE_INVALID
|
|
70023
|
-
*/
|
|
70024
|
-
401: BrowserError;
|
|
70025
|
-
/**
|
|
70026
|
-
* INSUFFICIENT_BALANCE / QUOTA_EXHAUSTED
|
|
70027
|
-
*/
|
|
70028
|
-
402: BrowserError;
|
|
70029
|
-
/**
|
|
70030
|
-
* PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
|
|
70031
|
-
*/
|
|
70032
|
-
403: BrowserError;
|
|
70033
|
-
/**
|
|
70034
|
-
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
70035
|
-
*/
|
|
70036
|
-
404: BrowserError;
|
|
70037
|
-
/**
|
|
70038
|
-
* SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
70039
|
-
*/
|
|
70040
|
-
409: BrowserError;
|
|
70041
|
-
/**
|
|
70042
|
-
* BROWSER_REVOKED
|
|
70043
|
-
*/
|
|
70044
|
-
410: BrowserError;
|
|
70045
|
-
/**
|
|
70046
|
-
* ACTION_RESULT_TOO_LARGE
|
|
70047
|
-
*/
|
|
70048
|
-
413: BrowserError;
|
|
70049
|
-
/**
|
|
70050
|
-
* CONCURRENCY_LIMIT / RATE_LIMITED / PROVIDER_CAPACITY
|
|
70051
|
-
*/
|
|
70052
|
-
429: BrowserError;
|
|
70053
|
-
/**
|
|
70054
|
-
* INTERNAL
|
|
70055
|
-
*/
|
|
70056
|
-
500: BrowserError;
|
|
70057
|
-
/**
|
|
70058
|
-
* NOT_IMPLEMENTED / PROVIDER_UNSUPPORTED
|
|
70059
|
-
*/
|
|
70060
|
-
501: BrowserError;
|
|
70061
|
-
/**
|
|
70062
|
-
* PROVIDER_FAILED
|
|
70063
|
-
*/
|
|
70064
|
-
502: BrowserError;
|
|
70065
|
-
/**
|
|
70066
|
-
* BROWSER_OFFLINE / SERVICE_UNAVAILABLE
|
|
70067
|
-
*/
|
|
70068
|
-
503: BrowserError;
|
|
70069
|
-
/**
|
|
70070
|
-
* ACTION_TIMEOUT
|
|
70071
|
-
*/
|
|
70072
|
-
504: BrowserError;
|
|
70073
|
-
};
|
|
70074
|
-
export type BrowserRequestHandoffError = BrowserRequestHandoffErrors[keyof BrowserRequestHandoffErrors];
|
|
70075
|
-
export type BrowserRequestHandoffResponses = {
|
|
70076
|
-
/**
|
|
70077
|
-
* 请求成功。
|
|
70078
|
-
*/
|
|
70079
|
-
201: BrowserEventRecord;
|
|
70080
|
-
};
|
|
70081
|
-
export type BrowserRequestHandoffResponse = BrowserRequestHandoffResponses[keyof BrowserRequestHandoffResponses];
|
|
70082
|
-
export type BrowserCompleteHandoffData = {
|
|
70083
|
-
body?: never;
|
|
70084
|
-
path: {
|
|
70886
|
+
type: 'unroute';
|
|
70085
70887
|
/**
|
|
70086
|
-
*
|
|
70888
|
+
* 请求移除的规则 ID。
|
|
70087
70889
|
*/
|
|
70088
|
-
|
|
70089
|
-
};
|
|
70090
|
-
query?: never;
|
|
70091
|
-
url: '/browser/v1/sessions/{sessionId}/handoff/complete';
|
|
70092
|
-
};
|
|
70093
|
-
export type BrowserCompleteHandoffErrors = {
|
|
70094
|
-
/**
|
|
70095
|
-
* INVALID_PARAMS / INVALID_FILTER / INVALID_PAGE_TOKEN
|
|
70096
|
-
*/
|
|
70097
|
-
400: BrowserError;
|
|
70098
|
-
/**
|
|
70099
|
-
* UNAUTHENTICATED / CONNECT_SIGNATURE_INVALID
|
|
70100
|
-
*/
|
|
70101
|
-
401: BrowserError;
|
|
70102
|
-
/**
|
|
70103
|
-
* INSUFFICIENT_BALANCE / QUOTA_EXHAUSTED
|
|
70104
|
-
*/
|
|
70105
|
-
402: BrowserError;
|
|
70106
|
-
/**
|
|
70107
|
-
* PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
|
|
70108
|
-
*/
|
|
70109
|
-
403: BrowserError;
|
|
70110
|
-
/**
|
|
70111
|
-
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
70112
|
-
*/
|
|
70113
|
-
404: BrowserError;
|
|
70114
|
-
/**
|
|
70115
|
-
* SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
70116
|
-
*/
|
|
70117
|
-
409: BrowserError;
|
|
70118
|
-
/**
|
|
70119
|
-
* BROWSER_REVOKED
|
|
70120
|
-
*/
|
|
70121
|
-
410: BrowserError;
|
|
70122
|
-
/**
|
|
70123
|
-
* ACTION_RESULT_TOO_LARGE
|
|
70124
|
-
*/
|
|
70125
|
-
413: BrowserError;
|
|
70126
|
-
/**
|
|
70127
|
-
* CONCURRENCY_LIMIT / RATE_LIMITED / PROVIDER_CAPACITY
|
|
70128
|
-
*/
|
|
70129
|
-
429: BrowserError;
|
|
70130
|
-
/**
|
|
70131
|
-
* INTERNAL
|
|
70132
|
-
*/
|
|
70133
|
-
500: BrowserError;
|
|
70134
|
-
/**
|
|
70135
|
-
* NOT_IMPLEMENTED / PROVIDER_UNSUPPORTED
|
|
70136
|
-
*/
|
|
70137
|
-
501: BrowserError;
|
|
70138
|
-
/**
|
|
70139
|
-
* PROVIDER_FAILED
|
|
70140
|
-
*/
|
|
70141
|
-
502: BrowserError;
|
|
70142
|
-
/**
|
|
70143
|
-
* BROWSER_OFFLINE / SERVICE_UNAVAILABLE
|
|
70144
|
-
*/
|
|
70145
|
-
503: BrowserError;
|
|
70146
|
-
/**
|
|
70147
|
-
* ACTION_TIMEOUT
|
|
70148
|
-
*/
|
|
70149
|
-
504: BrowserError;
|
|
70150
|
-
};
|
|
70151
|
-
export type BrowserCompleteHandoffError = BrowserCompleteHandoffErrors[keyof BrowserCompleteHandoffErrors];
|
|
70152
|
-
export type BrowserCompleteHandoffResponses = {
|
|
70153
|
-
/**
|
|
70154
|
-
* 请求成功。
|
|
70155
|
-
*/
|
|
70156
|
-
200: BrowserEventRecord;
|
|
70157
|
-
};
|
|
70158
|
-
export type BrowserCompleteHandoffResponse = BrowserCompleteHandoffResponses[keyof BrowserCompleteHandoffResponses];
|
|
70159
|
-
export type BrowserViewerHeartbeatData = {
|
|
70160
|
-
body: {
|
|
70890
|
+
routeId: string;
|
|
70161
70891
|
/**
|
|
70162
|
-
*
|
|
70892
|
+
* 是否真的移除了一条规则;ID 不存在时为 false。
|
|
70163
70893
|
*/
|
|
70164
|
-
|
|
70894
|
+
removed: boolean;
|
|
70895
|
+
} | {
|
|
70165
70896
|
/**
|
|
70166
|
-
*
|
|
70897
|
+
* 动作类型,固定为 routes。
|
|
70167
70898
|
*/
|
|
70168
|
-
|
|
70169
|
-
};
|
|
70170
|
-
path: {
|
|
70899
|
+
type: 'routes';
|
|
70171
70900
|
/**
|
|
70172
|
-
*
|
|
70901
|
+
* 当前会话上的规则,按注册顺序;多条都匹配时后注册的优先。
|
|
70173
70902
|
*/
|
|
70174
|
-
|
|
70903
|
+
routes: Array<{
|
|
70904
|
+
/**
|
|
70905
|
+
* 规则 ID,注册时由服务端生成并返回。
|
|
70906
|
+
*/
|
|
70907
|
+
routeId: string;
|
|
70908
|
+
/**
|
|
70909
|
+
* 规则匹配的地址模式。
|
|
70910
|
+
*/
|
|
70911
|
+
url: string;
|
|
70912
|
+
/**
|
|
70913
|
+
* 规则限定的 HTTP 方法;不限定时省略。
|
|
70914
|
+
*/
|
|
70915
|
+
method?: string;
|
|
70916
|
+
/**
|
|
70917
|
+
* 规则只作用的标签页;作用于整个会话时省略。
|
|
70918
|
+
*/
|
|
70919
|
+
tab?: string;
|
|
70920
|
+
/**
|
|
70921
|
+
* 规则的处理方式:kind 为 fulfill、abort 或 delay,其余字段同注册时的 response。
|
|
70922
|
+
*/
|
|
70923
|
+
response: {
|
|
70924
|
+
[key: string]: unknown;
|
|
70925
|
+
};
|
|
70926
|
+
}>;
|
|
70175
70927
|
};
|
|
70176
|
-
query?: never;
|
|
70177
|
-
url: '/browser/v1/sessions/{sessionId}/viewer';
|
|
70178
70928
|
};
|
|
70179
|
-
export type
|
|
70180
|
-
|
|
70181
|
-
|
|
70182
|
-
*/
|
|
70183
|
-
400: BrowserError;
|
|
70184
|
-
/**
|
|
70185
|
-
* UNAUTHENTICATED / CONNECT_SIGNATURE_INVALID
|
|
70186
|
-
*/
|
|
70187
|
-
401: BrowserError;
|
|
70188
|
-
/**
|
|
70189
|
-
* INSUFFICIENT_BALANCE / QUOTA_EXHAUSTED
|
|
70190
|
-
*/
|
|
70191
|
-
402: BrowserError;
|
|
70192
|
-
/**
|
|
70193
|
-
* PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
|
|
70194
|
-
*/
|
|
70195
|
-
403: BrowserError;
|
|
70196
|
-
/**
|
|
70197
|
-
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
70198
|
-
*/
|
|
70199
|
-
404: BrowserError;
|
|
70200
|
-
/**
|
|
70201
|
-
* SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
70202
|
-
*/
|
|
70203
|
-
409: BrowserError;
|
|
70204
|
-
/**
|
|
70205
|
-
* BROWSER_REVOKED
|
|
70206
|
-
*/
|
|
70207
|
-
410: BrowserError;
|
|
70208
|
-
/**
|
|
70209
|
-
* ACTION_RESULT_TOO_LARGE
|
|
70210
|
-
*/
|
|
70211
|
-
413: BrowserError;
|
|
70212
|
-
/**
|
|
70213
|
-
* CONCURRENCY_LIMIT / RATE_LIMITED / PROVIDER_CAPACITY
|
|
70214
|
-
*/
|
|
70215
|
-
429: BrowserError;
|
|
70216
|
-
/**
|
|
70217
|
-
* INTERNAL
|
|
70218
|
-
*/
|
|
70219
|
-
500: BrowserError;
|
|
70220
|
-
/**
|
|
70221
|
-
* NOT_IMPLEMENTED / PROVIDER_UNSUPPORTED
|
|
70222
|
-
*/
|
|
70223
|
-
501: BrowserError;
|
|
70224
|
-
/**
|
|
70225
|
-
* PROVIDER_FAILED
|
|
70226
|
-
*/
|
|
70227
|
-
502: BrowserError;
|
|
70228
|
-
/**
|
|
70229
|
-
* BROWSER_OFFLINE / SERVICE_UNAVAILABLE
|
|
70230
|
-
*/
|
|
70231
|
-
503: BrowserError;
|
|
70232
|
-
/**
|
|
70233
|
-
* ACTION_TIMEOUT
|
|
70234
|
-
*/
|
|
70235
|
-
504: BrowserError;
|
|
70236
|
-
};
|
|
70237
|
-
export type BrowserViewerHeartbeatError = BrowserViewerHeartbeatErrors[keyof BrowserViewerHeartbeatErrors];
|
|
70238
|
-
export type BrowserViewerHeartbeatResponses = {
|
|
70239
|
-
/**
|
|
70240
|
-
* 请求成功。
|
|
70241
|
-
*/
|
|
70242
|
-
200: {
|
|
70929
|
+
export type BrowserRunPageActionResponse = BrowserRunPageActionResponses[keyof BrowserRunPageActionResponses];
|
|
70930
|
+
export type BrowserRequestHandoffData = {
|
|
70931
|
+
body: {
|
|
70243
70932
|
/**
|
|
70244
|
-
*
|
|
70933
|
+
* 交给人工操作者的接管说明,可为空字符串。
|
|
70245
70934
|
*/
|
|
70246
|
-
|
|
70935
|
+
message: string;
|
|
70936
|
+
/**
|
|
70937
|
+
* 接管请求有效时长,单位为毫秒;必须大于 0,可含小数。超过 3600000(60 分钟)的按 60 分钟算,返回事件里的到期时刻就是实际值。接管未完成、未到期期间,会话不按空闲回收;接管结束后重新开始计空闲。
|
|
70938
|
+
*/
|
|
70939
|
+
timeoutMs?: number;
|
|
70247
70940
|
};
|
|
70248
|
-
};
|
|
70249
|
-
export type BrowserViewerHeartbeatResponse = BrowserViewerHeartbeatResponses[keyof BrowserViewerHeartbeatResponses];
|
|
70250
|
-
export type BrowserGetSessionFrameData = {
|
|
70251
|
-
body?: never;
|
|
70252
70941
|
path: {
|
|
70253
70942
|
/**
|
|
70254
70943
|
* 浏览器会话 ID;使用创建或列出会话返回的 id,以 bss_ 开头。
|
|
@@ -70256,9 +70945,9 @@ export type BrowserGetSessionFrameData = {
|
|
|
70256
70945
|
sessionId: string;
|
|
70257
70946
|
};
|
|
70258
70947
|
query?: never;
|
|
70259
|
-
url: '/browser/v1/sessions/{sessionId}/
|
|
70948
|
+
url: '/browser/v1/sessions/{sessionId}/handoff';
|
|
70260
70949
|
};
|
|
70261
|
-
export type
|
|
70950
|
+
export type BrowserRequestHandoffErrors = {
|
|
70262
70951
|
/**
|
|
70263
70952
|
* INVALID_PARAMS / INVALID_FILTER / INVALID_PAGE_TOKEN
|
|
70264
70953
|
*/
|
|
@@ -70272,7 +70961,252 @@ export type BrowserGetSessionFrameErrors = {
|
|
|
70272
70961
|
*/
|
|
70273
70962
|
402: BrowserError;
|
|
70274
70963
|
/**
|
|
70275
|
-
* PERMISSION_DENIED /
|
|
70964
|
+
* PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
|
|
70965
|
+
*/
|
|
70966
|
+
403: BrowserError;
|
|
70967
|
+
/**
|
|
70968
|
+
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
70969
|
+
*/
|
|
70970
|
+
404: BrowserError;
|
|
70971
|
+
/**
|
|
70972
|
+
* SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
70973
|
+
*/
|
|
70974
|
+
409: BrowserError;
|
|
70975
|
+
/**
|
|
70976
|
+
* BROWSER_REVOKED
|
|
70977
|
+
*/
|
|
70978
|
+
410: BrowserError;
|
|
70979
|
+
/**
|
|
70980
|
+
* ACTION_RESULT_TOO_LARGE
|
|
70981
|
+
*/
|
|
70982
|
+
413: BrowserError;
|
|
70983
|
+
/**
|
|
70984
|
+
* CONCURRENCY_LIMIT / RATE_LIMITED / PROVIDER_CAPACITY
|
|
70985
|
+
*/
|
|
70986
|
+
429: BrowserError;
|
|
70987
|
+
/**
|
|
70988
|
+
* INTERNAL
|
|
70989
|
+
*/
|
|
70990
|
+
500: BrowserError;
|
|
70991
|
+
/**
|
|
70992
|
+
* NOT_IMPLEMENTED / PROVIDER_UNSUPPORTED
|
|
70993
|
+
*/
|
|
70994
|
+
501: BrowserError;
|
|
70995
|
+
/**
|
|
70996
|
+
* PROVIDER_FAILED
|
|
70997
|
+
*/
|
|
70998
|
+
502: BrowserError;
|
|
70999
|
+
/**
|
|
71000
|
+
* BROWSER_OFFLINE / SERVICE_UNAVAILABLE
|
|
71001
|
+
*/
|
|
71002
|
+
503: BrowserError;
|
|
71003
|
+
/**
|
|
71004
|
+
* ACTION_TIMEOUT
|
|
71005
|
+
*/
|
|
71006
|
+
504: BrowserError;
|
|
71007
|
+
};
|
|
71008
|
+
export type BrowserRequestHandoffError = BrowserRequestHandoffErrors[keyof BrowserRequestHandoffErrors];
|
|
71009
|
+
export type BrowserRequestHandoffResponses = {
|
|
71010
|
+
/**
|
|
71011
|
+
* 请求成功。
|
|
71012
|
+
*/
|
|
71013
|
+
201: BrowserEventRecord;
|
|
71014
|
+
};
|
|
71015
|
+
export type BrowserRequestHandoffResponse = BrowserRequestHandoffResponses[keyof BrowserRequestHandoffResponses];
|
|
71016
|
+
export type BrowserCompleteHandoffData = {
|
|
71017
|
+
body?: never;
|
|
71018
|
+
path: {
|
|
71019
|
+
/**
|
|
71020
|
+
* 浏览器会话 ID;使用创建或列出会话返回的 id,以 bss_ 开头。
|
|
71021
|
+
*/
|
|
71022
|
+
sessionId: string;
|
|
71023
|
+
};
|
|
71024
|
+
query?: never;
|
|
71025
|
+
url: '/browser/v1/sessions/{sessionId}/handoff/complete';
|
|
71026
|
+
};
|
|
71027
|
+
export type BrowserCompleteHandoffErrors = {
|
|
71028
|
+
/**
|
|
71029
|
+
* INVALID_PARAMS / INVALID_FILTER / INVALID_PAGE_TOKEN
|
|
71030
|
+
*/
|
|
71031
|
+
400: BrowserError;
|
|
71032
|
+
/**
|
|
71033
|
+
* UNAUTHENTICATED / CONNECT_SIGNATURE_INVALID
|
|
71034
|
+
*/
|
|
71035
|
+
401: BrowserError;
|
|
71036
|
+
/**
|
|
71037
|
+
* INSUFFICIENT_BALANCE / QUOTA_EXHAUSTED
|
|
71038
|
+
*/
|
|
71039
|
+
402: BrowserError;
|
|
71040
|
+
/**
|
|
71041
|
+
* PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
|
|
71042
|
+
*/
|
|
71043
|
+
403: BrowserError;
|
|
71044
|
+
/**
|
|
71045
|
+
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
71046
|
+
*/
|
|
71047
|
+
404: BrowserError;
|
|
71048
|
+
/**
|
|
71049
|
+
* SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
71050
|
+
*/
|
|
71051
|
+
409: BrowserError;
|
|
71052
|
+
/**
|
|
71053
|
+
* BROWSER_REVOKED
|
|
71054
|
+
*/
|
|
71055
|
+
410: BrowserError;
|
|
71056
|
+
/**
|
|
71057
|
+
* ACTION_RESULT_TOO_LARGE
|
|
71058
|
+
*/
|
|
71059
|
+
413: BrowserError;
|
|
71060
|
+
/**
|
|
71061
|
+
* CONCURRENCY_LIMIT / RATE_LIMITED / PROVIDER_CAPACITY
|
|
71062
|
+
*/
|
|
71063
|
+
429: BrowserError;
|
|
71064
|
+
/**
|
|
71065
|
+
* INTERNAL
|
|
71066
|
+
*/
|
|
71067
|
+
500: BrowserError;
|
|
71068
|
+
/**
|
|
71069
|
+
* NOT_IMPLEMENTED / PROVIDER_UNSUPPORTED
|
|
71070
|
+
*/
|
|
71071
|
+
501: BrowserError;
|
|
71072
|
+
/**
|
|
71073
|
+
* PROVIDER_FAILED
|
|
71074
|
+
*/
|
|
71075
|
+
502: BrowserError;
|
|
71076
|
+
/**
|
|
71077
|
+
* BROWSER_OFFLINE / SERVICE_UNAVAILABLE
|
|
71078
|
+
*/
|
|
71079
|
+
503: BrowserError;
|
|
71080
|
+
/**
|
|
71081
|
+
* ACTION_TIMEOUT
|
|
71082
|
+
*/
|
|
71083
|
+
504: BrowserError;
|
|
71084
|
+
};
|
|
71085
|
+
export type BrowserCompleteHandoffError = BrowserCompleteHandoffErrors[keyof BrowserCompleteHandoffErrors];
|
|
71086
|
+
export type BrowserCompleteHandoffResponses = {
|
|
71087
|
+
/**
|
|
71088
|
+
* 请求成功。
|
|
71089
|
+
*/
|
|
71090
|
+
200: BrowserEventRecord;
|
|
71091
|
+
};
|
|
71092
|
+
export type BrowserCompleteHandoffResponse = BrowserCompleteHandoffResponses[keyof BrowserCompleteHandoffResponses];
|
|
71093
|
+
export type BrowserViewerHeartbeatData = {
|
|
71094
|
+
body: {
|
|
71095
|
+
/**
|
|
71096
|
+
* 当前观看者的稳定标识;同一观看者重复心跳应使用相同值,长度为 1–128 个 UTF-16 代码单元。
|
|
71097
|
+
*/
|
|
71098
|
+
viewerId: string;
|
|
71099
|
+
/**
|
|
71100
|
+
* 观看者类型:control 是需要控制浏览器的客户端,readonly 是只读观看者。只读观看者发送 control 也会按 readonly 记录。
|
|
71101
|
+
*/
|
|
71102
|
+
kind?: 'control' | 'readonly';
|
|
71103
|
+
};
|
|
71104
|
+
path: {
|
|
71105
|
+
/**
|
|
71106
|
+
* 浏览器会话 ID;使用创建或列出会话返回的 id,以 bss_ 开头。
|
|
71107
|
+
*/
|
|
71108
|
+
sessionId: string;
|
|
71109
|
+
};
|
|
71110
|
+
query?: never;
|
|
71111
|
+
url: '/browser/v1/sessions/{sessionId}/viewer';
|
|
71112
|
+
};
|
|
71113
|
+
export type BrowserViewerHeartbeatErrors = {
|
|
71114
|
+
/**
|
|
71115
|
+
* INVALID_PARAMS / INVALID_FILTER / INVALID_PAGE_TOKEN
|
|
71116
|
+
*/
|
|
71117
|
+
400: BrowserError;
|
|
71118
|
+
/**
|
|
71119
|
+
* UNAUTHENTICATED / CONNECT_SIGNATURE_INVALID
|
|
71120
|
+
*/
|
|
71121
|
+
401: BrowserError;
|
|
71122
|
+
/**
|
|
71123
|
+
* INSUFFICIENT_BALANCE / QUOTA_EXHAUSTED
|
|
71124
|
+
*/
|
|
71125
|
+
402: BrowserError;
|
|
71126
|
+
/**
|
|
71127
|
+
* PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
|
|
71128
|
+
*/
|
|
71129
|
+
403: BrowserError;
|
|
71130
|
+
/**
|
|
71131
|
+
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
71132
|
+
*/
|
|
71133
|
+
404: BrowserError;
|
|
71134
|
+
/**
|
|
71135
|
+
* SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
71136
|
+
*/
|
|
71137
|
+
409: BrowserError;
|
|
71138
|
+
/**
|
|
71139
|
+
* BROWSER_REVOKED
|
|
71140
|
+
*/
|
|
71141
|
+
410: BrowserError;
|
|
71142
|
+
/**
|
|
71143
|
+
* ACTION_RESULT_TOO_LARGE
|
|
71144
|
+
*/
|
|
71145
|
+
413: BrowserError;
|
|
71146
|
+
/**
|
|
71147
|
+
* CONCURRENCY_LIMIT / RATE_LIMITED / PROVIDER_CAPACITY
|
|
71148
|
+
*/
|
|
71149
|
+
429: BrowserError;
|
|
71150
|
+
/**
|
|
71151
|
+
* INTERNAL
|
|
71152
|
+
*/
|
|
71153
|
+
500: BrowserError;
|
|
71154
|
+
/**
|
|
71155
|
+
* NOT_IMPLEMENTED / PROVIDER_UNSUPPORTED
|
|
71156
|
+
*/
|
|
71157
|
+
501: BrowserError;
|
|
71158
|
+
/**
|
|
71159
|
+
* PROVIDER_FAILED
|
|
71160
|
+
*/
|
|
71161
|
+
502: BrowserError;
|
|
71162
|
+
/**
|
|
71163
|
+
* BROWSER_OFFLINE / SERVICE_UNAVAILABLE
|
|
71164
|
+
*/
|
|
71165
|
+
503: BrowserError;
|
|
71166
|
+
/**
|
|
71167
|
+
* ACTION_TIMEOUT
|
|
71168
|
+
*/
|
|
71169
|
+
504: BrowserError;
|
|
71170
|
+
};
|
|
71171
|
+
export type BrowserViewerHeartbeatError = BrowserViewerHeartbeatErrors[keyof BrowserViewerHeartbeatErrors];
|
|
71172
|
+
export type BrowserViewerHeartbeatResponses = {
|
|
71173
|
+
/**
|
|
71174
|
+
* 请求成功。
|
|
71175
|
+
*/
|
|
71176
|
+
200: {
|
|
71177
|
+
/**
|
|
71178
|
+
* 心跳已被接受,成功时固定返回 true。
|
|
71179
|
+
*/
|
|
71180
|
+
ok: true;
|
|
71181
|
+
};
|
|
71182
|
+
};
|
|
71183
|
+
export type BrowserViewerHeartbeatResponse = BrowserViewerHeartbeatResponses[keyof BrowserViewerHeartbeatResponses];
|
|
71184
|
+
export type BrowserGetSessionFrameData = {
|
|
71185
|
+
body?: never;
|
|
71186
|
+
path: {
|
|
71187
|
+
/**
|
|
71188
|
+
* 浏览器会话 ID;使用创建或列出会话返回的 id,以 bss_ 开头。
|
|
71189
|
+
*/
|
|
71190
|
+
sessionId: string;
|
|
71191
|
+
};
|
|
71192
|
+
query?: never;
|
|
71193
|
+
url: '/browser/v1/sessions/{sessionId}/frame';
|
|
71194
|
+
};
|
|
71195
|
+
export type BrowserGetSessionFrameErrors = {
|
|
71196
|
+
/**
|
|
71197
|
+
* INVALID_PARAMS / INVALID_FILTER / INVALID_PAGE_TOKEN
|
|
71198
|
+
*/
|
|
71199
|
+
400: BrowserError;
|
|
71200
|
+
/**
|
|
71201
|
+
* UNAUTHENTICATED / CONNECT_SIGNATURE_INVALID
|
|
71202
|
+
*/
|
|
71203
|
+
401: BrowserError;
|
|
71204
|
+
/**
|
|
71205
|
+
* INSUFFICIENT_BALANCE / QUOTA_EXHAUSTED
|
|
71206
|
+
*/
|
|
71207
|
+
402: BrowserError;
|
|
71208
|
+
/**
|
|
71209
|
+
* PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
|
|
70276
71210
|
*/
|
|
70277
71211
|
403: BrowserError;
|
|
70278
71212
|
/**
|
|
@@ -70357,7 +71291,7 @@ export type BrowserListContextsErrors = {
|
|
|
70357
71291
|
*/
|
|
70358
71292
|
402: BrowserError;
|
|
70359
71293
|
/**
|
|
70360
|
-
* PERMISSION_DENIED /
|
|
71294
|
+
* PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
|
|
70361
71295
|
*/
|
|
70362
71296
|
403: BrowserError;
|
|
70363
71297
|
/**
|
|
@@ -70434,6 +71368,36 @@ export type BrowserCreateContextData = {
|
|
|
70434
71368
|
labels?: {
|
|
70435
71369
|
[key: string]: string;
|
|
70436
71370
|
};
|
|
71371
|
+
/**
|
|
71372
|
+
* 给登录态绑定一个固定的外部代理(如住宅 IP),使用这个登录态的会话没有写 proxies 时都经它出网,让同一账号始终从同一个出口地址出去。只存保管库引用(password_secret),不存密码;会话自己写了 proxies 时以会话的为准。需要组织已开通容器后端,否则返回 501 PROVIDER_UNSUPPORTED。
|
|
71373
|
+
*/
|
|
71374
|
+
proxy?: {
|
|
71375
|
+
/**
|
|
71376
|
+
* 固定为 external:经一个你自己的外部 HTTP 代理出网。
|
|
71377
|
+
*/
|
|
71378
|
+
type: 'external';
|
|
71379
|
+
/**
|
|
71380
|
+
* 代理地址,host:port 或 http://host:port;只支持 HTTP 代理,不接受 socks5:// 等协议,也不接受 localhost 和内网、链路本地地址。
|
|
71381
|
+
*/
|
|
71382
|
+
server: string;
|
|
71383
|
+
/**
|
|
71384
|
+
* 代理用户名;有密码时才能填,填了就必须同时给出密码。
|
|
71385
|
+
*/
|
|
71386
|
+
username?: string;
|
|
71387
|
+
/**
|
|
71388
|
+
* 必须用这种形式:引用保管库里的代理密码,只在连接这个代理的主机时兑换,不会交给网页。登录态里只存引用,传明文 password 返回 400 INVALID_PARAMS。
|
|
71389
|
+
*/
|
|
71390
|
+
password_secret?: {
|
|
71391
|
+
/**
|
|
71392
|
+
* 保存代理密码的保管库 ID,以 vlt_ 开头。
|
|
71393
|
+
*/
|
|
71394
|
+
vault_id: string;
|
|
71395
|
+
/**
|
|
71396
|
+
* 保管库中该密码的密钥 ID(不是密码本身)。
|
|
71397
|
+
*/
|
|
71398
|
+
secret: string;
|
|
71399
|
+
};
|
|
71400
|
+
};
|
|
70437
71401
|
};
|
|
70438
71402
|
path?: never;
|
|
70439
71403
|
query?: never;
|
|
@@ -70453,7 +71417,7 @@ export type BrowserCreateContextErrors = {
|
|
|
70453
71417
|
*/
|
|
70454
71418
|
402: BrowserError;
|
|
70455
71419
|
/**
|
|
70456
|
-
* PERMISSION_DENIED /
|
|
71420
|
+
* PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
|
|
70457
71421
|
*/
|
|
70458
71422
|
403: BrowserError;
|
|
70459
71423
|
/**
|
|
@@ -70530,7 +71494,7 @@ export type BrowserDeleteContextErrors = {
|
|
|
70530
71494
|
*/
|
|
70531
71495
|
402: BrowserError;
|
|
70532
71496
|
/**
|
|
70533
|
-
* PERMISSION_DENIED /
|
|
71497
|
+
* PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
|
|
70534
71498
|
*/
|
|
70535
71499
|
403: BrowserError;
|
|
70536
71500
|
/**
|
|
@@ -70612,7 +71576,7 @@ export type BrowserGetContextErrors = {
|
|
|
70612
71576
|
*/
|
|
70613
71577
|
402: BrowserError;
|
|
70614
71578
|
/**
|
|
70615
|
-
* PERMISSION_DENIED /
|
|
71579
|
+
* PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
|
|
70616
71580
|
*/
|
|
70617
71581
|
403: BrowserError;
|
|
70618
71582
|
/**
|
|
@@ -70676,6 +71640,36 @@ export type BrowserUpdateContextData = {
|
|
|
70676
71640
|
labels?: {
|
|
70677
71641
|
[key: string]: string;
|
|
70678
71642
|
};
|
|
71643
|
+
/**
|
|
71644
|
+
* 给登录态绑定一个固定的外部代理(如住宅 IP),使用这个登录态的会话没有写 proxies 时都经它出网,让同一账号始终从同一个出口地址出去。只存保管库引用(password_secret),不存密码;会话自己写了 proxies 时以会话的为准。需要组织已开通容器后端,否则返回 501 PROVIDER_UNSUPPORTED。 更新时传 null 解除绑定,省略则保留原绑定。
|
|
71645
|
+
*/
|
|
71646
|
+
proxy?: {
|
|
71647
|
+
/**
|
|
71648
|
+
* 固定为 external:经一个你自己的外部 HTTP 代理出网。
|
|
71649
|
+
*/
|
|
71650
|
+
type: 'external';
|
|
71651
|
+
/**
|
|
71652
|
+
* 代理地址,host:port 或 http://host:port;只支持 HTTP 代理,不接受 socks5:// 等协议,也不接受 localhost 和内网、链路本地地址。
|
|
71653
|
+
*/
|
|
71654
|
+
server: string;
|
|
71655
|
+
/**
|
|
71656
|
+
* 代理用户名;有密码时才能填,填了就必须同时给出密码。
|
|
71657
|
+
*/
|
|
71658
|
+
username?: string;
|
|
71659
|
+
/**
|
|
71660
|
+
* 必须用这种形式:引用保管库里的代理密码,只在连接这个代理的主机时兑换,不会交给网页。登录态里只存引用,传明文 password 返回 400 INVALID_PARAMS。
|
|
71661
|
+
*/
|
|
71662
|
+
password_secret?: {
|
|
71663
|
+
/**
|
|
71664
|
+
* 保存代理密码的保管库 ID,以 vlt_ 开头。
|
|
71665
|
+
*/
|
|
71666
|
+
vault_id: string;
|
|
71667
|
+
/**
|
|
71668
|
+
* 保管库中该密码的密钥 ID(不是密码本身)。
|
|
71669
|
+
*/
|
|
71670
|
+
secret: string;
|
|
71671
|
+
};
|
|
71672
|
+
} | null;
|
|
70679
71673
|
};
|
|
70680
71674
|
path: {
|
|
70681
71675
|
/**
|
|
@@ -70700,7 +71694,7 @@ export type BrowserUpdateContextErrors = {
|
|
|
70700
71694
|
*/
|
|
70701
71695
|
402: BrowserError;
|
|
70702
71696
|
/**
|
|
70703
|
-
* PERMISSION_DENIED /
|
|
71697
|
+
* PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
|
|
70704
71698
|
*/
|
|
70705
71699
|
403: BrowserError;
|
|
70706
71700
|
/**
|
|
@@ -70772,7 +71766,7 @@ export type BrowserCreateByobPairingErrors = {
|
|
|
70772
71766
|
*/
|
|
70773
71767
|
402: BrowserError;
|
|
70774
71768
|
/**
|
|
70775
|
-
* PERMISSION_DENIED /
|
|
71769
|
+
* PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
|
|
70776
71770
|
*/
|
|
70777
71771
|
403: BrowserError;
|
|
70778
71772
|
/**
|
|
@@ -70853,7 +71847,7 @@ export type BrowserListByobBrowsersErrors = {
|
|
|
70853
71847
|
*/
|
|
70854
71848
|
402: BrowserError;
|
|
70855
71849
|
/**
|
|
70856
|
-
* PERMISSION_DENIED /
|
|
71850
|
+
* PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
|
|
70857
71851
|
*/
|
|
70858
71852
|
403: BrowserError;
|
|
70859
71853
|
/**
|
|
@@ -70939,7 +71933,7 @@ export type BrowserGetByobBrowserErrors = {
|
|
|
70939
71933
|
*/
|
|
70940
71934
|
402: BrowserError;
|
|
70941
71935
|
/**
|
|
70942
|
-
* PERMISSION_DENIED /
|
|
71936
|
+
* PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
|
|
70943
71937
|
*/
|
|
70944
71938
|
403: BrowserError;
|
|
70945
71939
|
/**
|
|
@@ -70997,14 +71991,6 @@ export type BrowserUpdateByobBrowserData = {
|
|
|
70997
71991
|
* 新的显示名称,1–80 个字符。
|
|
70998
71992
|
*/
|
|
70999
71993
|
name?: string;
|
|
71000
|
-
/**
|
|
71001
|
-
* 整体替换被授权的智能体 ID 列表;传空数组撤销全部授权。
|
|
71002
|
-
*/
|
|
71003
|
-
granted_agents?: Array<string>;
|
|
71004
|
-
/**
|
|
71005
|
-
* 整体替换允许站点列表;传空数组表示不限制。
|
|
71006
|
-
*/
|
|
71007
|
-
allowed_sites?: Array<string>;
|
|
71008
71994
|
};
|
|
71009
71995
|
path: {
|
|
71010
71996
|
/**
|
|
@@ -71029,7 +72015,7 @@ export type BrowserUpdateByobBrowserErrors = {
|
|
|
71029
72015
|
*/
|
|
71030
72016
|
402: BrowserError;
|
|
71031
72017
|
/**
|
|
71032
|
-
* PERMISSION_DENIED /
|
|
72018
|
+
* PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
|
|
71033
72019
|
*/
|
|
71034
72020
|
403: BrowserError;
|
|
71035
72021
|
/**
|
|
@@ -71106,7 +72092,7 @@ export type BrowserDisconnectByobBrowserErrors = {
|
|
|
71106
72092
|
*/
|
|
71107
72093
|
402: BrowserError;
|
|
71108
72094
|
/**
|
|
71109
|
-
* PERMISSION_DENIED /
|
|
72095
|
+
* PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
|
|
71110
72096
|
*/
|
|
71111
72097
|
403: BrowserError;
|
|
71112
72098
|
/**
|
|
@@ -71183,7 +72169,7 @@ export type BrowserReadByobPairingErrors = {
|
|
|
71183
72169
|
*/
|
|
71184
72170
|
402: BrowserError;
|
|
71185
72171
|
/**
|
|
71186
|
-
* PERMISSION_DENIED /
|
|
72172
|
+
* PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
|
|
71187
72173
|
*/
|
|
71188
72174
|
403: BrowserError;
|
|
71189
72175
|
/**
|
|
@@ -71260,7 +72246,7 @@ export type BrowserClaimByobPairingErrors = {
|
|
|
71260
72246
|
*/
|
|
71261
72247
|
402: BrowserError;
|
|
71262
72248
|
/**
|
|
71263
|
-
* PERMISSION_DENIED /
|
|
72249
|
+
* PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
|
|
71264
72250
|
*/
|
|
71265
72251
|
403: BrowserError;
|
|
71266
72252
|
/**
|
|
@@ -71369,7 +72355,7 @@ export type BrowserConnectErrors = {
|
|
|
71369
72355
|
*/
|
|
71370
72356
|
402: BrowserError;
|
|
71371
72357
|
/**
|
|
71372
|
-
* PERMISSION_DENIED /
|
|
72358
|
+
* PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
|
|
71373
72359
|
*/
|
|
71374
72360
|
403: BrowserError;
|
|
71375
72361
|
/**
|
|
@@ -71448,7 +72434,7 @@ export type BrowserLiveViewErrors = {
|
|
|
71448
72434
|
*/
|
|
71449
72435
|
402: BrowserError;
|
|
71450
72436
|
/**
|
|
71451
|
-
* PERMISSION_DENIED /
|
|
72437
|
+
* PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
|
|
71452
72438
|
*/
|
|
71453
72439
|
403: BrowserError;
|
|
71454
72440
|
/**
|
|
@@ -71518,7 +72504,7 @@ export type BrowserStreamSessionErrors = {
|
|
|
71518
72504
|
*/
|
|
71519
72505
|
402: BrowserError;
|
|
71520
72506
|
/**
|
|
71521
|
-
* PERMISSION_DENIED /
|
|
72507
|
+
* PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
|
|
71522
72508
|
*/
|
|
71523
72509
|
403: BrowserError;
|
|
71524
72510
|
/**
|
|
@@ -71595,7 +72581,7 @@ export type BrowserStreamSessionFramesErrors = {
|
|
|
71595
72581
|
*/
|
|
71596
72582
|
402: BrowserError;
|
|
71597
72583
|
/**
|
|
71598
|
-
* PERMISSION_DENIED /
|
|
72584
|
+
* PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
|
|
71599
72585
|
*/
|
|
71600
72586
|
403: BrowserError;
|
|
71601
72587
|
/**
|
|
@@ -78332,7 +79318,7 @@ export type ListOrganizationCostsData = {
|
|
|
78332
79318
|
*/
|
|
78333
79319
|
bucket_width: '1h' | '1d';
|
|
78334
79320
|
/**
|
|
78335
|
-
* IANA time zone name (for example Asia/Shanghai) whose local hours or days form the buckets. Defaults to UTC. Offsets such as +08:00 are rejected.
|
|
79321
|
+
* IANA time zone name (for example Asia/Shanghai) whose local hours or days form the buckets. Defaults to UTC. Offsets such as +08:00 are rejected. Only zones whose UTC offset is a whole number of hours across the whole window are supported; zones such as Asia/Kolkata (+05:30) or Asia/Kathmandu (+05:45) are rejected with 400 VALIDATION_ERROR, because Billing buckets in UTC hours and a local hour of those zones straddles two of them. With bucket_width=1d the window widens to whole local days, each bucket carries its real UTC starting_at and ending_at, and a day that crosses a daylight-saving change lasts 23 or 25 hours; the whole window is then answered in one page (has_more is false and page is not accepted). starting_at and ending_at stay UTC instants.
|
|
78336
79322
|
*
|
|
78337
79323
|
*/
|
|
78338
79324
|
time_zone?: string;
|
|
@@ -78450,7 +79436,7 @@ export type ListOrganizationUsageData = {
|
|
|
78450
79436
|
*/
|
|
78451
79437
|
bucket_width: '1h' | '1d';
|
|
78452
79438
|
/**
|
|
78453
|
-
* IANA time zone name (for example Asia/Shanghai) whose local hours or days form the buckets. Defaults to UTC. Offsets such as +08:00 are rejected.
|
|
79439
|
+
* IANA time zone name (for example Asia/Shanghai) whose local hours or days form the buckets. Defaults to UTC. Offsets such as +08:00 are rejected. Only zones whose UTC offset is a whole number of hours across the whole window are supported; zones such as Asia/Kolkata (+05:30) or Asia/Kathmandu (+05:45) are rejected with 400 VALIDATION_ERROR, because Billing buckets in UTC hours and a local hour of those zones straddles two of them. With bucket_width=1d the window widens to whole local days, each bucket carries its real UTC starting_at and ending_at, and a day that crosses a daylight-saving change lasts 23 or 25 hours; the whole window is then answered in one page (has_more is false and page is not accepted). starting_at and ending_at stay UTC instants.
|
|
78454
79440
|
*
|
|
78455
79441
|
*/
|
|
78456
79442
|
time_zone?: string;
|
|
@@ -78970,11 +79956,19 @@ export type ListOrganizationNotificationLettersData = {
|
|
|
78970
79956
|
path?: never;
|
|
78971
79957
|
query?: {
|
|
78972
79958
|
/**
|
|
78973
|
-
*
|
|
79959
|
+
* received (the default) lists the letters addressed to you; sent lists the letters you wrote, scheduled ones included, in the same row shape — a script or an agent finds its own alarm clocks there. A run credential's sent list is the letters automation wrote on behalf of the person it acts for.
|
|
79960
|
+
*/
|
|
79961
|
+
direction?: 'received' | 'sent';
|
|
79962
|
+
/**
|
|
79963
|
+
* Only unread letters, only read ones, or (direction=sent only) only letters written but not yet delivered, whose deliveredAt is null; omit for all. On a sent list, unread and read are the recipient's state.
|
|
79964
|
+
*/
|
|
79965
|
+
status?: 'unread' | 'read' | 'scheduled';
|
|
79966
|
+
/**
|
|
79967
|
+
* Only letters of this conversation, for received and sent alike; omit for all.
|
|
78974
79968
|
*/
|
|
78975
|
-
|
|
79969
|
+
thread?: string;
|
|
78976
79970
|
/**
|
|
78977
|
-
* false (the default) hides archived letters; true lists only the archived ones.
|
|
79971
|
+
* false (the default) hides archived letters; true lists only the archived ones. Archiving is the addressee's act, so it is ignored when direction=sent.
|
|
78978
79972
|
*/
|
|
78979
79973
|
archived?: boolean;
|
|
78980
79974
|
/**
|
|
@@ -78990,7 +79984,7 @@ export type ListOrganizationNotificationLettersData = {
|
|
|
78990
79984
|
};
|
|
78991
79985
|
export type ListOrganizationNotificationLettersErrors = {
|
|
78992
79986
|
/**
|
|
78993
|
-
* A bad `status`, `archived` or `limit`, or `INVALID_PARAMS` from the service for a cursor it did not issue (RFC 9457 problem).
|
|
79987
|
+
* A bad `direction`, `status` (scheduled needs direction=sent), `thread`, `archived` or `limit`, or `INVALID_PARAMS` from the service for a cursor it did not issue (RFC 9457 problem).
|
|
78994
79988
|
*/
|
|
78995
79989
|
400: unknown;
|
|
78996
79990
|
/**
|
|
@@ -79090,6 +80084,80 @@ export type ListOrganizationNotificationLettersResponses = {
|
|
|
79090
80084
|
};
|
|
79091
80085
|
};
|
|
79092
80086
|
export type ListOrganizationNotificationLettersResponse = ListOrganizationNotificationLettersResponses[keyof ListOrganizationNotificationLettersResponses];
|
|
80087
|
+
export type CreateOrganizationNotificationLetterData = {
|
|
80088
|
+
body: {
|
|
80089
|
+
/**
|
|
80090
|
+
* The recipient's address: human:<user id> or agent:<agent id>, a member or an agent of this organization.
|
|
80091
|
+
*/
|
|
80092
|
+
to: string;
|
|
80093
|
+
/**
|
|
80094
|
+
* The whole letter, 1 to 16000 characters.
|
|
80095
|
+
*/
|
|
80096
|
+
body: string;
|
|
80097
|
+
/**
|
|
80098
|
+
* One sentence saying what the reader is asked to do or needs to know, at most 60 characters. Required when to is a person; refused, never cut, when longer.
|
|
80099
|
+
*/
|
|
80100
|
+
summary?: string;
|
|
80101
|
+
/**
|
|
80102
|
+
* The letter's kind; it decides the channels. Defaults to mention.
|
|
80103
|
+
*/
|
|
80104
|
+
kind?: 'notice' | 'mention' | 'decision';
|
|
80105
|
+
/**
|
|
80106
|
+
* The conversation the letter belongs to, free text; omit for none.
|
|
80107
|
+
*/
|
|
80108
|
+
thread?: string;
|
|
80109
|
+
/**
|
|
80110
|
+
* When to deliver it, ISO 8601, at most 366 days ahead. A past time or no value means now.
|
|
80111
|
+
*/
|
|
80112
|
+
deliver_at?: string;
|
|
80113
|
+
};
|
|
80114
|
+
path?: never;
|
|
80115
|
+
query?: never;
|
|
80116
|
+
url: '/organization/v1/notifications/letters';
|
|
80117
|
+
};
|
|
80118
|
+
export type CreateOrganizationNotificationLetterErrors = {
|
|
80119
|
+
/**
|
|
80120
|
+
* `to` is not an address, `body` is missing or too long, `summary` is missing for a person or longer than 60 characters, `kind` is unknown, or `deliver_at` is not an ISO 8601 time within 366 days (RFC 9457 problem).
|
|
80121
|
+
*/
|
|
80122
|
+
400: unknown;
|
|
80123
|
+
/**
|
|
80124
|
+
* Missing or invalid credential (RFC 9457 problem).
|
|
80125
|
+
*/
|
|
80126
|
+
401: unknown;
|
|
80127
|
+
/**
|
|
80128
|
+
* `PERMISSION_DENIED`: sending a letter needs a person, an agent or an automation run identity; an organization API key or an application cannot send (RFC 9457 problem).
|
|
80129
|
+
*/
|
|
80130
|
+
403: unknown;
|
|
80131
|
+
/**
|
|
80132
|
+
* `SUBSCRIBER_NOT_FOUND`: the recipient is not a member or an agent of this organization (RFC 9457 problem).
|
|
80133
|
+
*/
|
|
80134
|
+
404: unknown;
|
|
80135
|
+
/**
|
|
80136
|
+
* 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.
|
|
80137
|
+
*/
|
|
80138
|
+
502: unknown;
|
|
80139
|
+
};
|
|
80140
|
+
export type CreateOrganizationNotificationLetterResponses = {
|
|
80141
|
+
/**
|
|
80142
|
+
* The letter is written; it is delivered at deliverAt.
|
|
80143
|
+
*/
|
|
80144
|
+
200: {
|
|
80145
|
+
/**
|
|
80146
|
+
* The letter that was written: its id and the time it is delivered.
|
|
80147
|
+
*/
|
|
80148
|
+
letter: {
|
|
80149
|
+
/**
|
|
80150
|
+
* The letter's id.
|
|
80151
|
+
*/
|
|
80152
|
+
id: string;
|
|
80153
|
+
/**
|
|
80154
|
+
* When it is delivered: now, or the time asked for.
|
|
80155
|
+
*/
|
|
80156
|
+
deliverAt: string;
|
|
80157
|
+
};
|
|
80158
|
+
};
|
|
80159
|
+
};
|
|
80160
|
+
export type CreateOrganizationNotificationLetterResponse = CreateOrganizationNotificationLetterResponses[keyof CreateOrganizationNotificationLetterResponses];
|
|
79093
80161
|
export type GetOrganizationNotificationLetterData = {
|
|
79094
80162
|
body?: never;
|
|
79095
80163
|
path: {
|
|
@@ -79313,6 +80381,360 @@ export type ArchiveOrganizationNotificationLetterResponses = {
|
|
|
79313
80381
|
};
|
|
79314
80382
|
};
|
|
79315
80383
|
export type ArchiveOrganizationNotificationLetterResponse = ArchiveOrganizationNotificationLetterResponses[keyof ArchiveOrganizationNotificationLetterResponses];
|
|
80384
|
+
export type ListOrganizationNotificationMessagesData = {
|
|
80385
|
+
body?: never;
|
|
80386
|
+
path?: never;
|
|
80387
|
+
query?: {
|
|
80388
|
+
/**
|
|
80389
|
+
* 0 (the default) lists the inbox tab, 1 lists archived messages.
|
|
80390
|
+
*/
|
|
80391
|
+
archived?: '0' | '1';
|
|
80392
|
+
/**
|
|
80393
|
+
* Messages per page, 1 to 100; defaults to 20.
|
|
80394
|
+
*/
|
|
80395
|
+
limit?: number;
|
|
80396
|
+
/**
|
|
80397
|
+
* Opaque nextPageToken from the previous response; omit for the first page.
|
|
80398
|
+
*/
|
|
80399
|
+
page?: string;
|
|
80400
|
+
};
|
|
80401
|
+
url: '/organization/v1/notifications/messages';
|
|
80402
|
+
};
|
|
80403
|
+
export type ListOrganizationNotificationMessagesErrors = {
|
|
80404
|
+
/**
|
|
80405
|
+
* A bad `archived`, `limit` or `page`, or `INVALID_PARAMS` from the service for a cursor it did not issue (RFC 9457 problem).
|
|
80406
|
+
*/
|
|
80407
|
+
400: unknown;
|
|
80408
|
+
/**
|
|
80409
|
+
* Missing or invalid credential (RFC 9457 problem).
|
|
80410
|
+
*/
|
|
80411
|
+
401: unknown;
|
|
80412
|
+
/**
|
|
80413
|
+
* `PERMISSION_DENIED`: an agent credential has no person inbox; read its own letters instead (RFC 9457 problem).
|
|
80414
|
+
*/
|
|
80415
|
+
403: unknown;
|
|
80416
|
+
/**
|
|
80417
|
+
* 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.
|
|
80418
|
+
*/
|
|
80419
|
+
502: unknown;
|
|
80420
|
+
};
|
|
80421
|
+
export type ListOrganizationNotificationMessagesResponses = {
|
|
80422
|
+
/**
|
|
80423
|
+
* One page of this person's messages.
|
|
80424
|
+
*/
|
|
80425
|
+
200: {
|
|
80426
|
+
/**
|
|
80427
|
+
* The page, newest first.
|
|
80428
|
+
*/
|
|
80429
|
+
items: Array<{
|
|
80430
|
+
/**
|
|
80431
|
+
* The message's resource name, subscribers/{user}/messages/{id}; pass it URL-encoded as the {name} of the other message operations.
|
|
80432
|
+
*/
|
|
80433
|
+
name: string;
|
|
80434
|
+
/**
|
|
80435
|
+
* The organization the message belongs to; empty for a message that belongs to no organization.
|
|
80436
|
+
*/
|
|
80437
|
+
organizationId: string;
|
|
80438
|
+
/**
|
|
80439
|
+
* The notification group the message belongs to: members, usage, alerts, agent, or nonConfigurable.
|
|
80440
|
+
*/
|
|
80441
|
+
group: 'members' | 'usage' | 'alerts' | 'agent' | 'nonConfigurable';
|
|
80442
|
+
/**
|
|
80443
|
+
* The notification workflow that wrote it, as the preferences page names it.
|
|
80444
|
+
*/
|
|
80445
|
+
workflow: string;
|
|
80446
|
+
/**
|
|
80447
|
+
* The message's headline, as the bell shows it.
|
|
80448
|
+
*/
|
|
80449
|
+
title: string;
|
|
80450
|
+
/**
|
|
80451
|
+
* The message text.
|
|
80452
|
+
*/
|
|
80453
|
+
body: string;
|
|
80454
|
+
/**
|
|
80455
|
+
* Where the bell opens this message; absent when it has no page.
|
|
80456
|
+
*/
|
|
80457
|
+
actionUrl?: string;
|
|
80458
|
+
/**
|
|
80459
|
+
* Whether the bell has been opened since the message arrived.
|
|
80460
|
+
*/
|
|
80461
|
+
seen: boolean;
|
|
80462
|
+
/**
|
|
80463
|
+
* Whether this person has read it.
|
|
80464
|
+
*/
|
|
80465
|
+
read: boolean;
|
|
80466
|
+
/**
|
|
80467
|
+
* Whether this person archived it; archived messages are not in the inbox tab.
|
|
80468
|
+
*/
|
|
80469
|
+
archived: boolean;
|
|
80470
|
+
/**
|
|
80471
|
+
* When the message arrived.
|
|
80472
|
+
*/
|
|
80473
|
+
createTime: string;
|
|
80474
|
+
}>;
|
|
80475
|
+
/**
|
|
80476
|
+
* Pass unchanged as page for the next page; absent at the end.
|
|
80477
|
+
*/
|
|
80478
|
+
nextPageToken?: string;
|
|
80479
|
+
};
|
|
80480
|
+
};
|
|
80481
|
+
export type ListOrganizationNotificationMessagesResponse = ListOrganizationNotificationMessagesResponses[keyof ListOrganizationNotificationMessagesResponses];
|
|
80482
|
+
export type DeleteOrganizationNotificationMessageData = {
|
|
80483
|
+
body?: never;
|
|
80484
|
+
path: {
|
|
80485
|
+
/**
|
|
80486
|
+
* The message's `name` from the messages list, subscribers/{user}/messages/{id}, URL-encoded.
|
|
80487
|
+
*/
|
|
80488
|
+
name: string;
|
|
80489
|
+
};
|
|
80490
|
+
query?: never;
|
|
80491
|
+
url: '/organization/v1/notifications/messages/{name}';
|
|
80492
|
+
};
|
|
80493
|
+
export type DeleteOrganizationNotificationMessageErrors = {
|
|
80494
|
+
/**
|
|
80495
|
+
* `name` is not subscribers/{user}/messages/{id} — `INVALID_PARAMS` (RFC 9457 problem).
|
|
80496
|
+
*/
|
|
80497
|
+
400: unknown;
|
|
80498
|
+
/**
|
|
80499
|
+
* Missing or invalid credential (RFC 9457 problem).
|
|
80500
|
+
*/
|
|
80501
|
+
401: unknown;
|
|
80502
|
+
/**
|
|
80503
|
+
* `PERMISSION_DENIED`: an agent credential has no person inbox; read its own letters instead (RFC 9457 problem).
|
|
80504
|
+
*/
|
|
80505
|
+
403: unknown;
|
|
80506
|
+
/**
|
|
80507
|
+
* No such message of yours in this organization — `MESSAGE_NOT_FOUND` (RFC 9457 problem).
|
|
80508
|
+
*/
|
|
80509
|
+
404: unknown;
|
|
80510
|
+
/**
|
|
80511
|
+
* 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.
|
|
80512
|
+
*/
|
|
80513
|
+
502: unknown;
|
|
80514
|
+
};
|
|
80515
|
+
export type DeleteOrganizationNotificationMessageResponses = {
|
|
80516
|
+
/**
|
|
80517
|
+
* The message is deleted.
|
|
80518
|
+
*/
|
|
80519
|
+
200: {
|
|
80520
|
+
/**
|
|
80521
|
+
* Always true: the message was deleted.
|
|
80522
|
+
*/
|
|
80523
|
+
deleted: boolean;
|
|
80524
|
+
};
|
|
80525
|
+
};
|
|
80526
|
+
export type DeleteOrganizationNotificationMessageResponse = DeleteOrganizationNotificationMessageResponses[keyof DeleteOrganizationNotificationMessageResponses];
|
|
80527
|
+
export type GetOrganizationNotificationMessageData = {
|
|
80528
|
+
body?: never;
|
|
80529
|
+
path: {
|
|
80530
|
+
/**
|
|
80531
|
+
* The message's `name` from the messages list, subscribers/{user}/messages/{id}, URL-encoded.
|
|
80532
|
+
*/
|
|
80533
|
+
name: string;
|
|
80534
|
+
};
|
|
80535
|
+
query?: never;
|
|
80536
|
+
url: '/organization/v1/notifications/messages/{name}';
|
|
80537
|
+
};
|
|
80538
|
+
export type GetOrganizationNotificationMessageErrors = {
|
|
80539
|
+
/**
|
|
80540
|
+
* `name` is not subscribers/{user}/messages/{id} — `INVALID_PARAMS` (RFC 9457 problem).
|
|
80541
|
+
*/
|
|
80542
|
+
400: unknown;
|
|
80543
|
+
/**
|
|
80544
|
+
* Missing or invalid credential (RFC 9457 problem).
|
|
80545
|
+
*/
|
|
80546
|
+
401: unknown;
|
|
80547
|
+
/**
|
|
80548
|
+
* `PERMISSION_DENIED`: an agent credential has no person inbox; read its own letters instead (RFC 9457 problem).
|
|
80549
|
+
*/
|
|
80550
|
+
403: unknown;
|
|
80551
|
+
/**
|
|
80552
|
+
* No such message of yours in this organization — `MESSAGE_NOT_FOUND`, the same answer for another person's message and one that never existed (RFC 9457 problem).
|
|
80553
|
+
*/
|
|
80554
|
+
404: unknown;
|
|
80555
|
+
/**
|
|
80556
|
+
* 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.
|
|
80557
|
+
*/
|
|
80558
|
+
502: unknown;
|
|
80559
|
+
};
|
|
80560
|
+
export type GetOrganizationNotificationMessageResponses = {
|
|
80561
|
+
/**
|
|
80562
|
+
* The message.
|
|
80563
|
+
*/
|
|
80564
|
+
200: {
|
|
80565
|
+
/**
|
|
80566
|
+
* The message's resource name, subscribers/{user}/messages/{id}; pass it URL-encoded as the {name} of the other message operations.
|
|
80567
|
+
*/
|
|
80568
|
+
name: string;
|
|
80569
|
+
/**
|
|
80570
|
+
* The organization the message belongs to; empty for a message that belongs to no organization.
|
|
80571
|
+
*/
|
|
80572
|
+
organizationId: string;
|
|
80573
|
+
/**
|
|
80574
|
+
* The notification group the message belongs to: members, usage, alerts, agent, or nonConfigurable.
|
|
80575
|
+
*/
|
|
80576
|
+
group: 'members' | 'usage' | 'alerts' | 'agent' | 'nonConfigurable';
|
|
80577
|
+
/**
|
|
80578
|
+
* The notification workflow that wrote it, as the preferences page names it.
|
|
80579
|
+
*/
|
|
80580
|
+
workflow: string;
|
|
80581
|
+
/**
|
|
80582
|
+
* The message's headline, as the bell shows it.
|
|
80583
|
+
*/
|
|
80584
|
+
title: string;
|
|
80585
|
+
/**
|
|
80586
|
+
* The message text.
|
|
80587
|
+
*/
|
|
80588
|
+
body: string;
|
|
80589
|
+
/**
|
|
80590
|
+
* Where the bell opens this message; absent when it has no page.
|
|
80591
|
+
*/
|
|
80592
|
+
actionUrl?: string;
|
|
80593
|
+
/**
|
|
80594
|
+
* Whether the bell has been opened since the message arrived.
|
|
80595
|
+
*/
|
|
80596
|
+
seen: boolean;
|
|
80597
|
+
/**
|
|
80598
|
+
* Whether this person has read it.
|
|
80599
|
+
*/
|
|
80600
|
+
read: boolean;
|
|
80601
|
+
/**
|
|
80602
|
+
* Whether this person archived it; archived messages are not in the inbox tab.
|
|
80603
|
+
*/
|
|
80604
|
+
archived: boolean;
|
|
80605
|
+
/**
|
|
80606
|
+
* When the message arrived.
|
|
80607
|
+
*/
|
|
80608
|
+
createTime: string;
|
|
80609
|
+
};
|
|
80610
|
+
};
|
|
80611
|
+
export type GetOrganizationNotificationMessageResponse = GetOrganizationNotificationMessageResponses[keyof GetOrganizationNotificationMessageResponses];
|
|
80612
|
+
export type UpdateOrganizationNotificationMessageData = {
|
|
80613
|
+
body: {
|
|
80614
|
+
/**
|
|
80615
|
+
* Mark the message read (true) or unread (false); omit to leave it.
|
|
80616
|
+
*/
|
|
80617
|
+
read?: boolean;
|
|
80618
|
+
/**
|
|
80619
|
+
* Archive the message (true) or move it back to the inbox (false); omit to leave it.
|
|
80620
|
+
*/
|
|
80621
|
+
archived?: boolean;
|
|
80622
|
+
};
|
|
80623
|
+
path: {
|
|
80624
|
+
/**
|
|
80625
|
+
* The message's `name` from the messages list, subscribers/{user}/messages/{id}, URL-encoded.
|
|
80626
|
+
*/
|
|
80627
|
+
name: string;
|
|
80628
|
+
};
|
|
80629
|
+
query?: never;
|
|
80630
|
+
url: '/organization/v1/notifications/messages/{name}';
|
|
80631
|
+
};
|
|
80632
|
+
export type UpdateOrganizationNotificationMessageErrors = {
|
|
80633
|
+
/**
|
|
80634
|
+
* The body is not a JSON object, names neither `read` nor `archived`, a flag is not true or false, or `name` is malformed (RFC 9457 problem).
|
|
80635
|
+
*/
|
|
80636
|
+
400: unknown;
|
|
80637
|
+
/**
|
|
80638
|
+
* Missing or invalid credential (RFC 9457 problem).
|
|
80639
|
+
*/
|
|
80640
|
+
401: unknown;
|
|
80641
|
+
/**
|
|
80642
|
+
* `PERMISSION_DENIED`: an agent credential has no person inbox; read its own letters instead (RFC 9457 problem).
|
|
80643
|
+
*/
|
|
80644
|
+
403: unknown;
|
|
80645
|
+
/**
|
|
80646
|
+
* No such message of yours in this organization — `MESSAGE_NOT_FOUND` (RFC 9457 problem).
|
|
80647
|
+
*/
|
|
80648
|
+
404: unknown;
|
|
80649
|
+
/**
|
|
80650
|
+
* 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.
|
|
80651
|
+
*/
|
|
80652
|
+
502: unknown;
|
|
80653
|
+
};
|
|
80654
|
+
export type UpdateOrganizationNotificationMessageResponses = {
|
|
80655
|
+
/**
|
|
80656
|
+
* The message after the change.
|
|
80657
|
+
*/
|
|
80658
|
+
200: {
|
|
80659
|
+
/**
|
|
80660
|
+
* The message's resource name, subscribers/{user}/messages/{id}; pass it URL-encoded as the {name} of the other message operations.
|
|
80661
|
+
*/
|
|
80662
|
+
name: string;
|
|
80663
|
+
/**
|
|
80664
|
+
* The organization the message belongs to; empty for a message that belongs to no organization.
|
|
80665
|
+
*/
|
|
80666
|
+
organizationId: string;
|
|
80667
|
+
/**
|
|
80668
|
+
* The notification group the message belongs to: members, usage, alerts, agent, or nonConfigurable.
|
|
80669
|
+
*/
|
|
80670
|
+
group: 'members' | 'usage' | 'alerts' | 'agent' | 'nonConfigurable';
|
|
80671
|
+
/**
|
|
80672
|
+
* The notification workflow that wrote it, as the preferences page names it.
|
|
80673
|
+
*/
|
|
80674
|
+
workflow: string;
|
|
80675
|
+
/**
|
|
80676
|
+
* The message's headline, as the bell shows it.
|
|
80677
|
+
*/
|
|
80678
|
+
title: string;
|
|
80679
|
+
/**
|
|
80680
|
+
* The message text.
|
|
80681
|
+
*/
|
|
80682
|
+
body: string;
|
|
80683
|
+
/**
|
|
80684
|
+
* Where the bell opens this message; absent when it has no page.
|
|
80685
|
+
*/
|
|
80686
|
+
actionUrl?: string;
|
|
80687
|
+
/**
|
|
80688
|
+
* Whether the bell has been opened since the message arrived.
|
|
80689
|
+
*/
|
|
80690
|
+
seen: boolean;
|
|
80691
|
+
/**
|
|
80692
|
+
* Whether this person has read it.
|
|
80693
|
+
*/
|
|
80694
|
+
read: boolean;
|
|
80695
|
+
/**
|
|
80696
|
+
* Whether this person archived it; archived messages are not in the inbox tab.
|
|
80697
|
+
*/
|
|
80698
|
+
archived: boolean;
|
|
80699
|
+
/**
|
|
80700
|
+
* When the message arrived.
|
|
80701
|
+
*/
|
|
80702
|
+
createTime: string;
|
|
80703
|
+
};
|
|
80704
|
+
};
|
|
80705
|
+
export type UpdateOrganizationNotificationMessageResponse = UpdateOrganizationNotificationMessageResponses[keyof UpdateOrganizationNotificationMessageResponses];
|
|
80706
|
+
export type ReadAllOrganizationNotificationMessagesData = {
|
|
80707
|
+
body?: never;
|
|
80708
|
+
path?: never;
|
|
80709
|
+
query?: never;
|
|
80710
|
+
url: '/organization/v1/notifications/messages:readAll';
|
|
80711
|
+
};
|
|
80712
|
+
export type ReadAllOrganizationNotificationMessagesErrors = {
|
|
80713
|
+
/**
|
|
80714
|
+
* Missing or invalid credential (RFC 9457 problem).
|
|
80715
|
+
*/
|
|
80716
|
+
401: unknown;
|
|
80717
|
+
/**
|
|
80718
|
+
* `PERMISSION_DENIED`: an agent credential has no person inbox; read its own letters instead (RFC 9457 problem).
|
|
80719
|
+
*/
|
|
80720
|
+
403: unknown;
|
|
80721
|
+
/**
|
|
80722
|
+
* 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.
|
|
80723
|
+
*/
|
|
80724
|
+
502: unknown;
|
|
80725
|
+
};
|
|
80726
|
+
export type ReadAllOrganizationNotificationMessagesResponses = {
|
|
80727
|
+
/**
|
|
80728
|
+
* How many messages were marked read.
|
|
80729
|
+
*/
|
|
80730
|
+
200: {
|
|
80731
|
+
/**
|
|
80732
|
+
* The number of messages that were unread and are now read.
|
|
80733
|
+
*/
|
|
80734
|
+
updated: number;
|
|
80735
|
+
};
|
|
80736
|
+
};
|
|
80737
|
+
export type ReadAllOrganizationNotificationMessagesResponse = ReadAllOrganizationNotificationMessagesResponses[keyof ReadAllOrganizationNotificationMessagesResponses];
|
|
79316
80738
|
export type GetOrganizationNotificationPreferencesData = {
|
|
79317
80739
|
body?: never;
|
|
79318
80740
|
path?: never;
|
|
@@ -80780,7 +82202,7 @@ export type ListByodDevicesResponses = {
|
|
|
80780
82202
|
*/
|
|
80781
82203
|
id: string;
|
|
80782
82204
|
/**
|
|
80783
|
-
* The device's platform, which decides the use faces it answers. A desktop (macos, linux) pairs
|
|
82205
|
+
* The device's platform, which decides the use faces it answers. A desktop (macos, linux) pairs like a phone; windows is not supported yet.
|
|
80784
82206
|
*/
|
|
80785
82207
|
platform: 'android' | 'macos' | 'linux';
|
|
80786
82208
|
/**
|
|
@@ -80828,6 +82250,10 @@ export type ListByodDevicesResponses = {
|
|
|
80828
82250
|
*/
|
|
80829
82251
|
agent: string;
|
|
80830
82252
|
}>;
|
|
82253
|
+
/**
|
|
82254
|
+
* 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.
|
|
82255
|
+
*/
|
|
82256
|
+
envd_version: string | null;
|
|
80831
82257
|
/**
|
|
80832
82258
|
* 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.
|
|
80833
82259
|
*/
|
|
@@ -80875,7 +82301,7 @@ export type GetByodDeviceResponses = {
|
|
|
80875
82301
|
*/
|
|
80876
82302
|
id: string;
|
|
80877
82303
|
/**
|
|
80878
|
-
* The device's platform, which decides the use faces it answers. A desktop (macos, linux) pairs
|
|
82304
|
+
* The device's platform, which decides the use faces it answers. A desktop (macos, linux) pairs like a phone; windows is not supported yet.
|
|
80879
82305
|
*/
|
|
80880
82306
|
platform: 'android' | 'macos' | 'linux';
|
|
80881
82307
|
/**
|
|
@@ -80923,6 +82349,10 @@ export type GetByodDeviceResponses = {
|
|
|
80923
82349
|
*/
|
|
80924
82350
|
agent: string;
|
|
80925
82351
|
}>;
|
|
82352
|
+
/**
|
|
82353
|
+
* 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.
|
|
82354
|
+
*/
|
|
82355
|
+
envd_version: string | null;
|
|
80926
82356
|
/**
|
|
80927
82357
|
* 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.
|
|
80928
82358
|
*/
|
|
@@ -80981,7 +82411,7 @@ export type UpdateByodDeviceResponses = {
|
|
|
80981
82411
|
*/
|
|
80982
82412
|
id: string;
|
|
80983
82413
|
/**
|
|
80984
|
-
* The device's platform, which decides the use faces it answers. A desktop (macos, linux) pairs
|
|
82414
|
+
* The device's platform, which decides the use faces it answers. A desktop (macos, linux) pairs like a phone; windows is not supported yet.
|
|
80985
82415
|
*/
|
|
80986
82416
|
platform: 'android' | 'macos' | 'linux';
|
|
80987
82417
|
/**
|
|
@@ -81029,6 +82459,10 @@ export type UpdateByodDeviceResponses = {
|
|
|
81029
82459
|
*/
|
|
81030
82460
|
agent: string;
|
|
81031
82461
|
}>;
|
|
82462
|
+
/**
|
|
82463
|
+
* 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.
|
|
82464
|
+
*/
|
|
82465
|
+
envd_version: string | null;
|
|
81032
82466
|
/**
|
|
81033
82467
|
* 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.
|
|
81034
82468
|
*/
|
|
@@ -81120,7 +82554,7 @@ export type ClaimByodPairingData = {
|
|
|
81120
82554
|
*/
|
|
81121
82555
|
body: {
|
|
81122
82556
|
/**
|
|
81123
|
-
* The device's platform. macos and linux are accepted
|
|
82557
|
+
* The device's platform. macos and linux are accepted for every organization; any other value than android, macos or linux answers INVALID_PARAMS.
|
|
81124
82558
|
*/
|
|
81125
82559
|
platform: 'android' | 'macos' | 'linux';
|
|
81126
82560
|
/**
|
|
@@ -81151,7 +82585,7 @@ export type ClaimByodPairingData = {
|
|
|
81151
82585
|
};
|
|
81152
82586
|
export type ClaimByodPairingErrors = {
|
|
81153
82587
|
/**
|
|
81154
|
-
* INVALID_PARAMS: the body is missing, platform is not android, macos or linux
|
|
82588
|
+
* 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.
|
|
81155
82589
|
*/
|
|
81156
82590
|
400: unknown;
|
|
81157
82591
|
/**
|
|
@@ -83774,8 +85208,7 @@ export type SessionsUpdateData = {
|
|
|
83774
85208
|
*/
|
|
83775
85209
|
title?: null | string;
|
|
83776
85210
|
/**
|
|
83777
|
-
*
|
|
83778
|
-
* requests setting this field are rejected. Reserved for future use.
|
|
85211
|
+
* 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.
|
|
83779
85212
|
*/
|
|
83780
85213
|
vault_ids?: Array<string>;
|
|
83781
85214
|
/**
|
|
@@ -84716,7 +86149,7 @@ export type AgentsListResponses = {
|
|
|
84716
86149
|
*/
|
|
84717
86150
|
environment_id?: string | null;
|
|
84718
86151
|
/**
|
|
84719
|
-
* Default vaults of this service or assume agent version: the vault_ids new
|
|
86152
|
+
* 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.
|
|
84720
86153
|
*/
|
|
84721
86154
|
vault_ids?: Array<string>;
|
|
84722
86155
|
/**
|
|
@@ -85255,7 +86688,7 @@ export type AgentsCreateData = {
|
|
|
85255
86688
|
*/
|
|
85256
86689
|
environment_id?: string | null;
|
|
85257
86690
|
/**
|
|
85258
|
-
* Default vaults of
|
|
86691
|
+
* 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.
|
|
85259
86692
|
*/
|
|
85260
86693
|
vault_ids?: Array<string>;
|
|
85261
86694
|
/**
|
|
@@ -85938,7 +87371,7 @@ export type AgentsCreateResponses = {
|
|
|
85938
87371
|
*/
|
|
85939
87372
|
environment_id?: string | null;
|
|
85940
87373
|
/**
|
|
85941
|
-
* Default vaults of this service or assume agent version: the vault_ids new
|
|
87374
|
+
* 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.
|
|
85942
87375
|
*/
|
|
85943
87376
|
vault_ids?: Array<string>;
|
|
85944
87377
|
/**
|
|
@@ -86609,7 +88042,7 @@ export type AgentsRetrieveResponses = {
|
|
|
86609
88042
|
*/
|
|
86610
88043
|
environment_id?: string | null;
|
|
86611
88044
|
/**
|
|
86612
|
-
* Default vaults of this service or assume agent version: the vault_ids new
|
|
88045
|
+
* 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.
|
|
86613
88046
|
*/
|
|
86614
88047
|
vault_ids?: Array<string>;
|
|
86615
88048
|
/**
|
|
@@ -87157,7 +88590,7 @@ export type AgentsUpdateData = {
|
|
|
87157
88590
|
*/
|
|
87158
88591
|
environment_id?: string | null;
|
|
87159
88592
|
/**
|
|
87160
|
-
* Default vaults of
|
|
88593
|
+
* 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.
|
|
87161
88594
|
*/
|
|
87162
88595
|
vault_ids?: Array<string>;
|
|
87163
88596
|
/**
|
|
@@ -87853,7 +89286,7 @@ export type AgentsUpdateResponses = {
|
|
|
87853
89286
|
*/
|
|
87854
89287
|
environment_id?: string | null;
|
|
87855
89288
|
/**
|
|
87856
|
-
* Default vaults of this service or assume agent version: the vault_ids new
|
|
89289
|
+
* 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.
|
|
87857
89290
|
*/
|
|
87858
89291
|
vault_ids?: Array<string>;
|
|
87859
89292
|
/**
|
|
@@ -88479,7 +89912,7 @@ export type AgentsArchiveResponses = {
|
|
|
88479
89912
|
*/
|
|
88480
89913
|
environment_id?: string | null;
|
|
88481
89914
|
/**
|
|
88482
|
-
* Default vaults of this service or assume agent version: the vault_ids new
|
|
89915
|
+
* 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.
|
|
88483
89916
|
*/
|
|
88484
89917
|
vault_ids?: Array<string>;
|
|
88485
89918
|
/**
|
|
@@ -89150,7 +90583,7 @@ export type AgentsVersionsListResponses = {
|
|
|
89150
90583
|
*/
|
|
89151
90584
|
environment_id?: string | null;
|
|
89152
90585
|
/**
|
|
89153
|
-
* Default vaults of this service or assume agent version: the vault_ids new
|
|
90586
|
+
* 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.
|
|
89154
90587
|
*/
|
|
89155
90588
|
vault_ids?: Array<string>;
|
|
89156
90589
|
/**
|
|
@@ -99010,7 +100443,7 @@ export type AutomationRunsListData = {
|
|
|
99010
100443
|
*/
|
|
99011
100444
|
channel?: Array<'console' | 'api' | 'internal' | 'run' | 'trigger'>;
|
|
99012
100445
|
/**
|
|
99013
|
-
* Root initiator type: user, api_key, agent or
|
|
100446
|
+
* Root initiator type: user, api_key, agent, trigger or application, inherited by child runs. run returns INPUT_INVALID; filter origin with channel=run or parent_run_id. Separate multiple values with commas to match any value.
|
|
99014
100447
|
*/
|
|
99015
100448
|
initiator_type?: Array<'user' | 'api_key' | 'agent' | 'trigger'>;
|
|
99016
100449
|
/**
|
|
@@ -113558,7 +114991,7 @@ export type DevopsUnitsPushErrors = {
|
|
|
113558
114991
|
*/
|
|
113559
114992
|
404: DevopsDevOpsError;
|
|
113560
114993
|
/**
|
|
113561
|
-
* 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
|
|
114994
|
+
* 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.
|
|
113562
114995
|
*/
|
|
113563
114996
|
409: DevopsDevOpsError;
|
|
113564
114997
|
/**
|
|
@@ -119314,6 +120747,511 @@ export type MediaDesignVoiceResponses = {
|
|
|
119314
120747
|
202: MediaJob;
|
|
119315
120748
|
};
|
|
119316
120749
|
export type MediaDesignVoiceResponse = MediaDesignVoiceResponses[keyof MediaDesignVoiceResponses];
|
|
120750
|
+
export type MediaListWorksData = {
|
|
120751
|
+
body?: never;
|
|
120752
|
+
path: {
|
|
120753
|
+
/**
|
|
120754
|
+
* Library ID returned by creation.
|
|
120755
|
+
*/
|
|
120756
|
+
library_id: string;
|
|
120757
|
+
};
|
|
120758
|
+
query?: {
|
|
120759
|
+
/**
|
|
120760
|
+
* Only works of this kind: gallery, article, product_listing or blocks.
|
|
120761
|
+
*/
|
|
120762
|
+
kind?: 'gallery' | 'article' | 'product_listing' | 'blocks';
|
|
120763
|
+
/**
|
|
120764
|
+
* Only works of this series.
|
|
120765
|
+
*/
|
|
120766
|
+
series?: string;
|
|
120767
|
+
/**
|
|
120768
|
+
* Only works whose title contains this text, at most 100 characters.
|
|
120769
|
+
*/
|
|
120770
|
+
q?: string;
|
|
120771
|
+
/**
|
|
120772
|
+
* Maximum entries in this page, from 1 through 100; defaults to 100.
|
|
120773
|
+
*/
|
|
120774
|
+
limit?: number;
|
|
120775
|
+
/**
|
|
120776
|
+
* Cursor from the previous next_cursor.
|
|
120777
|
+
*/
|
|
120778
|
+
cursor?: string;
|
|
120779
|
+
};
|
|
120780
|
+
url: '/media/v1/libraries/{library_id}/works';
|
|
120781
|
+
};
|
|
120782
|
+
export type MediaListWorksErrors = {
|
|
120783
|
+
/**
|
|
120784
|
+
* A selector, cursor, limit or other parameter is invalid; correct the reported field before retrying.
|
|
120785
|
+
*/
|
|
120786
|
+
400: MediaMediaError;
|
|
120787
|
+
/**
|
|
120788
|
+
* Request failed; see the error code reference.
|
|
120789
|
+
*/
|
|
120790
|
+
402: MediaMediaError;
|
|
120791
|
+
/**
|
|
120792
|
+
* This credential has read-only access to the library; use a write-capable binding for mutations.
|
|
120793
|
+
*/
|
|
120794
|
+
403: MediaMediaError;
|
|
120795
|
+
/**
|
|
120796
|
+
* The library or asset is missing, deleted or belongs to another tenant; verify its identifier and owner.
|
|
120797
|
+
*/
|
|
120798
|
+
404: MediaMediaError;
|
|
120799
|
+
/**
|
|
120800
|
+
* Request failed; see the error code reference.
|
|
120801
|
+
*/
|
|
120802
|
+
409: MediaMediaError;
|
|
120803
|
+
/**
|
|
120804
|
+
* The file exceeds an input limit; provide a smaller source file.
|
|
120805
|
+
*/
|
|
120806
|
+
413: MediaMediaError;
|
|
120807
|
+
/**
|
|
120808
|
+
* This media format is unsupported; provide a supported format.
|
|
120809
|
+
*/
|
|
120810
|
+
415: MediaMediaError;
|
|
120811
|
+
/**
|
|
120812
|
+
* Request failed; see the error code reference.
|
|
120813
|
+
*/
|
|
120814
|
+
422: MediaMediaError;
|
|
120815
|
+
/**
|
|
120816
|
+
* A rate limit was reached; wait before retrying.
|
|
120817
|
+
*/
|
|
120818
|
+
429: MediaMediaError;
|
|
120819
|
+
/**
|
|
120820
|
+
* The requested operation is unsupported; choose a supported method.
|
|
120821
|
+
*/
|
|
120822
|
+
501: MediaMediaError;
|
|
120823
|
+
/**
|
|
120824
|
+
* Request failed; see the error code reference.
|
|
120825
|
+
*/
|
|
120826
|
+
502: MediaMediaError;
|
|
120827
|
+
/**
|
|
120828
|
+
* Historical projections are still being initialized, or library storage is temporarily unavailable; retry shortly and check failureSummary counts_complete.
|
|
120829
|
+
*/
|
|
120830
|
+
503: MediaMediaError;
|
|
120831
|
+
};
|
|
120832
|
+
export type MediaListWorksError = MediaListWorksErrors[keyof MediaListWorksErrors];
|
|
120833
|
+
export type MediaListWorksResponses = {
|
|
120834
|
+
/**
|
|
120835
|
+
* Successful response.
|
|
120836
|
+
*/
|
|
120837
|
+
200: MediaWorkPage;
|
|
120838
|
+
};
|
|
120839
|
+
export type MediaListWorksResponse = MediaListWorksResponses[keyof MediaListWorksResponses];
|
|
120840
|
+
export type MediaCreateWorkData = {
|
|
120841
|
+
/**
|
|
120842
|
+
* A new work: its kind and its whole body, with an optional series and custom fields.
|
|
120843
|
+
*/
|
|
120844
|
+
body: {
|
|
120845
|
+
/**
|
|
120846
|
+
* The work’s kind; it decides which body fields are accepted.
|
|
120847
|
+
*/
|
|
120848
|
+
kind: MediaWorkKind;
|
|
120849
|
+
/**
|
|
120850
|
+
* The kind’s body. Every asset it names must be a live asset of this library of the fitting type, or the request is refused with ASSET_NOT_FOUND or REFERENCE_TYPE_MISMATCH naming every bad reference, and nothing is saved.
|
|
120851
|
+
*/
|
|
120852
|
+
body: MediaWorkBody;
|
|
120853
|
+
/**
|
|
120854
|
+
* Groups the platform versions of one story: 1 to 64 characters of a-z, 0-9, _ and -.
|
|
120855
|
+
*/
|
|
120856
|
+
series?: string;
|
|
120857
|
+
/**
|
|
120858
|
+
* Caller data such as source, published links and numbers; at most 50 keys and 16 KB as JSON.
|
|
120859
|
+
*/
|
|
120860
|
+
custom?: MediaWorkCustom;
|
|
120861
|
+
};
|
|
120862
|
+
path: {
|
|
120863
|
+
/**
|
|
120864
|
+
* Library ID returned by creation.
|
|
120865
|
+
*/
|
|
120866
|
+
library_id: string;
|
|
120867
|
+
};
|
|
120868
|
+
query?: never;
|
|
120869
|
+
url: '/media/v1/libraries/{library_id}/works';
|
|
120870
|
+
};
|
|
120871
|
+
export type MediaCreateWorkErrors = {
|
|
120872
|
+
/**
|
|
120873
|
+
* A selector, cursor, limit or other parameter is invalid; correct the reported field before retrying.
|
|
120874
|
+
*/
|
|
120875
|
+
400: MediaMediaError;
|
|
120876
|
+
/**
|
|
120877
|
+
* Request failed; see the error code reference.
|
|
120878
|
+
*/
|
|
120879
|
+
402: MediaMediaError;
|
|
120880
|
+
/**
|
|
120881
|
+
* This credential has read-only access to the library; use a write-capable binding for mutations.
|
|
120882
|
+
*/
|
|
120883
|
+
403: MediaMediaError;
|
|
120884
|
+
/**
|
|
120885
|
+
* The library or asset is missing, deleted or belongs to another tenant; verify its identifier and owner.
|
|
120886
|
+
*/
|
|
120887
|
+
404: MediaMediaError;
|
|
120888
|
+
/**
|
|
120889
|
+
* Request failed; see the error code reference.
|
|
120890
|
+
*/
|
|
120891
|
+
409: MediaMediaError;
|
|
120892
|
+
/**
|
|
120893
|
+
* The file exceeds an input limit; provide a smaller source file.
|
|
120894
|
+
*/
|
|
120895
|
+
413: MediaMediaError;
|
|
120896
|
+
/**
|
|
120897
|
+
* This media format is unsupported; provide a supported format.
|
|
120898
|
+
*/
|
|
120899
|
+
415: MediaMediaError;
|
|
120900
|
+
/**
|
|
120901
|
+
* Request failed; see the error code reference.
|
|
120902
|
+
*/
|
|
120903
|
+
422: MediaMediaError;
|
|
120904
|
+
/**
|
|
120905
|
+
* A rate limit was reached; wait before retrying.
|
|
120906
|
+
*/
|
|
120907
|
+
429: MediaMediaError;
|
|
120908
|
+
/**
|
|
120909
|
+
* The requested operation is unsupported; choose a supported method.
|
|
120910
|
+
*/
|
|
120911
|
+
501: MediaMediaError;
|
|
120912
|
+
/**
|
|
120913
|
+
* Request failed; see the error code reference.
|
|
120914
|
+
*/
|
|
120915
|
+
502: MediaMediaError;
|
|
120916
|
+
/**
|
|
120917
|
+
* Historical projections are still being initialized, or library storage is temporarily unavailable; retry shortly and check failureSummary counts_complete.
|
|
120918
|
+
*/
|
|
120919
|
+
503: MediaMediaError;
|
|
120920
|
+
};
|
|
120921
|
+
export type MediaCreateWorkError = MediaCreateWorkErrors[keyof MediaCreateWorkErrors];
|
|
120922
|
+
export type MediaCreateWorkResponses = {
|
|
120923
|
+
/**
|
|
120924
|
+
* Successful response.
|
|
120925
|
+
*/
|
|
120926
|
+
200: MediaWork;
|
|
120927
|
+
};
|
|
120928
|
+
export type MediaCreateWorkResponse = MediaCreateWorkResponses[keyof MediaCreateWorkResponses];
|
|
120929
|
+
export type MediaDeleteWorkData = {
|
|
120930
|
+
body?: never;
|
|
120931
|
+
path: {
|
|
120932
|
+
/**
|
|
120933
|
+
* Library ID returned by creation.
|
|
120934
|
+
*/
|
|
120935
|
+
library_id: string;
|
|
120936
|
+
/**
|
|
120937
|
+
* Work id (wrk_…) returned by creation or listing.
|
|
120938
|
+
*/
|
|
120939
|
+
work_id: string;
|
|
120940
|
+
};
|
|
120941
|
+
query?: never;
|
|
120942
|
+
url: '/media/v1/libraries/{library_id}/works/{work_id}';
|
|
120943
|
+
};
|
|
120944
|
+
export type MediaDeleteWorkErrors = {
|
|
120945
|
+
/**
|
|
120946
|
+
* A selector, cursor, limit or other parameter is invalid; correct the reported field before retrying.
|
|
120947
|
+
*/
|
|
120948
|
+
400: MediaMediaError;
|
|
120949
|
+
/**
|
|
120950
|
+
* Request failed; see the error code reference.
|
|
120951
|
+
*/
|
|
120952
|
+
402: MediaMediaError;
|
|
120953
|
+
/**
|
|
120954
|
+
* This credential has read-only access to the library; use a write-capable binding for mutations.
|
|
120955
|
+
*/
|
|
120956
|
+
403: MediaMediaError;
|
|
120957
|
+
/**
|
|
120958
|
+
* The library or asset is missing, deleted or belongs to another tenant; verify its identifier and owner.
|
|
120959
|
+
*/
|
|
120960
|
+
404: MediaMediaError;
|
|
120961
|
+
/**
|
|
120962
|
+
* Request failed; see the error code reference.
|
|
120963
|
+
*/
|
|
120964
|
+
409: MediaMediaError;
|
|
120965
|
+
/**
|
|
120966
|
+
* The file exceeds an input limit; provide a smaller source file.
|
|
120967
|
+
*/
|
|
120968
|
+
413: MediaMediaError;
|
|
120969
|
+
/**
|
|
120970
|
+
* This media format is unsupported; provide a supported format.
|
|
120971
|
+
*/
|
|
120972
|
+
415: MediaMediaError;
|
|
120973
|
+
/**
|
|
120974
|
+
* Request failed; see the error code reference.
|
|
120975
|
+
*/
|
|
120976
|
+
422: MediaMediaError;
|
|
120977
|
+
/**
|
|
120978
|
+
* A rate limit was reached; wait before retrying.
|
|
120979
|
+
*/
|
|
120980
|
+
429: MediaMediaError;
|
|
120981
|
+
/**
|
|
120982
|
+
* The requested operation is unsupported; choose a supported method.
|
|
120983
|
+
*/
|
|
120984
|
+
501: MediaMediaError;
|
|
120985
|
+
/**
|
|
120986
|
+
* Request failed; see the error code reference.
|
|
120987
|
+
*/
|
|
120988
|
+
502: MediaMediaError;
|
|
120989
|
+
/**
|
|
120990
|
+
* Historical projections are still being initialized, or library storage is temporarily unavailable; retry shortly and check failureSummary counts_complete.
|
|
120991
|
+
*/
|
|
120992
|
+
503: MediaMediaError;
|
|
120993
|
+
};
|
|
120994
|
+
export type MediaDeleteWorkError = MediaDeleteWorkErrors[keyof MediaDeleteWorkErrors];
|
|
120995
|
+
export type MediaDeleteWorkResponses = {
|
|
120996
|
+
/**
|
|
120997
|
+
* Successful response.
|
|
120998
|
+
*/
|
|
120999
|
+
200: MediaDeletedWork;
|
|
121000
|
+
};
|
|
121001
|
+
export type MediaDeleteWorkResponse = MediaDeleteWorkResponses[keyof MediaDeleteWorkResponses];
|
|
121002
|
+
export type MediaGetWorkData = {
|
|
121003
|
+
body?: never;
|
|
121004
|
+
path: {
|
|
121005
|
+
/**
|
|
121006
|
+
* Library ID returned by creation.
|
|
121007
|
+
*/
|
|
121008
|
+
library_id: string;
|
|
121009
|
+
/**
|
|
121010
|
+
* Work id (wrk_…) returned by creation or listing.
|
|
121011
|
+
*/
|
|
121012
|
+
work_id: string;
|
|
121013
|
+
};
|
|
121014
|
+
query?: {
|
|
121015
|
+
/**
|
|
121016
|
+
* assets returns every referenced asset with its URLs and size.
|
|
121017
|
+
*/
|
|
121018
|
+
expand?: string;
|
|
121019
|
+
};
|
|
121020
|
+
url: '/media/v1/libraries/{library_id}/works/{work_id}';
|
|
121021
|
+
};
|
|
121022
|
+
export type MediaGetWorkErrors = {
|
|
121023
|
+
/**
|
|
121024
|
+
* A selector, cursor, limit or other parameter is invalid; correct the reported field before retrying.
|
|
121025
|
+
*/
|
|
121026
|
+
400: MediaMediaError;
|
|
121027
|
+
/**
|
|
121028
|
+
* Request failed; see the error code reference.
|
|
121029
|
+
*/
|
|
121030
|
+
402: MediaMediaError;
|
|
121031
|
+
/**
|
|
121032
|
+
* This credential has read-only access to the library; use a write-capable binding for mutations.
|
|
121033
|
+
*/
|
|
121034
|
+
403: MediaMediaError;
|
|
121035
|
+
/**
|
|
121036
|
+
* The library or asset is missing, deleted or belongs to another tenant; verify its identifier and owner.
|
|
121037
|
+
*/
|
|
121038
|
+
404: MediaMediaError;
|
|
121039
|
+
/**
|
|
121040
|
+
* Request failed; see the error code reference.
|
|
121041
|
+
*/
|
|
121042
|
+
409: MediaMediaError;
|
|
121043
|
+
/**
|
|
121044
|
+
* The file exceeds an input limit; provide a smaller source file.
|
|
121045
|
+
*/
|
|
121046
|
+
413: MediaMediaError;
|
|
121047
|
+
/**
|
|
121048
|
+
* This media format is unsupported; provide a supported format.
|
|
121049
|
+
*/
|
|
121050
|
+
415: MediaMediaError;
|
|
121051
|
+
/**
|
|
121052
|
+
* Request failed; see the error code reference.
|
|
121053
|
+
*/
|
|
121054
|
+
422: MediaMediaError;
|
|
121055
|
+
/**
|
|
121056
|
+
* A rate limit was reached; wait before retrying.
|
|
121057
|
+
*/
|
|
121058
|
+
429: MediaMediaError;
|
|
121059
|
+
/**
|
|
121060
|
+
* The requested operation is unsupported; choose a supported method.
|
|
121061
|
+
*/
|
|
121062
|
+
501: MediaMediaError;
|
|
121063
|
+
/**
|
|
121064
|
+
* Request failed; see the error code reference.
|
|
121065
|
+
*/
|
|
121066
|
+
502: MediaMediaError;
|
|
121067
|
+
/**
|
|
121068
|
+
* Historical projections are still being initialized, or library storage is temporarily unavailable; retry shortly and check failureSummary counts_complete.
|
|
121069
|
+
*/
|
|
121070
|
+
503: MediaMediaError;
|
|
121071
|
+
};
|
|
121072
|
+
export type MediaGetWorkError = MediaGetWorkErrors[keyof MediaGetWorkErrors];
|
|
121073
|
+
export type MediaGetWorkResponses = {
|
|
121074
|
+
/**
|
|
121075
|
+
* Successful response.
|
|
121076
|
+
*/
|
|
121077
|
+
200: MediaWork;
|
|
121078
|
+
};
|
|
121079
|
+
export type MediaGetWorkResponse = MediaGetWorkResponses[keyof MediaGetWorkResponses];
|
|
121080
|
+
export type MediaUpdateWorkData = {
|
|
121081
|
+
/**
|
|
121082
|
+
* Changes to a work. Send only what changes.
|
|
121083
|
+
*/
|
|
121084
|
+
body: {
|
|
121085
|
+
/**
|
|
121086
|
+
* A whole new body for the same kind; it replaces the old one and is checked like a new one.
|
|
121087
|
+
*/
|
|
121088
|
+
body?: MediaWorkBody;
|
|
121089
|
+
/**
|
|
121090
|
+
* A new series, or null to clear it.
|
|
121091
|
+
*/
|
|
121092
|
+
series?: string | null;
|
|
121093
|
+
/**
|
|
121094
|
+
* A JSON Merge Patch (RFC 7396): keys you send are set, keys set to null are removed, keys you leave out are kept.
|
|
121095
|
+
*/
|
|
121096
|
+
custom?: MediaWorkCustom;
|
|
121097
|
+
/**
|
|
121098
|
+
* Apply the change only if the work is still at this revision; otherwise the answer is 409 REVISION_CONFLICT with the current revision.
|
|
121099
|
+
*/
|
|
121100
|
+
if_revision?: number;
|
|
121101
|
+
};
|
|
121102
|
+
path: {
|
|
121103
|
+
/**
|
|
121104
|
+
* Library ID returned by creation.
|
|
121105
|
+
*/
|
|
121106
|
+
library_id: string;
|
|
121107
|
+
/**
|
|
121108
|
+
* Work id (wrk_…) returned by creation or listing.
|
|
121109
|
+
*/
|
|
121110
|
+
work_id: string;
|
|
121111
|
+
};
|
|
121112
|
+
query?: never;
|
|
121113
|
+
url: '/media/v1/libraries/{library_id}/works/{work_id}';
|
|
121114
|
+
};
|
|
121115
|
+
export type MediaUpdateWorkErrors = {
|
|
121116
|
+
/**
|
|
121117
|
+
* A selector, cursor, limit or other parameter is invalid; correct the reported field before retrying.
|
|
121118
|
+
*/
|
|
121119
|
+
400: MediaMediaError;
|
|
121120
|
+
/**
|
|
121121
|
+
* Request failed; see the error code reference.
|
|
121122
|
+
*/
|
|
121123
|
+
402: MediaMediaError;
|
|
121124
|
+
/**
|
|
121125
|
+
* This credential has read-only access to the library; use a write-capable binding for mutations.
|
|
121126
|
+
*/
|
|
121127
|
+
403: MediaMediaError;
|
|
121128
|
+
/**
|
|
121129
|
+
* The library or asset is missing, deleted or belongs to another tenant; verify its identifier and owner.
|
|
121130
|
+
*/
|
|
121131
|
+
404: MediaMediaError;
|
|
121132
|
+
/**
|
|
121133
|
+
* Request failed; see the error code reference.
|
|
121134
|
+
*/
|
|
121135
|
+
409: MediaMediaError;
|
|
121136
|
+
/**
|
|
121137
|
+
* The file exceeds an input limit; provide a smaller source file.
|
|
121138
|
+
*/
|
|
121139
|
+
413: MediaMediaError;
|
|
121140
|
+
/**
|
|
121141
|
+
* This media format is unsupported; provide a supported format.
|
|
121142
|
+
*/
|
|
121143
|
+
415: MediaMediaError;
|
|
121144
|
+
/**
|
|
121145
|
+
* Request failed; see the error code reference.
|
|
121146
|
+
*/
|
|
121147
|
+
422: MediaMediaError;
|
|
121148
|
+
/**
|
|
121149
|
+
* A rate limit was reached; wait before retrying.
|
|
121150
|
+
*/
|
|
121151
|
+
429: MediaMediaError;
|
|
121152
|
+
/**
|
|
121153
|
+
* The requested operation is unsupported; choose a supported method.
|
|
121154
|
+
*/
|
|
121155
|
+
501: MediaMediaError;
|
|
121156
|
+
/**
|
|
121157
|
+
* Request failed; see the error code reference.
|
|
121158
|
+
*/
|
|
121159
|
+
502: MediaMediaError;
|
|
121160
|
+
/**
|
|
121161
|
+
* Historical projections are still being initialized, or library storage is temporarily unavailable; retry shortly and check failureSummary counts_complete.
|
|
121162
|
+
*/
|
|
121163
|
+
503: MediaMediaError;
|
|
121164
|
+
};
|
|
121165
|
+
export type MediaUpdateWorkError = MediaUpdateWorkErrors[keyof MediaUpdateWorkErrors];
|
|
121166
|
+
export type MediaUpdateWorkResponses = {
|
|
121167
|
+
/**
|
|
121168
|
+
* Successful response.
|
|
121169
|
+
*/
|
|
121170
|
+
200: MediaWork;
|
|
121171
|
+
};
|
|
121172
|
+
export type MediaUpdateWorkResponse = MediaUpdateWorkResponses[keyof MediaUpdateWorkResponses];
|
|
121173
|
+
export type MediaListAssetWorksData = {
|
|
121174
|
+
body?: never;
|
|
121175
|
+
path: {
|
|
121176
|
+
/**
|
|
121177
|
+
* Library ID returned by creation.
|
|
121178
|
+
*/
|
|
121179
|
+
library_id: string;
|
|
121180
|
+
/**
|
|
121181
|
+
* 32-character asset ID.
|
|
121182
|
+
*/
|
|
121183
|
+
asset_id: string;
|
|
121184
|
+
};
|
|
121185
|
+
query?: {
|
|
121186
|
+
/**
|
|
121187
|
+
* Maximum entries in this page, from 1 through 100; defaults to 100.
|
|
121188
|
+
*/
|
|
121189
|
+
limit?: number;
|
|
121190
|
+
/**
|
|
121191
|
+
* Cursor from the previous next_cursor.
|
|
121192
|
+
*/
|
|
121193
|
+
cursor?: string;
|
|
121194
|
+
};
|
|
121195
|
+
url: '/media/v1/libraries/{library_id}/assets/{asset_id}/works';
|
|
121196
|
+
};
|
|
121197
|
+
export type MediaListAssetWorksErrors = {
|
|
121198
|
+
/**
|
|
121199
|
+
* A selector, cursor, limit or other parameter is invalid; correct the reported field before retrying.
|
|
121200
|
+
*/
|
|
121201
|
+
400: MediaMediaError;
|
|
121202
|
+
/**
|
|
121203
|
+
* Request failed; see the error code reference.
|
|
121204
|
+
*/
|
|
121205
|
+
402: MediaMediaError;
|
|
121206
|
+
/**
|
|
121207
|
+
* This credential has read-only access to the library; use a write-capable binding for mutations.
|
|
121208
|
+
*/
|
|
121209
|
+
403: MediaMediaError;
|
|
121210
|
+
/**
|
|
121211
|
+
* The library or asset is missing, deleted or belongs to another tenant; verify its identifier and owner.
|
|
121212
|
+
*/
|
|
121213
|
+
404: MediaMediaError;
|
|
121214
|
+
/**
|
|
121215
|
+
* Request failed; see the error code reference.
|
|
121216
|
+
*/
|
|
121217
|
+
409: MediaMediaError;
|
|
121218
|
+
/**
|
|
121219
|
+
* The file exceeds an input limit; provide a smaller source file.
|
|
121220
|
+
*/
|
|
121221
|
+
413: MediaMediaError;
|
|
121222
|
+
/**
|
|
121223
|
+
* This media format is unsupported; provide a supported format.
|
|
121224
|
+
*/
|
|
121225
|
+
415: MediaMediaError;
|
|
121226
|
+
/**
|
|
121227
|
+
* Request failed; see the error code reference.
|
|
121228
|
+
*/
|
|
121229
|
+
422: MediaMediaError;
|
|
121230
|
+
/**
|
|
121231
|
+
* A rate limit was reached; wait before retrying.
|
|
121232
|
+
*/
|
|
121233
|
+
429: MediaMediaError;
|
|
121234
|
+
/**
|
|
121235
|
+
* The requested operation is unsupported; choose a supported method.
|
|
121236
|
+
*/
|
|
121237
|
+
501: MediaMediaError;
|
|
121238
|
+
/**
|
|
121239
|
+
* Request failed; see the error code reference.
|
|
121240
|
+
*/
|
|
121241
|
+
502: MediaMediaError;
|
|
121242
|
+
/**
|
|
121243
|
+
* Historical projections are still being initialized, or library storage is temporarily unavailable; retry shortly and check failureSummary counts_complete.
|
|
121244
|
+
*/
|
|
121245
|
+
503: MediaMediaError;
|
|
121246
|
+
};
|
|
121247
|
+
export type MediaListAssetWorksError = MediaListAssetWorksErrors[keyof MediaListAssetWorksErrors];
|
|
121248
|
+
export type MediaListAssetWorksResponses = {
|
|
121249
|
+
/**
|
|
121250
|
+
* Successful response.
|
|
121251
|
+
*/
|
|
121252
|
+
200: MediaWorkPage;
|
|
121253
|
+
};
|
|
121254
|
+
export type MediaListAssetWorksResponse = MediaListAssetWorksResponses[keyof MediaListAssetWorksResponses];
|
|
119317
121255
|
export type OntologyListTypesData = {
|
|
119318
121256
|
body?: never;
|
|
119319
121257
|
path?: never;
|
|
@@ -121273,7 +123211,7 @@ export type GetSandboxV1SandboxesResponses = {
|
|
|
121273
123211
|
};
|
|
121274
123212
|
export type GetSandboxV1SandboxesResponse = GetSandboxV1SandboxesResponses[keyof GetSandboxV1SandboxesResponses];
|
|
121275
123213
|
export type PostSandboxV1SandboxesData = {
|
|
121276
|
-
body:
|
|
123214
|
+
body: SandboxNewSandboxV2Writable;
|
|
121277
123215
|
path?: never;
|
|
121278
123216
|
query?: never;
|
|
121279
123217
|
url: '/sandbox/v1/sandboxes';
|