@deepraxis/sdk 0.2.0-dev.936d133 → 0.2.0-dev.93f321b

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.
@@ -68777,94 +69088,21 @@ export type BrowserListSessionsErrors = {
68777
69088
  */
68778
69089
  402: BrowserError;
68779
69090
  /**
68780
- * PERMISSION_DENIED / ACCOUNT_SUSPENDED
69091
+ * PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
68781
69092
  */
68782
69093
  403: BrowserError;
68783
69094
  /**
68784
- * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
69095
+ * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
68785
69096
  */
68786
69097
  404: BrowserError;
68787
69098
  /**
68788
- * SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
69099
+ * SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
68789
69100
  */
68790
69101
  409: BrowserError;
68791
69102
  /**
68792
- * ACTION_RESULT_TOO_LARGE
68793
- */
68794
- 413: BrowserError;
68795
- /**
68796
- * CONCURRENCY_LIMIT / RATE_LIMITED / PROVIDER_CAPACITY
68797
- */
68798
- 429: BrowserError;
68799
- /**
68800
- * INTERNAL
68801
- */
68802
- 500: BrowserError;
68803
- /**
68804
- * NOT_IMPLEMENTED / PROVIDER_UNSUPPORTED
68805
- */
68806
- 501: BrowserError;
68807
- /**
68808
- * PROVIDER_FAILED
68809
- */
68810
- 502: BrowserError;
68811
- /**
68812
- * SERVICE_UNAVAILABLE
68813
- */
68814
- 503: BrowserError;
68815
- /**
68816
- * ACTION_TIMEOUT
68817
- */
68818
- 504: BrowserError;
68819
- };
68820
- export type BrowserListSessionsError = BrowserListSessionsErrors[keyof BrowserListSessionsErrors];
68821
- export type BrowserListSessionsResponses = {
68822
- /**
68823
- * 分页查询结果,包含本页记录和下一页游标。
69103
+ * BROWSER_REVOKED
68824
69104
  */
68825
- 200: {
68826
- /**
68827
- * 本页查询匹配的记录;没有匹配项时为空数组。
68828
- */
68829
- data: Array<BrowserSession>;
68830
- /**
68831
- * 下一页游标;原样传入 cursor,null 表示没有更多结果。
68832
- */
68833
- nextCursor: string | null;
68834
- };
68835
- };
68836
- export type BrowserListSessionsResponse = BrowserListSessionsResponses[keyof BrowserListSessionsResponses];
68837
- export type BrowserCreateSessionData = {
68838
- body: BrowserSessionCreateParams;
68839
- path?: never;
68840
- query?: never;
68841
- url: '/browser/v1/sessions';
68842
- };
68843
- export type BrowserCreateSessionErrors = {
68844
- /**
68845
- * INVALID_PARAMS / INVALID_FILTER / INVALID_PAGE_TOKEN
68846
- */
68847
- 400: BrowserError;
68848
- /**
68849
- * UNAUTHENTICATED / CONNECT_SIGNATURE_INVALID
68850
- */
68851
- 401: BrowserError;
68852
- /**
68853
- * INSUFFICIENT_BALANCE / QUOTA_EXHAUSTED
68854
- */
68855
- 402: BrowserError;
68856
- /**
68857
- * PERMISSION_DENIED / ACCOUNT_SUSPENDED
68858
- */
68859
- 403: BrowserError;
68860
- /**
68861
- * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
68862
- */
68863
- 404: BrowserError;
68864
- /**
68865
- * SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
68866
- */
68867
- 409: BrowserError;
69105
+ 410: BrowserError;
68868
69106
  /**
68869
69107
  * ACTION_RESULT_TOO_LARGE
68870
69108
  */
@@ -68886,7 +69124,88 @@ export type BrowserCreateSessionErrors = {
68886
69124
  */
68887
69125
  502: BrowserError;
68888
69126
  /**
68889
- * SERVICE_UNAVAILABLE
69127
+ * BROWSER_OFFLINE / SERVICE_UNAVAILABLE
69128
+ */
69129
+ 503: BrowserError;
69130
+ /**
69131
+ * ACTION_TIMEOUT
69132
+ */
69133
+ 504: BrowserError;
69134
+ };
69135
+ export type BrowserListSessionsError = BrowserListSessionsErrors[keyof BrowserListSessionsErrors];
69136
+ export type BrowserListSessionsResponses = {
69137
+ /**
69138
+ * 分页查询结果,包含本页记录和下一页游标。
69139
+ */
69140
+ 200: {
69141
+ /**
69142
+ * 本页查询匹配的记录;没有匹配项时为空数组。
69143
+ */
69144
+ data: Array<BrowserSession>;
69145
+ /**
69146
+ * 下一页游标;原样传入 cursor,null 表示没有更多结果。
69147
+ */
69148
+ nextCursor: string | null;
69149
+ };
69150
+ };
69151
+ export type BrowserListSessionsResponse = BrowserListSessionsResponses[keyof BrowserListSessionsResponses];
69152
+ export type BrowserCreateSessionData = {
69153
+ body: BrowserSessionCreateParams;
69154
+ path?: never;
69155
+ query?: never;
69156
+ url: '/browser/v1/sessions';
69157
+ };
69158
+ export type BrowserCreateSessionErrors = {
69159
+ /**
69160
+ * INVALID_PARAMS / INVALID_FILTER / INVALID_PAGE_TOKEN
69161
+ */
69162
+ 400: BrowserError;
69163
+ /**
69164
+ * UNAUTHENTICATED / CONNECT_SIGNATURE_INVALID
69165
+ */
69166
+ 401: BrowserError;
69167
+ /**
69168
+ * INSUFFICIENT_BALANCE / QUOTA_EXHAUSTED
69169
+ */
69170
+ 402: BrowserError;
69171
+ /**
69172
+ * PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
69173
+ */
69174
+ 403: BrowserError;
69175
+ /**
69176
+ * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
69177
+ */
69178
+ 404: BrowserError;
69179
+ /**
69180
+ * SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
69181
+ */
69182
+ 409: BrowserError;
69183
+ /**
69184
+ * BROWSER_REVOKED
69185
+ */
69186
+ 410: BrowserError;
69187
+ /**
69188
+ * ACTION_RESULT_TOO_LARGE
69189
+ */
69190
+ 413: BrowserError;
69191
+ /**
69192
+ * CONCURRENCY_LIMIT / RATE_LIMITED / PROVIDER_CAPACITY
69193
+ */
69194
+ 429: BrowserError;
69195
+ /**
69196
+ * INTERNAL
69197
+ */
69198
+ 500: BrowserError;
69199
+ /**
69200
+ * NOT_IMPLEMENTED / PROVIDER_UNSUPPORTED
69201
+ */
69202
+ 501: BrowserError;
69203
+ /**
69204
+ * PROVIDER_FAILED
69205
+ */
69206
+ 502: BrowserError;
69207
+ /**
69208
+ * BROWSER_OFFLINE / SERVICE_UNAVAILABLE
68890
69209
  */
68891
69210
  503: BrowserError;
68892
69211
  /**
@@ -68896,6 +69215,10 @@ export type BrowserCreateSessionErrors = {
68896
69215
  };
68897
69216
  export type BrowserCreateSessionError = BrowserCreateSessionErrors[keyof BrowserCreateSessionErrors];
68898
69217
  export type BrowserCreateSessionResponses = {
69218
+ /**
69219
+ * 请求成功。
69220
+ */
69221
+ 200: BrowserSessionCreateResult;
68899
69222
  /**
68900
69223
  * 请求成功。
68901
69224
  */
@@ -68932,17 +69255,21 @@ export type BrowserGetSessionErrors = {
68932
69255
  */
68933
69256
  402: BrowserError;
68934
69257
  /**
68935
- * PERMISSION_DENIED / ACCOUNT_SUSPENDED
69258
+ * PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
68936
69259
  */
68937
69260
  403: BrowserError;
68938
69261
  /**
68939
- * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
69262
+ * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
68940
69263
  */
68941
69264
  404: BrowserError;
68942
69265
  /**
68943
- * SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
69266
+ * SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
68944
69267
  */
68945
69268
  409: BrowserError;
69269
+ /**
69270
+ * BROWSER_REVOKED
69271
+ */
69272
+ 410: BrowserError;
68946
69273
  /**
68947
69274
  * ACTION_RESULT_TOO_LARGE
68948
69275
  */
@@ -68964,7 +69291,7 @@ export type BrowserGetSessionErrors = {
68964
69291
  */
68965
69292
  502: BrowserError;
68966
69293
  /**
68967
- * SERVICE_UNAVAILABLE
69294
+ * BROWSER_OFFLINE / SERVICE_UNAVAILABLE
68968
69295
  */
68969
69296
  503: BrowserError;
68970
69297
  /**
@@ -69010,17 +69337,21 @@ export type BrowserCloseSessionErrors = {
69010
69337
  */
69011
69338
  402: BrowserError;
69012
69339
  /**
69013
- * PERMISSION_DENIED / ACCOUNT_SUSPENDED
69340
+ * PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
69014
69341
  */
69015
69342
  403: BrowserError;
69016
69343
  /**
69017
- * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
69344
+ * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
69018
69345
  */
69019
69346
  404: BrowserError;
69020
69347
  /**
69021
- * SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
69348
+ * SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
69022
69349
  */
69023
69350
  409: BrowserError;
69351
+ /**
69352
+ * BROWSER_REVOKED
69353
+ */
69354
+ 410: BrowserError;
69024
69355
  /**
69025
69356
  * ACTION_RESULT_TOO_LARGE
69026
69357
  */
@@ -69042,7 +69373,7 @@ export type BrowserCloseSessionErrors = {
69042
69373
  */
69043
69374
  502: BrowserError;
69044
69375
  /**
69045
- * SERVICE_UNAVAILABLE
69376
+ * BROWSER_OFFLINE / SERVICE_UNAVAILABLE
69046
69377
  */
69047
69378
  503: BrowserError;
69048
69379
  /**
@@ -69083,17 +69414,21 @@ export type BrowserGetDebugErrors = {
69083
69414
  */
69084
69415
  402: BrowserError;
69085
69416
  /**
69086
- * PERMISSION_DENIED / ACCOUNT_SUSPENDED
69417
+ * PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
69087
69418
  */
69088
69419
  403: BrowserError;
69089
69420
  /**
69090
- * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
69421
+ * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
69091
69422
  */
69092
69423
  404: BrowserError;
69093
69424
  /**
69094
- * SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
69425
+ * SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
69095
69426
  */
69096
69427
  409: BrowserError;
69428
+ /**
69429
+ * BROWSER_REVOKED
69430
+ */
69431
+ 410: BrowserError;
69097
69432
  /**
69098
69433
  * ACTION_RESULT_TOO_LARGE
69099
69434
  */
@@ -69115,7 +69450,7 @@ export type BrowserGetDebugErrors = {
69115
69450
  */
69116
69451
  502: BrowserError;
69117
69452
  /**
69118
- * SERVICE_UNAVAILABLE
69453
+ * BROWSER_OFFLINE / SERVICE_UNAVAILABLE
69119
69454
  */
69120
69455
  503: BrowserError;
69121
69456
  /**
@@ -69169,17 +69504,21 @@ export type BrowserListEventsErrors = {
69169
69504
  */
69170
69505
  402: BrowserError;
69171
69506
  /**
69172
- * PERMISSION_DENIED / ACCOUNT_SUSPENDED
69507
+ * PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
69173
69508
  */
69174
69509
  403: BrowserError;
69175
69510
  /**
69176
- * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
69511
+ * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
69177
69512
  */
69178
69513
  404: BrowserError;
69179
69514
  /**
69180
- * SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
69515
+ * SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
69181
69516
  */
69182
69517
  409: BrowserError;
69518
+ /**
69519
+ * BROWSER_REVOKED
69520
+ */
69521
+ 410: BrowserError;
69183
69522
  /**
69184
69523
  * ACTION_RESULT_TOO_LARGE
69185
69524
  */
@@ -69201,7 +69540,7 @@ export type BrowserListEventsErrors = {
69201
69540
  */
69202
69541
  502: BrowserError;
69203
69542
  /**
69204
- * SERVICE_UNAVAILABLE
69543
+ * BROWSER_OFFLINE / SERVICE_UNAVAILABLE
69205
69544
  */
69206
69545
  503: BrowserError;
69207
69546
  /**
@@ -69448,235 +69787,21 @@ export type BrowserRunPageActionErrors = {
69448
69787
  */
69449
69788
  402: BrowserError;
69450
69789
  /**
69451
- * PERMISSION_DENIED / ACCOUNT_SUSPENDED
69790
+ * PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
69452
69791
  */
69453
69792
  403: BrowserError;
69454
69793
  /**
69455
- * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
69794
+ * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
69456
69795
  */
69457
69796
  404: BrowserError;
69458
69797
  /**
69459
- * SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
69798
+ * SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
69460
69799
  */
69461
69800
  409: BrowserError;
69462
69801
  /**
69463
- * ACTION_RESULT_TOO_LARGE
69464
- */
69465
- 413: BrowserError;
69466
- /**
69467
- * CONCURRENCY_LIMIT / RATE_LIMITED / PROVIDER_CAPACITY
69468
- */
69469
- 429: BrowserError;
69470
- /**
69471
- * INTERNAL
69472
- */
69473
- 500: BrowserError;
69474
- /**
69475
- * NOT_IMPLEMENTED / PROVIDER_UNSUPPORTED
69476
- */
69477
- 501: BrowserError;
69478
- /**
69479
- * PROVIDER_FAILED
69480
- */
69481
- 502: BrowserError;
69482
- /**
69483
- * SERVICE_UNAVAILABLE
69484
- */
69485
- 503: BrowserError;
69486
- /**
69487
- * ACTION_TIMEOUT
69488
- */
69489
- 504: BrowserError;
69490
- };
69491
- export type BrowserRunPageActionError = BrowserRunPageActionErrors[keyof BrowserRunPageActionErrors];
69492
- export type BrowserRunPageActionResponses = {
69493
- /**
69494
- * 请求成功。
69495
- */
69496
- 200: {
69497
- /**
69498
- * 这次执行的动作类型,与请求的 type 相同。
69499
- */
69500
- type: 'open' | 'click' | 'fill' | 'press' | 'scroll' | 'back' | 'forward' | 'reload';
69501
- /**
69502
- * 动作作用的标签页 ID,可在后续动作的 tab 里使用。
69503
- */
69504
- tab: string;
69505
- /**
69506
- * 动作完成后该标签页的地址。
69507
- */
69508
- url: string;
69509
- /**
69510
- * 动作完成后该标签页的标题,页面没有标题时为空字符串。
69511
- */
69512
- title: string;
69513
- } | {
69514
- /**
69515
- * 动作类型,固定为 select。
69516
- */
69517
- type: 'select';
69518
- /**
69519
- * 动作作用的标签页 ID,可在后续动作的 tab 里使用。
69520
- */
69521
- tab: string;
69522
- /**
69523
- * 这次选中的 option 的 value,按它们在下拉框中出现的顺序;单选下拉框最多一项。
69524
- */
69525
- values: Array<string>;
69526
- } | {
69527
- /**
69528
- * 动作类型,固定为 tabs.list。
69529
- */
69530
- type: 'tabs.list';
69531
- /**
69532
- * 会话里所有打开的标签页。
69533
- */
69534
- tabs: Array<{
69535
- /**
69536
- * 标签页 ID,可在动作的 tab 里使用。
69537
- */
69538
- id: string;
69539
- /**
69540
- * 标签页当前地址。
69541
- */
69542
- url: string;
69543
- /**
69544
- * 标签页当前标题。
69545
- */
69546
- title: string;
69547
- /**
69548
- * 是否为当前标签页,省略 tab 的动作作用于它。
69549
- */
69550
- active: boolean;
69551
- }>;
69552
- } | {
69553
- /**
69554
- * 动作类型,固定为 snapshot。
69555
- */
69556
- type: 'snapshot';
69557
- /**
69558
- * 动作作用的标签页 ID,可在后续动作的 tab 里使用。
69559
- */
69560
- tab: string;
69561
- /**
69562
- * 动作完成后该标签页的地址。
69563
- */
69564
- url: string;
69565
- /**
69566
- * 动作完成后该标签页的标题,页面没有标题时为空字符串。
69567
- */
69568
- title: string;
69569
- /**
69570
- * 页面的 ARIA 快照文本,每行一个元素,可操作的元素带 [ref=eN]。
69571
- */
69572
- snapshot: string;
69573
- /**
69574
- * 这份快照里分配出去的 ref 个数。
69575
- */
69576
- refs: number;
69577
- /**
69578
- * 快照超过 200000 个字符被截断时为 true。
69579
- */
69580
- truncated: boolean;
69581
- } | {
69582
- /**
69583
- * 动作类型,固定为 screenshot。
69584
- */
69585
- type: 'screenshot';
69586
- /**
69587
- * 动作作用的标签页 ID,可在后续动作的 tab 里使用。
69588
- */
69589
- tab: string;
69590
- /**
69591
- * 图片格式,固定为 image/png。
69592
- */
69593
- mediaType: 'image/png';
69594
- /**
69595
- * PNG 图片的 base64 编码;解码后最多 5 MiB。
69596
- */
69597
- data: string;
69598
- /**
69599
- * 图片 base64 解码后的字节数。
69600
- */
69601
- bytes: number;
69602
- } | {
69603
- /**
69604
- * 动作类型,固定为 evaluate。
69605
- */
69606
- type: 'evaluate';
69607
- /**
69608
- * 动作作用的标签页 ID,可在后续动作的 tab 里使用。
69609
- */
69610
- tab: string;
69611
- /**
69612
- * 表达式的结果,按 JSON 返回;序列化后最多 64000 个字符。
69613
- */
69614
- value: unknown;
69615
- } | {
69616
- /**
69617
- * 动作类型,固定为 set_cookie。
69618
- */
69619
- type: 'set_cookie';
69620
- /**
69621
- * 动作作用的标签页 ID,可在后续动作的 tab 里使用。
69622
- */
69623
- tab: string;
69624
- /**
69625
- * 已设置的 cookie 名称。
69626
- */
69627
- name: string;
69628
- /**
69629
- * 已设置的 cookie 的域。
69630
- */
69631
- domain: string;
69632
- };
69633
- };
69634
- export type BrowserRunPageActionResponse = BrowserRunPageActionResponses[keyof BrowserRunPageActionResponses];
69635
- export type BrowserRequestHandoffData = {
69636
- body: {
69637
- /**
69638
- * 交给人工操作者的接管说明,可为空字符串。
69639
- */
69640
- message: string;
69641
- /**
69642
- * 接管请求有效时长,单位为毫秒;必须大于 0,可含小数。超过 3600000(60 分钟)的按 60 分钟算,返回事件里的到期时刻就是实际值。接管未完成、未到期期间,会话不按空闲回收;接管结束后重新开始计空闲。
69643
- */
69644
- timeoutMs?: number;
69645
- };
69646
- path: {
69647
- /**
69648
- * 浏览器会话 ID;使用创建或列出会话返回的 id,以 bss_ 开头。
69649
- */
69650
- sessionId: string;
69651
- };
69652
- query?: never;
69653
- url: '/browser/v1/sessions/{sessionId}/handoff';
69654
- };
69655
- export type BrowserRequestHandoffErrors = {
69656
- /**
69657
- * INVALID_PARAMS / INVALID_FILTER / INVALID_PAGE_TOKEN
69802
+ * BROWSER_REVOKED
69658
69803
  */
69659
- 400: BrowserError;
69660
- /**
69661
- * UNAUTHENTICATED / CONNECT_SIGNATURE_INVALID
69662
- */
69663
- 401: BrowserError;
69664
- /**
69665
- * INSUFFICIENT_BALANCE / QUOTA_EXHAUSTED
69666
- */
69667
- 402: BrowserError;
69668
- /**
69669
- * PERMISSION_DENIED / ACCOUNT_SUSPENDED
69670
- */
69671
- 403: BrowserError;
69672
- /**
69673
- * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
69674
- */
69675
- 404: BrowserError;
69676
- /**
69677
- * SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
69678
- */
69679
- 409: BrowserError;
69804
+ 410: BrowserError;
69680
69805
  /**
69681
69806
  * ACTION_RESULT_TOO_LARGE
69682
69807
  */
@@ -69698,7 +69823,229 @@ export type BrowserRequestHandoffErrors = {
69698
69823
  */
69699
69824
  502: BrowserError;
69700
69825
  /**
69701
- * SERVICE_UNAVAILABLE
69826
+ * BROWSER_OFFLINE / SERVICE_UNAVAILABLE
69827
+ */
69828
+ 503: BrowserError;
69829
+ /**
69830
+ * ACTION_TIMEOUT
69831
+ */
69832
+ 504: BrowserError;
69833
+ };
69834
+ export type BrowserRunPageActionError = BrowserRunPageActionErrors[keyof BrowserRunPageActionErrors];
69835
+ export type BrowserRunPageActionResponses = {
69836
+ /**
69837
+ * 请求成功。
69838
+ */
69839
+ 200: {
69840
+ /**
69841
+ * 这次执行的动作类型,与请求的 type 相同。
69842
+ */
69843
+ type: 'open' | 'click' | 'fill' | 'press' | 'scroll' | 'back' | 'forward' | 'reload';
69844
+ /**
69845
+ * 动作作用的标签页 ID,可在后续动作的 tab 里使用。
69846
+ */
69847
+ tab: string;
69848
+ /**
69849
+ * 动作完成后该标签页的地址。
69850
+ */
69851
+ url: string;
69852
+ /**
69853
+ * 动作完成后该标签页的标题,页面没有标题时为空字符串。
69854
+ */
69855
+ title: string;
69856
+ } | {
69857
+ /**
69858
+ * 动作类型,固定为 select。
69859
+ */
69860
+ type: 'select';
69861
+ /**
69862
+ * 动作作用的标签页 ID,可在后续动作的 tab 里使用。
69863
+ */
69864
+ tab: string;
69865
+ /**
69866
+ * 这次选中的 option 的 value,按它们在下拉框中出现的顺序;单选下拉框最多一项。
69867
+ */
69868
+ values: Array<string>;
69869
+ } | {
69870
+ /**
69871
+ * 动作类型,固定为 tabs.list。
69872
+ */
69873
+ type: 'tabs.list';
69874
+ /**
69875
+ * 会话里所有打开的标签页。
69876
+ */
69877
+ tabs: Array<{
69878
+ /**
69879
+ * 标签页 ID,可在动作的 tab 里使用。
69880
+ */
69881
+ id: string;
69882
+ /**
69883
+ * 标签页当前地址。
69884
+ */
69885
+ url: string;
69886
+ /**
69887
+ * 标签页当前标题。
69888
+ */
69889
+ title: string;
69890
+ /**
69891
+ * 是否为当前标签页,省略 tab 的动作作用于它。
69892
+ */
69893
+ active: boolean;
69894
+ }>;
69895
+ } | {
69896
+ /**
69897
+ * 动作类型,固定为 snapshot。
69898
+ */
69899
+ type: 'snapshot';
69900
+ /**
69901
+ * 动作作用的标签页 ID,可在后续动作的 tab 里使用。
69902
+ */
69903
+ tab: string;
69904
+ /**
69905
+ * 动作完成后该标签页的地址。
69906
+ */
69907
+ url: string;
69908
+ /**
69909
+ * 动作完成后该标签页的标题,页面没有标题时为空字符串。
69910
+ */
69911
+ title: string;
69912
+ /**
69913
+ * 页面的 ARIA 快照文本,每行一个元素,可操作的元素带 [ref=eN]。
69914
+ */
69915
+ snapshot: string;
69916
+ /**
69917
+ * 这份快照里分配出去的 ref 个数。
69918
+ */
69919
+ refs: number;
69920
+ /**
69921
+ * 快照超过 200000 个字符被截断时为 true。
69922
+ */
69923
+ truncated: boolean;
69924
+ } | {
69925
+ /**
69926
+ * 动作类型,固定为 screenshot。
69927
+ */
69928
+ type: 'screenshot';
69929
+ /**
69930
+ * 动作作用的标签页 ID,可在后续动作的 tab 里使用。
69931
+ */
69932
+ tab: string;
69933
+ /**
69934
+ * 图片格式,固定为 image/png。
69935
+ */
69936
+ mediaType: 'image/png';
69937
+ /**
69938
+ * PNG 图片的 base64 编码;解码后最多 5 MiB。
69939
+ */
69940
+ data: string;
69941
+ /**
69942
+ * 图片 base64 解码后的字节数。
69943
+ */
69944
+ bytes: number;
69945
+ } | {
69946
+ /**
69947
+ * 动作类型,固定为 evaluate。
69948
+ */
69949
+ type: 'evaluate';
69950
+ /**
69951
+ * 动作作用的标签页 ID,可在后续动作的 tab 里使用。
69952
+ */
69953
+ tab: string;
69954
+ /**
69955
+ * 表达式的结果,按 JSON 返回;序列化后最多 64000 个字符。
69956
+ */
69957
+ value: unknown;
69958
+ } | {
69959
+ /**
69960
+ * 动作类型,固定为 set_cookie。
69961
+ */
69962
+ type: 'set_cookie';
69963
+ /**
69964
+ * 动作作用的标签页 ID,可在后续动作的 tab 里使用。
69965
+ */
69966
+ tab: string;
69967
+ /**
69968
+ * 已设置的 cookie 名称。
69969
+ */
69970
+ name: string;
69971
+ /**
69972
+ * 已设置的 cookie 的域。
69973
+ */
69974
+ domain: string;
69975
+ };
69976
+ };
69977
+ export type BrowserRunPageActionResponse = BrowserRunPageActionResponses[keyof BrowserRunPageActionResponses];
69978
+ export type BrowserRequestHandoffData = {
69979
+ body: {
69980
+ /**
69981
+ * 交给人工操作者的接管说明,可为空字符串。
69982
+ */
69983
+ message: string;
69984
+ /**
69985
+ * 接管请求有效时长,单位为毫秒;必须大于 0,可含小数。超过 3600000(60 分钟)的按 60 分钟算,返回事件里的到期时刻就是实际值。接管未完成、未到期期间,会话不按空闲回收;接管结束后重新开始计空闲。
69986
+ */
69987
+ timeoutMs?: number;
69988
+ };
69989
+ path: {
69990
+ /**
69991
+ * 浏览器会话 ID;使用创建或列出会话返回的 id,以 bss_ 开头。
69992
+ */
69993
+ sessionId: string;
69994
+ };
69995
+ query?: never;
69996
+ url: '/browser/v1/sessions/{sessionId}/handoff';
69997
+ };
69998
+ export type BrowserRequestHandoffErrors = {
69999
+ /**
70000
+ * INVALID_PARAMS / INVALID_FILTER / INVALID_PAGE_TOKEN
70001
+ */
70002
+ 400: BrowserError;
70003
+ /**
70004
+ * UNAUTHENTICATED / CONNECT_SIGNATURE_INVALID
70005
+ */
70006
+ 401: BrowserError;
70007
+ /**
70008
+ * INSUFFICIENT_BALANCE / QUOTA_EXHAUSTED
70009
+ */
70010
+ 402: BrowserError;
70011
+ /**
70012
+ * PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
70013
+ */
70014
+ 403: BrowserError;
70015
+ /**
70016
+ * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
70017
+ */
70018
+ 404: BrowserError;
70019
+ /**
70020
+ * SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
70021
+ */
70022
+ 409: BrowserError;
70023
+ /**
70024
+ * BROWSER_REVOKED
70025
+ */
70026
+ 410: BrowserError;
70027
+ /**
70028
+ * ACTION_RESULT_TOO_LARGE
70029
+ */
70030
+ 413: BrowserError;
70031
+ /**
70032
+ * CONCURRENCY_LIMIT / RATE_LIMITED / PROVIDER_CAPACITY
70033
+ */
70034
+ 429: BrowserError;
70035
+ /**
70036
+ * INTERNAL
70037
+ */
70038
+ 500: BrowserError;
70039
+ /**
70040
+ * NOT_IMPLEMENTED / PROVIDER_UNSUPPORTED
70041
+ */
70042
+ 501: BrowserError;
70043
+ /**
70044
+ * PROVIDER_FAILED
70045
+ */
70046
+ 502: BrowserError;
70047
+ /**
70048
+ * BROWSER_OFFLINE / SERVICE_UNAVAILABLE
69702
70049
  */
69703
70050
  503: BrowserError;
69704
70051
  /**
@@ -69739,17 +70086,21 @@ export type BrowserCompleteHandoffErrors = {
69739
70086
  */
69740
70087
  402: BrowserError;
69741
70088
  /**
69742
- * PERMISSION_DENIED / ACCOUNT_SUSPENDED
70089
+ * PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
69743
70090
  */
69744
70091
  403: BrowserError;
69745
70092
  /**
69746
- * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
70093
+ * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
69747
70094
  */
69748
70095
  404: BrowserError;
69749
70096
  /**
69750
- * SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
70097
+ * SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
69751
70098
  */
69752
70099
  409: BrowserError;
70100
+ /**
70101
+ * BROWSER_REVOKED
70102
+ */
70103
+ 410: BrowserError;
69753
70104
  /**
69754
70105
  * ACTION_RESULT_TOO_LARGE
69755
70106
  */
@@ -69771,7 +70122,7 @@ export type BrowserCompleteHandoffErrors = {
69771
70122
  */
69772
70123
  502: BrowserError;
69773
70124
  /**
69774
- * SERVICE_UNAVAILABLE
70125
+ * BROWSER_OFFLINE / SERVICE_UNAVAILABLE
69775
70126
  */
69776
70127
  503: BrowserError;
69777
70128
  /**
@@ -69821,17 +70172,21 @@ export type BrowserViewerHeartbeatErrors = {
69821
70172
  */
69822
70173
  402: BrowserError;
69823
70174
  /**
69824
- * PERMISSION_DENIED / ACCOUNT_SUSPENDED
70175
+ * PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
69825
70176
  */
69826
70177
  403: BrowserError;
69827
70178
  /**
69828
- * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
70179
+ * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
69829
70180
  */
69830
70181
  404: BrowserError;
69831
70182
  /**
69832
- * SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
70183
+ * SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
69833
70184
  */
69834
70185
  409: BrowserError;
70186
+ /**
70187
+ * BROWSER_REVOKED
70188
+ */
70189
+ 410: BrowserError;
69835
70190
  /**
69836
70191
  * ACTION_RESULT_TOO_LARGE
69837
70192
  */
@@ -69853,7 +70208,7 @@ export type BrowserViewerHeartbeatErrors = {
69853
70208
  */
69854
70209
  502: BrowserError;
69855
70210
  /**
69856
- * SERVICE_UNAVAILABLE
70211
+ * BROWSER_OFFLINE / SERVICE_UNAVAILABLE
69857
70212
  */
69858
70213
  503: BrowserError;
69859
70214
  /**
@@ -69899,17 +70254,602 @@ export type BrowserGetSessionFrameErrors = {
69899
70254
  */
69900
70255
  402: BrowserError;
69901
70256
  /**
69902
- * PERMISSION_DENIED / ACCOUNT_SUSPENDED
70257
+ * PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
69903
70258
  */
69904
70259
  403: BrowserError;
69905
70260
  /**
69906
- * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
70261
+ * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
69907
70262
  */
69908
70263
  404: BrowserError;
69909
70264
  /**
69910
- * SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
70265
+ * SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
69911
70266
  */
69912
70267
  409: BrowserError;
70268
+ /**
70269
+ * BROWSER_REVOKED
70270
+ */
70271
+ 410: BrowserError;
70272
+ /**
70273
+ * ACTION_RESULT_TOO_LARGE
70274
+ */
70275
+ 413: BrowserError;
70276
+ /**
70277
+ * CONCURRENCY_LIMIT / RATE_LIMITED / PROVIDER_CAPACITY
70278
+ */
70279
+ 429: BrowserError;
70280
+ /**
70281
+ * INTERNAL
70282
+ */
70283
+ 500: BrowserError;
70284
+ /**
70285
+ * NOT_IMPLEMENTED / PROVIDER_UNSUPPORTED
70286
+ */
70287
+ 501: BrowserError;
70288
+ /**
70289
+ * PROVIDER_FAILED
70290
+ */
70291
+ 502: BrowserError;
70292
+ /**
70293
+ * BROWSER_OFFLINE / SERVICE_UNAVAILABLE
70294
+ */
70295
+ 503: BrowserError;
70296
+ /**
70297
+ * ACTION_TIMEOUT
70298
+ */
70299
+ 504: BrowserError;
70300
+ };
70301
+ export type BrowserGetSessionFrameError = BrowserGetSessionFrameErrors[keyof BrowserGetSessionFrameErrors];
70302
+ export type BrowserGetSessionFrameResponses = {
70303
+ /**
70304
+ * JPEG 画面帧,最多 2 MiB。
70305
+ */
70306
+ 200: Blob | File;
70307
+ };
70308
+ export type BrowserGetSessionFrameResponse = BrowserGetSessionFrameResponses[keyof BrowserGetSessionFrameResponses];
70309
+ export type BrowserListContextsData = {
70310
+ body?: never;
70311
+ path?: never;
70312
+ query?: {
70313
+ /**
70314
+ * 按登录态名称精确匹配;名称在当前账户内唯一,所以最多返回一条。省略时列出全部登录态。
70315
+ */
70316
+ name?: string;
70317
+ /**
70318
+ * 登录态 ID;使用创建或列出登录态返回的 id,以 bsc_ 开头。
70319
+ */
70320
+ cursor?: string;
70321
+ /**
70322
+ * 每页最多返回的登录态数量;默认 25,范围 1–100。
70323
+ */
70324
+ limit?: number;
70325
+ };
70326
+ url: '/browser/v1/contexts';
70327
+ };
70328
+ export type BrowserListContextsErrors = {
70329
+ /**
70330
+ * INVALID_PARAMS / INVALID_FILTER / INVALID_PAGE_TOKEN
70331
+ */
70332
+ 400: BrowserError;
70333
+ /**
70334
+ * UNAUTHENTICATED / CONNECT_SIGNATURE_INVALID
70335
+ */
70336
+ 401: BrowserError;
70337
+ /**
70338
+ * INSUFFICIENT_BALANCE / QUOTA_EXHAUSTED
70339
+ */
70340
+ 402: BrowserError;
70341
+ /**
70342
+ * PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
70343
+ */
70344
+ 403: BrowserError;
70345
+ /**
70346
+ * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
70347
+ */
70348
+ 404: BrowserError;
70349
+ /**
70350
+ * SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
70351
+ */
70352
+ 409: BrowserError;
70353
+ /**
70354
+ * BROWSER_REVOKED
70355
+ */
70356
+ 410: BrowserError;
70357
+ /**
70358
+ * ACTION_RESULT_TOO_LARGE
70359
+ */
70360
+ 413: BrowserError;
70361
+ /**
70362
+ * CONCURRENCY_LIMIT / RATE_LIMITED / PROVIDER_CAPACITY
70363
+ */
70364
+ 429: BrowserError;
70365
+ /**
70366
+ * INTERNAL
70367
+ */
70368
+ 500: BrowserError;
70369
+ /**
70370
+ * NOT_IMPLEMENTED / PROVIDER_UNSUPPORTED
70371
+ */
70372
+ 501: BrowserError;
70373
+ /**
70374
+ * PROVIDER_FAILED
70375
+ */
70376
+ 502: BrowserError;
70377
+ /**
70378
+ * BROWSER_OFFLINE / SERVICE_UNAVAILABLE
70379
+ */
70380
+ 503: BrowserError;
70381
+ /**
70382
+ * ACTION_TIMEOUT
70383
+ */
70384
+ 504: BrowserError;
70385
+ };
70386
+ export type BrowserListContextsError = BrowserListContextsErrors[keyof BrowserListContextsErrors];
70387
+ export type BrowserListContextsResponses = {
70388
+ /**
70389
+ * 分页查询结果,包含本页记录和下一页游标。
70390
+ */
70391
+ 200: {
70392
+ /**
70393
+ * 本页查询匹配的记录;没有匹配项时为空数组。
70394
+ */
70395
+ data: Array<BrowserContext>;
70396
+ /**
70397
+ * 下一页游标;原样传入 cursor,null 表示没有更多结果。
70398
+ */
70399
+ nextCursor: string | null;
70400
+ };
70401
+ };
70402
+ export type BrowserListContextsResponse = BrowserListContextsResponses[keyof BrowserListContextsResponses];
70403
+ export type BrowserCreateContextData = {
70404
+ body: {
70405
+ /**
70406
+ * 兼容项目字段;传入值被忽略,创建结果的 projectId 固定为 default。
70407
+ */
70408
+ projectId?: string;
70409
+ /**
70410
+ * 登录态名称;非空时为 1–128 个 ASCII 字母、数字或 . _ : -,在当前账户内唯一;空字符串表示不设名称或清除名称。
70411
+ */
70412
+ name?: '' | unknown;
70413
+ /**
70414
+ * 自定义字符串标签;最多 32 项,键最多 128 个 UTF-8 字节,值最多 1024 个 UTF-8 字节。
70415
+ */
70416
+ labels?: {
70417
+ [key: string]: string;
70418
+ };
70419
+ };
70420
+ path?: never;
70421
+ query?: never;
70422
+ url: '/browser/v1/contexts';
70423
+ };
70424
+ export type BrowserCreateContextErrors = {
70425
+ /**
70426
+ * INVALID_PARAMS / INVALID_FILTER / INVALID_PAGE_TOKEN
70427
+ */
70428
+ 400: BrowserError;
70429
+ /**
70430
+ * UNAUTHENTICATED / CONNECT_SIGNATURE_INVALID
70431
+ */
70432
+ 401: BrowserError;
70433
+ /**
70434
+ * INSUFFICIENT_BALANCE / QUOTA_EXHAUSTED
70435
+ */
70436
+ 402: BrowserError;
70437
+ /**
70438
+ * PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
70439
+ */
70440
+ 403: BrowserError;
70441
+ /**
70442
+ * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
70443
+ */
70444
+ 404: BrowserError;
70445
+ /**
70446
+ * SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
70447
+ */
70448
+ 409: BrowserError;
70449
+ /**
70450
+ * BROWSER_REVOKED
70451
+ */
70452
+ 410: BrowserError;
70453
+ /**
70454
+ * ACTION_RESULT_TOO_LARGE
70455
+ */
70456
+ 413: BrowserError;
70457
+ /**
70458
+ * CONCURRENCY_LIMIT / RATE_LIMITED / PROVIDER_CAPACITY
70459
+ */
70460
+ 429: BrowserError;
70461
+ /**
70462
+ * INTERNAL
70463
+ */
70464
+ 500: BrowserError;
70465
+ /**
70466
+ * NOT_IMPLEMENTED / PROVIDER_UNSUPPORTED
70467
+ */
70468
+ 501: BrowserError;
70469
+ /**
70470
+ * PROVIDER_FAILED
70471
+ */
70472
+ 502: BrowserError;
70473
+ /**
70474
+ * BROWSER_OFFLINE / SERVICE_UNAVAILABLE
70475
+ */
70476
+ 503: BrowserError;
70477
+ /**
70478
+ * ACTION_TIMEOUT
70479
+ */
70480
+ 504: BrowserError;
70481
+ };
70482
+ export type BrowserCreateContextError = BrowserCreateContextErrors[keyof BrowserCreateContextErrors];
70483
+ export type BrowserCreateContextResponses = {
70484
+ /**
70485
+ * 请求成功。
70486
+ */
70487
+ 201: BrowserContextCreateResult;
70488
+ };
70489
+ export type BrowserCreateContextResponse = BrowserCreateContextResponses[keyof BrowserCreateContextResponses];
70490
+ export type BrowserDeleteContextData = {
70491
+ body?: never;
70492
+ path: {
70493
+ /**
70494
+ * 登录态 ID;使用创建或列出登录态返回的 id,以 bsc_ 开头。
70495
+ */
70496
+ contextId: string;
70497
+ };
70498
+ query?: never;
70499
+ url: '/browser/v1/contexts/{contextId}';
70500
+ };
70501
+ export type BrowserDeleteContextErrors = {
70502
+ /**
70503
+ * INVALID_PARAMS / INVALID_FILTER / INVALID_PAGE_TOKEN
70504
+ */
70505
+ 400: BrowserError;
70506
+ /**
70507
+ * UNAUTHENTICATED / CONNECT_SIGNATURE_INVALID
70508
+ */
70509
+ 401: BrowserError;
70510
+ /**
70511
+ * INSUFFICIENT_BALANCE / QUOTA_EXHAUSTED
70512
+ */
70513
+ 402: BrowserError;
70514
+ /**
70515
+ * PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
70516
+ */
70517
+ 403: BrowserError;
70518
+ /**
70519
+ * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
70520
+ */
70521
+ 404: BrowserError;
70522
+ /**
70523
+ * SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
70524
+ */
70525
+ 409: BrowserError;
70526
+ /**
70527
+ * BROWSER_REVOKED
70528
+ */
70529
+ 410: BrowserError;
70530
+ /**
70531
+ * ACTION_RESULT_TOO_LARGE
70532
+ */
70533
+ 413: BrowserError;
70534
+ /**
70535
+ * CONCURRENCY_LIMIT / RATE_LIMITED / PROVIDER_CAPACITY
70536
+ */
70537
+ 429: BrowserError;
70538
+ /**
70539
+ * INTERNAL
70540
+ */
70541
+ 500: BrowserError;
70542
+ /**
70543
+ * NOT_IMPLEMENTED / PROVIDER_UNSUPPORTED
70544
+ */
70545
+ 501: BrowserError;
70546
+ /**
70547
+ * PROVIDER_FAILED
70548
+ */
70549
+ 502: BrowserError;
70550
+ /**
70551
+ * BROWSER_OFFLINE / SERVICE_UNAVAILABLE
70552
+ */
70553
+ 503: BrowserError;
70554
+ /**
70555
+ * ACTION_TIMEOUT
70556
+ */
70557
+ 504: BrowserError;
70558
+ };
70559
+ export type BrowserDeleteContextError = BrowserDeleteContextErrors[keyof BrowserDeleteContextErrors];
70560
+ export type BrowserDeleteContextResponses = {
70561
+ /**
70562
+ * 请求成功。
70563
+ */
70564
+ 200: {
70565
+ /**
70566
+ * 登录态及保存内容已删除,成功时固定返回 true。
70567
+ */
70568
+ deleted: true;
70569
+ };
70570
+ };
70571
+ export type BrowserDeleteContextResponse = BrowserDeleteContextResponses[keyof BrowserDeleteContextResponses];
70572
+ export type BrowserGetContextData = {
70573
+ body?: never;
70574
+ path: {
70575
+ /**
70576
+ * 登录态 ID;使用创建或列出登录态返回的 id,以 bsc_ 开头。
70577
+ */
70578
+ contextId: string;
70579
+ };
70580
+ query?: never;
70581
+ url: '/browser/v1/contexts/{contextId}';
70582
+ };
70583
+ export type BrowserGetContextErrors = {
70584
+ /**
70585
+ * INVALID_PARAMS / INVALID_FILTER / INVALID_PAGE_TOKEN
70586
+ */
70587
+ 400: BrowserError;
70588
+ /**
70589
+ * UNAUTHENTICATED / CONNECT_SIGNATURE_INVALID
70590
+ */
70591
+ 401: BrowserError;
70592
+ /**
70593
+ * INSUFFICIENT_BALANCE / QUOTA_EXHAUSTED
70594
+ */
70595
+ 402: BrowserError;
70596
+ /**
70597
+ * PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
70598
+ */
70599
+ 403: BrowserError;
70600
+ /**
70601
+ * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
70602
+ */
70603
+ 404: BrowserError;
70604
+ /**
70605
+ * SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
70606
+ */
70607
+ 409: BrowserError;
70608
+ /**
70609
+ * BROWSER_REVOKED
70610
+ */
70611
+ 410: BrowserError;
70612
+ /**
70613
+ * ACTION_RESULT_TOO_LARGE
70614
+ */
70615
+ 413: BrowserError;
70616
+ /**
70617
+ * CONCURRENCY_LIMIT / RATE_LIMITED / PROVIDER_CAPACITY
70618
+ */
70619
+ 429: BrowserError;
70620
+ /**
70621
+ * INTERNAL
70622
+ */
70623
+ 500: BrowserError;
70624
+ /**
70625
+ * NOT_IMPLEMENTED / PROVIDER_UNSUPPORTED
70626
+ */
70627
+ 501: BrowserError;
70628
+ /**
70629
+ * PROVIDER_FAILED
70630
+ */
70631
+ 502: BrowserError;
70632
+ /**
70633
+ * BROWSER_OFFLINE / SERVICE_UNAVAILABLE
70634
+ */
70635
+ 503: BrowserError;
70636
+ /**
70637
+ * ACTION_TIMEOUT
70638
+ */
70639
+ 504: BrowserError;
70640
+ };
70641
+ export type BrowserGetContextError = BrowserGetContextErrors[keyof BrowserGetContextErrors];
70642
+ export type BrowserGetContextResponses = {
70643
+ /**
70644
+ * 请求成功。
70645
+ */
70646
+ 200: BrowserContext;
70647
+ };
70648
+ export type BrowserGetContextResponse = BrowserGetContextResponses[keyof BrowserGetContextResponses];
70649
+ export type BrowserUpdateContextData = {
70650
+ body: {
70651
+ /**
70652
+ * 登录态名称;非空时为 1–128 个 ASCII 字母、数字或 . _ : -,在当前账户内唯一;空字符串表示不设名称或清除名称。
70653
+ */
70654
+ name?: '' | unknown;
70655
+ /**
70656
+ * 自定义字符串标签;最多 32 项,键最多 128 个 UTF-8 字节,值最多 1024 个 UTF-8 字节。 更新时整体替换;空对象清除标签,省略则保留。
70657
+ */
70658
+ labels?: {
70659
+ [key: string]: string;
70660
+ };
70661
+ };
70662
+ path: {
70663
+ /**
70664
+ * 登录态 ID;使用创建或列出登录态返回的 id,以 bsc_ 开头。
70665
+ */
70666
+ contextId: string;
70667
+ };
70668
+ query?: never;
70669
+ url: '/browser/v1/contexts/{contextId}';
70670
+ };
70671
+ export type BrowserUpdateContextErrors = {
70672
+ /**
70673
+ * INVALID_PARAMS / INVALID_FILTER / INVALID_PAGE_TOKEN
70674
+ */
70675
+ 400: BrowserError;
70676
+ /**
70677
+ * UNAUTHENTICATED / CONNECT_SIGNATURE_INVALID
70678
+ */
70679
+ 401: BrowserError;
70680
+ /**
70681
+ * INSUFFICIENT_BALANCE / QUOTA_EXHAUSTED
70682
+ */
70683
+ 402: BrowserError;
70684
+ /**
70685
+ * PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
70686
+ */
70687
+ 403: BrowserError;
70688
+ /**
70689
+ * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
70690
+ */
70691
+ 404: BrowserError;
70692
+ /**
70693
+ * SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
70694
+ */
70695
+ 409: BrowserError;
70696
+ /**
70697
+ * BROWSER_REVOKED
70698
+ */
70699
+ 410: BrowserError;
70700
+ /**
70701
+ * ACTION_RESULT_TOO_LARGE
70702
+ */
70703
+ 413: BrowserError;
70704
+ /**
70705
+ * CONCURRENCY_LIMIT / RATE_LIMITED / PROVIDER_CAPACITY
70706
+ */
70707
+ 429: BrowserError;
70708
+ /**
70709
+ * INTERNAL
70710
+ */
70711
+ 500: BrowserError;
70712
+ /**
70713
+ * NOT_IMPLEMENTED / PROVIDER_UNSUPPORTED
70714
+ */
70715
+ 501: BrowserError;
70716
+ /**
70717
+ * PROVIDER_FAILED
70718
+ */
70719
+ 502: BrowserError;
70720
+ /**
70721
+ * BROWSER_OFFLINE / SERVICE_UNAVAILABLE
70722
+ */
70723
+ 503: BrowserError;
70724
+ /**
70725
+ * ACTION_TIMEOUT
70726
+ */
70727
+ 504: BrowserError;
70728
+ };
70729
+ export type BrowserUpdateContextError = BrowserUpdateContextErrors[keyof BrowserUpdateContextErrors];
70730
+ export type BrowserUpdateContextResponses = {
70731
+ /**
70732
+ * 请求成功。
70733
+ */
70734
+ 200: BrowserContext;
70735
+ };
70736
+ export type BrowserUpdateContextResponse = BrowserUpdateContextResponses[keyof BrowserUpdateContextResponses];
70737
+ export type BrowserCreateByobPairingData = {
70738
+ body?: never;
70739
+ path?: never;
70740
+ query?: never;
70741
+ url: '/browser/v1/byob/pairings';
70742
+ };
70743
+ export type BrowserCreateByobPairingErrors = {
70744
+ /**
70745
+ * INVALID_PARAMS / INVALID_FILTER / INVALID_PAGE_TOKEN
70746
+ */
70747
+ 400: BrowserError;
70748
+ /**
70749
+ * UNAUTHENTICATED / CONNECT_SIGNATURE_INVALID
70750
+ */
70751
+ 401: BrowserError;
70752
+ /**
70753
+ * INSUFFICIENT_BALANCE / QUOTA_EXHAUSTED
70754
+ */
70755
+ 402: BrowserError;
70756
+ /**
70757
+ * PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
70758
+ */
70759
+ 403: BrowserError;
70760
+ /**
70761
+ * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
70762
+ */
70763
+ 404: BrowserError;
70764
+ /**
70765
+ * SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
70766
+ */
70767
+ 409: BrowserError;
70768
+ /**
70769
+ * BROWSER_REVOKED
70770
+ */
70771
+ 410: BrowserError;
70772
+ /**
70773
+ * ACTION_RESULT_TOO_LARGE
70774
+ */
70775
+ 413: BrowserError;
70776
+ /**
70777
+ * CONCURRENCY_LIMIT / RATE_LIMITED / PROVIDER_CAPACITY
70778
+ */
70779
+ 429: BrowserError;
70780
+ /**
70781
+ * INTERNAL
70782
+ */
70783
+ 500: BrowserError;
70784
+ /**
70785
+ * NOT_IMPLEMENTED / PROVIDER_UNSUPPORTED
70786
+ */
70787
+ 501: BrowserError;
70788
+ /**
70789
+ * PROVIDER_FAILED
70790
+ */
70791
+ 502: BrowserError;
70792
+ /**
70793
+ * BROWSER_OFFLINE / SERVICE_UNAVAILABLE
70794
+ */
70795
+ 503: BrowserError;
70796
+ /**
70797
+ * ACTION_TIMEOUT
70798
+ */
70799
+ 504: BrowserError;
70800
+ };
70801
+ export type BrowserCreateByobPairingError = BrowserCreateByobPairingErrors[keyof BrowserCreateByobPairingErrors];
70802
+ export type BrowserCreateByobPairingResponses = {
70803
+ /**
70804
+ * 请求成功。
70805
+ */
70806
+ 201: BrowserByobPairing;
70807
+ };
70808
+ export type BrowserCreateByobPairingResponse = BrowserCreateByobPairingResponses[keyof BrowserCreateByobPairingResponses];
70809
+ export type BrowserListByobBrowsersData = {
70810
+ body?: never;
70811
+ path?: never;
70812
+ query?: {
70813
+ /**
70814
+ * 上一页返回的 nextCursor,原样传入;省略时读取第一页。
70815
+ */
70816
+ cursor?: string;
70817
+ /**
70818
+ * 每页最多返回的浏览器数量;默认 50,范围 1–100。
70819
+ */
70820
+ limit?: number;
70821
+ };
70822
+ url: '/browser/v1/byob/browsers';
70823
+ };
70824
+ export type BrowserListByobBrowsersErrors = {
70825
+ /**
70826
+ * INVALID_PARAMS / INVALID_FILTER / INVALID_PAGE_TOKEN
70827
+ */
70828
+ 400: BrowserError;
70829
+ /**
70830
+ * UNAUTHENTICATED / CONNECT_SIGNATURE_INVALID
70831
+ */
70832
+ 401: BrowserError;
70833
+ /**
70834
+ * INSUFFICIENT_BALANCE / QUOTA_EXHAUSTED
70835
+ */
70836
+ 402: BrowserError;
70837
+ /**
70838
+ * PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
70839
+ */
70840
+ 403: BrowserError;
70841
+ /**
70842
+ * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
70843
+ */
70844
+ 404: BrowserError;
70845
+ /**
70846
+ * SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
70847
+ */
70848
+ 409: BrowserError;
70849
+ /**
70850
+ * BROWSER_REVOKED
70851
+ */
70852
+ 410: BrowserError;
69913
70853
  /**
69914
70854
  * ACTION_RESULT_TOO_LARGE
69915
70855
  */
@@ -69931,7 +70871,7 @@ export type BrowserGetSessionFrameErrors = {
69931
70871
  */
69932
70872
  502: BrowserError;
69933
70873
  /**
69934
- * SERVICE_UNAVAILABLE
70874
+ * BROWSER_OFFLINE / SERVICE_UNAVAILABLE
69935
70875
  */
69936
70876
  503: BrowserError;
69937
70877
  /**
@@ -69939,34 +70879,35 @@ export type BrowserGetSessionFrameErrors = {
69939
70879
  */
69940
70880
  504: BrowserError;
69941
70881
  };
69942
- export type BrowserGetSessionFrameError = BrowserGetSessionFrameErrors[keyof BrowserGetSessionFrameErrors];
69943
- export type BrowserGetSessionFrameResponses = {
70882
+ export type BrowserListByobBrowsersError = BrowserListByobBrowsersErrors[keyof BrowserListByobBrowsersErrors];
70883
+ export type BrowserListByobBrowsersResponses = {
69944
70884
  /**
69945
- * JPEG 画面帧,最多 2 MiB。
70885
+ * 分页列出的自带浏览器,按 ID 升序。
69946
70886
  */
69947
- 200: Blob | File;
69948
- };
69949
- export type BrowserGetSessionFrameResponse = BrowserGetSessionFrameResponses[keyof BrowserGetSessionFrameResponses];
69950
- export type BrowserListContextsData = {
69951
- body?: never;
69952
- path?: never;
69953
- query?: {
70887
+ 200: {
69954
70888
  /**
69955
- * 按登录态名称精确匹配;名称在当前账户内唯一,所以最多返回一条。省略时列出全部登录态。
70889
+ * 本页的自带浏览器;已断开的不在列表里。
69956
70890
  */
69957
- name?: string;
70891
+ data: Array<BrowserByobBrowser>;
69958
70892
  /**
69959
- * 登录态 ID;使用创建或列出登录态返回的 id,以 bsc_ 开头。
70893
+ * 下一页游标;原样传入 cursor,null 表示没有更多结果。
69960
70894
  */
69961
- cursor?: string;
70895
+ nextCursor: string | null;
70896
+ };
70897
+ };
70898
+ export type BrowserListByobBrowsersResponse = BrowserListByobBrowsersResponses[keyof BrowserListByobBrowsersResponses];
70899
+ export type BrowserGetByobBrowserData = {
70900
+ body?: never;
70901
+ path: {
69962
70902
  /**
69963
- * 每页最多返回的登录态数量;默认 25,范围 1–100。
70903
+ * 自带浏览器 ID,以 byb_ 开头;使用配对认领或列出自带浏览器返回的 id。
69964
70904
  */
69965
- limit?: number;
70905
+ browser_id: string;
69966
70906
  };
69967
- url: '/browser/v1/contexts';
70907
+ query?: never;
70908
+ url: '/browser/v1/byob/browsers/{browser_id}';
69968
70909
  };
69969
- export type BrowserListContextsErrors = {
70910
+ export type BrowserGetByobBrowserErrors = {
69970
70911
  /**
69971
70912
  * INVALID_PARAMS / INVALID_FILTER / INVALID_PAGE_TOKEN
69972
70913
  */
@@ -69980,17 +70921,21 @@ export type BrowserListContextsErrors = {
69980
70921
  */
69981
70922
  402: BrowserError;
69982
70923
  /**
69983
- * PERMISSION_DENIED / ACCOUNT_SUSPENDED
70924
+ * PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
69984
70925
  */
69985
70926
  403: BrowserError;
69986
70927
  /**
69987
- * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
70928
+ * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
69988
70929
  */
69989
70930
  404: BrowserError;
69990
70931
  /**
69991
- * SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
70932
+ * SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
69992
70933
  */
69993
70934
  409: BrowserError;
70935
+ /**
70936
+ * BROWSER_REVOKED
70937
+ */
70938
+ 410: BrowserError;
69994
70939
  /**
69995
70940
  * ACTION_RESULT_TOO_LARGE
69996
70941
  */
@@ -70012,7 +70957,7 @@ export type BrowserListContextsErrors = {
70012
70957
  */
70013
70958
  502: BrowserError;
70014
70959
  /**
70015
- * SERVICE_UNAVAILABLE
70960
+ * BROWSER_OFFLINE / SERVICE_UNAVAILABLE
70016
70961
  */
70017
70962
  503: BrowserError;
70018
70963
  /**
@@ -70020,45 +70965,39 @@ export type BrowserListContextsErrors = {
70020
70965
  */
70021
70966
  504: BrowserError;
70022
70967
  };
70023
- export type BrowserListContextsError = BrowserListContextsErrors[keyof BrowserListContextsErrors];
70024
- export type BrowserListContextsResponses = {
70968
+ export type BrowserGetByobBrowserError = BrowserGetByobBrowserErrors[keyof BrowserGetByobBrowserErrors];
70969
+ export type BrowserGetByobBrowserResponses = {
70025
70970
  /**
70026
- * 分页查询结果,包含本页记录和下一页游标。
70971
+ * 请求成功。
70027
70972
  */
70028
- 200: {
70029
- /**
70030
- * 本页查询匹配的记录;没有匹配项时为空数组。
70031
- */
70032
- data: Array<BrowserContext>;
70033
- /**
70034
- * 下一页游标;原样传入 cursor,null 表示没有更多结果。
70035
- */
70036
- nextCursor: string | null;
70037
- };
70973
+ 200: BrowserByobBrowser;
70038
70974
  };
70039
- export type BrowserListContextsResponse = BrowserListContextsResponses[keyof BrowserListContextsResponses];
70040
- export type BrowserCreateContextData = {
70975
+ export type BrowserGetByobBrowserResponse = BrowserGetByobBrowserResponses[keyof BrowserGetByobBrowserResponses];
70976
+ export type BrowserUpdateByobBrowserData = {
70041
70977
  body: {
70042
70978
  /**
70043
- * 兼容项目字段;传入值被忽略,创建结果的 projectId 固定为 default。
70979
+ * 新的显示名称,1–80 个字符。
70044
70980
  */
70045
- projectId?: string;
70981
+ name?: string;
70046
70982
  /**
70047
- * 登录态名称;非空时为 1–128 个 ASCII 字母、数字或 . _ : -,在当前账户内唯一;空字符串表示不设名称或清除名称。
70983
+ * 整体替换被授权的智能体 ID 列表;传空数组撤销全部授权。
70048
70984
  */
70049
- name?: '' | unknown;
70985
+ granted_agents?: Array<string>;
70050
70986
  /**
70051
- * 自定义字符串标签;最多 32 项,键最多 128 个 UTF-8 字节,值最多 1024 个 UTF-8 字节。
70987
+ * 整体替换允许站点列表;传空数组表示不限制。
70052
70988
  */
70053
- labels?: {
70054
- [key: string]: string;
70055
- };
70989
+ allowed_sites?: Array<string>;
70990
+ };
70991
+ path: {
70992
+ /**
70993
+ * 自带浏览器 ID,以 byb_ 开头;使用配对认领或列出自带浏览器返回的 id。
70994
+ */
70995
+ browser_id: string;
70056
70996
  };
70057
- path?: never;
70058
70997
  query?: never;
70059
- url: '/browser/v1/contexts';
70998
+ url: '/browser/v1/byob/browsers/{browser_id}';
70060
70999
  };
70061
- export type BrowserCreateContextErrors = {
71000
+ export type BrowserUpdateByobBrowserErrors = {
70062
71001
  /**
70063
71002
  * INVALID_PARAMS / INVALID_FILTER / INVALID_PAGE_TOKEN
70064
71003
  */
@@ -70072,17 +71011,21 @@ export type BrowserCreateContextErrors = {
70072
71011
  */
70073
71012
  402: BrowserError;
70074
71013
  /**
70075
- * PERMISSION_DENIED / ACCOUNT_SUSPENDED
71014
+ * PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
70076
71015
  */
70077
71016
  403: BrowserError;
70078
71017
  /**
70079
- * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
71018
+ * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
70080
71019
  */
70081
71020
  404: BrowserError;
70082
71021
  /**
70083
- * SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
71022
+ * SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
70084
71023
  */
70085
71024
  409: BrowserError;
71025
+ /**
71026
+ * BROWSER_REVOKED
71027
+ */
71028
+ 410: BrowserError;
70086
71029
  /**
70087
71030
  * ACTION_RESULT_TOO_LARGE
70088
71031
  */
@@ -70104,7 +71047,7 @@ export type BrowserCreateContextErrors = {
70104
71047
  */
70105
71048
  502: BrowserError;
70106
71049
  /**
70107
- * SERVICE_UNAVAILABLE
71050
+ * BROWSER_OFFLINE / SERVICE_UNAVAILABLE
70108
71051
  */
70109
71052
  503: BrowserError;
70110
71053
  /**
@@ -70112,26 +71055,26 @@ export type BrowserCreateContextErrors = {
70112
71055
  */
70113
71056
  504: BrowserError;
70114
71057
  };
70115
- export type BrowserCreateContextError = BrowserCreateContextErrors[keyof BrowserCreateContextErrors];
70116
- export type BrowserCreateContextResponses = {
71058
+ export type BrowserUpdateByobBrowserError = BrowserUpdateByobBrowserErrors[keyof BrowserUpdateByobBrowserErrors];
71059
+ export type BrowserUpdateByobBrowserResponses = {
70117
71060
  /**
70118
71061
  * 请求成功。
70119
71062
  */
70120
- 201: BrowserContextCreateResult;
71063
+ 200: BrowserByobBrowser;
70121
71064
  };
70122
- export type BrowserCreateContextResponse = BrowserCreateContextResponses[keyof BrowserCreateContextResponses];
70123
- export type BrowserDeleteContextData = {
71065
+ export type BrowserUpdateByobBrowserResponse = BrowserUpdateByobBrowserResponses[keyof BrowserUpdateByobBrowserResponses];
71066
+ export type BrowserDisconnectByobBrowserData = {
70124
71067
  body?: never;
70125
71068
  path: {
70126
71069
  /**
70127
- * 登录态 ID;使用创建或列出登录态返回的 id,以 bsc_ 开头。
71070
+ * 自带浏览器 ID,以 byb_ 开头;使用配对认领或列出自带浏览器返回的 id。
70128
71071
  */
70129
- contextId: string;
71072
+ browser_id: string;
70130
71073
  };
70131
71074
  query?: never;
70132
- url: '/browser/v1/contexts/{contextId}';
71075
+ url: '/browser/v1/byob/browsers/{browser_id}/disconnect';
70133
71076
  };
70134
- export type BrowserDeleteContextErrors = {
71077
+ export type BrowserDisconnectByobBrowserErrors = {
70135
71078
  /**
70136
71079
  * INVALID_PARAMS / INVALID_FILTER / INVALID_PAGE_TOKEN
70137
71080
  */
@@ -70145,17 +71088,21 @@ export type BrowserDeleteContextErrors = {
70145
71088
  */
70146
71089
  402: BrowserError;
70147
71090
  /**
70148
- * PERMISSION_DENIED / ACCOUNT_SUSPENDED
71091
+ * PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
70149
71092
  */
70150
71093
  403: BrowserError;
70151
71094
  /**
70152
- * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
71095
+ * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
70153
71096
  */
70154
71097
  404: BrowserError;
70155
71098
  /**
70156
- * SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
71099
+ * SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
70157
71100
  */
70158
71101
  409: BrowserError;
71102
+ /**
71103
+ * BROWSER_REVOKED
71104
+ */
71105
+ 410: BrowserError;
70159
71106
  /**
70160
71107
  * ACTION_RESULT_TOO_LARGE
70161
71108
  */
@@ -70177,7 +71124,7 @@ export type BrowserDeleteContextErrors = {
70177
71124
  */
70178
71125
  502: BrowserError;
70179
71126
  /**
70180
- * SERVICE_UNAVAILABLE
71127
+ * BROWSER_OFFLINE / SERVICE_UNAVAILABLE
70181
71128
  */
70182
71129
  503: BrowserError;
70183
71130
  /**
@@ -70185,31 +71132,26 @@ export type BrowserDeleteContextErrors = {
70185
71132
  */
70186
71133
  504: BrowserError;
70187
71134
  };
70188
- export type BrowserDeleteContextError = BrowserDeleteContextErrors[keyof BrowserDeleteContextErrors];
70189
- export type BrowserDeleteContextResponses = {
71135
+ export type BrowserDisconnectByobBrowserError = BrowserDisconnectByobBrowserErrors[keyof BrowserDisconnectByobBrowserErrors];
71136
+ export type BrowserDisconnectByobBrowserResponses = {
70190
71137
  /**
70191
71138
  * 请求成功。
70192
71139
  */
70193
- 200: {
70194
- /**
70195
- * 登录态及保存内容已删除,成功时固定返回 true。
70196
- */
70197
- deleted: true;
70198
- };
71140
+ 200: BrowserByobBrowser;
70199
71141
  };
70200
- export type BrowserDeleteContextResponse = BrowserDeleteContextResponses[keyof BrowserDeleteContextResponses];
70201
- export type BrowserGetContextData = {
71142
+ export type BrowserDisconnectByobBrowserResponse = BrowserDisconnectByobBrowserResponses[keyof BrowserDisconnectByobBrowserResponses];
71143
+ export type BrowserReadByobPairingData = {
70202
71144
  body?: never;
70203
71145
  path: {
70204
71146
  /**
70205
- * 登录态 ID;使用创建或列出登录态返回的 id,以 bsc_ 开头。
71147
+ * 8 位配对码,来自创建配对码的结果。
70206
71148
  */
70207
- contextId: string;
71149
+ code: string;
70208
71150
  };
70209
71151
  query?: never;
70210
- url: '/browser/v1/contexts/{contextId}';
71152
+ url: '/browser/v1/byob/pairings/{code}';
70211
71153
  };
70212
- export type BrowserGetContextErrors = {
71154
+ export type BrowserReadByobPairingErrors = {
70213
71155
  /**
70214
71156
  * INVALID_PARAMS / INVALID_FILTER / INVALID_PAGE_TOKEN
70215
71157
  */
@@ -70223,17 +71165,21 @@ export type BrowserGetContextErrors = {
70223
71165
  */
70224
71166
  402: BrowserError;
70225
71167
  /**
70226
- * PERMISSION_DENIED / ACCOUNT_SUSPENDED
71168
+ * PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
70227
71169
  */
70228
71170
  403: BrowserError;
70229
71171
  /**
70230
- * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
71172
+ * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
70231
71173
  */
70232
71174
  404: BrowserError;
70233
71175
  /**
70234
- * SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
71176
+ * SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
70235
71177
  */
70236
71178
  409: BrowserError;
71179
+ /**
71180
+ * BROWSER_REVOKED
71181
+ */
71182
+ 410: BrowserError;
70237
71183
  /**
70238
71184
  * ACTION_RESULT_TOO_LARGE
70239
71185
  */
@@ -70255,7 +71201,7 @@ export type BrowserGetContextErrors = {
70255
71201
  */
70256
71202
  502: BrowserError;
70257
71203
  /**
70258
- * SERVICE_UNAVAILABLE
71204
+ * BROWSER_OFFLINE / SERVICE_UNAVAILABLE
70259
71205
  */
70260
71206
  503: BrowserError;
70261
71207
  /**
@@ -70263,37 +71209,26 @@ export type BrowserGetContextErrors = {
70263
71209
  */
70264
71210
  504: BrowserError;
70265
71211
  };
70266
- export type BrowserGetContextError = BrowserGetContextErrors[keyof BrowserGetContextErrors];
70267
- export type BrowserGetContextResponses = {
71212
+ export type BrowserReadByobPairingError = BrowserReadByobPairingErrors[keyof BrowserReadByobPairingErrors];
71213
+ export type BrowserReadByobPairingResponses = {
70268
71214
  /**
70269
71215
  * 请求成功。
70270
71216
  */
70271
- 200: BrowserContext;
71217
+ 200: BrowserByobPairingView;
70272
71218
  };
70273
- export type BrowserGetContextResponse = BrowserGetContextResponses[keyof BrowserGetContextResponses];
70274
- export type BrowserUpdateContextData = {
70275
- body: {
70276
- /**
70277
- * 登录态名称;非空时为 1–128 个 ASCII 字母、数字或 . _ : -,在当前账户内唯一;空字符串表示不设名称或清除名称。
70278
- */
70279
- name?: '' | unknown;
70280
- /**
70281
- * 自定义字符串标签;最多 32 项,键最多 128 个 UTF-8 字节,值最多 1024 个 UTF-8 字节。 更新时整体替换;空对象清除标签,省略则保留。
70282
- */
70283
- labels?: {
70284
- [key: string]: string;
70285
- };
70286
- };
71219
+ export type BrowserReadByobPairingResponse = BrowserReadByobPairingResponses[keyof BrowserReadByobPairingResponses];
71220
+ export type BrowserClaimByobPairingData = {
71221
+ body: BrowserByobClaim;
70287
71222
  path: {
70288
71223
  /**
70289
- * 登录态 ID;使用创建或列出登录态返回的 id,以 bsc_ 开头。
71224
+ * 8 位配对码,来自创建配对码的结果。
70290
71225
  */
70291
- contextId: string;
71226
+ code: string;
70292
71227
  };
70293
71228
  query?: never;
70294
- url: '/browser/v1/contexts/{contextId}';
71229
+ url: '/browser/v1/byob/pairings/{code}/claim';
70295
71230
  };
70296
- export type BrowserUpdateContextErrors = {
71231
+ export type BrowserClaimByobPairingErrors = {
70297
71232
  /**
70298
71233
  * INVALID_PARAMS / INVALID_FILTER / INVALID_PAGE_TOKEN
70299
71234
  */
@@ -70307,17 +71242,21 @@ export type BrowserUpdateContextErrors = {
70307
71242
  */
70308
71243
  402: BrowserError;
70309
71244
  /**
70310
- * PERMISSION_DENIED / ACCOUNT_SUSPENDED
71245
+ * PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
70311
71246
  */
70312
71247
  403: BrowserError;
70313
71248
  /**
70314
- * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
71249
+ * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
70315
71250
  */
70316
71251
  404: BrowserError;
70317
71252
  /**
70318
- * SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
71253
+ * SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
70319
71254
  */
70320
71255
  409: BrowserError;
71256
+ /**
71257
+ * BROWSER_REVOKED
71258
+ */
71259
+ 410: BrowserError;
70321
71260
  /**
70322
71261
  * ACTION_RESULT_TOO_LARGE
70323
71262
  */
@@ -70339,7 +71278,7 @@ export type BrowserUpdateContextErrors = {
70339
71278
  */
70340
71279
  502: BrowserError;
70341
71280
  /**
70342
- * SERVICE_UNAVAILABLE
71281
+ * BROWSER_OFFLINE / SERVICE_UNAVAILABLE
70343
71282
  */
70344
71283
  503: BrowserError;
70345
71284
  /**
@@ -70347,14 +71286,14 @@ export type BrowserUpdateContextErrors = {
70347
71286
  */
70348
71287
  504: BrowserError;
70349
71288
  };
70350
- export type BrowserUpdateContextError = BrowserUpdateContextErrors[keyof BrowserUpdateContextErrors];
70351
- export type BrowserUpdateContextResponses = {
71289
+ export type BrowserClaimByobPairingError = BrowserClaimByobPairingErrors[keyof BrowserClaimByobPairingErrors];
71290
+ export type BrowserClaimByobPairingResponses = {
70352
71291
  /**
70353
- * 请求成功。
71292
+ * 认领成功。
70354
71293
  */
70355
- 200: BrowserContext;
71294
+ 201: BrowserByobClaimResult;
70356
71295
  };
70357
- export type BrowserUpdateContextResponse = BrowserUpdateContextResponses[keyof BrowserUpdateContextResponses];
71296
+ export type BrowserClaimByobPairingResponse = BrowserClaimByobPairingResponses[keyof BrowserClaimByobPairingResponses];
70358
71297
  export type BrowserConnectData = {
70359
71298
  body?: never;
70360
71299
  path?: never;
@@ -70412,17 +71351,21 @@ export type BrowserConnectErrors = {
70412
71351
  */
70413
71352
  402: BrowserError;
70414
71353
  /**
70415
- * PERMISSION_DENIED / ACCOUNT_SUSPENDED
71354
+ * PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
70416
71355
  */
70417
71356
  403: BrowserError;
70418
71357
  /**
70419
- * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
71358
+ * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
70420
71359
  */
70421
71360
  404: BrowserError;
70422
71361
  /**
70423
- * SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
71362
+ * SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
70424
71363
  */
70425
71364
  409: BrowserError;
71365
+ /**
71366
+ * BROWSER_REVOKED
71367
+ */
71368
+ 410: BrowserError;
70426
71369
  /**
70427
71370
  * ACTION_RESULT_TOO_LARGE
70428
71371
  */
@@ -70444,7 +71387,7 @@ export type BrowserConnectErrors = {
70444
71387
  */
70445
71388
  502: BrowserError;
70446
71389
  /**
70447
- * SERVICE_UNAVAILABLE
71390
+ * BROWSER_OFFLINE / SERVICE_UNAVAILABLE
70448
71391
  */
70449
71392
  503: BrowserError;
70450
71393
  /**
@@ -70487,17 +71430,21 @@ export type BrowserLiveViewErrors = {
70487
71430
  */
70488
71431
  402: BrowserError;
70489
71432
  /**
70490
- * PERMISSION_DENIED / ACCOUNT_SUSPENDED
71433
+ * PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
70491
71434
  */
70492
71435
  403: BrowserError;
70493
71436
  /**
70494
- * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
71437
+ * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
70495
71438
  */
70496
71439
  404: BrowserError;
70497
71440
  /**
70498
- * SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
71441
+ * SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
70499
71442
  */
70500
71443
  409: BrowserError;
71444
+ /**
71445
+ * BROWSER_REVOKED
71446
+ */
71447
+ 410: BrowserError;
70501
71448
  /**
70502
71449
  * ACTION_RESULT_TOO_LARGE
70503
71450
  */
@@ -70519,7 +71466,7 @@ export type BrowserLiveViewErrors = {
70519
71466
  */
70520
71467
  502: BrowserError;
70521
71468
  /**
70522
- * SERVICE_UNAVAILABLE
71469
+ * BROWSER_OFFLINE / SERVICE_UNAVAILABLE
70523
71470
  */
70524
71471
  503: BrowserError;
70525
71472
  /**
@@ -70553,17 +71500,21 @@ export type BrowserStreamSessionErrors = {
70553
71500
  */
70554
71501
  402: BrowserError;
70555
71502
  /**
70556
- * PERMISSION_DENIED / ACCOUNT_SUSPENDED
71503
+ * PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
70557
71504
  */
70558
71505
  403: BrowserError;
70559
71506
  /**
70560
- * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
71507
+ * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
70561
71508
  */
70562
71509
  404: BrowserError;
70563
71510
  /**
70564
- * SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
71511
+ * SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
70565
71512
  */
70566
71513
  409: BrowserError;
71514
+ /**
71515
+ * BROWSER_REVOKED
71516
+ */
71517
+ 410: BrowserError;
70567
71518
  /**
70568
71519
  * ACTION_RESULT_TOO_LARGE
70569
71520
  */
@@ -70585,7 +71536,7 @@ export type BrowserStreamSessionErrors = {
70585
71536
  */
70586
71537
  502: BrowserError;
70587
71538
  /**
70588
- * SERVICE_UNAVAILABLE
71539
+ * BROWSER_OFFLINE / SERVICE_UNAVAILABLE
70589
71540
  */
70590
71541
  503: BrowserError;
70591
71542
  /**
@@ -70626,17 +71577,21 @@ export type BrowserStreamSessionFramesErrors = {
70626
71577
  */
70627
71578
  402: BrowserError;
70628
71579
  /**
70629
- * PERMISSION_DENIED / ACCOUNT_SUSPENDED
71580
+ * PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
70630
71581
  */
70631
71582
  403: BrowserError;
70632
71583
  /**
70633
- * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
71584
+ * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
70634
71585
  */
70635
71586
  404: BrowserError;
70636
71587
  /**
70637
- * SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
71588
+ * SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
70638
71589
  */
70639
71590
  409: BrowserError;
71591
+ /**
71592
+ * BROWSER_REVOKED
71593
+ */
71594
+ 410: BrowserError;
70640
71595
  /**
70641
71596
  * ACTION_RESULT_TOO_LARGE
70642
71597
  */
@@ -70658,7 +71613,7 @@ export type BrowserStreamSessionFramesErrors = {
70658
71613
  */
70659
71614
  502: BrowserError;
70660
71615
  /**
70661
- * SERVICE_UNAVAILABLE
71616
+ * BROWSER_OFFLINE / SERVICE_UNAVAILABLE
70662
71617
  */
70663
71618
  503: BrowserError;
70664
71619
  /**
@@ -71054,7 +72009,7 @@ export type FileCreateSignedUploadErrors = {
71054
72009
  */
71055
72010
  401: unknown;
71056
72011
  /**
71057
- * PERMISSION_DENIED or BINDING_READ_ONLY: use a credential with the required create or file-write authority.
72012
+ * 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
72013
  */
71059
72014
  403: unknown;
71060
72015
  };
@@ -77963,10 +78918,18 @@ export type GetOrganizationNotificationsInboxData = {
77963
78918
  url: '/organization/v1/notifications/inbox';
77964
78919
  };
77965
78920
  export type GetOrganizationNotificationsInboxErrors = {
78921
+ /**
78922
+ * `INVALID_PARAMS` from the service for a read it cannot answer (RFC 9457 problem).
78923
+ */
78924
+ 400: unknown;
77966
78925
  /**
77967
78926
  * Missing or invalid credential (RFC 9457 problem).
77968
78927
  */
77969
78928
  401: unknown;
78929
+ /**
78930
+ * 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.
78931
+ */
78932
+ 502: unknown;
77970
78933
  };
77971
78934
  export type GetOrganizationNotificationsInboxResponses = {
77972
78935
  /**
@@ -78009,13 +78972,17 @@ export type ListOrganizationNotificationLettersData = {
78009
78972
  };
78010
78973
  export type ListOrganizationNotificationLettersErrors = {
78011
78974
  /**
78012
- * Invalid status, archived or limit (RFC 9457 problem).
78975
+ * A bad `status`, `archived` or `limit`, or `INVALID_PARAMS` from the service for a cursor it did not issue (RFC 9457 problem).
78013
78976
  */
78014
78977
  400: unknown;
78015
78978
  /**
78016
78979
  * Missing or invalid credential (RFC 9457 problem).
78017
78980
  */
78018
78981
  401: unknown;
78982
+ /**
78983
+ * 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.
78984
+ */
78985
+ 502: unknown;
78019
78986
  };
78020
78987
  export type ListOrganizationNotificationLettersResponses = {
78021
78988
  /**
@@ -78118,7 +79085,7 @@ export type GetOrganizationNotificationLetterData = {
78118
79085
  };
78119
79086
  export type GetOrganizationNotificationLetterErrors = {
78120
79087
  /**
78121
- * The id is not a letter id (RFC 9457 problem).
79088
+ * The id is not a letter id — `INVALID_PARAMS` from the service (RFC 9457 problem).
78122
79089
  */
78123
79090
  400: unknown;
78124
79091
  /**
@@ -78126,9 +79093,13 @@ export type GetOrganizationNotificationLetterErrors = {
78126
79093
  */
78127
79094
  401: unknown;
78128
79095
  /**
78129
- * No such letter in your mailbox (RFC 9457 problem).
79096
+ * No such letter in your mailbox in this organization — `MESSAGE_NOT_FOUND`, the same answer for a letter that is not yours, is still scheduled, or never existed (RFC 9457 problem).
78130
79097
  */
78131
79098
  404: unknown;
79099
+ /**
79100
+ * 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.
79101
+ */
79102
+ 502: unknown;
78132
79103
  };
78133
79104
  export type GetOrganizationNotificationLetterResponses = {
78134
79105
  /**
@@ -78218,7 +79189,7 @@ export type ReadOrganizationNotificationLetterData = {
78218
79189
  };
78219
79190
  export type ReadOrganizationNotificationLetterErrors = {
78220
79191
  /**
78221
- * The id is not a letter id (RFC 9457 problem).
79192
+ * The id is not a letter id — `INVALID_PARAMS` from the service (RFC 9457 problem).
78222
79193
  */
78223
79194
  400: unknown;
78224
79195
  /**
@@ -78226,9 +79197,13 @@ export type ReadOrganizationNotificationLetterErrors = {
78226
79197
  */
78227
79198
  401: unknown;
78228
79199
  /**
78229
- * No such letter in your mailbox (RFC 9457 problem).
79200
+ * No such letter in your mailbox in this organization — `MESSAGE_NOT_FOUND` (RFC 9457 problem).
78230
79201
  */
78231
79202
  404: unknown;
79203
+ /**
79204
+ * 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.
79205
+ */
79206
+ 502: unknown;
78232
79207
  };
78233
79208
  export type ReadOrganizationNotificationLetterResponses = {
78234
79209
  /**
@@ -78255,13 +79230,17 @@ export type ReadAllOrganizationNotificationLettersData = {
78255
79230
  };
78256
79231
  export type ReadAllOrganizationNotificationLettersErrors = {
78257
79232
  /**
78258
- * The body is not a JSON object, or kind is unknown (RFC 9457 problem).
79233
+ * The body is not a JSON object, `kind` is unknown, or `INVALID_PARAMS` from the service (RFC 9457 problem).
78259
79234
  */
78260
79235
  400: unknown;
78261
79236
  /**
78262
79237
  * Missing or invalid credential (RFC 9457 problem).
78263
79238
  */
78264
79239
  401: unknown;
79240
+ /**
79241
+ * 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.
79242
+ */
79243
+ 502: unknown;
78265
79244
  };
78266
79245
  export type ReadAllOrganizationNotificationLettersResponses = {
78267
79246
  /**
@@ -78288,7 +79267,7 @@ export type ArchiveOrganizationNotificationLetterData = {
78288
79267
  };
78289
79268
  export type ArchiveOrganizationNotificationLetterErrors = {
78290
79269
  /**
78291
- * The id is not a letter id (RFC 9457 problem).
79270
+ * The id is not a letter id — `INVALID_PARAMS` from the service (RFC 9457 problem).
78292
79271
  */
78293
79272
  400: unknown;
78294
79273
  /**
@@ -78296,9 +79275,13 @@ export type ArchiveOrganizationNotificationLetterErrors = {
78296
79275
  */
78297
79276
  401: unknown;
78298
79277
  /**
78299
- * No such letter in your mailbox (RFC 9457 problem).
79278
+ * No such letter in your mailbox in this organization — `MESSAGE_NOT_FOUND` (RFC 9457 problem).
78300
79279
  */
78301
79280
  404: unknown;
79281
+ /**
79282
+ * 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.
79283
+ */
79284
+ 502: unknown;
78302
79285
  };
78303
79286
  export type ArchiveOrganizationNotificationLetterResponses = {
78304
79287
  /**
@@ -78323,6 +79306,10 @@ export type GetOrganizationNotificationPreferencesErrors = {
78323
79306
  * Missing or invalid credential (RFC 9457 problem).
78324
79307
  */
78325
79308
  401: unknown;
79309
+ /**
79310
+ * 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.
79311
+ */
79312
+ 502: unknown;
78326
79313
  };
78327
79314
  export type GetOrganizationNotificationPreferencesResponses = {
78328
79315
  /**
@@ -78414,7 +79401,7 @@ export type UpdateOrganizationNotificationPreferencesData = {
78414
79401
  };
78415
79402
  export type UpdateOrganizationNotificationPreferencesErrors = {
78416
79403
  /**
78417
- * Invalid switch, unknown category or unoffered channel (RFC 9457 problem).
79404
+ * Invalid switch, unknown category or unoffered channel — `INVALID_PARAMS`, `NOT_CONFIGURABLE` or `CRITICAL_CHANNELS_OFF` from the service (RFC 9457 problem).
78418
79405
  */
78419
79406
  400: unknown;
78420
79407
  /**
@@ -78422,9 +79409,13 @@ export type UpdateOrganizationNotificationPreferencesErrors = {
78422
79409
  */
78423
79410
  401: unknown;
78424
79411
  /**
78425
- * The organization does not let members change their own switches (ORGANIZATION_LOCKED).
79412
+ * The organization does not let members change their own switches — `ORGANIZATION_LOCKED` from the service (RFC 9457 problem).
78426
79413
  */
78427
79414
  403: unknown;
79415
+ /**
79416
+ * 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.
79417
+ */
79418
+ 502: unknown;
78428
79419
  };
78429
79420
  export type UpdateOrganizationNotificationPreferencesResponses = {
78430
79421
  /**
@@ -78446,6 +79437,10 @@ export type GetOrganizationNotificationDefaultsErrors = {
78446
79437
  * Missing or invalid credential (RFC 9457 problem).
78447
79438
  */
78448
79439
  401: unknown;
79440
+ /**
79441
+ * 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.
79442
+ */
79443
+ 502: unknown;
78449
79444
  };
78450
79445
  export type GetOrganizationNotificationDefaultsResponses = {
78451
79446
  /**
@@ -78483,7 +79478,7 @@ export type UpdateOrganizationNotificationDefaultsData = {
78483
79478
  };
78484
79479
  export type UpdateOrganizationNotificationDefaultsErrors = {
78485
79480
  /**
78486
- * Invalid default, unknown category or hidden critical category (RFC 9457 problem).
79481
+ * Invalid default, unknown category or hidden critical category (RFC 9457 problem, `INVALID_PARAMS`).
78487
79482
  */
78488
79483
  400: unknown;
78489
79484
  /**
@@ -78491,9 +79486,13 @@ export type UpdateOrganizationNotificationDefaultsErrors = {
78491
79486
  */
78492
79487
  401: unknown;
78493
79488
  /**
78494
- * The caller is not an owner or admin of this organization.
79489
+ * The caller is not an owner or admin of this organization — `PERMISSION_DENIED` from the service (RFC 9457 problem).
78495
79490
  */
78496
79491
  403: unknown;
79492
+ /**
79493
+ * 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.
79494
+ */
79495
+ 502: unknown;
78497
79496
  };
78498
79497
  export type UpdateOrganizationNotificationDefaultsResponses = {
78499
79498
  /**
@@ -78521,13 +79520,17 @@ export type ListOrganizationNotificationDeliveriesData = {
78521
79520
  };
78522
79521
  export type ListOrganizationNotificationDeliveriesErrors = {
78523
79522
  /**
78524
- * Invalid limit or page cursor (RFC 9457 problem).
79523
+ * Invalid limit, or `INVALID_PARAMS` from the service for a page cursor it did not issue (RFC 9457 problem).
78525
79524
  */
78526
79525
  400: unknown;
78527
79526
  /**
78528
79527
  * Missing or invalid credential (RFC 9457 problem).
78529
79528
  */
78530
79529
  401: unknown;
79530
+ /**
79531
+ * 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.
79532
+ */
79533
+ 502: unknown;
78531
79534
  };
78532
79535
  export type ListOrganizationNotificationDeliveriesResponses = {
78533
79536
  /**
@@ -79794,6 +80797,19 @@ export type ListByodDevicesResponses = {
79794
80797
  * The absolute directories a desktop registered for agent sessions with its last hello; a session may only start in one of these. Empty for a phone and for a desktop that has not connected yet.
79795
80798
  */
79796
80799
  agent_dirs: Array<string>;
80800
+ /**
80801
+ * 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.
80802
+ */
80803
+ agent_bindings: Array<{
80804
+ /**
80805
+ * The absolute directory the desktop bound to an agent with praxis agent connect.
80806
+ */
80807
+ dir: string;
80808
+ /**
80809
+ * The agent the directory is bound to: its identity number or its agent id.
80810
+ */
80811
+ agent: string;
80812
+ }>;
79797
80813
  /**
79798
80814
  * Whether the desktop's envd lets a platform session run in bypassPermissions (all tool calls without asking). True unless the person ran praxis connect agent --no-bypass on that machine; a session create that asks for bypassPermissions on a device where this is false answers 400 INVALID_PARAMS. False for a phone and for a desktop that has not connected yet.
79799
80815
  */
@@ -79876,6 +80892,19 @@ export type GetByodDeviceResponses = {
79876
80892
  * The absolute directories a desktop registered for agent sessions with its last hello; a session may only start in one of these. Empty for a phone and for a desktop that has not connected yet.
79877
80893
  */
79878
80894
  agent_dirs: Array<string>;
80895
+ /**
80896
+ * 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.
80897
+ */
80898
+ agent_bindings: Array<{
80899
+ /**
80900
+ * The absolute directory the desktop bound to an agent with praxis agent connect.
80901
+ */
80902
+ dir: string;
80903
+ /**
80904
+ * The agent the directory is bound to: its identity number or its agent id.
80905
+ */
80906
+ agent: string;
80907
+ }>;
79879
80908
  /**
79880
80909
  * Whether the desktop's envd lets a platform session run in bypassPermissions (all tool calls without asking). True unless the person ran praxis connect agent --no-bypass on that machine; a session create that asks for bypassPermissions on a device where this is false answers 400 INVALID_PARAMS. False for a phone and for a desktop that has not connected yet.
79881
80910
  */
@@ -79969,6 +80998,19 @@ export type UpdateByodDeviceResponses = {
79969
80998
  * The absolute directories a desktop registered for agent sessions with its last hello; a session may only start in one of these. Empty for a phone and for a desktop that has not connected yet.
79970
80999
  */
79971
81000
  agent_dirs: Array<string>;
81001
+ /**
81002
+ * 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.
81003
+ */
81004
+ agent_bindings: Array<{
81005
+ /**
81006
+ * The absolute directory the desktop bound to an agent with praxis agent connect.
81007
+ */
81008
+ dir: string;
81009
+ /**
81010
+ * The agent the directory is bound to: its identity number or its agent id.
81011
+ */
81012
+ agent: string;
81013
+ }>;
79972
81014
  /**
79973
81015
  * Whether the desktop's envd lets a platform session run in bypassPermissions (all tool calls without asking). True unless the person ran praxis connect agent --no-bypass on that machine; a session create that asks for bypassPermissions on a device where this is false answers 400 INVALID_PARAMS. False for a phone and for a desktop that has not connected yet.
79974
81016
  */
@@ -90424,6 +91466,31 @@ export type SessionsEventsListResponses = {
90424
91466
  * Envelope field, not part of this event's own payload: the public sthr_ thread id of the row (null when the row has none), added by the shared projection in apps/api/src/routes/managed-session-events.ts whenever the row carries one (#4480). No writer of this event runs under a thread today, so it is declared for the frame shape rather than produced here.
90425
91467
  */
90426
91468
  session_thread_id?: string | null;
91469
+ } | {
91470
+ /**
91471
+ * Event id, unique within the session. Use it to refer to this event, for example in user.tool_confirmation or user.steer.
91472
+ */
91473
+ id: string;
91474
+ /**
91475
+ * Always `session.status_preparing`. A device session's local agent is starting; stage says how far it got.
91476
+ */
91477
+ type: 'session.status_preparing';
91478
+ /**
91479
+ * RFC 3339 time at which the server processed the event; null while a queued input has not started running.
91480
+ */
91481
+ processed_at: string;
91482
+ /**
91483
+ * How far the start got.
91484
+ */
91485
+ stage: 'launching' | 'loading' | 'ready';
91486
+ /**
91487
+ * 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.
91488
+ */
91489
+ message_id?: string;
91490
+ /**
91491
+ * 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.
91492
+ */
91493
+ session_thread_id?: string | null;
90427
91494
  }>;
90428
91495
  /**
90429
91496
  * Opaque cursor for the next page: pass it unchanged as page to continue. Null when this is the last page.
@@ -92146,6 +93213,31 @@ export type SessionsThreadsEventsListResponses = {
92146
93213
  * Envelope field, not part of this event's own payload: the public sthr_ thread id of the row (null when the row has none), added by the shared projection in apps/api/src/routes/managed-session-events.ts whenever the row carries one (#4480). No writer of this event runs under a thread today, so it is declared for the frame shape rather than produced here.
92147
93214
  */
92148
93215
  session_thread_id?: string | null;
93216
+ } | {
93217
+ /**
93218
+ * Event id, unique within the session. Use it to refer to this event, for example in user.tool_confirmation or user.steer.
93219
+ */
93220
+ id: string;
93221
+ /**
93222
+ * Always `session.status_preparing`. A device session's local agent is starting; stage says how far it got.
93223
+ */
93224
+ type: 'session.status_preparing';
93225
+ /**
93226
+ * RFC 3339 time at which the server processed the event; null while a queued input has not started running.
93227
+ */
93228
+ processed_at: string;
93229
+ /**
93230
+ * How far the start got.
93231
+ */
93232
+ stage: 'launching' | 'loading' | 'ready';
93233
+ /**
93234
+ * 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.
93235
+ */
93236
+ message_id?: string;
93237
+ /**
93238
+ * 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.
93239
+ */
93240
+ session_thread_id?: string | null;
92149
93241
  }>;
92150
93242
  /**
92151
93243
  * Opaque cursor for the next page: pass it unchanged as page to continue. Null when this is the last page.
@@ -110984,6 +112076,51 @@ export type DevopsChangesMarkLastSliceResponses = {
110984
112076
  200: DevopsChange;
110985
112077
  };
110986
112078
  export type DevopsChangesMarkLastSliceResponse = DevopsChangesMarkLastSliceResponses[keyof DevopsChangesMarkLastSliceResponses];
112079
+ export type DevopsChangesSlicesCreateData = {
112080
+ body?: DevopsChangeSliceCreateRequest;
112081
+ path: {
112082
+ /**
112083
+ * Identifies the project whose data you are reading, from the project list or create answer.
112084
+ */
112085
+ project: string;
112086
+ /**
112087
+ * 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.
112088
+ */
112089
+ change: string;
112090
+ };
112091
+ query?: never;
112092
+ url: '/devops/v1/projects/{project}/changes/{change}/slices';
112093
+ };
112094
+ export type DevopsChangesSlicesCreateErrors = {
112095
+ /**
112096
+ * 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.
112097
+ */
112098
+ 400: DevopsDevOpsError;
112099
+ /**
112100
+ * The API key is missing or invalid; send a valid Praxis API key in the Authorization header before retrying.
112101
+ */
112102
+ 401: DevopsDevOpsError;
112103
+ /**
112104
+ * 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.
112105
+ */
112106
+ 403: DevopsDevOpsError;
112107
+ /**
112108
+ * 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.
112109
+ */
112110
+ 404: DevopsDevOpsError;
112111
+ /**
112112
+ * 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.
112113
+ */
112114
+ 500: DevopsDevOpsError;
112115
+ };
112116
+ export type DevopsChangesSlicesCreateError = DevopsChangesSlicesCreateErrors[keyof DevopsChangesSlicesCreateErrors];
112117
+ export type DevopsChangesSlicesCreateResponses = {
112118
+ /**
112119
+ * 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.
112120
+ */
112121
+ 200: DevopsChangeSliceOpened;
112122
+ };
112123
+ export type DevopsChangesSlicesCreateResponse = DevopsChangesSlicesCreateResponses[keyof DevopsChangesSlicesCreateResponses];
110987
112124
  export type DevopsChangesOpenPullRequestData = {
110988
112125
  body?: DevopsChangeOpenPullRequestRequest;
110989
112126
  path: {