Skip to content

Commit e24d49e

Browse files
author
stlc-bot
committed
Build SDK
Stainless-Generated-From: f4e3055
1 parent cd94707 commit e24d49e

5 files changed

Lines changed: 42 additions & 36 deletions

File tree

image-kit-java-core/src/main/kotlin/io/imagekit/models/namedtransformations/NamedTransformationCreateParams.kt

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,9 @@ private constructor(
4949
/**
5050
* The transformation string this name refers to, for example `w-150,h-150,fo-center,cm-resize`.
5151
* The `tr:` prefix is optional — it's added automatically if missing, and validated if present.
52-
* Learn more about the [transformation syntax](https://imagekit.io/docs/transformations).
52+
* The string must be a valid ImageKit transformation and cannot itself reference another named
53+
* transformation (no nesting). Learn more about the
54+
* [transformation syntax](https://imagekit.io/docs/transformations).
5355
*
5456
* @throws ImageKitInvalidDataException if the JSON field has an unexpected type or is
5557
* unexpectedly missing or null (e.g. if the server responded with an unexpected value).
@@ -156,8 +158,9 @@ private constructor(
156158
/**
157159
* The transformation string this name refers to, for example
158160
* `w-150,h-150,fo-center,cm-resize`. The `tr:` prefix is optional — it's added
159-
* automatically if missing, and validated if present. Learn more about the
160-
* [transformation syntax](https://imagekit.io/docs/transformations).
161+
* automatically if missing, and validated if present. The string must be a valid ImageKit
162+
* transformation and cannot itself reference another named transformation (no nesting).
163+
* Learn more about the [transformation syntax](https://imagekit.io/docs/transformations).
161164
*/
162165
fun transformation(transformation: String) = apply { body.transformation(transformation) }
163166

@@ -361,8 +364,9 @@ private constructor(
361364
/**
362365
* The transformation string this name refers to, for example
363366
* `w-150,h-150,fo-center,cm-resize`. The `tr:` prefix is optional — it's added
364-
* automatically if missing, and validated if present. Learn more about the
365-
* [transformation syntax](https://imagekit.io/docs/transformations).
367+
* automatically if missing, and validated if present. The string must be a valid ImageKit
368+
* transformation and cannot itself reference another named transformation (no nesting).
369+
* Learn more about the [transformation syntax](https://imagekit.io/docs/transformations).
366370
*
367371
* @throws ImageKitInvalidDataException if the JSON field has an unexpected type or is
368372
* unexpectedly missing or null (e.g. if the server responded with an unexpected value).
@@ -463,7 +467,9 @@ private constructor(
463467
/**
464468
* The transformation string this name refers to, for example
465469
* `w-150,h-150,fo-center,cm-resize`. The `tr:` prefix is optional — it's added
466-
* automatically if missing, and validated if present. Learn more about the
470+
* automatically if missing, and validated if present. The string must be a valid
471+
* ImageKit transformation and cannot itself reference another named transformation (no
472+
* nesting). Learn more about the
467473
* [transformation syntax](https://imagekit.io/docs/transformations).
468474
*/
469475
fun transformation(transformation: String) =

image-kit-java-core/src/main/kotlin/io/imagekit/models/namedtransformations/NamedTransformationDeleteParams.kt

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,9 @@ import kotlin.jvm.optionals.getOrNull
1515
* Permanently deletes the named transformation identified by `id` and returns the deleted object.
1616
*
1717
* Deletion fails with a `409` error if the named transformation is still referenced (via the
18-
* `n-<name>` token) by another enabled named transformation, or by an upload
19-
* pre-transformation/post-transformation setting. References from disabled named transformations
20-
* don't count. This check is best-effort and can't detect references in your own application code
21-
* or in previously generated URLs.
18+
* `n-<name>` token) by an upload pre-transformation or post-transformation setting. This check is
19+
* best-effort and can't detect references in your own application code or in previously generated
20+
* URLs.
2221
*/
2322
class NamedTransformationDeleteParams
2423
private constructor(

image-kit-java-core/src/main/kotlin/io/imagekit/models/namedtransformations/NamedTransformationUpdateParams.kt

Lines changed: 15 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,9 @@ import kotlin.jvm.optionals.getOrNull
2424
* fields present in the request body are updated; other fields stay unchanged.
2525
*
2626
* Renaming or disabling a named transformation fails with a `409` error if it is still referenced
27-
* (via the `n-<name>` token) by another enabled named transformation, or by an upload
28-
* pre-transformation/post-transformation setting. References from disabled named transformations
29-
* don't count. This check is best-effort and can't detect references in your own application code
30-
* or in previously generated URLs.
27+
* (via the `n-<name>` token) by an upload pre-transformation or post-transformation setting. This
28+
* check is best-effort and can't detect references in your own application code or in previously
29+
* generated URLs.
3130
*/
3231
class NamedTransformationUpdateParams
3332
private constructor(
@@ -60,7 +59,9 @@ private constructor(
6059
/**
6160
* The transformation string this name refers to, for example `w-150,h-150,fo-center,cm-resize`.
6261
* The `tr:` prefix is optional — it's added automatically if missing, and validated if present.
63-
* Learn more about the [transformation syntax](https://imagekit.io/docs/transformations).
62+
* The string must be a valid ImageKit transformation and cannot itself reference another named
63+
* transformation (no nesting). Learn more about the
64+
* [transformation syntax](https://imagekit.io/docs/transformations).
6465
*
6566
* @throws ImageKitInvalidDataException if the JSON field has an unexpected type (e.g. if the
6667
* server responded with an unexpected value).
@@ -174,8 +175,9 @@ private constructor(
174175
/**
175176
* The transformation string this name refers to, for example
176177
* `w-150,h-150,fo-center,cm-resize`. The `tr:` prefix is optional — it's added
177-
* automatically if missing, and validated if present. Learn more about the
178-
* [transformation syntax](https://imagekit.io/docs/transformations).
178+
* automatically if missing, and validated if present. The string must be a valid ImageKit
179+
* transformation and cannot itself reference another named transformation (no nesting).
180+
* Learn more about the [transformation syntax](https://imagekit.io/docs/transformations).
179181
*/
180182
fun transformation(transformation: String) = apply { body.transformation(transformation) }
181183

@@ -372,8 +374,9 @@ private constructor(
372374
/**
373375
* The transformation string this name refers to, for example
374376
* `w-150,h-150,fo-center,cm-resize`. The `tr:` prefix is optional — it's added
375-
* automatically if missing, and validated if present. Learn more about the
376-
* [transformation syntax](https://imagekit.io/docs/transformations).
377+
* automatically if missing, and validated if present. The string must be a valid ImageKit
378+
* transformation and cannot itself reference another named transformation (no nesting).
379+
* Learn more about the [transformation syntax](https://imagekit.io/docs/transformations).
377380
*
378381
* @throws ImageKitInvalidDataException if the JSON field has an unexpected type (e.g. if
379382
* the server responded with an unexpected value).
@@ -472,7 +475,9 @@ private constructor(
472475
/**
473476
* The transformation string this name refers to, for example
474477
* `w-150,h-150,fo-center,cm-resize`. The `tr:` prefix is optional — it's added
475-
* automatically if missing, and validated if present. Learn more about the
478+
* automatically if missing, and validated if present. The string must be a valid
479+
* ImageKit transformation and cannot itself reference another named transformation (no
480+
* nesting). Learn more about the
476481
* [transformation syntax](https://imagekit.io/docs/transformations).
477482
*/
478483
fun transformation(transformation: String) =

image-kit-java-core/src/main/kotlin/io/imagekit/services/async/NamedTransformationServiceAsync.kt

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -52,10 +52,9 @@ interface NamedTransformationServiceAsync {
5252
* fields present in the request body are updated; other fields stay unchanged.
5353
*
5454
* Renaming or disabling a named transformation fails with a `409` error if it is still
55-
* referenced (via the `n-<name>` token) by another enabled named transformation, or by an
56-
* upload pre-transformation/post-transformation setting. References from disabled named
57-
* transformations don't count. This check is best-effort and can't detect references in your
58-
* own application code or in previously generated URLs.
55+
* referenced (via the `n-<name>` token) by an upload pre-transformation or post-transformation
56+
* setting. This check is best-effort and can't detect references in your own application code
57+
* or in previously generated URLs.
5958
*/
6059
fun update(id: String): CompletableFuture<NamedTransformation> =
6160
update(id, NamedTransformationUpdateParams.none())
@@ -112,10 +111,9 @@ interface NamedTransformationServiceAsync {
112111
* object.
113112
*
114113
* Deletion fails with a `409` error if the named transformation is still referenced (via the
115-
* `n-<name>` token) by another enabled named transformation, or by an upload
116-
* pre-transformation/post-transformation setting. References from disabled named
117-
* transformations don't count. This check is best-effort and can't detect references in your
118-
* own application code or in previously generated URLs.
114+
* `n-<name>` token) by an upload pre-transformation or post-transformation setting. This check
115+
* is best-effort and can't detect references in your own application code or in previously
116+
* generated URLs.
119117
*/
120118
fun delete(id: String): CompletableFuture<NamedTransformation> =
121119
delete(id, NamedTransformationDeleteParams.none())

image-kit-java-core/src/main/kotlin/io/imagekit/services/blocking/NamedTransformationService.kt

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -52,10 +52,9 @@ interface NamedTransformationService {
5252
* fields present in the request body are updated; other fields stay unchanged.
5353
*
5454
* Renaming or disabling a named transformation fails with a `409` error if it is still
55-
* referenced (via the `n-<name>` token) by another enabled named transformation, or by an
56-
* upload pre-transformation/post-transformation setting. References from disabled named
57-
* transformations don't count. This check is best-effort and can't detect references in your
58-
* own application code or in previously generated URLs.
55+
* referenced (via the `n-<name>` token) by an upload pre-transformation or post-transformation
56+
* setting. This check is best-effort and can't detect references in your own application code
57+
* or in previously generated URLs.
5958
*/
6059
fun update(id: String): NamedTransformation = update(id, NamedTransformationUpdateParams.none())
6160

@@ -109,10 +108,9 @@ interface NamedTransformationService {
109108
* object.
110109
*
111110
* Deletion fails with a `409` error if the named transformation is still referenced (via the
112-
* `n-<name>` token) by another enabled named transformation, or by an upload
113-
* pre-transformation/post-transformation setting. References from disabled named
114-
* transformations don't count. This check is best-effort and can't detect references in your
115-
* own application code or in previously generated URLs.
111+
* `n-<name>` token) by an upload pre-transformation or post-transformation setting. This check
112+
* is best-effort and can't detect references in your own application code or in previously
113+
* generated URLs.
116114
*/
117115
fun delete(id: String): NamedTransformation = delete(id, NamedTransformationDeleteParams.none())
118116

0 commit comments

Comments
 (0)