@deepraxis/sdk 0.2.0-dev.47ce97a → 0.2.0-dev.4a25c6a

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.
@@ -3609,7 +3609,7 @@ export type BrowserSessionCreateParams = {
3609
3609
  */
3610
3610
  projectId?: string;
3611
3611
  /**
3612
- * 谁能看到这个新会话:默认 private 只有创建者;organization 允许同组织其他成员只读观看画面。
3612
+ * 谁能看到这个新会话:默认 private 只有创建者;organization 允许同组织其他成员只读观看画面。自带浏览器(source.type 为 byob)的会话一律是 organization,传 private 也会被改成 organization,不报错。
3613
3613
  */
3614
3614
  visibility?: 'private' | 'organization';
3615
3615
  /**
@@ -3696,11 +3696,48 @@ export type BrowserSessionCreateParams = {
3696
3696
  ignoreCertificateErrors?: boolean;
3697
3697
  };
3698
3698
  /**
3699
- * 省略、false 或 [{type: 'none'}] 表示不用代理。一条 {type: 'external', server, username?, password? | password_secret?} 让会话在我们的 Chrome 容器里经这个 HTTP 代理出网(需要组织已开通容器后端,否则返回 501 PROVIDER_UNSUPPORTED);不能与 source.type 为 cloud 或 byob 同用,返回 400 INVALID_PARAMS。其它代理类型返回 501。
3699
+ * 让会话经一个固定的外部 HTTP 代理(如住宅 IP)出网:[{type: 'external', server: 'host:port', username?, password_secret?}];省略、false 或 [{type: 'none'}] 表示不用代理。只能有一个代理条目;密码推荐用 password_secret 引用保管库(只在连接代理主机时兑换),也可以直接给明文 password,二者不能同时出现。带代理的会话一定在我们的 Chrome 容器里运行,需要组织已开通容器后端,否则返回 501 PROVIDER_UNSUPPORTED;不能与 source.type 为 cloud 或 byob 同用,返回 400 INVALID_PARAMS(格式错误、私网地址、用户名没有密码等同样返回 400,reason 写明原因)。其它代理类型和 socks5 返回 501 PROVIDER_UNSUPPORTED。要让某个账号始终从同一个出口地址出去,把代理绑定在登录态上(contexts 的 proxy),不必每次会话重复传。
3700
3700
  */
3701
- proxies?: boolean | Array<unknown>;
3701
+ proxies?: boolean | [
3702
+ {
3703
+ /**
3704
+ * 固定为 external:经一个你自己的外部 HTTP 代理出网。
3705
+ */
3706
+ type: 'external';
3707
+ /**
3708
+ * 代理地址,host:port 或 http://host:port;只支持 HTTP 代理,不接受 socks5:// 等协议,也不接受 localhost 和内网、链路本地地址。
3709
+ */
3710
+ server: string;
3711
+ /**
3712
+ * 代理用户名;有密码时才能填,填了就必须同时给出密码。
3713
+ */
3714
+ username?: string;
3715
+ /**
3716
+ * 代理密码明文,只在这次创建中使用,不会保存;推荐改用 password_secret。与 password_secret 二选一。
3717
+ */
3718
+ password?: string;
3719
+ /**
3720
+ * 推荐:引用保管库里的代理密码,只在连接这个代理的主机时兑换,不会交给网页。与 password 二选一。
3721
+ */
3722
+ password_secret?: {
3723
+ /**
3724
+ * 保存代理密码的保管库 ID,以 vlt_ 开头。
3725
+ */
3726
+ vault_id: string;
3727
+ /**
3728
+ * 保管库中该密码的密钥 ID(不是密码本身)。
3729
+ */
3730
+ secret: string;
3731
+ };
3732
+ } | {
3733
+ /**
3734
+ * 固定为 none:不用代理,与省略 proxies 相同。
3735
+ */
3736
+ type: 'none';
3737
+ }
3738
+ ];
3702
3739
  /**
3703
- * 选择浏览器后端。{type: 'cloud'}:Browser Run,启动最快、不能用代理、自动化特征可被网站发现。{type: 'container'}:我们自己的 Chrome 容器,可带代理也可不带;组织未开通容器后端时返回 501 PROVIDER_UNSUPPORTED。{type: 'byob', browser: 'byb_…'}:用户自己配对的浏览器,不能与 proxies 或登录态同用。简写 {byob: 'byb_…'} 等同最后一种。省略时按旧规则:带 proxies 进容器,否则 Browser Run。cloud 加代理、未知 type、格式错误都返回 400 INVALID_PARAMS。
3740
+ * 选择浏览器后端,只有 container 支持外部代理:cloud(Browser Run)和 byob 都不能用代理。{type: 'cloud'}:Browser Run,启动最快、不能用代理、自动化特征可被网站发现。{type: 'container'}:我们自己的 Chrome 容器,可带 proxies(或用登录态绑定的代理),也可不带;组织未开通容器后端时返回 501 PROVIDER_UNSUPPORTED。{type: 'byob', browser: 'byb_…'}:用户自己配对的浏览器,不能与 proxies 或登录态同用。简写 {byob: 'byb_…'} 等同最后一种。省略时按旧规则:带 proxies 进容器,否则 Browser Run。cloud 加代理、未知 type、格式错误都返回 400 INVALID_PARAMS。
3704
3741
  */
3705
3742
  source?: {
3706
3743
  /**
@@ -3774,7 +3811,7 @@ export type BrowserSessionCreateResult = {
3774
3811
  */
3775
3812
  region: 'ap-southeast-1';
3776
3813
  /**
3777
- * 会话经代理转发的流量字节数(上行与下行之和);仅容器后端的会话有值,其余后端固定为 0。
3814
+ * 会话经代理链转发的流量字节数(上行与下行之和),容器后端的会话按它计费;Browser Run 和自带浏览器固定为 0,运行中每几分钟更新一次。
3778
3815
  */
3779
3816
  proxyBytes: number;
3780
3817
  /**
@@ -3955,7 +3992,7 @@ export type BrowserSession = {
3955
3992
  */
3956
3993
  region: 'ap-southeast-1';
3957
3994
  /**
3958
- * 会话经代理转发的流量字节数(上行与下行之和);仅容器后端的会话有值,其余后端固定为 0。
3995
+ * 会话经代理链转发的流量字节数(上行与下行之和),容器后端的会话按它计费;Browser Run 和自带浏览器固定为 0,运行中每几分钟更新一次。
3959
3996
  */
3960
3997
  proxyBytes: number;
3961
3998
  /**
@@ -4114,7 +4151,7 @@ export type BrowserSessionGetResult = {
4114
4151
  */
4115
4152
  region: 'ap-southeast-1';
4116
4153
  /**
4117
- * 会话经代理转发的流量字节数(上行与下行之和);仅容器后端的会话有值,其余后端固定为 0。
4154
+ * 会话经代理链转发的流量字节数(上行与下行之和),容器后端的会话按它计费;Browser Run 和自带浏览器固定为 0,运行中每几分钟更新一次。
4118
4155
  */
4119
4156
  proxyBytes: number;
4120
4157
  /**
@@ -4270,11 +4307,11 @@ export type BrowserSessionGetResult = {
4270
4307
  */
4271
4308
  export type BrowserSessionLiveUrls = {
4272
4309
  /**
4273
- * 会话实时画面的完整跳转地址,携带观看凭证;与 debuggerUrl 相同。
4310
+ * 与 debuggerUrl 相同:会话在 Console 的会话页地址。
4274
4311
  */
4275
4312
  debuggerFullscreenUrl: string;
4276
4313
  /**
4277
- * 会话实时画面的完整跳转地址;直接打开,勿移除查询凭证。
4314
+ * 会话在 Console 的会话页地址,发给人观看或接管。打开的人须登录 Console 且属于会话所在组织;会话创建者或在接管请求有效期内的组织成员可以点「接管」直接点击、拖动和输入,其他成员只读观看。地址不带凭证,不能嵌入 iframe。
4278
4315
  */
4279
4316
  debuggerUrl: string;
4280
4317
  /**
@@ -4302,11 +4339,11 @@ export type BrowserSessionLiveUrls = {
4302
4339
  */
4303
4340
  faviconUrl: string;
4304
4341
  /**
4305
- * 此标签页实时画面的完整跳转地址,包含观看凭证。
4342
+ * 会话在 Console 的会话页地址,与会话级 debuggerUrl 相同。
4306
4343
  */
4307
4344
  debuggerUrl: string;
4308
4345
  /**
4309
- * 此标签页实时画面的完整跳转地址,与该页 debuggerUrl 相同。
4346
+ * 与该页 debuggerUrl 相同。
4310
4347
  */
4311
4348
  debuggerFullscreenUrl: string;
4312
4349
  }>;
@@ -4390,6 +4427,36 @@ export type BrowserContextCreateResult = {
4390
4427
  * UTC timestamp when a session last started with this context; absent if it has never been used.
4391
4428
  */
4392
4429
  lastUsedAt?: string;
4430
+ /**
4431
+ * 登录态绑定的固定外部代理(只含保管库引用,不含密码);没有绑定时省略。
4432
+ */
4433
+ proxy?: {
4434
+ /**
4435
+ * 固定为 external:经一个你自己的外部 HTTP 代理出网。
4436
+ */
4437
+ type: 'external';
4438
+ /**
4439
+ * 代理地址,host:port 或 http://host:port;只支持 HTTP 代理,不接受 socks5:// 等协议,也不接受 localhost 和内网、链路本地地址。
4440
+ */
4441
+ server: string;
4442
+ /**
4443
+ * 代理用户名;有密码时才能填,填了就必须同时给出密码。
4444
+ */
4445
+ username?: string;
4446
+ /**
4447
+ * 必须用这种形式:引用保管库里的代理密码,只在连接这个代理的主机时兑换,不会交给网页。登录态里只存引用,传明文 password 返回 400 INVALID_PARAMS。
4448
+ */
4449
+ password_secret?: {
4450
+ /**
4451
+ * 保存代理密码的保管库 ID,以 vlt_ 开头。
4452
+ */
4453
+ vault_id: string;
4454
+ /**
4455
+ * 保管库中该密码的密钥 ID(不是密码本身)。
4456
+ */
4457
+ secret: string;
4458
+ };
4459
+ };
4393
4460
  /**
4394
4461
  * Empty compatibility field; context encryption keys are held by the server.
4395
4462
  */
@@ -4450,6 +4517,36 @@ export type BrowserContext = {
4450
4517
  * UTC timestamp when a session last started with this context; absent if it has never been used.
4451
4518
  */
4452
4519
  lastUsedAt?: string;
4520
+ /**
4521
+ * 登录态绑定的固定外部代理(只含保管库引用,不含密码);没有绑定时省略。
4522
+ */
4523
+ proxy?: {
4524
+ /**
4525
+ * 固定为 external:经一个你自己的外部 HTTP 代理出网。
4526
+ */
4527
+ type: 'external';
4528
+ /**
4529
+ * 代理地址,host:port 或 http://host:port;只支持 HTTP 代理,不接受 socks5:// 等协议,也不接受 localhost 和内网、链路本地地址。
4530
+ */
4531
+ server: string;
4532
+ /**
4533
+ * 代理用户名;有密码时才能填,填了就必须同时给出密码。
4534
+ */
4535
+ username?: string;
4536
+ /**
4537
+ * 必须用这种形式:引用保管库里的代理密码,只在连接这个代理的主机时兑换,不会交给网页。登录态里只存引用,传明文 password 返回 400 INVALID_PARAMS。
4538
+ */
4539
+ password_secret?: {
4540
+ /**
4541
+ * 保存代理密码的保管库 ID,以 vlt_ 开头。
4542
+ */
4543
+ vault_id: string;
4544
+ /**
4545
+ * 保管库中该密码的密钥 ID(不是密码本身)。
4546
+ */
4547
+ secret: string;
4548
+ };
4549
+ };
4453
4550
  };
4454
4551
  export type BrowserByobPairing = {
4455
4552
  /**
@@ -13742,7 +13839,7 @@ export type AutomationHumanTask = {
13742
13839
  */
13743
13840
  initiator: {
13744
13841
  /**
13745
- * Initiator type: user, api_key, agent, run (a parent run) or trigger.
13842
+ * Initiator type: user, api_key, agent, run (a parent run), trigger or application.
13746
13843
  */
13747
13844
  type: 'user' | 'api_key' | 'agent' | 'run' | 'trigger';
13748
13845
  /**
@@ -21434,7 +21531,7 @@ export type MediaPurgedLibrary = {
21434
21531
  /**
21435
21532
  * What this asset is as a reusable material. Always present: a file whose specific kind cannot be identified is file.
21436
21533
  */
21437
- export type MediaMaterialType = 'image' | 'video' | 'audio' | 'voice' | 'sticker' | 'font' | 'text_style' | 'text_template' | 'animation_preset' | 'lut' | 'transition_map' | 'character' | 'product' | 'scene' | 'brand' | 'file';
21534
+ export type MediaMaterialType = 'image' | 'video' | 'audio' | 'voice' | 'sticker' | 'font' | 'text_style' | 'text_template' | 'animation_preset' | 'lut' | 'transition_map' | 'character' | 'product' | 'scene' | 'brand' | 'gallery' | 'article' | 'product_listing' | 'file';
21438
21535
  /**
21439
21536
  * Assets in this page, ordered by creation time descending.
21440
21537
  */
@@ -22647,7 +22744,7 @@ export type MediaMaterial = {
22647
22744
  /**
22648
22745
  * Kind of element.
22649
22746
  */
22650
- material_type: MediaElementType;
22747
+ material_type: MediaJsonMaterialType;
22651
22748
  /**
22652
22749
  * Display name of the element.
22653
22750
  */
@@ -22659,11 +22756,15 @@ export type MediaMaterial = {
22659
22756
  /**
22660
22757
  * The element body as stored.
22661
22758
  */
22662
- body: MediaElementBody;
22759
+ body: MediaJsonMaterialBody;
22663
22760
  /**
22664
22761
  * Every asset the body names (pictures, logos, fonts). Deleting one of them still succeeds and its response lists this element as a dependent.
22665
22762
  */
22666
22763
  depends_on: Array<MediaAssetId>;
22764
+ /**
22765
+ * Ids in depends_on that are no longer live in this library: the body keeps them in place, and a viewer draws a missing placeholder there.
22766
+ */
22767
+ missing: Array<MediaAssetId>;
22667
22768
  /**
22668
22769
  * Folder the element is filed in.
22669
22770
  */
@@ -22682,13 +22783,10 @@ export type MediaMaterial = {
22682
22783
  updated_at: MediaIsoTimestamp;
22683
22784
  };
22684
22785
  /**
22685
- * Kind of element: character (a person or figure), product, scene (a place or setting) or brand (tone, palette and words; no picture of its own).
22686
- */
22687
- export type MediaElementType = 'character' | 'product' | 'scene' | 'brand';
22688
- /**
22689
- * The element’s body; its fields depend on material_type. A field the type does not define is refused with INVALID_PARAMS rather than dropped.
22786
+ * Kind of JSON material: an element (character, product, scene, brand) that generation reuses, or a composite (gallery, article, product_listing) that orders other assets of the library with a title and text. Composite types (gallery, article, product_listing) are opened per organization; until then they answer OPERATION_NOT_SUPPORTED.
22690
22787
  */
22691
- export type MediaElementBody = MediaCharacterBody | MediaProductBody | MediaSceneBody | MediaBrandBody;
22788
+ export type MediaJsonMaterialType = 'character' | 'product' | 'scene' | 'brand' | 'gallery' | 'article' | 'product_listing';
22789
+ export type MediaJsonMaterialBody = MediaElementBody | MediaCompositeBody;
22692
22790
  export type MediaFailureSummary = {
22693
22791
  /**
22694
22792
  * Number of current failed understanding entries, excluding deleted assets and superseded versions.
@@ -35003,6 +35101,14 @@ export type SandboxSandboxNetworkConfig = {
35003
35101
  rules?: {
35004
35102
  [key: string]: Array<SandboxSandboxNetworkRule>;
35005
35103
  };
35104
+ /**
35105
+ * 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.
35106
+ */
35107
+ staticEgressIp?: boolean;
35108
+ /**
35109
+ * 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.
35110
+ */
35111
+ readonly egressIp?: string;
35006
35112
  };
35007
35113
  /**
35008
35114
  * Sandbox lifecycle policy returned by sandbox info.
@@ -36713,11 +36819,11 @@ export type AutomationActionHost = 'builtin' | 'isolate' | 'sandbox';
36713
36819
  */
36714
36820
  export type AutomationSubject = {
36715
36821
  /**
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.
36822
+ * 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
36823
  */
36718
36824
  type: 'user' | 'api_key' | 'agent' | 'run' | 'trigger';
36719
36825
  /**
36720
- * Principal identifier whose meaning follows type: a user, API key, agent, run or trigger id. Treat it as an opaque string.
36826
+ * Principal identifier whose meaning follows type: a user, API key, agent, run, trigger or application id. Treat it as an opaque string.
36721
36827
  */
36722
36828
  id: string;
36723
36829
  };
@@ -40276,6 +40382,10 @@ export type DevopsUnitGit = {
40276
40382
  * The ref holding the unit's work in progress, or null when none was recorded.
40277
40383
  */
40278
40384
  wipRef: string | null;
40385
+ /**
40386
+ * 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.
40387
+ */
40388
+ remoteHead?: string;
40279
40389
  /**
40280
40390
  * RFC 3339 UTC time these facts were observed, or null before the first observation.
40281
40391
  */
@@ -41627,91 +41737,10 @@ export type MediaSpeechCreateInput = {
41627
41737
  tier?: MediaMediaTier;
41628
41738
  };
41629
41739
  /**
41630
- * Body of a character element.
41631
- */
41632
- export type MediaCharacterBody = {
41633
- /**
41634
- * What the character looks like and wears, in plain words; appended to the prompt of every generation that references the element. 1 to 2000 characters.
41635
- */
41636
- description: string;
41637
- /**
41638
- * Pictures of the subject, 1 to 8, each an image or sticker asset of this same library, in the order a generation hands them to the model. The same asset may appear once.
41639
- */
41640
- references: Array<MediaElementReference>;
41641
- /**
41642
- * fictional for an invented character. real_person is a real person’s likeness and requires consent_id; consent records cannot be created through this API yet, so only fictional characters can be saved here.
41643
- */
41644
- likeness: 'real_person' | 'fictional';
41645
- /**
41646
- * Consent record that authorises a real person’s likeness; required with likeness real_person and refused with fictional.
41647
- */
41648
- consent_id?: string;
41649
- };
41650
- /**
41651
- * Body of a product element.
41652
- */
41653
- export type MediaProductBody = {
41654
- /**
41655
- * What the product is and how it looks; appended to the prompt of every generation that references it. 1 to 2000 characters.
41656
- */
41657
- description: string;
41658
- /**
41659
- * Pictures of the subject, 1 to 8, each an image or sticker asset of this same library, in the order a generation hands them to the model. The same asset may appear once.
41660
- */
41661
- references: Array<MediaElementReference>;
41662
- /**
41663
- * Facts such as material, size or colour as name/value pairs, at most 20; written into the prompt sorted by name.
41664
- */
41665
- attributes?: {
41666
- [key: string]: string;
41667
- };
41668
- /**
41669
- * Details the model may not change, such as the logo position or the cap colour; at most 20 entries of up to 200 characters.
41670
- */
41671
- must_keep?: Array<string>;
41672
- };
41673
- /**
41674
- * Body of a scene element.
41675
- */
41676
- export type MediaSceneBody = {
41677
- /**
41678
- * The place, light and mood to reproduce; appended to the prompt of every generation that references it. 1 to 2000 characters.
41679
- */
41680
- description: string;
41681
- /**
41682
- * Pictures of the subject, 1 to 8, each an image or sticker asset of this same library, in the order a generation hands them to the model. The same asset may appear once.
41683
- */
41684
- references: Array<MediaElementReference>;
41685
- };
41686
- /**
41687
- * Body of a brand element. A brand contributes text only: its description, palette and banned words are appended to the prompt, and none of its pictures are sent to the model unless a request references them directly.
41740
+ * The element’s body; its fields depend on material_type. A field the type does not define is refused with INVALID_PARAMS rather than dropped.
41688
41741
  */
41689
- export type MediaBrandBody = {
41690
- /**
41691
- * Brand tone and voice in plain words. 1 to 2000 characters.
41692
- */
41693
- description: string;
41694
- /**
41695
- * Optional pictures that show the brand, 0 to 8 image or sticker assets of this library; kept with the brand but never expanded into a generation.
41696
- */
41697
- references?: Array<MediaElementReference>;
41698
- /**
41699
- * Logo assets of this library (images or stickers), at most 8. Reference a logo on its own in a generation to put it in the picture.
41700
- */
41701
- logos?: Array<string>;
41702
- /**
41703
- * Brand colours, at most 12, written into the prompt as hex with their names.
41704
- */
41705
- colors?: Array<MediaBrandColor>;
41706
- /**
41707
- * Font assets of this library, at most 8.
41708
- */
41709
- fonts?: Array<string>;
41710
- /**
41711
- * Words generated text should avoid, at most 100 entries of up to 40 characters.
41712
- */
41713
- banned_words?: Array<string>;
41714
- };
41742
+ export type MediaElementBody = MediaCharacterBody | MediaProductBody | MediaSceneBody | MediaBrandBody;
41743
+ export type MediaCompositeBody = MediaGalleryBody | MediaArticleBody | MediaProductListingBody;
41715
41744
  export type MediaFailureGroup = {
41716
41745
  /**
41717
41746
  * Failure reason code. Unknown codes are retryable.
@@ -48139,7 +48168,7 @@ export type DevopsPlannedSkip = {
48139
48168
  /**
48140
48169
  * Why it is left out, which is what tells a deliberate skip apart from an oversight.
48141
48170
  */
48142
- reason: 'unchanged' | 'newer_checkpoint' | 'not_requested' | 'callee_excluded' | 'artifact_identical';
48171
+ reason: 'unchanged' | 'newer_checkpoint' | 'not_requested' | 'callee_excluded' | 'not_deployed_upstream' | 'artifact_identical';
48143
48172
  };
48144
48173
  /**
48145
48174
  * The migrations one target has pending, as the plan found them.
@@ -48772,35 +48801,185 @@ export type MediaSemanticMatch = {
48772
48801
  */
48773
48802
  snippet: string;
48774
48803
  };
48804
+ /**
48805
+ * Kind of element: character (a person or figure), product, scene (a place or setting) or brand (tone, palette and words; no picture of its own).
48806
+ */
48807
+ export type MediaElementType = 'character' | 'product' | 'scene' | 'brand';
48775
48808
  /**
48776
48809
  * Type of change recorded for a library, asset, processing task, search index or batch.
48777
48810
  */
48778
48811
  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';
48779
48812
  /**
48780
- * One picture an element names, with the word the caller uses for that view.
48813
+ * Body of a character element.
48781
48814
  */
48782
- export type MediaElementReference = {
48815
+ export type MediaCharacterBody = {
48783
48816
  /**
48784
- * Asset id of an image or sticker in this same library.
48817
+ * What the character looks like and wears, in plain words; appended to the prompt of every generation that references the element. 1 to 2000 characters.
48785
48818
  */
48786
- asset_id: string;
48819
+ description: string;
48787
48820
  /**
48788
- * Optional word for what the picture shows, such as 正面 or side view; at most 20 characters.
48821
+ * Pictures of the subject, 1 to 8, each an image or sticker asset of this same library, in the order a generation hands them to the model. The same asset may appear once.
48789
48822
  */
48790
- view?: string;
48823
+ references: Array<MediaElementReference>;
48824
+ /**
48825
+ * fictional for an invented character. real_person is a real person’s likeness and requires consent_id; consent records cannot be created through this API yet, so only fictional characters can be saved here.
48826
+ */
48827
+ likeness: 'real_person' | 'fictional';
48828
+ /**
48829
+ * Consent record that authorises a real person’s likeness; required with likeness real_person and refused with fictional.
48830
+ */
48831
+ consent_id?: string;
48791
48832
  };
48792
48833
  /**
48793
- * One brand colour.
48834
+ * Body of a product element.
48794
48835
  */
48795
- export type MediaBrandColor = {
48836
+ export type MediaProductBody = {
48796
48837
  /**
48797
- * Colour as #rrggbb; stored in lower case.
48838
+ * What the product is and how it looks; appended to the prompt of every generation that references it. 1 to 2000 characters.
48798
48839
  */
48799
- hex: string;
48840
+ description: string;
48800
48841
  /**
48801
- * Optional name of the colour, such as Praxis blue.
48842
+ * Pictures of the subject, 1 to 8, each an image or sticker asset of this same library, in the order a generation hands them to the model. The same asset may appear once.
48802
48843
  */
48803
- name?: string;
48844
+ references: Array<MediaElementReference>;
48845
+ /**
48846
+ * Facts such as material, size or colour as name/value pairs, at most 20; written into the prompt sorted by name.
48847
+ */
48848
+ attributes?: {
48849
+ [key: string]: string;
48850
+ };
48851
+ /**
48852
+ * Details the model may not change, such as the logo position or the cap colour; at most 20 entries of up to 200 characters.
48853
+ */
48854
+ must_keep?: Array<string>;
48855
+ };
48856
+ /**
48857
+ * Body of a scene element.
48858
+ */
48859
+ export type MediaSceneBody = {
48860
+ /**
48861
+ * The place, light and mood to reproduce; appended to the prompt of every generation that references it. 1 to 2000 characters.
48862
+ */
48863
+ description: string;
48864
+ /**
48865
+ * Pictures of the subject, 1 to 8, each an image or sticker asset of this same library, in the order a generation hands them to the model. The same asset may appear once.
48866
+ */
48867
+ references: Array<MediaElementReference>;
48868
+ };
48869
+ /**
48870
+ * Body of a brand element. A brand contributes text only: its description, palette and banned words are appended to the prompt, and none of its pictures are sent to the model unless a request references them directly.
48871
+ */
48872
+ export type MediaBrandBody = {
48873
+ /**
48874
+ * Brand tone and voice in plain words. 1 to 2000 characters.
48875
+ */
48876
+ description: string;
48877
+ /**
48878
+ * Optional pictures that show the brand, 0 to 8 image or sticker assets of this library; kept with the brand but never expanded into a generation.
48879
+ */
48880
+ references?: Array<MediaElementReference>;
48881
+ /**
48882
+ * Logo assets of this library (images or stickers), at most 8. Reference a logo on its own in a generation to put it in the picture.
48883
+ */
48884
+ logos?: Array<string>;
48885
+ /**
48886
+ * Brand colours, at most 12, written into the prompt as hex with their names.
48887
+ */
48888
+ colors?: Array<MediaBrandColor>;
48889
+ /**
48890
+ * Font assets of this library, at most 8.
48891
+ */
48892
+ fonts?: Array<string>;
48893
+ /**
48894
+ * Words generated text should avoid, at most 100 entries of up to 40 characters.
48895
+ */
48896
+ banned_words?: Array<string>;
48897
+ };
48898
+ /**
48899
+ * Body of a gallery (图文): pictures in order with a title, text and topics. Several platform versions of one story are several materials in one folder or with one tag.
48900
+ */
48901
+ export type MediaGalleryBody = {
48902
+ /**
48903
+ * Title, 1 to 100 characters.
48904
+ */
48905
+ title: string;
48906
+ /**
48907
+ * Body text, at most 10000 characters.
48908
+ */
48909
+ text?: string;
48910
+ /**
48911
+ * Topics or hashtags without the # sign, at most 30 of up to 40 characters.
48912
+ */
48913
+ topics?: Array<string>;
48914
+ /**
48915
+ * Optional cover: an image or sticker asset of this library. Without it the first item is the cover.
48916
+ */
48917
+ cover?: string;
48918
+ /**
48919
+ * The pictures or videos in order, 1 to 100, each asset at most once.
48920
+ */
48921
+ items: Array<MediaGalleryItem>;
48922
+ style?: MediaCompositeStyle;
48923
+ };
48924
+ /**
48925
+ * Body of an article (长文). Inline images live in the Markdown as ![alt](asset:<asset_id>) and sit where they are written.
48926
+ */
48927
+ export type MediaArticleBody = {
48928
+ /**
48929
+ * Title, 1 to 200 characters.
48930
+ */
48931
+ title: string;
48932
+ /**
48933
+ * Optional summary or digest, at most 500 characters.
48934
+ */
48935
+ summary?: string;
48936
+ /**
48937
+ * Optional author name, at most 60 characters.
48938
+ */
48939
+ author?: string;
48940
+ /**
48941
+ * The article in Markdown, 1 to 100000 characters. Every asset:<asset_id> image must be an image or sticker of this library.
48942
+ */
48943
+ body: string;
48944
+ /**
48945
+ * Optional cover: an image or sticker asset of this library.
48946
+ */
48947
+ cover?: string;
48948
+ style?: MediaCompositeStyle;
48949
+ };
48950
+ /**
48951
+ * Body of a product listing (商品图组). It holds images and copy only; price, stock and other business data are managed outside the library and are refused.
48952
+ */
48953
+ export type MediaProductListingBody = {
48954
+ /**
48955
+ * Listing title, 1 to 200 characters.
48956
+ */
48957
+ title: string;
48958
+ /**
48959
+ * Selling points in order, at most 10 of up to 100 characters.
48960
+ */
48961
+ selling_points?: Array<string>;
48962
+ /**
48963
+ * Parameter rows in order, at most 50.
48964
+ */
48965
+ attributes?: Array<MediaListingAttribute>;
48966
+ /**
48967
+ * Main images in order, 1 to 20 image or sticker assets of this library.
48968
+ */
48969
+ main: Array<string>;
48970
+ /**
48971
+ * Detail images in order, at most 100 image or sticker assets of this library.
48972
+ */
48973
+ detail?: Array<string>;
48974
+ /**
48975
+ * SKUs in order, at most 200.
48976
+ */
48977
+ skus?: Array<MediaListingSku>;
48978
+ /**
48979
+ * Optional product element (material_type product) this listing shows, so the reference pictures it was generated from stay linked.
48980
+ */
48981
+ product?: string;
48982
+ style?: MediaCompositeStyle;
48804
48983
  };
48805
48984
  /**
48806
48985
  * One model Praxis offers for a kind of generation, with what it costs. A video model also carries the modes it can be driven in, its ceiling on reference pictures when it has one, and the durations, aspect ratios and resolutions the platform model catalogue has registered for it (modes, max_reference_images, duration_seconds, aspect_ratios, resolutions); those are present on every video model of types.video and on no other type, max_reference_images only when modes includes reference, and a list they carry empty means the platform has not registered that option yet — read them before requesting rather than assuming a value.
@@ -50299,6 +50478,77 @@ export type MediaShotFlags = {
50299
50478
  */
50300
50479
  readonly low_quality: MediaShotFlag;
50301
50480
  };
50481
+ /**
50482
+ * One picture an element names, with the word the caller uses for that view.
50483
+ */
50484
+ export type MediaElementReference = {
50485
+ /**
50486
+ * Asset id of an image or sticker in this same library.
50487
+ */
50488
+ asset_id: string;
50489
+ /**
50490
+ * Optional word for what the picture shows, such as 正面 or side view; at most 20 characters.
50491
+ */
50492
+ view?: string;
50493
+ };
50494
+ /**
50495
+ * One brand colour.
50496
+ */
50497
+ export type MediaBrandColor = {
50498
+ /**
50499
+ * Colour as #rrggbb; stored in lower case.
50500
+ */
50501
+ hex: string;
50502
+ /**
50503
+ * Optional name of the colour, such as Praxis blue.
50504
+ */
50505
+ name?: string;
50506
+ };
50507
+ /**
50508
+ * One position of a gallery.
50509
+ */
50510
+ export type MediaGalleryItem = {
50511
+ /**
50512
+ * Asset id of an image, sticker or video in this same library. Its position in items is its position in the gallery.
50513
+ */
50514
+ asset_id: string;
50515
+ /**
50516
+ * Optional caption for this position, at most 1000 characters.
50517
+ */
50518
+ caption?: string;
50519
+ };
50520
+ /**
50521
+ * Which platform look the Console draws this composite in. It is a display hint only: the library checks no platform limit, the publisher does.
50522
+ */
50523
+ export type MediaCompositeStyle = 'xiaohongshu' | 'wechat_mp' | 'jike' | 'generic';
50524
+ /**
50525
+ * One parameter row of a listing.
50526
+ */
50527
+ export type MediaListingAttribute = {
50528
+ /**
50529
+ * Parameter name such as 容量, at most 40 characters.
50530
+ */
50531
+ name: string;
50532
+ /**
50533
+ * Parameter value such as 500ml, at most 200 characters.
50534
+ */
50535
+ value: string;
50536
+ };
50537
+ /**
50538
+ * One SKU of a listing: its spec and its picture.
50539
+ */
50540
+ export type MediaListingSku = {
50541
+ /**
50542
+ * The SKU’s value on each spec axis, such as {"颜色":"白"}; 1 to 5 axes.
50543
+ */
50544
+ spec: {
50545
+ [key: string]: string;
50546
+ };
50547
+ /**
50548
+ * Optional picture of this SKU: an image or sticker asset of this library.
50549
+ */
50550
+ asset_id?: string;
50551
+ };
50302
50552
  /**
50303
50553
  * What Praxis charges for one model on one kind of generation, as a decimal amount with its currency.
50304
50554
  */
@@ -50994,6 +51244,58 @@ export type UpdateMediaPipelineRequestWritable = {
50994
51244
  * Models to use for completion
50995
51245
  */
50996
51246
  export type OpenaiChatModelNamesWritable = Array<OpenaiModelName & unknown>;
51247
+ export type SandboxSandboxDetailWritable = {
51248
+ /**
51249
+ * Identifier of the template from which is the sandbox created
51250
+ */
51251
+ templateID: string;
51252
+ /**
51253
+ * Alias of the template
51254
+ */
51255
+ alias?: string;
51256
+ /**
51257
+ * Identifier of the sandbox
51258
+ */
51259
+ sandboxID: string;
51260
+ /**
51261
+ * Identifier of the client
51262
+ *
51263
+ * @deprecated
51264
+ */
51265
+ clientID: string;
51266
+ /**
51267
+ * Time when the sandbox was started
51268
+ */
51269
+ startedAt: string;
51270
+ /**
51271
+ * Time when the sandbox will expire
51272
+ */
51273
+ endAt: string;
51274
+ envdVersion: SandboxEnvdVersion;
51275
+ /**
51276
+ * Access token used for envd communication
51277
+ */
51278
+ envdAccessToken?: string;
51279
+ /**
51280
+ * Whether internet access was explicitly enabled or disabled for the sandbox. Null means it was not explicitly set.
51281
+ */
51282
+ allowInternetAccess?: boolean;
51283
+ /**
51284
+ * Base domain where the sandbox traffic is accessible
51285
+ */
51286
+ domain?: string;
51287
+ cpuCount: SandboxCpuCount;
51288
+ memoryMB: SandboxMemoryMb;
51289
+ diskSizeMB: SandboxDiskSizeMb;
51290
+ metadata?: SandboxSandboxMetadata;
51291
+ state: SandboxSandboxState;
51292
+ network?: SandboxSandboxNetworkConfigWritable;
51293
+ lifecycle?: SandboxSandboxLifecycle;
51294
+ /**
51295
+ * Volumes mounted into the sandbox.
51296
+ */
51297
+ volumeMounts?: Array<SandboxSandboxVolumeMount>;
51298
+ };
50997
51299
  /**
50998
51300
  * Free-form string key/value pairs stored with the session, changed through sessions.update patch semantics.
50999
51301
  */
@@ -51573,6 +51875,94 @@ export type MediaSemanticSearchResultWritable = {
51573
51875
  */
51574
51876
  not_ready_excluded: number;
51575
51877
  };
51878
+ /**
51879
+ * Sandbox creation request. All system communication with the sandbox is always secured; the template's envd version must support secured access.
51880
+ */
51881
+ export type SandboxNewSandboxV2Writable = {
51882
+ /**
51883
+ * Identifier of the required template
51884
+ */
51885
+ templateID: string;
51886
+ /**
51887
+ * Lifetime of the new sandbox in seconds. Defaults to 300 seconds when omitted.
51888
+ */
51889
+ timeout?: number;
51890
+ /**
51891
+ * 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.
51892
+ */
51893
+ autoPause?: boolean;
51894
+ /**
51895
+ * 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).
51896
+ */
51897
+ autoPauseMemory?: boolean;
51898
+ autoResume?: SandboxSandboxAutoResumeConfig;
51899
+ /**
51900
+ * 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.
51901
+ */
51902
+ allow_internet_access?: boolean;
51903
+ network?: SandboxSandboxNetworkConfigWritable;
51904
+ metadata?: SandboxSandboxMetadata;
51905
+ envVars?: SandboxEnvVars;
51906
+ mcp?: SandboxMcp;
51907
+ iam?: SandboxSandboxIam;
51908
+ /**
51909
+ * Volumes to mount into the sandbox, each with the volume name and the path inside the sandbox.
51910
+ */
51911
+ volumeMounts?: Array<SandboxSandboxVolumeMount>;
51912
+ /**
51913
+ * 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.
51914
+ */
51915
+ ephemeral?: boolean;
51916
+ /**
51917
+ * 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.
51918
+ */
51919
+ size?: string;
51920
+ /**
51921
+ * Own face: a display name for the sandbox, 1 to 64 characters. Omitted, one is generated from the template.
51922
+ */
51923
+ name?: string;
51924
+ /**
51925
+ * 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.
51926
+ */
51927
+ waitForReady?: boolean;
51928
+ /**
51929
+ * Own face: what happens at the timeout. pause needs ephemeral: false; must agree with autoPause when both are sent.
51930
+ */
51931
+ onExpire?: 'kill' | 'pause';
51932
+ /**
51933
+ * Own face, persistent sandboxes only: pause after this many milliseconds without activity; null turns the idle pause off.
51934
+ */
51935
+ idleTimeout?: number;
51936
+ /**
51937
+ * 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.
51938
+ */
51939
+ idleActivity?: 'traffic' | 'caller';
51940
+ /**
51941
+ * 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.
51942
+ */
51943
+ sku?: string;
51944
+ /**
51945
+ * 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.
51946
+ */
51947
+ kind?: 'run' | 'job' | 'batch' | 'computer' | 'compat';
51948
+ /**
51949
+ * 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.
51950
+ */
51951
+ interruptible?: boolean;
51952
+ /**
51953
+ * 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.
51954
+ */
51955
+ onLoss?: 'fail' | 'rebuild';
51956
+ /**
51957
+ * 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.
51958
+ */
51959
+ outputs?: Array<{
51960
+ /**
51961
+ * Absolute path of a directory or file inside the sandbox.
51962
+ */
51963
+ path: string;
51964
+ }>;
51965
+ };
51576
51966
  /**
51577
51967
  * Arguments the model passed to the tool.
51578
51968
  */
@@ -51651,6 +52041,43 @@ export type AnthropicAnonymous204Writable = {
51651
52041
  export type AnthropicAnonymous206Writable = {
51652
52042
  [key: string]: unknown;
51653
52043
  };
52044
+ /**
52045
+ * Network policy of the sandbox: public access, egress allow and deny lists and proxy.
52046
+ */
52047
+ export type SandboxSandboxNetworkConfigWritable = {
52048
+ /**
52049
+ * Specify if the sandbox URLs should be accessible only with authentication.
52050
+ */
52051
+ allowPublicTraffic?: boolean;
52052
+ /**
52053
+ * 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.
52054
+ */
52055
+ allowOut?: Array<string>;
52056
+ /**
52057
+ * List of denied CIDR blocks or IP addresses for egress traffic. Domain names are not supported for deny rules.
52058
+ */
52059
+ denyOut?: Array<string>;
52060
+ egressProxy?: SandboxSandboxEgressProxyConfig;
52061
+ /**
52062
+ * Specify host mask which will be used for all sandbox requests
52063
+ */
52064
+ maskRequestHost?: string;
52065
+ /**
52066
+ * Unlike E2B, network.httpsPorts is rejected; omit it when creating a sandbox.
52067
+ */
52068
+ httpsPorts?: Array<number>;
52069
+ /**
52070
+ * 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.
52071
+ *
52072
+ */
52073
+ rules?: {
52074
+ [key: string]: Array<SandboxSandboxNetworkRule>;
52075
+ };
52076
+ /**
52077
+ * 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.
52078
+ */
52079
+ staticEgressIp?: boolean;
52080
+ };
51654
52081
  /**
51655
52082
  * Free-form string key/value pairs.
51656
52083
  */
@@ -55752,7 +56179,7 @@ export type ApplyAgentVersionResponses = {
55752
56179
  */
55753
56180
  environment_id?: string | null;
55754
56181
  /**
55755
- * Default vaults of this service or assume agent version: the vault_ids new sessions get when they name none. Present for service and assume agents. Follows the version like other configuration: a version saved with apply=false does not change the vaults in effect. Versions saved before this field existed read as []. /agent/v1 only.
56182
+ * Default vaults of this service or assume agent version: the vault_ids every new session carries; a session's own vault_ids are added to them. Present for service and assume agents. Follows the version like other configuration: a version saved with apply=false does not change the vaults in effect. Versions saved before this field existed read as []. /agent/v1 only.
55756
56183
  */
55757
56184
  vault_ids?: Array<string>;
55758
56185
  /**
@@ -57012,7 +57439,7 @@ export type UnarchiveAgentResponses = {
57012
57439
  */
57013
57440
  environment_id?: string | null;
57014
57441
  /**
57015
- * Default vaults of this service or assume agent version: the vault_ids new sessions get when they name none. Present for service and assume agents. Follows the version like other configuration: a version saved with apply=false does not change the vaults in effect. Versions saved before this field existed read as []. /agent/v1 only.
57442
+ * Default vaults of this service or assume agent version: the vault_ids every new session carries; a session's own vault_ids are added to them. Present for service and assume agents. Follows the version like other configuration: a version saved with apply=false does not change the vaults in effect. Versions saved before this field existed read as []. /agent/v1 only.
57016
57443
  */
57017
57444
  vault_ids?: Array<string>;
57018
57445
  /**
@@ -59481,9 +59908,13 @@ export type ComputersRetrieveResponse = ComputersRetrieveResponses[keyof Compute
59481
59908
  export type ComputersUpdateData = {
59482
59909
  body: {
59483
59910
  /**
59484
- * Name of the entry or object.
59911
+ * New display name, 1 to 255 characters after trimming. Omit to keep the current name.
59485
59912
  */
59486
- name: string;
59913
+ name?: string;
59914
+ /**
59915
+ * Environment recipe the computer declares (agent.environments.list or agent.environments.create, or a built-in id). A string sets the declaration and is checked as in computers.create: an unknown, foreign or archived environment is refused. null removes the declaration. Omit to leave it unchanged. Only the record changes: the machine is not touched or restarted, so the new declaration applies from the computer's next start; restart the computer once to apply it at once.
59916
+ */
59917
+ environment_id?: string | null;
59487
59918
  };
59488
59919
  path: {
59489
59920
  /**
@@ -61653,7 +62084,7 @@ export type ComputersFilesConvertResponse = ComputersFilesConvertResponses[keyof
61653
62084
  export type ConnectComputerData = {
61654
62085
  body?: {
61655
62086
  /**
61656
- * Defaults to light. light uses the lightweight shell, or the heavy instance while it is running. heavy requests a full Linux computer for interactive programs; heavy running time counts toward the daily budget in seconds.
62087
+ * Accepted for compatibility and ignored: light and heavy both reach the same machine, because a Computer is one machine. Omit it.
61657
62088
  */
61658
62089
  need?: 'light' | 'heavy';
61659
62090
  };
@@ -70585,6 +71016,36 @@ export type BrowserCreateContextData = {
70585
71016
  labels?: {
70586
71017
  [key: string]: string;
70587
71018
  };
71019
+ /**
71020
+ * 给登录态绑定一个固定的外部代理(如住宅 IP),使用这个登录态的会话没有写 proxies 时都经它出网,让同一账号始终从同一个出口地址出去。只存保管库引用(password_secret),不存密码;会话自己写了 proxies 时以会话的为准。需要组织已开通容器后端,否则返回 501 PROVIDER_UNSUPPORTED。
71021
+ */
71022
+ proxy?: {
71023
+ /**
71024
+ * 固定为 external:经一个你自己的外部 HTTP 代理出网。
71025
+ */
71026
+ type: 'external';
71027
+ /**
71028
+ * 代理地址,host:port 或 http://host:port;只支持 HTTP 代理,不接受 socks5:// 等协议,也不接受 localhost 和内网、链路本地地址。
71029
+ */
71030
+ server: string;
71031
+ /**
71032
+ * 代理用户名;有密码时才能填,填了就必须同时给出密码。
71033
+ */
71034
+ username?: string;
71035
+ /**
71036
+ * 必须用这种形式:引用保管库里的代理密码,只在连接这个代理的主机时兑换,不会交给网页。登录态里只存引用,传明文 password 返回 400 INVALID_PARAMS。
71037
+ */
71038
+ password_secret?: {
71039
+ /**
71040
+ * 保存代理密码的保管库 ID,以 vlt_ 开头。
71041
+ */
71042
+ vault_id: string;
71043
+ /**
71044
+ * 保管库中该密码的密钥 ID(不是密码本身)。
71045
+ */
71046
+ secret: string;
71047
+ };
71048
+ };
70588
71049
  };
70589
71050
  path?: never;
70590
71051
  query?: never;
@@ -70827,6 +71288,36 @@ export type BrowserUpdateContextData = {
70827
71288
  labels?: {
70828
71289
  [key: string]: string;
70829
71290
  };
71291
+ /**
71292
+ * 给登录态绑定一个固定的外部代理(如住宅 IP),使用这个登录态的会话没有写 proxies 时都经它出网,让同一账号始终从同一个出口地址出去。只存保管库引用(password_secret),不存密码;会话自己写了 proxies 时以会话的为准。需要组织已开通容器后端,否则返回 501 PROVIDER_UNSUPPORTED。 更新时传 null 解除绑定,省略则保留原绑定。
71293
+ */
71294
+ proxy?: {
71295
+ /**
71296
+ * 固定为 external:经一个你自己的外部 HTTP 代理出网。
71297
+ */
71298
+ type: 'external';
71299
+ /**
71300
+ * 代理地址,host:port 或 http://host:port;只支持 HTTP 代理,不接受 socks5:// 等协议,也不接受 localhost 和内网、链路本地地址。
71301
+ */
71302
+ server: string;
71303
+ /**
71304
+ * 代理用户名;有密码时才能填,填了就必须同时给出密码。
71305
+ */
71306
+ username?: string;
71307
+ /**
71308
+ * 必须用这种形式:引用保管库里的代理密码,只在连接这个代理的主机时兑换,不会交给网页。登录态里只存引用,传明文 password 返回 400 INVALID_PARAMS。
71309
+ */
71310
+ password_secret?: {
71311
+ /**
71312
+ * 保存代理密码的保管库 ID,以 vlt_ 开头。
71313
+ */
71314
+ vault_id: string;
71315
+ /**
71316
+ * 保管库中该密码的密钥 ID(不是密码本身)。
71317
+ */
71318
+ secret: string;
71319
+ };
71320
+ } | null;
70830
71321
  };
70831
71322
  path: {
70832
71323
  /**
@@ -78475,7 +78966,7 @@ export type ListOrganizationCostsData = {
78475
78966
  */
78476
78967
  bucket_width: '1h' | '1d';
78477
78968
  /**
78478
- * IANA time zone name (for example Asia/Shanghai) whose local hours or days form the buckets. Defaults to UTC. Offsets such as +08:00 are rejected. The window widens to whole local buckets; a day that crosses a daylight-saving change lasts 23 or 25 hours. starting_at and ending_at stay UTC instants.
78969
+ * IANA time zone name (for example Asia/Shanghai) whose local hours or days form the buckets. Defaults to UTC. Offsets such as +08:00 are rejected. Only zones whose UTC offset is a whole number of hours across the whole window are supported; zones such as Asia/Kolkata (+05:30) or Asia/Kathmandu (+05:45) are rejected with 400 VALIDATION_ERROR, because Billing buckets in UTC hours and a local hour of those zones straddles two of them. With bucket_width=1d the window widens to whole local days, each bucket carries its real UTC starting_at and ending_at, and a day that crosses a daylight-saving change lasts 23 or 25 hours; the whole window is then answered in one page (has_more is false and page is not accepted). starting_at and ending_at stay UTC instants.
78479
78970
  *
78480
78971
  */
78481
78972
  time_zone?: string;
@@ -78593,7 +79084,7 @@ export type ListOrganizationUsageData = {
78593
79084
  */
78594
79085
  bucket_width: '1h' | '1d';
78595
79086
  /**
78596
- * IANA time zone name (for example Asia/Shanghai) whose local hours or days form the buckets. Defaults to UTC. Offsets such as +08:00 are rejected. The window widens to whole local buckets; a day that crosses a daylight-saving change lasts 23 or 25 hours. starting_at and ending_at stay UTC instants.
79087
+ * IANA time zone name (for example Asia/Shanghai) whose local hours or days form the buckets. Defaults to UTC. Offsets such as +08:00 are rejected. Only zones whose UTC offset is a whole number of hours across the whole window are supported; zones such as Asia/Kolkata (+05:30) or Asia/Kathmandu (+05:45) are rejected with 400 VALIDATION_ERROR, because Billing buckets in UTC hours and a local hour of those zones straddles two of them. With bucket_width=1d the window widens to whole local days, each bucket carries its real UTC starting_at and ending_at, and a day that crosses a daylight-saving change lasts 23 or 25 hours; the whole window is then answered in one page (has_more is false and page is not accepted). starting_at and ending_at stay UTC instants.
78597
79088
  *
78598
79089
  */
78599
79090
  time_zone?: string;
@@ -79113,11 +79604,19 @@ export type ListOrganizationNotificationLettersData = {
79113
79604
  path?: never;
79114
79605
  query?: {
79115
79606
  /**
79116
- * Only unread letters, or only read ones; omit for both.
79607
+ * received (the default) lists the letters addressed to you; sent lists the letters you wrote, scheduled ones included, in the same row shape — a script or an agent finds its own alarm clocks there. A run credential's sent list is the letters automation wrote on behalf of the person it acts for.
79117
79608
  */
79118
- status?: 'unread' | 'read';
79609
+ direction?: 'received' | 'sent';
79119
79610
  /**
79120
- * false (the default) hides archived letters; true lists only the archived ones.
79611
+ * 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.
79612
+ */
79613
+ status?: 'unread' | 'read' | 'scheduled';
79614
+ /**
79615
+ * Only letters of this conversation, for received and sent alike; omit for all.
79616
+ */
79617
+ thread?: string;
79618
+ /**
79619
+ * false (the default) hides archived letters; true lists only the archived ones. Archiving is the addressee's act, so it is ignored when direction=sent.
79121
79620
  */
79122
79621
  archived?: boolean;
79123
79622
  /**
@@ -79133,7 +79632,7 @@ export type ListOrganizationNotificationLettersData = {
79133
79632
  };
79134
79633
  export type ListOrganizationNotificationLettersErrors = {
79135
79634
  /**
79136
- * A bad `status`, `archived` or `limit`, or `INVALID_PARAMS` from the service for a cursor it did not issue (RFC 9457 problem).
79635
+ * A bad `direction`, `status` (scheduled needs direction=sent), `thread`, `archived` or `limit`, or `INVALID_PARAMS` from the service for a cursor it did not issue (RFC 9457 problem).
79137
79636
  */
79138
79637
  400: unknown;
79139
79638
  /**
@@ -79233,6 +79732,80 @@ export type ListOrganizationNotificationLettersResponses = {
79233
79732
  };
79234
79733
  };
79235
79734
  export type ListOrganizationNotificationLettersResponse = ListOrganizationNotificationLettersResponses[keyof ListOrganizationNotificationLettersResponses];
79735
+ export type CreateOrganizationNotificationLetterData = {
79736
+ body: {
79737
+ /**
79738
+ * The recipient's address: human:<user id> or agent:<agent id>, a member or an agent of this organization.
79739
+ */
79740
+ to: string;
79741
+ /**
79742
+ * The whole letter, 1 to 16000 characters.
79743
+ */
79744
+ body: string;
79745
+ /**
79746
+ * 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.
79747
+ */
79748
+ summary?: string;
79749
+ /**
79750
+ * The letter's kind; it decides the channels. Defaults to mention.
79751
+ */
79752
+ kind?: 'notice' | 'mention' | 'decision';
79753
+ /**
79754
+ * The conversation the letter belongs to, free text; omit for none.
79755
+ */
79756
+ thread?: string;
79757
+ /**
79758
+ * When to deliver it, ISO 8601, at most 366 days ahead. A past time or no value means now.
79759
+ */
79760
+ deliver_at?: string;
79761
+ };
79762
+ path?: never;
79763
+ query?: never;
79764
+ url: '/organization/v1/notifications/letters';
79765
+ };
79766
+ export type CreateOrganizationNotificationLetterErrors = {
79767
+ /**
79768
+ * `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).
79769
+ */
79770
+ 400: unknown;
79771
+ /**
79772
+ * Missing or invalid credential (RFC 9457 problem).
79773
+ */
79774
+ 401: unknown;
79775
+ /**
79776
+ * `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).
79777
+ */
79778
+ 403: unknown;
79779
+ /**
79780
+ * `SUBSCRIBER_NOT_FOUND`: the recipient is not a member or an agent of this organization (RFC 9457 problem).
79781
+ */
79782
+ 404: unknown;
79783
+ /**
79784
+ * 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.
79785
+ */
79786
+ 502: unknown;
79787
+ };
79788
+ export type CreateOrganizationNotificationLetterResponses = {
79789
+ /**
79790
+ * The letter is written; it is delivered at deliverAt.
79791
+ */
79792
+ 200: {
79793
+ /**
79794
+ * The letter that was written: its id and the time it is delivered.
79795
+ */
79796
+ letter: {
79797
+ /**
79798
+ * The letter's id.
79799
+ */
79800
+ id: string;
79801
+ /**
79802
+ * When it is delivered: now, or the time asked for.
79803
+ */
79804
+ deliverAt: string;
79805
+ };
79806
+ };
79807
+ };
79808
+ export type CreateOrganizationNotificationLetterResponse = CreateOrganizationNotificationLetterResponses[keyof CreateOrganizationNotificationLetterResponses];
79236
79809
  export type GetOrganizationNotificationLetterData = {
79237
79810
  body?: never;
79238
79811
  path: {
@@ -79456,6 +80029,360 @@ export type ArchiveOrganizationNotificationLetterResponses = {
79456
80029
  };
79457
80030
  };
79458
80031
  export type ArchiveOrganizationNotificationLetterResponse = ArchiveOrganizationNotificationLetterResponses[keyof ArchiveOrganizationNotificationLetterResponses];
80032
+ export type ListOrganizationNotificationMessagesData = {
80033
+ body?: never;
80034
+ path?: never;
80035
+ query?: {
80036
+ /**
80037
+ * 0 (the default) lists the inbox tab, 1 lists archived messages.
80038
+ */
80039
+ archived?: '0' | '1';
80040
+ /**
80041
+ * Messages per page, 1 to 100; defaults to 20.
80042
+ */
80043
+ limit?: number;
80044
+ /**
80045
+ * Opaque nextPageToken from the previous response; omit for the first page.
80046
+ */
80047
+ page?: string;
80048
+ };
80049
+ url: '/organization/v1/notifications/messages';
80050
+ };
80051
+ export type ListOrganizationNotificationMessagesErrors = {
80052
+ /**
80053
+ * A bad `archived`, `limit` or `page`, or `INVALID_PARAMS` from the service for a cursor it did not issue (RFC 9457 problem).
80054
+ */
80055
+ 400: unknown;
80056
+ /**
80057
+ * Missing or invalid credential (RFC 9457 problem).
80058
+ */
80059
+ 401: unknown;
80060
+ /**
80061
+ * `PERMISSION_DENIED`: an agent credential has no person inbox; read its own letters instead (RFC 9457 problem).
80062
+ */
80063
+ 403: unknown;
80064
+ /**
80065
+ * 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.
80066
+ */
80067
+ 502: unknown;
80068
+ };
80069
+ export type ListOrganizationNotificationMessagesResponses = {
80070
+ /**
80071
+ * One page of this person's messages.
80072
+ */
80073
+ 200: {
80074
+ /**
80075
+ * The page, newest first.
80076
+ */
80077
+ items: Array<{
80078
+ /**
80079
+ * The message's resource name, subscribers/{user}/messages/{id}; pass it URL-encoded as the {name} of the other message operations.
80080
+ */
80081
+ name: string;
80082
+ /**
80083
+ * The organization the message belongs to; empty for a message that belongs to no organization.
80084
+ */
80085
+ organizationId: string;
80086
+ /**
80087
+ * The notification group the message belongs to: members, usage, alerts, agent, or nonConfigurable.
80088
+ */
80089
+ group: 'members' | 'usage' | 'alerts' | 'agent' | 'nonConfigurable';
80090
+ /**
80091
+ * The notification workflow that wrote it, as the preferences page names it.
80092
+ */
80093
+ workflow: string;
80094
+ /**
80095
+ * The message's headline, as the bell shows it.
80096
+ */
80097
+ title: string;
80098
+ /**
80099
+ * The message text.
80100
+ */
80101
+ body: string;
80102
+ /**
80103
+ * Where the bell opens this message; absent when it has no page.
80104
+ */
80105
+ actionUrl?: string;
80106
+ /**
80107
+ * Whether the bell has been opened since the message arrived.
80108
+ */
80109
+ seen: boolean;
80110
+ /**
80111
+ * Whether this person has read it.
80112
+ */
80113
+ read: boolean;
80114
+ /**
80115
+ * Whether this person archived it; archived messages are not in the inbox tab.
80116
+ */
80117
+ archived: boolean;
80118
+ /**
80119
+ * When the message arrived.
80120
+ */
80121
+ createTime: string;
80122
+ }>;
80123
+ /**
80124
+ * Pass unchanged as page for the next page; absent at the end.
80125
+ */
80126
+ nextPageToken?: string;
80127
+ };
80128
+ };
80129
+ export type ListOrganizationNotificationMessagesResponse = ListOrganizationNotificationMessagesResponses[keyof ListOrganizationNotificationMessagesResponses];
80130
+ export type DeleteOrganizationNotificationMessageData = {
80131
+ body?: never;
80132
+ path: {
80133
+ /**
80134
+ * The message's `name` from the messages list, subscribers/{user}/messages/{id}, URL-encoded.
80135
+ */
80136
+ name: string;
80137
+ };
80138
+ query?: never;
80139
+ url: '/organization/v1/notifications/messages/{name}';
80140
+ };
80141
+ export type DeleteOrganizationNotificationMessageErrors = {
80142
+ /**
80143
+ * `name` is not subscribers/{user}/messages/{id} — `INVALID_PARAMS` (RFC 9457 problem).
80144
+ */
80145
+ 400: unknown;
80146
+ /**
80147
+ * Missing or invalid credential (RFC 9457 problem).
80148
+ */
80149
+ 401: unknown;
80150
+ /**
80151
+ * `PERMISSION_DENIED`: an agent credential has no person inbox; read its own letters instead (RFC 9457 problem).
80152
+ */
80153
+ 403: unknown;
80154
+ /**
80155
+ * No such message of yours in this organization — `MESSAGE_NOT_FOUND` (RFC 9457 problem).
80156
+ */
80157
+ 404: unknown;
80158
+ /**
80159
+ * 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.
80160
+ */
80161
+ 502: unknown;
80162
+ };
80163
+ export type DeleteOrganizationNotificationMessageResponses = {
80164
+ /**
80165
+ * The message is deleted.
80166
+ */
80167
+ 200: {
80168
+ /**
80169
+ * Always true: the message was deleted.
80170
+ */
80171
+ deleted: boolean;
80172
+ };
80173
+ };
80174
+ export type DeleteOrganizationNotificationMessageResponse = DeleteOrganizationNotificationMessageResponses[keyof DeleteOrganizationNotificationMessageResponses];
80175
+ export type GetOrganizationNotificationMessageData = {
80176
+ body?: never;
80177
+ path: {
80178
+ /**
80179
+ * The message's `name` from the messages list, subscribers/{user}/messages/{id}, URL-encoded.
80180
+ */
80181
+ name: string;
80182
+ };
80183
+ query?: never;
80184
+ url: '/organization/v1/notifications/messages/{name}';
80185
+ };
80186
+ export type GetOrganizationNotificationMessageErrors = {
80187
+ /**
80188
+ * `name` is not subscribers/{user}/messages/{id} — `INVALID_PARAMS` (RFC 9457 problem).
80189
+ */
80190
+ 400: unknown;
80191
+ /**
80192
+ * Missing or invalid credential (RFC 9457 problem).
80193
+ */
80194
+ 401: unknown;
80195
+ /**
80196
+ * `PERMISSION_DENIED`: an agent credential has no person inbox; read its own letters instead (RFC 9457 problem).
80197
+ */
80198
+ 403: unknown;
80199
+ /**
80200
+ * 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).
80201
+ */
80202
+ 404: unknown;
80203
+ /**
80204
+ * 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.
80205
+ */
80206
+ 502: unknown;
80207
+ };
80208
+ export type GetOrganizationNotificationMessageResponses = {
80209
+ /**
80210
+ * The message.
80211
+ */
80212
+ 200: {
80213
+ /**
80214
+ * The message's resource name, subscribers/{user}/messages/{id}; pass it URL-encoded as the {name} of the other message operations.
80215
+ */
80216
+ name: string;
80217
+ /**
80218
+ * The organization the message belongs to; empty for a message that belongs to no organization.
80219
+ */
80220
+ organizationId: string;
80221
+ /**
80222
+ * The notification group the message belongs to: members, usage, alerts, agent, or nonConfigurable.
80223
+ */
80224
+ group: 'members' | 'usage' | 'alerts' | 'agent' | 'nonConfigurable';
80225
+ /**
80226
+ * The notification workflow that wrote it, as the preferences page names it.
80227
+ */
80228
+ workflow: string;
80229
+ /**
80230
+ * The message's headline, as the bell shows it.
80231
+ */
80232
+ title: string;
80233
+ /**
80234
+ * The message text.
80235
+ */
80236
+ body: string;
80237
+ /**
80238
+ * Where the bell opens this message; absent when it has no page.
80239
+ */
80240
+ actionUrl?: string;
80241
+ /**
80242
+ * Whether the bell has been opened since the message arrived.
80243
+ */
80244
+ seen: boolean;
80245
+ /**
80246
+ * Whether this person has read it.
80247
+ */
80248
+ read: boolean;
80249
+ /**
80250
+ * Whether this person archived it; archived messages are not in the inbox tab.
80251
+ */
80252
+ archived: boolean;
80253
+ /**
80254
+ * When the message arrived.
80255
+ */
80256
+ createTime: string;
80257
+ };
80258
+ };
80259
+ export type GetOrganizationNotificationMessageResponse = GetOrganizationNotificationMessageResponses[keyof GetOrganizationNotificationMessageResponses];
80260
+ export type UpdateOrganizationNotificationMessageData = {
80261
+ body: {
80262
+ /**
80263
+ * Mark the message read (true) or unread (false); omit to leave it.
80264
+ */
80265
+ read?: boolean;
80266
+ /**
80267
+ * Archive the message (true) or move it back to the inbox (false); omit to leave it.
80268
+ */
80269
+ archived?: boolean;
80270
+ };
80271
+ path: {
80272
+ /**
80273
+ * The message's `name` from the messages list, subscribers/{user}/messages/{id}, URL-encoded.
80274
+ */
80275
+ name: string;
80276
+ };
80277
+ query?: never;
80278
+ url: '/organization/v1/notifications/messages/{name}';
80279
+ };
80280
+ export type UpdateOrganizationNotificationMessageErrors = {
80281
+ /**
80282
+ * 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).
80283
+ */
80284
+ 400: unknown;
80285
+ /**
80286
+ * Missing or invalid credential (RFC 9457 problem).
80287
+ */
80288
+ 401: unknown;
80289
+ /**
80290
+ * `PERMISSION_DENIED`: an agent credential has no person inbox; read its own letters instead (RFC 9457 problem).
80291
+ */
80292
+ 403: unknown;
80293
+ /**
80294
+ * No such message of yours in this organization — `MESSAGE_NOT_FOUND` (RFC 9457 problem).
80295
+ */
80296
+ 404: unknown;
80297
+ /**
80298
+ * 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.
80299
+ */
80300
+ 502: unknown;
80301
+ };
80302
+ export type UpdateOrganizationNotificationMessageResponses = {
80303
+ /**
80304
+ * The message after the change.
80305
+ */
80306
+ 200: {
80307
+ /**
80308
+ * The message's resource name, subscribers/{user}/messages/{id}; pass it URL-encoded as the {name} of the other message operations.
80309
+ */
80310
+ name: string;
80311
+ /**
80312
+ * The organization the message belongs to; empty for a message that belongs to no organization.
80313
+ */
80314
+ organizationId: string;
80315
+ /**
80316
+ * The notification group the message belongs to: members, usage, alerts, agent, or nonConfigurable.
80317
+ */
80318
+ group: 'members' | 'usage' | 'alerts' | 'agent' | 'nonConfigurable';
80319
+ /**
80320
+ * The notification workflow that wrote it, as the preferences page names it.
80321
+ */
80322
+ workflow: string;
80323
+ /**
80324
+ * The message's headline, as the bell shows it.
80325
+ */
80326
+ title: string;
80327
+ /**
80328
+ * The message text.
80329
+ */
80330
+ body: string;
80331
+ /**
80332
+ * Where the bell opens this message; absent when it has no page.
80333
+ */
80334
+ actionUrl?: string;
80335
+ /**
80336
+ * Whether the bell has been opened since the message arrived.
80337
+ */
80338
+ seen: boolean;
80339
+ /**
80340
+ * Whether this person has read it.
80341
+ */
80342
+ read: boolean;
80343
+ /**
80344
+ * Whether this person archived it; archived messages are not in the inbox tab.
80345
+ */
80346
+ archived: boolean;
80347
+ /**
80348
+ * When the message arrived.
80349
+ */
80350
+ createTime: string;
80351
+ };
80352
+ };
80353
+ export type UpdateOrganizationNotificationMessageResponse = UpdateOrganizationNotificationMessageResponses[keyof UpdateOrganizationNotificationMessageResponses];
80354
+ export type ReadAllOrganizationNotificationMessagesData = {
80355
+ body?: never;
80356
+ path?: never;
80357
+ query?: never;
80358
+ url: '/organization/v1/notifications/messages:readAll';
80359
+ };
80360
+ export type ReadAllOrganizationNotificationMessagesErrors = {
80361
+ /**
80362
+ * Missing or invalid credential (RFC 9457 problem).
80363
+ */
80364
+ 401: unknown;
80365
+ /**
80366
+ * `PERMISSION_DENIED`: an agent credential has no person inbox; read its own letters instead (RFC 9457 problem).
80367
+ */
80368
+ 403: unknown;
80369
+ /**
80370
+ * 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.
80371
+ */
80372
+ 502: unknown;
80373
+ };
80374
+ export type ReadAllOrganizationNotificationMessagesResponses = {
80375
+ /**
80376
+ * How many messages were marked read.
80377
+ */
80378
+ 200: {
80379
+ /**
80380
+ * The number of messages that were unread and are now read.
80381
+ */
80382
+ updated: number;
80383
+ };
80384
+ };
80385
+ export type ReadAllOrganizationNotificationMessagesResponse = ReadAllOrganizationNotificationMessagesResponses[keyof ReadAllOrganizationNotificationMessagesResponses];
79459
80386
  export type GetOrganizationNotificationPreferencesData = {
79460
80387
  body?: never;
79461
80388
  path?: never;
@@ -80923,7 +81850,7 @@ export type ListByodDevicesResponses = {
80923
81850
  */
80924
81851
  id: string;
80925
81852
  /**
80926
- * The device's platform, which decides the use faces it answers. A desktop (macos, linux) pairs only for an organization with the local-agent-connect flag on; windows is not supported yet.
81853
+ * The device's platform, which decides the use faces it answers. A desktop (macos, linux) pairs like a phone; windows is not supported yet.
80927
81854
  */
80928
81855
  platform: 'android' | 'macos' | 'linux';
80929
81856
  /**
@@ -81022,7 +81949,7 @@ export type GetByodDeviceResponses = {
81022
81949
  */
81023
81950
  id: string;
81024
81951
  /**
81025
- * The device's platform, which decides the use faces it answers. A desktop (macos, linux) pairs only for an organization with the local-agent-connect flag on; windows is not supported yet.
81952
+ * The device's platform, which decides the use faces it answers. A desktop (macos, linux) pairs like a phone; windows is not supported yet.
81026
81953
  */
81027
81954
  platform: 'android' | 'macos' | 'linux';
81028
81955
  /**
@@ -81132,7 +82059,7 @@ export type UpdateByodDeviceResponses = {
81132
82059
  */
81133
82060
  id: string;
81134
82061
  /**
81135
- * The device's platform, which decides the use faces it answers. A desktop (macos, linux) pairs only for an organization with the local-agent-connect flag on; windows is not supported yet.
82062
+ * The device's platform, which decides the use faces it answers. A desktop (macos, linux) pairs like a phone; windows is not supported yet.
81136
82063
  */
81137
82064
  platform: 'android' | 'macos' | 'linux';
81138
82065
  /**
@@ -81275,7 +82202,7 @@ export type ClaimByodPairingData = {
81275
82202
  */
81276
82203
  body: {
81277
82204
  /**
81278
- * The device's platform. macos and linux are accepted only for an organization with the local-agent-connect flag on; with it off, and for any other value, the claim answers INVALID_PARAMS.
82205
+ * The device's platform. macos and linux are accepted for every organization; any other value than android, macos or linux answers INVALID_PARAMS.
81279
82206
  */
81280
82207
  platform: 'android' | 'macos' | 'linux';
81281
82208
  /**
@@ -81306,7 +82233,7 @@ export type ClaimByodPairingData = {
81306
82233
  };
81307
82234
  export type ClaimByodPairingErrors = {
81308
82235
  /**
81309
- * INVALID_PARAMS: the body is missing, platform is not android, macos or linux, or a desktop platform was claimed where local-agent-connect is off. Fix the body and resend; the code is not spent by a refused claim.
82236
+ * INVALID_PARAMS: the body is missing, platform is not android, macos or linux. Fix the body and resend; the code is not spent by a refused claim.
81310
82237
  */
81311
82238
  400: unknown;
81312
82239
  /**
@@ -83929,8 +84856,7 @@ export type SessionsUpdateData = {
83929
84856
  */
83930
84857
  title?: null | string;
83931
84858
  /**
83932
- * Vault IDs (`vlt_*`) to attach to the session. Not yet supported;
83933
- * requests setting this field are rejected. Reserved for future use.
84859
+ * The vaults this session carries, replacing the whole set it has now, including the vaults it took from its agent when it was created: send those ids again to keep them. At most 50 ids, each a vault of your organization that is not archived. The next command the session runs sees the new set: the secrets of the vaults become environment variables on its machine and are matched against its MCP servers, as sessions.create describes.
83934
84860
  */
83935
84861
  vault_ids?: Array<string>;
83936
84862
  /**
@@ -84871,7 +85797,7 @@ export type AgentsListResponses = {
84871
85797
  */
84872
85798
  environment_id?: string | null;
84873
85799
  /**
84874
- * Default vaults of this service or assume agent version: the vault_ids new sessions get when they name none. Present for service and assume agents. Follows the version like other configuration: a version saved with apply=false does not change the vaults in effect. Versions saved before this field existed read as []. /agent/v1 only.
85800
+ * Default vaults of this service or assume agent version: the vault_ids every new session carries; a session's own vault_ids are added to them. Present for service and assume agents. Follows the version like other configuration: a version saved with apply=false does not change the vaults in effect. Versions saved before this field existed read as []. /agent/v1 only.
84875
85801
  */
84876
85802
  vault_ids?: Array<string>;
84877
85803
  /**
@@ -85410,7 +86336,7 @@ export type AgentsCreateData = {
85410
86336
  */
85411
86337
  environment_id?: string | null;
85412
86338
  /**
85413
- * Default vaults of a service agent: the vault_ids a new session gets when it names none, so the agent's credentials follow the version. At most 50 ids without duplicates; each must be a vault of your organization that is not archived, otherwise 400 vault_ids[<index>] <id> was not found. Saved with the agent version like other configuration, so apply=false keeps the previous vaults in effect for new sessions until that version is applied; a session that sets vault_ids itself, [] included, overrides it. Omit on create for []; on update, omit to keep the list and send an array to replace it as a whole. Versions saved before this field existed read as []. Embed tokens use the vault_ids of the version they pin; vault_ids on the embed policy is deprecated, still accepted and ignored. Personal agents get no default vaults: a non-empty value returns 400 and the field is not returned. /agent/v1 only; /anthropic neither accepts nor returns it.
86339
+ * Default vaults of the agent: the vault_ids every new session carries, so the agent's credentials follow the version. A department or organization rule's grants write this list on the agents it reaches (the agent's vaults become exactly the rule's set). Their secrets reach each session's machine as environment variables and match its MCP servers; sessions.create says which are skipped. At most 50 ids without duplicates; each must be a vault of your organization that is not archived, otherwise 400 vault_ids[<index>] <id> was not found. Saved with the agent version like other configuration, so apply=false keeps the previous vaults in effect for new sessions until that version is applied; a session that sets vault_ids itself adds its vaults to these and does not replace them; sessions already open keep the vaults they were created with. Omit on create for []; on update, omit to keep the list and send an array to replace it as a whole. Versions saved before this field existed read as []. Embed tokens use the vault_ids of the version they pin; vault_ids on the embed policy is deprecated, still accepted and ignored. General and assume agents hold vaults on themselves the same way. /agent/v1 only; /anthropic neither accepts nor returns it.
85414
86340
  */
85415
86341
  vault_ids?: Array<string>;
85416
86342
  /**
@@ -86093,7 +87019,7 @@ export type AgentsCreateResponses = {
86093
87019
  */
86094
87020
  environment_id?: string | null;
86095
87021
  /**
86096
- * Default vaults of this service or assume agent version: the vault_ids new sessions get when they name none. Present for service and assume agents. Follows the version like other configuration: a version saved with apply=false does not change the vaults in effect. Versions saved before this field existed read as []. /agent/v1 only.
87022
+ * Default vaults of this service or assume agent version: the vault_ids every new session carries; a session's own vault_ids are added to them. Present for service and assume agents. Follows the version like other configuration: a version saved with apply=false does not change the vaults in effect. Versions saved before this field existed read as []. /agent/v1 only.
86097
87023
  */
86098
87024
  vault_ids?: Array<string>;
86099
87025
  /**
@@ -86764,7 +87690,7 @@ export type AgentsRetrieveResponses = {
86764
87690
  */
86765
87691
  environment_id?: string | null;
86766
87692
  /**
86767
- * Default vaults of this service or assume agent version: the vault_ids new sessions get when they name none. Present for service and assume agents. Follows the version like other configuration: a version saved with apply=false does not change the vaults in effect. Versions saved before this field existed read as []. /agent/v1 only.
87693
+ * Default vaults of this service or assume agent version: the vault_ids every new session carries; a session's own vault_ids are added to them. Present for service and assume agents. Follows the version like other configuration: a version saved with apply=false does not change the vaults in effect. Versions saved before this field existed read as []. /agent/v1 only.
86768
87694
  */
86769
87695
  vault_ids?: Array<string>;
86770
87696
  /**
@@ -87312,7 +88238,7 @@ export type AgentsUpdateData = {
87312
88238
  */
87313
88239
  environment_id?: string | null;
87314
88240
  /**
87315
- * Default vaults of a service agent: the vault_ids a new session gets when it names none, so the agent's credentials follow the version. At most 50 ids without duplicates; each must be a vault of your organization that is not archived, otherwise 400 vault_ids[<index>] <id> was not found. Saved with the agent version like other configuration, so apply=false keeps the previous vaults in effect for new sessions until that version is applied; a session that sets vault_ids itself, [] included, overrides it. Omit on create for []; on update, omit to keep the list and send an array to replace it as a whole. Versions saved before this field existed read as []. Embed tokens use the vault_ids of the version they pin; vault_ids on the embed policy is deprecated, still accepted and ignored. Personal agents get no default vaults: a non-empty value returns 400 and the field is not returned. /agent/v1 only; /anthropic neither accepts nor returns it.
88241
+ * Default vaults of the agent: the vault_ids every new session carries, so the agent's credentials follow the version. A department or organization rule's grants write this list on the agents it reaches (the agent's vaults become exactly the rule's set). Their secrets reach each session's machine as environment variables and match its MCP servers; sessions.create says which are skipped. At most 50 ids without duplicates; each must be a vault of your organization that is not archived, otherwise 400 vault_ids[<index>] <id> was not found. Saved with the agent version like other configuration, so apply=false keeps the previous vaults in effect for new sessions until that version is applied; a session that sets vault_ids itself adds its vaults to these and does not replace them; sessions already open keep the vaults they were created with. Omit on create for []; on update, omit to keep the list and send an array to replace it as a whole. Versions saved before this field existed read as []. Embed tokens use the vault_ids of the version they pin; vault_ids on the embed policy is deprecated, still accepted and ignored. General and assume agents hold vaults on themselves the same way. /agent/v1 only; /anthropic neither accepts nor returns it.
87316
88242
  */
87317
88243
  vault_ids?: Array<string>;
87318
88244
  /**
@@ -88008,7 +88934,7 @@ export type AgentsUpdateResponses = {
88008
88934
  */
88009
88935
  environment_id?: string | null;
88010
88936
  /**
88011
- * Default vaults of this service or assume agent version: the vault_ids new sessions get when they name none. Present for service and assume agents. Follows the version like other configuration: a version saved with apply=false does not change the vaults in effect. Versions saved before this field existed read as []. /agent/v1 only.
88937
+ * Default vaults of this service or assume agent version: the vault_ids every new session carries; a session's own vault_ids are added to them. Present for service and assume agents. Follows the version like other configuration: a version saved with apply=false does not change the vaults in effect. Versions saved before this field existed read as []. /agent/v1 only.
88012
88938
  */
88013
88939
  vault_ids?: Array<string>;
88014
88940
  /**
@@ -88634,7 +89560,7 @@ export type AgentsArchiveResponses = {
88634
89560
  */
88635
89561
  environment_id?: string | null;
88636
89562
  /**
88637
- * Default vaults of this service or assume agent version: the vault_ids new sessions get when they name none. Present for service and assume agents. Follows the version like other configuration: a version saved with apply=false does not change the vaults in effect. Versions saved before this field existed read as []. /agent/v1 only.
89563
+ * Default vaults of this service or assume agent version: the vault_ids every new session carries; a session's own vault_ids are added to them. Present for service and assume agents. Follows the version like other configuration: a version saved with apply=false does not change the vaults in effect. Versions saved before this field existed read as []. /agent/v1 only.
88638
89564
  */
88639
89565
  vault_ids?: Array<string>;
88640
89566
  /**
@@ -89305,7 +90231,7 @@ export type AgentsVersionsListResponses = {
89305
90231
  */
89306
90232
  environment_id?: string | null;
89307
90233
  /**
89308
- * Default vaults of this service or assume agent version: the vault_ids new sessions get when they name none. Present for service and assume agents. Follows the version like other configuration: a version saved with apply=false does not change the vaults in effect. Versions saved before this field existed read as []. /agent/v1 only.
90234
+ * Default vaults of this service or assume agent version: the vault_ids every new session carries; a session's own vault_ids are added to them. Present for service and assume agents. Follows the version like other configuration: a version saved with apply=false does not change the vaults in effect. Versions saved before this field existed read as []. /agent/v1 only.
89309
90235
  */
89310
90236
  vault_ids?: Array<string>;
89311
90237
  /**
@@ -99165,7 +100091,7 @@ export type AutomationRunsListData = {
99165
100091
  */
99166
100092
  channel?: Array<'console' | 'api' | 'internal' | 'run' | 'trigger'>;
99167
100093
  /**
99168
- * 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.
100094
+ * Root initiator type: user, api_key, agent, trigger or application, inherited by child runs. run returns INPUT_INVALID; filter origin with channel=run or parent_run_id. Separate multiple values with commas to match any value.
99169
100095
  */
99170
100096
  initiator_type?: Array<'user' | 'api_key' | 'agent' | 'trigger'>;
99171
100097
  /**
@@ -113713,7 +114639,7 @@ export type DevopsUnitsPushErrors = {
113713
114639
  */
113714
114640
  404: DevopsDevOpsError;
113715
114641
  /**
113716
- * HEAD_MOVED means the change's branch on the remote is no longer the expectedHead that was sent — someone pushed to it since — so nothing was pushed; 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.
114642
+ * HEAD_MOVED means the change's branch on the remote is no longer the expectedHead that was sent — someone pushed to it since — so nothing was pushed. The message says where the remote is ("remote is at <sha7> (<full sha>) on <ref>") and details.remoteHead carries the full sha: send it as expectedHead after reconciling your checkout. PUSH_REJECTED_BY_HOOK means the machine's git ran a pre-push hook (lefthook, for example) and the hook refused: details.detail holds the hook's output and details.exitCode git's exit code; fix what the hook names, commit, and push again. PUSH_REJECTED_NON_FAST_FORWARD means the remote branch has commits your checkout lacks; fetch, reconcile and push again. UNIT_INVALID_STATE means the unit is not available (no machine or no checkout yet, or another transition is in flight), so there is nothing to push; read the unit's phase and retry once it has settled.
113717
114643
  */
113718
114644
  409: DevopsDevOpsError;
113719
114645
  /**
@@ -118426,7 +119352,7 @@ export type MediaCreateMaterialData = {
118426
119352
  /**
118427
119353
  * Kind of element; it decides which body fields are accepted. voice materials have their own door and are refused here.
118428
119354
  */
118429
- material_type: MediaElementType;
119355
+ material_type: MediaJsonMaterialType;
118430
119356
  /**
118431
119357
  * Display name used in the library and in the guidance appended to prompts, such as 品牌「name」. 1 to 120 characters.
118432
119358
  */
@@ -118434,7 +119360,7 @@ export type MediaCreateMaterialData = {
118434
119360
  /**
118435
119361
  * The element body for this material_type. Every asset it names must already exist in this library with the fitting type, or the request is refused with ASSET_NOT_FOUND or REFERENCE_TYPE_MISMATCH and nothing is saved.
118436
119362
  */
118437
- body: MediaElementBody;
119363
+ body: MediaJsonMaterialBody;
118438
119364
  /**
118439
119365
  * Folder to file the element in; defaults to the library root. New path segments containing U+FFFD or consisting only of question marks are rejected with INVALID_PARAMS; send UTF-8 names. Existing affected folders remain readable and assets can be moved out.
118440
119366
  */
@@ -118592,7 +119518,7 @@ export type MediaUpdateMaterialData = {
118592
119518
  /**
118593
119519
  * A whole new body for the same material_type; it replaces the old body and bumps version. Jobs that used the old version keep recording it.
118594
119520
  */
118595
- body?: MediaElementBody;
119521
+ body?: MediaJsonMaterialBody;
118596
119522
  /**
118597
119523
  * Folder to move the element to. New path segments containing U+FFFD or consisting only of question marks are rejected with INVALID_PARAMS; send UTF-8 names. Existing affected folders remain readable and assets can be moved out.
118598
119524
  */
@@ -121428,7 +122354,7 @@ export type GetSandboxV1SandboxesResponses = {
121428
122354
  };
121429
122355
  export type GetSandboxV1SandboxesResponse = GetSandboxV1SandboxesResponses[keyof GetSandboxV1SandboxesResponses];
121430
122356
  export type PostSandboxV1SandboxesData = {
121431
- body: SandboxNewSandboxV2;
122357
+ body: SandboxNewSandboxV2Writable;
121432
122358
  path?: never;
121433
122359
  query?: never;
121434
122360
  url: '/sandbox/v1/sandboxes';