@deepraxis/sdk 0.2.0-dev.b5aa484 → 0.2.0-dev.b5ef50d

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -3696,11 +3696,48 @@ export type BrowserSessionCreateParams = {
3696
3696
  ignoreCertificateErrors?: boolean;
3697
3697
  };
3698
3698
  /**
3699
- * 省略、false 或 [{type: 'none'}] 表示不用代理。一条 {type: 'external', server, username?, password? | password_secret?} 让会话在我们的 Chrome 容器里经这个 HTTP 代理出网(需要组织已开通容器后端,否则返回 501 PROVIDER_UNSUPPORTED);不能与 source.type 为 cloud 或 byob 同用,返回 400 INVALID_PARAMS。其它代理类型返回 501。
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 | Array<unknown>;
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
- * 选择浏览器后端。{type: 'cloud'}:Browser Run,启动最快、不能用代理、自动化特征可被网站发现。{type: 'container'}:我们自己的 Chrome 容器,可带代理也可不带;组织未开通容器后端时返回 501 PROVIDER_UNSUPPORTED。{type: 'byob', browser: 'byb_…'}:用户自己配对的浏览器,不能与 proxies 或登录态同用。简写 {byob: 'byb_…'} 等同最后一种。省略时按旧规则:带 proxies 进容器,否则 Browser Run。cloud 加代理、未知 type、格式错误都返回 400 INVALID_PARAMS。
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
- * 会话经代理转发的流量字节数(上行与下行之和);仅容器后端的会话有值,其余后端固定为 0。
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
- * 会话经代理转发的流量字节数(上行与下行之和);仅容器后端的会话有值,其余后端固定为 0。
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
- * 会话经代理转发的流量字节数(上行与下行之和);仅容器后端的会话有值,其余后端固定为 0。
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
- * 会话实时画面的完整跳转地址,携带观看凭证;与 debuggerUrl 相同。
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
- * 此标签页实时画面的完整跳转地址,与该页 debuggerUrl 相同。
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
  /**
@@ -13742,7 +13839,7 @@ export type AutomationHumanTask = {
13742
13839
  */
13743
13840
  initiator: {
13744
13841
  /**
13745
- * Initiator type: user, api_key, agent, run (a parent run) or trigger.
13842
+ * Initiator type: user, api_key, agent, run (a parent run), trigger or application.
13746
13843
  */
13747
13844
  type: 'user' | 'api_key' | 'agent' | 'run' | 'trigger';
13748
13845
  /**
@@ -20039,6 +20136,10 @@ export type DevopsPullRequest = {
20039
20136
  * The mergeability word, an open set. A GitHub project keeps GitHub's own word verbatim (clean, dirty, blocked, behind, unstable and so on), unknown when GitHub has not said. A project whose code is on our own Git gets DevOps's reading of the head against the base: clean when nothing stands in the way, behind when the head adds nothing the base lacks, dirty when both sides changed the same path since they diverged, unknown when the comparison was capped.
20040
20137
  */
20041
20138
  mergeableState: string;
20139
+ /**
20140
+ * Who this pull request's letters go to — the gate verdict, the merge, the deploy to each integration environment and an integration failure — as the description's praxis block names it with notify: agent:<id> or notify: human:<id>. Optional and never part of the gate: absent when the block names nobody or names something that is not an address. A pull request of a DevOps change that names nobody writes to the change's owner.
20141
+ */
20142
+ notify?: string;
20042
20143
  /**
20043
20144
  * The exposure the description's praxis block declares, or null when the description declares none — which is itself a failed gate check. The kind decides which other checks apply: a flag adds its key and observe window, unwired and expand-contract add a reason, expand-contract also a phase, and direct is judged by a person.
20044
20145
  */
@@ -21340,7 +21441,7 @@ export type MediaLibrary = {
21340
21441
  };
21341
21442
  export type MediaMediaError = {
21342
21443
  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';
21444
+ code: 'LIBRARY_NOT_FOUND' | 'ASSET_NOT_FOUND' | 'WORK_NOT_FOUND' | 'REVISION_CONFLICT' | 'JOB_NOT_FOUND' | 'UNDERSTANDING_NOT_FOUND' | 'ASSET_VERSION_CHANGED' | 'LIBRARY_INVALID_STATE' | 'INVALID_PARAMS' | 'INVALID_EXPRESSION' | 'UNSUPPORTED' | 'NOT_IMPLEMENTED' | 'FILE_TOO_LARGE' | 'FILE_EMPTY' | 'FILE_NOT_READY' | 'UNSUPPORTED_MEDIA' | 'FETCH_FAILED' | 'LIMIT_EXCEEDED' | 'CHUNK_INVALID' | 'RATE_LIMITED' | 'CAPACITY' | 'UPSTREAM_FAILED' | 'CONTENT_REJECTED' | 'GENERATION_FAILED' | 'BINDING_READ_ONLY' | 'OPERATION_NOT_SUPPORTED' | 'MODEL_PENDING' | 'REFERENCE_TYPE_MISMATCH' | 'CONSENT_REQUIRED' | 'LIBRARY_IS_DEFAULT' | 'JOB_INVALID_STATE' | 'VOICE_TRAINING' | 'INSUFFICIENT_BALANCE';
21344
21445
  message: string;
21345
21446
  details: string | null;
21346
21447
  };
@@ -22869,6 +22970,107 @@ export type MediaVoiceDesignCreateInput = {
22869
22970
  */
22870
22971
  description?: string;
22871
22972
  };
22973
+ /**
22974
+ * A work: an object of the library above its assets that orders references to them and adds a title and text. It copies no file and changes no asset.
22975
+ */
22976
+ export type MediaWork = {
22977
+ /**
22978
+ * Always work.
22979
+ */
22980
+ object: 'work';
22981
+ /**
22982
+ * Work id (wrk_…).
22983
+ */
22984
+ id: string;
22985
+ /**
22986
+ * Library the work belongs to.
22987
+ */
22988
+ library_id: MediaLibraryId;
22989
+ /**
22990
+ * The work’s kind.
22991
+ */
22992
+ kind: MediaWorkKind;
22993
+ /**
22994
+ * The title, copied from body.title.
22995
+ */
22996
+ title: string;
22997
+ /**
22998
+ * Groups the platform versions of one story; null when unset.
22999
+ */
23000
+ series: string | null;
23001
+ /**
23002
+ * The kind’s body as stored.
23003
+ */
23004
+ body: MediaWorkBody;
23005
+ /**
23006
+ * Caller data such as source, published links and numbers; changed with a JSON Merge Patch.
23007
+ */
23008
+ custom: MediaWorkCustom;
23009
+ /**
23010
+ * Asset ids the body names that have been deleted since; the body keeps them in place and the Console draws a placeholder there.
23011
+ */
23012
+ missing: Array<string>;
23013
+ /**
23014
+ * Bumped by every change; send it back as if_revision to update only an unchanged work.
23015
+ */
23016
+ revision: number;
23017
+ /**
23018
+ * Who created the work: human:<user id>, agent:<agent id> or system.
23019
+ */
23020
+ created_by: string;
23021
+ /**
23022
+ * When the work was created.
23023
+ */
23024
+ created_at: MediaIsoTimestamp;
23025
+ /**
23026
+ * When the work last changed.
23027
+ */
23028
+ updated_at: MediaIsoTimestamp;
23029
+ /**
23030
+ * Only with expand=assets: every live referenced asset by id, with its URLs and size.
23031
+ */
23032
+ assets?: {
23033
+ [key: string]: MediaWorkAsset;
23034
+ };
23035
+ };
23036
+ /**
23037
+ * Kind of work: gallery (图文), article (长文) or product_listing (商品图组). short_video is reserved.
23038
+ */
23039
+ export type MediaWorkKind = 'gallery' | 'article' | 'product_listing' | 'blocks';
23040
+ export type MediaWorkBody = MediaGalleryBody | MediaArticleBody | MediaProductListingBody | MediaBlocksBody;
23041
+ export type MediaWorkCustom = {
23042
+ [key: string]: unknown;
23043
+ };
23044
+ /**
23045
+ * A page of work summaries.
23046
+ */
23047
+ export type MediaWorkPage = {
23048
+ /**
23049
+ * Works in this page, most recently changed first.
23050
+ */
23051
+ data: Array<MediaWorkSummary>;
23052
+ /**
23053
+ * Cursor for the next page, or null when there are no more works.
23054
+ */
23055
+ next_cursor: string | null;
23056
+ };
23057
+ /**
23058
+ * The answer to deleting a work.
23059
+ */
23060
+ export type MediaDeletedWork = {
23061
+ /**
23062
+ * Id of the deleted work.
23063
+ */
23064
+ id: string;
23065
+ /**
23066
+ * Always work.
23067
+ */
23068
+ object: 'work';
23069
+ /**
23070
+ * Always true: the work is deleted; every asset it named is unchanged.
23071
+ */
23072
+ deleted: true;
23073
+ };
22872
23074
  /**
22873
23075
  * One page of type registrations; types are few enough that this face returns them in a single page.
22874
23076
  */
@@ -35003,6 +35205,14 @@ export type SandboxSandboxNetworkConfig = {
35003
35205
  rules?: {
35004
35206
  [key: string]: Array<SandboxSandboxNetworkRule>;
35005
35207
  };
35208
+ /**
35209
+ * Own face, persistent sandboxes only (autoPause: true, or ephemeral: false): true gives the sandbox one fixed public egress IP for its whole life, held through pause and resume and released when the sandbox is deleted. Without it the egress IP is not stable: it changes when a spot machine is reclaimed, when a paused machine starts again, and when the machine is rebuilt. An ephemeral sandbox returns INVALID_PARAMS; the E2B face refuses the field; it is placed only on capacity that declares static IPs, and without such capacity the create does not start (it never falls back to a changing IP). Billed as the usage item sandbox:public_ip:hours from allocation to release, paused time included, plus outbound traffic as usual.
35210
+ */
35211
+ staticEgressIp?: boolean;
35212
+ /**
35213
+ * Own face, read-only: the fixed public egress IP of a sandbox created with staticEgressIp: true, present once the machine has bound it; add this address to the IP allowlist of the service you call (for example a WeCom trusted IP list). Absent on a sandbox that did not ask for a static IP, because its public address can change.
35214
+ */
35215
+ readonly egressIp?: string;
35006
35216
  };
35007
35217
  /**
35008
35218
  * Sandbox lifecycle policy returned by sandbox info.
@@ -36713,11 +36923,11 @@ export type AutomationActionHost = 'builtin' | 'isolate' | 'sandbox';
36713
36923
  */
36714
36924
  export type AutomationSubject = {
36715
36925
  /**
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.
36926
+ * Principal type. user is a signed-in user; api_key is a platform API key; agent is an agent; run is an action performed by a run itself (for example a parent run); trigger is a trigger; application is an application.
36717
36927
  */
36718
36928
  type: 'user' | 'api_key' | 'agent' | 'run' | 'trigger';
36719
36929
  /**
36720
- * Principal identifier whose meaning follows type: a user, API key, agent, run or trigger id. Treat it as an opaque string.
36930
+ * Principal identifier whose meaning follows type: a user, API key, agent, run, trigger or application id. Treat it as an opaque string.
36721
36931
  */
36722
36932
  id: string;
36723
36933
  };
@@ -40276,6 +40486,10 @@ export type DevopsUnitGit = {
40276
40486
  * The ref holding the unit's work in progress, or null when none was recorded.
40277
40487
  */
40278
40488
  wipRef: string | null;
40489
+ /**
40490
+ * The branch's head on the remote as of the last fetch: the value units push wants as expectedHead. Absent before the first observation or when the branch has no upstream. Call fetch first when someone else may have pushed.
40491
+ */
40492
+ remoteHead?: string;
40279
40493
  /**
40280
40494
  * RFC 3339 UTC time these facts were observed, or null before the first observation.
40281
40495
  */
@@ -41445,7 +41659,7 @@ export type MediaGenerationType = 'image' | 'video' | 'speech' | 'music' | 'soun
41445
41659
  * Edit operations: the change this step applied to its parent asset.
41446
41660
  */
41447
41661
  export type MediaGenerationOperation = 'generate' | 'clone' | 'tag' | 'untag' | 'set_context' | 'move' | 'delete' | 'reprocess' | 'variations' | 'upscale' | 'outpaint' | 'inpaint' | 'erase' | 'replace_object' | 'recolor' | 'remove_background' | 'replace_background' | 'to_video' | 'extend' | 'edit' | 'lip_sync' | 'frame' | 'to_gif' | 'voice_change' | 'resynthesize';
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';
41662
+ export type MediaMediaErrorCode = 'LIBRARY_NOT_FOUND' | 'ASSET_NOT_FOUND' | 'WORK_NOT_FOUND' | 'REVISION_CONFLICT' | 'JOB_NOT_FOUND' | 'UNDERSTANDING_NOT_FOUND' | 'ASSET_VERSION_CHANGED' | 'LIBRARY_INVALID_STATE' | 'INVALID_PARAMS' | 'INVALID_EXPRESSION' | 'UNSUPPORTED' | 'NOT_IMPLEMENTED' | 'FILE_TOO_LARGE' | 'FILE_EMPTY' | 'FILE_NOT_READY' | 'UNSUPPORTED_MEDIA' | 'FETCH_FAILED' | 'LIMIT_EXCEEDED' | 'CHUNK_INVALID' | 'RATE_LIMITED' | 'CAPACITY' | 'UPSTREAM_FAILED' | 'CONTENT_REJECTED' | 'GENERATION_FAILED' | 'BINDING_READ_ONLY' | 'OPERATION_NOT_SUPPORTED' | 'MODEL_PENDING' | 'REFERENCE_TYPE_MISMATCH' | 'CONSENT_REQUIRED' | 'LIBRARY_IS_DEFAULT' | 'JOB_INVALID_STATE' | 'VOICE_TRAINING' | 'INSUFFICIENT_BALANCE';
41449
41663
  /**
41450
41664
  * State of a requested generation output.
41451
41665
  */
@@ -41791,6 +42005,188 @@ export type MediaHlsRendition = {
41791
42005
  state: MediaHlsRenditionState;
41792
42006
  };
41793
42007
  export type MediaVoiceConsentId = string;
42008
+ /**
42009
+ * One referenced asset as expand=assets returns it: enough to draw it without another call.
42010
+ */
42011
+ export type MediaWorkAsset = {
42012
+ /**
42013
+ * The asset’s material type, such as image or video.
42014
+ */
42015
+ type: MediaMaterialType;
42016
+ /**
42017
+ * Short-lived delivery URL of the asset.
42018
+ */
42019
+ url: string;
42020
+ /**
42021
+ * Short-lived URL of a small picture: the poster of a video, otherwise the asset itself.
42022
+ */
42023
+ thumbnail_url: string;
42024
+ /**
42025
+ * Width in pixels when known.
42026
+ */
42027
+ width?: number;
42028
+ /**
42029
+ * Height in pixels when known.
42030
+ */
42031
+ height?: number;
42032
+ /**
42033
+ * The asset’s display name.
42034
+ */
42035
+ display_name: string;
42036
+ };
42037
+ /**
42038
+ * Body of a gallery (图文). Order is the order of items.
42039
+ */
42040
+ export type MediaGalleryBody = {
42041
+ /**
42042
+ * Title, 1 to 100 characters.
42043
+ */
42044
+ title: string;
42045
+ /**
42046
+ * Body text, at most 10000 characters.
42047
+ */
42048
+ text?: string;
42049
+ /**
42050
+ * Topics without the # sign, at most 30 of up to 40 characters.
42051
+ */
42052
+ topics?: Array<string>;
42053
+ /**
42054
+ * Optional cover: an image or sticker asset of this library; without it the first picture is the cover.
42055
+ */
42056
+ cover?: string;
42057
+ /**
42058
+ * Pictures, videos and text segments in order, 1 to 100 entries with at least one asset; each asset appears once.
42059
+ */
42060
+ items: Array<MediaGalleryItem>;
42061
+ /**
42062
+ * Display style; defaults to xiaohongshu in the Console.
42063
+ */
42064
+ style?: MediaWorkStyle;
42065
+ };
42066
+ /**
42067
+ * Body of an article (长文). Inline images live in the Markdown as ![alt](asset:<asset_id>) and sit where they are written.
42068
+ */
42069
+ export type MediaArticleBody = {
42070
+ /**
42071
+ * Title, 1 to 200 characters.
42072
+ */
42073
+ title: string;
42074
+ /**
42075
+ * Optional summary or digest, at most 500 characters.
42076
+ */
42077
+ summary?: string;
42078
+ /**
42079
+ * Optional author name, at most 60 characters.
42080
+ */
42081
+ author?: string;
42082
+ /**
42083
+ * The article in Markdown, 1 to 100000 characters; every asset:<asset_id> image must be an image or sticker of this library.
42084
+ */
42085
+ body: string;
42086
+ /**
42087
+ * Optional cover: an image or sticker asset of this library.
42088
+ */
42089
+ cover?: string;
42090
+ /**
42091
+ * Display style; defaults to wechat_mp in the Console.
42092
+ */
42093
+ style?: MediaWorkStyle;
42094
+ };
42095
+ /**
42096
+ * Body of a product listing (商品图组). Images and copy only: price, stock and other business data are managed outside the library and are refused.
42097
+ */
42098
+ export type MediaProductListingBody = {
42099
+ /**
42100
+ * Listing title, 1 to 200 characters.
42101
+ */
42102
+ title: string;
42103
+ /**
42104
+ * Selling points in order, at most 10 of up to 100 characters.
42105
+ */
42106
+ selling_points?: Array<string>;
42107
+ /**
42108
+ * Parameter rows in order, at most 50.
42109
+ */
42110
+ attributes?: Array<MediaListingAttribute>;
42111
+ /**
42112
+ * Main images in order, 1 to 20 image or sticker assets of this library.
42113
+ */
42114
+ main: Array<string>;
42115
+ /**
42116
+ * Detail images in order, at most 100 image or sticker assets of this library.
42117
+ */
42118
+ detail?: Array<string>;
42119
+ /**
42120
+ * SKUs in order, at most 200.
42121
+ */
42122
+ skus?: Array<MediaListingSku>;
42123
+ /**
42124
+ * Optional product element (material_type product) this listing shows.
42125
+ */
42126
+ product?: string;
42127
+ /**
42128
+ * Display style; defaults to generic in the Console.
42129
+ */
42130
+ style?: MediaWorkStyle;
42131
+ };
42132
+ /**
42133
+ * Body of a general work (通用作品) in Editor.js saved-data format. Business attributes go in the work’s custom, not in a block. The work’s title is the first header block’s text, else the first paragraph’s.
42134
+ */
42135
+ export type MediaBlocksBody = {
42136
+ /**
42137
+ * Optional Editor.js save time in milliseconds, kept as sent.
42138
+ */
42139
+ time?: number;
42140
+ /**
42141
+ * The blocks in order, 1 to 500.
42142
+ */
42143
+ blocks: Array<MediaEditorBlock>;
42144
+ /**
42145
+ * Optional Editor.js version string, kept as sent.
42146
+ */
42147
+ version?: string;
42148
+ };
42149
+ /**
42150
+ * One work in a list.
42151
+ */
42152
+ export type MediaWorkSummary = {
42153
+ /**
42154
+ * Always work.
42155
+ */
42156
+ object: 'work';
42157
+ /**
42158
+ * Work id (wrk_…).
42159
+ */
42160
+ id: string;
42161
+ /**
42162
+ * The work’s kind.
42163
+ */
42164
+ kind: MediaWorkKind;
42165
+ /**
42166
+ * The work’s title.
42167
+ */
42168
+ title: string;
42169
+ /**
42170
+ * The work’s series, or null.
42171
+ */
42172
+ series: string | null;
42173
+ /**
42174
+ * Short-lived URL of the cover picture, or null when it is missing.
42175
+ */
42176
+ cover_url: string | null;
42177
+ /**
42178
+ * How many distinct assets the body orders, cover and product element excluded.
42179
+ */
42180
+ item_count: number;
42181
+ /**
42182
+ * How many referenced assets have been deleted since.
42183
+ */
42184
+ missing_count: number;
42185
+ /**
42186
+ * When the work last changed.
42187
+ */
42188
+ updated_at: MediaIsoTimestamp;
42189
+ };
41794
42190
  /**
41795
42191
  * A kind of entity the graph accepts, for example a file or a customer.
41796
42192
  */
@@ -48139,7 +48535,7 @@ export type DevopsPlannedSkip = {
48139
48535
  /**
48140
48536
  * Why it is left out, which is what tells a deliberate skip apart from an oversight.
48141
48537
  */
48142
- reason: 'unchanged' | 'newer_checkpoint' | 'not_requested' | 'callee_excluded' | 'artifact_identical';
48538
+ reason: 'unchanged' | 'newer_checkpoint' | 'not_requested' | 'callee_excluded' | 'not_deployed_upstream' | 'artifact_identical';
48143
48539
  };
48144
48540
  /**
48145
48541
  * The migrations one target has pending, as the plan found them.
@@ -48775,7 +49171,7 @@ export type MediaSemanticMatch = {
48775
49171
  /**
48776
49172
  * Type of change recorded for a library, asset, processing task, search index or batch.
48777
49173
  */
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';
49174
+ export type MediaMediaEventType = 'library.status_provisioning' | 'library.status_active' | 'library.status_deleting' | 'library.status_deleted' | 'library.status_failed' | 'library.restored' | 'library.updated' | 'asset.created' | 'asset.updated' | 'asset.overwritten' | 'asset.renamed' | 'asset.deleted' | 'understanding.status_ready' | 'understanding.status_failed' | 'understanding.status_unsupported' | 'search.indexed' | 'batch.succeeded' | 'batch.failed' | 'library.understanding_drained' | 'batch.created' | 'hls.requested' | 'generation.created' | 'generation.succeeded' | 'generation.failed' | 'generation.cancelled' | 'work.created' | 'work.updated' | 'work.deleted';
48779
49175
  /**
48780
49176
  * One picture an element names, with the word the caller uses for that view.
48781
49177
  */
@@ -48871,6 +49267,75 @@ export type MediaGenerationCapabilityModel = {
48871
49267
  * Readiness of one rung or of the ladder it is part of.
48872
49268
  */
48873
49269
  export type MediaHlsRenditionState = 'processing' | 'ready' | 'failed';
49270
+ /**
49271
+ * One position of a gallery: a picture or video of this library ({asset_id, caption?}) or a text segment between pictures ({text}).
49272
+ */
49273
+ export type MediaGalleryItem = {
49274
+ /**
49275
+ * An image, sticker or video asset of this library; its position in items is its position in the gallery.
49276
+ */
49277
+ asset_id: string;
49278
+ /**
49279
+ * Optional caption for this picture, at most 1000 characters.
49280
+ */
49281
+ caption?: string;
49282
+ } | {
49283
+ /**
49284
+ * A text segment shown between pictures, at most 1000 characters.
49285
+ */
49286
+ text: string;
49287
+ };
49288
+ /**
49289
+ * Which platform look the Console draws the work in; a display hint, never a platform check.
49290
+ */
49291
+ export type MediaWorkStyle = 'xiaohongshu' | 'wechat_mp' | 'jike' | 'generic';
49292
+ /**
49293
+ * One parameter row of a listing.
49294
+ */
49295
+ export type MediaListingAttribute = {
49296
+ /**
49297
+ * Parameter name such as 容量, at most 40 characters.
49298
+ */
49299
+ name: string;
49300
+ /**
49301
+ * Parameter value such as 500ml, at most 200 characters.
49302
+ */
49303
+ value: string;
49304
+ };
49305
+ /**
49306
+ * One SKU of a listing.
49307
+ */
49308
+ export type MediaListingSku = {
49309
+ /**
49310
+ * The SKU’s value on each spec axis, such as {"颜色":"白"}; 1 to 5 axes; the keys are kept as written.
49311
+ */
49312
+ spec: {
49313
+ [key: string]: string;
49314
+ };
49315
+ /**
49316
+ * Optional picture of this SKU: an image or sticker asset of this library.
49317
+ */
49318
+ asset_id?: string;
49319
+ };
49320
+ /**
49321
+ * One Editor.js block, as Editor.js saves it. type is one of the official blocks: paragraph {text}, header {text, level 1–6}, list {style ordered|unordered|checklist, meta, items[{content, meta, items}]}, quote {text, caption, alignment left|center}, delimiter {}, image, table {withHeadings, stretched, content string[][]}, checklist {items[{text, checked}]}, warning {title, message}, embed {service, source, embed, width, height, caption}. The one departure from Editor.js: an image block is {asset_id, caption, withBorder, withBackground, stretched} and names an image or sticker asset of this library instead of file.url. Text keeps Editor.js inline HTML. Unknown types and fields are refused.
49322
+ */
49323
+ export type MediaEditorBlock = {
49324
+ /**
49325
+ * Block id, 1–64 letters, digits, _ or -, unique in the body.
49326
+ */
49327
+ id: string;
49328
+ /**
49329
+ * The official Editor.js block type.
49330
+ */
49331
+ type: 'paragraph' | 'header' | 'list' | 'quote' | 'delimiter' | 'image' | 'table' | 'checklist' | 'warning' | 'embed';
49332
+ /**
49333
+ * The block’s data in that type’s Editor.js shape.
49334
+ */
49335
+ data: {
49336
+ [key: string]: unknown;
49337
+ };
49338
+ };
48874
49339
  /**
48875
49340
  * Auto-resume enabled flag for paused sandboxes. Default false.
48876
49341
  */
@@ -50994,6 +51459,58 @@ export type UpdateMediaPipelineRequestWritable = {
50994
51459
  * Models to use for completion
50995
51460
  */
50996
51461
  export type OpenaiChatModelNamesWritable = Array<OpenaiModelName & unknown>;
51462
+ export type SandboxSandboxDetailWritable = {
51463
+ /**
51464
+ * Identifier of the template from which is the sandbox created
51465
+ */
51466
+ templateID: string;
51467
+ /**
51468
+ * Alias of the template
51469
+ */
51470
+ alias?: string;
51471
+ /**
51472
+ * Identifier of the sandbox
51473
+ */
51474
+ sandboxID: string;
51475
+ /**
51476
+ * Identifier of the client
51477
+ *
51478
+ * @deprecated
51479
+ */
51480
+ clientID: string;
51481
+ /**
51482
+ * Time when the sandbox was started
51483
+ */
51484
+ startedAt: string;
51485
+ /**
51486
+ * Time when the sandbox will expire
51487
+ */
51488
+ endAt: string;
51489
+ envdVersion: SandboxEnvdVersion;
51490
+ /**
51491
+ * Access token used for envd communication
51492
+ */
51493
+ envdAccessToken?: string;
51494
+ /**
51495
+ * Whether internet access was explicitly enabled or disabled for the sandbox. Null means it was not explicitly set.
51496
+ */
51497
+ allowInternetAccess?: boolean;
51498
+ /**
51499
+ * Base domain where the sandbox traffic is accessible
51500
+ */
51501
+ domain?: string;
51502
+ cpuCount: SandboxCpuCount;
51503
+ memoryMB: SandboxMemoryMb;
51504
+ diskSizeMB: SandboxDiskSizeMb;
51505
+ metadata?: SandboxSandboxMetadata;
51506
+ state: SandboxSandboxState;
51507
+ network?: SandboxSandboxNetworkConfigWritable;
51508
+ lifecycle?: SandboxSandboxLifecycle;
51509
+ /**
51510
+ * Volumes mounted into the sandbox.
51511
+ */
51512
+ volumeMounts?: Array<SandboxSandboxVolumeMount>;
51513
+ };
50997
51514
  /**
50998
51515
  * Free-form string key/value pairs stored with the session, changed through sessions.update patch semantics.
50999
51516
  */
@@ -51573,6 +52090,94 @@ export type MediaSemanticSearchResultWritable = {
51573
52090
  */
51574
52091
  not_ready_excluded: number;
51575
52092
  };
52093
+ /**
52094
+ * Sandbox creation request. All system communication with the sandbox is always secured; the template's envd version must support secured access.
52095
+ */
52096
+ export type SandboxNewSandboxV2Writable = {
52097
+ /**
52098
+ * Identifier of the required template
52099
+ */
52100
+ templateID: string;
52101
+ /**
52102
+ * Lifetime of the new sandbox in seconds. Defaults to 300 seconds when omitted.
52103
+ */
52104
+ timeout?: number;
52105
+ /**
52106
+ * Lifecycle declaration on the E2B-compatible face. true creates a persistent sandbox that pauses at its timeout and can be resumed; false or absent creates an ephemeral sandbox that ends at its timeout and keeps nothing. Keep true only for long-lived computers. The own face declares with ephemeral instead.
52107
+ */
52108
+ autoPause?: boolean;
52109
+ /**
52110
+ * Controls the snapshot kind taken when the sandbox auto-pauses on timeout (only relevant when autoPause is true). When false, the auto-pause drops the in-memory state and persists only the filesystem (a filesystem-only snapshot); resuming it cold-boots (reboots) the sandbox from disk. Such a snapshot cannot be auto-resumed by traffic and must be resumed explicitly, so it cannot be combined with autoResume. Defaults to true (full memory snapshot).
52111
+ */
52112
+ autoPauseMemory?: boolean;
52113
+ autoResume?: SandboxSandboxAutoResumeConfig;
52114
+ /**
52115
+ * Allow sandbox to access the internet. When set to false, it behaves the same as specifying denyOut to 0.0.0.0/0 in the network config.
52116
+ */
52117
+ allow_internet_access?: boolean;
52118
+ network?: SandboxSandboxNetworkConfigWritable;
52119
+ metadata?: SandboxSandboxMetadata;
52120
+ envVars?: SandboxEnvVars;
52121
+ mcp?: SandboxMcp;
52122
+ iam?: SandboxSandboxIam;
52123
+ /**
52124
+ * Volumes to mount into the sandbox, each with the volume name and the path inside the sandbox.
52125
+ */
52126
+ volumeMounts?: Array<SandboxSandboxVolumeMount>;
52127
+ /**
52128
+ * Own face, required unless sku is named: true for an ephemeral sandbox (ends at its timeout, never pauses, cannot be snapshotted), false for a persistent one (pauses, resumes, snapshots, mounts volumes). Leaving it out returns INVALID_PARAMS.
52129
+ */
52130
+ ephemeral?: boolean;
52131
+ /**
52132
+ * Own face: the machine size, a SKU id such as base-2c4g or, for an android phone, android-2c4g. Omitted, the template's default size is used.
52133
+ */
52134
+ size?: string;
52135
+ /**
52136
+ * Own face: a display name for the sandbox, 1 to 64 characters. Omitted, one is generated from the template.
52137
+ */
52138
+ name?: string;
52139
+ /**
52140
+ * Own face, android phones only: keep the create open until the phone is running or 55 seconds have passed since the request arrived; running out is not an error and answers the state reached.
52141
+ */
52142
+ waitForReady?: boolean;
52143
+ /**
52144
+ * Own face: what happens at the timeout. pause needs ephemeral: false; must agree with autoPause when both are sent.
52145
+ */
52146
+ onExpire?: 'kill' | 'pause';
52147
+ /**
52148
+ * Own face, persistent sandboxes only: pause after this many milliseconds without activity; null turns the idle pause off.
52149
+ */
52150
+ idleTimeout?: number;
52151
+ /**
52152
+ * Own face, persistent sandboxes only: whose activity resets idleTimeout. traffic (default) counts data-plane calls, preview traffic and live processes; caller counts only your own control-plane calls.
52153
+ */
52154
+ idleActivity?: 'traffic' | 'caller';
52155
+ /**
52156
+ * Own face: a demand-profile SKU <kind>.<image>.<size>, such as run.document.medium (someone waits; starts fast), job.base.large (background work that must not be cut off), batch.base.large (retried work that may be reclaimed) or computer.base.medium (keeps its disk). It fixes ephemeral, interruptible, size and the template, so those may be left out; any of them you also send must agree with it, otherwise the create fails with INVALID_PARAMS naming the field. The sandbox answers it back as sku and as the read-only label praxis.sku.
52157
+ */
52158
+ sku?: string;
52159
+ /**
52160
+ * Own face: the kind of sandbox you need, when you do not name a full sku. The sandbox completes <kind>.<image>.<size> from the template you start (its family, or custom for your own environment or snapshot) and the size you send, or medium. run is for work someone waits for (starts fast), job is background work that must not be cut off, batch is retried work that may be reclaimed (spot capacity), computer keeps its disk, and compat is the E2B-compatible persistent series. The kind fixes ephemeral and interruptible, so leave those out; if you also send them, or a sku of another kind, the create fails with INVALID_PARAMS naming the field. The light template always starts the light shell, whatever the kind says.
52161
+ */
52162
+ kind?: 'run' | 'job' | 'batch' | 'computer' | 'compat';
52163
+ /**
52164
+ * Own face, ephemeral sandboxes only: true says this sandbox may be reclaimed while it runs (a build or test you retry), which lets it run on cheaper spot capacity. A reclaimed sandbox ends with PROVIDER_FAILED; create it again. Absent or false keeps the usual capacity.
52165
+ */
52166
+ interruptible?: boolean;
52167
+ /**
52168
+ * Own face, persistent sandboxes only: what happens when the provider loses the machine. fail (default) ends the sandbox; rebuild starts a new machine under the same id with its state lost.
52169
+ */
52170
+ onLoss?: 'fail' | 'rebuild';
52171
+ /**
52172
+ * Own face: up to eight absolute paths to keep when the sandbox ends; each is packed as .tar.gz into File and listed on the killed event.
52173
+ */
52174
+ outputs?: Array<{
52175
+ /**
52176
+ * Absolute path of a directory or file inside the sandbox.
52177
+ */
52178
+ path: string;
52179
+ }>;
52180
+ };
51576
52181
  /**
51577
52182
  * Arguments the model passed to the tool.
51578
52183
  */
@@ -51651,6 +52256,43 @@ export type AnthropicAnonymous204Writable = {
51651
52256
  export type AnthropicAnonymous206Writable = {
51652
52257
  [key: string]: unknown;
51653
52258
  };
52259
+ /**
52260
+ * Network policy of the sandbox: public access, egress allow and deny lists and proxy.
52261
+ */
52262
+ export type SandboxSandboxNetworkConfigWritable = {
52263
+ /**
52264
+ * Specify if the sandbox URLs should be accessible only with authentication.
52265
+ */
52266
+ allowPublicTraffic?: boolean;
52267
+ /**
52268
+ * List of allowed destinations for egress traffic. Each entry can be a CIDR block (e.g. "8.8.8.8/32"), a bare IP address (e.g. "8.8.8.8"), or a domain name (e.g. "example.com", "*.example.com"). Allowed entries always take precedence over denied entries.
52269
+ */
52270
+ allowOut?: Array<string>;
52271
+ /**
52272
+ * List of denied CIDR blocks or IP addresses for egress traffic. Domain names are not supported for deny rules.
52273
+ */
52274
+ denyOut?: Array<string>;
52275
+ egressProxy?: SandboxSandboxEgressProxyConfig;
52276
+ /**
52277
+ * Specify host mask which will be used for all sandbox requests
52278
+ */
52279
+ maskRequestHost?: string;
52280
+ /**
52281
+ * Unlike E2B, network.httpsPorts is rejected; omit it when creating a sandbox.
52282
+ */
52283
+ httpsPorts?: Array<number>;
52284
+ /**
52285
+ * Per-domain transform rules applied to matching outbound HTTPS requests. Keys may be exact DNS names (for example, "api.example.com") or a leading wildcard (for example, "*.example.com"), and are normalized to lowercase on write. Wildcards match subdomains at any depth but not the apex domain; a bare "*" is invalid. Exact rules take precedence, followed by the longest matching wildcard suffix, and matching rule sets are not merged. Broad wildcards such as "*.com" are allowed and may expose transformed credentials to every matching destination the sandbox contacts. Rules do not grant network access; configure allowOut separately to permit the destination.
52286
+ *
52287
+ */
52288
+ rules?: {
52289
+ [key: string]: Array<SandboxSandboxNetworkRule>;
52290
+ };
52291
+ /**
52292
+ * Own face, persistent sandboxes only (autoPause: true, or ephemeral: false): true gives the sandbox one fixed public egress IP for its whole life, held through pause and resume and released when the sandbox is deleted. Without it the egress IP is not stable: it changes when a spot machine is reclaimed, when a paused machine starts again, and when the machine is rebuilt. An ephemeral sandbox returns INVALID_PARAMS; the E2B face refuses the field; it is placed only on capacity that declares static IPs, and without such capacity the create does not start (it never falls back to a changing IP). Billed as the usage item sandbox:public_ip:hours from allocation to release, paused time included, plus outbound traffic as usual.
52293
+ */
52294
+ staticEgressIp?: boolean;
52295
+ };
51654
52296
  /**
51655
52297
  * Free-form string key/value pairs.
51656
52298
  */
@@ -59481,9 +60123,13 @@ export type ComputersRetrieveResponse = ComputersRetrieveResponses[keyof Compute
59481
60123
  export type ComputersUpdateData = {
59482
60124
  body: {
59483
60125
  /**
59484
- * Name of the entry or object.
60126
+ * New display name, 1 to 255 characters after trimming. Omit to keep the current name.
59485
60127
  */
59486
- name: string;
60128
+ name?: string;
60129
+ /**
60130
+ * Environment recipe the computer declares (agent.environments.list or agent.environments.create, or a built-in id). A string sets the declaration and is checked as in computers.create: an unknown, foreign or archived environment is refused. null removes the declaration. Omit to leave it unchanged. Only the record changes: the machine is not touched or restarted, so the new declaration applies from the computer's next start; restart the computer once to apply it at once.
60131
+ */
60132
+ environment_id?: string | null;
59487
60133
  };
59488
60134
  path: {
59489
60135
  /**
@@ -61653,7 +62299,7 @@ export type ComputersFilesConvertResponse = ComputersFilesConvertResponses[keyof
61653
62299
  export type ConnectComputerData = {
61654
62300
  body?: {
61655
62301
  /**
61656
- * Defaults to light. light uses the lightweight shell, or the heavy instance while it is running. heavy requests a full Linux computer for interactive programs; heavy running time counts toward the daily budget in seconds.
62302
+ * Accepted for compatibility and ignored: light and heavy both reach the same machine, because a Computer is one machine. Omit it.
61657
62303
  */
61658
62304
  need?: 'light' | 'heavy';
61659
62305
  };
@@ -70585,6 +71231,36 @@ export type BrowserCreateContextData = {
70585
71231
  labels?: {
70586
71232
  [key: string]: string;
70587
71233
  };
71234
+ /**
71235
+ * 给登录态绑定一个固定的外部代理(如住宅 IP),使用这个登录态的会话没有写 proxies 时都经它出网,让同一账号始终从同一个出口地址出去。只存保管库引用(password_secret),不存密码;会话自己写了 proxies 时以会话的为准。需要组织已开通容器后端,否则返回 501 PROVIDER_UNSUPPORTED。
71236
+ */
71237
+ proxy?: {
71238
+ /**
71239
+ * 固定为 external:经一个你自己的外部 HTTP 代理出网。
71240
+ */
71241
+ type: 'external';
71242
+ /**
71243
+ * 代理地址,host:port 或 http://host:port;只支持 HTTP 代理,不接受 socks5:// 等协议,也不接受 localhost 和内网、链路本地地址。
71244
+ */
71245
+ server: string;
71246
+ /**
71247
+ * 代理用户名;有密码时才能填,填了就必须同时给出密码。
71248
+ */
71249
+ username?: string;
71250
+ /**
71251
+ * 必须用这种形式:引用保管库里的代理密码,只在连接这个代理的主机时兑换,不会交给网页。登录态里只存引用,传明文 password 返回 400 INVALID_PARAMS。
71252
+ */
71253
+ password_secret?: {
71254
+ /**
71255
+ * 保存代理密码的保管库 ID,以 vlt_ 开头。
71256
+ */
71257
+ vault_id: string;
71258
+ /**
71259
+ * 保管库中该密码的密钥 ID(不是密码本身)。
71260
+ */
71261
+ secret: string;
71262
+ };
71263
+ };
70588
71264
  };
70589
71265
  path?: never;
70590
71266
  query?: never;
@@ -70827,6 +71503,36 @@ export type BrowserUpdateContextData = {
70827
71503
  labels?: {
70828
71504
  [key: string]: string;
70829
71505
  };
71506
+ /**
71507
+ * 给登录态绑定一个固定的外部代理(如住宅 IP),使用这个登录态的会话没有写 proxies 时都经它出网,让同一账号始终从同一个出口地址出去。只存保管库引用(password_secret),不存密码;会话自己写了 proxies 时以会话的为准。需要组织已开通容器后端,否则返回 501 PROVIDER_UNSUPPORTED。 更新时传 null 解除绑定,省略则保留原绑定。
71508
+ */
71509
+ proxy?: {
71510
+ /**
71511
+ * 固定为 external:经一个你自己的外部 HTTP 代理出网。
71512
+ */
71513
+ type: 'external';
71514
+ /**
71515
+ * 代理地址,host:port 或 http://host:port;只支持 HTTP 代理,不接受 socks5:// 等协议,也不接受 localhost 和内网、链路本地地址。
71516
+ */
71517
+ server: string;
71518
+ /**
71519
+ * 代理用户名;有密码时才能填,填了就必须同时给出密码。
71520
+ */
71521
+ username?: string;
71522
+ /**
71523
+ * 必须用这种形式:引用保管库里的代理密码,只在连接这个代理的主机时兑换,不会交给网页。登录态里只存引用,传明文 password 返回 400 INVALID_PARAMS。
71524
+ */
71525
+ password_secret?: {
71526
+ /**
71527
+ * 保存代理密码的保管库 ID,以 vlt_ 开头。
71528
+ */
71529
+ vault_id: string;
71530
+ /**
71531
+ * 保管库中该密码的密钥 ID(不是密码本身)。
71532
+ */
71533
+ secret: string;
71534
+ };
71535
+ } | null;
70830
71536
  };
70831
71537
  path: {
70832
71538
  /**
@@ -78475,7 +79181,7 @@ export type ListOrganizationCostsData = {
78475
79181
  */
78476
79182
  bucket_width: '1h' | '1d';
78477
79183
  /**
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. The window widens to whole local buckets; a day that crosses a daylight-saving change lasts 23 or 25 hours. starting_at and ending_at stay UTC instants.
79184
+ * IANA time zone name (for example Asia/Shanghai) whose local hours or days form the buckets. Defaults to UTC. Offsets such as +08:00 are rejected. Only zones whose UTC offset is a whole number of hours across the whole window are supported; zones such as Asia/Kolkata (+05:30) or Asia/Kathmandu (+05:45) are rejected with 400 VALIDATION_ERROR, because Billing buckets in UTC hours and a local hour of those zones straddles two of them. With bucket_width=1d the window widens to whole local days, each bucket carries its real UTC starting_at and ending_at, and a day that crosses a daylight-saving change lasts 23 or 25 hours; the whole window is then answered in one page (has_more is false and page is not accepted). starting_at and ending_at stay UTC instants.
78479
79185
  *
78480
79186
  */
78481
79187
  time_zone?: string;
@@ -78593,7 +79299,7 @@ export type ListOrganizationUsageData = {
78593
79299
  */
78594
79300
  bucket_width: '1h' | '1d';
78595
79301
  /**
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. The window widens to whole local buckets; a day that crosses a daylight-saving change lasts 23 or 25 hours. starting_at and ending_at stay UTC instants.
79302
+ * IANA time zone name (for example Asia/Shanghai) whose local hours or days form the buckets. Defaults to UTC. Offsets such as +08:00 are rejected. Only zones whose UTC offset is a whole number of hours across the whole window are supported; zones such as Asia/Kolkata (+05:30) or Asia/Kathmandu (+05:45) are rejected with 400 VALIDATION_ERROR, because Billing buckets in UTC hours and a local hour of those zones straddles two of them. With bucket_width=1d the window widens to whole local days, each bucket carries its real UTC starting_at and ending_at, and a day that crosses a daylight-saving change lasts 23 or 25 hours; the whole window is then answered in one page (has_more is false and page is not accepted). starting_at and ending_at stay UTC instants.
78597
79303
  *
78598
79304
  */
78599
79305
  time_zone?: string;
@@ -79113,11 +79819,19 @@ export type ListOrganizationNotificationLettersData = {
79113
79819
  path?: never;
79114
79820
  query?: {
79115
79821
  /**
79116
- * Only unread letters, or only read ones; omit for both.
79822
+ * received (the default) lists the letters addressed to you; sent lists the letters you wrote, scheduled ones included, in the same row shape — a script or an agent finds its own alarm clocks there. A run credential's sent list is the letters automation wrote on behalf of the person it acts for.
79823
+ */
79824
+ direction?: 'received' | 'sent';
79825
+ /**
79826
+ * Only unread letters, only read ones, or (direction=sent only) only letters written but not yet delivered, whose deliveredAt is null; omit for all. On a sent list, unread and read are the recipient's state.
79117
79827
  */
79118
- status?: 'unread' | 'read';
79828
+ status?: 'unread' | 'read' | 'scheduled';
79119
79829
  /**
79120
- * false (the default) hides archived letters; true lists only the archived ones.
79830
+ * Only letters of this conversation, for received and sent alike; omit for all.
79831
+ */
79832
+ thread?: string;
79833
+ /**
79834
+ * false (the default) hides archived letters; true lists only the archived ones. Archiving is the addressee's act, so it is ignored when direction=sent.
79121
79835
  */
79122
79836
  archived?: boolean;
79123
79837
  /**
@@ -79133,7 +79847,7 @@ export type ListOrganizationNotificationLettersData = {
79133
79847
  };
79134
79848
  export type ListOrganizationNotificationLettersErrors = {
79135
79849
  /**
79136
- * A bad `status`, `archived` or `limit`, or `INVALID_PARAMS` from the service for a cursor it did not issue (RFC 9457 problem).
79850
+ * A bad `direction`, `status` (scheduled needs direction=sent), `thread`, `archived` or `limit`, or `INVALID_PARAMS` from the service for a cursor it did not issue (RFC 9457 problem).
79137
79851
  */
79138
79852
  400: unknown;
79139
79853
  /**
@@ -79233,6 +79947,80 @@ export type ListOrganizationNotificationLettersResponses = {
79233
79947
  };
79234
79948
  };
79235
79949
  export type ListOrganizationNotificationLettersResponse = ListOrganizationNotificationLettersResponses[keyof ListOrganizationNotificationLettersResponses];
79950
+ export type CreateOrganizationNotificationLetterData = {
79951
+ body: {
79952
+ /**
79953
+ * The recipient's address: human:<user id> or agent:<agent id>, a member or an agent of this organization.
79954
+ */
79955
+ to: string;
79956
+ /**
79957
+ * The whole letter, 1 to 16000 characters.
79958
+ */
79959
+ body: string;
79960
+ /**
79961
+ * One sentence saying what the reader is asked to do or needs to know, at most 60 characters. Required when to is a person; refused, never cut, when longer.
79962
+ */
79963
+ summary?: string;
79964
+ /**
79965
+ * The letter's kind; it decides the channels. Defaults to mention.
79966
+ */
79967
+ kind?: 'notice' | 'mention' | 'decision';
79968
+ /**
79969
+ * The conversation the letter belongs to, free text; omit for none.
79970
+ */
79971
+ thread?: string;
79972
+ /**
79973
+ * When to deliver it, ISO 8601, at most 366 days ahead. A past time or no value means now.
79974
+ */
79975
+ deliver_at?: string;
79976
+ };
79977
+ path?: never;
79978
+ query?: never;
79979
+ url: '/organization/v1/notifications/letters';
79980
+ };
79981
+ export type CreateOrganizationNotificationLetterErrors = {
79982
+ /**
79983
+ * `to` is not an address, `body` is missing or too long, `summary` is missing for a person or longer than 60 characters, `kind` is unknown, or `deliver_at` is not an ISO 8601 time within 366 days (RFC 9457 problem).
79984
+ */
79985
+ 400: unknown;
79986
+ /**
79987
+ * Missing or invalid credential (RFC 9457 problem).
79988
+ */
79989
+ 401: unknown;
79990
+ /**
79991
+ * `PERMISSION_DENIED`: sending a letter needs a person, an agent or an automation run identity; an organization API key or an application cannot send (RFC 9457 problem).
79992
+ */
79993
+ 403: unknown;
79994
+ /**
79995
+ * `SUBSCRIBER_NOT_FOUND`: the recipient is not a member or an agent of this organization (RFC 9457 problem).
79996
+ */
79997
+ 404: unknown;
79998
+ /**
79999
+ * The notification service did not answer, or failed in a way it did not classify (RFC 9457 problem, `UNAVAILABLE`). A refusal the service classifies is never a 502 — it reaches the caller in its own class (400, 403, 404), so a client may act on it.
80000
+ */
80001
+ 502: unknown;
80002
+ };
80003
+ export type CreateOrganizationNotificationLetterResponses = {
80004
+ /**
80005
+ * The letter is written; it is delivered at deliverAt.
80006
+ */
80007
+ 200: {
80008
+ /**
80009
+ * The letter that was written: its id and the time it is delivered.
80010
+ */
80011
+ letter: {
80012
+ /**
80013
+ * The letter's id.
80014
+ */
80015
+ id: string;
80016
+ /**
80017
+ * When it is delivered: now, or the time asked for.
80018
+ */
80019
+ deliverAt: string;
80020
+ };
80021
+ };
80022
+ };
80023
+ export type CreateOrganizationNotificationLetterResponse = CreateOrganizationNotificationLetterResponses[keyof CreateOrganizationNotificationLetterResponses];
79236
80024
  export type GetOrganizationNotificationLetterData = {
79237
80025
  body?: never;
79238
80026
  path: {
@@ -79456,6 +80244,360 @@ export type ArchiveOrganizationNotificationLetterResponses = {
79456
80244
  };
79457
80245
  };
79458
80246
  export type ArchiveOrganizationNotificationLetterResponse = ArchiveOrganizationNotificationLetterResponses[keyof ArchiveOrganizationNotificationLetterResponses];
80247
+ export type ListOrganizationNotificationMessagesData = {
80248
+ body?: never;
80249
+ path?: never;
80250
+ query?: {
80251
+ /**
80252
+ * 0 (the default) lists the inbox tab, 1 lists archived messages.
80253
+ */
80254
+ archived?: '0' | '1';
80255
+ /**
80256
+ * Messages per page, 1 to 100; defaults to 20.
80257
+ */
80258
+ limit?: number;
80259
+ /**
80260
+ * Opaque nextPageToken from the previous response; omit for the first page.
80261
+ */
80262
+ page?: string;
80263
+ };
80264
+ url: '/organization/v1/notifications/messages';
80265
+ };
80266
+ export type ListOrganizationNotificationMessagesErrors = {
80267
+ /**
80268
+ * A bad `archived`, `limit` or `page`, or `INVALID_PARAMS` from the service for a cursor it did not issue (RFC 9457 problem).
80269
+ */
80270
+ 400: unknown;
80271
+ /**
80272
+ * Missing or invalid credential (RFC 9457 problem).
80273
+ */
80274
+ 401: unknown;
80275
+ /**
80276
+ * `PERMISSION_DENIED`: an agent credential has no person inbox; read its own letters instead (RFC 9457 problem).
80277
+ */
80278
+ 403: unknown;
80279
+ /**
80280
+ * The notification service did not answer, or failed in a way it did not classify (RFC 9457 problem, `UNAVAILABLE`). A refusal the service classifies is never a 502 — it reaches the caller in its own class (400, 403, 404), so a client may act on it.
80281
+ */
80282
+ 502: unknown;
80283
+ };
80284
+ export type ListOrganizationNotificationMessagesResponses = {
80285
+ /**
80286
+ * One page of this person's messages.
80287
+ */
80288
+ 200: {
80289
+ /**
80290
+ * The page, newest first.
80291
+ */
80292
+ items: Array<{
80293
+ /**
80294
+ * The message's resource name, subscribers/{user}/messages/{id}; pass it URL-encoded as the {name} of the other message operations.
80295
+ */
80296
+ name: string;
80297
+ /**
80298
+ * The organization the message belongs to; empty for a message that belongs to no organization.
80299
+ */
80300
+ organizationId: string;
80301
+ /**
80302
+ * The notification group the message belongs to: members, usage, alerts, agent, or nonConfigurable.
80303
+ */
80304
+ group: 'members' | 'usage' | 'alerts' | 'agent' | 'nonConfigurable';
80305
+ /**
80306
+ * The notification workflow that wrote it, as the preferences page names it.
80307
+ */
80308
+ workflow: string;
80309
+ /**
80310
+ * The message's headline, as the bell shows it.
80311
+ */
80312
+ title: string;
80313
+ /**
80314
+ * The message text.
80315
+ */
80316
+ body: string;
80317
+ /**
80318
+ * Where the bell opens this message; absent when it has no page.
80319
+ */
80320
+ actionUrl?: string;
80321
+ /**
80322
+ * Whether the bell has been opened since the message arrived.
80323
+ */
80324
+ seen: boolean;
80325
+ /**
80326
+ * Whether this person has read it.
80327
+ */
80328
+ read: boolean;
80329
+ /**
80330
+ * Whether this person archived it; archived messages are not in the inbox tab.
80331
+ */
80332
+ archived: boolean;
80333
+ /**
80334
+ * When the message arrived.
80335
+ */
80336
+ createTime: string;
80337
+ }>;
80338
+ /**
80339
+ * Pass unchanged as page for the next page; absent at the end.
80340
+ */
80341
+ nextPageToken?: string;
80342
+ };
80343
+ };
80344
+ export type ListOrganizationNotificationMessagesResponse = ListOrganizationNotificationMessagesResponses[keyof ListOrganizationNotificationMessagesResponses];
80345
+ export type DeleteOrganizationNotificationMessageData = {
80346
+ body?: never;
80347
+ path: {
80348
+ /**
80349
+ * The message's `name` from the messages list, subscribers/{user}/messages/{id}, URL-encoded.
80350
+ */
80351
+ name: string;
80352
+ };
80353
+ query?: never;
80354
+ url: '/organization/v1/notifications/messages/{name}';
80355
+ };
80356
+ export type DeleteOrganizationNotificationMessageErrors = {
80357
+ /**
80358
+ * `name` is not subscribers/{user}/messages/{id} — `INVALID_PARAMS` (RFC 9457 problem).
80359
+ */
80360
+ 400: unknown;
80361
+ /**
80362
+ * Missing or invalid credential (RFC 9457 problem).
80363
+ */
80364
+ 401: unknown;
80365
+ /**
80366
+ * `PERMISSION_DENIED`: an agent credential has no person inbox; read its own letters instead (RFC 9457 problem).
80367
+ */
80368
+ 403: unknown;
80369
+ /**
80370
+ * No such message of yours in this organization — `MESSAGE_NOT_FOUND` (RFC 9457 problem).
80371
+ */
80372
+ 404: unknown;
80373
+ /**
80374
+ * The notification service did not answer, or failed in a way it did not classify (RFC 9457 problem, `UNAVAILABLE`). A refusal the service classifies is never a 502 — it reaches the caller in its own class (400, 403, 404), so a client may act on it.
80375
+ */
80376
+ 502: unknown;
80377
+ };
80378
+ export type DeleteOrganizationNotificationMessageResponses = {
80379
+ /**
80380
+ * The message is deleted.
80381
+ */
80382
+ 200: {
80383
+ /**
80384
+ * Always true: the message was deleted.
80385
+ */
80386
+ deleted: boolean;
80387
+ };
80388
+ };
80389
+ export type DeleteOrganizationNotificationMessageResponse = DeleteOrganizationNotificationMessageResponses[keyof DeleteOrganizationNotificationMessageResponses];
80390
+ export type GetOrganizationNotificationMessageData = {
80391
+ body?: never;
80392
+ path: {
80393
+ /**
80394
+ * The message's `name` from the messages list, subscribers/{user}/messages/{id}, URL-encoded.
80395
+ */
80396
+ name: string;
80397
+ };
80398
+ query?: never;
80399
+ url: '/organization/v1/notifications/messages/{name}';
80400
+ };
80401
+ export type GetOrganizationNotificationMessageErrors = {
80402
+ /**
80403
+ * `name` is not subscribers/{user}/messages/{id} — `INVALID_PARAMS` (RFC 9457 problem).
80404
+ */
80405
+ 400: unknown;
80406
+ /**
80407
+ * Missing or invalid credential (RFC 9457 problem).
80408
+ */
80409
+ 401: unknown;
80410
+ /**
80411
+ * `PERMISSION_DENIED`: an agent credential has no person inbox; read its own letters instead (RFC 9457 problem).
80412
+ */
80413
+ 403: unknown;
80414
+ /**
80415
+ * No such message of yours in this organization — `MESSAGE_NOT_FOUND`, the same answer for another person's message and one that never existed (RFC 9457 problem).
80416
+ */
80417
+ 404: unknown;
80418
+ /**
80419
+ * The notification service did not answer, or failed in a way it did not classify (RFC 9457 problem, `UNAVAILABLE`). A refusal the service classifies is never a 502 — it reaches the caller in its own class (400, 403, 404), so a client may act on it.
80420
+ */
80421
+ 502: unknown;
80422
+ };
80423
+ export type GetOrganizationNotificationMessageResponses = {
80424
+ /**
80425
+ * The message.
80426
+ */
80427
+ 200: {
80428
+ /**
80429
+ * The message's resource name, subscribers/{user}/messages/{id}; pass it URL-encoded as the {name} of the other message operations.
80430
+ */
80431
+ name: string;
80432
+ /**
80433
+ * The organization the message belongs to; empty for a message that belongs to no organization.
80434
+ */
80435
+ organizationId: string;
80436
+ /**
80437
+ * The notification group the message belongs to: members, usage, alerts, agent, or nonConfigurable.
80438
+ */
80439
+ group: 'members' | 'usage' | 'alerts' | 'agent' | 'nonConfigurable';
80440
+ /**
80441
+ * The notification workflow that wrote it, as the preferences page names it.
80442
+ */
80443
+ workflow: string;
80444
+ /**
80445
+ * The message's headline, as the bell shows it.
80446
+ */
80447
+ title: string;
80448
+ /**
80449
+ * The message text.
80450
+ */
80451
+ body: string;
80452
+ /**
80453
+ * Where the bell opens this message; absent when it has no page.
80454
+ */
80455
+ actionUrl?: string;
80456
+ /**
80457
+ * Whether the bell has been opened since the message arrived.
80458
+ */
80459
+ seen: boolean;
80460
+ /**
80461
+ * Whether this person has read it.
80462
+ */
80463
+ read: boolean;
80464
+ /**
80465
+ * Whether this person archived it; archived messages are not in the inbox tab.
80466
+ */
80467
+ archived: boolean;
80468
+ /**
80469
+ * When the message arrived.
80470
+ */
80471
+ createTime: string;
80472
+ };
80473
+ };
80474
+ export type GetOrganizationNotificationMessageResponse = GetOrganizationNotificationMessageResponses[keyof GetOrganizationNotificationMessageResponses];
80475
+ export type UpdateOrganizationNotificationMessageData = {
80476
+ body: {
80477
+ /**
80478
+ * Mark the message read (true) or unread (false); omit to leave it.
80479
+ */
80480
+ read?: boolean;
80481
+ /**
80482
+ * Archive the message (true) or move it back to the inbox (false); omit to leave it.
80483
+ */
80484
+ archived?: boolean;
80485
+ };
80486
+ path: {
80487
+ /**
80488
+ * The message's `name` from the messages list, subscribers/{user}/messages/{id}, URL-encoded.
80489
+ */
80490
+ name: string;
80491
+ };
80492
+ query?: never;
80493
+ url: '/organization/v1/notifications/messages/{name}';
80494
+ };
80495
+ export type UpdateOrganizationNotificationMessageErrors = {
80496
+ /**
80497
+ * The body is not a JSON object, names neither `read` nor `archived`, a flag is not true or false, or `name` is malformed (RFC 9457 problem).
80498
+ */
80499
+ 400: unknown;
80500
+ /**
80501
+ * Missing or invalid credential (RFC 9457 problem).
80502
+ */
80503
+ 401: unknown;
80504
+ /**
80505
+ * `PERMISSION_DENIED`: an agent credential has no person inbox; read its own letters instead (RFC 9457 problem).
80506
+ */
80507
+ 403: unknown;
80508
+ /**
80509
+ * No such message of yours in this organization — `MESSAGE_NOT_FOUND` (RFC 9457 problem).
80510
+ */
80511
+ 404: unknown;
80512
+ /**
80513
+ * The notification service did not answer, or failed in a way it did not classify (RFC 9457 problem, `UNAVAILABLE`). A refusal the service classifies is never a 502 — it reaches the caller in its own class (400, 403, 404), so a client may act on it.
80514
+ */
80515
+ 502: unknown;
80516
+ };
80517
+ export type UpdateOrganizationNotificationMessageResponses = {
80518
+ /**
80519
+ * The message after the change.
80520
+ */
80521
+ 200: {
80522
+ /**
80523
+ * The message's resource name, subscribers/{user}/messages/{id}; pass it URL-encoded as the {name} of the other message operations.
80524
+ */
80525
+ name: string;
80526
+ /**
80527
+ * The organization the message belongs to; empty for a message that belongs to no organization.
80528
+ */
80529
+ organizationId: string;
80530
+ /**
80531
+ * The notification group the message belongs to: members, usage, alerts, agent, or nonConfigurable.
80532
+ */
80533
+ group: 'members' | 'usage' | 'alerts' | 'agent' | 'nonConfigurable';
80534
+ /**
80535
+ * The notification workflow that wrote it, as the preferences page names it.
80536
+ */
80537
+ workflow: string;
80538
+ /**
80539
+ * The message's headline, as the bell shows it.
80540
+ */
80541
+ title: string;
80542
+ /**
80543
+ * The message text.
80544
+ */
80545
+ body: string;
80546
+ /**
80547
+ * Where the bell opens this message; absent when it has no page.
80548
+ */
80549
+ actionUrl?: string;
80550
+ /**
80551
+ * Whether the bell has been opened since the message arrived.
80552
+ */
80553
+ seen: boolean;
80554
+ /**
80555
+ * Whether this person has read it.
80556
+ */
80557
+ read: boolean;
80558
+ /**
80559
+ * Whether this person archived it; archived messages are not in the inbox tab.
80560
+ */
80561
+ archived: boolean;
80562
+ /**
80563
+ * When the message arrived.
80564
+ */
80565
+ createTime: string;
80566
+ };
80567
+ };
80568
+ export type UpdateOrganizationNotificationMessageResponse = UpdateOrganizationNotificationMessageResponses[keyof UpdateOrganizationNotificationMessageResponses];
80569
+ export type ReadAllOrganizationNotificationMessagesData = {
80570
+ body?: never;
80571
+ path?: never;
80572
+ query?: never;
80573
+ url: '/organization/v1/notifications/messages:readAll';
80574
+ };
80575
+ export type ReadAllOrganizationNotificationMessagesErrors = {
80576
+ /**
80577
+ * Missing or invalid credential (RFC 9457 problem).
80578
+ */
80579
+ 401: unknown;
80580
+ /**
80581
+ * `PERMISSION_DENIED`: an agent credential has no person inbox; read its own letters instead (RFC 9457 problem).
80582
+ */
80583
+ 403: unknown;
80584
+ /**
80585
+ * The notification service did not answer, or failed in a way it did not classify (RFC 9457 problem, `UNAVAILABLE`). A refusal the service classifies is never a 502 — it reaches the caller in its own class (400, 403, 404), so a client may act on it.
80586
+ */
80587
+ 502: unknown;
80588
+ };
80589
+ export type ReadAllOrganizationNotificationMessagesResponses = {
80590
+ /**
80591
+ * How many messages were marked read.
80592
+ */
80593
+ 200: {
80594
+ /**
80595
+ * The number of messages that were unread and are now read.
80596
+ */
80597
+ updated: number;
80598
+ };
80599
+ };
80600
+ export type ReadAllOrganizationNotificationMessagesResponse = ReadAllOrganizationNotificationMessagesResponses[keyof ReadAllOrganizationNotificationMessagesResponses];
79459
80601
  export type GetOrganizationNotificationPreferencesData = {
79460
80602
  body?: never;
79461
80603
  path?: never;
@@ -99164,7 +100306,7 @@ export type AutomationRunsListData = {
99164
100306
  */
99165
100307
  channel?: Array<'console' | 'api' | 'internal' | 'run' | 'trigger'>;
99166
100308
  /**
99167
- * Root initiator type: user, api_key, agent or trigger, 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.
100309
+ * Root initiator type: user, api_key, agent, trigger or application, inherited by child runs. run returns INPUT_INVALID; filter origin with channel=run or parent_run_id. Separate multiple values with commas to match any value.
99168
100310
  */
99169
100311
  initiator_type?: Array<'user' | 'api_key' | 'agent' | 'trigger'>;
99170
100312
  /**
@@ -113712,7 +114854,7 @@ export type DevopsUnitsPushErrors = {
113712
114854
  */
113713
114855
  404: DevopsDevOpsError;
113714
114856
  /**
113715
- * 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; fetch the unit, reconcile your checkout and send the new head. 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.
114857
+ * HEAD_MOVED means the change's branch on the remote is no longer the expectedHead that was sent — someone pushed to it since — so nothing was pushed. The message says where the remote is ("remote is at <sha7> (<full sha>) on <ref>") and details.remoteHead carries the full sha: send it as expectedHead after reconciling your checkout. PUSH_REJECTED_BY_HOOK means the machine's git ran a pre-push hook (lefthook, for example) and the hook refused: details.detail holds the hook's output and details.exitCode git's exit code; fix what the hook names, commit, and push again. PUSH_REJECTED_NON_FAST_FORWARD means the remote branch has commits your checkout lacks; fetch, reconcile and push again. UNIT_INVALID_STATE means the unit is not available (no machine or no checkout yet, or another transition is in flight), so there is nothing to push; read the unit's phase and retry once it has settled.
113716
114858
  */
113717
114859
  409: DevopsDevOpsError;
113718
114860
  /**
@@ -118815,45 +119957,509 @@ export type MediaListUnderstandingsByLibraryErrors = {
118815
119957
  */
118816
119958
  503: MediaMediaError;
118817
119959
  };
118818
- export type MediaListUnderstandingsByLibraryError = MediaListUnderstandingsByLibraryErrors[keyof MediaListUnderstandingsByLibraryErrors];
118819
- export type MediaListUnderstandingsByLibraryResponses = {
119960
+ export type MediaListUnderstandingsByLibraryError = MediaListUnderstandingsByLibraryErrors[keyof MediaListUnderstandingsByLibraryErrors];
119961
+ export type MediaListUnderstandingsByLibraryResponses = {
119962
+ /**
119963
+ * Successful response.
119964
+ */
119965
+ 200: MediaUnderstandingPage;
119966
+ };
119967
+ export type MediaListUnderstandingsByLibraryResponse = MediaListUnderstandingsByLibraryResponses[keyof MediaListUnderstandingsByLibraryResponses];
119968
+ export type MediaListJobsData = {
119969
+ body?: never;
119970
+ path: {
119971
+ /**
119972
+ * Library ID returned by creation.
119973
+ */
119974
+ library_id: string;
119975
+ };
119976
+ query?: {
119977
+ /**
119978
+ * Filter jobs by their current status.
119979
+ */
119980
+ status?: MediaJobStatus;
119981
+ /**
119982
+ * Return only the jobs started by this automation run (its root run), so one pipeline run reads as one batch.
119983
+ */
119984
+ pipeline_run_id?: string;
119985
+ /**
119986
+ * Maximum entries in this page, from 1 through 100; defaults to 100.
119987
+ */
119988
+ limit?: number;
119989
+ /**
119990
+ * Job id from the previous page’s next_cursor; omit for the first page.
119991
+ */
119992
+ cursor?: MediaJobId;
119993
+ };
119994
+ url: '/media/v1/libraries/{library_id}/jobs';
119995
+ };
119996
+ export type MediaListJobsErrors = {
119997
+ /**
119998
+ * A selector, cursor, limit or other parameter is invalid; correct the reported field before retrying.
119999
+ */
120000
+ 400: MediaMediaError;
120001
+ /**
120002
+ * Request failed; see the error code reference.
120003
+ */
120004
+ 402: MediaMediaError;
120005
+ /**
120006
+ * This credential has read-only access to the library; use a write-capable binding for mutations.
120007
+ */
120008
+ 403: MediaMediaError;
120009
+ /**
120010
+ * The library or asset is missing, deleted or belongs to another tenant; verify its identifier and owner.
120011
+ */
120012
+ 404: MediaMediaError;
120013
+ /**
120014
+ * Request failed; see the error code reference.
120015
+ */
120016
+ 409: MediaMediaError;
120017
+ /**
120018
+ * The file exceeds an input limit; provide a smaller source file.
120019
+ */
120020
+ 413: MediaMediaError;
120021
+ /**
120022
+ * This media format is unsupported; provide a supported format.
120023
+ */
120024
+ 415: MediaMediaError;
120025
+ /**
120026
+ * Request failed; see the error code reference.
120027
+ */
120028
+ 422: MediaMediaError;
120029
+ /**
120030
+ * A rate limit was reached; wait before retrying.
120031
+ */
120032
+ 429: MediaMediaError;
120033
+ /**
120034
+ * The requested operation is unsupported; choose a supported method.
120035
+ */
120036
+ 501: MediaMediaError;
120037
+ /**
120038
+ * Request failed; see the error code reference.
120039
+ */
120040
+ 502: MediaMediaError;
120041
+ /**
120042
+ * Historical projections are still being initialized, or library storage is temporarily unavailable; retry shortly and check failureSummary counts_complete.
120043
+ */
120044
+ 503: MediaMediaError;
120045
+ };
120046
+ export type MediaListJobsError = MediaListJobsErrors[keyof MediaListJobsErrors];
120047
+ export type MediaListJobsResponses = {
120048
+ /**
120049
+ * Successful response.
120050
+ */
120051
+ 200: MediaJobPage;
120052
+ };
120053
+ export type MediaListJobsResponse = MediaListJobsResponses[keyof MediaListJobsResponses];
120054
+ export type MediaCancelJobData = {
120055
+ body?: never;
120056
+ path: {
120057
+ /**
120058
+ * Library ID returned by creation.
120059
+ */
120060
+ library_id: string;
120061
+ /**
120062
+ * Job identifier returned by batch or generation creation; the job is resolved within the specified library.
120063
+ */
120064
+ job_id: string;
120065
+ };
120066
+ query?: never;
120067
+ url: '/media/v1/libraries/{library_id}/jobs/{job_id}/cancel';
120068
+ };
120069
+ export type MediaCancelJobErrors = {
120070
+ /**
120071
+ * A selector, cursor, limit or other parameter is invalid; correct the reported field before retrying.
120072
+ */
120073
+ 400: MediaMediaError;
120074
+ /**
120075
+ * Request failed; see the error code reference.
120076
+ */
120077
+ 402: MediaMediaError;
120078
+ /**
120079
+ * This credential has read-only access to the library; use a write-capable binding for mutations.
120080
+ */
120081
+ 403: MediaMediaError;
120082
+ /**
120083
+ * The library or asset is missing, deleted or belongs to another tenant; verify its identifier and owner.
120084
+ */
120085
+ 404: MediaMediaError;
120086
+ /**
120087
+ * Request failed; see the error code reference.
120088
+ */
120089
+ 409: MediaMediaError;
120090
+ /**
120091
+ * The file exceeds an input limit; provide a smaller source file.
120092
+ */
120093
+ 413: MediaMediaError;
120094
+ /**
120095
+ * This media format is unsupported; provide a supported format.
120096
+ */
120097
+ 415: MediaMediaError;
120098
+ /**
120099
+ * Request failed; see the error code reference.
120100
+ */
120101
+ 422: MediaMediaError;
120102
+ /**
120103
+ * A rate limit was reached; wait before retrying.
120104
+ */
120105
+ 429: MediaMediaError;
120106
+ /**
120107
+ * The requested operation is unsupported; choose a supported method.
120108
+ */
120109
+ 501: MediaMediaError;
120110
+ /**
120111
+ * Request failed; see the error code reference.
120112
+ */
120113
+ 502: MediaMediaError;
120114
+ /**
120115
+ * Historical projections are still being initialized, or library storage is temporarily unavailable; retry shortly and check failureSummary counts_complete.
120116
+ */
120117
+ 503: MediaMediaError;
120118
+ };
120119
+ export type MediaCancelJobError = MediaCancelJobErrors[keyof MediaCancelJobErrors];
120120
+ export type MediaCancelJobResponses = {
120121
+ /**
120122
+ * Successful response.
120123
+ */
120124
+ 200: MediaJob;
120125
+ };
120126
+ export type MediaCancelJobResponse = MediaCancelJobResponses[keyof MediaCancelJobResponses];
120127
+ export type MediaGetGenerationCapabilitiesData = {
120128
+ body?: never;
120129
+ path?: never;
120130
+ query?: never;
120131
+ url: '/media/v1/generation/capabilities';
120132
+ };
120133
+ export type MediaGetGenerationCapabilitiesErrors = {
120134
+ /**
120135
+ * A selector, cursor, limit or other parameter is invalid; correct the reported field before retrying.
120136
+ */
120137
+ 400: MediaMediaError;
120138
+ /**
120139
+ * Request failed; see the error code reference.
120140
+ */
120141
+ 402: MediaMediaError;
120142
+ /**
120143
+ * This credential has read-only access to the library; use a write-capable binding for mutations.
120144
+ */
120145
+ 403: MediaMediaError;
120146
+ /**
120147
+ * The library or asset is missing, deleted or belongs to another tenant; verify its identifier and owner.
120148
+ */
120149
+ 404: MediaMediaError;
120150
+ /**
120151
+ * Request failed; see the error code reference.
120152
+ */
120153
+ 409: MediaMediaError;
120154
+ /**
120155
+ * The file exceeds an input limit; provide a smaller source file.
120156
+ */
120157
+ 413: MediaMediaError;
120158
+ /**
120159
+ * This media format is unsupported; provide a supported format.
120160
+ */
120161
+ 415: MediaMediaError;
120162
+ /**
120163
+ * Request failed; see the error code reference.
120164
+ */
120165
+ 422: MediaMediaError;
120166
+ /**
120167
+ * A rate limit was reached; wait before retrying.
120168
+ */
120169
+ 429: MediaMediaError;
120170
+ /**
120171
+ * The requested operation is unsupported; choose a supported method.
120172
+ */
120173
+ 501: MediaMediaError;
120174
+ /**
120175
+ * Request failed; see the error code reference.
120176
+ */
120177
+ 502: MediaMediaError;
120178
+ /**
120179
+ * Historical projections are still being initialized, or library storage is temporarily unavailable; retry shortly and check failureSummary counts_complete.
120180
+ */
120181
+ 503: MediaMediaError;
120182
+ };
120183
+ export type MediaGetGenerationCapabilitiesError = MediaGetGenerationCapabilitiesErrors[keyof MediaGetGenerationCapabilitiesErrors];
120184
+ export type MediaGetGenerationCapabilitiesResponses = {
120185
+ /**
120186
+ * Successful response.
120187
+ */
120188
+ 200: MediaGenerationCapabilities;
120189
+ };
120190
+ export type MediaGetGenerationCapabilitiesResponse = MediaGetGenerationCapabilitiesResponses[keyof MediaGetGenerationCapabilitiesResponses];
120191
+ export type MediaAlignAssetData = {
120192
+ /**
120193
+ * Align two recordings by their sound. The route names the source asset; this body names the reference to align against it. The result is an analysis, not a new asset: nothing is stored, the source is never changed, and the completed job carries the answer in result.
120194
+ */
120195
+ body: {
120196
+ /**
120197
+ * Asset to align against the one the route names. It must be an audio or video asset of the same library, otherwise the request is refused with REFERENCE_TYPE_MISMATCH before a job exists.
120198
+ */
120199
+ reference_asset_id: string;
120200
+ /**
120201
+ * Largest offset to search for, in seconds; omit it to let the model search its full range. Zero and negative values are refused with INVALID_PARAMS.
120202
+ */
120203
+ max_offset_seconds?: number;
120204
+ /**
120205
+ * Stable key so a retried request reuses the same job instead of analysing and charging again; reusing it with different content is rejected.
120206
+ */
120207
+ idempotency_key?: string;
120208
+ };
120209
+ headers?: {
120210
+ /**
120211
+ * Stable key for retrying the same request without creating or charging for another job; reusing it with different request content is rejected. Send it here or as idempotency_key in the body, never both with different values.
120212
+ */
120213
+ 'Idempotency-Key'?: string;
120214
+ };
120215
+ path: {
120216
+ /**
120217
+ * Library ID returned by creation.
120218
+ */
120219
+ library_id: string;
120220
+ /**
120221
+ * 32-character asset ID.
120222
+ */
120223
+ asset_id: string;
120224
+ };
120225
+ query?: never;
120226
+ url: '/media/v1/libraries/{library_id}/assets/{asset_id}/align';
120227
+ };
120228
+ export type MediaAlignAssetErrors = {
120229
+ /**
120230
+ * REFERENCE_TYPE_MISMATCH: the source asset or the reference asset is not an audio or video asset; both must be one of the two. INVALID_PARAMS: reference_asset_id is missing, max_offset_seconds is zero or negative, or the request names an alignment model the generation capabilities do not offer. OPERATION_NOT_SUPPORTED: the platform has published no alignment model, so the request is refused with the model field named. Correct the reported field; nothing was analysed and nothing was charged.
120231
+ */
120232
+ 400: MediaMediaError;
120233
+ /**
120234
+ * INSUFFICIENT_BALANCE: the organization balance cannot cover the estimated cost of this generation or edit; top up and resubmit. Nothing was generated and nothing was charged for this request.
120235
+ */
120236
+ 402: MediaMediaError;
120237
+ /**
120238
+ * This credential has read-only access to the library; use a write-capable binding for mutations.
120239
+ */
120240
+ 403: MediaMediaError;
120241
+ /**
120242
+ * ASSET_NOT_FOUND: the source or the reference asset is missing, deleted or belongs to another library, or the addressed library was not found; verify the identifiers with libraries and assets. A reference asset that cannot be reached answers the same way, never as a hint that it exists elsewhere.
120243
+ */
120244
+ 404: MediaMediaError;
120245
+ /**
120246
+ * MODEL_PENDING or JOB_INVALID_STATE: the chosen model is not ready for this library, or the job cannot start from its current state; wait for the model to become available, or start a new job rather than resuming this one.
120247
+ */
120248
+ 409: MediaMediaError;
120249
+ /**
120250
+ * The file exceeds an input limit; provide a smaller source file.
120251
+ */
120252
+ 413: MediaMediaError;
120253
+ /**
120254
+ * This media format is unsupported; provide a supported format.
120255
+ */
120256
+ 415: MediaMediaError;
120257
+ /**
120258
+ * CONTENT_REJECTED: the provider refused the prompt or the source image under its content policy; change the prompt or the source before retrying. Nothing was generated and nothing was charged.
120259
+ */
120260
+ 422: MediaMediaError;
120261
+ /**
120262
+ * RATE_LIMITED: this library already has its maximum number of running jobs of this type and 50 more waiting, or the provider is throttling requests; Retry-After gives the seconds to wait before retrying. Below that a job past the running limit is accepted and waits (queue_reason concurrency) instead of being refused.
120263
+ */
120264
+ 429: MediaMediaError;
120265
+ /**
120266
+ * The requested operation is unsupported; choose a supported method.
120267
+ */
120268
+ 501: MediaMediaError;
120269
+ /**
120270
+ * Request failed; see the error code reference.
120271
+ */
120272
+ 502: MediaMediaError;
120273
+ /**
120274
+ * Historical projections are still being initialized, or library storage is temporarily unavailable; retry shortly and check failureSummary counts_complete.
120275
+ */
120276
+ 503: MediaMediaError;
120277
+ };
120278
+ export type MediaAlignAssetError = MediaAlignAssetErrors[keyof MediaAlignAssetErrors];
120279
+ export type MediaAlignAssetResponses = {
120280
+ /**
120281
+ * The alignment job is queued. Poll GET /media/v1/libraries/{library_id}/jobs/{job_id} until its status is completed or failed; a completed job carries the answer in result as offset_seconds and confidence, so a caller holding both recordings knows which one to slide. No asset is stored and nothing is overwritten. An alignment with the same source, reference and params answers the job already completed instead of analysing and charging again.
120282
+ */
120283
+ 202: MediaJob;
120284
+ };
120285
+ export type MediaAlignAssetResponse = MediaAlignAssetResponses[keyof MediaAlignAssetResponses];
120286
+ export type MediaGetHlsRenditionsData = {
120287
+ body?: never;
120288
+ path: {
120289
+ /**
120290
+ * Library ID returned by creation.
120291
+ */
120292
+ library_id: string;
120293
+ /**
120294
+ * 32-character asset ID.
120295
+ */
120296
+ asset_id: string;
120297
+ };
120298
+ query?: never;
120299
+ url: '/media/v1/libraries/{library_id}/assets/{asset_id}/hls';
120300
+ };
120301
+ export type MediaGetHlsRenditionsErrors = {
120302
+ /**
120303
+ * A selector, cursor, limit or other parameter is invalid; correct the reported field before retrying.
120304
+ */
120305
+ 400: MediaMediaError;
120306
+ /**
120307
+ * Request failed; see the error code reference.
120308
+ */
120309
+ 402: MediaMediaError;
120310
+ /**
120311
+ * This credential has read-only access to the library; use a write-capable binding for mutations.
120312
+ */
120313
+ 403: MediaMediaError;
120314
+ /**
120315
+ * The library or asset is missing, deleted or belongs to another tenant; verify its identifier and owner.
120316
+ */
120317
+ 404: MediaMediaError;
120318
+ /**
120319
+ * Request failed; see the error code reference.
120320
+ */
120321
+ 409: MediaMediaError;
120322
+ /**
120323
+ * The file exceeds an input limit; provide a smaller source file.
120324
+ */
120325
+ 413: MediaMediaError;
120326
+ /**
120327
+ * This media format is unsupported; provide a supported format.
120328
+ */
120329
+ 415: MediaMediaError;
120330
+ /**
120331
+ * Request failed; see the error code reference.
120332
+ */
120333
+ 422: MediaMediaError;
120334
+ /**
120335
+ * A rate limit was reached; wait before retrying.
120336
+ */
120337
+ 429: MediaMediaError;
120338
+ /**
120339
+ * The requested operation is unsupported; choose a supported method.
120340
+ */
120341
+ 501: MediaMediaError;
120342
+ /**
120343
+ * Request failed; see the error code reference.
120344
+ */
120345
+ 502: MediaMediaError;
120346
+ /**
120347
+ * Historical projections are still being initialized, or library storage is temporarily unavailable; retry shortly and check failureSummary counts_complete.
120348
+ */
120349
+ 503: MediaMediaError;
120350
+ };
120351
+ export type MediaGetHlsRenditionsError = MediaGetHlsRenditionsErrors[keyof MediaGetHlsRenditionsErrors];
120352
+ export type MediaGetHlsRenditionsResponses = {
120353
+ /**
120354
+ * Successful response.
120355
+ */
120356
+ 200: MediaHlsLadder;
120357
+ };
120358
+ export type MediaGetHlsRenditionsResponse = MediaGetHlsRenditionsResponses[keyof MediaGetHlsRenditionsResponses];
120359
+ export type MediaRequestHlsRenditionsData = {
120360
+ /**
120361
+ * Which clarity rungs to build for the asset. Omit heights to build the whole ladder.
120362
+ */
120363
+ body: {
120364
+ /**
120365
+ * The clarity rungs to build: a non-empty subset of 480, 720 and 1080 with no repeats. Omitted or empty builds all three. The ladder never upscales, so a rung above the source’s short side is dropped.
120366
+ */
120367
+ heights?: Array<480 | 720 | 1080>;
120368
+ };
120369
+ path: {
120370
+ /**
120371
+ * Library ID returned by creation.
120372
+ */
120373
+ library_id: string;
120374
+ /**
120375
+ * 32-character asset ID.
120376
+ */
120377
+ asset_id: string;
120378
+ };
120379
+ query?: never;
120380
+ url: '/media/v1/libraries/{library_id}/assets/{asset_id}/hls';
120381
+ };
120382
+ export type MediaRequestHlsRenditionsErrors = {
120383
+ /**
120384
+ * A selector, cursor, limit or other parameter is invalid; correct the reported field before retrying.
120385
+ */
120386
+ 400: MediaMediaError;
120387
+ /**
120388
+ * Request failed; see the error code reference.
120389
+ */
120390
+ 402: MediaMediaError;
120391
+ /**
120392
+ * This credential has read-only access to the library; use a write-capable binding for mutations.
120393
+ */
120394
+ 403: MediaMediaError;
120395
+ /**
120396
+ * The library or asset is missing, deleted or belongs to another tenant; verify its identifier and owner.
120397
+ */
120398
+ 404: MediaMediaError;
120399
+ /**
120400
+ * Request failed; see the error code reference.
120401
+ */
120402
+ 409: MediaMediaError;
120403
+ /**
120404
+ * The file exceeds an input limit; provide a smaller source file.
120405
+ */
120406
+ 413: MediaMediaError;
120407
+ /**
120408
+ * This media format is unsupported; provide a supported format.
120409
+ */
120410
+ 415: MediaMediaError;
120411
+ /**
120412
+ * Request failed; see the error code reference.
120413
+ */
120414
+ 422: MediaMediaError;
120415
+ /**
120416
+ * A rate limit was reached; wait before retrying.
120417
+ */
120418
+ 429: MediaMediaError;
120419
+ /**
120420
+ * The requested operation is unsupported; choose a supported method.
120421
+ */
120422
+ 501: MediaMediaError;
120423
+ /**
120424
+ * Request failed; see the error code reference.
120425
+ */
120426
+ 502: MediaMediaError;
120427
+ /**
120428
+ * Historical projections are still being initialized, or library storage is temporarily unavailable; retry shortly and check failureSummary counts_complete.
120429
+ */
120430
+ 503: MediaMediaError;
120431
+ };
120432
+ export type MediaRequestHlsRenditionsError = MediaRequestHlsRenditionsErrors[keyof MediaRequestHlsRenditionsErrors];
120433
+ export type MediaRequestHlsRenditionsResponses = {
118820
120434
  /**
118821
120435
  * Successful response.
118822
120436
  */
118823
- 200: MediaUnderstandingPage;
120437
+ 202: MediaHlsLadder;
118824
120438
  };
118825
- export type MediaListUnderstandingsByLibraryResponse = MediaListUnderstandingsByLibraryResponses[keyof MediaListUnderstandingsByLibraryResponses];
118826
- export type MediaListJobsData = {
118827
- body?: never;
118828
- path: {
120439
+ export type MediaRequestHlsRenditionsResponse = MediaRequestHlsRenditionsResponses[keyof MediaRequestHlsRenditionsResponses];
120440
+ export type MediaCreateVoiceData = {
120441
+ /**
120442
+ * Exactly one of the two voice shapes: consent_id with samples (a consented voice) or design_asset_id (a generated voice).
120443
+ */
120444
+ body: MediaVoiceCloneInput | MediaVoiceDesignCreateInput;
120445
+ headers?: {
118829
120446
  /**
118830
- * Library ID returned by creation.
120447
+ * Stable key for retrying the same request without creating or charging for another job; reusing it with different request content is rejected. Send it here or as idempotency_key in the body, never both with different values.
118831
120448
  */
118832
- library_id: string;
120449
+ 'Idempotency-Key'?: string;
118833
120450
  };
118834
- query?: {
118835
- /**
118836
- * Filter jobs by their current status.
118837
- */
118838
- status?: MediaJobStatus;
118839
- /**
118840
- * Return only the jobs started by this automation run (its root run), so one pipeline run reads as one batch.
118841
- */
118842
- pipeline_run_id?: string;
118843
- /**
118844
- * Maximum entries in this page, from 1 through 100; defaults to 100.
118845
- */
118846
- limit?: number;
120451
+ path: {
118847
120452
  /**
118848
- * Job id from the previous page’s next_cursor; omit for the first page.
120453
+ * Library ID returned by creation.
118849
120454
  */
118850
- cursor?: MediaJobId;
120455
+ library_id: string;
118851
120456
  };
118852
- url: '/media/v1/libraries/{library_id}/jobs';
120457
+ query?: never;
120458
+ url: '/media/v1/libraries/{library_id}/voices';
118853
120459
  };
118854
- export type MediaListJobsErrors = {
120460
+ export type MediaCreateVoiceErrors = {
118855
120461
  /**
118856
- * A selector, cursor, limit or other parameter is invalid; correct the reported field before retrying.
120462
+ * Request failed; see the error code reference.
118857
120463
  */
118858
120464
  400: MediaMediaError;
118859
120465
  /**
@@ -118861,11 +120467,11 @@ export type MediaListJobsErrors = {
118861
120467
  */
118862
120468
  402: MediaMediaError;
118863
120469
  /**
118864
- * This credential has read-only access to the library; use a write-capable binding for mutations.
120470
+ * Request failed; see the error code reference.
118865
120471
  */
118866
120472
  403: MediaMediaError;
118867
120473
  /**
118868
- * The library or asset is missing, deleted or belongs to another tenant; verify its identifier and owner.
120474
+ * Request failed; see the error code reference.
118869
120475
  */
118870
120476
  404: MediaMediaError;
118871
120477
  /**
@@ -118873,11 +120479,11 @@ export type MediaListJobsErrors = {
118873
120479
  */
118874
120480
  409: MediaMediaError;
118875
120481
  /**
118876
- * The file exceeds an input limit; provide a smaller source file.
120482
+ * Request failed; see the error code reference.
118877
120483
  */
118878
120484
  413: MediaMediaError;
118879
120485
  /**
118880
- * This media format is unsupported; provide a supported format.
120486
+ * Request failed; see the error code reference.
118881
120487
  */
118882
120488
  415: MediaMediaError;
118883
120489
  /**
@@ -118885,11 +120491,11 @@ export type MediaListJobsErrors = {
118885
120491
  */
118886
120492
  422: MediaMediaError;
118887
120493
  /**
118888
- * A rate limit was reached; wait before retrying.
120494
+ * Request failed; see the error code reference.
118889
120495
  */
118890
120496
  429: MediaMediaError;
118891
120497
  /**
118892
- * The requested operation is unsupported; choose a supported method.
120498
+ * Request failed; see the error code reference.
118893
120499
  */
118894
120500
  501: MediaMediaError;
118895
120501
  /**
@@ -118897,36 +120503,58 @@ export type MediaListJobsErrors = {
118897
120503
  */
118898
120504
  502: MediaMediaError;
118899
120505
  /**
118900
- * Historical projections are still being initialized, or library storage is temporarily unavailable; retry shortly and check failureSummary counts_complete.
120506
+ * Request failed; see the error code reference.
118901
120507
  */
118902
120508
  503: MediaMediaError;
118903
120509
  };
118904
- export type MediaListJobsError = MediaListJobsErrors[keyof MediaListJobsErrors];
118905
- export type MediaListJobsResponses = {
120510
+ export type MediaCreateVoiceError = MediaCreateVoiceErrors[keyof MediaCreateVoiceErrors];
120511
+ export type MediaCreateVoiceResponses = {
118906
120512
  /**
118907
120513
  * Successful response.
118908
120514
  */
118909
- 200: MediaJobPage;
120515
+ 202: MediaJob;
118910
120516
  };
118911
- export type MediaListJobsResponse = MediaListJobsResponses[keyof MediaListJobsResponses];
118912
- export type MediaCancelJobData = {
118913
- body?: never;
120517
+ export type MediaCreateVoiceResponse = MediaCreateVoiceResponses[keyof MediaCreateVoiceResponses];
120518
+ export type MediaDesignVoiceData = {
120519
+ /**
120520
+ * One voice-design run: what the voice should sound like and the line the previews speak.
120521
+ */
120522
+ body: {
120523
+ /**
120524
+ * Text description of the voice to design, 1 to 500 characters. The model makes every preview from it; a description that fails review answers CONTENT_REJECTED.
120525
+ */
120526
+ description: string;
120527
+ /**
120528
+ * Line each preview speaks, 15 to 200 characters: long enough to hear the voice, short enough for one model call.
120529
+ */
120530
+ preview_text: string;
120531
+ /**
120532
+ * Language the previews speak: zh or en only.
120533
+ */
120534
+ language: 'zh' | 'en';
120535
+ /**
120536
+ * How many preview recordings to design, 1 to 3; defaults to 3. Each one is stored as an audio asset.
120537
+ */
120538
+ count?: number;
120539
+ };
120540
+ headers?: {
120541
+ /**
120542
+ * Stable key for retrying the same request without creating or charging for another job; reusing it with different request content is rejected. Send it here or as idempotency_key in the body, never both with different values.
120543
+ */
120544
+ 'Idempotency-Key'?: string;
120545
+ };
118914
120546
  path: {
118915
120547
  /**
118916
120548
  * Library ID returned by creation.
118917
120549
  */
118918
120550
  library_id: string;
118919
- /**
118920
- * Job identifier returned by batch or generation creation; the job is resolved within the specified library.
118921
- */
118922
- job_id: string;
118923
120551
  };
118924
120552
  query?: never;
118925
- url: '/media/v1/libraries/{library_id}/jobs/{job_id}/cancel';
120553
+ url: '/media/v1/libraries/{library_id}/voices/designs';
118926
120554
  };
118927
- export type MediaCancelJobErrors = {
120555
+ export type MediaDesignVoiceErrors = {
118928
120556
  /**
118929
- * A selector, cursor, limit or other parameter is invalid; correct the reported field before retrying.
120557
+ * Request failed; see the error code reference.
118930
120558
  */
118931
120559
  400: MediaMediaError;
118932
120560
  /**
@@ -118934,11 +120562,11 @@ export type MediaCancelJobErrors = {
118934
120562
  */
118935
120563
  402: MediaMediaError;
118936
120564
  /**
118937
- * This credential has read-only access to the library; use a write-capable binding for mutations.
120565
+ * Request failed; see the error code reference.
118938
120566
  */
118939
120567
  403: MediaMediaError;
118940
120568
  /**
118941
- * The library or asset is missing, deleted or belongs to another tenant; verify its identifier and owner.
120569
+ * Request failed; see the error code reference.
118942
120570
  */
118943
120571
  404: MediaMediaError;
118944
120572
  /**
@@ -118946,11 +120574,11 @@ export type MediaCancelJobErrors = {
118946
120574
  */
118947
120575
  409: MediaMediaError;
118948
120576
  /**
118949
- * The file exceeds an input limit; provide a smaller source file.
120577
+ * Request failed; see the error code reference.
118950
120578
  */
118951
120579
  413: MediaMediaError;
118952
120580
  /**
118953
- * This media format is unsupported; provide a supported format.
120581
+ * Request failed; see the error code reference.
118954
120582
  */
118955
120583
  415: MediaMediaError;
118956
120584
  /**
@@ -118958,11 +120586,11 @@ export type MediaCancelJobErrors = {
118958
120586
  */
118959
120587
  422: MediaMediaError;
118960
120588
  /**
118961
- * A rate limit was reached; wait before retrying.
120589
+ * Request failed; see the error code reference.
118962
120590
  */
118963
120591
  429: MediaMediaError;
118964
120592
  /**
118965
- * The requested operation is unsupported; choose a supported method.
120593
+ * Request failed; see the error code reference.
118966
120594
  */
118967
120595
  501: MediaMediaError;
118968
120596
  /**
@@ -118970,25 +120598,51 @@ export type MediaCancelJobErrors = {
118970
120598
  */
118971
120599
  502: MediaMediaError;
118972
120600
  /**
118973
- * Historical projections are still being initialized, or library storage is temporarily unavailable; retry shortly and check failureSummary counts_complete.
120601
+ * Request failed; see the error code reference.
118974
120602
  */
118975
120603
  503: MediaMediaError;
118976
120604
  };
118977
- export type MediaCancelJobError = MediaCancelJobErrors[keyof MediaCancelJobErrors];
118978
- export type MediaCancelJobResponses = {
120605
+ export type MediaDesignVoiceError = MediaDesignVoiceErrors[keyof MediaDesignVoiceErrors];
120606
+ export type MediaDesignVoiceResponses = {
118979
120607
  /**
118980
120608
  * Successful response.
118981
120609
  */
118982
- 200: MediaJob;
120610
+ 202: MediaJob;
118983
120611
  };
118984
- export type MediaCancelJobResponse = MediaCancelJobResponses[keyof MediaCancelJobResponses];
118985
- export type MediaGetGenerationCapabilitiesData = {
120612
+ export type MediaDesignVoiceResponse = MediaDesignVoiceResponses[keyof MediaDesignVoiceResponses];
120613
+ export type MediaListWorksData = {
118986
120614
  body?: never;
118987
- path?: never;
118988
- query?: never;
118989
- url: '/media/v1/generation/capabilities';
120615
+ path: {
120616
+ /**
120617
+ * Library ID returned by creation.
120618
+ */
120619
+ library_id: string;
120620
+ };
120621
+ query?: {
120622
+ /**
120623
+ * Only works of this kind: gallery, article, product_listing or blocks.
120624
+ */
120625
+ kind?: 'gallery' | 'article' | 'product_listing' | 'blocks';
120626
+ /**
120627
+ * Only works of this series.
120628
+ */
120629
+ series?: string;
120630
+ /**
120631
+ * Only works whose title contains this text, at most 100 characters.
120632
+ */
120633
+ q?: string;
120634
+ /**
120635
+ * Maximum entries in this page, from 1 through 100; defaults to 100.
120636
+ */
120637
+ limit?: number;
120638
+ /**
120639
+ * Cursor from the previous next_cursor.
120640
+ */
120641
+ cursor?: string;
120642
+ };
120643
+ url: '/media/v1/libraries/{library_id}/works';
118990
120644
  };
118991
- export type MediaGetGenerationCapabilitiesErrors = {
120645
+ export type MediaListWorksErrors = {
118992
120646
  /**
118993
120647
  * A selector, cursor, limit or other parameter is invalid; correct the reported field before retrying.
118994
120648
  */
@@ -119038,58 +120692,52 @@ export type MediaGetGenerationCapabilitiesErrors = {
119038
120692
  */
119039
120693
  503: MediaMediaError;
119040
120694
  };
119041
- export type MediaGetGenerationCapabilitiesError = MediaGetGenerationCapabilitiesErrors[keyof MediaGetGenerationCapabilitiesErrors];
119042
- export type MediaGetGenerationCapabilitiesResponses = {
120695
+ export type MediaListWorksError = MediaListWorksErrors[keyof MediaListWorksErrors];
120696
+ export type MediaListWorksResponses = {
119043
120697
  /**
119044
120698
  * Successful response.
119045
120699
  */
119046
- 200: MediaGenerationCapabilities;
120700
+ 200: MediaWorkPage;
119047
120701
  };
119048
- export type MediaGetGenerationCapabilitiesResponse = MediaGetGenerationCapabilitiesResponses[keyof MediaGetGenerationCapabilitiesResponses];
119049
- export type MediaAlignAssetData = {
120702
+ export type MediaListWorksResponse = MediaListWorksResponses[keyof MediaListWorksResponses];
120703
+ export type MediaCreateWorkData = {
119050
120704
  /**
119051
- * Align two recordings by their sound. The route names the source asset; this body names the reference to align against it. The result is an analysis, not a new asset: nothing is stored, the source is never changed, and the completed job carries the answer in result.
120705
+ * A new work: its kind and its whole body, with an optional series and custom fields.
119052
120706
  */
119053
120707
  body: {
119054
120708
  /**
119055
- * Asset to align against the one the route names. It must be an audio or video asset of the same library, otherwise the request is refused with REFERENCE_TYPE_MISMATCH before a job exists.
120709
+ * The work’s kind; it decides which body fields are accepted.
119056
120710
  */
119057
- reference_asset_id: string;
120711
+ kind: MediaWorkKind;
119058
120712
  /**
119059
- * Largest offset to search for, in seconds; omit it to let the model search its full range. Zero and negative values are refused with INVALID_PARAMS.
120713
+ * The kind’s body. Every asset it names must be a live asset of this library of the fitting type, or the request is refused with ASSET_NOT_FOUND or REFERENCE_TYPE_MISMATCH naming every bad reference, and nothing is saved.
119060
120714
  */
119061
- max_offset_seconds?: number;
120715
+ body: MediaWorkBody;
119062
120716
  /**
119063
- * Stable key so a retried request reuses the same job instead of analysing and charging again; reusing it with different content is rejected.
120717
+ * Groups the platform versions of one story: 1 to 64 characters of a-z, 0-9, _ and -.
119064
120718
  */
119065
- idempotency_key?: string;
119066
- };
119067
- headers?: {
120719
+ series?: string;
119068
120720
  /**
119069
- * Stable key for retrying the same request without creating or charging for another job; reusing it with different request content is rejected. Send it here or as idempotency_key in the body, never both with different values.
120721
+ * Caller data such as source, published links and numbers; at most 50 keys and 16 KB as JSON.
119070
120722
  */
119071
- 'Idempotency-Key'?: string;
120723
+ custom?: MediaWorkCustom;
119072
120724
  };
119073
120725
  path: {
119074
120726
  /**
119075
120727
  * Library ID returned by creation.
119076
120728
  */
119077
120729
  library_id: string;
119078
- /**
119079
- * 32-character asset ID.
119080
- */
119081
- asset_id: string;
119082
120730
  };
119083
120731
  query?: never;
119084
- url: '/media/v1/libraries/{library_id}/assets/{asset_id}/align';
120732
+ url: '/media/v1/libraries/{library_id}/works';
119085
120733
  };
119086
- export type MediaAlignAssetErrors = {
120734
+ export type MediaCreateWorkErrors = {
119087
120735
  /**
119088
- * REFERENCE_TYPE_MISMATCH: the source asset or the reference asset is not an audio or video asset; both must be one of the two. INVALID_PARAMS: reference_asset_id is missing, max_offset_seconds is zero or negative, or the request names an alignment model the generation capabilities do not offer. OPERATION_NOT_SUPPORTED: the platform has published no alignment model, so the request is refused with the model field named. Correct the reported field; nothing was analysed and nothing was charged.
120736
+ * A selector, cursor, limit or other parameter is invalid; correct the reported field before retrying.
119089
120737
  */
119090
120738
  400: MediaMediaError;
119091
120739
  /**
119092
- * INSUFFICIENT_BALANCE: the organization balance cannot cover the estimated cost of this generation or edit; top up and resubmit. Nothing was generated and nothing was charged for this request.
120740
+ * Request failed; see the error code reference.
119093
120741
  */
119094
120742
  402: MediaMediaError;
119095
120743
  /**
@@ -119097,11 +120745,11 @@ export type MediaAlignAssetErrors = {
119097
120745
  */
119098
120746
  403: MediaMediaError;
119099
120747
  /**
119100
- * ASSET_NOT_FOUND: the source or the reference asset is missing, deleted or belongs to another library, or the addressed library was not found; verify the identifiers with libraries and assets. A reference asset that cannot be reached answers the same way, never as a hint that it exists elsewhere.
120748
+ * The library or asset is missing, deleted or belongs to another tenant; verify its identifier and owner.
119101
120749
  */
119102
120750
  404: MediaMediaError;
119103
120751
  /**
119104
- * MODEL_PENDING or JOB_INVALID_STATE: the chosen model is not ready for this library, or the job cannot start from its current state; wait for the model to become available, or start a new job rather than resuming this one.
120752
+ * Request failed; see the error code reference.
119105
120753
  */
119106
120754
  409: MediaMediaError;
119107
120755
  /**
@@ -119113,11 +120761,11 @@ export type MediaAlignAssetErrors = {
119113
120761
  */
119114
120762
  415: MediaMediaError;
119115
120763
  /**
119116
- * CONTENT_REJECTED: the provider refused the prompt or the source image under its content policy; change the prompt or the source before retrying. Nothing was generated and nothing was charged.
120764
+ * Request failed; see the error code reference.
119117
120765
  */
119118
120766
  422: MediaMediaError;
119119
120767
  /**
119120
- * RATE_LIMITED: this library already has its maximum number of running jobs of this type and 50 more waiting, or the provider is throttling requests; Retry-After gives the seconds to wait before retrying. Below that a job past the running limit is accepted and waits (queue_reason concurrency) instead of being refused.
120768
+ * A rate limit was reached; wait before retrying.
119121
120769
  */
119122
120770
  429: MediaMediaError;
119123
120771
  /**
@@ -119133,15 +120781,15 @@ export type MediaAlignAssetErrors = {
119133
120781
  */
119134
120782
  503: MediaMediaError;
119135
120783
  };
119136
- export type MediaAlignAssetError = MediaAlignAssetErrors[keyof MediaAlignAssetErrors];
119137
- export type MediaAlignAssetResponses = {
120784
+ export type MediaCreateWorkError = MediaCreateWorkErrors[keyof MediaCreateWorkErrors];
120785
+ export type MediaCreateWorkResponses = {
119138
120786
  /**
119139
- * The alignment job is queued. Poll GET /media/v1/libraries/{library_id}/jobs/{job_id} until its status is completed or failed; a completed job carries the answer in result as offset_seconds and confidence, so a caller holding both recordings knows which one to slide. No asset is stored and nothing is overwritten. An alignment with the same source, reference and params answers the job already completed instead of analysing and charging again.
120787
+ * Successful response.
119140
120788
  */
119141
- 202: MediaJob;
120789
+ 200: MediaWork;
119142
120790
  };
119143
- export type MediaAlignAssetResponse = MediaAlignAssetResponses[keyof MediaAlignAssetResponses];
119144
- export type MediaGetHlsRenditionsData = {
120791
+ export type MediaCreateWorkResponse = MediaCreateWorkResponses[keyof MediaCreateWorkResponses];
120792
+ export type MediaDeleteWorkData = {
119145
120793
  body?: never;
119146
120794
  path: {
119147
120795
  /**
@@ -119149,14 +120797,14 @@ export type MediaGetHlsRenditionsData = {
119149
120797
  */
119150
120798
  library_id: string;
119151
120799
  /**
119152
- * 32-character asset ID.
120800
+ * Work id (wrk_…) returned by creation or listing.
119153
120801
  */
119154
- asset_id: string;
120802
+ work_id: string;
119155
120803
  };
119156
120804
  query?: never;
119157
- url: '/media/v1/libraries/{library_id}/assets/{asset_id}/hls';
120805
+ url: '/media/v1/libraries/{library_id}/works/{work_id}';
119158
120806
  };
119159
- export type MediaGetHlsRenditionsErrors = {
120807
+ export type MediaDeleteWorkErrors = {
119160
120808
  /**
119161
120809
  * A selector, cursor, limit or other parameter is invalid; correct the reported field before retrying.
119162
120810
  */
@@ -119206,38 +120854,35 @@ export type MediaGetHlsRenditionsErrors = {
119206
120854
  */
119207
120855
  503: MediaMediaError;
119208
120856
  };
119209
- export type MediaGetHlsRenditionsError = MediaGetHlsRenditionsErrors[keyof MediaGetHlsRenditionsErrors];
119210
- export type MediaGetHlsRenditionsResponses = {
120857
+ export type MediaDeleteWorkError = MediaDeleteWorkErrors[keyof MediaDeleteWorkErrors];
120858
+ export type MediaDeleteWorkResponses = {
119211
120859
  /**
119212
120860
  * Successful response.
119213
120861
  */
119214
- 200: MediaHlsLadder;
120862
+ 200: MediaDeletedWork;
119215
120863
  };
119216
- export type MediaGetHlsRenditionsResponse = MediaGetHlsRenditionsResponses[keyof MediaGetHlsRenditionsResponses];
119217
- export type MediaRequestHlsRenditionsData = {
119218
- /**
119219
- * Which clarity rungs to build for the asset. Omit heights to build the whole ladder.
119220
- */
119221
- body: {
119222
- /**
119223
- * The clarity rungs to build: a non-empty subset of 480, 720 and 1080 with no repeats. Omitted or empty builds all three. The ladder never upscales, so a rung above the source’s short side is dropped.
119224
- */
119225
- heights?: Array<480 | 720 | 1080>;
119226
- };
120864
+ export type MediaDeleteWorkResponse = MediaDeleteWorkResponses[keyof MediaDeleteWorkResponses];
120865
+ export type MediaGetWorkData = {
120866
+ body?: never;
119227
120867
  path: {
119228
120868
  /**
119229
120869
  * Library ID returned by creation.
119230
120870
  */
119231
120871
  library_id: string;
119232
120872
  /**
119233
- * 32-character asset ID.
120873
+ * Work id (wrk_…) returned by creation or listing.
119234
120874
  */
119235
- asset_id: string;
120875
+ work_id: string;
119236
120876
  };
119237
- query?: never;
119238
- url: '/media/v1/libraries/{library_id}/assets/{asset_id}/hls';
120877
+ query?: {
120878
+ /**
120879
+ * assets returns every referenced asset with its URLs and size.
120880
+ */
120881
+ expand?: string;
120882
+ };
120883
+ url: '/media/v1/libraries/{library_id}/works/{work_id}';
119239
120884
  };
119240
- export type MediaRequestHlsRenditionsErrors = {
120885
+ export type MediaGetWorkErrors = {
119241
120886
  /**
119242
120887
  * A selector, cursor, limit or other parameter is invalid; correct the reported field before retrying.
119243
120888
  */
@@ -119287,37 +120932,52 @@ export type MediaRequestHlsRenditionsErrors = {
119287
120932
  */
119288
120933
  503: MediaMediaError;
119289
120934
  };
119290
- export type MediaRequestHlsRenditionsError = MediaRequestHlsRenditionsErrors[keyof MediaRequestHlsRenditionsErrors];
119291
- export type MediaRequestHlsRenditionsResponses = {
120935
+ export type MediaGetWorkError = MediaGetWorkErrors[keyof MediaGetWorkErrors];
120936
+ export type MediaGetWorkResponses = {
119292
120937
  /**
119293
120938
  * Successful response.
119294
120939
  */
119295
- 202: MediaHlsLadder;
120940
+ 200: MediaWork;
119296
120941
  };
119297
- export type MediaRequestHlsRenditionsResponse = MediaRequestHlsRenditionsResponses[keyof MediaRequestHlsRenditionsResponses];
119298
- export type MediaCreateVoiceData = {
120942
+ export type MediaGetWorkResponse = MediaGetWorkResponses[keyof MediaGetWorkResponses];
120943
+ export type MediaUpdateWorkData = {
119299
120944
  /**
119300
- * Exactly one of the two voice shapes: consent_id with samples (a consented voice) or design_asset_id (a generated voice).
120945
+ * Changes to a work. Send only what changes.
119301
120946
  */
119302
- body: MediaVoiceCloneInput | MediaVoiceDesignCreateInput;
119303
- headers?: {
120947
+ body: {
119304
120948
  /**
119305
- * Stable key for retrying the same request without creating or charging for another job; reusing it with different request content is rejected. Send it here or as idempotency_key in the body, never both with different values.
120949
+ * A whole new body for the same kind; it replaces the old one and is checked like a new one.
119306
120950
  */
119307
- 'Idempotency-Key'?: string;
120951
+ body?: MediaWorkBody;
120952
+ /**
120953
+ * A new series, or null to clear it.
120954
+ */
120955
+ series?: string | null;
120956
+ /**
120957
+ * A JSON Merge Patch (RFC 7396): keys you send are set, keys set to null are removed, keys you leave out are kept.
120958
+ */
120959
+ custom?: MediaWorkCustom;
120960
+ /**
120961
+ * Apply the change only if the work is still at this revision; otherwise the answer is 409 REVISION_CONFLICT with the current revision.
120962
+ */
120963
+ if_revision?: number;
119308
120964
  };
119309
120965
  path: {
119310
120966
  /**
119311
120967
  * Library ID returned by creation.
119312
120968
  */
119313
120969
  library_id: string;
120970
+ /**
120971
+ * Work id (wrk_…) returned by creation or listing.
120972
+ */
120973
+ work_id: string;
119314
120974
  };
119315
120975
  query?: never;
119316
- url: '/media/v1/libraries/{library_id}/voices';
120976
+ url: '/media/v1/libraries/{library_id}/works/{work_id}';
119317
120977
  };
119318
- export type MediaCreateVoiceErrors = {
120978
+ export type MediaUpdateWorkErrors = {
119319
120979
  /**
119320
- * Request failed; see the error code reference.
120980
+ * A selector, cursor, limit or other parameter is invalid; correct the reported field before retrying.
119321
120981
  */
119322
120982
  400: MediaMediaError;
119323
120983
  /**
@@ -119325,11 +120985,11 @@ export type MediaCreateVoiceErrors = {
119325
120985
  */
119326
120986
  402: MediaMediaError;
119327
120987
  /**
119328
- * Request failed; see the error code reference.
120988
+ * This credential has read-only access to the library; use a write-capable binding for mutations.
119329
120989
  */
119330
120990
  403: MediaMediaError;
119331
120991
  /**
119332
- * Request failed; see the error code reference.
120992
+ * The library or asset is missing, deleted or belongs to another tenant; verify its identifier and owner.
119333
120993
  */
119334
120994
  404: MediaMediaError;
119335
120995
  /**
@@ -119337,11 +120997,11 @@ export type MediaCreateVoiceErrors = {
119337
120997
  */
119338
120998
  409: MediaMediaError;
119339
120999
  /**
119340
- * Request failed; see the error code reference.
121000
+ * The file exceeds an input limit; provide a smaller source file.
119341
121001
  */
119342
121002
  413: MediaMediaError;
119343
121003
  /**
119344
- * Request failed; see the error code reference.
121004
+ * This media format is unsupported; provide a supported format.
119345
121005
  */
119346
121006
  415: MediaMediaError;
119347
121007
  /**
@@ -119349,11 +121009,11 @@ export type MediaCreateVoiceErrors = {
119349
121009
  */
119350
121010
  422: MediaMediaError;
119351
121011
  /**
119352
- * Request failed; see the error code reference.
121012
+ * A rate limit was reached; wait before retrying.
119353
121013
  */
119354
121014
  429: MediaMediaError;
119355
121015
  /**
119356
- * Request failed; see the error code reference.
121016
+ * The requested operation is unsupported; choose a supported method.
119357
121017
  */
119358
121018
  501: MediaMediaError;
119359
121019
  /**
@@ -119361,58 +121021,45 @@ export type MediaCreateVoiceErrors = {
119361
121021
  */
119362
121022
  502: MediaMediaError;
119363
121023
  /**
119364
- * Request failed; see the error code reference.
121024
+ * Historical projections are still being initialized, or library storage is temporarily unavailable; retry shortly and check failureSummary counts_complete.
119365
121025
  */
119366
121026
  503: MediaMediaError;
119367
121027
  };
119368
- export type MediaCreateVoiceError = MediaCreateVoiceErrors[keyof MediaCreateVoiceErrors];
119369
- export type MediaCreateVoiceResponses = {
121028
+ export type MediaUpdateWorkError = MediaUpdateWorkErrors[keyof MediaUpdateWorkErrors];
121029
+ export type MediaUpdateWorkResponses = {
119370
121030
  /**
119371
121031
  * Successful response.
119372
121032
  */
119373
- 202: MediaJob;
121033
+ 200: MediaWork;
119374
121034
  };
119375
- export type MediaCreateVoiceResponse = MediaCreateVoiceResponses[keyof MediaCreateVoiceResponses];
119376
- export type MediaDesignVoiceData = {
119377
- /**
119378
- * One voice-design run: what the voice should sound like and the line the previews speak.
119379
- */
119380
- body: {
119381
- /**
119382
- * Text description of the voice to design, 1 to 500 characters. The model makes every preview from it; a description that fails review answers CONTENT_REJECTED.
119383
- */
119384
- description: string;
119385
- /**
119386
- * Line each preview speaks, 15 to 200 characters: long enough to hear the voice, short enough for one model call.
119387
- */
119388
- preview_text: string;
121035
+ export type MediaUpdateWorkResponse = MediaUpdateWorkResponses[keyof MediaUpdateWorkResponses];
121036
+ export type MediaListAssetWorksData = {
121037
+ body?: never;
121038
+ path: {
119389
121039
  /**
119390
- * Language the previews speak: zh or en only.
121040
+ * Library ID returned by creation.
119391
121041
  */
119392
- language: 'zh' | 'en';
121042
+ library_id: string;
119393
121043
  /**
119394
- * How many preview recordings to design, 1 to 3; defaults to 3. Each one is stored as an audio asset.
121044
+ * 32-character asset ID.
119395
121045
  */
119396
- count?: number;
121046
+ asset_id: string;
119397
121047
  };
119398
- headers?: {
121048
+ query?: {
119399
121049
  /**
119400
- * Stable key for retrying the same request without creating or charging for another job; reusing it with different request content is rejected. Send it here or as idempotency_key in the body, never both with different values.
121050
+ * Maximum entries in this page, from 1 through 100; defaults to 100.
119401
121051
  */
119402
- 'Idempotency-Key'?: string;
119403
- };
119404
- path: {
121052
+ limit?: number;
119405
121053
  /**
119406
- * Library ID returned by creation.
121054
+ * Cursor from the previous next_cursor.
119407
121055
  */
119408
- library_id: string;
121056
+ cursor?: string;
119409
121057
  };
119410
- query?: never;
119411
- url: '/media/v1/libraries/{library_id}/voices/designs';
121058
+ url: '/media/v1/libraries/{library_id}/assets/{asset_id}/works';
119412
121059
  };
119413
- export type MediaDesignVoiceErrors = {
121060
+ export type MediaListAssetWorksErrors = {
119414
121061
  /**
119415
- * Request failed; see the error code reference.
121062
+ * A selector, cursor, limit or other parameter is invalid; correct the reported field before retrying.
119416
121063
  */
119417
121064
  400: MediaMediaError;
119418
121065
  /**
@@ -119420,11 +121067,11 @@ export type MediaDesignVoiceErrors = {
119420
121067
  */
119421
121068
  402: MediaMediaError;
119422
121069
  /**
119423
- * Request failed; see the error code reference.
121070
+ * This credential has read-only access to the library; use a write-capable binding for mutations.
119424
121071
  */
119425
121072
  403: MediaMediaError;
119426
121073
  /**
119427
- * Request failed; see the error code reference.
121074
+ * The library or asset is missing, deleted or belongs to another tenant; verify its identifier and owner.
119428
121075
  */
119429
121076
  404: MediaMediaError;
119430
121077
  /**
@@ -119432,11 +121079,11 @@ export type MediaDesignVoiceErrors = {
119432
121079
  */
119433
121080
  409: MediaMediaError;
119434
121081
  /**
119435
- * Request failed; see the error code reference.
121082
+ * The file exceeds an input limit; provide a smaller source file.
119436
121083
  */
119437
121084
  413: MediaMediaError;
119438
121085
  /**
119439
- * Request failed; see the error code reference.
121086
+ * This media format is unsupported; provide a supported format.
119440
121087
  */
119441
121088
  415: MediaMediaError;
119442
121089
  /**
@@ -119444,11 +121091,11 @@ export type MediaDesignVoiceErrors = {
119444
121091
  */
119445
121092
  422: MediaMediaError;
119446
121093
  /**
119447
- * Request failed; see the error code reference.
121094
+ * A rate limit was reached; wait before retrying.
119448
121095
  */
119449
121096
  429: MediaMediaError;
119450
121097
  /**
119451
- * Request failed; see the error code reference.
121098
+ * The requested operation is unsupported; choose a supported method.
119452
121099
  */
119453
121100
  501: MediaMediaError;
119454
121101
  /**
@@ -119456,18 +121103,18 @@ export type MediaDesignVoiceErrors = {
119456
121103
  */
119457
121104
  502: MediaMediaError;
119458
121105
  /**
119459
- * Request failed; see the error code reference.
121106
+ * Historical projections are still being initialized, or library storage is temporarily unavailable; retry shortly and check failureSummary counts_complete.
119460
121107
  */
119461
121108
  503: MediaMediaError;
119462
121109
  };
119463
- export type MediaDesignVoiceError = MediaDesignVoiceErrors[keyof MediaDesignVoiceErrors];
119464
- export type MediaDesignVoiceResponses = {
121110
+ export type MediaListAssetWorksError = MediaListAssetWorksErrors[keyof MediaListAssetWorksErrors];
121111
+ export type MediaListAssetWorksResponses = {
119465
121112
  /**
119466
121113
  * Successful response.
119467
121114
  */
119468
- 202: MediaJob;
121115
+ 200: MediaWorkPage;
119469
121116
  };
119470
- export type MediaDesignVoiceResponse = MediaDesignVoiceResponses[keyof MediaDesignVoiceResponses];
121117
+ export type MediaListAssetWorksResponse = MediaListAssetWorksResponses[keyof MediaListAssetWorksResponses];
119471
121118
  export type OntologyListTypesData = {
119472
121119
  body?: never;
119473
121120
  path?: never;
@@ -121427,7 +123074,7 @@ export type GetSandboxV1SandboxesResponses = {
121427
123074
  };
121428
123075
  export type GetSandboxV1SandboxesResponse = GetSandboxV1SandboxesResponses[keyof GetSandboxV1SandboxesResponses];
121429
123076
  export type PostSandboxV1SandboxesData = {
121430
- body: SandboxNewSandboxV2;
123077
+ body: SandboxNewSandboxV2Writable;
121431
123078
  path?: never;
121432
123079
  query?: never;
121433
123080
  url: '/sandbox/v1/sandboxes';