@deepraxis/sdk 0.2.0-dev.6ed6b94 → 0.2.0-dev.72cb989
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.
- package/METHODS.md +34 -1
- package/dist/generated/index.d.ts +2 -2
- package/dist/generated/index.js +1 -1
- package/dist/generated/sdk.gen.d.ts +50 -2
- package/dist/generated/sdk.gen.js +112 -1
- package/dist/generated/types.gen.d.ts +1608 -584
- package/dist/helpers/browser-actions.d.ts +2 -0
- package/dist/helpers/browser-actions.js +5 -1
- package/dist/helpers/browser-connect-error.d.ts +7 -1
- package/dist/helpers/browser-connect-error.js +12 -1
- package/dist/helpers/browser-connect.d.ts +1 -1
- package/dist/helpers/browser-connect.js +16 -5
- package/dist/helpers/browser-decisions.d.ts +3 -0
- package/dist/helpers/browser-decisions.js +5 -0
- package/dist/helpers/browser-documentation.d.ts +1 -1
- package/dist/helpers/browser-documentation.js +3 -0
- package/dist/operations.generated.js +252 -1
- package/dist/resources.generated.d.ts +63 -0
- package/dist/resources.generated.js +22 -0
- package/package.json +1 -1
|
@@ -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: {
|
|
@@ -54127,6 +54307,86 @@ export type ListAgentInboxLettersResponses = {
|
|
|
54127
54307
|
};
|
|
54128
54308
|
};
|
|
54129
54309
|
export type ListAgentInboxLettersResponse = ListAgentInboxLettersResponses[keyof ListAgentInboxLettersResponses];
|
|
54310
|
+
export type ListAgentDeviceLocalSessionsData = {
|
|
54311
|
+
body?: never;
|
|
54312
|
+
path: {
|
|
54313
|
+
/**
|
|
54314
|
+
* The BYOA agent: its agent_… id, eight character identity number or handle, from agents.list; resolved in your organization. Also accepts an 8-character identity number (0–9, A–Z); malformed, absent and foreign references return 404, and response ids always use agent_….
|
|
54315
|
+
*/
|
|
54316
|
+
agent_id: string;
|
|
54317
|
+
/**
|
|
54318
|
+
* The paired desktop device (byd_ and 26 hex characters) whose sessions to list; you must be the person who paired it.
|
|
54319
|
+
*/
|
|
54320
|
+
device_id: string;
|
|
54321
|
+
};
|
|
54322
|
+
query: {
|
|
54323
|
+
/**
|
|
54324
|
+
* The absolute directory on the device, exactly as the device registered it and bound it to this agent.
|
|
54325
|
+
*/
|
|
54326
|
+
cwd: string;
|
|
54327
|
+
/**
|
|
54328
|
+
* The next_cursor of the previous page; leave it out for the first page.
|
|
54329
|
+
*/
|
|
54330
|
+
cursor?: string;
|
|
54331
|
+
};
|
|
54332
|
+
url: '/agent/v1/agents/{agent_id}/devices/{device_id}/local-sessions';
|
|
54333
|
+
};
|
|
54334
|
+
export type ListAgentDeviceLocalSessionsErrors = {
|
|
54335
|
+
/**
|
|
54336
|
+
* INVALID_PARAMS: cwd is missing, not absolute or not bound to this agent on that device, the device is not one you paired, or a query parameter is unsupported; ASSUME_AGENT_REQUIRED: the agent is not a BYOA agent.
|
|
54337
|
+
*/
|
|
54338
|
+
400: unknown;
|
|
54339
|
+
/**
|
|
54340
|
+
* Authenticate with your own API key or a console session; an agent's or robot's credential cannot list a person's device.
|
|
54341
|
+
*/
|
|
54342
|
+
401: unknown;
|
|
54343
|
+
/**
|
|
54344
|
+
* permission_error: the credential's role or bound resources do not allow this operation. Use a key with access to the agent domain and its resources.
|
|
54345
|
+
*/
|
|
54346
|
+
403: AgentError;
|
|
54347
|
+
/**
|
|
54348
|
+
* AGENT_NOT_FOUND: no agent with this reference exists in your organization; list agents with agents.list.
|
|
54349
|
+
*/
|
|
54350
|
+
404: unknown;
|
|
54351
|
+
/**
|
|
54352
|
+
* DEVICE_NOT_READY: the device is offline; retry once it is connected. DEVICE_TIMEOUT (504) means it is connected but did not answer in time.
|
|
54353
|
+
*/
|
|
54354
|
+
503: unknown;
|
|
54355
|
+
};
|
|
54356
|
+
export type ListAgentDeviceLocalSessionsError = ListAgentDeviceLocalSessionsErrors[keyof ListAgentDeviceLocalSessionsErrors];
|
|
54357
|
+
export type ListAgentDeviceLocalSessionsResponses = {
|
|
54358
|
+
/**
|
|
54359
|
+
* One page of the device's sessions for that directory, newest first.
|
|
54360
|
+
*/
|
|
54361
|
+
200: {
|
|
54362
|
+
/**
|
|
54363
|
+
* The sessions of this page; empty when the directory has none.
|
|
54364
|
+
*/
|
|
54365
|
+
data: Array<{
|
|
54366
|
+
/**
|
|
54367
|
+
* The Claude Code session id on the device; pass it as runtime.resume_session_id when creating a session to continue it.
|
|
54368
|
+
*/
|
|
54369
|
+
id: string;
|
|
54370
|
+
/**
|
|
54371
|
+
* The session's title as Claude Code shows it; empty when it has none.
|
|
54372
|
+
*/
|
|
54373
|
+
title: string;
|
|
54374
|
+
/**
|
|
54375
|
+
* When the session was last written to, RFC 3339; sessions are ordered newest first.
|
|
54376
|
+
*/
|
|
54377
|
+
updated_at: string | null;
|
|
54378
|
+
/**
|
|
54379
|
+
* The directory the session ran in on the device.
|
|
54380
|
+
*/
|
|
54381
|
+
cwd: string | null;
|
|
54382
|
+
}>;
|
|
54383
|
+
/**
|
|
54384
|
+
* Pass as cursor for the next page; null on the last page.
|
|
54385
|
+
*/
|
|
54386
|
+
next_cursor: string | null;
|
|
54387
|
+
};
|
|
54388
|
+
};
|
|
54389
|
+
export type ListAgentDeviceLocalSessionsResponse = ListAgentDeviceLocalSessionsResponses[keyof ListAgentDeviceLocalSessionsResponses];
|
|
54130
54390
|
export type CreateAgentLoginIntentData = {
|
|
54131
54391
|
body?: never;
|
|
54132
54392
|
path?: never;
|
|
@@ -55027,6 +55287,15 @@ export type ApplyAgentVersionResponses = {
|
|
|
55027
55287
|
name: string;
|
|
55028
55288
|
}>;
|
|
55029
55289
|
};
|
|
55290
|
+
/**
|
|
55291
|
+
* ADR-205: which browser the agent drives. {byob: byb_…} names one of your organization's paired browsers (browser.byob.browsers.list), which the agent then drives through connect() instead of a cloud browser; null or absent is the cloud browser. The browser must belong to your organization (otherwise 400) and must grant this agent before a session can open it. Omit on update to keep it, send an object to replace it, or null to go back to the cloud browser. /agent/v1 only.
|
|
55292
|
+
*/
|
|
55293
|
+
browser?: {
|
|
55294
|
+
/**
|
|
55295
|
+
* A paired browser's id (byb_ and 26 lowercase hex characters), from browser.byob.browsers.list.
|
|
55296
|
+
*/
|
|
55297
|
+
byob: string;
|
|
55298
|
+
} | null;
|
|
55030
55299
|
/**
|
|
55031
55300
|
* Praxis extension: MA only has session-scoped temporary containers and memory_stores, not durable browsable computers. computer_id selects a tenant-owned active computer. Session selection overrides the agent default; a sandbox environment_id and computer_id cannot be combined. Omitted when no computer is selected.
|
|
55032
55301
|
*/
|
|
@@ -56278,6 +56547,15 @@ export type UnarchiveAgentResponses = {
|
|
|
56278
56547
|
name: string;
|
|
56279
56548
|
}>;
|
|
56280
56549
|
};
|
|
56550
|
+
/**
|
|
56551
|
+
* ADR-205: which browser the agent drives. {byob: byb_…} names one of your organization's paired browsers (browser.byob.browsers.list), which the agent then drives through connect() instead of a cloud browser; null or absent is the cloud browser. The browser must belong to your organization (otherwise 400) and must grant this agent before a session can open it. Omit on update to keep it, send an object to replace it, or null to go back to the cloud browser. /agent/v1 only.
|
|
56552
|
+
*/
|
|
56553
|
+
browser?: {
|
|
56554
|
+
/**
|
|
56555
|
+
* A paired browser's id (byb_ and 26 lowercase hex characters), from browser.byob.browsers.list.
|
|
56556
|
+
*/
|
|
56557
|
+
byob: string;
|
|
56558
|
+
} | null;
|
|
56281
56559
|
/**
|
|
56282
56560
|
* Praxis extension: MA only has session-scoped temporary containers and memory_stores, not durable browsable computers. computer_id selects a tenant-owned active computer. Session selection overrides the agent default; a sandbox environment_id and computer_id cannot be combined. Omitted when no computer is selected.
|
|
56283
56561
|
*/
|
|
@@ -68908,17 +69186,21 @@ export type BrowserListSessionsErrors = {
|
|
|
68908
69186
|
*/
|
|
68909
69187
|
402: BrowserError;
|
|
68910
69188
|
/**
|
|
68911
|
-
* PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
|
|
69189
|
+
* PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
|
|
68912
69190
|
*/
|
|
68913
69191
|
403: BrowserError;
|
|
68914
69192
|
/**
|
|
68915
|
-
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
69193
|
+
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
68916
69194
|
*/
|
|
68917
69195
|
404: BrowserError;
|
|
68918
69196
|
/**
|
|
68919
|
-
* SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
69197
|
+
* SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
68920
69198
|
*/
|
|
68921
69199
|
409: BrowserError;
|
|
69200
|
+
/**
|
|
69201
|
+
* BROWSER_REVOKED
|
|
69202
|
+
*/
|
|
69203
|
+
410: BrowserError;
|
|
68922
69204
|
/**
|
|
68923
69205
|
* ACTION_RESULT_TOO_LARGE
|
|
68924
69206
|
*/
|
|
@@ -68940,7 +69222,7 @@ export type BrowserListSessionsErrors = {
|
|
|
68940
69222
|
*/
|
|
68941
69223
|
502: BrowserError;
|
|
68942
69224
|
/**
|
|
68943
|
-
* SERVICE_UNAVAILABLE
|
|
69225
|
+
* BROWSER_OFFLINE / SERVICE_UNAVAILABLE
|
|
68944
69226
|
*/
|
|
68945
69227
|
503: BrowserError;
|
|
68946
69228
|
/**
|
|
@@ -68985,17 +69267,21 @@ export type BrowserCreateSessionErrors = {
|
|
|
68985
69267
|
*/
|
|
68986
69268
|
402: BrowserError;
|
|
68987
69269
|
/**
|
|
68988
|
-
* PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
|
|
69270
|
+
* PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
|
|
68989
69271
|
*/
|
|
68990
69272
|
403: BrowserError;
|
|
68991
69273
|
/**
|
|
68992
|
-
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
69274
|
+
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
68993
69275
|
*/
|
|
68994
69276
|
404: BrowserError;
|
|
68995
69277
|
/**
|
|
68996
|
-
* SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
69278
|
+
* SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
68997
69279
|
*/
|
|
68998
69280
|
409: BrowserError;
|
|
69281
|
+
/**
|
|
69282
|
+
* BROWSER_REVOKED
|
|
69283
|
+
*/
|
|
69284
|
+
410: BrowserError;
|
|
68999
69285
|
/**
|
|
69000
69286
|
* ACTION_RESULT_TOO_LARGE
|
|
69001
69287
|
*/
|
|
@@ -69017,7 +69303,7 @@ export type BrowserCreateSessionErrors = {
|
|
|
69017
69303
|
*/
|
|
69018
69304
|
502: BrowserError;
|
|
69019
69305
|
/**
|
|
69020
|
-
* SERVICE_UNAVAILABLE
|
|
69306
|
+
* BROWSER_OFFLINE / SERVICE_UNAVAILABLE
|
|
69021
69307
|
*/
|
|
69022
69308
|
503: BrowserError;
|
|
69023
69309
|
/**
|
|
@@ -69027,6 +69313,10 @@ export type BrowserCreateSessionErrors = {
|
|
|
69027
69313
|
};
|
|
69028
69314
|
export type BrowserCreateSessionError = BrowserCreateSessionErrors[keyof BrowserCreateSessionErrors];
|
|
69029
69315
|
export type BrowserCreateSessionResponses = {
|
|
69316
|
+
/**
|
|
69317
|
+
* 请求成功。
|
|
69318
|
+
*/
|
|
69319
|
+
200: BrowserSessionCreateResult;
|
|
69030
69320
|
/**
|
|
69031
69321
|
* 请求成功。
|
|
69032
69322
|
*/
|
|
@@ -69063,17 +69353,21 @@ export type BrowserGetSessionErrors = {
|
|
|
69063
69353
|
*/
|
|
69064
69354
|
402: BrowserError;
|
|
69065
69355
|
/**
|
|
69066
|
-
* PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
|
|
69356
|
+
* PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
|
|
69067
69357
|
*/
|
|
69068
69358
|
403: BrowserError;
|
|
69069
69359
|
/**
|
|
69070
|
-
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
69360
|
+
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
69071
69361
|
*/
|
|
69072
69362
|
404: BrowserError;
|
|
69073
69363
|
/**
|
|
69074
|
-
* SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
69364
|
+
* SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
69075
69365
|
*/
|
|
69076
69366
|
409: BrowserError;
|
|
69367
|
+
/**
|
|
69368
|
+
* BROWSER_REVOKED
|
|
69369
|
+
*/
|
|
69370
|
+
410: BrowserError;
|
|
69077
69371
|
/**
|
|
69078
69372
|
* ACTION_RESULT_TOO_LARGE
|
|
69079
69373
|
*/
|
|
@@ -69095,7 +69389,7 @@ export type BrowserGetSessionErrors = {
|
|
|
69095
69389
|
*/
|
|
69096
69390
|
502: BrowserError;
|
|
69097
69391
|
/**
|
|
69098
|
-
* SERVICE_UNAVAILABLE
|
|
69392
|
+
* BROWSER_OFFLINE / SERVICE_UNAVAILABLE
|
|
69099
69393
|
*/
|
|
69100
69394
|
503: BrowserError;
|
|
69101
69395
|
/**
|
|
@@ -69141,17 +69435,21 @@ export type BrowserCloseSessionErrors = {
|
|
|
69141
69435
|
*/
|
|
69142
69436
|
402: BrowserError;
|
|
69143
69437
|
/**
|
|
69144
|
-
* PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
|
|
69438
|
+
* PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
|
|
69145
69439
|
*/
|
|
69146
69440
|
403: BrowserError;
|
|
69147
69441
|
/**
|
|
69148
|
-
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
69442
|
+
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
69149
69443
|
*/
|
|
69150
69444
|
404: BrowserError;
|
|
69151
69445
|
/**
|
|
69152
|
-
* SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
69446
|
+
* SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
69153
69447
|
*/
|
|
69154
69448
|
409: BrowserError;
|
|
69449
|
+
/**
|
|
69450
|
+
* BROWSER_REVOKED
|
|
69451
|
+
*/
|
|
69452
|
+
410: BrowserError;
|
|
69155
69453
|
/**
|
|
69156
69454
|
* ACTION_RESULT_TOO_LARGE
|
|
69157
69455
|
*/
|
|
@@ -69173,7 +69471,7 @@ export type BrowserCloseSessionErrors = {
|
|
|
69173
69471
|
*/
|
|
69174
69472
|
502: BrowserError;
|
|
69175
69473
|
/**
|
|
69176
|
-
* SERVICE_UNAVAILABLE
|
|
69474
|
+
* BROWSER_OFFLINE / SERVICE_UNAVAILABLE
|
|
69177
69475
|
*/
|
|
69178
69476
|
503: BrowserError;
|
|
69179
69477
|
/**
|
|
@@ -69214,17 +69512,21 @@ export type BrowserGetDebugErrors = {
|
|
|
69214
69512
|
*/
|
|
69215
69513
|
402: BrowserError;
|
|
69216
69514
|
/**
|
|
69217
|
-
* PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
|
|
69515
|
+
* PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
|
|
69218
69516
|
*/
|
|
69219
69517
|
403: BrowserError;
|
|
69220
69518
|
/**
|
|
69221
|
-
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
69519
|
+
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
69222
69520
|
*/
|
|
69223
69521
|
404: BrowserError;
|
|
69224
69522
|
/**
|
|
69225
|
-
* SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
69523
|
+
* SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
69226
69524
|
*/
|
|
69227
69525
|
409: BrowserError;
|
|
69526
|
+
/**
|
|
69527
|
+
* BROWSER_REVOKED
|
|
69528
|
+
*/
|
|
69529
|
+
410: BrowserError;
|
|
69228
69530
|
/**
|
|
69229
69531
|
* ACTION_RESULT_TOO_LARGE
|
|
69230
69532
|
*/
|
|
@@ -69246,7 +69548,7 @@ export type BrowserGetDebugErrors = {
|
|
|
69246
69548
|
*/
|
|
69247
69549
|
502: BrowserError;
|
|
69248
69550
|
/**
|
|
69249
|
-
* SERVICE_UNAVAILABLE
|
|
69551
|
+
* BROWSER_OFFLINE / SERVICE_UNAVAILABLE
|
|
69250
69552
|
*/
|
|
69251
69553
|
503: BrowserError;
|
|
69252
69554
|
/**
|
|
@@ -69300,17 +69602,21 @@ export type BrowserListEventsErrors = {
|
|
|
69300
69602
|
*/
|
|
69301
69603
|
402: BrowserError;
|
|
69302
69604
|
/**
|
|
69303
|
-
* PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
|
|
69605
|
+
* PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
|
|
69304
69606
|
*/
|
|
69305
69607
|
403: BrowserError;
|
|
69306
69608
|
/**
|
|
69307
|
-
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
69609
|
+
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
69308
69610
|
*/
|
|
69309
69611
|
404: BrowserError;
|
|
69310
69612
|
/**
|
|
69311
|
-
* SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
69613
|
+
* SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
69312
69614
|
*/
|
|
69313
69615
|
409: BrowserError;
|
|
69616
|
+
/**
|
|
69617
|
+
* BROWSER_REVOKED
|
|
69618
|
+
*/
|
|
69619
|
+
410: BrowserError;
|
|
69314
69620
|
/**
|
|
69315
69621
|
* ACTION_RESULT_TOO_LARGE
|
|
69316
69622
|
*/
|
|
@@ -69332,7 +69638,7 @@ export type BrowserListEventsErrors = {
|
|
|
69332
69638
|
*/
|
|
69333
69639
|
502: BrowserError;
|
|
69334
69640
|
/**
|
|
69335
|
-
* SERVICE_UNAVAILABLE
|
|
69641
|
+
* BROWSER_OFFLINE / SERVICE_UNAVAILABLE
|
|
69336
69642
|
*/
|
|
69337
69643
|
503: BrowserError;
|
|
69338
69644
|
/**
|
|
@@ -69579,17 +69885,21 @@ export type BrowserRunPageActionErrors = {
|
|
|
69579
69885
|
*/
|
|
69580
69886
|
402: BrowserError;
|
|
69581
69887
|
/**
|
|
69582
|
-
* PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
|
|
69888
|
+
* PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
|
|
69583
69889
|
*/
|
|
69584
69890
|
403: BrowserError;
|
|
69585
69891
|
/**
|
|
69586
|
-
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
69892
|
+
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
69587
69893
|
*/
|
|
69588
69894
|
404: BrowserError;
|
|
69589
69895
|
/**
|
|
69590
|
-
* SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
69896
|
+
* SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
69591
69897
|
*/
|
|
69592
69898
|
409: BrowserError;
|
|
69899
|
+
/**
|
|
69900
|
+
* BROWSER_REVOKED
|
|
69901
|
+
*/
|
|
69902
|
+
410: BrowserError;
|
|
69593
69903
|
/**
|
|
69594
69904
|
* ACTION_RESULT_TOO_LARGE
|
|
69595
69905
|
*/
|
|
@@ -69611,7 +69921,7 @@ export type BrowserRunPageActionErrors = {
|
|
|
69611
69921
|
*/
|
|
69612
69922
|
502: BrowserError;
|
|
69613
69923
|
/**
|
|
69614
|
-
* SERVICE_UNAVAILABLE
|
|
69924
|
+
* BROWSER_OFFLINE / SERVICE_UNAVAILABLE
|
|
69615
69925
|
*/
|
|
69616
69926
|
503: BrowserError;
|
|
69617
69927
|
/**
|
|
@@ -69797,90 +70107,21 @@ export type BrowserRequestHandoffErrors = {
|
|
|
69797
70107
|
*/
|
|
69798
70108
|
402: BrowserError;
|
|
69799
70109
|
/**
|
|
69800
|
-
* PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
|
|
70110
|
+
* PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
|
|
69801
70111
|
*/
|
|
69802
70112
|
403: BrowserError;
|
|
69803
70113
|
/**
|
|
69804
|
-
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
70114
|
+
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
69805
70115
|
*/
|
|
69806
70116
|
404: BrowserError;
|
|
69807
70117
|
/**
|
|
69808
|
-
* SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
70118
|
+
* SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
69809
70119
|
*/
|
|
69810
70120
|
409: BrowserError;
|
|
69811
70121
|
/**
|
|
69812
|
-
*
|
|
70122
|
+
* BROWSER_REVOKED
|
|
69813
70123
|
*/
|
|
69814
|
-
|
|
69815
|
-
/**
|
|
69816
|
-
* CONCURRENCY_LIMIT / RATE_LIMITED / PROVIDER_CAPACITY
|
|
69817
|
-
*/
|
|
69818
|
-
429: BrowserError;
|
|
69819
|
-
/**
|
|
69820
|
-
* INTERNAL
|
|
69821
|
-
*/
|
|
69822
|
-
500: BrowserError;
|
|
69823
|
-
/**
|
|
69824
|
-
* NOT_IMPLEMENTED / PROVIDER_UNSUPPORTED
|
|
69825
|
-
*/
|
|
69826
|
-
501: BrowserError;
|
|
69827
|
-
/**
|
|
69828
|
-
* PROVIDER_FAILED
|
|
69829
|
-
*/
|
|
69830
|
-
502: BrowserError;
|
|
69831
|
-
/**
|
|
69832
|
-
* SERVICE_UNAVAILABLE
|
|
69833
|
-
*/
|
|
69834
|
-
503: BrowserError;
|
|
69835
|
-
/**
|
|
69836
|
-
* ACTION_TIMEOUT
|
|
69837
|
-
*/
|
|
69838
|
-
504: BrowserError;
|
|
69839
|
-
};
|
|
69840
|
-
export type BrowserRequestHandoffError = BrowserRequestHandoffErrors[keyof BrowserRequestHandoffErrors];
|
|
69841
|
-
export type BrowserRequestHandoffResponses = {
|
|
69842
|
-
/**
|
|
69843
|
-
* 请求成功。
|
|
69844
|
-
*/
|
|
69845
|
-
201: BrowserEventRecord;
|
|
69846
|
-
};
|
|
69847
|
-
export type BrowserRequestHandoffResponse = BrowserRequestHandoffResponses[keyof BrowserRequestHandoffResponses];
|
|
69848
|
-
export type BrowserCompleteHandoffData = {
|
|
69849
|
-
body?: never;
|
|
69850
|
-
path: {
|
|
69851
|
-
/**
|
|
69852
|
-
* 浏览器会话 ID;使用创建或列出会话返回的 id,以 bss_ 开头。
|
|
69853
|
-
*/
|
|
69854
|
-
sessionId: string;
|
|
69855
|
-
};
|
|
69856
|
-
query?: never;
|
|
69857
|
-
url: '/browser/v1/sessions/{sessionId}/handoff/complete';
|
|
69858
|
-
};
|
|
69859
|
-
export type BrowserCompleteHandoffErrors = {
|
|
69860
|
-
/**
|
|
69861
|
-
* INVALID_PARAMS / INVALID_FILTER / INVALID_PAGE_TOKEN
|
|
69862
|
-
*/
|
|
69863
|
-
400: BrowserError;
|
|
69864
|
-
/**
|
|
69865
|
-
* UNAUTHENTICATED / CONNECT_SIGNATURE_INVALID
|
|
69866
|
-
*/
|
|
69867
|
-
401: BrowserError;
|
|
69868
|
-
/**
|
|
69869
|
-
* INSUFFICIENT_BALANCE / QUOTA_EXHAUSTED
|
|
69870
|
-
*/
|
|
69871
|
-
402: BrowserError;
|
|
69872
|
-
/**
|
|
69873
|
-
* PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
|
|
69874
|
-
*/
|
|
69875
|
-
403: BrowserError;
|
|
69876
|
-
/**
|
|
69877
|
-
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
69878
|
-
*/
|
|
69879
|
-
404: BrowserError;
|
|
69880
|
-
/**
|
|
69881
|
-
* SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
69882
|
-
*/
|
|
69883
|
-
409: BrowserError;
|
|
70124
|
+
410: BrowserError;
|
|
69884
70125
|
/**
|
|
69885
70126
|
* ACTION_RESULT_TOO_LARGE
|
|
69886
70127
|
*/
|
|
@@ -69902,7 +70143,84 @@ export type BrowserCompleteHandoffErrors = {
|
|
|
69902
70143
|
*/
|
|
69903
70144
|
502: BrowserError;
|
|
69904
70145
|
/**
|
|
69905
|
-
* SERVICE_UNAVAILABLE
|
|
70146
|
+
* BROWSER_OFFLINE / SERVICE_UNAVAILABLE
|
|
70147
|
+
*/
|
|
70148
|
+
503: BrowserError;
|
|
70149
|
+
/**
|
|
70150
|
+
* ACTION_TIMEOUT
|
|
70151
|
+
*/
|
|
70152
|
+
504: BrowserError;
|
|
70153
|
+
};
|
|
70154
|
+
export type BrowserRequestHandoffError = BrowserRequestHandoffErrors[keyof BrowserRequestHandoffErrors];
|
|
70155
|
+
export type BrowserRequestHandoffResponses = {
|
|
70156
|
+
/**
|
|
70157
|
+
* 请求成功。
|
|
70158
|
+
*/
|
|
70159
|
+
201: BrowserEventRecord;
|
|
70160
|
+
};
|
|
70161
|
+
export type BrowserRequestHandoffResponse = BrowserRequestHandoffResponses[keyof BrowserRequestHandoffResponses];
|
|
70162
|
+
export type BrowserCompleteHandoffData = {
|
|
70163
|
+
body?: never;
|
|
70164
|
+
path: {
|
|
70165
|
+
/**
|
|
70166
|
+
* 浏览器会话 ID;使用创建或列出会话返回的 id,以 bss_ 开头。
|
|
70167
|
+
*/
|
|
70168
|
+
sessionId: string;
|
|
70169
|
+
};
|
|
70170
|
+
query?: never;
|
|
70171
|
+
url: '/browser/v1/sessions/{sessionId}/handoff/complete';
|
|
70172
|
+
};
|
|
70173
|
+
export type BrowserCompleteHandoffErrors = {
|
|
70174
|
+
/**
|
|
70175
|
+
* INVALID_PARAMS / INVALID_FILTER / INVALID_PAGE_TOKEN
|
|
70176
|
+
*/
|
|
70177
|
+
400: BrowserError;
|
|
70178
|
+
/**
|
|
70179
|
+
* UNAUTHENTICATED / CONNECT_SIGNATURE_INVALID
|
|
70180
|
+
*/
|
|
70181
|
+
401: BrowserError;
|
|
70182
|
+
/**
|
|
70183
|
+
* INSUFFICIENT_BALANCE / QUOTA_EXHAUSTED
|
|
70184
|
+
*/
|
|
70185
|
+
402: BrowserError;
|
|
70186
|
+
/**
|
|
70187
|
+
* PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
|
|
70188
|
+
*/
|
|
70189
|
+
403: BrowserError;
|
|
70190
|
+
/**
|
|
70191
|
+
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
70192
|
+
*/
|
|
70193
|
+
404: BrowserError;
|
|
70194
|
+
/**
|
|
70195
|
+
* SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
70196
|
+
*/
|
|
70197
|
+
409: BrowserError;
|
|
70198
|
+
/**
|
|
70199
|
+
* BROWSER_REVOKED
|
|
70200
|
+
*/
|
|
70201
|
+
410: BrowserError;
|
|
70202
|
+
/**
|
|
70203
|
+
* ACTION_RESULT_TOO_LARGE
|
|
70204
|
+
*/
|
|
70205
|
+
413: BrowserError;
|
|
70206
|
+
/**
|
|
70207
|
+
* CONCURRENCY_LIMIT / RATE_LIMITED / PROVIDER_CAPACITY
|
|
70208
|
+
*/
|
|
70209
|
+
429: BrowserError;
|
|
70210
|
+
/**
|
|
70211
|
+
* INTERNAL
|
|
70212
|
+
*/
|
|
70213
|
+
500: BrowserError;
|
|
70214
|
+
/**
|
|
70215
|
+
* NOT_IMPLEMENTED / PROVIDER_UNSUPPORTED
|
|
70216
|
+
*/
|
|
70217
|
+
501: BrowserError;
|
|
70218
|
+
/**
|
|
70219
|
+
* PROVIDER_FAILED
|
|
70220
|
+
*/
|
|
70221
|
+
502: BrowserError;
|
|
70222
|
+
/**
|
|
70223
|
+
* BROWSER_OFFLINE / SERVICE_UNAVAILABLE
|
|
69906
70224
|
*/
|
|
69907
70225
|
503: BrowserError;
|
|
69908
70226
|
/**
|
|
@@ -69952,17 +70270,21 @@ export type BrowserViewerHeartbeatErrors = {
|
|
|
69952
70270
|
*/
|
|
69953
70271
|
402: BrowserError;
|
|
69954
70272
|
/**
|
|
69955
|
-
* PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
|
|
70273
|
+
* PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
|
|
69956
70274
|
*/
|
|
69957
70275
|
403: BrowserError;
|
|
69958
70276
|
/**
|
|
69959
|
-
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
70277
|
+
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
69960
70278
|
*/
|
|
69961
70279
|
404: BrowserError;
|
|
69962
70280
|
/**
|
|
69963
|
-
* SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
70281
|
+
* SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
69964
70282
|
*/
|
|
69965
70283
|
409: BrowserError;
|
|
70284
|
+
/**
|
|
70285
|
+
* BROWSER_REVOKED
|
|
70286
|
+
*/
|
|
70287
|
+
410: BrowserError;
|
|
69966
70288
|
/**
|
|
69967
70289
|
* ACTION_RESULT_TOO_LARGE
|
|
69968
70290
|
*/
|
|
@@ -69984,7 +70306,7 @@ export type BrowserViewerHeartbeatErrors = {
|
|
|
69984
70306
|
*/
|
|
69985
70307
|
502: BrowserError;
|
|
69986
70308
|
/**
|
|
69987
|
-
* SERVICE_UNAVAILABLE
|
|
70309
|
+
* BROWSER_OFFLINE / SERVICE_UNAVAILABLE
|
|
69988
70310
|
*/
|
|
69989
70311
|
503: BrowserError;
|
|
69990
70312
|
/**
|
|
@@ -70030,17 +70352,21 @@ export type BrowserGetSessionFrameErrors = {
|
|
|
70030
70352
|
*/
|
|
70031
70353
|
402: BrowserError;
|
|
70032
70354
|
/**
|
|
70033
|
-
* PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
|
|
70355
|
+
* PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
|
|
70034
70356
|
*/
|
|
70035
70357
|
403: BrowserError;
|
|
70036
70358
|
/**
|
|
70037
|
-
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
70359
|
+
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
70038
70360
|
*/
|
|
70039
70361
|
404: BrowserError;
|
|
70040
70362
|
/**
|
|
70041
|
-
* SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
70363
|
+
* SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
70042
70364
|
*/
|
|
70043
70365
|
409: BrowserError;
|
|
70366
|
+
/**
|
|
70367
|
+
* BROWSER_REVOKED
|
|
70368
|
+
*/
|
|
70369
|
+
410: BrowserError;
|
|
70044
70370
|
/**
|
|
70045
70371
|
* ACTION_RESULT_TOO_LARGE
|
|
70046
70372
|
*/
|
|
@@ -70062,7 +70388,7 @@ export type BrowserGetSessionFrameErrors = {
|
|
|
70062
70388
|
*/
|
|
70063
70389
|
502: BrowserError;
|
|
70064
70390
|
/**
|
|
70065
|
-
* SERVICE_UNAVAILABLE
|
|
70391
|
+
* BROWSER_OFFLINE / SERVICE_UNAVAILABLE
|
|
70066
70392
|
*/
|
|
70067
70393
|
503: BrowserError;
|
|
70068
70394
|
/**
|
|
@@ -70111,17 +70437,21 @@ export type BrowserListContextsErrors = {
|
|
|
70111
70437
|
*/
|
|
70112
70438
|
402: BrowserError;
|
|
70113
70439
|
/**
|
|
70114
|
-
* PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
|
|
70440
|
+
* PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
|
|
70115
70441
|
*/
|
|
70116
70442
|
403: BrowserError;
|
|
70117
70443
|
/**
|
|
70118
|
-
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
70444
|
+
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
70119
70445
|
*/
|
|
70120
70446
|
404: BrowserError;
|
|
70121
70447
|
/**
|
|
70122
|
-
* SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
70448
|
+
* SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
70123
70449
|
*/
|
|
70124
70450
|
409: BrowserError;
|
|
70451
|
+
/**
|
|
70452
|
+
* BROWSER_REVOKED
|
|
70453
|
+
*/
|
|
70454
|
+
410: BrowserError;
|
|
70125
70455
|
/**
|
|
70126
70456
|
* ACTION_RESULT_TOO_LARGE
|
|
70127
70457
|
*/
|
|
@@ -70143,7 +70473,7 @@ export type BrowserListContextsErrors = {
|
|
|
70143
70473
|
*/
|
|
70144
70474
|
502: BrowserError;
|
|
70145
70475
|
/**
|
|
70146
|
-
* SERVICE_UNAVAILABLE
|
|
70476
|
+
* BROWSER_OFFLINE / SERVICE_UNAVAILABLE
|
|
70147
70477
|
*/
|
|
70148
70478
|
503: BrowserError;
|
|
70149
70479
|
/**
|
|
@@ -70203,17 +70533,21 @@ export type BrowserCreateContextErrors = {
|
|
|
70203
70533
|
*/
|
|
70204
70534
|
402: BrowserError;
|
|
70205
70535
|
/**
|
|
70206
|
-
* PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
|
|
70536
|
+
* PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
|
|
70207
70537
|
*/
|
|
70208
70538
|
403: BrowserError;
|
|
70209
70539
|
/**
|
|
70210
|
-
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
70540
|
+
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
70211
70541
|
*/
|
|
70212
70542
|
404: BrowserError;
|
|
70213
70543
|
/**
|
|
70214
|
-
* SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
70544
|
+
* SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
70215
70545
|
*/
|
|
70216
70546
|
409: BrowserError;
|
|
70547
|
+
/**
|
|
70548
|
+
* BROWSER_REVOKED
|
|
70549
|
+
*/
|
|
70550
|
+
410: BrowserError;
|
|
70217
70551
|
/**
|
|
70218
70552
|
* ACTION_RESULT_TOO_LARGE
|
|
70219
70553
|
*/
|
|
@@ -70235,7 +70569,7 @@ export type BrowserCreateContextErrors = {
|
|
|
70235
70569
|
*/
|
|
70236
70570
|
502: BrowserError;
|
|
70237
70571
|
/**
|
|
70238
|
-
* SERVICE_UNAVAILABLE
|
|
70572
|
+
* BROWSER_OFFLINE / SERVICE_UNAVAILABLE
|
|
70239
70573
|
*/
|
|
70240
70574
|
503: BrowserError;
|
|
70241
70575
|
/**
|
|
@@ -70276,17 +70610,21 @@ export type BrowserDeleteContextErrors = {
|
|
|
70276
70610
|
*/
|
|
70277
70611
|
402: BrowserError;
|
|
70278
70612
|
/**
|
|
70279
|
-
* PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
|
|
70613
|
+
* PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
|
|
70280
70614
|
*/
|
|
70281
70615
|
403: BrowserError;
|
|
70282
70616
|
/**
|
|
70283
|
-
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
70617
|
+
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
70284
70618
|
*/
|
|
70285
70619
|
404: BrowserError;
|
|
70286
70620
|
/**
|
|
70287
|
-
* SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
70621
|
+
* SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
70288
70622
|
*/
|
|
70289
70623
|
409: BrowserError;
|
|
70624
|
+
/**
|
|
70625
|
+
* BROWSER_REVOKED
|
|
70626
|
+
*/
|
|
70627
|
+
410: BrowserError;
|
|
70290
70628
|
/**
|
|
70291
70629
|
* ACTION_RESULT_TOO_LARGE
|
|
70292
70630
|
*/
|
|
@@ -70308,7 +70646,7 @@ export type BrowserDeleteContextErrors = {
|
|
|
70308
70646
|
*/
|
|
70309
70647
|
502: BrowserError;
|
|
70310
70648
|
/**
|
|
70311
|
-
* SERVICE_UNAVAILABLE
|
|
70649
|
+
* BROWSER_OFFLINE / SERVICE_UNAVAILABLE
|
|
70312
70650
|
*/
|
|
70313
70651
|
503: BrowserError;
|
|
70314
70652
|
/**
|
|
@@ -70354,17 +70692,21 @@ export type BrowserGetContextErrors = {
|
|
|
70354
70692
|
*/
|
|
70355
70693
|
402: BrowserError;
|
|
70356
70694
|
/**
|
|
70357
|
-
* PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
|
|
70695
|
+
* PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
|
|
70358
70696
|
*/
|
|
70359
70697
|
403: BrowserError;
|
|
70360
70698
|
/**
|
|
70361
|
-
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
70699
|
+
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
70362
70700
|
*/
|
|
70363
70701
|
404: BrowserError;
|
|
70364
70702
|
/**
|
|
70365
|
-
* SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
70703
|
+
* SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
70366
70704
|
*/
|
|
70367
70705
|
409: BrowserError;
|
|
70706
|
+
/**
|
|
70707
|
+
* BROWSER_REVOKED
|
|
70708
|
+
*/
|
|
70709
|
+
410: BrowserError;
|
|
70368
70710
|
/**
|
|
70369
70711
|
* ACTION_RESULT_TOO_LARGE
|
|
70370
70712
|
*/
|
|
@@ -70386,7 +70728,7 @@ export type BrowserGetContextErrors = {
|
|
|
70386
70728
|
*/
|
|
70387
70729
|
502: BrowserError;
|
|
70388
70730
|
/**
|
|
70389
|
-
* SERVICE_UNAVAILABLE
|
|
70731
|
+
* BROWSER_OFFLINE / SERVICE_UNAVAILABLE
|
|
70390
70732
|
*/
|
|
70391
70733
|
503: BrowserError;
|
|
70392
70734
|
/**
|
|
@@ -70438,17 +70780,21 @@ export type BrowserUpdateContextErrors = {
|
|
|
70438
70780
|
*/
|
|
70439
70781
|
402: BrowserError;
|
|
70440
70782
|
/**
|
|
70441
|
-
* PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
|
|
70783
|
+
* PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
|
|
70442
70784
|
*/
|
|
70443
70785
|
403: BrowserError;
|
|
70444
70786
|
/**
|
|
70445
|
-
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
70787
|
+
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
70446
70788
|
*/
|
|
70447
70789
|
404: BrowserError;
|
|
70448
70790
|
/**
|
|
70449
|
-
* SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
70791
|
+
* SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
70450
70792
|
*/
|
|
70451
70793
|
409: BrowserError;
|
|
70794
|
+
/**
|
|
70795
|
+
* BROWSER_REVOKED
|
|
70796
|
+
*/
|
|
70797
|
+
410: BrowserError;
|
|
70452
70798
|
/**
|
|
70453
70799
|
* ACTION_RESULT_TOO_LARGE
|
|
70454
70800
|
*/
|
|
@@ -70470,7 +70816,7 @@ export type BrowserUpdateContextErrors = {
|
|
|
70470
70816
|
*/
|
|
70471
70817
|
502: BrowserError;
|
|
70472
70818
|
/**
|
|
70473
|
-
* SERVICE_UNAVAILABLE
|
|
70819
|
+
* BROWSER_OFFLINE / SERVICE_UNAVAILABLE
|
|
70474
70820
|
*/
|
|
70475
70821
|
503: BrowserError;
|
|
70476
70822
|
/**
|
|
@@ -70486,191 +70832,13 @@ export type BrowserUpdateContextResponses = {
|
|
|
70486
70832
|
200: BrowserContext;
|
|
70487
70833
|
};
|
|
70488
70834
|
export type BrowserUpdateContextResponse = BrowserUpdateContextResponses[keyof BrowserUpdateContextResponses];
|
|
70489
|
-
export type
|
|
70835
|
+
export type BrowserCreateByobPairingData = {
|
|
70490
70836
|
body?: never;
|
|
70491
70837
|
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';
|
|
70531
|
-
};
|
|
70532
|
-
export type BrowserConnectErrors = {
|
|
70533
|
-
/**
|
|
70534
|
-
* INVALID_PARAMS / INVALID_FILTER / INVALID_PAGE_TOKEN
|
|
70535
|
-
*/
|
|
70536
|
-
400: BrowserError;
|
|
70537
|
-
/**
|
|
70538
|
-
* UNAUTHENTICATED / CONNECT_SIGNATURE_INVALID
|
|
70539
|
-
*/
|
|
70540
|
-
401: BrowserError;
|
|
70541
|
-
/**
|
|
70542
|
-
* INSUFFICIENT_BALANCE / QUOTA_EXHAUSTED
|
|
70543
|
-
*/
|
|
70544
|
-
402: BrowserError;
|
|
70545
|
-
/**
|
|
70546
|
-
* PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
|
|
70547
|
-
*/
|
|
70548
|
-
403: BrowserError;
|
|
70549
|
-
/**
|
|
70550
|
-
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
70551
|
-
*/
|
|
70552
|
-
404: BrowserError;
|
|
70553
|
-
/**
|
|
70554
|
-
* SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
70555
|
-
*/
|
|
70556
|
-
409: BrowserError;
|
|
70557
|
-
/**
|
|
70558
|
-
* ACTION_RESULT_TOO_LARGE
|
|
70559
|
-
*/
|
|
70560
|
-
413: BrowserError;
|
|
70561
|
-
/**
|
|
70562
|
-
* CONCURRENCY_LIMIT / RATE_LIMITED / PROVIDER_CAPACITY
|
|
70563
|
-
*/
|
|
70564
|
-
429: BrowserError;
|
|
70565
|
-
/**
|
|
70566
|
-
* INTERNAL
|
|
70567
|
-
*/
|
|
70568
|
-
500: BrowserError;
|
|
70569
|
-
/**
|
|
70570
|
-
* NOT_IMPLEMENTED / PROVIDER_UNSUPPORTED
|
|
70571
|
-
*/
|
|
70572
|
-
501: BrowserError;
|
|
70573
|
-
/**
|
|
70574
|
-
* PROVIDER_FAILED
|
|
70575
|
-
*/
|
|
70576
|
-
502: BrowserError;
|
|
70577
|
-
/**
|
|
70578
|
-
* SERVICE_UNAVAILABLE
|
|
70579
|
-
*/
|
|
70580
|
-
503: BrowserError;
|
|
70581
|
-
/**
|
|
70582
|
-
* ACTION_TIMEOUT
|
|
70583
|
-
*/
|
|
70584
|
-
504: BrowserError;
|
|
70585
|
-
};
|
|
70586
|
-
export type BrowserConnectError = BrowserConnectErrors[keyof BrowserConnectErrors];
|
|
70587
|
-
export type BrowserLiveViewData = {
|
|
70588
|
-
body?: never;
|
|
70589
|
-
path: {
|
|
70590
|
-
/**
|
|
70591
|
-
* 浏览器会话 ID;使用创建或列出会话返回的 id,以 bss_ 开头。
|
|
70592
|
-
*/
|
|
70593
|
-
sessionId: string;
|
|
70594
|
-
/**
|
|
70595
|
-
* 实时观看地址中的标签页 ID;使用 debug 返回链接中的原值,_ 表示会话级画面。
|
|
70596
|
-
*/
|
|
70597
|
-
pageId: string;
|
|
70598
|
-
};
|
|
70599
|
-
query?: {
|
|
70600
|
-
/**
|
|
70601
|
-
* 实时观看地址自带的凭证。
|
|
70602
|
-
*/
|
|
70603
|
-
t?: string;
|
|
70604
|
-
};
|
|
70605
|
-
url: '/browser/v1/live/{sessionId}/{pageId}';
|
|
70606
|
-
};
|
|
70607
|
-
export type BrowserLiveViewErrors = {
|
|
70608
|
-
/**
|
|
70609
|
-
* INVALID_PARAMS / INVALID_FILTER / INVALID_PAGE_TOKEN
|
|
70610
|
-
*/
|
|
70611
|
-
400: BrowserError;
|
|
70612
|
-
/**
|
|
70613
|
-
* UNAUTHENTICATED / CONNECT_SIGNATURE_INVALID
|
|
70614
|
-
*/
|
|
70615
|
-
401: BrowserError;
|
|
70616
|
-
/**
|
|
70617
|
-
* INSUFFICIENT_BALANCE / QUOTA_EXHAUSTED
|
|
70618
|
-
*/
|
|
70619
|
-
402: BrowserError;
|
|
70620
|
-
/**
|
|
70621
|
-
* PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
|
|
70622
|
-
*/
|
|
70623
|
-
403: BrowserError;
|
|
70624
|
-
/**
|
|
70625
|
-
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
70626
|
-
*/
|
|
70627
|
-
404: BrowserError;
|
|
70628
|
-
/**
|
|
70629
|
-
* SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
70630
|
-
*/
|
|
70631
|
-
409: BrowserError;
|
|
70632
|
-
/**
|
|
70633
|
-
* ACTION_RESULT_TOO_LARGE
|
|
70634
|
-
*/
|
|
70635
|
-
413: BrowserError;
|
|
70636
|
-
/**
|
|
70637
|
-
* CONCURRENCY_LIMIT / RATE_LIMITED / PROVIDER_CAPACITY
|
|
70638
|
-
*/
|
|
70639
|
-
429: BrowserError;
|
|
70640
|
-
/**
|
|
70641
|
-
* INTERNAL
|
|
70642
|
-
*/
|
|
70643
|
-
500: BrowserError;
|
|
70644
|
-
/**
|
|
70645
|
-
* NOT_IMPLEMENTED / PROVIDER_UNSUPPORTED
|
|
70646
|
-
*/
|
|
70647
|
-
501: BrowserError;
|
|
70648
|
-
/**
|
|
70649
|
-
* PROVIDER_FAILED
|
|
70650
|
-
*/
|
|
70651
|
-
502: BrowserError;
|
|
70652
|
-
/**
|
|
70653
|
-
* SERVICE_UNAVAILABLE
|
|
70654
|
-
*/
|
|
70655
|
-
503: BrowserError;
|
|
70656
|
-
/**
|
|
70657
|
-
* ACTION_TIMEOUT
|
|
70658
|
-
*/
|
|
70659
|
-
504: BrowserError;
|
|
70660
|
-
};
|
|
70661
|
-
export type BrowserLiveViewError = BrowserLiveViewErrors[keyof BrowserLiveViewErrors];
|
|
70662
|
-
export type BrowserStreamSessionData = {
|
|
70663
|
-
body?: never;
|
|
70664
|
-
path: {
|
|
70665
|
-
/**
|
|
70666
|
-
* 浏览器会话 ID;使用创建或列出会话返回的 id,以 bss_ 开头。
|
|
70667
|
-
*/
|
|
70668
|
-
sessionId: string;
|
|
70669
|
-
};
|
|
70670
70838
|
query?: never;
|
|
70671
|
-
url: '/browser/v1/
|
|
70839
|
+
url: '/browser/v1/byob/pairings';
|
|
70672
70840
|
};
|
|
70673
|
-
export type
|
|
70841
|
+
export type BrowserCreateByobPairingErrors = {
|
|
70674
70842
|
/**
|
|
70675
70843
|
* INVALID_PARAMS / INVALID_FILTER / INVALID_PAGE_TOKEN
|
|
70676
70844
|
*/
|
|
@@ -70684,17 +70852,767 @@ export type BrowserStreamSessionErrors = {
|
|
|
70684
70852
|
*/
|
|
70685
70853
|
402: BrowserError;
|
|
70686
70854
|
/**
|
|
70687
|
-
* PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
|
|
70855
|
+
* PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
|
|
70688
70856
|
*/
|
|
70689
70857
|
403: BrowserError;
|
|
70690
70858
|
/**
|
|
70691
|
-
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
70859
|
+
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
70692
70860
|
*/
|
|
70693
70861
|
404: BrowserError;
|
|
70694
70862
|
/**
|
|
70695
|
-
* SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
70863
|
+
* SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
70696
70864
|
*/
|
|
70697
70865
|
409: BrowserError;
|
|
70866
|
+
/**
|
|
70867
|
+
* BROWSER_REVOKED
|
|
70868
|
+
*/
|
|
70869
|
+
410: BrowserError;
|
|
70870
|
+
/**
|
|
70871
|
+
* ACTION_RESULT_TOO_LARGE
|
|
70872
|
+
*/
|
|
70873
|
+
413: BrowserError;
|
|
70874
|
+
/**
|
|
70875
|
+
* CONCURRENCY_LIMIT / RATE_LIMITED / PROVIDER_CAPACITY
|
|
70876
|
+
*/
|
|
70877
|
+
429: BrowserError;
|
|
70878
|
+
/**
|
|
70879
|
+
* INTERNAL
|
|
70880
|
+
*/
|
|
70881
|
+
500: BrowserError;
|
|
70882
|
+
/**
|
|
70883
|
+
* NOT_IMPLEMENTED / PROVIDER_UNSUPPORTED
|
|
70884
|
+
*/
|
|
70885
|
+
501: BrowserError;
|
|
70886
|
+
/**
|
|
70887
|
+
* PROVIDER_FAILED
|
|
70888
|
+
*/
|
|
70889
|
+
502: BrowserError;
|
|
70890
|
+
/**
|
|
70891
|
+
* BROWSER_OFFLINE / SERVICE_UNAVAILABLE
|
|
70892
|
+
*/
|
|
70893
|
+
503: BrowserError;
|
|
70894
|
+
/**
|
|
70895
|
+
* ACTION_TIMEOUT
|
|
70896
|
+
*/
|
|
70897
|
+
504: BrowserError;
|
|
70898
|
+
};
|
|
70899
|
+
export type BrowserCreateByobPairingError = BrowserCreateByobPairingErrors[keyof BrowserCreateByobPairingErrors];
|
|
70900
|
+
export type BrowserCreateByobPairingResponses = {
|
|
70901
|
+
/**
|
|
70902
|
+
* 请求成功。
|
|
70903
|
+
*/
|
|
70904
|
+
201: BrowserByobPairing;
|
|
70905
|
+
};
|
|
70906
|
+
export type BrowserCreateByobPairingResponse = BrowserCreateByobPairingResponses[keyof BrowserCreateByobPairingResponses];
|
|
70907
|
+
export type BrowserListByobBrowsersData = {
|
|
70908
|
+
body?: never;
|
|
70909
|
+
path?: never;
|
|
70910
|
+
query?: {
|
|
70911
|
+
/**
|
|
70912
|
+
* 上一页返回的 nextCursor,原样传入;省略时读取第一页。
|
|
70913
|
+
*/
|
|
70914
|
+
cursor?: string;
|
|
70915
|
+
/**
|
|
70916
|
+
* 每页最多返回的浏览器数量;默认 50,范围 1–100。
|
|
70917
|
+
*/
|
|
70918
|
+
limit?: number;
|
|
70919
|
+
};
|
|
70920
|
+
url: '/browser/v1/byob/browsers';
|
|
70921
|
+
};
|
|
70922
|
+
export type BrowserListByobBrowsersErrors = {
|
|
70923
|
+
/**
|
|
70924
|
+
* INVALID_PARAMS / INVALID_FILTER / INVALID_PAGE_TOKEN
|
|
70925
|
+
*/
|
|
70926
|
+
400: BrowserError;
|
|
70927
|
+
/**
|
|
70928
|
+
* UNAUTHENTICATED / CONNECT_SIGNATURE_INVALID
|
|
70929
|
+
*/
|
|
70930
|
+
401: BrowserError;
|
|
70931
|
+
/**
|
|
70932
|
+
* INSUFFICIENT_BALANCE / QUOTA_EXHAUSTED
|
|
70933
|
+
*/
|
|
70934
|
+
402: BrowserError;
|
|
70935
|
+
/**
|
|
70936
|
+
* PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
|
|
70937
|
+
*/
|
|
70938
|
+
403: BrowserError;
|
|
70939
|
+
/**
|
|
70940
|
+
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
70941
|
+
*/
|
|
70942
|
+
404: BrowserError;
|
|
70943
|
+
/**
|
|
70944
|
+
* SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
70945
|
+
*/
|
|
70946
|
+
409: BrowserError;
|
|
70947
|
+
/**
|
|
70948
|
+
* BROWSER_REVOKED
|
|
70949
|
+
*/
|
|
70950
|
+
410: BrowserError;
|
|
70951
|
+
/**
|
|
70952
|
+
* ACTION_RESULT_TOO_LARGE
|
|
70953
|
+
*/
|
|
70954
|
+
413: BrowserError;
|
|
70955
|
+
/**
|
|
70956
|
+
* CONCURRENCY_LIMIT / RATE_LIMITED / PROVIDER_CAPACITY
|
|
70957
|
+
*/
|
|
70958
|
+
429: BrowserError;
|
|
70959
|
+
/**
|
|
70960
|
+
* INTERNAL
|
|
70961
|
+
*/
|
|
70962
|
+
500: BrowserError;
|
|
70963
|
+
/**
|
|
70964
|
+
* NOT_IMPLEMENTED / PROVIDER_UNSUPPORTED
|
|
70965
|
+
*/
|
|
70966
|
+
501: BrowserError;
|
|
70967
|
+
/**
|
|
70968
|
+
* PROVIDER_FAILED
|
|
70969
|
+
*/
|
|
70970
|
+
502: BrowserError;
|
|
70971
|
+
/**
|
|
70972
|
+
* BROWSER_OFFLINE / SERVICE_UNAVAILABLE
|
|
70973
|
+
*/
|
|
70974
|
+
503: BrowserError;
|
|
70975
|
+
/**
|
|
70976
|
+
* ACTION_TIMEOUT
|
|
70977
|
+
*/
|
|
70978
|
+
504: BrowserError;
|
|
70979
|
+
};
|
|
70980
|
+
export type BrowserListByobBrowsersError = BrowserListByobBrowsersErrors[keyof BrowserListByobBrowsersErrors];
|
|
70981
|
+
export type BrowserListByobBrowsersResponses = {
|
|
70982
|
+
/**
|
|
70983
|
+
* 分页列出的自带浏览器,按 ID 升序。
|
|
70984
|
+
*/
|
|
70985
|
+
200: {
|
|
70986
|
+
/**
|
|
70987
|
+
* 本页的自带浏览器;已断开的不在列表里。
|
|
70988
|
+
*/
|
|
70989
|
+
data: Array<BrowserByobBrowser>;
|
|
70990
|
+
/**
|
|
70991
|
+
* 下一页游标;原样传入 cursor,null 表示没有更多结果。
|
|
70992
|
+
*/
|
|
70993
|
+
nextCursor: string | null;
|
|
70994
|
+
};
|
|
70995
|
+
};
|
|
70996
|
+
export type BrowserListByobBrowsersResponse = BrowserListByobBrowsersResponses[keyof BrowserListByobBrowsersResponses];
|
|
70997
|
+
export type BrowserGetByobBrowserData = {
|
|
70998
|
+
body?: never;
|
|
70999
|
+
path: {
|
|
71000
|
+
/**
|
|
71001
|
+
* 自带浏览器 ID,以 byb_ 开头;使用配对认领或列出自带浏览器返回的 id。
|
|
71002
|
+
*/
|
|
71003
|
+
browser_id: string;
|
|
71004
|
+
};
|
|
71005
|
+
query?: never;
|
|
71006
|
+
url: '/browser/v1/byob/browsers/{browser_id}';
|
|
71007
|
+
};
|
|
71008
|
+
export type BrowserGetByobBrowserErrors = {
|
|
71009
|
+
/**
|
|
71010
|
+
* INVALID_PARAMS / INVALID_FILTER / INVALID_PAGE_TOKEN
|
|
71011
|
+
*/
|
|
71012
|
+
400: BrowserError;
|
|
71013
|
+
/**
|
|
71014
|
+
* UNAUTHENTICATED / CONNECT_SIGNATURE_INVALID
|
|
71015
|
+
*/
|
|
71016
|
+
401: BrowserError;
|
|
71017
|
+
/**
|
|
71018
|
+
* INSUFFICIENT_BALANCE / QUOTA_EXHAUSTED
|
|
71019
|
+
*/
|
|
71020
|
+
402: BrowserError;
|
|
71021
|
+
/**
|
|
71022
|
+
* PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
|
|
71023
|
+
*/
|
|
71024
|
+
403: BrowserError;
|
|
71025
|
+
/**
|
|
71026
|
+
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
71027
|
+
*/
|
|
71028
|
+
404: BrowserError;
|
|
71029
|
+
/**
|
|
71030
|
+
* SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
71031
|
+
*/
|
|
71032
|
+
409: BrowserError;
|
|
71033
|
+
/**
|
|
71034
|
+
* BROWSER_REVOKED
|
|
71035
|
+
*/
|
|
71036
|
+
410: BrowserError;
|
|
71037
|
+
/**
|
|
71038
|
+
* ACTION_RESULT_TOO_LARGE
|
|
71039
|
+
*/
|
|
71040
|
+
413: BrowserError;
|
|
71041
|
+
/**
|
|
71042
|
+
* CONCURRENCY_LIMIT / RATE_LIMITED / PROVIDER_CAPACITY
|
|
71043
|
+
*/
|
|
71044
|
+
429: BrowserError;
|
|
71045
|
+
/**
|
|
71046
|
+
* INTERNAL
|
|
71047
|
+
*/
|
|
71048
|
+
500: BrowserError;
|
|
71049
|
+
/**
|
|
71050
|
+
* NOT_IMPLEMENTED / PROVIDER_UNSUPPORTED
|
|
71051
|
+
*/
|
|
71052
|
+
501: BrowserError;
|
|
71053
|
+
/**
|
|
71054
|
+
* PROVIDER_FAILED
|
|
71055
|
+
*/
|
|
71056
|
+
502: BrowserError;
|
|
71057
|
+
/**
|
|
71058
|
+
* BROWSER_OFFLINE / SERVICE_UNAVAILABLE
|
|
71059
|
+
*/
|
|
71060
|
+
503: BrowserError;
|
|
71061
|
+
/**
|
|
71062
|
+
* ACTION_TIMEOUT
|
|
71063
|
+
*/
|
|
71064
|
+
504: BrowserError;
|
|
71065
|
+
};
|
|
71066
|
+
export type BrowserGetByobBrowserError = BrowserGetByobBrowserErrors[keyof BrowserGetByobBrowserErrors];
|
|
71067
|
+
export type BrowserGetByobBrowserResponses = {
|
|
71068
|
+
/**
|
|
71069
|
+
* 请求成功。
|
|
71070
|
+
*/
|
|
71071
|
+
200: BrowserByobBrowser;
|
|
71072
|
+
};
|
|
71073
|
+
export type BrowserGetByobBrowserResponse = BrowserGetByobBrowserResponses[keyof BrowserGetByobBrowserResponses];
|
|
71074
|
+
export type BrowserUpdateByobBrowserData = {
|
|
71075
|
+
body: {
|
|
71076
|
+
/**
|
|
71077
|
+
* 新的显示名称,1–80 个字符。
|
|
71078
|
+
*/
|
|
71079
|
+
name?: string;
|
|
71080
|
+
/**
|
|
71081
|
+
* 整体替换被授权的智能体 ID 列表;传空数组撤销全部授权。
|
|
71082
|
+
*/
|
|
71083
|
+
granted_agents?: Array<string>;
|
|
71084
|
+
/**
|
|
71085
|
+
* 整体替换允许站点列表;传空数组表示不限制。
|
|
71086
|
+
*/
|
|
71087
|
+
allowed_sites?: Array<string>;
|
|
71088
|
+
};
|
|
71089
|
+
path: {
|
|
71090
|
+
/**
|
|
71091
|
+
* 自带浏览器 ID,以 byb_ 开头;使用配对认领或列出自带浏览器返回的 id。
|
|
71092
|
+
*/
|
|
71093
|
+
browser_id: string;
|
|
71094
|
+
};
|
|
71095
|
+
query?: never;
|
|
71096
|
+
url: '/browser/v1/byob/browsers/{browser_id}';
|
|
71097
|
+
};
|
|
71098
|
+
export type BrowserUpdateByobBrowserErrors = {
|
|
71099
|
+
/**
|
|
71100
|
+
* INVALID_PARAMS / INVALID_FILTER / INVALID_PAGE_TOKEN
|
|
71101
|
+
*/
|
|
71102
|
+
400: BrowserError;
|
|
71103
|
+
/**
|
|
71104
|
+
* UNAUTHENTICATED / CONNECT_SIGNATURE_INVALID
|
|
71105
|
+
*/
|
|
71106
|
+
401: BrowserError;
|
|
71107
|
+
/**
|
|
71108
|
+
* INSUFFICIENT_BALANCE / QUOTA_EXHAUSTED
|
|
71109
|
+
*/
|
|
71110
|
+
402: BrowserError;
|
|
71111
|
+
/**
|
|
71112
|
+
* PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
|
|
71113
|
+
*/
|
|
71114
|
+
403: BrowserError;
|
|
71115
|
+
/**
|
|
71116
|
+
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
71117
|
+
*/
|
|
71118
|
+
404: BrowserError;
|
|
71119
|
+
/**
|
|
71120
|
+
* SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
71121
|
+
*/
|
|
71122
|
+
409: BrowserError;
|
|
71123
|
+
/**
|
|
71124
|
+
* BROWSER_REVOKED
|
|
71125
|
+
*/
|
|
71126
|
+
410: BrowserError;
|
|
71127
|
+
/**
|
|
71128
|
+
* ACTION_RESULT_TOO_LARGE
|
|
71129
|
+
*/
|
|
71130
|
+
413: BrowserError;
|
|
71131
|
+
/**
|
|
71132
|
+
* CONCURRENCY_LIMIT / RATE_LIMITED / PROVIDER_CAPACITY
|
|
71133
|
+
*/
|
|
71134
|
+
429: BrowserError;
|
|
71135
|
+
/**
|
|
71136
|
+
* INTERNAL
|
|
71137
|
+
*/
|
|
71138
|
+
500: BrowserError;
|
|
71139
|
+
/**
|
|
71140
|
+
* NOT_IMPLEMENTED / PROVIDER_UNSUPPORTED
|
|
71141
|
+
*/
|
|
71142
|
+
501: BrowserError;
|
|
71143
|
+
/**
|
|
71144
|
+
* PROVIDER_FAILED
|
|
71145
|
+
*/
|
|
71146
|
+
502: BrowserError;
|
|
71147
|
+
/**
|
|
71148
|
+
* BROWSER_OFFLINE / SERVICE_UNAVAILABLE
|
|
71149
|
+
*/
|
|
71150
|
+
503: BrowserError;
|
|
71151
|
+
/**
|
|
71152
|
+
* ACTION_TIMEOUT
|
|
71153
|
+
*/
|
|
71154
|
+
504: BrowserError;
|
|
71155
|
+
};
|
|
71156
|
+
export type BrowserUpdateByobBrowserError = BrowserUpdateByobBrowserErrors[keyof BrowserUpdateByobBrowserErrors];
|
|
71157
|
+
export type BrowserUpdateByobBrowserResponses = {
|
|
71158
|
+
/**
|
|
71159
|
+
* 请求成功。
|
|
71160
|
+
*/
|
|
71161
|
+
200: BrowserByobBrowser;
|
|
71162
|
+
};
|
|
71163
|
+
export type BrowserUpdateByobBrowserResponse = BrowserUpdateByobBrowserResponses[keyof BrowserUpdateByobBrowserResponses];
|
|
71164
|
+
export type BrowserDisconnectByobBrowserData = {
|
|
71165
|
+
body?: never;
|
|
71166
|
+
path: {
|
|
71167
|
+
/**
|
|
71168
|
+
* 自带浏览器 ID,以 byb_ 开头;使用配对认领或列出自带浏览器返回的 id。
|
|
71169
|
+
*/
|
|
71170
|
+
browser_id: string;
|
|
71171
|
+
};
|
|
71172
|
+
query?: never;
|
|
71173
|
+
url: '/browser/v1/byob/browsers/{browser_id}/disconnect';
|
|
71174
|
+
};
|
|
71175
|
+
export type BrowserDisconnectByobBrowserErrors = {
|
|
71176
|
+
/**
|
|
71177
|
+
* INVALID_PARAMS / INVALID_FILTER / INVALID_PAGE_TOKEN
|
|
71178
|
+
*/
|
|
71179
|
+
400: BrowserError;
|
|
71180
|
+
/**
|
|
71181
|
+
* UNAUTHENTICATED / CONNECT_SIGNATURE_INVALID
|
|
71182
|
+
*/
|
|
71183
|
+
401: BrowserError;
|
|
71184
|
+
/**
|
|
71185
|
+
* INSUFFICIENT_BALANCE / QUOTA_EXHAUSTED
|
|
71186
|
+
*/
|
|
71187
|
+
402: BrowserError;
|
|
71188
|
+
/**
|
|
71189
|
+
* PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
|
|
71190
|
+
*/
|
|
71191
|
+
403: BrowserError;
|
|
71192
|
+
/**
|
|
71193
|
+
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
71194
|
+
*/
|
|
71195
|
+
404: BrowserError;
|
|
71196
|
+
/**
|
|
71197
|
+
* SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
71198
|
+
*/
|
|
71199
|
+
409: BrowserError;
|
|
71200
|
+
/**
|
|
71201
|
+
* BROWSER_REVOKED
|
|
71202
|
+
*/
|
|
71203
|
+
410: BrowserError;
|
|
71204
|
+
/**
|
|
71205
|
+
* ACTION_RESULT_TOO_LARGE
|
|
71206
|
+
*/
|
|
71207
|
+
413: BrowserError;
|
|
71208
|
+
/**
|
|
71209
|
+
* CONCURRENCY_LIMIT / RATE_LIMITED / PROVIDER_CAPACITY
|
|
71210
|
+
*/
|
|
71211
|
+
429: BrowserError;
|
|
71212
|
+
/**
|
|
71213
|
+
* INTERNAL
|
|
71214
|
+
*/
|
|
71215
|
+
500: BrowserError;
|
|
71216
|
+
/**
|
|
71217
|
+
* NOT_IMPLEMENTED / PROVIDER_UNSUPPORTED
|
|
71218
|
+
*/
|
|
71219
|
+
501: BrowserError;
|
|
71220
|
+
/**
|
|
71221
|
+
* PROVIDER_FAILED
|
|
71222
|
+
*/
|
|
71223
|
+
502: BrowserError;
|
|
71224
|
+
/**
|
|
71225
|
+
* BROWSER_OFFLINE / SERVICE_UNAVAILABLE
|
|
71226
|
+
*/
|
|
71227
|
+
503: BrowserError;
|
|
71228
|
+
/**
|
|
71229
|
+
* ACTION_TIMEOUT
|
|
71230
|
+
*/
|
|
71231
|
+
504: BrowserError;
|
|
71232
|
+
};
|
|
71233
|
+
export type BrowserDisconnectByobBrowserError = BrowserDisconnectByobBrowserErrors[keyof BrowserDisconnectByobBrowserErrors];
|
|
71234
|
+
export type BrowserDisconnectByobBrowserResponses = {
|
|
71235
|
+
/**
|
|
71236
|
+
* 请求成功。
|
|
71237
|
+
*/
|
|
71238
|
+
200: BrowserByobBrowser;
|
|
71239
|
+
};
|
|
71240
|
+
export type BrowserDisconnectByobBrowserResponse = BrowserDisconnectByobBrowserResponses[keyof BrowserDisconnectByobBrowserResponses];
|
|
71241
|
+
export type BrowserReadByobPairingData = {
|
|
71242
|
+
body?: never;
|
|
71243
|
+
path: {
|
|
71244
|
+
/**
|
|
71245
|
+
* 8 位配对码,来自创建配对码的结果。
|
|
71246
|
+
*/
|
|
71247
|
+
code: string;
|
|
71248
|
+
};
|
|
71249
|
+
query?: never;
|
|
71250
|
+
url: '/browser/v1/byob/pairings/{code}';
|
|
71251
|
+
};
|
|
71252
|
+
export type BrowserReadByobPairingErrors = {
|
|
71253
|
+
/**
|
|
71254
|
+
* INVALID_PARAMS / INVALID_FILTER / INVALID_PAGE_TOKEN
|
|
71255
|
+
*/
|
|
71256
|
+
400: BrowserError;
|
|
71257
|
+
/**
|
|
71258
|
+
* UNAUTHENTICATED / CONNECT_SIGNATURE_INVALID
|
|
71259
|
+
*/
|
|
71260
|
+
401: BrowserError;
|
|
71261
|
+
/**
|
|
71262
|
+
* INSUFFICIENT_BALANCE / QUOTA_EXHAUSTED
|
|
71263
|
+
*/
|
|
71264
|
+
402: BrowserError;
|
|
71265
|
+
/**
|
|
71266
|
+
* PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
|
|
71267
|
+
*/
|
|
71268
|
+
403: BrowserError;
|
|
71269
|
+
/**
|
|
71270
|
+
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
71271
|
+
*/
|
|
71272
|
+
404: BrowserError;
|
|
71273
|
+
/**
|
|
71274
|
+
* SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
71275
|
+
*/
|
|
71276
|
+
409: BrowserError;
|
|
71277
|
+
/**
|
|
71278
|
+
* BROWSER_REVOKED
|
|
71279
|
+
*/
|
|
71280
|
+
410: BrowserError;
|
|
71281
|
+
/**
|
|
71282
|
+
* ACTION_RESULT_TOO_LARGE
|
|
71283
|
+
*/
|
|
71284
|
+
413: BrowserError;
|
|
71285
|
+
/**
|
|
71286
|
+
* CONCURRENCY_LIMIT / RATE_LIMITED / PROVIDER_CAPACITY
|
|
71287
|
+
*/
|
|
71288
|
+
429: BrowserError;
|
|
71289
|
+
/**
|
|
71290
|
+
* INTERNAL
|
|
71291
|
+
*/
|
|
71292
|
+
500: BrowserError;
|
|
71293
|
+
/**
|
|
71294
|
+
* NOT_IMPLEMENTED / PROVIDER_UNSUPPORTED
|
|
71295
|
+
*/
|
|
71296
|
+
501: BrowserError;
|
|
71297
|
+
/**
|
|
71298
|
+
* PROVIDER_FAILED
|
|
71299
|
+
*/
|
|
71300
|
+
502: BrowserError;
|
|
71301
|
+
/**
|
|
71302
|
+
* BROWSER_OFFLINE / SERVICE_UNAVAILABLE
|
|
71303
|
+
*/
|
|
71304
|
+
503: BrowserError;
|
|
71305
|
+
/**
|
|
71306
|
+
* ACTION_TIMEOUT
|
|
71307
|
+
*/
|
|
71308
|
+
504: BrowserError;
|
|
71309
|
+
};
|
|
71310
|
+
export type BrowserReadByobPairingError = BrowserReadByobPairingErrors[keyof BrowserReadByobPairingErrors];
|
|
71311
|
+
export type BrowserReadByobPairingResponses = {
|
|
71312
|
+
/**
|
|
71313
|
+
* 请求成功。
|
|
71314
|
+
*/
|
|
71315
|
+
200: BrowserByobPairingView;
|
|
71316
|
+
};
|
|
71317
|
+
export type BrowserReadByobPairingResponse = BrowserReadByobPairingResponses[keyof BrowserReadByobPairingResponses];
|
|
71318
|
+
export type BrowserClaimByobPairingData = {
|
|
71319
|
+
body: BrowserByobClaim;
|
|
71320
|
+
path: {
|
|
71321
|
+
/**
|
|
71322
|
+
* 8 位配对码,来自创建配对码的结果。
|
|
71323
|
+
*/
|
|
71324
|
+
code: string;
|
|
71325
|
+
};
|
|
71326
|
+
query?: never;
|
|
71327
|
+
url: '/browser/v1/byob/pairings/{code}/claim';
|
|
71328
|
+
};
|
|
71329
|
+
export type BrowserClaimByobPairingErrors = {
|
|
71330
|
+
/**
|
|
71331
|
+
* INVALID_PARAMS / INVALID_FILTER / INVALID_PAGE_TOKEN
|
|
71332
|
+
*/
|
|
71333
|
+
400: BrowserError;
|
|
71334
|
+
/**
|
|
71335
|
+
* UNAUTHENTICATED / CONNECT_SIGNATURE_INVALID
|
|
71336
|
+
*/
|
|
71337
|
+
401: BrowserError;
|
|
71338
|
+
/**
|
|
71339
|
+
* INSUFFICIENT_BALANCE / QUOTA_EXHAUSTED
|
|
71340
|
+
*/
|
|
71341
|
+
402: BrowserError;
|
|
71342
|
+
/**
|
|
71343
|
+
* PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
|
|
71344
|
+
*/
|
|
71345
|
+
403: BrowserError;
|
|
71346
|
+
/**
|
|
71347
|
+
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
71348
|
+
*/
|
|
71349
|
+
404: BrowserError;
|
|
71350
|
+
/**
|
|
71351
|
+
* SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
71352
|
+
*/
|
|
71353
|
+
409: BrowserError;
|
|
71354
|
+
/**
|
|
71355
|
+
* BROWSER_REVOKED
|
|
71356
|
+
*/
|
|
71357
|
+
410: BrowserError;
|
|
71358
|
+
/**
|
|
71359
|
+
* ACTION_RESULT_TOO_LARGE
|
|
71360
|
+
*/
|
|
71361
|
+
413: BrowserError;
|
|
71362
|
+
/**
|
|
71363
|
+
* CONCURRENCY_LIMIT / RATE_LIMITED / PROVIDER_CAPACITY
|
|
71364
|
+
*/
|
|
71365
|
+
429: BrowserError;
|
|
71366
|
+
/**
|
|
71367
|
+
* INTERNAL
|
|
71368
|
+
*/
|
|
71369
|
+
500: BrowserError;
|
|
71370
|
+
/**
|
|
71371
|
+
* NOT_IMPLEMENTED / PROVIDER_UNSUPPORTED
|
|
71372
|
+
*/
|
|
71373
|
+
501: BrowserError;
|
|
71374
|
+
/**
|
|
71375
|
+
* PROVIDER_FAILED
|
|
71376
|
+
*/
|
|
71377
|
+
502: BrowserError;
|
|
71378
|
+
/**
|
|
71379
|
+
* BROWSER_OFFLINE / SERVICE_UNAVAILABLE
|
|
71380
|
+
*/
|
|
71381
|
+
503: BrowserError;
|
|
71382
|
+
/**
|
|
71383
|
+
* ACTION_TIMEOUT
|
|
71384
|
+
*/
|
|
71385
|
+
504: BrowserError;
|
|
71386
|
+
};
|
|
71387
|
+
export type BrowserClaimByobPairingError = BrowserClaimByobPairingErrors[keyof BrowserClaimByobPairingErrors];
|
|
71388
|
+
export type BrowserClaimByobPairingResponses = {
|
|
71389
|
+
/**
|
|
71390
|
+
* 认领成功。
|
|
71391
|
+
*/
|
|
71392
|
+
201: BrowserByobClaimResult;
|
|
71393
|
+
};
|
|
71394
|
+
export type BrowserClaimByobPairingResponse = BrowserClaimByobPairingResponses[keyof BrowserClaimByobPairingResponses];
|
|
71395
|
+
export type BrowserConnectData = {
|
|
71396
|
+
body?: never;
|
|
71397
|
+
path?: never;
|
|
71398
|
+
query?: {
|
|
71399
|
+
/**
|
|
71400
|
+
* 浏览器会话 ID;使用创建或列出会话返回的 id,以 bss_ 开头。
|
|
71401
|
+
*/
|
|
71402
|
+
session?: string;
|
|
71403
|
+
/**
|
|
71404
|
+
* 会话名称;1–128 个 ASCII 字母、数字或 . _ : -,可用于筛选会话。
|
|
71405
|
+
*/
|
|
71406
|
+
name?: string;
|
|
71407
|
+
/**
|
|
71408
|
+
* connectUrl 自带凭证;必须同时带 session。
|
|
71409
|
+
*/
|
|
71410
|
+
signingKey?: string;
|
|
71411
|
+
/**
|
|
71412
|
+
* 登录态 ID;使用创建或列出登录态返回的 id,以 bsc_ 开头。
|
|
71413
|
+
*/
|
|
71414
|
+
context?: string;
|
|
71415
|
+
/**
|
|
71416
|
+
* 关闭时保存登录态。
|
|
71417
|
+
*/
|
|
71418
|
+
persist?: boolean;
|
|
71419
|
+
/**
|
|
71420
|
+
* 新会话最长寿命,单位为秒,可含小数;连接已有会话时忽略。
|
|
71421
|
+
*/
|
|
71422
|
+
timeout?: number;
|
|
71423
|
+
/**
|
|
71424
|
+
* 新会话无人连接或观看后的释放等待时长,单位为毫秒;允许 0 或小数,连接已有会话时忽略。
|
|
71425
|
+
*/
|
|
71426
|
+
idle?: number;
|
|
71427
|
+
/**
|
|
71428
|
+
* JSON 编码的字符串标签对象。
|
|
71429
|
+
*/
|
|
71430
|
+
labels?: string;
|
|
71431
|
+
/**
|
|
71432
|
+
* JSON 编码的视口,例如 {"width":1280,"height":800}。
|
|
71433
|
+
*/
|
|
71434
|
+
viewport?: string;
|
|
71435
|
+
};
|
|
71436
|
+
url: '/browser/v1/connect';
|
|
71437
|
+
};
|
|
71438
|
+
export type BrowserConnectErrors = {
|
|
71439
|
+
/**
|
|
71440
|
+
* INVALID_PARAMS / INVALID_FILTER / INVALID_PAGE_TOKEN
|
|
71441
|
+
*/
|
|
71442
|
+
400: BrowserError;
|
|
71443
|
+
/**
|
|
71444
|
+
* UNAUTHENTICATED / CONNECT_SIGNATURE_INVALID
|
|
71445
|
+
*/
|
|
71446
|
+
401: BrowserError;
|
|
71447
|
+
/**
|
|
71448
|
+
* INSUFFICIENT_BALANCE / QUOTA_EXHAUSTED
|
|
71449
|
+
*/
|
|
71450
|
+
402: BrowserError;
|
|
71451
|
+
/**
|
|
71452
|
+
* PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
|
|
71453
|
+
*/
|
|
71454
|
+
403: BrowserError;
|
|
71455
|
+
/**
|
|
71456
|
+
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
71457
|
+
*/
|
|
71458
|
+
404: BrowserError;
|
|
71459
|
+
/**
|
|
71460
|
+
* SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
71461
|
+
*/
|
|
71462
|
+
409: BrowserError;
|
|
71463
|
+
/**
|
|
71464
|
+
* BROWSER_REVOKED
|
|
71465
|
+
*/
|
|
71466
|
+
410: BrowserError;
|
|
71467
|
+
/**
|
|
71468
|
+
* ACTION_RESULT_TOO_LARGE
|
|
71469
|
+
*/
|
|
71470
|
+
413: BrowserError;
|
|
71471
|
+
/**
|
|
71472
|
+
* CONCURRENCY_LIMIT / RATE_LIMITED / PROVIDER_CAPACITY
|
|
71473
|
+
*/
|
|
71474
|
+
429: BrowserError;
|
|
71475
|
+
/**
|
|
71476
|
+
* INTERNAL
|
|
71477
|
+
*/
|
|
71478
|
+
500: BrowserError;
|
|
71479
|
+
/**
|
|
71480
|
+
* NOT_IMPLEMENTED / PROVIDER_UNSUPPORTED
|
|
71481
|
+
*/
|
|
71482
|
+
501: BrowserError;
|
|
71483
|
+
/**
|
|
71484
|
+
* PROVIDER_FAILED
|
|
71485
|
+
*/
|
|
71486
|
+
502: BrowserError;
|
|
71487
|
+
/**
|
|
71488
|
+
* BROWSER_OFFLINE / SERVICE_UNAVAILABLE
|
|
71489
|
+
*/
|
|
71490
|
+
503: BrowserError;
|
|
71491
|
+
/**
|
|
71492
|
+
* ACTION_TIMEOUT
|
|
71493
|
+
*/
|
|
71494
|
+
504: BrowserError;
|
|
71495
|
+
};
|
|
71496
|
+
export type BrowserConnectError = BrowserConnectErrors[keyof BrowserConnectErrors];
|
|
71497
|
+
export type BrowserLiveViewData = {
|
|
71498
|
+
body?: never;
|
|
71499
|
+
path: {
|
|
71500
|
+
/**
|
|
71501
|
+
* 浏览器会话 ID;使用创建或列出会话返回的 id,以 bss_ 开头。
|
|
71502
|
+
*/
|
|
71503
|
+
sessionId: string;
|
|
71504
|
+
/**
|
|
71505
|
+
* 实时观看地址中的标签页 ID;使用 debug 返回链接中的原值,_ 表示会话级画面。
|
|
71506
|
+
*/
|
|
71507
|
+
pageId: string;
|
|
71508
|
+
};
|
|
71509
|
+
query?: {
|
|
71510
|
+
/**
|
|
71511
|
+
* 实时观看地址自带的凭证。
|
|
71512
|
+
*/
|
|
71513
|
+
t?: string;
|
|
71514
|
+
};
|
|
71515
|
+
url: '/browser/v1/live/{sessionId}/{pageId}';
|
|
71516
|
+
};
|
|
71517
|
+
export type BrowserLiveViewErrors = {
|
|
71518
|
+
/**
|
|
71519
|
+
* INVALID_PARAMS / INVALID_FILTER / INVALID_PAGE_TOKEN
|
|
71520
|
+
*/
|
|
71521
|
+
400: BrowserError;
|
|
71522
|
+
/**
|
|
71523
|
+
* UNAUTHENTICATED / CONNECT_SIGNATURE_INVALID
|
|
71524
|
+
*/
|
|
71525
|
+
401: BrowserError;
|
|
71526
|
+
/**
|
|
71527
|
+
* INSUFFICIENT_BALANCE / QUOTA_EXHAUSTED
|
|
71528
|
+
*/
|
|
71529
|
+
402: BrowserError;
|
|
71530
|
+
/**
|
|
71531
|
+
* PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
|
|
71532
|
+
*/
|
|
71533
|
+
403: BrowserError;
|
|
71534
|
+
/**
|
|
71535
|
+
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
71536
|
+
*/
|
|
71537
|
+
404: BrowserError;
|
|
71538
|
+
/**
|
|
71539
|
+
* SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
71540
|
+
*/
|
|
71541
|
+
409: BrowserError;
|
|
71542
|
+
/**
|
|
71543
|
+
* BROWSER_REVOKED
|
|
71544
|
+
*/
|
|
71545
|
+
410: BrowserError;
|
|
71546
|
+
/**
|
|
71547
|
+
* ACTION_RESULT_TOO_LARGE
|
|
71548
|
+
*/
|
|
71549
|
+
413: BrowserError;
|
|
71550
|
+
/**
|
|
71551
|
+
* CONCURRENCY_LIMIT / RATE_LIMITED / PROVIDER_CAPACITY
|
|
71552
|
+
*/
|
|
71553
|
+
429: BrowserError;
|
|
71554
|
+
/**
|
|
71555
|
+
* INTERNAL
|
|
71556
|
+
*/
|
|
71557
|
+
500: BrowserError;
|
|
71558
|
+
/**
|
|
71559
|
+
* NOT_IMPLEMENTED / PROVIDER_UNSUPPORTED
|
|
71560
|
+
*/
|
|
71561
|
+
501: BrowserError;
|
|
71562
|
+
/**
|
|
71563
|
+
* PROVIDER_FAILED
|
|
71564
|
+
*/
|
|
71565
|
+
502: BrowserError;
|
|
71566
|
+
/**
|
|
71567
|
+
* BROWSER_OFFLINE / SERVICE_UNAVAILABLE
|
|
71568
|
+
*/
|
|
71569
|
+
503: BrowserError;
|
|
71570
|
+
/**
|
|
71571
|
+
* ACTION_TIMEOUT
|
|
71572
|
+
*/
|
|
71573
|
+
504: BrowserError;
|
|
71574
|
+
};
|
|
71575
|
+
export type BrowserLiveViewError = BrowserLiveViewErrors[keyof BrowserLiveViewErrors];
|
|
71576
|
+
export type BrowserStreamSessionData = {
|
|
71577
|
+
body?: never;
|
|
71578
|
+
path: {
|
|
71579
|
+
/**
|
|
71580
|
+
* 浏览器会话 ID;使用创建或列出会话返回的 id,以 bss_ 开头。
|
|
71581
|
+
*/
|
|
71582
|
+
sessionId: string;
|
|
71583
|
+
};
|
|
71584
|
+
query?: never;
|
|
71585
|
+
url: '/browser/v1/sessions/{sessionId}/stream';
|
|
71586
|
+
};
|
|
71587
|
+
export type BrowserStreamSessionErrors = {
|
|
71588
|
+
/**
|
|
71589
|
+
* INVALID_PARAMS / INVALID_FILTER / INVALID_PAGE_TOKEN
|
|
71590
|
+
*/
|
|
71591
|
+
400: BrowserError;
|
|
71592
|
+
/**
|
|
71593
|
+
* UNAUTHENTICATED / CONNECT_SIGNATURE_INVALID
|
|
71594
|
+
*/
|
|
71595
|
+
401: BrowserError;
|
|
71596
|
+
/**
|
|
71597
|
+
* INSUFFICIENT_BALANCE / QUOTA_EXHAUSTED
|
|
71598
|
+
*/
|
|
71599
|
+
402: BrowserError;
|
|
71600
|
+
/**
|
|
71601
|
+
* PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
|
|
71602
|
+
*/
|
|
71603
|
+
403: BrowserError;
|
|
71604
|
+
/**
|
|
71605
|
+
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
71606
|
+
*/
|
|
71607
|
+
404: BrowserError;
|
|
71608
|
+
/**
|
|
71609
|
+
* SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
71610
|
+
*/
|
|
71611
|
+
409: BrowserError;
|
|
71612
|
+
/**
|
|
71613
|
+
* BROWSER_REVOKED
|
|
71614
|
+
*/
|
|
71615
|
+
410: BrowserError;
|
|
70698
71616
|
/**
|
|
70699
71617
|
* ACTION_RESULT_TOO_LARGE
|
|
70700
71618
|
*/
|
|
@@ -70716,7 +71634,7 @@ export type BrowserStreamSessionErrors = {
|
|
|
70716
71634
|
*/
|
|
70717
71635
|
502: BrowserError;
|
|
70718
71636
|
/**
|
|
70719
|
-
* SERVICE_UNAVAILABLE
|
|
71637
|
+
* BROWSER_OFFLINE / SERVICE_UNAVAILABLE
|
|
70720
71638
|
*/
|
|
70721
71639
|
503: BrowserError;
|
|
70722
71640
|
/**
|
|
@@ -70757,17 +71675,21 @@ export type BrowserStreamSessionFramesErrors = {
|
|
|
70757
71675
|
*/
|
|
70758
71676
|
402: BrowserError;
|
|
70759
71677
|
/**
|
|
70760
|
-
* PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
|
|
71678
|
+
* PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
|
|
70761
71679
|
*/
|
|
70762
71680
|
403: BrowserError;
|
|
70763
71681
|
/**
|
|
70764
|
-
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
71682
|
+
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
70765
71683
|
*/
|
|
70766
71684
|
404: BrowserError;
|
|
70767
71685
|
/**
|
|
70768
|
-
* SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
71686
|
+
* SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
70769
71687
|
*/
|
|
70770
71688
|
409: BrowserError;
|
|
71689
|
+
/**
|
|
71690
|
+
* BROWSER_REVOKED
|
|
71691
|
+
*/
|
|
71692
|
+
410: BrowserError;
|
|
70771
71693
|
/**
|
|
70772
71694
|
* ACTION_RESULT_TOO_LARGE
|
|
70773
71695
|
*/
|
|
@@ -70789,7 +71711,7 @@ export type BrowserStreamSessionFramesErrors = {
|
|
|
70789
71711
|
*/
|
|
70790
71712
|
502: BrowserError;
|
|
70791
71713
|
/**
|
|
70792
|
-
* SERVICE_UNAVAILABLE
|
|
71714
|
+
* BROWSER_OFFLINE / SERVICE_UNAVAILABLE
|
|
70793
71715
|
*/
|
|
70794
71716
|
503: BrowserError;
|
|
70795
71717
|
/**
|
|
@@ -79973,6 +80895,19 @@ export type ListByodDevicesResponses = {
|
|
|
79973
80895
|
* The absolute directories a desktop registered for agent sessions with its last hello; a session may only start in one of these. Empty for a phone and for a desktop that has not connected yet.
|
|
79974
80896
|
*/
|
|
79975
80897
|
agent_dirs: Array<string>;
|
|
80898
|
+
/**
|
|
80899
|
+
* Which agent each registered directory is bound to, as the desktop's last hello reported. Empty for a phone and for a desktop that has not connected yet.
|
|
80900
|
+
*/
|
|
80901
|
+
agent_bindings: Array<{
|
|
80902
|
+
/**
|
|
80903
|
+
* The absolute directory the desktop bound to an agent with praxis agent connect.
|
|
80904
|
+
*/
|
|
80905
|
+
dir: string;
|
|
80906
|
+
/**
|
|
80907
|
+
* The agent the directory is bound to: its identity number or its agent id.
|
|
80908
|
+
*/
|
|
80909
|
+
agent: string;
|
|
80910
|
+
}>;
|
|
79976
80911
|
/**
|
|
79977
80912
|
* Whether the desktop's envd lets a platform session run in bypassPermissions (all tool calls without asking). True unless the person ran praxis connect agent --no-bypass on that machine; a session create that asks for bypassPermissions on a device where this is false answers 400 INVALID_PARAMS. False for a phone and for a desktop that has not connected yet.
|
|
79978
80913
|
*/
|
|
@@ -80055,6 +80990,19 @@ export type GetByodDeviceResponses = {
|
|
|
80055
80990
|
* The absolute directories a desktop registered for agent sessions with its last hello; a session may only start in one of these. Empty for a phone and for a desktop that has not connected yet.
|
|
80056
80991
|
*/
|
|
80057
80992
|
agent_dirs: Array<string>;
|
|
80993
|
+
/**
|
|
80994
|
+
* Which agent each registered directory is bound to, as the desktop's last hello reported. Empty for a phone and for a desktop that has not connected yet.
|
|
80995
|
+
*/
|
|
80996
|
+
agent_bindings: Array<{
|
|
80997
|
+
/**
|
|
80998
|
+
* The absolute directory the desktop bound to an agent with praxis agent connect.
|
|
80999
|
+
*/
|
|
81000
|
+
dir: string;
|
|
81001
|
+
/**
|
|
81002
|
+
* The agent the directory is bound to: its identity number or its agent id.
|
|
81003
|
+
*/
|
|
81004
|
+
agent: string;
|
|
81005
|
+
}>;
|
|
80058
81006
|
/**
|
|
80059
81007
|
* Whether the desktop's envd lets a platform session run in bypassPermissions (all tool calls without asking). True unless the person ran praxis connect agent --no-bypass on that machine; a session create that asks for bypassPermissions on a device where this is false answers 400 INVALID_PARAMS. False for a phone and for a desktop that has not connected yet.
|
|
80060
81008
|
*/
|
|
@@ -80148,6 +81096,19 @@ export type UpdateByodDeviceResponses = {
|
|
|
80148
81096
|
* The absolute directories a desktop registered for agent sessions with its last hello; a session may only start in one of these. Empty for a phone and for a desktop that has not connected yet.
|
|
80149
81097
|
*/
|
|
80150
81098
|
agent_dirs: Array<string>;
|
|
81099
|
+
/**
|
|
81100
|
+
* Which agent each registered directory is bound to, as the desktop's last hello reported. Empty for a phone and for a desktop that has not connected yet.
|
|
81101
|
+
*/
|
|
81102
|
+
agent_bindings: Array<{
|
|
81103
|
+
/**
|
|
81104
|
+
* The absolute directory the desktop bound to an agent with praxis agent connect.
|
|
81105
|
+
*/
|
|
81106
|
+
dir: string;
|
|
81107
|
+
/**
|
|
81108
|
+
* The agent the directory is bound to: its identity number or its agent id.
|
|
81109
|
+
*/
|
|
81110
|
+
agent: string;
|
|
81111
|
+
}>;
|
|
80151
81112
|
/**
|
|
80152
81113
|
* Whether the desktop's envd lets a platform session run in bypassPermissions (all tool calls without asking). True unless the person ran praxis connect agent --no-bypass on that machine; a session create that asks for bypassPermissions on a device where this is false answers 400 INVALID_PARAMS. False for a phone and for a desktop that has not connected yet.
|
|
80153
81114
|
*/
|
|
@@ -83441,6 +84402,15 @@ export type AgentsListResponses = {
|
|
|
83441
84402
|
name: string;
|
|
83442
84403
|
}>;
|
|
83443
84404
|
};
|
|
84405
|
+
/**
|
|
84406
|
+
* ADR-205: which browser the agent drives. {byob: byb_…} names one of your organization's paired browsers (browser.byob.browsers.list), which the agent then drives through connect() instead of a cloud browser; null or absent is the cloud browser. The browser must belong to your organization (otherwise 400) and must grant this agent before a session can open it. Omit on update to keep it, send an object to replace it, or null to go back to the cloud browser. /agent/v1 only.
|
|
84407
|
+
*/
|
|
84408
|
+
browser?: {
|
|
84409
|
+
/**
|
|
84410
|
+
* A paired browser's id (byb_ and 26 lowercase hex characters), from browser.byob.browsers.list.
|
|
84411
|
+
*/
|
|
84412
|
+
byob: string;
|
|
84413
|
+
} | null;
|
|
83444
84414
|
/**
|
|
83445
84415
|
* Praxis extension: MA only has session-scoped temporary containers and memory_stores, not durable browsable computers. computer_id selects a tenant-owned active computer. Session selection overrides the agent default; a sandbox environment_id and computer_id cannot be combined. Omitted when no computer is selected.
|
|
83446
84416
|
*/
|
|
@@ -84390,6 +85360,15 @@ export type AgentsCreateData = {
|
|
|
84390
85360
|
name: string;
|
|
84391
85361
|
}>;
|
|
84392
85362
|
};
|
|
85363
|
+
/**
|
|
85364
|
+
* ADR-205: which browser the agent drives. {byob: byb_…} names one of your organization's paired browsers (browser.byob.browsers.list), which the agent then drives through connect() instead of a cloud browser; null or absent is the cloud browser. The browser must belong to your organization (otherwise 400) and must grant this agent before a session can open it. Omit on update to keep it, send an object to replace it, or null to go back to the cloud browser. /agent/v1 only.
|
|
85365
|
+
*/
|
|
85366
|
+
browser?: {
|
|
85367
|
+
/**
|
|
85368
|
+
* A paired browser's id (byb_ and 26 lowercase hex characters), from browser.byob.browsers.list.
|
|
85369
|
+
*/
|
|
85370
|
+
byob: string;
|
|
85371
|
+
} | null;
|
|
84393
85372
|
/**
|
|
84394
85373
|
* Optional tool preset. minimal enables read, glob and grep; data-editor also enables write and edit; full uses the default toolset with always_allow. Explicit tools override matching preset entries. codemode requires bash and is absent from data-editor.
|
|
84395
85374
|
*/
|
|
@@ -84645,6 +85624,15 @@ export type AgentsCreateResponses = {
|
|
|
84645
85624
|
name: string;
|
|
84646
85625
|
}>;
|
|
84647
85626
|
};
|
|
85627
|
+
/**
|
|
85628
|
+
* ADR-205: which browser the agent drives. {byob: byb_…} names one of your organization's paired browsers (browser.byob.browsers.list), which the agent then drives through connect() instead of a cloud browser; null or absent is the cloud browser. The browser must belong to your organization (otherwise 400) and must grant this agent before a session can open it. Omit on update to keep it, send an object to replace it, or null to go back to the cloud browser. /agent/v1 only.
|
|
85629
|
+
*/
|
|
85630
|
+
browser?: {
|
|
85631
|
+
/**
|
|
85632
|
+
* A paired browser's id (byb_ and 26 lowercase hex characters), from browser.byob.browsers.list.
|
|
85633
|
+
*/
|
|
85634
|
+
byob: string;
|
|
85635
|
+
} | null;
|
|
84648
85636
|
/**
|
|
84649
85637
|
* Praxis extension: MA only has session-scoped temporary containers and memory_stores, not durable browsable computers. computer_id selects a tenant-owned active computer. Session selection overrides the agent default; a sandbox environment_id and computer_id cannot be combined. Omitted when no computer is selected.
|
|
84650
85638
|
*/
|
|
@@ -85307,6 +86295,15 @@ export type AgentsRetrieveResponses = {
|
|
|
85307
86295
|
name: string;
|
|
85308
86296
|
}>;
|
|
85309
86297
|
};
|
|
86298
|
+
/**
|
|
86299
|
+
* ADR-205: which browser the agent drives. {byob: byb_…} names one of your organization's paired browsers (browser.byob.browsers.list), which the agent then drives through connect() instead of a cloud browser; null or absent is the cloud browser. The browser must belong to your organization (otherwise 400) and must grant this agent before a session can open it. Omit on update to keep it, send an object to replace it, or null to go back to the cloud browser. /agent/v1 only.
|
|
86300
|
+
*/
|
|
86301
|
+
browser?: {
|
|
86302
|
+
/**
|
|
86303
|
+
* A paired browser's id (byb_ and 26 lowercase hex characters), from browser.byob.browsers.list.
|
|
86304
|
+
*/
|
|
86305
|
+
byob: string;
|
|
86306
|
+
} | null;
|
|
85310
86307
|
/**
|
|
85311
86308
|
* Praxis extension: MA only has session-scoped temporary containers and memory_stores, not durable browsable computers. computer_id selects a tenant-owned active computer. Session selection overrides the agent default; a sandbox environment_id and computer_id cannot be combined. Omitted when no computer is selected.
|
|
85312
86309
|
*/
|
|
@@ -86266,273 +87263,291 @@ export type AgentsUpdateData = {
|
|
|
86266
87263
|
}>;
|
|
86267
87264
|
};
|
|
86268
87265
|
/**
|
|
86269
|
-
*
|
|
86270
|
-
*/
|
|
86271
|
-
|
|
86272
|
-
|
|
86273
|
-
|
|
86274
|
-
|
|
86275
|
-
|
|
86276
|
-
|
|
86277
|
-
|
|
86278
|
-
|
|
86279
|
-
|
|
86280
|
-
|
|
86281
|
-
|
|
86282
|
-
|
|
86283
|
-
|
|
86284
|
-
|
|
86285
|
-
|
|
86286
|
-
|
|
86287
|
-
|
|
86288
|
-
|
|
86289
|
-
|
|
86290
|
-
|
|
86291
|
-
|
|
86292
|
-
|
|
86293
|
-
|
|
86294
|
-
|
|
86295
|
-
|
|
86296
|
-
|
|
86297
|
-
|
|
86298
|
-
|
|
86299
|
-
|
|
86300
|
-
|
|
86301
|
-
|
|
86302
|
-
};
|
|
86303
|
-
|
|
86304
|
-
|
|
86305
|
-
|
|
86306
|
-
|
|
86307
|
-
|
|
86308
|
-
|
|
86309
|
-
|
|
86310
|
-
|
|
86311
|
-
|
|
86312
|
-
|
|
86313
|
-
|
|
86314
|
-
|
|
86315
|
-
|
|
86316
|
-
|
|
86317
|
-
|
|
86318
|
-
|
|
86319
|
-
|
|
86320
|
-
|
|
86321
|
-
|
|
86322
|
-
|
|
86323
|
-
|
|
86324
|
-
|
|
86325
|
-
|
|
86326
|
-
|
|
86327
|
-
|
|
86328
|
-
|
|
86329
|
-
|
|
86330
|
-
|
|
86331
|
-
|
|
86332
|
-
|
|
86333
|
-
|
|
86334
|
-
|
|
86335
|
-
|
|
86336
|
-
|
|
86337
|
-
|
|
86338
|
-
|
|
86339
|
-
|
|
86340
|
-
|
|
86341
|
-
|
|
86342
|
-
|
|
86343
|
-
|
|
86344
|
-
|
|
86345
|
-
|
|
86346
|
-
|
|
86347
|
-
|
|
86348
|
-
|
|
86349
|
-
|
|
86350
|
-
|
|
86351
|
-
|
|
86352
|
-
/**
|
|
86353
|
-
*
|
|
86354
|
-
*/
|
|
86355
|
-
|
|
86356
|
-
|
|
86357
|
-
|
|
86358
|
-
|
|
86359
|
-
|
|
86360
|
-
|
|
86361
|
-
|
|
86362
|
-
|
|
86363
|
-
|
|
86364
|
-
|
|
86365
|
-
/**
|
|
86366
|
-
*
|
|
86367
|
-
|
|
86368
|
-
|
|
86369
|
-
|
|
86370
|
-
|
|
86371
|
-
*
|
|
86372
|
-
|
|
86373
|
-
|
|
86374
|
-
|
|
86375
|
-
|
|
86376
|
-
|
|
86377
|
-
|
|
86378
|
-
|
|
86379
|
-
|
|
86380
|
-
|
|
86381
|
-
|
|
86382
|
-
|
|
86383
|
-
|
|
86384
|
-
|
|
86385
|
-
|
|
86386
|
-
|
|
86387
|
-
|
|
86388
|
-
|
|
86389
|
-
|
|
86390
|
-
|
|
86391
|
-
|
|
86392
|
-
|
|
86393
|
-
|
|
86394
|
-
|
|
86395
|
-
|
|
86396
|
-
|
|
86397
|
-
|
|
86398
|
-
|
|
86399
|
-
|
|
86400
|
-
|
|
86401
|
-
|
|
86402
|
-
|
|
86403
|
-
|
|
86404
|
-
|
|
86405
|
-
|
|
86406
|
-
|
|
86407
|
-
|
|
86408
|
-
|
|
86409
|
-
|
|
86410
|
-
|
|
86411
|
-
|
|
86412
|
-
|
|
86413
|
-
|
|
86414
|
-
|
|
86415
|
-
|
|
86416
|
-
|
|
86417
|
-
|
|
86418
|
-
|
|
86419
|
-
|
|
87266
|
+
* ADR-205: which browser the agent drives. {byob: byb_…} names one of your organization's paired browsers (browser.byob.browsers.list), which the agent then drives through connect() instead of a cloud browser; null or absent is the cloud browser. The browser must belong to your organization (otherwise 400) and must grant this agent before a session can open it. Omit on update to keep it, send an object to replace it, or null to go back to the cloud browser. /agent/v1 only.
|
|
87267
|
+
*/
|
|
87268
|
+
browser?: {
|
|
87269
|
+
/**
|
|
87270
|
+
* A paired browser's id (byb_ and 26 lowercase hex characters), from browser.byob.browsers.list.
|
|
87271
|
+
*/
|
|
87272
|
+
byob: string;
|
|
87273
|
+
} | null;
|
|
87274
|
+
/**
|
|
87275
|
+
* Optional tool preset. minimal enables read, glob and grep; data-editor also enables write and edit; full uses the default toolset with always_allow. Explicit tools override matching preset entries. codemode requires bash and is absent from data-editor.
|
|
87276
|
+
*/
|
|
87277
|
+
preset?: 'minimal' | 'data-editor' | 'full';
|
|
87278
|
+
/**
|
|
87279
|
+
* 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.
|
|
87280
|
+
*/
|
|
87281
|
+
output_styles?: Array<{
|
|
87282
|
+
/**
|
|
87283
|
+
* Nonblank, case-sensitive style name, unique within this list. It can override a same-name file or built-in style.
|
|
87284
|
+
*/
|
|
87285
|
+
name: string;
|
|
87286
|
+
/**
|
|
87287
|
+
* Optional description of when to use this style.
|
|
87288
|
+
*/
|
|
87289
|
+
description?: string;
|
|
87290
|
+
/**
|
|
87291
|
+
* Style instructions added after platform guidance and before owner instructions. Empty content adds no style instructions.
|
|
87292
|
+
*/
|
|
87293
|
+
prompt: string;
|
|
87294
|
+
/**
|
|
87295
|
+
* Saved for file-format compatibility; currently has no effect because Praxis has no separate coding-instruction block.
|
|
87296
|
+
*/
|
|
87297
|
+
keep_coding_instructions?: boolean;
|
|
87298
|
+
}> | null;
|
|
87299
|
+
};
|
|
87300
|
+
path: {
|
|
87301
|
+
/**
|
|
87302
|
+
* 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_….
|
|
87303
|
+
*/
|
|
87304
|
+
agent_id: string;
|
|
87305
|
+
};
|
|
87306
|
+
query?: never;
|
|
87307
|
+
url: '/agent/v1/agents/{agent_id}';
|
|
87308
|
+
};
|
|
87309
|
+
export type AgentsUpdateErrors = {
|
|
87310
|
+
/**
|
|
87311
|
+
* The body failed validation and the message names the field (same rules as agents.create, including tools: null).
|
|
87312
|
+
*/
|
|
87313
|
+
400: AgentError;
|
|
87314
|
+
/**
|
|
87315
|
+
* 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.
|
|
87316
|
+
*/
|
|
87317
|
+
401: AgentError;
|
|
87318
|
+
/**
|
|
87319
|
+
* 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.
|
|
87320
|
+
*/
|
|
87321
|
+
403: AgentError;
|
|
87322
|
+
/**
|
|
87323
|
+
* AGENT_NOT_FOUND: the id does not exist in your organization, or is malformed. Take ids from agents.list or agents.create.
|
|
87324
|
+
*/
|
|
87325
|
+
404: AgentError;
|
|
87326
|
+
/**
|
|
87327
|
+
* 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.
|
|
87328
|
+
*/
|
|
87329
|
+
409: AgentError;
|
|
87330
|
+
};
|
|
87331
|
+
export type AgentsUpdateError = AgentsUpdateErrors[keyof AgentsUpdateErrors];
|
|
87332
|
+
export type AgentsUpdateResponses = {
|
|
87333
|
+
/**
|
|
87334
|
+
* Successful response
|
|
87335
|
+
*/
|
|
87336
|
+
200: {
|
|
87337
|
+
/**
|
|
87338
|
+
* Agent id (agent_...). Pass it as agent when creating a session and as agent_id in agent calls.
|
|
87339
|
+
*/
|
|
87340
|
+
id: string;
|
|
87341
|
+
/**
|
|
87342
|
+
* A timestamp in RFC 3339 format
|
|
87343
|
+
*/
|
|
87344
|
+
archived_at: null | string;
|
|
87345
|
+
/**
|
|
87346
|
+
* A timestamp in RFC 3339 format
|
|
87347
|
+
*/
|
|
87348
|
+
created_at: string;
|
|
87349
|
+
/**
|
|
87350
|
+
* Free-text description of what the agent is for; null when none was set.
|
|
87351
|
+
*/
|
|
87352
|
+
description: null | string;
|
|
87353
|
+
/**
|
|
87354
|
+
* Praxis extension: HTTP, SSE or trusted stdio MCP servers paired with mcp_toolset entries and saved with the agent version.
|
|
87355
|
+
*/
|
|
87356
|
+
mcp_servers: Array<AgentManaged36>;
|
|
87357
|
+
metadata: AgentManaged37;
|
|
87358
|
+
/**
|
|
87359
|
+
* Model identifier and configuration.
|
|
87360
|
+
*/
|
|
87361
|
+
model?: {
|
|
87362
|
+
/**
|
|
87363
|
+
* 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.
|
|
87364
|
+
*/
|
|
87365
|
+
id: string;
|
|
87366
|
+
/**
|
|
87367
|
+
* How hard Claude works on each turn. Sets `output_config.effort` on every
|
|
87368
|
+
* Messages call the session makes.
|
|
87369
|
+
*/
|
|
87370
|
+
effort?: AgentManaged2 | AgentManaged3 | AgentManaged4 | AgentManaged5 | AgentManaged6;
|
|
87371
|
+
/**
|
|
87372
|
+
* Geographic region for model inference. When unset, requests fall through to the
|
|
87373
|
+
* workspace's default_inference_geo.
|
|
87374
|
+
*/
|
|
87375
|
+
inference_geo?: string;
|
|
87376
|
+
/**
|
|
87377
|
+
* Inference speed mode. `fast` provides significantly faster output token
|
|
87378
|
+
* generation at premium pricing. Not all models support `fast`; invalid
|
|
87379
|
+
* combinations are rejected at create time.
|
|
87380
|
+
*/
|
|
87381
|
+
speed?: 'standard' | 'fast';
|
|
87382
|
+
/**
|
|
87383
|
+
* Platform model settings: reasoning (default thinking level) and max_output_tokens (output cap). Other model controls return 400.
|
|
87384
|
+
*/
|
|
87385
|
+
settings?: {
|
|
87386
|
+
/**
|
|
87387
|
+
* Default thinking effort for sessions without an explicit selection. Unsupported defaults fall back to the selected model default.
|
|
87388
|
+
*/
|
|
87389
|
+
reasoning?: 'low' | 'medium' | 'high' | 'xhigh' | 'max' | 'none';
|
|
87390
|
+
/**
|
|
87391
|
+
* 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.
|
|
87392
|
+
*/
|
|
87393
|
+
max_output_tokens?: number;
|
|
87394
|
+
};
|
|
87395
|
+
};
|
|
87396
|
+
/**
|
|
87397
|
+
* 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.
|
|
87398
|
+
*/
|
|
87399
|
+
multiagent?: null | AgentManaged39;
|
|
87400
|
+
/**
|
|
87401
|
+
* Display name of the agent, as set on create or update. It is a label, not a unique key.
|
|
87402
|
+
*/
|
|
87403
|
+
name: string;
|
|
87404
|
+
/**
|
|
87405
|
+
* 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.
|
|
87406
|
+
*/
|
|
87407
|
+
skills: Array<AgentManaged42 | AgentManaged43>;
|
|
87408
|
+
/**
|
|
87409
|
+
* System prompt given to the model at the start of every session of this agent; null when none was set.
|
|
87410
|
+
*/
|
|
87411
|
+
system: null | string;
|
|
87412
|
+
/**
|
|
87413
|
+
* 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.
|
|
87414
|
+
*/
|
|
87415
|
+
tools: Array<AgentManaged44 | AgentManaged54 | AgentManaged57>;
|
|
87416
|
+
/**
|
|
87417
|
+
* Always `agent`. An agent definition.
|
|
87418
|
+
*/
|
|
87419
|
+
type: 'agent';
|
|
87420
|
+
/**
|
|
87421
|
+
* A timestamp in RFC 3339 format
|
|
87422
|
+
*/
|
|
87423
|
+
updated_at: string;
|
|
87424
|
+
/**
|
|
87425
|
+
* Version of this returned configuration. Default retrieve returns the effective version; an explicit version query or a version-history item returns that saved version.
|
|
87426
|
+
*/
|
|
87427
|
+
version: number;
|
|
87428
|
+
/**
|
|
87429
|
+
* Newest saved version number, including an unapplied save. Returned by default retrieve, update and apply; use it for optimistic concurrency when updating.
|
|
87430
|
+
*/
|
|
87431
|
+
latest_version?: number;
|
|
87432
|
+
/**
|
|
87433
|
+
* 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.
|
|
87434
|
+
*/
|
|
87435
|
+
active_version: number;
|
|
87436
|
+
/**
|
|
87437
|
+
* 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.
|
|
87438
|
+
*/
|
|
87439
|
+
created_by: {
|
|
87440
|
+
/**
|
|
87441
|
+
* user denotes a version saved by a signed-in user.
|
|
87442
|
+
*/
|
|
87443
|
+
type: 'user';
|
|
87444
|
+
/**
|
|
87445
|
+
* Authenticated user identifier at the time this version was saved.
|
|
87446
|
+
*/
|
|
87447
|
+
id: string;
|
|
87448
|
+
/**
|
|
87449
|
+
* User display name at save time, omitted when unavailable.
|
|
87450
|
+
*/
|
|
87451
|
+
name?: string;
|
|
87452
|
+
} | {
|
|
87453
|
+
/**
|
|
87454
|
+
* api_key denotes a version saved through an API key.
|
|
87455
|
+
*/
|
|
87456
|
+
type: 'api_key';
|
|
87457
|
+
/**
|
|
87458
|
+
* Authenticated API key identifier, never the key secret.
|
|
87459
|
+
*/
|
|
87460
|
+
id: string;
|
|
87461
|
+
} | null;
|
|
87462
|
+
/**
|
|
87463
|
+
* Change explanation supplied as version_note when this version was saved; null when omitted or for historical versions. Immutable after creation.
|
|
87464
|
+
*/
|
|
87465
|
+
note: string | null;
|
|
87466
|
+
/**
|
|
87467
|
+
* 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.
|
|
87468
|
+
*/
|
|
87469
|
+
deployments_behind: number | null;
|
|
87470
|
+
/**
|
|
87471
|
+
* 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.
|
|
87472
|
+
*/
|
|
87473
|
+
bindings: Array<{
|
|
87474
|
+
/**
|
|
87475
|
+
* Resource type. Decides the id format and the allowed access.
|
|
87476
|
+
*/
|
|
87477
|
+
type: 'database' | 'vector_store' | 'file' | 'media_library' | 'model' | 'workflow' | 'script' | 'repository' | 'browser_context';
|
|
87478
|
+
/**
|
|
87479
|
+
* 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_....
|
|
87480
|
+
*/
|
|
87481
|
+
id: string;
|
|
87482
|
+
/**
|
|
87483
|
+
* 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.
|
|
87484
|
+
*/
|
|
87485
|
+
access: 'read_only' | 'read_write' | 'invoke';
|
|
87486
|
+
/**
|
|
87487
|
+
* 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.
|
|
87488
|
+
*/
|
|
87489
|
+
customer_access?: 'read_only' | 'read_write' | 'invoke';
|
|
87490
|
+
/**
|
|
87491
|
+
* Optional guidance for using this resource, up to 4096 characters; does not expand access.
|
|
87492
|
+
*/
|
|
87493
|
+
instructions?: string;
|
|
87494
|
+
/**
|
|
87495
|
+
* 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.
|
|
87496
|
+
*/
|
|
87497
|
+
readonly verified?: boolean;
|
|
87498
|
+
/**
|
|
87499
|
+
* Whether this binding grants access. Defaults to true; false immediately disables it for running sessions.
|
|
87500
|
+
*/
|
|
87501
|
+
enabled?: boolean;
|
|
87502
|
+
} | {
|
|
87503
|
+
/**
|
|
87504
|
+
* Service type. Opens one service, or one sub-tree of one, to codemode; there is no per-resource id.
|
|
87505
|
+
*/
|
|
87506
|
+
type: 'search' | 'browser' | 'ticket' | 'crm' | 'canvas' | 'cut' | 'studio' | 'feedback' | 'workspace';
|
|
87507
|
+
/**
|
|
87508
|
+
* 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.
|
|
87509
|
+
*/
|
|
87510
|
+
readonly verified?: boolean;
|
|
87511
|
+
/**
|
|
87512
|
+
* Whether the service is open. Defaults to true; false immediately closes it for running sessions.
|
|
87513
|
+
*/
|
|
87514
|
+
enabled?: boolean;
|
|
87515
|
+
}>;
|
|
87516
|
+
/**
|
|
87517
|
+
* 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.
|
|
87518
|
+
*/
|
|
87519
|
+
kind: 'general' | 'service' | 'assume';
|
|
87520
|
+
/**
|
|
87521
|
+
* 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.
|
|
87522
|
+
*/
|
|
87523
|
+
computers?: {
|
|
87524
|
+
/**
|
|
87525
|
+
* Template of the computer the agent's Computer starts on; must be the template of one allowed entry.
|
|
87526
|
+
*/
|
|
87527
|
+
default: string;
|
|
87528
|
+
/**
|
|
87529
|
+
* Computers the agent may switch to with the computer tool's resize, in the order they are listed.
|
|
87530
|
+
*/
|
|
87531
|
+
allowed: Array<{
|
|
87532
|
+
/**
|
|
87533
|
+
* Sandbox template name from sandbox templates.list, such as base, base-large or data. light returns 400. A template appears once.
|
|
87534
|
+
*/
|
|
87535
|
+
template: string;
|
|
87536
|
+
/**
|
|
87537
|
+
* Display name people and the model use, such as Base or Large; unique within the list ignoring case.
|
|
87538
|
+
*/
|
|
87539
|
+
name: string;
|
|
87540
|
+
}>;
|
|
87541
|
+
};
|
|
87542
|
+
/**
|
|
87543
|
+
* ADR-205: which browser the agent drives. {byob: byb_…} names one of your organization's paired browsers (browser.byob.browsers.list), which the agent then drives through connect() instead of a cloud browser; null or absent is the cloud browser. The browser must belong to your organization (otherwise 400) and must grant this agent before a session can open it. Omit on update to keep it, send an object to replace it, or null to go back to the cloud browser. /agent/v1 only.
|
|
86420
87544
|
*/
|
|
86421
|
-
|
|
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: {
|
|
87545
|
+
browser?: {
|
|
86434
87546
|
/**
|
|
86435
|
-
*
|
|
87547
|
+
* A paired browser's id (byb_ and 26 lowercase hex characters), from browser.byob.browsers.list.
|
|
86436
87548
|
*/
|
|
86437
|
-
|
|
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;
|
|
87549
|
+
byob: string;
|
|
86455
87550
|
} | 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
87551
|
/**
|
|
86537
87552
|
* Praxis extension: MA only has session-scoped temporary containers and memory_stores, not durable browsable computers. computer_id selects a tenant-owned active computer. Session selection overrides the agent default; a sandbox environment_id and computer_id cannot be combined. Omitted when no computer is selected.
|
|
86538
87553
|
*/
|
|
@@ -87821,6 +88836,15 @@ export type AgentsVersionsListResponses = {
|
|
|
87821
88836
|
name: string;
|
|
87822
88837
|
}>;
|
|
87823
88838
|
};
|
|
88839
|
+
/**
|
|
88840
|
+
* ADR-205: which browser the agent drives. {byob: byb_…} names one of your organization's paired browsers (browser.byob.browsers.list), which the agent then drives through connect() instead of a cloud browser; null or absent is the cloud browser. The browser must belong to your organization (otherwise 400) and must grant this agent before a session can open it. Omit on update to keep it, send an object to replace it, or null to go back to the cloud browser. /agent/v1 only.
|
|
88841
|
+
*/
|
|
88842
|
+
browser?: {
|
|
88843
|
+
/**
|
|
88844
|
+
* A paired browser's id (byb_ and 26 lowercase hex characters), from browser.byob.browsers.list.
|
|
88845
|
+
*/
|
|
88846
|
+
byob: string;
|
|
88847
|
+
} | null;
|
|
87824
88848
|
/**
|
|
87825
88849
|
* Praxis extension: MA only has session-scoped temporary containers and memory_stores, not durable browsable computers. computer_id selects a tenant-owned active computer. Session selection overrides the agent default; a sandbox environment_id and computer_id cannot be combined. Omitted when no computer is selected.
|
|
87826
88850
|
*/
|