Skip to content

Commit cf14590

Browse files
chore: sync from ark-apis 1402819a86
Auto-generated SDK sync from ark-apis at 1402819a8646731a889e7dd5d8a88b3cd31c7f21. Generated files are overwritten by the sync pipeline and should not be edited by hand. Sync-Source-Commit: dc3ffb8aefe6fe5f5c480943e45550a743b63f78 Ark-APIs-Commit: 1402819a8646731a889e7dd5d8a88b3cd31c7f21 Release-Version: 0.15.0
1 parent ccaa9c6 commit cf14590

6 files changed

Lines changed: 34 additions & 3 deletions

File tree

‎VERSION‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.14.0
1+
0.15.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.14.0"
7+
version = "0.15.0"
88
description = "Ark runtime SDK for Python"
99
readme = "README.md"
1010
requires-python = ">=3.8"

‎src/arkruntime/types/file/__init__.py‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
from .preprocess_configs import PreprocessConfigs
1717
from .purpose import Purpose
1818
from .status import Status
19+
from .tos_location import TosLocation
1920
from .tos_storage import TosStorage
2021
from .video import Video
2122

@@ -30,6 +31,7 @@
3031
"PreprocessConfigs",
3132
"Purpose",
3233
"Status",
34+
"TosLocation",
3335
"TosStorage",
3436
"Video",
3537
]

‎src/arkruntime/types/file/file_object.py‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
from .preprocess_configs import PreprocessConfigs
1616
from .purpose import Purpose
1717
from .status import Status
18+
from .tos_location import TosLocation
1819

1920

2021
class FileObject(BaseModel):
@@ -70,6 +71,10 @@ class FileObject(BaseModel):
7071
"""
7172
Pre-signed download URL pointing at the underlying TOS object.
7273
"""
74+
tos: Optional[TosLocation] = None
75+
"""
76+
Stored object location. Only returned for files in user-owned TOS buckets.
77+
"""
7378
error: Optional[FileError] = None
7479
"""
7580
Failure details. Only set when `status` is `failed`.
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# Generated by datamodel-code-generator from ark-apis typespec/openapi.
2+
# DO NOT EDIT — regenerate with `make gen-py-<api>` in ark-apis.
3+
#
4+
# Copyright (c) 2026 ByteDance Ltd. and/or its affiliates.
5+
# SPDX-License-Identifier: Apache-2.0
6+
7+
from __future__ import annotations
8+
9+
from arkruntime._models import BaseModel
10+
11+
12+
class TosLocation(BaseModel):
13+
"""
14+
Location of a file stored in a user-owned TOS bucket.
15+
"""
16+
17+
bucket: str
18+
"""
19+
TOS bucket name.
20+
"""
21+
object_key: str
22+
"""
23+
Full stored object key, including the upload prefix.
24+
"""

‎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)