Skip to content

Commit b09e651

Browse files
author
stlc-bot
committed
Build SDK
Stainless-Generated-From: a5579e8
1 parent 0270081 commit b09e651

4 files changed

Lines changed: 25 additions & 0 deletions

File tree

‎src/imagekitio/types/accounts/url_endpoint_create_params.py‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,13 @@ class URLRewriterCloudinary(TypedDict, total=False):
3838
preserve_asset_delivery_types: Annotated[bool, PropertyInfo(alias="preserveAssetDeliveryTypes")]
3939
"""Whether to preserve `<asset_type>/<delivery_type>` in the rewritten URL."""
4040

41+
use_improved_layer_spec: Annotated[bool, PropertyInfo(alias="useImprovedLayerSpec")]
42+
"""
43+
Whether to always rewrite Cloudinary layers to the improved ImageKit layer
44+
specification (`l-image`, `l-text`, ..., `l-end`). When `false` or omitted, the
45+
improved specification is used only for transformations that require it.
46+
"""
47+
4148

4249
class URLRewriterImgix(TypedDict, total=False):
4350
type: Required[Literal["IMGIX"]]

‎src/imagekitio/types/accounts/url_endpoint_response.py‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,13 @@ class URLRewriterCloudinary(BaseModel):
1717

1818
type: Literal["CLOUDINARY"]
1919

20+
use_improved_layer_spec: Optional[bool] = FieldInfo(alias="useImprovedLayerSpec", default=None)
21+
"""
22+
Whether to always rewrite Cloudinary layers to the improved ImageKit layer
23+
specification (`l-image`, `l-text`, ..., `l-end`). When `false` or omitted, the
24+
improved specification is used only for transformations that require it.
25+
"""
26+
2027

2128
class URLRewriterImgix(BaseModel):
2229
type: Literal["IMGIX"]

‎src/imagekitio/types/accounts/url_endpoint_update_params.py‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,13 @@ class URLRewriterCloudinary(TypedDict, total=False):
3838
preserve_asset_delivery_types: Annotated[bool, PropertyInfo(alias="preserveAssetDeliveryTypes")]
3939
"""Whether to preserve `<asset_type>/<delivery_type>` in the rewritten URL."""
4040

41+
use_improved_layer_spec: Annotated[bool, PropertyInfo(alias="useImprovedLayerSpec")]
42+
"""
43+
Whether to always rewrite Cloudinary layers to the improved ImageKit layer
44+
specification (`l-image`, `l-text`, ..., `l-end`). When `false` or omitted, the
45+
improved specification is used only for transformations that require it.
46+
"""
47+
4148

4249
class URLRewriterImgix(TypedDict, total=False):
4350
type: Required[Literal["IMGIX"]]

‎tests/api_resources/accounts/test_url_endpoints.py‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ def test_method_create_with_all_params(self, client: ImageKit) -> None:
3838
url_rewriter={
3939
"type": "CLOUDINARY",
4040
"preserve_asset_delivery_types": True,
41+
"use_improved_layer_spec": True,
4142
},
4243
)
4344
assert_matches_type(URLEndpointResponse, url_endpoint, path=["response"])
@@ -88,6 +89,7 @@ def test_method_update_with_all_params(self, client: ImageKit) -> None:
8889
url_rewriter={
8990
"type": "CLOUDINARY",
9091
"preserve_asset_delivery_types": True,
92+
"use_improved_layer_spec": True,
9193
},
9294
)
9395
assert_matches_type(URLEndpointResponse, url_endpoint, path=["response"])
@@ -265,6 +267,7 @@ async def test_method_create_with_all_params(self, async_client: AsyncImageKit)
265267
url_rewriter={
266268
"type": "CLOUDINARY",
267269
"preserve_asset_delivery_types": True,
270+
"use_improved_layer_spec": True,
268271
},
269272
)
270273
assert_matches_type(URLEndpointResponse, url_endpoint, path=["response"])
@@ -315,6 +318,7 @@ async def test_method_update_with_all_params(self, async_client: AsyncImageKit)
315318
url_rewriter={
316319
"type": "CLOUDINARY",
317320
"preserve_asset_delivery_types": True,
321+
"use_improved_layer_spec": True,
318322
},
319323
)
320324
assert_matches_type(URLEndpointResponse, url_endpoint, path=["response"])

0 commit comments

Comments
 (0)