@deepraxis/sdk 0.2.0-dev.476046b → 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,9 +3696,74 @@ export type BrowserSessionCreateParams = {
3696
3696
  ignoreCertificateErrors?: boolean;
3697
3697
  };
3698
3698
  /**
3699
- * 仅省略、false 或 [{type: 'none'}] 可用;其它代理配置返回 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
+ ];
3739
+ /**
3740
+ * 选择浏览器后端,只有 container 支持外部代理:cloud(Browser Run)和 byob 都不能用代理。{type: 'cloud'}:Browser Run,启动最快、不能用代理、自动化特征可被网站发现。{type: 'container'}:我们自己的 Chrome 容器,可带 proxies(或用登录态绑定的代理),也可不带;组织未开通容器后端时返回 501 PROVIDER_UNSUPPORTED。{type: 'byob', browser: 'byb_…'}:用户自己配对的浏览器,不能与 proxies 或登录态同用。简写 {byob: 'byb_…'} 等同最后一种。省略时按旧规则:带 proxies 进容器,否则 Browser Run。cloud 加代理、未知 type、格式错误都返回 400 INVALID_PARAMS。
3741
+ */
3742
+ source?: {
3743
+ /**
3744
+ * Browser Run。
3745
+ */
3746
+ type: 'cloud';
3747
+ } | {
3748
+ /**
3749
+ * 自家 Chrome 容器。
3750
+ */
3751
+ type: 'container';
3752
+ } | {
3753
+ /**
3754
+ * 用户自己的浏览器。
3755
+ */
3756
+ type: 'byob';
3757
+ /**
3758
+ * 自带浏览器 ID,以 byb_ 开头。
3759
+ */
3760
+ browser: string;
3761
+ } | {
3762
+ /**
3763
+ * 自带浏览器 ID,type 为 byob 的简写。
3764
+ */
3765
+ byob: string;
3766
+ };
3702
3767
  /**
3703
3768
  * 接受但忽略;不能选择区域。
3704
3769
  */
@@ -3746,9 +3811,9 @@ export type BrowserSessionCreateResult = {
3746
3811
  */
3747
3812
  region: 'ap-southeast-1';
3748
3813
  /**
3749
- * 兼容的代理流量字节数;当前未使用代理,固定返回 0。
3814
+ * 会话经代理链转发的流量字节数(上行与下行之和),容器后端的会话按它计费;Browser Run 和自带浏览器固定为 0,运行中每几分钟更新一次。
3750
3815
  */
3751
- proxyBytes: 0;
3816
+ proxyBytes: number;
3752
3817
  /**
3753
3818
  * 会话创建时刻,UTC ISO 8601 时间。
3754
3819
  */
@@ -3794,17 +3859,34 @@ export type BrowserSessionCreateResult = {
3794
3859
  */
3795
3860
  origin: 'api' | 'connect' | 'console';
3796
3861
  /**
3797
- * 会话的浏览器来源:cloud 是云浏览器,byob 是用户自己配对的浏览器(browser 为它的 ID)。
3862
+ * 会话实际使用的浏览器后端:cloud 是云浏览器(Browser Run),container 是我们自己的 Chrome 容器,byob 是用户自己配对的浏览器(browser 为它的 ID)。type 与 kind 同值,type 是公开名称,kind 为兼容旧读者保留。
3798
3863
  */
3799
3864
  source: {
3800
3865
  /**
3801
3866
  * 云浏览器会话,固定为 cloud。
3802
3867
  */
3868
+ type: 'cloud';
3869
+ /**
3870
+ * 与 type 同值。
3871
+ */
3803
3872
  kind: 'cloud';
3873
+ } | {
3874
+ /**
3875
+ * 自家 Chrome 容器会话,固定为 container。
3876
+ */
3877
+ type: 'container';
3878
+ /**
3879
+ * 与 type 同值。
3880
+ */
3881
+ kind: 'container';
3804
3882
  } | {
3805
3883
  /**
3806
3884
  * 用户自己配对的浏览器会话,固定为 byob。
3807
3885
  */
3886
+ type: 'byob';
3887
+ /**
3888
+ * 与 type 同值。
3889
+ */
3808
3890
  kind: 'byob';
3809
3891
  /**
3810
3892
  * 自带浏览器 ID,以 byb_ 开头。
@@ -3886,7 +3968,7 @@ export type BrowserError = {
3886
3968
  statusCode: number;
3887
3969
  error: string;
3888
3970
  message: string;
3889
- code: 'INVALID_PARAMS' | 'PERMISSION_DENIED' | 'NOT_IMPLEMENTED' | 'INTERNAL' | 'UNAUTHENTICATED' | 'CONNECT_SIGNATURE_INVALID' | 'SESSION_NOT_FOUND' | 'SESSION_ENDED' | 'SESSION_INVALID_STATE' | 'SESSION_NAME_IN_USE' | 'CONTEXT_NOT_FOUND' | 'BROWSER_NOT_GRANTED' | 'BROWSER_OFFLINE' | 'BROWSER_REVOKED' | 'PAIRING_NOT_FOUND' | 'BROWSER_NOT_FOUND' | 'CONTEXT_LOCKED' | 'CONTEXT_READ_ONLY' | 'HANDOFF_NOT_PENDING' | 'CONCURRENCY_LIMIT' | 'RATE_LIMITED' | 'INSUFFICIENT_BALANCE' | 'QUOTA_EXHAUSTED' | 'ACCOUNT_SUSPENDED' | 'PROVIDER_UNSUPPORTED' | 'PROVIDER_CAPACITY' | 'PROVIDER_FAILED' | 'SERVICE_UNAVAILABLE' | 'PARENT_NOT_FOUND' | 'INVALID_FILTER' | 'INVALID_PAGE_TOKEN' | 'ACTION_TAB_NOT_FOUND' | 'ACTION_NO_TAB' | 'ACTION_REF_STALE' | 'ACTION_FAILED' | 'ACTION_TIMEOUT' | 'ACTION_RESULT_TOO_LARGE';
3971
+ code: 'INVALID_PARAMS' | 'PERMISSION_DENIED' | 'NOT_IMPLEMENTED' | 'INTERNAL' | 'UNAUTHENTICATED' | 'CONNECT_SIGNATURE_INVALID' | 'SESSION_NOT_FOUND' | 'SESSION_ENDED' | 'SESSION_INVALID_STATE' | 'SESSION_NAME_IN_USE' | 'CONTEXT_NOT_FOUND' | 'BROWSER_OFFLINE' | 'BROWSER_REVOKED' | 'PAIRING_NOT_FOUND' | 'BROWSER_NOT_FOUND' | 'CONTEXT_LOCKED' | 'CONTEXT_READ_ONLY' | 'HANDOFF_NOT_PENDING' | 'CONCURRENCY_LIMIT' | 'RATE_LIMITED' | 'INSUFFICIENT_BALANCE' | 'QUOTA_EXHAUSTED' | 'ACCOUNT_SUSPENDED' | 'PROVIDER_UNSUPPORTED' | 'PROVIDER_CAPACITY' | 'PROVIDER_FAILED' | 'SERVICE_UNAVAILABLE' | 'PARENT_NOT_FOUND' | 'INVALID_FILTER' | 'INVALID_PAGE_TOKEN' | 'ACTION_TAB_NOT_FOUND' | 'ACTION_NO_TAB' | 'ACTION_REF_STALE' | 'ACTION_FAILED' | 'ACTION_TIMEOUT' | 'ACTION_RESULT_TOO_LARGE';
3890
3972
  };
3891
3973
  export type BrowserSession = {
3892
3974
  /**
@@ -3910,9 +3992,9 @@ export type BrowserSession = {
3910
3992
  */
3911
3993
  region: 'ap-southeast-1';
3912
3994
  /**
3913
- * 兼容的代理流量字节数;当前未使用代理,固定返回 0。
3995
+ * 会话经代理链转发的流量字节数(上行与下行之和),容器后端的会话按它计费;Browser Run 和自带浏览器固定为 0,运行中每几分钟更新一次。
3914
3996
  */
3915
- proxyBytes: 0;
3997
+ proxyBytes: number;
3916
3998
  /**
3917
3999
  * 会话创建时刻,UTC ISO 8601 时间。
3918
4000
  */
@@ -3958,17 +4040,34 @@ export type BrowserSession = {
3958
4040
  */
3959
4041
  origin: 'api' | 'connect' | 'console';
3960
4042
  /**
3961
- * 会话的浏览器来源:cloud 是云浏览器,byob 是用户自己配对的浏览器(browser 为它的 ID)。
4043
+ * 会话实际使用的浏览器后端:cloud 是云浏览器(Browser Run),container 是我们自己的 Chrome 容器,byob 是用户自己配对的浏览器(browser 为它的 ID)。type 与 kind 同值,type 是公开名称,kind 为兼容旧读者保留。
3962
4044
  */
3963
4045
  source: {
3964
4046
  /**
3965
4047
  * 云浏览器会话,固定为 cloud。
3966
4048
  */
4049
+ type: 'cloud';
4050
+ /**
4051
+ * 与 type 同值。
4052
+ */
3967
4053
  kind: 'cloud';
4054
+ } | {
4055
+ /**
4056
+ * 自家 Chrome 容器会话,固定为 container。
4057
+ */
4058
+ type: 'container';
4059
+ /**
4060
+ * 与 type 同值。
4061
+ */
4062
+ kind: 'container';
3968
4063
  } | {
3969
4064
  /**
3970
4065
  * 用户自己配对的浏览器会话,固定为 byob。
3971
4066
  */
4067
+ type: 'byob';
4068
+ /**
4069
+ * 与 type 同值。
4070
+ */
3972
4071
  kind: 'byob';
3973
4072
  /**
3974
4073
  * 自带浏览器 ID,以 byb_ 开头。
@@ -4052,9 +4151,9 @@ export type BrowserSessionGetResult = {
4052
4151
  */
4053
4152
  region: 'ap-southeast-1';
4054
4153
  /**
4055
- * 兼容的代理流量字节数;当前未使用代理,固定返回 0。
4154
+ * 会话经代理链转发的流量字节数(上行与下行之和),容器后端的会话按它计费;Browser Run 和自带浏览器固定为 0,运行中每几分钟更新一次。
4056
4155
  */
4057
- proxyBytes: 0;
4156
+ proxyBytes: number;
4058
4157
  /**
4059
4158
  * 会话创建时刻,UTC ISO 8601 时间。
4060
4159
  */
@@ -4100,17 +4199,34 @@ export type BrowserSessionGetResult = {
4100
4199
  */
4101
4200
  origin: 'api' | 'connect' | 'console';
4102
4201
  /**
4103
- * 会话的浏览器来源:cloud 是云浏览器,byob 是用户自己配对的浏览器(browser 为它的 ID)。
4202
+ * 会话实际使用的浏览器后端:cloud 是云浏览器(Browser Run),container 是我们自己的 Chrome 容器,byob 是用户自己配对的浏览器(browser 为它的 ID)。type 与 kind 同值,type 是公开名称,kind 为兼容旧读者保留。
4104
4203
  */
4105
4204
  source: {
4106
4205
  /**
4107
4206
  * 云浏览器会话,固定为 cloud。
4108
4207
  */
4208
+ type: 'cloud';
4209
+ /**
4210
+ * 与 type 同值。
4211
+ */
4109
4212
  kind: 'cloud';
4213
+ } | {
4214
+ /**
4215
+ * 自家 Chrome 容器会话,固定为 container。
4216
+ */
4217
+ type: 'container';
4218
+ /**
4219
+ * 与 type 同值。
4220
+ */
4221
+ kind: 'container';
4110
4222
  } | {
4111
4223
  /**
4112
4224
  * 用户自己配对的浏览器会话,固定为 byob。
4113
4225
  */
4226
+ type: 'byob';
4227
+ /**
4228
+ * 与 type 同值。
4229
+ */
4114
4230
  kind: 'byob';
4115
4231
  /**
4116
4232
  * 自带浏览器 ID,以 byb_ 开头。
@@ -4191,11 +4307,11 @@ export type BrowserSessionGetResult = {
4191
4307
  */
4192
4308
  export type BrowserSessionLiveUrls = {
4193
4309
  /**
4194
- * 会话实时画面的完整跳转地址,携带观看凭证;与 debuggerUrl 相同。
4310
+ * 与 debuggerUrl 相同:会话在 Console 的会话页地址。
4195
4311
  */
4196
4312
  debuggerFullscreenUrl: string;
4197
4313
  /**
4198
- * 会话实时画面的完整跳转地址;直接打开,勿移除查询凭证。
4314
+ * 会话在 Console 的会话页地址,发给人观看或接管。打开的人须登录 Console 且属于会话所在组织;会话创建者或在接管请求有效期内的组织成员可以点「接管」直接点击、拖动和输入,其他成员只读观看。地址不带凭证,不能嵌入 iframe。
4199
4315
  */
4200
4316
  debuggerUrl: string;
4201
4317
  /**
@@ -4223,11 +4339,11 @@ export type BrowserSessionLiveUrls = {
4223
4339
  */
4224
4340
  faviconUrl: string;
4225
4341
  /**
4226
- * 此标签页实时画面的完整跳转地址,包含观看凭证。
4342
+ * 会话在 Console 的会话页地址,与会话级 debuggerUrl 相同。
4227
4343
  */
4228
4344
  debuggerUrl: string;
4229
4345
  /**
4230
- * 此标签页实时画面的完整跳转地址,与该页 debuggerUrl 相同。
4346
+ * 与该页 debuggerUrl 相同。
4231
4347
  */
4232
4348
  debuggerFullscreenUrl: string;
4233
4349
  }>;
@@ -4311,6 +4427,36 @@ export type BrowserContextCreateResult = {
4311
4427
  * UTC timestamp when a session last started with this context; absent if it has never been used.
4312
4428
  */
4313
4429
  lastUsedAt?: string;
4430
+ /**
4431
+ * 登录态绑定的固定外部代理(只含保管库引用,不含密码);没有绑定时省略。
4432
+ */
4433
+ proxy?: {
4434
+ /**
4435
+ * 固定为 external:经一个你自己的外部 HTTP 代理出网。
4436
+ */
4437
+ type: 'external';
4438
+ /**
4439
+ * 代理地址,host:port 或 http://host:port;只支持 HTTP 代理,不接受 socks5:// 等协议,也不接受 localhost 和内网、链路本地地址。
4440
+ */
4441
+ server: string;
4442
+ /**
4443
+ * 代理用户名;有密码时才能填,填了就必须同时给出密码。
4444
+ */
4445
+ username?: string;
4446
+ /**
4447
+ * 必须用这种形式:引用保管库里的代理密码,只在连接这个代理的主机时兑换,不会交给网页。登录态里只存引用,传明文 password 返回 400 INVALID_PARAMS。
4448
+ */
4449
+ password_secret?: {
4450
+ /**
4451
+ * 保存代理密码的保管库 ID,以 vlt_ 开头。
4452
+ */
4453
+ vault_id: string;
4454
+ /**
4455
+ * 保管库中该密码的密钥 ID(不是密码本身)。
4456
+ */
4457
+ secret: string;
4458
+ };
4459
+ };
4314
4460
  /**
4315
4461
  * Empty compatibility field; context encryption keys are held by the server.
4316
4462
  */
@@ -4371,6 +4517,36 @@ export type BrowserContext = {
4371
4517
  * UTC timestamp when a session last started with this context; absent if it has never been used.
4372
4518
  */
4373
4519
  lastUsedAt?: string;
4520
+ /**
4521
+ * 登录态绑定的固定外部代理(只含保管库引用,不含密码);没有绑定时省略。
4522
+ */
4523
+ proxy?: {
4524
+ /**
4525
+ * 固定为 external:经一个你自己的外部 HTTP 代理出网。
4526
+ */
4527
+ type: 'external';
4528
+ /**
4529
+ * 代理地址,host:port 或 http://host:port;只支持 HTTP 代理,不接受 socks5:// 等协议,也不接受 localhost 和内网、链路本地地址。
4530
+ */
4531
+ server: string;
4532
+ /**
4533
+ * 代理用户名;有密码时才能填,填了就必须同时给出密码。
4534
+ */
4535
+ username?: string;
4536
+ /**
4537
+ * 必须用这种形式:引用保管库里的代理密码,只在连接这个代理的主机时兑换,不会交给网页。登录态里只存引用,传明文 password 返回 400 INVALID_PARAMS。
4538
+ */
4539
+ password_secret?: {
4540
+ /**
4541
+ * 保存代理密码的保管库 ID,以 vlt_ 开头。
4542
+ */
4543
+ vault_id: string;
4544
+ /**
4545
+ * 保管库中该密码的密钥 ID(不是密码本身)。
4546
+ */
4547
+ secret: string;
4548
+ };
4549
+ };
4374
4550
  };
4375
4551
  export type BrowserByobPairing = {
4376
4552
  /**
@@ -4411,14 +4587,6 @@ export type BrowserByobBrowser = {
4411
4587
  * 配对用的扩展 ID。
4412
4588
  */
4413
4589
  extension_id: string;
4414
- /**
4415
- * 被授权驱动这个浏览器的智能体 ID 列表;智能体不在列表里时不能打开它的会话。空数组表示没有智能体被授权。
4416
- */
4417
- granted_agents: Array<string>;
4418
- /**
4419
- * 允许智能体访问的站点列表;空数组表示不限制 http(s) 站点。这是护栏,不是数据边界。
4420
- */
4421
- allowed_sites: Array<string>;
4422
4590
  /**
4423
4591
  * 扩展的连接当前是否在线;连接对象上线之前固定为 false。
4424
4592
  */
@@ -13671,7 +13839,7 @@ export type AutomationHumanTask = {
13671
13839
  */
13672
13840
  initiator: {
13673
13841
  /**
13674
- * Initiator type: user, api_key, agent, run (a parent run) or trigger.
13842
+ * Initiator type: user, api_key, agent, run (a parent run), trigger or application.
13675
13843
  */
13676
13844
  type: 'user' | 'api_key' | 'agent' | 'run' | 'trigger';
13677
13845
  /**
@@ -21363,7 +21531,7 @@ export type MediaPurgedLibrary = {
21363
21531
  /**
21364
21532
  * What this asset is as a reusable material. Always present: a file whose specific kind cannot be identified is file.
21365
21533
  */
21366
- 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';
21367
21535
  /**
21368
21536
  * Assets in this page, ordered by creation time descending.
21369
21537
  */
@@ -22576,7 +22744,7 @@ export type MediaMaterial = {
22576
22744
  /**
22577
22745
  * Kind of element.
22578
22746
  */
22579
- material_type: MediaElementType;
22747
+ material_type: MediaJsonMaterialType;
22580
22748
  /**
22581
22749
  * Display name of the element.
22582
22750
  */
@@ -22588,11 +22756,15 @@ export type MediaMaterial = {
22588
22756
  /**
22589
22757
  * The element body as stored.
22590
22758
  */
22591
- body: MediaElementBody;
22759
+ body: MediaJsonMaterialBody;
22592
22760
  /**
22593
22761
  * Every asset the body names (pictures, logos, fonts). Deleting one of them still succeeds and its response lists this element as a dependent.
22594
22762
  */
22595
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>;
22596
22768
  /**
22597
22769
  * Folder the element is filed in.
22598
22770
  */
@@ -22611,13 +22783,10 @@ export type MediaMaterial = {
22611
22783
  updated_at: MediaIsoTimestamp;
22612
22784
  };
22613
22785
  /**
22614
- * 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).
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.
22615
22787
  */
22616
- export type MediaElementType = 'character' | 'product' | 'scene' | 'brand';
22617
- /**
22618
- * 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.
22619
- */
22620
- 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;
22621
22790
  export type MediaFailureSummary = {
22622
22791
  /**
22623
22792
  * Number of current failed understanding entries, excluding deleted assets and superseded versions.
@@ -34932,6 +35101,14 @@ export type SandboxSandboxNetworkConfig = {
34932
35101
  rules?: {
34933
35102
  [key: string]: Array<SandboxSandboxNetworkRule>;
34934
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;
34935
35112
  };
34936
35113
  /**
34937
35114
  * Sandbox lifecycle policy returned by sandbox info.
@@ -36642,11 +36819,11 @@ export type AutomationActionHost = 'builtin' | 'isolate' | 'sandbox';
36642
36819
  */
36643
36820
  export type AutomationSubject = {
36644
36821
  /**
36645
- * Principal type. user is a signed-in user; api_key is a platform API key; agent is an agent; run is an action performed by a run itself (for example a parent run); trigger is a trigger.
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.
36646
36823
  */
36647
36824
  type: 'user' | 'api_key' | 'agent' | 'run' | 'trigger';
36648
36825
  /**
36649
- * 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.
36650
36827
  */
36651
36828
  id: string;
36652
36829
  };
@@ -40205,6 +40382,10 @@ export type DevopsUnitGit = {
40205
40382
  * The ref holding the unit's work in progress, or null when none was recorded.
40206
40383
  */
40207
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;
40208
40389
  /**
40209
40390
  * RFC 3339 UTC time these facts were observed, or null before the first observation.
40210
40391
  */
@@ -41556,91 +41737,10 @@ export type MediaSpeechCreateInput = {
41556
41737
  tier?: MediaMediaTier;
41557
41738
  };
41558
41739
  /**
41559
- * Body of a character element.
41560
- */
41561
- export type MediaCharacterBody = {
41562
- /**
41563
- * 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.
41564
- */
41565
- description: string;
41566
- /**
41567
- * 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.
41568
- */
41569
- references: Array<MediaElementReference>;
41570
- /**
41571
- * 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.
41572
- */
41573
- likeness: 'real_person' | 'fictional';
41574
- /**
41575
- * Consent record that authorises a real person’s likeness; required with likeness real_person and refused with fictional.
41576
- */
41577
- consent_id?: string;
41578
- };
41579
- /**
41580
- * Body of a product element.
41581
- */
41582
- export type MediaProductBody = {
41583
- /**
41584
- * What the product is and how it looks; appended to the prompt of every generation that references it. 1 to 2000 characters.
41585
- */
41586
- description: string;
41587
- /**
41588
- * 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.
41589
- */
41590
- references: Array<MediaElementReference>;
41591
- /**
41592
- * Facts such as material, size or colour as name/value pairs, at most 20; written into the prompt sorted by name.
41593
- */
41594
- attributes?: {
41595
- [key: string]: string;
41596
- };
41597
- /**
41598
- * Details the model may not change, such as the logo position or the cap colour; at most 20 entries of up to 200 characters.
41599
- */
41600
- must_keep?: Array<string>;
41601
- };
41602
- /**
41603
- * Body of a scene element.
41604
- */
41605
- export type MediaSceneBody = {
41606
- /**
41607
- * The place, light and mood to reproduce; appended to the prompt of every generation that references it. 1 to 2000 characters.
41608
- */
41609
- description: string;
41610
- /**
41611
- * 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.
41612
- */
41613
- references: Array<MediaElementReference>;
41614
- };
41615
- /**
41616
- * 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.
41617
41741
  */
41618
- export type MediaBrandBody = {
41619
- /**
41620
- * Brand tone and voice in plain words. 1 to 2000 characters.
41621
- */
41622
- description: string;
41623
- /**
41624
- * 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.
41625
- */
41626
- references?: Array<MediaElementReference>;
41627
- /**
41628
- * 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.
41629
- */
41630
- logos?: Array<string>;
41631
- /**
41632
- * Brand colours, at most 12, written into the prompt as hex with their names.
41633
- */
41634
- colors?: Array<MediaBrandColor>;
41635
- /**
41636
- * Font assets of this library, at most 8.
41637
- */
41638
- fonts?: Array<string>;
41639
- /**
41640
- * Words generated text should avoid, at most 100 entries of up to 40 characters.
41641
- */
41642
- banned_words?: Array<string>;
41643
- };
41742
+ export type MediaElementBody = MediaCharacterBody | MediaProductBody | MediaSceneBody | MediaBrandBody;
41743
+ export type MediaCompositeBody = MediaGalleryBody | MediaArticleBody | MediaProductListingBody;
41644
41744
  export type MediaFailureGroup = {
41645
41745
  /**
41646
41746
  * Failure reason code. Unknown codes are retryable.
@@ -48068,7 +48168,7 @@ export type DevopsPlannedSkip = {
48068
48168
  /**
48069
48169
  * Why it is left out, which is what tells a deliberate skip apart from an oversight.
48070
48170
  */
48071
- reason: 'unchanged' | 'newer_checkpoint' | 'not_requested' | 'callee_excluded' | 'artifact_identical';
48171
+ reason: 'unchanged' | 'newer_checkpoint' | 'not_requested' | 'callee_excluded' | 'not_deployed_upstream' | 'artifact_identical';
48072
48172
  };
48073
48173
  /**
48074
48174
  * The migrations one target has pending, as the plan found them.
@@ -48701,35 +48801,185 @@ export type MediaSemanticMatch = {
48701
48801
  */
48702
48802
  snippet: string;
48703
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';
48704
48808
  /**
48705
48809
  * Type of change recorded for a library, asset, processing task, search index or batch.
48706
48810
  */
48707
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';
48708
48812
  /**
48709
- * One picture an element names, with the word the caller uses for that view.
48813
+ * Body of a character element.
48710
48814
  */
48711
- export type MediaElementReference = {
48815
+ export type MediaCharacterBody = {
48712
48816
  /**
48713
- * 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.
48714
48818
  */
48715
- asset_id: string;
48819
+ description: string;
48716
48820
  /**
48717
- * 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.
48718
48822
  */
48719
- 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;
48720
48832
  };
48721
48833
  /**
48722
- * One brand colour.
48834
+ * Body of a product element.
48723
48835
  */
48724
- export type MediaBrandColor = {
48836
+ export type MediaProductBody = {
48725
48837
  /**
48726
- * 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.
48727
48839
  */
48728
- hex: string;
48840
+ description: string;
48729
48841
  /**
48730
- * 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.
48731
48843
  */
48732
- 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;
48733
48983
  };
48734
48984
  /**
48735
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.
@@ -50228,6 +50478,77 @@ export type MediaShotFlags = {
50228
50478
  */
50229
50479
  readonly low_quality: MediaShotFlag;
50230
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
+ };
50231
50552
  /**
50232
50553
  * What Praxis charges for one model on one kind of generation, as a decimal amount with its currency.
50233
50554
  */
@@ -50923,6 +51244,58 @@ export type UpdateMediaPipelineRequestWritable = {
50923
51244
  * Models to use for completion
50924
51245
  */
50925
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
+ };
50926
51299
  /**
50927
51300
  * Free-form string key/value pairs stored with the session, changed through sessions.update patch semantics.
50928
51301
  */
@@ -51502,6 +51875,94 @@ export type MediaSemanticSearchResultWritable = {
51502
51875
  */
51503
51876
  not_ready_excluded: number;
51504
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
+ };
51505
51966
  /**
51506
51967
  * Arguments the model passed to the tool.
51507
51968
  */
@@ -51580,6 +52041,43 @@ export type AnthropicAnonymous204Writable = {
51580
52041
  export type AnthropicAnonymous206Writable = {
51581
52042
  [key: string]: unknown;
51582
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
+ };
51583
52081
  /**
51584
52082
  * Free-form string key/value pairs.
51585
52083
  */
@@ -54307,6 +54805,86 @@ export type ListAgentInboxLettersResponses = {
54307
54805
  };
54308
54806
  };
54309
54807
  export type ListAgentInboxLettersResponse = ListAgentInboxLettersResponses[keyof ListAgentInboxLettersResponses];
54808
+ export type ListAgentDeviceLocalSessionsData = {
54809
+ body?: never;
54810
+ path: {
54811
+ /**
54812
+ * The BYOA agent: its agent_… id, eight character identity number or handle, from agents.list; resolved in your organization. Also accepts an 8-character identity number (0–9, A–Z); malformed, absent and foreign references return 404, and response ids always use agent_….
54813
+ */
54814
+ agent_id: string;
54815
+ /**
54816
+ * The paired desktop device (byd_ and 26 hex characters) whose sessions to list; you must be the person who paired it.
54817
+ */
54818
+ device_id: string;
54819
+ };
54820
+ query: {
54821
+ /**
54822
+ * The absolute directory on the device, exactly as the device registered it and bound it to this agent.
54823
+ */
54824
+ cwd: string;
54825
+ /**
54826
+ * The next_cursor of the previous page; leave it out for the first page.
54827
+ */
54828
+ cursor?: string;
54829
+ };
54830
+ url: '/agent/v1/agents/{agent_id}/devices/{device_id}/local-sessions';
54831
+ };
54832
+ export type ListAgentDeviceLocalSessionsErrors = {
54833
+ /**
54834
+ * INVALID_PARAMS: cwd is missing, not absolute or not bound to this agent on that device, the device is not one you paired, or a query parameter is unsupported; ASSUME_AGENT_REQUIRED: the agent is not a BYOA agent.
54835
+ */
54836
+ 400: unknown;
54837
+ /**
54838
+ * Authenticate with your own API key or a console session; an agent's or robot's credential cannot list a person's device.
54839
+ */
54840
+ 401: unknown;
54841
+ /**
54842
+ * permission_error: the credential's role or bound resources do not allow this operation. Use a key with access to the agent domain and its resources.
54843
+ */
54844
+ 403: AgentError;
54845
+ /**
54846
+ * AGENT_NOT_FOUND: no agent with this reference exists in your organization; list agents with agents.list.
54847
+ */
54848
+ 404: unknown;
54849
+ /**
54850
+ * DEVICE_NOT_READY: the device is offline; retry once it is connected. DEVICE_TIMEOUT (504) means it is connected but did not answer in time.
54851
+ */
54852
+ 503: unknown;
54853
+ };
54854
+ export type ListAgentDeviceLocalSessionsError = ListAgentDeviceLocalSessionsErrors[keyof ListAgentDeviceLocalSessionsErrors];
54855
+ export type ListAgentDeviceLocalSessionsResponses = {
54856
+ /**
54857
+ * One page of the device's sessions for that directory, newest first.
54858
+ */
54859
+ 200: {
54860
+ /**
54861
+ * The sessions of this page; empty when the directory has none.
54862
+ */
54863
+ data: Array<{
54864
+ /**
54865
+ * The Claude Code session id on the device; pass it as runtime.resume_session_id when creating a session to continue it.
54866
+ */
54867
+ id: string;
54868
+ /**
54869
+ * The session's title as Claude Code shows it; empty when it has none.
54870
+ */
54871
+ title: string;
54872
+ /**
54873
+ * When the session was last written to, RFC 3339; sessions are ordered newest first.
54874
+ */
54875
+ updated_at: string | null;
54876
+ /**
54877
+ * The directory the session ran in on the device.
54878
+ */
54879
+ cwd: string | null;
54880
+ }>;
54881
+ /**
54882
+ * Pass as cursor for the next page; null on the last page.
54883
+ */
54884
+ next_cursor: string | null;
54885
+ };
54886
+ };
54887
+ export type ListAgentDeviceLocalSessionsResponse = ListAgentDeviceLocalSessionsResponses[keyof ListAgentDeviceLocalSessionsResponses];
54310
54888
  export type CreateAgentLoginIntentData = {
54311
54889
  body?: never;
54312
54890
  path?: never;
@@ -55207,6 +55785,15 @@ export type ApplyAgentVersionResponses = {
55207
55785
  name: string;
55208
55786
  }>;
55209
55787
  };
55788
+ /**
55789
+ * ADR-205: which browser the agent drives. {byob: byb_…} names one of your organization's paired browsers (browser.byob.browsers.list), which the agent then drives through connect() instead of a cloud browser; null or absent is the cloud browser. The browser must belong to your organization (otherwise 400) and must grant this agent before a session can open it. Omit on update to keep it, send an object to replace it, or null to go back to the cloud browser. /agent/v1 only.
55790
+ */
55791
+ browser?: {
55792
+ /**
55793
+ * A paired browser's id (byb_ and 26 lowercase hex characters), from browser.byob.browsers.list.
55794
+ */
55795
+ byob: string;
55796
+ } | null;
55210
55797
  /**
55211
55798
  * Praxis extension: MA only has session-scoped temporary containers and memory_stores, not durable browsable computers. computer_id selects a tenant-owned active computer. Session selection overrides the agent default; a sandbox environment_id and computer_id cannot be combined. Omitted when no computer is selected.
55212
55799
  */
@@ -55592,7 +56179,7 @@ export type ApplyAgentVersionResponses = {
55592
56179
  */
55593
56180
  environment_id?: string | null;
55594
56181
  /**
55595
- * 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.
55596
56183
  */
55597
56184
  vault_ids?: Array<string>;
55598
56185
  /**
@@ -56458,6 +57045,15 @@ export type UnarchiveAgentResponses = {
56458
57045
  name: string;
56459
57046
  }>;
56460
57047
  };
57048
+ /**
57049
+ * ADR-205: which browser the agent drives. {byob: byb_…} names one of your organization's paired browsers (browser.byob.browsers.list), which the agent then drives through connect() instead of a cloud browser; null or absent is the cloud browser. The browser must belong to your organization (otherwise 400) and must grant this agent before a session can open it. Omit on update to keep it, send an object to replace it, or null to go back to the cloud browser. /agent/v1 only.
57050
+ */
57051
+ browser?: {
57052
+ /**
57053
+ * A paired browser's id (byb_ and 26 lowercase hex characters), from browser.byob.browsers.list.
57054
+ */
57055
+ byob: string;
57056
+ } | null;
56461
57057
  /**
56462
57058
  * Praxis extension: MA only has session-scoped temporary containers and memory_stores, not durable browsable computers. computer_id selects a tenant-owned active computer. Session selection overrides the agent default; a sandbox environment_id and computer_id cannot be combined. Omitted when no computer is selected.
56463
57059
  */
@@ -56843,7 +57439,7 @@ export type UnarchiveAgentResponses = {
56843
57439
  */
56844
57440
  environment_id?: string | null;
56845
57441
  /**
56846
- * 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.
56847
57443
  */
56848
57444
  vault_ids?: Array<string>;
56849
57445
  /**
@@ -59312,9 +59908,13 @@ export type ComputersRetrieveResponse = ComputersRetrieveResponses[keyof Compute
59312
59908
  export type ComputersUpdateData = {
59313
59909
  body: {
59314
59910
  /**
59315
- * Name of the entry or object.
59911
+ * New display name, 1 to 255 characters after trimming. Omit to keep the current name.
59316
59912
  */
59317
- 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;
59318
59918
  };
59319
59919
  path: {
59320
59920
  /**
@@ -61484,7 +62084,7 @@ export type ComputersFilesConvertResponse = ComputersFilesConvertResponses[keyof
61484
62084
  export type ConnectComputerData = {
61485
62085
  body?: {
61486
62086
  /**
61487
- * 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.
61488
62088
  */
61489
62089
  need?: 'light' | 'heavy';
61490
62090
  };
@@ -69088,7 +69688,7 @@ export type BrowserListSessionsErrors = {
69088
69688
  */
69089
69689
  402: BrowserError;
69090
69690
  /**
69091
- * PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
69691
+ * PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
69092
69692
  */
69093
69693
  403: BrowserError;
69094
69694
  /**
@@ -69169,7 +69769,7 @@ export type BrowserCreateSessionErrors = {
69169
69769
  */
69170
69770
  402: BrowserError;
69171
69771
  /**
69172
- * PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
69772
+ * PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
69173
69773
  */
69174
69774
  403: BrowserError;
69175
69775
  /**
@@ -69255,7 +69855,7 @@ export type BrowserGetSessionErrors = {
69255
69855
  */
69256
69856
  402: BrowserError;
69257
69857
  /**
69258
- * PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
69858
+ * PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
69259
69859
  */
69260
69860
  403: BrowserError;
69261
69861
  /**
@@ -69337,7 +69937,7 @@ export type BrowserCloseSessionErrors = {
69337
69937
  */
69338
69938
  402: BrowserError;
69339
69939
  /**
69340
- * PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
69940
+ * PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
69341
69941
  */
69342
69942
  403: BrowserError;
69343
69943
  /**
@@ -69414,7 +70014,7 @@ export type BrowserGetDebugErrors = {
69414
70014
  */
69415
70015
  402: BrowserError;
69416
70016
  /**
69417
- * PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
70017
+ * PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
69418
70018
  */
69419
70019
  403: BrowserError;
69420
70020
  /**
@@ -69504,7 +70104,7 @@ export type BrowserListEventsErrors = {
69504
70104
  */
69505
70105
  402: BrowserError;
69506
70106
  /**
69507
- * PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
70107
+ * PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
69508
70108
  */
69509
70109
  403: BrowserError;
69510
70110
  /**
@@ -69787,7 +70387,7 @@ export type BrowserRunPageActionErrors = {
69787
70387
  */
69788
70388
  402: BrowserError;
69789
70389
  /**
69790
- * PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
70390
+ * PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
69791
70391
  */
69792
70392
  403: BrowserError;
69793
70393
  /**
@@ -70009,7 +70609,7 @@ export type BrowserRequestHandoffErrors = {
70009
70609
  */
70010
70610
  402: BrowserError;
70011
70611
  /**
70012
- * PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
70612
+ * PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
70013
70613
  */
70014
70614
  403: BrowserError;
70015
70615
  /**
@@ -70086,7 +70686,7 @@ export type BrowserCompleteHandoffErrors = {
70086
70686
  */
70087
70687
  402: BrowserError;
70088
70688
  /**
70089
- * PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
70689
+ * PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
70090
70690
  */
70091
70691
  403: BrowserError;
70092
70692
  /**
@@ -70172,7 +70772,7 @@ export type BrowserViewerHeartbeatErrors = {
70172
70772
  */
70173
70773
  402: BrowserError;
70174
70774
  /**
70175
- * PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
70775
+ * PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
70176
70776
  */
70177
70777
  403: BrowserError;
70178
70778
  /**
@@ -70254,7 +70854,7 @@ export type BrowserGetSessionFrameErrors = {
70254
70854
  */
70255
70855
  402: BrowserError;
70256
70856
  /**
70257
- * PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
70857
+ * PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
70258
70858
  */
70259
70859
  403: BrowserError;
70260
70860
  /**
@@ -70339,7 +70939,7 @@ export type BrowserListContextsErrors = {
70339
70939
  */
70340
70940
  402: BrowserError;
70341
70941
  /**
70342
- * PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
70942
+ * PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
70343
70943
  */
70344
70944
  403: BrowserError;
70345
70945
  /**
@@ -70416,6 +71016,36 @@ export type BrowserCreateContextData = {
70416
71016
  labels?: {
70417
71017
  [key: string]: string;
70418
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
+ };
70419
71049
  };
70420
71050
  path?: never;
70421
71051
  query?: never;
@@ -70435,7 +71065,7 @@ export type BrowserCreateContextErrors = {
70435
71065
  */
70436
71066
  402: BrowserError;
70437
71067
  /**
70438
- * PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
71068
+ * PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
70439
71069
  */
70440
71070
  403: BrowserError;
70441
71071
  /**
@@ -70512,7 +71142,7 @@ export type BrowserDeleteContextErrors = {
70512
71142
  */
70513
71143
  402: BrowserError;
70514
71144
  /**
70515
- * PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
71145
+ * PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
70516
71146
  */
70517
71147
  403: BrowserError;
70518
71148
  /**
@@ -70594,7 +71224,7 @@ export type BrowserGetContextErrors = {
70594
71224
  */
70595
71225
  402: BrowserError;
70596
71226
  /**
70597
- * PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
71227
+ * PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
70598
71228
  */
70599
71229
  403: BrowserError;
70600
71230
  /**
@@ -70658,6 +71288,36 @@ export type BrowserUpdateContextData = {
70658
71288
  labels?: {
70659
71289
  [key: string]: string;
70660
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;
70661
71321
  };
70662
71322
  path: {
70663
71323
  /**
@@ -70682,7 +71342,7 @@ export type BrowserUpdateContextErrors = {
70682
71342
  */
70683
71343
  402: BrowserError;
70684
71344
  /**
70685
- * PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
71345
+ * PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
70686
71346
  */
70687
71347
  403: BrowserError;
70688
71348
  /**
@@ -70754,7 +71414,7 @@ export type BrowserCreateByobPairingErrors = {
70754
71414
  */
70755
71415
  402: BrowserError;
70756
71416
  /**
70757
- * PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
71417
+ * PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
70758
71418
  */
70759
71419
  403: BrowserError;
70760
71420
  /**
@@ -70835,7 +71495,7 @@ export type BrowserListByobBrowsersErrors = {
70835
71495
  */
70836
71496
  402: BrowserError;
70837
71497
  /**
70838
- * PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
71498
+ * PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
70839
71499
  */
70840
71500
  403: BrowserError;
70841
71501
  /**
@@ -70921,7 +71581,7 @@ export type BrowserGetByobBrowserErrors = {
70921
71581
  */
70922
71582
  402: BrowserError;
70923
71583
  /**
70924
- * PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
71584
+ * PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
70925
71585
  */
70926
71586
  403: BrowserError;
70927
71587
  /**
@@ -70979,14 +71639,6 @@ export type BrowserUpdateByobBrowserData = {
70979
71639
  * 新的显示名称,1–80 个字符。
70980
71640
  */
70981
71641
  name?: string;
70982
- /**
70983
- * 整体替换被授权的智能体 ID 列表;传空数组撤销全部授权。
70984
- */
70985
- granted_agents?: Array<string>;
70986
- /**
70987
- * 整体替换允许站点列表;传空数组表示不限制。
70988
- */
70989
- allowed_sites?: Array<string>;
70990
71642
  };
70991
71643
  path: {
70992
71644
  /**
@@ -71011,7 +71663,7 @@ export type BrowserUpdateByobBrowserErrors = {
71011
71663
  */
71012
71664
  402: BrowserError;
71013
71665
  /**
71014
- * PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
71666
+ * PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
71015
71667
  */
71016
71668
  403: BrowserError;
71017
71669
  /**
@@ -71088,7 +71740,7 @@ export type BrowserDisconnectByobBrowserErrors = {
71088
71740
  */
71089
71741
  402: BrowserError;
71090
71742
  /**
71091
- * PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
71743
+ * PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
71092
71744
  */
71093
71745
  403: BrowserError;
71094
71746
  /**
@@ -71165,7 +71817,7 @@ export type BrowserReadByobPairingErrors = {
71165
71817
  */
71166
71818
  402: BrowserError;
71167
71819
  /**
71168
- * PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
71820
+ * PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
71169
71821
  */
71170
71822
  403: BrowserError;
71171
71823
  /**
@@ -71242,7 +71894,7 @@ export type BrowserClaimByobPairingErrors = {
71242
71894
  */
71243
71895
  402: BrowserError;
71244
71896
  /**
71245
- * PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
71897
+ * PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
71246
71898
  */
71247
71899
  403: BrowserError;
71248
71900
  /**
@@ -71351,7 +72003,7 @@ export type BrowserConnectErrors = {
71351
72003
  */
71352
72004
  402: BrowserError;
71353
72005
  /**
71354
- * PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
72006
+ * PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
71355
72007
  */
71356
72008
  403: BrowserError;
71357
72009
  /**
@@ -71430,7 +72082,7 @@ export type BrowserLiveViewErrors = {
71430
72082
  */
71431
72083
  402: BrowserError;
71432
72084
  /**
71433
- * PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
72085
+ * PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
71434
72086
  */
71435
72087
  403: BrowserError;
71436
72088
  /**
@@ -71500,7 +72152,7 @@ export type BrowserStreamSessionErrors = {
71500
72152
  */
71501
72153
  402: BrowserError;
71502
72154
  /**
71503
- * PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
72155
+ * PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
71504
72156
  */
71505
72157
  403: BrowserError;
71506
72158
  /**
@@ -71577,7 +72229,7 @@ export type BrowserStreamSessionFramesErrors = {
71577
72229
  */
71578
72230
  402: BrowserError;
71579
72231
  /**
71580
- * PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
72232
+ * PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
71581
72233
  */
71582
72234
  403: BrowserError;
71583
72235
  /**
@@ -78314,7 +78966,7 @@ export type ListOrganizationCostsData = {
78314
78966
  */
78315
78967
  bucket_width: '1h' | '1d';
78316
78968
  /**
78317
- * 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.
78318
78970
  *
78319
78971
  */
78320
78972
  time_zone?: string;
@@ -78432,7 +79084,7 @@ export type ListOrganizationUsageData = {
78432
79084
  */
78433
79085
  bucket_width: '1h' | '1d';
78434
79086
  /**
78435
- * 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.
78436
79088
  *
78437
79089
  */
78438
79090
  time_zone?: string;
@@ -78952,11 +79604,19 @@ export type ListOrganizationNotificationLettersData = {
78952
79604
  path?: never;
78953
79605
  query?: {
78954
79606
  /**
78955
- * 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.
79608
+ */
79609
+ direction?: 'received' | 'sent';
79610
+ /**
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.
78956
79616
  */
78957
- status?: 'unread' | 'read';
79617
+ thread?: string;
78958
79618
  /**
78959
- * false (the default) hides archived letters; true lists only the archived ones.
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.
78960
79620
  */
78961
79621
  archived?: boolean;
78962
79622
  /**
@@ -78972,7 +79632,7 @@ export type ListOrganizationNotificationLettersData = {
78972
79632
  };
78973
79633
  export type ListOrganizationNotificationLettersErrors = {
78974
79634
  /**
78975
- * 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).
78976
79636
  */
78977
79637
  400: unknown;
78978
79638
  /**
@@ -79072,6 +79732,80 @@ export type ListOrganizationNotificationLettersResponses = {
79072
79732
  };
79073
79733
  };
79074
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];
79075
79809
  export type GetOrganizationNotificationLetterData = {
79076
79810
  body?: never;
79077
79811
  path: {
@@ -79295,6 +80029,360 @@ export type ArchiveOrganizationNotificationLetterResponses = {
79295
80029
  };
79296
80030
  };
79297
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];
79298
80386
  export type GetOrganizationNotificationPreferencesData = {
79299
80387
  body?: never;
79300
80388
  path?: never;
@@ -80762,7 +81850,7 @@ export type ListByodDevicesResponses = {
80762
81850
  */
80763
81851
  id: string;
80764
81852
  /**
80765
- * 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.
80766
81854
  */
80767
81855
  platform: 'android' | 'macos' | 'linux';
80768
81856
  /**
@@ -80810,6 +81898,10 @@ export type ListByodDevicesResponses = {
80810
81898
  */
80811
81899
  agent: string;
80812
81900
  }>;
81901
+ /**
81902
+ * The version of the envd on the desktop, as its last hello reported. Null for a phone, for a desktop that has not connected yet, and for an envd that sent no version.
81903
+ */
81904
+ envd_version: string | null;
80813
81905
  /**
80814
81906
  * Whether the desktop's envd lets a platform session run in bypassPermissions (all tool calls without asking). True unless the person ran praxis connect agent --no-bypass on that machine; a session create that asks for bypassPermissions on a device where this is false answers 400 INVALID_PARAMS. False for a phone and for a desktop that has not connected yet.
80815
81907
  */
@@ -80857,7 +81949,7 @@ export type GetByodDeviceResponses = {
80857
81949
  */
80858
81950
  id: string;
80859
81951
  /**
80860
- * 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.
80861
81953
  */
80862
81954
  platform: 'android' | 'macos' | 'linux';
80863
81955
  /**
@@ -80905,6 +81997,10 @@ export type GetByodDeviceResponses = {
80905
81997
  */
80906
81998
  agent: string;
80907
81999
  }>;
82000
+ /**
82001
+ * The version of the envd on the desktop, as its last hello reported. Null for a phone, for a desktop that has not connected yet, and for an envd that sent no version.
82002
+ */
82003
+ envd_version: string | null;
80908
82004
  /**
80909
82005
  * Whether the desktop's envd lets a platform session run in bypassPermissions (all tool calls without asking). True unless the person ran praxis connect agent --no-bypass on that machine; a session create that asks for bypassPermissions on a device where this is false answers 400 INVALID_PARAMS. False for a phone and for a desktop that has not connected yet.
80910
82006
  */
@@ -80963,7 +82059,7 @@ export type UpdateByodDeviceResponses = {
80963
82059
  */
80964
82060
  id: string;
80965
82061
  /**
80966
- * 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.
80967
82063
  */
80968
82064
  platform: 'android' | 'macos' | 'linux';
80969
82065
  /**
@@ -81011,6 +82107,10 @@ export type UpdateByodDeviceResponses = {
81011
82107
  */
81012
82108
  agent: string;
81013
82109
  }>;
82110
+ /**
82111
+ * The version of the envd on the desktop, as its last hello reported. Null for a phone, for a desktop that has not connected yet, and for an envd that sent no version.
82112
+ */
82113
+ envd_version: string | null;
81014
82114
  /**
81015
82115
  * Whether the desktop's envd lets a platform session run in bypassPermissions (all tool calls without asking). True unless the person ran praxis connect agent --no-bypass on that machine; a session create that asks for bypassPermissions on a device where this is false answers 400 INVALID_PARAMS. False for a phone and for a desktop that has not connected yet.
81016
82116
  */
@@ -81102,7 +82202,7 @@ export type ClaimByodPairingData = {
81102
82202
  */
81103
82203
  body: {
81104
82204
  /**
81105
- * 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.
81106
82206
  */
81107
82207
  platform: 'android' | 'macos' | 'linux';
81108
82208
  /**
@@ -81133,7 +82233,7 @@ export type ClaimByodPairingData = {
81133
82233
  };
81134
82234
  export type ClaimByodPairingErrors = {
81135
82235
  /**
81136
- * 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.
81137
82237
  */
81138
82238
  400: unknown;
81139
82239
  /**
@@ -83756,8 +84856,7 @@ export type SessionsUpdateData = {
83756
84856
  */
83757
84857
  title?: null | string;
83758
84858
  /**
83759
- * Vault IDs (`vlt_*`) to attach to the session. Not yet supported;
83760
- * 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.
83761
84860
  */
83762
84861
  vault_ids?: Array<string>;
83763
84862
  /**
@@ -84304,6 +85403,15 @@ export type AgentsListResponses = {
84304
85403
  name: string;
84305
85404
  }>;
84306
85405
  };
85406
+ /**
85407
+ * ADR-205: which browser the agent drives. {byob: byb_…} names one of your organization's paired browsers (browser.byob.browsers.list), which the agent then drives through connect() instead of a cloud browser; null or absent is the cloud browser. The browser must belong to your organization (otherwise 400) and must grant this agent before a session can open it. Omit on update to keep it, send an object to replace it, or null to go back to the cloud browser. /agent/v1 only.
85408
+ */
85409
+ browser?: {
85410
+ /**
85411
+ * A paired browser's id (byb_ and 26 lowercase hex characters), from browser.byob.browsers.list.
85412
+ */
85413
+ byob: string;
85414
+ } | null;
84307
85415
  /**
84308
85416
  * Praxis extension: MA only has session-scoped temporary containers and memory_stores, not durable browsable computers. computer_id selects a tenant-owned active computer. Session selection overrides the agent default; a sandbox environment_id and computer_id cannot be combined. Omitted when no computer is selected.
84309
85417
  */
@@ -84689,7 +85797,7 @@ export type AgentsListResponses = {
84689
85797
  */
84690
85798
  environment_id?: string | null;
84691
85799
  /**
84692
- * 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.
84693
85801
  */
84694
85802
  vault_ids?: Array<string>;
84695
85803
  /**
@@ -85228,7 +86336,7 @@ export type AgentsCreateData = {
85228
86336
  */
85229
86337
  environment_id?: string | null;
85230
86338
  /**
85231
- * 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.
85232
86340
  */
85233
86341
  vault_ids?: Array<string>;
85234
86342
  /**
@@ -85253,6 +86361,15 @@ export type AgentsCreateData = {
85253
86361
  name: string;
85254
86362
  }>;
85255
86363
  };
86364
+ /**
86365
+ * ADR-205: which browser the agent drives. {byob: byb_…} names one of your organization's paired browsers (browser.byob.browsers.list), which the agent then drives through connect() instead of a cloud browser; null or absent is the cloud browser. The browser must belong to your organization (otherwise 400) and must grant this agent before a session can open it. Omit on update to keep it, send an object to replace it, or null to go back to the cloud browser. /agent/v1 only.
86366
+ */
86367
+ browser?: {
86368
+ /**
86369
+ * A paired browser's id (byb_ and 26 lowercase hex characters), from browser.byob.browsers.list.
86370
+ */
86371
+ byob: string;
86372
+ } | null;
85256
86373
  /**
85257
86374
  * Optional tool preset. minimal enables read, glob and grep; data-editor also enables write and edit; full uses the default toolset with always_allow. Explicit tools override matching preset entries. codemode requires bash and is absent from data-editor.
85258
86375
  */
@@ -85508,6 +86625,15 @@ export type AgentsCreateResponses = {
85508
86625
  name: string;
85509
86626
  }>;
85510
86627
  };
86628
+ /**
86629
+ * ADR-205: which browser the agent drives. {byob: byb_…} names one of your organization's paired browsers (browser.byob.browsers.list), which the agent then drives through connect() instead of a cloud browser; null or absent is the cloud browser. The browser must belong to your organization (otherwise 400) and must grant this agent before a session can open it. Omit on update to keep it, send an object to replace it, or null to go back to the cloud browser. /agent/v1 only.
86630
+ */
86631
+ browser?: {
86632
+ /**
86633
+ * A paired browser's id (byb_ and 26 lowercase hex characters), from browser.byob.browsers.list.
86634
+ */
86635
+ byob: string;
86636
+ } | null;
85511
86637
  /**
85512
86638
  * Praxis extension: MA only has session-scoped temporary containers and memory_stores, not durable browsable computers. computer_id selects a tenant-owned active computer. Session selection overrides the agent default; a sandbox environment_id and computer_id cannot be combined. Omitted when no computer is selected.
85513
86639
  */
@@ -85893,7 +87019,7 @@ export type AgentsCreateResponses = {
85893
87019
  */
85894
87020
  environment_id?: string | null;
85895
87021
  /**
85896
- * 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.
85897
87023
  */
85898
87024
  vault_ids?: Array<string>;
85899
87025
  /**
@@ -86170,6 +87296,15 @@ export type AgentsRetrieveResponses = {
86170
87296
  name: string;
86171
87297
  }>;
86172
87298
  };
87299
+ /**
87300
+ * ADR-205: which browser the agent drives. {byob: byb_…} names one of your organization's paired browsers (browser.byob.browsers.list), which the agent then drives through connect() instead of a cloud browser; null or absent is the cloud browser. The browser must belong to your organization (otherwise 400) and must grant this agent before a session can open it. Omit on update to keep it, send an object to replace it, or null to go back to the cloud browser. /agent/v1 only.
87301
+ */
87302
+ browser?: {
87303
+ /**
87304
+ * A paired browser's id (byb_ and 26 lowercase hex characters), from browser.byob.browsers.list.
87305
+ */
87306
+ byob: string;
87307
+ } | null;
86173
87308
  /**
86174
87309
  * Praxis extension: MA only has session-scoped temporary containers and memory_stores, not durable browsable computers. computer_id selects a tenant-owned active computer. Session selection overrides the agent default; a sandbox environment_id and computer_id cannot be combined. Omitted when no computer is selected.
86175
87310
  */
@@ -86555,7 +87690,7 @@ export type AgentsRetrieveResponses = {
86555
87690
  */
86556
87691
  environment_id?: string | null;
86557
87692
  /**
86558
- * 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.
86559
87694
  */
86560
87695
  vault_ids?: Array<string>;
86561
87696
  /**
@@ -87103,7 +88238,7 @@ export type AgentsUpdateData = {
87103
88238
  */
87104
88239
  environment_id?: string | null;
87105
88240
  /**
87106
- * 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.
87107
88242
  */
87108
88243
  vault_ids?: Array<string>;
87109
88244
  /**
@@ -87129,273 +88264,291 @@ export type AgentsUpdateData = {
87129
88264
  }>;
87130
88265
  };
87131
88266
  /**
87132
- * Optional tool preset. minimal enables read, glob and grep; data-editor also enables write and edit; full uses the default toolset with always_allow. Explicit tools override matching preset entries. codemode requires bash and is absent from data-editor.
87133
- */
87134
- preset?: 'minimal' | 'data-editor' | 'full';
87135
- /**
87136
- * Inline custom output styles, including for agents without a computer. Omit to keep the saved list; null or [] clears it. Same-name precedence is inline, project files, personal files, then plugins. Selection is settings.outputStyle; styles apply to main conversations and are frozen per session.
87137
- */
87138
- output_styles?: Array<{
87139
- /**
87140
- * Nonblank, case-sensitive style name, unique within this list. It can override a same-name file or built-in style.
87141
- */
87142
- name: string;
87143
- /**
87144
- * Optional description of when to use this style.
87145
- */
87146
- description?: string;
87147
- /**
87148
- * Style instructions added after platform guidance and before owner instructions. Empty content adds no style instructions.
87149
- */
87150
- prompt: string;
87151
- /**
87152
- * Saved for file-format compatibility; currently has no effect because Praxis has no separate coding-instruction block.
87153
- */
87154
- keep_coding_instructions?: boolean;
87155
- }> | null;
87156
- };
87157
- path: {
87158
- /**
87159
- * Agent id, as returned by agents.create or agents.list (for a session filter, the agent the session was created with). Not the agent name. Also accepts an 8-character identity number (0–9, A–Z); malformed, absent and foreign references return 404, and response ids always use agent_….
87160
- */
87161
- agent_id: string;
87162
- };
87163
- query?: never;
87164
- url: '/agent/v1/agents/{agent_id}';
87165
- };
87166
- export type AgentsUpdateErrors = {
87167
- /**
87168
- * The body failed validation and the message names the field (same rules as agents.create, including tools: null).
87169
- */
87170
- 400: AgentError;
87171
- /**
87172
- * UNAUTHENTICATED (or INVALID_API_KEY, API_KEY_DISABLED, API_KEY_EXPIRED, INVALID_API_TOKEN, API_TOKEN_EXPIRED, API_TOKEN_REVOKED): the API key is missing, invalid or revoked. Send a valid key as X-API-Key or as a Bearer token.
87173
- */
87174
- 401: AgentError;
87175
- /**
87176
- * permission_error: the credential's role or bound resources do not allow this operation. Use a key with access to the agent domain and its resources.
87177
- */
87178
- 403: AgentError;
87179
- /**
87180
- * AGENT_NOT_FOUND: the id does not exist in your organization, or is malformed. Take ids from agents.list or agents.create.
87181
- */
87182
- 404: AgentError;
87183
- /**
87184
- * AGENT_ARCHIVED: unarchive it first. AGENT_VERSION_CONFLICT: version is not the agent's latest (older or not yet existing); error.current_version carries the latest, resend with it. A newer version saved with apply false is waiting: apply it or save over it.
87185
- */
87186
- 409: AgentError;
87187
- };
87188
- export type AgentsUpdateError = AgentsUpdateErrors[keyof AgentsUpdateErrors];
87189
- export type AgentsUpdateResponses = {
87190
- /**
87191
- * Successful response
87192
- */
87193
- 200: {
87194
- /**
87195
- * Agent id (agent_...). Pass it as agent when creating a session and as agent_id in agent calls.
87196
- */
87197
- id: string;
87198
- /**
87199
- * A timestamp in RFC 3339 format
87200
- */
87201
- archived_at: null | string;
87202
- /**
87203
- * A timestamp in RFC 3339 format
87204
- */
87205
- created_at: string;
87206
- /**
87207
- * Free-text description of what the agent is for; null when none was set.
87208
- */
87209
- description: null | string;
87210
- /**
87211
- * Praxis extension: HTTP, SSE or trusted stdio MCP servers paired with mcp_toolset entries and saved with the agent version.
87212
- */
87213
- mcp_servers: Array<AgentManaged36>;
87214
- metadata: AgentManaged37;
87215
- /**
87216
- * Model identifier and configuration.
87217
- */
87218
- model?: {
87219
- /**
87220
- * A model id from the Praxis model catalog (`praxis.model.models.list`). Unlike Anthropic, Claude model ids other than those in the catalog are rejected.
87221
- */
87222
- id: string;
87223
- /**
87224
- * How hard Claude works on each turn. Sets `output_config.effort` on every
87225
- * Messages call the session makes.
87226
- */
87227
- effort?: AgentManaged2 | AgentManaged3 | AgentManaged4 | AgentManaged5 | AgentManaged6;
87228
- /**
87229
- * Geographic region for model inference. When unset, requests fall through to the
87230
- * workspace's default_inference_geo.
87231
- */
87232
- inference_geo?: string;
87233
- /**
87234
- * Inference speed mode. `fast` provides significantly faster output token
87235
- * generation at premium pricing. Not all models support `fast`; invalid
87236
- * combinations are rejected at create time.
87237
- */
87238
- speed?: 'standard' | 'fast';
87239
- /**
87240
- * Platform model settings: reasoning (default thinking level) and max_output_tokens (output cap). Other model controls return 400.
87241
- */
87242
- settings?: {
87243
- /**
87244
- * Default thinking effort for sessions without an explicit selection. Unsupported defaults fall back to the selected model default.
87245
- */
87246
- reasoning?: 'low' | 'medium' | 'high' | 'xhigh' | 'max' | 'none';
87247
- /**
87248
- * Output cap for one model request, thinking included; the counterpart of Claude Code's CLAUDE_CODE_MAX_OUTPUT_TOKENS. When unset, every request uses the output limit the model declares. When set, the runtime clamps it to the model's limit.
87249
- */
87250
- max_output_tokens?: number;
87251
- };
87252
- };
87253
- /**
87254
- * Coordinator roster. A bare string agent id is equivalent to {type: "agent", id}; omitting its version pins the referenced agent's current saved version when this roster is saved. {type: "self"} refers to this agent. Specify a concrete version to pin it explicitly.
87255
- */
87256
- multiagent?: null | AgentManaged39;
87257
- /**
87258
- * Display name of the agent, as set on create or update. It is a label, not a unique key.
87259
- */
87260
- name: string;
87261
- /**
87262
- * Custom skills attached to the agent, each {type: "custom", skill_id, version?}: skill_id comes from skills.create or skills.list, at most 20 skills, no repeated skill_id. Omit version, or send "latest", to use the skill's newest version at the moment a session starts; a pinned version stays fixed. type anthropic returns 400: upload the skill and attach it as custom. On update, omit the field to keep the list, send an array to replace it, or send [] or null to clear it.
87263
- */
87264
- skills: Array<AgentManaged42 | AgentManaged43>;
87265
- /**
87266
- * System prompt given to the model at the start of every session of this agent; null when none was set.
87267
- */
87268
- system: null | string;
87269
- /**
87270
- * Tools of the agent: one agent_toolset_20260401 entry for the native tools (all resolved settings are returned, ready to send back on update), plus mcp_toolset entries and custom tool definitions. Custom calls emit agent.custom_tool_use and wait for user.custom_tool_result. Keep bash enabled to use codemode, skill and subagents.
87271
- */
87272
- tools: Array<AgentManaged44 | AgentManaged54 | AgentManaged57>;
87273
- /**
87274
- * Always `agent`. An agent definition.
87275
- */
87276
- type: 'agent';
87277
- /**
87278
- * A timestamp in RFC 3339 format
87279
- */
87280
- updated_at: string;
87281
- /**
87282
- * Version of this returned configuration. Default retrieve returns the effective version; an explicit version query or a version-history item returns that saved version.
88267
+ * ADR-205: which browser the agent drives. {byob: byb_…} names one of your organization's paired browsers (browser.byob.browsers.list), which the agent then drives through connect() instead of a cloud browser; null or absent is the cloud browser. The browser must belong to your organization (otherwise 400) and must grant this agent before a session can open it. Omit on update to keep it, send an object to replace it, or null to go back to the cloud browser. /agent/v1 only.
88268
+ */
88269
+ browser?: {
88270
+ /**
88271
+ * A paired browser's id (byb_ and 26 lowercase hex characters), from browser.byob.browsers.list.
88272
+ */
88273
+ byob: string;
88274
+ } | null;
88275
+ /**
88276
+ * Optional tool preset. minimal enables read, glob and grep; data-editor also enables write and edit; full uses the default toolset with always_allow. Explicit tools override matching preset entries. codemode requires bash and is absent from data-editor.
88277
+ */
88278
+ preset?: 'minimal' | 'data-editor' | 'full';
88279
+ /**
88280
+ * Inline custom output styles, including for agents without a computer. Omit to keep the saved list; null or [] clears it. Same-name precedence is inline, project files, personal files, then plugins. Selection is settings.outputStyle; styles apply to main conversations and are frozen per session.
88281
+ */
88282
+ output_styles?: Array<{
88283
+ /**
88284
+ * Nonblank, case-sensitive style name, unique within this list. It can override a same-name file or built-in style.
88285
+ */
88286
+ name: string;
88287
+ /**
88288
+ * Optional description of when to use this style.
88289
+ */
88290
+ description?: string;
88291
+ /**
88292
+ * Style instructions added after platform guidance and before owner instructions. Empty content adds no style instructions.
88293
+ */
88294
+ prompt: string;
88295
+ /**
88296
+ * Saved for file-format compatibility; currently has no effect because Praxis has no separate coding-instruction block.
88297
+ */
88298
+ keep_coding_instructions?: boolean;
88299
+ }> | null;
88300
+ };
88301
+ path: {
88302
+ /**
88303
+ * Agent id, as returned by agents.create or agents.list (for a session filter, the agent the session was created with). Not the agent name. Also accepts an 8-character identity number (0–9, A–Z); malformed, absent and foreign references return 404, and response ids always use agent_….
88304
+ */
88305
+ agent_id: string;
88306
+ };
88307
+ query?: never;
88308
+ url: '/agent/v1/agents/{agent_id}';
88309
+ };
88310
+ export type AgentsUpdateErrors = {
88311
+ /**
88312
+ * The body failed validation and the message names the field (same rules as agents.create, including tools: null).
88313
+ */
88314
+ 400: AgentError;
88315
+ /**
88316
+ * UNAUTHENTICATED (or INVALID_API_KEY, API_KEY_DISABLED, API_KEY_EXPIRED, INVALID_API_TOKEN, API_TOKEN_EXPIRED, API_TOKEN_REVOKED): the API key is missing, invalid or revoked. Send a valid key as X-API-Key or as a Bearer token.
88317
+ */
88318
+ 401: AgentError;
88319
+ /**
88320
+ * permission_error: the credential's role or bound resources do not allow this operation. Use a key with access to the agent domain and its resources.
88321
+ */
88322
+ 403: AgentError;
88323
+ /**
88324
+ * AGENT_NOT_FOUND: the id does not exist in your organization, or is malformed. Take ids from agents.list or agents.create.
88325
+ */
88326
+ 404: AgentError;
88327
+ /**
88328
+ * AGENT_ARCHIVED: unarchive it first. AGENT_VERSION_CONFLICT: version is not the agent's latest (older or not yet existing); error.current_version carries the latest, resend with it. A newer version saved with apply false is waiting: apply it or save over it.
88329
+ */
88330
+ 409: AgentError;
88331
+ };
88332
+ export type AgentsUpdateError = AgentsUpdateErrors[keyof AgentsUpdateErrors];
88333
+ export type AgentsUpdateResponses = {
88334
+ /**
88335
+ * Successful response
88336
+ */
88337
+ 200: {
88338
+ /**
88339
+ * Agent id (agent_...). Pass it as agent when creating a session and as agent_id in agent calls.
88340
+ */
88341
+ id: string;
88342
+ /**
88343
+ * A timestamp in RFC 3339 format
88344
+ */
88345
+ archived_at: null | string;
88346
+ /**
88347
+ * A timestamp in RFC 3339 format
88348
+ */
88349
+ created_at: string;
88350
+ /**
88351
+ * Free-text description of what the agent is for; null when none was set.
88352
+ */
88353
+ description: null | string;
88354
+ /**
88355
+ * Praxis extension: HTTP, SSE or trusted stdio MCP servers paired with mcp_toolset entries and saved with the agent version.
88356
+ */
88357
+ mcp_servers: Array<AgentManaged36>;
88358
+ metadata: AgentManaged37;
88359
+ /**
88360
+ * Model identifier and configuration.
88361
+ */
88362
+ model?: {
88363
+ /**
88364
+ * A model id from the Praxis model catalog (`praxis.model.models.list`). Unlike Anthropic, Claude model ids other than those in the catalog are rejected.
88365
+ */
88366
+ id: string;
88367
+ /**
88368
+ * How hard Claude works on each turn. Sets `output_config.effort` on every
88369
+ * Messages call the session makes.
88370
+ */
88371
+ effort?: AgentManaged2 | AgentManaged3 | AgentManaged4 | AgentManaged5 | AgentManaged6;
88372
+ /**
88373
+ * Geographic region for model inference. When unset, requests fall through to the
88374
+ * workspace's default_inference_geo.
88375
+ */
88376
+ inference_geo?: string;
88377
+ /**
88378
+ * Inference speed mode. `fast` provides significantly faster output token
88379
+ * generation at premium pricing. Not all models support `fast`; invalid
88380
+ * combinations are rejected at create time.
88381
+ */
88382
+ speed?: 'standard' | 'fast';
88383
+ /**
88384
+ * Platform model settings: reasoning (default thinking level) and max_output_tokens (output cap). Other model controls return 400.
88385
+ */
88386
+ settings?: {
88387
+ /**
88388
+ * Default thinking effort for sessions without an explicit selection. Unsupported defaults fall back to the selected model default.
88389
+ */
88390
+ reasoning?: 'low' | 'medium' | 'high' | 'xhigh' | 'max' | 'none';
88391
+ /**
88392
+ * Output cap for one model request, thinking included; the counterpart of Claude Code's CLAUDE_CODE_MAX_OUTPUT_TOKENS. When unset, every request uses the output limit the model declares. When set, the runtime clamps it to the model's limit.
88393
+ */
88394
+ max_output_tokens?: number;
88395
+ };
88396
+ };
88397
+ /**
88398
+ * Coordinator roster. A bare string agent id is equivalent to {type: "agent", id}; omitting its version pins the referenced agent's current saved version when this roster is saved. {type: "self"} refers to this agent. Specify a concrete version to pin it explicitly.
88399
+ */
88400
+ multiagent?: null | AgentManaged39;
88401
+ /**
88402
+ * Display name of the agent, as set on create or update. It is a label, not a unique key.
88403
+ */
88404
+ name: string;
88405
+ /**
88406
+ * Custom skills attached to the agent, each {type: "custom", skill_id, version?}: skill_id comes from skills.create or skills.list, at most 20 skills, no repeated skill_id. Omit version, or send "latest", to use the skill's newest version at the moment a session starts; a pinned version stays fixed. type anthropic returns 400: upload the skill and attach it as custom. On update, omit the field to keep the list, send an array to replace it, or send [] or null to clear it.
88407
+ */
88408
+ skills: Array<AgentManaged42 | AgentManaged43>;
88409
+ /**
88410
+ * System prompt given to the model at the start of every session of this agent; null when none was set.
88411
+ */
88412
+ system: null | string;
88413
+ /**
88414
+ * Tools of the agent: one agent_toolset_20260401 entry for the native tools (all resolved settings are returned, ready to send back on update), plus mcp_toolset entries and custom tool definitions. Custom calls emit agent.custom_tool_use and wait for user.custom_tool_result. Keep bash enabled to use codemode, skill and subagents.
88415
+ */
88416
+ tools: Array<AgentManaged44 | AgentManaged54 | AgentManaged57>;
88417
+ /**
88418
+ * Always `agent`. An agent definition.
88419
+ */
88420
+ type: 'agent';
88421
+ /**
88422
+ * A timestamp in RFC 3339 format
88423
+ */
88424
+ updated_at: string;
88425
+ /**
88426
+ * Version of this returned configuration. Default retrieve returns the effective version; an explicit version query or a version-history item returns that saved version.
88427
+ */
88428
+ version: number;
88429
+ /**
88430
+ * Newest saved version number, including an unapplied save. Returned by default retrieve, update and apply; use it for optimistic concurrency when updating.
88431
+ */
88432
+ latest_version?: number;
88433
+ /**
88434
+ * Agent-level currently effective version used by new sessions and newly issued embed tokens. This same value appears on every history item; it is not that item's version. Saving with apply false leaves it unchanged. Existing sessions and tokens retain their version.
88435
+ */
88436
+ active_version: number;
88437
+ /**
88438
+ * Authenticated author who created this immutable version; null for historical versions without attribution. user identifies the signed-in user; api_key identifies the calling key. Never supplied by the request body.
88439
+ */
88440
+ created_by: {
88441
+ /**
88442
+ * user denotes a version saved by a signed-in user.
88443
+ */
88444
+ type: 'user';
88445
+ /**
88446
+ * Authenticated user identifier at the time this version was saved.
88447
+ */
88448
+ id: string;
88449
+ /**
88450
+ * User display name at save time, omitted when unavailable.
88451
+ */
88452
+ name?: string;
88453
+ } | {
88454
+ /**
88455
+ * api_key denotes a version saved through an API key.
88456
+ */
88457
+ type: 'api_key';
88458
+ /**
88459
+ * Authenticated API key identifier, never the key secret.
88460
+ */
88461
+ id: string;
88462
+ } | null;
88463
+ /**
88464
+ * Change explanation supplied as version_note when this version was saved; null when omitted or for historical versions. Immutable after creation.
88465
+ */
88466
+ note: string | null;
88467
+ /**
88468
+ * How many of this agent's live deployments are not on its active version: pinned to a version other than active_version, not archived, counted once each. It counts both a pin older than the active version and a pin newer than it that was saved without being applied, so read it as "not on the active version", never as "older than". Following deployments are never counted (they run the active version by definition). Null when the deployment side could not be read. Returned by update and apply too, so those answers equal the read that follows them.
88469
+ */
88470
+ deployments_behind: number | null;
88471
+ /**
88472
+ * Platform resources and services this service agent's codemode may reach, as one list of typed bindings. Only kind=service accepts a nonempty list; general agents return 400. There are two kinds. A resource binding names one resource with id and access: database (id db_..., read_only or read_write), vector_store (id vs_..., read_only or read_write), file (id file- plus 24 letters or digits, as the File API returns it; read_only), media_library (any id without ':' or whitespace, read_only or read_write), model (a model catalog id, invoke), workflow and script (id <namespace>/<name>, invoke). A resource binding may also carry customer_access (read_only by default): it caps what a terminal customer's session (a visitor, ADR-163 §3) may do with that one resource, at the intersection of customer_access and the binding's own access — invoke (call) and read_write (change) are different axes, so only a matching pair keeps its access and any other pair falls to read_only. Its value must be one the type can grant: read_only or read_write for database, vector_store and media_library, read_only for file, and read_only or invoke for model, workflow and script. A member's session ignores it, so raising it never widens what members may do. A visitor's session never receives a whole-service binding (the default ticket service included) or an agent resource. A service binding opens one service, or one sub-tree of one, and carries only enabled: search, browser, ticket, crm, canvas, cut, studio, feedback or workspace. workspace opens development units — list one, read one, start, stop, exec inside one, fetch, push, connect, and open a unit for a change — and opens neither publishing nor any production operation. The ticket service is bound by default: a service agent whose list has no ticket entry may call the ticket API, and {"type": "ticket", "enabled": false} removes it. Every other service stays closed until it is bound. An open service allows every public method of that service. At most 20 bindings per type, no repeated type and id, and each service type at most once. A session is authorized by the agent version it runs: newly added bindings apply only to new sessions, and a version saved with apply=false changes no access until it is applied. Applying a version that disables, removes or downgrades a binding revokes it immediately in running sessions on older versions. A resource that is not bound returns 404, a service that is not opened returns 403, and a write to a resource bound read_only returns 403 BINDING_READ_ONLY. Unknown types, fields on the wrong kind (id, access, customer_access or instructions on a service binding), wrong access and malformed ids return 400. The former databases, vector_stores and files fields are removed and return 400. Omit on create for the default: the ticket service only. Saving checks added or changed database, vector_store, media_library and file bindings in the organization: unknown or deleted ids return 400. If an owner is unavailable or takes more than 3 seconds, saving succeeds with verified=false for the affected bindings. Unchanged bindings keep their previous verification result and are not rechecked. workflow and script ids are not verified at save time.
88473
+ */
88474
+ bindings: Array<{
88475
+ /**
88476
+ * Resource type. Decides the id format and the allowed access.
88477
+ */
88478
+ type: 'database' | 'vector_store' | 'file' | 'media_library' | 'model' | 'workflow' | 'script' | 'repository' | 'browser_context';
88479
+ /**
88480
+ * Resource id, never its name. database db_..., vector_store vs_..., file file- plus 24 letters or digits; media_library and model ids must not contain ':' or whitespace; workflow and script use <namespace>/<name> with no '/', '@', ':' or whitespace inside a part; repository pkg_..., browser_context bsc_....
88481
+ */
88482
+ id: string;
88483
+ /**
88484
+ * database, vector_store and media_library accept read_only or read_write; file accepts read_only; model, workflow and script accept invoke; repository and browser_context accept read_only or read_write. Any other combination returns 400.
88485
+ */
88486
+ access: 'read_only' | 'read_write' | 'invoke';
88487
+ /**
88488
+ * What a visitor's session (a terminal customer, ADR-163 §3) may do with this resource: read_only, read_write or invoke. Its scope is the intersection of this value and the binding's own access, so invoke needs both to be invoke. Limited to the accesses the type can grant: read_only or read_write for database, vector_store and media_library, read_only for file, read_only or invoke for model, workflow and script. Defaults to read_only. A member's session ignores it entirely; a visitor's session never receives a whole-service binding or an agent resource.
88489
+ */
88490
+ customer_access?: 'read_only' | 'read_write' | 'invoke';
88491
+ /**
88492
+ * Optional guidance for using this resource, up to 4096 characters; does not expand access.
88493
+ */
88494
+ instructions?: string;
88495
+ /**
88496
+ * Save-time verification result. false means the resource owner was unavailable; saving still succeeded. Unchanged bindings retain their previous result. true is returned for other bindings, including workflow and script ids which are not verified at save time. Client values are ignored.
88497
+ */
88498
+ readonly verified?: boolean;
88499
+ /**
88500
+ * Whether this binding grants access. Defaults to true; false immediately disables it for running sessions.
88501
+ */
88502
+ enabled?: boolean;
88503
+ } | {
88504
+ /**
88505
+ * Service type. Opens one service, or one sub-tree of one, to codemode; there is no per-resource id.
88506
+ */
88507
+ type: 'search' | 'browser' | 'ticket' | 'crm' | 'canvas' | 'cut' | 'studio' | 'feedback' | 'workspace';
88508
+ /**
88509
+ * Save-time verification result. false means the resource owner was unavailable; saving still succeeded. Unchanged bindings retain their previous result. true is returned for other bindings, including workflow and script ids which are not verified at save time. Client values are ignored.
88510
+ */
88511
+ readonly verified?: boolean;
88512
+ /**
88513
+ * Whether the service is open. Defaults to true; false immediately closes it for running sessions.
88514
+ */
88515
+ enabled?: boolean;
88516
+ }>;
88517
+ /**
88518
+ * Immutable agent kind. general uses a durable computer and acts for its owner; service uses a clean environment per session; assume is driven over MCP with a durable computer and no conversation model. Historical agents infer kind from their computer binding and read as general.
88519
+ */
88520
+ kind: 'general' | 'service' | 'assume';
88521
+ /**
88522
+ * General agents only: the agent's computers, configured like its models. default is the template its Computer starts on; allowed lists the computers resize may switch to, and a resize to anything else is refused with COMPUTER_NOT_CONFIGURED. Omit on create for {default: base, allowed: Small base-small, Base base, Large base-large}; on update, omit to keep it, send an object to replace it as a whole. Service and assume agents return 400 computers is for general agents; service agents use environment_id. /agent/v1 only.
88523
+ */
88524
+ computers?: {
88525
+ /**
88526
+ * Template of the computer the agent's Computer starts on; must be the template of one allowed entry.
88527
+ */
88528
+ default: string;
88529
+ /**
88530
+ * Computers the agent may switch to with the computer tool's resize, in the order they are listed.
88531
+ */
88532
+ allowed: Array<{
88533
+ /**
88534
+ * Sandbox template name from sandbox templates.list, such as base, base-large or data. light returns 400. A template appears once.
88535
+ */
88536
+ template: string;
88537
+ /**
88538
+ * Display name people and the model use, such as Base or Large; unique within the list ignoring case.
88539
+ */
88540
+ name: string;
88541
+ }>;
88542
+ };
88543
+ /**
88544
+ * ADR-205: which browser the agent drives. {byob: byb_…} names one of your organization's paired browsers (browser.byob.browsers.list), which the agent then drives through connect() instead of a cloud browser; null or absent is the cloud browser. The browser must belong to your organization (otherwise 400) and must grant this agent before a session can open it. Omit on update to keep it, send an object to replace it, or null to go back to the cloud browser. /agent/v1 only.
87283
88545
  */
87284
- version: number;
87285
- /**
87286
- * Newest saved version number, including an unapplied save. Returned by default retrieve, update and apply; use it for optimistic concurrency when updating.
87287
- */
87288
- latest_version?: number;
87289
- /**
87290
- * Agent-level currently effective version used by new sessions and newly issued embed tokens. This same value appears on every history item; it is not that item's version. Saving with apply false leaves it unchanged. Existing sessions and tokens retain their version.
87291
- */
87292
- active_version: number;
87293
- /**
87294
- * Authenticated author who created this immutable version; null for historical versions without attribution. user identifies the signed-in user; api_key identifies the calling key. Never supplied by the request body.
87295
- */
87296
- created_by: {
88546
+ browser?: {
87297
88547
  /**
87298
- * user denotes a version saved by a signed-in user.
88548
+ * A paired browser's id (byb_ and 26 lowercase hex characters), from browser.byob.browsers.list.
87299
88549
  */
87300
- type: 'user';
87301
- /**
87302
- * Authenticated user identifier at the time this version was saved.
87303
- */
87304
- id: string;
87305
- /**
87306
- * User display name at save time, omitted when unavailable.
87307
- */
87308
- name?: string;
87309
- } | {
87310
- /**
87311
- * api_key denotes a version saved through an API key.
87312
- */
87313
- type: 'api_key';
87314
- /**
87315
- * Authenticated API key identifier, never the key secret.
87316
- */
87317
- id: string;
88550
+ byob: string;
87318
88551
  } | null;
87319
- /**
87320
- * Change explanation supplied as version_note when this version was saved; null when omitted or for historical versions. Immutable after creation.
87321
- */
87322
- note: string | null;
87323
- /**
87324
- * How many of this agent's live deployments are not on its active version: pinned to a version other than active_version, not archived, counted once each. It counts both a pin older than the active version and a pin newer than it that was saved without being applied, so read it as "not on the active version", never as "older than". Following deployments are never counted (they run the active version by definition). Null when the deployment side could not be read. Returned by update and apply too, so those answers equal the read that follows them.
87325
- */
87326
- deployments_behind: number | null;
87327
- /**
87328
- * Platform resources and services this service agent's codemode may reach, as one list of typed bindings. Only kind=service accepts a nonempty list; general agents return 400. There are two kinds. A resource binding names one resource with id and access: database (id db_..., read_only or read_write), vector_store (id vs_..., read_only or read_write), file (id file- plus 24 letters or digits, as the File API returns it; read_only), media_library (any id without ':' or whitespace, read_only or read_write), model (a model catalog id, invoke), workflow and script (id <namespace>/<name>, invoke). A resource binding may also carry customer_access (read_only by default): it caps what a terminal customer's session (a visitor, ADR-163 §3) may do with that one resource, at the intersection of customer_access and the binding's own access — invoke (call) and read_write (change) are different axes, so only a matching pair keeps its access and any other pair falls to read_only. Its value must be one the type can grant: read_only or read_write for database, vector_store and media_library, read_only for file, and read_only or invoke for model, workflow and script. A member's session ignores it, so raising it never widens what members may do. A visitor's session never receives a whole-service binding (the default ticket service included) or an agent resource. A service binding opens one service, or one sub-tree of one, and carries only enabled: search, browser, ticket, crm, canvas, cut, studio, feedback or workspace. workspace opens development units — list one, read one, start, stop, exec inside one, fetch, push, connect, and open a unit for a change — and opens neither publishing nor any production operation. The ticket service is bound by default: a service agent whose list has no ticket entry may call the ticket API, and {"type": "ticket", "enabled": false} removes it. Every other service stays closed until it is bound. An open service allows every public method of that service. At most 20 bindings per type, no repeated type and id, and each service type at most once. A session is authorized by the agent version it runs: newly added bindings apply only to new sessions, and a version saved with apply=false changes no access until it is applied. Applying a version that disables, removes or downgrades a binding revokes it immediately in running sessions on older versions. A resource that is not bound returns 404, a service that is not opened returns 403, and a write to a resource bound read_only returns 403 BINDING_READ_ONLY. Unknown types, fields on the wrong kind (id, access, customer_access or instructions on a service binding), wrong access and malformed ids return 400. The former databases, vector_stores and files fields are removed and return 400. Omit on create for the default: the ticket service only. Saving checks added or changed database, vector_store, media_library and file bindings in the organization: unknown or deleted ids return 400. If an owner is unavailable or takes more than 3 seconds, saving succeeds with verified=false for the affected bindings. Unchanged bindings keep their previous verification result and are not rechecked. workflow and script ids are not verified at save time.
87329
- */
87330
- bindings: Array<{
87331
- /**
87332
- * Resource type. Decides the id format and the allowed access.
87333
- */
87334
- type: 'database' | 'vector_store' | 'file' | 'media_library' | 'model' | 'workflow' | 'script' | 'repository' | 'browser_context';
87335
- /**
87336
- * Resource id, never its name. database db_..., vector_store vs_..., file file- plus 24 letters or digits; media_library and model ids must not contain ':' or whitespace; workflow and script use <namespace>/<name> with no '/', '@', ':' or whitespace inside a part; repository pkg_..., browser_context bsc_....
87337
- */
87338
- id: string;
87339
- /**
87340
- * database, vector_store and media_library accept read_only or read_write; file accepts read_only; model, workflow and script accept invoke; repository and browser_context accept read_only or read_write. Any other combination returns 400.
87341
- */
87342
- access: 'read_only' | 'read_write' | 'invoke';
87343
- /**
87344
- * What a visitor's session (a terminal customer, ADR-163 §3) may do with this resource: read_only, read_write or invoke. Its scope is the intersection of this value and the binding's own access, so invoke needs both to be invoke. Limited to the accesses the type can grant: read_only or read_write for database, vector_store and media_library, read_only for file, read_only or invoke for model, workflow and script. Defaults to read_only. A member's session ignores it entirely; a visitor's session never receives a whole-service binding or an agent resource.
87345
- */
87346
- customer_access?: 'read_only' | 'read_write' | 'invoke';
87347
- /**
87348
- * Optional guidance for using this resource, up to 4096 characters; does not expand access.
87349
- */
87350
- instructions?: string;
87351
- /**
87352
- * Save-time verification result. false means the resource owner was unavailable; saving still succeeded. Unchanged bindings retain their previous result. true is returned for other bindings, including workflow and script ids which are not verified at save time. Client values are ignored.
87353
- */
87354
- readonly verified?: boolean;
87355
- /**
87356
- * Whether this binding grants access. Defaults to true; false immediately disables it for running sessions.
87357
- */
87358
- enabled?: boolean;
87359
- } | {
87360
- /**
87361
- * Service type. Opens one service, or one sub-tree of one, to codemode; there is no per-resource id.
87362
- */
87363
- type: 'search' | 'browser' | 'ticket' | 'crm' | 'canvas' | 'cut' | 'studio' | 'feedback' | 'workspace';
87364
- /**
87365
- * Save-time verification result. false means the resource owner was unavailable; saving still succeeded. Unchanged bindings retain their previous result. true is returned for other bindings, including workflow and script ids which are not verified at save time. Client values are ignored.
87366
- */
87367
- readonly verified?: boolean;
87368
- /**
87369
- * Whether the service is open. Defaults to true; false immediately closes it for running sessions.
87370
- */
87371
- enabled?: boolean;
87372
- }>;
87373
- /**
87374
- * Immutable agent kind. general uses a durable computer and acts for its owner; service uses a clean environment per session; assume is driven over MCP with a durable computer and no conversation model. Historical agents infer kind from their computer binding and read as general.
87375
- */
87376
- kind: 'general' | 'service' | 'assume';
87377
- /**
87378
- * General agents only: the agent's computers, configured like its models. default is the template its Computer starts on; allowed lists the computers resize may switch to, and a resize to anything else is refused with COMPUTER_NOT_CONFIGURED. Omit on create for {default: base, allowed: Small base-small, Base base, Large base-large}; on update, omit to keep it, send an object to replace it as a whole. Service and assume agents return 400 computers is for general agents; service agents use environment_id. /agent/v1 only.
87379
- */
87380
- computers?: {
87381
- /**
87382
- * Template of the computer the agent's Computer starts on; must be the template of one allowed entry.
87383
- */
87384
- default: string;
87385
- /**
87386
- * Computers the agent may switch to with the computer tool's resize, in the order they are listed.
87387
- */
87388
- allowed: Array<{
87389
- /**
87390
- * Sandbox template name from sandbox templates.list, such as base, base-large or data. light returns 400. A template appears once.
87391
- */
87392
- template: string;
87393
- /**
87394
- * Display name people and the model use, such as Base or Large; unique within the list ignoring case.
87395
- */
87396
- name: string;
87397
- }>;
87398
- };
87399
88552
  /**
87400
88553
  * Praxis extension: MA only has session-scoped temporary containers and memory_stores, not durable browsable computers. computer_id selects a tenant-owned active computer. Session selection overrides the agent default; a sandbox environment_id and computer_id cannot be combined. Omitted when no computer is selected.
87401
88554
  */
@@ -87781,7 +88934,7 @@ export type AgentsUpdateResponses = {
87781
88934
  */
87782
88935
  environment_id?: string | null;
87783
88936
  /**
87784
- * 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.
87785
88938
  */
87786
88939
  vault_ids?: Array<string>;
87787
88940
  /**
@@ -88407,7 +89560,7 @@ export type AgentsArchiveResponses = {
88407
89560
  */
88408
89561
  environment_id?: string | null;
88409
89562
  /**
88410
- * 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.
88411
89564
  */
88412
89565
  vault_ids?: Array<string>;
88413
89566
  /**
@@ -88684,6 +89837,15 @@ export type AgentsVersionsListResponses = {
88684
89837
  name: string;
88685
89838
  }>;
88686
89839
  };
89840
+ /**
89841
+ * ADR-205: which browser the agent drives. {byob: byb_…} names one of your organization's paired browsers (browser.byob.browsers.list), which the agent then drives through connect() instead of a cloud browser; null or absent is the cloud browser. The browser must belong to your organization (otherwise 400) and must grant this agent before a session can open it. Omit on update to keep it, send an object to replace it, or null to go back to the cloud browser. /agent/v1 only.
89842
+ */
89843
+ browser?: {
89844
+ /**
89845
+ * A paired browser's id (byb_ and 26 lowercase hex characters), from browser.byob.browsers.list.
89846
+ */
89847
+ byob: string;
89848
+ } | null;
88687
89849
  /**
88688
89850
  * Praxis extension: MA only has session-scoped temporary containers and memory_stores, not durable browsable computers. computer_id selects a tenant-owned active computer. Session selection overrides the agent default; a sandbox environment_id and computer_id cannot be combined. Omitted when no computer is selected.
88689
89851
  */
@@ -89069,7 +90231,7 @@ export type AgentsVersionsListResponses = {
89069
90231
  */
89070
90232
  environment_id?: string | null;
89071
90233
  /**
89072
- * 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.
89073
90235
  */
89074
90236
  vault_ids?: Array<string>;
89075
90237
  /**
@@ -98929,7 +100091,7 @@ export type AutomationRunsListData = {
98929
100091
  */
98930
100092
  channel?: Array<'console' | 'api' | 'internal' | 'run' | 'trigger'>;
98931
100093
  /**
98932
- * 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.
98933
100095
  */
98934
100096
  initiator_type?: Array<'user' | 'api_key' | 'agent' | 'trigger'>;
98935
100097
  /**
@@ -113477,7 +114639,7 @@ export type DevopsUnitsPushErrors = {
113477
114639
  */
113478
114640
  404: DevopsDevOpsError;
113479
114641
  /**
113480
- * 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.
113481
114643
  */
113482
114644
  409: DevopsDevOpsError;
113483
114645
  /**
@@ -118190,7 +119352,7 @@ export type MediaCreateMaterialData = {
118190
119352
  /**
118191
119353
  * Kind of element; it decides which body fields are accepted. voice materials have their own door and are refused here.
118192
119354
  */
118193
- material_type: MediaElementType;
119355
+ material_type: MediaJsonMaterialType;
118194
119356
  /**
118195
119357
  * Display name used in the library and in the guidance appended to prompts, such as 品牌「name」. 1 to 120 characters.
118196
119358
  */
@@ -118198,7 +119360,7 @@ export type MediaCreateMaterialData = {
118198
119360
  /**
118199
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.
118200
119362
  */
118201
- body: MediaElementBody;
119363
+ body: MediaJsonMaterialBody;
118202
119364
  /**
118203
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.
118204
119366
  */
@@ -118356,7 +119518,7 @@ export type MediaUpdateMaterialData = {
118356
119518
  /**
118357
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.
118358
119520
  */
118359
- body?: MediaElementBody;
119521
+ body?: MediaJsonMaterialBody;
118360
119522
  /**
118361
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.
118362
119524
  */
@@ -121192,7 +122354,7 @@ export type GetSandboxV1SandboxesResponses = {
121192
122354
  };
121193
122355
  export type GetSandboxV1SandboxesResponse = GetSandboxV1SandboxesResponses[keyof GetSandboxV1SandboxesResponses];
121194
122356
  export type PostSandboxV1SandboxesData = {
121195
- body: SandboxNewSandboxV2;
122357
+ body: SandboxNewSandboxV2Writable;
121196
122358
  path?: never;
121197
122359
  query?: never;
121198
122360
  url: '/sandbox/v1/sandboxes';