Skip to content

Commit 4ff36b2

Browse files
author
stlc-bot
committed
Build SDK
Stainless-Generated-From: b2bf501
1 parent 949c0ca commit 4ff36b2

3 files changed

Lines changed: 18 additions & 0 deletions

File tree

src/imagekitio/resources/assets.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,10 @@ def list(
6666
"DESC_SIZE",
6767
"ASC_RELEVANCE",
6868
"DESC_RELEVANCE",
69+
"ASC_DURATION",
70+
"DESC_DURATION",
71+
"ASC_ORIGINAL_CREATION_DATE",
72+
"DESC_ORIGINAL_CREATION_DATE",
6973
]
7074
| Omit = omit,
7175
type: Literal["file", "file-version", "folder", "all"] | Omit = omit,
@@ -199,6 +203,10 @@ async def list(
199203
"DESC_SIZE",
200204
"ASC_RELEVANCE",
201205
"DESC_RELEVANCE",
206+
"ASC_DURATION",
207+
"DESC_DURATION",
208+
"ASC_ORIGINAL_CREATION_DATE",
209+
"DESC_ORIGINAL_CREATION_DATE",
202210
]
203211
| Omit = omit,
204212
type: Literal["file", "file-version", "folder", "all"] | Omit = omit,

src/imagekitio/types/asset_list_params.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,10 @@ class AssetListParams(TypedDict, total=False):
6565
"DESC_SIZE",
6666
"ASC_RELEVANCE",
6767
"DESC_RELEVANCE",
68+
"ASC_DURATION",
69+
"DESC_DURATION",
70+
"ASC_ORIGINAL_CREATION_DATE",
71+
"DESC_ORIGINAL_CREATION_DATE",
6872
]
6973
"""
7074
Sort the results by one of the supported fields in ascending or descending

src/imagekitio/types/custom_metadata_field.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,3 +82,9 @@ class CustomMetadataField(BaseModel):
8282
Only present when a description has been set. Shown as a hint to the users while
8383
setting the field's value on an asset in the media library UI.
8484
"""
85+
86+
reserved: Optional[bool] = None
87+
"""Present and set to `true` when the field is reserved.
88+
89+
Omitted for regular fields. Reserved fields cannot be deleted.
90+
"""

0 commit comments

Comments
 (0)