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

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
  /**
@@ -3759,6 +3793,24 @@ export type BrowserSessionCreateResult = {
3759
3793
  * 会话创建入口;api 为 API 创建,connect 为一步连接创建,console 为 Console 创建。
3760
3794
  */
3761
3795
  origin: 'api' | 'connect' | 'console';
3796
+ /**
3797
+ * 会话的浏览器来源:cloud 是云浏览器,byob 是用户自己配对的浏览器(browser 为它的 ID)。
3798
+ */
3799
+ source: {
3800
+ /**
3801
+ * 云浏览器会话,固定为 cloud。
3802
+ */
3803
+ kind: 'cloud';
3804
+ } | {
3805
+ /**
3806
+ * 用户自己配对的浏览器会话,固定为 byob。
3807
+ */
3808
+ kind: 'byob';
3809
+ /**
3810
+ * 自带浏览器 ID,以 byb_ 开头。
3811
+ */
3812
+ browser: string;
3813
+ };
3762
3814
  /**
3763
3815
  * 创建这个会话的用户或智能体标识;通过能力 URL 创建、或在引入创建者之前创建的会话省略此字段。
3764
3816
  */
@@ -3825,12 +3877,16 @@ export type BrowserSessionCreateResult = {
3825
3877
  * 该地址返回 501;不支持 Selenium。
3826
3878
  */
3827
3879
  seleniumRemoteUrl: string;
3880
+ /**
3881
+ * true 表示本次按 name 复用了已在运行的同名会话(HTTP 200),没有新开会话;false 表示新开了会话(HTTP 201)。
3882
+ */
3883
+ reused: boolean;
3828
3884
  };
3829
3885
  export type BrowserError = {
3830
3886
  statusCode: number;
3831
3887
  error: string;
3832
3888
  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';
3889
+ 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_NOT_GRANTED' | '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
3890
  };
3835
3891
  export type BrowserSession = {
3836
3892
  /**
@@ -3901,6 +3957,24 @@ export type BrowserSession = {
3901
3957
  * 会话创建入口;api 为 API 创建,connect 为一步连接创建,console 为 Console 创建。
3902
3958
  */
3903
3959
  origin: 'api' | 'connect' | 'console';
3960
+ /**
3961
+ * 会话的浏览器来源:cloud 是云浏览器,byob 是用户自己配对的浏览器(browser 为它的 ID)。
3962
+ */
3963
+ source: {
3964
+ /**
3965
+ * 云浏览器会话,固定为 cloud。
3966
+ */
3967
+ kind: 'cloud';
3968
+ } | {
3969
+ /**
3970
+ * 用户自己配对的浏览器会话,固定为 byob。
3971
+ */
3972
+ kind: 'byob';
3973
+ /**
3974
+ * 自带浏览器 ID,以 byb_ 开头。
3975
+ */
3976
+ browser: string;
3977
+ };
3904
3978
  /**
3905
3979
  * 创建这个会话的用户或智能体标识;通过能力 URL 创建、或在引入创建者之前创建的会话省略此字段。
3906
3980
  */
@@ -4025,6 +4099,24 @@ export type BrowserSessionGetResult = {
4025
4099
  * 会话创建入口;api 为 API 创建,connect 为一步连接创建,console 为 Console 创建。
4026
4100
  */
4027
4101
  origin: 'api' | 'connect' | 'console';
4102
+ /**
4103
+ * 会话的浏览器来源:cloud 是云浏览器,byob 是用户自己配对的浏览器(browser 为它的 ID)。
4104
+ */
4105
+ source: {
4106
+ /**
4107
+ * 云浏览器会话,固定为 cloud。
4108
+ */
4109
+ kind: 'cloud';
4110
+ } | {
4111
+ /**
4112
+ * 用户自己配对的浏览器会话,固定为 byob。
4113
+ */
4114
+ kind: 'byob';
4115
+ /**
4116
+ * 自带浏览器 ID,以 byb_ 开头。
4117
+ */
4118
+ browser: string;
4119
+ };
4028
4120
  /**
4029
4121
  * 创建这个会话的用户或智能体标识;通过能力 URL 创建、或在引入创建者之前创建的会话省略此字段。
4030
4122
  */
@@ -4280,6 +4372,128 @@ export type BrowserContext = {
4280
4372
  */
4281
4373
  lastUsedAt?: string;
4282
4374
  };
4375
+ export type BrowserByobPairing = {
4376
+ /**
4377
+ * 8 位配对码,一次性、10 分钟内有效;它是秘密,只交给要配对的那个浏览器的用户。
4378
+ */
4379
+ code: string;
4380
+ /**
4381
+ * 配对码失效的时刻,UTC ISO 8601 时间。
4382
+ */
4383
+ expires_at: string;
4384
+ };
4385
+ export type BrowserByobBrowser = {
4386
+ /**
4387
+ * 对象类型,固定为 byob_browser。
4388
+ */
4389
+ object: 'byob_browser';
4390
+ /**
4391
+ * 自带浏览器 ID,以 byb_ 开头;使用配对认领或列出自带浏览器返回的 id。
4392
+ */
4393
+ id: string;
4394
+ /**
4395
+ * 浏览器的显示名称,配对时由扩展上报,1–80 个字符;可通过更新修改。
4396
+ */
4397
+ name: string;
4398
+ /**
4399
+ * 这个自带浏览器的种类,配对时由扩展上报。
4400
+ */
4401
+ browser: 'chrome' | 'edge';
4402
+ /**
4403
+ * 浏览器版本号,配对时由扩展上报。
4404
+ */
4405
+ version: string;
4406
+ /**
4407
+ * 操作系统,配对时由扩展上报。
4408
+ */
4409
+ os: string;
4410
+ /**
4411
+ * 配对用的扩展 ID。
4412
+ */
4413
+ extension_id: string;
4414
+ /**
4415
+ * 被授权驱动这个浏览器的智能体 ID 列表;智能体不在列表里时不能打开它的会话。空数组表示没有智能体被授权。
4416
+ */
4417
+ granted_agents: Array<string>;
4418
+ /**
4419
+ * 允许智能体访问的站点列表;空数组表示不限制 http(s) 站点。这是护栏,不是数据边界。
4420
+ */
4421
+ allowed_sites: Array<string>;
4422
+ /**
4423
+ * 扩展的连接当前是否在线;连接对象上线之前固定为 false。
4424
+ */
4425
+ online: boolean;
4426
+ /**
4427
+ * 扩展最近一次被看到在线的时刻,UTC ISO 8601 时间。
4428
+ */
4429
+ last_seen_at: string | null;
4430
+ /**
4431
+ * 发起配对的用户标识;浏览器属于组织,这里只记录是谁配的。
4432
+ */
4433
+ created_by: string | null;
4434
+ /**
4435
+ * 浏览器完成配对的时刻,UTC ISO 8601 时间。
4436
+ */
4437
+ created_at: string;
4438
+ /**
4439
+ * 组织断开这个浏览器的时刻,UTC ISO 8601 时间;未断开时为 null。
4440
+ */
4441
+ revoked_at: string | null;
4442
+ };
4443
+ export type BrowserByobPairingView = {
4444
+ /**
4445
+ * 发起配对的组织名称,扩展的授权页显示它。
4446
+ */
4447
+ organization_name: string;
4448
+ /**
4449
+ * 发起配对的用户标识。
4450
+ */
4451
+ created_by: string | null;
4452
+ /**
4453
+ * 配对码失效的时刻,UTC ISO 8601 时间。
4454
+ */
4455
+ expires_at: string;
4456
+ };
4457
+ export type BrowserByobClaim = {
4458
+ /**
4459
+ * 要登记的浏览器种类,只支持 Chrome 和 Edge。
4460
+ */
4461
+ browser: 'chrome' | 'edge';
4462
+ /**
4463
+ * 浏览器版本号,1–64 个字符。
4464
+ */
4465
+ version: string;
4466
+ /**
4467
+ * 操作系统,1–64 个字符。
4468
+ */
4469
+ os: string;
4470
+ /**
4471
+ * 浏览器的显示名称,1–80 个字符。
4472
+ */
4473
+ name: string;
4474
+ /**
4475
+ * 扩展用 WebCrypto 生成的不可导出 ECDSA P-256 密钥对的公钥;平台只保存公钥。
4476
+ */
4477
+ public_key: string;
4478
+ /**
4479
+ * 扩展 ID,1–64 个字符。
4480
+ */
4481
+ extension_id: string;
4482
+ /**
4483
+ * 扩展保存的随机安装密钥,8–128 个字母、数字、_ 或 -;同一个 profile 带同一密钥重新配对会复用原来的浏览器,平台只保存它的哈希。省略则每次认领都是新浏览器。
4484
+ */
4485
+ install_key?: string;
4486
+ };
4487
+ export type BrowserByobClaimResult = {
4488
+ /**
4489
+ * 自带浏览器 ID,以 byb_ 开头;使用配对认领或列出自带浏览器返回的 id。
4490
+ */
4491
+ browser_id: string;
4492
+ /**
4493
+ * 扩展要拨入的 WSS 地址,属于这个浏览器自己的链接主机;连接时用配对时的私钥签名完成认证,地址本身不是凭证。
4494
+ */
4495
+ link_url: string;
4496
+ };
4283
4497
  export type BrowserStreamMessage = {
4284
4498
  event: 'snapshot';
4285
4499
  data: {
@@ -4694,7 +4908,7 @@ export type OwnFileSignedUploadResponse = {
4694
4908
  url: string;
4695
4909
  }>;
4696
4910
  /**
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.
4911
+ * 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
4912
  */
4699
4913
  complete_url: string;
4700
4914
  /**
@@ -5192,7 +5406,7 @@ export type MediaStreamOutput = {
5192
5406
  */
5193
5407
  status: 'idle' | 'starting' | 'broadcasting' | 'errored';
5194
5408
  /**
5195
- * Why the output is errored; null in every other status.
5409
+ * Why the last connection failed, while the output is errored or starting again after a failure; null in every other status.
5196
5410
  */
5197
5411
  error: MediaStreamOutputError;
5198
5412
  /**
@@ -10584,6 +10798,10 @@ export type ApplicationCreateWorkerInput = {
10584
10798
  labels?: {
10585
10799
  [key: string]: string;
10586
10800
  };
10801
+ /**
10802
+ * 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.
10803
+ */
10804
+ access?: 'public' | 'organization';
10587
10805
  };
10588
10806
  };
10589
10807
  export type ApplicationWorker = {
@@ -10655,6 +10873,10 @@ export type ApplicationWorker = {
10655
10873
  labels: {
10656
10874
  [key: string]: string;
10657
10875
  };
10876
+ /**
10877
+ * 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.
10878
+ */
10879
+ access: 'public' | 'organization';
10658
10880
  /**
10659
10881
  * When the Worker was deleted.
10660
10882
  */
@@ -10736,6 +10958,10 @@ export type ApplicationUpdateWorkerInput = {
10736
10958
  labels?: {
10737
10959
  [key: string]: string;
10738
10960
  };
10961
+ /**
10962
+ * 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.
10963
+ */
10964
+ access?: 'public' | 'organization';
10739
10965
  };
10740
10966
  };
10741
10967
  export type ApplicationVersionPage = {
@@ -19519,6 +19745,32 @@ export type DevopsChangeMarkLastSliceRequest = {
19519
19745
  */
19520
19746
  lastSlice: boolean;
19521
19747
  };
19748
+ /**
19749
+ * Where the new slice starts. Every field is optional: with none the slice is cut from the default branch.
19750
+ */
19751
+ export type DevopsChangeSliceCreateRequest = {
19752
+ /**
19753
+ * 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.
19754
+ */
19755
+ from?: string;
19756
+ };
19757
+ /**
19758
+ * The slice that was opened.
19759
+ */
19760
+ export type DevopsChangeSliceOpened = {
19761
+ /**
19762
+ * 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`.
19763
+ */
19764
+ branch: string;
19765
+ /**
19766
+ * 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.
19767
+ */
19768
+ directory: string;
19769
+ /**
19770
+ * 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.
19771
+ */
19772
+ unit: string;
19773
+ };
19522
19774
  /**
19523
19775
  * What the pull request says. Every field is optional: without a title the change's own title is used.
19524
19776
  */
@@ -19535,6 +19787,10 @@ export type DevopsChangeOpenPullRequestRequest = {
19535
19787
  * Open it as a draft. Defaults to false.
19536
19788
  */
19537
19789
  draft?: boolean;
19790
+ /**
19791
+ * 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.
19792
+ */
19793
+ head?: string;
19538
19794
  };
19539
19795
  /**
19540
19796
  * The pull request for a change's branch.
@@ -29732,6 +29988,31 @@ export type AgentSseData = {
29732
29988
  * 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
29989
  */
29734
29990
  session_thread_id?: string | null;
29991
+ } | {
29992
+ /**
29993
+ * Event id, unique within the session. Use it to refer to this event, for example in user.tool_confirmation or user.steer.
29994
+ */
29995
+ id: string;
29996
+ /**
29997
+ * Always `session.status_preparing`. A device session's local agent is starting; stage says how far it got.
29998
+ */
29999
+ type: 'session.status_preparing';
30000
+ /**
30001
+ * RFC 3339 time at which the server processed the event; null while a queued input has not started running.
30002
+ */
30003
+ processed_at: string;
30004
+ /**
30005
+ * How far the start got.
30006
+ */
30007
+ stage: 'launching' | 'loading' | 'ready';
30008
+ /**
30009
+ * 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.
30010
+ */
30011
+ message_id?: string;
30012
+ /**
30013
+ * 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.
30014
+ */
30015
+ session_thread_id?: string | null;
29735
30016
  } | {
29736
30017
  /**
29737
30018
  * Always `event_start`. Preview that an event of the requested delta types has started.
@@ -30066,7 +30347,7 @@ export type MediaStreamEvent = {
30066
30347
  */
30067
30348
  seq: number;
30068
30349
  /**
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).
30350
+ * 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
30351
  */
30071
30352
  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
30353
  /**
@@ -30156,7 +30437,7 @@ export type MediaPipelineAlertRule = {
30156
30437
  [key: string]: unknown;
30157
30438
  };
30158
30439
  /**
30159
- * Why an errored output stopped trying.
30440
+ * Why an output is errored, or is trying again after a failure.
30160
30441
  */
30161
30442
  export type MediaStreamOutputError = {
30162
30443
  /**
@@ -51934,6 +52215,10 @@ export type DevopsLockId = string;
51934
52215
  * 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
52216
  */
51936
52217
  export type DevopsChangeIdPath = string;
52218
+ /**
52219
+ * 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.
52220
+ */
52221
+ export type DevopsChangePathParam = string;
51937
52222
  /**
51938
52223
  * 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
52224
  */
@@ -53577,6 +53862,31 @@ export type ListAgentEventsResponses = {
53577
53862
  * 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
53863
  */
53579
53864
  session_thread_id?: string | null;
53865
+ } | {
53866
+ /**
53867
+ * Event id, unique within the session. Use it to refer to this event, for example in user.tool_confirmation or user.steer.
53868
+ */
53869
+ id: string;
53870
+ /**
53871
+ * Always `session.status_preparing`. A device session's local agent is starting; stage says how far it got.
53872
+ */
53873
+ type: 'session.status_preparing';
53874
+ /**
53875
+ * RFC 3339 time at which the server processed the event; null while a queued input has not started running.
53876
+ */
53877
+ processed_at: string;
53878
+ /**
53879
+ * How far the start got.
53880
+ */
53881
+ stage: 'launching' | 'loading' | 'ready';
53882
+ /**
53883
+ * 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.
53884
+ */
53885
+ message_id?: string;
53886
+ /**
53887
+ * 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.
53888
+ */
53889
+ session_thread_id?: string | null;
53580
53890
  }>;
53581
53891
  /**
53582
53892
  * Opaque cursor for the next page: pass it unchanged as page to continue. Null when this is the last page.
@@ -54007,32 +54317,33 @@ export type CreateAgentLoginIntentErrors = {
54007
54317
  /**
54008
54318
  * 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
54319
  */
54010
- 400: unknown;
54320
+ 400: AgentError;
54011
54321
  /**
54012
54322
  * Authentication required: send the platform session's own credential.
54013
54323
  */
54014
- 401: unknown;
54324
+ 401: AgentError;
54015
54325
  /**
54016
54326
  * 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
54327
  */
54018
- 403: unknown;
54328
+ 403: AgentError;
54019
54329
  /**
54020
54330
  * AGENT_NOT_FOUND: the agent the credential names does not exist in this organization; check the agent the session was opened for.
54021
54331
  */
54022
- 404: unknown;
54332
+ 404: AgentError;
54023
54333
  /**
54024
54334
  * 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
54335
  */
54026
- 409: unknown;
54336
+ 409: AgentError;
54027
54337
  /**
54028
54338
  * UPSTREAM_UNAVAILABLE: the agent service or identity could not answer; retry once the service is back.
54029
54339
  */
54030
- 502: unknown;
54340
+ 502: AgentError;
54031
54341
  /**
54032
54342
  * UNAVAILABLE: identity is not configured in this deployment.
54033
54343
  */
54034
- 503: unknown;
54344
+ 503: AgentError;
54035
54345
  };
54346
+ export type CreateAgentLoginIntentError = CreateAgentLoginIntentErrors[keyof CreateAgentLoginIntentErrors];
54036
54347
  export type CreateAgentLoginIntentResponses = {
54037
54348
  /**
54038
54349
  * The one-time login code and when it stops working; the code is answered once and never again.
@@ -54896,6 +55207,15 @@ export type ApplyAgentVersionResponses = {
54896
55207
  name: string;
54897
55208
  }>;
54898
55209
  };
55210
+ /**
55211
+ * 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.
55212
+ */
55213
+ browser?: {
55214
+ /**
55215
+ * A paired browser's id (byb_ and 26 lowercase hex characters), from browser.byob.browsers.list.
55216
+ */
55217
+ byob: string;
55218
+ } | null;
54899
55219
  /**
54900
55220
  * 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
55221
  */
@@ -56147,6 +56467,15 @@ export type UnarchiveAgentResponses = {
56147
56467
  name: string;
56148
56468
  }>;
56149
56469
  };
56470
+ /**
56471
+ * 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.
56472
+ */
56473
+ browser?: {
56474
+ /**
56475
+ * A paired browser's id (byb_ and 26 lowercase hex characters), from browser.byob.browsers.list.
56476
+ */
56477
+ byob: string;
56478
+ } | null;
56150
56479
  /**
56151
56480
  * 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
56481
  */
@@ -68777,17 +69106,21 @@ export type BrowserListSessionsErrors = {
68777
69106
  */
68778
69107
  402: BrowserError;
68779
69108
  /**
68780
- * PERMISSION_DENIED / ACCOUNT_SUSPENDED
69109
+ * PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
68781
69110
  */
68782
69111
  403: BrowserError;
68783
69112
  /**
68784
- * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
69113
+ * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
68785
69114
  */
68786
69115
  404: BrowserError;
68787
69116
  /**
68788
- * SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
69117
+ * SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
68789
69118
  */
68790
69119
  409: BrowserError;
69120
+ /**
69121
+ * BROWSER_REVOKED
69122
+ */
69123
+ 410: BrowserError;
68791
69124
  /**
68792
69125
  * ACTION_RESULT_TOO_LARGE
68793
69126
  */
@@ -68809,7 +69142,7 @@ export type BrowserListSessionsErrors = {
68809
69142
  */
68810
69143
  502: BrowserError;
68811
69144
  /**
68812
- * SERVICE_UNAVAILABLE
69145
+ * BROWSER_OFFLINE / SERVICE_UNAVAILABLE
68813
69146
  */
68814
69147
  503: BrowserError;
68815
69148
  /**
@@ -68854,17 +69187,21 @@ export type BrowserCreateSessionErrors = {
68854
69187
  */
68855
69188
  402: BrowserError;
68856
69189
  /**
68857
- * PERMISSION_DENIED / ACCOUNT_SUSPENDED
69190
+ * PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
68858
69191
  */
68859
69192
  403: BrowserError;
68860
69193
  /**
68861
- * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
69194
+ * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
68862
69195
  */
68863
69196
  404: BrowserError;
68864
69197
  /**
68865
- * SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
69198
+ * SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
68866
69199
  */
68867
69200
  409: BrowserError;
69201
+ /**
69202
+ * BROWSER_REVOKED
69203
+ */
69204
+ 410: BrowserError;
68868
69205
  /**
68869
69206
  * ACTION_RESULT_TOO_LARGE
68870
69207
  */
@@ -68886,7 +69223,7 @@ export type BrowserCreateSessionErrors = {
68886
69223
  */
68887
69224
  502: BrowserError;
68888
69225
  /**
68889
- * SERVICE_UNAVAILABLE
69226
+ * BROWSER_OFFLINE / SERVICE_UNAVAILABLE
68890
69227
  */
68891
69228
  503: BrowserError;
68892
69229
  /**
@@ -68896,6 +69233,10 @@ export type BrowserCreateSessionErrors = {
68896
69233
  };
68897
69234
  export type BrowserCreateSessionError = BrowserCreateSessionErrors[keyof BrowserCreateSessionErrors];
68898
69235
  export type BrowserCreateSessionResponses = {
69236
+ /**
69237
+ * 请求成功。
69238
+ */
69239
+ 200: BrowserSessionCreateResult;
68899
69240
  /**
68900
69241
  * 请求成功。
68901
69242
  */
@@ -68932,17 +69273,21 @@ export type BrowserGetSessionErrors = {
68932
69273
  */
68933
69274
  402: BrowserError;
68934
69275
  /**
68935
- * PERMISSION_DENIED / ACCOUNT_SUSPENDED
69276
+ * PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
68936
69277
  */
68937
69278
  403: BrowserError;
68938
69279
  /**
68939
- * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
69280
+ * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
68940
69281
  */
68941
69282
  404: BrowserError;
68942
69283
  /**
68943
- * SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
69284
+ * SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
68944
69285
  */
68945
69286
  409: BrowserError;
69287
+ /**
69288
+ * BROWSER_REVOKED
69289
+ */
69290
+ 410: BrowserError;
68946
69291
  /**
68947
69292
  * ACTION_RESULT_TOO_LARGE
68948
69293
  */
@@ -68964,7 +69309,7 @@ export type BrowserGetSessionErrors = {
68964
69309
  */
68965
69310
  502: BrowserError;
68966
69311
  /**
68967
- * SERVICE_UNAVAILABLE
69312
+ * BROWSER_OFFLINE / SERVICE_UNAVAILABLE
68968
69313
  */
68969
69314
  503: BrowserError;
68970
69315
  /**
@@ -69010,17 +69355,21 @@ export type BrowserCloseSessionErrors = {
69010
69355
  */
69011
69356
  402: BrowserError;
69012
69357
  /**
69013
- * PERMISSION_DENIED / ACCOUNT_SUSPENDED
69358
+ * PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
69014
69359
  */
69015
69360
  403: BrowserError;
69016
69361
  /**
69017
- * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
69362
+ * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
69018
69363
  */
69019
69364
  404: BrowserError;
69020
69365
  /**
69021
- * SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
69366
+ * SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
69022
69367
  */
69023
69368
  409: BrowserError;
69369
+ /**
69370
+ * BROWSER_REVOKED
69371
+ */
69372
+ 410: BrowserError;
69024
69373
  /**
69025
69374
  * ACTION_RESULT_TOO_LARGE
69026
69375
  */
@@ -69042,7 +69391,7 @@ export type BrowserCloseSessionErrors = {
69042
69391
  */
69043
69392
  502: BrowserError;
69044
69393
  /**
69045
- * SERVICE_UNAVAILABLE
69394
+ * BROWSER_OFFLINE / SERVICE_UNAVAILABLE
69046
69395
  */
69047
69396
  503: BrowserError;
69048
69397
  /**
@@ -69083,17 +69432,21 @@ export type BrowserGetDebugErrors = {
69083
69432
  */
69084
69433
  402: BrowserError;
69085
69434
  /**
69086
- * PERMISSION_DENIED / ACCOUNT_SUSPENDED
69435
+ * PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
69087
69436
  */
69088
69437
  403: BrowserError;
69089
69438
  /**
69090
- * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
69439
+ * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
69091
69440
  */
69092
69441
  404: BrowserError;
69093
69442
  /**
69094
- * SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
69443
+ * SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
69095
69444
  */
69096
69445
  409: BrowserError;
69446
+ /**
69447
+ * BROWSER_REVOKED
69448
+ */
69449
+ 410: BrowserError;
69097
69450
  /**
69098
69451
  * ACTION_RESULT_TOO_LARGE
69099
69452
  */
@@ -69115,7 +69468,7 @@ export type BrowserGetDebugErrors = {
69115
69468
  */
69116
69469
  502: BrowserError;
69117
69470
  /**
69118
- * SERVICE_UNAVAILABLE
69471
+ * BROWSER_OFFLINE / SERVICE_UNAVAILABLE
69119
69472
  */
69120
69473
  503: BrowserError;
69121
69474
  /**
@@ -69169,17 +69522,21 @@ export type BrowserListEventsErrors = {
69169
69522
  */
69170
69523
  402: BrowserError;
69171
69524
  /**
69172
- * PERMISSION_DENIED / ACCOUNT_SUSPENDED
69525
+ * PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
69173
69526
  */
69174
69527
  403: BrowserError;
69175
69528
  /**
69176
- * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
69529
+ * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
69177
69530
  */
69178
69531
  404: BrowserError;
69179
69532
  /**
69180
- * SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
69533
+ * SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
69181
69534
  */
69182
69535
  409: BrowserError;
69536
+ /**
69537
+ * BROWSER_REVOKED
69538
+ */
69539
+ 410: BrowserError;
69183
69540
  /**
69184
69541
  * ACTION_RESULT_TOO_LARGE
69185
69542
  */
@@ -69201,7 +69558,7 @@ export type BrowserListEventsErrors = {
69201
69558
  */
69202
69559
  502: BrowserError;
69203
69560
  /**
69204
- * SERVICE_UNAVAILABLE
69561
+ * BROWSER_OFFLINE / SERVICE_UNAVAILABLE
69205
69562
  */
69206
69563
  503: BrowserError;
69207
69564
  /**
@@ -69448,17 +69805,21 @@ export type BrowserRunPageActionErrors = {
69448
69805
  */
69449
69806
  402: BrowserError;
69450
69807
  /**
69451
- * PERMISSION_DENIED / ACCOUNT_SUSPENDED
69808
+ * PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
69452
69809
  */
69453
69810
  403: BrowserError;
69454
69811
  /**
69455
- * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
69812
+ * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
69456
69813
  */
69457
69814
  404: BrowserError;
69458
69815
  /**
69459
- * SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
69816
+ * SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
69460
69817
  */
69461
69818
  409: BrowserError;
69819
+ /**
69820
+ * BROWSER_REVOKED
69821
+ */
69822
+ 410: BrowserError;
69462
69823
  /**
69463
69824
  * ACTION_RESULT_TOO_LARGE
69464
69825
  */
@@ -69480,7 +69841,7 @@ export type BrowserRunPageActionErrors = {
69480
69841
  */
69481
69842
  502: BrowserError;
69482
69843
  /**
69483
- * SERVICE_UNAVAILABLE
69844
+ * BROWSER_OFFLINE / SERVICE_UNAVAILABLE
69484
69845
  */
69485
69846
  503: BrowserError;
69486
69847
  /**
@@ -69666,17 +70027,21 @@ export type BrowserRequestHandoffErrors = {
69666
70027
  */
69667
70028
  402: BrowserError;
69668
70029
  /**
69669
- * PERMISSION_DENIED / ACCOUNT_SUSPENDED
70030
+ * PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
69670
70031
  */
69671
70032
  403: BrowserError;
69672
70033
  /**
69673
- * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
70034
+ * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
69674
70035
  */
69675
70036
  404: BrowserError;
69676
70037
  /**
69677
- * SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
70038
+ * SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
69678
70039
  */
69679
70040
  409: BrowserError;
70041
+ /**
70042
+ * BROWSER_REVOKED
70043
+ */
70044
+ 410: BrowserError;
69680
70045
  /**
69681
70046
  * ACTION_RESULT_TOO_LARGE
69682
70047
  */
@@ -69698,7 +70063,7 @@ export type BrowserRequestHandoffErrors = {
69698
70063
  */
69699
70064
  502: BrowserError;
69700
70065
  /**
69701
- * SERVICE_UNAVAILABLE
70066
+ * BROWSER_OFFLINE / SERVICE_UNAVAILABLE
69702
70067
  */
69703
70068
  503: BrowserError;
69704
70069
  /**
@@ -69739,17 +70104,21 @@ export type BrowserCompleteHandoffErrors = {
69739
70104
  */
69740
70105
  402: BrowserError;
69741
70106
  /**
69742
- * PERMISSION_DENIED / ACCOUNT_SUSPENDED
70107
+ * PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
69743
70108
  */
69744
70109
  403: BrowserError;
69745
70110
  /**
69746
- * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
70111
+ * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
69747
70112
  */
69748
70113
  404: BrowserError;
69749
70114
  /**
69750
- * SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
70115
+ * SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
69751
70116
  */
69752
70117
  409: BrowserError;
70118
+ /**
70119
+ * BROWSER_REVOKED
70120
+ */
70121
+ 410: BrowserError;
69753
70122
  /**
69754
70123
  * ACTION_RESULT_TOO_LARGE
69755
70124
  */
@@ -69771,7 +70140,7 @@ export type BrowserCompleteHandoffErrors = {
69771
70140
  */
69772
70141
  502: BrowserError;
69773
70142
  /**
69774
- * SERVICE_UNAVAILABLE
70143
+ * BROWSER_OFFLINE / SERVICE_UNAVAILABLE
69775
70144
  */
69776
70145
  503: BrowserError;
69777
70146
  /**
@@ -69821,17 +70190,21 @@ export type BrowserViewerHeartbeatErrors = {
69821
70190
  */
69822
70191
  402: BrowserError;
69823
70192
  /**
69824
- * PERMISSION_DENIED / ACCOUNT_SUSPENDED
70193
+ * PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
69825
70194
  */
69826
70195
  403: BrowserError;
69827
70196
  /**
69828
- * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
70197
+ * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
69829
70198
  */
69830
70199
  404: BrowserError;
69831
70200
  /**
69832
- * SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
70201
+ * SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
69833
70202
  */
69834
70203
  409: BrowserError;
70204
+ /**
70205
+ * BROWSER_REVOKED
70206
+ */
70207
+ 410: BrowserError;
69835
70208
  /**
69836
70209
  * ACTION_RESULT_TOO_LARGE
69837
70210
  */
@@ -69853,7 +70226,7 @@ export type BrowserViewerHeartbeatErrors = {
69853
70226
  */
69854
70227
  502: BrowserError;
69855
70228
  /**
69856
- * SERVICE_UNAVAILABLE
70229
+ * BROWSER_OFFLINE / SERVICE_UNAVAILABLE
69857
70230
  */
69858
70231
  503: BrowserError;
69859
70232
  /**
@@ -69899,17 +70272,21 @@ export type BrowserGetSessionFrameErrors = {
69899
70272
  */
69900
70273
  402: BrowserError;
69901
70274
  /**
69902
- * PERMISSION_DENIED / ACCOUNT_SUSPENDED
70275
+ * PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
69903
70276
  */
69904
70277
  403: BrowserError;
69905
70278
  /**
69906
- * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
70279
+ * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
69907
70280
  */
69908
70281
  404: BrowserError;
69909
70282
  /**
69910
- * SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
70283
+ * SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
69911
70284
  */
69912
70285
  409: BrowserError;
70286
+ /**
70287
+ * BROWSER_REVOKED
70288
+ */
70289
+ 410: BrowserError;
69913
70290
  /**
69914
70291
  * ACTION_RESULT_TOO_LARGE
69915
70292
  */
@@ -69931,7 +70308,7 @@ export type BrowserGetSessionFrameErrors = {
69931
70308
  */
69932
70309
  502: BrowserError;
69933
70310
  /**
69934
- * SERVICE_UNAVAILABLE
70311
+ * BROWSER_OFFLINE / SERVICE_UNAVAILABLE
69935
70312
  */
69936
70313
  503: BrowserError;
69937
70314
  /**
@@ -69980,17 +70357,21 @@ export type BrowserListContextsErrors = {
69980
70357
  */
69981
70358
  402: BrowserError;
69982
70359
  /**
69983
- * PERMISSION_DENIED / ACCOUNT_SUSPENDED
70360
+ * PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
69984
70361
  */
69985
70362
  403: BrowserError;
69986
70363
  /**
69987
- * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
70364
+ * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
69988
70365
  */
69989
70366
  404: BrowserError;
69990
70367
  /**
69991
- * SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
70368
+ * SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
69992
70369
  */
69993
70370
  409: BrowserError;
70371
+ /**
70372
+ * BROWSER_REVOKED
70373
+ */
70374
+ 410: BrowserError;
69994
70375
  /**
69995
70376
  * ACTION_RESULT_TOO_LARGE
69996
70377
  */
@@ -70012,7 +70393,7 @@ export type BrowserListContextsErrors = {
70012
70393
  */
70013
70394
  502: BrowserError;
70014
70395
  /**
70015
- * SERVICE_UNAVAILABLE
70396
+ * BROWSER_OFFLINE / SERVICE_UNAVAILABLE
70016
70397
  */
70017
70398
  503: BrowserError;
70018
70399
  /**
@@ -70072,17 +70453,21 @@ export type BrowserCreateContextErrors = {
70072
70453
  */
70073
70454
  402: BrowserError;
70074
70455
  /**
70075
- * PERMISSION_DENIED / ACCOUNT_SUSPENDED
70456
+ * PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
70076
70457
  */
70077
70458
  403: BrowserError;
70078
70459
  /**
70079
- * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
70460
+ * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
70080
70461
  */
70081
70462
  404: BrowserError;
70082
70463
  /**
70083
- * SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
70464
+ * SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
70084
70465
  */
70085
70466
  409: BrowserError;
70467
+ /**
70468
+ * BROWSER_REVOKED
70469
+ */
70470
+ 410: BrowserError;
70086
70471
  /**
70087
70472
  * ACTION_RESULT_TOO_LARGE
70088
70473
  */
@@ -70104,7 +70489,7 @@ export type BrowserCreateContextErrors = {
70104
70489
  */
70105
70490
  502: BrowserError;
70106
70491
  /**
70107
- * SERVICE_UNAVAILABLE
70492
+ * BROWSER_OFFLINE / SERVICE_UNAVAILABLE
70108
70493
  */
70109
70494
  503: BrowserError;
70110
70495
  /**
@@ -70145,17 +70530,21 @@ export type BrowserDeleteContextErrors = {
70145
70530
  */
70146
70531
  402: BrowserError;
70147
70532
  /**
70148
- * PERMISSION_DENIED / ACCOUNT_SUSPENDED
70533
+ * PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
70149
70534
  */
70150
70535
  403: BrowserError;
70151
70536
  /**
70152
- * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
70537
+ * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
70153
70538
  */
70154
70539
  404: BrowserError;
70155
70540
  /**
70156
- * SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
70541
+ * SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
70157
70542
  */
70158
70543
  409: BrowserError;
70544
+ /**
70545
+ * BROWSER_REVOKED
70546
+ */
70547
+ 410: BrowserError;
70159
70548
  /**
70160
70549
  * ACTION_RESULT_TOO_LARGE
70161
70550
  */
@@ -70177,7 +70566,7 @@ export type BrowserDeleteContextErrors = {
70177
70566
  */
70178
70567
  502: BrowserError;
70179
70568
  /**
70180
- * SERVICE_UNAVAILABLE
70569
+ * BROWSER_OFFLINE / SERVICE_UNAVAILABLE
70181
70570
  */
70182
70571
  503: BrowserError;
70183
70572
  /**
@@ -70223,17 +70612,21 @@ export type BrowserGetContextErrors = {
70223
70612
  */
70224
70613
  402: BrowserError;
70225
70614
  /**
70226
- * PERMISSION_DENIED / ACCOUNT_SUSPENDED
70615
+ * PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
70227
70616
  */
70228
70617
  403: BrowserError;
70229
70618
  /**
70230
- * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
70619
+ * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
70231
70620
  */
70232
70621
  404: BrowserError;
70233
70622
  /**
70234
- * SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
70623
+ * SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
70235
70624
  */
70236
70625
  409: BrowserError;
70626
+ /**
70627
+ * BROWSER_REVOKED
70628
+ */
70629
+ 410: BrowserError;
70237
70630
  /**
70238
70631
  * ACTION_RESULT_TOO_LARGE
70239
70632
  */
@@ -70255,7 +70648,7 @@ export type BrowserGetContextErrors = {
70255
70648
  */
70256
70649
  502: BrowserError;
70257
70650
  /**
70258
- * SERVICE_UNAVAILABLE
70651
+ * BROWSER_OFFLINE / SERVICE_UNAVAILABLE
70259
70652
  */
70260
70653
  503: BrowserError;
70261
70654
  /**
@@ -70307,17 +70700,21 @@ export type BrowserUpdateContextErrors = {
70307
70700
  */
70308
70701
  402: BrowserError;
70309
70702
  /**
70310
- * PERMISSION_DENIED / ACCOUNT_SUSPENDED
70703
+ * PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
70311
70704
  */
70312
70705
  403: BrowserError;
70313
70706
  /**
70314
- * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
70707
+ * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
70315
70708
  */
70316
70709
  404: BrowserError;
70317
70710
  /**
70318
- * SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
70711
+ * SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
70319
70712
  */
70320
70713
  409: BrowserError;
70714
+ /**
70715
+ * BROWSER_REVOKED
70716
+ */
70717
+ 410: BrowserError;
70321
70718
  /**
70322
70719
  * ACTION_RESULT_TOO_LARGE
70323
70720
  */
@@ -70339,7 +70736,7 @@ export type BrowserUpdateContextErrors = {
70339
70736
  */
70340
70737
  502: BrowserError;
70341
70738
  /**
70342
- * SERVICE_UNAVAILABLE
70739
+ * BROWSER_OFFLINE / SERVICE_UNAVAILABLE
70343
70740
  */
70344
70741
  503: BrowserError;
70345
70742
  /**
@@ -70355,6 +70752,566 @@ export type BrowserUpdateContextResponses = {
70355
70752
  200: BrowserContext;
70356
70753
  };
70357
70754
  export type BrowserUpdateContextResponse = BrowserUpdateContextResponses[keyof BrowserUpdateContextResponses];
70755
+ export type BrowserCreateByobPairingData = {
70756
+ body?: never;
70757
+ path?: never;
70758
+ query?: never;
70759
+ url: '/browser/v1/byob/pairings';
70760
+ };
70761
+ export type BrowserCreateByobPairingErrors = {
70762
+ /**
70763
+ * INVALID_PARAMS / INVALID_FILTER / INVALID_PAGE_TOKEN
70764
+ */
70765
+ 400: BrowserError;
70766
+ /**
70767
+ * UNAUTHENTICATED / CONNECT_SIGNATURE_INVALID
70768
+ */
70769
+ 401: BrowserError;
70770
+ /**
70771
+ * INSUFFICIENT_BALANCE / QUOTA_EXHAUSTED
70772
+ */
70773
+ 402: BrowserError;
70774
+ /**
70775
+ * PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
70776
+ */
70777
+ 403: BrowserError;
70778
+ /**
70779
+ * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
70780
+ */
70781
+ 404: BrowserError;
70782
+ /**
70783
+ * SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
70784
+ */
70785
+ 409: BrowserError;
70786
+ /**
70787
+ * BROWSER_REVOKED
70788
+ */
70789
+ 410: BrowserError;
70790
+ /**
70791
+ * ACTION_RESULT_TOO_LARGE
70792
+ */
70793
+ 413: BrowserError;
70794
+ /**
70795
+ * CONCURRENCY_LIMIT / RATE_LIMITED / PROVIDER_CAPACITY
70796
+ */
70797
+ 429: BrowserError;
70798
+ /**
70799
+ * INTERNAL
70800
+ */
70801
+ 500: BrowserError;
70802
+ /**
70803
+ * NOT_IMPLEMENTED / PROVIDER_UNSUPPORTED
70804
+ */
70805
+ 501: BrowserError;
70806
+ /**
70807
+ * PROVIDER_FAILED
70808
+ */
70809
+ 502: BrowserError;
70810
+ /**
70811
+ * BROWSER_OFFLINE / SERVICE_UNAVAILABLE
70812
+ */
70813
+ 503: BrowserError;
70814
+ /**
70815
+ * ACTION_TIMEOUT
70816
+ */
70817
+ 504: BrowserError;
70818
+ };
70819
+ export type BrowserCreateByobPairingError = BrowserCreateByobPairingErrors[keyof BrowserCreateByobPairingErrors];
70820
+ export type BrowserCreateByobPairingResponses = {
70821
+ /**
70822
+ * 请求成功。
70823
+ */
70824
+ 201: BrowserByobPairing;
70825
+ };
70826
+ export type BrowserCreateByobPairingResponse = BrowserCreateByobPairingResponses[keyof BrowserCreateByobPairingResponses];
70827
+ export type BrowserListByobBrowsersData = {
70828
+ body?: never;
70829
+ path?: never;
70830
+ query?: {
70831
+ /**
70832
+ * 上一页返回的 nextCursor,原样传入;省略时读取第一页。
70833
+ */
70834
+ cursor?: string;
70835
+ /**
70836
+ * 每页最多返回的浏览器数量;默认 50,范围 1–100。
70837
+ */
70838
+ limit?: number;
70839
+ };
70840
+ url: '/browser/v1/byob/browsers';
70841
+ };
70842
+ export type BrowserListByobBrowsersErrors = {
70843
+ /**
70844
+ * INVALID_PARAMS / INVALID_FILTER / INVALID_PAGE_TOKEN
70845
+ */
70846
+ 400: BrowserError;
70847
+ /**
70848
+ * UNAUTHENTICATED / CONNECT_SIGNATURE_INVALID
70849
+ */
70850
+ 401: BrowserError;
70851
+ /**
70852
+ * INSUFFICIENT_BALANCE / QUOTA_EXHAUSTED
70853
+ */
70854
+ 402: BrowserError;
70855
+ /**
70856
+ * PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
70857
+ */
70858
+ 403: BrowserError;
70859
+ /**
70860
+ * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
70861
+ */
70862
+ 404: BrowserError;
70863
+ /**
70864
+ * SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
70865
+ */
70866
+ 409: BrowserError;
70867
+ /**
70868
+ * BROWSER_REVOKED
70869
+ */
70870
+ 410: BrowserError;
70871
+ /**
70872
+ * ACTION_RESULT_TOO_LARGE
70873
+ */
70874
+ 413: BrowserError;
70875
+ /**
70876
+ * CONCURRENCY_LIMIT / RATE_LIMITED / PROVIDER_CAPACITY
70877
+ */
70878
+ 429: BrowserError;
70879
+ /**
70880
+ * INTERNAL
70881
+ */
70882
+ 500: BrowserError;
70883
+ /**
70884
+ * NOT_IMPLEMENTED / PROVIDER_UNSUPPORTED
70885
+ */
70886
+ 501: BrowserError;
70887
+ /**
70888
+ * PROVIDER_FAILED
70889
+ */
70890
+ 502: BrowserError;
70891
+ /**
70892
+ * BROWSER_OFFLINE / SERVICE_UNAVAILABLE
70893
+ */
70894
+ 503: BrowserError;
70895
+ /**
70896
+ * ACTION_TIMEOUT
70897
+ */
70898
+ 504: BrowserError;
70899
+ };
70900
+ export type BrowserListByobBrowsersError = BrowserListByobBrowsersErrors[keyof BrowserListByobBrowsersErrors];
70901
+ export type BrowserListByobBrowsersResponses = {
70902
+ /**
70903
+ * 分页列出的自带浏览器,按 ID 升序。
70904
+ */
70905
+ 200: {
70906
+ /**
70907
+ * 本页的自带浏览器;已断开的不在列表里。
70908
+ */
70909
+ data: Array<BrowserByobBrowser>;
70910
+ /**
70911
+ * 下一页游标;原样传入 cursor,null 表示没有更多结果。
70912
+ */
70913
+ nextCursor: string | null;
70914
+ };
70915
+ };
70916
+ export type BrowserListByobBrowsersResponse = BrowserListByobBrowsersResponses[keyof BrowserListByobBrowsersResponses];
70917
+ export type BrowserGetByobBrowserData = {
70918
+ body?: never;
70919
+ path: {
70920
+ /**
70921
+ * 自带浏览器 ID,以 byb_ 开头;使用配对认领或列出自带浏览器返回的 id。
70922
+ */
70923
+ browser_id: string;
70924
+ };
70925
+ query?: never;
70926
+ url: '/browser/v1/byob/browsers/{browser_id}';
70927
+ };
70928
+ export type BrowserGetByobBrowserErrors = {
70929
+ /**
70930
+ * INVALID_PARAMS / INVALID_FILTER / INVALID_PAGE_TOKEN
70931
+ */
70932
+ 400: BrowserError;
70933
+ /**
70934
+ * UNAUTHENTICATED / CONNECT_SIGNATURE_INVALID
70935
+ */
70936
+ 401: BrowserError;
70937
+ /**
70938
+ * INSUFFICIENT_BALANCE / QUOTA_EXHAUSTED
70939
+ */
70940
+ 402: BrowserError;
70941
+ /**
70942
+ * PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
70943
+ */
70944
+ 403: BrowserError;
70945
+ /**
70946
+ * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
70947
+ */
70948
+ 404: BrowserError;
70949
+ /**
70950
+ * SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
70951
+ */
70952
+ 409: BrowserError;
70953
+ /**
70954
+ * BROWSER_REVOKED
70955
+ */
70956
+ 410: BrowserError;
70957
+ /**
70958
+ * ACTION_RESULT_TOO_LARGE
70959
+ */
70960
+ 413: BrowserError;
70961
+ /**
70962
+ * CONCURRENCY_LIMIT / RATE_LIMITED / PROVIDER_CAPACITY
70963
+ */
70964
+ 429: BrowserError;
70965
+ /**
70966
+ * INTERNAL
70967
+ */
70968
+ 500: BrowserError;
70969
+ /**
70970
+ * NOT_IMPLEMENTED / PROVIDER_UNSUPPORTED
70971
+ */
70972
+ 501: BrowserError;
70973
+ /**
70974
+ * PROVIDER_FAILED
70975
+ */
70976
+ 502: BrowserError;
70977
+ /**
70978
+ * BROWSER_OFFLINE / SERVICE_UNAVAILABLE
70979
+ */
70980
+ 503: BrowserError;
70981
+ /**
70982
+ * ACTION_TIMEOUT
70983
+ */
70984
+ 504: BrowserError;
70985
+ };
70986
+ export type BrowserGetByobBrowserError = BrowserGetByobBrowserErrors[keyof BrowserGetByobBrowserErrors];
70987
+ export type BrowserGetByobBrowserResponses = {
70988
+ /**
70989
+ * 请求成功。
70990
+ */
70991
+ 200: BrowserByobBrowser;
70992
+ };
70993
+ export type BrowserGetByobBrowserResponse = BrowserGetByobBrowserResponses[keyof BrowserGetByobBrowserResponses];
70994
+ export type BrowserUpdateByobBrowserData = {
70995
+ body: {
70996
+ /**
70997
+ * 新的显示名称,1–80 个字符。
70998
+ */
70999
+ name?: string;
71000
+ /**
71001
+ * 整体替换被授权的智能体 ID 列表;传空数组撤销全部授权。
71002
+ */
71003
+ granted_agents?: Array<string>;
71004
+ /**
71005
+ * 整体替换允许站点列表;传空数组表示不限制。
71006
+ */
71007
+ allowed_sites?: Array<string>;
71008
+ };
71009
+ path: {
71010
+ /**
71011
+ * 自带浏览器 ID,以 byb_ 开头;使用配对认领或列出自带浏览器返回的 id。
71012
+ */
71013
+ browser_id: string;
71014
+ };
71015
+ query?: never;
71016
+ url: '/browser/v1/byob/browsers/{browser_id}';
71017
+ };
71018
+ export type BrowserUpdateByobBrowserErrors = {
71019
+ /**
71020
+ * INVALID_PARAMS / INVALID_FILTER / INVALID_PAGE_TOKEN
71021
+ */
71022
+ 400: BrowserError;
71023
+ /**
71024
+ * UNAUTHENTICATED / CONNECT_SIGNATURE_INVALID
71025
+ */
71026
+ 401: BrowserError;
71027
+ /**
71028
+ * INSUFFICIENT_BALANCE / QUOTA_EXHAUSTED
71029
+ */
71030
+ 402: BrowserError;
71031
+ /**
71032
+ * PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
71033
+ */
71034
+ 403: BrowserError;
71035
+ /**
71036
+ * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
71037
+ */
71038
+ 404: BrowserError;
71039
+ /**
71040
+ * SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
71041
+ */
71042
+ 409: BrowserError;
71043
+ /**
71044
+ * BROWSER_REVOKED
71045
+ */
71046
+ 410: BrowserError;
71047
+ /**
71048
+ * ACTION_RESULT_TOO_LARGE
71049
+ */
71050
+ 413: BrowserError;
71051
+ /**
71052
+ * CONCURRENCY_LIMIT / RATE_LIMITED / PROVIDER_CAPACITY
71053
+ */
71054
+ 429: BrowserError;
71055
+ /**
71056
+ * INTERNAL
71057
+ */
71058
+ 500: BrowserError;
71059
+ /**
71060
+ * NOT_IMPLEMENTED / PROVIDER_UNSUPPORTED
71061
+ */
71062
+ 501: BrowserError;
71063
+ /**
71064
+ * PROVIDER_FAILED
71065
+ */
71066
+ 502: BrowserError;
71067
+ /**
71068
+ * BROWSER_OFFLINE / SERVICE_UNAVAILABLE
71069
+ */
71070
+ 503: BrowserError;
71071
+ /**
71072
+ * ACTION_TIMEOUT
71073
+ */
71074
+ 504: BrowserError;
71075
+ };
71076
+ export type BrowserUpdateByobBrowserError = BrowserUpdateByobBrowserErrors[keyof BrowserUpdateByobBrowserErrors];
71077
+ export type BrowserUpdateByobBrowserResponses = {
71078
+ /**
71079
+ * 请求成功。
71080
+ */
71081
+ 200: BrowserByobBrowser;
71082
+ };
71083
+ export type BrowserUpdateByobBrowserResponse = BrowserUpdateByobBrowserResponses[keyof BrowserUpdateByobBrowserResponses];
71084
+ export type BrowserDisconnectByobBrowserData = {
71085
+ body?: never;
71086
+ path: {
71087
+ /**
71088
+ * 自带浏览器 ID,以 byb_ 开头;使用配对认领或列出自带浏览器返回的 id。
71089
+ */
71090
+ browser_id: string;
71091
+ };
71092
+ query?: never;
71093
+ url: '/browser/v1/byob/browsers/{browser_id}/disconnect';
71094
+ };
71095
+ export type BrowserDisconnectByobBrowserErrors = {
71096
+ /**
71097
+ * INVALID_PARAMS / INVALID_FILTER / INVALID_PAGE_TOKEN
71098
+ */
71099
+ 400: BrowserError;
71100
+ /**
71101
+ * UNAUTHENTICATED / CONNECT_SIGNATURE_INVALID
71102
+ */
71103
+ 401: BrowserError;
71104
+ /**
71105
+ * INSUFFICIENT_BALANCE / QUOTA_EXHAUSTED
71106
+ */
71107
+ 402: BrowserError;
71108
+ /**
71109
+ * PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
71110
+ */
71111
+ 403: BrowserError;
71112
+ /**
71113
+ * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
71114
+ */
71115
+ 404: BrowserError;
71116
+ /**
71117
+ * SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
71118
+ */
71119
+ 409: BrowserError;
71120
+ /**
71121
+ * BROWSER_REVOKED
71122
+ */
71123
+ 410: BrowserError;
71124
+ /**
71125
+ * ACTION_RESULT_TOO_LARGE
71126
+ */
71127
+ 413: BrowserError;
71128
+ /**
71129
+ * CONCURRENCY_LIMIT / RATE_LIMITED / PROVIDER_CAPACITY
71130
+ */
71131
+ 429: BrowserError;
71132
+ /**
71133
+ * INTERNAL
71134
+ */
71135
+ 500: BrowserError;
71136
+ /**
71137
+ * NOT_IMPLEMENTED / PROVIDER_UNSUPPORTED
71138
+ */
71139
+ 501: BrowserError;
71140
+ /**
71141
+ * PROVIDER_FAILED
71142
+ */
71143
+ 502: BrowserError;
71144
+ /**
71145
+ * BROWSER_OFFLINE / SERVICE_UNAVAILABLE
71146
+ */
71147
+ 503: BrowserError;
71148
+ /**
71149
+ * ACTION_TIMEOUT
71150
+ */
71151
+ 504: BrowserError;
71152
+ };
71153
+ export type BrowserDisconnectByobBrowserError = BrowserDisconnectByobBrowserErrors[keyof BrowserDisconnectByobBrowserErrors];
71154
+ export type BrowserDisconnectByobBrowserResponses = {
71155
+ /**
71156
+ * 请求成功。
71157
+ */
71158
+ 200: BrowserByobBrowser;
71159
+ };
71160
+ export type BrowserDisconnectByobBrowserResponse = BrowserDisconnectByobBrowserResponses[keyof BrowserDisconnectByobBrowserResponses];
71161
+ export type BrowserReadByobPairingData = {
71162
+ body?: never;
71163
+ path: {
71164
+ /**
71165
+ * 8 位配对码,来自创建配对码的结果。
71166
+ */
71167
+ code: string;
71168
+ };
71169
+ query?: never;
71170
+ url: '/browser/v1/byob/pairings/{code}';
71171
+ };
71172
+ export type BrowserReadByobPairingErrors = {
71173
+ /**
71174
+ * INVALID_PARAMS / INVALID_FILTER / INVALID_PAGE_TOKEN
71175
+ */
71176
+ 400: BrowserError;
71177
+ /**
71178
+ * UNAUTHENTICATED / CONNECT_SIGNATURE_INVALID
71179
+ */
71180
+ 401: BrowserError;
71181
+ /**
71182
+ * INSUFFICIENT_BALANCE / QUOTA_EXHAUSTED
71183
+ */
71184
+ 402: BrowserError;
71185
+ /**
71186
+ * PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
71187
+ */
71188
+ 403: BrowserError;
71189
+ /**
71190
+ * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
71191
+ */
71192
+ 404: BrowserError;
71193
+ /**
71194
+ * SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
71195
+ */
71196
+ 409: BrowserError;
71197
+ /**
71198
+ * BROWSER_REVOKED
71199
+ */
71200
+ 410: BrowserError;
71201
+ /**
71202
+ * ACTION_RESULT_TOO_LARGE
71203
+ */
71204
+ 413: BrowserError;
71205
+ /**
71206
+ * CONCURRENCY_LIMIT / RATE_LIMITED / PROVIDER_CAPACITY
71207
+ */
71208
+ 429: BrowserError;
71209
+ /**
71210
+ * INTERNAL
71211
+ */
71212
+ 500: BrowserError;
71213
+ /**
71214
+ * NOT_IMPLEMENTED / PROVIDER_UNSUPPORTED
71215
+ */
71216
+ 501: BrowserError;
71217
+ /**
71218
+ * PROVIDER_FAILED
71219
+ */
71220
+ 502: BrowserError;
71221
+ /**
71222
+ * BROWSER_OFFLINE / SERVICE_UNAVAILABLE
71223
+ */
71224
+ 503: BrowserError;
71225
+ /**
71226
+ * ACTION_TIMEOUT
71227
+ */
71228
+ 504: BrowserError;
71229
+ };
71230
+ export type BrowserReadByobPairingError = BrowserReadByobPairingErrors[keyof BrowserReadByobPairingErrors];
71231
+ export type BrowserReadByobPairingResponses = {
71232
+ /**
71233
+ * 请求成功。
71234
+ */
71235
+ 200: BrowserByobPairingView;
71236
+ };
71237
+ export type BrowserReadByobPairingResponse = BrowserReadByobPairingResponses[keyof BrowserReadByobPairingResponses];
71238
+ export type BrowserClaimByobPairingData = {
71239
+ body: BrowserByobClaim;
71240
+ path: {
71241
+ /**
71242
+ * 8 位配对码,来自创建配对码的结果。
71243
+ */
71244
+ code: string;
71245
+ };
71246
+ query?: never;
71247
+ url: '/browser/v1/byob/pairings/{code}/claim';
71248
+ };
71249
+ export type BrowserClaimByobPairingErrors = {
71250
+ /**
71251
+ * INVALID_PARAMS / INVALID_FILTER / INVALID_PAGE_TOKEN
71252
+ */
71253
+ 400: BrowserError;
71254
+ /**
71255
+ * UNAUTHENTICATED / CONNECT_SIGNATURE_INVALID
71256
+ */
71257
+ 401: BrowserError;
71258
+ /**
71259
+ * INSUFFICIENT_BALANCE / QUOTA_EXHAUSTED
71260
+ */
71261
+ 402: BrowserError;
71262
+ /**
71263
+ * PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
71264
+ */
71265
+ 403: BrowserError;
71266
+ /**
71267
+ * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
71268
+ */
71269
+ 404: BrowserError;
71270
+ /**
71271
+ * SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
71272
+ */
71273
+ 409: BrowserError;
71274
+ /**
71275
+ * BROWSER_REVOKED
71276
+ */
71277
+ 410: BrowserError;
71278
+ /**
71279
+ * ACTION_RESULT_TOO_LARGE
71280
+ */
71281
+ 413: BrowserError;
71282
+ /**
71283
+ * CONCURRENCY_LIMIT / RATE_LIMITED / PROVIDER_CAPACITY
71284
+ */
71285
+ 429: BrowserError;
71286
+ /**
71287
+ * INTERNAL
71288
+ */
71289
+ 500: BrowserError;
71290
+ /**
71291
+ * NOT_IMPLEMENTED / PROVIDER_UNSUPPORTED
71292
+ */
71293
+ 501: BrowserError;
71294
+ /**
71295
+ * PROVIDER_FAILED
71296
+ */
71297
+ 502: BrowserError;
71298
+ /**
71299
+ * BROWSER_OFFLINE / SERVICE_UNAVAILABLE
71300
+ */
71301
+ 503: BrowserError;
71302
+ /**
71303
+ * ACTION_TIMEOUT
71304
+ */
71305
+ 504: BrowserError;
71306
+ };
71307
+ export type BrowserClaimByobPairingError = BrowserClaimByobPairingErrors[keyof BrowserClaimByobPairingErrors];
71308
+ export type BrowserClaimByobPairingResponses = {
71309
+ /**
71310
+ * 认领成功。
71311
+ */
71312
+ 201: BrowserByobClaimResult;
71313
+ };
71314
+ export type BrowserClaimByobPairingResponse = BrowserClaimByobPairingResponses[keyof BrowserClaimByobPairingResponses];
70358
71315
  export type BrowserConnectData = {
70359
71316
  body?: never;
70360
71317
  path?: never;
@@ -70412,17 +71369,21 @@ export type BrowserConnectErrors = {
70412
71369
  */
70413
71370
  402: BrowserError;
70414
71371
  /**
70415
- * PERMISSION_DENIED / ACCOUNT_SUSPENDED
71372
+ * PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
70416
71373
  */
70417
71374
  403: BrowserError;
70418
71375
  /**
70419
- * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
71376
+ * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
70420
71377
  */
70421
71378
  404: BrowserError;
70422
71379
  /**
70423
- * SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
71380
+ * SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
70424
71381
  */
70425
71382
  409: BrowserError;
71383
+ /**
71384
+ * BROWSER_REVOKED
71385
+ */
71386
+ 410: BrowserError;
70426
71387
  /**
70427
71388
  * ACTION_RESULT_TOO_LARGE
70428
71389
  */
@@ -70444,7 +71405,7 @@ export type BrowserConnectErrors = {
70444
71405
  */
70445
71406
  502: BrowserError;
70446
71407
  /**
70447
- * SERVICE_UNAVAILABLE
71408
+ * BROWSER_OFFLINE / SERVICE_UNAVAILABLE
70448
71409
  */
70449
71410
  503: BrowserError;
70450
71411
  /**
@@ -70487,83 +71448,91 @@ export type BrowserLiveViewErrors = {
70487
71448
  */
70488
71449
  402: BrowserError;
70489
71450
  /**
70490
- * PERMISSION_DENIED / ACCOUNT_SUSPENDED
71451
+ * PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
71452
+ */
71453
+ 403: BrowserError;
71454
+ /**
71455
+ * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
71456
+ */
71457
+ 404: BrowserError;
71458
+ /**
71459
+ * SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
71460
+ */
71461
+ 409: BrowserError;
71462
+ /**
71463
+ * BROWSER_REVOKED
71464
+ */
71465
+ 410: BrowserError;
71466
+ /**
71467
+ * ACTION_RESULT_TOO_LARGE
71468
+ */
71469
+ 413: BrowserError;
71470
+ /**
71471
+ * CONCURRENCY_LIMIT / RATE_LIMITED / PROVIDER_CAPACITY
71472
+ */
71473
+ 429: BrowserError;
71474
+ /**
71475
+ * INTERNAL
71476
+ */
71477
+ 500: BrowserError;
71478
+ /**
71479
+ * NOT_IMPLEMENTED / PROVIDER_UNSUPPORTED
71480
+ */
71481
+ 501: BrowserError;
71482
+ /**
71483
+ * PROVIDER_FAILED
71484
+ */
71485
+ 502: BrowserError;
71486
+ /**
71487
+ * BROWSER_OFFLINE / SERVICE_UNAVAILABLE
71488
+ */
71489
+ 503: BrowserError;
71490
+ /**
71491
+ * ACTION_TIMEOUT
71492
+ */
71493
+ 504: BrowserError;
71494
+ };
71495
+ export type BrowserLiveViewError = BrowserLiveViewErrors[keyof BrowserLiveViewErrors];
71496
+ export type BrowserStreamSessionData = {
71497
+ body?: never;
71498
+ path: {
71499
+ /**
71500
+ * 浏览器会话 ID;使用创建或列出会话返回的 id,以 bss_ 开头。
71501
+ */
71502
+ sessionId: string;
71503
+ };
71504
+ query?: never;
71505
+ url: '/browser/v1/sessions/{sessionId}/stream';
71506
+ };
71507
+ export type BrowserStreamSessionErrors = {
71508
+ /**
71509
+ * INVALID_PARAMS / INVALID_FILTER / INVALID_PAGE_TOKEN
71510
+ */
71511
+ 400: BrowserError;
71512
+ /**
71513
+ * UNAUTHENTICATED / CONNECT_SIGNATURE_INVALID
71514
+ */
71515
+ 401: BrowserError;
71516
+ /**
71517
+ * INSUFFICIENT_BALANCE / QUOTA_EXHAUSTED
71518
+ */
71519
+ 402: BrowserError;
71520
+ /**
71521
+ * PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
70491
71522
  */
70492
71523
  403: BrowserError;
70493
71524
  /**
70494
- * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
71525
+ * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
70495
71526
  */
70496
71527
  404: BrowserError;
70497
71528
  /**
70498
- * SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
71529
+ * SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
70499
71530
  */
70500
71531
  409: BrowserError;
70501
71532
  /**
70502
- * ACTION_RESULT_TOO_LARGE
70503
- */
70504
- 413: BrowserError;
70505
- /**
70506
- * CONCURRENCY_LIMIT / RATE_LIMITED / PROVIDER_CAPACITY
70507
- */
70508
- 429: BrowserError;
70509
- /**
70510
- * INTERNAL
70511
- */
70512
- 500: BrowserError;
70513
- /**
70514
- * NOT_IMPLEMENTED / PROVIDER_UNSUPPORTED
70515
- */
70516
- 501: BrowserError;
70517
- /**
70518
- * PROVIDER_FAILED
70519
- */
70520
- 502: BrowserError;
70521
- /**
70522
- * SERVICE_UNAVAILABLE
70523
- */
70524
- 503: BrowserError;
70525
- /**
70526
- * ACTION_TIMEOUT
70527
- */
70528
- 504: BrowserError;
70529
- };
70530
- export type BrowserLiveViewError = BrowserLiveViewErrors[keyof BrowserLiveViewErrors];
70531
- export type BrowserStreamSessionData = {
70532
- body?: never;
70533
- path: {
70534
- /**
70535
- * 浏览器会话 ID;使用创建或列出会话返回的 id,以 bss_ 开头。
70536
- */
70537
- sessionId: string;
70538
- };
70539
- query?: never;
70540
- url: '/browser/v1/sessions/{sessionId}/stream';
70541
- };
70542
- export type BrowserStreamSessionErrors = {
70543
- /**
70544
- * INVALID_PARAMS / INVALID_FILTER / INVALID_PAGE_TOKEN
70545
- */
70546
- 400: BrowserError;
70547
- /**
70548
- * UNAUTHENTICATED / CONNECT_SIGNATURE_INVALID
70549
- */
70550
- 401: BrowserError;
70551
- /**
70552
- * INSUFFICIENT_BALANCE / QUOTA_EXHAUSTED
70553
- */
70554
- 402: BrowserError;
70555
- /**
70556
- * PERMISSION_DENIED / ACCOUNT_SUSPENDED
70557
- */
70558
- 403: BrowserError;
70559
- /**
70560
- * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
71533
+ * BROWSER_REVOKED
70561
71534
  */
70562
- 404: BrowserError;
70563
- /**
70564
- * SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
70565
- */
70566
- 409: BrowserError;
71535
+ 410: BrowserError;
70567
71536
  /**
70568
71537
  * ACTION_RESULT_TOO_LARGE
70569
71538
  */
@@ -70585,7 +71554,7 @@ export type BrowserStreamSessionErrors = {
70585
71554
  */
70586
71555
  502: BrowserError;
70587
71556
  /**
70588
- * SERVICE_UNAVAILABLE
71557
+ * BROWSER_OFFLINE / SERVICE_UNAVAILABLE
70589
71558
  */
70590
71559
  503: BrowserError;
70591
71560
  /**
@@ -70626,17 +71595,21 @@ export type BrowserStreamSessionFramesErrors = {
70626
71595
  */
70627
71596
  402: BrowserError;
70628
71597
  /**
70629
- * PERMISSION_DENIED / ACCOUNT_SUSPENDED
71598
+ * PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
70630
71599
  */
70631
71600
  403: BrowserError;
70632
71601
  /**
70633
- * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
71602
+ * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
70634
71603
  */
70635
71604
  404: BrowserError;
70636
71605
  /**
70637
- * SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
71606
+ * SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
70638
71607
  */
70639
71608
  409: BrowserError;
71609
+ /**
71610
+ * BROWSER_REVOKED
71611
+ */
71612
+ 410: BrowserError;
70640
71613
  /**
70641
71614
  * ACTION_RESULT_TOO_LARGE
70642
71615
  */
@@ -70658,7 +71631,7 @@ export type BrowserStreamSessionFramesErrors = {
70658
71631
  */
70659
71632
  502: BrowserError;
70660
71633
  /**
70661
- * SERVICE_UNAVAILABLE
71634
+ * BROWSER_OFFLINE / SERVICE_UNAVAILABLE
70662
71635
  */
70663
71636
  503: BrowserError;
70664
71637
  /**
@@ -71054,7 +72027,7 @@ export type FileCreateSignedUploadErrors = {
71054
72027
  */
71055
72028
  401: unknown;
71056
72029
  /**
71057
- * PERMISSION_DENIED or BINDING_READ_ONLY: use a credential with the required create or file-write authority.
72030
+ * 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
72031
  */
71059
72032
  403: unknown;
71060
72033
  };
@@ -77963,10 +78936,18 @@ export type GetOrganizationNotificationsInboxData = {
77963
78936
  url: '/organization/v1/notifications/inbox';
77964
78937
  };
77965
78938
  export type GetOrganizationNotificationsInboxErrors = {
78939
+ /**
78940
+ * `INVALID_PARAMS` from the service for a read it cannot answer (RFC 9457 problem).
78941
+ */
78942
+ 400: unknown;
77966
78943
  /**
77967
78944
  * Missing or invalid credential (RFC 9457 problem).
77968
78945
  */
77969
78946
  401: unknown;
78947
+ /**
78948
+ * 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.
78949
+ */
78950
+ 502: unknown;
77970
78951
  };
77971
78952
  export type GetOrganizationNotificationsInboxResponses = {
77972
78953
  /**
@@ -78009,13 +78990,17 @@ export type ListOrganizationNotificationLettersData = {
78009
78990
  };
78010
78991
  export type ListOrganizationNotificationLettersErrors = {
78011
78992
  /**
78012
- * Invalid status, archived or limit (RFC 9457 problem).
78993
+ * A bad `status`, `archived` or `limit`, or `INVALID_PARAMS` from the service for a cursor it did not issue (RFC 9457 problem).
78013
78994
  */
78014
78995
  400: unknown;
78015
78996
  /**
78016
78997
  * Missing or invalid credential (RFC 9457 problem).
78017
78998
  */
78018
78999
  401: unknown;
79000
+ /**
79001
+ * 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.
79002
+ */
79003
+ 502: unknown;
78019
79004
  };
78020
79005
  export type ListOrganizationNotificationLettersResponses = {
78021
79006
  /**
@@ -78076,6 +79061,23 @@ export type ListOrganizationNotificationLettersResponses = {
78076
79061
  * Whether this person archived it. Archived letters are hidden unless archived=true is asked for.
78077
79062
  */
78078
79063
  archived: boolean;
79064
+ /**
79065
+ * 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.
79066
+ */
79067
+ organization: {
79068
+ /**
79069
+ * The organization's id, from the directory.
79070
+ */
79071
+ id: string;
79072
+ /**
79073
+ * The organization's readable slug (ADR-101), the one a Console link carries as org=.
79074
+ */
79075
+ slug: string;
79076
+ /**
79077
+ * The organization's display name, as a person reads it.
79078
+ */
79079
+ name: string;
79080
+ };
78079
79081
  }>;
78080
79082
  /**
78081
79083
  * Pass unchanged as cursor for the next page; null at the end.
@@ -78088,6 +79090,110 @@ export type ListOrganizationNotificationLettersResponses = {
78088
79090
  };
78089
79091
  };
78090
79092
  export type ListOrganizationNotificationLettersResponse = ListOrganizationNotificationLettersResponses[keyof ListOrganizationNotificationLettersResponses];
79093
+ export type GetOrganizationNotificationLetterData = {
79094
+ body?: never;
79095
+ path: {
79096
+ /**
79097
+ * The letter's id, from the letters list.
79098
+ */
79099
+ id: string;
79100
+ };
79101
+ query?: never;
79102
+ url: '/organization/v1/notifications/letters/{id}';
79103
+ };
79104
+ export type GetOrganizationNotificationLetterErrors = {
79105
+ /**
79106
+ * The id is not a letter id — `INVALID_PARAMS` from the service (RFC 9457 problem).
79107
+ */
79108
+ 400: unknown;
79109
+ /**
79110
+ * Missing or invalid credential (RFC 9457 problem).
79111
+ */
79112
+ 401: unknown;
79113
+ /**
79114
+ * 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).
79115
+ */
79116
+ 404: unknown;
79117
+ /**
79118
+ * 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.
79119
+ */
79120
+ 502: unknown;
79121
+ };
79122
+ export type GetOrganizationNotificationLetterResponses = {
79123
+ /**
79124
+ * The letter, as the list would show it.
79125
+ */
79126
+ 200: {
79127
+ /**
79128
+ * The letter's id.
79129
+ */
79130
+ id: string;
79131
+ /**
79132
+ * The sender's display name. Never an address or an internal id; an address the directory does not know reads 「未知成员」.
79133
+ */
79134
+ sender: string;
79135
+ /**
79136
+ * One line saying what the letter asks or tells, written for this reader.
79137
+ */
79138
+ summary: string;
79139
+ /**
79140
+ * The whole letter, for the detail view, written for this reader.
79141
+ */
79142
+ body: string;
79143
+ /**
79144
+ * The conversation the letter belongs to; a ticket letter uses ticket:<repository>:<number>. Null when the sender named none.
79145
+ */
79146
+ thread: string;
79147
+ /**
79148
+ * The letter's kind (ADR-193 §2, #4107).
79149
+ */
79150
+ kind: 'notice' | 'mention' | 'decision';
79151
+ /**
79152
+ * Where the letter came from (a ticket number, a comment, a change); null when the sender gave none.
79153
+ */
79154
+ source: {
79155
+ [key: string]: unknown;
79156
+ };
79157
+ /**
79158
+ * Whether this person has read it.
79159
+ */
79160
+ read: boolean;
79161
+ /**
79162
+ * When it arrived; null while still scheduled.
79163
+ */
79164
+ deliveredAt: string;
79165
+ /**
79166
+ * When it was written.
79167
+ */
79168
+ createTime: string;
79169
+ /**
79170
+ * Why it reached this person, in their words — 「在工单 #4109 的评论里 @ 了你」.
79171
+ */
79172
+ reason: string;
79173
+ /**
79174
+ * Whether this person archived it.
79175
+ */
79176
+ archived: boolean;
79177
+ /**
79178
+ * 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.
79179
+ */
79180
+ organization: {
79181
+ /**
79182
+ * The organization's id, from the directory.
79183
+ */
79184
+ id: string;
79185
+ /**
79186
+ * The organization's readable slug (ADR-101), the one a Console link carries as org=.
79187
+ */
79188
+ slug: string;
79189
+ /**
79190
+ * The organization's display name, as a person reads it.
79191
+ */
79192
+ name: string;
79193
+ };
79194
+ };
79195
+ };
79196
+ export type GetOrganizationNotificationLetterResponse = GetOrganizationNotificationLetterResponses[keyof GetOrganizationNotificationLetterResponses];
78091
79197
  export type ReadOrganizationNotificationLetterData = {
78092
79198
  body?: never;
78093
79199
  path: {
@@ -78101,7 +79207,7 @@ export type ReadOrganizationNotificationLetterData = {
78101
79207
  };
78102
79208
  export type ReadOrganizationNotificationLetterErrors = {
78103
79209
  /**
78104
- * The id is not a letter id (RFC 9457 problem).
79210
+ * The id is not a letter id — `INVALID_PARAMS` from the service (RFC 9457 problem).
78105
79211
  */
78106
79212
  400: unknown;
78107
79213
  /**
@@ -78109,9 +79215,13 @@ export type ReadOrganizationNotificationLetterErrors = {
78109
79215
  */
78110
79216
  401: unknown;
78111
79217
  /**
78112
- * No such letter in your mailbox (RFC 9457 problem).
79218
+ * No such letter in your mailbox in this organization — `MESSAGE_NOT_FOUND` (RFC 9457 problem).
78113
79219
  */
78114
79220
  404: unknown;
79221
+ /**
79222
+ * 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.
79223
+ */
79224
+ 502: unknown;
78115
79225
  };
78116
79226
  export type ReadOrganizationNotificationLetterResponses = {
78117
79227
  /**
@@ -78138,13 +79248,17 @@ export type ReadAllOrganizationNotificationLettersData = {
78138
79248
  };
78139
79249
  export type ReadAllOrganizationNotificationLettersErrors = {
78140
79250
  /**
78141
- * The body is not a JSON object, or kind is unknown (RFC 9457 problem).
79251
+ * The body is not a JSON object, `kind` is unknown, or `INVALID_PARAMS` from the service (RFC 9457 problem).
78142
79252
  */
78143
79253
  400: unknown;
78144
79254
  /**
78145
79255
  * Missing or invalid credential (RFC 9457 problem).
78146
79256
  */
78147
79257
  401: unknown;
79258
+ /**
79259
+ * 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.
79260
+ */
79261
+ 502: unknown;
78148
79262
  };
78149
79263
  export type ReadAllOrganizationNotificationLettersResponses = {
78150
79264
  /**
@@ -78171,7 +79285,7 @@ export type ArchiveOrganizationNotificationLetterData = {
78171
79285
  };
78172
79286
  export type ArchiveOrganizationNotificationLetterErrors = {
78173
79287
  /**
78174
- * The id is not a letter id (RFC 9457 problem).
79288
+ * The id is not a letter id — `INVALID_PARAMS` from the service (RFC 9457 problem).
78175
79289
  */
78176
79290
  400: unknown;
78177
79291
  /**
@@ -78179,9 +79293,13 @@ export type ArchiveOrganizationNotificationLetterErrors = {
78179
79293
  */
78180
79294
  401: unknown;
78181
79295
  /**
78182
- * No such letter in your mailbox (RFC 9457 problem).
79296
+ * No such letter in your mailbox in this organization — `MESSAGE_NOT_FOUND` (RFC 9457 problem).
78183
79297
  */
78184
79298
  404: unknown;
79299
+ /**
79300
+ * 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.
79301
+ */
79302
+ 502: unknown;
78185
79303
  };
78186
79304
  export type ArchiveOrganizationNotificationLetterResponses = {
78187
79305
  /**
@@ -78206,6 +79324,10 @@ export type GetOrganizationNotificationPreferencesErrors = {
78206
79324
  * Missing or invalid credential (RFC 9457 problem).
78207
79325
  */
78208
79326
  401: unknown;
79327
+ /**
79328
+ * 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.
79329
+ */
79330
+ 502: unknown;
78209
79331
  };
78210
79332
  export type GetOrganizationNotificationPreferencesResponses = {
78211
79333
  /**
@@ -78297,7 +79419,7 @@ export type UpdateOrganizationNotificationPreferencesData = {
78297
79419
  };
78298
79420
  export type UpdateOrganizationNotificationPreferencesErrors = {
78299
79421
  /**
78300
- * Invalid switch, unknown category or unoffered channel (RFC 9457 problem).
79422
+ * Invalid switch, unknown category or unoffered channel — `INVALID_PARAMS`, `NOT_CONFIGURABLE` or `CRITICAL_CHANNELS_OFF` from the service (RFC 9457 problem).
78301
79423
  */
78302
79424
  400: unknown;
78303
79425
  /**
@@ -78305,9 +79427,13 @@ export type UpdateOrganizationNotificationPreferencesErrors = {
78305
79427
  */
78306
79428
  401: unknown;
78307
79429
  /**
78308
- * The organization does not let members change their own switches (ORGANIZATION_LOCKED).
79430
+ * The organization does not let members change their own switches — `ORGANIZATION_LOCKED` from the service (RFC 9457 problem).
78309
79431
  */
78310
79432
  403: unknown;
79433
+ /**
79434
+ * 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.
79435
+ */
79436
+ 502: unknown;
78311
79437
  };
78312
79438
  export type UpdateOrganizationNotificationPreferencesResponses = {
78313
79439
  /**
@@ -78329,6 +79455,10 @@ export type GetOrganizationNotificationDefaultsErrors = {
78329
79455
  * Missing or invalid credential (RFC 9457 problem).
78330
79456
  */
78331
79457
  401: unknown;
79458
+ /**
79459
+ * 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.
79460
+ */
79461
+ 502: unknown;
78332
79462
  };
78333
79463
  export type GetOrganizationNotificationDefaultsResponses = {
78334
79464
  /**
@@ -78366,7 +79496,7 @@ export type UpdateOrganizationNotificationDefaultsData = {
78366
79496
  };
78367
79497
  export type UpdateOrganizationNotificationDefaultsErrors = {
78368
79498
  /**
78369
- * Invalid default, unknown category or hidden critical category (RFC 9457 problem).
79499
+ * Invalid default, unknown category or hidden critical category (RFC 9457 problem, `INVALID_PARAMS`).
78370
79500
  */
78371
79501
  400: unknown;
78372
79502
  /**
@@ -78374,9 +79504,13 @@ export type UpdateOrganizationNotificationDefaultsErrors = {
78374
79504
  */
78375
79505
  401: unknown;
78376
79506
  /**
78377
- * The caller is not an owner or admin of this organization.
79507
+ * The caller is not an owner or admin of this organization — `PERMISSION_DENIED` from the service (RFC 9457 problem).
78378
79508
  */
78379
79509
  403: unknown;
79510
+ /**
79511
+ * 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.
79512
+ */
79513
+ 502: unknown;
78380
79514
  };
78381
79515
  export type UpdateOrganizationNotificationDefaultsResponses = {
78382
79516
  /**
@@ -78404,13 +79538,17 @@ export type ListOrganizationNotificationDeliveriesData = {
78404
79538
  };
78405
79539
  export type ListOrganizationNotificationDeliveriesErrors = {
78406
79540
  /**
78407
- * Invalid limit or page cursor (RFC 9457 problem).
79541
+ * Invalid limit, or `INVALID_PARAMS` from the service for a page cursor it did not issue (RFC 9457 problem).
78408
79542
  */
78409
79543
  400: unknown;
78410
79544
  /**
78411
79545
  * Missing or invalid credential (RFC 9457 problem).
78412
79546
  */
78413
79547
  401: unknown;
79548
+ /**
79549
+ * 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.
79550
+ */
79551
+ 502: unknown;
78414
79552
  };
78415
79553
  export type ListOrganizationNotificationDeliveriesResponses = {
78416
79554
  /**
@@ -79677,6 +80815,19 @@ export type ListByodDevicesResponses = {
79677
80815
  * 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
80816
  */
79679
80817
  agent_dirs: Array<string>;
80818
+ /**
80819
+ * 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.
80820
+ */
80821
+ agent_bindings: Array<{
80822
+ /**
80823
+ * The absolute directory the desktop bound to an agent with praxis agent connect.
80824
+ */
80825
+ dir: string;
80826
+ /**
80827
+ * The agent the directory is bound to: its identity number or its agent id.
80828
+ */
80829
+ agent: string;
80830
+ }>;
79680
80831
  /**
79681
80832
  * 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
80833
  */
@@ -79759,6 +80910,19 @@ export type GetByodDeviceResponses = {
79759
80910
  * 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
80911
  */
79761
80912
  agent_dirs: Array<string>;
80913
+ /**
80914
+ * 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.
80915
+ */
80916
+ agent_bindings: Array<{
80917
+ /**
80918
+ * The absolute directory the desktop bound to an agent with praxis agent connect.
80919
+ */
80920
+ dir: string;
80921
+ /**
80922
+ * The agent the directory is bound to: its identity number or its agent id.
80923
+ */
80924
+ agent: string;
80925
+ }>;
79762
80926
  /**
79763
80927
  * 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
80928
  */
@@ -79852,6 +81016,19 @@ export type UpdateByodDeviceResponses = {
79852
81016
  * 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
81017
  */
79854
81018
  agent_dirs: Array<string>;
81019
+ /**
81020
+ * 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.
81021
+ */
81022
+ agent_bindings: Array<{
81023
+ /**
81024
+ * The absolute directory the desktop bound to an agent with praxis agent connect.
81025
+ */
81026
+ dir: string;
81027
+ /**
81028
+ * The agent the directory is bound to: its identity number or its agent id.
81029
+ */
81030
+ agent: string;
81031
+ }>;
79855
81032
  /**
79856
81033
  * 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
81034
  */
@@ -83145,6 +84322,15 @@ export type AgentsListResponses = {
83145
84322
  name: string;
83146
84323
  }>;
83147
84324
  };
84325
+ /**
84326
+ * 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.
84327
+ */
84328
+ browser?: {
84329
+ /**
84330
+ * A paired browser's id (byb_ and 26 lowercase hex characters), from browser.byob.browsers.list.
84331
+ */
84332
+ byob: string;
84333
+ } | null;
83148
84334
  /**
83149
84335
  * 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
84336
  */
@@ -84094,6 +85280,15 @@ export type AgentsCreateData = {
84094
85280
  name: string;
84095
85281
  }>;
84096
85282
  };
85283
+ /**
85284
+ * 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.
85285
+ */
85286
+ browser?: {
85287
+ /**
85288
+ * A paired browser's id (byb_ and 26 lowercase hex characters), from browser.byob.browsers.list.
85289
+ */
85290
+ byob: string;
85291
+ } | null;
84097
85292
  /**
84098
85293
  * 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
85294
  */
@@ -84349,6 +85544,15 @@ export type AgentsCreateResponses = {
84349
85544
  name: string;
84350
85545
  }>;
84351
85546
  };
85547
+ /**
85548
+ * 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.
85549
+ */
85550
+ browser?: {
85551
+ /**
85552
+ * A paired browser's id (byb_ and 26 lowercase hex characters), from browser.byob.browsers.list.
85553
+ */
85554
+ byob: string;
85555
+ } | null;
84352
85556
  /**
84353
85557
  * 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
85558
  */
@@ -85011,6 +86215,15 @@ export type AgentsRetrieveResponses = {
85011
86215
  name: string;
85012
86216
  }>;
85013
86217
  };
86218
+ /**
86219
+ * 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.
86220
+ */
86221
+ browser?: {
86222
+ /**
86223
+ * A paired browser's id (byb_ and 26 lowercase hex characters), from browser.byob.browsers.list.
86224
+ */
86225
+ byob: string;
86226
+ } | null;
85014
86227
  /**
85015
86228
  * 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
86229
  */
@@ -85969,6 +87182,15 @@ export type AgentsUpdateData = {
85969
87182
  name: string;
85970
87183
  }>;
85971
87184
  };
87185
+ /**
87186
+ * 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.
87187
+ */
87188
+ browser?: {
87189
+ /**
87190
+ * A paired browser's id (byb_ and 26 lowercase hex characters), from browser.byob.browsers.list.
87191
+ */
87192
+ byob: string;
87193
+ } | null;
85972
87194
  /**
85973
87195
  * 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
87196
  */
@@ -86237,6 +87459,15 @@ export type AgentsUpdateResponses = {
86237
87459
  name: string;
86238
87460
  }>;
86239
87461
  };
87462
+ /**
87463
+ * 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.
87464
+ */
87465
+ browser?: {
87466
+ /**
87467
+ * A paired browser's id (byb_ and 26 lowercase hex characters), from browser.byob.browsers.list.
87468
+ */
87469
+ byob: string;
87470
+ } | null;
86240
87471
  /**
86241
87472
  * 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
87473
  */
@@ -87525,6 +88756,15 @@ export type AgentsVersionsListResponses = {
87525
88756
  name: string;
87526
88757
  }>;
87527
88758
  };
88759
+ /**
88760
+ * 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.
88761
+ */
88762
+ browser?: {
88763
+ /**
88764
+ * A paired browser's id (byb_ and 26 lowercase hex characters), from browser.byob.browsers.list.
88765
+ */
88766
+ byob: string;
88767
+ } | null;
87528
88768
  /**
87529
88769
  * 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
88770
  */
@@ -90307,6 +91547,31 @@ export type SessionsEventsListResponses = {
90307
91547
  * 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
91548
  */
90309
91549
  session_thread_id?: string | null;
91550
+ } | {
91551
+ /**
91552
+ * Event id, unique within the session. Use it to refer to this event, for example in user.tool_confirmation or user.steer.
91553
+ */
91554
+ id: string;
91555
+ /**
91556
+ * Always `session.status_preparing`. A device session's local agent is starting; stage says how far it got.
91557
+ */
91558
+ type: 'session.status_preparing';
91559
+ /**
91560
+ * RFC 3339 time at which the server processed the event; null while a queued input has not started running.
91561
+ */
91562
+ processed_at: string;
91563
+ /**
91564
+ * How far the start got.
91565
+ */
91566
+ stage: 'launching' | 'loading' | 'ready';
91567
+ /**
91568
+ * 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.
91569
+ */
91570
+ message_id?: string;
91571
+ /**
91572
+ * 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.
91573
+ */
91574
+ session_thread_id?: string | null;
90310
91575
  }>;
90311
91576
  /**
90312
91577
  * Opaque cursor for the next page: pass it unchanged as page to continue. Null when this is the last page.
@@ -92029,6 +93294,31 @@ export type SessionsThreadsEventsListResponses = {
92029
93294
  * 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
93295
  */
92031
93296
  session_thread_id?: string | null;
93297
+ } | {
93298
+ /**
93299
+ * Event id, unique within the session. Use it to refer to this event, for example in user.tool_confirmation or user.steer.
93300
+ */
93301
+ id: string;
93302
+ /**
93303
+ * Always `session.status_preparing`. A device session's local agent is starting; stage says how far it got.
93304
+ */
93305
+ type: 'session.status_preparing';
93306
+ /**
93307
+ * RFC 3339 time at which the server processed the event; null while a queued input has not started running.
93308
+ */
93309
+ processed_at: string;
93310
+ /**
93311
+ * How far the start got.
93312
+ */
93313
+ stage: 'launching' | 'loading' | 'ready';
93314
+ /**
93315
+ * 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.
93316
+ */
93317
+ message_id?: string;
93318
+ /**
93319
+ * 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.
93320
+ */
93321
+ session_thread_id?: string | null;
92032
93322
  }>;
92033
93323
  /**
92034
93324
  * Opaque cursor for the next page: pass it unchanged as page to continue. Null when this is the last page.
@@ -110867,6 +112157,51 @@ export type DevopsChangesMarkLastSliceResponses = {
110867
112157
  200: DevopsChange;
110868
112158
  };
110869
112159
  export type DevopsChangesMarkLastSliceResponse = DevopsChangesMarkLastSliceResponses[keyof DevopsChangesMarkLastSliceResponses];
112160
+ export type DevopsChangesSlicesCreateData = {
112161
+ body?: DevopsChangeSliceCreateRequest;
112162
+ path: {
112163
+ /**
112164
+ * Identifies the project whose data you are reading, from the project list or create answer.
112165
+ */
112166
+ project: string;
112167
+ /**
112168
+ * 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.
112169
+ */
112170
+ change: string;
112171
+ };
112172
+ query?: never;
112173
+ url: '/devops/v1/projects/{project}/changes/{change}/slices';
112174
+ };
112175
+ export type DevopsChangesSlicesCreateErrors = {
112176
+ /**
112177
+ * 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.
112178
+ */
112179
+ 400: DevopsDevOpsError;
112180
+ /**
112181
+ * The API key is missing or invalid; send a valid Praxis API key in the Authorization header before retrying.
112182
+ */
112183
+ 401: DevopsDevOpsError;
112184
+ /**
112185
+ * 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.
112186
+ */
112187
+ 403: DevopsDevOpsError;
112188
+ /**
112189
+ * 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.
112190
+ */
112191
+ 404: DevopsDevOpsError;
112192
+ /**
112193
+ * 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.
112194
+ */
112195
+ 500: DevopsDevOpsError;
112196
+ };
112197
+ export type DevopsChangesSlicesCreateError = DevopsChangesSlicesCreateErrors[keyof DevopsChangesSlicesCreateErrors];
112198
+ export type DevopsChangesSlicesCreateResponses = {
112199
+ /**
112200
+ * 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.
112201
+ */
112202
+ 200: DevopsChangeSliceOpened;
112203
+ };
112204
+ export type DevopsChangesSlicesCreateResponse = DevopsChangesSlicesCreateResponses[keyof DevopsChangesSlicesCreateResponses];
110870
112205
  export type DevopsChangesOpenPullRequestData = {
110871
112206
  body?: DevopsChangeOpenPullRequestRequest;
110872
112207
  path: {