@deepraxis/sdk 0.2.0-dev.47ce97a → 0.2.0-dev.49e9c46
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 +30 -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 +1942 -48
- package/dist/helpers/browser-actions.d.ts +2 -0
- package/dist/helpers/browser-actions.js +2 -0
- package/dist/helpers/browser-connect.d.ts +10 -1
- package/dist/helpers/browser-connect.js +29 -6
- package/dist/helpers/browser-decisions.d.ts +2 -0
- package/dist/helpers/browser-decisions.js +7 -0
- package/dist/helpers/browser-documentation.d.ts +1 -1
- package/dist/helpers/browser-documentation.js +1 -0
- package/dist/operations.generated.js +505 -31
- package/dist/resources.generated.d.ts +107 -0
- package/dist/resources.generated.js +19 -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,11 +3696,48 @@ 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
|
+
];
|
|
3702
3739
|
/**
|
|
3703
|
-
*
|
|
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。
|
|
3704
3741
|
*/
|
|
3705
3742
|
source?: {
|
|
3706
3743
|
/**
|
|
@@ -3774,7 +3811,7 @@ export type BrowserSessionCreateResult = {
|
|
|
3774
3811
|
*/
|
|
3775
3812
|
region: 'ap-southeast-1';
|
|
3776
3813
|
/**
|
|
3777
|
-
*
|
|
3814
|
+
* 会话经代理链转发的流量字节数(上行与下行之和),容器后端的会话按它计费;Browser Run 和自带浏览器固定为 0,运行中每几分钟更新一次。
|
|
3778
3815
|
*/
|
|
3779
3816
|
proxyBytes: number;
|
|
3780
3817
|
/**
|
|
@@ -3955,7 +3992,7 @@ export type BrowserSession = {
|
|
|
3955
3992
|
*/
|
|
3956
3993
|
region: 'ap-southeast-1';
|
|
3957
3994
|
/**
|
|
3958
|
-
*
|
|
3995
|
+
* 会话经代理链转发的流量字节数(上行与下行之和),容器后端的会话按它计费;Browser Run 和自带浏览器固定为 0,运行中每几分钟更新一次。
|
|
3959
3996
|
*/
|
|
3960
3997
|
proxyBytes: number;
|
|
3961
3998
|
/**
|
|
@@ -4114,7 +4151,7 @@ export type BrowserSessionGetResult = {
|
|
|
4114
4151
|
*/
|
|
4115
4152
|
region: 'ap-southeast-1';
|
|
4116
4153
|
/**
|
|
4117
|
-
*
|
|
4154
|
+
* 会话经代理链转发的流量字节数(上行与下行之和),容器后端的会话按它计费;Browser Run 和自带浏览器固定为 0,运行中每几分钟更新一次。
|
|
4118
4155
|
*/
|
|
4119
4156
|
proxyBytes: number;
|
|
4120
4157
|
/**
|
|
@@ -4270,11 +4307,11 @@ export type BrowserSessionGetResult = {
|
|
|
4270
4307
|
*/
|
|
4271
4308
|
export type BrowserSessionLiveUrls = {
|
|
4272
4309
|
/**
|
|
4273
|
-
*
|
|
4310
|
+
* 与 debuggerUrl 相同:会话在 Console 的会话页地址。
|
|
4274
4311
|
*/
|
|
4275
4312
|
debuggerFullscreenUrl: string;
|
|
4276
4313
|
/**
|
|
4277
|
-
*
|
|
4314
|
+
* 会话在 Console 的会话页地址,发给人观看或接管。打开的人须登录 Console 且属于会话所在组织;会话创建者或在接管请求有效期内的组织成员可以点「接管」直接点击、拖动和输入,其他成员只读观看。地址不带凭证,不能嵌入 iframe。
|
|
4278
4315
|
*/
|
|
4279
4316
|
debuggerUrl: string;
|
|
4280
4317
|
/**
|
|
@@ -4302,11 +4339,11 @@ export type BrowserSessionLiveUrls = {
|
|
|
4302
4339
|
*/
|
|
4303
4340
|
faviconUrl: string;
|
|
4304
4341
|
/**
|
|
4305
|
-
*
|
|
4342
|
+
* 会话在 Console 的会话页地址,与会话级 debuggerUrl 相同。
|
|
4306
4343
|
*/
|
|
4307
4344
|
debuggerUrl: string;
|
|
4308
4345
|
/**
|
|
4309
|
-
*
|
|
4346
|
+
* 与该页 debuggerUrl 相同。
|
|
4310
4347
|
*/
|
|
4311
4348
|
debuggerFullscreenUrl: string;
|
|
4312
4349
|
}>;
|
|
@@ -4390,6 +4427,36 @@ export type BrowserContextCreateResult = {
|
|
|
4390
4427
|
* UTC timestamp when a session last started with this context; absent if it has never been used.
|
|
4391
4428
|
*/
|
|
4392
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
|
+
};
|
|
4393
4460
|
/**
|
|
4394
4461
|
* Empty compatibility field; context encryption keys are held by the server.
|
|
4395
4462
|
*/
|
|
@@ -4450,6 +4517,36 @@ export type BrowserContext = {
|
|
|
4450
4517
|
* UTC timestamp when a session last started with this context; absent if it has never been used.
|
|
4451
4518
|
*/
|
|
4452
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
|
+
};
|
|
4453
4550
|
};
|
|
4454
4551
|
export type BrowserByobPairing = {
|
|
4455
4552
|
/**
|
|
@@ -4583,6 +4680,10 @@ export type BrowserStreamMessage = {
|
|
|
4583
4680
|
*/
|
|
4584
4681
|
nextCursor: string | null;
|
|
4585
4682
|
};
|
|
4683
|
+
/**
|
|
4684
|
+
* The tab in front: the newest one the browser opened or the one a client last brought to the front. null when unknown.
|
|
4685
|
+
*/
|
|
4686
|
+
activePageId?: string | null;
|
|
4586
4687
|
};
|
|
4587
4688
|
} | {
|
|
4588
4689
|
event: 'session';
|
|
@@ -4593,7 +4694,10 @@ export type BrowserStreamMessage = {
|
|
|
4593
4694
|
} | {
|
|
4594
4695
|
event: 'action';
|
|
4595
4696
|
data: {
|
|
4596
|
-
|
|
4697
|
+
/**
|
|
4698
|
+
* page_activated: a client brought pageId to the front. Tab changes (page_opened, page_closed, page_activated) are never thinned out; the other kinds are sent at most four times a second.
|
|
4699
|
+
*/
|
|
4700
|
+
kind: 'navigate' | 'click' | 'type' | 'scroll' | 'page_opened' | 'page_closed' | 'page_activated';
|
|
4597
4701
|
pageId?: string;
|
|
4598
4702
|
url?: string;
|
|
4599
4703
|
x?: number;
|
|
@@ -13742,7 +13846,7 @@ export type AutomationHumanTask = {
|
|
|
13742
13846
|
*/
|
|
13743
13847
|
initiator: {
|
|
13744
13848
|
/**
|
|
13745
|
-
* Initiator type: user, api_key, agent, run (a parent run) or
|
|
13849
|
+
* Initiator type: user, api_key, agent, run (a parent run), trigger or application.
|
|
13746
13850
|
*/
|
|
13747
13851
|
type: 'user' | 'api_key' | 'agent' | 'run' | 'trigger';
|
|
13748
13852
|
/**
|
|
@@ -20039,6 +20143,10 @@ export type DevopsPullRequest = {
|
|
|
20039
20143
|
* The mergeability word, an open set. A GitHub project keeps GitHub's own word verbatim (clean, dirty, blocked, behind, unstable and so on), unknown when GitHub has not said. A project whose code is on our own Git gets DevOps's reading of the head against the base: clean when nothing stands in the way, behind when the head adds nothing the base lacks, dirty when both sides changed the same path since they diverged, unknown when the comparison was capped.
|
|
20040
20144
|
*/
|
|
20041
20145
|
mergeableState: string;
|
|
20146
|
+
/**
|
|
20147
|
+
* Who this pull request's letters go to — the gate verdict, the merge, the deploy to each integration environment and an integration failure — as the description's praxis block names it with notify: agent:<id> or notify: human:<id>. Optional and never part of the gate: absent when the block names nobody or names something that is not an address. A pull request of a DevOps change that names nobody writes to the change's owner.
|
|
20148
|
+
*/
|
|
20149
|
+
notify?: string;
|
|
20042
20150
|
/**
|
|
20043
20151
|
* The exposure the description's praxis block declares, or null when the description declares none — which is itself a failed gate check. The kind decides which other checks apply: a flag adds its key and observe window, unwired and expand-contract add a reason, expand-contract also a phase, and direct is judged by a person.
|
|
20044
20152
|
*/
|
|
@@ -21340,7 +21448,7 @@ export type MediaLibrary = {
|
|
|
21340
21448
|
};
|
|
21341
21449
|
export type MediaMediaError = {
|
|
21342
21450
|
error: {
|
|
21343
|
-
code: 'LIBRARY_NOT_FOUND' | 'ASSET_NOT_FOUND' | 'JOB_NOT_FOUND' | 'UNDERSTANDING_NOT_FOUND' | 'ASSET_VERSION_CHANGED' | 'LIBRARY_INVALID_STATE' | 'INVALID_PARAMS' | 'INVALID_EXPRESSION' | 'UNSUPPORTED' | 'NOT_IMPLEMENTED' | 'FILE_TOO_LARGE' | 'FILE_EMPTY' | 'FILE_NOT_READY' | 'UNSUPPORTED_MEDIA' | 'FETCH_FAILED' | 'LIMIT_EXCEEDED' | 'CHUNK_INVALID' | 'RATE_LIMITED' | 'CAPACITY' | 'UPSTREAM_FAILED' | 'CONTENT_REJECTED' | 'GENERATION_FAILED' | 'BINDING_READ_ONLY' | 'OPERATION_NOT_SUPPORTED' | 'MODEL_PENDING' | 'REFERENCE_TYPE_MISMATCH' | 'CONSENT_REQUIRED' | 'LIBRARY_IS_DEFAULT' | 'JOB_INVALID_STATE' | 'VOICE_TRAINING' | 'INSUFFICIENT_BALANCE';
|
|
21451
|
+
code: 'LIBRARY_NOT_FOUND' | 'ASSET_NOT_FOUND' | 'WORK_NOT_FOUND' | 'REVISION_CONFLICT' | 'JOB_NOT_FOUND' | 'UNDERSTANDING_NOT_FOUND' | 'ASSET_VERSION_CHANGED' | 'LIBRARY_INVALID_STATE' | 'INVALID_PARAMS' | 'INVALID_EXPRESSION' | 'UNSUPPORTED' | 'NOT_IMPLEMENTED' | 'FILE_TOO_LARGE' | 'FILE_EMPTY' | 'FILE_NOT_READY' | 'UNSUPPORTED_MEDIA' | 'FETCH_FAILED' | 'LIMIT_EXCEEDED' | 'CHUNK_INVALID' | 'RATE_LIMITED' | 'CAPACITY' | 'UPSTREAM_FAILED' | 'CONTENT_REJECTED' | 'GENERATION_FAILED' | 'BINDING_READ_ONLY' | 'OPERATION_NOT_SUPPORTED' | 'MODEL_PENDING' | 'REFERENCE_TYPE_MISMATCH' | 'CONSENT_REQUIRED' | 'LIBRARY_IS_DEFAULT' | 'JOB_INVALID_STATE' | 'VOICE_TRAINING' | 'INSUFFICIENT_BALANCE';
|
|
21344
21452
|
message: string;
|
|
21345
21453
|
details: string | null;
|
|
21346
21454
|
};
|
|
@@ -22869,6 +22977,107 @@ export type MediaVoiceDesignCreateInput = {
|
|
|
22869
22977
|
*/
|
|
22870
22978
|
description?: string;
|
|
22871
22979
|
};
|
|
22980
|
+
/**
|
|
22981
|
+
* A work: an object of the library above its assets that orders references to them and adds a title and text. It copies no file and changes no asset.
|
|
22982
|
+
*/
|
|
22983
|
+
export type MediaWork = {
|
|
22984
|
+
/**
|
|
22985
|
+
* Always work.
|
|
22986
|
+
*/
|
|
22987
|
+
object: 'work';
|
|
22988
|
+
/**
|
|
22989
|
+
* Work id (wrk_…).
|
|
22990
|
+
*/
|
|
22991
|
+
id: string;
|
|
22992
|
+
/**
|
|
22993
|
+
* Library the work belongs to.
|
|
22994
|
+
*/
|
|
22995
|
+
library_id: MediaLibraryId;
|
|
22996
|
+
/**
|
|
22997
|
+
* The work’s kind.
|
|
22998
|
+
*/
|
|
22999
|
+
kind: MediaWorkKind;
|
|
23000
|
+
/**
|
|
23001
|
+
* The title, copied from body.title.
|
|
23002
|
+
*/
|
|
23003
|
+
title: string;
|
|
23004
|
+
/**
|
|
23005
|
+
* Groups the platform versions of one story; null when unset.
|
|
23006
|
+
*/
|
|
23007
|
+
series: string | null;
|
|
23008
|
+
/**
|
|
23009
|
+
* The kind’s body as stored.
|
|
23010
|
+
*/
|
|
23011
|
+
body: MediaWorkBody;
|
|
23012
|
+
/**
|
|
23013
|
+
* Caller data such as source, published links and numbers; changed with a JSON Merge Patch.
|
|
23014
|
+
*/
|
|
23015
|
+
custom: MediaWorkCustom;
|
|
23016
|
+
/**
|
|
23017
|
+
* Asset ids the body names that have been deleted since; the body keeps them in place and the Console draws a placeholder there.
|
|
23018
|
+
*/
|
|
23019
|
+
missing: Array<string>;
|
|
23020
|
+
/**
|
|
23021
|
+
* Bumped by every change; send it back as if_revision to update only an unchanged work.
|
|
23022
|
+
*/
|
|
23023
|
+
revision: number;
|
|
23024
|
+
/**
|
|
23025
|
+
* Who created the work: human:<user id>, agent:<agent id> or system.
|
|
23026
|
+
*/
|
|
23027
|
+
created_by: string;
|
|
23028
|
+
/**
|
|
23029
|
+
* When the work was created.
|
|
23030
|
+
*/
|
|
23031
|
+
created_at: MediaIsoTimestamp;
|
|
23032
|
+
/**
|
|
23033
|
+
* When the work last changed.
|
|
23034
|
+
*/
|
|
23035
|
+
updated_at: MediaIsoTimestamp;
|
|
23036
|
+
/**
|
|
23037
|
+
* Only with expand=assets: every live referenced asset by id, with its URLs and size.
|
|
23038
|
+
*/
|
|
23039
|
+
assets?: {
|
|
23040
|
+
[key: string]: MediaWorkAsset;
|
|
23041
|
+
};
|
|
23042
|
+
};
|
|
23043
|
+
/**
|
|
23044
|
+
* Kind of work: gallery (图文), article (长文) or product_listing (商品图组). short_video is reserved.
|
|
23045
|
+
*/
|
|
23046
|
+
export type MediaWorkKind = 'gallery' | 'article' | 'product_listing' | 'blocks';
|
|
23047
|
+
export type MediaWorkBody = MediaGalleryBody | MediaArticleBody | MediaProductListingBody | MediaBlocksBody;
|
|
23048
|
+
export type MediaWorkCustom = {
|
|
23049
|
+
[key: string]: unknown;
|
|
23050
|
+
};
|
|
23051
|
+
/**
|
|
23052
|
+
* A page of work summaries.
|
|
23053
|
+
*/
|
|
23054
|
+
export type MediaWorkPage = {
|
|
23055
|
+
/**
|
|
23056
|
+
* Works in this page, most recently changed first.
|
|
23057
|
+
*/
|
|
23058
|
+
data: Array<MediaWorkSummary>;
|
|
23059
|
+
/**
|
|
23060
|
+
* Cursor for the next page, or null when there are no more works.
|
|
23061
|
+
*/
|
|
23062
|
+
next_cursor: string | null;
|
|
23063
|
+
};
|
|
23064
|
+
/**
|
|
23065
|
+
* The answer to deleting a work.
|
|
23066
|
+
*/
|
|
23067
|
+
export type MediaDeletedWork = {
|
|
23068
|
+
/**
|
|
23069
|
+
* Id of the deleted work.
|
|
23070
|
+
*/
|
|
23071
|
+
id: string;
|
|
23072
|
+
/**
|
|
23073
|
+
* Always work.
|
|
23074
|
+
*/
|
|
23075
|
+
object: 'work';
|
|
23076
|
+
/**
|
|
23077
|
+
* Always true: the work is deleted; every asset it named is unchanged.
|
|
23078
|
+
*/
|
|
23079
|
+
deleted: true;
|
|
23080
|
+
};
|
|
22872
23081
|
/**
|
|
22873
23082
|
* One page of type registrations; types are few enough that this face returns them in a single page.
|
|
22874
23083
|
*/
|
|
@@ -35003,6 +35212,14 @@ export type SandboxSandboxNetworkConfig = {
|
|
|
35003
35212
|
rules?: {
|
|
35004
35213
|
[key: string]: Array<SandboxSandboxNetworkRule>;
|
|
35005
35214
|
};
|
|
35215
|
+
/**
|
|
35216
|
+
* Own face, persistent sandboxes only (autoPause: true, or ephemeral: false): true gives the sandbox one fixed public egress IP for its whole life, held through pause and resume and released when the sandbox is deleted. Without it the egress IP is not stable: it changes when a spot machine is reclaimed, when a paused machine starts again, and when the machine is rebuilt. An ephemeral sandbox returns INVALID_PARAMS; the E2B face refuses the field; it is placed only on capacity that declares static IPs, and without such capacity the create does not start (it never falls back to a changing IP). Billed as the usage item sandbox:public_ip:hours from allocation to release, paused time included, plus outbound traffic as usual.
|
|
35217
|
+
*/
|
|
35218
|
+
staticEgressIp?: boolean;
|
|
35219
|
+
/**
|
|
35220
|
+
* Own face, read-only: the fixed public egress IP of a sandbox created with staticEgressIp: true, present once the machine has bound it; add this address to the IP allowlist of the service you call (for example a WeCom trusted IP list). Absent on a sandbox that did not ask for a static IP, because its public address can change.
|
|
35221
|
+
*/
|
|
35222
|
+
readonly egressIp?: string;
|
|
35006
35223
|
};
|
|
35007
35224
|
/**
|
|
35008
35225
|
* Sandbox lifecycle policy returned by sandbox info.
|
|
@@ -36713,11 +36930,11 @@ export type AutomationActionHost = 'builtin' | 'isolate' | 'sandbox';
|
|
|
36713
36930
|
*/
|
|
36714
36931
|
export type AutomationSubject = {
|
|
36715
36932
|
/**
|
|
36716
|
-
* Principal type. user is a signed-in user; api_key is a platform API key; agent is an agent; run is an action performed by a run itself (for example a parent run); trigger is a trigger.
|
|
36933
|
+
* Principal type. user is a signed-in user; api_key is a platform API key; agent is an agent; run is an action performed by a run itself (for example a parent run); trigger is a trigger; application is an application.
|
|
36717
36934
|
*/
|
|
36718
36935
|
type: 'user' | 'api_key' | 'agent' | 'run' | 'trigger';
|
|
36719
36936
|
/**
|
|
36720
|
-
* Principal identifier whose meaning follows type: a user, API key, agent, run or
|
|
36937
|
+
* Principal identifier whose meaning follows type: a user, API key, agent, run, trigger or application id. Treat it as an opaque string.
|
|
36721
36938
|
*/
|
|
36722
36939
|
id: string;
|
|
36723
36940
|
};
|
|
@@ -40276,6 +40493,10 @@ export type DevopsUnitGit = {
|
|
|
40276
40493
|
* The ref holding the unit's work in progress, or null when none was recorded.
|
|
40277
40494
|
*/
|
|
40278
40495
|
wipRef: string | null;
|
|
40496
|
+
/**
|
|
40497
|
+
* The branch's head on the remote as of the last fetch: the value units push wants as expectedHead. Absent before the first observation or when the branch has no upstream. Call fetch first when someone else may have pushed.
|
|
40498
|
+
*/
|
|
40499
|
+
remoteHead?: string;
|
|
40279
40500
|
/**
|
|
40280
40501
|
* RFC 3339 UTC time these facts were observed, or null before the first observation.
|
|
40281
40502
|
*/
|
|
@@ -41445,7 +41666,7 @@ export type MediaGenerationType = 'image' | 'video' | 'speech' | 'music' | 'soun
|
|
|
41445
41666
|
* Edit operations: the change this step applied to its parent asset.
|
|
41446
41667
|
*/
|
|
41447
41668
|
export type MediaGenerationOperation = 'generate' | 'clone' | 'tag' | 'untag' | 'set_context' | 'move' | 'delete' | 'reprocess' | 'variations' | 'upscale' | 'outpaint' | 'inpaint' | 'erase' | 'replace_object' | 'recolor' | 'remove_background' | 'replace_background' | 'to_video' | 'extend' | 'edit' | 'lip_sync' | 'frame' | 'to_gif' | 'voice_change' | 'resynthesize';
|
|
41448
|
-
export type MediaMediaErrorCode = 'LIBRARY_NOT_FOUND' | 'ASSET_NOT_FOUND' | 'JOB_NOT_FOUND' | 'UNDERSTANDING_NOT_FOUND' | 'ASSET_VERSION_CHANGED' | 'LIBRARY_INVALID_STATE' | 'INVALID_PARAMS' | 'INVALID_EXPRESSION' | 'UNSUPPORTED' | 'NOT_IMPLEMENTED' | 'FILE_TOO_LARGE' | 'FILE_EMPTY' | 'FILE_NOT_READY' | 'UNSUPPORTED_MEDIA' | 'FETCH_FAILED' | 'LIMIT_EXCEEDED' | 'CHUNK_INVALID' | 'RATE_LIMITED' | 'CAPACITY' | 'UPSTREAM_FAILED' | 'CONTENT_REJECTED' | 'GENERATION_FAILED' | 'BINDING_READ_ONLY' | 'OPERATION_NOT_SUPPORTED' | 'MODEL_PENDING' | 'REFERENCE_TYPE_MISMATCH' | 'CONSENT_REQUIRED' | 'LIBRARY_IS_DEFAULT' | 'JOB_INVALID_STATE' | 'VOICE_TRAINING' | 'INSUFFICIENT_BALANCE';
|
|
41669
|
+
export type MediaMediaErrorCode = 'LIBRARY_NOT_FOUND' | 'ASSET_NOT_FOUND' | 'WORK_NOT_FOUND' | 'REVISION_CONFLICT' | 'JOB_NOT_FOUND' | 'UNDERSTANDING_NOT_FOUND' | 'ASSET_VERSION_CHANGED' | 'LIBRARY_INVALID_STATE' | 'INVALID_PARAMS' | 'INVALID_EXPRESSION' | 'UNSUPPORTED' | 'NOT_IMPLEMENTED' | 'FILE_TOO_LARGE' | 'FILE_EMPTY' | 'FILE_NOT_READY' | 'UNSUPPORTED_MEDIA' | 'FETCH_FAILED' | 'LIMIT_EXCEEDED' | 'CHUNK_INVALID' | 'RATE_LIMITED' | 'CAPACITY' | 'UPSTREAM_FAILED' | 'CONTENT_REJECTED' | 'GENERATION_FAILED' | 'BINDING_READ_ONLY' | 'OPERATION_NOT_SUPPORTED' | 'MODEL_PENDING' | 'REFERENCE_TYPE_MISMATCH' | 'CONSENT_REQUIRED' | 'LIBRARY_IS_DEFAULT' | 'JOB_INVALID_STATE' | 'VOICE_TRAINING' | 'INSUFFICIENT_BALANCE';
|
|
41449
41670
|
/**
|
|
41450
41671
|
* State of a requested generation output.
|
|
41451
41672
|
*/
|
|
@@ -41791,6 +42012,192 @@ export type MediaHlsRendition = {
|
|
|
41791
42012
|
state: MediaHlsRenditionState;
|
|
41792
42013
|
};
|
|
41793
42014
|
export type MediaVoiceConsentId = string;
|
|
42015
|
+
/**
|
|
42016
|
+
* One referenced asset as expand=assets returns it: enough to draw it without another call.
|
|
42017
|
+
*/
|
|
42018
|
+
export type MediaWorkAsset = {
|
|
42019
|
+
/**
|
|
42020
|
+
* The asset’s material type, such as image or video.
|
|
42021
|
+
*/
|
|
42022
|
+
type: MediaMaterialType;
|
|
42023
|
+
/**
|
|
42024
|
+
* Short-lived delivery URL of the asset.
|
|
42025
|
+
*/
|
|
42026
|
+
url: string;
|
|
42027
|
+
/**
|
|
42028
|
+
* Short-lived URL of a small picture: the poster of a video, otherwise the asset itself.
|
|
42029
|
+
*/
|
|
42030
|
+
thumbnail_url: string;
|
|
42031
|
+
/**
|
|
42032
|
+
* Width in pixels when known.
|
|
42033
|
+
*/
|
|
42034
|
+
width?: number;
|
|
42035
|
+
/**
|
|
42036
|
+
* Height in pixels when known.
|
|
42037
|
+
*/
|
|
42038
|
+
height?: number;
|
|
42039
|
+
/**
|
|
42040
|
+
* The asset’s display name.
|
|
42041
|
+
*/
|
|
42042
|
+
display_name: string;
|
|
42043
|
+
};
|
|
42044
|
+
/**
|
|
42045
|
+
* Body of a gallery (图文). Order is the order of items.
|
|
42046
|
+
*/
|
|
42047
|
+
export type MediaGalleryBody = {
|
|
42048
|
+
/**
|
|
42049
|
+
* Title, 1 to 100 characters.
|
|
42050
|
+
*/
|
|
42051
|
+
title: string;
|
|
42052
|
+
/**
|
|
42053
|
+
* Body text, at most 10000 characters.
|
|
42054
|
+
*/
|
|
42055
|
+
text?: string;
|
|
42056
|
+
/**
|
|
42057
|
+
* Topics without the # sign, at most 30 of up to 40 characters.
|
|
42058
|
+
*/
|
|
42059
|
+
topics?: Array<string>;
|
|
42060
|
+
/**
|
|
42061
|
+
* Optional cover: an image or sticker asset of this library; without it the first picture is the cover.
|
|
42062
|
+
*/
|
|
42063
|
+
cover?: string;
|
|
42064
|
+
/**
|
|
42065
|
+
* Pictures, videos and text segments in order, 1 to 100 entries with at least one asset; each asset appears once.
|
|
42066
|
+
*/
|
|
42067
|
+
items: Array<MediaGalleryItem>;
|
|
42068
|
+
/**
|
|
42069
|
+
* Display style; defaults to xiaohongshu in the Console.
|
|
42070
|
+
*/
|
|
42071
|
+
style?: MediaWorkStyle;
|
|
42072
|
+
};
|
|
42073
|
+
/**
|
|
42074
|
+
* Body of an article (长文). Inline images live in the Markdown as  and sit where they are written.
|
|
42075
|
+
*/
|
|
42076
|
+
export type MediaArticleBody = {
|
|
42077
|
+
/**
|
|
42078
|
+
* Title, 1 to 200 characters.
|
|
42079
|
+
*/
|
|
42080
|
+
title: string;
|
|
42081
|
+
/**
|
|
42082
|
+
* Optional summary or digest, at most 500 characters.
|
|
42083
|
+
*/
|
|
42084
|
+
summary?: string;
|
|
42085
|
+
/**
|
|
42086
|
+
* Optional author name, at most 60 characters.
|
|
42087
|
+
*/
|
|
42088
|
+
author?: string;
|
|
42089
|
+
/**
|
|
42090
|
+
* The article in Markdown, 1 to 100000 characters; every asset:<asset_id> image must be an image or sticker of this library.
|
|
42091
|
+
*/
|
|
42092
|
+
body: string;
|
|
42093
|
+
/**
|
|
42094
|
+
* Optional cover: an image or sticker asset of this library.
|
|
42095
|
+
*/
|
|
42096
|
+
cover?: string;
|
|
42097
|
+
/**
|
|
42098
|
+
* Display style; defaults to wechat_mp in the Console.
|
|
42099
|
+
*/
|
|
42100
|
+
style?: MediaWorkStyle;
|
|
42101
|
+
};
|
|
42102
|
+
/**
|
|
42103
|
+
* Body of a product listing (商品图组). Images and copy only: price, stock and other business data are managed outside the library and are refused.
|
|
42104
|
+
*/
|
|
42105
|
+
export type MediaProductListingBody = {
|
|
42106
|
+
/**
|
|
42107
|
+
* Listing title, 1 to 200 characters.
|
|
42108
|
+
*/
|
|
42109
|
+
title: string;
|
|
42110
|
+
/**
|
|
42111
|
+
* Selling points in order, at most 10 of up to 100 characters.
|
|
42112
|
+
*/
|
|
42113
|
+
selling_points?: Array<string>;
|
|
42114
|
+
/**
|
|
42115
|
+
* Parameter rows in order, at most 50.
|
|
42116
|
+
*/
|
|
42117
|
+
attributes?: Array<MediaListingAttribute>;
|
|
42118
|
+
/**
|
|
42119
|
+
* Main images in order, 1 to 20 image or sticker assets of this library.
|
|
42120
|
+
*/
|
|
42121
|
+
main: Array<string>;
|
|
42122
|
+
/**
|
|
42123
|
+
* Detail images in order, at most 100 image or sticker assets of this library.
|
|
42124
|
+
*/
|
|
42125
|
+
detail?: Array<string>;
|
|
42126
|
+
/**
|
|
42127
|
+
* SKUs in order, at most 200.
|
|
42128
|
+
*/
|
|
42129
|
+
skus?: Array<MediaListingSku>;
|
|
42130
|
+
/**
|
|
42131
|
+
* Optional product element (material_type product) this listing shows.
|
|
42132
|
+
*/
|
|
42133
|
+
product?: string;
|
|
42134
|
+
/**
|
|
42135
|
+
* Display style; defaults to generic in the Console.
|
|
42136
|
+
*/
|
|
42137
|
+
style?: MediaWorkStyle;
|
|
42138
|
+
};
|
|
42139
|
+
/**
|
|
42140
|
+
* Body of a general work (通用作品): Editor.js saved data plus one field of ours, a required title. Business attributes go in the work’s custom, not in a block.
|
|
42141
|
+
*/
|
|
42142
|
+
export type MediaBlocksBody = {
|
|
42143
|
+
/**
|
|
42144
|
+
* The work’s title, 1 to 200 characters, written explicitly as in the other kinds; lists and sorting use it.
|
|
42145
|
+
*/
|
|
42146
|
+
title: string;
|
|
42147
|
+
/**
|
|
42148
|
+
* Optional Editor.js save time in milliseconds, kept as sent.
|
|
42149
|
+
*/
|
|
42150
|
+
time?: number;
|
|
42151
|
+
/**
|
|
42152
|
+
* The blocks in order, 1 to 500.
|
|
42153
|
+
*/
|
|
42154
|
+
blocks: Array<MediaEditorBlock>;
|
|
42155
|
+
/**
|
|
42156
|
+
* Optional Editor.js version string, kept as sent.
|
|
42157
|
+
*/
|
|
42158
|
+
version?: string;
|
|
42159
|
+
};
|
|
42160
|
+
/**
|
|
42161
|
+
* One work in a list.
|
|
42162
|
+
*/
|
|
42163
|
+
export type MediaWorkSummary = {
|
|
42164
|
+
/**
|
|
42165
|
+
* Always work.
|
|
42166
|
+
*/
|
|
42167
|
+
object: 'work';
|
|
42168
|
+
/**
|
|
42169
|
+
* Work id (wrk_…).
|
|
42170
|
+
*/
|
|
42171
|
+
id: string;
|
|
42172
|
+
/**
|
|
42173
|
+
* The work’s kind.
|
|
42174
|
+
*/
|
|
42175
|
+
kind: MediaWorkKind;
|
|
42176
|
+
/**
|
|
42177
|
+
* The work’s title.
|
|
42178
|
+
*/
|
|
42179
|
+
title: string;
|
|
42180
|
+
/**
|
|
42181
|
+
* The work’s series, or null.
|
|
42182
|
+
*/
|
|
42183
|
+
series: string | null;
|
|
42184
|
+
/**
|
|
42185
|
+
* Short-lived URL of the cover picture, or null when it is missing.
|
|
42186
|
+
*/
|
|
42187
|
+
cover_url: string | null;
|
|
42188
|
+
/**
|
|
42189
|
+
* How many distinct assets the body orders, cover and product element excluded.
|
|
42190
|
+
*/
|
|
42191
|
+
item_count: number;
|
|
42192
|
+
/**
|
|
42193
|
+
* How many referenced assets have been deleted since.
|
|
42194
|
+
*/
|
|
42195
|
+
missing_count: number;
|
|
42196
|
+
/**
|
|
42197
|
+
* When the work last changed.
|
|
42198
|
+
*/
|
|
42199
|
+
updated_at: MediaIsoTimestamp;
|
|
42200
|
+
};
|
|
41794
42201
|
/**
|
|
41795
42202
|
* A kind of entity the graph accepts, for example a file or a customer.
|
|
41796
42203
|
*/
|
|
@@ -48139,7 +48546,7 @@ export type DevopsPlannedSkip = {
|
|
|
48139
48546
|
/**
|
|
48140
48547
|
* Why it is left out, which is what tells a deliberate skip apart from an oversight.
|
|
48141
48548
|
*/
|
|
48142
|
-
reason: 'unchanged' | 'newer_checkpoint' | 'not_requested' | 'callee_excluded' | 'artifact_identical';
|
|
48549
|
+
reason: 'unchanged' | 'newer_checkpoint' | 'not_requested' | 'callee_excluded' | 'not_deployed_upstream' | 'artifact_identical';
|
|
48143
48550
|
};
|
|
48144
48551
|
/**
|
|
48145
48552
|
* The migrations one target has pending, as the plan found them.
|
|
@@ -48775,7 +49182,7 @@ export type MediaSemanticMatch = {
|
|
|
48775
49182
|
/**
|
|
48776
49183
|
* Type of change recorded for a library, asset, processing task, search index or batch.
|
|
48777
49184
|
*/
|
|
48778
|
-
export type MediaMediaEventType = 'library.status_provisioning' | 'library.status_active' | 'library.status_deleting' | 'library.status_deleted' | 'library.status_failed' | 'library.restored' | 'library.updated' | 'asset.created' | 'asset.updated' | 'asset.overwritten' | 'asset.renamed' | 'asset.deleted' | 'understanding.status_ready' | 'understanding.status_failed' | 'understanding.status_unsupported' | 'search.indexed' | 'batch.succeeded' | 'batch.failed' | 'library.understanding_drained' | 'batch.created' | 'hls.requested' | 'generation.created' | 'generation.succeeded' | 'generation.failed' | 'generation.cancelled';
|
|
49185
|
+
export type MediaMediaEventType = 'library.status_provisioning' | 'library.status_active' | 'library.status_deleting' | 'library.status_deleted' | 'library.status_failed' | 'library.restored' | 'library.updated' | 'asset.created' | 'asset.updated' | 'asset.overwritten' | 'asset.renamed' | 'asset.deleted' | 'understanding.status_ready' | 'understanding.status_failed' | 'understanding.status_unsupported' | 'search.indexed' | 'batch.succeeded' | 'batch.failed' | 'library.understanding_drained' | 'batch.created' | 'hls.requested' | 'generation.created' | 'generation.succeeded' | 'generation.failed' | 'generation.cancelled' | 'work.created' | 'work.updated' | 'work.deleted';
|
|
48779
49186
|
/**
|
|
48780
49187
|
* One picture an element names, with the word the caller uses for that view.
|
|
48781
49188
|
*/
|
|
@@ -48871,6 +49278,75 @@ export type MediaGenerationCapabilityModel = {
|
|
|
48871
49278
|
* Readiness of one rung or of the ladder it is part of.
|
|
48872
49279
|
*/
|
|
48873
49280
|
export type MediaHlsRenditionState = 'processing' | 'ready' | 'failed';
|
|
49281
|
+
/**
|
|
49282
|
+
* One position of a gallery: a picture or video of this library ({asset_id, caption?}) or a text segment between pictures ({text}).
|
|
49283
|
+
*/
|
|
49284
|
+
export type MediaGalleryItem = {
|
|
49285
|
+
/**
|
|
49286
|
+
* An image, sticker or video asset of this library; its position in items is its position in the gallery.
|
|
49287
|
+
*/
|
|
49288
|
+
asset_id: string;
|
|
49289
|
+
/**
|
|
49290
|
+
* Optional caption for this picture, at most 1000 characters.
|
|
49291
|
+
*/
|
|
49292
|
+
caption?: string;
|
|
49293
|
+
} | {
|
|
49294
|
+
/**
|
|
49295
|
+
* A text segment shown between pictures, at most 1000 characters.
|
|
49296
|
+
*/
|
|
49297
|
+
text: string;
|
|
49298
|
+
};
|
|
49299
|
+
/**
|
|
49300
|
+
* Which platform look the Console draws the work in; a display hint, never a platform check.
|
|
49301
|
+
*/
|
|
49302
|
+
export type MediaWorkStyle = 'xiaohongshu' | 'wechat_mp' | 'jike' | 'generic';
|
|
49303
|
+
/**
|
|
49304
|
+
* One parameter row of a listing.
|
|
49305
|
+
*/
|
|
49306
|
+
export type MediaListingAttribute = {
|
|
49307
|
+
/**
|
|
49308
|
+
* Parameter name such as 容量, at most 40 characters.
|
|
49309
|
+
*/
|
|
49310
|
+
name: string;
|
|
49311
|
+
/**
|
|
49312
|
+
* Parameter value such as 500ml, at most 200 characters.
|
|
49313
|
+
*/
|
|
49314
|
+
value: string;
|
|
49315
|
+
};
|
|
49316
|
+
/**
|
|
49317
|
+
* One SKU of a listing.
|
|
49318
|
+
*/
|
|
49319
|
+
export type MediaListingSku = {
|
|
49320
|
+
/**
|
|
49321
|
+
* The SKU’s value on each spec axis, such as {"颜色":"白"}; 1 to 5 axes; the keys are kept as written.
|
|
49322
|
+
*/
|
|
49323
|
+
spec: {
|
|
49324
|
+
[key: string]: string;
|
|
49325
|
+
};
|
|
49326
|
+
/**
|
|
49327
|
+
* Optional picture of this SKU: an image or sticker asset of this library.
|
|
49328
|
+
*/
|
|
49329
|
+
asset_id?: string;
|
|
49330
|
+
};
|
|
49331
|
+
/**
|
|
49332
|
+
* One Editor.js block, as Editor.js saves it. type is one of the official blocks: paragraph {text}, header {text, level 1–6}, list {style ordered|unordered|checklist, meta, items[{content, meta, items}]}, quote {text, caption, alignment left|center}, delimiter {}, image, table {withHeadings, stretched, content string[][]}, checklist {items[{text, checked}]}, warning {title, message}, embed {service, source, embed, width, height, caption}. The one departure from Editor.js: an image block is {asset_id, caption, withBorder, withBackground, stretched} and names an image or sticker asset of this library instead of file.url. Text keeps Editor.js inline HTML. Unknown types and fields are refused.
|
|
49333
|
+
*/
|
|
49334
|
+
export type MediaEditorBlock = {
|
|
49335
|
+
/**
|
|
49336
|
+
* Block id, 1–64 letters, digits, _ or -, unique in the body.
|
|
49337
|
+
*/
|
|
49338
|
+
id: string;
|
|
49339
|
+
/**
|
|
49340
|
+
* The official Editor.js block type.
|
|
49341
|
+
*/
|
|
49342
|
+
type: 'paragraph' | 'header' | 'list' | 'quote' | 'delimiter' | 'image' | 'table' | 'checklist' | 'warning' | 'embed';
|
|
49343
|
+
/**
|
|
49344
|
+
* The block’s data in that type’s Editor.js shape.
|
|
49345
|
+
*/
|
|
49346
|
+
data: {
|
|
49347
|
+
[key: string]: unknown;
|
|
49348
|
+
};
|
|
49349
|
+
};
|
|
48874
49350
|
/**
|
|
48875
49351
|
* Auto-resume enabled flag for paused sandboxes. Default false.
|
|
48876
49352
|
*/
|
|
@@ -50994,6 +51470,58 @@ export type UpdateMediaPipelineRequestWritable = {
|
|
|
50994
51470
|
* Models to use for completion
|
|
50995
51471
|
*/
|
|
50996
51472
|
export type OpenaiChatModelNamesWritable = Array<OpenaiModelName & unknown>;
|
|
51473
|
+
export type SandboxSandboxDetailWritable = {
|
|
51474
|
+
/**
|
|
51475
|
+
* Identifier of the template from which is the sandbox created
|
|
51476
|
+
*/
|
|
51477
|
+
templateID: string;
|
|
51478
|
+
/**
|
|
51479
|
+
* Alias of the template
|
|
51480
|
+
*/
|
|
51481
|
+
alias?: string;
|
|
51482
|
+
/**
|
|
51483
|
+
* Identifier of the sandbox
|
|
51484
|
+
*/
|
|
51485
|
+
sandboxID: string;
|
|
51486
|
+
/**
|
|
51487
|
+
* Identifier of the client
|
|
51488
|
+
*
|
|
51489
|
+
* @deprecated
|
|
51490
|
+
*/
|
|
51491
|
+
clientID: string;
|
|
51492
|
+
/**
|
|
51493
|
+
* Time when the sandbox was started
|
|
51494
|
+
*/
|
|
51495
|
+
startedAt: string;
|
|
51496
|
+
/**
|
|
51497
|
+
* Time when the sandbox will expire
|
|
51498
|
+
*/
|
|
51499
|
+
endAt: string;
|
|
51500
|
+
envdVersion: SandboxEnvdVersion;
|
|
51501
|
+
/**
|
|
51502
|
+
* Access token used for envd communication
|
|
51503
|
+
*/
|
|
51504
|
+
envdAccessToken?: string;
|
|
51505
|
+
/**
|
|
51506
|
+
* Whether internet access was explicitly enabled or disabled for the sandbox. Null means it was not explicitly set.
|
|
51507
|
+
*/
|
|
51508
|
+
allowInternetAccess?: boolean;
|
|
51509
|
+
/**
|
|
51510
|
+
* Base domain where the sandbox traffic is accessible
|
|
51511
|
+
*/
|
|
51512
|
+
domain?: string;
|
|
51513
|
+
cpuCount: SandboxCpuCount;
|
|
51514
|
+
memoryMB: SandboxMemoryMb;
|
|
51515
|
+
diskSizeMB: SandboxDiskSizeMb;
|
|
51516
|
+
metadata?: SandboxSandboxMetadata;
|
|
51517
|
+
state: SandboxSandboxState;
|
|
51518
|
+
network?: SandboxSandboxNetworkConfigWritable;
|
|
51519
|
+
lifecycle?: SandboxSandboxLifecycle;
|
|
51520
|
+
/**
|
|
51521
|
+
* Volumes mounted into the sandbox.
|
|
51522
|
+
*/
|
|
51523
|
+
volumeMounts?: Array<SandboxSandboxVolumeMount>;
|
|
51524
|
+
};
|
|
50997
51525
|
/**
|
|
50998
51526
|
* Free-form string key/value pairs stored with the session, changed through sessions.update patch semantics.
|
|
50999
51527
|
*/
|
|
@@ -51573,6 +52101,94 @@ export type MediaSemanticSearchResultWritable = {
|
|
|
51573
52101
|
*/
|
|
51574
52102
|
not_ready_excluded: number;
|
|
51575
52103
|
};
|
|
52104
|
+
/**
|
|
52105
|
+
* Sandbox creation request. All system communication with the sandbox is always secured; the template's envd version must support secured access.
|
|
52106
|
+
*/
|
|
52107
|
+
export type SandboxNewSandboxV2Writable = {
|
|
52108
|
+
/**
|
|
52109
|
+
* Identifier of the required template
|
|
52110
|
+
*/
|
|
52111
|
+
templateID: string;
|
|
52112
|
+
/**
|
|
52113
|
+
* Lifetime of the new sandbox in seconds. Defaults to 300 seconds when omitted.
|
|
52114
|
+
*/
|
|
52115
|
+
timeout?: number;
|
|
52116
|
+
/**
|
|
52117
|
+
* Lifecycle declaration on the E2B-compatible face. true creates a persistent sandbox that pauses at its timeout and can be resumed; false or absent creates an ephemeral sandbox that ends at its timeout and keeps nothing. Keep true only for long-lived computers. The own face declares with ephemeral instead.
|
|
52118
|
+
*/
|
|
52119
|
+
autoPause?: boolean;
|
|
52120
|
+
/**
|
|
52121
|
+
* Controls the snapshot kind taken when the sandbox auto-pauses on timeout (only relevant when autoPause is true). When false, the auto-pause drops the in-memory state and persists only the filesystem (a filesystem-only snapshot); resuming it cold-boots (reboots) the sandbox from disk. Such a snapshot cannot be auto-resumed by traffic and must be resumed explicitly, so it cannot be combined with autoResume. Defaults to true (full memory snapshot).
|
|
52122
|
+
*/
|
|
52123
|
+
autoPauseMemory?: boolean;
|
|
52124
|
+
autoResume?: SandboxSandboxAutoResumeConfig;
|
|
52125
|
+
/**
|
|
52126
|
+
* Allow sandbox to access the internet. When set to false, it behaves the same as specifying denyOut to 0.0.0.0/0 in the network config.
|
|
52127
|
+
*/
|
|
52128
|
+
allow_internet_access?: boolean;
|
|
52129
|
+
network?: SandboxSandboxNetworkConfigWritable;
|
|
52130
|
+
metadata?: SandboxSandboxMetadata;
|
|
52131
|
+
envVars?: SandboxEnvVars;
|
|
52132
|
+
mcp?: SandboxMcp;
|
|
52133
|
+
iam?: SandboxSandboxIam;
|
|
52134
|
+
/**
|
|
52135
|
+
* Volumes to mount into the sandbox, each with the volume name and the path inside the sandbox.
|
|
52136
|
+
*/
|
|
52137
|
+
volumeMounts?: Array<SandboxSandboxVolumeMount>;
|
|
52138
|
+
/**
|
|
52139
|
+
* Own face, required unless sku is named: true for an ephemeral sandbox (ends at its timeout, never pauses, cannot be snapshotted), false for a persistent one (pauses, resumes, snapshots, mounts volumes). Leaving it out returns INVALID_PARAMS.
|
|
52140
|
+
*/
|
|
52141
|
+
ephemeral?: boolean;
|
|
52142
|
+
/**
|
|
52143
|
+
* Own face: the machine size, a SKU id such as base-2c4g or, for an android phone, android-2c4g. Omitted, the template's default size is used.
|
|
52144
|
+
*/
|
|
52145
|
+
size?: string;
|
|
52146
|
+
/**
|
|
52147
|
+
* Own face: a display name for the sandbox, 1 to 64 characters. Omitted, one is generated from the template.
|
|
52148
|
+
*/
|
|
52149
|
+
name?: string;
|
|
52150
|
+
/**
|
|
52151
|
+
* Own face, android phones only: keep the create open until the phone is running or 55 seconds have passed since the request arrived; running out is not an error and answers the state reached.
|
|
52152
|
+
*/
|
|
52153
|
+
waitForReady?: boolean;
|
|
52154
|
+
/**
|
|
52155
|
+
* Own face: what happens at the timeout. pause needs ephemeral: false; must agree with autoPause when both are sent.
|
|
52156
|
+
*/
|
|
52157
|
+
onExpire?: 'kill' | 'pause';
|
|
52158
|
+
/**
|
|
52159
|
+
* Own face, persistent sandboxes only: pause after this many milliseconds without activity; null turns the idle pause off.
|
|
52160
|
+
*/
|
|
52161
|
+
idleTimeout?: number;
|
|
52162
|
+
/**
|
|
52163
|
+
* Own face, persistent sandboxes only: whose activity resets idleTimeout. traffic (default) counts data-plane calls, preview traffic and live processes; caller counts only your own control-plane calls.
|
|
52164
|
+
*/
|
|
52165
|
+
idleActivity?: 'traffic' | 'caller';
|
|
52166
|
+
/**
|
|
52167
|
+
* Own face: a demand-profile SKU <kind>.<image>.<size>, such as run.document.medium (someone waits; starts fast), job.base.large (background work that must not be cut off), batch.base.large (retried work that may be reclaimed) or computer.base.medium (keeps its disk). It fixes ephemeral, interruptible, size and the template, so those may be left out; any of them you also send must agree with it, otherwise the create fails with INVALID_PARAMS naming the field. The sandbox answers it back as sku and as the read-only label praxis.sku.
|
|
52168
|
+
*/
|
|
52169
|
+
sku?: string;
|
|
52170
|
+
/**
|
|
52171
|
+
* Own face: the kind of sandbox you need, when you do not name a full sku. The sandbox completes <kind>.<image>.<size> from the template you start (its family, or custom for your own environment or snapshot) and the size you send, or medium. run is for work someone waits for (starts fast), job is background work that must not be cut off, batch is retried work that may be reclaimed (spot capacity), computer keeps its disk, and compat is the E2B-compatible persistent series. The kind fixes ephemeral and interruptible, so leave those out; if you also send them, or a sku of another kind, the create fails with INVALID_PARAMS naming the field. The light template always starts the light shell, whatever the kind says.
|
|
52172
|
+
*/
|
|
52173
|
+
kind?: 'run' | 'job' | 'batch' | 'computer' | 'compat';
|
|
52174
|
+
/**
|
|
52175
|
+
* Own face, ephemeral sandboxes only: true says this sandbox may be reclaimed while it runs (a build or test you retry), which lets it run on cheaper spot capacity. A reclaimed sandbox ends with PROVIDER_FAILED; create it again. Absent or false keeps the usual capacity.
|
|
52176
|
+
*/
|
|
52177
|
+
interruptible?: boolean;
|
|
52178
|
+
/**
|
|
52179
|
+
* Own face, persistent sandboxes only: what happens when the provider loses the machine. fail (default) ends the sandbox; rebuild starts a new machine under the same id with its state lost.
|
|
52180
|
+
*/
|
|
52181
|
+
onLoss?: 'fail' | 'rebuild';
|
|
52182
|
+
/**
|
|
52183
|
+
* Own face: up to eight absolute paths to keep when the sandbox ends; each is packed as .tar.gz into File and listed on the killed event.
|
|
52184
|
+
*/
|
|
52185
|
+
outputs?: Array<{
|
|
52186
|
+
/**
|
|
52187
|
+
* Absolute path of a directory or file inside the sandbox.
|
|
52188
|
+
*/
|
|
52189
|
+
path: string;
|
|
52190
|
+
}>;
|
|
52191
|
+
};
|
|
51576
52192
|
/**
|
|
51577
52193
|
* Arguments the model passed to the tool.
|
|
51578
52194
|
*/
|
|
@@ -51651,6 +52267,43 @@ export type AnthropicAnonymous204Writable = {
|
|
|
51651
52267
|
export type AnthropicAnonymous206Writable = {
|
|
51652
52268
|
[key: string]: unknown;
|
|
51653
52269
|
};
|
|
52270
|
+
/**
|
|
52271
|
+
* Network policy of the sandbox: public access, egress allow and deny lists and proxy.
|
|
52272
|
+
*/
|
|
52273
|
+
export type SandboxSandboxNetworkConfigWritable = {
|
|
52274
|
+
/**
|
|
52275
|
+
* Specify if the sandbox URLs should be accessible only with authentication.
|
|
52276
|
+
*/
|
|
52277
|
+
allowPublicTraffic?: boolean;
|
|
52278
|
+
/**
|
|
52279
|
+
* List of allowed destinations for egress traffic. Each entry can be a CIDR block (e.g. "8.8.8.8/32"), a bare IP address (e.g. "8.8.8.8"), or a domain name (e.g. "example.com", "*.example.com"). Allowed entries always take precedence over denied entries.
|
|
52280
|
+
*/
|
|
52281
|
+
allowOut?: Array<string>;
|
|
52282
|
+
/**
|
|
52283
|
+
* List of denied CIDR blocks or IP addresses for egress traffic. Domain names are not supported for deny rules.
|
|
52284
|
+
*/
|
|
52285
|
+
denyOut?: Array<string>;
|
|
52286
|
+
egressProxy?: SandboxSandboxEgressProxyConfig;
|
|
52287
|
+
/**
|
|
52288
|
+
* Specify host mask which will be used for all sandbox requests
|
|
52289
|
+
*/
|
|
52290
|
+
maskRequestHost?: string;
|
|
52291
|
+
/**
|
|
52292
|
+
* Unlike E2B, network.httpsPorts is rejected; omit it when creating a sandbox.
|
|
52293
|
+
*/
|
|
52294
|
+
httpsPorts?: Array<number>;
|
|
52295
|
+
/**
|
|
52296
|
+
* Per-domain transform rules applied to matching outbound HTTPS requests. Keys may be exact DNS names (for example, "api.example.com") or a leading wildcard (for example, "*.example.com"), and are normalized to lowercase on write. Wildcards match subdomains at any depth but not the apex domain; a bare "*" is invalid. Exact rules take precedence, followed by the longest matching wildcard suffix, and matching rule sets are not merged. Broad wildcards such as "*.com" are allowed and may expose transformed credentials to every matching destination the sandbox contacts. Rules do not grant network access; configure allowOut separately to permit the destination.
|
|
52297
|
+
*
|
|
52298
|
+
*/
|
|
52299
|
+
rules?: {
|
|
52300
|
+
[key: string]: Array<SandboxSandboxNetworkRule>;
|
|
52301
|
+
};
|
|
52302
|
+
/**
|
|
52303
|
+
* Own face, persistent sandboxes only (autoPause: true, or ephemeral: false): true gives the sandbox one fixed public egress IP for its whole life, held through pause and resume and released when the sandbox is deleted. Without it the egress IP is not stable: it changes when a spot machine is reclaimed, when a paused machine starts again, and when the machine is rebuilt. An ephemeral sandbox returns INVALID_PARAMS; the E2B face refuses the field; it is placed only on capacity that declares static IPs, and without such capacity the create does not start (it never falls back to a changing IP). Billed as the usage item sandbox:public_ip:hours from allocation to release, paused time included, plus outbound traffic as usual.
|
|
52304
|
+
*/
|
|
52305
|
+
staticEgressIp?: boolean;
|
|
52306
|
+
};
|
|
51654
52307
|
/**
|
|
51655
52308
|
* Free-form string key/value pairs.
|
|
51656
52309
|
*/
|
|
@@ -55752,7 +56405,7 @@ export type ApplyAgentVersionResponses = {
|
|
|
55752
56405
|
*/
|
|
55753
56406
|
environment_id?: string | null;
|
|
55754
56407
|
/**
|
|
55755
|
-
* Default vaults of this service or assume agent version: the vault_ids new
|
|
56408
|
+
* Default vaults of this service or assume agent version: the vault_ids every new session carries; a session's own vault_ids are added to them. Present for service and assume agents. Follows the version like other configuration: a version saved with apply=false does not change the vaults in effect. Versions saved before this field existed read as []. /agent/v1 only.
|
|
55756
56409
|
*/
|
|
55757
56410
|
vault_ids?: Array<string>;
|
|
55758
56411
|
/**
|
|
@@ -57012,7 +57665,7 @@ export type UnarchiveAgentResponses = {
|
|
|
57012
57665
|
*/
|
|
57013
57666
|
environment_id?: string | null;
|
|
57014
57667
|
/**
|
|
57015
|
-
* Default vaults of this service or assume agent version: the vault_ids new
|
|
57668
|
+
* Default vaults of this service or assume agent version: the vault_ids every new session carries; a session's own vault_ids are added to them. Present for service and assume agents. Follows the version like other configuration: a version saved with apply=false does not change the vaults in effect. Versions saved before this field existed read as []. /agent/v1 only.
|
|
57016
57669
|
*/
|
|
57017
57670
|
vault_ids?: Array<string>;
|
|
57018
57671
|
/**
|
|
@@ -59481,9 +60134,13 @@ export type ComputersRetrieveResponse = ComputersRetrieveResponses[keyof Compute
|
|
|
59481
60134
|
export type ComputersUpdateData = {
|
|
59482
60135
|
body: {
|
|
59483
60136
|
/**
|
|
59484
|
-
*
|
|
60137
|
+
* New display name, 1 to 255 characters after trimming. Omit to keep the current name.
|
|
59485
60138
|
*/
|
|
59486
|
-
name
|
|
60139
|
+
name?: string;
|
|
60140
|
+
/**
|
|
60141
|
+
* Environment recipe the computer declares (agent.environments.list or agent.environments.create, or a built-in id). A string sets the declaration and is checked as in computers.create: an unknown, foreign or archived environment is refused. null removes the declaration. Omit to leave it unchanged. Only the record changes: the machine is not touched or restarted, so the new declaration applies from the computer's next start; restart the computer once to apply it at once.
|
|
60142
|
+
*/
|
|
60143
|
+
environment_id?: string | null;
|
|
59487
60144
|
};
|
|
59488
60145
|
path: {
|
|
59489
60146
|
/**
|
|
@@ -61653,7 +62310,7 @@ export type ComputersFilesConvertResponse = ComputersFilesConvertResponses[keyof
|
|
|
61653
62310
|
export type ConnectComputerData = {
|
|
61654
62311
|
body?: {
|
|
61655
62312
|
/**
|
|
61656
|
-
*
|
|
62313
|
+
* Accepted for compatibility and ignored: light and heavy both reach the same machine, because a Computer is one machine. Omit it.
|
|
61657
62314
|
*/
|
|
61658
62315
|
need?: 'light' | 'heavy';
|
|
61659
62316
|
};
|
|
@@ -69923,6 +70580,78 @@ export type BrowserRunPageActionData = {
|
|
|
69923
70580
|
* 标签页 ID,来自 tabs.list 或上一个动作的结果;省略时作用于当前标签页。
|
|
69924
70581
|
*/
|
|
69925
70582
|
tab?: string;
|
|
70583
|
+
} | {
|
|
70584
|
+
/**
|
|
70585
|
+
* 动作类型,固定为 route。
|
|
70586
|
+
*/
|
|
70587
|
+
type: 'route';
|
|
70588
|
+
/**
|
|
70589
|
+
* 要匹配的请求地址:glob(* 不跨 /,** 跨 /,** 匹配零段或更多路径段)或用 /…/ 包起来的正则;最多 2048 个字符,写错在注册时即返回 400 INVALID_PARAMS。
|
|
70590
|
+
*/
|
|
70591
|
+
url: string;
|
|
70592
|
+
/**
|
|
70593
|
+
* 只匹配这个 HTTP 方法(不区分大小写);省略则匹配所有方法。
|
|
70594
|
+
*/
|
|
70595
|
+
method?: string;
|
|
70596
|
+
/**
|
|
70597
|
+
* 标签页 ID,来自 tabs.list 或上一个动作的结果;省略时作用于当前标签页。
|
|
70598
|
+
*/
|
|
70599
|
+
tab?: string;
|
|
70600
|
+
/**
|
|
70601
|
+
* 命中后的处理方式,由 kind 选择:fulfill 直接返回给定响应,abort 让请求失败,delay 按原样转发但推迟给定的毫秒数。
|
|
70602
|
+
*/
|
|
70603
|
+
response: {
|
|
70604
|
+
/**
|
|
70605
|
+
* 直接返回给定响应。
|
|
70606
|
+
*/
|
|
70607
|
+
kind: 'fulfill';
|
|
70608
|
+
/**
|
|
70609
|
+
* 返回的 HTTP 状态码,100 到 599。
|
|
70610
|
+
*/
|
|
70611
|
+
status: number;
|
|
70612
|
+
/**
|
|
70613
|
+
* 返回的响应头,名 → 值;最多 100 项。
|
|
70614
|
+
*/
|
|
70615
|
+
headers?: {
|
|
70616
|
+
[key: string]: string;
|
|
70617
|
+
};
|
|
70618
|
+
/**
|
|
70619
|
+
* 返回的响应体,最多 1000000 个字符。
|
|
70620
|
+
*/
|
|
70621
|
+
body?: string;
|
|
70622
|
+
} | {
|
|
70623
|
+
/**
|
|
70624
|
+
* 让请求失败,页面看到一次网络错误。
|
|
70625
|
+
*/
|
|
70626
|
+
kind: 'abort';
|
|
70627
|
+
/**
|
|
70628
|
+
* Playwright 的错误码;省略为 failed。
|
|
70629
|
+
*/
|
|
70630
|
+
error?: 'aborted' | 'accessdenied' | 'addressunreachable' | 'blockedbyclient' | 'blockedbyresponse' | 'connectionaborted' | 'connectionclosed' | 'connectionfailed' | 'connectionrefused' | 'connectionreset' | 'internetdisconnected' | 'namenotresolved' | 'timedout' | 'failed';
|
|
70631
|
+
} | {
|
|
70632
|
+
/**
|
|
70633
|
+
* 按原样转发请求,但推迟给定毫秒数,用来观察页面的加载态。
|
|
70634
|
+
*/
|
|
70635
|
+
kind: 'delay';
|
|
70636
|
+
/**
|
|
70637
|
+
* 推迟的毫秒数,0 到 60000;超出返回 400 INVALID_PARAMS。
|
|
70638
|
+
*/
|
|
70639
|
+
ms: number;
|
|
70640
|
+
};
|
|
70641
|
+
} | {
|
|
70642
|
+
/**
|
|
70643
|
+
* 动作类型,固定为 unroute。
|
|
70644
|
+
*/
|
|
70645
|
+
type: 'unroute';
|
|
70646
|
+
/**
|
|
70647
|
+
* route 动作返回的规则 ID;不存在时 removed 为 false,不报错。
|
|
70648
|
+
*/
|
|
70649
|
+
routeId: string;
|
|
70650
|
+
} | {
|
|
70651
|
+
/**
|
|
70652
|
+
* 动作类型,固定为 routes。
|
|
70653
|
+
*/
|
|
70654
|
+
type: 'routes';
|
|
69926
70655
|
} | {
|
|
69927
70656
|
/**
|
|
69928
70657
|
* 动作类型:后退、前进或刷新当前页。
|
|
@@ -70141,6 +70870,60 @@ export type BrowserRunPageActionResponses = {
|
|
|
70141
70870
|
* 已设置的 cookie 的域。
|
|
70142
70871
|
*/
|
|
70143
70872
|
domain: string;
|
|
70873
|
+
} | {
|
|
70874
|
+
/**
|
|
70875
|
+
* 动作类型,固定为 route。
|
|
70876
|
+
*/
|
|
70877
|
+
type: 'route';
|
|
70878
|
+
/**
|
|
70879
|
+
* 新规则的 ID,后续 unroute 用它移除;规则的作用域是会话,会话结束时随之清除。
|
|
70880
|
+
*/
|
|
70881
|
+
routeId: string;
|
|
70882
|
+
} | {
|
|
70883
|
+
/**
|
|
70884
|
+
* 动作类型,固定为 unroute。
|
|
70885
|
+
*/
|
|
70886
|
+
type: 'unroute';
|
|
70887
|
+
/**
|
|
70888
|
+
* 请求移除的规则 ID。
|
|
70889
|
+
*/
|
|
70890
|
+
routeId: string;
|
|
70891
|
+
/**
|
|
70892
|
+
* 是否真的移除了一条规则;ID 不存在时为 false。
|
|
70893
|
+
*/
|
|
70894
|
+
removed: boolean;
|
|
70895
|
+
} | {
|
|
70896
|
+
/**
|
|
70897
|
+
* 动作类型,固定为 routes。
|
|
70898
|
+
*/
|
|
70899
|
+
type: 'routes';
|
|
70900
|
+
/**
|
|
70901
|
+
* 当前会话上的规则,按注册顺序;多条都匹配时后注册的优先。
|
|
70902
|
+
*/
|
|
70903
|
+
routes: Array<{
|
|
70904
|
+
/**
|
|
70905
|
+
* 规则 ID,注册时由服务端生成并返回。
|
|
70906
|
+
*/
|
|
70907
|
+
routeId: string;
|
|
70908
|
+
/**
|
|
70909
|
+
* 规则匹配的地址模式。
|
|
70910
|
+
*/
|
|
70911
|
+
url: string;
|
|
70912
|
+
/**
|
|
70913
|
+
* 规则限定的 HTTP 方法;不限定时省略。
|
|
70914
|
+
*/
|
|
70915
|
+
method?: string;
|
|
70916
|
+
/**
|
|
70917
|
+
* 规则只作用的标签页;作用于整个会话时省略。
|
|
70918
|
+
*/
|
|
70919
|
+
tab?: string;
|
|
70920
|
+
/**
|
|
70921
|
+
* 规则的处理方式:kind 为 fulfill、abort 或 delay,其余字段同注册时的 response。
|
|
70922
|
+
*/
|
|
70923
|
+
response: {
|
|
70924
|
+
[key: string]: unknown;
|
|
70925
|
+
};
|
|
70926
|
+
}>;
|
|
70144
70927
|
};
|
|
70145
70928
|
};
|
|
70146
70929
|
export type BrowserRunPageActionResponse = BrowserRunPageActionResponses[keyof BrowserRunPageActionResponses];
|
|
@@ -70585,6 +71368,36 @@ export type BrowserCreateContextData = {
|
|
|
70585
71368
|
labels?: {
|
|
70586
71369
|
[key: string]: string;
|
|
70587
71370
|
};
|
|
71371
|
+
/**
|
|
71372
|
+
* 给登录态绑定一个固定的外部代理(如住宅 IP),使用这个登录态的会话没有写 proxies 时都经它出网,让同一账号始终从同一个出口地址出去。只存保管库引用(password_secret),不存密码;会话自己写了 proxies 时以会话的为准。需要组织已开通容器后端,否则返回 501 PROVIDER_UNSUPPORTED。
|
|
71373
|
+
*/
|
|
71374
|
+
proxy?: {
|
|
71375
|
+
/**
|
|
71376
|
+
* 固定为 external:经一个你自己的外部 HTTP 代理出网。
|
|
71377
|
+
*/
|
|
71378
|
+
type: 'external';
|
|
71379
|
+
/**
|
|
71380
|
+
* 代理地址,host:port 或 http://host:port;只支持 HTTP 代理,不接受 socks5:// 等协议,也不接受 localhost 和内网、链路本地地址。
|
|
71381
|
+
*/
|
|
71382
|
+
server: string;
|
|
71383
|
+
/**
|
|
71384
|
+
* 代理用户名;有密码时才能填,填了就必须同时给出密码。
|
|
71385
|
+
*/
|
|
71386
|
+
username?: string;
|
|
71387
|
+
/**
|
|
71388
|
+
* 必须用这种形式:引用保管库里的代理密码,只在连接这个代理的主机时兑换,不会交给网页。登录态里只存引用,传明文 password 返回 400 INVALID_PARAMS。
|
|
71389
|
+
*/
|
|
71390
|
+
password_secret?: {
|
|
71391
|
+
/**
|
|
71392
|
+
* 保存代理密码的保管库 ID,以 vlt_ 开头。
|
|
71393
|
+
*/
|
|
71394
|
+
vault_id: string;
|
|
71395
|
+
/**
|
|
71396
|
+
* 保管库中该密码的密钥 ID(不是密码本身)。
|
|
71397
|
+
*/
|
|
71398
|
+
secret: string;
|
|
71399
|
+
};
|
|
71400
|
+
};
|
|
70588
71401
|
};
|
|
70589
71402
|
path?: never;
|
|
70590
71403
|
query?: never;
|
|
@@ -70827,6 +71640,36 @@ export type BrowserUpdateContextData = {
|
|
|
70827
71640
|
labels?: {
|
|
70828
71641
|
[key: string]: string;
|
|
70829
71642
|
};
|
|
71643
|
+
/**
|
|
71644
|
+
* 给登录态绑定一个固定的外部代理(如住宅 IP),使用这个登录态的会话没有写 proxies 时都经它出网,让同一账号始终从同一个出口地址出去。只存保管库引用(password_secret),不存密码;会话自己写了 proxies 时以会话的为准。需要组织已开通容器后端,否则返回 501 PROVIDER_UNSUPPORTED。 更新时传 null 解除绑定,省略则保留原绑定。
|
|
71645
|
+
*/
|
|
71646
|
+
proxy?: {
|
|
71647
|
+
/**
|
|
71648
|
+
* 固定为 external:经一个你自己的外部 HTTP 代理出网。
|
|
71649
|
+
*/
|
|
71650
|
+
type: 'external';
|
|
71651
|
+
/**
|
|
71652
|
+
* 代理地址,host:port 或 http://host:port;只支持 HTTP 代理,不接受 socks5:// 等协议,也不接受 localhost 和内网、链路本地地址。
|
|
71653
|
+
*/
|
|
71654
|
+
server: string;
|
|
71655
|
+
/**
|
|
71656
|
+
* 代理用户名;有密码时才能填,填了就必须同时给出密码。
|
|
71657
|
+
*/
|
|
71658
|
+
username?: string;
|
|
71659
|
+
/**
|
|
71660
|
+
* 必须用这种形式:引用保管库里的代理密码,只在连接这个代理的主机时兑换,不会交给网页。登录态里只存引用,传明文 password 返回 400 INVALID_PARAMS。
|
|
71661
|
+
*/
|
|
71662
|
+
password_secret?: {
|
|
71663
|
+
/**
|
|
71664
|
+
* 保存代理密码的保管库 ID,以 vlt_ 开头。
|
|
71665
|
+
*/
|
|
71666
|
+
vault_id: string;
|
|
71667
|
+
/**
|
|
71668
|
+
* 保管库中该密码的密钥 ID(不是密码本身)。
|
|
71669
|
+
*/
|
|
71670
|
+
secret: string;
|
|
71671
|
+
};
|
|
71672
|
+
} | null;
|
|
70830
71673
|
};
|
|
70831
71674
|
path: {
|
|
70832
71675
|
/**
|
|
@@ -78475,7 +79318,7 @@ export type ListOrganizationCostsData = {
|
|
|
78475
79318
|
*/
|
|
78476
79319
|
bucket_width: '1h' | '1d';
|
|
78477
79320
|
/**
|
|
78478
|
-
* IANA time zone name (for example Asia/Shanghai) whose local hours or days form the buckets. Defaults to UTC. Offsets such as +08:00 are rejected.
|
|
79321
|
+
* IANA time zone name (for example Asia/Shanghai) whose local hours or days form the buckets. Defaults to UTC. Offsets such as +08:00 are rejected. Only zones whose UTC offset is a whole number of hours across the whole window are supported; zones such as Asia/Kolkata (+05:30) or Asia/Kathmandu (+05:45) are rejected with 400 VALIDATION_ERROR, because Billing buckets in UTC hours and a local hour of those zones straddles two of them. With bucket_width=1d the window widens to whole local days, each bucket carries its real UTC starting_at and ending_at, and a day that crosses a daylight-saving change lasts 23 or 25 hours; the whole window is then answered in one page (has_more is false and page is not accepted). starting_at and ending_at stay UTC instants.
|
|
78479
79322
|
*
|
|
78480
79323
|
*/
|
|
78481
79324
|
time_zone?: string;
|
|
@@ -78593,7 +79436,7 @@ export type ListOrganizationUsageData = {
|
|
|
78593
79436
|
*/
|
|
78594
79437
|
bucket_width: '1h' | '1d';
|
|
78595
79438
|
/**
|
|
78596
|
-
* IANA time zone name (for example Asia/Shanghai) whose local hours or days form the buckets. Defaults to UTC. Offsets such as +08:00 are rejected.
|
|
79439
|
+
* IANA time zone name (for example Asia/Shanghai) whose local hours or days form the buckets. Defaults to UTC. Offsets such as +08:00 are rejected. Only zones whose UTC offset is a whole number of hours across the whole window are supported; zones such as Asia/Kolkata (+05:30) or Asia/Kathmandu (+05:45) are rejected with 400 VALIDATION_ERROR, because Billing buckets in UTC hours and a local hour of those zones straddles two of them. With bucket_width=1d the window widens to whole local days, each bucket carries its real UTC starting_at and ending_at, and a day that crosses a daylight-saving change lasts 23 or 25 hours; the whole window is then answered in one page (has_more is false and page is not accepted). starting_at and ending_at stay UTC instants.
|
|
78597
79440
|
*
|
|
78598
79441
|
*/
|
|
78599
79442
|
time_zone?: string;
|
|
@@ -79113,11 +79956,19 @@ export type ListOrganizationNotificationLettersData = {
|
|
|
79113
79956
|
path?: never;
|
|
79114
79957
|
query?: {
|
|
79115
79958
|
/**
|
|
79116
|
-
*
|
|
79959
|
+
* received (the default) lists the letters addressed to you; sent lists the letters you wrote, scheduled ones included, in the same row shape — a script or an agent finds its own alarm clocks there. A run credential's sent list is the letters automation wrote on behalf of the person it acts for.
|
|
79117
79960
|
*/
|
|
79118
|
-
|
|
79961
|
+
direction?: 'received' | 'sent';
|
|
79119
79962
|
/**
|
|
79120
|
-
*
|
|
79963
|
+
* Only unread letters, only read ones, or (direction=sent only) only letters written but not yet delivered, whose deliveredAt is null; omit for all. On a sent list, unread and read are the recipient's state.
|
|
79964
|
+
*/
|
|
79965
|
+
status?: 'unread' | 'read' | 'scheduled';
|
|
79966
|
+
/**
|
|
79967
|
+
* Only letters of this conversation, for received and sent alike; omit for all.
|
|
79968
|
+
*/
|
|
79969
|
+
thread?: string;
|
|
79970
|
+
/**
|
|
79971
|
+
* false (the default) hides archived letters; true lists only the archived ones. Archiving is the addressee's act, so it is ignored when direction=sent.
|
|
79121
79972
|
*/
|
|
79122
79973
|
archived?: boolean;
|
|
79123
79974
|
/**
|
|
@@ -79133,7 +79984,7 @@ export type ListOrganizationNotificationLettersData = {
|
|
|
79133
79984
|
};
|
|
79134
79985
|
export type ListOrganizationNotificationLettersErrors = {
|
|
79135
79986
|
/**
|
|
79136
|
-
* A bad `status`, `archived` or `limit`, or `INVALID_PARAMS` from the service for a cursor it did not issue (RFC 9457 problem).
|
|
79987
|
+
* A bad `direction`, `status` (scheduled needs direction=sent), `thread`, `archived` or `limit`, or `INVALID_PARAMS` from the service for a cursor it did not issue (RFC 9457 problem).
|
|
79137
79988
|
*/
|
|
79138
79989
|
400: unknown;
|
|
79139
79990
|
/**
|
|
@@ -79233,6 +80084,80 @@ export type ListOrganizationNotificationLettersResponses = {
|
|
|
79233
80084
|
};
|
|
79234
80085
|
};
|
|
79235
80086
|
export type ListOrganizationNotificationLettersResponse = ListOrganizationNotificationLettersResponses[keyof ListOrganizationNotificationLettersResponses];
|
|
80087
|
+
export type CreateOrganizationNotificationLetterData = {
|
|
80088
|
+
body: {
|
|
80089
|
+
/**
|
|
80090
|
+
* The recipient's address: human:<user id> or agent:<agent id>, a member or an agent of this organization.
|
|
80091
|
+
*/
|
|
80092
|
+
to: string;
|
|
80093
|
+
/**
|
|
80094
|
+
* The whole letter, 1 to 16000 characters.
|
|
80095
|
+
*/
|
|
80096
|
+
body: string;
|
|
80097
|
+
/**
|
|
80098
|
+
* One sentence saying what the reader is asked to do or needs to know, at most 60 characters. Required when to is a person; refused, never cut, when longer.
|
|
80099
|
+
*/
|
|
80100
|
+
summary?: string;
|
|
80101
|
+
/**
|
|
80102
|
+
* The letter's kind; it decides the channels. Defaults to mention.
|
|
80103
|
+
*/
|
|
80104
|
+
kind?: 'notice' | 'mention' | 'decision';
|
|
80105
|
+
/**
|
|
80106
|
+
* The conversation the letter belongs to, free text; omit for none.
|
|
80107
|
+
*/
|
|
80108
|
+
thread?: string;
|
|
80109
|
+
/**
|
|
80110
|
+
* When to deliver it, ISO 8601, at most 366 days ahead. A past time or no value means now.
|
|
80111
|
+
*/
|
|
80112
|
+
deliver_at?: string;
|
|
80113
|
+
};
|
|
80114
|
+
path?: never;
|
|
80115
|
+
query?: never;
|
|
80116
|
+
url: '/organization/v1/notifications/letters';
|
|
80117
|
+
};
|
|
80118
|
+
export type CreateOrganizationNotificationLetterErrors = {
|
|
80119
|
+
/**
|
|
80120
|
+
* `to` is not an address, `body` is missing or too long, `summary` is missing for a person or longer than 60 characters, `kind` is unknown, or `deliver_at` is not an ISO 8601 time within 366 days (RFC 9457 problem).
|
|
80121
|
+
*/
|
|
80122
|
+
400: unknown;
|
|
80123
|
+
/**
|
|
80124
|
+
* Missing or invalid credential (RFC 9457 problem).
|
|
80125
|
+
*/
|
|
80126
|
+
401: unknown;
|
|
80127
|
+
/**
|
|
80128
|
+
* `PERMISSION_DENIED`: sending a letter needs a person, an agent or an automation run identity; an organization API key or an application cannot send (RFC 9457 problem).
|
|
80129
|
+
*/
|
|
80130
|
+
403: unknown;
|
|
80131
|
+
/**
|
|
80132
|
+
* `SUBSCRIBER_NOT_FOUND`: the recipient is not a member or an agent of this organization (RFC 9457 problem).
|
|
80133
|
+
*/
|
|
80134
|
+
404: unknown;
|
|
80135
|
+
/**
|
|
80136
|
+
* The notification service did not answer, or failed in a way it did not classify (RFC 9457 problem, `UNAVAILABLE`). A refusal the service classifies is never a 502 — it reaches the caller in its own class (400, 403, 404), so a client may act on it.
|
|
80137
|
+
*/
|
|
80138
|
+
502: unknown;
|
|
80139
|
+
};
|
|
80140
|
+
export type CreateOrganizationNotificationLetterResponses = {
|
|
80141
|
+
/**
|
|
80142
|
+
* The letter is written; it is delivered at deliverAt.
|
|
80143
|
+
*/
|
|
80144
|
+
200: {
|
|
80145
|
+
/**
|
|
80146
|
+
* The letter that was written: its id and the time it is delivered.
|
|
80147
|
+
*/
|
|
80148
|
+
letter: {
|
|
80149
|
+
/**
|
|
80150
|
+
* The letter's id.
|
|
80151
|
+
*/
|
|
80152
|
+
id: string;
|
|
80153
|
+
/**
|
|
80154
|
+
* When it is delivered: now, or the time asked for.
|
|
80155
|
+
*/
|
|
80156
|
+
deliverAt: string;
|
|
80157
|
+
};
|
|
80158
|
+
};
|
|
80159
|
+
};
|
|
80160
|
+
export type CreateOrganizationNotificationLetterResponse = CreateOrganizationNotificationLetterResponses[keyof CreateOrganizationNotificationLetterResponses];
|
|
79236
80161
|
export type GetOrganizationNotificationLetterData = {
|
|
79237
80162
|
body?: never;
|
|
79238
80163
|
path: {
|
|
@@ -79456,6 +80381,360 @@ export type ArchiveOrganizationNotificationLetterResponses = {
|
|
|
79456
80381
|
};
|
|
79457
80382
|
};
|
|
79458
80383
|
export type ArchiveOrganizationNotificationLetterResponse = ArchiveOrganizationNotificationLetterResponses[keyof ArchiveOrganizationNotificationLetterResponses];
|
|
80384
|
+
export type ListOrganizationNotificationMessagesData = {
|
|
80385
|
+
body?: never;
|
|
80386
|
+
path?: never;
|
|
80387
|
+
query?: {
|
|
80388
|
+
/**
|
|
80389
|
+
* 0 (the default) lists the inbox tab, 1 lists archived messages.
|
|
80390
|
+
*/
|
|
80391
|
+
archived?: '0' | '1';
|
|
80392
|
+
/**
|
|
80393
|
+
* Messages per page, 1 to 100; defaults to 20.
|
|
80394
|
+
*/
|
|
80395
|
+
limit?: number;
|
|
80396
|
+
/**
|
|
80397
|
+
* Opaque nextPageToken from the previous response; omit for the first page.
|
|
80398
|
+
*/
|
|
80399
|
+
page?: string;
|
|
80400
|
+
};
|
|
80401
|
+
url: '/organization/v1/notifications/messages';
|
|
80402
|
+
};
|
|
80403
|
+
export type ListOrganizationNotificationMessagesErrors = {
|
|
80404
|
+
/**
|
|
80405
|
+
* A bad `archived`, `limit` or `page`, or `INVALID_PARAMS` from the service for a cursor it did not issue (RFC 9457 problem).
|
|
80406
|
+
*/
|
|
80407
|
+
400: unknown;
|
|
80408
|
+
/**
|
|
80409
|
+
* Missing or invalid credential (RFC 9457 problem).
|
|
80410
|
+
*/
|
|
80411
|
+
401: unknown;
|
|
80412
|
+
/**
|
|
80413
|
+
* `PERMISSION_DENIED`: an agent credential has no person inbox; read its own letters instead (RFC 9457 problem).
|
|
80414
|
+
*/
|
|
80415
|
+
403: unknown;
|
|
80416
|
+
/**
|
|
80417
|
+
* The notification service did not answer, or failed in a way it did not classify (RFC 9457 problem, `UNAVAILABLE`). A refusal the service classifies is never a 502 — it reaches the caller in its own class (400, 403, 404), so a client may act on it.
|
|
80418
|
+
*/
|
|
80419
|
+
502: unknown;
|
|
80420
|
+
};
|
|
80421
|
+
export type ListOrganizationNotificationMessagesResponses = {
|
|
80422
|
+
/**
|
|
80423
|
+
* One page of this person's messages.
|
|
80424
|
+
*/
|
|
80425
|
+
200: {
|
|
80426
|
+
/**
|
|
80427
|
+
* The page, newest first.
|
|
80428
|
+
*/
|
|
80429
|
+
items: Array<{
|
|
80430
|
+
/**
|
|
80431
|
+
* The message's resource name, subscribers/{user}/messages/{id}; pass it URL-encoded as the {name} of the other message operations.
|
|
80432
|
+
*/
|
|
80433
|
+
name: string;
|
|
80434
|
+
/**
|
|
80435
|
+
* The organization the message belongs to; empty for a message that belongs to no organization.
|
|
80436
|
+
*/
|
|
80437
|
+
organizationId: string;
|
|
80438
|
+
/**
|
|
80439
|
+
* The notification group the message belongs to: members, usage, alerts, agent, or nonConfigurable.
|
|
80440
|
+
*/
|
|
80441
|
+
group: 'members' | 'usage' | 'alerts' | 'agent' | 'nonConfigurable';
|
|
80442
|
+
/**
|
|
80443
|
+
* The notification workflow that wrote it, as the preferences page names it.
|
|
80444
|
+
*/
|
|
80445
|
+
workflow: string;
|
|
80446
|
+
/**
|
|
80447
|
+
* The message's headline, as the bell shows it.
|
|
80448
|
+
*/
|
|
80449
|
+
title: string;
|
|
80450
|
+
/**
|
|
80451
|
+
* The message text.
|
|
80452
|
+
*/
|
|
80453
|
+
body: string;
|
|
80454
|
+
/**
|
|
80455
|
+
* Where the bell opens this message; absent when it has no page.
|
|
80456
|
+
*/
|
|
80457
|
+
actionUrl?: string;
|
|
80458
|
+
/**
|
|
80459
|
+
* Whether the bell has been opened since the message arrived.
|
|
80460
|
+
*/
|
|
80461
|
+
seen: boolean;
|
|
80462
|
+
/**
|
|
80463
|
+
* Whether this person has read it.
|
|
80464
|
+
*/
|
|
80465
|
+
read: boolean;
|
|
80466
|
+
/**
|
|
80467
|
+
* Whether this person archived it; archived messages are not in the inbox tab.
|
|
80468
|
+
*/
|
|
80469
|
+
archived: boolean;
|
|
80470
|
+
/**
|
|
80471
|
+
* When the message arrived.
|
|
80472
|
+
*/
|
|
80473
|
+
createTime: string;
|
|
80474
|
+
}>;
|
|
80475
|
+
/**
|
|
80476
|
+
* Pass unchanged as page for the next page; absent at the end.
|
|
80477
|
+
*/
|
|
80478
|
+
nextPageToken?: string;
|
|
80479
|
+
};
|
|
80480
|
+
};
|
|
80481
|
+
export type ListOrganizationNotificationMessagesResponse = ListOrganizationNotificationMessagesResponses[keyof ListOrganizationNotificationMessagesResponses];
|
|
80482
|
+
export type DeleteOrganizationNotificationMessageData = {
|
|
80483
|
+
body?: never;
|
|
80484
|
+
path: {
|
|
80485
|
+
/**
|
|
80486
|
+
* The message's `name` from the messages list, subscribers/{user}/messages/{id}, URL-encoded.
|
|
80487
|
+
*/
|
|
80488
|
+
name: string;
|
|
80489
|
+
};
|
|
80490
|
+
query?: never;
|
|
80491
|
+
url: '/organization/v1/notifications/messages/{name}';
|
|
80492
|
+
};
|
|
80493
|
+
export type DeleteOrganizationNotificationMessageErrors = {
|
|
80494
|
+
/**
|
|
80495
|
+
* `name` is not subscribers/{user}/messages/{id} — `INVALID_PARAMS` (RFC 9457 problem).
|
|
80496
|
+
*/
|
|
80497
|
+
400: unknown;
|
|
80498
|
+
/**
|
|
80499
|
+
* Missing or invalid credential (RFC 9457 problem).
|
|
80500
|
+
*/
|
|
80501
|
+
401: unknown;
|
|
80502
|
+
/**
|
|
80503
|
+
* `PERMISSION_DENIED`: an agent credential has no person inbox; read its own letters instead (RFC 9457 problem).
|
|
80504
|
+
*/
|
|
80505
|
+
403: unknown;
|
|
80506
|
+
/**
|
|
80507
|
+
* No such message of yours in this organization — `MESSAGE_NOT_FOUND` (RFC 9457 problem).
|
|
80508
|
+
*/
|
|
80509
|
+
404: unknown;
|
|
80510
|
+
/**
|
|
80511
|
+
* The notification service did not answer, or failed in a way it did not classify (RFC 9457 problem, `UNAVAILABLE`). A refusal the service classifies is never a 502 — it reaches the caller in its own class (400, 403, 404), so a client may act on it.
|
|
80512
|
+
*/
|
|
80513
|
+
502: unknown;
|
|
80514
|
+
};
|
|
80515
|
+
export type DeleteOrganizationNotificationMessageResponses = {
|
|
80516
|
+
/**
|
|
80517
|
+
* The message is deleted.
|
|
80518
|
+
*/
|
|
80519
|
+
200: {
|
|
80520
|
+
/**
|
|
80521
|
+
* Always true: the message was deleted.
|
|
80522
|
+
*/
|
|
80523
|
+
deleted: boolean;
|
|
80524
|
+
};
|
|
80525
|
+
};
|
|
80526
|
+
export type DeleteOrganizationNotificationMessageResponse = DeleteOrganizationNotificationMessageResponses[keyof DeleteOrganizationNotificationMessageResponses];
|
|
80527
|
+
export type GetOrganizationNotificationMessageData = {
|
|
80528
|
+
body?: never;
|
|
80529
|
+
path: {
|
|
80530
|
+
/**
|
|
80531
|
+
* The message's `name` from the messages list, subscribers/{user}/messages/{id}, URL-encoded.
|
|
80532
|
+
*/
|
|
80533
|
+
name: string;
|
|
80534
|
+
};
|
|
80535
|
+
query?: never;
|
|
80536
|
+
url: '/organization/v1/notifications/messages/{name}';
|
|
80537
|
+
};
|
|
80538
|
+
export type GetOrganizationNotificationMessageErrors = {
|
|
80539
|
+
/**
|
|
80540
|
+
* `name` is not subscribers/{user}/messages/{id} — `INVALID_PARAMS` (RFC 9457 problem).
|
|
80541
|
+
*/
|
|
80542
|
+
400: unknown;
|
|
80543
|
+
/**
|
|
80544
|
+
* Missing or invalid credential (RFC 9457 problem).
|
|
80545
|
+
*/
|
|
80546
|
+
401: unknown;
|
|
80547
|
+
/**
|
|
80548
|
+
* `PERMISSION_DENIED`: an agent credential has no person inbox; read its own letters instead (RFC 9457 problem).
|
|
80549
|
+
*/
|
|
80550
|
+
403: unknown;
|
|
80551
|
+
/**
|
|
80552
|
+
* No such message of yours in this organization — `MESSAGE_NOT_FOUND`, the same answer for another person's message and one that never existed (RFC 9457 problem).
|
|
80553
|
+
*/
|
|
80554
|
+
404: unknown;
|
|
80555
|
+
/**
|
|
80556
|
+
* The notification service did not answer, or failed in a way it did not classify (RFC 9457 problem, `UNAVAILABLE`). A refusal the service classifies is never a 502 — it reaches the caller in its own class (400, 403, 404), so a client may act on it.
|
|
80557
|
+
*/
|
|
80558
|
+
502: unknown;
|
|
80559
|
+
};
|
|
80560
|
+
export type GetOrganizationNotificationMessageResponses = {
|
|
80561
|
+
/**
|
|
80562
|
+
* The message.
|
|
80563
|
+
*/
|
|
80564
|
+
200: {
|
|
80565
|
+
/**
|
|
80566
|
+
* The message's resource name, subscribers/{user}/messages/{id}; pass it URL-encoded as the {name} of the other message operations.
|
|
80567
|
+
*/
|
|
80568
|
+
name: string;
|
|
80569
|
+
/**
|
|
80570
|
+
* The organization the message belongs to; empty for a message that belongs to no organization.
|
|
80571
|
+
*/
|
|
80572
|
+
organizationId: string;
|
|
80573
|
+
/**
|
|
80574
|
+
* The notification group the message belongs to: members, usage, alerts, agent, or nonConfigurable.
|
|
80575
|
+
*/
|
|
80576
|
+
group: 'members' | 'usage' | 'alerts' | 'agent' | 'nonConfigurable';
|
|
80577
|
+
/**
|
|
80578
|
+
* The notification workflow that wrote it, as the preferences page names it.
|
|
80579
|
+
*/
|
|
80580
|
+
workflow: string;
|
|
80581
|
+
/**
|
|
80582
|
+
* The message's headline, as the bell shows it.
|
|
80583
|
+
*/
|
|
80584
|
+
title: string;
|
|
80585
|
+
/**
|
|
80586
|
+
* The message text.
|
|
80587
|
+
*/
|
|
80588
|
+
body: string;
|
|
80589
|
+
/**
|
|
80590
|
+
* Where the bell opens this message; absent when it has no page.
|
|
80591
|
+
*/
|
|
80592
|
+
actionUrl?: string;
|
|
80593
|
+
/**
|
|
80594
|
+
* Whether the bell has been opened since the message arrived.
|
|
80595
|
+
*/
|
|
80596
|
+
seen: boolean;
|
|
80597
|
+
/**
|
|
80598
|
+
* Whether this person has read it.
|
|
80599
|
+
*/
|
|
80600
|
+
read: boolean;
|
|
80601
|
+
/**
|
|
80602
|
+
* Whether this person archived it; archived messages are not in the inbox tab.
|
|
80603
|
+
*/
|
|
80604
|
+
archived: boolean;
|
|
80605
|
+
/**
|
|
80606
|
+
* When the message arrived.
|
|
80607
|
+
*/
|
|
80608
|
+
createTime: string;
|
|
80609
|
+
};
|
|
80610
|
+
};
|
|
80611
|
+
export type GetOrganizationNotificationMessageResponse = GetOrganizationNotificationMessageResponses[keyof GetOrganizationNotificationMessageResponses];
|
|
80612
|
+
export type UpdateOrganizationNotificationMessageData = {
|
|
80613
|
+
body: {
|
|
80614
|
+
/**
|
|
80615
|
+
* Mark the message read (true) or unread (false); omit to leave it.
|
|
80616
|
+
*/
|
|
80617
|
+
read?: boolean;
|
|
80618
|
+
/**
|
|
80619
|
+
* Archive the message (true) or move it back to the inbox (false); omit to leave it.
|
|
80620
|
+
*/
|
|
80621
|
+
archived?: boolean;
|
|
80622
|
+
};
|
|
80623
|
+
path: {
|
|
80624
|
+
/**
|
|
80625
|
+
* The message's `name` from the messages list, subscribers/{user}/messages/{id}, URL-encoded.
|
|
80626
|
+
*/
|
|
80627
|
+
name: string;
|
|
80628
|
+
};
|
|
80629
|
+
query?: never;
|
|
80630
|
+
url: '/organization/v1/notifications/messages/{name}';
|
|
80631
|
+
};
|
|
80632
|
+
export type UpdateOrganizationNotificationMessageErrors = {
|
|
80633
|
+
/**
|
|
80634
|
+
* The body is not a JSON object, names neither `read` nor `archived`, a flag is not true or false, or `name` is malformed (RFC 9457 problem).
|
|
80635
|
+
*/
|
|
80636
|
+
400: unknown;
|
|
80637
|
+
/**
|
|
80638
|
+
* Missing or invalid credential (RFC 9457 problem).
|
|
80639
|
+
*/
|
|
80640
|
+
401: unknown;
|
|
80641
|
+
/**
|
|
80642
|
+
* `PERMISSION_DENIED`: an agent credential has no person inbox; read its own letters instead (RFC 9457 problem).
|
|
80643
|
+
*/
|
|
80644
|
+
403: unknown;
|
|
80645
|
+
/**
|
|
80646
|
+
* No such message of yours in this organization — `MESSAGE_NOT_FOUND` (RFC 9457 problem).
|
|
80647
|
+
*/
|
|
80648
|
+
404: unknown;
|
|
80649
|
+
/**
|
|
80650
|
+
* The notification service did not answer, or failed in a way it did not classify (RFC 9457 problem, `UNAVAILABLE`). A refusal the service classifies is never a 502 — it reaches the caller in its own class (400, 403, 404), so a client may act on it.
|
|
80651
|
+
*/
|
|
80652
|
+
502: unknown;
|
|
80653
|
+
};
|
|
80654
|
+
export type UpdateOrganizationNotificationMessageResponses = {
|
|
80655
|
+
/**
|
|
80656
|
+
* The message after the change.
|
|
80657
|
+
*/
|
|
80658
|
+
200: {
|
|
80659
|
+
/**
|
|
80660
|
+
* The message's resource name, subscribers/{user}/messages/{id}; pass it URL-encoded as the {name} of the other message operations.
|
|
80661
|
+
*/
|
|
80662
|
+
name: string;
|
|
80663
|
+
/**
|
|
80664
|
+
* The organization the message belongs to; empty for a message that belongs to no organization.
|
|
80665
|
+
*/
|
|
80666
|
+
organizationId: string;
|
|
80667
|
+
/**
|
|
80668
|
+
* The notification group the message belongs to: members, usage, alerts, agent, or nonConfigurable.
|
|
80669
|
+
*/
|
|
80670
|
+
group: 'members' | 'usage' | 'alerts' | 'agent' | 'nonConfigurable';
|
|
80671
|
+
/**
|
|
80672
|
+
* The notification workflow that wrote it, as the preferences page names it.
|
|
80673
|
+
*/
|
|
80674
|
+
workflow: string;
|
|
80675
|
+
/**
|
|
80676
|
+
* The message's headline, as the bell shows it.
|
|
80677
|
+
*/
|
|
80678
|
+
title: string;
|
|
80679
|
+
/**
|
|
80680
|
+
* The message text.
|
|
80681
|
+
*/
|
|
80682
|
+
body: string;
|
|
80683
|
+
/**
|
|
80684
|
+
* Where the bell opens this message; absent when it has no page.
|
|
80685
|
+
*/
|
|
80686
|
+
actionUrl?: string;
|
|
80687
|
+
/**
|
|
80688
|
+
* Whether the bell has been opened since the message arrived.
|
|
80689
|
+
*/
|
|
80690
|
+
seen: boolean;
|
|
80691
|
+
/**
|
|
80692
|
+
* Whether this person has read it.
|
|
80693
|
+
*/
|
|
80694
|
+
read: boolean;
|
|
80695
|
+
/**
|
|
80696
|
+
* Whether this person archived it; archived messages are not in the inbox tab.
|
|
80697
|
+
*/
|
|
80698
|
+
archived: boolean;
|
|
80699
|
+
/**
|
|
80700
|
+
* When the message arrived.
|
|
80701
|
+
*/
|
|
80702
|
+
createTime: string;
|
|
80703
|
+
};
|
|
80704
|
+
};
|
|
80705
|
+
export type UpdateOrganizationNotificationMessageResponse = UpdateOrganizationNotificationMessageResponses[keyof UpdateOrganizationNotificationMessageResponses];
|
|
80706
|
+
export type ReadAllOrganizationNotificationMessagesData = {
|
|
80707
|
+
body?: never;
|
|
80708
|
+
path?: never;
|
|
80709
|
+
query?: never;
|
|
80710
|
+
url: '/organization/v1/notifications/messages:readAll';
|
|
80711
|
+
};
|
|
80712
|
+
export type ReadAllOrganizationNotificationMessagesErrors = {
|
|
80713
|
+
/**
|
|
80714
|
+
* Missing or invalid credential (RFC 9457 problem).
|
|
80715
|
+
*/
|
|
80716
|
+
401: unknown;
|
|
80717
|
+
/**
|
|
80718
|
+
* `PERMISSION_DENIED`: an agent credential has no person inbox; read its own letters instead (RFC 9457 problem).
|
|
80719
|
+
*/
|
|
80720
|
+
403: unknown;
|
|
80721
|
+
/**
|
|
80722
|
+
* The notification service did not answer, or failed in a way it did not classify (RFC 9457 problem, `UNAVAILABLE`). A refusal the service classifies is never a 502 — it reaches the caller in its own class (400, 403, 404), so a client may act on it.
|
|
80723
|
+
*/
|
|
80724
|
+
502: unknown;
|
|
80725
|
+
};
|
|
80726
|
+
export type ReadAllOrganizationNotificationMessagesResponses = {
|
|
80727
|
+
/**
|
|
80728
|
+
* How many messages were marked read.
|
|
80729
|
+
*/
|
|
80730
|
+
200: {
|
|
80731
|
+
/**
|
|
80732
|
+
* The number of messages that were unread and are now read.
|
|
80733
|
+
*/
|
|
80734
|
+
updated: number;
|
|
80735
|
+
};
|
|
80736
|
+
};
|
|
80737
|
+
export type ReadAllOrganizationNotificationMessagesResponse = ReadAllOrganizationNotificationMessagesResponses[keyof ReadAllOrganizationNotificationMessagesResponses];
|
|
79459
80738
|
export type GetOrganizationNotificationPreferencesData = {
|
|
79460
80739
|
body?: never;
|
|
79461
80740
|
path?: never;
|
|
@@ -80923,7 +82202,7 @@ export type ListByodDevicesResponses = {
|
|
|
80923
82202
|
*/
|
|
80924
82203
|
id: string;
|
|
80925
82204
|
/**
|
|
80926
|
-
* The device's platform, which decides the use faces it answers. A desktop (macos, linux) pairs
|
|
82205
|
+
* The device's platform, which decides the use faces it answers. A desktop (macos, linux) pairs like a phone; windows is not supported yet.
|
|
80927
82206
|
*/
|
|
80928
82207
|
platform: 'android' | 'macos' | 'linux';
|
|
80929
82208
|
/**
|
|
@@ -81022,7 +82301,7 @@ export type GetByodDeviceResponses = {
|
|
|
81022
82301
|
*/
|
|
81023
82302
|
id: string;
|
|
81024
82303
|
/**
|
|
81025
|
-
* The device's platform, which decides the use faces it answers. A desktop (macos, linux) pairs
|
|
82304
|
+
* The device's platform, which decides the use faces it answers. A desktop (macos, linux) pairs like a phone; windows is not supported yet.
|
|
81026
82305
|
*/
|
|
81027
82306
|
platform: 'android' | 'macos' | 'linux';
|
|
81028
82307
|
/**
|
|
@@ -81132,7 +82411,7 @@ export type UpdateByodDeviceResponses = {
|
|
|
81132
82411
|
*/
|
|
81133
82412
|
id: string;
|
|
81134
82413
|
/**
|
|
81135
|
-
* The device's platform, which decides the use faces it answers. A desktop (macos, linux) pairs
|
|
82414
|
+
* The device's platform, which decides the use faces it answers. A desktop (macos, linux) pairs like a phone; windows is not supported yet.
|
|
81136
82415
|
*/
|
|
81137
82416
|
platform: 'android' | 'macos' | 'linux';
|
|
81138
82417
|
/**
|
|
@@ -81269,13 +82548,124 @@ export type GetByodPairingResponses = {
|
|
|
81269
82548
|
};
|
|
81270
82549
|
};
|
|
81271
82550
|
export type GetByodPairingResponse = GetByodPairingResponses[keyof GetByodPairingResponses];
|
|
82551
|
+
export type GetByodPairingStatusData = {
|
|
82552
|
+
body?: never;
|
|
82553
|
+
path: {
|
|
82554
|
+
/**
|
|
82555
|
+
* The 8-character pairing code returned by createByodPairing. An unknown, spent or expired code answers 404.
|
|
82556
|
+
*/
|
|
82557
|
+
code: string;
|
|
82558
|
+
};
|
|
82559
|
+
query?: never;
|
|
82560
|
+
url: '/sandbox/v1/byod/pairings/{code}/status';
|
|
82561
|
+
};
|
|
82562
|
+
export type GetByodPairingStatusErrors = {
|
|
82563
|
+
/**
|
|
82564
|
+
* Authentication required: supply an organization API key that carries a tenant.
|
|
82565
|
+
*/
|
|
82566
|
+
401: unknown;
|
|
82567
|
+
/**
|
|
82568
|
+
* NOT_FOUND: no such pairing for this organization. The code is unknown or belongs to another organization; the two are indistinguishable.
|
|
82569
|
+
*/
|
|
82570
|
+
404: unknown;
|
|
82571
|
+
/**
|
|
82572
|
+
* SERVICE_UNAVAILABLE: BYOD is not bound in this deployment, or the sandbox is not ready. Wait and retry.
|
|
82573
|
+
*/
|
|
82574
|
+
503: unknown;
|
|
82575
|
+
};
|
|
82576
|
+
export type GetByodPairingStatusResponses = {
|
|
82577
|
+
/**
|
|
82578
|
+
* One pairing of the organization.
|
|
82579
|
+
*/
|
|
82580
|
+
200: {
|
|
82581
|
+
/**
|
|
82582
|
+
* The 8-character pairing code that was asked about.
|
|
82583
|
+
*/
|
|
82584
|
+
code: string;
|
|
82585
|
+
/**
|
|
82586
|
+
* When the code stops working, as an ISO-8601 timestamp.
|
|
82587
|
+
*/
|
|
82588
|
+
expires_at: string;
|
|
82589
|
+
/**
|
|
82590
|
+
* The device this code registered, or null while no phone has claimed it (or when that device was disconnected since).
|
|
82591
|
+
*/
|
|
82592
|
+
claimed_device: {
|
|
82593
|
+
/**
|
|
82594
|
+
* Resource type; always "byod_device".
|
|
82595
|
+
*/
|
|
82596
|
+
object: 'byod_device';
|
|
82597
|
+
/**
|
|
82598
|
+
* Device id, `byd_` followed by 26 lowercase hex characters. Pass it wherever a use face takes a sandbox id, such as POST /sandbox/v1/sandboxes/{id}/act; every lifecycle operation on it answers CAPABILITY_UNSUPPORTED.
|
|
82599
|
+
*/
|
|
82600
|
+
id: string;
|
|
82601
|
+
/**
|
|
82602
|
+
* The device's platform, which decides the use faces it answers. A desktop (macos, linux) pairs like a phone; windows is not supported yet.
|
|
82603
|
+
*/
|
|
82604
|
+
platform: 'android' | 'macos' | 'linux';
|
|
82605
|
+
/**
|
|
82606
|
+
* Display name of the device, 1 to 64 characters. Change it with updateByodDevice; it is not an identifier.
|
|
82607
|
+
*/
|
|
82608
|
+
name: string;
|
|
82609
|
+
/**
|
|
82610
|
+
* Device model the phone's app reported when it claimed the pairing, such as 23127PN0CC; empty when the app sent none.
|
|
82611
|
+
*/
|
|
82612
|
+
model: string;
|
|
82613
|
+
/**
|
|
82614
|
+
* Operating-system version the app reported, such as 16; empty when the app sent none. Not the device's model.
|
|
82615
|
+
*/
|
|
82616
|
+
os_version: string;
|
|
82617
|
+
/**
|
|
82618
|
+
* True while the device holds its one control connection; false when it is paired but not connected. An act on an offline device answers 503 DEVICE_NOT_READY.
|
|
82619
|
+
*/
|
|
82620
|
+
online: boolean;
|
|
82621
|
+
/**
|
|
82622
|
+
* When the device last said hello or answered a ping, as an ISO-8601 timestamp; null until it first connects.
|
|
82623
|
+
*/
|
|
82624
|
+
last_seen_at: string | null;
|
|
82625
|
+
/**
|
|
82626
|
+
* When the device was paired, as an ISO-8601 timestamp; the list is ordered by it, oldest first.
|
|
82627
|
+
*/
|
|
82628
|
+
created_at: string;
|
|
82629
|
+
/**
|
|
82630
|
+
* What the device can be asked to do, derived from its platform: display for a phone (act, the action socket), agent for a desktop (a local coding agent session).
|
|
82631
|
+
*/
|
|
82632
|
+
capabilities: Array<'display' | 'agent'>;
|
|
82633
|
+
/**
|
|
82634
|
+
* The absolute directories a desktop registered for agent sessions with its last hello; a session may only start in one of these. Empty for a phone and for a desktop that has not connected yet.
|
|
82635
|
+
*/
|
|
82636
|
+
agent_dirs: Array<string>;
|
|
82637
|
+
/**
|
|
82638
|
+
* Which agent each registered directory is bound to, as the desktop's last hello reported. Empty for a phone and for a desktop that has not connected yet.
|
|
82639
|
+
*/
|
|
82640
|
+
agent_bindings: Array<{
|
|
82641
|
+
/**
|
|
82642
|
+
* The absolute directory the desktop bound to an agent with praxis agent connect.
|
|
82643
|
+
*/
|
|
82644
|
+
dir: string;
|
|
82645
|
+
/**
|
|
82646
|
+
* The agent the directory is bound to: its identity number or its agent id.
|
|
82647
|
+
*/
|
|
82648
|
+
agent: string;
|
|
82649
|
+
}>;
|
|
82650
|
+
/**
|
|
82651
|
+
* 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.
|
|
82652
|
+
*/
|
|
82653
|
+
envd_version: string | null;
|
|
82654
|
+
/**
|
|
82655
|
+
* 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.
|
|
82656
|
+
*/
|
|
82657
|
+
allow_bypass: boolean;
|
|
82658
|
+
} | null;
|
|
82659
|
+
};
|
|
82660
|
+
};
|
|
82661
|
+
export type GetByodPairingStatusResponse = GetByodPairingStatusResponses[keyof GetByodPairingStatusResponses];
|
|
81272
82662
|
export type ClaimByodPairingData = {
|
|
81273
82663
|
/**
|
|
81274
82664
|
* What the phone's app knows about itself when it claims the pairing.
|
|
81275
82665
|
*/
|
|
81276
82666
|
body: {
|
|
81277
82667
|
/**
|
|
81278
|
-
* The device's platform. macos and linux are accepted
|
|
82668
|
+
* The device's platform. macos and linux are accepted for every organization; any other value than android, macos or linux answers INVALID_PARAMS.
|
|
81279
82669
|
*/
|
|
81280
82670
|
platform: 'android' | 'macos' | 'linux';
|
|
81281
82671
|
/**
|
|
@@ -81306,7 +82696,7 @@ export type ClaimByodPairingData = {
|
|
|
81306
82696
|
};
|
|
81307
82697
|
export type ClaimByodPairingErrors = {
|
|
81308
82698
|
/**
|
|
81309
|
-
* INVALID_PARAMS: the body is missing, platform is not android, macos or linux
|
|
82699
|
+
* 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.
|
|
81310
82700
|
*/
|
|
81311
82701
|
400: unknown;
|
|
81312
82702
|
/**
|
|
@@ -83929,8 +85319,7 @@ export type SessionsUpdateData = {
|
|
|
83929
85319
|
*/
|
|
83930
85320
|
title?: null | string;
|
|
83931
85321
|
/**
|
|
83932
|
-
*
|
|
83933
|
-
* requests setting this field are rejected. Reserved for future use.
|
|
85322
|
+
* 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.
|
|
83934
85323
|
*/
|
|
83935
85324
|
vault_ids?: Array<string>;
|
|
83936
85325
|
/**
|
|
@@ -84871,7 +86260,7 @@ export type AgentsListResponses = {
|
|
|
84871
86260
|
*/
|
|
84872
86261
|
environment_id?: string | null;
|
|
84873
86262
|
/**
|
|
84874
|
-
* Default vaults of this service or assume agent version: the vault_ids new
|
|
86263
|
+
* 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.
|
|
84875
86264
|
*/
|
|
84876
86265
|
vault_ids?: Array<string>;
|
|
84877
86266
|
/**
|
|
@@ -85410,7 +86799,7 @@ export type AgentsCreateData = {
|
|
|
85410
86799
|
*/
|
|
85411
86800
|
environment_id?: string | null;
|
|
85412
86801
|
/**
|
|
85413
|
-
* Default vaults of
|
|
86802
|
+
* 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.
|
|
85414
86803
|
*/
|
|
85415
86804
|
vault_ids?: Array<string>;
|
|
85416
86805
|
/**
|
|
@@ -86093,7 +87482,7 @@ export type AgentsCreateResponses = {
|
|
|
86093
87482
|
*/
|
|
86094
87483
|
environment_id?: string | null;
|
|
86095
87484
|
/**
|
|
86096
|
-
* Default vaults of this service or assume agent version: the vault_ids new
|
|
87485
|
+
* 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.
|
|
86097
87486
|
*/
|
|
86098
87487
|
vault_ids?: Array<string>;
|
|
86099
87488
|
/**
|
|
@@ -86764,7 +88153,7 @@ export type AgentsRetrieveResponses = {
|
|
|
86764
88153
|
*/
|
|
86765
88154
|
environment_id?: string | null;
|
|
86766
88155
|
/**
|
|
86767
|
-
* Default vaults of this service or assume agent version: the vault_ids new
|
|
88156
|
+
* 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.
|
|
86768
88157
|
*/
|
|
86769
88158
|
vault_ids?: Array<string>;
|
|
86770
88159
|
/**
|
|
@@ -87312,7 +88701,7 @@ export type AgentsUpdateData = {
|
|
|
87312
88701
|
*/
|
|
87313
88702
|
environment_id?: string | null;
|
|
87314
88703
|
/**
|
|
87315
|
-
* Default vaults of
|
|
88704
|
+
* 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.
|
|
87316
88705
|
*/
|
|
87317
88706
|
vault_ids?: Array<string>;
|
|
87318
88707
|
/**
|
|
@@ -88008,7 +89397,7 @@ export type AgentsUpdateResponses = {
|
|
|
88008
89397
|
*/
|
|
88009
89398
|
environment_id?: string | null;
|
|
88010
89399
|
/**
|
|
88011
|
-
* Default vaults of this service or assume agent version: the vault_ids new
|
|
89400
|
+
* 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.
|
|
88012
89401
|
*/
|
|
88013
89402
|
vault_ids?: Array<string>;
|
|
88014
89403
|
/**
|
|
@@ -88634,7 +90023,7 @@ export type AgentsArchiveResponses = {
|
|
|
88634
90023
|
*/
|
|
88635
90024
|
environment_id?: string | null;
|
|
88636
90025
|
/**
|
|
88637
|
-
* Default vaults of this service or assume agent version: the vault_ids new
|
|
90026
|
+
* 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.
|
|
88638
90027
|
*/
|
|
88639
90028
|
vault_ids?: Array<string>;
|
|
88640
90029
|
/**
|
|
@@ -89305,7 +90694,7 @@ export type AgentsVersionsListResponses = {
|
|
|
89305
90694
|
*/
|
|
89306
90695
|
environment_id?: string | null;
|
|
89307
90696
|
/**
|
|
89308
|
-
* Default vaults of this service or assume agent version: the vault_ids new
|
|
90697
|
+
* 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.
|
|
89309
90698
|
*/
|
|
89310
90699
|
vault_ids?: Array<string>;
|
|
89311
90700
|
/**
|
|
@@ -99165,7 +100554,7 @@ export type AutomationRunsListData = {
|
|
|
99165
100554
|
*/
|
|
99166
100555
|
channel?: Array<'console' | 'api' | 'internal' | 'run' | 'trigger'>;
|
|
99167
100556
|
/**
|
|
99168
|
-
* Root initiator type: user, api_key, agent or
|
|
100557
|
+
* 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.
|
|
99169
100558
|
*/
|
|
99170
100559
|
initiator_type?: Array<'user' | 'api_key' | 'agent' | 'trigger'>;
|
|
99171
100560
|
/**
|
|
@@ -113713,7 +115102,7 @@ export type DevopsUnitsPushErrors = {
|
|
|
113713
115102
|
*/
|
|
113714
115103
|
404: DevopsDevOpsError;
|
|
113715
115104
|
/**
|
|
113716
|
-
* 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
|
|
115105
|
+
* 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.
|
|
113717
115106
|
*/
|
|
113718
115107
|
409: DevopsDevOpsError;
|
|
113719
115108
|
/**
|
|
@@ -119469,6 +120858,511 @@ export type MediaDesignVoiceResponses = {
|
|
|
119469
120858
|
202: MediaJob;
|
|
119470
120859
|
};
|
|
119471
120860
|
export type MediaDesignVoiceResponse = MediaDesignVoiceResponses[keyof MediaDesignVoiceResponses];
|
|
120861
|
+
export type MediaListWorksData = {
|
|
120862
|
+
body?: never;
|
|
120863
|
+
path: {
|
|
120864
|
+
/**
|
|
120865
|
+
* Library ID returned by creation.
|
|
120866
|
+
*/
|
|
120867
|
+
library_id: string;
|
|
120868
|
+
};
|
|
120869
|
+
query?: {
|
|
120870
|
+
/**
|
|
120871
|
+
* Only works of this kind: gallery, article, product_listing or blocks.
|
|
120872
|
+
*/
|
|
120873
|
+
kind?: 'gallery' | 'article' | 'product_listing' | 'blocks';
|
|
120874
|
+
/**
|
|
120875
|
+
* Only works of this series.
|
|
120876
|
+
*/
|
|
120877
|
+
series?: string;
|
|
120878
|
+
/**
|
|
120879
|
+
* Only works whose title contains this text, at most 100 characters.
|
|
120880
|
+
*/
|
|
120881
|
+
q?: string;
|
|
120882
|
+
/**
|
|
120883
|
+
* Maximum entries in this page, from 1 through 100; defaults to 100.
|
|
120884
|
+
*/
|
|
120885
|
+
limit?: number;
|
|
120886
|
+
/**
|
|
120887
|
+
* Cursor from the previous next_cursor.
|
|
120888
|
+
*/
|
|
120889
|
+
cursor?: string;
|
|
120890
|
+
};
|
|
120891
|
+
url: '/media/v1/libraries/{library_id}/works';
|
|
120892
|
+
};
|
|
120893
|
+
export type MediaListWorksErrors = {
|
|
120894
|
+
/**
|
|
120895
|
+
* A selector, cursor, limit or other parameter is invalid; correct the reported field before retrying.
|
|
120896
|
+
*/
|
|
120897
|
+
400: MediaMediaError;
|
|
120898
|
+
/**
|
|
120899
|
+
* Request failed; see the error code reference.
|
|
120900
|
+
*/
|
|
120901
|
+
402: MediaMediaError;
|
|
120902
|
+
/**
|
|
120903
|
+
* This credential has read-only access to the library; use a write-capable binding for mutations.
|
|
120904
|
+
*/
|
|
120905
|
+
403: MediaMediaError;
|
|
120906
|
+
/**
|
|
120907
|
+
* The library or asset is missing, deleted or belongs to another tenant; verify its identifier and owner.
|
|
120908
|
+
*/
|
|
120909
|
+
404: MediaMediaError;
|
|
120910
|
+
/**
|
|
120911
|
+
* Request failed; see the error code reference.
|
|
120912
|
+
*/
|
|
120913
|
+
409: MediaMediaError;
|
|
120914
|
+
/**
|
|
120915
|
+
* The file exceeds an input limit; provide a smaller source file.
|
|
120916
|
+
*/
|
|
120917
|
+
413: MediaMediaError;
|
|
120918
|
+
/**
|
|
120919
|
+
* This media format is unsupported; provide a supported format.
|
|
120920
|
+
*/
|
|
120921
|
+
415: MediaMediaError;
|
|
120922
|
+
/**
|
|
120923
|
+
* Request failed; see the error code reference.
|
|
120924
|
+
*/
|
|
120925
|
+
422: MediaMediaError;
|
|
120926
|
+
/**
|
|
120927
|
+
* A rate limit was reached; wait before retrying.
|
|
120928
|
+
*/
|
|
120929
|
+
429: MediaMediaError;
|
|
120930
|
+
/**
|
|
120931
|
+
* The requested operation is unsupported; choose a supported method.
|
|
120932
|
+
*/
|
|
120933
|
+
501: MediaMediaError;
|
|
120934
|
+
/**
|
|
120935
|
+
* Request failed; see the error code reference.
|
|
120936
|
+
*/
|
|
120937
|
+
502: MediaMediaError;
|
|
120938
|
+
/**
|
|
120939
|
+
* Historical projections are still being initialized, or library storage is temporarily unavailable; retry shortly and check failureSummary counts_complete.
|
|
120940
|
+
*/
|
|
120941
|
+
503: MediaMediaError;
|
|
120942
|
+
};
|
|
120943
|
+
export type MediaListWorksError = MediaListWorksErrors[keyof MediaListWorksErrors];
|
|
120944
|
+
export type MediaListWorksResponses = {
|
|
120945
|
+
/**
|
|
120946
|
+
* Successful response.
|
|
120947
|
+
*/
|
|
120948
|
+
200: MediaWorkPage;
|
|
120949
|
+
};
|
|
120950
|
+
export type MediaListWorksResponse = MediaListWorksResponses[keyof MediaListWorksResponses];
|
|
120951
|
+
export type MediaCreateWorkData = {
|
|
120952
|
+
/**
|
|
120953
|
+
* A new work: its kind and its whole body, with an optional series and custom fields.
|
|
120954
|
+
*/
|
|
120955
|
+
body: {
|
|
120956
|
+
/**
|
|
120957
|
+
* The work’s kind; it decides which body fields are accepted.
|
|
120958
|
+
*/
|
|
120959
|
+
kind: MediaWorkKind;
|
|
120960
|
+
/**
|
|
120961
|
+
* 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.
|
|
120962
|
+
*/
|
|
120963
|
+
body: MediaWorkBody;
|
|
120964
|
+
/**
|
|
120965
|
+
* Groups the platform versions of one story: 1 to 64 characters of a-z, 0-9, _ and -.
|
|
120966
|
+
*/
|
|
120967
|
+
series?: string;
|
|
120968
|
+
/**
|
|
120969
|
+
* Caller data such as source, published links and numbers; at most 50 keys and 16 KB as JSON.
|
|
120970
|
+
*/
|
|
120971
|
+
custom?: MediaWorkCustom;
|
|
120972
|
+
};
|
|
120973
|
+
path: {
|
|
120974
|
+
/**
|
|
120975
|
+
* Library ID returned by creation.
|
|
120976
|
+
*/
|
|
120977
|
+
library_id: string;
|
|
120978
|
+
};
|
|
120979
|
+
query?: never;
|
|
120980
|
+
url: '/media/v1/libraries/{library_id}/works';
|
|
120981
|
+
};
|
|
120982
|
+
export type MediaCreateWorkErrors = {
|
|
120983
|
+
/**
|
|
120984
|
+
* A selector, cursor, limit or other parameter is invalid; correct the reported field before retrying.
|
|
120985
|
+
*/
|
|
120986
|
+
400: MediaMediaError;
|
|
120987
|
+
/**
|
|
120988
|
+
* Request failed; see the error code reference.
|
|
120989
|
+
*/
|
|
120990
|
+
402: MediaMediaError;
|
|
120991
|
+
/**
|
|
120992
|
+
* This credential has read-only access to the library; use a write-capable binding for mutations.
|
|
120993
|
+
*/
|
|
120994
|
+
403: MediaMediaError;
|
|
120995
|
+
/**
|
|
120996
|
+
* The library or asset is missing, deleted or belongs to another tenant; verify its identifier and owner.
|
|
120997
|
+
*/
|
|
120998
|
+
404: MediaMediaError;
|
|
120999
|
+
/**
|
|
121000
|
+
* Request failed; see the error code reference.
|
|
121001
|
+
*/
|
|
121002
|
+
409: MediaMediaError;
|
|
121003
|
+
/**
|
|
121004
|
+
* The file exceeds an input limit; provide a smaller source file.
|
|
121005
|
+
*/
|
|
121006
|
+
413: MediaMediaError;
|
|
121007
|
+
/**
|
|
121008
|
+
* This media format is unsupported; provide a supported format.
|
|
121009
|
+
*/
|
|
121010
|
+
415: MediaMediaError;
|
|
121011
|
+
/**
|
|
121012
|
+
* Request failed; see the error code reference.
|
|
121013
|
+
*/
|
|
121014
|
+
422: MediaMediaError;
|
|
121015
|
+
/**
|
|
121016
|
+
* A rate limit was reached; wait before retrying.
|
|
121017
|
+
*/
|
|
121018
|
+
429: MediaMediaError;
|
|
121019
|
+
/**
|
|
121020
|
+
* The requested operation is unsupported; choose a supported method.
|
|
121021
|
+
*/
|
|
121022
|
+
501: MediaMediaError;
|
|
121023
|
+
/**
|
|
121024
|
+
* Request failed; see the error code reference.
|
|
121025
|
+
*/
|
|
121026
|
+
502: MediaMediaError;
|
|
121027
|
+
/**
|
|
121028
|
+
* Historical projections are still being initialized, or library storage is temporarily unavailable; retry shortly and check failureSummary counts_complete.
|
|
121029
|
+
*/
|
|
121030
|
+
503: MediaMediaError;
|
|
121031
|
+
};
|
|
121032
|
+
export type MediaCreateWorkError = MediaCreateWorkErrors[keyof MediaCreateWorkErrors];
|
|
121033
|
+
export type MediaCreateWorkResponses = {
|
|
121034
|
+
/**
|
|
121035
|
+
* Successful response.
|
|
121036
|
+
*/
|
|
121037
|
+
200: MediaWork;
|
|
121038
|
+
};
|
|
121039
|
+
export type MediaCreateWorkResponse = MediaCreateWorkResponses[keyof MediaCreateWorkResponses];
|
|
121040
|
+
export type MediaDeleteWorkData = {
|
|
121041
|
+
body?: never;
|
|
121042
|
+
path: {
|
|
121043
|
+
/**
|
|
121044
|
+
* Library ID returned by creation.
|
|
121045
|
+
*/
|
|
121046
|
+
library_id: string;
|
|
121047
|
+
/**
|
|
121048
|
+
* Work id (wrk_…) returned by creation or listing.
|
|
121049
|
+
*/
|
|
121050
|
+
work_id: string;
|
|
121051
|
+
};
|
|
121052
|
+
query?: never;
|
|
121053
|
+
url: '/media/v1/libraries/{library_id}/works/{work_id}';
|
|
121054
|
+
};
|
|
121055
|
+
export type MediaDeleteWorkErrors = {
|
|
121056
|
+
/**
|
|
121057
|
+
* A selector, cursor, limit or other parameter is invalid; correct the reported field before retrying.
|
|
121058
|
+
*/
|
|
121059
|
+
400: MediaMediaError;
|
|
121060
|
+
/**
|
|
121061
|
+
* Request failed; see the error code reference.
|
|
121062
|
+
*/
|
|
121063
|
+
402: MediaMediaError;
|
|
121064
|
+
/**
|
|
121065
|
+
* This credential has read-only access to the library; use a write-capable binding for mutations.
|
|
121066
|
+
*/
|
|
121067
|
+
403: MediaMediaError;
|
|
121068
|
+
/**
|
|
121069
|
+
* The library or asset is missing, deleted or belongs to another tenant; verify its identifier and owner.
|
|
121070
|
+
*/
|
|
121071
|
+
404: MediaMediaError;
|
|
121072
|
+
/**
|
|
121073
|
+
* Request failed; see the error code reference.
|
|
121074
|
+
*/
|
|
121075
|
+
409: MediaMediaError;
|
|
121076
|
+
/**
|
|
121077
|
+
* The file exceeds an input limit; provide a smaller source file.
|
|
121078
|
+
*/
|
|
121079
|
+
413: MediaMediaError;
|
|
121080
|
+
/**
|
|
121081
|
+
* This media format is unsupported; provide a supported format.
|
|
121082
|
+
*/
|
|
121083
|
+
415: MediaMediaError;
|
|
121084
|
+
/**
|
|
121085
|
+
* Request failed; see the error code reference.
|
|
121086
|
+
*/
|
|
121087
|
+
422: MediaMediaError;
|
|
121088
|
+
/**
|
|
121089
|
+
* A rate limit was reached; wait before retrying.
|
|
121090
|
+
*/
|
|
121091
|
+
429: MediaMediaError;
|
|
121092
|
+
/**
|
|
121093
|
+
* The requested operation is unsupported; choose a supported method.
|
|
121094
|
+
*/
|
|
121095
|
+
501: MediaMediaError;
|
|
121096
|
+
/**
|
|
121097
|
+
* Request failed; see the error code reference.
|
|
121098
|
+
*/
|
|
121099
|
+
502: MediaMediaError;
|
|
121100
|
+
/**
|
|
121101
|
+
* Historical projections are still being initialized, or library storage is temporarily unavailable; retry shortly and check failureSummary counts_complete.
|
|
121102
|
+
*/
|
|
121103
|
+
503: MediaMediaError;
|
|
121104
|
+
};
|
|
121105
|
+
export type MediaDeleteWorkError = MediaDeleteWorkErrors[keyof MediaDeleteWorkErrors];
|
|
121106
|
+
export type MediaDeleteWorkResponses = {
|
|
121107
|
+
/**
|
|
121108
|
+
* Successful response.
|
|
121109
|
+
*/
|
|
121110
|
+
200: MediaDeletedWork;
|
|
121111
|
+
};
|
|
121112
|
+
export type MediaDeleteWorkResponse = MediaDeleteWorkResponses[keyof MediaDeleteWorkResponses];
|
|
121113
|
+
export type MediaGetWorkData = {
|
|
121114
|
+
body?: never;
|
|
121115
|
+
path: {
|
|
121116
|
+
/**
|
|
121117
|
+
* Library ID returned by creation.
|
|
121118
|
+
*/
|
|
121119
|
+
library_id: string;
|
|
121120
|
+
/**
|
|
121121
|
+
* Work id (wrk_…) returned by creation or listing.
|
|
121122
|
+
*/
|
|
121123
|
+
work_id: string;
|
|
121124
|
+
};
|
|
121125
|
+
query?: {
|
|
121126
|
+
/**
|
|
121127
|
+
* assets returns every referenced asset with its URLs and size.
|
|
121128
|
+
*/
|
|
121129
|
+
expand?: string;
|
|
121130
|
+
};
|
|
121131
|
+
url: '/media/v1/libraries/{library_id}/works/{work_id}';
|
|
121132
|
+
};
|
|
121133
|
+
export type MediaGetWorkErrors = {
|
|
121134
|
+
/**
|
|
121135
|
+
* A selector, cursor, limit or other parameter is invalid; correct the reported field before retrying.
|
|
121136
|
+
*/
|
|
121137
|
+
400: MediaMediaError;
|
|
121138
|
+
/**
|
|
121139
|
+
* Request failed; see the error code reference.
|
|
121140
|
+
*/
|
|
121141
|
+
402: MediaMediaError;
|
|
121142
|
+
/**
|
|
121143
|
+
* This credential has read-only access to the library; use a write-capable binding for mutations.
|
|
121144
|
+
*/
|
|
121145
|
+
403: MediaMediaError;
|
|
121146
|
+
/**
|
|
121147
|
+
* The library or asset is missing, deleted or belongs to another tenant; verify its identifier and owner.
|
|
121148
|
+
*/
|
|
121149
|
+
404: MediaMediaError;
|
|
121150
|
+
/**
|
|
121151
|
+
* Request failed; see the error code reference.
|
|
121152
|
+
*/
|
|
121153
|
+
409: MediaMediaError;
|
|
121154
|
+
/**
|
|
121155
|
+
* The file exceeds an input limit; provide a smaller source file.
|
|
121156
|
+
*/
|
|
121157
|
+
413: MediaMediaError;
|
|
121158
|
+
/**
|
|
121159
|
+
* This media format is unsupported; provide a supported format.
|
|
121160
|
+
*/
|
|
121161
|
+
415: MediaMediaError;
|
|
121162
|
+
/**
|
|
121163
|
+
* Request failed; see the error code reference.
|
|
121164
|
+
*/
|
|
121165
|
+
422: MediaMediaError;
|
|
121166
|
+
/**
|
|
121167
|
+
* A rate limit was reached; wait before retrying.
|
|
121168
|
+
*/
|
|
121169
|
+
429: MediaMediaError;
|
|
121170
|
+
/**
|
|
121171
|
+
* The requested operation is unsupported; choose a supported method.
|
|
121172
|
+
*/
|
|
121173
|
+
501: MediaMediaError;
|
|
121174
|
+
/**
|
|
121175
|
+
* Request failed; see the error code reference.
|
|
121176
|
+
*/
|
|
121177
|
+
502: MediaMediaError;
|
|
121178
|
+
/**
|
|
121179
|
+
* Historical projections are still being initialized, or library storage is temporarily unavailable; retry shortly and check failureSummary counts_complete.
|
|
121180
|
+
*/
|
|
121181
|
+
503: MediaMediaError;
|
|
121182
|
+
};
|
|
121183
|
+
export type MediaGetWorkError = MediaGetWorkErrors[keyof MediaGetWorkErrors];
|
|
121184
|
+
export type MediaGetWorkResponses = {
|
|
121185
|
+
/**
|
|
121186
|
+
* Successful response.
|
|
121187
|
+
*/
|
|
121188
|
+
200: MediaWork;
|
|
121189
|
+
};
|
|
121190
|
+
export type MediaGetWorkResponse = MediaGetWorkResponses[keyof MediaGetWorkResponses];
|
|
121191
|
+
export type MediaUpdateWorkData = {
|
|
121192
|
+
/**
|
|
121193
|
+
* Changes to a work. Send only what changes.
|
|
121194
|
+
*/
|
|
121195
|
+
body: {
|
|
121196
|
+
/**
|
|
121197
|
+
* A whole new body for the same kind; it replaces the old one and is checked like a new one.
|
|
121198
|
+
*/
|
|
121199
|
+
body?: MediaWorkBody;
|
|
121200
|
+
/**
|
|
121201
|
+
* A new series, or null to clear it.
|
|
121202
|
+
*/
|
|
121203
|
+
series?: string | null;
|
|
121204
|
+
/**
|
|
121205
|
+
* A JSON Merge Patch (RFC 7396): keys you send are set, keys set to null are removed, keys you leave out are kept.
|
|
121206
|
+
*/
|
|
121207
|
+
custom?: MediaWorkCustom;
|
|
121208
|
+
/**
|
|
121209
|
+
* Apply the change only if the work is still at this revision; otherwise the answer is 409 REVISION_CONFLICT with the current revision.
|
|
121210
|
+
*/
|
|
121211
|
+
if_revision?: number;
|
|
121212
|
+
};
|
|
121213
|
+
path: {
|
|
121214
|
+
/**
|
|
121215
|
+
* Library ID returned by creation.
|
|
121216
|
+
*/
|
|
121217
|
+
library_id: string;
|
|
121218
|
+
/**
|
|
121219
|
+
* Work id (wrk_…) returned by creation or listing.
|
|
121220
|
+
*/
|
|
121221
|
+
work_id: string;
|
|
121222
|
+
};
|
|
121223
|
+
query?: never;
|
|
121224
|
+
url: '/media/v1/libraries/{library_id}/works/{work_id}';
|
|
121225
|
+
};
|
|
121226
|
+
export type MediaUpdateWorkErrors = {
|
|
121227
|
+
/**
|
|
121228
|
+
* A selector, cursor, limit or other parameter is invalid; correct the reported field before retrying.
|
|
121229
|
+
*/
|
|
121230
|
+
400: MediaMediaError;
|
|
121231
|
+
/**
|
|
121232
|
+
* Request failed; see the error code reference.
|
|
121233
|
+
*/
|
|
121234
|
+
402: MediaMediaError;
|
|
121235
|
+
/**
|
|
121236
|
+
* This credential has read-only access to the library; use a write-capable binding for mutations.
|
|
121237
|
+
*/
|
|
121238
|
+
403: MediaMediaError;
|
|
121239
|
+
/**
|
|
121240
|
+
* The library or asset is missing, deleted or belongs to another tenant; verify its identifier and owner.
|
|
121241
|
+
*/
|
|
121242
|
+
404: MediaMediaError;
|
|
121243
|
+
/**
|
|
121244
|
+
* Request failed; see the error code reference.
|
|
121245
|
+
*/
|
|
121246
|
+
409: MediaMediaError;
|
|
121247
|
+
/**
|
|
121248
|
+
* The file exceeds an input limit; provide a smaller source file.
|
|
121249
|
+
*/
|
|
121250
|
+
413: MediaMediaError;
|
|
121251
|
+
/**
|
|
121252
|
+
* This media format is unsupported; provide a supported format.
|
|
121253
|
+
*/
|
|
121254
|
+
415: MediaMediaError;
|
|
121255
|
+
/**
|
|
121256
|
+
* Request failed; see the error code reference.
|
|
121257
|
+
*/
|
|
121258
|
+
422: MediaMediaError;
|
|
121259
|
+
/**
|
|
121260
|
+
* A rate limit was reached; wait before retrying.
|
|
121261
|
+
*/
|
|
121262
|
+
429: MediaMediaError;
|
|
121263
|
+
/**
|
|
121264
|
+
* The requested operation is unsupported; choose a supported method.
|
|
121265
|
+
*/
|
|
121266
|
+
501: MediaMediaError;
|
|
121267
|
+
/**
|
|
121268
|
+
* Request failed; see the error code reference.
|
|
121269
|
+
*/
|
|
121270
|
+
502: MediaMediaError;
|
|
121271
|
+
/**
|
|
121272
|
+
* Historical projections are still being initialized, or library storage is temporarily unavailable; retry shortly and check failureSummary counts_complete.
|
|
121273
|
+
*/
|
|
121274
|
+
503: MediaMediaError;
|
|
121275
|
+
};
|
|
121276
|
+
export type MediaUpdateWorkError = MediaUpdateWorkErrors[keyof MediaUpdateWorkErrors];
|
|
121277
|
+
export type MediaUpdateWorkResponses = {
|
|
121278
|
+
/**
|
|
121279
|
+
* Successful response.
|
|
121280
|
+
*/
|
|
121281
|
+
200: MediaWork;
|
|
121282
|
+
};
|
|
121283
|
+
export type MediaUpdateWorkResponse = MediaUpdateWorkResponses[keyof MediaUpdateWorkResponses];
|
|
121284
|
+
export type MediaListAssetWorksData = {
|
|
121285
|
+
body?: never;
|
|
121286
|
+
path: {
|
|
121287
|
+
/**
|
|
121288
|
+
* Library ID returned by creation.
|
|
121289
|
+
*/
|
|
121290
|
+
library_id: string;
|
|
121291
|
+
/**
|
|
121292
|
+
* 32-character asset ID.
|
|
121293
|
+
*/
|
|
121294
|
+
asset_id: string;
|
|
121295
|
+
};
|
|
121296
|
+
query?: {
|
|
121297
|
+
/**
|
|
121298
|
+
* Maximum entries in this page, from 1 through 100; defaults to 100.
|
|
121299
|
+
*/
|
|
121300
|
+
limit?: number;
|
|
121301
|
+
/**
|
|
121302
|
+
* Cursor from the previous next_cursor.
|
|
121303
|
+
*/
|
|
121304
|
+
cursor?: string;
|
|
121305
|
+
};
|
|
121306
|
+
url: '/media/v1/libraries/{library_id}/assets/{asset_id}/works';
|
|
121307
|
+
};
|
|
121308
|
+
export type MediaListAssetWorksErrors = {
|
|
121309
|
+
/**
|
|
121310
|
+
* A selector, cursor, limit or other parameter is invalid; correct the reported field before retrying.
|
|
121311
|
+
*/
|
|
121312
|
+
400: MediaMediaError;
|
|
121313
|
+
/**
|
|
121314
|
+
* Request failed; see the error code reference.
|
|
121315
|
+
*/
|
|
121316
|
+
402: MediaMediaError;
|
|
121317
|
+
/**
|
|
121318
|
+
* This credential has read-only access to the library; use a write-capable binding for mutations.
|
|
121319
|
+
*/
|
|
121320
|
+
403: MediaMediaError;
|
|
121321
|
+
/**
|
|
121322
|
+
* The library or asset is missing, deleted or belongs to another tenant; verify its identifier and owner.
|
|
121323
|
+
*/
|
|
121324
|
+
404: MediaMediaError;
|
|
121325
|
+
/**
|
|
121326
|
+
* Request failed; see the error code reference.
|
|
121327
|
+
*/
|
|
121328
|
+
409: MediaMediaError;
|
|
121329
|
+
/**
|
|
121330
|
+
* The file exceeds an input limit; provide a smaller source file.
|
|
121331
|
+
*/
|
|
121332
|
+
413: MediaMediaError;
|
|
121333
|
+
/**
|
|
121334
|
+
* This media format is unsupported; provide a supported format.
|
|
121335
|
+
*/
|
|
121336
|
+
415: MediaMediaError;
|
|
121337
|
+
/**
|
|
121338
|
+
* Request failed; see the error code reference.
|
|
121339
|
+
*/
|
|
121340
|
+
422: MediaMediaError;
|
|
121341
|
+
/**
|
|
121342
|
+
* A rate limit was reached; wait before retrying.
|
|
121343
|
+
*/
|
|
121344
|
+
429: MediaMediaError;
|
|
121345
|
+
/**
|
|
121346
|
+
* The requested operation is unsupported; choose a supported method.
|
|
121347
|
+
*/
|
|
121348
|
+
501: MediaMediaError;
|
|
121349
|
+
/**
|
|
121350
|
+
* Request failed; see the error code reference.
|
|
121351
|
+
*/
|
|
121352
|
+
502: MediaMediaError;
|
|
121353
|
+
/**
|
|
121354
|
+
* Historical projections are still being initialized, or library storage is temporarily unavailable; retry shortly and check failureSummary counts_complete.
|
|
121355
|
+
*/
|
|
121356
|
+
503: MediaMediaError;
|
|
121357
|
+
};
|
|
121358
|
+
export type MediaListAssetWorksError = MediaListAssetWorksErrors[keyof MediaListAssetWorksErrors];
|
|
121359
|
+
export type MediaListAssetWorksResponses = {
|
|
121360
|
+
/**
|
|
121361
|
+
* Successful response.
|
|
121362
|
+
*/
|
|
121363
|
+
200: MediaWorkPage;
|
|
121364
|
+
};
|
|
121365
|
+
export type MediaListAssetWorksResponse = MediaListAssetWorksResponses[keyof MediaListAssetWorksResponses];
|
|
119472
121366
|
export type OntologyListTypesData = {
|
|
119473
121367
|
body?: never;
|
|
119474
121368
|
path?: never;
|
|
@@ -121428,7 +123322,7 @@ export type GetSandboxV1SandboxesResponses = {
|
|
|
121428
123322
|
};
|
|
121429
123323
|
export type GetSandboxV1SandboxesResponse = GetSandboxV1SandboxesResponses[keyof GetSandboxV1SandboxesResponses];
|
|
121430
123324
|
export type PostSandboxV1SandboxesData = {
|
|
121431
|
-
body:
|
|
123325
|
+
body: SandboxNewSandboxV2Writable;
|
|
121432
123326
|
path?: never;
|
|
121433
123327
|
query?: never;
|
|
121434
123328
|
url: '/sandbox/v1/sandboxes';
|