Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.22.0
0.23.0
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"

[project]
name = "arkruntime"
version = "0.22.0"
version = "0.23.0"
description = "Ark runtime SDK for Python"
readme = "README.md"
requires-python = ">=3.8"
Expand Down
8 changes: 8 additions & 0 deletions src/arkruntime/resources/content_generation/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ def create(
frames: Optional[int] = None,
subdivision_level: Optional[str] = None,
file_format: Optional[str] = None,
output_format: Optional[str] = None,
texture: Optional[bool] = None,
geometry_quality: Optional[str] = None,
geometry_detail: Optional[str] = None,
Expand All @@ -60,6 +61,7 @@ def create(
priority: Optional[int] = None,
draft: Optional[bool] = None,
optimize_prompt: Optional[bool] = None,
omni_reference_task_type: Optional[str] = None,
tools: Optional[List[ToolParam]] = None,
reasoning_effort: Optional[ReasoningEffort] = None,
human_face_mode: Optional[str] = None,
Expand Down Expand Up @@ -90,6 +92,7 @@ def create(
"frames": frames,
"subdivision_level": subdivision_level,
"file_format": file_format,
"output_format": output_format,
"texture": texture,
"geometry_quality": geometry_quality,
"geometry_detail": geometry_detail,
Expand All @@ -99,6 +102,7 @@ def create(
"priority": priority,
"draft": draft,
"optimize_prompt": optimize_prompt,
"omni_reference_task_type": omni_reference_task_type,
"tools": tools,
"reasoning_effort": reasoning_effort,
"human_face_mode": human_face_mode,
Expand Down Expand Up @@ -226,6 +230,7 @@ async def create(
frames: Optional[int] = None,
subdivision_level: Optional[str] = None,
file_format: Optional[str] = None,
output_format: Optional[str] = None,
texture: Optional[bool] = None,
geometry_quality: Optional[str] = None,
geometry_detail: Optional[str] = None,
Expand All @@ -235,6 +240,7 @@ async def create(
priority: Optional[int] = None,
draft: Optional[bool] = None,
optimize_prompt: Optional[bool] = None,
omni_reference_task_type: Optional[str] = None,
tools: Optional[List[ToolParam]] = None,
reasoning_effort: Optional[ReasoningEffort] = None,
human_face_mode: Optional[str] = None,
Expand Down Expand Up @@ -265,6 +271,7 @@ async def create(
"frames": frames,
"subdivision_level": subdivision_level,
"file_format": file_format,
"output_format": output_format,
"texture": texture,
"geometry_quality": geometry_quality,
"geometry_detail": geometry_detail,
Expand All @@ -274,6 +281,7 @@ async def create(
"priority": priority,
"draft": draft,
"optimize_prompt": optimize_prompt,
"omni_reference_task_type": omni_reference_task_type,
"tools": tools,
"reasoning_effort": reasoning_effort,
"human_face_mode": human_face_mode,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,10 @@ class ContentGenerationTask(BaseModel):
"""
Output file format of a 3D generation task.
"""
output_format: Optional[str] = None
"""
Video container format actually used by the task (e.g. `mp4`, `mov`).
"""
texture_resolution: Optional[str] = None
"""
Texture resolution actually used by a 3D generation task.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,11 @@ class CreateContentGenerationTaskRequest(BaseModel):
"""
Output file format (e.g. `mp4`, `glb`).
"""
output_format: Optional[str] = None
"""
Video container format (e.g. `mp4`, `mov`). Supported values depend on
the model; defaults to `mp4` when omitted.
"""
texture: Optional[bool] = None
"""
3D generation with image-only input: `false` generates an untextured
Expand Down Expand Up @@ -118,6 +123,12 @@ class CreateContentGenerationTaskRequest(BaseModel):
"""
Run the prompt-optimization pass before generation.
"""
omni_reference_task_type: Optional[str] = None
"""
Multimodal-reference task type hint: `auto` (default), `reference`,
`edit` or `extend`. Supported models and task-specific constraints are
enforced server-side; requires prompt optimization to be enabled.
"""
tools: Optional[List[Tool]] = None
"""
Tools the model may invoke during generation.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,12 @@ class CreateContentGenerationTaskRequestParam(TypedDict, total=False):
file_format: Optional[str]
"""Output file format (e.g. `mp4`, `glb`)."""

output_format: Optional[str]
"""
Video container format (e.g. `mp4`, `mov`). Supported values depend on
the model; defaults to `mp4` when omitted.
"""

texture: Optional[bool]
"""
3D generation with image-only input: `false` generates an untextured
Expand Down Expand Up @@ -97,6 +103,13 @@ class CreateContentGenerationTaskRequestParam(TypedDict, total=False):
optimize_prompt: Optional[bool]
"""Run the prompt-optimization pass before generation."""

omni_reference_task_type: Optional[str]
"""
Multimodal-reference task type hint: `auto` (default), `reference`,
`edit` or `extend`. Supported models and task-specific constraints are
enforced server-side; requires prompt optimization to be enabled.
"""

tools: Optional[List[ToolParam]]
"""Tools the model may invoke during generation."""

Expand Down
9 changes: 7 additions & 2 deletions src/arkruntime/types/vault/credential_auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,13 @@ class CredentialAuth(BaseModel):
凭证的鉴权细节。按 `type` 决定哪些字段非空:
- `mcp_oauth` → `mcp_server_url` + `access_token`(write-only) + 可选 `expires_at` / `refresh`
- `static_bearer` → `mcp_server_url` + `token`(write-only)
- `mcp_static` → `mcp_server_url` + `token`(write-only)(省略注入配置时使用 bearer)
- `environment_variable` → `secret_name` + `secret_value`(write-only) + `networking`
`mcp_static` 与 `static_bearer` 并存,响应保留原始类型,不做归一化。
按类型的必填性由服务端校验;SDK 的可选字段不代表任意组合都合法。
为保持旧 SDK 公开对象结构,本模型暂不暴露 header/query 注入配置;完整配置支持另行提供。
所有 secret 字段(`access_token` / `token` / `secret_value` / `refresh.refresh_token` /
`token_endpoint_auth.client_secret`)都是 write-only:响应永不返回。
"""
Expand All @@ -32,7 +37,7 @@ class CredentialAuth(BaseModel):
"""
mcp_server_url: Optional[str] = None
"""
MCP server URL;`mcp_oauth` / `static_bearer` 用。
MCP server URL;`mcp_oauth` / `static_bearer` / `mcp_static` 用。
"""
access_token: Optional[str] = None
"""
Expand All @@ -48,7 +53,7 @@ class CredentialAuth(BaseModel):
"""
token: Optional[str] = None
"""
Bearer token;`static_bearer` 专用(write-only)。
静态密钥;`static_bearer` / `mcp_static` 创建时必填(write-only)。`mcp_static` 的 bearer 注入时不得包含 `Bearer ` 前缀。
"""
secret_name: Optional[str] = None
"""
Expand Down
2 changes: 2 additions & 0 deletions src/arkruntime/types/vault/credential_auth_type.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,11 @@ class CredentialAuthType(str, Enum):
凭证 auth 类型。按值决定 `CredentialAuth` 里哪些字段被使用:
- `mcp_oauth`:`mcp_server_url` + `access_token`(w) + 可选 `expires_at` / `refresh`
- `static_bearer`:`mcp_server_url` + `token`(w)
- `mcp_static`:`mcp_server_url` + `token`(w)(省略注入配置时使用 bearer)
- `environment_variable`:`secret_name` + `secret_value`(w) + `networking`
"""

mcp_oauth = "mcp_oauth"
static_bearer = "static_bearer"
environment_variable = "environment_variable"
mcp_static = "mcp_static"
2 changes: 1 addition & 1 deletion uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading