@deepraxis/sdk 0.2.0-dev.936d133 → 0.2.0-dev.ad00bde

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.
@@ -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,37 @@ export type BrowserSessionCreateParams = {
3662
3696
  ignoreCertificateErrors?: boolean;
3663
3697
  };
3664
3698
  /**
3665
- * 仅省略、false 或 [{type: 'none'}] 可用;其它代理配置返回 501。
3699
+ * 省略、false 或 [{type: 'none'}] 表示不用代理。一条 {type: 'external', server, username?, password? | password_secret?} 让会话在我们的 Chrome 容器里经这个 HTTP 代理出网(需要组织已开通容器后端,否则返回 501 PROVIDER_UNSUPPORTED);不能与 source.type 为 cloud 或 byob 同用,返回 400 INVALID_PARAMS。其它代理类型返回 501。
3666
3700
  */
3667
3701
  proxies?: boolean | Array<unknown>;
3702
+ /**
3703
+ * 选择浏览器后端。{type: 'cloud'}:Browser Run,启动最快、不能用代理、自动化特征可被网站发现。{type: 'container'}:我们自己的 Chrome 容器,可带代理也可不带;组织未开通容器后端时返回 501 PROVIDER_UNSUPPORTED。{type: 'byob', browser: 'byb_…'}:用户自己配对的浏览器,不能与 proxies 或登录态同用。简写 {byob: 'byb_…'} 等同最后一种。省略时按旧规则:带 proxies 进容器,否则 Browser Run。cloud 加代理、未知 type、格式错误都返回 400 INVALID_PARAMS。
3704
+ */
3705
+ source?: {
3706
+ /**
3707
+ * Browser Run。
3708
+ */
3709
+ type: 'cloud';
3710
+ } | {
3711
+ /**
3712
+ * 自家 Chrome 容器。
3713
+ */
3714
+ type: 'container';
3715
+ } | {
3716
+ /**
3717
+ * 用户自己的浏览器。
3718
+ */
3719
+ type: 'byob';
3720
+ /**
3721
+ * 自带浏览器 ID,以 byb_ 开头。
3722
+ */
3723
+ browser: string;
3724
+ } | {
3725
+ /**
3726
+ * 自带浏览器 ID,type 为 byob 的简写。
3727
+ */
3728
+ byob: string;
3729
+ };
3668
3730
  /**
3669
3731
  * 接受但忽略;不能选择区域。
3670
3732
  */
@@ -3712,9 +3774,9 @@ export type BrowserSessionCreateResult = {
3712
3774
  */
3713
3775
  region: 'ap-southeast-1';
3714
3776
  /**
3715
- * 兼容的代理流量字节数;当前未使用代理,固定返回 0。
3777
+ * 会话经代理转发的流量字节数(上行与下行之和);仅容器后端的会话有值,其余后端固定为 0。
3716
3778
  */
3717
- proxyBytes: 0;
3779
+ proxyBytes: number;
3718
3780
  /**
3719
3781
  * 会话创建时刻,UTC ISO 8601 时间。
3720
3782
  */
@@ -3759,6 +3821,41 @@ export type BrowserSessionCreateResult = {
3759
3821
  * 会话创建入口;api 为 API 创建,connect 为一步连接创建,console 为 Console 创建。
3760
3822
  */
3761
3823
  origin: 'api' | 'connect' | 'console';
3824
+ /**
3825
+ * 会话实际使用的浏览器后端:cloud 是云浏览器(Browser Run),container 是我们自己的 Chrome 容器,byob 是用户自己配对的浏览器(browser 为它的 ID)。type 与 kind 同值,type 是公开名称,kind 为兼容旧读者保留。
3826
+ */
3827
+ source: {
3828
+ /**
3829
+ * 云浏览器会话,固定为 cloud。
3830
+ */
3831
+ type: 'cloud';
3832
+ /**
3833
+ * 与 type 同值。
3834
+ */
3835
+ kind: 'cloud';
3836
+ } | {
3837
+ /**
3838
+ * 自家 Chrome 容器会话,固定为 container。
3839
+ */
3840
+ type: 'container';
3841
+ /**
3842
+ * 与 type 同值。
3843
+ */
3844
+ kind: 'container';
3845
+ } | {
3846
+ /**
3847
+ * 用户自己配对的浏览器会话,固定为 byob。
3848
+ */
3849
+ type: 'byob';
3850
+ /**
3851
+ * 与 type 同值。
3852
+ */
3853
+ kind: 'byob';
3854
+ /**
3855
+ * 自带浏览器 ID,以 byb_ 开头。
3856
+ */
3857
+ browser: string;
3858
+ };
3762
3859
  /**
3763
3860
  * 创建这个会话的用户或智能体标识;通过能力 URL 创建、或在引入创建者之前创建的会话省略此字段。
3764
3861
  */
@@ -3825,12 +3922,16 @@ export type BrowserSessionCreateResult = {
3825
3922
  * 该地址返回 501;不支持 Selenium。
3826
3923
  */
3827
3924
  seleniumRemoteUrl: string;
3925
+ /**
3926
+ * true 表示本次按 name 复用了已在运行的同名会话(HTTP 200),没有新开会话;false 表示新开了会话(HTTP 201)。
3927
+ */
3928
+ reused: boolean;
3828
3929
  };
3829
3930
  export type BrowserError = {
3830
3931
  statusCode: number;
3831
3932
  error: string;
3832
3933
  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';
3934
+ 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
3935
  };
3835
3936
  export type BrowserSession = {
3836
3937
  /**
@@ -3854,9 +3955,9 @@ export type BrowserSession = {
3854
3955
  */
3855
3956
  region: 'ap-southeast-1';
3856
3957
  /**
3857
- * 兼容的代理流量字节数;当前未使用代理,固定返回 0。
3958
+ * 会话经代理转发的流量字节数(上行与下行之和);仅容器后端的会话有值,其余后端固定为 0。
3858
3959
  */
3859
- proxyBytes: 0;
3960
+ proxyBytes: number;
3860
3961
  /**
3861
3962
  * 会话创建时刻,UTC ISO 8601 时间。
3862
3963
  */
@@ -3901,6 +4002,41 @@ export type BrowserSession = {
3901
4002
  * 会话创建入口;api 为 API 创建,connect 为一步连接创建,console 为 Console 创建。
3902
4003
  */
3903
4004
  origin: 'api' | 'connect' | 'console';
4005
+ /**
4006
+ * 会话实际使用的浏览器后端:cloud 是云浏览器(Browser Run),container 是我们自己的 Chrome 容器,byob 是用户自己配对的浏览器(browser 为它的 ID)。type 与 kind 同值,type 是公开名称,kind 为兼容旧读者保留。
4007
+ */
4008
+ source: {
4009
+ /**
4010
+ * 云浏览器会话,固定为 cloud。
4011
+ */
4012
+ type: 'cloud';
4013
+ /**
4014
+ * 与 type 同值。
4015
+ */
4016
+ kind: 'cloud';
4017
+ } | {
4018
+ /**
4019
+ * 自家 Chrome 容器会话,固定为 container。
4020
+ */
4021
+ type: 'container';
4022
+ /**
4023
+ * 与 type 同值。
4024
+ */
4025
+ kind: 'container';
4026
+ } | {
4027
+ /**
4028
+ * 用户自己配对的浏览器会话,固定为 byob。
4029
+ */
4030
+ type: 'byob';
4031
+ /**
4032
+ * 与 type 同值。
4033
+ */
4034
+ kind: 'byob';
4035
+ /**
4036
+ * 自带浏览器 ID,以 byb_ 开头。
4037
+ */
4038
+ browser: string;
4039
+ };
3904
4040
  /**
3905
4041
  * 创建这个会话的用户或智能体标识;通过能力 URL 创建、或在引入创建者之前创建的会话省略此字段。
3906
4042
  */
@@ -3978,9 +4114,9 @@ export type BrowserSessionGetResult = {
3978
4114
  */
3979
4115
  region: 'ap-southeast-1';
3980
4116
  /**
3981
- * 兼容的代理流量字节数;当前未使用代理,固定返回 0。
4117
+ * 会话经代理转发的流量字节数(上行与下行之和);仅容器后端的会话有值,其余后端固定为 0。
3982
4118
  */
3983
- proxyBytes: 0;
4119
+ proxyBytes: number;
3984
4120
  /**
3985
4121
  * 会话创建时刻,UTC ISO 8601 时间。
3986
4122
  */
@@ -4025,6 +4161,41 @@ export type BrowserSessionGetResult = {
4025
4161
  * 会话创建入口;api 为 API 创建,connect 为一步连接创建,console 为 Console 创建。
4026
4162
  */
4027
4163
  origin: 'api' | 'connect' | 'console';
4164
+ /**
4165
+ * 会话实际使用的浏览器后端:cloud 是云浏览器(Browser Run),container 是我们自己的 Chrome 容器,byob 是用户自己配对的浏览器(browser 为它的 ID)。type 与 kind 同值,type 是公开名称,kind 为兼容旧读者保留。
4166
+ */
4167
+ source: {
4168
+ /**
4169
+ * 云浏览器会话,固定为 cloud。
4170
+ */
4171
+ type: 'cloud';
4172
+ /**
4173
+ * 与 type 同值。
4174
+ */
4175
+ kind: 'cloud';
4176
+ } | {
4177
+ /**
4178
+ * 自家 Chrome 容器会话,固定为 container。
4179
+ */
4180
+ type: 'container';
4181
+ /**
4182
+ * 与 type 同值。
4183
+ */
4184
+ kind: 'container';
4185
+ } | {
4186
+ /**
4187
+ * 用户自己配对的浏览器会话,固定为 byob。
4188
+ */
4189
+ type: 'byob';
4190
+ /**
4191
+ * 与 type 同值。
4192
+ */
4193
+ kind: 'byob';
4194
+ /**
4195
+ * 自带浏览器 ID,以 byb_ 开头。
4196
+ */
4197
+ browser: string;
4198
+ };
4028
4199
  /**
4029
4200
  * 创建这个会话的用户或智能体标识;通过能力 URL 创建、或在引入创建者之前创建的会话省略此字段。
4030
4201
  */
@@ -4280,6 +4451,120 @@ export type BrowserContext = {
4280
4451
  */
4281
4452
  lastUsedAt?: string;
4282
4453
  };
4454
+ export type BrowserByobPairing = {
4455
+ /**
4456
+ * 8 位配对码,一次性、10 分钟内有效;它是秘密,只交给要配对的那个浏览器的用户。
4457
+ */
4458
+ code: string;
4459
+ /**
4460
+ * 配对码失效的时刻,UTC ISO 8601 时间。
4461
+ */
4462
+ expires_at: string;
4463
+ };
4464
+ export type BrowserByobBrowser = {
4465
+ /**
4466
+ * 对象类型,固定为 byob_browser。
4467
+ */
4468
+ object: 'byob_browser';
4469
+ /**
4470
+ * 自带浏览器 ID,以 byb_ 开头;使用配对认领或列出自带浏览器返回的 id。
4471
+ */
4472
+ id: string;
4473
+ /**
4474
+ * 浏览器的显示名称,配对时由扩展上报,1–80 个字符;可通过更新修改。
4475
+ */
4476
+ name: string;
4477
+ /**
4478
+ * 这个自带浏览器的种类,配对时由扩展上报。
4479
+ */
4480
+ browser: 'chrome' | 'edge';
4481
+ /**
4482
+ * 浏览器版本号,配对时由扩展上报。
4483
+ */
4484
+ version: string;
4485
+ /**
4486
+ * 操作系统,配对时由扩展上报。
4487
+ */
4488
+ os: string;
4489
+ /**
4490
+ * 配对用的扩展 ID。
4491
+ */
4492
+ extension_id: string;
4493
+ /**
4494
+ * 扩展的连接当前是否在线;连接对象上线之前固定为 false。
4495
+ */
4496
+ online: boolean;
4497
+ /**
4498
+ * 扩展最近一次被看到在线的时刻,UTC ISO 8601 时间。
4499
+ */
4500
+ last_seen_at: string | null;
4501
+ /**
4502
+ * 发起配对的用户标识;浏览器属于组织,这里只记录是谁配的。
4503
+ */
4504
+ created_by: string | null;
4505
+ /**
4506
+ * 浏览器完成配对的时刻,UTC ISO 8601 时间。
4507
+ */
4508
+ created_at: string;
4509
+ /**
4510
+ * 组织断开这个浏览器的时刻,UTC ISO 8601 时间;未断开时为 null。
4511
+ */
4512
+ revoked_at: string | null;
4513
+ };
4514
+ export type BrowserByobPairingView = {
4515
+ /**
4516
+ * 发起配对的组织名称,扩展的授权页显示它。
4517
+ */
4518
+ organization_name: string;
4519
+ /**
4520
+ * 发起配对的用户标识。
4521
+ */
4522
+ created_by: string | null;
4523
+ /**
4524
+ * 配对码失效的时刻,UTC ISO 8601 时间。
4525
+ */
4526
+ expires_at: string;
4527
+ };
4528
+ export type BrowserByobClaim = {
4529
+ /**
4530
+ * 要登记的浏览器种类,只支持 Chrome 和 Edge。
4531
+ */
4532
+ browser: 'chrome' | 'edge';
4533
+ /**
4534
+ * 浏览器版本号,1–64 个字符。
4535
+ */
4536
+ version: string;
4537
+ /**
4538
+ * 操作系统,1–64 个字符。
4539
+ */
4540
+ os: string;
4541
+ /**
4542
+ * 浏览器的显示名称,1–80 个字符。
4543
+ */
4544
+ name: string;
4545
+ /**
4546
+ * 扩展用 WebCrypto 生成的不可导出 ECDSA P-256 密钥对的公钥;平台只保存公钥。
4547
+ */
4548
+ public_key: string;
4549
+ /**
4550
+ * 扩展 ID,1–64 个字符。
4551
+ */
4552
+ extension_id: string;
4553
+ /**
4554
+ * 扩展保存的随机安装密钥,8–128 个字母、数字、_ 或 -;同一个 profile 带同一密钥重新配对会复用原来的浏览器,平台只保存它的哈希。省略则每次认领都是新浏览器。
4555
+ */
4556
+ install_key?: string;
4557
+ };
4558
+ export type BrowserByobClaimResult = {
4559
+ /**
4560
+ * 自带浏览器 ID,以 byb_ 开头;使用配对认领或列出自带浏览器返回的 id。
4561
+ */
4562
+ browser_id: string;
4563
+ /**
4564
+ * 扩展要拨入的 WSS 地址,属于这个浏览器自己的链接主机;连接时用配对时的私钥签名完成认证,地址本身不是凭证。
4565
+ */
4566
+ link_url: string;
4567
+ };
4283
4568
  export type BrowserStreamMessage = {
4284
4569
  event: 'snapshot';
4285
4570
  data: {
@@ -4694,7 +4979,7 @@ export type OwnFileSignedUploadResponse = {
4694
4979
  url: string;
4695
4980
  }>;
4696
4981
  /**
4697
- * Bearer URL to POST without a body after every chunk is acknowledged. Returns 201 with the file object; missing chunks return 400 and successful completion replays return 410 CAPABILITY_USED.
4982
+ * 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
4983
  */
4699
4984
  complete_url: string;
4700
4985
  /**
@@ -5192,7 +5477,7 @@ export type MediaStreamOutput = {
5192
5477
  */
5193
5478
  status: 'idle' | 'starting' | 'broadcasting' | 'errored';
5194
5479
  /**
5195
- * Why the output is errored; null in every other status.
5480
+ * Why the last connection failed, while the output is errored or starting again after a failure; null in every other status.
5196
5481
  */
5197
5482
  error: MediaStreamOutputError;
5198
5483
  /**
@@ -10584,6 +10869,10 @@ export type ApplicationCreateWorkerInput = {
10584
10869
  labels?: {
10585
10870
  [key: string]: string;
10586
10871
  };
10872
+ /**
10873
+ * 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.
10874
+ */
10875
+ access?: 'public' | 'organization';
10587
10876
  };
10588
10877
  };
10589
10878
  export type ApplicationWorker = {
@@ -10655,6 +10944,10 @@ export type ApplicationWorker = {
10655
10944
  labels: {
10656
10945
  [key: string]: string;
10657
10946
  };
10947
+ /**
10948
+ * 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.
10949
+ */
10950
+ access: 'public' | 'organization';
10658
10951
  /**
10659
10952
  * When the Worker was deleted.
10660
10953
  */
@@ -10736,6 +11029,10 @@ export type ApplicationUpdateWorkerInput = {
10736
11029
  labels?: {
10737
11030
  [key: string]: string;
10738
11031
  };
11032
+ /**
11033
+ * 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.
11034
+ */
11035
+ access?: 'public' | 'organization';
10739
11036
  };
10740
11037
  };
10741
11038
  export type ApplicationVersionPage = {
@@ -19519,6 +19816,32 @@ export type DevopsChangeMarkLastSliceRequest = {
19519
19816
  */
19520
19817
  lastSlice: boolean;
19521
19818
  };
19819
+ /**
19820
+ * Where the new slice starts. Every field is optional: with none the slice is cut from the default branch.
19821
+ */
19822
+ export type DevopsChangeSliceCreateRequest = {
19823
+ /**
19824
+ * 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.
19825
+ */
19826
+ from?: string;
19827
+ };
19828
+ /**
19829
+ * The slice that was opened.
19830
+ */
19831
+ export type DevopsChangeSliceOpened = {
19832
+ /**
19833
+ * 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`.
19834
+ */
19835
+ branch: string;
19836
+ /**
19837
+ * 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.
19838
+ */
19839
+ directory: string;
19840
+ /**
19841
+ * 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.
19842
+ */
19843
+ unit: string;
19844
+ };
19522
19845
  /**
19523
19846
  * What the pull request says. Every field is optional: without a title the change's own title is used.
19524
19847
  */
@@ -19535,6 +19858,10 @@ export type DevopsChangeOpenPullRequestRequest = {
19535
19858
  * Open it as a draft. Defaults to false.
19536
19859
  */
19537
19860
  draft?: boolean;
19861
+ /**
19862
+ * 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.
19863
+ */
19864
+ head?: string;
19538
19865
  };
19539
19866
  /**
19540
19867
  * The pull request for a change's branch.
@@ -29732,6 +30059,31 @@ export type AgentSseData = {
29732
30059
  * 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
30060
  */
29734
30061
  session_thread_id?: string | null;
30062
+ } | {
30063
+ /**
30064
+ * Event id, unique within the session. Use it to refer to this event, for example in user.tool_confirmation or user.steer.
30065
+ */
30066
+ id: string;
30067
+ /**
30068
+ * Always `session.status_preparing`. A device session's local agent is starting; stage says how far it got.
30069
+ */
30070
+ type: 'session.status_preparing';
30071
+ /**
30072
+ * RFC 3339 time at which the server processed the event; null while a queued input has not started running.
30073
+ */
30074
+ processed_at: string;
30075
+ /**
30076
+ * How far the start got.
30077
+ */
30078
+ stage: 'launching' | 'loading' | 'ready';
30079
+ /**
30080
+ * 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.
30081
+ */
30082
+ message_id?: string;
30083
+ /**
30084
+ * 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.
30085
+ */
30086
+ session_thread_id?: string | null;
29735
30087
  } | {
29736
30088
  /**
29737
30089
  * Always `event_start`. Preview that an event of the requested delta types has started.
@@ -30066,7 +30418,7 @@ export type MediaStreamEvent = {
30066
30418
  */
30067
30419
  seq: number;
30068
30420
  /**
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).
30421
+ * 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
30422
  */
30071
30423
  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
30424
  /**
@@ -30156,7 +30508,7 @@ export type MediaPipelineAlertRule = {
30156
30508
  [key: string]: unknown;
30157
30509
  };
30158
30510
  /**
30159
- * Why an errored output stopped trying.
30511
+ * Why an output is errored, or is trying again after a failure.
30160
30512
  */
30161
30513
  export type MediaStreamOutputError = {
30162
30514
  /**
@@ -51934,6 +52286,10 @@ export type DevopsLockId = string;
51934
52286
  * 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
52287
  */
51936
52288
  export type DevopsChangeIdPath = string;
52289
+ /**
52290
+ * 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.
52291
+ */
52292
+ export type DevopsChangePathParam = string;
51937
52293
  /**
51938
52294
  * 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
52295
  */
@@ -53577,6 +53933,31 @@ export type ListAgentEventsResponses = {
53577
53933
  * 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
53934
  */
53579
53935
  session_thread_id?: string | null;
53936
+ } | {
53937
+ /**
53938
+ * Event id, unique within the session. Use it to refer to this event, for example in user.tool_confirmation or user.steer.
53939
+ */
53940
+ id: string;
53941
+ /**
53942
+ * Always `session.status_preparing`. A device session's local agent is starting; stage says how far it got.
53943
+ */
53944
+ type: 'session.status_preparing';
53945
+ /**
53946
+ * RFC 3339 time at which the server processed the event; null while a queued input has not started running.
53947
+ */
53948
+ processed_at: string;
53949
+ /**
53950
+ * How far the start got.
53951
+ */
53952
+ stage: 'launching' | 'loading' | 'ready';
53953
+ /**
53954
+ * 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.
53955
+ */
53956
+ message_id?: string;
53957
+ /**
53958
+ * 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.
53959
+ */
53960
+ session_thread_id?: string | null;
53580
53961
  }>;
53581
53962
  /**
53582
53963
  * Opaque cursor for the next page: pass it unchanged as page to continue. Null when this is the last page.
@@ -53997,6 +54378,86 @@ export type ListAgentInboxLettersResponses = {
53997
54378
  };
53998
54379
  };
53999
54380
  export type ListAgentInboxLettersResponse = ListAgentInboxLettersResponses[keyof ListAgentInboxLettersResponses];
54381
+ export type ListAgentDeviceLocalSessionsData = {
54382
+ body?: never;
54383
+ path: {
54384
+ /**
54385
+ * 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_….
54386
+ */
54387
+ agent_id: string;
54388
+ /**
54389
+ * The paired desktop device (byd_ and 26 hex characters) whose sessions to list; you must be the person who paired it.
54390
+ */
54391
+ device_id: string;
54392
+ };
54393
+ query: {
54394
+ /**
54395
+ * The absolute directory on the device, exactly as the device registered it and bound it to this agent.
54396
+ */
54397
+ cwd: string;
54398
+ /**
54399
+ * The next_cursor of the previous page; leave it out for the first page.
54400
+ */
54401
+ cursor?: string;
54402
+ };
54403
+ url: '/agent/v1/agents/{agent_id}/devices/{device_id}/local-sessions';
54404
+ };
54405
+ export type ListAgentDeviceLocalSessionsErrors = {
54406
+ /**
54407
+ * 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.
54408
+ */
54409
+ 400: unknown;
54410
+ /**
54411
+ * Authenticate with your own API key or a console session; an agent's or robot's credential cannot list a person's device.
54412
+ */
54413
+ 401: unknown;
54414
+ /**
54415
+ * 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.
54416
+ */
54417
+ 403: AgentError;
54418
+ /**
54419
+ * AGENT_NOT_FOUND: no agent with this reference exists in your organization; list agents with agents.list.
54420
+ */
54421
+ 404: unknown;
54422
+ /**
54423
+ * 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.
54424
+ */
54425
+ 503: unknown;
54426
+ };
54427
+ export type ListAgentDeviceLocalSessionsError = ListAgentDeviceLocalSessionsErrors[keyof ListAgentDeviceLocalSessionsErrors];
54428
+ export type ListAgentDeviceLocalSessionsResponses = {
54429
+ /**
54430
+ * One page of the device's sessions for that directory, newest first.
54431
+ */
54432
+ 200: {
54433
+ /**
54434
+ * The sessions of this page; empty when the directory has none.
54435
+ */
54436
+ data: Array<{
54437
+ /**
54438
+ * The Claude Code session id on the device; pass it as runtime.resume_session_id when creating a session to continue it.
54439
+ */
54440
+ id: string;
54441
+ /**
54442
+ * The session's title as Claude Code shows it; empty when it has none.
54443
+ */
54444
+ title: string;
54445
+ /**
54446
+ * When the session was last written to, RFC 3339; sessions are ordered newest first.
54447
+ */
54448
+ updated_at: string | null;
54449
+ /**
54450
+ * The directory the session ran in on the device.
54451
+ */
54452
+ cwd: string | null;
54453
+ }>;
54454
+ /**
54455
+ * Pass as cursor for the next page; null on the last page.
54456
+ */
54457
+ next_cursor: string | null;
54458
+ };
54459
+ };
54460
+ export type ListAgentDeviceLocalSessionsResponse = ListAgentDeviceLocalSessionsResponses[keyof ListAgentDeviceLocalSessionsResponses];
54000
54461
  export type CreateAgentLoginIntentData = {
54001
54462
  body?: never;
54002
54463
  path?: never;
@@ -54007,32 +54468,33 @@ export type CreateAgentLoginIntentErrors = {
54007
54468
  /**
54008
54469
  * 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
54470
  */
54010
- 400: unknown;
54471
+ 400: AgentError;
54011
54472
  /**
54012
54473
  * Authentication required: send the platform session's own credential.
54013
54474
  */
54014
- 401: unknown;
54475
+ 401: AgentError;
54015
54476
  /**
54016
54477
  * 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
54478
  */
54018
- 403: unknown;
54479
+ 403: AgentError;
54019
54480
  /**
54020
54481
  * AGENT_NOT_FOUND: the agent the credential names does not exist in this organization; check the agent the session was opened for.
54021
54482
  */
54022
- 404: unknown;
54483
+ 404: AgentError;
54023
54484
  /**
54024
54485
  * 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
54486
  */
54026
- 409: unknown;
54487
+ 409: AgentError;
54027
54488
  /**
54028
54489
  * UPSTREAM_UNAVAILABLE: the agent service or identity could not answer; retry once the service is back.
54029
54490
  */
54030
- 502: unknown;
54491
+ 502: AgentError;
54031
54492
  /**
54032
54493
  * UNAVAILABLE: identity is not configured in this deployment.
54033
54494
  */
54034
- 503: unknown;
54495
+ 503: AgentError;
54035
54496
  };
54497
+ export type CreateAgentLoginIntentError = CreateAgentLoginIntentErrors[keyof CreateAgentLoginIntentErrors];
54036
54498
  export type CreateAgentLoginIntentResponses = {
54037
54499
  /**
54038
54500
  * The one-time login code and when it stops working; the code is answered once and never again.
@@ -54896,6 +55358,15 @@ export type ApplyAgentVersionResponses = {
54896
55358
  name: string;
54897
55359
  }>;
54898
55360
  };
55361
+ /**
55362
+ * 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.
55363
+ */
55364
+ browser?: {
55365
+ /**
55366
+ * A paired browser's id (byb_ and 26 lowercase hex characters), from browser.byob.browsers.list.
55367
+ */
55368
+ byob: string;
55369
+ } | null;
54899
55370
  /**
54900
55371
  * 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
55372
  */
@@ -56147,6 +56618,15 @@ export type UnarchiveAgentResponses = {
56147
56618
  name: string;
56148
56619
  }>;
56149
56620
  };
56621
+ /**
56622
+ * 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.
56623
+ */
56624
+ browser?: {
56625
+ /**
56626
+ * A paired browser's id (byb_ and 26 lowercase hex characters), from browser.byob.browsers.list.
56627
+ */
56628
+ byob: string;
56629
+ } | null;
56150
56630
  /**
56151
56631
  * 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
56632
  */
@@ -68777,17 +69257,21 @@ export type BrowserListSessionsErrors = {
68777
69257
  */
68778
69258
  402: BrowserError;
68779
69259
  /**
68780
- * PERMISSION_DENIED / ACCOUNT_SUSPENDED
69260
+ * PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
68781
69261
  */
68782
69262
  403: BrowserError;
68783
69263
  /**
68784
- * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
69264
+ * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
68785
69265
  */
68786
69266
  404: BrowserError;
68787
69267
  /**
68788
- * SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
69268
+ * SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
68789
69269
  */
68790
69270
  409: BrowserError;
69271
+ /**
69272
+ * BROWSER_REVOKED
69273
+ */
69274
+ 410: BrowserError;
68791
69275
  /**
68792
69276
  * ACTION_RESULT_TOO_LARGE
68793
69277
  */
@@ -68809,7 +69293,7 @@ export type BrowserListSessionsErrors = {
68809
69293
  */
68810
69294
  502: BrowserError;
68811
69295
  /**
68812
- * SERVICE_UNAVAILABLE
69296
+ * BROWSER_OFFLINE / SERVICE_UNAVAILABLE
68813
69297
  */
68814
69298
  503: BrowserError;
68815
69299
  /**
@@ -68854,17 +69338,21 @@ export type BrowserCreateSessionErrors = {
68854
69338
  */
68855
69339
  402: BrowserError;
68856
69340
  /**
68857
- * PERMISSION_DENIED / ACCOUNT_SUSPENDED
69341
+ * PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
68858
69342
  */
68859
69343
  403: BrowserError;
68860
69344
  /**
68861
- * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
69345
+ * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
68862
69346
  */
68863
69347
  404: BrowserError;
68864
69348
  /**
68865
- * SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
69349
+ * SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
68866
69350
  */
68867
69351
  409: BrowserError;
69352
+ /**
69353
+ * BROWSER_REVOKED
69354
+ */
69355
+ 410: BrowserError;
68868
69356
  /**
68869
69357
  * ACTION_RESULT_TOO_LARGE
68870
69358
  */
@@ -68886,7 +69374,7 @@ export type BrowserCreateSessionErrors = {
68886
69374
  */
68887
69375
  502: BrowserError;
68888
69376
  /**
68889
- * SERVICE_UNAVAILABLE
69377
+ * BROWSER_OFFLINE / SERVICE_UNAVAILABLE
68890
69378
  */
68891
69379
  503: BrowserError;
68892
69380
  /**
@@ -68896,6 +69384,10 @@ export type BrowserCreateSessionErrors = {
68896
69384
  };
68897
69385
  export type BrowserCreateSessionError = BrowserCreateSessionErrors[keyof BrowserCreateSessionErrors];
68898
69386
  export type BrowserCreateSessionResponses = {
69387
+ /**
69388
+ * 请求成功。
69389
+ */
69390
+ 200: BrowserSessionCreateResult;
68899
69391
  /**
68900
69392
  * 请求成功。
68901
69393
  */
@@ -68932,17 +69424,21 @@ export type BrowserGetSessionErrors = {
68932
69424
  */
68933
69425
  402: BrowserError;
68934
69426
  /**
68935
- * PERMISSION_DENIED / ACCOUNT_SUSPENDED
69427
+ * PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
68936
69428
  */
68937
69429
  403: BrowserError;
68938
69430
  /**
68939
- * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
69431
+ * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
68940
69432
  */
68941
69433
  404: BrowserError;
68942
69434
  /**
68943
- * SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
69435
+ * SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
68944
69436
  */
68945
69437
  409: BrowserError;
69438
+ /**
69439
+ * BROWSER_REVOKED
69440
+ */
69441
+ 410: BrowserError;
68946
69442
  /**
68947
69443
  * ACTION_RESULT_TOO_LARGE
68948
69444
  */
@@ -68964,7 +69460,7 @@ export type BrowserGetSessionErrors = {
68964
69460
  */
68965
69461
  502: BrowserError;
68966
69462
  /**
68967
- * SERVICE_UNAVAILABLE
69463
+ * BROWSER_OFFLINE / SERVICE_UNAVAILABLE
68968
69464
  */
68969
69465
  503: BrowserError;
68970
69466
  /**
@@ -69010,17 +69506,21 @@ export type BrowserCloseSessionErrors = {
69010
69506
  */
69011
69507
  402: BrowserError;
69012
69508
  /**
69013
- * PERMISSION_DENIED / ACCOUNT_SUSPENDED
69509
+ * PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
69014
69510
  */
69015
69511
  403: BrowserError;
69016
69512
  /**
69017
- * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
69513
+ * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
69018
69514
  */
69019
69515
  404: BrowserError;
69020
69516
  /**
69021
- * SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
69517
+ * SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
69022
69518
  */
69023
69519
  409: BrowserError;
69520
+ /**
69521
+ * BROWSER_REVOKED
69522
+ */
69523
+ 410: BrowserError;
69024
69524
  /**
69025
69525
  * ACTION_RESULT_TOO_LARGE
69026
69526
  */
@@ -69042,7 +69542,7 @@ export type BrowserCloseSessionErrors = {
69042
69542
  */
69043
69543
  502: BrowserError;
69044
69544
  /**
69045
- * SERVICE_UNAVAILABLE
69545
+ * BROWSER_OFFLINE / SERVICE_UNAVAILABLE
69046
69546
  */
69047
69547
  503: BrowserError;
69048
69548
  /**
@@ -69083,17 +69583,21 @@ export type BrowserGetDebugErrors = {
69083
69583
  */
69084
69584
  402: BrowserError;
69085
69585
  /**
69086
- * PERMISSION_DENIED / ACCOUNT_SUSPENDED
69586
+ * PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
69087
69587
  */
69088
69588
  403: BrowserError;
69089
69589
  /**
69090
- * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
69590
+ * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
69091
69591
  */
69092
69592
  404: BrowserError;
69093
69593
  /**
69094
- * SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
69594
+ * SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
69095
69595
  */
69096
69596
  409: BrowserError;
69597
+ /**
69598
+ * BROWSER_REVOKED
69599
+ */
69600
+ 410: BrowserError;
69097
69601
  /**
69098
69602
  * ACTION_RESULT_TOO_LARGE
69099
69603
  */
@@ -69115,7 +69619,7 @@ export type BrowserGetDebugErrors = {
69115
69619
  */
69116
69620
  502: BrowserError;
69117
69621
  /**
69118
- * SERVICE_UNAVAILABLE
69622
+ * BROWSER_OFFLINE / SERVICE_UNAVAILABLE
69119
69623
  */
69120
69624
  503: BrowserError;
69121
69625
  /**
@@ -69169,17 +69673,21 @@ export type BrowserListEventsErrors = {
69169
69673
  */
69170
69674
  402: BrowserError;
69171
69675
  /**
69172
- * PERMISSION_DENIED / ACCOUNT_SUSPENDED
69676
+ * PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
69173
69677
  */
69174
69678
  403: BrowserError;
69175
69679
  /**
69176
- * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
69680
+ * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
69177
69681
  */
69178
69682
  404: BrowserError;
69179
69683
  /**
69180
- * SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
69684
+ * SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
69181
69685
  */
69182
69686
  409: BrowserError;
69687
+ /**
69688
+ * BROWSER_REVOKED
69689
+ */
69690
+ 410: BrowserError;
69183
69691
  /**
69184
69692
  * ACTION_RESULT_TOO_LARGE
69185
69693
  */
@@ -69201,7 +69709,7 @@ export type BrowserListEventsErrors = {
69201
69709
  */
69202
69710
  502: BrowserError;
69203
69711
  /**
69204
- * SERVICE_UNAVAILABLE
69712
+ * BROWSER_OFFLINE / SERVICE_UNAVAILABLE
69205
69713
  */
69206
69714
  503: BrowserError;
69207
69715
  /**
@@ -69448,17 +69956,21 @@ export type BrowserRunPageActionErrors = {
69448
69956
  */
69449
69957
  402: BrowserError;
69450
69958
  /**
69451
- * PERMISSION_DENIED / ACCOUNT_SUSPENDED
69959
+ * PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
69452
69960
  */
69453
69961
  403: BrowserError;
69454
69962
  /**
69455
- * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
69963
+ * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
69456
69964
  */
69457
69965
  404: BrowserError;
69458
69966
  /**
69459
- * SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
69967
+ * SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
69460
69968
  */
69461
69969
  409: BrowserError;
69970
+ /**
69971
+ * BROWSER_REVOKED
69972
+ */
69973
+ 410: BrowserError;
69462
69974
  /**
69463
69975
  * ACTION_RESULT_TOO_LARGE
69464
69976
  */
@@ -69480,7 +69992,7 @@ export type BrowserRunPageActionErrors = {
69480
69992
  */
69481
69993
  502: BrowserError;
69482
69994
  /**
69483
- * SERVICE_UNAVAILABLE
69995
+ * BROWSER_OFFLINE / SERVICE_UNAVAILABLE
69484
69996
  */
69485
69997
  503: BrowserError;
69486
69998
  /**
@@ -69666,17 +70178,21 @@ export type BrowserRequestHandoffErrors = {
69666
70178
  */
69667
70179
  402: BrowserError;
69668
70180
  /**
69669
- * PERMISSION_DENIED / ACCOUNT_SUSPENDED
70181
+ * PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
69670
70182
  */
69671
70183
  403: BrowserError;
69672
70184
  /**
69673
- * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
70185
+ * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
69674
70186
  */
69675
70187
  404: BrowserError;
69676
70188
  /**
69677
- * SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
70189
+ * SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
69678
70190
  */
69679
70191
  409: BrowserError;
70192
+ /**
70193
+ * BROWSER_REVOKED
70194
+ */
70195
+ 410: BrowserError;
69680
70196
  /**
69681
70197
  * ACTION_RESULT_TOO_LARGE
69682
70198
  */
@@ -69698,7 +70214,7 @@ export type BrowserRequestHandoffErrors = {
69698
70214
  */
69699
70215
  502: BrowserError;
69700
70216
  /**
69701
- * SERVICE_UNAVAILABLE
70217
+ * BROWSER_OFFLINE / SERVICE_UNAVAILABLE
69702
70218
  */
69703
70219
  503: BrowserError;
69704
70220
  /**
@@ -69739,17 +70255,21 @@ export type BrowserCompleteHandoffErrors = {
69739
70255
  */
69740
70256
  402: BrowserError;
69741
70257
  /**
69742
- * PERMISSION_DENIED / ACCOUNT_SUSPENDED
70258
+ * PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
69743
70259
  */
69744
70260
  403: BrowserError;
69745
70261
  /**
69746
- * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
70262
+ * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
69747
70263
  */
69748
70264
  404: BrowserError;
69749
70265
  /**
69750
- * SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
70266
+ * SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
69751
70267
  */
69752
70268
  409: BrowserError;
70269
+ /**
70270
+ * BROWSER_REVOKED
70271
+ */
70272
+ 410: BrowserError;
69753
70273
  /**
69754
70274
  * ACTION_RESULT_TOO_LARGE
69755
70275
  */
@@ -69771,7 +70291,7 @@ export type BrowserCompleteHandoffErrors = {
69771
70291
  */
69772
70292
  502: BrowserError;
69773
70293
  /**
69774
- * SERVICE_UNAVAILABLE
70294
+ * BROWSER_OFFLINE / SERVICE_UNAVAILABLE
69775
70295
  */
69776
70296
  503: BrowserError;
69777
70297
  /**
@@ -69821,268 +70341,21 @@ export type BrowserViewerHeartbeatErrors = {
69821
70341
  */
69822
70342
  402: BrowserError;
69823
70343
  /**
69824
- * PERMISSION_DENIED / ACCOUNT_SUSPENDED
69825
- */
69826
- 403: BrowserError;
69827
- /**
69828
- * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
69829
- */
69830
- 404: BrowserError;
69831
- /**
69832
- * SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
69833
- */
69834
- 409: BrowserError;
69835
- /**
69836
- * ACTION_RESULT_TOO_LARGE
69837
- */
69838
- 413: BrowserError;
69839
- /**
69840
- * CONCURRENCY_LIMIT / RATE_LIMITED / PROVIDER_CAPACITY
69841
- */
69842
- 429: BrowserError;
69843
- /**
69844
- * INTERNAL
69845
- */
69846
- 500: BrowserError;
69847
- /**
69848
- * NOT_IMPLEMENTED / PROVIDER_UNSUPPORTED
69849
- */
69850
- 501: BrowserError;
69851
- /**
69852
- * PROVIDER_FAILED
69853
- */
69854
- 502: BrowserError;
69855
- /**
69856
- * SERVICE_UNAVAILABLE
69857
- */
69858
- 503: BrowserError;
69859
- /**
69860
- * ACTION_TIMEOUT
69861
- */
69862
- 504: BrowserError;
69863
- };
69864
- export type BrowserViewerHeartbeatError = BrowserViewerHeartbeatErrors[keyof BrowserViewerHeartbeatErrors];
69865
- export type BrowserViewerHeartbeatResponses = {
69866
- /**
69867
- * 请求成功。
69868
- */
69869
- 200: {
69870
- /**
69871
- * 心跳已被接受,成功时固定返回 true。
69872
- */
69873
- ok: true;
69874
- };
69875
- };
69876
- export type BrowserViewerHeartbeatResponse = BrowserViewerHeartbeatResponses[keyof BrowserViewerHeartbeatResponses];
69877
- export type BrowserGetSessionFrameData = {
69878
- body?: never;
69879
- path: {
69880
- /**
69881
- * 浏览器会话 ID;使用创建或列出会话返回的 id,以 bss_ 开头。
69882
- */
69883
- sessionId: string;
69884
- };
69885
- query?: never;
69886
- url: '/browser/v1/sessions/{sessionId}/frame';
69887
- };
69888
- export type BrowserGetSessionFrameErrors = {
69889
- /**
69890
- * INVALID_PARAMS / INVALID_FILTER / INVALID_PAGE_TOKEN
69891
- */
69892
- 400: BrowserError;
69893
- /**
69894
- * UNAUTHENTICATED / CONNECT_SIGNATURE_INVALID
69895
- */
69896
- 401: BrowserError;
69897
- /**
69898
- * INSUFFICIENT_BALANCE / QUOTA_EXHAUSTED
69899
- */
69900
- 402: BrowserError;
69901
- /**
69902
- * PERMISSION_DENIED / ACCOUNT_SUSPENDED
69903
- */
69904
- 403: BrowserError;
69905
- /**
69906
- * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
69907
- */
69908
- 404: BrowserError;
69909
- /**
69910
- * SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
69911
- */
69912
- 409: BrowserError;
69913
- /**
69914
- * ACTION_RESULT_TOO_LARGE
69915
- */
69916
- 413: BrowserError;
69917
- /**
69918
- * CONCURRENCY_LIMIT / RATE_LIMITED / PROVIDER_CAPACITY
69919
- */
69920
- 429: BrowserError;
69921
- /**
69922
- * INTERNAL
69923
- */
69924
- 500: BrowserError;
69925
- /**
69926
- * NOT_IMPLEMENTED / PROVIDER_UNSUPPORTED
69927
- */
69928
- 501: BrowserError;
69929
- /**
69930
- * PROVIDER_FAILED
69931
- */
69932
- 502: BrowserError;
69933
- /**
69934
- * SERVICE_UNAVAILABLE
69935
- */
69936
- 503: BrowserError;
69937
- /**
69938
- * ACTION_TIMEOUT
69939
- */
69940
- 504: BrowserError;
69941
- };
69942
- export type BrowserGetSessionFrameError = BrowserGetSessionFrameErrors[keyof BrowserGetSessionFrameErrors];
69943
- export type BrowserGetSessionFrameResponses = {
69944
- /**
69945
- * JPEG 画面帧,最多 2 MiB。
69946
- */
69947
- 200: Blob | File;
69948
- };
69949
- export type BrowserGetSessionFrameResponse = BrowserGetSessionFrameResponses[keyof BrowserGetSessionFrameResponses];
69950
- export type BrowserListContextsData = {
69951
- body?: never;
69952
- path?: never;
69953
- query?: {
69954
- /**
69955
- * 按登录态名称精确匹配;名称在当前账户内唯一,所以最多返回一条。省略时列出全部登录态。
69956
- */
69957
- name?: string;
69958
- /**
69959
- * 登录态 ID;使用创建或列出登录态返回的 id,以 bsc_ 开头。
69960
- */
69961
- cursor?: string;
69962
- /**
69963
- * 每页最多返回的登录态数量;默认 25,范围 1–100。
69964
- */
69965
- limit?: number;
69966
- };
69967
- url: '/browser/v1/contexts';
69968
- };
69969
- export type BrowserListContextsErrors = {
69970
- /**
69971
- * INVALID_PARAMS / INVALID_FILTER / INVALID_PAGE_TOKEN
69972
- */
69973
- 400: BrowserError;
69974
- /**
69975
- * UNAUTHENTICATED / CONNECT_SIGNATURE_INVALID
69976
- */
69977
- 401: BrowserError;
69978
- /**
69979
- * INSUFFICIENT_BALANCE / QUOTA_EXHAUSTED
69980
- */
69981
- 402: BrowserError;
69982
- /**
69983
- * PERMISSION_DENIED / ACCOUNT_SUSPENDED
70344
+ * PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
69984
70345
  */
69985
70346
  403: BrowserError;
69986
70347
  /**
69987
- * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
70348
+ * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
69988
70349
  */
69989
70350
  404: BrowserError;
69990
70351
  /**
69991
- * SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
70352
+ * SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
69992
70353
  */
69993
70354
  409: BrowserError;
69994
70355
  /**
69995
- * ACTION_RESULT_TOO_LARGE
69996
- */
69997
- 413: BrowserError;
69998
- /**
69999
- * CONCURRENCY_LIMIT / RATE_LIMITED / PROVIDER_CAPACITY
70000
- */
70001
- 429: BrowserError;
70002
- /**
70003
- * INTERNAL
70004
- */
70005
- 500: BrowserError;
70006
- /**
70007
- * NOT_IMPLEMENTED / PROVIDER_UNSUPPORTED
70008
- */
70009
- 501: BrowserError;
70010
- /**
70011
- * PROVIDER_FAILED
70012
- */
70013
- 502: BrowserError;
70014
- /**
70015
- * SERVICE_UNAVAILABLE
70016
- */
70017
- 503: BrowserError;
70018
- /**
70019
- * ACTION_TIMEOUT
70356
+ * BROWSER_REVOKED
70020
70357
  */
70021
- 504: BrowserError;
70022
- };
70023
- export type BrowserListContextsError = BrowserListContextsErrors[keyof BrowserListContextsErrors];
70024
- export type BrowserListContextsResponses = {
70025
- /**
70026
- * 分页查询结果,包含本页记录和下一页游标。
70027
- */
70028
- 200: {
70029
- /**
70030
- * 本页查询匹配的记录;没有匹配项时为空数组。
70031
- */
70032
- data: Array<BrowserContext>;
70033
- /**
70034
- * 下一页游标;原样传入 cursor,null 表示没有更多结果。
70035
- */
70036
- nextCursor: string | null;
70037
- };
70038
- };
70039
- export type BrowserListContextsResponse = BrowserListContextsResponses[keyof BrowserListContextsResponses];
70040
- export type BrowserCreateContextData = {
70041
- body: {
70042
- /**
70043
- * 兼容项目字段;传入值被忽略,创建结果的 projectId 固定为 default。
70044
- */
70045
- projectId?: string;
70046
- /**
70047
- * 登录态名称;非空时为 1–128 个 ASCII 字母、数字或 . _ : -,在当前账户内唯一;空字符串表示不设名称或清除名称。
70048
- */
70049
- name?: '' | unknown;
70050
- /**
70051
- * 自定义字符串标签;最多 32 项,键最多 128 个 UTF-8 字节,值最多 1024 个 UTF-8 字节。
70052
- */
70053
- labels?: {
70054
- [key: string]: string;
70055
- };
70056
- };
70057
- path?: never;
70058
- query?: never;
70059
- url: '/browser/v1/contexts';
70060
- };
70061
- export type BrowserCreateContextErrors = {
70062
- /**
70063
- * INVALID_PARAMS / INVALID_FILTER / INVALID_PAGE_TOKEN
70064
- */
70065
- 400: BrowserError;
70066
- /**
70067
- * UNAUTHENTICATED / CONNECT_SIGNATURE_INVALID
70068
- */
70069
- 401: BrowserError;
70070
- /**
70071
- * INSUFFICIENT_BALANCE / QUOTA_EXHAUSTED
70072
- */
70073
- 402: BrowserError;
70074
- /**
70075
- * PERMISSION_DENIED / ACCOUNT_SUSPENDED
70076
- */
70077
- 403: BrowserError;
70078
- /**
70079
- * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
70080
- */
70081
- 404: BrowserError;
70082
- /**
70083
- * SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
70084
- */
70085
- 409: BrowserError;
70358
+ 410: BrowserError;
70086
70359
  /**
70087
70360
  * ACTION_RESULT_TOO_LARGE
70088
70361
  */
@@ -70104,7 +70377,270 @@ export type BrowserCreateContextErrors = {
70104
70377
  */
70105
70378
  502: BrowserError;
70106
70379
  /**
70107
- * SERVICE_UNAVAILABLE
70380
+ * BROWSER_OFFLINE / SERVICE_UNAVAILABLE
70381
+ */
70382
+ 503: BrowserError;
70383
+ /**
70384
+ * ACTION_TIMEOUT
70385
+ */
70386
+ 504: BrowserError;
70387
+ };
70388
+ export type BrowserViewerHeartbeatError = BrowserViewerHeartbeatErrors[keyof BrowserViewerHeartbeatErrors];
70389
+ export type BrowserViewerHeartbeatResponses = {
70390
+ /**
70391
+ * 请求成功。
70392
+ */
70393
+ 200: {
70394
+ /**
70395
+ * 心跳已被接受,成功时固定返回 true。
70396
+ */
70397
+ ok: true;
70398
+ };
70399
+ };
70400
+ export type BrowserViewerHeartbeatResponse = BrowserViewerHeartbeatResponses[keyof BrowserViewerHeartbeatResponses];
70401
+ export type BrowserGetSessionFrameData = {
70402
+ body?: never;
70403
+ path: {
70404
+ /**
70405
+ * 浏览器会话 ID;使用创建或列出会话返回的 id,以 bss_ 开头。
70406
+ */
70407
+ sessionId: string;
70408
+ };
70409
+ query?: never;
70410
+ url: '/browser/v1/sessions/{sessionId}/frame';
70411
+ };
70412
+ export type BrowserGetSessionFrameErrors = {
70413
+ /**
70414
+ * INVALID_PARAMS / INVALID_FILTER / INVALID_PAGE_TOKEN
70415
+ */
70416
+ 400: BrowserError;
70417
+ /**
70418
+ * UNAUTHENTICATED / CONNECT_SIGNATURE_INVALID
70419
+ */
70420
+ 401: BrowserError;
70421
+ /**
70422
+ * INSUFFICIENT_BALANCE / QUOTA_EXHAUSTED
70423
+ */
70424
+ 402: BrowserError;
70425
+ /**
70426
+ * PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
70427
+ */
70428
+ 403: BrowserError;
70429
+ /**
70430
+ * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
70431
+ */
70432
+ 404: BrowserError;
70433
+ /**
70434
+ * SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
70435
+ */
70436
+ 409: BrowserError;
70437
+ /**
70438
+ * BROWSER_REVOKED
70439
+ */
70440
+ 410: BrowserError;
70441
+ /**
70442
+ * ACTION_RESULT_TOO_LARGE
70443
+ */
70444
+ 413: BrowserError;
70445
+ /**
70446
+ * CONCURRENCY_LIMIT / RATE_LIMITED / PROVIDER_CAPACITY
70447
+ */
70448
+ 429: BrowserError;
70449
+ /**
70450
+ * INTERNAL
70451
+ */
70452
+ 500: BrowserError;
70453
+ /**
70454
+ * NOT_IMPLEMENTED / PROVIDER_UNSUPPORTED
70455
+ */
70456
+ 501: BrowserError;
70457
+ /**
70458
+ * PROVIDER_FAILED
70459
+ */
70460
+ 502: BrowserError;
70461
+ /**
70462
+ * BROWSER_OFFLINE / SERVICE_UNAVAILABLE
70463
+ */
70464
+ 503: BrowserError;
70465
+ /**
70466
+ * ACTION_TIMEOUT
70467
+ */
70468
+ 504: BrowserError;
70469
+ };
70470
+ export type BrowserGetSessionFrameError = BrowserGetSessionFrameErrors[keyof BrowserGetSessionFrameErrors];
70471
+ export type BrowserGetSessionFrameResponses = {
70472
+ /**
70473
+ * JPEG 画面帧,最多 2 MiB。
70474
+ */
70475
+ 200: Blob | File;
70476
+ };
70477
+ export type BrowserGetSessionFrameResponse = BrowserGetSessionFrameResponses[keyof BrowserGetSessionFrameResponses];
70478
+ export type BrowserListContextsData = {
70479
+ body?: never;
70480
+ path?: never;
70481
+ query?: {
70482
+ /**
70483
+ * 按登录态名称精确匹配;名称在当前账户内唯一,所以最多返回一条。省略时列出全部登录态。
70484
+ */
70485
+ name?: string;
70486
+ /**
70487
+ * 登录态 ID;使用创建或列出登录态返回的 id,以 bsc_ 开头。
70488
+ */
70489
+ cursor?: string;
70490
+ /**
70491
+ * 每页最多返回的登录态数量;默认 25,范围 1–100。
70492
+ */
70493
+ limit?: number;
70494
+ };
70495
+ url: '/browser/v1/contexts';
70496
+ };
70497
+ export type BrowserListContextsErrors = {
70498
+ /**
70499
+ * INVALID_PARAMS / INVALID_FILTER / INVALID_PAGE_TOKEN
70500
+ */
70501
+ 400: BrowserError;
70502
+ /**
70503
+ * UNAUTHENTICATED / CONNECT_SIGNATURE_INVALID
70504
+ */
70505
+ 401: BrowserError;
70506
+ /**
70507
+ * INSUFFICIENT_BALANCE / QUOTA_EXHAUSTED
70508
+ */
70509
+ 402: BrowserError;
70510
+ /**
70511
+ * PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
70512
+ */
70513
+ 403: BrowserError;
70514
+ /**
70515
+ * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
70516
+ */
70517
+ 404: BrowserError;
70518
+ /**
70519
+ * SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
70520
+ */
70521
+ 409: BrowserError;
70522
+ /**
70523
+ * BROWSER_REVOKED
70524
+ */
70525
+ 410: BrowserError;
70526
+ /**
70527
+ * ACTION_RESULT_TOO_LARGE
70528
+ */
70529
+ 413: BrowserError;
70530
+ /**
70531
+ * CONCURRENCY_LIMIT / RATE_LIMITED / PROVIDER_CAPACITY
70532
+ */
70533
+ 429: BrowserError;
70534
+ /**
70535
+ * INTERNAL
70536
+ */
70537
+ 500: BrowserError;
70538
+ /**
70539
+ * NOT_IMPLEMENTED / PROVIDER_UNSUPPORTED
70540
+ */
70541
+ 501: BrowserError;
70542
+ /**
70543
+ * PROVIDER_FAILED
70544
+ */
70545
+ 502: BrowserError;
70546
+ /**
70547
+ * BROWSER_OFFLINE / SERVICE_UNAVAILABLE
70548
+ */
70549
+ 503: BrowserError;
70550
+ /**
70551
+ * ACTION_TIMEOUT
70552
+ */
70553
+ 504: BrowserError;
70554
+ };
70555
+ export type BrowserListContextsError = BrowserListContextsErrors[keyof BrowserListContextsErrors];
70556
+ export type BrowserListContextsResponses = {
70557
+ /**
70558
+ * 分页查询结果,包含本页记录和下一页游标。
70559
+ */
70560
+ 200: {
70561
+ /**
70562
+ * 本页查询匹配的记录;没有匹配项时为空数组。
70563
+ */
70564
+ data: Array<BrowserContext>;
70565
+ /**
70566
+ * 下一页游标;原样传入 cursor,null 表示没有更多结果。
70567
+ */
70568
+ nextCursor: string | null;
70569
+ };
70570
+ };
70571
+ export type BrowserListContextsResponse = BrowserListContextsResponses[keyof BrowserListContextsResponses];
70572
+ export type BrowserCreateContextData = {
70573
+ body: {
70574
+ /**
70575
+ * 兼容项目字段;传入值被忽略,创建结果的 projectId 固定为 default。
70576
+ */
70577
+ projectId?: string;
70578
+ /**
70579
+ * 登录态名称;非空时为 1–128 个 ASCII 字母、数字或 . _ : -,在当前账户内唯一;空字符串表示不设名称或清除名称。
70580
+ */
70581
+ name?: '' | unknown;
70582
+ /**
70583
+ * 自定义字符串标签;最多 32 项,键最多 128 个 UTF-8 字节,值最多 1024 个 UTF-8 字节。
70584
+ */
70585
+ labels?: {
70586
+ [key: string]: string;
70587
+ };
70588
+ };
70589
+ path?: never;
70590
+ query?: never;
70591
+ url: '/browser/v1/contexts';
70592
+ };
70593
+ export type BrowserCreateContextErrors = {
70594
+ /**
70595
+ * INVALID_PARAMS / INVALID_FILTER / INVALID_PAGE_TOKEN
70596
+ */
70597
+ 400: BrowserError;
70598
+ /**
70599
+ * UNAUTHENTICATED / CONNECT_SIGNATURE_INVALID
70600
+ */
70601
+ 401: BrowserError;
70602
+ /**
70603
+ * INSUFFICIENT_BALANCE / QUOTA_EXHAUSTED
70604
+ */
70605
+ 402: BrowserError;
70606
+ /**
70607
+ * PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
70608
+ */
70609
+ 403: BrowserError;
70610
+ /**
70611
+ * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
70612
+ */
70613
+ 404: BrowserError;
70614
+ /**
70615
+ * SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
70616
+ */
70617
+ 409: BrowserError;
70618
+ /**
70619
+ * BROWSER_REVOKED
70620
+ */
70621
+ 410: BrowserError;
70622
+ /**
70623
+ * ACTION_RESULT_TOO_LARGE
70624
+ */
70625
+ 413: BrowserError;
70626
+ /**
70627
+ * CONCURRENCY_LIMIT / RATE_LIMITED / PROVIDER_CAPACITY
70628
+ */
70629
+ 429: BrowserError;
70630
+ /**
70631
+ * INTERNAL
70632
+ */
70633
+ 500: BrowserError;
70634
+ /**
70635
+ * NOT_IMPLEMENTED / PROVIDER_UNSUPPORTED
70636
+ */
70637
+ 501: BrowserError;
70638
+ /**
70639
+ * PROVIDER_FAILED
70640
+ */
70641
+ 502: BrowserError;
70642
+ /**
70643
+ * BROWSER_OFFLINE / SERVICE_UNAVAILABLE
70108
70644
  */
70109
70645
  503: BrowserError;
70110
70646
  /**
@@ -70145,17 +70681,21 @@ export type BrowserDeleteContextErrors = {
70145
70681
  */
70146
70682
  402: BrowserError;
70147
70683
  /**
70148
- * PERMISSION_DENIED / ACCOUNT_SUSPENDED
70684
+ * PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
70149
70685
  */
70150
70686
  403: BrowserError;
70151
70687
  /**
70152
- * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
70688
+ * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
70153
70689
  */
70154
70690
  404: BrowserError;
70155
70691
  /**
70156
- * SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
70692
+ * SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
70157
70693
  */
70158
70694
  409: BrowserError;
70695
+ /**
70696
+ * BROWSER_REVOKED
70697
+ */
70698
+ 410: BrowserError;
70159
70699
  /**
70160
70700
  * ACTION_RESULT_TOO_LARGE
70161
70701
  */
@@ -70177,7 +70717,7 @@ export type BrowserDeleteContextErrors = {
70177
70717
  */
70178
70718
  502: BrowserError;
70179
70719
  /**
70180
- * SERVICE_UNAVAILABLE
70720
+ * BROWSER_OFFLINE / SERVICE_UNAVAILABLE
70181
70721
  */
70182
70722
  503: BrowserError;
70183
70723
  /**
@@ -70223,101 +70763,661 @@ export type BrowserGetContextErrors = {
70223
70763
  */
70224
70764
  402: BrowserError;
70225
70765
  /**
70226
- * PERMISSION_DENIED / ACCOUNT_SUSPENDED
70766
+ * PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
70767
+ */
70768
+ 403: BrowserError;
70769
+ /**
70770
+ * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
70771
+ */
70772
+ 404: BrowserError;
70773
+ /**
70774
+ * SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
70775
+ */
70776
+ 409: BrowserError;
70777
+ /**
70778
+ * BROWSER_REVOKED
70779
+ */
70780
+ 410: BrowserError;
70781
+ /**
70782
+ * ACTION_RESULT_TOO_LARGE
70783
+ */
70784
+ 413: BrowserError;
70785
+ /**
70786
+ * CONCURRENCY_LIMIT / RATE_LIMITED / PROVIDER_CAPACITY
70787
+ */
70788
+ 429: BrowserError;
70789
+ /**
70790
+ * INTERNAL
70791
+ */
70792
+ 500: BrowserError;
70793
+ /**
70794
+ * NOT_IMPLEMENTED / PROVIDER_UNSUPPORTED
70795
+ */
70796
+ 501: BrowserError;
70797
+ /**
70798
+ * PROVIDER_FAILED
70799
+ */
70800
+ 502: BrowserError;
70801
+ /**
70802
+ * BROWSER_OFFLINE / SERVICE_UNAVAILABLE
70803
+ */
70804
+ 503: BrowserError;
70805
+ /**
70806
+ * ACTION_TIMEOUT
70807
+ */
70808
+ 504: BrowserError;
70809
+ };
70810
+ export type BrowserGetContextError = BrowserGetContextErrors[keyof BrowserGetContextErrors];
70811
+ export type BrowserGetContextResponses = {
70812
+ /**
70813
+ * 请求成功。
70814
+ */
70815
+ 200: BrowserContext;
70816
+ };
70817
+ export type BrowserGetContextResponse = BrowserGetContextResponses[keyof BrowserGetContextResponses];
70818
+ export type BrowserUpdateContextData = {
70819
+ body: {
70820
+ /**
70821
+ * 登录态名称;非空时为 1–128 个 ASCII 字母、数字或 . _ : -,在当前账户内唯一;空字符串表示不设名称或清除名称。
70822
+ */
70823
+ name?: '' | unknown;
70824
+ /**
70825
+ * 自定义字符串标签;最多 32 项,键最多 128 个 UTF-8 字节,值最多 1024 个 UTF-8 字节。 更新时整体替换;空对象清除标签,省略则保留。
70826
+ */
70827
+ labels?: {
70828
+ [key: string]: string;
70829
+ };
70830
+ };
70831
+ path: {
70832
+ /**
70833
+ * 登录态 ID;使用创建或列出登录态返回的 id,以 bsc_ 开头。
70834
+ */
70835
+ contextId: string;
70836
+ };
70837
+ query?: never;
70838
+ url: '/browser/v1/contexts/{contextId}';
70839
+ };
70840
+ export type BrowserUpdateContextErrors = {
70841
+ /**
70842
+ * INVALID_PARAMS / INVALID_FILTER / INVALID_PAGE_TOKEN
70843
+ */
70844
+ 400: BrowserError;
70845
+ /**
70846
+ * UNAUTHENTICATED / CONNECT_SIGNATURE_INVALID
70847
+ */
70848
+ 401: BrowserError;
70849
+ /**
70850
+ * INSUFFICIENT_BALANCE / QUOTA_EXHAUSTED
70851
+ */
70852
+ 402: BrowserError;
70853
+ /**
70854
+ * PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
70855
+ */
70856
+ 403: BrowserError;
70857
+ /**
70858
+ * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
70859
+ */
70860
+ 404: BrowserError;
70861
+ /**
70862
+ * SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
70863
+ */
70864
+ 409: BrowserError;
70865
+ /**
70866
+ * BROWSER_REVOKED
70867
+ */
70868
+ 410: BrowserError;
70869
+ /**
70870
+ * ACTION_RESULT_TOO_LARGE
70871
+ */
70872
+ 413: BrowserError;
70873
+ /**
70874
+ * CONCURRENCY_LIMIT / RATE_LIMITED / PROVIDER_CAPACITY
70875
+ */
70876
+ 429: BrowserError;
70877
+ /**
70878
+ * INTERNAL
70879
+ */
70880
+ 500: BrowserError;
70881
+ /**
70882
+ * NOT_IMPLEMENTED / PROVIDER_UNSUPPORTED
70883
+ */
70884
+ 501: BrowserError;
70885
+ /**
70886
+ * PROVIDER_FAILED
70887
+ */
70888
+ 502: BrowserError;
70889
+ /**
70890
+ * BROWSER_OFFLINE / SERVICE_UNAVAILABLE
70891
+ */
70892
+ 503: BrowserError;
70893
+ /**
70894
+ * ACTION_TIMEOUT
70895
+ */
70896
+ 504: BrowserError;
70897
+ };
70898
+ export type BrowserUpdateContextError = BrowserUpdateContextErrors[keyof BrowserUpdateContextErrors];
70899
+ export type BrowserUpdateContextResponses = {
70900
+ /**
70901
+ * 请求成功。
70902
+ */
70903
+ 200: BrowserContext;
70904
+ };
70905
+ export type BrowserUpdateContextResponse = BrowserUpdateContextResponses[keyof BrowserUpdateContextResponses];
70906
+ export type BrowserCreateByobPairingData = {
70907
+ body?: never;
70908
+ path?: never;
70909
+ query?: never;
70910
+ url: '/browser/v1/byob/pairings';
70911
+ };
70912
+ export type BrowserCreateByobPairingErrors = {
70913
+ /**
70914
+ * INVALID_PARAMS / INVALID_FILTER / INVALID_PAGE_TOKEN
70915
+ */
70916
+ 400: BrowserError;
70917
+ /**
70918
+ * UNAUTHENTICATED / CONNECT_SIGNATURE_INVALID
70919
+ */
70920
+ 401: BrowserError;
70921
+ /**
70922
+ * INSUFFICIENT_BALANCE / QUOTA_EXHAUSTED
70923
+ */
70924
+ 402: BrowserError;
70925
+ /**
70926
+ * PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
70927
+ */
70928
+ 403: BrowserError;
70929
+ /**
70930
+ * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
70931
+ */
70932
+ 404: BrowserError;
70933
+ /**
70934
+ * SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
70935
+ */
70936
+ 409: BrowserError;
70937
+ /**
70938
+ * BROWSER_REVOKED
70939
+ */
70940
+ 410: BrowserError;
70941
+ /**
70942
+ * ACTION_RESULT_TOO_LARGE
70943
+ */
70944
+ 413: BrowserError;
70945
+ /**
70946
+ * CONCURRENCY_LIMIT / RATE_LIMITED / PROVIDER_CAPACITY
70947
+ */
70948
+ 429: BrowserError;
70949
+ /**
70950
+ * INTERNAL
70951
+ */
70952
+ 500: BrowserError;
70953
+ /**
70954
+ * NOT_IMPLEMENTED / PROVIDER_UNSUPPORTED
70955
+ */
70956
+ 501: BrowserError;
70957
+ /**
70958
+ * PROVIDER_FAILED
70959
+ */
70960
+ 502: BrowserError;
70961
+ /**
70962
+ * BROWSER_OFFLINE / SERVICE_UNAVAILABLE
70963
+ */
70964
+ 503: BrowserError;
70965
+ /**
70966
+ * ACTION_TIMEOUT
70967
+ */
70968
+ 504: BrowserError;
70969
+ };
70970
+ export type BrowserCreateByobPairingError = BrowserCreateByobPairingErrors[keyof BrowserCreateByobPairingErrors];
70971
+ export type BrowserCreateByobPairingResponses = {
70972
+ /**
70973
+ * 请求成功。
70974
+ */
70975
+ 201: BrowserByobPairing;
70976
+ };
70977
+ export type BrowserCreateByobPairingResponse = BrowserCreateByobPairingResponses[keyof BrowserCreateByobPairingResponses];
70978
+ export type BrowserListByobBrowsersData = {
70979
+ body?: never;
70980
+ path?: never;
70981
+ query?: {
70982
+ /**
70983
+ * 上一页返回的 nextCursor,原样传入;省略时读取第一页。
70984
+ */
70985
+ cursor?: string;
70986
+ /**
70987
+ * 每页最多返回的浏览器数量;默认 50,范围 1–100。
70988
+ */
70989
+ limit?: number;
70990
+ };
70991
+ url: '/browser/v1/byob/browsers';
70992
+ };
70993
+ export type BrowserListByobBrowsersErrors = {
70994
+ /**
70995
+ * INVALID_PARAMS / INVALID_FILTER / INVALID_PAGE_TOKEN
70996
+ */
70997
+ 400: BrowserError;
70998
+ /**
70999
+ * UNAUTHENTICATED / CONNECT_SIGNATURE_INVALID
71000
+ */
71001
+ 401: BrowserError;
71002
+ /**
71003
+ * INSUFFICIENT_BALANCE / QUOTA_EXHAUSTED
71004
+ */
71005
+ 402: BrowserError;
71006
+ /**
71007
+ * PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
71008
+ */
71009
+ 403: BrowserError;
71010
+ /**
71011
+ * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
71012
+ */
71013
+ 404: BrowserError;
71014
+ /**
71015
+ * SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
71016
+ */
71017
+ 409: BrowserError;
71018
+ /**
71019
+ * BROWSER_REVOKED
71020
+ */
71021
+ 410: BrowserError;
71022
+ /**
71023
+ * ACTION_RESULT_TOO_LARGE
71024
+ */
71025
+ 413: BrowserError;
71026
+ /**
71027
+ * CONCURRENCY_LIMIT / RATE_LIMITED / PROVIDER_CAPACITY
71028
+ */
71029
+ 429: BrowserError;
71030
+ /**
71031
+ * INTERNAL
71032
+ */
71033
+ 500: BrowserError;
71034
+ /**
71035
+ * NOT_IMPLEMENTED / PROVIDER_UNSUPPORTED
71036
+ */
71037
+ 501: BrowserError;
71038
+ /**
71039
+ * PROVIDER_FAILED
71040
+ */
71041
+ 502: BrowserError;
71042
+ /**
71043
+ * BROWSER_OFFLINE / SERVICE_UNAVAILABLE
71044
+ */
71045
+ 503: BrowserError;
71046
+ /**
71047
+ * ACTION_TIMEOUT
71048
+ */
71049
+ 504: BrowserError;
71050
+ };
71051
+ export type BrowserListByobBrowsersError = BrowserListByobBrowsersErrors[keyof BrowserListByobBrowsersErrors];
71052
+ export type BrowserListByobBrowsersResponses = {
71053
+ /**
71054
+ * 分页列出的自带浏览器,按 ID 升序。
71055
+ */
71056
+ 200: {
71057
+ /**
71058
+ * 本页的自带浏览器;已断开的不在列表里。
71059
+ */
71060
+ data: Array<BrowserByobBrowser>;
71061
+ /**
71062
+ * 下一页游标;原样传入 cursor,null 表示没有更多结果。
71063
+ */
71064
+ nextCursor: string | null;
71065
+ };
71066
+ };
71067
+ export type BrowserListByobBrowsersResponse = BrowserListByobBrowsersResponses[keyof BrowserListByobBrowsersResponses];
71068
+ export type BrowserGetByobBrowserData = {
71069
+ body?: never;
71070
+ path: {
71071
+ /**
71072
+ * 自带浏览器 ID,以 byb_ 开头;使用配对认领或列出自带浏览器返回的 id。
71073
+ */
71074
+ browser_id: string;
71075
+ };
71076
+ query?: never;
71077
+ url: '/browser/v1/byob/browsers/{browser_id}';
71078
+ };
71079
+ export type BrowserGetByobBrowserErrors = {
71080
+ /**
71081
+ * INVALID_PARAMS / INVALID_FILTER / INVALID_PAGE_TOKEN
71082
+ */
71083
+ 400: BrowserError;
71084
+ /**
71085
+ * UNAUTHENTICATED / CONNECT_SIGNATURE_INVALID
71086
+ */
71087
+ 401: BrowserError;
71088
+ /**
71089
+ * INSUFFICIENT_BALANCE / QUOTA_EXHAUSTED
71090
+ */
71091
+ 402: BrowserError;
71092
+ /**
71093
+ * PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
71094
+ */
71095
+ 403: BrowserError;
71096
+ /**
71097
+ * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
71098
+ */
71099
+ 404: BrowserError;
71100
+ /**
71101
+ * SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
71102
+ */
71103
+ 409: BrowserError;
71104
+ /**
71105
+ * BROWSER_REVOKED
71106
+ */
71107
+ 410: BrowserError;
71108
+ /**
71109
+ * ACTION_RESULT_TOO_LARGE
71110
+ */
71111
+ 413: BrowserError;
71112
+ /**
71113
+ * CONCURRENCY_LIMIT / RATE_LIMITED / PROVIDER_CAPACITY
71114
+ */
71115
+ 429: BrowserError;
71116
+ /**
71117
+ * INTERNAL
71118
+ */
71119
+ 500: BrowserError;
71120
+ /**
71121
+ * NOT_IMPLEMENTED / PROVIDER_UNSUPPORTED
71122
+ */
71123
+ 501: BrowserError;
71124
+ /**
71125
+ * PROVIDER_FAILED
71126
+ */
71127
+ 502: BrowserError;
71128
+ /**
71129
+ * BROWSER_OFFLINE / SERVICE_UNAVAILABLE
71130
+ */
71131
+ 503: BrowserError;
71132
+ /**
71133
+ * ACTION_TIMEOUT
71134
+ */
71135
+ 504: BrowserError;
71136
+ };
71137
+ export type BrowserGetByobBrowserError = BrowserGetByobBrowserErrors[keyof BrowserGetByobBrowserErrors];
71138
+ export type BrowserGetByobBrowserResponses = {
71139
+ /**
71140
+ * 请求成功。
71141
+ */
71142
+ 200: BrowserByobBrowser;
71143
+ };
71144
+ export type BrowserGetByobBrowserResponse = BrowserGetByobBrowserResponses[keyof BrowserGetByobBrowserResponses];
71145
+ export type BrowserUpdateByobBrowserData = {
71146
+ body: {
71147
+ /**
71148
+ * 新的显示名称,1–80 个字符。
71149
+ */
71150
+ name?: string;
71151
+ };
71152
+ path: {
71153
+ /**
71154
+ * 自带浏览器 ID,以 byb_ 开头;使用配对认领或列出自带浏览器返回的 id。
71155
+ */
71156
+ browser_id: string;
71157
+ };
71158
+ query?: never;
71159
+ url: '/browser/v1/byob/browsers/{browser_id}';
71160
+ };
71161
+ export type BrowserUpdateByobBrowserErrors = {
71162
+ /**
71163
+ * INVALID_PARAMS / INVALID_FILTER / INVALID_PAGE_TOKEN
71164
+ */
71165
+ 400: BrowserError;
71166
+ /**
71167
+ * UNAUTHENTICATED / CONNECT_SIGNATURE_INVALID
71168
+ */
71169
+ 401: BrowserError;
71170
+ /**
71171
+ * INSUFFICIENT_BALANCE / QUOTA_EXHAUSTED
71172
+ */
71173
+ 402: BrowserError;
71174
+ /**
71175
+ * PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
71176
+ */
71177
+ 403: BrowserError;
71178
+ /**
71179
+ * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
71180
+ */
71181
+ 404: BrowserError;
71182
+ /**
71183
+ * SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
71184
+ */
71185
+ 409: BrowserError;
71186
+ /**
71187
+ * BROWSER_REVOKED
71188
+ */
71189
+ 410: BrowserError;
71190
+ /**
71191
+ * ACTION_RESULT_TOO_LARGE
71192
+ */
71193
+ 413: BrowserError;
71194
+ /**
71195
+ * CONCURRENCY_LIMIT / RATE_LIMITED / PROVIDER_CAPACITY
71196
+ */
71197
+ 429: BrowserError;
71198
+ /**
71199
+ * INTERNAL
71200
+ */
71201
+ 500: BrowserError;
71202
+ /**
71203
+ * NOT_IMPLEMENTED / PROVIDER_UNSUPPORTED
71204
+ */
71205
+ 501: BrowserError;
71206
+ /**
71207
+ * PROVIDER_FAILED
71208
+ */
71209
+ 502: BrowserError;
71210
+ /**
71211
+ * BROWSER_OFFLINE / SERVICE_UNAVAILABLE
71212
+ */
71213
+ 503: BrowserError;
71214
+ /**
71215
+ * ACTION_TIMEOUT
71216
+ */
71217
+ 504: BrowserError;
71218
+ };
71219
+ export type BrowserUpdateByobBrowserError = BrowserUpdateByobBrowserErrors[keyof BrowserUpdateByobBrowserErrors];
71220
+ export type BrowserUpdateByobBrowserResponses = {
71221
+ /**
71222
+ * 请求成功。
71223
+ */
71224
+ 200: BrowserByobBrowser;
71225
+ };
71226
+ export type BrowserUpdateByobBrowserResponse = BrowserUpdateByobBrowserResponses[keyof BrowserUpdateByobBrowserResponses];
71227
+ export type BrowserDisconnectByobBrowserData = {
71228
+ body?: never;
71229
+ path: {
71230
+ /**
71231
+ * 自带浏览器 ID,以 byb_ 开头;使用配对认领或列出自带浏览器返回的 id。
71232
+ */
71233
+ browser_id: string;
71234
+ };
71235
+ query?: never;
71236
+ url: '/browser/v1/byob/browsers/{browser_id}/disconnect';
71237
+ };
71238
+ export type BrowserDisconnectByobBrowserErrors = {
71239
+ /**
71240
+ * INVALID_PARAMS / INVALID_FILTER / INVALID_PAGE_TOKEN
71241
+ */
71242
+ 400: BrowserError;
71243
+ /**
71244
+ * UNAUTHENTICATED / CONNECT_SIGNATURE_INVALID
71245
+ */
71246
+ 401: BrowserError;
71247
+ /**
71248
+ * INSUFFICIENT_BALANCE / QUOTA_EXHAUSTED
71249
+ */
71250
+ 402: BrowserError;
71251
+ /**
71252
+ * PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
71253
+ */
71254
+ 403: BrowserError;
71255
+ /**
71256
+ * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
71257
+ */
71258
+ 404: BrowserError;
71259
+ /**
71260
+ * SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
71261
+ */
71262
+ 409: BrowserError;
71263
+ /**
71264
+ * BROWSER_REVOKED
71265
+ */
71266
+ 410: BrowserError;
71267
+ /**
71268
+ * ACTION_RESULT_TOO_LARGE
71269
+ */
71270
+ 413: BrowserError;
71271
+ /**
71272
+ * CONCURRENCY_LIMIT / RATE_LIMITED / PROVIDER_CAPACITY
71273
+ */
71274
+ 429: BrowserError;
71275
+ /**
71276
+ * INTERNAL
71277
+ */
71278
+ 500: BrowserError;
71279
+ /**
71280
+ * NOT_IMPLEMENTED / PROVIDER_UNSUPPORTED
71281
+ */
71282
+ 501: BrowserError;
71283
+ /**
71284
+ * PROVIDER_FAILED
71285
+ */
71286
+ 502: BrowserError;
71287
+ /**
71288
+ * BROWSER_OFFLINE / SERVICE_UNAVAILABLE
71289
+ */
71290
+ 503: BrowserError;
71291
+ /**
71292
+ * ACTION_TIMEOUT
71293
+ */
71294
+ 504: BrowserError;
71295
+ };
71296
+ export type BrowserDisconnectByobBrowserError = BrowserDisconnectByobBrowserErrors[keyof BrowserDisconnectByobBrowserErrors];
71297
+ export type BrowserDisconnectByobBrowserResponses = {
71298
+ /**
71299
+ * 请求成功。
71300
+ */
71301
+ 200: BrowserByobBrowser;
71302
+ };
71303
+ export type BrowserDisconnectByobBrowserResponse = BrowserDisconnectByobBrowserResponses[keyof BrowserDisconnectByobBrowserResponses];
71304
+ export type BrowserReadByobPairingData = {
71305
+ body?: never;
71306
+ path: {
71307
+ /**
71308
+ * 8 位配对码,来自创建配对码的结果。
71309
+ */
71310
+ code: string;
71311
+ };
71312
+ query?: never;
71313
+ url: '/browser/v1/byob/pairings/{code}';
71314
+ };
71315
+ export type BrowserReadByobPairingErrors = {
71316
+ /**
71317
+ * INVALID_PARAMS / INVALID_FILTER / INVALID_PAGE_TOKEN
71318
+ */
71319
+ 400: BrowserError;
71320
+ /**
71321
+ * UNAUTHENTICATED / CONNECT_SIGNATURE_INVALID
71322
+ */
71323
+ 401: BrowserError;
71324
+ /**
71325
+ * INSUFFICIENT_BALANCE / QUOTA_EXHAUSTED
71326
+ */
71327
+ 402: BrowserError;
71328
+ /**
71329
+ * PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
71330
+ */
71331
+ 403: BrowserError;
71332
+ /**
71333
+ * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
71334
+ */
71335
+ 404: BrowserError;
71336
+ /**
71337
+ * SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
71338
+ */
71339
+ 409: BrowserError;
71340
+ /**
71341
+ * BROWSER_REVOKED
71342
+ */
71343
+ 410: BrowserError;
71344
+ /**
71345
+ * ACTION_RESULT_TOO_LARGE
71346
+ */
71347
+ 413: BrowserError;
71348
+ /**
71349
+ * CONCURRENCY_LIMIT / RATE_LIMITED / PROVIDER_CAPACITY
71350
+ */
71351
+ 429: BrowserError;
71352
+ /**
71353
+ * INTERNAL
71354
+ */
71355
+ 500: BrowserError;
71356
+ /**
71357
+ * NOT_IMPLEMENTED / PROVIDER_UNSUPPORTED
71358
+ */
71359
+ 501: BrowserError;
71360
+ /**
71361
+ * PROVIDER_FAILED
71362
+ */
71363
+ 502: BrowserError;
71364
+ /**
71365
+ * BROWSER_OFFLINE / SERVICE_UNAVAILABLE
71366
+ */
71367
+ 503: BrowserError;
71368
+ /**
71369
+ * ACTION_TIMEOUT
71370
+ */
71371
+ 504: BrowserError;
71372
+ };
71373
+ export type BrowserReadByobPairingError = BrowserReadByobPairingErrors[keyof BrowserReadByobPairingErrors];
71374
+ export type BrowserReadByobPairingResponses = {
71375
+ /**
71376
+ * 请求成功。
71377
+ */
71378
+ 200: BrowserByobPairingView;
71379
+ };
71380
+ export type BrowserReadByobPairingResponse = BrowserReadByobPairingResponses[keyof BrowserReadByobPairingResponses];
71381
+ export type BrowserClaimByobPairingData = {
71382
+ body: BrowserByobClaim;
71383
+ path: {
71384
+ /**
71385
+ * 8 位配对码,来自创建配对码的结果。
71386
+ */
71387
+ code: string;
71388
+ };
71389
+ query?: never;
71390
+ url: '/browser/v1/byob/pairings/{code}/claim';
71391
+ };
71392
+ export type BrowserClaimByobPairingErrors = {
71393
+ /**
71394
+ * INVALID_PARAMS / INVALID_FILTER / INVALID_PAGE_TOKEN
71395
+ */
71396
+ 400: BrowserError;
71397
+ /**
71398
+ * UNAUTHENTICATED / CONNECT_SIGNATURE_INVALID
71399
+ */
71400
+ 401: BrowserError;
71401
+ /**
71402
+ * INSUFFICIENT_BALANCE / QUOTA_EXHAUSTED
71403
+ */
71404
+ 402: BrowserError;
71405
+ /**
71406
+ * PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
70227
71407
  */
70228
71408
  403: BrowserError;
70229
71409
  /**
70230
- * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
71410
+ * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
70231
71411
  */
70232
71412
  404: BrowserError;
70233
71413
  /**
70234
- * SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
71414
+ * SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
70235
71415
  */
70236
71416
  409: BrowserError;
70237
71417
  /**
70238
- * ACTION_RESULT_TOO_LARGE
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
71418
+ * BROWSER_REVOKED
70255
71419
  */
70256
- 502: BrowserError;
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;
71420
+ 410: BrowserError;
70321
71421
  /**
70322
71422
  * ACTION_RESULT_TOO_LARGE
70323
71423
  */
@@ -70339,7 +71439,7 @@ export type BrowserUpdateContextErrors = {
70339
71439
  */
70340
71440
  502: BrowserError;
70341
71441
  /**
70342
- * SERVICE_UNAVAILABLE
71442
+ * BROWSER_OFFLINE / SERVICE_UNAVAILABLE
70343
71443
  */
70344
71444
  503: BrowserError;
70345
71445
  /**
@@ -70347,14 +71447,14 @@ export type BrowserUpdateContextErrors = {
70347
71447
  */
70348
71448
  504: BrowserError;
70349
71449
  };
70350
- export type BrowserUpdateContextError = BrowserUpdateContextErrors[keyof BrowserUpdateContextErrors];
70351
- export type BrowserUpdateContextResponses = {
71450
+ export type BrowserClaimByobPairingError = BrowserClaimByobPairingErrors[keyof BrowserClaimByobPairingErrors];
71451
+ export type BrowserClaimByobPairingResponses = {
70352
71452
  /**
70353
- * 请求成功。
71453
+ * 认领成功。
70354
71454
  */
70355
- 200: BrowserContext;
71455
+ 201: BrowserByobClaimResult;
70356
71456
  };
70357
- export type BrowserUpdateContextResponse = BrowserUpdateContextResponses[keyof BrowserUpdateContextResponses];
71457
+ export type BrowserClaimByobPairingResponse = BrowserClaimByobPairingResponses[keyof BrowserClaimByobPairingResponses];
70358
71458
  export type BrowserConnectData = {
70359
71459
  body?: never;
70360
71460
  path?: never;
@@ -70412,17 +71512,21 @@ export type BrowserConnectErrors = {
70412
71512
  */
70413
71513
  402: BrowserError;
70414
71514
  /**
70415
- * PERMISSION_DENIED / ACCOUNT_SUSPENDED
71515
+ * PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
70416
71516
  */
70417
71517
  403: BrowserError;
70418
71518
  /**
70419
- * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
71519
+ * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
70420
71520
  */
70421
71521
  404: BrowserError;
70422
71522
  /**
70423
- * SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
71523
+ * SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
70424
71524
  */
70425
71525
  409: BrowserError;
71526
+ /**
71527
+ * BROWSER_REVOKED
71528
+ */
71529
+ 410: BrowserError;
70426
71530
  /**
70427
71531
  * ACTION_RESULT_TOO_LARGE
70428
71532
  */
@@ -70444,7 +71548,7 @@ export type BrowserConnectErrors = {
70444
71548
  */
70445
71549
  502: BrowserError;
70446
71550
  /**
70447
- * SERVICE_UNAVAILABLE
71551
+ * BROWSER_OFFLINE / SERVICE_UNAVAILABLE
70448
71552
  */
70449
71553
  503: BrowserError;
70450
71554
  /**
@@ -70487,17 +71591,21 @@ export type BrowserLiveViewErrors = {
70487
71591
  */
70488
71592
  402: BrowserError;
70489
71593
  /**
70490
- * PERMISSION_DENIED / ACCOUNT_SUSPENDED
71594
+ * PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
70491
71595
  */
70492
71596
  403: BrowserError;
70493
71597
  /**
70494
- * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
71598
+ * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
70495
71599
  */
70496
71600
  404: BrowserError;
70497
71601
  /**
70498
- * SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
71602
+ * SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
70499
71603
  */
70500
71604
  409: BrowserError;
71605
+ /**
71606
+ * BROWSER_REVOKED
71607
+ */
71608
+ 410: BrowserError;
70501
71609
  /**
70502
71610
  * ACTION_RESULT_TOO_LARGE
70503
71611
  */
@@ -70519,7 +71627,7 @@ export type BrowserLiveViewErrors = {
70519
71627
  */
70520
71628
  502: BrowserError;
70521
71629
  /**
70522
- * SERVICE_UNAVAILABLE
71630
+ * BROWSER_OFFLINE / SERVICE_UNAVAILABLE
70523
71631
  */
70524
71632
  503: BrowserError;
70525
71633
  /**
@@ -70553,17 +71661,21 @@ export type BrowserStreamSessionErrors = {
70553
71661
  */
70554
71662
  402: BrowserError;
70555
71663
  /**
70556
- * PERMISSION_DENIED / ACCOUNT_SUSPENDED
71664
+ * PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
70557
71665
  */
70558
71666
  403: BrowserError;
70559
71667
  /**
70560
- * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
71668
+ * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
70561
71669
  */
70562
71670
  404: BrowserError;
70563
71671
  /**
70564
- * SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
71672
+ * SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
70565
71673
  */
70566
71674
  409: BrowserError;
71675
+ /**
71676
+ * BROWSER_REVOKED
71677
+ */
71678
+ 410: BrowserError;
70567
71679
  /**
70568
71680
  * ACTION_RESULT_TOO_LARGE
70569
71681
  */
@@ -70585,7 +71697,7 @@ export type BrowserStreamSessionErrors = {
70585
71697
  */
70586
71698
  502: BrowserError;
70587
71699
  /**
70588
- * SERVICE_UNAVAILABLE
71700
+ * BROWSER_OFFLINE / SERVICE_UNAVAILABLE
70589
71701
  */
70590
71702
  503: BrowserError;
70591
71703
  /**
@@ -70626,17 +71738,21 @@ export type BrowserStreamSessionFramesErrors = {
70626
71738
  */
70627
71739
  402: BrowserError;
70628
71740
  /**
70629
- * PERMISSION_DENIED / ACCOUNT_SUSPENDED
71741
+ * PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
70630
71742
  */
70631
71743
  403: BrowserError;
70632
71744
  /**
70633
- * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
71745
+ * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
70634
71746
  */
70635
71747
  404: BrowserError;
70636
71748
  /**
70637
- * SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
71749
+ * SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
70638
71750
  */
70639
71751
  409: BrowserError;
71752
+ /**
71753
+ * BROWSER_REVOKED
71754
+ */
71755
+ 410: BrowserError;
70640
71756
  /**
70641
71757
  * ACTION_RESULT_TOO_LARGE
70642
71758
  */
@@ -70658,7 +71774,7 @@ export type BrowserStreamSessionFramesErrors = {
70658
71774
  */
70659
71775
  502: BrowserError;
70660
71776
  /**
70661
- * SERVICE_UNAVAILABLE
71777
+ * BROWSER_OFFLINE / SERVICE_UNAVAILABLE
70662
71778
  */
70663
71779
  503: BrowserError;
70664
71780
  /**
@@ -71054,7 +72170,7 @@ export type FileCreateSignedUploadErrors = {
71054
72170
  */
71055
72171
  401: unknown;
71056
72172
  /**
71057
- * PERMISSION_DENIED or BINDING_READ_ONLY: use a credential with the required create or file-write authority.
72173
+ * 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
72174
  */
71059
72175
  403: unknown;
71060
72176
  };
@@ -77963,10 +79079,18 @@ export type GetOrganizationNotificationsInboxData = {
77963
79079
  url: '/organization/v1/notifications/inbox';
77964
79080
  };
77965
79081
  export type GetOrganizationNotificationsInboxErrors = {
79082
+ /**
79083
+ * `INVALID_PARAMS` from the service for a read it cannot answer (RFC 9457 problem).
79084
+ */
79085
+ 400: unknown;
77966
79086
  /**
77967
79087
  * Missing or invalid credential (RFC 9457 problem).
77968
79088
  */
77969
79089
  401: unknown;
79090
+ /**
79091
+ * 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.
79092
+ */
79093
+ 502: unknown;
77970
79094
  };
77971
79095
  export type GetOrganizationNotificationsInboxResponses = {
77972
79096
  /**
@@ -78009,13 +79133,17 @@ export type ListOrganizationNotificationLettersData = {
78009
79133
  };
78010
79134
  export type ListOrganizationNotificationLettersErrors = {
78011
79135
  /**
78012
- * Invalid status, archived or limit (RFC 9457 problem).
79136
+ * A bad `status`, `archived` or `limit`, or `INVALID_PARAMS` from the service for a cursor it did not issue (RFC 9457 problem).
78013
79137
  */
78014
79138
  400: unknown;
78015
79139
  /**
78016
79140
  * Missing or invalid credential (RFC 9457 problem).
78017
79141
  */
78018
79142
  401: unknown;
79143
+ /**
79144
+ * 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.
79145
+ */
79146
+ 502: unknown;
78019
79147
  };
78020
79148
  export type ListOrganizationNotificationLettersResponses = {
78021
79149
  /**
@@ -78118,7 +79246,7 @@ export type GetOrganizationNotificationLetterData = {
78118
79246
  };
78119
79247
  export type GetOrganizationNotificationLetterErrors = {
78120
79248
  /**
78121
- * The id is not a letter id (RFC 9457 problem).
79249
+ * The id is not a letter id — `INVALID_PARAMS` from the service (RFC 9457 problem).
78122
79250
  */
78123
79251
  400: unknown;
78124
79252
  /**
@@ -78126,9 +79254,13 @@ export type GetOrganizationNotificationLetterErrors = {
78126
79254
  */
78127
79255
  401: unknown;
78128
79256
  /**
78129
- * No such letter in your mailbox (RFC 9457 problem).
79257
+ * 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
79258
  */
78131
79259
  404: unknown;
79260
+ /**
79261
+ * 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.
79262
+ */
79263
+ 502: unknown;
78132
79264
  };
78133
79265
  export type GetOrganizationNotificationLetterResponses = {
78134
79266
  /**
@@ -78218,7 +79350,7 @@ export type ReadOrganizationNotificationLetterData = {
78218
79350
  };
78219
79351
  export type ReadOrganizationNotificationLetterErrors = {
78220
79352
  /**
78221
- * The id is not a letter id (RFC 9457 problem).
79353
+ * The id is not a letter id — `INVALID_PARAMS` from the service (RFC 9457 problem).
78222
79354
  */
78223
79355
  400: unknown;
78224
79356
  /**
@@ -78226,9 +79358,13 @@ export type ReadOrganizationNotificationLetterErrors = {
78226
79358
  */
78227
79359
  401: unknown;
78228
79360
  /**
78229
- * No such letter in your mailbox (RFC 9457 problem).
79361
+ * No such letter in your mailbox in this organization — `MESSAGE_NOT_FOUND` (RFC 9457 problem).
78230
79362
  */
78231
79363
  404: unknown;
79364
+ /**
79365
+ * 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.
79366
+ */
79367
+ 502: unknown;
78232
79368
  };
78233
79369
  export type ReadOrganizationNotificationLetterResponses = {
78234
79370
  /**
@@ -78255,13 +79391,17 @@ export type ReadAllOrganizationNotificationLettersData = {
78255
79391
  };
78256
79392
  export type ReadAllOrganizationNotificationLettersErrors = {
78257
79393
  /**
78258
- * The body is not a JSON object, or kind is unknown (RFC 9457 problem).
79394
+ * The body is not a JSON object, `kind` is unknown, or `INVALID_PARAMS` from the service (RFC 9457 problem).
78259
79395
  */
78260
79396
  400: unknown;
78261
79397
  /**
78262
79398
  * Missing or invalid credential (RFC 9457 problem).
78263
79399
  */
78264
79400
  401: unknown;
79401
+ /**
79402
+ * 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.
79403
+ */
79404
+ 502: unknown;
78265
79405
  };
78266
79406
  export type ReadAllOrganizationNotificationLettersResponses = {
78267
79407
  /**
@@ -78288,7 +79428,7 @@ export type ArchiveOrganizationNotificationLetterData = {
78288
79428
  };
78289
79429
  export type ArchiveOrganizationNotificationLetterErrors = {
78290
79430
  /**
78291
- * The id is not a letter id (RFC 9457 problem).
79431
+ * The id is not a letter id — `INVALID_PARAMS` from the service (RFC 9457 problem).
78292
79432
  */
78293
79433
  400: unknown;
78294
79434
  /**
@@ -78296,9 +79436,13 @@ export type ArchiveOrganizationNotificationLetterErrors = {
78296
79436
  */
78297
79437
  401: unknown;
78298
79438
  /**
78299
- * No such letter in your mailbox (RFC 9457 problem).
79439
+ * No such letter in your mailbox in this organization — `MESSAGE_NOT_FOUND` (RFC 9457 problem).
78300
79440
  */
78301
79441
  404: unknown;
79442
+ /**
79443
+ * 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.
79444
+ */
79445
+ 502: unknown;
78302
79446
  };
78303
79447
  export type ArchiveOrganizationNotificationLetterResponses = {
78304
79448
  /**
@@ -78323,6 +79467,10 @@ export type GetOrganizationNotificationPreferencesErrors = {
78323
79467
  * Missing or invalid credential (RFC 9457 problem).
78324
79468
  */
78325
79469
  401: unknown;
79470
+ /**
79471
+ * 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.
79472
+ */
79473
+ 502: unknown;
78326
79474
  };
78327
79475
  export type GetOrganizationNotificationPreferencesResponses = {
78328
79476
  /**
@@ -78414,7 +79562,7 @@ export type UpdateOrganizationNotificationPreferencesData = {
78414
79562
  };
78415
79563
  export type UpdateOrganizationNotificationPreferencesErrors = {
78416
79564
  /**
78417
- * Invalid switch, unknown category or unoffered channel (RFC 9457 problem).
79565
+ * Invalid switch, unknown category or unoffered channel — `INVALID_PARAMS`, `NOT_CONFIGURABLE` or `CRITICAL_CHANNELS_OFF` from the service (RFC 9457 problem).
78418
79566
  */
78419
79567
  400: unknown;
78420
79568
  /**
@@ -78422,9 +79570,13 @@ export type UpdateOrganizationNotificationPreferencesErrors = {
78422
79570
  */
78423
79571
  401: unknown;
78424
79572
  /**
78425
- * The organization does not let members change their own switches (ORGANIZATION_LOCKED).
79573
+ * The organization does not let members change their own switches — `ORGANIZATION_LOCKED` from the service (RFC 9457 problem).
78426
79574
  */
78427
79575
  403: unknown;
79576
+ /**
79577
+ * 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.
79578
+ */
79579
+ 502: unknown;
78428
79580
  };
78429
79581
  export type UpdateOrganizationNotificationPreferencesResponses = {
78430
79582
  /**
@@ -78446,6 +79598,10 @@ export type GetOrganizationNotificationDefaultsErrors = {
78446
79598
  * Missing or invalid credential (RFC 9457 problem).
78447
79599
  */
78448
79600
  401: unknown;
79601
+ /**
79602
+ * 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.
79603
+ */
79604
+ 502: unknown;
78449
79605
  };
78450
79606
  export type GetOrganizationNotificationDefaultsResponses = {
78451
79607
  /**
@@ -78483,7 +79639,7 @@ export type UpdateOrganizationNotificationDefaultsData = {
78483
79639
  };
78484
79640
  export type UpdateOrganizationNotificationDefaultsErrors = {
78485
79641
  /**
78486
- * Invalid default, unknown category or hidden critical category (RFC 9457 problem).
79642
+ * Invalid default, unknown category or hidden critical category (RFC 9457 problem, `INVALID_PARAMS`).
78487
79643
  */
78488
79644
  400: unknown;
78489
79645
  /**
@@ -78491,9 +79647,13 @@ export type UpdateOrganizationNotificationDefaultsErrors = {
78491
79647
  */
78492
79648
  401: unknown;
78493
79649
  /**
78494
- * The caller is not an owner or admin of this organization.
79650
+ * The caller is not an owner or admin of this organization — `PERMISSION_DENIED` from the service (RFC 9457 problem).
78495
79651
  */
78496
79652
  403: unknown;
79653
+ /**
79654
+ * 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.
79655
+ */
79656
+ 502: unknown;
78497
79657
  };
78498
79658
  export type UpdateOrganizationNotificationDefaultsResponses = {
78499
79659
  /**
@@ -78521,13 +79681,17 @@ export type ListOrganizationNotificationDeliveriesData = {
78521
79681
  };
78522
79682
  export type ListOrganizationNotificationDeliveriesErrors = {
78523
79683
  /**
78524
- * Invalid limit or page cursor (RFC 9457 problem).
79684
+ * Invalid limit, or `INVALID_PARAMS` from the service for a page cursor it did not issue (RFC 9457 problem).
78525
79685
  */
78526
79686
  400: unknown;
78527
79687
  /**
78528
79688
  * Missing or invalid credential (RFC 9457 problem).
78529
79689
  */
78530
79690
  401: unknown;
79691
+ /**
79692
+ * 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.
79693
+ */
79694
+ 502: unknown;
78531
79695
  };
78532
79696
  export type ListOrganizationNotificationDeliveriesResponses = {
78533
79697
  /**
@@ -79794,6 +80958,23 @@ export type ListByodDevicesResponses = {
79794
80958
  * 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
80959
  */
79796
80960
  agent_dirs: Array<string>;
80961
+ /**
80962
+ * 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.
80963
+ */
80964
+ agent_bindings: Array<{
80965
+ /**
80966
+ * The absolute directory the desktop bound to an agent with praxis agent connect.
80967
+ */
80968
+ dir: string;
80969
+ /**
80970
+ * The agent the directory is bound to: its identity number or its agent id.
80971
+ */
80972
+ agent: string;
80973
+ }>;
80974
+ /**
80975
+ * 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.
80976
+ */
80977
+ envd_version: string | null;
79797
80978
  /**
79798
80979
  * 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
80980
  */
@@ -79876,6 +81057,23 @@ export type GetByodDeviceResponses = {
79876
81057
  * 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
81058
  */
79878
81059
  agent_dirs: Array<string>;
81060
+ /**
81061
+ * 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.
81062
+ */
81063
+ agent_bindings: Array<{
81064
+ /**
81065
+ * The absolute directory the desktop bound to an agent with praxis agent connect.
81066
+ */
81067
+ dir: string;
81068
+ /**
81069
+ * The agent the directory is bound to: its identity number or its agent id.
81070
+ */
81071
+ agent: string;
81072
+ }>;
81073
+ /**
81074
+ * 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.
81075
+ */
81076
+ envd_version: string | null;
79879
81077
  /**
79880
81078
  * 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
81079
  */
@@ -79969,6 +81167,23 @@ export type UpdateByodDeviceResponses = {
79969
81167
  * 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
81168
  */
79971
81169
  agent_dirs: Array<string>;
81170
+ /**
81171
+ * 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.
81172
+ */
81173
+ agent_bindings: Array<{
81174
+ /**
81175
+ * The absolute directory the desktop bound to an agent with praxis agent connect.
81176
+ */
81177
+ dir: string;
81178
+ /**
81179
+ * The agent the directory is bound to: its identity number or its agent id.
81180
+ */
81181
+ agent: string;
81182
+ }>;
81183
+ /**
81184
+ * 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.
81185
+ */
81186
+ envd_version: string | null;
79972
81187
  /**
79973
81188
  * 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
81189
  */
@@ -83262,6 +84477,15 @@ export type AgentsListResponses = {
83262
84477
  name: string;
83263
84478
  }>;
83264
84479
  };
84480
+ /**
84481
+ * 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.
84482
+ */
84483
+ browser?: {
84484
+ /**
84485
+ * A paired browser's id (byb_ and 26 lowercase hex characters), from browser.byob.browsers.list.
84486
+ */
84487
+ byob: string;
84488
+ } | null;
83265
84489
  /**
83266
84490
  * 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
84491
  */
@@ -84211,6 +85435,15 @@ export type AgentsCreateData = {
84211
85435
  name: string;
84212
85436
  }>;
84213
85437
  };
85438
+ /**
85439
+ * 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.
85440
+ */
85441
+ browser?: {
85442
+ /**
85443
+ * A paired browser's id (byb_ and 26 lowercase hex characters), from browser.byob.browsers.list.
85444
+ */
85445
+ byob: string;
85446
+ } | null;
84214
85447
  /**
84215
85448
  * 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
85449
  */
@@ -84466,6 +85699,15 @@ export type AgentsCreateResponses = {
84466
85699
  name: string;
84467
85700
  }>;
84468
85701
  };
85702
+ /**
85703
+ * 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.
85704
+ */
85705
+ browser?: {
85706
+ /**
85707
+ * A paired browser's id (byb_ and 26 lowercase hex characters), from browser.byob.browsers.list.
85708
+ */
85709
+ byob: string;
85710
+ } | null;
84469
85711
  /**
84470
85712
  * 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
85713
  */
@@ -85128,6 +86370,15 @@ export type AgentsRetrieveResponses = {
85128
86370
  name: string;
85129
86371
  }>;
85130
86372
  };
86373
+ /**
86374
+ * 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.
86375
+ */
86376
+ browser?: {
86377
+ /**
86378
+ * A paired browser's id (byb_ and 26 lowercase hex characters), from browser.byob.browsers.list.
86379
+ */
86380
+ byob: string;
86381
+ } | null;
85131
86382
  /**
85132
86383
  * 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
86384
  */
@@ -86086,6 +87337,15 @@ export type AgentsUpdateData = {
86086
87337
  name: string;
86087
87338
  }>;
86088
87339
  };
87340
+ /**
87341
+ * 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.
87342
+ */
87343
+ browser?: {
87344
+ /**
87345
+ * A paired browser's id (byb_ and 26 lowercase hex characters), from browser.byob.browsers.list.
87346
+ */
87347
+ byob: string;
87348
+ } | null;
86089
87349
  /**
86090
87350
  * 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
87351
  */
@@ -86354,6 +87614,15 @@ export type AgentsUpdateResponses = {
86354
87614
  name: string;
86355
87615
  }>;
86356
87616
  };
87617
+ /**
87618
+ * 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.
87619
+ */
87620
+ browser?: {
87621
+ /**
87622
+ * A paired browser's id (byb_ and 26 lowercase hex characters), from browser.byob.browsers.list.
87623
+ */
87624
+ byob: string;
87625
+ } | null;
86357
87626
  /**
86358
87627
  * 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
87628
  */
@@ -87642,6 +88911,15 @@ export type AgentsVersionsListResponses = {
87642
88911
  name: string;
87643
88912
  }>;
87644
88913
  };
88914
+ /**
88915
+ * 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.
88916
+ */
88917
+ browser?: {
88918
+ /**
88919
+ * A paired browser's id (byb_ and 26 lowercase hex characters), from browser.byob.browsers.list.
88920
+ */
88921
+ byob: string;
88922
+ } | null;
87645
88923
  /**
87646
88924
  * 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
88925
  */
@@ -90424,6 +91702,31 @@ export type SessionsEventsListResponses = {
90424
91702
  * 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
91703
  */
90426
91704
  session_thread_id?: string | null;
91705
+ } | {
91706
+ /**
91707
+ * Event id, unique within the session. Use it to refer to this event, for example in user.tool_confirmation or user.steer.
91708
+ */
91709
+ id: string;
91710
+ /**
91711
+ * Always `session.status_preparing`. A device session's local agent is starting; stage says how far it got.
91712
+ */
91713
+ type: 'session.status_preparing';
91714
+ /**
91715
+ * RFC 3339 time at which the server processed the event; null while a queued input has not started running.
91716
+ */
91717
+ processed_at: string;
91718
+ /**
91719
+ * How far the start got.
91720
+ */
91721
+ stage: 'launching' | 'loading' | 'ready';
91722
+ /**
91723
+ * 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.
91724
+ */
91725
+ message_id?: string;
91726
+ /**
91727
+ * 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.
91728
+ */
91729
+ session_thread_id?: string | null;
90427
91730
  }>;
90428
91731
  /**
90429
91732
  * Opaque cursor for the next page: pass it unchanged as page to continue. Null when this is the last page.
@@ -92146,6 +93449,31 @@ export type SessionsThreadsEventsListResponses = {
92146
93449
  * 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
93450
  */
92148
93451
  session_thread_id?: string | null;
93452
+ } | {
93453
+ /**
93454
+ * Event id, unique within the session. Use it to refer to this event, for example in user.tool_confirmation or user.steer.
93455
+ */
93456
+ id: string;
93457
+ /**
93458
+ * Always `session.status_preparing`. A device session's local agent is starting; stage says how far it got.
93459
+ */
93460
+ type: 'session.status_preparing';
93461
+ /**
93462
+ * RFC 3339 time at which the server processed the event; null while a queued input has not started running.
93463
+ */
93464
+ processed_at: string;
93465
+ /**
93466
+ * How far the start got.
93467
+ */
93468
+ stage: 'launching' | 'loading' | 'ready';
93469
+ /**
93470
+ * 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.
93471
+ */
93472
+ message_id?: string;
93473
+ /**
93474
+ * 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.
93475
+ */
93476
+ session_thread_id?: string | null;
92149
93477
  }>;
92150
93478
  /**
92151
93479
  * Opaque cursor for the next page: pass it unchanged as page to continue. Null when this is the last page.
@@ -110984,6 +112312,51 @@ export type DevopsChangesMarkLastSliceResponses = {
110984
112312
  200: DevopsChange;
110985
112313
  };
110986
112314
  export type DevopsChangesMarkLastSliceResponse = DevopsChangesMarkLastSliceResponses[keyof DevopsChangesMarkLastSliceResponses];
112315
+ export type DevopsChangesSlicesCreateData = {
112316
+ body?: DevopsChangeSliceCreateRequest;
112317
+ path: {
112318
+ /**
112319
+ * Identifies the project whose data you are reading, from the project list or create answer.
112320
+ */
112321
+ project: string;
112322
+ /**
112323
+ * 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.
112324
+ */
112325
+ change: string;
112326
+ };
112327
+ query?: never;
112328
+ url: '/devops/v1/projects/{project}/changes/{change}/slices';
112329
+ };
112330
+ export type DevopsChangesSlicesCreateErrors = {
112331
+ /**
112332
+ * 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.
112333
+ */
112334
+ 400: DevopsDevOpsError;
112335
+ /**
112336
+ * The API key is missing or invalid; send a valid Praxis API key in the Authorization header before retrying.
112337
+ */
112338
+ 401: DevopsDevOpsError;
112339
+ /**
112340
+ * 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.
112341
+ */
112342
+ 403: DevopsDevOpsError;
112343
+ /**
112344
+ * 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.
112345
+ */
112346
+ 404: DevopsDevOpsError;
112347
+ /**
112348
+ * 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.
112349
+ */
112350
+ 500: DevopsDevOpsError;
112351
+ };
112352
+ export type DevopsChangesSlicesCreateError = DevopsChangesSlicesCreateErrors[keyof DevopsChangesSlicesCreateErrors];
112353
+ export type DevopsChangesSlicesCreateResponses = {
112354
+ /**
112355
+ * 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.
112356
+ */
112357
+ 200: DevopsChangeSliceOpened;
112358
+ };
112359
+ export type DevopsChangesSlicesCreateResponse = DevopsChangesSlicesCreateResponses[keyof DevopsChangesSlicesCreateResponses];
110987
112360
  export type DevopsChangesOpenPullRequestData = {
110988
112361
  body?: DevopsChangeOpenPullRequestRequest;
110989
112362
  path: {