@deepraxis/sdk 0.2.0-dev.b391673 → 0.2.0-dev.b4ab287

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
  /**
@@ -19968,6 +20136,10 @@ export type DevopsPullRequest = {
19968
20136
  * The mergeability word, an open set. A GitHub project keeps GitHub's own word verbatim (clean, dirty, blocked, behind, unstable and so on), unknown when GitHub has not said. A project whose code is on our own Git gets DevOps's reading of the head against the base: clean when nothing stands in the way, behind when the head adds nothing the base lacks, dirty when both sides changed the same path since they diverged, unknown when the comparison was capped.
19969
20137
  */
19970
20138
  mergeableState: string;
20139
+ /**
20140
+ * Who this pull request's letters go to — the gate verdict, the merge, the deploy to each integration environment and an integration failure — as the description's praxis block names it with notify: agent:<id> or notify: human:<id>. Optional and never part of the gate: absent when the block names nobody or names something that is not an address. A pull request of a DevOps change that names nobody writes to the change's owner.
20141
+ */
20142
+ notify?: string;
19971
20143
  /**
19972
20144
  * The exposure the description's praxis block declares, or null when the description declares none — which is itself a failed gate check. The kind decides which other checks apply: a flag adds its key and observe window, unwired and expand-contract add a reason, expand-contract also a phase, and direct is judged by a person.
19973
20145
  */
@@ -21269,7 +21441,7 @@ export type MediaLibrary = {
21269
21441
  };
21270
21442
  export type MediaMediaError = {
21271
21443
  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';
21444
+ code: 'LIBRARY_NOT_FOUND' | 'ASSET_NOT_FOUND' | 'WORK_NOT_FOUND' | 'REVISION_CONFLICT' | 'JOB_NOT_FOUND' | 'UNDERSTANDING_NOT_FOUND' | 'ASSET_VERSION_CHANGED' | 'LIBRARY_INVALID_STATE' | 'INVALID_PARAMS' | 'INVALID_EXPRESSION' | 'UNSUPPORTED' | 'NOT_IMPLEMENTED' | 'FILE_TOO_LARGE' | 'FILE_EMPTY' | 'FILE_NOT_READY' | 'UNSUPPORTED_MEDIA' | 'FETCH_FAILED' | 'LIMIT_EXCEEDED' | 'CHUNK_INVALID' | 'RATE_LIMITED' | 'CAPACITY' | 'UPSTREAM_FAILED' | 'CONTENT_REJECTED' | 'GENERATION_FAILED' | 'BINDING_READ_ONLY' | 'OPERATION_NOT_SUPPORTED' | 'MODEL_PENDING' | 'REFERENCE_TYPE_MISMATCH' | 'CONSENT_REQUIRED' | 'LIBRARY_IS_DEFAULT' | 'JOB_INVALID_STATE' | 'VOICE_TRAINING' | 'INSUFFICIENT_BALANCE';
21273
21445
  message: string;
21274
21446
  details: string | null;
21275
21447
  };
@@ -22798,6 +22970,107 @@ export type MediaVoiceDesignCreateInput = {
22798
22970
  */
22799
22971
  description?: string;
22800
22972
  };
22973
+ /**
22974
+ * A work: an object of the library above its assets that orders references to them and adds a title and text. It copies no file and changes no asset.
22975
+ */
22976
+ export type MediaWork = {
22977
+ /**
22978
+ * Always work.
22979
+ */
22980
+ object: 'work';
22981
+ /**
22982
+ * Work id (wrk_…).
22983
+ */
22984
+ id: string;
22985
+ /**
22986
+ * Library the work belongs to.
22987
+ */
22988
+ library_id: MediaLibraryId;
22989
+ /**
22990
+ * The work’s kind.
22991
+ */
22992
+ kind: MediaWorkKind;
22993
+ /**
22994
+ * The title, copied from body.title.
22995
+ */
22996
+ title: string;
22997
+ /**
22998
+ * Groups the platform versions of one story; null when unset.
22999
+ */
23000
+ series: string | null;
23001
+ /**
23002
+ * The kind’s body as stored.
23003
+ */
23004
+ body: MediaWorkBody;
23005
+ /**
23006
+ * Caller data such as source, published links and numbers; changed with a JSON Merge Patch.
23007
+ */
23008
+ custom: MediaWorkCustom;
23009
+ /**
23010
+ * Asset ids the body names that have been deleted since; the body keeps them in place and the Console draws a placeholder there.
23011
+ */
23012
+ missing: Array<string>;
23013
+ /**
23014
+ * Bumped by every change; send it back as if_revision to update only an unchanged work.
23015
+ */
23016
+ revision: number;
23017
+ /**
23018
+ * Who created the work: human:<user id>, agent:<agent id> or system.
23019
+ */
23020
+ created_by: string;
23021
+ /**
23022
+ * When the work was created.
23023
+ */
23024
+ created_at: MediaIsoTimestamp;
23025
+ /**
23026
+ * When the work last changed.
23027
+ */
23028
+ updated_at: MediaIsoTimestamp;
23029
+ /**
23030
+ * Only with expand=assets: every live referenced asset by id, with its URLs and size.
23031
+ */
23032
+ assets?: {
23033
+ [key: string]: MediaWorkAsset;
23034
+ };
23035
+ };
23036
+ /**
23037
+ * Kind of work: gallery (图文), article (长文) or product_listing (商品图组). short_video is reserved.
23038
+ */
23039
+ export type MediaWorkKind = 'gallery' | 'article' | 'product_listing' | 'blocks';
23040
+ export type MediaWorkBody = MediaGalleryBody | MediaArticleBody | MediaProductListingBody | MediaBlocksBody;
23041
+ export type MediaWorkCustom = {
23042
+ [key: string]: unknown;
23043
+ };
23044
+ /**
23045
+ * A page of work summaries.
23046
+ */
23047
+ export type MediaWorkPage = {
23048
+ /**
23049
+ * Works in this page, most recently changed first.
23050
+ */
23051
+ data: Array<MediaWorkSummary>;
23052
+ /**
23053
+ * Cursor for the next page, or null when there are no more works.
23054
+ */
23055
+ next_cursor: string | null;
23056
+ };
23057
+ /**
23058
+ * The answer to deleting a work.
23059
+ */
23060
+ export type MediaDeletedWork = {
23061
+ /**
23062
+ * Id of the deleted work.
23063
+ */
23064
+ id: string;
23065
+ /**
23066
+ * Always work.
23067
+ */
23068
+ object: 'work';
23069
+ /**
23070
+ * Always true: the work is deleted; every asset it named is unchanged.
23071
+ */
23072
+ deleted: true;
23073
+ };
22801
23074
  /**
22802
23075
  * One page of type registrations; types are few enough that this face returns them in a single page.
22803
23076
  */
@@ -34932,6 +35205,14 @@ export type SandboxSandboxNetworkConfig = {
34932
35205
  rules?: {
34933
35206
  [key: string]: Array<SandboxSandboxNetworkRule>;
34934
35207
  };
35208
+ /**
35209
+ * Own face, persistent sandboxes only (autoPause: true, or ephemeral: false): true gives the sandbox one fixed public egress IP for its whole life, held through pause and resume and released when the sandbox is deleted. Without it the egress IP is not stable: it changes when a spot machine is reclaimed, when a paused machine starts again, and when the machine is rebuilt. An ephemeral sandbox returns INVALID_PARAMS; the E2B face refuses the field; it is placed only on capacity that declares static IPs, and without such capacity the create does not start (it never falls back to a changing IP). Billed as the usage item sandbox:public_ip:hours from allocation to release, paused time included, plus outbound traffic as usual.
35210
+ */
35211
+ staticEgressIp?: boolean;
35212
+ /**
35213
+ * Own face, read-only: the fixed public egress IP of a sandbox created with staticEgressIp: true, present once the machine has bound it; add this address to the IP allowlist of the service you call (for example a WeCom trusted IP list). Absent on a sandbox that did not ask for a static IP, because its public address can change.
35214
+ */
35215
+ readonly egressIp?: string;
34935
35216
  };
34936
35217
  /**
34937
35218
  * Sandbox lifecycle policy returned by sandbox info.
@@ -36642,11 +36923,11 @@ export type AutomationActionHost = 'builtin' | 'isolate' | 'sandbox';
36642
36923
  */
36643
36924
  export type AutomationSubject = {
36644
36925
  /**
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.
36926
+ * Principal type. user is a signed-in user; api_key is a platform API key; agent is an agent; run is an action performed by a run itself (for example a parent run); trigger is a trigger; application is an application.
36646
36927
  */
36647
36928
  type: 'user' | 'api_key' | 'agent' | 'run' | 'trigger';
36648
36929
  /**
36649
- * Principal identifier whose meaning follows type: a user, API key, agent, run or trigger id. Treat it as an opaque string.
36930
+ * Principal identifier whose meaning follows type: a user, API key, agent, run, trigger or application id. Treat it as an opaque string.
36650
36931
  */
36651
36932
  id: string;
36652
36933
  };
@@ -40205,6 +40486,10 @@ export type DevopsUnitGit = {
40205
40486
  * The ref holding the unit's work in progress, or null when none was recorded.
40206
40487
  */
40207
40488
  wipRef: string | null;
40489
+ /**
40490
+ * The branch's head on the remote as of the last fetch: the value units push wants as expectedHead. Absent before the first observation or when the branch has no upstream. Call fetch first when someone else may have pushed.
40491
+ */
40492
+ remoteHead?: string;
40208
40493
  /**
40209
40494
  * RFC 3339 UTC time these facts were observed, or null before the first observation.
40210
40495
  */
@@ -41374,7 +41659,7 @@ export type MediaGenerationType = 'image' | 'video' | 'speech' | 'music' | 'soun
41374
41659
  * Edit operations: the change this step applied to its parent asset.
41375
41660
  */
41376
41661
  export type MediaGenerationOperation = 'generate' | 'clone' | 'tag' | 'untag' | 'set_context' | 'move' | 'delete' | 'reprocess' | 'variations' | 'upscale' | 'outpaint' | 'inpaint' | 'erase' | 'replace_object' | 'recolor' | 'remove_background' | 'replace_background' | 'to_video' | 'extend' | 'edit' | 'lip_sync' | 'frame' | 'to_gif' | 'voice_change' | 'resynthesize';
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';
41662
+ export type MediaMediaErrorCode = 'LIBRARY_NOT_FOUND' | 'ASSET_NOT_FOUND' | 'WORK_NOT_FOUND' | 'REVISION_CONFLICT' | 'JOB_NOT_FOUND' | 'UNDERSTANDING_NOT_FOUND' | 'ASSET_VERSION_CHANGED' | 'LIBRARY_INVALID_STATE' | 'INVALID_PARAMS' | 'INVALID_EXPRESSION' | 'UNSUPPORTED' | 'NOT_IMPLEMENTED' | 'FILE_TOO_LARGE' | 'FILE_EMPTY' | 'FILE_NOT_READY' | 'UNSUPPORTED_MEDIA' | 'FETCH_FAILED' | 'LIMIT_EXCEEDED' | 'CHUNK_INVALID' | 'RATE_LIMITED' | 'CAPACITY' | 'UPSTREAM_FAILED' | 'CONTENT_REJECTED' | 'GENERATION_FAILED' | 'BINDING_READ_ONLY' | 'OPERATION_NOT_SUPPORTED' | 'MODEL_PENDING' | 'REFERENCE_TYPE_MISMATCH' | 'CONSENT_REQUIRED' | 'LIBRARY_IS_DEFAULT' | 'JOB_INVALID_STATE' | 'VOICE_TRAINING' | 'INSUFFICIENT_BALANCE';
41378
41663
  /**
41379
41664
  * State of a requested generation output.
41380
41665
  */
@@ -41720,6 +42005,192 @@ export type MediaHlsRendition = {
41720
42005
  state: MediaHlsRenditionState;
41721
42006
  };
41722
42007
  export type MediaVoiceConsentId = string;
42008
+ /**
42009
+ * One referenced asset as expand=assets returns it: enough to draw it without another call.
42010
+ */
42011
+ export type MediaWorkAsset = {
42012
+ /**
42013
+ * The asset’s material type, such as image or video.
42014
+ */
42015
+ type: MediaMaterialType;
42016
+ /**
42017
+ * Short-lived delivery URL of the asset.
42018
+ */
42019
+ url: string;
42020
+ /**
42021
+ * Short-lived URL of a small picture: the poster of a video, otherwise the asset itself.
42022
+ */
42023
+ thumbnail_url: string;
42024
+ /**
42025
+ * Width in pixels when known.
42026
+ */
42027
+ width?: number;
42028
+ /**
42029
+ * Height in pixels when known.
42030
+ */
42031
+ height?: number;
42032
+ /**
42033
+ * The asset’s display name.
42034
+ */
42035
+ display_name: string;
42036
+ };
42037
+ /**
42038
+ * Body of a gallery (图文). Order is the order of items.
42039
+ */
42040
+ export type MediaGalleryBody = {
42041
+ /**
42042
+ * Title, 1 to 100 characters.
42043
+ */
42044
+ title: string;
42045
+ /**
42046
+ * Body text, at most 10000 characters.
42047
+ */
42048
+ text?: string;
42049
+ /**
42050
+ * Topics without the # sign, at most 30 of up to 40 characters.
42051
+ */
42052
+ topics?: Array<string>;
42053
+ /**
42054
+ * Optional cover: an image or sticker asset of this library; without it the first picture is the cover.
42055
+ */
42056
+ cover?: string;
42057
+ /**
42058
+ * Pictures, videos and text segments in order, 1 to 100 entries with at least one asset; each asset appears once.
42059
+ */
42060
+ items: Array<MediaGalleryItem>;
42061
+ /**
42062
+ * Display style; defaults to xiaohongshu in the Console.
42063
+ */
42064
+ style?: MediaWorkStyle;
42065
+ };
42066
+ /**
42067
+ * Body of an article (长文). Inline images live in the Markdown as ![alt](asset:<asset_id>) and sit where they are written.
42068
+ */
42069
+ export type MediaArticleBody = {
42070
+ /**
42071
+ * Title, 1 to 200 characters.
42072
+ */
42073
+ title: string;
42074
+ /**
42075
+ * Optional summary or digest, at most 500 characters.
42076
+ */
42077
+ summary?: string;
42078
+ /**
42079
+ * Optional author name, at most 60 characters.
42080
+ */
42081
+ author?: string;
42082
+ /**
42083
+ * The article in Markdown, 1 to 100000 characters; every asset:<asset_id> image must be an image or sticker of this library.
42084
+ */
42085
+ body: string;
42086
+ /**
42087
+ * Optional cover: an image or sticker asset of this library.
42088
+ */
42089
+ cover?: string;
42090
+ /**
42091
+ * Display style; defaults to wechat_mp in the Console.
42092
+ */
42093
+ style?: MediaWorkStyle;
42094
+ };
42095
+ /**
42096
+ * Body of a product listing (商品图组). Images and copy only: price, stock and other business data are managed outside the library and are refused.
42097
+ */
42098
+ export type MediaProductListingBody = {
42099
+ /**
42100
+ * Listing title, 1 to 200 characters.
42101
+ */
42102
+ title: string;
42103
+ /**
42104
+ * Selling points in order, at most 10 of up to 100 characters.
42105
+ */
42106
+ selling_points?: Array<string>;
42107
+ /**
42108
+ * Parameter rows in order, at most 50.
42109
+ */
42110
+ attributes?: Array<MediaListingAttribute>;
42111
+ /**
42112
+ * Main images in order, 1 to 20 image or sticker assets of this library.
42113
+ */
42114
+ main: Array<string>;
42115
+ /**
42116
+ * Detail images in order, at most 100 image or sticker assets of this library.
42117
+ */
42118
+ detail?: Array<string>;
42119
+ /**
42120
+ * SKUs in order, at most 200.
42121
+ */
42122
+ skus?: Array<MediaListingSku>;
42123
+ /**
42124
+ * Optional product element (material_type product) this listing shows.
42125
+ */
42126
+ product?: string;
42127
+ /**
42128
+ * Display style; defaults to generic in the Console.
42129
+ */
42130
+ style?: MediaWorkStyle;
42131
+ };
42132
+ /**
42133
+ * Body of a general work (通用作品): Editor.js saved data plus one field of ours, a required title. Business attributes go in the work’s custom, not in a block.
42134
+ */
42135
+ export type MediaBlocksBody = {
42136
+ /**
42137
+ * The work’s title, 1 to 200 characters, written explicitly as in the other kinds; lists and sorting use it.
42138
+ */
42139
+ title: string;
42140
+ /**
42141
+ * Optional Editor.js save time in milliseconds, kept as sent.
42142
+ */
42143
+ time?: number;
42144
+ /**
42145
+ * The blocks in order, 1 to 500.
42146
+ */
42147
+ blocks: Array<MediaEditorBlock>;
42148
+ /**
42149
+ * Optional Editor.js version string, kept as sent.
42150
+ */
42151
+ version?: string;
42152
+ };
42153
+ /**
42154
+ * One work in a list.
42155
+ */
42156
+ export type MediaWorkSummary = {
42157
+ /**
42158
+ * Always work.
42159
+ */
42160
+ object: 'work';
42161
+ /**
42162
+ * Work id (wrk_…).
42163
+ */
42164
+ id: string;
42165
+ /**
42166
+ * The work’s kind.
42167
+ */
42168
+ kind: MediaWorkKind;
42169
+ /**
42170
+ * The work’s title.
42171
+ */
42172
+ title: string;
42173
+ /**
42174
+ * The work’s series, or null.
42175
+ */
42176
+ series: string | null;
42177
+ /**
42178
+ * Short-lived URL of the cover picture, or null when it is missing.
42179
+ */
42180
+ cover_url: string | null;
42181
+ /**
42182
+ * How many distinct assets the body orders, cover and product element excluded.
42183
+ */
42184
+ item_count: number;
42185
+ /**
42186
+ * How many referenced assets have been deleted since.
42187
+ */
42188
+ missing_count: number;
42189
+ /**
42190
+ * When the work last changed.
42191
+ */
42192
+ updated_at: MediaIsoTimestamp;
42193
+ };
41723
42194
  /**
41724
42195
  * A kind of entity the graph accepts, for example a file or a customer.
41725
42196
  */
@@ -48068,7 +48539,7 @@ export type DevopsPlannedSkip = {
48068
48539
  /**
48069
48540
  * Why it is left out, which is what tells a deliberate skip apart from an oversight.
48070
48541
  */
48071
- reason: 'unchanged' | 'newer_checkpoint' | 'not_requested' | 'callee_excluded' | 'artifact_identical';
48542
+ reason: 'unchanged' | 'newer_checkpoint' | 'not_requested' | 'callee_excluded' | 'not_deployed_upstream' | 'artifact_identical';
48072
48543
  };
48073
48544
  /**
48074
48545
  * The migrations one target has pending, as the plan found them.
@@ -48704,7 +49175,7 @@ export type MediaSemanticMatch = {
48704
49175
  /**
48705
49176
  * Type of change recorded for a library, asset, processing task, search index or batch.
48706
49177
  */
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';
49178
+ 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
49179
  /**
48709
49180
  * One picture an element names, with the word the caller uses for that view.
48710
49181
  */
@@ -48800,6 +49271,75 @@ export type MediaGenerationCapabilityModel = {
48800
49271
  * Readiness of one rung or of the ladder it is part of.
48801
49272
  */
48802
49273
  export type MediaHlsRenditionState = 'processing' | 'ready' | 'failed';
49274
+ /**
49275
+ * One position of a gallery: a picture or video of this library ({asset_id, caption?}) or a text segment between pictures ({text}).
49276
+ */
49277
+ export type MediaGalleryItem = {
49278
+ /**
49279
+ * An image, sticker or video asset of this library; its position in items is its position in the gallery.
49280
+ */
49281
+ asset_id: string;
49282
+ /**
49283
+ * Optional caption for this picture, at most 1000 characters.
49284
+ */
49285
+ caption?: string;
49286
+ } | {
49287
+ /**
49288
+ * A text segment shown between pictures, at most 1000 characters.
49289
+ */
49290
+ text: string;
49291
+ };
49292
+ /**
49293
+ * Which platform look the Console draws the work in; a display hint, never a platform check.
49294
+ */
49295
+ export type MediaWorkStyle = 'xiaohongshu' | 'wechat_mp' | 'jike' | 'generic';
49296
+ /**
49297
+ * One parameter row of a listing.
49298
+ */
49299
+ export type MediaListingAttribute = {
49300
+ /**
49301
+ * Parameter name such as 容量, at most 40 characters.
49302
+ */
49303
+ name: string;
49304
+ /**
49305
+ * Parameter value such as 500ml, at most 200 characters.
49306
+ */
49307
+ value: string;
49308
+ };
49309
+ /**
49310
+ * One SKU of a listing.
49311
+ */
49312
+ export type MediaListingSku = {
49313
+ /**
49314
+ * The SKU’s value on each spec axis, such as {"颜色":"白"}; 1 to 5 axes; the keys are kept as written.
49315
+ */
49316
+ spec: {
49317
+ [key: string]: string;
49318
+ };
49319
+ /**
49320
+ * Optional picture of this SKU: an image or sticker asset of this library.
49321
+ */
49322
+ asset_id?: string;
49323
+ };
49324
+ /**
49325
+ * 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.
49326
+ */
49327
+ export type MediaEditorBlock = {
49328
+ /**
49329
+ * Block id, 1–64 letters, digits, _ or -, unique in the body.
49330
+ */
49331
+ id: string;
49332
+ /**
49333
+ * The official Editor.js block type.
49334
+ */
49335
+ type: 'paragraph' | 'header' | 'list' | 'quote' | 'delimiter' | 'image' | 'table' | 'checklist' | 'warning' | 'embed';
49336
+ /**
49337
+ * The block’s data in that type’s Editor.js shape.
49338
+ */
49339
+ data: {
49340
+ [key: string]: unknown;
49341
+ };
49342
+ };
48803
49343
  /**
48804
49344
  * Auto-resume enabled flag for paused sandboxes. Default false.
48805
49345
  */
@@ -50923,6 +51463,58 @@ export type UpdateMediaPipelineRequestWritable = {
50923
51463
  * Models to use for completion
50924
51464
  */
50925
51465
  export type OpenaiChatModelNamesWritable = Array<OpenaiModelName & unknown>;
51466
+ export type SandboxSandboxDetailWritable = {
51467
+ /**
51468
+ * Identifier of the template from which is the sandbox created
51469
+ */
51470
+ templateID: string;
51471
+ /**
51472
+ * Alias of the template
51473
+ */
51474
+ alias?: string;
51475
+ /**
51476
+ * Identifier of the sandbox
51477
+ */
51478
+ sandboxID: string;
51479
+ /**
51480
+ * Identifier of the client
51481
+ *
51482
+ * @deprecated
51483
+ */
51484
+ clientID: string;
51485
+ /**
51486
+ * Time when the sandbox was started
51487
+ */
51488
+ startedAt: string;
51489
+ /**
51490
+ * Time when the sandbox will expire
51491
+ */
51492
+ endAt: string;
51493
+ envdVersion: SandboxEnvdVersion;
51494
+ /**
51495
+ * Access token used for envd communication
51496
+ */
51497
+ envdAccessToken?: string;
51498
+ /**
51499
+ * Whether internet access was explicitly enabled or disabled for the sandbox. Null means it was not explicitly set.
51500
+ */
51501
+ allowInternetAccess?: boolean;
51502
+ /**
51503
+ * Base domain where the sandbox traffic is accessible
51504
+ */
51505
+ domain?: string;
51506
+ cpuCount: SandboxCpuCount;
51507
+ memoryMB: SandboxMemoryMb;
51508
+ diskSizeMB: SandboxDiskSizeMb;
51509
+ metadata?: SandboxSandboxMetadata;
51510
+ state: SandboxSandboxState;
51511
+ network?: SandboxSandboxNetworkConfigWritable;
51512
+ lifecycle?: SandboxSandboxLifecycle;
51513
+ /**
51514
+ * Volumes mounted into the sandbox.
51515
+ */
51516
+ volumeMounts?: Array<SandboxSandboxVolumeMount>;
51517
+ };
50926
51518
  /**
50927
51519
  * Free-form string key/value pairs stored with the session, changed through sessions.update patch semantics.
50928
51520
  */
@@ -51502,6 +52094,94 @@ export type MediaSemanticSearchResultWritable = {
51502
52094
  */
51503
52095
  not_ready_excluded: number;
51504
52096
  };
52097
+ /**
52098
+ * Sandbox creation request. All system communication with the sandbox is always secured; the template's envd version must support secured access.
52099
+ */
52100
+ export type SandboxNewSandboxV2Writable = {
52101
+ /**
52102
+ * Identifier of the required template
52103
+ */
52104
+ templateID: string;
52105
+ /**
52106
+ * Lifetime of the new sandbox in seconds. Defaults to 300 seconds when omitted.
52107
+ */
52108
+ timeout?: number;
52109
+ /**
52110
+ * 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.
52111
+ */
52112
+ autoPause?: boolean;
52113
+ /**
52114
+ * 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).
52115
+ */
52116
+ autoPauseMemory?: boolean;
52117
+ autoResume?: SandboxSandboxAutoResumeConfig;
52118
+ /**
52119
+ * 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.
52120
+ */
52121
+ allow_internet_access?: boolean;
52122
+ network?: SandboxSandboxNetworkConfigWritable;
52123
+ metadata?: SandboxSandboxMetadata;
52124
+ envVars?: SandboxEnvVars;
52125
+ mcp?: SandboxMcp;
52126
+ iam?: SandboxSandboxIam;
52127
+ /**
52128
+ * Volumes to mount into the sandbox, each with the volume name and the path inside the sandbox.
52129
+ */
52130
+ volumeMounts?: Array<SandboxSandboxVolumeMount>;
52131
+ /**
52132
+ * 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.
52133
+ */
52134
+ ephemeral?: boolean;
52135
+ /**
52136
+ * 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.
52137
+ */
52138
+ size?: string;
52139
+ /**
52140
+ * Own face: a display name for the sandbox, 1 to 64 characters. Omitted, one is generated from the template.
52141
+ */
52142
+ name?: string;
52143
+ /**
52144
+ * 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.
52145
+ */
52146
+ waitForReady?: boolean;
52147
+ /**
52148
+ * Own face: what happens at the timeout. pause needs ephemeral: false; must agree with autoPause when both are sent.
52149
+ */
52150
+ onExpire?: 'kill' | 'pause';
52151
+ /**
52152
+ * Own face, persistent sandboxes only: pause after this many milliseconds without activity; null turns the idle pause off.
52153
+ */
52154
+ idleTimeout?: number;
52155
+ /**
52156
+ * 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.
52157
+ */
52158
+ idleActivity?: 'traffic' | 'caller';
52159
+ /**
52160
+ * 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.
52161
+ */
52162
+ sku?: string;
52163
+ /**
52164
+ * 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.
52165
+ */
52166
+ kind?: 'run' | 'job' | 'batch' | 'computer' | 'compat';
52167
+ /**
52168
+ * 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.
52169
+ */
52170
+ interruptible?: boolean;
52171
+ /**
52172
+ * 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.
52173
+ */
52174
+ onLoss?: 'fail' | 'rebuild';
52175
+ /**
52176
+ * 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.
52177
+ */
52178
+ outputs?: Array<{
52179
+ /**
52180
+ * Absolute path of a directory or file inside the sandbox.
52181
+ */
52182
+ path: string;
52183
+ }>;
52184
+ };
51505
52185
  /**
51506
52186
  * Arguments the model passed to the tool.
51507
52187
  */
@@ -51580,6 +52260,43 @@ export type AnthropicAnonymous204Writable = {
51580
52260
  export type AnthropicAnonymous206Writable = {
51581
52261
  [key: string]: unknown;
51582
52262
  };
52263
+ /**
52264
+ * Network policy of the sandbox: public access, egress allow and deny lists and proxy.
52265
+ */
52266
+ export type SandboxSandboxNetworkConfigWritable = {
52267
+ /**
52268
+ * Specify if the sandbox URLs should be accessible only with authentication.
52269
+ */
52270
+ allowPublicTraffic?: boolean;
52271
+ /**
52272
+ * 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.
52273
+ */
52274
+ allowOut?: Array<string>;
52275
+ /**
52276
+ * List of denied CIDR blocks or IP addresses for egress traffic. Domain names are not supported for deny rules.
52277
+ */
52278
+ denyOut?: Array<string>;
52279
+ egressProxy?: SandboxSandboxEgressProxyConfig;
52280
+ /**
52281
+ * Specify host mask which will be used for all sandbox requests
52282
+ */
52283
+ maskRequestHost?: string;
52284
+ /**
52285
+ * Unlike E2B, network.httpsPorts is rejected; omit it when creating a sandbox.
52286
+ */
52287
+ httpsPorts?: Array<number>;
52288
+ /**
52289
+ * 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.
52290
+ *
52291
+ */
52292
+ rules?: {
52293
+ [key: string]: Array<SandboxSandboxNetworkRule>;
52294
+ };
52295
+ /**
52296
+ * 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.
52297
+ */
52298
+ staticEgressIp?: boolean;
52299
+ };
51583
52300
  /**
51584
52301
  * Free-form string key/value pairs.
51585
52302
  */
@@ -54307,6 +55024,86 @@ export type ListAgentInboxLettersResponses = {
54307
55024
  };
54308
55025
  };
54309
55026
  export type ListAgentInboxLettersResponse = ListAgentInboxLettersResponses[keyof ListAgentInboxLettersResponses];
55027
+ export type ListAgentDeviceLocalSessionsData = {
55028
+ body?: never;
55029
+ path: {
55030
+ /**
55031
+ * The BYOA agent: its agent_… id, eight character identity number or handle, from agents.list; resolved in your organization. Also accepts an 8-character identity number (0–9, A–Z); malformed, absent and foreign references return 404, and response ids always use agent_….
55032
+ */
55033
+ agent_id: string;
55034
+ /**
55035
+ * The paired desktop device (byd_ and 26 hex characters) whose sessions to list; you must be the person who paired it.
55036
+ */
55037
+ device_id: string;
55038
+ };
55039
+ query: {
55040
+ /**
55041
+ * The absolute directory on the device, exactly as the device registered it and bound it to this agent.
55042
+ */
55043
+ cwd: string;
55044
+ /**
55045
+ * The next_cursor of the previous page; leave it out for the first page.
55046
+ */
55047
+ cursor?: string;
55048
+ };
55049
+ url: '/agent/v1/agents/{agent_id}/devices/{device_id}/local-sessions';
55050
+ };
55051
+ export type ListAgentDeviceLocalSessionsErrors = {
55052
+ /**
55053
+ * INVALID_PARAMS: cwd is missing, not absolute or not bound to this agent on that device, the device is not one you paired, or a query parameter is unsupported; ASSUME_AGENT_REQUIRED: the agent is not a BYOA agent.
55054
+ */
55055
+ 400: unknown;
55056
+ /**
55057
+ * Authenticate with your own API key or a console session; an agent's or robot's credential cannot list a person's device.
55058
+ */
55059
+ 401: unknown;
55060
+ /**
55061
+ * permission_error: the credential's role or bound resources do not allow this operation. Use a key with access to the agent domain and its resources.
55062
+ */
55063
+ 403: AgentError;
55064
+ /**
55065
+ * AGENT_NOT_FOUND: no agent with this reference exists in your organization; list agents with agents.list.
55066
+ */
55067
+ 404: unknown;
55068
+ /**
55069
+ * DEVICE_NOT_READY: the device is offline; retry once it is connected. DEVICE_TIMEOUT (504) means it is connected but did not answer in time.
55070
+ */
55071
+ 503: unknown;
55072
+ };
55073
+ export type ListAgentDeviceLocalSessionsError = ListAgentDeviceLocalSessionsErrors[keyof ListAgentDeviceLocalSessionsErrors];
55074
+ export type ListAgentDeviceLocalSessionsResponses = {
55075
+ /**
55076
+ * One page of the device's sessions for that directory, newest first.
55077
+ */
55078
+ 200: {
55079
+ /**
55080
+ * The sessions of this page; empty when the directory has none.
55081
+ */
55082
+ data: Array<{
55083
+ /**
55084
+ * The Claude Code session id on the device; pass it as runtime.resume_session_id when creating a session to continue it.
55085
+ */
55086
+ id: string;
55087
+ /**
55088
+ * The session's title as Claude Code shows it; empty when it has none.
55089
+ */
55090
+ title: string;
55091
+ /**
55092
+ * When the session was last written to, RFC 3339; sessions are ordered newest first.
55093
+ */
55094
+ updated_at: string | null;
55095
+ /**
55096
+ * The directory the session ran in on the device.
55097
+ */
55098
+ cwd: string | null;
55099
+ }>;
55100
+ /**
55101
+ * Pass as cursor for the next page; null on the last page.
55102
+ */
55103
+ next_cursor: string | null;
55104
+ };
55105
+ };
55106
+ export type ListAgentDeviceLocalSessionsResponse = ListAgentDeviceLocalSessionsResponses[keyof ListAgentDeviceLocalSessionsResponses];
54310
55107
  export type CreateAgentLoginIntentData = {
54311
55108
  body?: never;
54312
55109
  path?: never;
@@ -55601,7 +56398,7 @@ export type ApplyAgentVersionResponses = {
55601
56398
  */
55602
56399
  environment_id?: string | null;
55603
56400
  /**
55604
- * 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.
56401
+ * 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.
55605
56402
  */
55606
56403
  vault_ids?: Array<string>;
55607
56404
  /**
@@ -56861,7 +57658,7 @@ export type UnarchiveAgentResponses = {
56861
57658
  */
56862
57659
  environment_id?: string | null;
56863
57660
  /**
56864
- * 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.
57661
+ * 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.
56865
57662
  */
56866
57663
  vault_ids?: Array<string>;
56867
57664
  /**
@@ -59330,9 +60127,13 @@ export type ComputersRetrieveResponse = ComputersRetrieveResponses[keyof Compute
59330
60127
  export type ComputersUpdateData = {
59331
60128
  body: {
59332
60129
  /**
59333
- * Name of the entry or object.
60130
+ * New display name, 1 to 255 characters after trimming. Omit to keep the current name.
59334
60131
  */
59335
- name: string;
60132
+ name?: string;
60133
+ /**
60134
+ * 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.
60135
+ */
60136
+ environment_id?: string | null;
59336
60137
  };
59337
60138
  path: {
59338
60139
  /**
@@ -61502,7 +62303,7 @@ export type ComputersFilesConvertResponse = ComputersFilesConvertResponses[keyof
61502
62303
  export type ConnectComputerData = {
61503
62304
  body?: {
61504
62305
  /**
61505
- * 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.
62306
+ * Accepted for compatibility and ignored: light and heavy both reach the same machine, because a Computer is one machine. Omit it.
61506
62307
  */
61507
62308
  need?: 'light' | 'heavy';
61508
62309
  };
@@ -69106,7 +69907,7 @@ export type BrowserListSessionsErrors = {
69106
69907
  */
69107
69908
  402: BrowserError;
69108
69909
  /**
69109
- * PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
69910
+ * PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
69110
69911
  */
69111
69912
  403: BrowserError;
69112
69913
  /**
@@ -69187,7 +69988,7 @@ export type BrowserCreateSessionErrors = {
69187
69988
  */
69188
69989
  402: BrowserError;
69189
69990
  /**
69190
- * PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
69991
+ * PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
69191
69992
  */
69192
69993
  403: BrowserError;
69193
69994
  /**
@@ -69273,7 +70074,7 @@ export type BrowserGetSessionErrors = {
69273
70074
  */
69274
70075
  402: BrowserError;
69275
70076
  /**
69276
- * PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
70077
+ * PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
69277
70078
  */
69278
70079
  403: BrowserError;
69279
70080
  /**
@@ -69355,7 +70156,7 @@ export type BrowserCloseSessionErrors = {
69355
70156
  */
69356
70157
  402: BrowserError;
69357
70158
  /**
69358
- * PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
70159
+ * PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
69359
70160
  */
69360
70161
  403: BrowserError;
69361
70162
  /**
@@ -69432,7 +70233,7 @@ export type BrowserGetDebugErrors = {
69432
70233
  */
69433
70234
  402: BrowserError;
69434
70235
  /**
69435
- * PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
70236
+ * PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
69436
70237
  */
69437
70238
  403: BrowserError;
69438
70239
  /**
@@ -69522,7 +70323,7 @@ export type BrowserListEventsErrors = {
69522
70323
  */
69523
70324
  402: BrowserError;
69524
70325
  /**
69525
- * PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
70326
+ * PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
69526
70327
  */
69527
70328
  403: BrowserError;
69528
70329
  /**
@@ -69805,7 +70606,7 @@ export type BrowserRunPageActionErrors = {
69805
70606
  */
69806
70607
  402: BrowserError;
69807
70608
  /**
69808
- * PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
70609
+ * PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
69809
70610
  */
69810
70611
  403: BrowserError;
69811
70612
  /**
@@ -70027,7 +70828,7 @@ export type BrowserRequestHandoffErrors = {
70027
70828
  */
70028
70829
  402: BrowserError;
70029
70830
  /**
70030
- * PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
70831
+ * PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
70031
70832
  */
70032
70833
  403: BrowserError;
70033
70834
  /**
@@ -70104,7 +70905,7 @@ export type BrowserCompleteHandoffErrors = {
70104
70905
  */
70105
70906
  402: BrowserError;
70106
70907
  /**
70107
- * PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
70908
+ * PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
70108
70909
  */
70109
70910
  403: BrowserError;
70110
70911
  /**
@@ -70190,7 +70991,7 @@ export type BrowserViewerHeartbeatErrors = {
70190
70991
  */
70191
70992
  402: BrowserError;
70192
70993
  /**
70193
- * PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
70994
+ * PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
70194
70995
  */
70195
70996
  403: BrowserError;
70196
70997
  /**
@@ -70272,7 +71073,7 @@ export type BrowserGetSessionFrameErrors = {
70272
71073
  */
70273
71074
  402: BrowserError;
70274
71075
  /**
70275
- * PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
71076
+ * PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
70276
71077
  */
70277
71078
  403: BrowserError;
70278
71079
  /**
@@ -70357,7 +71158,7 @@ export type BrowserListContextsErrors = {
70357
71158
  */
70358
71159
  402: BrowserError;
70359
71160
  /**
70360
- * PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
71161
+ * PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
70361
71162
  */
70362
71163
  403: BrowserError;
70363
71164
  /**
@@ -70434,331 +71235,42 @@ export type BrowserCreateContextData = {
70434
71235
  labels?: {
70435
71236
  [key: string]: string;
70436
71237
  };
70437
- };
70438
- path?: never;
70439
- query?: never;
70440
- url: '/browser/v1/contexts';
70441
- };
70442
- export type BrowserCreateContextErrors = {
70443
- /**
70444
- * INVALID_PARAMS / INVALID_FILTER / INVALID_PAGE_TOKEN
70445
- */
70446
- 400: BrowserError;
70447
- /**
70448
- * UNAUTHENTICATED / CONNECT_SIGNATURE_INVALID
70449
- */
70450
- 401: BrowserError;
70451
- /**
70452
- * INSUFFICIENT_BALANCE / QUOTA_EXHAUSTED
70453
- */
70454
- 402: BrowserError;
70455
- /**
70456
- * PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
70457
- */
70458
- 403: BrowserError;
70459
- /**
70460
- * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
70461
- */
70462
- 404: BrowserError;
70463
- /**
70464
- * SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
70465
- */
70466
- 409: BrowserError;
70467
- /**
70468
- * BROWSER_REVOKED
70469
- */
70470
- 410: BrowserError;
70471
- /**
70472
- * ACTION_RESULT_TOO_LARGE
70473
- */
70474
- 413: BrowserError;
70475
- /**
70476
- * CONCURRENCY_LIMIT / RATE_LIMITED / PROVIDER_CAPACITY
70477
- */
70478
- 429: BrowserError;
70479
- /**
70480
- * INTERNAL
70481
- */
70482
- 500: BrowserError;
70483
- /**
70484
- * NOT_IMPLEMENTED / PROVIDER_UNSUPPORTED
70485
- */
70486
- 501: BrowserError;
70487
- /**
70488
- * PROVIDER_FAILED
70489
- */
70490
- 502: BrowserError;
70491
- /**
70492
- * BROWSER_OFFLINE / SERVICE_UNAVAILABLE
70493
- */
70494
- 503: BrowserError;
70495
- /**
70496
- * ACTION_TIMEOUT
70497
- */
70498
- 504: BrowserError;
70499
- };
70500
- export type BrowserCreateContextError = BrowserCreateContextErrors[keyof BrowserCreateContextErrors];
70501
- export type BrowserCreateContextResponses = {
70502
- /**
70503
- * 请求成功。
70504
- */
70505
- 201: BrowserContextCreateResult;
70506
- };
70507
- export type BrowserCreateContextResponse = BrowserCreateContextResponses[keyof BrowserCreateContextResponses];
70508
- export type BrowserDeleteContextData = {
70509
- body?: never;
70510
- path: {
70511
71238
  /**
70512
- * 登录态 ID;使用创建或列出登录态返回的 id,以 bsc_ 开头。
71239
+ * 给登录态绑定一个固定的外部代理(如住宅 IP),使用这个登录态的会话没有写 proxies 时都经它出网,让同一账号始终从同一个出口地址出去。只存保管库引用(password_secret),不存密码;会话自己写了 proxies 时以会话的为准。需要组织已开通容器后端,否则返回 501 PROVIDER_UNSUPPORTED。
70513
71240
  */
70514
- contextId: string;
70515
- };
70516
- query?: never;
70517
- url: '/browser/v1/contexts/{contextId}';
70518
- };
70519
- export type BrowserDeleteContextErrors = {
70520
- /**
70521
- * INVALID_PARAMS / INVALID_FILTER / INVALID_PAGE_TOKEN
70522
- */
70523
- 400: BrowserError;
70524
- /**
70525
- * UNAUTHENTICATED / CONNECT_SIGNATURE_INVALID
70526
- */
70527
- 401: BrowserError;
70528
- /**
70529
- * INSUFFICIENT_BALANCE / QUOTA_EXHAUSTED
70530
- */
70531
- 402: BrowserError;
70532
- /**
70533
- * PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
70534
- */
70535
- 403: BrowserError;
70536
- /**
70537
- * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
70538
- */
70539
- 404: BrowserError;
70540
- /**
70541
- * SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
70542
- */
70543
- 409: BrowserError;
70544
- /**
70545
- * BROWSER_REVOKED
70546
- */
70547
- 410: BrowserError;
70548
- /**
70549
- * ACTION_RESULT_TOO_LARGE
70550
- */
70551
- 413: BrowserError;
70552
- /**
70553
- * CONCURRENCY_LIMIT / RATE_LIMITED / PROVIDER_CAPACITY
70554
- */
70555
- 429: BrowserError;
70556
- /**
70557
- * INTERNAL
70558
- */
70559
- 500: BrowserError;
70560
- /**
70561
- * NOT_IMPLEMENTED / PROVIDER_UNSUPPORTED
70562
- */
70563
- 501: BrowserError;
70564
- /**
70565
- * PROVIDER_FAILED
70566
- */
70567
- 502: BrowserError;
70568
- /**
70569
- * BROWSER_OFFLINE / SERVICE_UNAVAILABLE
70570
- */
70571
- 503: BrowserError;
70572
- /**
70573
- * ACTION_TIMEOUT
70574
- */
70575
- 504: BrowserError;
70576
- };
70577
- export type BrowserDeleteContextError = BrowserDeleteContextErrors[keyof BrowserDeleteContextErrors];
70578
- export type BrowserDeleteContextResponses = {
70579
- /**
70580
- * 请求成功。
70581
- */
70582
- 200: {
70583
- /**
70584
- * 登录态及保存内容已删除,成功时固定返回 true。
70585
- */
70586
- deleted: true;
70587
- };
70588
- };
70589
- export type BrowserDeleteContextResponse = BrowserDeleteContextResponses[keyof BrowserDeleteContextResponses];
70590
- export type BrowserGetContextData = {
70591
- body?: never;
70592
- path: {
70593
- /**
70594
- * 登录态 ID;使用创建或列出登录态返回的 id,以 bsc_ 开头。
70595
- */
70596
- contextId: string;
70597
- };
70598
- query?: never;
70599
- url: '/browser/v1/contexts/{contextId}';
70600
- };
70601
- export type BrowserGetContextErrors = {
70602
- /**
70603
- * INVALID_PARAMS / INVALID_FILTER / INVALID_PAGE_TOKEN
70604
- */
70605
- 400: BrowserError;
70606
- /**
70607
- * UNAUTHENTICATED / CONNECT_SIGNATURE_INVALID
70608
- */
70609
- 401: BrowserError;
70610
- /**
70611
- * INSUFFICIENT_BALANCE / QUOTA_EXHAUSTED
70612
- */
70613
- 402: BrowserError;
70614
- /**
70615
- * PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
70616
- */
70617
- 403: BrowserError;
70618
- /**
70619
- * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
70620
- */
70621
- 404: BrowserError;
70622
- /**
70623
- * SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
70624
- */
70625
- 409: BrowserError;
70626
- /**
70627
- * BROWSER_REVOKED
70628
- */
70629
- 410: BrowserError;
70630
- /**
70631
- * ACTION_RESULT_TOO_LARGE
70632
- */
70633
- 413: BrowserError;
70634
- /**
70635
- * CONCURRENCY_LIMIT / RATE_LIMITED / PROVIDER_CAPACITY
70636
- */
70637
- 429: BrowserError;
70638
- /**
70639
- * INTERNAL
70640
- */
70641
- 500: BrowserError;
70642
- /**
70643
- * NOT_IMPLEMENTED / PROVIDER_UNSUPPORTED
70644
- */
70645
- 501: BrowserError;
70646
- /**
70647
- * PROVIDER_FAILED
70648
- */
70649
- 502: BrowserError;
70650
- /**
70651
- * BROWSER_OFFLINE / SERVICE_UNAVAILABLE
70652
- */
70653
- 503: BrowserError;
70654
- /**
70655
- * ACTION_TIMEOUT
70656
- */
70657
- 504: BrowserError;
70658
- };
70659
- export type BrowserGetContextError = BrowserGetContextErrors[keyof BrowserGetContextErrors];
70660
- export type BrowserGetContextResponses = {
70661
- /**
70662
- * 请求成功。
70663
- */
70664
- 200: BrowserContext;
70665
- };
70666
- export type BrowserGetContextResponse = BrowserGetContextResponses[keyof BrowserGetContextResponses];
70667
- export type BrowserUpdateContextData = {
70668
- body: {
70669
- /**
70670
- * 登录态名称;非空时为 1–128 个 ASCII 字母、数字或 . _ : -,在当前账户内唯一;空字符串表示不设名称或清除名称。
70671
- */
70672
- name?: '' | unknown;
70673
- /**
70674
- * 自定义字符串标签;最多 32 项,键最多 128 个 UTF-8 字节,值最多 1024 个 UTF-8 字节。 更新时整体替换;空对象清除标签,省略则保留。
70675
- */
70676
- labels?: {
70677
- [key: string]: string;
71241
+ proxy?: {
71242
+ /**
71243
+ * 固定为 external:经一个你自己的外部 HTTP 代理出网。
71244
+ */
71245
+ type: 'external';
71246
+ /**
71247
+ * 代理地址,host:port 或 http://host:port;只支持 HTTP 代理,不接受 socks5:// 等协议,也不接受 localhost 和内网、链路本地地址。
71248
+ */
71249
+ server: string;
71250
+ /**
71251
+ * 代理用户名;有密码时才能填,填了就必须同时给出密码。
71252
+ */
71253
+ username?: string;
71254
+ /**
71255
+ * 必须用这种形式:引用保管库里的代理密码,只在连接这个代理的主机时兑换,不会交给网页。登录态里只存引用,传明文 password 返回 400 INVALID_PARAMS。
71256
+ */
71257
+ password_secret?: {
71258
+ /**
71259
+ * 保存代理密码的保管库 ID,以 vlt_ 开头。
71260
+ */
71261
+ vault_id: string;
71262
+ /**
71263
+ * 保管库中该密码的密钥 ID(不是密码本身)。
71264
+ */
71265
+ secret: string;
71266
+ };
70678
71267
  };
70679
71268
  };
70680
- path: {
70681
- /**
70682
- * 登录态 ID;使用创建或列出登录态返回的 id,以 bsc_ 开头。
70683
- */
70684
- contextId: string;
70685
- };
70686
- query?: never;
70687
- url: '/browser/v1/contexts/{contextId}';
70688
- };
70689
- export type BrowserUpdateContextErrors = {
70690
- /**
70691
- * INVALID_PARAMS / INVALID_FILTER / INVALID_PAGE_TOKEN
70692
- */
70693
- 400: BrowserError;
70694
- /**
70695
- * UNAUTHENTICATED / CONNECT_SIGNATURE_INVALID
70696
- */
70697
- 401: BrowserError;
70698
- /**
70699
- * INSUFFICIENT_BALANCE / QUOTA_EXHAUSTED
70700
- */
70701
- 402: BrowserError;
70702
- /**
70703
- * PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
70704
- */
70705
- 403: BrowserError;
70706
- /**
70707
- * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
70708
- */
70709
- 404: BrowserError;
70710
- /**
70711
- * SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
70712
- */
70713
- 409: BrowserError;
70714
- /**
70715
- * BROWSER_REVOKED
70716
- */
70717
- 410: BrowserError;
70718
- /**
70719
- * ACTION_RESULT_TOO_LARGE
70720
- */
70721
- 413: BrowserError;
70722
- /**
70723
- * CONCURRENCY_LIMIT / RATE_LIMITED / PROVIDER_CAPACITY
70724
- */
70725
- 429: BrowserError;
70726
- /**
70727
- * INTERNAL
70728
- */
70729
- 500: BrowserError;
70730
- /**
70731
- * NOT_IMPLEMENTED / PROVIDER_UNSUPPORTED
70732
- */
70733
- 501: BrowserError;
70734
- /**
70735
- * PROVIDER_FAILED
70736
- */
70737
- 502: BrowserError;
70738
- /**
70739
- * BROWSER_OFFLINE / SERVICE_UNAVAILABLE
70740
- */
70741
- 503: BrowserError;
70742
- /**
70743
- * ACTION_TIMEOUT
70744
- */
70745
- 504: BrowserError;
70746
- };
70747
- export type BrowserUpdateContextError = BrowserUpdateContextErrors[keyof BrowserUpdateContextErrors];
70748
- export type BrowserUpdateContextResponses = {
70749
- /**
70750
- * 请求成功。
70751
- */
70752
- 200: BrowserContext;
70753
- };
70754
- export type BrowserUpdateContextResponse = BrowserUpdateContextResponses[keyof BrowserUpdateContextResponses];
70755
- export type BrowserCreateByobPairingData = {
70756
- body?: never;
70757
71269
  path?: never;
70758
71270
  query?: never;
70759
- url: '/browser/v1/byob/pairings';
71271
+ url: '/browser/v1/contexts';
70760
71272
  };
70761
- export type BrowserCreateByobPairingErrors = {
71273
+ export type BrowserCreateContextErrors = {
70762
71274
  /**
70763
71275
  * INVALID_PARAMS / INVALID_FILTER / INVALID_PAGE_TOKEN
70764
71276
  */
@@ -70772,7 +71284,7 @@ export type BrowserCreateByobPairingErrors = {
70772
71284
  */
70773
71285
  402: BrowserError;
70774
71286
  /**
70775
- * PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
71287
+ * PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
70776
71288
  */
70777
71289
  403: BrowserError;
70778
71290
  /**
@@ -70816,30 +71328,26 @@ export type BrowserCreateByobPairingErrors = {
70816
71328
  */
70817
71329
  504: BrowserError;
70818
71330
  };
70819
- export type BrowserCreateByobPairingError = BrowserCreateByobPairingErrors[keyof BrowserCreateByobPairingErrors];
70820
- export type BrowserCreateByobPairingResponses = {
71331
+ export type BrowserCreateContextError = BrowserCreateContextErrors[keyof BrowserCreateContextErrors];
71332
+ export type BrowserCreateContextResponses = {
70821
71333
  /**
70822
71334
  * 请求成功。
70823
71335
  */
70824
- 201: BrowserByobPairing;
71336
+ 201: BrowserContextCreateResult;
70825
71337
  };
70826
- export type BrowserCreateByobPairingResponse = BrowserCreateByobPairingResponses[keyof BrowserCreateByobPairingResponses];
70827
- export type BrowserListByobBrowsersData = {
71338
+ export type BrowserCreateContextResponse = BrowserCreateContextResponses[keyof BrowserCreateContextResponses];
71339
+ export type BrowserDeleteContextData = {
70828
71340
  body?: never;
70829
- path?: never;
70830
- query?: {
70831
- /**
70832
- * 上一页返回的 nextCursor,原样传入;省略时读取第一页。
70833
- */
70834
- cursor?: string;
71341
+ path: {
70835
71342
  /**
70836
- * 每页最多返回的浏览器数量;默认 50,范围 1–100。
71343
+ * 登录态 ID;使用创建或列出登录态返回的 id,以 bsc_ 开头。
70837
71344
  */
70838
- limit?: number;
71345
+ contextId: string;
70839
71346
  };
70840
- url: '/browser/v1/byob/browsers';
71347
+ query?: never;
71348
+ url: '/browser/v1/contexts/{contextId}';
70841
71349
  };
70842
- export type BrowserListByobBrowsersErrors = {
71350
+ export type BrowserDeleteContextErrors = {
70843
71351
  /**
70844
71352
  * INVALID_PARAMS / INVALID_FILTER / INVALID_PAGE_TOKEN
70845
71353
  */
@@ -70853,7 +71361,7 @@ export type BrowserListByobBrowsersErrors = {
70853
71361
  */
70854
71362
  402: BrowserError;
70855
71363
  /**
70856
- * PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
71364
+ * PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
70857
71365
  */
70858
71366
  403: BrowserError;
70859
71367
  /**
@@ -70897,35 +71405,31 @@ export type BrowserListByobBrowsersErrors = {
70897
71405
  */
70898
71406
  504: BrowserError;
70899
71407
  };
70900
- export type BrowserListByobBrowsersError = BrowserListByobBrowsersErrors[keyof BrowserListByobBrowsersErrors];
70901
- export type BrowserListByobBrowsersResponses = {
71408
+ export type BrowserDeleteContextError = BrowserDeleteContextErrors[keyof BrowserDeleteContextErrors];
71409
+ export type BrowserDeleteContextResponses = {
70902
71410
  /**
70903
- * 分页列出的自带浏览器,按 ID 升序。
71411
+ * 请求成功。
70904
71412
  */
70905
71413
  200: {
70906
71414
  /**
70907
- * 本页的自带浏览器;已断开的不在列表里。
70908
- */
70909
- data: Array<BrowserByobBrowser>;
70910
- /**
70911
- * 下一页游标;原样传入 cursor,null 表示没有更多结果。
71415
+ * 登录态及保存内容已删除,成功时固定返回 true。
70912
71416
  */
70913
- nextCursor: string | null;
71417
+ deleted: true;
70914
71418
  };
70915
71419
  };
70916
- export type BrowserListByobBrowsersResponse = BrowserListByobBrowsersResponses[keyof BrowserListByobBrowsersResponses];
70917
- export type BrowserGetByobBrowserData = {
71420
+ export type BrowserDeleteContextResponse = BrowserDeleteContextResponses[keyof BrowserDeleteContextResponses];
71421
+ export type BrowserGetContextData = {
70918
71422
  body?: never;
70919
71423
  path: {
70920
71424
  /**
70921
- * 自带浏览器 ID,以 byb_ 开头;使用配对认领或列出自带浏览器返回的 id。
71425
+ * 登录态 ID;使用创建或列出登录态返回的 id,以 bsc_ 开头。
70922
71426
  */
70923
- browser_id: string;
71427
+ contextId: string;
70924
71428
  };
70925
71429
  query?: never;
70926
- url: '/browser/v1/byob/browsers/{browser_id}';
71430
+ url: '/browser/v1/contexts/{contextId}';
70927
71431
  };
70928
- export type BrowserGetByobBrowserErrors = {
71432
+ export type BrowserGetContextErrors = {
70929
71433
  /**
70930
71434
  * INVALID_PARAMS / INVALID_FILTER / INVALID_PAGE_TOKEN
70931
71435
  */
@@ -70939,7 +71443,7 @@ export type BrowserGetByobBrowserErrors = {
70939
71443
  */
70940
71444
  402: BrowserError;
70941
71445
  /**
70942
- * PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
71446
+ * PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
70943
71447
  */
70944
71448
  403: BrowserError;
70945
71449
  /**
@@ -70983,39 +71487,67 @@ export type BrowserGetByobBrowserErrors = {
70983
71487
  */
70984
71488
  504: BrowserError;
70985
71489
  };
70986
- export type BrowserGetByobBrowserError = BrowserGetByobBrowserErrors[keyof BrowserGetByobBrowserErrors];
70987
- export type BrowserGetByobBrowserResponses = {
71490
+ export type BrowserGetContextError = BrowserGetContextErrors[keyof BrowserGetContextErrors];
71491
+ export type BrowserGetContextResponses = {
70988
71492
  /**
70989
71493
  * 请求成功。
70990
71494
  */
70991
- 200: BrowserByobBrowser;
71495
+ 200: BrowserContext;
70992
71496
  };
70993
- export type BrowserGetByobBrowserResponse = BrowserGetByobBrowserResponses[keyof BrowserGetByobBrowserResponses];
70994
- export type BrowserUpdateByobBrowserData = {
71497
+ export type BrowserGetContextResponse = BrowserGetContextResponses[keyof BrowserGetContextResponses];
71498
+ export type BrowserUpdateContextData = {
70995
71499
  body: {
70996
71500
  /**
70997
- * 新的显示名称,1–80 个字符。
71501
+ * 登录态名称;非空时为 1–128 个 ASCII 字母、数字或 . _ : -,在当前账户内唯一;空字符串表示不设名称或清除名称。
70998
71502
  */
70999
- name?: string;
71503
+ name?: '' | unknown;
71000
71504
  /**
71001
- * 整体替换被授权的智能体 ID 列表;传空数组撤销全部授权。
71505
+ * 自定义字符串标签;最多 32 项,键最多 128 个 UTF-8 字节,值最多 1024 个 UTF-8 字节。 更新时整体替换;空对象清除标签,省略则保留。
71002
71506
  */
71003
- granted_agents?: Array<string>;
71507
+ labels?: {
71508
+ [key: string]: string;
71509
+ };
71004
71510
  /**
71005
- * 整体替换允许站点列表;传空数组表示不限制。
71511
+ * 给登录态绑定一个固定的外部代理(如住宅 IP),使用这个登录态的会话没有写 proxies 时都经它出网,让同一账号始终从同一个出口地址出去。只存保管库引用(password_secret),不存密码;会话自己写了 proxies 时以会话的为准。需要组织已开通容器后端,否则返回 501 PROVIDER_UNSUPPORTED。 更新时传 null 解除绑定,省略则保留原绑定。
71006
71512
  */
71007
- allowed_sites?: Array<string>;
71513
+ proxy?: {
71514
+ /**
71515
+ * 固定为 external:经一个你自己的外部 HTTP 代理出网。
71516
+ */
71517
+ type: 'external';
71518
+ /**
71519
+ * 代理地址,host:port 或 http://host:port;只支持 HTTP 代理,不接受 socks5:// 等协议,也不接受 localhost 和内网、链路本地地址。
71520
+ */
71521
+ server: string;
71522
+ /**
71523
+ * 代理用户名;有密码时才能填,填了就必须同时给出密码。
71524
+ */
71525
+ username?: string;
71526
+ /**
71527
+ * 必须用这种形式:引用保管库里的代理密码,只在连接这个代理的主机时兑换,不会交给网页。登录态里只存引用,传明文 password 返回 400 INVALID_PARAMS。
71528
+ */
71529
+ password_secret?: {
71530
+ /**
71531
+ * 保存代理密码的保管库 ID,以 vlt_ 开头。
71532
+ */
71533
+ vault_id: string;
71534
+ /**
71535
+ * 保管库中该密码的密钥 ID(不是密码本身)。
71536
+ */
71537
+ secret: string;
71538
+ };
71539
+ } | null;
71008
71540
  };
71009
71541
  path: {
71010
71542
  /**
71011
- * 自带浏览器 ID,以 byb_ 开头;使用配对认领或列出自带浏览器返回的 id。
71543
+ * 登录态 ID;使用创建或列出登录态返回的 id,以 bsc_ 开头。
71012
71544
  */
71013
- browser_id: string;
71545
+ contextId: string;
71014
71546
  };
71015
71547
  query?: never;
71016
- url: '/browser/v1/byob/browsers/{browser_id}';
71548
+ url: '/browser/v1/contexts/{contextId}';
71017
71549
  };
71018
- export type BrowserUpdateByobBrowserErrors = {
71550
+ export type BrowserUpdateContextErrors = {
71019
71551
  /**
71020
71552
  * INVALID_PARAMS / INVALID_FILTER / INVALID_PAGE_TOKEN
71021
71553
  */
@@ -71029,7 +71561,7 @@ export type BrowserUpdateByobBrowserErrors = {
71029
71561
  */
71030
71562
  402: BrowserError;
71031
71563
  /**
71032
- * PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
71564
+ * PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
71033
71565
  */
71034
71566
  403: BrowserError;
71035
71567
  /**
@@ -71073,26 +71605,21 @@ export type BrowserUpdateByobBrowserErrors = {
71073
71605
  */
71074
71606
  504: BrowserError;
71075
71607
  };
71076
- export type BrowserUpdateByobBrowserError = BrowserUpdateByobBrowserErrors[keyof BrowserUpdateByobBrowserErrors];
71077
- export type BrowserUpdateByobBrowserResponses = {
71608
+ export type BrowserUpdateContextError = BrowserUpdateContextErrors[keyof BrowserUpdateContextErrors];
71609
+ export type BrowserUpdateContextResponses = {
71078
71610
  /**
71079
71611
  * 请求成功。
71080
71612
  */
71081
- 200: BrowserByobBrowser;
71613
+ 200: BrowserContext;
71082
71614
  };
71083
- export type BrowserUpdateByobBrowserResponse = BrowserUpdateByobBrowserResponses[keyof BrowserUpdateByobBrowserResponses];
71084
- export type BrowserDisconnectByobBrowserData = {
71615
+ export type BrowserUpdateContextResponse = BrowserUpdateContextResponses[keyof BrowserUpdateContextResponses];
71616
+ export type BrowserCreateByobPairingData = {
71085
71617
  body?: never;
71086
- path: {
71087
- /**
71088
- * 自带浏览器 ID,以 byb_ 开头;使用配对认领或列出自带浏览器返回的 id。
71089
- */
71090
- browser_id: string;
71091
- };
71618
+ path?: never;
71092
71619
  query?: never;
71093
- url: '/browser/v1/byob/browsers/{browser_id}/disconnect';
71620
+ url: '/browser/v1/byob/pairings';
71094
71621
  };
71095
- export type BrowserDisconnectByobBrowserErrors = {
71622
+ export type BrowserCreateByobPairingErrors = {
71096
71623
  /**
71097
71624
  * INVALID_PARAMS / INVALID_FILTER / INVALID_PAGE_TOKEN
71098
71625
  */
@@ -71106,7 +71633,7 @@ export type BrowserDisconnectByobBrowserErrors = {
71106
71633
  */
71107
71634
  402: BrowserError;
71108
71635
  /**
71109
- * PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
71636
+ * PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
71110
71637
  */
71111
71638
  403: BrowserError;
71112
71639
  /**
@@ -71150,26 +71677,30 @@ export type BrowserDisconnectByobBrowserErrors = {
71150
71677
  */
71151
71678
  504: BrowserError;
71152
71679
  };
71153
- export type BrowserDisconnectByobBrowserError = BrowserDisconnectByobBrowserErrors[keyof BrowserDisconnectByobBrowserErrors];
71154
- export type BrowserDisconnectByobBrowserResponses = {
71680
+ export type BrowserCreateByobPairingError = BrowserCreateByobPairingErrors[keyof BrowserCreateByobPairingErrors];
71681
+ export type BrowserCreateByobPairingResponses = {
71155
71682
  /**
71156
71683
  * 请求成功。
71157
71684
  */
71158
- 200: BrowserByobBrowser;
71685
+ 201: BrowserByobPairing;
71159
71686
  };
71160
- export type BrowserDisconnectByobBrowserResponse = BrowserDisconnectByobBrowserResponses[keyof BrowserDisconnectByobBrowserResponses];
71161
- export type BrowserReadByobPairingData = {
71687
+ export type BrowserCreateByobPairingResponse = BrowserCreateByobPairingResponses[keyof BrowserCreateByobPairingResponses];
71688
+ export type BrowserListByobBrowsersData = {
71162
71689
  body?: never;
71163
- path: {
71690
+ path?: never;
71691
+ query?: {
71164
71692
  /**
71165
- * 8 位配对码,来自创建配对码的结果。
71693
+ * 上一页返回的 nextCursor,原样传入;省略时读取第一页。
71166
71694
  */
71167
- code: string;
71695
+ cursor?: string;
71696
+ /**
71697
+ * 每页最多返回的浏览器数量;默认 50,范围 1–100。
71698
+ */
71699
+ limit?: number;
71168
71700
  };
71169
- query?: never;
71170
- url: '/browser/v1/byob/pairings/{code}';
71701
+ url: '/browser/v1/byob/browsers';
71171
71702
  };
71172
- export type BrowserReadByobPairingErrors = {
71703
+ export type BrowserListByobBrowsersErrors = {
71173
71704
  /**
71174
71705
  * INVALID_PARAMS / INVALID_FILTER / INVALID_PAGE_TOKEN
71175
71706
  */
@@ -71183,7 +71714,7 @@ export type BrowserReadByobPairingErrors = {
71183
71714
  */
71184
71715
  402: BrowserError;
71185
71716
  /**
71186
- * PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
71717
+ * PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
71187
71718
  */
71188
71719
  403: BrowserError;
71189
71720
  /**
@@ -71227,26 +71758,35 @@ export type BrowserReadByobPairingErrors = {
71227
71758
  */
71228
71759
  504: BrowserError;
71229
71760
  };
71230
- export type BrowserReadByobPairingError = BrowserReadByobPairingErrors[keyof BrowserReadByobPairingErrors];
71231
- export type BrowserReadByobPairingResponses = {
71761
+ export type BrowserListByobBrowsersError = BrowserListByobBrowsersErrors[keyof BrowserListByobBrowsersErrors];
71762
+ export type BrowserListByobBrowsersResponses = {
71232
71763
  /**
71233
- * 请求成功。
71764
+ * 分页列出的自带浏览器,按 ID 升序。
71234
71765
  */
71235
- 200: BrowserByobPairingView;
71766
+ 200: {
71767
+ /**
71768
+ * 本页的自带浏览器;已断开的不在列表里。
71769
+ */
71770
+ data: Array<BrowserByobBrowser>;
71771
+ /**
71772
+ * 下一页游标;原样传入 cursor,null 表示没有更多结果。
71773
+ */
71774
+ nextCursor: string | null;
71775
+ };
71236
71776
  };
71237
- export type BrowserReadByobPairingResponse = BrowserReadByobPairingResponses[keyof BrowserReadByobPairingResponses];
71238
- export type BrowserClaimByobPairingData = {
71239
- body: BrowserByobClaim;
71777
+ export type BrowserListByobBrowsersResponse = BrowserListByobBrowsersResponses[keyof BrowserListByobBrowsersResponses];
71778
+ export type BrowserGetByobBrowserData = {
71779
+ body?: never;
71240
71780
  path: {
71241
71781
  /**
71242
- * 8 位配对码,来自创建配对码的结果。
71782
+ * 自带浏览器 ID,以 byb_ 开头;使用配对认领或列出自带浏览器返回的 id。
71243
71783
  */
71244
- code: string;
71784
+ browser_id: string;
71245
71785
  };
71246
71786
  query?: never;
71247
- url: '/browser/v1/byob/pairings/{code}/claim';
71787
+ url: '/browser/v1/byob/browsers/{browser_id}';
71248
71788
  };
71249
- export type BrowserClaimByobPairingErrors = {
71789
+ export type BrowserGetByobBrowserErrors = {
71250
71790
  /**
71251
71791
  * INVALID_PARAMS / INVALID_FILTER / INVALID_PAGE_TOKEN
71252
71792
  */
@@ -71260,7 +71800,7 @@ export type BrowserClaimByobPairingErrors = {
71260
71800
  */
71261
71801
  402: BrowserError;
71262
71802
  /**
71263
- * PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
71803
+ * PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
71264
71804
  */
71265
71805
  403: BrowserError;
71266
71806
  /**
@@ -71304,58 +71844,31 @@ export type BrowserClaimByobPairingErrors = {
71304
71844
  */
71305
71845
  504: BrowserError;
71306
71846
  };
71307
- export type BrowserClaimByobPairingError = BrowserClaimByobPairingErrors[keyof BrowserClaimByobPairingErrors];
71308
- export type BrowserClaimByobPairingResponses = {
71847
+ export type BrowserGetByobBrowserError = BrowserGetByobBrowserErrors[keyof BrowserGetByobBrowserErrors];
71848
+ export type BrowserGetByobBrowserResponses = {
71309
71849
  /**
71310
- * 认领成功。
71850
+ * 请求成功。
71311
71851
  */
71312
- 201: BrowserByobClaimResult;
71852
+ 200: BrowserByobBrowser;
71313
71853
  };
71314
- export type BrowserClaimByobPairingResponse = BrowserClaimByobPairingResponses[keyof BrowserClaimByobPairingResponses];
71315
- export type BrowserConnectData = {
71316
- body?: never;
71317
- path?: never;
71318
- query?: {
71319
- /**
71320
- * 浏览器会话 ID;使用创建或列出会话返回的 id,以 bss_ 开头。
71321
- */
71322
- session?: string;
71854
+ export type BrowserGetByobBrowserResponse = BrowserGetByobBrowserResponses[keyof BrowserGetByobBrowserResponses];
71855
+ export type BrowserUpdateByobBrowserData = {
71856
+ body: {
71323
71857
  /**
71324
- * 会话名称;1–128 个 ASCII 字母、数字或 . _ : -,可用于筛选会话。
71858
+ * 新的显示名称,1–80 个字符。
71325
71859
  */
71326
71860
  name?: string;
71861
+ };
71862
+ path: {
71327
71863
  /**
71328
- * connectUrl 自带凭证;必须同时带 session。
71329
- */
71330
- signingKey?: string;
71331
- /**
71332
- * 登录态 ID;使用创建或列出登录态返回的 id,以 bsc_ 开头。
71333
- */
71334
- context?: string;
71335
- /**
71336
- * 关闭时保存登录态。
71337
- */
71338
- persist?: boolean;
71339
- /**
71340
- * 新会话最长寿命,单位为秒,可含小数;连接已有会话时忽略。
71341
- */
71342
- timeout?: number;
71343
- /**
71344
- * 新会话无人连接或观看后的释放等待时长,单位为毫秒;允许 0 或小数,连接已有会话时忽略。
71345
- */
71346
- idle?: number;
71347
- /**
71348
- * JSON 编码的字符串标签对象。
71349
- */
71350
- labels?: string;
71351
- /**
71352
- * JSON 编码的视口,例如 {"width":1280,"height":800}。
71864
+ * 自带浏览器 ID,以 byb_ 开头;使用配对认领或列出自带浏览器返回的 id。
71353
71865
  */
71354
- viewport?: string;
71866
+ browser_id: string;
71355
71867
  };
71356
- url: '/browser/v1/connect';
71868
+ query?: never;
71869
+ url: '/browser/v1/byob/browsers/{browser_id}';
71357
71870
  };
71358
- export type BrowserConnectErrors = {
71871
+ export type BrowserUpdateByobBrowserErrors = {
71359
71872
  /**
71360
71873
  * INVALID_PARAMS / INVALID_FILTER / INVALID_PAGE_TOKEN
71361
71874
  */
@@ -71369,7 +71882,7 @@ export type BrowserConnectErrors = {
71369
71882
  */
71370
71883
  402: BrowserError;
71371
71884
  /**
71372
- * PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
71885
+ * PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
71373
71886
  */
71374
71887
  403: BrowserError;
71375
71888
  /**
@@ -71413,28 +71926,26 @@ export type BrowserConnectErrors = {
71413
71926
  */
71414
71927
  504: BrowserError;
71415
71928
  };
71416
- export type BrowserConnectError = BrowserConnectErrors[keyof BrowserConnectErrors];
71417
- export type BrowserLiveViewData = {
71929
+ export type BrowserUpdateByobBrowserError = BrowserUpdateByobBrowserErrors[keyof BrowserUpdateByobBrowserErrors];
71930
+ export type BrowserUpdateByobBrowserResponses = {
71931
+ /**
71932
+ * 请求成功。
71933
+ */
71934
+ 200: BrowserByobBrowser;
71935
+ };
71936
+ export type BrowserUpdateByobBrowserResponse = BrowserUpdateByobBrowserResponses[keyof BrowserUpdateByobBrowserResponses];
71937
+ export type BrowserDisconnectByobBrowserData = {
71418
71938
  body?: never;
71419
71939
  path: {
71420
71940
  /**
71421
- * 浏览器会话 ID;使用创建或列出会话返回的 id,以 bss_ 开头。
71422
- */
71423
- sessionId: string;
71424
- /**
71425
- * 实时观看地址中的标签页 ID;使用 debug 返回链接中的原值,_ 表示会话级画面。
71426
- */
71427
- pageId: string;
71428
- };
71429
- query?: {
71430
- /**
71431
- * 实时观看地址自带的凭证。
71941
+ * 自带浏览器 ID,以 byb_ 开头;使用配对认领或列出自带浏览器返回的 id。
71432
71942
  */
71433
- t?: string;
71943
+ browser_id: string;
71434
71944
  };
71435
- url: '/browser/v1/live/{sessionId}/{pageId}';
71945
+ query?: never;
71946
+ url: '/browser/v1/byob/browsers/{browser_id}/disconnect';
71436
71947
  };
71437
- export type BrowserLiveViewErrors = {
71948
+ export type BrowserDisconnectByobBrowserErrors = {
71438
71949
  /**
71439
71950
  * INVALID_PARAMS / INVALID_FILTER / INVALID_PAGE_TOKEN
71440
71951
  */
@@ -71448,7 +71959,349 @@ export type BrowserLiveViewErrors = {
71448
71959
  */
71449
71960
  402: BrowserError;
71450
71961
  /**
71451
- * PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
71962
+ * PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
71963
+ */
71964
+ 403: BrowserError;
71965
+ /**
71966
+ * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
71967
+ */
71968
+ 404: BrowserError;
71969
+ /**
71970
+ * SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
71971
+ */
71972
+ 409: BrowserError;
71973
+ /**
71974
+ * BROWSER_REVOKED
71975
+ */
71976
+ 410: BrowserError;
71977
+ /**
71978
+ * ACTION_RESULT_TOO_LARGE
71979
+ */
71980
+ 413: BrowserError;
71981
+ /**
71982
+ * CONCURRENCY_LIMIT / RATE_LIMITED / PROVIDER_CAPACITY
71983
+ */
71984
+ 429: BrowserError;
71985
+ /**
71986
+ * INTERNAL
71987
+ */
71988
+ 500: BrowserError;
71989
+ /**
71990
+ * NOT_IMPLEMENTED / PROVIDER_UNSUPPORTED
71991
+ */
71992
+ 501: BrowserError;
71993
+ /**
71994
+ * PROVIDER_FAILED
71995
+ */
71996
+ 502: BrowserError;
71997
+ /**
71998
+ * BROWSER_OFFLINE / SERVICE_UNAVAILABLE
71999
+ */
72000
+ 503: BrowserError;
72001
+ /**
72002
+ * ACTION_TIMEOUT
72003
+ */
72004
+ 504: BrowserError;
72005
+ };
72006
+ export type BrowserDisconnectByobBrowserError = BrowserDisconnectByobBrowserErrors[keyof BrowserDisconnectByobBrowserErrors];
72007
+ export type BrowserDisconnectByobBrowserResponses = {
72008
+ /**
72009
+ * 请求成功。
72010
+ */
72011
+ 200: BrowserByobBrowser;
72012
+ };
72013
+ export type BrowserDisconnectByobBrowserResponse = BrowserDisconnectByobBrowserResponses[keyof BrowserDisconnectByobBrowserResponses];
72014
+ export type BrowserReadByobPairingData = {
72015
+ body?: never;
72016
+ path: {
72017
+ /**
72018
+ * 8 位配对码,来自创建配对码的结果。
72019
+ */
72020
+ code: string;
72021
+ };
72022
+ query?: never;
72023
+ url: '/browser/v1/byob/pairings/{code}';
72024
+ };
72025
+ export type BrowserReadByobPairingErrors = {
72026
+ /**
72027
+ * INVALID_PARAMS / INVALID_FILTER / INVALID_PAGE_TOKEN
72028
+ */
72029
+ 400: BrowserError;
72030
+ /**
72031
+ * UNAUTHENTICATED / CONNECT_SIGNATURE_INVALID
72032
+ */
72033
+ 401: BrowserError;
72034
+ /**
72035
+ * INSUFFICIENT_BALANCE / QUOTA_EXHAUSTED
72036
+ */
72037
+ 402: BrowserError;
72038
+ /**
72039
+ * PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
72040
+ */
72041
+ 403: BrowserError;
72042
+ /**
72043
+ * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
72044
+ */
72045
+ 404: BrowserError;
72046
+ /**
72047
+ * SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
72048
+ */
72049
+ 409: BrowserError;
72050
+ /**
72051
+ * BROWSER_REVOKED
72052
+ */
72053
+ 410: BrowserError;
72054
+ /**
72055
+ * ACTION_RESULT_TOO_LARGE
72056
+ */
72057
+ 413: BrowserError;
72058
+ /**
72059
+ * CONCURRENCY_LIMIT / RATE_LIMITED / PROVIDER_CAPACITY
72060
+ */
72061
+ 429: BrowserError;
72062
+ /**
72063
+ * INTERNAL
72064
+ */
72065
+ 500: BrowserError;
72066
+ /**
72067
+ * NOT_IMPLEMENTED / PROVIDER_UNSUPPORTED
72068
+ */
72069
+ 501: BrowserError;
72070
+ /**
72071
+ * PROVIDER_FAILED
72072
+ */
72073
+ 502: BrowserError;
72074
+ /**
72075
+ * BROWSER_OFFLINE / SERVICE_UNAVAILABLE
72076
+ */
72077
+ 503: BrowserError;
72078
+ /**
72079
+ * ACTION_TIMEOUT
72080
+ */
72081
+ 504: BrowserError;
72082
+ };
72083
+ export type BrowserReadByobPairingError = BrowserReadByobPairingErrors[keyof BrowserReadByobPairingErrors];
72084
+ export type BrowserReadByobPairingResponses = {
72085
+ /**
72086
+ * 请求成功。
72087
+ */
72088
+ 200: BrowserByobPairingView;
72089
+ };
72090
+ export type BrowserReadByobPairingResponse = BrowserReadByobPairingResponses[keyof BrowserReadByobPairingResponses];
72091
+ export type BrowserClaimByobPairingData = {
72092
+ body: BrowserByobClaim;
72093
+ path: {
72094
+ /**
72095
+ * 8 位配对码,来自创建配对码的结果。
72096
+ */
72097
+ code: string;
72098
+ };
72099
+ query?: never;
72100
+ url: '/browser/v1/byob/pairings/{code}/claim';
72101
+ };
72102
+ export type BrowserClaimByobPairingErrors = {
72103
+ /**
72104
+ * INVALID_PARAMS / INVALID_FILTER / INVALID_PAGE_TOKEN
72105
+ */
72106
+ 400: BrowserError;
72107
+ /**
72108
+ * UNAUTHENTICATED / CONNECT_SIGNATURE_INVALID
72109
+ */
72110
+ 401: BrowserError;
72111
+ /**
72112
+ * INSUFFICIENT_BALANCE / QUOTA_EXHAUSTED
72113
+ */
72114
+ 402: BrowserError;
72115
+ /**
72116
+ * PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
72117
+ */
72118
+ 403: BrowserError;
72119
+ /**
72120
+ * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
72121
+ */
72122
+ 404: BrowserError;
72123
+ /**
72124
+ * SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
72125
+ */
72126
+ 409: BrowserError;
72127
+ /**
72128
+ * BROWSER_REVOKED
72129
+ */
72130
+ 410: BrowserError;
72131
+ /**
72132
+ * ACTION_RESULT_TOO_LARGE
72133
+ */
72134
+ 413: BrowserError;
72135
+ /**
72136
+ * CONCURRENCY_LIMIT / RATE_LIMITED / PROVIDER_CAPACITY
72137
+ */
72138
+ 429: BrowserError;
72139
+ /**
72140
+ * INTERNAL
72141
+ */
72142
+ 500: BrowserError;
72143
+ /**
72144
+ * NOT_IMPLEMENTED / PROVIDER_UNSUPPORTED
72145
+ */
72146
+ 501: BrowserError;
72147
+ /**
72148
+ * PROVIDER_FAILED
72149
+ */
72150
+ 502: BrowserError;
72151
+ /**
72152
+ * BROWSER_OFFLINE / SERVICE_UNAVAILABLE
72153
+ */
72154
+ 503: BrowserError;
72155
+ /**
72156
+ * ACTION_TIMEOUT
72157
+ */
72158
+ 504: BrowserError;
72159
+ };
72160
+ export type BrowserClaimByobPairingError = BrowserClaimByobPairingErrors[keyof BrowserClaimByobPairingErrors];
72161
+ export type BrowserClaimByobPairingResponses = {
72162
+ /**
72163
+ * 认领成功。
72164
+ */
72165
+ 201: BrowserByobClaimResult;
72166
+ };
72167
+ export type BrowserClaimByobPairingResponse = BrowserClaimByobPairingResponses[keyof BrowserClaimByobPairingResponses];
72168
+ export type BrowserConnectData = {
72169
+ body?: never;
72170
+ path?: never;
72171
+ query?: {
72172
+ /**
72173
+ * 浏览器会话 ID;使用创建或列出会话返回的 id,以 bss_ 开头。
72174
+ */
72175
+ session?: string;
72176
+ /**
72177
+ * 会话名称;1–128 个 ASCII 字母、数字或 . _ : -,可用于筛选会话。
72178
+ */
72179
+ name?: string;
72180
+ /**
72181
+ * connectUrl 自带凭证;必须同时带 session。
72182
+ */
72183
+ signingKey?: string;
72184
+ /**
72185
+ * 登录态 ID;使用创建或列出登录态返回的 id,以 bsc_ 开头。
72186
+ */
72187
+ context?: string;
72188
+ /**
72189
+ * 关闭时保存登录态。
72190
+ */
72191
+ persist?: boolean;
72192
+ /**
72193
+ * 新会话最长寿命,单位为秒,可含小数;连接已有会话时忽略。
72194
+ */
72195
+ timeout?: number;
72196
+ /**
72197
+ * 新会话无人连接或观看后的释放等待时长,单位为毫秒;允许 0 或小数,连接已有会话时忽略。
72198
+ */
72199
+ idle?: number;
72200
+ /**
72201
+ * JSON 编码的字符串标签对象。
72202
+ */
72203
+ labels?: string;
72204
+ /**
72205
+ * JSON 编码的视口,例如 {"width":1280,"height":800}。
72206
+ */
72207
+ viewport?: string;
72208
+ };
72209
+ url: '/browser/v1/connect';
72210
+ };
72211
+ export type BrowserConnectErrors = {
72212
+ /**
72213
+ * INVALID_PARAMS / INVALID_FILTER / INVALID_PAGE_TOKEN
72214
+ */
72215
+ 400: BrowserError;
72216
+ /**
72217
+ * UNAUTHENTICATED / CONNECT_SIGNATURE_INVALID
72218
+ */
72219
+ 401: BrowserError;
72220
+ /**
72221
+ * INSUFFICIENT_BALANCE / QUOTA_EXHAUSTED
72222
+ */
72223
+ 402: BrowserError;
72224
+ /**
72225
+ * PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
72226
+ */
72227
+ 403: BrowserError;
72228
+ /**
72229
+ * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
72230
+ */
72231
+ 404: BrowserError;
72232
+ /**
72233
+ * SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
72234
+ */
72235
+ 409: BrowserError;
72236
+ /**
72237
+ * BROWSER_REVOKED
72238
+ */
72239
+ 410: BrowserError;
72240
+ /**
72241
+ * ACTION_RESULT_TOO_LARGE
72242
+ */
72243
+ 413: BrowserError;
72244
+ /**
72245
+ * CONCURRENCY_LIMIT / RATE_LIMITED / PROVIDER_CAPACITY
72246
+ */
72247
+ 429: BrowserError;
72248
+ /**
72249
+ * INTERNAL
72250
+ */
72251
+ 500: BrowserError;
72252
+ /**
72253
+ * NOT_IMPLEMENTED / PROVIDER_UNSUPPORTED
72254
+ */
72255
+ 501: BrowserError;
72256
+ /**
72257
+ * PROVIDER_FAILED
72258
+ */
72259
+ 502: BrowserError;
72260
+ /**
72261
+ * BROWSER_OFFLINE / SERVICE_UNAVAILABLE
72262
+ */
72263
+ 503: BrowserError;
72264
+ /**
72265
+ * ACTION_TIMEOUT
72266
+ */
72267
+ 504: BrowserError;
72268
+ };
72269
+ export type BrowserConnectError = BrowserConnectErrors[keyof BrowserConnectErrors];
72270
+ export type BrowserLiveViewData = {
72271
+ body?: never;
72272
+ path: {
72273
+ /**
72274
+ * 浏览器会话 ID;使用创建或列出会话返回的 id,以 bss_ 开头。
72275
+ */
72276
+ sessionId: string;
72277
+ /**
72278
+ * 实时观看地址中的标签页 ID;使用 debug 返回链接中的原值,_ 表示会话级画面。
72279
+ */
72280
+ pageId: string;
72281
+ };
72282
+ query?: {
72283
+ /**
72284
+ * 实时观看地址自带的凭证。
72285
+ */
72286
+ t?: string;
72287
+ };
72288
+ url: '/browser/v1/live/{sessionId}/{pageId}';
72289
+ };
72290
+ export type BrowserLiveViewErrors = {
72291
+ /**
72292
+ * INVALID_PARAMS / INVALID_FILTER / INVALID_PAGE_TOKEN
72293
+ */
72294
+ 400: BrowserError;
72295
+ /**
72296
+ * UNAUTHENTICATED / CONNECT_SIGNATURE_INVALID
72297
+ */
72298
+ 401: BrowserError;
72299
+ /**
72300
+ * INSUFFICIENT_BALANCE / QUOTA_EXHAUSTED
72301
+ */
72302
+ 402: BrowserError;
72303
+ /**
72304
+ * PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
71452
72305
  */
71453
72306
  403: BrowserError;
71454
72307
  /**
@@ -71518,7 +72371,7 @@ export type BrowserStreamSessionErrors = {
71518
72371
  */
71519
72372
  402: BrowserError;
71520
72373
  /**
71521
- * PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
72374
+ * PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
71522
72375
  */
71523
72376
  403: BrowserError;
71524
72377
  /**
@@ -71595,7 +72448,7 @@ export type BrowserStreamSessionFramesErrors = {
71595
72448
  */
71596
72449
  402: BrowserError;
71597
72450
  /**
71598
- * PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
72451
+ * PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
71599
72452
  */
71600
72453
  403: BrowserError;
71601
72454
  /**
@@ -78332,7 +79185,7 @@ export type ListOrganizationCostsData = {
78332
79185
  */
78333
79186
  bucket_width: '1h' | '1d';
78334
79187
  /**
78335
- * 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.
79188
+ * 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.
78336
79189
  *
78337
79190
  */
78338
79191
  time_zone?: string;
@@ -78450,7 +79303,7 @@ export type ListOrganizationUsageData = {
78450
79303
  */
78451
79304
  bucket_width: '1h' | '1d';
78452
79305
  /**
78453
- * 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.
79306
+ * 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.
78454
79307
  *
78455
79308
  */
78456
79309
  time_zone?: string;
@@ -78970,11 +79823,19 @@ export type ListOrganizationNotificationLettersData = {
78970
79823
  path?: never;
78971
79824
  query?: {
78972
79825
  /**
78973
- * Only unread letters, or only read ones; omit for both.
79826
+ * 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.
78974
79827
  */
78975
- status?: 'unread' | 'read';
79828
+ direction?: 'received' | 'sent';
78976
79829
  /**
78977
- * false (the default) hides archived letters; true lists only the archived ones.
79830
+ * 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.
79831
+ */
79832
+ status?: 'unread' | 'read' | 'scheduled';
79833
+ /**
79834
+ * Only letters of this conversation, for received and sent alike; omit for all.
79835
+ */
79836
+ thread?: string;
79837
+ /**
79838
+ * 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.
78978
79839
  */
78979
79840
  archived?: boolean;
78980
79841
  /**
@@ -78990,7 +79851,7 @@ export type ListOrganizationNotificationLettersData = {
78990
79851
  };
78991
79852
  export type ListOrganizationNotificationLettersErrors = {
78992
79853
  /**
78993
- * A bad `status`, `archived` or `limit`, or `INVALID_PARAMS` from the service for a cursor it did not issue (RFC 9457 problem).
79854
+ * 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).
78994
79855
  */
78995
79856
  400: unknown;
78996
79857
  /**
@@ -79090,6 +79951,80 @@ export type ListOrganizationNotificationLettersResponses = {
79090
79951
  };
79091
79952
  };
79092
79953
  export type ListOrganizationNotificationLettersResponse = ListOrganizationNotificationLettersResponses[keyof ListOrganizationNotificationLettersResponses];
79954
+ export type CreateOrganizationNotificationLetterData = {
79955
+ body: {
79956
+ /**
79957
+ * The recipient's address: human:<user id> or agent:<agent id>, a member or an agent of this organization.
79958
+ */
79959
+ to: string;
79960
+ /**
79961
+ * The whole letter, 1 to 16000 characters.
79962
+ */
79963
+ body: string;
79964
+ /**
79965
+ * 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.
79966
+ */
79967
+ summary?: string;
79968
+ /**
79969
+ * The letter's kind; it decides the channels. Defaults to mention.
79970
+ */
79971
+ kind?: 'notice' | 'mention' | 'decision';
79972
+ /**
79973
+ * The conversation the letter belongs to, free text; omit for none.
79974
+ */
79975
+ thread?: string;
79976
+ /**
79977
+ * When to deliver it, ISO 8601, at most 366 days ahead. A past time or no value means now.
79978
+ */
79979
+ deliver_at?: string;
79980
+ };
79981
+ path?: never;
79982
+ query?: never;
79983
+ url: '/organization/v1/notifications/letters';
79984
+ };
79985
+ export type CreateOrganizationNotificationLetterErrors = {
79986
+ /**
79987
+ * `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).
79988
+ */
79989
+ 400: unknown;
79990
+ /**
79991
+ * Missing or invalid credential (RFC 9457 problem).
79992
+ */
79993
+ 401: unknown;
79994
+ /**
79995
+ * `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).
79996
+ */
79997
+ 403: unknown;
79998
+ /**
79999
+ * `SUBSCRIBER_NOT_FOUND`: the recipient is not a member or an agent of this organization (RFC 9457 problem).
80000
+ */
80001
+ 404: unknown;
80002
+ /**
80003
+ * 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.
80004
+ */
80005
+ 502: unknown;
80006
+ };
80007
+ export type CreateOrganizationNotificationLetterResponses = {
80008
+ /**
80009
+ * The letter is written; it is delivered at deliverAt.
80010
+ */
80011
+ 200: {
80012
+ /**
80013
+ * The letter that was written: its id and the time it is delivered.
80014
+ */
80015
+ letter: {
80016
+ /**
80017
+ * The letter's id.
80018
+ */
80019
+ id: string;
80020
+ /**
80021
+ * When it is delivered: now, or the time asked for.
80022
+ */
80023
+ deliverAt: string;
80024
+ };
80025
+ };
80026
+ };
80027
+ export type CreateOrganizationNotificationLetterResponse = CreateOrganizationNotificationLetterResponses[keyof CreateOrganizationNotificationLetterResponses];
79093
80028
  export type GetOrganizationNotificationLetterData = {
79094
80029
  body?: never;
79095
80030
  path: {
@@ -79313,6 +80248,360 @@ export type ArchiveOrganizationNotificationLetterResponses = {
79313
80248
  };
79314
80249
  };
79315
80250
  export type ArchiveOrganizationNotificationLetterResponse = ArchiveOrganizationNotificationLetterResponses[keyof ArchiveOrganizationNotificationLetterResponses];
80251
+ export type ListOrganizationNotificationMessagesData = {
80252
+ body?: never;
80253
+ path?: never;
80254
+ query?: {
80255
+ /**
80256
+ * 0 (the default) lists the inbox tab, 1 lists archived messages.
80257
+ */
80258
+ archived?: '0' | '1';
80259
+ /**
80260
+ * Messages per page, 1 to 100; defaults to 20.
80261
+ */
80262
+ limit?: number;
80263
+ /**
80264
+ * Opaque nextPageToken from the previous response; omit for the first page.
80265
+ */
80266
+ page?: string;
80267
+ };
80268
+ url: '/organization/v1/notifications/messages';
80269
+ };
80270
+ export type ListOrganizationNotificationMessagesErrors = {
80271
+ /**
80272
+ * A bad `archived`, `limit` or `page`, or `INVALID_PARAMS` from the service for a cursor it did not issue (RFC 9457 problem).
80273
+ */
80274
+ 400: unknown;
80275
+ /**
80276
+ * Missing or invalid credential (RFC 9457 problem).
80277
+ */
80278
+ 401: unknown;
80279
+ /**
80280
+ * `PERMISSION_DENIED`: an agent credential has no person inbox; read its own letters instead (RFC 9457 problem).
80281
+ */
80282
+ 403: unknown;
80283
+ /**
80284
+ * 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.
80285
+ */
80286
+ 502: unknown;
80287
+ };
80288
+ export type ListOrganizationNotificationMessagesResponses = {
80289
+ /**
80290
+ * One page of this person's messages.
80291
+ */
80292
+ 200: {
80293
+ /**
80294
+ * The page, newest first.
80295
+ */
80296
+ items: Array<{
80297
+ /**
80298
+ * The message's resource name, subscribers/{user}/messages/{id}; pass it URL-encoded as the {name} of the other message operations.
80299
+ */
80300
+ name: string;
80301
+ /**
80302
+ * The organization the message belongs to; empty for a message that belongs to no organization.
80303
+ */
80304
+ organizationId: string;
80305
+ /**
80306
+ * The notification group the message belongs to: members, usage, alerts, agent, or nonConfigurable.
80307
+ */
80308
+ group: 'members' | 'usage' | 'alerts' | 'agent' | 'nonConfigurable';
80309
+ /**
80310
+ * The notification workflow that wrote it, as the preferences page names it.
80311
+ */
80312
+ workflow: string;
80313
+ /**
80314
+ * The message's headline, as the bell shows it.
80315
+ */
80316
+ title: string;
80317
+ /**
80318
+ * The message text.
80319
+ */
80320
+ body: string;
80321
+ /**
80322
+ * Where the bell opens this message; absent when it has no page.
80323
+ */
80324
+ actionUrl?: string;
80325
+ /**
80326
+ * Whether the bell has been opened since the message arrived.
80327
+ */
80328
+ seen: boolean;
80329
+ /**
80330
+ * Whether this person has read it.
80331
+ */
80332
+ read: boolean;
80333
+ /**
80334
+ * Whether this person archived it; archived messages are not in the inbox tab.
80335
+ */
80336
+ archived: boolean;
80337
+ /**
80338
+ * When the message arrived.
80339
+ */
80340
+ createTime: string;
80341
+ }>;
80342
+ /**
80343
+ * Pass unchanged as page for the next page; absent at the end.
80344
+ */
80345
+ nextPageToken?: string;
80346
+ };
80347
+ };
80348
+ export type ListOrganizationNotificationMessagesResponse = ListOrganizationNotificationMessagesResponses[keyof ListOrganizationNotificationMessagesResponses];
80349
+ export type DeleteOrganizationNotificationMessageData = {
80350
+ body?: never;
80351
+ path: {
80352
+ /**
80353
+ * The message's `name` from the messages list, subscribers/{user}/messages/{id}, URL-encoded.
80354
+ */
80355
+ name: string;
80356
+ };
80357
+ query?: never;
80358
+ url: '/organization/v1/notifications/messages/{name}';
80359
+ };
80360
+ export type DeleteOrganizationNotificationMessageErrors = {
80361
+ /**
80362
+ * `name` is not subscribers/{user}/messages/{id} — `INVALID_PARAMS` (RFC 9457 problem).
80363
+ */
80364
+ 400: unknown;
80365
+ /**
80366
+ * Missing or invalid credential (RFC 9457 problem).
80367
+ */
80368
+ 401: unknown;
80369
+ /**
80370
+ * `PERMISSION_DENIED`: an agent credential has no person inbox; read its own letters instead (RFC 9457 problem).
80371
+ */
80372
+ 403: unknown;
80373
+ /**
80374
+ * No such message of yours in this organization — `MESSAGE_NOT_FOUND` (RFC 9457 problem).
80375
+ */
80376
+ 404: unknown;
80377
+ /**
80378
+ * 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.
80379
+ */
80380
+ 502: unknown;
80381
+ };
80382
+ export type DeleteOrganizationNotificationMessageResponses = {
80383
+ /**
80384
+ * The message is deleted.
80385
+ */
80386
+ 200: {
80387
+ /**
80388
+ * Always true: the message was deleted.
80389
+ */
80390
+ deleted: boolean;
80391
+ };
80392
+ };
80393
+ export type DeleteOrganizationNotificationMessageResponse = DeleteOrganizationNotificationMessageResponses[keyof DeleteOrganizationNotificationMessageResponses];
80394
+ export type GetOrganizationNotificationMessageData = {
80395
+ body?: never;
80396
+ path: {
80397
+ /**
80398
+ * The message's `name` from the messages list, subscribers/{user}/messages/{id}, URL-encoded.
80399
+ */
80400
+ name: string;
80401
+ };
80402
+ query?: never;
80403
+ url: '/organization/v1/notifications/messages/{name}';
80404
+ };
80405
+ export type GetOrganizationNotificationMessageErrors = {
80406
+ /**
80407
+ * `name` is not subscribers/{user}/messages/{id} — `INVALID_PARAMS` (RFC 9457 problem).
80408
+ */
80409
+ 400: unknown;
80410
+ /**
80411
+ * Missing or invalid credential (RFC 9457 problem).
80412
+ */
80413
+ 401: unknown;
80414
+ /**
80415
+ * `PERMISSION_DENIED`: an agent credential has no person inbox; read its own letters instead (RFC 9457 problem).
80416
+ */
80417
+ 403: unknown;
80418
+ /**
80419
+ * 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).
80420
+ */
80421
+ 404: unknown;
80422
+ /**
80423
+ * 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.
80424
+ */
80425
+ 502: unknown;
80426
+ };
80427
+ export type GetOrganizationNotificationMessageResponses = {
80428
+ /**
80429
+ * The message.
80430
+ */
80431
+ 200: {
80432
+ /**
80433
+ * The message's resource name, subscribers/{user}/messages/{id}; pass it URL-encoded as the {name} of the other message operations.
80434
+ */
80435
+ name: string;
80436
+ /**
80437
+ * The organization the message belongs to; empty for a message that belongs to no organization.
80438
+ */
80439
+ organizationId: string;
80440
+ /**
80441
+ * The notification group the message belongs to: members, usage, alerts, agent, or nonConfigurable.
80442
+ */
80443
+ group: 'members' | 'usage' | 'alerts' | 'agent' | 'nonConfigurable';
80444
+ /**
80445
+ * The notification workflow that wrote it, as the preferences page names it.
80446
+ */
80447
+ workflow: string;
80448
+ /**
80449
+ * The message's headline, as the bell shows it.
80450
+ */
80451
+ title: string;
80452
+ /**
80453
+ * The message text.
80454
+ */
80455
+ body: string;
80456
+ /**
80457
+ * Where the bell opens this message; absent when it has no page.
80458
+ */
80459
+ actionUrl?: string;
80460
+ /**
80461
+ * Whether the bell has been opened since the message arrived.
80462
+ */
80463
+ seen: boolean;
80464
+ /**
80465
+ * Whether this person has read it.
80466
+ */
80467
+ read: boolean;
80468
+ /**
80469
+ * Whether this person archived it; archived messages are not in the inbox tab.
80470
+ */
80471
+ archived: boolean;
80472
+ /**
80473
+ * When the message arrived.
80474
+ */
80475
+ createTime: string;
80476
+ };
80477
+ };
80478
+ export type GetOrganizationNotificationMessageResponse = GetOrganizationNotificationMessageResponses[keyof GetOrganizationNotificationMessageResponses];
80479
+ export type UpdateOrganizationNotificationMessageData = {
80480
+ body: {
80481
+ /**
80482
+ * Mark the message read (true) or unread (false); omit to leave it.
80483
+ */
80484
+ read?: boolean;
80485
+ /**
80486
+ * Archive the message (true) or move it back to the inbox (false); omit to leave it.
80487
+ */
80488
+ archived?: boolean;
80489
+ };
80490
+ path: {
80491
+ /**
80492
+ * The message's `name` from the messages list, subscribers/{user}/messages/{id}, URL-encoded.
80493
+ */
80494
+ name: string;
80495
+ };
80496
+ query?: never;
80497
+ url: '/organization/v1/notifications/messages/{name}';
80498
+ };
80499
+ export type UpdateOrganizationNotificationMessageErrors = {
80500
+ /**
80501
+ * 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).
80502
+ */
80503
+ 400: unknown;
80504
+ /**
80505
+ * Missing or invalid credential (RFC 9457 problem).
80506
+ */
80507
+ 401: unknown;
80508
+ /**
80509
+ * `PERMISSION_DENIED`: an agent credential has no person inbox; read its own letters instead (RFC 9457 problem).
80510
+ */
80511
+ 403: unknown;
80512
+ /**
80513
+ * No such message of yours in this organization — `MESSAGE_NOT_FOUND` (RFC 9457 problem).
80514
+ */
80515
+ 404: unknown;
80516
+ /**
80517
+ * 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.
80518
+ */
80519
+ 502: unknown;
80520
+ };
80521
+ export type UpdateOrganizationNotificationMessageResponses = {
80522
+ /**
80523
+ * The message after the change.
80524
+ */
80525
+ 200: {
80526
+ /**
80527
+ * The message's resource name, subscribers/{user}/messages/{id}; pass it URL-encoded as the {name} of the other message operations.
80528
+ */
80529
+ name: string;
80530
+ /**
80531
+ * The organization the message belongs to; empty for a message that belongs to no organization.
80532
+ */
80533
+ organizationId: string;
80534
+ /**
80535
+ * The notification group the message belongs to: members, usage, alerts, agent, or nonConfigurable.
80536
+ */
80537
+ group: 'members' | 'usage' | 'alerts' | 'agent' | 'nonConfigurable';
80538
+ /**
80539
+ * The notification workflow that wrote it, as the preferences page names it.
80540
+ */
80541
+ workflow: string;
80542
+ /**
80543
+ * The message's headline, as the bell shows it.
80544
+ */
80545
+ title: string;
80546
+ /**
80547
+ * The message text.
80548
+ */
80549
+ body: string;
80550
+ /**
80551
+ * Where the bell opens this message; absent when it has no page.
80552
+ */
80553
+ actionUrl?: string;
80554
+ /**
80555
+ * Whether the bell has been opened since the message arrived.
80556
+ */
80557
+ seen: boolean;
80558
+ /**
80559
+ * Whether this person has read it.
80560
+ */
80561
+ read: boolean;
80562
+ /**
80563
+ * Whether this person archived it; archived messages are not in the inbox tab.
80564
+ */
80565
+ archived: boolean;
80566
+ /**
80567
+ * When the message arrived.
80568
+ */
80569
+ createTime: string;
80570
+ };
80571
+ };
80572
+ export type UpdateOrganizationNotificationMessageResponse = UpdateOrganizationNotificationMessageResponses[keyof UpdateOrganizationNotificationMessageResponses];
80573
+ export type ReadAllOrganizationNotificationMessagesData = {
80574
+ body?: never;
80575
+ path?: never;
80576
+ query?: never;
80577
+ url: '/organization/v1/notifications/messages:readAll';
80578
+ };
80579
+ export type ReadAllOrganizationNotificationMessagesErrors = {
80580
+ /**
80581
+ * Missing or invalid credential (RFC 9457 problem).
80582
+ */
80583
+ 401: unknown;
80584
+ /**
80585
+ * `PERMISSION_DENIED`: an agent credential has no person inbox; read its own letters instead (RFC 9457 problem).
80586
+ */
80587
+ 403: unknown;
80588
+ /**
80589
+ * 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.
80590
+ */
80591
+ 502: unknown;
80592
+ };
80593
+ export type ReadAllOrganizationNotificationMessagesResponses = {
80594
+ /**
80595
+ * How many messages were marked read.
80596
+ */
80597
+ 200: {
80598
+ /**
80599
+ * The number of messages that were unread and are now read.
80600
+ */
80601
+ updated: number;
80602
+ };
80603
+ };
80604
+ export type ReadAllOrganizationNotificationMessagesResponse = ReadAllOrganizationNotificationMessagesResponses[keyof ReadAllOrganizationNotificationMessagesResponses];
79316
80605
  export type GetOrganizationNotificationPreferencesData = {
79317
80606
  body?: never;
79318
80607
  path?: never;
@@ -80780,7 +82069,7 @@ export type ListByodDevicesResponses = {
80780
82069
  */
80781
82070
  id: string;
80782
82071
  /**
80783
- * 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.
82072
+ * The device's platform, which decides the use faces it answers. A desktop (macos, linux) pairs like a phone; windows is not supported yet.
80784
82073
  */
80785
82074
  platform: 'android' | 'macos' | 'linux';
80786
82075
  /**
@@ -80828,6 +82117,10 @@ export type ListByodDevicesResponses = {
80828
82117
  */
80829
82118
  agent: string;
80830
82119
  }>;
82120
+ /**
82121
+ * 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.
82122
+ */
82123
+ envd_version: string | null;
80831
82124
  /**
80832
82125
  * 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.
80833
82126
  */
@@ -80875,7 +82168,7 @@ export type GetByodDeviceResponses = {
80875
82168
  */
80876
82169
  id: string;
80877
82170
  /**
80878
- * 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.
82171
+ * The device's platform, which decides the use faces it answers. A desktop (macos, linux) pairs like a phone; windows is not supported yet.
80879
82172
  */
80880
82173
  platform: 'android' | 'macos' | 'linux';
80881
82174
  /**
@@ -80923,6 +82216,10 @@ export type GetByodDeviceResponses = {
80923
82216
  */
80924
82217
  agent: string;
80925
82218
  }>;
82219
+ /**
82220
+ * 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.
82221
+ */
82222
+ envd_version: string | null;
80926
82223
  /**
80927
82224
  * 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.
80928
82225
  */
@@ -80981,7 +82278,7 @@ export type UpdateByodDeviceResponses = {
80981
82278
  */
80982
82279
  id: string;
80983
82280
  /**
80984
- * 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.
82281
+ * The device's platform, which decides the use faces it answers. A desktop (macos, linux) pairs like a phone; windows is not supported yet.
80985
82282
  */
80986
82283
  platform: 'android' | 'macos' | 'linux';
80987
82284
  /**
@@ -81029,6 +82326,10 @@ export type UpdateByodDeviceResponses = {
81029
82326
  */
81030
82327
  agent: string;
81031
82328
  }>;
82329
+ /**
82330
+ * 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.
82331
+ */
82332
+ envd_version: string | null;
81032
82333
  /**
81033
82334
  * 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.
81034
82335
  */
@@ -81120,7 +82421,7 @@ export type ClaimByodPairingData = {
81120
82421
  */
81121
82422
  body: {
81122
82423
  /**
81123
- * 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.
82424
+ * The device's platform. macos and linux are accepted for every organization; any other value than android, macos or linux answers INVALID_PARAMS.
81124
82425
  */
81125
82426
  platform: 'android' | 'macos' | 'linux';
81126
82427
  /**
@@ -81151,7 +82452,7 @@ export type ClaimByodPairingData = {
81151
82452
  };
81152
82453
  export type ClaimByodPairingErrors = {
81153
82454
  /**
81154
- * 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.
82455
+ * 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.
81155
82456
  */
81156
82457
  400: unknown;
81157
82458
  /**
@@ -83774,8 +85075,7 @@ export type SessionsUpdateData = {
83774
85075
  */
83775
85076
  title?: null | string;
83776
85077
  /**
83777
- * Vault IDs (`vlt_*`) to attach to the session. Not yet supported;
83778
- * requests setting this field are rejected. Reserved for future use.
85078
+ * 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.
83779
85079
  */
83780
85080
  vault_ids?: Array<string>;
83781
85081
  /**
@@ -84716,7 +86016,7 @@ export type AgentsListResponses = {
84716
86016
  */
84717
86017
  environment_id?: string | null;
84718
86018
  /**
84719
- * 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.
86019
+ * 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.
84720
86020
  */
84721
86021
  vault_ids?: Array<string>;
84722
86022
  /**
@@ -85255,7 +86555,7 @@ export type AgentsCreateData = {
85255
86555
  */
85256
86556
  environment_id?: string | null;
85257
86557
  /**
85258
- * 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.
86558
+ * 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.
85259
86559
  */
85260
86560
  vault_ids?: Array<string>;
85261
86561
  /**
@@ -85938,7 +87238,7 @@ export type AgentsCreateResponses = {
85938
87238
  */
85939
87239
  environment_id?: string | null;
85940
87240
  /**
85941
- * 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.
87241
+ * 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.
85942
87242
  */
85943
87243
  vault_ids?: Array<string>;
85944
87244
  /**
@@ -86609,7 +87909,7 @@ export type AgentsRetrieveResponses = {
86609
87909
  */
86610
87910
  environment_id?: string | null;
86611
87911
  /**
86612
- * 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.
87912
+ * 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.
86613
87913
  */
86614
87914
  vault_ids?: Array<string>;
86615
87915
  /**
@@ -87157,7 +88457,7 @@ export type AgentsUpdateData = {
87157
88457
  */
87158
88458
  environment_id?: string | null;
87159
88459
  /**
87160
- * 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.
88460
+ * 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.
87161
88461
  */
87162
88462
  vault_ids?: Array<string>;
87163
88463
  /**
@@ -87853,7 +89153,7 @@ export type AgentsUpdateResponses = {
87853
89153
  */
87854
89154
  environment_id?: string | null;
87855
89155
  /**
87856
- * 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.
89156
+ * 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.
87857
89157
  */
87858
89158
  vault_ids?: Array<string>;
87859
89159
  /**
@@ -88479,7 +89779,7 @@ export type AgentsArchiveResponses = {
88479
89779
  */
88480
89780
  environment_id?: string | null;
88481
89781
  /**
88482
- * 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.
89782
+ * 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.
88483
89783
  */
88484
89784
  vault_ids?: Array<string>;
88485
89785
  /**
@@ -89150,7 +90450,7 @@ export type AgentsVersionsListResponses = {
89150
90450
  */
89151
90451
  environment_id?: string | null;
89152
90452
  /**
89153
- * 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.
90453
+ * 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.
89154
90454
  */
89155
90455
  vault_ids?: Array<string>;
89156
90456
  /**
@@ -99010,7 +100310,7 @@ export type AutomationRunsListData = {
99010
100310
  */
99011
100311
  channel?: Array<'console' | 'api' | 'internal' | 'run' | 'trigger'>;
99012
100312
  /**
99013
- * 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.
100313
+ * 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.
99014
100314
  */
99015
100315
  initiator_type?: Array<'user' | 'api_key' | 'agent' | 'trigger'>;
99016
100316
  /**
@@ -113558,7 +114858,7 @@ export type DevopsUnitsPushErrors = {
113558
114858
  */
113559
114859
  404: DevopsDevOpsError;
113560
114860
  /**
113561
- * 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.
114861
+ * 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.
113562
114862
  */
113563
114863
  409: DevopsDevOpsError;
113564
114864
  /**
@@ -118661,45 +119961,509 @@ export type MediaListUnderstandingsByLibraryErrors = {
118661
119961
  */
118662
119962
  503: MediaMediaError;
118663
119963
  };
118664
- export type MediaListUnderstandingsByLibraryError = MediaListUnderstandingsByLibraryErrors[keyof MediaListUnderstandingsByLibraryErrors];
118665
- export type MediaListUnderstandingsByLibraryResponses = {
119964
+ export type MediaListUnderstandingsByLibraryError = MediaListUnderstandingsByLibraryErrors[keyof MediaListUnderstandingsByLibraryErrors];
119965
+ export type MediaListUnderstandingsByLibraryResponses = {
119966
+ /**
119967
+ * Successful response.
119968
+ */
119969
+ 200: MediaUnderstandingPage;
119970
+ };
119971
+ export type MediaListUnderstandingsByLibraryResponse = MediaListUnderstandingsByLibraryResponses[keyof MediaListUnderstandingsByLibraryResponses];
119972
+ export type MediaListJobsData = {
119973
+ body?: never;
119974
+ path: {
119975
+ /**
119976
+ * Library ID returned by creation.
119977
+ */
119978
+ library_id: string;
119979
+ };
119980
+ query?: {
119981
+ /**
119982
+ * Filter jobs by their current status.
119983
+ */
119984
+ status?: MediaJobStatus;
119985
+ /**
119986
+ * Return only the jobs started by this automation run (its root run), so one pipeline run reads as one batch.
119987
+ */
119988
+ pipeline_run_id?: string;
119989
+ /**
119990
+ * Maximum entries in this page, from 1 through 100; defaults to 100.
119991
+ */
119992
+ limit?: number;
119993
+ /**
119994
+ * Job id from the previous page’s next_cursor; omit for the first page.
119995
+ */
119996
+ cursor?: MediaJobId;
119997
+ };
119998
+ url: '/media/v1/libraries/{library_id}/jobs';
119999
+ };
120000
+ export type MediaListJobsErrors = {
120001
+ /**
120002
+ * A selector, cursor, limit or other parameter is invalid; correct the reported field before retrying.
120003
+ */
120004
+ 400: MediaMediaError;
120005
+ /**
120006
+ * Request failed; see the error code reference.
120007
+ */
120008
+ 402: MediaMediaError;
120009
+ /**
120010
+ * This credential has read-only access to the library; use a write-capable binding for mutations.
120011
+ */
120012
+ 403: MediaMediaError;
120013
+ /**
120014
+ * The library or asset is missing, deleted or belongs to another tenant; verify its identifier and owner.
120015
+ */
120016
+ 404: MediaMediaError;
120017
+ /**
120018
+ * Request failed; see the error code reference.
120019
+ */
120020
+ 409: MediaMediaError;
120021
+ /**
120022
+ * The file exceeds an input limit; provide a smaller source file.
120023
+ */
120024
+ 413: MediaMediaError;
120025
+ /**
120026
+ * This media format is unsupported; provide a supported format.
120027
+ */
120028
+ 415: MediaMediaError;
120029
+ /**
120030
+ * Request failed; see the error code reference.
120031
+ */
120032
+ 422: MediaMediaError;
120033
+ /**
120034
+ * A rate limit was reached; wait before retrying.
120035
+ */
120036
+ 429: MediaMediaError;
120037
+ /**
120038
+ * The requested operation is unsupported; choose a supported method.
120039
+ */
120040
+ 501: MediaMediaError;
120041
+ /**
120042
+ * Request failed; see the error code reference.
120043
+ */
120044
+ 502: MediaMediaError;
120045
+ /**
120046
+ * Historical projections are still being initialized, or library storage is temporarily unavailable; retry shortly and check failureSummary counts_complete.
120047
+ */
120048
+ 503: MediaMediaError;
120049
+ };
120050
+ export type MediaListJobsError = MediaListJobsErrors[keyof MediaListJobsErrors];
120051
+ export type MediaListJobsResponses = {
120052
+ /**
120053
+ * Successful response.
120054
+ */
120055
+ 200: MediaJobPage;
120056
+ };
120057
+ export type MediaListJobsResponse = MediaListJobsResponses[keyof MediaListJobsResponses];
120058
+ export type MediaCancelJobData = {
120059
+ body?: never;
120060
+ path: {
120061
+ /**
120062
+ * Library ID returned by creation.
120063
+ */
120064
+ library_id: string;
120065
+ /**
120066
+ * Job identifier returned by batch or generation creation; the job is resolved within the specified library.
120067
+ */
120068
+ job_id: string;
120069
+ };
120070
+ query?: never;
120071
+ url: '/media/v1/libraries/{library_id}/jobs/{job_id}/cancel';
120072
+ };
120073
+ export type MediaCancelJobErrors = {
120074
+ /**
120075
+ * A selector, cursor, limit or other parameter is invalid; correct the reported field before retrying.
120076
+ */
120077
+ 400: MediaMediaError;
120078
+ /**
120079
+ * Request failed; see the error code reference.
120080
+ */
120081
+ 402: MediaMediaError;
120082
+ /**
120083
+ * This credential has read-only access to the library; use a write-capable binding for mutations.
120084
+ */
120085
+ 403: MediaMediaError;
120086
+ /**
120087
+ * The library or asset is missing, deleted or belongs to another tenant; verify its identifier and owner.
120088
+ */
120089
+ 404: MediaMediaError;
120090
+ /**
120091
+ * Request failed; see the error code reference.
120092
+ */
120093
+ 409: MediaMediaError;
120094
+ /**
120095
+ * The file exceeds an input limit; provide a smaller source file.
120096
+ */
120097
+ 413: MediaMediaError;
120098
+ /**
120099
+ * This media format is unsupported; provide a supported format.
120100
+ */
120101
+ 415: MediaMediaError;
120102
+ /**
120103
+ * Request failed; see the error code reference.
120104
+ */
120105
+ 422: MediaMediaError;
120106
+ /**
120107
+ * A rate limit was reached; wait before retrying.
120108
+ */
120109
+ 429: MediaMediaError;
120110
+ /**
120111
+ * The requested operation is unsupported; choose a supported method.
120112
+ */
120113
+ 501: MediaMediaError;
120114
+ /**
120115
+ * Request failed; see the error code reference.
120116
+ */
120117
+ 502: MediaMediaError;
120118
+ /**
120119
+ * Historical projections are still being initialized, or library storage is temporarily unavailable; retry shortly and check failureSummary counts_complete.
120120
+ */
120121
+ 503: MediaMediaError;
120122
+ };
120123
+ export type MediaCancelJobError = MediaCancelJobErrors[keyof MediaCancelJobErrors];
120124
+ export type MediaCancelJobResponses = {
120125
+ /**
120126
+ * Successful response.
120127
+ */
120128
+ 200: MediaJob;
120129
+ };
120130
+ export type MediaCancelJobResponse = MediaCancelJobResponses[keyof MediaCancelJobResponses];
120131
+ export type MediaGetGenerationCapabilitiesData = {
120132
+ body?: never;
120133
+ path?: never;
120134
+ query?: never;
120135
+ url: '/media/v1/generation/capabilities';
120136
+ };
120137
+ export type MediaGetGenerationCapabilitiesErrors = {
120138
+ /**
120139
+ * A selector, cursor, limit or other parameter is invalid; correct the reported field before retrying.
120140
+ */
120141
+ 400: MediaMediaError;
120142
+ /**
120143
+ * Request failed; see the error code reference.
120144
+ */
120145
+ 402: MediaMediaError;
120146
+ /**
120147
+ * This credential has read-only access to the library; use a write-capable binding for mutations.
120148
+ */
120149
+ 403: MediaMediaError;
120150
+ /**
120151
+ * The library or asset is missing, deleted or belongs to another tenant; verify its identifier and owner.
120152
+ */
120153
+ 404: MediaMediaError;
120154
+ /**
120155
+ * Request failed; see the error code reference.
120156
+ */
120157
+ 409: MediaMediaError;
120158
+ /**
120159
+ * The file exceeds an input limit; provide a smaller source file.
120160
+ */
120161
+ 413: MediaMediaError;
120162
+ /**
120163
+ * This media format is unsupported; provide a supported format.
120164
+ */
120165
+ 415: MediaMediaError;
120166
+ /**
120167
+ * Request failed; see the error code reference.
120168
+ */
120169
+ 422: MediaMediaError;
120170
+ /**
120171
+ * A rate limit was reached; wait before retrying.
120172
+ */
120173
+ 429: MediaMediaError;
120174
+ /**
120175
+ * The requested operation is unsupported; choose a supported method.
120176
+ */
120177
+ 501: MediaMediaError;
120178
+ /**
120179
+ * Request failed; see the error code reference.
120180
+ */
120181
+ 502: MediaMediaError;
120182
+ /**
120183
+ * Historical projections are still being initialized, or library storage is temporarily unavailable; retry shortly and check failureSummary counts_complete.
120184
+ */
120185
+ 503: MediaMediaError;
120186
+ };
120187
+ export type MediaGetGenerationCapabilitiesError = MediaGetGenerationCapabilitiesErrors[keyof MediaGetGenerationCapabilitiesErrors];
120188
+ export type MediaGetGenerationCapabilitiesResponses = {
120189
+ /**
120190
+ * Successful response.
120191
+ */
120192
+ 200: MediaGenerationCapabilities;
120193
+ };
120194
+ export type MediaGetGenerationCapabilitiesResponse = MediaGetGenerationCapabilitiesResponses[keyof MediaGetGenerationCapabilitiesResponses];
120195
+ export type MediaAlignAssetData = {
120196
+ /**
120197
+ * Align two recordings by their sound. The route names the source asset; this body names the reference to align against it. The result is an analysis, not a new asset: nothing is stored, the source is never changed, and the completed job carries the answer in result.
120198
+ */
120199
+ body: {
120200
+ /**
120201
+ * Asset to align against the one the route names. It must be an audio or video asset of the same library, otherwise the request is refused with REFERENCE_TYPE_MISMATCH before a job exists.
120202
+ */
120203
+ reference_asset_id: string;
120204
+ /**
120205
+ * Largest offset to search for, in seconds; omit it to let the model search its full range. Zero and negative values are refused with INVALID_PARAMS.
120206
+ */
120207
+ max_offset_seconds?: number;
120208
+ /**
120209
+ * Stable key so a retried request reuses the same job instead of analysing and charging again; reusing it with different content is rejected.
120210
+ */
120211
+ idempotency_key?: string;
120212
+ };
120213
+ headers?: {
120214
+ /**
120215
+ * Stable key for retrying the same request without creating or charging for another job; reusing it with different request content is rejected. Send it here or as idempotency_key in the body, never both with different values.
120216
+ */
120217
+ 'Idempotency-Key'?: string;
120218
+ };
120219
+ path: {
120220
+ /**
120221
+ * Library ID returned by creation.
120222
+ */
120223
+ library_id: string;
120224
+ /**
120225
+ * 32-character asset ID.
120226
+ */
120227
+ asset_id: string;
120228
+ };
120229
+ query?: never;
120230
+ url: '/media/v1/libraries/{library_id}/assets/{asset_id}/align';
120231
+ };
120232
+ export type MediaAlignAssetErrors = {
120233
+ /**
120234
+ * REFERENCE_TYPE_MISMATCH: the source asset or the reference asset is not an audio or video asset; both must be one of the two. INVALID_PARAMS: reference_asset_id is missing, max_offset_seconds is zero or negative, or the request names an alignment model the generation capabilities do not offer. OPERATION_NOT_SUPPORTED: the platform has published no alignment model, so the request is refused with the model field named. Correct the reported field; nothing was analysed and nothing was charged.
120235
+ */
120236
+ 400: MediaMediaError;
120237
+ /**
120238
+ * INSUFFICIENT_BALANCE: the organization balance cannot cover the estimated cost of this generation or edit; top up and resubmit. Nothing was generated and nothing was charged for this request.
120239
+ */
120240
+ 402: MediaMediaError;
120241
+ /**
120242
+ * This credential has read-only access to the library; use a write-capable binding for mutations.
120243
+ */
120244
+ 403: MediaMediaError;
120245
+ /**
120246
+ * ASSET_NOT_FOUND: the source or the reference asset is missing, deleted or belongs to another library, or the addressed library was not found; verify the identifiers with libraries and assets. A reference asset that cannot be reached answers the same way, never as a hint that it exists elsewhere.
120247
+ */
120248
+ 404: MediaMediaError;
120249
+ /**
120250
+ * MODEL_PENDING or JOB_INVALID_STATE: the chosen model is not ready for this library, or the job cannot start from its current state; wait for the model to become available, or start a new job rather than resuming this one.
120251
+ */
120252
+ 409: MediaMediaError;
120253
+ /**
120254
+ * The file exceeds an input limit; provide a smaller source file.
120255
+ */
120256
+ 413: MediaMediaError;
120257
+ /**
120258
+ * This media format is unsupported; provide a supported format.
120259
+ */
120260
+ 415: MediaMediaError;
120261
+ /**
120262
+ * CONTENT_REJECTED: the provider refused the prompt or the source image under its content policy; change the prompt or the source before retrying. Nothing was generated and nothing was charged.
120263
+ */
120264
+ 422: MediaMediaError;
120265
+ /**
120266
+ * RATE_LIMITED: this library already has its maximum number of running jobs of this type and 50 more waiting, or the provider is throttling requests; Retry-After gives the seconds to wait before retrying. Below that a job past the running limit is accepted and waits (queue_reason concurrency) instead of being refused.
120267
+ */
120268
+ 429: MediaMediaError;
120269
+ /**
120270
+ * The requested operation is unsupported; choose a supported method.
120271
+ */
120272
+ 501: MediaMediaError;
120273
+ /**
120274
+ * Request failed; see the error code reference.
120275
+ */
120276
+ 502: MediaMediaError;
120277
+ /**
120278
+ * Historical projections are still being initialized, or library storage is temporarily unavailable; retry shortly and check failureSummary counts_complete.
120279
+ */
120280
+ 503: MediaMediaError;
120281
+ };
120282
+ export type MediaAlignAssetError = MediaAlignAssetErrors[keyof MediaAlignAssetErrors];
120283
+ export type MediaAlignAssetResponses = {
120284
+ /**
120285
+ * The alignment job is queued. Poll GET /media/v1/libraries/{library_id}/jobs/{job_id} until its status is completed or failed; a completed job carries the answer in result as offset_seconds and confidence, so a caller holding both recordings knows which one to slide. No asset is stored and nothing is overwritten. An alignment with the same source, reference and params answers the job already completed instead of analysing and charging again.
120286
+ */
120287
+ 202: MediaJob;
120288
+ };
120289
+ export type MediaAlignAssetResponse = MediaAlignAssetResponses[keyof MediaAlignAssetResponses];
120290
+ export type MediaGetHlsRenditionsData = {
120291
+ body?: never;
120292
+ path: {
120293
+ /**
120294
+ * Library ID returned by creation.
120295
+ */
120296
+ library_id: string;
120297
+ /**
120298
+ * 32-character asset ID.
120299
+ */
120300
+ asset_id: string;
120301
+ };
120302
+ query?: never;
120303
+ url: '/media/v1/libraries/{library_id}/assets/{asset_id}/hls';
120304
+ };
120305
+ export type MediaGetHlsRenditionsErrors = {
120306
+ /**
120307
+ * A selector, cursor, limit or other parameter is invalid; correct the reported field before retrying.
120308
+ */
120309
+ 400: MediaMediaError;
120310
+ /**
120311
+ * Request failed; see the error code reference.
120312
+ */
120313
+ 402: MediaMediaError;
120314
+ /**
120315
+ * This credential has read-only access to the library; use a write-capable binding for mutations.
120316
+ */
120317
+ 403: MediaMediaError;
120318
+ /**
120319
+ * The library or asset is missing, deleted or belongs to another tenant; verify its identifier and owner.
120320
+ */
120321
+ 404: MediaMediaError;
120322
+ /**
120323
+ * Request failed; see the error code reference.
120324
+ */
120325
+ 409: MediaMediaError;
120326
+ /**
120327
+ * The file exceeds an input limit; provide a smaller source file.
120328
+ */
120329
+ 413: MediaMediaError;
120330
+ /**
120331
+ * This media format is unsupported; provide a supported format.
120332
+ */
120333
+ 415: MediaMediaError;
120334
+ /**
120335
+ * Request failed; see the error code reference.
120336
+ */
120337
+ 422: MediaMediaError;
120338
+ /**
120339
+ * A rate limit was reached; wait before retrying.
120340
+ */
120341
+ 429: MediaMediaError;
120342
+ /**
120343
+ * The requested operation is unsupported; choose a supported method.
120344
+ */
120345
+ 501: MediaMediaError;
120346
+ /**
120347
+ * Request failed; see the error code reference.
120348
+ */
120349
+ 502: MediaMediaError;
120350
+ /**
120351
+ * Historical projections are still being initialized, or library storage is temporarily unavailable; retry shortly and check failureSummary counts_complete.
120352
+ */
120353
+ 503: MediaMediaError;
120354
+ };
120355
+ export type MediaGetHlsRenditionsError = MediaGetHlsRenditionsErrors[keyof MediaGetHlsRenditionsErrors];
120356
+ export type MediaGetHlsRenditionsResponses = {
120357
+ /**
120358
+ * Successful response.
120359
+ */
120360
+ 200: MediaHlsLadder;
120361
+ };
120362
+ export type MediaGetHlsRenditionsResponse = MediaGetHlsRenditionsResponses[keyof MediaGetHlsRenditionsResponses];
120363
+ export type MediaRequestHlsRenditionsData = {
120364
+ /**
120365
+ * Which clarity rungs to build for the asset. Omit heights to build the whole ladder.
120366
+ */
120367
+ body: {
120368
+ /**
120369
+ * The clarity rungs to build: a non-empty subset of 480, 720 and 1080 with no repeats. Omitted or empty builds all three. The ladder never upscales, so a rung above the source’s short side is dropped.
120370
+ */
120371
+ heights?: Array<480 | 720 | 1080>;
120372
+ };
120373
+ path: {
120374
+ /**
120375
+ * Library ID returned by creation.
120376
+ */
120377
+ library_id: string;
120378
+ /**
120379
+ * 32-character asset ID.
120380
+ */
120381
+ asset_id: string;
120382
+ };
120383
+ query?: never;
120384
+ url: '/media/v1/libraries/{library_id}/assets/{asset_id}/hls';
120385
+ };
120386
+ export type MediaRequestHlsRenditionsErrors = {
120387
+ /**
120388
+ * A selector, cursor, limit or other parameter is invalid; correct the reported field before retrying.
120389
+ */
120390
+ 400: MediaMediaError;
120391
+ /**
120392
+ * Request failed; see the error code reference.
120393
+ */
120394
+ 402: MediaMediaError;
120395
+ /**
120396
+ * This credential has read-only access to the library; use a write-capable binding for mutations.
120397
+ */
120398
+ 403: MediaMediaError;
120399
+ /**
120400
+ * The library or asset is missing, deleted or belongs to another tenant; verify its identifier and owner.
120401
+ */
120402
+ 404: MediaMediaError;
120403
+ /**
120404
+ * Request failed; see the error code reference.
120405
+ */
120406
+ 409: MediaMediaError;
120407
+ /**
120408
+ * The file exceeds an input limit; provide a smaller source file.
120409
+ */
120410
+ 413: MediaMediaError;
120411
+ /**
120412
+ * This media format is unsupported; provide a supported format.
120413
+ */
120414
+ 415: MediaMediaError;
120415
+ /**
120416
+ * Request failed; see the error code reference.
120417
+ */
120418
+ 422: MediaMediaError;
120419
+ /**
120420
+ * A rate limit was reached; wait before retrying.
120421
+ */
120422
+ 429: MediaMediaError;
120423
+ /**
120424
+ * The requested operation is unsupported; choose a supported method.
120425
+ */
120426
+ 501: MediaMediaError;
120427
+ /**
120428
+ * Request failed; see the error code reference.
120429
+ */
120430
+ 502: MediaMediaError;
120431
+ /**
120432
+ * Historical projections are still being initialized, or library storage is temporarily unavailable; retry shortly and check failureSummary counts_complete.
120433
+ */
120434
+ 503: MediaMediaError;
120435
+ };
120436
+ export type MediaRequestHlsRenditionsError = MediaRequestHlsRenditionsErrors[keyof MediaRequestHlsRenditionsErrors];
120437
+ export type MediaRequestHlsRenditionsResponses = {
118666
120438
  /**
118667
120439
  * Successful response.
118668
120440
  */
118669
- 200: MediaUnderstandingPage;
120441
+ 202: MediaHlsLadder;
118670
120442
  };
118671
- export type MediaListUnderstandingsByLibraryResponse = MediaListUnderstandingsByLibraryResponses[keyof MediaListUnderstandingsByLibraryResponses];
118672
- export type MediaListJobsData = {
118673
- body?: never;
118674
- path: {
120443
+ export type MediaRequestHlsRenditionsResponse = MediaRequestHlsRenditionsResponses[keyof MediaRequestHlsRenditionsResponses];
120444
+ export type MediaCreateVoiceData = {
120445
+ /**
120446
+ * Exactly one of the two voice shapes: consent_id with samples (a consented voice) or design_asset_id (a generated voice).
120447
+ */
120448
+ body: MediaVoiceCloneInput | MediaVoiceDesignCreateInput;
120449
+ headers?: {
118675
120450
  /**
118676
- * Library ID returned by creation.
120451
+ * Stable key for retrying the same request without creating or charging for another job; reusing it with different request content is rejected. Send it here or as idempotency_key in the body, never both with different values.
118677
120452
  */
118678
- library_id: string;
120453
+ 'Idempotency-Key'?: string;
118679
120454
  };
118680
- query?: {
118681
- /**
118682
- * Filter jobs by their current status.
118683
- */
118684
- status?: MediaJobStatus;
118685
- /**
118686
- * Return only the jobs started by this automation run (its root run), so one pipeline run reads as one batch.
118687
- */
118688
- pipeline_run_id?: string;
118689
- /**
118690
- * Maximum entries in this page, from 1 through 100; defaults to 100.
118691
- */
118692
- limit?: number;
120455
+ path: {
118693
120456
  /**
118694
- * Job id from the previous page’s next_cursor; omit for the first page.
120457
+ * Library ID returned by creation.
118695
120458
  */
118696
- cursor?: MediaJobId;
120459
+ library_id: string;
118697
120460
  };
118698
- url: '/media/v1/libraries/{library_id}/jobs';
120461
+ query?: never;
120462
+ url: '/media/v1/libraries/{library_id}/voices';
118699
120463
  };
118700
- export type MediaListJobsErrors = {
120464
+ export type MediaCreateVoiceErrors = {
118701
120465
  /**
118702
- * A selector, cursor, limit or other parameter is invalid; correct the reported field before retrying.
120466
+ * Request failed; see the error code reference.
118703
120467
  */
118704
120468
  400: MediaMediaError;
118705
120469
  /**
@@ -118707,11 +120471,11 @@ export type MediaListJobsErrors = {
118707
120471
  */
118708
120472
  402: MediaMediaError;
118709
120473
  /**
118710
- * This credential has read-only access to the library; use a write-capable binding for mutations.
120474
+ * Request failed; see the error code reference.
118711
120475
  */
118712
120476
  403: MediaMediaError;
118713
120477
  /**
118714
- * The library or asset is missing, deleted or belongs to another tenant; verify its identifier and owner.
120478
+ * Request failed; see the error code reference.
118715
120479
  */
118716
120480
  404: MediaMediaError;
118717
120481
  /**
@@ -118719,11 +120483,11 @@ export type MediaListJobsErrors = {
118719
120483
  */
118720
120484
  409: MediaMediaError;
118721
120485
  /**
118722
- * The file exceeds an input limit; provide a smaller source file.
120486
+ * Request failed; see the error code reference.
118723
120487
  */
118724
120488
  413: MediaMediaError;
118725
120489
  /**
118726
- * This media format is unsupported; provide a supported format.
120490
+ * Request failed; see the error code reference.
118727
120491
  */
118728
120492
  415: MediaMediaError;
118729
120493
  /**
@@ -118731,11 +120495,11 @@ export type MediaListJobsErrors = {
118731
120495
  */
118732
120496
  422: MediaMediaError;
118733
120497
  /**
118734
- * A rate limit was reached; wait before retrying.
120498
+ * Request failed; see the error code reference.
118735
120499
  */
118736
120500
  429: MediaMediaError;
118737
120501
  /**
118738
- * The requested operation is unsupported; choose a supported method.
120502
+ * Request failed; see the error code reference.
118739
120503
  */
118740
120504
  501: MediaMediaError;
118741
120505
  /**
@@ -118743,36 +120507,58 @@ export type MediaListJobsErrors = {
118743
120507
  */
118744
120508
  502: MediaMediaError;
118745
120509
  /**
118746
- * Historical projections are still being initialized, or library storage is temporarily unavailable; retry shortly and check failureSummary counts_complete.
120510
+ * Request failed; see the error code reference.
118747
120511
  */
118748
120512
  503: MediaMediaError;
118749
120513
  };
118750
- export type MediaListJobsError = MediaListJobsErrors[keyof MediaListJobsErrors];
118751
- export type MediaListJobsResponses = {
120514
+ export type MediaCreateVoiceError = MediaCreateVoiceErrors[keyof MediaCreateVoiceErrors];
120515
+ export type MediaCreateVoiceResponses = {
118752
120516
  /**
118753
120517
  * Successful response.
118754
120518
  */
118755
- 200: MediaJobPage;
120519
+ 202: MediaJob;
118756
120520
  };
118757
- export type MediaListJobsResponse = MediaListJobsResponses[keyof MediaListJobsResponses];
118758
- export type MediaCancelJobData = {
118759
- body?: never;
120521
+ export type MediaCreateVoiceResponse = MediaCreateVoiceResponses[keyof MediaCreateVoiceResponses];
120522
+ export type MediaDesignVoiceData = {
120523
+ /**
120524
+ * One voice-design run: what the voice should sound like and the line the previews speak.
120525
+ */
120526
+ body: {
120527
+ /**
120528
+ * Text description of the voice to design, 1 to 500 characters. The model makes every preview from it; a description that fails review answers CONTENT_REJECTED.
120529
+ */
120530
+ description: string;
120531
+ /**
120532
+ * Line each preview speaks, 15 to 200 characters: long enough to hear the voice, short enough for one model call.
120533
+ */
120534
+ preview_text: string;
120535
+ /**
120536
+ * Language the previews speak: zh or en only.
120537
+ */
120538
+ language: 'zh' | 'en';
120539
+ /**
120540
+ * How many preview recordings to design, 1 to 3; defaults to 3. Each one is stored as an audio asset.
120541
+ */
120542
+ count?: number;
120543
+ };
120544
+ headers?: {
120545
+ /**
120546
+ * Stable key for retrying the same request without creating or charging for another job; reusing it with different request content is rejected. Send it here or as idempotency_key in the body, never both with different values.
120547
+ */
120548
+ 'Idempotency-Key'?: string;
120549
+ };
118760
120550
  path: {
118761
120551
  /**
118762
120552
  * Library ID returned by creation.
118763
120553
  */
118764
120554
  library_id: string;
118765
- /**
118766
- * Job identifier returned by batch or generation creation; the job is resolved within the specified library.
118767
- */
118768
- job_id: string;
118769
120555
  };
118770
120556
  query?: never;
118771
- url: '/media/v1/libraries/{library_id}/jobs/{job_id}/cancel';
120557
+ url: '/media/v1/libraries/{library_id}/voices/designs';
118772
120558
  };
118773
- export type MediaCancelJobErrors = {
120559
+ export type MediaDesignVoiceErrors = {
118774
120560
  /**
118775
- * A selector, cursor, limit or other parameter is invalid; correct the reported field before retrying.
120561
+ * Request failed; see the error code reference.
118776
120562
  */
118777
120563
  400: MediaMediaError;
118778
120564
  /**
@@ -118780,11 +120566,11 @@ export type MediaCancelJobErrors = {
118780
120566
  */
118781
120567
  402: MediaMediaError;
118782
120568
  /**
118783
- * This credential has read-only access to the library; use a write-capable binding for mutations.
120569
+ * Request failed; see the error code reference.
118784
120570
  */
118785
120571
  403: MediaMediaError;
118786
120572
  /**
118787
- * The library or asset is missing, deleted or belongs to another tenant; verify its identifier and owner.
120573
+ * Request failed; see the error code reference.
118788
120574
  */
118789
120575
  404: MediaMediaError;
118790
120576
  /**
@@ -118792,11 +120578,11 @@ export type MediaCancelJobErrors = {
118792
120578
  */
118793
120579
  409: MediaMediaError;
118794
120580
  /**
118795
- * The file exceeds an input limit; provide a smaller source file.
120581
+ * Request failed; see the error code reference.
118796
120582
  */
118797
120583
  413: MediaMediaError;
118798
120584
  /**
118799
- * This media format is unsupported; provide a supported format.
120585
+ * Request failed; see the error code reference.
118800
120586
  */
118801
120587
  415: MediaMediaError;
118802
120588
  /**
@@ -118804,11 +120590,11 @@ export type MediaCancelJobErrors = {
118804
120590
  */
118805
120591
  422: MediaMediaError;
118806
120592
  /**
118807
- * A rate limit was reached; wait before retrying.
120593
+ * Request failed; see the error code reference.
118808
120594
  */
118809
120595
  429: MediaMediaError;
118810
120596
  /**
118811
- * The requested operation is unsupported; choose a supported method.
120597
+ * Request failed; see the error code reference.
118812
120598
  */
118813
120599
  501: MediaMediaError;
118814
120600
  /**
@@ -118816,25 +120602,51 @@ export type MediaCancelJobErrors = {
118816
120602
  */
118817
120603
  502: MediaMediaError;
118818
120604
  /**
118819
- * Historical projections are still being initialized, or library storage is temporarily unavailable; retry shortly and check failureSummary counts_complete.
120605
+ * Request failed; see the error code reference.
118820
120606
  */
118821
120607
  503: MediaMediaError;
118822
120608
  };
118823
- export type MediaCancelJobError = MediaCancelJobErrors[keyof MediaCancelJobErrors];
118824
- export type MediaCancelJobResponses = {
120609
+ export type MediaDesignVoiceError = MediaDesignVoiceErrors[keyof MediaDesignVoiceErrors];
120610
+ export type MediaDesignVoiceResponses = {
118825
120611
  /**
118826
120612
  * Successful response.
118827
120613
  */
118828
- 200: MediaJob;
120614
+ 202: MediaJob;
118829
120615
  };
118830
- export type MediaCancelJobResponse = MediaCancelJobResponses[keyof MediaCancelJobResponses];
118831
- export type MediaGetGenerationCapabilitiesData = {
120616
+ export type MediaDesignVoiceResponse = MediaDesignVoiceResponses[keyof MediaDesignVoiceResponses];
120617
+ export type MediaListWorksData = {
118832
120618
  body?: never;
118833
- path?: never;
118834
- query?: never;
118835
- url: '/media/v1/generation/capabilities';
120619
+ path: {
120620
+ /**
120621
+ * Library ID returned by creation.
120622
+ */
120623
+ library_id: string;
120624
+ };
120625
+ query?: {
120626
+ /**
120627
+ * Only works of this kind: gallery, article, product_listing or blocks.
120628
+ */
120629
+ kind?: 'gallery' | 'article' | 'product_listing' | 'blocks';
120630
+ /**
120631
+ * Only works of this series.
120632
+ */
120633
+ series?: string;
120634
+ /**
120635
+ * Only works whose title contains this text, at most 100 characters.
120636
+ */
120637
+ q?: string;
120638
+ /**
120639
+ * Maximum entries in this page, from 1 through 100; defaults to 100.
120640
+ */
120641
+ limit?: number;
120642
+ /**
120643
+ * Cursor from the previous next_cursor.
120644
+ */
120645
+ cursor?: string;
120646
+ };
120647
+ url: '/media/v1/libraries/{library_id}/works';
118836
120648
  };
118837
- export type MediaGetGenerationCapabilitiesErrors = {
120649
+ export type MediaListWorksErrors = {
118838
120650
  /**
118839
120651
  * A selector, cursor, limit or other parameter is invalid; correct the reported field before retrying.
118840
120652
  */
@@ -118884,58 +120696,52 @@ export type MediaGetGenerationCapabilitiesErrors = {
118884
120696
  */
118885
120697
  503: MediaMediaError;
118886
120698
  };
118887
- export type MediaGetGenerationCapabilitiesError = MediaGetGenerationCapabilitiesErrors[keyof MediaGetGenerationCapabilitiesErrors];
118888
- export type MediaGetGenerationCapabilitiesResponses = {
120699
+ export type MediaListWorksError = MediaListWorksErrors[keyof MediaListWorksErrors];
120700
+ export type MediaListWorksResponses = {
118889
120701
  /**
118890
120702
  * Successful response.
118891
120703
  */
118892
- 200: MediaGenerationCapabilities;
120704
+ 200: MediaWorkPage;
118893
120705
  };
118894
- export type MediaGetGenerationCapabilitiesResponse = MediaGetGenerationCapabilitiesResponses[keyof MediaGetGenerationCapabilitiesResponses];
118895
- export type MediaAlignAssetData = {
120706
+ export type MediaListWorksResponse = MediaListWorksResponses[keyof MediaListWorksResponses];
120707
+ export type MediaCreateWorkData = {
118896
120708
  /**
118897
- * Align two recordings by their sound. The route names the source asset; this body names the reference to align against it. The result is an analysis, not a new asset: nothing is stored, the source is never changed, and the completed job carries the answer in result.
120709
+ * A new work: its kind and its whole body, with an optional series and custom fields.
118898
120710
  */
118899
120711
  body: {
118900
120712
  /**
118901
- * Asset to align against the one the route names. It must be an audio or video asset of the same library, otherwise the request is refused with REFERENCE_TYPE_MISMATCH before a job exists.
120713
+ * The work’s kind; it decides which body fields are accepted.
118902
120714
  */
118903
- reference_asset_id: string;
120715
+ kind: MediaWorkKind;
118904
120716
  /**
118905
- * Largest offset to search for, in seconds; omit it to let the model search its full range. Zero and negative values are refused with INVALID_PARAMS.
120717
+ * 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.
118906
120718
  */
118907
- max_offset_seconds?: number;
120719
+ body: MediaWorkBody;
118908
120720
  /**
118909
- * Stable key so a retried request reuses the same job instead of analysing and charging again; reusing it with different content is rejected.
120721
+ * Groups the platform versions of one story: 1 to 64 characters of a-z, 0-9, _ and -.
118910
120722
  */
118911
- idempotency_key?: string;
118912
- };
118913
- headers?: {
120723
+ series?: string;
118914
120724
  /**
118915
- * Stable key for retrying the same request without creating or charging for another job; reusing it with different request content is rejected. Send it here or as idempotency_key in the body, never both with different values.
120725
+ * Caller data such as source, published links and numbers; at most 50 keys and 16 KB as JSON.
118916
120726
  */
118917
- 'Idempotency-Key'?: string;
120727
+ custom?: MediaWorkCustom;
118918
120728
  };
118919
120729
  path: {
118920
120730
  /**
118921
120731
  * Library ID returned by creation.
118922
120732
  */
118923
120733
  library_id: string;
118924
- /**
118925
- * 32-character asset ID.
118926
- */
118927
- asset_id: string;
118928
120734
  };
118929
120735
  query?: never;
118930
- url: '/media/v1/libraries/{library_id}/assets/{asset_id}/align';
120736
+ url: '/media/v1/libraries/{library_id}/works';
118931
120737
  };
118932
- export type MediaAlignAssetErrors = {
120738
+ export type MediaCreateWorkErrors = {
118933
120739
  /**
118934
- * REFERENCE_TYPE_MISMATCH: the source asset or the reference asset is not an audio or video asset; both must be one of the two. INVALID_PARAMS: reference_asset_id is missing, max_offset_seconds is zero or negative, or the request names an alignment model the generation capabilities do not offer. OPERATION_NOT_SUPPORTED: the platform has published no alignment model, so the request is refused with the model field named. Correct the reported field; nothing was analysed and nothing was charged.
120740
+ * A selector, cursor, limit or other parameter is invalid; correct the reported field before retrying.
118935
120741
  */
118936
120742
  400: MediaMediaError;
118937
120743
  /**
118938
- * INSUFFICIENT_BALANCE: the organization balance cannot cover the estimated cost of this generation or edit; top up and resubmit. Nothing was generated and nothing was charged for this request.
120744
+ * Request failed; see the error code reference.
118939
120745
  */
118940
120746
  402: MediaMediaError;
118941
120747
  /**
@@ -118943,11 +120749,11 @@ export type MediaAlignAssetErrors = {
118943
120749
  */
118944
120750
  403: MediaMediaError;
118945
120751
  /**
118946
- * ASSET_NOT_FOUND: the source or the reference asset is missing, deleted or belongs to another library, or the addressed library was not found; verify the identifiers with libraries and assets. A reference asset that cannot be reached answers the same way, never as a hint that it exists elsewhere.
120752
+ * The library or asset is missing, deleted or belongs to another tenant; verify its identifier and owner.
118947
120753
  */
118948
120754
  404: MediaMediaError;
118949
120755
  /**
118950
- * MODEL_PENDING or JOB_INVALID_STATE: the chosen model is not ready for this library, or the job cannot start from its current state; wait for the model to become available, or start a new job rather than resuming this one.
120756
+ * Request failed; see the error code reference.
118951
120757
  */
118952
120758
  409: MediaMediaError;
118953
120759
  /**
@@ -118959,11 +120765,11 @@ export type MediaAlignAssetErrors = {
118959
120765
  */
118960
120766
  415: MediaMediaError;
118961
120767
  /**
118962
- * CONTENT_REJECTED: the provider refused the prompt or the source image under its content policy; change the prompt or the source before retrying. Nothing was generated and nothing was charged.
120768
+ * Request failed; see the error code reference.
118963
120769
  */
118964
120770
  422: MediaMediaError;
118965
120771
  /**
118966
- * RATE_LIMITED: this library already has its maximum number of running jobs of this type and 50 more waiting, or the provider is throttling requests; Retry-After gives the seconds to wait before retrying. Below that a job past the running limit is accepted and waits (queue_reason concurrency) instead of being refused.
120772
+ * A rate limit was reached; wait before retrying.
118967
120773
  */
118968
120774
  429: MediaMediaError;
118969
120775
  /**
@@ -118979,15 +120785,15 @@ export type MediaAlignAssetErrors = {
118979
120785
  */
118980
120786
  503: MediaMediaError;
118981
120787
  };
118982
- export type MediaAlignAssetError = MediaAlignAssetErrors[keyof MediaAlignAssetErrors];
118983
- export type MediaAlignAssetResponses = {
120788
+ export type MediaCreateWorkError = MediaCreateWorkErrors[keyof MediaCreateWorkErrors];
120789
+ export type MediaCreateWorkResponses = {
118984
120790
  /**
118985
- * The alignment job is queued. Poll GET /media/v1/libraries/{library_id}/jobs/{job_id} until its status is completed or failed; a completed job carries the answer in result as offset_seconds and confidence, so a caller holding both recordings knows which one to slide. No asset is stored and nothing is overwritten. An alignment with the same source, reference and params answers the job already completed instead of analysing and charging again.
120791
+ * Successful response.
118986
120792
  */
118987
- 202: MediaJob;
120793
+ 200: MediaWork;
118988
120794
  };
118989
- export type MediaAlignAssetResponse = MediaAlignAssetResponses[keyof MediaAlignAssetResponses];
118990
- export type MediaGetHlsRenditionsData = {
120795
+ export type MediaCreateWorkResponse = MediaCreateWorkResponses[keyof MediaCreateWorkResponses];
120796
+ export type MediaDeleteWorkData = {
118991
120797
  body?: never;
118992
120798
  path: {
118993
120799
  /**
@@ -118995,14 +120801,14 @@ export type MediaGetHlsRenditionsData = {
118995
120801
  */
118996
120802
  library_id: string;
118997
120803
  /**
118998
- * 32-character asset ID.
120804
+ * Work id (wrk_…) returned by creation or listing.
118999
120805
  */
119000
- asset_id: string;
120806
+ work_id: string;
119001
120807
  };
119002
120808
  query?: never;
119003
- url: '/media/v1/libraries/{library_id}/assets/{asset_id}/hls';
120809
+ url: '/media/v1/libraries/{library_id}/works/{work_id}';
119004
120810
  };
119005
- export type MediaGetHlsRenditionsErrors = {
120811
+ export type MediaDeleteWorkErrors = {
119006
120812
  /**
119007
120813
  * A selector, cursor, limit or other parameter is invalid; correct the reported field before retrying.
119008
120814
  */
@@ -119052,38 +120858,35 @@ export type MediaGetHlsRenditionsErrors = {
119052
120858
  */
119053
120859
  503: MediaMediaError;
119054
120860
  };
119055
- export type MediaGetHlsRenditionsError = MediaGetHlsRenditionsErrors[keyof MediaGetHlsRenditionsErrors];
119056
- export type MediaGetHlsRenditionsResponses = {
120861
+ export type MediaDeleteWorkError = MediaDeleteWorkErrors[keyof MediaDeleteWorkErrors];
120862
+ export type MediaDeleteWorkResponses = {
119057
120863
  /**
119058
120864
  * Successful response.
119059
120865
  */
119060
- 200: MediaHlsLadder;
120866
+ 200: MediaDeletedWork;
119061
120867
  };
119062
- export type MediaGetHlsRenditionsResponse = MediaGetHlsRenditionsResponses[keyof MediaGetHlsRenditionsResponses];
119063
- export type MediaRequestHlsRenditionsData = {
119064
- /**
119065
- * Which clarity rungs to build for the asset. Omit heights to build the whole ladder.
119066
- */
119067
- body: {
119068
- /**
119069
- * The clarity rungs to build: a non-empty subset of 480, 720 and 1080 with no repeats. Omitted or empty builds all three. The ladder never upscales, so a rung above the source’s short side is dropped.
119070
- */
119071
- heights?: Array<480 | 720 | 1080>;
119072
- };
120868
+ export type MediaDeleteWorkResponse = MediaDeleteWorkResponses[keyof MediaDeleteWorkResponses];
120869
+ export type MediaGetWorkData = {
120870
+ body?: never;
119073
120871
  path: {
119074
120872
  /**
119075
120873
  * Library ID returned by creation.
119076
120874
  */
119077
120875
  library_id: string;
119078
120876
  /**
119079
- * 32-character asset ID.
120877
+ * Work id (wrk_…) returned by creation or listing.
119080
120878
  */
119081
- asset_id: string;
120879
+ work_id: string;
119082
120880
  };
119083
- query?: never;
119084
- url: '/media/v1/libraries/{library_id}/assets/{asset_id}/hls';
120881
+ query?: {
120882
+ /**
120883
+ * assets returns every referenced asset with its URLs and size.
120884
+ */
120885
+ expand?: string;
120886
+ };
120887
+ url: '/media/v1/libraries/{library_id}/works/{work_id}';
119085
120888
  };
119086
- export type MediaRequestHlsRenditionsErrors = {
120889
+ export type MediaGetWorkErrors = {
119087
120890
  /**
119088
120891
  * A selector, cursor, limit or other parameter is invalid; correct the reported field before retrying.
119089
120892
  */
@@ -119133,37 +120936,52 @@ export type MediaRequestHlsRenditionsErrors = {
119133
120936
  */
119134
120937
  503: MediaMediaError;
119135
120938
  };
119136
- export type MediaRequestHlsRenditionsError = MediaRequestHlsRenditionsErrors[keyof MediaRequestHlsRenditionsErrors];
119137
- export type MediaRequestHlsRenditionsResponses = {
120939
+ export type MediaGetWorkError = MediaGetWorkErrors[keyof MediaGetWorkErrors];
120940
+ export type MediaGetWorkResponses = {
119138
120941
  /**
119139
120942
  * Successful response.
119140
120943
  */
119141
- 202: MediaHlsLadder;
120944
+ 200: MediaWork;
119142
120945
  };
119143
- export type MediaRequestHlsRenditionsResponse = MediaRequestHlsRenditionsResponses[keyof MediaRequestHlsRenditionsResponses];
119144
- export type MediaCreateVoiceData = {
120946
+ export type MediaGetWorkResponse = MediaGetWorkResponses[keyof MediaGetWorkResponses];
120947
+ export type MediaUpdateWorkData = {
119145
120948
  /**
119146
- * Exactly one of the two voice shapes: consent_id with samples (a consented voice) or design_asset_id (a generated voice).
120949
+ * Changes to a work. Send only what changes.
119147
120950
  */
119148
- body: MediaVoiceCloneInput | MediaVoiceDesignCreateInput;
119149
- headers?: {
120951
+ body: {
119150
120952
  /**
119151
- * Stable key for retrying the same request without creating or charging for another job; reusing it with different request content is rejected. Send it here or as idempotency_key in the body, never both with different values.
120953
+ * A whole new body for the same kind; it replaces the old one and is checked like a new one.
119152
120954
  */
119153
- 'Idempotency-Key'?: string;
120955
+ body?: MediaWorkBody;
120956
+ /**
120957
+ * A new series, or null to clear it.
120958
+ */
120959
+ series?: string | null;
120960
+ /**
120961
+ * A JSON Merge Patch (RFC 7396): keys you send are set, keys set to null are removed, keys you leave out are kept.
120962
+ */
120963
+ custom?: MediaWorkCustom;
120964
+ /**
120965
+ * Apply the change only if the work is still at this revision; otherwise the answer is 409 REVISION_CONFLICT with the current revision.
120966
+ */
120967
+ if_revision?: number;
119154
120968
  };
119155
120969
  path: {
119156
120970
  /**
119157
120971
  * Library ID returned by creation.
119158
120972
  */
119159
120973
  library_id: string;
120974
+ /**
120975
+ * Work id (wrk_…) returned by creation or listing.
120976
+ */
120977
+ work_id: string;
119160
120978
  };
119161
120979
  query?: never;
119162
- url: '/media/v1/libraries/{library_id}/voices';
120980
+ url: '/media/v1/libraries/{library_id}/works/{work_id}';
119163
120981
  };
119164
- export type MediaCreateVoiceErrors = {
120982
+ export type MediaUpdateWorkErrors = {
119165
120983
  /**
119166
- * Request failed; see the error code reference.
120984
+ * A selector, cursor, limit or other parameter is invalid; correct the reported field before retrying.
119167
120985
  */
119168
120986
  400: MediaMediaError;
119169
120987
  /**
@@ -119171,11 +120989,11 @@ export type MediaCreateVoiceErrors = {
119171
120989
  */
119172
120990
  402: MediaMediaError;
119173
120991
  /**
119174
- * Request failed; see the error code reference.
120992
+ * This credential has read-only access to the library; use a write-capable binding for mutations.
119175
120993
  */
119176
120994
  403: MediaMediaError;
119177
120995
  /**
119178
- * Request failed; see the error code reference.
120996
+ * The library or asset is missing, deleted or belongs to another tenant; verify its identifier and owner.
119179
120997
  */
119180
120998
  404: MediaMediaError;
119181
120999
  /**
@@ -119183,11 +121001,11 @@ export type MediaCreateVoiceErrors = {
119183
121001
  */
119184
121002
  409: MediaMediaError;
119185
121003
  /**
119186
- * Request failed; see the error code reference.
121004
+ * The file exceeds an input limit; provide a smaller source file.
119187
121005
  */
119188
121006
  413: MediaMediaError;
119189
121007
  /**
119190
- * Request failed; see the error code reference.
121008
+ * This media format is unsupported; provide a supported format.
119191
121009
  */
119192
121010
  415: MediaMediaError;
119193
121011
  /**
@@ -119195,11 +121013,11 @@ export type MediaCreateVoiceErrors = {
119195
121013
  */
119196
121014
  422: MediaMediaError;
119197
121015
  /**
119198
- * Request failed; see the error code reference.
121016
+ * A rate limit was reached; wait before retrying.
119199
121017
  */
119200
121018
  429: MediaMediaError;
119201
121019
  /**
119202
- * Request failed; see the error code reference.
121020
+ * The requested operation is unsupported; choose a supported method.
119203
121021
  */
119204
121022
  501: MediaMediaError;
119205
121023
  /**
@@ -119207,58 +121025,45 @@ export type MediaCreateVoiceErrors = {
119207
121025
  */
119208
121026
  502: MediaMediaError;
119209
121027
  /**
119210
- * Request failed; see the error code reference.
121028
+ * Historical projections are still being initialized, or library storage is temporarily unavailable; retry shortly and check failureSummary counts_complete.
119211
121029
  */
119212
121030
  503: MediaMediaError;
119213
121031
  };
119214
- export type MediaCreateVoiceError = MediaCreateVoiceErrors[keyof MediaCreateVoiceErrors];
119215
- export type MediaCreateVoiceResponses = {
121032
+ export type MediaUpdateWorkError = MediaUpdateWorkErrors[keyof MediaUpdateWorkErrors];
121033
+ export type MediaUpdateWorkResponses = {
119216
121034
  /**
119217
121035
  * Successful response.
119218
121036
  */
119219
- 202: MediaJob;
121037
+ 200: MediaWork;
119220
121038
  };
119221
- export type MediaCreateVoiceResponse = MediaCreateVoiceResponses[keyof MediaCreateVoiceResponses];
119222
- export type MediaDesignVoiceData = {
119223
- /**
119224
- * One voice-design run: what the voice should sound like and the line the previews speak.
119225
- */
119226
- body: {
119227
- /**
119228
- * Text description of the voice to design, 1 to 500 characters. The model makes every preview from it; a description that fails review answers CONTENT_REJECTED.
119229
- */
119230
- description: string;
119231
- /**
119232
- * Line each preview speaks, 15 to 200 characters: long enough to hear the voice, short enough for one model call.
119233
- */
119234
- preview_text: string;
121039
+ export type MediaUpdateWorkResponse = MediaUpdateWorkResponses[keyof MediaUpdateWorkResponses];
121040
+ export type MediaListAssetWorksData = {
121041
+ body?: never;
121042
+ path: {
119235
121043
  /**
119236
- * Language the previews speak: zh or en only.
121044
+ * Library ID returned by creation.
119237
121045
  */
119238
- language: 'zh' | 'en';
121046
+ library_id: string;
119239
121047
  /**
119240
- * How many preview recordings to design, 1 to 3; defaults to 3. Each one is stored as an audio asset.
121048
+ * 32-character asset ID.
119241
121049
  */
119242
- count?: number;
121050
+ asset_id: string;
119243
121051
  };
119244
- headers?: {
121052
+ query?: {
119245
121053
  /**
119246
- * Stable key for retrying the same request without creating or charging for another job; reusing it with different request content is rejected. Send it here or as idempotency_key in the body, never both with different values.
121054
+ * Maximum entries in this page, from 1 through 100; defaults to 100.
119247
121055
  */
119248
- 'Idempotency-Key'?: string;
119249
- };
119250
- path: {
121056
+ limit?: number;
119251
121057
  /**
119252
- * Library ID returned by creation.
121058
+ * Cursor from the previous next_cursor.
119253
121059
  */
119254
- library_id: string;
121060
+ cursor?: string;
119255
121061
  };
119256
- query?: never;
119257
- url: '/media/v1/libraries/{library_id}/voices/designs';
121062
+ url: '/media/v1/libraries/{library_id}/assets/{asset_id}/works';
119258
121063
  };
119259
- export type MediaDesignVoiceErrors = {
121064
+ export type MediaListAssetWorksErrors = {
119260
121065
  /**
119261
- * Request failed; see the error code reference.
121066
+ * A selector, cursor, limit or other parameter is invalid; correct the reported field before retrying.
119262
121067
  */
119263
121068
  400: MediaMediaError;
119264
121069
  /**
@@ -119266,11 +121071,11 @@ export type MediaDesignVoiceErrors = {
119266
121071
  */
119267
121072
  402: MediaMediaError;
119268
121073
  /**
119269
- * Request failed; see the error code reference.
121074
+ * This credential has read-only access to the library; use a write-capable binding for mutations.
119270
121075
  */
119271
121076
  403: MediaMediaError;
119272
121077
  /**
119273
- * Request failed; see the error code reference.
121078
+ * The library or asset is missing, deleted or belongs to another tenant; verify its identifier and owner.
119274
121079
  */
119275
121080
  404: MediaMediaError;
119276
121081
  /**
@@ -119278,11 +121083,11 @@ export type MediaDesignVoiceErrors = {
119278
121083
  */
119279
121084
  409: MediaMediaError;
119280
121085
  /**
119281
- * Request failed; see the error code reference.
121086
+ * The file exceeds an input limit; provide a smaller source file.
119282
121087
  */
119283
121088
  413: MediaMediaError;
119284
121089
  /**
119285
- * Request failed; see the error code reference.
121090
+ * This media format is unsupported; provide a supported format.
119286
121091
  */
119287
121092
  415: MediaMediaError;
119288
121093
  /**
@@ -119290,11 +121095,11 @@ export type MediaDesignVoiceErrors = {
119290
121095
  */
119291
121096
  422: MediaMediaError;
119292
121097
  /**
119293
- * Request failed; see the error code reference.
121098
+ * A rate limit was reached; wait before retrying.
119294
121099
  */
119295
121100
  429: MediaMediaError;
119296
121101
  /**
119297
- * Request failed; see the error code reference.
121102
+ * The requested operation is unsupported; choose a supported method.
119298
121103
  */
119299
121104
  501: MediaMediaError;
119300
121105
  /**
@@ -119302,18 +121107,18 @@ export type MediaDesignVoiceErrors = {
119302
121107
  */
119303
121108
  502: MediaMediaError;
119304
121109
  /**
119305
- * Request failed; see the error code reference.
121110
+ * Historical projections are still being initialized, or library storage is temporarily unavailable; retry shortly and check failureSummary counts_complete.
119306
121111
  */
119307
121112
  503: MediaMediaError;
119308
121113
  };
119309
- export type MediaDesignVoiceError = MediaDesignVoiceErrors[keyof MediaDesignVoiceErrors];
119310
- export type MediaDesignVoiceResponses = {
121114
+ export type MediaListAssetWorksError = MediaListAssetWorksErrors[keyof MediaListAssetWorksErrors];
121115
+ export type MediaListAssetWorksResponses = {
119311
121116
  /**
119312
121117
  * Successful response.
119313
121118
  */
119314
- 202: MediaJob;
121119
+ 200: MediaWorkPage;
119315
121120
  };
119316
- export type MediaDesignVoiceResponse = MediaDesignVoiceResponses[keyof MediaDesignVoiceResponses];
121121
+ export type MediaListAssetWorksResponse = MediaListAssetWorksResponses[keyof MediaListAssetWorksResponses];
119317
121122
  export type OntologyListTypesData = {
119318
121123
  body?: never;
119319
121124
  path?: never;
@@ -121273,7 +123078,7 @@ export type GetSandboxV1SandboxesResponses = {
121273
123078
  };
121274
123079
  export type GetSandboxV1SandboxesResponse = GetSandboxV1SandboxesResponses[keyof GetSandboxV1SandboxesResponses];
121275
123080
  export type PostSandboxV1SandboxesData = {
121276
- body: SandboxNewSandboxV2;
123081
+ body: SandboxNewSandboxV2Writable;
121277
123082
  path?: never;
121278
123083
  query?: never;
121279
123084
  url: '/sandbox/v1/sandboxes';