@deepraxis/sdk 0.2.0-dev.ed8a023 → 0.2.0

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,507 @@ 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
70537
+ */
70538
+ 403: BrowserError;
70539
+ /**
70540
+ * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
70541
+ */
70542
+ 404: BrowserError;
70543
+ /**
70544
+ * SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
70545
+ */
70546
+ 409: BrowserError;
70547
+ /**
70548
+ * BROWSER_REVOKED
70549
+ */
70550
+ 410: BrowserError;
70551
+ /**
70552
+ * ACTION_RESULT_TOO_LARGE
70553
+ */
70554
+ 413: BrowserError;
70555
+ /**
70556
+ * CONCURRENCY_LIMIT / RATE_LIMITED / PROVIDER_CAPACITY
70557
+ */
70558
+ 429: BrowserError;
70559
+ /**
70560
+ * INTERNAL
70561
+ */
70562
+ 500: BrowserError;
70563
+ /**
70564
+ * NOT_IMPLEMENTED / PROVIDER_UNSUPPORTED
70565
+ */
70566
+ 501: BrowserError;
70567
+ /**
70568
+ * PROVIDER_FAILED
70569
+ */
70570
+ 502: BrowserError;
70571
+ /**
70572
+ * BROWSER_OFFLINE / SERVICE_UNAVAILABLE
70573
+ */
70574
+ 503: BrowserError;
70575
+ /**
70576
+ * ACTION_TIMEOUT
70577
+ */
70578
+ 504: BrowserError;
70579
+ };
70580
+ export type BrowserCreateContextError = BrowserCreateContextErrors[keyof BrowserCreateContextErrors];
70581
+ export type BrowserCreateContextResponses = {
70582
+ /**
70583
+ * 请求成功。
70584
+ */
70585
+ 201: BrowserContextCreateResult;
70586
+ };
70587
+ export type BrowserCreateContextResponse = BrowserCreateContextResponses[keyof BrowserCreateContextResponses];
70588
+ export type BrowserDeleteContextData = {
70589
+ body?: never;
70590
+ path: {
70591
+ /**
70592
+ * 登录态 ID;使用创建或列出登录态返回的 id,以 bsc_ 开头。
70593
+ */
70594
+ contextId: string;
70595
+ };
70596
+ query?: never;
70597
+ url: '/browser/v1/contexts/{contextId}';
70598
+ };
70599
+ export type BrowserDeleteContextErrors = {
70600
+ /**
70601
+ * INVALID_PARAMS / INVALID_FILTER / INVALID_PAGE_TOKEN
70602
+ */
70603
+ 400: BrowserError;
70604
+ /**
70605
+ * UNAUTHENTICATED / CONNECT_SIGNATURE_INVALID
70606
+ */
70607
+ 401: BrowserError;
70608
+ /**
70609
+ * INSUFFICIENT_BALANCE / QUOTA_EXHAUSTED
70610
+ */
70611
+ 402: BrowserError;
70612
+ /**
70613
+ * PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
70614
+ */
70615
+ 403: BrowserError;
70616
+ /**
70617
+ * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
70618
+ */
70619
+ 404: BrowserError;
70620
+ /**
70621
+ * SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
70622
+ */
70623
+ 409: BrowserError;
70624
+ /**
70625
+ * BROWSER_REVOKED
70626
+ */
70627
+ 410: BrowserError;
70628
+ /**
70629
+ * ACTION_RESULT_TOO_LARGE
70630
+ */
70631
+ 413: BrowserError;
70632
+ /**
70633
+ * CONCURRENCY_LIMIT / RATE_LIMITED / PROVIDER_CAPACITY
70634
+ */
70635
+ 429: BrowserError;
70636
+ /**
70637
+ * INTERNAL
70638
+ */
70639
+ 500: BrowserError;
70640
+ /**
70641
+ * NOT_IMPLEMENTED / PROVIDER_UNSUPPORTED
70642
+ */
70643
+ 501: BrowserError;
70644
+ /**
70645
+ * PROVIDER_FAILED
70646
+ */
70647
+ 502: BrowserError;
70648
+ /**
70649
+ * BROWSER_OFFLINE / SERVICE_UNAVAILABLE
70650
+ */
70651
+ 503: BrowserError;
70652
+ /**
70653
+ * ACTION_TIMEOUT
70654
+ */
70655
+ 504: BrowserError;
70656
+ };
70657
+ export type BrowserDeleteContextError = BrowserDeleteContextErrors[keyof BrowserDeleteContextErrors];
70658
+ export type BrowserDeleteContextResponses = {
70659
+ /**
70660
+ * 请求成功。
70661
+ */
70662
+ 200: {
70663
+ /**
70664
+ * 登录态及保存内容已删除,成功时固定返回 true。
70665
+ */
70666
+ deleted: true;
70667
+ };
70668
+ };
70669
+ export type BrowserDeleteContextResponse = BrowserDeleteContextResponses[keyof BrowserDeleteContextResponses];
70670
+ export type BrowserGetContextData = {
70671
+ body?: never;
70672
+ path: {
70673
+ /**
70674
+ * 登录态 ID;使用创建或列出登录态返回的 id,以 bsc_ 开头。
70675
+ */
70676
+ contextId: string;
70677
+ };
70678
+ query?: never;
70679
+ url: '/browser/v1/contexts/{contextId}';
70680
+ };
70681
+ export type BrowserGetContextErrors = {
70682
+ /**
70683
+ * INVALID_PARAMS / INVALID_FILTER / INVALID_PAGE_TOKEN
70684
+ */
70685
+ 400: BrowserError;
70686
+ /**
70687
+ * UNAUTHENTICATED / CONNECT_SIGNATURE_INVALID
70688
+ */
70689
+ 401: BrowserError;
70690
+ /**
70691
+ * INSUFFICIENT_BALANCE / QUOTA_EXHAUSTED
70692
+ */
70693
+ 402: BrowserError;
70694
+ /**
70695
+ * PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
70696
+ */
70697
+ 403: BrowserError;
70698
+ /**
70699
+ * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
70700
+ */
70701
+ 404: BrowserError;
70702
+ /**
70703
+ * SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
70704
+ */
70705
+ 409: BrowserError;
70706
+ /**
70707
+ * BROWSER_REVOKED
70708
+ */
70709
+ 410: BrowserError;
70710
+ /**
70711
+ * ACTION_RESULT_TOO_LARGE
70712
+ */
70713
+ 413: BrowserError;
70714
+ /**
70715
+ * CONCURRENCY_LIMIT / RATE_LIMITED / PROVIDER_CAPACITY
70716
+ */
70717
+ 429: BrowserError;
70718
+ /**
70719
+ * INTERNAL
70720
+ */
70721
+ 500: BrowserError;
70722
+ /**
70723
+ * NOT_IMPLEMENTED / PROVIDER_UNSUPPORTED
70724
+ */
70725
+ 501: BrowserError;
70726
+ /**
70727
+ * PROVIDER_FAILED
70728
+ */
70729
+ 502: BrowserError;
70730
+ /**
70731
+ * BROWSER_OFFLINE / SERVICE_UNAVAILABLE
70732
+ */
70733
+ 503: BrowserError;
70734
+ /**
70735
+ * ACTION_TIMEOUT
70736
+ */
70737
+ 504: BrowserError;
70738
+ };
70739
+ export type BrowserGetContextError = BrowserGetContextErrors[keyof BrowserGetContextErrors];
70740
+ export type BrowserGetContextResponses = {
70741
+ /**
70742
+ * 请求成功。
70743
+ */
70744
+ 200: BrowserContext;
70745
+ };
70746
+ export type BrowserGetContextResponse = BrowserGetContextResponses[keyof BrowserGetContextResponses];
70747
+ export type BrowserUpdateContextData = {
70748
+ body: {
70749
+ /**
70750
+ * 登录态名称;非空时为 1–128 个 ASCII 字母、数字或 . _ : -,在当前账户内唯一;空字符串表示不设名称或清除名称。
70751
+ */
70752
+ name?: '' | unknown;
70753
+ /**
70754
+ * 自定义字符串标签;最多 32 项,键最多 128 个 UTF-8 字节,值最多 1024 个 UTF-8 字节。 更新时整体替换;空对象清除标签,省略则保留。
70755
+ */
70756
+ labels?: {
70757
+ [key: string]: string;
70758
+ };
70759
+ };
70760
+ path: {
70761
+ /**
70762
+ * 登录态 ID;使用创建或列出登录态返回的 id,以 bsc_ 开头。
70763
+ */
70764
+ contextId: string;
70765
+ };
70766
+ query?: never;
70767
+ url: '/browser/v1/contexts/{contextId}';
70768
+ };
70769
+ export type BrowserUpdateContextErrors = {
70770
+ /**
70771
+ * INVALID_PARAMS / INVALID_FILTER / INVALID_PAGE_TOKEN
70772
+ */
70773
+ 400: BrowserError;
70774
+ /**
70775
+ * UNAUTHENTICATED / CONNECT_SIGNATURE_INVALID
70776
+ */
70777
+ 401: BrowserError;
70778
+ /**
70779
+ * INSUFFICIENT_BALANCE / QUOTA_EXHAUSTED
70780
+ */
70781
+ 402: BrowserError;
70782
+ /**
70783
+ * PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
70784
+ */
70785
+ 403: BrowserError;
70786
+ /**
70787
+ * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
70788
+ */
70789
+ 404: BrowserError;
70790
+ /**
70791
+ * SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
70792
+ */
70793
+ 409: BrowserError;
70794
+ /**
70795
+ * BROWSER_REVOKED
70796
+ */
70797
+ 410: BrowserError;
70798
+ /**
70799
+ * ACTION_RESULT_TOO_LARGE
70800
+ */
70801
+ 413: BrowserError;
70802
+ /**
70803
+ * CONCURRENCY_LIMIT / RATE_LIMITED / PROVIDER_CAPACITY
70804
+ */
70805
+ 429: BrowserError;
70806
+ /**
70807
+ * INTERNAL
70808
+ */
70809
+ 500: BrowserError;
70810
+ /**
70811
+ * NOT_IMPLEMENTED / PROVIDER_UNSUPPORTED
70812
+ */
70813
+ 501: BrowserError;
70814
+ /**
70815
+ * PROVIDER_FAILED
70816
+ */
70817
+ 502: BrowserError;
70818
+ /**
70819
+ * BROWSER_OFFLINE / SERVICE_UNAVAILABLE
70820
+ */
70821
+ 503: BrowserError;
70822
+ /**
70823
+ * ACTION_TIMEOUT
70824
+ */
70825
+ 504: BrowserError;
70826
+ };
70827
+ export type BrowserUpdateContextError = BrowserUpdateContextErrors[keyof BrowserUpdateContextErrors];
70828
+ export type BrowserUpdateContextResponses = {
70829
+ /**
70830
+ * 请求成功。
70831
+ */
70832
+ 200: BrowserContext;
70833
+ };
70834
+ export type BrowserUpdateContextResponse = BrowserUpdateContextResponses[keyof BrowserUpdateContextResponses];
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 = {
70908
+ body?: never;
70909
+ path?: never;
70910
+ query?: {
70911
+ /**
70912
+ * 上一页返回的 nextCursor,原样传入;省略时读取第一页。
70913
+ */
70914
+ cursor?: string;
70915
+ /**
70916
+ * 每页最多返回的浏览器数量;默认 50,范围 1–100。
70917
+ */
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: {
70986
+ /**
70987
+ * 本页的自带浏览器;已断开的不在列表里。
70988
+ */
70989
+ data: Array<BrowserByobBrowser>;
70990
+ /**
70991
+ * 下一页游标;原样传入 cursor,null 表示没有更多结果。
70992
+ */
70993
+ nextCursor: string | null;
70994
+ };
70995
+ };
70996
+ export type BrowserListByobBrowsersResponse = BrowserListByobBrowsersResponses[keyof BrowserListByobBrowsersResponses];
70997
+ export type BrowserGetByobBrowserData = {
70998
+ body?: never;
70999
+ path: {
71000
+ /**
71001
+ * 自带浏览器 ID,以 byb_ 开头;使用配对认领或列出自带浏览器返回的 id。
71002
+ */
71003
+ browser_id: string;
71004
+ };
71005
+ query?: never;
71006
+ url: '/browser/v1/byob/browsers/{browser_id}';
71007
+ };
71008
+ export type BrowserGetByobBrowserErrors = {
71009
+ /**
71010
+ * INVALID_PARAMS / INVALID_FILTER / INVALID_PAGE_TOKEN
71011
+ */
71012
+ 400: BrowserError;
71013
+ /**
71014
+ * UNAUTHENTICATED / CONNECT_SIGNATURE_INVALID
71015
+ */
71016
+ 401: BrowserError;
71017
+ /**
71018
+ * INSUFFICIENT_BALANCE / QUOTA_EXHAUSTED
71019
+ */
71020
+ 402: BrowserError;
71021
+ /**
71022
+ * PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
70161
71023
  */
70162
71024
  403: BrowserError;
70163
71025
  /**
70164
- * 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
70165
71027
  */
70166
71028
  404: BrowserError;
70167
71029
  /**
70168
- * 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
70169
71031
  */
70170
71032
  409: BrowserError;
71033
+ /**
71034
+ * BROWSER_REVOKED
71035
+ */
71036
+ 410: BrowserError;
70171
71037
  /**
70172
71038
  * ACTION_RESULT_TOO_LARGE
70173
71039
  */
@@ -70189,7 +71055,7 @@ export type BrowserCreateContextErrors = {
70189
71055
  */
70190
71056
  502: BrowserError;
70191
71057
  /**
70192
- * SERVICE_UNAVAILABLE
71058
+ * BROWSER_OFFLINE / SERVICE_UNAVAILABLE
70193
71059
  */
70194
71060
  503: BrowserError;
70195
71061
  /**
@@ -70197,26 +71063,39 @@ export type BrowserCreateContextErrors = {
70197
71063
  */
70198
71064
  504: BrowserError;
70199
71065
  };
70200
- export type BrowserCreateContextError = BrowserCreateContextErrors[keyof BrowserCreateContextErrors];
70201
- export type BrowserCreateContextResponses = {
71066
+ export type BrowserGetByobBrowserError = BrowserGetByobBrowserErrors[keyof BrowserGetByobBrowserErrors];
71067
+ export type BrowserGetByobBrowserResponses = {
70202
71068
  /**
70203
71069
  * 请求成功。
70204
71070
  */
70205
- 201: BrowserContextCreateResult;
71071
+ 200: BrowserByobBrowser;
70206
71072
  };
70207
- export type BrowserCreateContextResponse = BrowserCreateContextResponses[keyof BrowserCreateContextResponses];
70208
- export type BrowserDeleteContextData = {
70209
- body?: never;
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
+ };
70210
71089
  path: {
70211
71090
  /**
70212
- * 登录态 ID;使用创建或列出登录态返回的 id,以 bsc_ 开头。
71091
+ * 自带浏览器 ID,以 byb_ 开头;使用配对认领或列出自带浏览器返回的 id。
70213
71092
  */
70214
- contextId: string;
71093
+ browser_id: string;
70215
71094
  };
70216
71095
  query?: never;
70217
- url: '/browser/v1/contexts/{contextId}';
71096
+ url: '/browser/v1/byob/browsers/{browser_id}';
70218
71097
  };
70219
- export type BrowserDeleteContextErrors = {
71098
+ export type BrowserUpdateByobBrowserErrors = {
70220
71099
  /**
70221
71100
  * INVALID_PARAMS / INVALID_FILTER / INVALID_PAGE_TOKEN
70222
71101
  */
@@ -70230,17 +71109,21 @@ export type BrowserDeleteContextErrors = {
70230
71109
  */
70231
71110
  402: BrowserError;
70232
71111
  /**
70233
- * PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
71112
+ * PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
70234
71113
  */
70235
71114
  403: BrowserError;
70236
71115
  /**
70237
- * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
71116
+ * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
70238
71117
  */
70239
71118
  404: BrowserError;
70240
71119
  /**
70241
- * SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
71120
+ * SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
70242
71121
  */
70243
71122
  409: BrowserError;
71123
+ /**
71124
+ * BROWSER_REVOKED
71125
+ */
71126
+ 410: BrowserError;
70244
71127
  /**
70245
71128
  * ACTION_RESULT_TOO_LARGE
70246
71129
  */
@@ -70262,7 +71145,7 @@ export type BrowserDeleteContextErrors = {
70262
71145
  */
70263
71146
  502: BrowserError;
70264
71147
  /**
70265
- * SERVICE_UNAVAILABLE
71148
+ * BROWSER_OFFLINE / SERVICE_UNAVAILABLE
70266
71149
  */
70267
71150
  503: BrowserError;
70268
71151
  /**
@@ -70270,31 +71153,26 @@ export type BrowserDeleteContextErrors = {
70270
71153
  */
70271
71154
  504: BrowserError;
70272
71155
  };
70273
- export type BrowserDeleteContextError = BrowserDeleteContextErrors[keyof BrowserDeleteContextErrors];
70274
- export type BrowserDeleteContextResponses = {
71156
+ export type BrowserUpdateByobBrowserError = BrowserUpdateByobBrowserErrors[keyof BrowserUpdateByobBrowserErrors];
71157
+ export type BrowserUpdateByobBrowserResponses = {
70275
71158
  /**
70276
71159
  * 请求成功。
70277
71160
  */
70278
- 200: {
70279
- /**
70280
- * 登录态及保存内容已删除,成功时固定返回 true。
70281
- */
70282
- deleted: true;
70283
- };
71161
+ 200: BrowserByobBrowser;
70284
71162
  };
70285
- export type BrowserDeleteContextResponse = BrowserDeleteContextResponses[keyof BrowserDeleteContextResponses];
70286
- export type BrowserGetContextData = {
71163
+ export type BrowserUpdateByobBrowserResponse = BrowserUpdateByobBrowserResponses[keyof BrowserUpdateByobBrowserResponses];
71164
+ export type BrowserDisconnectByobBrowserData = {
70287
71165
  body?: never;
70288
71166
  path: {
70289
71167
  /**
70290
- * 登录态 ID;使用创建或列出登录态返回的 id,以 bsc_ 开头。
71168
+ * 自带浏览器 ID,以 byb_ 开头;使用配对认领或列出自带浏览器返回的 id。
70291
71169
  */
70292
- contextId: string;
71170
+ browser_id: string;
70293
71171
  };
70294
71172
  query?: never;
70295
- url: '/browser/v1/contexts/{contextId}';
71173
+ url: '/browser/v1/byob/browsers/{browser_id}/disconnect';
70296
71174
  };
70297
- export type BrowserGetContextErrors = {
71175
+ export type BrowserDisconnectByobBrowserErrors = {
70298
71176
  /**
70299
71177
  * INVALID_PARAMS / INVALID_FILTER / INVALID_PAGE_TOKEN
70300
71178
  */
@@ -70308,17 +71186,21 @@ export type BrowserGetContextErrors = {
70308
71186
  */
70309
71187
  402: BrowserError;
70310
71188
  /**
70311
- * PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
71189
+ * PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
70312
71190
  */
70313
71191
  403: BrowserError;
70314
71192
  /**
70315
- * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
71193
+ * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
70316
71194
  */
70317
71195
  404: BrowserError;
70318
71196
  /**
70319
- * SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
71197
+ * SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
70320
71198
  */
70321
71199
  409: BrowserError;
71200
+ /**
71201
+ * BROWSER_REVOKED
71202
+ */
71203
+ 410: BrowserError;
70322
71204
  /**
70323
71205
  * ACTION_RESULT_TOO_LARGE
70324
71206
  */
@@ -70340,7 +71222,7 @@ export type BrowserGetContextErrors = {
70340
71222
  */
70341
71223
  502: BrowserError;
70342
71224
  /**
70343
- * SERVICE_UNAVAILABLE
71225
+ * BROWSER_OFFLINE / SERVICE_UNAVAILABLE
70344
71226
  */
70345
71227
  503: BrowserError;
70346
71228
  /**
@@ -70348,37 +71230,103 @@ export type BrowserGetContextErrors = {
70348
71230
  */
70349
71231
  504: BrowserError;
70350
71232
  };
70351
- export type BrowserGetContextError = BrowserGetContextErrors[keyof BrowserGetContextErrors];
70352
- export type BrowserGetContextResponses = {
71233
+ export type BrowserDisconnectByobBrowserError = BrowserDisconnectByobBrowserErrors[keyof BrowserDisconnectByobBrowserErrors];
71234
+ export type BrowserDisconnectByobBrowserResponses = {
70353
71235
  /**
70354
71236
  * 请求成功。
70355
71237
  */
70356
- 200: BrowserContext;
71238
+ 200: BrowserByobBrowser;
70357
71239
  };
70358
- export type BrowserGetContextResponse = BrowserGetContextResponses[keyof BrowserGetContextResponses];
70359
- export type BrowserUpdateContextData = {
70360
- body: {
70361
- /**
70362
- * 登录态名称;非空时为 1–128 个 ASCII 字母、数字或 . _ : -,在当前账户内唯一;空字符串表示不设名称或清除名称。
70363
- */
70364
- name?: '' | unknown;
71240
+ export type BrowserDisconnectByobBrowserResponse = BrowserDisconnectByobBrowserResponses[keyof BrowserDisconnectByobBrowserResponses];
71241
+ export type BrowserReadByobPairingData = {
71242
+ body?: never;
71243
+ path: {
70365
71244
  /**
70366
- * 自定义字符串标签;最多 32 项,键最多 128 个 UTF-8 字节,值最多 1024 个 UTF-8 字节。 更新时整体替换;空对象清除标签,省略则保留。
71245
+ * 8 位配对码,来自创建配对码的结果。
70367
71246
  */
70368
- labels?: {
70369
- [key: string]: string;
70370
- };
71247
+ code: string;
70371
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;
70372
71320
  path: {
70373
71321
  /**
70374
- * 登录态 ID;使用创建或列出登录态返回的 id,以 bsc_ 开头。
71322
+ * 8 位配对码,来自创建配对码的结果。
70375
71323
  */
70376
- contextId: string;
71324
+ code: string;
70377
71325
  };
70378
71326
  query?: never;
70379
- url: '/browser/v1/contexts/{contextId}';
71327
+ url: '/browser/v1/byob/pairings/{code}/claim';
70380
71328
  };
70381
- export type BrowserUpdateContextErrors = {
71329
+ export type BrowserClaimByobPairingErrors = {
70382
71330
  /**
70383
71331
  * INVALID_PARAMS / INVALID_FILTER / INVALID_PAGE_TOKEN
70384
71332
  */
@@ -70392,17 +71340,21 @@ export type BrowserUpdateContextErrors = {
70392
71340
  */
70393
71341
  402: BrowserError;
70394
71342
  /**
70395
- * PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
71343
+ * PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
70396
71344
  */
70397
71345
  403: BrowserError;
70398
71346
  /**
70399
- * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
71347
+ * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
70400
71348
  */
70401
71349
  404: BrowserError;
70402
71350
  /**
70403
- * SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
71351
+ * SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
70404
71352
  */
70405
71353
  409: BrowserError;
71354
+ /**
71355
+ * BROWSER_REVOKED
71356
+ */
71357
+ 410: BrowserError;
70406
71358
  /**
70407
71359
  * ACTION_RESULT_TOO_LARGE
70408
71360
  */
@@ -70424,7 +71376,7 @@ export type BrowserUpdateContextErrors = {
70424
71376
  */
70425
71377
  502: BrowserError;
70426
71378
  /**
70427
- * SERVICE_UNAVAILABLE
71379
+ * BROWSER_OFFLINE / SERVICE_UNAVAILABLE
70428
71380
  */
70429
71381
  503: BrowserError;
70430
71382
  /**
@@ -70432,14 +71384,14 @@ export type BrowserUpdateContextErrors = {
70432
71384
  */
70433
71385
  504: BrowserError;
70434
71386
  };
70435
- export type BrowserUpdateContextError = BrowserUpdateContextErrors[keyof BrowserUpdateContextErrors];
70436
- export type BrowserUpdateContextResponses = {
71387
+ export type BrowserClaimByobPairingError = BrowserClaimByobPairingErrors[keyof BrowserClaimByobPairingErrors];
71388
+ export type BrowserClaimByobPairingResponses = {
70437
71389
  /**
70438
- * 请求成功。
71390
+ * 认领成功。
70439
71391
  */
70440
- 200: BrowserContext;
71392
+ 201: BrowserByobClaimResult;
70441
71393
  };
70442
- export type BrowserUpdateContextResponse = BrowserUpdateContextResponses[keyof BrowserUpdateContextResponses];
71394
+ export type BrowserClaimByobPairingResponse = BrowserClaimByobPairingResponses[keyof BrowserClaimByobPairingResponses];
70443
71395
  export type BrowserConnectData = {
70444
71396
  body?: never;
70445
71397
  path?: never;
@@ -70497,17 +71449,21 @@ export type BrowserConnectErrors = {
70497
71449
  */
70498
71450
  402: BrowserError;
70499
71451
  /**
70500
- * PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
71452
+ * PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
70501
71453
  */
70502
71454
  403: BrowserError;
70503
71455
  /**
70504
- * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
71456
+ * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
70505
71457
  */
70506
71458
  404: BrowserError;
70507
71459
  /**
70508
- * SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
71460
+ * SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
70509
71461
  */
70510
71462
  409: BrowserError;
71463
+ /**
71464
+ * BROWSER_REVOKED
71465
+ */
71466
+ 410: BrowserError;
70511
71467
  /**
70512
71468
  * ACTION_RESULT_TOO_LARGE
70513
71469
  */
@@ -70529,7 +71485,7 @@ export type BrowserConnectErrors = {
70529
71485
  */
70530
71486
  502: BrowserError;
70531
71487
  /**
70532
- * SERVICE_UNAVAILABLE
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
  /**
@@ -78094,13 +79070,17 @@ export type ListOrganizationNotificationLettersData = {
78094
79070
  };
78095
79071
  export type ListOrganizationNotificationLettersErrors = {
78096
79072
  /**
78097
- * Invalid status, archived or limit (RFC 9457 problem).
79073
+ * A bad `status`, `archived` or `limit`, or `INVALID_PARAMS` from the service for a cursor it did not issue (RFC 9457 problem).
78098
79074
  */
78099
79075
  400: unknown;
78100
79076
  /**
78101
79077
  * Missing or invalid credential (RFC 9457 problem).
78102
79078
  */
78103
79079
  401: unknown;
79080
+ /**
79081
+ * 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.
79082
+ */
79083
+ 502: unknown;
78104
79084
  };
78105
79085
  export type ListOrganizationNotificationLettersResponses = {
78106
79086
  /**
@@ -78203,7 +79183,7 @@ export type GetOrganizationNotificationLetterData = {
78203
79183
  };
78204
79184
  export type GetOrganizationNotificationLetterErrors = {
78205
79185
  /**
78206
- * The id is not a letter id (RFC 9457 problem).
79186
+ * The id is not a letter id — `INVALID_PARAMS` from the service (RFC 9457 problem).
78207
79187
  */
78208
79188
  400: unknown;
78209
79189
  /**
@@ -78211,9 +79191,13 @@ export type GetOrganizationNotificationLetterErrors = {
78211
79191
  */
78212
79192
  401: unknown;
78213
79193
  /**
78214
- * No such letter in your mailbox (RFC 9457 problem).
79194
+ * 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).
78215
79195
  */
78216
79196
  404: unknown;
79197
+ /**
79198
+ * 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.
79199
+ */
79200
+ 502: unknown;
78217
79201
  };
78218
79202
  export type GetOrganizationNotificationLetterResponses = {
78219
79203
  /**
@@ -78303,7 +79287,7 @@ export type ReadOrganizationNotificationLetterData = {
78303
79287
  };
78304
79288
  export type ReadOrganizationNotificationLetterErrors = {
78305
79289
  /**
78306
- * The id is not a letter id (RFC 9457 problem).
79290
+ * The id is not a letter id — `INVALID_PARAMS` from the service (RFC 9457 problem).
78307
79291
  */
78308
79292
  400: unknown;
78309
79293
  /**
@@ -78311,9 +79295,13 @@ export type ReadOrganizationNotificationLetterErrors = {
78311
79295
  */
78312
79296
  401: unknown;
78313
79297
  /**
78314
- * No such letter in your mailbox (RFC 9457 problem).
79298
+ * No such letter in your mailbox in this organization — `MESSAGE_NOT_FOUND` (RFC 9457 problem).
78315
79299
  */
78316
79300
  404: unknown;
79301
+ /**
79302
+ * 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.
79303
+ */
79304
+ 502: unknown;
78317
79305
  };
78318
79306
  export type ReadOrganizationNotificationLetterResponses = {
78319
79307
  /**
@@ -78340,13 +79328,17 @@ export type ReadAllOrganizationNotificationLettersData = {
78340
79328
  };
78341
79329
  export type ReadAllOrganizationNotificationLettersErrors = {
78342
79330
  /**
78343
- * 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).
78344
79332
  */
78345
79333
  400: unknown;
78346
79334
  /**
78347
79335
  * Missing or invalid credential (RFC 9457 problem).
78348
79336
  */
78349
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;
78350
79342
  };
78351
79343
  export type ReadAllOrganizationNotificationLettersResponses = {
78352
79344
  /**
@@ -78373,7 +79365,7 @@ export type ArchiveOrganizationNotificationLetterData = {
78373
79365
  };
78374
79366
  export type ArchiveOrganizationNotificationLetterErrors = {
78375
79367
  /**
78376
- * The id is not a letter id (RFC 9457 problem).
79368
+ * The id is not a letter id — `INVALID_PARAMS` from the service (RFC 9457 problem).
78377
79369
  */
78378
79370
  400: unknown;
78379
79371
  /**
@@ -78381,9 +79373,13 @@ export type ArchiveOrganizationNotificationLetterErrors = {
78381
79373
  */
78382
79374
  401: unknown;
78383
79375
  /**
78384
- * No such letter in your mailbox (RFC 9457 problem).
79376
+ * No such letter in your mailbox in this organization — `MESSAGE_NOT_FOUND` (RFC 9457 problem).
78385
79377
  */
78386
79378
  404: unknown;
79379
+ /**
79380
+ * 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.
79381
+ */
79382
+ 502: unknown;
78387
79383
  };
78388
79384
  export type ArchiveOrganizationNotificationLetterResponses = {
78389
79385
  /**
@@ -78408,6 +79404,10 @@ export type GetOrganizationNotificationPreferencesErrors = {
78408
79404
  * Missing or invalid credential (RFC 9457 problem).
78409
79405
  */
78410
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;
78411
79411
  };
78412
79412
  export type GetOrganizationNotificationPreferencesResponses = {
78413
79413
  /**
@@ -78499,7 +79499,7 @@ export type UpdateOrganizationNotificationPreferencesData = {
78499
79499
  };
78500
79500
  export type UpdateOrganizationNotificationPreferencesErrors = {
78501
79501
  /**
78502
- * 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).
78503
79503
  */
78504
79504
  400: unknown;
78505
79505
  /**
@@ -78507,9 +79507,13 @@ export type UpdateOrganizationNotificationPreferencesErrors = {
78507
79507
  */
78508
79508
  401: unknown;
78509
79509
  /**
78510
- * 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).
78511
79511
  */
78512
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;
78513
79517
  };
78514
79518
  export type UpdateOrganizationNotificationPreferencesResponses = {
78515
79519
  /**
@@ -78531,6 +79535,10 @@ export type GetOrganizationNotificationDefaultsErrors = {
78531
79535
  * Missing or invalid credential (RFC 9457 problem).
78532
79536
  */
78533
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;
78534
79542
  };
78535
79543
  export type GetOrganizationNotificationDefaultsResponses = {
78536
79544
  /**
@@ -78568,7 +79576,7 @@ export type UpdateOrganizationNotificationDefaultsData = {
78568
79576
  };
78569
79577
  export type UpdateOrganizationNotificationDefaultsErrors = {
78570
79578
  /**
78571
- * Invalid default, unknown category or hidden critical category (RFC 9457 problem).
79579
+ * Invalid default, unknown category or hidden critical category (RFC 9457 problem, `INVALID_PARAMS`).
78572
79580
  */
78573
79581
  400: unknown;
78574
79582
  /**
@@ -78576,9 +79584,13 @@ export type UpdateOrganizationNotificationDefaultsErrors = {
78576
79584
  */
78577
79585
  401: unknown;
78578
79586
  /**
78579
- * The caller is not an owner or admin of this organization.
79587
+ * The caller is not an owner or admin of this organization — `PERMISSION_DENIED` from the service (RFC 9457 problem).
78580
79588
  */
78581
79589
  403: unknown;
79590
+ /**
79591
+ * 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.
79592
+ */
79593
+ 502: unknown;
78582
79594
  };
78583
79595
  export type UpdateOrganizationNotificationDefaultsResponses = {
78584
79596
  /**
@@ -78606,13 +79618,17 @@ export type ListOrganizationNotificationDeliveriesData = {
78606
79618
  };
78607
79619
  export type ListOrganizationNotificationDeliveriesErrors = {
78608
79620
  /**
78609
- * 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).
78610
79622
  */
78611
79623
  400: unknown;
78612
79624
  /**
78613
79625
  * Missing or invalid credential (RFC 9457 problem).
78614
79626
  */
78615
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;
78616
79632
  };
78617
79633
  export type ListOrganizationNotificationDeliveriesResponses = {
78618
79634
  /**
@@ -79879,6 +80895,19 @@ export type ListByodDevicesResponses = {
79879
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.
79880
80896
  */
79881
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
+ }>;
79882
80911
  /**
79883
80912
  * 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.
79884
80913
  */
@@ -79961,6 +80990,19 @@ export type GetByodDeviceResponses = {
79961
80990
  * 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.
79962
80991
  */
79963
80992
  agent_dirs: Array<string>;
80993
+ /**
80994
+ * 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.
80995
+ */
80996
+ agent_bindings: Array<{
80997
+ /**
80998
+ * The absolute directory the desktop bound to an agent with praxis agent connect.
80999
+ */
81000
+ dir: string;
81001
+ /**
81002
+ * The agent the directory is bound to: its identity number or its agent id.
81003
+ */
81004
+ agent: string;
81005
+ }>;
79964
81006
  /**
79965
81007
  * 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.
79966
81008
  */
@@ -80054,6 +81096,19 @@ export type UpdateByodDeviceResponses = {
80054
81096
  * 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.
80055
81097
  */
80056
81098
  agent_dirs: Array<string>;
81099
+ /**
81100
+ * 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.
81101
+ */
81102
+ agent_bindings: Array<{
81103
+ /**
81104
+ * The absolute directory the desktop bound to an agent with praxis agent connect.
81105
+ */
81106
+ dir: string;
81107
+ /**
81108
+ * The agent the directory is bound to: its identity number or its agent id.
81109
+ */
81110
+ agent: string;
81111
+ }>;
80057
81112
  /**
80058
81113
  * 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.
80059
81114
  */
@@ -83347,6 +84402,15 @@ export type AgentsListResponses = {
83347
84402
  name: string;
83348
84403
  }>;
83349
84404
  };
84405
+ /**
84406
+ * 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.
84407
+ */
84408
+ browser?: {
84409
+ /**
84410
+ * A paired browser's id (byb_ and 26 lowercase hex characters), from browser.byob.browsers.list.
84411
+ */
84412
+ byob: string;
84413
+ } | null;
83350
84414
  /**
83351
84415
  * 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.
83352
84416
  */
@@ -84296,6 +85360,15 @@ export type AgentsCreateData = {
84296
85360
  name: string;
84297
85361
  }>;
84298
85362
  };
85363
+ /**
85364
+ * 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.
85365
+ */
85366
+ browser?: {
85367
+ /**
85368
+ * A paired browser's id (byb_ and 26 lowercase hex characters), from browser.byob.browsers.list.
85369
+ */
85370
+ byob: string;
85371
+ } | null;
84299
85372
  /**
84300
85373
  * 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.
84301
85374
  */
@@ -84551,6 +85624,15 @@ export type AgentsCreateResponses = {
84551
85624
  name: string;
84552
85625
  }>;
84553
85626
  };
85627
+ /**
85628
+ * 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.
85629
+ */
85630
+ browser?: {
85631
+ /**
85632
+ * A paired browser's id (byb_ and 26 lowercase hex characters), from browser.byob.browsers.list.
85633
+ */
85634
+ byob: string;
85635
+ } | null;
84554
85636
  /**
84555
85637
  * 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.
84556
85638
  */
@@ -85213,6 +86295,15 @@ export type AgentsRetrieveResponses = {
85213
86295
  name: string;
85214
86296
  }>;
85215
86297
  };
86298
+ /**
86299
+ * 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.
86300
+ */
86301
+ browser?: {
86302
+ /**
86303
+ * A paired browser's id (byb_ and 26 lowercase hex characters), from browser.byob.browsers.list.
86304
+ */
86305
+ byob: string;
86306
+ } | null;
85216
86307
  /**
85217
86308
  * 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.
85218
86309
  */
@@ -86171,6 +87262,15 @@ export type AgentsUpdateData = {
86171
87262
  name: string;
86172
87263
  }>;
86173
87264
  };
87265
+ /**
87266
+ * 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.
87267
+ */
87268
+ browser?: {
87269
+ /**
87270
+ * A paired browser's id (byb_ and 26 lowercase hex characters), from browser.byob.browsers.list.
87271
+ */
87272
+ byob: string;
87273
+ } | null;
86174
87274
  /**
86175
87275
  * 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.
86176
87276
  */
@@ -86439,6 +87539,15 @@ export type AgentsUpdateResponses = {
86439
87539
  name: string;
86440
87540
  }>;
86441
87541
  };
87542
+ /**
87543
+ * 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.
87544
+ */
87545
+ browser?: {
87546
+ /**
87547
+ * A paired browser's id (byb_ and 26 lowercase hex characters), from browser.byob.browsers.list.
87548
+ */
87549
+ byob: string;
87550
+ } | null;
86442
87551
  /**
86443
87552
  * 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.
86444
87553
  */
@@ -87727,6 +88836,15 @@ export type AgentsVersionsListResponses = {
87727
88836
  name: string;
87728
88837
  }>;
87729
88838
  };
88839
+ /**
88840
+ * 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.
88841
+ */
88842
+ browser?: {
88843
+ /**
88844
+ * A paired browser's id (byb_ and 26 lowercase hex characters), from browser.byob.browsers.list.
88845
+ */
88846
+ byob: string;
88847
+ } | null;
87730
88848
  /**
87731
88849
  * 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.
87732
88850
  */
@@ -111119,6 +112237,51 @@ export type DevopsChangesMarkLastSliceResponses = {
111119
112237
  200: DevopsChange;
111120
112238
  };
111121
112239
  export type DevopsChangesMarkLastSliceResponse = DevopsChangesMarkLastSliceResponses[keyof DevopsChangesMarkLastSliceResponses];
112240
+ export type DevopsChangesSlicesCreateData = {
112241
+ body?: DevopsChangeSliceCreateRequest;
112242
+ path: {
112243
+ /**
112244
+ * Identifies the project whose data you are reading, from the project list or create answer.
112245
+ */
112246
+ project: string;
112247
+ /**
112248
+ * 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.
112249
+ */
112250
+ change: string;
112251
+ };
112252
+ query?: never;
112253
+ url: '/devops/v1/projects/{project}/changes/{change}/slices';
112254
+ };
112255
+ export type DevopsChangesSlicesCreateErrors = {
112256
+ /**
112257
+ * 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.
112258
+ */
112259
+ 400: DevopsDevOpsError;
112260
+ /**
112261
+ * The API key is missing or invalid; send a valid Praxis API key in the Authorization header before retrying.
112262
+ */
112263
+ 401: DevopsDevOpsError;
112264
+ /**
112265
+ * 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.
112266
+ */
112267
+ 403: DevopsDevOpsError;
112268
+ /**
112269
+ * 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.
112270
+ */
112271
+ 404: DevopsDevOpsError;
112272
+ /**
112273
+ * 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.
112274
+ */
112275
+ 500: DevopsDevOpsError;
112276
+ };
112277
+ export type DevopsChangesSlicesCreateError = DevopsChangesSlicesCreateErrors[keyof DevopsChangesSlicesCreateErrors];
112278
+ export type DevopsChangesSlicesCreateResponses = {
112279
+ /**
112280
+ * 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.
112281
+ */
112282
+ 200: DevopsChangeSliceOpened;
112283
+ };
112284
+ export type DevopsChangesSlicesCreateResponse = DevopsChangesSlicesCreateResponses[keyof DevopsChangesSlicesCreateResponses];
111122
112285
  export type DevopsChangesOpenPullRequestData = {
111123
112286
  body?: DevopsChangeOpenPullRequestRequest;
111124
112287
  path: {