@deepraxis/sdk 0.2.0-dev.936d133 → 0.2.0-dev.9bf33e2
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 +41 -1
- package/dist/core/retry.js +2 -0
- package/dist/core/transport.js +15 -3
- package/dist/generated/index.d.ts +2 -2
- package/dist/generated/index.js +1 -1
- package/dist/generated/sdk.gen.d.ts +67 -13
- package/dist/generated/sdk.gen.js +141 -12
- package/dist/generated/types.gen.d.ts +2212 -494
- 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 +321 -20
- package/dist/resources.generated.d.ts +90 -0
- package/dist/resources.generated.js +25 -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
|
/**
|
|
@@ -5192,7 +5574,7 @@ export type MediaStreamOutput = {
|
|
|
5192
5574
|
*/
|
|
5193
5575
|
status: 'idle' | 'starting' | 'broadcasting' | 'errored';
|
|
5194
5576
|
/**
|
|
5195
|
-
* Why the output is errored; null in every other status.
|
|
5577
|
+
* Why the last connection failed, while the output is errored or starting again after a failure; null in every other status.
|
|
5196
5578
|
*/
|
|
5197
5579
|
error: MediaStreamOutputError;
|
|
5198
5580
|
/**
|
|
@@ -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.
|
|
@@ -30066,7 +30515,7 @@ export type MediaStreamEvent = {
|
|
|
30066
30515
|
*/
|
|
30067
30516
|
seq: number;
|
|
30068
30517
|
/**
|
|
30069
|
-
* stream.waiting: a pulled source is not live yet; stream.connected: the source connected; stream.active: media started flowing; stream.disconnected: the source dropped or was refused (data.reason says why, for example quota_exceeded); stream.idle: the broadcast ended; recording.ready: a recording became a Media asset (data.asset_id); recording.failed: it did not (data.reason). transcript.partial and transcript.final: speech as text (data.text, data.sentence_id, data.start_ms, data.end_ms); frame.described: one keyframe described (data.text); alert: an alert rule matched (data.matched, data.source_event_ids); pipeline.unsupported_audio: the audio cannot be transcribed yet (data.codec); pipeline.describe_failed: a frame description failed (data.step, data.message). output.status: a re-broadcast target changed status (data.output_id, data.status and, when errored, data.error).
|
|
30518
|
+
* stream.waiting: a pulled source is not live yet; stream.connected: the source connected; stream.active: media started flowing; stream.disconnected: the source dropped or was refused (data.reason says why, for example quota_exceeded); stream.idle: the broadcast ended; recording.ready: a recording became a Media asset (data.asset_id); recording.failed: it did not (data.reason). transcript.partial and transcript.final: speech as text (data.text, data.sentence_id, data.start_ms, data.end_ms); frame.described: one keyframe described (data.text); alert: an alert rule matched (data.matched, data.source_event_ids); pipeline.unsupported_audio: the audio cannot be transcribed yet (data.codec); pipeline.describe_failed: a frame description failed (data.step, data.message). output.status: a re-broadcast target changed status (data.output_id, data.status and, when it is errored or trying again after a failure, data.error with the reason).
|
|
30070
30519
|
*/
|
|
30071
30520
|
kind: 'stream.waiting' | 'stream.connected' | 'stream.active' | 'stream.disconnected' | 'stream.idle' | 'recording.ready' | 'recording.failed' | 'output.status' | 'transcript.partial' | 'transcript.final' | 'frame.described' | 'alert' | 'pipeline.unsupported_audio' | 'pipeline.describe_failed';
|
|
30072
30521
|
/**
|
|
@@ -30156,7 +30605,7 @@ export type MediaPipelineAlertRule = {
|
|
|
30156
30605
|
[key: string]: unknown;
|
|
30157
30606
|
};
|
|
30158
30607
|
/**
|
|
30159
|
-
* Why an errored
|
|
30608
|
+
* Why an output is errored, or is trying again after a failure.
|
|
30160
30609
|
*/
|
|
30161
30610
|
export type MediaStreamOutputError = {
|
|
30162
30611
|
/**
|
|
@@ -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.
|
|
@@ -47787,7 +48244,7 @@ export type DevopsPlannedSkip = {
|
|
|
47787
48244
|
/**
|
|
47788
48245
|
* Why it is left out, which is what tells a deliberate skip apart from an oversight.
|
|
47789
48246
|
*/
|
|
47790
|
-
reason: 'unchanged' | 'newer_checkpoint' | 'not_requested' | 'callee_excluded' | 'artifact_identical';
|
|
48247
|
+
reason: 'unchanged' | 'newer_checkpoint' | 'not_requested' | 'callee_excluded' | 'not_deployed_upstream' | 'artifact_identical';
|
|
47791
48248
|
};
|
|
47792
48249
|
/**
|
|
47793
48250
|
* The migrations one target has pending, as the plan found them.
|
|
@@ -50642,6 +51099,58 @@ export type UpdateMediaPipelineRequestWritable = {
|
|
|
50642
51099
|
* Models to use for completion
|
|
50643
51100
|
*/
|
|
50644
51101
|
export type OpenaiChatModelNamesWritable = Array<OpenaiModelName & unknown>;
|
|
51102
|
+
export type SandboxSandboxDetailWritable = {
|
|
51103
|
+
/**
|
|
51104
|
+
* Identifier of the template from which is the sandbox created
|
|
51105
|
+
*/
|
|
51106
|
+
templateID: string;
|
|
51107
|
+
/**
|
|
51108
|
+
* Alias of the template
|
|
51109
|
+
*/
|
|
51110
|
+
alias?: string;
|
|
51111
|
+
/**
|
|
51112
|
+
* Identifier of the sandbox
|
|
51113
|
+
*/
|
|
51114
|
+
sandboxID: string;
|
|
51115
|
+
/**
|
|
51116
|
+
* Identifier of the client
|
|
51117
|
+
*
|
|
51118
|
+
* @deprecated
|
|
51119
|
+
*/
|
|
51120
|
+
clientID: string;
|
|
51121
|
+
/**
|
|
51122
|
+
* Time when the sandbox was started
|
|
51123
|
+
*/
|
|
51124
|
+
startedAt: string;
|
|
51125
|
+
/**
|
|
51126
|
+
* Time when the sandbox will expire
|
|
51127
|
+
*/
|
|
51128
|
+
endAt: string;
|
|
51129
|
+
envdVersion: SandboxEnvdVersion;
|
|
51130
|
+
/**
|
|
51131
|
+
* Access token used for envd communication
|
|
51132
|
+
*/
|
|
51133
|
+
envdAccessToken?: string;
|
|
51134
|
+
/**
|
|
51135
|
+
* Whether internet access was explicitly enabled or disabled for the sandbox. Null means it was not explicitly set.
|
|
51136
|
+
*/
|
|
51137
|
+
allowInternetAccess?: boolean;
|
|
51138
|
+
/**
|
|
51139
|
+
* Base domain where the sandbox traffic is accessible
|
|
51140
|
+
*/
|
|
51141
|
+
domain?: string;
|
|
51142
|
+
cpuCount: SandboxCpuCount;
|
|
51143
|
+
memoryMB: SandboxMemoryMb;
|
|
51144
|
+
diskSizeMB: SandboxDiskSizeMb;
|
|
51145
|
+
metadata?: SandboxSandboxMetadata;
|
|
51146
|
+
state: SandboxSandboxState;
|
|
51147
|
+
network?: SandboxSandboxNetworkConfigWritable;
|
|
51148
|
+
lifecycle?: SandboxSandboxLifecycle;
|
|
51149
|
+
/**
|
|
51150
|
+
* Volumes mounted into the sandbox.
|
|
51151
|
+
*/
|
|
51152
|
+
volumeMounts?: Array<SandboxSandboxVolumeMount>;
|
|
51153
|
+
};
|
|
50645
51154
|
/**
|
|
50646
51155
|
* Free-form string key/value pairs stored with the session, changed through sessions.update patch semantics.
|
|
50647
51156
|
*/
|
|
@@ -51221,6 +51730,94 @@ export type MediaSemanticSearchResultWritable = {
|
|
|
51221
51730
|
*/
|
|
51222
51731
|
not_ready_excluded: number;
|
|
51223
51732
|
};
|
|
51733
|
+
/**
|
|
51734
|
+
* Sandbox creation request. All system communication with the sandbox is always secured; the template's envd version must support secured access.
|
|
51735
|
+
*/
|
|
51736
|
+
export type SandboxNewSandboxV2Writable = {
|
|
51737
|
+
/**
|
|
51738
|
+
* Identifier of the required template
|
|
51739
|
+
*/
|
|
51740
|
+
templateID: string;
|
|
51741
|
+
/**
|
|
51742
|
+
* Lifetime of the new sandbox in seconds. Defaults to 300 seconds when omitted.
|
|
51743
|
+
*/
|
|
51744
|
+
timeout?: number;
|
|
51745
|
+
/**
|
|
51746
|
+
* 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.
|
|
51747
|
+
*/
|
|
51748
|
+
autoPause?: boolean;
|
|
51749
|
+
/**
|
|
51750
|
+
* 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).
|
|
51751
|
+
*/
|
|
51752
|
+
autoPauseMemory?: boolean;
|
|
51753
|
+
autoResume?: SandboxSandboxAutoResumeConfig;
|
|
51754
|
+
/**
|
|
51755
|
+
* 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.
|
|
51756
|
+
*/
|
|
51757
|
+
allow_internet_access?: boolean;
|
|
51758
|
+
network?: SandboxSandboxNetworkConfigWritable;
|
|
51759
|
+
metadata?: SandboxSandboxMetadata;
|
|
51760
|
+
envVars?: SandboxEnvVars;
|
|
51761
|
+
mcp?: SandboxMcp;
|
|
51762
|
+
iam?: SandboxSandboxIam;
|
|
51763
|
+
/**
|
|
51764
|
+
* Volumes to mount into the sandbox, each with the volume name and the path inside the sandbox.
|
|
51765
|
+
*/
|
|
51766
|
+
volumeMounts?: Array<SandboxSandboxVolumeMount>;
|
|
51767
|
+
/**
|
|
51768
|
+
* 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.
|
|
51769
|
+
*/
|
|
51770
|
+
ephemeral?: boolean;
|
|
51771
|
+
/**
|
|
51772
|
+
* 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.
|
|
51773
|
+
*/
|
|
51774
|
+
size?: string;
|
|
51775
|
+
/**
|
|
51776
|
+
* Own face: a display name for the sandbox, 1 to 64 characters. Omitted, one is generated from the template.
|
|
51777
|
+
*/
|
|
51778
|
+
name?: string;
|
|
51779
|
+
/**
|
|
51780
|
+
* 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.
|
|
51781
|
+
*/
|
|
51782
|
+
waitForReady?: boolean;
|
|
51783
|
+
/**
|
|
51784
|
+
* Own face: what happens at the timeout. pause needs ephemeral: false; must agree with autoPause when both are sent.
|
|
51785
|
+
*/
|
|
51786
|
+
onExpire?: 'kill' | 'pause';
|
|
51787
|
+
/**
|
|
51788
|
+
* Own face, persistent sandboxes only: pause after this many milliseconds without activity; null turns the idle pause off.
|
|
51789
|
+
*/
|
|
51790
|
+
idleTimeout?: number;
|
|
51791
|
+
/**
|
|
51792
|
+
* 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.
|
|
51793
|
+
*/
|
|
51794
|
+
idleActivity?: 'traffic' | 'caller';
|
|
51795
|
+
/**
|
|
51796
|
+
* 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.
|
|
51797
|
+
*/
|
|
51798
|
+
sku?: string;
|
|
51799
|
+
/**
|
|
51800
|
+
* 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.
|
|
51801
|
+
*/
|
|
51802
|
+
kind?: 'run' | 'job' | 'batch' | 'computer' | 'compat';
|
|
51803
|
+
/**
|
|
51804
|
+
* 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.
|
|
51805
|
+
*/
|
|
51806
|
+
interruptible?: boolean;
|
|
51807
|
+
/**
|
|
51808
|
+
* 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.
|
|
51809
|
+
*/
|
|
51810
|
+
onLoss?: 'fail' | 'rebuild';
|
|
51811
|
+
/**
|
|
51812
|
+
* 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.
|
|
51813
|
+
*/
|
|
51814
|
+
outputs?: Array<{
|
|
51815
|
+
/**
|
|
51816
|
+
* Absolute path of a directory or file inside the sandbox.
|
|
51817
|
+
*/
|
|
51818
|
+
path: string;
|
|
51819
|
+
}>;
|
|
51820
|
+
};
|
|
51224
51821
|
/**
|
|
51225
51822
|
* Arguments the model passed to the tool.
|
|
51226
51823
|
*/
|
|
@@ -51299,6 +51896,43 @@ export type AnthropicAnonymous204Writable = {
|
|
|
51299
51896
|
export type AnthropicAnonymous206Writable = {
|
|
51300
51897
|
[key: string]: unknown;
|
|
51301
51898
|
};
|
|
51899
|
+
/**
|
|
51900
|
+
* Network policy of the sandbox: public access, egress allow and deny lists and proxy.
|
|
51901
|
+
*/
|
|
51902
|
+
export type SandboxSandboxNetworkConfigWritable = {
|
|
51903
|
+
/**
|
|
51904
|
+
* Specify if the sandbox URLs should be accessible only with authentication.
|
|
51905
|
+
*/
|
|
51906
|
+
allowPublicTraffic?: boolean;
|
|
51907
|
+
/**
|
|
51908
|
+
* 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.
|
|
51909
|
+
*/
|
|
51910
|
+
allowOut?: Array<string>;
|
|
51911
|
+
/**
|
|
51912
|
+
* List of denied CIDR blocks or IP addresses for egress traffic. Domain names are not supported for deny rules.
|
|
51913
|
+
*/
|
|
51914
|
+
denyOut?: Array<string>;
|
|
51915
|
+
egressProxy?: SandboxSandboxEgressProxyConfig;
|
|
51916
|
+
/**
|
|
51917
|
+
* Specify host mask which will be used for all sandbox requests
|
|
51918
|
+
*/
|
|
51919
|
+
maskRequestHost?: string;
|
|
51920
|
+
/**
|
|
51921
|
+
* Unlike E2B, network.httpsPorts is rejected; omit it when creating a sandbox.
|
|
51922
|
+
*/
|
|
51923
|
+
httpsPorts?: Array<number>;
|
|
51924
|
+
/**
|
|
51925
|
+
* 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.
|
|
51926
|
+
*
|
|
51927
|
+
*/
|
|
51928
|
+
rules?: {
|
|
51929
|
+
[key: string]: Array<SandboxSandboxNetworkRule>;
|
|
51930
|
+
};
|
|
51931
|
+
/**
|
|
51932
|
+
* 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.
|
|
51933
|
+
*/
|
|
51934
|
+
staticEgressIp?: boolean;
|
|
51935
|
+
};
|
|
51302
51936
|
/**
|
|
51303
51937
|
* Free-form string key/value pairs.
|
|
51304
51938
|
*/
|
|
@@ -51934,6 +52568,10 @@ export type DevopsLockId = string;
|
|
|
51934
52568
|
* 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
52569
|
*/
|
|
51936
52570
|
export type DevopsChangeIdPath = string;
|
|
52571
|
+
/**
|
|
52572
|
+
* 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.
|
|
52573
|
+
*/
|
|
52574
|
+
export type DevopsChangePathParam = string;
|
|
51937
52575
|
/**
|
|
51938
52576
|
* 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
52577
|
*/
|
|
@@ -53577,6 +54215,31 @@ export type ListAgentEventsResponses = {
|
|
|
53577
54215
|
* 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
54216
|
*/
|
|
53579
54217
|
session_thread_id?: string | null;
|
|
54218
|
+
} | {
|
|
54219
|
+
/**
|
|
54220
|
+
* Event id, unique within the session. Use it to refer to this event, for example in user.tool_confirmation or user.steer.
|
|
54221
|
+
*/
|
|
54222
|
+
id: string;
|
|
54223
|
+
/**
|
|
54224
|
+
* Always `session.status_preparing`. A device session's local agent is starting; stage says how far it got.
|
|
54225
|
+
*/
|
|
54226
|
+
type: 'session.status_preparing';
|
|
54227
|
+
/**
|
|
54228
|
+
* RFC 3339 time at which the server processed the event; null while a queued input has not started running.
|
|
54229
|
+
*/
|
|
54230
|
+
processed_at: string;
|
|
54231
|
+
/**
|
|
54232
|
+
* How far the start got.
|
|
54233
|
+
*/
|
|
54234
|
+
stage: 'launching' | 'loading' | 'ready';
|
|
54235
|
+
/**
|
|
54236
|
+
* 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.
|
|
54237
|
+
*/
|
|
54238
|
+
message_id?: string;
|
|
54239
|
+
/**
|
|
54240
|
+
* 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.
|
|
54241
|
+
*/
|
|
54242
|
+
session_thread_id?: string | null;
|
|
53580
54243
|
}>;
|
|
53581
54244
|
/**
|
|
53582
54245
|
* Opaque cursor for the next page: pass it unchanged as page to continue. Null when this is the last page.
|
|
@@ -53997,6 +54660,86 @@ export type ListAgentInboxLettersResponses = {
|
|
|
53997
54660
|
};
|
|
53998
54661
|
};
|
|
53999
54662
|
export type ListAgentInboxLettersResponse = ListAgentInboxLettersResponses[keyof ListAgentInboxLettersResponses];
|
|
54663
|
+
export type ListAgentDeviceLocalSessionsData = {
|
|
54664
|
+
body?: never;
|
|
54665
|
+
path: {
|
|
54666
|
+
/**
|
|
54667
|
+
* 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_….
|
|
54668
|
+
*/
|
|
54669
|
+
agent_id: string;
|
|
54670
|
+
/**
|
|
54671
|
+
* The paired desktop device (byd_ and 26 hex characters) whose sessions to list; you must be the person who paired it.
|
|
54672
|
+
*/
|
|
54673
|
+
device_id: string;
|
|
54674
|
+
};
|
|
54675
|
+
query: {
|
|
54676
|
+
/**
|
|
54677
|
+
* The absolute directory on the device, exactly as the device registered it and bound it to this agent.
|
|
54678
|
+
*/
|
|
54679
|
+
cwd: string;
|
|
54680
|
+
/**
|
|
54681
|
+
* The next_cursor of the previous page; leave it out for the first page.
|
|
54682
|
+
*/
|
|
54683
|
+
cursor?: string;
|
|
54684
|
+
};
|
|
54685
|
+
url: '/agent/v1/agents/{agent_id}/devices/{device_id}/local-sessions';
|
|
54686
|
+
};
|
|
54687
|
+
export type ListAgentDeviceLocalSessionsErrors = {
|
|
54688
|
+
/**
|
|
54689
|
+
* 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.
|
|
54690
|
+
*/
|
|
54691
|
+
400: unknown;
|
|
54692
|
+
/**
|
|
54693
|
+
* Authenticate with your own API key or a console session; an agent's or robot's credential cannot list a person's device.
|
|
54694
|
+
*/
|
|
54695
|
+
401: unknown;
|
|
54696
|
+
/**
|
|
54697
|
+
* 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.
|
|
54698
|
+
*/
|
|
54699
|
+
403: AgentError;
|
|
54700
|
+
/**
|
|
54701
|
+
* AGENT_NOT_FOUND: no agent with this reference exists in your organization; list agents with agents.list.
|
|
54702
|
+
*/
|
|
54703
|
+
404: unknown;
|
|
54704
|
+
/**
|
|
54705
|
+
* 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.
|
|
54706
|
+
*/
|
|
54707
|
+
503: unknown;
|
|
54708
|
+
};
|
|
54709
|
+
export type ListAgentDeviceLocalSessionsError = ListAgentDeviceLocalSessionsErrors[keyof ListAgentDeviceLocalSessionsErrors];
|
|
54710
|
+
export type ListAgentDeviceLocalSessionsResponses = {
|
|
54711
|
+
/**
|
|
54712
|
+
* One page of the device's sessions for that directory, newest first.
|
|
54713
|
+
*/
|
|
54714
|
+
200: {
|
|
54715
|
+
/**
|
|
54716
|
+
* The sessions of this page; empty when the directory has none.
|
|
54717
|
+
*/
|
|
54718
|
+
data: Array<{
|
|
54719
|
+
/**
|
|
54720
|
+
* The Claude Code session id on the device; pass it as runtime.resume_session_id when creating a session to continue it.
|
|
54721
|
+
*/
|
|
54722
|
+
id: string;
|
|
54723
|
+
/**
|
|
54724
|
+
* The session's title as Claude Code shows it; empty when it has none.
|
|
54725
|
+
*/
|
|
54726
|
+
title: string;
|
|
54727
|
+
/**
|
|
54728
|
+
* When the session was last written to, RFC 3339; sessions are ordered newest first.
|
|
54729
|
+
*/
|
|
54730
|
+
updated_at: string | null;
|
|
54731
|
+
/**
|
|
54732
|
+
* The directory the session ran in on the device.
|
|
54733
|
+
*/
|
|
54734
|
+
cwd: string | null;
|
|
54735
|
+
}>;
|
|
54736
|
+
/**
|
|
54737
|
+
* Pass as cursor for the next page; null on the last page.
|
|
54738
|
+
*/
|
|
54739
|
+
next_cursor: string | null;
|
|
54740
|
+
};
|
|
54741
|
+
};
|
|
54742
|
+
export type ListAgentDeviceLocalSessionsResponse = ListAgentDeviceLocalSessionsResponses[keyof ListAgentDeviceLocalSessionsResponses];
|
|
54000
54743
|
export type CreateAgentLoginIntentData = {
|
|
54001
54744
|
body?: never;
|
|
54002
54745
|
path?: never;
|
|
@@ -54007,32 +54750,33 @@ export type CreateAgentLoginIntentErrors = {
|
|
|
54007
54750
|
/**
|
|
54008
54751
|
* 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
54752
|
*/
|
|
54010
|
-
400:
|
|
54753
|
+
400: AgentError;
|
|
54011
54754
|
/**
|
|
54012
54755
|
* Authentication required: send the platform session's own credential.
|
|
54013
54756
|
*/
|
|
54014
|
-
401:
|
|
54757
|
+
401: AgentError;
|
|
54015
54758
|
/**
|
|
54016
54759
|
* 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
54760
|
*/
|
|
54018
|
-
403:
|
|
54761
|
+
403: AgentError;
|
|
54019
54762
|
/**
|
|
54020
54763
|
* AGENT_NOT_FOUND: the agent the credential names does not exist in this organization; check the agent the session was opened for.
|
|
54021
54764
|
*/
|
|
54022
|
-
404:
|
|
54765
|
+
404: AgentError;
|
|
54023
54766
|
/**
|
|
54024
54767
|
* 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
54768
|
*/
|
|
54026
|
-
409:
|
|
54769
|
+
409: AgentError;
|
|
54027
54770
|
/**
|
|
54028
54771
|
* UPSTREAM_UNAVAILABLE: the agent service or identity could not answer; retry once the service is back.
|
|
54029
54772
|
*/
|
|
54030
|
-
502:
|
|
54773
|
+
502: AgentError;
|
|
54031
54774
|
/**
|
|
54032
54775
|
* UNAVAILABLE: identity is not configured in this deployment.
|
|
54033
54776
|
*/
|
|
54034
|
-
503:
|
|
54777
|
+
503: AgentError;
|
|
54035
54778
|
};
|
|
54779
|
+
export type CreateAgentLoginIntentError = CreateAgentLoginIntentErrors[keyof CreateAgentLoginIntentErrors];
|
|
54036
54780
|
export type CreateAgentLoginIntentResponses = {
|
|
54037
54781
|
/**
|
|
54038
54782
|
* The one-time login code and when it stops working; the code is answered once and never again.
|
|
@@ -54896,6 +55640,15 @@ export type ApplyAgentVersionResponses = {
|
|
|
54896
55640
|
name: string;
|
|
54897
55641
|
}>;
|
|
54898
55642
|
};
|
|
55643
|
+
/**
|
|
55644
|
+
* 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.
|
|
55645
|
+
*/
|
|
55646
|
+
browser?: {
|
|
55647
|
+
/**
|
|
55648
|
+
* A paired browser's id (byb_ and 26 lowercase hex characters), from browser.byob.browsers.list.
|
|
55649
|
+
*/
|
|
55650
|
+
byob: string;
|
|
55651
|
+
} | null;
|
|
54899
55652
|
/**
|
|
54900
55653
|
* 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
55654
|
*/
|
|
@@ -55281,7 +56034,7 @@ export type ApplyAgentVersionResponses = {
|
|
|
55281
56034
|
*/
|
|
55282
56035
|
environment_id?: string | null;
|
|
55283
56036
|
/**
|
|
55284
|
-
* Default vaults of this service or assume agent version: the vault_ids new
|
|
56037
|
+
* 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
56038
|
*/
|
|
55286
56039
|
vault_ids?: Array<string>;
|
|
55287
56040
|
/**
|
|
@@ -56147,6 +56900,15 @@ export type UnarchiveAgentResponses = {
|
|
|
56147
56900
|
name: string;
|
|
56148
56901
|
}>;
|
|
56149
56902
|
};
|
|
56903
|
+
/**
|
|
56904
|
+
* 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.
|
|
56905
|
+
*/
|
|
56906
|
+
browser?: {
|
|
56907
|
+
/**
|
|
56908
|
+
* A paired browser's id (byb_ and 26 lowercase hex characters), from browser.byob.browsers.list.
|
|
56909
|
+
*/
|
|
56910
|
+
byob: string;
|
|
56911
|
+
} | null;
|
|
56150
56912
|
/**
|
|
56151
56913
|
* 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
56914
|
*/
|
|
@@ -56532,7 +57294,7 @@ export type UnarchiveAgentResponses = {
|
|
|
56532
57294
|
*/
|
|
56533
57295
|
environment_id?: string | null;
|
|
56534
57296
|
/**
|
|
56535
|
-
* Default vaults of this service or assume agent version: the vault_ids new
|
|
57297
|
+
* 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
57298
|
*/
|
|
56537
57299
|
vault_ids?: Array<string>;
|
|
56538
57300
|
/**
|
|
@@ -59001,9 +59763,13 @@ export type ComputersRetrieveResponse = ComputersRetrieveResponses[keyof Compute
|
|
|
59001
59763
|
export type ComputersUpdateData = {
|
|
59002
59764
|
body: {
|
|
59003
59765
|
/**
|
|
59004
|
-
*
|
|
59766
|
+
* New display name, 1 to 255 characters after trimming. Omit to keep the current name.
|
|
59005
59767
|
*/
|
|
59006
|
-
name
|
|
59768
|
+
name?: string;
|
|
59769
|
+
/**
|
|
59770
|
+
* 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.
|
|
59771
|
+
*/
|
|
59772
|
+
environment_id?: string | null;
|
|
59007
59773
|
};
|
|
59008
59774
|
path: {
|
|
59009
59775
|
/**
|
|
@@ -61173,7 +61939,7 @@ export type ComputersFilesConvertResponse = ComputersFilesConvertResponses[keyof
|
|
|
61173
61939
|
export type ConnectComputerData = {
|
|
61174
61940
|
body?: {
|
|
61175
61941
|
/**
|
|
61176
|
-
*
|
|
61942
|
+
* Accepted for compatibility and ignored: light and heavy both reach the same machine, because a Computer is one machine. Omit it.
|
|
61177
61943
|
*/
|
|
61178
61944
|
need?: 'light' | 'heavy';
|
|
61179
61945
|
};
|
|
@@ -68777,17 +69543,21 @@ export type BrowserListSessionsErrors = {
|
|
|
68777
69543
|
*/
|
|
68778
69544
|
402: BrowserError;
|
|
68779
69545
|
/**
|
|
68780
|
-
* PERMISSION_DENIED / ACCOUNT_SUSPENDED
|
|
69546
|
+
* PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
|
|
68781
69547
|
*/
|
|
68782
69548
|
403: BrowserError;
|
|
68783
69549
|
/**
|
|
68784
|
-
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
69550
|
+
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
68785
69551
|
*/
|
|
68786
69552
|
404: BrowserError;
|
|
68787
69553
|
/**
|
|
68788
|
-
* SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
69554
|
+
* SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
68789
69555
|
*/
|
|
68790
69556
|
409: BrowserError;
|
|
69557
|
+
/**
|
|
69558
|
+
* BROWSER_REVOKED
|
|
69559
|
+
*/
|
|
69560
|
+
410: BrowserError;
|
|
68791
69561
|
/**
|
|
68792
69562
|
* ACTION_RESULT_TOO_LARGE
|
|
68793
69563
|
*/
|
|
@@ -68809,7 +69579,7 @@ export type BrowserListSessionsErrors = {
|
|
|
68809
69579
|
*/
|
|
68810
69580
|
502: BrowserError;
|
|
68811
69581
|
/**
|
|
68812
|
-
* SERVICE_UNAVAILABLE
|
|
69582
|
+
* BROWSER_OFFLINE / SERVICE_UNAVAILABLE
|
|
68813
69583
|
*/
|
|
68814
69584
|
503: BrowserError;
|
|
68815
69585
|
/**
|
|
@@ -68854,17 +69624,21 @@ export type BrowserCreateSessionErrors = {
|
|
|
68854
69624
|
*/
|
|
68855
69625
|
402: BrowserError;
|
|
68856
69626
|
/**
|
|
68857
|
-
* PERMISSION_DENIED / ACCOUNT_SUSPENDED
|
|
69627
|
+
* PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
|
|
68858
69628
|
*/
|
|
68859
69629
|
403: BrowserError;
|
|
68860
69630
|
/**
|
|
68861
|
-
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
69631
|
+
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
68862
69632
|
*/
|
|
68863
69633
|
404: BrowserError;
|
|
68864
69634
|
/**
|
|
68865
|
-
* SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
69635
|
+
* SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
68866
69636
|
*/
|
|
68867
69637
|
409: BrowserError;
|
|
69638
|
+
/**
|
|
69639
|
+
* BROWSER_REVOKED
|
|
69640
|
+
*/
|
|
69641
|
+
410: BrowserError;
|
|
68868
69642
|
/**
|
|
68869
69643
|
* ACTION_RESULT_TOO_LARGE
|
|
68870
69644
|
*/
|
|
@@ -68886,7 +69660,7 @@ export type BrowserCreateSessionErrors = {
|
|
|
68886
69660
|
*/
|
|
68887
69661
|
502: BrowserError;
|
|
68888
69662
|
/**
|
|
68889
|
-
* SERVICE_UNAVAILABLE
|
|
69663
|
+
* BROWSER_OFFLINE / SERVICE_UNAVAILABLE
|
|
68890
69664
|
*/
|
|
68891
69665
|
503: BrowserError;
|
|
68892
69666
|
/**
|
|
@@ -68896,6 +69670,10 @@ export type BrowserCreateSessionErrors = {
|
|
|
68896
69670
|
};
|
|
68897
69671
|
export type BrowserCreateSessionError = BrowserCreateSessionErrors[keyof BrowserCreateSessionErrors];
|
|
68898
69672
|
export type BrowserCreateSessionResponses = {
|
|
69673
|
+
/**
|
|
69674
|
+
* 请求成功。
|
|
69675
|
+
*/
|
|
69676
|
+
200: BrowserSessionCreateResult;
|
|
68899
69677
|
/**
|
|
68900
69678
|
* 请求成功。
|
|
68901
69679
|
*/
|
|
@@ -68932,17 +69710,21 @@ export type BrowserGetSessionErrors = {
|
|
|
68932
69710
|
*/
|
|
68933
69711
|
402: BrowserError;
|
|
68934
69712
|
/**
|
|
68935
|
-
* PERMISSION_DENIED / ACCOUNT_SUSPENDED
|
|
69713
|
+
* PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
|
|
68936
69714
|
*/
|
|
68937
69715
|
403: BrowserError;
|
|
68938
69716
|
/**
|
|
68939
|
-
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
69717
|
+
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
68940
69718
|
*/
|
|
68941
69719
|
404: BrowserError;
|
|
68942
69720
|
/**
|
|
68943
|
-
* SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
69721
|
+
* SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
68944
69722
|
*/
|
|
68945
69723
|
409: BrowserError;
|
|
69724
|
+
/**
|
|
69725
|
+
* BROWSER_REVOKED
|
|
69726
|
+
*/
|
|
69727
|
+
410: BrowserError;
|
|
68946
69728
|
/**
|
|
68947
69729
|
* ACTION_RESULT_TOO_LARGE
|
|
68948
69730
|
*/
|
|
@@ -68964,7 +69746,7 @@ export type BrowserGetSessionErrors = {
|
|
|
68964
69746
|
*/
|
|
68965
69747
|
502: BrowserError;
|
|
68966
69748
|
/**
|
|
68967
|
-
* SERVICE_UNAVAILABLE
|
|
69749
|
+
* BROWSER_OFFLINE / SERVICE_UNAVAILABLE
|
|
68968
69750
|
*/
|
|
68969
69751
|
503: BrowserError;
|
|
68970
69752
|
/**
|
|
@@ -69010,17 +69792,21 @@ export type BrowserCloseSessionErrors = {
|
|
|
69010
69792
|
*/
|
|
69011
69793
|
402: BrowserError;
|
|
69012
69794
|
/**
|
|
69013
|
-
* PERMISSION_DENIED / ACCOUNT_SUSPENDED
|
|
69795
|
+
* PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
|
|
69014
69796
|
*/
|
|
69015
69797
|
403: BrowserError;
|
|
69016
69798
|
/**
|
|
69017
|
-
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
69799
|
+
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
69018
69800
|
*/
|
|
69019
69801
|
404: BrowserError;
|
|
69020
69802
|
/**
|
|
69021
|
-
* SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
69803
|
+
* SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
69022
69804
|
*/
|
|
69023
69805
|
409: BrowserError;
|
|
69806
|
+
/**
|
|
69807
|
+
* BROWSER_REVOKED
|
|
69808
|
+
*/
|
|
69809
|
+
410: BrowserError;
|
|
69024
69810
|
/**
|
|
69025
69811
|
* ACTION_RESULT_TOO_LARGE
|
|
69026
69812
|
*/
|
|
@@ -69042,7 +69828,7 @@ export type BrowserCloseSessionErrors = {
|
|
|
69042
69828
|
*/
|
|
69043
69829
|
502: BrowserError;
|
|
69044
69830
|
/**
|
|
69045
|
-
* SERVICE_UNAVAILABLE
|
|
69831
|
+
* BROWSER_OFFLINE / SERVICE_UNAVAILABLE
|
|
69046
69832
|
*/
|
|
69047
69833
|
503: BrowserError;
|
|
69048
69834
|
/**
|
|
@@ -69083,17 +69869,21 @@ export type BrowserGetDebugErrors = {
|
|
|
69083
69869
|
*/
|
|
69084
69870
|
402: BrowserError;
|
|
69085
69871
|
/**
|
|
69086
|
-
* PERMISSION_DENIED / ACCOUNT_SUSPENDED
|
|
69872
|
+
* PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
|
|
69087
69873
|
*/
|
|
69088
69874
|
403: BrowserError;
|
|
69089
69875
|
/**
|
|
69090
|
-
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
69876
|
+
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
69091
69877
|
*/
|
|
69092
69878
|
404: BrowserError;
|
|
69093
69879
|
/**
|
|
69094
|
-
* SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
69880
|
+
* SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
69095
69881
|
*/
|
|
69096
69882
|
409: BrowserError;
|
|
69883
|
+
/**
|
|
69884
|
+
* BROWSER_REVOKED
|
|
69885
|
+
*/
|
|
69886
|
+
410: BrowserError;
|
|
69097
69887
|
/**
|
|
69098
69888
|
* ACTION_RESULT_TOO_LARGE
|
|
69099
69889
|
*/
|
|
@@ -69115,7 +69905,7 @@ export type BrowserGetDebugErrors = {
|
|
|
69115
69905
|
*/
|
|
69116
69906
|
502: BrowserError;
|
|
69117
69907
|
/**
|
|
69118
|
-
* SERVICE_UNAVAILABLE
|
|
69908
|
+
* BROWSER_OFFLINE / SERVICE_UNAVAILABLE
|
|
69119
69909
|
*/
|
|
69120
69910
|
503: BrowserError;
|
|
69121
69911
|
/**
|
|
@@ -69169,296 +69959,21 @@ export type BrowserListEventsErrors = {
|
|
|
69169
69959
|
*/
|
|
69170
69960
|
402: BrowserError;
|
|
69171
69961
|
/**
|
|
69172
|
-
* PERMISSION_DENIED / ACCOUNT_SUSPENDED
|
|
69962
|
+
* PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
|
|
69173
69963
|
*/
|
|
69174
69964
|
403: BrowserError;
|
|
69175
69965
|
/**
|
|
69176
|
-
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
69966
|
+
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
69177
69967
|
*/
|
|
69178
69968
|
404: BrowserError;
|
|
69179
69969
|
/**
|
|
69180
|
-
* SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
69970
|
+
* SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
69181
69971
|
*/
|
|
69182
69972
|
409: BrowserError;
|
|
69183
69973
|
/**
|
|
69184
|
-
*
|
|
69185
|
-
*/
|
|
69186
|
-
413: BrowserError;
|
|
69187
|
-
/**
|
|
69188
|
-
* CONCURRENCY_LIMIT / RATE_LIMITED / PROVIDER_CAPACITY
|
|
69189
|
-
*/
|
|
69190
|
-
429: BrowserError;
|
|
69191
|
-
/**
|
|
69192
|
-
* INTERNAL
|
|
69193
|
-
*/
|
|
69194
|
-
500: BrowserError;
|
|
69195
|
-
/**
|
|
69196
|
-
* NOT_IMPLEMENTED / PROVIDER_UNSUPPORTED
|
|
69197
|
-
*/
|
|
69198
|
-
501: BrowserError;
|
|
69199
|
-
/**
|
|
69200
|
-
* PROVIDER_FAILED
|
|
69201
|
-
*/
|
|
69202
|
-
502: BrowserError;
|
|
69203
|
-
/**
|
|
69204
|
-
* SERVICE_UNAVAILABLE
|
|
69205
|
-
*/
|
|
69206
|
-
503: BrowserError;
|
|
69207
|
-
/**
|
|
69208
|
-
* ACTION_TIMEOUT
|
|
69209
|
-
*/
|
|
69210
|
-
504: BrowserError;
|
|
69211
|
-
};
|
|
69212
|
-
export type BrowserListEventsError = BrowserListEventsErrors[keyof BrowserListEventsErrors];
|
|
69213
|
-
export type BrowserListEventsResponses = {
|
|
69214
|
-
/**
|
|
69215
|
-
* 分页查询结果,包含本页记录和下一页游标。
|
|
69216
|
-
*/
|
|
69217
|
-
200: {
|
|
69218
|
-
/**
|
|
69219
|
-
* 本页查询匹配的记录;没有匹配项时为空数组。
|
|
69220
|
-
*/
|
|
69221
|
-
data: Array<BrowserEventRecord>;
|
|
69222
|
-
/**
|
|
69223
|
-
* 下一页游标;原样传入 cursor,null 表示没有更多结果。
|
|
69224
|
-
*/
|
|
69225
|
-
nextCursor: string | null;
|
|
69226
|
-
};
|
|
69227
|
-
};
|
|
69228
|
-
export type BrowserListEventsResponse = BrowserListEventsResponses[keyof BrowserListEventsResponses];
|
|
69229
|
-
export type BrowserRunPageActionData = {
|
|
69230
|
-
body: {
|
|
69231
|
-
/**
|
|
69232
|
-
* 动作类型,固定为 open。
|
|
69233
|
-
*/
|
|
69234
|
-
type: 'open';
|
|
69235
|
-
/**
|
|
69236
|
-
* 要打开的 http 或 https 地址,最多 2048 个字符。
|
|
69237
|
-
*/
|
|
69238
|
-
url: string;
|
|
69239
|
-
/**
|
|
69240
|
-
* 标签页 ID,来自 tabs.list 或上一个动作的结果;省略时作用于当前标签页。
|
|
69241
|
-
*/
|
|
69242
|
-
tab?: string;
|
|
69243
|
-
/**
|
|
69244
|
-
* 为 true 时在新标签页打开,否则在当前标签页打开。
|
|
69245
|
-
*/
|
|
69246
|
-
newTab?: boolean;
|
|
69247
|
-
} | {
|
|
69248
|
-
/**
|
|
69249
|
-
* 动作类型,固定为 tabs.list。
|
|
69250
|
-
*/
|
|
69251
|
-
type: 'tabs.list';
|
|
69252
|
-
} | {
|
|
69253
|
-
/**
|
|
69254
|
-
* 动作类型,固定为 snapshot。
|
|
69255
|
-
*/
|
|
69256
|
-
type: 'snapshot';
|
|
69257
|
-
/**
|
|
69258
|
-
* 标签页 ID,来自 tabs.list 或上一个动作的结果;省略时作用于当前标签页。
|
|
69259
|
-
*/
|
|
69260
|
-
tab?: string;
|
|
69261
|
-
} | {
|
|
69262
|
-
/**
|
|
69263
|
-
* 动作类型,固定为 click。
|
|
69264
|
-
*/
|
|
69265
|
-
type: 'click';
|
|
69266
|
-
/**
|
|
69267
|
-
* 最近一次快照里要点击的元素的 ref,形如 e12;页面跳转后失效。
|
|
69268
|
-
*/
|
|
69269
|
-
ref: string;
|
|
69270
|
-
/**
|
|
69271
|
-
* 标签页 ID,来自 tabs.list 或上一个动作的结果;省略时作用于当前标签页。
|
|
69272
|
-
*/
|
|
69273
|
-
tab?: string;
|
|
69274
|
-
} | {
|
|
69275
|
-
/**
|
|
69276
|
-
* 动作类型,固定为 fill。
|
|
69277
|
-
*/
|
|
69278
|
-
type: 'fill';
|
|
69279
|
-
/**
|
|
69280
|
-
* 最近一次快照里要填写的输入元素的 ref,形如 e12;页面跳转后失效。
|
|
69281
|
-
*/
|
|
69282
|
-
ref: string;
|
|
69283
|
-
/**
|
|
69284
|
-
* 要填入的文本,会替换输入框原有内容;最多 100000 个字符,可为空字符串。
|
|
69285
|
-
*/
|
|
69286
|
-
text: string;
|
|
69287
|
-
/**
|
|
69288
|
-
* 标签页 ID,来自 tabs.list 或上一个动作的结果;省略时作用于当前标签页。
|
|
69289
|
-
*/
|
|
69290
|
-
tab?: string;
|
|
69291
|
-
} | {
|
|
69292
|
-
/**
|
|
69293
|
-
* 动作类型,固定为 select。
|
|
69294
|
-
*/
|
|
69295
|
-
type: 'select';
|
|
69296
|
-
/**
|
|
69297
|
-
* 最近一次快照里要选择下拉项的原生 select 元素的 ref,形如 e12;页面跳转后失效。
|
|
69298
|
-
*/
|
|
69299
|
-
ref: string;
|
|
69300
|
-
/**
|
|
69301
|
-
* 要选中的下拉项,至少 1 项、最多 64 项:字符串按 value 或可见文本匹配,对象按其中给出的每个属性匹配。多选下拉框会选中所有匹配项;单选下拉框只取第一个匹配项,其余请求项被忽略。写完后向该元素派发一次 input 和一次 change 事件,受控组件(React 等)因此能感知新值;元素不是 select、或某项没有匹配到时返回 409 ACTION_FAILED。
|
|
69302
|
-
*/
|
|
69303
|
-
values: Array<string | {
|
|
69304
|
-
/**
|
|
69305
|
-
* 按 option 的 value 精确匹配。
|
|
69306
|
-
*/
|
|
69307
|
-
value?: string;
|
|
69308
|
-
/**
|
|
69309
|
-
* 按 option 的可见文本匹配,忽略两端空白和连续空白。
|
|
69310
|
-
*/
|
|
69311
|
-
label?: string;
|
|
69312
|
-
/**
|
|
69313
|
-
* 按 option 在下拉框中的序号匹配,从 0 开始。
|
|
69314
|
-
*/
|
|
69315
|
-
index?: number;
|
|
69316
|
-
}>;
|
|
69317
|
-
/**
|
|
69318
|
-
* 标签页 ID,来自 tabs.list 或上一个动作的结果;省略时作用于当前标签页。
|
|
69319
|
-
*/
|
|
69320
|
-
tab?: string;
|
|
69321
|
-
} | {
|
|
69322
|
-
/**
|
|
69323
|
-
* 动作类型,固定为 press。
|
|
69324
|
-
*/
|
|
69325
|
-
type: 'press';
|
|
69326
|
-
/**
|
|
69327
|
-
* 要按下的键:Enter、Tab、Escape、Backspace、Delete、方向键、Home、End、PageUp、PageDown、Space 或单个可打印字符。
|
|
69328
|
-
*/
|
|
69329
|
-
key: string;
|
|
69330
|
-
/**
|
|
69331
|
-
* 标签页 ID,来自 tabs.list 或上一个动作的结果;省略时作用于当前标签页。
|
|
69332
|
-
*/
|
|
69333
|
-
tab?: string;
|
|
69334
|
-
} | {
|
|
69335
|
-
/**
|
|
69336
|
-
* 动作类型,固定为 scroll。
|
|
69337
|
-
*/
|
|
69338
|
-
type: 'scroll';
|
|
69339
|
-
/**
|
|
69340
|
-
* 滚动方向:up 向上,down 向下。
|
|
69341
|
-
*/
|
|
69342
|
-
direction: 'up' | 'down';
|
|
69343
|
-
/**
|
|
69344
|
-
* 滚动的像素数,默认 800,最多 10000。
|
|
69345
|
-
*/
|
|
69346
|
-
pixels?: number;
|
|
69347
|
-
/**
|
|
69348
|
-
* 标签页 ID,来自 tabs.list 或上一个动作的结果;省略时作用于当前标签页。
|
|
69349
|
-
*/
|
|
69350
|
-
tab?: string;
|
|
69351
|
-
} | {
|
|
69352
|
-
/**
|
|
69353
|
-
* 动作类型,固定为 screenshot。
|
|
69354
|
-
*/
|
|
69355
|
-
type: 'screenshot';
|
|
69356
|
-
/**
|
|
69357
|
-
* 为 true 时截取整页,否则只截当前视口。
|
|
69358
|
-
*/
|
|
69359
|
-
fullPage?: boolean;
|
|
69360
|
-
/**
|
|
69361
|
-
* 标签页 ID,来自 tabs.list 或上一个动作的结果;省略时作用于当前标签页。
|
|
69362
|
-
*/
|
|
69363
|
-
tab?: string;
|
|
69364
|
-
} | {
|
|
69365
|
-
/**
|
|
69366
|
-
* 动作类型,固定为 evaluate。
|
|
69367
|
-
*/
|
|
69368
|
-
type: 'evaluate';
|
|
69369
|
-
/**
|
|
69370
|
-
* 在页面里执行的 JavaScript 表达式,结果按 JSON 返回;最多 20000 个字符。
|
|
69371
|
-
*/
|
|
69372
|
-
expression: string;
|
|
69373
|
-
/**
|
|
69374
|
-
* 标签页 ID,来自 tabs.list 或上一个动作的结果;省略时作用于当前标签页。
|
|
69375
|
-
*/
|
|
69376
|
-
tab?: string;
|
|
69377
|
-
} | {
|
|
69378
|
-
/**
|
|
69379
|
-
* 动作类型,固定为 set_cookie。
|
|
69380
|
-
*/
|
|
69381
|
-
type: 'set_cookie';
|
|
69382
|
-
/**
|
|
69383
|
-
* cookie 名称,最多 256 个字符。
|
|
69384
|
-
*/
|
|
69385
|
-
name: string;
|
|
69386
|
-
/**
|
|
69387
|
-
* cookie 值,最多 4096 个字符,可为空字符串但字段必须出现(省略或传 null 会被拒绝,错误会说明是哪个字段、违反了什么规则);它是凭据,不会出现在动作结果、事件或日志里。
|
|
69388
|
-
*/
|
|
69389
|
-
value: string;
|
|
69390
|
-
/**
|
|
69391
|
-
* cookie 的域,例如 .deepraxis.com。
|
|
69392
|
-
*/
|
|
69393
|
-
domain: string;
|
|
69394
|
-
/**
|
|
69395
|
-
* cookie 的路径,默认 /。
|
|
69396
|
-
*/
|
|
69397
|
-
path?: string;
|
|
69398
|
-
/**
|
|
69399
|
-
* 是否仅 HTTPS;以 __Secure- 开头的名称必须为 true。
|
|
69400
|
-
*/
|
|
69401
|
-
secure?: boolean;
|
|
69402
|
-
/**
|
|
69403
|
-
* 是否禁止页面脚本读取。
|
|
69404
|
-
*/
|
|
69405
|
-
httpOnly?: boolean;
|
|
69406
|
-
/**
|
|
69407
|
-
* SameSite 属性;None 要求 secure 为 true。
|
|
69408
|
-
*/
|
|
69409
|
-
sameSite?: 'Strict' | 'Lax' | 'None';
|
|
69410
|
-
/**
|
|
69411
|
-
* 过期时间,Unix 秒;省略为会话 cookie。
|
|
69412
|
-
*/
|
|
69413
|
-
expires?: number;
|
|
69414
|
-
/**
|
|
69415
|
-
* 标签页 ID,来自 tabs.list 或上一个动作的结果;省略时作用于当前标签页。
|
|
69416
|
-
*/
|
|
69417
|
-
tab?: string;
|
|
69418
|
-
} | {
|
|
69419
|
-
/**
|
|
69420
|
-
* 动作类型:后退、前进或刷新当前页。
|
|
69421
|
-
*/
|
|
69422
|
-
type: 'back' | 'forward' | 'reload';
|
|
69423
|
-
/**
|
|
69424
|
-
* 标签页 ID,来自 tabs.list 或上一个动作的结果;省略时作用于当前标签页。
|
|
69425
|
-
*/
|
|
69426
|
-
tab?: string;
|
|
69427
|
-
};
|
|
69428
|
-
path: {
|
|
69429
|
-
/**
|
|
69430
|
-
* 浏览器会话 ID;使用创建或列出会话返回的 id,以 bss_ 开头。
|
|
69431
|
-
*/
|
|
69432
|
-
sessionId: string;
|
|
69433
|
-
};
|
|
69434
|
-
query?: never;
|
|
69435
|
-
url: '/browser/v1/sessions/{sessionId}/actions';
|
|
69436
|
-
};
|
|
69437
|
-
export type BrowserRunPageActionErrors = {
|
|
69438
|
-
/**
|
|
69439
|
-
* INVALID_PARAMS / INVALID_FILTER / INVALID_PAGE_TOKEN
|
|
69974
|
+
* BROWSER_REVOKED
|
|
69440
69975
|
*/
|
|
69441
|
-
|
|
69442
|
-
/**
|
|
69443
|
-
* UNAUTHENTICATED / CONNECT_SIGNATURE_INVALID
|
|
69444
|
-
*/
|
|
69445
|
-
401: BrowserError;
|
|
69446
|
-
/**
|
|
69447
|
-
* INSUFFICIENT_BALANCE / QUOTA_EXHAUSTED
|
|
69448
|
-
*/
|
|
69449
|
-
402: BrowserError;
|
|
69450
|
-
/**
|
|
69451
|
-
* PERMISSION_DENIED / ACCOUNT_SUSPENDED
|
|
69452
|
-
*/
|
|
69453
|
-
403: BrowserError;
|
|
69454
|
-
/**
|
|
69455
|
-
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
69456
|
-
*/
|
|
69457
|
-
404: BrowserError;
|
|
69458
|
-
/**
|
|
69459
|
-
* SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
69460
|
-
*/
|
|
69461
|
-
409: BrowserError;
|
|
69976
|
+
410: BrowserError;
|
|
69462
69977
|
/**
|
|
69463
69978
|
* ACTION_RESULT_TOO_LARGE
|
|
69464
69979
|
*/
|
|
@@ -69480,7 +69995,290 @@ export type BrowserRunPageActionErrors = {
|
|
|
69480
69995
|
*/
|
|
69481
69996
|
502: BrowserError;
|
|
69482
69997
|
/**
|
|
69483
|
-
* SERVICE_UNAVAILABLE
|
|
69998
|
+
* BROWSER_OFFLINE / SERVICE_UNAVAILABLE
|
|
69999
|
+
*/
|
|
70000
|
+
503: BrowserError;
|
|
70001
|
+
/**
|
|
70002
|
+
* ACTION_TIMEOUT
|
|
70003
|
+
*/
|
|
70004
|
+
504: BrowserError;
|
|
70005
|
+
};
|
|
70006
|
+
export type BrowserListEventsError = BrowserListEventsErrors[keyof BrowserListEventsErrors];
|
|
70007
|
+
export type BrowserListEventsResponses = {
|
|
70008
|
+
/**
|
|
70009
|
+
* 分页查询结果,包含本页记录和下一页游标。
|
|
70010
|
+
*/
|
|
70011
|
+
200: {
|
|
70012
|
+
/**
|
|
70013
|
+
* 本页查询匹配的记录;没有匹配项时为空数组。
|
|
70014
|
+
*/
|
|
70015
|
+
data: Array<BrowserEventRecord>;
|
|
70016
|
+
/**
|
|
70017
|
+
* 下一页游标;原样传入 cursor,null 表示没有更多结果。
|
|
70018
|
+
*/
|
|
70019
|
+
nextCursor: string | null;
|
|
70020
|
+
};
|
|
70021
|
+
};
|
|
70022
|
+
export type BrowserListEventsResponse = BrowserListEventsResponses[keyof BrowserListEventsResponses];
|
|
70023
|
+
export type BrowserRunPageActionData = {
|
|
70024
|
+
body: {
|
|
70025
|
+
/**
|
|
70026
|
+
* 动作类型,固定为 open。
|
|
70027
|
+
*/
|
|
70028
|
+
type: 'open';
|
|
70029
|
+
/**
|
|
70030
|
+
* 要打开的 http 或 https 地址,最多 2048 个字符。
|
|
70031
|
+
*/
|
|
70032
|
+
url: string;
|
|
70033
|
+
/**
|
|
70034
|
+
* 标签页 ID,来自 tabs.list 或上一个动作的结果;省略时作用于当前标签页。
|
|
70035
|
+
*/
|
|
70036
|
+
tab?: string;
|
|
70037
|
+
/**
|
|
70038
|
+
* 为 true 时在新标签页打开,否则在当前标签页打开。
|
|
70039
|
+
*/
|
|
70040
|
+
newTab?: boolean;
|
|
70041
|
+
} | {
|
|
70042
|
+
/**
|
|
70043
|
+
* 动作类型,固定为 tabs.list。
|
|
70044
|
+
*/
|
|
70045
|
+
type: 'tabs.list';
|
|
70046
|
+
} | {
|
|
70047
|
+
/**
|
|
70048
|
+
* 动作类型,固定为 snapshot。
|
|
70049
|
+
*/
|
|
70050
|
+
type: 'snapshot';
|
|
70051
|
+
/**
|
|
70052
|
+
* 标签页 ID,来自 tabs.list 或上一个动作的结果;省略时作用于当前标签页。
|
|
70053
|
+
*/
|
|
70054
|
+
tab?: string;
|
|
70055
|
+
} | {
|
|
70056
|
+
/**
|
|
70057
|
+
* 动作类型,固定为 click。
|
|
70058
|
+
*/
|
|
70059
|
+
type: 'click';
|
|
70060
|
+
/**
|
|
70061
|
+
* 最近一次快照里要点击的元素的 ref,形如 e12;页面跳转后失效。
|
|
70062
|
+
*/
|
|
70063
|
+
ref: string;
|
|
70064
|
+
/**
|
|
70065
|
+
* 标签页 ID,来自 tabs.list 或上一个动作的结果;省略时作用于当前标签页。
|
|
70066
|
+
*/
|
|
70067
|
+
tab?: string;
|
|
70068
|
+
} | {
|
|
70069
|
+
/**
|
|
70070
|
+
* 动作类型,固定为 fill。
|
|
70071
|
+
*/
|
|
70072
|
+
type: 'fill';
|
|
70073
|
+
/**
|
|
70074
|
+
* 最近一次快照里要填写的输入元素的 ref,形如 e12;页面跳转后失效。
|
|
70075
|
+
*/
|
|
70076
|
+
ref: string;
|
|
70077
|
+
/**
|
|
70078
|
+
* 要填入的文本,会替换输入框原有内容;最多 100000 个字符,可为空字符串。
|
|
70079
|
+
*/
|
|
70080
|
+
text: string;
|
|
70081
|
+
/**
|
|
70082
|
+
* 标签页 ID,来自 tabs.list 或上一个动作的结果;省略时作用于当前标签页。
|
|
70083
|
+
*/
|
|
70084
|
+
tab?: string;
|
|
70085
|
+
} | {
|
|
70086
|
+
/**
|
|
70087
|
+
* 动作类型,固定为 select。
|
|
70088
|
+
*/
|
|
70089
|
+
type: 'select';
|
|
70090
|
+
/**
|
|
70091
|
+
* 最近一次快照里要选择下拉项的原生 select 元素的 ref,形如 e12;页面跳转后失效。
|
|
70092
|
+
*/
|
|
70093
|
+
ref: string;
|
|
70094
|
+
/**
|
|
70095
|
+
* 要选中的下拉项,至少 1 项、最多 64 项:字符串按 value 或可见文本匹配,对象按其中给出的每个属性匹配。多选下拉框会选中所有匹配项;单选下拉框只取第一个匹配项,其余请求项被忽略。写完后向该元素派发一次 input 和一次 change 事件,受控组件(React 等)因此能感知新值;元素不是 select、或某项没有匹配到时返回 409 ACTION_FAILED。
|
|
70096
|
+
*/
|
|
70097
|
+
values: Array<string | {
|
|
70098
|
+
/**
|
|
70099
|
+
* 按 option 的 value 精确匹配。
|
|
70100
|
+
*/
|
|
70101
|
+
value?: string;
|
|
70102
|
+
/**
|
|
70103
|
+
* 按 option 的可见文本匹配,忽略两端空白和连续空白。
|
|
70104
|
+
*/
|
|
70105
|
+
label?: string;
|
|
70106
|
+
/**
|
|
70107
|
+
* 按 option 在下拉框中的序号匹配,从 0 开始。
|
|
70108
|
+
*/
|
|
70109
|
+
index?: number;
|
|
70110
|
+
}>;
|
|
70111
|
+
/**
|
|
70112
|
+
* 标签页 ID,来自 tabs.list 或上一个动作的结果;省略时作用于当前标签页。
|
|
70113
|
+
*/
|
|
70114
|
+
tab?: string;
|
|
70115
|
+
} | {
|
|
70116
|
+
/**
|
|
70117
|
+
* 动作类型,固定为 press。
|
|
70118
|
+
*/
|
|
70119
|
+
type: 'press';
|
|
70120
|
+
/**
|
|
70121
|
+
* 要按下的键:Enter、Tab、Escape、Backspace、Delete、方向键、Home、End、PageUp、PageDown、Space 或单个可打印字符。
|
|
70122
|
+
*/
|
|
70123
|
+
key: string;
|
|
70124
|
+
/**
|
|
70125
|
+
* 标签页 ID,来自 tabs.list 或上一个动作的结果;省略时作用于当前标签页。
|
|
70126
|
+
*/
|
|
70127
|
+
tab?: string;
|
|
70128
|
+
} | {
|
|
70129
|
+
/**
|
|
70130
|
+
* 动作类型,固定为 scroll。
|
|
70131
|
+
*/
|
|
70132
|
+
type: 'scroll';
|
|
70133
|
+
/**
|
|
70134
|
+
* 滚动方向:up 向上,down 向下。
|
|
70135
|
+
*/
|
|
70136
|
+
direction: 'up' | 'down';
|
|
70137
|
+
/**
|
|
70138
|
+
* 滚动的像素数,默认 800,最多 10000。
|
|
70139
|
+
*/
|
|
70140
|
+
pixels?: number;
|
|
70141
|
+
/**
|
|
70142
|
+
* 标签页 ID,来自 tabs.list 或上一个动作的结果;省略时作用于当前标签页。
|
|
70143
|
+
*/
|
|
70144
|
+
tab?: string;
|
|
70145
|
+
} | {
|
|
70146
|
+
/**
|
|
70147
|
+
* 动作类型,固定为 screenshot。
|
|
70148
|
+
*/
|
|
70149
|
+
type: 'screenshot';
|
|
70150
|
+
/**
|
|
70151
|
+
* 为 true 时截取整页,否则只截当前视口。
|
|
70152
|
+
*/
|
|
70153
|
+
fullPage?: boolean;
|
|
70154
|
+
/**
|
|
70155
|
+
* 标签页 ID,来自 tabs.list 或上一个动作的结果;省略时作用于当前标签页。
|
|
70156
|
+
*/
|
|
70157
|
+
tab?: string;
|
|
70158
|
+
} | {
|
|
70159
|
+
/**
|
|
70160
|
+
* 动作类型,固定为 evaluate。
|
|
70161
|
+
*/
|
|
70162
|
+
type: 'evaluate';
|
|
70163
|
+
/**
|
|
70164
|
+
* 在页面里执行的 JavaScript 表达式,结果按 JSON 返回;最多 20000 个字符。
|
|
70165
|
+
*/
|
|
70166
|
+
expression: string;
|
|
70167
|
+
/**
|
|
70168
|
+
* 标签页 ID,来自 tabs.list 或上一个动作的结果;省略时作用于当前标签页。
|
|
70169
|
+
*/
|
|
70170
|
+
tab?: string;
|
|
70171
|
+
} | {
|
|
70172
|
+
/**
|
|
70173
|
+
* 动作类型,固定为 set_cookie。
|
|
70174
|
+
*/
|
|
70175
|
+
type: 'set_cookie';
|
|
70176
|
+
/**
|
|
70177
|
+
* cookie 名称,最多 256 个字符。
|
|
70178
|
+
*/
|
|
70179
|
+
name: string;
|
|
70180
|
+
/**
|
|
70181
|
+
* cookie 值,最多 4096 个字符,可为空字符串但字段必须出现(省略或传 null 会被拒绝,错误会说明是哪个字段、违反了什么规则);它是凭据,不会出现在动作结果、事件或日志里。
|
|
70182
|
+
*/
|
|
70183
|
+
value: string;
|
|
70184
|
+
/**
|
|
70185
|
+
* cookie 的域,例如 .deepraxis.com。
|
|
70186
|
+
*/
|
|
70187
|
+
domain: string;
|
|
70188
|
+
/**
|
|
70189
|
+
* cookie 的路径,默认 /。
|
|
70190
|
+
*/
|
|
70191
|
+
path?: string;
|
|
70192
|
+
/**
|
|
70193
|
+
* 是否仅 HTTPS;以 __Secure- 开头的名称必须为 true。
|
|
70194
|
+
*/
|
|
70195
|
+
secure?: boolean;
|
|
70196
|
+
/**
|
|
70197
|
+
* 是否禁止页面脚本读取。
|
|
70198
|
+
*/
|
|
70199
|
+
httpOnly?: boolean;
|
|
70200
|
+
/**
|
|
70201
|
+
* SameSite 属性;None 要求 secure 为 true。
|
|
70202
|
+
*/
|
|
70203
|
+
sameSite?: 'Strict' | 'Lax' | 'None';
|
|
70204
|
+
/**
|
|
70205
|
+
* 过期时间,Unix 秒;省略为会话 cookie。
|
|
70206
|
+
*/
|
|
70207
|
+
expires?: number;
|
|
70208
|
+
/**
|
|
70209
|
+
* 标签页 ID,来自 tabs.list 或上一个动作的结果;省略时作用于当前标签页。
|
|
70210
|
+
*/
|
|
70211
|
+
tab?: string;
|
|
70212
|
+
} | {
|
|
70213
|
+
/**
|
|
70214
|
+
* 动作类型:后退、前进或刷新当前页。
|
|
70215
|
+
*/
|
|
70216
|
+
type: 'back' | 'forward' | 'reload';
|
|
70217
|
+
/**
|
|
70218
|
+
* 标签页 ID,来自 tabs.list 或上一个动作的结果;省略时作用于当前标签页。
|
|
70219
|
+
*/
|
|
70220
|
+
tab?: string;
|
|
70221
|
+
};
|
|
70222
|
+
path: {
|
|
70223
|
+
/**
|
|
70224
|
+
* 浏览器会话 ID;使用创建或列出会话返回的 id,以 bss_ 开头。
|
|
70225
|
+
*/
|
|
70226
|
+
sessionId: string;
|
|
70227
|
+
};
|
|
70228
|
+
query?: never;
|
|
70229
|
+
url: '/browser/v1/sessions/{sessionId}/actions';
|
|
70230
|
+
};
|
|
70231
|
+
export type BrowserRunPageActionErrors = {
|
|
70232
|
+
/**
|
|
70233
|
+
* INVALID_PARAMS / INVALID_FILTER / INVALID_PAGE_TOKEN
|
|
70234
|
+
*/
|
|
70235
|
+
400: BrowserError;
|
|
70236
|
+
/**
|
|
70237
|
+
* UNAUTHENTICATED / CONNECT_SIGNATURE_INVALID
|
|
70238
|
+
*/
|
|
70239
|
+
401: BrowserError;
|
|
70240
|
+
/**
|
|
70241
|
+
* INSUFFICIENT_BALANCE / QUOTA_EXHAUSTED
|
|
70242
|
+
*/
|
|
70243
|
+
402: BrowserError;
|
|
70244
|
+
/**
|
|
70245
|
+
* PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
|
|
70246
|
+
*/
|
|
70247
|
+
403: BrowserError;
|
|
70248
|
+
/**
|
|
70249
|
+
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
70250
|
+
*/
|
|
70251
|
+
404: BrowserError;
|
|
70252
|
+
/**
|
|
70253
|
+
* SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
70254
|
+
*/
|
|
70255
|
+
409: BrowserError;
|
|
70256
|
+
/**
|
|
70257
|
+
* BROWSER_REVOKED
|
|
70258
|
+
*/
|
|
70259
|
+
410: BrowserError;
|
|
70260
|
+
/**
|
|
70261
|
+
* ACTION_RESULT_TOO_LARGE
|
|
70262
|
+
*/
|
|
70263
|
+
413: BrowserError;
|
|
70264
|
+
/**
|
|
70265
|
+
* CONCURRENCY_LIMIT / RATE_LIMITED / PROVIDER_CAPACITY
|
|
70266
|
+
*/
|
|
70267
|
+
429: BrowserError;
|
|
70268
|
+
/**
|
|
70269
|
+
* INTERNAL
|
|
70270
|
+
*/
|
|
70271
|
+
500: BrowserError;
|
|
70272
|
+
/**
|
|
70273
|
+
* NOT_IMPLEMENTED / PROVIDER_UNSUPPORTED
|
|
70274
|
+
*/
|
|
70275
|
+
501: BrowserError;
|
|
70276
|
+
/**
|
|
70277
|
+
* PROVIDER_FAILED
|
|
70278
|
+
*/
|
|
70279
|
+
502: BrowserError;
|
|
70280
|
+
/**
|
|
70281
|
+
* BROWSER_OFFLINE / SERVICE_UNAVAILABLE
|
|
69484
70282
|
*/
|
|
69485
70283
|
503: BrowserError;
|
|
69486
70284
|
/**
|
|
@@ -69666,17 +70464,21 @@ export type BrowserRequestHandoffErrors = {
|
|
|
69666
70464
|
*/
|
|
69667
70465
|
402: BrowserError;
|
|
69668
70466
|
/**
|
|
69669
|
-
* PERMISSION_DENIED / ACCOUNT_SUSPENDED
|
|
70467
|
+
* PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
|
|
69670
70468
|
*/
|
|
69671
70469
|
403: BrowserError;
|
|
69672
70470
|
/**
|
|
69673
|
-
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
70471
|
+
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
69674
70472
|
*/
|
|
69675
70473
|
404: BrowserError;
|
|
69676
70474
|
/**
|
|
69677
|
-
* SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
70475
|
+
* SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
69678
70476
|
*/
|
|
69679
70477
|
409: BrowserError;
|
|
70478
|
+
/**
|
|
70479
|
+
* BROWSER_REVOKED
|
|
70480
|
+
*/
|
|
70481
|
+
410: BrowserError;
|
|
69680
70482
|
/**
|
|
69681
70483
|
* ACTION_RESULT_TOO_LARGE
|
|
69682
70484
|
*/
|
|
@@ -69698,7 +70500,7 @@ export type BrowserRequestHandoffErrors = {
|
|
|
69698
70500
|
*/
|
|
69699
70501
|
502: BrowserError;
|
|
69700
70502
|
/**
|
|
69701
|
-
* SERVICE_UNAVAILABLE
|
|
70503
|
+
* BROWSER_OFFLINE / SERVICE_UNAVAILABLE
|
|
69702
70504
|
*/
|
|
69703
70505
|
503: BrowserError;
|
|
69704
70506
|
/**
|
|
@@ -69739,17 +70541,21 @@ export type BrowserCompleteHandoffErrors = {
|
|
|
69739
70541
|
*/
|
|
69740
70542
|
402: BrowserError;
|
|
69741
70543
|
/**
|
|
69742
|
-
* PERMISSION_DENIED / ACCOUNT_SUSPENDED
|
|
70544
|
+
* PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
|
|
69743
70545
|
*/
|
|
69744
70546
|
403: BrowserError;
|
|
69745
70547
|
/**
|
|
69746
|
-
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
70548
|
+
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
69747
70549
|
*/
|
|
69748
70550
|
404: BrowserError;
|
|
69749
70551
|
/**
|
|
69750
|
-
* SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
70552
|
+
* SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
69751
70553
|
*/
|
|
69752
70554
|
409: BrowserError;
|
|
70555
|
+
/**
|
|
70556
|
+
* BROWSER_REVOKED
|
|
70557
|
+
*/
|
|
70558
|
+
410: BrowserError;
|
|
69753
70559
|
/**
|
|
69754
70560
|
* ACTION_RESULT_TOO_LARGE
|
|
69755
70561
|
*/
|
|
@@ -69771,7 +70577,7 @@ export type BrowserCompleteHandoffErrors = {
|
|
|
69771
70577
|
*/
|
|
69772
70578
|
502: BrowserError;
|
|
69773
70579
|
/**
|
|
69774
|
-
* SERVICE_UNAVAILABLE
|
|
70580
|
+
* BROWSER_OFFLINE / SERVICE_UNAVAILABLE
|
|
69775
70581
|
*/
|
|
69776
70582
|
503: BrowserError;
|
|
69777
70583
|
/**
|
|
@@ -69821,17 +70627,21 @@ export type BrowserViewerHeartbeatErrors = {
|
|
|
69821
70627
|
*/
|
|
69822
70628
|
402: BrowserError;
|
|
69823
70629
|
/**
|
|
69824
|
-
* PERMISSION_DENIED / ACCOUNT_SUSPENDED
|
|
70630
|
+
* PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
|
|
69825
70631
|
*/
|
|
69826
70632
|
403: BrowserError;
|
|
69827
70633
|
/**
|
|
69828
|
-
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
70634
|
+
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
69829
70635
|
*/
|
|
69830
70636
|
404: BrowserError;
|
|
69831
70637
|
/**
|
|
69832
|
-
* SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
70638
|
+
* SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
69833
70639
|
*/
|
|
69834
70640
|
409: BrowserError;
|
|
70641
|
+
/**
|
|
70642
|
+
* BROWSER_REVOKED
|
|
70643
|
+
*/
|
|
70644
|
+
410: BrowserError;
|
|
69835
70645
|
/**
|
|
69836
70646
|
* ACTION_RESULT_TOO_LARGE
|
|
69837
70647
|
*/
|
|
@@ -69853,7 +70663,7 @@ export type BrowserViewerHeartbeatErrors = {
|
|
|
69853
70663
|
*/
|
|
69854
70664
|
502: BrowserError;
|
|
69855
70665
|
/**
|
|
69856
|
-
* SERVICE_UNAVAILABLE
|
|
70666
|
+
* BROWSER_OFFLINE / SERVICE_UNAVAILABLE
|
|
69857
70667
|
*/
|
|
69858
70668
|
503: BrowserError;
|
|
69859
70669
|
/**
|
|
@@ -69899,17 +70709,21 @@ export type BrowserGetSessionFrameErrors = {
|
|
|
69899
70709
|
*/
|
|
69900
70710
|
402: BrowserError;
|
|
69901
70711
|
/**
|
|
69902
|
-
* PERMISSION_DENIED / ACCOUNT_SUSPENDED
|
|
70712
|
+
* PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
|
|
69903
70713
|
*/
|
|
69904
70714
|
403: BrowserError;
|
|
69905
70715
|
/**
|
|
69906
|
-
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
70716
|
+
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
69907
70717
|
*/
|
|
69908
70718
|
404: BrowserError;
|
|
69909
70719
|
/**
|
|
69910
|
-
* SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
70720
|
+
* SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
69911
70721
|
*/
|
|
69912
70722
|
409: BrowserError;
|
|
70723
|
+
/**
|
|
70724
|
+
* BROWSER_REVOKED
|
|
70725
|
+
*/
|
|
70726
|
+
410: BrowserError;
|
|
69913
70727
|
/**
|
|
69914
70728
|
* ACTION_RESULT_TOO_LARGE
|
|
69915
70729
|
*/
|
|
@@ -69931,7 +70745,7 @@ export type BrowserGetSessionFrameErrors = {
|
|
|
69931
70745
|
*/
|
|
69932
70746
|
502: BrowserError;
|
|
69933
70747
|
/**
|
|
69934
|
-
* SERVICE_UNAVAILABLE
|
|
70748
|
+
* BROWSER_OFFLINE / SERVICE_UNAVAILABLE
|
|
69935
70749
|
*/
|
|
69936
70750
|
503: BrowserError;
|
|
69937
70751
|
/**
|
|
@@ -69980,17 +70794,21 @@ export type BrowserListContextsErrors = {
|
|
|
69980
70794
|
*/
|
|
69981
70795
|
402: BrowserError;
|
|
69982
70796
|
/**
|
|
69983
|
-
* PERMISSION_DENIED / ACCOUNT_SUSPENDED
|
|
70797
|
+
* PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
|
|
69984
70798
|
*/
|
|
69985
70799
|
403: BrowserError;
|
|
69986
70800
|
/**
|
|
69987
|
-
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
70801
|
+
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
69988
70802
|
*/
|
|
69989
70803
|
404: BrowserError;
|
|
69990
70804
|
/**
|
|
69991
|
-
* SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
70805
|
+
* SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
69992
70806
|
*/
|
|
69993
70807
|
409: BrowserError;
|
|
70808
|
+
/**
|
|
70809
|
+
* BROWSER_REVOKED
|
|
70810
|
+
*/
|
|
70811
|
+
410: BrowserError;
|
|
69994
70812
|
/**
|
|
69995
70813
|
* ACTION_RESULT_TOO_LARGE
|
|
69996
70814
|
*/
|
|
@@ -70012,7 +70830,7 @@ export type BrowserListContextsErrors = {
|
|
|
70012
70830
|
*/
|
|
70013
70831
|
502: BrowserError;
|
|
70014
70832
|
/**
|
|
70015
|
-
* SERVICE_UNAVAILABLE
|
|
70833
|
+
* BROWSER_OFFLINE / SERVICE_UNAVAILABLE
|
|
70016
70834
|
*/
|
|
70017
70835
|
503: BrowserError;
|
|
70018
70836
|
/**
|
|
@@ -70053,6 +70871,36 @@ export type BrowserCreateContextData = {
|
|
|
70053
70871
|
labels?: {
|
|
70054
70872
|
[key: string]: string;
|
|
70055
70873
|
};
|
|
70874
|
+
/**
|
|
70875
|
+
* 给登录态绑定一个固定的外部代理(如住宅 IP),使用这个登录态的会话没有写 proxies 时都经它出网,让同一账号始终从同一个出口地址出去。只存保管库引用(password_secret),不存密码;会话自己写了 proxies 时以会话的为准。需要组织已开通容器后端,否则返回 501 PROVIDER_UNSUPPORTED。
|
|
70876
|
+
*/
|
|
70877
|
+
proxy?: {
|
|
70878
|
+
/**
|
|
70879
|
+
* 固定为 external:经一个你自己的外部 HTTP 代理出网。
|
|
70880
|
+
*/
|
|
70881
|
+
type: 'external';
|
|
70882
|
+
/**
|
|
70883
|
+
* 代理地址,host:port 或 http://host:port;只支持 HTTP 代理,不接受 socks5:// 等协议,也不接受 localhost 和内网、链路本地地址。
|
|
70884
|
+
*/
|
|
70885
|
+
server: string;
|
|
70886
|
+
/**
|
|
70887
|
+
* 代理用户名;有密码时才能填,填了就必须同时给出密码。
|
|
70888
|
+
*/
|
|
70889
|
+
username?: string;
|
|
70890
|
+
/**
|
|
70891
|
+
* 必须用这种形式:引用保管库里的代理密码,只在连接这个代理的主机时兑换,不会交给网页。登录态里只存引用,传明文 password 返回 400 INVALID_PARAMS。
|
|
70892
|
+
*/
|
|
70893
|
+
password_secret?: {
|
|
70894
|
+
/**
|
|
70895
|
+
* 保存代理密码的保管库 ID,以 vlt_ 开头。
|
|
70896
|
+
*/
|
|
70897
|
+
vault_id: string;
|
|
70898
|
+
/**
|
|
70899
|
+
* 保管库中该密码的密钥 ID(不是密码本身)。
|
|
70900
|
+
*/
|
|
70901
|
+
secret: string;
|
|
70902
|
+
};
|
|
70903
|
+
};
|
|
70056
70904
|
};
|
|
70057
70905
|
path?: never;
|
|
70058
70906
|
query?: never;
|
|
@@ -70072,17 +70920,21 @@ export type BrowserCreateContextErrors = {
|
|
|
70072
70920
|
*/
|
|
70073
70921
|
402: BrowserError;
|
|
70074
70922
|
/**
|
|
70075
|
-
* PERMISSION_DENIED / ACCOUNT_SUSPENDED
|
|
70923
|
+
* PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
|
|
70076
70924
|
*/
|
|
70077
70925
|
403: BrowserError;
|
|
70078
70926
|
/**
|
|
70079
|
-
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
70927
|
+
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
70080
70928
|
*/
|
|
70081
70929
|
404: BrowserError;
|
|
70082
70930
|
/**
|
|
70083
|
-
* SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
70931
|
+
* SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
70084
70932
|
*/
|
|
70085
70933
|
409: BrowserError;
|
|
70934
|
+
/**
|
|
70935
|
+
* BROWSER_REVOKED
|
|
70936
|
+
*/
|
|
70937
|
+
410: BrowserError;
|
|
70086
70938
|
/**
|
|
70087
70939
|
* ACTION_RESULT_TOO_LARGE
|
|
70088
70940
|
*/
|
|
@@ -70104,7 +70956,7 @@ export type BrowserCreateContextErrors = {
|
|
|
70104
70956
|
*/
|
|
70105
70957
|
502: BrowserError;
|
|
70106
70958
|
/**
|
|
70107
|
-
* SERVICE_UNAVAILABLE
|
|
70959
|
+
* BROWSER_OFFLINE / SERVICE_UNAVAILABLE
|
|
70108
70960
|
*/
|
|
70109
70961
|
503: BrowserError;
|
|
70110
70962
|
/**
|
|
@@ -70145,17 +70997,21 @@ export type BrowserDeleteContextErrors = {
|
|
|
70145
70997
|
*/
|
|
70146
70998
|
402: BrowserError;
|
|
70147
70999
|
/**
|
|
70148
|
-
* PERMISSION_DENIED / ACCOUNT_SUSPENDED
|
|
71000
|
+
* PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
|
|
70149
71001
|
*/
|
|
70150
71002
|
403: BrowserError;
|
|
70151
71003
|
/**
|
|
70152
|
-
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
71004
|
+
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
70153
71005
|
*/
|
|
70154
71006
|
404: BrowserError;
|
|
70155
71007
|
/**
|
|
70156
|
-
* SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
71008
|
+
* SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
70157
71009
|
*/
|
|
70158
71010
|
409: BrowserError;
|
|
71011
|
+
/**
|
|
71012
|
+
* BROWSER_REVOKED
|
|
71013
|
+
*/
|
|
71014
|
+
410: BrowserError;
|
|
70159
71015
|
/**
|
|
70160
71016
|
* ACTION_RESULT_TOO_LARGE
|
|
70161
71017
|
*/
|
|
@@ -70177,7 +71033,7 @@ export type BrowserDeleteContextErrors = {
|
|
|
70177
71033
|
*/
|
|
70178
71034
|
502: BrowserError;
|
|
70179
71035
|
/**
|
|
70180
|
-
* SERVICE_UNAVAILABLE
|
|
71036
|
+
* BROWSER_OFFLINE / SERVICE_UNAVAILABLE
|
|
70181
71037
|
*/
|
|
70182
71038
|
503: BrowserError;
|
|
70183
71039
|
/**
|
|
@@ -70223,101 +71079,691 @@ export type BrowserGetContextErrors = {
|
|
|
70223
71079
|
*/
|
|
70224
71080
|
402: BrowserError;
|
|
70225
71081
|
/**
|
|
70226
|
-
* PERMISSION_DENIED / ACCOUNT_SUSPENDED
|
|
71082
|
+
* PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
|
|
71083
|
+
*/
|
|
71084
|
+
403: BrowserError;
|
|
71085
|
+
/**
|
|
71086
|
+
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
71087
|
+
*/
|
|
71088
|
+
404: BrowserError;
|
|
71089
|
+
/**
|
|
71090
|
+
* SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
71091
|
+
*/
|
|
71092
|
+
409: BrowserError;
|
|
71093
|
+
/**
|
|
71094
|
+
* BROWSER_REVOKED
|
|
71095
|
+
*/
|
|
71096
|
+
410: BrowserError;
|
|
71097
|
+
/**
|
|
71098
|
+
* ACTION_RESULT_TOO_LARGE
|
|
71099
|
+
*/
|
|
71100
|
+
413: BrowserError;
|
|
71101
|
+
/**
|
|
71102
|
+
* CONCURRENCY_LIMIT / RATE_LIMITED / PROVIDER_CAPACITY
|
|
71103
|
+
*/
|
|
71104
|
+
429: BrowserError;
|
|
71105
|
+
/**
|
|
71106
|
+
* INTERNAL
|
|
71107
|
+
*/
|
|
71108
|
+
500: BrowserError;
|
|
71109
|
+
/**
|
|
71110
|
+
* NOT_IMPLEMENTED / PROVIDER_UNSUPPORTED
|
|
71111
|
+
*/
|
|
71112
|
+
501: BrowserError;
|
|
71113
|
+
/**
|
|
71114
|
+
* PROVIDER_FAILED
|
|
71115
|
+
*/
|
|
71116
|
+
502: BrowserError;
|
|
71117
|
+
/**
|
|
71118
|
+
* BROWSER_OFFLINE / SERVICE_UNAVAILABLE
|
|
71119
|
+
*/
|
|
71120
|
+
503: BrowserError;
|
|
71121
|
+
/**
|
|
71122
|
+
* ACTION_TIMEOUT
|
|
71123
|
+
*/
|
|
71124
|
+
504: BrowserError;
|
|
71125
|
+
};
|
|
71126
|
+
export type BrowserGetContextError = BrowserGetContextErrors[keyof BrowserGetContextErrors];
|
|
71127
|
+
export type BrowserGetContextResponses = {
|
|
71128
|
+
/**
|
|
71129
|
+
* 请求成功。
|
|
71130
|
+
*/
|
|
71131
|
+
200: BrowserContext;
|
|
71132
|
+
};
|
|
71133
|
+
export type BrowserGetContextResponse = BrowserGetContextResponses[keyof BrowserGetContextResponses];
|
|
71134
|
+
export type BrowserUpdateContextData = {
|
|
71135
|
+
body: {
|
|
71136
|
+
/**
|
|
71137
|
+
* 登录态名称;非空时为 1–128 个 ASCII 字母、数字或 . _ : -,在当前账户内唯一;空字符串表示不设名称或清除名称。
|
|
71138
|
+
*/
|
|
71139
|
+
name?: '' | unknown;
|
|
71140
|
+
/**
|
|
71141
|
+
* 自定义字符串标签;最多 32 项,键最多 128 个 UTF-8 字节,值最多 1024 个 UTF-8 字节。 更新时整体替换;空对象清除标签,省略则保留。
|
|
71142
|
+
*/
|
|
71143
|
+
labels?: {
|
|
71144
|
+
[key: string]: string;
|
|
71145
|
+
};
|
|
71146
|
+
/**
|
|
71147
|
+
* 给登录态绑定一个固定的外部代理(如住宅 IP),使用这个登录态的会话没有写 proxies 时都经它出网,让同一账号始终从同一个出口地址出去。只存保管库引用(password_secret),不存密码;会话自己写了 proxies 时以会话的为准。需要组织已开通容器后端,否则返回 501 PROVIDER_UNSUPPORTED。 更新时传 null 解除绑定,省略则保留原绑定。
|
|
71148
|
+
*/
|
|
71149
|
+
proxy?: {
|
|
71150
|
+
/**
|
|
71151
|
+
* 固定为 external:经一个你自己的外部 HTTP 代理出网。
|
|
71152
|
+
*/
|
|
71153
|
+
type: 'external';
|
|
71154
|
+
/**
|
|
71155
|
+
* 代理地址,host:port 或 http://host:port;只支持 HTTP 代理,不接受 socks5:// 等协议,也不接受 localhost 和内网、链路本地地址。
|
|
71156
|
+
*/
|
|
71157
|
+
server: string;
|
|
71158
|
+
/**
|
|
71159
|
+
* 代理用户名;有密码时才能填,填了就必须同时给出密码。
|
|
71160
|
+
*/
|
|
71161
|
+
username?: string;
|
|
71162
|
+
/**
|
|
71163
|
+
* 必须用这种形式:引用保管库里的代理密码,只在连接这个代理的主机时兑换,不会交给网页。登录态里只存引用,传明文 password 返回 400 INVALID_PARAMS。
|
|
71164
|
+
*/
|
|
71165
|
+
password_secret?: {
|
|
71166
|
+
/**
|
|
71167
|
+
* 保存代理密码的保管库 ID,以 vlt_ 开头。
|
|
71168
|
+
*/
|
|
71169
|
+
vault_id: string;
|
|
71170
|
+
/**
|
|
71171
|
+
* 保管库中该密码的密钥 ID(不是密码本身)。
|
|
71172
|
+
*/
|
|
71173
|
+
secret: string;
|
|
71174
|
+
};
|
|
71175
|
+
} | null;
|
|
71176
|
+
};
|
|
71177
|
+
path: {
|
|
71178
|
+
/**
|
|
71179
|
+
* 登录态 ID;使用创建或列出登录态返回的 id,以 bsc_ 开头。
|
|
71180
|
+
*/
|
|
71181
|
+
contextId: string;
|
|
71182
|
+
};
|
|
71183
|
+
query?: never;
|
|
71184
|
+
url: '/browser/v1/contexts/{contextId}';
|
|
71185
|
+
};
|
|
71186
|
+
export type BrowserUpdateContextErrors = {
|
|
71187
|
+
/**
|
|
71188
|
+
* INVALID_PARAMS / INVALID_FILTER / INVALID_PAGE_TOKEN
|
|
71189
|
+
*/
|
|
71190
|
+
400: BrowserError;
|
|
71191
|
+
/**
|
|
71192
|
+
* UNAUTHENTICATED / CONNECT_SIGNATURE_INVALID
|
|
71193
|
+
*/
|
|
71194
|
+
401: BrowserError;
|
|
71195
|
+
/**
|
|
71196
|
+
* INSUFFICIENT_BALANCE / QUOTA_EXHAUSTED
|
|
71197
|
+
*/
|
|
71198
|
+
402: BrowserError;
|
|
71199
|
+
/**
|
|
71200
|
+
* PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
|
|
71201
|
+
*/
|
|
71202
|
+
403: BrowserError;
|
|
71203
|
+
/**
|
|
71204
|
+
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
71205
|
+
*/
|
|
71206
|
+
404: BrowserError;
|
|
71207
|
+
/**
|
|
71208
|
+
* SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
71209
|
+
*/
|
|
71210
|
+
409: BrowserError;
|
|
71211
|
+
/**
|
|
71212
|
+
* BROWSER_REVOKED
|
|
71213
|
+
*/
|
|
71214
|
+
410: BrowserError;
|
|
71215
|
+
/**
|
|
71216
|
+
* ACTION_RESULT_TOO_LARGE
|
|
71217
|
+
*/
|
|
71218
|
+
413: BrowserError;
|
|
71219
|
+
/**
|
|
71220
|
+
* CONCURRENCY_LIMIT / RATE_LIMITED / PROVIDER_CAPACITY
|
|
71221
|
+
*/
|
|
71222
|
+
429: BrowserError;
|
|
71223
|
+
/**
|
|
71224
|
+
* INTERNAL
|
|
71225
|
+
*/
|
|
71226
|
+
500: BrowserError;
|
|
71227
|
+
/**
|
|
71228
|
+
* NOT_IMPLEMENTED / PROVIDER_UNSUPPORTED
|
|
71229
|
+
*/
|
|
71230
|
+
501: BrowserError;
|
|
71231
|
+
/**
|
|
71232
|
+
* PROVIDER_FAILED
|
|
71233
|
+
*/
|
|
71234
|
+
502: BrowserError;
|
|
71235
|
+
/**
|
|
71236
|
+
* BROWSER_OFFLINE / SERVICE_UNAVAILABLE
|
|
71237
|
+
*/
|
|
71238
|
+
503: BrowserError;
|
|
71239
|
+
/**
|
|
71240
|
+
* ACTION_TIMEOUT
|
|
71241
|
+
*/
|
|
71242
|
+
504: BrowserError;
|
|
71243
|
+
};
|
|
71244
|
+
export type BrowserUpdateContextError = BrowserUpdateContextErrors[keyof BrowserUpdateContextErrors];
|
|
71245
|
+
export type BrowserUpdateContextResponses = {
|
|
71246
|
+
/**
|
|
71247
|
+
* 请求成功。
|
|
71248
|
+
*/
|
|
71249
|
+
200: BrowserContext;
|
|
71250
|
+
};
|
|
71251
|
+
export type BrowserUpdateContextResponse = BrowserUpdateContextResponses[keyof BrowserUpdateContextResponses];
|
|
71252
|
+
export type BrowserCreateByobPairingData = {
|
|
71253
|
+
body?: never;
|
|
71254
|
+
path?: never;
|
|
71255
|
+
query?: never;
|
|
71256
|
+
url: '/browser/v1/byob/pairings';
|
|
71257
|
+
};
|
|
71258
|
+
export type BrowserCreateByobPairingErrors = {
|
|
71259
|
+
/**
|
|
71260
|
+
* INVALID_PARAMS / INVALID_FILTER / INVALID_PAGE_TOKEN
|
|
71261
|
+
*/
|
|
71262
|
+
400: BrowserError;
|
|
71263
|
+
/**
|
|
71264
|
+
* UNAUTHENTICATED / CONNECT_SIGNATURE_INVALID
|
|
71265
|
+
*/
|
|
71266
|
+
401: BrowserError;
|
|
71267
|
+
/**
|
|
71268
|
+
* INSUFFICIENT_BALANCE / QUOTA_EXHAUSTED
|
|
71269
|
+
*/
|
|
71270
|
+
402: BrowserError;
|
|
71271
|
+
/**
|
|
71272
|
+
* PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
|
|
71273
|
+
*/
|
|
71274
|
+
403: BrowserError;
|
|
71275
|
+
/**
|
|
71276
|
+
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
71277
|
+
*/
|
|
71278
|
+
404: BrowserError;
|
|
71279
|
+
/**
|
|
71280
|
+
* SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
71281
|
+
*/
|
|
71282
|
+
409: BrowserError;
|
|
71283
|
+
/**
|
|
71284
|
+
* BROWSER_REVOKED
|
|
71285
|
+
*/
|
|
71286
|
+
410: BrowserError;
|
|
71287
|
+
/**
|
|
71288
|
+
* ACTION_RESULT_TOO_LARGE
|
|
71289
|
+
*/
|
|
71290
|
+
413: BrowserError;
|
|
71291
|
+
/**
|
|
71292
|
+
* CONCURRENCY_LIMIT / RATE_LIMITED / PROVIDER_CAPACITY
|
|
71293
|
+
*/
|
|
71294
|
+
429: BrowserError;
|
|
71295
|
+
/**
|
|
71296
|
+
* INTERNAL
|
|
71297
|
+
*/
|
|
71298
|
+
500: BrowserError;
|
|
71299
|
+
/**
|
|
71300
|
+
* NOT_IMPLEMENTED / PROVIDER_UNSUPPORTED
|
|
71301
|
+
*/
|
|
71302
|
+
501: BrowserError;
|
|
71303
|
+
/**
|
|
71304
|
+
* PROVIDER_FAILED
|
|
71305
|
+
*/
|
|
71306
|
+
502: BrowserError;
|
|
71307
|
+
/**
|
|
71308
|
+
* BROWSER_OFFLINE / SERVICE_UNAVAILABLE
|
|
71309
|
+
*/
|
|
71310
|
+
503: BrowserError;
|
|
71311
|
+
/**
|
|
71312
|
+
* ACTION_TIMEOUT
|
|
71313
|
+
*/
|
|
71314
|
+
504: BrowserError;
|
|
71315
|
+
};
|
|
71316
|
+
export type BrowserCreateByobPairingError = BrowserCreateByobPairingErrors[keyof BrowserCreateByobPairingErrors];
|
|
71317
|
+
export type BrowserCreateByobPairingResponses = {
|
|
71318
|
+
/**
|
|
71319
|
+
* 请求成功。
|
|
71320
|
+
*/
|
|
71321
|
+
201: BrowserByobPairing;
|
|
71322
|
+
};
|
|
71323
|
+
export type BrowserCreateByobPairingResponse = BrowserCreateByobPairingResponses[keyof BrowserCreateByobPairingResponses];
|
|
71324
|
+
export type BrowserListByobBrowsersData = {
|
|
71325
|
+
body?: never;
|
|
71326
|
+
path?: never;
|
|
71327
|
+
query?: {
|
|
71328
|
+
/**
|
|
71329
|
+
* 上一页返回的 nextCursor,原样传入;省略时读取第一页。
|
|
71330
|
+
*/
|
|
71331
|
+
cursor?: string;
|
|
71332
|
+
/**
|
|
71333
|
+
* 每页最多返回的浏览器数量;默认 50,范围 1–100。
|
|
71334
|
+
*/
|
|
71335
|
+
limit?: number;
|
|
71336
|
+
};
|
|
71337
|
+
url: '/browser/v1/byob/browsers';
|
|
71338
|
+
};
|
|
71339
|
+
export type BrowserListByobBrowsersErrors = {
|
|
71340
|
+
/**
|
|
71341
|
+
* INVALID_PARAMS / INVALID_FILTER / INVALID_PAGE_TOKEN
|
|
71342
|
+
*/
|
|
71343
|
+
400: BrowserError;
|
|
71344
|
+
/**
|
|
71345
|
+
* UNAUTHENTICATED / CONNECT_SIGNATURE_INVALID
|
|
71346
|
+
*/
|
|
71347
|
+
401: BrowserError;
|
|
71348
|
+
/**
|
|
71349
|
+
* INSUFFICIENT_BALANCE / QUOTA_EXHAUSTED
|
|
71350
|
+
*/
|
|
71351
|
+
402: BrowserError;
|
|
71352
|
+
/**
|
|
71353
|
+
* PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
|
|
71354
|
+
*/
|
|
71355
|
+
403: BrowserError;
|
|
71356
|
+
/**
|
|
71357
|
+
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
71358
|
+
*/
|
|
71359
|
+
404: BrowserError;
|
|
71360
|
+
/**
|
|
71361
|
+
* SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
71362
|
+
*/
|
|
71363
|
+
409: BrowserError;
|
|
71364
|
+
/**
|
|
71365
|
+
* BROWSER_REVOKED
|
|
71366
|
+
*/
|
|
71367
|
+
410: BrowserError;
|
|
71368
|
+
/**
|
|
71369
|
+
* ACTION_RESULT_TOO_LARGE
|
|
71370
|
+
*/
|
|
71371
|
+
413: BrowserError;
|
|
71372
|
+
/**
|
|
71373
|
+
* CONCURRENCY_LIMIT / RATE_LIMITED / PROVIDER_CAPACITY
|
|
71374
|
+
*/
|
|
71375
|
+
429: BrowserError;
|
|
71376
|
+
/**
|
|
71377
|
+
* INTERNAL
|
|
71378
|
+
*/
|
|
71379
|
+
500: BrowserError;
|
|
71380
|
+
/**
|
|
71381
|
+
* NOT_IMPLEMENTED / PROVIDER_UNSUPPORTED
|
|
71382
|
+
*/
|
|
71383
|
+
501: BrowserError;
|
|
71384
|
+
/**
|
|
71385
|
+
* PROVIDER_FAILED
|
|
71386
|
+
*/
|
|
71387
|
+
502: BrowserError;
|
|
71388
|
+
/**
|
|
71389
|
+
* BROWSER_OFFLINE / SERVICE_UNAVAILABLE
|
|
71390
|
+
*/
|
|
71391
|
+
503: BrowserError;
|
|
71392
|
+
/**
|
|
71393
|
+
* ACTION_TIMEOUT
|
|
71394
|
+
*/
|
|
71395
|
+
504: BrowserError;
|
|
71396
|
+
};
|
|
71397
|
+
export type BrowserListByobBrowsersError = BrowserListByobBrowsersErrors[keyof BrowserListByobBrowsersErrors];
|
|
71398
|
+
export type BrowserListByobBrowsersResponses = {
|
|
71399
|
+
/**
|
|
71400
|
+
* 分页列出的自带浏览器,按 ID 升序。
|
|
71401
|
+
*/
|
|
71402
|
+
200: {
|
|
71403
|
+
/**
|
|
71404
|
+
* 本页的自带浏览器;已断开的不在列表里。
|
|
71405
|
+
*/
|
|
71406
|
+
data: Array<BrowserByobBrowser>;
|
|
71407
|
+
/**
|
|
71408
|
+
* 下一页游标;原样传入 cursor,null 表示没有更多结果。
|
|
71409
|
+
*/
|
|
71410
|
+
nextCursor: string | null;
|
|
71411
|
+
};
|
|
71412
|
+
};
|
|
71413
|
+
export type BrowserListByobBrowsersResponse = BrowserListByobBrowsersResponses[keyof BrowserListByobBrowsersResponses];
|
|
71414
|
+
export type BrowserGetByobBrowserData = {
|
|
71415
|
+
body?: never;
|
|
71416
|
+
path: {
|
|
71417
|
+
/**
|
|
71418
|
+
* 自带浏览器 ID,以 byb_ 开头;使用配对认领或列出自带浏览器返回的 id。
|
|
71419
|
+
*/
|
|
71420
|
+
browser_id: string;
|
|
71421
|
+
};
|
|
71422
|
+
query?: never;
|
|
71423
|
+
url: '/browser/v1/byob/browsers/{browser_id}';
|
|
71424
|
+
};
|
|
71425
|
+
export type BrowserGetByobBrowserErrors = {
|
|
71426
|
+
/**
|
|
71427
|
+
* INVALID_PARAMS / INVALID_FILTER / INVALID_PAGE_TOKEN
|
|
71428
|
+
*/
|
|
71429
|
+
400: BrowserError;
|
|
71430
|
+
/**
|
|
71431
|
+
* UNAUTHENTICATED / CONNECT_SIGNATURE_INVALID
|
|
71432
|
+
*/
|
|
71433
|
+
401: BrowserError;
|
|
71434
|
+
/**
|
|
71435
|
+
* INSUFFICIENT_BALANCE / QUOTA_EXHAUSTED
|
|
71436
|
+
*/
|
|
71437
|
+
402: BrowserError;
|
|
71438
|
+
/**
|
|
71439
|
+
* PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
|
|
71440
|
+
*/
|
|
71441
|
+
403: BrowserError;
|
|
71442
|
+
/**
|
|
71443
|
+
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
71444
|
+
*/
|
|
71445
|
+
404: BrowserError;
|
|
71446
|
+
/**
|
|
71447
|
+
* SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
71448
|
+
*/
|
|
71449
|
+
409: BrowserError;
|
|
71450
|
+
/**
|
|
71451
|
+
* BROWSER_REVOKED
|
|
71452
|
+
*/
|
|
71453
|
+
410: BrowserError;
|
|
71454
|
+
/**
|
|
71455
|
+
* ACTION_RESULT_TOO_LARGE
|
|
71456
|
+
*/
|
|
71457
|
+
413: BrowserError;
|
|
71458
|
+
/**
|
|
71459
|
+
* CONCURRENCY_LIMIT / RATE_LIMITED / PROVIDER_CAPACITY
|
|
71460
|
+
*/
|
|
71461
|
+
429: BrowserError;
|
|
71462
|
+
/**
|
|
71463
|
+
* INTERNAL
|
|
71464
|
+
*/
|
|
71465
|
+
500: BrowserError;
|
|
71466
|
+
/**
|
|
71467
|
+
* NOT_IMPLEMENTED / PROVIDER_UNSUPPORTED
|
|
71468
|
+
*/
|
|
71469
|
+
501: BrowserError;
|
|
71470
|
+
/**
|
|
71471
|
+
* PROVIDER_FAILED
|
|
71472
|
+
*/
|
|
71473
|
+
502: BrowserError;
|
|
71474
|
+
/**
|
|
71475
|
+
* BROWSER_OFFLINE / SERVICE_UNAVAILABLE
|
|
71476
|
+
*/
|
|
71477
|
+
503: BrowserError;
|
|
71478
|
+
/**
|
|
71479
|
+
* ACTION_TIMEOUT
|
|
71480
|
+
*/
|
|
71481
|
+
504: BrowserError;
|
|
71482
|
+
};
|
|
71483
|
+
export type BrowserGetByobBrowserError = BrowserGetByobBrowserErrors[keyof BrowserGetByobBrowserErrors];
|
|
71484
|
+
export type BrowserGetByobBrowserResponses = {
|
|
71485
|
+
/**
|
|
71486
|
+
* 请求成功。
|
|
71487
|
+
*/
|
|
71488
|
+
200: BrowserByobBrowser;
|
|
71489
|
+
};
|
|
71490
|
+
export type BrowserGetByobBrowserResponse = BrowserGetByobBrowserResponses[keyof BrowserGetByobBrowserResponses];
|
|
71491
|
+
export type BrowserUpdateByobBrowserData = {
|
|
71492
|
+
body: {
|
|
71493
|
+
/**
|
|
71494
|
+
* 新的显示名称,1–80 个字符。
|
|
71495
|
+
*/
|
|
71496
|
+
name?: string;
|
|
71497
|
+
};
|
|
71498
|
+
path: {
|
|
71499
|
+
/**
|
|
71500
|
+
* 自带浏览器 ID,以 byb_ 开头;使用配对认领或列出自带浏览器返回的 id。
|
|
71501
|
+
*/
|
|
71502
|
+
browser_id: string;
|
|
71503
|
+
};
|
|
71504
|
+
query?: never;
|
|
71505
|
+
url: '/browser/v1/byob/browsers/{browser_id}';
|
|
71506
|
+
};
|
|
71507
|
+
export type BrowserUpdateByobBrowserErrors = {
|
|
71508
|
+
/**
|
|
71509
|
+
* INVALID_PARAMS / INVALID_FILTER / INVALID_PAGE_TOKEN
|
|
71510
|
+
*/
|
|
71511
|
+
400: BrowserError;
|
|
71512
|
+
/**
|
|
71513
|
+
* UNAUTHENTICATED / CONNECT_SIGNATURE_INVALID
|
|
71514
|
+
*/
|
|
71515
|
+
401: BrowserError;
|
|
71516
|
+
/**
|
|
71517
|
+
* INSUFFICIENT_BALANCE / QUOTA_EXHAUSTED
|
|
71518
|
+
*/
|
|
71519
|
+
402: BrowserError;
|
|
71520
|
+
/**
|
|
71521
|
+
* PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
|
|
71522
|
+
*/
|
|
71523
|
+
403: BrowserError;
|
|
71524
|
+
/**
|
|
71525
|
+
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
71526
|
+
*/
|
|
71527
|
+
404: BrowserError;
|
|
71528
|
+
/**
|
|
71529
|
+
* SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
71530
|
+
*/
|
|
71531
|
+
409: BrowserError;
|
|
71532
|
+
/**
|
|
71533
|
+
* BROWSER_REVOKED
|
|
71534
|
+
*/
|
|
71535
|
+
410: BrowserError;
|
|
71536
|
+
/**
|
|
71537
|
+
* ACTION_RESULT_TOO_LARGE
|
|
71538
|
+
*/
|
|
71539
|
+
413: BrowserError;
|
|
71540
|
+
/**
|
|
71541
|
+
* CONCURRENCY_LIMIT / RATE_LIMITED / PROVIDER_CAPACITY
|
|
71542
|
+
*/
|
|
71543
|
+
429: BrowserError;
|
|
71544
|
+
/**
|
|
71545
|
+
* INTERNAL
|
|
71546
|
+
*/
|
|
71547
|
+
500: BrowserError;
|
|
71548
|
+
/**
|
|
71549
|
+
* NOT_IMPLEMENTED / PROVIDER_UNSUPPORTED
|
|
71550
|
+
*/
|
|
71551
|
+
501: BrowserError;
|
|
71552
|
+
/**
|
|
71553
|
+
* PROVIDER_FAILED
|
|
71554
|
+
*/
|
|
71555
|
+
502: BrowserError;
|
|
71556
|
+
/**
|
|
71557
|
+
* BROWSER_OFFLINE / SERVICE_UNAVAILABLE
|
|
71558
|
+
*/
|
|
71559
|
+
503: BrowserError;
|
|
71560
|
+
/**
|
|
71561
|
+
* ACTION_TIMEOUT
|
|
71562
|
+
*/
|
|
71563
|
+
504: BrowserError;
|
|
71564
|
+
};
|
|
71565
|
+
export type BrowserUpdateByobBrowserError = BrowserUpdateByobBrowserErrors[keyof BrowserUpdateByobBrowserErrors];
|
|
71566
|
+
export type BrowserUpdateByobBrowserResponses = {
|
|
71567
|
+
/**
|
|
71568
|
+
* 请求成功。
|
|
71569
|
+
*/
|
|
71570
|
+
200: BrowserByobBrowser;
|
|
71571
|
+
};
|
|
71572
|
+
export type BrowserUpdateByobBrowserResponse = BrowserUpdateByobBrowserResponses[keyof BrowserUpdateByobBrowserResponses];
|
|
71573
|
+
export type BrowserDisconnectByobBrowserData = {
|
|
71574
|
+
body?: never;
|
|
71575
|
+
path: {
|
|
71576
|
+
/**
|
|
71577
|
+
* 自带浏览器 ID,以 byb_ 开头;使用配对认领或列出自带浏览器返回的 id。
|
|
71578
|
+
*/
|
|
71579
|
+
browser_id: string;
|
|
71580
|
+
};
|
|
71581
|
+
query?: never;
|
|
71582
|
+
url: '/browser/v1/byob/browsers/{browser_id}/disconnect';
|
|
71583
|
+
};
|
|
71584
|
+
export type BrowserDisconnectByobBrowserErrors = {
|
|
71585
|
+
/**
|
|
71586
|
+
* INVALID_PARAMS / INVALID_FILTER / INVALID_PAGE_TOKEN
|
|
71587
|
+
*/
|
|
71588
|
+
400: BrowserError;
|
|
71589
|
+
/**
|
|
71590
|
+
* UNAUTHENTICATED / CONNECT_SIGNATURE_INVALID
|
|
71591
|
+
*/
|
|
71592
|
+
401: BrowserError;
|
|
71593
|
+
/**
|
|
71594
|
+
* INSUFFICIENT_BALANCE / QUOTA_EXHAUSTED
|
|
71595
|
+
*/
|
|
71596
|
+
402: BrowserError;
|
|
71597
|
+
/**
|
|
71598
|
+
* PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
|
|
71599
|
+
*/
|
|
71600
|
+
403: BrowserError;
|
|
71601
|
+
/**
|
|
71602
|
+
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
71603
|
+
*/
|
|
71604
|
+
404: BrowserError;
|
|
71605
|
+
/**
|
|
71606
|
+
* SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
71607
|
+
*/
|
|
71608
|
+
409: BrowserError;
|
|
71609
|
+
/**
|
|
71610
|
+
* BROWSER_REVOKED
|
|
71611
|
+
*/
|
|
71612
|
+
410: BrowserError;
|
|
71613
|
+
/**
|
|
71614
|
+
* ACTION_RESULT_TOO_LARGE
|
|
71615
|
+
*/
|
|
71616
|
+
413: BrowserError;
|
|
71617
|
+
/**
|
|
71618
|
+
* CONCURRENCY_LIMIT / RATE_LIMITED / PROVIDER_CAPACITY
|
|
71619
|
+
*/
|
|
71620
|
+
429: BrowserError;
|
|
71621
|
+
/**
|
|
71622
|
+
* INTERNAL
|
|
71623
|
+
*/
|
|
71624
|
+
500: BrowserError;
|
|
71625
|
+
/**
|
|
71626
|
+
* NOT_IMPLEMENTED / PROVIDER_UNSUPPORTED
|
|
71627
|
+
*/
|
|
71628
|
+
501: BrowserError;
|
|
71629
|
+
/**
|
|
71630
|
+
* PROVIDER_FAILED
|
|
71631
|
+
*/
|
|
71632
|
+
502: BrowserError;
|
|
71633
|
+
/**
|
|
71634
|
+
* BROWSER_OFFLINE / SERVICE_UNAVAILABLE
|
|
71635
|
+
*/
|
|
71636
|
+
503: BrowserError;
|
|
71637
|
+
/**
|
|
71638
|
+
* ACTION_TIMEOUT
|
|
71639
|
+
*/
|
|
71640
|
+
504: BrowserError;
|
|
71641
|
+
};
|
|
71642
|
+
export type BrowserDisconnectByobBrowserError = BrowserDisconnectByobBrowserErrors[keyof BrowserDisconnectByobBrowserErrors];
|
|
71643
|
+
export type BrowserDisconnectByobBrowserResponses = {
|
|
71644
|
+
/**
|
|
71645
|
+
* 请求成功。
|
|
71646
|
+
*/
|
|
71647
|
+
200: BrowserByobBrowser;
|
|
71648
|
+
};
|
|
71649
|
+
export type BrowserDisconnectByobBrowserResponse = BrowserDisconnectByobBrowserResponses[keyof BrowserDisconnectByobBrowserResponses];
|
|
71650
|
+
export type BrowserReadByobPairingData = {
|
|
71651
|
+
body?: never;
|
|
71652
|
+
path: {
|
|
71653
|
+
/**
|
|
71654
|
+
* 8 位配对码,来自创建配对码的结果。
|
|
71655
|
+
*/
|
|
71656
|
+
code: string;
|
|
71657
|
+
};
|
|
71658
|
+
query?: never;
|
|
71659
|
+
url: '/browser/v1/byob/pairings/{code}';
|
|
71660
|
+
};
|
|
71661
|
+
export type BrowserReadByobPairingErrors = {
|
|
71662
|
+
/**
|
|
71663
|
+
* INVALID_PARAMS / INVALID_FILTER / INVALID_PAGE_TOKEN
|
|
71664
|
+
*/
|
|
71665
|
+
400: BrowserError;
|
|
71666
|
+
/**
|
|
71667
|
+
* UNAUTHENTICATED / CONNECT_SIGNATURE_INVALID
|
|
71668
|
+
*/
|
|
71669
|
+
401: BrowserError;
|
|
71670
|
+
/**
|
|
71671
|
+
* INSUFFICIENT_BALANCE / QUOTA_EXHAUSTED
|
|
71672
|
+
*/
|
|
71673
|
+
402: BrowserError;
|
|
71674
|
+
/**
|
|
71675
|
+
* PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
|
|
71676
|
+
*/
|
|
71677
|
+
403: BrowserError;
|
|
71678
|
+
/**
|
|
71679
|
+
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
71680
|
+
*/
|
|
71681
|
+
404: BrowserError;
|
|
71682
|
+
/**
|
|
71683
|
+
* SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
71684
|
+
*/
|
|
71685
|
+
409: BrowserError;
|
|
71686
|
+
/**
|
|
71687
|
+
* BROWSER_REVOKED
|
|
71688
|
+
*/
|
|
71689
|
+
410: BrowserError;
|
|
71690
|
+
/**
|
|
71691
|
+
* ACTION_RESULT_TOO_LARGE
|
|
71692
|
+
*/
|
|
71693
|
+
413: BrowserError;
|
|
71694
|
+
/**
|
|
71695
|
+
* CONCURRENCY_LIMIT / RATE_LIMITED / PROVIDER_CAPACITY
|
|
71696
|
+
*/
|
|
71697
|
+
429: BrowserError;
|
|
71698
|
+
/**
|
|
71699
|
+
* INTERNAL
|
|
71700
|
+
*/
|
|
71701
|
+
500: BrowserError;
|
|
71702
|
+
/**
|
|
71703
|
+
* NOT_IMPLEMENTED / PROVIDER_UNSUPPORTED
|
|
71704
|
+
*/
|
|
71705
|
+
501: BrowserError;
|
|
71706
|
+
/**
|
|
71707
|
+
* PROVIDER_FAILED
|
|
71708
|
+
*/
|
|
71709
|
+
502: BrowserError;
|
|
71710
|
+
/**
|
|
71711
|
+
* BROWSER_OFFLINE / SERVICE_UNAVAILABLE
|
|
71712
|
+
*/
|
|
71713
|
+
503: BrowserError;
|
|
71714
|
+
/**
|
|
71715
|
+
* ACTION_TIMEOUT
|
|
71716
|
+
*/
|
|
71717
|
+
504: BrowserError;
|
|
71718
|
+
};
|
|
71719
|
+
export type BrowserReadByobPairingError = BrowserReadByobPairingErrors[keyof BrowserReadByobPairingErrors];
|
|
71720
|
+
export type BrowserReadByobPairingResponses = {
|
|
71721
|
+
/**
|
|
71722
|
+
* 请求成功。
|
|
71723
|
+
*/
|
|
71724
|
+
200: BrowserByobPairingView;
|
|
71725
|
+
};
|
|
71726
|
+
export type BrowserReadByobPairingResponse = BrowserReadByobPairingResponses[keyof BrowserReadByobPairingResponses];
|
|
71727
|
+
export type BrowserClaimByobPairingData = {
|
|
71728
|
+
body: BrowserByobClaim;
|
|
71729
|
+
path: {
|
|
71730
|
+
/**
|
|
71731
|
+
* 8 位配对码,来自创建配对码的结果。
|
|
71732
|
+
*/
|
|
71733
|
+
code: string;
|
|
71734
|
+
};
|
|
71735
|
+
query?: never;
|
|
71736
|
+
url: '/browser/v1/byob/pairings/{code}/claim';
|
|
71737
|
+
};
|
|
71738
|
+
export type BrowserClaimByobPairingErrors = {
|
|
71739
|
+
/**
|
|
71740
|
+
* INVALID_PARAMS / INVALID_FILTER / INVALID_PAGE_TOKEN
|
|
71741
|
+
*/
|
|
71742
|
+
400: BrowserError;
|
|
71743
|
+
/**
|
|
71744
|
+
* UNAUTHENTICATED / CONNECT_SIGNATURE_INVALID
|
|
71745
|
+
*/
|
|
71746
|
+
401: BrowserError;
|
|
71747
|
+
/**
|
|
71748
|
+
* INSUFFICIENT_BALANCE / QUOTA_EXHAUSTED
|
|
71749
|
+
*/
|
|
71750
|
+
402: BrowserError;
|
|
71751
|
+
/**
|
|
71752
|
+
* PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
|
|
70227
71753
|
*/
|
|
70228
71754
|
403: BrowserError;
|
|
70229
71755
|
/**
|
|
70230
|
-
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
71756
|
+
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
70231
71757
|
*/
|
|
70232
71758
|
404: BrowserError;
|
|
70233
71759
|
/**
|
|
70234
|
-
* SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
71760
|
+
* SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
70235
71761
|
*/
|
|
70236
71762
|
409: BrowserError;
|
|
70237
71763
|
/**
|
|
70238
|
-
*
|
|
70239
|
-
*/
|
|
70240
|
-
413: BrowserError;
|
|
70241
|
-
/**
|
|
70242
|
-
* CONCURRENCY_LIMIT / RATE_LIMITED / PROVIDER_CAPACITY
|
|
70243
|
-
*/
|
|
70244
|
-
429: BrowserError;
|
|
70245
|
-
/**
|
|
70246
|
-
* INTERNAL
|
|
70247
|
-
*/
|
|
70248
|
-
500: BrowserError;
|
|
70249
|
-
/**
|
|
70250
|
-
* NOT_IMPLEMENTED / PROVIDER_UNSUPPORTED
|
|
70251
|
-
*/
|
|
70252
|
-
501: BrowserError;
|
|
70253
|
-
/**
|
|
70254
|
-
* PROVIDER_FAILED
|
|
71764
|
+
* BROWSER_REVOKED
|
|
70255
71765
|
*/
|
|
70256
|
-
|
|
70257
|
-
/**
|
|
70258
|
-
* SERVICE_UNAVAILABLE
|
|
70259
|
-
*/
|
|
70260
|
-
503: BrowserError;
|
|
70261
|
-
/**
|
|
70262
|
-
* ACTION_TIMEOUT
|
|
70263
|
-
*/
|
|
70264
|
-
504: BrowserError;
|
|
70265
|
-
};
|
|
70266
|
-
export type BrowserGetContextError = BrowserGetContextErrors[keyof BrowserGetContextErrors];
|
|
70267
|
-
export type BrowserGetContextResponses = {
|
|
70268
|
-
/**
|
|
70269
|
-
* 请求成功。
|
|
70270
|
-
*/
|
|
70271
|
-
200: BrowserContext;
|
|
70272
|
-
};
|
|
70273
|
-
export type BrowserGetContextResponse = BrowserGetContextResponses[keyof BrowserGetContextResponses];
|
|
70274
|
-
export type BrowserUpdateContextData = {
|
|
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
|
-
};
|
|
70287
|
-
path: {
|
|
70288
|
-
/**
|
|
70289
|
-
* 登录态 ID;使用创建或列出登录态返回的 id,以 bsc_ 开头。
|
|
70290
|
-
*/
|
|
70291
|
-
contextId: string;
|
|
70292
|
-
};
|
|
70293
|
-
query?: never;
|
|
70294
|
-
url: '/browser/v1/contexts/{contextId}';
|
|
70295
|
-
};
|
|
70296
|
-
export type BrowserUpdateContextErrors = {
|
|
70297
|
-
/**
|
|
70298
|
-
* INVALID_PARAMS / INVALID_FILTER / INVALID_PAGE_TOKEN
|
|
70299
|
-
*/
|
|
70300
|
-
400: BrowserError;
|
|
70301
|
-
/**
|
|
70302
|
-
* UNAUTHENTICATED / CONNECT_SIGNATURE_INVALID
|
|
70303
|
-
*/
|
|
70304
|
-
401: BrowserError;
|
|
70305
|
-
/**
|
|
70306
|
-
* INSUFFICIENT_BALANCE / QUOTA_EXHAUSTED
|
|
70307
|
-
*/
|
|
70308
|
-
402: BrowserError;
|
|
70309
|
-
/**
|
|
70310
|
-
* PERMISSION_DENIED / ACCOUNT_SUSPENDED
|
|
70311
|
-
*/
|
|
70312
|
-
403: BrowserError;
|
|
70313
|
-
/**
|
|
70314
|
-
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
70315
|
-
*/
|
|
70316
|
-
404: BrowserError;
|
|
70317
|
-
/**
|
|
70318
|
-
* SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
70319
|
-
*/
|
|
70320
|
-
409: BrowserError;
|
|
71766
|
+
410: BrowserError;
|
|
70321
71767
|
/**
|
|
70322
71768
|
* ACTION_RESULT_TOO_LARGE
|
|
70323
71769
|
*/
|
|
@@ -70339,7 +71785,7 @@ export type BrowserUpdateContextErrors = {
|
|
|
70339
71785
|
*/
|
|
70340
71786
|
502: BrowserError;
|
|
70341
71787
|
/**
|
|
70342
|
-
* SERVICE_UNAVAILABLE
|
|
71788
|
+
* BROWSER_OFFLINE / SERVICE_UNAVAILABLE
|
|
70343
71789
|
*/
|
|
70344
71790
|
503: BrowserError;
|
|
70345
71791
|
/**
|
|
@@ -70347,14 +71793,14 @@ export type BrowserUpdateContextErrors = {
|
|
|
70347
71793
|
*/
|
|
70348
71794
|
504: BrowserError;
|
|
70349
71795
|
};
|
|
70350
|
-
export type
|
|
70351
|
-
export type
|
|
71796
|
+
export type BrowserClaimByobPairingError = BrowserClaimByobPairingErrors[keyof BrowserClaimByobPairingErrors];
|
|
71797
|
+
export type BrowserClaimByobPairingResponses = {
|
|
70352
71798
|
/**
|
|
70353
|
-
*
|
|
71799
|
+
* 认领成功。
|
|
70354
71800
|
*/
|
|
70355
|
-
|
|
71801
|
+
201: BrowserByobClaimResult;
|
|
70356
71802
|
};
|
|
70357
|
-
export type
|
|
71803
|
+
export type BrowserClaimByobPairingResponse = BrowserClaimByobPairingResponses[keyof BrowserClaimByobPairingResponses];
|
|
70358
71804
|
export type BrowserConnectData = {
|
|
70359
71805
|
body?: never;
|
|
70360
71806
|
path?: never;
|
|
@@ -70412,17 +71858,21 @@ export type BrowserConnectErrors = {
|
|
|
70412
71858
|
*/
|
|
70413
71859
|
402: BrowserError;
|
|
70414
71860
|
/**
|
|
70415
|
-
* PERMISSION_DENIED / ACCOUNT_SUSPENDED
|
|
71861
|
+
* PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
|
|
70416
71862
|
*/
|
|
70417
71863
|
403: BrowserError;
|
|
70418
71864
|
/**
|
|
70419
|
-
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
71865
|
+
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
70420
71866
|
*/
|
|
70421
71867
|
404: BrowserError;
|
|
70422
71868
|
/**
|
|
70423
|
-
* SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
71869
|
+
* SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
70424
71870
|
*/
|
|
70425
71871
|
409: BrowserError;
|
|
71872
|
+
/**
|
|
71873
|
+
* BROWSER_REVOKED
|
|
71874
|
+
*/
|
|
71875
|
+
410: BrowserError;
|
|
70426
71876
|
/**
|
|
70427
71877
|
* ACTION_RESULT_TOO_LARGE
|
|
70428
71878
|
*/
|
|
@@ -70444,7 +71894,7 @@ export type BrowserConnectErrors = {
|
|
|
70444
71894
|
*/
|
|
70445
71895
|
502: BrowserError;
|
|
70446
71896
|
/**
|
|
70447
|
-
* SERVICE_UNAVAILABLE
|
|
71897
|
+
* BROWSER_OFFLINE / SERVICE_UNAVAILABLE
|
|
70448
71898
|
*/
|
|
70449
71899
|
503: BrowserError;
|
|
70450
71900
|
/**
|
|
@@ -70487,17 +71937,21 @@ export type BrowserLiveViewErrors = {
|
|
|
70487
71937
|
*/
|
|
70488
71938
|
402: BrowserError;
|
|
70489
71939
|
/**
|
|
70490
|
-
* PERMISSION_DENIED / ACCOUNT_SUSPENDED
|
|
71940
|
+
* PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
|
|
70491
71941
|
*/
|
|
70492
71942
|
403: BrowserError;
|
|
70493
71943
|
/**
|
|
70494
|
-
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
71944
|
+
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
70495
71945
|
*/
|
|
70496
71946
|
404: BrowserError;
|
|
70497
71947
|
/**
|
|
70498
|
-
* SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
71948
|
+
* SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
70499
71949
|
*/
|
|
70500
71950
|
409: BrowserError;
|
|
71951
|
+
/**
|
|
71952
|
+
* BROWSER_REVOKED
|
|
71953
|
+
*/
|
|
71954
|
+
410: BrowserError;
|
|
70501
71955
|
/**
|
|
70502
71956
|
* ACTION_RESULT_TOO_LARGE
|
|
70503
71957
|
*/
|
|
@@ -70519,7 +71973,7 @@ export type BrowserLiveViewErrors = {
|
|
|
70519
71973
|
*/
|
|
70520
71974
|
502: BrowserError;
|
|
70521
71975
|
/**
|
|
70522
|
-
* SERVICE_UNAVAILABLE
|
|
71976
|
+
* BROWSER_OFFLINE / SERVICE_UNAVAILABLE
|
|
70523
71977
|
*/
|
|
70524
71978
|
503: BrowserError;
|
|
70525
71979
|
/**
|
|
@@ -70553,17 +72007,21 @@ export type BrowserStreamSessionErrors = {
|
|
|
70553
72007
|
*/
|
|
70554
72008
|
402: BrowserError;
|
|
70555
72009
|
/**
|
|
70556
|
-
* PERMISSION_DENIED / ACCOUNT_SUSPENDED
|
|
72010
|
+
* PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
|
|
70557
72011
|
*/
|
|
70558
72012
|
403: BrowserError;
|
|
70559
72013
|
/**
|
|
70560
|
-
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
72014
|
+
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
70561
72015
|
*/
|
|
70562
72016
|
404: BrowserError;
|
|
70563
72017
|
/**
|
|
70564
|
-
* SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
72018
|
+
* SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
70565
72019
|
*/
|
|
70566
72020
|
409: BrowserError;
|
|
72021
|
+
/**
|
|
72022
|
+
* BROWSER_REVOKED
|
|
72023
|
+
*/
|
|
72024
|
+
410: BrowserError;
|
|
70567
72025
|
/**
|
|
70568
72026
|
* ACTION_RESULT_TOO_LARGE
|
|
70569
72027
|
*/
|
|
@@ -70585,7 +72043,7 @@ export type BrowserStreamSessionErrors = {
|
|
|
70585
72043
|
*/
|
|
70586
72044
|
502: BrowserError;
|
|
70587
72045
|
/**
|
|
70588
|
-
* SERVICE_UNAVAILABLE
|
|
72046
|
+
* BROWSER_OFFLINE / SERVICE_UNAVAILABLE
|
|
70589
72047
|
*/
|
|
70590
72048
|
503: BrowserError;
|
|
70591
72049
|
/**
|
|
@@ -70626,17 +72084,21 @@ export type BrowserStreamSessionFramesErrors = {
|
|
|
70626
72084
|
*/
|
|
70627
72085
|
402: BrowserError;
|
|
70628
72086
|
/**
|
|
70629
|
-
* PERMISSION_DENIED / ACCOUNT_SUSPENDED
|
|
72087
|
+
* PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
|
|
70630
72088
|
*/
|
|
70631
72089
|
403: BrowserError;
|
|
70632
72090
|
/**
|
|
70633
|
-
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
72091
|
+
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
70634
72092
|
*/
|
|
70635
72093
|
404: BrowserError;
|
|
70636
72094
|
/**
|
|
70637
|
-
* SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
72095
|
+
* SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
70638
72096
|
*/
|
|
70639
72097
|
409: BrowserError;
|
|
72098
|
+
/**
|
|
72099
|
+
* BROWSER_REVOKED
|
|
72100
|
+
*/
|
|
72101
|
+
410: BrowserError;
|
|
70640
72102
|
/**
|
|
70641
72103
|
* ACTION_RESULT_TOO_LARGE
|
|
70642
72104
|
*/
|
|
@@ -70658,7 +72120,7 @@ export type BrowserStreamSessionFramesErrors = {
|
|
|
70658
72120
|
*/
|
|
70659
72121
|
502: BrowserError;
|
|
70660
72122
|
/**
|
|
70661
|
-
* SERVICE_UNAVAILABLE
|
|
72123
|
+
* BROWSER_OFFLINE / SERVICE_UNAVAILABLE
|
|
70662
72124
|
*/
|
|
70663
72125
|
503: BrowserError;
|
|
70664
72126
|
/**
|
|
@@ -71054,7 +72516,7 @@ export type FileCreateSignedUploadErrors = {
|
|
|
71054
72516
|
*/
|
|
71055
72517
|
401: unknown;
|
|
71056
72518
|
/**
|
|
71057
|
-
* PERMISSION_DENIED or
|
|
72519
|
+
* 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
72520
|
*/
|
|
71059
72521
|
403: unknown;
|
|
71060
72522
|
};
|
|
@@ -77963,10 +79425,18 @@ export type GetOrganizationNotificationsInboxData = {
|
|
|
77963
79425
|
url: '/organization/v1/notifications/inbox';
|
|
77964
79426
|
};
|
|
77965
79427
|
export type GetOrganizationNotificationsInboxErrors = {
|
|
79428
|
+
/**
|
|
79429
|
+
* `INVALID_PARAMS` from the service for a read it cannot answer (RFC 9457 problem).
|
|
79430
|
+
*/
|
|
79431
|
+
400: unknown;
|
|
77966
79432
|
/**
|
|
77967
79433
|
* Missing or invalid credential (RFC 9457 problem).
|
|
77968
79434
|
*/
|
|
77969
79435
|
401: unknown;
|
|
79436
|
+
/**
|
|
79437
|
+
* 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.
|
|
79438
|
+
*/
|
|
79439
|
+
502: unknown;
|
|
77970
79440
|
};
|
|
77971
79441
|
export type GetOrganizationNotificationsInboxResponses = {
|
|
77972
79442
|
/**
|
|
@@ -78009,13 +79479,17 @@ export type ListOrganizationNotificationLettersData = {
|
|
|
78009
79479
|
};
|
|
78010
79480
|
export type ListOrganizationNotificationLettersErrors = {
|
|
78011
79481
|
/**
|
|
78012
|
-
*
|
|
79482
|
+
* A bad `status`, `archived` or `limit`, or `INVALID_PARAMS` from the service for a cursor it did not issue (RFC 9457 problem).
|
|
78013
79483
|
*/
|
|
78014
79484
|
400: unknown;
|
|
78015
79485
|
/**
|
|
78016
79486
|
* Missing or invalid credential (RFC 9457 problem).
|
|
78017
79487
|
*/
|
|
78018
79488
|
401: unknown;
|
|
79489
|
+
/**
|
|
79490
|
+
* 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.
|
|
79491
|
+
*/
|
|
79492
|
+
502: unknown;
|
|
78019
79493
|
};
|
|
78020
79494
|
export type ListOrganizationNotificationLettersResponses = {
|
|
78021
79495
|
/**
|
|
@@ -78118,7 +79592,7 @@ export type GetOrganizationNotificationLetterData = {
|
|
|
78118
79592
|
};
|
|
78119
79593
|
export type GetOrganizationNotificationLetterErrors = {
|
|
78120
79594
|
/**
|
|
78121
|
-
* The id is not a letter id (RFC 9457 problem).
|
|
79595
|
+
* The id is not a letter id — `INVALID_PARAMS` from the service (RFC 9457 problem).
|
|
78122
79596
|
*/
|
|
78123
79597
|
400: unknown;
|
|
78124
79598
|
/**
|
|
@@ -78126,9 +79600,13 @@ export type GetOrganizationNotificationLetterErrors = {
|
|
|
78126
79600
|
*/
|
|
78127
79601
|
401: unknown;
|
|
78128
79602
|
/**
|
|
78129
|
-
* No such letter in your mailbox (RFC 9457 problem).
|
|
79603
|
+
* 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
79604
|
*/
|
|
78131
79605
|
404: unknown;
|
|
79606
|
+
/**
|
|
79607
|
+
* 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.
|
|
79608
|
+
*/
|
|
79609
|
+
502: unknown;
|
|
78132
79610
|
};
|
|
78133
79611
|
export type GetOrganizationNotificationLetterResponses = {
|
|
78134
79612
|
/**
|
|
@@ -78218,7 +79696,7 @@ export type ReadOrganizationNotificationLetterData = {
|
|
|
78218
79696
|
};
|
|
78219
79697
|
export type ReadOrganizationNotificationLetterErrors = {
|
|
78220
79698
|
/**
|
|
78221
|
-
* The id is not a letter id (RFC 9457 problem).
|
|
79699
|
+
* The id is not a letter id — `INVALID_PARAMS` from the service (RFC 9457 problem).
|
|
78222
79700
|
*/
|
|
78223
79701
|
400: unknown;
|
|
78224
79702
|
/**
|
|
@@ -78226,9 +79704,13 @@ export type ReadOrganizationNotificationLetterErrors = {
|
|
|
78226
79704
|
*/
|
|
78227
79705
|
401: unknown;
|
|
78228
79706
|
/**
|
|
78229
|
-
* No such letter in your mailbox (RFC 9457 problem).
|
|
79707
|
+
* No such letter in your mailbox in this organization — `MESSAGE_NOT_FOUND` (RFC 9457 problem).
|
|
78230
79708
|
*/
|
|
78231
79709
|
404: unknown;
|
|
79710
|
+
/**
|
|
79711
|
+
* 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.
|
|
79712
|
+
*/
|
|
79713
|
+
502: unknown;
|
|
78232
79714
|
};
|
|
78233
79715
|
export type ReadOrganizationNotificationLetterResponses = {
|
|
78234
79716
|
/**
|
|
@@ -78255,13 +79737,17 @@ export type ReadAllOrganizationNotificationLettersData = {
|
|
|
78255
79737
|
};
|
|
78256
79738
|
export type ReadAllOrganizationNotificationLettersErrors = {
|
|
78257
79739
|
/**
|
|
78258
|
-
* The body is not a JSON object,
|
|
79740
|
+
* The body is not a JSON object, `kind` is unknown, or `INVALID_PARAMS` from the service (RFC 9457 problem).
|
|
78259
79741
|
*/
|
|
78260
79742
|
400: unknown;
|
|
78261
79743
|
/**
|
|
78262
79744
|
* Missing or invalid credential (RFC 9457 problem).
|
|
78263
79745
|
*/
|
|
78264
79746
|
401: unknown;
|
|
79747
|
+
/**
|
|
79748
|
+
* 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.
|
|
79749
|
+
*/
|
|
79750
|
+
502: unknown;
|
|
78265
79751
|
};
|
|
78266
79752
|
export type ReadAllOrganizationNotificationLettersResponses = {
|
|
78267
79753
|
/**
|
|
@@ -78288,7 +79774,7 @@ export type ArchiveOrganizationNotificationLetterData = {
|
|
|
78288
79774
|
};
|
|
78289
79775
|
export type ArchiveOrganizationNotificationLetterErrors = {
|
|
78290
79776
|
/**
|
|
78291
|
-
* 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).
|
|
78292
79778
|
*/
|
|
78293
79779
|
400: unknown;
|
|
78294
79780
|
/**
|
|
@@ -78296,9 +79782,13 @@ export type ArchiveOrganizationNotificationLetterErrors = {
|
|
|
78296
79782
|
*/
|
|
78297
79783
|
401: unknown;
|
|
78298
79784
|
/**
|
|
78299
|
-
* 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).
|
|
78300
79786
|
*/
|
|
78301
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;
|
|
78302
79792
|
};
|
|
78303
79793
|
export type ArchiveOrganizationNotificationLetterResponses = {
|
|
78304
79794
|
/**
|
|
@@ -78323,6 +79813,10 @@ export type GetOrganizationNotificationPreferencesErrors = {
|
|
|
78323
79813
|
* Missing or invalid credential (RFC 9457 problem).
|
|
78324
79814
|
*/
|
|
78325
79815
|
401: unknown;
|
|
79816
|
+
/**
|
|
79817
|
+
* 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.
|
|
79818
|
+
*/
|
|
79819
|
+
502: unknown;
|
|
78326
79820
|
};
|
|
78327
79821
|
export type GetOrganizationNotificationPreferencesResponses = {
|
|
78328
79822
|
/**
|
|
@@ -78414,7 +79908,7 @@ export type UpdateOrganizationNotificationPreferencesData = {
|
|
|
78414
79908
|
};
|
|
78415
79909
|
export type UpdateOrganizationNotificationPreferencesErrors = {
|
|
78416
79910
|
/**
|
|
78417
|
-
* Invalid switch, unknown category or unoffered channel (RFC 9457 problem).
|
|
79911
|
+
* Invalid switch, unknown category or unoffered channel — `INVALID_PARAMS`, `NOT_CONFIGURABLE` or `CRITICAL_CHANNELS_OFF` from the service (RFC 9457 problem).
|
|
78418
79912
|
*/
|
|
78419
79913
|
400: unknown;
|
|
78420
79914
|
/**
|
|
@@ -78422,9 +79916,13 @@ export type UpdateOrganizationNotificationPreferencesErrors = {
|
|
|
78422
79916
|
*/
|
|
78423
79917
|
401: unknown;
|
|
78424
79918
|
/**
|
|
78425
|
-
* The organization does not let members change their own switches (
|
|
79919
|
+
* The organization does not let members change their own switches — `ORGANIZATION_LOCKED` from the service (RFC 9457 problem).
|
|
78426
79920
|
*/
|
|
78427
79921
|
403: unknown;
|
|
79922
|
+
/**
|
|
79923
|
+
* 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.
|
|
79924
|
+
*/
|
|
79925
|
+
502: unknown;
|
|
78428
79926
|
};
|
|
78429
79927
|
export type UpdateOrganizationNotificationPreferencesResponses = {
|
|
78430
79928
|
/**
|
|
@@ -78446,6 +79944,10 @@ export type GetOrganizationNotificationDefaultsErrors = {
|
|
|
78446
79944
|
* Missing or invalid credential (RFC 9457 problem).
|
|
78447
79945
|
*/
|
|
78448
79946
|
401: unknown;
|
|
79947
|
+
/**
|
|
79948
|
+
* 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.
|
|
79949
|
+
*/
|
|
79950
|
+
502: unknown;
|
|
78449
79951
|
};
|
|
78450
79952
|
export type GetOrganizationNotificationDefaultsResponses = {
|
|
78451
79953
|
/**
|
|
@@ -78483,7 +79985,7 @@ export type UpdateOrganizationNotificationDefaultsData = {
|
|
|
78483
79985
|
};
|
|
78484
79986
|
export type UpdateOrganizationNotificationDefaultsErrors = {
|
|
78485
79987
|
/**
|
|
78486
|
-
* Invalid default, unknown category or hidden critical category (RFC 9457 problem).
|
|
79988
|
+
* Invalid default, unknown category or hidden critical category (RFC 9457 problem, `INVALID_PARAMS`).
|
|
78487
79989
|
*/
|
|
78488
79990
|
400: unknown;
|
|
78489
79991
|
/**
|
|
@@ -78491,9 +79993,13 @@ export type UpdateOrganizationNotificationDefaultsErrors = {
|
|
|
78491
79993
|
*/
|
|
78492
79994
|
401: unknown;
|
|
78493
79995
|
/**
|
|
78494
|
-
* The caller is not an owner or admin of this organization.
|
|
79996
|
+
* The caller is not an owner or admin of this organization — `PERMISSION_DENIED` from the service (RFC 9457 problem).
|
|
78495
79997
|
*/
|
|
78496
79998
|
403: unknown;
|
|
79999
|
+
/**
|
|
80000
|
+
* 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.
|
|
80001
|
+
*/
|
|
80002
|
+
502: unknown;
|
|
78497
80003
|
};
|
|
78498
80004
|
export type UpdateOrganizationNotificationDefaultsResponses = {
|
|
78499
80005
|
/**
|
|
@@ -78521,13 +80027,17 @@ export type ListOrganizationNotificationDeliveriesData = {
|
|
|
78521
80027
|
};
|
|
78522
80028
|
export type ListOrganizationNotificationDeliveriesErrors = {
|
|
78523
80029
|
/**
|
|
78524
|
-
* Invalid limit or page cursor (RFC 9457 problem).
|
|
80030
|
+
* Invalid limit, or `INVALID_PARAMS` from the service for a page cursor it did not issue (RFC 9457 problem).
|
|
78525
80031
|
*/
|
|
78526
80032
|
400: unknown;
|
|
78527
80033
|
/**
|
|
78528
80034
|
* Missing or invalid credential (RFC 9457 problem).
|
|
78529
80035
|
*/
|
|
78530
80036
|
401: unknown;
|
|
80037
|
+
/**
|
|
80038
|
+
* 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.
|
|
80039
|
+
*/
|
|
80040
|
+
502: unknown;
|
|
78531
80041
|
};
|
|
78532
80042
|
export type ListOrganizationNotificationDeliveriesResponses = {
|
|
78533
80043
|
/**
|
|
@@ -79759,7 +81269,7 @@ export type ListByodDevicesResponses = {
|
|
|
79759
81269
|
*/
|
|
79760
81270
|
id: string;
|
|
79761
81271
|
/**
|
|
79762
|
-
* The device's platform, which decides the use faces it answers. A desktop (macos, linux) pairs
|
|
81272
|
+
* 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
81273
|
*/
|
|
79764
81274
|
platform: 'android' | 'macos' | 'linux';
|
|
79765
81275
|
/**
|
|
@@ -79794,6 +81304,23 @@ export type ListByodDevicesResponses = {
|
|
|
79794
81304
|
* 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
81305
|
*/
|
|
79796
81306
|
agent_dirs: Array<string>;
|
|
81307
|
+
/**
|
|
81308
|
+
* 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.
|
|
81309
|
+
*/
|
|
81310
|
+
agent_bindings: Array<{
|
|
81311
|
+
/**
|
|
81312
|
+
* The absolute directory the desktop bound to an agent with praxis agent connect.
|
|
81313
|
+
*/
|
|
81314
|
+
dir: string;
|
|
81315
|
+
/**
|
|
81316
|
+
* The agent the directory is bound to: its identity number or its agent id.
|
|
81317
|
+
*/
|
|
81318
|
+
agent: string;
|
|
81319
|
+
}>;
|
|
81320
|
+
/**
|
|
81321
|
+
* 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.
|
|
81322
|
+
*/
|
|
81323
|
+
envd_version: string | null;
|
|
79797
81324
|
/**
|
|
79798
81325
|
* 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
81326
|
*/
|
|
@@ -79841,7 +81368,7 @@ export type GetByodDeviceResponses = {
|
|
|
79841
81368
|
*/
|
|
79842
81369
|
id: string;
|
|
79843
81370
|
/**
|
|
79844
|
-
* The device's platform, which decides the use faces it answers. A desktop (macos, linux) pairs
|
|
81371
|
+
* 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
81372
|
*/
|
|
79846
81373
|
platform: 'android' | 'macos' | 'linux';
|
|
79847
81374
|
/**
|
|
@@ -79876,6 +81403,23 @@ export type GetByodDeviceResponses = {
|
|
|
79876
81403
|
* 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
81404
|
*/
|
|
79878
81405
|
agent_dirs: Array<string>;
|
|
81406
|
+
/**
|
|
81407
|
+
* 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.
|
|
81408
|
+
*/
|
|
81409
|
+
agent_bindings: Array<{
|
|
81410
|
+
/**
|
|
81411
|
+
* The absolute directory the desktop bound to an agent with praxis agent connect.
|
|
81412
|
+
*/
|
|
81413
|
+
dir: string;
|
|
81414
|
+
/**
|
|
81415
|
+
* The agent the directory is bound to: its identity number or its agent id.
|
|
81416
|
+
*/
|
|
81417
|
+
agent: string;
|
|
81418
|
+
}>;
|
|
81419
|
+
/**
|
|
81420
|
+
* 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.
|
|
81421
|
+
*/
|
|
81422
|
+
envd_version: string | null;
|
|
79879
81423
|
/**
|
|
79880
81424
|
* 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
81425
|
*/
|
|
@@ -79934,7 +81478,7 @@ export type UpdateByodDeviceResponses = {
|
|
|
79934
81478
|
*/
|
|
79935
81479
|
id: string;
|
|
79936
81480
|
/**
|
|
79937
|
-
* The device's platform, which decides the use faces it answers. A desktop (macos, linux) pairs
|
|
81481
|
+
* 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
81482
|
*/
|
|
79939
81483
|
platform: 'android' | 'macos' | 'linux';
|
|
79940
81484
|
/**
|
|
@@ -79969,6 +81513,23 @@ export type UpdateByodDeviceResponses = {
|
|
|
79969
81513
|
* 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
81514
|
*/
|
|
79971
81515
|
agent_dirs: Array<string>;
|
|
81516
|
+
/**
|
|
81517
|
+
* 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.
|
|
81518
|
+
*/
|
|
81519
|
+
agent_bindings: Array<{
|
|
81520
|
+
/**
|
|
81521
|
+
* The absolute directory the desktop bound to an agent with praxis agent connect.
|
|
81522
|
+
*/
|
|
81523
|
+
dir: string;
|
|
81524
|
+
/**
|
|
81525
|
+
* The agent the directory is bound to: its identity number or its agent id.
|
|
81526
|
+
*/
|
|
81527
|
+
agent: string;
|
|
81528
|
+
}>;
|
|
81529
|
+
/**
|
|
81530
|
+
* 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.
|
|
81531
|
+
*/
|
|
81532
|
+
envd_version: string | null;
|
|
79972
81533
|
/**
|
|
79973
81534
|
* 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
81535
|
*/
|
|
@@ -80060,7 +81621,7 @@ export type ClaimByodPairingData = {
|
|
|
80060
81621
|
*/
|
|
80061
81622
|
body: {
|
|
80062
81623
|
/**
|
|
80063
|
-
* The device's platform. macos and linux are accepted
|
|
81624
|
+
* The device's platform. macos and linux are accepted for every organization; any other value than android, macos or linux answers INVALID_PARAMS.
|
|
80064
81625
|
*/
|
|
80065
81626
|
platform: 'android' | 'macos' | 'linux';
|
|
80066
81627
|
/**
|
|
@@ -80091,7 +81652,7 @@ export type ClaimByodPairingData = {
|
|
|
80091
81652
|
};
|
|
80092
81653
|
export type ClaimByodPairingErrors = {
|
|
80093
81654
|
/**
|
|
80094
|
-
* INVALID_PARAMS: the body is missing, platform is not android, macos or linux
|
|
81655
|
+
* 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
81656
|
*/
|
|
80096
81657
|
400: unknown;
|
|
80097
81658
|
/**
|
|
@@ -82714,8 +84275,7 @@ export type SessionsUpdateData = {
|
|
|
82714
84275
|
*/
|
|
82715
84276
|
title?: null | string;
|
|
82716
84277
|
/**
|
|
82717
|
-
*
|
|
82718
|
-
* requests setting this field are rejected. Reserved for future use.
|
|
84278
|
+
* 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
84279
|
*/
|
|
82720
84280
|
vault_ids?: Array<string>;
|
|
82721
84281
|
/**
|
|
@@ -83262,6 +84822,15 @@ export type AgentsListResponses = {
|
|
|
83262
84822
|
name: string;
|
|
83263
84823
|
}>;
|
|
83264
84824
|
};
|
|
84825
|
+
/**
|
|
84826
|
+
* 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.
|
|
84827
|
+
*/
|
|
84828
|
+
browser?: {
|
|
84829
|
+
/**
|
|
84830
|
+
* A paired browser's id (byb_ and 26 lowercase hex characters), from browser.byob.browsers.list.
|
|
84831
|
+
*/
|
|
84832
|
+
byob: string;
|
|
84833
|
+
} | null;
|
|
83265
84834
|
/**
|
|
83266
84835
|
* 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
84836
|
*/
|
|
@@ -83647,7 +85216,7 @@ export type AgentsListResponses = {
|
|
|
83647
85216
|
*/
|
|
83648
85217
|
environment_id?: string | null;
|
|
83649
85218
|
/**
|
|
83650
|
-
* Default vaults of this service or assume agent version: the vault_ids new
|
|
85219
|
+
* 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
85220
|
*/
|
|
83652
85221
|
vault_ids?: Array<string>;
|
|
83653
85222
|
/**
|
|
@@ -84186,7 +85755,7 @@ export type AgentsCreateData = {
|
|
|
84186
85755
|
*/
|
|
84187
85756
|
environment_id?: string | null;
|
|
84188
85757
|
/**
|
|
84189
|
-
* Default vaults of
|
|
85758
|
+
* 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
85759
|
*/
|
|
84191
85760
|
vault_ids?: Array<string>;
|
|
84192
85761
|
/**
|
|
@@ -84211,6 +85780,15 @@ export type AgentsCreateData = {
|
|
|
84211
85780
|
name: string;
|
|
84212
85781
|
}>;
|
|
84213
85782
|
};
|
|
85783
|
+
/**
|
|
85784
|
+
* 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.
|
|
85785
|
+
*/
|
|
85786
|
+
browser?: {
|
|
85787
|
+
/**
|
|
85788
|
+
* A paired browser's id (byb_ and 26 lowercase hex characters), from browser.byob.browsers.list.
|
|
85789
|
+
*/
|
|
85790
|
+
byob: string;
|
|
85791
|
+
} | null;
|
|
84214
85792
|
/**
|
|
84215
85793
|
* 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
85794
|
*/
|
|
@@ -84466,6 +86044,15 @@ export type AgentsCreateResponses = {
|
|
|
84466
86044
|
name: string;
|
|
84467
86045
|
}>;
|
|
84468
86046
|
};
|
|
86047
|
+
/**
|
|
86048
|
+
* 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.
|
|
86049
|
+
*/
|
|
86050
|
+
browser?: {
|
|
86051
|
+
/**
|
|
86052
|
+
* A paired browser's id (byb_ and 26 lowercase hex characters), from browser.byob.browsers.list.
|
|
86053
|
+
*/
|
|
86054
|
+
byob: string;
|
|
86055
|
+
} | null;
|
|
84469
86056
|
/**
|
|
84470
86057
|
* 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
86058
|
*/
|
|
@@ -84851,7 +86438,7 @@ export type AgentsCreateResponses = {
|
|
|
84851
86438
|
*/
|
|
84852
86439
|
environment_id?: string | null;
|
|
84853
86440
|
/**
|
|
84854
|
-
* Default vaults of this service or assume agent version: the vault_ids new
|
|
86441
|
+
* 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
86442
|
*/
|
|
84856
86443
|
vault_ids?: Array<string>;
|
|
84857
86444
|
/**
|
|
@@ -85128,6 +86715,15 @@ export type AgentsRetrieveResponses = {
|
|
|
85128
86715
|
name: string;
|
|
85129
86716
|
}>;
|
|
85130
86717
|
};
|
|
86718
|
+
/**
|
|
86719
|
+
* 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.
|
|
86720
|
+
*/
|
|
86721
|
+
browser?: {
|
|
86722
|
+
/**
|
|
86723
|
+
* A paired browser's id (byb_ and 26 lowercase hex characters), from browser.byob.browsers.list.
|
|
86724
|
+
*/
|
|
86725
|
+
byob: string;
|
|
86726
|
+
} | null;
|
|
85131
86727
|
/**
|
|
85132
86728
|
* 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
86729
|
*/
|
|
@@ -85513,7 +87109,7 @@ export type AgentsRetrieveResponses = {
|
|
|
85513
87109
|
*/
|
|
85514
87110
|
environment_id?: string | null;
|
|
85515
87111
|
/**
|
|
85516
|
-
* Default vaults of this service or assume agent version: the vault_ids new
|
|
87112
|
+
* 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
87113
|
*/
|
|
85518
87114
|
vault_ids?: Array<string>;
|
|
85519
87115
|
/**
|
|
@@ -86061,7 +87657,7 @@ export type AgentsUpdateData = {
|
|
|
86061
87657
|
*/
|
|
86062
87658
|
environment_id?: string | null;
|
|
86063
87659
|
/**
|
|
86064
|
-
* Default vaults of
|
|
87660
|
+
* 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
87661
|
*/
|
|
86066
87662
|
vault_ids?: Array<string>;
|
|
86067
87663
|
/**
|
|
@@ -86086,6 +87682,15 @@ export type AgentsUpdateData = {
|
|
|
86086
87682
|
name: string;
|
|
86087
87683
|
}>;
|
|
86088
87684
|
};
|
|
87685
|
+
/**
|
|
87686
|
+
* 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.
|
|
87687
|
+
*/
|
|
87688
|
+
browser?: {
|
|
87689
|
+
/**
|
|
87690
|
+
* A paired browser's id (byb_ and 26 lowercase hex characters), from browser.byob.browsers.list.
|
|
87691
|
+
*/
|
|
87692
|
+
byob: string;
|
|
87693
|
+
} | null;
|
|
86089
87694
|
/**
|
|
86090
87695
|
* 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
87696
|
*/
|
|
@@ -86354,6 +87959,15 @@ export type AgentsUpdateResponses = {
|
|
|
86354
87959
|
name: string;
|
|
86355
87960
|
}>;
|
|
86356
87961
|
};
|
|
87962
|
+
/**
|
|
87963
|
+
* 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.
|
|
87964
|
+
*/
|
|
87965
|
+
browser?: {
|
|
87966
|
+
/**
|
|
87967
|
+
* A paired browser's id (byb_ and 26 lowercase hex characters), from browser.byob.browsers.list.
|
|
87968
|
+
*/
|
|
87969
|
+
byob: string;
|
|
87970
|
+
} | null;
|
|
86357
87971
|
/**
|
|
86358
87972
|
* 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
87973
|
*/
|
|
@@ -86739,7 +88353,7 @@ export type AgentsUpdateResponses = {
|
|
|
86739
88353
|
*/
|
|
86740
88354
|
environment_id?: string | null;
|
|
86741
88355
|
/**
|
|
86742
|
-
* Default vaults of this service or assume agent version: the vault_ids new
|
|
88356
|
+
* 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
88357
|
*/
|
|
86744
88358
|
vault_ids?: Array<string>;
|
|
86745
88359
|
/**
|
|
@@ -87365,7 +88979,7 @@ export type AgentsArchiveResponses = {
|
|
|
87365
88979
|
*/
|
|
87366
88980
|
environment_id?: string | null;
|
|
87367
88981
|
/**
|
|
87368
|
-
* Default vaults of this service or assume agent version: the vault_ids new
|
|
88982
|
+
* 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
88983
|
*/
|
|
87370
88984
|
vault_ids?: Array<string>;
|
|
87371
88985
|
/**
|
|
@@ -87642,6 +89256,15 @@ export type AgentsVersionsListResponses = {
|
|
|
87642
89256
|
name: string;
|
|
87643
89257
|
}>;
|
|
87644
89258
|
};
|
|
89259
|
+
/**
|
|
89260
|
+
* 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.
|
|
89261
|
+
*/
|
|
89262
|
+
browser?: {
|
|
89263
|
+
/**
|
|
89264
|
+
* A paired browser's id (byb_ and 26 lowercase hex characters), from browser.byob.browsers.list.
|
|
89265
|
+
*/
|
|
89266
|
+
byob: string;
|
|
89267
|
+
} | null;
|
|
87645
89268
|
/**
|
|
87646
89269
|
* 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
89270
|
*/
|
|
@@ -88027,7 +89650,7 @@ export type AgentsVersionsListResponses = {
|
|
|
88027
89650
|
*/
|
|
88028
89651
|
environment_id?: string | null;
|
|
88029
89652
|
/**
|
|
88030
|
-
* Default vaults of this service or assume agent version: the vault_ids new
|
|
89653
|
+
* 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
89654
|
*/
|
|
88032
89655
|
vault_ids?: Array<string>;
|
|
88033
89656
|
/**
|
|
@@ -90424,6 +92047,31 @@ export type SessionsEventsListResponses = {
|
|
|
90424
92047
|
* 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
92048
|
*/
|
|
90426
92049
|
session_thread_id?: string | null;
|
|
92050
|
+
} | {
|
|
92051
|
+
/**
|
|
92052
|
+
* Event id, unique within the session. Use it to refer to this event, for example in user.tool_confirmation or user.steer.
|
|
92053
|
+
*/
|
|
92054
|
+
id: string;
|
|
92055
|
+
/**
|
|
92056
|
+
* Always `session.status_preparing`. A device session's local agent is starting; stage says how far it got.
|
|
92057
|
+
*/
|
|
92058
|
+
type: 'session.status_preparing';
|
|
92059
|
+
/**
|
|
92060
|
+
* RFC 3339 time at which the server processed the event; null while a queued input has not started running.
|
|
92061
|
+
*/
|
|
92062
|
+
processed_at: string;
|
|
92063
|
+
/**
|
|
92064
|
+
* How far the start got.
|
|
92065
|
+
*/
|
|
92066
|
+
stage: 'launching' | 'loading' | 'ready';
|
|
92067
|
+
/**
|
|
92068
|
+
* 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.
|
|
92069
|
+
*/
|
|
92070
|
+
message_id?: string;
|
|
92071
|
+
/**
|
|
92072
|
+
* 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.
|
|
92073
|
+
*/
|
|
92074
|
+
session_thread_id?: string | null;
|
|
90427
92075
|
}>;
|
|
90428
92076
|
/**
|
|
90429
92077
|
* Opaque cursor for the next page: pass it unchanged as page to continue. Null when this is the last page.
|
|
@@ -92146,6 +93794,31 @@ export type SessionsThreadsEventsListResponses = {
|
|
|
92146
93794
|
* 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
93795
|
*/
|
|
92148
93796
|
session_thread_id?: string | null;
|
|
93797
|
+
} | {
|
|
93798
|
+
/**
|
|
93799
|
+
* Event id, unique within the session. Use it to refer to this event, for example in user.tool_confirmation or user.steer.
|
|
93800
|
+
*/
|
|
93801
|
+
id: string;
|
|
93802
|
+
/**
|
|
93803
|
+
* Always `session.status_preparing`. A device session's local agent is starting; stage says how far it got.
|
|
93804
|
+
*/
|
|
93805
|
+
type: 'session.status_preparing';
|
|
93806
|
+
/**
|
|
93807
|
+
* RFC 3339 time at which the server processed the event; null while a queued input has not started running.
|
|
93808
|
+
*/
|
|
93809
|
+
processed_at: string;
|
|
93810
|
+
/**
|
|
93811
|
+
* How far the start got.
|
|
93812
|
+
*/
|
|
93813
|
+
stage: 'launching' | 'loading' | 'ready';
|
|
93814
|
+
/**
|
|
93815
|
+
* 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.
|
|
93816
|
+
*/
|
|
93817
|
+
message_id?: string;
|
|
93818
|
+
/**
|
|
93819
|
+
* 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.
|
|
93820
|
+
*/
|
|
93821
|
+
session_thread_id?: string | null;
|
|
92149
93822
|
}>;
|
|
92150
93823
|
/**
|
|
92151
93824
|
* Opaque cursor for the next page: pass it unchanged as page to continue. Null when this is the last page.
|
|
@@ -110984,6 +112657,51 @@ export type DevopsChangesMarkLastSliceResponses = {
|
|
|
110984
112657
|
200: DevopsChange;
|
|
110985
112658
|
};
|
|
110986
112659
|
export type DevopsChangesMarkLastSliceResponse = DevopsChangesMarkLastSliceResponses[keyof DevopsChangesMarkLastSliceResponses];
|
|
112660
|
+
export type DevopsChangesSlicesCreateData = {
|
|
112661
|
+
body?: DevopsChangeSliceCreateRequest;
|
|
112662
|
+
path: {
|
|
112663
|
+
/**
|
|
112664
|
+
* Identifies the project whose data you are reading, from the project list or create answer.
|
|
112665
|
+
*/
|
|
112666
|
+
project: string;
|
|
112667
|
+
/**
|
|
112668
|
+
* 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.
|
|
112669
|
+
*/
|
|
112670
|
+
change: string;
|
|
112671
|
+
};
|
|
112672
|
+
query?: never;
|
|
112673
|
+
url: '/devops/v1/projects/{project}/changes/{change}/slices';
|
|
112674
|
+
};
|
|
112675
|
+
export type DevopsChangesSlicesCreateErrors = {
|
|
112676
|
+
/**
|
|
112677
|
+
* 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.
|
|
112678
|
+
*/
|
|
112679
|
+
400: DevopsDevOpsError;
|
|
112680
|
+
/**
|
|
112681
|
+
* The API key is missing or invalid; send a valid Praxis API key in the Authorization header before retrying.
|
|
112682
|
+
*/
|
|
112683
|
+
401: DevopsDevOpsError;
|
|
112684
|
+
/**
|
|
112685
|
+
* 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.
|
|
112686
|
+
*/
|
|
112687
|
+
403: DevopsDevOpsError;
|
|
112688
|
+
/**
|
|
112689
|
+
* 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.
|
|
112690
|
+
*/
|
|
112691
|
+
404: DevopsDevOpsError;
|
|
112692
|
+
/**
|
|
112693
|
+
* 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.
|
|
112694
|
+
*/
|
|
112695
|
+
500: DevopsDevOpsError;
|
|
112696
|
+
};
|
|
112697
|
+
export type DevopsChangesSlicesCreateError = DevopsChangesSlicesCreateErrors[keyof DevopsChangesSlicesCreateErrors];
|
|
112698
|
+
export type DevopsChangesSlicesCreateResponses = {
|
|
112699
|
+
/**
|
|
112700
|
+
* 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.
|
|
112701
|
+
*/
|
|
112702
|
+
200: DevopsChangeSliceOpened;
|
|
112703
|
+
};
|
|
112704
|
+
export type DevopsChangesSlicesCreateResponse = DevopsChangesSlicesCreateResponses[keyof DevopsChangesSlicesCreateResponses];
|
|
110987
112705
|
export type DevopsChangesOpenPullRequestData = {
|
|
110988
112706
|
body?: DevopsChangeOpenPullRequestRequest;
|
|
110989
112707
|
path: {
|
|
@@ -120055,7 +121773,7 @@ export type GetSandboxV1SandboxesResponses = {
|
|
|
120055
121773
|
};
|
|
120056
121774
|
export type GetSandboxV1SandboxesResponse = GetSandboxV1SandboxesResponses[keyof GetSandboxV1SandboxesResponses];
|
|
120057
121775
|
export type PostSandboxV1SandboxesData = {
|
|
120058
|
-
body:
|
|
121776
|
+
body: SandboxNewSandboxV2Writable;
|
|
120059
121777
|
path?: never;
|
|
120060
121778
|
query?: never;
|
|
120061
121779
|
url: '/sandbox/v1/sandboxes';
|