Skip to content

Commit 31b3c27

Browse files
chore: sync from ark-apis 6149322043
Auto-generated SDK sync from ark-apis at 61493220431bb7746d47316e0fc43adb8fe07717. Generated files are overwritten by the sync pipeline and should not be edited by hand. Sync-Source-Commit: 863fa4982e09eec85e1e5cc510a8a3b888694a75 Ark-APIs-Commit: 61493220431bb7746d47316e0fc43adb8fe07717 Release-Version: 0.23.0
1 parent 0d78a8f commit 31b3c27

9 files changed

Lines changed: 48 additions & 5 deletions

File tree

‎VERSION‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.22.0
1+
0.23.0

‎pyproject.toml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
44

55
[project]
66
name = "arkruntime"
7-
version = "0.22.0"
7+
version = "0.23.0"
88
description = "Ark runtime SDK for Python"
99
readme = "README.md"
1010
requires-python = ">=3.8"

‎src/arkruntime/resources/content_generation/tasks.py‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ def create(
5151
frames: Optional[int] = None,
5252
subdivision_level: Optional[str] = None,
5353
file_format: Optional[str] = None,
54+
output_format: Optional[str] = None,
5455
texture: Optional[bool] = None,
5556
geometry_quality: Optional[str] = None,
5657
geometry_detail: Optional[str] = None,
@@ -60,6 +61,7 @@ def create(
6061
priority: Optional[int] = None,
6162
draft: Optional[bool] = None,
6263
optimize_prompt: Optional[bool] = None,
64+
omni_reference_task_type: Optional[str] = None,
6365
tools: Optional[List[ToolParam]] = None,
6466
reasoning_effort: Optional[ReasoningEffort] = None,
6567
human_face_mode: Optional[str] = None,
@@ -90,6 +92,7 @@ def create(
9092
"frames": frames,
9193
"subdivision_level": subdivision_level,
9294
"file_format": file_format,
95+
"output_format": output_format,
9396
"texture": texture,
9497
"geometry_quality": geometry_quality,
9598
"geometry_detail": geometry_detail,
@@ -99,6 +102,7 @@ def create(
99102
"priority": priority,
100103
"draft": draft,
101104
"optimize_prompt": optimize_prompt,
105+
"omni_reference_task_type": omni_reference_task_type,
102106
"tools": tools,
103107
"reasoning_effort": reasoning_effort,
104108
"human_face_mode": human_face_mode,
@@ -226,6 +230,7 @@ async def create(
226230
frames: Optional[int] = None,
227231
subdivision_level: Optional[str] = None,
228232
file_format: Optional[str] = None,
233+
output_format: Optional[str] = None,
229234
texture: Optional[bool] = None,
230235
geometry_quality: Optional[str] = None,
231236
geometry_detail: Optional[str] = None,
@@ -235,6 +240,7 @@ async def create(
235240
priority: Optional[int] = None,
236241
draft: Optional[bool] = None,
237242
optimize_prompt: Optional[bool] = None,
243+
omni_reference_task_type: Optional[str] = None,
238244
tools: Optional[List[ToolParam]] = None,
239245
reasoning_effort: Optional[ReasoningEffort] = None,
240246
human_face_mode: Optional[str] = None,
@@ -265,6 +271,7 @@ async def create(
265271
"frames": frames,
266272
"subdivision_level": subdivision_level,
267273
"file_format": file_format,
274+
"output_format": output_format,
268275
"texture": texture,
269276
"geometry_quality": geometry_quality,
270277
"geometry_detail": geometry_detail,
@@ -274,6 +281,7 @@ async def create(
274281
"priority": priority,
275282
"draft": draft,
276283
"optimize_prompt": optimize_prompt,
284+
"omni_reference_task_type": omni_reference_task_type,
277285
"tools": tools,
278286
"reasoning_effort": reasoning_effort,
279287
"human_face_mode": human_face_mode,

‎src/arkruntime/types/content_generation/content_generation_task.py‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,10 @@ class ContentGenerationTask(BaseModel):
9595
"""
9696
Output file format of a 3D generation task.
9797
"""
98+
output_format: Optional[str] = None
99+
"""
100+
Video container format actually used by the task (e.g. `mp4`, `mov`).
101+
"""
98102
texture_resolution: Optional[str] = None
99103
"""
100104
Texture resolution actually used by a 3D generation task.

‎src/arkruntime/types/content_generation/create_content_generation_task_request.py‎

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,11 @@ class CreateContentGenerationTaskRequest(BaseModel):
8080
"""
8181
Output file format (e.g. `mp4`, `glb`).
8282
"""
83+
output_format: Optional[str] = None
84+
"""
85+
Video container format (e.g. `mp4`, `mov`). Supported values depend on
86+
the model; defaults to `mp4` when omitted.
87+
"""
8388
texture: Optional[bool] = None
8489
"""
8590
3D generation with image-only input: `false` generates an untextured
@@ -118,6 +123,12 @@ class CreateContentGenerationTaskRequest(BaseModel):
118123
"""
119124
Run the prompt-optimization pass before generation.
120125
"""
126+
omni_reference_task_type: Optional[str] = None
127+
"""
128+
Multimodal-reference task type hint: `auto` (default), `reference`,
129+
`edit` or `extend`. Supported models and task-specific constraints are
130+
enforced server-side; requires prompt optimization to be enabled.
131+
"""
121132
tools: Optional[List[Tool]] = None
122133
"""
123134
Tools the model may invoke during generation.

‎src/arkruntime/types/content_generation/create_content_generation_task_request_param.py‎

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,12 @@ class CreateContentGenerationTaskRequestParam(TypedDict, total=False):
6464
file_format: Optional[str]
6565
"""Output file format (e.g. `mp4`, `glb`)."""
6666

67+
output_format: Optional[str]
68+
"""
69+
Video container format (e.g. `mp4`, `mov`). Supported values depend on
70+
the model; defaults to `mp4` when omitted.
71+
"""
72+
6773
texture: Optional[bool]
6874
"""
6975
3D generation with image-only input: `false` generates an untextured
@@ -97,6 +103,13 @@ class CreateContentGenerationTaskRequestParam(TypedDict, total=False):
97103
optimize_prompt: Optional[bool]
98104
"""Run the prompt-optimization pass before generation."""
99105

106+
omni_reference_task_type: Optional[str]
107+
"""
108+
Multimodal-reference task type hint: `auto` (default), `reference`,
109+
`edit` or `extend`. Supported models and task-specific constraints are
110+
enforced server-side; requires prompt optimization to be enabled.
111+
"""
112+
100113
tools: Optional[List[ToolParam]]
101114
"""Tools the model may invoke during generation."""
102115

‎src/arkruntime/types/vault/credential_auth.py‎

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,13 @@ class CredentialAuth(BaseModel):
2020
凭证的鉴权细节。按 `type` 决定哪些字段非空:
2121
- `mcp_oauth` → `mcp_server_url` + `access_token`(write-only) + 可选 `expires_at` / `refresh`
2222
- `static_bearer` → `mcp_server_url` + `token`(write-only)
23+
- `mcp_static` → `mcp_server_url` + `token`(write-only)(省略注入配置时使用 bearer)
2324
- `environment_variable` → `secret_name` + `secret_value`(write-only) + `networking`
2425
26+
`mcp_static` 与 `static_bearer` 并存,响应保留原始类型,不做归一化。
27+
按类型的必填性由服务端校验;SDK 的可选字段不代表任意组合都合法。
28+
为保持旧 SDK 公开对象结构,本模型暂不暴露 header/query 注入配置;完整配置支持另行提供。
29+
2530
所有 secret 字段(`access_token` / `token` / `secret_value` / `refresh.refresh_token` /
2631
`token_endpoint_auth.client_secret`)都是 write-only:响应永不返回。
2732
"""
@@ -32,7 +37,7 @@ class CredentialAuth(BaseModel):
3237
"""
3338
mcp_server_url: Optional[str] = None
3439
"""
35-
MCP server URL;`mcp_oauth` / `static_bearer` 用。
40+
MCP server URL;`mcp_oauth` / `static_bearer` / `mcp_static` 用。
3641
"""
3742
access_token: Optional[str] = None
3843
"""
@@ -48,7 +53,7 @@ class CredentialAuth(BaseModel):
4853
"""
4954
token: Optional[str] = None
5055
"""
51-
Bearer token;`static_bearer` 专用(write-only)。
56+
静态密钥;`static_bearer` / `mcp_static` 创建时必填(write-only)。`mcp_static` 的 bearer 注入时不得包含 `Bearer ` 前缀。
5257
"""
5358
secret_name: Optional[str] = None
5459
"""

‎src/arkruntime/types/vault/credential_auth_type.py‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,11 @@ class CredentialAuthType(str, Enum):
1414
凭证 auth 类型。按值决定 `CredentialAuth` 里哪些字段被使用:
1515
- `mcp_oauth`:`mcp_server_url` + `access_token`(w) + 可选 `expires_at` / `refresh`
1616
- `static_bearer`:`mcp_server_url` + `token`(w)
17+
- `mcp_static`:`mcp_server_url` + `token`(w)(省略注入配置时使用 bearer)
1718
- `environment_variable`:`secret_name` + `secret_value`(w) + `networking`
1819
"""
1920

2021
mcp_oauth = "mcp_oauth"
2122
static_bearer = "static_bearer"
2223
environment_variable = "environment_variable"
24+
mcp_static = "mcp_static"

‎uv.lock‎

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)