@deepraxis/sdk 0.2.0-dev.6528e7c → 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 +41 -1
- package/dist/generated/index.d.ts +2 -2
- package/dist/generated/index.js +1 -1
- package/dist/generated/sdk.gen.d.ts +57 -3
- package/dist/generated/sdk.gen.js +131 -2
- package/dist/generated/types.gen.d.ts +1620 -477
- 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 +293 -2
- package/dist/resources.generated.d.ts +66 -0
- package/dist/resources.generated.js +25 -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: {
|
|
@@ -10618,6 +10798,10 @@ export type ApplicationCreateWorkerInput = {
|
|
|
10618
10798
|
labels?: {
|
|
10619
10799
|
[key: string]: string;
|
|
10620
10800
|
};
|
|
10801
|
+
/**
|
|
10802
|
+
* Who may open the application on its default host (ADR-206). Only the organization's owner (full authority) may change it; a credential limited to bound resources is refused with PERMISSION_DENIED. A change takes effect within 10 seconds.
|
|
10803
|
+
*/
|
|
10804
|
+
access?: 'public' | 'organization';
|
|
10621
10805
|
};
|
|
10622
10806
|
};
|
|
10623
10807
|
export type ApplicationWorker = {
|
|
@@ -10689,6 +10873,10 @@ export type ApplicationWorker = {
|
|
|
10689
10873
|
labels: {
|
|
10690
10874
|
[key: string]: string;
|
|
10691
10875
|
};
|
|
10876
|
+
/**
|
|
10877
|
+
* Who may open the application on its default host (ADR-206). Only the organization's owner (full authority) may change it; a credential limited to bound resources is refused with PERMISSION_DENIED. A change takes effect within 10 seconds.
|
|
10878
|
+
*/
|
|
10879
|
+
access: 'public' | 'organization';
|
|
10692
10880
|
/**
|
|
10693
10881
|
* When the Worker was deleted.
|
|
10694
10882
|
*/
|
|
@@ -10770,6 +10958,10 @@ export type ApplicationUpdateWorkerInput = {
|
|
|
10770
10958
|
labels?: {
|
|
10771
10959
|
[key: string]: string;
|
|
10772
10960
|
};
|
|
10961
|
+
/**
|
|
10962
|
+
* Who may open the application on its default host (ADR-206). Only the organization's owner (full authority) may change it; a credential limited to bound resources is refused with PERMISSION_DENIED. A change takes effect within 10 seconds.
|
|
10963
|
+
*/
|
|
10964
|
+
access?: 'public' | 'organization';
|
|
10773
10965
|
};
|
|
10774
10966
|
};
|
|
10775
10967
|
export type ApplicationVersionPage = {
|
|
@@ -19553,6 +19745,32 @@ export type DevopsChangeMarkLastSliceRequest = {
|
|
|
19553
19745
|
*/
|
|
19554
19746
|
lastSlice: boolean;
|
|
19555
19747
|
};
|
|
19748
|
+
/**
|
|
19749
|
+
* Where the new slice starts. Every field is optional: with none the slice is cut from the default branch.
|
|
19750
|
+
*/
|
|
19751
|
+
export type DevopsChangeSliceCreateRequest = {
|
|
19752
|
+
/**
|
|
19753
|
+
* Another branch of the same change to cut the slice from, such as feat/run-page-v2--2; omit it to cut from the default branch. A slice cut from a branch is restacked onto the default branch when that branch merges.
|
|
19754
|
+
*/
|
|
19755
|
+
from?: string;
|
|
19756
|
+
};
|
|
19757
|
+
/**
|
|
19758
|
+
* The slice that was opened.
|
|
19759
|
+
*/
|
|
19760
|
+
export type DevopsChangeSliceOpened = {
|
|
19761
|
+
/**
|
|
19762
|
+
* The new slice's branch, <change id>--<n> with n at least 2; commit and push here, and open its pull request with `praxis devops change pr`.
|
|
19763
|
+
*/
|
|
19764
|
+
branch: string;
|
|
19765
|
+
/**
|
|
19766
|
+
* The directory to work in: the slice's git worktree inside the change's workspace. It exists at once when the workspace is already running, otherwise once the workspace is available.
|
|
19767
|
+
*/
|
|
19768
|
+
directory: string;
|
|
19769
|
+
/**
|
|
19770
|
+
* The id of the change's workspace that holds the slice (wsu_…), usable with the units methods; this call opened it when the change had none live.
|
|
19771
|
+
*/
|
|
19772
|
+
unit: string;
|
|
19773
|
+
};
|
|
19556
19774
|
/**
|
|
19557
19775
|
* What the pull request says. Every field is optional: without a title the change's own title is used.
|
|
19558
19776
|
*/
|
|
@@ -19569,6 +19787,10 @@ export type DevopsChangeOpenPullRequestRequest = {
|
|
|
19569
19787
|
* Open it as a draft. Defaults to false.
|
|
19570
19788
|
*/
|
|
19571
19789
|
draft?: boolean;
|
|
19790
|
+
/**
|
|
19791
|
+
* The branch the pull request is opened from, for a later slice of the change: <change id>--<n>, as `slices.create` answered it; omit it for the change's own branch. A branch that belongs to another change is refused with INVALID_ARGUMENT.
|
|
19792
|
+
*/
|
|
19793
|
+
head?: string;
|
|
19572
19794
|
};
|
|
19573
19795
|
/**
|
|
19574
19796
|
* The pull request for a change's branch.
|
|
@@ -51993,6 +52215,10 @@ export type DevopsLockId = string;
|
|
|
51993
52215
|
* The change's id, which is its branch name <type>/<slug> from a change list or create answer. Give it as it comes back — `feat/run-page-v2`: the SDK and the CLI encode the slash themselves, and an id that is already percent-encoded is encoded a second time and answers CHANGE_NOT_FOUND. Only a caller writing the HTTP request by hand sends feat%2Frun-page-v2.
|
|
51994
52216
|
*/
|
|
51995
52217
|
export type DevopsChangeIdPath = string;
|
|
52218
|
+
/**
|
|
52219
|
+
* The change whose slice you are opening: its id, which is its branch name <type>/<slug> from a change list or create answer. Give it as it comes back — `feat/run-page-v2`; the SDK and the CLI encode the slash themselves.
|
|
52220
|
+
*/
|
|
52221
|
+
export type DevopsChangePathParam = string;
|
|
51996
52222
|
/**
|
|
51997
52223
|
* The pull request's platform id (pr_…) from a pull request list, not GitHub's pull request number; the retrieve, rerunGate, merge and recordVerdict calls all address the pull request by it.
|
|
51998
52224
|
*/
|
|
@@ -54081,6 +54307,86 @@ export type ListAgentInboxLettersResponses = {
|
|
|
54081
54307
|
};
|
|
54082
54308
|
};
|
|
54083
54309
|
export type ListAgentInboxLettersResponse = ListAgentInboxLettersResponses[keyof ListAgentInboxLettersResponses];
|
|
54310
|
+
export type ListAgentDeviceLocalSessionsData = {
|
|
54311
|
+
body?: never;
|
|
54312
|
+
path: {
|
|
54313
|
+
/**
|
|
54314
|
+
* The BYOA agent: its agent_… id, eight character identity number or handle, from agents.list; resolved in your organization. Also accepts an 8-character identity number (0–9, A–Z); malformed, absent and foreign references return 404, and response ids always use agent_….
|
|
54315
|
+
*/
|
|
54316
|
+
agent_id: string;
|
|
54317
|
+
/**
|
|
54318
|
+
* The paired desktop device (byd_ and 26 hex characters) whose sessions to list; you must be the person who paired it.
|
|
54319
|
+
*/
|
|
54320
|
+
device_id: string;
|
|
54321
|
+
};
|
|
54322
|
+
query: {
|
|
54323
|
+
/**
|
|
54324
|
+
* The absolute directory on the device, exactly as the device registered it and bound it to this agent.
|
|
54325
|
+
*/
|
|
54326
|
+
cwd: string;
|
|
54327
|
+
/**
|
|
54328
|
+
* The next_cursor of the previous page; leave it out for the first page.
|
|
54329
|
+
*/
|
|
54330
|
+
cursor?: string;
|
|
54331
|
+
};
|
|
54332
|
+
url: '/agent/v1/agents/{agent_id}/devices/{device_id}/local-sessions';
|
|
54333
|
+
};
|
|
54334
|
+
export type ListAgentDeviceLocalSessionsErrors = {
|
|
54335
|
+
/**
|
|
54336
|
+
* INVALID_PARAMS: cwd is missing, not absolute or not bound to this agent on that device, the device is not one you paired, or a query parameter is unsupported; ASSUME_AGENT_REQUIRED: the agent is not a BYOA agent.
|
|
54337
|
+
*/
|
|
54338
|
+
400: unknown;
|
|
54339
|
+
/**
|
|
54340
|
+
* Authenticate with your own API key or a console session; an agent's or robot's credential cannot list a person's device.
|
|
54341
|
+
*/
|
|
54342
|
+
401: unknown;
|
|
54343
|
+
/**
|
|
54344
|
+
* permission_error: the credential's role or bound resources do not allow this operation. Use a key with access to the agent domain and its resources.
|
|
54345
|
+
*/
|
|
54346
|
+
403: AgentError;
|
|
54347
|
+
/**
|
|
54348
|
+
* AGENT_NOT_FOUND: no agent with this reference exists in your organization; list agents with agents.list.
|
|
54349
|
+
*/
|
|
54350
|
+
404: unknown;
|
|
54351
|
+
/**
|
|
54352
|
+
* DEVICE_NOT_READY: the device is offline; retry once it is connected. DEVICE_TIMEOUT (504) means it is connected but did not answer in time.
|
|
54353
|
+
*/
|
|
54354
|
+
503: unknown;
|
|
54355
|
+
};
|
|
54356
|
+
export type ListAgentDeviceLocalSessionsError = ListAgentDeviceLocalSessionsErrors[keyof ListAgentDeviceLocalSessionsErrors];
|
|
54357
|
+
export type ListAgentDeviceLocalSessionsResponses = {
|
|
54358
|
+
/**
|
|
54359
|
+
* One page of the device's sessions for that directory, newest first.
|
|
54360
|
+
*/
|
|
54361
|
+
200: {
|
|
54362
|
+
/**
|
|
54363
|
+
* The sessions of this page; empty when the directory has none.
|
|
54364
|
+
*/
|
|
54365
|
+
data: Array<{
|
|
54366
|
+
/**
|
|
54367
|
+
* The Claude Code session id on the device; pass it as runtime.resume_session_id when creating a session to continue it.
|
|
54368
|
+
*/
|
|
54369
|
+
id: string;
|
|
54370
|
+
/**
|
|
54371
|
+
* The session's title as Claude Code shows it; empty when it has none.
|
|
54372
|
+
*/
|
|
54373
|
+
title: string;
|
|
54374
|
+
/**
|
|
54375
|
+
* When the session was last written to, RFC 3339; sessions are ordered newest first.
|
|
54376
|
+
*/
|
|
54377
|
+
updated_at: string | null;
|
|
54378
|
+
/**
|
|
54379
|
+
* The directory the session ran in on the device.
|
|
54380
|
+
*/
|
|
54381
|
+
cwd: string | null;
|
|
54382
|
+
}>;
|
|
54383
|
+
/**
|
|
54384
|
+
* Pass as cursor for the next page; null on the last page.
|
|
54385
|
+
*/
|
|
54386
|
+
next_cursor: string | null;
|
|
54387
|
+
};
|
|
54388
|
+
};
|
|
54389
|
+
export type ListAgentDeviceLocalSessionsResponse = ListAgentDeviceLocalSessionsResponses[keyof ListAgentDeviceLocalSessionsResponses];
|
|
54084
54390
|
export type CreateAgentLoginIntentData = {
|
|
54085
54391
|
body?: never;
|
|
54086
54392
|
path?: never;
|
|
@@ -54981,6 +55287,15 @@ export type ApplyAgentVersionResponses = {
|
|
|
54981
55287
|
name: string;
|
|
54982
55288
|
}>;
|
|
54983
55289
|
};
|
|
55290
|
+
/**
|
|
55291
|
+
* ADR-205: which browser the agent drives. {byob: byb_…} names one of your organization's paired browsers (browser.byob.browsers.list), which the agent then drives through connect() instead of a cloud browser; null or absent is the cloud browser. The browser must belong to your organization (otherwise 400) and must grant this agent before a session can open it. Omit on update to keep it, send an object to replace it, or null to go back to the cloud browser. /agent/v1 only.
|
|
55292
|
+
*/
|
|
55293
|
+
browser?: {
|
|
55294
|
+
/**
|
|
55295
|
+
* A paired browser's id (byb_ and 26 lowercase hex characters), from browser.byob.browsers.list.
|
|
55296
|
+
*/
|
|
55297
|
+
byob: string;
|
|
55298
|
+
} | null;
|
|
54984
55299
|
/**
|
|
54985
55300
|
* Praxis extension: MA only has session-scoped temporary containers and memory_stores, not durable browsable computers. computer_id selects a tenant-owned active computer. Session selection overrides the agent default; a sandbox environment_id and computer_id cannot be combined. Omitted when no computer is selected.
|
|
54986
55301
|
*/
|
|
@@ -56232,6 +56547,15 @@ export type UnarchiveAgentResponses = {
|
|
|
56232
56547
|
name: string;
|
|
56233
56548
|
}>;
|
|
56234
56549
|
};
|
|
56550
|
+
/**
|
|
56551
|
+
* ADR-205: which browser the agent drives. {byob: byb_…} names one of your organization's paired browsers (browser.byob.browsers.list), which the agent then drives through connect() instead of a cloud browser; null or absent is the cloud browser. The browser must belong to your organization (otherwise 400) and must grant this agent before a session can open it. Omit on update to keep it, send an object to replace it, or null to go back to the cloud browser. /agent/v1 only.
|
|
56552
|
+
*/
|
|
56553
|
+
browser?: {
|
|
56554
|
+
/**
|
|
56555
|
+
* A paired browser's id (byb_ and 26 lowercase hex characters), from browser.byob.browsers.list.
|
|
56556
|
+
*/
|
|
56557
|
+
byob: string;
|
|
56558
|
+
} | null;
|
|
56235
56559
|
/**
|
|
56236
56560
|
* Praxis extension: MA only has session-scoped temporary containers and memory_stores, not durable browsable computers. computer_id selects a tenant-owned active computer. Session selection overrides the agent default; a sandbox environment_id and computer_id cannot be combined. Omitted when no computer is selected.
|
|
56237
56561
|
*/
|
|
@@ -68862,94 +69186,21 @@ export type BrowserListSessionsErrors = {
|
|
|
68862
69186
|
*/
|
|
68863
69187
|
402: BrowserError;
|
|
68864
69188
|
/**
|
|
68865
|
-
* PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
|
|
69189
|
+
* PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
|
|
68866
69190
|
*/
|
|
68867
69191
|
403: BrowserError;
|
|
68868
69192
|
/**
|
|
68869
|
-
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
69193
|
+
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
68870
69194
|
*/
|
|
68871
69195
|
404: BrowserError;
|
|
68872
69196
|
/**
|
|
68873
|
-
* SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
69197
|
+
* SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
68874
69198
|
*/
|
|
68875
69199
|
409: BrowserError;
|
|
68876
69200
|
/**
|
|
68877
|
-
*
|
|
68878
|
-
*/
|
|
68879
|
-
413: BrowserError;
|
|
68880
|
-
/**
|
|
68881
|
-
* CONCURRENCY_LIMIT / RATE_LIMITED / PROVIDER_CAPACITY
|
|
68882
|
-
*/
|
|
68883
|
-
429: BrowserError;
|
|
68884
|
-
/**
|
|
68885
|
-
* INTERNAL
|
|
68886
|
-
*/
|
|
68887
|
-
500: BrowserError;
|
|
68888
|
-
/**
|
|
68889
|
-
* NOT_IMPLEMENTED / PROVIDER_UNSUPPORTED
|
|
68890
|
-
*/
|
|
68891
|
-
501: BrowserError;
|
|
68892
|
-
/**
|
|
68893
|
-
* PROVIDER_FAILED
|
|
68894
|
-
*/
|
|
68895
|
-
502: BrowserError;
|
|
68896
|
-
/**
|
|
68897
|
-
* SERVICE_UNAVAILABLE
|
|
68898
|
-
*/
|
|
68899
|
-
503: BrowserError;
|
|
68900
|
-
/**
|
|
68901
|
-
* ACTION_TIMEOUT
|
|
68902
|
-
*/
|
|
68903
|
-
504: BrowserError;
|
|
68904
|
-
};
|
|
68905
|
-
export type BrowserListSessionsError = BrowserListSessionsErrors[keyof BrowserListSessionsErrors];
|
|
68906
|
-
export type BrowserListSessionsResponses = {
|
|
68907
|
-
/**
|
|
68908
|
-
* 分页查询结果,包含本页记录和下一页游标。
|
|
68909
|
-
*/
|
|
68910
|
-
200: {
|
|
68911
|
-
/**
|
|
68912
|
-
* 本页查询匹配的记录;没有匹配项时为空数组。
|
|
68913
|
-
*/
|
|
68914
|
-
data: Array<BrowserSession>;
|
|
68915
|
-
/**
|
|
68916
|
-
* 下一页游标;原样传入 cursor,null 表示没有更多结果。
|
|
68917
|
-
*/
|
|
68918
|
-
nextCursor: string | null;
|
|
68919
|
-
};
|
|
68920
|
-
};
|
|
68921
|
-
export type BrowserListSessionsResponse = BrowserListSessionsResponses[keyof BrowserListSessionsResponses];
|
|
68922
|
-
export type BrowserCreateSessionData = {
|
|
68923
|
-
body: BrowserSessionCreateParams;
|
|
68924
|
-
path?: never;
|
|
68925
|
-
query?: never;
|
|
68926
|
-
url: '/browser/v1/sessions';
|
|
68927
|
-
};
|
|
68928
|
-
export type BrowserCreateSessionErrors = {
|
|
68929
|
-
/**
|
|
68930
|
-
* INVALID_PARAMS / INVALID_FILTER / INVALID_PAGE_TOKEN
|
|
68931
|
-
*/
|
|
68932
|
-
400: BrowserError;
|
|
68933
|
-
/**
|
|
68934
|
-
* UNAUTHENTICATED / CONNECT_SIGNATURE_INVALID
|
|
69201
|
+
* BROWSER_REVOKED
|
|
68935
69202
|
*/
|
|
68936
|
-
|
|
68937
|
-
/**
|
|
68938
|
-
* INSUFFICIENT_BALANCE / QUOTA_EXHAUSTED
|
|
68939
|
-
*/
|
|
68940
|
-
402: BrowserError;
|
|
68941
|
-
/**
|
|
68942
|
-
* PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
|
|
68943
|
-
*/
|
|
68944
|
-
403: BrowserError;
|
|
68945
|
-
/**
|
|
68946
|
-
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
68947
|
-
*/
|
|
68948
|
-
404: BrowserError;
|
|
68949
|
-
/**
|
|
68950
|
-
* SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
68951
|
-
*/
|
|
68952
|
-
409: BrowserError;
|
|
69203
|
+
410: BrowserError;
|
|
68953
69204
|
/**
|
|
68954
69205
|
* ACTION_RESULT_TOO_LARGE
|
|
68955
69206
|
*/
|
|
@@ -68971,7 +69222,88 @@ export type BrowserCreateSessionErrors = {
|
|
|
68971
69222
|
*/
|
|
68972
69223
|
502: BrowserError;
|
|
68973
69224
|
/**
|
|
68974
|
-
* SERVICE_UNAVAILABLE
|
|
69225
|
+
* BROWSER_OFFLINE / SERVICE_UNAVAILABLE
|
|
69226
|
+
*/
|
|
69227
|
+
503: BrowserError;
|
|
69228
|
+
/**
|
|
69229
|
+
* ACTION_TIMEOUT
|
|
69230
|
+
*/
|
|
69231
|
+
504: BrowserError;
|
|
69232
|
+
};
|
|
69233
|
+
export type BrowserListSessionsError = BrowserListSessionsErrors[keyof BrowserListSessionsErrors];
|
|
69234
|
+
export type BrowserListSessionsResponses = {
|
|
69235
|
+
/**
|
|
69236
|
+
* 分页查询结果,包含本页记录和下一页游标。
|
|
69237
|
+
*/
|
|
69238
|
+
200: {
|
|
69239
|
+
/**
|
|
69240
|
+
* 本页查询匹配的记录;没有匹配项时为空数组。
|
|
69241
|
+
*/
|
|
69242
|
+
data: Array<BrowserSession>;
|
|
69243
|
+
/**
|
|
69244
|
+
* 下一页游标;原样传入 cursor,null 表示没有更多结果。
|
|
69245
|
+
*/
|
|
69246
|
+
nextCursor: string | null;
|
|
69247
|
+
};
|
|
69248
|
+
};
|
|
69249
|
+
export type BrowserListSessionsResponse = BrowserListSessionsResponses[keyof BrowserListSessionsResponses];
|
|
69250
|
+
export type BrowserCreateSessionData = {
|
|
69251
|
+
body: BrowserSessionCreateParams;
|
|
69252
|
+
path?: never;
|
|
69253
|
+
query?: never;
|
|
69254
|
+
url: '/browser/v1/sessions';
|
|
69255
|
+
};
|
|
69256
|
+
export type BrowserCreateSessionErrors = {
|
|
69257
|
+
/**
|
|
69258
|
+
* INVALID_PARAMS / INVALID_FILTER / INVALID_PAGE_TOKEN
|
|
69259
|
+
*/
|
|
69260
|
+
400: BrowserError;
|
|
69261
|
+
/**
|
|
69262
|
+
* UNAUTHENTICATED / CONNECT_SIGNATURE_INVALID
|
|
69263
|
+
*/
|
|
69264
|
+
401: BrowserError;
|
|
69265
|
+
/**
|
|
69266
|
+
* INSUFFICIENT_BALANCE / QUOTA_EXHAUSTED
|
|
69267
|
+
*/
|
|
69268
|
+
402: BrowserError;
|
|
69269
|
+
/**
|
|
69270
|
+
* PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
|
|
69271
|
+
*/
|
|
69272
|
+
403: BrowserError;
|
|
69273
|
+
/**
|
|
69274
|
+
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
69275
|
+
*/
|
|
69276
|
+
404: BrowserError;
|
|
69277
|
+
/**
|
|
69278
|
+
* SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
69279
|
+
*/
|
|
69280
|
+
409: BrowserError;
|
|
69281
|
+
/**
|
|
69282
|
+
* BROWSER_REVOKED
|
|
69283
|
+
*/
|
|
69284
|
+
410: BrowserError;
|
|
69285
|
+
/**
|
|
69286
|
+
* ACTION_RESULT_TOO_LARGE
|
|
69287
|
+
*/
|
|
69288
|
+
413: BrowserError;
|
|
69289
|
+
/**
|
|
69290
|
+
* CONCURRENCY_LIMIT / RATE_LIMITED / PROVIDER_CAPACITY
|
|
69291
|
+
*/
|
|
69292
|
+
429: BrowserError;
|
|
69293
|
+
/**
|
|
69294
|
+
* INTERNAL
|
|
69295
|
+
*/
|
|
69296
|
+
500: BrowserError;
|
|
69297
|
+
/**
|
|
69298
|
+
* NOT_IMPLEMENTED / PROVIDER_UNSUPPORTED
|
|
69299
|
+
*/
|
|
69300
|
+
501: BrowserError;
|
|
69301
|
+
/**
|
|
69302
|
+
* PROVIDER_FAILED
|
|
69303
|
+
*/
|
|
69304
|
+
502: BrowserError;
|
|
69305
|
+
/**
|
|
69306
|
+
* BROWSER_OFFLINE / SERVICE_UNAVAILABLE
|
|
68975
69307
|
*/
|
|
68976
69308
|
503: BrowserError;
|
|
68977
69309
|
/**
|
|
@@ -68981,6 +69313,10 @@ export type BrowserCreateSessionErrors = {
|
|
|
68981
69313
|
};
|
|
68982
69314
|
export type BrowserCreateSessionError = BrowserCreateSessionErrors[keyof BrowserCreateSessionErrors];
|
|
68983
69315
|
export type BrowserCreateSessionResponses = {
|
|
69316
|
+
/**
|
|
69317
|
+
* 请求成功。
|
|
69318
|
+
*/
|
|
69319
|
+
200: BrowserSessionCreateResult;
|
|
68984
69320
|
/**
|
|
68985
69321
|
* 请求成功。
|
|
68986
69322
|
*/
|
|
@@ -69017,17 +69353,21 @@ export type BrowserGetSessionErrors = {
|
|
|
69017
69353
|
*/
|
|
69018
69354
|
402: BrowserError;
|
|
69019
69355
|
/**
|
|
69020
|
-
* PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
|
|
69356
|
+
* PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
|
|
69021
69357
|
*/
|
|
69022
69358
|
403: BrowserError;
|
|
69023
69359
|
/**
|
|
69024
|
-
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
69360
|
+
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
69025
69361
|
*/
|
|
69026
69362
|
404: BrowserError;
|
|
69027
69363
|
/**
|
|
69028
|
-
* SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
69364
|
+
* SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
69029
69365
|
*/
|
|
69030
69366
|
409: BrowserError;
|
|
69367
|
+
/**
|
|
69368
|
+
* BROWSER_REVOKED
|
|
69369
|
+
*/
|
|
69370
|
+
410: BrowserError;
|
|
69031
69371
|
/**
|
|
69032
69372
|
* ACTION_RESULT_TOO_LARGE
|
|
69033
69373
|
*/
|
|
@@ -69049,7 +69389,7 @@ export type BrowserGetSessionErrors = {
|
|
|
69049
69389
|
*/
|
|
69050
69390
|
502: BrowserError;
|
|
69051
69391
|
/**
|
|
69052
|
-
* SERVICE_UNAVAILABLE
|
|
69392
|
+
* BROWSER_OFFLINE / SERVICE_UNAVAILABLE
|
|
69053
69393
|
*/
|
|
69054
69394
|
503: BrowserError;
|
|
69055
69395
|
/**
|
|
@@ -69095,17 +69435,21 @@ export type BrowserCloseSessionErrors = {
|
|
|
69095
69435
|
*/
|
|
69096
69436
|
402: BrowserError;
|
|
69097
69437
|
/**
|
|
69098
|
-
* PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
|
|
69438
|
+
* PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
|
|
69099
69439
|
*/
|
|
69100
69440
|
403: BrowserError;
|
|
69101
69441
|
/**
|
|
69102
|
-
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
69442
|
+
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
69103
69443
|
*/
|
|
69104
69444
|
404: BrowserError;
|
|
69105
69445
|
/**
|
|
69106
|
-
* SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
69446
|
+
* SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
69107
69447
|
*/
|
|
69108
69448
|
409: BrowserError;
|
|
69449
|
+
/**
|
|
69450
|
+
* BROWSER_REVOKED
|
|
69451
|
+
*/
|
|
69452
|
+
410: BrowserError;
|
|
69109
69453
|
/**
|
|
69110
69454
|
* ACTION_RESULT_TOO_LARGE
|
|
69111
69455
|
*/
|
|
@@ -69127,7 +69471,7 @@ export type BrowserCloseSessionErrors = {
|
|
|
69127
69471
|
*/
|
|
69128
69472
|
502: BrowserError;
|
|
69129
69473
|
/**
|
|
69130
|
-
* SERVICE_UNAVAILABLE
|
|
69474
|
+
* BROWSER_OFFLINE / SERVICE_UNAVAILABLE
|
|
69131
69475
|
*/
|
|
69132
69476
|
503: BrowserError;
|
|
69133
69477
|
/**
|
|
@@ -69168,17 +69512,21 @@ export type BrowserGetDebugErrors = {
|
|
|
69168
69512
|
*/
|
|
69169
69513
|
402: BrowserError;
|
|
69170
69514
|
/**
|
|
69171
|
-
* PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
|
|
69515
|
+
* PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
|
|
69172
69516
|
*/
|
|
69173
69517
|
403: BrowserError;
|
|
69174
69518
|
/**
|
|
69175
|
-
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
69519
|
+
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
69176
69520
|
*/
|
|
69177
69521
|
404: BrowserError;
|
|
69178
69522
|
/**
|
|
69179
|
-
* SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
69523
|
+
* SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
69180
69524
|
*/
|
|
69181
69525
|
409: BrowserError;
|
|
69526
|
+
/**
|
|
69527
|
+
* BROWSER_REVOKED
|
|
69528
|
+
*/
|
|
69529
|
+
410: BrowserError;
|
|
69182
69530
|
/**
|
|
69183
69531
|
* ACTION_RESULT_TOO_LARGE
|
|
69184
69532
|
*/
|
|
@@ -69200,7 +69548,7 @@ export type BrowserGetDebugErrors = {
|
|
|
69200
69548
|
*/
|
|
69201
69549
|
502: BrowserError;
|
|
69202
69550
|
/**
|
|
69203
|
-
* SERVICE_UNAVAILABLE
|
|
69551
|
+
* BROWSER_OFFLINE / SERVICE_UNAVAILABLE
|
|
69204
69552
|
*/
|
|
69205
69553
|
503: BrowserError;
|
|
69206
69554
|
/**
|
|
@@ -69254,17 +69602,21 @@ export type BrowserListEventsErrors = {
|
|
|
69254
69602
|
*/
|
|
69255
69603
|
402: BrowserError;
|
|
69256
69604
|
/**
|
|
69257
|
-
* PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
|
|
69605
|
+
* PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
|
|
69258
69606
|
*/
|
|
69259
69607
|
403: BrowserError;
|
|
69260
69608
|
/**
|
|
69261
|
-
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
69609
|
+
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
69262
69610
|
*/
|
|
69263
69611
|
404: BrowserError;
|
|
69264
69612
|
/**
|
|
69265
|
-
* SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
69613
|
+
* SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
69266
69614
|
*/
|
|
69267
69615
|
409: BrowserError;
|
|
69616
|
+
/**
|
|
69617
|
+
* BROWSER_REVOKED
|
|
69618
|
+
*/
|
|
69619
|
+
410: BrowserError;
|
|
69268
69620
|
/**
|
|
69269
69621
|
* ACTION_RESULT_TOO_LARGE
|
|
69270
69622
|
*/
|
|
@@ -69286,7 +69638,7 @@ export type BrowserListEventsErrors = {
|
|
|
69286
69638
|
*/
|
|
69287
69639
|
502: BrowserError;
|
|
69288
69640
|
/**
|
|
69289
|
-
* SERVICE_UNAVAILABLE
|
|
69641
|
+
* BROWSER_OFFLINE / SERVICE_UNAVAILABLE
|
|
69290
69642
|
*/
|
|
69291
69643
|
503: BrowserError;
|
|
69292
69644
|
/**
|
|
@@ -69533,235 +69885,21 @@ export type BrowserRunPageActionErrors = {
|
|
|
69533
69885
|
*/
|
|
69534
69886
|
402: BrowserError;
|
|
69535
69887
|
/**
|
|
69536
|
-
* PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
|
|
69888
|
+
* PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
|
|
69537
69889
|
*/
|
|
69538
69890
|
403: BrowserError;
|
|
69539
69891
|
/**
|
|
69540
|
-
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
69892
|
+
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
69541
69893
|
*/
|
|
69542
69894
|
404: BrowserError;
|
|
69543
69895
|
/**
|
|
69544
|
-
* SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
69896
|
+
* SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
69545
69897
|
*/
|
|
69546
69898
|
409: BrowserError;
|
|
69547
69899
|
/**
|
|
69548
|
-
*
|
|
69549
|
-
*/
|
|
69550
|
-
413: BrowserError;
|
|
69551
|
-
/**
|
|
69552
|
-
* CONCURRENCY_LIMIT / RATE_LIMITED / PROVIDER_CAPACITY
|
|
69553
|
-
*/
|
|
69554
|
-
429: BrowserError;
|
|
69555
|
-
/**
|
|
69556
|
-
* INTERNAL
|
|
69557
|
-
*/
|
|
69558
|
-
500: BrowserError;
|
|
69559
|
-
/**
|
|
69560
|
-
* NOT_IMPLEMENTED / PROVIDER_UNSUPPORTED
|
|
69561
|
-
*/
|
|
69562
|
-
501: BrowserError;
|
|
69563
|
-
/**
|
|
69564
|
-
* PROVIDER_FAILED
|
|
69565
|
-
*/
|
|
69566
|
-
502: BrowserError;
|
|
69567
|
-
/**
|
|
69568
|
-
* SERVICE_UNAVAILABLE
|
|
69569
|
-
*/
|
|
69570
|
-
503: BrowserError;
|
|
69571
|
-
/**
|
|
69572
|
-
* ACTION_TIMEOUT
|
|
69573
|
-
*/
|
|
69574
|
-
504: BrowserError;
|
|
69575
|
-
};
|
|
69576
|
-
export type BrowserRunPageActionError = BrowserRunPageActionErrors[keyof BrowserRunPageActionErrors];
|
|
69577
|
-
export type BrowserRunPageActionResponses = {
|
|
69578
|
-
/**
|
|
69579
|
-
* 请求成功。
|
|
69580
|
-
*/
|
|
69581
|
-
200: {
|
|
69582
|
-
/**
|
|
69583
|
-
* 这次执行的动作类型,与请求的 type 相同。
|
|
69584
|
-
*/
|
|
69585
|
-
type: 'open' | 'click' | 'fill' | 'press' | 'scroll' | 'back' | 'forward' | 'reload';
|
|
69586
|
-
/**
|
|
69587
|
-
* 动作作用的标签页 ID,可在后续动作的 tab 里使用。
|
|
69588
|
-
*/
|
|
69589
|
-
tab: string;
|
|
69590
|
-
/**
|
|
69591
|
-
* 动作完成后该标签页的地址。
|
|
69592
|
-
*/
|
|
69593
|
-
url: string;
|
|
69594
|
-
/**
|
|
69595
|
-
* 动作完成后该标签页的标题,页面没有标题时为空字符串。
|
|
69596
|
-
*/
|
|
69597
|
-
title: string;
|
|
69598
|
-
} | {
|
|
69599
|
-
/**
|
|
69600
|
-
* 动作类型,固定为 select。
|
|
69601
|
-
*/
|
|
69602
|
-
type: 'select';
|
|
69603
|
-
/**
|
|
69604
|
-
* 动作作用的标签页 ID,可在后续动作的 tab 里使用。
|
|
69605
|
-
*/
|
|
69606
|
-
tab: string;
|
|
69607
|
-
/**
|
|
69608
|
-
* 这次选中的 option 的 value,按它们在下拉框中出现的顺序;单选下拉框最多一项。
|
|
69609
|
-
*/
|
|
69610
|
-
values: Array<string>;
|
|
69611
|
-
} | {
|
|
69612
|
-
/**
|
|
69613
|
-
* 动作类型,固定为 tabs.list。
|
|
69614
|
-
*/
|
|
69615
|
-
type: 'tabs.list';
|
|
69616
|
-
/**
|
|
69617
|
-
* 会话里所有打开的标签页。
|
|
69618
|
-
*/
|
|
69619
|
-
tabs: Array<{
|
|
69620
|
-
/**
|
|
69621
|
-
* 标签页 ID,可在动作的 tab 里使用。
|
|
69622
|
-
*/
|
|
69623
|
-
id: string;
|
|
69624
|
-
/**
|
|
69625
|
-
* 标签页当前地址。
|
|
69626
|
-
*/
|
|
69627
|
-
url: string;
|
|
69628
|
-
/**
|
|
69629
|
-
* 标签页当前标题。
|
|
69630
|
-
*/
|
|
69631
|
-
title: string;
|
|
69632
|
-
/**
|
|
69633
|
-
* 是否为当前标签页,省略 tab 的动作作用于它。
|
|
69634
|
-
*/
|
|
69635
|
-
active: boolean;
|
|
69636
|
-
}>;
|
|
69637
|
-
} | {
|
|
69638
|
-
/**
|
|
69639
|
-
* 动作类型,固定为 snapshot。
|
|
69640
|
-
*/
|
|
69641
|
-
type: 'snapshot';
|
|
69642
|
-
/**
|
|
69643
|
-
* 动作作用的标签页 ID,可在后续动作的 tab 里使用。
|
|
69644
|
-
*/
|
|
69645
|
-
tab: string;
|
|
69646
|
-
/**
|
|
69647
|
-
* 动作完成后该标签页的地址。
|
|
69648
|
-
*/
|
|
69649
|
-
url: string;
|
|
69650
|
-
/**
|
|
69651
|
-
* 动作完成后该标签页的标题,页面没有标题时为空字符串。
|
|
69652
|
-
*/
|
|
69653
|
-
title: string;
|
|
69654
|
-
/**
|
|
69655
|
-
* 页面的 ARIA 快照文本,每行一个元素,可操作的元素带 [ref=eN]。
|
|
69656
|
-
*/
|
|
69657
|
-
snapshot: string;
|
|
69658
|
-
/**
|
|
69659
|
-
* 这份快照里分配出去的 ref 个数。
|
|
69660
|
-
*/
|
|
69661
|
-
refs: number;
|
|
69662
|
-
/**
|
|
69663
|
-
* 快照超过 200000 个字符被截断时为 true。
|
|
69664
|
-
*/
|
|
69665
|
-
truncated: boolean;
|
|
69666
|
-
} | {
|
|
69667
|
-
/**
|
|
69668
|
-
* 动作类型,固定为 screenshot。
|
|
69669
|
-
*/
|
|
69670
|
-
type: 'screenshot';
|
|
69671
|
-
/**
|
|
69672
|
-
* 动作作用的标签页 ID,可在后续动作的 tab 里使用。
|
|
69673
|
-
*/
|
|
69674
|
-
tab: string;
|
|
69675
|
-
/**
|
|
69676
|
-
* 图片格式,固定为 image/png。
|
|
69677
|
-
*/
|
|
69678
|
-
mediaType: 'image/png';
|
|
69679
|
-
/**
|
|
69680
|
-
* PNG 图片的 base64 编码;解码后最多 5 MiB。
|
|
69681
|
-
*/
|
|
69682
|
-
data: string;
|
|
69683
|
-
/**
|
|
69684
|
-
* 图片 base64 解码后的字节数。
|
|
69685
|
-
*/
|
|
69686
|
-
bytes: number;
|
|
69687
|
-
} | {
|
|
69688
|
-
/**
|
|
69689
|
-
* 动作类型,固定为 evaluate。
|
|
69690
|
-
*/
|
|
69691
|
-
type: 'evaluate';
|
|
69692
|
-
/**
|
|
69693
|
-
* 动作作用的标签页 ID,可在后续动作的 tab 里使用。
|
|
69694
|
-
*/
|
|
69695
|
-
tab: string;
|
|
69696
|
-
/**
|
|
69697
|
-
* 表达式的结果,按 JSON 返回;序列化后最多 64000 个字符。
|
|
69698
|
-
*/
|
|
69699
|
-
value: unknown;
|
|
69700
|
-
} | {
|
|
69701
|
-
/**
|
|
69702
|
-
* 动作类型,固定为 set_cookie。
|
|
69703
|
-
*/
|
|
69704
|
-
type: 'set_cookie';
|
|
69705
|
-
/**
|
|
69706
|
-
* 动作作用的标签页 ID,可在后续动作的 tab 里使用。
|
|
69707
|
-
*/
|
|
69708
|
-
tab: string;
|
|
69709
|
-
/**
|
|
69710
|
-
* 已设置的 cookie 名称。
|
|
69711
|
-
*/
|
|
69712
|
-
name: string;
|
|
69713
|
-
/**
|
|
69714
|
-
* 已设置的 cookie 的域。
|
|
69715
|
-
*/
|
|
69716
|
-
domain: string;
|
|
69717
|
-
};
|
|
69718
|
-
};
|
|
69719
|
-
export type BrowserRunPageActionResponse = BrowserRunPageActionResponses[keyof BrowserRunPageActionResponses];
|
|
69720
|
-
export type BrowserRequestHandoffData = {
|
|
69721
|
-
body: {
|
|
69722
|
-
/**
|
|
69723
|
-
* 交给人工操作者的接管说明,可为空字符串。
|
|
69724
|
-
*/
|
|
69725
|
-
message: string;
|
|
69726
|
-
/**
|
|
69727
|
-
* 接管请求有效时长,单位为毫秒;必须大于 0,可含小数。超过 3600000(60 分钟)的按 60 分钟算,返回事件里的到期时刻就是实际值。接管未完成、未到期期间,会话不按空闲回收;接管结束后重新开始计空闲。
|
|
69728
|
-
*/
|
|
69729
|
-
timeoutMs?: number;
|
|
69730
|
-
};
|
|
69731
|
-
path: {
|
|
69732
|
-
/**
|
|
69733
|
-
* 浏览器会话 ID;使用创建或列出会话返回的 id,以 bss_ 开头。
|
|
69734
|
-
*/
|
|
69735
|
-
sessionId: string;
|
|
69736
|
-
};
|
|
69737
|
-
query?: never;
|
|
69738
|
-
url: '/browser/v1/sessions/{sessionId}/handoff';
|
|
69739
|
-
};
|
|
69740
|
-
export type BrowserRequestHandoffErrors = {
|
|
69741
|
-
/**
|
|
69742
|
-
* INVALID_PARAMS / INVALID_FILTER / INVALID_PAGE_TOKEN
|
|
69900
|
+
* BROWSER_REVOKED
|
|
69743
69901
|
*/
|
|
69744
|
-
|
|
69745
|
-
/**
|
|
69746
|
-
* UNAUTHENTICATED / CONNECT_SIGNATURE_INVALID
|
|
69747
|
-
*/
|
|
69748
|
-
401: BrowserError;
|
|
69749
|
-
/**
|
|
69750
|
-
* INSUFFICIENT_BALANCE / QUOTA_EXHAUSTED
|
|
69751
|
-
*/
|
|
69752
|
-
402: BrowserError;
|
|
69753
|
-
/**
|
|
69754
|
-
* PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
|
|
69755
|
-
*/
|
|
69756
|
-
403: BrowserError;
|
|
69757
|
-
/**
|
|
69758
|
-
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
69759
|
-
*/
|
|
69760
|
-
404: BrowserError;
|
|
69761
|
-
/**
|
|
69762
|
-
* SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
69763
|
-
*/
|
|
69764
|
-
409: BrowserError;
|
|
69902
|
+
410: BrowserError;
|
|
69765
69903
|
/**
|
|
69766
69904
|
* ACTION_RESULT_TOO_LARGE
|
|
69767
69905
|
*/
|
|
@@ -69783,7 +69921,229 @@ export type BrowserRequestHandoffErrors = {
|
|
|
69783
69921
|
*/
|
|
69784
69922
|
502: BrowserError;
|
|
69785
69923
|
/**
|
|
69786
|
-
* SERVICE_UNAVAILABLE
|
|
69924
|
+
* BROWSER_OFFLINE / SERVICE_UNAVAILABLE
|
|
69925
|
+
*/
|
|
69926
|
+
503: BrowserError;
|
|
69927
|
+
/**
|
|
69928
|
+
* ACTION_TIMEOUT
|
|
69929
|
+
*/
|
|
69930
|
+
504: BrowserError;
|
|
69931
|
+
};
|
|
69932
|
+
export type BrowserRunPageActionError = BrowserRunPageActionErrors[keyof BrowserRunPageActionErrors];
|
|
69933
|
+
export type BrowserRunPageActionResponses = {
|
|
69934
|
+
/**
|
|
69935
|
+
* 请求成功。
|
|
69936
|
+
*/
|
|
69937
|
+
200: {
|
|
69938
|
+
/**
|
|
69939
|
+
* 这次执行的动作类型,与请求的 type 相同。
|
|
69940
|
+
*/
|
|
69941
|
+
type: 'open' | 'click' | 'fill' | 'press' | 'scroll' | 'back' | 'forward' | 'reload';
|
|
69942
|
+
/**
|
|
69943
|
+
* 动作作用的标签页 ID,可在后续动作的 tab 里使用。
|
|
69944
|
+
*/
|
|
69945
|
+
tab: string;
|
|
69946
|
+
/**
|
|
69947
|
+
* 动作完成后该标签页的地址。
|
|
69948
|
+
*/
|
|
69949
|
+
url: string;
|
|
69950
|
+
/**
|
|
69951
|
+
* 动作完成后该标签页的标题,页面没有标题时为空字符串。
|
|
69952
|
+
*/
|
|
69953
|
+
title: string;
|
|
69954
|
+
} | {
|
|
69955
|
+
/**
|
|
69956
|
+
* 动作类型,固定为 select。
|
|
69957
|
+
*/
|
|
69958
|
+
type: 'select';
|
|
69959
|
+
/**
|
|
69960
|
+
* 动作作用的标签页 ID,可在后续动作的 tab 里使用。
|
|
69961
|
+
*/
|
|
69962
|
+
tab: string;
|
|
69963
|
+
/**
|
|
69964
|
+
* 这次选中的 option 的 value,按它们在下拉框中出现的顺序;单选下拉框最多一项。
|
|
69965
|
+
*/
|
|
69966
|
+
values: Array<string>;
|
|
69967
|
+
} | {
|
|
69968
|
+
/**
|
|
69969
|
+
* 动作类型,固定为 tabs.list。
|
|
69970
|
+
*/
|
|
69971
|
+
type: 'tabs.list';
|
|
69972
|
+
/**
|
|
69973
|
+
* 会话里所有打开的标签页。
|
|
69974
|
+
*/
|
|
69975
|
+
tabs: Array<{
|
|
69976
|
+
/**
|
|
69977
|
+
* 标签页 ID,可在动作的 tab 里使用。
|
|
69978
|
+
*/
|
|
69979
|
+
id: string;
|
|
69980
|
+
/**
|
|
69981
|
+
* 标签页当前地址。
|
|
69982
|
+
*/
|
|
69983
|
+
url: string;
|
|
69984
|
+
/**
|
|
69985
|
+
* 标签页当前标题。
|
|
69986
|
+
*/
|
|
69987
|
+
title: string;
|
|
69988
|
+
/**
|
|
69989
|
+
* 是否为当前标签页,省略 tab 的动作作用于它。
|
|
69990
|
+
*/
|
|
69991
|
+
active: boolean;
|
|
69992
|
+
}>;
|
|
69993
|
+
} | {
|
|
69994
|
+
/**
|
|
69995
|
+
* 动作类型,固定为 snapshot。
|
|
69996
|
+
*/
|
|
69997
|
+
type: 'snapshot';
|
|
69998
|
+
/**
|
|
69999
|
+
* 动作作用的标签页 ID,可在后续动作的 tab 里使用。
|
|
70000
|
+
*/
|
|
70001
|
+
tab: string;
|
|
70002
|
+
/**
|
|
70003
|
+
* 动作完成后该标签页的地址。
|
|
70004
|
+
*/
|
|
70005
|
+
url: string;
|
|
70006
|
+
/**
|
|
70007
|
+
* 动作完成后该标签页的标题,页面没有标题时为空字符串。
|
|
70008
|
+
*/
|
|
70009
|
+
title: string;
|
|
70010
|
+
/**
|
|
70011
|
+
* 页面的 ARIA 快照文本,每行一个元素,可操作的元素带 [ref=eN]。
|
|
70012
|
+
*/
|
|
70013
|
+
snapshot: string;
|
|
70014
|
+
/**
|
|
70015
|
+
* 这份快照里分配出去的 ref 个数。
|
|
70016
|
+
*/
|
|
70017
|
+
refs: number;
|
|
70018
|
+
/**
|
|
70019
|
+
* 快照超过 200000 个字符被截断时为 true。
|
|
70020
|
+
*/
|
|
70021
|
+
truncated: boolean;
|
|
70022
|
+
} | {
|
|
70023
|
+
/**
|
|
70024
|
+
* 动作类型,固定为 screenshot。
|
|
70025
|
+
*/
|
|
70026
|
+
type: 'screenshot';
|
|
70027
|
+
/**
|
|
70028
|
+
* 动作作用的标签页 ID,可在后续动作的 tab 里使用。
|
|
70029
|
+
*/
|
|
70030
|
+
tab: string;
|
|
70031
|
+
/**
|
|
70032
|
+
* 图片格式,固定为 image/png。
|
|
70033
|
+
*/
|
|
70034
|
+
mediaType: 'image/png';
|
|
70035
|
+
/**
|
|
70036
|
+
* PNG 图片的 base64 编码;解码后最多 5 MiB。
|
|
70037
|
+
*/
|
|
70038
|
+
data: string;
|
|
70039
|
+
/**
|
|
70040
|
+
* 图片 base64 解码后的字节数。
|
|
70041
|
+
*/
|
|
70042
|
+
bytes: number;
|
|
70043
|
+
} | {
|
|
70044
|
+
/**
|
|
70045
|
+
* 动作类型,固定为 evaluate。
|
|
70046
|
+
*/
|
|
70047
|
+
type: 'evaluate';
|
|
70048
|
+
/**
|
|
70049
|
+
* 动作作用的标签页 ID,可在后续动作的 tab 里使用。
|
|
70050
|
+
*/
|
|
70051
|
+
tab: string;
|
|
70052
|
+
/**
|
|
70053
|
+
* 表达式的结果,按 JSON 返回;序列化后最多 64000 个字符。
|
|
70054
|
+
*/
|
|
70055
|
+
value: unknown;
|
|
70056
|
+
} | {
|
|
70057
|
+
/**
|
|
70058
|
+
* 动作类型,固定为 set_cookie。
|
|
70059
|
+
*/
|
|
70060
|
+
type: 'set_cookie';
|
|
70061
|
+
/**
|
|
70062
|
+
* 动作作用的标签页 ID,可在后续动作的 tab 里使用。
|
|
70063
|
+
*/
|
|
70064
|
+
tab: string;
|
|
70065
|
+
/**
|
|
70066
|
+
* 已设置的 cookie 名称。
|
|
70067
|
+
*/
|
|
70068
|
+
name: string;
|
|
70069
|
+
/**
|
|
70070
|
+
* 已设置的 cookie 的域。
|
|
70071
|
+
*/
|
|
70072
|
+
domain: string;
|
|
70073
|
+
};
|
|
70074
|
+
};
|
|
70075
|
+
export type BrowserRunPageActionResponse = BrowserRunPageActionResponses[keyof BrowserRunPageActionResponses];
|
|
70076
|
+
export type BrowserRequestHandoffData = {
|
|
70077
|
+
body: {
|
|
70078
|
+
/**
|
|
70079
|
+
* 交给人工操作者的接管说明,可为空字符串。
|
|
70080
|
+
*/
|
|
70081
|
+
message: string;
|
|
70082
|
+
/**
|
|
70083
|
+
* 接管请求有效时长,单位为毫秒;必须大于 0,可含小数。超过 3600000(60 分钟)的按 60 分钟算,返回事件里的到期时刻就是实际值。接管未完成、未到期期间,会话不按空闲回收;接管结束后重新开始计空闲。
|
|
70084
|
+
*/
|
|
70085
|
+
timeoutMs?: number;
|
|
70086
|
+
};
|
|
70087
|
+
path: {
|
|
70088
|
+
/**
|
|
70089
|
+
* 浏览器会话 ID;使用创建或列出会话返回的 id,以 bss_ 开头。
|
|
70090
|
+
*/
|
|
70091
|
+
sessionId: string;
|
|
70092
|
+
};
|
|
70093
|
+
query?: never;
|
|
70094
|
+
url: '/browser/v1/sessions/{sessionId}/handoff';
|
|
70095
|
+
};
|
|
70096
|
+
export type BrowserRequestHandoffErrors = {
|
|
70097
|
+
/**
|
|
70098
|
+
* INVALID_PARAMS / INVALID_FILTER / INVALID_PAGE_TOKEN
|
|
70099
|
+
*/
|
|
70100
|
+
400: BrowserError;
|
|
70101
|
+
/**
|
|
70102
|
+
* UNAUTHENTICATED / CONNECT_SIGNATURE_INVALID
|
|
70103
|
+
*/
|
|
70104
|
+
401: BrowserError;
|
|
70105
|
+
/**
|
|
70106
|
+
* INSUFFICIENT_BALANCE / QUOTA_EXHAUSTED
|
|
70107
|
+
*/
|
|
70108
|
+
402: BrowserError;
|
|
70109
|
+
/**
|
|
70110
|
+
* PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
|
|
70111
|
+
*/
|
|
70112
|
+
403: BrowserError;
|
|
70113
|
+
/**
|
|
70114
|
+
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
70115
|
+
*/
|
|
70116
|
+
404: BrowserError;
|
|
70117
|
+
/**
|
|
70118
|
+
* SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
70119
|
+
*/
|
|
70120
|
+
409: BrowserError;
|
|
70121
|
+
/**
|
|
70122
|
+
* BROWSER_REVOKED
|
|
70123
|
+
*/
|
|
70124
|
+
410: BrowserError;
|
|
70125
|
+
/**
|
|
70126
|
+
* ACTION_RESULT_TOO_LARGE
|
|
70127
|
+
*/
|
|
70128
|
+
413: BrowserError;
|
|
70129
|
+
/**
|
|
70130
|
+
* CONCURRENCY_LIMIT / RATE_LIMITED / PROVIDER_CAPACITY
|
|
70131
|
+
*/
|
|
70132
|
+
429: BrowserError;
|
|
70133
|
+
/**
|
|
70134
|
+
* INTERNAL
|
|
70135
|
+
*/
|
|
70136
|
+
500: BrowserError;
|
|
70137
|
+
/**
|
|
70138
|
+
* NOT_IMPLEMENTED / PROVIDER_UNSUPPORTED
|
|
70139
|
+
*/
|
|
70140
|
+
501: BrowserError;
|
|
70141
|
+
/**
|
|
70142
|
+
* PROVIDER_FAILED
|
|
70143
|
+
*/
|
|
70144
|
+
502: BrowserError;
|
|
70145
|
+
/**
|
|
70146
|
+
* BROWSER_OFFLINE / SERVICE_UNAVAILABLE
|
|
69787
70147
|
*/
|
|
69788
70148
|
503: BrowserError;
|
|
69789
70149
|
/**
|
|
@@ -69824,17 +70184,21 @@ export type BrowserCompleteHandoffErrors = {
|
|
|
69824
70184
|
*/
|
|
69825
70185
|
402: BrowserError;
|
|
69826
70186
|
/**
|
|
69827
|
-
* PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
|
|
70187
|
+
* PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
|
|
69828
70188
|
*/
|
|
69829
70189
|
403: BrowserError;
|
|
69830
70190
|
/**
|
|
69831
|
-
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
70191
|
+
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
69832
70192
|
*/
|
|
69833
70193
|
404: BrowserError;
|
|
69834
70194
|
/**
|
|
69835
|
-
* SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
70195
|
+
* SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
69836
70196
|
*/
|
|
69837
70197
|
409: BrowserError;
|
|
70198
|
+
/**
|
|
70199
|
+
* BROWSER_REVOKED
|
|
70200
|
+
*/
|
|
70201
|
+
410: BrowserError;
|
|
69838
70202
|
/**
|
|
69839
70203
|
* ACTION_RESULT_TOO_LARGE
|
|
69840
70204
|
*/
|
|
@@ -69856,7 +70220,7 @@ export type BrowserCompleteHandoffErrors = {
|
|
|
69856
70220
|
*/
|
|
69857
70221
|
502: BrowserError;
|
|
69858
70222
|
/**
|
|
69859
|
-
* SERVICE_UNAVAILABLE
|
|
70223
|
+
* BROWSER_OFFLINE / SERVICE_UNAVAILABLE
|
|
69860
70224
|
*/
|
|
69861
70225
|
503: BrowserError;
|
|
69862
70226
|
/**
|
|
@@ -69906,17 +70270,603 @@ export type BrowserViewerHeartbeatErrors = {
|
|
|
69906
70270
|
*/
|
|
69907
70271
|
402: BrowserError;
|
|
69908
70272
|
/**
|
|
69909
|
-
* PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
|
|
70273
|
+
* PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
|
|
69910
70274
|
*/
|
|
69911
70275
|
403: BrowserError;
|
|
69912
70276
|
/**
|
|
69913
|
-
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
70277
|
+
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
69914
70278
|
*/
|
|
69915
70279
|
404: BrowserError;
|
|
69916
70280
|
/**
|
|
69917
|
-
* SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
70281
|
+
* SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
69918
70282
|
*/
|
|
69919
70283
|
409: BrowserError;
|
|
70284
|
+
/**
|
|
70285
|
+
* BROWSER_REVOKED
|
|
70286
|
+
*/
|
|
70287
|
+
410: BrowserError;
|
|
70288
|
+
/**
|
|
70289
|
+
* ACTION_RESULT_TOO_LARGE
|
|
70290
|
+
*/
|
|
70291
|
+
413: BrowserError;
|
|
70292
|
+
/**
|
|
70293
|
+
* CONCURRENCY_LIMIT / RATE_LIMITED / PROVIDER_CAPACITY
|
|
70294
|
+
*/
|
|
70295
|
+
429: BrowserError;
|
|
70296
|
+
/**
|
|
70297
|
+
* INTERNAL
|
|
70298
|
+
*/
|
|
70299
|
+
500: BrowserError;
|
|
70300
|
+
/**
|
|
70301
|
+
* NOT_IMPLEMENTED / PROVIDER_UNSUPPORTED
|
|
70302
|
+
*/
|
|
70303
|
+
501: BrowserError;
|
|
70304
|
+
/**
|
|
70305
|
+
* PROVIDER_FAILED
|
|
70306
|
+
*/
|
|
70307
|
+
502: BrowserError;
|
|
70308
|
+
/**
|
|
70309
|
+
* BROWSER_OFFLINE / SERVICE_UNAVAILABLE
|
|
70310
|
+
*/
|
|
70311
|
+
503: BrowserError;
|
|
70312
|
+
/**
|
|
70313
|
+
* ACTION_TIMEOUT
|
|
70314
|
+
*/
|
|
70315
|
+
504: BrowserError;
|
|
70316
|
+
};
|
|
70317
|
+
export type BrowserViewerHeartbeatError = BrowserViewerHeartbeatErrors[keyof BrowserViewerHeartbeatErrors];
|
|
70318
|
+
export type BrowserViewerHeartbeatResponses = {
|
|
70319
|
+
/**
|
|
70320
|
+
* 请求成功。
|
|
70321
|
+
*/
|
|
70322
|
+
200: {
|
|
70323
|
+
/**
|
|
70324
|
+
* 心跳已被接受,成功时固定返回 true。
|
|
70325
|
+
*/
|
|
70326
|
+
ok: true;
|
|
70327
|
+
};
|
|
70328
|
+
};
|
|
70329
|
+
export type BrowserViewerHeartbeatResponse = BrowserViewerHeartbeatResponses[keyof BrowserViewerHeartbeatResponses];
|
|
70330
|
+
export type BrowserGetSessionFrameData = {
|
|
70331
|
+
body?: never;
|
|
70332
|
+
path: {
|
|
70333
|
+
/**
|
|
70334
|
+
* 浏览器会话 ID;使用创建或列出会话返回的 id,以 bss_ 开头。
|
|
70335
|
+
*/
|
|
70336
|
+
sessionId: string;
|
|
70337
|
+
};
|
|
70338
|
+
query?: never;
|
|
70339
|
+
url: '/browser/v1/sessions/{sessionId}/frame';
|
|
70340
|
+
};
|
|
70341
|
+
export type BrowserGetSessionFrameErrors = {
|
|
70342
|
+
/**
|
|
70343
|
+
* INVALID_PARAMS / INVALID_FILTER / INVALID_PAGE_TOKEN
|
|
70344
|
+
*/
|
|
70345
|
+
400: BrowserError;
|
|
70346
|
+
/**
|
|
70347
|
+
* UNAUTHENTICATED / CONNECT_SIGNATURE_INVALID
|
|
70348
|
+
*/
|
|
70349
|
+
401: BrowserError;
|
|
70350
|
+
/**
|
|
70351
|
+
* INSUFFICIENT_BALANCE / QUOTA_EXHAUSTED
|
|
70352
|
+
*/
|
|
70353
|
+
402: BrowserError;
|
|
70354
|
+
/**
|
|
70355
|
+
* PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
|
|
70356
|
+
*/
|
|
70357
|
+
403: BrowserError;
|
|
70358
|
+
/**
|
|
70359
|
+
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
70360
|
+
*/
|
|
70361
|
+
404: BrowserError;
|
|
70362
|
+
/**
|
|
70363
|
+
* SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
70364
|
+
*/
|
|
70365
|
+
409: BrowserError;
|
|
70366
|
+
/**
|
|
70367
|
+
* BROWSER_REVOKED
|
|
70368
|
+
*/
|
|
70369
|
+
410: BrowserError;
|
|
70370
|
+
/**
|
|
70371
|
+
* ACTION_RESULT_TOO_LARGE
|
|
70372
|
+
*/
|
|
70373
|
+
413: BrowserError;
|
|
70374
|
+
/**
|
|
70375
|
+
* CONCURRENCY_LIMIT / RATE_LIMITED / PROVIDER_CAPACITY
|
|
70376
|
+
*/
|
|
70377
|
+
429: BrowserError;
|
|
70378
|
+
/**
|
|
70379
|
+
* INTERNAL
|
|
70380
|
+
*/
|
|
70381
|
+
500: BrowserError;
|
|
70382
|
+
/**
|
|
70383
|
+
* NOT_IMPLEMENTED / PROVIDER_UNSUPPORTED
|
|
70384
|
+
*/
|
|
70385
|
+
501: BrowserError;
|
|
70386
|
+
/**
|
|
70387
|
+
* PROVIDER_FAILED
|
|
70388
|
+
*/
|
|
70389
|
+
502: BrowserError;
|
|
70390
|
+
/**
|
|
70391
|
+
* BROWSER_OFFLINE / SERVICE_UNAVAILABLE
|
|
70392
|
+
*/
|
|
70393
|
+
503: BrowserError;
|
|
70394
|
+
/**
|
|
70395
|
+
* ACTION_TIMEOUT
|
|
70396
|
+
*/
|
|
70397
|
+
504: BrowserError;
|
|
70398
|
+
};
|
|
70399
|
+
export type BrowserGetSessionFrameError = BrowserGetSessionFrameErrors[keyof BrowserGetSessionFrameErrors];
|
|
70400
|
+
export type BrowserGetSessionFrameResponses = {
|
|
70401
|
+
/**
|
|
70402
|
+
* JPEG 画面帧,最多 2 MiB。
|
|
70403
|
+
*/
|
|
70404
|
+
200: Blob | File;
|
|
70405
|
+
};
|
|
70406
|
+
export type BrowserGetSessionFrameResponse = BrowserGetSessionFrameResponses[keyof BrowserGetSessionFrameResponses];
|
|
70407
|
+
export type BrowserListContextsData = {
|
|
70408
|
+
body?: never;
|
|
70409
|
+
path?: never;
|
|
70410
|
+
query?: {
|
|
70411
|
+
/**
|
|
70412
|
+
* 按登录态名称精确匹配;名称在当前账户内唯一,所以最多返回一条。省略时列出全部登录态。
|
|
70413
|
+
*/
|
|
70414
|
+
name?: string;
|
|
70415
|
+
/**
|
|
70416
|
+
* 登录态 ID;使用创建或列出登录态返回的 id,以 bsc_ 开头。
|
|
70417
|
+
*/
|
|
70418
|
+
cursor?: string;
|
|
70419
|
+
/**
|
|
70420
|
+
* 每页最多返回的登录态数量;默认 25,范围 1–100。
|
|
70421
|
+
*/
|
|
70422
|
+
limit?: number;
|
|
70423
|
+
};
|
|
70424
|
+
url: '/browser/v1/contexts';
|
|
70425
|
+
};
|
|
70426
|
+
export type BrowserListContextsErrors = {
|
|
70427
|
+
/**
|
|
70428
|
+
* INVALID_PARAMS / INVALID_FILTER / INVALID_PAGE_TOKEN
|
|
70429
|
+
*/
|
|
70430
|
+
400: BrowserError;
|
|
70431
|
+
/**
|
|
70432
|
+
* UNAUTHENTICATED / CONNECT_SIGNATURE_INVALID
|
|
70433
|
+
*/
|
|
70434
|
+
401: BrowserError;
|
|
70435
|
+
/**
|
|
70436
|
+
* INSUFFICIENT_BALANCE / QUOTA_EXHAUSTED
|
|
70437
|
+
*/
|
|
70438
|
+
402: BrowserError;
|
|
70439
|
+
/**
|
|
70440
|
+
* PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
|
|
70441
|
+
*/
|
|
70442
|
+
403: BrowserError;
|
|
70443
|
+
/**
|
|
70444
|
+
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
70445
|
+
*/
|
|
70446
|
+
404: BrowserError;
|
|
70447
|
+
/**
|
|
70448
|
+
* SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
70449
|
+
*/
|
|
70450
|
+
409: BrowserError;
|
|
70451
|
+
/**
|
|
70452
|
+
* BROWSER_REVOKED
|
|
70453
|
+
*/
|
|
70454
|
+
410: BrowserError;
|
|
70455
|
+
/**
|
|
70456
|
+
* ACTION_RESULT_TOO_LARGE
|
|
70457
|
+
*/
|
|
70458
|
+
413: BrowserError;
|
|
70459
|
+
/**
|
|
70460
|
+
* CONCURRENCY_LIMIT / RATE_LIMITED / PROVIDER_CAPACITY
|
|
70461
|
+
*/
|
|
70462
|
+
429: BrowserError;
|
|
70463
|
+
/**
|
|
70464
|
+
* INTERNAL
|
|
70465
|
+
*/
|
|
70466
|
+
500: BrowserError;
|
|
70467
|
+
/**
|
|
70468
|
+
* NOT_IMPLEMENTED / PROVIDER_UNSUPPORTED
|
|
70469
|
+
*/
|
|
70470
|
+
501: BrowserError;
|
|
70471
|
+
/**
|
|
70472
|
+
* PROVIDER_FAILED
|
|
70473
|
+
*/
|
|
70474
|
+
502: BrowserError;
|
|
70475
|
+
/**
|
|
70476
|
+
* BROWSER_OFFLINE / SERVICE_UNAVAILABLE
|
|
70477
|
+
*/
|
|
70478
|
+
503: BrowserError;
|
|
70479
|
+
/**
|
|
70480
|
+
* ACTION_TIMEOUT
|
|
70481
|
+
*/
|
|
70482
|
+
504: BrowserError;
|
|
70483
|
+
};
|
|
70484
|
+
export type BrowserListContextsError = BrowserListContextsErrors[keyof BrowserListContextsErrors];
|
|
70485
|
+
export type BrowserListContextsResponses = {
|
|
70486
|
+
/**
|
|
70487
|
+
* 分页查询结果,包含本页记录和下一页游标。
|
|
70488
|
+
*/
|
|
70489
|
+
200: {
|
|
70490
|
+
/**
|
|
70491
|
+
* 本页查询匹配的记录;没有匹配项时为空数组。
|
|
70492
|
+
*/
|
|
70493
|
+
data: Array<BrowserContext>;
|
|
70494
|
+
/**
|
|
70495
|
+
* 下一页游标;原样传入 cursor,null 表示没有更多结果。
|
|
70496
|
+
*/
|
|
70497
|
+
nextCursor: string | null;
|
|
70498
|
+
};
|
|
70499
|
+
};
|
|
70500
|
+
export type BrowserListContextsResponse = BrowserListContextsResponses[keyof BrowserListContextsResponses];
|
|
70501
|
+
export type BrowserCreateContextData = {
|
|
70502
|
+
body: {
|
|
70503
|
+
/**
|
|
70504
|
+
* 兼容项目字段;传入值被忽略,创建结果的 projectId 固定为 default。
|
|
70505
|
+
*/
|
|
70506
|
+
projectId?: string;
|
|
70507
|
+
/**
|
|
70508
|
+
* 登录态名称;非空时为 1–128 个 ASCII 字母、数字或 . _ : -,在当前账户内唯一;空字符串表示不设名称或清除名称。
|
|
70509
|
+
*/
|
|
70510
|
+
name?: '' | unknown;
|
|
70511
|
+
/**
|
|
70512
|
+
* 自定义字符串标签;最多 32 项,键最多 128 个 UTF-8 字节,值最多 1024 个 UTF-8 字节。
|
|
70513
|
+
*/
|
|
70514
|
+
labels?: {
|
|
70515
|
+
[key: string]: string;
|
|
70516
|
+
};
|
|
70517
|
+
};
|
|
70518
|
+
path?: never;
|
|
70519
|
+
query?: never;
|
|
70520
|
+
url: '/browser/v1/contexts';
|
|
70521
|
+
};
|
|
70522
|
+
export type BrowserCreateContextErrors = {
|
|
70523
|
+
/**
|
|
70524
|
+
* INVALID_PARAMS / INVALID_FILTER / INVALID_PAGE_TOKEN
|
|
70525
|
+
*/
|
|
70526
|
+
400: BrowserError;
|
|
70527
|
+
/**
|
|
70528
|
+
* UNAUTHENTICATED / CONNECT_SIGNATURE_INVALID
|
|
70529
|
+
*/
|
|
70530
|
+
401: BrowserError;
|
|
70531
|
+
/**
|
|
70532
|
+
* INSUFFICIENT_BALANCE / QUOTA_EXHAUSTED
|
|
70533
|
+
*/
|
|
70534
|
+
402: BrowserError;
|
|
70535
|
+
/**
|
|
70536
|
+
* PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
|
|
70537
|
+
*/
|
|
70538
|
+
403: BrowserError;
|
|
70539
|
+
/**
|
|
70540
|
+
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
70541
|
+
*/
|
|
70542
|
+
404: BrowserError;
|
|
70543
|
+
/**
|
|
70544
|
+
* SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
70545
|
+
*/
|
|
70546
|
+
409: BrowserError;
|
|
70547
|
+
/**
|
|
70548
|
+
* BROWSER_REVOKED
|
|
70549
|
+
*/
|
|
70550
|
+
410: BrowserError;
|
|
70551
|
+
/**
|
|
70552
|
+
* ACTION_RESULT_TOO_LARGE
|
|
70553
|
+
*/
|
|
70554
|
+
413: BrowserError;
|
|
70555
|
+
/**
|
|
70556
|
+
* CONCURRENCY_LIMIT / RATE_LIMITED / PROVIDER_CAPACITY
|
|
70557
|
+
*/
|
|
70558
|
+
429: BrowserError;
|
|
70559
|
+
/**
|
|
70560
|
+
* INTERNAL
|
|
70561
|
+
*/
|
|
70562
|
+
500: BrowserError;
|
|
70563
|
+
/**
|
|
70564
|
+
* NOT_IMPLEMENTED / PROVIDER_UNSUPPORTED
|
|
70565
|
+
*/
|
|
70566
|
+
501: BrowserError;
|
|
70567
|
+
/**
|
|
70568
|
+
* PROVIDER_FAILED
|
|
70569
|
+
*/
|
|
70570
|
+
502: BrowserError;
|
|
70571
|
+
/**
|
|
70572
|
+
* BROWSER_OFFLINE / SERVICE_UNAVAILABLE
|
|
70573
|
+
*/
|
|
70574
|
+
503: BrowserError;
|
|
70575
|
+
/**
|
|
70576
|
+
* ACTION_TIMEOUT
|
|
70577
|
+
*/
|
|
70578
|
+
504: BrowserError;
|
|
70579
|
+
};
|
|
70580
|
+
export type BrowserCreateContextError = BrowserCreateContextErrors[keyof BrowserCreateContextErrors];
|
|
70581
|
+
export type BrowserCreateContextResponses = {
|
|
70582
|
+
/**
|
|
70583
|
+
* 请求成功。
|
|
70584
|
+
*/
|
|
70585
|
+
201: BrowserContextCreateResult;
|
|
70586
|
+
};
|
|
70587
|
+
export type BrowserCreateContextResponse = BrowserCreateContextResponses[keyof BrowserCreateContextResponses];
|
|
70588
|
+
export type BrowserDeleteContextData = {
|
|
70589
|
+
body?: never;
|
|
70590
|
+
path: {
|
|
70591
|
+
/**
|
|
70592
|
+
* 登录态 ID;使用创建或列出登录态返回的 id,以 bsc_ 开头。
|
|
70593
|
+
*/
|
|
70594
|
+
contextId: string;
|
|
70595
|
+
};
|
|
70596
|
+
query?: never;
|
|
70597
|
+
url: '/browser/v1/contexts/{contextId}';
|
|
70598
|
+
};
|
|
70599
|
+
export type BrowserDeleteContextErrors = {
|
|
70600
|
+
/**
|
|
70601
|
+
* INVALID_PARAMS / INVALID_FILTER / INVALID_PAGE_TOKEN
|
|
70602
|
+
*/
|
|
70603
|
+
400: BrowserError;
|
|
70604
|
+
/**
|
|
70605
|
+
* UNAUTHENTICATED / CONNECT_SIGNATURE_INVALID
|
|
70606
|
+
*/
|
|
70607
|
+
401: BrowserError;
|
|
70608
|
+
/**
|
|
70609
|
+
* INSUFFICIENT_BALANCE / QUOTA_EXHAUSTED
|
|
70610
|
+
*/
|
|
70611
|
+
402: BrowserError;
|
|
70612
|
+
/**
|
|
70613
|
+
* PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
|
|
70614
|
+
*/
|
|
70615
|
+
403: BrowserError;
|
|
70616
|
+
/**
|
|
70617
|
+
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
70618
|
+
*/
|
|
70619
|
+
404: BrowserError;
|
|
70620
|
+
/**
|
|
70621
|
+
* SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
70622
|
+
*/
|
|
70623
|
+
409: BrowserError;
|
|
70624
|
+
/**
|
|
70625
|
+
* BROWSER_REVOKED
|
|
70626
|
+
*/
|
|
70627
|
+
410: BrowserError;
|
|
70628
|
+
/**
|
|
70629
|
+
* ACTION_RESULT_TOO_LARGE
|
|
70630
|
+
*/
|
|
70631
|
+
413: BrowserError;
|
|
70632
|
+
/**
|
|
70633
|
+
* CONCURRENCY_LIMIT / RATE_LIMITED / PROVIDER_CAPACITY
|
|
70634
|
+
*/
|
|
70635
|
+
429: BrowserError;
|
|
70636
|
+
/**
|
|
70637
|
+
* INTERNAL
|
|
70638
|
+
*/
|
|
70639
|
+
500: BrowserError;
|
|
70640
|
+
/**
|
|
70641
|
+
* NOT_IMPLEMENTED / PROVIDER_UNSUPPORTED
|
|
70642
|
+
*/
|
|
70643
|
+
501: BrowserError;
|
|
70644
|
+
/**
|
|
70645
|
+
* PROVIDER_FAILED
|
|
70646
|
+
*/
|
|
70647
|
+
502: BrowserError;
|
|
70648
|
+
/**
|
|
70649
|
+
* BROWSER_OFFLINE / SERVICE_UNAVAILABLE
|
|
70650
|
+
*/
|
|
70651
|
+
503: BrowserError;
|
|
70652
|
+
/**
|
|
70653
|
+
* ACTION_TIMEOUT
|
|
70654
|
+
*/
|
|
70655
|
+
504: BrowserError;
|
|
70656
|
+
};
|
|
70657
|
+
export type BrowserDeleteContextError = BrowserDeleteContextErrors[keyof BrowserDeleteContextErrors];
|
|
70658
|
+
export type BrowserDeleteContextResponses = {
|
|
70659
|
+
/**
|
|
70660
|
+
* 请求成功。
|
|
70661
|
+
*/
|
|
70662
|
+
200: {
|
|
70663
|
+
/**
|
|
70664
|
+
* 登录态及保存内容已删除,成功时固定返回 true。
|
|
70665
|
+
*/
|
|
70666
|
+
deleted: true;
|
|
70667
|
+
};
|
|
70668
|
+
};
|
|
70669
|
+
export type BrowserDeleteContextResponse = BrowserDeleteContextResponses[keyof BrowserDeleteContextResponses];
|
|
70670
|
+
export type BrowserGetContextData = {
|
|
70671
|
+
body?: never;
|
|
70672
|
+
path: {
|
|
70673
|
+
/**
|
|
70674
|
+
* 登录态 ID;使用创建或列出登录态返回的 id,以 bsc_ 开头。
|
|
70675
|
+
*/
|
|
70676
|
+
contextId: string;
|
|
70677
|
+
};
|
|
70678
|
+
query?: never;
|
|
70679
|
+
url: '/browser/v1/contexts/{contextId}';
|
|
70680
|
+
};
|
|
70681
|
+
export type BrowserGetContextErrors = {
|
|
70682
|
+
/**
|
|
70683
|
+
* INVALID_PARAMS / INVALID_FILTER / INVALID_PAGE_TOKEN
|
|
70684
|
+
*/
|
|
70685
|
+
400: BrowserError;
|
|
70686
|
+
/**
|
|
70687
|
+
* UNAUTHENTICATED / CONNECT_SIGNATURE_INVALID
|
|
70688
|
+
*/
|
|
70689
|
+
401: BrowserError;
|
|
70690
|
+
/**
|
|
70691
|
+
* INSUFFICIENT_BALANCE / QUOTA_EXHAUSTED
|
|
70692
|
+
*/
|
|
70693
|
+
402: BrowserError;
|
|
70694
|
+
/**
|
|
70695
|
+
* PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
|
|
70696
|
+
*/
|
|
70697
|
+
403: BrowserError;
|
|
70698
|
+
/**
|
|
70699
|
+
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
70700
|
+
*/
|
|
70701
|
+
404: BrowserError;
|
|
70702
|
+
/**
|
|
70703
|
+
* SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
70704
|
+
*/
|
|
70705
|
+
409: BrowserError;
|
|
70706
|
+
/**
|
|
70707
|
+
* BROWSER_REVOKED
|
|
70708
|
+
*/
|
|
70709
|
+
410: BrowserError;
|
|
70710
|
+
/**
|
|
70711
|
+
* ACTION_RESULT_TOO_LARGE
|
|
70712
|
+
*/
|
|
70713
|
+
413: BrowserError;
|
|
70714
|
+
/**
|
|
70715
|
+
* CONCURRENCY_LIMIT / RATE_LIMITED / PROVIDER_CAPACITY
|
|
70716
|
+
*/
|
|
70717
|
+
429: BrowserError;
|
|
70718
|
+
/**
|
|
70719
|
+
* INTERNAL
|
|
70720
|
+
*/
|
|
70721
|
+
500: BrowserError;
|
|
70722
|
+
/**
|
|
70723
|
+
* NOT_IMPLEMENTED / PROVIDER_UNSUPPORTED
|
|
70724
|
+
*/
|
|
70725
|
+
501: BrowserError;
|
|
70726
|
+
/**
|
|
70727
|
+
* PROVIDER_FAILED
|
|
70728
|
+
*/
|
|
70729
|
+
502: BrowserError;
|
|
70730
|
+
/**
|
|
70731
|
+
* BROWSER_OFFLINE / SERVICE_UNAVAILABLE
|
|
70732
|
+
*/
|
|
70733
|
+
503: BrowserError;
|
|
70734
|
+
/**
|
|
70735
|
+
* ACTION_TIMEOUT
|
|
70736
|
+
*/
|
|
70737
|
+
504: BrowserError;
|
|
70738
|
+
};
|
|
70739
|
+
export type BrowserGetContextError = BrowserGetContextErrors[keyof BrowserGetContextErrors];
|
|
70740
|
+
export type BrowserGetContextResponses = {
|
|
70741
|
+
/**
|
|
70742
|
+
* 请求成功。
|
|
70743
|
+
*/
|
|
70744
|
+
200: BrowserContext;
|
|
70745
|
+
};
|
|
70746
|
+
export type BrowserGetContextResponse = BrowserGetContextResponses[keyof BrowserGetContextResponses];
|
|
70747
|
+
export type BrowserUpdateContextData = {
|
|
70748
|
+
body: {
|
|
70749
|
+
/**
|
|
70750
|
+
* 登录态名称;非空时为 1–128 个 ASCII 字母、数字或 . _ : -,在当前账户内唯一;空字符串表示不设名称或清除名称。
|
|
70751
|
+
*/
|
|
70752
|
+
name?: '' | unknown;
|
|
70753
|
+
/**
|
|
70754
|
+
* 自定义字符串标签;最多 32 项,键最多 128 个 UTF-8 字节,值最多 1024 个 UTF-8 字节。 更新时整体替换;空对象清除标签,省略则保留。
|
|
70755
|
+
*/
|
|
70756
|
+
labels?: {
|
|
70757
|
+
[key: string]: string;
|
|
70758
|
+
};
|
|
70759
|
+
};
|
|
70760
|
+
path: {
|
|
70761
|
+
/**
|
|
70762
|
+
* 登录态 ID;使用创建或列出登录态返回的 id,以 bsc_ 开头。
|
|
70763
|
+
*/
|
|
70764
|
+
contextId: string;
|
|
70765
|
+
};
|
|
70766
|
+
query?: never;
|
|
70767
|
+
url: '/browser/v1/contexts/{contextId}';
|
|
70768
|
+
};
|
|
70769
|
+
export type BrowserUpdateContextErrors = {
|
|
70770
|
+
/**
|
|
70771
|
+
* INVALID_PARAMS / INVALID_FILTER / INVALID_PAGE_TOKEN
|
|
70772
|
+
*/
|
|
70773
|
+
400: BrowserError;
|
|
70774
|
+
/**
|
|
70775
|
+
* UNAUTHENTICATED / CONNECT_SIGNATURE_INVALID
|
|
70776
|
+
*/
|
|
70777
|
+
401: BrowserError;
|
|
70778
|
+
/**
|
|
70779
|
+
* INSUFFICIENT_BALANCE / QUOTA_EXHAUSTED
|
|
70780
|
+
*/
|
|
70781
|
+
402: BrowserError;
|
|
70782
|
+
/**
|
|
70783
|
+
* PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
|
|
70784
|
+
*/
|
|
70785
|
+
403: BrowserError;
|
|
70786
|
+
/**
|
|
70787
|
+
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
70788
|
+
*/
|
|
70789
|
+
404: BrowserError;
|
|
70790
|
+
/**
|
|
70791
|
+
* SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
70792
|
+
*/
|
|
70793
|
+
409: BrowserError;
|
|
70794
|
+
/**
|
|
70795
|
+
* BROWSER_REVOKED
|
|
70796
|
+
*/
|
|
70797
|
+
410: BrowserError;
|
|
70798
|
+
/**
|
|
70799
|
+
* ACTION_RESULT_TOO_LARGE
|
|
70800
|
+
*/
|
|
70801
|
+
413: BrowserError;
|
|
70802
|
+
/**
|
|
70803
|
+
* CONCURRENCY_LIMIT / RATE_LIMITED / PROVIDER_CAPACITY
|
|
70804
|
+
*/
|
|
70805
|
+
429: BrowserError;
|
|
70806
|
+
/**
|
|
70807
|
+
* INTERNAL
|
|
70808
|
+
*/
|
|
70809
|
+
500: BrowserError;
|
|
70810
|
+
/**
|
|
70811
|
+
* NOT_IMPLEMENTED / PROVIDER_UNSUPPORTED
|
|
70812
|
+
*/
|
|
70813
|
+
501: BrowserError;
|
|
70814
|
+
/**
|
|
70815
|
+
* PROVIDER_FAILED
|
|
70816
|
+
*/
|
|
70817
|
+
502: BrowserError;
|
|
70818
|
+
/**
|
|
70819
|
+
* BROWSER_OFFLINE / SERVICE_UNAVAILABLE
|
|
70820
|
+
*/
|
|
70821
|
+
503: BrowserError;
|
|
70822
|
+
/**
|
|
70823
|
+
* ACTION_TIMEOUT
|
|
70824
|
+
*/
|
|
70825
|
+
504: BrowserError;
|
|
70826
|
+
};
|
|
70827
|
+
export type BrowserUpdateContextError = BrowserUpdateContextErrors[keyof BrowserUpdateContextErrors];
|
|
70828
|
+
export type BrowserUpdateContextResponses = {
|
|
70829
|
+
/**
|
|
70830
|
+
* 请求成功。
|
|
70831
|
+
*/
|
|
70832
|
+
200: BrowserContext;
|
|
70833
|
+
};
|
|
70834
|
+
export type BrowserUpdateContextResponse = BrowserUpdateContextResponses[keyof BrowserUpdateContextResponses];
|
|
70835
|
+
export type BrowserCreateByobPairingData = {
|
|
70836
|
+
body?: never;
|
|
70837
|
+
path?: never;
|
|
70838
|
+
query?: never;
|
|
70839
|
+
url: '/browser/v1/byob/pairings';
|
|
70840
|
+
};
|
|
70841
|
+
export type BrowserCreateByobPairingErrors = {
|
|
70842
|
+
/**
|
|
70843
|
+
* INVALID_PARAMS / INVALID_FILTER / INVALID_PAGE_TOKEN
|
|
70844
|
+
*/
|
|
70845
|
+
400: BrowserError;
|
|
70846
|
+
/**
|
|
70847
|
+
* UNAUTHENTICATED / CONNECT_SIGNATURE_INVALID
|
|
70848
|
+
*/
|
|
70849
|
+
401: BrowserError;
|
|
70850
|
+
/**
|
|
70851
|
+
* INSUFFICIENT_BALANCE / QUOTA_EXHAUSTED
|
|
70852
|
+
*/
|
|
70853
|
+
402: BrowserError;
|
|
70854
|
+
/**
|
|
70855
|
+
* PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
|
|
70856
|
+
*/
|
|
70857
|
+
403: BrowserError;
|
|
70858
|
+
/**
|
|
70859
|
+
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
70860
|
+
*/
|
|
70861
|
+
404: BrowserError;
|
|
70862
|
+
/**
|
|
70863
|
+
* SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
70864
|
+
*/
|
|
70865
|
+
409: BrowserError;
|
|
70866
|
+
/**
|
|
70867
|
+
* BROWSER_REVOKED
|
|
70868
|
+
*/
|
|
70869
|
+
410: BrowserError;
|
|
69920
70870
|
/**
|
|
69921
70871
|
* ACTION_RESULT_TOO_LARGE
|
|
69922
70872
|
*/
|
|
@@ -69938,7 +70888,7 @@ export type BrowserViewerHeartbeatErrors = {
|
|
|
69938
70888
|
*/
|
|
69939
70889
|
502: BrowserError;
|
|
69940
70890
|
/**
|
|
69941
|
-
* SERVICE_UNAVAILABLE
|
|
70891
|
+
* BROWSER_OFFLINE / SERVICE_UNAVAILABLE
|
|
69942
70892
|
*/
|
|
69943
70893
|
503: BrowserError;
|
|
69944
70894
|
/**
|
|
@@ -69946,31 +70896,30 @@ export type BrowserViewerHeartbeatErrors = {
|
|
|
69946
70896
|
*/
|
|
69947
70897
|
504: BrowserError;
|
|
69948
70898
|
};
|
|
69949
|
-
export type
|
|
69950
|
-
export type
|
|
70899
|
+
export type BrowserCreateByobPairingError = BrowserCreateByobPairingErrors[keyof BrowserCreateByobPairingErrors];
|
|
70900
|
+
export type BrowserCreateByobPairingResponses = {
|
|
69951
70901
|
/**
|
|
69952
70902
|
* 请求成功。
|
|
69953
70903
|
*/
|
|
69954
|
-
|
|
69955
|
-
/**
|
|
69956
|
-
* 心跳已被接受,成功时固定返回 true。
|
|
69957
|
-
*/
|
|
69958
|
-
ok: true;
|
|
69959
|
-
};
|
|
70904
|
+
201: BrowserByobPairing;
|
|
69960
70905
|
};
|
|
69961
|
-
export type
|
|
69962
|
-
export type
|
|
70906
|
+
export type BrowserCreateByobPairingResponse = BrowserCreateByobPairingResponses[keyof BrowserCreateByobPairingResponses];
|
|
70907
|
+
export type BrowserListByobBrowsersData = {
|
|
69963
70908
|
body?: never;
|
|
69964
|
-
path
|
|
70909
|
+
path?: never;
|
|
70910
|
+
query?: {
|
|
69965
70911
|
/**
|
|
69966
|
-
*
|
|
70912
|
+
* 上一页返回的 nextCursor,原样传入;省略时读取第一页。
|
|
69967
70913
|
*/
|
|
69968
|
-
|
|
70914
|
+
cursor?: string;
|
|
70915
|
+
/**
|
|
70916
|
+
* 每页最多返回的浏览器数量;默认 50,范围 1–100。
|
|
70917
|
+
*/
|
|
70918
|
+
limit?: number;
|
|
69969
70919
|
};
|
|
69970
|
-
|
|
69971
|
-
url: '/browser/v1/sessions/{sessionId}/frame';
|
|
70920
|
+
url: '/browser/v1/byob/browsers';
|
|
69972
70921
|
};
|
|
69973
|
-
export type
|
|
70922
|
+
export type BrowserListByobBrowsersErrors = {
|
|
69974
70923
|
/**
|
|
69975
70924
|
* INVALID_PARAMS / INVALID_FILTER / INVALID_PAGE_TOKEN
|
|
69976
70925
|
*/
|
|
@@ -69984,17 +70933,21 @@ export type BrowserGetSessionFrameErrors = {
|
|
|
69984
70933
|
*/
|
|
69985
70934
|
402: BrowserError;
|
|
69986
70935
|
/**
|
|
69987
|
-
* PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
|
|
70936
|
+
* PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
|
|
69988
70937
|
*/
|
|
69989
70938
|
403: BrowserError;
|
|
69990
70939
|
/**
|
|
69991
|
-
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
70940
|
+
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
69992
70941
|
*/
|
|
69993
70942
|
404: BrowserError;
|
|
69994
70943
|
/**
|
|
69995
|
-
* SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
70944
|
+
* SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
69996
70945
|
*/
|
|
69997
70946
|
409: BrowserError;
|
|
70947
|
+
/**
|
|
70948
|
+
* BROWSER_REVOKED
|
|
70949
|
+
*/
|
|
70950
|
+
410: BrowserError;
|
|
69998
70951
|
/**
|
|
69999
70952
|
* ACTION_RESULT_TOO_LARGE
|
|
70000
70953
|
*/
|
|
@@ -70016,7 +70969,7 @@ export type BrowserGetSessionFrameErrors = {
|
|
|
70016
70969
|
*/
|
|
70017
70970
|
502: BrowserError;
|
|
70018
70971
|
/**
|
|
70019
|
-
* SERVICE_UNAVAILABLE
|
|
70972
|
+
* BROWSER_OFFLINE / SERVICE_UNAVAILABLE
|
|
70020
70973
|
*/
|
|
70021
70974
|
503: BrowserError;
|
|
70022
70975
|
/**
|
|
@@ -70024,34 +70977,35 @@ export type BrowserGetSessionFrameErrors = {
|
|
|
70024
70977
|
*/
|
|
70025
70978
|
504: BrowserError;
|
|
70026
70979
|
};
|
|
70027
|
-
export type
|
|
70028
|
-
export type
|
|
70980
|
+
export type BrowserListByobBrowsersError = BrowserListByobBrowsersErrors[keyof BrowserListByobBrowsersErrors];
|
|
70981
|
+
export type BrowserListByobBrowsersResponses = {
|
|
70029
70982
|
/**
|
|
70030
|
-
*
|
|
70983
|
+
* 分页列出的自带浏览器,按 ID 升序。
|
|
70031
70984
|
*/
|
|
70032
|
-
200:
|
|
70033
|
-
};
|
|
70034
|
-
export type BrowserGetSessionFrameResponse = BrowserGetSessionFrameResponses[keyof BrowserGetSessionFrameResponses];
|
|
70035
|
-
export type BrowserListContextsData = {
|
|
70036
|
-
body?: never;
|
|
70037
|
-
path?: never;
|
|
70038
|
-
query?: {
|
|
70985
|
+
200: {
|
|
70039
70986
|
/**
|
|
70040
|
-
*
|
|
70987
|
+
* 本页的自带浏览器;已断开的不在列表里。
|
|
70041
70988
|
*/
|
|
70042
|
-
|
|
70989
|
+
data: Array<BrowserByobBrowser>;
|
|
70043
70990
|
/**
|
|
70044
|
-
*
|
|
70991
|
+
* 下一页游标;原样传入 cursor,null 表示没有更多结果。
|
|
70045
70992
|
*/
|
|
70046
|
-
|
|
70993
|
+
nextCursor: string | null;
|
|
70994
|
+
};
|
|
70995
|
+
};
|
|
70996
|
+
export type BrowserListByobBrowsersResponse = BrowserListByobBrowsersResponses[keyof BrowserListByobBrowsersResponses];
|
|
70997
|
+
export type BrowserGetByobBrowserData = {
|
|
70998
|
+
body?: never;
|
|
70999
|
+
path: {
|
|
70047
71000
|
/**
|
|
70048
|
-
*
|
|
71001
|
+
* 自带浏览器 ID,以 byb_ 开头;使用配对认领或列出自带浏览器返回的 id。
|
|
70049
71002
|
*/
|
|
70050
|
-
|
|
71003
|
+
browser_id: string;
|
|
70051
71004
|
};
|
|
70052
|
-
|
|
71005
|
+
query?: never;
|
|
71006
|
+
url: '/browser/v1/byob/browsers/{browser_id}';
|
|
70053
71007
|
};
|
|
70054
|
-
export type
|
|
71008
|
+
export type BrowserGetByobBrowserErrors = {
|
|
70055
71009
|
/**
|
|
70056
71010
|
* INVALID_PARAMS / INVALID_FILTER / INVALID_PAGE_TOKEN
|
|
70057
71011
|
*/
|
|
@@ -70065,17 +71019,21 @@ export type BrowserListContextsErrors = {
|
|
|
70065
71019
|
*/
|
|
70066
71020
|
402: BrowserError;
|
|
70067
71021
|
/**
|
|
70068
|
-
* PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
|
|
71022
|
+
* PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
|
|
70069
71023
|
*/
|
|
70070
71024
|
403: BrowserError;
|
|
70071
71025
|
/**
|
|
70072
|
-
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
71026
|
+
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
70073
71027
|
*/
|
|
70074
71028
|
404: BrowserError;
|
|
70075
71029
|
/**
|
|
70076
|
-
* SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
71030
|
+
* SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
70077
71031
|
*/
|
|
70078
71032
|
409: BrowserError;
|
|
71033
|
+
/**
|
|
71034
|
+
* BROWSER_REVOKED
|
|
71035
|
+
*/
|
|
71036
|
+
410: BrowserError;
|
|
70079
71037
|
/**
|
|
70080
71038
|
* ACTION_RESULT_TOO_LARGE
|
|
70081
71039
|
*/
|
|
@@ -70097,7 +71055,7 @@ export type BrowserListContextsErrors = {
|
|
|
70097
71055
|
*/
|
|
70098
71056
|
502: BrowserError;
|
|
70099
71057
|
/**
|
|
70100
|
-
* SERVICE_UNAVAILABLE
|
|
71058
|
+
* BROWSER_OFFLINE / SERVICE_UNAVAILABLE
|
|
70101
71059
|
*/
|
|
70102
71060
|
503: BrowserError;
|
|
70103
71061
|
/**
|
|
@@ -70105,45 +71063,39 @@ export type BrowserListContextsErrors = {
|
|
|
70105
71063
|
*/
|
|
70106
71064
|
504: BrowserError;
|
|
70107
71065
|
};
|
|
70108
|
-
export type
|
|
70109
|
-
export type
|
|
71066
|
+
export type BrowserGetByobBrowserError = BrowserGetByobBrowserErrors[keyof BrowserGetByobBrowserErrors];
|
|
71067
|
+
export type BrowserGetByobBrowserResponses = {
|
|
70110
71068
|
/**
|
|
70111
|
-
*
|
|
71069
|
+
* 请求成功。
|
|
70112
71070
|
*/
|
|
70113
|
-
200:
|
|
70114
|
-
/**
|
|
70115
|
-
* 本页查询匹配的记录;没有匹配项时为空数组。
|
|
70116
|
-
*/
|
|
70117
|
-
data: Array<BrowserContext>;
|
|
70118
|
-
/**
|
|
70119
|
-
* 下一页游标;原样传入 cursor,null 表示没有更多结果。
|
|
70120
|
-
*/
|
|
70121
|
-
nextCursor: string | null;
|
|
70122
|
-
};
|
|
71071
|
+
200: BrowserByobBrowser;
|
|
70123
71072
|
};
|
|
70124
|
-
export type
|
|
70125
|
-
export type
|
|
71073
|
+
export type BrowserGetByobBrowserResponse = BrowserGetByobBrowserResponses[keyof BrowserGetByobBrowserResponses];
|
|
71074
|
+
export type BrowserUpdateByobBrowserData = {
|
|
70126
71075
|
body: {
|
|
70127
71076
|
/**
|
|
70128
|
-
*
|
|
71077
|
+
* 新的显示名称,1–80 个字符。
|
|
70129
71078
|
*/
|
|
70130
|
-
|
|
71079
|
+
name?: string;
|
|
70131
71080
|
/**
|
|
70132
|
-
*
|
|
71081
|
+
* 整体替换被授权的智能体 ID 列表;传空数组撤销全部授权。
|
|
70133
71082
|
*/
|
|
70134
|
-
|
|
71083
|
+
granted_agents?: Array<string>;
|
|
70135
71084
|
/**
|
|
70136
|
-
*
|
|
71085
|
+
* 整体替换允许站点列表;传空数组表示不限制。
|
|
70137
71086
|
*/
|
|
70138
|
-
|
|
70139
|
-
|
|
70140
|
-
|
|
71087
|
+
allowed_sites?: Array<string>;
|
|
71088
|
+
};
|
|
71089
|
+
path: {
|
|
71090
|
+
/**
|
|
71091
|
+
* 自带浏览器 ID,以 byb_ 开头;使用配对认领或列出自带浏览器返回的 id。
|
|
71092
|
+
*/
|
|
71093
|
+
browser_id: string;
|
|
70141
71094
|
};
|
|
70142
|
-
path?: never;
|
|
70143
71095
|
query?: never;
|
|
70144
|
-
url: '/browser/v1/
|
|
71096
|
+
url: '/browser/v1/byob/browsers/{browser_id}';
|
|
70145
71097
|
};
|
|
70146
|
-
export type
|
|
71098
|
+
export type BrowserUpdateByobBrowserErrors = {
|
|
70147
71099
|
/**
|
|
70148
71100
|
* INVALID_PARAMS / INVALID_FILTER / INVALID_PAGE_TOKEN
|
|
70149
71101
|
*/
|
|
@@ -70157,17 +71109,21 @@ export type BrowserCreateContextErrors = {
|
|
|
70157
71109
|
*/
|
|
70158
71110
|
402: BrowserError;
|
|
70159
71111
|
/**
|
|
70160
|
-
* PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
|
|
71112
|
+
* PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
|
|
70161
71113
|
*/
|
|
70162
71114
|
403: BrowserError;
|
|
70163
71115
|
/**
|
|
70164
|
-
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
71116
|
+
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
70165
71117
|
*/
|
|
70166
71118
|
404: BrowserError;
|
|
70167
71119
|
/**
|
|
70168
|
-
* SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
71120
|
+
* SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
70169
71121
|
*/
|
|
70170
71122
|
409: BrowserError;
|
|
71123
|
+
/**
|
|
71124
|
+
* BROWSER_REVOKED
|
|
71125
|
+
*/
|
|
71126
|
+
410: BrowserError;
|
|
70171
71127
|
/**
|
|
70172
71128
|
* ACTION_RESULT_TOO_LARGE
|
|
70173
71129
|
*/
|
|
@@ -70189,7 +71145,7 @@ export type BrowserCreateContextErrors = {
|
|
|
70189
71145
|
*/
|
|
70190
71146
|
502: BrowserError;
|
|
70191
71147
|
/**
|
|
70192
|
-
* SERVICE_UNAVAILABLE
|
|
71148
|
+
* BROWSER_OFFLINE / SERVICE_UNAVAILABLE
|
|
70193
71149
|
*/
|
|
70194
71150
|
503: BrowserError;
|
|
70195
71151
|
/**
|
|
@@ -70197,26 +71153,26 @@ export type BrowserCreateContextErrors = {
|
|
|
70197
71153
|
*/
|
|
70198
71154
|
504: BrowserError;
|
|
70199
71155
|
};
|
|
70200
|
-
export type
|
|
70201
|
-
export type
|
|
71156
|
+
export type BrowserUpdateByobBrowserError = BrowserUpdateByobBrowserErrors[keyof BrowserUpdateByobBrowserErrors];
|
|
71157
|
+
export type BrowserUpdateByobBrowserResponses = {
|
|
70202
71158
|
/**
|
|
70203
71159
|
* 请求成功。
|
|
70204
71160
|
*/
|
|
70205
|
-
|
|
71161
|
+
200: BrowserByobBrowser;
|
|
70206
71162
|
};
|
|
70207
|
-
export type
|
|
70208
|
-
export type
|
|
71163
|
+
export type BrowserUpdateByobBrowserResponse = BrowserUpdateByobBrowserResponses[keyof BrowserUpdateByobBrowserResponses];
|
|
71164
|
+
export type BrowserDisconnectByobBrowserData = {
|
|
70209
71165
|
body?: never;
|
|
70210
71166
|
path: {
|
|
70211
71167
|
/**
|
|
70212
|
-
*
|
|
71168
|
+
* 自带浏览器 ID,以 byb_ 开头;使用配对认领或列出自带浏览器返回的 id。
|
|
70213
71169
|
*/
|
|
70214
|
-
|
|
71170
|
+
browser_id: string;
|
|
70215
71171
|
};
|
|
70216
71172
|
query?: never;
|
|
70217
|
-
url: '/browser/v1/
|
|
71173
|
+
url: '/browser/v1/byob/browsers/{browser_id}/disconnect';
|
|
70218
71174
|
};
|
|
70219
|
-
export type
|
|
71175
|
+
export type BrowserDisconnectByobBrowserErrors = {
|
|
70220
71176
|
/**
|
|
70221
71177
|
* INVALID_PARAMS / INVALID_FILTER / INVALID_PAGE_TOKEN
|
|
70222
71178
|
*/
|
|
@@ -70230,17 +71186,21 @@ export type BrowserDeleteContextErrors = {
|
|
|
70230
71186
|
*/
|
|
70231
71187
|
402: BrowserError;
|
|
70232
71188
|
/**
|
|
70233
|
-
* PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
|
|
71189
|
+
* PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
|
|
70234
71190
|
*/
|
|
70235
71191
|
403: BrowserError;
|
|
70236
71192
|
/**
|
|
70237
|
-
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
71193
|
+
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
70238
71194
|
*/
|
|
70239
71195
|
404: BrowserError;
|
|
70240
71196
|
/**
|
|
70241
|
-
* SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
71197
|
+
* SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
70242
71198
|
*/
|
|
70243
71199
|
409: BrowserError;
|
|
71200
|
+
/**
|
|
71201
|
+
* BROWSER_REVOKED
|
|
71202
|
+
*/
|
|
71203
|
+
410: BrowserError;
|
|
70244
71204
|
/**
|
|
70245
71205
|
* ACTION_RESULT_TOO_LARGE
|
|
70246
71206
|
*/
|
|
@@ -70262,7 +71222,7 @@ export type BrowserDeleteContextErrors = {
|
|
|
70262
71222
|
*/
|
|
70263
71223
|
502: BrowserError;
|
|
70264
71224
|
/**
|
|
70265
|
-
* SERVICE_UNAVAILABLE
|
|
71225
|
+
* BROWSER_OFFLINE / SERVICE_UNAVAILABLE
|
|
70266
71226
|
*/
|
|
70267
71227
|
503: BrowserError;
|
|
70268
71228
|
/**
|
|
@@ -70270,31 +71230,26 @@ export type BrowserDeleteContextErrors = {
|
|
|
70270
71230
|
*/
|
|
70271
71231
|
504: BrowserError;
|
|
70272
71232
|
};
|
|
70273
|
-
export type
|
|
70274
|
-
export type
|
|
71233
|
+
export type BrowserDisconnectByobBrowserError = BrowserDisconnectByobBrowserErrors[keyof BrowserDisconnectByobBrowserErrors];
|
|
71234
|
+
export type BrowserDisconnectByobBrowserResponses = {
|
|
70275
71235
|
/**
|
|
70276
71236
|
* 请求成功。
|
|
70277
71237
|
*/
|
|
70278
|
-
200:
|
|
70279
|
-
/**
|
|
70280
|
-
* 登录态及保存内容已删除,成功时固定返回 true。
|
|
70281
|
-
*/
|
|
70282
|
-
deleted: true;
|
|
70283
|
-
};
|
|
71238
|
+
200: BrowserByobBrowser;
|
|
70284
71239
|
};
|
|
70285
|
-
export type
|
|
70286
|
-
export type
|
|
71240
|
+
export type BrowserDisconnectByobBrowserResponse = BrowserDisconnectByobBrowserResponses[keyof BrowserDisconnectByobBrowserResponses];
|
|
71241
|
+
export type BrowserReadByobPairingData = {
|
|
70287
71242
|
body?: never;
|
|
70288
71243
|
path: {
|
|
70289
71244
|
/**
|
|
70290
|
-
*
|
|
71245
|
+
* 8 位配对码,来自创建配对码的结果。
|
|
70291
71246
|
*/
|
|
70292
|
-
|
|
71247
|
+
code: string;
|
|
70293
71248
|
};
|
|
70294
71249
|
query?: never;
|
|
70295
|
-
url: '/browser/v1/
|
|
71250
|
+
url: '/browser/v1/byob/pairings/{code}';
|
|
70296
71251
|
};
|
|
70297
|
-
export type
|
|
71252
|
+
export type BrowserReadByobPairingErrors = {
|
|
70298
71253
|
/**
|
|
70299
71254
|
* INVALID_PARAMS / INVALID_FILTER / INVALID_PAGE_TOKEN
|
|
70300
71255
|
*/
|
|
@@ -70308,17 +71263,21 @@ export type BrowserGetContextErrors = {
|
|
|
70308
71263
|
*/
|
|
70309
71264
|
402: BrowserError;
|
|
70310
71265
|
/**
|
|
70311
|
-
* PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
|
|
71266
|
+
* PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
|
|
70312
71267
|
*/
|
|
70313
71268
|
403: BrowserError;
|
|
70314
71269
|
/**
|
|
70315
|
-
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
71270
|
+
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
70316
71271
|
*/
|
|
70317
71272
|
404: BrowserError;
|
|
70318
71273
|
/**
|
|
70319
|
-
* SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
71274
|
+
* SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
70320
71275
|
*/
|
|
70321
71276
|
409: BrowserError;
|
|
71277
|
+
/**
|
|
71278
|
+
* BROWSER_REVOKED
|
|
71279
|
+
*/
|
|
71280
|
+
410: BrowserError;
|
|
70322
71281
|
/**
|
|
70323
71282
|
* ACTION_RESULT_TOO_LARGE
|
|
70324
71283
|
*/
|
|
@@ -70340,7 +71299,7 @@ export type BrowserGetContextErrors = {
|
|
|
70340
71299
|
*/
|
|
70341
71300
|
502: BrowserError;
|
|
70342
71301
|
/**
|
|
70343
|
-
* SERVICE_UNAVAILABLE
|
|
71302
|
+
* BROWSER_OFFLINE / SERVICE_UNAVAILABLE
|
|
70344
71303
|
*/
|
|
70345
71304
|
503: BrowserError;
|
|
70346
71305
|
/**
|
|
@@ -70348,37 +71307,26 @@ export type BrowserGetContextErrors = {
|
|
|
70348
71307
|
*/
|
|
70349
71308
|
504: BrowserError;
|
|
70350
71309
|
};
|
|
70351
|
-
export type
|
|
70352
|
-
export type
|
|
71310
|
+
export type BrowserReadByobPairingError = BrowserReadByobPairingErrors[keyof BrowserReadByobPairingErrors];
|
|
71311
|
+
export type BrowserReadByobPairingResponses = {
|
|
70353
71312
|
/**
|
|
70354
71313
|
* 请求成功。
|
|
70355
71314
|
*/
|
|
70356
|
-
200:
|
|
71315
|
+
200: BrowserByobPairingView;
|
|
70357
71316
|
};
|
|
70358
|
-
export type
|
|
70359
|
-
export type
|
|
70360
|
-
body:
|
|
70361
|
-
/**
|
|
70362
|
-
* 登录态名称;非空时为 1–128 个 ASCII 字母、数字或 . _ : -,在当前账户内唯一;空字符串表示不设名称或清除名称。
|
|
70363
|
-
*/
|
|
70364
|
-
name?: '' | unknown;
|
|
70365
|
-
/**
|
|
70366
|
-
* 自定义字符串标签;最多 32 项,键最多 128 个 UTF-8 字节,值最多 1024 个 UTF-8 字节。 更新时整体替换;空对象清除标签,省略则保留。
|
|
70367
|
-
*/
|
|
70368
|
-
labels?: {
|
|
70369
|
-
[key: string]: string;
|
|
70370
|
-
};
|
|
70371
|
-
};
|
|
71317
|
+
export type BrowserReadByobPairingResponse = BrowserReadByobPairingResponses[keyof BrowserReadByobPairingResponses];
|
|
71318
|
+
export type BrowserClaimByobPairingData = {
|
|
71319
|
+
body: BrowserByobClaim;
|
|
70372
71320
|
path: {
|
|
70373
71321
|
/**
|
|
70374
|
-
*
|
|
71322
|
+
* 8 位配对码,来自创建配对码的结果。
|
|
70375
71323
|
*/
|
|
70376
|
-
|
|
71324
|
+
code: string;
|
|
70377
71325
|
};
|
|
70378
71326
|
query?: never;
|
|
70379
|
-
url: '/browser/v1/
|
|
71327
|
+
url: '/browser/v1/byob/pairings/{code}/claim';
|
|
70380
71328
|
};
|
|
70381
|
-
export type
|
|
71329
|
+
export type BrowserClaimByobPairingErrors = {
|
|
70382
71330
|
/**
|
|
70383
71331
|
* INVALID_PARAMS / INVALID_FILTER / INVALID_PAGE_TOKEN
|
|
70384
71332
|
*/
|
|
@@ -70392,17 +71340,21 @@ export type BrowserUpdateContextErrors = {
|
|
|
70392
71340
|
*/
|
|
70393
71341
|
402: BrowserError;
|
|
70394
71342
|
/**
|
|
70395
|
-
* PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
|
|
71343
|
+
* PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
|
|
70396
71344
|
*/
|
|
70397
71345
|
403: BrowserError;
|
|
70398
71346
|
/**
|
|
70399
|
-
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
71347
|
+
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
70400
71348
|
*/
|
|
70401
71349
|
404: BrowserError;
|
|
70402
71350
|
/**
|
|
70403
|
-
* SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
71351
|
+
* SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
70404
71352
|
*/
|
|
70405
71353
|
409: BrowserError;
|
|
71354
|
+
/**
|
|
71355
|
+
* BROWSER_REVOKED
|
|
71356
|
+
*/
|
|
71357
|
+
410: BrowserError;
|
|
70406
71358
|
/**
|
|
70407
71359
|
* ACTION_RESULT_TOO_LARGE
|
|
70408
71360
|
*/
|
|
@@ -70424,7 +71376,7 @@ export type BrowserUpdateContextErrors = {
|
|
|
70424
71376
|
*/
|
|
70425
71377
|
502: BrowserError;
|
|
70426
71378
|
/**
|
|
70427
|
-
* SERVICE_UNAVAILABLE
|
|
71379
|
+
* BROWSER_OFFLINE / SERVICE_UNAVAILABLE
|
|
70428
71380
|
*/
|
|
70429
71381
|
503: BrowserError;
|
|
70430
71382
|
/**
|
|
@@ -70432,14 +71384,14 @@ export type BrowserUpdateContextErrors = {
|
|
|
70432
71384
|
*/
|
|
70433
71385
|
504: BrowserError;
|
|
70434
71386
|
};
|
|
70435
|
-
export type
|
|
70436
|
-
export type
|
|
71387
|
+
export type BrowserClaimByobPairingError = BrowserClaimByobPairingErrors[keyof BrowserClaimByobPairingErrors];
|
|
71388
|
+
export type BrowserClaimByobPairingResponses = {
|
|
70437
71389
|
/**
|
|
70438
|
-
*
|
|
71390
|
+
* 认领成功。
|
|
70439
71391
|
*/
|
|
70440
|
-
|
|
71392
|
+
201: BrowserByobClaimResult;
|
|
70441
71393
|
};
|
|
70442
|
-
export type
|
|
71394
|
+
export type BrowserClaimByobPairingResponse = BrowserClaimByobPairingResponses[keyof BrowserClaimByobPairingResponses];
|
|
70443
71395
|
export type BrowserConnectData = {
|
|
70444
71396
|
body?: never;
|
|
70445
71397
|
path?: never;
|
|
@@ -70497,17 +71449,21 @@ export type BrowserConnectErrors = {
|
|
|
70497
71449
|
*/
|
|
70498
71450
|
402: BrowserError;
|
|
70499
71451
|
/**
|
|
70500
|
-
* PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
|
|
71452
|
+
* PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
|
|
70501
71453
|
*/
|
|
70502
71454
|
403: BrowserError;
|
|
70503
71455
|
/**
|
|
70504
|
-
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
71456
|
+
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
70505
71457
|
*/
|
|
70506
71458
|
404: BrowserError;
|
|
70507
71459
|
/**
|
|
70508
|
-
* SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
71460
|
+
* SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
70509
71461
|
*/
|
|
70510
71462
|
409: BrowserError;
|
|
71463
|
+
/**
|
|
71464
|
+
* BROWSER_REVOKED
|
|
71465
|
+
*/
|
|
71466
|
+
410: BrowserError;
|
|
70511
71467
|
/**
|
|
70512
71468
|
* ACTION_RESULT_TOO_LARGE
|
|
70513
71469
|
*/
|
|
@@ -70529,7 +71485,7 @@ export type BrowserConnectErrors = {
|
|
|
70529
71485
|
*/
|
|
70530
71486
|
502: BrowserError;
|
|
70531
71487
|
/**
|
|
70532
|
-
* SERVICE_UNAVAILABLE
|
|
71488
|
+
* BROWSER_OFFLINE / SERVICE_UNAVAILABLE
|
|
70533
71489
|
*/
|
|
70534
71490
|
503: BrowserError;
|
|
70535
71491
|
/**
|
|
@@ -70572,17 +71528,21 @@ export type BrowserLiveViewErrors = {
|
|
|
70572
71528
|
*/
|
|
70573
71529
|
402: BrowserError;
|
|
70574
71530
|
/**
|
|
70575
|
-
* PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
|
|
71531
|
+
* PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
|
|
70576
71532
|
*/
|
|
70577
71533
|
403: BrowserError;
|
|
70578
71534
|
/**
|
|
70579
|
-
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
71535
|
+
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
70580
71536
|
*/
|
|
70581
71537
|
404: BrowserError;
|
|
70582
71538
|
/**
|
|
70583
|
-
* SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
71539
|
+
* SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
70584
71540
|
*/
|
|
70585
71541
|
409: BrowserError;
|
|
71542
|
+
/**
|
|
71543
|
+
* BROWSER_REVOKED
|
|
71544
|
+
*/
|
|
71545
|
+
410: BrowserError;
|
|
70586
71546
|
/**
|
|
70587
71547
|
* ACTION_RESULT_TOO_LARGE
|
|
70588
71548
|
*/
|
|
@@ -70604,7 +71564,7 @@ export type BrowserLiveViewErrors = {
|
|
|
70604
71564
|
*/
|
|
70605
71565
|
502: BrowserError;
|
|
70606
71566
|
/**
|
|
70607
|
-
* SERVICE_UNAVAILABLE
|
|
71567
|
+
* BROWSER_OFFLINE / SERVICE_UNAVAILABLE
|
|
70608
71568
|
*/
|
|
70609
71569
|
503: BrowserError;
|
|
70610
71570
|
/**
|
|
@@ -70638,17 +71598,21 @@ export type BrowserStreamSessionErrors = {
|
|
|
70638
71598
|
*/
|
|
70639
71599
|
402: BrowserError;
|
|
70640
71600
|
/**
|
|
70641
|
-
* PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
|
|
71601
|
+
* PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
|
|
70642
71602
|
*/
|
|
70643
71603
|
403: BrowserError;
|
|
70644
71604
|
/**
|
|
70645
|
-
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
71605
|
+
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
70646
71606
|
*/
|
|
70647
71607
|
404: BrowserError;
|
|
70648
71608
|
/**
|
|
70649
|
-
* SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
71609
|
+
* SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
70650
71610
|
*/
|
|
70651
71611
|
409: BrowserError;
|
|
71612
|
+
/**
|
|
71613
|
+
* BROWSER_REVOKED
|
|
71614
|
+
*/
|
|
71615
|
+
410: BrowserError;
|
|
70652
71616
|
/**
|
|
70653
71617
|
* ACTION_RESULT_TOO_LARGE
|
|
70654
71618
|
*/
|
|
@@ -70670,7 +71634,7 @@ export type BrowserStreamSessionErrors = {
|
|
|
70670
71634
|
*/
|
|
70671
71635
|
502: BrowserError;
|
|
70672
71636
|
/**
|
|
70673
|
-
* SERVICE_UNAVAILABLE
|
|
71637
|
+
* BROWSER_OFFLINE / SERVICE_UNAVAILABLE
|
|
70674
71638
|
*/
|
|
70675
71639
|
503: BrowserError;
|
|
70676
71640
|
/**
|
|
@@ -70711,17 +71675,21 @@ export type BrowserStreamSessionFramesErrors = {
|
|
|
70711
71675
|
*/
|
|
70712
71676
|
402: BrowserError;
|
|
70713
71677
|
/**
|
|
70714
|
-
* PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
|
|
71678
|
+
* PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
|
|
70715
71679
|
*/
|
|
70716
71680
|
403: BrowserError;
|
|
70717
71681
|
/**
|
|
70718
|
-
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
71682
|
+
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
70719
71683
|
*/
|
|
70720
71684
|
404: BrowserError;
|
|
70721
71685
|
/**
|
|
70722
|
-
* SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
71686
|
+
* SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
70723
71687
|
*/
|
|
70724
71688
|
409: BrowserError;
|
|
71689
|
+
/**
|
|
71690
|
+
* BROWSER_REVOKED
|
|
71691
|
+
*/
|
|
71692
|
+
410: BrowserError;
|
|
70725
71693
|
/**
|
|
70726
71694
|
* ACTION_RESULT_TOO_LARGE
|
|
70727
71695
|
*/
|
|
@@ -70743,7 +71711,7 @@ export type BrowserStreamSessionFramesErrors = {
|
|
|
70743
71711
|
*/
|
|
70744
71712
|
502: BrowserError;
|
|
70745
71713
|
/**
|
|
70746
|
-
* SERVICE_UNAVAILABLE
|
|
71714
|
+
* BROWSER_OFFLINE / SERVICE_UNAVAILABLE
|
|
70747
71715
|
*/
|
|
70748
71716
|
503: BrowserError;
|
|
70749
71717
|
/**
|
|
@@ -78048,10 +79016,18 @@ export type GetOrganizationNotificationsInboxData = {
|
|
|
78048
79016
|
url: '/organization/v1/notifications/inbox';
|
|
78049
79017
|
};
|
|
78050
79018
|
export type GetOrganizationNotificationsInboxErrors = {
|
|
79019
|
+
/**
|
|
79020
|
+
* `INVALID_PARAMS` from the service for a read it cannot answer (RFC 9457 problem).
|
|
79021
|
+
*/
|
|
79022
|
+
400: unknown;
|
|
78051
79023
|
/**
|
|
78052
79024
|
* Missing or invalid credential (RFC 9457 problem).
|
|
78053
79025
|
*/
|
|
78054
79026
|
401: unknown;
|
|
79027
|
+
/**
|
|
79028
|
+
* The notification service did not answer, or failed in a way it did not classify (RFC 9457 problem, `UNAVAILABLE`). A refusal the service classifies is never a 502 — it reaches the caller in its own class (400, 403, 404), so a client may act on it.
|
|
79029
|
+
*/
|
|
79030
|
+
502: unknown;
|
|
78055
79031
|
};
|
|
78056
79032
|
export type GetOrganizationNotificationsInboxResponses = {
|
|
78057
79033
|
/**
|
|
@@ -78352,13 +79328,17 @@ export type ReadAllOrganizationNotificationLettersData = {
|
|
|
78352
79328
|
};
|
|
78353
79329
|
export type ReadAllOrganizationNotificationLettersErrors = {
|
|
78354
79330
|
/**
|
|
78355
|
-
* The body is not a JSON object,
|
|
79331
|
+
* The body is not a JSON object, `kind` is unknown, or `INVALID_PARAMS` from the service (RFC 9457 problem).
|
|
78356
79332
|
*/
|
|
78357
79333
|
400: unknown;
|
|
78358
79334
|
/**
|
|
78359
79335
|
* Missing or invalid credential (RFC 9457 problem).
|
|
78360
79336
|
*/
|
|
78361
79337
|
401: unknown;
|
|
79338
|
+
/**
|
|
79339
|
+
* The notification service did not answer, or failed in a way it did not classify (RFC 9457 problem, `UNAVAILABLE`). A refusal the service classifies is never a 502 — it reaches the caller in its own class (400, 403, 404), so a client may act on it.
|
|
79340
|
+
*/
|
|
79341
|
+
502: unknown;
|
|
78362
79342
|
};
|
|
78363
79343
|
export type ReadAllOrganizationNotificationLettersResponses = {
|
|
78364
79344
|
/**
|
|
@@ -78424,6 +79404,10 @@ export type GetOrganizationNotificationPreferencesErrors = {
|
|
|
78424
79404
|
* Missing or invalid credential (RFC 9457 problem).
|
|
78425
79405
|
*/
|
|
78426
79406
|
401: unknown;
|
|
79407
|
+
/**
|
|
79408
|
+
* The notification service did not answer, or failed in a way it did not classify (RFC 9457 problem, `UNAVAILABLE`). A refusal the service classifies is never a 502 — it reaches the caller in its own class (400, 403, 404), so a client may act on it.
|
|
79409
|
+
*/
|
|
79410
|
+
502: unknown;
|
|
78427
79411
|
};
|
|
78428
79412
|
export type GetOrganizationNotificationPreferencesResponses = {
|
|
78429
79413
|
/**
|
|
@@ -78515,7 +79499,7 @@ export type UpdateOrganizationNotificationPreferencesData = {
|
|
|
78515
79499
|
};
|
|
78516
79500
|
export type UpdateOrganizationNotificationPreferencesErrors = {
|
|
78517
79501
|
/**
|
|
78518
|
-
* Invalid switch, unknown category or unoffered channel (RFC 9457 problem).
|
|
79502
|
+
* Invalid switch, unknown category or unoffered channel — `INVALID_PARAMS`, `NOT_CONFIGURABLE` or `CRITICAL_CHANNELS_OFF` from the service (RFC 9457 problem).
|
|
78519
79503
|
*/
|
|
78520
79504
|
400: unknown;
|
|
78521
79505
|
/**
|
|
@@ -78523,9 +79507,13 @@ export type UpdateOrganizationNotificationPreferencesErrors = {
|
|
|
78523
79507
|
*/
|
|
78524
79508
|
401: unknown;
|
|
78525
79509
|
/**
|
|
78526
|
-
* The organization does not let members change their own switches (
|
|
79510
|
+
* The organization does not let members change their own switches — `ORGANIZATION_LOCKED` from the service (RFC 9457 problem).
|
|
78527
79511
|
*/
|
|
78528
79512
|
403: unknown;
|
|
79513
|
+
/**
|
|
79514
|
+
* The notification service did not answer, or failed in a way it did not classify (RFC 9457 problem, `UNAVAILABLE`). A refusal the service classifies is never a 502 — it reaches the caller in its own class (400, 403, 404), so a client may act on it.
|
|
79515
|
+
*/
|
|
79516
|
+
502: unknown;
|
|
78529
79517
|
};
|
|
78530
79518
|
export type UpdateOrganizationNotificationPreferencesResponses = {
|
|
78531
79519
|
/**
|
|
@@ -78547,6 +79535,10 @@ export type GetOrganizationNotificationDefaultsErrors = {
|
|
|
78547
79535
|
* Missing or invalid credential (RFC 9457 problem).
|
|
78548
79536
|
*/
|
|
78549
79537
|
401: unknown;
|
|
79538
|
+
/**
|
|
79539
|
+
* The notification service did not answer, or failed in a way it did not classify (RFC 9457 problem, `UNAVAILABLE`). A refusal the service classifies is never a 502 — it reaches the caller in its own class (400, 403, 404), so a client may act on it.
|
|
79540
|
+
*/
|
|
79541
|
+
502: unknown;
|
|
78550
79542
|
};
|
|
78551
79543
|
export type GetOrganizationNotificationDefaultsResponses = {
|
|
78552
79544
|
/**
|
|
@@ -78626,13 +79618,17 @@ export type ListOrganizationNotificationDeliveriesData = {
|
|
|
78626
79618
|
};
|
|
78627
79619
|
export type ListOrganizationNotificationDeliveriesErrors = {
|
|
78628
79620
|
/**
|
|
78629
|
-
* Invalid limit or page cursor (RFC 9457 problem).
|
|
79621
|
+
* Invalid limit, or `INVALID_PARAMS` from the service for a page cursor it did not issue (RFC 9457 problem).
|
|
78630
79622
|
*/
|
|
78631
79623
|
400: unknown;
|
|
78632
79624
|
/**
|
|
78633
79625
|
* Missing or invalid credential (RFC 9457 problem).
|
|
78634
79626
|
*/
|
|
78635
79627
|
401: unknown;
|
|
79628
|
+
/**
|
|
79629
|
+
* The notification service did not answer, or failed in a way it did not classify (RFC 9457 problem, `UNAVAILABLE`). A refusal the service classifies is never a 502 — it reaches the caller in its own class (400, 403, 404), so a client may act on it.
|
|
79630
|
+
*/
|
|
79631
|
+
502: unknown;
|
|
78636
79632
|
};
|
|
78637
79633
|
export type ListOrganizationNotificationDeliveriesResponses = {
|
|
78638
79634
|
/**
|
|
@@ -79899,6 +80895,19 @@ export type ListByodDevicesResponses = {
|
|
|
79899
80895
|
* The absolute directories a desktop registered for agent sessions with its last hello; a session may only start in one of these. Empty for a phone and for a desktop that has not connected yet.
|
|
79900
80896
|
*/
|
|
79901
80897
|
agent_dirs: Array<string>;
|
|
80898
|
+
/**
|
|
80899
|
+
* Which agent each registered directory is bound to, as the desktop's last hello reported. Empty for a phone and for a desktop that has not connected yet.
|
|
80900
|
+
*/
|
|
80901
|
+
agent_bindings: Array<{
|
|
80902
|
+
/**
|
|
80903
|
+
* The absolute directory the desktop bound to an agent with praxis agent connect.
|
|
80904
|
+
*/
|
|
80905
|
+
dir: string;
|
|
80906
|
+
/**
|
|
80907
|
+
* The agent the directory is bound to: its identity number or its agent id.
|
|
80908
|
+
*/
|
|
80909
|
+
agent: string;
|
|
80910
|
+
}>;
|
|
79902
80911
|
/**
|
|
79903
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.
|
|
79904
80913
|
*/
|
|
@@ -79981,6 +80990,19 @@ export type GetByodDeviceResponses = {
|
|
|
79981
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.
|
|
79982
80991
|
*/
|
|
79983
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
|
+
}>;
|
|
79984
81006
|
/**
|
|
79985
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.
|
|
79986
81008
|
*/
|
|
@@ -80074,6 +81096,19 @@ export type UpdateByodDeviceResponses = {
|
|
|
80074
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.
|
|
80075
81097
|
*/
|
|
80076
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
|
+
}>;
|
|
80077
81112
|
/**
|
|
80078
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.
|
|
80079
81114
|
*/
|
|
@@ -83367,6 +84402,15 @@ export type AgentsListResponses = {
|
|
|
83367
84402
|
name: string;
|
|
83368
84403
|
}>;
|
|
83369
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;
|
|
83370
84414
|
/**
|
|
83371
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.
|
|
83372
84416
|
*/
|
|
@@ -84316,6 +85360,15 @@ export type AgentsCreateData = {
|
|
|
84316
85360
|
name: string;
|
|
84317
85361
|
}>;
|
|
84318
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;
|
|
84319
85372
|
/**
|
|
84320
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.
|
|
84321
85374
|
*/
|
|
@@ -84571,6 +85624,15 @@ export type AgentsCreateResponses = {
|
|
|
84571
85624
|
name: string;
|
|
84572
85625
|
}>;
|
|
84573
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;
|
|
84574
85636
|
/**
|
|
84575
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.
|
|
84576
85638
|
*/
|
|
@@ -85233,6 +86295,15 @@ export type AgentsRetrieveResponses = {
|
|
|
85233
86295
|
name: string;
|
|
85234
86296
|
}>;
|
|
85235
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;
|
|
85236
86307
|
/**
|
|
85237
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.
|
|
85238
86309
|
*/
|
|
@@ -86191,6 +87262,15 @@ export type AgentsUpdateData = {
|
|
|
86191
87262
|
name: string;
|
|
86192
87263
|
}>;
|
|
86193
87264
|
};
|
|
87265
|
+
/**
|
|
87266
|
+
* ADR-205: which browser the agent drives. {byob: byb_…} names one of your organization's paired browsers (browser.byob.browsers.list), which the agent then drives through connect() instead of a cloud browser; null or absent is the cloud browser. The browser must belong to your organization (otherwise 400) and must grant this agent before a session can open it. Omit on update to keep it, send an object to replace it, or null to go back to the cloud browser. /agent/v1 only.
|
|
87267
|
+
*/
|
|
87268
|
+
browser?: {
|
|
87269
|
+
/**
|
|
87270
|
+
* A paired browser's id (byb_ and 26 lowercase hex characters), from browser.byob.browsers.list.
|
|
87271
|
+
*/
|
|
87272
|
+
byob: string;
|
|
87273
|
+
} | null;
|
|
86194
87274
|
/**
|
|
86195
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.
|
|
86196
87276
|
*/
|
|
@@ -86459,6 +87539,15 @@ export type AgentsUpdateResponses = {
|
|
|
86459
87539
|
name: string;
|
|
86460
87540
|
}>;
|
|
86461
87541
|
};
|
|
87542
|
+
/**
|
|
87543
|
+
* ADR-205: which browser the agent drives. {byob: byb_…} names one of your organization's paired browsers (browser.byob.browsers.list), which the agent then drives through connect() instead of a cloud browser; null or absent is the cloud browser. The browser must belong to your organization (otherwise 400) and must grant this agent before a session can open it. Omit on update to keep it, send an object to replace it, or null to go back to the cloud browser. /agent/v1 only.
|
|
87544
|
+
*/
|
|
87545
|
+
browser?: {
|
|
87546
|
+
/**
|
|
87547
|
+
* A paired browser's id (byb_ and 26 lowercase hex characters), from browser.byob.browsers.list.
|
|
87548
|
+
*/
|
|
87549
|
+
byob: string;
|
|
87550
|
+
} | null;
|
|
86462
87551
|
/**
|
|
86463
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.
|
|
86464
87553
|
*/
|
|
@@ -87747,6 +88836,15 @@ export type AgentsVersionsListResponses = {
|
|
|
87747
88836
|
name: string;
|
|
87748
88837
|
}>;
|
|
87749
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;
|
|
87750
88848
|
/**
|
|
87751
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.
|
|
87752
88850
|
*/
|
|
@@ -111139,6 +112237,51 @@ export type DevopsChangesMarkLastSliceResponses = {
|
|
|
111139
112237
|
200: DevopsChange;
|
|
111140
112238
|
};
|
|
111141
112239
|
export type DevopsChangesMarkLastSliceResponse = DevopsChangesMarkLastSliceResponses[keyof DevopsChangesMarkLastSliceResponses];
|
|
112240
|
+
export type DevopsChangesSlicesCreateData = {
|
|
112241
|
+
body?: DevopsChangeSliceCreateRequest;
|
|
112242
|
+
path: {
|
|
112243
|
+
/**
|
|
112244
|
+
* Identifies the project whose data you are reading, from the project list or create answer.
|
|
112245
|
+
*/
|
|
112246
|
+
project: string;
|
|
112247
|
+
/**
|
|
112248
|
+
* The change whose slice you are opening: its id, which is its branch name <type>/<slug> from a change list or create answer. Give it as it comes back — `feat/run-page-v2`; the SDK and the CLI encode the slash themselves.
|
|
112249
|
+
*/
|
|
112250
|
+
change: string;
|
|
112251
|
+
};
|
|
112252
|
+
query?: never;
|
|
112253
|
+
url: '/devops/v1/projects/{project}/changes/{change}/slices';
|
|
112254
|
+
};
|
|
112255
|
+
export type DevopsChangesSlicesCreateErrors = {
|
|
112256
|
+
/**
|
|
112257
|
+
* INVALID_ARGUMENT means the change is abandoned, or from names a branch that does not belong to this change; nothing was cut. Open a new change, or pick from the change's own branches.
|
|
112258
|
+
*/
|
|
112259
|
+
400: DevopsDevOpsError;
|
|
112260
|
+
/**
|
|
112261
|
+
* The API key is missing or invalid; send a valid Praxis API key in the Authorization header before retrying.
|
|
112262
|
+
*/
|
|
112263
|
+
401: DevopsDevOpsError;
|
|
112264
|
+
/**
|
|
112265
|
+
* The credential carries no organization, or that organization cannot reach this project; use a key belonging to the project's organization. No cross-organization read is possible.
|
|
112266
|
+
*/
|
|
112267
|
+
403: DevopsDevOpsError;
|
|
112268
|
+
/**
|
|
112269
|
+
* CHANGE_NOT_FOUND means no change with that id exists in this organization; list the project's changes and use an id from that answer, with its slash percent-encoded.
|
|
112270
|
+
*/
|
|
112271
|
+
404: DevopsDevOpsError;
|
|
112272
|
+
/**
|
|
112273
|
+
* INTERNAL means the service could not complete the request; retry once, and if it repeats report the request id. A read is safe to repeat; a write that failed this way should be re-read before it is sent again.
|
|
112274
|
+
*/
|
|
112275
|
+
500: DevopsDevOpsError;
|
|
112276
|
+
};
|
|
112277
|
+
export type DevopsChangesSlicesCreateError = DevopsChangesSlicesCreateErrors[keyof DevopsChangesSlicesCreateErrors];
|
|
112278
|
+
export type DevopsChangesSlicesCreateResponses = {
|
|
112279
|
+
/**
|
|
112280
|
+
* The new slice: its branch, the directory to work in and the workspace that holds it. Calling again opens a further slice; it does not return the previous one.
|
|
112281
|
+
*/
|
|
112282
|
+
200: DevopsChangeSliceOpened;
|
|
112283
|
+
};
|
|
112284
|
+
export type DevopsChangesSlicesCreateResponse = DevopsChangesSlicesCreateResponses[keyof DevopsChangesSlicesCreateResponses];
|
|
111142
112285
|
export type DevopsChangesOpenPullRequestData = {
|
|
111143
112286
|
body?: DevopsChangeOpenPullRequestRequest;
|
|
111144
112287
|
path: {
|