@deepraxis/sdk 0.2.0-dev.af2cf98 → 0.2.0-dev.b5aa484

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -3407,6 +3407,40 @@ export type AgentSseEvent = ({
3407
3407
  */
3408
3408
  session_thread_id?: string | null;
3409
3409
  };
3410
+ } | {
3411
+ /**
3412
+ * Always `session.status_preparing`. SSE event name of this frame; its data is a session.status_preparing payload. A device session's local agent is starting; stage says how far it got.
3413
+ */
3414
+ event?: 'session.status_preparing';
3415
+ /**
3416
+ * Praxis extension (#4737, own face only): a device session's local agent is starting. Only sessions that run on a person's own machine emit it.
3417
+ */
3418
+ data?: {
3419
+ /**
3420
+ * Event id, unique within the session. Use it to refer to this event, for example in user.tool_confirmation or user.steer.
3421
+ */
3422
+ id: string;
3423
+ /**
3424
+ * Always `session.status_preparing`. A device session's local agent is starting; stage says how far it got.
3425
+ */
3426
+ type: 'session.status_preparing';
3427
+ /**
3428
+ * RFC 3339 time at which the server processed the event; null while a queued input has not started running.
3429
+ */
3430
+ processed_at: string;
3431
+ /**
3432
+ * How far the start got.
3433
+ */
3434
+ stage: 'launching' | 'loading' | 'ready';
3435
+ /**
3436
+ * Envelope field, not part of this event's own payload: the transcript message id of the row, added by the shared projection in apps/api/src/routes/managed-session-events.ts whenever the row carries one (#4480). No writer of this event stamps a message id today, so it is declared for the frame shape rather than produced here.
3437
+ */
3438
+ message_id?: string;
3439
+ /**
3440
+ * Envelope field, not part of this event's own payload: the public sthr_ thread id of the row (null when the row has none), added by the shared projection in apps/api/src/routes/managed-session-events.ts whenever the row carries one (#4480). No writer of this event runs under a thread today, so it is declared for the frame shape rather than produced here.
3441
+ */
3442
+ session_thread_id?: string | null;
3443
+ };
3410
3444
  } | {
3411
3445
  /**
3412
3446
  * Always `event_start`. SSE event name of this frame; its data is a event_start payload. Preview that an event of the requested delta types has started.
@@ -3549,7 +3583,7 @@ export type AgentSseEvent = ({
3549
3583
  /**
3550
3584
  * Server-Sent Events event name of this frame.
3551
3585
  */
3552
- event: 'system.message' | 'user.message' | 'user.interrupt' | 'agent.message' | 'agent.thinking' | 'session.status_running' | 'session.status_rescheduled' | 'session.status_idle' | 'session.status_terminated' | 'agent.thread_context_compacting' | 'agent.thread_context_compacted' | 'agent.thread_context_reset' | 'session.updated' | 'session.error' | 'session.usage' | 'span.model_request_start' | 'span.model_request_end' | 'agent.tool_use' | 'agent.tool_result' | 'agent.mcp_tool_use' | 'agent.mcp_tool_result' | 'user.tool_confirmation' | 'agent.custom_tool_use' | 'user.custom_tool_result' | 'session.thread_created' | 'session.thread_status_running' | 'session.thread_status_idle' | 'session.thread_status_rescheduled' | 'session.thread_status_terminated' | 'agent.thread_message_sent' | 'agent.thread_message_received' | 'user.withdraw' | 'user.steer' | 'system.notification' | 'system.notification_suppressed' | 'system.notification_recorded' | 'session.forked' | 'session.goal_changed' | 'session.goal_verification' | 'cognition.surfaced' | 'cognition.intention_woken' | 'agent.operation_approval_requested' | 'agent.operation_approval_decided' | 'session.prompt_configuration_mismatch' | 'session.prompt_rev_changed' | 'session.computer_tier' | 'agent.artifact_delivered' | 'agent.image_generation' | 'session.image_labeled' | 'session.image_set_planned' | 'session.project_attached' | 'session.project_detached' | 'event_start' | 'event_delta' | 'ping' | 'error';
3586
+ event: 'system.message' | 'user.message' | 'user.interrupt' | 'agent.message' | 'agent.thinking' | 'session.status_running' | 'session.status_rescheduled' | 'session.status_idle' | 'session.status_terminated' | 'agent.thread_context_compacting' | 'agent.thread_context_compacted' | 'agent.thread_context_reset' | 'session.updated' | 'session.error' | 'session.usage' | 'span.model_request_start' | 'span.model_request_end' | 'agent.tool_use' | 'agent.tool_result' | 'agent.mcp_tool_use' | 'agent.mcp_tool_result' | 'user.tool_confirmation' | 'agent.custom_tool_use' | 'user.custom_tool_result' | 'session.thread_created' | 'session.thread_status_running' | 'session.thread_status_idle' | 'session.thread_status_rescheduled' | 'session.thread_status_terminated' | 'agent.thread_message_sent' | 'agent.thread_message_received' | 'user.withdraw' | 'user.steer' | 'system.notification' | 'system.notification_suppressed' | 'system.notification_recorded' | 'session.forked' | 'session.goal_changed' | 'session.goal_verification' | 'cognition.surfaced' | 'cognition.intention_woken' | 'agent.operation_approval_requested' | 'agent.operation_approval_decided' | 'session.prompt_configuration_mismatch' | 'session.prompt_rev_changed' | 'session.computer_tier' | 'agent.artifact_delivered' | 'agent.image_generation' | 'session.image_labeled' | 'session.image_set_planned' | 'session.project_attached' | 'session.project_detached' | 'session.status_preparing' | 'event_start' | 'event_delta' | 'ping' | 'error';
3553
3587
  data: AgentSseData;
3554
3588
  };
3555
3589
  /**
@@ -3575,7 +3609,7 @@ export type BrowserSessionCreateParams = {
3575
3609
  */
3576
3610
  projectId?: string;
3577
3611
  /**
3578
- * 谁能看到这个新会话:默认 private 只有创建者;organization 允许同组织其他成员只读观看画面。
3612
+ * 谁能看到这个新会话:默认 private 只有创建者;organization 允许同组织其他成员只读观看画面。自带浏览器(source.type 为 byob)的会话一律是 organization,传 private 也会被改成 organization,不报错。
3579
3613
  */
3580
3614
  visibility?: 'private' | 'organization';
3581
3615
  /**
@@ -3662,9 +3696,37 @@ export type BrowserSessionCreateParams = {
3662
3696
  ignoreCertificateErrors?: boolean;
3663
3697
  };
3664
3698
  /**
3665
- * 仅省略、false 或 [{type: 'none'}] 可用;其它代理配置返回 501。
3699
+ * 省略、false 或 [{type: 'none'}] 表示不用代理。一条 {type: 'external', server, username?, password? | password_secret?} 让会话在我们的 Chrome 容器里经这个 HTTP 代理出网(需要组织已开通容器后端,否则返回 501 PROVIDER_UNSUPPORTED);不能与 source.type 为 cloud 或 byob 同用,返回 400 INVALID_PARAMS。其它代理类型返回 501。
3666
3700
  */
3667
3701
  proxies?: boolean | Array<unknown>;
3702
+ /**
3703
+ * 选择浏览器后端。{type: 'cloud'}:Browser Run,启动最快、不能用代理、自动化特征可被网站发现。{type: 'container'}:我们自己的 Chrome 容器,可带代理也可不带;组织未开通容器后端时返回 501 PROVIDER_UNSUPPORTED。{type: 'byob', browser: 'byb_…'}:用户自己配对的浏览器,不能与 proxies 或登录态同用。简写 {byob: 'byb_…'} 等同最后一种。省略时按旧规则:带 proxies 进容器,否则 Browser Run。cloud 加代理、未知 type、格式错误都返回 400 INVALID_PARAMS。
3704
+ */
3705
+ source?: {
3706
+ /**
3707
+ * Browser Run。
3708
+ */
3709
+ type: 'cloud';
3710
+ } | {
3711
+ /**
3712
+ * 自家 Chrome 容器。
3713
+ */
3714
+ type: 'container';
3715
+ } | {
3716
+ /**
3717
+ * 用户自己的浏览器。
3718
+ */
3719
+ type: 'byob';
3720
+ /**
3721
+ * 自带浏览器 ID,以 byb_ 开头。
3722
+ */
3723
+ browser: string;
3724
+ } | {
3725
+ /**
3726
+ * 自带浏览器 ID,type 为 byob 的简写。
3727
+ */
3728
+ byob: string;
3729
+ };
3668
3730
  /**
3669
3731
  * 接受但忽略;不能选择区域。
3670
3732
  */
@@ -3712,9 +3774,9 @@ export type BrowserSessionCreateResult = {
3712
3774
  */
3713
3775
  region: 'ap-southeast-1';
3714
3776
  /**
3715
- * 兼容的代理流量字节数;当前未使用代理,固定返回 0。
3777
+ * 会话经代理转发的流量字节数(上行与下行之和);仅容器后端的会话有值,其余后端固定为 0。
3716
3778
  */
3717
- proxyBytes: 0;
3779
+ proxyBytes: number;
3718
3780
  /**
3719
3781
  * 会话创建时刻,UTC ISO 8601 时间。
3720
3782
  */
@@ -3759,6 +3821,41 @@ export type BrowserSessionCreateResult = {
3759
3821
  * 会话创建入口;api 为 API 创建,connect 为一步连接创建,console 为 Console 创建。
3760
3822
  */
3761
3823
  origin: 'api' | 'connect' | 'console';
3824
+ /**
3825
+ * 会话实际使用的浏览器后端:cloud 是云浏览器(Browser Run),container 是我们自己的 Chrome 容器,byob 是用户自己配对的浏览器(browser 为它的 ID)。type 与 kind 同值,type 是公开名称,kind 为兼容旧读者保留。
3826
+ */
3827
+ source: {
3828
+ /**
3829
+ * 云浏览器会话,固定为 cloud。
3830
+ */
3831
+ type: 'cloud';
3832
+ /**
3833
+ * 与 type 同值。
3834
+ */
3835
+ kind: 'cloud';
3836
+ } | {
3837
+ /**
3838
+ * 自家 Chrome 容器会话,固定为 container。
3839
+ */
3840
+ type: 'container';
3841
+ /**
3842
+ * 与 type 同值。
3843
+ */
3844
+ kind: 'container';
3845
+ } | {
3846
+ /**
3847
+ * 用户自己配对的浏览器会话,固定为 byob。
3848
+ */
3849
+ type: 'byob';
3850
+ /**
3851
+ * 与 type 同值。
3852
+ */
3853
+ kind: 'byob';
3854
+ /**
3855
+ * 自带浏览器 ID,以 byb_ 开头。
3856
+ */
3857
+ browser: string;
3858
+ };
3762
3859
  /**
3763
3860
  * 创建这个会话的用户或智能体标识;通过能力 URL 创建、或在引入创建者之前创建的会话省略此字段。
3764
3861
  */
@@ -3825,12 +3922,16 @@ export type BrowserSessionCreateResult = {
3825
3922
  * 该地址返回 501;不支持 Selenium。
3826
3923
  */
3827
3924
  seleniumRemoteUrl: string;
3925
+ /**
3926
+ * true 表示本次按 name 复用了已在运行的同名会话(HTTP 200),没有新开会话;false 表示新开了会话(HTTP 201)。
3927
+ */
3928
+ reused: boolean;
3828
3929
  };
3829
3930
  export type BrowserError = {
3830
3931
  statusCode: number;
3831
3932
  error: string;
3832
3933
  message: string;
3833
- code: 'INVALID_PARAMS' | 'PERMISSION_DENIED' | 'NOT_IMPLEMENTED' | 'INTERNAL' | 'UNAUTHENTICATED' | 'CONNECT_SIGNATURE_INVALID' | 'SESSION_NOT_FOUND' | 'SESSION_ENDED' | 'SESSION_INVALID_STATE' | 'CONTEXT_NOT_FOUND' | 'CONTEXT_LOCKED' | 'HANDOFF_NOT_PENDING' | 'CONCURRENCY_LIMIT' | 'RATE_LIMITED' | 'INSUFFICIENT_BALANCE' | 'QUOTA_EXHAUSTED' | 'ACCOUNT_SUSPENDED' | 'PROVIDER_UNSUPPORTED' | 'PROVIDER_CAPACITY' | 'PROVIDER_FAILED' | 'SERVICE_UNAVAILABLE' | 'PARENT_NOT_FOUND' | 'INVALID_FILTER' | 'INVALID_PAGE_TOKEN' | 'ACTION_TAB_NOT_FOUND' | 'ACTION_NO_TAB' | 'ACTION_REF_STALE' | 'ACTION_FAILED' | 'ACTION_TIMEOUT' | 'ACTION_RESULT_TOO_LARGE';
3934
+ code: 'INVALID_PARAMS' | 'PERMISSION_DENIED' | 'NOT_IMPLEMENTED' | 'INTERNAL' | 'UNAUTHENTICATED' | 'CONNECT_SIGNATURE_INVALID' | 'SESSION_NOT_FOUND' | 'SESSION_ENDED' | 'SESSION_INVALID_STATE' | 'SESSION_NAME_IN_USE' | 'CONTEXT_NOT_FOUND' | 'BROWSER_OFFLINE' | 'BROWSER_REVOKED' | 'PAIRING_NOT_FOUND' | 'BROWSER_NOT_FOUND' | 'CONTEXT_LOCKED' | 'CONTEXT_READ_ONLY' | 'HANDOFF_NOT_PENDING' | 'CONCURRENCY_LIMIT' | 'RATE_LIMITED' | 'INSUFFICIENT_BALANCE' | 'QUOTA_EXHAUSTED' | 'ACCOUNT_SUSPENDED' | 'PROVIDER_UNSUPPORTED' | 'PROVIDER_CAPACITY' | 'PROVIDER_FAILED' | 'SERVICE_UNAVAILABLE' | 'PARENT_NOT_FOUND' | 'INVALID_FILTER' | 'INVALID_PAGE_TOKEN' | 'ACTION_TAB_NOT_FOUND' | 'ACTION_NO_TAB' | 'ACTION_REF_STALE' | 'ACTION_FAILED' | 'ACTION_TIMEOUT' | 'ACTION_RESULT_TOO_LARGE';
3834
3935
  };
3835
3936
  export type BrowserSession = {
3836
3937
  /**
@@ -3854,9 +3955,9 @@ export type BrowserSession = {
3854
3955
  */
3855
3956
  region: 'ap-southeast-1';
3856
3957
  /**
3857
- * 兼容的代理流量字节数;当前未使用代理,固定返回 0。
3958
+ * 会话经代理转发的流量字节数(上行与下行之和);仅容器后端的会话有值,其余后端固定为 0。
3858
3959
  */
3859
- proxyBytes: 0;
3960
+ proxyBytes: number;
3860
3961
  /**
3861
3962
  * 会话创建时刻,UTC ISO 8601 时间。
3862
3963
  */
@@ -3901,6 +4002,41 @@ export type BrowserSession = {
3901
4002
  * 会话创建入口;api 为 API 创建,connect 为一步连接创建,console 为 Console 创建。
3902
4003
  */
3903
4004
  origin: 'api' | 'connect' | 'console';
4005
+ /**
4006
+ * 会话实际使用的浏览器后端:cloud 是云浏览器(Browser Run),container 是我们自己的 Chrome 容器,byob 是用户自己配对的浏览器(browser 为它的 ID)。type 与 kind 同值,type 是公开名称,kind 为兼容旧读者保留。
4007
+ */
4008
+ source: {
4009
+ /**
4010
+ * 云浏览器会话,固定为 cloud。
4011
+ */
4012
+ type: 'cloud';
4013
+ /**
4014
+ * 与 type 同值。
4015
+ */
4016
+ kind: 'cloud';
4017
+ } | {
4018
+ /**
4019
+ * 自家 Chrome 容器会话,固定为 container。
4020
+ */
4021
+ type: 'container';
4022
+ /**
4023
+ * 与 type 同值。
4024
+ */
4025
+ kind: 'container';
4026
+ } | {
4027
+ /**
4028
+ * 用户自己配对的浏览器会话,固定为 byob。
4029
+ */
4030
+ type: 'byob';
4031
+ /**
4032
+ * 与 type 同值。
4033
+ */
4034
+ kind: 'byob';
4035
+ /**
4036
+ * 自带浏览器 ID,以 byb_ 开头。
4037
+ */
4038
+ browser: string;
4039
+ };
3904
4040
  /**
3905
4041
  * 创建这个会话的用户或智能体标识;通过能力 URL 创建、或在引入创建者之前创建的会话省略此字段。
3906
4042
  */
@@ -3978,9 +4114,9 @@ export type BrowserSessionGetResult = {
3978
4114
  */
3979
4115
  region: 'ap-southeast-1';
3980
4116
  /**
3981
- * 兼容的代理流量字节数;当前未使用代理,固定返回 0。
4117
+ * 会话经代理转发的流量字节数(上行与下行之和);仅容器后端的会话有值,其余后端固定为 0。
3982
4118
  */
3983
- proxyBytes: 0;
4119
+ proxyBytes: number;
3984
4120
  /**
3985
4121
  * 会话创建时刻,UTC ISO 8601 时间。
3986
4122
  */
@@ -4025,6 +4161,41 @@ export type BrowserSessionGetResult = {
4025
4161
  * 会话创建入口;api 为 API 创建,connect 为一步连接创建,console 为 Console 创建。
4026
4162
  */
4027
4163
  origin: 'api' | 'connect' | 'console';
4164
+ /**
4165
+ * 会话实际使用的浏览器后端:cloud 是云浏览器(Browser Run),container 是我们自己的 Chrome 容器,byob 是用户自己配对的浏览器(browser 为它的 ID)。type 与 kind 同值,type 是公开名称,kind 为兼容旧读者保留。
4166
+ */
4167
+ source: {
4168
+ /**
4169
+ * 云浏览器会话,固定为 cloud。
4170
+ */
4171
+ type: 'cloud';
4172
+ /**
4173
+ * 与 type 同值。
4174
+ */
4175
+ kind: 'cloud';
4176
+ } | {
4177
+ /**
4178
+ * 自家 Chrome 容器会话,固定为 container。
4179
+ */
4180
+ type: 'container';
4181
+ /**
4182
+ * 与 type 同值。
4183
+ */
4184
+ kind: 'container';
4185
+ } | {
4186
+ /**
4187
+ * 用户自己配对的浏览器会话,固定为 byob。
4188
+ */
4189
+ type: 'byob';
4190
+ /**
4191
+ * 与 type 同值。
4192
+ */
4193
+ kind: 'byob';
4194
+ /**
4195
+ * 自带浏览器 ID,以 byb_ 开头。
4196
+ */
4197
+ browser: string;
4198
+ };
4028
4199
  /**
4029
4200
  * 创建这个会话的用户或智能体标识;通过能力 URL 创建、或在引入创建者之前创建的会话省略此字段。
4030
4201
  */
@@ -4280,6 +4451,120 @@ export type BrowserContext = {
4280
4451
  */
4281
4452
  lastUsedAt?: string;
4282
4453
  };
4454
+ export type BrowserByobPairing = {
4455
+ /**
4456
+ * 8 位配对码,一次性、10 分钟内有效;它是秘密,只交给要配对的那个浏览器的用户。
4457
+ */
4458
+ code: string;
4459
+ /**
4460
+ * 配对码失效的时刻,UTC ISO 8601 时间。
4461
+ */
4462
+ expires_at: string;
4463
+ };
4464
+ export type BrowserByobBrowser = {
4465
+ /**
4466
+ * 对象类型,固定为 byob_browser。
4467
+ */
4468
+ object: 'byob_browser';
4469
+ /**
4470
+ * 自带浏览器 ID,以 byb_ 开头;使用配对认领或列出自带浏览器返回的 id。
4471
+ */
4472
+ id: string;
4473
+ /**
4474
+ * 浏览器的显示名称,配对时由扩展上报,1–80 个字符;可通过更新修改。
4475
+ */
4476
+ name: string;
4477
+ /**
4478
+ * 这个自带浏览器的种类,配对时由扩展上报。
4479
+ */
4480
+ browser: 'chrome' | 'edge';
4481
+ /**
4482
+ * 浏览器版本号,配对时由扩展上报。
4483
+ */
4484
+ version: string;
4485
+ /**
4486
+ * 操作系统,配对时由扩展上报。
4487
+ */
4488
+ os: string;
4489
+ /**
4490
+ * 配对用的扩展 ID。
4491
+ */
4492
+ extension_id: string;
4493
+ /**
4494
+ * 扩展的连接当前是否在线;连接对象上线之前固定为 false。
4495
+ */
4496
+ online: boolean;
4497
+ /**
4498
+ * 扩展最近一次被看到在线的时刻,UTC ISO 8601 时间。
4499
+ */
4500
+ last_seen_at: string | null;
4501
+ /**
4502
+ * 发起配对的用户标识;浏览器属于组织,这里只记录是谁配的。
4503
+ */
4504
+ created_by: string | null;
4505
+ /**
4506
+ * 浏览器完成配对的时刻,UTC ISO 8601 时间。
4507
+ */
4508
+ created_at: string;
4509
+ /**
4510
+ * 组织断开这个浏览器的时刻,UTC ISO 8601 时间;未断开时为 null。
4511
+ */
4512
+ revoked_at: string | null;
4513
+ };
4514
+ export type BrowserByobPairingView = {
4515
+ /**
4516
+ * 发起配对的组织名称,扩展的授权页显示它。
4517
+ */
4518
+ organization_name: string;
4519
+ /**
4520
+ * 发起配对的用户标识。
4521
+ */
4522
+ created_by: string | null;
4523
+ /**
4524
+ * 配对码失效的时刻,UTC ISO 8601 时间。
4525
+ */
4526
+ expires_at: string;
4527
+ };
4528
+ export type BrowserByobClaim = {
4529
+ /**
4530
+ * 要登记的浏览器种类,只支持 Chrome 和 Edge。
4531
+ */
4532
+ browser: 'chrome' | 'edge';
4533
+ /**
4534
+ * 浏览器版本号,1–64 个字符。
4535
+ */
4536
+ version: string;
4537
+ /**
4538
+ * 操作系统,1–64 个字符。
4539
+ */
4540
+ os: string;
4541
+ /**
4542
+ * 浏览器的显示名称,1–80 个字符。
4543
+ */
4544
+ name: string;
4545
+ /**
4546
+ * 扩展用 WebCrypto 生成的不可导出 ECDSA P-256 密钥对的公钥;平台只保存公钥。
4547
+ */
4548
+ public_key: string;
4549
+ /**
4550
+ * 扩展 ID,1–64 个字符。
4551
+ */
4552
+ extension_id: string;
4553
+ /**
4554
+ * 扩展保存的随机安装密钥,8–128 个字母、数字、_ 或 -;同一个 profile 带同一密钥重新配对会复用原来的浏览器,平台只保存它的哈希。省略则每次认领都是新浏览器。
4555
+ */
4556
+ install_key?: string;
4557
+ };
4558
+ export type BrowserByobClaimResult = {
4559
+ /**
4560
+ * 自带浏览器 ID,以 byb_ 开头;使用配对认领或列出自带浏览器返回的 id。
4561
+ */
4562
+ browser_id: string;
4563
+ /**
4564
+ * 扩展要拨入的 WSS 地址,属于这个浏览器自己的链接主机;连接时用配对时的私钥签名完成认证,地址本身不是凭证。
4565
+ */
4566
+ link_url: string;
4567
+ };
4283
4568
  export type BrowserStreamMessage = {
4284
4569
  event: 'snapshot';
4285
4570
  data: {
@@ -4694,7 +4979,7 @@ export type OwnFileSignedUploadResponse = {
4694
4979
  url: string;
4695
4980
  }>;
4696
4981
  /**
4697
- * Bearer URL to POST without a body after every chunk is acknowledged. Returns 201 with the file object; missing chunks return 400 and successful completion replays return 410 CAPABILITY_USED.
4982
+ * Bearer URL to POST without a body after every chunk is acknowledged. Returns 201 with the file object; missing chunks return 400 and a completion replay returns 201 with the same file, because a lost answer must not cost the file.
4698
4983
  */
4699
4984
  complete_url: string;
4700
4985
  /**
@@ -5192,7 +5477,7 @@ export type MediaStreamOutput = {
5192
5477
  */
5193
5478
  status: 'idle' | 'starting' | 'broadcasting' | 'errored';
5194
5479
  /**
5195
- * Why the output is errored; null in every other status.
5480
+ * Why the last connection failed, while the output is errored or starting again after a failure; null in every other status.
5196
5481
  */
5197
5482
  error: MediaStreamOutputError;
5198
5483
  /**
@@ -10584,6 +10869,10 @@ export type ApplicationCreateWorkerInput = {
10584
10869
  labels?: {
10585
10870
  [key: string]: string;
10586
10871
  };
10872
+ /**
10873
+ * Who may open the application on its default host (ADR-206). Only the organization's owner (full authority) may change it; a credential limited to bound resources is refused with PERMISSION_DENIED. A change takes effect within 10 seconds.
10874
+ */
10875
+ access?: 'public' | 'organization';
10587
10876
  };
10588
10877
  };
10589
10878
  export type ApplicationWorker = {
@@ -10655,6 +10944,10 @@ export type ApplicationWorker = {
10655
10944
  labels: {
10656
10945
  [key: string]: string;
10657
10946
  };
10947
+ /**
10948
+ * Who may open the application on its default host (ADR-206). Only the organization's owner (full authority) may change it; a credential limited to bound resources is refused with PERMISSION_DENIED. A change takes effect within 10 seconds.
10949
+ */
10950
+ access: 'public' | 'organization';
10658
10951
  /**
10659
10952
  * When the Worker was deleted.
10660
10953
  */
@@ -10736,6 +11029,10 @@ export type ApplicationUpdateWorkerInput = {
10736
11029
  labels?: {
10737
11030
  [key: string]: string;
10738
11031
  };
11032
+ /**
11033
+ * Who may open the application on its default host (ADR-206). Only the organization's owner (full authority) may change it; a credential limited to bound resources is refused with PERMISSION_DENIED. A change takes effect within 10 seconds.
11034
+ */
11035
+ access?: 'public' | 'organization';
10739
11036
  };
10740
11037
  };
10741
11038
  export type ApplicationVersionPage = {
@@ -19519,6 +19816,32 @@ export type DevopsChangeMarkLastSliceRequest = {
19519
19816
  */
19520
19817
  lastSlice: boolean;
19521
19818
  };
19819
+ /**
19820
+ * Where the new slice starts. Every field is optional: with none the slice is cut from the default branch.
19821
+ */
19822
+ export type DevopsChangeSliceCreateRequest = {
19823
+ /**
19824
+ * Another branch of the same change to cut the slice from, such as feat/run-page-v2--2; omit it to cut from the default branch. A slice cut from a branch is restacked onto the default branch when that branch merges.
19825
+ */
19826
+ from?: string;
19827
+ };
19828
+ /**
19829
+ * The slice that was opened.
19830
+ */
19831
+ export type DevopsChangeSliceOpened = {
19832
+ /**
19833
+ * The new slice's branch, <change id>--<n> with n at least 2; commit and push here, and open its pull request with `praxis devops change pr`.
19834
+ */
19835
+ branch: string;
19836
+ /**
19837
+ * The directory to work in: the slice's git worktree inside the change's workspace. It exists at once when the workspace is already running, otherwise once the workspace is available.
19838
+ */
19839
+ directory: string;
19840
+ /**
19841
+ * The id of the change's workspace that holds the slice (wsu_…), usable with the units methods; this call opened it when the change had none live.
19842
+ */
19843
+ unit: string;
19844
+ };
19522
19845
  /**
19523
19846
  * What the pull request says. Every field is optional: without a title the change's own title is used.
19524
19847
  */
@@ -19535,6 +19858,10 @@ export type DevopsChangeOpenPullRequestRequest = {
19535
19858
  * Open it as a draft. Defaults to false.
19536
19859
  */
19537
19860
  draft?: boolean;
19861
+ /**
19862
+ * The branch the pull request is opened from, for a later slice of the change: <change id>--<n>, as `slices.create` answered it; omit it for the change's own branch. A branch that belongs to another change is refused with INVALID_ARGUMENT.
19863
+ */
19864
+ head?: string;
19538
19865
  };
19539
19866
  /**
19540
19867
  * The pull request for a change's branch.
@@ -29732,6 +30059,31 @@ export type AgentSseData = {
29732
30059
  * Envelope field, not part of this event's own payload: the public sthr_ thread id of the row (null when the row has none), added by the shared projection in apps/api/src/routes/managed-session-events.ts whenever the row carries one (#4480). No writer of this event runs under a thread today, so it is declared for the frame shape rather than produced here.
29733
30060
  */
29734
30061
  session_thread_id?: string | null;
30062
+ } | {
30063
+ /**
30064
+ * Event id, unique within the session. Use it to refer to this event, for example in user.tool_confirmation or user.steer.
30065
+ */
30066
+ id: string;
30067
+ /**
30068
+ * Always `session.status_preparing`. A device session's local agent is starting; stage says how far it got.
30069
+ */
30070
+ type: 'session.status_preparing';
30071
+ /**
30072
+ * RFC 3339 time at which the server processed the event; null while a queued input has not started running.
30073
+ */
30074
+ processed_at: string;
30075
+ /**
30076
+ * How far the start got.
30077
+ */
30078
+ stage: 'launching' | 'loading' | 'ready';
30079
+ /**
30080
+ * Envelope field, not part of this event's own payload: the transcript message id of the row, added by the shared projection in apps/api/src/routes/managed-session-events.ts whenever the row carries one (#4480). No writer of this event stamps a message id today, so it is declared for the frame shape rather than produced here.
30081
+ */
30082
+ message_id?: string;
30083
+ /**
30084
+ * Envelope field, not part of this event's own payload: the public sthr_ thread id of the row (null when the row has none), added by the shared projection in apps/api/src/routes/managed-session-events.ts whenever the row carries one (#4480). No writer of this event runs under a thread today, so it is declared for the frame shape rather than produced here.
30085
+ */
30086
+ session_thread_id?: string | null;
29735
30087
  } | {
29736
30088
  /**
29737
30089
  * Always `event_start`. Preview that an event of the requested delta types has started.
@@ -30066,7 +30418,7 @@ export type MediaStreamEvent = {
30066
30418
  */
30067
30419
  seq: number;
30068
30420
  /**
30069
- * stream.waiting: a pulled source is not live yet; stream.connected: the source connected; stream.active: media started flowing; stream.disconnected: the source dropped or was refused (data.reason says why, for example quota_exceeded); stream.idle: the broadcast ended; recording.ready: a recording became a Media asset (data.asset_id); recording.failed: it did not (data.reason). transcript.partial and transcript.final: speech as text (data.text, data.sentence_id, data.start_ms, data.end_ms); frame.described: one keyframe described (data.text); alert: an alert rule matched (data.matched, data.source_event_ids); pipeline.unsupported_audio: the audio cannot be transcribed yet (data.codec); pipeline.describe_failed: a frame description failed (data.step, data.message). output.status: a re-broadcast target changed status (data.output_id, data.status and, when errored, data.error).
30421
+ * stream.waiting: a pulled source is not live yet; stream.connected: the source connected; stream.active: media started flowing; stream.disconnected: the source dropped or was refused (data.reason says why, for example quota_exceeded); stream.idle: the broadcast ended; recording.ready: a recording became a Media asset (data.asset_id); recording.failed: it did not (data.reason). transcript.partial and transcript.final: speech as text (data.text, data.sentence_id, data.start_ms, data.end_ms); frame.described: one keyframe described (data.text); alert: an alert rule matched (data.matched, data.source_event_ids); pipeline.unsupported_audio: the audio cannot be transcribed yet (data.codec); pipeline.describe_failed: a frame description failed (data.step, data.message). output.status: a re-broadcast target changed status (data.output_id, data.status and, when it is errored or trying again after a failure, data.error with the reason).
30070
30422
  */
30071
30423
  kind: 'stream.waiting' | 'stream.connected' | 'stream.active' | 'stream.disconnected' | 'stream.idle' | 'recording.ready' | 'recording.failed' | 'output.status' | 'transcript.partial' | 'transcript.final' | 'frame.described' | 'alert' | 'pipeline.unsupported_audio' | 'pipeline.describe_failed';
30072
30424
  /**
@@ -30156,7 +30508,7 @@ export type MediaPipelineAlertRule = {
30156
30508
  [key: string]: unknown;
30157
30509
  };
30158
30510
  /**
30159
- * Why an errored output stopped trying.
30511
+ * Why an output is errored, or is trying again after a failure.
30160
30512
  */
30161
30513
  export type MediaStreamOutputError = {
30162
30514
  /**
@@ -51934,6 +52286,10 @@ export type DevopsLockId = string;
51934
52286
  * The change's id, which is its branch name <type>/<slug> from a change list or create answer. Give it as it comes back — `feat/run-page-v2`: the SDK and the CLI encode the slash themselves, and an id that is already percent-encoded is encoded a second time and answers CHANGE_NOT_FOUND. Only a caller writing the HTTP request by hand sends feat%2Frun-page-v2.
51935
52287
  */
51936
52288
  export type DevopsChangeIdPath = string;
52289
+ /**
52290
+ * The change whose slice you are opening: its id, which is its branch name <type>/<slug> from a change list or create answer. Give it as it comes back — `feat/run-page-v2`; the SDK and the CLI encode the slash themselves.
52291
+ */
52292
+ export type DevopsChangePathParam = string;
51937
52293
  /**
51938
52294
  * The pull request's platform id (pr_…) from a pull request list, not GitHub's pull request number; the retrieve, rerunGate, merge and recordVerdict calls all address the pull request by it.
51939
52295
  */
@@ -53577,6 +53933,31 @@ export type ListAgentEventsResponses = {
53577
53933
  * Envelope field, not part of this event's own payload: the public sthr_ thread id of the row (null when the row has none), added by the shared projection in apps/api/src/routes/managed-session-events.ts whenever the row carries one (#4480). No writer of this event runs under a thread today, so it is declared for the frame shape rather than produced here.
53578
53934
  */
53579
53935
  session_thread_id?: string | null;
53936
+ } | {
53937
+ /**
53938
+ * Event id, unique within the session. Use it to refer to this event, for example in user.tool_confirmation or user.steer.
53939
+ */
53940
+ id: string;
53941
+ /**
53942
+ * Always `session.status_preparing`. A device session's local agent is starting; stage says how far it got.
53943
+ */
53944
+ type: 'session.status_preparing';
53945
+ /**
53946
+ * RFC 3339 time at which the server processed the event; null while a queued input has not started running.
53947
+ */
53948
+ processed_at: string;
53949
+ /**
53950
+ * How far the start got.
53951
+ */
53952
+ stage: 'launching' | 'loading' | 'ready';
53953
+ /**
53954
+ * Envelope field, not part of this event's own payload: the transcript message id of the row, added by the shared projection in apps/api/src/routes/managed-session-events.ts whenever the row carries one (#4480). No writer of this event stamps a message id today, so it is declared for the frame shape rather than produced here.
53955
+ */
53956
+ message_id?: string;
53957
+ /**
53958
+ * Envelope field, not part of this event's own payload: the public sthr_ thread id of the row (null when the row has none), added by the shared projection in apps/api/src/routes/managed-session-events.ts whenever the row carries one (#4480). No writer of this event runs under a thread today, so it is declared for the frame shape rather than produced here.
53959
+ */
53960
+ session_thread_id?: string | null;
53580
53961
  }>;
53581
53962
  /**
53582
53963
  * Opaque cursor for the next page: pass it unchanged as page to continue. Null when this is the last page.
@@ -53997,6 +54378,86 @@ export type ListAgentInboxLettersResponses = {
53997
54378
  };
53998
54379
  };
53999
54380
  export type ListAgentInboxLettersResponse = ListAgentInboxLettersResponses[keyof ListAgentInboxLettersResponses];
54381
+ export type ListAgentDeviceLocalSessionsData = {
54382
+ body?: never;
54383
+ path: {
54384
+ /**
54385
+ * The BYOA agent: its agent_… id, eight character identity number or handle, from agents.list; resolved in your organization. Also accepts an 8-character identity number (0–9, A–Z); malformed, absent and foreign references return 404, and response ids always use agent_….
54386
+ */
54387
+ agent_id: string;
54388
+ /**
54389
+ * The paired desktop device (byd_ and 26 hex characters) whose sessions to list; you must be the person who paired it.
54390
+ */
54391
+ device_id: string;
54392
+ };
54393
+ query: {
54394
+ /**
54395
+ * The absolute directory on the device, exactly as the device registered it and bound it to this agent.
54396
+ */
54397
+ cwd: string;
54398
+ /**
54399
+ * The next_cursor of the previous page; leave it out for the first page.
54400
+ */
54401
+ cursor?: string;
54402
+ };
54403
+ url: '/agent/v1/agents/{agent_id}/devices/{device_id}/local-sessions';
54404
+ };
54405
+ export type ListAgentDeviceLocalSessionsErrors = {
54406
+ /**
54407
+ * INVALID_PARAMS: cwd is missing, not absolute or not bound to this agent on that device, the device is not one you paired, or a query parameter is unsupported; ASSUME_AGENT_REQUIRED: the agent is not a BYOA agent.
54408
+ */
54409
+ 400: unknown;
54410
+ /**
54411
+ * Authenticate with your own API key or a console session; an agent's or robot's credential cannot list a person's device.
54412
+ */
54413
+ 401: unknown;
54414
+ /**
54415
+ * permission_error: the credential's role or bound resources do not allow this operation. Use a key with access to the agent domain and its resources.
54416
+ */
54417
+ 403: AgentError;
54418
+ /**
54419
+ * AGENT_NOT_FOUND: no agent with this reference exists in your organization; list agents with agents.list.
54420
+ */
54421
+ 404: unknown;
54422
+ /**
54423
+ * DEVICE_NOT_READY: the device is offline; retry once it is connected. DEVICE_TIMEOUT (504) means it is connected but did not answer in time.
54424
+ */
54425
+ 503: unknown;
54426
+ };
54427
+ export type ListAgentDeviceLocalSessionsError = ListAgentDeviceLocalSessionsErrors[keyof ListAgentDeviceLocalSessionsErrors];
54428
+ export type ListAgentDeviceLocalSessionsResponses = {
54429
+ /**
54430
+ * One page of the device's sessions for that directory, newest first.
54431
+ */
54432
+ 200: {
54433
+ /**
54434
+ * The sessions of this page; empty when the directory has none.
54435
+ */
54436
+ data: Array<{
54437
+ /**
54438
+ * The Claude Code session id on the device; pass it as runtime.resume_session_id when creating a session to continue it.
54439
+ */
54440
+ id: string;
54441
+ /**
54442
+ * The session's title as Claude Code shows it; empty when it has none.
54443
+ */
54444
+ title: string;
54445
+ /**
54446
+ * When the session was last written to, RFC 3339; sessions are ordered newest first.
54447
+ */
54448
+ updated_at: string | null;
54449
+ /**
54450
+ * The directory the session ran in on the device.
54451
+ */
54452
+ cwd: string | null;
54453
+ }>;
54454
+ /**
54455
+ * Pass as cursor for the next page; null on the last page.
54456
+ */
54457
+ next_cursor: string | null;
54458
+ };
54459
+ };
54460
+ export type ListAgentDeviceLocalSessionsResponse = ListAgentDeviceLocalSessionsResponses[keyof ListAgentDeviceLocalSessionsResponses];
54000
54461
  export type CreateAgentLoginIntentData = {
54001
54462
  body?: never;
54002
54463
  path?: never;
@@ -54007,32 +54468,33 @@ export type CreateAgentLoginIntentErrors = {
54007
54468
  /**
54008
54469
  * INVALID_JSON: the body is not a JSON object. INVALID_PARAMS: the body names a field (agent, organization_id, place or any other) - the caller, its organization and its computer come from the credential, so resend with no field.
54009
54470
  */
54010
- 400: unknown;
54471
+ 400: AgentError;
54011
54472
  /**
54012
54473
  * Authentication required: send the platform session's own credential.
54013
54474
  */
54014
- 401: unknown;
54475
+ 401: AgentError;
54015
54476
  /**
54016
54477
  * PERMISSION_DENIED: this credential names no agent, or the member driving the session is not the agent's sponsor; open the code from the agent's own codemode session, driven by its sponsor.
54017
54478
  */
54018
- 403: unknown;
54479
+ 403: AgentError;
54019
54480
  /**
54020
54481
  * AGENT_NOT_FOUND: the agent the credential names does not exist in this organization; check the agent the session was opened for.
54021
54482
  */
54022
- 404: unknown;
54483
+ 404: AgentError;
54023
54484
  /**
54024
54485
  * FAILED_PRECONDITION: the agent has no platform computer of its own (a service agent runs nowhere to log in), or identity refused the create for a state it reports.
54025
54486
  */
54026
- 409: unknown;
54487
+ 409: AgentError;
54027
54488
  /**
54028
54489
  * UPSTREAM_UNAVAILABLE: the agent service or identity could not answer; retry once the service is back.
54029
54490
  */
54030
- 502: unknown;
54491
+ 502: AgentError;
54031
54492
  /**
54032
54493
  * UNAVAILABLE: identity is not configured in this deployment.
54033
54494
  */
54034
- 503: unknown;
54495
+ 503: AgentError;
54035
54496
  };
54497
+ export type CreateAgentLoginIntentError = CreateAgentLoginIntentErrors[keyof CreateAgentLoginIntentErrors];
54036
54498
  export type CreateAgentLoginIntentResponses = {
54037
54499
  /**
54038
54500
  * The one-time login code and when it stops working; the code is answered once and never again.
@@ -54896,6 +55358,15 @@ export type ApplyAgentVersionResponses = {
54896
55358
  name: string;
54897
55359
  }>;
54898
55360
  };
55361
+ /**
55362
+ * ADR-205: which browser the agent drives. {byob: byb_…} names one of your organization's paired browsers (browser.byob.browsers.list), which the agent then drives through connect() instead of a cloud browser; null or absent is the cloud browser. The browser must belong to your organization (otherwise 400) and must grant this agent before a session can open it. Omit on update to keep it, send an object to replace it, or null to go back to the cloud browser. /agent/v1 only.
55363
+ */
55364
+ browser?: {
55365
+ /**
55366
+ * A paired browser's id (byb_ and 26 lowercase hex characters), from browser.byob.browsers.list.
55367
+ */
55368
+ byob: string;
55369
+ } | null;
54899
55370
  /**
54900
55371
  * Praxis extension: MA only has session-scoped temporary containers and memory_stores, not durable browsable computers. computer_id selects a tenant-owned active computer. Session selection overrides the agent default; a sandbox environment_id and computer_id cannot be combined. Omitted when no computer is selected.
54901
55372
  */
@@ -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
  /**
@@ -68777,17 +69257,21 @@ export type BrowserListSessionsErrors = {
68777
69257
  */
68778
69258
  402: BrowserError;
68779
69259
  /**
68780
- * PERMISSION_DENIED / ACCOUNT_SUSPENDED
69260
+ * PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
68781
69261
  */
68782
69262
  403: BrowserError;
68783
69263
  /**
68784
- * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
69264
+ * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
68785
69265
  */
68786
69266
  404: BrowserError;
68787
69267
  /**
68788
- * SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
69268
+ * SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
68789
69269
  */
68790
69270
  409: BrowserError;
69271
+ /**
69272
+ * BROWSER_REVOKED
69273
+ */
69274
+ 410: BrowserError;
68791
69275
  /**
68792
69276
  * ACTION_RESULT_TOO_LARGE
68793
69277
  */
@@ -68809,7 +69293,7 @@ export type BrowserListSessionsErrors = {
68809
69293
  */
68810
69294
  502: BrowserError;
68811
69295
  /**
68812
- * SERVICE_UNAVAILABLE
69296
+ * BROWSER_OFFLINE / SERVICE_UNAVAILABLE
68813
69297
  */
68814
69298
  503: BrowserError;
68815
69299
  /**
@@ -68854,17 +69338,21 @@ export type BrowserCreateSessionErrors = {
68854
69338
  */
68855
69339
  402: BrowserError;
68856
69340
  /**
68857
- * PERMISSION_DENIED / ACCOUNT_SUSPENDED
69341
+ * PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
68858
69342
  */
68859
69343
  403: BrowserError;
68860
69344
  /**
68861
- * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
69345
+ * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
68862
69346
  */
68863
69347
  404: BrowserError;
68864
69348
  /**
68865
- * SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
69349
+ * SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
68866
69350
  */
68867
69351
  409: BrowserError;
69352
+ /**
69353
+ * BROWSER_REVOKED
69354
+ */
69355
+ 410: BrowserError;
68868
69356
  /**
68869
69357
  * ACTION_RESULT_TOO_LARGE
68870
69358
  */
@@ -68886,7 +69374,7 @@ export type BrowserCreateSessionErrors = {
68886
69374
  */
68887
69375
  502: BrowserError;
68888
69376
  /**
68889
- * SERVICE_UNAVAILABLE
69377
+ * BROWSER_OFFLINE / SERVICE_UNAVAILABLE
68890
69378
  */
68891
69379
  503: BrowserError;
68892
69380
  /**
@@ -68896,6 +69384,10 @@ export type BrowserCreateSessionErrors = {
68896
69384
  };
68897
69385
  export type BrowserCreateSessionError = BrowserCreateSessionErrors[keyof BrowserCreateSessionErrors];
68898
69386
  export type BrowserCreateSessionResponses = {
69387
+ /**
69388
+ * 请求成功。
69389
+ */
69390
+ 200: BrowserSessionCreateResult;
68899
69391
  /**
68900
69392
  * 请求成功。
68901
69393
  */
@@ -68932,17 +69424,21 @@ export type BrowserGetSessionErrors = {
68932
69424
  */
68933
69425
  402: BrowserError;
68934
69426
  /**
68935
- * PERMISSION_DENIED / ACCOUNT_SUSPENDED
69427
+ * PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
68936
69428
  */
68937
69429
  403: BrowserError;
68938
69430
  /**
68939
- * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
69431
+ * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
68940
69432
  */
68941
69433
  404: BrowserError;
68942
69434
  /**
68943
- * SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
69435
+ * SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
68944
69436
  */
68945
69437
  409: BrowserError;
69438
+ /**
69439
+ * BROWSER_REVOKED
69440
+ */
69441
+ 410: BrowserError;
68946
69442
  /**
68947
69443
  * ACTION_RESULT_TOO_LARGE
68948
69444
  */
@@ -68964,7 +69460,7 @@ export type BrowserGetSessionErrors = {
68964
69460
  */
68965
69461
  502: BrowserError;
68966
69462
  /**
68967
- * SERVICE_UNAVAILABLE
69463
+ * BROWSER_OFFLINE / SERVICE_UNAVAILABLE
68968
69464
  */
68969
69465
  503: BrowserError;
68970
69466
  /**
@@ -69010,17 +69506,21 @@ export type BrowserCloseSessionErrors = {
69010
69506
  */
69011
69507
  402: BrowserError;
69012
69508
  /**
69013
- * PERMISSION_DENIED / ACCOUNT_SUSPENDED
69509
+ * PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
69014
69510
  */
69015
69511
  403: BrowserError;
69016
69512
  /**
69017
- * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
69513
+ * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
69018
69514
  */
69019
69515
  404: BrowserError;
69020
69516
  /**
69021
- * SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
69517
+ * SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
69022
69518
  */
69023
69519
  409: BrowserError;
69520
+ /**
69521
+ * BROWSER_REVOKED
69522
+ */
69523
+ 410: BrowserError;
69024
69524
  /**
69025
69525
  * ACTION_RESULT_TOO_LARGE
69026
69526
  */
@@ -69042,7 +69542,7 @@ export type BrowserCloseSessionErrors = {
69042
69542
  */
69043
69543
  502: BrowserError;
69044
69544
  /**
69045
- * SERVICE_UNAVAILABLE
69545
+ * BROWSER_OFFLINE / SERVICE_UNAVAILABLE
69046
69546
  */
69047
69547
  503: BrowserError;
69048
69548
  /**
@@ -69083,17 +69583,21 @@ export type BrowserGetDebugErrors = {
69083
69583
  */
69084
69584
  402: BrowserError;
69085
69585
  /**
69086
- * PERMISSION_DENIED / ACCOUNT_SUSPENDED
69586
+ * PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
69087
69587
  */
69088
69588
  403: BrowserError;
69089
69589
  /**
69090
- * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
69590
+ * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
69091
69591
  */
69092
69592
  404: BrowserError;
69093
69593
  /**
69094
- * SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
69594
+ * SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
69095
69595
  */
69096
69596
  409: BrowserError;
69597
+ /**
69598
+ * BROWSER_REVOKED
69599
+ */
69600
+ 410: BrowserError;
69097
69601
  /**
69098
69602
  * ACTION_RESULT_TOO_LARGE
69099
69603
  */
@@ -69115,7 +69619,7 @@ export type BrowserGetDebugErrors = {
69115
69619
  */
69116
69620
  502: BrowserError;
69117
69621
  /**
69118
- * SERVICE_UNAVAILABLE
69622
+ * BROWSER_OFFLINE / SERVICE_UNAVAILABLE
69119
69623
  */
69120
69624
  503: BrowserError;
69121
69625
  /**
@@ -69169,17 +69673,21 @@ export type BrowserListEventsErrors = {
69169
69673
  */
69170
69674
  402: BrowserError;
69171
69675
  /**
69172
- * PERMISSION_DENIED / ACCOUNT_SUSPENDED
69676
+ * PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
69173
69677
  */
69174
69678
  403: BrowserError;
69175
69679
  /**
69176
- * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
69680
+ * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
69177
69681
  */
69178
69682
  404: BrowserError;
69179
69683
  /**
69180
- * SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
69684
+ * SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
69181
69685
  */
69182
69686
  409: BrowserError;
69687
+ /**
69688
+ * BROWSER_REVOKED
69689
+ */
69690
+ 410: BrowserError;
69183
69691
  /**
69184
69692
  * ACTION_RESULT_TOO_LARGE
69185
69693
  */
@@ -69201,7 +69709,7 @@ export type BrowserListEventsErrors = {
69201
69709
  */
69202
69710
  502: BrowserError;
69203
69711
  /**
69204
- * SERVICE_UNAVAILABLE
69712
+ * BROWSER_OFFLINE / SERVICE_UNAVAILABLE
69205
69713
  */
69206
69714
  503: BrowserError;
69207
69715
  /**
@@ -69448,17 +69956,21 @@ export type BrowserRunPageActionErrors = {
69448
69956
  */
69449
69957
  402: BrowserError;
69450
69958
  /**
69451
- * PERMISSION_DENIED / ACCOUNT_SUSPENDED
69959
+ * PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
69452
69960
  */
69453
69961
  403: BrowserError;
69454
69962
  /**
69455
- * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
69963
+ * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
69456
69964
  */
69457
69965
  404: BrowserError;
69458
69966
  /**
69459
- * SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
69967
+ * SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
69460
69968
  */
69461
69969
  409: BrowserError;
69970
+ /**
69971
+ * BROWSER_REVOKED
69972
+ */
69973
+ 410: BrowserError;
69462
69974
  /**
69463
69975
  * ACTION_RESULT_TOO_LARGE
69464
69976
  */
@@ -69480,7 +69992,7 @@ export type BrowserRunPageActionErrors = {
69480
69992
  */
69481
69993
  502: BrowserError;
69482
69994
  /**
69483
- * SERVICE_UNAVAILABLE
69995
+ * BROWSER_OFFLINE / SERVICE_UNAVAILABLE
69484
69996
  */
69485
69997
  503: BrowserError;
69486
69998
  /**
@@ -69666,17 +70178,21 @@ export type BrowserRequestHandoffErrors = {
69666
70178
  */
69667
70179
  402: BrowserError;
69668
70180
  /**
69669
- * PERMISSION_DENIED / ACCOUNT_SUSPENDED
70181
+ * PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
69670
70182
  */
69671
70183
  403: BrowserError;
69672
70184
  /**
69673
- * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
70185
+ * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
69674
70186
  */
69675
70187
  404: BrowserError;
69676
70188
  /**
69677
- * SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
70189
+ * SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
69678
70190
  */
69679
70191
  409: BrowserError;
70192
+ /**
70193
+ * BROWSER_REVOKED
70194
+ */
70195
+ 410: BrowserError;
69680
70196
  /**
69681
70197
  * ACTION_RESULT_TOO_LARGE
69682
70198
  */
@@ -69698,7 +70214,7 @@ export type BrowserRequestHandoffErrors = {
69698
70214
  */
69699
70215
  502: BrowserError;
69700
70216
  /**
69701
- * SERVICE_UNAVAILABLE
70217
+ * BROWSER_OFFLINE / SERVICE_UNAVAILABLE
69702
70218
  */
69703
70219
  503: BrowserError;
69704
70220
  /**
@@ -69739,17 +70255,21 @@ export type BrowserCompleteHandoffErrors = {
69739
70255
  */
69740
70256
  402: BrowserError;
69741
70257
  /**
69742
- * PERMISSION_DENIED / ACCOUNT_SUSPENDED
70258
+ * PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
69743
70259
  */
69744
70260
  403: BrowserError;
69745
70261
  /**
69746
- * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
70262
+ * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
69747
70263
  */
69748
70264
  404: BrowserError;
69749
70265
  /**
69750
- * SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
70266
+ * SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
69751
70267
  */
69752
70268
  409: BrowserError;
70269
+ /**
70270
+ * BROWSER_REVOKED
70271
+ */
70272
+ 410: BrowserError;
69753
70273
  /**
69754
70274
  * ACTION_RESULT_TOO_LARGE
69755
70275
  */
@@ -69771,7 +70291,7 @@ export type BrowserCompleteHandoffErrors = {
69771
70291
  */
69772
70292
  502: BrowserError;
69773
70293
  /**
69774
- * SERVICE_UNAVAILABLE
70294
+ * BROWSER_OFFLINE / SERVICE_UNAVAILABLE
69775
70295
  */
69776
70296
  503: BrowserError;
69777
70297
  /**
@@ -69821,17 +70341,443 @@ export type BrowserViewerHeartbeatErrors = {
69821
70341
  */
69822
70342
  402: BrowserError;
69823
70343
  /**
69824
- * PERMISSION_DENIED / ACCOUNT_SUSPENDED
70344
+ * PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
70345
+ */
70346
+ 403: BrowserError;
70347
+ /**
70348
+ * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
70349
+ */
70350
+ 404: BrowserError;
70351
+ /**
70352
+ * SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
70353
+ */
70354
+ 409: BrowserError;
70355
+ /**
70356
+ * BROWSER_REVOKED
70357
+ */
70358
+ 410: BrowserError;
70359
+ /**
70360
+ * ACTION_RESULT_TOO_LARGE
70361
+ */
70362
+ 413: BrowserError;
70363
+ /**
70364
+ * CONCURRENCY_LIMIT / RATE_LIMITED / PROVIDER_CAPACITY
70365
+ */
70366
+ 429: BrowserError;
70367
+ /**
70368
+ * INTERNAL
70369
+ */
70370
+ 500: BrowserError;
70371
+ /**
70372
+ * NOT_IMPLEMENTED / PROVIDER_UNSUPPORTED
70373
+ */
70374
+ 501: BrowserError;
70375
+ /**
70376
+ * PROVIDER_FAILED
70377
+ */
70378
+ 502: BrowserError;
70379
+ /**
70380
+ * BROWSER_OFFLINE / SERVICE_UNAVAILABLE
70381
+ */
70382
+ 503: BrowserError;
70383
+ /**
70384
+ * ACTION_TIMEOUT
70385
+ */
70386
+ 504: BrowserError;
70387
+ };
70388
+ export type BrowserViewerHeartbeatError = BrowserViewerHeartbeatErrors[keyof BrowserViewerHeartbeatErrors];
70389
+ export type BrowserViewerHeartbeatResponses = {
70390
+ /**
70391
+ * 请求成功。
70392
+ */
70393
+ 200: {
70394
+ /**
70395
+ * 心跳已被接受,成功时固定返回 true。
70396
+ */
70397
+ ok: true;
70398
+ };
70399
+ };
70400
+ export type BrowserViewerHeartbeatResponse = BrowserViewerHeartbeatResponses[keyof BrowserViewerHeartbeatResponses];
70401
+ export type BrowserGetSessionFrameData = {
70402
+ body?: never;
70403
+ path: {
70404
+ /**
70405
+ * 浏览器会话 ID;使用创建或列出会话返回的 id,以 bss_ 开头。
70406
+ */
70407
+ sessionId: string;
70408
+ };
70409
+ query?: never;
70410
+ url: '/browser/v1/sessions/{sessionId}/frame';
70411
+ };
70412
+ export type BrowserGetSessionFrameErrors = {
70413
+ /**
70414
+ * INVALID_PARAMS / INVALID_FILTER / INVALID_PAGE_TOKEN
70415
+ */
70416
+ 400: BrowserError;
70417
+ /**
70418
+ * UNAUTHENTICATED / CONNECT_SIGNATURE_INVALID
70419
+ */
70420
+ 401: BrowserError;
70421
+ /**
70422
+ * INSUFFICIENT_BALANCE / QUOTA_EXHAUSTED
70423
+ */
70424
+ 402: BrowserError;
70425
+ /**
70426
+ * PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
69825
70427
  */
69826
70428
  403: BrowserError;
69827
70429
  /**
69828
- * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
70430
+ * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
69829
70431
  */
69830
70432
  404: BrowserError;
69831
70433
  /**
69832
- * SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
70434
+ * SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
69833
70435
  */
69834
70436
  409: BrowserError;
70437
+ /**
70438
+ * BROWSER_REVOKED
70439
+ */
70440
+ 410: BrowserError;
70441
+ /**
70442
+ * ACTION_RESULT_TOO_LARGE
70443
+ */
70444
+ 413: BrowserError;
70445
+ /**
70446
+ * CONCURRENCY_LIMIT / RATE_LIMITED / PROVIDER_CAPACITY
70447
+ */
70448
+ 429: BrowserError;
70449
+ /**
70450
+ * INTERNAL
70451
+ */
70452
+ 500: BrowserError;
70453
+ /**
70454
+ * NOT_IMPLEMENTED / PROVIDER_UNSUPPORTED
70455
+ */
70456
+ 501: BrowserError;
70457
+ /**
70458
+ * PROVIDER_FAILED
70459
+ */
70460
+ 502: BrowserError;
70461
+ /**
70462
+ * BROWSER_OFFLINE / SERVICE_UNAVAILABLE
70463
+ */
70464
+ 503: BrowserError;
70465
+ /**
70466
+ * ACTION_TIMEOUT
70467
+ */
70468
+ 504: BrowserError;
70469
+ };
70470
+ export type BrowserGetSessionFrameError = BrowserGetSessionFrameErrors[keyof BrowserGetSessionFrameErrors];
70471
+ export type BrowserGetSessionFrameResponses = {
70472
+ /**
70473
+ * JPEG 画面帧,最多 2 MiB。
70474
+ */
70475
+ 200: Blob | File;
70476
+ };
70477
+ export type BrowserGetSessionFrameResponse = BrowserGetSessionFrameResponses[keyof BrowserGetSessionFrameResponses];
70478
+ export type BrowserListContextsData = {
70479
+ body?: never;
70480
+ path?: never;
70481
+ query?: {
70482
+ /**
70483
+ * 按登录态名称精确匹配;名称在当前账户内唯一,所以最多返回一条。省略时列出全部登录态。
70484
+ */
70485
+ name?: string;
70486
+ /**
70487
+ * 登录态 ID;使用创建或列出登录态返回的 id,以 bsc_ 开头。
70488
+ */
70489
+ cursor?: string;
70490
+ /**
70491
+ * 每页最多返回的登录态数量;默认 25,范围 1–100。
70492
+ */
70493
+ limit?: number;
70494
+ };
70495
+ url: '/browser/v1/contexts';
70496
+ };
70497
+ export type BrowserListContextsErrors = {
70498
+ /**
70499
+ * INVALID_PARAMS / INVALID_FILTER / INVALID_PAGE_TOKEN
70500
+ */
70501
+ 400: BrowserError;
70502
+ /**
70503
+ * UNAUTHENTICATED / CONNECT_SIGNATURE_INVALID
70504
+ */
70505
+ 401: BrowserError;
70506
+ /**
70507
+ * INSUFFICIENT_BALANCE / QUOTA_EXHAUSTED
70508
+ */
70509
+ 402: BrowserError;
70510
+ /**
70511
+ * PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
70512
+ */
70513
+ 403: BrowserError;
70514
+ /**
70515
+ * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
70516
+ */
70517
+ 404: BrowserError;
70518
+ /**
70519
+ * SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
70520
+ */
70521
+ 409: BrowserError;
70522
+ /**
70523
+ * BROWSER_REVOKED
70524
+ */
70525
+ 410: BrowserError;
70526
+ /**
70527
+ * ACTION_RESULT_TOO_LARGE
70528
+ */
70529
+ 413: BrowserError;
70530
+ /**
70531
+ * CONCURRENCY_LIMIT / RATE_LIMITED / PROVIDER_CAPACITY
70532
+ */
70533
+ 429: BrowserError;
70534
+ /**
70535
+ * INTERNAL
70536
+ */
70537
+ 500: BrowserError;
70538
+ /**
70539
+ * NOT_IMPLEMENTED / PROVIDER_UNSUPPORTED
70540
+ */
70541
+ 501: BrowserError;
70542
+ /**
70543
+ * PROVIDER_FAILED
70544
+ */
70545
+ 502: BrowserError;
70546
+ /**
70547
+ * BROWSER_OFFLINE / SERVICE_UNAVAILABLE
70548
+ */
70549
+ 503: BrowserError;
70550
+ /**
70551
+ * ACTION_TIMEOUT
70552
+ */
70553
+ 504: BrowserError;
70554
+ };
70555
+ export type BrowserListContextsError = BrowserListContextsErrors[keyof BrowserListContextsErrors];
70556
+ export type BrowserListContextsResponses = {
70557
+ /**
70558
+ * 分页查询结果,包含本页记录和下一页游标。
70559
+ */
70560
+ 200: {
70561
+ /**
70562
+ * 本页查询匹配的记录;没有匹配项时为空数组。
70563
+ */
70564
+ data: Array<BrowserContext>;
70565
+ /**
70566
+ * 下一页游标;原样传入 cursor,null 表示没有更多结果。
70567
+ */
70568
+ nextCursor: string | null;
70569
+ };
70570
+ };
70571
+ export type BrowserListContextsResponse = BrowserListContextsResponses[keyof BrowserListContextsResponses];
70572
+ export type BrowserCreateContextData = {
70573
+ body: {
70574
+ /**
70575
+ * 兼容项目字段;传入值被忽略,创建结果的 projectId 固定为 default。
70576
+ */
70577
+ projectId?: string;
70578
+ /**
70579
+ * 登录态名称;非空时为 1–128 个 ASCII 字母、数字或 . _ : -,在当前账户内唯一;空字符串表示不设名称或清除名称。
70580
+ */
70581
+ name?: '' | unknown;
70582
+ /**
70583
+ * 自定义字符串标签;最多 32 项,键最多 128 个 UTF-8 字节,值最多 1024 个 UTF-8 字节。
70584
+ */
70585
+ labels?: {
70586
+ [key: string]: string;
70587
+ };
70588
+ };
70589
+ path?: never;
70590
+ query?: never;
70591
+ url: '/browser/v1/contexts';
70592
+ };
70593
+ export type BrowserCreateContextErrors = {
70594
+ /**
70595
+ * INVALID_PARAMS / INVALID_FILTER / INVALID_PAGE_TOKEN
70596
+ */
70597
+ 400: BrowserError;
70598
+ /**
70599
+ * UNAUTHENTICATED / CONNECT_SIGNATURE_INVALID
70600
+ */
70601
+ 401: BrowserError;
70602
+ /**
70603
+ * INSUFFICIENT_BALANCE / QUOTA_EXHAUSTED
70604
+ */
70605
+ 402: BrowserError;
70606
+ /**
70607
+ * PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
70608
+ */
70609
+ 403: BrowserError;
70610
+ /**
70611
+ * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
70612
+ */
70613
+ 404: BrowserError;
70614
+ /**
70615
+ * SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
70616
+ */
70617
+ 409: BrowserError;
70618
+ /**
70619
+ * BROWSER_REVOKED
70620
+ */
70621
+ 410: BrowserError;
70622
+ /**
70623
+ * ACTION_RESULT_TOO_LARGE
70624
+ */
70625
+ 413: BrowserError;
70626
+ /**
70627
+ * CONCURRENCY_LIMIT / RATE_LIMITED / PROVIDER_CAPACITY
70628
+ */
70629
+ 429: BrowserError;
70630
+ /**
70631
+ * INTERNAL
70632
+ */
70633
+ 500: BrowserError;
70634
+ /**
70635
+ * NOT_IMPLEMENTED / PROVIDER_UNSUPPORTED
70636
+ */
70637
+ 501: BrowserError;
70638
+ /**
70639
+ * PROVIDER_FAILED
70640
+ */
70641
+ 502: BrowserError;
70642
+ /**
70643
+ * BROWSER_OFFLINE / SERVICE_UNAVAILABLE
70644
+ */
70645
+ 503: BrowserError;
70646
+ /**
70647
+ * ACTION_TIMEOUT
70648
+ */
70649
+ 504: BrowserError;
70650
+ };
70651
+ export type BrowserCreateContextError = BrowserCreateContextErrors[keyof BrowserCreateContextErrors];
70652
+ export type BrowserCreateContextResponses = {
70653
+ /**
70654
+ * 请求成功。
70655
+ */
70656
+ 201: BrowserContextCreateResult;
70657
+ };
70658
+ export type BrowserCreateContextResponse = BrowserCreateContextResponses[keyof BrowserCreateContextResponses];
70659
+ export type BrowserDeleteContextData = {
70660
+ body?: never;
70661
+ path: {
70662
+ /**
70663
+ * 登录态 ID;使用创建或列出登录态返回的 id,以 bsc_ 开头。
70664
+ */
70665
+ contextId: string;
70666
+ };
70667
+ query?: never;
70668
+ url: '/browser/v1/contexts/{contextId}';
70669
+ };
70670
+ export type BrowserDeleteContextErrors = {
70671
+ /**
70672
+ * INVALID_PARAMS / INVALID_FILTER / INVALID_PAGE_TOKEN
70673
+ */
70674
+ 400: BrowserError;
70675
+ /**
70676
+ * UNAUTHENTICATED / CONNECT_SIGNATURE_INVALID
70677
+ */
70678
+ 401: BrowserError;
70679
+ /**
70680
+ * INSUFFICIENT_BALANCE / QUOTA_EXHAUSTED
70681
+ */
70682
+ 402: BrowserError;
70683
+ /**
70684
+ * PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
70685
+ */
70686
+ 403: BrowserError;
70687
+ /**
70688
+ * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
70689
+ */
70690
+ 404: BrowserError;
70691
+ /**
70692
+ * SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
70693
+ */
70694
+ 409: BrowserError;
70695
+ /**
70696
+ * BROWSER_REVOKED
70697
+ */
70698
+ 410: BrowserError;
70699
+ /**
70700
+ * ACTION_RESULT_TOO_LARGE
70701
+ */
70702
+ 413: BrowserError;
70703
+ /**
70704
+ * CONCURRENCY_LIMIT / RATE_LIMITED / PROVIDER_CAPACITY
70705
+ */
70706
+ 429: BrowserError;
70707
+ /**
70708
+ * INTERNAL
70709
+ */
70710
+ 500: BrowserError;
70711
+ /**
70712
+ * NOT_IMPLEMENTED / PROVIDER_UNSUPPORTED
70713
+ */
70714
+ 501: BrowserError;
70715
+ /**
70716
+ * PROVIDER_FAILED
70717
+ */
70718
+ 502: BrowserError;
70719
+ /**
70720
+ * BROWSER_OFFLINE / SERVICE_UNAVAILABLE
70721
+ */
70722
+ 503: BrowserError;
70723
+ /**
70724
+ * ACTION_TIMEOUT
70725
+ */
70726
+ 504: BrowserError;
70727
+ };
70728
+ export type BrowserDeleteContextError = BrowserDeleteContextErrors[keyof BrowserDeleteContextErrors];
70729
+ export type BrowserDeleteContextResponses = {
70730
+ /**
70731
+ * 请求成功。
70732
+ */
70733
+ 200: {
70734
+ /**
70735
+ * 登录态及保存内容已删除,成功时固定返回 true。
70736
+ */
70737
+ deleted: true;
70738
+ };
70739
+ };
70740
+ export type BrowserDeleteContextResponse = BrowserDeleteContextResponses[keyof BrowserDeleteContextResponses];
70741
+ export type BrowserGetContextData = {
70742
+ body?: never;
70743
+ path: {
70744
+ /**
70745
+ * 登录态 ID;使用创建或列出登录态返回的 id,以 bsc_ 开头。
70746
+ */
70747
+ contextId: string;
70748
+ };
70749
+ query?: never;
70750
+ url: '/browser/v1/contexts/{contextId}';
70751
+ };
70752
+ export type BrowserGetContextErrors = {
70753
+ /**
70754
+ * INVALID_PARAMS / INVALID_FILTER / INVALID_PAGE_TOKEN
70755
+ */
70756
+ 400: BrowserError;
70757
+ /**
70758
+ * UNAUTHENTICATED / CONNECT_SIGNATURE_INVALID
70759
+ */
70760
+ 401: BrowserError;
70761
+ /**
70762
+ * INSUFFICIENT_BALANCE / QUOTA_EXHAUSTED
70763
+ */
70764
+ 402: BrowserError;
70765
+ /**
70766
+ * PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
70767
+ */
70768
+ 403: BrowserError;
70769
+ /**
70770
+ * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
70771
+ */
70772
+ 404: BrowserError;
70773
+ /**
70774
+ * SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
70775
+ */
70776
+ 409: BrowserError;
70777
+ /**
70778
+ * BROWSER_REVOKED
70779
+ */
70780
+ 410: BrowserError;
69835
70781
  /**
69836
70782
  * ACTION_RESULT_TOO_LARGE
69837
70783
  */
@@ -69853,7 +70799,7 @@ export type BrowserViewerHeartbeatErrors = {
69853
70799
  */
69854
70800
  502: BrowserError;
69855
70801
  /**
69856
- * SERVICE_UNAVAILABLE
70802
+ * BROWSER_OFFLINE / SERVICE_UNAVAILABLE
69857
70803
  */
69858
70804
  503: BrowserError;
69859
70805
  /**
@@ -69861,31 +70807,37 @@ export type BrowserViewerHeartbeatErrors = {
69861
70807
  */
69862
70808
  504: BrowserError;
69863
70809
  };
69864
- export type BrowserViewerHeartbeatError = BrowserViewerHeartbeatErrors[keyof BrowserViewerHeartbeatErrors];
69865
- export type BrowserViewerHeartbeatResponses = {
70810
+ export type BrowserGetContextError = BrowserGetContextErrors[keyof BrowserGetContextErrors];
70811
+ export type BrowserGetContextResponses = {
69866
70812
  /**
69867
70813
  * 请求成功。
69868
70814
  */
69869
- 200: {
70815
+ 200: BrowserContext;
70816
+ };
70817
+ export type BrowserGetContextResponse = BrowserGetContextResponses[keyof BrowserGetContextResponses];
70818
+ export type BrowserUpdateContextData = {
70819
+ body: {
69870
70820
  /**
69871
- * 心跳已被接受,成功时固定返回 true。
70821
+ * 登录态名称;非空时为 1–128 个 ASCII 字母、数字或 . _ : -,在当前账户内唯一;空字符串表示不设名称或清除名称。
69872
70822
  */
69873
- ok: true;
70823
+ name?: '' | unknown;
70824
+ /**
70825
+ * 自定义字符串标签;最多 32 项,键最多 128 个 UTF-8 字节,值最多 1024 个 UTF-8 字节。 更新时整体替换;空对象清除标签,省略则保留。
70826
+ */
70827
+ labels?: {
70828
+ [key: string]: string;
70829
+ };
69874
70830
  };
69875
- };
69876
- export type BrowserViewerHeartbeatResponse = BrowserViewerHeartbeatResponses[keyof BrowserViewerHeartbeatResponses];
69877
- export type BrowserGetSessionFrameData = {
69878
- body?: never;
69879
70831
  path: {
69880
70832
  /**
69881
- * 浏览器会话 ID;使用创建或列出会话返回的 id,以 bss_ 开头。
70833
+ * 登录态 ID;使用创建或列出登录态返回的 id,以 bsc_ 开头。
69882
70834
  */
69883
- sessionId: string;
70835
+ contextId: string;
69884
70836
  };
69885
70837
  query?: never;
69886
- url: '/browser/v1/sessions/{sessionId}/frame';
70838
+ url: '/browser/v1/contexts/{contextId}';
69887
70839
  };
69888
- export type BrowserGetSessionFrameErrors = {
70840
+ export type BrowserUpdateContextErrors = {
69889
70841
  /**
69890
70842
  * INVALID_PARAMS / INVALID_FILTER / INVALID_PAGE_TOKEN
69891
70843
  */
@@ -69899,17 +70851,21 @@ export type BrowserGetSessionFrameErrors = {
69899
70851
  */
69900
70852
  402: BrowserError;
69901
70853
  /**
69902
- * PERMISSION_DENIED / ACCOUNT_SUSPENDED
70854
+ * PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
69903
70855
  */
69904
70856
  403: BrowserError;
69905
70857
  /**
69906
- * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
70858
+ * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
69907
70859
  */
69908
70860
  404: BrowserError;
69909
70861
  /**
69910
- * SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
70862
+ * SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
69911
70863
  */
69912
70864
  409: BrowserError;
70865
+ /**
70866
+ * BROWSER_REVOKED
70867
+ */
70868
+ 410: BrowserError;
69913
70869
  /**
69914
70870
  * ACTION_RESULT_TOO_LARGE
69915
70871
  */
@@ -69931,7 +70887,7 @@ export type BrowserGetSessionFrameErrors = {
69931
70887
  */
69932
70888
  502: BrowserError;
69933
70889
  /**
69934
- * SERVICE_UNAVAILABLE
70890
+ * BROWSER_OFFLINE / SERVICE_UNAVAILABLE
69935
70891
  */
69936
70892
  503: BrowserError;
69937
70893
  /**
@@ -69939,34 +70895,102 @@ export type BrowserGetSessionFrameErrors = {
69939
70895
  */
69940
70896
  504: BrowserError;
69941
70897
  };
69942
- export type BrowserGetSessionFrameError = BrowserGetSessionFrameErrors[keyof BrowserGetSessionFrameErrors];
69943
- export type BrowserGetSessionFrameResponses = {
70898
+ export type BrowserUpdateContextError = BrowserUpdateContextErrors[keyof BrowserUpdateContextErrors];
70899
+ export type BrowserUpdateContextResponses = {
69944
70900
  /**
69945
- * JPEG 画面帧,最多 2 MiB。
70901
+ * 请求成功。
69946
70902
  */
69947
- 200: Blob | File;
70903
+ 200: BrowserContext;
69948
70904
  };
69949
- export type BrowserGetSessionFrameResponse = BrowserGetSessionFrameResponses[keyof BrowserGetSessionFrameResponses];
69950
- export type BrowserListContextsData = {
70905
+ export type BrowserUpdateContextResponse = BrowserUpdateContextResponses[keyof BrowserUpdateContextResponses];
70906
+ export type BrowserCreateByobPairingData = {
70907
+ body?: never;
70908
+ path?: never;
70909
+ query?: never;
70910
+ url: '/browser/v1/byob/pairings';
70911
+ };
70912
+ export type BrowserCreateByobPairingErrors = {
70913
+ /**
70914
+ * INVALID_PARAMS / INVALID_FILTER / INVALID_PAGE_TOKEN
70915
+ */
70916
+ 400: BrowserError;
70917
+ /**
70918
+ * UNAUTHENTICATED / CONNECT_SIGNATURE_INVALID
70919
+ */
70920
+ 401: BrowserError;
70921
+ /**
70922
+ * INSUFFICIENT_BALANCE / QUOTA_EXHAUSTED
70923
+ */
70924
+ 402: BrowserError;
70925
+ /**
70926
+ * PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
70927
+ */
70928
+ 403: BrowserError;
70929
+ /**
70930
+ * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
70931
+ */
70932
+ 404: BrowserError;
70933
+ /**
70934
+ * SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
70935
+ */
70936
+ 409: BrowserError;
70937
+ /**
70938
+ * BROWSER_REVOKED
70939
+ */
70940
+ 410: BrowserError;
70941
+ /**
70942
+ * ACTION_RESULT_TOO_LARGE
70943
+ */
70944
+ 413: BrowserError;
70945
+ /**
70946
+ * CONCURRENCY_LIMIT / RATE_LIMITED / PROVIDER_CAPACITY
70947
+ */
70948
+ 429: BrowserError;
70949
+ /**
70950
+ * INTERNAL
70951
+ */
70952
+ 500: BrowserError;
70953
+ /**
70954
+ * NOT_IMPLEMENTED / PROVIDER_UNSUPPORTED
70955
+ */
70956
+ 501: BrowserError;
70957
+ /**
70958
+ * PROVIDER_FAILED
70959
+ */
70960
+ 502: BrowserError;
70961
+ /**
70962
+ * BROWSER_OFFLINE / SERVICE_UNAVAILABLE
70963
+ */
70964
+ 503: BrowserError;
70965
+ /**
70966
+ * ACTION_TIMEOUT
70967
+ */
70968
+ 504: BrowserError;
70969
+ };
70970
+ export type BrowserCreateByobPairingError = BrowserCreateByobPairingErrors[keyof BrowserCreateByobPairingErrors];
70971
+ export type BrowserCreateByobPairingResponses = {
70972
+ /**
70973
+ * 请求成功。
70974
+ */
70975
+ 201: BrowserByobPairing;
70976
+ };
70977
+ export type BrowserCreateByobPairingResponse = BrowserCreateByobPairingResponses[keyof BrowserCreateByobPairingResponses];
70978
+ export type BrowserListByobBrowsersData = {
69951
70979
  body?: never;
69952
70980
  path?: never;
69953
70981
  query?: {
69954
70982
  /**
69955
- * 按登录态名称精确匹配;名称在当前账户内唯一,所以最多返回一条。省略时列出全部登录态。
69956
- */
69957
- name?: string;
69958
- /**
69959
- * 登录态 ID;使用创建或列出登录态返回的 id,以 bsc_ 开头。
70983
+ * 上一页返回的 nextCursor,原样传入;省略时读取第一页。
69960
70984
  */
69961
70985
  cursor?: string;
69962
70986
  /**
69963
- * 每页最多返回的登录态数量;默认 25,范围 1–100。
70987
+ * 每页最多返回的浏览器数量;默认 50,范围 1–100。
69964
70988
  */
69965
70989
  limit?: number;
69966
70990
  };
69967
- url: '/browser/v1/contexts';
70991
+ url: '/browser/v1/byob/browsers';
69968
70992
  };
69969
- export type BrowserListContextsErrors = {
70993
+ export type BrowserListByobBrowsersErrors = {
69970
70994
  /**
69971
70995
  * INVALID_PARAMS / INVALID_FILTER / INVALID_PAGE_TOKEN
69972
70996
  */
@@ -69980,17 +71004,21 @@ export type BrowserListContextsErrors = {
69980
71004
  */
69981
71005
  402: BrowserError;
69982
71006
  /**
69983
- * PERMISSION_DENIED / ACCOUNT_SUSPENDED
71007
+ * PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
69984
71008
  */
69985
71009
  403: BrowserError;
69986
71010
  /**
69987
- * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
71011
+ * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
69988
71012
  */
69989
71013
  404: BrowserError;
69990
71014
  /**
69991
- * SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
71015
+ * SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
69992
71016
  */
69993
71017
  409: BrowserError;
71018
+ /**
71019
+ * BROWSER_REVOKED
71020
+ */
71021
+ 410: BrowserError;
69994
71022
  /**
69995
71023
  * ACTION_RESULT_TOO_LARGE
69996
71024
  */
@@ -70012,7 +71040,7 @@ export type BrowserListContextsErrors = {
70012
71040
  */
70013
71041
  502: BrowserError;
70014
71042
  /**
70015
- * SERVICE_UNAVAILABLE
71043
+ * BROWSER_OFFLINE / SERVICE_UNAVAILABLE
70016
71044
  */
70017
71045
  503: BrowserError;
70018
71046
  /**
@@ -70020,45 +71048,117 @@ export type BrowserListContextsErrors = {
70020
71048
  */
70021
71049
  504: BrowserError;
70022
71050
  };
70023
- export type BrowserListContextsError = BrowserListContextsErrors[keyof BrowserListContextsErrors];
70024
- export type BrowserListContextsResponses = {
71051
+ export type BrowserListByobBrowsersError = BrowserListByobBrowsersErrors[keyof BrowserListByobBrowsersErrors];
71052
+ export type BrowserListByobBrowsersResponses = {
70025
71053
  /**
70026
- * 分页查询结果,包含本页记录和下一页游标。
71054
+ * 分页列出的自带浏览器,按 ID 升序。
70027
71055
  */
70028
71056
  200: {
70029
71057
  /**
70030
- * 本页查询匹配的记录;没有匹配项时为空数组。
71058
+ * 本页的自带浏览器;已断开的不在列表里。
70031
71059
  */
70032
- data: Array<BrowserContext>;
71060
+ data: Array<BrowserByobBrowser>;
70033
71061
  /**
70034
71062
  * 下一页游标;原样传入 cursor,null 表示没有更多结果。
70035
71063
  */
70036
71064
  nextCursor: string | null;
70037
71065
  };
70038
71066
  };
70039
- export type BrowserListContextsResponse = BrowserListContextsResponses[keyof BrowserListContextsResponses];
70040
- export type BrowserCreateContextData = {
70041
- body: {
71067
+ export type BrowserListByobBrowsersResponse = BrowserListByobBrowsersResponses[keyof BrowserListByobBrowsersResponses];
71068
+ export type BrowserGetByobBrowserData = {
71069
+ body?: never;
71070
+ path: {
70042
71071
  /**
70043
- * 兼容项目字段;传入值被忽略,创建结果的 projectId 固定为 default。
71072
+ * 自带浏览器 ID,以 byb_ 开头;使用配对认领或列出自带浏览器返回的 id。
70044
71073
  */
70045
- projectId?: string;
71074
+ browser_id: string;
71075
+ };
71076
+ query?: never;
71077
+ url: '/browser/v1/byob/browsers/{browser_id}';
71078
+ };
71079
+ export type BrowserGetByobBrowserErrors = {
71080
+ /**
71081
+ * INVALID_PARAMS / INVALID_FILTER / INVALID_PAGE_TOKEN
71082
+ */
71083
+ 400: BrowserError;
71084
+ /**
71085
+ * UNAUTHENTICATED / CONNECT_SIGNATURE_INVALID
71086
+ */
71087
+ 401: BrowserError;
71088
+ /**
71089
+ * INSUFFICIENT_BALANCE / QUOTA_EXHAUSTED
71090
+ */
71091
+ 402: BrowserError;
71092
+ /**
71093
+ * PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
71094
+ */
71095
+ 403: BrowserError;
71096
+ /**
71097
+ * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
71098
+ */
71099
+ 404: BrowserError;
71100
+ /**
71101
+ * SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
71102
+ */
71103
+ 409: BrowserError;
71104
+ /**
71105
+ * BROWSER_REVOKED
71106
+ */
71107
+ 410: BrowserError;
71108
+ /**
71109
+ * ACTION_RESULT_TOO_LARGE
71110
+ */
71111
+ 413: BrowserError;
71112
+ /**
71113
+ * CONCURRENCY_LIMIT / RATE_LIMITED / PROVIDER_CAPACITY
71114
+ */
71115
+ 429: BrowserError;
71116
+ /**
71117
+ * INTERNAL
71118
+ */
71119
+ 500: BrowserError;
71120
+ /**
71121
+ * NOT_IMPLEMENTED / PROVIDER_UNSUPPORTED
71122
+ */
71123
+ 501: BrowserError;
71124
+ /**
71125
+ * PROVIDER_FAILED
71126
+ */
71127
+ 502: BrowserError;
71128
+ /**
71129
+ * BROWSER_OFFLINE / SERVICE_UNAVAILABLE
71130
+ */
71131
+ 503: BrowserError;
71132
+ /**
71133
+ * ACTION_TIMEOUT
71134
+ */
71135
+ 504: BrowserError;
71136
+ };
71137
+ export type BrowserGetByobBrowserError = BrowserGetByobBrowserErrors[keyof BrowserGetByobBrowserErrors];
71138
+ export type BrowserGetByobBrowserResponses = {
71139
+ /**
71140
+ * 请求成功。
71141
+ */
71142
+ 200: BrowserByobBrowser;
71143
+ };
71144
+ export type BrowserGetByobBrowserResponse = BrowserGetByobBrowserResponses[keyof BrowserGetByobBrowserResponses];
71145
+ export type BrowserUpdateByobBrowserData = {
71146
+ body: {
70046
71147
  /**
70047
- * 登录态名称;非空时为 1–128 个 ASCII 字母、数字或 . _ : -,在当前账户内唯一;空字符串表示不设名称或清除名称。
71148
+ * 新的显示名称,1–80 个字符。
70048
71149
  */
70049
- name?: '' | unknown;
71150
+ name?: string;
71151
+ };
71152
+ path: {
70050
71153
  /**
70051
- * 自定义字符串标签;最多 32 项,键最多 128 个 UTF-8 字节,值最多 1024 个 UTF-8 字节。
71154
+ * 自带浏览器 ID,以 byb_ 开头;使用配对认领或列出自带浏览器返回的 id。
70052
71155
  */
70053
- labels?: {
70054
- [key: string]: string;
70055
- };
71156
+ browser_id: string;
70056
71157
  };
70057
- path?: never;
70058
71158
  query?: never;
70059
- url: '/browser/v1/contexts';
71159
+ url: '/browser/v1/byob/browsers/{browser_id}';
70060
71160
  };
70061
- export type BrowserCreateContextErrors = {
71161
+ export type BrowserUpdateByobBrowserErrors = {
70062
71162
  /**
70063
71163
  * INVALID_PARAMS / INVALID_FILTER / INVALID_PAGE_TOKEN
70064
71164
  */
@@ -70072,17 +71172,21 @@ export type BrowserCreateContextErrors = {
70072
71172
  */
70073
71173
  402: BrowserError;
70074
71174
  /**
70075
- * PERMISSION_DENIED / ACCOUNT_SUSPENDED
71175
+ * PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
70076
71176
  */
70077
71177
  403: BrowserError;
70078
71178
  /**
70079
- * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
71179
+ * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
70080
71180
  */
70081
71181
  404: BrowserError;
70082
71182
  /**
70083
- * SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
71183
+ * SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
70084
71184
  */
70085
71185
  409: BrowserError;
71186
+ /**
71187
+ * BROWSER_REVOKED
71188
+ */
71189
+ 410: BrowserError;
70086
71190
  /**
70087
71191
  * ACTION_RESULT_TOO_LARGE
70088
71192
  */
@@ -70104,7 +71208,7 @@ export type BrowserCreateContextErrors = {
70104
71208
  */
70105
71209
  502: BrowserError;
70106
71210
  /**
70107
- * SERVICE_UNAVAILABLE
71211
+ * BROWSER_OFFLINE / SERVICE_UNAVAILABLE
70108
71212
  */
70109
71213
  503: BrowserError;
70110
71214
  /**
@@ -70112,26 +71216,26 @@ export type BrowserCreateContextErrors = {
70112
71216
  */
70113
71217
  504: BrowserError;
70114
71218
  };
70115
- export type BrowserCreateContextError = BrowserCreateContextErrors[keyof BrowserCreateContextErrors];
70116
- export type BrowserCreateContextResponses = {
71219
+ export type BrowserUpdateByobBrowserError = BrowserUpdateByobBrowserErrors[keyof BrowserUpdateByobBrowserErrors];
71220
+ export type BrowserUpdateByobBrowserResponses = {
70117
71221
  /**
70118
71222
  * 请求成功。
70119
71223
  */
70120
- 201: BrowserContextCreateResult;
71224
+ 200: BrowserByobBrowser;
70121
71225
  };
70122
- export type BrowserCreateContextResponse = BrowserCreateContextResponses[keyof BrowserCreateContextResponses];
70123
- export type BrowserDeleteContextData = {
71226
+ export type BrowserUpdateByobBrowserResponse = BrowserUpdateByobBrowserResponses[keyof BrowserUpdateByobBrowserResponses];
71227
+ export type BrowserDisconnectByobBrowserData = {
70124
71228
  body?: never;
70125
71229
  path: {
70126
71230
  /**
70127
- * 登录态 ID;使用创建或列出登录态返回的 id,以 bsc_ 开头。
71231
+ * 自带浏览器 ID,以 byb_ 开头;使用配对认领或列出自带浏览器返回的 id。
70128
71232
  */
70129
- contextId: string;
71233
+ browser_id: string;
70130
71234
  };
70131
71235
  query?: never;
70132
- url: '/browser/v1/contexts/{contextId}';
71236
+ url: '/browser/v1/byob/browsers/{browser_id}/disconnect';
70133
71237
  };
70134
- export type BrowserDeleteContextErrors = {
71238
+ export type BrowserDisconnectByobBrowserErrors = {
70135
71239
  /**
70136
71240
  * INVALID_PARAMS / INVALID_FILTER / INVALID_PAGE_TOKEN
70137
71241
  */
@@ -70145,17 +71249,21 @@ export type BrowserDeleteContextErrors = {
70145
71249
  */
70146
71250
  402: BrowserError;
70147
71251
  /**
70148
- * PERMISSION_DENIED / ACCOUNT_SUSPENDED
71252
+ * PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
70149
71253
  */
70150
71254
  403: BrowserError;
70151
71255
  /**
70152
- * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
71256
+ * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
70153
71257
  */
70154
71258
  404: BrowserError;
70155
71259
  /**
70156
- * SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
71260
+ * SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
70157
71261
  */
70158
71262
  409: BrowserError;
71263
+ /**
71264
+ * BROWSER_REVOKED
71265
+ */
71266
+ 410: BrowserError;
70159
71267
  /**
70160
71268
  * ACTION_RESULT_TOO_LARGE
70161
71269
  */
@@ -70177,7 +71285,7 @@ export type BrowserDeleteContextErrors = {
70177
71285
  */
70178
71286
  502: BrowserError;
70179
71287
  /**
70180
- * SERVICE_UNAVAILABLE
71288
+ * BROWSER_OFFLINE / SERVICE_UNAVAILABLE
70181
71289
  */
70182
71290
  503: BrowserError;
70183
71291
  /**
@@ -70185,31 +71293,26 @@ export type BrowserDeleteContextErrors = {
70185
71293
  */
70186
71294
  504: BrowserError;
70187
71295
  };
70188
- export type BrowserDeleteContextError = BrowserDeleteContextErrors[keyof BrowserDeleteContextErrors];
70189
- export type BrowserDeleteContextResponses = {
71296
+ export type BrowserDisconnectByobBrowserError = BrowserDisconnectByobBrowserErrors[keyof BrowserDisconnectByobBrowserErrors];
71297
+ export type BrowserDisconnectByobBrowserResponses = {
70190
71298
  /**
70191
71299
  * 请求成功。
70192
71300
  */
70193
- 200: {
70194
- /**
70195
- * 登录态及保存内容已删除,成功时固定返回 true。
70196
- */
70197
- deleted: true;
70198
- };
71301
+ 200: BrowserByobBrowser;
70199
71302
  };
70200
- export type BrowserDeleteContextResponse = BrowserDeleteContextResponses[keyof BrowserDeleteContextResponses];
70201
- export type BrowserGetContextData = {
71303
+ export type BrowserDisconnectByobBrowserResponse = BrowserDisconnectByobBrowserResponses[keyof BrowserDisconnectByobBrowserResponses];
71304
+ export type BrowserReadByobPairingData = {
70202
71305
  body?: never;
70203
71306
  path: {
70204
71307
  /**
70205
- * 登录态 ID;使用创建或列出登录态返回的 id,以 bsc_ 开头。
71308
+ * 8 位配对码,来自创建配对码的结果。
70206
71309
  */
70207
- contextId: string;
71310
+ code: string;
70208
71311
  };
70209
71312
  query?: never;
70210
- url: '/browser/v1/contexts/{contextId}';
71313
+ url: '/browser/v1/byob/pairings/{code}';
70211
71314
  };
70212
- export type BrowserGetContextErrors = {
71315
+ export type BrowserReadByobPairingErrors = {
70213
71316
  /**
70214
71317
  * INVALID_PARAMS / INVALID_FILTER / INVALID_PAGE_TOKEN
70215
71318
  */
@@ -70223,17 +71326,21 @@ export type BrowserGetContextErrors = {
70223
71326
  */
70224
71327
  402: BrowserError;
70225
71328
  /**
70226
- * PERMISSION_DENIED / ACCOUNT_SUSPENDED
71329
+ * PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
70227
71330
  */
70228
71331
  403: BrowserError;
70229
71332
  /**
70230
- * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
71333
+ * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
70231
71334
  */
70232
71335
  404: BrowserError;
70233
71336
  /**
70234
- * SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
71337
+ * SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
70235
71338
  */
70236
71339
  409: BrowserError;
71340
+ /**
71341
+ * BROWSER_REVOKED
71342
+ */
71343
+ 410: BrowserError;
70237
71344
  /**
70238
71345
  * ACTION_RESULT_TOO_LARGE
70239
71346
  */
@@ -70255,7 +71362,7 @@ export type BrowserGetContextErrors = {
70255
71362
  */
70256
71363
  502: BrowserError;
70257
71364
  /**
70258
- * SERVICE_UNAVAILABLE
71365
+ * BROWSER_OFFLINE / SERVICE_UNAVAILABLE
70259
71366
  */
70260
71367
  503: BrowserError;
70261
71368
  /**
@@ -70263,37 +71370,26 @@ export type BrowserGetContextErrors = {
70263
71370
  */
70264
71371
  504: BrowserError;
70265
71372
  };
70266
- export type BrowserGetContextError = BrowserGetContextErrors[keyof BrowserGetContextErrors];
70267
- export type BrowserGetContextResponses = {
71373
+ export type BrowserReadByobPairingError = BrowserReadByobPairingErrors[keyof BrowserReadByobPairingErrors];
71374
+ export type BrowserReadByobPairingResponses = {
70268
71375
  /**
70269
71376
  * 请求成功。
70270
71377
  */
70271
- 200: BrowserContext;
71378
+ 200: BrowserByobPairingView;
70272
71379
  };
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
- };
71380
+ export type BrowserReadByobPairingResponse = BrowserReadByobPairingResponses[keyof BrowserReadByobPairingResponses];
71381
+ export type BrowserClaimByobPairingData = {
71382
+ body: BrowserByobClaim;
70287
71383
  path: {
70288
71384
  /**
70289
- * 登录态 ID;使用创建或列出登录态返回的 id,以 bsc_ 开头。
71385
+ * 8 位配对码,来自创建配对码的结果。
70290
71386
  */
70291
- contextId: string;
71387
+ code: string;
70292
71388
  };
70293
71389
  query?: never;
70294
- url: '/browser/v1/contexts/{contextId}';
71390
+ url: '/browser/v1/byob/pairings/{code}/claim';
70295
71391
  };
70296
- export type BrowserUpdateContextErrors = {
71392
+ export type BrowserClaimByobPairingErrors = {
70297
71393
  /**
70298
71394
  * INVALID_PARAMS / INVALID_FILTER / INVALID_PAGE_TOKEN
70299
71395
  */
@@ -70307,17 +71403,21 @@ export type BrowserUpdateContextErrors = {
70307
71403
  */
70308
71404
  402: BrowserError;
70309
71405
  /**
70310
- * PERMISSION_DENIED / ACCOUNT_SUSPENDED
71406
+ * PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
70311
71407
  */
70312
71408
  403: BrowserError;
70313
71409
  /**
70314
- * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
71410
+ * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
70315
71411
  */
70316
71412
  404: BrowserError;
70317
71413
  /**
70318
- * SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
71414
+ * SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
70319
71415
  */
70320
71416
  409: BrowserError;
71417
+ /**
71418
+ * BROWSER_REVOKED
71419
+ */
71420
+ 410: BrowserError;
70321
71421
  /**
70322
71422
  * ACTION_RESULT_TOO_LARGE
70323
71423
  */
@@ -70339,7 +71439,7 @@ export type BrowserUpdateContextErrors = {
70339
71439
  */
70340
71440
  502: BrowserError;
70341
71441
  /**
70342
- * SERVICE_UNAVAILABLE
71442
+ * BROWSER_OFFLINE / SERVICE_UNAVAILABLE
70343
71443
  */
70344
71444
  503: BrowserError;
70345
71445
  /**
@@ -70347,14 +71447,14 @@ export type BrowserUpdateContextErrors = {
70347
71447
  */
70348
71448
  504: BrowserError;
70349
71449
  };
70350
- export type BrowserUpdateContextError = BrowserUpdateContextErrors[keyof BrowserUpdateContextErrors];
70351
- export type BrowserUpdateContextResponses = {
71450
+ export type BrowserClaimByobPairingError = BrowserClaimByobPairingErrors[keyof BrowserClaimByobPairingErrors];
71451
+ export type BrowserClaimByobPairingResponses = {
70352
71452
  /**
70353
- * 请求成功。
71453
+ * 认领成功。
70354
71454
  */
70355
- 200: BrowserContext;
71455
+ 201: BrowserByobClaimResult;
70356
71456
  };
70357
- export type BrowserUpdateContextResponse = BrowserUpdateContextResponses[keyof BrowserUpdateContextResponses];
71457
+ export type BrowserClaimByobPairingResponse = BrowserClaimByobPairingResponses[keyof BrowserClaimByobPairingResponses];
70358
71458
  export type BrowserConnectData = {
70359
71459
  body?: never;
70360
71460
  path?: never;
@@ -70412,17 +71512,21 @@ export type BrowserConnectErrors = {
70412
71512
  */
70413
71513
  402: BrowserError;
70414
71514
  /**
70415
- * PERMISSION_DENIED / ACCOUNT_SUSPENDED
71515
+ * PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
70416
71516
  */
70417
71517
  403: BrowserError;
70418
71518
  /**
70419
- * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
71519
+ * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
70420
71520
  */
70421
71521
  404: BrowserError;
70422
71522
  /**
70423
- * SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
71523
+ * SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
70424
71524
  */
70425
71525
  409: BrowserError;
71526
+ /**
71527
+ * BROWSER_REVOKED
71528
+ */
71529
+ 410: BrowserError;
70426
71530
  /**
70427
71531
  * ACTION_RESULT_TOO_LARGE
70428
71532
  */
@@ -70444,7 +71548,7 @@ export type BrowserConnectErrors = {
70444
71548
  */
70445
71549
  502: BrowserError;
70446
71550
  /**
70447
- * SERVICE_UNAVAILABLE
71551
+ * BROWSER_OFFLINE / SERVICE_UNAVAILABLE
70448
71552
  */
70449
71553
  503: BrowserError;
70450
71554
  /**
@@ -70487,17 +71591,21 @@ export type BrowserLiveViewErrors = {
70487
71591
  */
70488
71592
  402: BrowserError;
70489
71593
  /**
70490
- * PERMISSION_DENIED / ACCOUNT_SUSPENDED
71594
+ * PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
70491
71595
  */
70492
71596
  403: BrowserError;
70493
71597
  /**
70494
- * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
71598
+ * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
70495
71599
  */
70496
71600
  404: BrowserError;
70497
71601
  /**
70498
- * SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
71602
+ * SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
70499
71603
  */
70500
71604
  409: BrowserError;
71605
+ /**
71606
+ * BROWSER_REVOKED
71607
+ */
71608
+ 410: BrowserError;
70501
71609
  /**
70502
71610
  * ACTION_RESULT_TOO_LARGE
70503
71611
  */
@@ -70519,7 +71627,7 @@ export type BrowserLiveViewErrors = {
70519
71627
  */
70520
71628
  502: BrowserError;
70521
71629
  /**
70522
- * SERVICE_UNAVAILABLE
71630
+ * BROWSER_OFFLINE / SERVICE_UNAVAILABLE
70523
71631
  */
70524
71632
  503: BrowserError;
70525
71633
  /**
@@ -70553,17 +71661,21 @@ export type BrowserStreamSessionErrors = {
70553
71661
  */
70554
71662
  402: BrowserError;
70555
71663
  /**
70556
- * PERMISSION_DENIED / ACCOUNT_SUSPENDED
71664
+ * PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
70557
71665
  */
70558
71666
  403: BrowserError;
70559
71667
  /**
70560
- * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
71668
+ * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
70561
71669
  */
70562
71670
  404: BrowserError;
70563
71671
  /**
70564
- * SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
71672
+ * SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
70565
71673
  */
70566
71674
  409: BrowserError;
71675
+ /**
71676
+ * BROWSER_REVOKED
71677
+ */
71678
+ 410: BrowserError;
70567
71679
  /**
70568
71680
  * ACTION_RESULT_TOO_LARGE
70569
71681
  */
@@ -70585,7 +71697,7 @@ export type BrowserStreamSessionErrors = {
70585
71697
  */
70586
71698
  502: BrowserError;
70587
71699
  /**
70588
- * SERVICE_UNAVAILABLE
71700
+ * BROWSER_OFFLINE / SERVICE_UNAVAILABLE
70589
71701
  */
70590
71702
  503: BrowserError;
70591
71703
  /**
@@ -70626,17 +71738,21 @@ export type BrowserStreamSessionFramesErrors = {
70626
71738
  */
70627
71739
  402: BrowserError;
70628
71740
  /**
70629
- * PERMISSION_DENIED / ACCOUNT_SUSPENDED
71741
+ * PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
70630
71742
  */
70631
71743
  403: BrowserError;
70632
71744
  /**
70633
- * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
71745
+ * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
70634
71746
  */
70635
71747
  404: BrowserError;
70636
71748
  /**
70637
- * SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
71749
+ * SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
70638
71750
  */
70639
71751
  409: BrowserError;
71752
+ /**
71753
+ * BROWSER_REVOKED
71754
+ */
71755
+ 410: BrowserError;
70640
71756
  /**
70641
71757
  * ACTION_RESULT_TOO_LARGE
70642
71758
  */
@@ -70658,7 +71774,7 @@ export type BrowserStreamSessionFramesErrors = {
70658
71774
  */
70659
71775
  502: BrowserError;
70660
71776
  /**
70661
- * SERVICE_UNAVAILABLE
71777
+ * BROWSER_OFFLINE / SERVICE_UNAVAILABLE
70662
71778
  */
70663
71779
  503: BrowserError;
70664
71780
  /**
@@ -71054,7 +72170,7 @@ export type FileCreateSignedUploadErrors = {
71054
72170
  */
71055
72171
  401: unknown;
71056
72172
  /**
71057
- * PERMISSION_DENIED or BINDING_READ_ONLY: use a credential with the required create or file-write authority.
72173
+ * PERMISSION_DENIED, BINDING_READ_ONLY or CAPABILITY_MISMATCH: the credential lacks create authority, or a signed upload URL was used for another action than the one it names.
71058
72174
  */
71059
72175
  403: unknown;
71060
72176
  };
@@ -77963,10 +79079,18 @@ export type GetOrganizationNotificationsInboxData = {
77963
79079
  url: '/organization/v1/notifications/inbox';
77964
79080
  };
77965
79081
  export type GetOrganizationNotificationsInboxErrors = {
79082
+ /**
79083
+ * `INVALID_PARAMS` from the service for a read it cannot answer (RFC 9457 problem).
79084
+ */
79085
+ 400: unknown;
77966
79086
  /**
77967
79087
  * Missing or invalid credential (RFC 9457 problem).
77968
79088
  */
77969
79089
  401: unknown;
79090
+ /**
79091
+ * The notification service did not answer, or failed in a way it did not classify (RFC 9457 problem, `UNAVAILABLE`). A refusal the service classifies is never a 502 — it reaches the caller in its own class (400, 403, 404), so a client may act on it.
79092
+ */
79093
+ 502: unknown;
77970
79094
  };
77971
79095
  export type GetOrganizationNotificationsInboxResponses = {
77972
79096
  /**
@@ -78009,13 +79133,17 @@ export type ListOrganizationNotificationLettersData = {
78009
79133
  };
78010
79134
  export type ListOrganizationNotificationLettersErrors = {
78011
79135
  /**
78012
- * Invalid status, archived or limit (RFC 9457 problem).
79136
+ * A bad `status`, `archived` or `limit`, or `INVALID_PARAMS` from the service for a cursor it did not issue (RFC 9457 problem).
78013
79137
  */
78014
79138
  400: unknown;
78015
79139
  /**
78016
79140
  * Missing or invalid credential (RFC 9457 problem).
78017
79141
  */
78018
79142
  401: unknown;
79143
+ /**
79144
+ * The notification service did not answer, or failed in a way it did not classify (RFC 9457 problem, `UNAVAILABLE`). A refusal the service classifies is never a 502 — it reaches the caller in its own class (400, 403, 404), so a client may act on it.
79145
+ */
79146
+ 502: unknown;
78019
79147
  };
78020
79148
  export type ListOrganizationNotificationLettersResponses = {
78021
79149
  /**
@@ -78076,6 +79204,23 @@ export type ListOrganizationNotificationLettersResponses = {
78076
79204
  * Whether this person archived it. Archived letters are hidden unless archived=true is asked for.
78077
79205
  */
78078
79206
  archived: boolean;
79207
+ /**
79208
+ * The organization the letter belongs to: its own. It is always an object with all three fields — `id`, `slug` and `name` — or `null`; a half-filled object never appears. `null` means the organization directory did not answer this time, so the display name could not be read: it does not mean the letter has no organization, and the letter's own organization is still the one behind the credential. Read it again and the value is normally there. The Console compares `id` with the organization it is showing, carries `slug` on a link, and shows `name` to a person.
79209
+ */
79210
+ organization: {
79211
+ /**
79212
+ * The organization's id, from the directory.
79213
+ */
79214
+ id: string;
79215
+ /**
79216
+ * The organization's readable slug (ADR-101), the one a Console link carries as org=.
79217
+ */
79218
+ slug: string;
79219
+ /**
79220
+ * The organization's display name, as a person reads it.
79221
+ */
79222
+ name: string;
79223
+ };
78079
79224
  }>;
78080
79225
  /**
78081
79226
  * Pass unchanged as cursor for the next page; null at the end.
@@ -78088,6 +79233,110 @@ export type ListOrganizationNotificationLettersResponses = {
78088
79233
  };
78089
79234
  };
78090
79235
  export type ListOrganizationNotificationLettersResponse = ListOrganizationNotificationLettersResponses[keyof ListOrganizationNotificationLettersResponses];
79236
+ export type GetOrganizationNotificationLetterData = {
79237
+ body?: never;
79238
+ path: {
79239
+ /**
79240
+ * The letter's id, from the letters list.
79241
+ */
79242
+ id: string;
79243
+ };
79244
+ query?: never;
79245
+ url: '/organization/v1/notifications/letters/{id}';
79246
+ };
79247
+ export type GetOrganizationNotificationLetterErrors = {
79248
+ /**
79249
+ * The id is not a letter id — `INVALID_PARAMS` from the service (RFC 9457 problem).
79250
+ */
79251
+ 400: unknown;
79252
+ /**
79253
+ * Missing or invalid credential (RFC 9457 problem).
79254
+ */
79255
+ 401: unknown;
79256
+ /**
79257
+ * No such letter in your mailbox in this organization — `MESSAGE_NOT_FOUND`, the same answer for a letter that is not yours, is still scheduled, or never existed (RFC 9457 problem).
79258
+ */
79259
+ 404: unknown;
79260
+ /**
79261
+ * The notification service did not answer, or failed in a way it did not classify (RFC 9457 problem, `UNAVAILABLE`). A refusal the service classifies is never a 502 — it reaches the caller in its own class (400, 403, 404), so a client may act on it.
79262
+ */
79263
+ 502: unknown;
79264
+ };
79265
+ export type GetOrganizationNotificationLetterResponses = {
79266
+ /**
79267
+ * The letter, as the list would show it.
79268
+ */
79269
+ 200: {
79270
+ /**
79271
+ * The letter's id.
79272
+ */
79273
+ id: string;
79274
+ /**
79275
+ * The sender's display name. Never an address or an internal id; an address the directory does not know reads 「未知成员」.
79276
+ */
79277
+ sender: string;
79278
+ /**
79279
+ * One line saying what the letter asks or tells, written for this reader.
79280
+ */
79281
+ summary: string;
79282
+ /**
79283
+ * The whole letter, for the detail view, written for this reader.
79284
+ */
79285
+ body: string;
79286
+ /**
79287
+ * The conversation the letter belongs to; a ticket letter uses ticket:<repository>:<number>. Null when the sender named none.
79288
+ */
79289
+ thread: string;
79290
+ /**
79291
+ * The letter's kind (ADR-193 §2, #4107).
79292
+ */
79293
+ kind: 'notice' | 'mention' | 'decision';
79294
+ /**
79295
+ * Where the letter came from (a ticket number, a comment, a change); null when the sender gave none.
79296
+ */
79297
+ source: {
79298
+ [key: string]: unknown;
79299
+ };
79300
+ /**
79301
+ * Whether this person has read it.
79302
+ */
79303
+ read: boolean;
79304
+ /**
79305
+ * When it arrived; null while still scheduled.
79306
+ */
79307
+ deliveredAt: string;
79308
+ /**
79309
+ * When it was written.
79310
+ */
79311
+ createTime: string;
79312
+ /**
79313
+ * Why it reached this person, in their words — 「在工单 #4109 的评论里 @ 了你」.
79314
+ */
79315
+ reason: string;
79316
+ /**
79317
+ * Whether this person archived it.
79318
+ */
79319
+ archived: boolean;
79320
+ /**
79321
+ * The organization the letter belongs to: its own. It is always an object with all three fields — `id`, `slug` and `name` — or `null`; a half-filled object never appears. `null` means the organization directory did not answer this time, so the display name could not be read: it does not mean the letter has no organization. Read it again and the value is normally there.
79322
+ */
79323
+ organization: {
79324
+ /**
79325
+ * The organization's id, from the directory.
79326
+ */
79327
+ id: string;
79328
+ /**
79329
+ * The organization's readable slug (ADR-101), the one a Console link carries as org=.
79330
+ */
79331
+ slug: string;
79332
+ /**
79333
+ * The organization's display name, as a person reads it.
79334
+ */
79335
+ name: string;
79336
+ };
79337
+ };
79338
+ };
79339
+ export type GetOrganizationNotificationLetterResponse = GetOrganizationNotificationLetterResponses[keyof GetOrganizationNotificationLetterResponses];
78091
79340
  export type ReadOrganizationNotificationLetterData = {
78092
79341
  body?: never;
78093
79342
  path: {
@@ -78101,7 +79350,7 @@ export type ReadOrganizationNotificationLetterData = {
78101
79350
  };
78102
79351
  export type ReadOrganizationNotificationLetterErrors = {
78103
79352
  /**
78104
- * The id is not a letter id (RFC 9457 problem).
79353
+ * The id is not a letter id — `INVALID_PARAMS` from the service (RFC 9457 problem).
78105
79354
  */
78106
79355
  400: unknown;
78107
79356
  /**
@@ -78109,9 +79358,13 @@ export type ReadOrganizationNotificationLetterErrors = {
78109
79358
  */
78110
79359
  401: unknown;
78111
79360
  /**
78112
- * No such letter in your mailbox (RFC 9457 problem).
79361
+ * No such letter in your mailbox in this organization — `MESSAGE_NOT_FOUND` (RFC 9457 problem).
78113
79362
  */
78114
79363
  404: unknown;
79364
+ /**
79365
+ * The notification service did not answer, or failed in a way it did not classify (RFC 9457 problem, `UNAVAILABLE`). A refusal the service classifies is never a 502 — it reaches the caller in its own class (400, 403, 404), so a client may act on it.
79366
+ */
79367
+ 502: unknown;
78115
79368
  };
78116
79369
  export type ReadOrganizationNotificationLetterResponses = {
78117
79370
  /**
@@ -78138,13 +79391,17 @@ export type ReadAllOrganizationNotificationLettersData = {
78138
79391
  };
78139
79392
  export type ReadAllOrganizationNotificationLettersErrors = {
78140
79393
  /**
78141
- * The body is not a JSON object, or kind is unknown (RFC 9457 problem).
79394
+ * The body is not a JSON object, `kind` is unknown, or `INVALID_PARAMS` from the service (RFC 9457 problem).
78142
79395
  */
78143
79396
  400: unknown;
78144
79397
  /**
78145
79398
  * Missing or invalid credential (RFC 9457 problem).
78146
79399
  */
78147
79400
  401: unknown;
79401
+ /**
79402
+ * The notification service did not answer, or failed in a way it did not classify (RFC 9457 problem, `UNAVAILABLE`). A refusal the service classifies is never a 502 — it reaches the caller in its own class (400, 403, 404), so a client may act on it.
79403
+ */
79404
+ 502: unknown;
78148
79405
  };
78149
79406
  export type ReadAllOrganizationNotificationLettersResponses = {
78150
79407
  /**
@@ -78171,7 +79428,7 @@ export type ArchiveOrganizationNotificationLetterData = {
78171
79428
  };
78172
79429
  export type ArchiveOrganizationNotificationLetterErrors = {
78173
79430
  /**
78174
- * The id is not a letter id (RFC 9457 problem).
79431
+ * The id is not a letter id — `INVALID_PARAMS` from the service (RFC 9457 problem).
78175
79432
  */
78176
79433
  400: unknown;
78177
79434
  /**
@@ -78179,9 +79436,13 @@ export type ArchiveOrganizationNotificationLetterErrors = {
78179
79436
  */
78180
79437
  401: unknown;
78181
79438
  /**
78182
- * No such letter in your mailbox (RFC 9457 problem).
79439
+ * No such letter in your mailbox in this organization — `MESSAGE_NOT_FOUND` (RFC 9457 problem).
78183
79440
  */
78184
79441
  404: unknown;
79442
+ /**
79443
+ * The notification service did not answer, or failed in a way it did not classify (RFC 9457 problem, `UNAVAILABLE`). A refusal the service classifies is never a 502 — it reaches the caller in its own class (400, 403, 404), so a client may act on it.
79444
+ */
79445
+ 502: unknown;
78185
79446
  };
78186
79447
  export type ArchiveOrganizationNotificationLetterResponses = {
78187
79448
  /**
@@ -78206,6 +79467,10 @@ export type GetOrganizationNotificationPreferencesErrors = {
78206
79467
  * Missing or invalid credential (RFC 9457 problem).
78207
79468
  */
78208
79469
  401: unknown;
79470
+ /**
79471
+ * The notification service did not answer, or failed in a way it did not classify (RFC 9457 problem, `UNAVAILABLE`). A refusal the service classifies is never a 502 — it reaches the caller in its own class (400, 403, 404), so a client may act on it.
79472
+ */
79473
+ 502: unknown;
78209
79474
  };
78210
79475
  export type GetOrganizationNotificationPreferencesResponses = {
78211
79476
  /**
@@ -78297,7 +79562,7 @@ export type UpdateOrganizationNotificationPreferencesData = {
78297
79562
  };
78298
79563
  export type UpdateOrganizationNotificationPreferencesErrors = {
78299
79564
  /**
78300
- * Invalid switch, unknown category or unoffered channel (RFC 9457 problem).
79565
+ * Invalid switch, unknown category or unoffered channel — `INVALID_PARAMS`, `NOT_CONFIGURABLE` or `CRITICAL_CHANNELS_OFF` from the service (RFC 9457 problem).
78301
79566
  */
78302
79567
  400: unknown;
78303
79568
  /**
@@ -78305,9 +79570,13 @@ export type UpdateOrganizationNotificationPreferencesErrors = {
78305
79570
  */
78306
79571
  401: unknown;
78307
79572
  /**
78308
- * The organization does not let members change their own switches (ORGANIZATION_LOCKED).
79573
+ * The organization does not let members change their own switches — `ORGANIZATION_LOCKED` from the service (RFC 9457 problem).
78309
79574
  */
78310
79575
  403: unknown;
79576
+ /**
79577
+ * The notification service did not answer, or failed in a way it did not classify (RFC 9457 problem, `UNAVAILABLE`). A refusal the service classifies is never a 502 — it reaches the caller in its own class (400, 403, 404), so a client may act on it.
79578
+ */
79579
+ 502: unknown;
78311
79580
  };
78312
79581
  export type UpdateOrganizationNotificationPreferencesResponses = {
78313
79582
  /**
@@ -78329,6 +79598,10 @@ export type GetOrganizationNotificationDefaultsErrors = {
78329
79598
  * Missing or invalid credential (RFC 9457 problem).
78330
79599
  */
78331
79600
  401: unknown;
79601
+ /**
79602
+ * The notification service did not answer, or failed in a way it did not classify (RFC 9457 problem, `UNAVAILABLE`). A refusal the service classifies is never a 502 — it reaches the caller in its own class (400, 403, 404), so a client may act on it.
79603
+ */
79604
+ 502: unknown;
78332
79605
  };
78333
79606
  export type GetOrganizationNotificationDefaultsResponses = {
78334
79607
  /**
@@ -78366,7 +79639,7 @@ export type UpdateOrganizationNotificationDefaultsData = {
78366
79639
  };
78367
79640
  export type UpdateOrganizationNotificationDefaultsErrors = {
78368
79641
  /**
78369
- * Invalid default, unknown category or hidden critical category (RFC 9457 problem).
79642
+ * Invalid default, unknown category or hidden critical category (RFC 9457 problem, `INVALID_PARAMS`).
78370
79643
  */
78371
79644
  400: unknown;
78372
79645
  /**
@@ -78374,9 +79647,13 @@ export type UpdateOrganizationNotificationDefaultsErrors = {
78374
79647
  */
78375
79648
  401: unknown;
78376
79649
  /**
78377
- * The caller is not an owner or admin of this organization.
79650
+ * The caller is not an owner or admin of this organization — `PERMISSION_DENIED` from the service (RFC 9457 problem).
78378
79651
  */
78379
79652
  403: unknown;
79653
+ /**
79654
+ * The notification service did not answer, or failed in a way it did not classify (RFC 9457 problem, `UNAVAILABLE`). A refusal the service classifies is never a 502 — it reaches the caller in its own class (400, 403, 404), so a client may act on it.
79655
+ */
79656
+ 502: unknown;
78380
79657
  };
78381
79658
  export type UpdateOrganizationNotificationDefaultsResponses = {
78382
79659
  /**
@@ -78404,13 +79681,17 @@ export type ListOrganizationNotificationDeliveriesData = {
78404
79681
  };
78405
79682
  export type ListOrganizationNotificationDeliveriesErrors = {
78406
79683
  /**
78407
- * Invalid limit or page cursor (RFC 9457 problem).
79684
+ * Invalid limit, or `INVALID_PARAMS` from the service for a page cursor it did not issue (RFC 9457 problem).
78408
79685
  */
78409
79686
  400: unknown;
78410
79687
  /**
78411
79688
  * Missing or invalid credential (RFC 9457 problem).
78412
79689
  */
78413
79690
  401: unknown;
79691
+ /**
79692
+ * The notification service did not answer, or failed in a way it did not classify (RFC 9457 problem, `UNAVAILABLE`). A refusal the service classifies is never a 502 — it reaches the caller in its own class (400, 403, 404), so a client may act on it.
79693
+ */
79694
+ 502: unknown;
78414
79695
  };
78415
79696
  export type ListOrganizationNotificationDeliveriesResponses = {
78416
79697
  /**
@@ -79642,7 +80923,7 @@ export type ListByodDevicesResponses = {
79642
80923
  */
79643
80924
  id: string;
79644
80925
  /**
79645
- * 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.
80926
+ * The device's platform, which decides the use faces it answers. A desktop (macos, linux) pairs like a phone; windows is not supported yet.
79646
80927
  */
79647
80928
  platform: 'android' | 'macos' | 'linux';
79648
80929
  /**
@@ -79677,6 +80958,23 @@ export type ListByodDevicesResponses = {
79677
80958
  * The absolute directories a desktop registered for agent sessions with its last hello; a session may only start in one of these. Empty for a phone and for a desktop that has not connected yet.
79678
80959
  */
79679
80960
  agent_dirs: Array<string>;
80961
+ /**
80962
+ * Which agent each registered directory is bound to, as the desktop's last hello reported. Empty for a phone and for a desktop that has not connected yet.
80963
+ */
80964
+ agent_bindings: Array<{
80965
+ /**
80966
+ * The absolute directory the desktop bound to an agent with praxis agent connect.
80967
+ */
80968
+ dir: string;
80969
+ /**
80970
+ * The agent the directory is bound to: its identity number or its agent id.
80971
+ */
80972
+ agent: string;
80973
+ }>;
80974
+ /**
80975
+ * The version of the envd on the desktop, as its last hello reported. Null for a phone, for a desktop that has not connected yet, and for an envd that sent no version.
80976
+ */
80977
+ envd_version: string | null;
79680
80978
  /**
79681
80979
  * Whether the desktop's envd lets a platform session run in bypassPermissions (all tool calls without asking). True unless the person ran praxis connect agent --no-bypass on that machine; a session create that asks for bypassPermissions on a device where this is false answers 400 INVALID_PARAMS. False for a phone and for a desktop that has not connected yet.
79682
80980
  */
@@ -79724,7 +81022,7 @@ export type GetByodDeviceResponses = {
79724
81022
  */
79725
81023
  id: string;
79726
81024
  /**
79727
- * 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.
81025
+ * The device's platform, which decides the use faces it answers. A desktop (macos, linux) pairs like a phone; windows is not supported yet.
79728
81026
  */
79729
81027
  platform: 'android' | 'macos' | 'linux';
79730
81028
  /**
@@ -79759,6 +81057,23 @@ export type GetByodDeviceResponses = {
79759
81057
  * The absolute directories a desktop registered for agent sessions with its last hello; a session may only start in one of these. Empty for a phone and for a desktop that has not connected yet.
79760
81058
  */
79761
81059
  agent_dirs: Array<string>;
81060
+ /**
81061
+ * Which agent each registered directory is bound to, as the desktop's last hello reported. Empty for a phone and for a desktop that has not connected yet.
81062
+ */
81063
+ agent_bindings: Array<{
81064
+ /**
81065
+ * The absolute directory the desktop bound to an agent with praxis agent connect.
81066
+ */
81067
+ dir: string;
81068
+ /**
81069
+ * The agent the directory is bound to: its identity number or its agent id.
81070
+ */
81071
+ agent: string;
81072
+ }>;
81073
+ /**
81074
+ * The version of the envd on the desktop, as its last hello reported. Null for a phone, for a desktop that has not connected yet, and for an envd that sent no version.
81075
+ */
81076
+ envd_version: string | null;
79762
81077
  /**
79763
81078
  * Whether the desktop's envd lets a platform session run in bypassPermissions (all tool calls without asking). True unless the person ran praxis connect agent --no-bypass on that machine; a session create that asks for bypassPermissions on a device where this is false answers 400 INVALID_PARAMS. False for a phone and for a desktop that has not connected yet.
79764
81079
  */
@@ -79817,7 +81132,7 @@ export type UpdateByodDeviceResponses = {
79817
81132
  */
79818
81133
  id: string;
79819
81134
  /**
79820
- * 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.
81135
+ * The device's platform, which decides the use faces it answers. A desktop (macos, linux) pairs like a phone; windows is not supported yet.
79821
81136
  */
79822
81137
  platform: 'android' | 'macos' | 'linux';
79823
81138
  /**
@@ -79852,6 +81167,23 @@ export type UpdateByodDeviceResponses = {
79852
81167
  * The absolute directories a desktop registered for agent sessions with its last hello; a session may only start in one of these. Empty for a phone and for a desktop that has not connected yet.
79853
81168
  */
79854
81169
  agent_dirs: Array<string>;
81170
+ /**
81171
+ * Which agent each registered directory is bound to, as the desktop's last hello reported. Empty for a phone and for a desktop that has not connected yet.
81172
+ */
81173
+ agent_bindings: Array<{
81174
+ /**
81175
+ * The absolute directory the desktop bound to an agent with praxis agent connect.
81176
+ */
81177
+ dir: string;
81178
+ /**
81179
+ * The agent the directory is bound to: its identity number or its agent id.
81180
+ */
81181
+ agent: string;
81182
+ }>;
81183
+ /**
81184
+ * The version of the envd on the desktop, as its last hello reported. Null for a phone, for a desktop that has not connected yet, and for an envd that sent no version.
81185
+ */
81186
+ envd_version: string | null;
79855
81187
  /**
79856
81188
  * Whether the desktop's envd lets a platform session run in bypassPermissions (all tool calls without asking). True unless the person ran praxis connect agent --no-bypass on that machine; a session create that asks for bypassPermissions on a device where this is false answers 400 INVALID_PARAMS. False for a phone and for a desktop that has not connected yet.
79857
81189
  */
@@ -79943,7 +81275,7 @@ export type ClaimByodPairingData = {
79943
81275
  */
79944
81276
  body: {
79945
81277
  /**
79946
- * 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.
81278
+ * The device's platform. macos and linux are accepted for every organization; any other value than android, macos or linux answers INVALID_PARAMS.
79947
81279
  */
79948
81280
  platform: 'android' | 'macos' | 'linux';
79949
81281
  /**
@@ -79974,7 +81306,7 @@ export type ClaimByodPairingData = {
79974
81306
  };
79975
81307
  export type ClaimByodPairingErrors = {
79976
81308
  /**
79977
- * 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.
81309
+ * 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.
79978
81310
  */
79979
81311
  400: unknown;
79980
81312
  /**
@@ -82597,8 +83929,7 @@ export type SessionsUpdateData = {
82597
83929
  */
82598
83930
  title?: null | string;
82599
83931
  /**
82600
- * Vault IDs (`vlt_*`) to attach to the session. Not yet supported;
82601
- * requests setting this field are rejected. Reserved for future use.
83932
+ * 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.
82602
83933
  */
82603
83934
  vault_ids?: Array<string>;
82604
83935
  /**
@@ -83145,6 +84476,15 @@ export type AgentsListResponses = {
83145
84476
  name: string;
83146
84477
  }>;
83147
84478
  };
84479
+ /**
84480
+ * 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.
84481
+ */
84482
+ browser?: {
84483
+ /**
84484
+ * A paired browser's id (byb_ and 26 lowercase hex characters), from browser.byob.browsers.list.
84485
+ */
84486
+ byob: string;
84487
+ } | null;
83148
84488
  /**
83149
84489
  * 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.
83150
84490
  */
@@ -83530,7 +84870,7 @@ export type AgentsListResponses = {
83530
84870
  */
83531
84871
  environment_id?: string | null;
83532
84872
  /**
83533
- * 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.
84873
+ * 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.
83534
84874
  */
83535
84875
  vault_ids?: Array<string>;
83536
84876
  /**
@@ -84069,7 +85409,7 @@ export type AgentsCreateData = {
84069
85409
  */
84070
85410
  environment_id?: string | null;
84071
85411
  /**
84072
- * 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.
85412
+ * 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.
84073
85413
  */
84074
85414
  vault_ids?: Array<string>;
84075
85415
  /**
@@ -84094,6 +85434,15 @@ export type AgentsCreateData = {
84094
85434
  name: string;
84095
85435
  }>;
84096
85436
  };
85437
+ /**
85438
+ * 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.
85439
+ */
85440
+ browser?: {
85441
+ /**
85442
+ * A paired browser's id (byb_ and 26 lowercase hex characters), from browser.byob.browsers.list.
85443
+ */
85444
+ byob: string;
85445
+ } | null;
84097
85446
  /**
84098
85447
  * 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.
84099
85448
  */
@@ -84349,6 +85698,15 @@ export type AgentsCreateResponses = {
84349
85698
  name: string;
84350
85699
  }>;
84351
85700
  };
85701
+ /**
85702
+ * 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.
85703
+ */
85704
+ browser?: {
85705
+ /**
85706
+ * A paired browser's id (byb_ and 26 lowercase hex characters), from browser.byob.browsers.list.
85707
+ */
85708
+ byob: string;
85709
+ } | null;
84352
85710
  /**
84353
85711
  * 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.
84354
85712
  */
@@ -84734,7 +86092,7 @@ export type AgentsCreateResponses = {
84734
86092
  */
84735
86093
  environment_id?: string | null;
84736
86094
  /**
84737
- * 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.
86095
+ * 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.
84738
86096
  */
84739
86097
  vault_ids?: Array<string>;
84740
86098
  /**
@@ -85011,6 +86369,15 @@ export type AgentsRetrieveResponses = {
85011
86369
  name: string;
85012
86370
  }>;
85013
86371
  };
86372
+ /**
86373
+ * 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.
86374
+ */
86375
+ browser?: {
86376
+ /**
86377
+ * A paired browser's id (byb_ and 26 lowercase hex characters), from browser.byob.browsers.list.
86378
+ */
86379
+ byob: string;
86380
+ } | null;
85014
86381
  /**
85015
86382
  * 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.
85016
86383
  */
@@ -85396,7 +86763,7 @@ export type AgentsRetrieveResponses = {
85396
86763
  */
85397
86764
  environment_id?: string | null;
85398
86765
  /**
85399
- * 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.
86766
+ * 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.
85400
86767
  */
85401
86768
  vault_ids?: Array<string>;
85402
86769
  /**
@@ -85944,7 +87311,7 @@ export type AgentsUpdateData = {
85944
87311
  */
85945
87312
  environment_id?: string | null;
85946
87313
  /**
85947
- * 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.
87314
+ * 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.
85948
87315
  */
85949
87316
  vault_ids?: Array<string>;
85950
87317
  /**
@@ -85969,6 +87336,15 @@ export type AgentsUpdateData = {
85969
87336
  name: string;
85970
87337
  }>;
85971
87338
  };
87339
+ /**
87340
+ * 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.
87341
+ */
87342
+ browser?: {
87343
+ /**
87344
+ * A paired browser's id (byb_ and 26 lowercase hex characters), from browser.byob.browsers.list.
87345
+ */
87346
+ byob: string;
87347
+ } | null;
85972
87348
  /**
85973
87349
  * 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.
85974
87350
  */
@@ -86237,6 +87613,15 @@ export type AgentsUpdateResponses = {
86237
87613
  name: string;
86238
87614
  }>;
86239
87615
  };
87616
+ /**
87617
+ * 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.
87618
+ */
87619
+ browser?: {
87620
+ /**
87621
+ * A paired browser's id (byb_ and 26 lowercase hex characters), from browser.byob.browsers.list.
87622
+ */
87623
+ byob: string;
87624
+ } | null;
86240
87625
  /**
86241
87626
  * 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.
86242
87627
  */
@@ -86622,7 +88007,7 @@ export type AgentsUpdateResponses = {
86622
88007
  */
86623
88008
  environment_id?: string | null;
86624
88009
  /**
86625
- * 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.
88010
+ * 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.
86626
88011
  */
86627
88012
  vault_ids?: Array<string>;
86628
88013
  /**
@@ -87248,7 +88633,7 @@ export type AgentsArchiveResponses = {
87248
88633
  */
87249
88634
  environment_id?: string | null;
87250
88635
  /**
87251
- * 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.
88636
+ * 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.
87252
88637
  */
87253
88638
  vault_ids?: Array<string>;
87254
88639
  /**
@@ -87525,6 +88910,15 @@ export type AgentsVersionsListResponses = {
87525
88910
  name: string;
87526
88911
  }>;
87527
88912
  };
88913
+ /**
88914
+ * 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.
88915
+ */
88916
+ browser?: {
88917
+ /**
88918
+ * A paired browser's id (byb_ and 26 lowercase hex characters), from browser.byob.browsers.list.
88919
+ */
88920
+ byob: string;
88921
+ } | null;
87528
88922
  /**
87529
88923
  * 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.
87530
88924
  */
@@ -87910,7 +89304,7 @@ export type AgentsVersionsListResponses = {
87910
89304
  */
87911
89305
  environment_id?: string | null;
87912
89306
  /**
87913
- * 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.
89307
+ * 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.
87914
89308
  */
87915
89309
  vault_ids?: Array<string>;
87916
89310
  /**
@@ -90307,6 +91701,31 @@ export type SessionsEventsListResponses = {
90307
91701
  * 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.
90308
91702
  */
90309
91703
  session_thread_id?: string | null;
91704
+ } | {
91705
+ /**
91706
+ * Event id, unique within the session. Use it to refer to this event, for example in user.tool_confirmation or user.steer.
91707
+ */
91708
+ id: string;
91709
+ /**
91710
+ * Always `session.status_preparing`. A device session's local agent is starting; stage says how far it got.
91711
+ */
91712
+ type: 'session.status_preparing';
91713
+ /**
91714
+ * RFC 3339 time at which the server processed the event; null while a queued input has not started running.
91715
+ */
91716
+ processed_at: string;
91717
+ /**
91718
+ * How far the start got.
91719
+ */
91720
+ stage: 'launching' | 'loading' | 'ready';
91721
+ /**
91722
+ * 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.
91723
+ */
91724
+ message_id?: string;
91725
+ /**
91726
+ * 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.
91727
+ */
91728
+ session_thread_id?: string | null;
90310
91729
  }>;
90311
91730
  /**
90312
91731
  * Opaque cursor for the next page: pass it unchanged as page to continue. Null when this is the last page.
@@ -92029,6 +93448,31 @@ export type SessionsThreadsEventsListResponses = {
92029
93448
  * 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.
92030
93449
  */
92031
93450
  session_thread_id?: string | null;
93451
+ } | {
93452
+ /**
93453
+ * Event id, unique within the session. Use it to refer to this event, for example in user.tool_confirmation or user.steer.
93454
+ */
93455
+ id: string;
93456
+ /**
93457
+ * Always `session.status_preparing`. A device session's local agent is starting; stage says how far it got.
93458
+ */
93459
+ type: 'session.status_preparing';
93460
+ /**
93461
+ * RFC 3339 time at which the server processed the event; null while a queued input has not started running.
93462
+ */
93463
+ processed_at: string;
93464
+ /**
93465
+ * How far the start got.
93466
+ */
93467
+ stage: 'launching' | 'loading' | 'ready';
93468
+ /**
93469
+ * 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.
93470
+ */
93471
+ message_id?: string;
93472
+ /**
93473
+ * 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.
93474
+ */
93475
+ session_thread_id?: string | null;
92032
93476
  }>;
92033
93477
  /**
92034
93478
  * Opaque cursor for the next page: pass it unchanged as page to continue. Null when this is the last page.
@@ -110867,6 +112311,51 @@ export type DevopsChangesMarkLastSliceResponses = {
110867
112311
  200: DevopsChange;
110868
112312
  };
110869
112313
  export type DevopsChangesMarkLastSliceResponse = DevopsChangesMarkLastSliceResponses[keyof DevopsChangesMarkLastSliceResponses];
112314
+ export type DevopsChangesSlicesCreateData = {
112315
+ body?: DevopsChangeSliceCreateRequest;
112316
+ path: {
112317
+ /**
112318
+ * Identifies the project whose data you are reading, from the project list or create answer.
112319
+ */
112320
+ project: string;
112321
+ /**
112322
+ * 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.
112323
+ */
112324
+ change: string;
112325
+ };
112326
+ query?: never;
112327
+ url: '/devops/v1/projects/{project}/changes/{change}/slices';
112328
+ };
112329
+ export type DevopsChangesSlicesCreateErrors = {
112330
+ /**
112331
+ * 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.
112332
+ */
112333
+ 400: DevopsDevOpsError;
112334
+ /**
112335
+ * The API key is missing or invalid; send a valid Praxis API key in the Authorization header before retrying.
112336
+ */
112337
+ 401: DevopsDevOpsError;
112338
+ /**
112339
+ * 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.
112340
+ */
112341
+ 403: DevopsDevOpsError;
112342
+ /**
112343
+ * 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.
112344
+ */
112345
+ 404: DevopsDevOpsError;
112346
+ /**
112347
+ * 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.
112348
+ */
112349
+ 500: DevopsDevOpsError;
112350
+ };
112351
+ export type DevopsChangesSlicesCreateError = DevopsChangesSlicesCreateErrors[keyof DevopsChangesSlicesCreateErrors];
112352
+ export type DevopsChangesSlicesCreateResponses = {
112353
+ /**
112354
+ * 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.
112355
+ */
112356
+ 200: DevopsChangeSliceOpened;
112357
+ };
112358
+ export type DevopsChangesSlicesCreateResponse = DevopsChangesSlicesCreateResponses[keyof DevopsChangesSlicesCreateResponses];
110870
112359
  export type DevopsChangesOpenPullRequestData = {
110871
112360
  body?: DevopsChangeOpenPullRequestRequest;
110872
112361
  path: {