@deepraxis/sdk 0.1.1-dev.98b62a1 → 0.1.1-dev.9932035
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 +68 -1
- package/dist/generated/index.d.ts +2 -2
- package/dist/generated/index.js +1 -1
- package/dist/generated/sdk.gen.d.ts +131 -11
- package/dist/generated/sdk.gen.js +320 -10
- package/dist/generated/types.gen.d.ts +1752 -245
- package/dist/operations.generated.js +644 -20
- package/dist/resources.generated.d.ts +55 -8
- package/dist/resources.generated.js +43 -0
- package/package.json +1 -1
|
@@ -122,7 +122,7 @@ export type AgentManaged251 = unknown & {
|
|
|
122
122
|
*/
|
|
123
123
|
behavior: 'allow';
|
|
124
124
|
/**
|
|
125
|
-
* agent shares the grant across a general
|
|
125
|
+
* agent shares the grant across a general agent's sessions; session keeps it in this session. Service agents reject agent with 400.
|
|
126
126
|
*/
|
|
127
127
|
destination: 'agent' | 'session';
|
|
128
128
|
/**
|
|
@@ -1680,7 +1680,7 @@ export type AgentSseEvent = ({
|
|
|
1680
1680
|
*/
|
|
1681
1681
|
behavior: 'allow';
|
|
1682
1682
|
/**
|
|
1683
|
-
* agent shares the grant across a general
|
|
1683
|
+
* agent shares the grant across a general agent's sessions; session keeps it in this session. Service agents reject agent with 400.
|
|
1684
1684
|
*/
|
|
1685
1685
|
destination: 'agent' | 'session';
|
|
1686
1686
|
/**
|
|
@@ -1848,7 +1848,7 @@ export type AgentSseEvent = ({
|
|
|
1848
1848
|
*/
|
|
1849
1849
|
behavior: 'allow';
|
|
1850
1850
|
/**
|
|
1851
|
-
* agent shares the grant across a general
|
|
1851
|
+
* agent shares the grant across a general agent's sessions; session keeps it in this session. Service agents reject agent with 400.
|
|
1852
1852
|
*/
|
|
1853
1853
|
destination: 'agent' | 'session';
|
|
1854
1854
|
/**
|
|
@@ -15663,6 +15663,23 @@ export type DevopsRun = {
|
|
|
15663
15663
|
* Present only when the read asked to expand failedExecutions; it lists this run's non-passed executions so a second call is not needed.
|
|
15664
15664
|
*/
|
|
15665
15665
|
failedExecutions?: Array<DevopsExecution>;
|
|
15666
|
+
/**
|
|
15667
|
+
* Present only when the run's counts cannot be trusted: they add up to more executions than the cases the run selected, which only happens when a case was counted more than once. Read it before quoting the run's numbers as evidence; a run without it is consistent.
|
|
15668
|
+
*/
|
|
15669
|
+
countsUntrusted?: {
|
|
15670
|
+
/**
|
|
15671
|
+
* What the disjoint count buckets (passed, failed, skipped, pending, other and quarantined failures) add up to; flaky is not added because it qualifies a case already counted as passed.
|
|
15672
|
+
*/
|
|
15673
|
+
counted: number;
|
|
15674
|
+
/**
|
|
15675
|
+
* How many cases the run selected, which is the bound the counts must fit.
|
|
15676
|
+
*/
|
|
15677
|
+
selectedCount: number;
|
|
15678
|
+
/**
|
|
15679
|
+
* How many executions the counts report beyond the selection; 0 never appears here, since the field itself only appears when the counts are over.
|
|
15680
|
+
*/
|
|
15681
|
+
overflow: number;
|
|
15682
|
+
};
|
|
15666
15683
|
};
|
|
15667
15684
|
/**
|
|
15668
15685
|
* The cancellation to record on a run.
|
|
@@ -18396,7 +18413,7 @@ export type MediaLibrary = {
|
|
|
18396
18413
|
};
|
|
18397
18414
|
export type MediaMediaError = {
|
|
18398
18415
|
error: {
|
|
18399
|
-
code: 'LIBRARY_NOT_FOUND' | 'ASSET_NOT_FOUND' | 'JOB_NOT_FOUND' | 'UNDERSTANDING_NOT_FOUND' | 'ASSET_VERSION_CHANGED' | 'LIBRARY_INVALID_STATE' | 'INVALID_PARAMS' | 'INVALID_EXPRESSION' | 'UNSUPPORTED' | 'NOT_IMPLEMENTED' | 'FILE_TOO_LARGE' | 'FILE_EMPTY' | 'UNSUPPORTED_MEDIA' | 'FETCH_FAILED' | 'LIMIT_EXCEEDED' | 'CHUNK_INVALID' | 'RATE_LIMITED' | 'CAPACITY' | 'UPSTREAM_FAILED' | 'CONTENT_REJECTED' | 'GENERATION_FAILED' | 'BINDING_READ_ONLY' | 'OPERATION_NOT_SUPPORTED' | 'MODEL_PENDING' | 'REFERENCE_TYPE_MISMATCH' | 'CONSENT_REQUIRED' | 'LIBRARY_IS_DEFAULT' | 'JOB_INVALID_STATE' | 'VOICE_TRAINING' | 'INSUFFICIENT_BALANCE';
|
|
18416
|
+
code: 'LIBRARY_NOT_FOUND' | 'ASSET_NOT_FOUND' | 'JOB_NOT_FOUND' | 'UNDERSTANDING_NOT_FOUND' | 'ASSET_VERSION_CHANGED' | 'LIBRARY_INVALID_STATE' | 'INVALID_PARAMS' | 'INVALID_EXPRESSION' | 'UNSUPPORTED' | 'NOT_IMPLEMENTED' | 'FILE_TOO_LARGE' | 'FILE_EMPTY' | 'FILE_NOT_READY' | 'UNSUPPORTED_MEDIA' | 'FETCH_FAILED' | 'LIMIT_EXCEEDED' | 'CHUNK_INVALID' | 'RATE_LIMITED' | 'CAPACITY' | 'UPSTREAM_FAILED' | 'CONTENT_REJECTED' | 'GENERATION_FAILED' | 'BINDING_READ_ONLY' | 'OPERATION_NOT_SUPPORTED' | 'MODEL_PENDING' | 'REFERENCE_TYPE_MISMATCH' | 'CONSENT_REQUIRED' | 'LIBRARY_IS_DEFAULT' | 'JOB_INVALID_STATE' | 'VOICE_TRAINING' | 'INSUFFICIENT_BALANCE';
|
|
18400
18417
|
message: string;
|
|
18401
18418
|
details: string | null;
|
|
18402
18419
|
};
|
|
@@ -19652,6 +19669,23 @@ export type MediaGenerationCapabilities = {
|
|
|
19652
19669
|
matting: MediaGenerationTypeCapability;
|
|
19653
19670
|
};
|
|
19654
19671
|
};
|
|
19672
|
+
/**
|
|
19673
|
+
* A video asset’s on-demand HLS ladder for its current version: the asset, the version, and one summary per recorded rung.
|
|
19674
|
+
*/
|
|
19675
|
+
export type MediaHlsLadder = {
|
|
19676
|
+
/**
|
|
19677
|
+
* The video asset this ladder belongs to.
|
|
19678
|
+
*/
|
|
19679
|
+
asset_id: MediaAssetId;
|
|
19680
|
+
/**
|
|
19681
|
+
* The asset version the ladder was built for; a later version gets its own ladder.
|
|
19682
|
+
*/
|
|
19683
|
+
version: number;
|
|
19684
|
+
/**
|
|
19685
|
+
* One entry per rung recorded for this version, ascending by height; an asset whose ladder was never requested, and an asset that is not a video, answer an empty list.
|
|
19686
|
+
*/
|
|
19687
|
+
renditions: Array<MediaHlsRendition>;
|
|
19688
|
+
};
|
|
19655
19689
|
/**
|
|
19656
19690
|
* One page of type registrations; types are few enough that this face returns them in a single page.
|
|
19657
19691
|
*/
|
|
@@ -20116,6 +20150,372 @@ export type OntologySearchResult = {
|
|
|
20116
20150
|
matched?: 'name' | 'alias' | 'description' | 'fact';
|
|
20117
20151
|
}>;
|
|
20118
20152
|
};
|
|
20153
|
+
/**
|
|
20154
|
+
* 一页库;库不会太多,通常是单页。
|
|
20155
|
+
*/
|
|
20156
|
+
export type RegistryRepositoryPage = {
|
|
20157
|
+
/**
|
|
20158
|
+
* 这个组织的库,按创建时间排序。
|
|
20159
|
+
*/
|
|
20160
|
+
data: Array<RegistryRepository>;
|
|
20161
|
+
/**
|
|
20162
|
+
* 下一页的游标;null 表示没有更多。翻页时原样回传它,不要解析。
|
|
20163
|
+
*/
|
|
20164
|
+
next_cursor: string;
|
|
20165
|
+
};
|
|
20166
|
+
/**
|
|
20167
|
+
* 建库的请求体;只有 name 必填。
|
|
20168
|
+
*/
|
|
20169
|
+
export type RegistryCreateRepositoryInput = {
|
|
20170
|
+
/**
|
|
20171
|
+
* 新库的唯一标识,小写字母、数字和连字符,最多 63 个字符,且在这个组织里未被使用;不能只有一个连字符结尾。
|
|
20172
|
+
*/
|
|
20173
|
+
name: string;
|
|
20174
|
+
/**
|
|
20175
|
+
* 给人看的库名;省略时后续显示 name。
|
|
20176
|
+
*/
|
|
20177
|
+
display_name?: string;
|
|
20178
|
+
/**
|
|
20179
|
+
* 库的说明;省略时不写。
|
|
20180
|
+
*/
|
|
20181
|
+
description?: string;
|
|
20182
|
+
};
|
|
20183
|
+
/**
|
|
20184
|
+
* 一个库:组织里包的分类容器。每个组织有一个 is_default 为 true 的默认库。
|
|
20185
|
+
*/
|
|
20186
|
+
export type RegistryRepository = {
|
|
20187
|
+
/**
|
|
20188
|
+
* 库的标识,供 repositories.retrieve、repositories.update、repositories.delete 和 packages.list 使用;当成不透明字符串,不要解析。
|
|
20189
|
+
*/
|
|
20190
|
+
id: string;
|
|
20191
|
+
/**
|
|
20192
|
+
* 对象类型标记,固定为 registry.repository,用来区分同一个响应里不同类型的对象。
|
|
20193
|
+
*/
|
|
20194
|
+
object: string;
|
|
20195
|
+
/**
|
|
20196
|
+
* 库的唯一标识,小写字母、数字和连字符,最多 63 个字符;建库后不能修改。
|
|
20197
|
+
*/
|
|
20198
|
+
name: string;
|
|
20199
|
+
/**
|
|
20200
|
+
* 给人看的库名;没有时是 null。
|
|
20201
|
+
*/
|
|
20202
|
+
display_name: string;
|
|
20203
|
+
/**
|
|
20204
|
+
* 库的说明;没有时是 null。
|
|
20205
|
+
*/
|
|
20206
|
+
description: string;
|
|
20207
|
+
/**
|
|
20208
|
+
* 是否这个组织的默认库;自动创建、不能删除,新包在没有指定库时进这里。
|
|
20209
|
+
*/
|
|
20210
|
+
is_default: boolean;
|
|
20211
|
+
/**
|
|
20212
|
+
* 库里当前的包数量;非零时这个库不能删。
|
|
20213
|
+
*/
|
|
20214
|
+
package_count: number;
|
|
20215
|
+
/**
|
|
20216
|
+
* 库创建的时刻,ISO 8601 UTC。
|
|
20217
|
+
*/
|
|
20218
|
+
create_time: string;
|
|
20219
|
+
/**
|
|
20220
|
+
* 库最近一次改动的时刻,ISO 8601 UTC。
|
|
20221
|
+
*/
|
|
20222
|
+
update_time: string;
|
|
20223
|
+
};
|
|
20224
|
+
/**
|
|
20225
|
+
* 改库的请求体;省略的字段保持原值,至少给一个。
|
|
20226
|
+
*/
|
|
20227
|
+
export type RegistryUpdateRepositoryInput = {
|
|
20228
|
+
/**
|
|
20229
|
+
* 新的显示名;显式传 null 会清空它。
|
|
20230
|
+
*/
|
|
20231
|
+
display_name?: string;
|
|
20232
|
+
/**
|
|
20233
|
+
* 新的说明;显式传 null 会清空它。
|
|
20234
|
+
*/
|
|
20235
|
+
description?: string;
|
|
20236
|
+
};
|
|
20237
|
+
/**
|
|
20238
|
+
* 删除库的确认对象;库已删除时返回,用来确认删的是哪一个。
|
|
20239
|
+
*/
|
|
20240
|
+
export type RegistryDeletedRepository = {
|
|
20241
|
+
/**
|
|
20242
|
+
* 被删库的标识,和删除请求里的 repository_id 相同。
|
|
20243
|
+
*/
|
|
20244
|
+
id: string;
|
|
20245
|
+
/**
|
|
20246
|
+
* 对象类型标记,固定为 registry.repository。
|
|
20247
|
+
*/
|
|
20248
|
+
object: string;
|
|
20249
|
+
/**
|
|
20250
|
+
* 固定为 true,表示这个库已被删除。
|
|
20251
|
+
*/
|
|
20252
|
+
deleted: boolean;
|
|
20253
|
+
};
|
|
20254
|
+
/**
|
|
20255
|
+
* 一页包。
|
|
20256
|
+
*/
|
|
20257
|
+
export type RegistryPackagePage = {
|
|
20258
|
+
/**
|
|
20259
|
+
* 匹配这个库与筛选条件的包。
|
|
20260
|
+
*/
|
|
20261
|
+
data: Array<RegistryPackage>;
|
|
20262
|
+
/**
|
|
20263
|
+
* 下一页的游标;null 表示没有更多。
|
|
20264
|
+
*/
|
|
20265
|
+
next_cursor: string;
|
|
20266
|
+
};
|
|
20267
|
+
/**
|
|
20268
|
+
* 发布(新包或新版本)的 multipart 请求体;archive 与 files 二选一,二者都给或都不给会 400。
|
|
20269
|
+
*/
|
|
20270
|
+
export type RegistryPublishInput = {
|
|
20271
|
+
/**
|
|
20272
|
+
* 要发布的版本号,完整 semver,例如 1.2.0;每个包内必须严格递增,撤回的版本也占号。
|
|
20273
|
+
*/
|
|
20274
|
+
version: string;
|
|
20275
|
+
/**
|
|
20276
|
+
* 一个 zip 文件,内含包的内容;与 files 二选一。单个顶层目录会被剥掉。
|
|
20277
|
+
*/
|
|
20278
|
+
archive?: Blob | File;
|
|
20279
|
+
/**
|
|
20280
|
+
* 直接上传的一组文件,每个 part 的 filename 是相对路径;与 archive 二选一。
|
|
20281
|
+
*/
|
|
20282
|
+
files?: Array<Blob | File>;
|
|
20283
|
+
/**
|
|
20284
|
+
* 给人看的标题;省略时从包内容里取。
|
|
20285
|
+
*/
|
|
20286
|
+
title?: string;
|
|
20287
|
+
/**
|
|
20288
|
+
* 包说明;省略时从包内容里取。
|
|
20289
|
+
*/
|
|
20290
|
+
description?: string;
|
|
20291
|
+
/**
|
|
20292
|
+
* 逗号分隔的标签,例如 review,quality;省略时没有标签。
|
|
20293
|
+
*/
|
|
20294
|
+
tags?: string;
|
|
20295
|
+
};
|
|
20296
|
+
/**
|
|
20297
|
+
* 一个包:库里的一个技能或插件,带它的最新版本和累计下载量。
|
|
20298
|
+
*/
|
|
20299
|
+
export type RegistryPackage = {
|
|
20300
|
+
/**
|
|
20301
|
+
* 包的标识,供 packages.retrieve 和 versions.* 使用;当成不透明字符串。
|
|
20302
|
+
*/
|
|
20303
|
+
id: string;
|
|
20304
|
+
/**
|
|
20305
|
+
* 对象类型标记,固定为 registry.package。
|
|
20306
|
+
*/
|
|
20307
|
+
object: string;
|
|
20308
|
+
/**
|
|
20309
|
+
* 包所属库的标识;来自 repositories.list。
|
|
20310
|
+
*/
|
|
20311
|
+
repository_id: string;
|
|
20312
|
+
/**
|
|
20313
|
+
* 包名,发布时从 SKILL.md 或 .claude-plugin/plugin.json 读出,不接受调用方指定。
|
|
20314
|
+
*/
|
|
20315
|
+
name: string;
|
|
20316
|
+
/**
|
|
20317
|
+
* 包的种类;技能或插件。
|
|
20318
|
+
*/
|
|
20319
|
+
kind: 'skill' | 'plugin';
|
|
20320
|
+
/**
|
|
20321
|
+
* 给人看的标题;来自上传内容或发布时的 title,没有时是 null。
|
|
20322
|
+
*/
|
|
20323
|
+
title: string;
|
|
20324
|
+
/**
|
|
20325
|
+
* 包说明;没有时是 null。
|
|
20326
|
+
*/
|
|
20327
|
+
description: string;
|
|
20328
|
+
/**
|
|
20329
|
+
* 作者列表,来自上传内容里的元数据。
|
|
20330
|
+
*/
|
|
20331
|
+
authors: Array<string>;
|
|
20332
|
+
/**
|
|
20333
|
+
* 标签,发布时以逗号分隔给出,用于检索。
|
|
20334
|
+
*/
|
|
20335
|
+
tags: Array<string>;
|
|
20336
|
+
/**
|
|
20337
|
+
* 当前最新版本号;所有版本都被撤回时是 null,此时这个包不能再被新装。
|
|
20338
|
+
*/
|
|
20339
|
+
latest_version: string;
|
|
20340
|
+
/**
|
|
20341
|
+
* 这个包 archive 下载的累计次数,每次 archive 调用加一。
|
|
20342
|
+
*/
|
|
20343
|
+
downloads: number;
|
|
20344
|
+
/**
|
|
20345
|
+
* 包首次发布的时刻,ISO 8601 UTC。
|
|
20346
|
+
*/
|
|
20347
|
+
create_time: string;
|
|
20348
|
+
/**
|
|
20349
|
+
* 包最近一次发布或撤回的时刻,ISO 8601 UTC。
|
|
20350
|
+
*/
|
|
20351
|
+
update_time: string;
|
|
20352
|
+
};
|
|
20353
|
+
/**
|
|
20354
|
+
* 一页版本,含已撤回的版本。
|
|
20355
|
+
*/
|
|
20356
|
+
export type RegistryVersionPage = {
|
|
20357
|
+
/**
|
|
20358
|
+
* 这个包的版本,按发布顺序。
|
|
20359
|
+
*/
|
|
20360
|
+
data: Array<RegistryVersion>;
|
|
20361
|
+
/**
|
|
20362
|
+
* 下一页的游标;null 表示没有更多。
|
|
20363
|
+
*/
|
|
20364
|
+
next_cursor: string;
|
|
20365
|
+
};
|
|
20366
|
+
/**
|
|
20367
|
+
* 一个版本:包在某一个 semver 上的内容快照。
|
|
20368
|
+
*/
|
|
20369
|
+
export type RegistryVersion = {
|
|
20370
|
+
/**
|
|
20371
|
+
* 对象类型标记,固定为 registry.version。
|
|
20372
|
+
*/
|
|
20373
|
+
object: string;
|
|
20374
|
+
/**
|
|
20375
|
+
* 这个版本所属包的标识。
|
|
20376
|
+
*/
|
|
20377
|
+
package_id: string;
|
|
20378
|
+
/**
|
|
20379
|
+
* 版本号,semver;同一包内严格递增,撤回也占号。
|
|
20380
|
+
*/
|
|
20381
|
+
version: string;
|
|
20382
|
+
/**
|
|
20383
|
+
* 版本内容的摘要,形如 "sha256:" 加上十六进制;用来确认两次拿到的是同一份内容。
|
|
20384
|
+
*/
|
|
20385
|
+
digest: string;
|
|
20386
|
+
/**
|
|
20387
|
+
* 归档解压前的大小,单位字节。
|
|
20388
|
+
*/
|
|
20389
|
+
size_bytes: number;
|
|
20390
|
+
/**
|
|
20391
|
+
* 是否已撤回;撤回的版本不再是 latest、不能新装,但已装的照常可用。
|
|
20392
|
+
*/
|
|
20393
|
+
withdrawn: boolean;
|
|
20394
|
+
/**
|
|
20395
|
+
* 撤回时刻,ISO 8601 UTC;未撤回时是 null。
|
|
20396
|
+
*/
|
|
20397
|
+
withdraw_time: string;
|
|
20398
|
+
/**
|
|
20399
|
+
* 这个版本发布的时刻,ISO 8601 UTC。
|
|
20400
|
+
*/
|
|
20401
|
+
create_time: string;
|
|
20402
|
+
};
|
|
20403
|
+
/**
|
|
20404
|
+
* 一个版本的文件清单;文件不多,一次返回全部。
|
|
20405
|
+
*/
|
|
20406
|
+
export type RegistryFileEntryPage = {
|
|
20407
|
+
/**
|
|
20408
|
+
* 这个版本的文件条目,按路径排序。
|
|
20409
|
+
*/
|
|
20410
|
+
data: Array<RegistryFileEntry>;
|
|
20411
|
+
};
|
|
20412
|
+
/**
|
|
20413
|
+
* 安装请求;技能给 agent_ids,插件给 computer_ids,另一组不能出现。
|
|
20414
|
+
*/
|
|
20415
|
+
export type RegistryInstallInput = {
|
|
20416
|
+
/**
|
|
20417
|
+
* 要装到的智能体标识,1 到 50 个,重复的会合并;只用于技能,来自智能体列表的 id。
|
|
20418
|
+
*/
|
|
20419
|
+
agent_ids?: Array<string>;
|
|
20420
|
+
/**
|
|
20421
|
+
* 要装到的电脑标识,1 到 50 个,重复的会合并;只用于插件,来自电脑列表的 id。
|
|
20422
|
+
*/
|
|
20423
|
+
computer_ids?: Array<string>;
|
|
20424
|
+
/**
|
|
20425
|
+
* 要装的版本号,完整 semver;省略时装最新版;插件给了也必须等于最新版,撤回的版本不能装。
|
|
20426
|
+
*/
|
|
20427
|
+
version?: string;
|
|
20428
|
+
};
|
|
20429
|
+
/**
|
|
20430
|
+
* 一次安装的结果;部分目标失败时仍是 201。
|
|
20431
|
+
*/
|
|
20432
|
+
export type RegistryInstallResult = {
|
|
20433
|
+
/**
|
|
20434
|
+
* 装成功的安装记录。
|
|
20435
|
+
*/
|
|
20436
|
+
data: Array<RegistryInstallation>;
|
|
20437
|
+
/**
|
|
20438
|
+
* 没装成的目标和原因;全部成功时是空数组。
|
|
20439
|
+
*/
|
|
20440
|
+
errors: Array<RegistryInstallationTargetError>;
|
|
20441
|
+
};
|
|
20442
|
+
/**
|
|
20443
|
+
* 一个包的全部安装记录,没有分页。
|
|
20444
|
+
*/
|
|
20445
|
+
export type RegistryInstallationList = {
|
|
20446
|
+
/**
|
|
20447
|
+
* 安装记录,按创建时间排序,每条带对账后的 state。
|
|
20448
|
+
*/
|
|
20449
|
+
data: Array<RegistryInstallation>;
|
|
20450
|
+
};
|
|
20451
|
+
/**
|
|
20452
|
+
* 换版本请求。
|
|
20453
|
+
*/
|
|
20454
|
+
export type RegistryInstallationUpdateInput = {
|
|
20455
|
+
/**
|
|
20456
|
+
* 要换到的版本号,完整 semver;省略时换到最新版;插件给了也必须等于最新版,撤回的版本不能换。
|
|
20457
|
+
*/
|
|
20458
|
+
version?: string;
|
|
20459
|
+
};
|
|
20460
|
+
/**
|
|
20461
|
+
* 一个包装在一个目标上的记录;同一个包在同一目标上只有一条。
|
|
20462
|
+
*/
|
|
20463
|
+
export type RegistryInstallation = {
|
|
20464
|
+
/**
|
|
20465
|
+
* 安装记录的标识,ins_ 加 32 位十六进制;用于 installations.update 和 installations.delete。
|
|
20466
|
+
*/
|
|
20467
|
+
id: string;
|
|
20468
|
+
/**
|
|
20469
|
+
* 对象类型标记,固定为 registry.installation。
|
|
20470
|
+
*/
|
|
20471
|
+
object: string;
|
|
20472
|
+
/**
|
|
20473
|
+
* 装的是哪个包,对应 packages.retrieve 的 id。
|
|
20474
|
+
*/
|
|
20475
|
+
package_id: string;
|
|
20476
|
+
/**
|
|
20477
|
+
* 包的种类,决定目标类型。
|
|
20478
|
+
*/
|
|
20479
|
+
kind: 'skill' | 'plugin';
|
|
20480
|
+
target: RegistryInstallationTarget;
|
|
20481
|
+
/**
|
|
20482
|
+
* 目标上的版本号;对账为 drifted 时是目标上实际的版本,其余情况是记录的版本。
|
|
20483
|
+
*/
|
|
20484
|
+
version: string;
|
|
20485
|
+
/**
|
|
20486
|
+
* 这条记录的版本是否已被撤回;撤回不影响已装的,但不能再新装这个版本。
|
|
20487
|
+
*/
|
|
20488
|
+
withdrawn: boolean;
|
|
20489
|
+
/**
|
|
20490
|
+
* 读取时和目标对账的结论;安装和更新的响应里固定是 installed。
|
|
20491
|
+
*/
|
|
20492
|
+
state: 'installed' | 'drifted' | 'missing' | 'unknown';
|
|
20493
|
+
/**
|
|
20494
|
+
* 这条记录第一次建立的时刻,ISO 8601 UTC。
|
|
20495
|
+
*/
|
|
20496
|
+
create_time: string;
|
|
20497
|
+
/**
|
|
20498
|
+
* 这条记录最近一次安装或换版本的时刻,ISO 8601 UTC。
|
|
20499
|
+
*/
|
|
20500
|
+
update_time: string;
|
|
20501
|
+
};
|
|
20502
|
+
/**
|
|
20503
|
+
* 删除安装记录的确认对象。
|
|
20504
|
+
*/
|
|
20505
|
+
export type RegistryDeletedInstallation = {
|
|
20506
|
+
/**
|
|
20507
|
+
* 被删安装记录的标识,和请求里的 installation_id 相同。
|
|
20508
|
+
*/
|
|
20509
|
+
id: string;
|
|
20510
|
+
/**
|
|
20511
|
+
* 对象类型标记,固定为 registry.installation。
|
|
20512
|
+
*/
|
|
20513
|
+
object: string;
|
|
20514
|
+
/**
|
|
20515
|
+
* 固定为 true,表示这条记录已删除,包已从目标上卸下。
|
|
20516
|
+
*/
|
|
20517
|
+
deleted: boolean;
|
|
20518
|
+
};
|
|
20119
20519
|
/**
|
|
20120
20520
|
* Sandbox creation request. All system communication with the sandbox is always secured; the template's envd version must support secured access.
|
|
20121
20521
|
*/
|
|
@@ -24711,7 +25111,7 @@ export type AgentSseData = {
|
|
|
24711
25111
|
*/
|
|
24712
25112
|
behavior: 'allow';
|
|
24713
25113
|
/**
|
|
24714
|
-
* agent shares the grant across a general
|
|
25114
|
+
* agent shares the grant across a general agent's sessions; session keeps it in this session. Service agents reject agent with 400.
|
|
24715
25115
|
*/
|
|
24716
25116
|
destination: 'agent' | 'session';
|
|
24717
25117
|
/**
|
|
@@ -24861,7 +25261,7 @@ export type AgentSseData = {
|
|
|
24861
25261
|
*/
|
|
24862
25262
|
behavior: 'allow';
|
|
24863
25263
|
/**
|
|
24864
|
-
* agent shares the grant across a general
|
|
25264
|
+
* agent shares the grant across a general agent's sessions; session keeps it in this session. Service agents reject agent with 400.
|
|
24865
25265
|
*/
|
|
24866
25266
|
destination: 'agent' | 'session';
|
|
24867
25267
|
/**
|
|
@@ -33896,7 +34296,7 @@ export type DevopsPromotionFailure = {
|
|
|
33896
34296
|
/**
|
|
33897
34297
|
* The category of the failure, which is the value a caller branches on; the executor's own cause is carried alongside it.
|
|
33898
34298
|
*/
|
|
33899
|
-
cause: 'plan_refused' | 'render_failed' | 'migration_failed' | 'config_gate_failed' | 'deploy_failed' | 'verification_failed' | 'observation_failed' | 'execution_failed' | 'executor_unavailable' | 'deadline_exceeded' | 'approval_rejected' | 'release_abandoned' | 'feature_not_supported';
|
|
34299
|
+
cause: 'plan_refused' | 'render_failed' | 'migration_failed' | 'config_gate_failed' | 'deploy_failed' | 'verification_failed' | 'observation_failed' | 'execution_failed' | 'executor_unavailable' | 'deadline_exceeded' | 'lost' | 'approval_rejected' | 'release_abandoned' | 'feature_not_supported';
|
|
33900
34300
|
/**
|
|
33901
34301
|
* The deploy-level cause the executor reported, present when the failure happened during a deploy job; it is finer-grained than cause.
|
|
33902
34302
|
*/
|
|
@@ -35733,7 +36133,7 @@ export type MediaGenerationType = 'image' | 'video' | 'speech' | 'music' | 'soun
|
|
|
35733
36133
|
* Edit operations: the change this step applied to its parent asset.
|
|
35734
36134
|
*/
|
|
35735
36135
|
export type MediaGenerationOperation = 'generate' | 'clone' | 'tag' | 'untag' | 'set_context' | 'move' | 'delete' | 'reprocess' | 'variations' | 'upscale' | 'outpaint' | 'inpaint' | 'erase' | 'replace_object' | 'recolor' | 'remove_background' | 'replace_background' | 'to_video' | 'extend' | 'edit' | 'lip_sync' | 'frame' | 'to_gif' | 'voice_change' | 'resynthesize';
|
|
35736
|
-
export type MediaMediaErrorCode = 'LIBRARY_NOT_FOUND' | 'ASSET_NOT_FOUND' | 'JOB_NOT_FOUND' | 'UNDERSTANDING_NOT_FOUND' | 'ASSET_VERSION_CHANGED' | 'LIBRARY_INVALID_STATE' | 'INVALID_PARAMS' | 'INVALID_EXPRESSION' | 'UNSUPPORTED' | 'NOT_IMPLEMENTED' | 'FILE_TOO_LARGE' | 'FILE_EMPTY' | 'UNSUPPORTED_MEDIA' | 'FETCH_FAILED' | 'LIMIT_EXCEEDED' | 'CHUNK_INVALID' | 'RATE_LIMITED' | 'CAPACITY' | 'UPSTREAM_FAILED' | 'CONTENT_REJECTED' | 'GENERATION_FAILED' | 'BINDING_READ_ONLY' | 'OPERATION_NOT_SUPPORTED' | 'MODEL_PENDING' | 'REFERENCE_TYPE_MISMATCH' | 'CONSENT_REQUIRED' | 'LIBRARY_IS_DEFAULT' | 'JOB_INVALID_STATE' | 'VOICE_TRAINING' | 'INSUFFICIENT_BALANCE';
|
|
36136
|
+
export type MediaMediaErrorCode = 'LIBRARY_NOT_FOUND' | 'ASSET_NOT_FOUND' | 'JOB_NOT_FOUND' | 'UNDERSTANDING_NOT_FOUND' | 'ASSET_VERSION_CHANGED' | 'LIBRARY_INVALID_STATE' | 'INVALID_PARAMS' | 'INVALID_EXPRESSION' | 'UNSUPPORTED' | 'NOT_IMPLEMENTED' | 'FILE_TOO_LARGE' | 'FILE_EMPTY' | 'FILE_NOT_READY' | 'UNSUPPORTED_MEDIA' | 'FETCH_FAILED' | 'LIMIT_EXCEEDED' | 'CHUNK_INVALID' | 'RATE_LIMITED' | 'CAPACITY' | 'UPSTREAM_FAILED' | 'CONTENT_REJECTED' | 'GENERATION_FAILED' | 'BINDING_READ_ONLY' | 'OPERATION_NOT_SUPPORTED' | 'MODEL_PENDING' | 'REFERENCE_TYPE_MISMATCH' | 'CONSENT_REQUIRED' | 'LIBRARY_IS_DEFAULT' | 'JOB_INVALID_STATE' | 'VOICE_TRAINING' | 'INSUFFICIENT_BALANCE';
|
|
35737
36137
|
/**
|
|
35738
36138
|
* State of a requested generation output.
|
|
35739
36139
|
*/
|
|
@@ -36002,6 +36402,32 @@ export type MediaGenerationTypeCapability = {
|
|
|
36002
36402
|
*/
|
|
36003
36403
|
models: Array<MediaGenerationCapabilityModel>;
|
|
36004
36404
|
};
|
|
36405
|
+
export type MediaHlsRendition = {
|
|
36406
|
+
/**
|
|
36407
|
+
* Clarity rung as its playlist calls it; the height with a p, so 480p is the short side at 480 pixels.
|
|
36408
|
+
*/
|
|
36409
|
+
name: '480p' | '720p' | '1080p';
|
|
36410
|
+
/**
|
|
36411
|
+
* Short side of this rung in pixels.
|
|
36412
|
+
*/
|
|
36413
|
+
height: 480 | 720 | 1080;
|
|
36414
|
+
/**
|
|
36415
|
+
* Width of this rung’s first encoded piece, read from that piece’s own index; null while no piece has finished indexing.
|
|
36416
|
+
*/
|
|
36417
|
+
width: number | null;
|
|
36418
|
+
/**
|
|
36419
|
+
* Average bitrate of this rung in bits per second, computed from the encoded segments the same way the master playlist’s AVERAGE-BANDWIDTH is; null while nothing is indexed yet.
|
|
36420
|
+
*/
|
|
36421
|
+
bitrate: number | null;
|
|
36422
|
+
/**
|
|
36423
|
+
* Stored size of this rung so far, in bytes, counting the pieces that are indexed (init segments included); it grows as pieces finish.
|
|
36424
|
+
*/
|
|
36425
|
+
bytes: number;
|
|
36426
|
+
/**
|
|
36427
|
+
* Readiness of this rung: processing while any piece is pending or running, ready when every piece is ready, failed when any piece gave up. A failed rung is not charged.
|
|
36428
|
+
*/
|
|
36429
|
+
state: MediaHlsRenditionState;
|
|
36430
|
+
};
|
|
36005
36431
|
/**
|
|
36006
36432
|
* A kind of entity the graph accepts, for example a file or a customer.
|
|
36007
36433
|
*/
|
|
@@ -36166,6 +36592,70 @@ export type OntologyChangesetOp = {
|
|
|
36166
36592
|
*/
|
|
36167
36593
|
alias?: string;
|
|
36168
36594
|
};
|
|
36595
|
+
export type RegistryRegistryError = {
|
|
36596
|
+
/**
|
|
36597
|
+
* 非 2xx 响应的失败详情;按操作状态码与 code 的说明选择恢复动作。
|
|
36598
|
+
*/
|
|
36599
|
+
error: {
|
|
36600
|
+
/**
|
|
36601
|
+
* 机器可读的失败类别;触发条件与恢复动作见本操作对应的错误响应说明。
|
|
36602
|
+
*/
|
|
36603
|
+
code: string;
|
|
36604
|
+
/**
|
|
36605
|
+
* 人类可读的失败原因;指出出错的字段或条件,以及该怎么做。
|
|
36606
|
+
*/
|
|
36607
|
+
message: string;
|
|
36608
|
+
/**
|
|
36609
|
+
* 可选的具体上下文,在失败指向某个字段或条目时给出;整请求失败时没有。
|
|
36610
|
+
*/
|
|
36611
|
+
details?: {
|
|
36612
|
+
[key: string]: unknown;
|
|
36613
|
+
};
|
|
36614
|
+
};
|
|
36615
|
+
};
|
|
36616
|
+
/**
|
|
36617
|
+
* 一个版本解压后的一个文件条目。
|
|
36618
|
+
*/
|
|
36619
|
+
export type RegistryFileEntry = {
|
|
36620
|
+
/**
|
|
36621
|
+
* 相对包根的文件路径,可以含斜杠;下载文件时原样用它。
|
|
36622
|
+
*/
|
|
36623
|
+
path: string;
|
|
36624
|
+
/**
|
|
36625
|
+
* 文件大小,单位字节。
|
|
36626
|
+
*/
|
|
36627
|
+
size_bytes: number;
|
|
36628
|
+
};
|
|
36629
|
+
/**
|
|
36630
|
+
* 某个目标没装成的原因。
|
|
36631
|
+
*/
|
|
36632
|
+
export type RegistryInstallationTargetError = {
|
|
36633
|
+
/**
|
|
36634
|
+
* 失败的目标标识,和请求里给的一致。
|
|
36635
|
+
*/
|
|
36636
|
+
target_id: string;
|
|
36637
|
+
/**
|
|
36638
|
+
* 失败码;FAILED_PRECONDITION 是状态不允许(同名冲突、技能已满 20 个、没有权限),INTERNAL 是目标暂时不可用,可以重试。
|
|
36639
|
+
*/
|
|
36640
|
+
code: string;
|
|
36641
|
+
/**
|
|
36642
|
+
* 给人读的失败原因,指出要改什么。
|
|
36643
|
+
*/
|
|
36644
|
+
message: string;
|
|
36645
|
+
};
|
|
36646
|
+
/**
|
|
36647
|
+
* 安装在哪个目标上。
|
|
36648
|
+
*/
|
|
36649
|
+
export type RegistryInstallationTarget = {
|
|
36650
|
+
/**
|
|
36651
|
+
* 目标类型;agent 是装了技能的智能体,computer 是装了插件的电脑。
|
|
36652
|
+
*/
|
|
36653
|
+
type: 'agent' | 'computer';
|
|
36654
|
+
/**
|
|
36655
|
+
* 目标的标识,智能体的 id 或电脑的 id,和安装请求里给的一致。
|
|
36656
|
+
*/
|
|
36657
|
+
id: string;
|
|
36658
|
+
};
|
|
36169
36659
|
/**
|
|
36170
36660
|
* Auto-resume configuration for paused sandboxes.
|
|
36171
36661
|
*/
|
|
@@ -41439,7 +41929,7 @@ export type OrganizationHolderRef = {
|
|
|
41439
41929
|
/**
|
|
41440
41930
|
* Kind of actor holding the position.
|
|
41441
41931
|
*/
|
|
41442
|
-
kind: 'human' | 'general' | '
|
|
41932
|
+
kind: 'human' | 'general' | 'service' | 'assume';
|
|
41443
41933
|
/**
|
|
41444
41934
|
* URL of the holder's avatar; null when none is set.
|
|
41445
41935
|
*/
|
|
@@ -42623,7 +43113,7 @@ export type MediaSemanticMatch = {
|
|
|
42623
43113
|
/**
|
|
42624
43114
|
* Type of change recorded for a library, asset, processing task, search index or batch.
|
|
42625
43115
|
*/
|
|
42626
|
-
export type MediaMediaEventType = 'library.status_provisioning' | 'library.status_active' | 'library.status_deleting' | 'library.status_deleted' | 'library.status_failed' | 'library.restored' | 'library.updated' | 'asset.created' | 'asset.updated' | 'asset.overwritten' | 'asset.renamed' | 'asset.deleted' | 'understanding.status_ready' | 'understanding.status_failed' | 'understanding.status_unsupported' | 'search.indexed' | 'batch.succeeded' | 'batch.failed' | 'library.understanding_drained' | 'batch.created' | 'generation.created' | 'generation.succeeded' | 'generation.failed' | 'generation.cancelled';
|
|
43116
|
+
export type MediaMediaEventType = 'library.status_provisioning' | 'library.status_active' | 'library.status_deleting' | 'library.status_deleted' | 'library.status_failed' | 'library.restored' | 'library.updated' | 'asset.created' | 'asset.updated' | 'asset.overwritten' | 'asset.renamed' | 'asset.deleted' | 'understanding.status_ready' | 'understanding.status_failed' | 'understanding.status_unsupported' | 'search.indexed' | 'batch.succeeded' | 'batch.failed' | 'library.understanding_drained' | 'batch.created' | 'hls.requested' | 'generation.created' | 'generation.succeeded' | 'generation.failed' | 'generation.cancelled';
|
|
42627
43117
|
/**
|
|
42628
43118
|
* One picture an element names, with the word the caller uses for that view.
|
|
42629
43119
|
*/
|
|
@@ -42703,6 +43193,10 @@ export type MediaGenerationCapabilityModel = {
|
|
|
42703
43193
|
*/
|
|
42704
43194
|
resolutions?: Array<string>;
|
|
42705
43195
|
};
|
|
43196
|
+
/**
|
|
43197
|
+
* Readiness of one rung or of the ladder it is part of.
|
|
43198
|
+
*/
|
|
43199
|
+
export type MediaHlsRenditionState = 'processing' | 'ready' | 'failed';
|
|
42706
43200
|
/**
|
|
42707
43201
|
* Auto-resume enabled flag for paused sandboxes. Default false.
|
|
42708
43202
|
*/
|
|
@@ -45961,6 +46455,46 @@ export type OntologyNodeId = string;
|
|
|
45961
46455
|
* Relation id returned by relations.list, relations.create or a changeset, in the form oed_ followed by 32 lowercase letters or digits; a node id is not accepted.
|
|
45962
46456
|
*/
|
|
45963
46457
|
export type OntologyRelationId = string;
|
|
46458
|
+
/**
|
|
46459
|
+
* 每页返回多少条,1 到 100;省略时默认 20。超过 100 会被截到 100。
|
|
46460
|
+
*/
|
|
46461
|
+
export type RegistryPageSize = number;
|
|
46462
|
+
/**
|
|
46463
|
+
* 上一页返回的 next_cursor,用来取下一页;第一页省略它,next_cursor 为 null 时停止翻页。
|
|
46464
|
+
*/
|
|
46465
|
+
export type RegistryCursor = string;
|
|
46466
|
+
/**
|
|
46467
|
+
* 库的标识,来自 repositories.list 或 repositories.create 返回的 id;不要传库的 name 或显示名。
|
|
46468
|
+
*/
|
|
46469
|
+
export type RegistryRepositoryId = string;
|
|
46470
|
+
/**
|
|
46471
|
+
* 只看某一类包;省略时技能和插件都返回。
|
|
46472
|
+
*/
|
|
46473
|
+
export type RegistryKind = 'skill' | 'plugin';
|
|
46474
|
+
/**
|
|
46475
|
+
* 按子串搜索包,匹配 name、title 和 description;省略时不过滤。不区分大小写。
|
|
46476
|
+
*/
|
|
46477
|
+
export type RegistryQuery = string;
|
|
46478
|
+
/**
|
|
46479
|
+
* 结果排序方式;省略时按 updated。
|
|
46480
|
+
*/
|
|
46481
|
+
export type RegistrySort = 'updated' | 'downloads';
|
|
46482
|
+
/**
|
|
46483
|
+
* 包的标识,来自 repositories.packages.list 或 repositories.packages.create 返回的 id;不要传包名。
|
|
46484
|
+
*/
|
|
46485
|
+
export type RegistryPackageId = string;
|
|
46486
|
+
/**
|
|
46487
|
+
* 要读的版本号,来自 versions.list 或 versions.create 返回的 version;必须是完整 semver,形如 1.2.0,不接受 latest 或范围。
|
|
46488
|
+
*/
|
|
46489
|
+
export type RegistryVersion2 = string;
|
|
46490
|
+
/**
|
|
46491
|
+
* 版本内的相对文件路径,取自 contents 返回的 path,可以含斜杠(例如 plugin/skills/review.md);不要以 / 开头。
|
|
46492
|
+
*/
|
|
46493
|
+
export type RegistryFilePath = string;
|
|
46494
|
+
/**
|
|
46495
|
+
* 安装记录的标识,来自 packages.installations.list 或 packages.installations.create 返回的 id(ins_ 开头);不要传包或目标的 id。
|
|
46496
|
+
*/
|
|
46497
|
+
export type RegistryInstallationId = string;
|
|
45964
46498
|
/**
|
|
45965
46499
|
* Cursor to start the list from
|
|
45966
46500
|
*/
|
|
@@ -46379,7 +46913,7 @@ export type ListAgentEventsResponses = {
|
|
|
46379
46913
|
*/
|
|
46380
46914
|
behavior: 'allow';
|
|
46381
46915
|
/**
|
|
46382
|
-
* agent shares the grant across a general
|
|
46916
|
+
* agent shares the grant across a general agent's sessions; session keeps it in this session. Service agents reject agent with 400.
|
|
46383
46917
|
*/
|
|
46384
46918
|
destination: 'agent' | 'session';
|
|
46385
46919
|
/**
|
|
@@ -46517,7 +47051,7 @@ export type ListAgentEventsResponses = {
|
|
|
46517
47051
|
*/
|
|
46518
47052
|
behavior: 'allow';
|
|
46519
47053
|
/**
|
|
46520
|
-
* agent shares the grant across a general
|
|
47054
|
+
* agent shares the grant across a general agent's sessions; session keeps it in this session. Service agents reject agent with 400.
|
|
46521
47055
|
*/
|
|
46522
47056
|
destination: 'agent' | 'session';
|
|
46523
47057
|
/**
|
|
@@ -47552,7 +48086,7 @@ export type ApplyAgentVersionResponses = {
|
|
|
47552
48086
|
*/
|
|
47553
48087
|
note: string | null;
|
|
47554
48088
|
/**
|
|
47555
|
-
* 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
|
|
48089
|
+
* 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 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 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.
|
|
47556
48090
|
*/
|
|
47557
48091
|
bindings: Array<{
|
|
47558
48092
|
/**
|
|
@@ -47594,9 +48128,9 @@ export type ApplyAgentVersionResponses = {
|
|
|
47594
48128
|
enabled?: boolean;
|
|
47595
48129
|
}>;
|
|
47596
48130
|
/**
|
|
47597
|
-
* Immutable agent kind. general uses a durable computer and acts for its owner;
|
|
48131
|
+
* Immutable agent kind. general uses a durable computer and acts for its owner; service uses a clean environment per session. Historical agents infer kind from their computer binding and read as general. Assume agents use a durable computer driven over MCP without a conversation model; model, models, subagent_model, subagents and multiagent are forbidden and omitted.
|
|
47598
48132
|
*/
|
|
47599
|
-
kind: 'general' | '
|
|
48133
|
+
kind: 'general' | 'service' | 'assume';
|
|
47600
48134
|
/**
|
|
47601
48135
|
* 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.
|
|
47602
48136
|
*/
|
|
@@ -48765,7 +49299,7 @@ export type UnarchiveAgentResponses = {
|
|
|
48765
49299
|
*/
|
|
48766
49300
|
note: string | null;
|
|
48767
49301
|
/**
|
|
48768
|
-
* 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
|
|
49302
|
+
* 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 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 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.
|
|
48769
49303
|
*/
|
|
48770
49304
|
bindings: Array<{
|
|
48771
49305
|
/**
|
|
@@ -48807,9 +49341,9 @@ export type UnarchiveAgentResponses = {
|
|
|
48807
49341
|
enabled?: boolean;
|
|
48808
49342
|
}>;
|
|
48809
49343
|
/**
|
|
48810
|
-
* Immutable agent kind. general uses a durable computer and acts for its owner;
|
|
49344
|
+
* Immutable agent kind. general uses a durable computer and acts for its owner; service uses a clean environment per session. Historical agents infer kind from their computer binding and read as general. Assume agents use a durable computer driven over MCP without a conversation model; model, models, subagent_model, subagents and multiagent are forbidden and omitted.
|
|
48811
49345
|
*/
|
|
48812
|
-
kind: 'general' | '
|
|
49346
|
+
kind: 'general' | 'service' | 'assume';
|
|
48813
49347
|
/**
|
|
48814
49348
|
* 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.
|
|
48815
49349
|
*/
|
|
@@ -56066,6 +56600,10 @@ export type ListSessionArtifactsResponses = {
|
|
|
56066
56600
|
* The address in the reply that pointed at the object, verbatim; open the object with content_url, not with this address.
|
|
56067
56601
|
*/
|
|
56068
56602
|
href: string;
|
|
56603
|
+
/**
|
|
56604
|
+
* What the reply called the object: the text of the link that carried the address, for a card to show. null when the address stood alone in the reply.
|
|
56605
|
+
*/
|
|
56606
|
+
title: string | null;
|
|
56069
56607
|
}>;
|
|
56070
56608
|
/**
|
|
56071
56609
|
* Link addresses from the reply text that point at this artifact, verbatim; render a link whose address equals one of these as this artifact.
|
|
@@ -57502,214 +58040,54 @@ export type BrowserRunPageActionData = {
|
|
|
57502
58040
|
tab?: string;
|
|
57503
58041
|
} | {
|
|
57504
58042
|
/**
|
|
57505
|
-
*
|
|
57506
|
-
*/
|
|
57507
|
-
type: 'back' | 'forward' | 'reload';
|
|
57508
|
-
/**
|
|
57509
|
-
* 标签页 ID,来自 tabs.list 或上一个动作的结果;省略时作用于当前标签页。
|
|
57510
|
-
*/
|
|
57511
|
-
tab?: string;
|
|
57512
|
-
};
|
|
57513
|
-
path: {
|
|
57514
|
-
/**
|
|
57515
|
-
* 浏览器会话 ID;使用创建或列出会话返回的 id,以 bss_ 开头。
|
|
57516
|
-
*/
|
|
57517
|
-
sessionId: string;
|
|
57518
|
-
};
|
|
57519
|
-
query?: never;
|
|
57520
|
-
url: '/browser/v1/sessions/{sessionId}/actions';
|
|
57521
|
-
};
|
|
57522
|
-
export type BrowserRunPageActionErrors = {
|
|
57523
|
-
/**
|
|
57524
|
-
* INVALID_PARAMS / INVALID_FILTER / INVALID_PAGE_TOKEN
|
|
57525
|
-
*/
|
|
57526
|
-
400: BrowserError;
|
|
57527
|
-
/**
|
|
57528
|
-
* UNAUTHENTICATED / CONNECT_SIGNATURE_INVALID
|
|
57529
|
-
*/
|
|
57530
|
-
401: BrowserError;
|
|
57531
|
-
/**
|
|
57532
|
-
* INSUFFICIENT_BALANCE / QUOTA_EXHAUSTED
|
|
57533
|
-
*/
|
|
57534
|
-
402: BrowserError;
|
|
57535
|
-
/**
|
|
57536
|
-
* PERMISSION_DENIED / ACCOUNT_SUSPENDED
|
|
57537
|
-
*/
|
|
57538
|
-
403: BrowserError;
|
|
57539
|
-
/**
|
|
57540
|
-
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
57541
|
-
*/
|
|
57542
|
-
404: BrowserError;
|
|
57543
|
-
/**
|
|
57544
|
-
* SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
57545
|
-
*/
|
|
57546
|
-
409: BrowserError;
|
|
57547
|
-
/**
|
|
57548
|
-
* ACTION_RESULT_TOO_LARGE
|
|
57549
|
-
*/
|
|
57550
|
-
413: BrowserError;
|
|
57551
|
-
/**
|
|
57552
|
-
* CONCURRENCY_LIMIT / RATE_LIMITED / PROVIDER_CAPACITY
|
|
57553
|
-
*/
|
|
57554
|
-
429: BrowserError;
|
|
57555
|
-
/**
|
|
57556
|
-
* INTERNAL
|
|
57557
|
-
*/
|
|
57558
|
-
500: BrowserError;
|
|
57559
|
-
/**
|
|
57560
|
-
* NOT_IMPLEMENTED / PROVIDER_UNSUPPORTED
|
|
57561
|
-
*/
|
|
57562
|
-
501: BrowserError;
|
|
57563
|
-
/**
|
|
57564
|
-
* PROVIDER_FAILED
|
|
57565
|
-
*/
|
|
57566
|
-
502: BrowserError;
|
|
57567
|
-
/**
|
|
57568
|
-
* SERVICE_UNAVAILABLE
|
|
57569
|
-
*/
|
|
57570
|
-
503: BrowserError;
|
|
57571
|
-
/**
|
|
57572
|
-
* ACTION_TIMEOUT
|
|
57573
|
-
*/
|
|
57574
|
-
504: BrowserError;
|
|
57575
|
-
};
|
|
57576
|
-
export type BrowserRunPageActionError = BrowserRunPageActionErrors[keyof BrowserRunPageActionErrors];
|
|
57577
|
-
export type BrowserRunPageActionResponses = {
|
|
57578
|
-
/**
|
|
57579
|
-
* 请求成功。
|
|
57580
|
-
*/
|
|
57581
|
-
200: {
|
|
57582
|
-
/**
|
|
57583
|
-
* 这次执行的动作类型,与请求的 type 相同。
|
|
57584
|
-
*/
|
|
57585
|
-
type: 'open' | 'click' | 'fill' | 'press' | 'scroll' | 'back' | 'forward' | 'reload';
|
|
57586
|
-
/**
|
|
57587
|
-
* 动作作用的标签页 ID,可在后续动作的 tab 里使用。
|
|
57588
|
-
*/
|
|
57589
|
-
tab: string;
|
|
57590
|
-
/**
|
|
57591
|
-
* 动作完成后该标签页的地址。
|
|
57592
|
-
*/
|
|
57593
|
-
url: string;
|
|
57594
|
-
/**
|
|
57595
|
-
* 动作完成后该标签页的标题,页面没有标题时为空字符串。
|
|
57596
|
-
*/
|
|
57597
|
-
title: string;
|
|
57598
|
-
} | {
|
|
57599
|
-
/**
|
|
57600
|
-
* 动作类型,固定为 select。
|
|
57601
|
-
*/
|
|
57602
|
-
type: 'select';
|
|
57603
|
-
/**
|
|
57604
|
-
* 动作作用的标签页 ID,可在后续动作的 tab 里使用。
|
|
57605
|
-
*/
|
|
57606
|
-
tab: string;
|
|
57607
|
-
/**
|
|
57608
|
-
* 这次选中的 option 的 value,按它们在下拉框中出现的顺序;单选下拉框最多一项。
|
|
57609
|
-
*/
|
|
57610
|
-
values: Array<string>;
|
|
57611
|
-
} | {
|
|
57612
|
-
/**
|
|
57613
|
-
* 动作类型,固定为 tabs.list。
|
|
57614
|
-
*/
|
|
57615
|
-
type: 'tabs.list';
|
|
57616
|
-
/**
|
|
57617
|
-
* 会话里所有打开的标签页。
|
|
57618
|
-
*/
|
|
57619
|
-
tabs: Array<{
|
|
57620
|
-
/**
|
|
57621
|
-
* 标签页 ID,可在动作的 tab 里使用。
|
|
57622
|
-
*/
|
|
57623
|
-
id: string;
|
|
57624
|
-
/**
|
|
57625
|
-
* 标签页当前地址。
|
|
57626
|
-
*/
|
|
57627
|
-
url: string;
|
|
57628
|
-
/**
|
|
57629
|
-
* 标签页当前标题。
|
|
57630
|
-
*/
|
|
57631
|
-
title: string;
|
|
57632
|
-
/**
|
|
57633
|
-
* 是否为当前标签页,省略 tab 的动作作用于它。
|
|
57634
|
-
*/
|
|
57635
|
-
active: boolean;
|
|
57636
|
-
}>;
|
|
57637
|
-
} | {
|
|
57638
|
-
/**
|
|
57639
|
-
* 动作类型,固定为 snapshot。
|
|
58043
|
+
* 动作类型,固定为 set_cookie。
|
|
57640
58044
|
*/
|
|
57641
|
-
type: '
|
|
58045
|
+
type: 'set_cookie';
|
|
57642
58046
|
/**
|
|
57643
|
-
*
|
|
58047
|
+
* cookie 名称,最多 256 个字符。
|
|
57644
58048
|
*/
|
|
57645
|
-
|
|
58049
|
+
name: string;
|
|
57646
58050
|
/**
|
|
57647
|
-
*
|
|
58051
|
+
* cookie 值,最多 4096 个字符;它是凭据,不会出现在动作结果、事件或日志里。
|
|
57648
58052
|
*/
|
|
57649
|
-
|
|
58053
|
+
value: string;
|
|
57650
58054
|
/**
|
|
57651
|
-
*
|
|
58055
|
+
* cookie 的域,例如 .deepraxis.com。
|
|
57652
58056
|
*/
|
|
57653
|
-
|
|
58057
|
+
domain: string;
|
|
57654
58058
|
/**
|
|
57655
|
-
*
|
|
58059
|
+
* cookie 的路径,默认 /。
|
|
57656
58060
|
*/
|
|
57657
|
-
|
|
57658
|
-
/**
|
|
57659
|
-
* 这份快照里分配出去的 ref 个数。
|
|
57660
|
-
*/
|
|
57661
|
-
refs: number;
|
|
57662
|
-
/**
|
|
57663
|
-
* 快照超过 200000 个字符被截断时为 true。
|
|
57664
|
-
*/
|
|
57665
|
-
truncated: boolean;
|
|
57666
|
-
} | {
|
|
58061
|
+
path?: string;
|
|
57667
58062
|
/**
|
|
57668
|
-
*
|
|
58063
|
+
* 是否仅 HTTPS;以 __Secure- 开头的名称必须为 true。
|
|
57669
58064
|
*/
|
|
57670
|
-
|
|
58065
|
+
secure?: boolean;
|
|
57671
58066
|
/**
|
|
57672
|
-
*
|
|
58067
|
+
* 是否禁止页面脚本读取。
|
|
57673
58068
|
*/
|
|
57674
|
-
|
|
58069
|
+
httpOnly?: boolean;
|
|
57675
58070
|
/**
|
|
57676
|
-
*
|
|
58071
|
+
* SameSite 属性;None 要求 secure 为 true。
|
|
57677
58072
|
*/
|
|
57678
|
-
|
|
58073
|
+
sameSite?: 'Strict' | 'Lax' | 'None';
|
|
57679
58074
|
/**
|
|
57680
|
-
*
|
|
58075
|
+
* 过期时间,Unix 秒;省略为会话 cookie。
|
|
57681
58076
|
*/
|
|
57682
|
-
|
|
58077
|
+
expires?: number;
|
|
57683
58078
|
/**
|
|
57684
|
-
*
|
|
58079
|
+
* 标签页 ID,来自 tabs.list 或上一个动作的结果;省略时作用于当前标签页。
|
|
57685
58080
|
*/
|
|
57686
|
-
|
|
58081
|
+
tab?: string;
|
|
57687
58082
|
} | {
|
|
57688
58083
|
/**
|
|
57689
|
-
*
|
|
57690
|
-
*/
|
|
57691
|
-
type: 'evaluate';
|
|
57692
|
-
/**
|
|
57693
|
-
* 动作作用的标签页 ID,可在后续动作的 tab 里使用。
|
|
57694
|
-
*/
|
|
57695
|
-
tab: string;
|
|
57696
|
-
/**
|
|
57697
|
-
* 表达式的结果,按 JSON 返回;序列化后最多 64000 个字符。
|
|
57698
|
-
*/
|
|
57699
|
-
value: unknown;
|
|
57700
|
-
};
|
|
57701
|
-
};
|
|
57702
|
-
export type BrowserRunPageActionResponse = BrowserRunPageActionResponses[keyof BrowserRunPageActionResponses];
|
|
57703
|
-
export type BrowserRequestHandoffData = {
|
|
57704
|
-
body: {
|
|
57705
|
-
/**
|
|
57706
|
-
* 交给人工操作者的接管说明,可为空字符串。
|
|
58084
|
+
* 动作类型:后退、前进或刷新当前页。
|
|
57707
58085
|
*/
|
|
57708
|
-
|
|
58086
|
+
type: 'back' | 'forward' | 'reload';
|
|
57709
58087
|
/**
|
|
57710
|
-
*
|
|
58088
|
+
* 标签页 ID,来自 tabs.list 或上一个动作的结果;省略时作用于当前标签页。
|
|
57711
58089
|
*/
|
|
57712
|
-
|
|
58090
|
+
tab?: string;
|
|
57713
58091
|
};
|
|
57714
58092
|
path: {
|
|
57715
58093
|
/**
|
|
@@ -57718,9 +58096,227 @@ export type BrowserRequestHandoffData = {
|
|
|
57718
58096
|
sessionId: string;
|
|
57719
58097
|
};
|
|
57720
58098
|
query?: never;
|
|
57721
|
-
url: '/browser/v1/sessions/{sessionId}/
|
|
58099
|
+
url: '/browser/v1/sessions/{sessionId}/actions';
|
|
57722
58100
|
};
|
|
57723
|
-
export type
|
|
58101
|
+
export type BrowserRunPageActionErrors = {
|
|
58102
|
+
/**
|
|
58103
|
+
* INVALID_PARAMS / INVALID_FILTER / INVALID_PAGE_TOKEN
|
|
58104
|
+
*/
|
|
58105
|
+
400: BrowserError;
|
|
58106
|
+
/**
|
|
58107
|
+
* UNAUTHENTICATED / CONNECT_SIGNATURE_INVALID
|
|
58108
|
+
*/
|
|
58109
|
+
401: BrowserError;
|
|
58110
|
+
/**
|
|
58111
|
+
* INSUFFICIENT_BALANCE / QUOTA_EXHAUSTED
|
|
58112
|
+
*/
|
|
58113
|
+
402: BrowserError;
|
|
58114
|
+
/**
|
|
58115
|
+
* PERMISSION_DENIED / ACCOUNT_SUSPENDED
|
|
58116
|
+
*/
|
|
58117
|
+
403: BrowserError;
|
|
58118
|
+
/**
|
|
58119
|
+
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
58120
|
+
*/
|
|
58121
|
+
404: BrowserError;
|
|
58122
|
+
/**
|
|
58123
|
+
* SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
58124
|
+
*/
|
|
58125
|
+
409: BrowserError;
|
|
58126
|
+
/**
|
|
58127
|
+
* ACTION_RESULT_TOO_LARGE
|
|
58128
|
+
*/
|
|
58129
|
+
413: BrowserError;
|
|
58130
|
+
/**
|
|
58131
|
+
* CONCURRENCY_LIMIT / RATE_LIMITED / PROVIDER_CAPACITY
|
|
58132
|
+
*/
|
|
58133
|
+
429: BrowserError;
|
|
58134
|
+
/**
|
|
58135
|
+
* INTERNAL
|
|
58136
|
+
*/
|
|
58137
|
+
500: BrowserError;
|
|
58138
|
+
/**
|
|
58139
|
+
* NOT_IMPLEMENTED / PROVIDER_UNSUPPORTED
|
|
58140
|
+
*/
|
|
58141
|
+
501: BrowserError;
|
|
58142
|
+
/**
|
|
58143
|
+
* PROVIDER_FAILED
|
|
58144
|
+
*/
|
|
58145
|
+
502: BrowserError;
|
|
58146
|
+
/**
|
|
58147
|
+
* SERVICE_UNAVAILABLE
|
|
58148
|
+
*/
|
|
58149
|
+
503: BrowserError;
|
|
58150
|
+
/**
|
|
58151
|
+
* ACTION_TIMEOUT
|
|
58152
|
+
*/
|
|
58153
|
+
504: BrowserError;
|
|
58154
|
+
};
|
|
58155
|
+
export type BrowserRunPageActionError = BrowserRunPageActionErrors[keyof BrowserRunPageActionErrors];
|
|
58156
|
+
export type BrowserRunPageActionResponses = {
|
|
58157
|
+
/**
|
|
58158
|
+
* 请求成功。
|
|
58159
|
+
*/
|
|
58160
|
+
200: {
|
|
58161
|
+
/**
|
|
58162
|
+
* 这次执行的动作类型,与请求的 type 相同。
|
|
58163
|
+
*/
|
|
58164
|
+
type: 'open' | 'click' | 'fill' | 'press' | 'scroll' | 'back' | 'forward' | 'reload';
|
|
58165
|
+
/**
|
|
58166
|
+
* 动作作用的标签页 ID,可在后续动作的 tab 里使用。
|
|
58167
|
+
*/
|
|
58168
|
+
tab: string;
|
|
58169
|
+
/**
|
|
58170
|
+
* 动作完成后该标签页的地址。
|
|
58171
|
+
*/
|
|
58172
|
+
url: string;
|
|
58173
|
+
/**
|
|
58174
|
+
* 动作完成后该标签页的标题,页面没有标题时为空字符串。
|
|
58175
|
+
*/
|
|
58176
|
+
title: string;
|
|
58177
|
+
} | {
|
|
58178
|
+
/**
|
|
58179
|
+
* 动作类型,固定为 select。
|
|
58180
|
+
*/
|
|
58181
|
+
type: 'select';
|
|
58182
|
+
/**
|
|
58183
|
+
* 动作作用的标签页 ID,可在后续动作的 tab 里使用。
|
|
58184
|
+
*/
|
|
58185
|
+
tab: string;
|
|
58186
|
+
/**
|
|
58187
|
+
* 这次选中的 option 的 value,按它们在下拉框中出现的顺序;单选下拉框最多一项。
|
|
58188
|
+
*/
|
|
58189
|
+
values: Array<string>;
|
|
58190
|
+
} | {
|
|
58191
|
+
/**
|
|
58192
|
+
* 动作类型,固定为 tabs.list。
|
|
58193
|
+
*/
|
|
58194
|
+
type: 'tabs.list';
|
|
58195
|
+
/**
|
|
58196
|
+
* 会话里所有打开的标签页。
|
|
58197
|
+
*/
|
|
58198
|
+
tabs: Array<{
|
|
58199
|
+
/**
|
|
58200
|
+
* 标签页 ID,可在动作的 tab 里使用。
|
|
58201
|
+
*/
|
|
58202
|
+
id: string;
|
|
58203
|
+
/**
|
|
58204
|
+
* 标签页当前地址。
|
|
58205
|
+
*/
|
|
58206
|
+
url: string;
|
|
58207
|
+
/**
|
|
58208
|
+
* 标签页当前标题。
|
|
58209
|
+
*/
|
|
58210
|
+
title: string;
|
|
58211
|
+
/**
|
|
58212
|
+
* 是否为当前标签页,省略 tab 的动作作用于它。
|
|
58213
|
+
*/
|
|
58214
|
+
active: boolean;
|
|
58215
|
+
}>;
|
|
58216
|
+
} | {
|
|
58217
|
+
/**
|
|
58218
|
+
* 动作类型,固定为 snapshot。
|
|
58219
|
+
*/
|
|
58220
|
+
type: 'snapshot';
|
|
58221
|
+
/**
|
|
58222
|
+
* 动作作用的标签页 ID,可在后续动作的 tab 里使用。
|
|
58223
|
+
*/
|
|
58224
|
+
tab: string;
|
|
58225
|
+
/**
|
|
58226
|
+
* 动作完成后该标签页的地址。
|
|
58227
|
+
*/
|
|
58228
|
+
url: string;
|
|
58229
|
+
/**
|
|
58230
|
+
* 动作完成后该标签页的标题,页面没有标题时为空字符串。
|
|
58231
|
+
*/
|
|
58232
|
+
title: string;
|
|
58233
|
+
/**
|
|
58234
|
+
* 页面的 ARIA 快照文本,每行一个元素,可操作的元素带 [ref=eN]。
|
|
58235
|
+
*/
|
|
58236
|
+
snapshot: string;
|
|
58237
|
+
/**
|
|
58238
|
+
* 这份快照里分配出去的 ref 个数。
|
|
58239
|
+
*/
|
|
58240
|
+
refs: number;
|
|
58241
|
+
/**
|
|
58242
|
+
* 快照超过 200000 个字符被截断时为 true。
|
|
58243
|
+
*/
|
|
58244
|
+
truncated: boolean;
|
|
58245
|
+
} | {
|
|
58246
|
+
/**
|
|
58247
|
+
* 动作类型,固定为 screenshot。
|
|
58248
|
+
*/
|
|
58249
|
+
type: 'screenshot';
|
|
58250
|
+
/**
|
|
58251
|
+
* 动作作用的标签页 ID,可在后续动作的 tab 里使用。
|
|
58252
|
+
*/
|
|
58253
|
+
tab: string;
|
|
58254
|
+
/**
|
|
58255
|
+
* 图片格式,固定为 image/png。
|
|
58256
|
+
*/
|
|
58257
|
+
mediaType: 'image/png';
|
|
58258
|
+
/**
|
|
58259
|
+
* PNG 图片的 base64 编码;解码后最多 5 MiB。
|
|
58260
|
+
*/
|
|
58261
|
+
data: string;
|
|
58262
|
+
/**
|
|
58263
|
+
* 图片 base64 解码后的字节数。
|
|
58264
|
+
*/
|
|
58265
|
+
bytes: number;
|
|
58266
|
+
} | {
|
|
58267
|
+
/**
|
|
58268
|
+
* 动作类型,固定为 evaluate。
|
|
58269
|
+
*/
|
|
58270
|
+
type: 'evaluate';
|
|
58271
|
+
/**
|
|
58272
|
+
* 动作作用的标签页 ID,可在后续动作的 tab 里使用。
|
|
58273
|
+
*/
|
|
58274
|
+
tab: string;
|
|
58275
|
+
/**
|
|
58276
|
+
* 表达式的结果,按 JSON 返回;序列化后最多 64000 个字符。
|
|
58277
|
+
*/
|
|
58278
|
+
value: unknown;
|
|
58279
|
+
} | {
|
|
58280
|
+
/**
|
|
58281
|
+
* 动作类型,固定为 set_cookie。
|
|
58282
|
+
*/
|
|
58283
|
+
type: 'set_cookie';
|
|
58284
|
+
/**
|
|
58285
|
+
* 动作作用的标签页 ID,可在后续动作的 tab 里使用。
|
|
58286
|
+
*/
|
|
58287
|
+
tab: string;
|
|
58288
|
+
/**
|
|
58289
|
+
* 已设置的 cookie 名称。
|
|
58290
|
+
*/
|
|
58291
|
+
name: string;
|
|
58292
|
+
/**
|
|
58293
|
+
* 已设置的 cookie 的域。
|
|
58294
|
+
*/
|
|
58295
|
+
domain: string;
|
|
58296
|
+
};
|
|
58297
|
+
};
|
|
58298
|
+
export type BrowserRunPageActionResponse = BrowserRunPageActionResponses[keyof BrowserRunPageActionResponses];
|
|
58299
|
+
export type BrowserRequestHandoffData = {
|
|
58300
|
+
body: {
|
|
58301
|
+
/**
|
|
58302
|
+
* 交给人工操作者的接管说明,可为空字符串。
|
|
58303
|
+
*/
|
|
58304
|
+
message: string;
|
|
58305
|
+
/**
|
|
58306
|
+
* 接管请求有效时长,单位为毫秒;必须大于 0,可含小数。
|
|
58307
|
+
*/
|
|
58308
|
+
timeoutMs?: number;
|
|
58309
|
+
};
|
|
58310
|
+
path: {
|
|
58311
|
+
/**
|
|
58312
|
+
* 浏览器会话 ID;使用创建或列出会话返回的 id,以 bss_ 开头。
|
|
58313
|
+
*/
|
|
58314
|
+
sessionId: string;
|
|
58315
|
+
};
|
|
58316
|
+
query?: never;
|
|
58317
|
+
url: '/browser/v1/sessions/{sessionId}/handoff';
|
|
58318
|
+
};
|
|
58319
|
+
export type BrowserRequestHandoffErrors = {
|
|
57724
58320
|
/**
|
|
57725
58321
|
* INVALID_PARAMS / INVALID_FILTER / INVALID_PAGE_TOKEN
|
|
57726
58322
|
*/
|
|
@@ -68606,15 +69202,15 @@ export type AgentsListData = {
|
|
|
68606
69202
|
limit?: number;
|
|
68607
69203
|
page?: null | string;
|
|
68608
69204
|
/**
|
|
68609
|
-
* General agents use a durable computer and act for their owner;
|
|
69205
|
+
* General agents use a durable computer and act for their owner; service agents use a clean environment per session. Assume agents use a durable computer driven over MCP without a conversation model; model, models, subagent_model, subagents and multiagent are forbidden and omitted.
|
|
68610
69206
|
*/
|
|
68611
|
-
kind?: 'general' | '
|
|
69207
|
+
kind?: 'general' | 'service' | 'assume';
|
|
68612
69208
|
};
|
|
68613
69209
|
url: '/agent/v1/agents';
|
|
68614
69210
|
};
|
|
68615
69211
|
export type AgentsListErrors = {
|
|
68616
69212
|
/**
|
|
68617
|
-
* include_archived is not true or false, kind is not general,
|
|
69213
|
+
* include_archived is not true or false, kind is not general, service or assume, a created_at bound is not an RFC 3339 timestamp, or INVALID_PARAMS when limit is not an integer from 1 to 100 (limit must be an integer between 1 and 100), or INVALID_PAGE_TOKEN when page is not a cursor from this same query (restart from the first page). Pass next_page unchanged, with the same filters, to continue.
|
|
68618
69214
|
*/
|
|
68619
69215
|
400: AgentError;
|
|
68620
69216
|
/**
|
|
@@ -68758,7 +69354,7 @@ export type AgentsListResponses = {
|
|
|
68758
69354
|
*/
|
|
68759
69355
|
note: string | null;
|
|
68760
69356
|
/**
|
|
68761
|
-
* 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
|
|
69357
|
+
* 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 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 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.
|
|
68762
69358
|
*/
|
|
68763
69359
|
bindings: Array<{
|
|
68764
69360
|
/**
|
|
@@ -68800,9 +69396,9 @@ export type AgentsListResponses = {
|
|
|
68800
69396
|
enabled?: boolean;
|
|
68801
69397
|
}>;
|
|
68802
69398
|
/**
|
|
68803
|
-
* Immutable agent kind. general uses a durable computer and acts for its owner;
|
|
69399
|
+
* Immutable agent kind. general uses a durable computer and acts for its owner; service uses a clean environment per session. Historical agents infer kind from their computer binding and read as general. Assume agents use a durable computer driven over MCP without a conversation model; model, models, subagent_model, subagents and multiagent are forbidden and omitted.
|
|
68804
69400
|
*/
|
|
68805
|
-
kind: 'general' | '
|
|
69401
|
+
kind: 'general' | 'service' | 'assume';
|
|
68806
69402
|
/**
|
|
68807
69403
|
* 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.
|
|
68808
69404
|
*/
|
|
@@ -69293,7 +69889,7 @@ export type AgentsCreateData = {
|
|
|
69293
69889
|
*/
|
|
69294
69890
|
tools?: Array<AgentManaged15 | AgentManaged29 | AgentManaged32>;
|
|
69295
69891
|
/**
|
|
69296
|
-
* 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
|
|
69892
|
+
* 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 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 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.
|
|
69297
69893
|
*/
|
|
69298
69894
|
bindings?: Array<{
|
|
69299
69895
|
/**
|
|
@@ -69335,9 +69931,9 @@ export type AgentsCreateData = {
|
|
|
69335
69931
|
enabled?: boolean;
|
|
69336
69932
|
}>;
|
|
69337
69933
|
/**
|
|
69338
|
-
* Immutable agent kind. general
|
|
69934
|
+
* Immutable agent kind. general requires computer_id; service cannot bind a computer. Omit on create to infer from computer_id (general with a computer, service without). On update, the same kind is ignored; changing kind or crossing its computer binding returns 400 invalid_request_error. Assume agents use a durable computer driven over MCP without a conversation model; model, models, subagent_model, subagents and multiagent are forbidden and omitted.
|
|
69339
69935
|
*/
|
|
69340
|
-
kind?: 'general' | '
|
|
69936
|
+
kind?: 'general' | 'service' | 'assume';
|
|
69341
69937
|
/**
|
|
69342
69938
|
* 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.
|
|
69343
69939
|
*/
|
|
@@ -69707,7 +70303,7 @@ export type AgentsCreateData = {
|
|
|
69707
70303
|
allowed: Array<string>;
|
|
69708
70304
|
};
|
|
69709
70305
|
/**
|
|
69710
|
-
* Avatar image of the agent: an absolute https URL of at most 2048 characters, without credentials; any other value returns 400 avatar must be an https URL. It is the default picture in agent lists, the agent detail, the chat header and embedded chat when the embed appearance sets none. Saved with the agent version like other configuration, so apply=false keeps the previous avatar in effect until that version is applied. Omit on create for no avatar; on update, omit to keep it and send null to clear it. General
|
|
70306
|
+
* Avatar image of the agent: an absolute https URL of at most 2048 characters, without credentials; any other value returns 400 avatar must be an https URL. It is the default picture in agent lists, the agent detail, the chat header and embedded chat when the embed appearance sets none. Saved with the agent version like other configuration, so apply=false keeps the previous avatar in effect until that version is applied. Omit on create for no avatar; on update, omit to keep it and send null to clear it. General and service agents accept it. /agent/v1 only; /anthropic neither accepts nor returns it.
|
|
69711
70307
|
*/
|
|
69712
70308
|
avatar?: string | null;
|
|
69713
70309
|
/**
|
|
@@ -69894,7 +70490,7 @@ export type AgentsCreateResponses = {
|
|
|
69894
70490
|
*/
|
|
69895
70491
|
note: string | null;
|
|
69896
70492
|
/**
|
|
69897
|
-
* 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
|
|
70493
|
+
* 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 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 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.
|
|
69898
70494
|
*/
|
|
69899
70495
|
bindings: Array<{
|
|
69900
70496
|
/**
|
|
@@ -69936,9 +70532,9 @@ export type AgentsCreateResponses = {
|
|
|
69936
70532
|
enabled?: boolean;
|
|
69937
70533
|
}>;
|
|
69938
70534
|
/**
|
|
69939
|
-
* Immutable agent kind. general uses a durable computer and acts for its owner;
|
|
70535
|
+
* Immutable agent kind. general uses a durable computer and acts for its owner; service uses a clean environment per session. Historical agents infer kind from their computer binding and read as general. Assume agents use a durable computer driven over MCP without a conversation model; model, models, subagent_model, subagents and multiagent are forbidden and omitted.
|
|
69940
70536
|
*/
|
|
69941
|
-
kind: 'general' | '
|
|
70537
|
+
kind: 'general' | 'service' | 'assume';
|
|
69942
70538
|
/**
|
|
69943
70539
|
* 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.
|
|
69944
70540
|
*/
|
|
@@ -70518,7 +71114,7 @@ export type AgentsRetrieveResponses = {
|
|
|
70518
71114
|
*/
|
|
70519
71115
|
note: string | null;
|
|
70520
71116
|
/**
|
|
70521
|
-
* 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
|
|
71117
|
+
* 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 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 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.
|
|
70522
71118
|
*/
|
|
70523
71119
|
bindings: Array<{
|
|
70524
71120
|
/**
|
|
@@ -70560,9 +71156,9 @@ export type AgentsRetrieveResponses = {
|
|
|
70560
71156
|
enabled?: boolean;
|
|
70561
71157
|
}>;
|
|
70562
71158
|
/**
|
|
70563
|
-
* Immutable agent kind. general uses a durable computer and acts for its owner;
|
|
71159
|
+
* Immutable agent kind. general uses a durable computer and acts for its owner; service uses a clean environment per session. Historical agents infer kind from their computer binding and read as general. Assume agents use a durable computer driven over MCP without a conversation model; model, models, subagent_model, subagents and multiagent are forbidden and omitted.
|
|
70564
71160
|
*/
|
|
70565
|
-
kind: 'general' | '
|
|
71161
|
+
kind: 'general' | 'service' | 'assume';
|
|
70566
71162
|
/**
|
|
70567
71163
|
* 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.
|
|
70568
71164
|
*/
|
|
@@ -71104,9 +71700,9 @@ export type AgentsUpdateData = {
|
|
|
71104
71700
|
enabled?: boolean;
|
|
71105
71701
|
}> | null;
|
|
71106
71702
|
/**
|
|
71107
|
-
* Immutable agent kind. general
|
|
71703
|
+
* Immutable agent kind. general requires computer_id; service cannot bind a computer. Omit on create to infer from computer_id (general with a computer, service without). On update, the same kind is ignored; changing kind or crossing its computer binding returns 400 invalid_request_error. Assume agents use a durable computer driven over MCP without a conversation model; model, models, subagent_model, subagents and multiagent are forbidden and omitted.
|
|
71108
71704
|
*/
|
|
71109
|
-
kind?: 'general' | '
|
|
71705
|
+
kind?: 'general' | 'service' | 'assume';
|
|
71110
71706
|
/**
|
|
71111
71707
|
* 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.
|
|
71112
71708
|
*/
|
|
@@ -71476,7 +72072,7 @@ export type AgentsUpdateData = {
|
|
|
71476
72072
|
allowed: Array<string>;
|
|
71477
72073
|
};
|
|
71478
72074
|
/**
|
|
71479
|
-
* Avatar image of the agent: an absolute https URL of at most 2048 characters, without credentials; any other value returns 400 avatar must be an https URL. It is the default picture in agent lists, the agent detail, the chat header and embedded chat when the embed appearance sets none. Saved with the agent version like other configuration, so apply=false keeps the previous avatar in effect until that version is applied. Omit on create for no avatar; on update, omit to keep it and send null to clear it. General
|
|
72075
|
+
* Avatar image of the agent: an absolute https URL of at most 2048 characters, without credentials; any other value returns 400 avatar must be an https URL. It is the default picture in agent lists, the agent detail, the chat header and embedded chat when the embed appearance sets none. Saved with the agent version like other configuration, so apply=false keeps the previous avatar in effect until that version is applied. Omit on create for no avatar; on update, omit to keep it and send null to clear it. General and service agents accept it. /agent/v1 only; /anthropic neither accepts nor returns it.
|
|
71480
72076
|
*/
|
|
71481
72077
|
avatar?: string | null;
|
|
71482
72078
|
/**
|
|
@@ -71676,7 +72272,7 @@ export type AgentsUpdateResponses = {
|
|
|
71676
72272
|
*/
|
|
71677
72273
|
note: string | null;
|
|
71678
72274
|
/**
|
|
71679
|
-
* 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
|
|
72275
|
+
* 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 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 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.
|
|
71680
72276
|
*/
|
|
71681
72277
|
bindings: Array<{
|
|
71682
72278
|
/**
|
|
@@ -71718,9 +72314,9 @@ export type AgentsUpdateResponses = {
|
|
|
71718
72314
|
enabled?: boolean;
|
|
71719
72315
|
}>;
|
|
71720
72316
|
/**
|
|
71721
|
-
* Immutable agent kind. general uses a durable computer and acts for its owner;
|
|
72317
|
+
* Immutable agent kind. general uses a durable computer and acts for its owner; service uses a clean environment per session. Historical agents infer kind from their computer binding and read as general. Assume agents use a durable computer driven over MCP without a conversation model; model, models, subagent_model, subagents and multiagent are forbidden and omitted.
|
|
71722
72318
|
*/
|
|
71723
|
-
kind: 'general' | '
|
|
72319
|
+
kind: 'general' | 'service' | 'assume';
|
|
71724
72320
|
/**
|
|
71725
72321
|
* 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.
|
|
71726
72322
|
*/
|
|
@@ -72286,7 +72882,7 @@ export type AgentsArchiveResponses = {
|
|
|
72286
72882
|
*/
|
|
72287
72883
|
note: string | null;
|
|
72288
72884
|
/**
|
|
72289
|
-
* 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
|
|
72885
|
+
* 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 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 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.
|
|
72290
72886
|
*/
|
|
72291
72887
|
bindings: Array<{
|
|
72292
72888
|
/**
|
|
@@ -72328,9 +72924,9 @@ export type AgentsArchiveResponses = {
|
|
|
72328
72924
|
enabled?: boolean;
|
|
72329
72925
|
}>;
|
|
72330
72926
|
/**
|
|
72331
|
-
* Immutable agent kind. general uses a durable computer and acts for its owner;
|
|
72927
|
+
* Immutable agent kind. general uses a durable computer and acts for its owner; service uses a clean environment per session. Historical agents infer kind from their computer binding and read as general. Assume agents use a durable computer driven over MCP without a conversation model; model, models, subagent_model, subagents and multiagent are forbidden and omitted.
|
|
72332
72928
|
*/
|
|
72333
|
-
kind: 'general' | '
|
|
72929
|
+
kind: 'general' | 'service' | 'assume';
|
|
72334
72930
|
/**
|
|
72335
72931
|
* 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.
|
|
72336
72932
|
*/
|
|
@@ -72914,7 +73510,7 @@ export type AgentsVersionsListResponses = {
|
|
|
72914
73510
|
*/
|
|
72915
73511
|
note: string | null;
|
|
72916
73512
|
/**
|
|
72917
|
-
* 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
|
|
73513
|
+
* 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 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 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.
|
|
72918
73514
|
*/
|
|
72919
73515
|
bindings: Array<{
|
|
72920
73516
|
/**
|
|
@@ -72956,9 +73552,9 @@ export type AgentsVersionsListResponses = {
|
|
|
72956
73552
|
enabled?: boolean;
|
|
72957
73553
|
}>;
|
|
72958
73554
|
/**
|
|
72959
|
-
* Immutable agent kind. general uses a durable computer and acts for its owner;
|
|
73555
|
+
* Immutable agent kind. general uses a durable computer and acts for its owner; service uses a clean environment per session. Historical agents infer kind from their computer binding and read as general. Assume agents use a durable computer driven over MCP without a conversation model; model, models, subagent_model, subagents and multiagent are forbidden and omitted.
|
|
72960
73556
|
*/
|
|
72961
|
-
kind: 'general' | '
|
|
73557
|
+
kind: 'general' | 'service' | 'assume';
|
|
72962
73558
|
/**
|
|
72963
73559
|
* 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.
|
|
72964
73560
|
*/
|
|
@@ -74577,7 +75173,7 @@ export type SessionsEventsListResponses = {
|
|
|
74577
75173
|
*/
|
|
74578
75174
|
behavior: 'allow';
|
|
74579
75175
|
/**
|
|
74580
|
-
* agent shares the grant across a general
|
|
75176
|
+
* agent shares the grant across a general agent's sessions; session keeps it in this session. Service agents reject agent with 400.
|
|
74581
75177
|
*/
|
|
74582
75178
|
destination: 'agent' | 'session';
|
|
74583
75179
|
/**
|
|
@@ -74715,7 +75311,7 @@ export type SessionsEventsListResponses = {
|
|
|
74715
75311
|
*/
|
|
74716
75312
|
behavior: 'allow';
|
|
74717
75313
|
/**
|
|
74718
|
-
* agent shares the grant across a general
|
|
75314
|
+
* agent shares the grant across a general agent's sessions; session keeps it in this session. Service agents reject agent with 400.
|
|
74719
75315
|
*/
|
|
74720
75316
|
destination: 'agent' | 'session';
|
|
74721
75317
|
/**
|
|
@@ -75790,7 +76386,7 @@ export type SessionsThreadsEventsListResponses = {
|
|
|
75790
76386
|
*/
|
|
75791
76387
|
behavior: 'allow';
|
|
75792
76388
|
/**
|
|
75793
|
-
* agent shares the grant across a general
|
|
76389
|
+
* agent shares the grant across a general agent's sessions; session keeps it in this session. Service agents reject agent with 400.
|
|
75794
76390
|
*/
|
|
75795
76391
|
destination: 'agent' | 'session';
|
|
75796
76392
|
/**
|
|
@@ -75928,7 +76524,7 @@ export type SessionsThreadsEventsListResponses = {
|
|
|
75928
76524
|
*/
|
|
75929
76525
|
behavior: 'allow';
|
|
75930
76526
|
/**
|
|
75931
|
-
* agent shares the grant across a general
|
|
76527
|
+
* agent shares the grant across a general agent's sessions; session keeps it in this session. Service agents reject agent with 400.
|
|
75932
76528
|
*/
|
|
75933
76529
|
destination: 'agent' | 'session';
|
|
75934
76530
|
/**
|
|
@@ -76935,7 +77531,7 @@ export type DeploymentsListResponses = {
|
|
|
76935
77531
|
*/
|
|
76936
77532
|
budget?: null | AgentManaged76;
|
|
76937
77533
|
/**
|
|
76938
|
-
* Execution target. environment (default) requires an existing, unarchived environment_id. computer is available only for general
|
|
77534
|
+
* Execution target. environment (default) requires an existing, unarchived environment_id. computer is available only for general agents and permits environment_id to be omitted.
|
|
76939
77535
|
*/
|
|
76940
77536
|
target: {
|
|
76941
77537
|
/**
|
|
@@ -77045,7 +77641,7 @@ export type DeploymentsCreateData = {
|
|
|
77045
77641
|
*/
|
|
77046
77642
|
vault_ids?: Array<string>;
|
|
77047
77643
|
/**
|
|
77048
|
-
* Execution target. environment (default) requires an existing, unarchived environment_id. computer is available only for general
|
|
77644
|
+
* Execution target. environment (default) requires an existing, unarchived environment_id. computer is available only for general agents and permits environment_id to be omitted.
|
|
77049
77645
|
*/
|
|
77050
77646
|
target?: {
|
|
77051
77647
|
/**
|
|
@@ -77205,7 +77801,7 @@ export type DeploymentsCreateResponses = {
|
|
|
77205
77801
|
*/
|
|
77206
77802
|
budget?: null | AgentManaged76;
|
|
77207
77803
|
/**
|
|
77208
|
-
* Execution target. environment (default) requires an existing, unarchived environment_id. computer is available only for general
|
|
77804
|
+
* Execution target. environment (default) requires an existing, unarchived environment_id. computer is available only for general agents and permits environment_id to be omitted.
|
|
77209
77805
|
*/
|
|
77210
77806
|
target: {
|
|
77211
77807
|
/**
|
|
@@ -77374,7 +77970,7 @@ export type DeploymentsRetrieveResponses = {
|
|
|
77374
77970
|
*/
|
|
77375
77971
|
budget?: null | AgentManaged76;
|
|
77376
77972
|
/**
|
|
77377
|
-
* Execution target. environment (default) requires an existing, unarchived environment_id. computer is available only for general
|
|
77973
|
+
* Execution target. environment (default) requires an existing, unarchived environment_id. computer is available only for general agents and permits environment_id to be omitted.
|
|
77378
77974
|
*/
|
|
77379
77975
|
target: {
|
|
77380
77976
|
/**
|
|
@@ -77481,7 +78077,7 @@ export type DeploymentsUpdateData = {
|
|
|
77481
78077
|
*/
|
|
77482
78078
|
vault_ids?: null | Array<string>;
|
|
77483
78079
|
/**
|
|
77484
|
-
* Execution target. environment (default) requires an existing, unarchived environment_id. computer is available only for general
|
|
78080
|
+
* Execution target. environment (default) requires an existing, unarchived environment_id. computer is available only for general agents and permits environment_id to be omitted.
|
|
77485
78081
|
*/
|
|
77486
78082
|
target?: {
|
|
77487
78083
|
/**
|
|
@@ -77654,7 +78250,7 @@ export type DeploymentsUpdateResponses = {
|
|
|
77654
78250
|
*/
|
|
77655
78251
|
budget?: null | AgentManaged76;
|
|
77656
78252
|
/**
|
|
77657
|
-
* Execution target. environment (default) requires an existing, unarchived environment_id. computer is available only for general
|
|
78253
|
+
* Execution target. environment (default) requires an existing, unarchived environment_id. computer is available only for general agents and permits environment_id to be omitted.
|
|
77658
78254
|
*/
|
|
77659
78255
|
target: {
|
|
77660
78256
|
/**
|
|
@@ -77823,7 +78419,7 @@ export type DeploymentsArchiveResponses = {
|
|
|
77823
78419
|
*/
|
|
77824
78420
|
budget?: null | AgentManaged76;
|
|
77825
78421
|
/**
|
|
77826
|
-
* Execution target. environment (default) requires an existing, unarchived environment_id. computer is available only for general
|
|
78422
|
+
* Execution target. environment (default) requires an existing, unarchived environment_id. computer is available only for general agents and permits environment_id to be omitted.
|
|
77827
78423
|
*/
|
|
77828
78424
|
target: {
|
|
77829
78425
|
/**
|
|
@@ -77996,7 +78592,7 @@ export type DeploymentsPauseResponses = {
|
|
|
77996
78592
|
*/
|
|
77997
78593
|
budget?: null | AgentManaged76;
|
|
77998
78594
|
/**
|
|
77999
|
-
* Execution target. environment (default) requires an existing, unarchived environment_id. computer is available only for general
|
|
78595
|
+
* Execution target. environment (default) requires an existing, unarchived environment_id. computer is available only for general agents and permits environment_id to be omitted.
|
|
78000
78596
|
*/
|
|
78001
78597
|
target: {
|
|
78002
78598
|
/**
|
|
@@ -78169,7 +78765,7 @@ export type DeploymentsUnpauseResponses = {
|
|
|
78169
78765
|
*/
|
|
78170
78766
|
budget?: null | AgentManaged76;
|
|
78171
78767
|
/**
|
|
78172
|
-
* Execution target. environment (default) requires an existing, unarchived environment_id. computer is available only for general
|
|
78768
|
+
* Execution target. environment (default) requires an existing, unarchived environment_id. computer is available only for general agents and permits environment_id to be omitted.
|
|
78173
78769
|
*/
|
|
78174
78770
|
target: {
|
|
78175
78771
|
/**
|
|
@@ -98062,6 +98658,160 @@ export type MediaAlignAssetResponses = {
|
|
|
98062
98658
|
202: MediaJob;
|
|
98063
98659
|
};
|
|
98064
98660
|
export type MediaAlignAssetResponse = MediaAlignAssetResponses[keyof MediaAlignAssetResponses];
|
|
98661
|
+
export type MediaGetHlsRenditionsData = {
|
|
98662
|
+
body?: never;
|
|
98663
|
+
path: {
|
|
98664
|
+
/**
|
|
98665
|
+
* Library ID returned by creation.
|
|
98666
|
+
*/
|
|
98667
|
+
library_id: string;
|
|
98668
|
+
/**
|
|
98669
|
+
* 32-character asset ID.
|
|
98670
|
+
*/
|
|
98671
|
+
asset_id: string;
|
|
98672
|
+
};
|
|
98673
|
+
query?: never;
|
|
98674
|
+
url: '/media/v1/libraries/{library_id}/assets/{asset_id}/hls';
|
|
98675
|
+
};
|
|
98676
|
+
export type MediaGetHlsRenditionsErrors = {
|
|
98677
|
+
/**
|
|
98678
|
+
* A selector, cursor, limit or other parameter is invalid; correct the reported field before retrying.
|
|
98679
|
+
*/
|
|
98680
|
+
400: MediaMediaError;
|
|
98681
|
+
/**
|
|
98682
|
+
* Request failed; see the error code reference.
|
|
98683
|
+
*/
|
|
98684
|
+
402: MediaMediaError;
|
|
98685
|
+
/**
|
|
98686
|
+
* This credential has read-only access to the library; use a write-capable binding for mutations.
|
|
98687
|
+
*/
|
|
98688
|
+
403: MediaMediaError;
|
|
98689
|
+
/**
|
|
98690
|
+
* The library or asset is missing, deleted or belongs to another tenant; verify its identifier and owner.
|
|
98691
|
+
*/
|
|
98692
|
+
404: MediaMediaError;
|
|
98693
|
+
/**
|
|
98694
|
+
* Request failed; see the error code reference.
|
|
98695
|
+
*/
|
|
98696
|
+
409: MediaMediaError;
|
|
98697
|
+
/**
|
|
98698
|
+
* The file exceeds an input limit; provide a smaller source file.
|
|
98699
|
+
*/
|
|
98700
|
+
413: MediaMediaError;
|
|
98701
|
+
/**
|
|
98702
|
+
* This media format is unsupported; provide a supported format.
|
|
98703
|
+
*/
|
|
98704
|
+
415: MediaMediaError;
|
|
98705
|
+
/**
|
|
98706
|
+
* Request failed; see the error code reference.
|
|
98707
|
+
*/
|
|
98708
|
+
422: MediaMediaError;
|
|
98709
|
+
/**
|
|
98710
|
+
* A rate limit was reached; wait before retrying.
|
|
98711
|
+
*/
|
|
98712
|
+
429: MediaMediaError;
|
|
98713
|
+
/**
|
|
98714
|
+
* The requested operation is unsupported; choose a supported method.
|
|
98715
|
+
*/
|
|
98716
|
+
501: MediaMediaError;
|
|
98717
|
+
/**
|
|
98718
|
+
* Request failed; see the error code reference.
|
|
98719
|
+
*/
|
|
98720
|
+
502: MediaMediaError;
|
|
98721
|
+
/**
|
|
98722
|
+
* Historical projections are still being initialized, or library storage is temporarily unavailable; retry shortly and check failureSummary counts_complete.
|
|
98723
|
+
*/
|
|
98724
|
+
503: MediaMediaError;
|
|
98725
|
+
};
|
|
98726
|
+
export type MediaGetHlsRenditionsError = MediaGetHlsRenditionsErrors[keyof MediaGetHlsRenditionsErrors];
|
|
98727
|
+
export type MediaGetHlsRenditionsResponses = {
|
|
98728
|
+
/**
|
|
98729
|
+
* Successful response.
|
|
98730
|
+
*/
|
|
98731
|
+
200: MediaHlsLadder;
|
|
98732
|
+
};
|
|
98733
|
+
export type MediaGetHlsRenditionsResponse = MediaGetHlsRenditionsResponses[keyof MediaGetHlsRenditionsResponses];
|
|
98734
|
+
export type MediaRequestHlsRenditionsData = {
|
|
98735
|
+
/**
|
|
98736
|
+
* Which clarity rungs to build for the asset. Omit heights to build the whole ladder.
|
|
98737
|
+
*/
|
|
98738
|
+
body: {
|
|
98739
|
+
/**
|
|
98740
|
+
* The clarity rungs to build: a non-empty subset of 480, 720 and 1080 with no repeats. Omitted or empty builds all three. The ladder never upscales, so a rung above the source’s short side is dropped.
|
|
98741
|
+
*/
|
|
98742
|
+
heights?: Array<480 | 720 | 1080>;
|
|
98743
|
+
};
|
|
98744
|
+
path: {
|
|
98745
|
+
/**
|
|
98746
|
+
* Library ID returned by creation.
|
|
98747
|
+
*/
|
|
98748
|
+
library_id: string;
|
|
98749
|
+
/**
|
|
98750
|
+
* 32-character asset ID.
|
|
98751
|
+
*/
|
|
98752
|
+
asset_id: string;
|
|
98753
|
+
};
|
|
98754
|
+
query?: never;
|
|
98755
|
+
url: '/media/v1/libraries/{library_id}/assets/{asset_id}/hls';
|
|
98756
|
+
};
|
|
98757
|
+
export type MediaRequestHlsRenditionsErrors = {
|
|
98758
|
+
/**
|
|
98759
|
+
* A selector, cursor, limit or other parameter is invalid; correct the reported field before retrying.
|
|
98760
|
+
*/
|
|
98761
|
+
400: MediaMediaError;
|
|
98762
|
+
/**
|
|
98763
|
+
* Request failed; see the error code reference.
|
|
98764
|
+
*/
|
|
98765
|
+
402: MediaMediaError;
|
|
98766
|
+
/**
|
|
98767
|
+
* This credential has read-only access to the library; use a write-capable binding for mutations.
|
|
98768
|
+
*/
|
|
98769
|
+
403: MediaMediaError;
|
|
98770
|
+
/**
|
|
98771
|
+
* The library or asset is missing, deleted or belongs to another tenant; verify its identifier and owner.
|
|
98772
|
+
*/
|
|
98773
|
+
404: MediaMediaError;
|
|
98774
|
+
/**
|
|
98775
|
+
* Request failed; see the error code reference.
|
|
98776
|
+
*/
|
|
98777
|
+
409: MediaMediaError;
|
|
98778
|
+
/**
|
|
98779
|
+
* The file exceeds an input limit; provide a smaller source file.
|
|
98780
|
+
*/
|
|
98781
|
+
413: MediaMediaError;
|
|
98782
|
+
/**
|
|
98783
|
+
* This media format is unsupported; provide a supported format.
|
|
98784
|
+
*/
|
|
98785
|
+
415: MediaMediaError;
|
|
98786
|
+
/**
|
|
98787
|
+
* Request failed; see the error code reference.
|
|
98788
|
+
*/
|
|
98789
|
+
422: MediaMediaError;
|
|
98790
|
+
/**
|
|
98791
|
+
* A rate limit was reached; wait before retrying.
|
|
98792
|
+
*/
|
|
98793
|
+
429: MediaMediaError;
|
|
98794
|
+
/**
|
|
98795
|
+
* The requested operation is unsupported; choose a supported method.
|
|
98796
|
+
*/
|
|
98797
|
+
501: MediaMediaError;
|
|
98798
|
+
/**
|
|
98799
|
+
* Request failed; see the error code reference.
|
|
98800
|
+
*/
|
|
98801
|
+
502: MediaMediaError;
|
|
98802
|
+
/**
|
|
98803
|
+
* Historical projections are still being initialized, or library storage is temporarily unavailable; retry shortly and check failureSummary counts_complete.
|
|
98804
|
+
*/
|
|
98805
|
+
503: MediaMediaError;
|
|
98806
|
+
};
|
|
98807
|
+
export type MediaRequestHlsRenditionsError = MediaRequestHlsRenditionsErrors[keyof MediaRequestHlsRenditionsErrors];
|
|
98808
|
+
export type MediaRequestHlsRenditionsResponses = {
|
|
98809
|
+
/**
|
|
98810
|
+
* Successful response.
|
|
98811
|
+
*/
|
|
98812
|
+
202: MediaHlsLadder;
|
|
98813
|
+
};
|
|
98814
|
+
export type MediaRequestHlsRenditionsResponse = MediaRequestHlsRenditionsResponses[keyof MediaRequestHlsRenditionsResponses];
|
|
98065
98815
|
export type OntologyListTypesData = {
|
|
98066
98816
|
body?: never;
|
|
98067
98817
|
path?: never;
|
|
@@ -98764,6 +99514,763 @@ export type OntologySearchResponses = {
|
|
|
98764
99514
|
200: OntologySearchResult;
|
|
98765
99515
|
};
|
|
98766
99516
|
export type OntologySearchResponse = OntologySearchResponses[keyof OntologySearchResponses];
|
|
99517
|
+
export type RegistryRepositoriesListData = {
|
|
99518
|
+
body?: never;
|
|
99519
|
+
path?: never;
|
|
99520
|
+
query?: {
|
|
99521
|
+
/**
|
|
99522
|
+
* 每页返回多少条,1 到 100;省略时默认 20。超过 100 会被截到 100。
|
|
99523
|
+
*/
|
|
99524
|
+
page_size?: number;
|
|
99525
|
+
/**
|
|
99526
|
+
* 上一页返回的 next_cursor,用来取下一页;第一页省略它,next_cursor 为 null 时停止翻页。
|
|
99527
|
+
*/
|
|
99528
|
+
cursor?: string;
|
|
99529
|
+
};
|
|
99530
|
+
url: '/registry/v1/repositories';
|
|
99531
|
+
};
|
|
99532
|
+
export type RegistryRepositoriesListErrors = {
|
|
99533
|
+
/**
|
|
99534
|
+
* INVALID_PARAMS 表示字段、查询值或标识不符合文档的格式或范围——库名不合法、版本号不是 semver、archive 与 files 同时给了或缺了、page_size 不在 1 到 100。按消息指出的字段改正后重发。
|
|
99535
|
+
*/
|
|
99536
|
+
400: RegistryRegistryError;
|
|
99537
|
+
/**
|
|
99538
|
+
* UNAUTHENTICATED 表示缺少或无效的 API key;先带上拥有这个组织的 Praxis API key 再重试。
|
|
99539
|
+
*/
|
|
99540
|
+
401: RegistryRegistryError;
|
|
99541
|
+
/**
|
|
99542
|
+
* QUOTA_EXCEEDED 表示这个组织的资源库用量或调用频率已达上限;减少请求,或先清掉不再需要的包再重试。
|
|
99543
|
+
*/
|
|
99544
|
+
429: RegistryRegistryError;
|
|
99545
|
+
/**
|
|
99546
|
+
* INTERNAL 表示服务没能完成请求;写操作重试前先读一次,确认上一次没有部分生效。
|
|
99547
|
+
*/
|
|
99548
|
+
500: RegistryRegistryError;
|
|
99549
|
+
};
|
|
99550
|
+
export type RegistryRepositoriesListError = RegistryRepositoriesListErrors[keyof RegistryRepositoriesListErrors];
|
|
99551
|
+
export type RegistryRepositoriesListResponses = {
|
|
99552
|
+
/**
|
|
99553
|
+
* 这个组织的库,按创建时间排序,连同下一页游标。
|
|
99554
|
+
*/
|
|
99555
|
+
200: RegistryRepositoryPage;
|
|
99556
|
+
};
|
|
99557
|
+
export type RegistryRepositoriesListResponse = RegistryRepositoriesListResponses[keyof RegistryRepositoriesListResponses];
|
|
99558
|
+
export type RegistryRepositoriesCreateData = {
|
|
99559
|
+
/**
|
|
99560
|
+
* 要建的库;name 是唯一标识,其余可省略。
|
|
99561
|
+
*/
|
|
99562
|
+
body: RegistryCreateRepositoryInput;
|
|
99563
|
+
path?: never;
|
|
99564
|
+
query?: never;
|
|
99565
|
+
url: '/registry/v1/repositories';
|
|
99566
|
+
};
|
|
99567
|
+
export type RegistryRepositoriesCreateErrors = {
|
|
99568
|
+
/**
|
|
99569
|
+
* INVALID_PARAMS 表示字段、查询值或标识不符合文档的格式或范围——库名不合法、版本号不是 semver、archive 与 files 同时给了或缺了、page_size 不在 1 到 100。按消息指出的字段改正后重发。
|
|
99570
|
+
*/
|
|
99571
|
+
400: RegistryRegistryError;
|
|
99572
|
+
/**
|
|
99573
|
+
* UNAUTHENTICATED 表示缺少或无效的 API key;先带上拥有这个组织的 Praxis API key 再重试。
|
|
99574
|
+
*/
|
|
99575
|
+
401: RegistryRegistryError;
|
|
99576
|
+
/**
|
|
99577
|
+
* ALREADY_EXISTS 表示同名的库或同号的版本已经存在;换一个 name,或用更高的版本号发布。
|
|
99578
|
+
*/
|
|
99579
|
+
409: RegistryRegistryError;
|
|
99580
|
+
/**
|
|
99581
|
+
* QUOTA_EXCEEDED 表示这个组织的资源库用量或调用频率已达上限;减少请求,或先清掉不再需要的包再重试。
|
|
99582
|
+
*/
|
|
99583
|
+
429: RegistryRegistryError;
|
|
99584
|
+
/**
|
|
99585
|
+
* INTERNAL 表示服务没能完成请求;写操作重试前先读一次,确认上一次没有部分生效。
|
|
99586
|
+
*/
|
|
99587
|
+
500: RegistryRegistryError;
|
|
99588
|
+
};
|
|
99589
|
+
export type RegistryRepositoriesCreateError = RegistryRepositoriesCreateErrors[keyof RegistryRepositoriesCreateErrors];
|
|
99590
|
+
export type RegistryRepositoriesCreateResponses = {
|
|
99591
|
+
/**
|
|
99592
|
+
* 新建的库,带它的 id、object、默认标记和时间戳。
|
|
99593
|
+
*/
|
|
99594
|
+
201: RegistryRepository;
|
|
99595
|
+
};
|
|
99596
|
+
export type RegistryRepositoriesCreateResponse = RegistryRepositoriesCreateResponses[keyof RegistryRepositoriesCreateResponses];
|
|
99597
|
+
export type RegistryRepositoriesDeleteData = {
|
|
99598
|
+
body?: never;
|
|
99599
|
+
path: {
|
|
99600
|
+
/**
|
|
99601
|
+
* 库的标识,来自 repositories.list 或 repositories.create 返回的 id;不要传库的 name 或显示名。
|
|
99602
|
+
*/
|
|
99603
|
+
repository_id: string;
|
|
99604
|
+
};
|
|
99605
|
+
query?: never;
|
|
99606
|
+
url: '/registry/v1/repositories/{repository_id}';
|
|
99607
|
+
};
|
|
99608
|
+
export type RegistryRepositoriesDeleteErrors = {
|
|
99609
|
+
/**
|
|
99610
|
+
* UNAUTHENTICATED 表示缺少或无效的 API key;先带上拥有这个组织的 Praxis API key 再重试。
|
|
99611
|
+
*/
|
|
99612
|
+
401: RegistryRegistryError;
|
|
99613
|
+
/**
|
|
99614
|
+
* NOT_FOUND 表示这个库、包或版本不存在,或属于另一个组织——两种情况故意不区分;用 list 拿到的 id 重试,删除后的资源也会回到这个答案。
|
|
99615
|
+
*/
|
|
99616
|
+
404: RegistryRegistryError;
|
|
99617
|
+
/**
|
|
99618
|
+
* FAILED_PRECONDITION 表示当前状态不允许这个操作——删默认库、删非空的库、发布不高于已发布最高版本的版本、撤回已经撤回的版本、安装已撤回的版本、插件装非最新版、技能同名冲突或已满 20 个。先按消息指出的条件调整(清空库、抬版本号、换未撤回的版本)再试。
|
|
99619
|
+
*/
|
|
99620
|
+
409: RegistryRegistryError;
|
|
99621
|
+
/**
|
|
99622
|
+
* INTERNAL 表示服务没能完成请求;写操作重试前先读一次,确认上一次没有部分生效。
|
|
99623
|
+
*/
|
|
99624
|
+
500: RegistryRegistryError;
|
|
99625
|
+
};
|
|
99626
|
+
export type RegistryRepositoriesDeleteError = RegistryRepositoriesDeleteErrors[keyof RegistryRepositoriesDeleteErrors];
|
|
99627
|
+
export type RegistryRepositoriesDeleteResponses = {
|
|
99628
|
+
/**
|
|
99629
|
+
* 确认删除的对象:被删库的 id、object 和 deleted 标记。
|
|
99630
|
+
*/
|
|
99631
|
+
200: RegistryDeletedRepository;
|
|
99632
|
+
};
|
|
99633
|
+
export type RegistryRepositoriesDeleteResponse = RegistryRepositoriesDeleteResponses[keyof RegistryRepositoriesDeleteResponses];
|
|
99634
|
+
export type RegistryRepositoriesRetrieveData = {
|
|
99635
|
+
body?: never;
|
|
99636
|
+
path: {
|
|
99637
|
+
/**
|
|
99638
|
+
* 库的标识,来自 repositories.list 或 repositories.create 返回的 id;不要传库的 name 或显示名。
|
|
99639
|
+
*/
|
|
99640
|
+
repository_id: string;
|
|
99641
|
+
};
|
|
99642
|
+
query?: never;
|
|
99643
|
+
url: '/registry/v1/repositories/{repository_id}';
|
|
99644
|
+
};
|
|
99645
|
+
export type RegistryRepositoriesRetrieveErrors = {
|
|
99646
|
+
/**
|
|
99647
|
+
* UNAUTHENTICATED 表示缺少或无效的 API key;先带上拥有这个组织的 Praxis API key 再重试。
|
|
99648
|
+
*/
|
|
99649
|
+
401: RegistryRegistryError;
|
|
99650
|
+
/**
|
|
99651
|
+
* NOT_FOUND 表示这个库、包或版本不存在,或属于另一个组织——两种情况故意不区分;用 list 拿到的 id 重试,删除后的资源也会回到这个答案。
|
|
99652
|
+
*/
|
|
99653
|
+
404: RegistryRegistryError;
|
|
99654
|
+
/**
|
|
99655
|
+
* INTERNAL 表示服务没能完成请求;写操作重试前先读一次,确认上一次没有部分生效。
|
|
99656
|
+
*/
|
|
99657
|
+
500: RegistryRegistryError;
|
|
99658
|
+
};
|
|
99659
|
+
export type RegistryRepositoriesRetrieveError = RegistryRepositoriesRetrieveErrors[keyof RegistryRepositoriesRetrieveErrors];
|
|
99660
|
+
export type RegistryRepositoriesRetrieveResponses = {
|
|
99661
|
+
/**
|
|
99662
|
+
* 这个库的当前状态。
|
|
99663
|
+
*/
|
|
99664
|
+
200: RegistryRepository;
|
|
99665
|
+
};
|
|
99666
|
+
export type RegistryRepositoriesRetrieveResponse = RegistryRepositoriesRetrieveResponses[keyof RegistryRepositoriesRetrieveResponses];
|
|
99667
|
+
export type RegistryRepositoriesUpdateData = {
|
|
99668
|
+
/**
|
|
99669
|
+
* 要改的字段;display_name 和 description 至少给一个。
|
|
99670
|
+
*/
|
|
99671
|
+
body: RegistryUpdateRepositoryInput;
|
|
99672
|
+
path: {
|
|
99673
|
+
/**
|
|
99674
|
+
* 库的标识,来自 repositories.list 或 repositories.create 返回的 id;不要传库的 name 或显示名。
|
|
99675
|
+
*/
|
|
99676
|
+
repository_id: string;
|
|
99677
|
+
};
|
|
99678
|
+
query?: never;
|
|
99679
|
+
url: '/registry/v1/repositories/{repository_id}';
|
|
99680
|
+
};
|
|
99681
|
+
export type RegistryRepositoriesUpdateErrors = {
|
|
99682
|
+
/**
|
|
99683
|
+
* INVALID_PARAMS 表示字段、查询值或标识不符合文档的格式或范围——库名不合法、版本号不是 semver、archive 与 files 同时给了或缺了、page_size 不在 1 到 100。按消息指出的字段改正后重发。
|
|
99684
|
+
*/
|
|
99685
|
+
400: RegistryRegistryError;
|
|
99686
|
+
/**
|
|
99687
|
+
* UNAUTHENTICATED 表示缺少或无效的 API key;先带上拥有这个组织的 Praxis API key 再重试。
|
|
99688
|
+
*/
|
|
99689
|
+
401: RegistryRegistryError;
|
|
99690
|
+
/**
|
|
99691
|
+
* NOT_FOUND 表示这个库、包或版本不存在,或属于另一个组织——两种情况故意不区分;用 list 拿到的 id 重试,删除后的资源也会回到这个答案。
|
|
99692
|
+
*/
|
|
99693
|
+
404: RegistryRegistryError;
|
|
99694
|
+
/**
|
|
99695
|
+
* INTERNAL 表示服务没能完成请求;写操作重试前先读一次,确认上一次没有部分生效。
|
|
99696
|
+
*/
|
|
99697
|
+
500: RegistryRegistryError;
|
|
99698
|
+
};
|
|
99699
|
+
export type RegistryRepositoriesUpdateError = RegistryRepositoriesUpdateErrors[keyof RegistryRepositoriesUpdateErrors];
|
|
99700
|
+
export type RegistryRepositoriesUpdateResponses = {
|
|
99701
|
+
/**
|
|
99702
|
+
* 更新后的库,带新的 update_time。
|
|
99703
|
+
*/
|
|
99704
|
+
200: RegistryRepository;
|
|
99705
|
+
};
|
|
99706
|
+
export type RegistryRepositoriesUpdateResponse = RegistryRepositoriesUpdateResponses[keyof RegistryRepositoriesUpdateResponses];
|
|
99707
|
+
export type RegistryRepositoriesPackagesListData = {
|
|
99708
|
+
body?: never;
|
|
99709
|
+
path: {
|
|
99710
|
+
/**
|
|
99711
|
+
* 库的标识,来自 repositories.list 或 repositories.create 返回的 id;不要传库的 name 或显示名。
|
|
99712
|
+
*/
|
|
99713
|
+
repository_id: string;
|
|
99714
|
+
};
|
|
99715
|
+
query?: {
|
|
99716
|
+
/**
|
|
99717
|
+
* 只看某一类包;省略时技能和插件都返回。
|
|
99718
|
+
*/
|
|
99719
|
+
kind?: 'skill' | 'plugin';
|
|
99720
|
+
/**
|
|
99721
|
+
* 按子串搜索包,匹配 name、title 和 description;省略时不过滤。不区分大小写。
|
|
99722
|
+
*/
|
|
99723
|
+
q?: string;
|
|
99724
|
+
/**
|
|
99725
|
+
* 结果排序方式;省略时按 updated。
|
|
99726
|
+
*/
|
|
99727
|
+
sort?: 'updated' | 'downloads';
|
|
99728
|
+
/**
|
|
99729
|
+
* 每页返回多少条,1 到 100;省略时默认 20。超过 100 会被截到 100。
|
|
99730
|
+
*/
|
|
99731
|
+
page_size?: number;
|
|
99732
|
+
/**
|
|
99733
|
+
* 上一页返回的 next_cursor,用来取下一页;第一页省略它,next_cursor 为 null 时停止翻页。
|
|
99734
|
+
*/
|
|
99735
|
+
cursor?: string;
|
|
99736
|
+
};
|
|
99737
|
+
url: '/registry/v1/repositories/{repository_id}/packages';
|
|
99738
|
+
};
|
|
99739
|
+
export type RegistryRepositoriesPackagesListErrors = {
|
|
99740
|
+
/**
|
|
99741
|
+
* INVALID_PARAMS 表示字段、查询值或标识不符合文档的格式或范围——库名不合法、版本号不是 semver、archive 与 files 同时给了或缺了、page_size 不在 1 到 100。按消息指出的字段改正后重发。
|
|
99742
|
+
*/
|
|
99743
|
+
400: RegistryRegistryError;
|
|
99744
|
+
/**
|
|
99745
|
+
* UNAUTHENTICATED 表示缺少或无效的 API key;先带上拥有这个组织的 Praxis API key 再重试。
|
|
99746
|
+
*/
|
|
99747
|
+
401: RegistryRegistryError;
|
|
99748
|
+
/**
|
|
99749
|
+
* NOT_FOUND 表示这个库、包或版本不存在,或属于另一个组织——两种情况故意不区分;用 list 拿到的 id 重试,删除后的资源也会回到这个答案。
|
|
99750
|
+
*/
|
|
99751
|
+
404: RegistryRegistryError;
|
|
99752
|
+
/**
|
|
99753
|
+
* QUOTA_EXCEEDED 表示这个组织的资源库用量或调用频率已达上限;减少请求,或先清掉不再需要的包再重试。
|
|
99754
|
+
*/
|
|
99755
|
+
429: RegistryRegistryError;
|
|
99756
|
+
/**
|
|
99757
|
+
* INTERNAL 表示服务没能完成请求;写操作重试前先读一次,确认上一次没有部分生效。
|
|
99758
|
+
*/
|
|
99759
|
+
500: RegistryRegistryError;
|
|
99760
|
+
};
|
|
99761
|
+
export type RegistryRepositoriesPackagesListError = RegistryRepositoriesPackagesListErrors[keyof RegistryRepositoriesPackagesListErrors];
|
|
99762
|
+
export type RegistryRepositoriesPackagesListResponses = {
|
|
99763
|
+
/**
|
|
99764
|
+
* 匹配的包,连同下一页游标。
|
|
99765
|
+
*/
|
|
99766
|
+
200: RegistryPackagePage;
|
|
99767
|
+
};
|
|
99768
|
+
export type RegistryRepositoriesPackagesListResponse = RegistryRepositoriesPackagesListResponses[keyof RegistryRepositoriesPackagesListResponses];
|
|
99769
|
+
export type RegistryRepositoriesPackagesCreateData = {
|
|
99770
|
+
/**
|
|
99771
|
+
* 要发布的包和它的第一个版本;archive 与 files 二选一。
|
|
99772
|
+
*/
|
|
99773
|
+
body: RegistryPublishInput;
|
|
99774
|
+
path: {
|
|
99775
|
+
/**
|
|
99776
|
+
* 库的标识,来自 repositories.list 或 repositories.create 返回的 id;不要传库的 name 或显示名。
|
|
99777
|
+
*/
|
|
99778
|
+
repository_id: string;
|
|
99779
|
+
};
|
|
99780
|
+
query?: never;
|
|
99781
|
+
url: '/registry/v1/repositories/{repository_id}/packages';
|
|
99782
|
+
};
|
|
99783
|
+
export type RegistryRepositoriesPackagesCreateErrors = {
|
|
99784
|
+
/**
|
|
99785
|
+
* INVALID_PARAMS 表示字段、查询值或标识不符合文档的格式或范围——库名不合法、版本号不是 semver、archive 与 files 同时给了或缺了、page_size 不在 1 到 100。按消息指出的字段改正后重发。
|
|
99786
|
+
*/
|
|
99787
|
+
400: RegistryRegistryError;
|
|
99788
|
+
/**
|
|
99789
|
+
* UNAUTHENTICATED 表示缺少或无效的 API key;先带上拥有这个组织的 Praxis API key 再重试。
|
|
99790
|
+
*/
|
|
99791
|
+
401: RegistryRegistryError;
|
|
99792
|
+
/**
|
|
99793
|
+
* NOT_FOUND 表示这个库、包或版本不存在,或属于另一个组织——两种情况故意不区分;用 list 拿到的 id 重试,删除后的资源也会回到这个答案。
|
|
99794
|
+
*/
|
|
99795
|
+
404: RegistryRegistryError;
|
|
99796
|
+
/**
|
|
99797
|
+
* ALREADY_EXISTS 表示同名的库或同号的版本已经存在;换一个 name,或用更高的版本号发布。
|
|
99798
|
+
*/
|
|
99799
|
+
409: RegistryRegistryError;
|
|
99800
|
+
/**
|
|
99801
|
+
* PAYLOAD_TOO_LARGE 表示上传超过限额:单次上传 ≤25 MiB,解压后 ≤50 MiB,≤1000 个文件。精简内容后重发。
|
|
99802
|
+
*/
|
|
99803
|
+
413: RegistryRegistryError;
|
|
99804
|
+
/**
|
|
99805
|
+
* QUOTA_EXCEEDED 表示这个组织的资源库用量或调用频率已达上限;减少请求,或先清掉不再需要的包再重试。
|
|
99806
|
+
*/
|
|
99807
|
+
429: RegistryRegistryError;
|
|
99808
|
+
/**
|
|
99809
|
+
* INTERNAL 表示服务没能完成请求;写操作重试前先读一次,确认上一次没有部分生效。
|
|
99810
|
+
*/
|
|
99811
|
+
500: RegistryRegistryError;
|
|
99812
|
+
};
|
|
99813
|
+
export type RegistryRepositoriesPackagesCreateError = RegistryRepositoriesPackagesCreateErrors[keyof RegistryRepositoriesPackagesCreateErrors];
|
|
99814
|
+
export type RegistryRepositoriesPackagesCreateResponses = {
|
|
99815
|
+
/**
|
|
99816
|
+
* 建好的包,latest_version 是刚发布的版本号。
|
|
99817
|
+
*/
|
|
99818
|
+
201: RegistryPackage;
|
|
99819
|
+
};
|
|
99820
|
+
export type RegistryRepositoriesPackagesCreateResponse = RegistryRepositoriesPackagesCreateResponses[keyof RegistryRepositoriesPackagesCreateResponses];
|
|
99821
|
+
export type RegistryPackagesRetrieveData = {
|
|
99822
|
+
body?: never;
|
|
99823
|
+
path: {
|
|
99824
|
+
/**
|
|
99825
|
+
* 包的标识,来自 repositories.packages.list 或 repositories.packages.create 返回的 id;不要传包名。
|
|
99826
|
+
*/
|
|
99827
|
+
package_id: string;
|
|
99828
|
+
};
|
|
99829
|
+
query?: never;
|
|
99830
|
+
url: '/registry/v1/packages/{package_id}';
|
|
99831
|
+
};
|
|
99832
|
+
export type RegistryPackagesRetrieveErrors = {
|
|
99833
|
+
/**
|
|
99834
|
+
* UNAUTHENTICATED 表示缺少或无效的 API key;先带上拥有这个组织的 Praxis API key 再重试。
|
|
99835
|
+
*/
|
|
99836
|
+
401: RegistryRegistryError;
|
|
99837
|
+
/**
|
|
99838
|
+
* NOT_FOUND 表示这个库、包或版本不存在,或属于另一个组织——两种情况故意不区分;用 list 拿到的 id 重试,删除后的资源也会回到这个答案。
|
|
99839
|
+
*/
|
|
99840
|
+
404: RegistryRegistryError;
|
|
99841
|
+
/**
|
|
99842
|
+
* INTERNAL 表示服务没能完成请求;写操作重试前先读一次,确认上一次没有部分生效。
|
|
99843
|
+
*/
|
|
99844
|
+
500: RegistryRegistryError;
|
|
99845
|
+
};
|
|
99846
|
+
export type RegistryPackagesRetrieveError = RegistryPackagesRetrieveErrors[keyof RegistryPackagesRetrieveErrors];
|
|
99847
|
+
export type RegistryPackagesRetrieveResponses = {
|
|
99848
|
+
/**
|
|
99849
|
+
* 这个包的当前状态。
|
|
99850
|
+
*/
|
|
99851
|
+
200: RegistryPackage;
|
|
99852
|
+
};
|
|
99853
|
+
export type RegistryPackagesRetrieveResponse = RegistryPackagesRetrieveResponses[keyof RegistryPackagesRetrieveResponses];
|
|
99854
|
+
export type RegistryPackagesVersionsListData = {
|
|
99855
|
+
body?: never;
|
|
99856
|
+
path: {
|
|
99857
|
+
/**
|
|
99858
|
+
* 包的标识,来自 repositories.packages.list 或 repositories.packages.create 返回的 id;不要传包名。
|
|
99859
|
+
*/
|
|
99860
|
+
package_id: string;
|
|
99861
|
+
};
|
|
99862
|
+
query?: {
|
|
99863
|
+
/**
|
|
99864
|
+
* 每页返回多少条,1 到 100;省略时默认 20。超过 100 会被截到 100。
|
|
99865
|
+
*/
|
|
99866
|
+
page_size?: number;
|
|
99867
|
+
/**
|
|
99868
|
+
* 上一页返回的 next_cursor,用来取下一页;第一页省略它,next_cursor 为 null 时停止翻页。
|
|
99869
|
+
*/
|
|
99870
|
+
cursor?: string;
|
|
99871
|
+
};
|
|
99872
|
+
url: '/registry/v1/packages/{package_id}/versions';
|
|
99873
|
+
};
|
|
99874
|
+
export type RegistryPackagesVersionsListErrors = {
|
|
99875
|
+
/**
|
|
99876
|
+
* INVALID_PARAMS 表示字段、查询值或标识不符合文档的格式或范围——库名不合法、版本号不是 semver、archive 与 files 同时给了或缺了、page_size 不在 1 到 100。按消息指出的字段改正后重发。
|
|
99877
|
+
*/
|
|
99878
|
+
400: RegistryRegistryError;
|
|
99879
|
+
/**
|
|
99880
|
+
* UNAUTHENTICATED 表示缺少或无效的 API key;先带上拥有这个组织的 Praxis API key 再重试。
|
|
99881
|
+
*/
|
|
99882
|
+
401: RegistryRegistryError;
|
|
99883
|
+
/**
|
|
99884
|
+
* NOT_FOUND 表示这个库、包或版本不存在,或属于另一个组织——两种情况故意不区分;用 list 拿到的 id 重试,删除后的资源也会回到这个答案。
|
|
99885
|
+
*/
|
|
99886
|
+
404: RegistryRegistryError;
|
|
99887
|
+
/**
|
|
99888
|
+
* QUOTA_EXCEEDED 表示这个组织的资源库用量或调用频率已达上限;减少请求,或先清掉不再需要的包再重试。
|
|
99889
|
+
*/
|
|
99890
|
+
429: RegistryRegistryError;
|
|
99891
|
+
/**
|
|
99892
|
+
* INTERNAL 表示服务没能完成请求;写操作重试前先读一次,确认上一次没有部分生效。
|
|
99893
|
+
*/
|
|
99894
|
+
500: RegistryRegistryError;
|
|
99895
|
+
};
|
|
99896
|
+
export type RegistryPackagesVersionsListError = RegistryPackagesVersionsListErrors[keyof RegistryPackagesVersionsListErrors];
|
|
99897
|
+
export type RegistryPackagesVersionsListResponses = {
|
|
99898
|
+
/**
|
|
99899
|
+
* 这个包的版本,连同下一页游标。
|
|
99900
|
+
*/
|
|
99901
|
+
200: RegistryVersionPage;
|
|
99902
|
+
};
|
|
99903
|
+
export type RegistryPackagesVersionsListResponse = RegistryPackagesVersionsListResponses[keyof RegistryPackagesVersionsListResponses];
|
|
99904
|
+
export type RegistryPackagesVersionsCreateData = {
|
|
99905
|
+
/**
|
|
99906
|
+
* 新版本的内容;archive 与 files 二选一。
|
|
99907
|
+
*/
|
|
99908
|
+
body: RegistryPublishInput;
|
|
99909
|
+
path: {
|
|
99910
|
+
/**
|
|
99911
|
+
* 包的标识,来自 repositories.packages.list 或 repositories.packages.create 返回的 id;不要传包名。
|
|
99912
|
+
*/
|
|
99913
|
+
package_id: string;
|
|
99914
|
+
};
|
|
99915
|
+
query?: never;
|
|
99916
|
+
url: '/registry/v1/packages/{package_id}/versions';
|
|
99917
|
+
};
|
|
99918
|
+
export type RegistryPackagesVersionsCreateErrors = {
|
|
99919
|
+
/**
|
|
99920
|
+
* INVALID_PARAMS 表示字段、查询值或标识不符合文档的格式或范围——库名不合法、版本号不是 semver、archive 与 files 同时给了或缺了、page_size 不在 1 到 100。按消息指出的字段改正后重发。
|
|
99921
|
+
*/
|
|
99922
|
+
400: RegistryRegistryError;
|
|
99923
|
+
/**
|
|
99924
|
+
* UNAUTHENTICATED 表示缺少或无效的 API key;先带上拥有这个组织的 Praxis API key 再重试。
|
|
99925
|
+
*/
|
|
99926
|
+
401: RegistryRegistryError;
|
|
99927
|
+
/**
|
|
99928
|
+
* NOT_FOUND 表示这个库、包或版本不存在,或属于另一个组织——两种情况故意不区分;用 list 拿到的 id 重试,删除后的资源也会回到这个答案。
|
|
99929
|
+
*/
|
|
99930
|
+
404: RegistryRegistryError;
|
|
99931
|
+
/**
|
|
99932
|
+
* FAILED_PRECONDITION 表示当前状态不允许这个操作——删默认库、删非空的库、发布不高于已发布最高版本的版本、撤回已经撤回的版本、安装已撤回的版本、插件装非最新版、技能同名冲突或已满 20 个。先按消息指出的条件调整(清空库、抬版本号、换未撤回的版本)再试。
|
|
99933
|
+
*/
|
|
99934
|
+
409: RegistryRegistryError;
|
|
99935
|
+
/**
|
|
99936
|
+
* PAYLOAD_TOO_LARGE 表示上传超过限额:单次上传 ≤25 MiB,解压后 ≤50 MiB,≤1000 个文件。精简内容后重发。
|
|
99937
|
+
*/
|
|
99938
|
+
413: RegistryRegistryError;
|
|
99939
|
+
/**
|
|
99940
|
+
* QUOTA_EXCEEDED 表示这个组织的资源库用量或调用频率已达上限;减少请求,或先清掉不再需要的包再重试。
|
|
99941
|
+
*/
|
|
99942
|
+
429: RegistryRegistryError;
|
|
99943
|
+
/**
|
|
99944
|
+
* INTERNAL 表示服务没能完成请求;写操作重试前先读一次,确认上一次没有部分生效。
|
|
99945
|
+
*/
|
|
99946
|
+
500: RegistryRegistryError;
|
|
99947
|
+
};
|
|
99948
|
+
export type RegistryPackagesVersionsCreateError = RegistryPackagesVersionsCreateErrors[keyof RegistryPackagesVersionsCreateErrors];
|
|
99949
|
+
export type RegistryPackagesVersionsCreateResponses = {
|
|
99950
|
+
/**
|
|
99951
|
+
* 新建的版本,带它的 digest 和大小。
|
|
99952
|
+
*/
|
|
99953
|
+
201: RegistryVersion;
|
|
99954
|
+
};
|
|
99955
|
+
export type RegistryPackagesVersionsCreateResponse = RegistryPackagesVersionsCreateResponses[keyof RegistryPackagesVersionsCreateResponses];
|
|
99956
|
+
export type RegistryPackagesVersionsContentsData = {
|
|
99957
|
+
body?: never;
|
|
99958
|
+
path: {
|
|
99959
|
+
/**
|
|
99960
|
+
* 包的标识,来自 repositories.packages.list 或 repositories.packages.create 返回的 id;不要传包名。
|
|
99961
|
+
*/
|
|
99962
|
+
package_id: string;
|
|
99963
|
+
/**
|
|
99964
|
+
* 要读的版本号,来自 versions.list 或 versions.create 返回的 version;必须是完整 semver,形如 1.2.0,不接受 latest 或范围。
|
|
99965
|
+
*/
|
|
99966
|
+
version: string;
|
|
99967
|
+
};
|
|
99968
|
+
query?: never;
|
|
99969
|
+
url: '/registry/v1/packages/{package_id}/versions/{version}/contents';
|
|
99970
|
+
};
|
|
99971
|
+
export type RegistryPackagesVersionsContentsErrors = {
|
|
99972
|
+
/**
|
|
99973
|
+
* UNAUTHENTICATED 表示缺少或无效的 API key;先带上拥有这个组织的 Praxis API key 再重试。
|
|
99974
|
+
*/
|
|
99975
|
+
401: RegistryRegistryError;
|
|
99976
|
+
/**
|
|
99977
|
+
* NOT_FOUND 表示这个库、包或版本不存在,或属于另一个组织——两种情况故意不区分;用 list 拿到的 id 重试,删除后的资源也会回到这个答案。
|
|
99978
|
+
*/
|
|
99979
|
+
404: RegistryRegistryError;
|
|
99980
|
+
/**
|
|
99981
|
+
* INTERNAL 表示服务没能完成请求;写操作重试前先读一次,确认上一次没有部分生效。
|
|
99982
|
+
*/
|
|
99983
|
+
500: RegistryRegistryError;
|
|
99984
|
+
};
|
|
99985
|
+
export type RegistryPackagesVersionsContentsError = RegistryPackagesVersionsContentsErrors[keyof RegistryPackagesVersionsContentsErrors];
|
|
99986
|
+
export type RegistryPackagesVersionsContentsResponses = {
|
|
99987
|
+
/**
|
|
99988
|
+
* 这个版本的文件条目,按路径排序。
|
|
99989
|
+
*/
|
|
99990
|
+
200: RegistryFileEntryPage;
|
|
99991
|
+
};
|
|
99992
|
+
export type RegistryPackagesVersionsContentsResponse = RegistryPackagesVersionsContentsResponses[keyof RegistryPackagesVersionsContentsResponses];
|
|
99993
|
+
export type RegistryPackagesVersionsFilesRetrieveData = {
|
|
99994
|
+
body?: never;
|
|
99995
|
+
path: {
|
|
99996
|
+
/**
|
|
99997
|
+
* 包的标识,来自 repositories.packages.list 或 repositories.packages.create 返回的 id;不要传包名。
|
|
99998
|
+
*/
|
|
99999
|
+
package_id: string;
|
|
100000
|
+
/**
|
|
100001
|
+
* 要读的版本号,来自 versions.list 或 versions.create 返回的 version;必须是完整 semver,形如 1.2.0,不接受 latest 或范围。
|
|
100002
|
+
*/
|
|
100003
|
+
version: string;
|
|
100004
|
+
/**
|
|
100005
|
+
* 版本内的相对文件路径,取自 contents 返回的 path,可以含斜杠(例如 plugin/skills/review.md);不要以 / 开头。
|
|
100006
|
+
*/
|
|
100007
|
+
path: string;
|
|
100008
|
+
};
|
|
100009
|
+
query?: never;
|
|
100010
|
+
url: '/registry/v1/packages/{package_id}/versions/{version}/files/{path}';
|
|
100011
|
+
};
|
|
100012
|
+
export type RegistryPackagesVersionsFilesRetrieveErrors = {
|
|
100013
|
+
/**
|
|
100014
|
+
* UNAUTHENTICATED 表示缺少或无效的 API key;先带上拥有这个组织的 Praxis API key 再重试。
|
|
100015
|
+
*/
|
|
100016
|
+
401: RegistryRegistryError;
|
|
100017
|
+
/**
|
|
100018
|
+
* NOT_FOUND 表示这个库、包或版本不存在,或属于另一个组织——两种情况故意不区分;用 list 拿到的 id 重试,删除后的资源也会回到这个答案。
|
|
100019
|
+
*/
|
|
100020
|
+
404: RegistryRegistryError;
|
|
100021
|
+
/**
|
|
100022
|
+
* INTERNAL 表示服务没能完成请求;写操作重试前先读一次,确认上一次没有部分生效。
|
|
100023
|
+
*/
|
|
100024
|
+
500: RegistryRegistryError;
|
|
100025
|
+
};
|
|
100026
|
+
export type RegistryPackagesVersionsFilesRetrieveError = RegistryPackagesVersionsFilesRetrieveErrors[keyof RegistryPackagesVersionsFilesRetrieveErrors];
|
|
100027
|
+
export type RegistryPackagesVersionsFilesRetrieveResponses = {
|
|
100028
|
+
/**
|
|
100029
|
+
* 文件内容,逐字节原样返回。
|
|
100030
|
+
*/
|
|
100031
|
+
200: Blob | File;
|
|
100032
|
+
};
|
|
100033
|
+
export type RegistryPackagesVersionsFilesRetrieveResponse = RegistryPackagesVersionsFilesRetrieveResponses[keyof RegistryPackagesVersionsFilesRetrieveResponses];
|
|
100034
|
+
export type RegistryPackagesVersionsArchiveData = {
|
|
100035
|
+
body?: never;
|
|
100036
|
+
path: {
|
|
100037
|
+
/**
|
|
100038
|
+
* 包的标识,来自 repositories.packages.list 或 repositories.packages.create 返回的 id;不要传包名。
|
|
100039
|
+
*/
|
|
100040
|
+
package_id: string;
|
|
100041
|
+
/**
|
|
100042
|
+
* 要读的版本号,来自 versions.list 或 versions.create 返回的 version;必须是完整 semver,形如 1.2.0,不接受 latest 或范围。
|
|
100043
|
+
*/
|
|
100044
|
+
version: string;
|
|
100045
|
+
};
|
|
100046
|
+
query?: never;
|
|
100047
|
+
url: '/registry/v1/packages/{package_id}/versions/{version}/archive';
|
|
100048
|
+
};
|
|
100049
|
+
export type RegistryPackagesVersionsArchiveErrors = {
|
|
100050
|
+
/**
|
|
100051
|
+
* UNAUTHENTICATED 表示缺少或无效的 API key;先带上拥有这个组织的 Praxis API key 再重试。
|
|
100052
|
+
*/
|
|
100053
|
+
401: RegistryRegistryError;
|
|
100054
|
+
/**
|
|
100055
|
+
* NOT_FOUND 表示这个库、包或版本不存在,或属于另一个组织——两种情况故意不区分;用 list 拿到的 id 重试,删除后的资源也会回到这个答案。
|
|
100056
|
+
*/
|
|
100057
|
+
404: RegistryRegistryError;
|
|
100058
|
+
/**
|
|
100059
|
+
* INTERNAL 表示服务没能完成请求;写操作重试前先读一次,确认上一次没有部分生效。
|
|
100060
|
+
*/
|
|
100061
|
+
500: RegistryRegistryError;
|
|
100062
|
+
};
|
|
100063
|
+
export type RegistryPackagesVersionsArchiveError = RegistryPackagesVersionsArchiveErrors[keyof RegistryPackagesVersionsArchiveErrors];
|
|
100064
|
+
export type RegistryPackagesVersionsArchiveResponses = {
|
|
100065
|
+
/**
|
|
100066
|
+
* zip 归档的字节;解压后是发布时的文件集合。
|
|
100067
|
+
*/
|
|
100068
|
+
200: Blob | File;
|
|
100069
|
+
};
|
|
100070
|
+
export type RegistryPackagesVersionsArchiveResponse = RegistryPackagesVersionsArchiveResponses[keyof RegistryPackagesVersionsArchiveResponses];
|
|
100071
|
+
export type RegistryPackagesVersionsWithdrawData = {
|
|
100072
|
+
body?: never;
|
|
100073
|
+
path: {
|
|
100074
|
+
/**
|
|
100075
|
+
* 包的标识,来自 repositories.packages.list 或 repositories.packages.create 返回的 id;不要传包名。
|
|
100076
|
+
*/
|
|
100077
|
+
package_id: string;
|
|
100078
|
+
/**
|
|
100079
|
+
* 要读的版本号,来自 versions.list 或 versions.create 返回的 version;必须是完整 semver,形如 1.2.0,不接受 latest 或范围。
|
|
100080
|
+
*/
|
|
100081
|
+
version: string;
|
|
100082
|
+
};
|
|
100083
|
+
query?: never;
|
|
100084
|
+
url: '/registry/v1/packages/{package_id}/versions/{version}:withdraw';
|
|
100085
|
+
};
|
|
100086
|
+
export type RegistryPackagesVersionsWithdrawErrors = {
|
|
100087
|
+
/**
|
|
100088
|
+
* INVALID_PARAMS 表示字段、查询值或标识不符合文档的格式或范围——库名不合法、版本号不是 semver、archive 与 files 同时给了或缺了、page_size 不在 1 到 100。按消息指出的字段改正后重发。
|
|
100089
|
+
*/
|
|
100090
|
+
400: RegistryRegistryError;
|
|
100091
|
+
/**
|
|
100092
|
+
* UNAUTHENTICATED 表示缺少或无效的 API key;先带上拥有这个组织的 Praxis API key 再重试。
|
|
100093
|
+
*/
|
|
100094
|
+
401: RegistryRegistryError;
|
|
100095
|
+
/**
|
|
100096
|
+
* NOT_FOUND 表示这个库、包或版本不存在,或属于另一个组织——两种情况故意不区分;用 list 拿到的 id 重试,删除后的资源也会回到这个答案。
|
|
100097
|
+
*/
|
|
100098
|
+
404: RegistryRegistryError;
|
|
100099
|
+
/**
|
|
100100
|
+
* FAILED_PRECONDITION 表示当前状态不允许这个操作——删默认库、删非空的库、发布不高于已发布最高版本的版本、撤回已经撤回的版本、安装已撤回的版本、插件装非最新版、技能同名冲突或已满 20 个。先按消息指出的条件调整(清空库、抬版本号、换未撤回的版本)再试。
|
|
100101
|
+
*/
|
|
100102
|
+
409: RegistryRegistryError;
|
|
100103
|
+
/**
|
|
100104
|
+
* INTERNAL 表示服务没能完成请求;写操作重试前先读一次,确认上一次没有部分生效。
|
|
100105
|
+
*/
|
|
100106
|
+
500: RegistryRegistryError;
|
|
100107
|
+
};
|
|
100108
|
+
export type RegistryPackagesVersionsWithdrawError = RegistryPackagesVersionsWithdrawErrors[keyof RegistryPackagesVersionsWithdrawErrors];
|
|
100109
|
+
export type RegistryPackagesVersionsWithdrawResponses = {
|
|
100110
|
+
/**
|
|
100111
|
+
* 撤回后的版本,withdrawn 为 true,并带 withdraw_time。
|
|
100112
|
+
*/
|
|
100113
|
+
200: RegistryVersion;
|
|
100114
|
+
};
|
|
100115
|
+
export type RegistryPackagesVersionsWithdrawResponse = RegistryPackagesVersionsWithdrawResponses[keyof RegistryPackagesVersionsWithdrawResponses];
|
|
100116
|
+
export type RegistryPackagesInstallationsListData = {
|
|
100117
|
+
body?: never;
|
|
100118
|
+
path: {
|
|
100119
|
+
/**
|
|
100120
|
+
* 包的标识,来自 repositories.packages.list 或 repositories.packages.create 返回的 id;不要传包名。
|
|
100121
|
+
*/
|
|
100122
|
+
package_id: string;
|
|
100123
|
+
};
|
|
100124
|
+
query?: never;
|
|
100125
|
+
url: '/registry/v1/packages/{package_id}/installations';
|
|
100126
|
+
};
|
|
100127
|
+
export type RegistryPackagesInstallationsListErrors = {
|
|
100128
|
+
/**
|
|
100129
|
+
* UNAUTHENTICATED 表示缺少或无效的 API key;先带上拥有这个组织的 Praxis API key 再重试。
|
|
100130
|
+
*/
|
|
100131
|
+
401: RegistryRegistryError;
|
|
100132
|
+
/**
|
|
100133
|
+
* NOT_FOUND 表示这个库、包或版本不存在,或属于另一个组织——两种情况故意不区分;用 list 拿到的 id 重试,删除后的资源也会回到这个答案。
|
|
100134
|
+
*/
|
|
100135
|
+
404: RegistryRegistryError;
|
|
100136
|
+
/**
|
|
100137
|
+
* INTERNAL 表示服务没能完成请求;写操作重试前先读一次,确认上一次没有部分生效。
|
|
100138
|
+
*/
|
|
100139
|
+
500: RegistryRegistryError;
|
|
100140
|
+
};
|
|
100141
|
+
export type RegistryPackagesInstallationsListError = RegistryPackagesInstallationsListErrors[keyof RegistryPackagesInstallationsListErrors];
|
|
100142
|
+
export type RegistryPackagesInstallationsListResponses = {
|
|
100143
|
+
/**
|
|
100144
|
+
* 这个包的全部安装记录,每条带对账后的 state。
|
|
100145
|
+
*/
|
|
100146
|
+
200: RegistryInstallationList;
|
|
100147
|
+
};
|
|
100148
|
+
export type RegistryPackagesInstallationsListResponse = RegistryPackagesInstallationsListResponses[keyof RegistryPackagesInstallationsListResponses];
|
|
100149
|
+
export type RegistryPackagesInstallationsCreateData = {
|
|
100150
|
+
/**
|
|
100151
|
+
* 安装目标和版本;技能只用 agent_ids,插件只用 computer_ids,给错或缺失会 400。
|
|
100152
|
+
*/
|
|
100153
|
+
body: RegistryInstallInput;
|
|
100154
|
+
path: {
|
|
100155
|
+
/**
|
|
100156
|
+
* 包的标识,来自 repositories.packages.list 或 repositories.packages.create 返回的 id;不要传包名。
|
|
100157
|
+
*/
|
|
100158
|
+
package_id: string;
|
|
100159
|
+
};
|
|
100160
|
+
query?: never;
|
|
100161
|
+
url: '/registry/v1/packages/{package_id}/installations';
|
|
100162
|
+
};
|
|
100163
|
+
export type RegistryPackagesInstallationsCreateErrors = {
|
|
100164
|
+
/**
|
|
100165
|
+
* INVALID_PARAMS 表示字段、查询值或标识不符合文档的格式或范围——库名不合法、版本号不是 semver、archive 与 files 同时给了或缺了、page_size 不在 1 到 100。按消息指出的字段改正后重发。
|
|
100166
|
+
*/
|
|
100167
|
+
400: RegistryRegistryError;
|
|
100168
|
+
/**
|
|
100169
|
+
* UNAUTHENTICATED 表示缺少或无效的 API key;先带上拥有这个组织的 Praxis API key 再重试。
|
|
100170
|
+
*/
|
|
100171
|
+
401: RegistryRegistryError;
|
|
100172
|
+
/**
|
|
100173
|
+
* NOT_FOUND 表示这个库、包或版本不存在,或属于另一个组织——两种情况故意不区分;用 list 拿到的 id 重试,删除后的资源也会回到这个答案。
|
|
100174
|
+
*/
|
|
100175
|
+
404: RegistryRegistryError;
|
|
100176
|
+
/**
|
|
100177
|
+
* FAILED_PRECONDITION 表示当前状态不允许这个操作——删默认库、删非空的库、发布不高于已发布最高版本的版本、撤回已经撤回的版本、安装已撤回的版本、插件装非最新版、技能同名冲突或已满 20 个。先按消息指出的条件调整(清空库、抬版本号、换未撤回的版本)再试。
|
|
100178
|
+
*/
|
|
100179
|
+
409: RegistryRegistryError;
|
|
100180
|
+
/**
|
|
100181
|
+
* INTERNAL 表示服务没能完成请求;写操作重试前先读一次,确认上一次没有部分生效。
|
|
100182
|
+
*/
|
|
100183
|
+
500: RegistryRegistryError;
|
|
100184
|
+
};
|
|
100185
|
+
export type RegistryPackagesInstallationsCreateError = RegistryPackagesInstallationsCreateErrors[keyof RegistryPackagesInstallationsCreateErrors];
|
|
100186
|
+
export type RegistryPackagesInstallationsCreateResponses = {
|
|
100187
|
+
/**
|
|
100188
|
+
* 成功装上的安装记录,以及没装成的目标;errors 为空数组表示全部成功。
|
|
100189
|
+
*/
|
|
100190
|
+
201: RegistryInstallResult;
|
|
100191
|
+
};
|
|
100192
|
+
export type RegistryPackagesInstallationsCreateResponse = RegistryPackagesInstallationsCreateResponses[keyof RegistryPackagesInstallationsCreateResponses];
|
|
100193
|
+
export type RegistryInstallationsUpdateData = {
|
|
100194
|
+
/**
|
|
100195
|
+
* 要换到的版本;可以是空对象 {},表示换到最新版。
|
|
100196
|
+
*/
|
|
100197
|
+
body: RegistryInstallationUpdateInput;
|
|
100198
|
+
path: {
|
|
100199
|
+
/**
|
|
100200
|
+
* 安装记录的标识,来自 packages.installations.list 或 packages.installations.create 返回的 id(ins_ 开头);不要传包或目标的 id。
|
|
100201
|
+
*/
|
|
100202
|
+
installation_id: string;
|
|
100203
|
+
};
|
|
100204
|
+
query?: never;
|
|
100205
|
+
url: '/registry/v1/installations/{installation_id}:update';
|
|
100206
|
+
};
|
|
100207
|
+
export type RegistryInstallationsUpdateErrors = {
|
|
100208
|
+
/**
|
|
100209
|
+
* INVALID_PARAMS 表示字段、查询值或标识不符合文档的格式或范围——库名不合法、版本号不是 semver、archive 与 files 同时给了或缺了、page_size 不在 1 到 100。按消息指出的字段改正后重发。
|
|
100210
|
+
*/
|
|
100211
|
+
400: RegistryRegistryError;
|
|
100212
|
+
/**
|
|
100213
|
+
* UNAUTHENTICATED 表示缺少或无效的 API key;先带上拥有这个组织的 Praxis API key 再重试。
|
|
100214
|
+
*/
|
|
100215
|
+
401: RegistryRegistryError;
|
|
100216
|
+
/**
|
|
100217
|
+
* NOT_FOUND 表示这个库、包或版本不存在,或属于另一个组织——两种情况故意不区分;用 list 拿到的 id 重试,删除后的资源也会回到这个答案。
|
|
100218
|
+
*/
|
|
100219
|
+
404: RegistryRegistryError;
|
|
100220
|
+
/**
|
|
100221
|
+
* FAILED_PRECONDITION 表示当前状态不允许这个操作——删默认库、删非空的库、发布不高于已发布最高版本的版本、撤回已经撤回的版本、安装已撤回的版本、插件装非最新版、技能同名冲突或已满 20 个。先按消息指出的条件调整(清空库、抬版本号、换未撤回的版本)再试。
|
|
100222
|
+
*/
|
|
100223
|
+
409: RegistryRegistryError;
|
|
100224
|
+
/**
|
|
100225
|
+
* INTERNAL 表示服务没能完成请求;写操作重试前先读一次,确认上一次没有部分生效。
|
|
100226
|
+
*/
|
|
100227
|
+
500: RegistryRegistryError;
|
|
100228
|
+
};
|
|
100229
|
+
export type RegistryInstallationsUpdateError = RegistryInstallationsUpdateErrors[keyof RegistryInstallationsUpdateErrors];
|
|
100230
|
+
export type RegistryInstallationsUpdateResponses = {
|
|
100231
|
+
/**
|
|
100232
|
+
* 换版本后的安装记录,state 为 installed。
|
|
100233
|
+
*/
|
|
100234
|
+
200: RegistryInstallation;
|
|
100235
|
+
};
|
|
100236
|
+
export type RegistryInstallationsUpdateResponse = RegistryInstallationsUpdateResponses[keyof RegistryInstallationsUpdateResponses];
|
|
100237
|
+
export type RegistryInstallationsDeleteData = {
|
|
100238
|
+
body?: never;
|
|
100239
|
+
path: {
|
|
100240
|
+
/**
|
|
100241
|
+
* 安装记录的标识,来自 packages.installations.list 或 packages.installations.create 返回的 id(ins_ 开头);不要传包或目标的 id。
|
|
100242
|
+
*/
|
|
100243
|
+
installation_id: string;
|
|
100244
|
+
};
|
|
100245
|
+
query?: never;
|
|
100246
|
+
url: '/registry/v1/installations/{installation_id}';
|
|
100247
|
+
};
|
|
100248
|
+
export type RegistryInstallationsDeleteErrors = {
|
|
100249
|
+
/**
|
|
100250
|
+
* UNAUTHENTICATED 表示缺少或无效的 API key;先带上拥有这个组织的 Praxis API key 再重试。
|
|
100251
|
+
*/
|
|
100252
|
+
401: RegistryRegistryError;
|
|
100253
|
+
/**
|
|
100254
|
+
* NOT_FOUND 表示这个库、包或版本不存在,或属于另一个组织——两种情况故意不区分;用 list 拿到的 id 重试,删除后的资源也会回到这个答案。
|
|
100255
|
+
*/
|
|
100256
|
+
404: RegistryRegistryError;
|
|
100257
|
+
/**
|
|
100258
|
+
* FAILED_PRECONDITION 表示当前状态不允许这个操作——删默认库、删非空的库、发布不高于已发布最高版本的版本、撤回已经撤回的版本、安装已撤回的版本、插件装非最新版、技能同名冲突或已满 20 个。先按消息指出的条件调整(清空库、抬版本号、换未撤回的版本)再试。
|
|
100259
|
+
*/
|
|
100260
|
+
409: RegistryRegistryError;
|
|
100261
|
+
/**
|
|
100262
|
+
* INTERNAL 表示服务没能完成请求;写操作重试前先读一次,确认上一次没有部分生效。
|
|
100263
|
+
*/
|
|
100264
|
+
500: RegistryRegistryError;
|
|
100265
|
+
};
|
|
100266
|
+
export type RegistryInstallationsDeleteError = RegistryInstallationsDeleteErrors[keyof RegistryInstallationsDeleteErrors];
|
|
100267
|
+
export type RegistryInstallationsDeleteResponses = {
|
|
100268
|
+
/**
|
|
100269
|
+
* 确认删除的对象:被删安装记录的 id、object 和 deleted 标记。
|
|
100270
|
+
*/
|
|
100271
|
+
200: RegistryDeletedInstallation;
|
|
100272
|
+
};
|
|
100273
|
+
export type RegistryInstallationsDeleteResponse = RegistryInstallationsDeleteResponses[keyof RegistryInstallationsDeleteResponses];
|
|
98767
100274
|
export type GetSandboxV1SandboxesData = {
|
|
98768
100275
|
body?: never;
|
|
98769
100276
|
path?: never;
|