@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.
@@ -61,7 +61,7 @@ export const operations = [
61
61
  "resource": "agent.agents",
62
62
  "method": "create",
63
63
  "summary": "Create agent",
64
- "description": "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. For kind assume, provide name without model, models, subagent_model, subagents or multiagent; omit computer_id to register a new computer named after the agent without starting an instance, or provide an existing computer_id; vault_ids are accepted, bindings and environment_id are refused. Drive assume agents over MCP at /agent/v1/agents/{id}/mcp.",
64
+ "description": "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.",
65
65
  "http": "POST",
66
66
  "path": "/agent/v1/agents",
67
67
  "streaming": "no",
@@ -144,7 +144,7 @@ export const operations = [
144
144
  "assume"
145
145
  ],
146
146
  "required": false,
147
- "description": "Immutable agent kind. general requires computer_id; on creation, assume may omit computer_id to register a new computer named after the agent, without starting an instance; assume has no conversation model and rejects model, models, subagent_model, subagents and multiagent; 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."
147
+ "description": "Immutable agent kind. general uses a durable computer and acts for its owner; service uses a clean environment per session; assume is driven over MCP with a durable computer and no conversation model. Omit on create to infer from computer_id (general with a computer, service without). A general or assume agent created without computer_id registers a new computer named after the agent in the same request; a service agent cannot take computer_id. assume rejects model, models, subagent_model, subagents and multiagent. On update, the same kind is ignored; changing kind or crossing its computer binding returns 400 invalid_request_error."
148
148
  },
149
149
  {
150
150
  "name": "computer_id",
@@ -372,7 +372,7 @@ export const operations = [
372
372
  "assume"
373
373
  ],
374
374
  "required": false,
375
- "description": "Immutable agent kind. general requires computer_id; on creation, assume may omit computer_id to register a new computer named after the agent, without starting an instance; assume has no conversation model and rejects model, models, subagent_model, subagents and multiagent; 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."
375
+ "description": "Immutable agent kind. general uses a durable computer and acts for its owner; service uses a clean environment per session; assume is driven over MCP with a durable computer and no conversation model. Omit on create to infer from computer_id (general with a computer, service without). A general or assume agent created without computer_id registers a new computer named after the agent in the same request; a service agent cannot take computer_id. assume rejects model, models, subagent_model, subagents and multiagent. On update, the same kind is ignored; changing kind or crossing its computer binding returns 400 invalid_request_error."
376
376
  },
377
377
  {
378
378
  "name": "computer_id",
@@ -1090,7 +1090,7 @@ export const operations = [
1090
1090
  "resource": "agent.computers",
1091
1091
  "method": "list",
1092
1092
  "summary": "List Computers",
1093
- "description": "List the computers of your organization, archived ones included.\n\nPraxis 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; computers start with a light sandbox and expose the public SDK sandbox_id. Lists include archived computers.",
1093
+ "description": "List the computers of your organization, archived ones included.\n\nPraxis 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.",
1094
1094
  "http": "GET",
1095
1095
  "path": "/agent/v1/computers",
1096
1096
  "streaming": "no",
@@ -1115,7 +1115,7 @@ export const operations = [
1115
1115
  "resource": "agent.computers",
1116
1116
  "method": "create",
1117
1117
  "summary": "Create Computer",
1118
- "description": "Create a durable computer: a named machine whose files outlive sessions, for general agents.\n\nPraxis 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; computers start with a light sandbox and expose the public SDK sandbox_id. Lists include archived computers.",
1118
+ "description": "Create a durable computer: a named machine whose files outlive sessions, for general agents.\n\nPraxis 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.",
1119
1119
  "http": "POST",
1120
1120
  "path": "/agent/v1/computers",
1121
1121
  "streaming": "no",
@@ -1162,7 +1162,7 @@ export const operations = [
1162
1162
  "resource": "agent.computers",
1163
1163
  "method": "retrieve",
1164
1164
  "summary": "Get Computer",
1165
- "description": "Read one computer's status, storage use and sandbox id.\n\nPraxis 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; computers start with a light sandbox and expose the public SDK sandbox_id. Lists include archived computers.",
1165
+ "description": "Read one computer's status, storage use and sandbox id.\n\nPraxis 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.",
1166
1166
  "http": "GET",
1167
1167
  "path": "/agent/v1/computers/{computer_id}",
1168
1168
  "streaming": "no",
@@ -1180,7 +1180,7 @@ export const operations = [
1180
1180
  "resource": "agent.computers",
1181
1181
  "method": "update",
1182
1182
  "summary": "Update Computer",
1183
- "description": "Rename a computer.\n\nPraxis 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; computers start with a light sandbox and expose the public SDK sandbox_id. Lists include archived computers.",
1183
+ "description": "Rename a computer.\n\nPraxis 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.",
1184
1184
  "http": "POST",
1185
1185
  "path": "/agent/v1/computers/{computer_id}",
1186
1186
  "streaming": "no",
@@ -1209,7 +1209,7 @@ export const operations = [
1209
1209
  "resource": "agent.computers",
1210
1210
  "method": "archive",
1211
1211
  "summary": "Archive Computer",
1212
- "description": "Archive a computer: its files stay readable but new sessions cannot use it.\n\nPraxis 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; computers start with a light sandbox and expose the public SDK sandbox_id. Lists include archived computers.",
1212
+ "description": "Archive a computer: its files stay readable but new sessions cannot use it.\n\nPraxis 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.",
1213
1213
  "http": "POST",
1214
1214
  "path": "/agent/v1/computers/{computer_id}/archive",
1215
1215
  "streaming": "no",
@@ -1289,7 +1289,7 @@ export const operations = [
1289
1289
  "resource": "agent.computers.files",
1290
1290
  "method": "list",
1291
1291
  "summary": "List Computer Files",
1292
- "description": "List the entries of one directory on a computer.\n\nPraxis 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; computers start with a light sandbox and expose the public SDK sandbox_id. Lists include archived computers.",
1292
+ "description": "List the entries of one directory on a computer.\n\nPraxis 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.",
1293
1293
  "http": "GET",
1294
1294
  "path": "/agent/v1/computers/{computer_id}/files",
1295
1295
  "streaming": "no",
@@ -1314,7 +1314,7 @@ export const operations = [
1314
1314
  "resource": "agent.computers.files",
1315
1315
  "method": "retrieveContent",
1316
1316
  "summary": "Get Computer File Content",
1317
- "description": "Download the bytes of one file on a computer, up to 16 MiB, with single-range support.\n\nPraxis 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; computers start with a light sandbox and expose the public SDK sandbox_id. Lists include archived computers.",
1317
+ "description": "Download the bytes of one file on a computer, up to 16 MiB, with single-range support.\n\nPraxis 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.",
1318
1318
  "http": "GET",
1319
1319
  "path": "/agent/v1/computers/{computer_id}/files/content",
1320
1320
  "streaming": "no",
@@ -17889,7 +17889,7 @@ export const operations = [
17889
17889
  "resource": "media.assets",
17890
17890
  "method": "edit",
17891
17891
  "summary": "Edit asset",
17892
- "description": "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.",
17892
+ "description": "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.",
17893
17893
  "http": "POST",
17894
17894
  "path": "/media/v1/libraries/{library_id}/assets/{asset_id}/edits",
17895
17895
  "streaming": "no",
@@ -17914,13 +17914,24 @@ export const operations = [
17914
17914
  "name": "operation",
17915
17915
  "type": "object",
17916
17916
  "required": true,
17917
- "description": "One edit to apply to the source asset. type selects the operation and the discriminating branch carries that operation’s fields. This release performs variations, inpaint, erase, replace_object, recolor and replace_background on images, remove_background on an image or a video, upscale, enhance_voice, reframe, redact, trim, mute and crop through Media’s processing lane (upscale on a picture or a video; enhance_voice on a recording or a video, whose audio is used; reframe, redact, trim, mute and crop on a video), erase, replace_person, lip_sync and animate_person on a video and talking_avatar on an image through the same lane, and to_video, frame and resynthesize on the material each takes; every other type here describes the operation vocabulary and is refused with OPERATION_NOT_SUPPORTED. align is not an edit — it compares two assets and has its own endpoint, POST /media/v1/libraries/{library_id}/assets/{asset_id}/align."
17917
+ "description": "One edit to apply to the source asset. type selects the operation and the discriminating branch carries that operation’s fields. This release performs variations, inpaint, erase, replace_object, recolor and replace_background on images, remove_background on an image or a video, upscale, enhance_voice, reframe, redact, trim, mute, crop and extract_audio through Media’s processing lane (upscale on a picture or a video; enhance_voice on a recording or a video, whose audio is used; reframe, redact, trim, mute, crop and extract_audio on a video), erase, replace_person, lip_sync, animate_person and edit_video on a video and talking_avatar on an image through the same lane, and to_video, frame and resynthesize on the material each takes; every other type here describes the operation vocabulary and is refused with OPERATION_NOT_SUPPORTED. align is not an edit — it compares two assets and has its own endpoint, POST /media/v1/libraries/{library_id}/assets/{asset_id}/align."
17918
17918
  },
17919
17919
  {
17920
17920
  "name": "model",
17921
17921
  "type": "string",
17922
17922
  "required": false,
17923
- "description": "Model that performs the edit; omit it to use the library default image model."
17923
+ "description": "Model that performs the edit; omit it to use the library default image model. This is the transition-window parameter; prefer tier, and send only one of the two."
17924
+ },
17925
+ {
17926
+ "name": "tier",
17927
+ "type": "string",
17928
+ "enum": [
17929
+ "economy",
17930
+ "balanced",
17931
+ "quality"
17932
+ ],
17933
+ "required": false,
17934
+ "description": "Performance tier to run this request in, an alternative to naming a model: economy is the cheapest and fastest, balanced is the best value, quality puts the result first. Send tier or model, never both — a request that carries both is refused with INVALID_PARAMS in the tier field. A capability with no model for the exact tier answers the nearest declared tier, and a tie goes to the cheaper one, so a request never pays more than it asked for; a capability that has only one model answers every tier with that model. The job and the produced asset’s provenance report the tier that actually served the request."
17924
17935
  },
17925
17936
  {
17926
17937
  "name": "asset_folder",
@@ -18574,7 +18585,18 @@ export const operations = [
18574
18585
  "name": "model",
18575
18586
  "type": "string",
18576
18587
  "required": false,
18577
- "description": "Model with image-generation capability; omit it to use the library default image model."
18588
+ "description": "Model with image-generation capability; omit it to use the library default image model. This is the transition-window parameter; prefer tier, and send only one of the two."
18589
+ },
18590
+ {
18591
+ "name": "tier",
18592
+ "type": "string",
18593
+ "enum": [
18594
+ "economy",
18595
+ "balanced",
18596
+ "quality"
18597
+ ],
18598
+ "required": false,
18599
+ "description": "Performance tier to run this request in, an alternative to naming a model: economy is the cheapest and fastest, balanced is the best value, quality puts the result first. Send tier or model, never both — a request that carries both is refused with INVALID_PARAMS in the tier field. A capability with no model for the exact tier answers the nearest declared tier, and a tie goes to the cheaper one, so a request never pays more than it asked for; a capability that has only one model answers every tier with that model. The job and the produced asset’s provenance report the tier that actually served the request."
18578
18600
  },
18579
18601
  {
18580
18602
  "name": "asset_folder",
@@ -19321,7 +19343,18 @@ export const operations = [
19321
19343
  "name": "model",
19322
19344
  "type": "string",
19323
19345
  "required": false,
19324
- "description": "Model with video-generation capability; omit it to use the library default video model."
19346
+ "description": "Model with video-generation capability; omit it to use the library default video model. This is the transition-window parameter; prefer tier, and send only one of the two."
19347
+ },
19348
+ {
19349
+ "name": "tier",
19350
+ "type": "string",
19351
+ "enum": [
19352
+ "economy",
19353
+ "balanced",
19354
+ "quality"
19355
+ ],
19356
+ "required": false,
19357
+ "description": "Performance tier to run this request in, an alternative to naming a model: economy is the cheapest and fastest, balanced is the best value, quality puts the result first. Send tier or model, never both — a request that carries both is refused with INVALID_PARAMS in the tier field. A capability with no model for the exact tier answers the nearest declared tier, and a tie goes to the cheaper one, so a request never pays more than it asked for; a capability that has only one model answers every tier with that model. The job and the produced asset’s provenance report the tier that actually served the request."
19325
19358
  },
19326
19359
  {
19327
19360
  "name": "asset_folder",
@@ -19348,6 +19381,79 @@ export const operations = [
19348
19381
  ]
19349
19382
  }
19350
19383
  },
19384
+ {
19385
+ "resource": "media.libraries.voices",
19386
+ "method": "create",
19387
+ "summary": "Create voice",
19388
+ "description": "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.",
19389
+ "http": "POST",
19390
+ "path": "/media/v1/libraries/{library_id}/voices",
19391
+ "streaming": "no",
19392
+ "pagination": false,
19393
+ "pathParams": [
19394
+ {
19395
+ "name": "library_id",
19396
+ "sdkName": "library_id",
19397
+ "description": "Library ID returned by creation."
19398
+ }
19399
+ ],
19400
+ "query": [],
19401
+ "body": {
19402
+ "required": true,
19403
+ "fields": []
19404
+ }
19405
+ },
19406
+ {
19407
+ "resource": "media.libraries.voices.designs",
19408
+ "method": "create",
19409
+ "summary": "Design a voice",
19410
+ "description": "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.",
19411
+ "http": "POST",
19412
+ "path": "/media/v1/libraries/{library_id}/voices/designs",
19413
+ "streaming": "no",
19414
+ "pagination": false,
19415
+ "pathParams": [
19416
+ {
19417
+ "name": "library_id",
19418
+ "sdkName": "library_id",
19419
+ "description": "Library ID returned by creation."
19420
+ }
19421
+ ],
19422
+ "query": [],
19423
+ "body": {
19424
+ "required": true,
19425
+ "fields": [
19426
+ {
19427
+ "name": "description",
19428
+ "type": "string",
19429
+ "required": true,
19430
+ "description": "Text description of the voice to design, 1 to 500 characters. The model makes every preview from it; a description that fails review answers CONTENT_REJECTED."
19431
+ },
19432
+ {
19433
+ "name": "preview_text",
19434
+ "type": "string",
19435
+ "required": true,
19436
+ "description": "Line each preview speaks, 15 to 200 characters: long enough to hear the voice, short enough for one model call."
19437
+ },
19438
+ {
19439
+ "name": "language",
19440
+ "type": "string",
19441
+ "enum": [
19442
+ "zh",
19443
+ "en"
19444
+ ],
19445
+ "required": true,
19446
+ "description": "Language the previews speak: zh or en only."
19447
+ },
19448
+ {
19449
+ "name": "count",
19450
+ "type": "number",
19451
+ "required": false,
19452
+ "description": "How many preview recordings to design, 1 to 3; defaults to 3. Each one is stored as an audio asset."
19453
+ }
19454
+ ]
19455
+ }
19456
+ },
19351
19457
  {
19352
19458
  "resource": "meta.docs",
19353
19459
  "method": "search",
@@ -20801,6 +20907,7 @@ export const operations = [
20801
20907
  "enum": [
20802
20908
  "anthropic.messages",
20803
20909
  "cohere.rerank",
20910
+ "dashscope.voice_design",
20804
20911
  "google.generateContent",
20805
20912
  "mistral.ocr",
20806
20913
  "openai.audio.speech",
@@ -24416,7 +24523,7 @@ export const operations = [
24416
24523
  "resource": "registry.packages",
24417
24524
  "method": "retrieve",
24418
24525
  "summary": "Retrieve package",
24419
- "description": "读一个包的元数据:种类、所属库、当前 latest_version、作者、标签和累计下载量。package_id 来自 packages.list 或 packages.create;另一个组织或不存在都返回 404。",
24526
+ "description": "读一个包的元数据:种类、所属库、当前 latest_version、作者、标签和累计下载量。package_id 来自 packages.list 或 packages.create;另一个组织或不存在都返回 404。软删期间这个包一律 404,恢复后才重新出现。",
24420
24527
  "http": "GET",
24421
24528
  "path": "/registry/v1/packages/{package_id}",
24422
24529
  "streaming": "no",
@@ -24430,6 +24537,119 @@ export const operations = [
24430
24537
  ],
24431
24538
  "query": []
24432
24539
  },
24540
+ {
24541
+ "resource": "registry.packages.git.commits",
24542
+ "method": "retrieve",
24543
+ "summary": "Read a commit",
24544
+ "description": "按对象 id 读一个提交(完整 sha,不解析缩写)。返回提交信息、作者、提交时间与父提交。仓库里没有这个对象返回 404。",
24545
+ "http": "GET",
24546
+ "path": "/registry/v1/packages/{package_id}/git/commits/{sha}",
24547
+ "streaming": "no",
24548
+ "pagination": false,
24549
+ "pathParams": [
24550
+ {
24551
+ "name": "package_id",
24552
+ "sdkName": "package_id",
24553
+ "description": "包的标识,来自 repositories.packages.list 或 repositories.packages.create 返回的 id;不要传包名。"
24554
+ },
24555
+ {
24556
+ "name": "sha",
24557
+ "sdkName": "sha",
24558
+ "description": "完整的 git 对象 id(40 或 64 位十六进制),不接受缩写。"
24559
+ }
24560
+ ],
24561
+ "query": []
24562
+ },
24563
+ {
24564
+ "resource": "registry.packages.git.files",
24565
+ "method": "retrieve",
24566
+ "summary": "Download a file from a ref",
24567
+ "description": "按引用读一个文件的原始字节。path 是仓库内相对路径,可以含斜杠;ref 不给就是默认分支。文件超过 4 MiB 返回 413,改用 git 协议取。路径不是文件或引用不存在返回 404。",
24568
+ "http": "GET",
24569
+ "path": "/registry/v1/packages/{package_id}/git/files/{path}",
24570
+ "streaming": "no",
24571
+ "pagination": false,
24572
+ "pathParams": [
24573
+ {
24574
+ "name": "package_id",
24575
+ "sdkName": "package_id",
24576
+ "description": "包的标识,来自 repositories.packages.list 或 repositories.packages.create 返回的 id;不要传包名。"
24577
+ },
24578
+ {
24579
+ "name": "path",
24580
+ "sdkName": "path",
24581
+ "description": "仓库内的相对文件路径,可以含斜杠(例如 src/main.ts);不要以 / 开头,不能含 ..。"
24582
+ }
24583
+ ],
24584
+ "query": [
24585
+ {
24586
+ "name": "ref",
24587
+ "type": "string",
24588
+ "required": false,
24589
+ "description": "分支名、标签名、refs/… 全名或完整对象 id;不给就是包的默认分支。"
24590
+ }
24591
+ ]
24592
+ },
24593
+ {
24594
+ "resource": "registry.packages.git",
24595
+ "method": "retrieveLog",
24596
+ "summary": "List commits",
24597
+ "description": "列出一个 git 包的提交历史,最新的在前。ref 不给就是包的默认分支;limit 与 offset 分页,has_more 为 true 表示还有下一页。只读:提交只能通过 git 协议推送(clone 地址在包的 clone_url)。OCI 包没有 git 读接口,返回 404。",
24598
+ "http": "GET",
24599
+ "path": "/registry/v1/packages/{package_id}/git/log",
24600
+ "streaming": "no",
24601
+ "pagination": false,
24602
+ "pathParams": [
24603
+ {
24604
+ "name": "package_id",
24605
+ "sdkName": "package_id",
24606
+ "description": "包的标识,来自 repositories.packages.list 或 repositories.packages.create 返回的 id;不要传包名。"
24607
+ }
24608
+ ],
24609
+ "query": [
24610
+ {
24611
+ "name": "ref",
24612
+ "type": "string",
24613
+ "required": false,
24614
+ "description": "分支名、标签名、refs/… 全名或完整对象 id;不给就是包的默认分支。"
24615
+ },
24616
+ {
24617
+ "name": "limit",
24618
+ "type": "integer",
24619
+ "required": false,
24620
+ "description": "这一页最多返回多少个提交,1 到 100,默认 20。"
24621
+ },
24622
+ {
24623
+ "name": "offset",
24624
+ "type": "integer",
24625
+ "required": false,
24626
+ "description": "从历史开头跳过多少个提交,用来翻页;非负整数,默认 0。"
24627
+ }
24628
+ ]
24629
+ },
24630
+ {
24631
+ "resource": "registry.packages.git.trees",
24632
+ "method": "retrieve",
24633
+ "summary": "List a tree",
24634
+ "description": "读一个树对象(或一个提交的根树)的条目:名字、类型(blob / tree / commit)、模式、对象 id,以及已知时的大小。只列这一层,不递归。",
24635
+ "http": "GET",
24636
+ "path": "/registry/v1/packages/{package_id}/git/trees/{sha}",
24637
+ "streaming": "no",
24638
+ "pagination": false,
24639
+ "pathParams": [
24640
+ {
24641
+ "name": "package_id",
24642
+ "sdkName": "package_id",
24643
+ "description": "包的标识,来自 repositories.packages.list 或 repositories.packages.create 返回的 id;不要传包名。"
24644
+ },
24645
+ {
24646
+ "name": "sha",
24647
+ "sdkName": "sha",
24648
+ "description": "完整的 git 对象 id(40 或 64 位十六进制),不接受缩写。"
24649
+ }
24650
+ ],
24651
+ "query": []
24652
+ },
24433
24653
  {
24434
24654
  "resource": "registry.packages.installations",
24435
24655
  "method": "list",
@@ -6296,6 +6296,12 @@ export declare function createMedia(transport: Transport): {
6296
6296
  retrieveFailureSummary: (options: import("./core/transport.js").CallOptions<Types.MediaUnderstandingFailureSummaryData>) => Promise<Types.MediaFailureSummary>;
6297
6297
  };
6298
6298
  update: (options: import("./core/transport.js").CallOptions<Types.MediaUpdateLibraryData>) => Promise<Types.MediaLibrary>;
6299
+ voices: {
6300
+ create: (options: import("./core/transport.js").CallOptions<Types.MediaCreateVoiceData>) => Promise<Types.MediaJob>;
6301
+ designs: {
6302
+ create: (options: import("./core/transport.js").CallOptions<Types.MediaDesignVoiceData>) => Promise<Types.MediaJob>;
6303
+ };
6304
+ };
6299
6305
  };
6300
6306
  speech: {
6301
6307
  create: (options: import("./core/transport.js").CallOptions<Types.MediaCreateSpeechData>) => Promise<Types.MediaJob>;
@@ -7296,6 +7302,18 @@ export declare function createRegistry(transport: Transport): {
7296
7302
  update: (options: import("./core/transport.js").CallOptions<Types.RegistryInstallationsUpdateData>) => Promise<Types.RegistryInstallation>;
7297
7303
  };
7298
7304
  packages: {
7305
+ git: {
7306
+ commits: {
7307
+ retrieve: (options: import("./core/transport.js").CallOptions<Types.RegistryGitCommitsRetrieveData>) => Promise<Types.RegistryGitCommit>;
7308
+ };
7309
+ files: {
7310
+ retrieve: (options: import("./core/transport.js").CallOptions<Types.RegistryGitFilesRetrieveData>) => Promise<Blob | File>;
7311
+ };
7312
+ retrieveLog: (options: import("./core/transport.js").CallOptions<Types.RegistryGitLogData>) => Promise<Types.RegistryGitLog>;
7313
+ trees: {
7314
+ retrieve: (options: import("./core/transport.js").CallOptions<Types.RegistryGitTreesRetrieveData>) => Promise<Types.RegistryGitTree>;
7315
+ };
7316
+ };
7299
7317
  installations: {
7300
7318
  create: (options: import("./core/transport.js").CallOptions<Types.RegistryPackagesInstallationsCreateData>) => Promise<Types.RegistryInstallResult>;
7301
7319
  list: (options: import("./core/transport.js").CallOptions<Types.RegistryPackagesInstallationsListData>) => Promise<Types.RegistryInstallationList>;
@@ -988,6 +988,12 @@ export function createMedia(transport) {
988
988
  retrieveFailureSummary: bind(transport, sdk.mediaUnderstandingFailureSummary),
989
989
  },
990
990
  update: bind(transport, sdk.mediaUpdateLibrary),
991
+ voices: {
992
+ create: bind(transport, sdk.mediaCreateVoice),
993
+ designs: {
994
+ create: bind(transport, sdk.mediaDesignVoice),
995
+ },
996
+ },
991
997
  },
992
998
  speech: {
993
999
  create: bind(transport, sdk.mediaCreateSpeech),
@@ -1266,6 +1272,18 @@ export function createRegistry(transport) {
1266
1272
  update: bind(transport, sdk.registryInstallationsUpdate),
1267
1273
  },
1268
1274
  packages: {
1275
+ git: {
1276
+ commits: {
1277
+ retrieve: bind(transport, sdk.registryGitCommitsRetrieve),
1278
+ },
1279
+ files: {
1280
+ retrieve: bind(transport, sdk.registryGitFilesRetrieve),
1281
+ },
1282
+ retrieveLog: bind(transport, sdk.registryGitLog),
1283
+ trees: {
1284
+ retrieve: bind(transport, sdk.registryGitTreesRetrieve),
1285
+ },
1286
+ },
1269
1287
  installations: {
1270
1288
  create: bind(transport, sdk.registryPackagesInstallationsCreate),
1271
1289
  list: bind(transport, sdk.registryPackagesInstallationsList),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@deepraxis/sdk",
3
- "version": "0.1.1-dev.53bfbed",
3
+ "version": "0.1.1-dev.54060c3",
4
4
  "type": "module",
5
5
  "sideEffects": false,
6
6
  "exports": {