@deepraxis/sdk 0.2.0-dev.26c26b8 → 0.2.0-dev.2ba4359
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.
- package/METHODS.md +18 -1
- package/dist/generated/index.d.ts +2 -2
- package/dist/generated/index.js +1 -1
- package/dist/generated/sdk.gen.d.ts +59 -17
- package/dist/generated/sdk.gen.js +150 -16
- package/dist/generated/types.gen.d.ts +1377 -356
- package/dist/helpers/browser-connect-error.d.ts +1 -1
- package/dist/helpers/browser-connect-error.js +1 -1
- package/dist/helpers/browser-documentation.d.ts +1 -1
- package/dist/helpers/browser-documentation.js +1 -1
- package/dist/operations.generated.js +295 -44
- package/dist/resources.generated.d.ts +90 -0
- package/dist/resources.generated.js +13 -0
- package/package.json +1 -1
|
@@ -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
|
-
*
|
|
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 |
|
|
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
|
-
*
|
|
3814
|
+
* 会话经代理链转发的流量字节数(上行与下行之和),容器后端的会话按它计费;Browser Run 和自带浏览器固定为 0,运行中每几分钟更新一次。
|
|
3750
3815
|
*/
|
|
3751
|
-
proxyBytes:
|
|
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
|
-
*
|
|
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' | '
|
|
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
|
-
*
|
|
3995
|
+
* 会话经代理链转发的流量字节数(上行与下行之和),容器后端的会话按它计费;Browser Run 和自带浏览器固定为 0,运行中每几分钟更新一次。
|
|
3914
3996
|
*/
|
|
3915
|
-
proxyBytes:
|
|
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
|
-
*
|
|
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
|
-
*
|
|
4154
|
+
* 会话经代理链转发的流量字节数(上行与下行之和),容器后端的会话按它计费;Browser Run 和自带浏览器固定为 0,运行中每几分钟更新一次。
|
|
4056
4155
|
*/
|
|
4057
|
-
proxyBytes:
|
|
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
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
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
|
|
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
|
/**
|
|
@@ -34932,6 +35100,14 @@ export type SandboxSandboxNetworkConfig = {
|
|
|
34932
35100
|
rules?: {
|
|
34933
35101
|
[key: string]: Array<SandboxSandboxNetworkRule>;
|
|
34934
35102
|
};
|
|
35103
|
+
/**
|
|
35104
|
+
* 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.
|
|
35105
|
+
*/
|
|
35106
|
+
staticEgressIp?: boolean;
|
|
35107
|
+
/**
|
|
35108
|
+
* 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.
|
|
35109
|
+
*/
|
|
35110
|
+
readonly egressIp?: string;
|
|
34935
35111
|
};
|
|
34936
35112
|
/**
|
|
34937
35113
|
* Sandbox lifecycle policy returned by sandbox info.
|
|
@@ -36642,11 +36818,11 @@ export type AutomationActionHost = 'builtin' | 'isolate' | 'sandbox';
|
|
|
36642
36818
|
*/
|
|
36643
36819
|
export type AutomationSubject = {
|
|
36644
36820
|
/**
|
|
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.
|
|
36821
|
+
* 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
36822
|
*/
|
|
36647
36823
|
type: 'user' | 'api_key' | 'agent' | 'run' | 'trigger';
|
|
36648
36824
|
/**
|
|
36649
|
-
* Principal identifier whose meaning follows type: a user, API key, agent, run or
|
|
36825
|
+
* Principal identifier whose meaning follows type: a user, API key, agent, run, trigger or application id. Treat it as an opaque string.
|
|
36650
36826
|
*/
|
|
36651
36827
|
id: string;
|
|
36652
36828
|
};
|
|
@@ -40205,6 +40381,10 @@ export type DevopsUnitGit = {
|
|
|
40205
40381
|
* The ref holding the unit's work in progress, or null when none was recorded.
|
|
40206
40382
|
*/
|
|
40207
40383
|
wipRef: string | null;
|
|
40384
|
+
/**
|
|
40385
|
+
* 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.
|
|
40386
|
+
*/
|
|
40387
|
+
remoteHead?: string;
|
|
40208
40388
|
/**
|
|
40209
40389
|
* RFC 3339 UTC time these facts were observed, or null before the first observation.
|
|
40210
40390
|
*/
|
|
@@ -48068,7 +48248,7 @@ export type DevopsPlannedSkip = {
|
|
|
48068
48248
|
/**
|
|
48069
48249
|
* Why it is left out, which is what tells a deliberate skip apart from an oversight.
|
|
48070
48250
|
*/
|
|
48071
|
-
reason: 'unchanged' | 'newer_checkpoint' | 'not_requested' | 'callee_excluded' | 'artifact_identical';
|
|
48251
|
+
reason: 'unchanged' | 'newer_checkpoint' | 'not_requested' | 'callee_excluded' | 'not_deployed_upstream' | 'artifact_identical';
|
|
48072
48252
|
};
|
|
48073
48253
|
/**
|
|
48074
48254
|
* The migrations one target has pending, as the plan found them.
|
|
@@ -50923,6 +51103,58 @@ export type UpdateMediaPipelineRequestWritable = {
|
|
|
50923
51103
|
* Models to use for completion
|
|
50924
51104
|
*/
|
|
50925
51105
|
export type OpenaiChatModelNamesWritable = Array<OpenaiModelName & unknown>;
|
|
51106
|
+
export type SandboxSandboxDetailWritable = {
|
|
51107
|
+
/**
|
|
51108
|
+
* Identifier of the template from which is the sandbox created
|
|
51109
|
+
*/
|
|
51110
|
+
templateID: string;
|
|
51111
|
+
/**
|
|
51112
|
+
* Alias of the template
|
|
51113
|
+
*/
|
|
51114
|
+
alias?: string;
|
|
51115
|
+
/**
|
|
51116
|
+
* Identifier of the sandbox
|
|
51117
|
+
*/
|
|
51118
|
+
sandboxID: string;
|
|
51119
|
+
/**
|
|
51120
|
+
* Identifier of the client
|
|
51121
|
+
*
|
|
51122
|
+
* @deprecated
|
|
51123
|
+
*/
|
|
51124
|
+
clientID: string;
|
|
51125
|
+
/**
|
|
51126
|
+
* Time when the sandbox was started
|
|
51127
|
+
*/
|
|
51128
|
+
startedAt: string;
|
|
51129
|
+
/**
|
|
51130
|
+
* Time when the sandbox will expire
|
|
51131
|
+
*/
|
|
51132
|
+
endAt: string;
|
|
51133
|
+
envdVersion: SandboxEnvdVersion;
|
|
51134
|
+
/**
|
|
51135
|
+
* Access token used for envd communication
|
|
51136
|
+
*/
|
|
51137
|
+
envdAccessToken?: string;
|
|
51138
|
+
/**
|
|
51139
|
+
* Whether internet access was explicitly enabled or disabled for the sandbox. Null means it was not explicitly set.
|
|
51140
|
+
*/
|
|
51141
|
+
allowInternetAccess?: boolean;
|
|
51142
|
+
/**
|
|
51143
|
+
* Base domain where the sandbox traffic is accessible
|
|
51144
|
+
*/
|
|
51145
|
+
domain?: string;
|
|
51146
|
+
cpuCount: SandboxCpuCount;
|
|
51147
|
+
memoryMB: SandboxMemoryMb;
|
|
51148
|
+
diskSizeMB: SandboxDiskSizeMb;
|
|
51149
|
+
metadata?: SandboxSandboxMetadata;
|
|
51150
|
+
state: SandboxSandboxState;
|
|
51151
|
+
network?: SandboxSandboxNetworkConfigWritable;
|
|
51152
|
+
lifecycle?: SandboxSandboxLifecycle;
|
|
51153
|
+
/**
|
|
51154
|
+
* Volumes mounted into the sandbox.
|
|
51155
|
+
*/
|
|
51156
|
+
volumeMounts?: Array<SandboxSandboxVolumeMount>;
|
|
51157
|
+
};
|
|
50926
51158
|
/**
|
|
50927
51159
|
* Free-form string key/value pairs stored with the session, changed through sessions.update patch semantics.
|
|
50928
51160
|
*/
|
|
@@ -51502,6 +51734,94 @@ export type MediaSemanticSearchResultWritable = {
|
|
|
51502
51734
|
*/
|
|
51503
51735
|
not_ready_excluded: number;
|
|
51504
51736
|
};
|
|
51737
|
+
/**
|
|
51738
|
+
* Sandbox creation request. All system communication with the sandbox is always secured; the template's envd version must support secured access.
|
|
51739
|
+
*/
|
|
51740
|
+
export type SandboxNewSandboxV2Writable = {
|
|
51741
|
+
/**
|
|
51742
|
+
* Identifier of the required template
|
|
51743
|
+
*/
|
|
51744
|
+
templateID: string;
|
|
51745
|
+
/**
|
|
51746
|
+
* Lifetime of the new sandbox in seconds. Defaults to 300 seconds when omitted.
|
|
51747
|
+
*/
|
|
51748
|
+
timeout?: number;
|
|
51749
|
+
/**
|
|
51750
|
+
* 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.
|
|
51751
|
+
*/
|
|
51752
|
+
autoPause?: boolean;
|
|
51753
|
+
/**
|
|
51754
|
+
* 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).
|
|
51755
|
+
*/
|
|
51756
|
+
autoPauseMemory?: boolean;
|
|
51757
|
+
autoResume?: SandboxSandboxAutoResumeConfig;
|
|
51758
|
+
/**
|
|
51759
|
+
* 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.
|
|
51760
|
+
*/
|
|
51761
|
+
allow_internet_access?: boolean;
|
|
51762
|
+
network?: SandboxSandboxNetworkConfigWritable;
|
|
51763
|
+
metadata?: SandboxSandboxMetadata;
|
|
51764
|
+
envVars?: SandboxEnvVars;
|
|
51765
|
+
mcp?: SandboxMcp;
|
|
51766
|
+
iam?: SandboxSandboxIam;
|
|
51767
|
+
/**
|
|
51768
|
+
* Volumes to mount into the sandbox, each with the volume name and the path inside the sandbox.
|
|
51769
|
+
*/
|
|
51770
|
+
volumeMounts?: Array<SandboxSandboxVolumeMount>;
|
|
51771
|
+
/**
|
|
51772
|
+
* 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.
|
|
51773
|
+
*/
|
|
51774
|
+
ephemeral?: boolean;
|
|
51775
|
+
/**
|
|
51776
|
+
* 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.
|
|
51777
|
+
*/
|
|
51778
|
+
size?: string;
|
|
51779
|
+
/**
|
|
51780
|
+
* Own face: a display name for the sandbox, 1 to 64 characters. Omitted, one is generated from the template.
|
|
51781
|
+
*/
|
|
51782
|
+
name?: string;
|
|
51783
|
+
/**
|
|
51784
|
+
* 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.
|
|
51785
|
+
*/
|
|
51786
|
+
waitForReady?: boolean;
|
|
51787
|
+
/**
|
|
51788
|
+
* Own face: what happens at the timeout. pause needs ephemeral: false; must agree with autoPause when both are sent.
|
|
51789
|
+
*/
|
|
51790
|
+
onExpire?: 'kill' | 'pause';
|
|
51791
|
+
/**
|
|
51792
|
+
* Own face, persistent sandboxes only: pause after this many milliseconds without activity; null turns the idle pause off.
|
|
51793
|
+
*/
|
|
51794
|
+
idleTimeout?: number;
|
|
51795
|
+
/**
|
|
51796
|
+
* 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.
|
|
51797
|
+
*/
|
|
51798
|
+
idleActivity?: 'traffic' | 'caller';
|
|
51799
|
+
/**
|
|
51800
|
+
* 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.
|
|
51801
|
+
*/
|
|
51802
|
+
sku?: string;
|
|
51803
|
+
/**
|
|
51804
|
+
* 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.
|
|
51805
|
+
*/
|
|
51806
|
+
kind?: 'run' | 'job' | 'batch' | 'computer' | 'compat';
|
|
51807
|
+
/**
|
|
51808
|
+
* 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.
|
|
51809
|
+
*/
|
|
51810
|
+
interruptible?: boolean;
|
|
51811
|
+
/**
|
|
51812
|
+
* 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.
|
|
51813
|
+
*/
|
|
51814
|
+
onLoss?: 'fail' | 'rebuild';
|
|
51815
|
+
/**
|
|
51816
|
+
* 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.
|
|
51817
|
+
*/
|
|
51818
|
+
outputs?: Array<{
|
|
51819
|
+
/**
|
|
51820
|
+
* Absolute path of a directory or file inside the sandbox.
|
|
51821
|
+
*/
|
|
51822
|
+
path: string;
|
|
51823
|
+
}>;
|
|
51824
|
+
};
|
|
51505
51825
|
/**
|
|
51506
51826
|
* Arguments the model passed to the tool.
|
|
51507
51827
|
*/
|
|
@@ -51580,6 +51900,43 @@ export type AnthropicAnonymous204Writable = {
|
|
|
51580
51900
|
export type AnthropicAnonymous206Writable = {
|
|
51581
51901
|
[key: string]: unknown;
|
|
51582
51902
|
};
|
|
51903
|
+
/**
|
|
51904
|
+
* Network policy of the sandbox: public access, egress allow and deny lists and proxy.
|
|
51905
|
+
*/
|
|
51906
|
+
export type SandboxSandboxNetworkConfigWritable = {
|
|
51907
|
+
/**
|
|
51908
|
+
* Specify if the sandbox URLs should be accessible only with authentication.
|
|
51909
|
+
*/
|
|
51910
|
+
allowPublicTraffic?: boolean;
|
|
51911
|
+
/**
|
|
51912
|
+
* 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.
|
|
51913
|
+
*/
|
|
51914
|
+
allowOut?: Array<string>;
|
|
51915
|
+
/**
|
|
51916
|
+
* List of denied CIDR blocks or IP addresses for egress traffic. Domain names are not supported for deny rules.
|
|
51917
|
+
*/
|
|
51918
|
+
denyOut?: Array<string>;
|
|
51919
|
+
egressProxy?: SandboxSandboxEgressProxyConfig;
|
|
51920
|
+
/**
|
|
51921
|
+
* Specify host mask which will be used for all sandbox requests
|
|
51922
|
+
*/
|
|
51923
|
+
maskRequestHost?: string;
|
|
51924
|
+
/**
|
|
51925
|
+
* Unlike E2B, network.httpsPorts is rejected; omit it when creating a sandbox.
|
|
51926
|
+
*/
|
|
51927
|
+
httpsPorts?: Array<number>;
|
|
51928
|
+
/**
|
|
51929
|
+
* 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.
|
|
51930
|
+
*
|
|
51931
|
+
*/
|
|
51932
|
+
rules?: {
|
|
51933
|
+
[key: string]: Array<SandboxSandboxNetworkRule>;
|
|
51934
|
+
};
|
|
51935
|
+
/**
|
|
51936
|
+
* 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.
|
|
51937
|
+
*/
|
|
51938
|
+
staticEgressIp?: boolean;
|
|
51939
|
+
};
|
|
51583
51940
|
/**
|
|
51584
51941
|
* Free-form string key/value pairs.
|
|
51585
51942
|
*/
|
|
@@ -54307,6 +54664,86 @@ export type ListAgentInboxLettersResponses = {
|
|
|
54307
54664
|
};
|
|
54308
54665
|
};
|
|
54309
54666
|
export type ListAgentInboxLettersResponse = ListAgentInboxLettersResponses[keyof ListAgentInboxLettersResponses];
|
|
54667
|
+
export type ListAgentDeviceLocalSessionsData = {
|
|
54668
|
+
body?: never;
|
|
54669
|
+
path: {
|
|
54670
|
+
/**
|
|
54671
|
+
* 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_….
|
|
54672
|
+
*/
|
|
54673
|
+
agent_id: string;
|
|
54674
|
+
/**
|
|
54675
|
+
* The paired desktop device (byd_ and 26 hex characters) whose sessions to list; you must be the person who paired it.
|
|
54676
|
+
*/
|
|
54677
|
+
device_id: string;
|
|
54678
|
+
};
|
|
54679
|
+
query: {
|
|
54680
|
+
/**
|
|
54681
|
+
* The absolute directory on the device, exactly as the device registered it and bound it to this agent.
|
|
54682
|
+
*/
|
|
54683
|
+
cwd: string;
|
|
54684
|
+
/**
|
|
54685
|
+
* The next_cursor of the previous page; leave it out for the first page.
|
|
54686
|
+
*/
|
|
54687
|
+
cursor?: string;
|
|
54688
|
+
};
|
|
54689
|
+
url: '/agent/v1/agents/{agent_id}/devices/{device_id}/local-sessions';
|
|
54690
|
+
};
|
|
54691
|
+
export type ListAgentDeviceLocalSessionsErrors = {
|
|
54692
|
+
/**
|
|
54693
|
+
* 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.
|
|
54694
|
+
*/
|
|
54695
|
+
400: unknown;
|
|
54696
|
+
/**
|
|
54697
|
+
* Authenticate with your own API key or a console session; an agent's or robot's credential cannot list a person's device.
|
|
54698
|
+
*/
|
|
54699
|
+
401: unknown;
|
|
54700
|
+
/**
|
|
54701
|
+
* 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.
|
|
54702
|
+
*/
|
|
54703
|
+
403: AgentError;
|
|
54704
|
+
/**
|
|
54705
|
+
* AGENT_NOT_FOUND: no agent with this reference exists in your organization; list agents with agents.list.
|
|
54706
|
+
*/
|
|
54707
|
+
404: unknown;
|
|
54708
|
+
/**
|
|
54709
|
+
* 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.
|
|
54710
|
+
*/
|
|
54711
|
+
503: unknown;
|
|
54712
|
+
};
|
|
54713
|
+
export type ListAgentDeviceLocalSessionsError = ListAgentDeviceLocalSessionsErrors[keyof ListAgentDeviceLocalSessionsErrors];
|
|
54714
|
+
export type ListAgentDeviceLocalSessionsResponses = {
|
|
54715
|
+
/**
|
|
54716
|
+
* One page of the device's sessions for that directory, newest first.
|
|
54717
|
+
*/
|
|
54718
|
+
200: {
|
|
54719
|
+
/**
|
|
54720
|
+
* The sessions of this page; empty when the directory has none.
|
|
54721
|
+
*/
|
|
54722
|
+
data: Array<{
|
|
54723
|
+
/**
|
|
54724
|
+
* The Claude Code session id on the device; pass it as runtime.resume_session_id when creating a session to continue it.
|
|
54725
|
+
*/
|
|
54726
|
+
id: string;
|
|
54727
|
+
/**
|
|
54728
|
+
* The session's title as Claude Code shows it; empty when it has none.
|
|
54729
|
+
*/
|
|
54730
|
+
title: string;
|
|
54731
|
+
/**
|
|
54732
|
+
* When the session was last written to, RFC 3339; sessions are ordered newest first.
|
|
54733
|
+
*/
|
|
54734
|
+
updated_at: string | null;
|
|
54735
|
+
/**
|
|
54736
|
+
* The directory the session ran in on the device.
|
|
54737
|
+
*/
|
|
54738
|
+
cwd: string | null;
|
|
54739
|
+
}>;
|
|
54740
|
+
/**
|
|
54741
|
+
* Pass as cursor for the next page; null on the last page.
|
|
54742
|
+
*/
|
|
54743
|
+
next_cursor: string | null;
|
|
54744
|
+
};
|
|
54745
|
+
};
|
|
54746
|
+
export type ListAgentDeviceLocalSessionsResponse = ListAgentDeviceLocalSessionsResponses[keyof ListAgentDeviceLocalSessionsResponses];
|
|
54310
54747
|
export type CreateAgentLoginIntentData = {
|
|
54311
54748
|
body?: never;
|
|
54312
54749
|
path?: never;
|
|
@@ -55207,6 +55644,15 @@ export type ApplyAgentVersionResponses = {
|
|
|
55207
55644
|
name: string;
|
|
55208
55645
|
}>;
|
|
55209
55646
|
};
|
|
55647
|
+
/**
|
|
55648
|
+
* ADR-205: which browser the agent drives. {byob: byb_…} names one of your organization's paired browsers (browser.byob.browsers.list), which the agent then drives through connect() instead of a cloud browser; null or absent is the cloud browser. The browser must belong to your organization (otherwise 400) and must grant this agent before a session can open it. Omit on update to keep it, send an object to replace it, or null to go back to the cloud browser. /agent/v1 only.
|
|
55649
|
+
*/
|
|
55650
|
+
browser?: {
|
|
55651
|
+
/**
|
|
55652
|
+
* A paired browser's id (byb_ and 26 lowercase hex characters), from browser.byob.browsers.list.
|
|
55653
|
+
*/
|
|
55654
|
+
byob: string;
|
|
55655
|
+
} | null;
|
|
55210
55656
|
/**
|
|
55211
55657
|
* Praxis extension: MA only has session-scoped temporary containers and memory_stores, not durable browsable computers. computer_id selects a tenant-owned active computer. Session selection overrides the agent default; a sandbox environment_id and computer_id cannot be combined. Omitted when no computer is selected.
|
|
55212
55658
|
*/
|
|
@@ -55592,7 +56038,7 @@ export type ApplyAgentVersionResponses = {
|
|
|
55592
56038
|
*/
|
|
55593
56039
|
environment_id?: string | null;
|
|
55594
56040
|
/**
|
|
55595
|
-
* Default vaults of this service or assume agent version: the vault_ids new
|
|
56041
|
+
* Default vaults of this service or assume agent version: the vault_ids every new session carries; a session's own vault_ids are added to them. Present for service and assume agents. Follows the version like other configuration: a version saved with apply=false does not change the vaults in effect. Versions saved before this field existed read as []. /agent/v1 only.
|
|
55596
56042
|
*/
|
|
55597
56043
|
vault_ids?: Array<string>;
|
|
55598
56044
|
/**
|
|
@@ -56458,6 +56904,15 @@ export type UnarchiveAgentResponses = {
|
|
|
56458
56904
|
name: string;
|
|
56459
56905
|
}>;
|
|
56460
56906
|
};
|
|
56907
|
+
/**
|
|
56908
|
+
* ADR-205: which browser the agent drives. {byob: byb_…} names one of your organization's paired browsers (browser.byob.browsers.list), which the agent then drives through connect() instead of a cloud browser; null or absent is the cloud browser. The browser must belong to your organization (otherwise 400) and must grant this agent before a session can open it. Omit on update to keep it, send an object to replace it, or null to go back to the cloud browser. /agent/v1 only.
|
|
56909
|
+
*/
|
|
56910
|
+
browser?: {
|
|
56911
|
+
/**
|
|
56912
|
+
* A paired browser's id (byb_ and 26 lowercase hex characters), from browser.byob.browsers.list.
|
|
56913
|
+
*/
|
|
56914
|
+
byob: string;
|
|
56915
|
+
} | null;
|
|
56461
56916
|
/**
|
|
56462
56917
|
* Praxis extension: MA only has session-scoped temporary containers and memory_stores, not durable browsable computers. computer_id selects a tenant-owned active computer. Session selection overrides the agent default; a sandbox environment_id and computer_id cannot be combined. Omitted when no computer is selected.
|
|
56463
56918
|
*/
|
|
@@ -56843,7 +57298,7 @@ export type UnarchiveAgentResponses = {
|
|
|
56843
57298
|
*/
|
|
56844
57299
|
environment_id?: string | null;
|
|
56845
57300
|
/**
|
|
56846
|
-
* Default vaults of this service or assume agent version: the vault_ids new
|
|
57301
|
+
* Default vaults of this service or assume agent version: the vault_ids every new session carries; a session's own vault_ids are added to them. Present for service and assume agents. Follows the version like other configuration: a version saved with apply=false does not change the vaults in effect. Versions saved before this field existed read as []. /agent/v1 only.
|
|
56847
57302
|
*/
|
|
56848
57303
|
vault_ids?: Array<string>;
|
|
56849
57304
|
/**
|
|
@@ -59312,9 +59767,13 @@ export type ComputersRetrieveResponse = ComputersRetrieveResponses[keyof Compute
|
|
|
59312
59767
|
export type ComputersUpdateData = {
|
|
59313
59768
|
body: {
|
|
59314
59769
|
/**
|
|
59315
|
-
*
|
|
59770
|
+
* New display name, 1 to 255 characters after trimming. Omit to keep the current name.
|
|
59316
59771
|
*/
|
|
59317
|
-
name
|
|
59772
|
+
name?: string;
|
|
59773
|
+
/**
|
|
59774
|
+
* 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.
|
|
59775
|
+
*/
|
|
59776
|
+
environment_id?: string | null;
|
|
59318
59777
|
};
|
|
59319
59778
|
path: {
|
|
59320
59779
|
/**
|
|
@@ -61484,7 +61943,7 @@ export type ComputersFilesConvertResponse = ComputersFilesConvertResponses[keyof
|
|
|
61484
61943
|
export type ConnectComputerData = {
|
|
61485
61944
|
body?: {
|
|
61486
61945
|
/**
|
|
61487
|
-
*
|
|
61946
|
+
* Accepted for compatibility and ignored: light and heavy both reach the same machine, because a Computer is one machine. Omit it.
|
|
61488
61947
|
*/
|
|
61489
61948
|
need?: 'light' | 'heavy';
|
|
61490
61949
|
};
|
|
@@ -69088,7 +69547,7 @@ export type BrowserListSessionsErrors = {
|
|
|
69088
69547
|
*/
|
|
69089
69548
|
402: BrowserError;
|
|
69090
69549
|
/**
|
|
69091
|
-
* PERMISSION_DENIED /
|
|
69550
|
+
* PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
|
|
69092
69551
|
*/
|
|
69093
69552
|
403: BrowserError;
|
|
69094
69553
|
/**
|
|
@@ -69169,7 +69628,7 @@ export type BrowserCreateSessionErrors = {
|
|
|
69169
69628
|
*/
|
|
69170
69629
|
402: BrowserError;
|
|
69171
69630
|
/**
|
|
69172
|
-
* PERMISSION_DENIED /
|
|
69631
|
+
* PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
|
|
69173
69632
|
*/
|
|
69174
69633
|
403: BrowserError;
|
|
69175
69634
|
/**
|
|
@@ -69255,7 +69714,7 @@ export type BrowserGetSessionErrors = {
|
|
|
69255
69714
|
*/
|
|
69256
69715
|
402: BrowserError;
|
|
69257
69716
|
/**
|
|
69258
|
-
* PERMISSION_DENIED /
|
|
69717
|
+
* PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
|
|
69259
69718
|
*/
|
|
69260
69719
|
403: BrowserError;
|
|
69261
69720
|
/**
|
|
@@ -69337,7 +69796,7 @@ export type BrowserCloseSessionErrors = {
|
|
|
69337
69796
|
*/
|
|
69338
69797
|
402: BrowserError;
|
|
69339
69798
|
/**
|
|
69340
|
-
* PERMISSION_DENIED /
|
|
69799
|
+
* PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
|
|
69341
69800
|
*/
|
|
69342
69801
|
403: BrowserError;
|
|
69343
69802
|
/**
|
|
@@ -69414,7 +69873,7 @@ export type BrowserGetDebugErrors = {
|
|
|
69414
69873
|
*/
|
|
69415
69874
|
402: BrowserError;
|
|
69416
69875
|
/**
|
|
69417
|
-
* PERMISSION_DENIED /
|
|
69876
|
+
* PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
|
|
69418
69877
|
*/
|
|
69419
69878
|
403: BrowserError;
|
|
69420
69879
|
/**
|
|
@@ -69504,7 +69963,7 @@ export type BrowserListEventsErrors = {
|
|
|
69504
69963
|
*/
|
|
69505
69964
|
402: BrowserError;
|
|
69506
69965
|
/**
|
|
69507
|
-
* PERMISSION_DENIED /
|
|
69966
|
+
* PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
|
|
69508
69967
|
*/
|
|
69509
69968
|
403: BrowserError;
|
|
69510
69969
|
/**
|
|
@@ -69787,7 +70246,7 @@ export type BrowserRunPageActionErrors = {
|
|
|
69787
70246
|
*/
|
|
69788
70247
|
402: BrowserError;
|
|
69789
70248
|
/**
|
|
69790
|
-
* PERMISSION_DENIED /
|
|
70249
|
+
* PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
|
|
69791
70250
|
*/
|
|
69792
70251
|
403: BrowserError;
|
|
69793
70252
|
/**
|
|
@@ -70009,7 +70468,7 @@ export type BrowserRequestHandoffErrors = {
|
|
|
70009
70468
|
*/
|
|
70010
70469
|
402: BrowserError;
|
|
70011
70470
|
/**
|
|
70012
|
-
* PERMISSION_DENIED /
|
|
70471
|
+
* PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
|
|
70013
70472
|
*/
|
|
70014
70473
|
403: BrowserError;
|
|
70015
70474
|
/**
|
|
@@ -70086,7 +70545,7 @@ export type BrowserCompleteHandoffErrors = {
|
|
|
70086
70545
|
*/
|
|
70087
70546
|
402: BrowserError;
|
|
70088
70547
|
/**
|
|
70089
|
-
* PERMISSION_DENIED /
|
|
70548
|
+
* PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
|
|
70090
70549
|
*/
|
|
70091
70550
|
403: BrowserError;
|
|
70092
70551
|
/**
|
|
@@ -70172,7 +70631,7 @@ export type BrowserViewerHeartbeatErrors = {
|
|
|
70172
70631
|
*/
|
|
70173
70632
|
402: BrowserError;
|
|
70174
70633
|
/**
|
|
70175
|
-
* PERMISSION_DENIED /
|
|
70634
|
+
* PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
|
|
70176
70635
|
*/
|
|
70177
70636
|
403: BrowserError;
|
|
70178
70637
|
/**
|
|
@@ -70254,7 +70713,7 @@ export type BrowserGetSessionFrameErrors = {
|
|
|
70254
70713
|
*/
|
|
70255
70714
|
402: BrowserError;
|
|
70256
70715
|
/**
|
|
70257
|
-
* PERMISSION_DENIED /
|
|
70716
|
+
* PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
|
|
70258
70717
|
*/
|
|
70259
70718
|
403: BrowserError;
|
|
70260
70719
|
/**
|
|
@@ -70339,7 +70798,7 @@ export type BrowserListContextsErrors = {
|
|
|
70339
70798
|
*/
|
|
70340
70799
|
402: BrowserError;
|
|
70341
70800
|
/**
|
|
70342
|
-
* PERMISSION_DENIED /
|
|
70801
|
+
* PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
|
|
70343
70802
|
*/
|
|
70344
70803
|
403: BrowserError;
|
|
70345
70804
|
/**
|
|
@@ -70416,6 +70875,36 @@ export type BrowserCreateContextData = {
|
|
|
70416
70875
|
labels?: {
|
|
70417
70876
|
[key: string]: string;
|
|
70418
70877
|
};
|
|
70878
|
+
/**
|
|
70879
|
+
* 给登录态绑定一个固定的外部代理(如住宅 IP),使用这个登录态的会话没有写 proxies 时都经它出网,让同一账号始终从同一个出口地址出去。只存保管库引用(password_secret),不存密码;会话自己写了 proxies 时以会话的为准。需要组织已开通容器后端,否则返回 501 PROVIDER_UNSUPPORTED。
|
|
70880
|
+
*/
|
|
70881
|
+
proxy?: {
|
|
70882
|
+
/**
|
|
70883
|
+
* 固定为 external:经一个你自己的外部 HTTP 代理出网。
|
|
70884
|
+
*/
|
|
70885
|
+
type: 'external';
|
|
70886
|
+
/**
|
|
70887
|
+
* 代理地址,host:port 或 http://host:port;只支持 HTTP 代理,不接受 socks5:// 等协议,也不接受 localhost 和内网、链路本地地址。
|
|
70888
|
+
*/
|
|
70889
|
+
server: string;
|
|
70890
|
+
/**
|
|
70891
|
+
* 代理用户名;有密码时才能填,填了就必须同时给出密码。
|
|
70892
|
+
*/
|
|
70893
|
+
username?: string;
|
|
70894
|
+
/**
|
|
70895
|
+
* 必须用这种形式:引用保管库里的代理密码,只在连接这个代理的主机时兑换,不会交给网页。登录态里只存引用,传明文 password 返回 400 INVALID_PARAMS。
|
|
70896
|
+
*/
|
|
70897
|
+
password_secret?: {
|
|
70898
|
+
/**
|
|
70899
|
+
* 保存代理密码的保管库 ID,以 vlt_ 开头。
|
|
70900
|
+
*/
|
|
70901
|
+
vault_id: string;
|
|
70902
|
+
/**
|
|
70903
|
+
* 保管库中该密码的密钥 ID(不是密码本身)。
|
|
70904
|
+
*/
|
|
70905
|
+
secret: string;
|
|
70906
|
+
};
|
|
70907
|
+
};
|
|
70419
70908
|
};
|
|
70420
70909
|
path?: never;
|
|
70421
70910
|
query?: never;
|
|
@@ -70435,7 +70924,7 @@ export type BrowserCreateContextErrors = {
|
|
|
70435
70924
|
*/
|
|
70436
70925
|
402: BrowserError;
|
|
70437
70926
|
/**
|
|
70438
|
-
* PERMISSION_DENIED /
|
|
70927
|
+
* PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
|
|
70439
70928
|
*/
|
|
70440
70929
|
403: BrowserError;
|
|
70441
70930
|
/**
|
|
@@ -70512,7 +71001,7 @@ export type BrowserDeleteContextErrors = {
|
|
|
70512
71001
|
*/
|
|
70513
71002
|
402: BrowserError;
|
|
70514
71003
|
/**
|
|
70515
|
-
* PERMISSION_DENIED /
|
|
71004
|
+
* PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
|
|
70516
71005
|
*/
|
|
70517
71006
|
403: BrowserError;
|
|
70518
71007
|
/**
|
|
@@ -70594,7 +71083,7 @@ export type BrowserGetContextErrors = {
|
|
|
70594
71083
|
*/
|
|
70595
71084
|
402: BrowserError;
|
|
70596
71085
|
/**
|
|
70597
|
-
* PERMISSION_DENIED /
|
|
71086
|
+
* PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
|
|
70598
71087
|
*/
|
|
70599
71088
|
403: BrowserError;
|
|
70600
71089
|
/**
|
|
@@ -70658,6 +71147,36 @@ export type BrowserUpdateContextData = {
|
|
|
70658
71147
|
labels?: {
|
|
70659
71148
|
[key: string]: string;
|
|
70660
71149
|
};
|
|
71150
|
+
/**
|
|
71151
|
+
* 给登录态绑定一个固定的外部代理(如住宅 IP),使用这个登录态的会话没有写 proxies 时都经它出网,让同一账号始终从同一个出口地址出去。只存保管库引用(password_secret),不存密码;会话自己写了 proxies 时以会话的为准。需要组织已开通容器后端,否则返回 501 PROVIDER_UNSUPPORTED。 更新时传 null 解除绑定,省略则保留原绑定。
|
|
71152
|
+
*/
|
|
71153
|
+
proxy?: {
|
|
71154
|
+
/**
|
|
71155
|
+
* 固定为 external:经一个你自己的外部 HTTP 代理出网。
|
|
71156
|
+
*/
|
|
71157
|
+
type: 'external';
|
|
71158
|
+
/**
|
|
71159
|
+
* 代理地址,host:port 或 http://host:port;只支持 HTTP 代理,不接受 socks5:// 等协议,也不接受 localhost 和内网、链路本地地址。
|
|
71160
|
+
*/
|
|
71161
|
+
server: string;
|
|
71162
|
+
/**
|
|
71163
|
+
* 代理用户名;有密码时才能填,填了就必须同时给出密码。
|
|
71164
|
+
*/
|
|
71165
|
+
username?: string;
|
|
71166
|
+
/**
|
|
71167
|
+
* 必须用这种形式:引用保管库里的代理密码,只在连接这个代理的主机时兑换,不会交给网页。登录态里只存引用,传明文 password 返回 400 INVALID_PARAMS。
|
|
71168
|
+
*/
|
|
71169
|
+
password_secret?: {
|
|
71170
|
+
/**
|
|
71171
|
+
* 保存代理密码的保管库 ID,以 vlt_ 开头。
|
|
71172
|
+
*/
|
|
71173
|
+
vault_id: string;
|
|
71174
|
+
/**
|
|
71175
|
+
* 保管库中该密码的密钥 ID(不是密码本身)。
|
|
71176
|
+
*/
|
|
71177
|
+
secret: string;
|
|
71178
|
+
};
|
|
71179
|
+
} | null;
|
|
70661
71180
|
};
|
|
70662
71181
|
path: {
|
|
70663
71182
|
/**
|
|
@@ -70682,7 +71201,7 @@ export type BrowserUpdateContextErrors = {
|
|
|
70682
71201
|
*/
|
|
70683
71202
|
402: BrowserError;
|
|
70684
71203
|
/**
|
|
70685
|
-
* PERMISSION_DENIED /
|
|
71204
|
+
* PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
|
|
70686
71205
|
*/
|
|
70687
71206
|
403: BrowserError;
|
|
70688
71207
|
/**
|
|
@@ -70754,7 +71273,7 @@ export type BrowserCreateByobPairingErrors = {
|
|
|
70754
71273
|
*/
|
|
70755
71274
|
402: BrowserError;
|
|
70756
71275
|
/**
|
|
70757
|
-
* PERMISSION_DENIED /
|
|
71276
|
+
* PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
|
|
70758
71277
|
*/
|
|
70759
71278
|
403: BrowserError;
|
|
70760
71279
|
/**
|
|
@@ -70835,7 +71354,7 @@ export type BrowserListByobBrowsersErrors = {
|
|
|
70835
71354
|
*/
|
|
70836
71355
|
402: BrowserError;
|
|
70837
71356
|
/**
|
|
70838
|
-
* PERMISSION_DENIED /
|
|
71357
|
+
* PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
|
|
70839
71358
|
*/
|
|
70840
71359
|
403: BrowserError;
|
|
70841
71360
|
/**
|
|
@@ -70921,7 +71440,7 @@ export type BrowserGetByobBrowserErrors = {
|
|
|
70921
71440
|
*/
|
|
70922
71441
|
402: BrowserError;
|
|
70923
71442
|
/**
|
|
70924
|
-
* PERMISSION_DENIED /
|
|
71443
|
+
* PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
|
|
70925
71444
|
*/
|
|
70926
71445
|
403: BrowserError;
|
|
70927
71446
|
/**
|
|
@@ -70979,14 +71498,6 @@ export type BrowserUpdateByobBrowserData = {
|
|
|
70979
71498
|
* 新的显示名称,1–80 个字符。
|
|
70980
71499
|
*/
|
|
70981
71500
|
name?: string;
|
|
70982
|
-
/**
|
|
70983
|
-
* 整体替换被授权的智能体 ID 列表;传空数组撤销全部授权。
|
|
70984
|
-
*/
|
|
70985
|
-
granted_agents?: Array<string>;
|
|
70986
|
-
/**
|
|
70987
|
-
* 整体替换允许站点列表;传空数组表示不限制。
|
|
70988
|
-
*/
|
|
70989
|
-
allowed_sites?: Array<string>;
|
|
70990
71501
|
};
|
|
70991
71502
|
path: {
|
|
70992
71503
|
/**
|
|
@@ -71011,7 +71522,7 @@ export type BrowserUpdateByobBrowserErrors = {
|
|
|
71011
71522
|
*/
|
|
71012
71523
|
402: BrowserError;
|
|
71013
71524
|
/**
|
|
71014
|
-
* PERMISSION_DENIED /
|
|
71525
|
+
* PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
|
|
71015
71526
|
*/
|
|
71016
71527
|
403: BrowserError;
|
|
71017
71528
|
/**
|
|
@@ -71088,7 +71599,7 @@ export type BrowserDisconnectByobBrowserErrors = {
|
|
|
71088
71599
|
*/
|
|
71089
71600
|
402: BrowserError;
|
|
71090
71601
|
/**
|
|
71091
|
-
* PERMISSION_DENIED /
|
|
71602
|
+
* PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
|
|
71092
71603
|
*/
|
|
71093
71604
|
403: BrowserError;
|
|
71094
71605
|
/**
|
|
@@ -71165,7 +71676,7 @@ export type BrowserReadByobPairingErrors = {
|
|
|
71165
71676
|
*/
|
|
71166
71677
|
402: BrowserError;
|
|
71167
71678
|
/**
|
|
71168
|
-
* PERMISSION_DENIED /
|
|
71679
|
+
* PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
|
|
71169
71680
|
*/
|
|
71170
71681
|
403: BrowserError;
|
|
71171
71682
|
/**
|
|
@@ -71242,7 +71753,7 @@ export type BrowserClaimByobPairingErrors = {
|
|
|
71242
71753
|
*/
|
|
71243
71754
|
402: BrowserError;
|
|
71244
71755
|
/**
|
|
71245
|
-
* PERMISSION_DENIED /
|
|
71756
|
+
* PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
|
|
71246
71757
|
*/
|
|
71247
71758
|
403: BrowserError;
|
|
71248
71759
|
/**
|
|
@@ -71351,7 +71862,7 @@ export type BrowserConnectErrors = {
|
|
|
71351
71862
|
*/
|
|
71352
71863
|
402: BrowserError;
|
|
71353
71864
|
/**
|
|
71354
|
-
* PERMISSION_DENIED /
|
|
71865
|
+
* PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
|
|
71355
71866
|
*/
|
|
71356
71867
|
403: BrowserError;
|
|
71357
71868
|
/**
|
|
@@ -71430,7 +71941,7 @@ export type BrowserLiveViewErrors = {
|
|
|
71430
71941
|
*/
|
|
71431
71942
|
402: BrowserError;
|
|
71432
71943
|
/**
|
|
71433
|
-
* PERMISSION_DENIED /
|
|
71944
|
+
* PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
|
|
71434
71945
|
*/
|
|
71435
71946
|
403: BrowserError;
|
|
71436
71947
|
/**
|
|
@@ -71500,7 +72011,7 @@ export type BrowserStreamSessionErrors = {
|
|
|
71500
72011
|
*/
|
|
71501
72012
|
402: BrowserError;
|
|
71502
72013
|
/**
|
|
71503
|
-
* PERMISSION_DENIED /
|
|
72014
|
+
* PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
|
|
71504
72015
|
*/
|
|
71505
72016
|
403: BrowserError;
|
|
71506
72017
|
/**
|
|
@@ -71577,7 +72088,7 @@ export type BrowserStreamSessionFramesErrors = {
|
|
|
71577
72088
|
*/
|
|
71578
72089
|
402: BrowserError;
|
|
71579
72090
|
/**
|
|
71580
|
-
* PERMISSION_DENIED /
|
|
72091
|
+
* PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
|
|
71581
72092
|
*/
|
|
71582
72093
|
403: BrowserError;
|
|
71583
72094
|
/**
|
|
@@ -78314,7 +78825,7 @@ export type ListOrganizationCostsData = {
|
|
|
78314
78825
|
*/
|
|
78315
78826
|
bucket_width: '1h' | '1d';
|
|
78316
78827
|
/**
|
|
78317
|
-
* IANA time zone name (for example Asia/Shanghai) whose local hours or days form the buckets. Defaults to UTC. Offsets such as +08:00 are rejected.
|
|
78828
|
+
* IANA time zone name (for example Asia/Shanghai) whose local hours or days form the buckets. Defaults to UTC. Offsets such as +08:00 are rejected. Only zones whose UTC offset is a whole number of hours across the whole window are supported; zones such as Asia/Kolkata (+05:30) or Asia/Kathmandu (+05:45) are rejected with 400 VALIDATION_ERROR, because Billing buckets in UTC hours and a local hour of those zones straddles two of them. With bucket_width=1d the window widens to whole local days, each bucket carries its real UTC starting_at and ending_at, and a day that crosses a daylight-saving change lasts 23 or 25 hours; the whole window is then answered in one page (has_more is false and page is not accepted). starting_at and ending_at stay UTC instants.
|
|
78318
78829
|
*
|
|
78319
78830
|
*/
|
|
78320
78831
|
time_zone?: string;
|
|
@@ -78432,7 +78943,7 @@ export type ListOrganizationUsageData = {
|
|
|
78432
78943
|
*/
|
|
78433
78944
|
bucket_width: '1h' | '1d';
|
|
78434
78945
|
/**
|
|
78435
|
-
* IANA time zone name (for example Asia/Shanghai) whose local hours or days form the buckets. Defaults to UTC. Offsets such as +08:00 are rejected.
|
|
78946
|
+
* IANA time zone name (for example Asia/Shanghai) whose local hours or days form the buckets. Defaults to UTC. Offsets such as +08:00 are rejected. Only zones whose UTC offset is a whole number of hours across the whole window are supported; zones such as Asia/Kolkata (+05:30) or Asia/Kathmandu (+05:45) are rejected with 400 VALIDATION_ERROR, because Billing buckets in UTC hours and a local hour of those zones straddles two of them. With bucket_width=1d the window widens to whole local days, each bucket carries its real UTC starting_at and ending_at, and a day that crosses a daylight-saving change lasts 23 or 25 hours; the whole window is then answered in one page (has_more is false and page is not accepted). starting_at and ending_at stay UTC instants.
|
|
78436
78947
|
*
|
|
78437
78948
|
*/
|
|
78438
78949
|
time_zone?: string;
|
|
@@ -78952,11 +79463,19 @@ export type ListOrganizationNotificationLettersData = {
|
|
|
78952
79463
|
path?: never;
|
|
78953
79464
|
query?: {
|
|
78954
79465
|
/**
|
|
78955
|
-
*
|
|
79466
|
+
* 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.
|
|
79467
|
+
*/
|
|
79468
|
+
direction?: 'received' | 'sent';
|
|
79469
|
+
/**
|
|
79470
|
+
* 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.
|
|
78956
79471
|
*/
|
|
78957
|
-
status?: 'unread' | 'read';
|
|
79472
|
+
status?: 'unread' | 'read' | 'scheduled';
|
|
78958
79473
|
/**
|
|
78959
|
-
*
|
|
79474
|
+
* Only letters of this conversation, for received and sent alike; omit for all.
|
|
79475
|
+
*/
|
|
79476
|
+
thread?: string;
|
|
79477
|
+
/**
|
|
79478
|
+
* false (the default) hides archived letters; true lists only the archived ones. Archiving is the addressee's act, so it is ignored when direction=sent.
|
|
78960
79479
|
*/
|
|
78961
79480
|
archived?: boolean;
|
|
78962
79481
|
/**
|
|
@@ -78972,7 +79491,7 @@ export type ListOrganizationNotificationLettersData = {
|
|
|
78972
79491
|
};
|
|
78973
79492
|
export type ListOrganizationNotificationLettersErrors = {
|
|
78974
79493
|
/**
|
|
78975
|
-
* A bad `status`, `archived` or `limit`, or `INVALID_PARAMS` from the service for a cursor it did not issue (RFC 9457 problem).
|
|
79494
|
+
* A bad `direction`, `status` (scheduled needs direction=sent), `thread`, `archived` or `limit`, or `INVALID_PARAMS` from the service for a cursor it did not issue (RFC 9457 problem).
|
|
78976
79495
|
*/
|
|
78977
79496
|
400: unknown;
|
|
78978
79497
|
/**
|
|
@@ -79072,6 +79591,80 @@ export type ListOrganizationNotificationLettersResponses = {
|
|
|
79072
79591
|
};
|
|
79073
79592
|
};
|
|
79074
79593
|
export type ListOrganizationNotificationLettersResponse = ListOrganizationNotificationLettersResponses[keyof ListOrganizationNotificationLettersResponses];
|
|
79594
|
+
export type CreateOrganizationNotificationLetterData = {
|
|
79595
|
+
body: {
|
|
79596
|
+
/**
|
|
79597
|
+
* The recipient's address: human:<user id> or agent:<agent id>, a member or an agent of this organization.
|
|
79598
|
+
*/
|
|
79599
|
+
to: string;
|
|
79600
|
+
/**
|
|
79601
|
+
* The whole letter, 1 to 16000 characters.
|
|
79602
|
+
*/
|
|
79603
|
+
body: string;
|
|
79604
|
+
/**
|
|
79605
|
+
* 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.
|
|
79606
|
+
*/
|
|
79607
|
+
summary?: string;
|
|
79608
|
+
/**
|
|
79609
|
+
* The letter's kind; it decides the channels. Defaults to mention.
|
|
79610
|
+
*/
|
|
79611
|
+
kind?: 'notice' | 'mention' | 'decision';
|
|
79612
|
+
/**
|
|
79613
|
+
* The conversation the letter belongs to, free text; omit for none.
|
|
79614
|
+
*/
|
|
79615
|
+
thread?: string;
|
|
79616
|
+
/**
|
|
79617
|
+
* When to deliver it, ISO 8601, at most 366 days ahead. A past time or no value means now.
|
|
79618
|
+
*/
|
|
79619
|
+
deliver_at?: string;
|
|
79620
|
+
};
|
|
79621
|
+
path?: never;
|
|
79622
|
+
query?: never;
|
|
79623
|
+
url: '/organization/v1/notifications/letters';
|
|
79624
|
+
};
|
|
79625
|
+
export type CreateOrganizationNotificationLetterErrors = {
|
|
79626
|
+
/**
|
|
79627
|
+
* `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).
|
|
79628
|
+
*/
|
|
79629
|
+
400: unknown;
|
|
79630
|
+
/**
|
|
79631
|
+
* Missing or invalid credential (RFC 9457 problem).
|
|
79632
|
+
*/
|
|
79633
|
+
401: unknown;
|
|
79634
|
+
/**
|
|
79635
|
+
* `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).
|
|
79636
|
+
*/
|
|
79637
|
+
403: unknown;
|
|
79638
|
+
/**
|
|
79639
|
+
* `SUBSCRIBER_NOT_FOUND`: the recipient is not a member or an agent of this organization (RFC 9457 problem).
|
|
79640
|
+
*/
|
|
79641
|
+
404: unknown;
|
|
79642
|
+
/**
|
|
79643
|
+
* 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.
|
|
79644
|
+
*/
|
|
79645
|
+
502: unknown;
|
|
79646
|
+
};
|
|
79647
|
+
export type CreateOrganizationNotificationLetterResponses = {
|
|
79648
|
+
/**
|
|
79649
|
+
* The letter is written; it is delivered at deliverAt.
|
|
79650
|
+
*/
|
|
79651
|
+
200: {
|
|
79652
|
+
/**
|
|
79653
|
+
* The letter that was written: its id and the time it is delivered.
|
|
79654
|
+
*/
|
|
79655
|
+
letter: {
|
|
79656
|
+
/**
|
|
79657
|
+
* The letter's id.
|
|
79658
|
+
*/
|
|
79659
|
+
id: string;
|
|
79660
|
+
/**
|
|
79661
|
+
* When it is delivered: now, or the time asked for.
|
|
79662
|
+
*/
|
|
79663
|
+
deliverAt: string;
|
|
79664
|
+
};
|
|
79665
|
+
};
|
|
79666
|
+
};
|
|
79667
|
+
export type CreateOrganizationNotificationLetterResponse = CreateOrganizationNotificationLetterResponses[keyof CreateOrganizationNotificationLetterResponses];
|
|
79075
79668
|
export type GetOrganizationNotificationLetterData = {
|
|
79076
79669
|
body?: never;
|
|
79077
79670
|
path: {
|
|
@@ -79295,6 +79888,360 @@ export type ArchiveOrganizationNotificationLetterResponses = {
|
|
|
79295
79888
|
};
|
|
79296
79889
|
};
|
|
79297
79890
|
export type ArchiveOrganizationNotificationLetterResponse = ArchiveOrganizationNotificationLetterResponses[keyof ArchiveOrganizationNotificationLetterResponses];
|
|
79891
|
+
export type ListOrganizationNotificationMessagesData = {
|
|
79892
|
+
body?: never;
|
|
79893
|
+
path?: never;
|
|
79894
|
+
query?: {
|
|
79895
|
+
/**
|
|
79896
|
+
* 0 (the default) lists the inbox tab, 1 lists archived messages.
|
|
79897
|
+
*/
|
|
79898
|
+
archived?: '0' | '1';
|
|
79899
|
+
/**
|
|
79900
|
+
* Messages per page, 1 to 100; defaults to 20.
|
|
79901
|
+
*/
|
|
79902
|
+
limit?: number;
|
|
79903
|
+
/**
|
|
79904
|
+
* Opaque nextPageToken from the previous response; omit for the first page.
|
|
79905
|
+
*/
|
|
79906
|
+
page?: string;
|
|
79907
|
+
};
|
|
79908
|
+
url: '/organization/v1/notifications/messages';
|
|
79909
|
+
};
|
|
79910
|
+
export type ListOrganizationNotificationMessagesErrors = {
|
|
79911
|
+
/**
|
|
79912
|
+
* A bad `archived`, `limit` or `page`, or `INVALID_PARAMS` from the service for a cursor it did not issue (RFC 9457 problem).
|
|
79913
|
+
*/
|
|
79914
|
+
400: unknown;
|
|
79915
|
+
/**
|
|
79916
|
+
* Missing or invalid credential (RFC 9457 problem).
|
|
79917
|
+
*/
|
|
79918
|
+
401: unknown;
|
|
79919
|
+
/**
|
|
79920
|
+
* `PERMISSION_DENIED`: an agent credential has no person inbox; read its own letters instead (RFC 9457 problem).
|
|
79921
|
+
*/
|
|
79922
|
+
403: unknown;
|
|
79923
|
+
/**
|
|
79924
|
+
* 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.
|
|
79925
|
+
*/
|
|
79926
|
+
502: unknown;
|
|
79927
|
+
};
|
|
79928
|
+
export type ListOrganizationNotificationMessagesResponses = {
|
|
79929
|
+
/**
|
|
79930
|
+
* One page of this person's messages.
|
|
79931
|
+
*/
|
|
79932
|
+
200: {
|
|
79933
|
+
/**
|
|
79934
|
+
* The page, newest first.
|
|
79935
|
+
*/
|
|
79936
|
+
items: Array<{
|
|
79937
|
+
/**
|
|
79938
|
+
* The message's resource name, subscribers/{user}/messages/{id}; pass it URL-encoded as the {name} of the other message operations.
|
|
79939
|
+
*/
|
|
79940
|
+
name: string;
|
|
79941
|
+
/**
|
|
79942
|
+
* The organization the message belongs to; empty for a message that belongs to no organization.
|
|
79943
|
+
*/
|
|
79944
|
+
organizationId: string;
|
|
79945
|
+
/**
|
|
79946
|
+
* The notification group the message belongs to: members, usage, alerts, agent, or nonConfigurable.
|
|
79947
|
+
*/
|
|
79948
|
+
group: 'members' | 'usage' | 'alerts' | 'agent' | 'nonConfigurable';
|
|
79949
|
+
/**
|
|
79950
|
+
* The notification workflow that wrote it, as the preferences page names it.
|
|
79951
|
+
*/
|
|
79952
|
+
workflow: string;
|
|
79953
|
+
/**
|
|
79954
|
+
* The message's headline, as the bell shows it.
|
|
79955
|
+
*/
|
|
79956
|
+
title: string;
|
|
79957
|
+
/**
|
|
79958
|
+
* The message text.
|
|
79959
|
+
*/
|
|
79960
|
+
body: string;
|
|
79961
|
+
/**
|
|
79962
|
+
* Where the bell opens this message; absent when it has no page.
|
|
79963
|
+
*/
|
|
79964
|
+
actionUrl?: string;
|
|
79965
|
+
/**
|
|
79966
|
+
* Whether the bell has been opened since the message arrived.
|
|
79967
|
+
*/
|
|
79968
|
+
seen: boolean;
|
|
79969
|
+
/**
|
|
79970
|
+
* Whether this person has read it.
|
|
79971
|
+
*/
|
|
79972
|
+
read: boolean;
|
|
79973
|
+
/**
|
|
79974
|
+
* Whether this person archived it; archived messages are not in the inbox tab.
|
|
79975
|
+
*/
|
|
79976
|
+
archived: boolean;
|
|
79977
|
+
/**
|
|
79978
|
+
* When the message arrived.
|
|
79979
|
+
*/
|
|
79980
|
+
createTime: string;
|
|
79981
|
+
}>;
|
|
79982
|
+
/**
|
|
79983
|
+
* Pass unchanged as page for the next page; absent at the end.
|
|
79984
|
+
*/
|
|
79985
|
+
nextPageToken?: string;
|
|
79986
|
+
};
|
|
79987
|
+
};
|
|
79988
|
+
export type ListOrganizationNotificationMessagesResponse = ListOrganizationNotificationMessagesResponses[keyof ListOrganizationNotificationMessagesResponses];
|
|
79989
|
+
export type DeleteOrganizationNotificationMessageData = {
|
|
79990
|
+
body?: never;
|
|
79991
|
+
path: {
|
|
79992
|
+
/**
|
|
79993
|
+
* The message's `name` from the messages list, subscribers/{user}/messages/{id}, URL-encoded.
|
|
79994
|
+
*/
|
|
79995
|
+
name: string;
|
|
79996
|
+
};
|
|
79997
|
+
query?: never;
|
|
79998
|
+
url: '/organization/v1/notifications/messages/{name}';
|
|
79999
|
+
};
|
|
80000
|
+
export type DeleteOrganizationNotificationMessageErrors = {
|
|
80001
|
+
/**
|
|
80002
|
+
* `name` is not subscribers/{user}/messages/{id} — `INVALID_PARAMS` (RFC 9457 problem).
|
|
80003
|
+
*/
|
|
80004
|
+
400: unknown;
|
|
80005
|
+
/**
|
|
80006
|
+
* Missing or invalid credential (RFC 9457 problem).
|
|
80007
|
+
*/
|
|
80008
|
+
401: unknown;
|
|
80009
|
+
/**
|
|
80010
|
+
* `PERMISSION_DENIED`: an agent credential has no person inbox; read its own letters instead (RFC 9457 problem).
|
|
80011
|
+
*/
|
|
80012
|
+
403: unknown;
|
|
80013
|
+
/**
|
|
80014
|
+
* No such message of yours in this organization — `MESSAGE_NOT_FOUND` (RFC 9457 problem).
|
|
80015
|
+
*/
|
|
80016
|
+
404: unknown;
|
|
80017
|
+
/**
|
|
80018
|
+
* 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.
|
|
80019
|
+
*/
|
|
80020
|
+
502: unknown;
|
|
80021
|
+
};
|
|
80022
|
+
export type DeleteOrganizationNotificationMessageResponses = {
|
|
80023
|
+
/**
|
|
80024
|
+
* The message is deleted.
|
|
80025
|
+
*/
|
|
80026
|
+
200: {
|
|
80027
|
+
/**
|
|
80028
|
+
* Always true: the message was deleted.
|
|
80029
|
+
*/
|
|
80030
|
+
deleted: boolean;
|
|
80031
|
+
};
|
|
80032
|
+
};
|
|
80033
|
+
export type DeleteOrganizationNotificationMessageResponse = DeleteOrganizationNotificationMessageResponses[keyof DeleteOrganizationNotificationMessageResponses];
|
|
80034
|
+
export type GetOrganizationNotificationMessageData = {
|
|
80035
|
+
body?: never;
|
|
80036
|
+
path: {
|
|
80037
|
+
/**
|
|
80038
|
+
* The message's `name` from the messages list, subscribers/{user}/messages/{id}, URL-encoded.
|
|
80039
|
+
*/
|
|
80040
|
+
name: string;
|
|
80041
|
+
};
|
|
80042
|
+
query?: never;
|
|
80043
|
+
url: '/organization/v1/notifications/messages/{name}';
|
|
80044
|
+
};
|
|
80045
|
+
export type GetOrganizationNotificationMessageErrors = {
|
|
80046
|
+
/**
|
|
80047
|
+
* `name` is not subscribers/{user}/messages/{id} — `INVALID_PARAMS` (RFC 9457 problem).
|
|
80048
|
+
*/
|
|
80049
|
+
400: unknown;
|
|
80050
|
+
/**
|
|
80051
|
+
* Missing or invalid credential (RFC 9457 problem).
|
|
80052
|
+
*/
|
|
80053
|
+
401: unknown;
|
|
80054
|
+
/**
|
|
80055
|
+
* `PERMISSION_DENIED`: an agent credential has no person inbox; read its own letters instead (RFC 9457 problem).
|
|
80056
|
+
*/
|
|
80057
|
+
403: unknown;
|
|
80058
|
+
/**
|
|
80059
|
+
* 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).
|
|
80060
|
+
*/
|
|
80061
|
+
404: unknown;
|
|
80062
|
+
/**
|
|
80063
|
+
* 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.
|
|
80064
|
+
*/
|
|
80065
|
+
502: unknown;
|
|
80066
|
+
};
|
|
80067
|
+
export type GetOrganizationNotificationMessageResponses = {
|
|
80068
|
+
/**
|
|
80069
|
+
* The message.
|
|
80070
|
+
*/
|
|
80071
|
+
200: {
|
|
80072
|
+
/**
|
|
80073
|
+
* The message's resource name, subscribers/{user}/messages/{id}; pass it URL-encoded as the {name} of the other message operations.
|
|
80074
|
+
*/
|
|
80075
|
+
name: string;
|
|
80076
|
+
/**
|
|
80077
|
+
* The organization the message belongs to; empty for a message that belongs to no organization.
|
|
80078
|
+
*/
|
|
80079
|
+
organizationId: string;
|
|
80080
|
+
/**
|
|
80081
|
+
* The notification group the message belongs to: members, usage, alerts, agent, or nonConfigurable.
|
|
80082
|
+
*/
|
|
80083
|
+
group: 'members' | 'usage' | 'alerts' | 'agent' | 'nonConfigurable';
|
|
80084
|
+
/**
|
|
80085
|
+
* The notification workflow that wrote it, as the preferences page names it.
|
|
80086
|
+
*/
|
|
80087
|
+
workflow: string;
|
|
80088
|
+
/**
|
|
80089
|
+
* The message's headline, as the bell shows it.
|
|
80090
|
+
*/
|
|
80091
|
+
title: string;
|
|
80092
|
+
/**
|
|
80093
|
+
* The message text.
|
|
80094
|
+
*/
|
|
80095
|
+
body: string;
|
|
80096
|
+
/**
|
|
80097
|
+
* Where the bell opens this message; absent when it has no page.
|
|
80098
|
+
*/
|
|
80099
|
+
actionUrl?: string;
|
|
80100
|
+
/**
|
|
80101
|
+
* Whether the bell has been opened since the message arrived.
|
|
80102
|
+
*/
|
|
80103
|
+
seen: boolean;
|
|
80104
|
+
/**
|
|
80105
|
+
* Whether this person has read it.
|
|
80106
|
+
*/
|
|
80107
|
+
read: boolean;
|
|
80108
|
+
/**
|
|
80109
|
+
* Whether this person archived it; archived messages are not in the inbox tab.
|
|
80110
|
+
*/
|
|
80111
|
+
archived: boolean;
|
|
80112
|
+
/**
|
|
80113
|
+
* When the message arrived.
|
|
80114
|
+
*/
|
|
80115
|
+
createTime: string;
|
|
80116
|
+
};
|
|
80117
|
+
};
|
|
80118
|
+
export type GetOrganizationNotificationMessageResponse = GetOrganizationNotificationMessageResponses[keyof GetOrganizationNotificationMessageResponses];
|
|
80119
|
+
export type UpdateOrganizationNotificationMessageData = {
|
|
80120
|
+
body: {
|
|
80121
|
+
/**
|
|
80122
|
+
* Mark the message read (true) or unread (false); omit to leave it.
|
|
80123
|
+
*/
|
|
80124
|
+
read?: boolean;
|
|
80125
|
+
/**
|
|
80126
|
+
* Archive the message (true) or move it back to the inbox (false); omit to leave it.
|
|
80127
|
+
*/
|
|
80128
|
+
archived?: boolean;
|
|
80129
|
+
};
|
|
80130
|
+
path: {
|
|
80131
|
+
/**
|
|
80132
|
+
* The message's `name` from the messages list, subscribers/{user}/messages/{id}, URL-encoded.
|
|
80133
|
+
*/
|
|
80134
|
+
name: string;
|
|
80135
|
+
};
|
|
80136
|
+
query?: never;
|
|
80137
|
+
url: '/organization/v1/notifications/messages/{name}';
|
|
80138
|
+
};
|
|
80139
|
+
export type UpdateOrganizationNotificationMessageErrors = {
|
|
80140
|
+
/**
|
|
80141
|
+
* 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).
|
|
80142
|
+
*/
|
|
80143
|
+
400: unknown;
|
|
80144
|
+
/**
|
|
80145
|
+
* Missing or invalid credential (RFC 9457 problem).
|
|
80146
|
+
*/
|
|
80147
|
+
401: unknown;
|
|
80148
|
+
/**
|
|
80149
|
+
* `PERMISSION_DENIED`: an agent credential has no person inbox; read its own letters instead (RFC 9457 problem).
|
|
80150
|
+
*/
|
|
80151
|
+
403: unknown;
|
|
80152
|
+
/**
|
|
80153
|
+
* No such message of yours in this organization — `MESSAGE_NOT_FOUND` (RFC 9457 problem).
|
|
80154
|
+
*/
|
|
80155
|
+
404: unknown;
|
|
80156
|
+
/**
|
|
80157
|
+
* 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.
|
|
80158
|
+
*/
|
|
80159
|
+
502: unknown;
|
|
80160
|
+
};
|
|
80161
|
+
export type UpdateOrganizationNotificationMessageResponses = {
|
|
80162
|
+
/**
|
|
80163
|
+
* The message after the change.
|
|
80164
|
+
*/
|
|
80165
|
+
200: {
|
|
80166
|
+
/**
|
|
80167
|
+
* The message's resource name, subscribers/{user}/messages/{id}; pass it URL-encoded as the {name} of the other message operations.
|
|
80168
|
+
*/
|
|
80169
|
+
name: string;
|
|
80170
|
+
/**
|
|
80171
|
+
* The organization the message belongs to; empty for a message that belongs to no organization.
|
|
80172
|
+
*/
|
|
80173
|
+
organizationId: string;
|
|
80174
|
+
/**
|
|
80175
|
+
* The notification group the message belongs to: members, usage, alerts, agent, or nonConfigurable.
|
|
80176
|
+
*/
|
|
80177
|
+
group: 'members' | 'usage' | 'alerts' | 'agent' | 'nonConfigurable';
|
|
80178
|
+
/**
|
|
80179
|
+
* The notification workflow that wrote it, as the preferences page names it.
|
|
80180
|
+
*/
|
|
80181
|
+
workflow: string;
|
|
80182
|
+
/**
|
|
80183
|
+
* The message's headline, as the bell shows it.
|
|
80184
|
+
*/
|
|
80185
|
+
title: string;
|
|
80186
|
+
/**
|
|
80187
|
+
* The message text.
|
|
80188
|
+
*/
|
|
80189
|
+
body: string;
|
|
80190
|
+
/**
|
|
80191
|
+
* Where the bell opens this message; absent when it has no page.
|
|
80192
|
+
*/
|
|
80193
|
+
actionUrl?: string;
|
|
80194
|
+
/**
|
|
80195
|
+
* Whether the bell has been opened since the message arrived.
|
|
80196
|
+
*/
|
|
80197
|
+
seen: boolean;
|
|
80198
|
+
/**
|
|
80199
|
+
* Whether this person has read it.
|
|
80200
|
+
*/
|
|
80201
|
+
read: boolean;
|
|
80202
|
+
/**
|
|
80203
|
+
* Whether this person archived it; archived messages are not in the inbox tab.
|
|
80204
|
+
*/
|
|
80205
|
+
archived: boolean;
|
|
80206
|
+
/**
|
|
80207
|
+
* When the message arrived.
|
|
80208
|
+
*/
|
|
80209
|
+
createTime: string;
|
|
80210
|
+
};
|
|
80211
|
+
};
|
|
80212
|
+
export type UpdateOrganizationNotificationMessageResponse = UpdateOrganizationNotificationMessageResponses[keyof UpdateOrganizationNotificationMessageResponses];
|
|
80213
|
+
export type ReadAllOrganizationNotificationMessagesData = {
|
|
80214
|
+
body?: never;
|
|
80215
|
+
path?: never;
|
|
80216
|
+
query?: never;
|
|
80217
|
+
url: '/organization/v1/notifications/messages:readAll';
|
|
80218
|
+
};
|
|
80219
|
+
export type ReadAllOrganizationNotificationMessagesErrors = {
|
|
80220
|
+
/**
|
|
80221
|
+
* Missing or invalid credential (RFC 9457 problem).
|
|
80222
|
+
*/
|
|
80223
|
+
401: unknown;
|
|
80224
|
+
/**
|
|
80225
|
+
* `PERMISSION_DENIED`: an agent credential has no person inbox; read its own letters instead (RFC 9457 problem).
|
|
80226
|
+
*/
|
|
80227
|
+
403: unknown;
|
|
80228
|
+
/**
|
|
80229
|
+
* 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.
|
|
80230
|
+
*/
|
|
80231
|
+
502: unknown;
|
|
80232
|
+
};
|
|
80233
|
+
export type ReadAllOrganizationNotificationMessagesResponses = {
|
|
80234
|
+
/**
|
|
80235
|
+
* How many messages were marked read.
|
|
80236
|
+
*/
|
|
80237
|
+
200: {
|
|
80238
|
+
/**
|
|
80239
|
+
* The number of messages that were unread and are now read.
|
|
80240
|
+
*/
|
|
80241
|
+
updated: number;
|
|
80242
|
+
};
|
|
80243
|
+
};
|
|
80244
|
+
export type ReadAllOrganizationNotificationMessagesResponse = ReadAllOrganizationNotificationMessagesResponses[keyof ReadAllOrganizationNotificationMessagesResponses];
|
|
79298
80245
|
export type GetOrganizationNotificationPreferencesData = {
|
|
79299
80246
|
body?: never;
|
|
79300
80247
|
path?: never;
|
|
@@ -80762,7 +81709,7 @@ export type ListByodDevicesResponses = {
|
|
|
80762
81709
|
*/
|
|
80763
81710
|
id: string;
|
|
80764
81711
|
/**
|
|
80765
|
-
* The device's platform, which decides the use faces it answers. A desktop (macos, linux) pairs
|
|
81712
|
+
* The device's platform, which decides the use faces it answers. A desktop (macos, linux) pairs like a phone; windows is not supported yet.
|
|
80766
81713
|
*/
|
|
80767
81714
|
platform: 'android' | 'macos' | 'linux';
|
|
80768
81715
|
/**
|
|
@@ -80810,6 +81757,10 @@ export type ListByodDevicesResponses = {
|
|
|
80810
81757
|
*/
|
|
80811
81758
|
agent: string;
|
|
80812
81759
|
}>;
|
|
81760
|
+
/**
|
|
81761
|
+
* 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.
|
|
81762
|
+
*/
|
|
81763
|
+
envd_version: string | null;
|
|
80813
81764
|
/**
|
|
80814
81765
|
* Whether the desktop's envd lets a platform session run in bypassPermissions (all tool calls without asking). True unless the person ran praxis connect agent --no-bypass on that machine; a session create that asks for bypassPermissions on a device where this is false answers 400 INVALID_PARAMS. False for a phone and for a desktop that has not connected yet.
|
|
80815
81766
|
*/
|
|
@@ -80857,7 +81808,7 @@ export type GetByodDeviceResponses = {
|
|
|
80857
81808
|
*/
|
|
80858
81809
|
id: string;
|
|
80859
81810
|
/**
|
|
80860
|
-
* The device's platform, which decides the use faces it answers. A desktop (macos, linux) pairs
|
|
81811
|
+
* The device's platform, which decides the use faces it answers. A desktop (macos, linux) pairs like a phone; windows is not supported yet.
|
|
80861
81812
|
*/
|
|
80862
81813
|
platform: 'android' | 'macos' | 'linux';
|
|
80863
81814
|
/**
|
|
@@ -80905,6 +81856,10 @@ export type GetByodDeviceResponses = {
|
|
|
80905
81856
|
*/
|
|
80906
81857
|
agent: string;
|
|
80907
81858
|
}>;
|
|
81859
|
+
/**
|
|
81860
|
+
* 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.
|
|
81861
|
+
*/
|
|
81862
|
+
envd_version: string | null;
|
|
80908
81863
|
/**
|
|
80909
81864
|
* Whether the desktop's envd lets a platform session run in bypassPermissions (all tool calls without asking). True unless the person ran praxis connect agent --no-bypass on that machine; a session create that asks for bypassPermissions on a device where this is false answers 400 INVALID_PARAMS. False for a phone and for a desktop that has not connected yet.
|
|
80910
81865
|
*/
|
|
@@ -80963,7 +81918,7 @@ export type UpdateByodDeviceResponses = {
|
|
|
80963
81918
|
*/
|
|
80964
81919
|
id: string;
|
|
80965
81920
|
/**
|
|
80966
|
-
* The device's platform, which decides the use faces it answers. A desktop (macos, linux) pairs
|
|
81921
|
+
* The device's platform, which decides the use faces it answers. A desktop (macos, linux) pairs like a phone; windows is not supported yet.
|
|
80967
81922
|
*/
|
|
80968
81923
|
platform: 'android' | 'macos' | 'linux';
|
|
80969
81924
|
/**
|
|
@@ -81011,6 +81966,10 @@ export type UpdateByodDeviceResponses = {
|
|
|
81011
81966
|
*/
|
|
81012
81967
|
agent: string;
|
|
81013
81968
|
}>;
|
|
81969
|
+
/**
|
|
81970
|
+
* 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.
|
|
81971
|
+
*/
|
|
81972
|
+
envd_version: string | null;
|
|
81014
81973
|
/**
|
|
81015
81974
|
* Whether the desktop's envd lets a platform session run in bypassPermissions (all tool calls without asking). True unless the person ran praxis connect agent --no-bypass on that machine; a session create that asks for bypassPermissions on a device where this is false answers 400 INVALID_PARAMS. False for a phone and for a desktop that has not connected yet.
|
|
81016
81975
|
*/
|
|
@@ -81102,7 +82061,7 @@ export type ClaimByodPairingData = {
|
|
|
81102
82061
|
*/
|
|
81103
82062
|
body: {
|
|
81104
82063
|
/**
|
|
81105
|
-
* The device's platform. macos and linux are accepted
|
|
82064
|
+
* The device's platform. macos and linux are accepted for every organization; any other value than android, macos or linux answers INVALID_PARAMS.
|
|
81106
82065
|
*/
|
|
81107
82066
|
platform: 'android' | 'macos' | 'linux';
|
|
81108
82067
|
/**
|
|
@@ -81133,7 +82092,7 @@ export type ClaimByodPairingData = {
|
|
|
81133
82092
|
};
|
|
81134
82093
|
export type ClaimByodPairingErrors = {
|
|
81135
82094
|
/**
|
|
81136
|
-
* INVALID_PARAMS: the body is missing, platform is not android, macos or linux
|
|
82095
|
+
* INVALID_PARAMS: the body is missing, platform is not android, macos or linux. Fix the body and resend; the code is not spent by a refused claim.
|
|
81137
82096
|
*/
|
|
81138
82097
|
400: unknown;
|
|
81139
82098
|
/**
|
|
@@ -83756,8 +84715,7 @@ export type SessionsUpdateData = {
|
|
|
83756
84715
|
*/
|
|
83757
84716
|
title?: null | string;
|
|
83758
84717
|
/**
|
|
83759
|
-
*
|
|
83760
|
-
* requests setting this field are rejected. Reserved for future use.
|
|
84718
|
+
* The vaults this session carries, replacing the whole set it has now, including the vaults it took from its agent when it was created: send those ids again to keep them. At most 50 ids, each a vault of your organization that is not archived. The next command the session runs sees the new set: the secrets of the vaults become environment variables on its machine and are matched against its MCP servers, as sessions.create describes.
|
|
83761
84719
|
*/
|
|
83762
84720
|
vault_ids?: Array<string>;
|
|
83763
84721
|
/**
|
|
@@ -84304,6 +85262,15 @@ export type AgentsListResponses = {
|
|
|
84304
85262
|
name: string;
|
|
84305
85263
|
}>;
|
|
84306
85264
|
};
|
|
85265
|
+
/**
|
|
85266
|
+
* ADR-205: which browser the agent drives. {byob: byb_…} names one of your organization's paired browsers (browser.byob.browsers.list), which the agent then drives through connect() instead of a cloud browser; null or absent is the cloud browser. The browser must belong to your organization (otherwise 400) and must grant this agent before a session can open it. Omit on update to keep it, send an object to replace it, or null to go back to the cloud browser. /agent/v1 only.
|
|
85267
|
+
*/
|
|
85268
|
+
browser?: {
|
|
85269
|
+
/**
|
|
85270
|
+
* A paired browser's id (byb_ and 26 lowercase hex characters), from browser.byob.browsers.list.
|
|
85271
|
+
*/
|
|
85272
|
+
byob: string;
|
|
85273
|
+
} | null;
|
|
84307
85274
|
/**
|
|
84308
85275
|
* Praxis extension: MA only has session-scoped temporary containers and memory_stores, not durable browsable computers. computer_id selects a tenant-owned active computer. Session selection overrides the agent default; a sandbox environment_id and computer_id cannot be combined. Omitted when no computer is selected.
|
|
84309
85276
|
*/
|
|
@@ -84689,7 +85656,7 @@ export type AgentsListResponses = {
|
|
|
84689
85656
|
*/
|
|
84690
85657
|
environment_id?: string | null;
|
|
84691
85658
|
/**
|
|
84692
|
-
* Default vaults of this service or assume agent version: the vault_ids new
|
|
85659
|
+
* Default vaults of this service or assume agent version: the vault_ids every new session carries; a session's own vault_ids are added to them. Present for service and assume agents. Follows the version like other configuration: a version saved with apply=false does not change the vaults in effect. Versions saved before this field existed read as []. /agent/v1 only.
|
|
84693
85660
|
*/
|
|
84694
85661
|
vault_ids?: Array<string>;
|
|
84695
85662
|
/**
|
|
@@ -85228,7 +86195,7 @@ export type AgentsCreateData = {
|
|
|
85228
86195
|
*/
|
|
85229
86196
|
environment_id?: string | null;
|
|
85230
86197
|
/**
|
|
85231
|
-
* Default vaults of
|
|
86198
|
+
* Default vaults of the agent: the vault_ids every new session carries, so the agent's credentials follow the version. A department or organization rule's grants write this list on the agents it reaches (the agent's vaults become exactly the rule's set). Their secrets reach each session's machine as environment variables and match its MCP servers; sessions.create says which are skipped. At most 50 ids without duplicates; each must be a vault of your organization that is not archived, otherwise 400 vault_ids[<index>] <id> was not found. Saved with the agent version like other configuration, so apply=false keeps the previous vaults in effect for new sessions until that version is applied; a session that sets vault_ids itself adds its vaults to these and does not replace them; sessions already open keep the vaults they were created with. Omit on create for []; on update, omit to keep the list and send an array to replace it as a whole. Versions saved before this field existed read as []. Embed tokens use the vault_ids of the version they pin; vault_ids on the embed policy is deprecated, still accepted and ignored. General and assume agents hold vaults on themselves the same way. /agent/v1 only; /anthropic neither accepts nor returns it.
|
|
85232
86199
|
*/
|
|
85233
86200
|
vault_ids?: Array<string>;
|
|
85234
86201
|
/**
|
|
@@ -85253,6 +86220,15 @@ export type AgentsCreateData = {
|
|
|
85253
86220
|
name: string;
|
|
85254
86221
|
}>;
|
|
85255
86222
|
};
|
|
86223
|
+
/**
|
|
86224
|
+
* ADR-205: which browser the agent drives. {byob: byb_…} names one of your organization's paired browsers (browser.byob.browsers.list), which the agent then drives through connect() instead of a cloud browser; null or absent is the cloud browser. The browser must belong to your organization (otherwise 400) and must grant this agent before a session can open it. Omit on update to keep it, send an object to replace it, or null to go back to the cloud browser. /agent/v1 only.
|
|
86225
|
+
*/
|
|
86226
|
+
browser?: {
|
|
86227
|
+
/**
|
|
86228
|
+
* A paired browser's id (byb_ and 26 lowercase hex characters), from browser.byob.browsers.list.
|
|
86229
|
+
*/
|
|
86230
|
+
byob: string;
|
|
86231
|
+
} | null;
|
|
85256
86232
|
/**
|
|
85257
86233
|
* Optional tool preset. minimal enables read, glob and grep; data-editor also enables write and edit; full uses the default toolset with always_allow. Explicit tools override matching preset entries. codemode requires bash and is absent from data-editor.
|
|
85258
86234
|
*/
|
|
@@ -85508,6 +86484,15 @@ export type AgentsCreateResponses = {
|
|
|
85508
86484
|
name: string;
|
|
85509
86485
|
}>;
|
|
85510
86486
|
};
|
|
86487
|
+
/**
|
|
86488
|
+
* ADR-205: which browser the agent drives. {byob: byb_…} names one of your organization's paired browsers (browser.byob.browsers.list), which the agent then drives through connect() instead of a cloud browser; null or absent is the cloud browser. The browser must belong to your organization (otherwise 400) and must grant this agent before a session can open it. Omit on update to keep it, send an object to replace it, or null to go back to the cloud browser. /agent/v1 only.
|
|
86489
|
+
*/
|
|
86490
|
+
browser?: {
|
|
86491
|
+
/**
|
|
86492
|
+
* A paired browser's id (byb_ and 26 lowercase hex characters), from browser.byob.browsers.list.
|
|
86493
|
+
*/
|
|
86494
|
+
byob: string;
|
|
86495
|
+
} | null;
|
|
85511
86496
|
/**
|
|
85512
86497
|
* Praxis extension: MA only has session-scoped temporary containers and memory_stores, not durable browsable computers. computer_id selects a tenant-owned active computer. Session selection overrides the agent default; a sandbox environment_id and computer_id cannot be combined. Omitted when no computer is selected.
|
|
85513
86498
|
*/
|
|
@@ -85893,7 +86878,7 @@ export type AgentsCreateResponses = {
|
|
|
85893
86878
|
*/
|
|
85894
86879
|
environment_id?: string | null;
|
|
85895
86880
|
/**
|
|
85896
|
-
* Default vaults of this service or assume agent version: the vault_ids new
|
|
86881
|
+
* Default vaults of this service or assume agent version: the vault_ids every new session carries; a session's own vault_ids are added to them. Present for service and assume agents. Follows the version like other configuration: a version saved with apply=false does not change the vaults in effect. Versions saved before this field existed read as []. /agent/v1 only.
|
|
85897
86882
|
*/
|
|
85898
86883
|
vault_ids?: Array<string>;
|
|
85899
86884
|
/**
|
|
@@ -86170,6 +87155,15 @@ export type AgentsRetrieveResponses = {
|
|
|
86170
87155
|
name: string;
|
|
86171
87156
|
}>;
|
|
86172
87157
|
};
|
|
87158
|
+
/**
|
|
87159
|
+
* ADR-205: which browser the agent drives. {byob: byb_…} names one of your organization's paired browsers (browser.byob.browsers.list), which the agent then drives through connect() instead of a cloud browser; null or absent is the cloud browser. The browser must belong to your organization (otherwise 400) and must grant this agent before a session can open it. Omit on update to keep it, send an object to replace it, or null to go back to the cloud browser. /agent/v1 only.
|
|
87160
|
+
*/
|
|
87161
|
+
browser?: {
|
|
87162
|
+
/**
|
|
87163
|
+
* A paired browser's id (byb_ and 26 lowercase hex characters), from browser.byob.browsers.list.
|
|
87164
|
+
*/
|
|
87165
|
+
byob: string;
|
|
87166
|
+
} | null;
|
|
86173
87167
|
/**
|
|
86174
87168
|
* Praxis extension: MA only has session-scoped temporary containers and memory_stores, not durable browsable computers. computer_id selects a tenant-owned active computer. Session selection overrides the agent default; a sandbox environment_id and computer_id cannot be combined. Omitted when no computer is selected.
|
|
86175
87169
|
*/
|
|
@@ -86555,7 +87549,7 @@ export type AgentsRetrieveResponses = {
|
|
|
86555
87549
|
*/
|
|
86556
87550
|
environment_id?: string | null;
|
|
86557
87551
|
/**
|
|
86558
|
-
* Default vaults of this service or assume agent version: the vault_ids new
|
|
87552
|
+
* Default vaults of this service or assume agent version: the vault_ids every new session carries; a session's own vault_ids are added to them. Present for service and assume agents. Follows the version like other configuration: a version saved with apply=false does not change the vaults in effect. Versions saved before this field existed read as []. /agent/v1 only.
|
|
86559
87553
|
*/
|
|
86560
87554
|
vault_ids?: Array<string>;
|
|
86561
87555
|
/**
|
|
@@ -87103,7 +88097,7 @@ export type AgentsUpdateData = {
|
|
|
87103
88097
|
*/
|
|
87104
88098
|
environment_id?: string | null;
|
|
87105
88099
|
/**
|
|
87106
|
-
* Default vaults of
|
|
88100
|
+
* Default vaults of the agent: the vault_ids every new session carries, so the agent's credentials follow the version. A department or organization rule's grants write this list on the agents it reaches (the agent's vaults become exactly the rule's set). Their secrets reach each session's machine as environment variables and match its MCP servers; sessions.create says which are skipped. At most 50 ids without duplicates; each must be a vault of your organization that is not archived, otherwise 400 vault_ids[<index>] <id> was not found. Saved with the agent version like other configuration, so apply=false keeps the previous vaults in effect for new sessions until that version is applied; a session that sets vault_ids itself adds its vaults to these and does not replace them; sessions already open keep the vaults they were created with. Omit on create for []; on update, omit to keep the list and send an array to replace it as a whole. Versions saved before this field existed read as []. Embed tokens use the vault_ids of the version they pin; vault_ids on the embed policy is deprecated, still accepted and ignored. General and assume agents hold vaults on themselves the same way. /agent/v1 only; /anthropic neither accepts nor returns it.
|
|
87107
88101
|
*/
|
|
87108
88102
|
vault_ids?: Array<string>;
|
|
87109
88103
|
/**
|
|
@@ -87129,273 +88123,291 @@ export type AgentsUpdateData = {
|
|
|
87129
88123
|
}>;
|
|
87130
88124
|
};
|
|
87131
88125
|
/**
|
|
87132
|
-
*
|
|
87133
|
-
*/
|
|
87134
|
-
|
|
87135
|
-
|
|
87136
|
-
|
|
87137
|
-
|
|
87138
|
-
|
|
87139
|
-
|
|
87140
|
-
|
|
87141
|
-
|
|
87142
|
-
|
|
87143
|
-
|
|
87144
|
-
|
|
87145
|
-
|
|
87146
|
-
|
|
87147
|
-
|
|
87148
|
-
|
|
87149
|
-
|
|
87150
|
-
|
|
87151
|
-
|
|
87152
|
-
|
|
87153
|
-
|
|
87154
|
-
|
|
87155
|
-
|
|
87156
|
-
|
|
87157
|
-
|
|
87158
|
-
|
|
87159
|
-
|
|
87160
|
-
|
|
87161
|
-
|
|
87162
|
-
|
|
87163
|
-
|
|
87164
|
-
|
|
87165
|
-
};
|
|
87166
|
-
|
|
87167
|
-
|
|
87168
|
-
|
|
87169
|
-
|
|
87170
|
-
|
|
87171
|
-
|
|
87172
|
-
|
|
87173
|
-
|
|
87174
|
-
|
|
87175
|
-
|
|
87176
|
-
|
|
87177
|
-
|
|
87178
|
-
|
|
87179
|
-
|
|
87180
|
-
|
|
87181
|
-
|
|
87182
|
-
|
|
87183
|
-
|
|
87184
|
-
|
|
87185
|
-
|
|
87186
|
-
|
|
87187
|
-
|
|
87188
|
-
|
|
87189
|
-
|
|
87190
|
-
|
|
87191
|
-
|
|
87192
|
-
|
|
87193
|
-
|
|
87194
|
-
|
|
87195
|
-
|
|
87196
|
-
|
|
87197
|
-
|
|
87198
|
-
|
|
87199
|
-
|
|
87200
|
-
|
|
87201
|
-
|
|
87202
|
-
|
|
87203
|
-
|
|
87204
|
-
|
|
87205
|
-
|
|
87206
|
-
|
|
87207
|
-
|
|
87208
|
-
|
|
87209
|
-
|
|
87210
|
-
|
|
87211
|
-
|
|
87212
|
-
|
|
87213
|
-
|
|
87214
|
-
|
|
87215
|
-
/**
|
|
87216
|
-
*
|
|
87217
|
-
*/
|
|
87218
|
-
|
|
87219
|
-
|
|
87220
|
-
|
|
87221
|
-
|
|
87222
|
-
|
|
87223
|
-
|
|
87224
|
-
|
|
87225
|
-
|
|
87226
|
-
|
|
87227
|
-
|
|
87228
|
-
/**
|
|
87229
|
-
*
|
|
87230
|
-
|
|
87231
|
-
|
|
87232
|
-
|
|
87233
|
-
|
|
87234
|
-
*
|
|
87235
|
-
|
|
87236
|
-
|
|
87237
|
-
|
|
87238
|
-
|
|
87239
|
-
|
|
87240
|
-
|
|
87241
|
-
|
|
87242
|
-
|
|
87243
|
-
|
|
87244
|
-
|
|
87245
|
-
|
|
87246
|
-
|
|
87247
|
-
|
|
87248
|
-
|
|
87249
|
-
|
|
87250
|
-
|
|
87251
|
-
|
|
87252
|
-
|
|
87253
|
-
|
|
87254
|
-
|
|
87255
|
-
|
|
87256
|
-
|
|
87257
|
-
|
|
87258
|
-
|
|
87259
|
-
|
|
87260
|
-
|
|
87261
|
-
|
|
87262
|
-
|
|
87263
|
-
|
|
87264
|
-
|
|
87265
|
-
|
|
87266
|
-
|
|
87267
|
-
|
|
87268
|
-
|
|
87269
|
-
|
|
87270
|
-
|
|
87271
|
-
|
|
87272
|
-
|
|
87273
|
-
|
|
87274
|
-
|
|
87275
|
-
|
|
87276
|
-
|
|
87277
|
-
|
|
87278
|
-
|
|
87279
|
-
|
|
87280
|
-
|
|
87281
|
-
|
|
87282
|
-
|
|
88126
|
+
* ADR-205: which browser the agent drives. {byob: byb_…} names one of your organization's paired browsers (browser.byob.browsers.list), which the agent then drives through connect() instead of a cloud browser; null or absent is the cloud browser. The browser must belong to your organization (otherwise 400) and must grant this agent before a session can open it. Omit on update to keep it, send an object to replace it, or null to go back to the cloud browser. /agent/v1 only.
|
|
88127
|
+
*/
|
|
88128
|
+
browser?: {
|
|
88129
|
+
/**
|
|
88130
|
+
* A paired browser's id (byb_ and 26 lowercase hex characters), from browser.byob.browsers.list.
|
|
88131
|
+
*/
|
|
88132
|
+
byob: string;
|
|
88133
|
+
} | null;
|
|
88134
|
+
/**
|
|
88135
|
+
* Optional tool preset. minimal enables read, glob and grep; data-editor also enables write and edit; full uses the default toolset with always_allow. Explicit tools override matching preset entries. codemode requires bash and is absent from data-editor.
|
|
88136
|
+
*/
|
|
88137
|
+
preset?: 'minimal' | 'data-editor' | 'full';
|
|
88138
|
+
/**
|
|
88139
|
+
* Inline custom output styles, including for agents without a computer. Omit to keep the saved list; null or [] clears it. Same-name precedence is inline, project files, personal files, then plugins. Selection is settings.outputStyle; styles apply to main conversations and are frozen per session.
|
|
88140
|
+
*/
|
|
88141
|
+
output_styles?: Array<{
|
|
88142
|
+
/**
|
|
88143
|
+
* Nonblank, case-sensitive style name, unique within this list. It can override a same-name file or built-in style.
|
|
88144
|
+
*/
|
|
88145
|
+
name: string;
|
|
88146
|
+
/**
|
|
88147
|
+
* Optional description of when to use this style.
|
|
88148
|
+
*/
|
|
88149
|
+
description?: string;
|
|
88150
|
+
/**
|
|
88151
|
+
* Style instructions added after platform guidance and before owner instructions. Empty content adds no style instructions.
|
|
88152
|
+
*/
|
|
88153
|
+
prompt: string;
|
|
88154
|
+
/**
|
|
88155
|
+
* Saved for file-format compatibility; currently has no effect because Praxis has no separate coding-instruction block.
|
|
88156
|
+
*/
|
|
88157
|
+
keep_coding_instructions?: boolean;
|
|
88158
|
+
}> | null;
|
|
88159
|
+
};
|
|
88160
|
+
path: {
|
|
88161
|
+
/**
|
|
88162
|
+
* Agent id, as returned by agents.create or agents.list (for a session filter, the agent the session was created with). Not the agent name. Also accepts an 8-character identity number (0–9, A–Z); malformed, absent and foreign references return 404, and response ids always use agent_….
|
|
88163
|
+
*/
|
|
88164
|
+
agent_id: string;
|
|
88165
|
+
};
|
|
88166
|
+
query?: never;
|
|
88167
|
+
url: '/agent/v1/agents/{agent_id}';
|
|
88168
|
+
};
|
|
88169
|
+
export type AgentsUpdateErrors = {
|
|
88170
|
+
/**
|
|
88171
|
+
* The body failed validation and the message names the field (same rules as agents.create, including tools: null).
|
|
88172
|
+
*/
|
|
88173
|
+
400: AgentError;
|
|
88174
|
+
/**
|
|
88175
|
+
* UNAUTHENTICATED (or INVALID_API_KEY, API_KEY_DISABLED, API_KEY_EXPIRED, INVALID_API_TOKEN, API_TOKEN_EXPIRED, API_TOKEN_REVOKED): the API key is missing, invalid or revoked. Send a valid key as X-API-Key or as a Bearer token.
|
|
88176
|
+
*/
|
|
88177
|
+
401: AgentError;
|
|
88178
|
+
/**
|
|
88179
|
+
* 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.
|
|
88180
|
+
*/
|
|
88181
|
+
403: AgentError;
|
|
88182
|
+
/**
|
|
88183
|
+
* AGENT_NOT_FOUND: the id does not exist in your organization, or is malformed. Take ids from agents.list or agents.create.
|
|
88184
|
+
*/
|
|
88185
|
+
404: AgentError;
|
|
88186
|
+
/**
|
|
88187
|
+
* AGENT_ARCHIVED: unarchive it first. AGENT_VERSION_CONFLICT: version is not the agent's latest (older or not yet existing); error.current_version carries the latest, resend with it. A newer version saved with apply false is waiting: apply it or save over it.
|
|
88188
|
+
*/
|
|
88189
|
+
409: AgentError;
|
|
88190
|
+
};
|
|
88191
|
+
export type AgentsUpdateError = AgentsUpdateErrors[keyof AgentsUpdateErrors];
|
|
88192
|
+
export type AgentsUpdateResponses = {
|
|
88193
|
+
/**
|
|
88194
|
+
* Successful response
|
|
88195
|
+
*/
|
|
88196
|
+
200: {
|
|
88197
|
+
/**
|
|
88198
|
+
* Agent id (agent_...). Pass it as agent when creating a session and as agent_id in agent calls.
|
|
88199
|
+
*/
|
|
88200
|
+
id: string;
|
|
88201
|
+
/**
|
|
88202
|
+
* A timestamp in RFC 3339 format
|
|
88203
|
+
*/
|
|
88204
|
+
archived_at: null | string;
|
|
88205
|
+
/**
|
|
88206
|
+
* A timestamp in RFC 3339 format
|
|
88207
|
+
*/
|
|
88208
|
+
created_at: string;
|
|
88209
|
+
/**
|
|
88210
|
+
* Free-text description of what the agent is for; null when none was set.
|
|
88211
|
+
*/
|
|
88212
|
+
description: null | string;
|
|
88213
|
+
/**
|
|
88214
|
+
* Praxis extension: HTTP, SSE or trusted stdio MCP servers paired with mcp_toolset entries and saved with the agent version.
|
|
88215
|
+
*/
|
|
88216
|
+
mcp_servers: Array<AgentManaged36>;
|
|
88217
|
+
metadata: AgentManaged37;
|
|
88218
|
+
/**
|
|
88219
|
+
* Model identifier and configuration.
|
|
88220
|
+
*/
|
|
88221
|
+
model?: {
|
|
88222
|
+
/**
|
|
88223
|
+
* A model id from the Praxis model catalog (`praxis.model.models.list`). Unlike Anthropic, Claude model ids other than those in the catalog are rejected.
|
|
88224
|
+
*/
|
|
88225
|
+
id: string;
|
|
88226
|
+
/**
|
|
88227
|
+
* How hard Claude works on each turn. Sets `output_config.effort` on every
|
|
88228
|
+
* Messages call the session makes.
|
|
88229
|
+
*/
|
|
88230
|
+
effort?: AgentManaged2 | AgentManaged3 | AgentManaged4 | AgentManaged5 | AgentManaged6;
|
|
88231
|
+
/**
|
|
88232
|
+
* Geographic region for model inference. When unset, requests fall through to the
|
|
88233
|
+
* workspace's default_inference_geo.
|
|
88234
|
+
*/
|
|
88235
|
+
inference_geo?: string;
|
|
88236
|
+
/**
|
|
88237
|
+
* Inference speed mode. `fast` provides significantly faster output token
|
|
88238
|
+
* generation at premium pricing. Not all models support `fast`; invalid
|
|
88239
|
+
* combinations are rejected at create time.
|
|
88240
|
+
*/
|
|
88241
|
+
speed?: 'standard' | 'fast';
|
|
88242
|
+
/**
|
|
88243
|
+
* Platform model settings: reasoning (default thinking level) and max_output_tokens (output cap). Other model controls return 400.
|
|
88244
|
+
*/
|
|
88245
|
+
settings?: {
|
|
88246
|
+
/**
|
|
88247
|
+
* Default thinking effort for sessions without an explicit selection. Unsupported defaults fall back to the selected model default.
|
|
88248
|
+
*/
|
|
88249
|
+
reasoning?: 'low' | 'medium' | 'high' | 'xhigh' | 'max' | 'none';
|
|
88250
|
+
/**
|
|
88251
|
+
* Output cap for one model request, thinking included; the counterpart of Claude Code's CLAUDE_CODE_MAX_OUTPUT_TOKENS. When unset, every request uses the output limit the model declares. When set, the runtime clamps it to the model's limit.
|
|
88252
|
+
*/
|
|
88253
|
+
max_output_tokens?: number;
|
|
88254
|
+
};
|
|
88255
|
+
};
|
|
88256
|
+
/**
|
|
88257
|
+
* Coordinator roster. A bare string agent id is equivalent to {type: "agent", id}; omitting its version pins the referenced agent's current saved version when this roster is saved. {type: "self"} refers to this agent. Specify a concrete version to pin it explicitly.
|
|
88258
|
+
*/
|
|
88259
|
+
multiagent?: null | AgentManaged39;
|
|
88260
|
+
/**
|
|
88261
|
+
* Display name of the agent, as set on create or update. It is a label, not a unique key.
|
|
88262
|
+
*/
|
|
88263
|
+
name: string;
|
|
88264
|
+
/**
|
|
88265
|
+
* Custom skills attached to the agent, each {type: "custom", skill_id, version?}: skill_id comes from skills.create or skills.list, at most 20 skills, no repeated skill_id. Omit version, or send "latest", to use the skill's newest version at the moment a session starts; a pinned version stays fixed. type anthropic returns 400: upload the skill and attach it as custom. On update, omit the field to keep the list, send an array to replace it, or send [] or null to clear it.
|
|
88266
|
+
*/
|
|
88267
|
+
skills: Array<AgentManaged42 | AgentManaged43>;
|
|
88268
|
+
/**
|
|
88269
|
+
* System prompt given to the model at the start of every session of this agent; null when none was set.
|
|
88270
|
+
*/
|
|
88271
|
+
system: null | string;
|
|
88272
|
+
/**
|
|
88273
|
+
* Tools of the agent: one agent_toolset_20260401 entry for the native tools (all resolved settings are returned, ready to send back on update), plus mcp_toolset entries and custom tool definitions. Custom calls emit agent.custom_tool_use and wait for user.custom_tool_result. Keep bash enabled to use codemode, skill and subagents.
|
|
88274
|
+
*/
|
|
88275
|
+
tools: Array<AgentManaged44 | AgentManaged54 | AgentManaged57>;
|
|
88276
|
+
/**
|
|
88277
|
+
* Always `agent`. An agent definition.
|
|
88278
|
+
*/
|
|
88279
|
+
type: 'agent';
|
|
88280
|
+
/**
|
|
88281
|
+
* A timestamp in RFC 3339 format
|
|
88282
|
+
*/
|
|
88283
|
+
updated_at: string;
|
|
88284
|
+
/**
|
|
88285
|
+
* Version of this returned configuration. Default retrieve returns the effective version; an explicit version query or a version-history item returns that saved version.
|
|
88286
|
+
*/
|
|
88287
|
+
version: number;
|
|
88288
|
+
/**
|
|
88289
|
+
* Newest saved version number, including an unapplied save. Returned by default retrieve, update and apply; use it for optimistic concurrency when updating.
|
|
88290
|
+
*/
|
|
88291
|
+
latest_version?: number;
|
|
88292
|
+
/**
|
|
88293
|
+
* Agent-level currently effective version used by new sessions and newly issued embed tokens. This same value appears on every history item; it is not that item's version. Saving with apply false leaves it unchanged. Existing sessions and tokens retain their version.
|
|
88294
|
+
*/
|
|
88295
|
+
active_version: number;
|
|
88296
|
+
/**
|
|
88297
|
+
* Authenticated author who created this immutable version; null for historical versions without attribution. user identifies the signed-in user; api_key identifies the calling key. Never supplied by the request body.
|
|
88298
|
+
*/
|
|
88299
|
+
created_by: {
|
|
88300
|
+
/**
|
|
88301
|
+
* user denotes a version saved by a signed-in user.
|
|
88302
|
+
*/
|
|
88303
|
+
type: 'user';
|
|
88304
|
+
/**
|
|
88305
|
+
* Authenticated user identifier at the time this version was saved.
|
|
88306
|
+
*/
|
|
88307
|
+
id: string;
|
|
88308
|
+
/**
|
|
88309
|
+
* User display name at save time, omitted when unavailable.
|
|
88310
|
+
*/
|
|
88311
|
+
name?: string;
|
|
88312
|
+
} | {
|
|
88313
|
+
/**
|
|
88314
|
+
* api_key denotes a version saved through an API key.
|
|
88315
|
+
*/
|
|
88316
|
+
type: 'api_key';
|
|
88317
|
+
/**
|
|
88318
|
+
* Authenticated API key identifier, never the key secret.
|
|
88319
|
+
*/
|
|
88320
|
+
id: string;
|
|
88321
|
+
} | null;
|
|
88322
|
+
/**
|
|
88323
|
+
* Change explanation supplied as version_note when this version was saved; null when omitted or for historical versions. Immutable after creation.
|
|
88324
|
+
*/
|
|
88325
|
+
note: string | null;
|
|
88326
|
+
/**
|
|
88327
|
+
* How many of this agent's live deployments are not on its active version: pinned to a version other than active_version, not archived, counted once each. It counts both a pin older than the active version and a pin newer than it that was saved without being applied, so read it as "not on the active version", never as "older than". Following deployments are never counted (they run the active version by definition). Null when the deployment side could not be read. Returned by update and apply too, so those answers equal the read that follows them.
|
|
88328
|
+
*/
|
|
88329
|
+
deployments_behind: number | null;
|
|
88330
|
+
/**
|
|
88331
|
+
* Platform resources and services this service agent's codemode may reach, as one list of typed bindings. Only kind=service accepts a nonempty list; general agents return 400. There are two kinds. A resource binding names one resource with id and access: database (id db_..., read_only or read_write), vector_store (id vs_..., read_only or read_write), file (id file- plus 24 letters or digits, as the File API returns it; read_only), media_library (any id without ':' or whitespace, read_only or read_write), model (a model catalog id, invoke), workflow and script (id <namespace>/<name>, invoke). A resource binding may also carry customer_access (read_only by default): it caps what a terminal customer's session (a visitor, ADR-163 §3) may do with that one resource, at the intersection of customer_access and the binding's own access — invoke (call) and read_write (change) are different axes, so only a matching pair keeps its access and any other pair falls to read_only. Its value must be one the type can grant: read_only or read_write for database, vector_store and media_library, read_only for file, and read_only or invoke for model, workflow and script. A member's session ignores it, so raising it never widens what members may do. A visitor's session never receives a whole-service binding (the default ticket service included) or an agent resource. A service binding opens one service, or one sub-tree of one, and carries only enabled: search, browser, ticket, crm, canvas, cut, studio, feedback or workspace. workspace opens development units — list one, read one, start, stop, exec inside one, fetch, push, connect, and open a unit for a change — and opens neither publishing nor any production operation. The ticket service is bound by default: a service agent whose list has no ticket entry may call the ticket API, and {"type": "ticket", "enabled": false} removes it. Every other service stays closed until it is bound. An open service allows every public method of that service. At most 20 bindings per type, no repeated type and id, and each service type at most once. A session is authorized by the agent version it runs: newly added bindings apply only to new sessions, and a version saved with apply=false changes no access until it is applied. Applying a version that disables, removes or downgrades a binding revokes it immediately in running sessions on older versions. A resource that is not bound returns 404, a service that is not opened returns 403, and a write to a resource bound read_only returns 403 BINDING_READ_ONLY. Unknown types, fields on the wrong kind (id, access, customer_access or instructions on a service binding), wrong access and malformed ids return 400. The former databases, vector_stores and files fields are removed and return 400. Omit on create for the default: the ticket service only. Saving checks added or changed database, vector_store, media_library and file bindings in the organization: unknown or deleted ids return 400. If an owner is unavailable or takes more than 3 seconds, saving succeeds with verified=false for the affected bindings. Unchanged bindings keep their previous verification result and are not rechecked. workflow and script ids are not verified at save time.
|
|
88332
|
+
*/
|
|
88333
|
+
bindings: Array<{
|
|
88334
|
+
/**
|
|
88335
|
+
* Resource type. Decides the id format and the allowed access.
|
|
88336
|
+
*/
|
|
88337
|
+
type: 'database' | 'vector_store' | 'file' | 'media_library' | 'model' | 'workflow' | 'script' | 'repository' | 'browser_context';
|
|
88338
|
+
/**
|
|
88339
|
+
* Resource id, never its name. database db_..., vector_store vs_..., file file- plus 24 letters or digits; media_library and model ids must not contain ':' or whitespace; workflow and script use <namespace>/<name> with no '/', '@', ':' or whitespace inside a part; repository pkg_..., browser_context bsc_....
|
|
88340
|
+
*/
|
|
88341
|
+
id: string;
|
|
88342
|
+
/**
|
|
88343
|
+
* database, vector_store and media_library accept read_only or read_write; file accepts read_only; model, workflow and script accept invoke; repository and browser_context accept read_only or read_write. Any other combination returns 400.
|
|
88344
|
+
*/
|
|
88345
|
+
access: 'read_only' | 'read_write' | 'invoke';
|
|
88346
|
+
/**
|
|
88347
|
+
* What a visitor's session (a terminal customer, ADR-163 §3) may do with this resource: read_only, read_write or invoke. Its scope is the intersection of this value and the binding's own access, so invoke needs both to be invoke. Limited to the accesses the type can grant: read_only or read_write for database, vector_store and media_library, read_only for file, read_only or invoke for model, workflow and script. Defaults to read_only. A member's session ignores it entirely; a visitor's session never receives a whole-service binding or an agent resource.
|
|
88348
|
+
*/
|
|
88349
|
+
customer_access?: 'read_only' | 'read_write' | 'invoke';
|
|
88350
|
+
/**
|
|
88351
|
+
* Optional guidance for using this resource, up to 4096 characters; does not expand access.
|
|
88352
|
+
*/
|
|
88353
|
+
instructions?: string;
|
|
88354
|
+
/**
|
|
88355
|
+
* Save-time verification result. false means the resource owner was unavailable; saving still succeeded. Unchanged bindings retain their previous result. true is returned for other bindings, including workflow and script ids which are not verified at save time. Client values are ignored.
|
|
88356
|
+
*/
|
|
88357
|
+
readonly verified?: boolean;
|
|
88358
|
+
/**
|
|
88359
|
+
* Whether this binding grants access. Defaults to true; false immediately disables it for running sessions.
|
|
88360
|
+
*/
|
|
88361
|
+
enabled?: boolean;
|
|
88362
|
+
} | {
|
|
88363
|
+
/**
|
|
88364
|
+
* Service type. Opens one service, or one sub-tree of one, to codemode; there is no per-resource id.
|
|
88365
|
+
*/
|
|
88366
|
+
type: 'search' | 'browser' | 'ticket' | 'crm' | 'canvas' | 'cut' | 'studio' | 'feedback' | 'workspace';
|
|
88367
|
+
/**
|
|
88368
|
+
* Save-time verification result. false means the resource owner was unavailable; saving still succeeded. Unchanged bindings retain their previous result. true is returned for other bindings, including workflow and script ids which are not verified at save time. Client values are ignored.
|
|
88369
|
+
*/
|
|
88370
|
+
readonly verified?: boolean;
|
|
88371
|
+
/**
|
|
88372
|
+
* Whether the service is open. Defaults to true; false immediately closes it for running sessions.
|
|
88373
|
+
*/
|
|
88374
|
+
enabled?: boolean;
|
|
88375
|
+
}>;
|
|
88376
|
+
/**
|
|
88377
|
+
* Immutable agent kind. general uses a durable computer and acts for its owner; service uses a clean environment per session; assume is driven over MCP with a durable computer and no conversation model. Historical agents infer kind from their computer binding and read as general.
|
|
88378
|
+
*/
|
|
88379
|
+
kind: 'general' | 'service' | 'assume';
|
|
88380
|
+
/**
|
|
88381
|
+
* General agents only: the agent's computers, configured like its models. default is the template its Computer starts on; allowed lists the computers resize may switch to, and a resize to anything else is refused with COMPUTER_NOT_CONFIGURED. Omit on create for {default: base, allowed: Small base-small, Base base, Large base-large}; on update, omit to keep it, send an object to replace it as a whole. Service and assume agents return 400 computers is for general agents; service agents use environment_id. /agent/v1 only.
|
|
88382
|
+
*/
|
|
88383
|
+
computers?: {
|
|
88384
|
+
/**
|
|
88385
|
+
* Template of the computer the agent's Computer starts on; must be the template of one allowed entry.
|
|
88386
|
+
*/
|
|
88387
|
+
default: string;
|
|
88388
|
+
/**
|
|
88389
|
+
* Computers the agent may switch to with the computer tool's resize, in the order they are listed.
|
|
88390
|
+
*/
|
|
88391
|
+
allowed: Array<{
|
|
88392
|
+
/**
|
|
88393
|
+
* Sandbox template name from sandbox templates.list, such as base, base-large or data. light returns 400. A template appears once.
|
|
88394
|
+
*/
|
|
88395
|
+
template: string;
|
|
88396
|
+
/**
|
|
88397
|
+
* Display name people and the model use, such as Base or Large; unique within the list ignoring case.
|
|
88398
|
+
*/
|
|
88399
|
+
name: string;
|
|
88400
|
+
}>;
|
|
88401
|
+
};
|
|
88402
|
+
/**
|
|
88403
|
+
* ADR-205: which browser the agent drives. {byob: byb_…} names one of your organization's paired browsers (browser.byob.browsers.list), which the agent then drives through connect() instead of a cloud browser; null or absent is the cloud browser. The browser must belong to your organization (otherwise 400) and must grant this agent before a session can open it. Omit on update to keep it, send an object to replace it, or null to go back to the cloud browser. /agent/v1 only.
|
|
87283
88404
|
*/
|
|
87284
|
-
|
|
87285
|
-
/**
|
|
87286
|
-
* Newest saved version number, including an unapplied save. Returned by default retrieve, update and apply; use it for optimistic concurrency when updating.
|
|
87287
|
-
*/
|
|
87288
|
-
latest_version?: number;
|
|
87289
|
-
/**
|
|
87290
|
-
* Agent-level currently effective version used by new sessions and newly issued embed tokens. This same value appears on every history item; it is not that item's version. Saving with apply false leaves it unchanged. Existing sessions and tokens retain their version.
|
|
87291
|
-
*/
|
|
87292
|
-
active_version: number;
|
|
87293
|
-
/**
|
|
87294
|
-
* Authenticated author who created this immutable version; null for historical versions without attribution. user identifies the signed-in user; api_key identifies the calling key. Never supplied by the request body.
|
|
87295
|
-
*/
|
|
87296
|
-
created_by: {
|
|
88405
|
+
browser?: {
|
|
87297
88406
|
/**
|
|
87298
|
-
*
|
|
88407
|
+
* A paired browser's id (byb_ and 26 lowercase hex characters), from browser.byob.browsers.list.
|
|
87299
88408
|
*/
|
|
87300
|
-
|
|
87301
|
-
/**
|
|
87302
|
-
* Authenticated user identifier at the time this version was saved.
|
|
87303
|
-
*/
|
|
87304
|
-
id: string;
|
|
87305
|
-
/**
|
|
87306
|
-
* User display name at save time, omitted when unavailable.
|
|
87307
|
-
*/
|
|
87308
|
-
name?: string;
|
|
87309
|
-
} | {
|
|
87310
|
-
/**
|
|
87311
|
-
* api_key denotes a version saved through an API key.
|
|
87312
|
-
*/
|
|
87313
|
-
type: 'api_key';
|
|
87314
|
-
/**
|
|
87315
|
-
* Authenticated API key identifier, never the key secret.
|
|
87316
|
-
*/
|
|
87317
|
-
id: string;
|
|
88409
|
+
byob: string;
|
|
87318
88410
|
} | null;
|
|
87319
|
-
/**
|
|
87320
|
-
* Change explanation supplied as version_note when this version was saved; null when omitted or for historical versions. Immutable after creation.
|
|
87321
|
-
*/
|
|
87322
|
-
note: string | null;
|
|
87323
|
-
/**
|
|
87324
|
-
* How many of this agent's live deployments are not on its active version: pinned to a version other than active_version, not archived, counted once each. It counts both a pin older than the active version and a pin newer than it that was saved without being applied, so read it as "not on the active version", never as "older than". Following deployments are never counted (they run the active version by definition). Null when the deployment side could not be read. Returned by update and apply too, so those answers equal the read that follows them.
|
|
87325
|
-
*/
|
|
87326
|
-
deployments_behind: number | null;
|
|
87327
|
-
/**
|
|
87328
|
-
* Platform resources and services this service agent's codemode may reach, as one list of typed bindings. Only kind=service accepts a nonempty list; general agents return 400. There are two kinds. A resource binding names one resource with id and access: database (id db_..., read_only or read_write), vector_store (id vs_..., read_only or read_write), file (id file- plus 24 letters or digits, as the File API returns it; read_only), media_library (any id without ':' or whitespace, read_only or read_write), model (a model catalog id, invoke), workflow and script (id <namespace>/<name>, invoke). A resource binding may also carry customer_access (read_only by default): it caps what a terminal customer's session (a visitor, ADR-163 §3) may do with that one resource, at the intersection of customer_access and the binding's own access — invoke (call) and read_write (change) are different axes, so only a matching pair keeps its access and any other pair falls to read_only. Its value must be one the type can grant: read_only or read_write for database, vector_store and media_library, read_only for file, and read_only or invoke for model, workflow and script. A member's session ignores it, so raising it never widens what members may do. A visitor's session never receives a whole-service binding (the default ticket service included) or an agent resource. A service binding opens one service, or one sub-tree of one, and carries only enabled: search, browser, ticket, crm, canvas, cut, studio, feedback or workspace. workspace opens development units — list one, read one, start, stop, exec inside one, fetch, push, connect, and open a unit for a change — and opens neither publishing nor any production operation. The ticket service is bound by default: a service agent whose list has no ticket entry may call the ticket API, and {"type": "ticket", "enabled": false} removes it. Every other service stays closed until it is bound. An open service allows every public method of that service. At most 20 bindings per type, no repeated type and id, and each service type at most once. A session is authorized by the agent version it runs: newly added bindings apply only to new sessions, and a version saved with apply=false changes no access until it is applied. Applying a version that disables, removes or downgrades a binding revokes it immediately in running sessions on older versions. A resource that is not bound returns 404, a service that is not opened returns 403, and a write to a resource bound read_only returns 403 BINDING_READ_ONLY. Unknown types, fields on the wrong kind (id, access, customer_access or instructions on a service binding), wrong access and malformed ids return 400. The former databases, vector_stores and files fields are removed and return 400. Omit on create for the default: the ticket service only. Saving checks added or changed database, vector_store, media_library and file bindings in the organization: unknown or deleted ids return 400. If an owner is unavailable or takes more than 3 seconds, saving succeeds with verified=false for the affected bindings. Unchanged bindings keep their previous verification result and are not rechecked. workflow and script ids are not verified at save time.
|
|
87329
|
-
*/
|
|
87330
|
-
bindings: Array<{
|
|
87331
|
-
/**
|
|
87332
|
-
* Resource type. Decides the id format and the allowed access.
|
|
87333
|
-
*/
|
|
87334
|
-
type: 'database' | 'vector_store' | 'file' | 'media_library' | 'model' | 'workflow' | 'script' | 'repository' | 'browser_context';
|
|
87335
|
-
/**
|
|
87336
|
-
* Resource id, never its name. database db_..., vector_store vs_..., file file- plus 24 letters or digits; media_library and model ids must not contain ':' or whitespace; workflow and script use <namespace>/<name> with no '/', '@', ':' or whitespace inside a part; repository pkg_..., browser_context bsc_....
|
|
87337
|
-
*/
|
|
87338
|
-
id: string;
|
|
87339
|
-
/**
|
|
87340
|
-
* database, vector_store and media_library accept read_only or read_write; file accepts read_only; model, workflow and script accept invoke; repository and browser_context accept read_only or read_write. Any other combination returns 400.
|
|
87341
|
-
*/
|
|
87342
|
-
access: 'read_only' | 'read_write' | 'invoke';
|
|
87343
|
-
/**
|
|
87344
|
-
* What a visitor's session (a terminal customer, ADR-163 §3) may do with this resource: read_only, read_write or invoke. Its scope is the intersection of this value and the binding's own access, so invoke needs both to be invoke. Limited to the accesses the type can grant: read_only or read_write for database, vector_store and media_library, read_only for file, read_only or invoke for model, workflow and script. Defaults to read_only. A member's session ignores it entirely; a visitor's session never receives a whole-service binding or an agent resource.
|
|
87345
|
-
*/
|
|
87346
|
-
customer_access?: 'read_only' | 'read_write' | 'invoke';
|
|
87347
|
-
/**
|
|
87348
|
-
* Optional guidance for using this resource, up to 4096 characters; does not expand access.
|
|
87349
|
-
*/
|
|
87350
|
-
instructions?: string;
|
|
87351
|
-
/**
|
|
87352
|
-
* Save-time verification result. false means the resource owner was unavailable; saving still succeeded. Unchanged bindings retain their previous result. true is returned for other bindings, including workflow and script ids which are not verified at save time. Client values are ignored.
|
|
87353
|
-
*/
|
|
87354
|
-
readonly verified?: boolean;
|
|
87355
|
-
/**
|
|
87356
|
-
* Whether this binding grants access. Defaults to true; false immediately disables it for running sessions.
|
|
87357
|
-
*/
|
|
87358
|
-
enabled?: boolean;
|
|
87359
|
-
} | {
|
|
87360
|
-
/**
|
|
87361
|
-
* Service type. Opens one service, or one sub-tree of one, to codemode; there is no per-resource id.
|
|
87362
|
-
*/
|
|
87363
|
-
type: 'search' | 'browser' | 'ticket' | 'crm' | 'canvas' | 'cut' | 'studio' | 'feedback' | 'workspace';
|
|
87364
|
-
/**
|
|
87365
|
-
* Save-time verification result. false means the resource owner was unavailable; saving still succeeded. Unchanged bindings retain their previous result. true is returned for other bindings, including workflow and script ids which are not verified at save time. Client values are ignored.
|
|
87366
|
-
*/
|
|
87367
|
-
readonly verified?: boolean;
|
|
87368
|
-
/**
|
|
87369
|
-
* Whether the service is open. Defaults to true; false immediately closes it for running sessions.
|
|
87370
|
-
*/
|
|
87371
|
-
enabled?: boolean;
|
|
87372
|
-
}>;
|
|
87373
|
-
/**
|
|
87374
|
-
* Immutable agent kind. general uses a durable computer and acts for its owner; service uses a clean environment per session; assume is driven over MCP with a durable computer and no conversation model. Historical agents infer kind from their computer binding and read as general.
|
|
87375
|
-
*/
|
|
87376
|
-
kind: 'general' | 'service' | 'assume';
|
|
87377
|
-
/**
|
|
87378
|
-
* General agents only: the agent's computers, configured like its models. default is the template its Computer starts on; allowed lists the computers resize may switch to, and a resize to anything else is refused with COMPUTER_NOT_CONFIGURED. Omit on create for {default: base, allowed: Small base-small, Base base, Large base-large}; on update, omit to keep it, send an object to replace it as a whole. Service and assume agents return 400 computers is for general agents; service agents use environment_id. /agent/v1 only.
|
|
87379
|
-
*/
|
|
87380
|
-
computers?: {
|
|
87381
|
-
/**
|
|
87382
|
-
* Template of the computer the agent's Computer starts on; must be the template of one allowed entry.
|
|
87383
|
-
*/
|
|
87384
|
-
default: string;
|
|
87385
|
-
/**
|
|
87386
|
-
* Computers the agent may switch to with the computer tool's resize, in the order they are listed.
|
|
87387
|
-
*/
|
|
87388
|
-
allowed: Array<{
|
|
87389
|
-
/**
|
|
87390
|
-
* Sandbox template name from sandbox templates.list, such as base, base-large or data. light returns 400. A template appears once.
|
|
87391
|
-
*/
|
|
87392
|
-
template: string;
|
|
87393
|
-
/**
|
|
87394
|
-
* Display name people and the model use, such as Base or Large; unique within the list ignoring case.
|
|
87395
|
-
*/
|
|
87396
|
-
name: string;
|
|
87397
|
-
}>;
|
|
87398
|
-
};
|
|
87399
88411
|
/**
|
|
87400
88412
|
* Praxis extension: MA only has session-scoped temporary containers and memory_stores, not durable browsable computers. computer_id selects a tenant-owned active computer. Session selection overrides the agent default; a sandbox environment_id and computer_id cannot be combined. Omitted when no computer is selected.
|
|
87401
88413
|
*/
|
|
@@ -87781,7 +88793,7 @@ export type AgentsUpdateResponses = {
|
|
|
87781
88793
|
*/
|
|
87782
88794
|
environment_id?: string | null;
|
|
87783
88795
|
/**
|
|
87784
|
-
* Default vaults of this service or assume agent version: the vault_ids new
|
|
88796
|
+
* Default vaults of this service or assume agent version: the vault_ids every new session carries; a session's own vault_ids are added to them. Present for service and assume agents. Follows the version like other configuration: a version saved with apply=false does not change the vaults in effect. Versions saved before this field existed read as []. /agent/v1 only.
|
|
87785
88797
|
*/
|
|
87786
88798
|
vault_ids?: Array<string>;
|
|
87787
88799
|
/**
|
|
@@ -88407,7 +89419,7 @@ export type AgentsArchiveResponses = {
|
|
|
88407
89419
|
*/
|
|
88408
89420
|
environment_id?: string | null;
|
|
88409
89421
|
/**
|
|
88410
|
-
* Default vaults of this service or assume agent version: the vault_ids new
|
|
89422
|
+
* Default vaults of this service or assume agent version: the vault_ids every new session carries; a session's own vault_ids are added to them. Present for service and assume agents. Follows the version like other configuration: a version saved with apply=false does not change the vaults in effect. Versions saved before this field existed read as []. /agent/v1 only.
|
|
88411
89423
|
*/
|
|
88412
89424
|
vault_ids?: Array<string>;
|
|
88413
89425
|
/**
|
|
@@ -88684,6 +89696,15 @@ export type AgentsVersionsListResponses = {
|
|
|
88684
89696
|
name: string;
|
|
88685
89697
|
}>;
|
|
88686
89698
|
};
|
|
89699
|
+
/**
|
|
89700
|
+
* ADR-205: which browser the agent drives. {byob: byb_…} names one of your organization's paired browsers (browser.byob.browsers.list), which the agent then drives through connect() instead of a cloud browser; null or absent is the cloud browser. The browser must belong to your organization (otherwise 400) and must grant this agent before a session can open it. Omit on update to keep it, send an object to replace it, or null to go back to the cloud browser. /agent/v1 only.
|
|
89701
|
+
*/
|
|
89702
|
+
browser?: {
|
|
89703
|
+
/**
|
|
89704
|
+
* A paired browser's id (byb_ and 26 lowercase hex characters), from browser.byob.browsers.list.
|
|
89705
|
+
*/
|
|
89706
|
+
byob: string;
|
|
89707
|
+
} | null;
|
|
88687
89708
|
/**
|
|
88688
89709
|
* Praxis extension: MA only has session-scoped temporary containers and memory_stores, not durable browsable computers. computer_id selects a tenant-owned active computer. Session selection overrides the agent default; a sandbox environment_id and computer_id cannot be combined. Omitted when no computer is selected.
|
|
88689
89710
|
*/
|
|
@@ -89069,7 +90090,7 @@ export type AgentsVersionsListResponses = {
|
|
|
89069
90090
|
*/
|
|
89070
90091
|
environment_id?: string | null;
|
|
89071
90092
|
/**
|
|
89072
|
-
* Default vaults of this service or assume agent version: the vault_ids new
|
|
90093
|
+
* Default vaults of this service or assume agent version: the vault_ids every new session carries; a session's own vault_ids are added to them. Present for service and assume agents. Follows the version like other configuration: a version saved with apply=false does not change the vaults in effect. Versions saved before this field existed read as []. /agent/v1 only.
|
|
89073
90094
|
*/
|
|
89074
90095
|
vault_ids?: Array<string>;
|
|
89075
90096
|
/**
|
|
@@ -98929,7 +99950,7 @@ export type AutomationRunsListData = {
|
|
|
98929
99950
|
*/
|
|
98930
99951
|
channel?: Array<'console' | 'api' | 'internal' | 'run' | 'trigger'>;
|
|
98931
99952
|
/**
|
|
98932
|
-
* Root initiator type: user, api_key, agent or
|
|
99953
|
+
* Root initiator type: user, api_key, agent, trigger or application, inherited by child runs. run returns INPUT_INVALID; filter origin with channel=run or parent_run_id. Separate multiple values with commas to match any value.
|
|
98933
99954
|
*/
|
|
98934
99955
|
initiator_type?: Array<'user' | 'api_key' | 'agent' | 'trigger'>;
|
|
98935
99956
|
/**
|
|
@@ -113477,7 +114498,7 @@ export type DevopsUnitsPushErrors = {
|
|
|
113477
114498
|
*/
|
|
113478
114499
|
404: DevopsDevOpsError;
|
|
113479
114500
|
/**
|
|
113480
|
-
* HEAD_MOVED means the change's branch on the remote is no longer the expectedHead that was sent — someone pushed to it since — so nothing was pushed
|
|
114501
|
+
* HEAD_MOVED means the change's branch on the remote is no longer the expectedHead that was sent — someone pushed to it since — so nothing was pushed. The message says where the remote is ("remote is at <sha7> (<full sha>) on <ref>") and details.remoteHead carries the full sha: send it as expectedHead after reconciling your checkout. PUSH_REJECTED_BY_HOOK means the machine's git ran a pre-push hook (lefthook, for example) and the hook refused: details.detail holds the hook's output and details.exitCode git's exit code; fix what the hook names, commit, and push again. PUSH_REJECTED_NON_FAST_FORWARD means the remote branch has commits your checkout lacks; fetch, reconcile and push again. UNIT_INVALID_STATE means the unit is not available (no machine or no checkout yet, or another transition is in flight), so there is nothing to push; read the unit's phase and retry once it has settled.
|
|
113481
114502
|
*/
|
|
113482
114503
|
409: DevopsDevOpsError;
|
|
113483
114504
|
/**
|
|
@@ -121192,7 +122213,7 @@ export type GetSandboxV1SandboxesResponses = {
|
|
|
121192
122213
|
};
|
|
121193
122214
|
export type GetSandboxV1SandboxesResponse = GetSandboxV1SandboxesResponses[keyof GetSandboxV1SandboxesResponses];
|
|
121194
122215
|
export type PostSandboxV1SandboxesData = {
|
|
121195
|
-
body:
|
|
122216
|
+
body: SandboxNewSandboxV2Writable;
|
|
121196
122217
|
path?: never;
|
|
121197
122218
|
query?: never;
|
|
121198
122219
|
url: '/sandbox/v1/sandboxes';
|