@deepraxis/sdk 0.1.1-dev.53bfbed → 0.1.1-dev.54060c3
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 +37 -1
- package/dist/generated/index.d.ts +2 -2
- package/dist/generated/index.js +1 -1
- package/dist/generated/sdk.gen.d.ts +47 -11
- package/dist/generated/sdk.gen.js +102 -10
- package/dist/generated/types.gen.d.ts +631 -23
- package/dist/operations.generated.js +236 -16
- package/dist/resources.generated.d.ts +18 -0
- package/dist/resources.generated.js +18 -0
- package/package.json +1 -1
|
@@ -402,7 +402,7 @@ export const updateAgentEmbedPolicy = (options) => (options.client ?? client).po
|
|
|
402
402
|
*
|
|
403
403
|
* List the computers of your organization, archived ones included.
|
|
404
404
|
*
|
|
405
|
-
* Praxis extension: MA only has session-scoped temporary containers and memory_stores, not durable browsable computers. Archived files remain readable, but new sessions cannot bind them. environment_id is an optional recipe reference;
|
|
405
|
+
* Praxis extension: MA only has session-scoped temporary containers and memory_stores, not durable browsable computers. Archived files remain readable, but new sessions cannot bind them. environment_id is an optional recipe reference; a computer starts on first use and exposes the public SDK sandbox_id. Lists include archived computers.
|
|
406
406
|
*/
|
|
407
407
|
export const computersList = (options) => (options?.client ?? client).get({
|
|
408
408
|
security: [{
|
|
@@ -422,7 +422,7 @@ export const computersList = (options) => (options?.client ?? client).get({
|
|
|
422
422
|
*
|
|
423
423
|
* Create a durable computer: a named machine whose files outlive sessions, for general agents.
|
|
424
424
|
*
|
|
425
|
-
* Praxis extension: MA only has session-scoped temporary containers and memory_stores, not durable browsable computers. Archived files remain readable, but new sessions cannot bind them. environment_id is an optional recipe reference;
|
|
425
|
+
* Praxis extension: MA only has session-scoped temporary containers and memory_stores, not durable browsable computers. Archived files remain readable, but new sessions cannot bind them. environment_id is an optional recipe reference; a computer starts on first use and exposes the public SDK sandbox_id. Lists include archived computers.
|
|
426
426
|
*/
|
|
427
427
|
export const computersCreate = (options) => (options.client ?? client).post({
|
|
428
428
|
security: [{
|
|
@@ -466,7 +466,7 @@ export const computersDelete = (options) => (options.client ?? client).delete({
|
|
|
466
466
|
*
|
|
467
467
|
* Read one computer's status, storage use and sandbox id.
|
|
468
468
|
*
|
|
469
|
-
* Praxis extension: MA only has session-scoped temporary containers and memory_stores, not durable browsable computers. Archived files remain readable, but new sessions cannot bind them. environment_id is an optional recipe reference;
|
|
469
|
+
* Praxis extension: MA only has session-scoped temporary containers and memory_stores, not durable browsable computers. Archived files remain readable, but new sessions cannot bind them. environment_id is an optional recipe reference; a computer starts on first use and exposes the public SDK sandbox_id. Lists include archived computers.
|
|
470
470
|
*/
|
|
471
471
|
export const computersRetrieve = (options) => (options.client ?? client).get({
|
|
472
472
|
security: [{
|
|
@@ -486,7 +486,7 @@ export const computersRetrieve = (options) => (options.client ?? client).get({
|
|
|
486
486
|
*
|
|
487
487
|
* Rename a computer.
|
|
488
488
|
*
|
|
489
|
-
* Praxis extension: MA only has session-scoped temporary containers and memory_stores, not durable browsable computers. Archived files remain readable, but new sessions cannot bind them. environment_id is an optional recipe reference;
|
|
489
|
+
* Praxis extension: MA only has session-scoped temporary containers and memory_stores, not durable browsable computers. Archived files remain readable, but new sessions cannot bind them. environment_id is an optional recipe reference; a computer starts on first use and exposes the public SDK sandbox_id. Lists include archived computers.
|
|
490
490
|
*/
|
|
491
491
|
export const computersUpdate = (options) => (options.client ?? client).post({
|
|
492
492
|
security: [{
|
|
@@ -510,7 +510,7 @@ export const computersUpdate = (options) => (options.client ?? client).post({
|
|
|
510
510
|
*
|
|
511
511
|
* Archive a computer: its files stay readable but new sessions cannot use it.
|
|
512
512
|
*
|
|
513
|
-
* Praxis extension: MA only has session-scoped temporary containers and memory_stores, not durable browsable computers. Archived files remain readable, but new sessions cannot bind them. environment_id is an optional recipe reference;
|
|
513
|
+
* Praxis extension: MA only has session-scoped temporary containers and memory_stores, not durable browsable computers. Archived files remain readable, but new sessions cannot bind them. environment_id is an optional recipe reference; a computer starts on first use and exposes the public SDK sandbox_id. Lists include archived computers. A computer an active agent holds is refused with 409 COMPUTER_IN_USE; archive the agent first.
|
|
514
514
|
*/
|
|
515
515
|
export const computersArchive = (options) => (options.client ?? client).post({
|
|
516
516
|
security: [{
|
|
@@ -555,7 +555,7 @@ export const computersAttachmentsCreate = (options) => (options.client ?? client
|
|
|
555
555
|
*
|
|
556
556
|
* List the entries of one directory on a computer.
|
|
557
557
|
*
|
|
558
|
-
* Praxis extension: MA only has session-scoped temporary containers and memory_stores, not durable browsable computers. Archived files remain readable, but new sessions cannot bind them. environment_id is an optional recipe reference;
|
|
558
|
+
* Praxis extension: MA only has session-scoped temporary containers and memory_stores, not durable browsable computers. Archived files remain readable, but new sessions cannot bind them. environment_id is an optional recipe reference; a computer starts on first use and exposes the public SDK sandbox_id. Lists include archived computers.
|
|
559
559
|
*/
|
|
560
560
|
export const computersFilesList = (options) => (options.client ?? client).get({
|
|
561
561
|
security: [{
|
|
@@ -575,7 +575,7 @@ export const computersFilesList = (options) => (options.client ?? client).get({
|
|
|
575
575
|
*
|
|
576
576
|
* Download the bytes of one file on a computer, up to 16 MiB, with single-range support.
|
|
577
577
|
*
|
|
578
|
-
* Praxis extension: MA only has session-scoped temporary containers and memory_stores, not durable browsable computers. Archived files remain readable, but new sessions cannot bind them. environment_id is an optional recipe reference;
|
|
578
|
+
* Praxis extension: MA only has session-scoped temporary containers and memory_stores, not durable browsable computers. Archived files remain readable, but new sessions cannot bind them. environment_id is an optional recipe reference; a computer starts on first use and exposes the public SDK sandbox_id. Lists include archived computers.
|
|
579
579
|
*/
|
|
580
580
|
export const computersFilesContent = (options) => (options.client ?? client).get({
|
|
581
581
|
security: [{
|
|
@@ -3943,7 +3943,7 @@ export const agentsList = (options) => (options?.client ?? client).get({
|
|
|
3943
3943
|
/**
|
|
3944
3944
|
* Create agent
|
|
3945
3945
|
*
|
|
3946
|
-
* Create a reusable agent definition, then pass its returned id to sessions.create to start a conversation. The definition includes model, system prompt, tools, MCP servers and an optional multiagent roster. It is saved as version 1; real updates create new versions. skills attaches uploaded custom skills as [{type: "custom", skill_id, version?}] (skill_id from skills.create or skills.list; at most 20, no repeated skill_id). Omit version, or send "latest", to use the skill's newest version when a session starts. type anthropic returns 400. Use tools: [{type: "agent_toolset_20260401"}] for built-in tools including codemode, skill and agent; inspect toolsets.list for names and schemas, and keep bash enabled for native additions. To offer only some tools, set default_config: {enabled: false} and list the tools to keep in configs, e.g. tools: [{type: "agent_toolset_20260401", default_config: {enabled: false}, configs: [{name: "codemode", enabled: true}, {name: "bash", enabled: true, permission_policy: {type: "always_ask"}}]}]; every tool not listed, including todo_write, ask_user_question and goal_read, follows default_config, and the response echoes it. codemode runs through bash, so enabling codemode while bash is disabled returns 400. Optional mcp_toolset entries pair with mcp_servers. model accepts platform model IDs such as deepseek-flash, not only the Claude IDs in the protocol examples. model.settings.reasoning sets default thinking; other extra model controls return 400. model and every models.allowed entry must be a catalog model that can run an agent: an unknown id returns 400 "model <id> is not in the model catalog" and an embedding, image or speech model returns 400 "model <id> cannot run an agent". name is a label, not a unique key: 1 to 256 characters after trimming, no NUL or line breaks. avatar is trimmed, must not contain spaces or point at a loopback, private or internal host, and its scheme is stored in lowercase. script and workflow binding ids are stored in lowercase, the form automation matches; bindings together with environment_id null return 400 because bindings need a machine. Example: {"name":"helper","model":{"id":"deepseek-flash"},"tools":[{"type":"agent_toolset_20260401"}]}. kind defaults to service when it is omitted and no computer_id is given, and to general when computer_id is given; it cannot change after creation.
|
|
3946
|
+
* Create a reusable agent definition, then pass its returned id to sessions.create to start a conversation. Omit kind to create a service agent (Managed Agents behaviour: a fresh environment per session). Pass kind: "general" for an employee-style agent with its own computer, created with it; size and template come from the agent's computers configuration. The definition includes model, system prompt, tools, MCP servers and an optional multiagent roster. It is saved as version 1; real updates create new versions. skills attaches uploaded custom skills as [{type: "custom", skill_id, version?}] (skill_id from skills.create or skills.list; at most 20, no repeated skill_id). Omit version, or send "latest", to use the skill's newest version when a session starts. type anthropic returns 400. Use tools: [{type: "agent_toolset_20260401"}] for built-in tools including codemode, skill and agent; inspect toolsets.list for names and schemas, and keep bash enabled for native additions. To offer only some tools, set default_config: {enabled: false} and list the tools to keep in configs, e.g. tools: [{type: "agent_toolset_20260401", default_config: {enabled: false}, configs: [{name: "codemode", enabled: true}, {name: "bash", enabled: true, permission_policy: {type: "always_ask"}}]}]; every tool not listed, including todo_write, ask_user_question and goal_read, follows default_config, and the response echoes it. codemode runs through bash, so enabling codemode while bash is disabled returns 400. Optional mcp_toolset entries pair with mcp_servers. model accepts platform model IDs such as deepseek-flash, not only the Claude IDs in the protocol examples. model.settings.reasoning sets default thinking; other extra model controls return 400. model and every models.allowed entry must be a catalog model that can run an agent: an unknown id returns 400 "model <id> is not in the model catalog" and an embedding, image or speech model returns 400 "model <id> cannot run an agent". name is a label, not a unique key: 1 to 256 characters after trimming, no NUL or line breaks. avatar is trimmed, must not contain spaces or point at a loopback, private or internal host, and its scheme is stored in lowercase. script and workflow binding ids are stored in lowercase, the form automation matches; bindings together with environment_id null return 400 because bindings need a machine. Example: {"name":"helper","model":{"id":"deepseek-flash"},"tools":[{"type":"agent_toolset_20260401"}]}. kind defaults to service when it is omitted and no computer_id is given, and to general when computer_id is given; it cannot change after creation. A general or assume agent created without computer_id gets a new computer registered in the same request, named after the agent; a service agent with computer_id returns 400. For kind assume, provide name without model, models, subagent_model, subagents or multiagent; vault_ids are accepted, bindings and environment_id are refused. Drive assume agents over MCP at /agent/v1/agents/{id}/mcp.
|
|
3947
3947
|
*/
|
|
3948
3948
|
export const agentsCreate = (options) => (options.client ?? client).post({
|
|
3949
3949
|
security: [{
|
|
@@ -11349,7 +11349,7 @@ export const mediaGenerateVideo = (options) => (options.client ?? client).post({
|
|
|
11349
11349
|
/**
|
|
11350
11350
|
* Edit asset
|
|
11351
11351
|
*
|
|
11352
|
-
* Change an existing asset and store the result as a new asset; the source is never overwritten. {library_id} also accepts default, the organization’s default library. The body is operation (its type selects the edit and carries that edit’s own fields) plus optional model, asset_folder, understanding and idempotency_key. Edits by material: on an image, variations (near copies of a take you like), inpaint (mask, a PNG File id beginning with file-, whose transparent area is replaced by what prompt describes), erase, replace_object, recolor, replace_background, remove_background, upscale and talking_avatar (the portrait speaks a recording of the same library); on a video, upscale, reframe, redact, trim, mute, crop, erase (removes burned-in subtitles, captions and corner watermarks, found automatically or inside the boxes given), replace_person (puts the person of an image of the same library in place of the video’s person), lip_sync (re-syncs the lips to a recording of the same library), animate_person (an image of the same library performs the video’s motion) and remove_background; on a recording or a video’s audio, enhance_voice; and to_video, frame and resynthesize on the material each takes. Any other type answers OPERATION_NOT_SUPPORTED, and an edit that does not fit the source’s material answers REFERENCE_TYPE_MISMATCH. Video and audio edits take their model from the platform catalogue (override with operation.model); an edit whose catalogue is empty answers OPERATION_NOT_SUPPORTED, 尚未上架. remove_background on a video makes a portrait matte: output mask is a small black-and-white video to use as a Cut track mask (the choice for compositing), output alpha (the default) a transparent ProRes 4444 file of about 870 MB per 15 s of 1080p, for when the transparent file itself is the deliverable; pick model from types.matting.models of the generation capabilities. output and model on an image source answer INVALID_PARAMS. The new asset records the source in derived_from; assets.lineage reads the whole edit chain. Charges are at the model API prices (video and audio edits per second of input) and appear in the Job’s usage; repeating the same edit of the same source answers the asset already made instead of paying again. The response is 202 with a queued Job whose source_asset_id is the edited asset; poll GET /media/v1/libraries/{library_id}/jobs/{job_id}, give the output’s viewer_url to the person and tell them usage.
|
|
11352
|
+
* Change an existing asset and store the result as a new asset; the source is never overwritten. {library_id} also accepts default, the organization’s default library. The body is operation (its type selects the edit and carries that edit’s own fields) plus optional model, asset_folder, understanding and idempotency_key. Edits by material: on an image, variations (near copies of a take you like), inpaint (mask, a PNG File id beginning with file-, whose transparent area is replaced by what prompt describes), erase, replace_object, recolor, replace_background, remove_background, upscale and talking_avatar (the portrait speaks a recording of the same library); on a video, upscale, reframe, redact, trim, mute, crop, extract_audio (pulls the sound out of a video as its own audio asset), erase (removes burned-in subtitles, captions and corner watermarks, found automatically or inside the boxes given), replace_person (puts the person of an image of the same library in place of the video’s person), lip_sync (re-syncs the lips to a recording of the same library), animate_person (an image of the same library performs the video’s motion), edit_video (the video changed by a one-line instruction, optionally guided by one image of the same library) and remove_background; on a recording or a video’s audio, enhance_voice; and to_video, frame and resynthesize on the material each takes. Any other type answers OPERATION_NOT_SUPPORTED, and an edit that does not fit the source’s material answers REFERENCE_TYPE_MISMATCH. Video and audio edits take their model from the platform catalogue (override with operation.model; extract_audio takes no model, it has exactly one function); an edit whose catalogue is empty answers OPERATION_NOT_SUPPORTED, 尚未上架. remove_background on a video makes a portrait matte: output mask is a small black-and-white video to use as a Cut track mask (the choice for compositing), output alpha (the default) a transparent ProRes 4444 file of about 870 MB per 15 s of 1080p, for when the transparent file itself is the deliverable; pick model from types.matting.models of the generation capabilities. output and model on an image source answer INVALID_PARAMS. The new asset records the source in derived_from; assets.lineage reads the whole edit chain. Charges are at the model API prices (video and audio edits per second of input) and appear in the Job’s usage; repeating the same edit of the same source answers the asset already made instead of paying again. The response is 202 with a queued Job whose source_asset_id is the edited asset; poll GET /media/v1/libraries/{library_id}/jobs/{job_id}, give the output’s viewer_url to the person and tell them usage.
|
|
11353
11353
|
*/
|
|
11354
11354
|
export const mediaEditAsset = (options) => (options.client ?? client).post({
|
|
11355
11355
|
security: [{
|
|
@@ -11552,6 +11552,42 @@ export const mediaRequestHlsRenditions = (options) => (options.client ?? client)
|
|
|
11552
11552
|
...options.headers
|
|
11553
11553
|
}
|
|
11554
11554
|
});
|
|
11555
|
+
/**
|
|
11556
|
+
* Create voice
|
|
11557
|
+
*
|
|
11558
|
+
* Create a voice for this library and start the clone that makes it speakable. Send exactly one of the two shapes: consent_id with samples (a real person’s recordings, a consented voice) or design_asset_id (a preview the voice-design run produced in this library, a generated voice). Sending both, or neither, is refused with INVALID_PARAMS, and origin is written by the platform only. Answers 202 with a job to poll; the voice exists as soon as the job is created and its clone follows.
|
|
11559
|
+
*/
|
|
11560
|
+
export const mediaCreateVoice = (options) => (options.client ?? client).post({
|
|
11561
|
+
security: [{
|
|
11562
|
+
key: 'media-BearerAuth',
|
|
11563
|
+
scheme: 'bearer',
|
|
11564
|
+
type: 'http'
|
|
11565
|
+
}],
|
|
11566
|
+
url: '/media/v1/libraries/{library_id}/voices',
|
|
11567
|
+
...options,
|
|
11568
|
+
headers: {
|
|
11569
|
+
'Content-Type': 'application/json',
|
|
11570
|
+
...options.headers
|
|
11571
|
+
}
|
|
11572
|
+
});
|
|
11573
|
+
/**
|
|
11574
|
+
* Design a voice
|
|
11575
|
+
*
|
|
11576
|
+
* Design a voice from a text description. The model makes count preview recordings (default 3), each stored in this library as an audio asset; listen, then create a voice whose design_asset_id names the preview you chose. Send description (1 to 500 characters), preview_text (15 to 200 characters, the line each preview speaks), language (zh or en) and optionally count (1 to 3). A description that fails review fails the slot with CONTENT_REJECTED and is never retried, so changing the words is the fix. Answers 202 with a job to poll.
|
|
11577
|
+
*/
|
|
11578
|
+
export const mediaDesignVoice = (options) => (options.client ?? client).post({
|
|
11579
|
+
security: [{
|
|
11580
|
+
key: 'media-BearerAuth',
|
|
11581
|
+
scheme: 'bearer',
|
|
11582
|
+
type: 'http'
|
|
11583
|
+
}],
|
|
11584
|
+
url: '/media/v1/libraries/{library_id}/voices/designs',
|
|
11585
|
+
...options,
|
|
11586
|
+
headers: {
|
|
11587
|
+
'Content-Type': 'application/json',
|
|
11588
|
+
...options.headers
|
|
11589
|
+
}
|
|
11590
|
+
});
|
|
11555
11591
|
/**
|
|
11556
11592
|
* List types
|
|
11557
11593
|
*
|
|
@@ -11908,7 +11944,7 @@ export const registryRepositoriesPackagesCreate = (options) => (options.client ?
|
|
|
11908
11944
|
/**
|
|
11909
11945
|
* Retrieve package
|
|
11910
11946
|
*
|
|
11911
|
-
* 读一个包的元数据:种类、所属库、当前 latest_version、作者、标签和累计下载量。package_id 来自 packages.list 或 packages.create;另一个组织或不存在都返回 404
|
|
11947
|
+
* 读一个包的元数据:种类、所属库、当前 latest_version、作者、标签和累计下载量。package_id 来自 packages.list 或 packages.create;另一个组织或不存在都返回 404。软删期间这个包一律 404,恢复后才重新出现。
|
|
11912
11948
|
*/
|
|
11913
11949
|
export const registryPackagesRetrieve = (options) => (options.client ?? client).get({
|
|
11914
11950
|
security: [{
|
|
@@ -11952,6 +11988,62 @@ export const registryPackagesVersionsCreate = (options) => (options.client ?? cl
|
|
|
11952
11988
|
...options.headers
|
|
11953
11989
|
}
|
|
11954
11990
|
});
|
|
11991
|
+
/**
|
|
11992
|
+
* List commits
|
|
11993
|
+
*
|
|
11994
|
+
* 列出一个 git 包的提交历史,最新的在前。ref 不给就是包的默认分支;limit 与 offset 分页,has_more 为 true 表示还有下一页。只读:提交只能通过 git 协议推送(clone 地址在包的 clone_url)。OCI 包没有 git 读接口,返回 404。
|
|
11995
|
+
*/
|
|
11996
|
+
export const registryGitLog = (options) => (options.client ?? client).get({
|
|
11997
|
+
security: [{
|
|
11998
|
+
key: 'registry-bearerAuth',
|
|
11999
|
+
scheme: 'bearer',
|
|
12000
|
+
type: 'http'
|
|
12001
|
+
}],
|
|
12002
|
+
url: '/registry/v1/packages/{package_id}/git/log',
|
|
12003
|
+
...options
|
|
12004
|
+
});
|
|
12005
|
+
/**
|
|
12006
|
+
* Read a commit
|
|
12007
|
+
*
|
|
12008
|
+
* 按对象 id 读一个提交(完整 sha,不解析缩写)。返回提交信息、作者、提交时间与父提交。仓库里没有这个对象返回 404。
|
|
12009
|
+
*/
|
|
12010
|
+
export const registryGitCommitsRetrieve = (options) => (options.client ?? client).get({
|
|
12011
|
+
security: [{
|
|
12012
|
+
key: 'registry-bearerAuth',
|
|
12013
|
+
scheme: 'bearer',
|
|
12014
|
+
type: 'http'
|
|
12015
|
+
}],
|
|
12016
|
+
url: '/registry/v1/packages/{package_id}/git/commits/{sha}',
|
|
12017
|
+
...options
|
|
12018
|
+
});
|
|
12019
|
+
/**
|
|
12020
|
+
* List a tree
|
|
12021
|
+
*
|
|
12022
|
+
* 读一个树对象(或一个提交的根树)的条目:名字、类型(blob / tree / commit)、模式、对象 id,以及已知时的大小。只列这一层,不递归。
|
|
12023
|
+
*/
|
|
12024
|
+
export const registryGitTreesRetrieve = (options) => (options.client ?? client).get({
|
|
12025
|
+
security: [{
|
|
12026
|
+
key: 'registry-bearerAuth',
|
|
12027
|
+
scheme: 'bearer',
|
|
12028
|
+
type: 'http'
|
|
12029
|
+
}],
|
|
12030
|
+
url: '/registry/v1/packages/{package_id}/git/trees/{sha}',
|
|
12031
|
+
...options
|
|
12032
|
+
});
|
|
12033
|
+
/**
|
|
12034
|
+
* Download a file from a ref
|
|
12035
|
+
*
|
|
12036
|
+
* 按引用读一个文件的原始字节。path 是仓库内相对路径,可以含斜杠;ref 不给就是默认分支。文件超过 4 MiB 返回 413,改用 git 协议取。路径不是文件或引用不存在返回 404。
|
|
12037
|
+
*/
|
|
12038
|
+
export const registryGitFilesRetrieve = (options) => (options.client ?? client).get({
|
|
12039
|
+
security: [{
|
|
12040
|
+
key: 'registry-bearerAuth',
|
|
12041
|
+
scheme: 'bearer',
|
|
12042
|
+
type: 'http'
|
|
12043
|
+
}],
|
|
12044
|
+
url: '/registry/v1/packages/{package_id}/git/files/{path}',
|
|
12045
|
+
...options
|
|
12046
|
+
});
|
|
11955
12047
|
/**
|
|
11956
12048
|
* List version contents
|
|
11957
12049
|
*
|