@deepraxis/sdk 0.2.0-dev.6528e7c → 0.2.0-dev.7278e86

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.
@@ -3746,9 +3746,9 @@ export type BrowserSessionCreateResult = {
3746
3746
  */
3747
3747
  region: 'ap-southeast-1';
3748
3748
  /**
3749
- * 兼容的代理流量字节数;当前未使用代理,固定返回 0。
3749
+ * 会话经代理转发的流量字节数(上行与下行之和);仅容器后端的会话有值,其余后端固定为 0。
3750
3750
  */
3751
- proxyBytes: 0;
3751
+ proxyBytes: number;
3752
3752
  /**
3753
3753
  * 会话创建时刻,UTC ISO 8601 时间。
3754
3754
  */
@@ -3793,6 +3793,24 @@ export type BrowserSessionCreateResult = {
3793
3793
  * 会话创建入口;api 为 API 创建,connect 为一步连接创建,console 为 Console 创建。
3794
3794
  */
3795
3795
  origin: 'api' | 'connect' | 'console';
3796
+ /**
3797
+ * 会话的浏览器来源:cloud 是云浏览器,byob 是用户自己配对的浏览器(browser 为它的 ID)。
3798
+ */
3799
+ source: {
3800
+ /**
3801
+ * 云浏览器会话,固定为 cloud。
3802
+ */
3803
+ kind: 'cloud';
3804
+ } | {
3805
+ /**
3806
+ * 用户自己配对的浏览器会话,固定为 byob。
3807
+ */
3808
+ kind: 'byob';
3809
+ /**
3810
+ * 自带浏览器 ID,以 byb_ 开头。
3811
+ */
3812
+ browser: string;
3813
+ };
3796
3814
  /**
3797
3815
  * 创建这个会话的用户或智能体标识;通过能力 URL 创建、或在引入创建者之前创建的会话省略此字段。
3798
3816
  */
@@ -3859,12 +3877,16 @@ export type BrowserSessionCreateResult = {
3859
3877
  * 该地址返回 501;不支持 Selenium。
3860
3878
  */
3861
3879
  seleniumRemoteUrl: string;
3880
+ /**
3881
+ * true 表示本次按 name 复用了已在运行的同名会话(HTTP 200),没有新开会话;false 表示新开了会话(HTTP 201)。
3882
+ */
3883
+ reused: boolean;
3862
3884
  };
3863
3885
  export type BrowserError = {
3864
3886
  statusCode: number;
3865
3887
  error: string;
3866
3888
  message: string;
3867
- 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' | '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';
3889
+ code: 'INVALID_PARAMS' | 'PERMISSION_DENIED' | 'NOT_IMPLEMENTED' | 'INTERNAL' | 'UNAUTHENTICATED' | 'CONNECT_SIGNATURE_INVALID' | 'SESSION_NOT_FOUND' | 'SESSION_ENDED' | 'SESSION_INVALID_STATE' | 'SESSION_NAME_IN_USE' | 'CONTEXT_NOT_FOUND' | 'BROWSER_NOT_GRANTED' | 'BROWSER_OFFLINE' | 'BROWSER_REVOKED' | 'PAIRING_NOT_FOUND' | 'BROWSER_NOT_FOUND' | 'CONTEXT_LOCKED' | 'CONTEXT_READ_ONLY' | 'HANDOFF_NOT_PENDING' | 'CONCURRENCY_LIMIT' | 'RATE_LIMITED' | 'INSUFFICIENT_BALANCE' | 'QUOTA_EXHAUSTED' | 'ACCOUNT_SUSPENDED' | 'PROVIDER_UNSUPPORTED' | 'PROVIDER_CAPACITY' | 'PROVIDER_FAILED' | 'SERVICE_UNAVAILABLE' | 'PARENT_NOT_FOUND' | 'INVALID_FILTER' | 'INVALID_PAGE_TOKEN' | 'ACTION_TAB_NOT_FOUND' | 'ACTION_NO_TAB' | 'ACTION_REF_STALE' | 'ACTION_FAILED' | 'ACTION_TIMEOUT' | 'ACTION_RESULT_TOO_LARGE';
3868
3890
  };
3869
3891
  export type BrowserSession = {
3870
3892
  /**
@@ -3888,9 +3910,9 @@ export type BrowserSession = {
3888
3910
  */
3889
3911
  region: 'ap-southeast-1';
3890
3912
  /**
3891
- * 兼容的代理流量字节数;当前未使用代理,固定返回 0。
3913
+ * 会话经代理转发的流量字节数(上行与下行之和);仅容器后端的会话有值,其余后端固定为 0。
3892
3914
  */
3893
- proxyBytes: 0;
3915
+ proxyBytes: number;
3894
3916
  /**
3895
3917
  * 会话创建时刻,UTC ISO 8601 时间。
3896
3918
  */
@@ -3935,6 +3957,24 @@ export type BrowserSession = {
3935
3957
  * 会话创建入口;api 为 API 创建,connect 为一步连接创建,console 为 Console 创建。
3936
3958
  */
3937
3959
  origin: 'api' | 'connect' | 'console';
3960
+ /**
3961
+ * 会话的浏览器来源:cloud 是云浏览器,byob 是用户自己配对的浏览器(browser 为它的 ID)。
3962
+ */
3963
+ source: {
3964
+ /**
3965
+ * 云浏览器会话,固定为 cloud。
3966
+ */
3967
+ kind: 'cloud';
3968
+ } | {
3969
+ /**
3970
+ * 用户自己配对的浏览器会话,固定为 byob。
3971
+ */
3972
+ kind: 'byob';
3973
+ /**
3974
+ * 自带浏览器 ID,以 byb_ 开头。
3975
+ */
3976
+ browser: string;
3977
+ };
3938
3978
  /**
3939
3979
  * 创建这个会话的用户或智能体标识;通过能力 URL 创建、或在引入创建者之前创建的会话省略此字段。
3940
3980
  */
@@ -4012,9 +4052,9 @@ export type BrowserSessionGetResult = {
4012
4052
  */
4013
4053
  region: 'ap-southeast-1';
4014
4054
  /**
4015
- * 兼容的代理流量字节数;当前未使用代理,固定返回 0。
4055
+ * 会话经代理转发的流量字节数(上行与下行之和);仅容器后端的会话有值,其余后端固定为 0。
4016
4056
  */
4017
- proxyBytes: 0;
4057
+ proxyBytes: number;
4018
4058
  /**
4019
4059
  * 会话创建时刻,UTC ISO 8601 时间。
4020
4060
  */
@@ -4059,6 +4099,24 @@ export type BrowserSessionGetResult = {
4059
4099
  * 会话创建入口;api 为 API 创建,connect 为一步连接创建,console 为 Console 创建。
4060
4100
  */
4061
4101
  origin: 'api' | 'connect' | 'console';
4102
+ /**
4103
+ * 会话的浏览器来源:cloud 是云浏览器,byob 是用户自己配对的浏览器(browser 为它的 ID)。
4104
+ */
4105
+ source: {
4106
+ /**
4107
+ * 云浏览器会话,固定为 cloud。
4108
+ */
4109
+ kind: 'cloud';
4110
+ } | {
4111
+ /**
4112
+ * 用户自己配对的浏览器会话,固定为 byob。
4113
+ */
4114
+ kind: 'byob';
4115
+ /**
4116
+ * 自带浏览器 ID,以 byb_ 开头。
4117
+ */
4118
+ browser: string;
4119
+ };
4062
4120
  /**
4063
4121
  * 创建这个会话的用户或智能体标识;通过能力 URL 创建、或在引入创建者之前创建的会话省略此字段。
4064
4122
  */
@@ -4314,6 +4372,128 @@ export type BrowserContext = {
4314
4372
  */
4315
4373
  lastUsedAt?: string;
4316
4374
  };
4375
+ export type BrowserByobPairing = {
4376
+ /**
4377
+ * 8 位配对码,一次性、10 分钟内有效;它是秘密,只交给要配对的那个浏览器的用户。
4378
+ */
4379
+ code: string;
4380
+ /**
4381
+ * 配对码失效的时刻,UTC ISO 8601 时间。
4382
+ */
4383
+ expires_at: string;
4384
+ };
4385
+ export type BrowserByobBrowser = {
4386
+ /**
4387
+ * 对象类型,固定为 byob_browser。
4388
+ */
4389
+ object: 'byob_browser';
4390
+ /**
4391
+ * 自带浏览器 ID,以 byb_ 开头;使用配对认领或列出自带浏览器返回的 id。
4392
+ */
4393
+ id: string;
4394
+ /**
4395
+ * 浏览器的显示名称,配对时由扩展上报,1–80 个字符;可通过更新修改。
4396
+ */
4397
+ name: string;
4398
+ /**
4399
+ * 这个自带浏览器的种类,配对时由扩展上报。
4400
+ */
4401
+ browser: 'chrome' | 'edge';
4402
+ /**
4403
+ * 浏览器版本号,配对时由扩展上报。
4404
+ */
4405
+ version: string;
4406
+ /**
4407
+ * 操作系统,配对时由扩展上报。
4408
+ */
4409
+ os: string;
4410
+ /**
4411
+ * 配对用的扩展 ID。
4412
+ */
4413
+ extension_id: string;
4414
+ /**
4415
+ * 被授权驱动这个浏览器的智能体 ID 列表;智能体不在列表里时不能打开它的会话。空数组表示没有智能体被授权。
4416
+ */
4417
+ granted_agents: Array<string>;
4418
+ /**
4419
+ * 允许智能体访问的站点列表;空数组表示不限制 http(s) 站点。这是护栏,不是数据边界。
4420
+ */
4421
+ allowed_sites: Array<string>;
4422
+ /**
4423
+ * 扩展的连接当前是否在线;连接对象上线之前固定为 false。
4424
+ */
4425
+ online: boolean;
4426
+ /**
4427
+ * 扩展最近一次被看到在线的时刻,UTC ISO 8601 时间。
4428
+ */
4429
+ last_seen_at: string | null;
4430
+ /**
4431
+ * 发起配对的用户标识;浏览器属于组织,这里只记录是谁配的。
4432
+ */
4433
+ created_by: string | null;
4434
+ /**
4435
+ * 浏览器完成配对的时刻,UTC ISO 8601 时间。
4436
+ */
4437
+ created_at: string;
4438
+ /**
4439
+ * 组织断开这个浏览器的时刻,UTC ISO 8601 时间;未断开时为 null。
4440
+ */
4441
+ revoked_at: string | null;
4442
+ };
4443
+ export type BrowserByobPairingView = {
4444
+ /**
4445
+ * 发起配对的组织名称,扩展的授权页显示它。
4446
+ */
4447
+ organization_name: string;
4448
+ /**
4449
+ * 发起配对的用户标识。
4450
+ */
4451
+ created_by: string | null;
4452
+ /**
4453
+ * 配对码失效的时刻,UTC ISO 8601 时间。
4454
+ */
4455
+ expires_at: string;
4456
+ };
4457
+ export type BrowserByobClaim = {
4458
+ /**
4459
+ * 要登记的浏览器种类,只支持 Chrome 和 Edge。
4460
+ */
4461
+ browser: 'chrome' | 'edge';
4462
+ /**
4463
+ * 浏览器版本号,1–64 个字符。
4464
+ */
4465
+ version: string;
4466
+ /**
4467
+ * 操作系统,1–64 个字符。
4468
+ */
4469
+ os: string;
4470
+ /**
4471
+ * 浏览器的显示名称,1–80 个字符。
4472
+ */
4473
+ name: string;
4474
+ /**
4475
+ * 扩展用 WebCrypto 生成的不可导出 ECDSA P-256 密钥对的公钥;平台只保存公钥。
4476
+ */
4477
+ public_key: string;
4478
+ /**
4479
+ * 扩展 ID,1–64 个字符。
4480
+ */
4481
+ extension_id: string;
4482
+ /**
4483
+ * 扩展保存的随机安装密钥,8–128 个字母、数字、_ 或 -;同一个 profile 带同一密钥重新配对会复用原来的浏览器,平台只保存它的哈希。省略则每次认领都是新浏览器。
4484
+ */
4485
+ install_key?: string;
4486
+ };
4487
+ export type BrowserByobClaimResult = {
4488
+ /**
4489
+ * 自带浏览器 ID,以 byb_ 开头;使用配对认领或列出自带浏览器返回的 id。
4490
+ */
4491
+ browser_id: string;
4492
+ /**
4493
+ * 扩展要拨入的 WSS 地址,属于这个浏览器自己的链接主机;连接时用配对时的私钥签名完成认证,地址本身不是凭证。
4494
+ */
4495
+ link_url: string;
4496
+ };
4317
4497
  export type BrowserStreamMessage = {
4318
4498
  event: 'snapshot';
4319
4499
  data: {
@@ -10618,6 +10798,10 @@ export type ApplicationCreateWorkerInput = {
10618
10798
  labels?: {
10619
10799
  [key: string]: string;
10620
10800
  };
10801
+ /**
10802
+ * Who may open the application on its default host (ADR-206). Only the organization's owner (full authority) may change it; a credential limited to bound resources is refused with PERMISSION_DENIED. A change takes effect within 10 seconds.
10803
+ */
10804
+ access?: 'public' | 'organization';
10621
10805
  };
10622
10806
  };
10623
10807
  export type ApplicationWorker = {
@@ -10689,6 +10873,10 @@ export type ApplicationWorker = {
10689
10873
  labels: {
10690
10874
  [key: string]: string;
10691
10875
  };
10876
+ /**
10877
+ * Who may open the application on its default host (ADR-206). Only the organization's owner (full authority) may change it; a credential limited to bound resources is refused with PERMISSION_DENIED. A change takes effect within 10 seconds.
10878
+ */
10879
+ access: 'public' | 'organization';
10692
10880
  /**
10693
10881
  * When the Worker was deleted.
10694
10882
  */
@@ -10770,6 +10958,10 @@ export type ApplicationUpdateWorkerInput = {
10770
10958
  labels?: {
10771
10959
  [key: string]: string;
10772
10960
  };
10961
+ /**
10962
+ * Who may open the application on its default host (ADR-206). Only the organization's owner (full authority) may change it; a credential limited to bound resources is refused with PERMISSION_DENIED. A change takes effect within 10 seconds.
10963
+ */
10964
+ access?: 'public' | 'organization';
10773
10965
  };
10774
10966
  };
10775
10967
  export type ApplicationVersionPage = {
@@ -19553,6 +19745,32 @@ export type DevopsChangeMarkLastSliceRequest = {
19553
19745
  */
19554
19746
  lastSlice: boolean;
19555
19747
  };
19748
+ /**
19749
+ * Where the new slice starts. Every field is optional: with none the slice is cut from the default branch.
19750
+ */
19751
+ export type DevopsChangeSliceCreateRequest = {
19752
+ /**
19753
+ * Another branch of the same change to cut the slice from, such as feat/run-page-v2--2; omit it to cut from the default branch. A slice cut from a branch is restacked onto the default branch when that branch merges.
19754
+ */
19755
+ from?: string;
19756
+ };
19757
+ /**
19758
+ * The slice that was opened.
19759
+ */
19760
+ export type DevopsChangeSliceOpened = {
19761
+ /**
19762
+ * The new slice's branch, <change id>--<n> with n at least 2; commit and push here, and open its pull request with `praxis devops change pr`.
19763
+ */
19764
+ branch: string;
19765
+ /**
19766
+ * The directory to work in: the slice's git worktree inside the change's workspace. It exists at once when the workspace is already running, otherwise once the workspace is available.
19767
+ */
19768
+ directory: string;
19769
+ /**
19770
+ * The id of the change's workspace that holds the slice (wsu_…), usable with the units methods; this call opened it when the change had none live.
19771
+ */
19772
+ unit: string;
19773
+ };
19556
19774
  /**
19557
19775
  * What the pull request says. Every field is optional: without a title the change's own title is used.
19558
19776
  */
@@ -19569,6 +19787,10 @@ export type DevopsChangeOpenPullRequestRequest = {
19569
19787
  * Open it as a draft. Defaults to false.
19570
19788
  */
19571
19789
  draft?: boolean;
19790
+ /**
19791
+ * The branch the pull request is opened from, for a later slice of the change: <change id>--<n>, as `slices.create` answered it; omit it for the change's own branch. A branch that belongs to another change is refused with INVALID_ARGUMENT.
19792
+ */
19793
+ head?: string;
19572
19794
  };
19573
19795
  /**
19574
19796
  * The pull request for a change's branch.
@@ -51993,6 +52215,10 @@ export type DevopsLockId = string;
51993
52215
  * The change's id, which is its branch name <type>/<slug> from a change list or create answer. Give it as it comes back — `feat/run-page-v2`: the SDK and the CLI encode the slash themselves, and an id that is already percent-encoded is encoded a second time and answers CHANGE_NOT_FOUND. Only a caller writing the HTTP request by hand sends feat%2Frun-page-v2.
51994
52216
  */
51995
52217
  export type DevopsChangeIdPath = string;
52218
+ /**
52219
+ * The change whose slice you are opening: its id, which is its branch name <type>/<slug> from a change list or create answer. Give it as it comes back — `feat/run-page-v2`; the SDK and the CLI encode the slash themselves.
52220
+ */
52221
+ export type DevopsChangePathParam = string;
51996
52222
  /**
51997
52223
  * The pull request's platform id (pr_…) from a pull request list, not GitHub's pull request number; the retrieve, rerunGate, merge and recordVerdict calls all address the pull request by it.
51998
52224
  */
@@ -54081,6 +54307,86 @@ export type ListAgentInboxLettersResponses = {
54081
54307
  };
54082
54308
  };
54083
54309
  export type ListAgentInboxLettersResponse = ListAgentInboxLettersResponses[keyof ListAgentInboxLettersResponses];
54310
+ export type ListAgentDeviceLocalSessionsData = {
54311
+ body?: never;
54312
+ path: {
54313
+ /**
54314
+ * The BYOA agent: its agent_… id, eight character identity number or handle, from agents.list; resolved in your organization. Also accepts an 8-character identity number (0–9, A–Z); malformed, absent and foreign references return 404, and response ids always use agent_….
54315
+ */
54316
+ agent_id: string;
54317
+ /**
54318
+ * The paired desktop device (byd_ and 26 hex characters) whose sessions to list; you must be the person who paired it.
54319
+ */
54320
+ device_id: string;
54321
+ };
54322
+ query: {
54323
+ /**
54324
+ * The absolute directory on the device, exactly as the device registered it and bound it to this agent.
54325
+ */
54326
+ cwd: string;
54327
+ /**
54328
+ * The next_cursor of the previous page; leave it out for the first page.
54329
+ */
54330
+ cursor?: string;
54331
+ };
54332
+ url: '/agent/v1/agents/{agent_id}/devices/{device_id}/local-sessions';
54333
+ };
54334
+ export type ListAgentDeviceLocalSessionsErrors = {
54335
+ /**
54336
+ * INVALID_PARAMS: cwd is missing, not absolute or not bound to this agent on that device, the device is not one you paired, or a query parameter is unsupported; ASSUME_AGENT_REQUIRED: the agent is not a BYOA agent.
54337
+ */
54338
+ 400: unknown;
54339
+ /**
54340
+ * Authenticate with your own API key or a console session; an agent's or robot's credential cannot list a person's device.
54341
+ */
54342
+ 401: unknown;
54343
+ /**
54344
+ * permission_error: the credential's role or bound resources do not allow this operation. Use a key with access to the agent domain and its resources.
54345
+ */
54346
+ 403: AgentError;
54347
+ /**
54348
+ * AGENT_NOT_FOUND: no agent with this reference exists in your organization; list agents with agents.list.
54349
+ */
54350
+ 404: unknown;
54351
+ /**
54352
+ * DEVICE_NOT_READY: the device is offline; retry once it is connected. DEVICE_TIMEOUT (504) means it is connected but did not answer in time.
54353
+ */
54354
+ 503: unknown;
54355
+ };
54356
+ export type ListAgentDeviceLocalSessionsError = ListAgentDeviceLocalSessionsErrors[keyof ListAgentDeviceLocalSessionsErrors];
54357
+ export type ListAgentDeviceLocalSessionsResponses = {
54358
+ /**
54359
+ * One page of the device's sessions for that directory, newest first.
54360
+ */
54361
+ 200: {
54362
+ /**
54363
+ * The sessions of this page; empty when the directory has none.
54364
+ */
54365
+ data: Array<{
54366
+ /**
54367
+ * The Claude Code session id on the device; pass it as runtime.resume_session_id when creating a session to continue it.
54368
+ */
54369
+ id: string;
54370
+ /**
54371
+ * The session's title as Claude Code shows it; empty when it has none.
54372
+ */
54373
+ title: string;
54374
+ /**
54375
+ * When the session was last written to, RFC 3339; sessions are ordered newest first.
54376
+ */
54377
+ updated_at: string | null;
54378
+ /**
54379
+ * The directory the session ran in on the device.
54380
+ */
54381
+ cwd: string | null;
54382
+ }>;
54383
+ /**
54384
+ * Pass as cursor for the next page; null on the last page.
54385
+ */
54386
+ next_cursor: string | null;
54387
+ };
54388
+ };
54389
+ export type ListAgentDeviceLocalSessionsResponse = ListAgentDeviceLocalSessionsResponses[keyof ListAgentDeviceLocalSessionsResponses];
54084
54390
  export type CreateAgentLoginIntentData = {
54085
54391
  body?: never;
54086
54392
  path?: never;
@@ -54981,6 +55287,15 @@ export type ApplyAgentVersionResponses = {
54981
55287
  name: string;
54982
55288
  }>;
54983
55289
  };
55290
+ /**
55291
+ * ADR-205: which browser the agent drives. {byob: byb_…} names one of your organization's paired browsers (browser.byob.browsers.list), which the agent then drives through connect() instead of a cloud browser; null or absent is the cloud browser. The browser must belong to your organization (otherwise 400) and must grant this agent before a session can open it. Omit on update to keep it, send an object to replace it, or null to go back to the cloud browser. /agent/v1 only.
55292
+ */
55293
+ browser?: {
55294
+ /**
55295
+ * A paired browser's id (byb_ and 26 lowercase hex characters), from browser.byob.browsers.list.
55296
+ */
55297
+ byob: string;
55298
+ } | null;
54984
55299
  /**
54985
55300
  * Praxis extension: MA only has session-scoped temporary containers and memory_stores, not durable browsable computers. computer_id selects a tenant-owned active computer. Session selection overrides the agent default; a sandbox environment_id and computer_id cannot be combined. Omitted when no computer is selected.
54986
55301
  */
@@ -56232,6 +56547,15 @@ export type UnarchiveAgentResponses = {
56232
56547
  name: string;
56233
56548
  }>;
56234
56549
  };
56550
+ /**
56551
+ * ADR-205: which browser the agent drives. {byob: byb_…} names one of your organization's paired browsers (browser.byob.browsers.list), which the agent then drives through connect() instead of a cloud browser; null or absent is the cloud browser. The browser must belong to your organization (otherwise 400) and must grant this agent before a session can open it. Omit on update to keep it, send an object to replace it, or null to go back to the cloud browser. /agent/v1 only.
56552
+ */
56553
+ browser?: {
56554
+ /**
56555
+ * A paired browser's id (byb_ and 26 lowercase hex characters), from browser.byob.browsers.list.
56556
+ */
56557
+ byob: string;
56558
+ } | null;
56235
56559
  /**
56236
56560
  * Praxis extension: MA only has session-scoped temporary containers and memory_stores, not durable browsable computers. computer_id selects a tenant-owned active computer. Session selection overrides the agent default; a sandbox environment_id and computer_id cannot be combined. Omitted when no computer is selected.
56237
56561
  */
@@ -68862,94 +69186,21 @@ export type BrowserListSessionsErrors = {
68862
69186
  */
68863
69187
  402: BrowserError;
68864
69188
  /**
68865
- * PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
69189
+ * PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
68866
69190
  */
68867
69191
  403: BrowserError;
68868
69192
  /**
68869
- * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
69193
+ * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
68870
69194
  */
68871
69195
  404: BrowserError;
68872
69196
  /**
68873
- * SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
69197
+ * SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
68874
69198
  */
68875
69199
  409: BrowserError;
68876
69200
  /**
68877
- * ACTION_RESULT_TOO_LARGE
68878
- */
68879
- 413: BrowserError;
68880
- /**
68881
- * CONCURRENCY_LIMIT / RATE_LIMITED / PROVIDER_CAPACITY
68882
- */
68883
- 429: BrowserError;
68884
- /**
68885
- * INTERNAL
68886
- */
68887
- 500: BrowserError;
68888
- /**
68889
- * NOT_IMPLEMENTED / PROVIDER_UNSUPPORTED
68890
- */
68891
- 501: BrowserError;
68892
- /**
68893
- * PROVIDER_FAILED
68894
- */
68895
- 502: BrowserError;
68896
- /**
68897
- * SERVICE_UNAVAILABLE
68898
- */
68899
- 503: BrowserError;
68900
- /**
68901
- * ACTION_TIMEOUT
68902
- */
68903
- 504: BrowserError;
68904
- };
68905
- export type BrowserListSessionsError = BrowserListSessionsErrors[keyof BrowserListSessionsErrors];
68906
- export type BrowserListSessionsResponses = {
68907
- /**
68908
- * 分页查询结果,包含本页记录和下一页游标。
68909
- */
68910
- 200: {
68911
- /**
68912
- * 本页查询匹配的记录;没有匹配项时为空数组。
68913
- */
68914
- data: Array<BrowserSession>;
68915
- /**
68916
- * 下一页游标;原样传入 cursor,null 表示没有更多结果。
68917
- */
68918
- nextCursor: string | null;
68919
- };
68920
- };
68921
- export type BrowserListSessionsResponse = BrowserListSessionsResponses[keyof BrowserListSessionsResponses];
68922
- export type BrowserCreateSessionData = {
68923
- body: BrowserSessionCreateParams;
68924
- path?: never;
68925
- query?: never;
68926
- url: '/browser/v1/sessions';
68927
- };
68928
- export type BrowserCreateSessionErrors = {
68929
- /**
68930
- * INVALID_PARAMS / INVALID_FILTER / INVALID_PAGE_TOKEN
68931
- */
68932
- 400: BrowserError;
68933
- /**
68934
- * UNAUTHENTICATED / CONNECT_SIGNATURE_INVALID
69201
+ * BROWSER_REVOKED
68935
69202
  */
68936
- 401: BrowserError;
68937
- /**
68938
- * INSUFFICIENT_BALANCE / QUOTA_EXHAUSTED
68939
- */
68940
- 402: BrowserError;
68941
- /**
68942
- * PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
68943
- */
68944
- 403: BrowserError;
68945
- /**
68946
- * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
68947
- */
68948
- 404: BrowserError;
68949
- /**
68950
- * SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
68951
- */
68952
- 409: BrowserError;
69203
+ 410: BrowserError;
68953
69204
  /**
68954
69205
  * ACTION_RESULT_TOO_LARGE
68955
69206
  */
@@ -68971,7 +69222,88 @@ export type BrowserCreateSessionErrors = {
68971
69222
  */
68972
69223
  502: BrowserError;
68973
69224
  /**
68974
- * SERVICE_UNAVAILABLE
69225
+ * BROWSER_OFFLINE / SERVICE_UNAVAILABLE
69226
+ */
69227
+ 503: BrowserError;
69228
+ /**
69229
+ * ACTION_TIMEOUT
69230
+ */
69231
+ 504: BrowserError;
69232
+ };
69233
+ export type BrowserListSessionsError = BrowserListSessionsErrors[keyof BrowserListSessionsErrors];
69234
+ export type BrowserListSessionsResponses = {
69235
+ /**
69236
+ * 分页查询结果,包含本页记录和下一页游标。
69237
+ */
69238
+ 200: {
69239
+ /**
69240
+ * 本页查询匹配的记录;没有匹配项时为空数组。
69241
+ */
69242
+ data: Array<BrowserSession>;
69243
+ /**
69244
+ * 下一页游标;原样传入 cursor,null 表示没有更多结果。
69245
+ */
69246
+ nextCursor: string | null;
69247
+ };
69248
+ };
69249
+ export type BrowserListSessionsResponse = BrowserListSessionsResponses[keyof BrowserListSessionsResponses];
69250
+ export type BrowserCreateSessionData = {
69251
+ body: BrowserSessionCreateParams;
69252
+ path?: never;
69253
+ query?: never;
69254
+ url: '/browser/v1/sessions';
69255
+ };
69256
+ export type BrowserCreateSessionErrors = {
69257
+ /**
69258
+ * INVALID_PARAMS / INVALID_FILTER / INVALID_PAGE_TOKEN
69259
+ */
69260
+ 400: BrowserError;
69261
+ /**
69262
+ * UNAUTHENTICATED / CONNECT_SIGNATURE_INVALID
69263
+ */
69264
+ 401: BrowserError;
69265
+ /**
69266
+ * INSUFFICIENT_BALANCE / QUOTA_EXHAUSTED
69267
+ */
69268
+ 402: BrowserError;
69269
+ /**
69270
+ * PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
69271
+ */
69272
+ 403: BrowserError;
69273
+ /**
69274
+ * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
69275
+ */
69276
+ 404: BrowserError;
69277
+ /**
69278
+ * SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
69279
+ */
69280
+ 409: BrowserError;
69281
+ /**
69282
+ * BROWSER_REVOKED
69283
+ */
69284
+ 410: BrowserError;
69285
+ /**
69286
+ * ACTION_RESULT_TOO_LARGE
69287
+ */
69288
+ 413: BrowserError;
69289
+ /**
69290
+ * CONCURRENCY_LIMIT / RATE_LIMITED / PROVIDER_CAPACITY
69291
+ */
69292
+ 429: BrowserError;
69293
+ /**
69294
+ * INTERNAL
69295
+ */
69296
+ 500: BrowserError;
69297
+ /**
69298
+ * NOT_IMPLEMENTED / PROVIDER_UNSUPPORTED
69299
+ */
69300
+ 501: BrowserError;
69301
+ /**
69302
+ * PROVIDER_FAILED
69303
+ */
69304
+ 502: BrowserError;
69305
+ /**
69306
+ * BROWSER_OFFLINE / SERVICE_UNAVAILABLE
68975
69307
  */
68976
69308
  503: BrowserError;
68977
69309
  /**
@@ -68981,6 +69313,10 @@ export type BrowserCreateSessionErrors = {
68981
69313
  };
68982
69314
  export type BrowserCreateSessionError = BrowserCreateSessionErrors[keyof BrowserCreateSessionErrors];
68983
69315
  export type BrowserCreateSessionResponses = {
69316
+ /**
69317
+ * 请求成功。
69318
+ */
69319
+ 200: BrowserSessionCreateResult;
68984
69320
  /**
68985
69321
  * 请求成功。
68986
69322
  */
@@ -69017,17 +69353,21 @@ export type BrowserGetSessionErrors = {
69017
69353
  */
69018
69354
  402: BrowserError;
69019
69355
  /**
69020
- * PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
69356
+ * PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
69021
69357
  */
69022
69358
  403: BrowserError;
69023
69359
  /**
69024
- * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
69360
+ * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
69025
69361
  */
69026
69362
  404: BrowserError;
69027
69363
  /**
69028
- * SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
69364
+ * SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
69029
69365
  */
69030
69366
  409: BrowserError;
69367
+ /**
69368
+ * BROWSER_REVOKED
69369
+ */
69370
+ 410: BrowserError;
69031
69371
  /**
69032
69372
  * ACTION_RESULT_TOO_LARGE
69033
69373
  */
@@ -69049,7 +69389,7 @@ export type BrowserGetSessionErrors = {
69049
69389
  */
69050
69390
  502: BrowserError;
69051
69391
  /**
69052
- * SERVICE_UNAVAILABLE
69392
+ * BROWSER_OFFLINE / SERVICE_UNAVAILABLE
69053
69393
  */
69054
69394
  503: BrowserError;
69055
69395
  /**
@@ -69095,17 +69435,21 @@ export type BrowserCloseSessionErrors = {
69095
69435
  */
69096
69436
  402: BrowserError;
69097
69437
  /**
69098
- * PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
69438
+ * PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
69099
69439
  */
69100
69440
  403: BrowserError;
69101
69441
  /**
69102
- * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
69442
+ * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
69103
69443
  */
69104
69444
  404: BrowserError;
69105
69445
  /**
69106
- * SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
69446
+ * SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
69107
69447
  */
69108
69448
  409: BrowserError;
69449
+ /**
69450
+ * BROWSER_REVOKED
69451
+ */
69452
+ 410: BrowserError;
69109
69453
  /**
69110
69454
  * ACTION_RESULT_TOO_LARGE
69111
69455
  */
@@ -69127,7 +69471,7 @@ export type BrowserCloseSessionErrors = {
69127
69471
  */
69128
69472
  502: BrowserError;
69129
69473
  /**
69130
- * SERVICE_UNAVAILABLE
69474
+ * BROWSER_OFFLINE / SERVICE_UNAVAILABLE
69131
69475
  */
69132
69476
  503: BrowserError;
69133
69477
  /**
@@ -69168,17 +69512,21 @@ export type BrowserGetDebugErrors = {
69168
69512
  */
69169
69513
  402: BrowserError;
69170
69514
  /**
69171
- * PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
69515
+ * PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
69172
69516
  */
69173
69517
  403: BrowserError;
69174
69518
  /**
69175
- * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
69519
+ * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
69176
69520
  */
69177
69521
  404: BrowserError;
69178
69522
  /**
69179
- * SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
69523
+ * SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
69180
69524
  */
69181
69525
  409: BrowserError;
69526
+ /**
69527
+ * BROWSER_REVOKED
69528
+ */
69529
+ 410: BrowserError;
69182
69530
  /**
69183
69531
  * ACTION_RESULT_TOO_LARGE
69184
69532
  */
@@ -69200,7 +69548,7 @@ export type BrowserGetDebugErrors = {
69200
69548
  */
69201
69549
  502: BrowserError;
69202
69550
  /**
69203
- * SERVICE_UNAVAILABLE
69551
+ * BROWSER_OFFLINE / SERVICE_UNAVAILABLE
69204
69552
  */
69205
69553
  503: BrowserError;
69206
69554
  /**
@@ -69254,17 +69602,21 @@ export type BrowserListEventsErrors = {
69254
69602
  */
69255
69603
  402: BrowserError;
69256
69604
  /**
69257
- * PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
69605
+ * PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
69258
69606
  */
69259
69607
  403: BrowserError;
69260
69608
  /**
69261
- * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
69609
+ * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
69262
69610
  */
69263
69611
  404: BrowserError;
69264
69612
  /**
69265
- * SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
69613
+ * SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
69266
69614
  */
69267
69615
  409: BrowserError;
69616
+ /**
69617
+ * BROWSER_REVOKED
69618
+ */
69619
+ 410: BrowserError;
69268
69620
  /**
69269
69621
  * ACTION_RESULT_TOO_LARGE
69270
69622
  */
@@ -69286,7 +69638,7 @@ export type BrowserListEventsErrors = {
69286
69638
  */
69287
69639
  502: BrowserError;
69288
69640
  /**
69289
- * SERVICE_UNAVAILABLE
69641
+ * BROWSER_OFFLINE / SERVICE_UNAVAILABLE
69290
69642
  */
69291
69643
  503: BrowserError;
69292
69644
  /**
@@ -69533,17 +69885,21 @@ export type BrowserRunPageActionErrors = {
69533
69885
  */
69534
69886
  402: BrowserError;
69535
69887
  /**
69536
- * PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
69888
+ * PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
69537
69889
  */
69538
69890
  403: BrowserError;
69539
69891
  /**
69540
- * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
69892
+ * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
69541
69893
  */
69542
69894
  404: BrowserError;
69543
69895
  /**
69544
- * SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
69896
+ * SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
69545
69897
  */
69546
69898
  409: BrowserError;
69899
+ /**
69900
+ * BROWSER_REVOKED
69901
+ */
69902
+ 410: BrowserError;
69547
69903
  /**
69548
69904
  * ACTION_RESULT_TOO_LARGE
69549
69905
  */
@@ -69565,7 +69921,7 @@ export type BrowserRunPageActionErrors = {
69565
69921
  */
69566
69922
  502: BrowserError;
69567
69923
  /**
69568
- * SERVICE_UNAVAILABLE
69924
+ * BROWSER_OFFLINE / SERVICE_UNAVAILABLE
69569
69925
  */
69570
69926
  503: BrowserError;
69571
69927
  /**
@@ -69751,17 +70107,21 @@ export type BrowserRequestHandoffErrors = {
69751
70107
  */
69752
70108
  402: BrowserError;
69753
70109
  /**
69754
- * PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
70110
+ * PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
69755
70111
  */
69756
70112
  403: BrowserError;
69757
70113
  /**
69758
- * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
70114
+ * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
69759
70115
  */
69760
70116
  404: BrowserError;
69761
70117
  /**
69762
- * SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
70118
+ * SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
69763
70119
  */
69764
70120
  409: BrowserError;
70121
+ /**
70122
+ * BROWSER_REVOKED
70123
+ */
70124
+ 410: BrowserError;
69765
70125
  /**
69766
70126
  * ACTION_RESULT_TOO_LARGE
69767
70127
  */
@@ -69783,7 +70143,7 @@ export type BrowserRequestHandoffErrors = {
69783
70143
  */
69784
70144
  502: BrowserError;
69785
70145
  /**
69786
- * SERVICE_UNAVAILABLE
70146
+ * BROWSER_OFFLINE / SERVICE_UNAVAILABLE
69787
70147
  */
69788
70148
  503: BrowserError;
69789
70149
  /**
@@ -69824,17 +70184,21 @@ export type BrowserCompleteHandoffErrors = {
69824
70184
  */
69825
70185
  402: BrowserError;
69826
70186
  /**
69827
- * PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
70187
+ * PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
69828
70188
  */
69829
70189
  403: BrowserError;
69830
70190
  /**
69831
- * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
70191
+ * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
69832
70192
  */
69833
70193
  404: BrowserError;
69834
70194
  /**
69835
- * SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
70195
+ * SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
69836
70196
  */
69837
70197
  409: BrowserError;
70198
+ /**
70199
+ * BROWSER_REVOKED
70200
+ */
70201
+ 410: BrowserError;
69838
70202
  /**
69839
70203
  * ACTION_RESULT_TOO_LARGE
69840
70204
  */
@@ -69856,7 +70220,7 @@ export type BrowserCompleteHandoffErrors = {
69856
70220
  */
69857
70221
  502: BrowserError;
69858
70222
  /**
69859
- * SERVICE_UNAVAILABLE
70223
+ * BROWSER_OFFLINE / SERVICE_UNAVAILABLE
69860
70224
  */
69861
70225
  503: BrowserError;
69862
70226
  /**
@@ -69906,17 +70270,21 @@ export type BrowserViewerHeartbeatErrors = {
69906
70270
  */
69907
70271
  402: BrowserError;
69908
70272
  /**
69909
- * PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
70273
+ * PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
69910
70274
  */
69911
70275
  403: BrowserError;
69912
70276
  /**
69913
- * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
70277
+ * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
69914
70278
  */
69915
70279
  404: BrowserError;
69916
70280
  /**
69917
- * SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
70281
+ * SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
69918
70282
  */
69919
70283
  409: BrowserError;
70284
+ /**
70285
+ * BROWSER_REVOKED
70286
+ */
70287
+ 410: BrowserError;
69920
70288
  /**
69921
70289
  * ACTION_RESULT_TOO_LARGE
69922
70290
  */
@@ -69938,7 +70306,7 @@ export type BrowserViewerHeartbeatErrors = {
69938
70306
  */
69939
70307
  502: BrowserError;
69940
70308
  /**
69941
- * SERVICE_UNAVAILABLE
70309
+ * BROWSER_OFFLINE / SERVICE_UNAVAILABLE
69942
70310
  */
69943
70311
  503: BrowserError;
69944
70312
  /**
@@ -69984,17 +70352,21 @@ export type BrowserGetSessionFrameErrors = {
69984
70352
  */
69985
70353
  402: BrowserError;
69986
70354
  /**
69987
- * PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
70355
+ * PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
69988
70356
  */
69989
70357
  403: BrowserError;
69990
70358
  /**
69991
- * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
70359
+ * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
69992
70360
  */
69993
70361
  404: BrowserError;
69994
70362
  /**
69995
- * SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
70363
+ * SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
69996
70364
  */
69997
70365
  409: BrowserError;
70366
+ /**
70367
+ * BROWSER_REVOKED
70368
+ */
70369
+ 410: BrowserError;
69998
70370
  /**
69999
70371
  * ACTION_RESULT_TOO_LARGE
70000
70372
  */
@@ -70016,7 +70388,7 @@ export type BrowserGetSessionFrameErrors = {
70016
70388
  */
70017
70389
  502: BrowserError;
70018
70390
  /**
70019
- * SERVICE_UNAVAILABLE
70391
+ * BROWSER_OFFLINE / SERVICE_UNAVAILABLE
70020
70392
  */
70021
70393
  503: BrowserError;
70022
70394
  /**
@@ -70065,17 +70437,21 @@ export type BrowserListContextsErrors = {
70065
70437
  */
70066
70438
  402: BrowserError;
70067
70439
  /**
70068
- * PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
70440
+ * PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
70069
70441
  */
70070
70442
  403: BrowserError;
70071
70443
  /**
70072
- * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
70444
+ * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
70073
70445
  */
70074
70446
  404: BrowserError;
70075
70447
  /**
70076
- * SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
70448
+ * SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
70077
70449
  */
70078
70450
  409: BrowserError;
70451
+ /**
70452
+ * BROWSER_REVOKED
70453
+ */
70454
+ 410: BrowserError;
70079
70455
  /**
70080
70456
  * ACTION_RESULT_TOO_LARGE
70081
70457
  */
@@ -70097,7 +70473,7 @@ export type BrowserListContextsErrors = {
70097
70473
  */
70098
70474
  502: BrowserError;
70099
70475
  /**
70100
- * SERVICE_UNAVAILABLE
70476
+ * BROWSER_OFFLINE / SERVICE_UNAVAILABLE
70101
70477
  */
70102
70478
  503: BrowserError;
70103
70479
  /**
@@ -70157,17 +70533,21 @@ export type BrowserCreateContextErrors = {
70157
70533
  */
70158
70534
  402: BrowserError;
70159
70535
  /**
70160
- * PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
70536
+ * PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
70161
70537
  */
70162
70538
  403: BrowserError;
70163
70539
  /**
70164
- * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
70540
+ * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
70165
70541
  */
70166
70542
  404: BrowserError;
70167
70543
  /**
70168
- * SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
70544
+ * SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
70169
70545
  */
70170
70546
  409: BrowserError;
70547
+ /**
70548
+ * BROWSER_REVOKED
70549
+ */
70550
+ 410: BrowserError;
70171
70551
  /**
70172
70552
  * ACTION_RESULT_TOO_LARGE
70173
70553
  */
@@ -70189,7 +70569,7 @@ export type BrowserCreateContextErrors = {
70189
70569
  */
70190
70570
  502: BrowserError;
70191
70571
  /**
70192
- * SERVICE_UNAVAILABLE
70572
+ * BROWSER_OFFLINE / SERVICE_UNAVAILABLE
70193
70573
  */
70194
70574
  503: BrowserError;
70195
70575
  /**
@@ -70230,17 +70610,21 @@ export type BrowserDeleteContextErrors = {
70230
70610
  */
70231
70611
  402: BrowserError;
70232
70612
  /**
70233
- * PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
70613
+ * PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
70234
70614
  */
70235
70615
  403: BrowserError;
70236
70616
  /**
70237
- * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
70617
+ * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
70238
70618
  */
70239
70619
  404: BrowserError;
70240
70620
  /**
70241
- * SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
70621
+ * SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
70242
70622
  */
70243
70623
  409: BrowserError;
70624
+ /**
70625
+ * BROWSER_REVOKED
70626
+ */
70627
+ 410: BrowserError;
70244
70628
  /**
70245
70629
  * ACTION_RESULT_TOO_LARGE
70246
70630
  */
@@ -70262,7 +70646,7 @@ export type BrowserDeleteContextErrors = {
70262
70646
  */
70263
70647
  502: BrowserError;
70264
70648
  /**
70265
- * SERVICE_UNAVAILABLE
70649
+ * BROWSER_OFFLINE / SERVICE_UNAVAILABLE
70266
70650
  */
70267
70651
  503: BrowserError;
70268
70652
  /**
@@ -70308,17 +70692,21 @@ export type BrowserGetContextErrors = {
70308
70692
  */
70309
70693
  402: BrowserError;
70310
70694
  /**
70311
- * PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
70695
+ * PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
70312
70696
  */
70313
70697
  403: BrowserError;
70314
70698
  /**
70315
- * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
70699
+ * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
70316
70700
  */
70317
70701
  404: BrowserError;
70318
70702
  /**
70319
- * SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
70703
+ * SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
70320
70704
  */
70321
70705
  409: BrowserError;
70706
+ /**
70707
+ * BROWSER_REVOKED
70708
+ */
70709
+ 410: BrowserError;
70322
70710
  /**
70323
70711
  * ACTION_RESULT_TOO_LARGE
70324
70712
  */
@@ -70340,7 +70728,7 @@ export type BrowserGetContextErrors = {
70340
70728
  */
70341
70729
  502: BrowserError;
70342
70730
  /**
70343
- * SERVICE_UNAVAILABLE
70731
+ * BROWSER_OFFLINE / SERVICE_UNAVAILABLE
70344
70732
  */
70345
70733
  503: BrowserError;
70346
70734
  /**
@@ -70392,17 +70780,21 @@ export type BrowserUpdateContextErrors = {
70392
70780
  */
70393
70781
  402: BrowserError;
70394
70782
  /**
70395
- * PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
70783
+ * PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
70396
70784
  */
70397
70785
  403: BrowserError;
70398
70786
  /**
70399
- * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
70787
+ * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
70400
70788
  */
70401
70789
  404: BrowserError;
70402
70790
  /**
70403
- * SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
70791
+ * SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
70404
70792
  */
70405
70793
  409: BrowserError;
70794
+ /**
70795
+ * BROWSER_REVOKED
70796
+ */
70797
+ 410: BrowserError;
70406
70798
  /**
70407
70799
  * ACTION_RESULT_TOO_LARGE
70408
70800
  */
@@ -70424,7 +70816,7 @@ export type BrowserUpdateContextErrors = {
70424
70816
  */
70425
70817
  502: BrowserError;
70426
70818
  /**
70427
- * SERVICE_UNAVAILABLE
70819
+ * BROWSER_OFFLINE / SERVICE_UNAVAILABLE
70428
70820
  */
70429
70821
  503: BrowserError;
70430
70822
  /**
@@ -70440,50 +70832,180 @@ export type BrowserUpdateContextResponses = {
70440
70832
  200: BrowserContext;
70441
70833
  };
70442
70834
  export type BrowserUpdateContextResponse = BrowserUpdateContextResponses[keyof BrowserUpdateContextResponses];
70443
- export type BrowserConnectData = {
70835
+ export type BrowserCreateByobPairingData = {
70836
+ body?: never;
70837
+ path?: never;
70838
+ query?: never;
70839
+ url: '/browser/v1/byob/pairings';
70840
+ };
70841
+ export type BrowserCreateByobPairingErrors = {
70842
+ /**
70843
+ * INVALID_PARAMS / INVALID_FILTER / INVALID_PAGE_TOKEN
70844
+ */
70845
+ 400: BrowserError;
70846
+ /**
70847
+ * UNAUTHENTICATED / CONNECT_SIGNATURE_INVALID
70848
+ */
70849
+ 401: BrowserError;
70850
+ /**
70851
+ * INSUFFICIENT_BALANCE / QUOTA_EXHAUSTED
70852
+ */
70853
+ 402: BrowserError;
70854
+ /**
70855
+ * PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
70856
+ */
70857
+ 403: BrowserError;
70858
+ /**
70859
+ * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
70860
+ */
70861
+ 404: BrowserError;
70862
+ /**
70863
+ * SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
70864
+ */
70865
+ 409: BrowserError;
70866
+ /**
70867
+ * BROWSER_REVOKED
70868
+ */
70869
+ 410: BrowserError;
70870
+ /**
70871
+ * ACTION_RESULT_TOO_LARGE
70872
+ */
70873
+ 413: BrowserError;
70874
+ /**
70875
+ * CONCURRENCY_LIMIT / RATE_LIMITED / PROVIDER_CAPACITY
70876
+ */
70877
+ 429: BrowserError;
70878
+ /**
70879
+ * INTERNAL
70880
+ */
70881
+ 500: BrowserError;
70882
+ /**
70883
+ * NOT_IMPLEMENTED / PROVIDER_UNSUPPORTED
70884
+ */
70885
+ 501: BrowserError;
70886
+ /**
70887
+ * PROVIDER_FAILED
70888
+ */
70889
+ 502: BrowserError;
70890
+ /**
70891
+ * BROWSER_OFFLINE / SERVICE_UNAVAILABLE
70892
+ */
70893
+ 503: BrowserError;
70894
+ /**
70895
+ * ACTION_TIMEOUT
70896
+ */
70897
+ 504: BrowserError;
70898
+ };
70899
+ export type BrowserCreateByobPairingError = BrowserCreateByobPairingErrors[keyof BrowserCreateByobPairingErrors];
70900
+ export type BrowserCreateByobPairingResponses = {
70901
+ /**
70902
+ * 请求成功。
70903
+ */
70904
+ 201: BrowserByobPairing;
70905
+ };
70906
+ export type BrowserCreateByobPairingResponse = BrowserCreateByobPairingResponses[keyof BrowserCreateByobPairingResponses];
70907
+ export type BrowserListByobBrowsersData = {
70444
70908
  body?: never;
70445
70909
  path?: never;
70446
70910
  query?: {
70447
70911
  /**
70448
- * 浏览器会话 ID;使用创建或列出会话返回的 id,以 bss_ 开头。
70449
- */
70450
- session?: string;
70451
- /**
70452
- * 会话名称;1–128 个 ASCII 字母、数字或 . _ : -,可用于筛选会话。
70453
- */
70454
- name?: string;
70455
- /**
70456
- * connectUrl 自带凭证;必须同时带 session。
70457
- */
70458
- signingKey?: string;
70459
- /**
70460
- * 登录态 ID;使用创建或列出登录态返回的 id,以 bsc_ 开头。
70461
- */
70462
- context?: string;
70463
- /**
70464
- * 关闭时保存登录态。
70912
+ * 上一页返回的 nextCursor,原样传入;省略时读取第一页。
70465
70913
  */
70466
- persist?: boolean;
70914
+ cursor?: string;
70467
70915
  /**
70468
- * 新会话最长寿命,单位为秒,可含小数;连接已有会话时忽略。
70916
+ * 每页最多返回的浏览器数量;默认 50,范围 1–100。
70469
70917
  */
70470
- timeout?: number;
70918
+ limit?: number;
70919
+ };
70920
+ url: '/browser/v1/byob/browsers';
70921
+ };
70922
+ export type BrowserListByobBrowsersErrors = {
70923
+ /**
70924
+ * INVALID_PARAMS / INVALID_FILTER / INVALID_PAGE_TOKEN
70925
+ */
70926
+ 400: BrowserError;
70927
+ /**
70928
+ * UNAUTHENTICATED / CONNECT_SIGNATURE_INVALID
70929
+ */
70930
+ 401: BrowserError;
70931
+ /**
70932
+ * INSUFFICIENT_BALANCE / QUOTA_EXHAUSTED
70933
+ */
70934
+ 402: BrowserError;
70935
+ /**
70936
+ * PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
70937
+ */
70938
+ 403: BrowserError;
70939
+ /**
70940
+ * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
70941
+ */
70942
+ 404: BrowserError;
70943
+ /**
70944
+ * SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
70945
+ */
70946
+ 409: BrowserError;
70947
+ /**
70948
+ * BROWSER_REVOKED
70949
+ */
70950
+ 410: BrowserError;
70951
+ /**
70952
+ * ACTION_RESULT_TOO_LARGE
70953
+ */
70954
+ 413: BrowserError;
70955
+ /**
70956
+ * CONCURRENCY_LIMIT / RATE_LIMITED / PROVIDER_CAPACITY
70957
+ */
70958
+ 429: BrowserError;
70959
+ /**
70960
+ * INTERNAL
70961
+ */
70962
+ 500: BrowserError;
70963
+ /**
70964
+ * NOT_IMPLEMENTED / PROVIDER_UNSUPPORTED
70965
+ */
70966
+ 501: BrowserError;
70967
+ /**
70968
+ * PROVIDER_FAILED
70969
+ */
70970
+ 502: BrowserError;
70971
+ /**
70972
+ * BROWSER_OFFLINE / SERVICE_UNAVAILABLE
70973
+ */
70974
+ 503: BrowserError;
70975
+ /**
70976
+ * ACTION_TIMEOUT
70977
+ */
70978
+ 504: BrowserError;
70979
+ };
70980
+ export type BrowserListByobBrowsersError = BrowserListByobBrowsersErrors[keyof BrowserListByobBrowsersErrors];
70981
+ export type BrowserListByobBrowsersResponses = {
70982
+ /**
70983
+ * 分页列出的自带浏览器,按 ID 升序。
70984
+ */
70985
+ 200: {
70471
70986
  /**
70472
- * 新会话无人连接或观看后的释放等待时长,单位为毫秒;允许 0 或小数,连接已有会话时忽略。
70987
+ * 本页的自带浏览器;已断开的不在列表里。
70473
70988
  */
70474
- idle?: number;
70989
+ data: Array<BrowserByobBrowser>;
70475
70990
  /**
70476
- * JSON 编码的字符串标签对象。
70991
+ * 下一页游标;原样传入 cursor,null 表示没有更多结果。
70477
70992
  */
70478
- labels?: string;
70993
+ nextCursor: string | null;
70994
+ };
70995
+ };
70996
+ export type BrowserListByobBrowsersResponse = BrowserListByobBrowsersResponses[keyof BrowserListByobBrowsersResponses];
70997
+ export type BrowserGetByobBrowserData = {
70998
+ body?: never;
70999
+ path: {
70479
71000
  /**
70480
- * JSON 编码的视口,例如 {"width":1280,"height":800}。
71001
+ * 自带浏览器 ID,以 byb_ 开头;使用配对认领或列出自带浏览器返回的 id。
70481
71002
  */
70482
- viewport?: string;
71003
+ browser_id: string;
70483
71004
  };
70484
- url: '/browser/v1/connect';
71005
+ query?: never;
71006
+ url: '/browser/v1/byob/browsers/{browser_id}';
70485
71007
  };
70486
- export type BrowserConnectErrors = {
71008
+ export type BrowserGetByobBrowserErrors = {
70487
71009
  /**
70488
71010
  * INVALID_PARAMS / INVALID_FILTER / INVALID_PAGE_TOKEN
70489
71011
  */
@@ -70497,17 +71019,111 @@ export type BrowserConnectErrors = {
70497
71019
  */
70498
71020
  402: BrowserError;
70499
71021
  /**
70500
- * PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
71022
+ * PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
70501
71023
  */
70502
71024
  403: BrowserError;
70503
71025
  /**
70504
- * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
71026
+ * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
70505
71027
  */
70506
71028
  404: BrowserError;
70507
71029
  /**
70508
- * SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
71030
+ * SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
70509
71031
  */
70510
71032
  409: BrowserError;
71033
+ /**
71034
+ * BROWSER_REVOKED
71035
+ */
71036
+ 410: BrowserError;
71037
+ /**
71038
+ * ACTION_RESULT_TOO_LARGE
71039
+ */
71040
+ 413: BrowserError;
71041
+ /**
71042
+ * CONCURRENCY_LIMIT / RATE_LIMITED / PROVIDER_CAPACITY
71043
+ */
71044
+ 429: BrowserError;
71045
+ /**
71046
+ * INTERNAL
71047
+ */
71048
+ 500: BrowserError;
71049
+ /**
71050
+ * NOT_IMPLEMENTED / PROVIDER_UNSUPPORTED
71051
+ */
71052
+ 501: BrowserError;
71053
+ /**
71054
+ * PROVIDER_FAILED
71055
+ */
71056
+ 502: BrowserError;
71057
+ /**
71058
+ * BROWSER_OFFLINE / SERVICE_UNAVAILABLE
71059
+ */
71060
+ 503: BrowserError;
71061
+ /**
71062
+ * ACTION_TIMEOUT
71063
+ */
71064
+ 504: BrowserError;
71065
+ };
71066
+ export type BrowserGetByobBrowserError = BrowserGetByobBrowserErrors[keyof BrowserGetByobBrowserErrors];
71067
+ export type BrowserGetByobBrowserResponses = {
71068
+ /**
71069
+ * 请求成功。
71070
+ */
71071
+ 200: BrowserByobBrowser;
71072
+ };
71073
+ export type BrowserGetByobBrowserResponse = BrowserGetByobBrowserResponses[keyof BrowserGetByobBrowserResponses];
71074
+ export type BrowserUpdateByobBrowserData = {
71075
+ body: {
71076
+ /**
71077
+ * 新的显示名称,1–80 个字符。
71078
+ */
71079
+ name?: string;
71080
+ /**
71081
+ * 整体替换被授权的智能体 ID 列表;传空数组撤销全部授权。
71082
+ */
71083
+ granted_agents?: Array<string>;
71084
+ /**
71085
+ * 整体替换允许站点列表;传空数组表示不限制。
71086
+ */
71087
+ allowed_sites?: Array<string>;
71088
+ };
71089
+ path: {
71090
+ /**
71091
+ * 自带浏览器 ID,以 byb_ 开头;使用配对认领或列出自带浏览器返回的 id。
71092
+ */
71093
+ browser_id: string;
71094
+ };
71095
+ query?: never;
71096
+ url: '/browser/v1/byob/browsers/{browser_id}';
71097
+ };
71098
+ export type BrowserUpdateByobBrowserErrors = {
71099
+ /**
71100
+ * INVALID_PARAMS / INVALID_FILTER / INVALID_PAGE_TOKEN
71101
+ */
71102
+ 400: BrowserError;
71103
+ /**
71104
+ * UNAUTHENTICATED / CONNECT_SIGNATURE_INVALID
71105
+ */
71106
+ 401: BrowserError;
71107
+ /**
71108
+ * INSUFFICIENT_BALANCE / QUOTA_EXHAUSTED
71109
+ */
71110
+ 402: BrowserError;
71111
+ /**
71112
+ * PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
71113
+ */
71114
+ 403: BrowserError;
71115
+ /**
71116
+ * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
71117
+ */
71118
+ 404: BrowserError;
71119
+ /**
71120
+ * SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
71121
+ */
71122
+ 409: BrowserError;
71123
+ /**
71124
+ * BROWSER_REVOKED
71125
+ */
71126
+ 410: BrowserError;
70511
71127
  /**
70512
71128
  * ACTION_RESULT_TOO_LARGE
70513
71129
  */
@@ -70529,7 +71145,347 @@ export type BrowserConnectErrors = {
70529
71145
  */
70530
71146
  502: BrowserError;
70531
71147
  /**
70532
- * SERVICE_UNAVAILABLE
71148
+ * BROWSER_OFFLINE / SERVICE_UNAVAILABLE
71149
+ */
71150
+ 503: BrowserError;
71151
+ /**
71152
+ * ACTION_TIMEOUT
71153
+ */
71154
+ 504: BrowserError;
71155
+ };
71156
+ export type BrowserUpdateByobBrowserError = BrowserUpdateByobBrowserErrors[keyof BrowserUpdateByobBrowserErrors];
71157
+ export type BrowserUpdateByobBrowserResponses = {
71158
+ /**
71159
+ * 请求成功。
71160
+ */
71161
+ 200: BrowserByobBrowser;
71162
+ };
71163
+ export type BrowserUpdateByobBrowserResponse = BrowserUpdateByobBrowserResponses[keyof BrowserUpdateByobBrowserResponses];
71164
+ export type BrowserDisconnectByobBrowserData = {
71165
+ body?: never;
71166
+ path: {
71167
+ /**
71168
+ * 自带浏览器 ID,以 byb_ 开头;使用配对认领或列出自带浏览器返回的 id。
71169
+ */
71170
+ browser_id: string;
71171
+ };
71172
+ query?: never;
71173
+ url: '/browser/v1/byob/browsers/{browser_id}/disconnect';
71174
+ };
71175
+ export type BrowserDisconnectByobBrowserErrors = {
71176
+ /**
71177
+ * INVALID_PARAMS / INVALID_FILTER / INVALID_PAGE_TOKEN
71178
+ */
71179
+ 400: BrowserError;
71180
+ /**
71181
+ * UNAUTHENTICATED / CONNECT_SIGNATURE_INVALID
71182
+ */
71183
+ 401: BrowserError;
71184
+ /**
71185
+ * INSUFFICIENT_BALANCE / QUOTA_EXHAUSTED
71186
+ */
71187
+ 402: BrowserError;
71188
+ /**
71189
+ * PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
71190
+ */
71191
+ 403: BrowserError;
71192
+ /**
71193
+ * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
71194
+ */
71195
+ 404: BrowserError;
71196
+ /**
71197
+ * SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
71198
+ */
71199
+ 409: BrowserError;
71200
+ /**
71201
+ * BROWSER_REVOKED
71202
+ */
71203
+ 410: BrowserError;
71204
+ /**
71205
+ * ACTION_RESULT_TOO_LARGE
71206
+ */
71207
+ 413: BrowserError;
71208
+ /**
71209
+ * CONCURRENCY_LIMIT / RATE_LIMITED / PROVIDER_CAPACITY
71210
+ */
71211
+ 429: BrowserError;
71212
+ /**
71213
+ * INTERNAL
71214
+ */
71215
+ 500: BrowserError;
71216
+ /**
71217
+ * NOT_IMPLEMENTED / PROVIDER_UNSUPPORTED
71218
+ */
71219
+ 501: BrowserError;
71220
+ /**
71221
+ * PROVIDER_FAILED
71222
+ */
71223
+ 502: BrowserError;
71224
+ /**
71225
+ * BROWSER_OFFLINE / SERVICE_UNAVAILABLE
71226
+ */
71227
+ 503: BrowserError;
71228
+ /**
71229
+ * ACTION_TIMEOUT
71230
+ */
71231
+ 504: BrowserError;
71232
+ };
71233
+ export type BrowserDisconnectByobBrowserError = BrowserDisconnectByobBrowserErrors[keyof BrowserDisconnectByobBrowserErrors];
71234
+ export type BrowserDisconnectByobBrowserResponses = {
71235
+ /**
71236
+ * 请求成功。
71237
+ */
71238
+ 200: BrowserByobBrowser;
71239
+ };
71240
+ export type BrowserDisconnectByobBrowserResponse = BrowserDisconnectByobBrowserResponses[keyof BrowserDisconnectByobBrowserResponses];
71241
+ export type BrowserReadByobPairingData = {
71242
+ body?: never;
71243
+ path: {
71244
+ /**
71245
+ * 8 位配对码,来自创建配对码的结果。
71246
+ */
71247
+ code: string;
71248
+ };
71249
+ query?: never;
71250
+ url: '/browser/v1/byob/pairings/{code}';
71251
+ };
71252
+ export type BrowserReadByobPairingErrors = {
71253
+ /**
71254
+ * INVALID_PARAMS / INVALID_FILTER / INVALID_PAGE_TOKEN
71255
+ */
71256
+ 400: BrowserError;
71257
+ /**
71258
+ * UNAUTHENTICATED / CONNECT_SIGNATURE_INVALID
71259
+ */
71260
+ 401: BrowserError;
71261
+ /**
71262
+ * INSUFFICIENT_BALANCE / QUOTA_EXHAUSTED
71263
+ */
71264
+ 402: BrowserError;
71265
+ /**
71266
+ * PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
71267
+ */
71268
+ 403: BrowserError;
71269
+ /**
71270
+ * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
71271
+ */
71272
+ 404: BrowserError;
71273
+ /**
71274
+ * SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
71275
+ */
71276
+ 409: BrowserError;
71277
+ /**
71278
+ * BROWSER_REVOKED
71279
+ */
71280
+ 410: BrowserError;
71281
+ /**
71282
+ * ACTION_RESULT_TOO_LARGE
71283
+ */
71284
+ 413: BrowserError;
71285
+ /**
71286
+ * CONCURRENCY_LIMIT / RATE_LIMITED / PROVIDER_CAPACITY
71287
+ */
71288
+ 429: BrowserError;
71289
+ /**
71290
+ * INTERNAL
71291
+ */
71292
+ 500: BrowserError;
71293
+ /**
71294
+ * NOT_IMPLEMENTED / PROVIDER_UNSUPPORTED
71295
+ */
71296
+ 501: BrowserError;
71297
+ /**
71298
+ * PROVIDER_FAILED
71299
+ */
71300
+ 502: BrowserError;
71301
+ /**
71302
+ * BROWSER_OFFLINE / SERVICE_UNAVAILABLE
71303
+ */
71304
+ 503: BrowserError;
71305
+ /**
71306
+ * ACTION_TIMEOUT
71307
+ */
71308
+ 504: BrowserError;
71309
+ };
71310
+ export type BrowserReadByobPairingError = BrowserReadByobPairingErrors[keyof BrowserReadByobPairingErrors];
71311
+ export type BrowserReadByobPairingResponses = {
71312
+ /**
71313
+ * 请求成功。
71314
+ */
71315
+ 200: BrowserByobPairingView;
71316
+ };
71317
+ export type BrowserReadByobPairingResponse = BrowserReadByobPairingResponses[keyof BrowserReadByobPairingResponses];
71318
+ export type BrowserClaimByobPairingData = {
71319
+ body: BrowserByobClaim;
71320
+ path: {
71321
+ /**
71322
+ * 8 位配对码,来自创建配对码的结果。
71323
+ */
71324
+ code: string;
71325
+ };
71326
+ query?: never;
71327
+ url: '/browser/v1/byob/pairings/{code}/claim';
71328
+ };
71329
+ export type BrowserClaimByobPairingErrors = {
71330
+ /**
71331
+ * INVALID_PARAMS / INVALID_FILTER / INVALID_PAGE_TOKEN
71332
+ */
71333
+ 400: BrowserError;
71334
+ /**
71335
+ * UNAUTHENTICATED / CONNECT_SIGNATURE_INVALID
71336
+ */
71337
+ 401: BrowserError;
71338
+ /**
71339
+ * INSUFFICIENT_BALANCE / QUOTA_EXHAUSTED
71340
+ */
71341
+ 402: BrowserError;
71342
+ /**
71343
+ * PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
71344
+ */
71345
+ 403: BrowserError;
71346
+ /**
71347
+ * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
71348
+ */
71349
+ 404: BrowserError;
71350
+ /**
71351
+ * SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
71352
+ */
71353
+ 409: BrowserError;
71354
+ /**
71355
+ * BROWSER_REVOKED
71356
+ */
71357
+ 410: BrowserError;
71358
+ /**
71359
+ * ACTION_RESULT_TOO_LARGE
71360
+ */
71361
+ 413: BrowserError;
71362
+ /**
71363
+ * CONCURRENCY_LIMIT / RATE_LIMITED / PROVIDER_CAPACITY
71364
+ */
71365
+ 429: BrowserError;
71366
+ /**
71367
+ * INTERNAL
71368
+ */
71369
+ 500: BrowserError;
71370
+ /**
71371
+ * NOT_IMPLEMENTED / PROVIDER_UNSUPPORTED
71372
+ */
71373
+ 501: BrowserError;
71374
+ /**
71375
+ * PROVIDER_FAILED
71376
+ */
71377
+ 502: BrowserError;
71378
+ /**
71379
+ * BROWSER_OFFLINE / SERVICE_UNAVAILABLE
71380
+ */
71381
+ 503: BrowserError;
71382
+ /**
71383
+ * ACTION_TIMEOUT
71384
+ */
71385
+ 504: BrowserError;
71386
+ };
71387
+ export type BrowserClaimByobPairingError = BrowserClaimByobPairingErrors[keyof BrowserClaimByobPairingErrors];
71388
+ export type BrowserClaimByobPairingResponses = {
71389
+ /**
71390
+ * 认领成功。
71391
+ */
71392
+ 201: BrowserByobClaimResult;
71393
+ };
71394
+ export type BrowserClaimByobPairingResponse = BrowserClaimByobPairingResponses[keyof BrowserClaimByobPairingResponses];
71395
+ export type BrowserConnectData = {
71396
+ body?: never;
71397
+ path?: never;
71398
+ query?: {
71399
+ /**
71400
+ * 浏览器会话 ID;使用创建或列出会话返回的 id,以 bss_ 开头。
71401
+ */
71402
+ session?: string;
71403
+ /**
71404
+ * 会话名称;1–128 个 ASCII 字母、数字或 . _ : -,可用于筛选会话。
71405
+ */
71406
+ name?: string;
71407
+ /**
71408
+ * connectUrl 自带凭证;必须同时带 session。
71409
+ */
71410
+ signingKey?: string;
71411
+ /**
71412
+ * 登录态 ID;使用创建或列出登录态返回的 id,以 bsc_ 开头。
71413
+ */
71414
+ context?: string;
71415
+ /**
71416
+ * 关闭时保存登录态。
71417
+ */
71418
+ persist?: boolean;
71419
+ /**
71420
+ * 新会话最长寿命,单位为秒,可含小数;连接已有会话时忽略。
71421
+ */
71422
+ timeout?: number;
71423
+ /**
71424
+ * 新会话无人连接或观看后的释放等待时长,单位为毫秒;允许 0 或小数,连接已有会话时忽略。
71425
+ */
71426
+ idle?: number;
71427
+ /**
71428
+ * JSON 编码的字符串标签对象。
71429
+ */
71430
+ labels?: string;
71431
+ /**
71432
+ * JSON 编码的视口,例如 {"width":1280,"height":800}。
71433
+ */
71434
+ viewport?: string;
71435
+ };
71436
+ url: '/browser/v1/connect';
71437
+ };
71438
+ export type BrowserConnectErrors = {
71439
+ /**
71440
+ * INVALID_PARAMS / INVALID_FILTER / INVALID_PAGE_TOKEN
71441
+ */
71442
+ 400: BrowserError;
71443
+ /**
71444
+ * UNAUTHENTICATED / CONNECT_SIGNATURE_INVALID
71445
+ */
71446
+ 401: BrowserError;
71447
+ /**
71448
+ * INSUFFICIENT_BALANCE / QUOTA_EXHAUSTED
71449
+ */
71450
+ 402: BrowserError;
71451
+ /**
71452
+ * PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
71453
+ */
71454
+ 403: BrowserError;
71455
+ /**
71456
+ * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
71457
+ */
71458
+ 404: BrowserError;
71459
+ /**
71460
+ * SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
71461
+ */
71462
+ 409: BrowserError;
71463
+ /**
71464
+ * BROWSER_REVOKED
71465
+ */
71466
+ 410: BrowserError;
71467
+ /**
71468
+ * ACTION_RESULT_TOO_LARGE
71469
+ */
71470
+ 413: BrowserError;
71471
+ /**
71472
+ * CONCURRENCY_LIMIT / RATE_LIMITED / PROVIDER_CAPACITY
71473
+ */
71474
+ 429: BrowserError;
71475
+ /**
71476
+ * INTERNAL
71477
+ */
71478
+ 500: BrowserError;
71479
+ /**
71480
+ * NOT_IMPLEMENTED / PROVIDER_UNSUPPORTED
71481
+ */
71482
+ 501: BrowserError;
71483
+ /**
71484
+ * PROVIDER_FAILED
71485
+ */
71486
+ 502: BrowserError;
71487
+ /**
71488
+ * BROWSER_OFFLINE / SERVICE_UNAVAILABLE
70533
71489
  */
70534
71490
  503: BrowserError;
70535
71491
  /**
@@ -70572,17 +71528,21 @@ export type BrowserLiveViewErrors = {
70572
71528
  */
70573
71529
  402: BrowserError;
70574
71530
  /**
70575
- * PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
71531
+ * PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
70576
71532
  */
70577
71533
  403: BrowserError;
70578
71534
  /**
70579
- * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
71535
+ * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
70580
71536
  */
70581
71537
  404: BrowserError;
70582
71538
  /**
70583
- * SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
71539
+ * SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
70584
71540
  */
70585
71541
  409: BrowserError;
71542
+ /**
71543
+ * BROWSER_REVOKED
71544
+ */
71545
+ 410: BrowserError;
70586
71546
  /**
70587
71547
  * ACTION_RESULT_TOO_LARGE
70588
71548
  */
@@ -70604,7 +71564,7 @@ export type BrowserLiveViewErrors = {
70604
71564
  */
70605
71565
  502: BrowserError;
70606
71566
  /**
70607
- * SERVICE_UNAVAILABLE
71567
+ * BROWSER_OFFLINE / SERVICE_UNAVAILABLE
70608
71568
  */
70609
71569
  503: BrowserError;
70610
71570
  /**
@@ -70638,17 +71598,21 @@ export type BrowserStreamSessionErrors = {
70638
71598
  */
70639
71599
  402: BrowserError;
70640
71600
  /**
70641
- * PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
71601
+ * PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
70642
71602
  */
70643
71603
  403: BrowserError;
70644
71604
  /**
70645
- * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
71605
+ * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
70646
71606
  */
70647
71607
  404: BrowserError;
70648
71608
  /**
70649
- * SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
71609
+ * SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
70650
71610
  */
70651
71611
  409: BrowserError;
71612
+ /**
71613
+ * BROWSER_REVOKED
71614
+ */
71615
+ 410: BrowserError;
70652
71616
  /**
70653
71617
  * ACTION_RESULT_TOO_LARGE
70654
71618
  */
@@ -70670,7 +71634,7 @@ export type BrowserStreamSessionErrors = {
70670
71634
  */
70671
71635
  502: BrowserError;
70672
71636
  /**
70673
- * SERVICE_UNAVAILABLE
71637
+ * BROWSER_OFFLINE / SERVICE_UNAVAILABLE
70674
71638
  */
70675
71639
  503: BrowserError;
70676
71640
  /**
@@ -70711,17 +71675,21 @@ export type BrowserStreamSessionFramesErrors = {
70711
71675
  */
70712
71676
  402: BrowserError;
70713
71677
  /**
70714
- * PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
71678
+ * PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
70715
71679
  */
70716
71680
  403: BrowserError;
70717
71681
  /**
70718
- * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
71682
+ * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
70719
71683
  */
70720
71684
  404: BrowserError;
70721
71685
  /**
70722
- * SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
71686
+ * SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
70723
71687
  */
70724
71688
  409: BrowserError;
71689
+ /**
71690
+ * BROWSER_REVOKED
71691
+ */
71692
+ 410: BrowserError;
70725
71693
  /**
70726
71694
  * ACTION_RESULT_TOO_LARGE
70727
71695
  */
@@ -70743,7 +71711,7 @@ export type BrowserStreamSessionFramesErrors = {
70743
71711
  */
70744
71712
  502: BrowserError;
70745
71713
  /**
70746
- * SERVICE_UNAVAILABLE
71714
+ * BROWSER_OFFLINE / SERVICE_UNAVAILABLE
70747
71715
  */
70748
71716
  503: BrowserError;
70749
71717
  /**
@@ -78048,10 +79016,18 @@ export type GetOrganizationNotificationsInboxData = {
78048
79016
  url: '/organization/v1/notifications/inbox';
78049
79017
  };
78050
79018
  export type GetOrganizationNotificationsInboxErrors = {
79019
+ /**
79020
+ * `INVALID_PARAMS` from the service for a read it cannot answer (RFC 9457 problem).
79021
+ */
79022
+ 400: unknown;
78051
79023
  /**
78052
79024
  * Missing or invalid credential (RFC 9457 problem).
78053
79025
  */
78054
79026
  401: unknown;
79027
+ /**
79028
+ * 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.
79029
+ */
79030
+ 502: unknown;
78055
79031
  };
78056
79032
  export type GetOrganizationNotificationsInboxResponses = {
78057
79033
  /**
@@ -78352,13 +79328,17 @@ export type ReadAllOrganizationNotificationLettersData = {
78352
79328
  };
78353
79329
  export type ReadAllOrganizationNotificationLettersErrors = {
78354
79330
  /**
78355
- * The body is not a JSON object, or kind is unknown (RFC 9457 problem).
79331
+ * The body is not a JSON object, `kind` is unknown, or `INVALID_PARAMS` from the service (RFC 9457 problem).
78356
79332
  */
78357
79333
  400: unknown;
78358
79334
  /**
78359
79335
  * Missing or invalid credential (RFC 9457 problem).
78360
79336
  */
78361
79337
  401: unknown;
79338
+ /**
79339
+ * 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.
79340
+ */
79341
+ 502: unknown;
78362
79342
  };
78363
79343
  export type ReadAllOrganizationNotificationLettersResponses = {
78364
79344
  /**
@@ -78424,6 +79404,10 @@ export type GetOrganizationNotificationPreferencesErrors = {
78424
79404
  * Missing or invalid credential (RFC 9457 problem).
78425
79405
  */
78426
79406
  401: unknown;
79407
+ /**
79408
+ * 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.
79409
+ */
79410
+ 502: unknown;
78427
79411
  };
78428
79412
  export type GetOrganizationNotificationPreferencesResponses = {
78429
79413
  /**
@@ -78515,7 +79499,7 @@ export type UpdateOrganizationNotificationPreferencesData = {
78515
79499
  };
78516
79500
  export type UpdateOrganizationNotificationPreferencesErrors = {
78517
79501
  /**
78518
- * Invalid switch, unknown category or unoffered channel (RFC 9457 problem).
79502
+ * Invalid switch, unknown category or unoffered channel — `INVALID_PARAMS`, `NOT_CONFIGURABLE` or `CRITICAL_CHANNELS_OFF` from the service (RFC 9457 problem).
78519
79503
  */
78520
79504
  400: unknown;
78521
79505
  /**
@@ -78523,9 +79507,13 @@ export type UpdateOrganizationNotificationPreferencesErrors = {
78523
79507
  */
78524
79508
  401: unknown;
78525
79509
  /**
78526
- * The organization does not let members change their own switches (ORGANIZATION_LOCKED).
79510
+ * The organization does not let members change their own switches — `ORGANIZATION_LOCKED` from the service (RFC 9457 problem).
78527
79511
  */
78528
79512
  403: unknown;
79513
+ /**
79514
+ * 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.
79515
+ */
79516
+ 502: unknown;
78529
79517
  };
78530
79518
  export type UpdateOrganizationNotificationPreferencesResponses = {
78531
79519
  /**
@@ -78547,6 +79535,10 @@ export type GetOrganizationNotificationDefaultsErrors = {
78547
79535
  * Missing or invalid credential (RFC 9457 problem).
78548
79536
  */
78549
79537
  401: unknown;
79538
+ /**
79539
+ * 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.
79540
+ */
79541
+ 502: unknown;
78550
79542
  };
78551
79543
  export type GetOrganizationNotificationDefaultsResponses = {
78552
79544
  /**
@@ -78626,13 +79618,17 @@ export type ListOrganizationNotificationDeliveriesData = {
78626
79618
  };
78627
79619
  export type ListOrganizationNotificationDeliveriesErrors = {
78628
79620
  /**
78629
- * Invalid limit or page cursor (RFC 9457 problem).
79621
+ * Invalid limit, or `INVALID_PARAMS` from the service for a page cursor it did not issue (RFC 9457 problem).
78630
79622
  */
78631
79623
  400: unknown;
78632
79624
  /**
78633
79625
  * Missing or invalid credential (RFC 9457 problem).
78634
79626
  */
78635
79627
  401: unknown;
79628
+ /**
79629
+ * 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.
79630
+ */
79631
+ 502: unknown;
78636
79632
  };
78637
79633
  export type ListOrganizationNotificationDeliveriesResponses = {
78638
79634
  /**
@@ -79899,6 +80895,23 @@ export type ListByodDevicesResponses = {
79899
80895
  * 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.
79900
80896
  */
79901
80897
  agent_dirs: Array<string>;
80898
+ /**
80899
+ * 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.
80900
+ */
80901
+ agent_bindings: Array<{
80902
+ /**
80903
+ * The absolute directory the desktop bound to an agent with praxis agent connect.
80904
+ */
80905
+ dir: string;
80906
+ /**
80907
+ * The agent the directory is bound to: its identity number or its agent id.
80908
+ */
80909
+ agent: string;
80910
+ }>;
80911
+ /**
80912
+ * The version of the envd on the desktop, as its last hello reported. Null for a phone, for a desktop that has not connected yet, and for an envd that sent no version.
80913
+ */
80914
+ envd_version: string | null;
79902
80915
  /**
79903
80916
  * 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.
79904
80917
  */
@@ -79981,6 +80994,23 @@ export type GetByodDeviceResponses = {
79981
80994
  * 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.
79982
80995
  */
79983
80996
  agent_dirs: Array<string>;
80997
+ /**
80998
+ * 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.
80999
+ */
81000
+ agent_bindings: Array<{
81001
+ /**
81002
+ * The absolute directory the desktop bound to an agent with praxis agent connect.
81003
+ */
81004
+ dir: string;
81005
+ /**
81006
+ * The agent the directory is bound to: its identity number or its agent id.
81007
+ */
81008
+ agent: string;
81009
+ }>;
81010
+ /**
81011
+ * The version of the envd on the desktop, as its last hello reported. Null for a phone, for a desktop that has not connected yet, and for an envd that sent no version.
81012
+ */
81013
+ envd_version: string | null;
79984
81014
  /**
79985
81015
  * Whether the desktop's envd lets a platform session run in bypassPermissions (all tool calls without asking). True unless the person ran praxis connect agent --no-bypass on that machine; a session create that asks for bypassPermissions on a device where this is false answers 400 INVALID_PARAMS. False for a phone and for a desktop that has not connected yet.
79986
81016
  */
@@ -80074,6 +81104,23 @@ export type UpdateByodDeviceResponses = {
80074
81104
  * 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.
80075
81105
  */
80076
81106
  agent_dirs: Array<string>;
81107
+ /**
81108
+ * 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.
81109
+ */
81110
+ agent_bindings: Array<{
81111
+ /**
81112
+ * The absolute directory the desktop bound to an agent with praxis agent connect.
81113
+ */
81114
+ dir: string;
81115
+ /**
81116
+ * The agent the directory is bound to: its identity number or its agent id.
81117
+ */
81118
+ agent: string;
81119
+ }>;
81120
+ /**
81121
+ * The version of the envd on the desktop, as its last hello reported. Null for a phone, for a desktop that has not connected yet, and for an envd that sent no version.
81122
+ */
81123
+ envd_version: string | null;
80077
81124
  /**
80078
81125
  * 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.
80079
81126
  */
@@ -83367,6 +84414,15 @@ export type AgentsListResponses = {
83367
84414
  name: string;
83368
84415
  }>;
83369
84416
  };
84417
+ /**
84418
+ * ADR-205: which browser the agent drives. {byob: byb_…} names one of your organization's paired browsers (browser.byob.browsers.list), which the agent then drives through connect() instead of a cloud browser; null or absent is the cloud browser. The browser must belong to your organization (otherwise 400) and must grant this agent before a session can open it. Omit on update to keep it, send an object to replace it, or null to go back to the cloud browser. /agent/v1 only.
84419
+ */
84420
+ browser?: {
84421
+ /**
84422
+ * A paired browser's id (byb_ and 26 lowercase hex characters), from browser.byob.browsers.list.
84423
+ */
84424
+ byob: string;
84425
+ } | null;
83370
84426
  /**
83371
84427
  * Praxis extension: MA only has session-scoped temporary containers and memory_stores, not durable browsable computers. computer_id selects a tenant-owned active computer. Session selection overrides the agent default; a sandbox environment_id and computer_id cannot be combined. Omitted when no computer is selected.
83372
84428
  */
@@ -84316,6 +85372,15 @@ export type AgentsCreateData = {
84316
85372
  name: string;
84317
85373
  }>;
84318
85374
  };
85375
+ /**
85376
+ * ADR-205: which browser the agent drives. {byob: byb_…} names one of your organization's paired browsers (browser.byob.browsers.list), which the agent then drives through connect() instead of a cloud browser; null or absent is the cloud browser. The browser must belong to your organization (otherwise 400) and must grant this agent before a session can open it. Omit on update to keep it, send an object to replace it, or null to go back to the cloud browser. /agent/v1 only.
85377
+ */
85378
+ browser?: {
85379
+ /**
85380
+ * A paired browser's id (byb_ and 26 lowercase hex characters), from browser.byob.browsers.list.
85381
+ */
85382
+ byob: string;
85383
+ } | null;
84319
85384
  /**
84320
85385
  * Optional tool preset. minimal enables read, glob and grep; data-editor also enables write and edit; full uses the default toolset with always_allow. Explicit tools override matching preset entries. codemode requires bash and is absent from data-editor.
84321
85386
  */
@@ -84571,6 +85636,15 @@ export type AgentsCreateResponses = {
84571
85636
  name: string;
84572
85637
  }>;
84573
85638
  };
85639
+ /**
85640
+ * ADR-205: which browser the agent drives. {byob: byb_…} names one of your organization's paired browsers (browser.byob.browsers.list), which the agent then drives through connect() instead of a cloud browser; null or absent is the cloud browser. The browser must belong to your organization (otherwise 400) and must grant this agent before a session can open it. Omit on update to keep it, send an object to replace it, or null to go back to the cloud browser. /agent/v1 only.
85641
+ */
85642
+ browser?: {
85643
+ /**
85644
+ * A paired browser's id (byb_ and 26 lowercase hex characters), from browser.byob.browsers.list.
85645
+ */
85646
+ byob: string;
85647
+ } | null;
84574
85648
  /**
84575
85649
  * Praxis extension: MA only has session-scoped temporary containers and memory_stores, not durable browsable computers. computer_id selects a tenant-owned active computer. Session selection overrides the agent default; a sandbox environment_id and computer_id cannot be combined. Omitted when no computer is selected.
84576
85650
  */
@@ -85233,6 +86307,15 @@ export type AgentsRetrieveResponses = {
85233
86307
  name: string;
85234
86308
  }>;
85235
86309
  };
86310
+ /**
86311
+ * ADR-205: which browser the agent drives. {byob: byb_…} names one of your organization's paired browsers (browser.byob.browsers.list), which the agent then drives through connect() instead of a cloud browser; null or absent is the cloud browser. The browser must belong to your organization (otherwise 400) and must grant this agent before a session can open it. Omit on update to keep it, send an object to replace it, or null to go back to the cloud browser. /agent/v1 only.
86312
+ */
86313
+ browser?: {
86314
+ /**
86315
+ * A paired browser's id (byb_ and 26 lowercase hex characters), from browser.byob.browsers.list.
86316
+ */
86317
+ byob: string;
86318
+ } | null;
85236
86319
  /**
85237
86320
  * Praxis extension: MA only has session-scoped temporary containers and memory_stores, not durable browsable computers. computer_id selects a tenant-owned active computer. Session selection overrides the agent default; a sandbox environment_id and computer_id cannot be combined. Omitted when no computer is selected.
85238
86321
  */
@@ -86191,6 +87274,15 @@ export type AgentsUpdateData = {
86191
87274
  name: string;
86192
87275
  }>;
86193
87276
  };
87277
+ /**
87278
+ * ADR-205: which browser the agent drives. {byob: byb_…} names one of your organization's paired browsers (browser.byob.browsers.list), which the agent then drives through connect() instead of a cloud browser; null or absent is the cloud browser. The browser must belong to your organization (otherwise 400) and must grant this agent before a session can open it. Omit on update to keep it, send an object to replace it, or null to go back to the cloud browser. /agent/v1 only.
87279
+ */
87280
+ browser?: {
87281
+ /**
87282
+ * A paired browser's id (byb_ and 26 lowercase hex characters), from browser.byob.browsers.list.
87283
+ */
87284
+ byob: string;
87285
+ } | null;
86194
87286
  /**
86195
87287
  * Optional tool preset. minimal enables read, glob and grep; data-editor also enables write and edit; full uses the default toolset with always_allow. Explicit tools override matching preset entries. codemode requires bash and is absent from data-editor.
86196
87288
  */
@@ -86459,6 +87551,15 @@ export type AgentsUpdateResponses = {
86459
87551
  name: string;
86460
87552
  }>;
86461
87553
  };
87554
+ /**
87555
+ * ADR-205: which browser the agent drives. {byob: byb_…} names one of your organization's paired browsers (browser.byob.browsers.list), which the agent then drives through connect() instead of a cloud browser; null or absent is the cloud browser. The browser must belong to your organization (otherwise 400) and must grant this agent before a session can open it. Omit on update to keep it, send an object to replace it, or null to go back to the cloud browser. /agent/v1 only.
87556
+ */
87557
+ browser?: {
87558
+ /**
87559
+ * A paired browser's id (byb_ and 26 lowercase hex characters), from browser.byob.browsers.list.
87560
+ */
87561
+ byob: string;
87562
+ } | null;
86462
87563
  /**
86463
87564
  * Praxis extension: MA only has session-scoped temporary containers and memory_stores, not durable browsable computers. computer_id selects a tenant-owned active computer. Session selection overrides the agent default; a sandbox environment_id and computer_id cannot be combined. Omitted when no computer is selected.
86464
87565
  */
@@ -87747,6 +88848,15 @@ export type AgentsVersionsListResponses = {
87747
88848
  name: string;
87748
88849
  }>;
87749
88850
  };
88851
+ /**
88852
+ * ADR-205: which browser the agent drives. {byob: byb_…} names one of your organization's paired browsers (browser.byob.browsers.list), which the agent then drives through connect() instead of a cloud browser; null or absent is the cloud browser. The browser must belong to your organization (otherwise 400) and must grant this agent before a session can open it. Omit on update to keep it, send an object to replace it, or null to go back to the cloud browser. /agent/v1 only.
88853
+ */
88854
+ browser?: {
88855
+ /**
88856
+ * A paired browser's id (byb_ and 26 lowercase hex characters), from browser.byob.browsers.list.
88857
+ */
88858
+ byob: string;
88859
+ } | null;
87750
88860
  /**
87751
88861
  * Praxis extension: MA only has session-scoped temporary containers and memory_stores, not durable browsable computers. computer_id selects a tenant-owned active computer. Session selection overrides the agent default; a sandbox environment_id and computer_id cannot be combined. Omitted when no computer is selected.
87752
88862
  */
@@ -111139,6 +112249,51 @@ export type DevopsChangesMarkLastSliceResponses = {
111139
112249
  200: DevopsChange;
111140
112250
  };
111141
112251
  export type DevopsChangesMarkLastSliceResponse = DevopsChangesMarkLastSliceResponses[keyof DevopsChangesMarkLastSliceResponses];
112252
+ export type DevopsChangesSlicesCreateData = {
112253
+ body?: DevopsChangeSliceCreateRequest;
112254
+ path: {
112255
+ /**
112256
+ * Identifies the project whose data you are reading, from the project list or create answer.
112257
+ */
112258
+ project: string;
112259
+ /**
112260
+ * 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.
112261
+ */
112262
+ change: string;
112263
+ };
112264
+ query?: never;
112265
+ url: '/devops/v1/projects/{project}/changes/{change}/slices';
112266
+ };
112267
+ export type DevopsChangesSlicesCreateErrors = {
112268
+ /**
112269
+ * 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.
112270
+ */
112271
+ 400: DevopsDevOpsError;
112272
+ /**
112273
+ * The API key is missing or invalid; send a valid Praxis API key in the Authorization header before retrying.
112274
+ */
112275
+ 401: DevopsDevOpsError;
112276
+ /**
112277
+ * 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.
112278
+ */
112279
+ 403: DevopsDevOpsError;
112280
+ /**
112281
+ * 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.
112282
+ */
112283
+ 404: DevopsDevOpsError;
112284
+ /**
112285
+ * 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.
112286
+ */
112287
+ 500: DevopsDevOpsError;
112288
+ };
112289
+ export type DevopsChangesSlicesCreateError = DevopsChangesSlicesCreateErrors[keyof DevopsChangesSlicesCreateErrors];
112290
+ export type DevopsChangesSlicesCreateResponses = {
112291
+ /**
112292
+ * 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.
112293
+ */
112294
+ 200: DevopsChangeSliceOpened;
112295
+ };
112296
+ export type DevopsChangesSlicesCreateResponse = DevopsChangesSlicesCreateResponses[keyof DevopsChangesSlicesCreateResponses];
111142
112297
  export type DevopsChangesOpenPullRequestData = {
111143
112298
  body?: DevopsChangeOpenPullRequestRequest;
111144
112299
  path: {