@deepraxis/sdk 0.2.0-dev.72cb989 → 0.2.0-dev.78094d7

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
  /**
@@ -21269,7 +21437,7 @@ export type MediaLibrary = {
21269
21437
  };
21270
21438
  export type MediaMediaError = {
21271
21439
  error: {
21272
- code: 'LIBRARY_NOT_FOUND' | 'ASSET_NOT_FOUND' | 'JOB_NOT_FOUND' | 'UNDERSTANDING_NOT_FOUND' | 'ASSET_VERSION_CHANGED' | 'LIBRARY_INVALID_STATE' | 'INVALID_PARAMS' | 'INVALID_EXPRESSION' | 'UNSUPPORTED' | 'NOT_IMPLEMENTED' | 'FILE_TOO_LARGE' | 'FILE_EMPTY' | 'FILE_NOT_READY' | 'UNSUPPORTED_MEDIA' | 'FETCH_FAILED' | 'LIMIT_EXCEEDED' | 'CHUNK_INVALID' | 'RATE_LIMITED' | 'CAPACITY' | 'UPSTREAM_FAILED' | 'CONTENT_REJECTED' | 'GENERATION_FAILED' | 'BINDING_READ_ONLY' | 'OPERATION_NOT_SUPPORTED' | 'MODEL_PENDING' | 'REFERENCE_TYPE_MISMATCH' | 'CONSENT_REQUIRED' | 'LIBRARY_IS_DEFAULT' | 'JOB_INVALID_STATE' | 'VOICE_TRAINING' | 'INSUFFICIENT_BALANCE';
21440
+ code: 'LIBRARY_NOT_FOUND' | 'ASSET_NOT_FOUND' | 'WORK_NOT_FOUND' | 'REVISION_CONFLICT' | 'JOB_NOT_FOUND' | 'UNDERSTANDING_NOT_FOUND' | 'ASSET_VERSION_CHANGED' | 'LIBRARY_INVALID_STATE' | 'INVALID_PARAMS' | 'INVALID_EXPRESSION' | 'UNSUPPORTED' | 'NOT_IMPLEMENTED' | 'FILE_TOO_LARGE' | 'FILE_EMPTY' | 'FILE_NOT_READY' | 'UNSUPPORTED_MEDIA' | 'FETCH_FAILED' | 'LIMIT_EXCEEDED' | 'CHUNK_INVALID' | 'RATE_LIMITED' | 'CAPACITY' | 'UPSTREAM_FAILED' | 'CONTENT_REJECTED' | 'GENERATION_FAILED' | 'BINDING_READ_ONLY' | 'OPERATION_NOT_SUPPORTED' | 'MODEL_PENDING' | 'REFERENCE_TYPE_MISMATCH' | 'CONSENT_REQUIRED' | 'LIBRARY_IS_DEFAULT' | 'JOB_INVALID_STATE' | 'VOICE_TRAINING' | 'INSUFFICIENT_BALANCE';
21273
21441
  message: string;
21274
21442
  details: string | null;
21275
21443
  };
@@ -22798,6 +22966,107 @@ export type MediaVoiceDesignCreateInput = {
22798
22966
  */
22799
22967
  description?: string;
22800
22968
  };
22969
+ /**
22970
+ * A work: an object of the library above its assets that orders references to them and adds a title and text. It copies no file and changes no asset.
22971
+ */
22972
+ export type MediaWork = {
22973
+ /**
22974
+ * Always work.
22975
+ */
22976
+ object: 'work';
22977
+ /**
22978
+ * Work id (wrk_…).
22979
+ */
22980
+ id: string;
22981
+ /**
22982
+ * Library the work belongs to.
22983
+ */
22984
+ library_id: MediaLibraryId;
22985
+ /**
22986
+ * The work’s kind.
22987
+ */
22988
+ kind: MediaWorkKind;
22989
+ /**
22990
+ * The title, copied from body.title.
22991
+ */
22992
+ title: string;
22993
+ /**
22994
+ * Groups the platform versions of one story; null when unset.
22995
+ */
22996
+ series: string | null;
22997
+ /**
22998
+ * The kind’s body as stored.
22999
+ */
23000
+ body: MediaWorkBody;
23001
+ /**
23002
+ * Caller data such as source, published links and numbers; changed with a JSON Merge Patch.
23003
+ */
23004
+ custom: MediaWorkCustom;
23005
+ /**
23006
+ * Asset ids the body names that have been deleted since; the body keeps them in place and the Console draws a placeholder there.
23007
+ */
23008
+ missing: Array<string>;
23009
+ /**
23010
+ * Bumped by every change; send it back as if_revision to update only an unchanged work.
23011
+ */
23012
+ revision: number;
23013
+ /**
23014
+ * Who created the work: human:<user id>, agent:<agent id> or system.
23015
+ */
23016
+ created_by: string;
23017
+ /**
23018
+ * When the work was created.
23019
+ */
23020
+ created_at: MediaIsoTimestamp;
23021
+ /**
23022
+ * When the work last changed.
23023
+ */
23024
+ updated_at: MediaIsoTimestamp;
23025
+ /**
23026
+ * Only with expand=assets: every live referenced asset by id, with its URLs and size.
23027
+ */
23028
+ assets?: {
23029
+ [key: string]: MediaWorkAsset;
23030
+ };
23031
+ };
23032
+ /**
23033
+ * Kind of work: gallery (图文), article (长文) or product_listing (商品图组). short_video is reserved.
23034
+ */
23035
+ export type MediaWorkKind = 'gallery' | 'article' | 'product_listing' | 'blocks';
23036
+ export type MediaWorkBody = MediaGalleryBody | MediaArticleBody | MediaProductListingBody | MediaBlocksBody;
23037
+ export type MediaWorkCustom = {
23038
+ [key: string]: unknown;
23039
+ };
23040
+ /**
23041
+ * A page of work summaries.
23042
+ */
23043
+ export type MediaWorkPage = {
23044
+ /**
23045
+ * Works in this page, most recently changed first.
23046
+ */
23047
+ data: Array<MediaWorkSummary>;
23048
+ /**
23049
+ * Cursor for the next page, or null when there are no more works.
23050
+ */
23051
+ next_cursor: string | null;
23052
+ };
23053
+ /**
23054
+ * The answer to deleting a work.
23055
+ */
23056
+ export type MediaDeletedWork = {
23057
+ /**
23058
+ * Id of the deleted work.
23059
+ */
23060
+ id: string;
23061
+ /**
23062
+ * Always work.
23063
+ */
23064
+ object: 'work';
23065
+ /**
23066
+ * Always true: the work is deleted; every asset it named is unchanged.
23067
+ */
23068
+ deleted: true;
23069
+ };
22801
23070
  /**
22802
23071
  * One page of type registrations; types are few enough that this face returns them in a single page.
22803
23072
  */
@@ -34932,6 +35201,14 @@ export type SandboxSandboxNetworkConfig = {
34932
35201
  rules?: {
34933
35202
  [key: string]: Array<SandboxSandboxNetworkRule>;
34934
35203
  };
35204
+ /**
35205
+ * 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.
35206
+ */
35207
+ staticEgressIp?: boolean;
35208
+ /**
35209
+ * 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.
35210
+ */
35211
+ readonly egressIp?: string;
34935
35212
  };
34936
35213
  /**
34937
35214
  * Sandbox lifecycle policy returned by sandbox info.
@@ -36642,11 +36919,11 @@ export type AutomationActionHost = 'builtin' | 'isolate' | 'sandbox';
36642
36919
  */
36643
36920
  export type AutomationSubject = {
36644
36921
  /**
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.
36922
+ * 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
36923
  */
36647
36924
  type: 'user' | 'api_key' | 'agent' | 'run' | 'trigger';
36648
36925
  /**
36649
- * Principal identifier whose meaning follows type: a user, API key, agent, run or trigger id. Treat it as an opaque string.
36926
+ * Principal identifier whose meaning follows type: a user, API key, agent, run, trigger or application id. Treat it as an opaque string.
36650
36927
  */
36651
36928
  id: string;
36652
36929
  };
@@ -40205,6 +40482,10 @@ export type DevopsUnitGit = {
40205
40482
  * The ref holding the unit's work in progress, or null when none was recorded.
40206
40483
  */
40207
40484
  wipRef: string | null;
40485
+ /**
40486
+ * 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.
40487
+ */
40488
+ remoteHead?: string;
40208
40489
  /**
40209
40490
  * RFC 3339 UTC time these facts were observed, or null before the first observation.
40210
40491
  */
@@ -41374,7 +41655,7 @@ export type MediaGenerationType = 'image' | 'video' | 'speech' | 'music' | 'soun
41374
41655
  * Edit operations: the change this step applied to its parent asset.
41375
41656
  */
41376
41657
  export type MediaGenerationOperation = 'generate' | 'clone' | 'tag' | 'untag' | 'set_context' | 'move' | 'delete' | 'reprocess' | 'variations' | 'upscale' | 'outpaint' | 'inpaint' | 'erase' | 'replace_object' | 'recolor' | 'remove_background' | 'replace_background' | 'to_video' | 'extend' | 'edit' | 'lip_sync' | 'frame' | 'to_gif' | 'voice_change' | 'resynthesize';
41377
- export type MediaMediaErrorCode = 'LIBRARY_NOT_FOUND' | 'ASSET_NOT_FOUND' | 'JOB_NOT_FOUND' | 'UNDERSTANDING_NOT_FOUND' | 'ASSET_VERSION_CHANGED' | 'LIBRARY_INVALID_STATE' | 'INVALID_PARAMS' | 'INVALID_EXPRESSION' | 'UNSUPPORTED' | 'NOT_IMPLEMENTED' | 'FILE_TOO_LARGE' | 'FILE_EMPTY' | 'FILE_NOT_READY' | 'UNSUPPORTED_MEDIA' | 'FETCH_FAILED' | 'LIMIT_EXCEEDED' | 'CHUNK_INVALID' | 'RATE_LIMITED' | 'CAPACITY' | 'UPSTREAM_FAILED' | 'CONTENT_REJECTED' | 'GENERATION_FAILED' | 'BINDING_READ_ONLY' | 'OPERATION_NOT_SUPPORTED' | 'MODEL_PENDING' | 'REFERENCE_TYPE_MISMATCH' | 'CONSENT_REQUIRED' | 'LIBRARY_IS_DEFAULT' | 'JOB_INVALID_STATE' | 'VOICE_TRAINING' | 'INSUFFICIENT_BALANCE';
41658
+ export type MediaMediaErrorCode = 'LIBRARY_NOT_FOUND' | 'ASSET_NOT_FOUND' | 'WORK_NOT_FOUND' | 'REVISION_CONFLICT' | 'JOB_NOT_FOUND' | 'UNDERSTANDING_NOT_FOUND' | 'ASSET_VERSION_CHANGED' | 'LIBRARY_INVALID_STATE' | 'INVALID_PARAMS' | 'INVALID_EXPRESSION' | 'UNSUPPORTED' | 'NOT_IMPLEMENTED' | 'FILE_TOO_LARGE' | 'FILE_EMPTY' | 'FILE_NOT_READY' | 'UNSUPPORTED_MEDIA' | 'FETCH_FAILED' | 'LIMIT_EXCEEDED' | 'CHUNK_INVALID' | 'RATE_LIMITED' | 'CAPACITY' | 'UPSTREAM_FAILED' | 'CONTENT_REJECTED' | 'GENERATION_FAILED' | 'BINDING_READ_ONLY' | 'OPERATION_NOT_SUPPORTED' | 'MODEL_PENDING' | 'REFERENCE_TYPE_MISMATCH' | 'CONSENT_REQUIRED' | 'LIBRARY_IS_DEFAULT' | 'JOB_INVALID_STATE' | 'VOICE_TRAINING' | 'INSUFFICIENT_BALANCE';
41378
41659
  /**
41379
41660
  * State of a requested generation output.
41380
41661
  */
@@ -41720,6 +42001,188 @@ export type MediaHlsRendition = {
41720
42001
  state: MediaHlsRenditionState;
41721
42002
  };
41722
42003
  export type MediaVoiceConsentId = string;
42004
+ /**
42005
+ * One referenced asset as expand=assets returns it: enough to draw it without another call.
42006
+ */
42007
+ export type MediaWorkAsset = {
42008
+ /**
42009
+ * The asset’s material type, such as image or video.
42010
+ */
42011
+ type: MediaMaterialType;
42012
+ /**
42013
+ * Short-lived delivery URL of the asset.
42014
+ */
42015
+ url: string;
42016
+ /**
42017
+ * Short-lived URL of a small picture: the poster of a video, otherwise the asset itself.
42018
+ */
42019
+ thumbnail_url: string;
42020
+ /**
42021
+ * Width in pixels when known.
42022
+ */
42023
+ width?: number;
42024
+ /**
42025
+ * Height in pixels when known.
42026
+ */
42027
+ height?: number;
42028
+ /**
42029
+ * The asset’s display name.
42030
+ */
42031
+ display_name: string;
42032
+ };
42033
+ /**
42034
+ * Body of a gallery (图文). Order is the order of items.
42035
+ */
42036
+ export type MediaGalleryBody = {
42037
+ /**
42038
+ * Title, 1 to 100 characters.
42039
+ */
42040
+ title: string;
42041
+ /**
42042
+ * Body text, at most 10000 characters.
42043
+ */
42044
+ text?: string;
42045
+ /**
42046
+ * Topics without the # sign, at most 30 of up to 40 characters.
42047
+ */
42048
+ topics?: Array<string>;
42049
+ /**
42050
+ * Optional cover: an image or sticker asset of this library; without it the first picture is the cover.
42051
+ */
42052
+ cover?: string;
42053
+ /**
42054
+ * Pictures, videos and text segments in order, 1 to 100 entries with at least one asset; each asset appears once.
42055
+ */
42056
+ items: Array<MediaGalleryItem>;
42057
+ /**
42058
+ * Display style; defaults to xiaohongshu in the Console.
42059
+ */
42060
+ style?: MediaWorkStyle;
42061
+ };
42062
+ /**
42063
+ * Body of an article (长文). Inline images live in the Markdown as ![alt](asset:<asset_id>) and sit where they are written.
42064
+ */
42065
+ export type MediaArticleBody = {
42066
+ /**
42067
+ * Title, 1 to 200 characters.
42068
+ */
42069
+ title: string;
42070
+ /**
42071
+ * Optional summary or digest, at most 500 characters.
42072
+ */
42073
+ summary?: string;
42074
+ /**
42075
+ * Optional author name, at most 60 characters.
42076
+ */
42077
+ author?: string;
42078
+ /**
42079
+ * The article in Markdown, 1 to 100000 characters; every asset:<asset_id> image must be an image or sticker of this library.
42080
+ */
42081
+ body: string;
42082
+ /**
42083
+ * Optional cover: an image or sticker asset of this library.
42084
+ */
42085
+ cover?: string;
42086
+ /**
42087
+ * Display style; defaults to wechat_mp in the Console.
42088
+ */
42089
+ style?: MediaWorkStyle;
42090
+ };
42091
+ /**
42092
+ * Body of a product listing (商品图组). Images and copy only: price, stock and other business data are managed outside the library and are refused.
42093
+ */
42094
+ export type MediaProductListingBody = {
42095
+ /**
42096
+ * Listing title, 1 to 200 characters.
42097
+ */
42098
+ title: string;
42099
+ /**
42100
+ * Selling points in order, at most 10 of up to 100 characters.
42101
+ */
42102
+ selling_points?: Array<string>;
42103
+ /**
42104
+ * Parameter rows in order, at most 50.
42105
+ */
42106
+ attributes?: Array<MediaListingAttribute>;
42107
+ /**
42108
+ * Main images in order, 1 to 20 image or sticker assets of this library.
42109
+ */
42110
+ main: Array<string>;
42111
+ /**
42112
+ * Detail images in order, at most 100 image or sticker assets of this library.
42113
+ */
42114
+ detail?: Array<string>;
42115
+ /**
42116
+ * SKUs in order, at most 200.
42117
+ */
42118
+ skus?: Array<MediaListingSku>;
42119
+ /**
42120
+ * Optional product element (material_type product) this listing shows.
42121
+ */
42122
+ product?: string;
42123
+ /**
42124
+ * Display style; defaults to generic in the Console.
42125
+ */
42126
+ style?: MediaWorkStyle;
42127
+ };
42128
+ /**
42129
+ * Body of a general work (通用作品) in Editor.js saved-data format. Business attributes go in the work’s custom, not in a block. The work’s title is the first header block’s text, else the first paragraph’s.
42130
+ */
42131
+ export type MediaBlocksBody = {
42132
+ /**
42133
+ * Optional Editor.js save time in milliseconds, kept as sent.
42134
+ */
42135
+ time?: number;
42136
+ /**
42137
+ * The blocks in order, 1 to 500.
42138
+ */
42139
+ blocks: Array<MediaEditorBlock>;
42140
+ /**
42141
+ * Optional Editor.js version string, kept as sent.
42142
+ */
42143
+ version?: string;
42144
+ };
42145
+ /**
42146
+ * One work in a list.
42147
+ */
42148
+ export type MediaWorkSummary = {
42149
+ /**
42150
+ * Always work.
42151
+ */
42152
+ object: 'work';
42153
+ /**
42154
+ * Work id (wrk_…).
42155
+ */
42156
+ id: string;
42157
+ /**
42158
+ * The work’s kind.
42159
+ */
42160
+ kind: MediaWorkKind;
42161
+ /**
42162
+ * The work’s title.
42163
+ */
42164
+ title: string;
42165
+ /**
42166
+ * The work’s series, or null.
42167
+ */
42168
+ series: string | null;
42169
+ /**
42170
+ * Short-lived URL of the cover picture, or null when it is missing.
42171
+ */
42172
+ cover_url: string | null;
42173
+ /**
42174
+ * How many distinct assets the body orders, cover and product element excluded.
42175
+ */
42176
+ item_count: number;
42177
+ /**
42178
+ * How many referenced assets have been deleted since.
42179
+ */
42180
+ missing_count: number;
42181
+ /**
42182
+ * When the work last changed.
42183
+ */
42184
+ updated_at: MediaIsoTimestamp;
42185
+ };
41723
42186
  /**
41724
42187
  * A kind of entity the graph accepts, for example a file or a customer.
41725
42188
  */
@@ -48068,7 +48531,7 @@ export type DevopsPlannedSkip = {
48068
48531
  /**
48069
48532
  * Why it is left out, which is what tells a deliberate skip apart from an oversight.
48070
48533
  */
48071
- reason: 'unchanged' | 'newer_checkpoint' | 'not_requested' | 'callee_excluded' | 'artifact_identical';
48534
+ reason: 'unchanged' | 'newer_checkpoint' | 'not_requested' | 'callee_excluded' | 'not_deployed_upstream' | 'artifact_identical';
48072
48535
  };
48073
48536
  /**
48074
48537
  * The migrations one target has pending, as the plan found them.
@@ -48704,7 +49167,7 @@ export type MediaSemanticMatch = {
48704
49167
  /**
48705
49168
  * Type of change recorded for a library, asset, processing task, search index or batch.
48706
49169
  */
48707
- 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';
49170
+ export type MediaMediaEventType = 'library.status_provisioning' | 'library.status_active' | 'library.status_deleting' | 'library.status_deleted' | 'library.status_failed' | 'library.restored' | 'library.updated' | 'asset.created' | 'asset.updated' | 'asset.overwritten' | 'asset.renamed' | 'asset.deleted' | 'understanding.status_ready' | 'understanding.status_failed' | 'understanding.status_unsupported' | 'search.indexed' | 'batch.succeeded' | 'batch.failed' | 'library.understanding_drained' | 'batch.created' | 'hls.requested' | 'generation.created' | 'generation.succeeded' | 'generation.failed' | 'generation.cancelled' | 'work.created' | 'work.updated' | 'work.deleted';
48708
49171
  /**
48709
49172
  * One picture an element names, with the word the caller uses for that view.
48710
49173
  */
@@ -48800,6 +49263,75 @@ export type MediaGenerationCapabilityModel = {
48800
49263
  * Readiness of one rung or of the ladder it is part of.
48801
49264
  */
48802
49265
  export type MediaHlsRenditionState = 'processing' | 'ready' | 'failed';
49266
+ /**
49267
+ * One position of a gallery: a picture or video of this library ({asset_id, caption?}) or a text segment between pictures ({text}).
49268
+ */
49269
+ export type MediaGalleryItem = {
49270
+ /**
49271
+ * An image, sticker or video asset of this library; its position in items is its position in the gallery.
49272
+ */
49273
+ asset_id: string;
49274
+ /**
49275
+ * Optional caption for this picture, at most 1000 characters.
49276
+ */
49277
+ caption?: string;
49278
+ } | {
49279
+ /**
49280
+ * A text segment shown between pictures, at most 1000 characters.
49281
+ */
49282
+ text: string;
49283
+ };
49284
+ /**
49285
+ * Which platform look the Console draws the work in; a display hint, never a platform check.
49286
+ */
49287
+ export type MediaWorkStyle = 'xiaohongshu' | 'wechat_mp' | 'jike' | 'generic';
49288
+ /**
49289
+ * One parameter row of a listing.
49290
+ */
49291
+ export type MediaListingAttribute = {
49292
+ /**
49293
+ * Parameter name such as 容量, at most 40 characters.
49294
+ */
49295
+ name: string;
49296
+ /**
49297
+ * Parameter value such as 500ml, at most 200 characters.
49298
+ */
49299
+ value: string;
49300
+ };
49301
+ /**
49302
+ * One SKU of a listing.
49303
+ */
49304
+ export type MediaListingSku = {
49305
+ /**
49306
+ * The SKU’s value on each spec axis, such as {"颜色":"白"}; 1 to 5 axes; the keys are kept as written.
49307
+ */
49308
+ spec: {
49309
+ [key: string]: string;
49310
+ };
49311
+ /**
49312
+ * Optional picture of this SKU: an image or sticker asset of this library.
49313
+ */
49314
+ asset_id?: string;
49315
+ };
49316
+ /**
49317
+ * One Editor.js block, as Editor.js saves it. type is one of the official blocks: paragraph {text}, header {text, level 1–6}, list {style ordered|unordered|checklist, meta, items[{content, meta, items}]}, quote {text, caption, alignment left|center}, delimiter {}, image, table {withHeadings, stretched, content string[][]}, checklist {items[{text, checked}]}, warning {title, message}, embed {service, source, embed, width, height, caption}. The one departure from Editor.js: an image block is {asset_id, caption, withBorder, withBackground, stretched} and names an image or sticker asset of this library instead of file.url. Text keeps Editor.js inline HTML. Unknown types and fields are refused.
49318
+ */
49319
+ export type MediaEditorBlock = {
49320
+ /**
49321
+ * Block id, 1–64 letters, digits, _ or -, unique in the body.
49322
+ */
49323
+ id: string;
49324
+ /**
49325
+ * The official Editor.js block type.
49326
+ */
49327
+ type: 'paragraph' | 'header' | 'list' | 'quote' | 'delimiter' | 'image' | 'table' | 'checklist' | 'warning' | 'embed';
49328
+ /**
49329
+ * The block’s data in that type’s Editor.js shape.
49330
+ */
49331
+ data: {
49332
+ [key: string]: unknown;
49333
+ };
49334
+ };
48803
49335
  /**
48804
49336
  * Auto-resume enabled flag for paused sandboxes. Default false.
48805
49337
  */
@@ -50923,6 +51455,58 @@ export type UpdateMediaPipelineRequestWritable = {
50923
51455
  * Models to use for completion
50924
51456
  */
50925
51457
  export type OpenaiChatModelNamesWritable = Array<OpenaiModelName & unknown>;
51458
+ export type SandboxSandboxDetailWritable = {
51459
+ /**
51460
+ * Identifier of the template from which is the sandbox created
51461
+ */
51462
+ templateID: string;
51463
+ /**
51464
+ * Alias of the template
51465
+ */
51466
+ alias?: string;
51467
+ /**
51468
+ * Identifier of the sandbox
51469
+ */
51470
+ sandboxID: string;
51471
+ /**
51472
+ * Identifier of the client
51473
+ *
51474
+ * @deprecated
51475
+ */
51476
+ clientID: string;
51477
+ /**
51478
+ * Time when the sandbox was started
51479
+ */
51480
+ startedAt: string;
51481
+ /**
51482
+ * Time when the sandbox will expire
51483
+ */
51484
+ endAt: string;
51485
+ envdVersion: SandboxEnvdVersion;
51486
+ /**
51487
+ * Access token used for envd communication
51488
+ */
51489
+ envdAccessToken?: string;
51490
+ /**
51491
+ * Whether internet access was explicitly enabled or disabled for the sandbox. Null means it was not explicitly set.
51492
+ */
51493
+ allowInternetAccess?: boolean;
51494
+ /**
51495
+ * Base domain where the sandbox traffic is accessible
51496
+ */
51497
+ domain?: string;
51498
+ cpuCount: SandboxCpuCount;
51499
+ memoryMB: SandboxMemoryMb;
51500
+ diskSizeMB: SandboxDiskSizeMb;
51501
+ metadata?: SandboxSandboxMetadata;
51502
+ state: SandboxSandboxState;
51503
+ network?: SandboxSandboxNetworkConfigWritable;
51504
+ lifecycle?: SandboxSandboxLifecycle;
51505
+ /**
51506
+ * Volumes mounted into the sandbox.
51507
+ */
51508
+ volumeMounts?: Array<SandboxSandboxVolumeMount>;
51509
+ };
50926
51510
  /**
50927
51511
  * Free-form string key/value pairs stored with the session, changed through sessions.update patch semantics.
50928
51512
  */
@@ -51502,6 +52086,94 @@ export type MediaSemanticSearchResultWritable = {
51502
52086
  */
51503
52087
  not_ready_excluded: number;
51504
52088
  };
52089
+ /**
52090
+ * Sandbox creation request. All system communication with the sandbox is always secured; the template's envd version must support secured access.
52091
+ */
52092
+ export type SandboxNewSandboxV2Writable = {
52093
+ /**
52094
+ * Identifier of the required template
52095
+ */
52096
+ templateID: string;
52097
+ /**
52098
+ * Lifetime of the new sandbox in seconds. Defaults to 300 seconds when omitted.
52099
+ */
52100
+ timeout?: number;
52101
+ /**
52102
+ * 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.
52103
+ */
52104
+ autoPause?: boolean;
52105
+ /**
52106
+ * 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).
52107
+ */
52108
+ autoPauseMemory?: boolean;
52109
+ autoResume?: SandboxSandboxAutoResumeConfig;
52110
+ /**
52111
+ * 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.
52112
+ */
52113
+ allow_internet_access?: boolean;
52114
+ network?: SandboxSandboxNetworkConfigWritable;
52115
+ metadata?: SandboxSandboxMetadata;
52116
+ envVars?: SandboxEnvVars;
52117
+ mcp?: SandboxMcp;
52118
+ iam?: SandboxSandboxIam;
52119
+ /**
52120
+ * Volumes to mount into the sandbox, each with the volume name and the path inside the sandbox.
52121
+ */
52122
+ volumeMounts?: Array<SandboxSandboxVolumeMount>;
52123
+ /**
52124
+ * 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.
52125
+ */
52126
+ ephemeral?: boolean;
52127
+ /**
52128
+ * 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.
52129
+ */
52130
+ size?: string;
52131
+ /**
52132
+ * Own face: a display name for the sandbox, 1 to 64 characters. Omitted, one is generated from the template.
52133
+ */
52134
+ name?: string;
52135
+ /**
52136
+ * 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.
52137
+ */
52138
+ waitForReady?: boolean;
52139
+ /**
52140
+ * Own face: what happens at the timeout. pause needs ephemeral: false; must agree with autoPause when both are sent.
52141
+ */
52142
+ onExpire?: 'kill' | 'pause';
52143
+ /**
52144
+ * Own face, persistent sandboxes only: pause after this many milliseconds without activity; null turns the idle pause off.
52145
+ */
52146
+ idleTimeout?: number;
52147
+ /**
52148
+ * 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.
52149
+ */
52150
+ idleActivity?: 'traffic' | 'caller';
52151
+ /**
52152
+ * 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.
52153
+ */
52154
+ sku?: string;
52155
+ /**
52156
+ * 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.
52157
+ */
52158
+ kind?: 'run' | 'job' | 'batch' | 'computer' | 'compat';
52159
+ /**
52160
+ * 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.
52161
+ */
52162
+ interruptible?: boolean;
52163
+ /**
52164
+ * 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.
52165
+ */
52166
+ onLoss?: 'fail' | 'rebuild';
52167
+ /**
52168
+ * 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.
52169
+ */
52170
+ outputs?: Array<{
52171
+ /**
52172
+ * Absolute path of a directory or file inside the sandbox.
52173
+ */
52174
+ path: string;
52175
+ }>;
52176
+ };
51505
52177
  /**
51506
52178
  * Arguments the model passed to the tool.
51507
52179
  */
@@ -51580,6 +52252,43 @@ export type AnthropicAnonymous204Writable = {
51580
52252
  export type AnthropicAnonymous206Writable = {
51581
52253
  [key: string]: unknown;
51582
52254
  };
52255
+ /**
52256
+ * Network policy of the sandbox: public access, egress allow and deny lists and proxy.
52257
+ */
52258
+ export type SandboxSandboxNetworkConfigWritable = {
52259
+ /**
52260
+ * Specify if the sandbox URLs should be accessible only with authentication.
52261
+ */
52262
+ allowPublicTraffic?: boolean;
52263
+ /**
52264
+ * 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.
52265
+ */
52266
+ allowOut?: Array<string>;
52267
+ /**
52268
+ * List of denied CIDR blocks or IP addresses for egress traffic. Domain names are not supported for deny rules.
52269
+ */
52270
+ denyOut?: Array<string>;
52271
+ egressProxy?: SandboxSandboxEgressProxyConfig;
52272
+ /**
52273
+ * Specify host mask which will be used for all sandbox requests
52274
+ */
52275
+ maskRequestHost?: string;
52276
+ /**
52277
+ * Unlike E2B, network.httpsPorts is rejected; omit it when creating a sandbox.
52278
+ */
52279
+ httpsPorts?: Array<number>;
52280
+ /**
52281
+ * 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.
52282
+ *
52283
+ */
52284
+ rules?: {
52285
+ [key: string]: Array<SandboxSandboxNetworkRule>;
52286
+ };
52287
+ /**
52288
+ * 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.
52289
+ */
52290
+ staticEgressIp?: boolean;
52291
+ };
51583
52292
  /**
51584
52293
  * Free-form string key/value pairs.
51585
52294
  */
@@ -55681,7 +56390,7 @@ export type ApplyAgentVersionResponses = {
55681
56390
  */
55682
56391
  environment_id?: string | null;
55683
56392
  /**
55684
- * 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.
56393
+ * 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.
55685
56394
  */
55686
56395
  vault_ids?: Array<string>;
55687
56396
  /**
@@ -56941,7 +57650,7 @@ export type UnarchiveAgentResponses = {
56941
57650
  */
56942
57651
  environment_id?: string | null;
56943
57652
  /**
56944
- * 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.
57653
+ * 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.
56945
57654
  */
56946
57655
  vault_ids?: Array<string>;
56947
57656
  /**
@@ -59410,9 +60119,13 @@ export type ComputersRetrieveResponse = ComputersRetrieveResponses[keyof Compute
59410
60119
  export type ComputersUpdateData = {
59411
60120
  body: {
59412
60121
  /**
59413
- * Name of the entry or object.
60122
+ * New display name, 1 to 255 characters after trimming. Omit to keep the current name.
59414
60123
  */
59415
- name: string;
60124
+ name?: string;
60125
+ /**
60126
+ * 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.
60127
+ */
60128
+ environment_id?: string | null;
59416
60129
  };
59417
60130
  path: {
59418
60131
  /**
@@ -61582,7 +62295,7 @@ export type ComputersFilesConvertResponse = ComputersFilesConvertResponses[keyof
61582
62295
  export type ConnectComputerData = {
61583
62296
  body?: {
61584
62297
  /**
61585
- * 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.
62298
+ * Accepted for compatibility and ignored: light and heavy both reach the same machine, because a Computer is one machine. Omit it.
61586
62299
  */
61587
62300
  need?: 'light' | 'heavy';
61588
62301
  };
@@ -69186,7 +69899,7 @@ export type BrowserListSessionsErrors = {
69186
69899
  */
69187
69900
  402: BrowserError;
69188
69901
  /**
69189
- * PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
69902
+ * PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
69190
69903
  */
69191
69904
  403: BrowserError;
69192
69905
  /**
@@ -69267,7 +69980,7 @@ export type BrowserCreateSessionErrors = {
69267
69980
  */
69268
69981
  402: BrowserError;
69269
69982
  /**
69270
- * PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
69983
+ * PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
69271
69984
  */
69272
69985
  403: BrowserError;
69273
69986
  /**
@@ -69353,7 +70066,7 @@ export type BrowserGetSessionErrors = {
69353
70066
  */
69354
70067
  402: BrowserError;
69355
70068
  /**
69356
- * PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
70069
+ * PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
69357
70070
  */
69358
70071
  403: BrowserError;
69359
70072
  /**
@@ -69435,7 +70148,7 @@ export type BrowserCloseSessionErrors = {
69435
70148
  */
69436
70149
  402: BrowserError;
69437
70150
  /**
69438
- * PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
70151
+ * PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
69439
70152
  */
69440
70153
  403: BrowserError;
69441
70154
  /**
@@ -69512,7 +70225,7 @@ export type BrowserGetDebugErrors = {
69512
70225
  */
69513
70226
  402: BrowserError;
69514
70227
  /**
69515
- * PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
70228
+ * PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
69516
70229
  */
69517
70230
  403: BrowserError;
69518
70231
  /**
@@ -69602,7 +70315,7 @@ export type BrowserListEventsErrors = {
69602
70315
  */
69603
70316
  402: BrowserError;
69604
70317
  /**
69605
- * PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
70318
+ * PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
69606
70319
  */
69607
70320
  403: BrowserError;
69608
70321
  /**
@@ -69885,7 +70598,7 @@ export type BrowserRunPageActionErrors = {
69885
70598
  */
69886
70599
  402: BrowserError;
69887
70600
  /**
69888
- * PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
70601
+ * PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
69889
70602
  */
69890
70603
  403: BrowserError;
69891
70604
  /**
@@ -70107,7 +70820,7 @@ export type BrowserRequestHandoffErrors = {
70107
70820
  */
70108
70821
  402: BrowserError;
70109
70822
  /**
70110
- * PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
70823
+ * PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
70111
70824
  */
70112
70825
  403: BrowserError;
70113
70826
  /**
@@ -70184,7 +70897,7 @@ export type BrowserCompleteHandoffErrors = {
70184
70897
  */
70185
70898
  402: BrowserError;
70186
70899
  /**
70187
- * PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
70900
+ * PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
70188
70901
  */
70189
70902
  403: BrowserError;
70190
70903
  /**
@@ -70270,7 +70983,7 @@ export type BrowserViewerHeartbeatErrors = {
70270
70983
  */
70271
70984
  402: BrowserError;
70272
70985
  /**
70273
- * PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
70986
+ * PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
70274
70987
  */
70275
70988
  403: BrowserError;
70276
70989
  /**
@@ -70352,7 +71065,7 @@ export type BrowserGetSessionFrameErrors = {
70352
71065
  */
70353
71066
  402: BrowserError;
70354
71067
  /**
70355
- * PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
71068
+ * PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
70356
71069
  */
70357
71070
  403: BrowserError;
70358
71071
  /**
@@ -70437,7 +71150,7 @@ export type BrowserListContextsErrors = {
70437
71150
  */
70438
71151
  402: BrowserError;
70439
71152
  /**
70440
- * PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
71153
+ * PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
70441
71154
  */
70442
71155
  403: BrowserError;
70443
71156
  /**
@@ -70514,6 +71227,36 @@ export type BrowserCreateContextData = {
70514
71227
  labels?: {
70515
71228
  [key: string]: string;
70516
71229
  };
71230
+ /**
71231
+ * 给登录态绑定一个固定的外部代理(如住宅 IP),使用这个登录态的会话没有写 proxies 时都经它出网,让同一账号始终从同一个出口地址出去。只存保管库引用(password_secret),不存密码;会话自己写了 proxies 时以会话的为准。需要组织已开通容器后端,否则返回 501 PROVIDER_UNSUPPORTED。
71232
+ */
71233
+ proxy?: {
71234
+ /**
71235
+ * 固定为 external:经一个你自己的外部 HTTP 代理出网。
71236
+ */
71237
+ type: 'external';
71238
+ /**
71239
+ * 代理地址,host:port 或 http://host:port;只支持 HTTP 代理,不接受 socks5:// 等协议,也不接受 localhost 和内网、链路本地地址。
71240
+ */
71241
+ server: string;
71242
+ /**
71243
+ * 代理用户名;有密码时才能填,填了就必须同时给出密码。
71244
+ */
71245
+ username?: string;
71246
+ /**
71247
+ * 必须用这种形式:引用保管库里的代理密码,只在连接这个代理的主机时兑换,不会交给网页。登录态里只存引用,传明文 password 返回 400 INVALID_PARAMS。
71248
+ */
71249
+ password_secret?: {
71250
+ /**
71251
+ * 保存代理密码的保管库 ID,以 vlt_ 开头。
71252
+ */
71253
+ vault_id: string;
71254
+ /**
71255
+ * 保管库中该密码的密钥 ID(不是密码本身)。
71256
+ */
71257
+ secret: string;
71258
+ };
71259
+ };
70517
71260
  };
70518
71261
  path?: never;
70519
71262
  query?: never;
@@ -70533,7 +71276,7 @@ export type BrowserCreateContextErrors = {
70533
71276
  */
70534
71277
  402: BrowserError;
70535
71278
  /**
70536
- * PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
71279
+ * PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
70537
71280
  */
70538
71281
  403: BrowserError;
70539
71282
  /**
@@ -70610,7 +71353,7 @@ export type BrowserDeleteContextErrors = {
70610
71353
  */
70611
71354
  402: BrowserError;
70612
71355
  /**
70613
- * PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
71356
+ * PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
70614
71357
  */
70615
71358
  403: BrowserError;
70616
71359
  /**
@@ -70692,7 +71435,7 @@ export type BrowserGetContextErrors = {
70692
71435
  */
70693
71436
  402: BrowserError;
70694
71437
  /**
70695
- * PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
71438
+ * PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
70696
71439
  */
70697
71440
  403: BrowserError;
70698
71441
  /**
@@ -70756,6 +71499,36 @@ export type BrowserUpdateContextData = {
70756
71499
  labels?: {
70757
71500
  [key: string]: string;
70758
71501
  };
71502
+ /**
71503
+ * 给登录态绑定一个固定的外部代理(如住宅 IP),使用这个登录态的会话没有写 proxies 时都经它出网,让同一账号始终从同一个出口地址出去。只存保管库引用(password_secret),不存密码;会话自己写了 proxies 时以会话的为准。需要组织已开通容器后端,否则返回 501 PROVIDER_UNSUPPORTED。 更新时传 null 解除绑定,省略则保留原绑定。
71504
+ */
71505
+ proxy?: {
71506
+ /**
71507
+ * 固定为 external:经一个你自己的外部 HTTP 代理出网。
71508
+ */
71509
+ type: 'external';
71510
+ /**
71511
+ * 代理地址,host:port 或 http://host:port;只支持 HTTP 代理,不接受 socks5:// 等协议,也不接受 localhost 和内网、链路本地地址。
71512
+ */
71513
+ server: string;
71514
+ /**
71515
+ * 代理用户名;有密码时才能填,填了就必须同时给出密码。
71516
+ */
71517
+ username?: string;
71518
+ /**
71519
+ * 必须用这种形式:引用保管库里的代理密码,只在连接这个代理的主机时兑换,不会交给网页。登录态里只存引用,传明文 password 返回 400 INVALID_PARAMS。
71520
+ */
71521
+ password_secret?: {
71522
+ /**
71523
+ * 保存代理密码的保管库 ID,以 vlt_ 开头。
71524
+ */
71525
+ vault_id: string;
71526
+ /**
71527
+ * 保管库中该密码的密钥 ID(不是密码本身)。
71528
+ */
71529
+ secret: string;
71530
+ };
71531
+ } | null;
70759
71532
  };
70760
71533
  path: {
70761
71534
  /**
@@ -70780,7 +71553,7 @@ export type BrowserUpdateContextErrors = {
70780
71553
  */
70781
71554
  402: BrowserError;
70782
71555
  /**
70783
- * PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
71556
+ * PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
70784
71557
  */
70785
71558
  403: BrowserError;
70786
71559
  /**
@@ -70852,7 +71625,7 @@ export type BrowserCreateByobPairingErrors = {
70852
71625
  */
70853
71626
  402: BrowserError;
70854
71627
  /**
70855
- * PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
71628
+ * PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
70856
71629
  */
70857
71630
  403: BrowserError;
70858
71631
  /**
@@ -70933,7 +71706,7 @@ export type BrowserListByobBrowsersErrors = {
70933
71706
  */
70934
71707
  402: BrowserError;
70935
71708
  /**
70936
- * PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
71709
+ * PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
70937
71710
  */
70938
71711
  403: BrowserError;
70939
71712
  /**
@@ -71019,7 +71792,7 @@ export type BrowserGetByobBrowserErrors = {
71019
71792
  */
71020
71793
  402: BrowserError;
71021
71794
  /**
71022
- * PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
71795
+ * PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
71023
71796
  */
71024
71797
  403: BrowserError;
71025
71798
  /**
@@ -71077,14 +71850,6 @@ export type BrowserUpdateByobBrowserData = {
71077
71850
  * 新的显示名称,1–80 个字符。
71078
71851
  */
71079
71852
  name?: string;
71080
- /**
71081
- * 整体替换被授权的智能体 ID 列表;传空数组撤销全部授权。
71082
- */
71083
- granted_agents?: Array<string>;
71084
- /**
71085
- * 整体替换允许站点列表;传空数组表示不限制。
71086
- */
71087
- allowed_sites?: Array<string>;
71088
71853
  };
71089
71854
  path: {
71090
71855
  /**
@@ -71109,7 +71874,7 @@ export type BrowserUpdateByobBrowserErrors = {
71109
71874
  */
71110
71875
  402: BrowserError;
71111
71876
  /**
71112
- * PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
71877
+ * PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
71113
71878
  */
71114
71879
  403: BrowserError;
71115
71880
  /**
@@ -71186,7 +71951,7 @@ export type BrowserDisconnectByobBrowserErrors = {
71186
71951
  */
71187
71952
  402: BrowserError;
71188
71953
  /**
71189
- * PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
71954
+ * PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
71190
71955
  */
71191
71956
  403: BrowserError;
71192
71957
  /**
@@ -71263,7 +72028,7 @@ export type BrowserReadByobPairingErrors = {
71263
72028
  */
71264
72029
  402: BrowserError;
71265
72030
  /**
71266
- * PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
72031
+ * PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
71267
72032
  */
71268
72033
  403: BrowserError;
71269
72034
  /**
@@ -71340,7 +72105,7 @@ export type BrowserClaimByobPairingErrors = {
71340
72105
  */
71341
72106
  402: BrowserError;
71342
72107
  /**
71343
- * PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
72108
+ * PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
71344
72109
  */
71345
72110
  403: BrowserError;
71346
72111
  /**
@@ -71449,7 +72214,7 @@ export type BrowserConnectErrors = {
71449
72214
  */
71450
72215
  402: BrowserError;
71451
72216
  /**
71452
- * PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
72217
+ * PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
71453
72218
  */
71454
72219
  403: BrowserError;
71455
72220
  /**
@@ -71528,7 +72293,7 @@ export type BrowserLiveViewErrors = {
71528
72293
  */
71529
72294
  402: BrowserError;
71530
72295
  /**
71531
- * PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
72296
+ * PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
71532
72297
  */
71533
72298
  403: BrowserError;
71534
72299
  /**
@@ -71598,7 +72363,7 @@ export type BrowserStreamSessionErrors = {
71598
72363
  */
71599
72364
  402: BrowserError;
71600
72365
  /**
71601
- * PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
72366
+ * PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
71602
72367
  */
71603
72368
  403: BrowserError;
71604
72369
  /**
@@ -71675,7 +72440,7 @@ export type BrowserStreamSessionFramesErrors = {
71675
72440
  */
71676
72441
  402: BrowserError;
71677
72442
  /**
71678
- * PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
72443
+ * PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
71679
72444
  */
71680
72445
  403: BrowserError;
71681
72446
  /**
@@ -78412,7 +79177,7 @@ export type ListOrganizationCostsData = {
78412
79177
  */
78413
79178
  bucket_width: '1h' | '1d';
78414
79179
  /**
78415
- * 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.
79180
+ * 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.
78416
79181
  *
78417
79182
  */
78418
79183
  time_zone?: string;
@@ -78530,7 +79295,7 @@ export type ListOrganizationUsageData = {
78530
79295
  */
78531
79296
  bucket_width: '1h' | '1d';
78532
79297
  /**
78533
- * 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.
79298
+ * 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.
78534
79299
  *
78535
79300
  */
78536
79301
  time_zone?: string;
@@ -79050,11 +79815,19 @@ export type ListOrganizationNotificationLettersData = {
79050
79815
  path?: never;
79051
79816
  query?: {
79052
79817
  /**
79053
- * Only unread letters, or only read ones; omit for both.
79818
+ * 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.
79819
+ */
79820
+ direction?: 'received' | 'sent';
79821
+ /**
79822
+ * 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.
79823
+ */
79824
+ status?: 'unread' | 'read' | 'scheduled';
79825
+ /**
79826
+ * Only letters of this conversation, for received and sent alike; omit for all.
79054
79827
  */
79055
- status?: 'unread' | 'read';
79828
+ thread?: string;
79056
79829
  /**
79057
- * false (the default) hides archived letters; true lists only the archived ones.
79830
+ * 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.
79058
79831
  */
79059
79832
  archived?: boolean;
79060
79833
  /**
@@ -79070,7 +79843,7 @@ export type ListOrganizationNotificationLettersData = {
79070
79843
  };
79071
79844
  export type ListOrganizationNotificationLettersErrors = {
79072
79845
  /**
79073
- * A bad `status`, `archived` or `limit`, or `INVALID_PARAMS` from the service for a cursor it did not issue (RFC 9457 problem).
79846
+ * 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).
79074
79847
  */
79075
79848
  400: unknown;
79076
79849
  /**
@@ -79170,6 +79943,80 @@ export type ListOrganizationNotificationLettersResponses = {
79170
79943
  };
79171
79944
  };
79172
79945
  export type ListOrganizationNotificationLettersResponse = ListOrganizationNotificationLettersResponses[keyof ListOrganizationNotificationLettersResponses];
79946
+ export type CreateOrganizationNotificationLetterData = {
79947
+ body: {
79948
+ /**
79949
+ * The recipient's address: human:<user id> or agent:<agent id>, a member or an agent of this organization.
79950
+ */
79951
+ to: string;
79952
+ /**
79953
+ * The whole letter, 1 to 16000 characters.
79954
+ */
79955
+ body: string;
79956
+ /**
79957
+ * 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.
79958
+ */
79959
+ summary?: string;
79960
+ /**
79961
+ * The letter's kind; it decides the channels. Defaults to mention.
79962
+ */
79963
+ kind?: 'notice' | 'mention' | 'decision';
79964
+ /**
79965
+ * The conversation the letter belongs to, free text; omit for none.
79966
+ */
79967
+ thread?: string;
79968
+ /**
79969
+ * When to deliver it, ISO 8601, at most 366 days ahead. A past time or no value means now.
79970
+ */
79971
+ deliver_at?: string;
79972
+ };
79973
+ path?: never;
79974
+ query?: never;
79975
+ url: '/organization/v1/notifications/letters';
79976
+ };
79977
+ export type CreateOrganizationNotificationLetterErrors = {
79978
+ /**
79979
+ * `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).
79980
+ */
79981
+ 400: unknown;
79982
+ /**
79983
+ * Missing or invalid credential (RFC 9457 problem).
79984
+ */
79985
+ 401: unknown;
79986
+ /**
79987
+ * `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).
79988
+ */
79989
+ 403: unknown;
79990
+ /**
79991
+ * `SUBSCRIBER_NOT_FOUND`: the recipient is not a member or an agent of this organization (RFC 9457 problem).
79992
+ */
79993
+ 404: unknown;
79994
+ /**
79995
+ * 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.
79996
+ */
79997
+ 502: unknown;
79998
+ };
79999
+ export type CreateOrganizationNotificationLetterResponses = {
80000
+ /**
80001
+ * The letter is written; it is delivered at deliverAt.
80002
+ */
80003
+ 200: {
80004
+ /**
80005
+ * The letter that was written: its id and the time it is delivered.
80006
+ */
80007
+ letter: {
80008
+ /**
80009
+ * The letter's id.
80010
+ */
80011
+ id: string;
80012
+ /**
80013
+ * When it is delivered: now, or the time asked for.
80014
+ */
80015
+ deliverAt: string;
80016
+ };
80017
+ };
80018
+ };
80019
+ export type CreateOrganizationNotificationLetterResponse = CreateOrganizationNotificationLetterResponses[keyof CreateOrganizationNotificationLetterResponses];
79173
80020
  export type GetOrganizationNotificationLetterData = {
79174
80021
  body?: never;
79175
80022
  path: {
@@ -79393,6 +80240,360 @@ export type ArchiveOrganizationNotificationLetterResponses = {
79393
80240
  };
79394
80241
  };
79395
80242
  export type ArchiveOrganizationNotificationLetterResponse = ArchiveOrganizationNotificationLetterResponses[keyof ArchiveOrganizationNotificationLetterResponses];
80243
+ export type ListOrganizationNotificationMessagesData = {
80244
+ body?: never;
80245
+ path?: never;
80246
+ query?: {
80247
+ /**
80248
+ * 0 (the default) lists the inbox tab, 1 lists archived messages.
80249
+ */
80250
+ archived?: '0' | '1';
80251
+ /**
80252
+ * Messages per page, 1 to 100; defaults to 20.
80253
+ */
80254
+ limit?: number;
80255
+ /**
80256
+ * Opaque nextPageToken from the previous response; omit for the first page.
80257
+ */
80258
+ page?: string;
80259
+ };
80260
+ url: '/organization/v1/notifications/messages';
80261
+ };
80262
+ export type ListOrganizationNotificationMessagesErrors = {
80263
+ /**
80264
+ * A bad `archived`, `limit` or `page`, or `INVALID_PARAMS` from the service for a cursor it did not issue (RFC 9457 problem).
80265
+ */
80266
+ 400: unknown;
80267
+ /**
80268
+ * Missing or invalid credential (RFC 9457 problem).
80269
+ */
80270
+ 401: unknown;
80271
+ /**
80272
+ * `PERMISSION_DENIED`: an agent credential has no person inbox; read its own letters instead (RFC 9457 problem).
80273
+ */
80274
+ 403: unknown;
80275
+ /**
80276
+ * 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.
80277
+ */
80278
+ 502: unknown;
80279
+ };
80280
+ export type ListOrganizationNotificationMessagesResponses = {
80281
+ /**
80282
+ * One page of this person's messages.
80283
+ */
80284
+ 200: {
80285
+ /**
80286
+ * The page, newest first.
80287
+ */
80288
+ items: Array<{
80289
+ /**
80290
+ * The message's resource name, subscribers/{user}/messages/{id}; pass it URL-encoded as the {name} of the other message operations.
80291
+ */
80292
+ name: string;
80293
+ /**
80294
+ * The organization the message belongs to; empty for a message that belongs to no organization.
80295
+ */
80296
+ organizationId: string;
80297
+ /**
80298
+ * The notification group the message belongs to: members, usage, alerts, agent, or nonConfigurable.
80299
+ */
80300
+ group: 'members' | 'usage' | 'alerts' | 'agent' | 'nonConfigurable';
80301
+ /**
80302
+ * The notification workflow that wrote it, as the preferences page names it.
80303
+ */
80304
+ workflow: string;
80305
+ /**
80306
+ * The message's headline, as the bell shows it.
80307
+ */
80308
+ title: string;
80309
+ /**
80310
+ * The message text.
80311
+ */
80312
+ body: string;
80313
+ /**
80314
+ * Where the bell opens this message; absent when it has no page.
80315
+ */
80316
+ actionUrl?: string;
80317
+ /**
80318
+ * Whether the bell has been opened since the message arrived.
80319
+ */
80320
+ seen: boolean;
80321
+ /**
80322
+ * Whether this person has read it.
80323
+ */
80324
+ read: boolean;
80325
+ /**
80326
+ * Whether this person archived it; archived messages are not in the inbox tab.
80327
+ */
80328
+ archived: boolean;
80329
+ /**
80330
+ * When the message arrived.
80331
+ */
80332
+ createTime: string;
80333
+ }>;
80334
+ /**
80335
+ * Pass unchanged as page for the next page; absent at the end.
80336
+ */
80337
+ nextPageToken?: string;
80338
+ };
80339
+ };
80340
+ export type ListOrganizationNotificationMessagesResponse = ListOrganizationNotificationMessagesResponses[keyof ListOrganizationNotificationMessagesResponses];
80341
+ export type DeleteOrganizationNotificationMessageData = {
80342
+ body?: never;
80343
+ path: {
80344
+ /**
80345
+ * The message's `name` from the messages list, subscribers/{user}/messages/{id}, URL-encoded.
80346
+ */
80347
+ name: string;
80348
+ };
80349
+ query?: never;
80350
+ url: '/organization/v1/notifications/messages/{name}';
80351
+ };
80352
+ export type DeleteOrganizationNotificationMessageErrors = {
80353
+ /**
80354
+ * `name` is not subscribers/{user}/messages/{id} — `INVALID_PARAMS` (RFC 9457 problem).
80355
+ */
80356
+ 400: unknown;
80357
+ /**
80358
+ * Missing or invalid credential (RFC 9457 problem).
80359
+ */
80360
+ 401: unknown;
80361
+ /**
80362
+ * `PERMISSION_DENIED`: an agent credential has no person inbox; read its own letters instead (RFC 9457 problem).
80363
+ */
80364
+ 403: unknown;
80365
+ /**
80366
+ * No such message of yours in this organization — `MESSAGE_NOT_FOUND` (RFC 9457 problem).
80367
+ */
80368
+ 404: 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 DeleteOrganizationNotificationMessageResponses = {
80375
+ /**
80376
+ * The message is deleted.
80377
+ */
80378
+ 200: {
80379
+ /**
80380
+ * Always true: the message was deleted.
80381
+ */
80382
+ deleted: boolean;
80383
+ };
80384
+ };
80385
+ export type DeleteOrganizationNotificationMessageResponse = DeleteOrganizationNotificationMessageResponses[keyof DeleteOrganizationNotificationMessageResponses];
80386
+ export type GetOrganizationNotificationMessageData = {
80387
+ body?: never;
80388
+ path: {
80389
+ /**
80390
+ * The message's `name` from the messages list, subscribers/{user}/messages/{id}, URL-encoded.
80391
+ */
80392
+ name: string;
80393
+ };
80394
+ query?: never;
80395
+ url: '/organization/v1/notifications/messages/{name}';
80396
+ };
80397
+ export type GetOrganizationNotificationMessageErrors = {
80398
+ /**
80399
+ * `name` is not subscribers/{user}/messages/{id} — `INVALID_PARAMS` (RFC 9457 problem).
80400
+ */
80401
+ 400: unknown;
80402
+ /**
80403
+ * Missing or invalid credential (RFC 9457 problem).
80404
+ */
80405
+ 401: unknown;
80406
+ /**
80407
+ * `PERMISSION_DENIED`: an agent credential has no person inbox; read its own letters instead (RFC 9457 problem).
80408
+ */
80409
+ 403: unknown;
80410
+ /**
80411
+ * 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).
80412
+ */
80413
+ 404: unknown;
80414
+ /**
80415
+ * 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.
80416
+ */
80417
+ 502: unknown;
80418
+ };
80419
+ export type GetOrganizationNotificationMessageResponses = {
80420
+ /**
80421
+ * The message.
80422
+ */
80423
+ 200: {
80424
+ /**
80425
+ * The message's resource name, subscribers/{user}/messages/{id}; pass it URL-encoded as the {name} of the other message operations.
80426
+ */
80427
+ name: string;
80428
+ /**
80429
+ * The organization the message belongs to; empty for a message that belongs to no organization.
80430
+ */
80431
+ organizationId: string;
80432
+ /**
80433
+ * The notification group the message belongs to: members, usage, alerts, agent, or nonConfigurable.
80434
+ */
80435
+ group: 'members' | 'usage' | 'alerts' | 'agent' | 'nonConfigurable';
80436
+ /**
80437
+ * The notification workflow that wrote it, as the preferences page names it.
80438
+ */
80439
+ workflow: string;
80440
+ /**
80441
+ * The message's headline, as the bell shows it.
80442
+ */
80443
+ title: string;
80444
+ /**
80445
+ * The message text.
80446
+ */
80447
+ body: string;
80448
+ /**
80449
+ * Where the bell opens this message; absent when it has no page.
80450
+ */
80451
+ actionUrl?: string;
80452
+ /**
80453
+ * Whether the bell has been opened since the message arrived.
80454
+ */
80455
+ seen: boolean;
80456
+ /**
80457
+ * Whether this person has read it.
80458
+ */
80459
+ read: boolean;
80460
+ /**
80461
+ * Whether this person archived it; archived messages are not in the inbox tab.
80462
+ */
80463
+ archived: boolean;
80464
+ /**
80465
+ * When the message arrived.
80466
+ */
80467
+ createTime: string;
80468
+ };
80469
+ };
80470
+ export type GetOrganizationNotificationMessageResponse = GetOrganizationNotificationMessageResponses[keyof GetOrganizationNotificationMessageResponses];
80471
+ export type UpdateOrganizationNotificationMessageData = {
80472
+ body: {
80473
+ /**
80474
+ * Mark the message read (true) or unread (false); omit to leave it.
80475
+ */
80476
+ read?: boolean;
80477
+ /**
80478
+ * Archive the message (true) or move it back to the inbox (false); omit to leave it.
80479
+ */
80480
+ archived?: boolean;
80481
+ };
80482
+ path: {
80483
+ /**
80484
+ * The message's `name` from the messages list, subscribers/{user}/messages/{id}, URL-encoded.
80485
+ */
80486
+ name: string;
80487
+ };
80488
+ query?: never;
80489
+ url: '/organization/v1/notifications/messages/{name}';
80490
+ };
80491
+ export type UpdateOrganizationNotificationMessageErrors = {
80492
+ /**
80493
+ * 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).
80494
+ */
80495
+ 400: unknown;
80496
+ /**
80497
+ * Missing or invalid credential (RFC 9457 problem).
80498
+ */
80499
+ 401: unknown;
80500
+ /**
80501
+ * `PERMISSION_DENIED`: an agent credential has no person inbox; read its own letters instead (RFC 9457 problem).
80502
+ */
80503
+ 403: unknown;
80504
+ /**
80505
+ * No such message of yours in this organization — `MESSAGE_NOT_FOUND` (RFC 9457 problem).
80506
+ */
80507
+ 404: unknown;
80508
+ /**
80509
+ * 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.
80510
+ */
80511
+ 502: unknown;
80512
+ };
80513
+ export type UpdateOrganizationNotificationMessageResponses = {
80514
+ /**
80515
+ * The message after the change.
80516
+ */
80517
+ 200: {
80518
+ /**
80519
+ * The message's resource name, subscribers/{user}/messages/{id}; pass it URL-encoded as the {name} of the other message operations.
80520
+ */
80521
+ name: string;
80522
+ /**
80523
+ * The organization the message belongs to; empty for a message that belongs to no organization.
80524
+ */
80525
+ organizationId: string;
80526
+ /**
80527
+ * The notification group the message belongs to: members, usage, alerts, agent, or nonConfigurable.
80528
+ */
80529
+ group: 'members' | 'usage' | 'alerts' | 'agent' | 'nonConfigurable';
80530
+ /**
80531
+ * The notification workflow that wrote it, as the preferences page names it.
80532
+ */
80533
+ workflow: string;
80534
+ /**
80535
+ * The message's headline, as the bell shows it.
80536
+ */
80537
+ title: string;
80538
+ /**
80539
+ * The message text.
80540
+ */
80541
+ body: string;
80542
+ /**
80543
+ * Where the bell opens this message; absent when it has no page.
80544
+ */
80545
+ actionUrl?: string;
80546
+ /**
80547
+ * Whether the bell has been opened since the message arrived.
80548
+ */
80549
+ seen: boolean;
80550
+ /**
80551
+ * Whether this person has read it.
80552
+ */
80553
+ read: boolean;
80554
+ /**
80555
+ * Whether this person archived it; archived messages are not in the inbox tab.
80556
+ */
80557
+ archived: boolean;
80558
+ /**
80559
+ * When the message arrived.
80560
+ */
80561
+ createTime: string;
80562
+ };
80563
+ };
80564
+ export type UpdateOrganizationNotificationMessageResponse = UpdateOrganizationNotificationMessageResponses[keyof UpdateOrganizationNotificationMessageResponses];
80565
+ export type ReadAllOrganizationNotificationMessagesData = {
80566
+ body?: never;
80567
+ path?: never;
80568
+ query?: never;
80569
+ url: '/organization/v1/notifications/messages:readAll';
80570
+ };
80571
+ export type ReadAllOrganizationNotificationMessagesErrors = {
80572
+ /**
80573
+ * Missing or invalid credential (RFC 9457 problem).
80574
+ */
80575
+ 401: unknown;
80576
+ /**
80577
+ * `PERMISSION_DENIED`: an agent credential has no person inbox; read its own letters instead (RFC 9457 problem).
80578
+ */
80579
+ 403: unknown;
80580
+ /**
80581
+ * 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.
80582
+ */
80583
+ 502: unknown;
80584
+ };
80585
+ export type ReadAllOrganizationNotificationMessagesResponses = {
80586
+ /**
80587
+ * How many messages were marked read.
80588
+ */
80589
+ 200: {
80590
+ /**
80591
+ * The number of messages that were unread and are now read.
80592
+ */
80593
+ updated: number;
80594
+ };
80595
+ };
80596
+ export type ReadAllOrganizationNotificationMessagesResponse = ReadAllOrganizationNotificationMessagesResponses[keyof ReadAllOrganizationNotificationMessagesResponses];
79396
80597
  export type GetOrganizationNotificationPreferencesData = {
79397
80598
  body?: never;
79398
80599
  path?: never;
@@ -80860,7 +82061,7 @@ export type ListByodDevicesResponses = {
80860
82061
  */
80861
82062
  id: string;
80862
82063
  /**
80863
- * 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.
82064
+ * The device's platform, which decides the use faces it answers. A desktop (macos, linux) pairs like a phone; windows is not supported yet.
80864
82065
  */
80865
82066
  platform: 'android' | 'macos' | 'linux';
80866
82067
  /**
@@ -80908,6 +82109,10 @@ export type ListByodDevicesResponses = {
80908
82109
  */
80909
82110
  agent: string;
80910
82111
  }>;
82112
+ /**
82113
+ * 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.
82114
+ */
82115
+ envd_version: string | null;
80911
82116
  /**
80912
82117
  * 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.
80913
82118
  */
@@ -80955,7 +82160,7 @@ export type GetByodDeviceResponses = {
80955
82160
  */
80956
82161
  id: string;
80957
82162
  /**
80958
- * 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.
82163
+ * The device's platform, which decides the use faces it answers. A desktop (macos, linux) pairs like a phone; windows is not supported yet.
80959
82164
  */
80960
82165
  platform: 'android' | 'macos' | 'linux';
80961
82166
  /**
@@ -81003,6 +82208,10 @@ export type GetByodDeviceResponses = {
81003
82208
  */
81004
82209
  agent: string;
81005
82210
  }>;
82211
+ /**
82212
+ * 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.
82213
+ */
82214
+ envd_version: string | null;
81006
82215
  /**
81007
82216
  * 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.
81008
82217
  */
@@ -81061,7 +82270,7 @@ export type UpdateByodDeviceResponses = {
81061
82270
  */
81062
82271
  id: string;
81063
82272
  /**
81064
- * 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.
82273
+ * The device's platform, which decides the use faces it answers. A desktop (macos, linux) pairs like a phone; windows is not supported yet.
81065
82274
  */
81066
82275
  platform: 'android' | 'macos' | 'linux';
81067
82276
  /**
@@ -81109,6 +82318,10 @@ export type UpdateByodDeviceResponses = {
81109
82318
  */
81110
82319
  agent: string;
81111
82320
  }>;
82321
+ /**
82322
+ * 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.
82323
+ */
82324
+ envd_version: string | null;
81112
82325
  /**
81113
82326
  * 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.
81114
82327
  */
@@ -81200,7 +82413,7 @@ export type ClaimByodPairingData = {
81200
82413
  */
81201
82414
  body: {
81202
82415
  /**
81203
- * 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.
82416
+ * The device's platform. macos and linux are accepted for every organization; any other value than android, macos or linux answers INVALID_PARAMS.
81204
82417
  */
81205
82418
  platform: 'android' | 'macos' | 'linux';
81206
82419
  /**
@@ -81231,7 +82444,7 @@ export type ClaimByodPairingData = {
81231
82444
  };
81232
82445
  export type ClaimByodPairingErrors = {
81233
82446
  /**
81234
- * 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.
82447
+ * 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.
81235
82448
  */
81236
82449
  400: unknown;
81237
82450
  /**
@@ -83854,8 +85067,7 @@ export type SessionsUpdateData = {
83854
85067
  */
83855
85068
  title?: null | string;
83856
85069
  /**
83857
- * Vault IDs (`vlt_*`) to attach to the session. Not yet supported;
83858
- * requests setting this field are rejected. Reserved for future use.
85070
+ * 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.
83859
85071
  */
83860
85072
  vault_ids?: Array<string>;
83861
85073
  /**
@@ -84796,7 +86008,7 @@ export type AgentsListResponses = {
84796
86008
  */
84797
86009
  environment_id?: string | null;
84798
86010
  /**
84799
- * 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.
86011
+ * 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.
84800
86012
  */
84801
86013
  vault_ids?: Array<string>;
84802
86014
  /**
@@ -85335,7 +86547,7 @@ export type AgentsCreateData = {
85335
86547
  */
85336
86548
  environment_id?: string | null;
85337
86549
  /**
85338
- * 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.
86550
+ * 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.
85339
86551
  */
85340
86552
  vault_ids?: Array<string>;
85341
86553
  /**
@@ -86018,7 +87230,7 @@ export type AgentsCreateResponses = {
86018
87230
  */
86019
87231
  environment_id?: string | null;
86020
87232
  /**
86021
- * 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.
87233
+ * 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.
86022
87234
  */
86023
87235
  vault_ids?: Array<string>;
86024
87236
  /**
@@ -86689,7 +87901,7 @@ export type AgentsRetrieveResponses = {
86689
87901
  */
86690
87902
  environment_id?: string | null;
86691
87903
  /**
86692
- * 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.
87904
+ * 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.
86693
87905
  */
86694
87906
  vault_ids?: Array<string>;
86695
87907
  /**
@@ -87237,7 +88449,7 @@ export type AgentsUpdateData = {
87237
88449
  */
87238
88450
  environment_id?: string | null;
87239
88451
  /**
87240
- * 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.
88452
+ * 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.
87241
88453
  */
87242
88454
  vault_ids?: Array<string>;
87243
88455
  /**
@@ -87933,7 +89145,7 @@ export type AgentsUpdateResponses = {
87933
89145
  */
87934
89146
  environment_id?: string | null;
87935
89147
  /**
87936
- * 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.
89148
+ * 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.
87937
89149
  */
87938
89150
  vault_ids?: Array<string>;
87939
89151
  /**
@@ -88559,7 +89771,7 @@ export type AgentsArchiveResponses = {
88559
89771
  */
88560
89772
  environment_id?: string | null;
88561
89773
  /**
88562
- * 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.
89774
+ * 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.
88563
89775
  */
88564
89776
  vault_ids?: Array<string>;
88565
89777
  /**
@@ -89230,7 +90442,7 @@ export type AgentsVersionsListResponses = {
89230
90442
  */
89231
90443
  environment_id?: string | null;
89232
90444
  /**
89233
- * 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.
90445
+ * 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.
89234
90446
  */
89235
90447
  vault_ids?: Array<string>;
89236
90448
  /**
@@ -99090,7 +100302,7 @@ export type AutomationRunsListData = {
99090
100302
  */
99091
100303
  channel?: Array<'console' | 'api' | 'internal' | 'run' | 'trigger'>;
99092
100304
  /**
99093
- * 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.
100305
+ * 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.
99094
100306
  */
99095
100307
  initiator_type?: Array<'user' | 'api_key' | 'agent' | 'trigger'>;
99096
100308
  /**
@@ -113638,7 +114850,7 @@ export type DevopsUnitsPushErrors = {
113638
114850
  */
113639
114851
  404: DevopsDevOpsError;
113640
114852
  /**
113641
- * 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.
114853
+ * 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.
113642
114854
  */
113643
114855
  409: DevopsDevOpsError;
113644
114856
  /**
@@ -119394,6 +120606,511 @@ export type MediaDesignVoiceResponses = {
119394
120606
  202: MediaJob;
119395
120607
  };
119396
120608
  export type MediaDesignVoiceResponse = MediaDesignVoiceResponses[keyof MediaDesignVoiceResponses];
120609
+ export type MediaListWorksData = {
120610
+ body?: never;
120611
+ path: {
120612
+ /**
120613
+ * Library ID returned by creation.
120614
+ */
120615
+ library_id: string;
120616
+ };
120617
+ query?: {
120618
+ /**
120619
+ * Only works of this kind: gallery, article, product_listing or blocks.
120620
+ */
120621
+ kind?: 'gallery' | 'article' | 'product_listing' | 'blocks';
120622
+ /**
120623
+ * Only works of this series.
120624
+ */
120625
+ series?: string;
120626
+ /**
120627
+ * Only works whose title contains this text, at most 100 characters.
120628
+ */
120629
+ q?: string;
120630
+ /**
120631
+ * Maximum entries in this page, from 1 through 100; defaults to 100.
120632
+ */
120633
+ limit?: number;
120634
+ /**
120635
+ * Cursor from the previous next_cursor.
120636
+ */
120637
+ cursor?: string;
120638
+ };
120639
+ url: '/media/v1/libraries/{library_id}/works';
120640
+ };
120641
+ export type MediaListWorksErrors = {
120642
+ /**
120643
+ * A selector, cursor, limit or other parameter is invalid; correct the reported field before retrying.
120644
+ */
120645
+ 400: MediaMediaError;
120646
+ /**
120647
+ * Request failed; see the error code reference.
120648
+ */
120649
+ 402: MediaMediaError;
120650
+ /**
120651
+ * This credential has read-only access to the library; use a write-capable binding for mutations.
120652
+ */
120653
+ 403: MediaMediaError;
120654
+ /**
120655
+ * The library or asset is missing, deleted or belongs to another tenant; verify its identifier and owner.
120656
+ */
120657
+ 404: MediaMediaError;
120658
+ /**
120659
+ * Request failed; see the error code reference.
120660
+ */
120661
+ 409: MediaMediaError;
120662
+ /**
120663
+ * The file exceeds an input limit; provide a smaller source file.
120664
+ */
120665
+ 413: MediaMediaError;
120666
+ /**
120667
+ * This media format is unsupported; provide a supported format.
120668
+ */
120669
+ 415: MediaMediaError;
120670
+ /**
120671
+ * Request failed; see the error code reference.
120672
+ */
120673
+ 422: MediaMediaError;
120674
+ /**
120675
+ * A rate limit was reached; wait before retrying.
120676
+ */
120677
+ 429: MediaMediaError;
120678
+ /**
120679
+ * The requested operation is unsupported; choose a supported method.
120680
+ */
120681
+ 501: MediaMediaError;
120682
+ /**
120683
+ * Request failed; see the error code reference.
120684
+ */
120685
+ 502: MediaMediaError;
120686
+ /**
120687
+ * Historical projections are still being initialized, or library storage is temporarily unavailable; retry shortly and check failureSummary counts_complete.
120688
+ */
120689
+ 503: MediaMediaError;
120690
+ };
120691
+ export type MediaListWorksError = MediaListWorksErrors[keyof MediaListWorksErrors];
120692
+ export type MediaListWorksResponses = {
120693
+ /**
120694
+ * Successful response.
120695
+ */
120696
+ 200: MediaWorkPage;
120697
+ };
120698
+ export type MediaListWorksResponse = MediaListWorksResponses[keyof MediaListWorksResponses];
120699
+ export type MediaCreateWorkData = {
120700
+ /**
120701
+ * A new work: its kind and its whole body, with an optional series and custom fields.
120702
+ */
120703
+ body: {
120704
+ /**
120705
+ * The work’s kind; it decides which body fields are accepted.
120706
+ */
120707
+ kind: MediaWorkKind;
120708
+ /**
120709
+ * The kind’s body. Every asset it names must be a live asset of this library of the fitting type, or the request is refused with ASSET_NOT_FOUND or REFERENCE_TYPE_MISMATCH naming every bad reference, and nothing is saved.
120710
+ */
120711
+ body: MediaWorkBody;
120712
+ /**
120713
+ * Groups the platform versions of one story: 1 to 64 characters of a-z, 0-9, _ and -.
120714
+ */
120715
+ series?: string;
120716
+ /**
120717
+ * Caller data such as source, published links and numbers; at most 50 keys and 16 KB as JSON.
120718
+ */
120719
+ custom?: MediaWorkCustom;
120720
+ };
120721
+ path: {
120722
+ /**
120723
+ * Library ID returned by creation.
120724
+ */
120725
+ library_id: string;
120726
+ };
120727
+ query?: never;
120728
+ url: '/media/v1/libraries/{library_id}/works';
120729
+ };
120730
+ export type MediaCreateWorkErrors = {
120731
+ /**
120732
+ * A selector, cursor, limit or other parameter is invalid; correct the reported field before retrying.
120733
+ */
120734
+ 400: MediaMediaError;
120735
+ /**
120736
+ * Request failed; see the error code reference.
120737
+ */
120738
+ 402: MediaMediaError;
120739
+ /**
120740
+ * This credential has read-only access to the library; use a write-capable binding for mutations.
120741
+ */
120742
+ 403: MediaMediaError;
120743
+ /**
120744
+ * The library or asset is missing, deleted or belongs to another tenant; verify its identifier and owner.
120745
+ */
120746
+ 404: MediaMediaError;
120747
+ /**
120748
+ * Request failed; see the error code reference.
120749
+ */
120750
+ 409: MediaMediaError;
120751
+ /**
120752
+ * The file exceeds an input limit; provide a smaller source file.
120753
+ */
120754
+ 413: MediaMediaError;
120755
+ /**
120756
+ * This media format is unsupported; provide a supported format.
120757
+ */
120758
+ 415: MediaMediaError;
120759
+ /**
120760
+ * Request failed; see the error code reference.
120761
+ */
120762
+ 422: MediaMediaError;
120763
+ /**
120764
+ * A rate limit was reached; wait before retrying.
120765
+ */
120766
+ 429: MediaMediaError;
120767
+ /**
120768
+ * The requested operation is unsupported; choose a supported method.
120769
+ */
120770
+ 501: MediaMediaError;
120771
+ /**
120772
+ * Request failed; see the error code reference.
120773
+ */
120774
+ 502: MediaMediaError;
120775
+ /**
120776
+ * Historical projections are still being initialized, or library storage is temporarily unavailable; retry shortly and check failureSummary counts_complete.
120777
+ */
120778
+ 503: MediaMediaError;
120779
+ };
120780
+ export type MediaCreateWorkError = MediaCreateWorkErrors[keyof MediaCreateWorkErrors];
120781
+ export type MediaCreateWorkResponses = {
120782
+ /**
120783
+ * Successful response.
120784
+ */
120785
+ 200: MediaWork;
120786
+ };
120787
+ export type MediaCreateWorkResponse = MediaCreateWorkResponses[keyof MediaCreateWorkResponses];
120788
+ export type MediaDeleteWorkData = {
120789
+ body?: never;
120790
+ path: {
120791
+ /**
120792
+ * Library ID returned by creation.
120793
+ */
120794
+ library_id: string;
120795
+ /**
120796
+ * Work id (wrk_…) returned by creation or listing.
120797
+ */
120798
+ work_id: string;
120799
+ };
120800
+ query?: never;
120801
+ url: '/media/v1/libraries/{library_id}/works/{work_id}';
120802
+ };
120803
+ export type MediaDeleteWorkErrors = {
120804
+ /**
120805
+ * A selector, cursor, limit or other parameter is invalid; correct the reported field before retrying.
120806
+ */
120807
+ 400: MediaMediaError;
120808
+ /**
120809
+ * Request failed; see the error code reference.
120810
+ */
120811
+ 402: MediaMediaError;
120812
+ /**
120813
+ * This credential has read-only access to the library; use a write-capable binding for mutations.
120814
+ */
120815
+ 403: MediaMediaError;
120816
+ /**
120817
+ * The library or asset is missing, deleted or belongs to another tenant; verify its identifier and owner.
120818
+ */
120819
+ 404: MediaMediaError;
120820
+ /**
120821
+ * Request failed; see the error code reference.
120822
+ */
120823
+ 409: MediaMediaError;
120824
+ /**
120825
+ * The file exceeds an input limit; provide a smaller source file.
120826
+ */
120827
+ 413: MediaMediaError;
120828
+ /**
120829
+ * This media format is unsupported; provide a supported format.
120830
+ */
120831
+ 415: MediaMediaError;
120832
+ /**
120833
+ * Request failed; see the error code reference.
120834
+ */
120835
+ 422: MediaMediaError;
120836
+ /**
120837
+ * A rate limit was reached; wait before retrying.
120838
+ */
120839
+ 429: MediaMediaError;
120840
+ /**
120841
+ * The requested operation is unsupported; choose a supported method.
120842
+ */
120843
+ 501: MediaMediaError;
120844
+ /**
120845
+ * Request failed; see the error code reference.
120846
+ */
120847
+ 502: MediaMediaError;
120848
+ /**
120849
+ * Historical projections are still being initialized, or library storage is temporarily unavailable; retry shortly and check failureSummary counts_complete.
120850
+ */
120851
+ 503: MediaMediaError;
120852
+ };
120853
+ export type MediaDeleteWorkError = MediaDeleteWorkErrors[keyof MediaDeleteWorkErrors];
120854
+ export type MediaDeleteWorkResponses = {
120855
+ /**
120856
+ * Successful response.
120857
+ */
120858
+ 200: MediaDeletedWork;
120859
+ };
120860
+ export type MediaDeleteWorkResponse = MediaDeleteWorkResponses[keyof MediaDeleteWorkResponses];
120861
+ export type MediaGetWorkData = {
120862
+ body?: never;
120863
+ path: {
120864
+ /**
120865
+ * Library ID returned by creation.
120866
+ */
120867
+ library_id: string;
120868
+ /**
120869
+ * Work id (wrk_…) returned by creation or listing.
120870
+ */
120871
+ work_id: string;
120872
+ };
120873
+ query?: {
120874
+ /**
120875
+ * assets returns every referenced asset with its URLs and size.
120876
+ */
120877
+ expand?: string;
120878
+ };
120879
+ url: '/media/v1/libraries/{library_id}/works/{work_id}';
120880
+ };
120881
+ export type MediaGetWorkErrors = {
120882
+ /**
120883
+ * A selector, cursor, limit or other parameter is invalid; correct the reported field before retrying.
120884
+ */
120885
+ 400: MediaMediaError;
120886
+ /**
120887
+ * Request failed; see the error code reference.
120888
+ */
120889
+ 402: MediaMediaError;
120890
+ /**
120891
+ * This credential has read-only access to the library; use a write-capable binding for mutations.
120892
+ */
120893
+ 403: MediaMediaError;
120894
+ /**
120895
+ * The library or asset is missing, deleted or belongs to another tenant; verify its identifier and owner.
120896
+ */
120897
+ 404: MediaMediaError;
120898
+ /**
120899
+ * Request failed; see the error code reference.
120900
+ */
120901
+ 409: MediaMediaError;
120902
+ /**
120903
+ * The file exceeds an input limit; provide a smaller source file.
120904
+ */
120905
+ 413: MediaMediaError;
120906
+ /**
120907
+ * This media format is unsupported; provide a supported format.
120908
+ */
120909
+ 415: MediaMediaError;
120910
+ /**
120911
+ * Request failed; see the error code reference.
120912
+ */
120913
+ 422: MediaMediaError;
120914
+ /**
120915
+ * A rate limit was reached; wait before retrying.
120916
+ */
120917
+ 429: MediaMediaError;
120918
+ /**
120919
+ * The requested operation is unsupported; choose a supported method.
120920
+ */
120921
+ 501: MediaMediaError;
120922
+ /**
120923
+ * Request failed; see the error code reference.
120924
+ */
120925
+ 502: MediaMediaError;
120926
+ /**
120927
+ * Historical projections are still being initialized, or library storage is temporarily unavailable; retry shortly and check failureSummary counts_complete.
120928
+ */
120929
+ 503: MediaMediaError;
120930
+ };
120931
+ export type MediaGetWorkError = MediaGetWorkErrors[keyof MediaGetWorkErrors];
120932
+ export type MediaGetWorkResponses = {
120933
+ /**
120934
+ * Successful response.
120935
+ */
120936
+ 200: MediaWork;
120937
+ };
120938
+ export type MediaGetWorkResponse = MediaGetWorkResponses[keyof MediaGetWorkResponses];
120939
+ export type MediaUpdateWorkData = {
120940
+ /**
120941
+ * Changes to a work. Send only what changes.
120942
+ */
120943
+ body: {
120944
+ /**
120945
+ * A whole new body for the same kind; it replaces the old one and is checked like a new one.
120946
+ */
120947
+ body?: MediaWorkBody;
120948
+ /**
120949
+ * A new series, or null to clear it.
120950
+ */
120951
+ series?: string | null;
120952
+ /**
120953
+ * A JSON Merge Patch (RFC 7396): keys you send are set, keys set to null are removed, keys you leave out are kept.
120954
+ */
120955
+ custom?: MediaWorkCustom;
120956
+ /**
120957
+ * Apply the change only if the work is still at this revision; otherwise the answer is 409 REVISION_CONFLICT with the current revision.
120958
+ */
120959
+ if_revision?: number;
120960
+ };
120961
+ path: {
120962
+ /**
120963
+ * Library ID returned by creation.
120964
+ */
120965
+ library_id: string;
120966
+ /**
120967
+ * Work id (wrk_…) returned by creation or listing.
120968
+ */
120969
+ work_id: string;
120970
+ };
120971
+ query?: never;
120972
+ url: '/media/v1/libraries/{library_id}/works/{work_id}';
120973
+ };
120974
+ export type MediaUpdateWorkErrors = {
120975
+ /**
120976
+ * A selector, cursor, limit or other parameter is invalid; correct the reported field before retrying.
120977
+ */
120978
+ 400: MediaMediaError;
120979
+ /**
120980
+ * Request failed; see the error code reference.
120981
+ */
120982
+ 402: MediaMediaError;
120983
+ /**
120984
+ * This credential has read-only access to the library; use a write-capable binding for mutations.
120985
+ */
120986
+ 403: MediaMediaError;
120987
+ /**
120988
+ * The library or asset is missing, deleted or belongs to another tenant; verify its identifier and owner.
120989
+ */
120990
+ 404: MediaMediaError;
120991
+ /**
120992
+ * Request failed; see the error code reference.
120993
+ */
120994
+ 409: MediaMediaError;
120995
+ /**
120996
+ * The file exceeds an input limit; provide a smaller source file.
120997
+ */
120998
+ 413: MediaMediaError;
120999
+ /**
121000
+ * This media format is unsupported; provide a supported format.
121001
+ */
121002
+ 415: MediaMediaError;
121003
+ /**
121004
+ * Request failed; see the error code reference.
121005
+ */
121006
+ 422: MediaMediaError;
121007
+ /**
121008
+ * A rate limit was reached; wait before retrying.
121009
+ */
121010
+ 429: MediaMediaError;
121011
+ /**
121012
+ * The requested operation is unsupported; choose a supported method.
121013
+ */
121014
+ 501: MediaMediaError;
121015
+ /**
121016
+ * Request failed; see the error code reference.
121017
+ */
121018
+ 502: MediaMediaError;
121019
+ /**
121020
+ * Historical projections are still being initialized, or library storage is temporarily unavailable; retry shortly and check failureSummary counts_complete.
121021
+ */
121022
+ 503: MediaMediaError;
121023
+ };
121024
+ export type MediaUpdateWorkError = MediaUpdateWorkErrors[keyof MediaUpdateWorkErrors];
121025
+ export type MediaUpdateWorkResponses = {
121026
+ /**
121027
+ * Successful response.
121028
+ */
121029
+ 200: MediaWork;
121030
+ };
121031
+ export type MediaUpdateWorkResponse = MediaUpdateWorkResponses[keyof MediaUpdateWorkResponses];
121032
+ export type MediaListAssetWorksData = {
121033
+ body?: never;
121034
+ path: {
121035
+ /**
121036
+ * Library ID returned by creation.
121037
+ */
121038
+ library_id: string;
121039
+ /**
121040
+ * 32-character asset ID.
121041
+ */
121042
+ asset_id: string;
121043
+ };
121044
+ query?: {
121045
+ /**
121046
+ * Maximum entries in this page, from 1 through 100; defaults to 100.
121047
+ */
121048
+ limit?: number;
121049
+ /**
121050
+ * Cursor from the previous next_cursor.
121051
+ */
121052
+ cursor?: string;
121053
+ };
121054
+ url: '/media/v1/libraries/{library_id}/assets/{asset_id}/works';
121055
+ };
121056
+ export type MediaListAssetWorksErrors = {
121057
+ /**
121058
+ * A selector, cursor, limit or other parameter is invalid; correct the reported field before retrying.
121059
+ */
121060
+ 400: MediaMediaError;
121061
+ /**
121062
+ * Request failed; see the error code reference.
121063
+ */
121064
+ 402: MediaMediaError;
121065
+ /**
121066
+ * This credential has read-only access to the library; use a write-capable binding for mutations.
121067
+ */
121068
+ 403: MediaMediaError;
121069
+ /**
121070
+ * The library or asset is missing, deleted or belongs to another tenant; verify its identifier and owner.
121071
+ */
121072
+ 404: MediaMediaError;
121073
+ /**
121074
+ * Request failed; see the error code reference.
121075
+ */
121076
+ 409: MediaMediaError;
121077
+ /**
121078
+ * The file exceeds an input limit; provide a smaller source file.
121079
+ */
121080
+ 413: MediaMediaError;
121081
+ /**
121082
+ * This media format is unsupported; provide a supported format.
121083
+ */
121084
+ 415: MediaMediaError;
121085
+ /**
121086
+ * Request failed; see the error code reference.
121087
+ */
121088
+ 422: MediaMediaError;
121089
+ /**
121090
+ * A rate limit was reached; wait before retrying.
121091
+ */
121092
+ 429: MediaMediaError;
121093
+ /**
121094
+ * The requested operation is unsupported; choose a supported method.
121095
+ */
121096
+ 501: MediaMediaError;
121097
+ /**
121098
+ * Request failed; see the error code reference.
121099
+ */
121100
+ 502: MediaMediaError;
121101
+ /**
121102
+ * Historical projections are still being initialized, or library storage is temporarily unavailable; retry shortly and check failureSummary counts_complete.
121103
+ */
121104
+ 503: MediaMediaError;
121105
+ };
121106
+ export type MediaListAssetWorksError = MediaListAssetWorksErrors[keyof MediaListAssetWorksErrors];
121107
+ export type MediaListAssetWorksResponses = {
121108
+ /**
121109
+ * Successful response.
121110
+ */
121111
+ 200: MediaWorkPage;
121112
+ };
121113
+ export type MediaListAssetWorksResponse = MediaListAssetWorksResponses[keyof MediaListAssetWorksResponses];
119397
121114
  export type OntologyListTypesData = {
119398
121115
  body?: never;
119399
121116
  path?: never;
@@ -121353,7 +123070,7 @@ export type GetSandboxV1SandboxesResponses = {
121353
123070
  };
121354
123071
  export type GetSandboxV1SandboxesResponse = GetSandboxV1SandboxesResponses[keyof GetSandboxV1SandboxesResponses];
121355
123072
  export type PostSandboxV1SandboxesData = {
121356
- body: SandboxNewSandboxV2;
123073
+ body: SandboxNewSandboxV2Writable;
121357
123074
  path?: never;
121358
123075
  query?: never;
121359
123076
  url: '/sandbox/v1/sandboxes';