@deepraxis/sdk 0.2.0-dev.bc5a12b → 0.2.0-dev.c2bf6fc

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
  /**
@@ -47787,7 +48139,7 @@ export type DevopsPlannedSkip = {
47787
48139
  /**
47788
48140
  * Why it is left out, which is what tells a deliberate skip apart from an oversight.
47789
48141
  */
47790
- reason: 'unchanged' | 'newer_checkpoint' | 'not_requested' | 'callee_excluded' | 'artifact_identical';
48142
+ reason: 'unchanged' | 'newer_checkpoint' | 'not_requested' | 'callee_excluded' | 'not_deployed_upstream' | 'artifact_identical';
47791
48143
  };
47792
48144
  /**
47793
48145
  * The migrations one target has pending, as the plan found them.
@@ -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
  */
@@ -55281,7 +55752,7 @@ export type ApplyAgentVersionResponses = {
55281
55752
  */
55282
55753
  environment_id?: string | null;
55283
55754
  /**
55284
- * Default vaults of this service or assume agent version: the vault_ids new sessions get when they name none. Present for service and assume agents. Follows the version like other configuration: a version saved with apply=false does not change the vaults in effect. Versions saved before this field existed read as []. /agent/v1 only.
55755
+ * Default vaults of this service or assume agent version: the vault_ids every new session carries; a session's own vault_ids are added to them. Present for service and assume agents. Follows the version like other configuration: a version saved with apply=false does not change the vaults in effect. Versions saved before this field existed read as []. /agent/v1 only.
55285
55756
  */
55286
55757
  vault_ids?: Array<string>;
55287
55758
  /**
@@ -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
  */
@@ -56532,7 +57012,7 @@ export type UnarchiveAgentResponses = {
56532
57012
  */
56533
57013
  environment_id?: string | null;
56534
57014
  /**
56535
- * Default vaults of this service or assume agent version: the vault_ids new sessions get when they name none. Present for service and assume agents. Follows the version like other configuration: a version saved with apply=false does not change the vaults in effect. Versions saved before this field existed read as []. /agent/v1 only.
57015
+ * Default vaults of this service or assume agent version: the vault_ids every new session carries; a session's own vault_ids are added to them. Present for service and assume agents. Follows the version like other configuration: a version saved with apply=false does not change the vaults in effect. Versions saved before this field existed read as []. /agent/v1 only.
56536
57016
  */
56537
57017
  vault_ids?: Array<string>;
56538
57018
  /**
@@ -59001,9 +59481,13 @@ export type ComputersRetrieveResponse = ComputersRetrieveResponses[keyof Compute
59001
59481
  export type ComputersUpdateData = {
59002
59482
  body: {
59003
59483
  /**
59004
- * Name of the entry or object.
59484
+ * New display name, 1 to 255 characters after trimming. Omit to keep the current name.
59005
59485
  */
59006
- name: string;
59486
+ name?: string;
59487
+ /**
59488
+ * Environment recipe the computer declares (agent.environments.list or agent.environments.create, or a built-in id). A string sets the declaration and is checked as in computers.create: an unknown, foreign or archived environment is refused. null removes the declaration. Omit to leave it unchanged. Only the record changes: the machine is not touched or restarted, so the new declaration applies from the computer's next start; restart the computer once to apply it at once.
59489
+ */
59490
+ environment_id?: string | null;
59007
59491
  };
59008
59492
  path: {
59009
59493
  /**
@@ -61173,7 +61657,7 @@ export type ComputersFilesConvertResponse = ComputersFilesConvertResponses[keyof
61173
61657
  export type ConnectComputerData = {
61174
61658
  body?: {
61175
61659
  /**
61176
- * Defaults to light. light uses the lightweight shell, or the heavy instance while it is running. heavy requests a full Linux computer for interactive programs; heavy running time counts toward the daily budget in seconds.
61660
+ * Accepted for compatibility and ignored: light and heavy both reach the same machine, because a Computer is one machine. Omit it.
61177
61661
  */
61178
61662
  need?: 'light' | 'heavy';
61179
61663
  };
@@ -68777,17 +69261,21 @@ export type BrowserListSessionsErrors = {
68777
69261
  */
68778
69262
  402: BrowserError;
68779
69263
  /**
68780
- * PERMISSION_DENIED / ACCOUNT_SUSPENDED
69264
+ * PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
68781
69265
  */
68782
69266
  403: BrowserError;
68783
69267
  /**
68784
- * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
69268
+ * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
68785
69269
  */
68786
69270
  404: BrowserError;
68787
69271
  /**
68788
- * SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
69272
+ * SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
68789
69273
  */
68790
69274
  409: BrowserError;
69275
+ /**
69276
+ * BROWSER_REVOKED
69277
+ */
69278
+ 410: BrowserError;
68791
69279
  /**
68792
69280
  * ACTION_RESULT_TOO_LARGE
68793
69281
  */
@@ -68809,7 +69297,7 @@ export type BrowserListSessionsErrors = {
68809
69297
  */
68810
69298
  502: BrowserError;
68811
69299
  /**
68812
- * SERVICE_UNAVAILABLE
69300
+ * BROWSER_OFFLINE / SERVICE_UNAVAILABLE
68813
69301
  */
68814
69302
  503: BrowserError;
68815
69303
  /**
@@ -68854,17 +69342,21 @@ export type BrowserCreateSessionErrors = {
68854
69342
  */
68855
69343
  402: BrowserError;
68856
69344
  /**
68857
- * PERMISSION_DENIED / ACCOUNT_SUSPENDED
69345
+ * PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
68858
69346
  */
68859
69347
  403: BrowserError;
68860
69348
  /**
68861
- * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
69349
+ * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
68862
69350
  */
68863
69351
  404: BrowserError;
68864
69352
  /**
68865
- * SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
69353
+ * SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
68866
69354
  */
68867
69355
  409: BrowserError;
69356
+ /**
69357
+ * BROWSER_REVOKED
69358
+ */
69359
+ 410: BrowserError;
68868
69360
  /**
68869
69361
  * ACTION_RESULT_TOO_LARGE
68870
69362
  */
@@ -68886,7 +69378,7 @@ export type BrowserCreateSessionErrors = {
68886
69378
  */
68887
69379
  502: BrowserError;
68888
69380
  /**
68889
- * SERVICE_UNAVAILABLE
69381
+ * BROWSER_OFFLINE / SERVICE_UNAVAILABLE
68890
69382
  */
68891
69383
  503: BrowserError;
68892
69384
  /**
@@ -68896,6 +69388,10 @@ export type BrowserCreateSessionErrors = {
68896
69388
  };
68897
69389
  export type BrowserCreateSessionError = BrowserCreateSessionErrors[keyof BrowserCreateSessionErrors];
68898
69390
  export type BrowserCreateSessionResponses = {
69391
+ /**
69392
+ * 请求成功。
69393
+ */
69394
+ 200: BrowserSessionCreateResult;
68899
69395
  /**
68900
69396
  * 请求成功。
68901
69397
  */
@@ -68932,17 +69428,21 @@ export type BrowserGetSessionErrors = {
68932
69428
  */
68933
69429
  402: BrowserError;
68934
69430
  /**
68935
- * PERMISSION_DENIED / ACCOUNT_SUSPENDED
69431
+ * PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
68936
69432
  */
68937
69433
  403: BrowserError;
68938
69434
  /**
68939
- * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
69435
+ * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
68940
69436
  */
68941
69437
  404: BrowserError;
68942
69438
  /**
68943
- * SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
69439
+ * SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
68944
69440
  */
68945
69441
  409: BrowserError;
69442
+ /**
69443
+ * BROWSER_REVOKED
69444
+ */
69445
+ 410: BrowserError;
68946
69446
  /**
68947
69447
  * ACTION_RESULT_TOO_LARGE
68948
69448
  */
@@ -68964,7 +69464,7 @@ export type BrowserGetSessionErrors = {
68964
69464
  */
68965
69465
  502: BrowserError;
68966
69466
  /**
68967
- * SERVICE_UNAVAILABLE
69467
+ * BROWSER_OFFLINE / SERVICE_UNAVAILABLE
68968
69468
  */
68969
69469
  503: BrowserError;
68970
69470
  /**
@@ -69010,17 +69510,21 @@ export type BrowserCloseSessionErrors = {
69010
69510
  */
69011
69511
  402: BrowserError;
69012
69512
  /**
69013
- * PERMISSION_DENIED / ACCOUNT_SUSPENDED
69513
+ * PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
69014
69514
  */
69015
69515
  403: BrowserError;
69016
69516
  /**
69017
- * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
69517
+ * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
69018
69518
  */
69019
69519
  404: BrowserError;
69020
69520
  /**
69021
- * SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
69521
+ * SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
69022
69522
  */
69023
69523
  409: BrowserError;
69524
+ /**
69525
+ * BROWSER_REVOKED
69526
+ */
69527
+ 410: BrowserError;
69024
69528
  /**
69025
69529
  * ACTION_RESULT_TOO_LARGE
69026
69530
  */
@@ -69042,7 +69546,7 @@ export type BrowserCloseSessionErrors = {
69042
69546
  */
69043
69547
  502: BrowserError;
69044
69548
  /**
69045
- * SERVICE_UNAVAILABLE
69549
+ * BROWSER_OFFLINE / SERVICE_UNAVAILABLE
69046
69550
  */
69047
69551
  503: BrowserError;
69048
69552
  /**
@@ -69083,17 +69587,21 @@ export type BrowserGetDebugErrors = {
69083
69587
  */
69084
69588
  402: BrowserError;
69085
69589
  /**
69086
- * PERMISSION_DENIED / ACCOUNT_SUSPENDED
69590
+ * PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
69087
69591
  */
69088
69592
  403: BrowserError;
69089
69593
  /**
69090
- * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
69594
+ * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
69091
69595
  */
69092
69596
  404: BrowserError;
69093
69597
  /**
69094
- * SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
69598
+ * SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
69095
69599
  */
69096
69600
  409: BrowserError;
69601
+ /**
69602
+ * BROWSER_REVOKED
69603
+ */
69604
+ 410: BrowserError;
69097
69605
  /**
69098
69606
  * ACTION_RESULT_TOO_LARGE
69099
69607
  */
@@ -69115,7 +69623,7 @@ export type BrowserGetDebugErrors = {
69115
69623
  */
69116
69624
  502: BrowserError;
69117
69625
  /**
69118
- * SERVICE_UNAVAILABLE
69626
+ * BROWSER_OFFLINE / SERVICE_UNAVAILABLE
69119
69627
  */
69120
69628
  503: BrowserError;
69121
69629
  /**
@@ -69169,17 +69677,21 @@ export type BrowserListEventsErrors = {
69169
69677
  */
69170
69678
  402: BrowserError;
69171
69679
  /**
69172
- * PERMISSION_DENIED / ACCOUNT_SUSPENDED
69680
+ * PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
69173
69681
  */
69174
69682
  403: BrowserError;
69175
69683
  /**
69176
- * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
69684
+ * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
69177
69685
  */
69178
69686
  404: BrowserError;
69179
69687
  /**
69180
- * SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
69688
+ * SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
69181
69689
  */
69182
69690
  409: BrowserError;
69691
+ /**
69692
+ * BROWSER_REVOKED
69693
+ */
69694
+ 410: BrowserError;
69183
69695
  /**
69184
69696
  * ACTION_RESULT_TOO_LARGE
69185
69697
  */
@@ -69201,7 +69713,7 @@ export type BrowserListEventsErrors = {
69201
69713
  */
69202
69714
  502: BrowserError;
69203
69715
  /**
69204
- * SERVICE_UNAVAILABLE
69716
+ * BROWSER_OFFLINE / SERVICE_UNAVAILABLE
69205
69717
  */
69206
69718
  503: BrowserError;
69207
69719
  /**
@@ -69448,17 +69960,21 @@ export type BrowserRunPageActionErrors = {
69448
69960
  */
69449
69961
  402: BrowserError;
69450
69962
  /**
69451
- * PERMISSION_DENIED / ACCOUNT_SUSPENDED
69963
+ * PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
69452
69964
  */
69453
69965
  403: BrowserError;
69454
69966
  /**
69455
- * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
69967
+ * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
69456
69968
  */
69457
69969
  404: BrowserError;
69458
69970
  /**
69459
- * SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
69971
+ * SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
69460
69972
  */
69461
69973
  409: BrowserError;
69974
+ /**
69975
+ * BROWSER_REVOKED
69976
+ */
69977
+ 410: BrowserError;
69462
69978
  /**
69463
69979
  * ACTION_RESULT_TOO_LARGE
69464
69980
  */
@@ -69480,7 +69996,7 @@ export type BrowserRunPageActionErrors = {
69480
69996
  */
69481
69997
  502: BrowserError;
69482
69998
  /**
69483
- * SERVICE_UNAVAILABLE
69999
+ * BROWSER_OFFLINE / SERVICE_UNAVAILABLE
69484
70000
  */
69485
70001
  503: BrowserError;
69486
70002
  /**
@@ -69666,17 +70182,21 @@ export type BrowserRequestHandoffErrors = {
69666
70182
  */
69667
70183
  402: BrowserError;
69668
70184
  /**
69669
- * PERMISSION_DENIED / ACCOUNT_SUSPENDED
70185
+ * PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
69670
70186
  */
69671
70187
  403: BrowserError;
69672
70188
  /**
69673
- * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
70189
+ * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
69674
70190
  */
69675
70191
  404: BrowserError;
69676
70192
  /**
69677
- * SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
70193
+ * SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
69678
70194
  */
69679
70195
  409: BrowserError;
70196
+ /**
70197
+ * BROWSER_REVOKED
70198
+ */
70199
+ 410: BrowserError;
69680
70200
  /**
69681
70201
  * ACTION_RESULT_TOO_LARGE
69682
70202
  */
@@ -69698,7 +70218,7 @@ export type BrowserRequestHandoffErrors = {
69698
70218
  */
69699
70219
  502: BrowserError;
69700
70220
  /**
69701
- * SERVICE_UNAVAILABLE
70221
+ * BROWSER_OFFLINE / SERVICE_UNAVAILABLE
69702
70222
  */
69703
70223
  503: BrowserError;
69704
70224
  /**
@@ -69739,17 +70259,21 @@ export type BrowserCompleteHandoffErrors = {
69739
70259
  */
69740
70260
  402: BrowserError;
69741
70261
  /**
69742
- * PERMISSION_DENIED / ACCOUNT_SUSPENDED
70262
+ * PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
69743
70263
  */
69744
70264
  403: BrowserError;
69745
70265
  /**
69746
- * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
70266
+ * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
69747
70267
  */
69748
70268
  404: BrowserError;
69749
70269
  /**
69750
- * SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
70270
+ * SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
69751
70271
  */
69752
70272
  409: BrowserError;
70273
+ /**
70274
+ * BROWSER_REVOKED
70275
+ */
70276
+ 410: BrowserError;
69753
70277
  /**
69754
70278
  * ACTION_RESULT_TOO_LARGE
69755
70279
  */
@@ -69771,7 +70295,7 @@ export type BrowserCompleteHandoffErrors = {
69771
70295
  */
69772
70296
  502: BrowserError;
69773
70297
  /**
69774
- * SERVICE_UNAVAILABLE
70298
+ * BROWSER_OFFLINE / SERVICE_UNAVAILABLE
69775
70299
  */
69776
70300
  503: BrowserError;
69777
70301
  /**
@@ -69821,17 +70345,21 @@ export type BrowserViewerHeartbeatErrors = {
69821
70345
  */
69822
70346
  402: BrowserError;
69823
70347
  /**
69824
- * PERMISSION_DENIED / ACCOUNT_SUSPENDED
70348
+ * PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
69825
70349
  */
69826
70350
  403: BrowserError;
69827
70351
  /**
69828
- * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
70352
+ * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
69829
70353
  */
69830
70354
  404: BrowserError;
69831
70355
  /**
69832
- * SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
70356
+ * SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
69833
70357
  */
69834
70358
  409: BrowserError;
70359
+ /**
70360
+ * BROWSER_REVOKED
70361
+ */
70362
+ 410: BrowserError;
69835
70363
  /**
69836
70364
  * ACTION_RESULT_TOO_LARGE
69837
70365
  */
@@ -69853,7 +70381,7 @@ export type BrowserViewerHeartbeatErrors = {
69853
70381
  */
69854
70382
  502: BrowserError;
69855
70383
  /**
69856
- * SERVICE_UNAVAILABLE
70384
+ * BROWSER_OFFLINE / SERVICE_UNAVAILABLE
69857
70385
  */
69858
70386
  503: BrowserError;
69859
70387
  /**
@@ -69899,17 +70427,21 @@ export type BrowserGetSessionFrameErrors = {
69899
70427
  */
69900
70428
  402: BrowserError;
69901
70429
  /**
69902
- * PERMISSION_DENIED / ACCOUNT_SUSPENDED
70430
+ * PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
69903
70431
  */
69904
70432
  403: BrowserError;
69905
70433
  /**
69906
- * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
70434
+ * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
69907
70435
  */
69908
70436
  404: BrowserError;
69909
70437
  /**
69910
- * SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
70438
+ * SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
69911
70439
  */
69912
70440
  409: BrowserError;
70441
+ /**
70442
+ * BROWSER_REVOKED
70443
+ */
70444
+ 410: BrowserError;
69913
70445
  /**
69914
70446
  * ACTION_RESULT_TOO_LARGE
69915
70447
  */
@@ -69931,7 +70463,7 @@ export type BrowserGetSessionFrameErrors = {
69931
70463
  */
69932
70464
  502: BrowserError;
69933
70465
  /**
69934
- * SERVICE_UNAVAILABLE
70466
+ * BROWSER_OFFLINE / SERVICE_UNAVAILABLE
69935
70467
  */
69936
70468
  503: BrowserError;
69937
70469
  /**
@@ -69980,17 +70512,21 @@ export type BrowserListContextsErrors = {
69980
70512
  */
69981
70513
  402: BrowserError;
69982
70514
  /**
69983
- * PERMISSION_DENIED / ACCOUNT_SUSPENDED
70515
+ * PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
69984
70516
  */
69985
70517
  403: BrowserError;
69986
70518
  /**
69987
- * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
70519
+ * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
69988
70520
  */
69989
70521
  404: BrowserError;
69990
70522
  /**
69991
- * SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
70523
+ * SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
69992
70524
  */
69993
70525
  409: BrowserError;
70526
+ /**
70527
+ * BROWSER_REVOKED
70528
+ */
70529
+ 410: BrowserError;
69994
70530
  /**
69995
70531
  * ACTION_RESULT_TOO_LARGE
69996
70532
  */
@@ -70012,7 +70548,7 @@ export type BrowserListContextsErrors = {
70012
70548
  */
70013
70549
  502: BrowserError;
70014
70550
  /**
70015
- * SERVICE_UNAVAILABLE
70551
+ * BROWSER_OFFLINE / SERVICE_UNAVAILABLE
70016
70552
  */
70017
70553
  503: BrowserError;
70018
70554
  /**
@@ -70072,17 +70608,21 @@ export type BrowserCreateContextErrors = {
70072
70608
  */
70073
70609
  402: BrowserError;
70074
70610
  /**
70075
- * PERMISSION_DENIED / ACCOUNT_SUSPENDED
70611
+ * PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
70076
70612
  */
70077
70613
  403: BrowserError;
70078
70614
  /**
70079
- * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
70615
+ * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
70080
70616
  */
70081
70617
  404: BrowserError;
70082
70618
  /**
70083
- * SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
70619
+ * SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
70084
70620
  */
70085
70621
  409: BrowserError;
70622
+ /**
70623
+ * BROWSER_REVOKED
70624
+ */
70625
+ 410: BrowserError;
70086
70626
  /**
70087
70627
  * ACTION_RESULT_TOO_LARGE
70088
70628
  */
@@ -70104,7 +70644,7 @@ export type BrowserCreateContextErrors = {
70104
70644
  */
70105
70645
  502: BrowserError;
70106
70646
  /**
70107
- * SERVICE_UNAVAILABLE
70647
+ * BROWSER_OFFLINE / SERVICE_UNAVAILABLE
70108
70648
  */
70109
70649
  503: BrowserError;
70110
70650
  /**
@@ -70145,17 +70685,21 @@ export type BrowserDeleteContextErrors = {
70145
70685
  */
70146
70686
  402: BrowserError;
70147
70687
  /**
70148
- * PERMISSION_DENIED / ACCOUNT_SUSPENDED
70688
+ * PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
70149
70689
  */
70150
70690
  403: BrowserError;
70151
70691
  /**
70152
- * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
70692
+ * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
70153
70693
  */
70154
70694
  404: BrowserError;
70155
70695
  /**
70156
- * SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
70696
+ * SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
70157
70697
  */
70158
70698
  409: BrowserError;
70699
+ /**
70700
+ * BROWSER_REVOKED
70701
+ */
70702
+ 410: BrowserError;
70159
70703
  /**
70160
70704
  * ACTION_RESULT_TOO_LARGE
70161
70705
  */
@@ -70177,7 +70721,7 @@ export type BrowserDeleteContextErrors = {
70177
70721
  */
70178
70722
  502: BrowserError;
70179
70723
  /**
70180
- * SERVICE_UNAVAILABLE
70724
+ * BROWSER_OFFLINE / SERVICE_UNAVAILABLE
70181
70725
  */
70182
70726
  503: BrowserError;
70183
70727
  /**
@@ -70223,101 +70767,661 @@ export type BrowserGetContextErrors = {
70223
70767
  */
70224
70768
  402: BrowserError;
70225
70769
  /**
70226
- * PERMISSION_DENIED / ACCOUNT_SUSPENDED
70770
+ * PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
70771
+ */
70772
+ 403: BrowserError;
70773
+ /**
70774
+ * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
70775
+ */
70776
+ 404: BrowserError;
70777
+ /**
70778
+ * SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
70779
+ */
70780
+ 409: BrowserError;
70781
+ /**
70782
+ * BROWSER_REVOKED
70783
+ */
70784
+ 410: BrowserError;
70785
+ /**
70786
+ * ACTION_RESULT_TOO_LARGE
70787
+ */
70788
+ 413: BrowserError;
70789
+ /**
70790
+ * CONCURRENCY_LIMIT / RATE_LIMITED / PROVIDER_CAPACITY
70791
+ */
70792
+ 429: BrowserError;
70793
+ /**
70794
+ * INTERNAL
70795
+ */
70796
+ 500: BrowserError;
70797
+ /**
70798
+ * NOT_IMPLEMENTED / PROVIDER_UNSUPPORTED
70799
+ */
70800
+ 501: BrowserError;
70801
+ /**
70802
+ * PROVIDER_FAILED
70803
+ */
70804
+ 502: BrowserError;
70805
+ /**
70806
+ * BROWSER_OFFLINE / SERVICE_UNAVAILABLE
70807
+ */
70808
+ 503: BrowserError;
70809
+ /**
70810
+ * ACTION_TIMEOUT
70811
+ */
70812
+ 504: BrowserError;
70813
+ };
70814
+ export type BrowserGetContextError = BrowserGetContextErrors[keyof BrowserGetContextErrors];
70815
+ export type BrowserGetContextResponses = {
70816
+ /**
70817
+ * 请求成功。
70818
+ */
70819
+ 200: BrowserContext;
70820
+ };
70821
+ export type BrowserGetContextResponse = BrowserGetContextResponses[keyof BrowserGetContextResponses];
70822
+ export type BrowserUpdateContextData = {
70823
+ body: {
70824
+ /**
70825
+ * 登录态名称;非空时为 1–128 个 ASCII 字母、数字或 . _ : -,在当前账户内唯一;空字符串表示不设名称或清除名称。
70826
+ */
70827
+ name?: '' | unknown;
70828
+ /**
70829
+ * 自定义字符串标签;最多 32 项,键最多 128 个 UTF-8 字节,值最多 1024 个 UTF-8 字节。 更新时整体替换;空对象清除标签,省略则保留。
70830
+ */
70831
+ labels?: {
70832
+ [key: string]: string;
70833
+ };
70834
+ };
70835
+ path: {
70836
+ /**
70837
+ * 登录态 ID;使用创建或列出登录态返回的 id,以 bsc_ 开头。
70838
+ */
70839
+ contextId: string;
70840
+ };
70841
+ query?: never;
70842
+ url: '/browser/v1/contexts/{contextId}';
70843
+ };
70844
+ export type BrowserUpdateContextErrors = {
70845
+ /**
70846
+ * INVALID_PARAMS / INVALID_FILTER / INVALID_PAGE_TOKEN
70847
+ */
70848
+ 400: BrowserError;
70849
+ /**
70850
+ * UNAUTHENTICATED / CONNECT_SIGNATURE_INVALID
70851
+ */
70852
+ 401: BrowserError;
70853
+ /**
70854
+ * INSUFFICIENT_BALANCE / QUOTA_EXHAUSTED
70855
+ */
70856
+ 402: BrowserError;
70857
+ /**
70858
+ * PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
70859
+ */
70860
+ 403: BrowserError;
70861
+ /**
70862
+ * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
70863
+ */
70864
+ 404: BrowserError;
70865
+ /**
70866
+ * SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
70867
+ */
70868
+ 409: BrowserError;
70869
+ /**
70870
+ * BROWSER_REVOKED
70871
+ */
70872
+ 410: BrowserError;
70873
+ /**
70874
+ * ACTION_RESULT_TOO_LARGE
70875
+ */
70876
+ 413: BrowserError;
70877
+ /**
70878
+ * CONCURRENCY_LIMIT / RATE_LIMITED / PROVIDER_CAPACITY
70879
+ */
70880
+ 429: BrowserError;
70881
+ /**
70882
+ * INTERNAL
70883
+ */
70884
+ 500: BrowserError;
70885
+ /**
70886
+ * NOT_IMPLEMENTED / PROVIDER_UNSUPPORTED
70887
+ */
70888
+ 501: BrowserError;
70889
+ /**
70890
+ * PROVIDER_FAILED
70891
+ */
70892
+ 502: BrowserError;
70893
+ /**
70894
+ * BROWSER_OFFLINE / SERVICE_UNAVAILABLE
70895
+ */
70896
+ 503: BrowserError;
70897
+ /**
70898
+ * ACTION_TIMEOUT
70899
+ */
70900
+ 504: BrowserError;
70901
+ };
70902
+ export type BrowserUpdateContextError = BrowserUpdateContextErrors[keyof BrowserUpdateContextErrors];
70903
+ export type BrowserUpdateContextResponses = {
70904
+ /**
70905
+ * 请求成功。
70906
+ */
70907
+ 200: BrowserContext;
70908
+ };
70909
+ export type BrowserUpdateContextResponse = BrowserUpdateContextResponses[keyof BrowserUpdateContextResponses];
70910
+ export type BrowserCreateByobPairingData = {
70911
+ body?: never;
70912
+ path?: never;
70913
+ query?: never;
70914
+ url: '/browser/v1/byob/pairings';
70915
+ };
70916
+ export type BrowserCreateByobPairingErrors = {
70917
+ /**
70918
+ * INVALID_PARAMS / INVALID_FILTER / INVALID_PAGE_TOKEN
70919
+ */
70920
+ 400: BrowserError;
70921
+ /**
70922
+ * UNAUTHENTICATED / CONNECT_SIGNATURE_INVALID
70923
+ */
70924
+ 401: BrowserError;
70925
+ /**
70926
+ * INSUFFICIENT_BALANCE / QUOTA_EXHAUSTED
70927
+ */
70928
+ 402: BrowserError;
70929
+ /**
70930
+ * PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
70931
+ */
70932
+ 403: BrowserError;
70933
+ /**
70934
+ * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
70935
+ */
70936
+ 404: BrowserError;
70937
+ /**
70938
+ * SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
70939
+ */
70940
+ 409: BrowserError;
70941
+ /**
70942
+ * BROWSER_REVOKED
70943
+ */
70944
+ 410: BrowserError;
70945
+ /**
70946
+ * ACTION_RESULT_TOO_LARGE
70947
+ */
70948
+ 413: BrowserError;
70949
+ /**
70950
+ * CONCURRENCY_LIMIT / RATE_LIMITED / PROVIDER_CAPACITY
70951
+ */
70952
+ 429: BrowserError;
70953
+ /**
70954
+ * INTERNAL
70955
+ */
70956
+ 500: BrowserError;
70957
+ /**
70958
+ * NOT_IMPLEMENTED / PROVIDER_UNSUPPORTED
70959
+ */
70960
+ 501: BrowserError;
70961
+ /**
70962
+ * PROVIDER_FAILED
70963
+ */
70964
+ 502: BrowserError;
70965
+ /**
70966
+ * BROWSER_OFFLINE / SERVICE_UNAVAILABLE
70967
+ */
70968
+ 503: BrowserError;
70969
+ /**
70970
+ * ACTION_TIMEOUT
70971
+ */
70972
+ 504: BrowserError;
70973
+ };
70974
+ export type BrowserCreateByobPairingError = BrowserCreateByobPairingErrors[keyof BrowserCreateByobPairingErrors];
70975
+ export type BrowserCreateByobPairingResponses = {
70976
+ /**
70977
+ * 请求成功。
70978
+ */
70979
+ 201: BrowserByobPairing;
70980
+ };
70981
+ export type BrowserCreateByobPairingResponse = BrowserCreateByobPairingResponses[keyof BrowserCreateByobPairingResponses];
70982
+ export type BrowserListByobBrowsersData = {
70983
+ body?: never;
70984
+ path?: never;
70985
+ query?: {
70986
+ /**
70987
+ * 上一页返回的 nextCursor,原样传入;省略时读取第一页。
70988
+ */
70989
+ cursor?: string;
70990
+ /**
70991
+ * 每页最多返回的浏览器数量;默认 50,范围 1–100。
70992
+ */
70993
+ limit?: number;
70994
+ };
70995
+ url: '/browser/v1/byob/browsers';
70996
+ };
70997
+ export type BrowserListByobBrowsersErrors = {
70998
+ /**
70999
+ * INVALID_PARAMS / INVALID_FILTER / INVALID_PAGE_TOKEN
71000
+ */
71001
+ 400: BrowserError;
71002
+ /**
71003
+ * UNAUTHENTICATED / CONNECT_SIGNATURE_INVALID
71004
+ */
71005
+ 401: BrowserError;
71006
+ /**
71007
+ * INSUFFICIENT_BALANCE / QUOTA_EXHAUSTED
71008
+ */
71009
+ 402: BrowserError;
71010
+ /**
71011
+ * PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
71012
+ */
71013
+ 403: BrowserError;
71014
+ /**
71015
+ * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
71016
+ */
71017
+ 404: BrowserError;
71018
+ /**
71019
+ * SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
71020
+ */
71021
+ 409: BrowserError;
71022
+ /**
71023
+ * BROWSER_REVOKED
71024
+ */
71025
+ 410: BrowserError;
71026
+ /**
71027
+ * ACTION_RESULT_TOO_LARGE
71028
+ */
71029
+ 413: BrowserError;
71030
+ /**
71031
+ * CONCURRENCY_LIMIT / RATE_LIMITED / PROVIDER_CAPACITY
71032
+ */
71033
+ 429: BrowserError;
71034
+ /**
71035
+ * INTERNAL
71036
+ */
71037
+ 500: BrowserError;
71038
+ /**
71039
+ * NOT_IMPLEMENTED / PROVIDER_UNSUPPORTED
71040
+ */
71041
+ 501: BrowserError;
71042
+ /**
71043
+ * PROVIDER_FAILED
71044
+ */
71045
+ 502: BrowserError;
71046
+ /**
71047
+ * BROWSER_OFFLINE / SERVICE_UNAVAILABLE
71048
+ */
71049
+ 503: BrowserError;
71050
+ /**
71051
+ * ACTION_TIMEOUT
71052
+ */
71053
+ 504: BrowserError;
71054
+ };
71055
+ export type BrowserListByobBrowsersError = BrowserListByobBrowsersErrors[keyof BrowserListByobBrowsersErrors];
71056
+ export type BrowserListByobBrowsersResponses = {
71057
+ /**
71058
+ * 分页列出的自带浏览器,按 ID 升序。
71059
+ */
71060
+ 200: {
71061
+ /**
71062
+ * 本页的自带浏览器;已断开的不在列表里。
71063
+ */
71064
+ data: Array<BrowserByobBrowser>;
71065
+ /**
71066
+ * 下一页游标;原样传入 cursor,null 表示没有更多结果。
71067
+ */
71068
+ nextCursor: string | null;
71069
+ };
71070
+ };
71071
+ export type BrowserListByobBrowsersResponse = BrowserListByobBrowsersResponses[keyof BrowserListByobBrowsersResponses];
71072
+ export type BrowserGetByobBrowserData = {
71073
+ body?: never;
71074
+ path: {
71075
+ /**
71076
+ * 自带浏览器 ID,以 byb_ 开头;使用配对认领或列出自带浏览器返回的 id。
71077
+ */
71078
+ browser_id: string;
71079
+ };
71080
+ query?: never;
71081
+ url: '/browser/v1/byob/browsers/{browser_id}';
71082
+ };
71083
+ export type BrowserGetByobBrowserErrors = {
71084
+ /**
71085
+ * INVALID_PARAMS / INVALID_FILTER / INVALID_PAGE_TOKEN
71086
+ */
71087
+ 400: BrowserError;
71088
+ /**
71089
+ * UNAUTHENTICATED / CONNECT_SIGNATURE_INVALID
71090
+ */
71091
+ 401: BrowserError;
71092
+ /**
71093
+ * INSUFFICIENT_BALANCE / QUOTA_EXHAUSTED
71094
+ */
71095
+ 402: BrowserError;
71096
+ /**
71097
+ * PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
71098
+ */
71099
+ 403: BrowserError;
71100
+ /**
71101
+ * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
71102
+ */
71103
+ 404: BrowserError;
71104
+ /**
71105
+ * SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
71106
+ */
71107
+ 409: BrowserError;
71108
+ /**
71109
+ * BROWSER_REVOKED
71110
+ */
71111
+ 410: BrowserError;
71112
+ /**
71113
+ * ACTION_RESULT_TOO_LARGE
71114
+ */
71115
+ 413: BrowserError;
71116
+ /**
71117
+ * CONCURRENCY_LIMIT / RATE_LIMITED / PROVIDER_CAPACITY
71118
+ */
71119
+ 429: BrowserError;
71120
+ /**
71121
+ * INTERNAL
71122
+ */
71123
+ 500: BrowserError;
71124
+ /**
71125
+ * NOT_IMPLEMENTED / PROVIDER_UNSUPPORTED
71126
+ */
71127
+ 501: BrowserError;
71128
+ /**
71129
+ * PROVIDER_FAILED
71130
+ */
71131
+ 502: BrowserError;
71132
+ /**
71133
+ * BROWSER_OFFLINE / SERVICE_UNAVAILABLE
71134
+ */
71135
+ 503: BrowserError;
71136
+ /**
71137
+ * ACTION_TIMEOUT
71138
+ */
71139
+ 504: BrowserError;
71140
+ };
71141
+ export type BrowserGetByobBrowserError = BrowserGetByobBrowserErrors[keyof BrowserGetByobBrowserErrors];
71142
+ export type BrowserGetByobBrowserResponses = {
71143
+ /**
71144
+ * 请求成功。
71145
+ */
71146
+ 200: BrowserByobBrowser;
71147
+ };
71148
+ export type BrowserGetByobBrowserResponse = BrowserGetByobBrowserResponses[keyof BrowserGetByobBrowserResponses];
71149
+ export type BrowserUpdateByobBrowserData = {
71150
+ body: {
71151
+ /**
71152
+ * 新的显示名称,1–80 个字符。
71153
+ */
71154
+ name?: string;
71155
+ };
71156
+ path: {
71157
+ /**
71158
+ * 自带浏览器 ID,以 byb_ 开头;使用配对认领或列出自带浏览器返回的 id。
71159
+ */
71160
+ browser_id: string;
71161
+ };
71162
+ query?: never;
71163
+ url: '/browser/v1/byob/browsers/{browser_id}';
71164
+ };
71165
+ export type BrowserUpdateByobBrowserErrors = {
71166
+ /**
71167
+ * INVALID_PARAMS / INVALID_FILTER / INVALID_PAGE_TOKEN
71168
+ */
71169
+ 400: BrowserError;
71170
+ /**
71171
+ * UNAUTHENTICATED / CONNECT_SIGNATURE_INVALID
71172
+ */
71173
+ 401: BrowserError;
71174
+ /**
71175
+ * INSUFFICIENT_BALANCE / QUOTA_EXHAUSTED
71176
+ */
71177
+ 402: BrowserError;
71178
+ /**
71179
+ * PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
71180
+ */
71181
+ 403: BrowserError;
71182
+ /**
71183
+ * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
71184
+ */
71185
+ 404: BrowserError;
71186
+ /**
71187
+ * SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
71188
+ */
71189
+ 409: BrowserError;
71190
+ /**
71191
+ * BROWSER_REVOKED
71192
+ */
71193
+ 410: BrowserError;
71194
+ /**
71195
+ * ACTION_RESULT_TOO_LARGE
71196
+ */
71197
+ 413: BrowserError;
71198
+ /**
71199
+ * CONCURRENCY_LIMIT / RATE_LIMITED / PROVIDER_CAPACITY
71200
+ */
71201
+ 429: BrowserError;
71202
+ /**
71203
+ * INTERNAL
71204
+ */
71205
+ 500: BrowserError;
71206
+ /**
71207
+ * NOT_IMPLEMENTED / PROVIDER_UNSUPPORTED
71208
+ */
71209
+ 501: BrowserError;
71210
+ /**
71211
+ * PROVIDER_FAILED
71212
+ */
71213
+ 502: BrowserError;
71214
+ /**
71215
+ * BROWSER_OFFLINE / SERVICE_UNAVAILABLE
71216
+ */
71217
+ 503: BrowserError;
71218
+ /**
71219
+ * ACTION_TIMEOUT
71220
+ */
71221
+ 504: BrowserError;
71222
+ };
71223
+ export type BrowserUpdateByobBrowserError = BrowserUpdateByobBrowserErrors[keyof BrowserUpdateByobBrowserErrors];
71224
+ export type BrowserUpdateByobBrowserResponses = {
71225
+ /**
71226
+ * 请求成功。
71227
+ */
71228
+ 200: BrowserByobBrowser;
71229
+ };
71230
+ export type BrowserUpdateByobBrowserResponse = BrowserUpdateByobBrowserResponses[keyof BrowserUpdateByobBrowserResponses];
71231
+ export type BrowserDisconnectByobBrowserData = {
71232
+ body?: never;
71233
+ path: {
71234
+ /**
71235
+ * 自带浏览器 ID,以 byb_ 开头;使用配对认领或列出自带浏览器返回的 id。
71236
+ */
71237
+ browser_id: string;
71238
+ };
71239
+ query?: never;
71240
+ url: '/browser/v1/byob/browsers/{browser_id}/disconnect';
71241
+ };
71242
+ export type BrowserDisconnectByobBrowserErrors = {
71243
+ /**
71244
+ * INVALID_PARAMS / INVALID_FILTER / INVALID_PAGE_TOKEN
71245
+ */
71246
+ 400: BrowserError;
71247
+ /**
71248
+ * UNAUTHENTICATED / CONNECT_SIGNATURE_INVALID
71249
+ */
71250
+ 401: BrowserError;
71251
+ /**
71252
+ * INSUFFICIENT_BALANCE / QUOTA_EXHAUSTED
71253
+ */
71254
+ 402: BrowserError;
71255
+ /**
71256
+ * PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
71257
+ */
71258
+ 403: BrowserError;
71259
+ /**
71260
+ * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
71261
+ */
71262
+ 404: BrowserError;
71263
+ /**
71264
+ * SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
71265
+ */
71266
+ 409: BrowserError;
71267
+ /**
71268
+ * BROWSER_REVOKED
71269
+ */
71270
+ 410: BrowserError;
71271
+ /**
71272
+ * ACTION_RESULT_TOO_LARGE
71273
+ */
71274
+ 413: BrowserError;
71275
+ /**
71276
+ * CONCURRENCY_LIMIT / RATE_LIMITED / PROVIDER_CAPACITY
71277
+ */
71278
+ 429: BrowserError;
71279
+ /**
71280
+ * INTERNAL
71281
+ */
71282
+ 500: BrowserError;
71283
+ /**
71284
+ * NOT_IMPLEMENTED / PROVIDER_UNSUPPORTED
71285
+ */
71286
+ 501: BrowserError;
71287
+ /**
71288
+ * PROVIDER_FAILED
71289
+ */
71290
+ 502: BrowserError;
71291
+ /**
71292
+ * BROWSER_OFFLINE / SERVICE_UNAVAILABLE
71293
+ */
71294
+ 503: BrowserError;
71295
+ /**
71296
+ * ACTION_TIMEOUT
71297
+ */
71298
+ 504: BrowserError;
71299
+ };
71300
+ export type BrowserDisconnectByobBrowserError = BrowserDisconnectByobBrowserErrors[keyof BrowserDisconnectByobBrowserErrors];
71301
+ export type BrowserDisconnectByobBrowserResponses = {
71302
+ /**
71303
+ * 请求成功。
71304
+ */
71305
+ 200: BrowserByobBrowser;
71306
+ };
71307
+ export type BrowserDisconnectByobBrowserResponse = BrowserDisconnectByobBrowserResponses[keyof BrowserDisconnectByobBrowserResponses];
71308
+ export type BrowserReadByobPairingData = {
71309
+ body?: never;
71310
+ path: {
71311
+ /**
71312
+ * 8 位配对码,来自创建配对码的结果。
71313
+ */
71314
+ code: string;
71315
+ };
71316
+ query?: never;
71317
+ url: '/browser/v1/byob/pairings/{code}';
71318
+ };
71319
+ export type BrowserReadByobPairingErrors = {
71320
+ /**
71321
+ * INVALID_PARAMS / INVALID_FILTER / INVALID_PAGE_TOKEN
71322
+ */
71323
+ 400: BrowserError;
71324
+ /**
71325
+ * UNAUTHENTICATED / CONNECT_SIGNATURE_INVALID
71326
+ */
71327
+ 401: BrowserError;
71328
+ /**
71329
+ * INSUFFICIENT_BALANCE / QUOTA_EXHAUSTED
71330
+ */
71331
+ 402: BrowserError;
71332
+ /**
71333
+ * PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
71334
+ */
71335
+ 403: BrowserError;
71336
+ /**
71337
+ * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
71338
+ */
71339
+ 404: BrowserError;
71340
+ /**
71341
+ * SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
71342
+ */
71343
+ 409: BrowserError;
71344
+ /**
71345
+ * BROWSER_REVOKED
71346
+ */
71347
+ 410: BrowserError;
71348
+ /**
71349
+ * ACTION_RESULT_TOO_LARGE
71350
+ */
71351
+ 413: BrowserError;
71352
+ /**
71353
+ * CONCURRENCY_LIMIT / RATE_LIMITED / PROVIDER_CAPACITY
71354
+ */
71355
+ 429: BrowserError;
71356
+ /**
71357
+ * INTERNAL
71358
+ */
71359
+ 500: BrowserError;
71360
+ /**
71361
+ * NOT_IMPLEMENTED / PROVIDER_UNSUPPORTED
71362
+ */
71363
+ 501: BrowserError;
71364
+ /**
71365
+ * PROVIDER_FAILED
71366
+ */
71367
+ 502: BrowserError;
71368
+ /**
71369
+ * BROWSER_OFFLINE / SERVICE_UNAVAILABLE
71370
+ */
71371
+ 503: BrowserError;
71372
+ /**
71373
+ * ACTION_TIMEOUT
71374
+ */
71375
+ 504: BrowserError;
71376
+ };
71377
+ export type BrowserReadByobPairingError = BrowserReadByobPairingErrors[keyof BrowserReadByobPairingErrors];
71378
+ export type BrowserReadByobPairingResponses = {
71379
+ /**
71380
+ * 请求成功。
71381
+ */
71382
+ 200: BrowserByobPairingView;
71383
+ };
71384
+ export type BrowserReadByobPairingResponse = BrowserReadByobPairingResponses[keyof BrowserReadByobPairingResponses];
71385
+ export type BrowserClaimByobPairingData = {
71386
+ body: BrowserByobClaim;
71387
+ path: {
71388
+ /**
71389
+ * 8 位配对码,来自创建配对码的结果。
71390
+ */
71391
+ code: string;
71392
+ };
71393
+ query?: never;
71394
+ url: '/browser/v1/byob/pairings/{code}/claim';
71395
+ };
71396
+ export type BrowserClaimByobPairingErrors = {
71397
+ /**
71398
+ * INVALID_PARAMS / INVALID_FILTER / INVALID_PAGE_TOKEN
71399
+ */
71400
+ 400: BrowserError;
71401
+ /**
71402
+ * UNAUTHENTICATED / CONNECT_SIGNATURE_INVALID
71403
+ */
71404
+ 401: BrowserError;
71405
+ /**
71406
+ * INSUFFICIENT_BALANCE / QUOTA_EXHAUSTED
71407
+ */
71408
+ 402: BrowserError;
71409
+ /**
71410
+ * PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
70227
71411
  */
70228
71412
  403: BrowserError;
70229
71413
  /**
70230
- * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
71414
+ * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
70231
71415
  */
70232
71416
  404: BrowserError;
70233
71417
  /**
70234
- * SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
71418
+ * SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
70235
71419
  */
70236
71420
  409: BrowserError;
70237
71421
  /**
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
71422
+ * BROWSER_REVOKED
70255
71423
  */
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;
71424
+ 410: BrowserError;
70321
71425
  /**
70322
71426
  * ACTION_RESULT_TOO_LARGE
70323
71427
  */
@@ -70339,7 +71443,7 @@ export type BrowserUpdateContextErrors = {
70339
71443
  */
70340
71444
  502: BrowserError;
70341
71445
  /**
70342
- * SERVICE_UNAVAILABLE
71446
+ * BROWSER_OFFLINE / SERVICE_UNAVAILABLE
70343
71447
  */
70344
71448
  503: BrowserError;
70345
71449
  /**
@@ -70347,14 +71451,14 @@ export type BrowserUpdateContextErrors = {
70347
71451
  */
70348
71452
  504: BrowserError;
70349
71453
  };
70350
- export type BrowserUpdateContextError = BrowserUpdateContextErrors[keyof BrowserUpdateContextErrors];
70351
- export type BrowserUpdateContextResponses = {
71454
+ export type BrowserClaimByobPairingError = BrowserClaimByobPairingErrors[keyof BrowserClaimByobPairingErrors];
71455
+ export type BrowserClaimByobPairingResponses = {
70352
71456
  /**
70353
- * 请求成功。
71457
+ * 认领成功。
70354
71458
  */
70355
- 200: BrowserContext;
71459
+ 201: BrowserByobClaimResult;
70356
71460
  };
70357
- export type BrowserUpdateContextResponse = BrowserUpdateContextResponses[keyof BrowserUpdateContextResponses];
71461
+ export type BrowserClaimByobPairingResponse = BrowserClaimByobPairingResponses[keyof BrowserClaimByobPairingResponses];
70358
71462
  export type BrowserConnectData = {
70359
71463
  body?: never;
70360
71464
  path?: never;
@@ -70412,17 +71516,21 @@ export type BrowserConnectErrors = {
70412
71516
  */
70413
71517
  402: BrowserError;
70414
71518
  /**
70415
- * PERMISSION_DENIED / ACCOUNT_SUSPENDED
71519
+ * PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
70416
71520
  */
70417
71521
  403: BrowserError;
70418
71522
  /**
70419
- * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
71523
+ * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
70420
71524
  */
70421
71525
  404: BrowserError;
70422
71526
  /**
70423
- * SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
71527
+ * SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
70424
71528
  */
70425
71529
  409: BrowserError;
71530
+ /**
71531
+ * BROWSER_REVOKED
71532
+ */
71533
+ 410: BrowserError;
70426
71534
  /**
70427
71535
  * ACTION_RESULT_TOO_LARGE
70428
71536
  */
@@ -70444,7 +71552,7 @@ export type BrowserConnectErrors = {
70444
71552
  */
70445
71553
  502: BrowserError;
70446
71554
  /**
70447
- * SERVICE_UNAVAILABLE
71555
+ * BROWSER_OFFLINE / SERVICE_UNAVAILABLE
70448
71556
  */
70449
71557
  503: BrowserError;
70450
71558
  /**
@@ -70487,17 +71595,21 @@ export type BrowserLiveViewErrors = {
70487
71595
  */
70488
71596
  402: BrowserError;
70489
71597
  /**
70490
- * PERMISSION_DENIED / ACCOUNT_SUSPENDED
71598
+ * PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
70491
71599
  */
70492
71600
  403: BrowserError;
70493
71601
  /**
70494
- * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
71602
+ * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
70495
71603
  */
70496
71604
  404: BrowserError;
70497
71605
  /**
70498
- * SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
71606
+ * SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
70499
71607
  */
70500
71608
  409: BrowserError;
71609
+ /**
71610
+ * BROWSER_REVOKED
71611
+ */
71612
+ 410: BrowserError;
70501
71613
  /**
70502
71614
  * ACTION_RESULT_TOO_LARGE
70503
71615
  */
@@ -70519,7 +71631,7 @@ export type BrowserLiveViewErrors = {
70519
71631
  */
70520
71632
  502: BrowserError;
70521
71633
  /**
70522
- * SERVICE_UNAVAILABLE
71634
+ * BROWSER_OFFLINE / SERVICE_UNAVAILABLE
70523
71635
  */
70524
71636
  503: BrowserError;
70525
71637
  /**
@@ -70553,17 +71665,21 @@ export type BrowserStreamSessionErrors = {
70553
71665
  */
70554
71666
  402: BrowserError;
70555
71667
  /**
70556
- * PERMISSION_DENIED / ACCOUNT_SUSPENDED
71668
+ * PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
70557
71669
  */
70558
71670
  403: BrowserError;
70559
71671
  /**
70560
- * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
71672
+ * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
70561
71673
  */
70562
71674
  404: BrowserError;
70563
71675
  /**
70564
- * SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
71676
+ * SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
70565
71677
  */
70566
71678
  409: BrowserError;
71679
+ /**
71680
+ * BROWSER_REVOKED
71681
+ */
71682
+ 410: BrowserError;
70567
71683
  /**
70568
71684
  * ACTION_RESULT_TOO_LARGE
70569
71685
  */
@@ -70585,7 +71701,7 @@ export type BrowserStreamSessionErrors = {
70585
71701
  */
70586
71702
  502: BrowserError;
70587
71703
  /**
70588
- * SERVICE_UNAVAILABLE
71704
+ * BROWSER_OFFLINE / SERVICE_UNAVAILABLE
70589
71705
  */
70590
71706
  503: BrowserError;
70591
71707
  /**
@@ -70626,17 +71742,21 @@ export type BrowserStreamSessionFramesErrors = {
70626
71742
  */
70627
71743
  402: BrowserError;
70628
71744
  /**
70629
- * PERMISSION_DENIED / ACCOUNT_SUSPENDED
71745
+ * PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
70630
71746
  */
70631
71747
  403: BrowserError;
70632
71748
  /**
70633
- * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
71749
+ * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
70634
71750
  */
70635
71751
  404: BrowserError;
70636
71752
  /**
70637
- * SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
71753
+ * SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
70638
71754
  */
70639
71755
  409: BrowserError;
71756
+ /**
71757
+ * BROWSER_REVOKED
71758
+ */
71759
+ 410: BrowserError;
70640
71760
  /**
70641
71761
  * ACTION_RESULT_TOO_LARGE
70642
71762
  */
@@ -70658,7 +71778,7 @@ export type BrowserStreamSessionFramesErrors = {
70658
71778
  */
70659
71779
  502: BrowserError;
70660
71780
  /**
70661
- * SERVICE_UNAVAILABLE
71781
+ * BROWSER_OFFLINE / SERVICE_UNAVAILABLE
70662
71782
  */
70663
71783
  503: BrowserError;
70664
71784
  /**
@@ -71054,7 +72174,7 @@ export type FileCreateSignedUploadErrors = {
71054
72174
  */
71055
72175
  401: unknown;
71056
72176
  /**
71057
- * PERMISSION_DENIED or BINDING_READ_ONLY: use a credential with the required create or file-write authority.
72177
+ * 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
72178
  */
71059
72179
  403: unknown;
71060
72180
  };
@@ -77963,10 +79083,18 @@ export type GetOrganizationNotificationsInboxData = {
77963
79083
  url: '/organization/v1/notifications/inbox';
77964
79084
  };
77965
79085
  export type GetOrganizationNotificationsInboxErrors = {
79086
+ /**
79087
+ * `INVALID_PARAMS` from the service for a read it cannot answer (RFC 9457 problem).
79088
+ */
79089
+ 400: unknown;
77966
79090
  /**
77967
79091
  * Missing or invalid credential (RFC 9457 problem).
77968
79092
  */
77969
79093
  401: unknown;
79094
+ /**
79095
+ * 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.
79096
+ */
79097
+ 502: unknown;
77970
79098
  };
77971
79099
  export type GetOrganizationNotificationsInboxResponses = {
77972
79100
  /**
@@ -78009,13 +79137,17 @@ export type ListOrganizationNotificationLettersData = {
78009
79137
  };
78010
79138
  export type ListOrganizationNotificationLettersErrors = {
78011
79139
  /**
78012
- * Invalid status, archived or limit (RFC 9457 problem).
79140
+ * A bad `status`, `archived` or `limit`, or `INVALID_PARAMS` from the service for a cursor it did not issue (RFC 9457 problem).
78013
79141
  */
78014
79142
  400: unknown;
78015
79143
  /**
78016
79144
  * Missing or invalid credential (RFC 9457 problem).
78017
79145
  */
78018
79146
  401: unknown;
79147
+ /**
79148
+ * 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.
79149
+ */
79150
+ 502: unknown;
78019
79151
  };
78020
79152
  export type ListOrganizationNotificationLettersResponses = {
78021
79153
  /**
@@ -78118,7 +79250,7 @@ export type GetOrganizationNotificationLetterData = {
78118
79250
  };
78119
79251
  export type GetOrganizationNotificationLetterErrors = {
78120
79252
  /**
78121
- * The id is not a letter id (RFC 9457 problem).
79253
+ * The id is not a letter id — `INVALID_PARAMS` from the service (RFC 9457 problem).
78122
79254
  */
78123
79255
  400: unknown;
78124
79256
  /**
@@ -78126,9 +79258,13 @@ export type GetOrganizationNotificationLetterErrors = {
78126
79258
  */
78127
79259
  401: unknown;
78128
79260
  /**
78129
- * No such letter in your mailbox (RFC 9457 problem).
79261
+ * 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
79262
  */
78131
79263
  404: unknown;
79264
+ /**
79265
+ * 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.
79266
+ */
79267
+ 502: unknown;
78132
79268
  };
78133
79269
  export type GetOrganizationNotificationLetterResponses = {
78134
79270
  /**
@@ -78218,7 +79354,7 @@ export type ReadOrganizationNotificationLetterData = {
78218
79354
  };
78219
79355
  export type ReadOrganizationNotificationLetterErrors = {
78220
79356
  /**
78221
- * The id is not a letter id (RFC 9457 problem).
79357
+ * The id is not a letter id — `INVALID_PARAMS` from the service (RFC 9457 problem).
78222
79358
  */
78223
79359
  400: unknown;
78224
79360
  /**
@@ -78226,9 +79362,13 @@ export type ReadOrganizationNotificationLetterErrors = {
78226
79362
  */
78227
79363
  401: unknown;
78228
79364
  /**
78229
- * No such letter in your mailbox (RFC 9457 problem).
79365
+ * No such letter in your mailbox in this organization — `MESSAGE_NOT_FOUND` (RFC 9457 problem).
78230
79366
  */
78231
79367
  404: unknown;
79368
+ /**
79369
+ * 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.
79370
+ */
79371
+ 502: unknown;
78232
79372
  };
78233
79373
  export type ReadOrganizationNotificationLetterResponses = {
78234
79374
  /**
@@ -78255,13 +79395,17 @@ export type ReadAllOrganizationNotificationLettersData = {
78255
79395
  };
78256
79396
  export type ReadAllOrganizationNotificationLettersErrors = {
78257
79397
  /**
78258
- * The body is not a JSON object, or kind is unknown (RFC 9457 problem).
79398
+ * The body is not a JSON object, `kind` is unknown, or `INVALID_PARAMS` from the service (RFC 9457 problem).
78259
79399
  */
78260
79400
  400: unknown;
78261
79401
  /**
78262
79402
  * Missing or invalid credential (RFC 9457 problem).
78263
79403
  */
78264
79404
  401: unknown;
79405
+ /**
79406
+ * 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.
79407
+ */
79408
+ 502: unknown;
78265
79409
  };
78266
79410
  export type ReadAllOrganizationNotificationLettersResponses = {
78267
79411
  /**
@@ -78288,7 +79432,7 @@ export type ArchiveOrganizationNotificationLetterData = {
78288
79432
  };
78289
79433
  export type ArchiveOrganizationNotificationLetterErrors = {
78290
79434
  /**
78291
- * The id is not a letter id (RFC 9457 problem).
79435
+ * The id is not a letter id — `INVALID_PARAMS` from the service (RFC 9457 problem).
78292
79436
  */
78293
79437
  400: unknown;
78294
79438
  /**
@@ -78296,9 +79440,13 @@ export type ArchiveOrganizationNotificationLetterErrors = {
78296
79440
  */
78297
79441
  401: unknown;
78298
79442
  /**
78299
- * No such letter in your mailbox (RFC 9457 problem).
79443
+ * No such letter in your mailbox in this organization — `MESSAGE_NOT_FOUND` (RFC 9457 problem).
78300
79444
  */
78301
79445
  404: unknown;
79446
+ /**
79447
+ * 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.
79448
+ */
79449
+ 502: unknown;
78302
79450
  };
78303
79451
  export type ArchiveOrganizationNotificationLetterResponses = {
78304
79452
  /**
@@ -78323,6 +79471,10 @@ export type GetOrganizationNotificationPreferencesErrors = {
78323
79471
  * Missing or invalid credential (RFC 9457 problem).
78324
79472
  */
78325
79473
  401: unknown;
79474
+ /**
79475
+ * 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.
79476
+ */
79477
+ 502: unknown;
78326
79478
  };
78327
79479
  export type GetOrganizationNotificationPreferencesResponses = {
78328
79480
  /**
@@ -78414,7 +79566,7 @@ export type UpdateOrganizationNotificationPreferencesData = {
78414
79566
  };
78415
79567
  export type UpdateOrganizationNotificationPreferencesErrors = {
78416
79568
  /**
78417
- * Invalid switch, unknown category or unoffered channel (RFC 9457 problem).
79569
+ * Invalid switch, unknown category or unoffered channel — `INVALID_PARAMS`, `NOT_CONFIGURABLE` or `CRITICAL_CHANNELS_OFF` from the service (RFC 9457 problem).
78418
79570
  */
78419
79571
  400: unknown;
78420
79572
  /**
@@ -78422,9 +79574,13 @@ export type UpdateOrganizationNotificationPreferencesErrors = {
78422
79574
  */
78423
79575
  401: unknown;
78424
79576
  /**
78425
- * The organization does not let members change their own switches (ORGANIZATION_LOCKED).
79577
+ * The organization does not let members change their own switches — `ORGANIZATION_LOCKED` from the service (RFC 9457 problem).
78426
79578
  */
78427
79579
  403: unknown;
79580
+ /**
79581
+ * 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.
79582
+ */
79583
+ 502: unknown;
78428
79584
  };
78429
79585
  export type UpdateOrganizationNotificationPreferencesResponses = {
78430
79586
  /**
@@ -78446,6 +79602,10 @@ export type GetOrganizationNotificationDefaultsErrors = {
78446
79602
  * Missing or invalid credential (RFC 9457 problem).
78447
79603
  */
78448
79604
  401: unknown;
79605
+ /**
79606
+ * 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.
79607
+ */
79608
+ 502: unknown;
78449
79609
  };
78450
79610
  export type GetOrganizationNotificationDefaultsResponses = {
78451
79611
  /**
@@ -78483,7 +79643,7 @@ export type UpdateOrganizationNotificationDefaultsData = {
78483
79643
  };
78484
79644
  export type UpdateOrganizationNotificationDefaultsErrors = {
78485
79645
  /**
78486
- * Invalid default, unknown category or hidden critical category (RFC 9457 problem).
79646
+ * Invalid default, unknown category or hidden critical category (RFC 9457 problem, `INVALID_PARAMS`).
78487
79647
  */
78488
79648
  400: unknown;
78489
79649
  /**
@@ -78491,9 +79651,13 @@ export type UpdateOrganizationNotificationDefaultsErrors = {
78491
79651
  */
78492
79652
  401: unknown;
78493
79653
  /**
78494
- * The caller is not an owner or admin of this organization.
79654
+ * The caller is not an owner or admin of this organization — `PERMISSION_DENIED` from the service (RFC 9457 problem).
78495
79655
  */
78496
79656
  403: unknown;
79657
+ /**
79658
+ * 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.
79659
+ */
79660
+ 502: unknown;
78497
79661
  };
78498
79662
  export type UpdateOrganizationNotificationDefaultsResponses = {
78499
79663
  /**
@@ -78521,13 +79685,17 @@ export type ListOrganizationNotificationDeliveriesData = {
78521
79685
  };
78522
79686
  export type ListOrganizationNotificationDeliveriesErrors = {
78523
79687
  /**
78524
- * Invalid limit or page cursor (RFC 9457 problem).
79688
+ * Invalid limit, or `INVALID_PARAMS` from the service for a page cursor it did not issue (RFC 9457 problem).
78525
79689
  */
78526
79690
  400: unknown;
78527
79691
  /**
78528
79692
  * Missing or invalid credential (RFC 9457 problem).
78529
79693
  */
78530
79694
  401: unknown;
79695
+ /**
79696
+ * 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.
79697
+ */
79698
+ 502: unknown;
78531
79699
  };
78532
79700
  export type ListOrganizationNotificationDeliveriesResponses = {
78533
79701
  /**
@@ -79759,7 +80927,7 @@ export type ListByodDevicesResponses = {
79759
80927
  */
79760
80928
  id: string;
79761
80929
  /**
79762
- * The device's platform, which decides the use faces it answers. A desktop (macos, linux) pairs only for an organization with the local-agent-connect flag on; windows is not supported yet.
80930
+ * The device's platform, which decides the use faces it answers. A desktop (macos, linux) pairs like a phone; windows is not supported yet.
79763
80931
  */
79764
80932
  platform: 'android' | 'macos' | 'linux';
79765
80933
  /**
@@ -79794,6 +80962,23 @@ export type ListByodDevicesResponses = {
79794
80962
  * 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
80963
  */
79796
80964
  agent_dirs: Array<string>;
80965
+ /**
80966
+ * 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.
80967
+ */
80968
+ agent_bindings: Array<{
80969
+ /**
80970
+ * The absolute directory the desktop bound to an agent with praxis agent connect.
80971
+ */
80972
+ dir: string;
80973
+ /**
80974
+ * The agent the directory is bound to: its identity number or its agent id.
80975
+ */
80976
+ agent: string;
80977
+ }>;
80978
+ /**
80979
+ * 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.
80980
+ */
80981
+ envd_version: string | null;
79797
80982
  /**
79798
80983
  * 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
80984
  */
@@ -79841,7 +81026,7 @@ export type GetByodDeviceResponses = {
79841
81026
  */
79842
81027
  id: string;
79843
81028
  /**
79844
- * The device's platform, which decides the use faces it answers. A desktop (macos, linux) pairs only for an organization with the local-agent-connect flag on; windows is not supported yet.
81029
+ * The device's platform, which decides the use faces it answers. A desktop (macos, linux) pairs like a phone; windows is not supported yet.
79845
81030
  */
79846
81031
  platform: 'android' | 'macos' | 'linux';
79847
81032
  /**
@@ -79876,6 +81061,23 @@ export type GetByodDeviceResponses = {
79876
81061
  * 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
81062
  */
79878
81063
  agent_dirs: Array<string>;
81064
+ /**
81065
+ * 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.
81066
+ */
81067
+ agent_bindings: Array<{
81068
+ /**
81069
+ * The absolute directory the desktop bound to an agent with praxis agent connect.
81070
+ */
81071
+ dir: string;
81072
+ /**
81073
+ * The agent the directory is bound to: its identity number or its agent id.
81074
+ */
81075
+ agent: string;
81076
+ }>;
81077
+ /**
81078
+ * 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.
81079
+ */
81080
+ envd_version: string | null;
79879
81081
  /**
79880
81082
  * 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
81083
  */
@@ -79934,7 +81136,7 @@ export type UpdateByodDeviceResponses = {
79934
81136
  */
79935
81137
  id: string;
79936
81138
  /**
79937
- * The device's platform, which decides the use faces it answers. A desktop (macos, linux) pairs only for an organization with the local-agent-connect flag on; windows is not supported yet.
81139
+ * The device's platform, which decides the use faces it answers. A desktop (macos, linux) pairs like a phone; windows is not supported yet.
79938
81140
  */
79939
81141
  platform: 'android' | 'macos' | 'linux';
79940
81142
  /**
@@ -79969,6 +81171,23 @@ export type UpdateByodDeviceResponses = {
79969
81171
  * 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
81172
  */
79971
81173
  agent_dirs: Array<string>;
81174
+ /**
81175
+ * 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.
81176
+ */
81177
+ agent_bindings: Array<{
81178
+ /**
81179
+ * The absolute directory the desktop bound to an agent with praxis agent connect.
81180
+ */
81181
+ dir: string;
81182
+ /**
81183
+ * The agent the directory is bound to: its identity number or its agent id.
81184
+ */
81185
+ agent: string;
81186
+ }>;
81187
+ /**
81188
+ * 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.
81189
+ */
81190
+ envd_version: string | null;
79972
81191
  /**
79973
81192
  * 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
81193
  */
@@ -80060,7 +81279,7 @@ export type ClaimByodPairingData = {
80060
81279
  */
80061
81280
  body: {
80062
81281
  /**
80063
- * The device's platform. macos and linux are accepted only for an organization with the local-agent-connect flag on; with it off, and for any other value, the claim answers INVALID_PARAMS.
81282
+ * The device's platform. macos and linux are accepted for every organization; any other value than android, macos or linux answers INVALID_PARAMS.
80064
81283
  */
80065
81284
  platform: 'android' | 'macos' | 'linux';
80066
81285
  /**
@@ -80091,7 +81310,7 @@ export type ClaimByodPairingData = {
80091
81310
  };
80092
81311
  export type ClaimByodPairingErrors = {
80093
81312
  /**
80094
- * INVALID_PARAMS: the body is missing, platform is not android, macos or linux, or a desktop platform was claimed where local-agent-connect is off. Fix the body and resend; the code is not spent by a refused claim.
81313
+ * INVALID_PARAMS: the body is missing, platform is not android, macos or linux. Fix the body and resend; the code is not spent by a refused claim.
80095
81314
  */
80096
81315
  400: unknown;
80097
81316
  /**
@@ -82714,8 +83933,7 @@ export type SessionsUpdateData = {
82714
83933
  */
82715
83934
  title?: null | string;
82716
83935
  /**
82717
- * Vault IDs (`vlt_*`) to attach to the session. Not yet supported;
82718
- * requests setting this field are rejected. Reserved for future use.
83936
+ * The vaults this session carries, replacing the whole set it has now, including the vaults it took from its agent when it was created: send those ids again to keep them. At most 50 ids, each a vault of your organization that is not archived. The next command the session runs sees the new set: the secrets of the vaults become environment variables on its machine and are matched against its MCP servers, as sessions.create describes.
82719
83937
  */
82720
83938
  vault_ids?: Array<string>;
82721
83939
  /**
@@ -83262,6 +84480,15 @@ export type AgentsListResponses = {
83262
84480
  name: string;
83263
84481
  }>;
83264
84482
  };
84483
+ /**
84484
+ * 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.
84485
+ */
84486
+ browser?: {
84487
+ /**
84488
+ * A paired browser's id (byb_ and 26 lowercase hex characters), from browser.byob.browsers.list.
84489
+ */
84490
+ byob: string;
84491
+ } | null;
83265
84492
  /**
83266
84493
  * 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
84494
  */
@@ -83647,7 +84874,7 @@ export type AgentsListResponses = {
83647
84874
  */
83648
84875
  environment_id?: string | null;
83649
84876
  /**
83650
- * Default vaults of this service or assume agent version: the vault_ids new sessions get when they name none. Present for service and assume agents. Follows the version like other configuration: a version saved with apply=false does not change the vaults in effect. Versions saved before this field existed read as []. /agent/v1 only.
84877
+ * Default vaults of this service or assume agent version: the vault_ids every new session carries; a session's own vault_ids are added to them. Present for service and assume agents. Follows the version like other configuration: a version saved with apply=false does not change the vaults in effect. Versions saved before this field existed read as []. /agent/v1 only.
83651
84878
  */
83652
84879
  vault_ids?: Array<string>;
83653
84880
  /**
@@ -84186,7 +85413,7 @@ export type AgentsCreateData = {
84186
85413
  */
84187
85414
  environment_id?: string | null;
84188
85415
  /**
84189
- * Default vaults of a service agent: the vault_ids a new session gets when it names none, so the agent's credentials follow the version. At most 50 ids without duplicates; each must be a vault of your organization that is not archived, otherwise 400 vault_ids[<index>] <id> was not found. Saved with the agent version like other configuration, so apply=false keeps the previous vaults in effect for new sessions until that version is applied; a session that sets vault_ids itself, [] included, overrides it. Omit on create for []; on update, omit to keep the list and send an array to replace it as a whole. Versions saved before this field existed read as []. Embed tokens use the vault_ids of the version they pin; vault_ids on the embed policy is deprecated, still accepted and ignored. Personal agents get no default vaults: a non-empty value returns 400 and the field is not returned. /agent/v1 only; /anthropic neither accepts nor returns it.
85416
+ * Default vaults of the agent: the vault_ids every new session carries, so the agent's credentials follow the version. A department or organization rule's grants write this list on the agents it reaches (the agent's vaults become exactly the rule's set). Their secrets reach each session's machine as environment variables and match its MCP servers; sessions.create says which are skipped. At most 50 ids without duplicates; each must be a vault of your organization that is not archived, otherwise 400 vault_ids[<index>] <id> was not found. Saved with the agent version like other configuration, so apply=false keeps the previous vaults in effect for new sessions until that version is applied; a session that sets vault_ids itself adds its vaults to these and does not replace them; sessions already open keep the vaults they were created with. Omit on create for []; on update, omit to keep the list and send an array to replace it as a whole. Versions saved before this field existed read as []. Embed tokens use the vault_ids of the version they pin; vault_ids on the embed policy is deprecated, still accepted and ignored. General and assume agents hold vaults on themselves the same way. /agent/v1 only; /anthropic neither accepts nor returns it.
84190
85417
  */
84191
85418
  vault_ids?: Array<string>;
84192
85419
  /**
@@ -84211,6 +85438,15 @@ export type AgentsCreateData = {
84211
85438
  name: string;
84212
85439
  }>;
84213
85440
  };
85441
+ /**
85442
+ * 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.
85443
+ */
85444
+ browser?: {
85445
+ /**
85446
+ * A paired browser's id (byb_ and 26 lowercase hex characters), from browser.byob.browsers.list.
85447
+ */
85448
+ byob: string;
85449
+ } | null;
84214
85450
  /**
84215
85451
  * 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
85452
  */
@@ -84466,6 +85702,15 @@ export type AgentsCreateResponses = {
84466
85702
  name: string;
84467
85703
  }>;
84468
85704
  };
85705
+ /**
85706
+ * 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.
85707
+ */
85708
+ browser?: {
85709
+ /**
85710
+ * A paired browser's id (byb_ and 26 lowercase hex characters), from browser.byob.browsers.list.
85711
+ */
85712
+ byob: string;
85713
+ } | null;
84469
85714
  /**
84470
85715
  * 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
85716
  */
@@ -84851,7 +86096,7 @@ export type AgentsCreateResponses = {
84851
86096
  */
84852
86097
  environment_id?: string | null;
84853
86098
  /**
84854
- * Default vaults of this service or assume agent version: the vault_ids new sessions get when they name none. Present for service and assume agents. Follows the version like other configuration: a version saved with apply=false does not change the vaults in effect. Versions saved before this field existed read as []. /agent/v1 only.
86099
+ * Default vaults of this service or assume agent version: the vault_ids every new session carries; a session's own vault_ids are added to them. Present for service and assume agents. Follows the version like other configuration: a version saved with apply=false does not change the vaults in effect. Versions saved before this field existed read as []. /agent/v1 only.
84855
86100
  */
84856
86101
  vault_ids?: Array<string>;
84857
86102
  /**
@@ -85128,6 +86373,15 @@ export type AgentsRetrieveResponses = {
85128
86373
  name: string;
85129
86374
  }>;
85130
86375
  };
86376
+ /**
86377
+ * 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.
86378
+ */
86379
+ browser?: {
86380
+ /**
86381
+ * A paired browser's id (byb_ and 26 lowercase hex characters), from browser.byob.browsers.list.
86382
+ */
86383
+ byob: string;
86384
+ } | null;
85131
86385
  /**
85132
86386
  * 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
86387
  */
@@ -85513,7 +86767,7 @@ export type AgentsRetrieveResponses = {
85513
86767
  */
85514
86768
  environment_id?: string | null;
85515
86769
  /**
85516
- * Default vaults of this service or assume agent version: the vault_ids new sessions get when they name none. Present for service and assume agents. Follows the version like other configuration: a version saved with apply=false does not change the vaults in effect. Versions saved before this field existed read as []. /agent/v1 only.
86770
+ * Default vaults of this service or assume agent version: the vault_ids every new session carries; a session's own vault_ids are added to them. Present for service and assume agents. Follows the version like other configuration: a version saved with apply=false does not change the vaults in effect. Versions saved before this field existed read as []. /agent/v1 only.
85517
86771
  */
85518
86772
  vault_ids?: Array<string>;
85519
86773
  /**
@@ -86061,7 +87315,7 @@ export type AgentsUpdateData = {
86061
87315
  */
86062
87316
  environment_id?: string | null;
86063
87317
  /**
86064
- * Default vaults of a service agent: the vault_ids a new session gets when it names none, so the agent's credentials follow the version. At most 50 ids without duplicates; each must be a vault of your organization that is not archived, otherwise 400 vault_ids[<index>] <id> was not found. Saved with the agent version like other configuration, so apply=false keeps the previous vaults in effect for new sessions until that version is applied; a session that sets vault_ids itself, [] included, overrides it. Omit on create for []; on update, omit to keep the list and send an array to replace it as a whole. Versions saved before this field existed read as []. Embed tokens use the vault_ids of the version they pin; vault_ids on the embed policy is deprecated, still accepted and ignored. Personal agents get no default vaults: a non-empty value returns 400 and the field is not returned. /agent/v1 only; /anthropic neither accepts nor returns it.
87318
+ * Default vaults of the agent: the vault_ids every new session carries, so the agent's credentials follow the version. A department or organization rule's grants write this list on the agents it reaches (the agent's vaults become exactly the rule's set). Their secrets reach each session's machine as environment variables and match its MCP servers; sessions.create says which are skipped. At most 50 ids without duplicates; each must be a vault of your organization that is not archived, otherwise 400 vault_ids[<index>] <id> was not found. Saved with the agent version like other configuration, so apply=false keeps the previous vaults in effect for new sessions until that version is applied; a session that sets vault_ids itself adds its vaults to these and does not replace them; sessions already open keep the vaults they were created with. Omit on create for []; on update, omit to keep the list and send an array to replace it as a whole. Versions saved before this field existed read as []. Embed tokens use the vault_ids of the version they pin; vault_ids on the embed policy is deprecated, still accepted and ignored. General and assume agents hold vaults on themselves the same way. /agent/v1 only; /anthropic neither accepts nor returns it.
86065
87319
  */
86066
87320
  vault_ids?: Array<string>;
86067
87321
  /**
@@ -86086,6 +87340,15 @@ export type AgentsUpdateData = {
86086
87340
  name: string;
86087
87341
  }>;
86088
87342
  };
87343
+ /**
87344
+ * 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.
87345
+ */
87346
+ browser?: {
87347
+ /**
87348
+ * A paired browser's id (byb_ and 26 lowercase hex characters), from browser.byob.browsers.list.
87349
+ */
87350
+ byob: string;
87351
+ } | null;
86089
87352
  /**
86090
87353
  * 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
87354
  */
@@ -86354,6 +87617,15 @@ export type AgentsUpdateResponses = {
86354
87617
  name: string;
86355
87618
  }>;
86356
87619
  };
87620
+ /**
87621
+ * 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.
87622
+ */
87623
+ browser?: {
87624
+ /**
87625
+ * A paired browser's id (byb_ and 26 lowercase hex characters), from browser.byob.browsers.list.
87626
+ */
87627
+ byob: string;
87628
+ } | null;
86357
87629
  /**
86358
87630
  * 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
87631
  */
@@ -86739,7 +88011,7 @@ export type AgentsUpdateResponses = {
86739
88011
  */
86740
88012
  environment_id?: string | null;
86741
88013
  /**
86742
- * Default vaults of this service or assume agent version: the vault_ids new sessions get when they name none. Present for service and assume agents. Follows the version like other configuration: a version saved with apply=false does not change the vaults in effect. Versions saved before this field existed read as []. /agent/v1 only.
88014
+ * Default vaults of this service or assume agent version: the vault_ids every new session carries; a session's own vault_ids are added to them. Present for service and assume agents. Follows the version like other configuration: a version saved with apply=false does not change the vaults in effect. Versions saved before this field existed read as []. /agent/v1 only.
86743
88015
  */
86744
88016
  vault_ids?: Array<string>;
86745
88017
  /**
@@ -87365,7 +88637,7 @@ export type AgentsArchiveResponses = {
87365
88637
  */
87366
88638
  environment_id?: string | null;
87367
88639
  /**
87368
- * Default vaults of this service or assume agent version: the vault_ids new sessions get when they name none. Present for service and assume agents. Follows the version like other configuration: a version saved with apply=false does not change the vaults in effect. Versions saved before this field existed read as []. /agent/v1 only.
88640
+ * Default vaults of this service or assume agent version: the vault_ids every new session carries; a session's own vault_ids are added to them. Present for service and assume agents. Follows the version like other configuration: a version saved with apply=false does not change the vaults in effect. Versions saved before this field existed read as []. /agent/v1 only.
87369
88641
  */
87370
88642
  vault_ids?: Array<string>;
87371
88643
  /**
@@ -87642,6 +88914,15 @@ export type AgentsVersionsListResponses = {
87642
88914
  name: string;
87643
88915
  }>;
87644
88916
  };
88917
+ /**
88918
+ * 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.
88919
+ */
88920
+ browser?: {
88921
+ /**
88922
+ * A paired browser's id (byb_ and 26 lowercase hex characters), from browser.byob.browsers.list.
88923
+ */
88924
+ byob: string;
88925
+ } | null;
87645
88926
  /**
87646
88927
  * 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
88928
  */
@@ -88027,7 +89308,7 @@ export type AgentsVersionsListResponses = {
88027
89308
  */
88028
89309
  environment_id?: string | null;
88029
89310
  /**
88030
- * Default vaults of this service or assume agent version: the vault_ids new sessions get when they name none. Present for service and assume agents. Follows the version like other configuration: a version saved with apply=false does not change the vaults in effect. Versions saved before this field existed read as []. /agent/v1 only.
89311
+ * Default vaults of this service or assume agent version: the vault_ids every new session carries; a session's own vault_ids are added to them. Present for service and assume agents. Follows the version like other configuration: a version saved with apply=false does not change the vaults in effect. Versions saved before this field existed read as []. /agent/v1 only.
88031
89312
  */
88032
89313
  vault_ids?: Array<string>;
88033
89314
  /**
@@ -90424,6 +91705,31 @@ export type SessionsEventsListResponses = {
90424
91705
  * 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
91706
  */
90426
91707
  session_thread_id?: string | null;
91708
+ } | {
91709
+ /**
91710
+ * Event id, unique within the session. Use it to refer to this event, for example in user.tool_confirmation or user.steer.
91711
+ */
91712
+ id: string;
91713
+ /**
91714
+ * Always `session.status_preparing`. A device session's local agent is starting; stage says how far it got.
91715
+ */
91716
+ type: 'session.status_preparing';
91717
+ /**
91718
+ * RFC 3339 time at which the server processed the event; null while a queued input has not started running.
91719
+ */
91720
+ processed_at: string;
91721
+ /**
91722
+ * How far the start got.
91723
+ */
91724
+ stage: 'launching' | 'loading' | 'ready';
91725
+ /**
91726
+ * 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.
91727
+ */
91728
+ message_id?: string;
91729
+ /**
91730
+ * 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.
91731
+ */
91732
+ session_thread_id?: string | null;
90427
91733
  }>;
90428
91734
  /**
90429
91735
  * Opaque cursor for the next page: pass it unchanged as page to continue. Null when this is the last page.
@@ -92146,6 +93452,31 @@ export type SessionsThreadsEventsListResponses = {
92146
93452
  * 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
93453
  */
92148
93454
  session_thread_id?: string | null;
93455
+ } | {
93456
+ /**
93457
+ * Event id, unique within the session. Use it to refer to this event, for example in user.tool_confirmation or user.steer.
93458
+ */
93459
+ id: string;
93460
+ /**
93461
+ * Always `session.status_preparing`. A device session's local agent is starting; stage says how far it got.
93462
+ */
93463
+ type: 'session.status_preparing';
93464
+ /**
93465
+ * RFC 3339 time at which the server processed the event; null while a queued input has not started running.
93466
+ */
93467
+ processed_at: string;
93468
+ /**
93469
+ * How far the start got.
93470
+ */
93471
+ stage: 'launching' | 'loading' | 'ready';
93472
+ /**
93473
+ * 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.
93474
+ */
93475
+ message_id?: string;
93476
+ /**
93477
+ * 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.
93478
+ */
93479
+ session_thread_id?: string | null;
92149
93480
  }>;
92150
93481
  /**
92151
93482
  * Opaque cursor for the next page: pass it unchanged as page to continue. Null when this is the last page.
@@ -110984,6 +112315,51 @@ export type DevopsChangesMarkLastSliceResponses = {
110984
112315
  200: DevopsChange;
110985
112316
  };
110986
112317
  export type DevopsChangesMarkLastSliceResponse = DevopsChangesMarkLastSliceResponses[keyof DevopsChangesMarkLastSliceResponses];
112318
+ export type DevopsChangesSlicesCreateData = {
112319
+ body?: DevopsChangeSliceCreateRequest;
112320
+ path: {
112321
+ /**
112322
+ * Identifies the project whose data you are reading, from the project list or create answer.
112323
+ */
112324
+ project: string;
112325
+ /**
112326
+ * 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.
112327
+ */
112328
+ change: string;
112329
+ };
112330
+ query?: never;
112331
+ url: '/devops/v1/projects/{project}/changes/{change}/slices';
112332
+ };
112333
+ export type DevopsChangesSlicesCreateErrors = {
112334
+ /**
112335
+ * 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.
112336
+ */
112337
+ 400: DevopsDevOpsError;
112338
+ /**
112339
+ * The API key is missing or invalid; send a valid Praxis API key in the Authorization header before retrying.
112340
+ */
112341
+ 401: DevopsDevOpsError;
112342
+ /**
112343
+ * 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.
112344
+ */
112345
+ 403: DevopsDevOpsError;
112346
+ /**
112347
+ * 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.
112348
+ */
112349
+ 404: DevopsDevOpsError;
112350
+ /**
112351
+ * 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.
112352
+ */
112353
+ 500: DevopsDevOpsError;
112354
+ };
112355
+ export type DevopsChangesSlicesCreateError = DevopsChangesSlicesCreateErrors[keyof DevopsChangesSlicesCreateErrors];
112356
+ export type DevopsChangesSlicesCreateResponses = {
112357
+ /**
112358
+ * 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.
112359
+ */
112360
+ 200: DevopsChangeSliceOpened;
112361
+ };
112362
+ export type DevopsChangesSlicesCreateResponse = DevopsChangesSlicesCreateResponses[keyof DevopsChangesSlicesCreateResponses];
110987
112363
  export type DevopsChangesOpenPullRequestData = {
110988
112364
  body?: DevopsChangeOpenPullRequestRequest;
110989
112365
  path: {