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

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
  /**
@@ -3825,12 +3859,16 @@ export type BrowserSessionCreateResult = {
3825
3859
  * 该地址返回 501;不支持 Selenium。
3826
3860
  */
3827
3861
  seleniumRemoteUrl: string;
3862
+ /**
3863
+ * true 表示本次按 name 复用了已在运行的同名会话(HTTP 200),没有新开会话;false 表示新开了会话(HTTP 201)。
3864
+ */
3865
+ reused: boolean;
3828
3866
  };
3829
3867
  export type BrowserError = {
3830
3868
  statusCode: number;
3831
3869
  error: string;
3832
3870
  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';
3871
+ 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
3872
  };
3835
3873
  export type BrowserSession = {
3836
3874
  /**
@@ -4280,6 +4318,128 @@ export type BrowserContext = {
4280
4318
  */
4281
4319
  lastUsedAt?: string;
4282
4320
  };
4321
+ export type BrowserByobPairing = {
4322
+ /**
4323
+ * 8 位配对码,一次性、10 分钟内有效;它是秘密,只交给要配对的那个浏览器的用户。
4324
+ */
4325
+ code: string;
4326
+ /**
4327
+ * 配对码失效的时刻,UTC ISO 8601 时间。
4328
+ */
4329
+ expires_at: string;
4330
+ };
4331
+ export type BrowserByobBrowser = {
4332
+ /**
4333
+ * 对象类型,固定为 byob_browser。
4334
+ */
4335
+ object: 'byob_browser';
4336
+ /**
4337
+ * 自带浏览器 ID,以 byb_ 开头;使用配对认领或列出自带浏览器返回的 id。
4338
+ */
4339
+ id: string;
4340
+ /**
4341
+ * 浏览器的显示名称,配对时由扩展上报,1–80 个字符;可通过更新修改。
4342
+ */
4343
+ name: string;
4344
+ /**
4345
+ * 这个自带浏览器的种类,配对时由扩展上报。
4346
+ */
4347
+ browser: 'chrome' | 'edge';
4348
+ /**
4349
+ * 浏览器版本号,配对时由扩展上报。
4350
+ */
4351
+ version: string;
4352
+ /**
4353
+ * 操作系统,配对时由扩展上报。
4354
+ */
4355
+ os: string;
4356
+ /**
4357
+ * 配对用的扩展 ID。
4358
+ */
4359
+ extension_id: string;
4360
+ /**
4361
+ * 被授权驱动这个浏览器的智能体 ID 列表;智能体不在列表里时不能打开它的会话。空数组表示没有智能体被授权。
4362
+ */
4363
+ granted_agents: Array<string>;
4364
+ /**
4365
+ * 允许智能体访问的站点列表;空数组表示不限制 http(s) 站点。这是护栏,不是数据边界。
4366
+ */
4367
+ allowed_sites: Array<string>;
4368
+ /**
4369
+ * 扩展的连接当前是否在线;连接对象上线之前固定为 false。
4370
+ */
4371
+ online: boolean;
4372
+ /**
4373
+ * 扩展最近一次被看到在线的时刻,UTC ISO 8601 时间。
4374
+ */
4375
+ last_seen_at: string | null;
4376
+ /**
4377
+ * 发起配对的用户标识;浏览器属于组织,这里只记录是谁配的。
4378
+ */
4379
+ created_by: string | null;
4380
+ /**
4381
+ * 浏览器完成配对的时刻,UTC ISO 8601 时间。
4382
+ */
4383
+ created_at: string;
4384
+ /**
4385
+ * 组织断开这个浏览器的时刻,UTC ISO 8601 时间;未断开时为 null。
4386
+ */
4387
+ revoked_at: string | null;
4388
+ };
4389
+ export type BrowserByobPairingView = {
4390
+ /**
4391
+ * 发起配对的组织名称,扩展的授权页显示它。
4392
+ */
4393
+ organization_name: string;
4394
+ /**
4395
+ * 发起配对的用户标识。
4396
+ */
4397
+ created_by: string | null;
4398
+ /**
4399
+ * 配对码失效的时刻,UTC ISO 8601 时间。
4400
+ */
4401
+ expires_at: string;
4402
+ };
4403
+ export type BrowserByobClaim = {
4404
+ /**
4405
+ * 要登记的浏览器种类,只支持 Chrome 和 Edge。
4406
+ */
4407
+ browser: 'chrome' | 'edge';
4408
+ /**
4409
+ * 浏览器版本号,1–64 个字符。
4410
+ */
4411
+ version: string;
4412
+ /**
4413
+ * 操作系统,1–64 个字符。
4414
+ */
4415
+ os: string;
4416
+ /**
4417
+ * 浏览器的显示名称,1–80 个字符。
4418
+ */
4419
+ name: string;
4420
+ /**
4421
+ * 扩展用 WebCrypto 生成的不可导出 ECDSA P-256 密钥对的公钥;平台只保存公钥。
4422
+ */
4423
+ public_key: string;
4424
+ /**
4425
+ * 扩展 ID,1–64 个字符。
4426
+ */
4427
+ extension_id: string;
4428
+ /**
4429
+ * 扩展保存的随机安装密钥,8–128 个字母、数字、_ 或 -;同一个 profile 带同一密钥重新配对会复用原来的浏览器,平台只保存它的哈希。省略则每次认领都是新浏览器。
4430
+ */
4431
+ install_key?: string;
4432
+ };
4433
+ export type BrowserByobClaimResult = {
4434
+ /**
4435
+ * 自带浏览器 ID,以 byb_ 开头;使用配对认领或列出自带浏览器返回的 id。
4436
+ */
4437
+ browser_id: string;
4438
+ /**
4439
+ * 扩展要拨入的 WSS 地址,属于这个浏览器自己的链接主机;连接时用配对时的私钥签名完成认证,地址本身不是凭证。
4440
+ */
4441
+ link_url: string;
4442
+ };
4283
4443
  export type BrowserStreamMessage = {
4284
4444
  event: 'snapshot';
4285
4445
  data: {
@@ -4694,7 +4854,7 @@ export type OwnFileSignedUploadResponse = {
4694
4854
  url: string;
4695
4855
  }>;
4696
4856
  /**
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.
4857
+ * 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
4858
  */
4699
4859
  complete_url: string;
4700
4860
  /**
@@ -5192,7 +5352,7 @@ export type MediaStreamOutput = {
5192
5352
  */
5193
5353
  status: 'idle' | 'starting' | 'broadcasting' | 'errored';
5194
5354
  /**
5195
- * Why the output is errored; null in every other status.
5355
+ * Why the last connection failed, while the output is errored or starting again after a failure; null in every other status.
5196
5356
  */
5197
5357
  error: MediaStreamOutputError;
5198
5358
  /**
@@ -10584,6 +10744,10 @@ export type ApplicationCreateWorkerInput = {
10584
10744
  labels?: {
10585
10745
  [key: string]: string;
10586
10746
  };
10747
+ /**
10748
+ * 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.
10749
+ */
10750
+ access?: 'public' | 'organization';
10587
10751
  };
10588
10752
  };
10589
10753
  export type ApplicationWorker = {
@@ -10655,6 +10819,10 @@ export type ApplicationWorker = {
10655
10819
  labels: {
10656
10820
  [key: string]: string;
10657
10821
  };
10822
+ /**
10823
+ * 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.
10824
+ */
10825
+ access: 'public' | 'organization';
10658
10826
  /**
10659
10827
  * When the Worker was deleted.
10660
10828
  */
@@ -10736,6 +10904,10 @@ export type ApplicationUpdateWorkerInput = {
10736
10904
  labels?: {
10737
10905
  [key: string]: string;
10738
10906
  };
10907
+ /**
10908
+ * 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.
10909
+ */
10910
+ access?: 'public' | 'organization';
10739
10911
  };
10740
10912
  };
10741
10913
  export type ApplicationVersionPage = {
@@ -19519,6 +19691,32 @@ export type DevopsChangeMarkLastSliceRequest = {
19519
19691
  */
19520
19692
  lastSlice: boolean;
19521
19693
  };
19694
+ /**
19695
+ * Where the new slice starts. Every field is optional: with none the slice is cut from the default branch.
19696
+ */
19697
+ export type DevopsChangeSliceCreateRequest = {
19698
+ /**
19699
+ * 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.
19700
+ */
19701
+ from?: string;
19702
+ };
19703
+ /**
19704
+ * The slice that was opened.
19705
+ */
19706
+ export type DevopsChangeSliceOpened = {
19707
+ /**
19708
+ * 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`.
19709
+ */
19710
+ branch: string;
19711
+ /**
19712
+ * 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.
19713
+ */
19714
+ directory: string;
19715
+ /**
19716
+ * 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.
19717
+ */
19718
+ unit: string;
19719
+ };
19522
19720
  /**
19523
19721
  * What the pull request says. Every field is optional: without a title the change's own title is used.
19524
19722
  */
@@ -19535,6 +19733,10 @@ export type DevopsChangeOpenPullRequestRequest = {
19535
19733
  * Open it as a draft. Defaults to false.
19536
19734
  */
19537
19735
  draft?: boolean;
19736
+ /**
19737
+ * 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.
19738
+ */
19739
+ head?: string;
19538
19740
  };
19539
19741
  /**
19540
19742
  * The pull request for a change's branch.
@@ -29732,6 +29934,31 @@ export type AgentSseData = {
29732
29934
  * 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
29935
  */
29734
29936
  session_thread_id?: string | null;
29937
+ } | {
29938
+ /**
29939
+ * Event id, unique within the session. Use it to refer to this event, for example in user.tool_confirmation or user.steer.
29940
+ */
29941
+ id: string;
29942
+ /**
29943
+ * Always `session.status_preparing`. A device session's local agent is starting; stage says how far it got.
29944
+ */
29945
+ type: 'session.status_preparing';
29946
+ /**
29947
+ * RFC 3339 time at which the server processed the event; null while a queued input has not started running.
29948
+ */
29949
+ processed_at: string;
29950
+ /**
29951
+ * How far the start got.
29952
+ */
29953
+ stage: 'launching' | 'loading' | 'ready';
29954
+ /**
29955
+ * 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.
29956
+ */
29957
+ message_id?: string;
29958
+ /**
29959
+ * 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.
29960
+ */
29961
+ session_thread_id?: string | null;
29735
29962
  } | {
29736
29963
  /**
29737
29964
  * Always `event_start`. Preview that an event of the requested delta types has started.
@@ -30066,7 +30293,7 @@ export type MediaStreamEvent = {
30066
30293
  */
30067
30294
  seq: number;
30068
30295
  /**
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).
30296
+ * 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
30297
  */
30071
30298
  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
30299
  /**
@@ -30156,7 +30383,7 @@ export type MediaPipelineAlertRule = {
30156
30383
  [key: string]: unknown;
30157
30384
  };
30158
30385
  /**
30159
- * Why an errored output stopped trying.
30386
+ * Why an output is errored, or is trying again after a failure.
30160
30387
  */
30161
30388
  export type MediaStreamOutputError = {
30162
30389
  /**
@@ -51934,6 +52161,10 @@ export type DevopsLockId = string;
51934
52161
  * 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
52162
  */
51936
52163
  export type DevopsChangeIdPath = string;
52164
+ /**
52165
+ * 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.
52166
+ */
52167
+ export type DevopsChangePathParam = string;
51937
52168
  /**
51938
52169
  * 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
52170
  */
@@ -53577,6 +53808,31 @@ export type ListAgentEventsResponses = {
53577
53808
  * 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
53809
  */
53579
53810
  session_thread_id?: string | null;
53811
+ } | {
53812
+ /**
53813
+ * Event id, unique within the session. Use it to refer to this event, for example in user.tool_confirmation or user.steer.
53814
+ */
53815
+ id: string;
53816
+ /**
53817
+ * Always `session.status_preparing`. A device session's local agent is starting; stage says how far it got.
53818
+ */
53819
+ type: 'session.status_preparing';
53820
+ /**
53821
+ * RFC 3339 time at which the server processed the event; null while a queued input has not started running.
53822
+ */
53823
+ processed_at: string;
53824
+ /**
53825
+ * How far the start got.
53826
+ */
53827
+ stage: 'launching' | 'loading' | 'ready';
53828
+ /**
53829
+ * 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.
53830
+ */
53831
+ message_id?: string;
53832
+ /**
53833
+ * 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.
53834
+ */
53835
+ session_thread_id?: string | null;
53580
53836
  }>;
53581
53837
  /**
53582
53838
  * Opaque cursor for the next page: pass it unchanged as page to continue. Null when this is the last page.
@@ -54007,32 +54263,33 @@ export type CreateAgentLoginIntentErrors = {
54007
54263
  /**
54008
54264
  * 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
54265
  */
54010
- 400: unknown;
54266
+ 400: AgentError;
54011
54267
  /**
54012
54268
  * Authentication required: send the platform session's own credential.
54013
54269
  */
54014
- 401: unknown;
54270
+ 401: AgentError;
54015
54271
  /**
54016
54272
  * 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
54273
  */
54018
- 403: unknown;
54274
+ 403: AgentError;
54019
54275
  /**
54020
54276
  * AGENT_NOT_FOUND: the agent the credential names does not exist in this organization; check the agent the session was opened for.
54021
54277
  */
54022
- 404: unknown;
54278
+ 404: AgentError;
54023
54279
  /**
54024
54280
  * 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
54281
  */
54026
- 409: unknown;
54282
+ 409: AgentError;
54027
54283
  /**
54028
54284
  * UPSTREAM_UNAVAILABLE: the agent service or identity could not answer; retry once the service is back.
54029
54285
  */
54030
- 502: unknown;
54286
+ 502: AgentError;
54031
54287
  /**
54032
54288
  * UNAVAILABLE: identity is not configured in this deployment.
54033
54289
  */
54034
- 503: unknown;
54290
+ 503: AgentError;
54035
54291
  };
54292
+ export type CreateAgentLoginIntentError = CreateAgentLoginIntentErrors[keyof CreateAgentLoginIntentErrors];
54036
54293
  export type CreateAgentLoginIntentResponses = {
54037
54294
  /**
54038
54295
  * The one-time login code and when it stops working; the code is answered once and never again.
@@ -68777,17 +69034,21 @@ export type BrowserListSessionsErrors = {
68777
69034
  */
68778
69035
  402: BrowserError;
68779
69036
  /**
68780
- * PERMISSION_DENIED / ACCOUNT_SUSPENDED
69037
+ * PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
68781
69038
  */
68782
69039
  403: BrowserError;
68783
69040
  /**
68784
- * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
69041
+ * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
68785
69042
  */
68786
69043
  404: BrowserError;
68787
69044
  /**
68788
- * SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
69045
+ * SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
68789
69046
  */
68790
69047
  409: BrowserError;
69048
+ /**
69049
+ * BROWSER_REVOKED
69050
+ */
69051
+ 410: BrowserError;
68791
69052
  /**
68792
69053
  * ACTION_RESULT_TOO_LARGE
68793
69054
  */
@@ -68809,7 +69070,7 @@ export type BrowserListSessionsErrors = {
68809
69070
  */
68810
69071
  502: BrowserError;
68811
69072
  /**
68812
- * SERVICE_UNAVAILABLE
69073
+ * BROWSER_OFFLINE / SERVICE_UNAVAILABLE
68813
69074
  */
68814
69075
  503: BrowserError;
68815
69076
  /**
@@ -68854,17 +69115,21 @@ export type BrowserCreateSessionErrors = {
68854
69115
  */
68855
69116
  402: BrowserError;
68856
69117
  /**
68857
- * PERMISSION_DENIED / ACCOUNT_SUSPENDED
69118
+ * PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
68858
69119
  */
68859
69120
  403: BrowserError;
68860
69121
  /**
68861
- * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
69122
+ * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
68862
69123
  */
68863
69124
  404: BrowserError;
68864
69125
  /**
68865
- * SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
69126
+ * SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
68866
69127
  */
68867
69128
  409: BrowserError;
69129
+ /**
69130
+ * BROWSER_REVOKED
69131
+ */
69132
+ 410: BrowserError;
68868
69133
  /**
68869
69134
  * ACTION_RESULT_TOO_LARGE
68870
69135
  */
@@ -68886,7 +69151,7 @@ export type BrowserCreateSessionErrors = {
68886
69151
  */
68887
69152
  502: BrowserError;
68888
69153
  /**
68889
- * SERVICE_UNAVAILABLE
69154
+ * BROWSER_OFFLINE / SERVICE_UNAVAILABLE
68890
69155
  */
68891
69156
  503: BrowserError;
68892
69157
  /**
@@ -68896,6 +69161,10 @@ export type BrowserCreateSessionErrors = {
68896
69161
  };
68897
69162
  export type BrowserCreateSessionError = BrowserCreateSessionErrors[keyof BrowserCreateSessionErrors];
68898
69163
  export type BrowserCreateSessionResponses = {
69164
+ /**
69165
+ * 请求成功。
69166
+ */
69167
+ 200: BrowserSessionCreateResult;
68899
69168
  /**
68900
69169
  * 请求成功。
68901
69170
  */
@@ -68932,17 +69201,21 @@ export type BrowserGetSessionErrors = {
68932
69201
  */
68933
69202
  402: BrowserError;
68934
69203
  /**
68935
- * PERMISSION_DENIED / ACCOUNT_SUSPENDED
69204
+ * PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
68936
69205
  */
68937
69206
  403: BrowserError;
68938
69207
  /**
68939
- * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
69208
+ * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
68940
69209
  */
68941
69210
  404: BrowserError;
68942
69211
  /**
68943
- * SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
69212
+ * SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
68944
69213
  */
68945
69214
  409: BrowserError;
69215
+ /**
69216
+ * BROWSER_REVOKED
69217
+ */
69218
+ 410: BrowserError;
68946
69219
  /**
68947
69220
  * ACTION_RESULT_TOO_LARGE
68948
69221
  */
@@ -68964,7 +69237,7 @@ export type BrowserGetSessionErrors = {
68964
69237
  */
68965
69238
  502: BrowserError;
68966
69239
  /**
68967
- * SERVICE_UNAVAILABLE
69240
+ * BROWSER_OFFLINE / SERVICE_UNAVAILABLE
68968
69241
  */
68969
69242
  503: BrowserError;
68970
69243
  /**
@@ -69010,90 +69283,21 @@ export type BrowserCloseSessionErrors = {
69010
69283
  */
69011
69284
  402: BrowserError;
69012
69285
  /**
69013
- * PERMISSION_DENIED / ACCOUNT_SUSPENDED
69286
+ * PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
69014
69287
  */
69015
69288
  403: BrowserError;
69016
69289
  /**
69017
- * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
69290
+ * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
69018
69291
  */
69019
69292
  404: BrowserError;
69020
69293
  /**
69021
- * SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
69294
+ * SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
69022
69295
  */
69023
69296
  409: BrowserError;
69024
69297
  /**
69025
- * ACTION_RESULT_TOO_LARGE
69026
- */
69027
- 413: BrowserError;
69028
- /**
69029
- * CONCURRENCY_LIMIT / RATE_LIMITED / PROVIDER_CAPACITY
69030
- */
69031
- 429: BrowserError;
69032
- /**
69033
- * INTERNAL
69034
- */
69035
- 500: BrowserError;
69036
- /**
69037
- * NOT_IMPLEMENTED / PROVIDER_UNSUPPORTED
69038
- */
69039
- 501: BrowserError;
69040
- /**
69041
- * PROVIDER_FAILED
69042
- */
69043
- 502: BrowserError;
69044
- /**
69045
- * SERVICE_UNAVAILABLE
69046
- */
69047
- 503: BrowserError;
69048
- /**
69049
- * ACTION_TIMEOUT
69050
- */
69051
- 504: BrowserError;
69052
- };
69053
- export type BrowserCloseSessionError = BrowserCloseSessionErrors[keyof BrowserCloseSessionErrors];
69054
- export type BrowserCloseSessionResponses = {
69055
- /**
69056
- * 请求成功。
69057
- */
69058
- 200: BrowserSession;
69059
- };
69060
- export type BrowserCloseSessionResponse = BrowserCloseSessionResponses[keyof BrowserCloseSessionResponses];
69061
- export type BrowserGetDebugData = {
69062
- body?: never;
69063
- path: {
69064
- /**
69065
- * 浏览器会话 ID;使用创建或列出会话返回的 id,以 bss_ 开头。
69066
- */
69067
- sessionId: string;
69068
- };
69069
- query?: never;
69070
- url: '/browser/v1/sessions/{sessionId}/debug';
69071
- };
69072
- export type BrowserGetDebugErrors = {
69073
- /**
69074
- * INVALID_PARAMS / INVALID_FILTER / INVALID_PAGE_TOKEN
69075
- */
69076
- 400: BrowserError;
69077
- /**
69078
- * UNAUTHENTICATED / CONNECT_SIGNATURE_INVALID
69079
- */
69080
- 401: BrowserError;
69081
- /**
69082
- * INSUFFICIENT_BALANCE / QUOTA_EXHAUSTED
69083
- */
69084
- 402: BrowserError;
69085
- /**
69086
- * PERMISSION_DENIED / ACCOUNT_SUSPENDED
69087
- */
69088
- 403: BrowserError;
69089
- /**
69090
- * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
69298
+ * BROWSER_REVOKED
69091
69299
  */
69092
- 404: BrowserError;
69093
- /**
69094
- * SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
69095
- */
69096
- 409: BrowserError;
69300
+ 410: BrowserError;
69097
69301
  /**
69098
69302
  * ACTION_RESULT_TOO_LARGE
69099
69303
  */
@@ -69115,7 +69319,84 @@ export type BrowserGetDebugErrors = {
69115
69319
  */
69116
69320
  502: BrowserError;
69117
69321
  /**
69118
- * SERVICE_UNAVAILABLE
69322
+ * BROWSER_OFFLINE / SERVICE_UNAVAILABLE
69323
+ */
69324
+ 503: BrowserError;
69325
+ /**
69326
+ * ACTION_TIMEOUT
69327
+ */
69328
+ 504: BrowserError;
69329
+ };
69330
+ export type BrowserCloseSessionError = BrowserCloseSessionErrors[keyof BrowserCloseSessionErrors];
69331
+ export type BrowserCloseSessionResponses = {
69332
+ /**
69333
+ * 请求成功。
69334
+ */
69335
+ 200: BrowserSession;
69336
+ };
69337
+ export type BrowserCloseSessionResponse = BrowserCloseSessionResponses[keyof BrowserCloseSessionResponses];
69338
+ export type BrowserGetDebugData = {
69339
+ body?: never;
69340
+ path: {
69341
+ /**
69342
+ * 浏览器会话 ID;使用创建或列出会话返回的 id,以 bss_ 开头。
69343
+ */
69344
+ sessionId: string;
69345
+ };
69346
+ query?: never;
69347
+ url: '/browser/v1/sessions/{sessionId}/debug';
69348
+ };
69349
+ export type BrowserGetDebugErrors = {
69350
+ /**
69351
+ * INVALID_PARAMS / INVALID_FILTER / INVALID_PAGE_TOKEN
69352
+ */
69353
+ 400: BrowserError;
69354
+ /**
69355
+ * UNAUTHENTICATED / CONNECT_SIGNATURE_INVALID
69356
+ */
69357
+ 401: BrowserError;
69358
+ /**
69359
+ * INSUFFICIENT_BALANCE / QUOTA_EXHAUSTED
69360
+ */
69361
+ 402: BrowserError;
69362
+ /**
69363
+ * PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
69364
+ */
69365
+ 403: BrowserError;
69366
+ /**
69367
+ * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
69368
+ */
69369
+ 404: BrowserError;
69370
+ /**
69371
+ * SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
69372
+ */
69373
+ 409: BrowserError;
69374
+ /**
69375
+ * BROWSER_REVOKED
69376
+ */
69377
+ 410: BrowserError;
69378
+ /**
69379
+ * ACTION_RESULT_TOO_LARGE
69380
+ */
69381
+ 413: BrowserError;
69382
+ /**
69383
+ * CONCURRENCY_LIMIT / RATE_LIMITED / PROVIDER_CAPACITY
69384
+ */
69385
+ 429: BrowserError;
69386
+ /**
69387
+ * INTERNAL
69388
+ */
69389
+ 500: BrowserError;
69390
+ /**
69391
+ * NOT_IMPLEMENTED / PROVIDER_UNSUPPORTED
69392
+ */
69393
+ 501: BrowserError;
69394
+ /**
69395
+ * PROVIDER_FAILED
69396
+ */
69397
+ 502: BrowserError;
69398
+ /**
69399
+ * BROWSER_OFFLINE / SERVICE_UNAVAILABLE
69119
69400
  */
69120
69401
  503: BrowserError;
69121
69402
  /**
@@ -69169,17 +69450,21 @@ export type BrowserListEventsErrors = {
69169
69450
  */
69170
69451
  402: BrowserError;
69171
69452
  /**
69172
- * PERMISSION_DENIED / ACCOUNT_SUSPENDED
69453
+ * PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
69173
69454
  */
69174
69455
  403: BrowserError;
69175
69456
  /**
69176
- * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
69457
+ * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
69177
69458
  */
69178
69459
  404: BrowserError;
69179
69460
  /**
69180
- * SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
69461
+ * SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
69181
69462
  */
69182
69463
  409: BrowserError;
69464
+ /**
69465
+ * BROWSER_REVOKED
69466
+ */
69467
+ 410: BrowserError;
69183
69468
  /**
69184
69469
  * ACTION_RESULT_TOO_LARGE
69185
69470
  */
@@ -69201,7 +69486,7 @@ export type BrowserListEventsErrors = {
69201
69486
  */
69202
69487
  502: BrowserError;
69203
69488
  /**
69204
- * SERVICE_UNAVAILABLE
69489
+ * BROWSER_OFFLINE / SERVICE_UNAVAILABLE
69205
69490
  */
69206
69491
  503: BrowserError;
69207
69492
  /**
@@ -69448,17 +69733,21 @@ export type BrowserRunPageActionErrors = {
69448
69733
  */
69449
69734
  402: BrowserError;
69450
69735
  /**
69451
- * PERMISSION_DENIED / ACCOUNT_SUSPENDED
69736
+ * PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
69452
69737
  */
69453
69738
  403: BrowserError;
69454
69739
  /**
69455
- * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
69740
+ * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
69456
69741
  */
69457
69742
  404: BrowserError;
69458
69743
  /**
69459
- * SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
69744
+ * SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
69460
69745
  */
69461
69746
  409: BrowserError;
69747
+ /**
69748
+ * BROWSER_REVOKED
69749
+ */
69750
+ 410: BrowserError;
69462
69751
  /**
69463
69752
  * ACTION_RESULT_TOO_LARGE
69464
69753
  */
@@ -69480,7 +69769,7 @@ export type BrowserRunPageActionErrors = {
69480
69769
  */
69481
69770
  502: BrowserError;
69482
69771
  /**
69483
- * SERVICE_UNAVAILABLE
69772
+ * BROWSER_OFFLINE / SERVICE_UNAVAILABLE
69484
69773
  */
69485
69774
  503: BrowserError;
69486
69775
  /**
@@ -69666,17 +69955,21 @@ export type BrowserRequestHandoffErrors = {
69666
69955
  */
69667
69956
  402: BrowserError;
69668
69957
  /**
69669
- * PERMISSION_DENIED / ACCOUNT_SUSPENDED
69958
+ * PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
69670
69959
  */
69671
69960
  403: BrowserError;
69672
69961
  /**
69673
- * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
69962
+ * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
69674
69963
  */
69675
69964
  404: BrowserError;
69676
69965
  /**
69677
- * SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
69966
+ * SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
69678
69967
  */
69679
69968
  409: BrowserError;
69969
+ /**
69970
+ * BROWSER_REVOKED
69971
+ */
69972
+ 410: BrowserError;
69680
69973
  /**
69681
69974
  * ACTION_RESULT_TOO_LARGE
69682
69975
  */
@@ -69698,7 +69991,7 @@ export type BrowserRequestHandoffErrors = {
69698
69991
  */
69699
69992
  502: BrowserError;
69700
69993
  /**
69701
- * SERVICE_UNAVAILABLE
69994
+ * BROWSER_OFFLINE / SERVICE_UNAVAILABLE
69702
69995
  */
69703
69996
  503: BrowserError;
69704
69997
  /**
@@ -69739,17 +70032,21 @@ export type BrowserCompleteHandoffErrors = {
69739
70032
  */
69740
70033
  402: BrowserError;
69741
70034
  /**
69742
- * PERMISSION_DENIED / ACCOUNT_SUSPENDED
70035
+ * PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
69743
70036
  */
69744
70037
  403: BrowserError;
69745
70038
  /**
69746
- * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
70039
+ * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
69747
70040
  */
69748
70041
  404: BrowserError;
69749
70042
  /**
69750
- * SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
70043
+ * SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
69751
70044
  */
69752
70045
  409: BrowserError;
70046
+ /**
70047
+ * BROWSER_REVOKED
70048
+ */
70049
+ 410: BrowserError;
69753
70050
  /**
69754
70051
  * ACTION_RESULT_TOO_LARGE
69755
70052
  */
@@ -69771,7 +70068,7 @@ export type BrowserCompleteHandoffErrors = {
69771
70068
  */
69772
70069
  502: BrowserError;
69773
70070
  /**
69774
- * SERVICE_UNAVAILABLE
70071
+ * BROWSER_OFFLINE / SERVICE_UNAVAILABLE
69775
70072
  */
69776
70073
  503: BrowserError;
69777
70074
  /**
@@ -69821,17 +70118,21 @@ export type BrowserViewerHeartbeatErrors = {
69821
70118
  */
69822
70119
  402: BrowserError;
69823
70120
  /**
69824
- * PERMISSION_DENIED / ACCOUNT_SUSPENDED
70121
+ * PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
69825
70122
  */
69826
70123
  403: BrowserError;
69827
70124
  /**
69828
- * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
70125
+ * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
69829
70126
  */
69830
70127
  404: BrowserError;
69831
70128
  /**
69832
- * SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
70129
+ * SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
69833
70130
  */
69834
70131
  409: BrowserError;
70132
+ /**
70133
+ * BROWSER_REVOKED
70134
+ */
70135
+ 410: BrowserError;
69835
70136
  /**
69836
70137
  * ACTION_RESULT_TOO_LARGE
69837
70138
  */
@@ -69853,7 +70154,7 @@ export type BrowserViewerHeartbeatErrors = {
69853
70154
  */
69854
70155
  502: BrowserError;
69855
70156
  /**
69856
- * SERVICE_UNAVAILABLE
70157
+ * BROWSER_OFFLINE / SERVICE_UNAVAILABLE
69857
70158
  */
69858
70159
  503: BrowserError;
69859
70160
  /**
@@ -69899,17 +70200,602 @@ export type BrowserGetSessionFrameErrors = {
69899
70200
  */
69900
70201
  402: BrowserError;
69901
70202
  /**
69902
- * PERMISSION_DENIED / ACCOUNT_SUSPENDED
70203
+ * PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
70204
+ */
70205
+ 403: BrowserError;
70206
+ /**
70207
+ * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
70208
+ */
70209
+ 404: BrowserError;
70210
+ /**
70211
+ * SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
70212
+ */
70213
+ 409: BrowserError;
70214
+ /**
70215
+ * BROWSER_REVOKED
70216
+ */
70217
+ 410: BrowserError;
70218
+ /**
70219
+ * ACTION_RESULT_TOO_LARGE
70220
+ */
70221
+ 413: BrowserError;
70222
+ /**
70223
+ * CONCURRENCY_LIMIT / RATE_LIMITED / PROVIDER_CAPACITY
70224
+ */
70225
+ 429: BrowserError;
70226
+ /**
70227
+ * INTERNAL
70228
+ */
70229
+ 500: BrowserError;
70230
+ /**
70231
+ * NOT_IMPLEMENTED / PROVIDER_UNSUPPORTED
70232
+ */
70233
+ 501: BrowserError;
70234
+ /**
70235
+ * PROVIDER_FAILED
70236
+ */
70237
+ 502: BrowserError;
70238
+ /**
70239
+ * BROWSER_OFFLINE / SERVICE_UNAVAILABLE
70240
+ */
70241
+ 503: BrowserError;
70242
+ /**
70243
+ * ACTION_TIMEOUT
70244
+ */
70245
+ 504: BrowserError;
70246
+ };
70247
+ export type BrowserGetSessionFrameError = BrowserGetSessionFrameErrors[keyof BrowserGetSessionFrameErrors];
70248
+ export type BrowserGetSessionFrameResponses = {
70249
+ /**
70250
+ * JPEG 画面帧,最多 2 MiB。
70251
+ */
70252
+ 200: Blob | File;
70253
+ };
70254
+ export type BrowserGetSessionFrameResponse = BrowserGetSessionFrameResponses[keyof BrowserGetSessionFrameResponses];
70255
+ export type BrowserListContextsData = {
70256
+ body?: never;
70257
+ path?: never;
70258
+ query?: {
70259
+ /**
70260
+ * 按登录态名称精确匹配;名称在当前账户内唯一,所以最多返回一条。省略时列出全部登录态。
70261
+ */
70262
+ name?: string;
70263
+ /**
70264
+ * 登录态 ID;使用创建或列出登录态返回的 id,以 bsc_ 开头。
70265
+ */
70266
+ cursor?: string;
70267
+ /**
70268
+ * 每页最多返回的登录态数量;默认 25,范围 1–100。
70269
+ */
70270
+ limit?: number;
70271
+ };
70272
+ url: '/browser/v1/contexts';
70273
+ };
70274
+ export type BrowserListContextsErrors = {
70275
+ /**
70276
+ * INVALID_PARAMS / INVALID_FILTER / INVALID_PAGE_TOKEN
70277
+ */
70278
+ 400: BrowserError;
70279
+ /**
70280
+ * UNAUTHENTICATED / CONNECT_SIGNATURE_INVALID
70281
+ */
70282
+ 401: BrowserError;
70283
+ /**
70284
+ * INSUFFICIENT_BALANCE / QUOTA_EXHAUSTED
70285
+ */
70286
+ 402: BrowserError;
70287
+ /**
70288
+ * PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
70289
+ */
70290
+ 403: BrowserError;
70291
+ /**
70292
+ * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
70293
+ */
70294
+ 404: BrowserError;
70295
+ /**
70296
+ * SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
70297
+ */
70298
+ 409: BrowserError;
70299
+ /**
70300
+ * BROWSER_REVOKED
70301
+ */
70302
+ 410: BrowserError;
70303
+ /**
70304
+ * ACTION_RESULT_TOO_LARGE
70305
+ */
70306
+ 413: BrowserError;
70307
+ /**
70308
+ * CONCURRENCY_LIMIT / RATE_LIMITED / PROVIDER_CAPACITY
70309
+ */
70310
+ 429: BrowserError;
70311
+ /**
70312
+ * INTERNAL
70313
+ */
70314
+ 500: BrowserError;
70315
+ /**
70316
+ * NOT_IMPLEMENTED / PROVIDER_UNSUPPORTED
70317
+ */
70318
+ 501: BrowserError;
70319
+ /**
70320
+ * PROVIDER_FAILED
70321
+ */
70322
+ 502: BrowserError;
70323
+ /**
70324
+ * BROWSER_OFFLINE / SERVICE_UNAVAILABLE
70325
+ */
70326
+ 503: BrowserError;
70327
+ /**
70328
+ * ACTION_TIMEOUT
70329
+ */
70330
+ 504: BrowserError;
70331
+ };
70332
+ export type BrowserListContextsError = BrowserListContextsErrors[keyof BrowserListContextsErrors];
70333
+ export type BrowserListContextsResponses = {
70334
+ /**
70335
+ * 分页查询结果,包含本页记录和下一页游标。
70336
+ */
70337
+ 200: {
70338
+ /**
70339
+ * 本页查询匹配的记录;没有匹配项时为空数组。
70340
+ */
70341
+ data: Array<BrowserContext>;
70342
+ /**
70343
+ * 下一页游标;原样传入 cursor,null 表示没有更多结果。
70344
+ */
70345
+ nextCursor: string | null;
70346
+ };
70347
+ };
70348
+ export type BrowserListContextsResponse = BrowserListContextsResponses[keyof BrowserListContextsResponses];
70349
+ export type BrowserCreateContextData = {
70350
+ body: {
70351
+ /**
70352
+ * 兼容项目字段;传入值被忽略,创建结果的 projectId 固定为 default。
70353
+ */
70354
+ projectId?: string;
70355
+ /**
70356
+ * 登录态名称;非空时为 1–128 个 ASCII 字母、数字或 . _ : -,在当前账户内唯一;空字符串表示不设名称或清除名称。
70357
+ */
70358
+ name?: '' | unknown;
70359
+ /**
70360
+ * 自定义字符串标签;最多 32 项,键最多 128 个 UTF-8 字节,值最多 1024 个 UTF-8 字节。
70361
+ */
70362
+ labels?: {
70363
+ [key: string]: string;
70364
+ };
70365
+ };
70366
+ path?: never;
70367
+ query?: never;
70368
+ url: '/browser/v1/contexts';
70369
+ };
70370
+ export type BrowserCreateContextErrors = {
70371
+ /**
70372
+ * INVALID_PARAMS / INVALID_FILTER / INVALID_PAGE_TOKEN
70373
+ */
70374
+ 400: BrowserError;
70375
+ /**
70376
+ * UNAUTHENTICATED / CONNECT_SIGNATURE_INVALID
70377
+ */
70378
+ 401: BrowserError;
70379
+ /**
70380
+ * INSUFFICIENT_BALANCE / QUOTA_EXHAUSTED
70381
+ */
70382
+ 402: BrowserError;
70383
+ /**
70384
+ * PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
70385
+ */
70386
+ 403: BrowserError;
70387
+ /**
70388
+ * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
70389
+ */
70390
+ 404: BrowserError;
70391
+ /**
70392
+ * SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
70393
+ */
70394
+ 409: BrowserError;
70395
+ /**
70396
+ * BROWSER_REVOKED
70397
+ */
70398
+ 410: BrowserError;
70399
+ /**
70400
+ * ACTION_RESULT_TOO_LARGE
70401
+ */
70402
+ 413: BrowserError;
70403
+ /**
70404
+ * CONCURRENCY_LIMIT / RATE_LIMITED / PROVIDER_CAPACITY
70405
+ */
70406
+ 429: BrowserError;
70407
+ /**
70408
+ * INTERNAL
70409
+ */
70410
+ 500: BrowserError;
70411
+ /**
70412
+ * NOT_IMPLEMENTED / PROVIDER_UNSUPPORTED
70413
+ */
70414
+ 501: BrowserError;
70415
+ /**
70416
+ * PROVIDER_FAILED
70417
+ */
70418
+ 502: BrowserError;
70419
+ /**
70420
+ * BROWSER_OFFLINE / SERVICE_UNAVAILABLE
70421
+ */
70422
+ 503: BrowserError;
70423
+ /**
70424
+ * ACTION_TIMEOUT
70425
+ */
70426
+ 504: BrowserError;
70427
+ };
70428
+ export type BrowserCreateContextError = BrowserCreateContextErrors[keyof BrowserCreateContextErrors];
70429
+ export type BrowserCreateContextResponses = {
70430
+ /**
70431
+ * 请求成功。
70432
+ */
70433
+ 201: BrowserContextCreateResult;
70434
+ };
70435
+ export type BrowserCreateContextResponse = BrowserCreateContextResponses[keyof BrowserCreateContextResponses];
70436
+ export type BrowserDeleteContextData = {
70437
+ body?: never;
70438
+ path: {
70439
+ /**
70440
+ * 登录态 ID;使用创建或列出登录态返回的 id,以 bsc_ 开头。
70441
+ */
70442
+ contextId: string;
70443
+ };
70444
+ query?: never;
70445
+ url: '/browser/v1/contexts/{contextId}';
70446
+ };
70447
+ export type BrowserDeleteContextErrors = {
70448
+ /**
70449
+ * INVALID_PARAMS / INVALID_FILTER / INVALID_PAGE_TOKEN
70450
+ */
70451
+ 400: BrowserError;
70452
+ /**
70453
+ * UNAUTHENTICATED / CONNECT_SIGNATURE_INVALID
70454
+ */
70455
+ 401: BrowserError;
70456
+ /**
70457
+ * INSUFFICIENT_BALANCE / QUOTA_EXHAUSTED
70458
+ */
70459
+ 402: BrowserError;
70460
+ /**
70461
+ * PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
69903
70462
  */
69904
70463
  403: BrowserError;
69905
70464
  /**
69906
- * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
70465
+ * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
69907
70466
  */
69908
70467
  404: BrowserError;
69909
70468
  /**
69910
- * SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
70469
+ * SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
69911
70470
  */
69912
70471
  409: BrowserError;
70472
+ /**
70473
+ * BROWSER_REVOKED
70474
+ */
70475
+ 410: BrowserError;
70476
+ /**
70477
+ * ACTION_RESULT_TOO_LARGE
70478
+ */
70479
+ 413: BrowserError;
70480
+ /**
70481
+ * CONCURRENCY_LIMIT / RATE_LIMITED / PROVIDER_CAPACITY
70482
+ */
70483
+ 429: BrowserError;
70484
+ /**
70485
+ * INTERNAL
70486
+ */
70487
+ 500: BrowserError;
70488
+ /**
70489
+ * NOT_IMPLEMENTED / PROVIDER_UNSUPPORTED
70490
+ */
70491
+ 501: BrowserError;
70492
+ /**
70493
+ * PROVIDER_FAILED
70494
+ */
70495
+ 502: BrowserError;
70496
+ /**
70497
+ * BROWSER_OFFLINE / SERVICE_UNAVAILABLE
70498
+ */
70499
+ 503: BrowserError;
70500
+ /**
70501
+ * ACTION_TIMEOUT
70502
+ */
70503
+ 504: BrowserError;
70504
+ };
70505
+ export type BrowserDeleteContextError = BrowserDeleteContextErrors[keyof BrowserDeleteContextErrors];
70506
+ export type BrowserDeleteContextResponses = {
70507
+ /**
70508
+ * 请求成功。
70509
+ */
70510
+ 200: {
70511
+ /**
70512
+ * 登录态及保存内容已删除,成功时固定返回 true。
70513
+ */
70514
+ deleted: true;
70515
+ };
70516
+ };
70517
+ export type BrowserDeleteContextResponse = BrowserDeleteContextResponses[keyof BrowserDeleteContextResponses];
70518
+ export type BrowserGetContextData = {
70519
+ body?: never;
70520
+ path: {
70521
+ /**
70522
+ * 登录态 ID;使用创建或列出登录态返回的 id,以 bsc_ 开头。
70523
+ */
70524
+ contextId: string;
70525
+ };
70526
+ query?: never;
70527
+ url: '/browser/v1/contexts/{contextId}';
70528
+ };
70529
+ export type BrowserGetContextErrors = {
70530
+ /**
70531
+ * INVALID_PARAMS / INVALID_FILTER / INVALID_PAGE_TOKEN
70532
+ */
70533
+ 400: BrowserError;
70534
+ /**
70535
+ * UNAUTHENTICATED / CONNECT_SIGNATURE_INVALID
70536
+ */
70537
+ 401: BrowserError;
70538
+ /**
70539
+ * INSUFFICIENT_BALANCE / QUOTA_EXHAUSTED
70540
+ */
70541
+ 402: BrowserError;
70542
+ /**
70543
+ * PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
70544
+ */
70545
+ 403: BrowserError;
70546
+ /**
70547
+ * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
70548
+ */
70549
+ 404: BrowserError;
70550
+ /**
70551
+ * SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
70552
+ */
70553
+ 409: BrowserError;
70554
+ /**
70555
+ * BROWSER_REVOKED
70556
+ */
70557
+ 410: BrowserError;
70558
+ /**
70559
+ * ACTION_RESULT_TOO_LARGE
70560
+ */
70561
+ 413: BrowserError;
70562
+ /**
70563
+ * CONCURRENCY_LIMIT / RATE_LIMITED / PROVIDER_CAPACITY
70564
+ */
70565
+ 429: BrowserError;
70566
+ /**
70567
+ * INTERNAL
70568
+ */
70569
+ 500: BrowserError;
70570
+ /**
70571
+ * NOT_IMPLEMENTED / PROVIDER_UNSUPPORTED
70572
+ */
70573
+ 501: BrowserError;
70574
+ /**
70575
+ * PROVIDER_FAILED
70576
+ */
70577
+ 502: BrowserError;
70578
+ /**
70579
+ * BROWSER_OFFLINE / SERVICE_UNAVAILABLE
70580
+ */
70581
+ 503: BrowserError;
70582
+ /**
70583
+ * ACTION_TIMEOUT
70584
+ */
70585
+ 504: BrowserError;
70586
+ };
70587
+ export type BrowserGetContextError = BrowserGetContextErrors[keyof BrowserGetContextErrors];
70588
+ export type BrowserGetContextResponses = {
70589
+ /**
70590
+ * 请求成功。
70591
+ */
70592
+ 200: BrowserContext;
70593
+ };
70594
+ export type BrowserGetContextResponse = BrowserGetContextResponses[keyof BrowserGetContextResponses];
70595
+ export type BrowserUpdateContextData = {
70596
+ body: {
70597
+ /**
70598
+ * 登录态名称;非空时为 1–128 个 ASCII 字母、数字或 . _ : -,在当前账户内唯一;空字符串表示不设名称或清除名称。
70599
+ */
70600
+ name?: '' | unknown;
70601
+ /**
70602
+ * 自定义字符串标签;最多 32 项,键最多 128 个 UTF-8 字节,值最多 1024 个 UTF-8 字节。 更新时整体替换;空对象清除标签,省略则保留。
70603
+ */
70604
+ labels?: {
70605
+ [key: string]: string;
70606
+ };
70607
+ };
70608
+ path: {
70609
+ /**
70610
+ * 登录态 ID;使用创建或列出登录态返回的 id,以 bsc_ 开头。
70611
+ */
70612
+ contextId: string;
70613
+ };
70614
+ query?: never;
70615
+ url: '/browser/v1/contexts/{contextId}';
70616
+ };
70617
+ export type BrowserUpdateContextErrors = {
70618
+ /**
70619
+ * INVALID_PARAMS / INVALID_FILTER / INVALID_PAGE_TOKEN
70620
+ */
70621
+ 400: BrowserError;
70622
+ /**
70623
+ * UNAUTHENTICATED / CONNECT_SIGNATURE_INVALID
70624
+ */
70625
+ 401: BrowserError;
70626
+ /**
70627
+ * INSUFFICIENT_BALANCE / QUOTA_EXHAUSTED
70628
+ */
70629
+ 402: BrowserError;
70630
+ /**
70631
+ * PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
70632
+ */
70633
+ 403: BrowserError;
70634
+ /**
70635
+ * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
70636
+ */
70637
+ 404: BrowserError;
70638
+ /**
70639
+ * SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
70640
+ */
70641
+ 409: BrowserError;
70642
+ /**
70643
+ * BROWSER_REVOKED
70644
+ */
70645
+ 410: BrowserError;
70646
+ /**
70647
+ * ACTION_RESULT_TOO_LARGE
70648
+ */
70649
+ 413: BrowserError;
70650
+ /**
70651
+ * CONCURRENCY_LIMIT / RATE_LIMITED / PROVIDER_CAPACITY
70652
+ */
70653
+ 429: BrowserError;
70654
+ /**
70655
+ * INTERNAL
70656
+ */
70657
+ 500: BrowserError;
70658
+ /**
70659
+ * NOT_IMPLEMENTED / PROVIDER_UNSUPPORTED
70660
+ */
70661
+ 501: BrowserError;
70662
+ /**
70663
+ * PROVIDER_FAILED
70664
+ */
70665
+ 502: BrowserError;
70666
+ /**
70667
+ * BROWSER_OFFLINE / SERVICE_UNAVAILABLE
70668
+ */
70669
+ 503: BrowserError;
70670
+ /**
70671
+ * ACTION_TIMEOUT
70672
+ */
70673
+ 504: BrowserError;
70674
+ };
70675
+ export type BrowserUpdateContextError = BrowserUpdateContextErrors[keyof BrowserUpdateContextErrors];
70676
+ export type BrowserUpdateContextResponses = {
70677
+ /**
70678
+ * 请求成功。
70679
+ */
70680
+ 200: BrowserContext;
70681
+ };
70682
+ export type BrowserUpdateContextResponse = BrowserUpdateContextResponses[keyof BrowserUpdateContextResponses];
70683
+ export type BrowserCreateByobPairingData = {
70684
+ body?: never;
70685
+ path?: never;
70686
+ query?: never;
70687
+ url: '/browser/v1/byob/pairings';
70688
+ };
70689
+ export type BrowserCreateByobPairingErrors = {
70690
+ /**
70691
+ * INVALID_PARAMS / INVALID_FILTER / INVALID_PAGE_TOKEN
70692
+ */
70693
+ 400: BrowserError;
70694
+ /**
70695
+ * UNAUTHENTICATED / CONNECT_SIGNATURE_INVALID
70696
+ */
70697
+ 401: BrowserError;
70698
+ /**
70699
+ * INSUFFICIENT_BALANCE / QUOTA_EXHAUSTED
70700
+ */
70701
+ 402: BrowserError;
70702
+ /**
70703
+ * PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
70704
+ */
70705
+ 403: BrowserError;
70706
+ /**
70707
+ * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
70708
+ */
70709
+ 404: BrowserError;
70710
+ /**
70711
+ * SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
70712
+ */
70713
+ 409: BrowserError;
70714
+ /**
70715
+ * BROWSER_REVOKED
70716
+ */
70717
+ 410: BrowserError;
70718
+ /**
70719
+ * ACTION_RESULT_TOO_LARGE
70720
+ */
70721
+ 413: BrowserError;
70722
+ /**
70723
+ * CONCURRENCY_LIMIT / RATE_LIMITED / PROVIDER_CAPACITY
70724
+ */
70725
+ 429: BrowserError;
70726
+ /**
70727
+ * INTERNAL
70728
+ */
70729
+ 500: BrowserError;
70730
+ /**
70731
+ * NOT_IMPLEMENTED / PROVIDER_UNSUPPORTED
70732
+ */
70733
+ 501: BrowserError;
70734
+ /**
70735
+ * PROVIDER_FAILED
70736
+ */
70737
+ 502: BrowserError;
70738
+ /**
70739
+ * BROWSER_OFFLINE / SERVICE_UNAVAILABLE
70740
+ */
70741
+ 503: BrowserError;
70742
+ /**
70743
+ * ACTION_TIMEOUT
70744
+ */
70745
+ 504: BrowserError;
70746
+ };
70747
+ export type BrowserCreateByobPairingError = BrowserCreateByobPairingErrors[keyof BrowserCreateByobPairingErrors];
70748
+ export type BrowserCreateByobPairingResponses = {
70749
+ /**
70750
+ * 请求成功。
70751
+ */
70752
+ 201: BrowserByobPairing;
70753
+ };
70754
+ export type BrowserCreateByobPairingResponse = BrowserCreateByobPairingResponses[keyof BrowserCreateByobPairingResponses];
70755
+ export type BrowserListByobBrowsersData = {
70756
+ body?: never;
70757
+ path?: never;
70758
+ query?: {
70759
+ /**
70760
+ * 上一页返回的 nextCursor,原样传入;省略时读取第一页。
70761
+ */
70762
+ cursor?: string;
70763
+ /**
70764
+ * 每页最多返回的浏览器数量;默认 50,范围 1–100。
70765
+ */
70766
+ limit?: number;
70767
+ };
70768
+ url: '/browser/v1/byob/browsers';
70769
+ };
70770
+ export type BrowserListByobBrowsersErrors = {
70771
+ /**
70772
+ * INVALID_PARAMS / INVALID_FILTER / INVALID_PAGE_TOKEN
70773
+ */
70774
+ 400: BrowserError;
70775
+ /**
70776
+ * UNAUTHENTICATED / CONNECT_SIGNATURE_INVALID
70777
+ */
70778
+ 401: BrowserError;
70779
+ /**
70780
+ * INSUFFICIENT_BALANCE / QUOTA_EXHAUSTED
70781
+ */
70782
+ 402: BrowserError;
70783
+ /**
70784
+ * PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
70785
+ */
70786
+ 403: BrowserError;
70787
+ /**
70788
+ * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
70789
+ */
70790
+ 404: BrowserError;
70791
+ /**
70792
+ * SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
70793
+ */
70794
+ 409: BrowserError;
70795
+ /**
70796
+ * BROWSER_REVOKED
70797
+ */
70798
+ 410: BrowserError;
69913
70799
  /**
69914
70800
  * ACTION_RESULT_TOO_LARGE
69915
70801
  */
@@ -69931,7 +70817,7 @@ export type BrowserGetSessionFrameErrors = {
69931
70817
  */
69932
70818
  502: BrowserError;
69933
70819
  /**
69934
- * SERVICE_UNAVAILABLE
70820
+ * BROWSER_OFFLINE / SERVICE_UNAVAILABLE
69935
70821
  */
69936
70822
  503: BrowserError;
69937
70823
  /**
@@ -69939,34 +70825,35 @@ export type BrowserGetSessionFrameErrors = {
69939
70825
  */
69940
70826
  504: BrowserError;
69941
70827
  };
69942
- export type BrowserGetSessionFrameError = BrowserGetSessionFrameErrors[keyof BrowserGetSessionFrameErrors];
69943
- export type BrowserGetSessionFrameResponses = {
70828
+ export type BrowserListByobBrowsersError = BrowserListByobBrowsersErrors[keyof BrowserListByobBrowsersErrors];
70829
+ export type BrowserListByobBrowsersResponses = {
69944
70830
  /**
69945
- * JPEG 画面帧,最多 2 MiB。
70831
+ * 分页列出的自带浏览器,按 ID 升序。
69946
70832
  */
69947
- 200: Blob | File;
69948
- };
69949
- export type BrowserGetSessionFrameResponse = BrowserGetSessionFrameResponses[keyof BrowserGetSessionFrameResponses];
69950
- export type BrowserListContextsData = {
69951
- body?: never;
69952
- path?: never;
69953
- query?: {
70833
+ 200: {
69954
70834
  /**
69955
- * 按登录态名称精确匹配;名称在当前账户内唯一,所以最多返回一条。省略时列出全部登录态。
70835
+ * 本页的自带浏览器;已断开的不在列表里。
69956
70836
  */
69957
- name?: string;
70837
+ data: Array<BrowserByobBrowser>;
69958
70838
  /**
69959
- * 登录态 ID;使用创建或列出登录态返回的 id,以 bsc_ 开头。
70839
+ * 下一页游标;原样传入 cursor,null 表示没有更多结果。
69960
70840
  */
69961
- cursor?: string;
70841
+ nextCursor: string | null;
70842
+ };
70843
+ };
70844
+ export type BrowserListByobBrowsersResponse = BrowserListByobBrowsersResponses[keyof BrowserListByobBrowsersResponses];
70845
+ export type BrowserGetByobBrowserData = {
70846
+ body?: never;
70847
+ path: {
69962
70848
  /**
69963
- * 每页最多返回的登录态数量;默认 25,范围 1–100。
70849
+ * 自带浏览器 ID,以 byb_ 开头;使用配对认领或列出自带浏览器返回的 id。
69964
70850
  */
69965
- limit?: number;
70851
+ browser_id: string;
69966
70852
  };
69967
- url: '/browser/v1/contexts';
70853
+ query?: never;
70854
+ url: '/browser/v1/byob/browsers/{browser_id}';
69968
70855
  };
69969
- export type BrowserListContextsErrors = {
70856
+ export type BrowserGetByobBrowserErrors = {
69970
70857
  /**
69971
70858
  * INVALID_PARAMS / INVALID_FILTER / INVALID_PAGE_TOKEN
69972
70859
  */
@@ -69980,17 +70867,21 @@ export type BrowserListContextsErrors = {
69980
70867
  */
69981
70868
  402: BrowserError;
69982
70869
  /**
69983
- * PERMISSION_DENIED / ACCOUNT_SUSPENDED
70870
+ * PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
69984
70871
  */
69985
70872
  403: BrowserError;
69986
70873
  /**
69987
- * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
70874
+ * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
69988
70875
  */
69989
70876
  404: BrowserError;
69990
70877
  /**
69991
- * SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
70878
+ * SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
69992
70879
  */
69993
70880
  409: BrowserError;
70881
+ /**
70882
+ * BROWSER_REVOKED
70883
+ */
70884
+ 410: BrowserError;
69994
70885
  /**
69995
70886
  * ACTION_RESULT_TOO_LARGE
69996
70887
  */
@@ -70012,7 +70903,7 @@ export type BrowserListContextsErrors = {
70012
70903
  */
70013
70904
  502: BrowserError;
70014
70905
  /**
70015
- * SERVICE_UNAVAILABLE
70906
+ * BROWSER_OFFLINE / SERVICE_UNAVAILABLE
70016
70907
  */
70017
70908
  503: BrowserError;
70018
70909
  /**
@@ -70020,45 +70911,39 @@ export type BrowserListContextsErrors = {
70020
70911
  */
70021
70912
  504: BrowserError;
70022
70913
  };
70023
- export type BrowserListContextsError = BrowserListContextsErrors[keyof BrowserListContextsErrors];
70024
- export type BrowserListContextsResponses = {
70914
+ export type BrowserGetByobBrowserError = BrowserGetByobBrowserErrors[keyof BrowserGetByobBrowserErrors];
70915
+ export type BrowserGetByobBrowserResponses = {
70025
70916
  /**
70026
- * 分页查询结果,包含本页记录和下一页游标。
70917
+ * 请求成功。
70027
70918
  */
70028
- 200: {
70029
- /**
70030
- * 本页查询匹配的记录;没有匹配项时为空数组。
70031
- */
70032
- data: Array<BrowserContext>;
70033
- /**
70034
- * 下一页游标;原样传入 cursor,null 表示没有更多结果。
70035
- */
70036
- nextCursor: string | null;
70037
- };
70919
+ 200: BrowserByobBrowser;
70038
70920
  };
70039
- export type BrowserListContextsResponse = BrowserListContextsResponses[keyof BrowserListContextsResponses];
70040
- export type BrowserCreateContextData = {
70921
+ export type BrowserGetByobBrowserResponse = BrowserGetByobBrowserResponses[keyof BrowserGetByobBrowserResponses];
70922
+ export type BrowserUpdateByobBrowserData = {
70041
70923
  body: {
70042
70924
  /**
70043
- * 兼容项目字段;传入值被忽略,创建结果的 projectId 固定为 default。
70925
+ * 新的显示名称,1–80 个字符。
70044
70926
  */
70045
- projectId?: string;
70927
+ name?: string;
70046
70928
  /**
70047
- * 登录态名称;非空时为 1–128 个 ASCII 字母、数字或 . _ : -,在当前账户内唯一;空字符串表示不设名称或清除名称。
70929
+ * 整体替换被授权的智能体 ID 列表;传空数组撤销全部授权。
70048
70930
  */
70049
- name?: '' | unknown;
70931
+ granted_agents?: Array<string>;
70050
70932
  /**
70051
- * 自定义字符串标签;最多 32 项,键最多 128 个 UTF-8 字节,值最多 1024 个 UTF-8 字节。
70933
+ * 整体替换允许站点列表;传空数组表示不限制。
70052
70934
  */
70053
- labels?: {
70054
- [key: string]: string;
70055
- };
70935
+ allowed_sites?: Array<string>;
70936
+ };
70937
+ path: {
70938
+ /**
70939
+ * 自带浏览器 ID,以 byb_ 开头;使用配对认领或列出自带浏览器返回的 id。
70940
+ */
70941
+ browser_id: string;
70056
70942
  };
70057
- path?: never;
70058
70943
  query?: never;
70059
- url: '/browser/v1/contexts';
70944
+ url: '/browser/v1/byob/browsers/{browser_id}';
70060
70945
  };
70061
- export type BrowserCreateContextErrors = {
70946
+ export type BrowserUpdateByobBrowserErrors = {
70062
70947
  /**
70063
70948
  * INVALID_PARAMS / INVALID_FILTER / INVALID_PAGE_TOKEN
70064
70949
  */
@@ -70072,17 +70957,21 @@ export type BrowserCreateContextErrors = {
70072
70957
  */
70073
70958
  402: BrowserError;
70074
70959
  /**
70075
- * PERMISSION_DENIED / ACCOUNT_SUSPENDED
70960
+ * PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
70076
70961
  */
70077
70962
  403: BrowserError;
70078
70963
  /**
70079
- * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
70964
+ * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
70080
70965
  */
70081
70966
  404: BrowserError;
70082
70967
  /**
70083
- * SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
70968
+ * SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
70084
70969
  */
70085
70970
  409: BrowserError;
70971
+ /**
70972
+ * BROWSER_REVOKED
70973
+ */
70974
+ 410: BrowserError;
70086
70975
  /**
70087
70976
  * ACTION_RESULT_TOO_LARGE
70088
70977
  */
@@ -70104,7 +70993,7 @@ export type BrowserCreateContextErrors = {
70104
70993
  */
70105
70994
  502: BrowserError;
70106
70995
  /**
70107
- * SERVICE_UNAVAILABLE
70996
+ * BROWSER_OFFLINE / SERVICE_UNAVAILABLE
70108
70997
  */
70109
70998
  503: BrowserError;
70110
70999
  /**
@@ -70112,26 +71001,26 @@ export type BrowserCreateContextErrors = {
70112
71001
  */
70113
71002
  504: BrowserError;
70114
71003
  };
70115
- export type BrowserCreateContextError = BrowserCreateContextErrors[keyof BrowserCreateContextErrors];
70116
- export type BrowserCreateContextResponses = {
71004
+ export type BrowserUpdateByobBrowserError = BrowserUpdateByobBrowserErrors[keyof BrowserUpdateByobBrowserErrors];
71005
+ export type BrowserUpdateByobBrowserResponses = {
70117
71006
  /**
70118
71007
  * 请求成功。
70119
71008
  */
70120
- 201: BrowserContextCreateResult;
71009
+ 200: BrowserByobBrowser;
70121
71010
  };
70122
- export type BrowserCreateContextResponse = BrowserCreateContextResponses[keyof BrowserCreateContextResponses];
70123
- export type BrowserDeleteContextData = {
71011
+ export type BrowserUpdateByobBrowserResponse = BrowserUpdateByobBrowserResponses[keyof BrowserUpdateByobBrowserResponses];
71012
+ export type BrowserDisconnectByobBrowserData = {
70124
71013
  body?: never;
70125
71014
  path: {
70126
71015
  /**
70127
- * 登录态 ID;使用创建或列出登录态返回的 id,以 bsc_ 开头。
71016
+ * 自带浏览器 ID,以 byb_ 开头;使用配对认领或列出自带浏览器返回的 id。
70128
71017
  */
70129
- contextId: string;
71018
+ browser_id: string;
70130
71019
  };
70131
71020
  query?: never;
70132
- url: '/browser/v1/contexts/{contextId}';
71021
+ url: '/browser/v1/byob/browsers/{browser_id}/disconnect';
70133
71022
  };
70134
- export type BrowserDeleteContextErrors = {
71023
+ export type BrowserDisconnectByobBrowserErrors = {
70135
71024
  /**
70136
71025
  * INVALID_PARAMS / INVALID_FILTER / INVALID_PAGE_TOKEN
70137
71026
  */
@@ -70145,17 +71034,21 @@ export type BrowserDeleteContextErrors = {
70145
71034
  */
70146
71035
  402: BrowserError;
70147
71036
  /**
70148
- * PERMISSION_DENIED / ACCOUNT_SUSPENDED
71037
+ * PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
70149
71038
  */
70150
71039
  403: BrowserError;
70151
71040
  /**
70152
- * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
71041
+ * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
70153
71042
  */
70154
71043
  404: BrowserError;
70155
71044
  /**
70156
- * SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
71045
+ * SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
70157
71046
  */
70158
71047
  409: BrowserError;
71048
+ /**
71049
+ * BROWSER_REVOKED
71050
+ */
71051
+ 410: BrowserError;
70159
71052
  /**
70160
71053
  * ACTION_RESULT_TOO_LARGE
70161
71054
  */
@@ -70177,7 +71070,7 @@ export type BrowserDeleteContextErrors = {
70177
71070
  */
70178
71071
  502: BrowserError;
70179
71072
  /**
70180
- * SERVICE_UNAVAILABLE
71073
+ * BROWSER_OFFLINE / SERVICE_UNAVAILABLE
70181
71074
  */
70182
71075
  503: BrowserError;
70183
71076
  /**
@@ -70185,31 +71078,26 @@ export type BrowserDeleteContextErrors = {
70185
71078
  */
70186
71079
  504: BrowserError;
70187
71080
  };
70188
- export type BrowserDeleteContextError = BrowserDeleteContextErrors[keyof BrowserDeleteContextErrors];
70189
- export type BrowserDeleteContextResponses = {
71081
+ export type BrowserDisconnectByobBrowserError = BrowserDisconnectByobBrowserErrors[keyof BrowserDisconnectByobBrowserErrors];
71082
+ export type BrowserDisconnectByobBrowserResponses = {
70190
71083
  /**
70191
71084
  * 请求成功。
70192
71085
  */
70193
- 200: {
70194
- /**
70195
- * 登录态及保存内容已删除,成功时固定返回 true。
70196
- */
70197
- deleted: true;
70198
- };
71086
+ 200: BrowserByobBrowser;
70199
71087
  };
70200
- export type BrowserDeleteContextResponse = BrowserDeleteContextResponses[keyof BrowserDeleteContextResponses];
70201
- export type BrowserGetContextData = {
71088
+ export type BrowserDisconnectByobBrowserResponse = BrowserDisconnectByobBrowserResponses[keyof BrowserDisconnectByobBrowserResponses];
71089
+ export type BrowserReadByobPairingData = {
70202
71090
  body?: never;
70203
71091
  path: {
70204
71092
  /**
70205
- * 登录态 ID;使用创建或列出登录态返回的 id,以 bsc_ 开头。
71093
+ * 8 位配对码,来自创建配对码的结果。
70206
71094
  */
70207
- contextId: string;
71095
+ code: string;
70208
71096
  };
70209
71097
  query?: never;
70210
- url: '/browser/v1/contexts/{contextId}';
71098
+ url: '/browser/v1/byob/pairings/{code}';
70211
71099
  };
70212
- export type BrowserGetContextErrors = {
71100
+ export type BrowserReadByobPairingErrors = {
70213
71101
  /**
70214
71102
  * INVALID_PARAMS / INVALID_FILTER / INVALID_PAGE_TOKEN
70215
71103
  */
@@ -70223,17 +71111,21 @@ export type BrowserGetContextErrors = {
70223
71111
  */
70224
71112
  402: BrowserError;
70225
71113
  /**
70226
- * PERMISSION_DENIED / ACCOUNT_SUSPENDED
71114
+ * PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
70227
71115
  */
70228
71116
  403: BrowserError;
70229
71117
  /**
70230
- * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
71118
+ * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
70231
71119
  */
70232
71120
  404: BrowserError;
70233
71121
  /**
70234
- * SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
71122
+ * SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
70235
71123
  */
70236
71124
  409: BrowserError;
71125
+ /**
71126
+ * BROWSER_REVOKED
71127
+ */
71128
+ 410: BrowserError;
70237
71129
  /**
70238
71130
  * ACTION_RESULT_TOO_LARGE
70239
71131
  */
@@ -70255,7 +71147,7 @@ export type BrowserGetContextErrors = {
70255
71147
  */
70256
71148
  502: BrowserError;
70257
71149
  /**
70258
- * SERVICE_UNAVAILABLE
71150
+ * BROWSER_OFFLINE / SERVICE_UNAVAILABLE
70259
71151
  */
70260
71152
  503: BrowserError;
70261
71153
  /**
@@ -70263,37 +71155,26 @@ export type BrowserGetContextErrors = {
70263
71155
  */
70264
71156
  504: BrowserError;
70265
71157
  };
70266
- export type BrowserGetContextError = BrowserGetContextErrors[keyof BrowserGetContextErrors];
70267
- export type BrowserGetContextResponses = {
71158
+ export type BrowserReadByobPairingError = BrowserReadByobPairingErrors[keyof BrowserReadByobPairingErrors];
71159
+ export type BrowserReadByobPairingResponses = {
70268
71160
  /**
70269
71161
  * 请求成功。
70270
71162
  */
70271
- 200: BrowserContext;
71163
+ 200: BrowserByobPairingView;
70272
71164
  };
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
- };
71165
+ export type BrowserReadByobPairingResponse = BrowserReadByobPairingResponses[keyof BrowserReadByobPairingResponses];
71166
+ export type BrowserClaimByobPairingData = {
71167
+ body: BrowserByobClaim;
70287
71168
  path: {
70288
71169
  /**
70289
- * 登录态 ID;使用创建或列出登录态返回的 id,以 bsc_ 开头。
71170
+ * 8 位配对码,来自创建配对码的结果。
70290
71171
  */
70291
- contextId: string;
71172
+ code: string;
70292
71173
  };
70293
71174
  query?: never;
70294
- url: '/browser/v1/contexts/{contextId}';
71175
+ url: '/browser/v1/byob/pairings/{code}/claim';
70295
71176
  };
70296
- export type BrowserUpdateContextErrors = {
71177
+ export type BrowserClaimByobPairingErrors = {
70297
71178
  /**
70298
71179
  * INVALID_PARAMS / INVALID_FILTER / INVALID_PAGE_TOKEN
70299
71180
  */
@@ -70307,17 +71188,21 @@ export type BrowserUpdateContextErrors = {
70307
71188
  */
70308
71189
  402: BrowserError;
70309
71190
  /**
70310
- * PERMISSION_DENIED / ACCOUNT_SUSPENDED
71191
+ * PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
70311
71192
  */
70312
71193
  403: BrowserError;
70313
71194
  /**
70314
- * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
71195
+ * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
70315
71196
  */
70316
71197
  404: BrowserError;
70317
71198
  /**
70318
- * SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
71199
+ * SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
70319
71200
  */
70320
71201
  409: BrowserError;
71202
+ /**
71203
+ * BROWSER_REVOKED
71204
+ */
71205
+ 410: BrowserError;
70321
71206
  /**
70322
71207
  * ACTION_RESULT_TOO_LARGE
70323
71208
  */
@@ -70339,7 +71224,7 @@ export type BrowserUpdateContextErrors = {
70339
71224
  */
70340
71225
  502: BrowserError;
70341
71226
  /**
70342
- * SERVICE_UNAVAILABLE
71227
+ * BROWSER_OFFLINE / SERVICE_UNAVAILABLE
70343
71228
  */
70344
71229
  503: BrowserError;
70345
71230
  /**
@@ -70347,14 +71232,14 @@ export type BrowserUpdateContextErrors = {
70347
71232
  */
70348
71233
  504: BrowserError;
70349
71234
  };
70350
- export type BrowserUpdateContextError = BrowserUpdateContextErrors[keyof BrowserUpdateContextErrors];
70351
- export type BrowserUpdateContextResponses = {
71235
+ export type BrowserClaimByobPairingError = BrowserClaimByobPairingErrors[keyof BrowserClaimByobPairingErrors];
71236
+ export type BrowserClaimByobPairingResponses = {
70352
71237
  /**
70353
- * 请求成功。
71238
+ * 认领成功。
70354
71239
  */
70355
- 200: BrowserContext;
71240
+ 201: BrowserByobClaimResult;
70356
71241
  };
70357
- export type BrowserUpdateContextResponse = BrowserUpdateContextResponses[keyof BrowserUpdateContextResponses];
71242
+ export type BrowserClaimByobPairingResponse = BrowserClaimByobPairingResponses[keyof BrowserClaimByobPairingResponses];
70358
71243
  export type BrowserConnectData = {
70359
71244
  body?: never;
70360
71245
  path?: never;
@@ -70412,17 +71297,21 @@ export type BrowserConnectErrors = {
70412
71297
  */
70413
71298
  402: BrowserError;
70414
71299
  /**
70415
- * PERMISSION_DENIED / ACCOUNT_SUSPENDED
71300
+ * PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
70416
71301
  */
70417
71302
  403: BrowserError;
70418
71303
  /**
70419
- * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
71304
+ * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
70420
71305
  */
70421
71306
  404: BrowserError;
70422
71307
  /**
70423
- * SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
71308
+ * SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
70424
71309
  */
70425
71310
  409: BrowserError;
71311
+ /**
71312
+ * BROWSER_REVOKED
71313
+ */
71314
+ 410: BrowserError;
70426
71315
  /**
70427
71316
  * ACTION_RESULT_TOO_LARGE
70428
71317
  */
@@ -70444,7 +71333,7 @@ export type BrowserConnectErrors = {
70444
71333
  */
70445
71334
  502: BrowserError;
70446
71335
  /**
70447
- * SERVICE_UNAVAILABLE
71336
+ * BROWSER_OFFLINE / SERVICE_UNAVAILABLE
70448
71337
  */
70449
71338
  503: BrowserError;
70450
71339
  /**
@@ -70487,17 +71376,21 @@ export type BrowserLiveViewErrors = {
70487
71376
  */
70488
71377
  402: BrowserError;
70489
71378
  /**
70490
- * PERMISSION_DENIED / ACCOUNT_SUSPENDED
71379
+ * PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
70491
71380
  */
70492
71381
  403: BrowserError;
70493
71382
  /**
70494
- * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
71383
+ * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
70495
71384
  */
70496
71385
  404: BrowserError;
70497
71386
  /**
70498
- * SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
71387
+ * SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
70499
71388
  */
70500
71389
  409: BrowserError;
71390
+ /**
71391
+ * BROWSER_REVOKED
71392
+ */
71393
+ 410: BrowserError;
70501
71394
  /**
70502
71395
  * ACTION_RESULT_TOO_LARGE
70503
71396
  */
@@ -70519,7 +71412,7 @@ export type BrowserLiveViewErrors = {
70519
71412
  */
70520
71413
  502: BrowserError;
70521
71414
  /**
70522
- * SERVICE_UNAVAILABLE
71415
+ * BROWSER_OFFLINE / SERVICE_UNAVAILABLE
70523
71416
  */
70524
71417
  503: BrowserError;
70525
71418
  /**
@@ -70553,17 +71446,21 @@ export type BrowserStreamSessionErrors = {
70553
71446
  */
70554
71447
  402: BrowserError;
70555
71448
  /**
70556
- * PERMISSION_DENIED / ACCOUNT_SUSPENDED
71449
+ * PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
70557
71450
  */
70558
71451
  403: BrowserError;
70559
71452
  /**
70560
- * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
71453
+ * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
70561
71454
  */
70562
71455
  404: BrowserError;
70563
71456
  /**
70564
- * SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
71457
+ * SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
70565
71458
  */
70566
71459
  409: BrowserError;
71460
+ /**
71461
+ * BROWSER_REVOKED
71462
+ */
71463
+ 410: BrowserError;
70567
71464
  /**
70568
71465
  * ACTION_RESULT_TOO_LARGE
70569
71466
  */
@@ -70585,7 +71482,7 @@ export type BrowserStreamSessionErrors = {
70585
71482
  */
70586
71483
  502: BrowserError;
70587
71484
  /**
70588
- * SERVICE_UNAVAILABLE
71485
+ * BROWSER_OFFLINE / SERVICE_UNAVAILABLE
70589
71486
  */
70590
71487
  503: BrowserError;
70591
71488
  /**
@@ -70626,17 +71523,21 @@ export type BrowserStreamSessionFramesErrors = {
70626
71523
  */
70627
71524
  402: BrowserError;
70628
71525
  /**
70629
- * PERMISSION_DENIED / ACCOUNT_SUSPENDED
71526
+ * PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
70630
71527
  */
70631
71528
  403: BrowserError;
70632
71529
  /**
70633
- * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
71530
+ * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
70634
71531
  */
70635
71532
  404: BrowserError;
70636
71533
  /**
70637
- * SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
71534
+ * SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
70638
71535
  */
70639
71536
  409: BrowserError;
71537
+ /**
71538
+ * BROWSER_REVOKED
71539
+ */
71540
+ 410: BrowserError;
70640
71541
  /**
70641
71542
  * ACTION_RESULT_TOO_LARGE
70642
71543
  */
@@ -70658,7 +71559,7 @@ export type BrowserStreamSessionFramesErrors = {
70658
71559
  */
70659
71560
  502: BrowserError;
70660
71561
  /**
70661
- * SERVICE_UNAVAILABLE
71562
+ * BROWSER_OFFLINE / SERVICE_UNAVAILABLE
70662
71563
  */
70663
71564
  503: BrowserError;
70664
71565
  /**
@@ -71054,7 +71955,7 @@ export type FileCreateSignedUploadErrors = {
71054
71955
  */
71055
71956
  401: unknown;
71056
71957
  /**
71057
- * PERMISSION_DENIED or BINDING_READ_ONLY: use a credential with the required create or file-write authority.
71958
+ * 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
71959
  */
71059
71960
  403: unknown;
71060
71961
  };
@@ -77963,10 +78864,18 @@ export type GetOrganizationNotificationsInboxData = {
77963
78864
  url: '/organization/v1/notifications/inbox';
77964
78865
  };
77965
78866
  export type GetOrganizationNotificationsInboxErrors = {
78867
+ /**
78868
+ * `INVALID_PARAMS` from the service for a read it cannot answer (RFC 9457 problem).
78869
+ */
78870
+ 400: unknown;
77966
78871
  /**
77967
78872
  * Missing or invalid credential (RFC 9457 problem).
77968
78873
  */
77969
78874
  401: unknown;
78875
+ /**
78876
+ * 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.
78877
+ */
78878
+ 502: unknown;
77970
78879
  };
77971
78880
  export type GetOrganizationNotificationsInboxResponses = {
77972
78881
  /**
@@ -78009,13 +78918,17 @@ export type ListOrganizationNotificationLettersData = {
78009
78918
  };
78010
78919
  export type ListOrganizationNotificationLettersErrors = {
78011
78920
  /**
78012
- * Invalid status, archived or limit (RFC 9457 problem).
78921
+ * A bad `status`, `archived` or `limit`, or `INVALID_PARAMS` from the service for a cursor it did not issue (RFC 9457 problem).
78013
78922
  */
78014
78923
  400: unknown;
78015
78924
  /**
78016
78925
  * Missing or invalid credential (RFC 9457 problem).
78017
78926
  */
78018
78927
  401: unknown;
78928
+ /**
78929
+ * 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.
78930
+ */
78931
+ 502: unknown;
78019
78932
  };
78020
78933
  export type ListOrganizationNotificationLettersResponses = {
78021
78934
  /**
@@ -78118,7 +79031,7 @@ export type GetOrganizationNotificationLetterData = {
78118
79031
  };
78119
79032
  export type GetOrganizationNotificationLetterErrors = {
78120
79033
  /**
78121
- * The id is not a letter id (RFC 9457 problem).
79034
+ * The id is not a letter id — `INVALID_PARAMS` from the service (RFC 9457 problem).
78122
79035
  */
78123
79036
  400: unknown;
78124
79037
  /**
@@ -78126,9 +79039,13 @@ export type GetOrganizationNotificationLetterErrors = {
78126
79039
  */
78127
79040
  401: unknown;
78128
79041
  /**
78129
- * No such letter in your mailbox (RFC 9457 problem).
79042
+ * 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
79043
  */
78131
79044
  404: unknown;
79045
+ /**
79046
+ * 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.
79047
+ */
79048
+ 502: unknown;
78132
79049
  };
78133
79050
  export type GetOrganizationNotificationLetterResponses = {
78134
79051
  /**
@@ -78218,7 +79135,7 @@ export type ReadOrganizationNotificationLetterData = {
78218
79135
  };
78219
79136
  export type ReadOrganizationNotificationLetterErrors = {
78220
79137
  /**
78221
- * The id is not a letter id (RFC 9457 problem).
79138
+ * The id is not a letter id — `INVALID_PARAMS` from the service (RFC 9457 problem).
78222
79139
  */
78223
79140
  400: unknown;
78224
79141
  /**
@@ -78226,9 +79143,13 @@ export type ReadOrganizationNotificationLetterErrors = {
78226
79143
  */
78227
79144
  401: unknown;
78228
79145
  /**
78229
- * No such letter in your mailbox (RFC 9457 problem).
79146
+ * No such letter in your mailbox in this organization — `MESSAGE_NOT_FOUND` (RFC 9457 problem).
78230
79147
  */
78231
79148
  404: unknown;
79149
+ /**
79150
+ * 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.
79151
+ */
79152
+ 502: unknown;
78232
79153
  };
78233
79154
  export type ReadOrganizationNotificationLetterResponses = {
78234
79155
  /**
@@ -78255,13 +79176,17 @@ export type ReadAllOrganizationNotificationLettersData = {
78255
79176
  };
78256
79177
  export type ReadAllOrganizationNotificationLettersErrors = {
78257
79178
  /**
78258
- * The body is not a JSON object, or kind is unknown (RFC 9457 problem).
79179
+ * The body is not a JSON object, `kind` is unknown, or `INVALID_PARAMS` from the service (RFC 9457 problem).
78259
79180
  */
78260
79181
  400: unknown;
78261
79182
  /**
78262
79183
  * Missing or invalid credential (RFC 9457 problem).
78263
79184
  */
78264
79185
  401: unknown;
79186
+ /**
79187
+ * 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.
79188
+ */
79189
+ 502: unknown;
78265
79190
  };
78266
79191
  export type ReadAllOrganizationNotificationLettersResponses = {
78267
79192
  /**
@@ -78288,7 +79213,7 @@ export type ArchiveOrganizationNotificationLetterData = {
78288
79213
  };
78289
79214
  export type ArchiveOrganizationNotificationLetterErrors = {
78290
79215
  /**
78291
- * The id is not a letter id (RFC 9457 problem).
79216
+ * The id is not a letter id — `INVALID_PARAMS` from the service (RFC 9457 problem).
78292
79217
  */
78293
79218
  400: unknown;
78294
79219
  /**
@@ -78296,9 +79221,13 @@ export type ArchiveOrganizationNotificationLetterErrors = {
78296
79221
  */
78297
79222
  401: unknown;
78298
79223
  /**
78299
- * No such letter in your mailbox (RFC 9457 problem).
79224
+ * No such letter in your mailbox in this organization — `MESSAGE_NOT_FOUND` (RFC 9457 problem).
78300
79225
  */
78301
79226
  404: unknown;
79227
+ /**
79228
+ * 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.
79229
+ */
79230
+ 502: unknown;
78302
79231
  };
78303
79232
  export type ArchiveOrganizationNotificationLetterResponses = {
78304
79233
  /**
@@ -78323,6 +79252,10 @@ export type GetOrganizationNotificationPreferencesErrors = {
78323
79252
  * Missing or invalid credential (RFC 9457 problem).
78324
79253
  */
78325
79254
  401: unknown;
79255
+ /**
79256
+ * 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.
79257
+ */
79258
+ 502: unknown;
78326
79259
  };
78327
79260
  export type GetOrganizationNotificationPreferencesResponses = {
78328
79261
  /**
@@ -78414,7 +79347,7 @@ export type UpdateOrganizationNotificationPreferencesData = {
78414
79347
  };
78415
79348
  export type UpdateOrganizationNotificationPreferencesErrors = {
78416
79349
  /**
78417
- * Invalid switch, unknown category or unoffered channel (RFC 9457 problem).
79350
+ * Invalid switch, unknown category or unoffered channel — `INVALID_PARAMS`, `NOT_CONFIGURABLE` or `CRITICAL_CHANNELS_OFF` from the service (RFC 9457 problem).
78418
79351
  */
78419
79352
  400: unknown;
78420
79353
  /**
@@ -78422,9 +79355,13 @@ export type UpdateOrganizationNotificationPreferencesErrors = {
78422
79355
  */
78423
79356
  401: unknown;
78424
79357
  /**
78425
- * The organization does not let members change their own switches (ORGANIZATION_LOCKED).
79358
+ * The organization does not let members change their own switches — `ORGANIZATION_LOCKED` from the service (RFC 9457 problem).
78426
79359
  */
78427
79360
  403: unknown;
79361
+ /**
79362
+ * 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.
79363
+ */
79364
+ 502: unknown;
78428
79365
  };
78429
79366
  export type UpdateOrganizationNotificationPreferencesResponses = {
78430
79367
  /**
@@ -78446,6 +79383,10 @@ export type GetOrganizationNotificationDefaultsErrors = {
78446
79383
  * Missing or invalid credential (RFC 9457 problem).
78447
79384
  */
78448
79385
  401: unknown;
79386
+ /**
79387
+ * 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.
79388
+ */
79389
+ 502: unknown;
78449
79390
  };
78450
79391
  export type GetOrganizationNotificationDefaultsResponses = {
78451
79392
  /**
@@ -78483,7 +79424,7 @@ export type UpdateOrganizationNotificationDefaultsData = {
78483
79424
  };
78484
79425
  export type UpdateOrganizationNotificationDefaultsErrors = {
78485
79426
  /**
78486
- * Invalid default, unknown category or hidden critical category (RFC 9457 problem).
79427
+ * Invalid default, unknown category or hidden critical category (RFC 9457 problem, `INVALID_PARAMS`).
78487
79428
  */
78488
79429
  400: unknown;
78489
79430
  /**
@@ -78491,9 +79432,13 @@ export type UpdateOrganizationNotificationDefaultsErrors = {
78491
79432
  */
78492
79433
  401: unknown;
78493
79434
  /**
78494
- * The caller is not an owner or admin of this organization.
79435
+ * The caller is not an owner or admin of this organization — `PERMISSION_DENIED` from the service (RFC 9457 problem).
78495
79436
  */
78496
79437
  403: unknown;
79438
+ /**
79439
+ * 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.
79440
+ */
79441
+ 502: unknown;
78497
79442
  };
78498
79443
  export type UpdateOrganizationNotificationDefaultsResponses = {
78499
79444
  /**
@@ -78521,13 +79466,17 @@ export type ListOrganizationNotificationDeliveriesData = {
78521
79466
  };
78522
79467
  export type ListOrganizationNotificationDeliveriesErrors = {
78523
79468
  /**
78524
- * Invalid limit or page cursor (RFC 9457 problem).
79469
+ * Invalid limit, or `INVALID_PARAMS` from the service for a page cursor it did not issue (RFC 9457 problem).
78525
79470
  */
78526
79471
  400: unknown;
78527
79472
  /**
78528
79473
  * Missing or invalid credential (RFC 9457 problem).
78529
79474
  */
78530
79475
  401: unknown;
79476
+ /**
79477
+ * 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.
79478
+ */
79479
+ 502: unknown;
78531
79480
  };
78532
79481
  export type ListOrganizationNotificationDeliveriesResponses = {
78533
79482
  /**
@@ -79794,6 +80743,19 @@ export type ListByodDevicesResponses = {
79794
80743
  * 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
80744
  */
79796
80745
  agent_dirs: Array<string>;
80746
+ /**
80747
+ * 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.
80748
+ */
80749
+ agent_bindings: Array<{
80750
+ /**
80751
+ * The absolute directory the desktop bound to an agent with praxis agent connect.
80752
+ */
80753
+ dir: string;
80754
+ /**
80755
+ * The agent the directory is bound to: its identity number or its agent id.
80756
+ */
80757
+ agent: string;
80758
+ }>;
79797
80759
  /**
79798
80760
  * 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
80761
  */
@@ -79876,6 +80838,19 @@ export type GetByodDeviceResponses = {
79876
80838
  * 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
80839
  */
79878
80840
  agent_dirs: Array<string>;
80841
+ /**
80842
+ * 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.
80843
+ */
80844
+ agent_bindings: Array<{
80845
+ /**
80846
+ * The absolute directory the desktop bound to an agent with praxis agent connect.
80847
+ */
80848
+ dir: string;
80849
+ /**
80850
+ * The agent the directory is bound to: its identity number or its agent id.
80851
+ */
80852
+ agent: string;
80853
+ }>;
79879
80854
  /**
79880
80855
  * 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
80856
  */
@@ -79969,6 +80944,19 @@ export type UpdateByodDeviceResponses = {
79969
80944
  * 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
80945
  */
79971
80946
  agent_dirs: Array<string>;
80947
+ /**
80948
+ * 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.
80949
+ */
80950
+ agent_bindings: Array<{
80951
+ /**
80952
+ * The absolute directory the desktop bound to an agent with praxis agent connect.
80953
+ */
80954
+ dir: string;
80955
+ /**
80956
+ * The agent the directory is bound to: its identity number or its agent id.
80957
+ */
80958
+ agent: string;
80959
+ }>;
79972
80960
  /**
79973
80961
  * 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
80962
  */
@@ -90424,6 +91412,31 @@ export type SessionsEventsListResponses = {
90424
91412
  * 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
91413
  */
90426
91414
  session_thread_id?: string | null;
91415
+ } | {
91416
+ /**
91417
+ * Event id, unique within the session. Use it to refer to this event, for example in user.tool_confirmation or user.steer.
91418
+ */
91419
+ id: string;
91420
+ /**
91421
+ * Always `session.status_preparing`. A device session's local agent is starting; stage says how far it got.
91422
+ */
91423
+ type: 'session.status_preparing';
91424
+ /**
91425
+ * RFC 3339 time at which the server processed the event; null while a queued input has not started running.
91426
+ */
91427
+ processed_at: string;
91428
+ /**
91429
+ * How far the start got.
91430
+ */
91431
+ stage: 'launching' | 'loading' | 'ready';
91432
+ /**
91433
+ * 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.
91434
+ */
91435
+ message_id?: string;
91436
+ /**
91437
+ * 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.
91438
+ */
91439
+ session_thread_id?: string | null;
90427
91440
  }>;
90428
91441
  /**
90429
91442
  * Opaque cursor for the next page: pass it unchanged as page to continue. Null when this is the last page.
@@ -92146,6 +93159,31 @@ export type SessionsThreadsEventsListResponses = {
92146
93159
  * 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
93160
  */
92148
93161
  session_thread_id?: string | null;
93162
+ } | {
93163
+ /**
93164
+ * Event id, unique within the session. Use it to refer to this event, for example in user.tool_confirmation or user.steer.
93165
+ */
93166
+ id: string;
93167
+ /**
93168
+ * Always `session.status_preparing`. A device session's local agent is starting; stage says how far it got.
93169
+ */
93170
+ type: 'session.status_preparing';
93171
+ /**
93172
+ * RFC 3339 time at which the server processed the event; null while a queued input has not started running.
93173
+ */
93174
+ processed_at: string;
93175
+ /**
93176
+ * How far the start got.
93177
+ */
93178
+ stage: 'launching' | 'loading' | 'ready';
93179
+ /**
93180
+ * 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.
93181
+ */
93182
+ message_id?: string;
93183
+ /**
93184
+ * 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.
93185
+ */
93186
+ session_thread_id?: string | null;
92149
93187
  }>;
92150
93188
  /**
92151
93189
  * Opaque cursor for the next page: pass it unchanged as page to continue. Null when this is the last page.
@@ -110984,6 +112022,51 @@ export type DevopsChangesMarkLastSliceResponses = {
110984
112022
  200: DevopsChange;
110985
112023
  };
110986
112024
  export type DevopsChangesMarkLastSliceResponse = DevopsChangesMarkLastSliceResponses[keyof DevopsChangesMarkLastSliceResponses];
112025
+ export type DevopsChangesSlicesCreateData = {
112026
+ body?: DevopsChangeSliceCreateRequest;
112027
+ path: {
112028
+ /**
112029
+ * Identifies the project whose data you are reading, from the project list or create answer.
112030
+ */
112031
+ project: string;
112032
+ /**
112033
+ * 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.
112034
+ */
112035
+ change: string;
112036
+ };
112037
+ query?: never;
112038
+ url: '/devops/v1/projects/{project}/changes/{change}/slices';
112039
+ };
112040
+ export type DevopsChangesSlicesCreateErrors = {
112041
+ /**
112042
+ * 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.
112043
+ */
112044
+ 400: DevopsDevOpsError;
112045
+ /**
112046
+ * The API key is missing or invalid; send a valid Praxis API key in the Authorization header before retrying.
112047
+ */
112048
+ 401: DevopsDevOpsError;
112049
+ /**
112050
+ * 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.
112051
+ */
112052
+ 403: DevopsDevOpsError;
112053
+ /**
112054
+ * 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.
112055
+ */
112056
+ 404: DevopsDevOpsError;
112057
+ /**
112058
+ * 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.
112059
+ */
112060
+ 500: DevopsDevOpsError;
112061
+ };
112062
+ export type DevopsChangesSlicesCreateError = DevopsChangesSlicesCreateErrors[keyof DevopsChangesSlicesCreateErrors];
112063
+ export type DevopsChangesSlicesCreateResponses = {
112064
+ /**
112065
+ * 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.
112066
+ */
112067
+ 200: DevopsChangeSliceOpened;
112068
+ };
112069
+ export type DevopsChangesSlicesCreateResponse = DevopsChangesSlicesCreateResponses[keyof DevopsChangesSlicesCreateResponses];
110987
112070
  export type DevopsChangesOpenPullRequestData = {
110988
112071
  body?: DevopsChangeOpenPullRequestRequest;
110989
112072
  path: {