@deepraxis/sdk 0.2.0-dev.b391673 → 0.2.0-dev.b5ef50d
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 +95 -17
- package/dist/generated/sdk.gen.js +242 -16
- package/dist/generated/types.gen.d.ts +2524 -723
- package/dist/helpers/browser-connect-error.d.ts +1 -1
- package/dist/helpers/browser-connect-error.js +1 -1
- package/dist/helpers/browser-documentation.d.ts +1 -1
- package/dist/helpers/browser-documentation.js +1 -1
- package/dist/operations.generated.js +528 -44
- package/dist/resources.generated.d.ts +79 -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
|
*/
|
|
@@ -13671,7 +13839,7 @@ export type AutomationHumanTask = {
|
|
|
13671
13839
|
*/
|
|
13672
13840
|
initiator: {
|
|
13673
13841
|
/**
|
|
13674
|
-
* Initiator type: user, api_key, agent, run (a parent run) or
|
|
13842
|
+
* Initiator type: user, api_key, agent, run (a parent run), trigger or application.
|
|
13675
13843
|
*/
|
|
13676
13844
|
type: 'user' | 'api_key' | 'agent' | 'run' | 'trigger';
|
|
13677
13845
|
/**
|
|
@@ -19968,6 +20136,10 @@ export type DevopsPullRequest = {
|
|
|
19968
20136
|
* 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
20137
|
*/
|
|
19970
20138
|
mergeableState: string;
|
|
20139
|
+
/**
|
|
20140
|
+
* 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.
|
|
20141
|
+
*/
|
|
20142
|
+
notify?: string;
|
|
19971
20143
|
/**
|
|
19972
20144
|
* 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
20145
|
*/
|
|
@@ -21269,7 +21441,7 @@ export type MediaLibrary = {
|
|
|
21269
21441
|
};
|
|
21270
21442
|
export type MediaMediaError = {
|
|
21271
21443
|
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';
|
|
21444
|
+
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
21445
|
message: string;
|
|
21274
21446
|
details: string | null;
|
|
21275
21447
|
};
|
|
@@ -22798,6 +22970,107 @@ export type MediaVoiceDesignCreateInput = {
|
|
|
22798
22970
|
*/
|
|
22799
22971
|
description?: string;
|
|
22800
22972
|
};
|
|
22973
|
+
/**
|
|
22974
|
+
* 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.
|
|
22975
|
+
*/
|
|
22976
|
+
export type MediaWork = {
|
|
22977
|
+
/**
|
|
22978
|
+
* Always work.
|
|
22979
|
+
*/
|
|
22980
|
+
object: 'work';
|
|
22981
|
+
/**
|
|
22982
|
+
* Work id (wrk_…).
|
|
22983
|
+
*/
|
|
22984
|
+
id: string;
|
|
22985
|
+
/**
|
|
22986
|
+
* Library the work belongs to.
|
|
22987
|
+
*/
|
|
22988
|
+
library_id: MediaLibraryId;
|
|
22989
|
+
/**
|
|
22990
|
+
* The work’s kind.
|
|
22991
|
+
*/
|
|
22992
|
+
kind: MediaWorkKind;
|
|
22993
|
+
/**
|
|
22994
|
+
* The title, copied from body.title.
|
|
22995
|
+
*/
|
|
22996
|
+
title: string;
|
|
22997
|
+
/**
|
|
22998
|
+
* Groups the platform versions of one story; null when unset.
|
|
22999
|
+
*/
|
|
23000
|
+
series: string | null;
|
|
23001
|
+
/**
|
|
23002
|
+
* The kind’s body as stored.
|
|
23003
|
+
*/
|
|
23004
|
+
body: MediaWorkBody;
|
|
23005
|
+
/**
|
|
23006
|
+
* Caller data such as source, published links and numbers; changed with a JSON Merge Patch.
|
|
23007
|
+
*/
|
|
23008
|
+
custom: MediaWorkCustom;
|
|
23009
|
+
/**
|
|
23010
|
+
* Asset ids the body names that have been deleted since; the body keeps them in place and the Console draws a placeholder there.
|
|
23011
|
+
*/
|
|
23012
|
+
missing: Array<string>;
|
|
23013
|
+
/**
|
|
23014
|
+
* Bumped by every change; send it back as if_revision to update only an unchanged work.
|
|
23015
|
+
*/
|
|
23016
|
+
revision: number;
|
|
23017
|
+
/**
|
|
23018
|
+
* Who created the work: human:<user id>, agent:<agent id> or system.
|
|
23019
|
+
*/
|
|
23020
|
+
created_by: string;
|
|
23021
|
+
/**
|
|
23022
|
+
* When the work was created.
|
|
23023
|
+
*/
|
|
23024
|
+
created_at: MediaIsoTimestamp;
|
|
23025
|
+
/**
|
|
23026
|
+
* When the work last changed.
|
|
23027
|
+
*/
|
|
23028
|
+
updated_at: MediaIsoTimestamp;
|
|
23029
|
+
/**
|
|
23030
|
+
* Only with expand=assets: every live referenced asset by id, with its URLs and size.
|
|
23031
|
+
*/
|
|
23032
|
+
assets?: {
|
|
23033
|
+
[key: string]: MediaWorkAsset;
|
|
23034
|
+
};
|
|
23035
|
+
};
|
|
23036
|
+
/**
|
|
23037
|
+
* Kind of work: gallery (图文), article (长文) or product_listing (商品图组). short_video is reserved.
|
|
23038
|
+
*/
|
|
23039
|
+
export type MediaWorkKind = 'gallery' | 'article' | 'product_listing' | 'blocks';
|
|
23040
|
+
export type MediaWorkBody = MediaGalleryBody | MediaArticleBody | MediaProductListingBody | MediaBlocksBody;
|
|
23041
|
+
export type MediaWorkCustom = {
|
|
23042
|
+
[key: string]: unknown;
|
|
23043
|
+
};
|
|
23044
|
+
/**
|
|
23045
|
+
* A page of work summaries.
|
|
23046
|
+
*/
|
|
23047
|
+
export type MediaWorkPage = {
|
|
23048
|
+
/**
|
|
23049
|
+
* Works in this page, most recently changed first.
|
|
23050
|
+
*/
|
|
23051
|
+
data: Array<MediaWorkSummary>;
|
|
23052
|
+
/**
|
|
23053
|
+
* Cursor for the next page, or null when there are no more works.
|
|
23054
|
+
*/
|
|
23055
|
+
next_cursor: string | null;
|
|
23056
|
+
};
|
|
23057
|
+
/**
|
|
23058
|
+
* The answer to deleting a work.
|
|
23059
|
+
*/
|
|
23060
|
+
export type MediaDeletedWork = {
|
|
23061
|
+
/**
|
|
23062
|
+
* Id of the deleted work.
|
|
23063
|
+
*/
|
|
23064
|
+
id: string;
|
|
23065
|
+
/**
|
|
23066
|
+
* Always work.
|
|
23067
|
+
*/
|
|
23068
|
+
object: 'work';
|
|
23069
|
+
/**
|
|
23070
|
+
* Always true: the work is deleted; every asset it named is unchanged.
|
|
23071
|
+
*/
|
|
23072
|
+
deleted: true;
|
|
23073
|
+
};
|
|
22801
23074
|
/**
|
|
22802
23075
|
* One page of type registrations; types are few enough that this face returns them in a single page.
|
|
22803
23076
|
*/
|
|
@@ -34932,6 +35205,14 @@ export type SandboxSandboxNetworkConfig = {
|
|
|
34932
35205
|
rules?: {
|
|
34933
35206
|
[key: string]: Array<SandboxSandboxNetworkRule>;
|
|
34934
35207
|
};
|
|
35208
|
+
/**
|
|
35209
|
+
* 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.
|
|
35210
|
+
*/
|
|
35211
|
+
staticEgressIp?: boolean;
|
|
35212
|
+
/**
|
|
35213
|
+
* 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.
|
|
35214
|
+
*/
|
|
35215
|
+
readonly egressIp?: string;
|
|
34935
35216
|
};
|
|
34936
35217
|
/**
|
|
34937
35218
|
* Sandbox lifecycle policy returned by sandbox info.
|
|
@@ -36642,11 +36923,11 @@ export type AutomationActionHost = 'builtin' | 'isolate' | 'sandbox';
|
|
|
36642
36923
|
*/
|
|
36643
36924
|
export type AutomationSubject = {
|
|
36644
36925
|
/**
|
|
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.
|
|
36926
|
+
* 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
36927
|
*/
|
|
36647
36928
|
type: 'user' | 'api_key' | 'agent' | 'run' | 'trigger';
|
|
36648
36929
|
/**
|
|
36649
|
-
* Principal identifier whose meaning follows type: a user, API key, agent, run or
|
|
36930
|
+
* Principal identifier whose meaning follows type: a user, API key, agent, run, trigger or application id. Treat it as an opaque string.
|
|
36650
36931
|
*/
|
|
36651
36932
|
id: string;
|
|
36652
36933
|
};
|
|
@@ -40205,6 +40486,10 @@ export type DevopsUnitGit = {
|
|
|
40205
40486
|
* The ref holding the unit's work in progress, or null when none was recorded.
|
|
40206
40487
|
*/
|
|
40207
40488
|
wipRef: string | null;
|
|
40489
|
+
/**
|
|
40490
|
+
* 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.
|
|
40491
|
+
*/
|
|
40492
|
+
remoteHead?: string;
|
|
40208
40493
|
/**
|
|
40209
40494
|
* RFC 3339 UTC time these facts were observed, or null before the first observation.
|
|
40210
40495
|
*/
|
|
@@ -41374,7 +41659,7 @@ export type MediaGenerationType = 'image' | 'video' | 'speech' | 'music' | 'soun
|
|
|
41374
41659
|
* Edit operations: the change this step applied to its parent asset.
|
|
41375
41660
|
*/
|
|
41376
41661
|
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';
|
|
41662
|
+
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
41663
|
/**
|
|
41379
41664
|
* State of a requested generation output.
|
|
41380
41665
|
*/
|
|
@@ -41720,6 +42005,188 @@ export type MediaHlsRendition = {
|
|
|
41720
42005
|
state: MediaHlsRenditionState;
|
|
41721
42006
|
};
|
|
41722
42007
|
export type MediaVoiceConsentId = string;
|
|
42008
|
+
/**
|
|
42009
|
+
* One referenced asset as expand=assets returns it: enough to draw it without another call.
|
|
42010
|
+
*/
|
|
42011
|
+
export type MediaWorkAsset = {
|
|
42012
|
+
/**
|
|
42013
|
+
* The asset’s material type, such as image or video.
|
|
42014
|
+
*/
|
|
42015
|
+
type: MediaMaterialType;
|
|
42016
|
+
/**
|
|
42017
|
+
* Short-lived delivery URL of the asset.
|
|
42018
|
+
*/
|
|
42019
|
+
url: string;
|
|
42020
|
+
/**
|
|
42021
|
+
* Short-lived URL of a small picture: the poster of a video, otherwise the asset itself.
|
|
42022
|
+
*/
|
|
42023
|
+
thumbnail_url: string;
|
|
42024
|
+
/**
|
|
42025
|
+
* Width in pixels when known.
|
|
42026
|
+
*/
|
|
42027
|
+
width?: number;
|
|
42028
|
+
/**
|
|
42029
|
+
* Height in pixels when known.
|
|
42030
|
+
*/
|
|
42031
|
+
height?: number;
|
|
42032
|
+
/**
|
|
42033
|
+
* The asset’s display name.
|
|
42034
|
+
*/
|
|
42035
|
+
display_name: string;
|
|
42036
|
+
};
|
|
42037
|
+
/**
|
|
42038
|
+
* Body of a gallery (图文). Order is the order of items.
|
|
42039
|
+
*/
|
|
42040
|
+
export type MediaGalleryBody = {
|
|
42041
|
+
/**
|
|
42042
|
+
* Title, 1 to 100 characters.
|
|
42043
|
+
*/
|
|
42044
|
+
title: string;
|
|
42045
|
+
/**
|
|
42046
|
+
* Body text, at most 10000 characters.
|
|
42047
|
+
*/
|
|
42048
|
+
text?: string;
|
|
42049
|
+
/**
|
|
42050
|
+
* Topics without the # sign, at most 30 of up to 40 characters.
|
|
42051
|
+
*/
|
|
42052
|
+
topics?: Array<string>;
|
|
42053
|
+
/**
|
|
42054
|
+
* Optional cover: an image or sticker asset of this library; without it the first picture is the cover.
|
|
42055
|
+
*/
|
|
42056
|
+
cover?: string;
|
|
42057
|
+
/**
|
|
42058
|
+
* Pictures, videos and text segments in order, 1 to 100 entries with at least one asset; each asset appears once.
|
|
42059
|
+
*/
|
|
42060
|
+
items: Array<MediaGalleryItem>;
|
|
42061
|
+
/**
|
|
42062
|
+
* Display style; defaults to xiaohongshu in the Console.
|
|
42063
|
+
*/
|
|
42064
|
+
style?: MediaWorkStyle;
|
|
42065
|
+
};
|
|
42066
|
+
/**
|
|
42067
|
+
* Body of an article (长文). Inline images live in the Markdown as  and sit where they are written.
|
|
42068
|
+
*/
|
|
42069
|
+
export type MediaArticleBody = {
|
|
42070
|
+
/**
|
|
42071
|
+
* Title, 1 to 200 characters.
|
|
42072
|
+
*/
|
|
42073
|
+
title: string;
|
|
42074
|
+
/**
|
|
42075
|
+
* Optional summary or digest, at most 500 characters.
|
|
42076
|
+
*/
|
|
42077
|
+
summary?: string;
|
|
42078
|
+
/**
|
|
42079
|
+
* Optional author name, at most 60 characters.
|
|
42080
|
+
*/
|
|
42081
|
+
author?: string;
|
|
42082
|
+
/**
|
|
42083
|
+
* The article in Markdown, 1 to 100000 characters; every asset:<asset_id> image must be an image or sticker of this library.
|
|
42084
|
+
*/
|
|
42085
|
+
body: string;
|
|
42086
|
+
/**
|
|
42087
|
+
* Optional cover: an image or sticker asset of this library.
|
|
42088
|
+
*/
|
|
42089
|
+
cover?: string;
|
|
42090
|
+
/**
|
|
42091
|
+
* Display style; defaults to wechat_mp in the Console.
|
|
42092
|
+
*/
|
|
42093
|
+
style?: MediaWorkStyle;
|
|
42094
|
+
};
|
|
42095
|
+
/**
|
|
42096
|
+
* Body of a product listing (商品图组). Images and copy only: price, stock and other business data are managed outside the library and are refused.
|
|
42097
|
+
*/
|
|
42098
|
+
export type MediaProductListingBody = {
|
|
42099
|
+
/**
|
|
42100
|
+
* Listing title, 1 to 200 characters.
|
|
42101
|
+
*/
|
|
42102
|
+
title: string;
|
|
42103
|
+
/**
|
|
42104
|
+
* Selling points in order, at most 10 of up to 100 characters.
|
|
42105
|
+
*/
|
|
42106
|
+
selling_points?: Array<string>;
|
|
42107
|
+
/**
|
|
42108
|
+
* Parameter rows in order, at most 50.
|
|
42109
|
+
*/
|
|
42110
|
+
attributes?: Array<MediaListingAttribute>;
|
|
42111
|
+
/**
|
|
42112
|
+
* Main images in order, 1 to 20 image or sticker assets of this library.
|
|
42113
|
+
*/
|
|
42114
|
+
main: Array<string>;
|
|
42115
|
+
/**
|
|
42116
|
+
* Detail images in order, at most 100 image or sticker assets of this library.
|
|
42117
|
+
*/
|
|
42118
|
+
detail?: Array<string>;
|
|
42119
|
+
/**
|
|
42120
|
+
* SKUs in order, at most 200.
|
|
42121
|
+
*/
|
|
42122
|
+
skus?: Array<MediaListingSku>;
|
|
42123
|
+
/**
|
|
42124
|
+
* Optional product element (material_type product) this listing shows.
|
|
42125
|
+
*/
|
|
42126
|
+
product?: string;
|
|
42127
|
+
/**
|
|
42128
|
+
* Display style; defaults to generic in the Console.
|
|
42129
|
+
*/
|
|
42130
|
+
style?: MediaWorkStyle;
|
|
42131
|
+
};
|
|
42132
|
+
/**
|
|
42133
|
+
* Body of a general work (通用作品) in Editor.js saved-data format. Business attributes go in the work’s custom, not in a block. The work’s title is the first header block’s text, else the first paragraph’s.
|
|
42134
|
+
*/
|
|
42135
|
+
export type MediaBlocksBody = {
|
|
42136
|
+
/**
|
|
42137
|
+
* Optional Editor.js save time in milliseconds, kept as sent.
|
|
42138
|
+
*/
|
|
42139
|
+
time?: number;
|
|
42140
|
+
/**
|
|
42141
|
+
* The blocks in order, 1 to 500.
|
|
42142
|
+
*/
|
|
42143
|
+
blocks: Array<MediaEditorBlock>;
|
|
42144
|
+
/**
|
|
42145
|
+
* Optional Editor.js version string, kept as sent.
|
|
42146
|
+
*/
|
|
42147
|
+
version?: string;
|
|
42148
|
+
};
|
|
42149
|
+
/**
|
|
42150
|
+
* One work in a list.
|
|
42151
|
+
*/
|
|
42152
|
+
export type MediaWorkSummary = {
|
|
42153
|
+
/**
|
|
42154
|
+
* Always work.
|
|
42155
|
+
*/
|
|
42156
|
+
object: 'work';
|
|
42157
|
+
/**
|
|
42158
|
+
* Work id (wrk_…).
|
|
42159
|
+
*/
|
|
42160
|
+
id: string;
|
|
42161
|
+
/**
|
|
42162
|
+
* The work’s kind.
|
|
42163
|
+
*/
|
|
42164
|
+
kind: MediaWorkKind;
|
|
42165
|
+
/**
|
|
42166
|
+
* The work’s title.
|
|
42167
|
+
*/
|
|
42168
|
+
title: string;
|
|
42169
|
+
/**
|
|
42170
|
+
* The work’s series, or null.
|
|
42171
|
+
*/
|
|
42172
|
+
series: string | null;
|
|
42173
|
+
/**
|
|
42174
|
+
* Short-lived URL of the cover picture, or null when it is missing.
|
|
42175
|
+
*/
|
|
42176
|
+
cover_url: string | null;
|
|
42177
|
+
/**
|
|
42178
|
+
* How many distinct assets the body orders, cover and product element excluded.
|
|
42179
|
+
*/
|
|
42180
|
+
item_count: number;
|
|
42181
|
+
/**
|
|
42182
|
+
* How many referenced assets have been deleted since.
|
|
42183
|
+
*/
|
|
42184
|
+
missing_count: number;
|
|
42185
|
+
/**
|
|
42186
|
+
* When the work last changed.
|
|
42187
|
+
*/
|
|
42188
|
+
updated_at: MediaIsoTimestamp;
|
|
42189
|
+
};
|
|
41723
42190
|
/**
|
|
41724
42191
|
* A kind of entity the graph accepts, for example a file or a customer.
|
|
41725
42192
|
*/
|
|
@@ -48068,7 +48535,7 @@ export type DevopsPlannedSkip = {
|
|
|
48068
48535
|
/**
|
|
48069
48536
|
* Why it is left out, which is what tells a deliberate skip apart from an oversight.
|
|
48070
48537
|
*/
|
|
48071
|
-
reason: 'unchanged' | 'newer_checkpoint' | 'not_requested' | 'callee_excluded' | 'artifact_identical';
|
|
48538
|
+
reason: 'unchanged' | 'newer_checkpoint' | 'not_requested' | 'callee_excluded' | 'not_deployed_upstream' | 'artifact_identical';
|
|
48072
48539
|
};
|
|
48073
48540
|
/**
|
|
48074
48541
|
* The migrations one target has pending, as the plan found them.
|
|
@@ -48704,7 +49171,7 @@ export type MediaSemanticMatch = {
|
|
|
48704
49171
|
/**
|
|
48705
49172
|
* Type of change recorded for a library, asset, processing task, search index or batch.
|
|
48706
49173
|
*/
|
|
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';
|
|
49174
|
+
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
49175
|
/**
|
|
48709
49176
|
* One picture an element names, with the word the caller uses for that view.
|
|
48710
49177
|
*/
|
|
@@ -48800,6 +49267,75 @@ export type MediaGenerationCapabilityModel = {
|
|
|
48800
49267
|
* Readiness of one rung or of the ladder it is part of.
|
|
48801
49268
|
*/
|
|
48802
49269
|
export type MediaHlsRenditionState = 'processing' | 'ready' | 'failed';
|
|
49270
|
+
/**
|
|
49271
|
+
* One position of a gallery: a picture or video of this library ({asset_id, caption?}) or a text segment between pictures ({text}).
|
|
49272
|
+
*/
|
|
49273
|
+
export type MediaGalleryItem = {
|
|
49274
|
+
/**
|
|
49275
|
+
* An image, sticker or video asset of this library; its position in items is its position in the gallery.
|
|
49276
|
+
*/
|
|
49277
|
+
asset_id: string;
|
|
49278
|
+
/**
|
|
49279
|
+
* Optional caption for this picture, at most 1000 characters.
|
|
49280
|
+
*/
|
|
49281
|
+
caption?: string;
|
|
49282
|
+
} | {
|
|
49283
|
+
/**
|
|
49284
|
+
* A text segment shown between pictures, at most 1000 characters.
|
|
49285
|
+
*/
|
|
49286
|
+
text: string;
|
|
49287
|
+
};
|
|
49288
|
+
/**
|
|
49289
|
+
* Which platform look the Console draws the work in; a display hint, never a platform check.
|
|
49290
|
+
*/
|
|
49291
|
+
export type MediaWorkStyle = 'xiaohongshu' | 'wechat_mp' | 'jike' | 'generic';
|
|
49292
|
+
/**
|
|
49293
|
+
* One parameter row of a listing.
|
|
49294
|
+
*/
|
|
49295
|
+
export type MediaListingAttribute = {
|
|
49296
|
+
/**
|
|
49297
|
+
* Parameter name such as 容量, at most 40 characters.
|
|
49298
|
+
*/
|
|
49299
|
+
name: string;
|
|
49300
|
+
/**
|
|
49301
|
+
* Parameter value such as 500ml, at most 200 characters.
|
|
49302
|
+
*/
|
|
49303
|
+
value: string;
|
|
49304
|
+
};
|
|
49305
|
+
/**
|
|
49306
|
+
* One SKU of a listing.
|
|
49307
|
+
*/
|
|
49308
|
+
export type MediaListingSku = {
|
|
49309
|
+
/**
|
|
49310
|
+
* The SKU’s value on each spec axis, such as {"颜色":"白"}; 1 to 5 axes; the keys are kept as written.
|
|
49311
|
+
*/
|
|
49312
|
+
spec: {
|
|
49313
|
+
[key: string]: string;
|
|
49314
|
+
};
|
|
49315
|
+
/**
|
|
49316
|
+
* Optional picture of this SKU: an image or sticker asset of this library.
|
|
49317
|
+
*/
|
|
49318
|
+
asset_id?: string;
|
|
49319
|
+
};
|
|
49320
|
+
/**
|
|
49321
|
+
* 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.
|
|
49322
|
+
*/
|
|
49323
|
+
export type MediaEditorBlock = {
|
|
49324
|
+
/**
|
|
49325
|
+
* Block id, 1–64 letters, digits, _ or -, unique in the body.
|
|
49326
|
+
*/
|
|
49327
|
+
id: string;
|
|
49328
|
+
/**
|
|
49329
|
+
* The official Editor.js block type.
|
|
49330
|
+
*/
|
|
49331
|
+
type: 'paragraph' | 'header' | 'list' | 'quote' | 'delimiter' | 'image' | 'table' | 'checklist' | 'warning' | 'embed';
|
|
49332
|
+
/**
|
|
49333
|
+
* The block’s data in that type’s Editor.js shape.
|
|
49334
|
+
*/
|
|
49335
|
+
data: {
|
|
49336
|
+
[key: string]: unknown;
|
|
49337
|
+
};
|
|
49338
|
+
};
|
|
48803
49339
|
/**
|
|
48804
49340
|
* Auto-resume enabled flag for paused sandboxes. Default false.
|
|
48805
49341
|
*/
|
|
@@ -50923,6 +51459,58 @@ export type UpdateMediaPipelineRequestWritable = {
|
|
|
50923
51459
|
* Models to use for completion
|
|
50924
51460
|
*/
|
|
50925
51461
|
export type OpenaiChatModelNamesWritable = Array<OpenaiModelName & unknown>;
|
|
51462
|
+
export type SandboxSandboxDetailWritable = {
|
|
51463
|
+
/**
|
|
51464
|
+
* Identifier of the template from which is the sandbox created
|
|
51465
|
+
*/
|
|
51466
|
+
templateID: string;
|
|
51467
|
+
/**
|
|
51468
|
+
* Alias of the template
|
|
51469
|
+
*/
|
|
51470
|
+
alias?: string;
|
|
51471
|
+
/**
|
|
51472
|
+
* Identifier of the sandbox
|
|
51473
|
+
*/
|
|
51474
|
+
sandboxID: string;
|
|
51475
|
+
/**
|
|
51476
|
+
* Identifier of the client
|
|
51477
|
+
*
|
|
51478
|
+
* @deprecated
|
|
51479
|
+
*/
|
|
51480
|
+
clientID: string;
|
|
51481
|
+
/**
|
|
51482
|
+
* Time when the sandbox was started
|
|
51483
|
+
*/
|
|
51484
|
+
startedAt: string;
|
|
51485
|
+
/**
|
|
51486
|
+
* Time when the sandbox will expire
|
|
51487
|
+
*/
|
|
51488
|
+
endAt: string;
|
|
51489
|
+
envdVersion: SandboxEnvdVersion;
|
|
51490
|
+
/**
|
|
51491
|
+
* Access token used for envd communication
|
|
51492
|
+
*/
|
|
51493
|
+
envdAccessToken?: string;
|
|
51494
|
+
/**
|
|
51495
|
+
* Whether internet access was explicitly enabled or disabled for the sandbox. Null means it was not explicitly set.
|
|
51496
|
+
*/
|
|
51497
|
+
allowInternetAccess?: boolean;
|
|
51498
|
+
/**
|
|
51499
|
+
* Base domain where the sandbox traffic is accessible
|
|
51500
|
+
*/
|
|
51501
|
+
domain?: string;
|
|
51502
|
+
cpuCount: SandboxCpuCount;
|
|
51503
|
+
memoryMB: SandboxMemoryMb;
|
|
51504
|
+
diskSizeMB: SandboxDiskSizeMb;
|
|
51505
|
+
metadata?: SandboxSandboxMetadata;
|
|
51506
|
+
state: SandboxSandboxState;
|
|
51507
|
+
network?: SandboxSandboxNetworkConfigWritable;
|
|
51508
|
+
lifecycle?: SandboxSandboxLifecycle;
|
|
51509
|
+
/**
|
|
51510
|
+
* Volumes mounted into the sandbox.
|
|
51511
|
+
*/
|
|
51512
|
+
volumeMounts?: Array<SandboxSandboxVolumeMount>;
|
|
51513
|
+
};
|
|
50926
51514
|
/**
|
|
50927
51515
|
* Free-form string key/value pairs stored with the session, changed through sessions.update patch semantics.
|
|
50928
51516
|
*/
|
|
@@ -51502,6 +52090,94 @@ export type MediaSemanticSearchResultWritable = {
|
|
|
51502
52090
|
*/
|
|
51503
52091
|
not_ready_excluded: number;
|
|
51504
52092
|
};
|
|
52093
|
+
/**
|
|
52094
|
+
* Sandbox creation request. All system communication with the sandbox is always secured; the template's envd version must support secured access.
|
|
52095
|
+
*/
|
|
52096
|
+
export type SandboxNewSandboxV2Writable = {
|
|
52097
|
+
/**
|
|
52098
|
+
* Identifier of the required template
|
|
52099
|
+
*/
|
|
52100
|
+
templateID: string;
|
|
52101
|
+
/**
|
|
52102
|
+
* Lifetime of the new sandbox in seconds. Defaults to 300 seconds when omitted.
|
|
52103
|
+
*/
|
|
52104
|
+
timeout?: number;
|
|
52105
|
+
/**
|
|
52106
|
+
* 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.
|
|
52107
|
+
*/
|
|
52108
|
+
autoPause?: boolean;
|
|
52109
|
+
/**
|
|
52110
|
+
* 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).
|
|
52111
|
+
*/
|
|
52112
|
+
autoPauseMemory?: boolean;
|
|
52113
|
+
autoResume?: SandboxSandboxAutoResumeConfig;
|
|
52114
|
+
/**
|
|
52115
|
+
* 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.
|
|
52116
|
+
*/
|
|
52117
|
+
allow_internet_access?: boolean;
|
|
52118
|
+
network?: SandboxSandboxNetworkConfigWritable;
|
|
52119
|
+
metadata?: SandboxSandboxMetadata;
|
|
52120
|
+
envVars?: SandboxEnvVars;
|
|
52121
|
+
mcp?: SandboxMcp;
|
|
52122
|
+
iam?: SandboxSandboxIam;
|
|
52123
|
+
/**
|
|
52124
|
+
* Volumes to mount into the sandbox, each with the volume name and the path inside the sandbox.
|
|
52125
|
+
*/
|
|
52126
|
+
volumeMounts?: Array<SandboxSandboxVolumeMount>;
|
|
52127
|
+
/**
|
|
52128
|
+
* 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.
|
|
52129
|
+
*/
|
|
52130
|
+
ephemeral?: boolean;
|
|
52131
|
+
/**
|
|
52132
|
+
* 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.
|
|
52133
|
+
*/
|
|
52134
|
+
size?: string;
|
|
52135
|
+
/**
|
|
52136
|
+
* Own face: a display name for the sandbox, 1 to 64 characters. Omitted, one is generated from the template.
|
|
52137
|
+
*/
|
|
52138
|
+
name?: string;
|
|
52139
|
+
/**
|
|
52140
|
+
* 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.
|
|
52141
|
+
*/
|
|
52142
|
+
waitForReady?: boolean;
|
|
52143
|
+
/**
|
|
52144
|
+
* Own face: what happens at the timeout. pause needs ephemeral: false; must agree with autoPause when both are sent.
|
|
52145
|
+
*/
|
|
52146
|
+
onExpire?: 'kill' | 'pause';
|
|
52147
|
+
/**
|
|
52148
|
+
* Own face, persistent sandboxes only: pause after this many milliseconds without activity; null turns the idle pause off.
|
|
52149
|
+
*/
|
|
52150
|
+
idleTimeout?: number;
|
|
52151
|
+
/**
|
|
52152
|
+
* 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.
|
|
52153
|
+
*/
|
|
52154
|
+
idleActivity?: 'traffic' | 'caller';
|
|
52155
|
+
/**
|
|
52156
|
+
* 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.
|
|
52157
|
+
*/
|
|
52158
|
+
sku?: string;
|
|
52159
|
+
/**
|
|
52160
|
+
* 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.
|
|
52161
|
+
*/
|
|
52162
|
+
kind?: 'run' | 'job' | 'batch' | 'computer' | 'compat';
|
|
52163
|
+
/**
|
|
52164
|
+
* 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.
|
|
52165
|
+
*/
|
|
52166
|
+
interruptible?: boolean;
|
|
52167
|
+
/**
|
|
52168
|
+
* 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.
|
|
52169
|
+
*/
|
|
52170
|
+
onLoss?: 'fail' | 'rebuild';
|
|
52171
|
+
/**
|
|
52172
|
+
* 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.
|
|
52173
|
+
*/
|
|
52174
|
+
outputs?: Array<{
|
|
52175
|
+
/**
|
|
52176
|
+
* Absolute path of a directory or file inside the sandbox.
|
|
52177
|
+
*/
|
|
52178
|
+
path: string;
|
|
52179
|
+
}>;
|
|
52180
|
+
};
|
|
51505
52181
|
/**
|
|
51506
52182
|
* Arguments the model passed to the tool.
|
|
51507
52183
|
*/
|
|
@@ -51580,6 +52256,43 @@ export type AnthropicAnonymous204Writable = {
|
|
|
51580
52256
|
export type AnthropicAnonymous206Writable = {
|
|
51581
52257
|
[key: string]: unknown;
|
|
51582
52258
|
};
|
|
52259
|
+
/**
|
|
52260
|
+
* Network policy of the sandbox: public access, egress allow and deny lists and proxy.
|
|
52261
|
+
*/
|
|
52262
|
+
export type SandboxSandboxNetworkConfigWritable = {
|
|
52263
|
+
/**
|
|
52264
|
+
* Specify if the sandbox URLs should be accessible only with authentication.
|
|
52265
|
+
*/
|
|
52266
|
+
allowPublicTraffic?: boolean;
|
|
52267
|
+
/**
|
|
52268
|
+
* 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.
|
|
52269
|
+
*/
|
|
52270
|
+
allowOut?: Array<string>;
|
|
52271
|
+
/**
|
|
52272
|
+
* List of denied CIDR blocks or IP addresses for egress traffic. Domain names are not supported for deny rules.
|
|
52273
|
+
*/
|
|
52274
|
+
denyOut?: Array<string>;
|
|
52275
|
+
egressProxy?: SandboxSandboxEgressProxyConfig;
|
|
52276
|
+
/**
|
|
52277
|
+
* Specify host mask which will be used for all sandbox requests
|
|
52278
|
+
*/
|
|
52279
|
+
maskRequestHost?: string;
|
|
52280
|
+
/**
|
|
52281
|
+
* Unlike E2B, network.httpsPorts is rejected; omit it when creating a sandbox.
|
|
52282
|
+
*/
|
|
52283
|
+
httpsPorts?: Array<number>;
|
|
52284
|
+
/**
|
|
52285
|
+
* 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.
|
|
52286
|
+
*
|
|
52287
|
+
*/
|
|
52288
|
+
rules?: {
|
|
52289
|
+
[key: string]: Array<SandboxSandboxNetworkRule>;
|
|
52290
|
+
};
|
|
52291
|
+
/**
|
|
52292
|
+
* 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.
|
|
52293
|
+
*/
|
|
52294
|
+
staticEgressIp?: boolean;
|
|
52295
|
+
};
|
|
51583
52296
|
/**
|
|
51584
52297
|
* Free-form string key/value pairs.
|
|
51585
52298
|
*/
|
|
@@ -54307,6 +55020,86 @@ export type ListAgentInboxLettersResponses = {
|
|
|
54307
55020
|
};
|
|
54308
55021
|
};
|
|
54309
55022
|
export type ListAgentInboxLettersResponse = ListAgentInboxLettersResponses[keyof ListAgentInboxLettersResponses];
|
|
55023
|
+
export type ListAgentDeviceLocalSessionsData = {
|
|
55024
|
+
body?: never;
|
|
55025
|
+
path: {
|
|
55026
|
+
/**
|
|
55027
|
+
* 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_….
|
|
55028
|
+
*/
|
|
55029
|
+
agent_id: string;
|
|
55030
|
+
/**
|
|
55031
|
+
* The paired desktop device (byd_ and 26 hex characters) whose sessions to list; you must be the person who paired it.
|
|
55032
|
+
*/
|
|
55033
|
+
device_id: string;
|
|
55034
|
+
};
|
|
55035
|
+
query: {
|
|
55036
|
+
/**
|
|
55037
|
+
* The absolute directory on the device, exactly as the device registered it and bound it to this agent.
|
|
55038
|
+
*/
|
|
55039
|
+
cwd: string;
|
|
55040
|
+
/**
|
|
55041
|
+
* The next_cursor of the previous page; leave it out for the first page.
|
|
55042
|
+
*/
|
|
55043
|
+
cursor?: string;
|
|
55044
|
+
};
|
|
55045
|
+
url: '/agent/v1/agents/{agent_id}/devices/{device_id}/local-sessions';
|
|
55046
|
+
};
|
|
55047
|
+
export type ListAgentDeviceLocalSessionsErrors = {
|
|
55048
|
+
/**
|
|
55049
|
+
* 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.
|
|
55050
|
+
*/
|
|
55051
|
+
400: unknown;
|
|
55052
|
+
/**
|
|
55053
|
+
* Authenticate with your own API key or a console session; an agent's or robot's credential cannot list a person's device.
|
|
55054
|
+
*/
|
|
55055
|
+
401: unknown;
|
|
55056
|
+
/**
|
|
55057
|
+
* 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.
|
|
55058
|
+
*/
|
|
55059
|
+
403: AgentError;
|
|
55060
|
+
/**
|
|
55061
|
+
* AGENT_NOT_FOUND: no agent with this reference exists in your organization; list agents with agents.list.
|
|
55062
|
+
*/
|
|
55063
|
+
404: unknown;
|
|
55064
|
+
/**
|
|
55065
|
+
* 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.
|
|
55066
|
+
*/
|
|
55067
|
+
503: unknown;
|
|
55068
|
+
};
|
|
55069
|
+
export type ListAgentDeviceLocalSessionsError = ListAgentDeviceLocalSessionsErrors[keyof ListAgentDeviceLocalSessionsErrors];
|
|
55070
|
+
export type ListAgentDeviceLocalSessionsResponses = {
|
|
55071
|
+
/**
|
|
55072
|
+
* One page of the device's sessions for that directory, newest first.
|
|
55073
|
+
*/
|
|
55074
|
+
200: {
|
|
55075
|
+
/**
|
|
55076
|
+
* The sessions of this page; empty when the directory has none.
|
|
55077
|
+
*/
|
|
55078
|
+
data: Array<{
|
|
55079
|
+
/**
|
|
55080
|
+
* The Claude Code session id on the device; pass it as runtime.resume_session_id when creating a session to continue it.
|
|
55081
|
+
*/
|
|
55082
|
+
id: string;
|
|
55083
|
+
/**
|
|
55084
|
+
* The session's title as Claude Code shows it; empty when it has none.
|
|
55085
|
+
*/
|
|
55086
|
+
title: string;
|
|
55087
|
+
/**
|
|
55088
|
+
* When the session was last written to, RFC 3339; sessions are ordered newest first.
|
|
55089
|
+
*/
|
|
55090
|
+
updated_at: string | null;
|
|
55091
|
+
/**
|
|
55092
|
+
* The directory the session ran in on the device.
|
|
55093
|
+
*/
|
|
55094
|
+
cwd: string | null;
|
|
55095
|
+
}>;
|
|
55096
|
+
/**
|
|
55097
|
+
* Pass as cursor for the next page; null on the last page.
|
|
55098
|
+
*/
|
|
55099
|
+
next_cursor: string | null;
|
|
55100
|
+
};
|
|
55101
|
+
};
|
|
55102
|
+
export type ListAgentDeviceLocalSessionsResponse = ListAgentDeviceLocalSessionsResponses[keyof ListAgentDeviceLocalSessionsResponses];
|
|
54310
55103
|
export type CreateAgentLoginIntentData = {
|
|
54311
55104
|
body?: never;
|
|
54312
55105
|
path?: never;
|
|
@@ -55601,7 +56394,7 @@ export type ApplyAgentVersionResponses = {
|
|
|
55601
56394
|
*/
|
|
55602
56395
|
environment_id?: string | null;
|
|
55603
56396
|
/**
|
|
55604
|
-
* Default vaults of this service or assume agent version: the vault_ids new
|
|
56397
|
+
* 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
56398
|
*/
|
|
55606
56399
|
vault_ids?: Array<string>;
|
|
55607
56400
|
/**
|
|
@@ -56861,7 +57654,7 @@ export type UnarchiveAgentResponses = {
|
|
|
56861
57654
|
*/
|
|
56862
57655
|
environment_id?: string | null;
|
|
56863
57656
|
/**
|
|
56864
|
-
* Default vaults of this service or assume agent version: the vault_ids new
|
|
57657
|
+
* 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
57658
|
*/
|
|
56866
57659
|
vault_ids?: Array<string>;
|
|
56867
57660
|
/**
|
|
@@ -59330,9 +60123,13 @@ export type ComputersRetrieveResponse = ComputersRetrieveResponses[keyof Compute
|
|
|
59330
60123
|
export type ComputersUpdateData = {
|
|
59331
60124
|
body: {
|
|
59332
60125
|
/**
|
|
59333
|
-
*
|
|
60126
|
+
* New display name, 1 to 255 characters after trimming. Omit to keep the current name.
|
|
59334
60127
|
*/
|
|
59335
|
-
name
|
|
60128
|
+
name?: string;
|
|
60129
|
+
/**
|
|
60130
|
+
* 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.
|
|
60131
|
+
*/
|
|
60132
|
+
environment_id?: string | null;
|
|
59336
60133
|
};
|
|
59337
60134
|
path: {
|
|
59338
60135
|
/**
|
|
@@ -61502,7 +62299,7 @@ export type ComputersFilesConvertResponse = ComputersFilesConvertResponses[keyof
|
|
|
61502
62299
|
export type ConnectComputerData = {
|
|
61503
62300
|
body?: {
|
|
61504
62301
|
/**
|
|
61505
|
-
*
|
|
62302
|
+
* Accepted for compatibility and ignored: light and heavy both reach the same machine, because a Computer is one machine. Omit it.
|
|
61506
62303
|
*/
|
|
61507
62304
|
need?: 'light' | 'heavy';
|
|
61508
62305
|
};
|
|
@@ -69106,7 +69903,7 @@ export type BrowserListSessionsErrors = {
|
|
|
69106
69903
|
*/
|
|
69107
69904
|
402: BrowserError;
|
|
69108
69905
|
/**
|
|
69109
|
-
* PERMISSION_DENIED /
|
|
69906
|
+
* PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
|
|
69110
69907
|
*/
|
|
69111
69908
|
403: BrowserError;
|
|
69112
69909
|
/**
|
|
@@ -69187,7 +69984,7 @@ export type BrowserCreateSessionErrors = {
|
|
|
69187
69984
|
*/
|
|
69188
69985
|
402: BrowserError;
|
|
69189
69986
|
/**
|
|
69190
|
-
* PERMISSION_DENIED /
|
|
69987
|
+
* PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
|
|
69191
69988
|
*/
|
|
69192
69989
|
403: BrowserError;
|
|
69193
69990
|
/**
|
|
@@ -69273,7 +70070,7 @@ export type BrowserGetSessionErrors = {
|
|
|
69273
70070
|
*/
|
|
69274
70071
|
402: BrowserError;
|
|
69275
70072
|
/**
|
|
69276
|
-
* PERMISSION_DENIED /
|
|
70073
|
+
* PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
|
|
69277
70074
|
*/
|
|
69278
70075
|
403: BrowserError;
|
|
69279
70076
|
/**
|
|
@@ -69355,7 +70152,7 @@ export type BrowserCloseSessionErrors = {
|
|
|
69355
70152
|
*/
|
|
69356
70153
|
402: BrowserError;
|
|
69357
70154
|
/**
|
|
69358
|
-
* PERMISSION_DENIED /
|
|
70155
|
+
* PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
|
|
69359
70156
|
*/
|
|
69360
70157
|
403: BrowserError;
|
|
69361
70158
|
/**
|
|
@@ -69432,7 +70229,7 @@ export type BrowserGetDebugErrors = {
|
|
|
69432
70229
|
*/
|
|
69433
70230
|
402: BrowserError;
|
|
69434
70231
|
/**
|
|
69435
|
-
* PERMISSION_DENIED /
|
|
70232
|
+
* PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
|
|
69436
70233
|
*/
|
|
69437
70234
|
403: BrowserError;
|
|
69438
70235
|
/**
|
|
@@ -69522,7 +70319,7 @@ export type BrowserListEventsErrors = {
|
|
|
69522
70319
|
*/
|
|
69523
70320
|
402: BrowserError;
|
|
69524
70321
|
/**
|
|
69525
|
-
* PERMISSION_DENIED /
|
|
70322
|
+
* PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
|
|
69526
70323
|
*/
|
|
69527
70324
|
403: BrowserError;
|
|
69528
70325
|
/**
|
|
@@ -69805,7 +70602,7 @@ export type BrowserRunPageActionErrors = {
|
|
|
69805
70602
|
*/
|
|
69806
70603
|
402: BrowserError;
|
|
69807
70604
|
/**
|
|
69808
|
-
* PERMISSION_DENIED /
|
|
70605
|
+
* PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
|
|
69809
70606
|
*/
|
|
69810
70607
|
403: BrowserError;
|
|
69811
70608
|
/**
|
|
@@ -70027,7 +70824,7 @@ export type BrowserRequestHandoffErrors = {
|
|
|
70027
70824
|
*/
|
|
70028
70825
|
402: BrowserError;
|
|
70029
70826
|
/**
|
|
70030
|
-
* PERMISSION_DENIED /
|
|
70827
|
+
* PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
|
|
70031
70828
|
*/
|
|
70032
70829
|
403: BrowserError;
|
|
70033
70830
|
/**
|
|
@@ -70104,7 +70901,7 @@ export type BrowserCompleteHandoffErrors = {
|
|
|
70104
70901
|
*/
|
|
70105
70902
|
402: BrowserError;
|
|
70106
70903
|
/**
|
|
70107
|
-
* PERMISSION_DENIED /
|
|
70904
|
+
* PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
|
|
70108
70905
|
*/
|
|
70109
70906
|
403: BrowserError;
|
|
70110
70907
|
/**
|
|
@@ -70190,7 +70987,7 @@ export type BrowserViewerHeartbeatErrors = {
|
|
|
70190
70987
|
*/
|
|
70191
70988
|
402: BrowserError;
|
|
70192
70989
|
/**
|
|
70193
|
-
* PERMISSION_DENIED /
|
|
70990
|
+
* PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
|
|
70194
70991
|
*/
|
|
70195
70992
|
403: BrowserError;
|
|
70196
70993
|
/**
|
|
@@ -70272,7 +71069,7 @@ export type BrowserGetSessionFrameErrors = {
|
|
|
70272
71069
|
*/
|
|
70273
71070
|
402: BrowserError;
|
|
70274
71071
|
/**
|
|
70275
|
-
* PERMISSION_DENIED /
|
|
71072
|
+
* PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
|
|
70276
71073
|
*/
|
|
70277
71074
|
403: BrowserError;
|
|
70278
71075
|
/**
|
|
@@ -70357,7 +71154,7 @@ export type BrowserListContextsErrors = {
|
|
|
70357
71154
|
*/
|
|
70358
71155
|
402: BrowserError;
|
|
70359
71156
|
/**
|
|
70360
|
-
* PERMISSION_DENIED /
|
|
71157
|
+
* PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
|
|
70361
71158
|
*/
|
|
70362
71159
|
403: BrowserError;
|
|
70363
71160
|
/**
|
|
@@ -70434,331 +71231,42 @@ export type BrowserCreateContextData = {
|
|
|
70434
71231
|
labels?: {
|
|
70435
71232
|
[key: string]: string;
|
|
70436
71233
|
};
|
|
70437
|
-
};
|
|
70438
|
-
path?: never;
|
|
70439
|
-
query?: never;
|
|
70440
|
-
url: '/browser/v1/contexts';
|
|
70441
|
-
};
|
|
70442
|
-
export type BrowserCreateContextErrors = {
|
|
70443
|
-
/**
|
|
70444
|
-
* INVALID_PARAMS / INVALID_FILTER / INVALID_PAGE_TOKEN
|
|
70445
|
-
*/
|
|
70446
|
-
400: BrowserError;
|
|
70447
|
-
/**
|
|
70448
|
-
* UNAUTHENTICATED / CONNECT_SIGNATURE_INVALID
|
|
70449
|
-
*/
|
|
70450
|
-
401: BrowserError;
|
|
70451
|
-
/**
|
|
70452
|
-
* INSUFFICIENT_BALANCE / QUOTA_EXHAUSTED
|
|
70453
|
-
*/
|
|
70454
|
-
402: BrowserError;
|
|
70455
|
-
/**
|
|
70456
|
-
* PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
|
|
70457
|
-
*/
|
|
70458
|
-
403: BrowserError;
|
|
70459
|
-
/**
|
|
70460
|
-
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
70461
|
-
*/
|
|
70462
|
-
404: BrowserError;
|
|
70463
|
-
/**
|
|
70464
|
-
* SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
70465
|
-
*/
|
|
70466
|
-
409: BrowserError;
|
|
70467
|
-
/**
|
|
70468
|
-
* BROWSER_REVOKED
|
|
70469
|
-
*/
|
|
70470
|
-
410: BrowserError;
|
|
70471
|
-
/**
|
|
70472
|
-
* ACTION_RESULT_TOO_LARGE
|
|
70473
|
-
*/
|
|
70474
|
-
413: BrowserError;
|
|
70475
|
-
/**
|
|
70476
|
-
* CONCURRENCY_LIMIT / RATE_LIMITED / PROVIDER_CAPACITY
|
|
70477
|
-
*/
|
|
70478
|
-
429: BrowserError;
|
|
70479
|
-
/**
|
|
70480
|
-
* INTERNAL
|
|
70481
|
-
*/
|
|
70482
|
-
500: BrowserError;
|
|
70483
|
-
/**
|
|
70484
|
-
* NOT_IMPLEMENTED / PROVIDER_UNSUPPORTED
|
|
70485
|
-
*/
|
|
70486
|
-
501: BrowserError;
|
|
70487
|
-
/**
|
|
70488
|
-
* PROVIDER_FAILED
|
|
70489
|
-
*/
|
|
70490
|
-
502: BrowserError;
|
|
70491
|
-
/**
|
|
70492
|
-
* BROWSER_OFFLINE / SERVICE_UNAVAILABLE
|
|
70493
|
-
*/
|
|
70494
|
-
503: BrowserError;
|
|
70495
|
-
/**
|
|
70496
|
-
* ACTION_TIMEOUT
|
|
70497
|
-
*/
|
|
70498
|
-
504: BrowserError;
|
|
70499
|
-
};
|
|
70500
|
-
export type BrowserCreateContextError = BrowserCreateContextErrors[keyof BrowserCreateContextErrors];
|
|
70501
|
-
export type BrowserCreateContextResponses = {
|
|
70502
|
-
/**
|
|
70503
|
-
* 请求成功。
|
|
70504
|
-
*/
|
|
70505
|
-
201: BrowserContextCreateResult;
|
|
70506
|
-
};
|
|
70507
|
-
export type BrowserCreateContextResponse = BrowserCreateContextResponses[keyof BrowserCreateContextResponses];
|
|
70508
|
-
export type BrowserDeleteContextData = {
|
|
70509
|
-
body?: never;
|
|
70510
|
-
path: {
|
|
70511
71234
|
/**
|
|
70512
|
-
*
|
|
71235
|
+
* 给登录态绑定一个固定的外部代理(如住宅 IP),使用这个登录态的会话没有写 proxies 时都经它出网,让同一账号始终从同一个出口地址出去。只存保管库引用(password_secret),不存密码;会话自己写了 proxies 时以会话的为准。需要组织已开通容器后端,否则返回 501 PROVIDER_UNSUPPORTED。
|
|
70513
71236
|
*/
|
|
70514
|
-
|
|
70515
|
-
|
|
70516
|
-
|
|
70517
|
-
|
|
70518
|
-
|
|
70519
|
-
|
|
70520
|
-
|
|
70521
|
-
|
|
70522
|
-
|
|
70523
|
-
|
|
70524
|
-
|
|
70525
|
-
|
|
70526
|
-
|
|
70527
|
-
|
|
70528
|
-
|
|
70529
|
-
|
|
70530
|
-
|
|
70531
|
-
|
|
70532
|
-
|
|
70533
|
-
|
|
70534
|
-
|
|
70535
|
-
|
|
70536
|
-
|
|
70537
|
-
|
|
70538
|
-
|
|
70539
|
-
|
|
70540
|
-
/**
|
|
70541
|
-
* SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
70542
|
-
*/
|
|
70543
|
-
409: BrowserError;
|
|
70544
|
-
/**
|
|
70545
|
-
* BROWSER_REVOKED
|
|
70546
|
-
*/
|
|
70547
|
-
410: BrowserError;
|
|
70548
|
-
/**
|
|
70549
|
-
* ACTION_RESULT_TOO_LARGE
|
|
70550
|
-
*/
|
|
70551
|
-
413: BrowserError;
|
|
70552
|
-
/**
|
|
70553
|
-
* CONCURRENCY_LIMIT / RATE_LIMITED / PROVIDER_CAPACITY
|
|
70554
|
-
*/
|
|
70555
|
-
429: BrowserError;
|
|
70556
|
-
/**
|
|
70557
|
-
* INTERNAL
|
|
70558
|
-
*/
|
|
70559
|
-
500: BrowserError;
|
|
70560
|
-
/**
|
|
70561
|
-
* NOT_IMPLEMENTED / PROVIDER_UNSUPPORTED
|
|
70562
|
-
*/
|
|
70563
|
-
501: BrowserError;
|
|
70564
|
-
/**
|
|
70565
|
-
* PROVIDER_FAILED
|
|
70566
|
-
*/
|
|
70567
|
-
502: BrowserError;
|
|
70568
|
-
/**
|
|
70569
|
-
* BROWSER_OFFLINE / SERVICE_UNAVAILABLE
|
|
70570
|
-
*/
|
|
70571
|
-
503: BrowserError;
|
|
70572
|
-
/**
|
|
70573
|
-
* ACTION_TIMEOUT
|
|
70574
|
-
*/
|
|
70575
|
-
504: BrowserError;
|
|
70576
|
-
};
|
|
70577
|
-
export type BrowserDeleteContextError = BrowserDeleteContextErrors[keyof BrowserDeleteContextErrors];
|
|
70578
|
-
export type BrowserDeleteContextResponses = {
|
|
70579
|
-
/**
|
|
70580
|
-
* 请求成功。
|
|
70581
|
-
*/
|
|
70582
|
-
200: {
|
|
70583
|
-
/**
|
|
70584
|
-
* 登录态及保存内容已删除,成功时固定返回 true。
|
|
70585
|
-
*/
|
|
70586
|
-
deleted: true;
|
|
70587
|
-
};
|
|
70588
|
-
};
|
|
70589
|
-
export type BrowserDeleteContextResponse = BrowserDeleteContextResponses[keyof BrowserDeleteContextResponses];
|
|
70590
|
-
export type BrowserGetContextData = {
|
|
70591
|
-
body?: never;
|
|
70592
|
-
path: {
|
|
70593
|
-
/**
|
|
70594
|
-
* 登录态 ID;使用创建或列出登录态返回的 id,以 bsc_ 开头。
|
|
70595
|
-
*/
|
|
70596
|
-
contextId: string;
|
|
70597
|
-
};
|
|
70598
|
-
query?: never;
|
|
70599
|
-
url: '/browser/v1/contexts/{contextId}';
|
|
70600
|
-
};
|
|
70601
|
-
export type BrowserGetContextErrors = {
|
|
70602
|
-
/**
|
|
70603
|
-
* INVALID_PARAMS / INVALID_FILTER / INVALID_PAGE_TOKEN
|
|
70604
|
-
*/
|
|
70605
|
-
400: BrowserError;
|
|
70606
|
-
/**
|
|
70607
|
-
* UNAUTHENTICATED / CONNECT_SIGNATURE_INVALID
|
|
70608
|
-
*/
|
|
70609
|
-
401: BrowserError;
|
|
70610
|
-
/**
|
|
70611
|
-
* INSUFFICIENT_BALANCE / QUOTA_EXHAUSTED
|
|
70612
|
-
*/
|
|
70613
|
-
402: BrowserError;
|
|
70614
|
-
/**
|
|
70615
|
-
* PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
|
|
70616
|
-
*/
|
|
70617
|
-
403: BrowserError;
|
|
70618
|
-
/**
|
|
70619
|
-
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
70620
|
-
*/
|
|
70621
|
-
404: BrowserError;
|
|
70622
|
-
/**
|
|
70623
|
-
* SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
70624
|
-
*/
|
|
70625
|
-
409: BrowserError;
|
|
70626
|
-
/**
|
|
70627
|
-
* BROWSER_REVOKED
|
|
70628
|
-
*/
|
|
70629
|
-
410: BrowserError;
|
|
70630
|
-
/**
|
|
70631
|
-
* ACTION_RESULT_TOO_LARGE
|
|
70632
|
-
*/
|
|
70633
|
-
413: BrowserError;
|
|
70634
|
-
/**
|
|
70635
|
-
* CONCURRENCY_LIMIT / RATE_LIMITED / PROVIDER_CAPACITY
|
|
70636
|
-
*/
|
|
70637
|
-
429: BrowserError;
|
|
70638
|
-
/**
|
|
70639
|
-
* INTERNAL
|
|
70640
|
-
*/
|
|
70641
|
-
500: BrowserError;
|
|
70642
|
-
/**
|
|
70643
|
-
* NOT_IMPLEMENTED / PROVIDER_UNSUPPORTED
|
|
70644
|
-
*/
|
|
70645
|
-
501: BrowserError;
|
|
70646
|
-
/**
|
|
70647
|
-
* PROVIDER_FAILED
|
|
70648
|
-
*/
|
|
70649
|
-
502: BrowserError;
|
|
70650
|
-
/**
|
|
70651
|
-
* BROWSER_OFFLINE / SERVICE_UNAVAILABLE
|
|
70652
|
-
*/
|
|
70653
|
-
503: BrowserError;
|
|
70654
|
-
/**
|
|
70655
|
-
* ACTION_TIMEOUT
|
|
70656
|
-
*/
|
|
70657
|
-
504: BrowserError;
|
|
70658
|
-
};
|
|
70659
|
-
export type BrowserGetContextError = BrowserGetContextErrors[keyof BrowserGetContextErrors];
|
|
70660
|
-
export type BrowserGetContextResponses = {
|
|
70661
|
-
/**
|
|
70662
|
-
* 请求成功。
|
|
70663
|
-
*/
|
|
70664
|
-
200: BrowserContext;
|
|
70665
|
-
};
|
|
70666
|
-
export type BrowserGetContextResponse = BrowserGetContextResponses[keyof BrowserGetContextResponses];
|
|
70667
|
-
export type BrowserUpdateContextData = {
|
|
70668
|
-
body: {
|
|
70669
|
-
/**
|
|
70670
|
-
* 登录态名称;非空时为 1–128 个 ASCII 字母、数字或 . _ : -,在当前账户内唯一;空字符串表示不设名称或清除名称。
|
|
70671
|
-
*/
|
|
70672
|
-
name?: '' | unknown;
|
|
70673
|
-
/**
|
|
70674
|
-
* 自定义字符串标签;最多 32 项,键最多 128 个 UTF-8 字节,值最多 1024 个 UTF-8 字节。 更新时整体替换;空对象清除标签,省略则保留。
|
|
70675
|
-
*/
|
|
70676
|
-
labels?: {
|
|
70677
|
-
[key: string]: string;
|
|
71237
|
+
proxy?: {
|
|
71238
|
+
/**
|
|
71239
|
+
* 固定为 external:经一个你自己的外部 HTTP 代理出网。
|
|
71240
|
+
*/
|
|
71241
|
+
type: 'external';
|
|
71242
|
+
/**
|
|
71243
|
+
* 代理地址,host:port 或 http://host:port;只支持 HTTP 代理,不接受 socks5:// 等协议,也不接受 localhost 和内网、链路本地地址。
|
|
71244
|
+
*/
|
|
71245
|
+
server: string;
|
|
71246
|
+
/**
|
|
71247
|
+
* 代理用户名;有密码时才能填,填了就必须同时给出密码。
|
|
71248
|
+
*/
|
|
71249
|
+
username?: string;
|
|
71250
|
+
/**
|
|
71251
|
+
* 必须用这种形式:引用保管库里的代理密码,只在连接这个代理的主机时兑换,不会交给网页。登录态里只存引用,传明文 password 返回 400 INVALID_PARAMS。
|
|
71252
|
+
*/
|
|
71253
|
+
password_secret?: {
|
|
71254
|
+
/**
|
|
71255
|
+
* 保存代理密码的保管库 ID,以 vlt_ 开头。
|
|
71256
|
+
*/
|
|
71257
|
+
vault_id: string;
|
|
71258
|
+
/**
|
|
71259
|
+
* 保管库中该密码的密钥 ID(不是密码本身)。
|
|
71260
|
+
*/
|
|
71261
|
+
secret: string;
|
|
71262
|
+
};
|
|
70678
71263
|
};
|
|
70679
71264
|
};
|
|
70680
|
-
path: {
|
|
70681
|
-
/**
|
|
70682
|
-
* 登录态 ID;使用创建或列出登录态返回的 id,以 bsc_ 开头。
|
|
70683
|
-
*/
|
|
70684
|
-
contextId: string;
|
|
70685
|
-
};
|
|
70686
|
-
query?: never;
|
|
70687
|
-
url: '/browser/v1/contexts/{contextId}';
|
|
70688
|
-
};
|
|
70689
|
-
export type BrowserUpdateContextErrors = {
|
|
70690
|
-
/**
|
|
70691
|
-
* INVALID_PARAMS / INVALID_FILTER / INVALID_PAGE_TOKEN
|
|
70692
|
-
*/
|
|
70693
|
-
400: BrowserError;
|
|
70694
|
-
/**
|
|
70695
|
-
* UNAUTHENTICATED / CONNECT_SIGNATURE_INVALID
|
|
70696
|
-
*/
|
|
70697
|
-
401: BrowserError;
|
|
70698
|
-
/**
|
|
70699
|
-
* INSUFFICIENT_BALANCE / QUOTA_EXHAUSTED
|
|
70700
|
-
*/
|
|
70701
|
-
402: BrowserError;
|
|
70702
|
-
/**
|
|
70703
|
-
* PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
|
|
70704
|
-
*/
|
|
70705
|
-
403: BrowserError;
|
|
70706
|
-
/**
|
|
70707
|
-
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
70708
|
-
*/
|
|
70709
|
-
404: BrowserError;
|
|
70710
|
-
/**
|
|
70711
|
-
* SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
70712
|
-
*/
|
|
70713
|
-
409: BrowserError;
|
|
70714
|
-
/**
|
|
70715
|
-
* BROWSER_REVOKED
|
|
70716
|
-
*/
|
|
70717
|
-
410: BrowserError;
|
|
70718
|
-
/**
|
|
70719
|
-
* ACTION_RESULT_TOO_LARGE
|
|
70720
|
-
*/
|
|
70721
|
-
413: BrowserError;
|
|
70722
|
-
/**
|
|
70723
|
-
* CONCURRENCY_LIMIT / RATE_LIMITED / PROVIDER_CAPACITY
|
|
70724
|
-
*/
|
|
70725
|
-
429: BrowserError;
|
|
70726
|
-
/**
|
|
70727
|
-
* INTERNAL
|
|
70728
|
-
*/
|
|
70729
|
-
500: BrowserError;
|
|
70730
|
-
/**
|
|
70731
|
-
* NOT_IMPLEMENTED / PROVIDER_UNSUPPORTED
|
|
70732
|
-
*/
|
|
70733
|
-
501: BrowserError;
|
|
70734
|
-
/**
|
|
70735
|
-
* PROVIDER_FAILED
|
|
70736
|
-
*/
|
|
70737
|
-
502: BrowserError;
|
|
70738
|
-
/**
|
|
70739
|
-
* BROWSER_OFFLINE / SERVICE_UNAVAILABLE
|
|
70740
|
-
*/
|
|
70741
|
-
503: BrowserError;
|
|
70742
|
-
/**
|
|
70743
|
-
* ACTION_TIMEOUT
|
|
70744
|
-
*/
|
|
70745
|
-
504: BrowserError;
|
|
70746
|
-
};
|
|
70747
|
-
export type BrowserUpdateContextError = BrowserUpdateContextErrors[keyof BrowserUpdateContextErrors];
|
|
70748
|
-
export type BrowserUpdateContextResponses = {
|
|
70749
|
-
/**
|
|
70750
|
-
* 请求成功。
|
|
70751
|
-
*/
|
|
70752
|
-
200: BrowserContext;
|
|
70753
|
-
};
|
|
70754
|
-
export type BrowserUpdateContextResponse = BrowserUpdateContextResponses[keyof BrowserUpdateContextResponses];
|
|
70755
|
-
export type BrowserCreateByobPairingData = {
|
|
70756
|
-
body?: never;
|
|
70757
71265
|
path?: never;
|
|
70758
71266
|
query?: never;
|
|
70759
|
-
url: '/browser/v1/
|
|
71267
|
+
url: '/browser/v1/contexts';
|
|
70760
71268
|
};
|
|
70761
|
-
export type
|
|
71269
|
+
export type BrowserCreateContextErrors = {
|
|
70762
71270
|
/**
|
|
70763
71271
|
* INVALID_PARAMS / INVALID_FILTER / INVALID_PAGE_TOKEN
|
|
70764
71272
|
*/
|
|
@@ -70772,7 +71280,7 @@ export type BrowserCreateByobPairingErrors = {
|
|
|
70772
71280
|
*/
|
|
70773
71281
|
402: BrowserError;
|
|
70774
71282
|
/**
|
|
70775
|
-
* PERMISSION_DENIED /
|
|
71283
|
+
* PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
|
|
70776
71284
|
*/
|
|
70777
71285
|
403: BrowserError;
|
|
70778
71286
|
/**
|
|
@@ -70816,30 +71324,26 @@ export type BrowserCreateByobPairingErrors = {
|
|
|
70816
71324
|
*/
|
|
70817
71325
|
504: BrowserError;
|
|
70818
71326
|
};
|
|
70819
|
-
export type
|
|
70820
|
-
export type
|
|
71327
|
+
export type BrowserCreateContextError = BrowserCreateContextErrors[keyof BrowserCreateContextErrors];
|
|
71328
|
+
export type BrowserCreateContextResponses = {
|
|
70821
71329
|
/**
|
|
70822
71330
|
* 请求成功。
|
|
70823
71331
|
*/
|
|
70824
|
-
201:
|
|
71332
|
+
201: BrowserContextCreateResult;
|
|
70825
71333
|
};
|
|
70826
|
-
export type
|
|
70827
|
-
export type
|
|
71334
|
+
export type BrowserCreateContextResponse = BrowserCreateContextResponses[keyof BrowserCreateContextResponses];
|
|
71335
|
+
export type BrowserDeleteContextData = {
|
|
70828
71336
|
body?: never;
|
|
70829
|
-
path
|
|
70830
|
-
query?: {
|
|
70831
|
-
/**
|
|
70832
|
-
* 上一页返回的 nextCursor,原样传入;省略时读取第一页。
|
|
70833
|
-
*/
|
|
70834
|
-
cursor?: string;
|
|
71337
|
+
path: {
|
|
70835
71338
|
/**
|
|
70836
|
-
*
|
|
71339
|
+
* 登录态 ID;使用创建或列出登录态返回的 id,以 bsc_ 开头。
|
|
70837
71340
|
*/
|
|
70838
|
-
|
|
71341
|
+
contextId: string;
|
|
70839
71342
|
};
|
|
70840
|
-
|
|
71343
|
+
query?: never;
|
|
71344
|
+
url: '/browser/v1/contexts/{contextId}';
|
|
70841
71345
|
};
|
|
70842
|
-
export type
|
|
71346
|
+
export type BrowserDeleteContextErrors = {
|
|
70843
71347
|
/**
|
|
70844
71348
|
* INVALID_PARAMS / INVALID_FILTER / INVALID_PAGE_TOKEN
|
|
70845
71349
|
*/
|
|
@@ -70853,7 +71357,7 @@ export type BrowserListByobBrowsersErrors = {
|
|
|
70853
71357
|
*/
|
|
70854
71358
|
402: BrowserError;
|
|
70855
71359
|
/**
|
|
70856
|
-
* PERMISSION_DENIED /
|
|
71360
|
+
* PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
|
|
70857
71361
|
*/
|
|
70858
71362
|
403: BrowserError;
|
|
70859
71363
|
/**
|
|
@@ -70897,35 +71401,31 @@ export type BrowserListByobBrowsersErrors = {
|
|
|
70897
71401
|
*/
|
|
70898
71402
|
504: BrowserError;
|
|
70899
71403
|
};
|
|
70900
|
-
export type
|
|
70901
|
-
export type
|
|
71404
|
+
export type BrowserDeleteContextError = BrowserDeleteContextErrors[keyof BrowserDeleteContextErrors];
|
|
71405
|
+
export type BrowserDeleteContextResponses = {
|
|
70902
71406
|
/**
|
|
70903
|
-
*
|
|
71407
|
+
* 请求成功。
|
|
70904
71408
|
*/
|
|
70905
71409
|
200: {
|
|
70906
71410
|
/**
|
|
70907
|
-
*
|
|
70908
|
-
*/
|
|
70909
|
-
data: Array<BrowserByobBrowser>;
|
|
70910
|
-
/**
|
|
70911
|
-
* 下一页游标;原样传入 cursor,null 表示没有更多结果。
|
|
71411
|
+
* 登录态及保存内容已删除,成功时固定返回 true。
|
|
70912
71412
|
*/
|
|
70913
|
-
|
|
71413
|
+
deleted: true;
|
|
70914
71414
|
};
|
|
70915
71415
|
};
|
|
70916
|
-
export type
|
|
70917
|
-
export type
|
|
71416
|
+
export type BrowserDeleteContextResponse = BrowserDeleteContextResponses[keyof BrowserDeleteContextResponses];
|
|
71417
|
+
export type BrowserGetContextData = {
|
|
70918
71418
|
body?: never;
|
|
70919
71419
|
path: {
|
|
70920
71420
|
/**
|
|
70921
|
-
*
|
|
71421
|
+
* 登录态 ID;使用创建或列出登录态返回的 id,以 bsc_ 开头。
|
|
70922
71422
|
*/
|
|
70923
|
-
|
|
71423
|
+
contextId: string;
|
|
70924
71424
|
};
|
|
70925
71425
|
query?: never;
|
|
70926
|
-
url: '/browser/v1/
|
|
71426
|
+
url: '/browser/v1/contexts/{contextId}';
|
|
70927
71427
|
};
|
|
70928
|
-
export type
|
|
71428
|
+
export type BrowserGetContextErrors = {
|
|
70929
71429
|
/**
|
|
70930
71430
|
* INVALID_PARAMS / INVALID_FILTER / INVALID_PAGE_TOKEN
|
|
70931
71431
|
*/
|
|
@@ -70939,7 +71439,7 @@ export type BrowserGetByobBrowserErrors = {
|
|
|
70939
71439
|
*/
|
|
70940
71440
|
402: BrowserError;
|
|
70941
71441
|
/**
|
|
70942
|
-
* PERMISSION_DENIED /
|
|
71442
|
+
* PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
|
|
70943
71443
|
*/
|
|
70944
71444
|
403: BrowserError;
|
|
70945
71445
|
/**
|
|
@@ -70983,39 +71483,67 @@ export type BrowserGetByobBrowserErrors = {
|
|
|
70983
71483
|
*/
|
|
70984
71484
|
504: BrowserError;
|
|
70985
71485
|
};
|
|
70986
|
-
export type
|
|
70987
|
-
export type
|
|
71486
|
+
export type BrowserGetContextError = BrowserGetContextErrors[keyof BrowserGetContextErrors];
|
|
71487
|
+
export type BrowserGetContextResponses = {
|
|
70988
71488
|
/**
|
|
70989
71489
|
* 请求成功。
|
|
70990
71490
|
*/
|
|
70991
|
-
200:
|
|
71491
|
+
200: BrowserContext;
|
|
70992
71492
|
};
|
|
70993
|
-
export type
|
|
70994
|
-
export type
|
|
71493
|
+
export type BrowserGetContextResponse = BrowserGetContextResponses[keyof BrowserGetContextResponses];
|
|
71494
|
+
export type BrowserUpdateContextData = {
|
|
70995
71495
|
body: {
|
|
70996
71496
|
/**
|
|
70997
|
-
*
|
|
71497
|
+
* 登录态名称;非空时为 1–128 个 ASCII 字母、数字或 . _ : -,在当前账户内唯一;空字符串表示不设名称或清除名称。
|
|
70998
71498
|
*/
|
|
70999
|
-
name?:
|
|
71499
|
+
name?: '' | unknown;
|
|
71000
71500
|
/**
|
|
71001
|
-
*
|
|
71501
|
+
* 自定义字符串标签;最多 32 项,键最多 128 个 UTF-8 字节,值最多 1024 个 UTF-8 字节。 更新时整体替换;空对象清除标签,省略则保留。
|
|
71002
71502
|
*/
|
|
71003
|
-
|
|
71503
|
+
labels?: {
|
|
71504
|
+
[key: string]: string;
|
|
71505
|
+
};
|
|
71004
71506
|
/**
|
|
71005
|
-
*
|
|
71507
|
+
* 给登录态绑定一个固定的外部代理(如住宅 IP),使用这个登录态的会话没有写 proxies 时都经它出网,让同一账号始终从同一个出口地址出去。只存保管库引用(password_secret),不存密码;会话自己写了 proxies 时以会话的为准。需要组织已开通容器后端,否则返回 501 PROVIDER_UNSUPPORTED。 更新时传 null 解除绑定,省略则保留原绑定。
|
|
71006
71508
|
*/
|
|
71007
|
-
|
|
71509
|
+
proxy?: {
|
|
71510
|
+
/**
|
|
71511
|
+
* 固定为 external:经一个你自己的外部 HTTP 代理出网。
|
|
71512
|
+
*/
|
|
71513
|
+
type: 'external';
|
|
71514
|
+
/**
|
|
71515
|
+
* 代理地址,host:port 或 http://host:port;只支持 HTTP 代理,不接受 socks5:// 等协议,也不接受 localhost 和内网、链路本地地址。
|
|
71516
|
+
*/
|
|
71517
|
+
server: string;
|
|
71518
|
+
/**
|
|
71519
|
+
* 代理用户名;有密码时才能填,填了就必须同时给出密码。
|
|
71520
|
+
*/
|
|
71521
|
+
username?: string;
|
|
71522
|
+
/**
|
|
71523
|
+
* 必须用这种形式:引用保管库里的代理密码,只在连接这个代理的主机时兑换,不会交给网页。登录态里只存引用,传明文 password 返回 400 INVALID_PARAMS。
|
|
71524
|
+
*/
|
|
71525
|
+
password_secret?: {
|
|
71526
|
+
/**
|
|
71527
|
+
* 保存代理密码的保管库 ID,以 vlt_ 开头。
|
|
71528
|
+
*/
|
|
71529
|
+
vault_id: string;
|
|
71530
|
+
/**
|
|
71531
|
+
* 保管库中该密码的密钥 ID(不是密码本身)。
|
|
71532
|
+
*/
|
|
71533
|
+
secret: string;
|
|
71534
|
+
};
|
|
71535
|
+
} | null;
|
|
71008
71536
|
};
|
|
71009
71537
|
path: {
|
|
71010
71538
|
/**
|
|
71011
|
-
*
|
|
71539
|
+
* 登录态 ID;使用创建或列出登录态返回的 id,以 bsc_ 开头。
|
|
71012
71540
|
*/
|
|
71013
|
-
|
|
71541
|
+
contextId: string;
|
|
71014
71542
|
};
|
|
71015
71543
|
query?: never;
|
|
71016
|
-
url: '/browser/v1/
|
|
71544
|
+
url: '/browser/v1/contexts/{contextId}';
|
|
71017
71545
|
};
|
|
71018
|
-
export type
|
|
71546
|
+
export type BrowserUpdateContextErrors = {
|
|
71019
71547
|
/**
|
|
71020
71548
|
* INVALID_PARAMS / INVALID_FILTER / INVALID_PAGE_TOKEN
|
|
71021
71549
|
*/
|
|
@@ -71029,7 +71557,7 @@ export type BrowserUpdateByobBrowserErrors = {
|
|
|
71029
71557
|
*/
|
|
71030
71558
|
402: BrowserError;
|
|
71031
71559
|
/**
|
|
71032
|
-
* PERMISSION_DENIED /
|
|
71560
|
+
* PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
|
|
71033
71561
|
*/
|
|
71034
71562
|
403: BrowserError;
|
|
71035
71563
|
/**
|
|
@@ -71073,26 +71601,21 @@ export type BrowserUpdateByobBrowserErrors = {
|
|
|
71073
71601
|
*/
|
|
71074
71602
|
504: BrowserError;
|
|
71075
71603
|
};
|
|
71076
|
-
export type
|
|
71077
|
-
export type
|
|
71604
|
+
export type BrowserUpdateContextError = BrowserUpdateContextErrors[keyof BrowserUpdateContextErrors];
|
|
71605
|
+
export type BrowserUpdateContextResponses = {
|
|
71078
71606
|
/**
|
|
71079
71607
|
* 请求成功。
|
|
71080
71608
|
*/
|
|
71081
|
-
200:
|
|
71609
|
+
200: BrowserContext;
|
|
71082
71610
|
};
|
|
71083
|
-
export type
|
|
71084
|
-
export type
|
|
71611
|
+
export type BrowserUpdateContextResponse = BrowserUpdateContextResponses[keyof BrowserUpdateContextResponses];
|
|
71612
|
+
export type BrowserCreateByobPairingData = {
|
|
71085
71613
|
body?: never;
|
|
71086
|
-
path
|
|
71087
|
-
/**
|
|
71088
|
-
* 自带浏览器 ID,以 byb_ 开头;使用配对认领或列出自带浏览器返回的 id。
|
|
71089
|
-
*/
|
|
71090
|
-
browser_id: string;
|
|
71091
|
-
};
|
|
71614
|
+
path?: never;
|
|
71092
71615
|
query?: never;
|
|
71093
|
-
url: '/browser/v1/byob/
|
|
71616
|
+
url: '/browser/v1/byob/pairings';
|
|
71094
71617
|
};
|
|
71095
|
-
export type
|
|
71618
|
+
export type BrowserCreateByobPairingErrors = {
|
|
71096
71619
|
/**
|
|
71097
71620
|
* INVALID_PARAMS / INVALID_FILTER / INVALID_PAGE_TOKEN
|
|
71098
71621
|
*/
|
|
@@ -71106,7 +71629,7 @@ export type BrowserDisconnectByobBrowserErrors = {
|
|
|
71106
71629
|
*/
|
|
71107
71630
|
402: BrowserError;
|
|
71108
71631
|
/**
|
|
71109
|
-
* PERMISSION_DENIED /
|
|
71632
|
+
* PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
|
|
71110
71633
|
*/
|
|
71111
71634
|
403: BrowserError;
|
|
71112
71635
|
/**
|
|
@@ -71150,26 +71673,30 @@ export type BrowserDisconnectByobBrowserErrors = {
|
|
|
71150
71673
|
*/
|
|
71151
71674
|
504: BrowserError;
|
|
71152
71675
|
};
|
|
71153
|
-
export type
|
|
71154
|
-
export type
|
|
71676
|
+
export type BrowserCreateByobPairingError = BrowserCreateByobPairingErrors[keyof BrowserCreateByobPairingErrors];
|
|
71677
|
+
export type BrowserCreateByobPairingResponses = {
|
|
71155
71678
|
/**
|
|
71156
71679
|
* 请求成功。
|
|
71157
71680
|
*/
|
|
71158
|
-
|
|
71681
|
+
201: BrowserByobPairing;
|
|
71159
71682
|
};
|
|
71160
|
-
export type
|
|
71161
|
-
export type
|
|
71683
|
+
export type BrowserCreateByobPairingResponse = BrowserCreateByobPairingResponses[keyof BrowserCreateByobPairingResponses];
|
|
71684
|
+
export type BrowserListByobBrowsersData = {
|
|
71162
71685
|
body?: never;
|
|
71163
|
-
path
|
|
71686
|
+
path?: never;
|
|
71687
|
+
query?: {
|
|
71164
71688
|
/**
|
|
71165
|
-
*
|
|
71689
|
+
* 上一页返回的 nextCursor,原样传入;省略时读取第一页。
|
|
71166
71690
|
*/
|
|
71167
|
-
|
|
71691
|
+
cursor?: string;
|
|
71692
|
+
/**
|
|
71693
|
+
* 每页最多返回的浏览器数量;默认 50,范围 1–100。
|
|
71694
|
+
*/
|
|
71695
|
+
limit?: number;
|
|
71168
71696
|
};
|
|
71169
|
-
|
|
71170
|
-
url: '/browser/v1/byob/pairings/{code}';
|
|
71697
|
+
url: '/browser/v1/byob/browsers';
|
|
71171
71698
|
};
|
|
71172
|
-
export type
|
|
71699
|
+
export type BrowserListByobBrowsersErrors = {
|
|
71173
71700
|
/**
|
|
71174
71701
|
* INVALID_PARAMS / INVALID_FILTER / INVALID_PAGE_TOKEN
|
|
71175
71702
|
*/
|
|
@@ -71183,7 +71710,7 @@ export type BrowserReadByobPairingErrors = {
|
|
|
71183
71710
|
*/
|
|
71184
71711
|
402: BrowserError;
|
|
71185
71712
|
/**
|
|
71186
|
-
* PERMISSION_DENIED /
|
|
71713
|
+
* PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
|
|
71187
71714
|
*/
|
|
71188
71715
|
403: BrowserError;
|
|
71189
71716
|
/**
|
|
@@ -71227,26 +71754,35 @@ export type BrowserReadByobPairingErrors = {
|
|
|
71227
71754
|
*/
|
|
71228
71755
|
504: BrowserError;
|
|
71229
71756
|
};
|
|
71230
|
-
export type
|
|
71231
|
-
export type
|
|
71757
|
+
export type BrowserListByobBrowsersError = BrowserListByobBrowsersErrors[keyof BrowserListByobBrowsersErrors];
|
|
71758
|
+
export type BrowserListByobBrowsersResponses = {
|
|
71232
71759
|
/**
|
|
71233
|
-
*
|
|
71760
|
+
* 分页列出的自带浏览器,按 ID 升序。
|
|
71234
71761
|
*/
|
|
71235
|
-
200:
|
|
71762
|
+
200: {
|
|
71763
|
+
/**
|
|
71764
|
+
* 本页的自带浏览器;已断开的不在列表里。
|
|
71765
|
+
*/
|
|
71766
|
+
data: Array<BrowserByobBrowser>;
|
|
71767
|
+
/**
|
|
71768
|
+
* 下一页游标;原样传入 cursor,null 表示没有更多结果。
|
|
71769
|
+
*/
|
|
71770
|
+
nextCursor: string | null;
|
|
71771
|
+
};
|
|
71236
71772
|
};
|
|
71237
|
-
export type
|
|
71238
|
-
export type
|
|
71239
|
-
body
|
|
71773
|
+
export type BrowserListByobBrowsersResponse = BrowserListByobBrowsersResponses[keyof BrowserListByobBrowsersResponses];
|
|
71774
|
+
export type BrowserGetByobBrowserData = {
|
|
71775
|
+
body?: never;
|
|
71240
71776
|
path: {
|
|
71241
71777
|
/**
|
|
71242
|
-
*
|
|
71778
|
+
* 自带浏览器 ID,以 byb_ 开头;使用配对认领或列出自带浏览器返回的 id。
|
|
71243
71779
|
*/
|
|
71244
|
-
|
|
71780
|
+
browser_id: string;
|
|
71245
71781
|
};
|
|
71246
71782
|
query?: never;
|
|
71247
|
-
url: '/browser/v1/byob/
|
|
71783
|
+
url: '/browser/v1/byob/browsers/{browser_id}';
|
|
71248
71784
|
};
|
|
71249
|
-
export type
|
|
71785
|
+
export type BrowserGetByobBrowserErrors = {
|
|
71250
71786
|
/**
|
|
71251
71787
|
* INVALID_PARAMS / INVALID_FILTER / INVALID_PAGE_TOKEN
|
|
71252
71788
|
*/
|
|
@@ -71260,7 +71796,7 @@ export type BrowserClaimByobPairingErrors = {
|
|
|
71260
71796
|
*/
|
|
71261
71797
|
402: BrowserError;
|
|
71262
71798
|
/**
|
|
71263
|
-
* PERMISSION_DENIED /
|
|
71799
|
+
* PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
|
|
71264
71800
|
*/
|
|
71265
71801
|
403: BrowserError;
|
|
71266
71802
|
/**
|
|
@@ -71304,58 +71840,31 @@ export type BrowserClaimByobPairingErrors = {
|
|
|
71304
71840
|
*/
|
|
71305
71841
|
504: BrowserError;
|
|
71306
71842
|
};
|
|
71307
|
-
export type
|
|
71308
|
-
export type
|
|
71843
|
+
export type BrowserGetByobBrowserError = BrowserGetByobBrowserErrors[keyof BrowserGetByobBrowserErrors];
|
|
71844
|
+
export type BrowserGetByobBrowserResponses = {
|
|
71309
71845
|
/**
|
|
71310
|
-
*
|
|
71846
|
+
* 请求成功。
|
|
71311
71847
|
*/
|
|
71312
|
-
|
|
71848
|
+
200: BrowserByobBrowser;
|
|
71313
71849
|
};
|
|
71314
|
-
export type
|
|
71315
|
-
export type
|
|
71316
|
-
body
|
|
71317
|
-
path?: never;
|
|
71318
|
-
query?: {
|
|
71319
|
-
/**
|
|
71320
|
-
* 浏览器会话 ID;使用创建或列出会话返回的 id,以 bss_ 开头。
|
|
71321
|
-
*/
|
|
71322
|
-
session?: string;
|
|
71850
|
+
export type BrowserGetByobBrowserResponse = BrowserGetByobBrowserResponses[keyof BrowserGetByobBrowserResponses];
|
|
71851
|
+
export type BrowserUpdateByobBrowserData = {
|
|
71852
|
+
body: {
|
|
71323
71853
|
/**
|
|
71324
|
-
*
|
|
71854
|
+
* 新的显示名称,1–80 个字符。
|
|
71325
71855
|
*/
|
|
71326
71856
|
name?: string;
|
|
71857
|
+
};
|
|
71858
|
+
path: {
|
|
71327
71859
|
/**
|
|
71328
|
-
*
|
|
71329
|
-
*/
|
|
71330
|
-
signingKey?: string;
|
|
71331
|
-
/**
|
|
71332
|
-
* 登录态 ID;使用创建或列出登录态返回的 id,以 bsc_ 开头。
|
|
71333
|
-
*/
|
|
71334
|
-
context?: string;
|
|
71335
|
-
/**
|
|
71336
|
-
* 关闭时保存登录态。
|
|
71337
|
-
*/
|
|
71338
|
-
persist?: boolean;
|
|
71339
|
-
/**
|
|
71340
|
-
* 新会话最长寿命,单位为秒,可含小数;连接已有会话时忽略。
|
|
71341
|
-
*/
|
|
71342
|
-
timeout?: number;
|
|
71343
|
-
/**
|
|
71344
|
-
* 新会话无人连接或观看后的释放等待时长,单位为毫秒;允许 0 或小数,连接已有会话时忽略。
|
|
71345
|
-
*/
|
|
71346
|
-
idle?: number;
|
|
71347
|
-
/**
|
|
71348
|
-
* JSON 编码的字符串标签对象。
|
|
71349
|
-
*/
|
|
71350
|
-
labels?: string;
|
|
71351
|
-
/**
|
|
71352
|
-
* JSON 编码的视口,例如 {"width":1280,"height":800}。
|
|
71860
|
+
* 自带浏览器 ID,以 byb_ 开头;使用配对认领或列出自带浏览器返回的 id。
|
|
71353
71861
|
*/
|
|
71354
|
-
|
|
71862
|
+
browser_id: string;
|
|
71355
71863
|
};
|
|
71356
|
-
|
|
71864
|
+
query?: never;
|
|
71865
|
+
url: '/browser/v1/byob/browsers/{browser_id}';
|
|
71357
71866
|
};
|
|
71358
|
-
export type
|
|
71867
|
+
export type BrowserUpdateByobBrowserErrors = {
|
|
71359
71868
|
/**
|
|
71360
71869
|
* INVALID_PARAMS / INVALID_FILTER / INVALID_PAGE_TOKEN
|
|
71361
71870
|
*/
|
|
@@ -71369,7 +71878,7 @@ export type BrowserConnectErrors = {
|
|
|
71369
71878
|
*/
|
|
71370
71879
|
402: BrowserError;
|
|
71371
71880
|
/**
|
|
71372
|
-
* PERMISSION_DENIED /
|
|
71881
|
+
* PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
|
|
71373
71882
|
*/
|
|
71374
71883
|
403: BrowserError;
|
|
71375
71884
|
/**
|
|
@@ -71413,28 +71922,26 @@ export type BrowserConnectErrors = {
|
|
|
71413
71922
|
*/
|
|
71414
71923
|
504: BrowserError;
|
|
71415
71924
|
};
|
|
71416
|
-
export type
|
|
71417
|
-
export type
|
|
71925
|
+
export type BrowserUpdateByobBrowserError = BrowserUpdateByobBrowserErrors[keyof BrowserUpdateByobBrowserErrors];
|
|
71926
|
+
export type BrowserUpdateByobBrowserResponses = {
|
|
71927
|
+
/**
|
|
71928
|
+
* 请求成功。
|
|
71929
|
+
*/
|
|
71930
|
+
200: BrowserByobBrowser;
|
|
71931
|
+
};
|
|
71932
|
+
export type BrowserUpdateByobBrowserResponse = BrowserUpdateByobBrowserResponses[keyof BrowserUpdateByobBrowserResponses];
|
|
71933
|
+
export type BrowserDisconnectByobBrowserData = {
|
|
71418
71934
|
body?: never;
|
|
71419
71935
|
path: {
|
|
71420
71936
|
/**
|
|
71421
|
-
*
|
|
71422
|
-
*/
|
|
71423
|
-
sessionId: string;
|
|
71424
|
-
/**
|
|
71425
|
-
* 实时观看地址中的标签页 ID;使用 debug 返回链接中的原值,_ 表示会话级画面。
|
|
71426
|
-
*/
|
|
71427
|
-
pageId: string;
|
|
71428
|
-
};
|
|
71429
|
-
query?: {
|
|
71430
|
-
/**
|
|
71431
|
-
* 实时观看地址自带的凭证。
|
|
71937
|
+
* 自带浏览器 ID,以 byb_ 开头;使用配对认领或列出自带浏览器返回的 id。
|
|
71432
71938
|
*/
|
|
71433
|
-
|
|
71939
|
+
browser_id: string;
|
|
71434
71940
|
};
|
|
71435
|
-
|
|
71941
|
+
query?: never;
|
|
71942
|
+
url: '/browser/v1/byob/browsers/{browser_id}/disconnect';
|
|
71436
71943
|
};
|
|
71437
|
-
export type
|
|
71944
|
+
export type BrowserDisconnectByobBrowserErrors = {
|
|
71438
71945
|
/**
|
|
71439
71946
|
* INVALID_PARAMS / INVALID_FILTER / INVALID_PAGE_TOKEN
|
|
71440
71947
|
*/
|
|
@@ -71448,7 +71955,349 @@ export type BrowserLiveViewErrors = {
|
|
|
71448
71955
|
*/
|
|
71449
71956
|
402: BrowserError;
|
|
71450
71957
|
/**
|
|
71451
|
-
* PERMISSION_DENIED /
|
|
71958
|
+
* PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
|
|
71959
|
+
*/
|
|
71960
|
+
403: BrowserError;
|
|
71961
|
+
/**
|
|
71962
|
+
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
71963
|
+
*/
|
|
71964
|
+
404: BrowserError;
|
|
71965
|
+
/**
|
|
71966
|
+
* SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
71967
|
+
*/
|
|
71968
|
+
409: BrowserError;
|
|
71969
|
+
/**
|
|
71970
|
+
* BROWSER_REVOKED
|
|
71971
|
+
*/
|
|
71972
|
+
410: BrowserError;
|
|
71973
|
+
/**
|
|
71974
|
+
* ACTION_RESULT_TOO_LARGE
|
|
71975
|
+
*/
|
|
71976
|
+
413: BrowserError;
|
|
71977
|
+
/**
|
|
71978
|
+
* CONCURRENCY_LIMIT / RATE_LIMITED / PROVIDER_CAPACITY
|
|
71979
|
+
*/
|
|
71980
|
+
429: BrowserError;
|
|
71981
|
+
/**
|
|
71982
|
+
* INTERNAL
|
|
71983
|
+
*/
|
|
71984
|
+
500: BrowserError;
|
|
71985
|
+
/**
|
|
71986
|
+
* NOT_IMPLEMENTED / PROVIDER_UNSUPPORTED
|
|
71987
|
+
*/
|
|
71988
|
+
501: BrowserError;
|
|
71989
|
+
/**
|
|
71990
|
+
* PROVIDER_FAILED
|
|
71991
|
+
*/
|
|
71992
|
+
502: BrowserError;
|
|
71993
|
+
/**
|
|
71994
|
+
* BROWSER_OFFLINE / SERVICE_UNAVAILABLE
|
|
71995
|
+
*/
|
|
71996
|
+
503: BrowserError;
|
|
71997
|
+
/**
|
|
71998
|
+
* ACTION_TIMEOUT
|
|
71999
|
+
*/
|
|
72000
|
+
504: BrowserError;
|
|
72001
|
+
};
|
|
72002
|
+
export type BrowserDisconnectByobBrowserError = BrowserDisconnectByobBrowserErrors[keyof BrowserDisconnectByobBrowserErrors];
|
|
72003
|
+
export type BrowserDisconnectByobBrowserResponses = {
|
|
72004
|
+
/**
|
|
72005
|
+
* 请求成功。
|
|
72006
|
+
*/
|
|
72007
|
+
200: BrowserByobBrowser;
|
|
72008
|
+
};
|
|
72009
|
+
export type BrowserDisconnectByobBrowserResponse = BrowserDisconnectByobBrowserResponses[keyof BrowserDisconnectByobBrowserResponses];
|
|
72010
|
+
export type BrowserReadByobPairingData = {
|
|
72011
|
+
body?: never;
|
|
72012
|
+
path: {
|
|
72013
|
+
/**
|
|
72014
|
+
* 8 位配对码,来自创建配对码的结果。
|
|
72015
|
+
*/
|
|
72016
|
+
code: string;
|
|
72017
|
+
};
|
|
72018
|
+
query?: never;
|
|
72019
|
+
url: '/browser/v1/byob/pairings/{code}';
|
|
72020
|
+
};
|
|
72021
|
+
export type BrowserReadByobPairingErrors = {
|
|
72022
|
+
/**
|
|
72023
|
+
* INVALID_PARAMS / INVALID_FILTER / INVALID_PAGE_TOKEN
|
|
72024
|
+
*/
|
|
72025
|
+
400: BrowserError;
|
|
72026
|
+
/**
|
|
72027
|
+
* UNAUTHENTICATED / CONNECT_SIGNATURE_INVALID
|
|
72028
|
+
*/
|
|
72029
|
+
401: BrowserError;
|
|
72030
|
+
/**
|
|
72031
|
+
* INSUFFICIENT_BALANCE / QUOTA_EXHAUSTED
|
|
72032
|
+
*/
|
|
72033
|
+
402: BrowserError;
|
|
72034
|
+
/**
|
|
72035
|
+
* PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
|
|
72036
|
+
*/
|
|
72037
|
+
403: BrowserError;
|
|
72038
|
+
/**
|
|
72039
|
+
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
72040
|
+
*/
|
|
72041
|
+
404: BrowserError;
|
|
72042
|
+
/**
|
|
72043
|
+
* SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
72044
|
+
*/
|
|
72045
|
+
409: BrowserError;
|
|
72046
|
+
/**
|
|
72047
|
+
* BROWSER_REVOKED
|
|
72048
|
+
*/
|
|
72049
|
+
410: BrowserError;
|
|
72050
|
+
/**
|
|
72051
|
+
* ACTION_RESULT_TOO_LARGE
|
|
72052
|
+
*/
|
|
72053
|
+
413: BrowserError;
|
|
72054
|
+
/**
|
|
72055
|
+
* CONCURRENCY_LIMIT / RATE_LIMITED / PROVIDER_CAPACITY
|
|
72056
|
+
*/
|
|
72057
|
+
429: BrowserError;
|
|
72058
|
+
/**
|
|
72059
|
+
* INTERNAL
|
|
72060
|
+
*/
|
|
72061
|
+
500: BrowserError;
|
|
72062
|
+
/**
|
|
72063
|
+
* NOT_IMPLEMENTED / PROVIDER_UNSUPPORTED
|
|
72064
|
+
*/
|
|
72065
|
+
501: BrowserError;
|
|
72066
|
+
/**
|
|
72067
|
+
* PROVIDER_FAILED
|
|
72068
|
+
*/
|
|
72069
|
+
502: BrowserError;
|
|
72070
|
+
/**
|
|
72071
|
+
* BROWSER_OFFLINE / SERVICE_UNAVAILABLE
|
|
72072
|
+
*/
|
|
72073
|
+
503: BrowserError;
|
|
72074
|
+
/**
|
|
72075
|
+
* ACTION_TIMEOUT
|
|
72076
|
+
*/
|
|
72077
|
+
504: BrowserError;
|
|
72078
|
+
};
|
|
72079
|
+
export type BrowserReadByobPairingError = BrowserReadByobPairingErrors[keyof BrowserReadByobPairingErrors];
|
|
72080
|
+
export type BrowserReadByobPairingResponses = {
|
|
72081
|
+
/**
|
|
72082
|
+
* 请求成功。
|
|
72083
|
+
*/
|
|
72084
|
+
200: BrowserByobPairingView;
|
|
72085
|
+
};
|
|
72086
|
+
export type BrowserReadByobPairingResponse = BrowserReadByobPairingResponses[keyof BrowserReadByobPairingResponses];
|
|
72087
|
+
export type BrowserClaimByobPairingData = {
|
|
72088
|
+
body: BrowserByobClaim;
|
|
72089
|
+
path: {
|
|
72090
|
+
/**
|
|
72091
|
+
* 8 位配对码,来自创建配对码的结果。
|
|
72092
|
+
*/
|
|
72093
|
+
code: string;
|
|
72094
|
+
};
|
|
72095
|
+
query?: never;
|
|
72096
|
+
url: '/browser/v1/byob/pairings/{code}/claim';
|
|
72097
|
+
};
|
|
72098
|
+
export type BrowserClaimByobPairingErrors = {
|
|
72099
|
+
/**
|
|
72100
|
+
* INVALID_PARAMS / INVALID_FILTER / INVALID_PAGE_TOKEN
|
|
72101
|
+
*/
|
|
72102
|
+
400: BrowserError;
|
|
72103
|
+
/**
|
|
72104
|
+
* UNAUTHENTICATED / CONNECT_SIGNATURE_INVALID
|
|
72105
|
+
*/
|
|
72106
|
+
401: BrowserError;
|
|
72107
|
+
/**
|
|
72108
|
+
* INSUFFICIENT_BALANCE / QUOTA_EXHAUSTED
|
|
72109
|
+
*/
|
|
72110
|
+
402: BrowserError;
|
|
72111
|
+
/**
|
|
72112
|
+
* PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
|
|
72113
|
+
*/
|
|
72114
|
+
403: BrowserError;
|
|
72115
|
+
/**
|
|
72116
|
+
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
72117
|
+
*/
|
|
72118
|
+
404: BrowserError;
|
|
72119
|
+
/**
|
|
72120
|
+
* SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
72121
|
+
*/
|
|
72122
|
+
409: BrowserError;
|
|
72123
|
+
/**
|
|
72124
|
+
* BROWSER_REVOKED
|
|
72125
|
+
*/
|
|
72126
|
+
410: BrowserError;
|
|
72127
|
+
/**
|
|
72128
|
+
* ACTION_RESULT_TOO_LARGE
|
|
72129
|
+
*/
|
|
72130
|
+
413: BrowserError;
|
|
72131
|
+
/**
|
|
72132
|
+
* CONCURRENCY_LIMIT / RATE_LIMITED / PROVIDER_CAPACITY
|
|
72133
|
+
*/
|
|
72134
|
+
429: BrowserError;
|
|
72135
|
+
/**
|
|
72136
|
+
* INTERNAL
|
|
72137
|
+
*/
|
|
72138
|
+
500: BrowserError;
|
|
72139
|
+
/**
|
|
72140
|
+
* NOT_IMPLEMENTED / PROVIDER_UNSUPPORTED
|
|
72141
|
+
*/
|
|
72142
|
+
501: BrowserError;
|
|
72143
|
+
/**
|
|
72144
|
+
* PROVIDER_FAILED
|
|
72145
|
+
*/
|
|
72146
|
+
502: BrowserError;
|
|
72147
|
+
/**
|
|
72148
|
+
* BROWSER_OFFLINE / SERVICE_UNAVAILABLE
|
|
72149
|
+
*/
|
|
72150
|
+
503: BrowserError;
|
|
72151
|
+
/**
|
|
72152
|
+
* ACTION_TIMEOUT
|
|
72153
|
+
*/
|
|
72154
|
+
504: BrowserError;
|
|
72155
|
+
};
|
|
72156
|
+
export type BrowserClaimByobPairingError = BrowserClaimByobPairingErrors[keyof BrowserClaimByobPairingErrors];
|
|
72157
|
+
export type BrowserClaimByobPairingResponses = {
|
|
72158
|
+
/**
|
|
72159
|
+
* 认领成功。
|
|
72160
|
+
*/
|
|
72161
|
+
201: BrowserByobClaimResult;
|
|
72162
|
+
};
|
|
72163
|
+
export type BrowserClaimByobPairingResponse = BrowserClaimByobPairingResponses[keyof BrowserClaimByobPairingResponses];
|
|
72164
|
+
export type BrowserConnectData = {
|
|
72165
|
+
body?: never;
|
|
72166
|
+
path?: never;
|
|
72167
|
+
query?: {
|
|
72168
|
+
/**
|
|
72169
|
+
* 浏览器会话 ID;使用创建或列出会话返回的 id,以 bss_ 开头。
|
|
72170
|
+
*/
|
|
72171
|
+
session?: string;
|
|
72172
|
+
/**
|
|
72173
|
+
* 会话名称;1–128 个 ASCII 字母、数字或 . _ : -,可用于筛选会话。
|
|
72174
|
+
*/
|
|
72175
|
+
name?: string;
|
|
72176
|
+
/**
|
|
72177
|
+
* connectUrl 自带凭证;必须同时带 session。
|
|
72178
|
+
*/
|
|
72179
|
+
signingKey?: string;
|
|
72180
|
+
/**
|
|
72181
|
+
* 登录态 ID;使用创建或列出登录态返回的 id,以 bsc_ 开头。
|
|
72182
|
+
*/
|
|
72183
|
+
context?: string;
|
|
72184
|
+
/**
|
|
72185
|
+
* 关闭时保存登录态。
|
|
72186
|
+
*/
|
|
72187
|
+
persist?: boolean;
|
|
72188
|
+
/**
|
|
72189
|
+
* 新会话最长寿命,单位为秒,可含小数;连接已有会话时忽略。
|
|
72190
|
+
*/
|
|
72191
|
+
timeout?: number;
|
|
72192
|
+
/**
|
|
72193
|
+
* 新会话无人连接或观看后的释放等待时长,单位为毫秒;允许 0 或小数,连接已有会话时忽略。
|
|
72194
|
+
*/
|
|
72195
|
+
idle?: number;
|
|
72196
|
+
/**
|
|
72197
|
+
* JSON 编码的字符串标签对象。
|
|
72198
|
+
*/
|
|
72199
|
+
labels?: string;
|
|
72200
|
+
/**
|
|
72201
|
+
* JSON 编码的视口,例如 {"width":1280,"height":800}。
|
|
72202
|
+
*/
|
|
72203
|
+
viewport?: string;
|
|
72204
|
+
};
|
|
72205
|
+
url: '/browser/v1/connect';
|
|
72206
|
+
};
|
|
72207
|
+
export type BrowserConnectErrors = {
|
|
72208
|
+
/**
|
|
72209
|
+
* INVALID_PARAMS / INVALID_FILTER / INVALID_PAGE_TOKEN
|
|
72210
|
+
*/
|
|
72211
|
+
400: BrowserError;
|
|
72212
|
+
/**
|
|
72213
|
+
* UNAUTHENTICATED / CONNECT_SIGNATURE_INVALID
|
|
72214
|
+
*/
|
|
72215
|
+
401: BrowserError;
|
|
72216
|
+
/**
|
|
72217
|
+
* INSUFFICIENT_BALANCE / QUOTA_EXHAUSTED
|
|
72218
|
+
*/
|
|
72219
|
+
402: BrowserError;
|
|
72220
|
+
/**
|
|
72221
|
+
* PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
|
|
72222
|
+
*/
|
|
72223
|
+
403: BrowserError;
|
|
72224
|
+
/**
|
|
72225
|
+
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
72226
|
+
*/
|
|
72227
|
+
404: BrowserError;
|
|
72228
|
+
/**
|
|
72229
|
+
* SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
72230
|
+
*/
|
|
72231
|
+
409: BrowserError;
|
|
72232
|
+
/**
|
|
72233
|
+
* BROWSER_REVOKED
|
|
72234
|
+
*/
|
|
72235
|
+
410: BrowserError;
|
|
72236
|
+
/**
|
|
72237
|
+
* ACTION_RESULT_TOO_LARGE
|
|
72238
|
+
*/
|
|
72239
|
+
413: BrowserError;
|
|
72240
|
+
/**
|
|
72241
|
+
* CONCURRENCY_LIMIT / RATE_LIMITED / PROVIDER_CAPACITY
|
|
72242
|
+
*/
|
|
72243
|
+
429: BrowserError;
|
|
72244
|
+
/**
|
|
72245
|
+
* INTERNAL
|
|
72246
|
+
*/
|
|
72247
|
+
500: BrowserError;
|
|
72248
|
+
/**
|
|
72249
|
+
* NOT_IMPLEMENTED / PROVIDER_UNSUPPORTED
|
|
72250
|
+
*/
|
|
72251
|
+
501: BrowserError;
|
|
72252
|
+
/**
|
|
72253
|
+
* PROVIDER_FAILED
|
|
72254
|
+
*/
|
|
72255
|
+
502: BrowserError;
|
|
72256
|
+
/**
|
|
72257
|
+
* BROWSER_OFFLINE / SERVICE_UNAVAILABLE
|
|
72258
|
+
*/
|
|
72259
|
+
503: BrowserError;
|
|
72260
|
+
/**
|
|
72261
|
+
* ACTION_TIMEOUT
|
|
72262
|
+
*/
|
|
72263
|
+
504: BrowserError;
|
|
72264
|
+
};
|
|
72265
|
+
export type BrowserConnectError = BrowserConnectErrors[keyof BrowserConnectErrors];
|
|
72266
|
+
export type BrowserLiveViewData = {
|
|
72267
|
+
body?: never;
|
|
72268
|
+
path: {
|
|
72269
|
+
/**
|
|
72270
|
+
* 浏览器会话 ID;使用创建或列出会话返回的 id,以 bss_ 开头。
|
|
72271
|
+
*/
|
|
72272
|
+
sessionId: string;
|
|
72273
|
+
/**
|
|
72274
|
+
* 实时观看地址中的标签页 ID;使用 debug 返回链接中的原值,_ 表示会话级画面。
|
|
72275
|
+
*/
|
|
72276
|
+
pageId: string;
|
|
72277
|
+
};
|
|
72278
|
+
query?: {
|
|
72279
|
+
/**
|
|
72280
|
+
* 实时观看地址自带的凭证。
|
|
72281
|
+
*/
|
|
72282
|
+
t?: string;
|
|
72283
|
+
};
|
|
72284
|
+
url: '/browser/v1/live/{sessionId}/{pageId}';
|
|
72285
|
+
};
|
|
72286
|
+
export type BrowserLiveViewErrors = {
|
|
72287
|
+
/**
|
|
72288
|
+
* INVALID_PARAMS / INVALID_FILTER / INVALID_PAGE_TOKEN
|
|
72289
|
+
*/
|
|
72290
|
+
400: BrowserError;
|
|
72291
|
+
/**
|
|
72292
|
+
* UNAUTHENTICATED / CONNECT_SIGNATURE_INVALID
|
|
72293
|
+
*/
|
|
72294
|
+
401: BrowserError;
|
|
72295
|
+
/**
|
|
72296
|
+
* INSUFFICIENT_BALANCE / QUOTA_EXHAUSTED
|
|
72297
|
+
*/
|
|
72298
|
+
402: BrowserError;
|
|
72299
|
+
/**
|
|
72300
|
+
* PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
|
|
71452
72301
|
*/
|
|
71453
72302
|
403: BrowserError;
|
|
71454
72303
|
/**
|
|
@@ -71518,7 +72367,7 @@ export type BrowserStreamSessionErrors = {
|
|
|
71518
72367
|
*/
|
|
71519
72368
|
402: BrowserError;
|
|
71520
72369
|
/**
|
|
71521
|
-
* PERMISSION_DENIED /
|
|
72370
|
+
* PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
|
|
71522
72371
|
*/
|
|
71523
72372
|
403: BrowserError;
|
|
71524
72373
|
/**
|
|
@@ -71595,7 +72444,7 @@ export type BrowserStreamSessionFramesErrors = {
|
|
|
71595
72444
|
*/
|
|
71596
72445
|
402: BrowserError;
|
|
71597
72446
|
/**
|
|
71598
|
-
* PERMISSION_DENIED /
|
|
72447
|
+
* PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
|
|
71599
72448
|
*/
|
|
71600
72449
|
403: BrowserError;
|
|
71601
72450
|
/**
|
|
@@ -78332,7 +79181,7 @@ export type ListOrganizationCostsData = {
|
|
|
78332
79181
|
*/
|
|
78333
79182
|
bucket_width: '1h' | '1d';
|
|
78334
79183
|
/**
|
|
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.
|
|
79184
|
+
* 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
79185
|
*
|
|
78337
79186
|
*/
|
|
78338
79187
|
time_zone?: string;
|
|
@@ -78450,7 +79299,7 @@ export type ListOrganizationUsageData = {
|
|
|
78450
79299
|
*/
|
|
78451
79300
|
bucket_width: '1h' | '1d';
|
|
78452
79301
|
/**
|
|
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.
|
|
79302
|
+
* 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
79303
|
*
|
|
78455
79304
|
*/
|
|
78456
79305
|
time_zone?: string;
|
|
@@ -78970,11 +79819,19 @@ export type ListOrganizationNotificationLettersData = {
|
|
|
78970
79819
|
path?: never;
|
|
78971
79820
|
query?: {
|
|
78972
79821
|
/**
|
|
78973
|
-
*
|
|
79822
|
+
* 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.
|
|
78974
79823
|
*/
|
|
78975
|
-
|
|
79824
|
+
direction?: 'received' | 'sent';
|
|
78976
79825
|
/**
|
|
78977
|
-
*
|
|
79826
|
+
* 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.
|
|
79827
|
+
*/
|
|
79828
|
+
status?: 'unread' | 'read' | 'scheduled';
|
|
79829
|
+
/**
|
|
79830
|
+
* Only letters of this conversation, for received and sent alike; omit for all.
|
|
79831
|
+
*/
|
|
79832
|
+
thread?: string;
|
|
79833
|
+
/**
|
|
79834
|
+
* 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
79835
|
*/
|
|
78979
79836
|
archived?: boolean;
|
|
78980
79837
|
/**
|
|
@@ -78990,7 +79847,7 @@ export type ListOrganizationNotificationLettersData = {
|
|
|
78990
79847
|
};
|
|
78991
79848
|
export type ListOrganizationNotificationLettersErrors = {
|
|
78992
79849
|
/**
|
|
78993
|
-
* A bad `status`, `archived` or `limit`, or `INVALID_PARAMS` from the service for a cursor it did not issue (RFC 9457 problem).
|
|
79850
|
+
* 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
79851
|
*/
|
|
78995
79852
|
400: unknown;
|
|
78996
79853
|
/**
|
|
@@ -79090,6 +79947,80 @@ export type ListOrganizationNotificationLettersResponses = {
|
|
|
79090
79947
|
};
|
|
79091
79948
|
};
|
|
79092
79949
|
export type ListOrganizationNotificationLettersResponse = ListOrganizationNotificationLettersResponses[keyof ListOrganizationNotificationLettersResponses];
|
|
79950
|
+
export type CreateOrganizationNotificationLetterData = {
|
|
79951
|
+
body: {
|
|
79952
|
+
/**
|
|
79953
|
+
* The recipient's address: human:<user id> or agent:<agent id>, a member or an agent of this organization.
|
|
79954
|
+
*/
|
|
79955
|
+
to: string;
|
|
79956
|
+
/**
|
|
79957
|
+
* The whole letter, 1 to 16000 characters.
|
|
79958
|
+
*/
|
|
79959
|
+
body: string;
|
|
79960
|
+
/**
|
|
79961
|
+
* 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.
|
|
79962
|
+
*/
|
|
79963
|
+
summary?: string;
|
|
79964
|
+
/**
|
|
79965
|
+
* The letter's kind; it decides the channels. Defaults to mention.
|
|
79966
|
+
*/
|
|
79967
|
+
kind?: 'notice' | 'mention' | 'decision';
|
|
79968
|
+
/**
|
|
79969
|
+
* The conversation the letter belongs to, free text; omit for none.
|
|
79970
|
+
*/
|
|
79971
|
+
thread?: string;
|
|
79972
|
+
/**
|
|
79973
|
+
* When to deliver it, ISO 8601, at most 366 days ahead. A past time or no value means now.
|
|
79974
|
+
*/
|
|
79975
|
+
deliver_at?: string;
|
|
79976
|
+
};
|
|
79977
|
+
path?: never;
|
|
79978
|
+
query?: never;
|
|
79979
|
+
url: '/organization/v1/notifications/letters';
|
|
79980
|
+
};
|
|
79981
|
+
export type CreateOrganizationNotificationLetterErrors = {
|
|
79982
|
+
/**
|
|
79983
|
+
* `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).
|
|
79984
|
+
*/
|
|
79985
|
+
400: unknown;
|
|
79986
|
+
/**
|
|
79987
|
+
* Missing or invalid credential (RFC 9457 problem).
|
|
79988
|
+
*/
|
|
79989
|
+
401: unknown;
|
|
79990
|
+
/**
|
|
79991
|
+
* `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).
|
|
79992
|
+
*/
|
|
79993
|
+
403: unknown;
|
|
79994
|
+
/**
|
|
79995
|
+
* `SUBSCRIBER_NOT_FOUND`: the recipient is not a member or an agent of this organization (RFC 9457 problem).
|
|
79996
|
+
*/
|
|
79997
|
+
404: unknown;
|
|
79998
|
+
/**
|
|
79999
|
+
* 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.
|
|
80000
|
+
*/
|
|
80001
|
+
502: unknown;
|
|
80002
|
+
};
|
|
80003
|
+
export type CreateOrganizationNotificationLetterResponses = {
|
|
80004
|
+
/**
|
|
80005
|
+
* The letter is written; it is delivered at deliverAt.
|
|
80006
|
+
*/
|
|
80007
|
+
200: {
|
|
80008
|
+
/**
|
|
80009
|
+
* The letter that was written: its id and the time it is delivered.
|
|
80010
|
+
*/
|
|
80011
|
+
letter: {
|
|
80012
|
+
/**
|
|
80013
|
+
* The letter's id.
|
|
80014
|
+
*/
|
|
80015
|
+
id: string;
|
|
80016
|
+
/**
|
|
80017
|
+
* When it is delivered: now, or the time asked for.
|
|
80018
|
+
*/
|
|
80019
|
+
deliverAt: string;
|
|
80020
|
+
};
|
|
80021
|
+
};
|
|
80022
|
+
};
|
|
80023
|
+
export type CreateOrganizationNotificationLetterResponse = CreateOrganizationNotificationLetterResponses[keyof CreateOrganizationNotificationLetterResponses];
|
|
79093
80024
|
export type GetOrganizationNotificationLetterData = {
|
|
79094
80025
|
body?: never;
|
|
79095
80026
|
path: {
|
|
@@ -79313,6 +80244,360 @@ export type ArchiveOrganizationNotificationLetterResponses = {
|
|
|
79313
80244
|
};
|
|
79314
80245
|
};
|
|
79315
80246
|
export type ArchiveOrganizationNotificationLetterResponse = ArchiveOrganizationNotificationLetterResponses[keyof ArchiveOrganizationNotificationLetterResponses];
|
|
80247
|
+
export type ListOrganizationNotificationMessagesData = {
|
|
80248
|
+
body?: never;
|
|
80249
|
+
path?: never;
|
|
80250
|
+
query?: {
|
|
80251
|
+
/**
|
|
80252
|
+
* 0 (the default) lists the inbox tab, 1 lists archived messages.
|
|
80253
|
+
*/
|
|
80254
|
+
archived?: '0' | '1';
|
|
80255
|
+
/**
|
|
80256
|
+
* Messages per page, 1 to 100; defaults to 20.
|
|
80257
|
+
*/
|
|
80258
|
+
limit?: number;
|
|
80259
|
+
/**
|
|
80260
|
+
* Opaque nextPageToken from the previous response; omit for the first page.
|
|
80261
|
+
*/
|
|
80262
|
+
page?: string;
|
|
80263
|
+
};
|
|
80264
|
+
url: '/organization/v1/notifications/messages';
|
|
80265
|
+
};
|
|
80266
|
+
export type ListOrganizationNotificationMessagesErrors = {
|
|
80267
|
+
/**
|
|
80268
|
+
* A bad `archived`, `limit` or `page`, or `INVALID_PARAMS` from the service for a cursor it did not issue (RFC 9457 problem).
|
|
80269
|
+
*/
|
|
80270
|
+
400: unknown;
|
|
80271
|
+
/**
|
|
80272
|
+
* Missing or invalid credential (RFC 9457 problem).
|
|
80273
|
+
*/
|
|
80274
|
+
401: unknown;
|
|
80275
|
+
/**
|
|
80276
|
+
* `PERMISSION_DENIED`: an agent credential has no person inbox; read its own letters instead (RFC 9457 problem).
|
|
80277
|
+
*/
|
|
80278
|
+
403: unknown;
|
|
80279
|
+
/**
|
|
80280
|
+
* 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.
|
|
80281
|
+
*/
|
|
80282
|
+
502: unknown;
|
|
80283
|
+
};
|
|
80284
|
+
export type ListOrganizationNotificationMessagesResponses = {
|
|
80285
|
+
/**
|
|
80286
|
+
* One page of this person's messages.
|
|
80287
|
+
*/
|
|
80288
|
+
200: {
|
|
80289
|
+
/**
|
|
80290
|
+
* The page, newest first.
|
|
80291
|
+
*/
|
|
80292
|
+
items: Array<{
|
|
80293
|
+
/**
|
|
80294
|
+
* The message's resource name, subscribers/{user}/messages/{id}; pass it URL-encoded as the {name} of the other message operations.
|
|
80295
|
+
*/
|
|
80296
|
+
name: string;
|
|
80297
|
+
/**
|
|
80298
|
+
* The organization the message belongs to; empty for a message that belongs to no organization.
|
|
80299
|
+
*/
|
|
80300
|
+
organizationId: string;
|
|
80301
|
+
/**
|
|
80302
|
+
* The notification group the message belongs to: members, usage, alerts, agent, or nonConfigurable.
|
|
80303
|
+
*/
|
|
80304
|
+
group: 'members' | 'usage' | 'alerts' | 'agent' | 'nonConfigurable';
|
|
80305
|
+
/**
|
|
80306
|
+
* The notification workflow that wrote it, as the preferences page names it.
|
|
80307
|
+
*/
|
|
80308
|
+
workflow: string;
|
|
80309
|
+
/**
|
|
80310
|
+
* The message's headline, as the bell shows it.
|
|
80311
|
+
*/
|
|
80312
|
+
title: string;
|
|
80313
|
+
/**
|
|
80314
|
+
* The message text.
|
|
80315
|
+
*/
|
|
80316
|
+
body: string;
|
|
80317
|
+
/**
|
|
80318
|
+
* Where the bell opens this message; absent when it has no page.
|
|
80319
|
+
*/
|
|
80320
|
+
actionUrl?: string;
|
|
80321
|
+
/**
|
|
80322
|
+
* Whether the bell has been opened since the message arrived.
|
|
80323
|
+
*/
|
|
80324
|
+
seen: boolean;
|
|
80325
|
+
/**
|
|
80326
|
+
* Whether this person has read it.
|
|
80327
|
+
*/
|
|
80328
|
+
read: boolean;
|
|
80329
|
+
/**
|
|
80330
|
+
* Whether this person archived it; archived messages are not in the inbox tab.
|
|
80331
|
+
*/
|
|
80332
|
+
archived: boolean;
|
|
80333
|
+
/**
|
|
80334
|
+
* When the message arrived.
|
|
80335
|
+
*/
|
|
80336
|
+
createTime: string;
|
|
80337
|
+
}>;
|
|
80338
|
+
/**
|
|
80339
|
+
* Pass unchanged as page for the next page; absent at the end.
|
|
80340
|
+
*/
|
|
80341
|
+
nextPageToken?: string;
|
|
80342
|
+
};
|
|
80343
|
+
};
|
|
80344
|
+
export type ListOrganizationNotificationMessagesResponse = ListOrganizationNotificationMessagesResponses[keyof ListOrganizationNotificationMessagesResponses];
|
|
80345
|
+
export type DeleteOrganizationNotificationMessageData = {
|
|
80346
|
+
body?: never;
|
|
80347
|
+
path: {
|
|
80348
|
+
/**
|
|
80349
|
+
* The message's `name` from the messages list, subscribers/{user}/messages/{id}, URL-encoded.
|
|
80350
|
+
*/
|
|
80351
|
+
name: string;
|
|
80352
|
+
};
|
|
80353
|
+
query?: never;
|
|
80354
|
+
url: '/organization/v1/notifications/messages/{name}';
|
|
80355
|
+
};
|
|
80356
|
+
export type DeleteOrganizationNotificationMessageErrors = {
|
|
80357
|
+
/**
|
|
80358
|
+
* `name` is not subscribers/{user}/messages/{id} — `INVALID_PARAMS` (RFC 9457 problem).
|
|
80359
|
+
*/
|
|
80360
|
+
400: unknown;
|
|
80361
|
+
/**
|
|
80362
|
+
* Missing or invalid credential (RFC 9457 problem).
|
|
80363
|
+
*/
|
|
80364
|
+
401: unknown;
|
|
80365
|
+
/**
|
|
80366
|
+
* `PERMISSION_DENIED`: an agent credential has no person inbox; read its own letters instead (RFC 9457 problem).
|
|
80367
|
+
*/
|
|
80368
|
+
403: unknown;
|
|
80369
|
+
/**
|
|
80370
|
+
* No such message of yours in this organization — `MESSAGE_NOT_FOUND` (RFC 9457 problem).
|
|
80371
|
+
*/
|
|
80372
|
+
404: unknown;
|
|
80373
|
+
/**
|
|
80374
|
+
* 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.
|
|
80375
|
+
*/
|
|
80376
|
+
502: unknown;
|
|
80377
|
+
};
|
|
80378
|
+
export type DeleteOrganizationNotificationMessageResponses = {
|
|
80379
|
+
/**
|
|
80380
|
+
* The message is deleted.
|
|
80381
|
+
*/
|
|
80382
|
+
200: {
|
|
80383
|
+
/**
|
|
80384
|
+
* Always true: the message was deleted.
|
|
80385
|
+
*/
|
|
80386
|
+
deleted: boolean;
|
|
80387
|
+
};
|
|
80388
|
+
};
|
|
80389
|
+
export type DeleteOrganizationNotificationMessageResponse = DeleteOrganizationNotificationMessageResponses[keyof DeleteOrganizationNotificationMessageResponses];
|
|
80390
|
+
export type GetOrganizationNotificationMessageData = {
|
|
80391
|
+
body?: never;
|
|
80392
|
+
path: {
|
|
80393
|
+
/**
|
|
80394
|
+
* The message's `name` from the messages list, subscribers/{user}/messages/{id}, URL-encoded.
|
|
80395
|
+
*/
|
|
80396
|
+
name: string;
|
|
80397
|
+
};
|
|
80398
|
+
query?: never;
|
|
80399
|
+
url: '/organization/v1/notifications/messages/{name}';
|
|
80400
|
+
};
|
|
80401
|
+
export type GetOrganizationNotificationMessageErrors = {
|
|
80402
|
+
/**
|
|
80403
|
+
* `name` is not subscribers/{user}/messages/{id} — `INVALID_PARAMS` (RFC 9457 problem).
|
|
80404
|
+
*/
|
|
80405
|
+
400: unknown;
|
|
80406
|
+
/**
|
|
80407
|
+
* Missing or invalid credential (RFC 9457 problem).
|
|
80408
|
+
*/
|
|
80409
|
+
401: unknown;
|
|
80410
|
+
/**
|
|
80411
|
+
* `PERMISSION_DENIED`: an agent credential has no person inbox; read its own letters instead (RFC 9457 problem).
|
|
80412
|
+
*/
|
|
80413
|
+
403: unknown;
|
|
80414
|
+
/**
|
|
80415
|
+
* 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).
|
|
80416
|
+
*/
|
|
80417
|
+
404: unknown;
|
|
80418
|
+
/**
|
|
80419
|
+
* 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.
|
|
80420
|
+
*/
|
|
80421
|
+
502: unknown;
|
|
80422
|
+
};
|
|
80423
|
+
export type GetOrganizationNotificationMessageResponses = {
|
|
80424
|
+
/**
|
|
80425
|
+
* The message.
|
|
80426
|
+
*/
|
|
80427
|
+
200: {
|
|
80428
|
+
/**
|
|
80429
|
+
* The message's resource name, subscribers/{user}/messages/{id}; pass it URL-encoded as the {name} of the other message operations.
|
|
80430
|
+
*/
|
|
80431
|
+
name: string;
|
|
80432
|
+
/**
|
|
80433
|
+
* The organization the message belongs to; empty for a message that belongs to no organization.
|
|
80434
|
+
*/
|
|
80435
|
+
organizationId: string;
|
|
80436
|
+
/**
|
|
80437
|
+
* The notification group the message belongs to: members, usage, alerts, agent, or nonConfigurable.
|
|
80438
|
+
*/
|
|
80439
|
+
group: 'members' | 'usage' | 'alerts' | 'agent' | 'nonConfigurable';
|
|
80440
|
+
/**
|
|
80441
|
+
* The notification workflow that wrote it, as the preferences page names it.
|
|
80442
|
+
*/
|
|
80443
|
+
workflow: string;
|
|
80444
|
+
/**
|
|
80445
|
+
* The message's headline, as the bell shows it.
|
|
80446
|
+
*/
|
|
80447
|
+
title: string;
|
|
80448
|
+
/**
|
|
80449
|
+
* The message text.
|
|
80450
|
+
*/
|
|
80451
|
+
body: string;
|
|
80452
|
+
/**
|
|
80453
|
+
* Where the bell opens this message; absent when it has no page.
|
|
80454
|
+
*/
|
|
80455
|
+
actionUrl?: string;
|
|
80456
|
+
/**
|
|
80457
|
+
* Whether the bell has been opened since the message arrived.
|
|
80458
|
+
*/
|
|
80459
|
+
seen: boolean;
|
|
80460
|
+
/**
|
|
80461
|
+
* Whether this person has read it.
|
|
80462
|
+
*/
|
|
80463
|
+
read: boolean;
|
|
80464
|
+
/**
|
|
80465
|
+
* Whether this person archived it; archived messages are not in the inbox tab.
|
|
80466
|
+
*/
|
|
80467
|
+
archived: boolean;
|
|
80468
|
+
/**
|
|
80469
|
+
* When the message arrived.
|
|
80470
|
+
*/
|
|
80471
|
+
createTime: string;
|
|
80472
|
+
};
|
|
80473
|
+
};
|
|
80474
|
+
export type GetOrganizationNotificationMessageResponse = GetOrganizationNotificationMessageResponses[keyof GetOrganizationNotificationMessageResponses];
|
|
80475
|
+
export type UpdateOrganizationNotificationMessageData = {
|
|
80476
|
+
body: {
|
|
80477
|
+
/**
|
|
80478
|
+
* Mark the message read (true) or unread (false); omit to leave it.
|
|
80479
|
+
*/
|
|
80480
|
+
read?: boolean;
|
|
80481
|
+
/**
|
|
80482
|
+
* Archive the message (true) or move it back to the inbox (false); omit to leave it.
|
|
80483
|
+
*/
|
|
80484
|
+
archived?: boolean;
|
|
80485
|
+
};
|
|
80486
|
+
path: {
|
|
80487
|
+
/**
|
|
80488
|
+
* The message's `name` from the messages list, subscribers/{user}/messages/{id}, URL-encoded.
|
|
80489
|
+
*/
|
|
80490
|
+
name: string;
|
|
80491
|
+
};
|
|
80492
|
+
query?: never;
|
|
80493
|
+
url: '/organization/v1/notifications/messages/{name}';
|
|
80494
|
+
};
|
|
80495
|
+
export type UpdateOrganizationNotificationMessageErrors = {
|
|
80496
|
+
/**
|
|
80497
|
+
* 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).
|
|
80498
|
+
*/
|
|
80499
|
+
400: unknown;
|
|
80500
|
+
/**
|
|
80501
|
+
* Missing or invalid credential (RFC 9457 problem).
|
|
80502
|
+
*/
|
|
80503
|
+
401: unknown;
|
|
80504
|
+
/**
|
|
80505
|
+
* `PERMISSION_DENIED`: an agent credential has no person inbox; read its own letters instead (RFC 9457 problem).
|
|
80506
|
+
*/
|
|
80507
|
+
403: unknown;
|
|
80508
|
+
/**
|
|
80509
|
+
* No such message of yours in this organization — `MESSAGE_NOT_FOUND` (RFC 9457 problem).
|
|
80510
|
+
*/
|
|
80511
|
+
404: unknown;
|
|
80512
|
+
/**
|
|
80513
|
+
* 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.
|
|
80514
|
+
*/
|
|
80515
|
+
502: unknown;
|
|
80516
|
+
};
|
|
80517
|
+
export type UpdateOrganizationNotificationMessageResponses = {
|
|
80518
|
+
/**
|
|
80519
|
+
* The message after the change.
|
|
80520
|
+
*/
|
|
80521
|
+
200: {
|
|
80522
|
+
/**
|
|
80523
|
+
* The message's resource name, subscribers/{user}/messages/{id}; pass it URL-encoded as the {name} of the other message operations.
|
|
80524
|
+
*/
|
|
80525
|
+
name: string;
|
|
80526
|
+
/**
|
|
80527
|
+
* The organization the message belongs to; empty for a message that belongs to no organization.
|
|
80528
|
+
*/
|
|
80529
|
+
organizationId: string;
|
|
80530
|
+
/**
|
|
80531
|
+
* The notification group the message belongs to: members, usage, alerts, agent, or nonConfigurable.
|
|
80532
|
+
*/
|
|
80533
|
+
group: 'members' | 'usage' | 'alerts' | 'agent' | 'nonConfigurable';
|
|
80534
|
+
/**
|
|
80535
|
+
* The notification workflow that wrote it, as the preferences page names it.
|
|
80536
|
+
*/
|
|
80537
|
+
workflow: string;
|
|
80538
|
+
/**
|
|
80539
|
+
* The message's headline, as the bell shows it.
|
|
80540
|
+
*/
|
|
80541
|
+
title: string;
|
|
80542
|
+
/**
|
|
80543
|
+
* The message text.
|
|
80544
|
+
*/
|
|
80545
|
+
body: string;
|
|
80546
|
+
/**
|
|
80547
|
+
* Where the bell opens this message; absent when it has no page.
|
|
80548
|
+
*/
|
|
80549
|
+
actionUrl?: string;
|
|
80550
|
+
/**
|
|
80551
|
+
* Whether the bell has been opened since the message arrived.
|
|
80552
|
+
*/
|
|
80553
|
+
seen: boolean;
|
|
80554
|
+
/**
|
|
80555
|
+
* Whether this person has read it.
|
|
80556
|
+
*/
|
|
80557
|
+
read: boolean;
|
|
80558
|
+
/**
|
|
80559
|
+
* Whether this person archived it; archived messages are not in the inbox tab.
|
|
80560
|
+
*/
|
|
80561
|
+
archived: boolean;
|
|
80562
|
+
/**
|
|
80563
|
+
* When the message arrived.
|
|
80564
|
+
*/
|
|
80565
|
+
createTime: string;
|
|
80566
|
+
};
|
|
80567
|
+
};
|
|
80568
|
+
export type UpdateOrganizationNotificationMessageResponse = UpdateOrganizationNotificationMessageResponses[keyof UpdateOrganizationNotificationMessageResponses];
|
|
80569
|
+
export type ReadAllOrganizationNotificationMessagesData = {
|
|
80570
|
+
body?: never;
|
|
80571
|
+
path?: never;
|
|
80572
|
+
query?: never;
|
|
80573
|
+
url: '/organization/v1/notifications/messages:readAll';
|
|
80574
|
+
};
|
|
80575
|
+
export type ReadAllOrganizationNotificationMessagesErrors = {
|
|
80576
|
+
/**
|
|
80577
|
+
* Missing or invalid credential (RFC 9457 problem).
|
|
80578
|
+
*/
|
|
80579
|
+
401: unknown;
|
|
80580
|
+
/**
|
|
80581
|
+
* `PERMISSION_DENIED`: an agent credential has no person inbox; read its own letters instead (RFC 9457 problem).
|
|
80582
|
+
*/
|
|
80583
|
+
403: unknown;
|
|
80584
|
+
/**
|
|
80585
|
+
* 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.
|
|
80586
|
+
*/
|
|
80587
|
+
502: unknown;
|
|
80588
|
+
};
|
|
80589
|
+
export type ReadAllOrganizationNotificationMessagesResponses = {
|
|
80590
|
+
/**
|
|
80591
|
+
* How many messages were marked read.
|
|
80592
|
+
*/
|
|
80593
|
+
200: {
|
|
80594
|
+
/**
|
|
80595
|
+
* The number of messages that were unread and are now read.
|
|
80596
|
+
*/
|
|
80597
|
+
updated: number;
|
|
80598
|
+
};
|
|
80599
|
+
};
|
|
80600
|
+
export type ReadAllOrganizationNotificationMessagesResponse = ReadAllOrganizationNotificationMessagesResponses[keyof ReadAllOrganizationNotificationMessagesResponses];
|
|
79316
80601
|
export type GetOrganizationNotificationPreferencesData = {
|
|
79317
80602
|
body?: never;
|
|
79318
80603
|
path?: never;
|
|
@@ -80780,7 +82065,7 @@ export type ListByodDevicesResponses = {
|
|
|
80780
82065
|
*/
|
|
80781
82066
|
id: string;
|
|
80782
82067
|
/**
|
|
80783
|
-
* The device's platform, which decides the use faces it answers. A desktop (macos, linux) pairs
|
|
82068
|
+
* 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
82069
|
*/
|
|
80785
82070
|
platform: 'android' | 'macos' | 'linux';
|
|
80786
82071
|
/**
|
|
@@ -80828,6 +82113,10 @@ export type ListByodDevicesResponses = {
|
|
|
80828
82113
|
*/
|
|
80829
82114
|
agent: string;
|
|
80830
82115
|
}>;
|
|
82116
|
+
/**
|
|
82117
|
+
* 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.
|
|
82118
|
+
*/
|
|
82119
|
+
envd_version: string | null;
|
|
80831
82120
|
/**
|
|
80832
82121
|
* 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
82122
|
*/
|
|
@@ -80875,7 +82164,7 @@ export type GetByodDeviceResponses = {
|
|
|
80875
82164
|
*/
|
|
80876
82165
|
id: string;
|
|
80877
82166
|
/**
|
|
80878
|
-
* The device's platform, which decides the use faces it answers. A desktop (macos, linux) pairs
|
|
82167
|
+
* 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
82168
|
*/
|
|
80880
82169
|
platform: 'android' | 'macos' | 'linux';
|
|
80881
82170
|
/**
|
|
@@ -80923,6 +82212,10 @@ export type GetByodDeviceResponses = {
|
|
|
80923
82212
|
*/
|
|
80924
82213
|
agent: string;
|
|
80925
82214
|
}>;
|
|
82215
|
+
/**
|
|
82216
|
+
* 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.
|
|
82217
|
+
*/
|
|
82218
|
+
envd_version: string | null;
|
|
80926
82219
|
/**
|
|
80927
82220
|
* 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
82221
|
*/
|
|
@@ -80981,7 +82274,7 @@ export type UpdateByodDeviceResponses = {
|
|
|
80981
82274
|
*/
|
|
80982
82275
|
id: string;
|
|
80983
82276
|
/**
|
|
80984
|
-
* The device's platform, which decides the use faces it answers. A desktop (macos, linux) pairs
|
|
82277
|
+
* 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
82278
|
*/
|
|
80986
82279
|
platform: 'android' | 'macos' | 'linux';
|
|
80987
82280
|
/**
|
|
@@ -81029,6 +82322,10 @@ export type UpdateByodDeviceResponses = {
|
|
|
81029
82322
|
*/
|
|
81030
82323
|
agent: string;
|
|
81031
82324
|
}>;
|
|
82325
|
+
/**
|
|
82326
|
+
* 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.
|
|
82327
|
+
*/
|
|
82328
|
+
envd_version: string | null;
|
|
81032
82329
|
/**
|
|
81033
82330
|
* 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
82331
|
*/
|
|
@@ -81120,7 +82417,7 @@ export type ClaimByodPairingData = {
|
|
|
81120
82417
|
*/
|
|
81121
82418
|
body: {
|
|
81122
82419
|
/**
|
|
81123
|
-
* The device's platform. macos and linux are accepted
|
|
82420
|
+
* The device's platform. macos and linux are accepted for every organization; any other value than android, macos or linux answers INVALID_PARAMS.
|
|
81124
82421
|
*/
|
|
81125
82422
|
platform: 'android' | 'macos' | 'linux';
|
|
81126
82423
|
/**
|
|
@@ -81151,7 +82448,7 @@ export type ClaimByodPairingData = {
|
|
|
81151
82448
|
};
|
|
81152
82449
|
export type ClaimByodPairingErrors = {
|
|
81153
82450
|
/**
|
|
81154
|
-
* INVALID_PARAMS: the body is missing, platform is not android, macos or linux
|
|
82451
|
+
* 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
82452
|
*/
|
|
81156
82453
|
400: unknown;
|
|
81157
82454
|
/**
|
|
@@ -83774,8 +85071,7 @@ export type SessionsUpdateData = {
|
|
|
83774
85071
|
*/
|
|
83775
85072
|
title?: null | string;
|
|
83776
85073
|
/**
|
|
83777
|
-
*
|
|
83778
|
-
* requests setting this field are rejected. Reserved for future use.
|
|
85074
|
+
* 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
85075
|
*/
|
|
83780
85076
|
vault_ids?: Array<string>;
|
|
83781
85077
|
/**
|
|
@@ -84716,7 +86012,7 @@ export type AgentsListResponses = {
|
|
|
84716
86012
|
*/
|
|
84717
86013
|
environment_id?: string | null;
|
|
84718
86014
|
/**
|
|
84719
|
-
* Default vaults of this service or assume agent version: the vault_ids new
|
|
86015
|
+
* 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
86016
|
*/
|
|
84721
86017
|
vault_ids?: Array<string>;
|
|
84722
86018
|
/**
|
|
@@ -85255,7 +86551,7 @@ export type AgentsCreateData = {
|
|
|
85255
86551
|
*/
|
|
85256
86552
|
environment_id?: string | null;
|
|
85257
86553
|
/**
|
|
85258
|
-
* Default vaults of
|
|
86554
|
+
* 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
86555
|
*/
|
|
85260
86556
|
vault_ids?: Array<string>;
|
|
85261
86557
|
/**
|
|
@@ -85938,7 +87234,7 @@ export type AgentsCreateResponses = {
|
|
|
85938
87234
|
*/
|
|
85939
87235
|
environment_id?: string | null;
|
|
85940
87236
|
/**
|
|
85941
|
-
* Default vaults of this service or assume agent version: the vault_ids new
|
|
87237
|
+
* 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
87238
|
*/
|
|
85943
87239
|
vault_ids?: Array<string>;
|
|
85944
87240
|
/**
|
|
@@ -86609,7 +87905,7 @@ export type AgentsRetrieveResponses = {
|
|
|
86609
87905
|
*/
|
|
86610
87906
|
environment_id?: string | null;
|
|
86611
87907
|
/**
|
|
86612
|
-
* Default vaults of this service or assume agent version: the vault_ids new
|
|
87908
|
+
* 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
87909
|
*/
|
|
86614
87910
|
vault_ids?: Array<string>;
|
|
86615
87911
|
/**
|
|
@@ -87157,7 +88453,7 @@ export type AgentsUpdateData = {
|
|
|
87157
88453
|
*/
|
|
87158
88454
|
environment_id?: string | null;
|
|
87159
88455
|
/**
|
|
87160
|
-
* Default vaults of
|
|
88456
|
+
* 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
88457
|
*/
|
|
87162
88458
|
vault_ids?: Array<string>;
|
|
87163
88459
|
/**
|
|
@@ -87853,7 +89149,7 @@ export type AgentsUpdateResponses = {
|
|
|
87853
89149
|
*/
|
|
87854
89150
|
environment_id?: string | null;
|
|
87855
89151
|
/**
|
|
87856
|
-
* Default vaults of this service or assume agent version: the vault_ids new
|
|
89152
|
+
* 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
89153
|
*/
|
|
87858
89154
|
vault_ids?: Array<string>;
|
|
87859
89155
|
/**
|
|
@@ -88479,7 +89775,7 @@ export type AgentsArchiveResponses = {
|
|
|
88479
89775
|
*/
|
|
88480
89776
|
environment_id?: string | null;
|
|
88481
89777
|
/**
|
|
88482
|
-
* Default vaults of this service or assume agent version: the vault_ids new
|
|
89778
|
+
* 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
89779
|
*/
|
|
88484
89780
|
vault_ids?: Array<string>;
|
|
88485
89781
|
/**
|
|
@@ -89150,7 +90446,7 @@ export type AgentsVersionsListResponses = {
|
|
|
89150
90446
|
*/
|
|
89151
90447
|
environment_id?: string | null;
|
|
89152
90448
|
/**
|
|
89153
|
-
* Default vaults of this service or assume agent version: the vault_ids new
|
|
90449
|
+
* 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
90450
|
*/
|
|
89155
90451
|
vault_ids?: Array<string>;
|
|
89156
90452
|
/**
|
|
@@ -99010,7 +100306,7 @@ export type AutomationRunsListData = {
|
|
|
99010
100306
|
*/
|
|
99011
100307
|
channel?: Array<'console' | 'api' | 'internal' | 'run' | 'trigger'>;
|
|
99012
100308
|
/**
|
|
99013
|
-
* Root initiator type: user, api_key, agent or
|
|
100309
|
+
* 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
100310
|
*/
|
|
99015
100311
|
initiator_type?: Array<'user' | 'api_key' | 'agent' | 'trigger'>;
|
|
99016
100312
|
/**
|
|
@@ -113558,7 +114854,7 @@ export type DevopsUnitsPushErrors = {
|
|
|
113558
114854
|
*/
|
|
113559
114855
|
404: DevopsDevOpsError;
|
|
113560
114856
|
/**
|
|
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
|
|
114857
|
+
* 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
114858
|
*/
|
|
113563
114859
|
409: DevopsDevOpsError;
|
|
113564
114860
|
/**
|
|
@@ -118661,45 +119957,509 @@ export type MediaListUnderstandingsByLibraryErrors = {
|
|
|
118661
119957
|
*/
|
|
118662
119958
|
503: MediaMediaError;
|
|
118663
119959
|
};
|
|
118664
|
-
export type MediaListUnderstandingsByLibraryError = MediaListUnderstandingsByLibraryErrors[keyof MediaListUnderstandingsByLibraryErrors];
|
|
118665
|
-
export type MediaListUnderstandingsByLibraryResponses = {
|
|
119960
|
+
export type MediaListUnderstandingsByLibraryError = MediaListUnderstandingsByLibraryErrors[keyof MediaListUnderstandingsByLibraryErrors];
|
|
119961
|
+
export type MediaListUnderstandingsByLibraryResponses = {
|
|
119962
|
+
/**
|
|
119963
|
+
* Successful response.
|
|
119964
|
+
*/
|
|
119965
|
+
200: MediaUnderstandingPage;
|
|
119966
|
+
};
|
|
119967
|
+
export type MediaListUnderstandingsByLibraryResponse = MediaListUnderstandingsByLibraryResponses[keyof MediaListUnderstandingsByLibraryResponses];
|
|
119968
|
+
export type MediaListJobsData = {
|
|
119969
|
+
body?: never;
|
|
119970
|
+
path: {
|
|
119971
|
+
/**
|
|
119972
|
+
* Library ID returned by creation.
|
|
119973
|
+
*/
|
|
119974
|
+
library_id: string;
|
|
119975
|
+
};
|
|
119976
|
+
query?: {
|
|
119977
|
+
/**
|
|
119978
|
+
* Filter jobs by their current status.
|
|
119979
|
+
*/
|
|
119980
|
+
status?: MediaJobStatus;
|
|
119981
|
+
/**
|
|
119982
|
+
* Return only the jobs started by this automation run (its root run), so one pipeline run reads as one batch.
|
|
119983
|
+
*/
|
|
119984
|
+
pipeline_run_id?: string;
|
|
119985
|
+
/**
|
|
119986
|
+
* Maximum entries in this page, from 1 through 100; defaults to 100.
|
|
119987
|
+
*/
|
|
119988
|
+
limit?: number;
|
|
119989
|
+
/**
|
|
119990
|
+
* Job id from the previous page’s next_cursor; omit for the first page.
|
|
119991
|
+
*/
|
|
119992
|
+
cursor?: MediaJobId;
|
|
119993
|
+
};
|
|
119994
|
+
url: '/media/v1/libraries/{library_id}/jobs';
|
|
119995
|
+
};
|
|
119996
|
+
export type MediaListJobsErrors = {
|
|
119997
|
+
/**
|
|
119998
|
+
* A selector, cursor, limit or other parameter is invalid; correct the reported field before retrying.
|
|
119999
|
+
*/
|
|
120000
|
+
400: MediaMediaError;
|
|
120001
|
+
/**
|
|
120002
|
+
* Request failed; see the error code reference.
|
|
120003
|
+
*/
|
|
120004
|
+
402: MediaMediaError;
|
|
120005
|
+
/**
|
|
120006
|
+
* This credential has read-only access to the library; use a write-capable binding for mutations.
|
|
120007
|
+
*/
|
|
120008
|
+
403: MediaMediaError;
|
|
120009
|
+
/**
|
|
120010
|
+
* The library or asset is missing, deleted or belongs to another tenant; verify its identifier and owner.
|
|
120011
|
+
*/
|
|
120012
|
+
404: MediaMediaError;
|
|
120013
|
+
/**
|
|
120014
|
+
* Request failed; see the error code reference.
|
|
120015
|
+
*/
|
|
120016
|
+
409: MediaMediaError;
|
|
120017
|
+
/**
|
|
120018
|
+
* The file exceeds an input limit; provide a smaller source file.
|
|
120019
|
+
*/
|
|
120020
|
+
413: MediaMediaError;
|
|
120021
|
+
/**
|
|
120022
|
+
* This media format is unsupported; provide a supported format.
|
|
120023
|
+
*/
|
|
120024
|
+
415: MediaMediaError;
|
|
120025
|
+
/**
|
|
120026
|
+
* Request failed; see the error code reference.
|
|
120027
|
+
*/
|
|
120028
|
+
422: MediaMediaError;
|
|
120029
|
+
/**
|
|
120030
|
+
* A rate limit was reached; wait before retrying.
|
|
120031
|
+
*/
|
|
120032
|
+
429: MediaMediaError;
|
|
120033
|
+
/**
|
|
120034
|
+
* The requested operation is unsupported; choose a supported method.
|
|
120035
|
+
*/
|
|
120036
|
+
501: MediaMediaError;
|
|
120037
|
+
/**
|
|
120038
|
+
* Request failed; see the error code reference.
|
|
120039
|
+
*/
|
|
120040
|
+
502: MediaMediaError;
|
|
120041
|
+
/**
|
|
120042
|
+
* Historical projections are still being initialized, or library storage is temporarily unavailable; retry shortly and check failureSummary counts_complete.
|
|
120043
|
+
*/
|
|
120044
|
+
503: MediaMediaError;
|
|
120045
|
+
};
|
|
120046
|
+
export type MediaListJobsError = MediaListJobsErrors[keyof MediaListJobsErrors];
|
|
120047
|
+
export type MediaListJobsResponses = {
|
|
120048
|
+
/**
|
|
120049
|
+
* Successful response.
|
|
120050
|
+
*/
|
|
120051
|
+
200: MediaJobPage;
|
|
120052
|
+
};
|
|
120053
|
+
export type MediaListJobsResponse = MediaListJobsResponses[keyof MediaListJobsResponses];
|
|
120054
|
+
export type MediaCancelJobData = {
|
|
120055
|
+
body?: never;
|
|
120056
|
+
path: {
|
|
120057
|
+
/**
|
|
120058
|
+
* Library ID returned by creation.
|
|
120059
|
+
*/
|
|
120060
|
+
library_id: string;
|
|
120061
|
+
/**
|
|
120062
|
+
* Job identifier returned by batch or generation creation; the job is resolved within the specified library.
|
|
120063
|
+
*/
|
|
120064
|
+
job_id: string;
|
|
120065
|
+
};
|
|
120066
|
+
query?: never;
|
|
120067
|
+
url: '/media/v1/libraries/{library_id}/jobs/{job_id}/cancel';
|
|
120068
|
+
};
|
|
120069
|
+
export type MediaCancelJobErrors = {
|
|
120070
|
+
/**
|
|
120071
|
+
* A selector, cursor, limit or other parameter is invalid; correct the reported field before retrying.
|
|
120072
|
+
*/
|
|
120073
|
+
400: MediaMediaError;
|
|
120074
|
+
/**
|
|
120075
|
+
* Request failed; see the error code reference.
|
|
120076
|
+
*/
|
|
120077
|
+
402: MediaMediaError;
|
|
120078
|
+
/**
|
|
120079
|
+
* This credential has read-only access to the library; use a write-capable binding for mutations.
|
|
120080
|
+
*/
|
|
120081
|
+
403: MediaMediaError;
|
|
120082
|
+
/**
|
|
120083
|
+
* The library or asset is missing, deleted or belongs to another tenant; verify its identifier and owner.
|
|
120084
|
+
*/
|
|
120085
|
+
404: MediaMediaError;
|
|
120086
|
+
/**
|
|
120087
|
+
* Request failed; see the error code reference.
|
|
120088
|
+
*/
|
|
120089
|
+
409: MediaMediaError;
|
|
120090
|
+
/**
|
|
120091
|
+
* The file exceeds an input limit; provide a smaller source file.
|
|
120092
|
+
*/
|
|
120093
|
+
413: MediaMediaError;
|
|
120094
|
+
/**
|
|
120095
|
+
* This media format is unsupported; provide a supported format.
|
|
120096
|
+
*/
|
|
120097
|
+
415: MediaMediaError;
|
|
120098
|
+
/**
|
|
120099
|
+
* Request failed; see the error code reference.
|
|
120100
|
+
*/
|
|
120101
|
+
422: MediaMediaError;
|
|
120102
|
+
/**
|
|
120103
|
+
* A rate limit was reached; wait before retrying.
|
|
120104
|
+
*/
|
|
120105
|
+
429: MediaMediaError;
|
|
120106
|
+
/**
|
|
120107
|
+
* The requested operation is unsupported; choose a supported method.
|
|
120108
|
+
*/
|
|
120109
|
+
501: MediaMediaError;
|
|
120110
|
+
/**
|
|
120111
|
+
* Request failed; see the error code reference.
|
|
120112
|
+
*/
|
|
120113
|
+
502: MediaMediaError;
|
|
120114
|
+
/**
|
|
120115
|
+
* Historical projections are still being initialized, or library storage is temporarily unavailable; retry shortly and check failureSummary counts_complete.
|
|
120116
|
+
*/
|
|
120117
|
+
503: MediaMediaError;
|
|
120118
|
+
};
|
|
120119
|
+
export type MediaCancelJobError = MediaCancelJobErrors[keyof MediaCancelJobErrors];
|
|
120120
|
+
export type MediaCancelJobResponses = {
|
|
120121
|
+
/**
|
|
120122
|
+
* Successful response.
|
|
120123
|
+
*/
|
|
120124
|
+
200: MediaJob;
|
|
120125
|
+
};
|
|
120126
|
+
export type MediaCancelJobResponse = MediaCancelJobResponses[keyof MediaCancelJobResponses];
|
|
120127
|
+
export type MediaGetGenerationCapabilitiesData = {
|
|
120128
|
+
body?: never;
|
|
120129
|
+
path?: never;
|
|
120130
|
+
query?: never;
|
|
120131
|
+
url: '/media/v1/generation/capabilities';
|
|
120132
|
+
};
|
|
120133
|
+
export type MediaGetGenerationCapabilitiesErrors = {
|
|
120134
|
+
/**
|
|
120135
|
+
* A selector, cursor, limit or other parameter is invalid; correct the reported field before retrying.
|
|
120136
|
+
*/
|
|
120137
|
+
400: MediaMediaError;
|
|
120138
|
+
/**
|
|
120139
|
+
* Request failed; see the error code reference.
|
|
120140
|
+
*/
|
|
120141
|
+
402: MediaMediaError;
|
|
120142
|
+
/**
|
|
120143
|
+
* This credential has read-only access to the library; use a write-capable binding for mutations.
|
|
120144
|
+
*/
|
|
120145
|
+
403: MediaMediaError;
|
|
120146
|
+
/**
|
|
120147
|
+
* The library or asset is missing, deleted or belongs to another tenant; verify its identifier and owner.
|
|
120148
|
+
*/
|
|
120149
|
+
404: MediaMediaError;
|
|
120150
|
+
/**
|
|
120151
|
+
* Request failed; see the error code reference.
|
|
120152
|
+
*/
|
|
120153
|
+
409: MediaMediaError;
|
|
120154
|
+
/**
|
|
120155
|
+
* The file exceeds an input limit; provide a smaller source file.
|
|
120156
|
+
*/
|
|
120157
|
+
413: MediaMediaError;
|
|
120158
|
+
/**
|
|
120159
|
+
* This media format is unsupported; provide a supported format.
|
|
120160
|
+
*/
|
|
120161
|
+
415: MediaMediaError;
|
|
120162
|
+
/**
|
|
120163
|
+
* Request failed; see the error code reference.
|
|
120164
|
+
*/
|
|
120165
|
+
422: MediaMediaError;
|
|
120166
|
+
/**
|
|
120167
|
+
* A rate limit was reached; wait before retrying.
|
|
120168
|
+
*/
|
|
120169
|
+
429: MediaMediaError;
|
|
120170
|
+
/**
|
|
120171
|
+
* The requested operation is unsupported; choose a supported method.
|
|
120172
|
+
*/
|
|
120173
|
+
501: MediaMediaError;
|
|
120174
|
+
/**
|
|
120175
|
+
* Request failed; see the error code reference.
|
|
120176
|
+
*/
|
|
120177
|
+
502: MediaMediaError;
|
|
120178
|
+
/**
|
|
120179
|
+
* Historical projections are still being initialized, or library storage is temporarily unavailable; retry shortly and check failureSummary counts_complete.
|
|
120180
|
+
*/
|
|
120181
|
+
503: MediaMediaError;
|
|
120182
|
+
};
|
|
120183
|
+
export type MediaGetGenerationCapabilitiesError = MediaGetGenerationCapabilitiesErrors[keyof MediaGetGenerationCapabilitiesErrors];
|
|
120184
|
+
export type MediaGetGenerationCapabilitiesResponses = {
|
|
120185
|
+
/**
|
|
120186
|
+
* Successful response.
|
|
120187
|
+
*/
|
|
120188
|
+
200: MediaGenerationCapabilities;
|
|
120189
|
+
};
|
|
120190
|
+
export type MediaGetGenerationCapabilitiesResponse = MediaGetGenerationCapabilitiesResponses[keyof MediaGetGenerationCapabilitiesResponses];
|
|
120191
|
+
export type MediaAlignAssetData = {
|
|
120192
|
+
/**
|
|
120193
|
+
* Align two recordings by their sound. The route names the source asset; this body names the reference to align against it. The result is an analysis, not a new asset: nothing is stored, the source is never changed, and the completed job carries the answer in result.
|
|
120194
|
+
*/
|
|
120195
|
+
body: {
|
|
120196
|
+
/**
|
|
120197
|
+
* Asset to align against the one the route names. It must be an audio or video asset of the same library, otherwise the request is refused with REFERENCE_TYPE_MISMATCH before a job exists.
|
|
120198
|
+
*/
|
|
120199
|
+
reference_asset_id: string;
|
|
120200
|
+
/**
|
|
120201
|
+
* Largest offset to search for, in seconds; omit it to let the model search its full range. Zero and negative values are refused with INVALID_PARAMS.
|
|
120202
|
+
*/
|
|
120203
|
+
max_offset_seconds?: number;
|
|
120204
|
+
/**
|
|
120205
|
+
* Stable key so a retried request reuses the same job instead of analysing and charging again; reusing it with different content is rejected.
|
|
120206
|
+
*/
|
|
120207
|
+
idempotency_key?: string;
|
|
120208
|
+
};
|
|
120209
|
+
headers?: {
|
|
120210
|
+
/**
|
|
120211
|
+
* Stable key for retrying the same request without creating or charging for another job; reusing it with different request content is rejected. Send it here or as idempotency_key in the body, never both with different values.
|
|
120212
|
+
*/
|
|
120213
|
+
'Idempotency-Key'?: string;
|
|
120214
|
+
};
|
|
120215
|
+
path: {
|
|
120216
|
+
/**
|
|
120217
|
+
* Library ID returned by creation.
|
|
120218
|
+
*/
|
|
120219
|
+
library_id: string;
|
|
120220
|
+
/**
|
|
120221
|
+
* 32-character asset ID.
|
|
120222
|
+
*/
|
|
120223
|
+
asset_id: string;
|
|
120224
|
+
};
|
|
120225
|
+
query?: never;
|
|
120226
|
+
url: '/media/v1/libraries/{library_id}/assets/{asset_id}/align';
|
|
120227
|
+
};
|
|
120228
|
+
export type MediaAlignAssetErrors = {
|
|
120229
|
+
/**
|
|
120230
|
+
* REFERENCE_TYPE_MISMATCH: the source asset or the reference asset is not an audio or video asset; both must be one of the two. INVALID_PARAMS: reference_asset_id is missing, max_offset_seconds is zero or negative, or the request names an alignment model the generation capabilities do not offer. OPERATION_NOT_SUPPORTED: the platform has published no alignment model, so the request is refused with the model field named. Correct the reported field; nothing was analysed and nothing was charged.
|
|
120231
|
+
*/
|
|
120232
|
+
400: MediaMediaError;
|
|
120233
|
+
/**
|
|
120234
|
+
* INSUFFICIENT_BALANCE: the organization balance cannot cover the estimated cost of this generation or edit; top up and resubmit. Nothing was generated and nothing was charged for this request.
|
|
120235
|
+
*/
|
|
120236
|
+
402: MediaMediaError;
|
|
120237
|
+
/**
|
|
120238
|
+
* This credential has read-only access to the library; use a write-capable binding for mutations.
|
|
120239
|
+
*/
|
|
120240
|
+
403: MediaMediaError;
|
|
120241
|
+
/**
|
|
120242
|
+
* ASSET_NOT_FOUND: the source or the reference asset is missing, deleted or belongs to another library, or the addressed library was not found; verify the identifiers with libraries and assets. A reference asset that cannot be reached answers the same way, never as a hint that it exists elsewhere.
|
|
120243
|
+
*/
|
|
120244
|
+
404: MediaMediaError;
|
|
120245
|
+
/**
|
|
120246
|
+
* MODEL_PENDING or JOB_INVALID_STATE: the chosen model is not ready for this library, or the job cannot start from its current state; wait for the model to become available, or start a new job rather than resuming this one.
|
|
120247
|
+
*/
|
|
120248
|
+
409: MediaMediaError;
|
|
120249
|
+
/**
|
|
120250
|
+
* The file exceeds an input limit; provide a smaller source file.
|
|
120251
|
+
*/
|
|
120252
|
+
413: MediaMediaError;
|
|
120253
|
+
/**
|
|
120254
|
+
* This media format is unsupported; provide a supported format.
|
|
120255
|
+
*/
|
|
120256
|
+
415: MediaMediaError;
|
|
120257
|
+
/**
|
|
120258
|
+
* CONTENT_REJECTED: the provider refused the prompt or the source image under its content policy; change the prompt or the source before retrying. Nothing was generated and nothing was charged.
|
|
120259
|
+
*/
|
|
120260
|
+
422: MediaMediaError;
|
|
120261
|
+
/**
|
|
120262
|
+
* RATE_LIMITED: this library already has its maximum number of running jobs of this type and 50 more waiting, or the provider is throttling requests; Retry-After gives the seconds to wait before retrying. Below that a job past the running limit is accepted and waits (queue_reason concurrency) instead of being refused.
|
|
120263
|
+
*/
|
|
120264
|
+
429: MediaMediaError;
|
|
120265
|
+
/**
|
|
120266
|
+
* The requested operation is unsupported; choose a supported method.
|
|
120267
|
+
*/
|
|
120268
|
+
501: MediaMediaError;
|
|
120269
|
+
/**
|
|
120270
|
+
* Request failed; see the error code reference.
|
|
120271
|
+
*/
|
|
120272
|
+
502: MediaMediaError;
|
|
120273
|
+
/**
|
|
120274
|
+
* Historical projections are still being initialized, or library storage is temporarily unavailable; retry shortly and check failureSummary counts_complete.
|
|
120275
|
+
*/
|
|
120276
|
+
503: MediaMediaError;
|
|
120277
|
+
};
|
|
120278
|
+
export type MediaAlignAssetError = MediaAlignAssetErrors[keyof MediaAlignAssetErrors];
|
|
120279
|
+
export type MediaAlignAssetResponses = {
|
|
120280
|
+
/**
|
|
120281
|
+
* The alignment job is queued. Poll GET /media/v1/libraries/{library_id}/jobs/{job_id} until its status is completed or failed; a completed job carries the answer in result as offset_seconds and confidence, so a caller holding both recordings knows which one to slide. No asset is stored and nothing is overwritten. An alignment with the same source, reference and params answers the job already completed instead of analysing and charging again.
|
|
120282
|
+
*/
|
|
120283
|
+
202: MediaJob;
|
|
120284
|
+
};
|
|
120285
|
+
export type MediaAlignAssetResponse = MediaAlignAssetResponses[keyof MediaAlignAssetResponses];
|
|
120286
|
+
export type MediaGetHlsRenditionsData = {
|
|
120287
|
+
body?: never;
|
|
120288
|
+
path: {
|
|
120289
|
+
/**
|
|
120290
|
+
* Library ID returned by creation.
|
|
120291
|
+
*/
|
|
120292
|
+
library_id: string;
|
|
120293
|
+
/**
|
|
120294
|
+
* 32-character asset ID.
|
|
120295
|
+
*/
|
|
120296
|
+
asset_id: string;
|
|
120297
|
+
};
|
|
120298
|
+
query?: never;
|
|
120299
|
+
url: '/media/v1/libraries/{library_id}/assets/{asset_id}/hls';
|
|
120300
|
+
};
|
|
120301
|
+
export type MediaGetHlsRenditionsErrors = {
|
|
120302
|
+
/**
|
|
120303
|
+
* A selector, cursor, limit or other parameter is invalid; correct the reported field before retrying.
|
|
120304
|
+
*/
|
|
120305
|
+
400: MediaMediaError;
|
|
120306
|
+
/**
|
|
120307
|
+
* Request failed; see the error code reference.
|
|
120308
|
+
*/
|
|
120309
|
+
402: MediaMediaError;
|
|
120310
|
+
/**
|
|
120311
|
+
* This credential has read-only access to the library; use a write-capable binding for mutations.
|
|
120312
|
+
*/
|
|
120313
|
+
403: MediaMediaError;
|
|
120314
|
+
/**
|
|
120315
|
+
* The library or asset is missing, deleted or belongs to another tenant; verify its identifier and owner.
|
|
120316
|
+
*/
|
|
120317
|
+
404: MediaMediaError;
|
|
120318
|
+
/**
|
|
120319
|
+
* Request failed; see the error code reference.
|
|
120320
|
+
*/
|
|
120321
|
+
409: MediaMediaError;
|
|
120322
|
+
/**
|
|
120323
|
+
* The file exceeds an input limit; provide a smaller source file.
|
|
120324
|
+
*/
|
|
120325
|
+
413: MediaMediaError;
|
|
120326
|
+
/**
|
|
120327
|
+
* This media format is unsupported; provide a supported format.
|
|
120328
|
+
*/
|
|
120329
|
+
415: MediaMediaError;
|
|
120330
|
+
/**
|
|
120331
|
+
* Request failed; see the error code reference.
|
|
120332
|
+
*/
|
|
120333
|
+
422: MediaMediaError;
|
|
120334
|
+
/**
|
|
120335
|
+
* A rate limit was reached; wait before retrying.
|
|
120336
|
+
*/
|
|
120337
|
+
429: MediaMediaError;
|
|
120338
|
+
/**
|
|
120339
|
+
* The requested operation is unsupported; choose a supported method.
|
|
120340
|
+
*/
|
|
120341
|
+
501: MediaMediaError;
|
|
120342
|
+
/**
|
|
120343
|
+
* Request failed; see the error code reference.
|
|
120344
|
+
*/
|
|
120345
|
+
502: MediaMediaError;
|
|
120346
|
+
/**
|
|
120347
|
+
* Historical projections are still being initialized, or library storage is temporarily unavailable; retry shortly and check failureSummary counts_complete.
|
|
120348
|
+
*/
|
|
120349
|
+
503: MediaMediaError;
|
|
120350
|
+
};
|
|
120351
|
+
export type MediaGetHlsRenditionsError = MediaGetHlsRenditionsErrors[keyof MediaGetHlsRenditionsErrors];
|
|
120352
|
+
export type MediaGetHlsRenditionsResponses = {
|
|
120353
|
+
/**
|
|
120354
|
+
* Successful response.
|
|
120355
|
+
*/
|
|
120356
|
+
200: MediaHlsLadder;
|
|
120357
|
+
};
|
|
120358
|
+
export type MediaGetHlsRenditionsResponse = MediaGetHlsRenditionsResponses[keyof MediaGetHlsRenditionsResponses];
|
|
120359
|
+
export type MediaRequestHlsRenditionsData = {
|
|
120360
|
+
/**
|
|
120361
|
+
* Which clarity rungs to build for the asset. Omit heights to build the whole ladder.
|
|
120362
|
+
*/
|
|
120363
|
+
body: {
|
|
120364
|
+
/**
|
|
120365
|
+
* The clarity rungs to build: a non-empty subset of 480, 720 and 1080 with no repeats. Omitted or empty builds all three. The ladder never upscales, so a rung above the source’s short side is dropped.
|
|
120366
|
+
*/
|
|
120367
|
+
heights?: Array<480 | 720 | 1080>;
|
|
120368
|
+
};
|
|
120369
|
+
path: {
|
|
120370
|
+
/**
|
|
120371
|
+
* Library ID returned by creation.
|
|
120372
|
+
*/
|
|
120373
|
+
library_id: string;
|
|
120374
|
+
/**
|
|
120375
|
+
* 32-character asset ID.
|
|
120376
|
+
*/
|
|
120377
|
+
asset_id: string;
|
|
120378
|
+
};
|
|
120379
|
+
query?: never;
|
|
120380
|
+
url: '/media/v1/libraries/{library_id}/assets/{asset_id}/hls';
|
|
120381
|
+
};
|
|
120382
|
+
export type MediaRequestHlsRenditionsErrors = {
|
|
120383
|
+
/**
|
|
120384
|
+
* A selector, cursor, limit or other parameter is invalid; correct the reported field before retrying.
|
|
120385
|
+
*/
|
|
120386
|
+
400: MediaMediaError;
|
|
120387
|
+
/**
|
|
120388
|
+
* Request failed; see the error code reference.
|
|
120389
|
+
*/
|
|
120390
|
+
402: MediaMediaError;
|
|
120391
|
+
/**
|
|
120392
|
+
* This credential has read-only access to the library; use a write-capable binding for mutations.
|
|
120393
|
+
*/
|
|
120394
|
+
403: MediaMediaError;
|
|
120395
|
+
/**
|
|
120396
|
+
* The library or asset is missing, deleted or belongs to another tenant; verify its identifier and owner.
|
|
120397
|
+
*/
|
|
120398
|
+
404: MediaMediaError;
|
|
120399
|
+
/**
|
|
120400
|
+
* Request failed; see the error code reference.
|
|
120401
|
+
*/
|
|
120402
|
+
409: MediaMediaError;
|
|
120403
|
+
/**
|
|
120404
|
+
* The file exceeds an input limit; provide a smaller source file.
|
|
120405
|
+
*/
|
|
120406
|
+
413: MediaMediaError;
|
|
120407
|
+
/**
|
|
120408
|
+
* This media format is unsupported; provide a supported format.
|
|
120409
|
+
*/
|
|
120410
|
+
415: MediaMediaError;
|
|
120411
|
+
/**
|
|
120412
|
+
* Request failed; see the error code reference.
|
|
120413
|
+
*/
|
|
120414
|
+
422: MediaMediaError;
|
|
120415
|
+
/**
|
|
120416
|
+
* A rate limit was reached; wait before retrying.
|
|
120417
|
+
*/
|
|
120418
|
+
429: MediaMediaError;
|
|
120419
|
+
/**
|
|
120420
|
+
* The requested operation is unsupported; choose a supported method.
|
|
120421
|
+
*/
|
|
120422
|
+
501: MediaMediaError;
|
|
120423
|
+
/**
|
|
120424
|
+
* Request failed; see the error code reference.
|
|
120425
|
+
*/
|
|
120426
|
+
502: MediaMediaError;
|
|
120427
|
+
/**
|
|
120428
|
+
* Historical projections are still being initialized, or library storage is temporarily unavailable; retry shortly and check failureSummary counts_complete.
|
|
120429
|
+
*/
|
|
120430
|
+
503: MediaMediaError;
|
|
120431
|
+
};
|
|
120432
|
+
export type MediaRequestHlsRenditionsError = MediaRequestHlsRenditionsErrors[keyof MediaRequestHlsRenditionsErrors];
|
|
120433
|
+
export type MediaRequestHlsRenditionsResponses = {
|
|
118666
120434
|
/**
|
|
118667
120435
|
* Successful response.
|
|
118668
120436
|
*/
|
|
118669
|
-
|
|
120437
|
+
202: MediaHlsLadder;
|
|
118670
120438
|
};
|
|
118671
|
-
export type
|
|
118672
|
-
export type
|
|
118673
|
-
|
|
118674
|
-
|
|
120439
|
+
export type MediaRequestHlsRenditionsResponse = MediaRequestHlsRenditionsResponses[keyof MediaRequestHlsRenditionsResponses];
|
|
120440
|
+
export type MediaCreateVoiceData = {
|
|
120441
|
+
/**
|
|
120442
|
+
* Exactly one of the two voice shapes: consent_id with samples (a consented voice) or design_asset_id (a generated voice).
|
|
120443
|
+
*/
|
|
120444
|
+
body: MediaVoiceCloneInput | MediaVoiceDesignCreateInput;
|
|
120445
|
+
headers?: {
|
|
118675
120446
|
/**
|
|
118676
|
-
*
|
|
120447
|
+
* Stable key for retrying the same request without creating or charging for another job; reusing it with different request content is rejected. Send it here or as idempotency_key in the body, never both with different values.
|
|
118677
120448
|
*/
|
|
118678
|
-
|
|
120449
|
+
'Idempotency-Key'?: string;
|
|
118679
120450
|
};
|
|
118680
|
-
|
|
118681
|
-
/**
|
|
118682
|
-
* Filter jobs by their current status.
|
|
118683
|
-
*/
|
|
118684
|
-
status?: MediaJobStatus;
|
|
118685
|
-
/**
|
|
118686
|
-
* Return only the jobs started by this automation run (its root run), so one pipeline run reads as one batch.
|
|
118687
|
-
*/
|
|
118688
|
-
pipeline_run_id?: string;
|
|
118689
|
-
/**
|
|
118690
|
-
* Maximum entries in this page, from 1 through 100; defaults to 100.
|
|
118691
|
-
*/
|
|
118692
|
-
limit?: number;
|
|
120451
|
+
path: {
|
|
118693
120452
|
/**
|
|
118694
|
-
*
|
|
120453
|
+
* Library ID returned by creation.
|
|
118695
120454
|
*/
|
|
118696
|
-
|
|
120455
|
+
library_id: string;
|
|
118697
120456
|
};
|
|
118698
|
-
|
|
120457
|
+
query?: never;
|
|
120458
|
+
url: '/media/v1/libraries/{library_id}/voices';
|
|
118699
120459
|
};
|
|
118700
|
-
export type
|
|
120460
|
+
export type MediaCreateVoiceErrors = {
|
|
118701
120461
|
/**
|
|
118702
|
-
*
|
|
120462
|
+
* Request failed; see the error code reference.
|
|
118703
120463
|
*/
|
|
118704
120464
|
400: MediaMediaError;
|
|
118705
120465
|
/**
|
|
@@ -118707,11 +120467,11 @@ export type MediaListJobsErrors = {
|
|
|
118707
120467
|
*/
|
|
118708
120468
|
402: MediaMediaError;
|
|
118709
120469
|
/**
|
|
118710
|
-
*
|
|
120470
|
+
* Request failed; see the error code reference.
|
|
118711
120471
|
*/
|
|
118712
120472
|
403: MediaMediaError;
|
|
118713
120473
|
/**
|
|
118714
|
-
*
|
|
120474
|
+
* Request failed; see the error code reference.
|
|
118715
120475
|
*/
|
|
118716
120476
|
404: MediaMediaError;
|
|
118717
120477
|
/**
|
|
@@ -118719,11 +120479,11 @@ export type MediaListJobsErrors = {
|
|
|
118719
120479
|
*/
|
|
118720
120480
|
409: MediaMediaError;
|
|
118721
120481
|
/**
|
|
118722
|
-
*
|
|
120482
|
+
* Request failed; see the error code reference.
|
|
118723
120483
|
*/
|
|
118724
120484
|
413: MediaMediaError;
|
|
118725
120485
|
/**
|
|
118726
|
-
*
|
|
120486
|
+
* Request failed; see the error code reference.
|
|
118727
120487
|
*/
|
|
118728
120488
|
415: MediaMediaError;
|
|
118729
120489
|
/**
|
|
@@ -118731,11 +120491,11 @@ export type MediaListJobsErrors = {
|
|
|
118731
120491
|
*/
|
|
118732
120492
|
422: MediaMediaError;
|
|
118733
120493
|
/**
|
|
118734
|
-
*
|
|
120494
|
+
* Request failed; see the error code reference.
|
|
118735
120495
|
*/
|
|
118736
120496
|
429: MediaMediaError;
|
|
118737
120497
|
/**
|
|
118738
|
-
*
|
|
120498
|
+
* Request failed; see the error code reference.
|
|
118739
120499
|
*/
|
|
118740
120500
|
501: MediaMediaError;
|
|
118741
120501
|
/**
|
|
@@ -118743,36 +120503,58 @@ export type MediaListJobsErrors = {
|
|
|
118743
120503
|
*/
|
|
118744
120504
|
502: MediaMediaError;
|
|
118745
120505
|
/**
|
|
118746
|
-
*
|
|
120506
|
+
* Request failed; see the error code reference.
|
|
118747
120507
|
*/
|
|
118748
120508
|
503: MediaMediaError;
|
|
118749
120509
|
};
|
|
118750
|
-
export type
|
|
118751
|
-
export type
|
|
120510
|
+
export type MediaCreateVoiceError = MediaCreateVoiceErrors[keyof MediaCreateVoiceErrors];
|
|
120511
|
+
export type MediaCreateVoiceResponses = {
|
|
118752
120512
|
/**
|
|
118753
120513
|
* Successful response.
|
|
118754
120514
|
*/
|
|
118755
|
-
|
|
120515
|
+
202: MediaJob;
|
|
118756
120516
|
};
|
|
118757
|
-
export type
|
|
118758
|
-
export type
|
|
118759
|
-
|
|
120517
|
+
export type MediaCreateVoiceResponse = MediaCreateVoiceResponses[keyof MediaCreateVoiceResponses];
|
|
120518
|
+
export type MediaDesignVoiceData = {
|
|
120519
|
+
/**
|
|
120520
|
+
* One voice-design run: what the voice should sound like and the line the previews speak.
|
|
120521
|
+
*/
|
|
120522
|
+
body: {
|
|
120523
|
+
/**
|
|
120524
|
+
* Text description of the voice to design, 1 to 500 characters. The model makes every preview from it; a description that fails review answers CONTENT_REJECTED.
|
|
120525
|
+
*/
|
|
120526
|
+
description: string;
|
|
120527
|
+
/**
|
|
120528
|
+
* Line each preview speaks, 15 to 200 characters: long enough to hear the voice, short enough for one model call.
|
|
120529
|
+
*/
|
|
120530
|
+
preview_text: string;
|
|
120531
|
+
/**
|
|
120532
|
+
* Language the previews speak: zh or en only.
|
|
120533
|
+
*/
|
|
120534
|
+
language: 'zh' | 'en';
|
|
120535
|
+
/**
|
|
120536
|
+
* How many preview recordings to design, 1 to 3; defaults to 3. Each one is stored as an audio asset.
|
|
120537
|
+
*/
|
|
120538
|
+
count?: number;
|
|
120539
|
+
};
|
|
120540
|
+
headers?: {
|
|
120541
|
+
/**
|
|
120542
|
+
* Stable key for retrying the same request without creating or charging for another job; reusing it with different request content is rejected. Send it here or as idempotency_key in the body, never both with different values.
|
|
120543
|
+
*/
|
|
120544
|
+
'Idempotency-Key'?: string;
|
|
120545
|
+
};
|
|
118760
120546
|
path: {
|
|
118761
120547
|
/**
|
|
118762
120548
|
* Library ID returned by creation.
|
|
118763
120549
|
*/
|
|
118764
120550
|
library_id: string;
|
|
118765
|
-
/**
|
|
118766
|
-
* Job identifier returned by batch or generation creation; the job is resolved within the specified library.
|
|
118767
|
-
*/
|
|
118768
|
-
job_id: string;
|
|
118769
120551
|
};
|
|
118770
120552
|
query?: never;
|
|
118771
|
-
url: '/media/v1/libraries/{library_id}/
|
|
120553
|
+
url: '/media/v1/libraries/{library_id}/voices/designs';
|
|
118772
120554
|
};
|
|
118773
|
-
export type
|
|
120555
|
+
export type MediaDesignVoiceErrors = {
|
|
118774
120556
|
/**
|
|
118775
|
-
*
|
|
120557
|
+
* Request failed; see the error code reference.
|
|
118776
120558
|
*/
|
|
118777
120559
|
400: MediaMediaError;
|
|
118778
120560
|
/**
|
|
@@ -118780,11 +120562,11 @@ export type MediaCancelJobErrors = {
|
|
|
118780
120562
|
*/
|
|
118781
120563
|
402: MediaMediaError;
|
|
118782
120564
|
/**
|
|
118783
|
-
*
|
|
120565
|
+
* Request failed; see the error code reference.
|
|
118784
120566
|
*/
|
|
118785
120567
|
403: MediaMediaError;
|
|
118786
120568
|
/**
|
|
118787
|
-
*
|
|
120569
|
+
* Request failed; see the error code reference.
|
|
118788
120570
|
*/
|
|
118789
120571
|
404: MediaMediaError;
|
|
118790
120572
|
/**
|
|
@@ -118792,11 +120574,11 @@ export type MediaCancelJobErrors = {
|
|
|
118792
120574
|
*/
|
|
118793
120575
|
409: MediaMediaError;
|
|
118794
120576
|
/**
|
|
118795
|
-
*
|
|
120577
|
+
* Request failed; see the error code reference.
|
|
118796
120578
|
*/
|
|
118797
120579
|
413: MediaMediaError;
|
|
118798
120580
|
/**
|
|
118799
|
-
*
|
|
120581
|
+
* Request failed; see the error code reference.
|
|
118800
120582
|
*/
|
|
118801
120583
|
415: MediaMediaError;
|
|
118802
120584
|
/**
|
|
@@ -118804,11 +120586,11 @@ export type MediaCancelJobErrors = {
|
|
|
118804
120586
|
*/
|
|
118805
120587
|
422: MediaMediaError;
|
|
118806
120588
|
/**
|
|
118807
|
-
*
|
|
120589
|
+
* Request failed; see the error code reference.
|
|
118808
120590
|
*/
|
|
118809
120591
|
429: MediaMediaError;
|
|
118810
120592
|
/**
|
|
118811
|
-
*
|
|
120593
|
+
* Request failed; see the error code reference.
|
|
118812
120594
|
*/
|
|
118813
120595
|
501: MediaMediaError;
|
|
118814
120596
|
/**
|
|
@@ -118816,25 +120598,51 @@ export type MediaCancelJobErrors = {
|
|
|
118816
120598
|
*/
|
|
118817
120599
|
502: MediaMediaError;
|
|
118818
120600
|
/**
|
|
118819
|
-
*
|
|
120601
|
+
* Request failed; see the error code reference.
|
|
118820
120602
|
*/
|
|
118821
120603
|
503: MediaMediaError;
|
|
118822
120604
|
};
|
|
118823
|
-
export type
|
|
118824
|
-
export type
|
|
120605
|
+
export type MediaDesignVoiceError = MediaDesignVoiceErrors[keyof MediaDesignVoiceErrors];
|
|
120606
|
+
export type MediaDesignVoiceResponses = {
|
|
118825
120607
|
/**
|
|
118826
120608
|
* Successful response.
|
|
118827
120609
|
*/
|
|
118828
|
-
|
|
120610
|
+
202: MediaJob;
|
|
118829
120611
|
};
|
|
118830
|
-
export type
|
|
118831
|
-
export type
|
|
120612
|
+
export type MediaDesignVoiceResponse = MediaDesignVoiceResponses[keyof MediaDesignVoiceResponses];
|
|
120613
|
+
export type MediaListWorksData = {
|
|
118832
120614
|
body?: never;
|
|
118833
|
-
path
|
|
118834
|
-
|
|
118835
|
-
|
|
120615
|
+
path: {
|
|
120616
|
+
/**
|
|
120617
|
+
* Library ID returned by creation.
|
|
120618
|
+
*/
|
|
120619
|
+
library_id: string;
|
|
120620
|
+
};
|
|
120621
|
+
query?: {
|
|
120622
|
+
/**
|
|
120623
|
+
* Only works of this kind: gallery, article, product_listing or blocks.
|
|
120624
|
+
*/
|
|
120625
|
+
kind?: 'gallery' | 'article' | 'product_listing' | 'blocks';
|
|
120626
|
+
/**
|
|
120627
|
+
* Only works of this series.
|
|
120628
|
+
*/
|
|
120629
|
+
series?: string;
|
|
120630
|
+
/**
|
|
120631
|
+
* Only works whose title contains this text, at most 100 characters.
|
|
120632
|
+
*/
|
|
120633
|
+
q?: string;
|
|
120634
|
+
/**
|
|
120635
|
+
* Maximum entries in this page, from 1 through 100; defaults to 100.
|
|
120636
|
+
*/
|
|
120637
|
+
limit?: number;
|
|
120638
|
+
/**
|
|
120639
|
+
* Cursor from the previous next_cursor.
|
|
120640
|
+
*/
|
|
120641
|
+
cursor?: string;
|
|
120642
|
+
};
|
|
120643
|
+
url: '/media/v1/libraries/{library_id}/works';
|
|
118836
120644
|
};
|
|
118837
|
-
export type
|
|
120645
|
+
export type MediaListWorksErrors = {
|
|
118838
120646
|
/**
|
|
118839
120647
|
* A selector, cursor, limit or other parameter is invalid; correct the reported field before retrying.
|
|
118840
120648
|
*/
|
|
@@ -118884,58 +120692,52 @@ export type MediaGetGenerationCapabilitiesErrors = {
|
|
|
118884
120692
|
*/
|
|
118885
120693
|
503: MediaMediaError;
|
|
118886
120694
|
};
|
|
118887
|
-
export type
|
|
118888
|
-
export type
|
|
120695
|
+
export type MediaListWorksError = MediaListWorksErrors[keyof MediaListWorksErrors];
|
|
120696
|
+
export type MediaListWorksResponses = {
|
|
118889
120697
|
/**
|
|
118890
120698
|
* Successful response.
|
|
118891
120699
|
*/
|
|
118892
|
-
200:
|
|
120700
|
+
200: MediaWorkPage;
|
|
118893
120701
|
};
|
|
118894
|
-
export type
|
|
118895
|
-
export type
|
|
120702
|
+
export type MediaListWorksResponse = MediaListWorksResponses[keyof MediaListWorksResponses];
|
|
120703
|
+
export type MediaCreateWorkData = {
|
|
118896
120704
|
/**
|
|
118897
|
-
*
|
|
120705
|
+
* A new work: its kind and its whole body, with an optional series and custom fields.
|
|
118898
120706
|
*/
|
|
118899
120707
|
body: {
|
|
118900
120708
|
/**
|
|
118901
|
-
*
|
|
120709
|
+
* The work’s kind; it decides which body fields are accepted.
|
|
118902
120710
|
*/
|
|
118903
|
-
|
|
120711
|
+
kind: MediaWorkKind;
|
|
118904
120712
|
/**
|
|
118905
|
-
*
|
|
120713
|
+
* 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.
|
|
118906
120714
|
*/
|
|
118907
|
-
|
|
120715
|
+
body: MediaWorkBody;
|
|
118908
120716
|
/**
|
|
118909
|
-
*
|
|
120717
|
+
* Groups the platform versions of one story: 1 to 64 characters of a-z, 0-9, _ and -.
|
|
118910
120718
|
*/
|
|
118911
|
-
|
|
118912
|
-
};
|
|
118913
|
-
headers?: {
|
|
120719
|
+
series?: string;
|
|
118914
120720
|
/**
|
|
118915
|
-
*
|
|
120721
|
+
* Caller data such as source, published links and numbers; at most 50 keys and 16 KB as JSON.
|
|
118916
120722
|
*/
|
|
118917
|
-
|
|
120723
|
+
custom?: MediaWorkCustom;
|
|
118918
120724
|
};
|
|
118919
120725
|
path: {
|
|
118920
120726
|
/**
|
|
118921
120727
|
* Library ID returned by creation.
|
|
118922
120728
|
*/
|
|
118923
120729
|
library_id: string;
|
|
118924
|
-
/**
|
|
118925
|
-
* 32-character asset ID.
|
|
118926
|
-
*/
|
|
118927
|
-
asset_id: string;
|
|
118928
120730
|
};
|
|
118929
120731
|
query?: never;
|
|
118930
|
-
url: '/media/v1/libraries/{library_id}/
|
|
120732
|
+
url: '/media/v1/libraries/{library_id}/works';
|
|
118931
120733
|
};
|
|
118932
|
-
export type
|
|
120734
|
+
export type MediaCreateWorkErrors = {
|
|
118933
120735
|
/**
|
|
118934
|
-
*
|
|
120736
|
+
* A selector, cursor, limit or other parameter is invalid; correct the reported field before retrying.
|
|
118935
120737
|
*/
|
|
118936
120738
|
400: MediaMediaError;
|
|
118937
120739
|
/**
|
|
118938
|
-
*
|
|
120740
|
+
* Request failed; see the error code reference.
|
|
118939
120741
|
*/
|
|
118940
120742
|
402: MediaMediaError;
|
|
118941
120743
|
/**
|
|
@@ -118943,11 +120745,11 @@ export type MediaAlignAssetErrors = {
|
|
|
118943
120745
|
*/
|
|
118944
120746
|
403: MediaMediaError;
|
|
118945
120747
|
/**
|
|
118946
|
-
*
|
|
120748
|
+
* The library or asset is missing, deleted or belongs to another tenant; verify its identifier and owner.
|
|
118947
120749
|
*/
|
|
118948
120750
|
404: MediaMediaError;
|
|
118949
120751
|
/**
|
|
118950
|
-
*
|
|
120752
|
+
* Request failed; see the error code reference.
|
|
118951
120753
|
*/
|
|
118952
120754
|
409: MediaMediaError;
|
|
118953
120755
|
/**
|
|
@@ -118959,11 +120761,11 @@ export type MediaAlignAssetErrors = {
|
|
|
118959
120761
|
*/
|
|
118960
120762
|
415: MediaMediaError;
|
|
118961
120763
|
/**
|
|
118962
|
-
*
|
|
120764
|
+
* Request failed; see the error code reference.
|
|
118963
120765
|
*/
|
|
118964
120766
|
422: MediaMediaError;
|
|
118965
120767
|
/**
|
|
118966
|
-
*
|
|
120768
|
+
* A rate limit was reached; wait before retrying.
|
|
118967
120769
|
*/
|
|
118968
120770
|
429: MediaMediaError;
|
|
118969
120771
|
/**
|
|
@@ -118979,15 +120781,15 @@ export type MediaAlignAssetErrors = {
|
|
|
118979
120781
|
*/
|
|
118980
120782
|
503: MediaMediaError;
|
|
118981
120783
|
};
|
|
118982
|
-
export type
|
|
118983
|
-
export type
|
|
120784
|
+
export type MediaCreateWorkError = MediaCreateWorkErrors[keyof MediaCreateWorkErrors];
|
|
120785
|
+
export type MediaCreateWorkResponses = {
|
|
118984
120786
|
/**
|
|
118985
|
-
*
|
|
120787
|
+
* Successful response.
|
|
118986
120788
|
*/
|
|
118987
|
-
|
|
120789
|
+
200: MediaWork;
|
|
118988
120790
|
};
|
|
118989
|
-
export type
|
|
118990
|
-
export type
|
|
120791
|
+
export type MediaCreateWorkResponse = MediaCreateWorkResponses[keyof MediaCreateWorkResponses];
|
|
120792
|
+
export type MediaDeleteWorkData = {
|
|
118991
120793
|
body?: never;
|
|
118992
120794
|
path: {
|
|
118993
120795
|
/**
|
|
@@ -118995,14 +120797,14 @@ export type MediaGetHlsRenditionsData = {
|
|
|
118995
120797
|
*/
|
|
118996
120798
|
library_id: string;
|
|
118997
120799
|
/**
|
|
118998
|
-
*
|
|
120800
|
+
* Work id (wrk_…) returned by creation or listing.
|
|
118999
120801
|
*/
|
|
119000
|
-
|
|
120802
|
+
work_id: string;
|
|
119001
120803
|
};
|
|
119002
120804
|
query?: never;
|
|
119003
|
-
url: '/media/v1/libraries/{library_id}/
|
|
120805
|
+
url: '/media/v1/libraries/{library_id}/works/{work_id}';
|
|
119004
120806
|
};
|
|
119005
|
-
export type
|
|
120807
|
+
export type MediaDeleteWorkErrors = {
|
|
119006
120808
|
/**
|
|
119007
120809
|
* A selector, cursor, limit or other parameter is invalid; correct the reported field before retrying.
|
|
119008
120810
|
*/
|
|
@@ -119052,38 +120854,35 @@ export type MediaGetHlsRenditionsErrors = {
|
|
|
119052
120854
|
*/
|
|
119053
120855
|
503: MediaMediaError;
|
|
119054
120856
|
};
|
|
119055
|
-
export type
|
|
119056
|
-
export type
|
|
120857
|
+
export type MediaDeleteWorkError = MediaDeleteWorkErrors[keyof MediaDeleteWorkErrors];
|
|
120858
|
+
export type MediaDeleteWorkResponses = {
|
|
119057
120859
|
/**
|
|
119058
120860
|
* Successful response.
|
|
119059
120861
|
*/
|
|
119060
|
-
200:
|
|
120862
|
+
200: MediaDeletedWork;
|
|
119061
120863
|
};
|
|
119062
|
-
export type
|
|
119063
|
-
export type
|
|
119064
|
-
|
|
119065
|
-
* Which clarity rungs to build for the asset. Omit heights to build the whole ladder.
|
|
119066
|
-
*/
|
|
119067
|
-
body: {
|
|
119068
|
-
/**
|
|
119069
|
-
* The clarity rungs to build: a non-empty subset of 480, 720 and 1080 with no repeats. Omitted or empty builds all three. The ladder never upscales, so a rung above the source’s short side is dropped.
|
|
119070
|
-
*/
|
|
119071
|
-
heights?: Array<480 | 720 | 1080>;
|
|
119072
|
-
};
|
|
120864
|
+
export type MediaDeleteWorkResponse = MediaDeleteWorkResponses[keyof MediaDeleteWorkResponses];
|
|
120865
|
+
export type MediaGetWorkData = {
|
|
120866
|
+
body?: never;
|
|
119073
120867
|
path: {
|
|
119074
120868
|
/**
|
|
119075
120869
|
* Library ID returned by creation.
|
|
119076
120870
|
*/
|
|
119077
120871
|
library_id: string;
|
|
119078
120872
|
/**
|
|
119079
|
-
*
|
|
120873
|
+
* Work id (wrk_…) returned by creation or listing.
|
|
119080
120874
|
*/
|
|
119081
|
-
|
|
120875
|
+
work_id: string;
|
|
119082
120876
|
};
|
|
119083
|
-
query?:
|
|
119084
|
-
|
|
120877
|
+
query?: {
|
|
120878
|
+
/**
|
|
120879
|
+
* assets returns every referenced asset with its URLs and size.
|
|
120880
|
+
*/
|
|
120881
|
+
expand?: string;
|
|
120882
|
+
};
|
|
120883
|
+
url: '/media/v1/libraries/{library_id}/works/{work_id}';
|
|
119085
120884
|
};
|
|
119086
|
-
export type
|
|
120885
|
+
export type MediaGetWorkErrors = {
|
|
119087
120886
|
/**
|
|
119088
120887
|
* A selector, cursor, limit or other parameter is invalid; correct the reported field before retrying.
|
|
119089
120888
|
*/
|
|
@@ -119133,37 +120932,52 @@ export type MediaRequestHlsRenditionsErrors = {
|
|
|
119133
120932
|
*/
|
|
119134
120933
|
503: MediaMediaError;
|
|
119135
120934
|
};
|
|
119136
|
-
export type
|
|
119137
|
-
export type
|
|
120935
|
+
export type MediaGetWorkError = MediaGetWorkErrors[keyof MediaGetWorkErrors];
|
|
120936
|
+
export type MediaGetWorkResponses = {
|
|
119138
120937
|
/**
|
|
119139
120938
|
* Successful response.
|
|
119140
120939
|
*/
|
|
119141
|
-
|
|
120940
|
+
200: MediaWork;
|
|
119142
120941
|
};
|
|
119143
|
-
export type
|
|
119144
|
-
export type
|
|
120942
|
+
export type MediaGetWorkResponse = MediaGetWorkResponses[keyof MediaGetWorkResponses];
|
|
120943
|
+
export type MediaUpdateWorkData = {
|
|
119145
120944
|
/**
|
|
119146
|
-
*
|
|
120945
|
+
* Changes to a work. Send only what changes.
|
|
119147
120946
|
*/
|
|
119148
|
-
body:
|
|
119149
|
-
headers?: {
|
|
120947
|
+
body: {
|
|
119150
120948
|
/**
|
|
119151
|
-
*
|
|
120949
|
+
* A whole new body for the same kind; it replaces the old one and is checked like a new one.
|
|
119152
120950
|
*/
|
|
119153
|
-
|
|
120951
|
+
body?: MediaWorkBody;
|
|
120952
|
+
/**
|
|
120953
|
+
* A new series, or null to clear it.
|
|
120954
|
+
*/
|
|
120955
|
+
series?: string | null;
|
|
120956
|
+
/**
|
|
120957
|
+
* A JSON Merge Patch (RFC 7396): keys you send are set, keys set to null are removed, keys you leave out are kept.
|
|
120958
|
+
*/
|
|
120959
|
+
custom?: MediaWorkCustom;
|
|
120960
|
+
/**
|
|
120961
|
+
* Apply the change only if the work is still at this revision; otherwise the answer is 409 REVISION_CONFLICT with the current revision.
|
|
120962
|
+
*/
|
|
120963
|
+
if_revision?: number;
|
|
119154
120964
|
};
|
|
119155
120965
|
path: {
|
|
119156
120966
|
/**
|
|
119157
120967
|
* Library ID returned by creation.
|
|
119158
120968
|
*/
|
|
119159
120969
|
library_id: string;
|
|
120970
|
+
/**
|
|
120971
|
+
* Work id (wrk_…) returned by creation or listing.
|
|
120972
|
+
*/
|
|
120973
|
+
work_id: string;
|
|
119160
120974
|
};
|
|
119161
120975
|
query?: never;
|
|
119162
|
-
url: '/media/v1/libraries/{library_id}/
|
|
120976
|
+
url: '/media/v1/libraries/{library_id}/works/{work_id}';
|
|
119163
120977
|
};
|
|
119164
|
-
export type
|
|
120978
|
+
export type MediaUpdateWorkErrors = {
|
|
119165
120979
|
/**
|
|
119166
|
-
*
|
|
120980
|
+
* A selector, cursor, limit or other parameter is invalid; correct the reported field before retrying.
|
|
119167
120981
|
*/
|
|
119168
120982
|
400: MediaMediaError;
|
|
119169
120983
|
/**
|
|
@@ -119171,11 +120985,11 @@ export type MediaCreateVoiceErrors = {
|
|
|
119171
120985
|
*/
|
|
119172
120986
|
402: MediaMediaError;
|
|
119173
120987
|
/**
|
|
119174
|
-
*
|
|
120988
|
+
* This credential has read-only access to the library; use a write-capable binding for mutations.
|
|
119175
120989
|
*/
|
|
119176
120990
|
403: MediaMediaError;
|
|
119177
120991
|
/**
|
|
119178
|
-
*
|
|
120992
|
+
* The library or asset is missing, deleted or belongs to another tenant; verify its identifier and owner.
|
|
119179
120993
|
*/
|
|
119180
120994
|
404: MediaMediaError;
|
|
119181
120995
|
/**
|
|
@@ -119183,11 +120997,11 @@ export type MediaCreateVoiceErrors = {
|
|
|
119183
120997
|
*/
|
|
119184
120998
|
409: MediaMediaError;
|
|
119185
120999
|
/**
|
|
119186
|
-
*
|
|
121000
|
+
* The file exceeds an input limit; provide a smaller source file.
|
|
119187
121001
|
*/
|
|
119188
121002
|
413: MediaMediaError;
|
|
119189
121003
|
/**
|
|
119190
|
-
*
|
|
121004
|
+
* This media format is unsupported; provide a supported format.
|
|
119191
121005
|
*/
|
|
119192
121006
|
415: MediaMediaError;
|
|
119193
121007
|
/**
|
|
@@ -119195,11 +121009,11 @@ export type MediaCreateVoiceErrors = {
|
|
|
119195
121009
|
*/
|
|
119196
121010
|
422: MediaMediaError;
|
|
119197
121011
|
/**
|
|
119198
|
-
*
|
|
121012
|
+
* A rate limit was reached; wait before retrying.
|
|
119199
121013
|
*/
|
|
119200
121014
|
429: MediaMediaError;
|
|
119201
121015
|
/**
|
|
119202
|
-
*
|
|
121016
|
+
* The requested operation is unsupported; choose a supported method.
|
|
119203
121017
|
*/
|
|
119204
121018
|
501: MediaMediaError;
|
|
119205
121019
|
/**
|
|
@@ -119207,58 +121021,45 @@ export type MediaCreateVoiceErrors = {
|
|
|
119207
121021
|
*/
|
|
119208
121022
|
502: MediaMediaError;
|
|
119209
121023
|
/**
|
|
119210
|
-
*
|
|
121024
|
+
* Historical projections are still being initialized, or library storage is temporarily unavailable; retry shortly and check failureSummary counts_complete.
|
|
119211
121025
|
*/
|
|
119212
121026
|
503: MediaMediaError;
|
|
119213
121027
|
};
|
|
119214
|
-
export type
|
|
119215
|
-
export type
|
|
121028
|
+
export type MediaUpdateWorkError = MediaUpdateWorkErrors[keyof MediaUpdateWorkErrors];
|
|
121029
|
+
export type MediaUpdateWorkResponses = {
|
|
119216
121030
|
/**
|
|
119217
121031
|
* Successful response.
|
|
119218
121032
|
*/
|
|
119219
|
-
|
|
121033
|
+
200: MediaWork;
|
|
119220
121034
|
};
|
|
119221
|
-
export type
|
|
119222
|
-
export type
|
|
119223
|
-
|
|
119224
|
-
|
|
119225
|
-
*/
|
|
119226
|
-
body: {
|
|
119227
|
-
/**
|
|
119228
|
-
* Text description of the voice to design, 1 to 500 characters. The model makes every preview from it; a description that fails review answers CONTENT_REJECTED.
|
|
119229
|
-
*/
|
|
119230
|
-
description: string;
|
|
119231
|
-
/**
|
|
119232
|
-
* Line each preview speaks, 15 to 200 characters: long enough to hear the voice, short enough for one model call.
|
|
119233
|
-
*/
|
|
119234
|
-
preview_text: string;
|
|
121035
|
+
export type MediaUpdateWorkResponse = MediaUpdateWorkResponses[keyof MediaUpdateWorkResponses];
|
|
121036
|
+
export type MediaListAssetWorksData = {
|
|
121037
|
+
body?: never;
|
|
121038
|
+
path: {
|
|
119235
121039
|
/**
|
|
119236
|
-
*
|
|
121040
|
+
* Library ID returned by creation.
|
|
119237
121041
|
*/
|
|
119238
|
-
|
|
121042
|
+
library_id: string;
|
|
119239
121043
|
/**
|
|
119240
|
-
*
|
|
121044
|
+
* 32-character asset ID.
|
|
119241
121045
|
*/
|
|
119242
|
-
|
|
121046
|
+
asset_id: string;
|
|
119243
121047
|
};
|
|
119244
|
-
|
|
121048
|
+
query?: {
|
|
119245
121049
|
/**
|
|
119246
|
-
*
|
|
121050
|
+
* Maximum entries in this page, from 1 through 100; defaults to 100.
|
|
119247
121051
|
*/
|
|
119248
|
-
|
|
119249
|
-
};
|
|
119250
|
-
path: {
|
|
121052
|
+
limit?: number;
|
|
119251
121053
|
/**
|
|
119252
|
-
*
|
|
121054
|
+
* Cursor from the previous next_cursor.
|
|
119253
121055
|
*/
|
|
119254
|
-
|
|
121056
|
+
cursor?: string;
|
|
119255
121057
|
};
|
|
119256
|
-
|
|
119257
|
-
url: '/media/v1/libraries/{library_id}/voices/designs';
|
|
121058
|
+
url: '/media/v1/libraries/{library_id}/assets/{asset_id}/works';
|
|
119258
121059
|
};
|
|
119259
|
-
export type
|
|
121060
|
+
export type MediaListAssetWorksErrors = {
|
|
119260
121061
|
/**
|
|
119261
|
-
*
|
|
121062
|
+
* A selector, cursor, limit or other parameter is invalid; correct the reported field before retrying.
|
|
119262
121063
|
*/
|
|
119263
121064
|
400: MediaMediaError;
|
|
119264
121065
|
/**
|
|
@@ -119266,11 +121067,11 @@ export type MediaDesignVoiceErrors = {
|
|
|
119266
121067
|
*/
|
|
119267
121068
|
402: MediaMediaError;
|
|
119268
121069
|
/**
|
|
119269
|
-
*
|
|
121070
|
+
* This credential has read-only access to the library; use a write-capable binding for mutations.
|
|
119270
121071
|
*/
|
|
119271
121072
|
403: MediaMediaError;
|
|
119272
121073
|
/**
|
|
119273
|
-
*
|
|
121074
|
+
* The library or asset is missing, deleted or belongs to another tenant; verify its identifier and owner.
|
|
119274
121075
|
*/
|
|
119275
121076
|
404: MediaMediaError;
|
|
119276
121077
|
/**
|
|
@@ -119278,11 +121079,11 @@ export type MediaDesignVoiceErrors = {
|
|
|
119278
121079
|
*/
|
|
119279
121080
|
409: MediaMediaError;
|
|
119280
121081
|
/**
|
|
119281
|
-
*
|
|
121082
|
+
* The file exceeds an input limit; provide a smaller source file.
|
|
119282
121083
|
*/
|
|
119283
121084
|
413: MediaMediaError;
|
|
119284
121085
|
/**
|
|
119285
|
-
*
|
|
121086
|
+
* This media format is unsupported; provide a supported format.
|
|
119286
121087
|
*/
|
|
119287
121088
|
415: MediaMediaError;
|
|
119288
121089
|
/**
|
|
@@ -119290,11 +121091,11 @@ export type MediaDesignVoiceErrors = {
|
|
|
119290
121091
|
*/
|
|
119291
121092
|
422: MediaMediaError;
|
|
119292
121093
|
/**
|
|
119293
|
-
*
|
|
121094
|
+
* A rate limit was reached; wait before retrying.
|
|
119294
121095
|
*/
|
|
119295
121096
|
429: MediaMediaError;
|
|
119296
121097
|
/**
|
|
119297
|
-
*
|
|
121098
|
+
* The requested operation is unsupported; choose a supported method.
|
|
119298
121099
|
*/
|
|
119299
121100
|
501: MediaMediaError;
|
|
119300
121101
|
/**
|
|
@@ -119302,18 +121103,18 @@ export type MediaDesignVoiceErrors = {
|
|
|
119302
121103
|
*/
|
|
119303
121104
|
502: MediaMediaError;
|
|
119304
121105
|
/**
|
|
119305
|
-
*
|
|
121106
|
+
* Historical projections are still being initialized, or library storage is temporarily unavailable; retry shortly and check failureSummary counts_complete.
|
|
119306
121107
|
*/
|
|
119307
121108
|
503: MediaMediaError;
|
|
119308
121109
|
};
|
|
119309
|
-
export type
|
|
119310
|
-
export type
|
|
121110
|
+
export type MediaListAssetWorksError = MediaListAssetWorksErrors[keyof MediaListAssetWorksErrors];
|
|
121111
|
+
export type MediaListAssetWorksResponses = {
|
|
119311
121112
|
/**
|
|
119312
121113
|
* Successful response.
|
|
119313
121114
|
*/
|
|
119314
|
-
|
|
121115
|
+
200: MediaWorkPage;
|
|
119315
121116
|
};
|
|
119316
|
-
export type
|
|
121117
|
+
export type MediaListAssetWorksResponse = MediaListAssetWorksResponses[keyof MediaListAssetWorksResponses];
|
|
119317
121118
|
export type OntologyListTypesData = {
|
|
119318
121119
|
body?: never;
|
|
119319
121120
|
path?: never;
|
|
@@ -121273,7 +123074,7 @@ export type GetSandboxV1SandboxesResponses = {
|
|
|
121273
123074
|
};
|
|
121274
123075
|
export type GetSandboxV1SandboxesResponse = GetSandboxV1SandboxesResponses[keyof GetSandboxV1SandboxesResponses];
|
|
121275
123076
|
export type PostSandboxV1SandboxesData = {
|
|
121276
|
-
body:
|
|
123077
|
+
body: SandboxNewSandboxV2Writable;
|
|
121277
123078
|
path?: never;
|
|
121278
123079
|
query?: never;
|
|
121279
123080
|
url: '/sandbox/v1/sandboxes';
|