1818from .._base_client import make_request_options
1919from ..types .shared .named_transformation import NamedTransformation
2020from ..types .named_transformation_list_response import NamedTransformationListResponse
21+ from ..types .named_transformation_delete_response import NamedTransformationDeleteResponse
2122
2223__all__ = ["NamedTransformationsResource" , "AsyncNamedTransformationsResource" ]
2324
@@ -71,15 +72,14 @@ def create(
7172 account. Name matching is case-sensitive.
7273
7374 transformation: The transformation string this name refers to, for example
74- `w-150,h-150,fo-center,cm-resize`. The `tr:` prefix is optional — it's added
75- automatically if missing, and validated if present. The string must be a valid
76- ImageKit transformation and cannot itself reference another named transformation
77- (no nesting). Learn more about the
75+ `w-150,h-150,fo-center,cm-resize`. The `tr:` prefix is optional; if present, it
76+ is validated. The string must be a valid ImageKit transformation and cannot
77+ itself reference another named transformation (no nesting). Learn more about the
7878 [transformation syntax](https://imagekit.io/docs/transformations).
7979
80- enabled: Whether the named transformation is enabled. Set to `false` to disable it
81- without deleting it; requests using a disabled named transformation fail at
82- delivery time.
80+ enabled: Whether the named transformation is currently enabled. When this is set to
81+ `false`, requests using such disabled named transformations fail at delivery
82+ time.
8383
8484 extra_headers: Send extra headers
8585
@@ -130,6 +130,8 @@ def update(
130130 references in your own application code or in previously generated URLs.
131131
132132 Args:
133+ id: Unique identifier for a named transformation.
134+
133135 enabled: Whether the named transformation is enabled. Omit to leave the current value
134136 unchanged.
135137
@@ -138,10 +140,9 @@ def update(
138140 account. Name matching is case-sensitive.
139141
140142 transformation: The transformation string this name refers to, for example
141- `w-150,h-150,fo-center,cm-resize`. The `tr:` prefix is optional — it's added
142- automatically if missing, and validated if present. The string must be a valid
143- ImageKit transformation and cannot itself reference another named transformation
144- (no nesting). Learn more about the
143+ `w-150,h-150,fo-center,cm-resize`. The `tr:` prefix is optional; if present, it
144+ is validated. The string must be a valid ImageKit transformation and cannot
145+ itself reference another named transformation (no nesting). Learn more about the
145146 [transformation syntax](https://imagekit.io/docs/transformations).
146147
147148 extra_headers: Send extra headers
@@ -199,17 +200,18 @@ def delete(
199200 extra_query : Query | None = None ,
200201 extra_body : Body | None = None ,
201202 timeout : float | httpx .Timeout | None | NotGiven = not_given ,
202- ) -> NamedTransformation :
203+ ) -> NamedTransformationDeleteResponse :
203204 """
204- Permanently deletes the named transformation identified by `id` and returns the
205- deleted object.
205+ Permanently deletes the named transformation identified by `id`.
206206
207207 Deletion fails with a `409` error if the named transformation is still
208208 referenced (via the `n-<name>` token) by an upload pre-transformation or
209209 post-transformation setting. This check is best-effort and can't detect
210210 references in your own application code or in previously generated URLs.
211211
212212 Args:
213+ id: Unique identifier for a named transformation.
214+
213215 extra_headers: Send extra headers
214216
215217 extra_query: Add additional query parameters to the request
@@ -225,7 +227,7 @@ def delete(
225227 options = make_request_options (
226228 extra_headers = extra_headers , extra_query = extra_query , extra_body = extra_body , timeout = timeout
227229 ),
228- cast_to = NamedTransformation ,
230+ cast_to = NamedTransformationDeleteResponse ,
229231 )
230232
231233 def get (
@@ -243,6 +245,8 @@ def get(
243245 Retrieves the named transformation identified by `id`.
244246
245247 Args:
248+ id: Unique identifier for a named transformation.
249+
246250 extra_headers: Send extra headers
247251
248252 extra_query: Add additional query parameters to the request
@@ -311,15 +315,14 @@ async def create(
311315 account. Name matching is case-sensitive.
312316
313317 transformation: The transformation string this name refers to, for example
314- `w-150,h-150,fo-center,cm-resize`. The `tr:` prefix is optional — it's added
315- automatically if missing, and validated if present. The string must be a valid
316- ImageKit transformation and cannot itself reference another named transformation
317- (no nesting). Learn more about the
318+ `w-150,h-150,fo-center,cm-resize`. The `tr:` prefix is optional; if present, it
319+ is validated. The string must be a valid ImageKit transformation and cannot
320+ itself reference another named transformation (no nesting). Learn more about the
318321 [transformation syntax](https://imagekit.io/docs/transformations).
319322
320- enabled: Whether the named transformation is enabled. Set to `false` to disable it
321- without deleting it; requests using a disabled named transformation fail at
322- delivery time.
323+ enabled: Whether the named transformation is currently enabled. When this is set to
324+ `false`, requests using such disabled named transformations fail at delivery
325+ time.
323326
324327 extra_headers: Send extra headers
325328
@@ -370,6 +373,8 @@ async def update(
370373 references in your own application code or in previously generated URLs.
371374
372375 Args:
376+ id: Unique identifier for a named transformation.
377+
373378 enabled: Whether the named transformation is enabled. Omit to leave the current value
374379 unchanged.
375380
@@ -378,10 +383,9 @@ async def update(
378383 account. Name matching is case-sensitive.
379384
380385 transformation: The transformation string this name refers to, for example
381- `w-150,h-150,fo-center,cm-resize`. The `tr:` prefix is optional — it's added
382- automatically if missing, and validated if present. The string must be a valid
383- ImageKit transformation and cannot itself reference another named transformation
384- (no nesting). Learn more about the
386+ `w-150,h-150,fo-center,cm-resize`. The `tr:` prefix is optional; if present, it
387+ is validated. The string must be a valid ImageKit transformation and cannot
388+ itself reference another named transformation (no nesting). Learn more about the
385389 [transformation syntax](https://imagekit.io/docs/transformations).
386390
387391 extra_headers: Send extra headers
@@ -439,17 +443,18 @@ async def delete(
439443 extra_query : Query | None = None ,
440444 extra_body : Body | None = None ,
441445 timeout : float | httpx .Timeout | None | NotGiven = not_given ,
442- ) -> NamedTransformation :
446+ ) -> NamedTransformationDeleteResponse :
443447 """
444- Permanently deletes the named transformation identified by `id` and returns the
445- deleted object.
448+ Permanently deletes the named transformation identified by `id`.
446449
447450 Deletion fails with a `409` error if the named transformation is still
448451 referenced (via the `n-<name>` token) by an upload pre-transformation or
449452 post-transformation setting. This check is best-effort and can't detect
450453 references in your own application code or in previously generated URLs.
451454
452455 Args:
456+ id: Unique identifier for a named transformation.
457+
453458 extra_headers: Send extra headers
454459
455460 extra_query: Add additional query parameters to the request
@@ -465,7 +470,7 @@ async def delete(
465470 options = make_request_options (
466471 extra_headers = extra_headers , extra_query = extra_query , extra_body = extra_body , timeout = timeout
467472 ),
468- cast_to = NamedTransformation ,
473+ cast_to = NamedTransformationDeleteResponse ,
469474 )
470475
471476 async def get (
@@ -483,6 +488,8 @@ async def get(
483488 Retrieves the named transformation identified by `id`.
484489
485490 Args:
491+ id: Unique identifier for a named transformation.
492+
486493 extra_headers: Send extra headers
487494
488495 extra_query: Add additional query parameters to the request
0 commit comments