@deepraxis/sdk 0.2.0-dev.c2bf6fc → 0.2.0-dev.c9360ec

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
  /**
@@ -4583,6 +4680,10 @@ export type BrowserStreamMessage = {
4583
4680
  */
4584
4681
  nextCursor: string | null;
4585
4682
  };
4683
+ /**
4684
+ * The tab in front: the newest one the browser opened or the one a client last brought to the front. null when unknown.
4685
+ */
4686
+ activePageId?: string | null;
4586
4687
  };
4587
4688
  } | {
4588
4689
  event: 'session';
@@ -4593,7 +4694,10 @@ export type BrowserStreamMessage = {
4593
4694
  } | {
4594
4695
  event: 'action';
4595
4696
  data: {
4596
- kind: 'navigate' | 'click' | 'type' | 'scroll' | 'page_opened' | 'page_closed';
4697
+ /**
4698
+ * page_activated: a client brought pageId to the front. Tab changes (page_opened, page_closed, page_activated) are never thinned out; the other kinds are sent at most four times a second.
4699
+ */
4700
+ kind: 'navigate' | 'click' | 'type' | 'scroll' | 'page_opened' | 'page_closed' | 'page_activated';
4597
4701
  pageId?: string;
4598
4702
  url?: string;
4599
4703
  x?: number;
@@ -13742,7 +13846,7 @@ export type AutomationHumanTask = {
13742
13846
  */
13743
13847
  initiator: {
13744
13848
  /**
13745
- * Initiator type: user, api_key, agent, run (a parent run) or trigger.
13849
+ * Initiator type: user, api_key, agent, run (a parent run), trigger or application.
13746
13850
  */
13747
13851
  type: 'user' | 'api_key' | 'agent' | 'run' | 'trigger';
13748
13852
  /**
@@ -20039,6 +20143,10 @@ export type DevopsPullRequest = {
20039
20143
  * The mergeability word, an open set. A GitHub project keeps GitHub's own word verbatim (clean, dirty, blocked, behind, unstable and so on), unknown when GitHub has not said. A project whose code is on our own Git gets DevOps's reading of the head against the base: clean when nothing stands in the way, behind when the head adds nothing the base lacks, dirty when both sides changed the same path since they diverged, unknown when the comparison was capped.
20040
20144
  */
20041
20145
  mergeableState: string;
20146
+ /**
20147
+ * Who this pull request's letters go to — the gate verdict, the merge, the deploy to each integration environment and an integration failure — as the description's praxis block names it with notify: agent:<id> or notify: human:<id>. Optional and never part of the gate: absent when the block names nobody or names something that is not an address. A pull request of a DevOps change that names nobody writes to the change's owner.
20148
+ */
20149
+ notify?: string;
20042
20150
  /**
20043
20151
  * The exposure the description's praxis block declares, or null when the description declares none — which is itself a failed gate check. The kind decides which other checks apply: a flag adds its key and observe window, unwired and expand-contract add a reason, expand-contract also a phase, and direct is judged by a person.
20044
20152
  */
@@ -21340,7 +21448,7 @@ export type MediaLibrary = {
21340
21448
  };
21341
21449
  export type MediaMediaError = {
21342
21450
  error: {
21343
- code: 'LIBRARY_NOT_FOUND' | 'ASSET_NOT_FOUND' | 'JOB_NOT_FOUND' | 'UNDERSTANDING_NOT_FOUND' | 'ASSET_VERSION_CHANGED' | 'LIBRARY_INVALID_STATE' | 'INVALID_PARAMS' | 'INVALID_EXPRESSION' | 'UNSUPPORTED' | 'NOT_IMPLEMENTED' | 'FILE_TOO_LARGE' | 'FILE_EMPTY' | 'FILE_NOT_READY' | 'UNSUPPORTED_MEDIA' | 'FETCH_FAILED' | 'LIMIT_EXCEEDED' | 'CHUNK_INVALID' | 'RATE_LIMITED' | 'CAPACITY' | 'UPSTREAM_FAILED' | 'CONTENT_REJECTED' | 'GENERATION_FAILED' | 'BINDING_READ_ONLY' | 'OPERATION_NOT_SUPPORTED' | 'MODEL_PENDING' | 'REFERENCE_TYPE_MISMATCH' | 'CONSENT_REQUIRED' | 'LIBRARY_IS_DEFAULT' | 'JOB_INVALID_STATE' | 'VOICE_TRAINING' | 'INSUFFICIENT_BALANCE';
21451
+ code: 'LIBRARY_NOT_FOUND' | 'ASSET_NOT_FOUND' | 'WORK_NOT_FOUND' | 'REVISION_CONFLICT' | 'JOB_NOT_FOUND' | 'UNDERSTANDING_NOT_FOUND' | 'ASSET_VERSION_CHANGED' | 'LIBRARY_INVALID_STATE' | 'INVALID_PARAMS' | 'INVALID_EXPRESSION' | 'UNSUPPORTED' | 'NOT_IMPLEMENTED' | 'FILE_TOO_LARGE' | 'FILE_EMPTY' | 'FILE_NOT_READY' | 'UNSUPPORTED_MEDIA' | 'FETCH_FAILED' | 'LIMIT_EXCEEDED' | 'CHUNK_INVALID' | 'RATE_LIMITED' | 'CAPACITY' | 'UPSTREAM_FAILED' | 'CONTENT_REJECTED' | 'GENERATION_FAILED' | 'BINDING_READ_ONLY' | 'OPERATION_NOT_SUPPORTED' | 'MODEL_PENDING' | 'REFERENCE_TYPE_MISMATCH' | 'CONSENT_REQUIRED' | 'LIBRARY_IS_DEFAULT' | 'JOB_INVALID_STATE' | 'VOICE_TRAINING' | 'INSUFFICIENT_BALANCE';
21344
21452
  message: string;
21345
21453
  details: string | null;
21346
21454
  };
@@ -22869,6 +22977,107 @@ export type MediaVoiceDesignCreateInput = {
22869
22977
  */
22870
22978
  description?: string;
22871
22979
  };
22980
+ /**
22981
+ * A work: an object of the library above its assets that orders references to them and adds a title and text. It copies no file and changes no asset.
22982
+ */
22983
+ export type MediaWork = {
22984
+ /**
22985
+ * Always work.
22986
+ */
22987
+ object: 'work';
22988
+ /**
22989
+ * Work id (wrk_…).
22990
+ */
22991
+ id: string;
22992
+ /**
22993
+ * Library the work belongs to.
22994
+ */
22995
+ library_id: MediaLibraryId;
22996
+ /**
22997
+ * The work’s kind.
22998
+ */
22999
+ kind: MediaWorkKind;
23000
+ /**
23001
+ * The title, copied from body.title.
23002
+ */
23003
+ title: string;
23004
+ /**
23005
+ * Groups the platform versions of one story; null when unset.
23006
+ */
23007
+ series: string | null;
23008
+ /**
23009
+ * The kind’s body as stored.
23010
+ */
23011
+ body: MediaWorkBody;
23012
+ /**
23013
+ * Caller data such as source, published links and numbers; changed with a JSON Merge Patch.
23014
+ */
23015
+ custom: MediaWorkCustom;
23016
+ /**
23017
+ * Asset ids the body names that have been deleted since; the body keeps them in place and the Console draws a placeholder there.
23018
+ */
23019
+ missing: Array<string>;
23020
+ /**
23021
+ * Bumped by every change; send it back as if_revision to update only an unchanged work.
23022
+ */
23023
+ revision: number;
23024
+ /**
23025
+ * Who created the work: human:<user id>, agent:<agent id> or system.
23026
+ */
23027
+ created_by: string;
23028
+ /**
23029
+ * When the work was created.
23030
+ */
23031
+ created_at: MediaIsoTimestamp;
23032
+ /**
23033
+ * When the work last changed.
23034
+ */
23035
+ updated_at: MediaIsoTimestamp;
23036
+ /**
23037
+ * Only with expand=assets: every live referenced asset by id, with its URLs and size.
23038
+ */
23039
+ assets?: {
23040
+ [key: string]: MediaWorkAsset;
23041
+ };
23042
+ };
23043
+ /**
23044
+ * Kind of work: gallery (图文), article (长文) or product_listing (商品图组). short_video is reserved.
23045
+ */
23046
+ export type MediaWorkKind = 'gallery' | 'article' | 'product_listing' | 'blocks';
23047
+ export type MediaWorkBody = MediaGalleryBody | MediaArticleBody | MediaProductListingBody | MediaBlocksBody;
23048
+ export type MediaWorkCustom = {
23049
+ [key: string]: unknown;
23050
+ };
23051
+ /**
23052
+ * A page of work summaries.
23053
+ */
23054
+ export type MediaWorkPage = {
23055
+ /**
23056
+ * Works in this page, most recently changed first.
23057
+ */
23058
+ data: Array<MediaWorkSummary>;
23059
+ /**
23060
+ * Cursor for the next page, or null when there are no more works.
23061
+ */
23062
+ next_cursor: string | null;
23063
+ };
23064
+ /**
23065
+ * The answer to deleting a work.
23066
+ */
23067
+ export type MediaDeletedWork = {
23068
+ /**
23069
+ * Id of the deleted work.
23070
+ */
23071
+ id: string;
23072
+ /**
23073
+ * Always work.
23074
+ */
23075
+ object: 'work';
23076
+ /**
23077
+ * Always true: the work is deleted; every asset it named is unchanged.
23078
+ */
23079
+ deleted: true;
23080
+ };
22872
23081
  /**
22873
23082
  * One page of type registrations; types are few enough that this face returns them in a single page.
22874
23083
  */
@@ -35003,6 +35212,14 @@ export type SandboxSandboxNetworkConfig = {
35003
35212
  rules?: {
35004
35213
  [key: string]: Array<SandboxSandboxNetworkRule>;
35005
35214
  };
35215
+ /**
35216
+ * Own face, persistent sandboxes only (autoPause: true, or ephemeral: false): true gives the sandbox one fixed public egress IP for its whole life, held through pause and resume and released when the sandbox is deleted. Without it the egress IP is not stable: it changes when a spot machine is reclaimed, when a paused machine starts again, and when the machine is rebuilt. An ephemeral sandbox returns INVALID_PARAMS; the E2B face refuses the field; it is placed only on capacity that declares static IPs, and without such capacity the create does not start (it never falls back to a changing IP). Billed as the usage item sandbox:public_ip:hours from allocation to release, paused time included, plus outbound traffic as usual.
35217
+ */
35218
+ staticEgressIp?: boolean;
35219
+ /**
35220
+ * Own face, read-only: the fixed public egress IP of a sandbox created with staticEgressIp: true, present once the machine has bound it; add this address to the IP allowlist of the service you call (for example a WeCom trusted IP list). Absent on a sandbox that did not ask for a static IP, because its public address can change.
35221
+ */
35222
+ readonly egressIp?: string;
35006
35223
  };
35007
35224
  /**
35008
35225
  * Sandbox lifecycle policy returned by sandbox info.
@@ -36713,11 +36930,11 @@ export type AutomationActionHost = 'builtin' | 'isolate' | 'sandbox';
36713
36930
  */
36714
36931
  export type AutomationSubject = {
36715
36932
  /**
36716
- * Principal type. user is a signed-in user; api_key is a platform API key; agent is an agent; run is an action performed by a run itself (for example a parent run); trigger is a trigger.
36933
+ * Principal type. user is a signed-in user; api_key is a platform API key; agent is an agent; run is an action performed by a run itself (for example a parent run); trigger is a trigger; application is an application.
36717
36934
  */
36718
36935
  type: 'user' | 'api_key' | 'agent' | 'run' | 'trigger';
36719
36936
  /**
36720
- * Principal identifier whose meaning follows type: a user, API key, agent, run or trigger id. Treat it as an opaque string.
36937
+ * Principal identifier whose meaning follows type: a user, API key, agent, run, trigger or application id. Treat it as an opaque string.
36721
36938
  */
36722
36939
  id: string;
36723
36940
  };
@@ -40276,6 +40493,10 @@ export type DevopsUnitGit = {
40276
40493
  * The ref holding the unit's work in progress, or null when none was recorded.
40277
40494
  */
40278
40495
  wipRef: string | null;
40496
+ /**
40497
+ * The branch's head on the remote as of the last fetch: the value units push wants as expectedHead. Absent before the first observation or when the branch has no upstream. Call fetch first when someone else may have pushed.
40498
+ */
40499
+ remoteHead?: string;
40279
40500
  /**
40280
40501
  * RFC 3339 UTC time these facts were observed, or null before the first observation.
40281
40502
  */
@@ -41445,7 +41666,7 @@ export type MediaGenerationType = 'image' | 'video' | 'speech' | 'music' | 'soun
41445
41666
  * Edit operations: the change this step applied to its parent asset.
41446
41667
  */
41447
41668
  export type MediaGenerationOperation = 'generate' | 'clone' | 'tag' | 'untag' | 'set_context' | 'move' | 'delete' | 'reprocess' | 'variations' | 'upscale' | 'outpaint' | 'inpaint' | 'erase' | 'replace_object' | 'recolor' | 'remove_background' | 'replace_background' | 'to_video' | 'extend' | 'edit' | 'lip_sync' | 'frame' | 'to_gif' | 'voice_change' | 'resynthesize';
41448
- export type MediaMediaErrorCode = 'LIBRARY_NOT_FOUND' | 'ASSET_NOT_FOUND' | 'JOB_NOT_FOUND' | 'UNDERSTANDING_NOT_FOUND' | 'ASSET_VERSION_CHANGED' | 'LIBRARY_INVALID_STATE' | 'INVALID_PARAMS' | 'INVALID_EXPRESSION' | 'UNSUPPORTED' | 'NOT_IMPLEMENTED' | 'FILE_TOO_LARGE' | 'FILE_EMPTY' | 'FILE_NOT_READY' | 'UNSUPPORTED_MEDIA' | 'FETCH_FAILED' | 'LIMIT_EXCEEDED' | 'CHUNK_INVALID' | 'RATE_LIMITED' | 'CAPACITY' | 'UPSTREAM_FAILED' | 'CONTENT_REJECTED' | 'GENERATION_FAILED' | 'BINDING_READ_ONLY' | 'OPERATION_NOT_SUPPORTED' | 'MODEL_PENDING' | 'REFERENCE_TYPE_MISMATCH' | 'CONSENT_REQUIRED' | 'LIBRARY_IS_DEFAULT' | 'JOB_INVALID_STATE' | 'VOICE_TRAINING' | 'INSUFFICIENT_BALANCE';
41669
+ export type MediaMediaErrorCode = 'LIBRARY_NOT_FOUND' | 'ASSET_NOT_FOUND' | 'WORK_NOT_FOUND' | 'REVISION_CONFLICT' | 'JOB_NOT_FOUND' | 'UNDERSTANDING_NOT_FOUND' | 'ASSET_VERSION_CHANGED' | 'LIBRARY_INVALID_STATE' | 'INVALID_PARAMS' | 'INVALID_EXPRESSION' | 'UNSUPPORTED' | 'NOT_IMPLEMENTED' | 'FILE_TOO_LARGE' | 'FILE_EMPTY' | 'FILE_NOT_READY' | 'UNSUPPORTED_MEDIA' | 'FETCH_FAILED' | 'LIMIT_EXCEEDED' | 'CHUNK_INVALID' | 'RATE_LIMITED' | 'CAPACITY' | 'UPSTREAM_FAILED' | 'CONTENT_REJECTED' | 'GENERATION_FAILED' | 'BINDING_READ_ONLY' | 'OPERATION_NOT_SUPPORTED' | 'MODEL_PENDING' | 'REFERENCE_TYPE_MISMATCH' | 'CONSENT_REQUIRED' | 'LIBRARY_IS_DEFAULT' | 'JOB_INVALID_STATE' | 'VOICE_TRAINING' | 'INSUFFICIENT_BALANCE';
41449
41670
  /**
41450
41671
  * State of a requested generation output.
41451
41672
  */
@@ -41791,6 +42012,192 @@ export type MediaHlsRendition = {
41791
42012
  state: MediaHlsRenditionState;
41792
42013
  };
41793
42014
  export type MediaVoiceConsentId = string;
42015
+ /**
42016
+ * One referenced asset as expand=assets returns it: enough to draw it without another call.
42017
+ */
42018
+ export type MediaWorkAsset = {
42019
+ /**
42020
+ * The asset’s material type, such as image or video.
42021
+ */
42022
+ type: MediaMaterialType;
42023
+ /**
42024
+ * Short-lived delivery URL of the asset.
42025
+ */
42026
+ url: string;
42027
+ /**
42028
+ * Short-lived URL of a small picture: the poster of a video, otherwise the asset itself.
42029
+ */
42030
+ thumbnail_url: string;
42031
+ /**
42032
+ * Width in pixels when known.
42033
+ */
42034
+ width?: number;
42035
+ /**
42036
+ * Height in pixels when known.
42037
+ */
42038
+ height?: number;
42039
+ /**
42040
+ * The asset’s display name.
42041
+ */
42042
+ display_name: string;
42043
+ };
42044
+ /**
42045
+ * Body of a gallery (图文). Order is the order of items.
42046
+ */
42047
+ export type MediaGalleryBody = {
42048
+ /**
42049
+ * Title, 1 to 100 characters.
42050
+ */
42051
+ title: string;
42052
+ /**
42053
+ * Body text, at most 10000 characters.
42054
+ */
42055
+ text?: string;
42056
+ /**
42057
+ * Topics without the # sign, at most 30 of up to 40 characters.
42058
+ */
42059
+ topics?: Array<string>;
42060
+ /**
42061
+ * Optional cover: an image or sticker asset of this library; without it the first picture is the cover.
42062
+ */
42063
+ cover?: string;
42064
+ /**
42065
+ * Pictures, videos and text segments in order, 1 to 100 entries with at least one asset; each asset appears once.
42066
+ */
42067
+ items: Array<MediaGalleryItem>;
42068
+ /**
42069
+ * Display style; defaults to xiaohongshu in the Console.
42070
+ */
42071
+ style?: MediaWorkStyle;
42072
+ };
42073
+ /**
42074
+ * Body of an article (长文). Inline images live in the Markdown as ![alt](asset:<asset_id>) and sit where they are written.
42075
+ */
42076
+ export type MediaArticleBody = {
42077
+ /**
42078
+ * Title, 1 to 200 characters.
42079
+ */
42080
+ title: string;
42081
+ /**
42082
+ * Optional summary or digest, at most 500 characters.
42083
+ */
42084
+ summary?: string;
42085
+ /**
42086
+ * Optional author name, at most 60 characters.
42087
+ */
42088
+ author?: string;
42089
+ /**
42090
+ * The article in Markdown, 1 to 100000 characters; every asset:<asset_id> image must be an image or sticker of this library.
42091
+ */
42092
+ body: string;
42093
+ /**
42094
+ * Optional cover: an image or sticker asset of this library.
42095
+ */
42096
+ cover?: string;
42097
+ /**
42098
+ * Display style; defaults to wechat_mp in the Console.
42099
+ */
42100
+ style?: MediaWorkStyle;
42101
+ };
42102
+ /**
42103
+ * Body of a product listing (商品图组). Images and copy only: price, stock and other business data are managed outside the library and are refused.
42104
+ */
42105
+ export type MediaProductListingBody = {
42106
+ /**
42107
+ * Listing title, 1 to 200 characters.
42108
+ */
42109
+ title: string;
42110
+ /**
42111
+ * Selling points in order, at most 10 of up to 100 characters.
42112
+ */
42113
+ selling_points?: Array<string>;
42114
+ /**
42115
+ * Parameter rows in order, at most 50.
42116
+ */
42117
+ attributes?: Array<MediaListingAttribute>;
42118
+ /**
42119
+ * Main images in order, 1 to 20 image or sticker assets of this library.
42120
+ */
42121
+ main: Array<string>;
42122
+ /**
42123
+ * Detail images in order, at most 100 image or sticker assets of this library.
42124
+ */
42125
+ detail?: Array<string>;
42126
+ /**
42127
+ * SKUs in order, at most 200.
42128
+ */
42129
+ skus?: Array<MediaListingSku>;
42130
+ /**
42131
+ * Optional product element (material_type product) this listing shows.
42132
+ */
42133
+ product?: string;
42134
+ /**
42135
+ * Display style; defaults to generic in the Console.
42136
+ */
42137
+ style?: MediaWorkStyle;
42138
+ };
42139
+ /**
42140
+ * Body of a general work (通用作品): Editor.js saved data plus one field of ours, a required title. Business attributes go in the work’s custom, not in a block.
42141
+ */
42142
+ export type MediaBlocksBody = {
42143
+ /**
42144
+ * The work’s title, 1 to 200 characters, written explicitly as in the other kinds; lists and sorting use it.
42145
+ */
42146
+ title: string;
42147
+ /**
42148
+ * Optional Editor.js save time in milliseconds, kept as sent.
42149
+ */
42150
+ time?: number;
42151
+ /**
42152
+ * The blocks in order, 1 to 500.
42153
+ */
42154
+ blocks: Array<MediaEditorBlock>;
42155
+ /**
42156
+ * Optional Editor.js version string, kept as sent.
42157
+ */
42158
+ version?: string;
42159
+ };
42160
+ /**
42161
+ * One work in a list.
42162
+ */
42163
+ export type MediaWorkSummary = {
42164
+ /**
42165
+ * Always work.
42166
+ */
42167
+ object: 'work';
42168
+ /**
42169
+ * Work id (wrk_…).
42170
+ */
42171
+ id: string;
42172
+ /**
42173
+ * The work’s kind.
42174
+ */
42175
+ kind: MediaWorkKind;
42176
+ /**
42177
+ * The work’s title.
42178
+ */
42179
+ title: string;
42180
+ /**
42181
+ * The work’s series, or null.
42182
+ */
42183
+ series: string | null;
42184
+ /**
42185
+ * Short-lived URL of the cover picture, or null when it is missing.
42186
+ */
42187
+ cover_url: string | null;
42188
+ /**
42189
+ * How many distinct assets the body orders, cover and product element excluded.
42190
+ */
42191
+ item_count: number;
42192
+ /**
42193
+ * How many referenced assets have been deleted since.
42194
+ */
42195
+ missing_count: number;
42196
+ /**
42197
+ * When the work last changed.
42198
+ */
42199
+ updated_at: MediaIsoTimestamp;
42200
+ };
41794
42201
  /**
41795
42202
  * A kind of entity the graph accepts, for example a file or a customer.
41796
42203
  */
@@ -48775,7 +49182,7 @@ export type MediaSemanticMatch = {
48775
49182
  /**
48776
49183
  * Type of change recorded for a library, asset, processing task, search index or batch.
48777
49184
  */
48778
- export type MediaMediaEventType = 'library.status_provisioning' | 'library.status_active' | 'library.status_deleting' | 'library.status_deleted' | 'library.status_failed' | 'library.restored' | 'library.updated' | 'asset.created' | 'asset.updated' | 'asset.overwritten' | 'asset.renamed' | 'asset.deleted' | 'understanding.status_ready' | 'understanding.status_failed' | 'understanding.status_unsupported' | 'search.indexed' | 'batch.succeeded' | 'batch.failed' | 'library.understanding_drained' | 'batch.created' | 'hls.requested' | 'generation.created' | 'generation.succeeded' | 'generation.failed' | 'generation.cancelled';
49185
+ export type MediaMediaEventType = 'library.status_provisioning' | 'library.status_active' | 'library.status_deleting' | 'library.status_deleted' | 'library.status_failed' | 'library.restored' | 'library.updated' | 'asset.created' | 'asset.updated' | 'asset.overwritten' | 'asset.renamed' | 'asset.deleted' | 'understanding.status_ready' | 'understanding.status_failed' | 'understanding.status_unsupported' | 'search.indexed' | 'batch.succeeded' | 'batch.failed' | 'library.understanding_drained' | 'batch.created' | 'hls.requested' | 'generation.created' | 'generation.succeeded' | 'generation.failed' | 'generation.cancelled' | 'work.created' | 'work.updated' | 'work.deleted';
48779
49186
  /**
48780
49187
  * One picture an element names, with the word the caller uses for that view.
48781
49188
  */
@@ -48871,6 +49278,75 @@ export type MediaGenerationCapabilityModel = {
48871
49278
  * Readiness of one rung or of the ladder it is part of.
48872
49279
  */
48873
49280
  export type MediaHlsRenditionState = 'processing' | 'ready' | 'failed';
49281
+ /**
49282
+ * One position of a gallery: a picture or video of this library ({asset_id, caption?}) or a text segment between pictures ({text}).
49283
+ */
49284
+ export type MediaGalleryItem = {
49285
+ /**
49286
+ * An image, sticker or video asset of this library; its position in items is its position in the gallery.
49287
+ */
49288
+ asset_id: string;
49289
+ /**
49290
+ * Optional caption for this picture, at most 1000 characters.
49291
+ */
49292
+ caption?: string;
49293
+ } | {
49294
+ /**
49295
+ * A text segment shown between pictures, at most 1000 characters.
49296
+ */
49297
+ text: string;
49298
+ };
49299
+ /**
49300
+ * Which platform look the Console draws the work in; a display hint, never a platform check.
49301
+ */
49302
+ export type MediaWorkStyle = 'xiaohongshu' | 'wechat_mp' | 'jike' | 'generic';
49303
+ /**
49304
+ * One parameter row of a listing.
49305
+ */
49306
+ export type MediaListingAttribute = {
49307
+ /**
49308
+ * Parameter name such as 容量, at most 40 characters.
49309
+ */
49310
+ name: string;
49311
+ /**
49312
+ * Parameter value such as 500ml, at most 200 characters.
49313
+ */
49314
+ value: string;
49315
+ };
49316
+ /**
49317
+ * One SKU of a listing.
49318
+ */
49319
+ export type MediaListingSku = {
49320
+ /**
49321
+ * The SKU’s value on each spec axis, such as {"颜色":"白"}; 1 to 5 axes; the keys are kept as written.
49322
+ */
49323
+ spec: {
49324
+ [key: string]: string;
49325
+ };
49326
+ /**
49327
+ * Optional picture of this SKU: an image or sticker asset of this library.
49328
+ */
49329
+ asset_id?: string;
49330
+ };
49331
+ /**
49332
+ * One Editor.js block, as Editor.js saves it. type is one of the official blocks: paragraph {text}, header {text, level 1–6}, list {style ordered|unordered|checklist, meta, items[{content, meta, items}]}, quote {text, caption, alignment left|center}, delimiter {}, image, table {withHeadings, stretched, content string[][]}, checklist {items[{text, checked}]}, warning {title, message}, embed {service, source, embed, width, height, caption}. The one departure from Editor.js: an image block is {asset_id, caption, withBorder, withBackground, stretched} and names an image or sticker asset of this library instead of file.url. Text keeps Editor.js inline HTML. Unknown types and fields are refused.
49333
+ */
49334
+ export type MediaEditorBlock = {
49335
+ /**
49336
+ * Block id, 1–64 letters, digits, _ or -, unique in the body.
49337
+ */
49338
+ id: string;
49339
+ /**
49340
+ * The official Editor.js block type.
49341
+ */
49342
+ type: 'paragraph' | 'header' | 'list' | 'quote' | 'delimiter' | 'image' | 'table' | 'checklist' | 'warning' | 'embed';
49343
+ /**
49344
+ * The block’s data in that type’s Editor.js shape.
49345
+ */
49346
+ data: {
49347
+ [key: string]: unknown;
49348
+ };
49349
+ };
48874
49350
  /**
48875
49351
  * Auto-resume enabled flag for paused sandboxes. Default false.
48876
49352
  */
@@ -50994,6 +51470,58 @@ export type UpdateMediaPipelineRequestWritable = {
50994
51470
  * Models to use for completion
50995
51471
  */
50996
51472
  export type OpenaiChatModelNamesWritable = Array<OpenaiModelName & unknown>;
51473
+ export type SandboxSandboxDetailWritable = {
51474
+ /**
51475
+ * Identifier of the template from which is the sandbox created
51476
+ */
51477
+ templateID: string;
51478
+ /**
51479
+ * Alias of the template
51480
+ */
51481
+ alias?: string;
51482
+ /**
51483
+ * Identifier of the sandbox
51484
+ */
51485
+ sandboxID: string;
51486
+ /**
51487
+ * Identifier of the client
51488
+ *
51489
+ * @deprecated
51490
+ */
51491
+ clientID: string;
51492
+ /**
51493
+ * Time when the sandbox was started
51494
+ */
51495
+ startedAt: string;
51496
+ /**
51497
+ * Time when the sandbox will expire
51498
+ */
51499
+ endAt: string;
51500
+ envdVersion: SandboxEnvdVersion;
51501
+ /**
51502
+ * Access token used for envd communication
51503
+ */
51504
+ envdAccessToken?: string;
51505
+ /**
51506
+ * Whether internet access was explicitly enabled or disabled for the sandbox. Null means it was not explicitly set.
51507
+ */
51508
+ allowInternetAccess?: boolean;
51509
+ /**
51510
+ * Base domain where the sandbox traffic is accessible
51511
+ */
51512
+ domain?: string;
51513
+ cpuCount: SandboxCpuCount;
51514
+ memoryMB: SandboxMemoryMb;
51515
+ diskSizeMB: SandboxDiskSizeMb;
51516
+ metadata?: SandboxSandboxMetadata;
51517
+ state: SandboxSandboxState;
51518
+ network?: SandboxSandboxNetworkConfigWritable;
51519
+ lifecycle?: SandboxSandboxLifecycle;
51520
+ /**
51521
+ * Volumes mounted into the sandbox.
51522
+ */
51523
+ volumeMounts?: Array<SandboxSandboxVolumeMount>;
51524
+ };
50997
51525
  /**
50998
51526
  * Free-form string key/value pairs stored with the session, changed through sessions.update patch semantics.
50999
51527
  */
@@ -51573,6 +52101,94 @@ export type MediaSemanticSearchResultWritable = {
51573
52101
  */
51574
52102
  not_ready_excluded: number;
51575
52103
  };
52104
+ /**
52105
+ * Sandbox creation request. All system communication with the sandbox is always secured; the template's envd version must support secured access.
52106
+ */
52107
+ export type SandboxNewSandboxV2Writable = {
52108
+ /**
52109
+ * Identifier of the required template
52110
+ */
52111
+ templateID: string;
52112
+ /**
52113
+ * Lifetime of the new sandbox in seconds. Defaults to 300 seconds when omitted.
52114
+ */
52115
+ timeout?: number;
52116
+ /**
52117
+ * Lifecycle declaration on the E2B-compatible face. true creates a persistent sandbox that pauses at its timeout and can be resumed; false or absent creates an ephemeral sandbox that ends at its timeout and keeps nothing. Keep true only for long-lived computers. The own face declares with ephemeral instead.
52118
+ */
52119
+ autoPause?: boolean;
52120
+ /**
52121
+ * Controls the snapshot kind taken when the sandbox auto-pauses on timeout (only relevant when autoPause is true). When false, the auto-pause drops the in-memory state and persists only the filesystem (a filesystem-only snapshot); resuming it cold-boots (reboots) the sandbox from disk. Such a snapshot cannot be auto-resumed by traffic and must be resumed explicitly, so it cannot be combined with autoResume. Defaults to true (full memory snapshot).
52122
+ */
52123
+ autoPauseMemory?: boolean;
52124
+ autoResume?: SandboxSandboxAutoResumeConfig;
52125
+ /**
52126
+ * Allow sandbox to access the internet. When set to false, it behaves the same as specifying denyOut to 0.0.0.0/0 in the network config.
52127
+ */
52128
+ allow_internet_access?: boolean;
52129
+ network?: SandboxSandboxNetworkConfigWritable;
52130
+ metadata?: SandboxSandboxMetadata;
52131
+ envVars?: SandboxEnvVars;
52132
+ mcp?: SandboxMcp;
52133
+ iam?: SandboxSandboxIam;
52134
+ /**
52135
+ * Volumes to mount into the sandbox, each with the volume name and the path inside the sandbox.
52136
+ */
52137
+ volumeMounts?: Array<SandboxSandboxVolumeMount>;
52138
+ /**
52139
+ * Own face, required unless sku is named: true for an ephemeral sandbox (ends at its timeout, never pauses, cannot be snapshotted), false for a persistent one (pauses, resumes, snapshots, mounts volumes). Leaving it out returns INVALID_PARAMS.
52140
+ */
52141
+ ephemeral?: boolean;
52142
+ /**
52143
+ * Own face: the machine size, a SKU id such as base-2c4g or, for an android phone, android-2c4g. Omitted, the template's default size is used.
52144
+ */
52145
+ size?: string;
52146
+ /**
52147
+ * Own face: a display name for the sandbox, 1 to 64 characters. Omitted, one is generated from the template.
52148
+ */
52149
+ name?: string;
52150
+ /**
52151
+ * Own face, android phones only: keep the create open until the phone is running or 55 seconds have passed since the request arrived; running out is not an error and answers the state reached.
52152
+ */
52153
+ waitForReady?: boolean;
52154
+ /**
52155
+ * Own face: what happens at the timeout. pause needs ephemeral: false; must agree with autoPause when both are sent.
52156
+ */
52157
+ onExpire?: 'kill' | 'pause';
52158
+ /**
52159
+ * Own face, persistent sandboxes only: pause after this many milliseconds without activity; null turns the idle pause off.
52160
+ */
52161
+ idleTimeout?: number;
52162
+ /**
52163
+ * Own face, persistent sandboxes only: whose activity resets idleTimeout. traffic (default) counts data-plane calls, preview traffic and live processes; caller counts only your own control-plane calls.
52164
+ */
52165
+ idleActivity?: 'traffic' | 'caller';
52166
+ /**
52167
+ * Own face: a demand-profile SKU <kind>.<image>.<size>, such as run.document.medium (someone waits; starts fast), job.base.large (background work that must not be cut off), batch.base.large (retried work that may be reclaimed) or computer.base.medium (keeps its disk). It fixes ephemeral, interruptible, size and the template, so those may be left out; any of them you also send must agree with it, otherwise the create fails with INVALID_PARAMS naming the field. The sandbox answers it back as sku and as the read-only label praxis.sku.
52168
+ */
52169
+ sku?: string;
52170
+ /**
52171
+ * Own face: the kind of sandbox you need, when you do not name a full sku. The sandbox completes <kind>.<image>.<size> from the template you start (its family, or custom for your own environment or snapshot) and the size you send, or medium. run is for work someone waits for (starts fast), job is background work that must not be cut off, batch is retried work that may be reclaimed (spot capacity), computer keeps its disk, and compat is the E2B-compatible persistent series. The kind fixes ephemeral and interruptible, so leave those out; if you also send them, or a sku of another kind, the create fails with INVALID_PARAMS naming the field. The light template always starts the light shell, whatever the kind says.
52172
+ */
52173
+ kind?: 'run' | 'job' | 'batch' | 'computer' | 'compat';
52174
+ /**
52175
+ * Own face, ephemeral sandboxes only: true says this sandbox may be reclaimed while it runs (a build or test you retry), which lets it run on cheaper spot capacity. A reclaimed sandbox ends with PROVIDER_FAILED; create it again. Absent or false keeps the usual capacity.
52176
+ */
52177
+ interruptible?: boolean;
52178
+ /**
52179
+ * Own face, persistent sandboxes only: what happens when the provider loses the machine. fail (default) ends the sandbox; rebuild starts a new machine under the same id with its state lost.
52180
+ */
52181
+ onLoss?: 'fail' | 'rebuild';
52182
+ /**
52183
+ * Own face: up to eight absolute paths to keep when the sandbox ends; each is packed as .tar.gz into File and listed on the killed event.
52184
+ */
52185
+ outputs?: Array<{
52186
+ /**
52187
+ * Absolute path of a directory or file inside the sandbox.
52188
+ */
52189
+ path: string;
52190
+ }>;
52191
+ };
51576
52192
  /**
51577
52193
  * Arguments the model passed to the tool.
51578
52194
  */
@@ -51651,6 +52267,43 @@ export type AnthropicAnonymous204Writable = {
51651
52267
  export type AnthropicAnonymous206Writable = {
51652
52268
  [key: string]: unknown;
51653
52269
  };
52270
+ /**
52271
+ * Network policy of the sandbox: public access, egress allow and deny lists and proxy.
52272
+ */
52273
+ export type SandboxSandboxNetworkConfigWritable = {
52274
+ /**
52275
+ * Specify if the sandbox URLs should be accessible only with authentication.
52276
+ */
52277
+ allowPublicTraffic?: boolean;
52278
+ /**
52279
+ * List of allowed destinations for egress traffic. Each entry can be a CIDR block (e.g. "8.8.8.8/32"), a bare IP address (e.g. "8.8.8.8"), or a domain name (e.g. "example.com", "*.example.com"). Allowed entries always take precedence over denied entries.
52280
+ */
52281
+ allowOut?: Array<string>;
52282
+ /**
52283
+ * List of denied CIDR blocks or IP addresses for egress traffic. Domain names are not supported for deny rules.
52284
+ */
52285
+ denyOut?: Array<string>;
52286
+ egressProxy?: SandboxSandboxEgressProxyConfig;
52287
+ /**
52288
+ * Specify host mask which will be used for all sandbox requests
52289
+ */
52290
+ maskRequestHost?: string;
52291
+ /**
52292
+ * Unlike E2B, network.httpsPorts is rejected; omit it when creating a sandbox.
52293
+ */
52294
+ httpsPorts?: Array<number>;
52295
+ /**
52296
+ * Per-domain transform rules applied to matching outbound HTTPS requests. Keys may be exact DNS names (for example, "api.example.com") or a leading wildcard (for example, "*.example.com"), and are normalized to lowercase on write. Wildcards match subdomains at any depth but not the apex domain; a bare "*" is invalid. Exact rules take precedence, followed by the longest matching wildcard suffix, and matching rule sets are not merged. Broad wildcards such as "*.com" are allowed and may expose transformed credentials to every matching destination the sandbox contacts. Rules do not grant network access; configure allowOut separately to permit the destination.
52297
+ *
52298
+ */
52299
+ rules?: {
52300
+ [key: string]: Array<SandboxSandboxNetworkRule>;
52301
+ };
52302
+ /**
52303
+ * Own face, persistent sandboxes only (autoPause: true, or ephemeral: false): true gives the sandbox one fixed public egress IP for its whole life, held through pause and resume and released when the sandbox is deleted. Without it the egress IP is not stable: it changes when a spot machine is reclaimed, when a paused machine starts again, and when the machine is rebuilt. An ephemeral sandbox returns INVALID_PARAMS; the E2B face refuses the field; it is placed only on capacity that declares static IPs, and without such capacity the create does not start (it never falls back to a changing IP). Billed as the usage item sandbox:public_ip:hours from allocation to release, paused time included, plus outbound traffic as usual.
52304
+ */
52305
+ staticEgressIp?: boolean;
52306
+ };
51654
52307
  /**
51655
52308
  * Free-form string key/value pairs.
51656
52309
  */
@@ -70589,6 +71242,36 @@ export type BrowserCreateContextData = {
70589
71242
  labels?: {
70590
71243
  [key: string]: string;
70591
71244
  };
71245
+ /**
71246
+ * 给登录态绑定一个固定的外部代理(如住宅 IP),使用这个登录态的会话没有写 proxies 时都经它出网,让同一账号始终从同一个出口地址出去。只存保管库引用(password_secret),不存密码;会话自己写了 proxies 时以会话的为准。需要组织已开通容器后端,否则返回 501 PROVIDER_UNSUPPORTED。
71247
+ */
71248
+ proxy?: {
71249
+ /**
71250
+ * 固定为 external:经一个你自己的外部 HTTP 代理出网。
71251
+ */
71252
+ type: 'external';
71253
+ /**
71254
+ * 代理地址,host:port 或 http://host:port;只支持 HTTP 代理,不接受 socks5:// 等协议,也不接受 localhost 和内网、链路本地地址。
71255
+ */
71256
+ server: string;
71257
+ /**
71258
+ * 代理用户名;有密码时才能填,填了就必须同时给出密码。
71259
+ */
71260
+ username?: string;
71261
+ /**
71262
+ * 必须用这种形式:引用保管库里的代理密码,只在连接这个代理的主机时兑换,不会交给网页。登录态里只存引用,传明文 password 返回 400 INVALID_PARAMS。
71263
+ */
71264
+ password_secret?: {
71265
+ /**
71266
+ * 保存代理密码的保管库 ID,以 vlt_ 开头。
71267
+ */
71268
+ vault_id: string;
71269
+ /**
71270
+ * 保管库中该密码的密钥 ID(不是密码本身)。
71271
+ */
71272
+ secret: string;
71273
+ };
71274
+ };
70592
71275
  };
70593
71276
  path?: never;
70594
71277
  query?: never;
@@ -70831,6 +71514,36 @@ export type BrowserUpdateContextData = {
70831
71514
  labels?: {
70832
71515
  [key: string]: string;
70833
71516
  };
71517
+ /**
71518
+ * 给登录态绑定一个固定的外部代理(如住宅 IP),使用这个登录态的会话没有写 proxies 时都经它出网,让同一账号始终从同一个出口地址出去。只存保管库引用(password_secret),不存密码;会话自己写了 proxies 时以会话的为准。需要组织已开通容器后端,否则返回 501 PROVIDER_UNSUPPORTED。 更新时传 null 解除绑定,省略则保留原绑定。
71519
+ */
71520
+ proxy?: {
71521
+ /**
71522
+ * 固定为 external:经一个你自己的外部 HTTP 代理出网。
71523
+ */
71524
+ type: 'external';
71525
+ /**
71526
+ * 代理地址,host:port 或 http://host:port;只支持 HTTP 代理,不接受 socks5:// 等协议,也不接受 localhost 和内网、链路本地地址。
71527
+ */
71528
+ server: string;
71529
+ /**
71530
+ * 代理用户名;有密码时才能填,填了就必须同时给出密码。
71531
+ */
71532
+ username?: string;
71533
+ /**
71534
+ * 必须用这种形式:引用保管库里的代理密码,只在连接这个代理的主机时兑换,不会交给网页。登录态里只存引用,传明文 password 返回 400 INVALID_PARAMS。
71535
+ */
71536
+ password_secret?: {
71537
+ /**
71538
+ * 保存代理密码的保管库 ID,以 vlt_ 开头。
71539
+ */
71540
+ vault_id: string;
71541
+ /**
71542
+ * 保管库中该密码的密钥 ID(不是密码本身)。
71543
+ */
71544
+ secret: string;
71545
+ };
71546
+ } | null;
70834
71547
  };
70835
71548
  path: {
70836
71549
  /**
@@ -78479,7 +79192,7 @@ export type ListOrganizationCostsData = {
78479
79192
  */
78480
79193
  bucket_width: '1h' | '1d';
78481
79194
  /**
78482
- * 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.
79195
+ * 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.
78483
79196
  *
78484
79197
  */
78485
79198
  time_zone?: string;
@@ -78597,7 +79310,7 @@ export type ListOrganizationUsageData = {
78597
79310
  */
78598
79311
  bucket_width: '1h' | '1d';
78599
79312
  /**
78600
- * 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.
79313
+ * 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.
78601
79314
  *
78602
79315
  */
78603
79316
  time_zone?: string;
@@ -79117,11 +79830,19 @@ export type ListOrganizationNotificationLettersData = {
79117
79830
  path?: never;
79118
79831
  query?: {
79119
79832
  /**
79120
- * Only unread letters, or only read ones; omit for both.
79833
+ * 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.
79834
+ */
79835
+ direction?: 'received' | 'sent';
79836
+ /**
79837
+ * 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.
79838
+ */
79839
+ status?: 'unread' | 'read' | 'scheduled';
79840
+ /**
79841
+ * Only letters of this conversation, for received and sent alike; omit for all.
79121
79842
  */
79122
- status?: 'unread' | 'read';
79843
+ thread?: string;
79123
79844
  /**
79124
- * false (the default) hides archived letters; true lists only the archived ones.
79845
+ * 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.
79125
79846
  */
79126
79847
  archived?: boolean;
79127
79848
  /**
@@ -79137,7 +79858,7 @@ export type ListOrganizationNotificationLettersData = {
79137
79858
  };
79138
79859
  export type ListOrganizationNotificationLettersErrors = {
79139
79860
  /**
79140
- * A bad `status`, `archived` or `limit`, or `INVALID_PARAMS` from the service for a cursor it did not issue (RFC 9457 problem).
79861
+ * 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).
79141
79862
  */
79142
79863
  400: unknown;
79143
79864
  /**
@@ -79237,6 +79958,80 @@ export type ListOrganizationNotificationLettersResponses = {
79237
79958
  };
79238
79959
  };
79239
79960
  export type ListOrganizationNotificationLettersResponse = ListOrganizationNotificationLettersResponses[keyof ListOrganizationNotificationLettersResponses];
79961
+ export type CreateOrganizationNotificationLetterData = {
79962
+ body: {
79963
+ /**
79964
+ * The recipient's address: human:<user id> or agent:<agent id>, a member or an agent of this organization.
79965
+ */
79966
+ to: string;
79967
+ /**
79968
+ * The whole letter, 1 to 16000 characters.
79969
+ */
79970
+ body: string;
79971
+ /**
79972
+ * 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.
79973
+ */
79974
+ summary?: string;
79975
+ /**
79976
+ * The letter's kind; it decides the channels. Defaults to mention.
79977
+ */
79978
+ kind?: 'notice' | 'mention' | 'decision';
79979
+ /**
79980
+ * The conversation the letter belongs to, free text; omit for none.
79981
+ */
79982
+ thread?: string;
79983
+ /**
79984
+ * When to deliver it, ISO 8601, at most 366 days ahead. A past time or no value means now.
79985
+ */
79986
+ deliver_at?: string;
79987
+ };
79988
+ path?: never;
79989
+ query?: never;
79990
+ url: '/organization/v1/notifications/letters';
79991
+ };
79992
+ export type CreateOrganizationNotificationLetterErrors = {
79993
+ /**
79994
+ * `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).
79995
+ */
79996
+ 400: unknown;
79997
+ /**
79998
+ * Missing or invalid credential (RFC 9457 problem).
79999
+ */
80000
+ 401: unknown;
80001
+ /**
80002
+ * `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).
80003
+ */
80004
+ 403: unknown;
80005
+ /**
80006
+ * `SUBSCRIBER_NOT_FOUND`: the recipient is not a member or an agent of this organization (RFC 9457 problem).
80007
+ */
80008
+ 404: unknown;
80009
+ /**
80010
+ * 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.
80011
+ */
80012
+ 502: unknown;
80013
+ };
80014
+ export type CreateOrganizationNotificationLetterResponses = {
80015
+ /**
80016
+ * The letter is written; it is delivered at deliverAt.
80017
+ */
80018
+ 200: {
80019
+ /**
80020
+ * The letter that was written: its id and the time it is delivered.
80021
+ */
80022
+ letter: {
80023
+ /**
80024
+ * The letter's id.
80025
+ */
80026
+ id: string;
80027
+ /**
80028
+ * When it is delivered: now, or the time asked for.
80029
+ */
80030
+ deliverAt: string;
80031
+ };
80032
+ };
80033
+ };
80034
+ export type CreateOrganizationNotificationLetterResponse = CreateOrganizationNotificationLetterResponses[keyof CreateOrganizationNotificationLetterResponses];
79240
80035
  export type GetOrganizationNotificationLetterData = {
79241
80036
  body?: never;
79242
80037
  path: {
@@ -79460,6 +80255,360 @@ export type ArchiveOrganizationNotificationLetterResponses = {
79460
80255
  };
79461
80256
  };
79462
80257
  export type ArchiveOrganizationNotificationLetterResponse = ArchiveOrganizationNotificationLetterResponses[keyof ArchiveOrganizationNotificationLetterResponses];
80258
+ export type ListOrganizationNotificationMessagesData = {
80259
+ body?: never;
80260
+ path?: never;
80261
+ query?: {
80262
+ /**
80263
+ * 0 (the default) lists the inbox tab, 1 lists archived messages.
80264
+ */
80265
+ archived?: '0' | '1';
80266
+ /**
80267
+ * Messages per page, 1 to 100; defaults to 20.
80268
+ */
80269
+ limit?: number;
80270
+ /**
80271
+ * Opaque nextPageToken from the previous response; omit for the first page.
80272
+ */
80273
+ page?: string;
80274
+ };
80275
+ url: '/organization/v1/notifications/messages';
80276
+ };
80277
+ export type ListOrganizationNotificationMessagesErrors = {
80278
+ /**
80279
+ * A bad `archived`, `limit` or `page`, or `INVALID_PARAMS` from the service for a cursor it did not issue (RFC 9457 problem).
80280
+ */
80281
+ 400: unknown;
80282
+ /**
80283
+ * Missing or invalid credential (RFC 9457 problem).
80284
+ */
80285
+ 401: unknown;
80286
+ /**
80287
+ * `PERMISSION_DENIED`: an agent credential has no person inbox; read its own letters instead (RFC 9457 problem).
80288
+ */
80289
+ 403: unknown;
80290
+ /**
80291
+ * 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.
80292
+ */
80293
+ 502: unknown;
80294
+ };
80295
+ export type ListOrganizationNotificationMessagesResponses = {
80296
+ /**
80297
+ * One page of this person's messages.
80298
+ */
80299
+ 200: {
80300
+ /**
80301
+ * The page, newest first.
80302
+ */
80303
+ items: Array<{
80304
+ /**
80305
+ * The message's resource name, subscribers/{user}/messages/{id}; pass it URL-encoded as the {name} of the other message operations.
80306
+ */
80307
+ name: string;
80308
+ /**
80309
+ * The organization the message belongs to; empty for a message that belongs to no organization.
80310
+ */
80311
+ organizationId: string;
80312
+ /**
80313
+ * The notification group the message belongs to: members, usage, alerts, agent, or nonConfigurable.
80314
+ */
80315
+ group: 'members' | 'usage' | 'alerts' | 'agent' | 'nonConfigurable';
80316
+ /**
80317
+ * The notification workflow that wrote it, as the preferences page names it.
80318
+ */
80319
+ workflow: string;
80320
+ /**
80321
+ * The message's headline, as the bell shows it.
80322
+ */
80323
+ title: string;
80324
+ /**
80325
+ * The message text.
80326
+ */
80327
+ body: string;
80328
+ /**
80329
+ * Where the bell opens this message; absent when it has no page.
80330
+ */
80331
+ actionUrl?: string;
80332
+ /**
80333
+ * Whether the bell has been opened since the message arrived.
80334
+ */
80335
+ seen: boolean;
80336
+ /**
80337
+ * Whether this person has read it.
80338
+ */
80339
+ read: boolean;
80340
+ /**
80341
+ * Whether this person archived it; archived messages are not in the inbox tab.
80342
+ */
80343
+ archived: boolean;
80344
+ /**
80345
+ * When the message arrived.
80346
+ */
80347
+ createTime: string;
80348
+ }>;
80349
+ /**
80350
+ * Pass unchanged as page for the next page; absent at the end.
80351
+ */
80352
+ nextPageToken?: string;
80353
+ };
80354
+ };
80355
+ export type ListOrganizationNotificationMessagesResponse = ListOrganizationNotificationMessagesResponses[keyof ListOrganizationNotificationMessagesResponses];
80356
+ export type DeleteOrganizationNotificationMessageData = {
80357
+ body?: never;
80358
+ path: {
80359
+ /**
80360
+ * The message's `name` from the messages list, subscribers/{user}/messages/{id}, URL-encoded.
80361
+ */
80362
+ name: string;
80363
+ };
80364
+ query?: never;
80365
+ url: '/organization/v1/notifications/messages/{name}';
80366
+ };
80367
+ export type DeleteOrganizationNotificationMessageErrors = {
80368
+ /**
80369
+ * `name` is not subscribers/{user}/messages/{id} — `INVALID_PARAMS` (RFC 9457 problem).
80370
+ */
80371
+ 400: unknown;
80372
+ /**
80373
+ * Missing or invalid credential (RFC 9457 problem).
80374
+ */
80375
+ 401: unknown;
80376
+ /**
80377
+ * `PERMISSION_DENIED`: an agent credential has no person inbox; read its own letters instead (RFC 9457 problem).
80378
+ */
80379
+ 403: unknown;
80380
+ /**
80381
+ * No such message of yours in this organization — `MESSAGE_NOT_FOUND` (RFC 9457 problem).
80382
+ */
80383
+ 404: unknown;
80384
+ /**
80385
+ * 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.
80386
+ */
80387
+ 502: unknown;
80388
+ };
80389
+ export type DeleteOrganizationNotificationMessageResponses = {
80390
+ /**
80391
+ * The message is deleted.
80392
+ */
80393
+ 200: {
80394
+ /**
80395
+ * Always true: the message was deleted.
80396
+ */
80397
+ deleted: boolean;
80398
+ };
80399
+ };
80400
+ export type DeleteOrganizationNotificationMessageResponse = DeleteOrganizationNotificationMessageResponses[keyof DeleteOrganizationNotificationMessageResponses];
80401
+ export type GetOrganizationNotificationMessageData = {
80402
+ body?: never;
80403
+ path: {
80404
+ /**
80405
+ * The message's `name` from the messages list, subscribers/{user}/messages/{id}, URL-encoded.
80406
+ */
80407
+ name: string;
80408
+ };
80409
+ query?: never;
80410
+ url: '/organization/v1/notifications/messages/{name}';
80411
+ };
80412
+ export type GetOrganizationNotificationMessageErrors = {
80413
+ /**
80414
+ * `name` is not subscribers/{user}/messages/{id} — `INVALID_PARAMS` (RFC 9457 problem).
80415
+ */
80416
+ 400: unknown;
80417
+ /**
80418
+ * Missing or invalid credential (RFC 9457 problem).
80419
+ */
80420
+ 401: unknown;
80421
+ /**
80422
+ * `PERMISSION_DENIED`: an agent credential has no person inbox; read its own letters instead (RFC 9457 problem).
80423
+ */
80424
+ 403: unknown;
80425
+ /**
80426
+ * 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).
80427
+ */
80428
+ 404: unknown;
80429
+ /**
80430
+ * 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.
80431
+ */
80432
+ 502: unknown;
80433
+ };
80434
+ export type GetOrganizationNotificationMessageResponses = {
80435
+ /**
80436
+ * The message.
80437
+ */
80438
+ 200: {
80439
+ /**
80440
+ * The message's resource name, subscribers/{user}/messages/{id}; pass it URL-encoded as the {name} of the other message operations.
80441
+ */
80442
+ name: string;
80443
+ /**
80444
+ * The organization the message belongs to; empty for a message that belongs to no organization.
80445
+ */
80446
+ organizationId: string;
80447
+ /**
80448
+ * The notification group the message belongs to: members, usage, alerts, agent, or nonConfigurable.
80449
+ */
80450
+ group: 'members' | 'usage' | 'alerts' | 'agent' | 'nonConfigurable';
80451
+ /**
80452
+ * The notification workflow that wrote it, as the preferences page names it.
80453
+ */
80454
+ workflow: string;
80455
+ /**
80456
+ * The message's headline, as the bell shows it.
80457
+ */
80458
+ title: string;
80459
+ /**
80460
+ * The message text.
80461
+ */
80462
+ body: string;
80463
+ /**
80464
+ * Where the bell opens this message; absent when it has no page.
80465
+ */
80466
+ actionUrl?: string;
80467
+ /**
80468
+ * Whether the bell has been opened since the message arrived.
80469
+ */
80470
+ seen: boolean;
80471
+ /**
80472
+ * Whether this person has read it.
80473
+ */
80474
+ read: boolean;
80475
+ /**
80476
+ * Whether this person archived it; archived messages are not in the inbox tab.
80477
+ */
80478
+ archived: boolean;
80479
+ /**
80480
+ * When the message arrived.
80481
+ */
80482
+ createTime: string;
80483
+ };
80484
+ };
80485
+ export type GetOrganizationNotificationMessageResponse = GetOrganizationNotificationMessageResponses[keyof GetOrganizationNotificationMessageResponses];
80486
+ export type UpdateOrganizationNotificationMessageData = {
80487
+ body: {
80488
+ /**
80489
+ * Mark the message read (true) or unread (false); omit to leave it.
80490
+ */
80491
+ read?: boolean;
80492
+ /**
80493
+ * Archive the message (true) or move it back to the inbox (false); omit to leave it.
80494
+ */
80495
+ archived?: boolean;
80496
+ };
80497
+ path: {
80498
+ /**
80499
+ * The message's `name` from the messages list, subscribers/{user}/messages/{id}, URL-encoded.
80500
+ */
80501
+ name: string;
80502
+ };
80503
+ query?: never;
80504
+ url: '/organization/v1/notifications/messages/{name}';
80505
+ };
80506
+ export type UpdateOrganizationNotificationMessageErrors = {
80507
+ /**
80508
+ * 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).
80509
+ */
80510
+ 400: unknown;
80511
+ /**
80512
+ * Missing or invalid credential (RFC 9457 problem).
80513
+ */
80514
+ 401: unknown;
80515
+ /**
80516
+ * `PERMISSION_DENIED`: an agent credential has no person inbox; read its own letters instead (RFC 9457 problem).
80517
+ */
80518
+ 403: unknown;
80519
+ /**
80520
+ * No such message of yours in this organization — `MESSAGE_NOT_FOUND` (RFC 9457 problem).
80521
+ */
80522
+ 404: unknown;
80523
+ /**
80524
+ * 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.
80525
+ */
80526
+ 502: unknown;
80527
+ };
80528
+ export type UpdateOrganizationNotificationMessageResponses = {
80529
+ /**
80530
+ * The message after the change.
80531
+ */
80532
+ 200: {
80533
+ /**
80534
+ * The message's resource name, subscribers/{user}/messages/{id}; pass it URL-encoded as the {name} of the other message operations.
80535
+ */
80536
+ name: string;
80537
+ /**
80538
+ * The organization the message belongs to; empty for a message that belongs to no organization.
80539
+ */
80540
+ organizationId: string;
80541
+ /**
80542
+ * The notification group the message belongs to: members, usage, alerts, agent, or nonConfigurable.
80543
+ */
80544
+ group: 'members' | 'usage' | 'alerts' | 'agent' | 'nonConfigurable';
80545
+ /**
80546
+ * The notification workflow that wrote it, as the preferences page names it.
80547
+ */
80548
+ workflow: string;
80549
+ /**
80550
+ * The message's headline, as the bell shows it.
80551
+ */
80552
+ title: string;
80553
+ /**
80554
+ * The message text.
80555
+ */
80556
+ body: string;
80557
+ /**
80558
+ * Where the bell opens this message; absent when it has no page.
80559
+ */
80560
+ actionUrl?: string;
80561
+ /**
80562
+ * Whether the bell has been opened since the message arrived.
80563
+ */
80564
+ seen: boolean;
80565
+ /**
80566
+ * Whether this person has read it.
80567
+ */
80568
+ read: boolean;
80569
+ /**
80570
+ * Whether this person archived it; archived messages are not in the inbox tab.
80571
+ */
80572
+ archived: boolean;
80573
+ /**
80574
+ * When the message arrived.
80575
+ */
80576
+ createTime: string;
80577
+ };
80578
+ };
80579
+ export type UpdateOrganizationNotificationMessageResponse = UpdateOrganizationNotificationMessageResponses[keyof UpdateOrganizationNotificationMessageResponses];
80580
+ export type ReadAllOrganizationNotificationMessagesData = {
80581
+ body?: never;
80582
+ path?: never;
80583
+ query?: never;
80584
+ url: '/organization/v1/notifications/messages:readAll';
80585
+ };
80586
+ export type ReadAllOrganizationNotificationMessagesErrors = {
80587
+ /**
80588
+ * Missing or invalid credential (RFC 9457 problem).
80589
+ */
80590
+ 401: unknown;
80591
+ /**
80592
+ * `PERMISSION_DENIED`: an agent credential has no person inbox; read its own letters instead (RFC 9457 problem).
80593
+ */
80594
+ 403: unknown;
80595
+ /**
80596
+ * 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.
80597
+ */
80598
+ 502: unknown;
80599
+ };
80600
+ export type ReadAllOrganizationNotificationMessagesResponses = {
80601
+ /**
80602
+ * How many messages were marked read.
80603
+ */
80604
+ 200: {
80605
+ /**
80606
+ * The number of messages that were unread and are now read.
80607
+ */
80608
+ updated: number;
80609
+ };
80610
+ };
80611
+ export type ReadAllOrganizationNotificationMessagesResponse = ReadAllOrganizationNotificationMessagesResponses[keyof ReadAllOrganizationNotificationMessagesResponses];
79463
80612
  export type GetOrganizationNotificationPreferencesData = {
79464
80613
  body?: never;
79465
80614
  path?: never;
@@ -99168,7 +100317,7 @@ export type AutomationRunsListData = {
99168
100317
  */
99169
100318
  channel?: Array<'console' | 'api' | 'internal' | 'run' | 'trigger'>;
99170
100319
  /**
99171
- * 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.
100320
+ * 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.
99172
100321
  */
99173
100322
  initiator_type?: Array<'user' | 'api_key' | 'agent' | 'trigger'>;
99174
100323
  /**
@@ -113716,7 +114865,7 @@ export type DevopsUnitsPushErrors = {
113716
114865
  */
113717
114866
  404: DevopsDevOpsError;
113718
114867
  /**
113719
- * 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.
114868
+ * 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.
113720
114869
  */
113721
114870
  409: DevopsDevOpsError;
113722
114871
  /**
@@ -118819,45 +119968,509 @@ export type MediaListUnderstandingsByLibraryErrors = {
118819
119968
  */
118820
119969
  503: MediaMediaError;
118821
119970
  };
118822
- export type MediaListUnderstandingsByLibraryError = MediaListUnderstandingsByLibraryErrors[keyof MediaListUnderstandingsByLibraryErrors];
118823
- export type MediaListUnderstandingsByLibraryResponses = {
119971
+ export type MediaListUnderstandingsByLibraryError = MediaListUnderstandingsByLibraryErrors[keyof MediaListUnderstandingsByLibraryErrors];
119972
+ export type MediaListUnderstandingsByLibraryResponses = {
119973
+ /**
119974
+ * Successful response.
119975
+ */
119976
+ 200: MediaUnderstandingPage;
119977
+ };
119978
+ export type MediaListUnderstandingsByLibraryResponse = MediaListUnderstandingsByLibraryResponses[keyof MediaListUnderstandingsByLibraryResponses];
119979
+ export type MediaListJobsData = {
119980
+ body?: never;
119981
+ path: {
119982
+ /**
119983
+ * Library ID returned by creation.
119984
+ */
119985
+ library_id: string;
119986
+ };
119987
+ query?: {
119988
+ /**
119989
+ * Filter jobs by their current status.
119990
+ */
119991
+ status?: MediaJobStatus;
119992
+ /**
119993
+ * Return only the jobs started by this automation run (its root run), so one pipeline run reads as one batch.
119994
+ */
119995
+ pipeline_run_id?: string;
119996
+ /**
119997
+ * Maximum entries in this page, from 1 through 100; defaults to 100.
119998
+ */
119999
+ limit?: number;
120000
+ /**
120001
+ * Job id from the previous page’s next_cursor; omit for the first page.
120002
+ */
120003
+ cursor?: MediaJobId;
120004
+ };
120005
+ url: '/media/v1/libraries/{library_id}/jobs';
120006
+ };
120007
+ export type MediaListJobsErrors = {
120008
+ /**
120009
+ * A selector, cursor, limit or other parameter is invalid; correct the reported field before retrying.
120010
+ */
120011
+ 400: MediaMediaError;
120012
+ /**
120013
+ * Request failed; see the error code reference.
120014
+ */
120015
+ 402: MediaMediaError;
120016
+ /**
120017
+ * This credential has read-only access to the library; use a write-capable binding for mutations.
120018
+ */
120019
+ 403: MediaMediaError;
120020
+ /**
120021
+ * The library or asset is missing, deleted or belongs to another tenant; verify its identifier and owner.
120022
+ */
120023
+ 404: MediaMediaError;
120024
+ /**
120025
+ * Request failed; see the error code reference.
120026
+ */
120027
+ 409: MediaMediaError;
120028
+ /**
120029
+ * The file exceeds an input limit; provide a smaller source file.
120030
+ */
120031
+ 413: MediaMediaError;
120032
+ /**
120033
+ * This media format is unsupported; provide a supported format.
120034
+ */
120035
+ 415: MediaMediaError;
120036
+ /**
120037
+ * Request failed; see the error code reference.
120038
+ */
120039
+ 422: MediaMediaError;
120040
+ /**
120041
+ * A rate limit was reached; wait before retrying.
120042
+ */
120043
+ 429: MediaMediaError;
120044
+ /**
120045
+ * The requested operation is unsupported; choose a supported method.
120046
+ */
120047
+ 501: MediaMediaError;
120048
+ /**
120049
+ * Request failed; see the error code reference.
120050
+ */
120051
+ 502: MediaMediaError;
120052
+ /**
120053
+ * Historical projections are still being initialized, or library storage is temporarily unavailable; retry shortly and check failureSummary counts_complete.
120054
+ */
120055
+ 503: MediaMediaError;
120056
+ };
120057
+ export type MediaListJobsError = MediaListJobsErrors[keyof MediaListJobsErrors];
120058
+ export type MediaListJobsResponses = {
120059
+ /**
120060
+ * Successful response.
120061
+ */
120062
+ 200: MediaJobPage;
120063
+ };
120064
+ export type MediaListJobsResponse = MediaListJobsResponses[keyof MediaListJobsResponses];
120065
+ export type MediaCancelJobData = {
120066
+ body?: never;
120067
+ path: {
120068
+ /**
120069
+ * Library ID returned by creation.
120070
+ */
120071
+ library_id: string;
120072
+ /**
120073
+ * Job identifier returned by batch or generation creation; the job is resolved within the specified library.
120074
+ */
120075
+ job_id: string;
120076
+ };
120077
+ query?: never;
120078
+ url: '/media/v1/libraries/{library_id}/jobs/{job_id}/cancel';
120079
+ };
120080
+ export type MediaCancelJobErrors = {
120081
+ /**
120082
+ * A selector, cursor, limit or other parameter is invalid; correct the reported field before retrying.
120083
+ */
120084
+ 400: MediaMediaError;
120085
+ /**
120086
+ * Request failed; see the error code reference.
120087
+ */
120088
+ 402: MediaMediaError;
120089
+ /**
120090
+ * This credential has read-only access to the library; use a write-capable binding for mutations.
120091
+ */
120092
+ 403: MediaMediaError;
120093
+ /**
120094
+ * The library or asset is missing, deleted or belongs to another tenant; verify its identifier and owner.
120095
+ */
120096
+ 404: MediaMediaError;
120097
+ /**
120098
+ * Request failed; see the error code reference.
120099
+ */
120100
+ 409: MediaMediaError;
120101
+ /**
120102
+ * The file exceeds an input limit; provide a smaller source file.
120103
+ */
120104
+ 413: MediaMediaError;
120105
+ /**
120106
+ * This media format is unsupported; provide a supported format.
120107
+ */
120108
+ 415: MediaMediaError;
120109
+ /**
120110
+ * Request failed; see the error code reference.
120111
+ */
120112
+ 422: MediaMediaError;
120113
+ /**
120114
+ * A rate limit was reached; wait before retrying.
120115
+ */
120116
+ 429: MediaMediaError;
120117
+ /**
120118
+ * The requested operation is unsupported; choose a supported method.
120119
+ */
120120
+ 501: MediaMediaError;
120121
+ /**
120122
+ * Request failed; see the error code reference.
120123
+ */
120124
+ 502: MediaMediaError;
120125
+ /**
120126
+ * Historical projections are still being initialized, or library storage is temporarily unavailable; retry shortly and check failureSummary counts_complete.
120127
+ */
120128
+ 503: MediaMediaError;
120129
+ };
120130
+ export type MediaCancelJobError = MediaCancelJobErrors[keyof MediaCancelJobErrors];
120131
+ export type MediaCancelJobResponses = {
120132
+ /**
120133
+ * Successful response.
120134
+ */
120135
+ 200: MediaJob;
120136
+ };
120137
+ export type MediaCancelJobResponse = MediaCancelJobResponses[keyof MediaCancelJobResponses];
120138
+ export type MediaGetGenerationCapabilitiesData = {
120139
+ body?: never;
120140
+ path?: never;
120141
+ query?: never;
120142
+ url: '/media/v1/generation/capabilities';
120143
+ };
120144
+ export type MediaGetGenerationCapabilitiesErrors = {
120145
+ /**
120146
+ * A selector, cursor, limit or other parameter is invalid; correct the reported field before retrying.
120147
+ */
120148
+ 400: MediaMediaError;
120149
+ /**
120150
+ * Request failed; see the error code reference.
120151
+ */
120152
+ 402: MediaMediaError;
120153
+ /**
120154
+ * This credential has read-only access to the library; use a write-capable binding for mutations.
120155
+ */
120156
+ 403: MediaMediaError;
120157
+ /**
120158
+ * The library or asset is missing, deleted or belongs to another tenant; verify its identifier and owner.
120159
+ */
120160
+ 404: MediaMediaError;
120161
+ /**
120162
+ * Request failed; see the error code reference.
120163
+ */
120164
+ 409: MediaMediaError;
120165
+ /**
120166
+ * The file exceeds an input limit; provide a smaller source file.
120167
+ */
120168
+ 413: MediaMediaError;
120169
+ /**
120170
+ * This media format is unsupported; provide a supported format.
120171
+ */
120172
+ 415: MediaMediaError;
120173
+ /**
120174
+ * Request failed; see the error code reference.
120175
+ */
120176
+ 422: MediaMediaError;
120177
+ /**
120178
+ * A rate limit was reached; wait before retrying.
120179
+ */
120180
+ 429: MediaMediaError;
120181
+ /**
120182
+ * The requested operation is unsupported; choose a supported method.
120183
+ */
120184
+ 501: MediaMediaError;
120185
+ /**
120186
+ * Request failed; see the error code reference.
120187
+ */
120188
+ 502: MediaMediaError;
120189
+ /**
120190
+ * Historical projections are still being initialized, or library storage is temporarily unavailable; retry shortly and check failureSummary counts_complete.
120191
+ */
120192
+ 503: MediaMediaError;
120193
+ };
120194
+ export type MediaGetGenerationCapabilitiesError = MediaGetGenerationCapabilitiesErrors[keyof MediaGetGenerationCapabilitiesErrors];
120195
+ export type MediaGetGenerationCapabilitiesResponses = {
120196
+ /**
120197
+ * Successful response.
120198
+ */
120199
+ 200: MediaGenerationCapabilities;
120200
+ };
120201
+ export type MediaGetGenerationCapabilitiesResponse = MediaGetGenerationCapabilitiesResponses[keyof MediaGetGenerationCapabilitiesResponses];
120202
+ export type MediaAlignAssetData = {
120203
+ /**
120204
+ * 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.
120205
+ */
120206
+ body: {
120207
+ /**
120208
+ * 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.
120209
+ */
120210
+ reference_asset_id: string;
120211
+ /**
120212
+ * 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.
120213
+ */
120214
+ max_offset_seconds?: number;
120215
+ /**
120216
+ * Stable key so a retried request reuses the same job instead of analysing and charging again; reusing it with different content is rejected.
120217
+ */
120218
+ idempotency_key?: string;
120219
+ };
120220
+ headers?: {
120221
+ /**
120222
+ * 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.
120223
+ */
120224
+ 'Idempotency-Key'?: string;
120225
+ };
120226
+ path: {
120227
+ /**
120228
+ * Library ID returned by creation.
120229
+ */
120230
+ library_id: string;
120231
+ /**
120232
+ * 32-character asset ID.
120233
+ */
120234
+ asset_id: string;
120235
+ };
120236
+ query?: never;
120237
+ url: '/media/v1/libraries/{library_id}/assets/{asset_id}/align';
120238
+ };
120239
+ export type MediaAlignAssetErrors = {
120240
+ /**
120241
+ * 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.
120242
+ */
120243
+ 400: MediaMediaError;
120244
+ /**
120245
+ * 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.
120246
+ */
120247
+ 402: MediaMediaError;
120248
+ /**
120249
+ * This credential has read-only access to the library; use a write-capable binding for mutations.
120250
+ */
120251
+ 403: MediaMediaError;
120252
+ /**
120253
+ * 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.
120254
+ */
120255
+ 404: MediaMediaError;
120256
+ /**
120257
+ * 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.
120258
+ */
120259
+ 409: MediaMediaError;
120260
+ /**
120261
+ * The file exceeds an input limit; provide a smaller source file.
120262
+ */
120263
+ 413: MediaMediaError;
120264
+ /**
120265
+ * This media format is unsupported; provide a supported format.
120266
+ */
120267
+ 415: MediaMediaError;
120268
+ /**
120269
+ * 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.
120270
+ */
120271
+ 422: MediaMediaError;
120272
+ /**
120273
+ * 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.
120274
+ */
120275
+ 429: MediaMediaError;
120276
+ /**
120277
+ * The requested operation is unsupported; choose a supported method.
120278
+ */
120279
+ 501: MediaMediaError;
120280
+ /**
120281
+ * Request failed; see the error code reference.
120282
+ */
120283
+ 502: MediaMediaError;
120284
+ /**
120285
+ * Historical projections are still being initialized, or library storage is temporarily unavailable; retry shortly and check failureSummary counts_complete.
120286
+ */
120287
+ 503: MediaMediaError;
120288
+ };
120289
+ export type MediaAlignAssetError = MediaAlignAssetErrors[keyof MediaAlignAssetErrors];
120290
+ export type MediaAlignAssetResponses = {
120291
+ /**
120292
+ * 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.
120293
+ */
120294
+ 202: MediaJob;
120295
+ };
120296
+ export type MediaAlignAssetResponse = MediaAlignAssetResponses[keyof MediaAlignAssetResponses];
120297
+ export type MediaGetHlsRenditionsData = {
120298
+ body?: never;
120299
+ path: {
120300
+ /**
120301
+ * Library ID returned by creation.
120302
+ */
120303
+ library_id: string;
120304
+ /**
120305
+ * 32-character asset ID.
120306
+ */
120307
+ asset_id: string;
120308
+ };
120309
+ query?: never;
120310
+ url: '/media/v1/libraries/{library_id}/assets/{asset_id}/hls';
120311
+ };
120312
+ export type MediaGetHlsRenditionsErrors = {
120313
+ /**
120314
+ * A selector, cursor, limit or other parameter is invalid; correct the reported field before retrying.
120315
+ */
120316
+ 400: MediaMediaError;
120317
+ /**
120318
+ * Request failed; see the error code reference.
120319
+ */
120320
+ 402: MediaMediaError;
120321
+ /**
120322
+ * This credential has read-only access to the library; use a write-capable binding for mutations.
120323
+ */
120324
+ 403: MediaMediaError;
120325
+ /**
120326
+ * The library or asset is missing, deleted or belongs to another tenant; verify its identifier and owner.
120327
+ */
120328
+ 404: MediaMediaError;
120329
+ /**
120330
+ * Request failed; see the error code reference.
120331
+ */
120332
+ 409: MediaMediaError;
120333
+ /**
120334
+ * The file exceeds an input limit; provide a smaller source file.
120335
+ */
120336
+ 413: MediaMediaError;
120337
+ /**
120338
+ * This media format is unsupported; provide a supported format.
120339
+ */
120340
+ 415: MediaMediaError;
120341
+ /**
120342
+ * Request failed; see the error code reference.
120343
+ */
120344
+ 422: MediaMediaError;
120345
+ /**
120346
+ * A rate limit was reached; wait before retrying.
120347
+ */
120348
+ 429: MediaMediaError;
120349
+ /**
120350
+ * The requested operation is unsupported; choose a supported method.
120351
+ */
120352
+ 501: MediaMediaError;
120353
+ /**
120354
+ * Request failed; see the error code reference.
120355
+ */
120356
+ 502: MediaMediaError;
120357
+ /**
120358
+ * Historical projections are still being initialized, or library storage is temporarily unavailable; retry shortly and check failureSummary counts_complete.
120359
+ */
120360
+ 503: MediaMediaError;
120361
+ };
120362
+ export type MediaGetHlsRenditionsError = MediaGetHlsRenditionsErrors[keyof MediaGetHlsRenditionsErrors];
120363
+ export type MediaGetHlsRenditionsResponses = {
120364
+ /**
120365
+ * Successful response.
120366
+ */
120367
+ 200: MediaHlsLadder;
120368
+ };
120369
+ export type MediaGetHlsRenditionsResponse = MediaGetHlsRenditionsResponses[keyof MediaGetHlsRenditionsResponses];
120370
+ export type MediaRequestHlsRenditionsData = {
120371
+ /**
120372
+ * Which clarity rungs to build for the asset. Omit heights to build the whole ladder.
120373
+ */
120374
+ body: {
120375
+ /**
120376
+ * 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.
120377
+ */
120378
+ heights?: Array<480 | 720 | 1080>;
120379
+ };
120380
+ path: {
120381
+ /**
120382
+ * Library ID returned by creation.
120383
+ */
120384
+ library_id: string;
120385
+ /**
120386
+ * 32-character asset ID.
120387
+ */
120388
+ asset_id: string;
120389
+ };
120390
+ query?: never;
120391
+ url: '/media/v1/libraries/{library_id}/assets/{asset_id}/hls';
120392
+ };
120393
+ export type MediaRequestHlsRenditionsErrors = {
120394
+ /**
120395
+ * A selector, cursor, limit or other parameter is invalid; correct the reported field before retrying.
120396
+ */
120397
+ 400: MediaMediaError;
120398
+ /**
120399
+ * Request failed; see the error code reference.
120400
+ */
120401
+ 402: MediaMediaError;
120402
+ /**
120403
+ * This credential has read-only access to the library; use a write-capable binding for mutations.
120404
+ */
120405
+ 403: MediaMediaError;
120406
+ /**
120407
+ * The library or asset is missing, deleted or belongs to another tenant; verify its identifier and owner.
120408
+ */
120409
+ 404: MediaMediaError;
120410
+ /**
120411
+ * Request failed; see the error code reference.
120412
+ */
120413
+ 409: MediaMediaError;
120414
+ /**
120415
+ * The file exceeds an input limit; provide a smaller source file.
120416
+ */
120417
+ 413: MediaMediaError;
120418
+ /**
120419
+ * This media format is unsupported; provide a supported format.
120420
+ */
120421
+ 415: MediaMediaError;
120422
+ /**
120423
+ * Request failed; see the error code reference.
120424
+ */
120425
+ 422: MediaMediaError;
120426
+ /**
120427
+ * A rate limit was reached; wait before retrying.
120428
+ */
120429
+ 429: MediaMediaError;
120430
+ /**
120431
+ * The requested operation is unsupported; choose a supported method.
120432
+ */
120433
+ 501: MediaMediaError;
120434
+ /**
120435
+ * Request failed; see the error code reference.
120436
+ */
120437
+ 502: MediaMediaError;
120438
+ /**
120439
+ * Historical projections are still being initialized, or library storage is temporarily unavailable; retry shortly and check failureSummary counts_complete.
120440
+ */
120441
+ 503: MediaMediaError;
120442
+ };
120443
+ export type MediaRequestHlsRenditionsError = MediaRequestHlsRenditionsErrors[keyof MediaRequestHlsRenditionsErrors];
120444
+ export type MediaRequestHlsRenditionsResponses = {
118824
120445
  /**
118825
120446
  * Successful response.
118826
120447
  */
118827
- 200: MediaUnderstandingPage;
120448
+ 202: MediaHlsLadder;
118828
120449
  };
118829
- export type MediaListUnderstandingsByLibraryResponse = MediaListUnderstandingsByLibraryResponses[keyof MediaListUnderstandingsByLibraryResponses];
118830
- export type MediaListJobsData = {
118831
- body?: never;
118832
- path: {
120450
+ export type MediaRequestHlsRenditionsResponse = MediaRequestHlsRenditionsResponses[keyof MediaRequestHlsRenditionsResponses];
120451
+ export type MediaCreateVoiceData = {
120452
+ /**
120453
+ * Exactly one of the two voice shapes: consent_id with samples (a consented voice) or design_asset_id (a generated voice).
120454
+ */
120455
+ body: MediaVoiceCloneInput | MediaVoiceDesignCreateInput;
120456
+ headers?: {
118833
120457
  /**
118834
- * Library ID returned by creation.
120458
+ * 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.
118835
120459
  */
118836
- library_id: string;
120460
+ 'Idempotency-Key'?: string;
118837
120461
  };
118838
- query?: {
118839
- /**
118840
- * Filter jobs by their current status.
118841
- */
118842
- status?: MediaJobStatus;
118843
- /**
118844
- * Return only the jobs started by this automation run (its root run), so one pipeline run reads as one batch.
118845
- */
118846
- pipeline_run_id?: string;
118847
- /**
118848
- * Maximum entries in this page, from 1 through 100; defaults to 100.
118849
- */
118850
- limit?: number;
120462
+ path: {
118851
120463
  /**
118852
- * Job id from the previous page’s next_cursor; omit for the first page.
120464
+ * Library ID returned by creation.
118853
120465
  */
118854
- cursor?: MediaJobId;
120466
+ library_id: string;
118855
120467
  };
118856
- url: '/media/v1/libraries/{library_id}/jobs';
120468
+ query?: never;
120469
+ url: '/media/v1/libraries/{library_id}/voices';
118857
120470
  };
118858
- export type MediaListJobsErrors = {
120471
+ export type MediaCreateVoiceErrors = {
118859
120472
  /**
118860
- * A selector, cursor, limit or other parameter is invalid; correct the reported field before retrying.
120473
+ * Request failed; see the error code reference.
118861
120474
  */
118862
120475
  400: MediaMediaError;
118863
120476
  /**
@@ -118865,11 +120478,11 @@ export type MediaListJobsErrors = {
118865
120478
  */
118866
120479
  402: MediaMediaError;
118867
120480
  /**
118868
- * This credential has read-only access to the library; use a write-capable binding for mutations.
120481
+ * Request failed; see the error code reference.
118869
120482
  */
118870
120483
  403: MediaMediaError;
118871
120484
  /**
118872
- * The library or asset is missing, deleted or belongs to another tenant; verify its identifier and owner.
120485
+ * Request failed; see the error code reference.
118873
120486
  */
118874
120487
  404: MediaMediaError;
118875
120488
  /**
@@ -118877,11 +120490,11 @@ export type MediaListJobsErrors = {
118877
120490
  */
118878
120491
  409: MediaMediaError;
118879
120492
  /**
118880
- * The file exceeds an input limit; provide a smaller source file.
120493
+ * Request failed; see the error code reference.
118881
120494
  */
118882
120495
  413: MediaMediaError;
118883
120496
  /**
118884
- * This media format is unsupported; provide a supported format.
120497
+ * Request failed; see the error code reference.
118885
120498
  */
118886
120499
  415: MediaMediaError;
118887
120500
  /**
@@ -118889,11 +120502,11 @@ export type MediaListJobsErrors = {
118889
120502
  */
118890
120503
  422: MediaMediaError;
118891
120504
  /**
118892
- * A rate limit was reached; wait before retrying.
120505
+ * Request failed; see the error code reference.
118893
120506
  */
118894
120507
  429: MediaMediaError;
118895
120508
  /**
118896
- * The requested operation is unsupported; choose a supported method.
120509
+ * Request failed; see the error code reference.
118897
120510
  */
118898
120511
  501: MediaMediaError;
118899
120512
  /**
@@ -118901,36 +120514,58 @@ export type MediaListJobsErrors = {
118901
120514
  */
118902
120515
  502: MediaMediaError;
118903
120516
  /**
118904
- * Historical projections are still being initialized, or library storage is temporarily unavailable; retry shortly and check failureSummary counts_complete.
120517
+ * Request failed; see the error code reference.
118905
120518
  */
118906
120519
  503: MediaMediaError;
118907
120520
  };
118908
- export type MediaListJobsError = MediaListJobsErrors[keyof MediaListJobsErrors];
118909
- export type MediaListJobsResponses = {
120521
+ export type MediaCreateVoiceError = MediaCreateVoiceErrors[keyof MediaCreateVoiceErrors];
120522
+ export type MediaCreateVoiceResponses = {
118910
120523
  /**
118911
120524
  * Successful response.
118912
120525
  */
118913
- 200: MediaJobPage;
120526
+ 202: MediaJob;
118914
120527
  };
118915
- export type MediaListJobsResponse = MediaListJobsResponses[keyof MediaListJobsResponses];
118916
- export type MediaCancelJobData = {
118917
- body?: never;
120528
+ export type MediaCreateVoiceResponse = MediaCreateVoiceResponses[keyof MediaCreateVoiceResponses];
120529
+ export type MediaDesignVoiceData = {
120530
+ /**
120531
+ * One voice-design run: what the voice should sound like and the line the previews speak.
120532
+ */
120533
+ body: {
120534
+ /**
120535
+ * 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.
120536
+ */
120537
+ description: string;
120538
+ /**
120539
+ * Line each preview speaks, 15 to 200 characters: long enough to hear the voice, short enough for one model call.
120540
+ */
120541
+ preview_text: string;
120542
+ /**
120543
+ * Language the previews speak: zh or en only.
120544
+ */
120545
+ language: 'zh' | 'en';
120546
+ /**
120547
+ * How many preview recordings to design, 1 to 3; defaults to 3. Each one is stored as an audio asset.
120548
+ */
120549
+ count?: number;
120550
+ };
120551
+ headers?: {
120552
+ /**
120553
+ * 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.
120554
+ */
120555
+ 'Idempotency-Key'?: string;
120556
+ };
118918
120557
  path: {
118919
120558
  /**
118920
120559
  * Library ID returned by creation.
118921
120560
  */
118922
120561
  library_id: string;
118923
- /**
118924
- * Job identifier returned by batch or generation creation; the job is resolved within the specified library.
118925
- */
118926
- job_id: string;
118927
120562
  };
118928
120563
  query?: never;
118929
- url: '/media/v1/libraries/{library_id}/jobs/{job_id}/cancel';
120564
+ url: '/media/v1/libraries/{library_id}/voices/designs';
118930
120565
  };
118931
- export type MediaCancelJobErrors = {
120566
+ export type MediaDesignVoiceErrors = {
118932
120567
  /**
118933
- * A selector, cursor, limit or other parameter is invalid; correct the reported field before retrying.
120568
+ * Request failed; see the error code reference.
118934
120569
  */
118935
120570
  400: MediaMediaError;
118936
120571
  /**
@@ -118938,11 +120573,11 @@ export type MediaCancelJobErrors = {
118938
120573
  */
118939
120574
  402: MediaMediaError;
118940
120575
  /**
118941
- * This credential has read-only access to the library; use a write-capable binding for mutations.
120576
+ * Request failed; see the error code reference.
118942
120577
  */
118943
120578
  403: MediaMediaError;
118944
120579
  /**
118945
- * The library or asset is missing, deleted or belongs to another tenant; verify its identifier and owner.
120580
+ * Request failed; see the error code reference.
118946
120581
  */
118947
120582
  404: MediaMediaError;
118948
120583
  /**
@@ -118950,11 +120585,11 @@ export type MediaCancelJobErrors = {
118950
120585
  */
118951
120586
  409: MediaMediaError;
118952
120587
  /**
118953
- * The file exceeds an input limit; provide a smaller source file.
120588
+ * Request failed; see the error code reference.
118954
120589
  */
118955
120590
  413: MediaMediaError;
118956
120591
  /**
118957
- * This media format is unsupported; provide a supported format.
120592
+ * Request failed; see the error code reference.
118958
120593
  */
118959
120594
  415: MediaMediaError;
118960
120595
  /**
@@ -118962,11 +120597,11 @@ export type MediaCancelJobErrors = {
118962
120597
  */
118963
120598
  422: MediaMediaError;
118964
120599
  /**
118965
- * A rate limit was reached; wait before retrying.
120600
+ * Request failed; see the error code reference.
118966
120601
  */
118967
120602
  429: MediaMediaError;
118968
120603
  /**
118969
- * The requested operation is unsupported; choose a supported method.
120604
+ * Request failed; see the error code reference.
118970
120605
  */
118971
120606
  501: MediaMediaError;
118972
120607
  /**
@@ -118974,25 +120609,51 @@ export type MediaCancelJobErrors = {
118974
120609
  */
118975
120610
  502: MediaMediaError;
118976
120611
  /**
118977
- * Historical projections are still being initialized, or library storage is temporarily unavailable; retry shortly and check failureSummary counts_complete.
120612
+ * Request failed; see the error code reference.
118978
120613
  */
118979
120614
  503: MediaMediaError;
118980
120615
  };
118981
- export type MediaCancelJobError = MediaCancelJobErrors[keyof MediaCancelJobErrors];
118982
- export type MediaCancelJobResponses = {
120616
+ export type MediaDesignVoiceError = MediaDesignVoiceErrors[keyof MediaDesignVoiceErrors];
120617
+ export type MediaDesignVoiceResponses = {
118983
120618
  /**
118984
120619
  * Successful response.
118985
120620
  */
118986
- 200: MediaJob;
120621
+ 202: MediaJob;
118987
120622
  };
118988
- export type MediaCancelJobResponse = MediaCancelJobResponses[keyof MediaCancelJobResponses];
118989
- export type MediaGetGenerationCapabilitiesData = {
120623
+ export type MediaDesignVoiceResponse = MediaDesignVoiceResponses[keyof MediaDesignVoiceResponses];
120624
+ export type MediaListWorksData = {
118990
120625
  body?: never;
118991
- path?: never;
118992
- query?: never;
118993
- url: '/media/v1/generation/capabilities';
120626
+ path: {
120627
+ /**
120628
+ * Library ID returned by creation.
120629
+ */
120630
+ library_id: string;
120631
+ };
120632
+ query?: {
120633
+ /**
120634
+ * Only works of this kind: gallery, article, product_listing or blocks.
120635
+ */
120636
+ kind?: 'gallery' | 'article' | 'product_listing' | 'blocks';
120637
+ /**
120638
+ * Only works of this series.
120639
+ */
120640
+ series?: string;
120641
+ /**
120642
+ * Only works whose title contains this text, at most 100 characters.
120643
+ */
120644
+ q?: string;
120645
+ /**
120646
+ * Maximum entries in this page, from 1 through 100; defaults to 100.
120647
+ */
120648
+ limit?: number;
120649
+ /**
120650
+ * Cursor from the previous next_cursor.
120651
+ */
120652
+ cursor?: string;
120653
+ };
120654
+ url: '/media/v1/libraries/{library_id}/works';
118994
120655
  };
118995
- export type MediaGetGenerationCapabilitiesErrors = {
120656
+ export type MediaListWorksErrors = {
118996
120657
  /**
118997
120658
  * A selector, cursor, limit or other parameter is invalid; correct the reported field before retrying.
118998
120659
  */
@@ -119042,58 +120703,52 @@ export type MediaGetGenerationCapabilitiesErrors = {
119042
120703
  */
119043
120704
  503: MediaMediaError;
119044
120705
  };
119045
- export type MediaGetGenerationCapabilitiesError = MediaGetGenerationCapabilitiesErrors[keyof MediaGetGenerationCapabilitiesErrors];
119046
- export type MediaGetGenerationCapabilitiesResponses = {
120706
+ export type MediaListWorksError = MediaListWorksErrors[keyof MediaListWorksErrors];
120707
+ export type MediaListWorksResponses = {
119047
120708
  /**
119048
120709
  * Successful response.
119049
120710
  */
119050
- 200: MediaGenerationCapabilities;
120711
+ 200: MediaWorkPage;
119051
120712
  };
119052
- export type MediaGetGenerationCapabilitiesResponse = MediaGetGenerationCapabilitiesResponses[keyof MediaGetGenerationCapabilitiesResponses];
119053
- export type MediaAlignAssetData = {
120713
+ export type MediaListWorksResponse = MediaListWorksResponses[keyof MediaListWorksResponses];
120714
+ export type MediaCreateWorkData = {
119054
120715
  /**
119055
- * 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.
120716
+ * A new work: its kind and its whole body, with an optional series and custom fields.
119056
120717
  */
119057
120718
  body: {
119058
120719
  /**
119059
- * 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.
120720
+ * The work’s kind; it decides which body fields are accepted.
119060
120721
  */
119061
- reference_asset_id: string;
120722
+ kind: MediaWorkKind;
119062
120723
  /**
119063
- * 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.
120724
+ * 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.
119064
120725
  */
119065
- max_offset_seconds?: number;
120726
+ body: MediaWorkBody;
119066
120727
  /**
119067
- * Stable key so a retried request reuses the same job instead of analysing and charging again; reusing it with different content is rejected.
120728
+ * Groups the platform versions of one story: 1 to 64 characters of a-z, 0-9, _ and -.
119068
120729
  */
119069
- idempotency_key?: string;
119070
- };
119071
- headers?: {
120730
+ series?: string;
119072
120731
  /**
119073
- * 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.
120732
+ * Caller data such as source, published links and numbers; at most 50 keys and 16 KB as JSON.
119074
120733
  */
119075
- 'Idempotency-Key'?: string;
120734
+ custom?: MediaWorkCustom;
119076
120735
  };
119077
120736
  path: {
119078
120737
  /**
119079
120738
  * Library ID returned by creation.
119080
120739
  */
119081
120740
  library_id: string;
119082
- /**
119083
- * 32-character asset ID.
119084
- */
119085
- asset_id: string;
119086
120741
  };
119087
120742
  query?: never;
119088
- url: '/media/v1/libraries/{library_id}/assets/{asset_id}/align';
120743
+ url: '/media/v1/libraries/{library_id}/works';
119089
120744
  };
119090
- export type MediaAlignAssetErrors = {
120745
+ export type MediaCreateWorkErrors = {
119091
120746
  /**
119092
- * 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.
120747
+ * A selector, cursor, limit or other parameter is invalid; correct the reported field before retrying.
119093
120748
  */
119094
120749
  400: MediaMediaError;
119095
120750
  /**
119096
- * 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.
120751
+ * Request failed; see the error code reference.
119097
120752
  */
119098
120753
  402: MediaMediaError;
119099
120754
  /**
@@ -119101,11 +120756,11 @@ export type MediaAlignAssetErrors = {
119101
120756
  */
119102
120757
  403: MediaMediaError;
119103
120758
  /**
119104
- * 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.
120759
+ * The library or asset is missing, deleted or belongs to another tenant; verify its identifier and owner.
119105
120760
  */
119106
120761
  404: MediaMediaError;
119107
120762
  /**
119108
- * 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.
120763
+ * Request failed; see the error code reference.
119109
120764
  */
119110
120765
  409: MediaMediaError;
119111
120766
  /**
@@ -119117,11 +120772,11 @@ export type MediaAlignAssetErrors = {
119117
120772
  */
119118
120773
  415: MediaMediaError;
119119
120774
  /**
119120
- * 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.
120775
+ * Request failed; see the error code reference.
119121
120776
  */
119122
120777
  422: MediaMediaError;
119123
120778
  /**
119124
- * 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.
120779
+ * A rate limit was reached; wait before retrying.
119125
120780
  */
119126
120781
  429: MediaMediaError;
119127
120782
  /**
@@ -119137,15 +120792,15 @@ export type MediaAlignAssetErrors = {
119137
120792
  */
119138
120793
  503: MediaMediaError;
119139
120794
  };
119140
- export type MediaAlignAssetError = MediaAlignAssetErrors[keyof MediaAlignAssetErrors];
119141
- export type MediaAlignAssetResponses = {
120795
+ export type MediaCreateWorkError = MediaCreateWorkErrors[keyof MediaCreateWorkErrors];
120796
+ export type MediaCreateWorkResponses = {
119142
120797
  /**
119143
- * 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.
120798
+ * Successful response.
119144
120799
  */
119145
- 202: MediaJob;
120800
+ 200: MediaWork;
119146
120801
  };
119147
- export type MediaAlignAssetResponse = MediaAlignAssetResponses[keyof MediaAlignAssetResponses];
119148
- export type MediaGetHlsRenditionsData = {
120802
+ export type MediaCreateWorkResponse = MediaCreateWorkResponses[keyof MediaCreateWorkResponses];
120803
+ export type MediaDeleteWorkData = {
119149
120804
  body?: never;
119150
120805
  path: {
119151
120806
  /**
@@ -119153,14 +120808,14 @@ export type MediaGetHlsRenditionsData = {
119153
120808
  */
119154
120809
  library_id: string;
119155
120810
  /**
119156
- * 32-character asset ID.
120811
+ * Work id (wrk_…) returned by creation or listing.
119157
120812
  */
119158
- asset_id: string;
120813
+ work_id: string;
119159
120814
  };
119160
120815
  query?: never;
119161
- url: '/media/v1/libraries/{library_id}/assets/{asset_id}/hls';
120816
+ url: '/media/v1/libraries/{library_id}/works/{work_id}';
119162
120817
  };
119163
- export type MediaGetHlsRenditionsErrors = {
120818
+ export type MediaDeleteWorkErrors = {
119164
120819
  /**
119165
120820
  * A selector, cursor, limit or other parameter is invalid; correct the reported field before retrying.
119166
120821
  */
@@ -119210,38 +120865,35 @@ export type MediaGetHlsRenditionsErrors = {
119210
120865
  */
119211
120866
  503: MediaMediaError;
119212
120867
  };
119213
- export type MediaGetHlsRenditionsError = MediaGetHlsRenditionsErrors[keyof MediaGetHlsRenditionsErrors];
119214
- export type MediaGetHlsRenditionsResponses = {
120868
+ export type MediaDeleteWorkError = MediaDeleteWorkErrors[keyof MediaDeleteWorkErrors];
120869
+ export type MediaDeleteWorkResponses = {
119215
120870
  /**
119216
120871
  * Successful response.
119217
120872
  */
119218
- 200: MediaHlsLadder;
120873
+ 200: MediaDeletedWork;
119219
120874
  };
119220
- export type MediaGetHlsRenditionsResponse = MediaGetHlsRenditionsResponses[keyof MediaGetHlsRenditionsResponses];
119221
- export type MediaRequestHlsRenditionsData = {
119222
- /**
119223
- * Which clarity rungs to build for the asset. Omit heights to build the whole ladder.
119224
- */
119225
- body: {
119226
- /**
119227
- * 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.
119228
- */
119229
- heights?: Array<480 | 720 | 1080>;
119230
- };
120875
+ export type MediaDeleteWorkResponse = MediaDeleteWorkResponses[keyof MediaDeleteWorkResponses];
120876
+ export type MediaGetWorkData = {
120877
+ body?: never;
119231
120878
  path: {
119232
120879
  /**
119233
120880
  * Library ID returned by creation.
119234
120881
  */
119235
120882
  library_id: string;
119236
120883
  /**
119237
- * 32-character asset ID.
120884
+ * Work id (wrk_…) returned by creation or listing.
119238
120885
  */
119239
- asset_id: string;
120886
+ work_id: string;
119240
120887
  };
119241
- query?: never;
119242
- url: '/media/v1/libraries/{library_id}/assets/{asset_id}/hls';
120888
+ query?: {
120889
+ /**
120890
+ * assets returns every referenced asset with its URLs and size.
120891
+ */
120892
+ expand?: string;
120893
+ };
120894
+ url: '/media/v1/libraries/{library_id}/works/{work_id}';
119243
120895
  };
119244
- export type MediaRequestHlsRenditionsErrors = {
120896
+ export type MediaGetWorkErrors = {
119245
120897
  /**
119246
120898
  * A selector, cursor, limit or other parameter is invalid; correct the reported field before retrying.
119247
120899
  */
@@ -119291,37 +120943,52 @@ export type MediaRequestHlsRenditionsErrors = {
119291
120943
  */
119292
120944
  503: MediaMediaError;
119293
120945
  };
119294
- export type MediaRequestHlsRenditionsError = MediaRequestHlsRenditionsErrors[keyof MediaRequestHlsRenditionsErrors];
119295
- export type MediaRequestHlsRenditionsResponses = {
120946
+ export type MediaGetWorkError = MediaGetWorkErrors[keyof MediaGetWorkErrors];
120947
+ export type MediaGetWorkResponses = {
119296
120948
  /**
119297
120949
  * Successful response.
119298
120950
  */
119299
- 202: MediaHlsLadder;
120951
+ 200: MediaWork;
119300
120952
  };
119301
- export type MediaRequestHlsRenditionsResponse = MediaRequestHlsRenditionsResponses[keyof MediaRequestHlsRenditionsResponses];
119302
- export type MediaCreateVoiceData = {
120953
+ export type MediaGetWorkResponse = MediaGetWorkResponses[keyof MediaGetWorkResponses];
120954
+ export type MediaUpdateWorkData = {
119303
120955
  /**
119304
- * Exactly one of the two voice shapes: consent_id with samples (a consented voice) or design_asset_id (a generated voice).
120956
+ * Changes to a work. Send only what changes.
119305
120957
  */
119306
- body: MediaVoiceCloneInput | MediaVoiceDesignCreateInput;
119307
- headers?: {
120958
+ body: {
119308
120959
  /**
119309
- * 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.
120960
+ * A whole new body for the same kind; it replaces the old one and is checked like a new one.
119310
120961
  */
119311
- 'Idempotency-Key'?: string;
120962
+ body?: MediaWorkBody;
120963
+ /**
120964
+ * A new series, or null to clear it.
120965
+ */
120966
+ series?: string | null;
120967
+ /**
120968
+ * A JSON Merge Patch (RFC 7396): keys you send are set, keys set to null are removed, keys you leave out are kept.
120969
+ */
120970
+ custom?: MediaWorkCustom;
120971
+ /**
120972
+ * Apply the change only if the work is still at this revision; otherwise the answer is 409 REVISION_CONFLICT with the current revision.
120973
+ */
120974
+ if_revision?: number;
119312
120975
  };
119313
120976
  path: {
119314
120977
  /**
119315
120978
  * Library ID returned by creation.
119316
120979
  */
119317
120980
  library_id: string;
120981
+ /**
120982
+ * Work id (wrk_…) returned by creation or listing.
120983
+ */
120984
+ work_id: string;
119318
120985
  };
119319
120986
  query?: never;
119320
- url: '/media/v1/libraries/{library_id}/voices';
120987
+ url: '/media/v1/libraries/{library_id}/works/{work_id}';
119321
120988
  };
119322
- export type MediaCreateVoiceErrors = {
120989
+ export type MediaUpdateWorkErrors = {
119323
120990
  /**
119324
- * Request failed; see the error code reference.
120991
+ * A selector, cursor, limit or other parameter is invalid; correct the reported field before retrying.
119325
120992
  */
119326
120993
  400: MediaMediaError;
119327
120994
  /**
@@ -119329,11 +120996,11 @@ export type MediaCreateVoiceErrors = {
119329
120996
  */
119330
120997
  402: MediaMediaError;
119331
120998
  /**
119332
- * Request failed; see the error code reference.
120999
+ * This credential has read-only access to the library; use a write-capable binding for mutations.
119333
121000
  */
119334
121001
  403: MediaMediaError;
119335
121002
  /**
119336
- * Request failed; see the error code reference.
121003
+ * The library or asset is missing, deleted or belongs to another tenant; verify its identifier and owner.
119337
121004
  */
119338
121005
  404: MediaMediaError;
119339
121006
  /**
@@ -119341,11 +121008,11 @@ export type MediaCreateVoiceErrors = {
119341
121008
  */
119342
121009
  409: MediaMediaError;
119343
121010
  /**
119344
- * Request failed; see the error code reference.
121011
+ * The file exceeds an input limit; provide a smaller source file.
119345
121012
  */
119346
121013
  413: MediaMediaError;
119347
121014
  /**
119348
- * Request failed; see the error code reference.
121015
+ * This media format is unsupported; provide a supported format.
119349
121016
  */
119350
121017
  415: MediaMediaError;
119351
121018
  /**
@@ -119353,11 +121020,11 @@ export type MediaCreateVoiceErrors = {
119353
121020
  */
119354
121021
  422: MediaMediaError;
119355
121022
  /**
119356
- * Request failed; see the error code reference.
121023
+ * A rate limit was reached; wait before retrying.
119357
121024
  */
119358
121025
  429: MediaMediaError;
119359
121026
  /**
119360
- * Request failed; see the error code reference.
121027
+ * The requested operation is unsupported; choose a supported method.
119361
121028
  */
119362
121029
  501: MediaMediaError;
119363
121030
  /**
@@ -119365,58 +121032,45 @@ export type MediaCreateVoiceErrors = {
119365
121032
  */
119366
121033
  502: MediaMediaError;
119367
121034
  /**
119368
- * Request failed; see the error code reference.
121035
+ * Historical projections are still being initialized, or library storage is temporarily unavailable; retry shortly and check failureSummary counts_complete.
119369
121036
  */
119370
121037
  503: MediaMediaError;
119371
121038
  };
119372
- export type MediaCreateVoiceError = MediaCreateVoiceErrors[keyof MediaCreateVoiceErrors];
119373
- export type MediaCreateVoiceResponses = {
121039
+ export type MediaUpdateWorkError = MediaUpdateWorkErrors[keyof MediaUpdateWorkErrors];
121040
+ export type MediaUpdateWorkResponses = {
119374
121041
  /**
119375
121042
  * Successful response.
119376
121043
  */
119377
- 202: MediaJob;
121044
+ 200: MediaWork;
119378
121045
  };
119379
- export type MediaCreateVoiceResponse = MediaCreateVoiceResponses[keyof MediaCreateVoiceResponses];
119380
- export type MediaDesignVoiceData = {
119381
- /**
119382
- * One voice-design run: what the voice should sound like and the line the previews speak.
119383
- */
119384
- body: {
119385
- /**
119386
- * 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.
119387
- */
119388
- description: string;
119389
- /**
119390
- * Line each preview speaks, 15 to 200 characters: long enough to hear the voice, short enough for one model call.
119391
- */
119392
- preview_text: string;
121046
+ export type MediaUpdateWorkResponse = MediaUpdateWorkResponses[keyof MediaUpdateWorkResponses];
121047
+ export type MediaListAssetWorksData = {
121048
+ body?: never;
121049
+ path: {
119393
121050
  /**
119394
- * Language the previews speak: zh or en only.
121051
+ * Library ID returned by creation.
119395
121052
  */
119396
- language: 'zh' | 'en';
121053
+ library_id: string;
119397
121054
  /**
119398
- * How many preview recordings to design, 1 to 3; defaults to 3. Each one is stored as an audio asset.
121055
+ * 32-character asset ID.
119399
121056
  */
119400
- count?: number;
121057
+ asset_id: string;
119401
121058
  };
119402
- headers?: {
121059
+ query?: {
119403
121060
  /**
119404
- * 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.
121061
+ * Maximum entries in this page, from 1 through 100; defaults to 100.
119405
121062
  */
119406
- 'Idempotency-Key'?: string;
119407
- };
119408
- path: {
121063
+ limit?: number;
119409
121064
  /**
119410
- * Library ID returned by creation.
121065
+ * Cursor from the previous next_cursor.
119411
121066
  */
119412
- library_id: string;
121067
+ cursor?: string;
119413
121068
  };
119414
- query?: never;
119415
- url: '/media/v1/libraries/{library_id}/voices/designs';
121069
+ url: '/media/v1/libraries/{library_id}/assets/{asset_id}/works';
119416
121070
  };
119417
- export type MediaDesignVoiceErrors = {
121071
+ export type MediaListAssetWorksErrors = {
119418
121072
  /**
119419
- * Request failed; see the error code reference.
121073
+ * A selector, cursor, limit or other parameter is invalid; correct the reported field before retrying.
119420
121074
  */
119421
121075
  400: MediaMediaError;
119422
121076
  /**
@@ -119424,11 +121078,11 @@ export type MediaDesignVoiceErrors = {
119424
121078
  */
119425
121079
  402: MediaMediaError;
119426
121080
  /**
119427
- * Request failed; see the error code reference.
121081
+ * This credential has read-only access to the library; use a write-capable binding for mutations.
119428
121082
  */
119429
121083
  403: MediaMediaError;
119430
121084
  /**
119431
- * Request failed; see the error code reference.
121085
+ * The library or asset is missing, deleted or belongs to another tenant; verify its identifier and owner.
119432
121086
  */
119433
121087
  404: MediaMediaError;
119434
121088
  /**
@@ -119436,11 +121090,11 @@ export type MediaDesignVoiceErrors = {
119436
121090
  */
119437
121091
  409: MediaMediaError;
119438
121092
  /**
119439
- * Request failed; see the error code reference.
121093
+ * The file exceeds an input limit; provide a smaller source file.
119440
121094
  */
119441
121095
  413: MediaMediaError;
119442
121096
  /**
119443
- * Request failed; see the error code reference.
121097
+ * This media format is unsupported; provide a supported format.
119444
121098
  */
119445
121099
  415: MediaMediaError;
119446
121100
  /**
@@ -119448,11 +121102,11 @@ export type MediaDesignVoiceErrors = {
119448
121102
  */
119449
121103
  422: MediaMediaError;
119450
121104
  /**
119451
- * Request failed; see the error code reference.
121105
+ * A rate limit was reached; wait before retrying.
119452
121106
  */
119453
121107
  429: MediaMediaError;
119454
121108
  /**
119455
- * Request failed; see the error code reference.
121109
+ * The requested operation is unsupported; choose a supported method.
119456
121110
  */
119457
121111
  501: MediaMediaError;
119458
121112
  /**
@@ -119460,18 +121114,18 @@ export type MediaDesignVoiceErrors = {
119460
121114
  */
119461
121115
  502: MediaMediaError;
119462
121116
  /**
119463
- * Request failed; see the error code reference.
121117
+ * Historical projections are still being initialized, or library storage is temporarily unavailable; retry shortly and check failureSummary counts_complete.
119464
121118
  */
119465
121119
  503: MediaMediaError;
119466
121120
  };
119467
- export type MediaDesignVoiceError = MediaDesignVoiceErrors[keyof MediaDesignVoiceErrors];
119468
- export type MediaDesignVoiceResponses = {
121121
+ export type MediaListAssetWorksError = MediaListAssetWorksErrors[keyof MediaListAssetWorksErrors];
121122
+ export type MediaListAssetWorksResponses = {
119469
121123
  /**
119470
121124
  * Successful response.
119471
121125
  */
119472
- 202: MediaJob;
121126
+ 200: MediaWorkPage;
119473
121127
  };
119474
- export type MediaDesignVoiceResponse = MediaDesignVoiceResponses[keyof MediaDesignVoiceResponses];
121128
+ export type MediaListAssetWorksResponse = MediaListAssetWorksResponses[keyof MediaListAssetWorksResponses];
119475
121129
  export type OntologyListTypesData = {
119476
121130
  body?: never;
119477
121131
  path?: never;
@@ -121431,7 +123085,7 @@ export type GetSandboxV1SandboxesResponses = {
121431
123085
  };
121432
123086
  export type GetSandboxV1SandboxesResponse = GetSandboxV1SandboxesResponses[keyof GetSandboxV1SandboxesResponses];
121433
123087
  export type PostSandboxV1SandboxesData = {
121434
- body: SandboxNewSandboxV2;
123088
+ body: SandboxNewSandboxV2Writable;
121435
123089
  path?: never;
121436
123090
  query?: never;
121437
123091
  url: '/sandbox/v1/sandboxes';