@deepraxis/sdk 0.2.0-dev.6528e7c → 0.2.0-dev.826472f
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/METHODS.md +35 -1
- package/dist/generated/index.d.ts +2 -2
- package/dist/generated/index.js +1 -1
- package/dist/generated/sdk.gen.d.ts +51 -3
- package/dist/generated/sdk.gen.js +113 -2
- package/dist/generated/types.gen.d.ts +1473 -410
- 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 +257 -2
- package/dist/resources.generated.d.ts +56 -0
- package/dist/resources.generated.js +20 -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
|
*/
|
|
@@ -54981,6 +55207,15 @@ export type ApplyAgentVersionResponses = {
|
|
|
54981
55207
|
name: string;
|
|
54982
55208
|
}>;
|
|
54983
55209
|
};
|
|
55210
|
+
/**
|
|
55211
|
+
* ADR-205: which browser the agent drives. {byob: byb_…} names one of your organization's paired browsers (browser.byob.browsers.list), which the agent then drives through connect() instead of a cloud browser; null or absent is the cloud browser. The browser must belong to your organization (otherwise 400) and must grant this agent before a session can open it. Omit on update to keep it, send an object to replace it, or null to go back to the cloud browser. /agent/v1 only.
|
|
55212
|
+
*/
|
|
55213
|
+
browser?: {
|
|
55214
|
+
/**
|
|
55215
|
+
* A paired browser's id (byb_ and 26 lowercase hex characters), from browser.byob.browsers.list.
|
|
55216
|
+
*/
|
|
55217
|
+
byob: string;
|
|
55218
|
+
} | null;
|
|
54984
55219
|
/**
|
|
54985
55220
|
* Praxis extension: MA only has session-scoped temporary containers and memory_stores, not durable browsable computers. computer_id selects a tenant-owned active computer. Session selection overrides the agent default; a sandbox environment_id and computer_id cannot be combined. Omitted when no computer is selected.
|
|
54986
55221
|
*/
|
|
@@ -56232,6 +56467,15 @@ export type UnarchiveAgentResponses = {
|
|
|
56232
56467
|
name: string;
|
|
56233
56468
|
}>;
|
|
56234
56469
|
};
|
|
56470
|
+
/**
|
|
56471
|
+
* ADR-205: which browser the agent drives. {byob: byb_…} names one of your organization's paired browsers (browser.byob.browsers.list), which the agent then drives through connect() instead of a cloud browser; null or absent is the cloud browser. The browser must belong to your organization (otherwise 400) and must grant this agent before a session can open it. Omit on update to keep it, send an object to replace it, or null to go back to the cloud browser. /agent/v1 only.
|
|
56472
|
+
*/
|
|
56473
|
+
browser?: {
|
|
56474
|
+
/**
|
|
56475
|
+
* A paired browser's id (byb_ and 26 lowercase hex characters), from browser.byob.browsers.list.
|
|
56476
|
+
*/
|
|
56477
|
+
byob: string;
|
|
56478
|
+
} | null;
|
|
56235
56479
|
/**
|
|
56236
56480
|
* Praxis extension: MA only has session-scoped temporary containers and memory_stores, not durable browsable computers. computer_id selects a tenant-owned active computer. Session selection overrides the agent default; a sandbox environment_id and computer_id cannot be combined. Omitted when no computer is selected.
|
|
56237
56481
|
*/
|
|
@@ -68862,17 +69106,21 @@ export type BrowserListSessionsErrors = {
|
|
|
68862
69106
|
*/
|
|
68863
69107
|
402: BrowserError;
|
|
68864
69108
|
/**
|
|
68865
|
-
* PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
|
|
69109
|
+
* PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
|
|
68866
69110
|
*/
|
|
68867
69111
|
403: BrowserError;
|
|
68868
69112
|
/**
|
|
68869
|
-
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
69113
|
+
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
68870
69114
|
*/
|
|
68871
69115
|
404: BrowserError;
|
|
68872
69116
|
/**
|
|
68873
|
-
* SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
69117
|
+
* SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
68874
69118
|
*/
|
|
68875
69119
|
409: BrowserError;
|
|
69120
|
+
/**
|
|
69121
|
+
* BROWSER_REVOKED
|
|
69122
|
+
*/
|
|
69123
|
+
410: BrowserError;
|
|
68876
69124
|
/**
|
|
68877
69125
|
* ACTION_RESULT_TOO_LARGE
|
|
68878
69126
|
*/
|
|
@@ -68894,7 +69142,7 @@ export type BrowserListSessionsErrors = {
|
|
|
68894
69142
|
*/
|
|
68895
69143
|
502: BrowserError;
|
|
68896
69144
|
/**
|
|
68897
|
-
* SERVICE_UNAVAILABLE
|
|
69145
|
+
* BROWSER_OFFLINE / SERVICE_UNAVAILABLE
|
|
68898
69146
|
*/
|
|
68899
69147
|
503: BrowserError;
|
|
68900
69148
|
/**
|
|
@@ -68939,17 +69187,21 @@ export type BrowserCreateSessionErrors = {
|
|
|
68939
69187
|
*/
|
|
68940
69188
|
402: BrowserError;
|
|
68941
69189
|
/**
|
|
68942
|
-
* PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
|
|
69190
|
+
* PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
|
|
68943
69191
|
*/
|
|
68944
69192
|
403: BrowserError;
|
|
68945
69193
|
/**
|
|
68946
|
-
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
69194
|
+
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
68947
69195
|
*/
|
|
68948
69196
|
404: BrowserError;
|
|
68949
69197
|
/**
|
|
68950
|
-
* SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
69198
|
+
* SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
68951
69199
|
*/
|
|
68952
69200
|
409: BrowserError;
|
|
69201
|
+
/**
|
|
69202
|
+
* BROWSER_REVOKED
|
|
69203
|
+
*/
|
|
69204
|
+
410: BrowserError;
|
|
68953
69205
|
/**
|
|
68954
69206
|
* ACTION_RESULT_TOO_LARGE
|
|
68955
69207
|
*/
|
|
@@ -68971,7 +69223,7 @@ export type BrowserCreateSessionErrors = {
|
|
|
68971
69223
|
*/
|
|
68972
69224
|
502: BrowserError;
|
|
68973
69225
|
/**
|
|
68974
|
-
* SERVICE_UNAVAILABLE
|
|
69226
|
+
* BROWSER_OFFLINE / SERVICE_UNAVAILABLE
|
|
68975
69227
|
*/
|
|
68976
69228
|
503: BrowserError;
|
|
68977
69229
|
/**
|
|
@@ -68981,6 +69233,10 @@ export type BrowserCreateSessionErrors = {
|
|
|
68981
69233
|
};
|
|
68982
69234
|
export type BrowserCreateSessionError = BrowserCreateSessionErrors[keyof BrowserCreateSessionErrors];
|
|
68983
69235
|
export type BrowserCreateSessionResponses = {
|
|
69236
|
+
/**
|
|
69237
|
+
* 请求成功。
|
|
69238
|
+
*/
|
|
69239
|
+
200: BrowserSessionCreateResult;
|
|
68984
69240
|
/**
|
|
68985
69241
|
* 请求成功。
|
|
68986
69242
|
*/
|
|
@@ -69017,17 +69273,21 @@ export type BrowserGetSessionErrors = {
|
|
|
69017
69273
|
*/
|
|
69018
69274
|
402: BrowserError;
|
|
69019
69275
|
/**
|
|
69020
|
-
* PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
|
|
69276
|
+
* PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
|
|
69021
69277
|
*/
|
|
69022
69278
|
403: BrowserError;
|
|
69023
69279
|
/**
|
|
69024
|
-
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
69280
|
+
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
69025
69281
|
*/
|
|
69026
69282
|
404: BrowserError;
|
|
69027
69283
|
/**
|
|
69028
|
-
* SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
69284
|
+
* SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
69029
69285
|
*/
|
|
69030
69286
|
409: BrowserError;
|
|
69287
|
+
/**
|
|
69288
|
+
* BROWSER_REVOKED
|
|
69289
|
+
*/
|
|
69290
|
+
410: BrowserError;
|
|
69031
69291
|
/**
|
|
69032
69292
|
* ACTION_RESULT_TOO_LARGE
|
|
69033
69293
|
*/
|
|
@@ -69049,7 +69309,7 @@ export type BrowserGetSessionErrors = {
|
|
|
69049
69309
|
*/
|
|
69050
69310
|
502: BrowserError;
|
|
69051
69311
|
/**
|
|
69052
|
-
* SERVICE_UNAVAILABLE
|
|
69312
|
+
* BROWSER_OFFLINE / SERVICE_UNAVAILABLE
|
|
69053
69313
|
*/
|
|
69054
69314
|
503: BrowserError;
|
|
69055
69315
|
/**
|
|
@@ -69095,17 +69355,21 @@ export type BrowserCloseSessionErrors = {
|
|
|
69095
69355
|
*/
|
|
69096
69356
|
402: BrowserError;
|
|
69097
69357
|
/**
|
|
69098
|
-
* PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
|
|
69358
|
+
* PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
|
|
69099
69359
|
*/
|
|
69100
69360
|
403: BrowserError;
|
|
69101
69361
|
/**
|
|
69102
|
-
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
69362
|
+
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
69103
69363
|
*/
|
|
69104
69364
|
404: BrowserError;
|
|
69105
69365
|
/**
|
|
69106
|
-
* SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
69366
|
+
* SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
69107
69367
|
*/
|
|
69108
69368
|
409: BrowserError;
|
|
69369
|
+
/**
|
|
69370
|
+
* BROWSER_REVOKED
|
|
69371
|
+
*/
|
|
69372
|
+
410: BrowserError;
|
|
69109
69373
|
/**
|
|
69110
69374
|
* ACTION_RESULT_TOO_LARGE
|
|
69111
69375
|
*/
|
|
@@ -69127,7 +69391,7 @@ export type BrowserCloseSessionErrors = {
|
|
|
69127
69391
|
*/
|
|
69128
69392
|
502: BrowserError;
|
|
69129
69393
|
/**
|
|
69130
|
-
* SERVICE_UNAVAILABLE
|
|
69394
|
+
* BROWSER_OFFLINE / SERVICE_UNAVAILABLE
|
|
69131
69395
|
*/
|
|
69132
69396
|
503: BrowserError;
|
|
69133
69397
|
/**
|
|
@@ -69168,17 +69432,21 @@ export type BrowserGetDebugErrors = {
|
|
|
69168
69432
|
*/
|
|
69169
69433
|
402: BrowserError;
|
|
69170
69434
|
/**
|
|
69171
|
-
* PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
|
|
69435
|
+
* PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
|
|
69172
69436
|
*/
|
|
69173
69437
|
403: BrowserError;
|
|
69174
69438
|
/**
|
|
69175
|
-
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
69439
|
+
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
69176
69440
|
*/
|
|
69177
69441
|
404: BrowserError;
|
|
69178
69442
|
/**
|
|
69179
|
-
* SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
69443
|
+
* SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
69180
69444
|
*/
|
|
69181
69445
|
409: BrowserError;
|
|
69446
|
+
/**
|
|
69447
|
+
* BROWSER_REVOKED
|
|
69448
|
+
*/
|
|
69449
|
+
410: BrowserError;
|
|
69182
69450
|
/**
|
|
69183
69451
|
* ACTION_RESULT_TOO_LARGE
|
|
69184
69452
|
*/
|
|
@@ -69200,7 +69468,7 @@ export type BrowserGetDebugErrors = {
|
|
|
69200
69468
|
*/
|
|
69201
69469
|
502: BrowserError;
|
|
69202
69470
|
/**
|
|
69203
|
-
* SERVICE_UNAVAILABLE
|
|
69471
|
+
* BROWSER_OFFLINE / SERVICE_UNAVAILABLE
|
|
69204
69472
|
*/
|
|
69205
69473
|
503: BrowserError;
|
|
69206
69474
|
/**
|
|
@@ -69254,17 +69522,21 @@ export type BrowserListEventsErrors = {
|
|
|
69254
69522
|
*/
|
|
69255
69523
|
402: BrowserError;
|
|
69256
69524
|
/**
|
|
69257
|
-
* PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
|
|
69525
|
+
* PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
|
|
69258
69526
|
*/
|
|
69259
69527
|
403: BrowserError;
|
|
69260
69528
|
/**
|
|
69261
|
-
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
69529
|
+
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
69262
69530
|
*/
|
|
69263
69531
|
404: BrowserError;
|
|
69264
69532
|
/**
|
|
69265
|
-
* SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
69533
|
+
* SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
69266
69534
|
*/
|
|
69267
69535
|
409: BrowserError;
|
|
69536
|
+
/**
|
|
69537
|
+
* BROWSER_REVOKED
|
|
69538
|
+
*/
|
|
69539
|
+
410: BrowserError;
|
|
69268
69540
|
/**
|
|
69269
69541
|
* ACTION_RESULT_TOO_LARGE
|
|
69270
69542
|
*/
|
|
@@ -69286,7 +69558,7 @@ export type BrowserListEventsErrors = {
|
|
|
69286
69558
|
*/
|
|
69287
69559
|
502: BrowserError;
|
|
69288
69560
|
/**
|
|
69289
|
-
* SERVICE_UNAVAILABLE
|
|
69561
|
+
* BROWSER_OFFLINE / SERVICE_UNAVAILABLE
|
|
69290
69562
|
*/
|
|
69291
69563
|
503: BrowserError;
|
|
69292
69564
|
/**
|
|
@@ -69533,17 +69805,21 @@ export type BrowserRunPageActionErrors = {
|
|
|
69533
69805
|
*/
|
|
69534
69806
|
402: BrowserError;
|
|
69535
69807
|
/**
|
|
69536
|
-
* PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
|
|
69808
|
+
* PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
|
|
69537
69809
|
*/
|
|
69538
69810
|
403: BrowserError;
|
|
69539
69811
|
/**
|
|
69540
|
-
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
69812
|
+
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
69541
69813
|
*/
|
|
69542
69814
|
404: BrowserError;
|
|
69543
69815
|
/**
|
|
69544
|
-
* SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
69816
|
+
* SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
69545
69817
|
*/
|
|
69546
69818
|
409: BrowserError;
|
|
69819
|
+
/**
|
|
69820
|
+
* BROWSER_REVOKED
|
|
69821
|
+
*/
|
|
69822
|
+
410: BrowserError;
|
|
69547
69823
|
/**
|
|
69548
69824
|
* ACTION_RESULT_TOO_LARGE
|
|
69549
69825
|
*/
|
|
@@ -69565,7 +69841,7 @@ export type BrowserRunPageActionErrors = {
|
|
|
69565
69841
|
*/
|
|
69566
69842
|
502: BrowserError;
|
|
69567
69843
|
/**
|
|
69568
|
-
* SERVICE_UNAVAILABLE
|
|
69844
|
+
* BROWSER_OFFLINE / SERVICE_UNAVAILABLE
|
|
69569
69845
|
*/
|
|
69570
69846
|
503: BrowserError;
|
|
69571
69847
|
/**
|
|
@@ -69751,17 +70027,21 @@ export type BrowserRequestHandoffErrors = {
|
|
|
69751
70027
|
*/
|
|
69752
70028
|
402: BrowserError;
|
|
69753
70029
|
/**
|
|
69754
|
-
* PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
|
|
70030
|
+
* PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
|
|
69755
70031
|
*/
|
|
69756
70032
|
403: BrowserError;
|
|
69757
70033
|
/**
|
|
69758
|
-
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
70034
|
+
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
69759
70035
|
*/
|
|
69760
70036
|
404: BrowserError;
|
|
69761
70037
|
/**
|
|
69762
|
-
* SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
70038
|
+
* SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
69763
70039
|
*/
|
|
69764
70040
|
409: BrowserError;
|
|
70041
|
+
/**
|
|
70042
|
+
* BROWSER_REVOKED
|
|
70043
|
+
*/
|
|
70044
|
+
410: BrowserError;
|
|
69765
70045
|
/**
|
|
69766
70046
|
* ACTION_RESULT_TOO_LARGE
|
|
69767
70047
|
*/
|
|
@@ -69783,7 +70063,7 @@ export type BrowserRequestHandoffErrors = {
|
|
|
69783
70063
|
*/
|
|
69784
70064
|
502: BrowserError;
|
|
69785
70065
|
/**
|
|
69786
|
-
* SERVICE_UNAVAILABLE
|
|
70066
|
+
* BROWSER_OFFLINE / SERVICE_UNAVAILABLE
|
|
69787
70067
|
*/
|
|
69788
70068
|
503: BrowserError;
|
|
69789
70069
|
/**
|
|
@@ -69824,17 +70104,21 @@ export type BrowserCompleteHandoffErrors = {
|
|
|
69824
70104
|
*/
|
|
69825
70105
|
402: BrowserError;
|
|
69826
70106
|
/**
|
|
69827
|
-
* PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
|
|
70107
|
+
* PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
|
|
69828
70108
|
*/
|
|
69829
70109
|
403: BrowserError;
|
|
69830
70110
|
/**
|
|
69831
|
-
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
70111
|
+
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
69832
70112
|
*/
|
|
69833
70113
|
404: BrowserError;
|
|
69834
70114
|
/**
|
|
69835
|
-
* SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
70115
|
+
* SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
69836
70116
|
*/
|
|
69837
70117
|
409: BrowserError;
|
|
70118
|
+
/**
|
|
70119
|
+
* BROWSER_REVOKED
|
|
70120
|
+
*/
|
|
70121
|
+
410: BrowserError;
|
|
69838
70122
|
/**
|
|
69839
70123
|
* ACTION_RESULT_TOO_LARGE
|
|
69840
70124
|
*/
|
|
@@ -69856,7 +70140,7 @@ export type BrowserCompleteHandoffErrors = {
|
|
|
69856
70140
|
*/
|
|
69857
70141
|
502: BrowserError;
|
|
69858
70142
|
/**
|
|
69859
|
-
* SERVICE_UNAVAILABLE
|
|
70143
|
+
* BROWSER_OFFLINE / SERVICE_UNAVAILABLE
|
|
69860
70144
|
*/
|
|
69861
70145
|
503: BrowserError;
|
|
69862
70146
|
/**
|
|
@@ -69906,17 +70190,21 @@ export type BrowserViewerHeartbeatErrors = {
|
|
|
69906
70190
|
*/
|
|
69907
70191
|
402: BrowserError;
|
|
69908
70192
|
/**
|
|
69909
|
-
* PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
|
|
70193
|
+
* PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
|
|
69910
70194
|
*/
|
|
69911
70195
|
403: BrowserError;
|
|
69912
70196
|
/**
|
|
69913
|
-
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
70197
|
+
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
69914
70198
|
*/
|
|
69915
70199
|
404: BrowserError;
|
|
69916
70200
|
/**
|
|
69917
|
-
* SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
70201
|
+
* SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
69918
70202
|
*/
|
|
69919
70203
|
409: BrowserError;
|
|
70204
|
+
/**
|
|
70205
|
+
* BROWSER_REVOKED
|
|
70206
|
+
*/
|
|
70207
|
+
410: BrowserError;
|
|
69920
70208
|
/**
|
|
69921
70209
|
* ACTION_RESULT_TOO_LARGE
|
|
69922
70210
|
*/
|
|
@@ -69938,7 +70226,7 @@ export type BrowserViewerHeartbeatErrors = {
|
|
|
69938
70226
|
*/
|
|
69939
70227
|
502: BrowserError;
|
|
69940
70228
|
/**
|
|
69941
|
-
* SERVICE_UNAVAILABLE
|
|
70229
|
+
* BROWSER_OFFLINE / SERVICE_UNAVAILABLE
|
|
69942
70230
|
*/
|
|
69943
70231
|
503: BrowserError;
|
|
69944
70232
|
/**
|
|
@@ -69984,17 +70272,21 @@ export type BrowserGetSessionFrameErrors = {
|
|
|
69984
70272
|
*/
|
|
69985
70273
|
402: BrowserError;
|
|
69986
70274
|
/**
|
|
69987
|
-
* PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
|
|
70275
|
+
* PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
|
|
69988
70276
|
*/
|
|
69989
70277
|
403: BrowserError;
|
|
69990
70278
|
/**
|
|
69991
|
-
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
70279
|
+
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
69992
70280
|
*/
|
|
69993
70281
|
404: BrowserError;
|
|
69994
70282
|
/**
|
|
69995
|
-
* SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
70283
|
+
* SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
69996
70284
|
*/
|
|
69997
70285
|
409: BrowserError;
|
|
70286
|
+
/**
|
|
70287
|
+
* BROWSER_REVOKED
|
|
70288
|
+
*/
|
|
70289
|
+
410: BrowserError;
|
|
69998
70290
|
/**
|
|
69999
70291
|
* ACTION_RESULT_TOO_LARGE
|
|
70000
70292
|
*/
|
|
@@ -70016,7 +70308,7 @@ export type BrowserGetSessionFrameErrors = {
|
|
|
70016
70308
|
*/
|
|
70017
70309
|
502: BrowserError;
|
|
70018
70310
|
/**
|
|
70019
|
-
* SERVICE_UNAVAILABLE
|
|
70311
|
+
* BROWSER_OFFLINE / SERVICE_UNAVAILABLE
|
|
70020
70312
|
*/
|
|
70021
70313
|
503: BrowserError;
|
|
70022
70314
|
/**
|
|
@@ -70065,17 +70357,21 @@ export type BrowserListContextsErrors = {
|
|
|
70065
70357
|
*/
|
|
70066
70358
|
402: BrowserError;
|
|
70067
70359
|
/**
|
|
70068
|
-
* PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
|
|
70360
|
+
* PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
|
|
70069
70361
|
*/
|
|
70070
70362
|
403: BrowserError;
|
|
70071
70363
|
/**
|
|
70072
|
-
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
70364
|
+
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
70073
70365
|
*/
|
|
70074
70366
|
404: BrowserError;
|
|
70075
70367
|
/**
|
|
70076
|
-
* SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
70368
|
+
* SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
70077
70369
|
*/
|
|
70078
70370
|
409: BrowserError;
|
|
70371
|
+
/**
|
|
70372
|
+
* BROWSER_REVOKED
|
|
70373
|
+
*/
|
|
70374
|
+
410: BrowserError;
|
|
70079
70375
|
/**
|
|
70080
70376
|
* ACTION_RESULT_TOO_LARGE
|
|
70081
70377
|
*/
|
|
@@ -70097,7 +70393,7 @@ export type BrowserListContextsErrors = {
|
|
|
70097
70393
|
*/
|
|
70098
70394
|
502: BrowserError;
|
|
70099
70395
|
/**
|
|
70100
|
-
* SERVICE_UNAVAILABLE
|
|
70396
|
+
* BROWSER_OFFLINE / SERVICE_UNAVAILABLE
|
|
70101
70397
|
*/
|
|
70102
70398
|
503: BrowserError;
|
|
70103
70399
|
/**
|
|
@@ -70157,17 +70453,21 @@ export type BrowserCreateContextErrors = {
|
|
|
70157
70453
|
*/
|
|
70158
70454
|
402: BrowserError;
|
|
70159
70455
|
/**
|
|
70160
|
-
* PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
|
|
70456
|
+
* PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
|
|
70161
70457
|
*/
|
|
70162
70458
|
403: BrowserError;
|
|
70163
70459
|
/**
|
|
70164
|
-
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
70460
|
+
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
70165
70461
|
*/
|
|
70166
70462
|
404: BrowserError;
|
|
70167
70463
|
/**
|
|
70168
|
-
* SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
70464
|
+
* SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
70169
70465
|
*/
|
|
70170
70466
|
409: BrowserError;
|
|
70467
|
+
/**
|
|
70468
|
+
* BROWSER_REVOKED
|
|
70469
|
+
*/
|
|
70470
|
+
410: BrowserError;
|
|
70171
70471
|
/**
|
|
70172
70472
|
* ACTION_RESULT_TOO_LARGE
|
|
70173
70473
|
*/
|
|
@@ -70189,7 +70489,7 @@ export type BrowserCreateContextErrors = {
|
|
|
70189
70489
|
*/
|
|
70190
70490
|
502: BrowserError;
|
|
70191
70491
|
/**
|
|
70192
|
-
* SERVICE_UNAVAILABLE
|
|
70492
|
+
* BROWSER_OFFLINE / SERVICE_UNAVAILABLE
|
|
70193
70493
|
*/
|
|
70194
70494
|
503: BrowserError;
|
|
70195
70495
|
/**
|
|
@@ -70230,17 +70530,21 @@ export type BrowserDeleteContextErrors = {
|
|
|
70230
70530
|
*/
|
|
70231
70531
|
402: BrowserError;
|
|
70232
70532
|
/**
|
|
70233
|
-
* PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
|
|
70533
|
+
* PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
|
|
70234
70534
|
*/
|
|
70235
70535
|
403: BrowserError;
|
|
70236
70536
|
/**
|
|
70237
|
-
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
70537
|
+
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
70238
70538
|
*/
|
|
70239
70539
|
404: BrowserError;
|
|
70240
70540
|
/**
|
|
70241
|
-
* SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
70541
|
+
* SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
70242
70542
|
*/
|
|
70243
70543
|
409: BrowserError;
|
|
70544
|
+
/**
|
|
70545
|
+
* BROWSER_REVOKED
|
|
70546
|
+
*/
|
|
70547
|
+
410: BrowserError;
|
|
70244
70548
|
/**
|
|
70245
70549
|
* ACTION_RESULT_TOO_LARGE
|
|
70246
70550
|
*/
|
|
@@ -70262,7 +70566,7 @@ export type BrowserDeleteContextErrors = {
|
|
|
70262
70566
|
*/
|
|
70263
70567
|
502: BrowserError;
|
|
70264
70568
|
/**
|
|
70265
|
-
* SERVICE_UNAVAILABLE
|
|
70569
|
+
* BROWSER_OFFLINE / SERVICE_UNAVAILABLE
|
|
70266
70570
|
*/
|
|
70267
70571
|
503: BrowserError;
|
|
70268
70572
|
/**
|
|
@@ -70308,17 +70612,21 @@ export type BrowserGetContextErrors = {
|
|
|
70308
70612
|
*/
|
|
70309
70613
|
402: BrowserError;
|
|
70310
70614
|
/**
|
|
70311
|
-
* PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
|
|
70615
|
+
* PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
|
|
70312
70616
|
*/
|
|
70313
70617
|
403: BrowserError;
|
|
70314
70618
|
/**
|
|
70315
|
-
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
70619
|
+
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
70316
70620
|
*/
|
|
70317
70621
|
404: BrowserError;
|
|
70318
70622
|
/**
|
|
70319
|
-
* SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
70623
|
+
* SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
70320
70624
|
*/
|
|
70321
70625
|
409: BrowserError;
|
|
70626
|
+
/**
|
|
70627
|
+
* BROWSER_REVOKED
|
|
70628
|
+
*/
|
|
70629
|
+
410: BrowserError;
|
|
70322
70630
|
/**
|
|
70323
70631
|
* ACTION_RESULT_TOO_LARGE
|
|
70324
70632
|
*/
|
|
@@ -70340,7 +70648,7 @@ export type BrowserGetContextErrors = {
|
|
|
70340
70648
|
*/
|
|
70341
70649
|
502: BrowserError;
|
|
70342
70650
|
/**
|
|
70343
|
-
* SERVICE_UNAVAILABLE
|
|
70651
|
+
* BROWSER_OFFLINE / SERVICE_UNAVAILABLE
|
|
70344
70652
|
*/
|
|
70345
70653
|
503: BrowserError;
|
|
70346
70654
|
/**
|
|
@@ -70392,17 +70700,21 @@ export type BrowserUpdateContextErrors = {
|
|
|
70392
70700
|
*/
|
|
70393
70701
|
402: BrowserError;
|
|
70394
70702
|
/**
|
|
70395
|
-
* PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
|
|
70703
|
+
* PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
|
|
70396
70704
|
*/
|
|
70397
70705
|
403: BrowserError;
|
|
70398
70706
|
/**
|
|
70399
|
-
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
70707
|
+
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
70400
70708
|
*/
|
|
70401
70709
|
404: BrowserError;
|
|
70402
70710
|
/**
|
|
70403
|
-
* SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
70711
|
+
* SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
70404
70712
|
*/
|
|
70405
70713
|
409: BrowserError;
|
|
70714
|
+
/**
|
|
70715
|
+
* BROWSER_REVOKED
|
|
70716
|
+
*/
|
|
70717
|
+
410: BrowserError;
|
|
70406
70718
|
/**
|
|
70407
70719
|
* ACTION_RESULT_TOO_LARGE
|
|
70408
70720
|
*/
|
|
@@ -70424,7 +70736,7 @@ export type BrowserUpdateContextErrors = {
|
|
|
70424
70736
|
*/
|
|
70425
70737
|
502: BrowserError;
|
|
70426
70738
|
/**
|
|
70427
|
-
* SERVICE_UNAVAILABLE
|
|
70739
|
+
* BROWSER_OFFLINE / SERVICE_UNAVAILABLE
|
|
70428
70740
|
*/
|
|
70429
70741
|
503: BrowserError;
|
|
70430
70742
|
/**
|
|
@@ -70440,50 +70752,13 @@ export type BrowserUpdateContextResponses = {
|
|
|
70440
70752
|
200: BrowserContext;
|
|
70441
70753
|
};
|
|
70442
70754
|
export type BrowserUpdateContextResponse = BrowserUpdateContextResponses[keyof BrowserUpdateContextResponses];
|
|
70443
|
-
export type
|
|
70755
|
+
export type BrowserCreateByobPairingData = {
|
|
70444
70756
|
body?: never;
|
|
70445
70757
|
path?: never;
|
|
70446
|
-
query?:
|
|
70447
|
-
|
|
70448
|
-
* 浏览器会话 ID;使用创建或列出会话返回的 id,以 bss_ 开头。
|
|
70449
|
-
*/
|
|
70450
|
-
session?: string;
|
|
70451
|
-
/**
|
|
70452
|
-
* 会话名称;1–128 个 ASCII 字母、数字或 . _ : -,可用于筛选会话。
|
|
70453
|
-
*/
|
|
70454
|
-
name?: string;
|
|
70455
|
-
/**
|
|
70456
|
-
* connectUrl 自带凭证;必须同时带 session。
|
|
70457
|
-
*/
|
|
70458
|
-
signingKey?: string;
|
|
70459
|
-
/**
|
|
70460
|
-
* 登录态 ID;使用创建或列出登录态返回的 id,以 bsc_ 开头。
|
|
70461
|
-
*/
|
|
70462
|
-
context?: string;
|
|
70463
|
-
/**
|
|
70464
|
-
* 关闭时保存登录态。
|
|
70465
|
-
*/
|
|
70466
|
-
persist?: boolean;
|
|
70467
|
-
/**
|
|
70468
|
-
* 新会话最长寿命,单位为秒,可含小数;连接已有会话时忽略。
|
|
70469
|
-
*/
|
|
70470
|
-
timeout?: number;
|
|
70471
|
-
/**
|
|
70472
|
-
* 新会话无人连接或观看后的释放等待时长,单位为毫秒;允许 0 或小数,连接已有会话时忽略。
|
|
70473
|
-
*/
|
|
70474
|
-
idle?: number;
|
|
70475
|
-
/**
|
|
70476
|
-
* JSON 编码的字符串标签对象。
|
|
70477
|
-
*/
|
|
70478
|
-
labels?: string;
|
|
70479
|
-
/**
|
|
70480
|
-
* JSON 编码的视口,例如 {"width":1280,"height":800}。
|
|
70481
|
-
*/
|
|
70482
|
-
viewport?: string;
|
|
70483
|
-
};
|
|
70484
|
-
url: '/browser/v1/connect';
|
|
70758
|
+
query?: never;
|
|
70759
|
+
url: '/browser/v1/byob/pairings';
|
|
70485
70760
|
};
|
|
70486
|
-
export type
|
|
70761
|
+
export type BrowserCreateByobPairingErrors = {
|
|
70487
70762
|
/**
|
|
70488
70763
|
* INVALID_PARAMS / INVALID_FILTER / INVALID_PAGE_TOKEN
|
|
70489
70764
|
*/
|
|
@@ -70497,17 +70772,21 @@ export type BrowserConnectErrors = {
|
|
|
70497
70772
|
*/
|
|
70498
70773
|
402: BrowserError;
|
|
70499
70774
|
/**
|
|
70500
|
-
* PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
|
|
70775
|
+
* PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
|
|
70501
70776
|
*/
|
|
70502
70777
|
403: BrowserError;
|
|
70503
70778
|
/**
|
|
70504
|
-
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
70779
|
+
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
70505
70780
|
*/
|
|
70506
70781
|
404: BrowserError;
|
|
70507
70782
|
/**
|
|
70508
|
-
* SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
70783
|
+
* SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
70509
70784
|
*/
|
|
70510
70785
|
409: BrowserError;
|
|
70786
|
+
/**
|
|
70787
|
+
* BROWSER_REVOKED
|
|
70788
|
+
*/
|
|
70789
|
+
410: BrowserError;
|
|
70511
70790
|
/**
|
|
70512
70791
|
* ACTION_RESULT_TOO_LARGE
|
|
70513
70792
|
*/
|
|
@@ -70529,7 +70808,7 @@ export type BrowserConnectErrors = {
|
|
|
70529
70808
|
*/
|
|
70530
70809
|
502: BrowserError;
|
|
70531
70810
|
/**
|
|
70532
|
-
* SERVICE_UNAVAILABLE
|
|
70811
|
+
* BROWSER_OFFLINE / SERVICE_UNAVAILABLE
|
|
70533
70812
|
*/
|
|
70534
70813
|
503: BrowserError;
|
|
70535
70814
|
/**
|
|
@@ -70537,28 +70816,30 @@ export type BrowserConnectErrors = {
|
|
|
70537
70816
|
*/
|
|
70538
70817
|
504: BrowserError;
|
|
70539
70818
|
};
|
|
70540
|
-
export type
|
|
70541
|
-
export type
|
|
70819
|
+
export type BrowserCreateByobPairingError = BrowserCreateByobPairingErrors[keyof BrowserCreateByobPairingErrors];
|
|
70820
|
+
export type BrowserCreateByobPairingResponses = {
|
|
70821
|
+
/**
|
|
70822
|
+
* 请求成功。
|
|
70823
|
+
*/
|
|
70824
|
+
201: BrowserByobPairing;
|
|
70825
|
+
};
|
|
70826
|
+
export type BrowserCreateByobPairingResponse = BrowserCreateByobPairingResponses[keyof BrowserCreateByobPairingResponses];
|
|
70827
|
+
export type BrowserListByobBrowsersData = {
|
|
70542
70828
|
body?: never;
|
|
70543
|
-
path
|
|
70544
|
-
|
|
70545
|
-
* 浏览器会话 ID;使用创建或列出会话返回的 id,以 bss_ 开头。
|
|
70546
|
-
*/
|
|
70547
|
-
sessionId: string;
|
|
70829
|
+
path?: never;
|
|
70830
|
+
query?: {
|
|
70548
70831
|
/**
|
|
70549
|
-
*
|
|
70832
|
+
* 上一页返回的 nextCursor,原样传入;省略时读取第一页。
|
|
70550
70833
|
*/
|
|
70551
|
-
|
|
70552
|
-
};
|
|
70553
|
-
query?: {
|
|
70834
|
+
cursor?: string;
|
|
70554
70835
|
/**
|
|
70555
|
-
*
|
|
70836
|
+
* 每页最多返回的浏览器数量;默认 50,范围 1–100。
|
|
70556
70837
|
*/
|
|
70557
|
-
|
|
70838
|
+
limit?: number;
|
|
70558
70839
|
};
|
|
70559
|
-
url: '/browser/v1/
|
|
70840
|
+
url: '/browser/v1/byob/browsers';
|
|
70560
70841
|
};
|
|
70561
|
-
export type
|
|
70842
|
+
export type BrowserListByobBrowsersErrors = {
|
|
70562
70843
|
/**
|
|
70563
70844
|
* INVALID_PARAMS / INVALID_FILTER / INVALID_PAGE_TOKEN
|
|
70564
70845
|
*/
|
|
@@ -70572,17 +70853,21 @@ export type BrowserLiveViewErrors = {
|
|
|
70572
70853
|
*/
|
|
70573
70854
|
402: BrowserError;
|
|
70574
70855
|
/**
|
|
70575
|
-
* PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
|
|
70856
|
+
* PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
|
|
70576
70857
|
*/
|
|
70577
70858
|
403: BrowserError;
|
|
70578
70859
|
/**
|
|
70579
|
-
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
70860
|
+
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
70580
70861
|
*/
|
|
70581
70862
|
404: BrowserError;
|
|
70582
70863
|
/**
|
|
70583
|
-
* SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
70864
|
+
* SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
70584
70865
|
*/
|
|
70585
70866
|
409: BrowserError;
|
|
70867
|
+
/**
|
|
70868
|
+
* BROWSER_REVOKED
|
|
70869
|
+
*/
|
|
70870
|
+
410: BrowserError;
|
|
70586
70871
|
/**
|
|
70587
70872
|
* ACTION_RESULT_TOO_LARGE
|
|
70588
70873
|
*/
|
|
@@ -70604,7 +70889,7 @@ export type BrowserLiveViewErrors = {
|
|
|
70604
70889
|
*/
|
|
70605
70890
|
502: BrowserError;
|
|
70606
70891
|
/**
|
|
70607
|
-
* SERVICE_UNAVAILABLE
|
|
70892
|
+
* BROWSER_OFFLINE / SERVICE_UNAVAILABLE
|
|
70608
70893
|
*/
|
|
70609
70894
|
503: BrowserError;
|
|
70610
70895
|
/**
|
|
@@ -70612,19 +70897,35 @@ export type BrowserLiveViewErrors = {
|
|
|
70612
70897
|
*/
|
|
70613
70898
|
504: BrowserError;
|
|
70614
70899
|
};
|
|
70615
|
-
export type
|
|
70616
|
-
export type
|
|
70900
|
+
export type BrowserListByobBrowsersError = BrowserListByobBrowsersErrors[keyof BrowserListByobBrowsersErrors];
|
|
70901
|
+
export type BrowserListByobBrowsersResponses = {
|
|
70902
|
+
/**
|
|
70903
|
+
* 分页列出的自带浏览器,按 ID 升序。
|
|
70904
|
+
*/
|
|
70905
|
+
200: {
|
|
70906
|
+
/**
|
|
70907
|
+
* 本页的自带浏览器;已断开的不在列表里。
|
|
70908
|
+
*/
|
|
70909
|
+
data: Array<BrowserByobBrowser>;
|
|
70910
|
+
/**
|
|
70911
|
+
* 下一页游标;原样传入 cursor,null 表示没有更多结果。
|
|
70912
|
+
*/
|
|
70913
|
+
nextCursor: string | null;
|
|
70914
|
+
};
|
|
70915
|
+
};
|
|
70916
|
+
export type BrowserListByobBrowsersResponse = BrowserListByobBrowsersResponses[keyof BrowserListByobBrowsersResponses];
|
|
70917
|
+
export type BrowserGetByobBrowserData = {
|
|
70617
70918
|
body?: never;
|
|
70618
70919
|
path: {
|
|
70619
70920
|
/**
|
|
70620
|
-
*
|
|
70921
|
+
* 自带浏览器 ID,以 byb_ 开头;使用配对认领或列出自带浏览器返回的 id。
|
|
70621
70922
|
*/
|
|
70622
|
-
|
|
70923
|
+
browser_id: string;
|
|
70623
70924
|
};
|
|
70624
70925
|
query?: never;
|
|
70625
|
-
url: '/browser/v1/
|
|
70926
|
+
url: '/browser/v1/byob/browsers/{browser_id}';
|
|
70626
70927
|
};
|
|
70627
|
-
export type
|
|
70928
|
+
export type BrowserGetByobBrowserErrors = {
|
|
70628
70929
|
/**
|
|
70629
70930
|
* INVALID_PARAMS / INVALID_FILTER / INVALID_PAGE_TOKEN
|
|
70630
70931
|
*/
|
|
@@ -70638,17 +70939,600 @@ export type BrowserStreamSessionErrors = {
|
|
|
70638
70939
|
*/
|
|
70639
70940
|
402: BrowserError;
|
|
70640
70941
|
/**
|
|
70641
|
-
* PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
|
|
70942
|
+
* PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
|
|
70642
70943
|
*/
|
|
70643
70944
|
403: BrowserError;
|
|
70644
70945
|
/**
|
|
70645
|
-
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
70946
|
+
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
70646
70947
|
*/
|
|
70647
70948
|
404: BrowserError;
|
|
70648
70949
|
/**
|
|
70649
|
-
* SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
70950
|
+
* SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
70650
70951
|
*/
|
|
70651
70952
|
409: BrowserError;
|
|
70953
|
+
/**
|
|
70954
|
+
* BROWSER_REVOKED
|
|
70955
|
+
*/
|
|
70956
|
+
410: BrowserError;
|
|
70957
|
+
/**
|
|
70958
|
+
* ACTION_RESULT_TOO_LARGE
|
|
70959
|
+
*/
|
|
70960
|
+
413: BrowserError;
|
|
70961
|
+
/**
|
|
70962
|
+
* CONCURRENCY_LIMIT / RATE_LIMITED / PROVIDER_CAPACITY
|
|
70963
|
+
*/
|
|
70964
|
+
429: BrowserError;
|
|
70965
|
+
/**
|
|
70966
|
+
* INTERNAL
|
|
70967
|
+
*/
|
|
70968
|
+
500: BrowserError;
|
|
70969
|
+
/**
|
|
70970
|
+
* NOT_IMPLEMENTED / PROVIDER_UNSUPPORTED
|
|
70971
|
+
*/
|
|
70972
|
+
501: BrowserError;
|
|
70973
|
+
/**
|
|
70974
|
+
* PROVIDER_FAILED
|
|
70975
|
+
*/
|
|
70976
|
+
502: BrowserError;
|
|
70977
|
+
/**
|
|
70978
|
+
* BROWSER_OFFLINE / SERVICE_UNAVAILABLE
|
|
70979
|
+
*/
|
|
70980
|
+
503: BrowserError;
|
|
70981
|
+
/**
|
|
70982
|
+
* ACTION_TIMEOUT
|
|
70983
|
+
*/
|
|
70984
|
+
504: BrowserError;
|
|
70985
|
+
};
|
|
70986
|
+
export type BrowserGetByobBrowserError = BrowserGetByobBrowserErrors[keyof BrowserGetByobBrowserErrors];
|
|
70987
|
+
export type BrowserGetByobBrowserResponses = {
|
|
70988
|
+
/**
|
|
70989
|
+
* 请求成功。
|
|
70990
|
+
*/
|
|
70991
|
+
200: BrowserByobBrowser;
|
|
70992
|
+
};
|
|
70993
|
+
export type BrowserGetByobBrowserResponse = BrowserGetByobBrowserResponses[keyof BrowserGetByobBrowserResponses];
|
|
70994
|
+
export type BrowserUpdateByobBrowserData = {
|
|
70995
|
+
body: {
|
|
70996
|
+
/**
|
|
70997
|
+
* 新的显示名称,1–80 个字符。
|
|
70998
|
+
*/
|
|
70999
|
+
name?: string;
|
|
71000
|
+
/**
|
|
71001
|
+
* 整体替换被授权的智能体 ID 列表;传空数组撤销全部授权。
|
|
71002
|
+
*/
|
|
71003
|
+
granted_agents?: Array<string>;
|
|
71004
|
+
/**
|
|
71005
|
+
* 整体替换允许站点列表;传空数组表示不限制。
|
|
71006
|
+
*/
|
|
71007
|
+
allowed_sites?: Array<string>;
|
|
71008
|
+
};
|
|
71009
|
+
path: {
|
|
71010
|
+
/**
|
|
71011
|
+
* 自带浏览器 ID,以 byb_ 开头;使用配对认领或列出自带浏览器返回的 id。
|
|
71012
|
+
*/
|
|
71013
|
+
browser_id: string;
|
|
71014
|
+
};
|
|
71015
|
+
query?: never;
|
|
71016
|
+
url: '/browser/v1/byob/browsers/{browser_id}';
|
|
71017
|
+
};
|
|
71018
|
+
export type BrowserUpdateByobBrowserErrors = {
|
|
71019
|
+
/**
|
|
71020
|
+
* INVALID_PARAMS / INVALID_FILTER / INVALID_PAGE_TOKEN
|
|
71021
|
+
*/
|
|
71022
|
+
400: BrowserError;
|
|
71023
|
+
/**
|
|
71024
|
+
* UNAUTHENTICATED / CONNECT_SIGNATURE_INVALID
|
|
71025
|
+
*/
|
|
71026
|
+
401: BrowserError;
|
|
71027
|
+
/**
|
|
71028
|
+
* INSUFFICIENT_BALANCE / QUOTA_EXHAUSTED
|
|
71029
|
+
*/
|
|
71030
|
+
402: BrowserError;
|
|
71031
|
+
/**
|
|
71032
|
+
* PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
|
|
71033
|
+
*/
|
|
71034
|
+
403: BrowserError;
|
|
71035
|
+
/**
|
|
71036
|
+
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
71037
|
+
*/
|
|
71038
|
+
404: BrowserError;
|
|
71039
|
+
/**
|
|
71040
|
+
* SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
71041
|
+
*/
|
|
71042
|
+
409: BrowserError;
|
|
71043
|
+
/**
|
|
71044
|
+
* BROWSER_REVOKED
|
|
71045
|
+
*/
|
|
71046
|
+
410: BrowserError;
|
|
71047
|
+
/**
|
|
71048
|
+
* ACTION_RESULT_TOO_LARGE
|
|
71049
|
+
*/
|
|
71050
|
+
413: BrowserError;
|
|
71051
|
+
/**
|
|
71052
|
+
* CONCURRENCY_LIMIT / RATE_LIMITED / PROVIDER_CAPACITY
|
|
71053
|
+
*/
|
|
71054
|
+
429: BrowserError;
|
|
71055
|
+
/**
|
|
71056
|
+
* INTERNAL
|
|
71057
|
+
*/
|
|
71058
|
+
500: BrowserError;
|
|
71059
|
+
/**
|
|
71060
|
+
* NOT_IMPLEMENTED / PROVIDER_UNSUPPORTED
|
|
71061
|
+
*/
|
|
71062
|
+
501: BrowserError;
|
|
71063
|
+
/**
|
|
71064
|
+
* PROVIDER_FAILED
|
|
71065
|
+
*/
|
|
71066
|
+
502: BrowserError;
|
|
71067
|
+
/**
|
|
71068
|
+
* BROWSER_OFFLINE / SERVICE_UNAVAILABLE
|
|
71069
|
+
*/
|
|
71070
|
+
503: BrowserError;
|
|
71071
|
+
/**
|
|
71072
|
+
* ACTION_TIMEOUT
|
|
71073
|
+
*/
|
|
71074
|
+
504: BrowserError;
|
|
71075
|
+
};
|
|
71076
|
+
export type BrowserUpdateByobBrowserError = BrowserUpdateByobBrowserErrors[keyof BrowserUpdateByobBrowserErrors];
|
|
71077
|
+
export type BrowserUpdateByobBrowserResponses = {
|
|
71078
|
+
/**
|
|
71079
|
+
* 请求成功。
|
|
71080
|
+
*/
|
|
71081
|
+
200: BrowserByobBrowser;
|
|
71082
|
+
};
|
|
71083
|
+
export type BrowserUpdateByobBrowserResponse = BrowserUpdateByobBrowserResponses[keyof BrowserUpdateByobBrowserResponses];
|
|
71084
|
+
export type BrowserDisconnectByobBrowserData = {
|
|
71085
|
+
body?: never;
|
|
71086
|
+
path: {
|
|
71087
|
+
/**
|
|
71088
|
+
* 自带浏览器 ID,以 byb_ 开头;使用配对认领或列出自带浏览器返回的 id。
|
|
71089
|
+
*/
|
|
71090
|
+
browser_id: string;
|
|
71091
|
+
};
|
|
71092
|
+
query?: never;
|
|
71093
|
+
url: '/browser/v1/byob/browsers/{browser_id}/disconnect';
|
|
71094
|
+
};
|
|
71095
|
+
export type BrowserDisconnectByobBrowserErrors = {
|
|
71096
|
+
/**
|
|
71097
|
+
* INVALID_PARAMS / INVALID_FILTER / INVALID_PAGE_TOKEN
|
|
71098
|
+
*/
|
|
71099
|
+
400: BrowserError;
|
|
71100
|
+
/**
|
|
71101
|
+
* UNAUTHENTICATED / CONNECT_SIGNATURE_INVALID
|
|
71102
|
+
*/
|
|
71103
|
+
401: BrowserError;
|
|
71104
|
+
/**
|
|
71105
|
+
* INSUFFICIENT_BALANCE / QUOTA_EXHAUSTED
|
|
71106
|
+
*/
|
|
71107
|
+
402: BrowserError;
|
|
71108
|
+
/**
|
|
71109
|
+
* PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
|
|
71110
|
+
*/
|
|
71111
|
+
403: BrowserError;
|
|
71112
|
+
/**
|
|
71113
|
+
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
71114
|
+
*/
|
|
71115
|
+
404: BrowserError;
|
|
71116
|
+
/**
|
|
71117
|
+
* SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
71118
|
+
*/
|
|
71119
|
+
409: BrowserError;
|
|
71120
|
+
/**
|
|
71121
|
+
* BROWSER_REVOKED
|
|
71122
|
+
*/
|
|
71123
|
+
410: BrowserError;
|
|
71124
|
+
/**
|
|
71125
|
+
* ACTION_RESULT_TOO_LARGE
|
|
71126
|
+
*/
|
|
71127
|
+
413: BrowserError;
|
|
71128
|
+
/**
|
|
71129
|
+
* CONCURRENCY_LIMIT / RATE_LIMITED / PROVIDER_CAPACITY
|
|
71130
|
+
*/
|
|
71131
|
+
429: BrowserError;
|
|
71132
|
+
/**
|
|
71133
|
+
* INTERNAL
|
|
71134
|
+
*/
|
|
71135
|
+
500: BrowserError;
|
|
71136
|
+
/**
|
|
71137
|
+
* NOT_IMPLEMENTED / PROVIDER_UNSUPPORTED
|
|
71138
|
+
*/
|
|
71139
|
+
501: BrowserError;
|
|
71140
|
+
/**
|
|
71141
|
+
* PROVIDER_FAILED
|
|
71142
|
+
*/
|
|
71143
|
+
502: BrowserError;
|
|
71144
|
+
/**
|
|
71145
|
+
* BROWSER_OFFLINE / SERVICE_UNAVAILABLE
|
|
71146
|
+
*/
|
|
71147
|
+
503: BrowserError;
|
|
71148
|
+
/**
|
|
71149
|
+
* ACTION_TIMEOUT
|
|
71150
|
+
*/
|
|
71151
|
+
504: BrowserError;
|
|
71152
|
+
};
|
|
71153
|
+
export type BrowserDisconnectByobBrowserError = BrowserDisconnectByobBrowserErrors[keyof BrowserDisconnectByobBrowserErrors];
|
|
71154
|
+
export type BrowserDisconnectByobBrowserResponses = {
|
|
71155
|
+
/**
|
|
71156
|
+
* 请求成功。
|
|
71157
|
+
*/
|
|
71158
|
+
200: BrowserByobBrowser;
|
|
71159
|
+
};
|
|
71160
|
+
export type BrowserDisconnectByobBrowserResponse = BrowserDisconnectByobBrowserResponses[keyof BrowserDisconnectByobBrowserResponses];
|
|
71161
|
+
export type BrowserReadByobPairingData = {
|
|
71162
|
+
body?: never;
|
|
71163
|
+
path: {
|
|
71164
|
+
/**
|
|
71165
|
+
* 8 位配对码,来自创建配对码的结果。
|
|
71166
|
+
*/
|
|
71167
|
+
code: string;
|
|
71168
|
+
};
|
|
71169
|
+
query?: never;
|
|
71170
|
+
url: '/browser/v1/byob/pairings/{code}';
|
|
71171
|
+
};
|
|
71172
|
+
export type BrowserReadByobPairingErrors = {
|
|
71173
|
+
/**
|
|
71174
|
+
* INVALID_PARAMS / INVALID_FILTER / INVALID_PAGE_TOKEN
|
|
71175
|
+
*/
|
|
71176
|
+
400: BrowserError;
|
|
71177
|
+
/**
|
|
71178
|
+
* UNAUTHENTICATED / CONNECT_SIGNATURE_INVALID
|
|
71179
|
+
*/
|
|
71180
|
+
401: BrowserError;
|
|
71181
|
+
/**
|
|
71182
|
+
* INSUFFICIENT_BALANCE / QUOTA_EXHAUSTED
|
|
71183
|
+
*/
|
|
71184
|
+
402: BrowserError;
|
|
71185
|
+
/**
|
|
71186
|
+
* PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
|
|
71187
|
+
*/
|
|
71188
|
+
403: BrowserError;
|
|
71189
|
+
/**
|
|
71190
|
+
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
71191
|
+
*/
|
|
71192
|
+
404: BrowserError;
|
|
71193
|
+
/**
|
|
71194
|
+
* SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
71195
|
+
*/
|
|
71196
|
+
409: BrowserError;
|
|
71197
|
+
/**
|
|
71198
|
+
* BROWSER_REVOKED
|
|
71199
|
+
*/
|
|
71200
|
+
410: BrowserError;
|
|
71201
|
+
/**
|
|
71202
|
+
* ACTION_RESULT_TOO_LARGE
|
|
71203
|
+
*/
|
|
71204
|
+
413: BrowserError;
|
|
71205
|
+
/**
|
|
71206
|
+
* CONCURRENCY_LIMIT / RATE_LIMITED / PROVIDER_CAPACITY
|
|
71207
|
+
*/
|
|
71208
|
+
429: BrowserError;
|
|
71209
|
+
/**
|
|
71210
|
+
* INTERNAL
|
|
71211
|
+
*/
|
|
71212
|
+
500: BrowserError;
|
|
71213
|
+
/**
|
|
71214
|
+
* NOT_IMPLEMENTED / PROVIDER_UNSUPPORTED
|
|
71215
|
+
*/
|
|
71216
|
+
501: BrowserError;
|
|
71217
|
+
/**
|
|
71218
|
+
* PROVIDER_FAILED
|
|
71219
|
+
*/
|
|
71220
|
+
502: BrowserError;
|
|
71221
|
+
/**
|
|
71222
|
+
* BROWSER_OFFLINE / SERVICE_UNAVAILABLE
|
|
71223
|
+
*/
|
|
71224
|
+
503: BrowserError;
|
|
71225
|
+
/**
|
|
71226
|
+
* ACTION_TIMEOUT
|
|
71227
|
+
*/
|
|
71228
|
+
504: BrowserError;
|
|
71229
|
+
};
|
|
71230
|
+
export type BrowserReadByobPairingError = BrowserReadByobPairingErrors[keyof BrowserReadByobPairingErrors];
|
|
71231
|
+
export type BrowserReadByobPairingResponses = {
|
|
71232
|
+
/**
|
|
71233
|
+
* 请求成功。
|
|
71234
|
+
*/
|
|
71235
|
+
200: BrowserByobPairingView;
|
|
71236
|
+
};
|
|
71237
|
+
export type BrowserReadByobPairingResponse = BrowserReadByobPairingResponses[keyof BrowserReadByobPairingResponses];
|
|
71238
|
+
export type BrowserClaimByobPairingData = {
|
|
71239
|
+
body: BrowserByobClaim;
|
|
71240
|
+
path: {
|
|
71241
|
+
/**
|
|
71242
|
+
* 8 位配对码,来自创建配对码的结果。
|
|
71243
|
+
*/
|
|
71244
|
+
code: string;
|
|
71245
|
+
};
|
|
71246
|
+
query?: never;
|
|
71247
|
+
url: '/browser/v1/byob/pairings/{code}/claim';
|
|
71248
|
+
};
|
|
71249
|
+
export type BrowserClaimByobPairingErrors = {
|
|
71250
|
+
/**
|
|
71251
|
+
* INVALID_PARAMS / INVALID_FILTER / INVALID_PAGE_TOKEN
|
|
71252
|
+
*/
|
|
71253
|
+
400: BrowserError;
|
|
71254
|
+
/**
|
|
71255
|
+
* UNAUTHENTICATED / CONNECT_SIGNATURE_INVALID
|
|
71256
|
+
*/
|
|
71257
|
+
401: BrowserError;
|
|
71258
|
+
/**
|
|
71259
|
+
* INSUFFICIENT_BALANCE / QUOTA_EXHAUSTED
|
|
71260
|
+
*/
|
|
71261
|
+
402: BrowserError;
|
|
71262
|
+
/**
|
|
71263
|
+
* PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
|
|
71264
|
+
*/
|
|
71265
|
+
403: BrowserError;
|
|
71266
|
+
/**
|
|
71267
|
+
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
71268
|
+
*/
|
|
71269
|
+
404: BrowserError;
|
|
71270
|
+
/**
|
|
71271
|
+
* SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
71272
|
+
*/
|
|
71273
|
+
409: BrowserError;
|
|
71274
|
+
/**
|
|
71275
|
+
* BROWSER_REVOKED
|
|
71276
|
+
*/
|
|
71277
|
+
410: BrowserError;
|
|
71278
|
+
/**
|
|
71279
|
+
* ACTION_RESULT_TOO_LARGE
|
|
71280
|
+
*/
|
|
71281
|
+
413: BrowserError;
|
|
71282
|
+
/**
|
|
71283
|
+
* CONCURRENCY_LIMIT / RATE_LIMITED / PROVIDER_CAPACITY
|
|
71284
|
+
*/
|
|
71285
|
+
429: BrowserError;
|
|
71286
|
+
/**
|
|
71287
|
+
* INTERNAL
|
|
71288
|
+
*/
|
|
71289
|
+
500: BrowserError;
|
|
71290
|
+
/**
|
|
71291
|
+
* NOT_IMPLEMENTED / PROVIDER_UNSUPPORTED
|
|
71292
|
+
*/
|
|
71293
|
+
501: BrowserError;
|
|
71294
|
+
/**
|
|
71295
|
+
* PROVIDER_FAILED
|
|
71296
|
+
*/
|
|
71297
|
+
502: BrowserError;
|
|
71298
|
+
/**
|
|
71299
|
+
* BROWSER_OFFLINE / SERVICE_UNAVAILABLE
|
|
71300
|
+
*/
|
|
71301
|
+
503: BrowserError;
|
|
71302
|
+
/**
|
|
71303
|
+
* ACTION_TIMEOUT
|
|
71304
|
+
*/
|
|
71305
|
+
504: BrowserError;
|
|
71306
|
+
};
|
|
71307
|
+
export type BrowserClaimByobPairingError = BrowserClaimByobPairingErrors[keyof BrowserClaimByobPairingErrors];
|
|
71308
|
+
export type BrowserClaimByobPairingResponses = {
|
|
71309
|
+
/**
|
|
71310
|
+
* 认领成功。
|
|
71311
|
+
*/
|
|
71312
|
+
201: BrowserByobClaimResult;
|
|
71313
|
+
};
|
|
71314
|
+
export type BrowserClaimByobPairingResponse = BrowserClaimByobPairingResponses[keyof BrowserClaimByobPairingResponses];
|
|
71315
|
+
export type BrowserConnectData = {
|
|
71316
|
+
body?: never;
|
|
71317
|
+
path?: never;
|
|
71318
|
+
query?: {
|
|
71319
|
+
/**
|
|
71320
|
+
* 浏览器会话 ID;使用创建或列出会话返回的 id,以 bss_ 开头。
|
|
71321
|
+
*/
|
|
71322
|
+
session?: string;
|
|
71323
|
+
/**
|
|
71324
|
+
* 会话名称;1–128 个 ASCII 字母、数字或 . _ : -,可用于筛选会话。
|
|
71325
|
+
*/
|
|
71326
|
+
name?: string;
|
|
71327
|
+
/**
|
|
71328
|
+
* connectUrl 自带凭证;必须同时带 session。
|
|
71329
|
+
*/
|
|
71330
|
+
signingKey?: string;
|
|
71331
|
+
/**
|
|
71332
|
+
* 登录态 ID;使用创建或列出登录态返回的 id,以 bsc_ 开头。
|
|
71333
|
+
*/
|
|
71334
|
+
context?: string;
|
|
71335
|
+
/**
|
|
71336
|
+
* 关闭时保存登录态。
|
|
71337
|
+
*/
|
|
71338
|
+
persist?: boolean;
|
|
71339
|
+
/**
|
|
71340
|
+
* 新会话最长寿命,单位为秒,可含小数;连接已有会话时忽略。
|
|
71341
|
+
*/
|
|
71342
|
+
timeout?: number;
|
|
71343
|
+
/**
|
|
71344
|
+
* 新会话无人连接或观看后的释放等待时长,单位为毫秒;允许 0 或小数,连接已有会话时忽略。
|
|
71345
|
+
*/
|
|
71346
|
+
idle?: number;
|
|
71347
|
+
/**
|
|
71348
|
+
* JSON 编码的字符串标签对象。
|
|
71349
|
+
*/
|
|
71350
|
+
labels?: string;
|
|
71351
|
+
/**
|
|
71352
|
+
* JSON 编码的视口,例如 {"width":1280,"height":800}。
|
|
71353
|
+
*/
|
|
71354
|
+
viewport?: string;
|
|
71355
|
+
};
|
|
71356
|
+
url: '/browser/v1/connect';
|
|
71357
|
+
};
|
|
71358
|
+
export type BrowserConnectErrors = {
|
|
71359
|
+
/**
|
|
71360
|
+
* INVALID_PARAMS / INVALID_FILTER / INVALID_PAGE_TOKEN
|
|
71361
|
+
*/
|
|
71362
|
+
400: BrowserError;
|
|
71363
|
+
/**
|
|
71364
|
+
* UNAUTHENTICATED / CONNECT_SIGNATURE_INVALID
|
|
71365
|
+
*/
|
|
71366
|
+
401: BrowserError;
|
|
71367
|
+
/**
|
|
71368
|
+
* INSUFFICIENT_BALANCE / QUOTA_EXHAUSTED
|
|
71369
|
+
*/
|
|
71370
|
+
402: BrowserError;
|
|
71371
|
+
/**
|
|
71372
|
+
* PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
|
|
71373
|
+
*/
|
|
71374
|
+
403: BrowserError;
|
|
71375
|
+
/**
|
|
71376
|
+
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
71377
|
+
*/
|
|
71378
|
+
404: BrowserError;
|
|
71379
|
+
/**
|
|
71380
|
+
* SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
71381
|
+
*/
|
|
71382
|
+
409: BrowserError;
|
|
71383
|
+
/**
|
|
71384
|
+
* BROWSER_REVOKED
|
|
71385
|
+
*/
|
|
71386
|
+
410: BrowserError;
|
|
71387
|
+
/**
|
|
71388
|
+
* ACTION_RESULT_TOO_LARGE
|
|
71389
|
+
*/
|
|
71390
|
+
413: BrowserError;
|
|
71391
|
+
/**
|
|
71392
|
+
* CONCURRENCY_LIMIT / RATE_LIMITED / PROVIDER_CAPACITY
|
|
71393
|
+
*/
|
|
71394
|
+
429: BrowserError;
|
|
71395
|
+
/**
|
|
71396
|
+
* INTERNAL
|
|
71397
|
+
*/
|
|
71398
|
+
500: BrowserError;
|
|
71399
|
+
/**
|
|
71400
|
+
* NOT_IMPLEMENTED / PROVIDER_UNSUPPORTED
|
|
71401
|
+
*/
|
|
71402
|
+
501: BrowserError;
|
|
71403
|
+
/**
|
|
71404
|
+
* PROVIDER_FAILED
|
|
71405
|
+
*/
|
|
71406
|
+
502: BrowserError;
|
|
71407
|
+
/**
|
|
71408
|
+
* BROWSER_OFFLINE / SERVICE_UNAVAILABLE
|
|
71409
|
+
*/
|
|
71410
|
+
503: BrowserError;
|
|
71411
|
+
/**
|
|
71412
|
+
* ACTION_TIMEOUT
|
|
71413
|
+
*/
|
|
71414
|
+
504: BrowserError;
|
|
71415
|
+
};
|
|
71416
|
+
export type BrowserConnectError = BrowserConnectErrors[keyof BrowserConnectErrors];
|
|
71417
|
+
export type BrowserLiveViewData = {
|
|
71418
|
+
body?: never;
|
|
71419
|
+
path: {
|
|
71420
|
+
/**
|
|
71421
|
+
* 浏览器会话 ID;使用创建或列出会话返回的 id,以 bss_ 开头。
|
|
71422
|
+
*/
|
|
71423
|
+
sessionId: string;
|
|
71424
|
+
/**
|
|
71425
|
+
* 实时观看地址中的标签页 ID;使用 debug 返回链接中的原值,_ 表示会话级画面。
|
|
71426
|
+
*/
|
|
71427
|
+
pageId: string;
|
|
71428
|
+
};
|
|
71429
|
+
query?: {
|
|
71430
|
+
/**
|
|
71431
|
+
* 实时观看地址自带的凭证。
|
|
71432
|
+
*/
|
|
71433
|
+
t?: string;
|
|
71434
|
+
};
|
|
71435
|
+
url: '/browser/v1/live/{sessionId}/{pageId}';
|
|
71436
|
+
};
|
|
71437
|
+
export type BrowserLiveViewErrors = {
|
|
71438
|
+
/**
|
|
71439
|
+
* INVALID_PARAMS / INVALID_FILTER / INVALID_PAGE_TOKEN
|
|
71440
|
+
*/
|
|
71441
|
+
400: BrowserError;
|
|
71442
|
+
/**
|
|
71443
|
+
* UNAUTHENTICATED / CONNECT_SIGNATURE_INVALID
|
|
71444
|
+
*/
|
|
71445
|
+
401: BrowserError;
|
|
71446
|
+
/**
|
|
71447
|
+
* INSUFFICIENT_BALANCE / QUOTA_EXHAUSTED
|
|
71448
|
+
*/
|
|
71449
|
+
402: BrowserError;
|
|
71450
|
+
/**
|
|
71451
|
+
* PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
|
|
71452
|
+
*/
|
|
71453
|
+
403: BrowserError;
|
|
71454
|
+
/**
|
|
71455
|
+
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
71456
|
+
*/
|
|
71457
|
+
404: BrowserError;
|
|
71458
|
+
/**
|
|
71459
|
+
* SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
71460
|
+
*/
|
|
71461
|
+
409: BrowserError;
|
|
71462
|
+
/**
|
|
71463
|
+
* BROWSER_REVOKED
|
|
71464
|
+
*/
|
|
71465
|
+
410: BrowserError;
|
|
71466
|
+
/**
|
|
71467
|
+
* ACTION_RESULT_TOO_LARGE
|
|
71468
|
+
*/
|
|
71469
|
+
413: BrowserError;
|
|
71470
|
+
/**
|
|
71471
|
+
* CONCURRENCY_LIMIT / RATE_LIMITED / PROVIDER_CAPACITY
|
|
71472
|
+
*/
|
|
71473
|
+
429: BrowserError;
|
|
71474
|
+
/**
|
|
71475
|
+
* INTERNAL
|
|
71476
|
+
*/
|
|
71477
|
+
500: BrowserError;
|
|
71478
|
+
/**
|
|
71479
|
+
* NOT_IMPLEMENTED / PROVIDER_UNSUPPORTED
|
|
71480
|
+
*/
|
|
71481
|
+
501: BrowserError;
|
|
71482
|
+
/**
|
|
71483
|
+
* PROVIDER_FAILED
|
|
71484
|
+
*/
|
|
71485
|
+
502: BrowserError;
|
|
71486
|
+
/**
|
|
71487
|
+
* BROWSER_OFFLINE / SERVICE_UNAVAILABLE
|
|
71488
|
+
*/
|
|
71489
|
+
503: BrowserError;
|
|
71490
|
+
/**
|
|
71491
|
+
* ACTION_TIMEOUT
|
|
71492
|
+
*/
|
|
71493
|
+
504: BrowserError;
|
|
71494
|
+
};
|
|
71495
|
+
export type BrowserLiveViewError = BrowserLiveViewErrors[keyof BrowserLiveViewErrors];
|
|
71496
|
+
export type BrowserStreamSessionData = {
|
|
71497
|
+
body?: never;
|
|
71498
|
+
path: {
|
|
71499
|
+
/**
|
|
71500
|
+
* 浏览器会话 ID;使用创建或列出会话返回的 id,以 bss_ 开头。
|
|
71501
|
+
*/
|
|
71502
|
+
sessionId: string;
|
|
71503
|
+
};
|
|
71504
|
+
query?: never;
|
|
71505
|
+
url: '/browser/v1/sessions/{sessionId}/stream';
|
|
71506
|
+
};
|
|
71507
|
+
export type BrowserStreamSessionErrors = {
|
|
71508
|
+
/**
|
|
71509
|
+
* INVALID_PARAMS / INVALID_FILTER / INVALID_PAGE_TOKEN
|
|
71510
|
+
*/
|
|
71511
|
+
400: BrowserError;
|
|
71512
|
+
/**
|
|
71513
|
+
* UNAUTHENTICATED / CONNECT_SIGNATURE_INVALID
|
|
71514
|
+
*/
|
|
71515
|
+
401: BrowserError;
|
|
71516
|
+
/**
|
|
71517
|
+
* INSUFFICIENT_BALANCE / QUOTA_EXHAUSTED
|
|
71518
|
+
*/
|
|
71519
|
+
402: BrowserError;
|
|
71520
|
+
/**
|
|
71521
|
+
* PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
|
|
71522
|
+
*/
|
|
71523
|
+
403: BrowserError;
|
|
71524
|
+
/**
|
|
71525
|
+
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
71526
|
+
*/
|
|
71527
|
+
404: BrowserError;
|
|
71528
|
+
/**
|
|
71529
|
+
* SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
71530
|
+
*/
|
|
71531
|
+
409: BrowserError;
|
|
71532
|
+
/**
|
|
71533
|
+
* BROWSER_REVOKED
|
|
71534
|
+
*/
|
|
71535
|
+
410: BrowserError;
|
|
70652
71536
|
/**
|
|
70653
71537
|
* ACTION_RESULT_TOO_LARGE
|
|
70654
71538
|
*/
|
|
@@ -70670,7 +71554,7 @@ export type BrowserStreamSessionErrors = {
|
|
|
70670
71554
|
*/
|
|
70671
71555
|
502: BrowserError;
|
|
70672
71556
|
/**
|
|
70673
|
-
* SERVICE_UNAVAILABLE
|
|
71557
|
+
* BROWSER_OFFLINE / SERVICE_UNAVAILABLE
|
|
70674
71558
|
*/
|
|
70675
71559
|
503: BrowserError;
|
|
70676
71560
|
/**
|
|
@@ -70711,17 +71595,21 @@ export type BrowserStreamSessionFramesErrors = {
|
|
|
70711
71595
|
*/
|
|
70712
71596
|
402: BrowserError;
|
|
70713
71597
|
/**
|
|
70714
|
-
* PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
|
|
71598
|
+
* PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
|
|
70715
71599
|
*/
|
|
70716
71600
|
403: BrowserError;
|
|
70717
71601
|
/**
|
|
70718
|
-
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
71602
|
+
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
70719
71603
|
*/
|
|
70720
71604
|
404: BrowserError;
|
|
70721
71605
|
/**
|
|
70722
|
-
* SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
71606
|
+
* SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
70723
71607
|
*/
|
|
70724
71608
|
409: BrowserError;
|
|
71609
|
+
/**
|
|
71610
|
+
* BROWSER_REVOKED
|
|
71611
|
+
*/
|
|
71612
|
+
410: BrowserError;
|
|
70725
71613
|
/**
|
|
70726
71614
|
* ACTION_RESULT_TOO_LARGE
|
|
70727
71615
|
*/
|
|
@@ -70743,7 +71631,7 @@ export type BrowserStreamSessionFramesErrors = {
|
|
|
70743
71631
|
*/
|
|
70744
71632
|
502: BrowserError;
|
|
70745
71633
|
/**
|
|
70746
|
-
* SERVICE_UNAVAILABLE
|
|
71634
|
+
* BROWSER_OFFLINE / SERVICE_UNAVAILABLE
|
|
70747
71635
|
*/
|
|
70748
71636
|
503: BrowserError;
|
|
70749
71637
|
/**
|
|
@@ -78048,10 +78936,18 @@ export type GetOrganizationNotificationsInboxData = {
|
|
|
78048
78936
|
url: '/organization/v1/notifications/inbox';
|
|
78049
78937
|
};
|
|
78050
78938
|
export type GetOrganizationNotificationsInboxErrors = {
|
|
78939
|
+
/**
|
|
78940
|
+
* `INVALID_PARAMS` from the service for a read it cannot answer (RFC 9457 problem).
|
|
78941
|
+
*/
|
|
78942
|
+
400: unknown;
|
|
78051
78943
|
/**
|
|
78052
78944
|
* Missing or invalid credential (RFC 9457 problem).
|
|
78053
78945
|
*/
|
|
78054
78946
|
401: unknown;
|
|
78947
|
+
/**
|
|
78948
|
+
* 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.
|
|
78949
|
+
*/
|
|
78950
|
+
502: unknown;
|
|
78055
78951
|
};
|
|
78056
78952
|
export type GetOrganizationNotificationsInboxResponses = {
|
|
78057
78953
|
/**
|
|
@@ -78352,13 +79248,17 @@ export type ReadAllOrganizationNotificationLettersData = {
|
|
|
78352
79248
|
};
|
|
78353
79249
|
export type ReadAllOrganizationNotificationLettersErrors = {
|
|
78354
79250
|
/**
|
|
78355
|
-
* The body is not a JSON object,
|
|
79251
|
+
* The body is not a JSON object, `kind` is unknown, or `INVALID_PARAMS` from the service (RFC 9457 problem).
|
|
78356
79252
|
*/
|
|
78357
79253
|
400: unknown;
|
|
78358
79254
|
/**
|
|
78359
79255
|
* Missing or invalid credential (RFC 9457 problem).
|
|
78360
79256
|
*/
|
|
78361
79257
|
401: unknown;
|
|
79258
|
+
/**
|
|
79259
|
+
* 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.
|
|
79260
|
+
*/
|
|
79261
|
+
502: unknown;
|
|
78362
79262
|
};
|
|
78363
79263
|
export type ReadAllOrganizationNotificationLettersResponses = {
|
|
78364
79264
|
/**
|
|
@@ -78424,6 +79324,10 @@ export type GetOrganizationNotificationPreferencesErrors = {
|
|
|
78424
79324
|
* Missing or invalid credential (RFC 9457 problem).
|
|
78425
79325
|
*/
|
|
78426
79326
|
401: unknown;
|
|
79327
|
+
/**
|
|
79328
|
+
* 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.
|
|
79329
|
+
*/
|
|
79330
|
+
502: unknown;
|
|
78427
79331
|
};
|
|
78428
79332
|
export type GetOrganizationNotificationPreferencesResponses = {
|
|
78429
79333
|
/**
|
|
@@ -78515,7 +79419,7 @@ export type UpdateOrganizationNotificationPreferencesData = {
|
|
|
78515
79419
|
};
|
|
78516
79420
|
export type UpdateOrganizationNotificationPreferencesErrors = {
|
|
78517
79421
|
/**
|
|
78518
|
-
* Invalid switch, unknown category or unoffered channel (RFC 9457 problem).
|
|
79422
|
+
* Invalid switch, unknown category or unoffered channel — `INVALID_PARAMS`, `NOT_CONFIGURABLE` or `CRITICAL_CHANNELS_OFF` from the service (RFC 9457 problem).
|
|
78519
79423
|
*/
|
|
78520
79424
|
400: unknown;
|
|
78521
79425
|
/**
|
|
@@ -78523,9 +79427,13 @@ export type UpdateOrganizationNotificationPreferencesErrors = {
|
|
|
78523
79427
|
*/
|
|
78524
79428
|
401: unknown;
|
|
78525
79429
|
/**
|
|
78526
|
-
* The organization does not let members change their own switches (
|
|
79430
|
+
* The organization does not let members change their own switches — `ORGANIZATION_LOCKED` from the service (RFC 9457 problem).
|
|
78527
79431
|
*/
|
|
78528
79432
|
403: unknown;
|
|
79433
|
+
/**
|
|
79434
|
+
* 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.
|
|
79435
|
+
*/
|
|
79436
|
+
502: unknown;
|
|
78529
79437
|
};
|
|
78530
79438
|
export type UpdateOrganizationNotificationPreferencesResponses = {
|
|
78531
79439
|
/**
|
|
@@ -78547,6 +79455,10 @@ export type GetOrganizationNotificationDefaultsErrors = {
|
|
|
78547
79455
|
* Missing or invalid credential (RFC 9457 problem).
|
|
78548
79456
|
*/
|
|
78549
79457
|
401: unknown;
|
|
79458
|
+
/**
|
|
79459
|
+
* 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.
|
|
79460
|
+
*/
|
|
79461
|
+
502: unknown;
|
|
78550
79462
|
};
|
|
78551
79463
|
export type GetOrganizationNotificationDefaultsResponses = {
|
|
78552
79464
|
/**
|
|
@@ -78626,13 +79538,17 @@ export type ListOrganizationNotificationDeliveriesData = {
|
|
|
78626
79538
|
};
|
|
78627
79539
|
export type ListOrganizationNotificationDeliveriesErrors = {
|
|
78628
79540
|
/**
|
|
78629
|
-
* Invalid limit or page cursor (RFC 9457 problem).
|
|
79541
|
+
* Invalid limit, or `INVALID_PARAMS` from the service for a page cursor it did not issue (RFC 9457 problem).
|
|
78630
79542
|
*/
|
|
78631
79543
|
400: unknown;
|
|
78632
79544
|
/**
|
|
78633
79545
|
* Missing or invalid credential (RFC 9457 problem).
|
|
78634
79546
|
*/
|
|
78635
79547
|
401: unknown;
|
|
79548
|
+
/**
|
|
79549
|
+
* 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.
|
|
79550
|
+
*/
|
|
79551
|
+
502: unknown;
|
|
78636
79552
|
};
|
|
78637
79553
|
export type ListOrganizationNotificationDeliveriesResponses = {
|
|
78638
79554
|
/**
|
|
@@ -79899,6 +80815,19 @@ export type ListByodDevicesResponses = {
|
|
|
79899
80815
|
* The absolute directories a desktop registered for agent sessions with its last hello; a session may only start in one of these. Empty for a phone and for a desktop that has not connected yet.
|
|
79900
80816
|
*/
|
|
79901
80817
|
agent_dirs: Array<string>;
|
|
80818
|
+
/**
|
|
80819
|
+
* Which agent each registered directory is bound to, as the desktop's last hello reported. Empty for a phone and for a desktop that has not connected yet.
|
|
80820
|
+
*/
|
|
80821
|
+
agent_bindings: Array<{
|
|
80822
|
+
/**
|
|
80823
|
+
* The absolute directory the desktop bound to an agent with praxis agent connect.
|
|
80824
|
+
*/
|
|
80825
|
+
dir: string;
|
|
80826
|
+
/**
|
|
80827
|
+
* The agent the directory is bound to: its identity number or its agent id.
|
|
80828
|
+
*/
|
|
80829
|
+
agent: string;
|
|
80830
|
+
}>;
|
|
79902
80831
|
/**
|
|
79903
80832
|
* Whether the desktop's envd lets a platform session run in bypassPermissions (all tool calls without asking). True unless the person ran praxis connect agent --no-bypass on that machine; a session create that asks for bypassPermissions on a device where this is false answers 400 INVALID_PARAMS. False for a phone and for a desktop that has not connected yet.
|
|
79904
80833
|
*/
|
|
@@ -79981,6 +80910,19 @@ export type GetByodDeviceResponses = {
|
|
|
79981
80910
|
* The absolute directories a desktop registered for agent sessions with its last hello; a session may only start in one of these. Empty for a phone and for a desktop that has not connected yet.
|
|
79982
80911
|
*/
|
|
79983
80912
|
agent_dirs: Array<string>;
|
|
80913
|
+
/**
|
|
80914
|
+
* Which agent each registered directory is bound to, as the desktop's last hello reported. Empty for a phone and for a desktop that has not connected yet.
|
|
80915
|
+
*/
|
|
80916
|
+
agent_bindings: Array<{
|
|
80917
|
+
/**
|
|
80918
|
+
* The absolute directory the desktop bound to an agent with praxis agent connect.
|
|
80919
|
+
*/
|
|
80920
|
+
dir: string;
|
|
80921
|
+
/**
|
|
80922
|
+
* The agent the directory is bound to: its identity number or its agent id.
|
|
80923
|
+
*/
|
|
80924
|
+
agent: string;
|
|
80925
|
+
}>;
|
|
79984
80926
|
/**
|
|
79985
80927
|
* Whether the desktop's envd lets a platform session run in bypassPermissions (all tool calls without asking). True unless the person ran praxis connect agent --no-bypass on that machine; a session create that asks for bypassPermissions on a device where this is false answers 400 INVALID_PARAMS. False for a phone and for a desktop that has not connected yet.
|
|
79986
80928
|
*/
|
|
@@ -80074,6 +81016,19 @@ export type UpdateByodDeviceResponses = {
|
|
|
80074
81016
|
* The absolute directories a desktop registered for agent sessions with its last hello; a session may only start in one of these. Empty for a phone and for a desktop that has not connected yet.
|
|
80075
81017
|
*/
|
|
80076
81018
|
agent_dirs: Array<string>;
|
|
81019
|
+
/**
|
|
81020
|
+
* Which agent each registered directory is bound to, as the desktop's last hello reported. Empty for a phone and for a desktop that has not connected yet.
|
|
81021
|
+
*/
|
|
81022
|
+
agent_bindings: Array<{
|
|
81023
|
+
/**
|
|
81024
|
+
* The absolute directory the desktop bound to an agent with praxis agent connect.
|
|
81025
|
+
*/
|
|
81026
|
+
dir: string;
|
|
81027
|
+
/**
|
|
81028
|
+
* The agent the directory is bound to: its identity number or its agent id.
|
|
81029
|
+
*/
|
|
81030
|
+
agent: string;
|
|
81031
|
+
}>;
|
|
80077
81032
|
/**
|
|
80078
81033
|
* Whether the desktop's envd lets a platform session run in bypassPermissions (all tool calls without asking). True unless the person ran praxis connect agent --no-bypass on that machine; a session create that asks for bypassPermissions on a device where this is false answers 400 INVALID_PARAMS. False for a phone and for a desktop that has not connected yet.
|
|
80079
81034
|
*/
|
|
@@ -83367,6 +84322,15 @@ export type AgentsListResponses = {
|
|
|
83367
84322
|
name: string;
|
|
83368
84323
|
}>;
|
|
83369
84324
|
};
|
|
84325
|
+
/**
|
|
84326
|
+
* ADR-205: which browser the agent drives. {byob: byb_…} names one of your organization's paired browsers (browser.byob.browsers.list), which the agent then drives through connect() instead of a cloud browser; null or absent is the cloud browser. The browser must belong to your organization (otherwise 400) and must grant this agent before a session can open it. Omit on update to keep it, send an object to replace it, or null to go back to the cloud browser. /agent/v1 only.
|
|
84327
|
+
*/
|
|
84328
|
+
browser?: {
|
|
84329
|
+
/**
|
|
84330
|
+
* A paired browser's id (byb_ and 26 lowercase hex characters), from browser.byob.browsers.list.
|
|
84331
|
+
*/
|
|
84332
|
+
byob: string;
|
|
84333
|
+
} | null;
|
|
83370
84334
|
/**
|
|
83371
84335
|
* Praxis extension: MA only has session-scoped temporary containers and memory_stores, not durable browsable computers. computer_id selects a tenant-owned active computer. Session selection overrides the agent default; a sandbox environment_id and computer_id cannot be combined. Omitted when no computer is selected.
|
|
83372
84336
|
*/
|
|
@@ -84316,6 +85280,15 @@ export type AgentsCreateData = {
|
|
|
84316
85280
|
name: string;
|
|
84317
85281
|
}>;
|
|
84318
85282
|
};
|
|
85283
|
+
/**
|
|
85284
|
+
* ADR-205: which browser the agent drives. {byob: byb_…} names one of your organization's paired browsers (browser.byob.browsers.list), which the agent then drives through connect() instead of a cloud browser; null or absent is the cloud browser. The browser must belong to your organization (otherwise 400) and must grant this agent before a session can open it. Omit on update to keep it, send an object to replace it, or null to go back to the cloud browser. /agent/v1 only.
|
|
85285
|
+
*/
|
|
85286
|
+
browser?: {
|
|
85287
|
+
/**
|
|
85288
|
+
* A paired browser's id (byb_ and 26 lowercase hex characters), from browser.byob.browsers.list.
|
|
85289
|
+
*/
|
|
85290
|
+
byob: string;
|
|
85291
|
+
} | null;
|
|
84319
85292
|
/**
|
|
84320
85293
|
* Optional tool preset. minimal enables read, glob and grep; data-editor also enables write and edit; full uses the default toolset with always_allow. Explicit tools override matching preset entries. codemode requires bash and is absent from data-editor.
|
|
84321
85294
|
*/
|
|
@@ -84571,6 +85544,15 @@ export type AgentsCreateResponses = {
|
|
|
84571
85544
|
name: string;
|
|
84572
85545
|
}>;
|
|
84573
85546
|
};
|
|
85547
|
+
/**
|
|
85548
|
+
* ADR-205: which browser the agent drives. {byob: byb_…} names one of your organization's paired browsers (browser.byob.browsers.list), which the agent then drives through connect() instead of a cloud browser; null or absent is the cloud browser. The browser must belong to your organization (otherwise 400) and must grant this agent before a session can open it. Omit on update to keep it, send an object to replace it, or null to go back to the cloud browser. /agent/v1 only.
|
|
85549
|
+
*/
|
|
85550
|
+
browser?: {
|
|
85551
|
+
/**
|
|
85552
|
+
* A paired browser's id (byb_ and 26 lowercase hex characters), from browser.byob.browsers.list.
|
|
85553
|
+
*/
|
|
85554
|
+
byob: string;
|
|
85555
|
+
} | null;
|
|
84574
85556
|
/**
|
|
84575
85557
|
* Praxis extension: MA only has session-scoped temporary containers and memory_stores, not durable browsable computers. computer_id selects a tenant-owned active computer. Session selection overrides the agent default; a sandbox environment_id and computer_id cannot be combined. Omitted when no computer is selected.
|
|
84576
85558
|
*/
|
|
@@ -85233,6 +86215,15 @@ export type AgentsRetrieveResponses = {
|
|
|
85233
86215
|
name: string;
|
|
85234
86216
|
}>;
|
|
85235
86217
|
};
|
|
86218
|
+
/**
|
|
86219
|
+
* ADR-205: which browser the agent drives. {byob: byb_…} names one of your organization's paired browsers (browser.byob.browsers.list), which the agent then drives through connect() instead of a cloud browser; null or absent is the cloud browser. The browser must belong to your organization (otherwise 400) and must grant this agent before a session can open it. Omit on update to keep it, send an object to replace it, or null to go back to the cloud browser. /agent/v1 only.
|
|
86220
|
+
*/
|
|
86221
|
+
browser?: {
|
|
86222
|
+
/**
|
|
86223
|
+
* A paired browser's id (byb_ and 26 lowercase hex characters), from browser.byob.browsers.list.
|
|
86224
|
+
*/
|
|
86225
|
+
byob: string;
|
|
86226
|
+
} | null;
|
|
85236
86227
|
/**
|
|
85237
86228
|
* Praxis extension: MA only has session-scoped temporary containers and memory_stores, not durable browsable computers. computer_id selects a tenant-owned active computer. Session selection overrides the agent default; a sandbox environment_id and computer_id cannot be combined. Omitted when no computer is selected.
|
|
85238
86229
|
*/
|
|
@@ -86192,273 +87183,291 @@ export type AgentsUpdateData = {
|
|
|
86192
87183
|
}>;
|
|
86193
87184
|
};
|
|
86194
87185
|
/**
|
|
86195
|
-
*
|
|
86196
|
-
*/
|
|
86197
|
-
|
|
86198
|
-
|
|
86199
|
-
|
|
87186
|
+
* ADR-205: which browser the agent drives. {byob: byb_…} names one of your organization's paired browsers (browser.byob.browsers.list), which the agent then drives through connect() instead of a cloud browser; null or absent is the cloud browser. The browser must belong to your organization (otherwise 400) and must grant this agent before a session can open it. Omit on update to keep it, send an object to replace it, or null to go back to the cloud browser. /agent/v1 only.
|
|
87187
|
+
*/
|
|
87188
|
+
browser?: {
|
|
87189
|
+
/**
|
|
87190
|
+
* A paired browser's id (byb_ and 26 lowercase hex characters), from browser.byob.browsers.list.
|
|
87191
|
+
*/
|
|
87192
|
+
byob: string;
|
|
87193
|
+
} | null;
|
|
87194
|
+
/**
|
|
87195
|
+
* Optional tool preset. minimal enables read, glob and grep; data-editor also enables write and edit; full uses the default toolset with always_allow. Explicit tools override matching preset entries. codemode requires bash and is absent from data-editor.
|
|
87196
|
+
*/
|
|
87197
|
+
preset?: 'minimal' | 'data-editor' | 'full';
|
|
87198
|
+
/**
|
|
87199
|
+
* Inline custom output styles, including for agents without a computer. Omit to keep the saved list; null or [] clears it. Same-name precedence is inline, project files, personal files, then plugins. Selection is settings.outputStyle; styles apply to main conversations and are frozen per session.
|
|
87200
|
+
*/
|
|
87201
|
+
output_styles?: Array<{
|
|
87202
|
+
/**
|
|
87203
|
+
* Nonblank, case-sensitive style name, unique within this list. It can override a same-name file or built-in style.
|
|
87204
|
+
*/
|
|
87205
|
+
name: string;
|
|
87206
|
+
/**
|
|
87207
|
+
* Optional description of when to use this style.
|
|
87208
|
+
*/
|
|
87209
|
+
description?: string;
|
|
87210
|
+
/**
|
|
87211
|
+
* Style instructions added after platform guidance and before owner instructions. Empty content adds no style instructions.
|
|
87212
|
+
*/
|
|
87213
|
+
prompt: string;
|
|
87214
|
+
/**
|
|
87215
|
+
* Saved for file-format compatibility; currently has no effect because Praxis has no separate coding-instruction block.
|
|
87216
|
+
*/
|
|
87217
|
+
keep_coding_instructions?: boolean;
|
|
87218
|
+
}> | null;
|
|
87219
|
+
};
|
|
87220
|
+
path: {
|
|
87221
|
+
/**
|
|
87222
|
+
* Agent id, as returned by agents.create or agents.list (for a session filter, the agent the session was created with). Not the agent name. Also accepts an 8-character identity number (0–9, A–Z); malformed, absent and foreign references return 404, and response ids always use agent_….
|
|
87223
|
+
*/
|
|
87224
|
+
agent_id: string;
|
|
87225
|
+
};
|
|
87226
|
+
query?: never;
|
|
87227
|
+
url: '/agent/v1/agents/{agent_id}';
|
|
87228
|
+
};
|
|
87229
|
+
export type AgentsUpdateErrors = {
|
|
87230
|
+
/**
|
|
87231
|
+
* The body failed validation and the message names the field (same rules as agents.create, including tools: null).
|
|
87232
|
+
*/
|
|
87233
|
+
400: AgentError;
|
|
87234
|
+
/**
|
|
87235
|
+
* UNAUTHENTICATED (or INVALID_API_KEY, API_KEY_DISABLED, API_KEY_EXPIRED, INVALID_API_TOKEN, API_TOKEN_EXPIRED, API_TOKEN_REVOKED): the API key is missing, invalid or revoked. Send a valid key as X-API-Key or as a Bearer token.
|
|
87236
|
+
*/
|
|
87237
|
+
401: AgentError;
|
|
87238
|
+
/**
|
|
87239
|
+
* permission_error: the credential's role or bound resources do not allow this operation. Use a key with access to the agent domain and its resources.
|
|
87240
|
+
*/
|
|
87241
|
+
403: AgentError;
|
|
87242
|
+
/**
|
|
87243
|
+
* AGENT_NOT_FOUND: the id does not exist in your organization, or is malformed. Take ids from agents.list or agents.create.
|
|
87244
|
+
*/
|
|
87245
|
+
404: AgentError;
|
|
87246
|
+
/**
|
|
87247
|
+
* AGENT_ARCHIVED: unarchive it first. AGENT_VERSION_CONFLICT: version is not the agent's latest (older or not yet existing); error.current_version carries the latest, resend with it. A newer version saved with apply false is waiting: apply it or save over it.
|
|
87248
|
+
*/
|
|
87249
|
+
409: AgentError;
|
|
87250
|
+
};
|
|
87251
|
+
export type AgentsUpdateError = AgentsUpdateErrors[keyof AgentsUpdateErrors];
|
|
87252
|
+
export type AgentsUpdateResponses = {
|
|
87253
|
+
/**
|
|
87254
|
+
* Successful response
|
|
87255
|
+
*/
|
|
87256
|
+
200: {
|
|
87257
|
+
/**
|
|
87258
|
+
* Agent id (agent_...). Pass it as agent when creating a session and as agent_id in agent calls.
|
|
87259
|
+
*/
|
|
87260
|
+
id: string;
|
|
87261
|
+
/**
|
|
87262
|
+
* A timestamp in RFC 3339 format
|
|
87263
|
+
*/
|
|
87264
|
+
archived_at: null | string;
|
|
87265
|
+
/**
|
|
87266
|
+
* A timestamp in RFC 3339 format
|
|
87267
|
+
*/
|
|
87268
|
+
created_at: string;
|
|
87269
|
+
/**
|
|
87270
|
+
* Free-text description of what the agent is for; null when none was set.
|
|
87271
|
+
*/
|
|
87272
|
+
description: null | string;
|
|
87273
|
+
/**
|
|
87274
|
+
* Praxis extension: HTTP, SSE or trusted stdio MCP servers paired with mcp_toolset entries and saved with the agent version.
|
|
87275
|
+
*/
|
|
87276
|
+
mcp_servers: Array<AgentManaged36>;
|
|
87277
|
+
metadata: AgentManaged37;
|
|
87278
|
+
/**
|
|
87279
|
+
* Model identifier and configuration.
|
|
87280
|
+
*/
|
|
87281
|
+
model?: {
|
|
87282
|
+
/**
|
|
87283
|
+
* A model id from the Praxis model catalog (`praxis.model.models.list`). Unlike Anthropic, Claude model ids other than those in the catalog are rejected.
|
|
87284
|
+
*/
|
|
87285
|
+
id: string;
|
|
87286
|
+
/**
|
|
87287
|
+
* How hard Claude works on each turn. Sets `output_config.effort` on every
|
|
87288
|
+
* Messages call the session makes.
|
|
87289
|
+
*/
|
|
87290
|
+
effort?: AgentManaged2 | AgentManaged3 | AgentManaged4 | AgentManaged5 | AgentManaged6;
|
|
87291
|
+
/**
|
|
87292
|
+
* Geographic region for model inference. When unset, requests fall through to the
|
|
87293
|
+
* workspace's default_inference_geo.
|
|
87294
|
+
*/
|
|
87295
|
+
inference_geo?: string;
|
|
87296
|
+
/**
|
|
87297
|
+
* Inference speed mode. `fast` provides significantly faster output token
|
|
87298
|
+
* generation at premium pricing. Not all models support `fast`; invalid
|
|
87299
|
+
* combinations are rejected at create time.
|
|
87300
|
+
*/
|
|
87301
|
+
speed?: 'standard' | 'fast';
|
|
87302
|
+
/**
|
|
87303
|
+
* Platform model settings: reasoning (default thinking level) and max_output_tokens (output cap). Other model controls return 400.
|
|
87304
|
+
*/
|
|
87305
|
+
settings?: {
|
|
87306
|
+
/**
|
|
87307
|
+
* Default thinking effort for sessions without an explicit selection. Unsupported defaults fall back to the selected model default.
|
|
87308
|
+
*/
|
|
87309
|
+
reasoning?: 'low' | 'medium' | 'high' | 'xhigh' | 'max' | 'none';
|
|
87310
|
+
/**
|
|
87311
|
+
* Output cap for one model request, thinking included; the counterpart of Claude Code's CLAUDE_CODE_MAX_OUTPUT_TOKENS. When unset, every request uses the output limit the model declares. When set, the runtime clamps it to the model's limit.
|
|
87312
|
+
*/
|
|
87313
|
+
max_output_tokens?: number;
|
|
87314
|
+
};
|
|
87315
|
+
};
|
|
87316
|
+
/**
|
|
87317
|
+
* Coordinator roster. A bare string agent id is equivalent to {type: "agent", id}; omitting its version pins the referenced agent's current saved version when this roster is saved. {type: "self"} refers to this agent. Specify a concrete version to pin it explicitly.
|
|
87318
|
+
*/
|
|
87319
|
+
multiagent?: null | AgentManaged39;
|
|
87320
|
+
/**
|
|
87321
|
+
* Display name of the agent, as set on create or update. It is a label, not a unique key.
|
|
87322
|
+
*/
|
|
87323
|
+
name: string;
|
|
87324
|
+
/**
|
|
87325
|
+
* Custom skills attached to the agent, each {type: "custom", skill_id, version?}: skill_id comes from skills.create or skills.list, at most 20 skills, no repeated skill_id. Omit version, or send "latest", to use the skill's newest version at the moment a session starts; a pinned version stays fixed. type anthropic returns 400: upload the skill and attach it as custom. On update, omit the field to keep the list, send an array to replace it, or send [] or null to clear it.
|
|
87326
|
+
*/
|
|
87327
|
+
skills: Array<AgentManaged42 | AgentManaged43>;
|
|
87328
|
+
/**
|
|
87329
|
+
* System prompt given to the model at the start of every session of this agent; null when none was set.
|
|
87330
|
+
*/
|
|
87331
|
+
system: null | string;
|
|
87332
|
+
/**
|
|
87333
|
+
* Tools of the agent: one agent_toolset_20260401 entry for the native tools (all resolved settings are returned, ready to send back on update), plus mcp_toolset entries and custom tool definitions. Custom calls emit agent.custom_tool_use and wait for user.custom_tool_result. Keep bash enabled to use codemode, skill and subagents.
|
|
87334
|
+
*/
|
|
87335
|
+
tools: Array<AgentManaged44 | AgentManaged54 | AgentManaged57>;
|
|
87336
|
+
/**
|
|
87337
|
+
* Always `agent`. An agent definition.
|
|
87338
|
+
*/
|
|
87339
|
+
type: 'agent';
|
|
87340
|
+
/**
|
|
87341
|
+
* A timestamp in RFC 3339 format
|
|
87342
|
+
*/
|
|
87343
|
+
updated_at: string;
|
|
87344
|
+
/**
|
|
87345
|
+
* Version of this returned configuration. Default retrieve returns the effective version; an explicit version query or a version-history item returns that saved version.
|
|
87346
|
+
*/
|
|
87347
|
+
version: number;
|
|
87348
|
+
/**
|
|
87349
|
+
* Newest saved version number, including an unapplied save. Returned by default retrieve, update and apply; use it for optimistic concurrency when updating.
|
|
87350
|
+
*/
|
|
87351
|
+
latest_version?: number;
|
|
87352
|
+
/**
|
|
87353
|
+
* Agent-level currently effective version used by new sessions and newly issued embed tokens. This same value appears on every history item; it is not that item's version. Saving with apply false leaves it unchanged. Existing sessions and tokens retain their version.
|
|
87354
|
+
*/
|
|
87355
|
+
active_version: number;
|
|
87356
|
+
/**
|
|
87357
|
+
* Authenticated author who created this immutable version; null for historical versions without attribution. user identifies the signed-in user; api_key identifies the calling key. Never supplied by the request body.
|
|
87358
|
+
*/
|
|
87359
|
+
created_by: {
|
|
87360
|
+
/**
|
|
87361
|
+
* user denotes a version saved by a signed-in user.
|
|
87362
|
+
*/
|
|
87363
|
+
type: 'user';
|
|
87364
|
+
/**
|
|
87365
|
+
* Authenticated user identifier at the time this version was saved.
|
|
87366
|
+
*/
|
|
87367
|
+
id: string;
|
|
87368
|
+
/**
|
|
87369
|
+
* User display name at save time, omitted when unavailable.
|
|
87370
|
+
*/
|
|
87371
|
+
name?: string;
|
|
87372
|
+
} | {
|
|
87373
|
+
/**
|
|
87374
|
+
* api_key denotes a version saved through an API key.
|
|
87375
|
+
*/
|
|
87376
|
+
type: 'api_key';
|
|
87377
|
+
/**
|
|
87378
|
+
* Authenticated API key identifier, never the key secret.
|
|
87379
|
+
*/
|
|
87380
|
+
id: string;
|
|
87381
|
+
} | null;
|
|
87382
|
+
/**
|
|
87383
|
+
* Change explanation supplied as version_note when this version was saved; null when omitted or for historical versions. Immutable after creation.
|
|
87384
|
+
*/
|
|
87385
|
+
note: string | null;
|
|
87386
|
+
/**
|
|
87387
|
+
* How many of this agent's live deployments are not on its active version: pinned to a version other than active_version, not archived, counted once each. It counts both a pin older than the active version and a pin newer than it that was saved without being applied, so read it as "not on the active version", never as "older than". Following deployments are never counted (they run the active version by definition). Null when the deployment side could not be read. Returned by update and apply too, so those answers equal the read that follows them.
|
|
87388
|
+
*/
|
|
87389
|
+
deployments_behind: number | null;
|
|
87390
|
+
/**
|
|
87391
|
+
* Platform resources and services this service agent's codemode may reach, as one list of typed bindings. Only kind=service accepts a nonempty list; general agents return 400. There are two kinds. A resource binding names one resource with id and access: database (id db_..., read_only or read_write), vector_store (id vs_..., read_only or read_write), file (id file- plus 24 letters or digits, as the File API returns it; read_only), media_library (any id without ':' or whitespace, read_only or read_write), model (a model catalog id, invoke), workflow and script (id <namespace>/<name>, invoke). A resource binding may also carry customer_access (read_only by default): it caps what a terminal customer's session (a visitor, ADR-163 §3) may do with that one resource, at the intersection of customer_access and the binding's own access — invoke (call) and read_write (change) are different axes, so only a matching pair keeps its access and any other pair falls to read_only. Its value must be one the type can grant: read_only or read_write for database, vector_store and media_library, read_only for file, and read_only or invoke for model, workflow and script. A member's session ignores it, so raising it never widens what members may do. A visitor's session never receives a whole-service binding (the default ticket service included) or an agent resource. A service binding opens one service, or one sub-tree of one, and carries only enabled: search, browser, ticket, crm, canvas, cut, studio, feedback or workspace. workspace opens development units — list one, read one, start, stop, exec inside one, fetch, push, connect, and open a unit for a change — and opens neither publishing nor any production operation. The ticket service is bound by default: a service agent whose list has no ticket entry may call the ticket API, and {"type": "ticket", "enabled": false} removes it. Every other service stays closed until it is bound. An open service allows every public method of that service. At most 20 bindings per type, no repeated type and id, and each service type at most once. A session is authorized by the agent version it runs: newly added bindings apply only to new sessions, and a version saved with apply=false changes no access until it is applied. Applying a version that disables, removes or downgrades a binding revokes it immediately in running sessions on older versions. A resource that is not bound returns 404, a service that is not opened returns 403, and a write to a resource bound read_only returns 403 BINDING_READ_ONLY. Unknown types, fields on the wrong kind (id, access, customer_access or instructions on a service binding), wrong access and malformed ids return 400. The former databases, vector_stores and files fields are removed and return 400. Omit on create for the default: the ticket service only. Saving checks added or changed database, vector_store, media_library and file bindings in the organization: unknown or deleted ids return 400. If an owner is unavailable or takes more than 3 seconds, saving succeeds with verified=false for the affected bindings. Unchanged bindings keep their previous verification result and are not rechecked. workflow and script ids are not verified at save time.
|
|
87392
|
+
*/
|
|
87393
|
+
bindings: Array<{
|
|
87394
|
+
/**
|
|
87395
|
+
* Resource type. Decides the id format and the allowed access.
|
|
87396
|
+
*/
|
|
87397
|
+
type: 'database' | 'vector_store' | 'file' | 'media_library' | 'model' | 'workflow' | 'script' | 'repository' | 'browser_context';
|
|
87398
|
+
/**
|
|
87399
|
+
* Resource id, never its name. database db_..., vector_store vs_..., file file- plus 24 letters or digits; media_library and model ids must not contain ':' or whitespace; workflow and script use <namespace>/<name> with no '/', '@', ':' or whitespace inside a part; repository pkg_..., browser_context bsc_....
|
|
87400
|
+
*/
|
|
87401
|
+
id: string;
|
|
87402
|
+
/**
|
|
87403
|
+
* database, vector_store and media_library accept read_only or read_write; file accepts read_only; model, workflow and script accept invoke; repository and browser_context accept read_only or read_write. Any other combination returns 400.
|
|
87404
|
+
*/
|
|
87405
|
+
access: 'read_only' | 'read_write' | 'invoke';
|
|
87406
|
+
/**
|
|
87407
|
+
* What a visitor's session (a terminal customer, ADR-163 §3) may do with this resource: read_only, read_write or invoke. Its scope is the intersection of this value and the binding's own access, so invoke needs both to be invoke. Limited to the accesses the type can grant: read_only or read_write for database, vector_store and media_library, read_only for file, read_only or invoke for model, workflow and script. Defaults to read_only. A member's session ignores it entirely; a visitor's session never receives a whole-service binding or an agent resource.
|
|
87408
|
+
*/
|
|
87409
|
+
customer_access?: 'read_only' | 'read_write' | 'invoke';
|
|
87410
|
+
/**
|
|
87411
|
+
* Optional guidance for using this resource, up to 4096 characters; does not expand access.
|
|
87412
|
+
*/
|
|
87413
|
+
instructions?: string;
|
|
87414
|
+
/**
|
|
87415
|
+
* Save-time verification result. false means the resource owner was unavailable; saving still succeeded. Unchanged bindings retain their previous result. true is returned for other bindings, including workflow and script ids which are not verified at save time. Client values are ignored.
|
|
87416
|
+
*/
|
|
87417
|
+
readonly verified?: boolean;
|
|
87418
|
+
/**
|
|
87419
|
+
* Whether this binding grants access. Defaults to true; false immediately disables it for running sessions.
|
|
87420
|
+
*/
|
|
87421
|
+
enabled?: boolean;
|
|
87422
|
+
} | {
|
|
87423
|
+
/**
|
|
87424
|
+
* Service type. Opens one service, or one sub-tree of one, to codemode; there is no per-resource id.
|
|
87425
|
+
*/
|
|
87426
|
+
type: 'search' | 'browser' | 'ticket' | 'crm' | 'canvas' | 'cut' | 'studio' | 'feedback' | 'workspace';
|
|
87427
|
+
/**
|
|
87428
|
+
* Save-time verification result. false means the resource owner was unavailable; saving still succeeded. Unchanged bindings retain their previous result. true is returned for other bindings, including workflow and script ids which are not verified at save time. Client values are ignored.
|
|
87429
|
+
*/
|
|
87430
|
+
readonly verified?: boolean;
|
|
87431
|
+
/**
|
|
87432
|
+
* Whether the service is open. Defaults to true; false immediately closes it for running sessions.
|
|
87433
|
+
*/
|
|
87434
|
+
enabled?: boolean;
|
|
87435
|
+
}>;
|
|
87436
|
+
/**
|
|
87437
|
+
* Immutable agent kind. general uses a durable computer and acts for its owner; service uses a clean environment per session; assume is driven over MCP with a durable computer and no conversation model. Historical agents infer kind from their computer binding and read as general.
|
|
87438
|
+
*/
|
|
87439
|
+
kind: 'general' | 'service' | 'assume';
|
|
87440
|
+
/**
|
|
87441
|
+
* General agents only: the agent's computers, configured like its models. default is the template its Computer starts on; allowed lists the computers resize may switch to, and a resize to anything else is refused with COMPUTER_NOT_CONFIGURED. Omit on create for {default: base, allowed: Small base-small, Base base, Large base-large}; on update, omit to keep it, send an object to replace it as a whole. Service and assume agents return 400 computers is for general agents; service agents use environment_id. /agent/v1 only.
|
|
87442
|
+
*/
|
|
87443
|
+
computers?: {
|
|
87444
|
+
/**
|
|
87445
|
+
* Template of the computer the agent's Computer starts on; must be the template of one allowed entry.
|
|
87446
|
+
*/
|
|
87447
|
+
default: string;
|
|
87448
|
+
/**
|
|
87449
|
+
* Computers the agent may switch to with the computer tool's resize, in the order they are listed.
|
|
87450
|
+
*/
|
|
87451
|
+
allowed: Array<{
|
|
87452
|
+
/**
|
|
87453
|
+
* Sandbox template name from sandbox templates.list, such as base, base-large or data. light returns 400. A template appears once.
|
|
87454
|
+
*/
|
|
87455
|
+
template: string;
|
|
87456
|
+
/**
|
|
87457
|
+
* Display name people and the model use, such as Base or Large; unique within the list ignoring case.
|
|
87458
|
+
*/
|
|
87459
|
+
name: string;
|
|
87460
|
+
}>;
|
|
87461
|
+
};
|
|
87462
|
+
/**
|
|
87463
|
+
* ADR-205: which browser the agent drives. {byob: byb_…} names one of your organization's paired browsers (browser.byob.browsers.list), which the agent then drives through connect() instead of a cloud browser; null or absent is the cloud browser. The browser must belong to your organization (otherwise 400) and must grant this agent before a session can open it. Omit on update to keep it, send an object to replace it, or null to go back to the cloud browser. /agent/v1 only.
|
|
86200
87464
|
*/
|
|
86201
|
-
|
|
86202
|
-
/**
|
|
86203
|
-
* Nonblank, case-sensitive style name, unique within this list. It can override a same-name file or built-in style.
|
|
86204
|
-
*/
|
|
86205
|
-
name: string;
|
|
87465
|
+
browser?: {
|
|
86206
87466
|
/**
|
|
86207
|
-
*
|
|
86208
|
-
*/
|
|
86209
|
-
description?: string;
|
|
86210
|
-
/**
|
|
86211
|
-
* Style instructions added after platform guidance and before owner instructions. Empty content adds no style instructions.
|
|
86212
|
-
*/
|
|
86213
|
-
prompt: string;
|
|
86214
|
-
/**
|
|
86215
|
-
* Saved for file-format compatibility; currently has no effect because Praxis has no separate coding-instruction block.
|
|
87467
|
+
* A paired browser's id (byb_ and 26 lowercase hex characters), from browser.byob.browsers.list.
|
|
86216
87468
|
*/
|
|
86217
|
-
|
|
86218
|
-
}> | null;
|
|
86219
|
-
};
|
|
86220
|
-
path: {
|
|
86221
|
-
/**
|
|
86222
|
-
* Agent id, as returned by agents.create or agents.list (for a session filter, the agent the session was created with). Not the agent name. Also accepts an 8-character identity number (0–9, A–Z); malformed, absent and foreign references return 404, and response ids always use agent_….
|
|
86223
|
-
*/
|
|
86224
|
-
agent_id: string;
|
|
86225
|
-
};
|
|
86226
|
-
query?: never;
|
|
86227
|
-
url: '/agent/v1/agents/{agent_id}';
|
|
86228
|
-
};
|
|
86229
|
-
export type AgentsUpdateErrors = {
|
|
86230
|
-
/**
|
|
86231
|
-
* The body failed validation and the message names the field (same rules as agents.create, including tools: null).
|
|
86232
|
-
*/
|
|
86233
|
-
400: AgentError;
|
|
86234
|
-
/**
|
|
86235
|
-
* UNAUTHENTICATED (or INVALID_API_KEY, API_KEY_DISABLED, API_KEY_EXPIRED, INVALID_API_TOKEN, API_TOKEN_EXPIRED, API_TOKEN_REVOKED): the API key is missing, invalid or revoked. Send a valid key as X-API-Key or as a Bearer token.
|
|
86236
|
-
*/
|
|
86237
|
-
401: AgentError;
|
|
86238
|
-
/**
|
|
86239
|
-
* 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.
|
|
86240
|
-
*/
|
|
86241
|
-
403: AgentError;
|
|
86242
|
-
/**
|
|
86243
|
-
* AGENT_NOT_FOUND: the id does not exist in your organization, or is malformed. Take ids from agents.list or agents.create.
|
|
86244
|
-
*/
|
|
86245
|
-
404: AgentError;
|
|
86246
|
-
/**
|
|
86247
|
-
* AGENT_ARCHIVED: unarchive it first. AGENT_VERSION_CONFLICT: version is not the agent's latest (older or not yet existing); error.current_version carries the latest, resend with it. A newer version saved with apply false is waiting: apply it or save over it.
|
|
86248
|
-
*/
|
|
86249
|
-
409: AgentError;
|
|
86250
|
-
};
|
|
86251
|
-
export type AgentsUpdateError = AgentsUpdateErrors[keyof AgentsUpdateErrors];
|
|
86252
|
-
export type AgentsUpdateResponses = {
|
|
86253
|
-
/**
|
|
86254
|
-
* Successful response
|
|
86255
|
-
*/
|
|
86256
|
-
200: {
|
|
86257
|
-
/**
|
|
86258
|
-
* Agent id (agent_...). Pass it as agent when creating a session and as agent_id in agent calls.
|
|
86259
|
-
*/
|
|
86260
|
-
id: string;
|
|
86261
|
-
/**
|
|
86262
|
-
* A timestamp in RFC 3339 format
|
|
86263
|
-
*/
|
|
86264
|
-
archived_at: null | string;
|
|
86265
|
-
/**
|
|
86266
|
-
* A timestamp in RFC 3339 format
|
|
86267
|
-
*/
|
|
86268
|
-
created_at: string;
|
|
86269
|
-
/**
|
|
86270
|
-
* Free-text description of what the agent is for; null when none was set.
|
|
86271
|
-
*/
|
|
86272
|
-
description: null | string;
|
|
86273
|
-
/**
|
|
86274
|
-
* Praxis extension: HTTP, SSE or trusted stdio MCP servers paired with mcp_toolset entries and saved with the agent version.
|
|
86275
|
-
*/
|
|
86276
|
-
mcp_servers: Array<AgentManaged36>;
|
|
86277
|
-
metadata: AgentManaged37;
|
|
86278
|
-
/**
|
|
86279
|
-
* Model identifier and configuration.
|
|
86280
|
-
*/
|
|
86281
|
-
model?: {
|
|
86282
|
-
/**
|
|
86283
|
-
* A model id from the Praxis model catalog (`praxis.model.models.list`). Unlike Anthropic, Claude model ids other than those in the catalog are rejected.
|
|
86284
|
-
*/
|
|
86285
|
-
id: string;
|
|
86286
|
-
/**
|
|
86287
|
-
* How hard Claude works on each turn. Sets `output_config.effort` on every
|
|
86288
|
-
* Messages call the session makes.
|
|
86289
|
-
*/
|
|
86290
|
-
effort?: AgentManaged2 | AgentManaged3 | AgentManaged4 | AgentManaged5 | AgentManaged6;
|
|
86291
|
-
/**
|
|
86292
|
-
* Geographic region for model inference. When unset, requests fall through to the
|
|
86293
|
-
* workspace's default_inference_geo.
|
|
86294
|
-
*/
|
|
86295
|
-
inference_geo?: string;
|
|
86296
|
-
/**
|
|
86297
|
-
* Inference speed mode. `fast` provides significantly faster output token
|
|
86298
|
-
* generation at premium pricing. Not all models support `fast`; invalid
|
|
86299
|
-
* combinations are rejected at create time.
|
|
86300
|
-
*/
|
|
86301
|
-
speed?: 'standard' | 'fast';
|
|
86302
|
-
/**
|
|
86303
|
-
* Platform model settings: reasoning (default thinking level) and max_output_tokens (output cap). Other model controls return 400.
|
|
86304
|
-
*/
|
|
86305
|
-
settings?: {
|
|
86306
|
-
/**
|
|
86307
|
-
* Default thinking effort for sessions without an explicit selection. Unsupported defaults fall back to the selected model default.
|
|
86308
|
-
*/
|
|
86309
|
-
reasoning?: 'low' | 'medium' | 'high' | 'xhigh' | 'max' | 'none';
|
|
86310
|
-
/**
|
|
86311
|
-
* Output cap for one model request, thinking included; the counterpart of Claude Code's CLAUDE_CODE_MAX_OUTPUT_TOKENS. When unset, every request uses the output limit the model declares. When set, the runtime clamps it to the model's limit.
|
|
86312
|
-
*/
|
|
86313
|
-
max_output_tokens?: number;
|
|
86314
|
-
};
|
|
86315
|
-
};
|
|
86316
|
-
/**
|
|
86317
|
-
* Coordinator roster. A bare string agent id is equivalent to {type: "agent", id}; omitting its version pins the referenced agent's current saved version when this roster is saved. {type: "self"} refers to this agent. Specify a concrete version to pin it explicitly.
|
|
86318
|
-
*/
|
|
86319
|
-
multiagent?: null | AgentManaged39;
|
|
86320
|
-
/**
|
|
86321
|
-
* Display name of the agent, as set on create or update. It is a label, not a unique key.
|
|
86322
|
-
*/
|
|
86323
|
-
name: string;
|
|
86324
|
-
/**
|
|
86325
|
-
* Custom skills attached to the agent, each {type: "custom", skill_id, version?}: skill_id comes from skills.create or skills.list, at most 20 skills, no repeated skill_id. Omit version, or send "latest", to use the skill's newest version at the moment a session starts; a pinned version stays fixed. type anthropic returns 400: upload the skill and attach it as custom. On update, omit the field to keep the list, send an array to replace it, or send [] or null to clear it.
|
|
86326
|
-
*/
|
|
86327
|
-
skills: Array<AgentManaged42 | AgentManaged43>;
|
|
86328
|
-
/**
|
|
86329
|
-
* System prompt given to the model at the start of every session of this agent; null when none was set.
|
|
86330
|
-
*/
|
|
86331
|
-
system: null | string;
|
|
86332
|
-
/**
|
|
86333
|
-
* Tools of the agent: one agent_toolset_20260401 entry for the native tools (all resolved settings are returned, ready to send back on update), plus mcp_toolset entries and custom tool definitions. Custom calls emit agent.custom_tool_use and wait for user.custom_tool_result. Keep bash enabled to use codemode, skill and subagents.
|
|
86334
|
-
*/
|
|
86335
|
-
tools: Array<AgentManaged44 | AgentManaged54 | AgentManaged57>;
|
|
86336
|
-
/**
|
|
86337
|
-
* Always `agent`. An agent definition.
|
|
86338
|
-
*/
|
|
86339
|
-
type: 'agent';
|
|
86340
|
-
/**
|
|
86341
|
-
* A timestamp in RFC 3339 format
|
|
86342
|
-
*/
|
|
86343
|
-
updated_at: string;
|
|
86344
|
-
/**
|
|
86345
|
-
* Version of this returned configuration. Default retrieve returns the effective version; an explicit version query or a version-history item returns that saved version.
|
|
86346
|
-
*/
|
|
86347
|
-
version: number;
|
|
86348
|
-
/**
|
|
86349
|
-
* Newest saved version number, including an unapplied save. Returned by default retrieve, update and apply; use it for optimistic concurrency when updating.
|
|
86350
|
-
*/
|
|
86351
|
-
latest_version?: number;
|
|
86352
|
-
/**
|
|
86353
|
-
* Agent-level currently effective version used by new sessions and newly issued embed tokens. This same value appears on every history item; it is not that item's version. Saving with apply false leaves it unchanged. Existing sessions and tokens retain their version.
|
|
86354
|
-
*/
|
|
86355
|
-
active_version: number;
|
|
86356
|
-
/**
|
|
86357
|
-
* Authenticated author who created this immutable version; null for historical versions without attribution. user identifies the signed-in user; api_key identifies the calling key. Never supplied by the request body.
|
|
86358
|
-
*/
|
|
86359
|
-
created_by: {
|
|
86360
|
-
/**
|
|
86361
|
-
* user denotes a version saved by a signed-in user.
|
|
86362
|
-
*/
|
|
86363
|
-
type: 'user';
|
|
86364
|
-
/**
|
|
86365
|
-
* Authenticated user identifier at the time this version was saved.
|
|
86366
|
-
*/
|
|
86367
|
-
id: string;
|
|
86368
|
-
/**
|
|
86369
|
-
* User display name at save time, omitted when unavailable.
|
|
86370
|
-
*/
|
|
86371
|
-
name?: string;
|
|
86372
|
-
} | {
|
|
86373
|
-
/**
|
|
86374
|
-
* api_key denotes a version saved through an API key.
|
|
86375
|
-
*/
|
|
86376
|
-
type: 'api_key';
|
|
86377
|
-
/**
|
|
86378
|
-
* Authenticated API key identifier, never the key secret.
|
|
86379
|
-
*/
|
|
86380
|
-
id: string;
|
|
87469
|
+
byob: string;
|
|
86381
87470
|
} | null;
|
|
86382
|
-
/**
|
|
86383
|
-
* Change explanation supplied as version_note when this version was saved; null when omitted or for historical versions. Immutable after creation.
|
|
86384
|
-
*/
|
|
86385
|
-
note: string | null;
|
|
86386
|
-
/**
|
|
86387
|
-
* How many of this agent's live deployments are not on its active version: pinned to a version other than active_version, not archived, counted once each. It counts both a pin older than the active version and a pin newer than it that was saved without being applied, so read it as "not on the active version", never as "older than". Following deployments are never counted (they run the active version by definition). Null when the deployment side could not be read. Returned by update and apply too, so those answers equal the read that follows them.
|
|
86388
|
-
*/
|
|
86389
|
-
deployments_behind: number | null;
|
|
86390
|
-
/**
|
|
86391
|
-
* Platform resources and services this service agent's codemode may reach, as one list of typed bindings. Only kind=service accepts a nonempty list; general agents return 400. There are two kinds. A resource binding names one resource with id and access: database (id db_..., read_only or read_write), vector_store (id vs_..., read_only or read_write), file (id file- plus 24 letters or digits, as the File API returns it; read_only), media_library (any id without ':' or whitespace, read_only or read_write), model (a model catalog id, invoke), workflow and script (id <namespace>/<name>, invoke). A resource binding may also carry customer_access (read_only by default): it caps what a terminal customer's session (a visitor, ADR-163 §3) may do with that one resource, at the intersection of customer_access and the binding's own access — invoke (call) and read_write (change) are different axes, so only a matching pair keeps its access and any other pair falls to read_only. Its value must be one the type can grant: read_only or read_write for database, vector_store and media_library, read_only for file, and read_only or invoke for model, workflow and script. A member's session ignores it, so raising it never widens what members may do. A visitor's session never receives a whole-service binding (the default ticket service included) or an agent resource. A service binding opens one service, or one sub-tree of one, and carries only enabled: search, browser, ticket, crm, canvas, cut, studio, feedback or workspace. workspace opens development units — list one, read one, start, stop, exec inside one, fetch, push, connect, and open a unit for a change — and opens neither publishing nor any production operation. The ticket service is bound by default: a service agent whose list has no ticket entry may call the ticket API, and {"type": "ticket", "enabled": false} removes it. Every other service stays closed until it is bound. An open service allows every public method of that service. At most 20 bindings per type, no repeated type and id, and each service type at most once. A session is authorized by the agent version it runs: newly added bindings apply only to new sessions, and a version saved with apply=false changes no access until it is applied. Applying a version that disables, removes or downgrades a binding revokes it immediately in running sessions on older versions. A resource that is not bound returns 404, a service that is not opened returns 403, and a write to a resource bound read_only returns 403 BINDING_READ_ONLY. Unknown types, fields on the wrong kind (id, access, customer_access or instructions on a service binding), wrong access and malformed ids return 400. The former databases, vector_stores and files fields are removed and return 400. Omit on create for the default: the ticket service only. Saving checks added or changed database, vector_store, media_library and file bindings in the organization: unknown or deleted ids return 400. If an owner is unavailable or takes more than 3 seconds, saving succeeds with verified=false for the affected bindings. Unchanged bindings keep their previous verification result and are not rechecked. workflow and script ids are not verified at save time.
|
|
86392
|
-
*/
|
|
86393
|
-
bindings: Array<{
|
|
86394
|
-
/**
|
|
86395
|
-
* Resource type. Decides the id format and the allowed access.
|
|
86396
|
-
*/
|
|
86397
|
-
type: 'database' | 'vector_store' | 'file' | 'media_library' | 'model' | 'workflow' | 'script' | 'repository' | 'browser_context';
|
|
86398
|
-
/**
|
|
86399
|
-
* Resource id, never its name. database db_..., vector_store vs_..., file file- plus 24 letters or digits; media_library and model ids must not contain ':' or whitespace; workflow and script use <namespace>/<name> with no '/', '@', ':' or whitespace inside a part; repository pkg_..., browser_context bsc_....
|
|
86400
|
-
*/
|
|
86401
|
-
id: string;
|
|
86402
|
-
/**
|
|
86403
|
-
* database, vector_store and media_library accept read_only or read_write; file accepts read_only; model, workflow and script accept invoke; repository and browser_context accept read_only or read_write. Any other combination returns 400.
|
|
86404
|
-
*/
|
|
86405
|
-
access: 'read_only' | 'read_write' | 'invoke';
|
|
86406
|
-
/**
|
|
86407
|
-
* What a visitor's session (a terminal customer, ADR-163 §3) may do with this resource: read_only, read_write or invoke. Its scope is the intersection of this value and the binding's own access, so invoke needs both to be invoke. Limited to the accesses the type can grant: read_only or read_write for database, vector_store and media_library, read_only for file, read_only or invoke for model, workflow and script. Defaults to read_only. A member's session ignores it entirely; a visitor's session never receives a whole-service binding or an agent resource.
|
|
86408
|
-
*/
|
|
86409
|
-
customer_access?: 'read_only' | 'read_write' | 'invoke';
|
|
86410
|
-
/**
|
|
86411
|
-
* Optional guidance for using this resource, up to 4096 characters; does not expand access.
|
|
86412
|
-
*/
|
|
86413
|
-
instructions?: string;
|
|
86414
|
-
/**
|
|
86415
|
-
* Save-time verification result. false means the resource owner was unavailable; saving still succeeded. Unchanged bindings retain their previous result. true is returned for other bindings, including workflow and script ids which are not verified at save time. Client values are ignored.
|
|
86416
|
-
*/
|
|
86417
|
-
readonly verified?: boolean;
|
|
86418
|
-
/**
|
|
86419
|
-
* Whether this binding grants access. Defaults to true; false immediately disables it for running sessions.
|
|
86420
|
-
*/
|
|
86421
|
-
enabled?: boolean;
|
|
86422
|
-
} | {
|
|
86423
|
-
/**
|
|
86424
|
-
* Service type. Opens one service, or one sub-tree of one, to codemode; there is no per-resource id.
|
|
86425
|
-
*/
|
|
86426
|
-
type: 'search' | 'browser' | 'ticket' | 'crm' | 'canvas' | 'cut' | 'studio' | 'feedback' | 'workspace';
|
|
86427
|
-
/**
|
|
86428
|
-
* Save-time verification result. false means the resource owner was unavailable; saving still succeeded. Unchanged bindings retain their previous result. true is returned for other bindings, including workflow and script ids which are not verified at save time. Client values are ignored.
|
|
86429
|
-
*/
|
|
86430
|
-
readonly verified?: boolean;
|
|
86431
|
-
/**
|
|
86432
|
-
* Whether the service is open. Defaults to true; false immediately closes it for running sessions.
|
|
86433
|
-
*/
|
|
86434
|
-
enabled?: boolean;
|
|
86435
|
-
}>;
|
|
86436
|
-
/**
|
|
86437
|
-
* Immutable agent kind. general uses a durable computer and acts for its owner; service uses a clean environment per session; assume is driven over MCP with a durable computer and no conversation model. Historical agents infer kind from their computer binding and read as general.
|
|
86438
|
-
*/
|
|
86439
|
-
kind: 'general' | 'service' | 'assume';
|
|
86440
|
-
/**
|
|
86441
|
-
* General agents only: the agent's computers, configured like its models. default is the template its Computer starts on; allowed lists the computers resize may switch to, and a resize to anything else is refused with COMPUTER_NOT_CONFIGURED. Omit on create for {default: base, allowed: Small base-small, Base base, Large base-large}; on update, omit to keep it, send an object to replace it as a whole. Service and assume agents return 400 computers is for general agents; service agents use environment_id. /agent/v1 only.
|
|
86442
|
-
*/
|
|
86443
|
-
computers?: {
|
|
86444
|
-
/**
|
|
86445
|
-
* Template of the computer the agent's Computer starts on; must be the template of one allowed entry.
|
|
86446
|
-
*/
|
|
86447
|
-
default: string;
|
|
86448
|
-
/**
|
|
86449
|
-
* Computers the agent may switch to with the computer tool's resize, in the order they are listed.
|
|
86450
|
-
*/
|
|
86451
|
-
allowed: Array<{
|
|
86452
|
-
/**
|
|
86453
|
-
* Sandbox template name from sandbox templates.list, such as base, base-large or data. light returns 400. A template appears once.
|
|
86454
|
-
*/
|
|
86455
|
-
template: string;
|
|
86456
|
-
/**
|
|
86457
|
-
* Display name people and the model use, such as Base or Large; unique within the list ignoring case.
|
|
86458
|
-
*/
|
|
86459
|
-
name: string;
|
|
86460
|
-
}>;
|
|
86461
|
-
};
|
|
86462
87471
|
/**
|
|
86463
87472
|
* Praxis extension: MA only has session-scoped temporary containers and memory_stores, not durable browsable computers. computer_id selects a tenant-owned active computer. Session selection overrides the agent default; a sandbox environment_id and computer_id cannot be combined. Omitted when no computer is selected.
|
|
86464
87473
|
*/
|
|
@@ -87747,6 +88756,15 @@ export type AgentsVersionsListResponses = {
|
|
|
87747
88756
|
name: string;
|
|
87748
88757
|
}>;
|
|
87749
88758
|
};
|
|
88759
|
+
/**
|
|
88760
|
+
* ADR-205: which browser the agent drives. {byob: byb_…} names one of your organization's paired browsers (browser.byob.browsers.list), which the agent then drives through connect() instead of a cloud browser; null or absent is the cloud browser. The browser must belong to your organization (otherwise 400) and must grant this agent before a session can open it. Omit on update to keep it, send an object to replace it, or null to go back to the cloud browser. /agent/v1 only.
|
|
88761
|
+
*/
|
|
88762
|
+
browser?: {
|
|
88763
|
+
/**
|
|
88764
|
+
* A paired browser's id (byb_ and 26 lowercase hex characters), from browser.byob.browsers.list.
|
|
88765
|
+
*/
|
|
88766
|
+
byob: string;
|
|
88767
|
+
} | null;
|
|
87750
88768
|
/**
|
|
87751
88769
|
* Praxis extension: MA only has session-scoped temporary containers and memory_stores, not durable browsable computers. computer_id selects a tenant-owned active computer. Session selection overrides the agent default; a sandbox environment_id and computer_id cannot be combined. Omitted when no computer is selected.
|
|
87752
88770
|
*/
|
|
@@ -111139,6 +112157,51 @@ export type DevopsChangesMarkLastSliceResponses = {
|
|
|
111139
112157
|
200: DevopsChange;
|
|
111140
112158
|
};
|
|
111141
112159
|
export type DevopsChangesMarkLastSliceResponse = DevopsChangesMarkLastSliceResponses[keyof DevopsChangesMarkLastSliceResponses];
|
|
112160
|
+
export type DevopsChangesSlicesCreateData = {
|
|
112161
|
+
body?: DevopsChangeSliceCreateRequest;
|
|
112162
|
+
path: {
|
|
112163
|
+
/**
|
|
112164
|
+
* Identifies the project whose data you are reading, from the project list or create answer.
|
|
112165
|
+
*/
|
|
112166
|
+
project: string;
|
|
112167
|
+
/**
|
|
112168
|
+
* 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.
|
|
112169
|
+
*/
|
|
112170
|
+
change: string;
|
|
112171
|
+
};
|
|
112172
|
+
query?: never;
|
|
112173
|
+
url: '/devops/v1/projects/{project}/changes/{change}/slices';
|
|
112174
|
+
};
|
|
112175
|
+
export type DevopsChangesSlicesCreateErrors = {
|
|
112176
|
+
/**
|
|
112177
|
+
* 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.
|
|
112178
|
+
*/
|
|
112179
|
+
400: DevopsDevOpsError;
|
|
112180
|
+
/**
|
|
112181
|
+
* The API key is missing or invalid; send a valid Praxis API key in the Authorization header before retrying.
|
|
112182
|
+
*/
|
|
112183
|
+
401: DevopsDevOpsError;
|
|
112184
|
+
/**
|
|
112185
|
+
* 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.
|
|
112186
|
+
*/
|
|
112187
|
+
403: DevopsDevOpsError;
|
|
112188
|
+
/**
|
|
112189
|
+
* 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.
|
|
112190
|
+
*/
|
|
112191
|
+
404: DevopsDevOpsError;
|
|
112192
|
+
/**
|
|
112193
|
+
* 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.
|
|
112194
|
+
*/
|
|
112195
|
+
500: DevopsDevOpsError;
|
|
112196
|
+
};
|
|
112197
|
+
export type DevopsChangesSlicesCreateError = DevopsChangesSlicesCreateErrors[keyof DevopsChangesSlicesCreateErrors];
|
|
112198
|
+
export type DevopsChangesSlicesCreateResponses = {
|
|
112199
|
+
/**
|
|
112200
|
+
* 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.
|
|
112201
|
+
*/
|
|
112202
|
+
200: DevopsChangeSliceOpened;
|
|
112203
|
+
};
|
|
112204
|
+
export type DevopsChangesSlicesCreateResponse = DevopsChangesSlicesCreateResponses[keyof DevopsChangesSlicesCreateResponses];
|
|
111142
112205
|
export type DevopsChangesOpenPullRequestData = {
|
|
111143
112206
|
body?: DevopsChangeOpenPullRequestRequest;
|
|
111144
112207
|
path: {
|