@deepraxis/sdk 0.2.0-dev.6ed6b94 → 0.2.0-dev.826472f

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.
@@ -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
  /**
@@ -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
  */
@@ -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: {
@@ -55027,6 +55207,15 @@ export type ApplyAgentVersionResponses = {
55027
55207
  name: string;
55028
55208
  }>;
55029
55209
  };
55210
+ /**
55211
+ * ADR-205: which browser the agent drives. {byob: byb_…} names one of your organization's paired browsers (browser.byob.browsers.list), which the agent then drives through connect() instead of a cloud browser; null or absent is the cloud browser. The browser must belong to your organization (otherwise 400) and must grant this agent before a session can open it. Omit on update to keep it, send an object to replace it, or null to go back to the cloud browser. /agent/v1 only.
55212
+ */
55213
+ browser?: {
55214
+ /**
55215
+ * A paired browser's id (byb_ and 26 lowercase hex characters), from browser.byob.browsers.list.
55216
+ */
55217
+ byob: string;
55218
+ } | null;
55030
55219
  /**
55031
55220
  * Praxis extension: MA only has session-scoped temporary containers and memory_stores, not durable browsable computers. computer_id selects a tenant-owned active computer. Session selection overrides the agent default; a sandbox environment_id and computer_id cannot be combined. Omitted when no computer is selected.
55032
55221
  */
@@ -56278,6 +56467,15 @@ export type UnarchiveAgentResponses = {
56278
56467
  name: string;
56279
56468
  }>;
56280
56469
  };
56470
+ /**
56471
+ * ADR-205: which browser the agent drives. {byob: byb_…} names one of your organization's paired browsers (browser.byob.browsers.list), which the agent then drives through connect() instead of a cloud browser; null or absent is the cloud browser. The browser must belong to your organization (otherwise 400) and must grant this agent before a session can open it. Omit on update to keep it, send an object to replace it, or null to go back to the cloud browser. /agent/v1 only.
56472
+ */
56473
+ browser?: {
56474
+ /**
56475
+ * A paired browser's id (byb_ and 26 lowercase hex characters), from browser.byob.browsers.list.
56476
+ */
56477
+ byob: string;
56478
+ } | null;
56281
56479
  /**
56282
56480
  * Praxis extension: MA only has session-scoped temporary containers and memory_stores, not durable browsable computers. computer_id selects a tenant-owned active computer. Session selection overrides the agent default; a sandbox environment_id and computer_id cannot be combined. Omitted when no computer is selected.
56283
56481
  */
@@ -68908,17 +69106,21 @@ export type BrowserListSessionsErrors = {
68908
69106
  */
68909
69107
  402: BrowserError;
68910
69108
  /**
68911
- * PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
69109
+ * PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
68912
69110
  */
68913
69111
  403: BrowserError;
68914
69112
  /**
68915
- * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
69113
+ * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
68916
69114
  */
68917
69115
  404: BrowserError;
68918
69116
  /**
68919
- * SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
69117
+ * SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
68920
69118
  */
68921
69119
  409: BrowserError;
69120
+ /**
69121
+ * BROWSER_REVOKED
69122
+ */
69123
+ 410: BrowserError;
68922
69124
  /**
68923
69125
  * ACTION_RESULT_TOO_LARGE
68924
69126
  */
@@ -68940,7 +69142,7 @@ export type BrowserListSessionsErrors = {
68940
69142
  */
68941
69143
  502: BrowserError;
68942
69144
  /**
68943
- * SERVICE_UNAVAILABLE
69145
+ * BROWSER_OFFLINE / SERVICE_UNAVAILABLE
68944
69146
  */
68945
69147
  503: BrowserError;
68946
69148
  /**
@@ -68985,17 +69187,21 @@ export type BrowserCreateSessionErrors = {
68985
69187
  */
68986
69188
  402: BrowserError;
68987
69189
  /**
68988
- * PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
69190
+ * PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
68989
69191
  */
68990
69192
  403: BrowserError;
68991
69193
  /**
68992
- * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
69194
+ * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
68993
69195
  */
68994
69196
  404: BrowserError;
68995
69197
  /**
68996
- * SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
69198
+ * SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
68997
69199
  */
68998
69200
  409: BrowserError;
69201
+ /**
69202
+ * BROWSER_REVOKED
69203
+ */
69204
+ 410: BrowserError;
68999
69205
  /**
69000
69206
  * ACTION_RESULT_TOO_LARGE
69001
69207
  */
@@ -69017,7 +69223,7 @@ export type BrowserCreateSessionErrors = {
69017
69223
  */
69018
69224
  502: BrowserError;
69019
69225
  /**
69020
- * SERVICE_UNAVAILABLE
69226
+ * BROWSER_OFFLINE / SERVICE_UNAVAILABLE
69021
69227
  */
69022
69228
  503: BrowserError;
69023
69229
  /**
@@ -69027,6 +69233,10 @@ export type BrowserCreateSessionErrors = {
69027
69233
  };
69028
69234
  export type BrowserCreateSessionError = BrowserCreateSessionErrors[keyof BrowserCreateSessionErrors];
69029
69235
  export type BrowserCreateSessionResponses = {
69236
+ /**
69237
+ * 请求成功。
69238
+ */
69239
+ 200: BrowserSessionCreateResult;
69030
69240
  /**
69031
69241
  * 请求成功。
69032
69242
  */
@@ -69063,17 +69273,21 @@ export type BrowserGetSessionErrors = {
69063
69273
  */
69064
69274
  402: BrowserError;
69065
69275
  /**
69066
- * PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
69276
+ * PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
69067
69277
  */
69068
69278
  403: BrowserError;
69069
69279
  /**
69070
- * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
69280
+ * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
69071
69281
  */
69072
69282
  404: BrowserError;
69073
69283
  /**
69074
- * SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
69284
+ * SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
69075
69285
  */
69076
69286
  409: BrowserError;
69287
+ /**
69288
+ * BROWSER_REVOKED
69289
+ */
69290
+ 410: BrowserError;
69077
69291
  /**
69078
69292
  * ACTION_RESULT_TOO_LARGE
69079
69293
  */
@@ -69095,7 +69309,7 @@ export type BrowserGetSessionErrors = {
69095
69309
  */
69096
69310
  502: BrowserError;
69097
69311
  /**
69098
- * SERVICE_UNAVAILABLE
69312
+ * BROWSER_OFFLINE / SERVICE_UNAVAILABLE
69099
69313
  */
69100
69314
  503: BrowserError;
69101
69315
  /**
@@ -69141,17 +69355,21 @@ export type BrowserCloseSessionErrors = {
69141
69355
  */
69142
69356
  402: BrowserError;
69143
69357
  /**
69144
- * PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
69358
+ * PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
69145
69359
  */
69146
69360
  403: BrowserError;
69147
69361
  /**
69148
- * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
69362
+ * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
69149
69363
  */
69150
69364
  404: BrowserError;
69151
69365
  /**
69152
- * SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
69366
+ * SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
69153
69367
  */
69154
69368
  409: BrowserError;
69369
+ /**
69370
+ * BROWSER_REVOKED
69371
+ */
69372
+ 410: BrowserError;
69155
69373
  /**
69156
69374
  * ACTION_RESULT_TOO_LARGE
69157
69375
  */
@@ -69173,7 +69391,7 @@ export type BrowserCloseSessionErrors = {
69173
69391
  */
69174
69392
  502: BrowserError;
69175
69393
  /**
69176
- * SERVICE_UNAVAILABLE
69394
+ * BROWSER_OFFLINE / SERVICE_UNAVAILABLE
69177
69395
  */
69178
69396
  503: BrowserError;
69179
69397
  /**
@@ -69214,17 +69432,21 @@ export type BrowserGetDebugErrors = {
69214
69432
  */
69215
69433
  402: BrowserError;
69216
69434
  /**
69217
- * PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
69435
+ * PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
69218
69436
  */
69219
69437
  403: BrowserError;
69220
69438
  /**
69221
- * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
69439
+ * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
69222
69440
  */
69223
69441
  404: BrowserError;
69224
69442
  /**
69225
- * SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
69443
+ * SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
69226
69444
  */
69227
69445
  409: BrowserError;
69446
+ /**
69447
+ * BROWSER_REVOKED
69448
+ */
69449
+ 410: BrowserError;
69228
69450
  /**
69229
69451
  * ACTION_RESULT_TOO_LARGE
69230
69452
  */
@@ -69246,7 +69468,7 @@ export type BrowserGetDebugErrors = {
69246
69468
  */
69247
69469
  502: BrowserError;
69248
69470
  /**
69249
- * SERVICE_UNAVAILABLE
69471
+ * BROWSER_OFFLINE / SERVICE_UNAVAILABLE
69250
69472
  */
69251
69473
  503: BrowserError;
69252
69474
  /**
@@ -69300,17 +69522,21 @@ export type BrowserListEventsErrors = {
69300
69522
  */
69301
69523
  402: BrowserError;
69302
69524
  /**
69303
- * PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
69525
+ * PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
69304
69526
  */
69305
69527
  403: BrowserError;
69306
69528
  /**
69307
- * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
69529
+ * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
69308
69530
  */
69309
69531
  404: BrowserError;
69310
69532
  /**
69311
- * SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
69533
+ * SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
69312
69534
  */
69313
69535
  409: BrowserError;
69536
+ /**
69537
+ * BROWSER_REVOKED
69538
+ */
69539
+ 410: BrowserError;
69314
69540
  /**
69315
69541
  * ACTION_RESULT_TOO_LARGE
69316
69542
  */
@@ -69332,7 +69558,7 @@ export type BrowserListEventsErrors = {
69332
69558
  */
69333
69559
  502: BrowserError;
69334
69560
  /**
69335
- * SERVICE_UNAVAILABLE
69561
+ * BROWSER_OFFLINE / SERVICE_UNAVAILABLE
69336
69562
  */
69337
69563
  503: BrowserError;
69338
69564
  /**
@@ -69579,17 +69805,21 @@ export type BrowserRunPageActionErrors = {
69579
69805
  */
69580
69806
  402: BrowserError;
69581
69807
  /**
69582
- * PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
69808
+ * PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
69583
69809
  */
69584
69810
  403: BrowserError;
69585
69811
  /**
69586
- * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
69812
+ * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
69587
69813
  */
69588
69814
  404: BrowserError;
69589
69815
  /**
69590
- * SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
69816
+ * SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
69591
69817
  */
69592
69818
  409: BrowserError;
69819
+ /**
69820
+ * BROWSER_REVOKED
69821
+ */
69822
+ 410: BrowserError;
69593
69823
  /**
69594
69824
  * ACTION_RESULT_TOO_LARGE
69595
69825
  */
@@ -69611,7 +69841,7 @@ export type BrowserRunPageActionErrors = {
69611
69841
  */
69612
69842
  502: BrowserError;
69613
69843
  /**
69614
- * SERVICE_UNAVAILABLE
69844
+ * BROWSER_OFFLINE / SERVICE_UNAVAILABLE
69615
69845
  */
69616
69846
  503: BrowserError;
69617
69847
  /**
@@ -69797,17 +70027,21 @@ export type BrowserRequestHandoffErrors = {
69797
70027
  */
69798
70028
  402: BrowserError;
69799
70029
  /**
69800
- * PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
70030
+ * PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
69801
70031
  */
69802
70032
  403: BrowserError;
69803
70033
  /**
69804
- * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
70034
+ * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
69805
70035
  */
69806
70036
  404: BrowserError;
69807
70037
  /**
69808
- * SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
70038
+ * SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
69809
70039
  */
69810
70040
  409: BrowserError;
70041
+ /**
70042
+ * BROWSER_REVOKED
70043
+ */
70044
+ 410: BrowserError;
69811
70045
  /**
69812
70046
  * ACTION_RESULT_TOO_LARGE
69813
70047
  */
@@ -69829,7 +70063,7 @@ export type BrowserRequestHandoffErrors = {
69829
70063
  */
69830
70064
  502: BrowserError;
69831
70065
  /**
69832
- * SERVICE_UNAVAILABLE
70066
+ * BROWSER_OFFLINE / SERVICE_UNAVAILABLE
69833
70067
  */
69834
70068
  503: BrowserError;
69835
70069
  /**
@@ -69870,17 +70104,21 @@ export type BrowserCompleteHandoffErrors = {
69870
70104
  */
69871
70105
  402: BrowserError;
69872
70106
  /**
69873
- * PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
70107
+ * PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
69874
70108
  */
69875
70109
  403: BrowserError;
69876
70110
  /**
69877
- * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
70111
+ * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
69878
70112
  */
69879
70113
  404: BrowserError;
69880
70114
  /**
69881
- * SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
70115
+ * SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
69882
70116
  */
69883
70117
  409: BrowserError;
70118
+ /**
70119
+ * BROWSER_REVOKED
70120
+ */
70121
+ 410: BrowserError;
69884
70122
  /**
69885
70123
  * ACTION_RESULT_TOO_LARGE
69886
70124
  */
@@ -69902,7 +70140,7 @@ export type BrowserCompleteHandoffErrors = {
69902
70140
  */
69903
70141
  502: BrowserError;
69904
70142
  /**
69905
- * SERVICE_UNAVAILABLE
70143
+ * BROWSER_OFFLINE / SERVICE_UNAVAILABLE
69906
70144
  */
69907
70145
  503: BrowserError;
69908
70146
  /**
@@ -69952,17 +70190,21 @@ export type BrowserViewerHeartbeatErrors = {
69952
70190
  */
69953
70191
  402: BrowserError;
69954
70192
  /**
69955
- * PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
70193
+ * PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
69956
70194
  */
69957
70195
  403: BrowserError;
69958
70196
  /**
69959
- * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
70197
+ * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
69960
70198
  */
69961
70199
  404: BrowserError;
69962
70200
  /**
69963
- * SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
70201
+ * SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
69964
70202
  */
69965
70203
  409: BrowserError;
70204
+ /**
70205
+ * BROWSER_REVOKED
70206
+ */
70207
+ 410: BrowserError;
69966
70208
  /**
69967
70209
  * ACTION_RESULT_TOO_LARGE
69968
70210
  */
@@ -69984,7 +70226,7 @@ export type BrowserViewerHeartbeatErrors = {
69984
70226
  */
69985
70227
  502: BrowserError;
69986
70228
  /**
69987
- * SERVICE_UNAVAILABLE
70229
+ * BROWSER_OFFLINE / SERVICE_UNAVAILABLE
69988
70230
  */
69989
70231
  503: BrowserError;
69990
70232
  /**
@@ -70030,17 +70272,21 @@ export type BrowserGetSessionFrameErrors = {
70030
70272
  */
70031
70273
  402: BrowserError;
70032
70274
  /**
70033
- * PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
70275
+ * PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
70034
70276
  */
70035
70277
  403: BrowserError;
70036
70278
  /**
70037
- * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
70279
+ * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
70038
70280
  */
70039
70281
  404: BrowserError;
70040
70282
  /**
70041
- * SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
70283
+ * SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
70042
70284
  */
70043
70285
  409: BrowserError;
70286
+ /**
70287
+ * BROWSER_REVOKED
70288
+ */
70289
+ 410: BrowserError;
70044
70290
  /**
70045
70291
  * ACTION_RESULT_TOO_LARGE
70046
70292
  */
@@ -70062,7 +70308,7 @@ export type BrowserGetSessionFrameErrors = {
70062
70308
  */
70063
70309
  502: BrowserError;
70064
70310
  /**
70065
- * SERVICE_UNAVAILABLE
70311
+ * BROWSER_OFFLINE / SERVICE_UNAVAILABLE
70066
70312
  */
70067
70313
  503: BrowserError;
70068
70314
  /**
@@ -70111,17 +70357,21 @@ export type BrowserListContextsErrors = {
70111
70357
  */
70112
70358
  402: BrowserError;
70113
70359
  /**
70114
- * PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
70360
+ * PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
70115
70361
  */
70116
70362
  403: BrowserError;
70117
70363
  /**
70118
- * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
70364
+ * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
70119
70365
  */
70120
70366
  404: BrowserError;
70121
70367
  /**
70122
- * SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
70368
+ * SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
70123
70369
  */
70124
70370
  409: BrowserError;
70371
+ /**
70372
+ * BROWSER_REVOKED
70373
+ */
70374
+ 410: BrowserError;
70125
70375
  /**
70126
70376
  * ACTION_RESULT_TOO_LARGE
70127
70377
  */
@@ -70143,7 +70393,7 @@ export type BrowserListContextsErrors = {
70143
70393
  */
70144
70394
  502: BrowserError;
70145
70395
  /**
70146
- * SERVICE_UNAVAILABLE
70396
+ * BROWSER_OFFLINE / SERVICE_UNAVAILABLE
70147
70397
  */
70148
70398
  503: BrowserError;
70149
70399
  /**
@@ -70203,17 +70453,21 @@ export type BrowserCreateContextErrors = {
70203
70453
  */
70204
70454
  402: BrowserError;
70205
70455
  /**
70206
- * PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
70456
+ * PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
70207
70457
  */
70208
70458
  403: BrowserError;
70209
70459
  /**
70210
- * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
70460
+ * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
70211
70461
  */
70212
70462
  404: BrowserError;
70213
70463
  /**
70214
- * SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
70464
+ * SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
70215
70465
  */
70216
70466
  409: BrowserError;
70467
+ /**
70468
+ * BROWSER_REVOKED
70469
+ */
70470
+ 410: BrowserError;
70217
70471
  /**
70218
70472
  * ACTION_RESULT_TOO_LARGE
70219
70473
  */
@@ -70235,7 +70489,7 @@ export type BrowserCreateContextErrors = {
70235
70489
  */
70236
70490
  502: BrowserError;
70237
70491
  /**
70238
- * SERVICE_UNAVAILABLE
70492
+ * BROWSER_OFFLINE / SERVICE_UNAVAILABLE
70239
70493
  */
70240
70494
  503: BrowserError;
70241
70495
  /**
@@ -70276,17 +70530,21 @@ export type BrowserDeleteContextErrors = {
70276
70530
  */
70277
70531
  402: BrowserError;
70278
70532
  /**
70279
- * PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
70533
+ * PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
70280
70534
  */
70281
70535
  403: BrowserError;
70282
70536
  /**
70283
- * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
70537
+ * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
70284
70538
  */
70285
70539
  404: BrowserError;
70286
70540
  /**
70287
- * SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
70541
+ * SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
70288
70542
  */
70289
70543
  409: BrowserError;
70544
+ /**
70545
+ * BROWSER_REVOKED
70546
+ */
70547
+ 410: BrowserError;
70290
70548
  /**
70291
70549
  * ACTION_RESULT_TOO_LARGE
70292
70550
  */
@@ -70308,7 +70566,7 @@ export type BrowserDeleteContextErrors = {
70308
70566
  */
70309
70567
  502: BrowserError;
70310
70568
  /**
70311
- * SERVICE_UNAVAILABLE
70569
+ * BROWSER_OFFLINE / SERVICE_UNAVAILABLE
70312
70570
  */
70313
70571
  503: BrowserError;
70314
70572
  /**
@@ -70354,17 +70612,21 @@ export type BrowserGetContextErrors = {
70354
70612
  */
70355
70613
  402: BrowserError;
70356
70614
  /**
70357
- * PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
70615
+ * PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
70358
70616
  */
70359
70617
  403: BrowserError;
70360
70618
  /**
70361
- * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
70619
+ * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
70362
70620
  */
70363
70621
  404: BrowserError;
70364
70622
  /**
70365
- * SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
70623
+ * SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
70366
70624
  */
70367
70625
  409: BrowserError;
70626
+ /**
70627
+ * BROWSER_REVOKED
70628
+ */
70629
+ 410: BrowserError;
70368
70630
  /**
70369
70631
  * ACTION_RESULT_TOO_LARGE
70370
70632
  */
@@ -70386,7 +70648,7 @@ export type BrowserGetContextErrors = {
70386
70648
  */
70387
70649
  502: BrowserError;
70388
70650
  /**
70389
- * SERVICE_UNAVAILABLE
70651
+ * BROWSER_OFFLINE / SERVICE_UNAVAILABLE
70390
70652
  */
70391
70653
  503: BrowserError;
70392
70654
  /**
@@ -70438,17 +70700,21 @@ export type BrowserUpdateContextErrors = {
70438
70700
  */
70439
70701
  402: BrowserError;
70440
70702
  /**
70441
- * PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
70703
+ * PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
70442
70704
  */
70443
70705
  403: BrowserError;
70444
70706
  /**
70445
- * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
70707
+ * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
70446
70708
  */
70447
70709
  404: BrowserError;
70448
70710
  /**
70449
- * SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
70711
+ * SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
70450
70712
  */
70451
70713
  409: BrowserError;
70714
+ /**
70715
+ * BROWSER_REVOKED
70716
+ */
70717
+ 410: BrowserError;
70452
70718
  /**
70453
70719
  * ACTION_RESULT_TOO_LARGE
70454
70720
  */
@@ -70470,7 +70736,7 @@ export type BrowserUpdateContextErrors = {
70470
70736
  */
70471
70737
  502: BrowserError;
70472
70738
  /**
70473
- * SERVICE_UNAVAILABLE
70739
+ * BROWSER_OFFLINE / SERVICE_UNAVAILABLE
70474
70740
  */
70475
70741
  503: BrowserError;
70476
70742
  /**
@@ -70486,50 +70752,13 @@ export type BrowserUpdateContextResponses = {
70486
70752
  200: BrowserContext;
70487
70753
  };
70488
70754
  export type BrowserUpdateContextResponse = BrowserUpdateContextResponses[keyof BrowserUpdateContextResponses];
70489
- export type BrowserConnectData = {
70755
+ export type BrowserCreateByobPairingData = {
70490
70756
  body?: never;
70491
70757
  path?: never;
70492
- query?: {
70493
- /**
70494
- * 浏览器会话 ID;使用创建或列出会话返回的 id,以 bss_ 开头。
70495
- */
70496
- session?: string;
70497
- /**
70498
- * 会话名称;1–128 个 ASCII 字母、数字或 . _ : -,可用于筛选会话。
70499
- */
70500
- name?: string;
70501
- /**
70502
- * connectUrl 自带凭证;必须同时带 session。
70503
- */
70504
- signingKey?: string;
70505
- /**
70506
- * 登录态 ID;使用创建或列出登录态返回的 id,以 bsc_ 开头。
70507
- */
70508
- context?: string;
70509
- /**
70510
- * 关闭时保存登录态。
70511
- */
70512
- persist?: boolean;
70513
- /**
70514
- * 新会话最长寿命,单位为秒,可含小数;连接已有会话时忽略。
70515
- */
70516
- timeout?: number;
70517
- /**
70518
- * 新会话无人连接或观看后的释放等待时长,单位为毫秒;允许 0 或小数,连接已有会话时忽略。
70519
- */
70520
- idle?: number;
70521
- /**
70522
- * JSON 编码的字符串标签对象。
70523
- */
70524
- labels?: string;
70525
- /**
70526
- * JSON 编码的视口,例如 {"width":1280,"height":800}。
70527
- */
70528
- viewport?: string;
70529
- };
70530
- url: '/browser/v1/connect';
70758
+ query?: never;
70759
+ url: '/browser/v1/byob/pairings';
70531
70760
  };
70532
- export type BrowserConnectErrors = {
70761
+ export type BrowserCreateByobPairingErrors = {
70533
70762
  /**
70534
70763
  * INVALID_PARAMS / INVALID_FILTER / INVALID_PAGE_TOKEN
70535
70764
  */
@@ -70543,17 +70772,21 @@ export type BrowserConnectErrors = {
70543
70772
  */
70544
70773
  402: BrowserError;
70545
70774
  /**
70546
- * PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
70775
+ * PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
70547
70776
  */
70548
70777
  403: BrowserError;
70549
70778
  /**
70550
- * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
70779
+ * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
70551
70780
  */
70552
70781
  404: BrowserError;
70553
70782
  /**
70554
- * SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
70783
+ * SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
70555
70784
  */
70556
70785
  409: BrowserError;
70786
+ /**
70787
+ * BROWSER_REVOKED
70788
+ */
70789
+ 410: BrowserError;
70557
70790
  /**
70558
70791
  * ACTION_RESULT_TOO_LARGE
70559
70792
  */
@@ -70575,7 +70808,7 @@ export type BrowserConnectErrors = {
70575
70808
  */
70576
70809
  502: BrowserError;
70577
70810
  /**
70578
- * SERVICE_UNAVAILABLE
70811
+ * BROWSER_OFFLINE / SERVICE_UNAVAILABLE
70579
70812
  */
70580
70813
  503: BrowserError;
70581
70814
  /**
@@ -70583,28 +70816,30 @@ export type BrowserConnectErrors = {
70583
70816
  */
70584
70817
  504: BrowserError;
70585
70818
  };
70586
- export type BrowserConnectError = BrowserConnectErrors[keyof BrowserConnectErrors];
70587
- export type BrowserLiveViewData = {
70819
+ export type BrowserCreateByobPairingError = BrowserCreateByobPairingErrors[keyof BrowserCreateByobPairingErrors];
70820
+ export type BrowserCreateByobPairingResponses = {
70821
+ /**
70822
+ * 请求成功。
70823
+ */
70824
+ 201: BrowserByobPairing;
70825
+ };
70826
+ export type BrowserCreateByobPairingResponse = BrowserCreateByobPairingResponses[keyof BrowserCreateByobPairingResponses];
70827
+ export type BrowserListByobBrowsersData = {
70588
70828
  body?: never;
70589
- path: {
70590
- /**
70591
- * 浏览器会话 ID;使用创建或列出会话返回的 id,以 bss_ 开头。
70592
- */
70593
- sessionId: string;
70829
+ path?: never;
70830
+ query?: {
70594
70831
  /**
70595
- * 实时观看地址中的标签页 ID;使用 debug 返回链接中的原值,_ 表示会话级画面。
70832
+ * 上一页返回的 nextCursor,原样传入;省略时读取第一页。
70596
70833
  */
70597
- pageId: string;
70598
- };
70599
- query?: {
70834
+ cursor?: string;
70600
70835
  /**
70601
- * 实时观看地址自带的凭证。
70836
+ * 每页最多返回的浏览器数量;默认 50,范围 1–100。
70602
70837
  */
70603
- t?: string;
70838
+ limit?: number;
70604
70839
  };
70605
- url: '/browser/v1/live/{sessionId}/{pageId}';
70840
+ url: '/browser/v1/byob/browsers';
70606
70841
  };
70607
- export type BrowserLiveViewErrors = {
70842
+ export type BrowserListByobBrowsersErrors = {
70608
70843
  /**
70609
70844
  * INVALID_PARAMS / INVALID_FILTER / INVALID_PAGE_TOKEN
70610
70845
  */
@@ -70618,17 +70853,21 @@ export type BrowserLiveViewErrors = {
70618
70853
  */
70619
70854
  402: BrowserError;
70620
70855
  /**
70621
- * PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
70856
+ * PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
70622
70857
  */
70623
70858
  403: BrowserError;
70624
70859
  /**
70625
- * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
70860
+ * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
70626
70861
  */
70627
70862
  404: BrowserError;
70628
70863
  /**
70629
- * SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
70864
+ * SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
70630
70865
  */
70631
70866
  409: BrowserError;
70867
+ /**
70868
+ * BROWSER_REVOKED
70869
+ */
70870
+ 410: BrowserError;
70632
70871
  /**
70633
70872
  * ACTION_RESULT_TOO_LARGE
70634
70873
  */
@@ -70650,7 +70889,7 @@ export type BrowserLiveViewErrors = {
70650
70889
  */
70651
70890
  502: BrowserError;
70652
70891
  /**
70653
- * SERVICE_UNAVAILABLE
70892
+ * BROWSER_OFFLINE / SERVICE_UNAVAILABLE
70654
70893
  */
70655
70894
  503: BrowserError;
70656
70895
  /**
@@ -70658,19 +70897,35 @@ export type BrowserLiveViewErrors = {
70658
70897
  */
70659
70898
  504: BrowserError;
70660
70899
  };
70661
- export type BrowserLiveViewError = BrowserLiveViewErrors[keyof BrowserLiveViewErrors];
70662
- export type BrowserStreamSessionData = {
70900
+ export type BrowserListByobBrowsersError = BrowserListByobBrowsersErrors[keyof BrowserListByobBrowsersErrors];
70901
+ export type BrowserListByobBrowsersResponses = {
70902
+ /**
70903
+ * 分页列出的自带浏览器,按 ID 升序。
70904
+ */
70905
+ 200: {
70906
+ /**
70907
+ * 本页的自带浏览器;已断开的不在列表里。
70908
+ */
70909
+ data: Array<BrowserByobBrowser>;
70910
+ /**
70911
+ * 下一页游标;原样传入 cursor,null 表示没有更多结果。
70912
+ */
70913
+ nextCursor: string | null;
70914
+ };
70915
+ };
70916
+ export type BrowserListByobBrowsersResponse = BrowserListByobBrowsersResponses[keyof BrowserListByobBrowsersResponses];
70917
+ export type BrowserGetByobBrowserData = {
70663
70918
  body?: never;
70664
70919
  path: {
70665
70920
  /**
70666
- * 浏览器会话 ID;使用创建或列出会话返回的 id,以 bss_ 开头。
70921
+ * 自带浏览器 ID,以 byb_ 开头;使用配对认领或列出自带浏览器返回的 id。
70667
70922
  */
70668
- sessionId: string;
70923
+ browser_id: string;
70669
70924
  };
70670
70925
  query?: never;
70671
- url: '/browser/v1/sessions/{sessionId}/stream';
70926
+ url: '/browser/v1/byob/browsers/{browser_id}';
70672
70927
  };
70673
- export type BrowserStreamSessionErrors = {
70928
+ export type BrowserGetByobBrowserErrors = {
70674
70929
  /**
70675
70930
  * INVALID_PARAMS / INVALID_FILTER / INVALID_PAGE_TOKEN
70676
70931
  */
@@ -70684,17 +70939,21 @@ export type BrowserStreamSessionErrors = {
70684
70939
  */
70685
70940
  402: BrowserError;
70686
70941
  /**
70687
- * PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
70942
+ * PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
70688
70943
  */
70689
70944
  403: BrowserError;
70690
70945
  /**
70691
- * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
70946
+ * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
70692
70947
  */
70693
70948
  404: BrowserError;
70694
70949
  /**
70695
- * SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
70950
+ * SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
70696
70951
  */
70697
70952
  409: BrowserError;
70953
+ /**
70954
+ * BROWSER_REVOKED
70955
+ */
70956
+ 410: BrowserError;
70698
70957
  /**
70699
70958
  * ACTION_RESULT_TOO_LARGE
70700
70959
  */
@@ -70716,7 +70975,7 @@ export type BrowserStreamSessionErrors = {
70716
70975
  */
70717
70976
  502: BrowserError;
70718
70977
  /**
70719
- * SERVICE_UNAVAILABLE
70978
+ * BROWSER_OFFLINE / SERVICE_UNAVAILABLE
70720
70979
  */
70721
70980
  503: BrowserError;
70722
70981
  /**
@@ -70724,26 +70983,39 @@ export type BrowserStreamSessionErrors = {
70724
70983
  */
70725
70984
  504: BrowserError;
70726
70985
  };
70727
- export type BrowserStreamSessionError = BrowserStreamSessionErrors[keyof BrowserStreamSessionErrors];
70728
- export type BrowserStreamSessionResponses = {
70986
+ export type BrowserGetByobBrowserError = BrowserGetByobBrowserErrors[keyof BrowserGetByobBrowserErrors];
70987
+ export type BrowserGetByobBrowserResponses = {
70729
70988
  /**
70730
- * 持续推送会话状态。
70989
+ * 请求成功。
70731
70990
  */
70732
- 200: BrowserStreamMessage;
70991
+ 200: BrowserByobBrowser;
70733
70992
  };
70734
- export type BrowserStreamSessionResponse = BrowserStreamSessionResponses[keyof BrowserStreamSessionResponses];
70735
- export type BrowserStreamSessionFramesData = {
70736
- body?: never;
70993
+ export type BrowserGetByobBrowserResponse = BrowserGetByobBrowserResponses[keyof BrowserGetByobBrowserResponses];
70994
+ export type BrowserUpdateByobBrowserData = {
70995
+ body: {
70996
+ /**
70997
+ * 新的显示名称,1–80 个字符。
70998
+ */
70999
+ name?: string;
71000
+ /**
71001
+ * 整体替换被授权的智能体 ID 列表;传空数组撤销全部授权。
71002
+ */
71003
+ granted_agents?: Array<string>;
71004
+ /**
71005
+ * 整体替换允许站点列表;传空数组表示不限制。
71006
+ */
71007
+ allowed_sites?: Array<string>;
71008
+ };
70737
71009
  path: {
70738
71010
  /**
70739
- * 浏览器会话 ID;使用创建或列出会话返回的 id,以 bss_ 开头。
71011
+ * 自带浏览器 ID,以 byb_ 开头;使用配对认领或列出自带浏览器返回的 id。
70740
71012
  */
70741
- sessionId: string;
71013
+ browser_id: string;
70742
71014
  };
70743
71015
  query?: never;
70744
- url: '/browser/v1/sessions/{sessionId}/frames';
71016
+ url: '/browser/v1/byob/browsers/{browser_id}';
70745
71017
  };
70746
- export type BrowserStreamSessionFramesErrors = {
71018
+ export type BrowserUpdateByobBrowserErrors = {
70747
71019
  /**
70748
71020
  * INVALID_PARAMS / INVALID_FILTER / INVALID_PAGE_TOKEN
70749
71021
  */
@@ -70757,17 +71029,587 @@ export type BrowserStreamSessionFramesErrors = {
70757
71029
  */
70758
71030
  402: BrowserError;
70759
71031
  /**
70760
- * PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
71032
+ * PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
70761
71033
  */
70762
71034
  403: BrowserError;
70763
71035
  /**
70764
- * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
71036
+ * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
70765
71037
  */
70766
71038
  404: BrowserError;
70767
71039
  /**
70768
- * SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
71040
+ * SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
70769
71041
  */
70770
71042
  409: BrowserError;
71043
+ /**
71044
+ * BROWSER_REVOKED
71045
+ */
71046
+ 410: BrowserError;
71047
+ /**
71048
+ * ACTION_RESULT_TOO_LARGE
71049
+ */
71050
+ 413: BrowserError;
71051
+ /**
71052
+ * CONCURRENCY_LIMIT / RATE_LIMITED / PROVIDER_CAPACITY
71053
+ */
71054
+ 429: BrowserError;
71055
+ /**
71056
+ * INTERNAL
71057
+ */
71058
+ 500: BrowserError;
71059
+ /**
71060
+ * NOT_IMPLEMENTED / PROVIDER_UNSUPPORTED
71061
+ */
71062
+ 501: BrowserError;
71063
+ /**
71064
+ * PROVIDER_FAILED
71065
+ */
71066
+ 502: BrowserError;
71067
+ /**
71068
+ * BROWSER_OFFLINE / SERVICE_UNAVAILABLE
71069
+ */
71070
+ 503: BrowserError;
71071
+ /**
71072
+ * ACTION_TIMEOUT
71073
+ */
71074
+ 504: BrowserError;
71075
+ };
71076
+ export type BrowserUpdateByobBrowserError = BrowserUpdateByobBrowserErrors[keyof BrowserUpdateByobBrowserErrors];
71077
+ export type BrowserUpdateByobBrowserResponses = {
71078
+ /**
71079
+ * 请求成功。
71080
+ */
71081
+ 200: BrowserByobBrowser;
71082
+ };
71083
+ export type BrowserUpdateByobBrowserResponse = BrowserUpdateByobBrowserResponses[keyof BrowserUpdateByobBrowserResponses];
71084
+ export type BrowserDisconnectByobBrowserData = {
71085
+ body?: never;
71086
+ path: {
71087
+ /**
71088
+ * 自带浏览器 ID,以 byb_ 开头;使用配对认领或列出自带浏览器返回的 id。
71089
+ */
71090
+ browser_id: string;
71091
+ };
71092
+ query?: never;
71093
+ url: '/browser/v1/byob/browsers/{browser_id}/disconnect';
71094
+ };
71095
+ export type BrowserDisconnectByobBrowserErrors = {
71096
+ /**
71097
+ * INVALID_PARAMS / INVALID_FILTER / INVALID_PAGE_TOKEN
71098
+ */
71099
+ 400: BrowserError;
71100
+ /**
71101
+ * UNAUTHENTICATED / CONNECT_SIGNATURE_INVALID
71102
+ */
71103
+ 401: BrowserError;
71104
+ /**
71105
+ * INSUFFICIENT_BALANCE / QUOTA_EXHAUSTED
71106
+ */
71107
+ 402: BrowserError;
71108
+ /**
71109
+ * PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
71110
+ */
71111
+ 403: BrowserError;
71112
+ /**
71113
+ * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
71114
+ */
71115
+ 404: BrowserError;
71116
+ /**
71117
+ * SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
71118
+ */
71119
+ 409: BrowserError;
71120
+ /**
71121
+ * BROWSER_REVOKED
71122
+ */
71123
+ 410: BrowserError;
71124
+ /**
71125
+ * ACTION_RESULT_TOO_LARGE
71126
+ */
71127
+ 413: BrowserError;
71128
+ /**
71129
+ * CONCURRENCY_LIMIT / RATE_LIMITED / PROVIDER_CAPACITY
71130
+ */
71131
+ 429: BrowserError;
71132
+ /**
71133
+ * INTERNAL
71134
+ */
71135
+ 500: BrowserError;
71136
+ /**
71137
+ * NOT_IMPLEMENTED / PROVIDER_UNSUPPORTED
71138
+ */
71139
+ 501: BrowserError;
71140
+ /**
71141
+ * PROVIDER_FAILED
71142
+ */
71143
+ 502: BrowserError;
71144
+ /**
71145
+ * BROWSER_OFFLINE / SERVICE_UNAVAILABLE
71146
+ */
71147
+ 503: BrowserError;
71148
+ /**
71149
+ * ACTION_TIMEOUT
71150
+ */
71151
+ 504: BrowserError;
71152
+ };
71153
+ export type BrowserDisconnectByobBrowserError = BrowserDisconnectByobBrowserErrors[keyof BrowserDisconnectByobBrowserErrors];
71154
+ export type BrowserDisconnectByobBrowserResponses = {
71155
+ /**
71156
+ * 请求成功。
71157
+ */
71158
+ 200: BrowserByobBrowser;
71159
+ };
71160
+ export type BrowserDisconnectByobBrowserResponse = BrowserDisconnectByobBrowserResponses[keyof BrowserDisconnectByobBrowserResponses];
71161
+ export type BrowserReadByobPairingData = {
71162
+ body?: never;
71163
+ path: {
71164
+ /**
71165
+ * 8 位配对码,来自创建配对码的结果。
71166
+ */
71167
+ code: string;
71168
+ };
71169
+ query?: never;
71170
+ url: '/browser/v1/byob/pairings/{code}';
71171
+ };
71172
+ export type BrowserReadByobPairingErrors = {
71173
+ /**
71174
+ * INVALID_PARAMS / INVALID_FILTER / INVALID_PAGE_TOKEN
71175
+ */
71176
+ 400: BrowserError;
71177
+ /**
71178
+ * UNAUTHENTICATED / CONNECT_SIGNATURE_INVALID
71179
+ */
71180
+ 401: BrowserError;
71181
+ /**
71182
+ * INSUFFICIENT_BALANCE / QUOTA_EXHAUSTED
71183
+ */
71184
+ 402: BrowserError;
71185
+ /**
71186
+ * PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
71187
+ */
71188
+ 403: BrowserError;
71189
+ /**
71190
+ * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
71191
+ */
71192
+ 404: BrowserError;
71193
+ /**
71194
+ * SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
71195
+ */
71196
+ 409: BrowserError;
71197
+ /**
71198
+ * BROWSER_REVOKED
71199
+ */
71200
+ 410: BrowserError;
71201
+ /**
71202
+ * ACTION_RESULT_TOO_LARGE
71203
+ */
71204
+ 413: BrowserError;
71205
+ /**
71206
+ * CONCURRENCY_LIMIT / RATE_LIMITED / PROVIDER_CAPACITY
71207
+ */
71208
+ 429: BrowserError;
71209
+ /**
71210
+ * INTERNAL
71211
+ */
71212
+ 500: BrowserError;
71213
+ /**
71214
+ * NOT_IMPLEMENTED / PROVIDER_UNSUPPORTED
71215
+ */
71216
+ 501: BrowserError;
71217
+ /**
71218
+ * PROVIDER_FAILED
71219
+ */
71220
+ 502: BrowserError;
71221
+ /**
71222
+ * BROWSER_OFFLINE / SERVICE_UNAVAILABLE
71223
+ */
71224
+ 503: BrowserError;
71225
+ /**
71226
+ * ACTION_TIMEOUT
71227
+ */
71228
+ 504: BrowserError;
71229
+ };
71230
+ export type BrowserReadByobPairingError = BrowserReadByobPairingErrors[keyof BrowserReadByobPairingErrors];
71231
+ export type BrowserReadByobPairingResponses = {
71232
+ /**
71233
+ * 请求成功。
71234
+ */
71235
+ 200: BrowserByobPairingView;
71236
+ };
71237
+ export type BrowserReadByobPairingResponse = BrowserReadByobPairingResponses[keyof BrowserReadByobPairingResponses];
71238
+ export type BrowserClaimByobPairingData = {
71239
+ body: BrowserByobClaim;
71240
+ path: {
71241
+ /**
71242
+ * 8 位配对码,来自创建配对码的结果。
71243
+ */
71244
+ code: string;
71245
+ };
71246
+ query?: never;
71247
+ url: '/browser/v1/byob/pairings/{code}/claim';
71248
+ };
71249
+ export type BrowserClaimByobPairingErrors = {
71250
+ /**
71251
+ * INVALID_PARAMS / INVALID_FILTER / INVALID_PAGE_TOKEN
71252
+ */
71253
+ 400: BrowserError;
71254
+ /**
71255
+ * UNAUTHENTICATED / CONNECT_SIGNATURE_INVALID
71256
+ */
71257
+ 401: BrowserError;
71258
+ /**
71259
+ * INSUFFICIENT_BALANCE / QUOTA_EXHAUSTED
71260
+ */
71261
+ 402: BrowserError;
71262
+ /**
71263
+ * PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
71264
+ */
71265
+ 403: BrowserError;
71266
+ /**
71267
+ * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
71268
+ */
71269
+ 404: BrowserError;
71270
+ /**
71271
+ * SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
71272
+ */
71273
+ 409: BrowserError;
71274
+ /**
71275
+ * BROWSER_REVOKED
71276
+ */
71277
+ 410: BrowserError;
71278
+ /**
71279
+ * ACTION_RESULT_TOO_LARGE
71280
+ */
71281
+ 413: BrowserError;
71282
+ /**
71283
+ * CONCURRENCY_LIMIT / RATE_LIMITED / PROVIDER_CAPACITY
71284
+ */
71285
+ 429: BrowserError;
71286
+ /**
71287
+ * INTERNAL
71288
+ */
71289
+ 500: BrowserError;
71290
+ /**
71291
+ * NOT_IMPLEMENTED / PROVIDER_UNSUPPORTED
71292
+ */
71293
+ 501: BrowserError;
71294
+ /**
71295
+ * PROVIDER_FAILED
71296
+ */
71297
+ 502: BrowserError;
71298
+ /**
71299
+ * BROWSER_OFFLINE / SERVICE_UNAVAILABLE
71300
+ */
71301
+ 503: BrowserError;
71302
+ /**
71303
+ * ACTION_TIMEOUT
71304
+ */
71305
+ 504: BrowserError;
71306
+ };
71307
+ export type BrowserClaimByobPairingError = BrowserClaimByobPairingErrors[keyof BrowserClaimByobPairingErrors];
71308
+ export type BrowserClaimByobPairingResponses = {
71309
+ /**
71310
+ * 认领成功。
71311
+ */
71312
+ 201: BrowserByobClaimResult;
71313
+ };
71314
+ export type BrowserClaimByobPairingResponse = BrowserClaimByobPairingResponses[keyof BrowserClaimByobPairingResponses];
71315
+ export type BrowserConnectData = {
71316
+ body?: never;
71317
+ path?: never;
71318
+ query?: {
71319
+ /**
71320
+ * 浏览器会话 ID;使用创建或列出会话返回的 id,以 bss_ 开头。
71321
+ */
71322
+ session?: string;
71323
+ /**
71324
+ * 会话名称;1–128 个 ASCII 字母、数字或 . _ : -,可用于筛选会话。
71325
+ */
71326
+ name?: string;
71327
+ /**
71328
+ * connectUrl 自带凭证;必须同时带 session。
71329
+ */
71330
+ signingKey?: string;
71331
+ /**
71332
+ * 登录态 ID;使用创建或列出登录态返回的 id,以 bsc_ 开头。
71333
+ */
71334
+ context?: string;
71335
+ /**
71336
+ * 关闭时保存登录态。
71337
+ */
71338
+ persist?: boolean;
71339
+ /**
71340
+ * 新会话最长寿命,单位为秒,可含小数;连接已有会话时忽略。
71341
+ */
71342
+ timeout?: number;
71343
+ /**
71344
+ * 新会话无人连接或观看后的释放等待时长,单位为毫秒;允许 0 或小数,连接已有会话时忽略。
71345
+ */
71346
+ idle?: number;
71347
+ /**
71348
+ * JSON 编码的字符串标签对象。
71349
+ */
71350
+ labels?: string;
71351
+ /**
71352
+ * JSON 编码的视口,例如 {"width":1280,"height":800}。
71353
+ */
71354
+ viewport?: string;
71355
+ };
71356
+ url: '/browser/v1/connect';
71357
+ };
71358
+ export type BrowserConnectErrors = {
71359
+ /**
71360
+ * INVALID_PARAMS / INVALID_FILTER / INVALID_PAGE_TOKEN
71361
+ */
71362
+ 400: BrowserError;
71363
+ /**
71364
+ * UNAUTHENTICATED / CONNECT_SIGNATURE_INVALID
71365
+ */
71366
+ 401: BrowserError;
71367
+ /**
71368
+ * INSUFFICIENT_BALANCE / QUOTA_EXHAUSTED
71369
+ */
71370
+ 402: BrowserError;
71371
+ /**
71372
+ * PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
71373
+ */
71374
+ 403: BrowserError;
71375
+ /**
71376
+ * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
71377
+ */
71378
+ 404: BrowserError;
71379
+ /**
71380
+ * SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
71381
+ */
71382
+ 409: BrowserError;
71383
+ /**
71384
+ * BROWSER_REVOKED
71385
+ */
71386
+ 410: BrowserError;
71387
+ /**
71388
+ * ACTION_RESULT_TOO_LARGE
71389
+ */
71390
+ 413: BrowserError;
71391
+ /**
71392
+ * CONCURRENCY_LIMIT / RATE_LIMITED / PROVIDER_CAPACITY
71393
+ */
71394
+ 429: BrowserError;
71395
+ /**
71396
+ * INTERNAL
71397
+ */
71398
+ 500: BrowserError;
71399
+ /**
71400
+ * NOT_IMPLEMENTED / PROVIDER_UNSUPPORTED
71401
+ */
71402
+ 501: BrowserError;
71403
+ /**
71404
+ * PROVIDER_FAILED
71405
+ */
71406
+ 502: BrowserError;
71407
+ /**
71408
+ * BROWSER_OFFLINE / SERVICE_UNAVAILABLE
71409
+ */
71410
+ 503: BrowserError;
71411
+ /**
71412
+ * ACTION_TIMEOUT
71413
+ */
71414
+ 504: BrowserError;
71415
+ };
71416
+ export type BrowserConnectError = BrowserConnectErrors[keyof BrowserConnectErrors];
71417
+ export type BrowserLiveViewData = {
71418
+ body?: never;
71419
+ path: {
71420
+ /**
71421
+ * 浏览器会话 ID;使用创建或列出会话返回的 id,以 bss_ 开头。
71422
+ */
71423
+ sessionId: string;
71424
+ /**
71425
+ * 实时观看地址中的标签页 ID;使用 debug 返回链接中的原值,_ 表示会话级画面。
71426
+ */
71427
+ pageId: string;
71428
+ };
71429
+ query?: {
71430
+ /**
71431
+ * 实时观看地址自带的凭证。
71432
+ */
71433
+ t?: string;
71434
+ };
71435
+ url: '/browser/v1/live/{sessionId}/{pageId}';
71436
+ };
71437
+ export type BrowserLiveViewErrors = {
71438
+ /**
71439
+ * INVALID_PARAMS / INVALID_FILTER / INVALID_PAGE_TOKEN
71440
+ */
71441
+ 400: BrowserError;
71442
+ /**
71443
+ * UNAUTHENTICATED / CONNECT_SIGNATURE_INVALID
71444
+ */
71445
+ 401: BrowserError;
71446
+ /**
71447
+ * INSUFFICIENT_BALANCE / QUOTA_EXHAUSTED
71448
+ */
71449
+ 402: BrowserError;
71450
+ /**
71451
+ * PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
71452
+ */
71453
+ 403: BrowserError;
71454
+ /**
71455
+ * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
71456
+ */
71457
+ 404: BrowserError;
71458
+ /**
71459
+ * SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
71460
+ */
71461
+ 409: BrowserError;
71462
+ /**
71463
+ * BROWSER_REVOKED
71464
+ */
71465
+ 410: BrowserError;
71466
+ /**
71467
+ * ACTION_RESULT_TOO_LARGE
71468
+ */
71469
+ 413: BrowserError;
71470
+ /**
71471
+ * CONCURRENCY_LIMIT / RATE_LIMITED / PROVIDER_CAPACITY
71472
+ */
71473
+ 429: BrowserError;
71474
+ /**
71475
+ * INTERNAL
71476
+ */
71477
+ 500: BrowserError;
71478
+ /**
71479
+ * NOT_IMPLEMENTED / PROVIDER_UNSUPPORTED
71480
+ */
71481
+ 501: BrowserError;
71482
+ /**
71483
+ * PROVIDER_FAILED
71484
+ */
71485
+ 502: BrowserError;
71486
+ /**
71487
+ * BROWSER_OFFLINE / SERVICE_UNAVAILABLE
71488
+ */
71489
+ 503: BrowserError;
71490
+ /**
71491
+ * ACTION_TIMEOUT
71492
+ */
71493
+ 504: BrowserError;
71494
+ };
71495
+ export type BrowserLiveViewError = BrowserLiveViewErrors[keyof BrowserLiveViewErrors];
71496
+ export type BrowserStreamSessionData = {
71497
+ body?: never;
71498
+ path: {
71499
+ /**
71500
+ * 浏览器会话 ID;使用创建或列出会话返回的 id,以 bss_ 开头。
71501
+ */
71502
+ sessionId: string;
71503
+ };
71504
+ query?: never;
71505
+ url: '/browser/v1/sessions/{sessionId}/stream';
71506
+ };
71507
+ export type BrowserStreamSessionErrors = {
71508
+ /**
71509
+ * INVALID_PARAMS / INVALID_FILTER / INVALID_PAGE_TOKEN
71510
+ */
71511
+ 400: BrowserError;
71512
+ /**
71513
+ * UNAUTHENTICATED / CONNECT_SIGNATURE_INVALID
71514
+ */
71515
+ 401: BrowserError;
71516
+ /**
71517
+ * INSUFFICIENT_BALANCE / QUOTA_EXHAUSTED
71518
+ */
71519
+ 402: BrowserError;
71520
+ /**
71521
+ * PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
71522
+ */
71523
+ 403: BrowserError;
71524
+ /**
71525
+ * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
71526
+ */
71527
+ 404: BrowserError;
71528
+ /**
71529
+ * SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
71530
+ */
71531
+ 409: BrowserError;
71532
+ /**
71533
+ * BROWSER_REVOKED
71534
+ */
71535
+ 410: BrowserError;
71536
+ /**
71537
+ * ACTION_RESULT_TOO_LARGE
71538
+ */
71539
+ 413: BrowserError;
71540
+ /**
71541
+ * CONCURRENCY_LIMIT / RATE_LIMITED / PROVIDER_CAPACITY
71542
+ */
71543
+ 429: BrowserError;
71544
+ /**
71545
+ * INTERNAL
71546
+ */
71547
+ 500: BrowserError;
71548
+ /**
71549
+ * NOT_IMPLEMENTED / PROVIDER_UNSUPPORTED
71550
+ */
71551
+ 501: BrowserError;
71552
+ /**
71553
+ * PROVIDER_FAILED
71554
+ */
71555
+ 502: BrowserError;
71556
+ /**
71557
+ * BROWSER_OFFLINE / SERVICE_UNAVAILABLE
71558
+ */
71559
+ 503: BrowserError;
71560
+ /**
71561
+ * ACTION_TIMEOUT
71562
+ */
71563
+ 504: BrowserError;
71564
+ };
71565
+ export type BrowserStreamSessionError = BrowserStreamSessionErrors[keyof BrowserStreamSessionErrors];
71566
+ export type BrowserStreamSessionResponses = {
71567
+ /**
71568
+ * 持续推送会话状态。
71569
+ */
71570
+ 200: BrowserStreamMessage;
71571
+ };
71572
+ export type BrowserStreamSessionResponse = BrowserStreamSessionResponses[keyof BrowserStreamSessionResponses];
71573
+ export type BrowserStreamSessionFramesData = {
71574
+ body?: never;
71575
+ path: {
71576
+ /**
71577
+ * 浏览器会话 ID;使用创建或列出会话返回的 id,以 bss_ 开头。
71578
+ */
71579
+ sessionId: string;
71580
+ };
71581
+ query?: never;
71582
+ url: '/browser/v1/sessions/{sessionId}/frames';
71583
+ };
71584
+ export type BrowserStreamSessionFramesErrors = {
71585
+ /**
71586
+ * INVALID_PARAMS / INVALID_FILTER / INVALID_PAGE_TOKEN
71587
+ */
71588
+ 400: BrowserError;
71589
+ /**
71590
+ * UNAUTHENTICATED / CONNECT_SIGNATURE_INVALID
71591
+ */
71592
+ 401: BrowserError;
71593
+ /**
71594
+ * INSUFFICIENT_BALANCE / QUOTA_EXHAUSTED
71595
+ */
71596
+ 402: BrowserError;
71597
+ /**
71598
+ * PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
71599
+ */
71600
+ 403: BrowserError;
71601
+ /**
71602
+ * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
71603
+ */
71604
+ 404: BrowserError;
71605
+ /**
71606
+ * SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
71607
+ */
71608
+ 409: BrowserError;
71609
+ /**
71610
+ * BROWSER_REVOKED
71611
+ */
71612
+ 410: BrowserError;
70771
71613
  /**
70772
71614
  * ACTION_RESULT_TOO_LARGE
70773
71615
  */
@@ -70789,7 +71631,7 @@ export type BrowserStreamSessionFramesErrors = {
70789
71631
  */
70790
71632
  502: BrowserError;
70791
71633
  /**
70792
- * SERVICE_UNAVAILABLE
71634
+ * BROWSER_OFFLINE / SERVICE_UNAVAILABLE
70793
71635
  */
70794
71636
  503: BrowserError;
70795
71637
  /**
@@ -79973,6 +80815,19 @@ export type ListByodDevicesResponses = {
79973
80815
  * The absolute directories a desktop registered for agent sessions with its last hello; a session may only start in one of these. Empty for a phone and for a desktop that has not connected yet.
79974
80816
  */
79975
80817
  agent_dirs: Array<string>;
80818
+ /**
80819
+ * Which agent each registered directory is bound to, as the desktop's last hello reported. Empty for a phone and for a desktop that has not connected yet.
80820
+ */
80821
+ agent_bindings: Array<{
80822
+ /**
80823
+ * The absolute directory the desktop bound to an agent with praxis agent connect.
80824
+ */
80825
+ dir: string;
80826
+ /**
80827
+ * The agent the directory is bound to: its identity number or its agent id.
80828
+ */
80829
+ agent: string;
80830
+ }>;
79976
80831
  /**
79977
80832
  * Whether the desktop's envd lets a platform session run in bypassPermissions (all tool calls without asking). True unless the person ran praxis connect agent --no-bypass on that machine; a session create that asks for bypassPermissions on a device where this is false answers 400 INVALID_PARAMS. False for a phone and for a desktop that has not connected yet.
79978
80833
  */
@@ -80055,6 +80910,19 @@ export type GetByodDeviceResponses = {
80055
80910
  * The absolute directories a desktop registered for agent sessions with its last hello; a session may only start in one of these. Empty for a phone and for a desktop that has not connected yet.
80056
80911
  */
80057
80912
  agent_dirs: Array<string>;
80913
+ /**
80914
+ * Which agent each registered directory is bound to, as the desktop's last hello reported. Empty for a phone and for a desktop that has not connected yet.
80915
+ */
80916
+ agent_bindings: Array<{
80917
+ /**
80918
+ * The absolute directory the desktop bound to an agent with praxis agent connect.
80919
+ */
80920
+ dir: string;
80921
+ /**
80922
+ * The agent the directory is bound to: its identity number or its agent id.
80923
+ */
80924
+ agent: string;
80925
+ }>;
80058
80926
  /**
80059
80927
  * Whether the desktop's envd lets a platform session run in bypassPermissions (all tool calls without asking). True unless the person ran praxis connect agent --no-bypass on that machine; a session create that asks for bypassPermissions on a device where this is false answers 400 INVALID_PARAMS. False for a phone and for a desktop that has not connected yet.
80060
80928
  */
@@ -80148,6 +81016,19 @@ export type UpdateByodDeviceResponses = {
80148
81016
  * The absolute directories a desktop registered for agent sessions with its last hello; a session may only start in one of these. Empty for a phone and for a desktop that has not connected yet.
80149
81017
  */
80150
81018
  agent_dirs: Array<string>;
81019
+ /**
81020
+ * Which agent each registered directory is bound to, as the desktop's last hello reported. Empty for a phone and for a desktop that has not connected yet.
81021
+ */
81022
+ agent_bindings: Array<{
81023
+ /**
81024
+ * The absolute directory the desktop bound to an agent with praxis agent connect.
81025
+ */
81026
+ dir: string;
81027
+ /**
81028
+ * The agent the directory is bound to: its identity number or its agent id.
81029
+ */
81030
+ agent: string;
81031
+ }>;
80151
81032
  /**
80152
81033
  * Whether the desktop's envd lets a platform session run in bypassPermissions (all tool calls without asking). True unless the person ran praxis connect agent --no-bypass on that machine; a session create that asks for bypassPermissions on a device where this is false answers 400 INVALID_PARAMS. False for a phone and for a desktop that has not connected yet.
80153
81034
  */
@@ -83441,6 +84322,15 @@ export type AgentsListResponses = {
83441
84322
  name: string;
83442
84323
  }>;
83443
84324
  };
84325
+ /**
84326
+ * ADR-205: which browser the agent drives. {byob: byb_…} names one of your organization's paired browsers (browser.byob.browsers.list), which the agent then drives through connect() instead of a cloud browser; null or absent is the cloud browser. The browser must belong to your organization (otherwise 400) and must grant this agent before a session can open it. Omit on update to keep it, send an object to replace it, or null to go back to the cloud browser. /agent/v1 only.
84327
+ */
84328
+ browser?: {
84329
+ /**
84330
+ * A paired browser's id (byb_ and 26 lowercase hex characters), from browser.byob.browsers.list.
84331
+ */
84332
+ byob: string;
84333
+ } | null;
83444
84334
  /**
83445
84335
  * Praxis extension: MA only has session-scoped temporary containers and memory_stores, not durable browsable computers. computer_id selects a tenant-owned active computer. Session selection overrides the agent default; a sandbox environment_id and computer_id cannot be combined. Omitted when no computer is selected.
83446
84336
  */
@@ -84390,6 +85280,15 @@ export type AgentsCreateData = {
84390
85280
  name: string;
84391
85281
  }>;
84392
85282
  };
85283
+ /**
85284
+ * ADR-205: which browser the agent drives. {byob: byb_…} names one of your organization's paired browsers (browser.byob.browsers.list), which the agent then drives through connect() instead of a cloud browser; null or absent is the cloud browser. The browser must belong to your organization (otherwise 400) and must grant this agent before a session can open it. Omit on update to keep it, send an object to replace it, or null to go back to the cloud browser. /agent/v1 only.
85285
+ */
85286
+ browser?: {
85287
+ /**
85288
+ * A paired browser's id (byb_ and 26 lowercase hex characters), from browser.byob.browsers.list.
85289
+ */
85290
+ byob: string;
85291
+ } | null;
84393
85292
  /**
84394
85293
  * Optional tool preset. minimal enables read, glob and grep; data-editor also enables write and edit; full uses the default toolset with always_allow. Explicit tools override matching preset entries. codemode requires bash and is absent from data-editor.
84395
85294
  */
@@ -84645,6 +85544,15 @@ export type AgentsCreateResponses = {
84645
85544
  name: string;
84646
85545
  }>;
84647
85546
  };
85547
+ /**
85548
+ * ADR-205: which browser the agent drives. {byob: byb_…} names one of your organization's paired browsers (browser.byob.browsers.list), which the agent then drives through connect() instead of a cloud browser; null or absent is the cloud browser. The browser must belong to your organization (otherwise 400) and must grant this agent before a session can open it. Omit on update to keep it, send an object to replace it, or null to go back to the cloud browser. /agent/v1 only.
85549
+ */
85550
+ browser?: {
85551
+ /**
85552
+ * A paired browser's id (byb_ and 26 lowercase hex characters), from browser.byob.browsers.list.
85553
+ */
85554
+ byob: string;
85555
+ } | null;
84648
85556
  /**
84649
85557
  * Praxis extension: MA only has session-scoped temporary containers and memory_stores, not durable browsable computers. computer_id selects a tenant-owned active computer. Session selection overrides the agent default; a sandbox environment_id and computer_id cannot be combined. Omitted when no computer is selected.
84650
85558
  */
@@ -85307,6 +86215,15 @@ export type AgentsRetrieveResponses = {
85307
86215
  name: string;
85308
86216
  }>;
85309
86217
  };
86218
+ /**
86219
+ * ADR-205: which browser the agent drives. {byob: byb_…} names one of your organization's paired browsers (browser.byob.browsers.list), which the agent then drives through connect() instead of a cloud browser; null or absent is the cloud browser. The browser must belong to your organization (otherwise 400) and must grant this agent before a session can open it. Omit on update to keep it, send an object to replace it, or null to go back to the cloud browser. /agent/v1 only.
86220
+ */
86221
+ browser?: {
86222
+ /**
86223
+ * A paired browser's id (byb_ and 26 lowercase hex characters), from browser.byob.browsers.list.
86224
+ */
86225
+ byob: string;
86226
+ } | null;
85310
86227
  /**
85311
86228
  * Praxis extension: MA only has session-scoped temporary containers and memory_stores, not durable browsable computers. computer_id selects a tenant-owned active computer. Session selection overrides the agent default; a sandbox environment_id and computer_id cannot be combined. Omitted when no computer is selected.
85312
86229
  */
@@ -86266,273 +87183,291 @@ export type AgentsUpdateData = {
86266
87183
  }>;
86267
87184
  };
86268
87185
  /**
86269
- * 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.
86270
- */
86271
- preset?: 'minimal' | 'data-editor' | 'full';
86272
- /**
86273
- * Inline custom output styles, including for agents without a computer. Omit to keep the saved list; null or [] clears it. Same-name precedence is inline, project files, personal files, then plugins. Selection is settings.outputStyle; styles apply to main conversations and are frozen per session.
86274
- */
86275
- output_styles?: Array<{
86276
- /**
86277
- * Nonblank, case-sensitive style name, unique within this list. It can override a same-name file or built-in style.
86278
- */
86279
- name: string;
86280
- /**
86281
- * Optional description of when to use this style.
86282
- */
86283
- description?: string;
86284
- /**
86285
- * Style instructions added after platform guidance and before owner instructions. Empty content adds no style instructions.
86286
- */
86287
- prompt: string;
86288
- /**
86289
- * Saved for file-format compatibility; currently has no effect because Praxis has no separate coding-instruction block.
86290
- */
86291
- keep_coding_instructions?: boolean;
86292
- }> | null;
86293
- };
86294
- path: {
86295
- /**
86296
- * Agent id, as returned by agents.create or agents.list (for a session filter, the agent the session was created with). Not the agent name. Also accepts an 8-character identity number (0–9, A–Z); malformed, absent and foreign references return 404, and response ids always use agent_….
86297
- */
86298
- agent_id: string;
86299
- };
86300
- query?: never;
86301
- url: '/agent/v1/agents/{agent_id}';
86302
- };
86303
- export type AgentsUpdateErrors = {
86304
- /**
86305
- * The body failed validation and the message names the field (same rules as agents.create, including tools: null).
86306
- */
86307
- 400: AgentError;
86308
- /**
86309
- * UNAUTHENTICATED (or INVALID_API_KEY, API_KEY_DISABLED, API_KEY_EXPIRED, INVALID_API_TOKEN, API_TOKEN_EXPIRED, API_TOKEN_REVOKED): the API key is missing, invalid or revoked. Send a valid key as X-API-Key or as a Bearer token.
86310
- */
86311
- 401: AgentError;
86312
- /**
86313
- * 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.
86314
- */
86315
- 403: AgentError;
86316
- /**
86317
- * AGENT_NOT_FOUND: the id does not exist in your organization, or is malformed. Take ids from agents.list or agents.create.
86318
- */
86319
- 404: AgentError;
86320
- /**
86321
- * AGENT_ARCHIVED: unarchive it first. AGENT_VERSION_CONFLICT: version is not the agent's latest (older or not yet existing); error.current_version carries the latest, resend with it. A newer version saved with apply false is waiting: apply it or save over it.
86322
- */
86323
- 409: AgentError;
86324
- };
86325
- export type AgentsUpdateError = AgentsUpdateErrors[keyof AgentsUpdateErrors];
86326
- export type AgentsUpdateResponses = {
86327
- /**
86328
- * Successful response
86329
- */
86330
- 200: {
86331
- /**
86332
- * Agent id (agent_...). Pass it as agent when creating a session and as agent_id in agent calls.
86333
- */
86334
- id: string;
86335
- /**
86336
- * A timestamp in RFC 3339 format
86337
- */
86338
- archived_at: null | string;
86339
- /**
86340
- * A timestamp in RFC 3339 format
86341
- */
86342
- created_at: string;
86343
- /**
86344
- * Free-text description of what the agent is for; null when none was set.
86345
- */
86346
- description: null | string;
86347
- /**
86348
- * Praxis extension: HTTP, SSE or trusted stdio MCP servers paired with mcp_toolset entries and saved with the agent version.
86349
- */
86350
- mcp_servers: Array<AgentManaged36>;
86351
- metadata: AgentManaged37;
86352
- /**
86353
- * Model identifier and configuration.
86354
- */
86355
- model?: {
86356
- /**
86357
- * A model id from the Praxis model catalog (`praxis.model.models.list`). Unlike Anthropic, Claude model ids other than those in the catalog are rejected.
86358
- */
86359
- id: string;
86360
- /**
86361
- * How hard Claude works on each turn. Sets `output_config.effort` on every
86362
- * Messages call the session makes.
86363
- */
86364
- effort?: AgentManaged2 | AgentManaged3 | AgentManaged4 | AgentManaged5 | AgentManaged6;
86365
- /**
86366
- * Geographic region for model inference. When unset, requests fall through to the
86367
- * workspace's default_inference_geo.
86368
- */
86369
- inference_geo?: string;
86370
- /**
86371
- * Inference speed mode. `fast` provides significantly faster output token
86372
- * generation at premium pricing. Not all models support `fast`; invalid
86373
- * combinations are rejected at create time.
86374
- */
86375
- speed?: 'standard' | 'fast';
86376
- /**
86377
- * Platform model settings: reasoning (default thinking level) and max_output_tokens (output cap). Other model controls return 400.
86378
- */
86379
- settings?: {
86380
- /**
86381
- * Default thinking effort for sessions without an explicit selection. Unsupported defaults fall back to the selected model default.
86382
- */
86383
- reasoning?: 'low' | 'medium' | 'high' | 'xhigh' | 'max' | 'none';
86384
- /**
86385
- * Output cap for one model request, thinking included; the counterpart of Claude Code's CLAUDE_CODE_MAX_OUTPUT_TOKENS. When unset, every request uses the output limit the model declares. When set, the runtime clamps it to the model's limit.
86386
- */
86387
- max_output_tokens?: number;
86388
- };
86389
- };
86390
- /**
86391
- * Coordinator roster. A bare string agent id is equivalent to {type: "agent", id}; omitting its version pins the referenced agent's current saved version when this roster is saved. {type: "self"} refers to this agent. Specify a concrete version to pin it explicitly.
86392
- */
86393
- multiagent?: null | AgentManaged39;
86394
- /**
86395
- * Display name of the agent, as set on create or update. It is a label, not a unique key.
86396
- */
86397
- name: string;
86398
- /**
86399
- * Custom skills attached to the agent, each {type: "custom", skill_id, version?}: skill_id comes from skills.create or skills.list, at most 20 skills, no repeated skill_id. Omit version, or send "latest", to use the skill's newest version at the moment a session starts; a pinned version stays fixed. type anthropic returns 400: upload the skill and attach it as custom. On update, omit the field to keep the list, send an array to replace it, or send [] or null to clear it.
86400
- */
86401
- skills: Array<AgentManaged42 | AgentManaged43>;
86402
- /**
86403
- * System prompt given to the model at the start of every session of this agent; null when none was set.
86404
- */
86405
- system: null | string;
86406
- /**
86407
- * Tools of the agent: one agent_toolset_20260401 entry for the native tools (all resolved settings are returned, ready to send back on update), plus mcp_toolset entries and custom tool definitions. Custom calls emit agent.custom_tool_use and wait for user.custom_tool_result. Keep bash enabled to use codemode, skill and subagents.
86408
- */
86409
- tools: Array<AgentManaged44 | AgentManaged54 | AgentManaged57>;
86410
- /**
86411
- * Always `agent`. An agent definition.
86412
- */
86413
- type: 'agent';
86414
- /**
86415
- * A timestamp in RFC 3339 format
86416
- */
86417
- updated_at: string;
86418
- /**
86419
- * Version of this returned configuration. Default retrieve returns the effective version; an explicit version query or a version-history item returns that saved version.
87186
+ * ADR-205: which browser the agent drives. {byob: byb_…} names one of your organization's paired browsers (browser.byob.browsers.list), which the agent then drives through connect() instead of a cloud browser; null or absent is the cloud browser. The browser must belong to your organization (otherwise 400) and must grant this agent before a session can open it. Omit on update to keep it, send an object to replace it, or null to go back to the cloud browser. /agent/v1 only.
87187
+ */
87188
+ browser?: {
87189
+ /**
87190
+ * A paired browser's id (byb_ and 26 lowercase hex characters), from browser.byob.browsers.list.
87191
+ */
87192
+ byob: string;
87193
+ } | null;
87194
+ /**
87195
+ * Optional tool preset. minimal enables read, glob and grep; data-editor also enables write and edit; full uses the default toolset with always_allow. Explicit tools override matching preset entries. codemode requires bash and is absent from data-editor.
87196
+ */
87197
+ preset?: 'minimal' | 'data-editor' | 'full';
87198
+ /**
87199
+ * Inline custom output styles, including for agents without a computer. Omit to keep the saved list; null or [] clears it. Same-name precedence is inline, project files, personal files, then plugins. Selection is settings.outputStyle; styles apply to main conversations and are frozen per session.
87200
+ */
87201
+ output_styles?: Array<{
87202
+ /**
87203
+ * Nonblank, case-sensitive style name, unique within this list. It can override a same-name file or built-in style.
87204
+ */
87205
+ name: string;
87206
+ /**
87207
+ * Optional description of when to use this style.
87208
+ */
87209
+ description?: string;
87210
+ /**
87211
+ * Style instructions added after platform guidance and before owner instructions. Empty content adds no style instructions.
87212
+ */
87213
+ prompt: string;
87214
+ /**
87215
+ * Saved for file-format compatibility; currently has no effect because Praxis has no separate coding-instruction block.
87216
+ */
87217
+ keep_coding_instructions?: boolean;
87218
+ }> | null;
87219
+ };
87220
+ path: {
87221
+ /**
87222
+ * Agent id, as returned by agents.create or agents.list (for a session filter, the agent the session was created with). Not the agent name. Also accepts an 8-character identity number (0–9, A–Z); malformed, absent and foreign references return 404, and response ids always use agent_….
87223
+ */
87224
+ agent_id: string;
87225
+ };
87226
+ query?: never;
87227
+ url: '/agent/v1/agents/{agent_id}';
87228
+ };
87229
+ export type AgentsUpdateErrors = {
87230
+ /**
87231
+ * The body failed validation and the message names the field (same rules as agents.create, including tools: null).
87232
+ */
87233
+ 400: AgentError;
87234
+ /**
87235
+ * UNAUTHENTICATED (or INVALID_API_KEY, API_KEY_DISABLED, API_KEY_EXPIRED, INVALID_API_TOKEN, API_TOKEN_EXPIRED, API_TOKEN_REVOKED): the API key is missing, invalid or revoked. Send a valid key as X-API-Key or as a Bearer token.
87236
+ */
87237
+ 401: AgentError;
87238
+ /**
87239
+ * 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.
87240
+ */
87241
+ 403: AgentError;
87242
+ /**
87243
+ * AGENT_NOT_FOUND: the id does not exist in your organization, or is malformed. Take ids from agents.list or agents.create.
87244
+ */
87245
+ 404: AgentError;
87246
+ /**
87247
+ * AGENT_ARCHIVED: unarchive it first. AGENT_VERSION_CONFLICT: version is not the agent's latest (older or not yet existing); error.current_version carries the latest, resend with it. A newer version saved with apply false is waiting: apply it or save over it.
87248
+ */
87249
+ 409: AgentError;
87250
+ };
87251
+ export type AgentsUpdateError = AgentsUpdateErrors[keyof AgentsUpdateErrors];
87252
+ export type AgentsUpdateResponses = {
87253
+ /**
87254
+ * Successful response
87255
+ */
87256
+ 200: {
87257
+ /**
87258
+ * Agent id (agent_...). Pass it as agent when creating a session and as agent_id in agent calls.
87259
+ */
87260
+ id: string;
87261
+ /**
87262
+ * A timestamp in RFC 3339 format
87263
+ */
87264
+ archived_at: null | string;
87265
+ /**
87266
+ * A timestamp in RFC 3339 format
87267
+ */
87268
+ created_at: string;
87269
+ /**
87270
+ * Free-text description of what the agent is for; null when none was set.
87271
+ */
87272
+ description: null | string;
87273
+ /**
87274
+ * Praxis extension: HTTP, SSE or trusted stdio MCP servers paired with mcp_toolset entries and saved with the agent version.
87275
+ */
87276
+ mcp_servers: Array<AgentManaged36>;
87277
+ metadata: AgentManaged37;
87278
+ /**
87279
+ * Model identifier and configuration.
87280
+ */
87281
+ model?: {
87282
+ /**
87283
+ * A model id from the Praxis model catalog (`praxis.model.models.list`). Unlike Anthropic, Claude model ids other than those in the catalog are rejected.
87284
+ */
87285
+ id: string;
87286
+ /**
87287
+ * How hard Claude works on each turn. Sets `output_config.effort` on every
87288
+ * Messages call the session makes.
87289
+ */
87290
+ effort?: AgentManaged2 | AgentManaged3 | AgentManaged4 | AgentManaged5 | AgentManaged6;
87291
+ /**
87292
+ * Geographic region for model inference. When unset, requests fall through to the
87293
+ * workspace's default_inference_geo.
87294
+ */
87295
+ inference_geo?: string;
87296
+ /**
87297
+ * Inference speed mode. `fast` provides significantly faster output token
87298
+ * generation at premium pricing. Not all models support `fast`; invalid
87299
+ * combinations are rejected at create time.
87300
+ */
87301
+ speed?: 'standard' | 'fast';
87302
+ /**
87303
+ * Platform model settings: reasoning (default thinking level) and max_output_tokens (output cap). Other model controls return 400.
87304
+ */
87305
+ settings?: {
87306
+ /**
87307
+ * Default thinking effort for sessions without an explicit selection. Unsupported defaults fall back to the selected model default.
87308
+ */
87309
+ reasoning?: 'low' | 'medium' | 'high' | 'xhigh' | 'max' | 'none';
87310
+ /**
87311
+ * Output cap for one model request, thinking included; the counterpart of Claude Code's CLAUDE_CODE_MAX_OUTPUT_TOKENS. When unset, every request uses the output limit the model declares. When set, the runtime clamps it to the model's limit.
87312
+ */
87313
+ max_output_tokens?: number;
87314
+ };
87315
+ };
87316
+ /**
87317
+ * Coordinator roster. A bare string agent id is equivalent to {type: "agent", id}; omitting its version pins the referenced agent's current saved version when this roster is saved. {type: "self"} refers to this agent. Specify a concrete version to pin it explicitly.
87318
+ */
87319
+ multiagent?: null | AgentManaged39;
87320
+ /**
87321
+ * Display name of the agent, as set on create or update. It is a label, not a unique key.
87322
+ */
87323
+ name: string;
87324
+ /**
87325
+ * Custom skills attached to the agent, each {type: "custom", skill_id, version?}: skill_id comes from skills.create or skills.list, at most 20 skills, no repeated skill_id. Omit version, or send "latest", to use the skill's newest version at the moment a session starts; a pinned version stays fixed. type anthropic returns 400: upload the skill and attach it as custom. On update, omit the field to keep the list, send an array to replace it, or send [] or null to clear it.
87326
+ */
87327
+ skills: Array<AgentManaged42 | AgentManaged43>;
87328
+ /**
87329
+ * System prompt given to the model at the start of every session of this agent; null when none was set.
87330
+ */
87331
+ system: null | string;
87332
+ /**
87333
+ * Tools of the agent: one agent_toolset_20260401 entry for the native tools (all resolved settings are returned, ready to send back on update), plus mcp_toolset entries and custom tool definitions. Custom calls emit agent.custom_tool_use and wait for user.custom_tool_result. Keep bash enabled to use codemode, skill and subagents.
87334
+ */
87335
+ tools: Array<AgentManaged44 | AgentManaged54 | AgentManaged57>;
87336
+ /**
87337
+ * Always `agent`. An agent definition.
87338
+ */
87339
+ type: 'agent';
87340
+ /**
87341
+ * A timestamp in RFC 3339 format
87342
+ */
87343
+ updated_at: string;
87344
+ /**
87345
+ * Version of this returned configuration. Default retrieve returns the effective version; an explicit version query or a version-history item returns that saved version.
87346
+ */
87347
+ version: number;
87348
+ /**
87349
+ * Newest saved version number, including an unapplied save. Returned by default retrieve, update and apply; use it for optimistic concurrency when updating.
87350
+ */
87351
+ latest_version?: number;
87352
+ /**
87353
+ * Agent-level currently effective version used by new sessions and newly issued embed tokens. This same value appears on every history item; it is not that item's version. Saving with apply false leaves it unchanged. Existing sessions and tokens retain their version.
87354
+ */
87355
+ active_version: number;
87356
+ /**
87357
+ * Authenticated author who created this immutable version; null for historical versions without attribution. user identifies the signed-in user; api_key identifies the calling key. Never supplied by the request body.
87358
+ */
87359
+ created_by: {
87360
+ /**
87361
+ * user denotes a version saved by a signed-in user.
87362
+ */
87363
+ type: 'user';
87364
+ /**
87365
+ * Authenticated user identifier at the time this version was saved.
87366
+ */
87367
+ id: string;
87368
+ /**
87369
+ * User display name at save time, omitted when unavailable.
87370
+ */
87371
+ name?: string;
87372
+ } | {
87373
+ /**
87374
+ * api_key denotes a version saved through an API key.
87375
+ */
87376
+ type: 'api_key';
87377
+ /**
87378
+ * Authenticated API key identifier, never the key secret.
87379
+ */
87380
+ id: string;
87381
+ } | null;
87382
+ /**
87383
+ * Change explanation supplied as version_note when this version was saved; null when omitted or for historical versions. Immutable after creation.
87384
+ */
87385
+ note: string | null;
87386
+ /**
87387
+ * How many of this agent's live deployments are not on its active version: pinned to a version other than active_version, not archived, counted once each. It counts both a pin older than the active version and a pin newer than it that was saved without being applied, so read it as "not on the active version", never as "older than". Following deployments are never counted (they run the active version by definition). Null when the deployment side could not be read. Returned by update and apply too, so those answers equal the read that follows them.
87388
+ */
87389
+ deployments_behind: number | null;
87390
+ /**
87391
+ * Platform resources and services this service agent's codemode may reach, as one list of typed bindings. Only kind=service accepts a nonempty list; general agents return 400. There are two kinds. A resource binding names one resource with id and access: database (id db_..., read_only or read_write), vector_store (id vs_..., read_only or read_write), file (id file- plus 24 letters or digits, as the File API returns it; read_only), media_library (any id without ':' or whitespace, read_only or read_write), model (a model catalog id, invoke), workflow and script (id <namespace>/<name>, invoke). A resource binding may also carry customer_access (read_only by default): it caps what a terminal customer's session (a visitor, ADR-163 §3) may do with that one resource, at the intersection of customer_access and the binding's own access — invoke (call) and read_write (change) are different axes, so only a matching pair keeps its access and any other pair falls to read_only. Its value must be one the type can grant: read_only or read_write for database, vector_store and media_library, read_only for file, and read_only or invoke for model, workflow and script. A member's session ignores it, so raising it never widens what members may do. A visitor's session never receives a whole-service binding (the default ticket service included) or an agent resource. A service binding opens one service, or one sub-tree of one, and carries only enabled: search, browser, ticket, crm, canvas, cut, studio, feedback or workspace. workspace opens development units — list one, read one, start, stop, exec inside one, fetch, push, connect, and open a unit for a change — and opens neither publishing nor any production operation. The ticket service is bound by default: a service agent whose list has no ticket entry may call the ticket API, and {"type": "ticket", "enabled": false} removes it. Every other service stays closed until it is bound. An open service allows every public method of that service. At most 20 bindings per type, no repeated type and id, and each service type at most once. A session is authorized by the agent version it runs: newly added bindings apply only to new sessions, and a version saved with apply=false changes no access until it is applied. Applying a version that disables, removes or downgrades a binding revokes it immediately in running sessions on older versions. A resource that is not bound returns 404, a service that is not opened returns 403, and a write to a resource bound read_only returns 403 BINDING_READ_ONLY. Unknown types, fields on the wrong kind (id, access, customer_access or instructions on a service binding), wrong access and malformed ids return 400. The former databases, vector_stores and files fields are removed and return 400. Omit on create for the default: the ticket service only. Saving checks added or changed database, vector_store, media_library and file bindings in the organization: unknown or deleted ids return 400. If an owner is unavailable or takes more than 3 seconds, saving succeeds with verified=false for the affected bindings. Unchanged bindings keep their previous verification result and are not rechecked. workflow and script ids are not verified at save time.
87392
+ */
87393
+ bindings: Array<{
87394
+ /**
87395
+ * Resource type. Decides the id format and the allowed access.
87396
+ */
87397
+ type: 'database' | 'vector_store' | 'file' | 'media_library' | 'model' | 'workflow' | 'script' | 'repository' | 'browser_context';
87398
+ /**
87399
+ * Resource id, never its name. database db_..., vector_store vs_..., file file- plus 24 letters or digits; media_library and model ids must not contain ':' or whitespace; workflow and script use <namespace>/<name> with no '/', '@', ':' or whitespace inside a part; repository pkg_..., browser_context bsc_....
87400
+ */
87401
+ id: string;
87402
+ /**
87403
+ * database, vector_store and media_library accept read_only or read_write; file accepts read_only; model, workflow and script accept invoke; repository and browser_context accept read_only or read_write. Any other combination returns 400.
87404
+ */
87405
+ access: 'read_only' | 'read_write' | 'invoke';
87406
+ /**
87407
+ * What a visitor's session (a terminal customer, ADR-163 §3) may do with this resource: read_only, read_write or invoke. Its scope is the intersection of this value and the binding's own access, so invoke needs both to be invoke. Limited to the accesses the type can grant: read_only or read_write for database, vector_store and media_library, read_only for file, read_only or invoke for model, workflow and script. Defaults to read_only. A member's session ignores it entirely; a visitor's session never receives a whole-service binding or an agent resource.
87408
+ */
87409
+ customer_access?: 'read_only' | 'read_write' | 'invoke';
87410
+ /**
87411
+ * Optional guidance for using this resource, up to 4096 characters; does not expand access.
87412
+ */
87413
+ instructions?: string;
87414
+ /**
87415
+ * Save-time verification result. false means the resource owner was unavailable; saving still succeeded. Unchanged bindings retain their previous result. true is returned for other bindings, including workflow and script ids which are not verified at save time. Client values are ignored.
87416
+ */
87417
+ readonly verified?: boolean;
87418
+ /**
87419
+ * Whether this binding grants access. Defaults to true; false immediately disables it for running sessions.
87420
+ */
87421
+ enabled?: boolean;
87422
+ } | {
87423
+ /**
87424
+ * Service type. Opens one service, or one sub-tree of one, to codemode; there is no per-resource id.
87425
+ */
87426
+ type: 'search' | 'browser' | 'ticket' | 'crm' | 'canvas' | 'cut' | 'studio' | 'feedback' | 'workspace';
87427
+ /**
87428
+ * Save-time verification result. false means the resource owner was unavailable; saving still succeeded. Unchanged bindings retain their previous result. true is returned for other bindings, including workflow and script ids which are not verified at save time. Client values are ignored.
87429
+ */
87430
+ readonly verified?: boolean;
87431
+ /**
87432
+ * Whether the service is open. Defaults to true; false immediately closes it for running sessions.
87433
+ */
87434
+ enabled?: boolean;
87435
+ }>;
87436
+ /**
87437
+ * Immutable agent kind. general uses a durable computer and acts for its owner; service uses a clean environment per session; assume is driven over MCP with a durable computer and no conversation model. Historical agents infer kind from their computer binding and read as general.
87438
+ */
87439
+ kind: 'general' | 'service' | 'assume';
87440
+ /**
87441
+ * General agents only: the agent's computers, configured like its models. default is the template its Computer starts on; allowed lists the computers resize may switch to, and a resize to anything else is refused with COMPUTER_NOT_CONFIGURED. Omit on create for {default: base, allowed: Small base-small, Base base, Large base-large}; on update, omit to keep it, send an object to replace it as a whole. Service and assume agents return 400 computers is for general agents; service agents use environment_id. /agent/v1 only.
87442
+ */
87443
+ computers?: {
87444
+ /**
87445
+ * Template of the computer the agent's Computer starts on; must be the template of one allowed entry.
87446
+ */
87447
+ default: string;
87448
+ /**
87449
+ * Computers the agent may switch to with the computer tool's resize, in the order they are listed.
87450
+ */
87451
+ allowed: Array<{
87452
+ /**
87453
+ * Sandbox template name from sandbox templates.list, such as base, base-large or data. light returns 400. A template appears once.
87454
+ */
87455
+ template: string;
87456
+ /**
87457
+ * Display name people and the model use, such as Base or Large; unique within the list ignoring case.
87458
+ */
87459
+ name: string;
87460
+ }>;
87461
+ };
87462
+ /**
87463
+ * ADR-205: which browser the agent drives. {byob: byb_…} names one of your organization's paired browsers (browser.byob.browsers.list), which the agent then drives through connect() instead of a cloud browser; null or absent is the cloud browser. The browser must belong to your organization (otherwise 400) and must grant this agent before a session can open it. Omit on update to keep it, send an object to replace it, or null to go back to the cloud browser. /agent/v1 only.
86420
87464
  */
86421
- version: number;
86422
- /**
86423
- * Newest saved version number, including an unapplied save. Returned by default retrieve, update and apply; use it for optimistic concurrency when updating.
86424
- */
86425
- latest_version?: number;
86426
- /**
86427
- * Agent-level currently effective version used by new sessions and newly issued embed tokens. This same value appears on every history item; it is not that item's version. Saving with apply false leaves it unchanged. Existing sessions and tokens retain their version.
86428
- */
86429
- active_version: number;
86430
- /**
86431
- * Authenticated author who created this immutable version; null for historical versions without attribution. user identifies the signed-in user; api_key identifies the calling key. Never supplied by the request body.
86432
- */
86433
- created_by: {
87465
+ browser?: {
86434
87466
  /**
86435
- * user denotes a version saved by a signed-in user.
87467
+ * A paired browser's id (byb_ and 26 lowercase hex characters), from browser.byob.browsers.list.
86436
87468
  */
86437
- type: 'user';
86438
- /**
86439
- * Authenticated user identifier at the time this version was saved.
86440
- */
86441
- id: string;
86442
- /**
86443
- * User display name at save time, omitted when unavailable.
86444
- */
86445
- name?: string;
86446
- } | {
86447
- /**
86448
- * api_key denotes a version saved through an API key.
86449
- */
86450
- type: 'api_key';
86451
- /**
86452
- * Authenticated API key identifier, never the key secret.
86453
- */
86454
- id: string;
87469
+ byob: string;
86455
87470
  } | null;
86456
- /**
86457
- * Change explanation supplied as version_note when this version was saved; null when omitted or for historical versions. Immutable after creation.
86458
- */
86459
- note: string | null;
86460
- /**
86461
- * How many of this agent's live deployments are not on its active version: pinned to a version other than active_version, not archived, counted once each. It counts both a pin older than the active version and a pin newer than it that was saved without being applied, so read it as "not on the active version", never as "older than". Following deployments are never counted (they run the active version by definition). Null when the deployment side could not be read. Returned by update and apply too, so those answers equal the read that follows them.
86462
- */
86463
- deployments_behind: number | null;
86464
- /**
86465
- * Platform resources and services this service agent's codemode may reach, as one list of typed bindings. Only kind=service accepts a nonempty list; general agents return 400. There are two kinds. A resource binding names one resource with id and access: database (id db_..., read_only or read_write), vector_store (id vs_..., read_only or read_write), file (id file- plus 24 letters or digits, as the File API returns it; read_only), media_library (any id without ':' or whitespace, read_only or read_write), model (a model catalog id, invoke), workflow and script (id <namespace>/<name>, invoke). A resource binding may also carry customer_access (read_only by default): it caps what a terminal customer's session (a visitor, ADR-163 §3) may do with that one resource, at the intersection of customer_access and the binding's own access — invoke (call) and read_write (change) are different axes, so only a matching pair keeps its access and any other pair falls to read_only. Its value must be one the type can grant: read_only or read_write for database, vector_store and media_library, read_only for file, and read_only or invoke for model, workflow and script. A member's session ignores it, so raising it never widens what members may do. A visitor's session never receives a whole-service binding (the default ticket service included) or an agent resource. A service binding opens one service, or one sub-tree of one, and carries only enabled: search, browser, ticket, crm, canvas, cut, studio, feedback or workspace. workspace opens development units — list one, read one, start, stop, exec inside one, fetch, push, connect, and open a unit for a change — and opens neither publishing nor any production operation. The ticket service is bound by default: a service agent whose list has no ticket entry may call the ticket API, and {"type": "ticket", "enabled": false} removes it. Every other service stays closed until it is bound. An open service allows every public method of that service. At most 20 bindings per type, no repeated type and id, and each service type at most once. A session is authorized by the agent version it runs: newly added bindings apply only to new sessions, and a version saved with apply=false changes no access until it is applied. Applying a version that disables, removes or downgrades a binding revokes it immediately in running sessions on older versions. A resource that is not bound returns 404, a service that is not opened returns 403, and a write to a resource bound read_only returns 403 BINDING_READ_ONLY. Unknown types, fields on the wrong kind (id, access, customer_access or instructions on a service binding), wrong access and malformed ids return 400. The former databases, vector_stores and files fields are removed and return 400. Omit on create for the default: the ticket service only. Saving checks added or changed database, vector_store, media_library and file bindings in the organization: unknown or deleted ids return 400. If an owner is unavailable or takes more than 3 seconds, saving succeeds with verified=false for the affected bindings. Unchanged bindings keep their previous verification result and are not rechecked. workflow and script ids are not verified at save time.
86466
- */
86467
- bindings: Array<{
86468
- /**
86469
- * Resource type. Decides the id format and the allowed access.
86470
- */
86471
- type: 'database' | 'vector_store' | 'file' | 'media_library' | 'model' | 'workflow' | 'script' | 'repository' | 'browser_context';
86472
- /**
86473
- * Resource id, never its name. database db_..., vector_store vs_..., file file- plus 24 letters or digits; media_library and model ids must not contain ':' or whitespace; workflow and script use <namespace>/<name> with no '/', '@', ':' or whitespace inside a part; repository pkg_..., browser_context bsc_....
86474
- */
86475
- id: string;
86476
- /**
86477
- * database, vector_store and media_library accept read_only or read_write; file accepts read_only; model, workflow and script accept invoke; repository and browser_context accept read_only or read_write. Any other combination returns 400.
86478
- */
86479
- access: 'read_only' | 'read_write' | 'invoke';
86480
- /**
86481
- * What a visitor's session (a terminal customer, ADR-163 §3) may do with this resource: read_only, read_write or invoke. Its scope is the intersection of this value and the binding's own access, so invoke needs both to be invoke. Limited to the accesses the type can grant: read_only or read_write for database, vector_store and media_library, read_only for file, read_only or invoke for model, workflow and script. Defaults to read_only. A member's session ignores it entirely; a visitor's session never receives a whole-service binding or an agent resource.
86482
- */
86483
- customer_access?: 'read_only' | 'read_write' | 'invoke';
86484
- /**
86485
- * Optional guidance for using this resource, up to 4096 characters; does not expand access.
86486
- */
86487
- instructions?: string;
86488
- /**
86489
- * Save-time verification result. false means the resource owner was unavailable; saving still succeeded. Unchanged bindings retain their previous result. true is returned for other bindings, including workflow and script ids which are not verified at save time. Client values are ignored.
86490
- */
86491
- readonly verified?: boolean;
86492
- /**
86493
- * Whether this binding grants access. Defaults to true; false immediately disables it for running sessions.
86494
- */
86495
- enabled?: boolean;
86496
- } | {
86497
- /**
86498
- * Service type. Opens one service, or one sub-tree of one, to codemode; there is no per-resource id.
86499
- */
86500
- type: 'search' | 'browser' | 'ticket' | 'crm' | 'canvas' | 'cut' | 'studio' | 'feedback' | 'workspace';
86501
- /**
86502
- * Save-time verification result. false means the resource owner was unavailable; saving still succeeded. Unchanged bindings retain their previous result. true is returned for other bindings, including workflow and script ids which are not verified at save time. Client values are ignored.
86503
- */
86504
- readonly verified?: boolean;
86505
- /**
86506
- * Whether the service is open. Defaults to true; false immediately closes it for running sessions.
86507
- */
86508
- enabled?: boolean;
86509
- }>;
86510
- /**
86511
- * Immutable agent kind. general uses a durable computer and acts for its owner; service uses a clean environment per session; assume is driven over MCP with a durable computer and no conversation model. Historical agents infer kind from their computer binding and read as general.
86512
- */
86513
- kind: 'general' | 'service' | 'assume';
86514
- /**
86515
- * General agents only: the agent's computers, configured like its models. default is the template its Computer starts on; allowed lists the computers resize may switch to, and a resize to anything else is refused with COMPUTER_NOT_CONFIGURED. Omit on create for {default: base, allowed: Small base-small, Base base, Large base-large}; on update, omit to keep it, send an object to replace it as a whole. Service and assume agents return 400 computers is for general agents; service agents use environment_id. /agent/v1 only.
86516
- */
86517
- computers?: {
86518
- /**
86519
- * Template of the computer the agent's Computer starts on; must be the template of one allowed entry.
86520
- */
86521
- default: string;
86522
- /**
86523
- * Computers the agent may switch to with the computer tool's resize, in the order they are listed.
86524
- */
86525
- allowed: Array<{
86526
- /**
86527
- * Sandbox template name from sandbox templates.list, such as base, base-large or data. light returns 400. A template appears once.
86528
- */
86529
- template: string;
86530
- /**
86531
- * Display name people and the model use, such as Base or Large; unique within the list ignoring case.
86532
- */
86533
- name: string;
86534
- }>;
86535
- };
86536
87471
  /**
86537
87472
  * Praxis extension: MA only has session-scoped temporary containers and memory_stores, not durable browsable computers. computer_id selects a tenant-owned active computer. Session selection overrides the agent default; a sandbox environment_id and computer_id cannot be combined. Omitted when no computer is selected.
86538
87473
  */
@@ -87821,6 +88756,15 @@ export type AgentsVersionsListResponses = {
87821
88756
  name: string;
87822
88757
  }>;
87823
88758
  };
88759
+ /**
88760
+ * ADR-205: which browser the agent drives. {byob: byb_…} names one of your organization's paired browsers (browser.byob.browsers.list), which the agent then drives through connect() instead of a cloud browser; null or absent is the cloud browser. The browser must belong to your organization (otherwise 400) and must grant this agent before a session can open it. Omit on update to keep it, send an object to replace it, or null to go back to the cloud browser. /agent/v1 only.
88761
+ */
88762
+ browser?: {
88763
+ /**
88764
+ * A paired browser's id (byb_ and 26 lowercase hex characters), from browser.byob.browsers.list.
88765
+ */
88766
+ byob: string;
88767
+ } | null;
87824
88768
  /**
87825
88769
  * Praxis extension: MA only has session-scoped temporary containers and memory_stores, not durable browsable computers. computer_id selects a tenant-owned active computer. Session selection overrides the agent default; a sandbox environment_id and computer_id cannot be combined. Omitted when no computer is selected.
87826
88770
  */