Skip to content

Commit b1ffb23

Browse files
fix(api): add missing embeddedMetadata and video properties to FileDetails
1 parent 2d7dd40 commit b1ffb23

File tree

2 files changed

+20
-2
lines changed

2 files changed

+20
-2
lines changed

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 48
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/imagekit-inc%2Fimagekit-84f0d75048a9268981a84800b4190e3691997ce57dcfc0876f38a5b3fce6bacd.yml
3-
openapi_spec_hash: 35607d4e850c8a60524223ff632c83bb
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/imagekit-inc%2Fimagekit-f2eb530f43b355f7ddab66187e45e4ca6da195825b66ea193bbf38acd3deb055.yml
3+
openapi_spec_hash: 2137c56fcf6ae4c09fcac2891b35f789
44
config_hash: 47cb702ee2cb52c58d803ae39ade9b44

src/imagekitio/types/file.py

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,12 @@ class File(BaseModel):
9595
ai_tags: Optional[List[AITag]] = FieldInfo(alias="AITags", default=None)
9696
"""An array of tags assigned to the file by auto tagging."""
9797

98+
audio_codec: Optional[str] = FieldInfo(alias="audioCodec", default=None)
99+
"""The audio codec used in the video (only for video/audio)."""
100+
101+
bit_rate: Optional[int] = FieldInfo(alias="bitRate", default=None)
102+
"""The bit rate of the video in kbps (only for video)."""
103+
98104
created_at: Optional[datetime] = FieldInfo(alias="createdAt", default=None)
99105
"""Date and time when the file was uploaded.
100106
@@ -113,6 +119,15 @@ class File(BaseModel):
113119
Can be set by the user or the ai-auto-description extension.
114120
"""
115121

122+
duration: Optional[int] = None
123+
"""The duration of the video in seconds (only for video)."""
124+
125+
embedded_metadata: Optional[Dict[str, object]] = FieldInfo(alias="embeddedMetadata", default=None)
126+
"""Consolidated embedded metadata associated with the file.
127+
128+
It includes exif, iptc, and xmp data.
129+
"""
130+
116131
file_id: Optional[str] = FieldInfo(alias="fileId", default=None)
117132
"""Unique identifier of the asset."""
118133

@@ -188,5 +203,8 @@ class File(BaseModel):
188203
version_info: Optional[VersionInfo] = FieldInfo(alias="versionInfo", default=None)
189204
"""An object with details of the file version."""
190205

206+
video_codec: Optional[str] = FieldInfo(alias="videoCodec", default=None)
207+
"""The video codec used in the video (only for video)."""
208+
191209
width: Optional[float] = None
192210
"""Width of the file."""

0 commit comments

Comments
 (0)