@deepraxis/sdk 0.2.0-dev.0ea50e2 → 0.2.0-dev.142bee8
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 +42 -1
- package/dist/generated/index.d.ts +2 -2
- package/dist/generated/index.js +1 -1
- package/dist/generated/sdk.gen.d.ts +74 -14
- package/dist/generated/sdk.gen.js +164 -13
- package/dist/generated/types.gen.d.ts +2197 -401
- package/dist/helpers/browser-actions.d.ts +2 -0
- package/dist/helpers/browser-actions.js +5 -1
- package/dist/helpers/browser-connect-error.d.ts +7 -1
- package/dist/helpers/browser-connect-error.js +12 -1
- package/dist/helpers/browser-connect.d.ts +1 -1
- package/dist/helpers/browser-connect.js +16 -5
- package/dist/helpers/browser-decisions.d.ts +3 -0
- package/dist/helpers/browser-decisions.js +5 -0
- package/dist/helpers/browser-documentation.d.ts +1 -1
- package/dist/helpers/browser-documentation.js +3 -0
- package/dist/operations.generated.js +382 -23
- package/dist/resources.generated.d.ts +96 -0
- package/dist/resources.generated.js +26 -0
- package/package.json +1 -1
|
@@ -3407,6 +3407,40 @@ export type AgentSseEvent = ({
|
|
|
3407
3407
|
*/
|
|
3408
3408
|
session_thread_id?: string | null;
|
|
3409
3409
|
};
|
|
3410
|
+
} | {
|
|
3411
|
+
/**
|
|
3412
|
+
* Always `session.status_preparing`. SSE event name of this frame; its data is a session.status_preparing payload. A device session's local agent is starting; stage says how far it got.
|
|
3413
|
+
*/
|
|
3414
|
+
event?: 'session.status_preparing';
|
|
3415
|
+
/**
|
|
3416
|
+
* Praxis extension (#4737, own face only): a device session's local agent is starting. Only sessions that run on a person's own machine emit it.
|
|
3417
|
+
*/
|
|
3418
|
+
data?: {
|
|
3419
|
+
/**
|
|
3420
|
+
* Event id, unique within the session. Use it to refer to this event, for example in user.tool_confirmation or user.steer.
|
|
3421
|
+
*/
|
|
3422
|
+
id: string;
|
|
3423
|
+
/**
|
|
3424
|
+
* Always `session.status_preparing`. A device session's local agent is starting; stage says how far it got.
|
|
3425
|
+
*/
|
|
3426
|
+
type: 'session.status_preparing';
|
|
3427
|
+
/**
|
|
3428
|
+
* RFC 3339 time at which the server processed the event; null while a queued input has not started running.
|
|
3429
|
+
*/
|
|
3430
|
+
processed_at: string;
|
|
3431
|
+
/**
|
|
3432
|
+
* How far the start got.
|
|
3433
|
+
*/
|
|
3434
|
+
stage: 'launching' | 'loading' | 'ready';
|
|
3435
|
+
/**
|
|
3436
|
+
* Envelope field, not part of this event's own payload: the transcript message id of the row, added by the shared projection in apps/api/src/routes/managed-session-events.ts whenever the row carries one (#4480). No writer of this event stamps a message id today, so it is declared for the frame shape rather than produced here.
|
|
3437
|
+
*/
|
|
3438
|
+
message_id?: string;
|
|
3439
|
+
/**
|
|
3440
|
+
* Envelope field, not part of this event's own payload: the public sthr_ thread id of the row (null when the row has none), added by the shared projection in apps/api/src/routes/managed-session-events.ts whenever the row carries one (#4480). No writer of this event runs under a thread today, so it is declared for the frame shape rather than produced here.
|
|
3441
|
+
*/
|
|
3442
|
+
session_thread_id?: string | null;
|
|
3443
|
+
};
|
|
3410
3444
|
} | {
|
|
3411
3445
|
/**
|
|
3412
3446
|
* Always `event_start`. SSE event name of this frame; its data is a event_start payload. Preview that an event of the requested delta types has started.
|
|
@@ -3549,7 +3583,7 @@ export type AgentSseEvent = ({
|
|
|
3549
3583
|
/**
|
|
3550
3584
|
* Server-Sent Events event name of this frame.
|
|
3551
3585
|
*/
|
|
3552
|
-
event: 'system.message' | 'user.message' | 'user.interrupt' | 'agent.message' | 'agent.thinking' | 'session.status_running' | 'session.status_rescheduled' | 'session.status_idle' | 'session.status_terminated' | 'agent.thread_context_compacting' | 'agent.thread_context_compacted' | 'agent.thread_context_reset' | 'session.updated' | 'session.error' | 'session.usage' | 'span.model_request_start' | 'span.model_request_end' | 'agent.tool_use' | 'agent.tool_result' | 'agent.mcp_tool_use' | 'agent.mcp_tool_result' | 'user.tool_confirmation' | 'agent.custom_tool_use' | 'user.custom_tool_result' | 'session.thread_created' | 'session.thread_status_running' | 'session.thread_status_idle' | 'session.thread_status_rescheduled' | 'session.thread_status_terminated' | 'agent.thread_message_sent' | 'agent.thread_message_received' | 'user.withdraw' | 'user.steer' | 'system.notification' | 'system.notification_suppressed' | 'system.notification_recorded' | 'session.forked' | 'session.goal_changed' | 'session.goal_verification' | 'cognition.surfaced' | 'cognition.intention_woken' | 'agent.operation_approval_requested' | 'agent.operation_approval_decided' | 'session.prompt_configuration_mismatch' | 'session.prompt_rev_changed' | 'session.computer_tier' | 'agent.artifact_delivered' | 'agent.image_generation' | 'session.image_labeled' | 'session.image_set_planned' | 'session.project_attached' | 'session.project_detached' | 'event_start' | 'event_delta' | 'ping' | 'error';
|
|
3586
|
+
event: 'system.message' | 'user.message' | 'user.interrupt' | 'agent.message' | 'agent.thinking' | 'session.status_running' | 'session.status_rescheduled' | 'session.status_idle' | 'session.status_terminated' | 'agent.thread_context_compacting' | 'agent.thread_context_compacted' | 'agent.thread_context_reset' | 'session.updated' | 'session.error' | 'session.usage' | 'span.model_request_start' | 'span.model_request_end' | 'agent.tool_use' | 'agent.tool_result' | 'agent.mcp_tool_use' | 'agent.mcp_tool_result' | 'user.tool_confirmation' | 'agent.custom_tool_use' | 'user.custom_tool_result' | 'session.thread_created' | 'session.thread_status_running' | 'session.thread_status_idle' | 'session.thread_status_rescheduled' | 'session.thread_status_terminated' | 'agent.thread_message_sent' | 'agent.thread_message_received' | 'user.withdraw' | 'user.steer' | 'system.notification' | 'system.notification_suppressed' | 'system.notification_recorded' | 'session.forked' | 'session.goal_changed' | 'session.goal_verification' | 'cognition.surfaced' | 'cognition.intention_woken' | 'agent.operation_approval_requested' | 'agent.operation_approval_decided' | 'session.prompt_configuration_mismatch' | 'session.prompt_rev_changed' | 'session.computer_tier' | 'agent.artifact_delivered' | 'agent.image_generation' | 'session.image_labeled' | 'session.image_set_planned' | 'session.project_attached' | 'session.project_detached' | 'session.status_preparing' | 'event_start' | 'event_delta' | 'ping' | 'error';
|
|
3553
3587
|
data: AgentSseData;
|
|
3554
3588
|
};
|
|
3555
3589
|
/**
|
|
@@ -3575,7 +3609,7 @@ export type BrowserSessionCreateParams = {
|
|
|
3575
3609
|
*/
|
|
3576
3610
|
projectId?: string;
|
|
3577
3611
|
/**
|
|
3578
|
-
* 谁能看到这个新会话:默认 private 只有创建者;organization
|
|
3612
|
+
* 谁能看到这个新会话:默认 private 只有创建者;organization 允许同组织其他成员只读观看画面。自带浏览器(source.type 为 byob)的会话一律是 organization,传 private 也会被改成 organization,不报错。
|
|
3579
3613
|
*/
|
|
3580
3614
|
visibility?: 'private' | 'organization';
|
|
3581
3615
|
/**
|
|
@@ -3662,9 +3696,74 @@ export type BrowserSessionCreateParams = {
|
|
|
3662
3696
|
ignoreCertificateErrors?: boolean;
|
|
3663
3697
|
};
|
|
3664
3698
|
/**
|
|
3665
|
-
*
|
|
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
|
+
*/
|
|
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。
|
|
3666
3741
|
*/
|
|
3667
|
-
|
|
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
|
+
};
|
|
3668
3767
|
/**
|
|
3669
3768
|
* 接受但忽略;不能选择区域。
|
|
3670
3769
|
*/
|
|
@@ -3712,9 +3811,9 @@ export type BrowserSessionCreateResult = {
|
|
|
3712
3811
|
*/
|
|
3713
3812
|
region: 'ap-southeast-1';
|
|
3714
3813
|
/**
|
|
3715
|
-
*
|
|
3814
|
+
* 会话经代理链转发的流量字节数(上行与下行之和),容器后端的会话按它计费;Browser Run 和自带浏览器固定为 0,运行中每几分钟更新一次。
|
|
3716
3815
|
*/
|
|
3717
|
-
proxyBytes:
|
|
3816
|
+
proxyBytes: number;
|
|
3718
3817
|
/**
|
|
3719
3818
|
* 会话创建时刻,UTC ISO 8601 时间。
|
|
3720
3819
|
*/
|
|
@@ -3759,6 +3858,41 @@ export type BrowserSessionCreateResult = {
|
|
|
3759
3858
|
* 会话创建入口;api 为 API 创建,connect 为一步连接创建,console 为 Console 创建。
|
|
3760
3859
|
*/
|
|
3761
3860
|
origin: 'api' | 'connect' | 'console';
|
|
3861
|
+
/**
|
|
3862
|
+
* 会话实际使用的浏览器后端:cloud 是云浏览器(Browser Run),container 是我们自己的 Chrome 容器,byob 是用户自己配对的浏览器(browser 为它的 ID)。type 与 kind 同值,type 是公开名称,kind 为兼容旧读者保留。
|
|
3863
|
+
*/
|
|
3864
|
+
source: {
|
|
3865
|
+
/**
|
|
3866
|
+
* 云浏览器会话,固定为 cloud。
|
|
3867
|
+
*/
|
|
3868
|
+
type: 'cloud';
|
|
3869
|
+
/**
|
|
3870
|
+
* 与 type 同值。
|
|
3871
|
+
*/
|
|
3872
|
+
kind: 'cloud';
|
|
3873
|
+
} | {
|
|
3874
|
+
/**
|
|
3875
|
+
* 自家 Chrome 容器会话,固定为 container。
|
|
3876
|
+
*/
|
|
3877
|
+
type: 'container';
|
|
3878
|
+
/**
|
|
3879
|
+
* 与 type 同值。
|
|
3880
|
+
*/
|
|
3881
|
+
kind: 'container';
|
|
3882
|
+
} | {
|
|
3883
|
+
/**
|
|
3884
|
+
* 用户自己配对的浏览器会话,固定为 byob。
|
|
3885
|
+
*/
|
|
3886
|
+
type: 'byob';
|
|
3887
|
+
/**
|
|
3888
|
+
* 与 type 同值。
|
|
3889
|
+
*/
|
|
3890
|
+
kind: 'byob';
|
|
3891
|
+
/**
|
|
3892
|
+
* 自带浏览器 ID,以 byb_ 开头。
|
|
3893
|
+
*/
|
|
3894
|
+
browser: string;
|
|
3895
|
+
};
|
|
3762
3896
|
/**
|
|
3763
3897
|
* 创建这个会话的用户或智能体标识;通过能力 URL 创建、或在引入创建者之前创建的会话省略此字段。
|
|
3764
3898
|
*/
|
|
@@ -3825,12 +3959,16 @@ export type BrowserSessionCreateResult = {
|
|
|
3825
3959
|
* 该地址返回 501;不支持 Selenium。
|
|
3826
3960
|
*/
|
|
3827
3961
|
seleniumRemoteUrl: string;
|
|
3962
|
+
/**
|
|
3963
|
+
* true 表示本次按 name 复用了已在运行的同名会话(HTTP 200),没有新开会话;false 表示新开了会话(HTTP 201)。
|
|
3964
|
+
*/
|
|
3965
|
+
reused: boolean;
|
|
3828
3966
|
};
|
|
3829
3967
|
export type BrowserError = {
|
|
3830
3968
|
statusCode: number;
|
|
3831
3969
|
error: string;
|
|
3832
3970
|
message: string;
|
|
3833
|
-
code: 'INVALID_PARAMS' | 'PERMISSION_DENIED' | 'NOT_IMPLEMENTED' | 'INTERNAL' | 'UNAUTHENTICATED' | 'CONNECT_SIGNATURE_INVALID' | 'SESSION_NOT_FOUND' | 'SESSION_ENDED' | 'SESSION_INVALID_STATE' | 'CONTEXT_NOT_FOUND' | 'CONTEXT_LOCKED' | 'HANDOFF_NOT_PENDING' | 'CONCURRENCY_LIMIT' | 'RATE_LIMITED' | 'INSUFFICIENT_BALANCE' | 'QUOTA_EXHAUSTED' | 'ACCOUNT_SUSPENDED' | 'PROVIDER_UNSUPPORTED' | 'PROVIDER_CAPACITY' | 'PROVIDER_FAILED' | 'SERVICE_UNAVAILABLE' | 'PARENT_NOT_FOUND' | 'INVALID_FILTER' | 'INVALID_PAGE_TOKEN' | 'ACTION_TAB_NOT_FOUND' | 'ACTION_NO_TAB' | 'ACTION_REF_STALE' | 'ACTION_FAILED' | 'ACTION_TIMEOUT' | 'ACTION_RESULT_TOO_LARGE';
|
|
3971
|
+
code: 'INVALID_PARAMS' | 'PERMISSION_DENIED' | 'NOT_IMPLEMENTED' | 'INTERNAL' | 'UNAUTHENTICATED' | 'CONNECT_SIGNATURE_INVALID' | 'SESSION_NOT_FOUND' | 'SESSION_ENDED' | 'SESSION_INVALID_STATE' | 'SESSION_NAME_IN_USE' | 'CONTEXT_NOT_FOUND' | 'BROWSER_OFFLINE' | 'BROWSER_REVOKED' | 'PAIRING_NOT_FOUND' | 'BROWSER_NOT_FOUND' | 'CONTEXT_LOCKED' | 'CONTEXT_READ_ONLY' | 'HANDOFF_NOT_PENDING' | 'CONCURRENCY_LIMIT' | 'RATE_LIMITED' | 'INSUFFICIENT_BALANCE' | 'QUOTA_EXHAUSTED' | 'ACCOUNT_SUSPENDED' | 'PROVIDER_UNSUPPORTED' | 'PROVIDER_CAPACITY' | 'PROVIDER_FAILED' | 'SERVICE_UNAVAILABLE' | 'PARENT_NOT_FOUND' | 'INVALID_FILTER' | 'INVALID_PAGE_TOKEN' | 'ACTION_TAB_NOT_FOUND' | 'ACTION_NO_TAB' | 'ACTION_REF_STALE' | 'ACTION_FAILED' | 'ACTION_TIMEOUT' | 'ACTION_RESULT_TOO_LARGE';
|
|
3834
3972
|
};
|
|
3835
3973
|
export type BrowserSession = {
|
|
3836
3974
|
/**
|
|
@@ -3854,9 +3992,9 @@ export type BrowserSession = {
|
|
|
3854
3992
|
*/
|
|
3855
3993
|
region: 'ap-southeast-1';
|
|
3856
3994
|
/**
|
|
3857
|
-
*
|
|
3995
|
+
* 会话经代理链转发的流量字节数(上行与下行之和),容器后端的会话按它计费;Browser Run 和自带浏览器固定为 0,运行中每几分钟更新一次。
|
|
3858
3996
|
*/
|
|
3859
|
-
proxyBytes:
|
|
3997
|
+
proxyBytes: number;
|
|
3860
3998
|
/**
|
|
3861
3999
|
* 会话创建时刻,UTC ISO 8601 时间。
|
|
3862
4000
|
*/
|
|
@@ -3901,6 +4039,41 @@ export type BrowserSession = {
|
|
|
3901
4039
|
* 会话创建入口;api 为 API 创建,connect 为一步连接创建,console 为 Console 创建。
|
|
3902
4040
|
*/
|
|
3903
4041
|
origin: 'api' | 'connect' | 'console';
|
|
4042
|
+
/**
|
|
4043
|
+
* 会话实际使用的浏览器后端:cloud 是云浏览器(Browser Run),container 是我们自己的 Chrome 容器,byob 是用户自己配对的浏览器(browser 为它的 ID)。type 与 kind 同值,type 是公开名称,kind 为兼容旧读者保留。
|
|
4044
|
+
*/
|
|
4045
|
+
source: {
|
|
4046
|
+
/**
|
|
4047
|
+
* 云浏览器会话,固定为 cloud。
|
|
4048
|
+
*/
|
|
4049
|
+
type: 'cloud';
|
|
4050
|
+
/**
|
|
4051
|
+
* 与 type 同值。
|
|
4052
|
+
*/
|
|
4053
|
+
kind: 'cloud';
|
|
4054
|
+
} | {
|
|
4055
|
+
/**
|
|
4056
|
+
* 自家 Chrome 容器会话,固定为 container。
|
|
4057
|
+
*/
|
|
4058
|
+
type: 'container';
|
|
4059
|
+
/**
|
|
4060
|
+
* 与 type 同值。
|
|
4061
|
+
*/
|
|
4062
|
+
kind: 'container';
|
|
4063
|
+
} | {
|
|
4064
|
+
/**
|
|
4065
|
+
* 用户自己配对的浏览器会话,固定为 byob。
|
|
4066
|
+
*/
|
|
4067
|
+
type: 'byob';
|
|
4068
|
+
/**
|
|
4069
|
+
* 与 type 同值。
|
|
4070
|
+
*/
|
|
4071
|
+
kind: 'byob';
|
|
4072
|
+
/**
|
|
4073
|
+
* 自带浏览器 ID,以 byb_ 开头。
|
|
4074
|
+
*/
|
|
4075
|
+
browser: string;
|
|
4076
|
+
};
|
|
3904
4077
|
/**
|
|
3905
4078
|
* 创建这个会话的用户或智能体标识;通过能力 URL 创建、或在引入创建者之前创建的会话省略此字段。
|
|
3906
4079
|
*/
|
|
@@ -3978,9 +4151,9 @@ export type BrowserSessionGetResult = {
|
|
|
3978
4151
|
*/
|
|
3979
4152
|
region: 'ap-southeast-1';
|
|
3980
4153
|
/**
|
|
3981
|
-
*
|
|
4154
|
+
* 会话经代理链转发的流量字节数(上行与下行之和),容器后端的会话按它计费;Browser Run 和自带浏览器固定为 0,运行中每几分钟更新一次。
|
|
3982
4155
|
*/
|
|
3983
|
-
proxyBytes:
|
|
4156
|
+
proxyBytes: number;
|
|
3984
4157
|
/**
|
|
3985
4158
|
* 会话创建时刻,UTC ISO 8601 时间。
|
|
3986
4159
|
*/
|
|
@@ -4025,6 +4198,41 @@ export type BrowserSessionGetResult = {
|
|
|
4025
4198
|
* 会话创建入口;api 为 API 创建,connect 为一步连接创建,console 为 Console 创建。
|
|
4026
4199
|
*/
|
|
4027
4200
|
origin: 'api' | 'connect' | 'console';
|
|
4201
|
+
/**
|
|
4202
|
+
* 会话实际使用的浏览器后端:cloud 是云浏览器(Browser Run),container 是我们自己的 Chrome 容器,byob 是用户自己配对的浏览器(browser 为它的 ID)。type 与 kind 同值,type 是公开名称,kind 为兼容旧读者保留。
|
|
4203
|
+
*/
|
|
4204
|
+
source: {
|
|
4205
|
+
/**
|
|
4206
|
+
* 云浏览器会话,固定为 cloud。
|
|
4207
|
+
*/
|
|
4208
|
+
type: 'cloud';
|
|
4209
|
+
/**
|
|
4210
|
+
* 与 type 同值。
|
|
4211
|
+
*/
|
|
4212
|
+
kind: 'cloud';
|
|
4213
|
+
} | {
|
|
4214
|
+
/**
|
|
4215
|
+
* 自家 Chrome 容器会话,固定为 container。
|
|
4216
|
+
*/
|
|
4217
|
+
type: 'container';
|
|
4218
|
+
/**
|
|
4219
|
+
* 与 type 同值。
|
|
4220
|
+
*/
|
|
4221
|
+
kind: 'container';
|
|
4222
|
+
} | {
|
|
4223
|
+
/**
|
|
4224
|
+
* 用户自己配对的浏览器会话,固定为 byob。
|
|
4225
|
+
*/
|
|
4226
|
+
type: 'byob';
|
|
4227
|
+
/**
|
|
4228
|
+
* 与 type 同值。
|
|
4229
|
+
*/
|
|
4230
|
+
kind: 'byob';
|
|
4231
|
+
/**
|
|
4232
|
+
* 自带浏览器 ID,以 byb_ 开头。
|
|
4233
|
+
*/
|
|
4234
|
+
browser: string;
|
|
4235
|
+
};
|
|
4028
4236
|
/**
|
|
4029
4237
|
* 创建这个会话的用户或智能体标识;通过能力 URL 创建、或在引入创建者之前创建的会话省略此字段。
|
|
4030
4238
|
*/
|
|
@@ -4219,6 +4427,36 @@ export type BrowserContextCreateResult = {
|
|
|
4219
4427
|
* UTC timestamp when a session last started with this context; absent if it has never been used.
|
|
4220
4428
|
*/
|
|
4221
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
|
+
};
|
|
4222
4460
|
/**
|
|
4223
4461
|
* Empty compatibility field; context encryption keys are held by the server.
|
|
4224
4462
|
*/
|
|
@@ -4279,6 +4517,150 @@ export type BrowserContext = {
|
|
|
4279
4517
|
* UTC timestamp when a session last started with this context; absent if it has never been used.
|
|
4280
4518
|
*/
|
|
4281
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
|
+
};
|
|
4550
|
+
};
|
|
4551
|
+
export type BrowserByobPairing = {
|
|
4552
|
+
/**
|
|
4553
|
+
* 8 位配对码,一次性、10 分钟内有效;它是秘密,只交给要配对的那个浏览器的用户。
|
|
4554
|
+
*/
|
|
4555
|
+
code: string;
|
|
4556
|
+
/**
|
|
4557
|
+
* 配对码失效的时刻,UTC ISO 8601 时间。
|
|
4558
|
+
*/
|
|
4559
|
+
expires_at: string;
|
|
4560
|
+
};
|
|
4561
|
+
export type BrowserByobBrowser = {
|
|
4562
|
+
/**
|
|
4563
|
+
* 对象类型,固定为 byob_browser。
|
|
4564
|
+
*/
|
|
4565
|
+
object: 'byob_browser';
|
|
4566
|
+
/**
|
|
4567
|
+
* 自带浏览器 ID,以 byb_ 开头;使用配对认领或列出自带浏览器返回的 id。
|
|
4568
|
+
*/
|
|
4569
|
+
id: string;
|
|
4570
|
+
/**
|
|
4571
|
+
* 浏览器的显示名称,配对时由扩展上报,1–80 个字符;可通过更新修改。
|
|
4572
|
+
*/
|
|
4573
|
+
name: string;
|
|
4574
|
+
/**
|
|
4575
|
+
* 这个自带浏览器的种类,配对时由扩展上报。
|
|
4576
|
+
*/
|
|
4577
|
+
browser: 'chrome' | 'edge';
|
|
4578
|
+
/**
|
|
4579
|
+
* 浏览器版本号,配对时由扩展上报。
|
|
4580
|
+
*/
|
|
4581
|
+
version: string;
|
|
4582
|
+
/**
|
|
4583
|
+
* 操作系统,配对时由扩展上报。
|
|
4584
|
+
*/
|
|
4585
|
+
os: string;
|
|
4586
|
+
/**
|
|
4587
|
+
* 配对用的扩展 ID。
|
|
4588
|
+
*/
|
|
4589
|
+
extension_id: string;
|
|
4590
|
+
/**
|
|
4591
|
+
* 扩展的连接当前是否在线;连接对象上线之前固定为 false。
|
|
4592
|
+
*/
|
|
4593
|
+
online: boolean;
|
|
4594
|
+
/**
|
|
4595
|
+
* 扩展最近一次被看到在线的时刻,UTC ISO 8601 时间。
|
|
4596
|
+
*/
|
|
4597
|
+
last_seen_at: string | null;
|
|
4598
|
+
/**
|
|
4599
|
+
* 发起配对的用户标识;浏览器属于组织,这里只记录是谁配的。
|
|
4600
|
+
*/
|
|
4601
|
+
created_by: string | null;
|
|
4602
|
+
/**
|
|
4603
|
+
* 浏览器完成配对的时刻,UTC ISO 8601 时间。
|
|
4604
|
+
*/
|
|
4605
|
+
created_at: string;
|
|
4606
|
+
/**
|
|
4607
|
+
* 组织断开这个浏览器的时刻,UTC ISO 8601 时间;未断开时为 null。
|
|
4608
|
+
*/
|
|
4609
|
+
revoked_at: string | null;
|
|
4610
|
+
};
|
|
4611
|
+
export type BrowserByobPairingView = {
|
|
4612
|
+
/**
|
|
4613
|
+
* 发起配对的组织名称,扩展的授权页显示它。
|
|
4614
|
+
*/
|
|
4615
|
+
organization_name: string;
|
|
4616
|
+
/**
|
|
4617
|
+
* 发起配对的用户标识。
|
|
4618
|
+
*/
|
|
4619
|
+
created_by: string | null;
|
|
4620
|
+
/**
|
|
4621
|
+
* 配对码失效的时刻,UTC ISO 8601 时间。
|
|
4622
|
+
*/
|
|
4623
|
+
expires_at: string;
|
|
4624
|
+
};
|
|
4625
|
+
export type BrowserByobClaim = {
|
|
4626
|
+
/**
|
|
4627
|
+
* 要登记的浏览器种类,只支持 Chrome 和 Edge。
|
|
4628
|
+
*/
|
|
4629
|
+
browser: 'chrome' | 'edge';
|
|
4630
|
+
/**
|
|
4631
|
+
* 浏览器版本号,1–64 个字符。
|
|
4632
|
+
*/
|
|
4633
|
+
version: string;
|
|
4634
|
+
/**
|
|
4635
|
+
* 操作系统,1–64 个字符。
|
|
4636
|
+
*/
|
|
4637
|
+
os: string;
|
|
4638
|
+
/**
|
|
4639
|
+
* 浏览器的显示名称,1–80 个字符。
|
|
4640
|
+
*/
|
|
4641
|
+
name: string;
|
|
4642
|
+
/**
|
|
4643
|
+
* 扩展用 WebCrypto 生成的不可导出 ECDSA P-256 密钥对的公钥;平台只保存公钥。
|
|
4644
|
+
*/
|
|
4645
|
+
public_key: string;
|
|
4646
|
+
/**
|
|
4647
|
+
* 扩展 ID,1–64 个字符。
|
|
4648
|
+
*/
|
|
4649
|
+
extension_id: string;
|
|
4650
|
+
/**
|
|
4651
|
+
* 扩展保存的随机安装密钥,8–128 个字母、数字、_ 或 -;同一个 profile 带同一密钥重新配对会复用原来的浏览器,平台只保存它的哈希。省略则每次认领都是新浏览器。
|
|
4652
|
+
*/
|
|
4653
|
+
install_key?: string;
|
|
4654
|
+
};
|
|
4655
|
+
export type BrowserByobClaimResult = {
|
|
4656
|
+
/**
|
|
4657
|
+
* 自带浏览器 ID,以 byb_ 开头;使用配对认领或列出自带浏览器返回的 id。
|
|
4658
|
+
*/
|
|
4659
|
+
browser_id: string;
|
|
4660
|
+
/**
|
|
4661
|
+
* 扩展要拨入的 WSS 地址,属于这个浏览器自己的链接主机;连接时用配对时的私钥签名完成认证,地址本身不是凭证。
|
|
4662
|
+
*/
|
|
4663
|
+
link_url: string;
|
|
4282
4664
|
};
|
|
4283
4665
|
export type BrowserStreamMessage = {
|
|
4284
4666
|
event: 'snapshot';
|
|
@@ -4694,7 +5076,7 @@ export type OwnFileSignedUploadResponse = {
|
|
|
4694
5076
|
url: string;
|
|
4695
5077
|
}>;
|
|
4696
5078
|
/**
|
|
4697
|
-
* Bearer URL to POST without a body after every chunk is acknowledged. Returns 201 with the file object; missing chunks return 400 and
|
|
5079
|
+
* Bearer URL to POST without a body after every chunk is acknowledged. Returns 201 with the file object; missing chunks return 400 and a completion replay returns 201 with the same file, because a lost answer must not cost the file.
|
|
4698
5080
|
*/
|
|
4699
5081
|
complete_url: string;
|
|
4700
5082
|
/**
|
|
@@ -10584,6 +10966,10 @@ export type ApplicationCreateWorkerInput = {
|
|
|
10584
10966
|
labels?: {
|
|
10585
10967
|
[key: string]: string;
|
|
10586
10968
|
};
|
|
10969
|
+
/**
|
|
10970
|
+
* Who may open the application on its default host (ADR-206). Only the organization's owner (full authority) may change it; a credential limited to bound resources is refused with PERMISSION_DENIED. A change takes effect within 10 seconds.
|
|
10971
|
+
*/
|
|
10972
|
+
access?: 'public' | 'organization';
|
|
10587
10973
|
};
|
|
10588
10974
|
};
|
|
10589
10975
|
export type ApplicationWorker = {
|
|
@@ -10655,6 +11041,10 @@ export type ApplicationWorker = {
|
|
|
10655
11041
|
labels: {
|
|
10656
11042
|
[key: string]: string;
|
|
10657
11043
|
};
|
|
11044
|
+
/**
|
|
11045
|
+
* Who may open the application on its default host (ADR-206). Only the organization's owner (full authority) may change it; a credential limited to bound resources is refused with PERMISSION_DENIED. A change takes effect within 10 seconds.
|
|
11046
|
+
*/
|
|
11047
|
+
access: 'public' | 'organization';
|
|
10658
11048
|
/**
|
|
10659
11049
|
* When the Worker was deleted.
|
|
10660
11050
|
*/
|
|
@@ -10736,6 +11126,10 @@ export type ApplicationUpdateWorkerInput = {
|
|
|
10736
11126
|
labels?: {
|
|
10737
11127
|
[key: string]: string;
|
|
10738
11128
|
};
|
|
11129
|
+
/**
|
|
11130
|
+
* Who may open the application on its default host (ADR-206). Only the organization's owner (full authority) may change it; a credential limited to bound resources is refused with PERMISSION_DENIED. A change takes effect within 10 seconds.
|
|
11131
|
+
*/
|
|
11132
|
+
access?: 'public' | 'organization';
|
|
10739
11133
|
};
|
|
10740
11134
|
};
|
|
10741
11135
|
export type ApplicationVersionPage = {
|
|
@@ -19519,6 +19913,32 @@ export type DevopsChangeMarkLastSliceRequest = {
|
|
|
19519
19913
|
*/
|
|
19520
19914
|
lastSlice: boolean;
|
|
19521
19915
|
};
|
|
19916
|
+
/**
|
|
19917
|
+
* Where the new slice starts. Every field is optional: with none the slice is cut from the default branch.
|
|
19918
|
+
*/
|
|
19919
|
+
export type DevopsChangeSliceCreateRequest = {
|
|
19920
|
+
/**
|
|
19921
|
+
* Another branch of the same change to cut the slice from, such as feat/run-page-v2--2; omit it to cut from the default branch. A slice cut from a branch is restacked onto the default branch when that branch merges.
|
|
19922
|
+
*/
|
|
19923
|
+
from?: string;
|
|
19924
|
+
};
|
|
19925
|
+
/**
|
|
19926
|
+
* The slice that was opened.
|
|
19927
|
+
*/
|
|
19928
|
+
export type DevopsChangeSliceOpened = {
|
|
19929
|
+
/**
|
|
19930
|
+
* The new slice's branch, <change id>--<n> with n at least 2; commit and push here, and open its pull request with `praxis devops change pr`.
|
|
19931
|
+
*/
|
|
19932
|
+
branch: string;
|
|
19933
|
+
/**
|
|
19934
|
+
* The directory to work in: the slice's git worktree inside the change's workspace. It exists at once when the workspace is already running, otherwise once the workspace is available.
|
|
19935
|
+
*/
|
|
19936
|
+
directory: string;
|
|
19937
|
+
/**
|
|
19938
|
+
* The id of the change's workspace that holds the slice (wsu_…), usable with the units methods; this call opened it when the change had none live.
|
|
19939
|
+
*/
|
|
19940
|
+
unit: string;
|
|
19941
|
+
};
|
|
19522
19942
|
/**
|
|
19523
19943
|
* What the pull request says. Every field is optional: without a title the change's own title is used.
|
|
19524
19944
|
*/
|
|
@@ -19535,6 +19955,10 @@ export type DevopsChangeOpenPullRequestRequest = {
|
|
|
19535
19955
|
* Open it as a draft. Defaults to false.
|
|
19536
19956
|
*/
|
|
19537
19957
|
draft?: boolean;
|
|
19958
|
+
/**
|
|
19959
|
+
* The branch the pull request is opened from, for a later slice of the change: <change id>--<n>, as `slices.create` answered it; omit it for the change's own branch. A branch that belongs to another change is refused with INVALID_ARGUMENT.
|
|
19960
|
+
*/
|
|
19961
|
+
head?: string;
|
|
19538
19962
|
};
|
|
19539
19963
|
/**
|
|
19540
19964
|
* The pull request for a change's branch.
|
|
@@ -29732,6 +30156,31 @@ export type AgentSseData = {
|
|
|
29732
30156
|
* Envelope field, not part of this event's own payload: the public sthr_ thread id of the row (null when the row has none), added by the shared projection in apps/api/src/routes/managed-session-events.ts whenever the row carries one (#4480). No writer of this event runs under a thread today, so it is declared for the frame shape rather than produced here.
|
|
29733
30157
|
*/
|
|
29734
30158
|
session_thread_id?: string | null;
|
|
30159
|
+
} | {
|
|
30160
|
+
/**
|
|
30161
|
+
* Event id, unique within the session. Use it to refer to this event, for example in user.tool_confirmation or user.steer.
|
|
30162
|
+
*/
|
|
30163
|
+
id: string;
|
|
30164
|
+
/**
|
|
30165
|
+
* Always `session.status_preparing`. A device session's local agent is starting; stage says how far it got.
|
|
30166
|
+
*/
|
|
30167
|
+
type: 'session.status_preparing';
|
|
30168
|
+
/**
|
|
30169
|
+
* RFC 3339 time at which the server processed the event; null while a queued input has not started running.
|
|
30170
|
+
*/
|
|
30171
|
+
processed_at: string;
|
|
30172
|
+
/**
|
|
30173
|
+
* How far the start got.
|
|
30174
|
+
*/
|
|
30175
|
+
stage: 'launching' | 'loading' | 'ready';
|
|
30176
|
+
/**
|
|
30177
|
+
* Envelope field, not part of this event's own payload: the transcript message id of the row, added by the shared projection in apps/api/src/routes/managed-session-events.ts whenever the row carries one (#4480). No writer of this event stamps a message id today, so it is declared for the frame shape rather than produced here.
|
|
30178
|
+
*/
|
|
30179
|
+
message_id?: string;
|
|
30180
|
+
/**
|
|
30181
|
+
* Envelope field, not part of this event's own payload: the public sthr_ thread id of the row (null when the row has none), added by the shared projection in apps/api/src/routes/managed-session-events.ts whenever the row carries one (#4480). No writer of this event runs under a thread today, so it is declared for the frame shape rather than produced here.
|
|
30182
|
+
*/
|
|
30183
|
+
session_thread_id?: string | null;
|
|
29735
30184
|
} | {
|
|
29736
30185
|
/**
|
|
29737
30186
|
* Always `event_start`. Preview that an event of the requested delta types has started.
|
|
@@ -34651,6 +35100,14 @@ export type SandboxSandboxNetworkConfig = {
|
|
|
34651
35100
|
rules?: {
|
|
34652
35101
|
[key: string]: Array<SandboxSandboxNetworkRule>;
|
|
34653
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;
|
|
34654
35111
|
};
|
|
34655
35112
|
/**
|
|
34656
35113
|
* Sandbox lifecycle policy returned by sandbox info.
|
|
@@ -39924,6 +40381,10 @@ export type DevopsUnitGit = {
|
|
|
39924
40381
|
* The ref holding the unit's work in progress, or null when none was recorded.
|
|
39925
40382
|
*/
|
|
39926
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;
|
|
39927
40388
|
/**
|
|
39928
40389
|
* RFC 3339 UTC time these facts were observed, or null before the first observation.
|
|
39929
40390
|
*/
|
|
@@ -47787,7 +48248,7 @@ export type DevopsPlannedSkip = {
|
|
|
47787
48248
|
/**
|
|
47788
48249
|
* Why it is left out, which is what tells a deliberate skip apart from an oversight.
|
|
47789
48250
|
*/
|
|
47790
|
-
reason: 'unchanged' | 'newer_checkpoint' | 'not_requested' | 'callee_excluded' | 'artifact_identical';
|
|
48251
|
+
reason: 'unchanged' | 'newer_checkpoint' | 'not_requested' | 'callee_excluded' | 'not_deployed_upstream' | 'artifact_identical';
|
|
47791
48252
|
};
|
|
47792
48253
|
/**
|
|
47793
48254
|
* The migrations one target has pending, as the plan found them.
|
|
@@ -50642,6 +51103,58 @@ export type UpdateMediaPipelineRequestWritable = {
|
|
|
50642
51103
|
* Models to use for completion
|
|
50643
51104
|
*/
|
|
50644
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
|
+
};
|
|
50645
51158
|
/**
|
|
50646
51159
|
* Free-form string key/value pairs stored with the session, changed through sessions.update patch semantics.
|
|
50647
51160
|
*/
|
|
@@ -51221,6 +51734,94 @@ export type MediaSemanticSearchResultWritable = {
|
|
|
51221
51734
|
*/
|
|
51222
51735
|
not_ready_excluded: number;
|
|
51223
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
|
+
};
|
|
51224
51825
|
/**
|
|
51225
51826
|
* Arguments the model passed to the tool.
|
|
51226
51827
|
*/
|
|
@@ -51299,6 +51900,43 @@ export type AnthropicAnonymous204Writable = {
|
|
|
51299
51900
|
export type AnthropicAnonymous206Writable = {
|
|
51300
51901
|
[key: string]: unknown;
|
|
51301
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
|
+
};
|
|
51302
51940
|
/**
|
|
51303
51941
|
* Free-form string key/value pairs.
|
|
51304
51942
|
*/
|
|
@@ -51934,6 +52572,10 @@ export type DevopsLockId = string;
|
|
|
51934
52572
|
* The change's id, which is its branch name <type>/<slug> from a change list or create answer. Give it as it comes back — `feat/run-page-v2`: the SDK and the CLI encode the slash themselves, and an id that is already percent-encoded is encoded a second time and answers CHANGE_NOT_FOUND. Only a caller writing the HTTP request by hand sends feat%2Frun-page-v2.
|
|
51935
52573
|
*/
|
|
51936
52574
|
export type DevopsChangeIdPath = string;
|
|
52575
|
+
/**
|
|
52576
|
+
* The change whose slice you are opening: its id, which is its branch name <type>/<slug> from a change list or create answer. Give it as it comes back — `feat/run-page-v2`; the SDK and the CLI encode the slash themselves.
|
|
52577
|
+
*/
|
|
52578
|
+
export type DevopsChangePathParam = string;
|
|
51937
52579
|
/**
|
|
51938
52580
|
* The pull request's platform id (pr_…) from a pull request list, not GitHub's pull request number; the retrieve, rerunGate, merge and recordVerdict calls all address the pull request by it.
|
|
51939
52581
|
*/
|
|
@@ -53577,6 +54219,31 @@ export type ListAgentEventsResponses = {
|
|
|
53577
54219
|
* Envelope field, not part of this event's own payload: the public sthr_ thread id of the row (null when the row has none), added by the shared projection in apps/api/src/routes/managed-session-events.ts whenever the row carries one (#4480). No writer of this event runs under a thread today, so it is declared for the frame shape rather than produced here.
|
|
53578
54220
|
*/
|
|
53579
54221
|
session_thread_id?: string | null;
|
|
54222
|
+
} | {
|
|
54223
|
+
/**
|
|
54224
|
+
* Event id, unique within the session. Use it to refer to this event, for example in user.tool_confirmation or user.steer.
|
|
54225
|
+
*/
|
|
54226
|
+
id: string;
|
|
54227
|
+
/**
|
|
54228
|
+
* Always `session.status_preparing`. A device session's local agent is starting; stage says how far it got.
|
|
54229
|
+
*/
|
|
54230
|
+
type: 'session.status_preparing';
|
|
54231
|
+
/**
|
|
54232
|
+
* RFC 3339 time at which the server processed the event; null while a queued input has not started running.
|
|
54233
|
+
*/
|
|
54234
|
+
processed_at: string;
|
|
54235
|
+
/**
|
|
54236
|
+
* How far the start got.
|
|
54237
|
+
*/
|
|
54238
|
+
stage: 'launching' | 'loading' | 'ready';
|
|
54239
|
+
/**
|
|
54240
|
+
* Envelope field, not part of this event's own payload: the transcript message id of the row, added by the shared projection in apps/api/src/routes/managed-session-events.ts whenever the row carries one (#4480). No writer of this event stamps a message id today, so it is declared for the frame shape rather than produced here.
|
|
54241
|
+
*/
|
|
54242
|
+
message_id?: string;
|
|
54243
|
+
/**
|
|
54244
|
+
* Envelope field, not part of this event's own payload: the public sthr_ thread id of the row (null when the row has none), added by the shared projection in apps/api/src/routes/managed-session-events.ts whenever the row carries one (#4480). No writer of this event runs under a thread today, so it is declared for the frame shape rather than produced here.
|
|
54245
|
+
*/
|
|
54246
|
+
session_thread_id?: string | null;
|
|
53580
54247
|
}>;
|
|
53581
54248
|
/**
|
|
53582
54249
|
* Opaque cursor for the next page: pass it unchanged as page to continue. Null when this is the last page.
|
|
@@ -53997,6 +54664,86 @@ export type ListAgentInboxLettersResponses = {
|
|
|
53997
54664
|
};
|
|
53998
54665
|
};
|
|
53999
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];
|
|
54000
54747
|
export type CreateAgentLoginIntentData = {
|
|
54001
54748
|
body?: never;
|
|
54002
54749
|
path?: never;
|
|
@@ -54007,32 +54754,33 @@ export type CreateAgentLoginIntentErrors = {
|
|
|
54007
54754
|
/**
|
|
54008
54755
|
* INVALID_JSON: the body is not a JSON object. INVALID_PARAMS: the body names a field (agent, organization_id, place or any other) - the caller, its organization and its computer come from the credential, so resend with no field.
|
|
54009
54756
|
*/
|
|
54010
|
-
400:
|
|
54757
|
+
400: AgentError;
|
|
54011
54758
|
/**
|
|
54012
54759
|
* Authentication required: send the platform session's own credential.
|
|
54013
54760
|
*/
|
|
54014
|
-
401:
|
|
54761
|
+
401: AgentError;
|
|
54015
54762
|
/**
|
|
54016
54763
|
* PERMISSION_DENIED: this credential names no agent, or the member driving the session is not the agent's sponsor; open the code from the agent's own codemode session, driven by its sponsor.
|
|
54017
54764
|
*/
|
|
54018
|
-
403:
|
|
54765
|
+
403: AgentError;
|
|
54019
54766
|
/**
|
|
54020
54767
|
* AGENT_NOT_FOUND: the agent the credential names does not exist in this organization; check the agent the session was opened for.
|
|
54021
54768
|
*/
|
|
54022
|
-
404:
|
|
54769
|
+
404: AgentError;
|
|
54023
54770
|
/**
|
|
54024
54771
|
* FAILED_PRECONDITION: the agent has no platform computer of its own (a service agent runs nowhere to log in), or identity refused the create for a state it reports.
|
|
54025
54772
|
*/
|
|
54026
|
-
409:
|
|
54773
|
+
409: AgentError;
|
|
54027
54774
|
/**
|
|
54028
54775
|
* UPSTREAM_UNAVAILABLE: the agent service or identity could not answer; retry once the service is back.
|
|
54029
54776
|
*/
|
|
54030
|
-
502:
|
|
54777
|
+
502: AgentError;
|
|
54031
54778
|
/**
|
|
54032
54779
|
* UNAVAILABLE: identity is not configured in this deployment.
|
|
54033
54780
|
*/
|
|
54034
|
-
503:
|
|
54781
|
+
503: AgentError;
|
|
54035
54782
|
};
|
|
54783
|
+
export type CreateAgentLoginIntentError = CreateAgentLoginIntentErrors[keyof CreateAgentLoginIntentErrors];
|
|
54036
54784
|
export type CreateAgentLoginIntentResponses = {
|
|
54037
54785
|
/**
|
|
54038
54786
|
* The one-time login code and when it stops working; the code is answered once and never again.
|
|
@@ -54896,6 +55644,15 @@ export type ApplyAgentVersionResponses = {
|
|
|
54896
55644
|
name: string;
|
|
54897
55645
|
}>;
|
|
54898
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;
|
|
54899
55656
|
/**
|
|
54900
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.
|
|
54901
55658
|
*/
|
|
@@ -55281,7 +56038,7 @@ export type ApplyAgentVersionResponses = {
|
|
|
55281
56038
|
*/
|
|
55282
56039
|
environment_id?: string | null;
|
|
55283
56040
|
/**
|
|
55284
|
-
* 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.
|
|
55285
56042
|
*/
|
|
55286
56043
|
vault_ids?: Array<string>;
|
|
55287
56044
|
/**
|
|
@@ -56147,6 +56904,15 @@ export type UnarchiveAgentResponses = {
|
|
|
56147
56904
|
name: string;
|
|
56148
56905
|
}>;
|
|
56149
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;
|
|
56150
56916
|
/**
|
|
56151
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.
|
|
56152
56918
|
*/
|
|
@@ -56532,7 +57298,7 @@ export type UnarchiveAgentResponses = {
|
|
|
56532
57298
|
*/
|
|
56533
57299
|
environment_id?: string | null;
|
|
56534
57300
|
/**
|
|
56535
|
-
* 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.
|
|
56536
57302
|
*/
|
|
56537
57303
|
vault_ids?: Array<string>;
|
|
56538
57304
|
/**
|
|
@@ -59001,9 +59767,13 @@ export type ComputersRetrieveResponse = ComputersRetrieveResponses[keyof Compute
|
|
|
59001
59767
|
export type ComputersUpdateData = {
|
|
59002
59768
|
body: {
|
|
59003
59769
|
/**
|
|
59004
|
-
*
|
|
59770
|
+
* New display name, 1 to 255 characters after trimming. Omit to keep the current name.
|
|
59005
59771
|
*/
|
|
59006
|
-
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;
|
|
59007
59777
|
};
|
|
59008
59778
|
path: {
|
|
59009
59779
|
/**
|
|
@@ -61173,7 +61943,7 @@ export type ComputersFilesConvertResponse = ComputersFilesConvertResponses[keyof
|
|
|
61173
61943
|
export type ConnectComputerData = {
|
|
61174
61944
|
body?: {
|
|
61175
61945
|
/**
|
|
61176
|
-
*
|
|
61946
|
+
* Accepted for compatibility and ignored: light and heavy both reach the same machine, because a Computer is one machine. Omit it.
|
|
61177
61947
|
*/
|
|
61178
61948
|
need?: 'light' | 'heavy';
|
|
61179
61949
|
};
|
|
@@ -68777,17 +69547,21 @@ export type BrowserListSessionsErrors = {
|
|
|
68777
69547
|
*/
|
|
68778
69548
|
402: BrowserError;
|
|
68779
69549
|
/**
|
|
68780
|
-
* PERMISSION_DENIED / ACCOUNT_SUSPENDED
|
|
69550
|
+
* PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
|
|
68781
69551
|
*/
|
|
68782
69552
|
403: BrowserError;
|
|
68783
69553
|
/**
|
|
68784
|
-
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
69554
|
+
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
68785
69555
|
*/
|
|
68786
69556
|
404: BrowserError;
|
|
68787
69557
|
/**
|
|
68788
|
-
* SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
69558
|
+
* SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
68789
69559
|
*/
|
|
68790
69560
|
409: BrowserError;
|
|
69561
|
+
/**
|
|
69562
|
+
* BROWSER_REVOKED
|
|
69563
|
+
*/
|
|
69564
|
+
410: BrowserError;
|
|
68791
69565
|
/**
|
|
68792
69566
|
* ACTION_RESULT_TOO_LARGE
|
|
68793
69567
|
*/
|
|
@@ -68809,7 +69583,7 @@ export type BrowserListSessionsErrors = {
|
|
|
68809
69583
|
*/
|
|
68810
69584
|
502: BrowserError;
|
|
68811
69585
|
/**
|
|
68812
|
-
* SERVICE_UNAVAILABLE
|
|
69586
|
+
* BROWSER_OFFLINE / SERVICE_UNAVAILABLE
|
|
68813
69587
|
*/
|
|
68814
69588
|
503: BrowserError;
|
|
68815
69589
|
/**
|
|
@@ -68854,17 +69628,21 @@ export type BrowserCreateSessionErrors = {
|
|
|
68854
69628
|
*/
|
|
68855
69629
|
402: BrowserError;
|
|
68856
69630
|
/**
|
|
68857
|
-
* PERMISSION_DENIED / ACCOUNT_SUSPENDED
|
|
69631
|
+
* PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
|
|
68858
69632
|
*/
|
|
68859
69633
|
403: BrowserError;
|
|
68860
69634
|
/**
|
|
68861
|
-
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
69635
|
+
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
68862
69636
|
*/
|
|
68863
69637
|
404: BrowserError;
|
|
68864
69638
|
/**
|
|
68865
|
-
* SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
69639
|
+
* SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
68866
69640
|
*/
|
|
68867
69641
|
409: BrowserError;
|
|
69642
|
+
/**
|
|
69643
|
+
* BROWSER_REVOKED
|
|
69644
|
+
*/
|
|
69645
|
+
410: BrowserError;
|
|
68868
69646
|
/**
|
|
68869
69647
|
* ACTION_RESULT_TOO_LARGE
|
|
68870
69648
|
*/
|
|
@@ -68886,7 +69664,7 @@ export type BrowserCreateSessionErrors = {
|
|
|
68886
69664
|
*/
|
|
68887
69665
|
502: BrowserError;
|
|
68888
69666
|
/**
|
|
68889
|
-
* SERVICE_UNAVAILABLE
|
|
69667
|
+
* BROWSER_OFFLINE / SERVICE_UNAVAILABLE
|
|
68890
69668
|
*/
|
|
68891
69669
|
503: BrowserError;
|
|
68892
69670
|
/**
|
|
@@ -68896,6 +69674,10 @@ export type BrowserCreateSessionErrors = {
|
|
|
68896
69674
|
};
|
|
68897
69675
|
export type BrowserCreateSessionError = BrowserCreateSessionErrors[keyof BrowserCreateSessionErrors];
|
|
68898
69676
|
export type BrowserCreateSessionResponses = {
|
|
69677
|
+
/**
|
|
69678
|
+
* 请求成功。
|
|
69679
|
+
*/
|
|
69680
|
+
200: BrowserSessionCreateResult;
|
|
68899
69681
|
/**
|
|
68900
69682
|
* 请求成功。
|
|
68901
69683
|
*/
|
|
@@ -68932,17 +69714,21 @@ export type BrowserGetSessionErrors = {
|
|
|
68932
69714
|
*/
|
|
68933
69715
|
402: BrowserError;
|
|
68934
69716
|
/**
|
|
68935
|
-
* PERMISSION_DENIED / ACCOUNT_SUSPENDED
|
|
69717
|
+
* PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
|
|
68936
69718
|
*/
|
|
68937
69719
|
403: BrowserError;
|
|
68938
69720
|
/**
|
|
68939
|
-
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
69721
|
+
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
68940
69722
|
*/
|
|
68941
69723
|
404: BrowserError;
|
|
68942
69724
|
/**
|
|
68943
|
-
* SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
69725
|
+
* SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
68944
69726
|
*/
|
|
68945
69727
|
409: BrowserError;
|
|
69728
|
+
/**
|
|
69729
|
+
* BROWSER_REVOKED
|
|
69730
|
+
*/
|
|
69731
|
+
410: BrowserError;
|
|
68946
69732
|
/**
|
|
68947
69733
|
* ACTION_RESULT_TOO_LARGE
|
|
68948
69734
|
*/
|
|
@@ -68964,7 +69750,7 @@ export type BrowserGetSessionErrors = {
|
|
|
68964
69750
|
*/
|
|
68965
69751
|
502: BrowserError;
|
|
68966
69752
|
/**
|
|
68967
|
-
* SERVICE_UNAVAILABLE
|
|
69753
|
+
* BROWSER_OFFLINE / SERVICE_UNAVAILABLE
|
|
68968
69754
|
*/
|
|
68969
69755
|
503: BrowserError;
|
|
68970
69756
|
/**
|
|
@@ -69010,17 +69796,21 @@ export type BrowserCloseSessionErrors = {
|
|
|
69010
69796
|
*/
|
|
69011
69797
|
402: BrowserError;
|
|
69012
69798
|
/**
|
|
69013
|
-
* PERMISSION_DENIED / ACCOUNT_SUSPENDED
|
|
69799
|
+
* PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
|
|
69014
69800
|
*/
|
|
69015
69801
|
403: BrowserError;
|
|
69016
69802
|
/**
|
|
69017
|
-
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
69803
|
+
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
69018
69804
|
*/
|
|
69019
69805
|
404: BrowserError;
|
|
69020
69806
|
/**
|
|
69021
|
-
* SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
69807
|
+
* SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
69022
69808
|
*/
|
|
69023
69809
|
409: BrowserError;
|
|
69810
|
+
/**
|
|
69811
|
+
* BROWSER_REVOKED
|
|
69812
|
+
*/
|
|
69813
|
+
410: BrowserError;
|
|
69024
69814
|
/**
|
|
69025
69815
|
* ACTION_RESULT_TOO_LARGE
|
|
69026
69816
|
*/
|
|
@@ -69042,7 +69832,7 @@ export type BrowserCloseSessionErrors = {
|
|
|
69042
69832
|
*/
|
|
69043
69833
|
502: BrowserError;
|
|
69044
69834
|
/**
|
|
69045
|
-
* SERVICE_UNAVAILABLE
|
|
69835
|
+
* BROWSER_OFFLINE / SERVICE_UNAVAILABLE
|
|
69046
69836
|
*/
|
|
69047
69837
|
503: BrowserError;
|
|
69048
69838
|
/**
|
|
@@ -69083,17 +69873,21 @@ export type BrowserGetDebugErrors = {
|
|
|
69083
69873
|
*/
|
|
69084
69874
|
402: BrowserError;
|
|
69085
69875
|
/**
|
|
69086
|
-
* PERMISSION_DENIED / ACCOUNT_SUSPENDED
|
|
69876
|
+
* PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
|
|
69087
69877
|
*/
|
|
69088
69878
|
403: BrowserError;
|
|
69089
69879
|
/**
|
|
69090
|
-
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
69880
|
+
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
69091
69881
|
*/
|
|
69092
69882
|
404: BrowserError;
|
|
69093
69883
|
/**
|
|
69094
|
-
* SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
69884
|
+
* SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
69095
69885
|
*/
|
|
69096
69886
|
409: BrowserError;
|
|
69887
|
+
/**
|
|
69888
|
+
* BROWSER_REVOKED
|
|
69889
|
+
*/
|
|
69890
|
+
410: BrowserError;
|
|
69097
69891
|
/**
|
|
69098
69892
|
* ACTION_RESULT_TOO_LARGE
|
|
69099
69893
|
*/
|
|
@@ -69115,7 +69909,7 @@ export type BrowserGetDebugErrors = {
|
|
|
69115
69909
|
*/
|
|
69116
69910
|
502: BrowserError;
|
|
69117
69911
|
/**
|
|
69118
|
-
* SERVICE_UNAVAILABLE
|
|
69912
|
+
* BROWSER_OFFLINE / SERVICE_UNAVAILABLE
|
|
69119
69913
|
*/
|
|
69120
69914
|
503: BrowserError;
|
|
69121
69915
|
/**
|
|
@@ -69169,17 +69963,21 @@ export type BrowserListEventsErrors = {
|
|
|
69169
69963
|
*/
|
|
69170
69964
|
402: BrowserError;
|
|
69171
69965
|
/**
|
|
69172
|
-
* PERMISSION_DENIED / ACCOUNT_SUSPENDED
|
|
69966
|
+
* PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
|
|
69173
69967
|
*/
|
|
69174
69968
|
403: BrowserError;
|
|
69175
69969
|
/**
|
|
69176
|
-
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
69970
|
+
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
69177
69971
|
*/
|
|
69178
69972
|
404: BrowserError;
|
|
69179
69973
|
/**
|
|
69180
|
-
* SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
69974
|
+
* SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
69181
69975
|
*/
|
|
69182
69976
|
409: BrowserError;
|
|
69977
|
+
/**
|
|
69978
|
+
* BROWSER_REVOKED
|
|
69979
|
+
*/
|
|
69980
|
+
410: BrowserError;
|
|
69183
69981
|
/**
|
|
69184
69982
|
* ACTION_RESULT_TOO_LARGE
|
|
69185
69983
|
*/
|
|
@@ -69201,7 +69999,7 @@ export type BrowserListEventsErrors = {
|
|
|
69201
69999
|
*/
|
|
69202
70000
|
502: BrowserError;
|
|
69203
70001
|
/**
|
|
69204
|
-
* SERVICE_UNAVAILABLE
|
|
70002
|
+
* BROWSER_OFFLINE / SERVICE_UNAVAILABLE
|
|
69205
70003
|
*/
|
|
69206
70004
|
503: BrowserError;
|
|
69207
70005
|
/**
|
|
@@ -69448,17 +70246,21 @@ export type BrowserRunPageActionErrors = {
|
|
|
69448
70246
|
*/
|
|
69449
70247
|
402: BrowserError;
|
|
69450
70248
|
/**
|
|
69451
|
-
* PERMISSION_DENIED / ACCOUNT_SUSPENDED
|
|
70249
|
+
* PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
|
|
69452
70250
|
*/
|
|
69453
70251
|
403: BrowserError;
|
|
69454
70252
|
/**
|
|
69455
|
-
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
70253
|
+
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
69456
70254
|
*/
|
|
69457
70255
|
404: BrowserError;
|
|
69458
70256
|
/**
|
|
69459
|
-
* SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
70257
|
+
* SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
69460
70258
|
*/
|
|
69461
70259
|
409: BrowserError;
|
|
70260
|
+
/**
|
|
70261
|
+
* BROWSER_REVOKED
|
|
70262
|
+
*/
|
|
70263
|
+
410: BrowserError;
|
|
69462
70264
|
/**
|
|
69463
70265
|
* ACTION_RESULT_TOO_LARGE
|
|
69464
70266
|
*/
|
|
@@ -69480,7 +70282,7 @@ export type BrowserRunPageActionErrors = {
|
|
|
69480
70282
|
*/
|
|
69481
70283
|
502: BrowserError;
|
|
69482
70284
|
/**
|
|
69483
|
-
* SERVICE_UNAVAILABLE
|
|
70285
|
+
* BROWSER_OFFLINE / SERVICE_UNAVAILABLE
|
|
69484
70286
|
*/
|
|
69485
70287
|
503: BrowserError;
|
|
69486
70288
|
/**
|
|
@@ -69666,17 +70468,21 @@ export type BrowserRequestHandoffErrors = {
|
|
|
69666
70468
|
*/
|
|
69667
70469
|
402: BrowserError;
|
|
69668
70470
|
/**
|
|
69669
|
-
* PERMISSION_DENIED / ACCOUNT_SUSPENDED
|
|
70471
|
+
* PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
|
|
69670
70472
|
*/
|
|
69671
70473
|
403: BrowserError;
|
|
69672
70474
|
/**
|
|
69673
|
-
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
70475
|
+
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
69674
70476
|
*/
|
|
69675
70477
|
404: BrowserError;
|
|
69676
70478
|
/**
|
|
69677
|
-
* SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
70479
|
+
* SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
69678
70480
|
*/
|
|
69679
70481
|
409: BrowserError;
|
|
70482
|
+
/**
|
|
70483
|
+
* BROWSER_REVOKED
|
|
70484
|
+
*/
|
|
70485
|
+
410: BrowserError;
|
|
69680
70486
|
/**
|
|
69681
70487
|
* ACTION_RESULT_TOO_LARGE
|
|
69682
70488
|
*/
|
|
@@ -69698,7 +70504,7 @@ export type BrowserRequestHandoffErrors = {
|
|
|
69698
70504
|
*/
|
|
69699
70505
|
502: BrowserError;
|
|
69700
70506
|
/**
|
|
69701
|
-
* SERVICE_UNAVAILABLE
|
|
70507
|
+
* BROWSER_OFFLINE / SERVICE_UNAVAILABLE
|
|
69702
70508
|
*/
|
|
69703
70509
|
503: BrowserError;
|
|
69704
70510
|
/**
|
|
@@ -69739,17 +70545,21 @@ export type BrowserCompleteHandoffErrors = {
|
|
|
69739
70545
|
*/
|
|
69740
70546
|
402: BrowserError;
|
|
69741
70547
|
/**
|
|
69742
|
-
* PERMISSION_DENIED / ACCOUNT_SUSPENDED
|
|
70548
|
+
* PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
|
|
69743
70549
|
*/
|
|
69744
70550
|
403: BrowserError;
|
|
69745
70551
|
/**
|
|
69746
|
-
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
70552
|
+
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
69747
70553
|
*/
|
|
69748
70554
|
404: BrowserError;
|
|
69749
70555
|
/**
|
|
69750
|
-
* SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
70556
|
+
* SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
69751
70557
|
*/
|
|
69752
70558
|
409: BrowserError;
|
|
70559
|
+
/**
|
|
70560
|
+
* BROWSER_REVOKED
|
|
70561
|
+
*/
|
|
70562
|
+
410: BrowserError;
|
|
69753
70563
|
/**
|
|
69754
70564
|
* ACTION_RESULT_TOO_LARGE
|
|
69755
70565
|
*/
|
|
@@ -69771,7 +70581,7 @@ export type BrowserCompleteHandoffErrors = {
|
|
|
69771
70581
|
*/
|
|
69772
70582
|
502: BrowserError;
|
|
69773
70583
|
/**
|
|
69774
|
-
* SERVICE_UNAVAILABLE
|
|
70584
|
+
* BROWSER_OFFLINE / SERVICE_UNAVAILABLE
|
|
69775
70585
|
*/
|
|
69776
70586
|
503: BrowserError;
|
|
69777
70587
|
/**
|
|
@@ -69821,268 +70631,21 @@ export type BrowserViewerHeartbeatErrors = {
|
|
|
69821
70631
|
*/
|
|
69822
70632
|
402: BrowserError;
|
|
69823
70633
|
/**
|
|
69824
|
-
* PERMISSION_DENIED / ACCOUNT_SUSPENDED
|
|
69825
|
-
*/
|
|
69826
|
-
403: BrowserError;
|
|
69827
|
-
/**
|
|
69828
|
-
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
69829
|
-
*/
|
|
69830
|
-
404: BrowserError;
|
|
69831
|
-
/**
|
|
69832
|
-
* SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
69833
|
-
*/
|
|
69834
|
-
409: BrowserError;
|
|
69835
|
-
/**
|
|
69836
|
-
* ACTION_RESULT_TOO_LARGE
|
|
69837
|
-
*/
|
|
69838
|
-
413: BrowserError;
|
|
69839
|
-
/**
|
|
69840
|
-
* CONCURRENCY_LIMIT / RATE_LIMITED / PROVIDER_CAPACITY
|
|
69841
|
-
*/
|
|
69842
|
-
429: BrowserError;
|
|
69843
|
-
/**
|
|
69844
|
-
* INTERNAL
|
|
69845
|
-
*/
|
|
69846
|
-
500: BrowserError;
|
|
69847
|
-
/**
|
|
69848
|
-
* NOT_IMPLEMENTED / PROVIDER_UNSUPPORTED
|
|
69849
|
-
*/
|
|
69850
|
-
501: BrowserError;
|
|
69851
|
-
/**
|
|
69852
|
-
* PROVIDER_FAILED
|
|
69853
|
-
*/
|
|
69854
|
-
502: BrowserError;
|
|
69855
|
-
/**
|
|
69856
|
-
* SERVICE_UNAVAILABLE
|
|
69857
|
-
*/
|
|
69858
|
-
503: BrowserError;
|
|
69859
|
-
/**
|
|
69860
|
-
* ACTION_TIMEOUT
|
|
69861
|
-
*/
|
|
69862
|
-
504: BrowserError;
|
|
69863
|
-
};
|
|
69864
|
-
export type BrowserViewerHeartbeatError = BrowserViewerHeartbeatErrors[keyof BrowserViewerHeartbeatErrors];
|
|
69865
|
-
export type BrowserViewerHeartbeatResponses = {
|
|
69866
|
-
/**
|
|
69867
|
-
* 请求成功。
|
|
69868
|
-
*/
|
|
69869
|
-
200: {
|
|
69870
|
-
/**
|
|
69871
|
-
* 心跳已被接受,成功时固定返回 true。
|
|
69872
|
-
*/
|
|
69873
|
-
ok: true;
|
|
69874
|
-
};
|
|
69875
|
-
};
|
|
69876
|
-
export type BrowserViewerHeartbeatResponse = BrowserViewerHeartbeatResponses[keyof BrowserViewerHeartbeatResponses];
|
|
69877
|
-
export type BrowserGetSessionFrameData = {
|
|
69878
|
-
body?: never;
|
|
69879
|
-
path: {
|
|
69880
|
-
/**
|
|
69881
|
-
* 浏览器会话 ID;使用创建或列出会话返回的 id,以 bss_ 开头。
|
|
69882
|
-
*/
|
|
69883
|
-
sessionId: string;
|
|
69884
|
-
};
|
|
69885
|
-
query?: never;
|
|
69886
|
-
url: '/browser/v1/sessions/{sessionId}/frame';
|
|
69887
|
-
};
|
|
69888
|
-
export type BrowserGetSessionFrameErrors = {
|
|
69889
|
-
/**
|
|
69890
|
-
* INVALID_PARAMS / INVALID_FILTER / INVALID_PAGE_TOKEN
|
|
69891
|
-
*/
|
|
69892
|
-
400: BrowserError;
|
|
69893
|
-
/**
|
|
69894
|
-
* UNAUTHENTICATED / CONNECT_SIGNATURE_INVALID
|
|
69895
|
-
*/
|
|
69896
|
-
401: BrowserError;
|
|
69897
|
-
/**
|
|
69898
|
-
* INSUFFICIENT_BALANCE / QUOTA_EXHAUSTED
|
|
69899
|
-
*/
|
|
69900
|
-
402: BrowserError;
|
|
69901
|
-
/**
|
|
69902
|
-
* PERMISSION_DENIED / ACCOUNT_SUSPENDED
|
|
69903
|
-
*/
|
|
69904
|
-
403: BrowserError;
|
|
69905
|
-
/**
|
|
69906
|
-
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
69907
|
-
*/
|
|
69908
|
-
404: BrowserError;
|
|
69909
|
-
/**
|
|
69910
|
-
* SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
69911
|
-
*/
|
|
69912
|
-
409: BrowserError;
|
|
69913
|
-
/**
|
|
69914
|
-
* ACTION_RESULT_TOO_LARGE
|
|
69915
|
-
*/
|
|
69916
|
-
413: BrowserError;
|
|
69917
|
-
/**
|
|
69918
|
-
* CONCURRENCY_LIMIT / RATE_LIMITED / PROVIDER_CAPACITY
|
|
69919
|
-
*/
|
|
69920
|
-
429: BrowserError;
|
|
69921
|
-
/**
|
|
69922
|
-
* INTERNAL
|
|
69923
|
-
*/
|
|
69924
|
-
500: BrowserError;
|
|
69925
|
-
/**
|
|
69926
|
-
* NOT_IMPLEMENTED / PROVIDER_UNSUPPORTED
|
|
69927
|
-
*/
|
|
69928
|
-
501: BrowserError;
|
|
69929
|
-
/**
|
|
69930
|
-
* PROVIDER_FAILED
|
|
69931
|
-
*/
|
|
69932
|
-
502: BrowserError;
|
|
69933
|
-
/**
|
|
69934
|
-
* SERVICE_UNAVAILABLE
|
|
69935
|
-
*/
|
|
69936
|
-
503: BrowserError;
|
|
69937
|
-
/**
|
|
69938
|
-
* ACTION_TIMEOUT
|
|
69939
|
-
*/
|
|
69940
|
-
504: BrowserError;
|
|
69941
|
-
};
|
|
69942
|
-
export type BrowserGetSessionFrameError = BrowserGetSessionFrameErrors[keyof BrowserGetSessionFrameErrors];
|
|
69943
|
-
export type BrowserGetSessionFrameResponses = {
|
|
69944
|
-
/**
|
|
69945
|
-
* JPEG 画面帧,最多 2 MiB。
|
|
69946
|
-
*/
|
|
69947
|
-
200: Blob | File;
|
|
69948
|
-
};
|
|
69949
|
-
export type BrowserGetSessionFrameResponse = BrowserGetSessionFrameResponses[keyof BrowserGetSessionFrameResponses];
|
|
69950
|
-
export type BrowserListContextsData = {
|
|
69951
|
-
body?: never;
|
|
69952
|
-
path?: never;
|
|
69953
|
-
query?: {
|
|
69954
|
-
/**
|
|
69955
|
-
* 按登录态名称精确匹配;名称在当前账户内唯一,所以最多返回一条。省略时列出全部登录态。
|
|
69956
|
-
*/
|
|
69957
|
-
name?: string;
|
|
69958
|
-
/**
|
|
69959
|
-
* 登录态 ID;使用创建或列出登录态返回的 id,以 bsc_ 开头。
|
|
69960
|
-
*/
|
|
69961
|
-
cursor?: string;
|
|
69962
|
-
/**
|
|
69963
|
-
* 每页最多返回的登录态数量;默认 25,范围 1–100。
|
|
69964
|
-
*/
|
|
69965
|
-
limit?: number;
|
|
69966
|
-
};
|
|
69967
|
-
url: '/browser/v1/contexts';
|
|
69968
|
-
};
|
|
69969
|
-
export type BrowserListContextsErrors = {
|
|
69970
|
-
/**
|
|
69971
|
-
* INVALID_PARAMS / INVALID_FILTER / INVALID_PAGE_TOKEN
|
|
69972
|
-
*/
|
|
69973
|
-
400: BrowserError;
|
|
69974
|
-
/**
|
|
69975
|
-
* UNAUTHENTICATED / CONNECT_SIGNATURE_INVALID
|
|
69976
|
-
*/
|
|
69977
|
-
401: BrowserError;
|
|
69978
|
-
/**
|
|
69979
|
-
* INSUFFICIENT_BALANCE / QUOTA_EXHAUSTED
|
|
69980
|
-
*/
|
|
69981
|
-
402: BrowserError;
|
|
69982
|
-
/**
|
|
69983
|
-
* PERMISSION_DENIED / ACCOUNT_SUSPENDED
|
|
70634
|
+
* PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
|
|
69984
70635
|
*/
|
|
69985
70636
|
403: BrowserError;
|
|
69986
70637
|
/**
|
|
69987
|
-
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
70638
|
+
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
69988
70639
|
*/
|
|
69989
70640
|
404: BrowserError;
|
|
69990
70641
|
/**
|
|
69991
|
-
* SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
70642
|
+
* SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
69992
70643
|
*/
|
|
69993
70644
|
409: BrowserError;
|
|
69994
70645
|
/**
|
|
69995
|
-
*
|
|
69996
|
-
*/
|
|
69997
|
-
413: BrowserError;
|
|
69998
|
-
/**
|
|
69999
|
-
* CONCURRENCY_LIMIT / RATE_LIMITED / PROVIDER_CAPACITY
|
|
70646
|
+
* BROWSER_REVOKED
|
|
70000
70647
|
*/
|
|
70001
|
-
|
|
70002
|
-
/**
|
|
70003
|
-
* INTERNAL
|
|
70004
|
-
*/
|
|
70005
|
-
500: BrowserError;
|
|
70006
|
-
/**
|
|
70007
|
-
* NOT_IMPLEMENTED / PROVIDER_UNSUPPORTED
|
|
70008
|
-
*/
|
|
70009
|
-
501: BrowserError;
|
|
70010
|
-
/**
|
|
70011
|
-
* PROVIDER_FAILED
|
|
70012
|
-
*/
|
|
70013
|
-
502: BrowserError;
|
|
70014
|
-
/**
|
|
70015
|
-
* SERVICE_UNAVAILABLE
|
|
70016
|
-
*/
|
|
70017
|
-
503: BrowserError;
|
|
70018
|
-
/**
|
|
70019
|
-
* ACTION_TIMEOUT
|
|
70020
|
-
*/
|
|
70021
|
-
504: BrowserError;
|
|
70022
|
-
};
|
|
70023
|
-
export type BrowserListContextsError = BrowserListContextsErrors[keyof BrowserListContextsErrors];
|
|
70024
|
-
export type BrowserListContextsResponses = {
|
|
70025
|
-
/**
|
|
70026
|
-
* 分页查询结果,包含本页记录和下一页游标。
|
|
70027
|
-
*/
|
|
70028
|
-
200: {
|
|
70029
|
-
/**
|
|
70030
|
-
* 本页查询匹配的记录;没有匹配项时为空数组。
|
|
70031
|
-
*/
|
|
70032
|
-
data: Array<BrowserContext>;
|
|
70033
|
-
/**
|
|
70034
|
-
* 下一页游标;原样传入 cursor,null 表示没有更多结果。
|
|
70035
|
-
*/
|
|
70036
|
-
nextCursor: string | null;
|
|
70037
|
-
};
|
|
70038
|
-
};
|
|
70039
|
-
export type BrowserListContextsResponse = BrowserListContextsResponses[keyof BrowserListContextsResponses];
|
|
70040
|
-
export type BrowserCreateContextData = {
|
|
70041
|
-
body: {
|
|
70042
|
-
/**
|
|
70043
|
-
* 兼容项目字段;传入值被忽略,创建结果的 projectId 固定为 default。
|
|
70044
|
-
*/
|
|
70045
|
-
projectId?: string;
|
|
70046
|
-
/**
|
|
70047
|
-
* 登录态名称;非空时为 1–128 个 ASCII 字母、数字或 . _ : -,在当前账户内唯一;空字符串表示不设名称或清除名称。
|
|
70048
|
-
*/
|
|
70049
|
-
name?: '' | unknown;
|
|
70050
|
-
/**
|
|
70051
|
-
* 自定义字符串标签;最多 32 项,键最多 128 个 UTF-8 字节,值最多 1024 个 UTF-8 字节。
|
|
70052
|
-
*/
|
|
70053
|
-
labels?: {
|
|
70054
|
-
[key: string]: string;
|
|
70055
|
-
};
|
|
70056
|
-
};
|
|
70057
|
-
path?: never;
|
|
70058
|
-
query?: never;
|
|
70059
|
-
url: '/browser/v1/contexts';
|
|
70060
|
-
};
|
|
70061
|
-
export type BrowserCreateContextErrors = {
|
|
70062
|
-
/**
|
|
70063
|
-
* INVALID_PARAMS / INVALID_FILTER / INVALID_PAGE_TOKEN
|
|
70064
|
-
*/
|
|
70065
|
-
400: BrowserError;
|
|
70066
|
-
/**
|
|
70067
|
-
* UNAUTHENTICATED / CONNECT_SIGNATURE_INVALID
|
|
70068
|
-
*/
|
|
70069
|
-
401: BrowserError;
|
|
70070
|
-
/**
|
|
70071
|
-
* INSUFFICIENT_BALANCE / QUOTA_EXHAUSTED
|
|
70072
|
-
*/
|
|
70073
|
-
402: BrowserError;
|
|
70074
|
-
/**
|
|
70075
|
-
* PERMISSION_DENIED / ACCOUNT_SUSPENDED
|
|
70076
|
-
*/
|
|
70077
|
-
403: BrowserError;
|
|
70078
|
-
/**
|
|
70079
|
-
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
70080
|
-
*/
|
|
70081
|
-
404: BrowserError;
|
|
70082
|
-
/**
|
|
70083
|
-
* SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
70084
|
-
*/
|
|
70085
|
-
409: BrowserError;
|
|
70648
|
+
410: BrowserError;
|
|
70086
70649
|
/**
|
|
70087
70650
|
* ACTION_RESULT_TOO_LARGE
|
|
70088
70651
|
*/
|
|
@@ -70104,7 +70667,300 @@ export type BrowserCreateContextErrors = {
|
|
|
70104
70667
|
*/
|
|
70105
70668
|
502: BrowserError;
|
|
70106
70669
|
/**
|
|
70107
|
-
* SERVICE_UNAVAILABLE
|
|
70670
|
+
* BROWSER_OFFLINE / SERVICE_UNAVAILABLE
|
|
70671
|
+
*/
|
|
70672
|
+
503: BrowserError;
|
|
70673
|
+
/**
|
|
70674
|
+
* ACTION_TIMEOUT
|
|
70675
|
+
*/
|
|
70676
|
+
504: BrowserError;
|
|
70677
|
+
};
|
|
70678
|
+
export type BrowserViewerHeartbeatError = BrowserViewerHeartbeatErrors[keyof BrowserViewerHeartbeatErrors];
|
|
70679
|
+
export type BrowserViewerHeartbeatResponses = {
|
|
70680
|
+
/**
|
|
70681
|
+
* 请求成功。
|
|
70682
|
+
*/
|
|
70683
|
+
200: {
|
|
70684
|
+
/**
|
|
70685
|
+
* 心跳已被接受,成功时固定返回 true。
|
|
70686
|
+
*/
|
|
70687
|
+
ok: true;
|
|
70688
|
+
};
|
|
70689
|
+
};
|
|
70690
|
+
export type BrowserViewerHeartbeatResponse = BrowserViewerHeartbeatResponses[keyof BrowserViewerHeartbeatResponses];
|
|
70691
|
+
export type BrowserGetSessionFrameData = {
|
|
70692
|
+
body?: never;
|
|
70693
|
+
path: {
|
|
70694
|
+
/**
|
|
70695
|
+
* 浏览器会话 ID;使用创建或列出会话返回的 id,以 bss_ 开头。
|
|
70696
|
+
*/
|
|
70697
|
+
sessionId: string;
|
|
70698
|
+
};
|
|
70699
|
+
query?: never;
|
|
70700
|
+
url: '/browser/v1/sessions/{sessionId}/frame';
|
|
70701
|
+
};
|
|
70702
|
+
export type BrowserGetSessionFrameErrors = {
|
|
70703
|
+
/**
|
|
70704
|
+
* INVALID_PARAMS / INVALID_FILTER / INVALID_PAGE_TOKEN
|
|
70705
|
+
*/
|
|
70706
|
+
400: BrowserError;
|
|
70707
|
+
/**
|
|
70708
|
+
* UNAUTHENTICATED / CONNECT_SIGNATURE_INVALID
|
|
70709
|
+
*/
|
|
70710
|
+
401: BrowserError;
|
|
70711
|
+
/**
|
|
70712
|
+
* INSUFFICIENT_BALANCE / QUOTA_EXHAUSTED
|
|
70713
|
+
*/
|
|
70714
|
+
402: BrowserError;
|
|
70715
|
+
/**
|
|
70716
|
+
* PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
|
|
70717
|
+
*/
|
|
70718
|
+
403: BrowserError;
|
|
70719
|
+
/**
|
|
70720
|
+
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
70721
|
+
*/
|
|
70722
|
+
404: BrowserError;
|
|
70723
|
+
/**
|
|
70724
|
+
* SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
70725
|
+
*/
|
|
70726
|
+
409: BrowserError;
|
|
70727
|
+
/**
|
|
70728
|
+
* BROWSER_REVOKED
|
|
70729
|
+
*/
|
|
70730
|
+
410: BrowserError;
|
|
70731
|
+
/**
|
|
70732
|
+
* ACTION_RESULT_TOO_LARGE
|
|
70733
|
+
*/
|
|
70734
|
+
413: BrowserError;
|
|
70735
|
+
/**
|
|
70736
|
+
* CONCURRENCY_LIMIT / RATE_LIMITED / PROVIDER_CAPACITY
|
|
70737
|
+
*/
|
|
70738
|
+
429: BrowserError;
|
|
70739
|
+
/**
|
|
70740
|
+
* INTERNAL
|
|
70741
|
+
*/
|
|
70742
|
+
500: BrowserError;
|
|
70743
|
+
/**
|
|
70744
|
+
* NOT_IMPLEMENTED / PROVIDER_UNSUPPORTED
|
|
70745
|
+
*/
|
|
70746
|
+
501: BrowserError;
|
|
70747
|
+
/**
|
|
70748
|
+
* PROVIDER_FAILED
|
|
70749
|
+
*/
|
|
70750
|
+
502: BrowserError;
|
|
70751
|
+
/**
|
|
70752
|
+
* BROWSER_OFFLINE / SERVICE_UNAVAILABLE
|
|
70753
|
+
*/
|
|
70754
|
+
503: BrowserError;
|
|
70755
|
+
/**
|
|
70756
|
+
* ACTION_TIMEOUT
|
|
70757
|
+
*/
|
|
70758
|
+
504: BrowserError;
|
|
70759
|
+
};
|
|
70760
|
+
export type BrowserGetSessionFrameError = BrowserGetSessionFrameErrors[keyof BrowserGetSessionFrameErrors];
|
|
70761
|
+
export type BrowserGetSessionFrameResponses = {
|
|
70762
|
+
/**
|
|
70763
|
+
* JPEG 画面帧,最多 2 MiB。
|
|
70764
|
+
*/
|
|
70765
|
+
200: Blob | File;
|
|
70766
|
+
};
|
|
70767
|
+
export type BrowserGetSessionFrameResponse = BrowserGetSessionFrameResponses[keyof BrowserGetSessionFrameResponses];
|
|
70768
|
+
export type BrowserListContextsData = {
|
|
70769
|
+
body?: never;
|
|
70770
|
+
path?: never;
|
|
70771
|
+
query?: {
|
|
70772
|
+
/**
|
|
70773
|
+
* 按登录态名称精确匹配;名称在当前账户内唯一,所以最多返回一条。省略时列出全部登录态。
|
|
70774
|
+
*/
|
|
70775
|
+
name?: string;
|
|
70776
|
+
/**
|
|
70777
|
+
* 登录态 ID;使用创建或列出登录态返回的 id,以 bsc_ 开头。
|
|
70778
|
+
*/
|
|
70779
|
+
cursor?: string;
|
|
70780
|
+
/**
|
|
70781
|
+
* 每页最多返回的登录态数量;默认 25,范围 1–100。
|
|
70782
|
+
*/
|
|
70783
|
+
limit?: number;
|
|
70784
|
+
};
|
|
70785
|
+
url: '/browser/v1/contexts';
|
|
70786
|
+
};
|
|
70787
|
+
export type BrowserListContextsErrors = {
|
|
70788
|
+
/**
|
|
70789
|
+
* INVALID_PARAMS / INVALID_FILTER / INVALID_PAGE_TOKEN
|
|
70790
|
+
*/
|
|
70791
|
+
400: BrowserError;
|
|
70792
|
+
/**
|
|
70793
|
+
* UNAUTHENTICATED / CONNECT_SIGNATURE_INVALID
|
|
70794
|
+
*/
|
|
70795
|
+
401: BrowserError;
|
|
70796
|
+
/**
|
|
70797
|
+
* INSUFFICIENT_BALANCE / QUOTA_EXHAUSTED
|
|
70798
|
+
*/
|
|
70799
|
+
402: BrowserError;
|
|
70800
|
+
/**
|
|
70801
|
+
* PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
|
|
70802
|
+
*/
|
|
70803
|
+
403: BrowserError;
|
|
70804
|
+
/**
|
|
70805
|
+
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
70806
|
+
*/
|
|
70807
|
+
404: BrowserError;
|
|
70808
|
+
/**
|
|
70809
|
+
* SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
70810
|
+
*/
|
|
70811
|
+
409: BrowserError;
|
|
70812
|
+
/**
|
|
70813
|
+
* BROWSER_REVOKED
|
|
70814
|
+
*/
|
|
70815
|
+
410: BrowserError;
|
|
70816
|
+
/**
|
|
70817
|
+
* ACTION_RESULT_TOO_LARGE
|
|
70818
|
+
*/
|
|
70819
|
+
413: BrowserError;
|
|
70820
|
+
/**
|
|
70821
|
+
* CONCURRENCY_LIMIT / RATE_LIMITED / PROVIDER_CAPACITY
|
|
70822
|
+
*/
|
|
70823
|
+
429: BrowserError;
|
|
70824
|
+
/**
|
|
70825
|
+
* INTERNAL
|
|
70826
|
+
*/
|
|
70827
|
+
500: BrowserError;
|
|
70828
|
+
/**
|
|
70829
|
+
* NOT_IMPLEMENTED / PROVIDER_UNSUPPORTED
|
|
70830
|
+
*/
|
|
70831
|
+
501: BrowserError;
|
|
70832
|
+
/**
|
|
70833
|
+
* PROVIDER_FAILED
|
|
70834
|
+
*/
|
|
70835
|
+
502: BrowserError;
|
|
70836
|
+
/**
|
|
70837
|
+
* BROWSER_OFFLINE / SERVICE_UNAVAILABLE
|
|
70838
|
+
*/
|
|
70839
|
+
503: BrowserError;
|
|
70840
|
+
/**
|
|
70841
|
+
* ACTION_TIMEOUT
|
|
70842
|
+
*/
|
|
70843
|
+
504: BrowserError;
|
|
70844
|
+
};
|
|
70845
|
+
export type BrowserListContextsError = BrowserListContextsErrors[keyof BrowserListContextsErrors];
|
|
70846
|
+
export type BrowserListContextsResponses = {
|
|
70847
|
+
/**
|
|
70848
|
+
* 分页查询结果,包含本页记录和下一页游标。
|
|
70849
|
+
*/
|
|
70850
|
+
200: {
|
|
70851
|
+
/**
|
|
70852
|
+
* 本页查询匹配的记录;没有匹配项时为空数组。
|
|
70853
|
+
*/
|
|
70854
|
+
data: Array<BrowserContext>;
|
|
70855
|
+
/**
|
|
70856
|
+
* 下一页游标;原样传入 cursor,null 表示没有更多结果。
|
|
70857
|
+
*/
|
|
70858
|
+
nextCursor: string | null;
|
|
70859
|
+
};
|
|
70860
|
+
};
|
|
70861
|
+
export type BrowserListContextsResponse = BrowserListContextsResponses[keyof BrowserListContextsResponses];
|
|
70862
|
+
export type BrowserCreateContextData = {
|
|
70863
|
+
body: {
|
|
70864
|
+
/**
|
|
70865
|
+
* 兼容项目字段;传入值被忽略,创建结果的 projectId 固定为 default。
|
|
70866
|
+
*/
|
|
70867
|
+
projectId?: string;
|
|
70868
|
+
/**
|
|
70869
|
+
* 登录态名称;非空时为 1–128 个 ASCII 字母、数字或 . _ : -,在当前账户内唯一;空字符串表示不设名称或清除名称。
|
|
70870
|
+
*/
|
|
70871
|
+
name?: '' | unknown;
|
|
70872
|
+
/**
|
|
70873
|
+
* 自定义字符串标签;最多 32 项,键最多 128 个 UTF-8 字节,值最多 1024 个 UTF-8 字节。
|
|
70874
|
+
*/
|
|
70875
|
+
labels?: {
|
|
70876
|
+
[key: string]: string;
|
|
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
|
+
};
|
|
70908
|
+
};
|
|
70909
|
+
path?: never;
|
|
70910
|
+
query?: never;
|
|
70911
|
+
url: '/browser/v1/contexts';
|
|
70912
|
+
};
|
|
70913
|
+
export type BrowserCreateContextErrors = {
|
|
70914
|
+
/**
|
|
70915
|
+
* INVALID_PARAMS / INVALID_FILTER / INVALID_PAGE_TOKEN
|
|
70916
|
+
*/
|
|
70917
|
+
400: BrowserError;
|
|
70918
|
+
/**
|
|
70919
|
+
* UNAUTHENTICATED / CONNECT_SIGNATURE_INVALID
|
|
70920
|
+
*/
|
|
70921
|
+
401: BrowserError;
|
|
70922
|
+
/**
|
|
70923
|
+
* INSUFFICIENT_BALANCE / QUOTA_EXHAUSTED
|
|
70924
|
+
*/
|
|
70925
|
+
402: BrowserError;
|
|
70926
|
+
/**
|
|
70927
|
+
* PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
|
|
70928
|
+
*/
|
|
70929
|
+
403: BrowserError;
|
|
70930
|
+
/**
|
|
70931
|
+
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
70932
|
+
*/
|
|
70933
|
+
404: BrowserError;
|
|
70934
|
+
/**
|
|
70935
|
+
* SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
70936
|
+
*/
|
|
70937
|
+
409: BrowserError;
|
|
70938
|
+
/**
|
|
70939
|
+
* BROWSER_REVOKED
|
|
70940
|
+
*/
|
|
70941
|
+
410: BrowserError;
|
|
70942
|
+
/**
|
|
70943
|
+
* ACTION_RESULT_TOO_LARGE
|
|
70944
|
+
*/
|
|
70945
|
+
413: BrowserError;
|
|
70946
|
+
/**
|
|
70947
|
+
* CONCURRENCY_LIMIT / RATE_LIMITED / PROVIDER_CAPACITY
|
|
70948
|
+
*/
|
|
70949
|
+
429: BrowserError;
|
|
70950
|
+
/**
|
|
70951
|
+
* INTERNAL
|
|
70952
|
+
*/
|
|
70953
|
+
500: BrowserError;
|
|
70954
|
+
/**
|
|
70955
|
+
* NOT_IMPLEMENTED / PROVIDER_UNSUPPORTED
|
|
70956
|
+
*/
|
|
70957
|
+
501: BrowserError;
|
|
70958
|
+
/**
|
|
70959
|
+
* PROVIDER_FAILED
|
|
70960
|
+
*/
|
|
70961
|
+
502: BrowserError;
|
|
70962
|
+
/**
|
|
70963
|
+
* BROWSER_OFFLINE / SERVICE_UNAVAILABLE
|
|
70108
70964
|
*/
|
|
70109
70965
|
503: BrowserError;
|
|
70110
70966
|
/**
|
|
@@ -70145,17 +71001,21 @@ export type BrowserDeleteContextErrors = {
|
|
|
70145
71001
|
*/
|
|
70146
71002
|
402: BrowserError;
|
|
70147
71003
|
/**
|
|
70148
|
-
* PERMISSION_DENIED / ACCOUNT_SUSPENDED
|
|
71004
|
+
* PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
|
|
70149
71005
|
*/
|
|
70150
71006
|
403: BrowserError;
|
|
70151
71007
|
/**
|
|
70152
|
-
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
71008
|
+
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
70153
71009
|
*/
|
|
70154
71010
|
404: BrowserError;
|
|
70155
71011
|
/**
|
|
70156
|
-
* SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
71012
|
+
* SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
70157
71013
|
*/
|
|
70158
71014
|
409: BrowserError;
|
|
71015
|
+
/**
|
|
71016
|
+
* BROWSER_REVOKED
|
|
71017
|
+
*/
|
|
71018
|
+
410: BrowserError;
|
|
70159
71019
|
/**
|
|
70160
71020
|
* ACTION_RESULT_TOO_LARGE
|
|
70161
71021
|
*/
|
|
@@ -70177,7 +71037,7 @@ export type BrowserDeleteContextErrors = {
|
|
|
70177
71037
|
*/
|
|
70178
71038
|
502: BrowserError;
|
|
70179
71039
|
/**
|
|
70180
|
-
* SERVICE_UNAVAILABLE
|
|
71040
|
+
* BROWSER_OFFLINE / SERVICE_UNAVAILABLE
|
|
70181
71041
|
*/
|
|
70182
71042
|
503: BrowserError;
|
|
70183
71043
|
/**
|
|
@@ -70223,17 +71083,614 @@ export type BrowserGetContextErrors = {
|
|
|
70223
71083
|
*/
|
|
70224
71084
|
402: BrowserError;
|
|
70225
71085
|
/**
|
|
70226
|
-
* PERMISSION_DENIED / ACCOUNT_SUSPENDED
|
|
71086
|
+
* PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
|
|
71087
|
+
*/
|
|
71088
|
+
403: BrowserError;
|
|
71089
|
+
/**
|
|
71090
|
+
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
71091
|
+
*/
|
|
71092
|
+
404: BrowserError;
|
|
71093
|
+
/**
|
|
71094
|
+
* SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
71095
|
+
*/
|
|
71096
|
+
409: BrowserError;
|
|
71097
|
+
/**
|
|
71098
|
+
* BROWSER_REVOKED
|
|
71099
|
+
*/
|
|
71100
|
+
410: BrowserError;
|
|
71101
|
+
/**
|
|
71102
|
+
* ACTION_RESULT_TOO_LARGE
|
|
71103
|
+
*/
|
|
71104
|
+
413: BrowserError;
|
|
71105
|
+
/**
|
|
71106
|
+
* CONCURRENCY_LIMIT / RATE_LIMITED / PROVIDER_CAPACITY
|
|
71107
|
+
*/
|
|
71108
|
+
429: BrowserError;
|
|
71109
|
+
/**
|
|
71110
|
+
* INTERNAL
|
|
71111
|
+
*/
|
|
71112
|
+
500: BrowserError;
|
|
71113
|
+
/**
|
|
71114
|
+
* NOT_IMPLEMENTED / PROVIDER_UNSUPPORTED
|
|
71115
|
+
*/
|
|
71116
|
+
501: BrowserError;
|
|
71117
|
+
/**
|
|
71118
|
+
* PROVIDER_FAILED
|
|
71119
|
+
*/
|
|
71120
|
+
502: BrowserError;
|
|
71121
|
+
/**
|
|
71122
|
+
* BROWSER_OFFLINE / SERVICE_UNAVAILABLE
|
|
71123
|
+
*/
|
|
71124
|
+
503: BrowserError;
|
|
71125
|
+
/**
|
|
71126
|
+
* ACTION_TIMEOUT
|
|
71127
|
+
*/
|
|
71128
|
+
504: BrowserError;
|
|
71129
|
+
};
|
|
71130
|
+
export type BrowserGetContextError = BrowserGetContextErrors[keyof BrowserGetContextErrors];
|
|
71131
|
+
export type BrowserGetContextResponses = {
|
|
71132
|
+
/**
|
|
71133
|
+
* 请求成功。
|
|
71134
|
+
*/
|
|
71135
|
+
200: BrowserContext;
|
|
71136
|
+
};
|
|
71137
|
+
export type BrowserGetContextResponse = BrowserGetContextResponses[keyof BrowserGetContextResponses];
|
|
71138
|
+
export type BrowserUpdateContextData = {
|
|
71139
|
+
body: {
|
|
71140
|
+
/**
|
|
71141
|
+
* 登录态名称;非空时为 1–128 个 ASCII 字母、数字或 . _ : -,在当前账户内唯一;空字符串表示不设名称或清除名称。
|
|
71142
|
+
*/
|
|
71143
|
+
name?: '' | unknown;
|
|
71144
|
+
/**
|
|
71145
|
+
* 自定义字符串标签;最多 32 项,键最多 128 个 UTF-8 字节,值最多 1024 个 UTF-8 字节。 更新时整体替换;空对象清除标签,省略则保留。
|
|
71146
|
+
*/
|
|
71147
|
+
labels?: {
|
|
71148
|
+
[key: string]: string;
|
|
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;
|
|
71180
|
+
};
|
|
71181
|
+
path: {
|
|
71182
|
+
/**
|
|
71183
|
+
* 登录态 ID;使用创建或列出登录态返回的 id,以 bsc_ 开头。
|
|
71184
|
+
*/
|
|
71185
|
+
contextId: string;
|
|
71186
|
+
};
|
|
71187
|
+
query?: never;
|
|
71188
|
+
url: '/browser/v1/contexts/{contextId}';
|
|
71189
|
+
};
|
|
71190
|
+
export type BrowserUpdateContextErrors = {
|
|
71191
|
+
/**
|
|
71192
|
+
* INVALID_PARAMS / INVALID_FILTER / INVALID_PAGE_TOKEN
|
|
71193
|
+
*/
|
|
71194
|
+
400: BrowserError;
|
|
71195
|
+
/**
|
|
71196
|
+
* UNAUTHENTICATED / CONNECT_SIGNATURE_INVALID
|
|
71197
|
+
*/
|
|
71198
|
+
401: BrowserError;
|
|
71199
|
+
/**
|
|
71200
|
+
* INSUFFICIENT_BALANCE / QUOTA_EXHAUSTED
|
|
71201
|
+
*/
|
|
71202
|
+
402: BrowserError;
|
|
71203
|
+
/**
|
|
71204
|
+
* PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
|
|
71205
|
+
*/
|
|
71206
|
+
403: BrowserError;
|
|
71207
|
+
/**
|
|
71208
|
+
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
71209
|
+
*/
|
|
71210
|
+
404: BrowserError;
|
|
71211
|
+
/**
|
|
71212
|
+
* SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
71213
|
+
*/
|
|
71214
|
+
409: BrowserError;
|
|
71215
|
+
/**
|
|
71216
|
+
* BROWSER_REVOKED
|
|
71217
|
+
*/
|
|
71218
|
+
410: BrowserError;
|
|
71219
|
+
/**
|
|
71220
|
+
* ACTION_RESULT_TOO_LARGE
|
|
71221
|
+
*/
|
|
71222
|
+
413: BrowserError;
|
|
71223
|
+
/**
|
|
71224
|
+
* CONCURRENCY_LIMIT / RATE_LIMITED / PROVIDER_CAPACITY
|
|
71225
|
+
*/
|
|
71226
|
+
429: BrowserError;
|
|
71227
|
+
/**
|
|
71228
|
+
* INTERNAL
|
|
71229
|
+
*/
|
|
71230
|
+
500: BrowserError;
|
|
71231
|
+
/**
|
|
71232
|
+
* NOT_IMPLEMENTED / PROVIDER_UNSUPPORTED
|
|
71233
|
+
*/
|
|
71234
|
+
501: BrowserError;
|
|
71235
|
+
/**
|
|
71236
|
+
* PROVIDER_FAILED
|
|
71237
|
+
*/
|
|
71238
|
+
502: BrowserError;
|
|
71239
|
+
/**
|
|
71240
|
+
* BROWSER_OFFLINE / SERVICE_UNAVAILABLE
|
|
71241
|
+
*/
|
|
71242
|
+
503: BrowserError;
|
|
71243
|
+
/**
|
|
71244
|
+
* ACTION_TIMEOUT
|
|
71245
|
+
*/
|
|
71246
|
+
504: BrowserError;
|
|
71247
|
+
};
|
|
71248
|
+
export type BrowserUpdateContextError = BrowserUpdateContextErrors[keyof BrowserUpdateContextErrors];
|
|
71249
|
+
export type BrowserUpdateContextResponses = {
|
|
71250
|
+
/**
|
|
71251
|
+
* 请求成功。
|
|
71252
|
+
*/
|
|
71253
|
+
200: BrowserContext;
|
|
71254
|
+
};
|
|
71255
|
+
export type BrowserUpdateContextResponse = BrowserUpdateContextResponses[keyof BrowserUpdateContextResponses];
|
|
71256
|
+
export type BrowserCreateByobPairingData = {
|
|
71257
|
+
body?: never;
|
|
71258
|
+
path?: never;
|
|
71259
|
+
query?: never;
|
|
71260
|
+
url: '/browser/v1/byob/pairings';
|
|
71261
|
+
};
|
|
71262
|
+
export type BrowserCreateByobPairingErrors = {
|
|
71263
|
+
/**
|
|
71264
|
+
* INVALID_PARAMS / INVALID_FILTER / INVALID_PAGE_TOKEN
|
|
71265
|
+
*/
|
|
71266
|
+
400: BrowserError;
|
|
71267
|
+
/**
|
|
71268
|
+
* UNAUTHENTICATED / CONNECT_SIGNATURE_INVALID
|
|
71269
|
+
*/
|
|
71270
|
+
401: BrowserError;
|
|
71271
|
+
/**
|
|
71272
|
+
* INSUFFICIENT_BALANCE / QUOTA_EXHAUSTED
|
|
71273
|
+
*/
|
|
71274
|
+
402: BrowserError;
|
|
71275
|
+
/**
|
|
71276
|
+
* PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
|
|
71277
|
+
*/
|
|
71278
|
+
403: BrowserError;
|
|
71279
|
+
/**
|
|
71280
|
+
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
71281
|
+
*/
|
|
71282
|
+
404: BrowserError;
|
|
71283
|
+
/**
|
|
71284
|
+
* SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
71285
|
+
*/
|
|
71286
|
+
409: BrowserError;
|
|
71287
|
+
/**
|
|
71288
|
+
* BROWSER_REVOKED
|
|
71289
|
+
*/
|
|
71290
|
+
410: BrowserError;
|
|
71291
|
+
/**
|
|
71292
|
+
* ACTION_RESULT_TOO_LARGE
|
|
71293
|
+
*/
|
|
71294
|
+
413: BrowserError;
|
|
71295
|
+
/**
|
|
71296
|
+
* CONCURRENCY_LIMIT / RATE_LIMITED / PROVIDER_CAPACITY
|
|
71297
|
+
*/
|
|
71298
|
+
429: BrowserError;
|
|
71299
|
+
/**
|
|
71300
|
+
* INTERNAL
|
|
71301
|
+
*/
|
|
71302
|
+
500: BrowserError;
|
|
71303
|
+
/**
|
|
71304
|
+
* NOT_IMPLEMENTED / PROVIDER_UNSUPPORTED
|
|
71305
|
+
*/
|
|
71306
|
+
501: BrowserError;
|
|
71307
|
+
/**
|
|
71308
|
+
* PROVIDER_FAILED
|
|
71309
|
+
*/
|
|
71310
|
+
502: BrowserError;
|
|
71311
|
+
/**
|
|
71312
|
+
* BROWSER_OFFLINE / SERVICE_UNAVAILABLE
|
|
71313
|
+
*/
|
|
71314
|
+
503: BrowserError;
|
|
71315
|
+
/**
|
|
71316
|
+
* ACTION_TIMEOUT
|
|
71317
|
+
*/
|
|
71318
|
+
504: BrowserError;
|
|
71319
|
+
};
|
|
71320
|
+
export type BrowserCreateByobPairingError = BrowserCreateByobPairingErrors[keyof BrowserCreateByobPairingErrors];
|
|
71321
|
+
export type BrowserCreateByobPairingResponses = {
|
|
71322
|
+
/**
|
|
71323
|
+
* 请求成功。
|
|
71324
|
+
*/
|
|
71325
|
+
201: BrowserByobPairing;
|
|
71326
|
+
};
|
|
71327
|
+
export type BrowserCreateByobPairingResponse = BrowserCreateByobPairingResponses[keyof BrowserCreateByobPairingResponses];
|
|
71328
|
+
export type BrowserListByobBrowsersData = {
|
|
71329
|
+
body?: never;
|
|
71330
|
+
path?: never;
|
|
71331
|
+
query?: {
|
|
71332
|
+
/**
|
|
71333
|
+
* 上一页返回的 nextCursor,原样传入;省略时读取第一页。
|
|
71334
|
+
*/
|
|
71335
|
+
cursor?: string;
|
|
71336
|
+
/**
|
|
71337
|
+
* 每页最多返回的浏览器数量;默认 50,范围 1–100。
|
|
71338
|
+
*/
|
|
71339
|
+
limit?: number;
|
|
71340
|
+
};
|
|
71341
|
+
url: '/browser/v1/byob/browsers';
|
|
71342
|
+
};
|
|
71343
|
+
export type BrowserListByobBrowsersErrors = {
|
|
71344
|
+
/**
|
|
71345
|
+
* INVALID_PARAMS / INVALID_FILTER / INVALID_PAGE_TOKEN
|
|
71346
|
+
*/
|
|
71347
|
+
400: BrowserError;
|
|
71348
|
+
/**
|
|
71349
|
+
* UNAUTHENTICATED / CONNECT_SIGNATURE_INVALID
|
|
71350
|
+
*/
|
|
71351
|
+
401: BrowserError;
|
|
71352
|
+
/**
|
|
71353
|
+
* INSUFFICIENT_BALANCE / QUOTA_EXHAUSTED
|
|
71354
|
+
*/
|
|
71355
|
+
402: BrowserError;
|
|
71356
|
+
/**
|
|
71357
|
+
* PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
|
|
71358
|
+
*/
|
|
71359
|
+
403: BrowserError;
|
|
71360
|
+
/**
|
|
71361
|
+
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
71362
|
+
*/
|
|
71363
|
+
404: BrowserError;
|
|
71364
|
+
/**
|
|
71365
|
+
* SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
71366
|
+
*/
|
|
71367
|
+
409: BrowserError;
|
|
71368
|
+
/**
|
|
71369
|
+
* BROWSER_REVOKED
|
|
71370
|
+
*/
|
|
71371
|
+
410: BrowserError;
|
|
71372
|
+
/**
|
|
71373
|
+
* ACTION_RESULT_TOO_LARGE
|
|
71374
|
+
*/
|
|
71375
|
+
413: BrowserError;
|
|
71376
|
+
/**
|
|
71377
|
+
* CONCURRENCY_LIMIT / RATE_LIMITED / PROVIDER_CAPACITY
|
|
71378
|
+
*/
|
|
71379
|
+
429: BrowserError;
|
|
71380
|
+
/**
|
|
71381
|
+
* INTERNAL
|
|
71382
|
+
*/
|
|
71383
|
+
500: BrowserError;
|
|
71384
|
+
/**
|
|
71385
|
+
* NOT_IMPLEMENTED / PROVIDER_UNSUPPORTED
|
|
71386
|
+
*/
|
|
71387
|
+
501: BrowserError;
|
|
71388
|
+
/**
|
|
71389
|
+
* PROVIDER_FAILED
|
|
71390
|
+
*/
|
|
71391
|
+
502: BrowserError;
|
|
71392
|
+
/**
|
|
71393
|
+
* BROWSER_OFFLINE / SERVICE_UNAVAILABLE
|
|
71394
|
+
*/
|
|
71395
|
+
503: BrowserError;
|
|
71396
|
+
/**
|
|
71397
|
+
* ACTION_TIMEOUT
|
|
71398
|
+
*/
|
|
71399
|
+
504: BrowserError;
|
|
71400
|
+
};
|
|
71401
|
+
export type BrowserListByobBrowsersError = BrowserListByobBrowsersErrors[keyof BrowserListByobBrowsersErrors];
|
|
71402
|
+
export type BrowserListByobBrowsersResponses = {
|
|
71403
|
+
/**
|
|
71404
|
+
* 分页列出的自带浏览器,按 ID 升序。
|
|
71405
|
+
*/
|
|
71406
|
+
200: {
|
|
71407
|
+
/**
|
|
71408
|
+
* 本页的自带浏览器;已断开的不在列表里。
|
|
71409
|
+
*/
|
|
71410
|
+
data: Array<BrowserByobBrowser>;
|
|
71411
|
+
/**
|
|
71412
|
+
* 下一页游标;原样传入 cursor,null 表示没有更多结果。
|
|
71413
|
+
*/
|
|
71414
|
+
nextCursor: string | null;
|
|
71415
|
+
};
|
|
71416
|
+
};
|
|
71417
|
+
export type BrowserListByobBrowsersResponse = BrowserListByobBrowsersResponses[keyof BrowserListByobBrowsersResponses];
|
|
71418
|
+
export type BrowserGetByobBrowserData = {
|
|
71419
|
+
body?: never;
|
|
71420
|
+
path: {
|
|
71421
|
+
/**
|
|
71422
|
+
* 自带浏览器 ID,以 byb_ 开头;使用配对认领或列出自带浏览器返回的 id。
|
|
71423
|
+
*/
|
|
71424
|
+
browser_id: string;
|
|
71425
|
+
};
|
|
71426
|
+
query?: never;
|
|
71427
|
+
url: '/browser/v1/byob/browsers/{browser_id}';
|
|
71428
|
+
};
|
|
71429
|
+
export type BrowserGetByobBrowserErrors = {
|
|
71430
|
+
/**
|
|
71431
|
+
* INVALID_PARAMS / INVALID_FILTER / INVALID_PAGE_TOKEN
|
|
71432
|
+
*/
|
|
71433
|
+
400: BrowserError;
|
|
71434
|
+
/**
|
|
71435
|
+
* UNAUTHENTICATED / CONNECT_SIGNATURE_INVALID
|
|
71436
|
+
*/
|
|
71437
|
+
401: BrowserError;
|
|
71438
|
+
/**
|
|
71439
|
+
* INSUFFICIENT_BALANCE / QUOTA_EXHAUSTED
|
|
71440
|
+
*/
|
|
71441
|
+
402: BrowserError;
|
|
71442
|
+
/**
|
|
71443
|
+
* PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
|
|
71444
|
+
*/
|
|
71445
|
+
403: BrowserError;
|
|
71446
|
+
/**
|
|
71447
|
+
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
71448
|
+
*/
|
|
71449
|
+
404: BrowserError;
|
|
71450
|
+
/**
|
|
71451
|
+
* SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
71452
|
+
*/
|
|
71453
|
+
409: BrowserError;
|
|
71454
|
+
/**
|
|
71455
|
+
* BROWSER_REVOKED
|
|
71456
|
+
*/
|
|
71457
|
+
410: BrowserError;
|
|
71458
|
+
/**
|
|
71459
|
+
* ACTION_RESULT_TOO_LARGE
|
|
71460
|
+
*/
|
|
71461
|
+
413: BrowserError;
|
|
71462
|
+
/**
|
|
71463
|
+
* CONCURRENCY_LIMIT / RATE_LIMITED / PROVIDER_CAPACITY
|
|
71464
|
+
*/
|
|
71465
|
+
429: BrowserError;
|
|
71466
|
+
/**
|
|
71467
|
+
* INTERNAL
|
|
71468
|
+
*/
|
|
71469
|
+
500: BrowserError;
|
|
71470
|
+
/**
|
|
71471
|
+
* NOT_IMPLEMENTED / PROVIDER_UNSUPPORTED
|
|
71472
|
+
*/
|
|
71473
|
+
501: BrowserError;
|
|
71474
|
+
/**
|
|
71475
|
+
* PROVIDER_FAILED
|
|
71476
|
+
*/
|
|
71477
|
+
502: BrowserError;
|
|
71478
|
+
/**
|
|
71479
|
+
* BROWSER_OFFLINE / SERVICE_UNAVAILABLE
|
|
71480
|
+
*/
|
|
71481
|
+
503: BrowserError;
|
|
71482
|
+
/**
|
|
71483
|
+
* ACTION_TIMEOUT
|
|
71484
|
+
*/
|
|
71485
|
+
504: BrowserError;
|
|
71486
|
+
};
|
|
71487
|
+
export type BrowserGetByobBrowserError = BrowserGetByobBrowserErrors[keyof BrowserGetByobBrowserErrors];
|
|
71488
|
+
export type BrowserGetByobBrowserResponses = {
|
|
71489
|
+
/**
|
|
71490
|
+
* 请求成功。
|
|
71491
|
+
*/
|
|
71492
|
+
200: BrowserByobBrowser;
|
|
71493
|
+
};
|
|
71494
|
+
export type BrowserGetByobBrowserResponse = BrowserGetByobBrowserResponses[keyof BrowserGetByobBrowserResponses];
|
|
71495
|
+
export type BrowserUpdateByobBrowserData = {
|
|
71496
|
+
body: {
|
|
71497
|
+
/**
|
|
71498
|
+
* 新的显示名称,1–80 个字符。
|
|
71499
|
+
*/
|
|
71500
|
+
name?: string;
|
|
71501
|
+
};
|
|
71502
|
+
path: {
|
|
71503
|
+
/**
|
|
71504
|
+
* 自带浏览器 ID,以 byb_ 开头;使用配对认领或列出自带浏览器返回的 id。
|
|
71505
|
+
*/
|
|
71506
|
+
browser_id: string;
|
|
71507
|
+
};
|
|
71508
|
+
query?: never;
|
|
71509
|
+
url: '/browser/v1/byob/browsers/{browser_id}';
|
|
71510
|
+
};
|
|
71511
|
+
export type BrowserUpdateByobBrowserErrors = {
|
|
71512
|
+
/**
|
|
71513
|
+
* INVALID_PARAMS / INVALID_FILTER / INVALID_PAGE_TOKEN
|
|
71514
|
+
*/
|
|
71515
|
+
400: BrowserError;
|
|
71516
|
+
/**
|
|
71517
|
+
* UNAUTHENTICATED / CONNECT_SIGNATURE_INVALID
|
|
71518
|
+
*/
|
|
71519
|
+
401: BrowserError;
|
|
71520
|
+
/**
|
|
71521
|
+
* INSUFFICIENT_BALANCE / QUOTA_EXHAUSTED
|
|
71522
|
+
*/
|
|
71523
|
+
402: BrowserError;
|
|
71524
|
+
/**
|
|
71525
|
+
* PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
|
|
70227
71526
|
*/
|
|
70228
71527
|
403: BrowserError;
|
|
70229
71528
|
/**
|
|
70230
|
-
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
71529
|
+
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
70231
71530
|
*/
|
|
70232
71531
|
404: BrowserError;
|
|
70233
71532
|
/**
|
|
70234
|
-
* SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
71533
|
+
* SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
70235
71534
|
*/
|
|
70236
71535
|
409: BrowserError;
|
|
71536
|
+
/**
|
|
71537
|
+
* BROWSER_REVOKED
|
|
71538
|
+
*/
|
|
71539
|
+
410: BrowserError;
|
|
71540
|
+
/**
|
|
71541
|
+
* ACTION_RESULT_TOO_LARGE
|
|
71542
|
+
*/
|
|
71543
|
+
413: BrowserError;
|
|
71544
|
+
/**
|
|
71545
|
+
* CONCURRENCY_LIMIT / RATE_LIMITED / PROVIDER_CAPACITY
|
|
71546
|
+
*/
|
|
71547
|
+
429: BrowserError;
|
|
71548
|
+
/**
|
|
71549
|
+
* INTERNAL
|
|
71550
|
+
*/
|
|
71551
|
+
500: BrowserError;
|
|
71552
|
+
/**
|
|
71553
|
+
* NOT_IMPLEMENTED / PROVIDER_UNSUPPORTED
|
|
71554
|
+
*/
|
|
71555
|
+
501: BrowserError;
|
|
71556
|
+
/**
|
|
71557
|
+
* PROVIDER_FAILED
|
|
71558
|
+
*/
|
|
71559
|
+
502: BrowserError;
|
|
71560
|
+
/**
|
|
71561
|
+
* BROWSER_OFFLINE / SERVICE_UNAVAILABLE
|
|
71562
|
+
*/
|
|
71563
|
+
503: BrowserError;
|
|
71564
|
+
/**
|
|
71565
|
+
* ACTION_TIMEOUT
|
|
71566
|
+
*/
|
|
71567
|
+
504: BrowserError;
|
|
71568
|
+
};
|
|
71569
|
+
export type BrowserUpdateByobBrowserError = BrowserUpdateByobBrowserErrors[keyof BrowserUpdateByobBrowserErrors];
|
|
71570
|
+
export type BrowserUpdateByobBrowserResponses = {
|
|
71571
|
+
/**
|
|
71572
|
+
* 请求成功。
|
|
71573
|
+
*/
|
|
71574
|
+
200: BrowserByobBrowser;
|
|
71575
|
+
};
|
|
71576
|
+
export type BrowserUpdateByobBrowserResponse = BrowserUpdateByobBrowserResponses[keyof BrowserUpdateByobBrowserResponses];
|
|
71577
|
+
export type BrowserDisconnectByobBrowserData = {
|
|
71578
|
+
body?: never;
|
|
71579
|
+
path: {
|
|
71580
|
+
/**
|
|
71581
|
+
* 自带浏览器 ID,以 byb_ 开头;使用配对认领或列出自带浏览器返回的 id。
|
|
71582
|
+
*/
|
|
71583
|
+
browser_id: string;
|
|
71584
|
+
};
|
|
71585
|
+
query?: never;
|
|
71586
|
+
url: '/browser/v1/byob/browsers/{browser_id}/disconnect';
|
|
71587
|
+
};
|
|
71588
|
+
export type BrowserDisconnectByobBrowserErrors = {
|
|
71589
|
+
/**
|
|
71590
|
+
* INVALID_PARAMS / INVALID_FILTER / INVALID_PAGE_TOKEN
|
|
71591
|
+
*/
|
|
71592
|
+
400: BrowserError;
|
|
71593
|
+
/**
|
|
71594
|
+
* UNAUTHENTICATED / CONNECT_SIGNATURE_INVALID
|
|
71595
|
+
*/
|
|
71596
|
+
401: BrowserError;
|
|
71597
|
+
/**
|
|
71598
|
+
* INSUFFICIENT_BALANCE / QUOTA_EXHAUSTED
|
|
71599
|
+
*/
|
|
71600
|
+
402: BrowserError;
|
|
71601
|
+
/**
|
|
71602
|
+
* PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
|
|
71603
|
+
*/
|
|
71604
|
+
403: BrowserError;
|
|
71605
|
+
/**
|
|
71606
|
+
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
71607
|
+
*/
|
|
71608
|
+
404: BrowserError;
|
|
71609
|
+
/**
|
|
71610
|
+
* SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
71611
|
+
*/
|
|
71612
|
+
409: BrowserError;
|
|
71613
|
+
/**
|
|
71614
|
+
* BROWSER_REVOKED
|
|
71615
|
+
*/
|
|
71616
|
+
410: BrowserError;
|
|
71617
|
+
/**
|
|
71618
|
+
* ACTION_RESULT_TOO_LARGE
|
|
71619
|
+
*/
|
|
71620
|
+
413: BrowserError;
|
|
71621
|
+
/**
|
|
71622
|
+
* CONCURRENCY_LIMIT / RATE_LIMITED / PROVIDER_CAPACITY
|
|
71623
|
+
*/
|
|
71624
|
+
429: BrowserError;
|
|
71625
|
+
/**
|
|
71626
|
+
* INTERNAL
|
|
71627
|
+
*/
|
|
71628
|
+
500: BrowserError;
|
|
71629
|
+
/**
|
|
71630
|
+
* NOT_IMPLEMENTED / PROVIDER_UNSUPPORTED
|
|
71631
|
+
*/
|
|
71632
|
+
501: BrowserError;
|
|
71633
|
+
/**
|
|
71634
|
+
* PROVIDER_FAILED
|
|
71635
|
+
*/
|
|
71636
|
+
502: BrowserError;
|
|
71637
|
+
/**
|
|
71638
|
+
* BROWSER_OFFLINE / SERVICE_UNAVAILABLE
|
|
71639
|
+
*/
|
|
71640
|
+
503: BrowserError;
|
|
71641
|
+
/**
|
|
71642
|
+
* ACTION_TIMEOUT
|
|
71643
|
+
*/
|
|
71644
|
+
504: BrowserError;
|
|
71645
|
+
};
|
|
71646
|
+
export type BrowserDisconnectByobBrowserError = BrowserDisconnectByobBrowserErrors[keyof BrowserDisconnectByobBrowserErrors];
|
|
71647
|
+
export type BrowserDisconnectByobBrowserResponses = {
|
|
71648
|
+
/**
|
|
71649
|
+
* 请求成功。
|
|
71650
|
+
*/
|
|
71651
|
+
200: BrowserByobBrowser;
|
|
71652
|
+
};
|
|
71653
|
+
export type BrowserDisconnectByobBrowserResponse = BrowserDisconnectByobBrowserResponses[keyof BrowserDisconnectByobBrowserResponses];
|
|
71654
|
+
export type BrowserReadByobPairingData = {
|
|
71655
|
+
body?: never;
|
|
71656
|
+
path: {
|
|
71657
|
+
/**
|
|
71658
|
+
* 8 位配对码,来自创建配对码的结果。
|
|
71659
|
+
*/
|
|
71660
|
+
code: string;
|
|
71661
|
+
};
|
|
71662
|
+
query?: never;
|
|
71663
|
+
url: '/browser/v1/byob/pairings/{code}';
|
|
71664
|
+
};
|
|
71665
|
+
export type BrowserReadByobPairingErrors = {
|
|
71666
|
+
/**
|
|
71667
|
+
* INVALID_PARAMS / INVALID_FILTER / INVALID_PAGE_TOKEN
|
|
71668
|
+
*/
|
|
71669
|
+
400: BrowserError;
|
|
71670
|
+
/**
|
|
71671
|
+
* UNAUTHENTICATED / CONNECT_SIGNATURE_INVALID
|
|
71672
|
+
*/
|
|
71673
|
+
401: BrowserError;
|
|
71674
|
+
/**
|
|
71675
|
+
* INSUFFICIENT_BALANCE / QUOTA_EXHAUSTED
|
|
71676
|
+
*/
|
|
71677
|
+
402: BrowserError;
|
|
71678
|
+
/**
|
|
71679
|
+
* PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
|
|
71680
|
+
*/
|
|
71681
|
+
403: BrowserError;
|
|
71682
|
+
/**
|
|
71683
|
+
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
71684
|
+
*/
|
|
71685
|
+
404: BrowserError;
|
|
71686
|
+
/**
|
|
71687
|
+
* SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
71688
|
+
*/
|
|
71689
|
+
409: BrowserError;
|
|
71690
|
+
/**
|
|
71691
|
+
* BROWSER_REVOKED
|
|
71692
|
+
*/
|
|
71693
|
+
410: BrowserError;
|
|
70237
71694
|
/**
|
|
70238
71695
|
* ACTION_RESULT_TOO_LARGE
|
|
70239
71696
|
*/
|
|
@@ -70255,7 +71712,7 @@ export type BrowserGetContextErrors = {
|
|
|
70255
71712
|
*/
|
|
70256
71713
|
502: BrowserError;
|
|
70257
71714
|
/**
|
|
70258
|
-
* SERVICE_UNAVAILABLE
|
|
71715
|
+
* BROWSER_OFFLINE / SERVICE_UNAVAILABLE
|
|
70259
71716
|
*/
|
|
70260
71717
|
503: BrowserError;
|
|
70261
71718
|
/**
|
|
@@ -70263,37 +71720,26 @@ export type BrowserGetContextErrors = {
|
|
|
70263
71720
|
*/
|
|
70264
71721
|
504: BrowserError;
|
|
70265
71722
|
};
|
|
70266
|
-
export type
|
|
70267
|
-
export type
|
|
71723
|
+
export type BrowserReadByobPairingError = BrowserReadByobPairingErrors[keyof BrowserReadByobPairingErrors];
|
|
71724
|
+
export type BrowserReadByobPairingResponses = {
|
|
70268
71725
|
/**
|
|
70269
71726
|
* 请求成功。
|
|
70270
71727
|
*/
|
|
70271
|
-
200:
|
|
71728
|
+
200: BrowserByobPairingView;
|
|
70272
71729
|
};
|
|
70273
|
-
export type
|
|
70274
|
-
export type
|
|
70275
|
-
body:
|
|
70276
|
-
/**
|
|
70277
|
-
* 登录态名称;非空时为 1–128 个 ASCII 字母、数字或 . _ : -,在当前账户内唯一;空字符串表示不设名称或清除名称。
|
|
70278
|
-
*/
|
|
70279
|
-
name?: '' | unknown;
|
|
70280
|
-
/**
|
|
70281
|
-
* 自定义字符串标签;最多 32 项,键最多 128 个 UTF-8 字节,值最多 1024 个 UTF-8 字节。 更新时整体替换;空对象清除标签,省略则保留。
|
|
70282
|
-
*/
|
|
70283
|
-
labels?: {
|
|
70284
|
-
[key: string]: string;
|
|
70285
|
-
};
|
|
70286
|
-
};
|
|
71730
|
+
export type BrowserReadByobPairingResponse = BrowserReadByobPairingResponses[keyof BrowserReadByobPairingResponses];
|
|
71731
|
+
export type BrowserClaimByobPairingData = {
|
|
71732
|
+
body: BrowserByobClaim;
|
|
70287
71733
|
path: {
|
|
70288
71734
|
/**
|
|
70289
|
-
*
|
|
71735
|
+
* 8 位配对码,来自创建配对码的结果。
|
|
70290
71736
|
*/
|
|
70291
|
-
|
|
71737
|
+
code: string;
|
|
70292
71738
|
};
|
|
70293
71739
|
query?: never;
|
|
70294
|
-
url: '/browser/v1/
|
|
71740
|
+
url: '/browser/v1/byob/pairings/{code}/claim';
|
|
70295
71741
|
};
|
|
70296
|
-
export type
|
|
71742
|
+
export type BrowserClaimByobPairingErrors = {
|
|
70297
71743
|
/**
|
|
70298
71744
|
* INVALID_PARAMS / INVALID_FILTER / INVALID_PAGE_TOKEN
|
|
70299
71745
|
*/
|
|
@@ -70307,17 +71753,21 @@ export type BrowserUpdateContextErrors = {
|
|
|
70307
71753
|
*/
|
|
70308
71754
|
402: BrowserError;
|
|
70309
71755
|
/**
|
|
70310
|
-
* PERMISSION_DENIED / ACCOUNT_SUSPENDED
|
|
71756
|
+
* PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
|
|
70311
71757
|
*/
|
|
70312
71758
|
403: BrowserError;
|
|
70313
71759
|
/**
|
|
70314
|
-
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
71760
|
+
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
70315
71761
|
*/
|
|
70316
71762
|
404: BrowserError;
|
|
70317
71763
|
/**
|
|
70318
|
-
* SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
71764
|
+
* SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
70319
71765
|
*/
|
|
70320
71766
|
409: BrowserError;
|
|
71767
|
+
/**
|
|
71768
|
+
* BROWSER_REVOKED
|
|
71769
|
+
*/
|
|
71770
|
+
410: BrowserError;
|
|
70321
71771
|
/**
|
|
70322
71772
|
* ACTION_RESULT_TOO_LARGE
|
|
70323
71773
|
*/
|
|
@@ -70339,7 +71789,7 @@ export type BrowserUpdateContextErrors = {
|
|
|
70339
71789
|
*/
|
|
70340
71790
|
502: BrowserError;
|
|
70341
71791
|
/**
|
|
70342
|
-
* SERVICE_UNAVAILABLE
|
|
71792
|
+
* BROWSER_OFFLINE / SERVICE_UNAVAILABLE
|
|
70343
71793
|
*/
|
|
70344
71794
|
503: BrowserError;
|
|
70345
71795
|
/**
|
|
@@ -70347,14 +71797,14 @@ export type BrowserUpdateContextErrors = {
|
|
|
70347
71797
|
*/
|
|
70348
71798
|
504: BrowserError;
|
|
70349
71799
|
};
|
|
70350
|
-
export type
|
|
70351
|
-
export type
|
|
71800
|
+
export type BrowserClaimByobPairingError = BrowserClaimByobPairingErrors[keyof BrowserClaimByobPairingErrors];
|
|
71801
|
+
export type BrowserClaimByobPairingResponses = {
|
|
70352
71802
|
/**
|
|
70353
|
-
*
|
|
71803
|
+
* 认领成功。
|
|
70354
71804
|
*/
|
|
70355
|
-
|
|
71805
|
+
201: BrowserByobClaimResult;
|
|
70356
71806
|
};
|
|
70357
|
-
export type
|
|
71807
|
+
export type BrowserClaimByobPairingResponse = BrowserClaimByobPairingResponses[keyof BrowserClaimByobPairingResponses];
|
|
70358
71808
|
export type BrowserConnectData = {
|
|
70359
71809
|
body?: never;
|
|
70360
71810
|
path?: never;
|
|
@@ -70412,17 +71862,21 @@ export type BrowserConnectErrors = {
|
|
|
70412
71862
|
*/
|
|
70413
71863
|
402: BrowserError;
|
|
70414
71864
|
/**
|
|
70415
|
-
* PERMISSION_DENIED / ACCOUNT_SUSPENDED
|
|
71865
|
+
* PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
|
|
70416
71866
|
*/
|
|
70417
71867
|
403: BrowserError;
|
|
70418
71868
|
/**
|
|
70419
|
-
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
71869
|
+
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
70420
71870
|
*/
|
|
70421
71871
|
404: BrowserError;
|
|
70422
71872
|
/**
|
|
70423
|
-
* SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
71873
|
+
* SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
70424
71874
|
*/
|
|
70425
71875
|
409: BrowserError;
|
|
71876
|
+
/**
|
|
71877
|
+
* BROWSER_REVOKED
|
|
71878
|
+
*/
|
|
71879
|
+
410: BrowserError;
|
|
70426
71880
|
/**
|
|
70427
71881
|
* ACTION_RESULT_TOO_LARGE
|
|
70428
71882
|
*/
|
|
@@ -70444,7 +71898,7 @@ export type BrowserConnectErrors = {
|
|
|
70444
71898
|
*/
|
|
70445
71899
|
502: BrowserError;
|
|
70446
71900
|
/**
|
|
70447
|
-
* SERVICE_UNAVAILABLE
|
|
71901
|
+
* BROWSER_OFFLINE / SERVICE_UNAVAILABLE
|
|
70448
71902
|
*/
|
|
70449
71903
|
503: BrowserError;
|
|
70450
71904
|
/**
|
|
@@ -70487,17 +71941,21 @@ export type BrowserLiveViewErrors = {
|
|
|
70487
71941
|
*/
|
|
70488
71942
|
402: BrowserError;
|
|
70489
71943
|
/**
|
|
70490
|
-
* PERMISSION_DENIED / ACCOUNT_SUSPENDED
|
|
71944
|
+
* PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
|
|
70491
71945
|
*/
|
|
70492
71946
|
403: BrowserError;
|
|
70493
71947
|
/**
|
|
70494
|
-
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
71948
|
+
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
70495
71949
|
*/
|
|
70496
71950
|
404: BrowserError;
|
|
70497
71951
|
/**
|
|
70498
|
-
* SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
71952
|
+
* SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
70499
71953
|
*/
|
|
70500
71954
|
409: BrowserError;
|
|
71955
|
+
/**
|
|
71956
|
+
* BROWSER_REVOKED
|
|
71957
|
+
*/
|
|
71958
|
+
410: BrowserError;
|
|
70501
71959
|
/**
|
|
70502
71960
|
* ACTION_RESULT_TOO_LARGE
|
|
70503
71961
|
*/
|
|
@@ -70519,7 +71977,7 @@ export type BrowserLiveViewErrors = {
|
|
|
70519
71977
|
*/
|
|
70520
71978
|
502: BrowserError;
|
|
70521
71979
|
/**
|
|
70522
|
-
* SERVICE_UNAVAILABLE
|
|
71980
|
+
* BROWSER_OFFLINE / SERVICE_UNAVAILABLE
|
|
70523
71981
|
*/
|
|
70524
71982
|
503: BrowserError;
|
|
70525
71983
|
/**
|
|
@@ -70553,17 +72011,21 @@ export type BrowserStreamSessionErrors = {
|
|
|
70553
72011
|
*/
|
|
70554
72012
|
402: BrowserError;
|
|
70555
72013
|
/**
|
|
70556
|
-
* PERMISSION_DENIED / ACCOUNT_SUSPENDED
|
|
72014
|
+
* PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
|
|
70557
72015
|
*/
|
|
70558
72016
|
403: BrowserError;
|
|
70559
72017
|
/**
|
|
70560
|
-
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
72018
|
+
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
70561
72019
|
*/
|
|
70562
72020
|
404: BrowserError;
|
|
70563
72021
|
/**
|
|
70564
|
-
* SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
72022
|
+
* SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
70565
72023
|
*/
|
|
70566
72024
|
409: BrowserError;
|
|
72025
|
+
/**
|
|
72026
|
+
* BROWSER_REVOKED
|
|
72027
|
+
*/
|
|
72028
|
+
410: BrowserError;
|
|
70567
72029
|
/**
|
|
70568
72030
|
* ACTION_RESULT_TOO_LARGE
|
|
70569
72031
|
*/
|
|
@@ -70585,7 +72047,7 @@ export type BrowserStreamSessionErrors = {
|
|
|
70585
72047
|
*/
|
|
70586
72048
|
502: BrowserError;
|
|
70587
72049
|
/**
|
|
70588
|
-
* SERVICE_UNAVAILABLE
|
|
72050
|
+
* BROWSER_OFFLINE / SERVICE_UNAVAILABLE
|
|
70589
72051
|
*/
|
|
70590
72052
|
503: BrowserError;
|
|
70591
72053
|
/**
|
|
@@ -70626,17 +72088,21 @@ export type BrowserStreamSessionFramesErrors = {
|
|
|
70626
72088
|
*/
|
|
70627
72089
|
402: BrowserError;
|
|
70628
72090
|
/**
|
|
70629
|
-
* PERMISSION_DENIED / ACCOUNT_SUSPENDED
|
|
72091
|
+
* PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
|
|
70630
72092
|
*/
|
|
70631
72093
|
403: BrowserError;
|
|
70632
72094
|
/**
|
|
70633
|
-
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
72095
|
+
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
70634
72096
|
*/
|
|
70635
72097
|
404: BrowserError;
|
|
70636
72098
|
/**
|
|
70637
|
-
* SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
72099
|
+
* SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
70638
72100
|
*/
|
|
70639
72101
|
409: BrowserError;
|
|
72102
|
+
/**
|
|
72103
|
+
* BROWSER_REVOKED
|
|
72104
|
+
*/
|
|
72105
|
+
410: BrowserError;
|
|
70640
72106
|
/**
|
|
70641
72107
|
* ACTION_RESULT_TOO_LARGE
|
|
70642
72108
|
*/
|
|
@@ -70658,7 +72124,7 @@ export type BrowserStreamSessionFramesErrors = {
|
|
|
70658
72124
|
*/
|
|
70659
72125
|
502: BrowserError;
|
|
70660
72126
|
/**
|
|
70661
|
-
* SERVICE_UNAVAILABLE
|
|
72127
|
+
* BROWSER_OFFLINE / SERVICE_UNAVAILABLE
|
|
70662
72128
|
*/
|
|
70663
72129
|
503: BrowserError;
|
|
70664
72130
|
/**
|
|
@@ -71054,7 +72520,7 @@ export type FileCreateSignedUploadErrors = {
|
|
|
71054
72520
|
*/
|
|
71055
72521
|
401: unknown;
|
|
71056
72522
|
/**
|
|
71057
|
-
* PERMISSION_DENIED or
|
|
72523
|
+
* PERMISSION_DENIED, BINDING_READ_ONLY or CAPABILITY_MISMATCH: the credential lacks create authority, or a signed upload URL was used for another action than the one it names.
|
|
71058
72524
|
*/
|
|
71059
72525
|
403: unknown;
|
|
71060
72526
|
};
|
|
@@ -77359,7 +78825,7 @@ export type ListOrganizationCostsData = {
|
|
|
77359
78825
|
*/
|
|
77360
78826
|
bucket_width: '1h' | '1d';
|
|
77361
78827
|
/**
|
|
77362
|
-
* 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.
|
|
77363
78829
|
*
|
|
77364
78830
|
*/
|
|
77365
78831
|
time_zone?: string;
|
|
@@ -77477,7 +78943,7 @@ export type ListOrganizationUsageData = {
|
|
|
77477
78943
|
*/
|
|
77478
78944
|
bucket_width: '1h' | '1d';
|
|
77479
78945
|
/**
|
|
77480
|
-
* 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.
|
|
77481
78947
|
*
|
|
77482
78948
|
*/
|
|
77483
78949
|
time_zone?: string;
|
|
@@ -77963,10 +79429,18 @@ export type GetOrganizationNotificationsInboxData = {
|
|
|
77963
79429
|
url: '/organization/v1/notifications/inbox';
|
|
77964
79430
|
};
|
|
77965
79431
|
export type GetOrganizationNotificationsInboxErrors = {
|
|
79432
|
+
/**
|
|
79433
|
+
* `INVALID_PARAMS` from the service for a read it cannot answer (RFC 9457 problem).
|
|
79434
|
+
*/
|
|
79435
|
+
400: unknown;
|
|
77966
79436
|
/**
|
|
77967
79437
|
* Missing or invalid credential (RFC 9457 problem).
|
|
77968
79438
|
*/
|
|
77969
79439
|
401: unknown;
|
|
79440
|
+
/**
|
|
79441
|
+
* 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.
|
|
79442
|
+
*/
|
|
79443
|
+
502: unknown;
|
|
77970
79444
|
};
|
|
77971
79445
|
export type GetOrganizationNotificationsInboxResponses = {
|
|
77972
79446
|
/**
|
|
@@ -78009,13 +79483,17 @@ export type ListOrganizationNotificationLettersData = {
|
|
|
78009
79483
|
};
|
|
78010
79484
|
export type ListOrganizationNotificationLettersErrors = {
|
|
78011
79485
|
/**
|
|
78012
|
-
*
|
|
79486
|
+
* A bad `status`, `archived` or `limit`, or `INVALID_PARAMS` from the service for a cursor it did not issue (RFC 9457 problem).
|
|
78013
79487
|
*/
|
|
78014
79488
|
400: unknown;
|
|
78015
79489
|
/**
|
|
78016
79490
|
* Missing or invalid credential (RFC 9457 problem).
|
|
78017
79491
|
*/
|
|
78018
79492
|
401: unknown;
|
|
79493
|
+
/**
|
|
79494
|
+
* 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.
|
|
79495
|
+
*/
|
|
79496
|
+
502: unknown;
|
|
78019
79497
|
};
|
|
78020
79498
|
export type ListOrganizationNotificationLettersResponses = {
|
|
78021
79499
|
/**
|
|
@@ -78105,6 +79583,80 @@ export type ListOrganizationNotificationLettersResponses = {
|
|
|
78105
79583
|
};
|
|
78106
79584
|
};
|
|
78107
79585
|
export type ListOrganizationNotificationLettersResponse = ListOrganizationNotificationLettersResponses[keyof ListOrganizationNotificationLettersResponses];
|
|
79586
|
+
export type CreateOrganizationNotificationLetterData = {
|
|
79587
|
+
body: {
|
|
79588
|
+
/**
|
|
79589
|
+
* The recipient's address: human:<user id> or agent:<agent id>, a member or an agent of this organization.
|
|
79590
|
+
*/
|
|
79591
|
+
to: string;
|
|
79592
|
+
/**
|
|
79593
|
+
* The whole letter, 1 to 16000 characters.
|
|
79594
|
+
*/
|
|
79595
|
+
body: string;
|
|
79596
|
+
/**
|
|
79597
|
+
* 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.
|
|
79598
|
+
*/
|
|
79599
|
+
summary?: string;
|
|
79600
|
+
/**
|
|
79601
|
+
* The letter's kind; it decides the channels. Defaults to mention.
|
|
79602
|
+
*/
|
|
79603
|
+
kind?: 'notice' | 'mention' | 'decision';
|
|
79604
|
+
/**
|
|
79605
|
+
* The conversation the letter belongs to, free text; omit for none.
|
|
79606
|
+
*/
|
|
79607
|
+
thread?: string;
|
|
79608
|
+
/**
|
|
79609
|
+
* When to deliver it, ISO 8601, at most 366 days ahead. A past time or no value means now.
|
|
79610
|
+
*/
|
|
79611
|
+
deliver_at?: string;
|
|
79612
|
+
};
|
|
79613
|
+
path?: never;
|
|
79614
|
+
query?: never;
|
|
79615
|
+
url: '/organization/v1/notifications/letters';
|
|
79616
|
+
};
|
|
79617
|
+
export type CreateOrganizationNotificationLetterErrors = {
|
|
79618
|
+
/**
|
|
79619
|
+
* `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).
|
|
79620
|
+
*/
|
|
79621
|
+
400: unknown;
|
|
79622
|
+
/**
|
|
79623
|
+
* Missing or invalid credential (RFC 9457 problem).
|
|
79624
|
+
*/
|
|
79625
|
+
401: unknown;
|
|
79626
|
+
/**
|
|
79627
|
+
* `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).
|
|
79628
|
+
*/
|
|
79629
|
+
403: unknown;
|
|
79630
|
+
/**
|
|
79631
|
+
* `SUBSCRIBER_NOT_FOUND`: the recipient is not a member or an agent of this organization (RFC 9457 problem).
|
|
79632
|
+
*/
|
|
79633
|
+
404: unknown;
|
|
79634
|
+
/**
|
|
79635
|
+
* 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.
|
|
79636
|
+
*/
|
|
79637
|
+
502: unknown;
|
|
79638
|
+
};
|
|
79639
|
+
export type CreateOrganizationNotificationLetterResponses = {
|
|
79640
|
+
/**
|
|
79641
|
+
* The letter is written; it is delivered at deliverAt.
|
|
79642
|
+
*/
|
|
79643
|
+
200: {
|
|
79644
|
+
/**
|
|
79645
|
+
* The letter that was written: its id and the time it is delivered.
|
|
79646
|
+
*/
|
|
79647
|
+
letter: {
|
|
79648
|
+
/**
|
|
79649
|
+
* The letter's id.
|
|
79650
|
+
*/
|
|
79651
|
+
id: string;
|
|
79652
|
+
/**
|
|
79653
|
+
* When it is delivered: now, or the time asked for.
|
|
79654
|
+
*/
|
|
79655
|
+
deliverAt: string;
|
|
79656
|
+
};
|
|
79657
|
+
};
|
|
79658
|
+
};
|
|
79659
|
+
export type CreateOrganizationNotificationLetterResponse = CreateOrganizationNotificationLetterResponses[keyof CreateOrganizationNotificationLetterResponses];
|
|
78108
79660
|
export type GetOrganizationNotificationLetterData = {
|
|
78109
79661
|
body?: never;
|
|
78110
79662
|
path: {
|
|
@@ -78118,7 +79670,7 @@ export type GetOrganizationNotificationLetterData = {
|
|
|
78118
79670
|
};
|
|
78119
79671
|
export type GetOrganizationNotificationLetterErrors = {
|
|
78120
79672
|
/**
|
|
78121
|
-
* The id is not a letter id (RFC 9457 problem).
|
|
79673
|
+
* The id is not a letter id — `INVALID_PARAMS` from the service (RFC 9457 problem).
|
|
78122
79674
|
*/
|
|
78123
79675
|
400: unknown;
|
|
78124
79676
|
/**
|
|
@@ -78126,9 +79678,13 @@ export type GetOrganizationNotificationLetterErrors = {
|
|
|
78126
79678
|
*/
|
|
78127
79679
|
401: unknown;
|
|
78128
79680
|
/**
|
|
78129
|
-
* No such letter in your mailbox (RFC 9457 problem).
|
|
79681
|
+
* No such letter in your mailbox in this organization — `MESSAGE_NOT_FOUND`, the same answer for a letter that is not yours, is still scheduled, or never existed (RFC 9457 problem).
|
|
78130
79682
|
*/
|
|
78131
79683
|
404: unknown;
|
|
79684
|
+
/**
|
|
79685
|
+
* 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.
|
|
79686
|
+
*/
|
|
79687
|
+
502: unknown;
|
|
78132
79688
|
};
|
|
78133
79689
|
export type GetOrganizationNotificationLetterResponses = {
|
|
78134
79690
|
/**
|
|
@@ -78218,7 +79774,7 @@ export type ReadOrganizationNotificationLetterData = {
|
|
|
78218
79774
|
};
|
|
78219
79775
|
export type ReadOrganizationNotificationLetterErrors = {
|
|
78220
79776
|
/**
|
|
78221
|
-
* The id is not a letter id (RFC 9457 problem).
|
|
79777
|
+
* The id is not a letter id — `INVALID_PARAMS` from the service (RFC 9457 problem).
|
|
78222
79778
|
*/
|
|
78223
79779
|
400: unknown;
|
|
78224
79780
|
/**
|
|
@@ -78226,9 +79782,13 @@ export type ReadOrganizationNotificationLetterErrors = {
|
|
|
78226
79782
|
*/
|
|
78227
79783
|
401: unknown;
|
|
78228
79784
|
/**
|
|
78229
|
-
* No such letter in your mailbox (RFC 9457 problem).
|
|
79785
|
+
* No such letter in your mailbox in this organization — `MESSAGE_NOT_FOUND` (RFC 9457 problem).
|
|
78230
79786
|
*/
|
|
78231
79787
|
404: unknown;
|
|
79788
|
+
/**
|
|
79789
|
+
* 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.
|
|
79790
|
+
*/
|
|
79791
|
+
502: unknown;
|
|
78232
79792
|
};
|
|
78233
79793
|
export type ReadOrganizationNotificationLetterResponses = {
|
|
78234
79794
|
/**
|
|
@@ -78255,13 +79815,17 @@ export type ReadAllOrganizationNotificationLettersData = {
|
|
|
78255
79815
|
};
|
|
78256
79816
|
export type ReadAllOrganizationNotificationLettersErrors = {
|
|
78257
79817
|
/**
|
|
78258
|
-
* The body is not a JSON object,
|
|
79818
|
+
* The body is not a JSON object, `kind` is unknown, or `INVALID_PARAMS` from the service (RFC 9457 problem).
|
|
78259
79819
|
*/
|
|
78260
79820
|
400: unknown;
|
|
78261
79821
|
/**
|
|
78262
79822
|
* Missing or invalid credential (RFC 9457 problem).
|
|
78263
79823
|
*/
|
|
78264
79824
|
401: unknown;
|
|
79825
|
+
/**
|
|
79826
|
+
* 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.
|
|
79827
|
+
*/
|
|
79828
|
+
502: unknown;
|
|
78265
79829
|
};
|
|
78266
79830
|
export type ReadAllOrganizationNotificationLettersResponses = {
|
|
78267
79831
|
/**
|
|
@@ -78288,7 +79852,7 @@ export type ArchiveOrganizationNotificationLetterData = {
|
|
|
78288
79852
|
};
|
|
78289
79853
|
export type ArchiveOrganizationNotificationLetterErrors = {
|
|
78290
79854
|
/**
|
|
78291
|
-
* The id is not a letter id (RFC 9457 problem).
|
|
79855
|
+
* The id is not a letter id — `INVALID_PARAMS` from the service (RFC 9457 problem).
|
|
78292
79856
|
*/
|
|
78293
79857
|
400: unknown;
|
|
78294
79858
|
/**
|
|
@@ -78296,9 +79860,13 @@ export type ArchiveOrganizationNotificationLetterErrors = {
|
|
|
78296
79860
|
*/
|
|
78297
79861
|
401: unknown;
|
|
78298
79862
|
/**
|
|
78299
|
-
* No such letter in your mailbox (RFC 9457 problem).
|
|
79863
|
+
* No such letter in your mailbox in this organization — `MESSAGE_NOT_FOUND` (RFC 9457 problem).
|
|
78300
79864
|
*/
|
|
78301
79865
|
404: unknown;
|
|
79866
|
+
/**
|
|
79867
|
+
* 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.
|
|
79868
|
+
*/
|
|
79869
|
+
502: unknown;
|
|
78302
79870
|
};
|
|
78303
79871
|
export type ArchiveOrganizationNotificationLetterResponses = {
|
|
78304
79872
|
/**
|
|
@@ -78323,6 +79891,10 @@ export type GetOrganizationNotificationPreferencesErrors = {
|
|
|
78323
79891
|
* Missing or invalid credential (RFC 9457 problem).
|
|
78324
79892
|
*/
|
|
78325
79893
|
401: unknown;
|
|
79894
|
+
/**
|
|
79895
|
+
* 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.
|
|
79896
|
+
*/
|
|
79897
|
+
502: unknown;
|
|
78326
79898
|
};
|
|
78327
79899
|
export type GetOrganizationNotificationPreferencesResponses = {
|
|
78328
79900
|
/**
|
|
@@ -78414,7 +79986,7 @@ export type UpdateOrganizationNotificationPreferencesData = {
|
|
|
78414
79986
|
};
|
|
78415
79987
|
export type UpdateOrganizationNotificationPreferencesErrors = {
|
|
78416
79988
|
/**
|
|
78417
|
-
* Invalid switch, unknown category or unoffered channel (RFC 9457 problem).
|
|
79989
|
+
* Invalid switch, unknown category or unoffered channel — `INVALID_PARAMS`, `NOT_CONFIGURABLE` or `CRITICAL_CHANNELS_OFF` from the service (RFC 9457 problem).
|
|
78418
79990
|
*/
|
|
78419
79991
|
400: unknown;
|
|
78420
79992
|
/**
|
|
@@ -78422,9 +79994,13 @@ export type UpdateOrganizationNotificationPreferencesErrors = {
|
|
|
78422
79994
|
*/
|
|
78423
79995
|
401: unknown;
|
|
78424
79996
|
/**
|
|
78425
|
-
* The organization does not let members change their own switches (
|
|
79997
|
+
* The organization does not let members change their own switches — `ORGANIZATION_LOCKED` from the service (RFC 9457 problem).
|
|
78426
79998
|
*/
|
|
78427
79999
|
403: unknown;
|
|
80000
|
+
/**
|
|
80001
|
+
* 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.
|
|
80002
|
+
*/
|
|
80003
|
+
502: unknown;
|
|
78428
80004
|
};
|
|
78429
80005
|
export type UpdateOrganizationNotificationPreferencesResponses = {
|
|
78430
80006
|
/**
|
|
@@ -78446,6 +80022,10 @@ export type GetOrganizationNotificationDefaultsErrors = {
|
|
|
78446
80022
|
* Missing or invalid credential (RFC 9457 problem).
|
|
78447
80023
|
*/
|
|
78448
80024
|
401: unknown;
|
|
80025
|
+
/**
|
|
80026
|
+
* 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.
|
|
80027
|
+
*/
|
|
80028
|
+
502: unknown;
|
|
78449
80029
|
};
|
|
78450
80030
|
export type GetOrganizationNotificationDefaultsResponses = {
|
|
78451
80031
|
/**
|
|
@@ -78483,7 +80063,7 @@ export type UpdateOrganizationNotificationDefaultsData = {
|
|
|
78483
80063
|
};
|
|
78484
80064
|
export type UpdateOrganizationNotificationDefaultsErrors = {
|
|
78485
80065
|
/**
|
|
78486
|
-
* Invalid default, unknown category or hidden critical category (RFC 9457 problem).
|
|
80066
|
+
* Invalid default, unknown category or hidden critical category (RFC 9457 problem, `INVALID_PARAMS`).
|
|
78487
80067
|
*/
|
|
78488
80068
|
400: unknown;
|
|
78489
80069
|
/**
|
|
@@ -78491,9 +80071,13 @@ export type UpdateOrganizationNotificationDefaultsErrors = {
|
|
|
78491
80071
|
*/
|
|
78492
80072
|
401: unknown;
|
|
78493
80073
|
/**
|
|
78494
|
-
* The caller is not an owner or admin of this organization.
|
|
80074
|
+
* The caller is not an owner or admin of this organization — `PERMISSION_DENIED` from the service (RFC 9457 problem).
|
|
78495
80075
|
*/
|
|
78496
80076
|
403: unknown;
|
|
80077
|
+
/**
|
|
80078
|
+
* 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.
|
|
80079
|
+
*/
|
|
80080
|
+
502: unknown;
|
|
78497
80081
|
};
|
|
78498
80082
|
export type UpdateOrganizationNotificationDefaultsResponses = {
|
|
78499
80083
|
/**
|
|
@@ -78521,13 +80105,17 @@ export type ListOrganizationNotificationDeliveriesData = {
|
|
|
78521
80105
|
};
|
|
78522
80106
|
export type ListOrganizationNotificationDeliveriesErrors = {
|
|
78523
80107
|
/**
|
|
78524
|
-
* Invalid limit or page cursor (RFC 9457 problem).
|
|
80108
|
+
* Invalid limit, or `INVALID_PARAMS` from the service for a page cursor it did not issue (RFC 9457 problem).
|
|
78525
80109
|
*/
|
|
78526
80110
|
400: unknown;
|
|
78527
80111
|
/**
|
|
78528
80112
|
* Missing or invalid credential (RFC 9457 problem).
|
|
78529
80113
|
*/
|
|
78530
80114
|
401: unknown;
|
|
80115
|
+
/**
|
|
80116
|
+
* 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.
|
|
80117
|
+
*/
|
|
80118
|
+
502: unknown;
|
|
78531
80119
|
};
|
|
78532
80120
|
export type ListOrganizationNotificationDeliveriesResponses = {
|
|
78533
80121
|
/**
|
|
@@ -79759,7 +81347,7 @@ export type ListByodDevicesResponses = {
|
|
|
79759
81347
|
*/
|
|
79760
81348
|
id: string;
|
|
79761
81349
|
/**
|
|
79762
|
-
* The device's platform, which decides the use faces it answers. A desktop (macos, linux) pairs
|
|
81350
|
+
* The device's platform, which decides the use faces it answers. A desktop (macos, linux) pairs like a phone; windows is not supported yet.
|
|
79763
81351
|
*/
|
|
79764
81352
|
platform: 'android' | 'macos' | 'linux';
|
|
79765
81353
|
/**
|
|
@@ -79794,6 +81382,23 @@ export type ListByodDevicesResponses = {
|
|
|
79794
81382
|
* The absolute directories a desktop registered for agent sessions with its last hello; a session may only start in one of these. Empty for a phone and for a desktop that has not connected yet.
|
|
79795
81383
|
*/
|
|
79796
81384
|
agent_dirs: Array<string>;
|
|
81385
|
+
/**
|
|
81386
|
+
* Which agent each registered directory is bound to, as the desktop's last hello reported. Empty for a phone and for a desktop that has not connected yet.
|
|
81387
|
+
*/
|
|
81388
|
+
agent_bindings: Array<{
|
|
81389
|
+
/**
|
|
81390
|
+
* The absolute directory the desktop bound to an agent with praxis agent connect.
|
|
81391
|
+
*/
|
|
81392
|
+
dir: string;
|
|
81393
|
+
/**
|
|
81394
|
+
* The agent the directory is bound to: its identity number or its agent id.
|
|
81395
|
+
*/
|
|
81396
|
+
agent: string;
|
|
81397
|
+
}>;
|
|
81398
|
+
/**
|
|
81399
|
+
* 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.
|
|
81400
|
+
*/
|
|
81401
|
+
envd_version: string | null;
|
|
79797
81402
|
/**
|
|
79798
81403
|
* 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.
|
|
79799
81404
|
*/
|
|
@@ -79841,7 +81446,7 @@ export type GetByodDeviceResponses = {
|
|
|
79841
81446
|
*/
|
|
79842
81447
|
id: string;
|
|
79843
81448
|
/**
|
|
79844
|
-
* The device's platform, which decides the use faces it answers. A desktop (macos, linux) pairs
|
|
81449
|
+
* The device's platform, which decides the use faces it answers. A desktop (macos, linux) pairs like a phone; windows is not supported yet.
|
|
79845
81450
|
*/
|
|
79846
81451
|
platform: 'android' | 'macos' | 'linux';
|
|
79847
81452
|
/**
|
|
@@ -79876,6 +81481,23 @@ export type GetByodDeviceResponses = {
|
|
|
79876
81481
|
* The absolute directories a desktop registered for agent sessions with its last hello; a session may only start in one of these. Empty for a phone and for a desktop that has not connected yet.
|
|
79877
81482
|
*/
|
|
79878
81483
|
agent_dirs: Array<string>;
|
|
81484
|
+
/**
|
|
81485
|
+
* Which agent each registered directory is bound to, as the desktop's last hello reported. Empty for a phone and for a desktop that has not connected yet.
|
|
81486
|
+
*/
|
|
81487
|
+
agent_bindings: Array<{
|
|
81488
|
+
/**
|
|
81489
|
+
* The absolute directory the desktop bound to an agent with praxis agent connect.
|
|
81490
|
+
*/
|
|
81491
|
+
dir: string;
|
|
81492
|
+
/**
|
|
81493
|
+
* The agent the directory is bound to: its identity number or its agent id.
|
|
81494
|
+
*/
|
|
81495
|
+
agent: string;
|
|
81496
|
+
}>;
|
|
81497
|
+
/**
|
|
81498
|
+
* 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.
|
|
81499
|
+
*/
|
|
81500
|
+
envd_version: string | null;
|
|
79879
81501
|
/**
|
|
79880
81502
|
* 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.
|
|
79881
81503
|
*/
|
|
@@ -79934,7 +81556,7 @@ export type UpdateByodDeviceResponses = {
|
|
|
79934
81556
|
*/
|
|
79935
81557
|
id: string;
|
|
79936
81558
|
/**
|
|
79937
|
-
* The device's platform, which decides the use faces it answers. A desktop (macos, linux) pairs
|
|
81559
|
+
* The device's platform, which decides the use faces it answers. A desktop (macos, linux) pairs like a phone; windows is not supported yet.
|
|
79938
81560
|
*/
|
|
79939
81561
|
platform: 'android' | 'macos' | 'linux';
|
|
79940
81562
|
/**
|
|
@@ -79969,6 +81591,23 @@ export type UpdateByodDeviceResponses = {
|
|
|
79969
81591
|
* The absolute directories a desktop registered for agent sessions with its last hello; a session may only start in one of these. Empty for a phone and for a desktop that has not connected yet.
|
|
79970
81592
|
*/
|
|
79971
81593
|
agent_dirs: Array<string>;
|
|
81594
|
+
/**
|
|
81595
|
+
* Which agent each registered directory is bound to, as the desktop's last hello reported. Empty for a phone and for a desktop that has not connected yet.
|
|
81596
|
+
*/
|
|
81597
|
+
agent_bindings: Array<{
|
|
81598
|
+
/**
|
|
81599
|
+
* The absolute directory the desktop bound to an agent with praxis agent connect.
|
|
81600
|
+
*/
|
|
81601
|
+
dir: string;
|
|
81602
|
+
/**
|
|
81603
|
+
* The agent the directory is bound to: its identity number or its agent id.
|
|
81604
|
+
*/
|
|
81605
|
+
agent: string;
|
|
81606
|
+
}>;
|
|
81607
|
+
/**
|
|
81608
|
+
* 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.
|
|
81609
|
+
*/
|
|
81610
|
+
envd_version: string | null;
|
|
79972
81611
|
/**
|
|
79973
81612
|
* 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.
|
|
79974
81613
|
*/
|
|
@@ -80060,7 +81699,7 @@ export type ClaimByodPairingData = {
|
|
|
80060
81699
|
*/
|
|
80061
81700
|
body: {
|
|
80062
81701
|
/**
|
|
80063
|
-
* The device's platform. macos and linux are accepted
|
|
81702
|
+
* The device's platform. macos and linux are accepted for every organization; any other value than android, macos or linux answers INVALID_PARAMS.
|
|
80064
81703
|
*/
|
|
80065
81704
|
platform: 'android' | 'macos' | 'linux';
|
|
80066
81705
|
/**
|
|
@@ -80091,7 +81730,7 @@ export type ClaimByodPairingData = {
|
|
|
80091
81730
|
};
|
|
80092
81731
|
export type ClaimByodPairingErrors = {
|
|
80093
81732
|
/**
|
|
80094
|
-
* INVALID_PARAMS: the body is missing, platform is not android, macos or linux
|
|
81733
|
+
* 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.
|
|
80095
81734
|
*/
|
|
80096
81735
|
400: unknown;
|
|
80097
81736
|
/**
|
|
@@ -82714,8 +84353,7 @@ export type SessionsUpdateData = {
|
|
|
82714
84353
|
*/
|
|
82715
84354
|
title?: null | string;
|
|
82716
84355
|
/**
|
|
82717
|
-
*
|
|
82718
|
-
* requests setting this field are rejected. Reserved for future use.
|
|
84356
|
+
* 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.
|
|
82719
84357
|
*/
|
|
82720
84358
|
vault_ids?: Array<string>;
|
|
82721
84359
|
/**
|
|
@@ -83262,6 +84900,15 @@ export type AgentsListResponses = {
|
|
|
83262
84900
|
name: string;
|
|
83263
84901
|
}>;
|
|
83264
84902
|
};
|
|
84903
|
+
/**
|
|
84904
|
+
* 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.
|
|
84905
|
+
*/
|
|
84906
|
+
browser?: {
|
|
84907
|
+
/**
|
|
84908
|
+
* A paired browser's id (byb_ and 26 lowercase hex characters), from browser.byob.browsers.list.
|
|
84909
|
+
*/
|
|
84910
|
+
byob: string;
|
|
84911
|
+
} | null;
|
|
83265
84912
|
/**
|
|
83266
84913
|
* 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.
|
|
83267
84914
|
*/
|
|
@@ -83647,7 +85294,7 @@ export type AgentsListResponses = {
|
|
|
83647
85294
|
*/
|
|
83648
85295
|
environment_id?: string | null;
|
|
83649
85296
|
/**
|
|
83650
|
-
* Default vaults of this service or assume agent version: the vault_ids new
|
|
85297
|
+
* 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.
|
|
83651
85298
|
*/
|
|
83652
85299
|
vault_ids?: Array<string>;
|
|
83653
85300
|
/**
|
|
@@ -84186,7 +85833,7 @@ export type AgentsCreateData = {
|
|
|
84186
85833
|
*/
|
|
84187
85834
|
environment_id?: string | null;
|
|
84188
85835
|
/**
|
|
84189
|
-
* Default vaults of
|
|
85836
|
+
* 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.
|
|
84190
85837
|
*/
|
|
84191
85838
|
vault_ids?: Array<string>;
|
|
84192
85839
|
/**
|
|
@@ -84211,6 +85858,15 @@ export type AgentsCreateData = {
|
|
|
84211
85858
|
name: string;
|
|
84212
85859
|
}>;
|
|
84213
85860
|
};
|
|
85861
|
+
/**
|
|
85862
|
+
* 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.
|
|
85863
|
+
*/
|
|
85864
|
+
browser?: {
|
|
85865
|
+
/**
|
|
85866
|
+
* A paired browser's id (byb_ and 26 lowercase hex characters), from browser.byob.browsers.list.
|
|
85867
|
+
*/
|
|
85868
|
+
byob: string;
|
|
85869
|
+
} | null;
|
|
84214
85870
|
/**
|
|
84215
85871
|
* 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.
|
|
84216
85872
|
*/
|
|
@@ -84466,6 +86122,15 @@ export type AgentsCreateResponses = {
|
|
|
84466
86122
|
name: string;
|
|
84467
86123
|
}>;
|
|
84468
86124
|
};
|
|
86125
|
+
/**
|
|
86126
|
+
* 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.
|
|
86127
|
+
*/
|
|
86128
|
+
browser?: {
|
|
86129
|
+
/**
|
|
86130
|
+
* A paired browser's id (byb_ and 26 lowercase hex characters), from browser.byob.browsers.list.
|
|
86131
|
+
*/
|
|
86132
|
+
byob: string;
|
|
86133
|
+
} | null;
|
|
84469
86134
|
/**
|
|
84470
86135
|
* 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.
|
|
84471
86136
|
*/
|
|
@@ -84851,7 +86516,7 @@ export type AgentsCreateResponses = {
|
|
|
84851
86516
|
*/
|
|
84852
86517
|
environment_id?: string | null;
|
|
84853
86518
|
/**
|
|
84854
|
-
* Default vaults of this service or assume agent version: the vault_ids new
|
|
86519
|
+
* 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.
|
|
84855
86520
|
*/
|
|
84856
86521
|
vault_ids?: Array<string>;
|
|
84857
86522
|
/**
|
|
@@ -85128,6 +86793,15 @@ export type AgentsRetrieveResponses = {
|
|
|
85128
86793
|
name: string;
|
|
85129
86794
|
}>;
|
|
85130
86795
|
};
|
|
86796
|
+
/**
|
|
86797
|
+
* 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.
|
|
86798
|
+
*/
|
|
86799
|
+
browser?: {
|
|
86800
|
+
/**
|
|
86801
|
+
* A paired browser's id (byb_ and 26 lowercase hex characters), from browser.byob.browsers.list.
|
|
86802
|
+
*/
|
|
86803
|
+
byob: string;
|
|
86804
|
+
} | null;
|
|
85131
86805
|
/**
|
|
85132
86806
|
* 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.
|
|
85133
86807
|
*/
|
|
@@ -85513,7 +87187,7 @@ export type AgentsRetrieveResponses = {
|
|
|
85513
87187
|
*/
|
|
85514
87188
|
environment_id?: string | null;
|
|
85515
87189
|
/**
|
|
85516
|
-
* Default vaults of this service or assume agent version: the vault_ids new
|
|
87190
|
+
* 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.
|
|
85517
87191
|
*/
|
|
85518
87192
|
vault_ids?: Array<string>;
|
|
85519
87193
|
/**
|
|
@@ -86061,7 +87735,7 @@ export type AgentsUpdateData = {
|
|
|
86061
87735
|
*/
|
|
86062
87736
|
environment_id?: string | null;
|
|
86063
87737
|
/**
|
|
86064
|
-
* Default vaults of
|
|
87738
|
+
* 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.
|
|
86065
87739
|
*/
|
|
86066
87740
|
vault_ids?: Array<string>;
|
|
86067
87741
|
/**
|
|
@@ -86086,6 +87760,15 @@ export type AgentsUpdateData = {
|
|
|
86086
87760
|
name: string;
|
|
86087
87761
|
}>;
|
|
86088
87762
|
};
|
|
87763
|
+
/**
|
|
87764
|
+
* 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.
|
|
87765
|
+
*/
|
|
87766
|
+
browser?: {
|
|
87767
|
+
/**
|
|
87768
|
+
* A paired browser's id (byb_ and 26 lowercase hex characters), from browser.byob.browsers.list.
|
|
87769
|
+
*/
|
|
87770
|
+
byob: string;
|
|
87771
|
+
} | null;
|
|
86089
87772
|
/**
|
|
86090
87773
|
* 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.
|
|
86091
87774
|
*/
|
|
@@ -86354,6 +88037,15 @@ export type AgentsUpdateResponses = {
|
|
|
86354
88037
|
name: string;
|
|
86355
88038
|
}>;
|
|
86356
88039
|
};
|
|
88040
|
+
/**
|
|
88041
|
+
* 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.
|
|
88042
|
+
*/
|
|
88043
|
+
browser?: {
|
|
88044
|
+
/**
|
|
88045
|
+
* A paired browser's id (byb_ and 26 lowercase hex characters), from browser.byob.browsers.list.
|
|
88046
|
+
*/
|
|
88047
|
+
byob: string;
|
|
88048
|
+
} | null;
|
|
86357
88049
|
/**
|
|
86358
88050
|
* 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.
|
|
86359
88051
|
*/
|
|
@@ -86739,7 +88431,7 @@ export type AgentsUpdateResponses = {
|
|
|
86739
88431
|
*/
|
|
86740
88432
|
environment_id?: string | null;
|
|
86741
88433
|
/**
|
|
86742
|
-
* Default vaults of this service or assume agent version: the vault_ids new
|
|
88434
|
+
* 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.
|
|
86743
88435
|
*/
|
|
86744
88436
|
vault_ids?: Array<string>;
|
|
86745
88437
|
/**
|
|
@@ -87365,7 +89057,7 @@ export type AgentsArchiveResponses = {
|
|
|
87365
89057
|
*/
|
|
87366
89058
|
environment_id?: string | null;
|
|
87367
89059
|
/**
|
|
87368
|
-
* Default vaults of this service or assume agent version: the vault_ids new
|
|
89060
|
+
* 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.
|
|
87369
89061
|
*/
|
|
87370
89062
|
vault_ids?: Array<string>;
|
|
87371
89063
|
/**
|
|
@@ -87642,6 +89334,15 @@ export type AgentsVersionsListResponses = {
|
|
|
87642
89334
|
name: string;
|
|
87643
89335
|
}>;
|
|
87644
89336
|
};
|
|
89337
|
+
/**
|
|
89338
|
+
* 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.
|
|
89339
|
+
*/
|
|
89340
|
+
browser?: {
|
|
89341
|
+
/**
|
|
89342
|
+
* A paired browser's id (byb_ and 26 lowercase hex characters), from browser.byob.browsers.list.
|
|
89343
|
+
*/
|
|
89344
|
+
byob: string;
|
|
89345
|
+
} | null;
|
|
87645
89346
|
/**
|
|
87646
89347
|
* 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.
|
|
87647
89348
|
*/
|
|
@@ -88027,7 +89728,7 @@ export type AgentsVersionsListResponses = {
|
|
|
88027
89728
|
*/
|
|
88028
89729
|
environment_id?: string | null;
|
|
88029
89730
|
/**
|
|
88030
|
-
* Default vaults of this service or assume agent version: the vault_ids new
|
|
89731
|
+
* 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.
|
|
88031
89732
|
*/
|
|
88032
89733
|
vault_ids?: Array<string>;
|
|
88033
89734
|
/**
|
|
@@ -90424,6 +92125,31 @@ export type SessionsEventsListResponses = {
|
|
|
90424
92125
|
* Envelope field, not part of this event's own payload: the public sthr_ thread id of the row (null when the row has none), added by the shared projection in apps/api/src/routes/managed-session-events.ts whenever the row carries one (#4480). No writer of this event runs under a thread today, so it is declared for the frame shape rather than produced here.
|
|
90425
92126
|
*/
|
|
90426
92127
|
session_thread_id?: string | null;
|
|
92128
|
+
} | {
|
|
92129
|
+
/**
|
|
92130
|
+
* Event id, unique within the session. Use it to refer to this event, for example in user.tool_confirmation or user.steer.
|
|
92131
|
+
*/
|
|
92132
|
+
id: string;
|
|
92133
|
+
/**
|
|
92134
|
+
* Always `session.status_preparing`. A device session's local agent is starting; stage says how far it got.
|
|
92135
|
+
*/
|
|
92136
|
+
type: 'session.status_preparing';
|
|
92137
|
+
/**
|
|
92138
|
+
* RFC 3339 time at which the server processed the event; null while a queued input has not started running.
|
|
92139
|
+
*/
|
|
92140
|
+
processed_at: string;
|
|
92141
|
+
/**
|
|
92142
|
+
* How far the start got.
|
|
92143
|
+
*/
|
|
92144
|
+
stage: 'launching' | 'loading' | 'ready';
|
|
92145
|
+
/**
|
|
92146
|
+
* Envelope field, not part of this event's own payload: the transcript message id of the row, added by the shared projection in apps/api/src/routes/managed-session-events.ts whenever the row carries one (#4480). No writer of this event stamps a message id today, so it is declared for the frame shape rather than produced here.
|
|
92147
|
+
*/
|
|
92148
|
+
message_id?: string;
|
|
92149
|
+
/**
|
|
92150
|
+
* Envelope field, not part of this event's own payload: the public sthr_ thread id of the row (null when the row has none), added by the shared projection in apps/api/src/routes/managed-session-events.ts whenever the row carries one (#4480). No writer of this event runs under a thread today, so it is declared for the frame shape rather than produced here.
|
|
92151
|
+
*/
|
|
92152
|
+
session_thread_id?: string | null;
|
|
90427
92153
|
}>;
|
|
90428
92154
|
/**
|
|
90429
92155
|
* Opaque cursor for the next page: pass it unchanged as page to continue. Null when this is the last page.
|
|
@@ -92146,6 +93872,31 @@ export type SessionsThreadsEventsListResponses = {
|
|
|
92146
93872
|
* Envelope field, not part of this event's own payload: the public sthr_ thread id of the row (null when the row has none), added by the shared projection in apps/api/src/routes/managed-session-events.ts whenever the row carries one (#4480). No writer of this event runs under a thread today, so it is declared for the frame shape rather than produced here.
|
|
92147
93873
|
*/
|
|
92148
93874
|
session_thread_id?: string | null;
|
|
93875
|
+
} | {
|
|
93876
|
+
/**
|
|
93877
|
+
* Event id, unique within the session. Use it to refer to this event, for example in user.tool_confirmation or user.steer.
|
|
93878
|
+
*/
|
|
93879
|
+
id: string;
|
|
93880
|
+
/**
|
|
93881
|
+
* Always `session.status_preparing`. A device session's local agent is starting; stage says how far it got.
|
|
93882
|
+
*/
|
|
93883
|
+
type: 'session.status_preparing';
|
|
93884
|
+
/**
|
|
93885
|
+
* RFC 3339 time at which the server processed the event; null while a queued input has not started running.
|
|
93886
|
+
*/
|
|
93887
|
+
processed_at: string;
|
|
93888
|
+
/**
|
|
93889
|
+
* How far the start got.
|
|
93890
|
+
*/
|
|
93891
|
+
stage: 'launching' | 'loading' | 'ready';
|
|
93892
|
+
/**
|
|
93893
|
+
* Envelope field, not part of this event's own payload: the transcript message id of the row, added by the shared projection in apps/api/src/routes/managed-session-events.ts whenever the row carries one (#4480). No writer of this event stamps a message id today, so it is declared for the frame shape rather than produced here.
|
|
93894
|
+
*/
|
|
93895
|
+
message_id?: string;
|
|
93896
|
+
/**
|
|
93897
|
+
* Envelope field, not part of this event's own payload: the public sthr_ thread id of the row (null when the row has none), added by the shared projection in apps/api/src/routes/managed-session-events.ts whenever the row carries one (#4480). No writer of this event runs under a thread today, so it is declared for the frame shape rather than produced here.
|
|
93898
|
+
*/
|
|
93899
|
+
session_thread_id?: string | null;
|
|
92149
93900
|
}>;
|
|
92150
93901
|
/**
|
|
92151
93902
|
* Opaque cursor for the next page: pass it unchanged as page to continue. Null when this is the last page.
|
|
@@ -110984,6 +112735,51 @@ export type DevopsChangesMarkLastSliceResponses = {
|
|
|
110984
112735
|
200: DevopsChange;
|
|
110985
112736
|
};
|
|
110986
112737
|
export type DevopsChangesMarkLastSliceResponse = DevopsChangesMarkLastSliceResponses[keyof DevopsChangesMarkLastSliceResponses];
|
|
112738
|
+
export type DevopsChangesSlicesCreateData = {
|
|
112739
|
+
body?: DevopsChangeSliceCreateRequest;
|
|
112740
|
+
path: {
|
|
112741
|
+
/**
|
|
112742
|
+
* Identifies the project whose data you are reading, from the project list or create answer.
|
|
112743
|
+
*/
|
|
112744
|
+
project: string;
|
|
112745
|
+
/**
|
|
112746
|
+
* The change whose slice you are opening: its id, which is its branch name <type>/<slug> from a change list or create answer. Give it as it comes back — `feat/run-page-v2`; the SDK and the CLI encode the slash themselves.
|
|
112747
|
+
*/
|
|
112748
|
+
change: string;
|
|
112749
|
+
};
|
|
112750
|
+
query?: never;
|
|
112751
|
+
url: '/devops/v1/projects/{project}/changes/{change}/slices';
|
|
112752
|
+
};
|
|
112753
|
+
export type DevopsChangesSlicesCreateErrors = {
|
|
112754
|
+
/**
|
|
112755
|
+
* INVALID_ARGUMENT means the change is abandoned, or from names a branch that does not belong to this change; nothing was cut. Open a new change, or pick from the change's own branches.
|
|
112756
|
+
*/
|
|
112757
|
+
400: DevopsDevOpsError;
|
|
112758
|
+
/**
|
|
112759
|
+
* The API key is missing or invalid; send a valid Praxis API key in the Authorization header before retrying.
|
|
112760
|
+
*/
|
|
112761
|
+
401: DevopsDevOpsError;
|
|
112762
|
+
/**
|
|
112763
|
+
* The credential carries no organization, or that organization cannot reach this project; use a key belonging to the project's organization. No cross-organization read is possible.
|
|
112764
|
+
*/
|
|
112765
|
+
403: DevopsDevOpsError;
|
|
112766
|
+
/**
|
|
112767
|
+
* CHANGE_NOT_FOUND means no change with that id exists in this organization; list the project's changes and use an id from that answer, with its slash percent-encoded.
|
|
112768
|
+
*/
|
|
112769
|
+
404: DevopsDevOpsError;
|
|
112770
|
+
/**
|
|
112771
|
+
* INTERNAL means the service could not complete the request; retry once, and if it repeats report the request id. A read is safe to repeat; a write that failed this way should be re-read before it is sent again.
|
|
112772
|
+
*/
|
|
112773
|
+
500: DevopsDevOpsError;
|
|
112774
|
+
};
|
|
112775
|
+
export type DevopsChangesSlicesCreateError = DevopsChangesSlicesCreateErrors[keyof DevopsChangesSlicesCreateErrors];
|
|
112776
|
+
export type DevopsChangesSlicesCreateResponses = {
|
|
112777
|
+
/**
|
|
112778
|
+
* The new slice: its branch, the directory to work in and the workspace that holds it. Calling again opens a further slice; it does not return the previous one.
|
|
112779
|
+
*/
|
|
112780
|
+
200: DevopsChangeSliceOpened;
|
|
112781
|
+
};
|
|
112782
|
+
export type DevopsChangesSlicesCreateResponse = DevopsChangesSlicesCreateResponses[keyof DevopsChangesSlicesCreateResponses];
|
|
110987
112783
|
export type DevopsChangesOpenPullRequestData = {
|
|
110988
112784
|
body?: DevopsChangeOpenPullRequestRequest;
|
|
110989
112785
|
path: {
|
|
@@ -112340,7 +114136,7 @@ export type DevopsUnitsPushErrors = {
|
|
|
112340
114136
|
*/
|
|
112341
114137
|
404: DevopsDevOpsError;
|
|
112342
114138
|
/**
|
|
112343
|
-
* 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
|
|
114139
|
+
* 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.
|
|
112344
114140
|
*/
|
|
112345
114141
|
409: DevopsDevOpsError;
|
|
112346
114142
|
/**
|
|
@@ -120055,7 +121851,7 @@ export type GetSandboxV1SandboxesResponses = {
|
|
|
120055
121851
|
};
|
|
120056
121852
|
export type GetSandboxV1SandboxesResponse = GetSandboxV1SandboxesResponses[keyof GetSandboxV1SandboxesResponses];
|
|
120057
121853
|
export type PostSandboxV1SandboxesData = {
|
|
120058
|
-
body:
|
|
121854
|
+
body: SandboxNewSandboxV2Writable;
|
|
120059
121855
|
path?: never;
|
|
120060
121856
|
query?: never;
|
|
120061
121857
|
url: '/sandbox/v1/sandboxes';
|